@ckeditor/ckeditor5-real-time-collaboration 35.2.1 → 35.3.1

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.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2370=['init','sessions-register-already-registered','getUserSessions','context','connection','assign','set','requires','_users','remove','_handleSessionAdd','add','delete','addUser','pluginName','role','sessionAdd:','size','values','user','getUser','_registeredSessions','_handleSessionRemove','has','_uniqueUsersCount','defineMe','connected','allConnectedUsers','get','clear','_createUser','channelSessions','unregister','Sessions','channelConnectedUsers','state','plugins','register','stopListening','change:state','sessionId'];(function(_0x1da98f,_0x237020){const _0x34fc64=function(_0x30be16){while(--_0x30be16){_0x1da98f['push'](_0x1da98f['shift']());}};_0x34fc64(++_0x237020);}(_0x2370,0xe0));const _0x34fc=function(_0x1da98f,_0x237020){_0x1da98f=_0x1da98f-0x0;let _0x34fc64=_0x2370[_0x1da98f];return _0x34fc64;};import{ContextPlugin as _0x381f2d}from'ckeditor5/src/core';import{Collection as _0x54a53a,CKEditorError as _0xd02b3e}from'ckeditor5/src/utils';import _0x6b0d1d from'./websocketgateway';import{Users as _0x16fa4d}from'ckeditor5-collaboration/src/collaboration-core';export default class r extends _0x381f2d{static get[_0x34fc('0x24')](){return _0x34fc('0xe');}static get[_0x34fc('0x1d')](){return[_0x6b0d1d,_0x16fa4d];}[_0x34fc('0x16')](){const _0x1fdcf4=this[_0x34fc('0x19')],_0x59002c=_0x1fdcf4[_0x34fc('0x11')][_0x34fc('0x9')](_0x6b0d1d);this['channelSessions']=new Map(),this[_0x34fc('0xf')]=new Map(),this[_0x34fc('0x8')]=new _0x54a53a(),this[_0x34fc('0x2')]=new Map(),this['_uniqueUsersCount']=0x0,this[_0x34fc('0x1e')]=_0x1fdcf4[_0x34fc('0x11')]['get'](_0x16fa4d),this['listenTo'](_0x59002c,_0x34fc('0x14'),(_0x2907c4,_0x1cc60f,_0x529c8e)=>{if(_0x34fc('0x7')!==_0x529c8e)this[_0x34fc('0xc')]['forEach'](_0x49d051=>_0x49d051[_0x34fc('0xa')]()),this['channelConnectedUsers']['forEach'](_0x3bf0a2=>_0x3bf0a2[_0x34fc('0xa')]()),this[_0x34fc('0x8')][_0x34fc('0xa')]();else for(const [_0x51575c,_0x41dfa5]of this['_registeredSessions'])for(const _0x200326 of _0x41dfa5)this[_0x34fc('0x20')](_0x51575c,_0x200326);}),this[_0x34fc('0xb')](_0x59002c['connection']['me'],!0x0);}[_0x34fc('0x12')](_0x2d0c16,_0x104d96){if(this[_0x34fc('0x2')][_0x34fc('0x4')](_0x2d0c16))throw new _0xd02b3e(_0x34fc('0x17'),null,{'channelId':_0x2d0c16});this[_0x34fc('0x2')][_0x34fc('0x1c')](_0x2d0c16,_0x104d96),this[_0x34fc('0xc')][_0x34fc('0x1c')](_0x2d0c16,new _0x54a53a()),this[_0x34fc('0xf')][_0x34fc('0x1c')](_0x2d0c16,new _0x54a53a()),this['listenTo'](_0x104d96,'add',(_0x2ad59a,_0x693d08)=>this['_handleSessionAdd'](_0x2d0c16,_0x693d08)),this['listenTo'](_0x104d96,'remove',(_0x2a9ee9,_0x214adb)=>this[_0x34fc('0x3')](_0x2d0c16,_0x214adb));for(const _0x5e3423 of _0x104d96)this[_0x34fc('0x20')](_0x2d0c16,_0x5e3423);}[_0x34fc('0xd')](_0x558745){if(!this[_0x34fc('0x2')]['has'](_0x558745))throw new _0xd02b3e('sessions-unregister-not-exist',null,{'channelId':_0x558745});const _0x13e85e=this[_0x34fc('0x2')][_0x34fc('0x9')](_0x558745);this[_0x34fc('0x13')](_0x13e85e);for(const _0x6992c3 of _0x13e85e)_0x34fc('0x7')===this[_0x34fc('0x19')]['plugins'][_0x34fc('0x9')](_0x6b0d1d)[_0x34fc('0x10')]&&this['_handleSessionRemove'](_0x558745,_0x6992c3);this[_0x34fc('0x2')][_0x34fc('0x22')](_0x558745),this[_0x34fc('0xc')]['delete'](_0x558745),this[_0x34fc('0xf')]['delete'](_0x558745);}get['mySessionId'](){return this[_0x34fc('0x19')][_0x34fc('0x11')][_0x34fc('0x9')](_0x6b0d1d)[_0x34fc('0x1a')][_0x34fc('0x15')];}['getUserBySessionId'](_0x598aa7){for(const _0x134ef4 of this[_0x34fc('0xc')]['values']())for(const _0x59ecf9 of _0x134ef4)if(_0x59ecf9['id']===_0x598aa7)return _0x59ecf9[_0x34fc('0x0')];}[_0x34fc('0x18')](_0xada958,_0xac3278){const _0x38895f=_0xac3278?[this[_0x34fc('0xc')][_0x34fc('0x9')](_0xac3278)]:this['channelSessions'][_0x34fc('0x28')](),_0x45cbd0=new Set();for(const _0x4270da of _0x38895f)for(const _0x3ec1ce of _0x4270da)_0x3ec1ce[_0x34fc('0x0')]['id']===_0xada958['id']&&_0x45cbd0[_0x34fc('0x21')](_0x3ec1ce['id']);return _0x45cbd0;}['getUserRole'](_0x1b5045){for(const _0x54d75d of this[_0x34fc('0xc')][_0x34fc('0x28')]())for(const _0x435c27 of _0x54d75d)if(_0x435c27['user']===_0x1b5045)return _0x435c27[_0x34fc('0x25')];}[_0x34fc('0x20')](_0x163e41,_0x201fc0){if(_0x34fc('0x7')!==this[_0x34fc('0x19')]['plugins'][_0x34fc('0x9')](_0x6b0d1d)[_0x34fc('0x10')])return;const _0x1a0d33=_0x201fc0[_0x34fc('0x0')],_0xe22f0=this['_users'][_0x34fc('0x1')](_0x1a0d33['id'])||this[_0x34fc('0xb')](_0x1a0d33),_0x7113ff=Object[_0x34fc('0x1b')]({},_0x201fc0,{'user':_0xe22f0});this['channelSessions'][_0x34fc('0x9')](_0x163e41)['add'](_0x7113ff);const _0x3f8ad9=this['channelConnectedUsers'][_0x34fc('0x9')](_0x163e41);_0x3f8ad9[_0x34fc('0x4')](_0xe22f0['id'])||_0x3f8ad9[_0x34fc('0x21')](_0xe22f0),this[_0x34fc('0x8')]['has'](_0xe22f0['id'])||this[_0x34fc('0x8')][_0x34fc('0x21')](_0xe22f0),this['fire'](_0x34fc('0x26')+_0x163e41,{'channelId':_0x163e41,'session':_0x7113ff});}['_handleSessionRemove'](_0x170172,_0x5f448a){if(_0x34fc('0x7')!==this[_0x34fc('0x19')][_0x34fc('0x11')][_0x34fc('0x9')](_0x6b0d1d)[_0x34fc('0x10')])return;const _0x276efc=this[_0x34fc('0xf')]['get'](_0x170172),_0x1c3ad2=_0x5f448a[_0x34fc('0x0')];this['channelSessions'][_0x34fc('0x9')](_0x170172)[_0x34fc('0x1f')](_0x5f448a['id']),_0x276efc[_0x34fc('0x4')](_0x1c3ad2['id'])&&!this['getUserSessions'](_0x1c3ad2,_0x170172)[_0x34fc('0x27')]&&_0x276efc[_0x34fc('0x1f')](_0x1c3ad2['id']),this['allConnectedUsers']['get'](_0x1c3ad2['id'])&&!this[_0x34fc('0x18')](_0x1c3ad2)[_0x34fc('0x27')]&&this['allConnectedUsers'][_0x34fc('0x1f')](_0x1c3ad2['id']);}[_0x34fc('0xb')](_0x4dc421,_0xf694aa){const _0x359525=this[_0x34fc('0x1e')][_0x34fc('0x23')](_0x4dc421);return _0xf694aa&&this['_users'][_0x34fc('0x6')](_0x4dc421['id']),_0x359525['orderNumber']=this[_0x34fc('0x5')]++,_0x359525;}}
23
+ const _0x44b9=['mySessionId','forEach','connected','user','unregister','has','getUserSessions','addUser','fire','allConnectedUsers','delete','context','get','init','role','size','plugins','_handleSessionAdd','sessions-unregister-not-exist','_uniqueUsersCount','add','getUserRole','listenTo','channelSessions','channelConnectedUsers','assign','getUserBySessionId','_handleSessionRemove','values','state','register','pluginName','_users','requires','_registeredSessions','_createUser','remove','change:state','set','connection','clear'];(function(_0x5a5b63,_0x44b9f5){const _0x276ebc=function(_0x5974ab){while(--_0x5974ab){_0x5a5b63['push'](_0x5a5b63['shift']());}};_0x276ebc(++_0x44b9f5);}(_0x44b9,0x1df));const _0x276e=function(_0x5a5b63,_0x44b9f5){_0x5a5b63=_0x5a5b63-0x0;let _0x276ebc=_0x44b9[_0x5a5b63];return _0x276ebc;};import{ContextPlugin as _0x397700}from'ckeditor5/src/core';import{Collection as _0x5aafe1,CKEditorError as _0xe9c95d}from'ckeditor5/src/utils';import _0x1967a9 from'./websocketgateway';import{Users as _0x151a10}from'ckeditor5-collaboration/src/collaboration-core';export default class r extends _0x397700{static get[_0x276e('0x3')](){return'Sessions';}static get[_0x276e('0x5')](){return[_0x1967a9,_0x151a10];}[_0x276e('0x1a')](){const _0x267a5f=this[_0x276e('0x18')],_0x2ba5f5=_0x267a5f['plugins'][_0x276e('0x19')](_0x1967a9);this['channelSessions']=new Map(),this[_0x276e('0x25')]=new Map(),this[_0x276e('0x16')]=new _0x5aafe1(),this['_registeredSessions']=new Map(),this['_uniqueUsersCount']=0x0,this[_0x276e('0x4')]=_0x267a5f[_0x276e('0x1d')][_0x276e('0x19')](_0x151a10),this['listenTo'](_0x2ba5f5,_0x276e('0x9'),(_0x5d8558,_0x45feaf,_0xb8a08d)=>{if('connected'!==_0xb8a08d)this['channelSessions'][_0x276e('0xe')](_0x41fec7=>_0x41fec7[_0x276e('0xc')]()),this[_0x276e('0x25')][_0x276e('0xe')](_0x5b8300=>_0x5b8300[_0x276e('0xc')]()),this['allConnectedUsers'][_0x276e('0xc')]();else for(const [_0x5f36fd,_0x38306b]of this[_0x276e('0x6')])for(const _0x42f5fb of _0x38306b)this[_0x276e('0x1e')](_0x5f36fd,_0x42f5fb);}),this[_0x276e('0x7')](_0x2ba5f5[_0x276e('0xb')]['me'],!0x0);}[_0x276e('0x2')](_0x2d8cfb,_0x410853){if(this[_0x276e('0x6')][_0x276e('0x12')](_0x2d8cfb))throw new _0xe9c95d('sessions-register-already-registered',null,{'channelId':_0x2d8cfb});this['_registeredSessions'][_0x276e('0xa')](_0x2d8cfb,_0x410853),this['channelSessions'][_0x276e('0xa')](_0x2d8cfb,new _0x5aafe1()),this[_0x276e('0x25')]['set'](_0x2d8cfb,new _0x5aafe1()),this[_0x276e('0x23')](_0x410853,_0x276e('0x21'),(_0x49e019,_0x2635fd)=>this['_handleSessionAdd'](_0x2d8cfb,_0x2635fd)),this['listenTo'](_0x410853,_0x276e('0x8'),(_0x502b70,_0x126d3f)=>this[_0x276e('0x28')](_0x2d8cfb,_0x126d3f));for(const _0x46e421 of _0x410853)this['_handleSessionAdd'](_0x2d8cfb,_0x46e421);}[_0x276e('0x11')](_0x293f2d){if(!this[_0x276e('0x6')][_0x276e('0x12')](_0x293f2d))throw new _0xe9c95d(_0x276e('0x1f'),null,{'channelId':_0x293f2d});const _0x3e1d46=this[_0x276e('0x6')]['get'](_0x293f2d);this['stopListening'](_0x3e1d46);for(const _0x5c652c of _0x3e1d46)'connected'===this[_0x276e('0x18')][_0x276e('0x1d')]['get'](_0x1967a9)[_0x276e('0x1')]&&this[_0x276e('0x28')](_0x293f2d,_0x5c652c);this['_registeredSessions'][_0x276e('0x17')](_0x293f2d),this[_0x276e('0x24')][_0x276e('0x17')](_0x293f2d),this[_0x276e('0x25')][_0x276e('0x17')](_0x293f2d);}get[_0x276e('0xd')](){return this['context'][_0x276e('0x1d')][_0x276e('0x19')](_0x1967a9)[_0x276e('0xb')]['sessionId'];}[_0x276e('0x27')](_0x5684b7){for(const _0x5763a3 of this[_0x276e('0x24')][_0x276e('0x0')]())for(const _0x38193e of _0x5763a3)if(_0x38193e['id']===_0x5684b7)return _0x38193e[_0x276e('0x10')];}['getUserSessions'](_0x29bc1c,_0x47bfc0){const _0x46cefb=_0x47bfc0?[this['channelSessions'][_0x276e('0x19')](_0x47bfc0)]:this[_0x276e('0x24')]['values'](),_0x380a54=new Set();for(const _0x59a637 of _0x46cefb)for(const _0x2692de of _0x59a637)_0x2692de['user']['id']===_0x29bc1c['id']&&_0x380a54[_0x276e('0x21')](_0x2692de['id']);return _0x380a54;}[_0x276e('0x22')](_0xbca643){for(const _0x270347 of this[_0x276e('0x24')][_0x276e('0x0')]())for(const _0x5cc12c of _0x270347)if(_0x5cc12c[_0x276e('0x10')]===_0xbca643)return _0x5cc12c[_0x276e('0x1b')];}[_0x276e('0x1e')](_0x46791e,_0x35faef){if(_0x276e('0xf')!==this[_0x276e('0x18')][_0x276e('0x1d')]['get'](_0x1967a9)['state'])return;const _0x5462a0=_0x35faef[_0x276e('0x10')],_0x81e35f=this[_0x276e('0x4')]['getUser'](_0x5462a0['id'])||this[_0x276e('0x7')](_0x5462a0),_0x35d3b7=Object[_0x276e('0x26')]({},_0x35faef,{'user':_0x81e35f});this['channelSessions'][_0x276e('0x19')](_0x46791e)[_0x276e('0x21')](_0x35d3b7);const _0x3e8387=this[_0x276e('0x25')][_0x276e('0x19')](_0x46791e);_0x3e8387['has'](_0x81e35f['id'])||_0x3e8387[_0x276e('0x21')](_0x81e35f),this['allConnectedUsers'][_0x276e('0x12')](_0x81e35f['id'])||this[_0x276e('0x16')][_0x276e('0x21')](_0x81e35f),this[_0x276e('0x15')]('sessionAdd:'+_0x46791e,{'channelId':_0x46791e,'session':_0x35d3b7});}[_0x276e('0x28')](_0x367632,_0x1e3d91){if(_0x276e('0xf')!==this[_0x276e('0x18')]['plugins'][_0x276e('0x19')](_0x1967a9)[_0x276e('0x1')])return;const _0x53da16=this[_0x276e('0x25')]['get'](_0x367632),_0x468ffc=_0x1e3d91[_0x276e('0x10')];this[_0x276e('0x24')][_0x276e('0x19')](_0x367632)[_0x276e('0x8')](_0x1e3d91['id']),_0x53da16[_0x276e('0x12')](_0x468ffc['id'])&&!this[_0x276e('0x13')](_0x468ffc,_0x367632)[_0x276e('0x1c')]&&_0x53da16[_0x276e('0x8')](_0x468ffc['id']),this['allConnectedUsers'][_0x276e('0x19')](_0x468ffc['id'])&&!this['getUserSessions'](_0x468ffc)['size']&&this['allConnectedUsers'][_0x276e('0x8')](_0x468ffc['id']);}[_0x276e('0x7')](_0x238ba6,_0x86b075){const _0x401691=this[_0x276e('0x4')][_0x276e('0x14')](_0x238ba6);return _0x86b075&&this[_0x276e('0x4')]['defineMe'](_0x238ba6['id']),_0x401691['orderNumber']=this[_0x276e('0x20')]++,_0x401691;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x384f=['isLimit','change','editing','user:range','schema','getRange','for','fromRange','createUserMarkerOperations','model','hasContent','markerRange','requires','hasDomSelection','startsWith','markerName','isInline','&#8203;<span\x20class=\x22ck-user__marker-line\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','ck-user__selection','user:position:','innerHTML','isCollapsed','contenteditable','createRange','setCustomProperty','markerToElement','pluginName','user:position','getAttribute','type','undo','newRange','getSelectionClass','getUserBySessionId','tableCell','color','user:','start','checkChild','isObject','get','addMarker','removeMarker','createUIElement','set','UserMarkers','init','change:range','marker','end','getStart','mySessionId','userPositionMarker','commands','isSimilar','getFirstRange','element','getNearestSelectionRange','deletionPosition','document','priority','updateMarker','applyOperation','_createdBatches','plugins','afterInit','view','editor','size','selection','getCustomProperty','split','getMarkerClass','span','data-session-id','highest','clear','batch','detach','name','update:user:range','toRange','markers','$graveyard','user:range:','orderNumber','editingDowncast','has','enqueueChange','toDomElement','root','conversion','reconvertMarker','rootName','oldRange'];(function(_0x2de5f9,_0x384f14){const _0x119a94=function(_0x4ba0ea){while(--_0x4ba0ea){_0x2de5f9['push'](_0x2de5f9['shift']());}};_0x119a94(++_0x384f14);}(_0x384f,0x124));const _0x119a=function(_0x2de5f9,_0x384f14){_0x2de5f9=_0x2de5f9-0x0;let _0x119a94=_0x384f[_0x2de5f9];return _0x119a94;};import{Plugin as _0x30683a}from'ckeditor5/src/core';import _0x5b6c1f from'./sessions';import{LiveRange as _0x26521a}from'ckeditor5/src/engine';import'../../theme/usermarkers.css';export default class V extends _0x30683a{static get[_0x119a('0x5')](){return[_0x5b6c1f];}static get[_0x119a('0x13')](){return _0x119a('0x26');}[_0x119a('0x27')](){const _0x31c97a=this[_0x119a('0x3c')],_0x57eaf6=_0x31c97a[_0x119a('0x39')][_0x119a('0x21')](_0x5b6c1f);_0x31c97a[_0x119a('0x54')][_0x119a('0x5e')](_0x119a('0x4f'))[_0x119a('0x12')]({'model':_0x119a('0x14'),'view':(_0xf9a2fa,{writer:_0x4a22e9})=>function(_0x33b32d,_0x37bd9c,_0x50599d,_0x565501){const _0x3e8fe0=_0x33b32d[_0x119a('0x8')][_0x119a('0x40')](':')[0x2],_0x648c3a=_0x50599d[_0x119a('0x1a')](_0x3e8fe0);if(!_0x648c3a||_0x3e8fe0===_0x50599d[_0x119a('0x2c')])return;if(!_0x565501[_0x119a('0x2')][_0x119a('0x5c')][_0x119a('0x1f')](_0x33b32d[_0x119a('0x4')][_0x119a('0x1e')],'$text'))return;const _0x47b7a7={'class':'ck-user__marker\x20'+_0x648c3a[_0x119a('0x1c')][_0x119a('0x41')](),'data-name':_0x648c3a[_0x119a('0x48')],'data-session-id':_0x3e8fe0},_0x118e71=_0x565501['model']['markers'][_0x119a('0x21')](_0x33b32d[_0x119a('0x8')])[_0x119a('0x2b')](),_0x11c684=_0x118e71['nodeAfter'],_0x2bd075=_0x565501[_0x119a('0x2')][_0x119a('0x5c')];if(_0x11c684&&_0x2bd075[_0x119a('0x20')](_0x11c684)&&_0x2bd075[_0x119a('0x9')](_0x11c684)&&!_0x565501['model'][_0x119a('0x4b')][_0x119a('0x21')]('user:range:'+_0x3e8fe0)[_0x119a('0x5d')]()[_0x119a('0xe')])return;const _0x34fc78=_0x118e71['parent'];_0x565501['model'][_0x119a('0x5c')][_0x119a('0x58')](_0x34fc78)&&!_0x565501[_0x119a('0x2')][_0x119a('0x3')](_0x34fc78)&&(_0x47b7a7[_0x119a('0xf')]=!0x1);const _0x2293ed=function(_0x384cfb,_0x37da8f){const _0x502fe3=_0x384cfb[_0x119a('0x24')](_0x119a('0x42'),_0x37da8f);return _0x384cfb[_0x119a('0x11')](_0x119a('0x2d'),!0x0,_0x502fe3),_0x502fe3['render']=function(_0x22e317){const _0x4589a5=this[_0x119a('0x52')](_0x22e317);return _0x4589a5[_0x119a('0xd')]=_0x119a('0xa'),_0x4589a5;},_0x502fe3[_0x119a('0x2f')]=function(_0x44343e){return this[_0x119a('0x3f')](_0x119a('0x2d'))&&_0x44343e['getCustomProperty']('userPositionMarker')&&this[_0x119a('0x15')](_0x119a('0x43'))==_0x44343e[_0x119a('0x15')](_0x119a('0x43'));},_0x502fe3;}(_0x37bd9c,_0x47b7a7);return _0x2293ed[_0x119a('0x35')]=0x3e8+_0x648c3a[_0x119a('0x4e')],_0x2293ed;}(_0xf9a2fa,_0x4a22e9,_0x57eaf6,_0x31c97a)}),_0x31c97a[_0x119a('0x54')][_0x119a('0x5e')](_0x119a('0x4f'))['markerToHighlight']({'model':_0x119a('0x5b'),'view':_0x5ef79d=>function(_0x1d91e5,_0x23c06b){const _0x304e4e=_0x1d91e5[_0x119a('0x8')][_0x119a('0x40')](':')[0x2];if(_0x304e4e===_0x23c06b[_0x119a('0x2c')])return;const _0x13b7d6=_0x23c06b[_0x119a('0x1a')](_0x304e4e);if(!_0x13b7d6)return{'id':_0x304e4e};return{'id':_0x304e4e,'classes':[_0x119a('0xb'),_0x13b7d6[_0x119a('0x1c')][_0x119a('0x19')]()],'attributes':{'data-session-id':_0x304e4e},'priority':0x7d0+_0x13b7d6[_0x119a('0x4e')]};}(_0x5ef79d,_0x57eaf6)}),function(_0x1fe9e2){const _0x2d1094=_0x1fe9e2[_0x119a('0x2')],_0x87548d=new Map(),_0xaf27c1=_0x1fe9e2[_0x119a('0x39')]['get'](_0x5b6c1f);_0x2d1094[_0x119a('0x4b')]['on'](_0x119a('0x49'),(_0x33dae2,_0x59ad9e,_0x4642f3,_0x10ac23)=>{if(!_0x10ac23&&_0x87548d[_0x119a('0x21')](_0x59ad9e[_0x119a('0x48')]))return _0x87548d[_0x119a('0x21')](_0x59ad9e[_0x119a('0x48')])[_0x119a('0x47')](),void _0x87548d['delete'](_0x59ad9e['name']);const _0x157e45=_0x59ad9e[_0x119a('0x48')][_0x119a('0x40')](':')[0x2];if(_0x157e45===_0xaf27c1[_0x119a('0x2c')])return;const _0x4e73e4='user:position:'+_0x157e45;_0x2d1094['markers'][_0x119a('0x50')](_0x4e73e4)&&_0x1fe9e2[_0x119a('0x5a')][_0x119a('0x55')](_0x4e73e4),_0x59ad9e['on']('change:range',(_0x8810d7,_0x495392,_0x37ed54)=>{if(_0x119a('0x4c')!=_0x495392[_0x119a('0x53')][_0x119a('0x56')]&&_0x119a('0x4c')==_0x59ad9e[_0x119a('0x5d')]()[_0x119a('0x53')][_0x119a('0x56')]&&!_0x87548d[_0x119a('0x50')](_0x59ad9e[_0x119a('0x48')])){const _0x590a12=_0x2d1094[_0x119a('0x5c')][_0x119a('0x32')](_0x37ed54['deletionPosition']);if(_0x590a12){const _0x2446e6=_0x26521a[_0x119a('0x0')](_0x590a12);_0x87548d[_0x119a('0x25')](_0x59ad9e[_0x119a('0x48')],_0x2446e6),_0x2446e6['on'](_0x119a('0x28'),(_0x4a24ba,_0x3fc77d,_0x5beb66)=>{if('$graveyard'==_0x2446e6[_0x119a('0x53')][_0x119a('0x56')]){const _0x1b1bb2=_0x2d1094[_0x119a('0x5c')][_0x119a('0x32')](_0x5beb66[_0x119a('0x33')]);_0x1b1bb2?(_0x2446e6[_0x119a('0x1e')]=_0x1b1bb2['start'],_0x2446e6[_0x119a('0x2a')]=_0x1b1bb2[_0x119a('0x2a')]):(_0x87548d['delete'](_0x59ad9e[_0x119a('0x48')]),_0x2446e6['detach']());}});}}});}),_0x2d1094['document']['on'](_0x119a('0x59'),()=>{_0x87548d[_0x119a('0x3d')]>0x0&&_0x2d1094[_0x119a('0x51')]({'isUndoable':!0x1},_0xc67f5a=>{for(const [_0x427fa2,_0x2ee479]of _0x87548d)_0x119a('0x4c')==_0x2d1094[_0x119a('0x4b')][_0x119a('0x21')](_0x427fa2)[_0x119a('0x5d')]()[_0x119a('0x53')][_0x119a('0x56')]&&(Q(_0x427fa2['split'](':')[0x2],_0x2ee479[_0x119a('0x4a')](),_0x2d1094,_0xc67f5a),_0x2ee479[_0x119a('0x47')]());_0x87548d[_0x119a('0x45')]();});});}(_0x31c97a);}[_0x119a('0x3a')](){const _0x3faedb=this[_0x119a('0x3c')],_0x236af7=_0x3faedb[_0x119a('0x2e')][_0x119a('0x21')](_0x119a('0x17'));_0x236af7&&_0x3faedb[_0x119a('0x2')]['on'](_0x119a('0x37'),(_0x463523,_0x3b6197)=>{const _0x3d523a=_0x3b6197[0x0];if(_0x119a('0x29')!=_0x3d523a[_0x119a('0x16')]||!_0x3d523a['name'][_0x119a('0x7')](_0x119a('0x1d')))return;const _0x80c10a=_0x3d523a[_0x119a('0x46')];_0x236af7[_0x119a('0x38')]['has'](_0x80c10a)&&(_0x3d523a[_0x119a('0x18')]=_0x3d523a[_0x119a('0x57')]?_0x3faedb[_0x119a('0x2')][_0x119a('0x10')](_0x3d523a[_0x119a('0x57')]['start'],_0x3d523a[_0x119a('0x57')][_0x119a('0x2a')]):null);},{'priority':_0x119a('0x44')});}[_0x119a('0x1')](){const _0x19ec97=this['editor'],_0x2b8e2d=_0x19ec97[_0x119a('0x2')][_0x119a('0x34')],_0x583a51=_0x19ec97[_0x119a('0x39')][_0x119a('0x21')](_0x5b6c1f);_0x19ec97[_0x119a('0x2')][_0x119a('0x51')]({'isUndoable':!0x1},_0x5197b1=>{const _0x133a86=_0x119a('0x4d')+_0x583a51[_0x119a('0x2c')],_0x35528d=_0x119a('0xc')+_0x583a51[_0x119a('0x2c')],_0x4939b4=_0x19ec97[_0x119a('0x2')][_0x119a('0x4b')]['has'](_0x133a86);_0x19ec97[_0x119a('0x5a')][_0x119a('0x3b')][_0x119a('0x6')]?Q(_0x583a51[_0x119a('0x2c')],_0x2b8e2d[_0x119a('0x3e')][_0x119a('0x30')](),_0x19ec97[_0x119a('0x2')],_0x5197b1):_0x4939b4&&(_0x5197b1[_0x119a('0x23')](_0x133a86),_0x5197b1[_0x119a('0x23')](_0x35528d));});}}function Q(_0x3546e6,_0x460d7b,_0x5db375,_0x469962){const _0x1ad86c=_0x119a('0x4d')+_0x3546e6,_0x240fbd=_0x119a('0xc')+_0x3546e6,_0x3a9da0=_0x460d7b['getContainedElement']();let _0x46ca29=_0x460d7b['start'];_0x3a9da0&&_0x3a9da0['is'](_0x119a('0x31'),_0x119a('0x1b'))&&(_0x46ca29=function(_0x29324f,_0x3fe9de){for(const _0x9a5054 of _0x29324f['getPositions']())if(_0x3fe9de['schema']['checkChild'](_0x9a5054,'$text'))return _0x9a5054;}(_0x460d7b,_0x5db375),_0x460d7b=_0x469962[_0x119a('0x10')](_0x46ca29)),_0x46ca29=_0x469962[_0x119a('0x10')](_0x46ca29),_0x5db375[_0x119a('0x4b')]['has'](_0x1ad86c)?(_0x469962[_0x119a('0x36')](_0x1ad86c,{'range':_0x460d7b}),_0x469962[_0x119a('0x36')](_0x240fbd,{'range':_0x46ca29})):(_0x469962['addMarker'](_0x1ad86c,{'range':_0x460d7b,'usingOperation':!0x0}),_0x469962[_0x119a('0x22')](_0x240fbd,{'range':_0x46ca29,'usingOperation':!0x0}));}
23
+ const _0xefff=['parent','requires','removeMarker','change','priority','user:','editing','user:position:','tableCell','ck-user__selection','mySessionId','user:position','type','addMarker','set','afterInit','editingDowncast','markerToHighlight','$graveyard','plugins','checkChild','createRange','hasContent','undo','marker','markerToElement','markerName','isObject','fromRange','$text','getStart','reconvertMarker','document','isSimilar','markers','conversion','end','root','getRange','update:user:range','user:range:','data-session-id','oldRange','schema','change:range','color','has','getCustomProperty','rootName','getUserBySessionId','model','newRange','detach','updateMarker','for','element','getNearestSelectionRange','user:range','markerRange','getPositions','getAttribute','commands','&#8203;<span\x20class=\x22ck-user__marker-line\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','editor','name','start','render','isCollapsed','get','size','UserMarkers','delete','createUIElement','userPositionMarker','getMarkerClass','contenteditable','applyOperation','getSelectionClass','createUserMarkerOperations','enqueueChange','isInline','split','highest','selection','_createdBatches','startsWith','getFirstRange','batch','deletionPosition'];(function(_0x51827a,_0xeffff0){const _0x2128be=function(_0x446e14){while(--_0x446e14){_0x51827a['push'](_0x51827a['shift']());}};_0x2128be(++_0xeffff0);}(_0xefff,0x1ba));const _0x2128=function(_0x51827a,_0xeffff0){_0x51827a=_0x51827a-0x0;let _0x2128be=_0xefff[_0x51827a];return _0x2128be;};import{Plugin as _0x1706df}from'ckeditor5/src/core';import _0x182f6a from'./sessions';import{LiveRange as _0x4d340d}from'ckeditor5/src/engine';import'../../theme/usermarkers.css';export default class H extends _0x1706df{static get[_0x2128('0x4')](){return[_0x182f6a];}static get['pluginName'](){return _0x2128('0x49');}['init'](){const _0x4d9d00=this[_0x2128('0x42')],_0x2139a1=_0x4d9d00[_0x2128('0x16')][_0x2128('0x47')](_0x182f6a);_0x4d9d00[_0x2128('0x26')][_0x2128('0x39')](_0x2128('0x13'))[_0x2128('0x1c')]({'model':_0x2128('0xe'),'view':(_0x2dfce5,{writer:_0x16a49b})=>function(_0x41586e,_0x6123a4,_0x2e50a5,_0x4d11eb){const _0x5b5fe4=_0x41586e[_0x2128('0x1d')]['split'](':')[0x2],_0x436662=_0x2e50a5['getUserBySessionId'](_0x5b5fe4);if(!_0x436662||_0x5b5fe4===_0x2e50a5[_0x2128('0xd')])return;if(!_0x4d11eb[_0x2128('0x35')][_0x2128('0x2e')][_0x2128('0x17')](_0x41586e[_0x2128('0x3d')][_0x2128('0x44')],_0x2128('0x20')))return;const _0x11e9ef={'class':'ck-user__marker\x20'+_0x436662['color'][_0x2128('0x4d')](),'data-name':_0x436662[_0x2128('0x43')],'data-session-id':_0x5b5fe4},_0x463002=_0x4d11eb[_0x2128('0x35')][_0x2128('0x25')][_0x2128('0x47')](_0x41586e[_0x2128('0x1d')])[_0x2128('0x21')](),_0x542733=_0x463002['nodeAfter'],_0x345415=_0x4d11eb[_0x2128('0x35')]['schema'];if(_0x542733&&_0x345415[_0x2128('0x1e')](_0x542733)&&_0x345415[_0x2128('0x53')](_0x542733)&&!_0x4d11eb[_0x2128('0x35')][_0x2128('0x25')][_0x2128('0x47')](_0x2128('0x2b')+_0x5b5fe4)[_0x2128('0x29')]()[_0x2128('0x46')])return;const _0x3adb1b=_0x463002[_0x2128('0x3')];_0x4d11eb[_0x2128('0x35')][_0x2128('0x2e')]['isLimit'](_0x3adb1b)&&!_0x4d11eb[_0x2128('0x35')][_0x2128('0x19')](_0x3adb1b)&&(_0x11e9ef[_0x2128('0x4e')]=!0x1);const _0x44934b=function(_0x587f79,_0x60963b){const _0x33955a=_0x587f79[_0x2128('0x4b')]('span',_0x60963b);return _0x587f79['setCustomProperty'](_0x2128('0x4c'),!0x0,_0x33955a),_0x33955a[_0x2128('0x45')]=function(_0x1d7286){const _0x3c3759=this['toDomElement'](_0x1d7286);return _0x3c3759['innerHTML']=_0x2128('0x41'),_0x3c3759;},_0x33955a[_0x2128('0x24')]=function(_0x14962a){return this[_0x2128('0x32')](_0x2128('0x4c'))&&_0x14962a['getCustomProperty'](_0x2128('0x4c'))&&this[_0x2128('0x3f')](_0x2128('0x2c'))==_0x14962a[_0x2128('0x3f')](_0x2128('0x2c'));},_0x33955a;}(_0x6123a4,_0x11e9ef);return _0x44934b[_0x2128('0x7')]=0x3e8+_0x436662['orderNumber'],_0x44934b;}(_0x2dfce5,_0x16a49b,_0x2139a1,_0x4d9d00)}),_0x4d9d00['conversion']['for'](_0x2128('0x13'))[_0x2128('0x14')]({'model':_0x2128('0x3c'),'view':_0x21922f=>function(_0x417dba,_0x5ec2af){const _0x435bef=_0x417dba['markerName']['split'](':')[0x2];if(_0x435bef===_0x5ec2af[_0x2128('0xd')])return;const _0x405d32=_0x5ec2af[_0x2128('0x34')](_0x435bef);if(!_0x405d32)return{'id':_0x435bef};return{'id':_0x435bef,'classes':[_0x2128('0xc'),_0x405d32[_0x2128('0x30')][_0x2128('0x50')]()],'attributes':{'data-session-id':_0x435bef},'priority':0x7d0+_0x405d32['orderNumber']};}(_0x21922f,_0x2139a1)}),function(_0x1e6adc){const _0x9303=_0x1e6adc[_0x2128('0x35')],_0x11abfe=new Map(),_0x48afa2=_0x1e6adc[_0x2128('0x16')][_0x2128('0x47')](_0x182f6a);_0x9303[_0x2128('0x25')]['on'](_0x2128('0x2a'),(_0x223270,_0x51efd0,_0x402c9a,_0x17ec40)=>{if(!_0x17ec40&&_0x11abfe[_0x2128('0x47')](_0x51efd0[_0x2128('0x43')]))return _0x11abfe[_0x2128('0x47')](_0x51efd0[_0x2128('0x43')])['detach'](),void _0x11abfe[_0x2128('0x4a')](_0x51efd0['name']);const _0x545b2c=_0x51efd0['name'][_0x2128('0x54')](':')[0x2];if(_0x545b2c===_0x48afa2[_0x2128('0xd')])return;const _0x2ff029=_0x2128('0xa')+_0x545b2c;_0x9303[_0x2128('0x25')][_0x2128('0x31')](_0x2ff029)&&_0x1e6adc[_0x2128('0x9')][_0x2128('0x22')](_0x2ff029),_0x51efd0['on'](_0x2128('0x2f'),(_0x52e18e,_0x4d4789,_0x5011be)=>{if('$graveyard'!=_0x4d4789['root'][_0x2128('0x33')]&&_0x2128('0x15')==_0x51efd0[_0x2128('0x29')]()['root']['rootName']&&!_0x11abfe['has'](_0x51efd0[_0x2128('0x43')])){const _0x34df4e=_0x9303[_0x2128('0x2e')][_0x2128('0x3b')](_0x5011be[_0x2128('0x2')]);if(_0x34df4e){const _0x120314=_0x4d340d[_0x2128('0x1f')](_0x34df4e);_0x11abfe[_0x2128('0x11')](_0x51efd0[_0x2128('0x43')],_0x120314),_0x120314['on'](_0x2128('0x2f'),(_0xaba979,_0x20348c,_0x3dcf)=>{if(_0x2128('0x15')==_0x120314[_0x2128('0x28')]['rootName']){const _0x50ccf3=_0x9303['schema'][_0x2128('0x3b')](_0x3dcf['deletionPosition']);_0x50ccf3?(_0x120314[_0x2128('0x44')]=_0x50ccf3[_0x2128('0x44')],_0x120314[_0x2128('0x27')]=_0x50ccf3[_0x2128('0x27')]):(_0x11abfe['delete'](_0x51efd0[_0x2128('0x43')]),_0x120314[_0x2128('0x37')]());}});}}});}),_0x9303['document']['on'](_0x2128('0x6'),()=>{_0x11abfe[_0x2128('0x48')]>0x0&&_0x9303[_0x2128('0x52')]({'isUndoable':!0x1},_0x2a7bd7=>{for(const [_0x2f5c8b,_0x1a9f6f]of _0x11abfe)_0x2128('0x15')==_0x9303[_0x2128('0x25')][_0x2128('0x47')](_0x2f5c8b)['getRange']()[_0x2128('0x28')][_0x2128('0x33')]&&(Z(_0x2f5c8b[_0x2128('0x54')](':')[0x2],_0x1a9f6f['toRange'](),_0x9303,_0x2a7bd7),_0x1a9f6f[_0x2128('0x37')]());_0x11abfe['clear']();});});}(_0x4d9d00);}[_0x2128('0x12')](){const _0x384d4f=this['editor'],_0x42acb8=_0x384d4f[_0x2128('0x40')][_0x2128('0x47')](_0x2128('0x1a'));_0x42acb8&&_0x384d4f[_0x2128('0x35')]['on'](_0x2128('0x4f'),(_0x177d40,_0x538f9b)=>{const _0x5effad=_0x538f9b[0x0];if(_0x2128('0x1b')!=_0x5effad[_0x2128('0xf')]||!_0x5effad[_0x2128('0x43')][_0x2128('0x58')](_0x2128('0x8')))return;const _0xd5da7e=_0x5effad[_0x2128('0x1')];_0x42acb8[_0x2128('0x57')][_0x2128('0x31')](_0xd5da7e)&&(_0x5effad[_0x2128('0x36')]=_0x5effad[_0x2128('0x2d')]?_0x384d4f[_0x2128('0x35')]['createRange'](_0x5effad['oldRange'][_0x2128('0x44')],_0x5effad[_0x2128('0x2d')][_0x2128('0x27')]):null);},{'priority':_0x2128('0x55')});}[_0x2128('0x51')](){const _0x3ca111=this[_0x2128('0x42')],_0x304765=_0x3ca111[_0x2128('0x35')][_0x2128('0x23')],_0x415138=_0x3ca111[_0x2128('0x16')]['get'](_0x182f6a);_0x3ca111[_0x2128('0x35')][_0x2128('0x52')]({'isUndoable':!0x1},_0x1d0c6e=>{const _0x4c6262=_0x2128('0x2b')+_0x415138['mySessionId'],_0x5a5bbb=_0x2128('0xa')+_0x415138[_0x2128('0xd')],_0x2bb1d7=_0x3ca111[_0x2128('0x35')][_0x2128('0x25')]['has'](_0x4c6262);_0x3ca111[_0x2128('0x9')]['view']['hasDomSelection']?Z(_0x415138['mySessionId'],_0x304765[_0x2128('0x56')][_0x2128('0x0')](),_0x3ca111['model'],_0x1d0c6e):_0x2bb1d7&&(_0x1d0c6e[_0x2128('0x5')](_0x4c6262),_0x1d0c6e[_0x2128('0x5')](_0x5a5bbb));});}}function Z(_0x622f28,_0x159735,_0x5797fc,_0x22e43e){const _0x5aa5f6='user:range:'+_0x622f28,_0x5af7fc=_0x2128('0xa')+_0x622f28,_0xa2218c=_0x159735['getContainedElement']();let _0x4278d6=_0x159735[_0x2128('0x44')];_0xa2218c&&_0xa2218c['is'](_0x2128('0x3a'),_0x2128('0xb'))&&(_0x4278d6=function(_0x138849,_0x22968e){for(const _0x4cbaf5 of _0x138849[_0x2128('0x3e')]())if(_0x22968e[_0x2128('0x2e')]['checkChild'](_0x4cbaf5,_0x2128('0x20')))return _0x4cbaf5;}(_0x159735,_0x5797fc),_0x159735=_0x22e43e[_0x2128('0x18')](_0x4278d6)),_0x4278d6=_0x22e43e['createRange'](_0x4278d6),_0x5797fc[_0x2128('0x25')][_0x2128('0x31')](_0x5aa5f6)?(_0x22e43e[_0x2128('0x38')](_0x5aa5f6,{'range':_0x159735}),_0x22e43e['updateMarker'](_0x5af7fc,{'range':_0x4278d6})):(_0x22e43e[_0x2128('0x10')](_0x5aa5f6,{'range':_0x159735,'usingOperation':!0x0}),_0x22e43e[_0x2128('0x10')](_0x5af7fc,{'range':_0x4278d6,'usingOperation':!0x0}));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1259=['disconnect','stopListening','bind','then','cloudServices.connectionTimeout','disconnected','connection','WebSocketGateway','create','limitExceeded','cloudServices.requestTimeout','offline','init','change:me','listenTo','config','from','context','reconnect','requires','_reconnectionStack','function','webSocketUrl','isInReconnectionStack','_shouldPluginsReconnect','get','cloudservices-reconnection-error','delete','_isBrowserOffline','pluginName','destroy','addToReconnectionStack','plugins','cloudservices-init','state','connect','define','CloudServices','catch','has','removeFromReconnectionStack','all','initialReconnectionInterval','websocketgateway-missing-websocket-url','code','connected','error','constructor','showWarning','websocketgateway-invalid-plugin-interface','Connected\x20users\x20limit\x20exceeded','set','connecting','_domEmitter','token'];(function(_0x2ad686,_0x12597f){const _0x5ea777=function(_0x1018d5){while(--_0x1018d5){_0x2ad686['push'](_0x2ad686['shift']());}};_0x5ea777(++_0x12597f);}(_0x1259,0x118));const _0x5ea7=function(_0x2ad686,_0x12597f){_0x2ad686=_0x2ad686-0x0;let _0x5ea777=_0x1259[_0x2ad686];return _0x5ea777;};import{ContextPlugin as _0x41b78f}from'ckeditor5/src/core';import{DomEmitterMixin as _0x498da3,CKEditorError as _0x2777a4}from'ckeditor5/src/utils';import _0x528f63 from'@ckeditor/ckeditor-cloud-services-collaboration/src/websocketgateway/websocketgateway';import{Notification as _0x276e9e}from'ckeditor5/src/ui';export default class c extends _0x41b78f{static get[_0x5ea7('0xe')](){return[_0x5ea7('0x20'),_0x276e9e];}static get['pluginName'](){return _0x5ea7('0x2');}[_0x5ea7('0x7')](){const _0x8540d8=this[_0x5ea7('0xc')],_0x466868=_0x8540d8[_0x5ea7('0x1b')][_0x5ea7('0x14')](_0x5ea7('0x20')),_0x4c4427=_0x8540d8[_0x5ea7('0x1b')][_0x5ea7('0x14')](_0x276e9e);if(!_0x466868[_0x5ea7('0x31')])throw new _0x2777a4('websocketgateway-missing-token',this);if(!_0x466868[_0x5ea7('0x11')])throw new _0x2777a4(_0x5ea7('0x26'),this);return this['set'](_0x5ea7('0x1d'),_0x5ea7('0x2f')),this[_0x5ea7('0x2e')](_0x5ea7('0x17'),!0x1),this['_reconnectionStack']=new Set(),this[_0x5ea7('0x13')]=!0x1,this['_domEmitter']=Object[_0x5ea7('0x3')](_0x498da3),this['_domEmitter'][_0x5ea7('0x9')](window,_0x5ea7('0x6'),()=>this[_0x5ea7('0x17')]=!0x0),this[_0x5ea7('0x30')]['listenTo'](window,'online',()=>this[_0x5ea7('0x17')]=!0x1),this[_0x5ea7('0xc')][_0x5ea7('0xa')]['define'](_0x5ea7('0x36'),0xa),this['context'][_0x5ea7('0xa')][_0x5ea7('0x1f')]('cloudServices.requestTimeout',0x14),c[_0x5ea7('0x2')][_0x5ea7('0x1e')](_0x466868[_0x5ea7('0x31')],_0x466868[_0x5ea7('0x11')],{'disconnectOnUnload':!0x1,'timeout':0x3e8*this[_0x5ea7('0xc')][_0x5ea7('0xa')]['get'](_0x5ea7('0x36')),'requestTimeout':0x3e8*this[_0x5ea7('0xc')][_0x5ea7('0xa')][_0x5ea7('0x14')](_0x5ea7('0x5'))})[_0x5ea7('0x35')](_0xb19eef=>{if(this[_0x5ea7('0x1')]=_0xb19eef,this[_0x5ea7('0x34')](_0x5ea7('0x1d'))['to'](_0xb19eef,_0x5ea7('0x1d'),this,'_isBrowserOffline',(_0x1a874d,_0x1eb52a)=>(_0x5ea7('0x28')!==_0x1a874d&&(this[_0x5ea7('0x13')]=!0x0),_0x1eb52a||_0x5ea7('0x28')!==_0x1a874d?'disconnected':_0x5ea7('0x0')==this[_0x5ea7('0x1d')]&&this[_0x5ea7('0x13')]?(this['_shouldPluginsReconnect']=!0x1,this['_reconnect'](),_0x5ea7('0x2f')):'connected')),this[_0x5ea7('0x1')]['on']('error',(_0x10751d,_0x5b366f)=>{if(_0x5ea7('0x4')!==_0x5b366f[_0x5ea7('0x27')])throw console[_0x5ea7('0x29')](_0x5b366f),new _0x2777a4(_0x5ea7('0x1c'),null,{'originalError':_0x5b366f});_0x4c4427[_0x5ea7('0x2b')]('The\x20limit\x20of\x20maximum\x20concurrent\x20connections\x20that\x20the\x20collaboration\x20server\x20can\x20handle\x20has\x20been\x20reached.\x20Try\x20opening\x20the\x20document\x20again\x20in\x20a\x20few\x20minutes.\x20Please\x20contact\x20your\x20system\x20administrator\x20if\x20the\x20problem\x20persists.',{'title':_0x5ea7('0x2d'),'namespace':'real-time-collaboration'});}),!_0xb19eef['me'])return new Promise(_0x4e5fd8=>_0xb19eef['on'](_0x5ea7('0x8'),_0x4e5fd8));})['catch'](_0x5723c6=>{throw console[_0x5ea7('0x29')](_0x5723c6),new _0x2777a4(_0x5ea7('0x1c'),null,{'originalError':_0x5723c6});});}[_0x5ea7('0x1a')](_0x46098f){if(_0x5ea7('0x10')!=typeof _0x46098f[_0x5ea7('0xd')])throw new _0x2777a4(_0x5ea7('0x2c'),this);if(this[_0x5ea7('0x12')](_0x46098f))throw new _0x2777a4('websocketgateway-plugin-already-registered',this,{'name':_0x46098f[_0x5ea7('0x2a')][_0x5ea7('0x18')]});this['_reconnectionStack']['add'](_0x46098f);}[_0x5ea7('0x23')](_0x3a8368){this['_reconnectionStack'][_0x5ea7('0x16')](_0x3a8368);}[_0x5ea7('0x12')](_0x327f72){return this[_0x5ea7('0xf')][_0x5ea7('0x22')](_0x327f72);}['_reconnect'](){return this[_0x5ea7('0x1')][_0x5ea7('0xd')]()[_0x5ea7('0x35')](()=>Promise[_0x5ea7('0x24')](Array[_0x5ea7('0xb')](this[_0x5ea7('0xf')],_0x2f751f=>_0x2f751f[_0x5ea7('0xd')]())))[_0x5ea7('0x35')](()=>this[_0x5ea7('0x1d')]='connected')[_0x5ea7('0x21')](_0x53f83c=>{throw console[_0x5ea7('0x29')](_0x53f83c),new _0x2777a4(_0x5ea7('0x15'),this[_0x5ea7('0xc')]);});}['destroy'](){this[_0x5ea7('0x1')]&&this[_0x5ea7('0x1')][_0x5ea7('0x32')](),this[_0x5ea7('0x1d')]=_0x5ea7('0x0'),this['_domEmitter'][_0x5ea7('0x33')](),super[_0x5ea7('0x19')]();}}c[_0x5ea7('0x2')]=_0x528f63,c[_0x5ea7('0x25')]=0x3e8;
23
+ const _0x2189=['_reconnect','disconnect','token','requires','reconnect','connection','get','showWarning','_isBrowserOffline','websocketgateway-invalid-plugin-interface','stopListening','removeFromReconnectionStack','create','config','from','connected','_shouldPluginsReconnect','code','state','cloudServices.connectionTimeout','bind','webSocketUrl','WebSocketGateway','pluginName','cloudservices-reconnection-error','error','add','CloudServices','_domEmitter','websocketgateway-missing-websocket-url','offline','define','destroy','_reconnectionStack','real-time-collaboration','connect','Connected\x20users\x20limit\x20exceeded','context','connecting','delete','change:me','addToReconnectionStack','set','cloudServices.requestTimeout','all','disconnected','listenTo','isInReconnectionStack','websocketgateway-plugin-already-registered','then','has','init','catch'];(function(_0x1f97f5,_0x218961){const _0xdda29a=function(_0x59ef5f){while(--_0x59ef5f){_0x1f97f5['push'](_0x1f97f5['shift']());}};_0xdda29a(++_0x218961);}(_0x2189,0xe8));const _0xdda2=function(_0x1f97f5,_0x218961){_0x1f97f5=_0x1f97f5-0x0;let _0xdda29a=_0x2189[_0x1f97f5];return _0xdda29a;};import{ContextPlugin as _0x4d8e8d}from'ckeditor5/src/core';import{DomEmitterMixin as _0x9d5ee4,CKEditorError as _0x16ce84}from'ckeditor5/src/utils';import _0x21a179 from'@ckeditor/ckeditor-cloud-services-collaboration/src/websocketgateway/websocketgateway';import{Notification as _0x3f0854}from'ckeditor5/src/ui';export default class c extends _0x4d8e8d{static get[_0xdda2('0x24')](){return[_0xdda2('0x7'),_0x3f0854];}static get[_0xdda2('0x3')](){return _0xdda2('0x2');}[_0xdda2('0x1f')](){const _0x54170d=this['context'],_0x3940e1=_0x54170d['plugins'][_0xdda2('0x27')](_0xdda2('0x7')),_0x37e623=_0x54170d['plugins'][_0xdda2('0x27')](_0x3f0854);if(!_0x3940e1['token'])throw new _0x16ce84('websocketgateway-missing-token',this);if(!_0x3940e1[_0xdda2('0x1')])throw new _0x16ce84(_0xdda2('0x9'),this);return this[_0xdda2('0x16')](_0xdda2('0x33'),_0xdda2('0x12')),this[_0xdda2('0x16')](_0xdda2('0x29'),!0x1),this[_0xdda2('0xd')]=new Set(),this[_0xdda2('0x31')]=!0x1,this[_0xdda2('0x8')]=Object[_0xdda2('0x2d')](_0x9d5ee4),this[_0xdda2('0x8')][_0xdda2('0x1a')](window,_0xdda2('0xa'),()=>this['_isBrowserOffline']=!0x0),this[_0xdda2('0x8')][_0xdda2('0x1a')](window,'online',()=>this['_isBrowserOffline']=!0x1),this[_0xdda2('0x11')][_0xdda2('0x2e')][_0xdda2('0xb')](_0xdda2('0x34'),0xa),this[_0xdda2('0x11')][_0xdda2('0x2e')]['define'](_0xdda2('0x17'),0x14),c[_0xdda2('0x2')][_0xdda2('0xf')](_0x3940e1[_0xdda2('0x23')],_0x3940e1['webSocketUrl'],{'disconnectOnUnload':!0x1,'timeout':0x3e8*this[_0xdda2('0x11')]['config'][_0xdda2('0x27')]('cloudServices.connectionTimeout'),'requestTimeout':0x3e8*this['context'][_0xdda2('0x2e')]['get'](_0xdda2('0x17'))})[_0xdda2('0x1d')](_0x18d9f1=>{if(this[_0xdda2('0x26')]=_0x18d9f1,this[_0xdda2('0x0')](_0xdda2('0x33'))['to'](_0x18d9f1,_0xdda2('0x33'),this,_0xdda2('0x29'),(_0x3f2137,_0x1093f8)=>(_0xdda2('0x30')!==_0x3f2137&&(this[_0xdda2('0x31')]=!0x0),_0x1093f8||'connected'!==_0x3f2137?'disconnected':_0xdda2('0x19')==this[_0xdda2('0x33')]&&this[_0xdda2('0x31')]?(this[_0xdda2('0x31')]=!0x1,this[_0xdda2('0x21')](),_0xdda2('0x12')):'connected')),this[_0xdda2('0x26')]['on'](_0xdda2('0x5'),(_0x11c547,_0x4c44ae)=>{if('limitExceeded'!==_0x4c44ae[_0xdda2('0x32')])throw console[_0xdda2('0x5')](_0x4c44ae),new _0x16ce84('cloudservices-init',null,{'originalError':_0x4c44ae});_0x37e623[_0xdda2('0x28')]('The\x20limit\x20of\x20maximum\x20concurrent\x20connections\x20that\x20the\x20collaboration\x20server\x20can\x20handle\x20has\x20been\x20reached.\x20Try\x20opening\x20the\x20document\x20again\x20in\x20a\x20few\x20minutes.\x20Please\x20contact\x20your\x20system\x20administrator\x20if\x20the\x20problem\x20persists.',{'title':_0xdda2('0x10'),'namespace':_0xdda2('0xe')});}),!_0x18d9f1['me'])return new Promise(_0x339923=>_0x18d9f1['on'](_0xdda2('0x14'),_0x339923));})[_0xdda2('0x20')](_0xcec4ba=>{throw console[_0xdda2('0x5')](_0xcec4ba),new _0x16ce84('cloudservices-init',null,{'originalError':_0xcec4ba});});}[_0xdda2('0x15')](_0x2e5c3a){if('function'!=typeof _0x2e5c3a[_0xdda2('0x25')])throw new _0x16ce84(_0xdda2('0x2a'),this);if(this[_0xdda2('0x1b')](_0x2e5c3a))throw new _0x16ce84(_0xdda2('0x1c'),this,{'name':_0x2e5c3a['constructor'][_0xdda2('0x3')]});this[_0xdda2('0xd')][_0xdda2('0x6')](_0x2e5c3a);}[_0xdda2('0x2c')](_0x1cb66f){this[_0xdda2('0xd')][_0xdda2('0x13')](_0x1cb66f);}[_0xdda2('0x1b')](_0x4ff55c){return this[_0xdda2('0xd')][_0xdda2('0x1e')](_0x4ff55c);}['_reconnect'](){return this[_0xdda2('0x26')][_0xdda2('0x25')]()[_0xdda2('0x1d')](()=>Promise[_0xdda2('0x18')](Array[_0xdda2('0x2f')](this[_0xdda2('0xd')],_0x4fb24d=>_0x4fb24d['reconnect']())))['then'](()=>this['state']=_0xdda2('0x30'))[_0xdda2('0x20')](_0x2f8a1d=>{throw console['error'](_0x2f8a1d),new _0x16ce84(_0xdda2('0x4'),this['context']);});}[_0xdda2('0xc')](){this['connection']&&this[_0xdda2('0x26')][_0xdda2('0x22')](),this[_0xdda2('0x33')]=_0xdda2('0x19'),this[_0xdda2('0x8')][_0xdda2('0x2b')](),super[_0xdda2('0xc')]();}}c['WebSocketGateway']=_0x21a179,c['initialReconnectionInterval']=0x3e8;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3621=['RealTimeCollaborativeEditing','requires'];(function(_0xd09269,_0x362190){var _0x5df886=function(_0x4ffd4e){while(--_0x4ffd4e){_0xd09269['push'](_0xd09269['shift']());}};_0x5df886(++_0x362190);}(_0x3621,0x9a));var _0x5df8=function(_0xd09269,_0x362190){_0xd09269=_0xd09269-0x0;var _0x5df886=_0x3621[_0xd09269];return _0x5df886;};import{Plugin as _0x552395}from'ckeditor5/src/core';import _0x47f3e8 from'./realtimecollaborativeediting/realtimecollaborationclient';export default class n extends _0x552395{static get[_0x5df8('0x1')](){return[_0x47f3e8];}static get['pluginName'](){return _0x5df8('0x0');}}
23
+ var _0x210d=['RealTimeCollaborativeEditing','pluginName','requires'];(function(_0x306fae,_0x210ddb){var _0x1c7916=function(_0x2cb68c){while(--_0x2cb68c){_0x306fae['push'](_0x306fae['shift']());}};_0x1c7916(++_0x210ddb);}(_0x210d,0x12f));var _0x1c79=function(_0x306fae,_0x210ddb){_0x306fae=_0x306fae-0x0;var _0x1c7916=_0x210d[_0x306fae];return _0x1c7916;};import{Plugin as _0x9bb9f4}from'ckeditor5/src/core';import _0x1aa364 from'./realtimecollaborativeediting/realtimecollaborationclient';export default class n extends _0x9bb9f4{static get[_0x1c79('0x2')](){return[_0x1aa364];}static get[_0x1c79('0x1')](){return _0x1c79('0x0');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4e9d=['listenTo','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','fromVersion','_revisions','getUser','marker','getMany','isBundleUploaded','serverHistory','code','revisionsUpdated','_createCurrentRevision','baseVersion','_lastRequestId','_bufferedUpdates','Users','adapter','length','getOperations','_revisionHistoryService','_fixRevision','has','isConnected','_getLatestVersion','toVersion','plugins','diffData','change:_isPendingUpdate','message','get','authorsIds','setRevisionData','wrongRequestId','updateRevisions','_bufferUpdate','connected','RevisionHistoryService','state','currentRevision','_startingVersion','buildRevisionData','_preventResendingRevisionData','from','size','creatorId','_isPendingUpdate','config','then','getRevision','catch','_revisionTracker','_update','cloud-services-internal-error:\x20Not\x20connected.','_handleReconnectionError','addRevisionData','_waitForServiceReady','getRevisions','setSource','map','connect','authors','type','editor','max','_oldOffset','isEmptyCurrent','_isConnected','connection','_handleRevisionsUpdate','off','collaboration.channelId','addToReconnectionStack','init','RevisionTracker','_revisionDataBuilder','data','affectsData','repository','isEnabled','reconnect','destroy','_domEmitter','sessionId','bind','_fetchMissingUsers','startsWith','_getLatestVersionFromServerOperations','reverse'];(function(_0x2d0f13,_0x4e9d4d){const _0xe95827=function(_0x3b2118){while(--_0x3b2118){_0x2d0f13['push'](_0x2d0f13['shift']());}};_0xe95827(++_0x4e9d4d);}(_0x4e9d,0x121));const _0xe958=function(_0x2d0f13,_0x4e9d4d){_0x2d0f13=_0x2d0f13-0x0;let _0xe95827=_0x4e9d[_0x2d0f13];return _0xe95827;};import{Plugin as _0x269e01}from'ckeditor5/src/core';import{version as _0x8595a}from'ckeditor5/src/utils';import{Users as _0x40a40f}from'ckeditor5-collaboration/src/collaboration-core';import _0x2a3f8e from'../realtimecollaborativeediting/realtimecollaborationclient';import _0x247582 from'../realtimecollaborativeediting/websocketgateway';import _0x548779 from'../realtimecollaborativeediting/sessions';import _0x522e9b from'@ckeditor/ckeditor-cloud-services-collaboration/src/users/user';import _0x35efe8 from'@ckeditor/ckeditor-cloud-services-collaboration/src/revision-history/revisionhistoryservice';import _0x3aa5cf from'@ckeditor/ckeditor-cloud-services-collaboration/src/editor/editorservice';export default class v extends _0x269e01{static get['requires'](){return[_0x247582,_0x2a3f8e,'RevisionTracker',_0x548779,_0x40a40f];}async[_0xe958('0x2f')](){this[_0xe958('0x4c')]=null,this[_0xe958('0x19')]=this[_0xe958('0x25')][_0xe958('0x0')][_0xe958('0x4')](_0xe958('0x30'));const _0x50e8c0=this[_0xe958('0x25')][_0xe958('0x0')][_0xe958('0x4')](_0x2a3f8e),_0x34d63a=_0x50e8c0['serverHistory'],_0x3721c4=this['editor'][_0xe958('0x0')][_0xe958('0x4')](_0x247582),_0x1d0d19=this['editor'][_0xe958('0x15')][_0xe958('0x4')](_0xe958('0x2d'));this[_0xe958('0x52')]=new v[(_0xe958('0xb'))](_0x1d0d19),this[_0xe958('0x19')][_0xe958('0x20')]({'history':_0x34d63a,'getLatestVersion':()=>this[_0xe958('0x56')](),'getCurrentRevisionId':()=>_0x50e8c0[_0xe958('0x39')]});const _0x381f05=this[_0xe958('0x25')][_0xe958('0x15')][_0xe958('0x4')]('cloudServices.bundleVersion')||_0x8595a,_0x3bf279=await _0x3aa5cf[_0xe958('0x46')](_0x3721c4['connection'],_0x381f05);this['_revisionTracker'][_0xe958('0x4f')]={'getRevision':async({revisionId:_0x147031})=>(await this['_waitForServiceReady'](),await this[_0xe958('0x52')][_0xe958('0x17')](_0x147031)),'updateRevisions':async _0x2ab5a1=>{await this[_0xe958('0x1e')]();const _0x1976c4=this[_0xe958('0x19')][_0xe958('0xd')];if(!_0x3bf279||0x1!==_0x2ab5a1[_0xe958('0x50')]||_0x2ab5a1[0x0]['id']!==_0x1976c4['id']){for(const _0x22f719 of _0x2ab5a1)_0x22f719['id']===_0x1976c4['id']&&(_0x22f719[_0xe958('0x28')]=_0x22f719[_0xe958('0x41')]===_0x22f719['toVersion']);return this[_0xe958('0x52')][_0xe958('0x8')](_0x2ab5a1,this['_lastRequestId'])[_0xe958('0x16')](_0x1b5aac=>{this[_0xe958('0x4c')]=_0x1b5aac;})[_0xe958('0x18')](_0x1149bb=>{if(!(it(_0x1149bb)||'400'===_0x1149bb[_0xe958('0x48')]&&void 0x0!==_0x1149bb[_0xe958('0x32')][_0xe958('0x7')]))throw _0x1149bb;for(const _0x4de6b9 of _0x2ab5a1){!this['_revisionTracker'][_0xe958('0x34')][_0xe958('0x17')](_0x4de6b9['id'])||this[_0xe958('0x19')][_0xe958('0x9')](_0x4de6b9['id'],_0x4de6b9,!0x1);}if(it(_0x1149bb))throw _0x1149bb;});}}},this[_0xe958('0x3f')](this[_0xe958('0x52')],_0xe958('0x49'),(_0x3d6b8b,{revisionsData:_0x2f6c9b,requestId:_0x154028})=>{Math[_0xe958('0x26')](..._0x2f6c9b[_0xe958('0x21')](_0x555598=>_0x555598['toVersion']))>this['_getLatestVersionFromServerOperations']()-0x1?this['_getLatestVersion']()[_0xe958('0x16')](()=>{this[_0xe958('0x2b')](_0x2f6c9b,_0x154028);}):this[_0xe958('0x2b')](_0x2f6c9b,_0x154028);});const {revisions:_0x2fb542,requestId:_0x246850}=await this[_0xe958('0x52')][_0xe958('0x22')](_0x3721c4[_0xe958('0x2a')]);_0x3721c4[_0xe958('0x2e')](this),this[_0xe958('0x4c')]=_0x246850,await this[_0xe958('0x3b')](_0x2fb542);for(const _0x3ca224 of _0x2fb542)this[_0xe958('0x19')]['addRevisionData'](_0x3ca224);this['listenTo'](_0x50e8c0,'change:_isConnected',(_0x35aed2,_0x413570,_0x4efbca)=>{_0x4efbca&&(this[_0xe958('0x27')]=_0x50e8c0['_offset'],_0x35aed2[_0xe958('0x2c')]());}),this[_0xe958('0x19')][_0xe958('0x3a')](_0xe958('0x35'))['to'](_0x3721c4,_0xe958('0xc'),_0x197e61=>_0xe958('0xa')===_0x197e61);}async[_0xe958('0x36')](){const _0x4751b6=this[_0xe958('0x25')][_0xe958('0x0')][_0xe958('0x4')](_0x247582),_0x2ccb96=this[_0xe958('0x25')][_0xe958('0x0')]['get'](_0x2a3f8e),_0x4ed30c=async()=>{const _0x32db5a=this['_revisionTracker'][_0xe958('0xd')],_0xd51c55=_0x32db5a['id'],_0x5b0919=_0xd51c55!==_0x2ccb96['sessionId'];if(_0x5b0919){const _0x2f34f1=_0x2ccb96['_offset']-this[_0xe958('0x27')],_0x35f9c9=this['_getLatestVersionFromServerOperations']();this['_revisionTracker'][_0xe958('0x31')]['reInit']();if(_0x32db5a[_0xe958('0x57')]+_0x2f34f1!==_0x35f9c9){const _0x1fc6c8=_0x32db5a[_0xe958('0x41')]+_0x2f34f1,_0xeb9dc6=this[_0xe958('0x25')][_0xe958('0x0')]['get'](_0xe958('0x4e')),_0x2f0670=this['_revisionTracker'][_0xe958('0xf')]({'currentRevision':_0x32db5a,'from':_0x1fc6c8,'to':_0x35f9c9});_0x2f0670['id']=_0x32db5a['id'];const _0x7d8141=_0x2f0670[_0xe958('0x5')][_0xe958('0x21')](_0x155fc1=>_0xeb9dc6['getUser'](_0x155fc1));_0x32db5a[_0xe958('0x1a')]({..._0x2f0670,'authors':_0x7d8141},!0x0),this[_0xe958('0x19')][_0xe958('0x9')](_0x32db5a['id'],_0x2f0670,!0x0);}this[_0xe958('0x19')][_0xe958('0xe')]=_0x35f9c9,(_0x32db5a[_0xe958('0x57')]===_0x32db5a[_0xe958('0x41')]&&!this[_0xe958('0x19')][_0xe958('0x4d')][_0xe958('0x54')](_0xd51c55)&&this[_0xe958('0x19')][_0xe958('0x34')][_0xe958('0x42')]['remove'](_0xd51c55),this['_revisionTracker'][_0xe958('0x4a')](_0x35f9c9));}const {revisions:_0x160871,requestId:_0x372622}=await this[_0xe958('0x52')][_0xe958('0x36')](_0x4751b6[_0xe958('0x2a')],this[_0xe958('0x4c')]);_0x5b0919&&_0x160871[_0xe958('0x50')]>0x0?_0x2ccb96[_0xe958('0x1c')]():(await this[_0xe958('0x3b')](_0x160871),this[_0xe958('0x2b')](_0x160871,_0x372622),this[_0xe958('0x19')]['sendBufferedUpdates']());};return _0x2ccb96[_0xe958('0x29')]?_0x4ed30c():new Promise((_0x515f11,_0x20c030)=>{_0x2ccb96['once']('change:_isConnected',()=>{_0x4ed30c()['then'](_0x515f11)['catch'](_0x20c030);});});}[_0xe958('0x37')](){this[_0xe958('0x38')]&&this[_0xe958('0x38')]['stopListening'](),super[_0xe958('0x37')]();}async[_0xe958('0x1e')](){this[_0xe958('0x52')][_0xe958('0x55')]||await new Promise(_0x5e309f=>{this[_0xe958('0x3f')](this[_0xe958('0x52')],'connected',_0x54e24c=>{_0x54e24c['off'](),_0x5e309f();});});}[_0xe958('0x3d')](){const _0x2cdaad=this[_0xe958('0x25')][_0xe958('0x0')][_0xe958('0x4')](_0x2a3f8e)[_0xe958('0x47')];for(const _0xa5be93 of _0x2cdaad[_0xe958('0x51')]()[_0xe958('0x3e')]())if(_0xe958('0x44')!==_0xa5be93[_0xe958('0x24')]||_0xa5be93[_0xe958('0x33')])return _0xa5be93[_0xe958('0x4b')]+0x1;}['_getLatestVersion'](){const _0x1c78cb=this['editor'][_0xe958('0x0')]['get'](_0x2a3f8e);return new Promise(_0x29ac64=>{_0x1c78cb[_0xe958('0x14')]?_0x1c78cb['once'](_0xe958('0x2'),()=>{_0x29ac64(this[_0xe958('0x3d')]());}):_0x29ac64(this[_0xe958('0x3d')]());});}[_0xe958('0x2b')](_0x1ca93f,_0x23e6c0){const _0x2b1bf4=this[_0xe958('0x19')]['repository'];this[_0xe958('0x4c')]=_0x23e6c0;for(const _0x424726 of _0x1ca93f){const _0x55809c=_0x2b1bf4['getRevision'](_0x424726['id']);if(_0x55809c){if((_0x424726[_0xe958('0x41')]||_0x424726[_0xe958('0x57')])&&(_0x424726[_0xe958('0x1')]=null),_0x55809c===this['_revisionTracker']['currentRevision']){const _0x253ed3=Math[_0xe958('0x26')](_0x55809c['toVersion'],_0x424726['toVersion']),_0x6f9cc7=Math['max'](_0x55809c[_0xe958('0x41')],_0x424726['fromVersion']);let _0x515dba;_0x55809c[_0xe958('0x57')]===_0x424726[_0xe958('0x57')]&&_0x55809c['fromVersion']===_0x424726[_0xe958('0x41')]?(_0x515dba=!0x0,this[_0xe958('0x10')](_0x424726)):_0x424726[_0xe958('0x57')]===_0x253ed3&&_0x424726[_0xe958('0x41')]===_0x6f9cc7?_0x515dba=!0x1:(_0x55809c[_0xe958('0x57')]===_0x253ed3&&_0x55809c['fromVersion']===_0x6f9cc7||this[_0xe958('0x53')]({'revision':_0x55809c,'from':_0x6f9cc7,'to':_0x253ed3}),_0x515dba=!0x0),_0x515dba&&(delete _0x424726[_0xe958('0x41')],delete _0x424726[_0xe958('0x57')],delete _0x424726[_0xe958('0x1')],delete _0x424726['createdAt'],delete _0x424726[_0xe958('0x5')]);}this[_0xe958('0x19')][_0xe958('0x6')](_0x424726),this[_0xe958('0x10')](_0x424726);}else this[_0xe958('0x19')][_0xe958('0x1d')](_0x424726);}const _0x334e7b=_0x2b1bf4[_0xe958('0x1f')]();_0x334e7b[_0xe958('0x3e')]();for(let _0x372ad3=0x0;_0x372ad3<_0x334e7b[_0xe958('0x50')]-0x1;_0x372ad3++){const _0x2cbe35=_0x334e7b[_0x372ad3],_0x15526b=_0x334e7b[_0x372ad3+0x1];if(_0x2cbe35[_0xe958('0x41')]<_0x15526b[_0xe958('0x57')]){const _0x4a768c=_0x15526b[_0xe958('0x57')],_0x41a321=Math[_0xe958('0x26')](_0x4a768c,_0x2cbe35['toVersion']);this[_0xe958('0x53')]({'revision':_0x2cbe35,'from':_0x4a768c,'to':_0x41a321});}}}[_0xe958('0x53')]({revision:_0x31aae6,from:_0x5a7c01,to:_0x42a9bf}={}){const _0x4d6358=this['editor'][_0xe958('0x0')][_0xe958('0x4')](_0xe958('0x4e')),_0x1dc5db=this['_revisionTracker'][_0xe958('0xf')]({'revision':_0x31aae6,'from':_0x5a7c01,'to':_0x42a9bf});_0x1dc5db[_0xe958('0x23')]=_0x1dc5db['authorsIds']['map'](_0x59c442=>_0x4d6358[_0xe958('0x43')](_0x59c442)),_0x31aae6[_0xe958('0x1a')](_0x1dc5db);}['_preventResendingRevisionData'](_0xf6d9d5){const _0x5ec896={};_0x5ec896['id']=_0xf6d9d5['id'];for(const _0x11fe43 of Object['keys'](_0xf6d9d5))'id'!==_0x11fe43&&(_0x5ec896[_0x11fe43]=void 0x0);this[_0xe958('0x19')][_0xe958('0x9')](_0x5ec896['id'],_0x5ec896,!0x0);}async[_0xe958('0x3b')](_0x2e8f90){const _0x37bec4=this[_0xe958('0x25')][_0xe958('0x0')][_0xe958('0x4')](_0x40a40f),{connection:_0x17a509}=this['editor']['plugins'][_0xe958('0x4')](_0x247582),_0xf29c5b=new Set();for(const _0x27552f of _0x2e8f90){for(const _0xf3eb5a of _0x27552f[_0xe958('0x5')])_0x4176f2(_0xf3eb5a);_0x27552f[_0xe958('0x13')]&&_0x4176f2(_0x27552f[_0xe958('0x13')]);}if(0x0===_0xf29c5b[_0xe958('0x12')])return;const _0x384581=await _0x522e9b[_0xe958('0x45')](_0x17a509,Array[_0xe958('0x11')](_0xf29c5b));for(const _0x3d26b8 of _0x384581)_0x37bec4[_0xe958('0x43')](_0x3d26b8['id'])||_0x37bec4['addUser'](_0x3d26b8);function _0x4176f2(_0x27f7d4){_0x37bec4['getUser'](_0x27f7d4)||_0xf29c5b['add'](_0x27f7d4);}}}function it(_0x5a3d00){return _0x5a3d00['message'][_0xe958('0x3c')](_0xe958('0x40'))||_0x5a3d00[_0xe958('0x3')][_0xe958('0x3c')](_0xe958('0x1b'))||_0x5a3d00[_0xe958('0x3')][_0xe958('0x3c')]('cloud-services-internal-error:\x20Request\x20timeout.');}v[_0xe958('0xb')]=_0x35efe8;
23
+ const _0x4cc5=['isEmptyCurrent','_createCurrentRevision','getRevision','has','_waitForServiceReady','_domEmitter','createdAt','cloud-services-internal-error:\x20Not\x20connected.','getMany','size','get','keys','_oldOffset','_fixRevision','authors','add','_handleRevisionsUpdate','length','connected','isConnected','addRevisionData','startsWith','getOperations','listenTo','sendBufferedUpdates','reverse','revisionsUpdated','_lastRequestId','_getLatestVersionFromServerOperations','_bufferUpdate','isBundleUploaded','_isConnected','serverHistory','getUser','sessionId','change:_isConnected','change:_isPendingUpdate','destroy','_isPendingUpdate','connection','editor','_offset','_getLatestVersion','diffData','then','_revisionTracker','_fetchMissingUsers','config','addToReconnectionStack','_revisionHistoryService','creatorId','message','stopListening','RevisionTracker','connect','_update','repository','_revisions','addUser','adapter','_bufferedUpdates','updateRevisions','currentRevision','type','_revisionDataBuilder','_handleReconnectionError','plugins','authorsIds','toVersion','getRevisions','reInit','400','buildRevisionData','catch','wrongRequestId','code','_preventResendingRevisionData','map','cloudServices.bundleVersion','RevisionHistoryService','Users','bind','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','state','off','cloud-services-internal-error:\x20Request\x20timeout.','reconnect','fromVersion','max','from'];(function(_0x7505f2,_0x4cc527){const _0x52c108=function(_0x4f0e39){while(--_0x4f0e39){_0x7505f2['push'](_0x7505f2['shift']());}};_0x52c108(++_0x4cc527);}(_0x4cc5,0x82));const _0x52c1=function(_0x7505f2,_0x4cc527){_0x7505f2=_0x7505f2-0x0;let _0x52c108=_0x4cc5[_0x7505f2];return _0x52c108;};import{Plugin as _0x362961}from'ckeditor5/src/core';import{version as _0x179697}from'ckeditor5/src/utils';import{Users as _0x4edeb1}from'ckeditor5-collaboration/src/collaboration-core';import _0x49fcea from'../realtimecollaborativeediting/realtimecollaborationclient';import _0x2758b6 from'../realtimecollaborativeediting/websocketgateway';import _0x4a78e0 from'../realtimecollaborativeediting/sessions';import _0x12fe0b from'@ckeditor/ckeditor-cloud-services-collaboration/src/users/user';import _0x53c0b9 from'@ckeditor/ckeditor-cloud-services-collaboration/src/revision-history/revisionhistoryservice';import _0x596f2c from'@ckeditor/ckeditor-cloud-services-collaboration/src/editor/editorservice';export default class v extends _0x362961{static get['requires'](){return[_0x2758b6,_0x49fcea,'RevisionTracker',_0x4a78e0,_0x4edeb1];}async['init'](){this[_0x52c1('0x4d')]=null,this[_0x52c1('0x5')]=this[_0x52c1('0x0')][_0x52c1('0x1a')][_0x52c1('0x3c')](_0x52c1('0xd'));const _0x46e985=this[_0x52c1('0x0')][_0x52c1('0x1a')][_0x52c1('0x3c')](_0x49fcea),_0x30f67f=_0x46e985[_0x52c1('0x52')],_0x5091d0=this['editor'][_0x52c1('0x1a')]['get'](_0x2758b6),_0x5240e6=this[_0x52c1('0x0')]['config'][_0x52c1('0x3c')]('collaboration.channelId');this['_revisionHistoryService']=new v[(_0x52c1('0x27'))](_0x5240e6),this[_0x52c1('0x5')]['setSource']({'history':_0x30f67f,'getLatestVersion':()=>this[_0x52c1('0x2')](),'getCurrentRevisionId':()=>_0x46e985[_0x52c1('0x54')]});const _0x5ae52f=this[_0x52c1('0x0')][_0x52c1('0x7')][_0x52c1('0x3c')](_0x52c1('0x26'))||_0x179697,_0x5a7baf=await _0x596f2c[_0x52c1('0x50')](_0x5091d0[_0x52c1('0x59')],_0x5ae52f);this[_0x52c1('0x5')][_0x52c1('0x13')]={'getRevision':async({revisionId:_0x53f4f8})=>(await this[_0x52c1('0x36')](),await this[_0x52c1('0x9')][_0x52c1('0x34')](_0x53f4f8)),'updateRevisions':async _0x5bbe11=>{await this[_0x52c1('0x36')]();const _0x587aec=this['_revisionTracker'][_0x52c1('0x16')];if(!_0x5a7baf||0x1!==_0x5bbe11[_0x52c1('0x43')]||_0x5bbe11[0x0]['id']!==_0x587aec['id']){for(const _0x2daba6 of _0x5bbe11)_0x2daba6['id']===_0x587aec['id']&&(_0x2daba6[_0x52c1('0x32')]=_0x2daba6[_0x52c1('0x2f')]===_0x2daba6[_0x52c1('0x1c')]);return this[_0x52c1('0x9')][_0x52c1('0x15')](_0x5bbe11,this[_0x52c1('0x4d')])[_0x52c1('0x4')](_0x18d025=>{this[_0x52c1('0x4d')]=_0x18d025;})[_0x52c1('0x21')](_0x3fb7e6=>{if(!(P(_0x3fb7e6)||_0x52c1('0x1f')===_0x3fb7e6[_0x52c1('0x23')]&&void 0x0!==_0x3fb7e6['data'][_0x52c1('0x22')]))throw _0x3fb7e6;for(const _0x504a3e of _0x5bbe11){!this[_0x52c1('0x5')][_0x52c1('0x10')][_0x52c1('0x34')](_0x504a3e['id'])||this['_revisionTracker'][_0x52c1('0x4f')](_0x504a3e['id'],_0x504a3e,!0x1);}if(P(_0x3fb7e6))throw _0x3fb7e6;});}}},this['listenTo'](this[_0x52c1('0x9')],_0x52c1('0x4c'),(_0x475bba,{revisionsData:_0x1ecd11,requestId:_0x350774})=>{Math['max'](..._0x1ecd11[_0x52c1('0x25')](_0x16a6d2=>_0x16a6d2[_0x52c1('0x1c')]))>this[_0x52c1('0x4e')]()-0x1?this[_0x52c1('0x2')]()['then'](()=>{this[_0x52c1('0x42')](_0x1ecd11,_0x350774);}):this[_0x52c1('0x42')](_0x1ecd11,_0x350774);});const {revisions:_0x56434b,requestId:_0xad2c62}=await this[_0x52c1('0x9')][_0x52c1('0xe')](_0x5091d0[_0x52c1('0x59')]);_0x5091d0[_0x52c1('0x8')](this),this['_lastRequestId']=_0xad2c62,await this[_0x52c1('0x6')](_0x56434b);for(const _0x4839e0 of _0x56434b)this[_0x52c1('0x5')]['addRevisionData'](_0x4839e0);this[_0x52c1('0x49')](_0x46e985,'change:_isConnected',(_0x2b8f1b,_0x8a221c,_0x36d961)=>{_0x36d961&&(this['_oldOffset']=_0x46e985[_0x52c1('0x1')],_0x2b8f1b[_0x52c1('0x2c')]());}),this[_0x52c1('0x5')][_0x52c1('0x29')]('isEnabled')['to'](_0x5091d0,_0x52c1('0x2b'),_0x34c6a6=>'connected'===_0x34c6a6);}async[_0x52c1('0x2e')](){const _0x152484=this['editor'][_0x52c1('0x1a')][_0x52c1('0x3c')](_0x2758b6),_0x34de17=this[_0x52c1('0x0')][_0x52c1('0x1a')][_0x52c1('0x3c')](_0x49fcea),_0x48b243=async()=>{const _0x5ad9d5=this[_0x52c1('0x5')][_0x52c1('0x16')],_0x5f53b8=_0x5ad9d5['id'],_0x10b3f6=_0x5f53b8!==_0x34de17[_0x52c1('0x54')];if(_0x10b3f6){const _0x53c4b0=_0x34de17[_0x52c1('0x1')]-this[_0x52c1('0x3e')],_0x39d25e=this['_getLatestVersionFromServerOperations']();this[_0x52c1('0x5')][_0x52c1('0x18')][_0x52c1('0x1e')]();if(_0x5ad9d5[_0x52c1('0x1c')]+_0x53c4b0!==_0x39d25e){const _0x18bb7d=_0x5ad9d5['fromVersion']+_0x53c4b0,_0x12441d=this[_0x52c1('0x0')][_0x52c1('0x1a')][_0x52c1('0x3c')](_0x52c1('0x28')),_0xb549af=this['_revisionTracker'][_0x52c1('0x20')]({'currentRevision':_0x5ad9d5,'from':_0x18bb7d,'to':_0x39d25e});_0xb549af['id']=_0x5ad9d5['id'];const _0x56dd64=_0xb549af[_0x52c1('0x1b')][_0x52c1('0x25')](_0x5cddcd=>_0x12441d[_0x52c1('0x53')](_0x5cddcd));_0x5ad9d5[_0x52c1('0xf')]({..._0xb549af,'authors':_0x56dd64},!0x0),this[_0x52c1('0x5')]['_bufferUpdate'](_0x5ad9d5['id'],_0xb549af,!0x0);}this[_0x52c1('0x5')]['_startingVersion']=_0x39d25e,(_0x5ad9d5[_0x52c1('0x1c')]===_0x5ad9d5[_0x52c1('0x2f')]&&!this[_0x52c1('0x5')][_0x52c1('0x14')][_0x52c1('0x35')](_0x5f53b8)&&this[_0x52c1('0x5')][_0x52c1('0x10')][_0x52c1('0x11')]['remove'](_0x5f53b8),this[_0x52c1('0x5')][_0x52c1('0x33')](_0x39d25e));}const {revisions:_0x3f1515,requestId:_0x232b2c}=await this[_0x52c1('0x9')][_0x52c1('0x2e')](_0x152484['connection'],this[_0x52c1('0x4d')]);_0x10b3f6&&_0x3f1515[_0x52c1('0x43')]>0x0?_0x34de17[_0x52c1('0x19')]():(await this['_fetchMissingUsers'](_0x3f1515),this[_0x52c1('0x42')](_0x3f1515,_0x232b2c),this[_0x52c1('0x5')][_0x52c1('0x4a')]());};return _0x34de17[_0x52c1('0x51')]?_0x48b243():new Promise((_0xa29e26,_0x2c796f)=>{_0x34de17['once'](_0x52c1('0x55'),()=>{_0x48b243()[_0x52c1('0x4')](_0xa29e26)[_0x52c1('0x21')](_0x2c796f);});});}[_0x52c1('0x57')](){this[_0x52c1('0x37')]&&this['_domEmitter'][_0x52c1('0xc')](),super['destroy']();}async['_waitForServiceReady'](){this[_0x52c1('0x9')][_0x52c1('0x45')]||await new Promise(_0x85eca6=>{this[_0x52c1('0x49')](this[_0x52c1('0x9')],_0x52c1('0x44'),_0x4fa9c8=>{_0x4fa9c8['off'](),_0x85eca6();});});}['_getLatestVersionFromServerOperations'](){const _0x41ceb8=this[_0x52c1('0x0')][_0x52c1('0x1a')][_0x52c1('0x3c')](_0x49fcea)[_0x52c1('0x52')];for(const _0x507f55 of _0x41ceb8[_0x52c1('0x48')]()[_0x52c1('0x4b')]())if('marker'!==_0x507f55[_0x52c1('0x17')]||_0x507f55['affectsData'])return _0x507f55['baseVersion']+0x1;}[_0x52c1('0x2')](){const _0x52a7a8=this[_0x52c1('0x0')][_0x52c1('0x1a')][_0x52c1('0x3c')](_0x49fcea);return new Promise(_0x31ec33=>{_0x52a7a8[_0x52c1('0x58')]?_0x52a7a8['once'](_0x52c1('0x56'),()=>{_0x31ec33(this[_0x52c1('0x4e')]());}):_0x31ec33(this[_0x52c1('0x4e')]());});}[_0x52c1('0x42')](_0x1cd916,_0x26865a){const _0x3a5f60=this[_0x52c1('0x5')][_0x52c1('0x10')];this[_0x52c1('0x4d')]=_0x26865a;for(const _0x565afa of _0x1cd916){const _0x2db3ba=_0x3a5f60[_0x52c1('0x34')](_0x565afa['id']);if(_0x2db3ba){if((_0x565afa['fromVersion']||_0x565afa[_0x52c1('0x1c')])&&(_0x565afa[_0x52c1('0x3')]=null),_0x2db3ba===this['_revisionTracker'][_0x52c1('0x16')]){const _0x39d799=Math[_0x52c1('0x30')](_0x2db3ba['toVersion'],_0x565afa[_0x52c1('0x1c')]),_0x25b8ee=Math[_0x52c1('0x30')](_0x2db3ba[_0x52c1('0x2f')],_0x565afa[_0x52c1('0x2f')]);let _0x33ca2d;_0x2db3ba[_0x52c1('0x1c')]===_0x565afa[_0x52c1('0x1c')]&&_0x2db3ba[_0x52c1('0x2f')]===_0x565afa['fromVersion']?(_0x33ca2d=!0x0,this[_0x52c1('0x24')](_0x565afa)):_0x565afa['toVersion']===_0x39d799&&_0x565afa[_0x52c1('0x2f')]===_0x25b8ee?_0x33ca2d=!0x1:(_0x2db3ba['toVersion']===_0x39d799&&_0x2db3ba[_0x52c1('0x2f')]===_0x25b8ee||this[_0x52c1('0x3f')]({'revision':_0x2db3ba,'from':_0x25b8ee,'to':_0x39d799}),_0x33ca2d=!0x0),_0x33ca2d&&(delete _0x565afa[_0x52c1('0x2f')],delete _0x565afa['toVersion'],delete _0x565afa[_0x52c1('0x3')],delete _0x565afa[_0x52c1('0x38')],delete _0x565afa[_0x52c1('0x1b')]);}this['_revisionTracker']['setRevisionData'](_0x565afa),this[_0x52c1('0x24')](_0x565afa);}else this[_0x52c1('0x5')][_0x52c1('0x46')](_0x565afa);}const _0x8ad3a2=_0x3a5f60[_0x52c1('0x1d')]();_0x8ad3a2['reverse']();for(let _0x35bc6f=0x0;_0x35bc6f<_0x8ad3a2[_0x52c1('0x43')]-0x1;_0x35bc6f++){const _0x15fb6b=_0x8ad3a2[_0x35bc6f],_0x35837e=_0x8ad3a2[_0x35bc6f+0x1];if(_0x15fb6b[_0x52c1('0x2f')]<_0x35837e[_0x52c1('0x1c')]){const _0x59ff3e=_0x35837e['toVersion'],_0xa3c329=Math['max'](_0x59ff3e,_0x15fb6b[_0x52c1('0x1c')]);this[_0x52c1('0x3f')]({'revision':_0x15fb6b,'from':_0x59ff3e,'to':_0xa3c329});}}}[_0x52c1('0x3f')]({revision:_0x33ffa3,from:_0x5495ab,to:_0x3799d9}={}){const _0x555da7=this[_0x52c1('0x0')]['plugins']['get'](_0x52c1('0x28')),_0x216f7c=this[_0x52c1('0x5')][_0x52c1('0x20')]({'revision':_0x33ffa3,'from':_0x5495ab,'to':_0x3799d9});_0x216f7c[_0x52c1('0x40')]=_0x216f7c[_0x52c1('0x1b')]['map'](_0x9c1a18=>_0x555da7['getUser'](_0x9c1a18)),_0x33ffa3['_update'](_0x216f7c);}['_preventResendingRevisionData'](_0x36137b){const _0x125c49={};_0x125c49['id']=_0x36137b['id'];for(const _0x6b5e95 of Object[_0x52c1('0x3d')](_0x36137b))'id'!==_0x6b5e95&&(_0x125c49[_0x6b5e95]=void 0x0);this['_revisionTracker']['_bufferUpdate'](_0x125c49['id'],_0x125c49,!0x0);}async[_0x52c1('0x6')](_0x354b18){const _0x5284c4=this[_0x52c1('0x0')][_0x52c1('0x1a')]['get'](_0x4edeb1),{connection:_0x4b44bc}=this[_0x52c1('0x0')]['plugins'][_0x52c1('0x3c')](_0x2758b6),_0xc35dd9=new Set();for(const _0x5711bc of _0x354b18){for(const _0x476aa5 of _0x5711bc[_0x52c1('0x1b')])_0x580756(_0x476aa5);_0x5711bc[_0x52c1('0xa')]&&_0x580756(_0x5711bc[_0x52c1('0xa')]);}if(0x0===_0xc35dd9[_0x52c1('0x3b')])return;const _0x265d51=await _0x12fe0b[_0x52c1('0x3a')](_0x4b44bc,Array[_0x52c1('0x31')](_0xc35dd9));for(const _0xa2fdc2 of _0x265d51)_0x5284c4[_0x52c1('0x53')](_0xa2fdc2['id'])||_0x5284c4[_0x52c1('0x12')](_0xa2fdc2);function _0x580756(_0x5b2d78){_0x5284c4[_0x52c1('0x53')](_0x5b2d78)||_0xc35dd9[_0x52c1('0x41')](_0x5b2d78);}}}function P(_0x3639df){return _0x3639df['message'][_0x52c1('0x47')](_0x52c1('0x2a'))||_0x3639df[_0x52c1('0xb')][_0x52c1('0x47')](_0x52c1('0x39'))||_0x3639df[_0x52c1('0xb')][_0x52c1('0x47')](_0x52c1('0x2d'));}v['RevisionHistoryService']=_0x53c0b9;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x534d=['requires','RevisionHistory','RealTimeCollaborativeRevisionHistory'];(function(_0x959e46,_0x534d4d){var _0x4fe8d0=function(_0x515656){while(--_0x515656){_0x959e46['push'](_0x959e46['shift']());}};_0x4fe8d0(++_0x534d4d);}(_0x534d,0x8b));var _0x4fe8=function(_0x959e46,_0x534d4d){_0x959e46=_0x959e46-0x0;var _0x4fe8d0=_0x534d[_0x959e46];return _0x4fe8d0;};import{Plugin as _0x299d06}from'ckeditor5/src/core';import _0x1e7d4f from'./realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter';import _0x4d00a6 from'./realtimecollaborativeediting';export default class d extends _0x299d06{static get[_0x4fe8('0x2')](){return[_0x4fe8('0x0'),_0x1e7d4f,_0x4d00a6];}static get['pluginName'](){return _0x4fe8('0x1');}}
23
+ var _0x11d6=['RevisionHistory','requires','pluginName'];(function(_0x562735,_0x11d678){var _0x582c36=function(_0x3cd89c){while(--_0x3cd89c){_0x562735['push'](_0x562735['shift']());}};_0x582c36(++_0x11d678);}(_0x11d6,0x1ce));var _0x582c=function(_0x562735,_0x11d678){_0x562735=_0x562735-0x0;var _0x582c36=_0x11d6[_0x562735];return _0x582c36;};import{Plugin as _0x7dcdbc}from'ckeditor5/src/core';import _0x51946a from'./realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter';import _0x23ade6 from'./realtimecollaborativeediting';export default class d extends _0x7dcdbc{static get[_0x582c('0x1')](){return[_0x582c('0x0'),_0x51946a,_0x23ade6];}static get[_0x582c('0x2')](){return'RealTimeCollaborativeRevisionHistory';}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3b12=['catch','message','add','set','getMany','attributes','TrackChangesEditing','getUser','values','TrackChangesService','config','cloud-services-internal-error:\x20Not\x20connected.','_trackChangesService','plugins','_waitForServiceReady','update','state','type','addSuggestionData','requires','_fetchMissingUsersForThreads','find','hasSuggestion','startsWith','off','getSuggestion','addUser','connection','get','originalSuggestionId','delete','open','connect','_bufferedRequests','addToReconnectionStack','editor'];(function(_0x118366,_0x3b126e){const _0x555f12=function(_0x3f1f7b){while(--_0x3f1f7b){_0x118366['push'](_0x118366['shift']());}};_0x555f12(++_0x3b126e);}(_0x3b12,0xad));const _0x555f=function(_0x118366,_0x3b126e){_0x118366=_0x118366-0x0;let _0x555f12=_0x3b12[_0x118366];return _0x555f12;};import{Plugin as _0x3b8cf6}from'ckeditor5/src/core';import _0x1c4ea7 from'@ckeditor/ckeditor-cloud-services-collaboration/src/track-changes/trackchangesservice';import _0x208025 from'../realtimecollaborativeediting/websocketgateway';import _0xf10f9d from'../realtimecollaborativecomments/cloudservicescommentsadapter';import _0x30e649 from'@ckeditor/ckeditor-cloud-services-collaboration/src/users/user';import{Users as _0x531246}from'ckeditor5-collaboration/src/collaboration-core';export default class g extends _0x3b8cf6{static get[_0x555f('0x1a')](){return[_0xf10f9d,_0x555f('0xd'),_0x208025];}constructor(_0x24615e){super(_0x24615e),this[_0x555f('0x4')]=new Map();}['init'](){const _0x43457b=this[_0x555f('0x6')][_0x555f('0x14')]['get'](_0x208025),_0x38b7e4=this[_0x555f('0x6')][_0x555f('0x14')]['get'](_0x555f('0xd')),_0x5edebf=this['editor'][_0x555f('0x11')][_0x555f('0x23')]('collaboration.channelId');return this[_0x555f('0x13')]=new g[(_0x555f('0x10'))](_0x5edebf),_0x38b7e4['adapter']={'getSuggestion':async _0x564369=>{await this[_0x555f('0x15')]();const _0x3e4162=await this[_0x555f('0x13')][_0x555f('0x23')](_0x564369)[_0x555f('0x7')](R);return await this[_0x555f('0x1b')]([_0x3e4162]),_0x3e4162;},'addSuggestion':async({id:_0xe74bfc,type:_0x36cfe2,data:_0x404998,originalSuggestionId:_0x3e8704,attributes:_0x4cf49a})=>{await this[_0x555f('0x15')]();const _0x5a0f8a={'id':_0xe74bfc,'type':_0x36cfe2,'data':_0x404998,'originalSuggestionId':_0x3e8704,'attributes':_0x4cf49a},_0x3f6b2a=await this['_trackChangesService'][_0x555f('0x9')](_0xe74bfc,_0x36cfe2,_0x404998,_0x3e8704,_0x4cf49a)[_0x555f('0x7')](_0x599f5d=>{if(it(_0x599f5d))return new Promise(_0x35b103=>{this[_0x555f('0x4')][_0x555f('0xa')](_0xe74bfc,{'resolve':_0x35b103,'suggestionData':_0x5a0f8a});});throw _0x599f5d;});return this[_0x555f('0x4')][_0x555f('0x1')](_0xe74bfc),_0x3f6b2a;},'updateSuggestion':async(_0x210f7c,_0x2abbfa)=>{if(await this[_0x555f('0x15')](),_0x555f('0x2')!==_0x2abbfa[_0x555f('0x17')])return this[_0x555f('0x13')][_0x555f('0x16')](_0x210f7c,_0x2abbfa)['catch'](R);}},this['listenTo'](this[_0x555f('0x13')],'suggestionUpdated',(_0x2099fd,_0x56f7ee)=>{_0x38b7e4['hasSuggestion'](_0x56f7ee['id'])&&(_0x38b7e4[_0x555f('0x20')](_0x56f7ee['id'])[_0x555f('0xc')]=_0x56f7ee[_0x555f('0xc')]);}),this[_0x555f('0x13')][_0x555f('0x3')](_0x43457b[_0x555f('0x22')])['then'](_0x3e99c6=>(_0x43457b[_0x555f('0x5')](this),this['_fetchMissingUsersForThreads'](_0x3e99c6)['then'](()=>{for(const _0x4b10a5 of _0x3e99c6){_0x38b7e4[_0x555f('0x19')](_0x4b10a5)['_saved']=!0x0;}})));}async['reconnect'](){const _0x5786a9=this['editor'][_0x555f('0x14')][_0x555f('0x23')](_0x555f('0xd')),{connection:_0x4069f1}=this[_0x555f('0x6')][_0x555f('0x14')][_0x555f('0x23')](_0x208025),_0x11bc20=await this[_0x555f('0x13')][_0x555f('0x3')](_0x4069f1);await this[_0x555f('0x1b')](_0x11bc20);for(const {suggestionData:_0x1a61ab,resolve:_0x1693e3}of this[_0x555f('0x4')][_0x555f('0xf')]()){let _0x29cbeb=_0x11bc20[_0x555f('0x1c')](_0x2dc6de=>_0x2dc6de['id']===_0x1a61ab['id']);_0x29cbeb||(_0x29cbeb=await this['_trackChangesService'][_0x555f('0x9')](_0x1a61ab['id'],_0x1a61ab[_0x555f('0x18')],_0x1a61ab['data'],_0x1a61ab[_0x555f('0x0')])),_0x1693e3(_0x29cbeb);}for(const _0x61276d of _0x11bc20)_0x5786a9[_0x555f('0x1d')](_0x61276d['id'])||_0x5786a9['addSuggestionData'](_0x61276d);}async[_0x555f('0x15')](){this['_trackChangesService']['isConnected']||await new Promise(_0x1260fa=>{this['listenTo'](this['_trackChangesService'],'connected',_0x2dfd8d=>{_0x2dfd8d[_0x555f('0x1f')](),_0x1260fa();});});}async[_0x555f('0x1b')](_0x1104d5){const _0x5c97a3=this[_0x555f('0x6')][_0x555f('0x14')]['get'](_0x531246),{connection:_0x5b8a9f}=this['editor'][_0x555f('0x14')][_0x555f('0x23')](_0x208025),_0x3487d9=new Set();for(const {authorId:_0x4e5308}of _0x1104d5)_0x5c97a3['getUser'](_0x4e5308)||_0x3487d9['add'](_0x4e5308);if(0x0===_0x3487d9['size'])return;const _0x361672=await _0x30e649[_0x555f('0xb')](_0x5b8a9f,Array['from'](_0x3487d9));for(const _0x1c0d02 of _0x361672)_0x5c97a3[_0x555f('0xe')](_0x1c0d02['id'])||_0x5c97a3[_0x555f('0x21')](_0x1c0d02);}}function R(_0x3b73ab){if(it(_0x3b73ab))return new Promise(()=>{});throw _0x3b73ab;}function it(_0xfe511d){return _0xfe511d[_0x555f('0x8')][_0x555f('0x1e')](_0x555f('0x12'))||_0xfe511d['message'][_0x555f('0x1e')]('cloud-services-internal-error:\x20Request\x20timeout.');}g[_0x555f('0x10')]=_0x1c4ea7;
23
+ const _0x1588=['then','set','off','add','_trackChangesService','message','getSuggestion','from','state','catch','editor','values','_waitForServiceReady','cloud-services-internal-error:\x20Request\x20timeout.','TrackChangesEditing','plugins','_fetchMissingUsersForThreads','reconnect','open','type','_saved','attributes','collaboration.channelId','connect','data','connected','size','config','addToReconnectionStack','listenTo','adapter','init','startsWith','find','addSuggestionData','get','_bufferedRequests','addUser','getUser','isConnected','requires','TrackChangesService','hasSuggestion'];(function(_0x7d0da,_0x1588a7){const _0x5487da=function(_0x51789f){while(--_0x51789f){_0x7d0da['push'](_0x7d0da['shift']());}};_0x5487da(++_0x1588a7);}(_0x1588,0x66));const _0x5487=function(_0x7d0da,_0x1588a7){_0x7d0da=_0x7d0da-0x0;let _0x5487da=_0x1588[_0x7d0da];return _0x5487da;};import{Plugin as _0x5e1cad}from'ckeditor5/src/core';import _0x350af4 from'@ckeditor/ckeditor-cloud-services-collaboration/src/track-changes/trackchangesservice';import _0x30b881 from'../realtimecollaborativeediting/websocketgateway';import _0x482bef from'../realtimecollaborativecomments/cloudservicescommentsadapter';import _0x2fcfcd from'@ckeditor/ckeditor-cloud-services-collaboration/src/users/user';import{Users as _0x5ac3a0}from'ckeditor5-collaboration/src/collaboration-core';export default class g extends _0x5e1cad{static get[_0x5487('0x18')](){return[_0x482bef,_0x5487('0x29'),_0x30b881];}constructor(_0x49f6f1){super(_0x49f6f1),this[_0x5487('0x14')]=new Map();}[_0x5487('0xf')](){const _0x23cba3=this['editor'][_0x5487('0x2a')][_0x5487('0x13')](_0x30b881),_0x20e671=this['editor']['plugins'][_0x5487('0x13')](_0x5487('0x29')),_0x1e1d22=this[_0x5487('0x25')][_0x5487('0xb')][_0x5487('0x13')](_0x5487('0x6'));return this[_0x5487('0x1f')]=new g[(_0x5487('0x19'))](_0x1e1d22),_0x20e671[_0x5487('0xe')]={'getSuggestion':async _0x14148d=>{await this[_0x5487('0x27')]();const _0x396258=await this['_trackChangesService']['get'](_0x14148d)[_0x5487('0x24')](R);return await this[_0x5487('0x0')]([_0x396258]),_0x396258;},'addSuggestion':async({id:_0x324c24,type:_0xcf8b63,data:_0x1092f9,originalSuggestionId:_0x5ac27e,attributes:_0x49f7ca})=>{await this[_0x5487('0x27')]();const _0x20f726={'id':_0x324c24,'type':_0xcf8b63,'data':_0x1092f9,'originalSuggestionId':_0x5ac27e,'attributes':_0x49f7ca},_0x39c6b3=await this['_trackChangesService'][_0x5487('0x1e')](_0x324c24,_0xcf8b63,_0x1092f9,_0x5ac27e,_0x49f7ca)[_0x5487('0x24')](_0x530d00=>{if(P(_0x530d00))return new Promise(_0x3a88ee=>{this[_0x5487('0x14')][_0x5487('0x1c')](_0x324c24,{'resolve':_0x3a88ee,'suggestionData':_0x20f726});});throw _0x530d00;});return this[_0x5487('0x14')]['delete'](_0x324c24),_0x39c6b3;},'updateSuggestion':async(_0x1a304a,_0x3c3a80)=>{if(await this[_0x5487('0x27')](),_0x5487('0x2')!==_0x3c3a80[_0x5487('0x23')])return this[_0x5487('0x1f')]['update'](_0x1a304a,_0x3c3a80)['catch'](R);}},this[_0x5487('0xd')](this[_0x5487('0x1f')],'suggestionUpdated',(_0x378798,_0x390a4f)=>{_0x20e671[_0x5487('0x1a')](_0x390a4f['id'])&&(_0x20e671[_0x5487('0x21')](_0x390a4f['id'])[_0x5487('0x5')]=_0x390a4f[_0x5487('0x5')]);}),this[_0x5487('0x1f')][_0x5487('0x7')](_0x23cba3['connection'])[_0x5487('0x1b')](_0x423bcc=>(_0x23cba3[_0x5487('0xc')](this),this[_0x5487('0x0')](_0x423bcc)[_0x5487('0x1b')](()=>{for(const _0x528d60 of _0x423bcc){_0x20e671[_0x5487('0x12')](_0x528d60)[_0x5487('0x4')]=!0x0;}})));}async[_0x5487('0x1')](){const _0x550e10=this['editor']['plugins']['get']('TrackChangesEditing'),{connection:_0x57d1c4}=this[_0x5487('0x25')][_0x5487('0x2a')][_0x5487('0x13')](_0x30b881),_0x163c4e=await this[_0x5487('0x1f')][_0x5487('0x7')](_0x57d1c4);await this[_0x5487('0x0')](_0x163c4e);for(const {suggestionData:_0x4f0532,resolve:_0x2760ca}of this['_bufferedRequests'][_0x5487('0x26')]()){let _0x48caa6=_0x163c4e[_0x5487('0x11')](_0x57e0ea=>_0x57e0ea['id']===_0x4f0532['id']);_0x48caa6||(_0x48caa6=await this[_0x5487('0x1f')][_0x5487('0x1e')](_0x4f0532['id'],_0x4f0532[_0x5487('0x3')],_0x4f0532[_0x5487('0x8')],_0x4f0532['originalSuggestionId'])),_0x2760ca(_0x48caa6);}for(const _0x5685e2 of _0x163c4e)_0x550e10['hasSuggestion'](_0x5685e2['id'])||_0x550e10[_0x5487('0x12')](_0x5685e2);}async[_0x5487('0x27')](){this[_0x5487('0x1f')][_0x5487('0x17')]||await new Promise(_0x5a3df6=>{this['listenTo'](this['_trackChangesService'],_0x5487('0x9'),_0x3ecd1c=>{_0x3ecd1c[_0x5487('0x1d')](),_0x5a3df6();});});}async[_0x5487('0x0')](_0x256296){const _0xeeeaa7=this[_0x5487('0x25')][_0x5487('0x2a')][_0x5487('0x13')](_0x5ac3a0),{connection:_0x43433c}=this[_0x5487('0x25')][_0x5487('0x2a')]['get'](_0x30b881),_0x2f3956=new Set();for(const {authorId:_0x2141f2}of _0x256296)_0xeeeaa7[_0x5487('0x16')](_0x2141f2)||_0x2f3956[_0x5487('0x1e')](_0x2141f2);if(0x0===_0x2f3956[_0x5487('0xa')])return;const _0x3cfff3=await _0x2fcfcd['getMany'](_0x43433c,Array[_0x5487('0x22')](_0x2f3956));for(const _0xe059b4 of _0x3cfff3)_0xeeeaa7[_0x5487('0x16')](_0xe059b4['id'])||_0xeeeaa7[_0x5487('0x15')](_0xe059b4);}}function R(_0x42c314){if(P(_0x42c314))return new Promise(()=>{});throw _0x42c314;}function P(_0x15c562){return _0x15c562[_0x5487('0x20')][_0x5487('0x10')]('cloud-services-internal-error:\x20Not\x20connected.')||_0x15c562[_0x5487('0x20')][_0x5487('0x10')](_0x5487('0x28'));}g[_0x5487('0x19')]=_0x350af4;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x59c3=['requires','TrackChanges'];(function(_0x48e4fd,_0x59c3b){var _0x1d18e1=function(_0x1511d2){while(--_0x1511d2){_0x48e4fd['push'](_0x48e4fd['shift']());}};_0x1d18e1(++_0x59c3b);}(_0x59c3,0x196));var _0x1d18=function(_0x48e4fd,_0x59c3b){_0x48e4fd=_0x48e4fd-0x0;var _0x1d18e1=_0x59c3[_0x48e4fd];return _0x1d18e1;};import{Plugin as _0x1c4711}from'ckeditor5/src/core';import _0x4f85a6 from'./realtimecollaborativetrackchanges/cloudservicestrackchangesadapter';import _0x2d7206 from'./realtimecollaborativecomments';export default class p extends _0x1c4711{static get[_0x1d18('0x0')](){return[_0x2d7206,_0x4f85a6,_0x1d18('0x1')];}static get['pluginName'](){return'RealTimeCollaborativeTrackChanges';}}
23
+ var _0x392b=['RealTimeCollaborativeTrackChanges','pluginName','TrackChanges'];(function(_0x148dd7,_0x392bd9){var _0x5b533f=function(_0x289e4d){while(--_0x289e4d){_0x148dd7['push'](_0x148dd7['shift']());}};_0x5b533f(++_0x392bd9);}(_0x392b,0xba));var _0x5b53=function(_0x148dd7,_0x392bd9){_0x148dd7=_0x148dd7-0x0;var _0x5b533f=_0x392b[_0x148dd7];return _0x5b533f;};import{Plugin as _0x5d03ec}from'ckeditor5/src/core';import _0x7d7cda from'./realtimecollaborativetrackchanges/cloudservicestrackchangesadapter';import _0x443790 from'./realtimecollaborativecomments';export default class p extends _0x5d03ec{static get['requires'](){return[_0x443790,_0x7d7cda,_0x5b53('0x2')];}static get[_0x5b53('0x1')](){return _0x5b53('0x0');}}