@univerjs-pro/collaboration-client 0.8.1-nightly.202506191607 → 0.8.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 _0x3e76bd=_0x71b0;(function(_0xe2d597,_0x41fe98){var _0x4d4b28=_0x71b0,_0x23f6ed=_0xe2d597();while(!![]){try{var _0x3f6b1a=parseInt(_0x4d4b28(0xa8))/0x1*(parseInt(_0x4d4b28(0x93))/0x2)+parseInt(_0x4d4b28(0x7d))/0x3+-parseInt(_0x4d4b28(0x8a))/0x4+parseInt(_0x4d4b28(0x85))/0x5+parseInt(_0x4d4b28(0x8b))/0x6+parseInt(_0x4d4b28(0x81))/0x7*(-parseInt(_0x4d4b28(0x86))/0x8)+-parseInt(_0x4d4b28(0xa6))/0x9*(parseInt(_0x4d4b28(0x84))/0xa);if(_0x3f6b1a===_0x41fe98)break;else _0x23f6ed['push'](_0x23f6ed['shift']());}catch(_0x226eda){_0x23f6ed['push'](_0x23f6ed['shift']());}}}(_0x1763,0x8ba5f));Object[_0x3e76bd(0x88)](exports,Symbol[_0x3e76bd(0x7b)],{'value':_0x3e76bd(0x7c)});function _0x1763(){var _0x4e01a5=['toStringTag','Module','3113274bnQrai','CollaborationController','FCollaboration','getCollaboration','713909NvkvwH','from','loadSheetAsync','7115170cIYhHj','4557730MJxjXu','8ULiNNM','Inject','defineProperty','loadActiveSheetAsync','701596iXdffW','2622054ZaZxyq','extend','loadUnitOfRevision','MemberService','loadServerUnit','toDisposable','_snapshotService','@univerjs-pro/collaboration','2hFPAiA','length','loadActiveSheet','subscribeCollaborators','switchMap','@univerjs/core','subscribe','rxjs','DataLoaderService','_univerInstanceService','loadServerUnitOfRevision','readyForCollab','[FCollaboration]:\x20this\x20method\x20should\x20be\x20override.','FUniver','waitForRoom$','@univerjs-pro/collaboration-client','_injector','FBase','getOwnPropertyDescriptor','27eluDtf','Injector','597623RnsMIW','getUniverSheet','loadSheet','_collaborationController','createInstance'];_0x1763=function(){return _0x4e01a5;};return _0x1763();}const c=require(_0x3e76bd(0xa2)),l=require('@univerjs/core/facade'),h=require(_0x3e76bd(0x92)),n=require(_0x3e76bd(0x98)),b=require(_0x3e76bd(0x9a));var d=Object[_0x3e76bd(0xa5)],S=(_0x222600,_0xbde4fe,_0x22f869,_0x5ed892)=>{var _0x3982ec=_0x3e76bd;for(var _0x5ed931=_0x5ed892>0x1?void 0x0:_0x5ed892?d(_0xbde4fe,_0x22f869):_0xbde4fe,_0x470ab6=_0x222600[_0x3982ec(0x94)]-0x1,_0x4573c0;_0x470ab6>=0x0;_0x470ab6--)(_0x4573c0=_0x222600[_0x470ab6])&&(_0x5ed931=_0x4573c0(_0x5ed931)||_0x5ed931);return _0x5ed931;},s=(_0x457c96,_0x1367c4)=>(_0x5dc693,_0x159a02)=>_0x1367c4(_0x5dc693,_0x159a02,_0x457c96);exports[_0x3e76bd(0x7f)]=class extends l[_0x3e76bd(0xa4)]{constructor(_0x35ad86,_0x2b328b,_0x3a1a04,_0x48a093,_0x2fc70b){var _0x3f8833=_0x3e76bd;super(),this['_handler']=_0x35ad86,this[_0x3f8833(0xa3)]=_0x2b328b,this[_0x3f8833(0x9c)]=_0x3a1a04,this[_0x3f8833(0x91)]=_0x48a093,this[_0x3f8833(0xab)]=_0x2fc70b;}async[_0x3e76bd(0x95)](){return this['loadActiveSheetAsync']();}async[_0x3e76bd(0x89)](){var _0x23448e=_0x3e76bd;throw new Error(_0x23448e(0x9f));}async[_0x3e76bd(0xaa)](_0x41ee98){return this['loadSheetAsync'](_0x41ee98);}async[_0x3e76bd(0x83)](_0x1e5a39,_0x382c0f){var _0x3c2918=_0x3e76bd;return await this[_0x3c2918(0x91)][_0x3c2918(0xaa)](_0x1e5a39,0x0,_0x382c0f)?(await this[_0x3c2918(0xab)][_0x3c2918(0x9e)](_0x1e5a39),this['_handler'][_0x3c2918(0xa9)](_0x1e5a39)):null;}[_0x3e76bd(0x96)](_0x289881,_0x21cd34){var _0x8f03ad=_0x3e76bd;const _0x5a5367=this[_0x8f03ad(0xa3)]['get'](c[_0x8f03ad(0x8e)])[_0x8f03ad(0xa1)](_0x289881)['pipe'](b[_0x8f03ad(0x97)](_0x3d1bc6=>_0x3d1bc6['members$']))[_0x8f03ad(0x99)](_0x5ce1f1=>_0x21cd34(Array[_0x8f03ad(0x82)](_0x5ce1f1['values']())));return n[_0x8f03ad(0x90)](_0x5a5367);}},exports['FCollaboration']=S([s(0x1,n['Inject'](n[_0x3e76bd(0xa7)])),s(0x2,n['IUniverInstanceService']),s(0x3,n[_0x3e76bd(0x87)](h['SnapshotService'])),s(0x4,n[_0x3e76bd(0x87)](c[_0x3e76bd(0x7e)]))],exports['FCollaboration']);class u extends l[_0x3e76bd(0xa0)]{[_0x3e76bd(0x80)](){var _0x2d85e8=_0x3e76bd;return this[_0x2d85e8(0xa3)][_0x2d85e8(0xac)](exports[_0x2d85e8(0x7f)],{'getUniverSheet':_0x6cce30=>this[_0x2d85e8(0xa9)](_0x6cce30)});}[_0x3e76bd(0x8f)](_0x2473a4,_0x130f60,_0x2dda82){var _0x1ef543=_0x3e76bd;return this['_injector']['get'](c[_0x1ef543(0x9b)])['loadUnit'](_0x2473a4,_0x130f60,_0x2dda82);}[_0x3e76bd(0x9d)](_0xe32dae,_0x273612,_0x1bedb7){var _0xf22afa=_0x3e76bd;return this[_0xf22afa(0xa3)]['get'](c[_0xf22afa(0x9b)])[_0xf22afa(0x8d)](_0xe32dae,_0x273612,_0x1bedb7);}}function _0x71b0(_0x48987b,_0x517ba1){var _0x176307=_0x1763();return _0x71b0=function(_0x71b010,_0x1f135c){_0x71b010=_0x71b010-0x7b;var _0x9d8f1c=_0x176307[_0x71b010];return _0x9d8f1c;},_0x71b0(_0x48987b,_0x517ba1);}l['FUniver'][_0x3e76bd(0x8c)](u);
1
+ 'use strict';var _0x877603=_0x1bc1;function _0x5a0b(){var _0x5dcfa1=['@univerjs/core/facade','Inject','3727GTNMOU','switchMap','338MUGaeF','defineProperty','subscribeCollaborators','_handler','_univerInstanceService','_collaborationController','_injector','101946KnZHpX','FCollaboration','Injector','length','FUniver','members$','820935TllJOx','getOwnPropertyDescriptor','4311BVHneI','_snapshotService','Module','SnapshotService','from','toStringTag','values','196kXetae','waitForRoom$','4195205HisbMS','21859120haohoK','rxjs','loadUnitOfRevision','53735JqHETe','DataLoaderService','6168tzmyGU','CollaborationController','get','createInstance','loadSheet','loadActiveSheetAsync','IUniverInstanceService','loadActiveSheet','loadServerUnitOfRevision','getUniverSheet','pipe','loadSheetAsync','subscribe','@univerjs-pro/collaboration-client'];_0x5a0b=function(){return _0x5dcfa1;};return _0x5a0b();}(function(_0x517251,_0x5ee878){var _0x9ce145=_0x1bc1,_0x253d08=_0x517251();while(!![]){try{var _0x112560=parseInt(_0x9ce145(0x6c))/0x1*(-parseInt(_0x9ce145(0x6e))/0x2)+parseInt(_0x9ce145(0x7b))/0x3+parseInt(_0x9ce145(0x84))/0x4*(-parseInt(_0x9ce145(0x8a))/0x5)+-parseInt(_0x9ce145(0x75))/0x6+-parseInt(_0x9ce145(0x86))/0x7+parseInt(_0x9ce145(0x8c))/0x8*(-parseInt(_0x9ce145(0x7d))/0x9)+parseInt(_0x9ce145(0x87))/0xa;if(_0x112560===_0x5ee878)break;else _0x253d08['push'](_0x253d08['shift']());}catch(_0xc09951){_0x253d08['push'](_0x253d08['shift']());}}}(_0x5a0b,0x4d824));function _0x1bc1(_0xc7f6a4,_0x382337){var _0x5a0b65=_0x5a0b();return _0x1bc1=function(_0x1bc11a,_0x5acf27){_0x1bc11a=_0x1bc11a-0x64;var _0x49d076=_0x5a0b65[_0x1bc11a];return _0x49d076;},_0x1bc1(_0xc7f6a4,_0x382337);}Object[_0x877603(0x6f)](exports,Symbol[_0x877603(0x82)],{'value':_0x877603(0x7f)});const c=require(_0x877603(0x69)),l=require(_0x877603(0x6a)),h=require('@univerjs-pro/collaboration'),n=require('@univerjs/core'),b=require(_0x877603(0x88));var d=Object[_0x877603(0x7c)],S=(_0x4d8626,_0x3ce1eb,_0x26b7b1,_0x481624)=>{var _0x90cb26=_0x877603;for(var _0x22a224=_0x481624>0x1?void 0x0:_0x481624?d(_0x3ce1eb,_0x26b7b1):_0x3ce1eb,_0x2cf32c=_0x4d8626[_0x90cb26(0x78)]-0x1,_0x141985;_0x2cf32c>=0x0;_0x2cf32c--)(_0x141985=_0x4d8626[_0x2cf32c])&&(_0x22a224=_0x141985(_0x22a224)||_0x22a224);return _0x22a224;},s=(_0x536513,_0x25df1e)=>(_0xaf8f6a,_0x93bc91)=>_0x25df1e(_0xaf8f6a,_0x93bc91,_0x536513);exports['FCollaboration']=class extends l['FBase']{constructor(_0x362e6f,_0x4155c8,_0x28040b,_0x4c8024,_0x2e5252){var _0x581298=_0x877603;super(),this[_0x581298(0x71)]=_0x362e6f,this[_0x581298(0x74)]=_0x4155c8,this[_0x581298(0x72)]=_0x28040b,this['_snapshotService']=_0x4c8024,this[_0x581298(0x73)]=_0x2e5252;}async[_0x877603(0x93)](){return this['loadActiveSheetAsync']();}async[_0x877603(0x91)](){throw new Error('[FCollaboration]:\x20this\x20method\x20should\x20be\x20override.');}async[_0x877603(0x90)](_0x5b2cb1){var _0x507ecd=_0x877603;return this[_0x507ecd(0x67)](_0x5b2cb1);}async[_0x877603(0x67)](_0x75e11c,_0x13b7d2){var _0x3982fc=_0x877603;return await this[_0x3982fc(0x7e)][_0x3982fc(0x90)](_0x75e11c,0x0,_0x13b7d2)?(await this['_collaborationController']['readyForCollab'](_0x75e11c),this[_0x3982fc(0x71)][_0x3982fc(0x65)](_0x75e11c)):null;}[_0x877603(0x70)](_0x5cc9cf,_0x444f2e){var _0x5907c1=_0x877603;const _0xed62f8=this[_0x5907c1(0x74)]['get'](c['MemberService'])[_0x5907c1(0x85)](_0x5cc9cf)[_0x5907c1(0x66)](b[_0x5907c1(0x6d)](_0x3e7c04=>_0x3e7c04[_0x5907c1(0x7a)]))[_0x5907c1(0x68)](_0x15a1ca=>_0x444f2e(Array[_0x5907c1(0x81)](_0x15a1ca[_0x5907c1(0x83)]())));return n['toDisposable'](_0xed62f8);}},exports[_0x877603(0x76)]=S([s(0x1,n['Inject'](n[_0x877603(0x77)])),s(0x2,n[_0x877603(0x92)]),s(0x3,n[_0x877603(0x6b)](h[_0x877603(0x80)])),s(0x4,n[_0x877603(0x6b)](c[_0x877603(0x8d)]))],exports[_0x877603(0x76)]);class u extends l['FUniver']{['getCollaboration'](){var _0x5917ac=_0x877603;return this['_injector'][_0x5917ac(0x8f)](exports[_0x5917ac(0x76)],{'getUniverSheet':_0x179da5=>this['getUniverSheet'](_0x179da5)});}['loadServerUnit'](_0x1c8653,_0x5e30f0,_0x2ca282){var _0x29f89f=_0x877603;return this[_0x29f89f(0x74)][_0x29f89f(0x8e)](c[_0x29f89f(0x8b)])['loadUnit'](_0x1c8653,_0x5e30f0,_0x2ca282);}[_0x877603(0x64)](_0x3e97cd,_0x5b5876,_0x4c66c8){var _0x23ba27=_0x877603;return this[_0x23ba27(0x74)][_0x23ba27(0x8e)](c[_0x23ba27(0x8b)])[_0x23ba27(0x89)](_0x3e97cd,_0x5b5876,_0x4c66c8);}}l[_0x877603(0x79)]['extend'](u);