@ckeditor/ckeditor5-real-time-collaboration 38.2.0-alpha.0 → 39.0.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.
Files changed (49) hide show
  1. package/README.md +0 -1
  2. package/build/real-time-collaboration.js +1 -1
  3. package/package.json +7 -8
  4. package/src/augmentation.d.ts +4 -0
  5. package/src/augmentation.js +1 -1
  6. package/src/common-translations.d.ts +4 -0
  7. package/src/common-translations.js +2 -2
  8. package/src/config.d.ts +4 -0
  9. package/src/config.js +1 -1
  10. package/src/index.d.ts +4 -0
  11. package/src/index.js +1 -1
  12. package/src/presencelist/presencelistui.d.ts +4 -0
  13. package/src/presencelist/presencelistui.js +2 -2
  14. package/src/presencelist/view/presencecounterview.d.ts +4 -0
  15. package/src/presencelist/view/presencecounterview.js +2 -2
  16. package/src/presencelist/view/presencedropdownlistitemview.d.ts +4 -0
  17. package/src/presencelist/view/presencedropdownlistitemview.js +2 -2
  18. package/src/presencelist/view/presencedropdownlistview.d.ts +4 -0
  19. package/src/presencelist/view/presencedropdownlistview.js +2 -2
  20. package/src/presencelist/view/presenceinlinelistitemview.d.ts +4 -0
  21. package/src/presencelist/view/presenceinlinelistitemview.js +2 -2
  22. package/src/presencelist/view/presenceinlinelistview.d.ts +4 -0
  23. package/src/presencelist/view/presenceinlinelistview.js +2 -2
  24. package/src/presencelist/view/presencelistview.d.ts +4 -0
  25. package/src/presencelist/view/presencelistview.js +2 -2
  26. package/src/presencelist.d.ts +4 -0
  27. package/src/presencelist.js +2 -2
  28. package/src/realtimecollaborativecomments/cloudservicescommentsadapter.d.ts +4 -0
  29. package/src/realtimecollaborativecomments/cloudservicescommentsadapter.js +2 -2
  30. package/src/realtimecollaborativecomments.d.ts +4 -0
  31. package/src/realtimecollaborativecomments.js +2 -2
  32. package/src/realtimecollaborativeediting/realtimecollaborationclient.d.ts +14 -0
  33. package/src/realtimecollaborativeediting/realtimecollaborationclient.js +2 -2
  34. package/src/realtimecollaborativeediting/sessions.d.ts +4 -0
  35. package/src/realtimecollaborativeediting/sessions.js +2 -2
  36. package/src/realtimecollaborativeediting/usermarkers.d.ts +4 -0
  37. package/src/realtimecollaborativeediting/usermarkers.js +2 -2
  38. package/src/realtimecollaborativeediting/websocketgateway.d.ts +4 -0
  39. package/src/realtimecollaborativeediting/websocketgateway.js +2 -2
  40. package/src/realtimecollaborativeediting.d.ts +4 -0
  41. package/src/realtimecollaborativeediting.js +2 -2
  42. package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.d.ts +4 -0
  43. package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js +2 -2
  44. package/src/realtimecollaborativerevisionhistory.d.ts +4 -0
  45. package/src/realtimecollaborativerevisionhistory.js +2 -2
  46. package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.d.ts +4 -0
  47. package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js +2 -2
  48. package/src/realtimecollaborativetrackchanges.d.ts +4 -0
  49. package/src/realtimecollaborativetrackchanges.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-real-time-collaboration",
3
- "version": "38.2.0-alpha.0",
3
+ "version": "39.0.0",
4
4
  "description": "A set of CKEditor 5 features enabling real-time collaboration within the editor using CKEditor Cloud Services.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -29,7 +29,6 @@
29
29
  "framework"
30
30
  ],
31
31
  "main": "src/index.js",
32
- "type": "module",
33
32
  "files": [
34
33
  "build",
35
34
  "lang",
@@ -40,12 +39,12 @@
40
39
  "CHANGELOG.md"
41
40
  ],
42
41
  "dependencies": {
43
- "@ckeditor/ckeditor5-cloud-services": "38.2.0-alpha.0",
44
- "@ckeditor/ckeditor-cloud-services-collaboration": "48.1.0-alpha.0",
45
- "@ckeditor/ckeditor5-operations-compressor": "38.2.0-alpha.0",
46
- "ckeditor5": "38.2.0-alpha.0",
47
- "ckeditor5-collaboration": "38.2.0-alpha.0",
48
- "lodash-es": "^4.17.11"
42
+ "@ckeditor/ckeditor5-cloud-services": "39.0.0",
43
+ "@ckeditor/ckeditor-cloud-services-collaboration": "51.1.0",
44
+ "@ckeditor/ckeditor5-operations-compressor": "39.0.0",
45
+ "ckeditor5": "39.0.0",
46
+ "ckeditor5-collaboration": "39.0.0",
47
+ "lodash-es": "4.17.21"
49
48
  },
50
49
  "engines": {
51
50
  "node": ">=16.0.0",
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  import '@ckeditor/ckeditor5-cloud-services';
2
6
  import type { PresenceListConfig } from './config';
3
7
  import type { RealTimeCollaborationClient } from './index';
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module real-time-collaboration/common-translations
3
7
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x21a04f,_0x1e818e,_0x27eb00){const t=_0x21a04f['t'];switch(_0x1e818e){case'PENDING_ACTION_SENDING_DATA':return t({'string':'Sending\x20data\x20to\x20the\x20server.','id':'PENDING_ACTION_SENDING_DATA'});case'The\x20local\x20document\x20and\x20server\x20document\x20differ\x20and\x20merging\x20them\x20can\x20cause\x20unexpected\x20behavior.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.':return t('The\x20local\x20document\x20and\x20server\x20document\x20differ\x20and\x20merging\x20them\x20can\x20cause\x20unexpected\x20behavior.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');case'The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.':return t('The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');case'The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.':return t('The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');case'The\x20last\x20saved\x20version\x20of\x20the\x20document\x20does\x20not\x20match\x20the\x20local\x20version.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.':return t('The\x20last\x20saved\x20version\x20of\x20the\x20document\x20does\x20not\x20match\x20the\x20local\x20version.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');case'Synchronization\x20issue':return t('Synchronization\x20issue');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'CONNECTED_USERS':return t({'string':'1\x20connected\x20user\x20(me)','plural':'%0\x20connected\x20users','id':'CONNECTED_USERS'},_0x27eb00);default:return'';}}
23
+ export function getTranslation(_0x2e228d,_0x5e2d15,_0x1e5757){const t=_0x2e228d['t'];switch(_0x5e2d15){case'PENDING_ACTION_SENDING_DATA':return t({'string':'Sending\x20data\x20to\x20the\x20server.','id':'PENDING_ACTION_SENDING_DATA'});case'The\x20local\x20document\x20and\x20server\x20document\x20differ\x20and\x20merging\x20them\x20can\x20cause\x20unexpected\x20behavior.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.':return t('The\x20local\x20document\x20and\x20server\x20document\x20differ\x20and\x20merging\x20them\x20can\x20cause\x20unexpected\x20behavior.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');case'The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.':return t('The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');case'The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.':return t('The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');case'The\x20last\x20saved\x20version\x20of\x20the\x20document\x20does\x20not\x20match\x20the\x20local\x20version.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.':return t('The\x20last\x20saved\x20version\x20of\x20the\x20document\x20does\x20not\x20match\x20the\x20local\x20version.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');case'Synchronization\x20issue':return t('Synchronization\x20issue');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'CONNECTED_USERS':return t({'string':'1\x20connected\x20user\x20(me)','plural':'%0\x20connected\x20users','id':'CONNECTED_USERS'},_0x1e5757);default:return'';}}
package/src/config.d.ts CHANGED
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  import type { User } from 'ckeditor5-collaboration/src/collaboration-core';
2
6
  /**
3
7
  * @module real-time-collaboration/config
package/src/config.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
package/src/index.d.ts CHANGED
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  export { default as RealTimeCollaborativeEditing } from './realtimecollaborativeediting';
2
6
  export { default as RealTimeCollaborativeTrackChanges } from './realtimecollaborativetrackchanges';
3
7
  export { default as RealTimeCollaborativeComments } from './realtimecollaborativecomments';
package/src/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core';
2
6
  import { Collection } from 'ckeditor5/src/utils';
3
7
  import { BodyCollection, BalloonPanelView } from 'ckeditor5/src/ui';
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x30fd=['_createView','isRendered','presenceList.container','config','appendChild','presenceList.collapseAt','_handleUserRemove','counterView','render','bindTo','detachFromDom','plugins','get','remove','from','showDropdown','balloonPanelView','requires','_handleUserAdd','element','context','presenceList','isHidden','destroy','locale','listenTo','allConnectedUsers','execute','view','number','items','init','hideDropdown','usersCount','reverse','onClick','isCollapsed','using','presencelist-collapseat-invalid-format','_allConnectedUsers','lastConnectedUsers','presenceDropdownView','define','isVisible','bind','hasTooltip','length','add','bodyCollection','inlineListView','unpin','content'];(function(_0x126208,_0x30fd14){const _0x2268b6=function(_0x35fb1f){while(--_0x35fb1f){_0x126208['push'](_0x126208['shift']());}};_0x2268b6(++_0x30fd14);}(_0x30fd,0xb1));const _0x2268=function(_0x126208,_0x30fd14){_0x126208=_0x126208-0x0;let _0x2268b6=_0x30fd[_0x126208];return _0x2268b6;};import{ContextPlugin as _0x3cbafc}from'ckeditor5/src/core';import{CKEditorError as _0x31f1c6,Collection as _0x44e212}from'ckeditor5/src/utils';import{clickOutsideHandler as _0x422301,BodyCollection as _0x127e34,BalloonPanelView as _0x4fe50b}from'ckeditor5/src/ui';import{isElement as _0x218af0}from'lodash-es';import _0x430c45 from'../realtimecollaborativeediting/sessions';import _0x4ed3e5 from'./view/presencelistview';import _0x4e1d12 from'./view/presencedropdownlistview';import _0x47417d from'./view/presencedropdownlistitemview';import _0x3cacaf from'./view/presenceinlinelistitemview';export default class i extends _0x3cbafc{constructor(_0x16e909){super(_0x16e909),this[_0x2268('0x33')][_0x2268('0x22')][_0x2268('0x15')](_0x2268('0x0'),{'collapseAt':0x6});const _0x236a83=_0x16e909[_0x2268('0x22')][_0x2268('0x2b')](_0x2268('0x24'));if(_0x2268('0x8')!=typeof _0x236a83)throw new _0x31f1c6('presencelist-collapseat-invalid-format',this);if(_0x236a83<0x1)throw new _0x31f1c6(_0x2268('0x11'),this);this[_0x2268('0x12')]=this['context'][_0x2268('0x2a')][_0x2268('0x2b')](_0x430c45)[_0x2268('0x5')],this['set'](_0x2268('0xc'),0x0),this[_0x2268('0x13')]=new _0x44e212(),this[_0x2268('0x2f')]=new _0x4fe50b(),this['balloonPanelView']['class']='ck\x20ck-presence-list__balloon',this[_0x2268('0x7')]=this[_0x2268('0x1f')](),this[_0x2268('0x14')]=void 0x0;}static get[_0x2268('0x30')](){return[_0x430c45];}[_0x2268('0xa')](){for(const _0x273222 of this['_allConnectedUsers'])this[_0x2268('0x31')](_0x273222);this[_0x2268('0x4')](this['_allConnectedUsers'],_0x2268('0x1a'),(_0x22f48e,_0x2e14c8)=>{this[_0x2268('0x31')](_0x2e14c8);}),this[_0x2268('0x4')](this['_allConnectedUsers'],_0x2268('0x2c'),(_0x2a7e10,_0x55f466)=>{this[_0x2268('0x25')](_0x55f466);});}[_0x2268('0x1f')](){const _0x47cb1d=this[_0x2268('0x33')],_0x343f1c=new _0x4ed3e5(this[_0x2268('0x33')][_0x2268('0x3')]),_0x3a44ba=this['balloonPanelView'];if(!_0x218af0(_0x47cb1d['config'][_0x2268('0x2b')]('presenceList.container')))throw new _0x31f1c6('presencelist-missing-container',this);return _0x343f1c['counterView'][_0x2268('0x17')]('usersCount')['to'](this),_0x343f1c['bind'](_0x2268('0xf'))['to'](this,_0x2268('0xc'),_0x4fc493=>{const _0x343664=_0x4fc493>=_0x47cb1d[_0x2268('0x22')][_0x2268('0x2b')](_0x2268('0x24'));return _0x343f1c[_0x2268('0x26')][_0x2268('0x1')]=!(0x1==_0x4fc493||_0x343664),_0x343664||this[_0x2268('0xb')](),_0x343664;}),_0x343f1c[_0x2268('0x1c')][_0x2268('0x9')][_0x2268('0x28')](this[_0x2268('0x13')])['using'](_0xccc690=>{const _0x5c60d2=_0x47cb1d[_0x2268('0x22')]['get'](_0x2268('0x0')),_0x1276e6=new _0x3cacaf(_0x47cb1d[_0x2268('0x3')],_0xccc690,!!_0x5c60d2[_0x2268('0xe')]);return _0x1276e6[_0x2268('0x17')](_0x2268('0x18'))['to'](_0x343f1c,_0x2268('0xf'),_0x11e872=>!_0x11e872),_0x5c60d2['onClick']&&this['listenTo'](_0x1276e6,'execute',()=>{this[_0x2268('0x7')][_0x2268('0xf')]||_0x5c60d2[_0x2268('0xe')](_0xccc690,_0x1276e6[_0x2268('0x32')]);}),_0x1276e6;}),this[_0x2268('0x4')](_0x343f1c['inlineListView'],'execute',()=>{this[_0x2268('0x14')]?this[_0x2268('0xb')]():this['view'][_0x2268('0xf')]&&this[_0x2268('0x2e')]();}),_0x343f1c[_0x2268('0x27')](),_0x3a44ba['render'](),_0x422301({'emitter':_0x343f1c,'activator':()=>_0x3a44ba[_0x2268('0x16')],'contextElements':[_0x3a44ba['element'],_0x343f1c[_0x2268('0x1c')][_0x2268('0x32')]],'callback':()=>this[_0x2268('0xb')]()}),_0x47cb1d['config'][_0x2268('0x2b')](_0x2268('0x21'))[_0x2268('0x23')](_0x343f1c[_0x2268('0x32')]),this[_0x2268('0x1b')]=new _0x127e34(this[_0x2268('0x33')][_0x2268('0x3')]),this[_0x2268('0x1b')]['attachToDom'](),this[_0x2268('0x1b')][_0x2268('0x1a')](_0x3a44ba),_0x343f1c;}[_0x2268('0x31')](_0x3534d5){this['usersCount']++,0x5==this[_0x2268('0x13')][_0x2268('0x19')]&&this[_0x2268('0x13')][_0x2268('0x2c')](0x0),this[_0x2268('0x13')]['add'](_0x3534d5);}[_0x2268('0x25')](_0x1862ff){if(this[_0x2268('0xc')]--,this['lastConnectedUsers'][_0x2268('0x2b')](_0x1862ff['id'])&&(this[_0x2268('0x13')][_0x2268('0x2c')](_0x1862ff['id']),this[_0x2268('0x13')]['length']<this[_0x2268('0xc')]))for(const _0x14d9de of Array[_0x2268('0x2d')](this[_0x2268('0x12')])[_0x2268('0xd')]())if(!this[_0x2268('0x13')][_0x2268('0x2b')](_0x14d9de['id']))return void this['lastConnectedUsers'][_0x2268('0x1a')](_0x14d9de,0x0);}['showDropdown'](){if(this['presenceDropdownView'])return;this[_0x2268('0x14')]=new _0x4e1d12(this['context']['locale']);const _0x3913d0=this['context']['config'][_0x2268('0x2b')](_0x2268('0x0'));this['presenceDropdownView'][_0x2268('0x9')][_0x2268('0x28')](this[_0x2268('0x12')])[_0x2268('0x10')](_0x4113d7=>{const _0x203a99=new _0x47417d(this['context']['locale'],_0x4113d7,!!_0x3913d0[_0x2268('0xe')]);return _0x3913d0['onClick']&&this['listenTo'](_0x203a99,_0x2268('0x6'),()=>{_0x3913d0[_0x2268('0xe')](_0x4113d7,_0x203a99[_0x2268('0x32')]);}),_0x203a99;}),this['balloonPanelView'][_0x2268('0x1e')][_0x2268('0x1a')](this[_0x2268('0x14')]),this[_0x2268('0x2f')]['pin']({'target':this[_0x2268('0x7')][_0x2268('0x1c')][_0x2268('0x32')]});}[_0x2268('0xb')](){this[_0x2268('0x14')]&&(this[_0x2268('0x2f')][_0x2268('0x1d')](),this[_0x2268('0x2f')]['content'][_0x2268('0x2c')](this[_0x2268('0x14')]),this[_0x2268('0x14')]['destroy'](),this['presenceDropdownView']=void 0x0);}[_0x2268('0x2')](){super[_0x2268('0x2')](),this[_0x2268('0x7')]&&this['view'][_0x2268('0x20')]&&this['view'][_0x2268('0x2')](),this[_0x2268('0x1b')]&&this[_0x2268('0x1b')][_0x2268('0x29')]();}}
23
+ const _0x2887=['view','bindTo','length','using','requires','counterView','locale','attachToDom','bodyCollection','usersCount','onClick','_handleUserRemove','inlineListView','class','presencelist-collapseat-invalid-format','destroy','_allConnectedUsers','isVisible','appendChild','isCollapsed','_createView','listenTo','showDropdown','detachFromDom','reverse','hideDropdown','presenceDropdownView','presenceList.container','presencelist-missing-container','config','get','items','execute','isRendered','remove','balloonPanelView','from','render','presenceList','isHidden','define','init','bind','pin','context','presenceList.collapseAt','add','lastConnectedUsers','content','_handleUserAdd','element','ck\x20ck-presence-list__balloon'];(function(_0x1c0c9e,_0x2887d2){const _0x8d021b=function(_0x5e78d4){while(--_0x5e78d4){_0x1c0c9e['push'](_0x1c0c9e['shift']());}};_0x8d021b(++_0x2887d2);}(_0x2887,0xd9));const _0x8d02=function(_0x1c0c9e,_0x2887d2){_0x1c0c9e=_0x1c0c9e-0x0;let _0x8d021b=_0x2887[_0x1c0c9e];return _0x8d021b;};import{ContextPlugin as _0x20b26a}from'ckeditor5/src/core';import{CKEditorError as _0x1f7239,Collection as _0x1a2b21}from'ckeditor5/src/utils';import{clickOutsideHandler as _0xb070c8,BodyCollection as _0x247821,BalloonPanelView as _0x219c50}from'ckeditor5/src/ui';import{isElement as _0xa287bd}from'lodash-es';import _0x3feebe from'../realtimecollaborativeediting/sessions';import _0x9a983c from'./view/presencelistview';import _0x1688a1 from'./view/presencedropdownlistview';import _0x5c3869 from'./view/presencedropdownlistitemview';import _0x53952d from'./view/presenceinlinelistitemview';export default class i extends _0x20b26a{constructor(_0x3c06ee){super(_0x3c06ee),this[_0x8d02('0x23')][_0x8d02('0x14')][_0x8d02('0x1f')](_0x8d02('0x1d'),{'collapseAt':0x6});const _0x1bb4a6=_0x3c06ee[_0x8d02('0x14')][_0x8d02('0x15')](_0x8d02('0x24'));if('number'!=typeof _0x1bb4a6)throw new _0x1f7239(_0x8d02('0x5'),this);if(_0x1bb4a6<0x1)throw new _0x1f7239(_0x8d02('0x5'),this);this[_0x8d02('0x7')]=this['context']['plugins']['get'](_0x3feebe)['allConnectedUsers'],this['set']('usersCount',0x0),this[_0x8d02('0x26')]=new _0x1a2b21(),this[_0x8d02('0x1a')]=new _0x219c50(),this['balloonPanelView'][_0x8d02('0x4')]=_0x8d02('0x2a'),this['view']=this['_createView'](),this[_0x8d02('0x11')]=void 0x0;}static get[_0x8d02('0x2f')](){return[_0x3feebe];}[_0x8d02('0x20')](){for(const _0x4c0ba3 of this[_0x8d02('0x7')])this[_0x8d02('0x28')](_0x4c0ba3);this[_0x8d02('0xc')](this[_0x8d02('0x7')],_0x8d02('0x25'),(_0x5713b0,_0x3d81f9)=>{this['_handleUserAdd'](_0x3d81f9);}),this[_0x8d02('0xc')](this[_0x8d02('0x7')],_0x8d02('0x19'),(_0x2bc04d,_0xc48e9c)=>{this[_0x8d02('0x2')](_0xc48e9c);});}[_0x8d02('0xb')](){const _0x121f0e=this[_0x8d02('0x23')],_0x2c917b=new _0x9a983c(this[_0x8d02('0x23')]['locale']),_0x169178=this[_0x8d02('0x1a')];if(!_0xa287bd(_0x121f0e[_0x8d02('0x14')]['get'](_0x8d02('0x12'))))throw new _0x1f7239(_0x8d02('0x13'),this);return _0x2c917b['counterView'][_0x8d02('0x21')]('usersCount')['to'](this),_0x2c917b[_0x8d02('0x21')](_0x8d02('0xa'))['to'](this,_0x8d02('0x0'),_0x52698b=>{const _0x227fb6=_0x52698b>=_0x121f0e[_0x8d02('0x14')]['get'](_0x8d02('0x24'));return _0x2c917b[_0x8d02('0x30')][_0x8d02('0x1e')]=!(0x1==_0x52698b||_0x227fb6),_0x227fb6||this[_0x8d02('0x10')](),_0x227fb6;}),_0x2c917b[_0x8d02('0x3')][_0x8d02('0x16')][_0x8d02('0x2c')](this['lastConnectedUsers'])[_0x8d02('0x2e')](_0x1b0aad=>{const _0x528c15=_0x121f0e['config'][_0x8d02('0x15')](_0x8d02('0x1d')),_0x5736d3=new _0x53952d(_0x121f0e[_0x8d02('0x31')],_0x1b0aad,!!_0x528c15['onClick']);return _0x5736d3[_0x8d02('0x21')]('hasTooltip')['to'](_0x2c917b,'isCollapsed',_0x492d55=>!_0x492d55),_0x528c15[_0x8d02('0x1')]&&this[_0x8d02('0xc')](_0x5736d3,'execute',()=>{this[_0x8d02('0x2b')][_0x8d02('0xa')]||_0x528c15[_0x8d02('0x1')](_0x1b0aad,_0x5736d3['element']);}),_0x5736d3;}),this[_0x8d02('0xc')](_0x2c917b[_0x8d02('0x3')],_0x8d02('0x17'),()=>{this['presenceDropdownView']?this[_0x8d02('0x10')]():this[_0x8d02('0x2b')][_0x8d02('0xa')]&&this[_0x8d02('0xd')]();}),_0x2c917b[_0x8d02('0x1c')](),_0x169178[_0x8d02('0x1c')](),_0xb070c8({'emitter':_0x2c917b,'activator':()=>_0x169178[_0x8d02('0x8')],'contextElements':[_0x169178[_0x8d02('0x29')],_0x2c917b['inlineListView'][_0x8d02('0x29')]],'callback':()=>this[_0x8d02('0x10')]()}),_0x121f0e['config']['get']('presenceList.container')[_0x8d02('0x9')](_0x2c917b[_0x8d02('0x29')]),this[_0x8d02('0x33')]=new _0x247821(this[_0x8d02('0x23')][_0x8d02('0x31')]),this['bodyCollection'][_0x8d02('0x32')](),this[_0x8d02('0x33')]['add'](_0x169178),_0x2c917b;}[_0x8d02('0x28')](_0x22b025){this['usersCount']++,0x5==this['lastConnectedUsers'][_0x8d02('0x2d')]&&this[_0x8d02('0x26')][_0x8d02('0x19')](0x0),this[_0x8d02('0x26')][_0x8d02('0x25')](_0x22b025);}[_0x8d02('0x2')](_0x57cd8f){if(this[_0x8d02('0x0')]--,this[_0x8d02('0x26')][_0x8d02('0x15')](_0x57cd8f['id'])&&(this[_0x8d02('0x26')][_0x8d02('0x19')](_0x57cd8f['id']),this[_0x8d02('0x26')][_0x8d02('0x2d')]<this['usersCount']))for(const _0x2a553b of Array[_0x8d02('0x1b')](this[_0x8d02('0x7')])[_0x8d02('0xf')]())if(!this[_0x8d02('0x26')]['get'](_0x2a553b['id']))return void this['lastConnectedUsers'][_0x8d02('0x25')](_0x2a553b,0x0);}[_0x8d02('0xd')](){if(this['presenceDropdownView'])return;this['presenceDropdownView']=new _0x1688a1(this['context'][_0x8d02('0x31')]);const _0x545b09=this[_0x8d02('0x23')][_0x8d02('0x14')]['get'](_0x8d02('0x1d'));this[_0x8d02('0x11')][_0x8d02('0x16')][_0x8d02('0x2c')](this[_0x8d02('0x7')])[_0x8d02('0x2e')](_0xf443f8=>{const _0x4d1c95=new _0x5c3869(this[_0x8d02('0x23')][_0x8d02('0x31')],_0xf443f8,!!_0x545b09['onClick']);return _0x545b09['onClick']&&this[_0x8d02('0xc')](_0x4d1c95,'execute',()=>{_0x545b09[_0x8d02('0x1')](_0xf443f8,_0x4d1c95['element']);}),_0x4d1c95;}),this[_0x8d02('0x1a')][_0x8d02('0x27')][_0x8d02('0x25')](this[_0x8d02('0x11')]),this[_0x8d02('0x1a')][_0x8d02('0x22')]({'target':this[_0x8d02('0x2b')][_0x8d02('0x3')][_0x8d02('0x29')]});}[_0x8d02('0x10')](){this['presenceDropdownView']&&(this[_0x8d02('0x1a')]['unpin'](),this[_0x8d02('0x1a')][_0x8d02('0x27')][_0x8d02('0x19')](this[_0x8d02('0x11')]),this[_0x8d02('0x11')]['destroy'](),this[_0x8d02('0x11')]=void 0x0);}[_0x8d02('0x6')](){super[_0x8d02('0x6')](),this[_0x8d02('0x2b')]&&this[_0x8d02('0x2b')][_0x8d02('0x18')]&&this['view'][_0x8d02('0x6')](),this[_0x8d02('0x33')]&&this[_0x8d02('0x33')][_0x8d02('0xe')]();}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  import { View } from 'ckeditor5/src/ui';
2
6
  import type { Locale } from 'ckeditor5/src/utils';
3
7
  export default class PresenceCounterView extends View {
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4263=['CONNECTED_USERS','ck-presence-list__counter','usersCount','div','setTemplate','ck-presence-list__counter--hidden','isHidden','set'];(function(_0x1b0cb4,_0x4263b7){const _0x90f529=function(_0xd1955d){while(--_0xd1955d){_0x1b0cb4['push'](_0x1b0cb4['shift']());}};_0x90f529(++_0x4263b7);}(_0x4263,0xd5));const _0x90f5=function(_0x1b0cb4,_0x4263b7){_0x1b0cb4=_0x1b0cb4-0x0;let _0x90f529=_0x4263[_0x1b0cb4];return _0x90f529;};import{View as _0x5a78cf}from'ckeditor5/src/ui';import{getTranslation as _0x1810bf}from'../../common-translations';export default class ct extends _0x5a78cf{constructor(_0x33e4fc){super(_0x33e4fc);const _0x538b6d=this['bindTemplate'];this[_0x90f5('0x2')](_0x90f5('0x5'),0x0),this['set'](_0x90f5('0x1'),!0x0),this[_0x90f5('0x7')]({'tag':_0x90f5('0x6'),'attributes':{'class':['ck',_0x90f5('0x4'),_0x538b6d['if'](_0x90f5('0x1'),_0x90f5('0x0'))]},'children':[{'text':_0x538b6d['to'](_0x90f5('0x5'),_0x1c997c=>_0x1810bf(_0x33e4fc,_0x90f5('0x3'),_0x1c997c))}]});}}
23
+ const _0x4431=['ck-presence-list__counter','ck-presence-list__counter--hidden','isHidden','setTemplate','usersCount','CONNECTED_USERS','set'];(function(_0x429b20,_0x443189){const _0x4856b3=function(_0x256b13){while(--_0x256b13){_0x429b20['push'](_0x429b20['shift']());}};_0x4856b3(++_0x443189);}(_0x4431,0x17c));const _0x4856=function(_0x429b20,_0x443189){_0x429b20=_0x429b20-0x0;let _0x4856b3=_0x4431[_0x429b20];return _0x4856b3;};import{View as _0x3ad382}from'ckeditor5/src/ui';import{getTranslation as _0x4e689e}from'../../common-translations';export default class ct extends _0x3ad382{constructor(_0x4111a2){super(_0x4111a2);const _0x5df415=this['bindTemplate'];this['set'](_0x4856('0x2'),0x0),this[_0x4856('0x4')](_0x4856('0x0'),!0x0),this[_0x4856('0x1')]({'tag':'div','attributes':{'class':['ck',_0x4856('0x5'),_0x5df415['if'](_0x4856('0x0'),_0x4856('0x6'))]},'children':[{'text':_0x5df415['to'](_0x4856('0x2'),_0x2b2e07=>_0x4e689e(_0x4111a2,_0x4856('0x3'),_0x2b2e07))}]});}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  import { View } from 'ckeditor5/src/ui';
2
6
  import type { Locale } from 'ckeditor5/src/utils';
3
7
  import { UserView, type User } from 'ckeditor5-collaboration/src/collaboration-core';
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2fab=['div','true','userView','bindTemplate','tag','setTemplate','execute','span','fire','ck-presence-list__marker','ck-user__full-name','getBackgroundColorClass'];(function(_0x110726,_0x2fab54){const _0x1afe62=function(_0x18eede){while(--_0x18eede){_0x110726['push'](_0x110726['shift']());}};_0x1afe62(++_0x2fab54);}(_0x2fab,0xab));const _0x1afe=function(_0x110726,_0x2fab54){_0x110726=_0x110726-0x0;let _0x1afe62=_0x2fab[_0x110726];return _0x1afe62;};import{View as _0x438a7a}from'ckeditor5/src/ui';import{UserView as _0xf2cb06}from'ckeditor5-collaboration/src/collaboration-core';export default class C extends _0x438a7a{constructor(_0x23e3a7,_0x249ca2,_0x457583){super(_0x23e3a7);const _0x9b09a6=this[_0x1afe('0x0')];this[_0x1afe('0xb')]=new _0xf2cb06(_0x23e3a7,_0x249ca2);const _0x845141={'tag':_0x1afe('0x9'),'attributes':{'class':['ck','ck-presence-list__dropdown-list-item']},'children':[this[_0x1afe('0xb')],{'tag':'span','attributes':{'class':['ck',_0x1afe('0x7')]},'children':[{'text':_0x249ca2['name']}]},{'tag':_0x1afe('0x4'),'attributes':{'class':['ck',_0x1afe('0x6'),_0x249ca2['color'][_0x1afe('0x8')]()],'aria-hidden':_0x1afe('0xa')}}]};_0x457583&&(_0x845141[_0x1afe('0x1')]='button',_0x845141['on']={'click':_0x9b09a6['to'](()=>this[_0x1afe('0x5')](_0x1afe('0x3')))}),this[_0x1afe('0x2')](_0x845141);}}
23
+ const _0x2f94=['fire','div','true','setTemplate','name','userView','bindTemplate','span','tag','getBackgroundColorClass','color','button','ck-presence-list__dropdown-list-item'];(function(_0x23f6a5,_0x2f9431){const _0x59dd32=function(_0x97caca){while(--_0x97caca){_0x23f6a5['push'](_0x23f6a5['shift']());}};_0x59dd32(++_0x2f9431);}(_0x2f94,0xfb));const _0x59dd=function(_0x23f6a5,_0x2f9431){_0x23f6a5=_0x23f6a5-0x0;let _0x59dd32=_0x2f94[_0x23f6a5];return _0x59dd32;};import{View as _0x5e9909}from'ckeditor5/src/ui';import{UserView as _0x285333}from'ckeditor5-collaboration/src/collaboration-core';export default class C extends _0x5e9909{constructor(_0x4b0428,_0x5e05b1,_0x182b5d){super(_0x4b0428);const _0x4aea2b=this[_0x59dd('0x2')];this[_0x59dd('0x1')]=new _0x285333(_0x4b0428,_0x5e05b1);const _0x4ddf42={'tag':_0x59dd('0xa'),'attributes':{'class':['ck',_0x59dd('0x8')]},'children':[this['userView'],{'tag':_0x59dd('0x3'),'attributes':{'class':['ck','ck-user__full-name']},'children':[{'text':_0x5e05b1[_0x59dd('0x0')]}]},{'tag':_0x59dd('0x3'),'attributes':{'class':['ck','ck-presence-list__marker',_0x5e05b1[_0x59dd('0x6')][_0x59dd('0x5')]()],'aria-hidden':_0x59dd('0xb')}}]};_0x182b5d&&(_0x4ddf42[_0x59dd('0x4')]=_0x59dd('0x7'),_0x4ddf42['on']={'click':_0x4aea2b['to'](()=>this[_0x59dd('0x9')]('execute'))}),this[_0x59dd('0xc')](_0x4ddf42);}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  import { View, type ViewCollection } from 'ckeditor5/src/ui';
2
6
  import type { Locale } from 'ckeditor5/src/utils';
3
7
  export default class PresenceDropdownListView extends View {
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x52e8=['createCollection','ck-presence-list__dropdown-list-wrapper','div','setTemplate','items','ck-presence-list__dropdown-list'];(function(_0x360f4a,_0x52e8fb){var _0x1cb8d2=function(_0x23cce6){while(--_0x23cce6){_0x360f4a['push'](_0x360f4a['shift']());}};_0x1cb8d2(++_0x52e8fb);}(_0x52e8,0x147));var _0x1cb8=function(_0x360f4a,_0x52e8fb){_0x360f4a=_0x360f4a-0x0;var _0x1cb8d2=_0x52e8[_0x360f4a];return _0x1cb8d2;};import{View as _0x322b48}from'ckeditor5/src/ui';export default class A extends _0x322b48{constructor(_0xc16987){super(_0xc16987),this[_0x1cb8('0x1')]=this[_0x1cb8('0x3')](),this[_0x1cb8('0x0')]({'tag':_0x1cb8('0x5'),'attributes':{'class':['ck',_0x1cb8('0x2')]},'children':[{'tag':'div','attributes':{'class':['ck',_0x1cb8('0x4')]},'children':this[_0x1cb8('0x1')]}]});}}
23
+ var _0x34ca=['ck-presence-list__dropdown-list-wrapper','items','div','setTemplate','ck-presence-list__dropdown-list','createCollection'];(function(_0x392daf,_0x34ca2c){var _0x27a316=function(_0x3fb4c5){while(--_0x3fb4c5){_0x392daf['push'](_0x392daf['shift']());}};_0x27a316(++_0x34ca2c);}(_0x34ca,0x154));var _0x27a3=function(_0x392daf,_0x34ca2c){_0x392daf=_0x392daf-0x0;var _0x27a316=_0x34ca[_0x392daf];return _0x27a316;};import{View as _0x417b45}from'ckeditor5/src/ui';export default class A extends _0x417b45{constructor(_0x100720){super(_0x100720),this[_0x27a3('0x3')]=this[_0x27a3('0x1')](),this[_0x27a3('0x5')]({'tag':_0x27a3('0x4'),'attributes':{'class':['ck',_0x27a3('0x0')]},'children':[{'tag':_0x27a3('0x4'),'attributes':{'class':['ck',_0x27a3('0x2')]},'children':this[_0x27a3('0x3')]}]});}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  import { View } from 'ckeditor5/src/ui';
2
6
  import type { Locale } from 'ckeditor5/src/utils';
3
7
  import { UserView, type User } from 'ckeditor5-collaboration/src/collaboration-core';
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x262b=['bindTemplate','markerView','set','color','name','getBackgroundColorClass','execute','hasTooltip','ck-presence-list__list-item','setTemplate','ck-presence-list__marker','button','userView','tooltipPosition','div','tag'];(function(_0x1155f1,_0x262b10){const _0xe7f3a5=function(_0x49fb01){while(--_0x49fb01){_0x1155f1['push'](_0x1155f1['shift']());}};_0xe7f3a5(++_0x262b10);}(_0x262b,0xac));const _0xe7f3=function(_0x1155f1,_0x262b10){_0x1155f1=_0x1155f1-0x0;let _0xe7f3a5=_0x262b[_0x1155f1];return _0xe7f3a5;};import{View as _0x1817e9}from'ckeditor5/src/ui';import{UserView as _0x112dfa}from'ckeditor5-collaboration/src/collaboration-core';export default class _ extends _0x1817e9{constructor(_0x37481c,_0x542e20,_0x2ef598){super(_0x37481c);const _0x36f671=this[_0xe7f3('0x4')];this['set'](_0xe7f3('0xb'),!0x0),this[_0xe7f3('0x6')](_0xe7f3('0x1'),''),this['userView']=new _0x112dfa(_0x37481c,_0x542e20),this['markerView']=new ot(_0x37481c,_0x542e20);const _0x188b1b={'tag':_0xe7f3('0x2'),'attributes':{'class':['ck',_0xe7f3('0xc')],'data-cke-tooltip-text':this['userView'][_0xe7f3('0x8')],'data-cke-tooltip-position':_0x36f671['to'](_0xe7f3('0x1')),'data-cke-tooltip-disabled':_0x36f671['to'](_0xe7f3('0xb'),_0x591c0e=>!_0x591c0e),'data-cke-tooltip-class':'ck-presence-list__list-item__tooltip'},'children':[this[_0xe7f3('0x0')],this[_0xe7f3('0x5')]]};_0x2ef598&&(_0x188b1b[_0xe7f3('0x3')]=_0xe7f3('0xf'),_0x188b1b['on']={'click':_0x36f671['to'](()=>this['fire'](_0xe7f3('0xa')))}),this[_0xe7f3('0xd')](_0x188b1b);}}class ot extends _0x1817e9{constructor(_0x16bf78,_0x5295d4){super(_0x16bf78),this[_0xe7f3('0xd')]({'tag':'span','attributes':{'class':['ck',_0xe7f3('0xe'),_0x5295d4[_0xe7f3('0x7')][_0xe7f3('0x9')]()],'aria-hidden':'true'}});}}
23
+ const _0x1e85=['true','span','tooltipPosition','ck-presence-list__list-item','markerView','execute','bindTemplate','userView','ck-presence-list__marker','tag','setTemplate','getBackgroundColorClass','fire','color'];(function(_0x4d089e,_0x1e8528){const _0x16ba86=function(_0x1f557f){while(--_0x1f557f){_0x4d089e['push'](_0x4d089e['shift']());}};_0x16ba86(++_0x1e8528);}(_0x1e85,0x1a7));const _0x16ba=function(_0x4d089e,_0x1e8528){_0x4d089e=_0x4d089e-0x0;let _0x16ba86=_0x1e85[_0x4d089e];return _0x16ba86;};import{View as _0x442906}from'ckeditor5/src/ui';import{UserView as _0x13a65a}from'ckeditor5-collaboration/src/collaboration-core';export default class _ extends _0x442906{constructor(_0x3050f2,_0xe6467d,_0x3c3586){super(_0x3050f2);const _0x38f9bb=this[_0x16ba('0x3')];this['set']('hasTooltip',!0x0),this['set'](_0x16ba('0xd'),''),this[_0x16ba('0x4')]=new _0x13a65a(_0x3050f2,_0xe6467d),this[_0x16ba('0x1')]=new ot(_0x3050f2,_0xe6467d);const _0xb97302={'tag':'div','attributes':{'class':['ck',_0x16ba('0x0')],'data-cke-tooltip-text':this[_0x16ba('0x4')]['name'],'data-cke-tooltip-position':_0x38f9bb['to'](_0x16ba('0xd')),'data-cke-tooltip-disabled':_0x38f9bb['to']('hasTooltip',_0x5334a6=>!_0x5334a6),'data-cke-tooltip-class':'ck-presence-list__list-item__tooltip'},'children':[this[_0x16ba('0x4')],this[_0x16ba('0x1')]]};_0x3c3586&&(_0xb97302[_0x16ba('0x6')]='button',_0xb97302['on']={'click':_0x38f9bb['to'](()=>this[_0x16ba('0x9')](_0x16ba('0x2')))}),this[_0x16ba('0x7')](_0xb97302);}}class ot extends _0x442906{constructor(_0x4f29f8,_0x269e22){super(_0x4f29f8),this[_0x16ba('0x7')]({'tag':_0x16ba('0xc'),'attributes':{'class':['ck',_0x16ba('0x5'),_0x269e22[_0x16ba('0xa')][_0x16ba('0x8')]()],'aria-hidden':_0x16ba('0xb')}});}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  import { View, type ViewCollection } from 'ckeditor5/src/ui';
2
6
  import type { Locale } from 'ckeditor5/src/utils';
3
7
  import type PresenceInlineListItemView from './presenceinlinelistitemview';
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xd66d=['execute','fire','createCollection','items','bindTemplate','ck-presence-list__list'];(function(_0xf5c39d,_0xd66d95){const _0xbc685e=function(_0x4c54d7){while(--_0x4c54d7){_0xf5c39d['push'](_0xf5c39d['shift']());}};_0xbc685e(++_0xd66d95);}(_0xd66d,0xa4));const _0xbc68=function(_0xf5c39d,_0xd66d95){_0xf5c39d=_0xf5c39d-0x0;let _0xbc685e=_0xd66d[_0xf5c39d];return _0xbc685e;};import{View as _0x3f7fe2}from'ckeditor5/src/ui';export default class ht extends _0x3f7fe2{constructor(_0x447904){super(_0x447904),this[_0xbc68('0x1')]=this[_0xbc68('0x0')]();const _0x2fcd62=this[_0xbc68('0x2')];this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0xbc68('0x3')]},'children':this[_0xbc68('0x1')],'on':{'click':_0x2fcd62['to'](()=>this[_0xbc68('0x5')](_0xbc68('0x4')))}});}}
23
+ const _0x2ec0=['setTemplate','createCollection','execute','fire','items'];(function(_0x57b955,_0x2ec05f){const _0x539b98=function(_0x30a668){while(--_0x30a668){_0x57b955['push'](_0x57b955['shift']());}};_0x539b98(++_0x2ec05f);}(_0x2ec0,0x1d4));const _0x539b=function(_0x57b955,_0x2ec05f){_0x57b955=_0x57b955-0x0;let _0x539b98=_0x2ec0[_0x57b955];return _0x539b98;};import{View as _0x11ad50}from'ckeditor5/src/ui';export default class ht extends _0x11ad50{constructor(_0x19f06e){super(_0x19f06e),this['items']=this[_0x539b('0x3')]();const _0x28a54f=this['bindTemplate'];this[_0x539b('0x2')]({'tag':'div','attributes':{'class':['ck','ck-presence-list__list']},'children':this[_0x539b('0x1')],'on':{'click':_0x28a54f['to'](()=>this[_0x539b('0x0')](_0x539b('0x4')))}});}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  import { View } from 'ckeditor5/src/ui';
2
6
  import type { Locale } from 'ckeditor5/src/utils';
3
7
  import PresenceCounterView from './presencecounterview';
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5833=['ck-reset','items','ck-rounded-corners','isCollapsed','listenTo','inlineListView','locale','ck-presence-list','first','set','counterView','change','tooltipPosition','setTemplate','ck-presence-list--collapsed'];(function(_0x139f67,_0x58339a){const _0xb15d47=function(_0x200ad8){while(--_0x200ad8){_0x139f67['push'](_0x139f67['shift']());}};_0xb15d47(++_0x58339a);}(_0x5833,0xb6));const _0xb15d=function(_0x139f67,_0x58339a){_0x139f67=_0x139f67-0x0;let _0xb15d47=_0x5833[_0x139f67];return _0xb15d47;};import{View as _0x567a4c}from'ckeditor5/src/ui';import _0x3b5407 from'./presencecounterview';import _0x44aad7 from'./presenceinlinelistview';import'../../../theme/presencelist.css';export default class x extends _0x567a4c{constructor(_0x127ba8){super(_0x127ba8);const _0x1a85f2=this['bindTemplate'];this[_0xb15d('0x7')]('isCollapsed',!0x0),this[_0xb15d('0x8')]=new _0x3b5407(this[_0xb15d('0x4')]),this[_0xb15d('0x3')]=new _0x44aad7(_0x127ba8),this[_0xb15d('0x2')](this[_0xb15d('0x3')][_0xb15d('0xe')],_0xb15d('0x9'),()=>{for(const _0x821101 of this['inlineListView'][_0xb15d('0xe')])_0x821101[_0xb15d('0xa')]='s';this['inlineListView'][_0xb15d('0xe')]['first']&&(this[_0xb15d('0x3')][_0xb15d('0xe')][_0xb15d('0x6')][_0xb15d('0xa')]='se');}),this[_0xb15d('0xb')]({'tag':'div','attributes':{'class':['ck',_0xb15d('0x5'),_0xb15d('0xd'),_0xb15d('0x0'),_0x1a85f2['if'](_0xb15d('0x1'),_0xb15d('0xc'))]},'children':[this[_0xb15d('0x8')],this[_0xb15d('0x3')]]});}}
23
+ const _0xafca=['change','inlineListView','ck-reset','div','ck-rounded-corners','counterView','items','listenTo','ck-presence-list','tooltipPosition','first','isCollapsed','bindTemplate','ck-presence-list--collapsed'];(function(_0x571c84,_0xafcaf3){const _0x10dfcd=function(_0x5bc3c0){while(--_0x5bc3c0){_0x571c84['push'](_0x571c84['shift']());}};_0x10dfcd(++_0xafcaf3);}(_0xafca,0x1d2));const _0x10df=function(_0x571c84,_0xafcaf3){_0x571c84=_0x571c84-0x0;let _0x10dfcd=_0xafca[_0x571c84];return _0x10dfcd;};import{View as _0x22757f}from'ckeditor5/src/ui';import _0x45dad0 from'./presencecounterview';import _0x492d9b from'./presenceinlinelistview';import'../../../theme/presencelist.css';export default class x extends _0x22757f{constructor(_0x3c47ed){super(_0x3c47ed);const _0x559500=this[_0x10df('0x8')];this['set'](_0x10df('0x7'),!0x0),this['counterView']=new _0x45dad0(this['locale']),this['inlineListView']=new _0x492d9b(_0x3c47ed),this[_0x10df('0x3')](this[_0x10df('0xb')][_0x10df('0x2')],_0x10df('0xa'),()=>{for(const _0x3e3547 of this[_0x10df('0xb')][_0x10df('0x2')])_0x3e3547[_0x10df('0x5')]='s';this['inlineListView']['items']['first']&&(this['inlineListView'][_0x10df('0x2')][_0x10df('0x6')]['tooltipPosition']='se');}),this['setTemplate']({'tag':_0x10df('0xd'),'attributes':{'class':['ck',_0x10df('0x4'),_0x10df('0xc'),_0x10df('0x0'),_0x559500['if'](_0x10df('0x7'),_0x10df('0x9'))]},'children':[this[_0x10df('0x1')],this[_0x10df('0xb')]]});}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module real-time-collaboration/presencelist
3
7
  * @publicApi
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x215a=['pluginName','PresenceList','requires'];(function(_0xb4a8ab,_0x215a45){var _0xa4e114=function(_0x34bd94){while(--_0x34bd94){_0xb4a8ab['push'](_0xb4a8ab['shift']());}};_0xa4e114(++_0x215a45);}(_0x215a,0x93));var _0xa4e1=function(_0xb4a8ab,_0x215a45){_0xb4a8ab=_0xb4a8ab-0x0;var _0xa4e114=_0x215a[_0xb4a8ab];return _0xa4e114;};import{ContextPlugin as _0x40a852}from'ckeditor5/src/core';import _0x168340 from'./realtimecollaborativeediting/sessions';import _0x44a8e0 from'./presencelist/presencelistui';export default class s extends _0x40a852{static get[_0xa4e1('0x2')](){return[_0x168340,_0x44a8e0];}static get[_0xa4e1('0x0')](){return _0xa4e1('0x1');}}
23
+ var _0x2c87=['requires','pluginName','PresenceList'];(function(_0x31c2aa,_0x2c8727){var _0x3211ca=function(_0x5b6f3a){while(--_0x5b6f3a){_0x31c2aa['push'](_0x31c2aa['shift']());}};_0x3211ca(++_0x2c8727);}(_0x2c87,0x135));var _0x3211=function(_0x31c2aa,_0x2c8727){_0x31c2aa=_0x31c2aa-0x0;var _0x3211ca=_0x2c87[_0x31c2aa];return _0x3211ca;};import{ContextPlugin as _0x4bdd0b}from'ckeditor5/src/core';import _0x43142a from'./realtimecollaborativeediting/sessions';import _0x42038b from'./presencelist/presencelistui';export default class s extends _0x4bdd0b{static get[_0x3211('0x0')](){return[_0x43142a,_0x42038b];}static get[_0x3211('0x1')](){return _0x3211('0x2');}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module real-time-collaboration/realtimecollaborativecomments/cloudservicescommentsadapter
3
7
  * @publicApi
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x16d6=['commentThreadReopened','userId','_connectService','reconnect','sessionAdd:','commentUpdated','getCommentThread','has','requires','_terminateService','getMany','Permissions','commentId','_setUpService','getComment','collaboration.channelId','update','resolve','cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.','catch','content','assign','resolveCommentThread','init','disconnect','addCommentThread','resolvedBy','removeCommentThread','CommentsService','commentThreadId','listenTo','getConnectedSessions','get','404','reopenCommentThread','commentRemoved','resolvedAt','from','updateCommentThread','_getService','cloudservicescommentsadapter-disconnect-not-exist','getCommentThreads','addComment','cloud-services-internal-error:\x20Not\x20connected.','destroy','getUser','register','removeComment','message','context','plugins','map','comments','delete','commentThreadAdded','permissions','_fetchMissingUsersForThreads','commentAdded','set','attributes','adapter','addUser','_services','config','mySessionId','cloud-services-internal-error:\x20Request\x20timeout.','CommentsRepository','add','remove','startsWith'];(function(_0x3b8d6c,_0x16d617){const _0x2bb53b=function(_0x25ff5c){while(--_0x25ff5c){_0x3b8d6c['push'](_0x3b8d6c['shift']());}};_0x2bb53b(++_0x16d617);}(_0x16d6,0x15e));const _0x2bb5=function(_0x3b8d6c,_0x16d617){_0x3b8d6c=_0x3b8d6c-0x0;let _0x2bb53b=_0x16d6[_0x3b8d6c];return _0x2bb53b;};import{Context as _0x1fb875,ContextPlugin as _0x40b02d}from'ckeditor5/src/core';import{CKEditorError as _0x3e78e7}from'ckeditor5/src/utils';import{Users as _0x1be50e}from'ckeditor5-collaboration/src/collaboration-core';import{User as _0x1e470d}from'@ckeditor/ckeditor-cloud-services-collaboration';import{CommentsService as _0x467f5d}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services';import _0xe2055d from'../realtimecollaborativeediting/websocketgateway';import _0x39b642 from'../realtimecollaborativeediting/sessions';export default class a extends _0x40b02d{static get[_0x2bb5('0x8')](){return[_0xe2055d,'CommentsRepository',_0x39b642,_0x1be50e];}constructor(_0x38ffd7){super(_0x38ffd7),this['_services']=new Map();}async[_0x2bb5('0x17')](){const _0x5b0b85=this['context'],_0x5dd5ab=_0x5b0b85[_0x2bb5('0x32')][_0x2bb5('0x20')](_0x2bb5('0x42'));if(_0x5b0b85['plugins'][_0x2bb5('0x20')](_0xe2055d)['addToReconnectionStack'](this),_0x5dd5ab[_0x2bb5('0x3c')]={'addCommentThread':async({channelId:_0x4ce7b4,threadId:_0x42e1b0,comments:_0x6dceb5,resolvedAt:_0x35ef46,resolvedBy:_0xb603c7,context:_0x48416b,attributes:_0x3ce0fb})=>{const _0x3fb568=await this[_0x2bb5('0x27')](_0x4ce7b4)['addCommentThread']({'commentThreadId':_0x42e1b0,'comments':_0x6dceb5[_0x2bb5('0x33')](_0x578aac=>function(_0x1cf954,_0x20b8f9,_0x4f4fe9){return{'commentThreadId':_0x4f4fe9,'commentId':_0x1cf954['commentId'],'userId':_0x1cf954['authorId'],'content':_0x1cf954[_0x2bb5('0x14')],'documentId':_0x20b8f9,'createdAt':_0x1cf954['createdAt'],'attributes':_0x1cf954[_0x2bb5('0x3b')]||{}};}(_0x578aac,_0x4ce7b4,_0x42e1b0)),'resolvedAt':_0x35ef46,'resolvedBy':_0xb603c7,'context':_0x48416b,'attributes':_0x3ce0fb})[_0x2bb5('0x13')](B);return{'threadId':_0x3fb568[_0x2bb5('0x1d')],'comments':_0x3fb568[_0x2bb5('0x34')]};},'getCommentThread':async({channelId:_0x3e3e9e,threadId:_0x3c660a})=>{const _0x146913=await this['_getService'](_0x3e3e9e)['getCommentThread'](_0x3c660a)['catch'](B);return await this[_0x2bb5('0x38')]([_0x146913]),{'threadId':_0x146913[_0x2bb5('0x1d')],'comments':_0x146913[_0x2bb5('0x34')][_0x2bb5('0x33')](R),'context':_0x146913[_0x2bb5('0x31')],'resolvedAt':_0x146913[_0x2bb5('0x24')],'resolvedBy':_0x146913[_0x2bb5('0x1a')],'attributes':_0x146913['attributes']||{}};},'updateCommentThread':async({channelId:_0x4ad90e,threadId:_0x29e77a,context:_0x38ec31,attributes:_0x4bee5b})=>this['_getService'](_0x4ad90e)['updateCommentThread']({'commentThreadId':_0x29e77a,'context':_0x38ec31,'attributes':_0x4bee5b})[_0x2bb5('0x13')](F)['catch'](B),'resolveCommentThread':async({channelId:_0x20fb1a,threadId:_0x426b95})=>{const _0xaaa03=await this[_0x2bb5('0x27')](_0x20fb1a)[_0x2bb5('0x16')](_0x426b95)[_0x2bb5('0x13')](F)[_0x2bb5('0x13')](B);return{'threadId':_0xaaa03[_0x2bb5('0x1d')],'resolvedAt':_0xaaa03[_0x2bb5('0x24')],'resolvedBy':_0xaaa03[_0x2bb5('0x1a')]};},'reopenCommentThread':async({channelId:_0x29cb05,threadId:_0x172eb2})=>this[_0x2bb5('0x27')](_0x29cb05)[_0x2bb5('0x22')](_0x172eb2)[_0x2bb5('0x13')](F)[_0x2bb5('0x13')](B),'removeCommentThread':({channelId:_0xed661b,threadId:_0x43e2af})=>this[_0x2bb5('0x27')](_0xed661b)[_0x2bb5('0x1b')](_0x43e2af)[_0x2bb5('0x13')](F)[_0x2bb5('0x13')](B),'addComment':({channelId:_0x2f0c1f,threadId:_0x4c10b2,commentId:_0x41dc33,content:_0x17af20,attributes:_0x269d03})=>this[_0x2bb5('0x27')](_0x2f0c1f)[_0x2bb5('0x2a')](_0x4c10b2,_0x41dc33,_0x17af20,_0x269d03)['catch'](B),'updateComment':({channelId:_0xcf15b4,threadId:_0x19b5d5,commentId:_0x4710a3,content:_0x21901e,attributes:_0x15b1a0})=>this[_0x2bb5('0x27')](_0xcf15b4)['updateComment'](_0x19b5d5,_0x4710a3,_0x21901e,_0x15b1a0)[_0x2bb5('0x13')](F)['catch'](B),'removeComment':({channelId:_0x380a90,threadId:_0x2024c7,commentId:_0x53c6ff})=>this['_getService'](_0x380a90)[_0x2bb5('0x2f')](_0x2024c7,_0x53c6ff)[_0x2bb5('0x13')](F)[_0x2bb5('0x13')](B)},_0x5b0b85 instanceof _0x1fb875){const _0x187f46=_0x5b0b85[_0x2bb5('0x3f')][_0x2bb5('0x20')](_0x2bb5('0xf')),_0x5b57e0=_0x5b0b85[_0x2bb5('0x32')]['get'](_0x39b642);await this[_0x2bb5('0xd')](_0x187f46);const _0x149d87=await this[_0x2bb5('0x3e')][_0x2bb5('0x20')](_0x187f46)[_0x2bb5('0x1f')]();this[_0x2bb5('0x1e')](_0x5b57e0,_0x2bb5('0x4')+_0x187f46,(_0x2a75fb,{session:_0x57c34b})=>{_0x57c34b['id']===_0x5b57e0[_0x2bb5('0x40')]&&(_0x2a75fb['off'](),this[_0x2bb5('0x31')]['plugins']['get'](_0x2bb5('0xb'))['setPermissions'](_0x57c34b[_0x2bb5('0x37')],_0x187f46));}),_0x5b57e0[_0x2bb5('0x2e')](_0x187f46,_0x149d87);}}async[_0x2bb5('0xd')](_0x3aac5b){if(this['_services'][_0x2bb5('0x7')](_0x3aac5b))throw new _0x3e78e7('cloudservicescommentsadapter-connect-already-connected',null,{'channelId':_0x3aac5b});const _0x46804c=this[_0x2bb5('0x31')]['plugins'][_0x2bb5('0x20')](_0x2bb5('0x42')),_0x410b55=new a[(_0x2bb5('0x1c'))](_0x3aac5b);this[_0x2bb5('0x3e')][_0x2bb5('0x3a')](_0x3aac5b,_0x410b55),this[_0x2bb5('0x1e')](_0x410b55,_0x2bb5('0x36'),(_0x241588,_0x2bfcdd)=>{const {commentThreadId:_0x51edfd,documentId:_0x3e038e,context:_0x25a3ba,attributes:_0x535c68,resolvedAt:_0x419534,resolvedBy:_0x431496,comments:_0x10bc4c}=_0x2bfcdd;_0x46804c[_0x2bb5('0x6')](_0x51edfd)||_0x46804c['addCommentThread']({'threadId':_0x51edfd,'channelId':_0x3e038e,'comments':_0x10bc4c?_0x10bc4c['map'](R):[],'context':_0x25a3ba,'attributes':_0x535c68,'resolvedAt':_0x419534,'resolvedBy':_0x431496,'isFromAdapter':!0x0});}),this[_0x2bb5('0x1e')](_0x410b55,'commentThreadUpdated',(_0x5829a6,{commentThreadId:_0x202ab1,documentId:_0x9a3c0,context:_0x10592f,attributes:_0xf5127b})=>{_0x46804c[_0x2bb5('0x6')](_0x202ab1)&&_0x46804c[_0x2bb5('0x26')]({'threadId':_0x202ab1,'channelId':_0x9a3c0,'context':_0x10592f,'attributes':_0xf5127b,'isFromAdapter':!0x0});}),this[_0x2bb5('0x1e')](_0x410b55,'commentThreadResolved',(_0x302aec,{commentThreadId:_0x48cc42,resolvedBy:_0x26c54a,resolvedAt:_0x4f192b})=>{const _0x4d0294=_0x46804c[_0x2bb5('0x6')](_0x48cc42);_0x4d0294&&_0x4d0294[_0x2bb5('0x11')]({'resolvedBy':_0x26c54a,'resolvedAt':_0x4f192b,'isFromAdapter':!0x0});}),this['listenTo'](_0x410b55,_0x2bb5('0x0'),(_0xd15d22,{commentThreadId:_0x177a6b})=>{const _0x2571ed=_0x46804c[_0x2bb5('0x6')](_0x177a6b);_0x2571ed&&_0x2571ed['reopen']({'isFromAdapter':!0x0});}),this[_0x2bb5('0x1e')](_0x410b55,'commentThreadRemoved',(_0x392415,{commentThreadId:_0xfc85ba})=>{const _0x24e232=_0x46804c[_0x2bb5('0x6')](_0xfc85ba);_0x24e232&&_0x24e232[_0x2bb5('0x44')]({'isFromAdapter':!0x0});}),this['listenTo'](_0x410b55,_0x2bb5('0x39'),(_0x36638b,_0x3025a1)=>{const _0x4c7dde=_0x3025a1['commentThreadId'],_0x4f8268=_0x46804c[_0x2bb5('0x6')](_0x4c7dde);_0x4f8268&&_0x4f8268[_0x2bb5('0x2a')]({...R(_0x3025a1),'isFromAdapter':!0x0});}),this[_0x2bb5('0x1e')](_0x410b55,_0x2bb5('0x5'),(_0x470354,{commentThreadId:_0x2292e6,commentId:_0x2f9557,content:_0x304a7d,attributes:_0x4c3e79})=>{const _0x9436b2=_0x46804c[_0x2bb5('0x6')](_0x2292e6);if(_0x9436b2){const _0x489c54=_0x9436b2[_0x2bb5('0xe')](_0x2f9557);_0x489c54&&_0x489c54['update']({'content':_0x304a7d,'attributes':_0x4c3e79,'isFromAdapter':!0x0});}}),this[_0x2bb5('0x1e')](_0x410b55,_0x2bb5('0x23'),(_0x30c7a4,{commentThreadId:_0x22fed6,commentId:_0x4f47b7})=>{const _0x3793b=_0x46804c[_0x2bb5('0x6')](_0x22fed6);if(_0x3793b){const _0x5b4266=_0x3793b['getComment'](_0x4f47b7);_0x5b4266&&_0x5b4266[_0x2bb5('0x44')]({'isFromAdapter':!0x0});}}),await this[_0x2bb5('0x2')](_0x3aac5b);}[_0x2bb5('0x2c')](){if(this[_0x2bb5('0x31')]instanceof _0x1fb875){const _0xdc6083=this[_0x2bb5('0x31')]['config']['get'](_0x2bb5('0xf'));this[_0x2bb5('0x9')](_0xdc6083);}}['_terminateService'](_0x2e9cc9){if(!this[_0x2bb5('0x3e')]['has'](_0x2e9cc9))throw new _0x3e78e7(_0x2bb5('0x28'),null,{'channelId':_0x2e9cc9});this[_0x2bb5('0x27')](_0x2e9cc9)[_0x2bb5('0x18')](),this[_0x2bb5('0x3e')][_0x2bb5('0x35')](_0x2e9cc9);}async[_0x2bb5('0x3')](){for(const _0x2d2da3 of this[_0x2bb5('0x3e')]['keys']())await this[_0x2bb5('0x2')](_0x2d2da3);if(this['context']instanceof _0x1fb875){const _0xbedd09=this[_0x2bb5('0x31')][_0x2bb5('0x3f')][_0x2bb5('0x20')](_0x2bb5('0xf')),_0x230625=this[_0x2bb5('0x31')]['plugins'][_0x2bb5('0x20')](_0x39b642);_0x230625['unregister'](_0xbedd09);const _0xdf6943=await this[_0x2bb5('0x3e')]['get'](_0xbedd09)[_0x2bb5('0x1f')]();_0x230625[_0x2bb5('0x2e')](_0xbedd09,_0xdf6943);}}async['_connectService'](_0x2f704d){const {connection:_0x4998fa}=this['context'][_0x2bb5('0x32')][_0x2bb5('0x20')](_0xe2055d),_0x447e17=this[_0x2bb5('0x31')][_0x2bb5('0x32')][_0x2bb5('0x20')]('CommentsRepository'),_0x44eb54=this[_0x2bb5('0x3e')][_0x2bb5('0x20')](_0x2f704d),_0xc54a64=await _0x44eb54['connect'](_0x4998fa);await this[_0x2bb5('0x38')](_0xc54a64);const _0x4ffd6e=new Set(Array[_0x2bb5('0x25')](_0x447e17[_0x2bb5('0x29')]({'channelId':_0x2f704d}),_0x2a6dad=>_0x2a6dad['id']));for(const _0x1eb67f of _0xc54a64)_0x4ffd6e[_0x2bb5('0x35')](_0x1eb67f[_0x2bb5('0x1d')]);for(const _0x2e297f of _0x4ffd6e)_0x447e17['getCommentThread'](_0x2e297f)[_0x2bb5('0x44')]({'isFromAdapter':!0x0});for(const _0x3c66c1 of _0xc54a64){let _0x4f8817=_0x447e17[_0x2bb5('0x6')](_0x3c66c1[_0x2bb5('0x1d')]);const {commentThreadId:_0x2b1b27,context:_0x74cdd,attributes:_0x232b45,resolvedBy:_0x3f80ac,resolvedAt:_0x6020e6,deletedAt:_0x80e99f}=_0x3c66c1;_0x4f8817||(_0x4f8817=_0x447e17[_0x2bb5('0x19')]({'channelId':_0x2f704d,'threadId':_0x2b1b27,'context':_0x74cdd,'attributes':_0x232b45||{},'resolvedBy':_0x3f80ac,'resolvedAt':_0x6020e6,'deletedAt':_0x80e99f,'isFromAdapter':!0x0}));const _0x3ec1a7=new Set(Array[_0x2bb5('0x25')](_0x4f8817['comments'],_0x549044=>_0x549044['id']));for(const _0x44c32e of _0x3c66c1[_0x2bb5('0x34')])_0x3ec1a7[_0x2bb5('0x35')](_0x44c32e[_0x2bb5('0xc')]);for(const _0x49595f of _0x3ec1a7)_0x4f8817[_0x2bb5('0xe')](_0x49595f)[_0x2bb5('0x44')]({'isFromAdapter':!0x0});for(const _0x2b110c of _0x3c66c1['comments']){const _0x11d0b2=_0x4f8817[_0x2bb5('0xe')](_0x2b110c['commentId']);_0x11d0b2?_0x11d0b2[_0x2bb5('0x14')]!==_0x2b110c[_0x2bb5('0x14')]&&_0x11d0b2[_0x2bb5('0x10')]({'content':_0x2b110c[_0x2bb5('0x14')],'isFromAdapter':!0x0}):_0x4f8817[_0x2bb5('0x2a')](Object[_0x2bb5('0x15')](R(_0x2b110c),{'isFromAdapter':!0x0}));}}}['_getService'](_0x47b17f){if(!this['_services'][_0x2bb5('0x7')](_0x47b17f))throw new _0x3e78e7('cloudservicescommentsadapter-service-not-exist',null,{'channelId':_0x47b17f});return this[_0x2bb5('0x3e')][_0x2bb5('0x20')](_0x47b17f);}async[_0x2bb5('0x38')](_0x154aeb){const _0x17d794=this[_0x2bb5('0x31')][_0x2bb5('0x32')][_0x2bb5('0x20')](_0x1be50e),{connection:_0x473015}=this[_0x2bb5('0x31')][_0x2bb5('0x32')]['get'](_0xe2055d),_0x41e5f8=new Set();for(const {resolvedBy:_0x4d3d88,comments:_0x40caa0}of _0x154aeb){_0x4d3d88&&!_0x17d794[_0x2bb5('0x2d')](_0x4d3d88)&&_0x41e5f8[_0x2bb5('0x43')](_0x4d3d88);for(const {userId:_0x4e5ac5}of _0x40caa0)_0x17d794[_0x2bb5('0x2d')](_0x4e5ac5)||_0x41e5f8[_0x2bb5('0x43')](_0x4e5ac5);}if(0x0===_0x41e5f8['size'])return;const _0x4ddd01=await _0x1e470d[_0x2bb5('0xa')](_0x473015,Array[_0x2bb5('0x25')](_0x41e5f8));for(const _0x5387df of _0x4ddd01)_0x17d794[_0x2bb5('0x2d')](_0x5387df['id'])||_0x17d794[_0x2bb5('0x3d')](_0x5387df);}}async function F(_0x186092){if(_0x2bb5('0x21')!==_0x186092['code'])throw _0x186092;}function B(_0x48e3bd){if((_0x2cb01c=_0x48e3bd)[_0x2bb5('0x30')][_0x2bb5('0x45')](_0x2bb5('0x12'))||_0x2cb01c[_0x2bb5('0x30')][_0x2bb5('0x45')](_0x2bb5('0x2b'))||_0x2cb01c[_0x2bb5('0x30')]['startsWith'](_0x2bb5('0x41')))return new Promise(()=>{});var _0x2cb01c;throw _0x48e3bd;}function R(_0xe74005){return{'threadId':_0xe74005[_0x2bb5('0x1d')],'commentId':_0xe74005['commentId'],'content':_0xe74005['content'],'createdAt':_0xe74005['createdAt'],'authorId':_0xe74005[_0x2bb5('0x1')],'attributes':_0xe74005['attributes']||{}};}a[_0x2bb5('0x1c')]=_0x467f5d;
23
+ const _0x1b38=['reconnect','removeComment','commentThreadRemoved','commentThreadUpdated','_getService','404','addUser','commentThreadAdded','map','add','attributes','reopen','_terminateService','getCommentThread','get','resolve','cloudservicescommentsadapter-service-not-exist','_fetchMissingUsersForThreads','_connectService','adapter','plugins','addCommentThread','off','updateCommentThread','from','_services','CommentsService','getConnectedSessions','commentThreadId','cloudservicescommentsadapter-disconnect-not-exist','sessionAdd:','remove','commentId','userId','collaboration.channelId','catch','resolvedAt','getComment','commentRemoved','commentThreadResolved','content','code','startsWith','comments','message','addToReconnectionStack','getUser','register','permissions','CommentsRepository','config','_setUpService','reopenCommentThread','connect','cloud-services-internal-error:\x20Request\x20timeout.','unregister','cloudservicescommentsadapter-connect-already-connected','context','update','has','listenTo','resolveCommentThread','delete','set','cloud-services-internal-error:\x20Not\x20connected.','size','resolvedBy','addComment'];(function(_0x1f8f22,_0x1b38ad){const _0x373ba2=function(_0x37dd6c){while(--_0x37dd6c){_0x1f8f22['push'](_0x1f8f22['shift']());}};_0x373ba2(++_0x1b38ad);}(_0x1b38,0xe8));const _0x373b=function(_0x1f8f22,_0x1b38ad){_0x1f8f22=_0x1f8f22-0x0;let _0x373ba2=_0x1b38[_0x1f8f22];return _0x373ba2;};import{Context as _0xdeef7c,ContextPlugin as _0x424b5e}from'ckeditor5/src/core';import{CKEditorError as _0x4fabdb}from'ckeditor5/src/utils';import{Users as _0xb0c572}from'ckeditor5-collaboration/src/collaboration-core';import{User as _0x506edf}from'@ckeditor/ckeditor-cloud-services-collaboration';import{CommentsService as _0x121e9d}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services';import _0x501197 from'../realtimecollaborativeediting/websocketgateway';import _0x39d5fe from'../realtimecollaborativeediting/sessions';export default class a extends _0x424b5e{static get['requires'](){return[_0x501197,_0x373b('0x15'),_0x39d5fe,_0xb0c572];}constructor(_0x5b909e){super(_0x5b909e),this[_0x373b('0x41')]=new Map();}async['init'](){const _0x514e17=this[_0x373b('0x1d')],_0x47626a=_0x514e17[_0x373b('0x3c')][_0x373b('0x36')](_0x373b('0x15'));if(_0x514e17[_0x373b('0x3c')][_0x373b('0x36')](_0x501197)[_0x373b('0x11')](this),_0x47626a[_0x373b('0x3b')]={'addCommentThread':async({channelId:_0x1161e0,threadId:_0x4816a6,comments:_0x15cd9c,resolvedAt:_0x1861e5,resolvedBy:_0x7804,context:_0x3c35e2,attributes:_0x5cf2a5})=>{const _0x5ef549=await this['_getService'](_0x1161e0)[_0x373b('0x3d')]({'commentThreadId':_0x4816a6,'comments':_0x15cd9c[_0x373b('0x30')](_0x5ed851=>function(_0x245125,_0x3eccef,_0x2cea5e){return{'commentThreadId':_0x2cea5e,'commentId':_0x245125[_0x373b('0x4')],'userId':_0x245125['authorId'],'content':_0x245125[_0x373b('0xc')],'documentId':_0x3eccef,'createdAt':_0x245125['createdAt'],'attributes':_0x245125[_0x373b('0x32')]||{}};}(_0x5ed851,_0x1161e0,_0x4816a6)),'resolvedAt':_0x1861e5,'resolvedBy':_0x7804,'context':_0x3c35e2,'attributes':_0x5cf2a5})['catch'](B);return{'threadId':_0x5ef549[_0x373b('0x0')],'comments':_0x5ef549[_0x373b('0xf')]};},'getCommentThread':async({channelId:_0x14954d,threadId:_0x56538a})=>{const _0x5e5122=await this[_0x373b('0x2c')](_0x14954d)[_0x373b('0x35')](_0x56538a)[_0x373b('0x7')](B);return await this['_fetchMissingUsersForThreads']([_0x5e5122]),{'threadId':_0x5e5122['commentThreadId'],'comments':_0x5e5122[_0x373b('0xf')][_0x373b('0x30')](R),'context':_0x5e5122[_0x373b('0x1d')],'resolvedAt':_0x5e5122['resolvedAt'],'resolvedBy':_0x5e5122['resolvedBy'],'attributes':_0x5e5122['attributes']||{}};},'updateCommentThread':async({channelId:_0x415d8e,threadId:_0x2beeba,context:_0x1cdc83,attributes:_0x1567b0})=>this['_getService'](_0x415d8e)['updateCommentThread']({'commentThreadId':_0x2beeba,'context':_0x1cdc83,'attributes':_0x1567b0})[_0x373b('0x7')](F)[_0x373b('0x7')](B),'resolveCommentThread':async({channelId:_0x4bbe40,threadId:_0x37ae14})=>{const _0x5308ce=await this[_0x373b('0x2c')](_0x4bbe40)[_0x373b('0x21')](_0x37ae14)[_0x373b('0x7')](F)[_0x373b('0x7')](B);return{'threadId':_0x5308ce[_0x373b('0x0')],'resolvedAt':_0x5308ce[_0x373b('0x8')],'resolvedBy':_0x5308ce[_0x373b('0x26')]};},'reopenCommentThread':async({channelId:_0x5ef9ca,threadId:_0x5809a5})=>this[_0x373b('0x2c')](_0x5ef9ca)[_0x373b('0x18')](_0x5809a5)[_0x373b('0x7')](F)[_0x373b('0x7')](B),'removeCommentThread':({channelId:_0x564121,threadId:_0x1a397e})=>this['_getService'](_0x564121)['removeCommentThread'](_0x1a397e)[_0x373b('0x7')](F)['catch'](B),'addComment':({channelId:_0x59f45d,threadId:_0x20d98b,commentId:_0x239098,content:_0x3d62ea,attributes:_0x142ad5})=>this['_getService'](_0x59f45d)[_0x373b('0x27')](_0x20d98b,_0x239098,_0x3d62ea,_0x142ad5)[_0x373b('0x7')](B),'updateComment':({channelId:_0x3dcb0c,threadId:_0x538f66,commentId:_0x3a0e0d,content:_0x3ca085,attributes:_0x197f51})=>this[_0x373b('0x2c')](_0x3dcb0c)['updateComment'](_0x538f66,_0x3a0e0d,_0x3ca085,_0x197f51)[_0x373b('0x7')](F)[_0x373b('0x7')](B),'removeComment':({channelId:_0x258524,threadId:_0xffc0c5,commentId:_0x32ebbb})=>this[_0x373b('0x2c')](_0x258524)[_0x373b('0x29')](_0xffc0c5,_0x32ebbb)[_0x373b('0x7')](F)[_0x373b('0x7')](B)},_0x514e17 instanceof _0xdeef7c){const _0x568bbb=_0x514e17[_0x373b('0x16')][_0x373b('0x36')](_0x373b('0x6')),_0x40f15f=_0x514e17[_0x373b('0x3c')][_0x373b('0x36')](_0x39d5fe);await this['_setUpService'](_0x568bbb);const _0x451af4=await this[_0x373b('0x41')][_0x373b('0x36')](_0x568bbb)[_0x373b('0x43')]();this[_0x373b('0x20')](_0x40f15f,_0x373b('0x2')+_0x568bbb,(_0x3f060b,{session:_0x51c14d})=>{_0x51c14d['id']===_0x40f15f['mySessionId']&&(_0x3f060b[_0x373b('0x3e')](),this[_0x373b('0x1d')]['plugins'][_0x373b('0x36')]('Permissions')['setPermissions'](_0x51c14d[_0x373b('0x14')],_0x568bbb));}),_0x40f15f['register'](_0x568bbb,_0x451af4);}}async[_0x373b('0x17')](_0xe8a091){if(this[_0x373b('0x41')][_0x373b('0x1f')](_0xe8a091))throw new _0x4fabdb(_0x373b('0x1c'),null,{'channelId':_0xe8a091});const _0x5e712c=this[_0x373b('0x1d')]['plugins'][_0x373b('0x36')](_0x373b('0x15')),_0x46e15d=new a[(_0x373b('0x42'))](_0xe8a091);this[_0x373b('0x41')][_0x373b('0x23')](_0xe8a091,_0x46e15d),this[_0x373b('0x20')](_0x46e15d,_0x373b('0x2f'),(_0x4e5960,_0xcf803d)=>{const {commentThreadId:_0x2a118a,documentId:_0x269c52,context:_0x151ef4,attributes:_0x43eff6,resolvedAt:_0x8eaf56,resolvedBy:_0x465242,comments:_0x43a16e}=_0xcf803d;_0x5e712c[_0x373b('0x35')](_0x2a118a)||_0x5e712c['addCommentThread']({'threadId':_0x2a118a,'channelId':_0x269c52,'comments':_0x43a16e?_0x43a16e[_0x373b('0x30')](R):[],'context':_0x151ef4,'attributes':_0x43eff6,'resolvedAt':_0x8eaf56,'resolvedBy':_0x465242,'isFromAdapter':!0x0});}),this[_0x373b('0x20')](_0x46e15d,_0x373b('0x2b'),(_0x41ed66,{commentThreadId:_0x1430a9,documentId:_0x43e742,context:_0x26063a,attributes:_0x3d520f})=>{_0x5e712c[_0x373b('0x35')](_0x1430a9)&&_0x5e712c[_0x373b('0x3f')]({'threadId':_0x1430a9,'channelId':_0x43e742,'context':_0x26063a,'attributes':_0x3d520f,'isFromAdapter':!0x0});}),this[_0x373b('0x20')](_0x46e15d,_0x373b('0xb'),(_0x3b494a,{commentThreadId:_0x3cd7f2,resolvedBy:_0x13f9c2,resolvedAt:_0x4ba0b5})=>{const _0x1e7917=_0x5e712c[_0x373b('0x35')](_0x3cd7f2);_0x1e7917&&_0x1e7917[_0x373b('0x37')]({'resolvedBy':_0x13f9c2,'resolvedAt':_0x4ba0b5,'isFromAdapter':!0x0});}),this[_0x373b('0x20')](_0x46e15d,'commentThreadReopened',(_0x1bcd4e,{commentThreadId:_0x18149d})=>{const _0x546ee1=_0x5e712c[_0x373b('0x35')](_0x18149d);_0x546ee1&&_0x546ee1[_0x373b('0x33')]({'isFromAdapter':!0x0});}),this[_0x373b('0x20')](_0x46e15d,_0x373b('0x2a'),(_0x4a164f,{commentThreadId:_0x3c4163})=>{const _0x6b4df1=_0x5e712c['getCommentThread'](_0x3c4163);_0x6b4df1&&_0x6b4df1[_0x373b('0x3')]({'isFromAdapter':!0x0});}),this[_0x373b('0x20')](_0x46e15d,'commentAdded',(_0x37af91,_0x4a711b)=>{const _0x475b46=_0x4a711b[_0x373b('0x0')],_0xec7890=_0x5e712c[_0x373b('0x35')](_0x475b46);_0xec7890&&_0xec7890[_0x373b('0x27')]({...R(_0x4a711b),'isFromAdapter':!0x0});}),this[_0x373b('0x20')](_0x46e15d,'commentUpdated',(_0x4ee314,{commentThreadId:_0x15ec12,commentId:_0x55b624,content:_0xddb7df,attributes:_0x29c370})=>{const _0x203f6d=_0x5e712c[_0x373b('0x35')](_0x15ec12);if(_0x203f6d){const _0xf9c09b=_0x203f6d[_0x373b('0x9')](_0x55b624);_0xf9c09b&&_0xf9c09b[_0x373b('0x1e')]({'content':_0xddb7df,'attributes':_0x29c370,'isFromAdapter':!0x0});}}),this['listenTo'](_0x46e15d,_0x373b('0xa'),(_0x299c98,{commentThreadId:_0x31bdd9,commentId:_0x2304ae})=>{const _0x397128=_0x5e712c[_0x373b('0x35')](_0x31bdd9);if(_0x397128){const _0x3cef81=_0x397128['getComment'](_0x2304ae);_0x3cef81&&_0x3cef81[_0x373b('0x3')]({'isFromAdapter':!0x0});}}),await this[_0x373b('0x3a')](_0xe8a091);}['destroy'](){if(this[_0x373b('0x1d')]instanceof _0xdeef7c){const _0x2bfcf9=this[_0x373b('0x1d')][_0x373b('0x16')][_0x373b('0x36')]('collaboration.channelId');this[_0x373b('0x34')](_0x2bfcf9);}}[_0x373b('0x34')](_0x56d43c){if(!this[_0x373b('0x41')]['has'](_0x56d43c))throw new _0x4fabdb(_0x373b('0x1'),null,{'channelId':_0x56d43c});this['_getService'](_0x56d43c)['disconnect'](),this[_0x373b('0x41')]['delete'](_0x56d43c);}async[_0x373b('0x28')](){for(const _0x4d7aea of this[_0x373b('0x41')]['keys']())await this[_0x373b('0x3a')](_0x4d7aea);if(this[_0x373b('0x1d')]instanceof _0xdeef7c){const _0x563590=this[_0x373b('0x1d')][_0x373b('0x16')][_0x373b('0x36')](_0x373b('0x6')),_0x248b73=this[_0x373b('0x1d')][_0x373b('0x3c')]['get'](_0x39d5fe);_0x248b73[_0x373b('0x1b')](_0x563590);const _0x4a38b6=await this['_services'][_0x373b('0x36')](_0x563590)['getConnectedSessions']();_0x248b73[_0x373b('0x13')](_0x563590,_0x4a38b6);}}async[_0x373b('0x3a')](_0x523089){const {connection:_0x1aef91}=this['context'][_0x373b('0x3c')]['get'](_0x501197),_0x12efc9=this[_0x373b('0x1d')]['plugins'][_0x373b('0x36')](_0x373b('0x15')),_0x4e1145=this['_services']['get'](_0x523089),_0x50b8ae=await _0x4e1145[_0x373b('0x19')](_0x1aef91);await this[_0x373b('0x39')](_0x50b8ae);const _0x4ac075=new Set(Array[_0x373b('0x40')](_0x12efc9['getCommentThreads']({'channelId':_0x523089}),_0x1276be=>_0x1276be['id']));for(const _0x4752f5 of _0x50b8ae)_0x4ac075[_0x373b('0x22')](_0x4752f5[_0x373b('0x0')]);for(const _0x53ad25 of _0x4ac075)_0x12efc9['getCommentThread'](_0x53ad25)['remove']({'isFromAdapter':!0x0});for(const _0x4d450c of _0x50b8ae){let _0x1e1ff5=_0x12efc9[_0x373b('0x35')](_0x4d450c[_0x373b('0x0')]);const {commentThreadId:_0x1d09d1,context:_0x57bf53,attributes:_0x1172e3,resolvedBy:_0x2e2fd2,resolvedAt:_0x36fccc,deletedAt:_0x1b67e4}=_0x4d450c;_0x1e1ff5||(_0x1e1ff5=_0x12efc9[_0x373b('0x3d')]({'channelId':_0x523089,'threadId':_0x1d09d1,'context':_0x57bf53,'attributes':_0x1172e3||{},'resolvedBy':_0x2e2fd2,'resolvedAt':_0x36fccc,'deletedAt':_0x1b67e4,'isFromAdapter':!0x0}));const _0x26e105=new Set(Array[_0x373b('0x40')](_0x1e1ff5[_0x373b('0xf')],_0x4dffd7=>_0x4dffd7['id']));for(const _0xbb57c4 of _0x4d450c[_0x373b('0xf')])_0x26e105[_0x373b('0x22')](_0xbb57c4[_0x373b('0x4')]);for(const _0x1f9843 of _0x26e105)_0x1e1ff5[_0x373b('0x9')](_0x1f9843)[_0x373b('0x3')]({'isFromAdapter':!0x0});for(const _0x53a89f of _0x4d450c[_0x373b('0xf')]){const _0x36c65d=_0x1e1ff5[_0x373b('0x9')](_0x53a89f[_0x373b('0x4')]);_0x36c65d?_0x36c65d[_0x373b('0xc')]!==_0x53a89f['content']&&_0x36c65d[_0x373b('0x1e')]({'content':_0x53a89f['content'],'isFromAdapter':!0x0}):_0x1e1ff5[_0x373b('0x27')](Object['assign'](R(_0x53a89f),{'isFromAdapter':!0x0}));}}}[_0x373b('0x2c')](_0x219e0f){if(!this[_0x373b('0x41')][_0x373b('0x1f')](_0x219e0f))throw new _0x4fabdb(_0x373b('0x38'),null,{'channelId':_0x219e0f});return this[_0x373b('0x41')]['get'](_0x219e0f);}async[_0x373b('0x39')](_0x28d7bd){const _0x1c0fbb=this['context'][_0x373b('0x3c')]['get'](_0xb0c572),{connection:_0x126e1e}=this[_0x373b('0x1d')][_0x373b('0x3c')][_0x373b('0x36')](_0x501197),_0xdbacd3=new Set();for(const {resolvedBy:_0x474b09,comments:_0x4e01cf}of _0x28d7bd){_0x474b09&&!_0x1c0fbb[_0x373b('0x12')](_0x474b09)&&_0xdbacd3['add'](_0x474b09);for(const {userId:_0x45b5fe}of _0x4e01cf)_0x1c0fbb[_0x373b('0x12')](_0x45b5fe)||_0xdbacd3[_0x373b('0x31')](_0x45b5fe);}if(0x0===_0xdbacd3[_0x373b('0x25')])return;const _0x20c657=await _0x506edf['getMany'](_0x126e1e,Array[_0x373b('0x40')](_0xdbacd3));for(const _0x1249c7 of _0x20c657)_0x1c0fbb[_0x373b('0x12')](_0x1249c7['id'])||_0x1c0fbb[_0x373b('0x2e')](_0x1249c7);}}async function F(_0x17daf6){if(_0x373b('0x2d')!==_0x17daf6[_0x373b('0xd')])throw _0x17daf6;}function B(_0x3c4140){if((_0x56cbe5=_0x3c4140)['message'][_0x373b('0xe')]('cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.')||_0x56cbe5[_0x373b('0x10')][_0x373b('0xe')](_0x373b('0x24'))||_0x56cbe5[_0x373b('0x10')]['startsWith'](_0x373b('0x1a')))return new Promise(()=>{});var _0x56cbe5;throw _0x3c4140;}function R(_0x413dbc){return{'threadId':_0x413dbc[_0x373b('0x0')],'commentId':_0x413dbc[_0x373b('0x4')],'content':_0x413dbc[_0x373b('0xc')],'createdAt':_0x413dbc['createdAt'],'authorId':_0x413dbc[_0x373b('0x5')],'attributes':_0x413dbc[_0x373b('0x32')]||{}};}a['CommentsService']=_0x121e9d;
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module real-time-collaboration/realtimecollaborativecomments
3
7
  * @publicApi
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ef0=['change:state','config','get','switchReadOnly','_terminateService','destroy','once','connected','listenTo','data','ready','Comments','editor','requires','pluginName','CommentsEditing','RealTimeCollaborativeComments','init','collaboration.channelId','plugins'];(function(_0x4dd1fa,_0x2ef026){const _0xcb7e00=function(_0x2d088c){while(--_0x2d088c){_0x4dd1fa['push'](_0x4dd1fa['shift']());}};_0xcb7e00(++_0x2ef026);}(_0x2ef0,0x78));const _0xcb7e=function(_0x4dd1fa,_0x2ef026){_0x4dd1fa=_0x4dd1fa-0x0;let _0xcb7e00=_0x2ef0[_0x4dd1fa];return _0xcb7e00;};import{Plugin as _0x5b1ce8}from'ckeditor5/src/core';import _0x57592d from'./realtimecollaborativecomments/cloudservicescommentsadapter';import _0x4439bf from'./realtimecollaborativeediting';import _0x1a5beb from'./realtimecollaborativeediting/websocketgateway';export default class m extends _0x5b1ce8{static get[_0xcb7e('0xd')](){return[_0xcb7e('0xb'),_0x57592d,_0x4439bf,_0x1a5beb];}static get[_0xcb7e('0xe')](){return _0xcb7e('0x10');}[_0xcb7e('0x11')](){const _0x5cae80=this[_0xcb7e('0xc')]['plugins'][_0xcb7e('0x2')](_0x1a5beb),_0x133b61=this['editor'][_0xcb7e('0x13')][_0xcb7e('0x2')](_0xcb7e('0xf')),_0x83a711=this['editor'][_0xcb7e('0x13')][_0xcb7e('0x2')](_0x57592d);return this[_0xcb7e('0xc')][_0xcb7e('0x9')][_0xcb7e('0x6')](_0xcb7e('0xa'),()=>{this[_0xcb7e('0x8')](_0x5cae80,_0xcb7e('0x0'),(_0x507ef3,_0x211bfa,_0x4b3b81)=>{_0x133b61['isThreadsLoadingPaused']=_0xcb7e('0x7')!==_0x4b3b81;});}),this[_0xcb7e('0x8')](_0x5cae80,_0xcb7e('0x0'),(_0x273d1c,_0x3fcb8e,_0x203be9)=>{this[_0xcb7e('0xc')]['plugins'][_0xcb7e('0x2')]('CommentsRepository')[_0xcb7e('0x3')](_0xcb7e('0x7')!==_0x203be9);}),_0x83a711['_setUpService'](this[_0xcb7e('0xc')][_0xcb7e('0x1')][_0xcb7e('0x2')]('collaboration.channelId'));}['destroy'](){this[_0xcb7e('0xc')]['plugins'][_0xcb7e('0x2')](_0x57592d)[_0xcb7e('0x4')](this['editor'][_0xcb7e('0x1')][_0xcb7e('0x2')](_0xcb7e('0x12'))),super[_0xcb7e('0x5')]();}}
23
+ const _0x2353=['destroy','change:state','ready','_setUpService','collaboration.channelId','connected','requires','init','Comments','pluginName','listenTo','get','editor','_terminateService','CommentsRepository','isThreadsLoadingPaused','CommentsEditing','data','config','plugins'];(function(_0x16a5c3,_0x235322){const _0x5a53a8=function(_0x909be0){while(--_0x909be0){_0x16a5c3['push'](_0x16a5c3['shift']());}};_0x5a53a8(++_0x235322);}(_0x2353,0xc3));const _0x5a53=function(_0x16a5c3,_0x235322){_0x16a5c3=_0x16a5c3-0x0;let _0x5a53a8=_0x2353[_0x16a5c3];return _0x5a53a8;};import{Plugin as _0x4cc80e}from'ckeditor5/src/core';import _0x5d142e from'./realtimecollaborativecomments/cloudservicescommentsadapter';import _0x3d5886 from'./realtimecollaborativeediting';import _0x16362d from'./realtimecollaborativeediting/websocketgateway';export default class m extends _0x4cc80e{static get[_0x5a53('0xb')](){return[_0x5a53('0xd'),_0x5d142e,_0x3d5886,_0x16362d];}static get[_0x5a53('0xe')](){return'RealTimeCollaborativeComments';}[_0x5a53('0xc')](){const _0x5bc4a0=this['editor'][_0x5a53('0x4')]['get'](_0x16362d),_0x22034a=this[_0x5a53('0x11')][_0x5a53('0x4')][_0x5a53('0x10')](_0x5a53('0x1')),_0x21251d=this[_0x5a53('0x11')]['plugins'][_0x5a53('0x10')](_0x5d142e);return this[_0x5a53('0x11')][_0x5a53('0x2')]['once'](_0x5a53('0x7'),()=>{this['listenTo'](_0x5bc4a0,_0x5a53('0x6'),(_0x7a189b,_0x2b2acf,_0x275ce4)=>{_0x22034a[_0x5a53('0x0')]=_0x5a53('0xa')!==_0x275ce4;});}),this[_0x5a53('0xf')](_0x5bc4a0,'change:state',(_0x14fe4b,_0x206e94,_0x1ac766)=>{this[_0x5a53('0x11')][_0x5a53('0x4')][_0x5a53('0x10')](_0x5a53('0x13'))['switchReadOnly'](_0x5a53('0xa')!==_0x1ac766);}),_0x21251d[_0x5a53('0x8')](this['editor'][_0x5a53('0x3')][_0x5a53('0x10')](_0x5a53('0x9')));}[_0x5a53('0x5')](){this[_0x5a53('0x11')][_0x5a53('0x4')][_0x5a53('0x10')](_0x5d142e)[_0x5a53('0x12')](this[_0x5a53('0x11')][_0x5a53('0x3')][_0x5a53('0x10')](_0x5a53('0x9'))),super['destroy']();}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module real-time-collaboration/realtimecollaborativeediting/realtimecollaborationclient
3
7
  * @publicApi
@@ -102,6 +106,16 @@ export default class RealTimeCollaborationClient extends Plugin {
102
106
  * Fetches missing users based on author IDs of the given operations.
103
107
  */
104
108
  private _fetchMissingUsers;
109
+ /**
110
+ * Performs root loading in a way that is safe for real-time collaboration. Synchronizes with the server and use the local data only
111
+ * if the given root has not been loaded on any other client yet. Returns a promise which resolves after the root is ready.
112
+ *
113
+ * It transforms given data and root attributes into operations and tries to send them to the server. The operations are sent in
114
+ * a regular way. The root is ready after they are finally applied on the server.
115
+ *
116
+ * @private
117
+ */
118
+ private _loadRoot;
105
119
  /**
106
120
  * Handles the initial connection.
107
121
  */