@ckeditor/ckeditor5-real-time-collaboration 44.2.0-alpha.13 → 44.2.0-alpha.14

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 _0x16ab19=_0x229a;(function(_0x2da65b,_0xf02a83){const _0x2b4c62=_0x229a,_0x354060=_0x2da65b();while(!![]){try{const _0x54c075=parseInt(_0x2b4c62(0x1a6))/0x1*(parseInt(_0x2b4c62(0x195))/0x2)+-parseInt(_0x2b4c62(0x194))/0x3*(parseInt(_0x2b4c62(0x1cc))/0x4)+parseInt(_0x2b4c62(0x199))/0x5+-parseInt(_0x2b4c62(0x1c8))/0x6+parseInt(_0x2b4c62(0x1a5))/0x7*(-parseInt(_0x2b4c62(0x1ab))/0x8)+parseInt(_0x2b4c62(0x18e))/0x9+parseInt(_0x2b4c62(0x1c4))/0xa;if(_0x54c075===_0xf02a83)break;else _0x354060['push'](_0x354060['shift']());}catch(_0x4a7c17){_0x354060['push'](_0x354060['shift']());}}}(_0x3733,0xa4499));import{Plugin as _0x5453f9}from'ckeditor5/src/core.js';function _0x3733(){const _0xbf89f6=['connection','addSuggestionData','isOfficialPlugin','values','from','config','state','_saved','24668PflsLP','1KbvmNZ','cloud-services-internal-error:\x20Not\x20connected.','CloudServicesTrackChangesAdapter','isConnected','attributes','1984kFAdIc','adapter','addToReconnectionStack','plugins','pluginName','update','connect','isPremiumPlugin','startsWith','reconnect','listenTo','message','delete','addUser','set','originalSuggestionId','catch','_trackChangesService','connected','find','getMany','_waitForServiceReady','add','then','type','4136160lYbBox','requires','TrackChangesEditing','size','2081838ZYISnK','editor','hasSuggestion','getSuggestion','1595960fbobxx','open','9235323RvHTUW','_bufferedRequests','suggestionUpdated','get','TrackChangesService','off','6MGizWZ','1081712btrIBG','data','cloud-services-internal-error:\x20Request\x20timeout.','collaboration.channelId','3556035chgeVv','_fetchMissingUsersForThreads','init','getUser'];_0x3733=function(){return _0xbf89f6;};return _0x3733();}import{User as _0x11d889,TrackChangesService as _0x32d408}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import _0x90f915 from'../realtimecollaborativeediting/websocketgateway.js';function _0x229a(_0x14ee00,_0x47e4f1){const _0x37330f=_0x3733();return _0x229a=function(_0x229aa5,_0x417fc5){_0x229aa5=_0x229aa5-0x18d;let _0x2d4fff=_0x37330f[_0x229aa5];return _0x2d4fff;},_0x229a(_0x14ee00,_0x47e4f1);}import _0x141740 from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x271905}from'ckeditor5-collaboration/src/collaboration-core.js';class f extends _0x5453f9{static get[_0x16ab19(0x1c5)](){const _0x4ba09d=_0x16ab19;return[_0x141740,_0x4ba09d(0x1c6),_0x90f915];}static get[_0x16ab19(0x1af)](){const _0x5cf4d0=_0x16ab19;return _0x5cf4d0(0x1a8);}static get[_0x16ab19(0x19f)](){return!0x0;}static get[_0x16ab19(0x1b2)](){return!0x0;}constructor(_0x2d270c){const _0x1b49a7=_0x16ab19;super(_0x2d270c);const _0x32610b=this[_0x1b49a7(0x1c9)][_0x1b49a7(0x1a2)][_0x1b49a7(0x191)](_0x1b49a7(0x198));this[_0x1b49a7(0x18f)]=new Map(),this[_0x1b49a7(0x1bc)]=new f[(_0x1b49a7(0x192))](_0x32610b);}[_0x16ab19(0x19b)](){const _0x3475e7=_0x16ab19,_0x516e80=this[_0x3475e7(0x1c9)][_0x3475e7(0x1ae)][_0x3475e7(0x191)](_0x90f915),_0x1f35b8=this[_0x3475e7(0x1c9)][_0x3475e7(0x1ae)][_0x3475e7(0x191)](_0x3475e7(0x1c6));return _0x1f35b8[_0x3475e7(0x1ac)]={'getSuggestion':async _0xae6eb5=>{const _0x4f5112=_0x3475e7;await this[_0x4f5112(0x1c0)]();const _0xced98f=await this[_0x4f5112(0x1bc)][_0x4f5112(0x191)](_0xae6eb5)[_0x4f5112(0x1bb)](R);return await this[_0x4f5112(0x19a)]([_0xced98f]),_0xced98f;},'addSuggestion':async({id:_0x1a99ba,type:_0x26b0da,data:_0x1eea6d,originalSuggestionId:_0x505a27,attributes:_0x2c3b2a})=>{const _0x5cbf8a=_0x3475e7;await this[_0x5cbf8a(0x1c0)]();const _0x2bbde5={'id':_0x1a99ba,'type':_0x26b0da,'data':_0x1eea6d,'originalSuggestionId':_0x505a27,'attributes':_0x2c3b2a},_0x31169f=await this[_0x5cbf8a(0x1bc)][_0x5cbf8a(0x1c1)](_0x1a99ba,_0x26b0da,_0x1eea6d,_0x505a27,_0x2c3b2a)[_0x5cbf8a(0x1bb)](_0x5974bf=>{if(st(_0x5974bf))return new Promise(_0x34211d=>{const _0x193f18=_0x229a;this[_0x193f18(0x18f)][_0x193f18(0x1b9)](_0x1a99ba,{'resolve':_0x34211d,'suggestionData':_0x2bbde5});});throw _0x5974bf;});return this[_0x5cbf8a(0x18f)][_0x5cbf8a(0x1b7)](_0x1a99ba),_0x31169f;},'updateSuggestion':async(_0xdadb6f,_0x16890a)=>{const _0x297b5b=_0x3475e7;if(await this[_0x297b5b(0x1c0)](),_0x297b5b(0x18d)!==_0x16890a[_0x297b5b(0x1a3)])return this[_0x297b5b(0x1bc)][_0x297b5b(0x1b0)](_0xdadb6f,_0x16890a)[_0x297b5b(0x1bb)](R);}},this[_0x3475e7(0x1b5)](this[_0x3475e7(0x1bc)],_0x3475e7(0x190),(_0x5abbee,_0x33bbbd)=>{const _0x3bd96a=_0x3475e7;_0x1f35b8[_0x3bd96a(0x1ca)](_0x33bbbd['id'])&&(_0x1f35b8[_0x3bd96a(0x1cb)](_0x33bbbd['id'])[_0x3bd96a(0x1aa)]=_0x33bbbd[_0x3bd96a(0x1aa)]);}),this[_0x3475e7(0x1bc)][_0x3475e7(0x1b1)](_0x516e80[_0x3475e7(0x19d)])[_0x3475e7(0x1c2)](_0x7d4366=>(_0x516e80[_0x3475e7(0x1ad)](this),this[_0x3475e7(0x19a)](_0x7d4366)[_0x3475e7(0x1c2)](()=>{const _0x5caffa=_0x3475e7;for(const _0x372bc9 of _0x7d4366){_0x1f35b8[_0x5caffa(0x19e)](_0x372bc9)[_0x5caffa(0x1a4)]=!0x0;}})));}async[_0x16ab19(0x1b4)](){const _0x369eba=_0x16ab19,_0x41679a=this[_0x369eba(0x1c9)][_0x369eba(0x1ae)][_0x369eba(0x191)](_0x369eba(0x1c6)),{connection:_0x31e3ee}=this[_0x369eba(0x1c9)][_0x369eba(0x1ae)][_0x369eba(0x191)](_0x90f915),_0x4c02c1=await this[_0x369eba(0x1bc)][_0x369eba(0x1b1)](_0x31e3ee);await this[_0x369eba(0x19a)](_0x4c02c1);for(const {suggestionData:_0x11d24a,resolve:_0x3d8a70}of this[_0x369eba(0x18f)][_0x369eba(0x1a0)]()){let _0x39d7b4=_0x4c02c1[_0x369eba(0x1be)](_0x38d77f=>_0x38d77f['id']===_0x11d24a['id']);_0x39d7b4||(_0x39d7b4=await this[_0x369eba(0x1bc)][_0x369eba(0x1c1)](_0x11d24a['id'],_0x11d24a[_0x369eba(0x1c3)],_0x11d24a[_0x369eba(0x196)],_0x11d24a[_0x369eba(0x1ba)])),_0x3d8a70(_0x39d7b4);}for(const _0x3beb05 of _0x4c02c1)_0x41679a[_0x369eba(0x1ca)](_0x3beb05['id'])||_0x41679a[_0x369eba(0x19e)](_0x3beb05);}async[_0x16ab19(0x1c0)](){const _0x4b7a2b=_0x16ab19;this[_0x4b7a2b(0x1bc)][_0x4b7a2b(0x1a9)]||await new Promise(_0xf465c3=>{const _0x240bd4=_0x4b7a2b;this[_0x240bd4(0x1b5)](this[_0x240bd4(0x1bc)],_0x240bd4(0x1bd),_0x2d715d=>{const _0x30c665=_0x240bd4;_0x2d715d[_0x30c665(0x193)](),_0xf465c3();});});}async[_0x16ab19(0x19a)](_0x40b9a8){const _0x207e75=_0x16ab19,_0x5a52be=this[_0x207e75(0x1c9)][_0x207e75(0x1ae)][_0x207e75(0x191)](_0x271905),{connection:_0x27966f}=this[_0x207e75(0x1c9)][_0x207e75(0x1ae)][_0x207e75(0x191)](_0x90f915),_0x284b53=new Set();for(const {authorId:_0x26d431}of _0x40b9a8)_0x5a52be[_0x207e75(0x19c)](_0x26d431)||_0x284b53[_0x207e75(0x1c1)](_0x26d431);if(0x0===_0x284b53[_0x207e75(0x1c7)])return;const _0x203daa=await _0x11d889[_0x207e75(0x1bf)](_0x27966f,Array[_0x207e75(0x1a1)](_0x284b53));for(const _0x4251dc of _0x203daa)_0x5a52be[_0x207e75(0x19c)](_0x4251dc['id'])||_0x5a52be[_0x207e75(0x1b8)](_0x4251dc);}}f[_0x16ab19(0x192)]=_0x32d408;export default f;function R(_0x578c6c){if(st(_0x578c6c))return new Promise(()=>{});throw _0x578c6c;}function st(_0xc7ac40){const _0x1f7c1a=_0x16ab19;return _0xc7ac40[_0x1f7c1a(0x1b6)][_0x1f7c1a(0x1b3)](_0x1f7c1a(0x1a7))||_0xc7ac40[_0x1f7c1a(0x1b6)][_0x1f7c1a(0x1b3)](_0x1f7c1a(0x197));}
23
+ const _0x11154e=_0x5528;(function(_0x2a2ee4,_0x3dc49){const _0x28a402=_0x5528,_0x19d752=_0x2a2ee4();while(!![]){try{const _0x7c5753=parseInt(_0x28a402(0xdf))/0x1*(parseInt(_0x28a402(0xb8))/0x2)+-parseInt(_0x28a402(0xb5))/0x3*(parseInt(_0x28a402(0xb9))/0x4)+-parseInt(_0x28a402(0xab))/0x5*(parseInt(_0x28a402(0xb2))/0x6)+-parseInt(_0x28a402(0xd4))/0x7*(parseInt(_0x28a402(0xa5))/0x8)+-parseInt(_0x28a402(0xe6))/0x9+parseInt(_0x28a402(0xa6))/0xa*(parseInt(_0x28a402(0xda))/0xb)+parseInt(_0x28a402(0xd9))/0xc;if(_0x7c5753===_0x3dc49)break;else _0x19d752['push'](_0x19d752['shift']());}catch(_0x5d5ed3){_0x19d752['push'](_0x19d752['shift']());}}}(_0x344e,0x25aa6));import{Plugin as _0x48ed67}from'ckeditor5/src/core.js';import{User as _0x4ef4a7,TrackChangesService as _0x1b1ad9}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import _0x45cbb6 from'../realtimecollaborativeediting/websocketgateway.js';function _0x344e(){const _0x4c6fd5=['326446rUqjlH','8256ZARVeE','isConnected','_bufferedRequests','CloudServicesTrackChangesAdapter','editor','addToReconnectionStack','collaboration.channelId','catch','addUser','init','pluginName','originalSuggestionId','isPremiumPlugin','find','isOfficialPlugin','requires','delete','_saved','config','connected','reconnect','size','suggestionUpdated','from','_trackChangesService','adapter','set','7zPiSjU','type','state','addSuggestionData','connect','5439192Kikqpi','890263XRtsiJ','open','_fetchMissingUsersForThreads','message','add','1tpsGLU','TrackChangesService','then','off','plugins','getUser','data','60561GUeMQG','2157728vvEzEt','10qXAIcC','getSuggestion','connection','startsWith','values','5sezqSf','update','getMany','get','hasSuggestion','cloud-services-internal-error:\x20Not\x20connected.','listenTo','237954xCXTGR','_waitForServiceReady','attributes','330DPBPUa','TrackChangesEditing','cloud-services-internal-error:\x20Request\x20timeout.'];_0x344e=function(){return _0x4c6fd5;};return _0x344e();}import _0x3254b0 from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';function _0x5528(_0x42eedb,_0x597eb2){const _0x344e65=_0x344e();return _0x5528=function(_0x5528d0,_0xe53423){_0x5528d0=_0x5528d0-0xa5;let _0x572758=_0x344e65[_0x5528d0];return _0x572758;},_0x5528(_0x42eedb,_0x597eb2);}import{Users as _0x5abf32}from'ckeditor5-collaboration/src/collaboration-core.js';class f extends _0x48ed67{static get[_0x11154e(0xc8)](){const _0x35b452=_0x11154e;return[_0x3254b0,_0x35b452(0xb6),_0x45cbb6];}static get[_0x11154e(0xc3)](){const _0x5bab3e=_0x11154e;return _0x5bab3e(0xbc);}static get[_0x11154e(0xc7)](){return!0x0;}static get[_0x11154e(0xc5)](){return!0x0;}constructor(_0x804f3a){const _0x1e43cb=_0x11154e;super(_0x804f3a);const _0x564193=this[_0x1e43cb(0xbd)][_0x1e43cb(0xcb)][_0x1e43cb(0xae)](_0x1e43cb(0xbf));this[_0x1e43cb(0xbb)]=new Map(),this[_0x1e43cb(0xd1)]=new f[(_0x1e43cb(0xe0))](_0x564193);}[_0x11154e(0xc2)](){const _0x2a8dc0=_0x11154e,_0x485952=this[_0x2a8dc0(0xbd)][_0x2a8dc0(0xe3)][_0x2a8dc0(0xae)](_0x45cbb6),_0x3f7248=this[_0x2a8dc0(0xbd)][_0x2a8dc0(0xe3)][_0x2a8dc0(0xae)](_0x2a8dc0(0xb6));return _0x3f7248[_0x2a8dc0(0xd2)]={'getSuggestion':async _0x48b0c4=>{const _0x566822=_0x2a8dc0;await this[_0x566822(0xb3)]();const _0x4aa57f=await this[_0x566822(0xd1)][_0x566822(0xae)](_0x48b0c4)[_0x566822(0xc0)](R);return await this[_0x566822(0xdc)]([_0x4aa57f]),_0x4aa57f;},'addSuggestion':async({id:_0x3c79b1,type:_0xc011a4,data:_0x582dd4,originalSuggestionId:_0x3e9f41,attributes:_0x20c80c})=>{const _0x304792=_0x2a8dc0;await this[_0x304792(0xb3)]();const _0x1dcfe6={'id':_0x3c79b1,'type':_0xc011a4,'data':_0x582dd4,'originalSuggestionId':_0x3e9f41,'attributes':_0x20c80c},_0x153029=await this[_0x304792(0xd1)][_0x304792(0xde)](_0x3c79b1,_0xc011a4,_0x582dd4,_0x3e9f41,_0x20c80c)[_0x304792(0xc0)](_0x3381c3=>{if(U(_0x3381c3))return new Promise(_0x2ac3a3=>{const _0x4a9cf2=_0x5528;this[_0x4a9cf2(0xbb)][_0x4a9cf2(0xd3)](_0x3c79b1,{'resolve':_0x2ac3a3,'suggestionData':_0x1dcfe6});});throw _0x3381c3;});return this[_0x304792(0xbb)][_0x304792(0xc9)](_0x3c79b1),_0x153029;},'updateSuggestion':async(_0x40605d,_0x4e907b)=>{const _0xed9068=_0x2a8dc0;if(await this[_0xed9068(0xb3)](),_0xed9068(0xdb)!==_0x4e907b[_0xed9068(0xd6)])return this[_0xed9068(0xd1)][_0xed9068(0xac)](_0x40605d,_0x4e907b)[_0xed9068(0xc0)](R);}},this[_0x2a8dc0(0xb1)](this[_0x2a8dc0(0xd1)],_0x2a8dc0(0xcf),(_0x3cd291,_0x30e788)=>{const _0x26c40e=_0x2a8dc0;_0x3f7248[_0x26c40e(0xaf)](_0x30e788['id'])&&(_0x3f7248[_0x26c40e(0xa7)](_0x30e788['id'])[_0x26c40e(0xb4)]=_0x30e788[_0x26c40e(0xb4)]);}),this[_0x2a8dc0(0xd1)][_0x2a8dc0(0xd8)](_0x485952[_0x2a8dc0(0xa8)])[_0x2a8dc0(0xe1)](_0x1f3efb=>(_0x485952[_0x2a8dc0(0xbe)](this),this[_0x2a8dc0(0xdc)](_0x1f3efb)[_0x2a8dc0(0xe1)](()=>{const _0x34f65e=_0x2a8dc0;for(const _0x1dcf3c of _0x1f3efb){_0x3f7248[_0x34f65e(0xd7)](_0x1dcf3c)[_0x34f65e(0xca)]=!0x0;}})));}async[_0x11154e(0xcd)](){const _0x349517=_0x11154e,_0x39ba90=this[_0x349517(0xbd)][_0x349517(0xe3)][_0x349517(0xae)](_0x349517(0xb6)),{connection:_0x5cd6ed}=this[_0x349517(0xbd)][_0x349517(0xe3)][_0x349517(0xae)](_0x45cbb6),_0x3ad005=await this[_0x349517(0xd1)][_0x349517(0xd8)](_0x5cd6ed);await this[_0x349517(0xdc)](_0x3ad005);for(const {suggestionData:_0x3f2d76,resolve:_0x5a0a9}of this[_0x349517(0xbb)][_0x349517(0xaa)]()){let _0x342d67=_0x3ad005[_0x349517(0xc6)](_0x208e44=>_0x208e44['id']===_0x3f2d76['id']);_0x342d67||(_0x342d67=await this[_0x349517(0xd1)][_0x349517(0xde)](_0x3f2d76['id'],_0x3f2d76[_0x349517(0xd5)],_0x3f2d76[_0x349517(0xe5)],_0x3f2d76[_0x349517(0xc4)])),_0x5a0a9(_0x342d67);}for(const _0x4e69df of _0x3ad005)_0x39ba90[_0x349517(0xaf)](_0x4e69df['id'])||_0x39ba90[_0x349517(0xd7)](_0x4e69df);}async[_0x11154e(0xb3)](){const _0x480879=_0x11154e;this[_0x480879(0xd1)][_0x480879(0xba)]||await new Promise(_0xe1d0e3=>{const _0x53af7f=_0x480879;this[_0x53af7f(0xb1)](this[_0x53af7f(0xd1)],_0x53af7f(0xcc),_0x1dc338=>{const _0x2a5d93=_0x53af7f;_0x1dc338[_0x2a5d93(0xe2)](),_0xe1d0e3();});});}async[_0x11154e(0xdc)](_0x564f01){const _0x11f7cf=_0x11154e,_0x52f43f=this[_0x11f7cf(0xbd)][_0x11f7cf(0xe3)][_0x11f7cf(0xae)](_0x5abf32),{connection:_0x5d5bcf}=this[_0x11f7cf(0xbd)][_0x11f7cf(0xe3)][_0x11f7cf(0xae)](_0x45cbb6),_0xcd57a=new Set();for(const {authorId:_0x581cb8}of _0x564f01)_0x52f43f[_0x11f7cf(0xe4)](_0x581cb8)||_0xcd57a[_0x11f7cf(0xde)](_0x581cb8);if(0x0===_0xcd57a[_0x11f7cf(0xce)])return;const _0x3b6b48=await _0x4ef4a7[_0x11f7cf(0xad)](_0x5d5bcf,Array[_0x11f7cf(0xd0)](_0xcd57a));for(const _0x4c31ee of _0x3b6b48)_0x52f43f[_0x11f7cf(0xe4)](_0x4c31ee['id'])||_0x52f43f[_0x11f7cf(0xc1)](_0x4c31ee);}}f[_0x11154e(0xe0)]=_0x1b1ad9;export default f;function R(_0x3f4676){if(U(_0x3f4676))return new Promise(()=>{});throw _0x3f4676;}function U(_0x278a1c){const _0x4630be=_0x11154e;return _0x278a1c[_0x4630be(0xdd)][_0x4630be(0xa9)](_0x4630be(0xb0))||_0x278a1c[_0x4630be(0xdd)][_0x4630be(0xa9)](_0x4630be(0xb7));}