@univerjs-pro/collaboration-client 0.8.0-nightly.202506011606 → 0.8.0-nightly.202506021607

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 _0x3facf0=_0x3db0;function _0x17ec(){var _0x2a575b=['3802128wZctIN','FBase','_injector','_collaborationController','DataLoaderService','92048TtsWKy','_snapshotService','rxjs','3215214pymGuj','toDisposable','SnapshotService','getOwnPropertyDescriptor','loadServerUnit','@univerjs-pro/collaboration','pipe','loadUnit','4IUBhzW','3421311MczZQD','MemberService','values','1380ftaGjF','getCollaboration','get','FUniver','IUniverInstanceService','CollaborationController','loadSheetAsync','defineProperty','18119zDyiEH','1377250QezFbj','from','FCollaboration','subscribe','loadSheet','getUniverSheet','length','_handler','toStringTag','497INXHnj','Injector','createInstance','76iQcmfd','Module','Inject','@univerjs/core/facade','loadServerUnitOfRevision','loadActiveSheetAsync','loadUnitOfRevision','switchMap','52432AOvLPf','waitForRoom$','extend'];_0x17ec=function(){return _0x2a575b;};return _0x17ec();}(function(_0xf3b758,_0x13e512){var _0x2ffb94=_0x3db0,_0x1bf73f=_0xf3b758();while(!![]){try{var _0x3ff94c=-parseInt(_0x2ffb94(0xf3))/0x1*(-parseInt(_0x2ffb94(0x100))/0x2)+-parseInt(_0x2ffb94(0xe8))/0x3*(-parseInt(_0x2ffb94(0xe7))/0x4)+-parseInt(_0x2ffb94(0xf4))/0x5+-parseInt(_0x2ffb94(0x10b))/0x6+parseInt(_0x2ffb94(0xfd))/0x7*(parseInt(_0x2ffb94(0x108))/0x8)+parseInt(_0x2ffb94(0x113))/0x9+parseInt(_0x2ffb94(0xeb))/0xa*(-parseInt(_0x2ffb94(0x110))/0xb);if(_0x3ff94c===_0x13e512)break;else _0x1bf73f['push'](_0x1bf73f['shift']());}catch(_0x3040b5){_0x1bf73f['push'](_0x1bf73f['shift']());}}}(_0x17ec,0x8f761));function _0x3db0(_0x3db5cc,_0x1fb5a6){var _0x17ec28=_0x17ec();return _0x3db0=function(_0x3db0c0,_0x55f3d2){_0x3db0c0=_0x3db0c0-0xe6;var _0x12e3b3=_0x17ec28[_0x3db0c0];return _0x12e3b3;},_0x3db0(_0x3db5cc,_0x1fb5a6);}Object[_0x3facf0(0xf2)](exports,Symbol[_0x3facf0(0xfc)],{'value':_0x3facf0(0x101)});const c=require('@univerjs-pro/collaboration-client'),l=require(_0x3facf0(0x103)),h=require(_0x3facf0(0x118)),n=require('@univerjs/core'),b=require(_0x3facf0(0x112));var d=Object[_0x3facf0(0x116)],S=(_0x57eb3f,_0x4e255a,_0x27e7e5,_0x1d00b7)=>{var _0xd8a85e=_0x3facf0;for(var _0x2ba67f=_0x1d00b7>0x1?void 0x0:_0x1d00b7?d(_0x4e255a,_0x27e7e5):_0x4e255a,_0x556e23=_0x57eb3f[_0xd8a85e(0xfa)]-0x1,_0x30bf02;_0x556e23>=0x0;_0x556e23--)(_0x30bf02=_0x57eb3f[_0x556e23])&&(_0x2ba67f=_0x30bf02(_0x2ba67f)||_0x2ba67f);return _0x2ba67f;},s=(_0x2c73c2,_0x276e23)=>(_0x527170,_0x1733a3)=>_0x276e23(_0x527170,_0x1733a3,_0x2c73c2);exports['FCollaboration']=class extends l[_0x3facf0(0x10c)]{constructor(_0x55474a,_0x6e9980,_0x5be3c0,_0x2290aa,_0x3eac43){var _0x4c1166=_0x3facf0;super(),this[_0x4c1166(0xfb)]=_0x55474a,this[_0x4c1166(0x10d)]=_0x6e9980,this['_univerInstanceService']=_0x5be3c0,this[_0x4c1166(0x111)]=_0x2290aa,this[_0x4c1166(0x10e)]=_0x3eac43;}async['loadActiveSheet'](){return this['loadActiveSheetAsync']();}async[_0x3facf0(0x105)](){throw new Error('[FCollaboration]:\x20this\x20method\x20should\x20be\x20override.');}async['loadSheet'](_0x413ef0){var _0x520796=_0x3facf0;return this[_0x520796(0xf1)](_0x413ef0);}async[_0x3facf0(0xf1)](_0x4d3b92,_0x156867){var _0x4d1d69=_0x3facf0;return await this[_0x4d1d69(0x111)][_0x4d1d69(0xf8)](_0x4d3b92,0x0,_0x156867)?(await this['_collaborationController']['readyForCollab'](_0x4d3b92),this[_0x4d1d69(0xfb)]['getUniverSheet'](_0x4d3b92)):null;}['subscribeCollaborators'](_0x5659bc,_0x335b75){var _0x68b281=_0x3facf0;const _0x2d9f82=this[_0x68b281(0x10d)][_0x68b281(0xed)](c[_0x68b281(0xe9)])[_0x68b281(0x109)](_0x5659bc)[_0x68b281(0x119)](b[_0x68b281(0x107)](_0x23937f=>_0x23937f['members$']))[_0x68b281(0xf7)](_0x647ed6=>_0x335b75(Array[_0x68b281(0xf5)](_0x647ed6[_0x68b281(0xea)]())));return n[_0x68b281(0x114)](_0x2d9f82);}},exports[_0x3facf0(0xf6)]=S([s(0x1,n[_0x3facf0(0x102)](n[_0x3facf0(0xfe)])),s(0x2,n[_0x3facf0(0xef)]),s(0x3,n[_0x3facf0(0x102)](h[_0x3facf0(0x115)])),s(0x4,n[_0x3facf0(0x102)](c[_0x3facf0(0xf0)]))],exports[_0x3facf0(0xf6)]);class u extends l[_0x3facf0(0xee)]{[_0x3facf0(0xec)](){var _0x3174ee=_0x3facf0;return this[_0x3174ee(0x10d)][_0x3174ee(0xff)](exports['FCollaboration'],{'getUniverSheet':_0x133d1f=>this[_0x3174ee(0xf9)](_0x133d1f)});}[_0x3facf0(0x117)](_0x2beb88,_0x5c8da6,_0xed1c7f){var _0x36e0fb=_0x3facf0;return this[_0x36e0fb(0x10d)][_0x36e0fb(0xed)](c[_0x36e0fb(0x10f)])[_0x36e0fb(0xe6)](_0x2beb88,_0x5c8da6,_0xed1c7f);}[_0x3facf0(0x104)](_0x45c01e,_0x373b3b,_0x2fed7b){var _0x2b746b=_0x3facf0;return this[_0x2b746b(0x10d)][_0x2b746b(0xed)](c[_0x2b746b(0x10f)])[_0x2b746b(0x106)](_0x45c01e,_0x373b3b,_0x2fed7b);}}l[_0x3facf0(0xee)][_0x3facf0(0x10a)](u);
1
+ 'use strict';function _0x2568(_0x5441fd,_0x11e68d){var _0x332156=_0x3321();return _0x2568=function(_0x25681e,_0x3857c6){_0x25681e=_0x25681e-0x1e8;var _0x2452ea=_0x332156[_0x25681e];return _0x2452ea;},_0x2568(_0x5441fd,_0x11e68d);}var _0x59baee=_0x2568;(function(_0x2021cf,_0x362e1d){var _0x59cc78=_0x2568,_0xf8115a=_0x2021cf();while(!![]){try{var _0x63d13=-parseInt(_0x59cc78(0x1f9))/0x1+-parseInt(_0x59cc78(0x202))/0x2*(-parseInt(_0x59cc78(0x1fa))/0x3)+parseInt(_0x59cc78(0x1f0))/0x4+parseInt(_0x59cc78(0x1fe))/0x5+parseInt(_0x59cc78(0x20f))/0x6*(-parseInt(_0x59cc78(0x201))/0x7)+-parseInt(_0x59cc78(0x212))/0x8*(-parseInt(_0x59cc78(0x1ee))/0x9)+-parseInt(_0x59cc78(0x20b))/0xa*(-parseInt(_0x59cc78(0x210))/0xb);if(_0x63d13===_0x362e1d)break;else _0xf8115a['push'](_0xf8115a['shift']());}catch(_0xa26a01){_0xf8115a['push'](_0xf8115a['shift']());}}}(_0x3321,0xc9b9e));function _0x3321(){var _0x1ef06d=['3914309vThDKq','17488uEkvhs','loadSheetAsync','subscribeCollaborators','loadUnitOfRevision','SnapshotService','values','FCollaboration','_injector','from','1070QNVUrA','@univerjs/core/facade','get','subscribe','6SuCxvR','38005aiRAgn','loadSheet','24776jGEyAC','Module','_snapshotService','getOwnPropertyDescriptor','waitForRoom$','members$','getCollaboration','IUniverInstanceService','CollaborationController','extend','DataLoaderService','loadServerUnitOfRevision','toStringTag','_handler','2997pkqgNc','pipe','982184agBhrV','loadServerUnit','getUniverSheet','switchMap','loadUnit','[FCollaboration]:\x20this\x20method\x20should\x20be\x20override.','loadActiveSheetAsync','FUniver','toDisposable','1621024mMPqTU','69EQNnyL','MemberService','@univerjs/core','FBase','5794185UsoAHg','_univerInstanceService','_collaborationController'];_0x3321=function(){return _0x1ef06d;};return _0x3321();}Object['defineProperty'](exports,Symbol[_0x59baee(0x1ec)],{'value':_0x59baee(0x213)});const c=require('@univerjs-pro/collaboration-client'),l=require(_0x59baee(0x20c)),h=require('@univerjs-pro/collaboration'),n=require(_0x59baee(0x1fc)),b=require('rxjs');var d=Object[_0x59baee(0x215)],S=(_0x1fa74a,_0x5431c5,_0x3f83fd,_0x393505)=>{for(var _0x45e409=_0x393505>0x1?void 0x0:_0x393505?d(_0x5431c5,_0x3f83fd):_0x5431c5,_0x2062e8=_0x1fa74a['length']-0x1,_0x31300e;_0x2062e8>=0x0;_0x2062e8--)(_0x31300e=_0x1fa74a[_0x2062e8])&&(_0x45e409=_0x31300e(_0x45e409)||_0x45e409);return _0x45e409;},s=(_0x11a221,_0x498931)=>(_0x16995d,_0x46cdd8)=>_0x498931(_0x16995d,_0x46cdd8,_0x11a221);exports[_0x59baee(0x208)]=class extends l[_0x59baee(0x1fd)]{constructor(_0x124713,_0x5027d5,_0x37abcd,_0x32725d,_0x15a666){var _0x513722=_0x59baee;super(),this[_0x513722(0x1ed)]=_0x124713,this['_injector']=_0x5027d5,this[_0x513722(0x1ff)]=_0x37abcd,this[_0x513722(0x214)]=_0x32725d,this[_0x513722(0x200)]=_0x15a666;}async['loadActiveSheet'](){var _0x4cb9bd=_0x59baee;return this[_0x4cb9bd(0x1f6)]();}async['loadActiveSheetAsync'](){var _0x5574f6=_0x59baee;throw new Error(_0x5574f6(0x1f5));}async[_0x59baee(0x211)](_0x2345e3){var _0x20a91c=_0x59baee;return this[_0x20a91c(0x203)](_0x2345e3);}async[_0x59baee(0x203)](_0xec37d4,_0x397b59){var _0x31118b=_0x59baee;return await this[_0x31118b(0x214)][_0x31118b(0x211)](_0xec37d4,0x0,_0x397b59)?(await this[_0x31118b(0x200)]['readyForCollab'](_0xec37d4),this['_handler'][_0x31118b(0x1f2)](_0xec37d4)):null;}[_0x59baee(0x204)](_0x383bc9,_0x45d4a5){var _0x2321ca=_0x59baee;const _0x435bed=this[_0x2321ca(0x209)][_0x2321ca(0x20d)](c[_0x2321ca(0x1fb)])[_0x2321ca(0x216)](_0x383bc9)[_0x2321ca(0x1ef)](b[_0x2321ca(0x1f3)](_0x2e2495=>_0x2e2495[_0x2321ca(0x217)]))[_0x2321ca(0x20e)](_0x45eb34=>_0x45d4a5(Array[_0x2321ca(0x20a)](_0x45eb34[_0x2321ca(0x207)]())));return n[_0x2321ca(0x1f8)](_0x435bed);}},exports[_0x59baee(0x208)]=S([s(0x1,n['Inject'](n['Injector'])),s(0x2,n[_0x59baee(0x219)]),s(0x3,n['Inject'](h[_0x59baee(0x206)])),s(0x4,n['Inject'](c[_0x59baee(0x1e8)]))],exports['FCollaboration']);class u extends l[_0x59baee(0x1f7)]{[_0x59baee(0x218)](){var _0x5048bd=_0x59baee;return this['_injector']['createInstance'](exports[_0x5048bd(0x208)],{'getUniverSheet':_0x1f246c=>this['getUniverSheet'](_0x1f246c)});}[_0x59baee(0x1f1)](_0x1b650b,_0x679d27,_0x2c3a1e){var _0x2d1aef=_0x59baee;return this[_0x2d1aef(0x209)]['get'](c['DataLoaderService'])[_0x2d1aef(0x1f4)](_0x1b650b,_0x679d27,_0x2c3a1e);}[_0x59baee(0x1eb)](_0x4fd8aa,_0x10bcd7,_0xd12e1e){var _0x1e021e=_0x59baee;return this['_injector'][_0x1e021e(0x20d)](c[_0x1e021e(0x1ea)])[_0x1e021e(0x205)](_0x4fd8aa,_0x10bcd7,_0xd12e1e);}}l['FUniver'][_0x59baee(0x1e9)](u);