@univerjs-pro/collaboration-client 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var _0xf4a977=_0x1ac5;(function(_0x421ffa,_0xf4d667){var _0x1ebc45=_0x1ac5,_0x441177=_0x421ffa();while(!![]){try{var _0xefaff5=-parseInt(_0x1ebc45(0x1de))/0x1+parseInt(_0x1ebc45(0x1e3))/0x2+parseInt(_0x1ebc45(0x1f3))/0x3*(parseInt(_0x1ebc45(0x1cd))/0x4)+-parseInt(_0x1ebc45(0x1d4))/0x5*(-parseInt(_0x1ebc45(0x1dc))/0x6)+-parseInt(_0x1ebc45(0x1e1))/0x7*(-parseInt(_0x1ebc45(0x1d9))/0x8)+-parseInt(_0x1ebc45(0x1ec))/0x9*(-parseInt(_0x1ebc45(0x1cc))/0xa)+-parseInt(_0x1ebc45(0x1db))/0xb;if(_0xefaff5===_0xf4d667)break;else _0x441177['push'](_0x441177['shift']());}catch(_0x5e0980){_0x441177['push'](_0x441177['shift']());}}}(_0x1904,0xb7b84));Object[_0xf4a977(0x1e9)](exports,Symbol['toStringTag'],{'value':_0xf4a977(0x1f6)});const l=require(_0xf4a977(0x1cb)),b=require(_0xf4a977(0x1dd)),h=require('@univerjs-pro/collaboration-client'),i=require(_0xf4a977(0x1e6)),v=require(_0xf4a977(0x1d3));var u=Object[_0xf4a977(0x1eb)],S=(_0x1ffee0,_0x7a1ac2,_0x23e53f,_0x1ac231)=>{var _0x558e81=_0xf4a977;for(var _0x2418d7=_0x1ac231>0x1?void 0x0:_0x1ac231?u(_0x7a1ac2,_0x23e53f):_0x7a1ac2,_0x2d759e=_0x1ffee0[_0x558e81(0x1f5)]-0x1,_0x5ec8e7;_0x2d759e>=0x0;_0x2d759e--)(_0x5ec8e7=_0x1ffee0[_0x2d759e])&&(_0x2418d7=_0x5ec8e7(_0x2418d7)||_0x2418d7);return _0x2418d7;},s=(_0x3621a2,_0x4b411c)=>(_0x350319,_0xa74fd2)=>_0x4b411c(_0x350319,_0xa74fd2,_0x3621a2);exports['FCollaboration']=class extends l[_0xf4a977(0x1e7)]{constructor(_0x2982f3,_0x2b23d3,_0x4d4d67,_0x396c89,_0x26a2dd){var _0x162475=_0xf4a977;super(),this[_0x162475(0x1d2)]=_0x2982f3,this['_injector']=_0x2b23d3,this['_univerInstanceService']=_0x4d4d67,this['_snapshotService']=_0x396c89,this[_0x162475(0x1df)]=_0x26a2dd;}async[_0xf4a977(0x1f2)](){var _0x2c6b56=_0xf4a977;return this[_0x2c6b56(0x1e0)]();}async['loadActiveSheetAsync'](){var _0x1376c1=_0xf4a977;throw new Error(_0x1376c1(0x1f9));}async[_0xf4a977(0x1ed)](_0x271649){var _0x402335=_0xf4a977;return this[_0x402335(0x1e5)](_0x271649);}async[_0xf4a977(0x1e5)](_0x130d72,_0x15b5e4){var _0x18343c=_0xf4a977;return await this['_snapshotService'][_0x18343c(0x1ed)](_0x130d72,0x0,_0x15b5e4)?(await this[_0x18343c(0x1df)][_0x18343c(0x1ca)](_0x130d72),this[_0x18343c(0x1d2)][_0x18343c(0x1f8)](_0x130d72)):null;}[_0xf4a977(0x1d0)](_0x352de0,_0x40ddc8){var _0x1c97f6=_0xf4a977;const _0x1ad8f6=this[_0x1c97f6(0x1d7)][_0x1c97f6(0x1cf)](h[_0x1c97f6(0x1ea)])[_0x1c97f6(0x1f0)](_0x352de0)[_0x1c97f6(0x1e4)](v['switchMap'](_0x17c57d=>_0x17c57d[_0x1c97f6(0x1fa)]))[_0x1c97f6(0x1f4)](_0x59a9c0=>_0x40ddc8(Array[_0x1c97f6(0x1d1)](_0x59a9c0[_0x1c97f6(0x1e2)]())));return i[_0x1c97f6(0x1ce)](_0x1ad8f6);}},exports[_0xf4a977(0x1d5)]=S([s(0x1,i[_0xf4a977(0x1f1)](i[_0xf4a977(0x1da)])),s(0x2,i[_0xf4a977(0x1e8)]),s(0x3,i[_0xf4a977(0x1f1)](b[_0xf4a977(0x1ee)])),s(0x4,i['Inject'](h[_0xf4a977(0x1f7)]))],exports[_0xf4a977(0x1d5)]);class d extends l[_0xf4a977(0x1d6)]{[_0xf4a977(0x1ef)](){var _0x242ec4=_0xf4a977;return this['_injector']['createInstance'](exports['FCollaboration'],{'getUniverSheet':_0x1ad393=>this[_0x242ec4(0x1f8)](_0x1ad393)});}}function _0x1904(){var _0x518886=['MemberService','getOwnPropertyDescriptor','792xjTEDp','loadSheet','SnapshotService','getCollaboration','waitForRoom$','Inject','loadActiveSheet','4021335oUWPys','subscribe','length','Module','CollaborationController','getUniverSheet','[FCollaboration]:\x20this\x20method\x20should\x20be\x20override.','members$','readyForCollab','@univerjs/core/facade','120790gEfNcr','4sabiJO','toDisposable','get','subscribeCollaborators','from','_handler','rxjs','10145TQpzQt','FCollaboration','FUniver','_injector','extend','216SlVScp','Injector','26320756rydfJI','3894iNlIjJ','@univerjs-pro/collaboration','1272431SZbKww','_collaborationController','loadActiveSheetAsync','170485ZTRcUE','values','79880KQCZuP','pipe','loadSheetAsync','@univerjs/core','FBase','IUniverInstanceService','defineProperty'];_0x1904=function(){return _0x518886;};return _0x1904();}function _0x1ac5(_0x850819,_0x3e80af){var _0x190410=_0x1904();return _0x1ac5=function(_0x1ac5dc,_0x24ac1c){_0x1ac5dc=_0x1ac5dc-0x1ca;var _0x83d3cc=_0x190410[_0x1ac5dc];return _0x83d3cc;},_0x1ac5(_0x850819,_0x3e80af);}l[_0xf4a977(0x1d6)][_0xf4a977(0x1d8)](d);
1
+ 'use strict';var _0xbf967e=_0x3bb8;(function(_0x1e76e4,_0x42f87b){var _0x33ff49=_0x3bb8,_0x2ce494=_0x1e76e4();while(!![]){try{var _0x95c2cb=parseInt(_0x33ff49(0x1d6))/0x1+-parseInt(_0x33ff49(0x1c2))/0x2*(-parseInt(_0x33ff49(0x1e5))/0x3)+-parseInt(_0x33ff49(0x1e0))/0x4*(parseInt(_0x33ff49(0x1d8))/0x5)+-parseInt(_0x33ff49(0x1e2))/0x6*(-parseInt(_0x33ff49(0x1df))/0x7)+-parseInt(_0x33ff49(0x1b8))/0x8+-parseInt(_0x33ff49(0x1d9))/0x9*(-parseInt(_0x33ff49(0x1bd))/0xa)+-parseInt(_0x33ff49(0x1de))/0xb*(parseInt(_0x33ff49(0x1bc))/0xc);if(_0x95c2cb===_0x42f87b)break;else _0x2ce494['push'](_0x2ce494['shift']());}catch(_0x5ab12d){_0x2ce494['push'](_0x2ce494['shift']());}}}(_0x2d8e,0xd9b62));function _0x2d8e(){var _0x56b2a9=['1258133myIAmO','_handler','285aTpTwi','9EgpYCg','SnapshotService','subscribe','loadSheetAsync','subscribeCollaborators','17303xzCzCz','24185EAhsWY','50404MRwjcE','Inject','1974yjGykr','FBase','getCollaboration','1710321UnZBsc','rxjs','getUniverSheet','9708608BwZxnY','from','_injector','_univerInstanceService','5316WDMQkq','5554830KolxfU','_collaborationController','loadActiveSheetAsync','get','loadActiveSheet','2UUyyEu','@univerjs-pro/collaboration','Injector','IUniverInstanceService','FUniver','switchMap','readyForCollab','waitForRoom$','toStringTag','pipe','FCollaboration','getOwnPropertyDescriptor','toDisposable','@univerjs/core','Module','values','extend','_snapshotService','@univerjs-pro/collaboration-client','@univerjs/core/facade'];_0x2d8e=function(){return _0x56b2a9;};return _0x2d8e();}Object['defineProperty'](exports,Symbol[_0xbf967e(0x1ca)],{'value':_0xbf967e(0x1d0)});const l=require(_0xbf967e(0x1d5)),b=require(_0xbf967e(0x1c3)),h=require(_0xbf967e(0x1d4)),i=require(_0xbf967e(0x1cf)),v=require(_0xbf967e(0x1e6));function _0x3bb8(_0x19dd0f,_0x17a40b){var _0x2d8e6f=_0x2d8e();return _0x3bb8=function(_0x3bb8ef,_0x76e62a){_0x3bb8ef=_0x3bb8ef-0x1b7;var _0xad7f0=_0x2d8e6f[_0x3bb8ef];return _0xad7f0;},_0x3bb8(_0x19dd0f,_0x17a40b);}var u=Object[_0xbf967e(0x1cd)],S=(_0x3094f4,_0x23c3d6,_0x1c4fe3,_0x1811ee)=>{for(var _0x570944=_0x1811ee>0x1?void 0x0:_0x1811ee?u(_0x23c3d6,_0x1c4fe3):_0x23c3d6,_0x42a215=_0x3094f4['length']-0x1,_0x47e711;_0x42a215>=0x0;_0x42a215--)(_0x47e711=_0x3094f4[_0x42a215])&&(_0x570944=_0x47e711(_0x570944)||_0x570944);return _0x570944;},s=(_0x391a71,_0x1c9155)=>(_0x44a282,_0x292244)=>_0x1c9155(_0x44a282,_0x292244,_0x391a71);exports['FCollaboration']=class extends l[_0xbf967e(0x1e3)]{constructor(_0x2c05b4,_0x4f8cfd,_0x378516,_0x58bbf7,_0x245e71){var _0x31e348=_0xbf967e;super(),this[_0x31e348(0x1d7)]=_0x2c05b4,this[_0x31e348(0x1ba)]=_0x4f8cfd,this[_0x31e348(0x1bb)]=_0x378516,this[_0x31e348(0x1d3)]=_0x58bbf7,this[_0x31e348(0x1be)]=_0x245e71;}async[_0xbf967e(0x1c1)](){var _0x3db5db=_0xbf967e;return this[_0x3db5db(0x1bf)]();}async[_0xbf967e(0x1bf)](){throw new Error('[FCollaboration]:\x20this\x20method\x20should\x20be\x20override.');}async['loadSheet'](_0x59b811){var _0x2dea37=_0xbf967e;return this[_0x2dea37(0x1dc)](_0x59b811);}async[_0xbf967e(0x1dc)](_0x30c1f3,_0x5d3249){var _0x233f41=_0xbf967e;return await this[_0x233f41(0x1d3)]['loadSheet'](_0x30c1f3,0x0,_0x5d3249)?(await this['_collaborationController'][_0x233f41(0x1c8)](_0x30c1f3),this[_0x233f41(0x1d7)][_0x233f41(0x1b7)](_0x30c1f3)):null;}[_0xbf967e(0x1dd)](_0xa61ace,_0xe516ba){var _0x46afa3=_0xbf967e;const _0x331555=this[_0x46afa3(0x1ba)][_0x46afa3(0x1c0)](h['MemberService'])[_0x46afa3(0x1c9)](_0xa61ace)[_0x46afa3(0x1cb)](v[_0x46afa3(0x1c7)](_0x18f84e=>_0x18f84e['members$']))[_0x46afa3(0x1db)](_0x5f1582=>_0xe516ba(Array[_0x46afa3(0x1b9)](_0x5f1582[_0x46afa3(0x1d1)]())));return i[_0x46afa3(0x1ce)](_0x331555);}},exports[_0xbf967e(0x1cc)]=S([s(0x1,i[_0xbf967e(0x1e1)](i[_0xbf967e(0x1c4)])),s(0x2,i[_0xbf967e(0x1c5)]),s(0x3,i[_0xbf967e(0x1e1)](b[_0xbf967e(0x1da)])),s(0x4,i['Inject'](h['CollaborationController']))],exports['FCollaboration']);class d extends l['FUniver']{[_0xbf967e(0x1e4)](){var _0x275aea=_0xbf967e;return this[_0x275aea(0x1ba)]['createInstance'](exports[_0x275aea(0x1cc)],{'getUniverSheet':_0x26d6fa=>this[_0x275aea(0x1b7)](_0x26d6fa)});}}l[_0xbf967e(0x1c6)][_0xbf967e(0x1d2)](d);