@univerjs-pro/collaboration-client 1.0.2 → 1.0.3
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 +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +15 -15
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x20517b=_0x458a;(function(_0x23ae2a,_0x5bb617){const _0x111fe3=_0x458a,_0x374d62=_0x23ae2a();while(!![]){try{const _0xca2c1e=-parseInt(_0x111fe3(0x134))/0x1+-parseInt(_0x111fe3(0x14a))/0x2+-parseInt(_0x111fe3(0xfb))/0x3+parseInt(_0x111fe3(0x12a))/0x4+-parseInt(_0x111fe3(0x108))/0x5*(parseInt(_0x111fe3(0x14b))/0x6)+parseInt(_0x111fe3(0x140))/0x7+-parseInt(_0x111fe3(0x121))/0x8*(-parseInt(_0x111fe3(0x114))/0x9);if(_0xca2c1e===_0x5bb617)break;else _0x374d62['push'](_0x374d62['shift']());}catch(_0x3e1a7e){_0x374d62['push'](_0x374d62['shift']());}}}(_0x557e,0xdb828),Object['defineProperty'](exports,Symbol[_0x20517b(0x137)],{'value':_0x20517b(0x115)}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core/facade'),n=require('@univerjs/core'),r=require('@univerjs-pro/collaboration'),i=require('rxjs');var a=class extends t['FEnum']{get[_0x20517b(0x126)](){const _0x5370d4=_0x20517b;return e[_0x5370d4(0x126)];}};function _0x557e(){const _0x5f0aa5=['state','toDisposable','DataLoaderService','loadPdfAsync','loadUnit','getDocument','fireEvent','CONFLICT','FEnum','ms.','loadBase','198171TKXEWb','Module','FUniver','_injector','getCollaborationStatus','loadBoard','loadSlideAsync','subscribe','loadSlide','loadUnitOfRevision','unsubscribe','decorate','loadDocAsync','632MpHMlw','getPdf','values','_handler','loadServerUnitOfRevision','CollaborationStatus','NOT_COLLAB','_resolveUnitId','\x22\x20while\x20collaboration\x20status\x20is\x20','3002052whUjqC','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','disposeWithMe','status','CollaborationController','_initialize','Event','getBoard','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','get','1332255peSBeV','unitID','entityInit$','toStringTag','[FCollaboration]:\x20Unit\x20\x22','Inject','readyForCollab','waitForRoom$','FEventName','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','loadServerUnit','flush','8146810aZyYqg','_snapshotService','subscribeCollaborators','length','loadPdf','status$','createInstance','CollaborationStatusChanged','getWorkbook','loadSheet','441360pRqCVh','6ydJXGK','_collaborationController','add','loadDoc','reject','timeout','extend','IUniverInstanceService','switchMap','registerEventHandler','2750982vhUiwY','getPresentation','getFocusedUnit','MemberService','object','getCollabEntity','SYNCED','getUnitId','getCollaboration','DisposableCollection','defineProperty','from','getBase','1424015DbTKCx'];_0x557e=function(){return _0x5f0aa5;};return _0x557e();}t[_0x20517b(0x111)][_0x20517b(0xf7)](a);var o=class extends t[_0x20517b(0x13c)]{get['CollaborationStatusChanged'](){const _0x26aba1=_0x20517b;return _0x26aba1(0x147);}};t['FEventName']['extend'](o);function s(_0x2f8994,_0x48708c){return function(_0x2ae878,_0x3d3694){_0x48708c(_0x2ae878,_0x3d3694,_0x2f8994);};}function c(_0x141548,_0x330212,_0x318078,_0x1b4205){const _0x500d04=_0x20517b;var _0x68c10f=arguments['length'],_0xcbc871=_0x68c10f<0x3?_0x330212:_0x1b4205===null?_0x1b4205=Object['getOwnPropertyDescriptor'](_0x330212,_0x318078):_0x1b4205,_0x5b0e3e;if(typeof Reflect==_0x500d04(0xff)&&typeof Reflect['decorate']=='function')_0xcbc871=Reflect[_0x500d04(0x11f)](_0x141548,_0x330212,_0x318078,_0x1b4205);else{for(var _0x5d8d1c=_0x141548[_0x500d04(0x143)]-0x1;_0x5d8d1c>=0x0;_0x5d8d1c--)(_0x5b0e3e=_0x141548[_0x5d8d1c])&&(_0xcbc871=(_0x68c10f<0x3?_0x5b0e3e(_0xcbc871):_0x68c10f>0x3?_0x5b0e3e(_0x330212,_0x318078,_0xcbc871):_0x5b0e3e(_0x330212,_0x318078))||_0xcbc871);}return _0x68c10f>0x3&&_0xcbc871&&Object['defineProperty'](_0x330212,_0x318078,_0xcbc871),_0xcbc871;}let l=class extends t['FBase']{constructor(_0x56e16b,_0x314384,_0x1df81d,_0x345435,_0x508bcd){const _0x3cc0cb=_0x20517b;super(),this[_0x3cc0cb(0x124)]=_0x56e16b,this[_0x3cc0cb(0x117)]=_0x314384,this['_univerInstanceService']=_0x1df81d,this[_0x3cc0cb(0x141)]=_0x345435,this[_0x3cc0cb(0x14c)]=_0x508bcd;}async['loadSheetAsync'](_0x23b5bb,_0x5866cf){const _0x542ec8=_0x20517b;return await this['_snapshotService'][_0x542ec8(0x149)](_0x23b5bb,0x0,_0x5866cf)?(await this[_0x542ec8(0x14c)][_0x542ec8(0x13a)](_0x23b5bb),this['_handler']['getWorkbook'](_0x23b5bb)):null;}async[_0x20517b(0x120)](_0x526645,_0x15d80c){const _0x2c2719=_0x20517b;return await this[_0x2c2719(0x141)][_0x2c2719(0x14e)](_0x526645,0x0,_0x15d80c)?(await this[_0x2c2719(0x14c)][_0x2c2719(0x13a)](_0x526645),this[_0x2c2719(0x124)][_0x2c2719(0x10e)](_0x526645)):null;}async['loadBaseAsync'](_0x3cabbb,_0xe010d3){const _0x1e9388=_0x20517b;return await this[_0x1e9388(0x141)][_0x1e9388(0x113)](_0x3cabbb,0x0,_0xe010d3)?(await this['_collaborationController'][_0x1e9388(0x13a)](_0x3cabbb),this[_0x1e9388(0x124)][_0x1e9388(0x107)](_0x3cabbb)):null;}async[_0x20517b(0x11a)](_0x1076d9,_0x8448ab){const _0x509900=_0x20517b;return await this[_0x509900(0x141)][_0x509900(0x11c)](_0x1076d9,0x0,_0x8448ab)?(await this[_0x509900(0x14c)][_0x509900(0x13a)](_0x1076d9),this[_0x509900(0x124)][_0x509900(0xfc)](_0x1076d9)):null;}async['loadBoardAsync'](_0x54ec7f,_0x3cc235){const _0x48ac01=_0x20517b;return await this[_0x48ac01(0x141)][_0x48ac01(0x119)](_0x54ec7f,0x0,_0x3cc235)?(await this[_0x48ac01(0x14c)][_0x48ac01(0x13a)](_0x54ec7f),this[_0x48ac01(0x124)]['getBoard'](_0x54ec7f)):null;}async[_0x20517b(0x10c)](_0xc4848a,_0x41ad50){const _0x32c181=_0x20517b;return await this['_snapshotService'][_0x32c181(0x144)](_0xc4848a,0x0,_0x41ad50)?(await this[_0x32c181(0x14c)][_0x32c181(0x13a)](_0xc4848a),this[_0x32c181(0x124)][_0x32c181(0x122)](_0xc4848a)):null;}[_0x20517b(0x142)](_0x45d057,_0x5ef1ab){const _0x3924d0=_0x20517b;let _0x53c3d6=this[_0x3924d0(0x117)][_0x3924d0(0x133)](e[_0x3924d0(0xfe)])[_0x3924d0(0x13b)](_0x45d057)['pipe']((0x0,i[_0x3924d0(0xf9)])(_0x42b7a5=>_0x42b7a5['members$']))['subscribe'](_0x1e6cb8=>_0x5ef1ab(Array[_0x3924d0(0x106)](_0x1e6cb8[_0x3924d0(0x123)]())));return(0x0,n['toDisposable'])(_0x53c3d6);}[_0x20517b(0x118)](_0x26598c){const _0x1d7df4=_0x20517b;let _0xcda94c=this[_0x1d7df4(0x128)](_0x26598c);if(!_0xcda94c)return e[_0x1d7df4(0x126)][_0x1d7df4(0x127)];let _0x18c0ce=this['_collaborationController']['getCollabEntity'](_0xcda94c);return(_0x18c0ce==null?void 0x0:_0x18c0ce['state'][_0x1d7df4(0x12d)])??e[_0x1d7df4(0x126)][_0x1d7df4(0x127)];}[_0x20517b(0x13f)](_0x337075,_0x1168bc={}){const _0x5caf1f=_0x20517b;let _0x4edc12=this[_0x5caf1f(0x128)](_0x337075);if(!_0x4edc12)return Promise[_0x5caf1f(0xf5)](Error(_0x5caf1f(0x132)));let _0x99ea64=this['_collaborationController'][_0x5caf1f(0x100)](_0x4edc12);if(!_0x99ea64)return Promise[_0x5caf1f(0xf5)](Error(_0x5caf1f(0x138)+_0x4edc12+'\x22\x20is\x20not\x20in\x20collaboration\x20mode.'));let _0x16c070=_0x99ea64[_0x5caf1f(0x109)][_0x5caf1f(0x12d)];if(_0x16c070===e[_0x5caf1f(0x126)][_0x5caf1f(0x101)])return Promise['resolve']();let _0x2b95d1=u(_0x4edc12,_0x16c070);if(_0x2b95d1)return Promise[_0x5caf1f(0xf5)](_0x2b95d1);let _0x1f0153=_0x1168bc[_0x5caf1f(0xf6)]??0x7530;return new Promise((_0x4bba28,_0xb26cae)=>{const _0x52bffb=_0x5caf1f;let _0xb2800e=!0x1,_0x15aba2=null,_0xa8bfc5=setTimeout(()=>{const _0x29dd9b=_0x458a;_0xb2800e=!0x0,_0x15aba2==null||_0x15aba2['unsubscribe'](),_0xb26cae(Error(_0x29dd9b(0x12b)+_0x4edc12+'\x22\x20after\x20'+_0x1f0153+_0x29dd9b(0x112)));},_0x1f0153),_0x7d3fb9=()=>{const _0x2fc073=_0x458a;_0xb2800e=!0x0,clearTimeout(_0xa8bfc5),_0x15aba2==null||_0x15aba2[_0x2fc073(0x11e)]();};_0x15aba2=_0x99ea64[_0x52bffb(0x145)][_0x52bffb(0x11b)](_0x2e0499=>{const _0x8c78cb=_0x52bffb;if(_0xb2800e)return;if(_0x2e0499===e[_0x8c78cb(0x126)][_0x8c78cb(0x101)]){_0x7d3fb9(),_0x4bba28();return;}let _0x57caa1=u(_0x4edc12,_0x2e0499);_0x57caa1&&(_0x7d3fb9(),_0xb26cae(_0x57caa1));});});}['_resolveUnitId'](_0x529533){const _0x259d85=_0x20517b;var _0x985342;return _0x529533||((_0x985342=this['_univerInstanceService'][_0x259d85(0xfd)]())==null?void 0x0:_0x985342[_0x259d85(0x102)]());}};l=c([s(0x1,(0x0,n['Inject'])(n['Injector'])),s(0x2,n[_0x20517b(0xf8)]),s(0x3,(0x0,n['Inject'])(r['SnapshotService'])),s(0x4,(0x0,n[_0x20517b(0x139)])(e[_0x20517b(0x12e)]))],l);function _0x458a(_0x988b49,_0x3b95ba){_0x988b49=_0x988b49-0xf5;const _0x557edc=_0x557e();let _0x458a34=_0x557edc[_0x988b49];return _0x458a34;}function u(_0x88295e,_0x4e2bdd){const _0x2f7f9c=_0x20517b;return _0x4e2bdd===e[_0x2f7f9c(0x126)][_0x2f7f9c(0x110)]||_0x4e2bdd===e[_0x2f7f9c(0x126)][_0x2f7f9c(0x127)]?Error(_0x2f7f9c(0x13d)+_0x88295e+_0x2f7f9c(0x129)+_0x4e2bdd+'.'):null;}var d=class extends t[_0x20517b(0x116)]{[_0x20517b(0x12f)](_0x58780f){const _0x472795=_0x20517b;let _0x1be871=_0x58780f[_0x472795(0x133)](e[_0x472795(0x12e)]);this[_0x472795(0x12c)](this[_0x472795(0xfa)](this['Event'][_0x472795(0x147)],()=>{const _0x4c6104=_0x472795;let _0x53ae89=new n[(_0x4c6104(0x104))](),_0x45c9cb=_0x1be871[_0x4c6104(0x136)][_0x4c6104(0x11b)](_0x3353cf=>{const _0x26cff1=_0x4c6104;let _0x15bb80=_0x3353cf[_0x26cff1(0x145)][_0x26cff1(0x11b)](_0x32b8d4=>{const _0x4b20a7=_0x26cff1;let _0x4b63e0={'unitId':_0x3353cf[_0x4b20a7(0x135)],'status':_0x32b8d4};this[_0x4b20a7(0x10f)](this[_0x4b20a7(0x130)][_0x4b20a7(0x147)],_0x4b63e0);});_0x53ae89[_0x26cff1(0x14d)]((0x0,n['toDisposable'])(_0x15bb80));});return _0x53ae89[_0x4c6104(0x14d)]((0x0,n[_0x4c6104(0x10a)])(_0x45c9cb)),_0x53ae89;}));}[_0x20517b(0x103)](){const _0x36a9a2=_0x20517b;return this[_0x36a9a2(0x117)][_0x36a9a2(0x146)](l,{'getWorkbook':_0x427d41=>this[_0x36a9a2(0x148)](_0x427d41),'getDocument':_0x2e8771=>this[_0x36a9a2(0x10e)](_0x2e8771),'getPresentation':_0x180bcf=>this[_0x36a9a2(0xfc)](_0x180bcf),'getBase':_0x52986f=>this[_0x36a9a2(0x107)](_0x52986f),'getBoard':_0x826f1e=>this[_0x36a9a2(0x131)](_0x826f1e),'getPdf':_0x37840b=>this[_0x36a9a2(0x122)](_0x37840b)});}[_0x20517b(0x13e)](_0x16efc9,_0x4b9260,_0x2c6baf){const _0x51e0f6=_0x20517b;return this[_0x51e0f6(0x117)][_0x51e0f6(0x133)](e['DataLoaderService'])[_0x51e0f6(0x10d)](_0x16efc9,_0x4b9260,_0x2c6baf);}[_0x20517b(0x125)](_0x2499a4,_0x68383d,_0x497f85){const _0x24456e=_0x20517b;return this[_0x24456e(0x117)]['get'](e[_0x24456e(0x10b)])[_0x24456e(0x11d)](_0x2499a4,_0x68383d,_0x497f85);}};t[_0x20517b(0x116)][_0x20517b(0xf7)](d),Object[_0x20517b(0x105)](exports,'FCollaboration',{'enumerable':!0x0,'get':function(){return l;}});
|
|
1
|
+
const _0x48b35b=_0x39b6;(function(_0x3586c7,_0x2be1bd){const _0x52d0db=_0x39b6,_0x25df5f=_0x3586c7();while(!![]){try{const _0x4d24e9=parseInt(_0x52d0db(0x16b))/0x1*(parseInt(_0x52d0db(0x162))/0x2)+-parseInt(_0x52d0db(0x137))/0x3+parseInt(_0x52d0db(0x155))/0x4+parseInt(_0x52d0db(0x13f))/0x5*(parseInt(_0x52d0db(0x151))/0x6)+-parseInt(_0x52d0db(0x164))/0x7+parseInt(_0x52d0db(0x12f))/0x8*(parseInt(_0x52d0db(0x142))/0x9)+-parseInt(_0x52d0db(0x163))/0xa;if(_0x4d24e9===_0x2be1bd)break;else _0x25df5f['push'](_0x25df5f['shift']());}catch(_0x1bc78c){_0x25df5f['push'](_0x25df5f['shift']());}}}(_0x2bc7,0x94a4e),Object[_0x48b35b(0x123)](exports,Symbol[_0x48b35b(0x145)],{'value':_0x48b35b(0x16e)}));function _0x39b6(_0x51a6ec,_0x3ec19c){_0x51a6ec=_0x51a6ec-0x11a;const _0x2bc7eb=_0x2bc7();let _0x39b6b7=_0x2bc7eb[_0x51a6ec];return _0x39b6b7;}let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core/facade'),n=require('@univerjs/core'),r=require('@univerjs-pro/collaboration'),i=require('rxjs');var a=class extends t[_0x48b35b(0x15b)]{get[_0x48b35b(0x166)](){const _0x2cfc9b=_0x48b35b;return e[_0x2cfc9b(0x166)];}};t[_0x48b35b(0x15b)][_0x48b35b(0x148)](a);var o=class extends t[_0x48b35b(0x12b)]{get[_0x48b35b(0x133)](){const _0x229650=_0x48b35b;return _0x229650(0x133);}};t[_0x48b35b(0x12b)][_0x48b35b(0x148)](o);function s(_0x458f92,_0x4f7e61){return function(_0x2fe99f,_0x1d535d){_0x4f7e61(_0x2fe99f,_0x1d535d,_0x458f92);};}function c(_0x3ef129,_0x18d3a8,_0x2ddafd,_0x2b0800){const _0x43be8d=_0x48b35b;var _0x1212bd=arguments['length'],_0x200301=_0x1212bd<0x3?_0x18d3a8:_0x2b0800===null?_0x2b0800=Object['getOwnPropertyDescriptor'](_0x18d3a8,_0x2ddafd):_0x2b0800,_0x4a63d9;if(typeof Reflect=='object'&&typeof Reflect[_0x43be8d(0x15a)]==_0x43be8d(0x129))_0x200301=Reflect[_0x43be8d(0x15a)](_0x3ef129,_0x18d3a8,_0x2ddafd,_0x2b0800);else{for(var _0x1e1543=_0x3ef129[_0x43be8d(0x159)]-0x1;_0x1e1543>=0x0;_0x1e1543--)(_0x4a63d9=_0x3ef129[_0x1e1543])&&(_0x200301=(_0x1212bd<0x3?_0x4a63d9(_0x200301):_0x1212bd>0x3?_0x4a63d9(_0x18d3a8,_0x2ddafd,_0x200301):_0x4a63d9(_0x18d3a8,_0x2ddafd))||_0x200301);}return _0x1212bd>0x3&&_0x200301&&Object[_0x43be8d(0x123)](_0x18d3a8,_0x2ddafd,_0x200301),_0x200301;}let l=class extends t['FBase']{constructor(_0x36241f,_0x20cf95,_0x5900b8,_0x53853d,_0x2bb9a8){const _0x49267c=_0x48b35b;super(),this[_0x49267c(0x120)]=_0x36241f,this[_0x49267c(0x128)]=_0x20cf95,this[_0x49267c(0x16a)]=_0x5900b8,this[_0x49267c(0x16f)]=_0x53853d,this[_0x49267c(0x124)]=_0x2bb9a8;}async[_0x48b35b(0x15e)](_0x2b6bdc,_0x3d35d8){const _0x7d9d1=_0x48b35b;return await this[_0x7d9d1(0x16f)][_0x7d9d1(0x11d)](_0x2b6bdc,0x0,_0x3d35d8)?(await this[_0x7d9d1(0x124)][_0x7d9d1(0x12a)](_0x2b6bdc),this[_0x7d9d1(0x120)][_0x7d9d1(0x153)](_0x2b6bdc)):null;}async[_0x48b35b(0x13a)](_0xd3157f,_0x122350){const _0x1bc4f9=_0x48b35b;return await this[_0x1bc4f9(0x16f)][_0x1bc4f9(0x13c)](_0xd3157f,0x0,_0x122350)?(await this[_0x1bc4f9(0x124)][_0x1bc4f9(0x12a)](_0xd3157f),this[_0x1bc4f9(0x120)]['getDocument'](_0xd3157f)):null;}async[_0x48b35b(0x15f)](_0x2b8b6e,_0x34b12c){const _0x1a3a81=_0x48b35b;return await this[_0x1a3a81(0x16f)][_0x1a3a81(0x136)](_0x2b8b6e,0x0,_0x34b12c)?(await this[_0x1a3a81(0x124)][_0x1a3a81(0x12a)](_0x2b8b6e),this['_handler'][_0x1a3a81(0x14b)](_0x2b8b6e)):null;}async[_0x48b35b(0x11c)](_0x1d9b91,_0x506e5a){const _0xe4ab91=_0x48b35b;return await this[_0xe4ab91(0x16f)][_0xe4ab91(0x12e)](_0x1d9b91,0x0,_0x506e5a)?(await this[_0xe4ab91(0x124)][_0xe4ab91(0x12a)](_0x1d9b91),this[_0xe4ab91(0x120)]['getPresentation'](_0x1d9b91)):null;}async['loadBoardAsync'](_0x5a03ac,_0x44e77b){const _0x39b65a=_0x48b35b;return await this[_0x39b65a(0x16f)][_0x39b65a(0x11b)](_0x5a03ac,0x0,_0x44e77b)?(await this[_0x39b65a(0x124)][_0x39b65a(0x12a)](_0x5a03ac),this[_0x39b65a(0x120)][_0x39b65a(0x13d)](_0x5a03ac)):null;}async[_0x48b35b(0x154)](_0xaeab45,_0x5c697b){const _0x2852da=_0x48b35b;return await this[_0x2852da(0x16f)]['loadPdf'](_0xaeab45,0x0,_0x5c697b)?(await this[_0x2852da(0x124)][_0x2852da(0x12a)](_0xaeab45),this[_0x2852da(0x120)][_0x2852da(0x14a)](_0xaeab45)):null;}['subscribeCollaborators'](_0x4692ea,_0x4e522e){const _0x578a77=_0x48b35b;let _0x31bfd4=this[_0x578a77(0x128)][_0x578a77(0x14c)](e[_0x578a77(0x156)])[_0x578a77(0x167)](_0x4692ea)['pipe']((0x0,i['switchMap'])(_0x46aa0d=>_0x46aa0d[_0x578a77(0x11f)]))[_0x578a77(0x141)](_0x350ea2=>_0x4e522e(Array['from'](_0x350ea2[_0x578a77(0x149)]())));return(0x0,n[_0x578a77(0x14d)])(_0x31bfd4);}[_0x48b35b(0x168)](_0x4fd4d6){const _0xcc612f=_0x48b35b;let _0x395434=this['_resolveUnitId'](_0x4fd4d6);if(!_0x395434)return e['CollaborationStatus'][_0xcc612f(0x131)];let _0x3a4a75=this[_0xcc612f(0x124)][_0xcc612f(0x13b)](_0x395434);return(_0x3a4a75==null?void 0x0:_0x3a4a75['state'][_0xcc612f(0x150)])??e['CollaborationStatus'][_0xcc612f(0x131)];}['flush'](_0x4e59b2,_0x110b2={}){const _0x346445=_0x48b35b;let _0x105e5a=this[_0x346445(0x158)](_0x4e59b2);if(!_0x105e5a)return Promise[_0x346445(0x134)](Error(_0x346445(0x13e)));let _0x3c81ae=this[_0x346445(0x124)][_0x346445(0x13b)](_0x105e5a);if(!_0x3c81ae)return Promise[_0x346445(0x134)](Error(_0x346445(0x165)+_0x105e5a+'\x22\x20is\x20not\x20in\x20collaboration\x20mode.'));let _0x28a33e=_0x3c81ae[_0x346445(0x157)][_0x346445(0x150)];if(_0x28a33e===e[_0x346445(0x166)]['SYNCED'])return Promise[_0x346445(0x15d)]();let _0xd55a0c=u(_0x105e5a,_0x28a33e);if(_0xd55a0c)return Promise['reject'](_0xd55a0c);let _0x3a2686=_0x110b2['timeout']??0x7530;return new Promise((_0xdca937,_0x461d16)=>{let _0x597bf1=!0x1,_0x45bd3f=null,_0x1cf1cc=setTimeout(()=>{const _0x1a4ba0=_0x39b6;_0x597bf1=!0x0,_0x45bd3f==null||_0x45bd3f[_0x1a4ba0(0x14f)](),_0x461d16(Error('[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22'+_0x105e5a+'\x22\x20after\x20'+_0x3a2686+'ms.'));},_0x3a2686),_0x5e9160=()=>{const _0x20a1ff=_0x39b6;_0x597bf1=!0x0,clearTimeout(_0x1cf1cc),_0x45bd3f==null||_0x45bd3f[_0x20a1ff(0x14f)]();};_0x45bd3f=_0x3c81ae['status$']['subscribe'](_0x26a6ed=>{const _0x373313=_0x39b6;if(_0x597bf1)return;if(_0x26a6ed===e[_0x373313(0x166)][_0x373313(0x138)]){_0x5e9160(),_0xdca937();return;}let _0x183c99=u(_0x105e5a,_0x26a6ed);_0x183c99&&(_0x5e9160(),_0x461d16(_0x183c99));});});}['_resolveUnitId'](_0x32966a){const _0x1be91c=_0x48b35b;var _0x2c6741;return _0x32966a||((_0x2c6741=this[_0x1be91c(0x16a)]['getFocusedUnit']())==null?void 0x0:_0x2c6741[_0x1be91c(0x12d)]());}};l=c([s(0x1,(0x0,n['Inject'])(n['Injector'])),s(0x2,n[_0x48b35b(0x15c)]),s(0x3,(0x0,n[_0x48b35b(0x16d)])(r[_0x48b35b(0x132)])),s(0x4,(0x0,n[_0x48b35b(0x16d)])(e[_0x48b35b(0x11e)]))],l);function u(_0x39a5a4,_0x4438cb){const _0x32309c=_0x48b35b;return _0x4438cb===e['CollaborationStatus']['CONFLICT']||_0x4438cb===e[_0x32309c(0x166)][_0x32309c(0x131)]?Error(_0x32309c(0x143)+_0x39a5a4+_0x32309c(0x16c)+_0x4438cb+'.'):null;}function _0x2bc7(){const _0x194d6e=['getBase','get','toDisposable','DataLoaderService','unsubscribe','status','5516508nvxjaD','getDocument','getWorkbook','loadPdfAsync','2652652ShSEID','MemberService','state','_resolveUnitId','length','decorate','FEnum','IUniverInstanceService','resolve','loadSheetAsync','loadBaseAsync','getCollaboration','FCollaboration','334taCFqu','14868770pBHnnj','232113XKYqFC','[FCollaboration]:\x20Unit\x20\x22','CollaborationStatus','waitForRoom$','getCollaborationStatus','_initialize','_univerInstanceService','1389YmmXkF','\x22\x20while\x20collaboration\x20status\x20is\x20','Inject','Module','_snapshotService','DisposableCollection','loadBoard','loadSlideAsync','loadSheet','CollaborationController','members$','_handler','getPresentation','unitID','defineProperty','_collaborationController','FUniver','status$','loadUnit','_injector','function','readyForCollab','FEventName','add','getUnitId','loadSlide','136RzVdFs','fireEvent','NOT_COLLAB','SnapshotService','CollaborationStatusChanged','reject','createInstance','loadBase','320970RalTfp','SYNCED','disposeWithMe','loadDocAsync','getCollabEntity','loadDoc','getBoard','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','5ApdkzG','loadUnitOfRevision','subscribe','223056xqMfuO','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','loadServerUnitOfRevision','toStringTag','Event','loadServerUnit','extend','values','getPdf'];_0x2bc7=function(){return _0x194d6e;};return _0x2bc7();}var d=class extends t[_0x48b35b(0x125)]{[_0x48b35b(0x169)](_0x2309ec){const _0x286c8b=_0x48b35b;let _0x1eac7d=_0x2309ec[_0x286c8b(0x14c)](e[_0x286c8b(0x11e)]);this[_0x286c8b(0x139)](this['registerEventHandler'](this[_0x286c8b(0x146)][_0x286c8b(0x133)],()=>{const _0x59ab0f=_0x286c8b;let _0x95fb1=new n[(_0x59ab0f(0x11a))](),_0x566ab4=_0x1eac7d['entityInit$']['subscribe'](_0x3f71cf=>{const _0x598883=_0x59ab0f;let _0x25839c=_0x3f71cf[_0x598883(0x126)][_0x598883(0x141)](_0x583d30=>{const _0x1e2caf=_0x598883;let _0x13abdd={'unitId':_0x3f71cf[_0x1e2caf(0x122)],'status':_0x583d30};this[_0x1e2caf(0x130)](this[_0x1e2caf(0x146)][_0x1e2caf(0x133)],_0x13abdd);});_0x95fb1[_0x598883(0x12c)]((0x0,n['toDisposable'])(_0x25839c));});return _0x95fb1[_0x59ab0f(0x12c)]((0x0,n[_0x59ab0f(0x14d)])(_0x566ab4)),_0x95fb1;}));}[_0x48b35b(0x160)](){const _0x1534ad=_0x48b35b;return this[_0x1534ad(0x128)][_0x1534ad(0x135)](l,{'getWorkbook':_0x374c00=>this[_0x1534ad(0x153)](_0x374c00),'getDocument':_0x6b08a=>this[_0x1534ad(0x152)](_0x6b08a),'getPresentation':_0x4669ce=>this[_0x1534ad(0x121)](_0x4669ce),'getBase':_0x531f34=>this[_0x1534ad(0x14b)](_0x531f34),'getBoard':_0x307d69=>this[_0x1534ad(0x13d)](_0x307d69),'getPdf':_0x288541=>this[_0x1534ad(0x14a)](_0x288541)});}[_0x48b35b(0x147)](_0x4fc2ee,_0x1700d4,_0x8af577){const _0x446197=_0x48b35b;return this[_0x446197(0x128)][_0x446197(0x14c)](e['DataLoaderService'])[_0x446197(0x127)](_0x4fc2ee,_0x1700d4,_0x8af577);}[_0x48b35b(0x144)](_0x5ee616,_0xcf8297,_0x12e25e){const _0x524409=_0x48b35b;return this['_injector'][_0x524409(0x14c)](e[_0x524409(0x14e)])[_0x524409(0x140)](_0x5ee616,_0xcf8297,_0x12e25e);}};t[_0x48b35b(0x125)]['extend'](d),Object[_0x48b35b(0x123)](exports,_0x48b35b(0x161),{'enumerable':!0x0,'get':function(){return l;}});
|