@univerjs-pro/collaboration-client 0.8.1 → 0.8.2-nightly.202506211606

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 _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);
1
+ 'use strict';var _0x57e0d3=_0x153a;(function(_0x52aaf6,_0x5bb3a1){var _0x474bc6=_0x153a,_0x216220=_0x52aaf6();while(!![]){try{var _0x4e308f=-parseInt(_0x474bc6(0xca))/0x1+parseInt(_0x474bc6(0xb9))/0x2*(-parseInt(_0x474bc6(0x9e))/0x3)+parseInt(_0x474bc6(0xbf))/0x4*(-parseInt(_0x474bc6(0xa6))/0x5)+-parseInt(_0x474bc6(0xb1))/0x6+parseInt(_0x474bc6(0xb4))/0x7+-parseInt(_0x474bc6(0xbd))/0x8+parseInt(_0x474bc6(0xa1))/0x9;if(_0x4e308f===_0x5bb3a1)break;else _0x216220['push'](_0x216220['shift']());}catch(_0x4d3a97){_0x216220['push'](_0x216220['shift']());}}}(_0x35f9,0xf2125));function _0x153a(_0x42110b,_0x521a4c){var _0x35f95c=_0x35f9();return _0x153a=function(_0x153a34,_0x39532d){_0x153a34=_0x153a34-0x9c;var _0x3d83c1=_0x35f95c[_0x153a34];return _0x3d83c1;},_0x153a(_0x42110b,_0x521a4c);}function _0x35f9(){var _0x32cfcc=['CollaborationController','56410UNpcjU','loadActiveSheet','getUniverSheet','SnapshotService','get','pipe','Injector','switchMap','_collaborationController','DataLoaderService','FBase','11606946gLjkkK','FUniver','_handler','2064797gzuFIk','[FCollaboration]:\x20this\x20method\x20should\x20be\x20override.','loadServerUnit','FCollaboration','values','40YOvBPD','extend','_snapshotService','subscribeCollaborators','14784080nFglSh','createInstance','568JMebQX','Inject','subscribe','@univerjs-pro/collaboration','getCollaboration','readyForCollab','waitForRoom$','_univerInstanceService','members$','loadActiveSheetAsync','MemberService','1295193khRzGr','loadUnit','@univerjs/core','Module','_injector','toDisposable','204189UoukSW','@univerjs/core/facade','loadSheet','78637968eUmqMA','defineProperty','loadSheetAsync','IUniverInstanceService'];_0x35f9=function(){return _0x32cfcc;};return _0x35f9();}Object[_0x57e0d3(0xa2)](exports,Symbol['toStringTag'],{'value':_0x57e0d3(0xcd)});const c=require('@univerjs-pro/collaboration-client'),l=require(_0x57e0d3(0x9f)),h=require(_0x57e0d3(0xc2)),n=require(_0x57e0d3(0xcc)),b=require('rxjs');var d=Object['getOwnPropertyDescriptor'],S=(_0x5180bd,_0x21bfb6,_0x14288d,_0x66a67d)=>{for(var _0x5738b9=_0x66a67d>0x1?void 0x0:_0x66a67d?d(_0x21bfb6,_0x14288d):_0x21bfb6,_0x2b3f39=_0x5180bd['length']-0x1,_0x215a65;_0x2b3f39>=0x0;_0x2b3f39--)(_0x215a65=_0x5180bd[_0x2b3f39])&&(_0x5738b9=_0x215a65(_0x5738b9)||_0x5738b9);return _0x5738b9;},s=(_0x242598,_0x277f44)=>(_0x2698cf,_0x3c5da0)=>_0x277f44(_0x2698cf,_0x3c5da0,_0x242598);exports[_0x57e0d3(0xb7)]=class extends l[_0x57e0d3(0xb0)]{constructor(_0x5c650f,_0x46a530,_0x42e913,_0x1c9d56,_0x29811e){var _0x49154e=_0x57e0d3;super(),this[_0x49154e(0xb3)]=_0x5c650f,this[_0x49154e(0x9c)]=_0x46a530,this[_0x49154e(0xc6)]=_0x42e913,this[_0x49154e(0xbb)]=_0x1c9d56,this['_collaborationController']=_0x29811e;}async[_0x57e0d3(0xa7)](){var _0x63b6be=_0x57e0d3;return this[_0x63b6be(0xc8)]();}async[_0x57e0d3(0xc8)](){var _0x462121=_0x57e0d3;throw new Error(_0x462121(0xb5));}async[_0x57e0d3(0xa0)](_0x3decf2){var _0x2a6354=_0x57e0d3;return this[_0x2a6354(0xa3)](_0x3decf2);}async[_0x57e0d3(0xa3)](_0x15a3c4,_0x595c9b){var _0x5b74c1=_0x57e0d3;return await this['_snapshotService'][_0x5b74c1(0xa0)](_0x15a3c4,0x0,_0x595c9b)?(await this[_0x5b74c1(0xae)][_0x5b74c1(0xc4)](_0x15a3c4),this[_0x5b74c1(0xb3)][_0x5b74c1(0xa8)](_0x15a3c4)):null;}[_0x57e0d3(0xbc)](_0x111173,_0x1cd396){var _0x251fc1=_0x57e0d3;const _0x1f3a2c=this[_0x251fc1(0x9c)][_0x251fc1(0xaa)](c[_0x251fc1(0xc9)])[_0x251fc1(0xc5)](_0x111173)[_0x251fc1(0xab)](b[_0x251fc1(0xad)](_0x3ea526=>_0x3ea526[_0x251fc1(0xc7)]))[_0x251fc1(0xc1)](_0x4c83f=>_0x1cd396(Array['from'](_0x4c83f[_0x251fc1(0xb8)]())));return n[_0x251fc1(0x9d)](_0x1f3a2c);}},exports['FCollaboration']=S([s(0x1,n[_0x57e0d3(0xc0)](n[_0x57e0d3(0xac)])),s(0x2,n[_0x57e0d3(0xa4)]),s(0x3,n['Inject'](h[_0x57e0d3(0xa9)])),s(0x4,n[_0x57e0d3(0xc0)](c[_0x57e0d3(0xa5)]))],exports['FCollaboration']);class u extends l['FUniver']{[_0x57e0d3(0xc3)](){var _0xbe2e13=_0x57e0d3;return this[_0xbe2e13(0x9c)][_0xbe2e13(0xbe)](exports[_0xbe2e13(0xb7)],{'getUniverSheet':_0x597885=>this[_0xbe2e13(0xa8)](_0x597885)});}[_0x57e0d3(0xb6)](_0x4bb1aa,_0x4abb03,_0x419e5a){var _0x234001=_0x57e0d3;return this['_injector'][_0x234001(0xaa)](c['DataLoaderService'])[_0x234001(0xcb)](_0x4bb1aa,_0x4abb03,_0x419e5a);}['loadServerUnitOfRevision'](_0x350425,_0x3d62c2,_0x2c5a84){var _0x5d4b5c=_0x57e0d3;return this['_injector'][_0x5d4b5c(0xaa)](c[_0x5d4b5c(0xaf)])['loadUnitOfRevision'](_0x350425,_0x3d62c2,_0x2c5a84);}}l[_0x57e0d3(0xb2)][_0x57e0d3(0xba)](u);