@ckeditor/ckeditor5-real-time-collaboration 35.1.0 → 35.2.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.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x103d=['state','sessionAdd:','getUserBySessionId','init','allConnectedUsers','defineMe','channelConnectedUsers','values','set','_handleSessionAdd','size','mySessionId','get','role','_users','orderNumber','pluginName','_registeredSessions','user','_handleSessionRemove','channelSessions','context','remove','has','delete','add','sessions-register-already-registered','connection','forEach','change:state','plugins','requires','_uniqueUsersCount','assign','_createUser','connected','unregister','Sessions','register','listenTo','sessions-unregister-not-exist','clear','getUser','fire','sessionId','getUserSessions'];(function(_0x1d2354,_0x103d67){const _0x471484=function(_0x3b4e2e){while(--_0x3b4e2e){_0x1d2354['push'](_0x1d2354['shift']());}};_0x471484(++_0x103d67);}(_0x103d,0xde));const _0x4714=function(_0x1d2354,_0x103d67){_0x1d2354=_0x1d2354-0x0;let _0x471484=_0x103d[_0x1d2354];return _0x471484;};import{ContextPlugin as _0x430633}from'ckeditor5/src/core';import{Collection as _0x278e3b,CKEditorError as _0x4e8713}from'ckeditor5/src/utils';import _0x5062af from'./websocketgateway';import{Users as _0x1d7e2d}from'ckeditor5-collaboration/src/collaboration-core';export default class r extends _0x430633{static get[_0x4714('0x18')](){return _0x4714('0x2d');}static get[_0x4714('0x27')](){return[_0x5062af,_0x1d7e2d];}[_0x4714('0xb')](){const _0x4094a8=this['context'],_0x469ede=_0x4094a8[_0x4714('0x26')][_0x4714('0x14')](_0x5062af);this[_0x4714('0x1c')]=new Map(),this[_0x4714('0xe')]=new Map(),this[_0x4714('0xc')]=new _0x278e3b(),this[_0x4714('0x19')]=new Map(),this[_0x4714('0x28')]=0x0,this['_users']=_0x4094a8[_0x4714('0x26')]['get'](_0x1d7e2d),this[_0x4714('0x1')](_0x469ede,_0x4714('0x25'),(_0x67cc5f,_0x2c647b,_0xf8b185)=>{if(_0x4714('0x2b')!==_0xf8b185)this[_0x4714('0x1c')]['forEach'](_0x511ddc=>_0x511ddc[_0x4714('0x3')]()),this[_0x4714('0xe')][_0x4714('0x24')](_0x3cfcf5=>_0x3cfcf5[_0x4714('0x3')]()),this[_0x4714('0xc')][_0x4714('0x3')]();else for(const [_0x1dfc6f,_0x1a325d]of this[_0x4714('0x19')])for(const _0x526a01 of _0x1a325d)this[_0x4714('0x11')](_0x1dfc6f,_0x526a01);}),this['_createUser'](_0x469ede['connection']['me'],!0x0);}[_0x4714('0x0')](_0x149876,_0x387805){if(this['_registeredSessions'][_0x4714('0x1f')](_0x149876))throw new _0x4e8713(_0x4714('0x22'),null,{'channelId':_0x149876});this[_0x4714('0x19')]['set'](_0x149876,_0x387805),this['channelSessions'][_0x4714('0x10')](_0x149876,new _0x278e3b()),this[_0x4714('0xe')][_0x4714('0x10')](_0x149876,new _0x278e3b()),this[_0x4714('0x1')](_0x387805,'add',(_0x13007f,_0x11af72)=>this[_0x4714('0x11')](_0x149876,_0x11af72)),this[_0x4714('0x1')](_0x387805,_0x4714('0x1e'),(_0x46afcb,_0x4b1bf2)=>this['_handleSessionRemove'](_0x149876,_0x4b1bf2));for(const _0x5347de of _0x387805)this[_0x4714('0x11')](_0x149876,_0x5347de);}[_0x4714('0x2c')](_0x5edc68){if(!this[_0x4714('0x19')][_0x4714('0x1f')](_0x5edc68))throw new _0x4e8713(_0x4714('0x2'),null,{'channelId':_0x5edc68});const _0x258fc4=this['_registeredSessions']['get'](_0x5edc68);this['stopListening'](_0x258fc4);for(const _0x4672e0 of _0x258fc4)_0x4714('0x2b')===this[_0x4714('0x1d')][_0x4714('0x26')]['get'](_0x5062af)[_0x4714('0x8')]&&this[_0x4714('0x1b')](_0x5edc68,_0x4672e0);this['_registeredSessions'][_0x4714('0x20')](_0x5edc68),this['channelSessions'][_0x4714('0x20')](_0x5edc68),this[_0x4714('0xe')][_0x4714('0x20')](_0x5edc68);}get[_0x4714('0x13')](){return this[_0x4714('0x1d')]['plugins'][_0x4714('0x14')](_0x5062af)[_0x4714('0x23')][_0x4714('0x6')];}[_0x4714('0xa')](_0x2d2eab){for(const _0x39693e of this[_0x4714('0x1c')][_0x4714('0xf')]())for(const _0x14cdb1 of _0x39693e)if(_0x14cdb1['id']===_0x2d2eab)return _0x14cdb1[_0x4714('0x1a')];}[_0x4714('0x7')](_0x5ce7ea,_0x3a3410){const _0x287218=_0x3a3410?[this['channelSessions'][_0x4714('0x14')](_0x3a3410)]:this[_0x4714('0x1c')][_0x4714('0xf')](),_0x256f50=new Set();for(const _0x41840e of _0x287218)for(const _0x16faea of _0x41840e)_0x16faea[_0x4714('0x1a')]['id']===_0x5ce7ea['id']&&_0x256f50[_0x4714('0x21')](_0x16faea['id']);return _0x256f50;}['getUserRole'](_0x36e3cd){for(const _0x12c8ab of this[_0x4714('0x1c')][_0x4714('0xf')]())for(const _0x5b03e7 of _0x12c8ab)if(_0x5b03e7[_0x4714('0x1a')]===_0x36e3cd)return _0x5b03e7[_0x4714('0x15')];}[_0x4714('0x11')](_0x5f30d5,_0x2980ea){if('connected'!==this[_0x4714('0x1d')][_0x4714('0x26')]['get'](_0x5062af)[_0x4714('0x8')])return;const _0xafbdb0=_0x2980ea[_0x4714('0x1a')],_0x188d26=this[_0x4714('0x16')][_0x4714('0x4')](_0xafbdb0['id'])||this[_0x4714('0x2a')](_0xafbdb0),_0x140090=Object[_0x4714('0x29')]({},_0x2980ea,{'user':_0x188d26});this[_0x4714('0x1c')][_0x4714('0x14')](_0x5f30d5)['add'](_0x140090);const _0x20ffb1=this[_0x4714('0xe')]['get'](_0x5f30d5);_0x20ffb1[_0x4714('0x1f')](_0x188d26['id'])||_0x20ffb1[_0x4714('0x21')](_0x188d26),this[_0x4714('0xc')][_0x4714('0x1f')](_0x188d26['id'])||this[_0x4714('0xc')][_0x4714('0x21')](_0x188d26),this[_0x4714('0x5')](_0x4714('0x9')+_0x5f30d5,{'channelId':_0x5f30d5,'session':_0x140090});}['_handleSessionRemove'](_0x478fd4,_0x452912){if(_0x4714('0x2b')!==this[_0x4714('0x1d')][_0x4714('0x26')]['get'](_0x5062af)[_0x4714('0x8')])return;const _0x13315d=this[_0x4714('0xe')][_0x4714('0x14')](_0x478fd4),_0x1779c3=_0x452912[_0x4714('0x1a')];this[_0x4714('0x1c')][_0x4714('0x14')](_0x478fd4)['remove'](_0x452912['id']),_0x13315d[_0x4714('0x1f')](_0x1779c3['id'])&&!this['getUserSessions'](_0x1779c3,_0x478fd4)[_0x4714('0x12')]&&_0x13315d[_0x4714('0x1e')](_0x1779c3['id']),this[_0x4714('0xc')][_0x4714('0x14')](_0x1779c3['id'])&&!this[_0x4714('0x7')](_0x1779c3)[_0x4714('0x12')]&&this[_0x4714('0xc')][_0x4714('0x1e')](_0x1779c3['id']);}[_0x4714('0x2a')](_0x498e29,_0x434a02){const _0x132c7c=this[_0x4714('0x16')]['addUser'](_0x498e29);return _0x434a02&&this['_users'][_0x4714('0xd')](_0x498e29['id']),_0x132c7c[_0x4714('0x17')]=this['_uniqueUsersCount']++,_0x132c7c;}}
23
+ const _0x45f1=['allConnectedUsers','_handleSessionRemove','values','clear','sessionAdd:','state','size','_users','unregister','connected','connection','remove','get','add','channelConnectedUsers','set','stopListening','user','_uniqueUsersCount','listenTo','init','context','role','_createUser','addUser','getUserSessions','_handleSessionAdd','_registeredSessions','getUser','orderNumber','assign','defineMe','has','sessionId','sessions-register-already-registered','mySessionId','plugins','register','channelSessions','forEach','fire','requires','pluginName'];(function(_0x3ad13a,_0x45f176){const _0x469b1a=function(_0x373a1a){while(--_0x373a1a){_0x3ad13a['push'](_0x3ad13a['shift']());}};_0x469b1a(++_0x45f176);}(_0x45f1,0x15b));const _0x469b=function(_0x3ad13a,_0x45f176){_0x3ad13a=_0x3ad13a-0x0;let _0x469b1a=_0x45f1[_0x3ad13a];return _0x469b1a;};import{ContextPlugin as _0x2111ae}from'ckeditor5/src/core';import{Collection as _0x441a8d,CKEditorError as _0x18ebcb}from'ckeditor5/src/utils';import _0x4b1f93 from'./websocketgateway';import{Users as _0x786cd}from'ckeditor5-collaboration/src/collaboration-core';export default class r extends _0x2111ae{static get[_0x469b('0x27')](){return'Sessions';}static get[_0x469b('0x26')](){return[_0x4b1f93,_0x786cd];}[_0x469b('0x11')](){const _0x21d45a=this[_0x469b('0x12')],_0x50963b=_0x21d45a[_0x469b('0x21')][_0x469b('0x9')](_0x4b1f93);this[_0x469b('0x23')]=new Map(),this[_0x469b('0xb')]=new Map(),this[_0x469b('0x28')]=new _0x441a8d(),this[_0x469b('0x18')]=new Map(),this[_0x469b('0xf')]=0x0,this['_users']=_0x21d45a[_0x469b('0x21')][_0x469b('0x9')](_0x786cd),this['listenTo'](_0x50963b,'change:state',(_0x325400,_0x18db13,_0x3ff824)=>{if(_0x469b('0x6')!==_0x3ff824)this[_0x469b('0x23')][_0x469b('0x24')](_0x5a9d1f=>_0x5a9d1f['clear']()),this[_0x469b('0xb')]['forEach'](_0x52c4df=>_0x52c4df[_0x469b('0x0')]()),this[_0x469b('0x28')][_0x469b('0x0')]();else for(const [_0x22f6ea,_0x4cfa10]of this['_registeredSessions'])for(const _0xf16991 of _0x4cfa10)this[_0x469b('0x17')](_0x22f6ea,_0xf16991);}),this[_0x469b('0x14')](_0x50963b[_0x469b('0x7')]['me'],!0x0);}[_0x469b('0x22')](_0x330daa,_0xd0f321){if(this[_0x469b('0x18')][_0x469b('0x1d')](_0x330daa))throw new _0x18ebcb(_0x469b('0x1f'),null,{'channelId':_0x330daa});this[_0x469b('0x18')][_0x469b('0xc')](_0x330daa,_0xd0f321),this['channelSessions'][_0x469b('0xc')](_0x330daa,new _0x441a8d()),this[_0x469b('0xb')][_0x469b('0xc')](_0x330daa,new _0x441a8d()),this[_0x469b('0x10')](_0xd0f321,_0x469b('0xa'),(_0x128e06,_0x2bfacd)=>this['_handleSessionAdd'](_0x330daa,_0x2bfacd)),this[_0x469b('0x10')](_0xd0f321,_0x469b('0x8'),(_0x1efc6e,_0x577de9)=>this[_0x469b('0x29')](_0x330daa,_0x577de9));for(const _0x2db158 of _0xd0f321)this['_handleSessionAdd'](_0x330daa,_0x2db158);}[_0x469b('0x5')](_0x5abb7b){if(!this[_0x469b('0x18')][_0x469b('0x1d')](_0x5abb7b))throw new _0x18ebcb('sessions-unregister-not-exist',null,{'channelId':_0x5abb7b});const _0x20b58f=this['_registeredSessions'][_0x469b('0x9')](_0x5abb7b);this[_0x469b('0xd')](_0x20b58f);for(const _0x5c338e of _0x20b58f)_0x469b('0x6')===this['context'][_0x469b('0x21')][_0x469b('0x9')](_0x4b1f93)[_0x469b('0x2')]&&this[_0x469b('0x29')](_0x5abb7b,_0x5c338e);this[_0x469b('0x18')]['delete'](_0x5abb7b),this[_0x469b('0x23')]['delete'](_0x5abb7b),this[_0x469b('0xb')]['delete'](_0x5abb7b);}get[_0x469b('0x20')](){return this[_0x469b('0x12')][_0x469b('0x21')][_0x469b('0x9')](_0x4b1f93)[_0x469b('0x7')][_0x469b('0x1e')];}['getUserBySessionId'](_0x1b55d0){for(const _0x40f7b5 of this[_0x469b('0x23')][_0x469b('0x2a')]())for(const _0x4b1901 of _0x40f7b5)if(_0x4b1901['id']===_0x1b55d0)return _0x4b1901['user'];}[_0x469b('0x16')](_0x2fb9f7,_0x3a977e){const _0x11015d=_0x3a977e?[this['channelSessions']['get'](_0x3a977e)]:this[_0x469b('0x23')][_0x469b('0x2a')](),_0x5b9e95=new Set();for(const _0x3c2552 of _0x11015d)for(const _0xceb6 of _0x3c2552)_0xceb6[_0x469b('0xe')]['id']===_0x2fb9f7['id']&&_0x5b9e95[_0x469b('0xa')](_0xceb6['id']);return _0x5b9e95;}['getUserRole'](_0x4cde78){for(const _0x52bef0 of this[_0x469b('0x23')][_0x469b('0x2a')]())for(const _0x3d1fb8 of _0x52bef0)if(_0x3d1fb8['user']===_0x4cde78)return _0x3d1fb8[_0x469b('0x13')];}[_0x469b('0x17')](_0x196476,_0x373581){if(_0x469b('0x6')!==this[_0x469b('0x12')][_0x469b('0x21')][_0x469b('0x9')](_0x4b1f93)[_0x469b('0x2')])return;const _0x190c5c=_0x373581['user'],_0x469d3d=this['_users'][_0x469b('0x19')](_0x190c5c['id'])||this[_0x469b('0x14')](_0x190c5c),_0x425f8d=Object[_0x469b('0x1b')]({},_0x373581,{'user':_0x469d3d});this[_0x469b('0x23')][_0x469b('0x9')](_0x196476)[_0x469b('0xa')](_0x425f8d);const _0x6b215a=this[_0x469b('0xb')]['get'](_0x196476);_0x6b215a[_0x469b('0x1d')](_0x469d3d['id'])||_0x6b215a[_0x469b('0xa')](_0x469d3d),this[_0x469b('0x28')][_0x469b('0x1d')](_0x469d3d['id'])||this[_0x469b('0x28')][_0x469b('0xa')](_0x469d3d),this[_0x469b('0x25')](_0x469b('0x1')+_0x196476,{'channelId':_0x196476,'session':_0x425f8d});}['_handleSessionRemove'](_0x27698d,_0x54ef0b){if(_0x469b('0x6')!==this[_0x469b('0x12')]['plugins'][_0x469b('0x9')](_0x4b1f93)[_0x469b('0x2')])return;const _0x1d15ce=this['channelConnectedUsers'][_0x469b('0x9')](_0x27698d),_0x5daa3a=_0x54ef0b[_0x469b('0xe')];this[_0x469b('0x23')][_0x469b('0x9')](_0x27698d)[_0x469b('0x8')](_0x54ef0b['id']),_0x1d15ce[_0x469b('0x1d')](_0x5daa3a['id'])&&!this['getUserSessions'](_0x5daa3a,_0x27698d)[_0x469b('0x3')]&&_0x1d15ce[_0x469b('0x8')](_0x5daa3a['id']),this[_0x469b('0x28')][_0x469b('0x9')](_0x5daa3a['id'])&&!this[_0x469b('0x16')](_0x5daa3a)[_0x469b('0x3')]&&this[_0x469b('0x28')]['remove'](_0x5daa3a['id']);}[_0x469b('0x14')](_0x3655af,_0x2f211c){const _0x39bd7a=this[_0x469b('0x4')][_0x469b('0x15')](_0x3655af);return _0x2f211c&&this[_0x469b('0x4')][_0x469b('0x1c')](_0x3655af['id']),_0x39bd7a[_0x469b('0x1a')]=this[_0x469b('0xf')]++,_0x39bd7a;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3d43=['set','&#8203;<span\x20class=\x22ck-user__marker-line\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','tableCell','user:position:','updateMarker','change:range','type','has','addMarker','view','getStart','plugins','toDomElement','span','markerRange','schema','for','commands','hasContent','model','detach','reconvertMarker','mySessionId','enqueueChange','color','hasDomSelection','_createdBatches','markerName','user:range:','$graveyard','createUserMarkerOperations','delete','marker','createRange','orderNumber','startsWith','editing','document','createUIElement','markerToHighlight','removeMarker','getPositions','selection','getMarkerClass','getFirstRange','data-session-id','start','setCustomProperty','userPositionMarker','getContainedElement','split','innerHTML','getNearestSelectionRange','highest','change','batch','pluginName','UserMarkers','conversion','markerToElement','applyOperation','checkChild','root','editor','isLimit','getUserBySessionId','markers','user:position','end','rootName','get','getRange','user:range','$text','editingDowncast','getAttribute','requires','deletionPosition','toRange','oldRange','init','name','newRange','isSimilar','render'];(function(_0x14ac52,_0x3d4338){const _0x36cae5=function(_0x496116){while(--_0x496116){_0x14ac52['push'](_0x14ac52['shift']());}};_0x36cae5(++_0x3d4338);}(_0x3d43,0xba));const _0x36ca=function(_0x14ac52,_0x3d4338){_0x14ac52=_0x14ac52-0x0;let _0x36cae5=_0x3d43[_0x14ac52];return _0x36cae5;};import{Plugin as _0x4b2ccc}from'ckeditor5/src/core';import _0x316e7e from'./sessions';import{LiveRange as _0x4491d7}from'ckeditor5/src/engine';import'../../theme/usermarkers.css';export default class V extends _0x4b2ccc{static get[_0x36ca('0x3c')](){return[_0x316e7e];}static get[_0x36ca('0x28')](){return _0x36ca('0x29');}[_0x36ca('0x40')](){const _0x3383c9=this[_0x36ca('0x2f')],_0x3649e4=_0x3383c9['plugins']['get'](_0x316e7e);_0x3383c9[_0x36ca('0x2a')][_0x36ca('0x0')](_0x36ca('0x3a'))[_0x36ca('0x2b')]({'model':_0x36ca('0x33'),'view':(_0x4ce1c6,{writer:_0x4bcd1c})=>function(_0x1bb15f,_0x51154a,_0x4a6c56,_0xab20ca){const _0x508002=_0x1bb15f[_0x36ca('0xb')]['split'](':')[0x2],_0x503a23=_0x4a6c56[_0x36ca('0x31')](_0x508002);if(!_0x503a23||_0x508002===_0x4a6c56[_0x36ca('0x6')])return;if(!_0xab20ca['model'][_0x36ca('0x54')][_0x36ca('0x2d')](_0x1bb15f[_0x36ca('0x53')][_0x36ca('0x1e')],_0x36ca('0x39')))return;const _0x4a61ae={'class':'ck-user__marker\x20'+_0x503a23['color'][_0x36ca('0x1b')](),'data-name':_0x503a23[_0x36ca('0x41')],'data-session-id':_0x508002},_0x41c042=_0xab20ca['model'][_0x36ca('0x32')][_0x36ca('0x36')](_0x1bb15f[_0x36ca('0xb')])[_0x36ca('0x4f')](),_0x287327=_0x41c042['nodeAfter'],_0x2190d9=_0xab20ca[_0x36ca('0x3')]['schema'];if(_0x287327&&_0x2190d9['isObject'](_0x287327)&&_0x2190d9['isInline'](_0x287327)&&!_0xab20ca['model'][_0x36ca('0x32')]['get'](_0x36ca('0xc')+_0x508002)[_0x36ca('0x37')]()['isCollapsed'])return;const _0x5a88ef=_0x41c042['parent'];_0xab20ca['model'][_0x36ca('0x54')][_0x36ca('0x30')](_0x5a88ef)&&!_0xab20ca[_0x36ca('0x3')][_0x36ca('0x2')](_0x5a88ef)&&(_0x4a61ae['contenteditable']=!0x1);const _0x26c6ef=function(_0x31bd75,_0x42fbc4){const _0x390594=_0x31bd75[_0x36ca('0x16')](_0x36ca('0x52'),_0x42fbc4);return _0x31bd75[_0x36ca('0x1f')](_0x36ca('0x20'),!0x0,_0x390594),_0x390594[_0x36ca('0x44')]=function(_0x344679){const _0x24156a=this[_0x36ca('0x51')](_0x344679);return _0x24156a[_0x36ca('0x23')]=_0x36ca('0x46'),_0x24156a;},_0x390594[_0x36ca('0x43')]=function(_0x3eafb6){return this['getCustomProperty'](_0x36ca('0x20'))&&_0x3eafb6['getCustomProperty']('userPositionMarker')&&this['getAttribute'](_0x36ca('0x1d'))==_0x3eafb6[_0x36ca('0x3b')](_0x36ca('0x1d'));},_0x390594;}(_0x51154a,_0x4a61ae);return _0x26c6ef['priority']=0x3e8+_0x503a23[_0x36ca('0x12')],_0x26c6ef;}(_0x4ce1c6,_0x4bcd1c,_0x3649e4,_0x3383c9)}),_0x3383c9[_0x36ca('0x2a')][_0x36ca('0x0')](_0x36ca('0x3a'))[_0x36ca('0x17')]({'model':_0x36ca('0x38'),'view':_0x532112=>function(_0x32e982,_0x38bd1b){const _0x32e57d=_0x32e982[_0x36ca('0xb')][_0x36ca('0x22')](':')[0x2];if(_0x32e57d===_0x38bd1b[_0x36ca('0x6')])return;const _0x56f6d7=_0x38bd1b[_0x36ca('0x31')](_0x32e57d);if(!_0x56f6d7)return{'id':_0x32e57d};return{'id':_0x32e57d,'classes':['ck-user__selection',_0x56f6d7[_0x36ca('0x8')]['getSelectionClass']()],'attributes':{'data-session-id':_0x32e57d},'priority':0x7d0+_0x56f6d7[_0x36ca('0x12')]};}(_0x532112,_0x3649e4)}),function(_0x38687f){const _0x46ff2e=_0x38687f[_0x36ca('0x3')],_0x31911e=new Map(),_0x93e407=_0x38687f[_0x36ca('0x50')][_0x36ca('0x36')](_0x316e7e);_0x46ff2e['markers']['on']('update:user:range',(_0x4104e4,_0x204146,_0x2e060e,_0x3ff3c9)=>{if(!_0x3ff3c9&&_0x31911e[_0x36ca('0x36')](_0x204146[_0x36ca('0x41')]))return _0x31911e[_0x36ca('0x36')](_0x204146[_0x36ca('0x41')])[_0x36ca('0x4')](),void _0x31911e[_0x36ca('0xf')](_0x204146[_0x36ca('0x41')]);const _0x4a6e0c=_0x204146[_0x36ca('0x41')][_0x36ca('0x22')](':')[0x2];if(_0x4a6e0c===_0x93e407[_0x36ca('0x6')])return;const _0xce00a1=_0x36ca('0x48')+_0x4a6e0c;_0x46ff2e['markers'][_0x36ca('0x4c')](_0xce00a1)&&_0x38687f[_0x36ca('0x14')][_0x36ca('0x5')](_0xce00a1),_0x204146['on']('change:range',(_0x51b24b,_0x505ec0,_0x1f9fa4)=>{if(_0x36ca('0xd')!=_0x505ec0[_0x36ca('0x2e')][_0x36ca('0x35')]&&_0x36ca('0xd')==_0x204146['getRange']()['root'][_0x36ca('0x35')]&&!_0x31911e[_0x36ca('0x4c')](_0x204146[_0x36ca('0x41')])){const _0x42b977=_0x46ff2e[_0x36ca('0x54')][_0x36ca('0x24')](_0x1f9fa4[_0x36ca('0x3d')]);if(_0x42b977){const _0x58dfed=_0x4491d7['fromRange'](_0x42b977);_0x31911e[_0x36ca('0x45')](_0x204146[_0x36ca('0x41')],_0x58dfed),_0x58dfed['on'](_0x36ca('0x4a'),(_0x1c889c,_0x4ce4d8,_0x3e30c8)=>{if(_0x36ca('0xd')==_0x58dfed[_0x36ca('0x2e')][_0x36ca('0x35')]){const _0x437e99=_0x46ff2e[_0x36ca('0x54')]['getNearestSelectionRange'](_0x3e30c8[_0x36ca('0x3d')]);_0x437e99?(_0x58dfed[_0x36ca('0x1e')]=_0x437e99[_0x36ca('0x1e')],_0x58dfed[_0x36ca('0x34')]=_0x437e99['end']):(_0x31911e[_0x36ca('0xf')](_0x204146[_0x36ca('0x41')]),_0x58dfed['detach']());}});}}});}),_0x46ff2e[_0x36ca('0x15')]['on'](_0x36ca('0x26'),()=>{_0x31911e['size']>0x0&&_0x46ff2e['enqueueChange']({'isUndoable':!0x1},_0x22cd7a=>{for(const [_0xd19c95,_0x1f111b]of _0x31911e)_0x36ca('0xd')==_0x46ff2e[_0x36ca('0x32')]['get'](_0xd19c95)[_0x36ca('0x37')]()[_0x36ca('0x2e')][_0x36ca('0x35')]&&(Q(_0xd19c95[_0x36ca('0x22')](':')[0x2],_0x1f111b[_0x36ca('0x3e')](),_0x46ff2e,_0x22cd7a),_0x1f111b[_0x36ca('0x4')]());_0x31911e['clear']();});});}(_0x3383c9);}['afterInit'](){const _0x497632=this[_0x36ca('0x2f')],_0x189cd5=_0x497632[_0x36ca('0x1')][_0x36ca('0x36')]('undo');_0x189cd5&&_0x497632[_0x36ca('0x3')]['on'](_0x36ca('0x2c'),(_0x4beed4,_0x47e9f9)=>{const _0x3434fe=_0x47e9f9[0x0];if(_0x36ca('0x10')!=_0x3434fe[_0x36ca('0x4b')]||!_0x3434fe[_0x36ca('0x41')][_0x36ca('0x13')]('user:'))return;const _0x4cbc69=_0x3434fe[_0x36ca('0x27')];_0x189cd5[_0x36ca('0xa')][_0x36ca('0x4c')](_0x4cbc69)&&(_0x3434fe[_0x36ca('0x42')]=_0x3434fe[_0x36ca('0x3f')]?_0x497632[_0x36ca('0x3')][_0x36ca('0x11')](_0x3434fe[_0x36ca('0x3f')][_0x36ca('0x1e')],_0x3434fe[_0x36ca('0x3f')]['end']):null);},{'priority':_0x36ca('0x25')});}[_0x36ca('0xe')](){const _0x5a6922=this[_0x36ca('0x2f')],_0x54ccf5=_0x5a6922[_0x36ca('0x3')][_0x36ca('0x15')],_0x561c1f=_0x5a6922['plugins'][_0x36ca('0x36')](_0x316e7e);_0x5a6922[_0x36ca('0x3')][_0x36ca('0x7')]({'isUndoable':!0x1},_0x2f8ab9=>{const _0x877ef0='user:range:'+_0x561c1f[_0x36ca('0x6')],_0x56abd7=_0x36ca('0x48')+_0x561c1f[_0x36ca('0x6')],_0x3afa1b=_0x5a6922['model'][_0x36ca('0x32')][_0x36ca('0x4c')](_0x877ef0);_0x5a6922[_0x36ca('0x14')][_0x36ca('0x4e')][_0x36ca('0x9')]?Q(_0x561c1f[_0x36ca('0x6')],_0x54ccf5[_0x36ca('0x1a')][_0x36ca('0x1c')](),_0x5a6922['model'],_0x2f8ab9):_0x3afa1b&&(_0x2f8ab9['removeMarker'](_0x877ef0),_0x2f8ab9[_0x36ca('0x18')](_0x56abd7));});}}function Q(_0x3019c4,_0x52fe4e,_0x53b021,_0xc5364){const _0x2e597c=_0x36ca('0xc')+_0x3019c4,_0x538bc8='user:position:'+_0x3019c4,_0x4d992c=_0x52fe4e[_0x36ca('0x21')]();let _0x16fc23=_0x52fe4e[_0x36ca('0x1e')];_0x4d992c&&_0x4d992c['is']('element',_0x36ca('0x47'))&&(_0x16fc23=function(_0x51cb42,_0x4c7cee){for(const _0x517bd7 of _0x51cb42[_0x36ca('0x19')]())if(_0x4c7cee[_0x36ca('0x54')]['checkChild'](_0x517bd7,'$text'))return _0x517bd7;}(_0x52fe4e,_0x53b021),_0x52fe4e=_0xc5364[_0x36ca('0x11')](_0x16fc23)),_0x16fc23=_0xc5364[_0x36ca('0x11')](_0x16fc23),_0x53b021['markers'][_0x36ca('0x4c')](_0x2e597c)?(_0xc5364[_0x36ca('0x49')](_0x2e597c,{'range':_0x52fe4e}),_0xc5364[_0x36ca('0x49')](_0x538bc8,{'range':_0x16fc23})):(_0xc5364[_0x36ca('0x4d')](_0x2e597c,{'range':_0x52fe4e,'usingOperation':!0x0}),_0xc5364[_0x36ca('0x4d')](_0x538bc8,{'range':_0x16fc23,'usingOperation':!0x0}));}
23
+ const _0x2ef3=['isSimilar','oldRange','setCustomProperty','clear','isCollapsed','user:range','createUIElement','color','UserMarkers','newRange','reconvertMarker','getNearestSelectionRange','ck-user__marker\x20','mySessionId','for','root','createUserMarkerOperations','editor','conversion','getUserBySessionId','ck-user__selection','hasDomSelection','markerRange','removeMarker','addMarker','toDomElement','highest','split','isObject','selection','plugins','getCustomProperty','fromRange','update:user:range','detach','enqueueChange','batch','getSelectionClass','_createdBatches','markerName','change:range','userPositionMarker','isInline','createRange','model','user:range:','priority','editingDowncast','applyOperation','tableCell','&#8203;<span\x20class=\x22ck-user__marker-line\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','innerHTML','rootName','markers','getAttribute','getRange','user:position','change','nodeAfter','pluginName','document','commands','orderNumber','deletionPosition','afterInit','contenteditable','name','startsWith','parent','$graveyard','get','editing','hasContent','has','start','end','markerToHighlight','init','schema','set','user:position:','marker','$text','updateMarker','getFirstRange','getStart'];(function(_0x48e8f5,_0x2ef311){const _0x2cac95=function(_0x59b80e){while(--_0x59b80e){_0x48e8f5['push'](_0x48e8f5['shift']());}};_0x2cac95(++_0x2ef311);}(_0x2ef3,0x196));const _0x2cac=function(_0x48e8f5,_0x2ef311){_0x48e8f5=_0x48e8f5-0x0;let _0x2cac95=_0x2ef3[_0x48e8f5];return _0x2cac95;};import{Plugin as _0x55e5e8}from'ckeditor5/src/core';import _0x51e509 from'./sessions';import{LiveRange as _0x57b321}from'ckeditor5/src/engine';import'../../theme/usermarkers.css';export default class V extends _0x55e5e8{static get['requires'](){return[_0x51e509];}static get[_0x2cac('0x53')](){return _0x2cac('0x20');}[_0x2cac('0xf')](){const _0x16b50f=this[_0x2cac('0x29')],_0x3e77dd=_0x16b50f[_0x2cac('0x36')][_0x2cac('0x8')](_0x51e509);_0x16b50f[_0x2cac('0x2a')][_0x2cac('0x26')]('editingDowncast')['markerToElement']({'model':_0x2cac('0x50'),'view':(_0x2ec61c,{writer:_0x11579d})=>function(_0x305119,_0x2cab35,_0x29769f,_0x133fc1){const _0x7b374a=_0x305119['markerName'][_0x2cac('0x33')](':')[0x2],_0x346edd=_0x29769f['getUserBySessionId'](_0x7b374a);if(!_0x346edd||_0x7b374a===_0x29769f[_0x2cac('0x25')])return;if(!_0x133fc1['model']['schema']['checkChild'](_0x305119[_0x2cac('0x2e')][_0x2cac('0xc')],_0x2cac('0x14')))return;const _0x396641={'class':_0x2cac('0x24')+_0x346edd[_0x2cac('0x1f')]['getMarkerClass'](),'data-name':_0x346edd[_0x2cac('0x4')],'data-session-id':_0x7b374a},_0x519c27=_0x133fc1[_0x2cac('0x44')][_0x2cac('0x4d')][_0x2cac('0x8')](_0x305119[_0x2cac('0x3f')])[_0x2cac('0x17')](),_0x221b86=_0x519c27[_0x2cac('0x52')],_0x51708f=_0x133fc1[_0x2cac('0x44')][_0x2cac('0x10')];if(_0x221b86&&_0x51708f[_0x2cac('0x34')](_0x221b86)&&_0x51708f[_0x2cac('0x42')](_0x221b86)&&!_0x133fc1[_0x2cac('0x44')][_0x2cac('0x4d')]['get'](_0x2cac('0x45')+_0x7b374a)['getRange']()[_0x2cac('0x1c')])return;const _0x2a176d=_0x519c27[_0x2cac('0x6')];_0x133fc1[_0x2cac('0x44')]['schema']['isLimit'](_0x2a176d)&&!_0x133fc1[_0x2cac('0x44')][_0x2cac('0xa')](_0x2a176d)&&(_0x396641[_0x2cac('0x3')]=!0x1);const _0x3bc2d4=function(_0x15a2d8,_0x6c3fb3){const _0x4d6b2c=_0x15a2d8[_0x2cac('0x1e')]('span',_0x6c3fb3);return _0x15a2d8[_0x2cac('0x1a')](_0x2cac('0x41'),!0x0,_0x4d6b2c),_0x4d6b2c['render']=function(_0x46f2c9){const _0x332e90=this[_0x2cac('0x31')](_0x46f2c9);return _0x332e90[_0x2cac('0x4b')]=_0x2cac('0x4a'),_0x332e90;},_0x4d6b2c[_0x2cac('0x18')]=function(_0x56cef1){return this['getCustomProperty'](_0x2cac('0x41'))&&_0x56cef1[_0x2cac('0x37')]('userPositionMarker')&&this[_0x2cac('0x4e')]('data-session-id')==_0x56cef1[_0x2cac('0x4e')]('data-session-id');},_0x4d6b2c;}(_0x2cab35,_0x396641);return _0x3bc2d4[_0x2cac('0x46')]=0x3e8+_0x346edd[_0x2cac('0x0')],_0x3bc2d4;}(_0x2ec61c,_0x11579d,_0x3e77dd,_0x16b50f)}),_0x16b50f[_0x2cac('0x2a')][_0x2cac('0x26')](_0x2cac('0x47'))[_0x2cac('0xe')]({'model':_0x2cac('0x1d'),'view':_0x139db6=>function(_0x529b07,_0x5e082b){const _0x1b2dcf=_0x529b07['markerName'][_0x2cac('0x33')](':')[0x2];if(_0x1b2dcf===_0x5e082b['mySessionId'])return;const _0x47349c=_0x5e082b[_0x2cac('0x2b')](_0x1b2dcf);if(!_0x47349c)return{'id':_0x1b2dcf};return{'id':_0x1b2dcf,'classes':[_0x2cac('0x2c'),_0x47349c[_0x2cac('0x1f')][_0x2cac('0x3d')]()],'attributes':{'data-session-id':_0x1b2dcf},'priority':0x7d0+_0x47349c['orderNumber']};}(_0x139db6,_0x3e77dd)}),function(_0x30e132){const _0x13836d=_0x30e132[_0x2cac('0x44')],_0x59b3d8=new Map(),_0x36e4d4=_0x30e132[_0x2cac('0x36')][_0x2cac('0x8')](_0x51e509);_0x13836d[_0x2cac('0x4d')]['on'](_0x2cac('0x39'),(_0x46c3b1,_0x127a4d,_0x230c84,_0x530233)=>{if(!_0x530233&&_0x59b3d8[_0x2cac('0x8')](_0x127a4d[_0x2cac('0x4')]))return _0x59b3d8[_0x2cac('0x8')](_0x127a4d[_0x2cac('0x4')])[_0x2cac('0x3a')](),void _0x59b3d8['delete'](_0x127a4d['name']);const _0x19efa8=_0x127a4d[_0x2cac('0x4')]['split'](':')[0x2];if(_0x19efa8===_0x36e4d4[_0x2cac('0x25')])return;const _0x17b536=_0x2cac('0x12')+_0x19efa8;_0x13836d[_0x2cac('0x4d')][_0x2cac('0xb')](_0x17b536)&&_0x30e132['editing'][_0x2cac('0x22')](_0x17b536),_0x127a4d['on'](_0x2cac('0x40'),(_0x91e1ac,_0x228cd9,_0x86de8c)=>{if(_0x2cac('0x7')!=_0x228cd9[_0x2cac('0x27')][_0x2cac('0x4c')]&&_0x2cac('0x7')==_0x127a4d[_0x2cac('0x4f')]()[_0x2cac('0x27')][_0x2cac('0x4c')]&&!_0x59b3d8[_0x2cac('0xb')](_0x127a4d['name'])){const _0x16a5eb=_0x13836d[_0x2cac('0x10')][_0x2cac('0x23')](_0x86de8c['deletionPosition']);if(_0x16a5eb){const _0xe13e92=_0x57b321[_0x2cac('0x38')](_0x16a5eb);_0x59b3d8[_0x2cac('0x11')](_0x127a4d[_0x2cac('0x4')],_0xe13e92),_0xe13e92['on'](_0x2cac('0x40'),(_0x21fcea,_0x37054b,_0x32cbc6)=>{if('$graveyard'==_0xe13e92[_0x2cac('0x27')][_0x2cac('0x4c')]){const _0x3b413d=_0x13836d['schema']['getNearestSelectionRange'](_0x32cbc6[_0x2cac('0x1')]);_0x3b413d?(_0xe13e92[_0x2cac('0xc')]=_0x3b413d[_0x2cac('0xc')],_0xe13e92['end']=_0x3b413d[_0x2cac('0xd')]):(_0x59b3d8['delete'](_0x127a4d[_0x2cac('0x4')]),_0xe13e92[_0x2cac('0x3a')]());}});}}});}),_0x13836d[_0x2cac('0x54')]['on'](_0x2cac('0x51'),()=>{_0x59b3d8['size']>0x0&&_0x13836d[_0x2cac('0x3b')]({'isUndoable':!0x1},_0x264c99=>{for(const [_0x1844bf,_0x4a0a33]of _0x59b3d8)_0x2cac('0x7')==_0x13836d[_0x2cac('0x4d')][_0x2cac('0x8')](_0x1844bf)[_0x2cac('0x4f')]()[_0x2cac('0x27')][_0x2cac('0x4c')]&&(Q(_0x1844bf[_0x2cac('0x33')](':')[0x2],_0x4a0a33['toRange'](),_0x13836d,_0x264c99),_0x4a0a33[_0x2cac('0x3a')]());_0x59b3d8[_0x2cac('0x1b')]();});});}(_0x16b50f);}[_0x2cac('0x2')](){const _0x5c9bf9=this[_0x2cac('0x29')],_0x452589=_0x5c9bf9[_0x2cac('0x55')][_0x2cac('0x8')]('undo');_0x452589&&_0x5c9bf9[_0x2cac('0x44')]['on'](_0x2cac('0x48'),(_0x45c008,_0x1d1e37)=>{const _0x49424a=_0x1d1e37[0x0];if(_0x2cac('0x13')!=_0x49424a['type']||!_0x49424a['name'][_0x2cac('0x5')]('user:'))return;const _0x5c1b6b=_0x49424a[_0x2cac('0x3c')];_0x452589[_0x2cac('0x3e')][_0x2cac('0xb')](_0x5c1b6b)&&(_0x49424a[_0x2cac('0x21')]=_0x49424a[_0x2cac('0x19')]?_0x5c9bf9[_0x2cac('0x44')][_0x2cac('0x43')](_0x49424a['oldRange'][_0x2cac('0xc')],_0x49424a[_0x2cac('0x19')]['end']):null);},{'priority':_0x2cac('0x32')});}[_0x2cac('0x28')](){const _0x52f38d=this[_0x2cac('0x29')],_0x3ce560=_0x52f38d[_0x2cac('0x44')][_0x2cac('0x54')],_0x2c5ee1=_0x52f38d[_0x2cac('0x36')]['get'](_0x51e509);_0x52f38d[_0x2cac('0x44')][_0x2cac('0x3b')]({'isUndoable':!0x1},_0x2ca804=>{const _0x43a3b0=_0x2cac('0x45')+_0x2c5ee1['mySessionId'],_0x28a846=_0x2cac('0x12')+_0x2c5ee1[_0x2cac('0x25')],_0x273c83=_0x52f38d[_0x2cac('0x44')][_0x2cac('0x4d')][_0x2cac('0xb')](_0x43a3b0);_0x52f38d[_0x2cac('0x9')]['view'][_0x2cac('0x2d')]?Q(_0x2c5ee1[_0x2cac('0x25')],_0x3ce560[_0x2cac('0x35')][_0x2cac('0x16')](),_0x52f38d[_0x2cac('0x44')],_0x2ca804):_0x273c83&&(_0x2ca804['removeMarker'](_0x43a3b0),_0x2ca804[_0x2cac('0x2f')](_0x28a846));});}}function Q(_0x4369e9,_0x4d8583,_0x85df63,_0x4f8286){const _0x5c775c=_0x2cac('0x45')+_0x4369e9,_0x39dabd=_0x2cac('0x12')+_0x4369e9,_0x4c16b2=_0x4d8583['getContainedElement']();let _0x803365=_0x4d8583['start'];_0x4c16b2&&_0x4c16b2['is']('element',_0x2cac('0x49'))&&(_0x803365=function(_0x47dfa6,_0x1b0e6f){for(const _0x25231d of _0x47dfa6['getPositions']())if(_0x1b0e6f[_0x2cac('0x10')]['checkChild'](_0x25231d,_0x2cac('0x14')))return _0x25231d;}(_0x4d8583,_0x85df63),_0x4d8583=_0x4f8286[_0x2cac('0x43')](_0x803365)),_0x803365=_0x4f8286[_0x2cac('0x43')](_0x803365),_0x85df63[_0x2cac('0x4d')][_0x2cac('0xb')](_0x5c775c)?(_0x4f8286[_0x2cac('0x15')](_0x5c775c,{'range':_0x4d8583}),_0x4f8286[_0x2cac('0x15')](_0x39dabd,{'range':_0x803365})):(_0x4f8286['addMarker'](_0x5c775c,{'range':_0x4d8583,'usingOperation':!0x0}),_0x4f8286[_0x2cac('0x30')](_0x39dabd,{'range':_0x803365,'usingOperation':!0x0}));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5bb0=['CloudServices','disconnect','has','removeFromReconnectionStack','add','all','showWarning','function','_shouldPluginsReconnect','online','connection','webSocketUrl','offline','limitExceeded','stopListening','websocketgateway-plugin-already-registered','config','isInReconnectionStack','reconnect','WebSocketGateway','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.','catch','set','_isBrowserOffline','then','requires','change:me','create','token','code','cloudservices-reconnection-error','cloudservices-init','delete','disconnected','_domEmitter','plugins','cloudServices.requestTimeout','pluginName','from','bind','addToReconnectionStack','connect','_reconnect','_reconnectionStack','define','state','context','Connected\x20users\x20limit\x20exceeded','cloudServices.connectionTimeout','websocketgateway-invalid-plugin-interface','error','connecting','destroy','get','connected','init','websocketgateway-missing-websocket-url','listenTo','websocketgateway-missing-token'];(function(_0x190ddd,_0x5bb064){const _0x55afc7=function(_0x54097c){while(--_0x54097c){_0x190ddd['push'](_0x190ddd['shift']());}};_0x55afc7(++_0x5bb064);}(_0x5bb0,0xcd));const _0x55af=function(_0x190ddd,_0x5bb064){_0x190ddd=_0x190ddd-0x0;let _0x55afc7=_0x5bb0[_0x190ddd];return _0x55afc7;};import{ContextPlugin as _0x16f220}from'ckeditor5/src/core';import{DomEmitterMixin as _0x3bca99,CKEditorError as _0x510f2a}from'ckeditor5/src/utils';import _0x514744 from'@ckeditor/ckeditor-cloud-services-collaboration/src/websocketgateway/websocketgateway';import{Notification as _0x8c5c3d}from'ckeditor5/src/ui';export default class c extends _0x16f220{static get[_0x55af('0x38')](){return[_0x55af('0x1f'),_0x8c5c3d];}static get['pluginName'](){return _0x55af('0x32');}[_0x55af('0x1b')](){const _0x3ee39f=this[_0x55af('0x12')],_0x1af9a9=_0x3ee39f[_0x55af('0x7')][_0x55af('0x19')](_0x55af('0x1f')),_0x34b781=_0x3ee39f[_0x55af('0x7')][_0x55af('0x19')](_0x8c5c3d);if(!_0x1af9a9[_0x55af('0x0')])throw new _0x510f2a(_0x55af('0x1e'),this);if(!_0x1af9a9[_0x55af('0x2a')])throw new _0x510f2a(_0x55af('0x1c'),this);return this[_0x55af('0x35')](_0x55af('0x11'),_0x55af('0x17')),this[_0x55af('0x35')](_0x55af('0x36'),!0x1),this[_0x55af('0xf')]=new Set(),this[_0x55af('0x27')]=!0x1,this[_0x55af('0x6')]=Object[_0x55af('0x3a')](_0x3bca99),this[_0x55af('0x6')][_0x55af('0x1d')](window,_0x55af('0x2b'),()=>this[_0x55af('0x36')]=!0x0),this[_0x55af('0x6')][_0x55af('0x1d')](window,_0x55af('0x28'),()=>this[_0x55af('0x36')]=!0x1),this[_0x55af('0x12')]['config'][_0x55af('0x10')]('cloudServices.connectionTimeout',0xa),this[_0x55af('0x12')][_0x55af('0x2f')][_0x55af('0x10')](_0x55af('0x8'),0x14),c['WebSocketGateway'][_0x55af('0xd')](_0x1af9a9[_0x55af('0x0')],_0x1af9a9[_0x55af('0x2a')],{'disconnectOnUnload':!0x1,'timeout':0x3e8*this[_0x55af('0x12')][_0x55af('0x2f')][_0x55af('0x19')](_0x55af('0x14')),'requestTimeout':0x3e8*this[_0x55af('0x12')][_0x55af('0x2f')][_0x55af('0x19')](_0x55af('0x8'))})[_0x55af('0x37')](_0x5ab480=>{if(this['connection']=_0x5ab480,this[_0x55af('0xb')](_0x55af('0x11'))['to'](_0x5ab480,_0x55af('0x11'),this,_0x55af('0x36'),(_0x57139e,_0x3e852e)=>(_0x55af('0x1a')!==_0x57139e&&(this[_0x55af('0x27')]=!0x0),_0x3e852e||'connected'!==_0x57139e?_0x55af('0x5'):_0x55af('0x5')==this['state']&&this[_0x55af('0x27')]?(this[_0x55af('0x27')]=!0x1,this['_reconnect'](),'connecting'):'connected')),this['connection']['on'](_0x55af('0x16'),(_0x51d893,_0x59385b)=>{if(_0x55af('0x2c')!==_0x59385b[_0x55af('0x1')])throw console['error'](_0x59385b),new _0x510f2a('cloudservices-init',null,{'originalError':_0x59385b});_0x34b781[_0x55af('0x25')](_0x55af('0x33'),{'title':_0x55af('0x13'),'namespace':'real-time-collaboration'});}),!_0x5ab480['me'])return new Promise(_0x576ba2=>_0x5ab480['on'](_0x55af('0x39'),_0x576ba2));})[_0x55af('0x34')](_0x414b2d=>{throw console['error'](_0x414b2d),new _0x510f2a(_0x55af('0x3'),null,{'originalError':_0x414b2d});});}[_0x55af('0xc')](_0x2508a2){if(_0x55af('0x26')!=typeof _0x2508a2[_0x55af('0x31')])throw new _0x510f2a(_0x55af('0x15'),this);if(this['isInReconnectionStack'](_0x2508a2))throw new _0x510f2a(_0x55af('0x2e'),this,{'name':_0x2508a2['constructor'][_0x55af('0x9')]});this[_0x55af('0xf')][_0x55af('0x23')](_0x2508a2);}[_0x55af('0x22')](_0x4073f8){this['_reconnectionStack'][_0x55af('0x4')](_0x4073f8);}[_0x55af('0x30')](_0x5cbb76){return this[_0x55af('0xf')][_0x55af('0x21')](_0x5cbb76);}[_0x55af('0xe')](){return this[_0x55af('0x29')][_0x55af('0x31')]()[_0x55af('0x37')](()=>Promise[_0x55af('0x24')](Array[_0x55af('0xa')](this[_0x55af('0xf')],_0x45749b=>_0x45749b[_0x55af('0x31')]())))['then'](()=>this[_0x55af('0x11')]='connected')[_0x55af('0x34')](_0x123bf7=>{throw console[_0x55af('0x16')](_0x123bf7),new _0x510f2a(_0x55af('0x2'),this[_0x55af('0x12')]);});}['destroy'](){this[_0x55af('0x29')]&&this[_0x55af('0x29')][_0x55af('0x20')](),this['state']='disconnected',this[_0x55af('0x6')][_0x55af('0x2d')](),super[_0x55af('0x18')]();}}c[_0x55af('0x32')]=_0x514744,c['initialReconnectionInterval']=0x3e8;
23
+ const _0xd89f=['code','_shouldPluginsReconnect','change:me','websocketgateway-plugin-already-registered','listenTo','disconnected','define','token','addToReconnectionStack','online','plugins','_domEmitter','real-time-collaboration','destroy','cloudServices.requestTimeout','config','showWarning','bind','connecting','limitExceeded','function','_isBrowserOffline','websocketgateway-invalid-plugin-interface','state','reconnect','then','requires','webSocketUrl','_reconnect','cloudservices-init','cloudservices-reconnection-error','connection','error','pluginName','initialReconnectionInterval','get','isInReconnectionStack','websocketgateway-missing-websocket-url','disconnect','WebSocketGateway','CloudServices','constructor','offline','from','catch','cloudServices.connectionTimeout','connected','websocketgateway-missing-token','_reconnectionStack','context','removeFromReconnectionStack','set','add','all'];(function(_0x31fcce,_0xd89f8c){const _0x22b29e=function(_0x234d58){while(--_0x234d58){_0x31fcce['push'](_0x31fcce['shift']());}};_0x22b29e(++_0xd89f8c);}(_0xd89f,0x136));const _0x22b2=function(_0x31fcce,_0xd89f8c){_0x31fcce=_0x31fcce-0x0;let _0x22b29e=_0xd89f[_0x31fcce];return _0x22b29e;};import{ContextPlugin as _0x1c47c6}from'ckeditor5/src/core';import{DomEmitterMixin as _0x10b2a2,CKEditorError as _0x1dc168}from'ckeditor5/src/utils';import _0x1c744e from'@ckeditor/ckeditor-cloud-services-collaboration/src/websocketgateway/websocketgateway';import{Notification as _0x29dbe6}from'ckeditor5/src/ui';export default class c extends _0x1c47c6{static get[_0x22b2('0x28')](){return[_0x22b2('0x0'),_0x29dbe6];}static get['pluginName'](){return _0x22b2('0x35');}['init'](){const _0x4a0414=this['context'],_0x23c720=_0x4a0414[_0x22b2('0x18')][_0x22b2('0x31')](_0x22b2('0x0')),_0x47b07f=_0x4a0414['plugins'][_0x22b2('0x31')](_0x29dbe6);if(!_0x23c720[_0x22b2('0x15')])throw new _0x1dc168(_0x22b2('0x7'),this);if(!_0x23c720[_0x22b2('0x29')])throw new _0x1dc168(_0x22b2('0x33'),this);return this[_0x22b2('0xb')](_0x22b2('0x25'),'connecting'),this[_0x22b2('0xb')](_0x22b2('0x23'),!0x1),this[_0x22b2('0x8')]=new Set(),this['_shouldPluginsReconnect']=!0x1,this[_0x22b2('0x19')]=Object['create'](_0x10b2a2),this[_0x22b2('0x19')][_0x22b2('0x12')](window,_0x22b2('0x2'),()=>this[_0x22b2('0x23')]=!0x0),this[_0x22b2('0x19')][_0x22b2('0x12')](window,_0x22b2('0x17'),()=>this['_isBrowserOffline']=!0x1),this[_0x22b2('0x9')][_0x22b2('0x1d')][_0x22b2('0x14')](_0x22b2('0x5'),0xa),this[_0x22b2('0x9')][_0x22b2('0x1d')]['define']('cloudServices.requestTimeout',0x14),c[_0x22b2('0x35')]['connect'](_0x23c720[_0x22b2('0x15')],_0x23c720['webSocketUrl'],{'disconnectOnUnload':!0x1,'timeout':0x3e8*this[_0x22b2('0x9')][_0x22b2('0x1d')][_0x22b2('0x31')](_0x22b2('0x5')),'requestTimeout':0x3e8*this[_0x22b2('0x9')][_0x22b2('0x1d')][_0x22b2('0x31')](_0x22b2('0x1c'))})[_0x22b2('0x27')](_0x185b2c=>{if(this[_0x22b2('0x2d')]=_0x185b2c,this[_0x22b2('0x1f')](_0x22b2('0x25'))['to'](_0x185b2c,_0x22b2('0x25'),this,'_isBrowserOffline',(_0x5c9d5e,_0x1c1686)=>(_0x22b2('0x6')!==_0x5c9d5e&&(this[_0x22b2('0xf')]=!0x0),_0x1c1686||'connected'!==_0x5c9d5e?_0x22b2('0x13'):_0x22b2('0x13')==this[_0x22b2('0x25')]&&this[_0x22b2('0xf')]?(this[_0x22b2('0xf')]=!0x1,this['_reconnect'](),_0x22b2('0x20')):_0x22b2('0x6'))),this[_0x22b2('0x2d')]['on'](_0x22b2('0x2e'),(_0x39559c,_0x5d849e)=>{if(_0x22b2('0x21')!==_0x5d849e[_0x22b2('0xe')])throw console[_0x22b2('0x2e')](_0x5d849e),new _0x1dc168(_0x22b2('0x2b'),null,{'originalError':_0x5d849e});_0x47b07f[_0x22b2('0x1e')]('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':'Connected\x20users\x20limit\x20exceeded','namespace':_0x22b2('0x1a')});}),!_0x185b2c['me'])return new Promise(_0x55a753=>_0x185b2c['on'](_0x22b2('0x10'),_0x55a753));})[_0x22b2('0x4')](_0x46ddcb=>{throw console[_0x22b2('0x2e')](_0x46ddcb),new _0x1dc168('cloudservices-init',null,{'originalError':_0x46ddcb});});}[_0x22b2('0x16')](_0x530a12){if(_0x22b2('0x22')!=typeof _0x530a12[_0x22b2('0x26')])throw new _0x1dc168(_0x22b2('0x24'),this);if(this['isInReconnectionStack'](_0x530a12))throw new _0x1dc168(_0x22b2('0x11'),this,{'name':_0x530a12[_0x22b2('0x1')][_0x22b2('0x2f')]});this[_0x22b2('0x8')][_0x22b2('0xc')](_0x530a12);}[_0x22b2('0xa')](_0x35cafe){this[_0x22b2('0x8')]['delete'](_0x35cafe);}[_0x22b2('0x32')](_0x564ceb){return this[_0x22b2('0x8')]['has'](_0x564ceb);}[_0x22b2('0x2a')](){return this[_0x22b2('0x2d')][_0x22b2('0x26')]()[_0x22b2('0x27')](()=>Promise[_0x22b2('0xd')](Array[_0x22b2('0x3')](this[_0x22b2('0x8')],_0x1a1cdc=>_0x1a1cdc['reconnect']())))['then'](()=>this[_0x22b2('0x25')]=_0x22b2('0x6'))[_0x22b2('0x4')](_0xa20cc2=>{throw console[_0x22b2('0x2e')](_0xa20cc2),new _0x1dc168(_0x22b2('0x2c'),this[_0x22b2('0x9')]);});}[_0x22b2('0x1b')](){this[_0x22b2('0x2d')]&&this[_0x22b2('0x2d')][_0x22b2('0x34')](),this['state']=_0x22b2('0x13'),this[_0x22b2('0x19')]['stopListening'](),super[_0x22b2('0x1b')]();}}c['WebSocketGateway']=_0x1c744e,c[_0x22b2('0x30')]=0x3e8;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x234e=['requires','pluginName'];(function(_0x2c3e08,_0x234e87){var _0x47b210=function(_0x347041){while(--_0x347041){_0x2c3e08['push'](_0x2c3e08['shift']());}};_0x47b210(++_0x234e87);}(_0x234e,0x11e));var _0x47b2=function(_0x2c3e08,_0x234e87){_0x2c3e08=_0x2c3e08-0x0;var _0x47b210=_0x234e[_0x2c3e08];return _0x47b210;};import{Plugin as _0x165c36}from'ckeditor5/src/core';import _0x543e84 from'./realtimecollaborativeediting/realtimecollaborationclient';export default class n extends _0x165c36{static get[_0x47b2('0x0')](){return[_0x543e84];}static get[_0x47b2('0x1')](){return'RealTimeCollaborativeEditing';}}
23
+ var _0x3c3b=['requires','RealTimeCollaborativeEditing','pluginName'];(function(_0x198985,_0x3c3bce){var _0x430d6f=function(_0x1e19e3){while(--_0x1e19e3){_0x198985['push'](_0x198985['shift']());}};_0x430d6f(++_0x3c3bce);}(_0x3c3b,0xcf));var _0x430d=function(_0x198985,_0x3c3bce){_0x198985=_0x198985-0x0;var _0x430d6f=_0x3c3b[_0x198985];return _0x430d6f;};import{Plugin as _0x40d45e}from'ckeditor5/src/core';import _0xae60e8 from'./realtimecollaborativeediting/realtimecollaborationclient';export default class n extends _0x40d45e{static get[_0x430d('0x0')](){return[_0xae60e8];}static get[_0x430d('0x2')](){return _0x430d('0x1');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x27c1=['setSource','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','connected','destroy','_offset','then','_bufferedUpdates','affectsData','authorsIds','_isPendingUpdate','_createCurrentRevision','cloudServices.bundleVersion','collaboration.channelId','size','toVersion','has','change:_isPendingUpdate','_revisionDataBuilder','getMany','_getLatestVersion','creatorId','currentRevision','_fixRevision','from','connection','once','_waitForServiceReady','serverHistory','get','map','off','getUser','_preventResendingRevisionData','change:_isConnected','_revisionHistoryService','listenTo','baseVersion','keys','buildRevisionData','plugins','reverse','message','editor','_revisions','data','type','Users','cloud-services-internal-error:\x20Request\x20timeout.','_revisionTracker','_lastRequestId','connect','_isConnected','wrongRequestId','length','marker','_update','isConnected','getRevision','_handleRevisionsUpdate','_domEmitter','fromVersion','cloud-services-internal-error:\x20Not\x20connected.','RevisionTracker','isEnabled','_oldOffset','reconnect','_bufferUpdate','requires','adapter','add','authors','catch','stopListening','addUser','diffData','max','_fetchMissingUsers','RevisionHistoryService','bind','code','repository','addRevisionData','addToReconnectionStack','_getLatestVersionFromServerOperations','400','revisionsUpdated','state','startsWith','sessionId','getOperations','isBundleUploaded'];(function(_0x1079b7,_0x27c126){const _0x3f34fa=function(_0x2a32a2){while(--_0x2a32a2){_0x1079b7['push'](_0x1079b7['shift']());}};_0x3f34fa(++_0x27c126);}(_0x27c1,0xa9));const _0x3f34=function(_0x1079b7,_0x27c126){_0x1079b7=_0x1079b7-0x0;let _0x3f34fa=_0x27c1[_0x1079b7];return _0x3f34fa;};import{Plugin as _0xe11b0d}from'ckeditor5/src/core';import{version as _0x543805}from'ckeditor5/src/utils';import{Users as _0x4d668b}from'ckeditor5-collaboration/src/collaboration-core';import _0x363a89 from'../realtimecollaborativeediting/realtimecollaborationclient';import _0xf3648e from'../realtimecollaborativeediting/websocketgateway';import _0x2f4f6a from'../realtimecollaborativeediting/sessions';import _0x42c353 from'@ckeditor/ckeditor-cloud-services-collaboration/src/users/user';import _0x36c593 from'@ckeditor/ckeditor-cloud-services-collaboration/src/revision-history/revisionhistoryservice';import _0x4050bb from'@ckeditor/ckeditor-cloud-services-collaboration/src/editor/editorservice';export default class v extends _0xe11b0d{static get[_0x3f34('0x50')](){return[_0xf3648e,_0x363a89,_0x3f34('0x4b'),_0x2f4f6a,_0x4d668b];}async['init'](){this[_0x3f34('0x3e')]=null,this[_0x3f34('0x3d')]=this[_0x3f34('0x37')][_0x3f34('0x34')][_0x3f34('0x29')](_0x3f34('0x4b'));const _0x136e0c=this[_0x3f34('0x37')][_0x3f34('0x34')][_0x3f34('0x29')](_0x363a89),_0x1da0cd=_0x136e0c['serverHistory'],_0x4847a5=this[_0x3f34('0x37')]['plugins'][_0x3f34('0x29')](_0xf3648e),_0x1bf1b9=this[_0x3f34('0x37')]['config'][_0x3f34('0x29')](_0x3f34('0x19'));this['_revisionHistoryService']=new v[(_0x3f34('0x5a'))](_0x1bf1b9),this[_0x3f34('0x3d')][_0x3f34('0xd')]({'history':_0x1da0cd,'getLatestVersion':()=>this[_0x3f34('0x20')](),'getCurrentRevisionId':()=>_0x136e0c[_0x3f34('0xa')]});const _0x30a445=this['editor']['config'][_0x3f34('0x29')](_0x3f34('0x18'))||_0x543805,_0x189a92=await _0x4050bb[_0x3f34('0xc')](_0x4847a5[_0x3f34('0x25')],_0x30a445);this[_0x3f34('0x3d')][_0x3f34('0x51')]={'getRevision':async({revisionId:_0x37a78f})=>(await this[_0x3f34('0x27')](),await this[_0x3f34('0x2f')][_0x3f34('0x46')](_0x37a78f)),'updateRevisions':async _0xff7f60=>{await this[_0x3f34('0x27')]();const _0x26c40e=this[_0x3f34('0x3d')]['currentRevision'];if(!_0x189a92||0x1!==_0xff7f60[_0x3f34('0x42')]||_0xff7f60[0x0]['id']!==_0x26c40e['id']){for(const _0x4a3c1c of _0xff7f60)_0x4a3c1c['id']===_0x26c40e['id']&&(_0x4a3c1c['isEmptyCurrent']=_0x4a3c1c[_0x3f34('0x49')]===_0x4a3c1c[_0x3f34('0x1b')]);return this[_0x3f34('0x2f')]['updateRevisions'](_0xff7f60,this['_lastRequestId'])[_0x3f34('0x12')](_0x170f72=>{this[_0x3f34('0x3e')]=_0x170f72;})[_0x3f34('0x54')](_0x3b35a2=>{if(!(it(_0x3b35a2)||_0x3f34('0x6')===_0x3b35a2[_0x3f34('0x1')]&&void 0x0!==_0x3b35a2[_0x3f34('0x39')][_0x3f34('0x41')]))throw _0x3b35a2;for(const _0x1013f8 of _0xff7f60){!this['_revisionTracker'][_0x3f34('0x2')][_0x3f34('0x46')](_0x1013f8['id'])||this[_0x3f34('0x3d')][_0x3f34('0x4f')](_0x1013f8['id'],_0x1013f8,!0x1);}if(it(_0x3b35a2))throw _0x3b35a2;});}}},this['listenTo'](this[_0x3f34('0x2f')],_0x3f34('0x7'),(_0x3df137,{revisionsData:_0x2feaee,requestId:_0x6db3e9})=>{Math['max'](..._0x2feaee[_0x3f34('0x2a')](_0x1df6f2=>_0x1df6f2[_0x3f34('0x1b')]))>this[_0x3f34('0x5')]()-0x1?this[_0x3f34('0x20')]()[_0x3f34('0x12')](()=>{this[_0x3f34('0x47')](_0x2feaee,_0x6db3e9);}):this[_0x3f34('0x47')](_0x2feaee,_0x6db3e9);});const {revisions:_0x1fbcc4,requestId:_0x62f5a3}=await this['_revisionHistoryService'][_0x3f34('0x3f')](_0x4847a5[_0x3f34('0x25')]);_0x4847a5[_0x3f34('0x4')](this),this[_0x3f34('0x3e')]=_0x62f5a3,await this[_0x3f34('0x59')](_0x1fbcc4);for(const _0x171c11 of _0x1fbcc4)this[_0x3f34('0x3d')][_0x3f34('0x3')](_0x171c11);this[_0x3f34('0x30')](_0x136e0c,'change:_isConnected',(_0x24d5df,_0x30ea85,_0x43b870)=>{_0x43b870&&(this[_0x3f34('0x4d')]=_0x136e0c['_offset'],_0x24d5df[_0x3f34('0x2b')]());}),this[_0x3f34('0x3d')][_0x3f34('0x0')](_0x3f34('0x4c'))['to'](_0x4847a5,_0x3f34('0x8'),_0x16f6be=>_0x3f34('0xf')===_0x16f6be);}async[_0x3f34('0x4e')](){const _0x152e6c=this[_0x3f34('0x37')][_0x3f34('0x34')][_0x3f34('0x29')](_0xf3648e),_0x3b0b52=this[_0x3f34('0x37')]['plugins'][_0x3f34('0x29')](_0x363a89),_0x530bdc=async()=>{const _0x23ffb9=this[_0x3f34('0x3d')][_0x3f34('0x22')],_0x49a815=_0x23ffb9['id'],_0x2778ce=_0x49a815!==_0x3b0b52[_0x3f34('0xa')];if(_0x2778ce){const _0x2bb0f8=_0x3b0b52[_0x3f34('0x11')]-this['_oldOffset'],_0x37506d=this[_0x3f34('0x5')]();this[_0x3f34('0x3d')][_0x3f34('0x1e')]['reInit']();if(_0x23ffb9[_0x3f34('0x1b')]+_0x2bb0f8!==_0x37506d){const _0x3b509c=_0x23ffb9[_0x3f34('0x49')]+_0x2bb0f8,_0x33eace=this[_0x3f34('0x37')]['plugins'][_0x3f34('0x29')](_0x3f34('0x3b')),_0x1fa955=this[_0x3f34('0x3d')]['buildRevisionData']({'currentRevision':_0x23ffb9,'from':_0x3b509c,'to':_0x37506d});_0x1fa955['id']=_0x23ffb9['id'];const _0x112258=_0x1fa955[_0x3f34('0x15')][_0x3f34('0x2a')](_0x24e70b=>_0x33eace[_0x3f34('0x2c')](_0x24e70b));_0x23ffb9[_0x3f34('0x44')]({..._0x1fa955,'authors':_0x112258},!0x0),this['_revisionTracker']['_bufferUpdate'](_0x23ffb9['id'],_0x1fa955,!0x0);}this['_revisionTracker']['_startingVersion']=_0x37506d,(_0x23ffb9['toVersion']===_0x23ffb9[_0x3f34('0x49')]&&!this[_0x3f34('0x3d')][_0x3f34('0x13')][_0x3f34('0x1c')](_0x49a815)&&this['_revisionTracker'][_0x3f34('0x2')][_0x3f34('0x38')]['remove'](_0x49a815),this[_0x3f34('0x3d')][_0x3f34('0x17')](_0x37506d));}const {revisions:_0x1a5423,requestId:_0x294bbd}=await this[_0x3f34('0x2f')][_0x3f34('0x4e')](_0x152e6c[_0x3f34('0x25')],this[_0x3f34('0x3e')]);_0x2778ce&&_0x1a5423[_0x3f34('0x42')]>0x0?_0x3b0b52['_handleReconnectionError']():(await this[_0x3f34('0x59')](_0x1a5423),this[_0x3f34('0x47')](_0x1a5423,_0x294bbd),this['_revisionTracker']['sendBufferedUpdates']());};return _0x3b0b52[_0x3f34('0x40')]?_0x530bdc():new Promise((_0xb65ec7,_0x591d86)=>{_0x3b0b52[_0x3f34('0x26')](_0x3f34('0x2e'),()=>{_0x530bdc()[_0x3f34('0x12')](_0xb65ec7)[_0x3f34('0x54')](_0x591d86);});});}[_0x3f34('0x10')](){this[_0x3f34('0x48')]&&this[_0x3f34('0x48')][_0x3f34('0x55')](),super['destroy']();}async[_0x3f34('0x27')](){this['_revisionHistoryService'][_0x3f34('0x45')]||await new Promise(_0x10fbdf=>{this[_0x3f34('0x30')](this[_0x3f34('0x2f')],_0x3f34('0xf'),_0x5023d6=>{_0x5023d6[_0x3f34('0x2b')](),_0x10fbdf();});});}[_0x3f34('0x5')](){const _0x1cb63d=this[_0x3f34('0x37')][_0x3f34('0x34')][_0x3f34('0x29')](_0x363a89)[_0x3f34('0x28')];for(const _0x55382f of _0x1cb63d[_0x3f34('0xb')]()[_0x3f34('0x35')]())if(_0x3f34('0x43')!==_0x55382f[_0x3f34('0x3a')]||_0x55382f[_0x3f34('0x14')])return _0x55382f[_0x3f34('0x31')]+0x1;}['_getLatestVersion'](){const _0x21a7e9=this[_0x3f34('0x37')][_0x3f34('0x34')][_0x3f34('0x29')](_0x363a89);return new Promise(_0x20e9ab=>{_0x21a7e9[_0x3f34('0x16')]?_0x21a7e9[_0x3f34('0x26')](_0x3f34('0x1d'),()=>{_0x20e9ab(this['_getLatestVersionFromServerOperations']());}):_0x20e9ab(this[_0x3f34('0x5')]());});}[_0x3f34('0x47')](_0x3cef78,_0x3d8a89){const _0x526478=this[_0x3f34('0x3d')][_0x3f34('0x2')];this['_lastRequestId']=_0x3d8a89;for(const _0x2da839 of _0x3cef78){const _0x5accd8=_0x526478[_0x3f34('0x46')](_0x2da839['id']);if(_0x5accd8){if((_0x2da839[_0x3f34('0x49')]||_0x2da839[_0x3f34('0x1b')])&&(_0x2da839[_0x3f34('0x57')]=null),_0x5accd8===this[_0x3f34('0x3d')][_0x3f34('0x22')]){const _0x101eeb=Math[_0x3f34('0x58')](_0x5accd8[_0x3f34('0x1b')],_0x2da839[_0x3f34('0x1b')]),_0x268169=Math[_0x3f34('0x58')](_0x5accd8[_0x3f34('0x49')],_0x2da839[_0x3f34('0x49')]);let _0x1b3c7a;_0x5accd8['toVersion']===_0x2da839[_0x3f34('0x1b')]&&_0x5accd8[_0x3f34('0x49')]===_0x2da839[_0x3f34('0x49')]?(_0x1b3c7a=!0x0,this['_preventResendingRevisionData'](_0x2da839)):_0x2da839['toVersion']===_0x101eeb&&_0x2da839[_0x3f34('0x49')]===_0x268169?_0x1b3c7a=!0x1:(_0x5accd8[_0x3f34('0x1b')]===_0x101eeb&&_0x5accd8[_0x3f34('0x49')]===_0x268169||this[_0x3f34('0x23')]({'revision':_0x5accd8,'from':_0x268169,'to':_0x101eeb}),_0x1b3c7a=!0x0),_0x1b3c7a&&(delete _0x2da839[_0x3f34('0x49')],delete _0x2da839['toVersion'],delete _0x2da839[_0x3f34('0x57')],delete _0x2da839['createdAt'],delete _0x2da839[_0x3f34('0x15')]);}this[_0x3f34('0x3d')]['setRevisionData'](_0x2da839),this[_0x3f34('0x2d')](_0x2da839);}else this['_revisionTracker'][_0x3f34('0x3')](_0x2da839);}const _0x1efbc6=_0x526478['getRevisions']();_0x1efbc6['reverse']();for(let _0x266e7a=0x0;_0x266e7a<_0x1efbc6['length']-0x1;_0x266e7a++){const _0x4117b0=_0x1efbc6[_0x266e7a],_0x5730d1=_0x1efbc6[_0x266e7a+0x1];if(_0x4117b0[_0x3f34('0x49')]<_0x5730d1['toVersion']){const _0x2ba600=_0x5730d1[_0x3f34('0x1b')],_0x1288b3=Math[_0x3f34('0x58')](_0x2ba600,_0x4117b0[_0x3f34('0x1b')]);this[_0x3f34('0x23')]({'revision':_0x4117b0,'from':_0x2ba600,'to':_0x1288b3});}}}[_0x3f34('0x23')]({revision:_0x21893f,from:_0xb442a,to:_0x515ca8}={}){const _0x4217d7=this[_0x3f34('0x37')][_0x3f34('0x34')][_0x3f34('0x29')](_0x3f34('0x3b')),_0x47631d=this[_0x3f34('0x3d')][_0x3f34('0x33')]({'revision':_0x21893f,'from':_0xb442a,'to':_0x515ca8});_0x47631d[_0x3f34('0x53')]=_0x47631d[_0x3f34('0x15')]['map'](_0x300be2=>_0x4217d7['getUser'](_0x300be2)),_0x21893f[_0x3f34('0x44')](_0x47631d);}[_0x3f34('0x2d')](_0x4818b1){const _0xd3c52d={};_0xd3c52d['id']=_0x4818b1['id'];for(const _0x1305f8 of Object[_0x3f34('0x32')](_0x4818b1))'id'!==_0x1305f8&&(_0xd3c52d[_0x1305f8]=void 0x0);this[_0x3f34('0x3d')][_0x3f34('0x4f')](_0xd3c52d['id'],_0xd3c52d,!0x0);}async[_0x3f34('0x59')](_0x140d6f){const _0x3a6f17=this[_0x3f34('0x37')][_0x3f34('0x34')][_0x3f34('0x29')](_0x4d668b),{connection:_0xe3e147}=this[_0x3f34('0x37')][_0x3f34('0x34')][_0x3f34('0x29')](_0xf3648e),_0x10fb6c=new Set();for(const _0x397826 of _0x140d6f){for(const _0x4c089a of _0x397826[_0x3f34('0x15')])_0x8c1ab0(_0x4c089a);_0x397826[_0x3f34('0x21')]&&_0x8c1ab0(_0x397826[_0x3f34('0x21')]);}if(0x0===_0x10fb6c[_0x3f34('0x1a')])return;const _0x55cc0f=await _0x42c353[_0x3f34('0x1f')](_0xe3e147,Array[_0x3f34('0x24')](_0x10fb6c));for(const _0x5c1ed9 of _0x55cc0f)_0x3a6f17[_0x3f34('0x2c')](_0x5c1ed9['id'])||_0x3a6f17[_0x3f34('0x56')](_0x5c1ed9);function _0x8c1ab0(_0x11ce7d){_0x3a6f17[_0x3f34('0x2c')](_0x11ce7d)||_0x10fb6c[_0x3f34('0x52')](_0x11ce7d);}}}function it(_0x47c9f7){return _0x47c9f7[_0x3f34('0x36')][_0x3f34('0x9')](_0x3f34('0xe'))||_0x47c9f7[_0x3f34('0x36')][_0x3f34('0x9')](_0x3f34('0x4a'))||_0x47c9f7[_0x3f34('0x36')][_0x3f34('0x9')](_0x3f34('0x3c'));}v[_0x3f34('0x5a')]=_0x36c593;
23
+ const _0xd77f=['cloud-services-internal-error:\x20Request\x20timeout.','_fetchMissingUsers','init','message','config','getOperations','state','_revisionTracker','catch','startsWith','off','adapter','keys','_lastRequestId','RevisionTracker','Users','from','_preventResendingRevisionData','listenTo','setRevisionData','has','addUser','then','_update','map','_revisionHistoryService','serverHistory','revisionsUpdated','sessionId','authorsIds','_isConnected','_handleReconnectionError','getRevisions','creatorId','isEnabled','data','connected','createdAt','stopListening','plugins','getUser','getMany','once','authors','add','length','_oldOffset','_fixRevision','addRevisionData','bind','repository','fromVersion','reInit','setSource','isEmptyCurrent','change:_isConnected','remove','_getLatestVersion','_offset','connection','toVersion','type','_createCurrentRevision','cloud-services-internal-error:\x20Not\x20connected.','affectsData','buildRevisionData','_handleRevisionsUpdate','max','RevisionHistoryService','_getLatestVersionFromServerOperations','size','_bufferUpdate','editor','updateRevisions','getRevision','get','reverse','_waitForServiceReady','sendBufferedUpdates','code','_domEmitter','collaboration.channelId','currentRevision','_revisions','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','requires'];(function(_0x13a5b0,_0xd77fa0){const _0x133466=function(_0x52002c){while(--_0x52002c){_0x13a5b0['push'](_0x13a5b0['shift']());}};_0x133466(++_0xd77fa0);}(_0xd77f,0xb6));const _0x1334=function(_0x13a5b0,_0xd77fa0){_0x13a5b0=_0x13a5b0-0x0;let _0x133466=_0xd77f[_0x13a5b0];return _0x133466;};import{Plugin as _0x4af5c6}from'ckeditor5/src/core';import{version as _0x5e81fa}from'ckeditor5/src/utils';import{Users as _0x5e61ac}from'ckeditor5-collaboration/src/collaboration-core';import _0x5be283 from'../realtimecollaborativeediting/realtimecollaborationclient';import _0x30e46e from'../realtimecollaborativeediting/websocketgateway';import _0x2873b7 from'../realtimecollaborativeediting/sessions';import _0x6498cd from'@ckeditor/ckeditor-cloud-services-collaboration/src/users/user';import _0x4317bf from'@ckeditor/ckeditor-cloud-services-collaboration/src/revision-history/revisionhistoryservice';import _0x4fba74 from'@ckeditor/ckeditor-cloud-services-collaboration/src/editor/editorservice';export default class v extends _0x4af5c6{static get[_0x1334('0x4b')](){return[_0x30e46e,_0x5be283,_0x1334('0x4'),_0x2873b7,_0x5e61ac];}async[_0x1334('0x4e')](){this[_0x1334('0x3')]=null,this[_0x1334('0x53')]=this[_0x1334('0x3e')][_0x1334('0x1d')]['get'](_0x1334('0x4'));const _0x5dccc8=this[_0x1334('0x3e')]['plugins'][_0x1334('0x41')](_0x5be283),_0x129a08=_0x5dccc8[_0x1334('0x10')],_0x1e77f8=this['editor']['plugins'][_0x1334('0x41')](_0x30e46e),_0x459e8a=this[_0x1334('0x3e')][_0x1334('0x50')][_0x1334('0x41')](_0x1334('0x47'));this[_0x1334('0xf')]=new v['RevisionHistoryService'](_0x459e8a),this[_0x1334('0x53')][_0x1334('0x2b')]({'history':_0x129a08,'getLatestVersion':()=>this[_0x1334('0x2f')](),'getCurrentRevisionId':()=>_0x5dccc8[_0x1334('0x12')]});const _0x56565e=this[_0x1334('0x3e')][_0x1334('0x50')][_0x1334('0x41')]('cloudServices.bundleVersion')||_0x5e81fa,_0x5276aa=await _0x4fba74['isBundleUploaded'](_0x1e77f8[_0x1334('0x31')],_0x56565e);this['_revisionTracker'][_0x1334('0x1')]={'getRevision':async({revisionId:_0x4db098})=>(await this['_waitForServiceReady'](),await this[_0x1334('0xf')][_0x1334('0x40')](_0x4db098)),'updateRevisions':async _0x4884dc=>{await this[_0x1334('0x43')]();const _0x16506c=this['_revisionTracker'][_0x1334('0x48')];if(!_0x5276aa||0x1!==_0x4884dc[_0x1334('0x23')]||_0x4884dc[0x0]['id']!==_0x16506c['id']){for(const _0x406a72 of _0x4884dc)_0x406a72['id']===_0x16506c['id']&&(_0x406a72[_0x1334('0x2c')]=_0x406a72['fromVersion']===_0x406a72['toVersion']);return this[_0x1334('0xf')][_0x1334('0x3f')](_0x4884dc,this[_0x1334('0x3')])[_0x1334('0xc')](_0x57840e=>{this[_0x1334('0x3')]=_0x57840e;})['catch'](_0x2c41b0=>{if(!(tt(_0x2c41b0)||'400'===_0x2c41b0[_0x1334('0x45')]&&void 0x0!==_0x2c41b0[_0x1334('0x19')]['wrongRequestId']))throw _0x2c41b0;for(const _0x41626b of _0x4884dc){!this[_0x1334('0x53')]['repository'][_0x1334('0x40')](_0x41626b['id'])||this[_0x1334('0x53')]['_bufferUpdate'](_0x41626b['id'],_0x41626b,!0x1);}if(tt(_0x2c41b0))throw _0x2c41b0;});}}},this[_0x1334('0x8')](this[_0x1334('0xf')],_0x1334('0x11'),(_0x570ddb,{revisionsData:_0x875543,requestId:_0x13769b})=>{Math[_0x1334('0x39')](..._0x875543[_0x1334('0xe')](_0x1c5d76=>_0x1c5d76[_0x1334('0x32')]))>this[_0x1334('0x3b')]()-0x1?this['_getLatestVersion']()[_0x1334('0xc')](()=>{this[_0x1334('0x38')](_0x875543,_0x13769b);}):this['_handleRevisionsUpdate'](_0x875543,_0x13769b);});const {revisions:_0x3d1cd9,requestId:_0x58ba79}=await this[_0x1334('0xf')]['connect'](_0x1e77f8['connection']);_0x1e77f8['addToReconnectionStack'](this),this[_0x1334('0x3')]=_0x58ba79,await this[_0x1334('0x4d')](_0x3d1cd9);for(const _0x4e2553 of _0x3d1cd9)this['_revisionTracker']['addRevisionData'](_0x4e2553);this[_0x1334('0x8')](_0x5dccc8,'change:_isConnected',(_0x1b65a1,_0x31fdf9,_0xa31cd2)=>{_0xa31cd2&&(this[_0x1334('0x24')]=_0x5dccc8[_0x1334('0x30')],_0x1b65a1[_0x1334('0x0')]());}),this['_revisionTracker'][_0x1334('0x27')](_0x1334('0x18'))['to'](_0x1e77f8,_0x1334('0x52'),_0x389764=>_0x1334('0x1a')===_0x389764);}async['reconnect'](){const _0x3e7dc7=this[_0x1334('0x3e')][_0x1334('0x1d')][_0x1334('0x41')](_0x30e46e),_0x4937ff=this[_0x1334('0x3e')]['plugins'][_0x1334('0x41')](_0x5be283),_0x4118cd=async()=>{const _0x39a80f=this[_0x1334('0x53')][_0x1334('0x48')],_0x439314=_0x39a80f['id'],_0x578900=_0x439314!==_0x4937ff[_0x1334('0x12')];if(_0x578900){const _0x4f1baf=_0x4937ff[_0x1334('0x30')]-this[_0x1334('0x24')],_0x5c5154=this[_0x1334('0x3b')]();this[_0x1334('0x53')]['_revisionDataBuilder'][_0x1334('0x2a')]();if(_0x39a80f[_0x1334('0x32')]+_0x4f1baf!==_0x5c5154){const _0x22d1f1=_0x39a80f[_0x1334('0x29')]+_0x4f1baf,_0x594b5f=this[_0x1334('0x3e')][_0x1334('0x1d')][_0x1334('0x41')]('Users'),_0x69ceb0=this['_revisionTracker'][_0x1334('0x37')]({'currentRevision':_0x39a80f,'from':_0x22d1f1,'to':_0x5c5154});_0x69ceb0['id']=_0x39a80f['id'];const _0x177f0c=_0x69ceb0[_0x1334('0x13')][_0x1334('0xe')](_0x12fe94=>_0x594b5f[_0x1334('0x1e')](_0x12fe94));_0x39a80f[_0x1334('0xd')]({..._0x69ceb0,'authors':_0x177f0c},!0x0),this[_0x1334('0x53')][_0x1334('0x3d')](_0x39a80f['id'],_0x69ceb0,!0x0);}this['_revisionTracker']['_startingVersion']=_0x5c5154,(_0x39a80f[_0x1334('0x32')]===_0x39a80f['fromVersion']&&!this[_0x1334('0x53')]['_bufferedUpdates'][_0x1334('0xa')](_0x439314)&&this['_revisionTracker']['repository'][_0x1334('0x49')][_0x1334('0x2e')](_0x439314),this['_revisionTracker'][_0x1334('0x34')](_0x5c5154));}const {revisions:_0x153338,requestId:_0x56c05e}=await this['_revisionHistoryService']['reconnect'](_0x3e7dc7[_0x1334('0x31')],this[_0x1334('0x3')]);_0x578900&&_0x153338[_0x1334('0x23')]>0x0?_0x4937ff[_0x1334('0x15')]():(await this[_0x1334('0x4d')](_0x153338),this[_0x1334('0x38')](_0x153338,_0x56c05e),this[_0x1334('0x53')][_0x1334('0x44')]());};return _0x4937ff[_0x1334('0x14')]?_0x4118cd():new Promise((_0x2bebcc,_0x357d15)=>{_0x4937ff[_0x1334('0x20')](_0x1334('0x2d'),()=>{_0x4118cd()[_0x1334('0xc')](_0x2bebcc)[_0x1334('0x54')](_0x357d15);});});}['destroy'](){this[_0x1334('0x46')]&&this[_0x1334('0x46')][_0x1334('0x1c')](),super['destroy']();}async[_0x1334('0x43')](){this[_0x1334('0xf')]['isConnected']||await new Promise(_0x217a2a=>{this[_0x1334('0x8')](this[_0x1334('0xf')],_0x1334('0x1a'),_0x5d32a6=>{_0x5d32a6['off'](),_0x217a2a();});});}[_0x1334('0x3b')](){const _0x134ce2=this[_0x1334('0x3e')][_0x1334('0x1d')][_0x1334('0x41')](_0x5be283)[_0x1334('0x10')];for(const _0x4c2c5f of _0x134ce2[_0x1334('0x51')]()[_0x1334('0x42')]())if('marker'!==_0x4c2c5f[_0x1334('0x33')]||_0x4c2c5f[_0x1334('0x36')])return _0x4c2c5f['baseVersion']+0x1;}[_0x1334('0x2f')](){const _0x595697=this[_0x1334('0x3e')][_0x1334('0x1d')]['get'](_0x5be283);return new Promise(_0x585115=>{_0x595697['_isPendingUpdate']?_0x595697[_0x1334('0x20')]('change:_isPendingUpdate',()=>{_0x585115(this[_0x1334('0x3b')]());}):_0x585115(this['_getLatestVersionFromServerOperations']());});}[_0x1334('0x38')](_0x492fc3,_0x4fffe2){const _0x2f7b6f=this[_0x1334('0x53')][_0x1334('0x28')];this[_0x1334('0x3')]=_0x4fffe2;for(const _0x317ca8 of _0x492fc3){const _0x478db0=_0x2f7b6f[_0x1334('0x40')](_0x317ca8['id']);if(_0x478db0){if((_0x317ca8['fromVersion']||_0x317ca8[_0x1334('0x32')])&&(_0x317ca8['diffData']=null),_0x478db0===this[_0x1334('0x53')]['currentRevision']){const _0x32a2b0=Math[_0x1334('0x39')](_0x478db0[_0x1334('0x32')],_0x317ca8[_0x1334('0x32')]),_0x12340c=Math[_0x1334('0x39')](_0x478db0['fromVersion'],_0x317ca8[_0x1334('0x29')]);let _0x16cb83;_0x478db0['toVersion']===_0x317ca8['toVersion']&&_0x478db0['fromVersion']===_0x317ca8[_0x1334('0x29')]?(_0x16cb83=!0x0,this[_0x1334('0x7')](_0x317ca8)):_0x317ca8[_0x1334('0x32')]===_0x32a2b0&&_0x317ca8[_0x1334('0x29')]===_0x12340c?_0x16cb83=!0x1:(_0x478db0['toVersion']===_0x32a2b0&&_0x478db0[_0x1334('0x29')]===_0x12340c||this['_fixRevision']({'revision':_0x478db0,'from':_0x12340c,'to':_0x32a2b0}),_0x16cb83=!0x0),_0x16cb83&&(delete _0x317ca8[_0x1334('0x29')],delete _0x317ca8[_0x1334('0x32')],delete _0x317ca8['diffData'],delete _0x317ca8[_0x1334('0x1b')],delete _0x317ca8[_0x1334('0x13')]);}this[_0x1334('0x53')][_0x1334('0x9')](_0x317ca8),this[_0x1334('0x7')](_0x317ca8);}else this[_0x1334('0x53')][_0x1334('0x26')](_0x317ca8);}const _0x2ba0c8=_0x2f7b6f[_0x1334('0x16')]();_0x2ba0c8['reverse']();for(let _0x5b1c6f=0x0;_0x5b1c6f<_0x2ba0c8[_0x1334('0x23')]-0x1;_0x5b1c6f++){const _0x2bc98e=_0x2ba0c8[_0x5b1c6f],_0x5f0df5=_0x2ba0c8[_0x5b1c6f+0x1];if(_0x2bc98e[_0x1334('0x29')]<_0x5f0df5['toVersion']){const _0x1615a4=_0x5f0df5['toVersion'],_0x47e3bb=Math[_0x1334('0x39')](_0x1615a4,_0x2bc98e[_0x1334('0x32')]);this[_0x1334('0x25')]({'revision':_0x2bc98e,'from':_0x1615a4,'to':_0x47e3bb});}}}[_0x1334('0x25')]({revision:_0x7c6795,from:_0x528039,to:_0xf854da}={}){const _0x309184=this[_0x1334('0x3e')][_0x1334('0x1d')][_0x1334('0x41')](_0x1334('0x5')),_0x3fd942=this[_0x1334('0x53')][_0x1334('0x37')]({'revision':_0x7c6795,'from':_0x528039,'to':_0xf854da});_0x3fd942[_0x1334('0x21')]=_0x3fd942['authorsIds'][_0x1334('0xe')](_0x8da626=>_0x309184[_0x1334('0x1e')](_0x8da626)),_0x7c6795[_0x1334('0xd')](_0x3fd942);}[_0x1334('0x7')](_0x348518){const _0x217720={};_0x217720['id']=_0x348518['id'];for(const _0xcc4334 of Object[_0x1334('0x2')](_0x348518))'id'!==_0xcc4334&&(_0x217720[_0xcc4334]=void 0x0);this[_0x1334('0x53')]['_bufferUpdate'](_0x217720['id'],_0x217720,!0x0);}async[_0x1334('0x4d')](_0x56538e){const _0x464ea2=this['editor'][_0x1334('0x1d')][_0x1334('0x41')](_0x5e61ac),{connection:_0x30aba5}=this[_0x1334('0x3e')]['plugins'][_0x1334('0x41')](_0x30e46e),_0x34f999=new Set();for(const _0x19db64 of _0x56538e){for(const _0x3e7dc1 of _0x19db64['authorsIds'])_0xebf669(_0x3e7dc1);_0x19db64[_0x1334('0x17')]&&_0xebf669(_0x19db64[_0x1334('0x17')]);}if(0x0===_0x34f999[_0x1334('0x3c')])return;const _0x37eec6=await _0x6498cd[_0x1334('0x1f')](_0x30aba5,Array[_0x1334('0x6')](_0x34f999));for(const _0x6de774 of _0x37eec6)_0x464ea2[_0x1334('0x1e')](_0x6de774['id'])||_0x464ea2[_0x1334('0xb')](_0x6de774);function _0xebf669(_0x17145e){_0x464ea2['getUser'](_0x17145e)||_0x34f999[_0x1334('0x22')](_0x17145e);}}}function tt(_0x150f78){return _0x150f78['message']['startsWith'](_0x1334('0x4a'))||_0x150f78[_0x1334('0x4f')][_0x1334('0x55')](_0x1334('0x35'))||_0x150f78[_0x1334('0x4f')]['startsWith'](_0x1334('0x4c'));}v[_0x1334('0x3a')]=_0x4317bf;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3e00=['RevisionHistory','pluginName','requires'];(function(_0x30481d,_0x3e002c){var _0x3aa7bb=function(_0x23fbc4){while(--_0x23fbc4){_0x30481d['push'](_0x30481d['shift']());}};_0x3aa7bb(++_0x3e002c);}(_0x3e00,0x12e));var _0x3aa7=function(_0x30481d,_0x3e002c){_0x30481d=_0x30481d-0x0;var _0x3aa7bb=_0x3e00[_0x30481d];return _0x3aa7bb;};import{Plugin as _0xae71dc}from'ckeditor5/src/core';import _0x1420ac from'./realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter';import _0x184848 from'./realtimecollaborativeediting';export default class d extends _0xae71dc{static get[_0x3aa7('0x0')](){return[_0x3aa7('0x1'),_0x1420ac,_0x184848];}static get[_0x3aa7('0x2')](){return'RealTimeCollaborativeRevisionHistory';}}
23
+ var _0xc5cf=['RealTimeCollaborativeRevisionHistory','RevisionHistory','requires','pluginName'];(function(_0x40bc3b,_0xc5cfe8){var _0x583f34=function(_0x2063ea){while(--_0x2063ea){_0x40bc3b['push'](_0x40bc3b['shift']());}};_0x583f34(++_0xc5cfe8);}(_0xc5cf,0x174));var _0x583f=function(_0x40bc3b,_0xc5cfe8){_0x40bc3b=_0x40bc3b-0x0;var _0x583f34=_0xc5cf[_0x40bc3b];return _0x583f34;};import{Plugin as _0x3b2897}from'ckeditor5/src/core';import _0x4f2101 from'./realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter';import _0x142ed3 from'./realtimecollaborativeediting';export default class d extends _0x3b2897{static get[_0x583f('0x2')](){return[_0x583f('0x1'),_0x4f2101,_0x142ed3];}static get[_0x583f('0x3')](){return _0x583f('0x0');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4e22=['catch','_bufferedRequests','_waitForServiceReady','init','delete','_trackChangesService','connection','cloud-services-internal-error:\x20Not\x20connected.','getUser','then','listenTo','addSuggestionData','editor','open','size','collaboration.channelId','cloud-services-internal-error:\x20Request\x20timeout.','plugins','get','from','state','startsWith','isConnected','TrackChangesEditing','suggestionUpdated','_fetchMissingUsersForThreads','off','attributes','add','config','values','data','connect','message','addToReconnectionStack','hasSuggestion','TrackChangesService','update','requires'];(function(_0x2e434b,_0x4e2281){const _0x3b121c=function(_0x391407){while(--_0x391407){_0x2e434b['push'](_0x2e434b['shift']());}};_0x3b121c(++_0x4e2281);}(_0x4e22,0x126));const _0x3b12=function(_0x2e434b,_0x4e2281){_0x2e434b=_0x2e434b-0x0;let _0x3b121c=_0x4e22[_0x2e434b];return _0x3b121c;};import{Plugin as _0x29764c}from'ckeditor5/src/core';import _0x3d0bda from'@ckeditor/ckeditor-cloud-services-collaboration/src/track-changes/trackchangesservice';import _0x3ee714 from'../realtimecollaborativeediting/websocketgateway';import _0x54b657 from'../realtimecollaborativecomments/cloudservicescommentsadapter';import _0x615a3b from'@ckeditor/ckeditor-cloud-services-collaboration/src/users/user';import{Users as _0x5ced6e}from'ckeditor5-collaboration/src/collaboration-core';export default class g extends _0x29764c{static get[_0x3b12('0x11')](){return[_0x54b657,_0x3b12('0x2'),_0x3ee714];}constructor(_0x41965c){super(_0x41965c),this['_bufferedRequests']=new Map();}[_0x3b12('0x15')](){const _0x2486d5=this[_0x3b12('0x1e')][_0x3b12('0x23')][_0x3b12('0x24')](_0x3ee714),_0x198452=this[_0x3b12('0x1e')]['plugins'][_0x3b12('0x24')]('TrackChangesEditing'),_0x2be076=this['editor'][_0x3b12('0x8')][_0x3b12('0x24')](_0x3b12('0x21'));return this['_trackChangesService']=new g[(_0x3b12('0xf'))](_0x2be076),_0x198452['adapter']={'getSuggestion':async _0x284ac7=>{await this[_0x3b12('0x14')]();const _0x4af47a=await this['_trackChangesService'][_0x3b12('0x24')](_0x284ac7)[_0x3b12('0x12')](R);return await this['_fetchMissingUsersForThreads']([_0x4af47a]),_0x4af47a;},'addSuggestion':async({id:_0x649102,type:_0x1311ff,data:_0x4ad7ca,originalSuggestionId:_0x51a0e7,attributes:_0x48d192})=>{await this[_0x3b12('0x14')]();const _0x58f851={'id':_0x649102,'type':_0x1311ff,'data':_0x4ad7ca,'originalSuggestionId':_0x51a0e7,'attributes':_0x48d192},_0x1add52=await this[_0x3b12('0x17')][_0x3b12('0x7')](_0x649102,_0x1311ff,_0x4ad7ca,_0x51a0e7,_0x48d192)[_0x3b12('0x12')](_0x58efdb=>{if(it(_0x58efdb))return new Promise(_0x3f8bbb=>{this[_0x3b12('0x13')]['set'](_0x649102,{'resolve':_0x3f8bbb,'suggestionData':_0x58f851});});throw _0x58efdb;});return this[_0x3b12('0x13')][_0x3b12('0x16')](_0x649102),_0x1add52;},'updateSuggestion':async(_0x33224a,_0xa39aca)=>{if(await this['_waitForServiceReady'](),_0x3b12('0x1f')!==_0xa39aca[_0x3b12('0x26')])return this['_trackChangesService'][_0x3b12('0x10')](_0x33224a,_0xa39aca)['catch'](R);}},this[_0x3b12('0x1c')](this[_0x3b12('0x17')],_0x3b12('0x3'),(_0x1751f0,_0x162e58)=>{_0x198452['hasSuggestion'](_0x162e58['id'])&&(_0x198452['getSuggestion'](_0x162e58['id'])[_0x3b12('0x6')]=_0x162e58[_0x3b12('0x6')]);}),this[_0x3b12('0x17')]['connect'](_0x2486d5[_0x3b12('0x18')])[_0x3b12('0x1b')](_0x10507b=>(_0x2486d5[_0x3b12('0xd')](this),this['_fetchMissingUsersForThreads'](_0x10507b)[_0x3b12('0x1b')](()=>{for(const _0x4bbc94 of _0x10507b){_0x198452[_0x3b12('0x1d')](_0x4bbc94)['_saved']=!0x0;}})));}async['reconnect'](){const _0x4dd5db=this['editor'][_0x3b12('0x23')][_0x3b12('0x24')](_0x3b12('0x2')),{connection:_0x3616fd}=this['editor']['plugins']['get'](_0x3ee714),_0x14515d=await this[_0x3b12('0x17')][_0x3b12('0xb')](_0x3616fd);await this['_fetchMissingUsersForThreads'](_0x14515d);for(const {suggestionData:_0x508a6d,resolve:_0x2d3514}of this['_bufferedRequests'][_0x3b12('0x9')]()){let _0x313fc1=_0x14515d['find'](_0x1a6bae=>_0x1a6bae['id']===_0x508a6d['id']);_0x313fc1||(_0x313fc1=await this[_0x3b12('0x17')][_0x3b12('0x7')](_0x508a6d['id'],_0x508a6d['type'],_0x508a6d[_0x3b12('0xa')],_0x508a6d['originalSuggestionId'])),_0x2d3514(_0x313fc1);}for(const _0x52f6eb of _0x14515d)_0x4dd5db[_0x3b12('0xe')](_0x52f6eb['id'])||_0x4dd5db[_0x3b12('0x1d')](_0x52f6eb);}async[_0x3b12('0x14')](){this[_0x3b12('0x17')][_0x3b12('0x1')]||await new Promise(_0x55d5f5=>{this['listenTo'](this[_0x3b12('0x17')],'connected',_0x394ee5=>{_0x394ee5[_0x3b12('0x5')](),_0x55d5f5();});});}async[_0x3b12('0x4')](_0x6f1cfe){const _0xb70d27=this[_0x3b12('0x1e')][_0x3b12('0x23')]['get'](_0x5ced6e),{connection:_0x5437f6}=this[_0x3b12('0x1e')][_0x3b12('0x23')]['get'](_0x3ee714),_0x40c0f1=new Set();for(const {authorId:_0x375f9d}of _0x6f1cfe)_0xb70d27[_0x3b12('0x1a')](_0x375f9d)||_0x40c0f1[_0x3b12('0x7')](_0x375f9d);if(0x0===_0x40c0f1[_0x3b12('0x20')])return;const _0x816495=await _0x615a3b['getMany'](_0x5437f6,Array[_0x3b12('0x25')](_0x40c0f1));for(const _0x4b3e3d of _0x816495)_0xb70d27[_0x3b12('0x1a')](_0x4b3e3d['id'])||_0xb70d27['addUser'](_0x4b3e3d);}}function R(_0x3e40aa){if(it(_0x3e40aa))return new Promise(()=>{});throw _0x3e40aa;}function it(_0x41e52a){return _0x41e52a[_0x3b12('0xc')]['startsWith'](_0x3b12('0x19'))||_0x41e52a[_0x3b12('0xc')][_0x3b12('0x0')](_0x3b12('0x22'));}g[_0x3b12('0xf')]=_0x3d0bda;
23
+ const _0x18b0=['originalSuggestionId','state','addUser','connected','cloud-services-internal-error:\x20Request\x20timeout.','reconnect','update','_waitForServiceReady','values','set','editor','connection','attributes','add','delete','suggestionUpdated','plugins','catch','get','find','addSuggestionData','collaboration.channelId','connect','getUser','then','_bufferedRequests','TrackChangesEditing','getSuggestion','type','from','adapter','message','requires','listenTo','getMany','config','cloud-services-internal-error:\x20Not\x20connected.','data','_fetchMissingUsersForThreads','addToReconnectionStack','startsWith','_trackChangesService'];(function(_0x402ce2,_0x18b031){const _0x213ffc=function(_0x92e583){while(--_0x92e583){_0x402ce2['push'](_0x402ce2['shift']());}};_0x213ffc(++_0x18b031);}(_0x18b0,0x171));const _0x213f=function(_0x402ce2,_0x18b031){_0x402ce2=_0x402ce2-0x0;let _0x213ffc=_0x18b0[_0x402ce2];return _0x213ffc;};import{Plugin as _0x476399}from'ckeditor5/src/core';import _0x2b493 from'@ckeditor/ckeditor-cloud-services-collaboration/src/track-changes/trackchangesservice';import _0x4aa6b5 from'../realtimecollaborativeediting/websocketgateway';import _0x5e03f5 from'../realtimecollaborativecomments/cloudservicescommentsadapter';import _0x40cfcb from'@ckeditor/ckeditor-cloud-services-collaboration/src/users/user';import{Users as _0x1421a4}from'ckeditor5-collaboration/src/collaboration-core';export default class g extends _0x476399{static get[_0x213f('0x29')](){return[_0x5e03f5,_0x213f('0x23'),_0x4aa6b5];}constructor(_0xbd85e6){super(_0xbd85e6),this['_bufferedRequests']=new Map();}['init'](){const _0x134ae3=this[_0x213f('0x13')][_0x213f('0x19')][_0x213f('0x1b')](_0x4aa6b5),_0xa4638f=this[_0x213f('0x13')][_0x213f('0x19')][_0x213f('0x1b')]('TrackChangesEditing'),_0xdaaefb=this[_0x213f('0x13')][_0x213f('0x2')]['get'](_0x213f('0x1e'));return this['_trackChangesService']=new g['TrackChangesService'](_0xdaaefb),_0xa4638f[_0x213f('0x27')]={'getSuggestion':async _0xa10a0c=>{await this[_0x213f('0x10')]();const _0x1261be=await this[_0x213f('0x8')][_0x213f('0x1b')](_0xa10a0c)[_0x213f('0x1a')](R);return await this['_fetchMissingUsersForThreads']([_0x1261be]),_0x1261be;},'addSuggestion':async({id:_0x1e39b8,type:_0xd69044,data:_0x16870a,originalSuggestionId:_0x210905,attributes:_0x26dd56})=>{await this[_0x213f('0x10')]();const _0x43852f={'id':_0x1e39b8,'type':_0xd69044,'data':_0x16870a,'originalSuggestionId':_0x210905,'attributes':_0x26dd56},_0x484754=await this[_0x213f('0x8')]['add'](_0x1e39b8,_0xd69044,_0x16870a,_0x210905,_0x26dd56)[_0x213f('0x1a')](_0x3d1c3d=>{if(tt(_0x3d1c3d))return new Promise(_0x3bc716=>{this[_0x213f('0x22')][_0x213f('0x12')](_0x1e39b8,{'resolve':_0x3bc716,'suggestionData':_0x43852f});});throw _0x3d1c3d;});return this[_0x213f('0x22')][_0x213f('0x17')](_0x1e39b8),_0x484754;},'updateSuggestion':async(_0x1b9eba,_0x3e21e0)=>{if(await this[_0x213f('0x10')](),'open'!==_0x3e21e0[_0x213f('0xa')])return this[_0x213f('0x8')][_0x213f('0xf')](_0x1b9eba,_0x3e21e0)[_0x213f('0x1a')](R);}},this['listenTo'](this[_0x213f('0x8')],_0x213f('0x18'),(_0x145270,_0xc04c13)=>{_0xa4638f['hasSuggestion'](_0xc04c13['id'])&&(_0xa4638f[_0x213f('0x24')](_0xc04c13['id'])['attributes']=_0xc04c13[_0x213f('0x15')]);}),this['_trackChangesService'][_0x213f('0x1f')](_0x134ae3[_0x213f('0x14')])[_0x213f('0x21')](_0x2d242a=>(_0x134ae3[_0x213f('0x6')](this),this[_0x213f('0x5')](_0x2d242a)[_0x213f('0x21')](()=>{for(const _0x225b36 of _0x2d242a){_0xa4638f[_0x213f('0x1d')](_0x225b36)['_saved']=!0x0;}})));}async[_0x213f('0xe')](){const _0x4a384a=this[_0x213f('0x13')][_0x213f('0x19')]['get'](_0x213f('0x23')),{connection:_0x45962f}=this[_0x213f('0x13')]['plugins']['get'](_0x4aa6b5),_0x7289de=await this['_trackChangesService'][_0x213f('0x1f')](_0x45962f);await this[_0x213f('0x5')](_0x7289de);for(const {suggestionData:_0x29c2e3,resolve:_0x488394}of this['_bufferedRequests'][_0x213f('0x11')]()){let _0x104243=_0x7289de[_0x213f('0x1c')](_0x468331=>_0x468331['id']===_0x29c2e3['id']);_0x104243||(_0x104243=await this[_0x213f('0x8')][_0x213f('0x16')](_0x29c2e3['id'],_0x29c2e3[_0x213f('0x25')],_0x29c2e3[_0x213f('0x4')],_0x29c2e3[_0x213f('0x9')])),_0x488394(_0x104243);}for(const _0xf0cc52 of _0x7289de)_0x4a384a['hasSuggestion'](_0xf0cc52['id'])||_0x4a384a[_0x213f('0x1d')](_0xf0cc52);}async[_0x213f('0x10')](){this[_0x213f('0x8')]['isConnected']||await new Promise(_0x312c11=>{this[_0x213f('0x0')](this[_0x213f('0x8')],_0x213f('0xc'),_0x52cce1=>{_0x52cce1['off'](),_0x312c11();});});}async[_0x213f('0x5')](_0x3350ba){const _0x447d9f=this['editor']['plugins'][_0x213f('0x1b')](_0x1421a4),{connection:_0x3c4f14}=this[_0x213f('0x13')]['plugins'][_0x213f('0x1b')](_0x4aa6b5),_0x18cfe4=new Set();for(const {authorId:_0x1d2c0d}of _0x3350ba)_0x447d9f['getUser'](_0x1d2c0d)||_0x18cfe4['add'](_0x1d2c0d);if(0x0===_0x18cfe4['size'])return;const _0x377419=await _0x40cfcb[_0x213f('0x1')](_0x3c4f14,Array[_0x213f('0x26')](_0x18cfe4));for(const _0x201f8d of _0x377419)_0x447d9f[_0x213f('0x20')](_0x201f8d['id'])||_0x447d9f[_0x213f('0xb')](_0x201f8d);}}function R(_0x25666c){if(tt(_0x25666c))return new Promise(()=>{});throw _0x25666c;}function tt(_0x3ed373){return _0x3ed373[_0x213f('0x28')][_0x213f('0x7')](_0x213f('0x3'))||_0x3ed373['message'][_0x213f('0x7')](_0x213f('0xd'));}g['TrackChangesService']=_0x2b493;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x30ee=['TrackChanges','requires','pluginName'];(function(_0x582f5b,_0x30ee0e){var _0x43f990=function(_0x1f9bff){while(--_0x1f9bff){_0x582f5b['push'](_0x582f5b['shift']());}};_0x43f990(++_0x30ee0e);}(_0x30ee,0x1d6));var _0x43f9=function(_0x582f5b,_0x30ee0e){_0x582f5b=_0x582f5b-0x0;var _0x43f990=_0x30ee[_0x582f5b];return _0x43f990;};import{Plugin as _0x1eff20}from'ckeditor5/src/core';import _0x54cfe0 from'./realtimecollaborativetrackchanges/cloudservicestrackchangesadapter';import _0x2b4440 from'./realtimecollaborativecomments';export default class p extends _0x1eff20{static get[_0x43f9('0x2')](){return[_0x2b4440,_0x54cfe0,_0x43f9('0x1')];}static get[_0x43f9('0x0')](){return'RealTimeCollaborativeTrackChanges';}}
23
+ var _0x368e=['pluginName','TrackChanges'];(function(_0x14c0e1,_0x368ebb){var _0x148bca=function(_0x3afac3){while(--_0x3afac3){_0x14c0e1['push'](_0x14c0e1['shift']());}};_0x148bca(++_0x368ebb);}(_0x368e,0xbb));var _0x148b=function(_0x14c0e1,_0x368ebb){_0x14c0e1=_0x14c0e1-0x0;var _0x148bca=_0x368e[_0x14c0e1];return _0x148bca;};import{Plugin as _0x2aaf6f}from'ckeditor5/src/core';import _0x38bcdf from'./realtimecollaborativetrackchanges/cloudservicestrackchangesadapter';import _0x3bf6b5 from'./realtimecollaborativecomments';export default class p extends _0x2aaf6f{static get['requires'](){return[_0x3bf6b5,_0x38bcdf,_0x148b('0x0')];}static get[_0x148b('0x1')](){return'RealTimeCollaborativeTrackChanges';}}