@univerjs-pro/collaboration-client 1.0.2 → 1.0.4
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 _0x52960c=_0x2cd9;(function(_0x5e00d1,_0x358af1){const _0x3f82eb=_0x2cd9,_0x577111=_0x5e00d1();while(!![]){try{const _0x545ed9=-parseInt(_0x3f82eb(0xab))/0x1*(parseInt(_0x3f82eb(0x6f))/0x2)+-parseInt(_0x3f82eb(0x91))/0x3+parseInt(_0x3f82eb(0x82))/0x4*(parseInt(_0x3f82eb(0xc4))/0x5)+-parseInt(_0x3f82eb(0xb3))/0x6*(parseInt(_0x3f82eb(0x7b))/0x7)+parseInt(_0x3f82eb(0x6d))/0x8+-parseInt(_0x3f82eb(0x73))/0x9*(-parseInt(_0x3f82eb(0x8a))/0xa)+parseInt(_0x3f82eb(0xc6))/0xb;if(_0x545ed9===_0x358af1)break;else _0x577111['push'](_0x577111['shift']());}catch(_0x1377c3){_0x577111['push'](_0x577111['shift']());}}}(_0x59d7,0x817dc),Object[_0x52960c(0xb6)](exports,Symbol['toStringTag'],{'value':'Module'}));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[_0x52960c(0x9a)](){return e['CollaborationStatus'];}};t[_0x52960c(0x97)][_0x52960c(0xb0)](a);function _0x2cd9(_0x3c9aad,_0x2dc581){_0x3c9aad=_0x3c9aad-0x6c;const _0x59d7a3=_0x59d7();let _0x2cd9c7=_0x59d7a3[_0x3c9aad];return _0x2cd9c7;}var o=class extends t[_0x52960c(0xa8)]{get[_0x52960c(0x7e)](){const _0x283759=_0x52960c;return _0x283759(0x7e);}};t[_0x52960c(0xa8)]['extend'](o);function s(_0x286661,_0x3e98f3){return function(_0x1b86dd,_0x132a04){_0x3e98f3(_0x1b86dd,_0x132a04,_0x286661);};}function c(_0x5d4e2a,_0xa1ed03,_0x3e9015,_0x3afa84){const _0x193cee=_0x52960c;var _0x24cdec=arguments[_0x193cee(0x85)],_0x5b9435=_0x24cdec<0x3?_0xa1ed03:_0x3afa84===null?_0x3afa84=Object[_0x193cee(0xa9)](_0xa1ed03,_0x3e9015):_0x3afa84,_0x35bb55;if(typeof Reflect==_0x193cee(0x79)&&typeof Reflect[_0x193cee(0x72)]==_0x193cee(0xbb))_0x5b9435=Reflect['decorate'](_0x5d4e2a,_0xa1ed03,_0x3e9015,_0x3afa84);else{for(var _0x3cf18e=_0x5d4e2a[_0x193cee(0x85)]-0x1;_0x3cf18e>=0x0;_0x3cf18e--)(_0x35bb55=_0x5d4e2a[_0x3cf18e])&&(_0x5b9435=(_0x24cdec<0x3?_0x35bb55(_0x5b9435):_0x24cdec>0x3?_0x35bb55(_0xa1ed03,_0x3e9015,_0x5b9435):_0x35bb55(_0xa1ed03,_0x3e9015))||_0x5b9435);}return _0x24cdec>0x3&&_0x5b9435&&Object['defineProperty'](_0xa1ed03,_0x3e9015,_0x5b9435),_0x5b9435;}function _0x59d7(){const _0x46601d=['3Qanxmw','createInstance','DataLoaderService','loadServerUnit','loadDoc','extend','_resolveUnitId','\x22\x20after\x20','3678RlxWBF','getCollaborationStatus','state','defineProperty','add','waitForRoom$','NOT_COLLAB','getFocusedUnit','function','loadSheet','flush','getBase','loadBase','FUniver','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','Inject','get','5505iVqrjx','loadUnit','11311608kXKNuF','members$','IUniverInstanceService','1722504VCQxod','_collaborationController','109042FnpNqt','registerEventHandler','getCollaboration','decorate','9oJKZPb','getBoard','loadBoardAsync','_snapshotService','_univerInstanceService','getCollabEntity','object','status','3206YtmNhS','getPdf','disposeWithMe','CollaborationStatusChanged','getPresentation','loadPdf','getWorkbook','4JiSkQw','FCollaboration','resolve','length','CONFLICT','reject','loadPdfAsync','_initialize','1514860PIfeKp','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','loadSlide','readyForCollab','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','status$','_handler','1264545UrVznd','CollaborationController','FBase','\x22\x20while\x20collaboration\x20status\x20is\x20','getUnitId','_injector','FEnum','SYNCED','MemberService','CollaborationStatus','from','subscribe','DisposableCollection','unitID','toDisposable','values','loadBaseAsync','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','Event','loadSheetAsync','fireEvent','entityInit$','getDocument','FEventName','getOwnPropertyDescriptor','ms.'];_0x59d7=function(){return _0x46601d;};return _0x59d7();}let l=class extends t[_0x52960c(0x93)]{constructor(_0x5e0677,_0x2c50c8,_0x157bf5,_0x394301,_0x581ec8){const _0x14adc9=_0x52960c;super(),this[_0x14adc9(0x90)]=_0x5e0677,this[_0x14adc9(0x96)]=_0x2c50c8,this['_univerInstanceService']=_0x157bf5,this[_0x14adc9(0x76)]=_0x394301,this[_0x14adc9(0x6e)]=_0x581ec8;}async[_0x52960c(0xa4)](_0x5bb48a,_0x2e88dd){const _0x4d7192=_0x52960c;return await this['_snapshotService'][_0x4d7192(0xbc)](_0x5bb48a,0x0,_0x2e88dd)?(await this[_0x4d7192(0x6e)][_0x4d7192(0x8d)](_0x5bb48a),this['_handler'][_0x4d7192(0x81)](_0x5bb48a)):null;}async['loadDocAsync'](_0x1e199e,_0x5196f7){const _0x3e91ef=_0x52960c;return await this[_0x3e91ef(0x76)][_0x3e91ef(0xaf)](_0x1e199e,0x0,_0x5196f7)?(await this['_collaborationController'][_0x3e91ef(0x8d)](_0x1e199e),this[_0x3e91ef(0x90)][_0x3e91ef(0xa7)](_0x1e199e)):null;}async[_0x52960c(0xa1)](_0x5774fd,_0x2567c4){const _0x1d8c84=_0x52960c;return await this[_0x1d8c84(0x76)][_0x1d8c84(0xbf)](_0x5774fd,0x0,_0x2567c4)?(await this[_0x1d8c84(0x6e)]['readyForCollab'](_0x5774fd),this[_0x1d8c84(0x90)][_0x1d8c84(0xbe)](_0x5774fd)):null;}async['loadSlideAsync'](_0x37b2ba,_0x2f5b36){const _0x404097=_0x52960c;return await this[_0x404097(0x76)][_0x404097(0x8c)](_0x37b2ba,0x0,_0x2f5b36)?(await this['_collaborationController']['readyForCollab'](_0x37b2ba),this['_handler'][_0x404097(0x7f)](_0x37b2ba)):null;}async[_0x52960c(0x75)](_0x4ee099,_0x393d73){const _0x1f71b1=_0x52960c;return await this['_snapshotService']['loadBoard'](_0x4ee099,0x0,_0x393d73)?(await this[_0x1f71b1(0x6e)][_0x1f71b1(0x8d)](_0x4ee099),this[_0x1f71b1(0x90)][_0x1f71b1(0x74)](_0x4ee099)):null;}async[_0x52960c(0x88)](_0x33f89c,_0x41aaf5){const _0x112ae4=_0x52960c;return await this[_0x112ae4(0x76)][_0x112ae4(0x80)](_0x33f89c,0x0,_0x41aaf5)?(await this[_0x112ae4(0x6e)][_0x112ae4(0x8d)](_0x33f89c),this['_handler'][_0x112ae4(0x7c)](_0x33f89c)):null;}['subscribeCollaborators'](_0x58c062,_0x9bb889){const _0x1bafce=_0x52960c;let _0x3ead7a=this[_0x1bafce(0x96)][_0x1bafce(0xc3)](e[_0x1bafce(0x99)])[_0x1bafce(0xb8)](_0x58c062)['pipe']((0x0,i['switchMap'])(_0x5e60e1=>_0x5e60e1[_0x1bafce(0xc7)]))[_0x1bafce(0x9c)](_0x4279b4=>_0x9bb889(Array[_0x1bafce(0x9b)](_0x4279b4[_0x1bafce(0xa0)]())));return(0x0,n[_0x1bafce(0x9f)])(_0x3ead7a);}[_0x52960c(0xb4)](_0xfcc0a1){const _0x3bfca6=_0x52960c;let _0x523e7c=this['_resolveUnitId'](_0xfcc0a1);if(!_0x523e7c)return e['CollaborationStatus'][_0x3bfca6(0xb9)];let _0x2ece83=this['_collaborationController'][_0x3bfca6(0x78)](_0x523e7c);return(_0x2ece83==null?void 0x0:_0x2ece83[_0x3bfca6(0xb5)]['status'])??e[_0x3bfca6(0x9a)]['NOT_COLLAB'];}[_0x52960c(0xbd)](_0x51c3e1,_0x1f80a0={}){const _0x19e132=_0x52960c;let _0x145d73=this[_0x19e132(0xb1)](_0x51c3e1);if(!_0x145d73)return Promise[_0x19e132(0x87)](Error(_0x19e132(0x8e)));let _0x59f198=this[_0x19e132(0x6e)]['getCollabEntity'](_0x145d73);if(!_0x59f198)return Promise[_0x19e132(0x87)](Error('[FCollaboration]:\x20Unit\x20\x22'+_0x145d73+_0x19e132(0xc1)));let _0xf3182e=_0x59f198['state'][_0x19e132(0x7a)];if(_0xf3182e===e['CollaborationStatus']['SYNCED'])return Promise[_0x19e132(0x84)]();let _0x1ac7c6=u(_0x145d73,_0xf3182e);if(_0x1ac7c6)return Promise[_0x19e132(0x87)](_0x1ac7c6);let _0x2ac1f9=_0x1f80a0['timeout']??0x7530;return new Promise((_0x47f64a,_0x1f91ff)=>{const _0x4d2edd=_0x19e132;let _0x5cb301=!0x1,_0x5eefb2=null,_0x3a52cb=setTimeout(()=>{const _0x36b149=_0x2cd9;_0x5cb301=!0x0,_0x5eefb2==null||_0x5eefb2['unsubscribe'](),_0x1f91ff(Error(_0x36b149(0xa2)+_0x145d73+_0x36b149(0xb2)+_0x2ac1f9+_0x36b149(0xaa)));},_0x2ac1f9),_0x4fe44f=()=>{_0x5cb301=!0x0,clearTimeout(_0x3a52cb),_0x5eefb2==null||_0x5eefb2['unsubscribe']();};_0x5eefb2=_0x59f198[_0x4d2edd(0x8f)][_0x4d2edd(0x9c)](_0x44da8f=>{const _0x330278=_0x4d2edd;if(_0x5cb301)return;if(_0x44da8f===e[_0x330278(0x9a)][_0x330278(0x98)]){_0x4fe44f(),_0x47f64a();return;}let _0x3fc13d=u(_0x145d73,_0x44da8f);_0x3fc13d&&(_0x4fe44f(),_0x1f91ff(_0x3fc13d));});});}['_resolveUnitId'](_0xae7d){const _0x51453=_0x52960c;var _0x2e77b0;return _0xae7d||((_0x2e77b0=this[_0x51453(0x77)][_0x51453(0xba)]())==null?void 0x0:_0x2e77b0[_0x51453(0x95)]());}};l=c([s(0x1,(0x0,n[_0x52960c(0xc2)])(n['Injector'])),s(0x2,n[_0x52960c(0x6c)]),s(0x3,(0x0,n['Inject'])(r['SnapshotService'])),s(0x4,(0x0,n[_0x52960c(0xc2)])(e['CollaborationController']))],l);function u(_0x11f9ca,_0x4d1a1f){const _0x888fab=_0x52960c;return _0x4d1a1f===e[_0x888fab(0x9a)][_0x888fab(0x86)]||_0x4d1a1f===e['CollaborationStatus'][_0x888fab(0xb9)]?Error(_0x888fab(0x8b)+_0x11f9ca+_0x888fab(0x94)+_0x4d1a1f+'.'):null;}var d=class extends t[_0x52960c(0xc0)]{[_0x52960c(0x89)](_0x3c85ed){const _0x5d02d6=_0x52960c;let _0x13c34c=_0x3c85ed[_0x5d02d6(0xc3)](e[_0x5d02d6(0x92)]);this[_0x5d02d6(0x7d)](this[_0x5d02d6(0x70)](this[_0x5d02d6(0xa3)][_0x5d02d6(0x7e)],()=>{const _0x1e7626=_0x5d02d6;let _0x14bf04=new n[(_0x1e7626(0x9d))](),_0x5df4ba=_0x13c34c[_0x1e7626(0xa6)]['subscribe'](_0x296f77=>{const _0x2c81bf=_0x1e7626;let _0x3f5cc0=_0x296f77[_0x2c81bf(0x8f)][_0x2c81bf(0x9c)](_0x3bc668=>{const _0x407377=_0x2c81bf;let _0x15a144={'unitId':_0x296f77[_0x407377(0x9e)],'status':_0x3bc668};this[_0x407377(0xa5)](this['Event'][_0x407377(0x7e)],_0x15a144);});_0x14bf04[_0x2c81bf(0xb7)]((0x0,n[_0x2c81bf(0x9f)])(_0x3f5cc0));});return _0x14bf04[_0x1e7626(0xb7)]((0x0,n[_0x1e7626(0x9f)])(_0x5df4ba)),_0x14bf04;}));}[_0x52960c(0x71)](){const _0x59eec0=_0x52960c;return this[_0x59eec0(0x96)][_0x59eec0(0xac)](l,{'getWorkbook':_0x67cc53=>this['getWorkbook'](_0x67cc53),'getDocument':_0x34dd58=>this[_0x59eec0(0xa7)](_0x34dd58),'getPresentation':_0x5af9e0=>this[_0x59eec0(0x7f)](_0x5af9e0),'getBase':_0x1ee5ac=>this['getBase'](_0x1ee5ac),'getBoard':_0x1aeaaa=>this[_0x59eec0(0x74)](_0x1aeaaa),'getPdf':_0x493a39=>this[_0x59eec0(0x7c)](_0x493a39)});}[_0x52960c(0xae)](_0x28020b,_0x40741a,_0x142051){const _0x5dab2c=_0x52960c;return this[_0x5dab2c(0x96)][_0x5dab2c(0xc3)](e[_0x5dab2c(0xad)])[_0x5dab2c(0xc5)](_0x28020b,_0x40741a,_0x142051);}['loadServerUnitOfRevision'](_0x48ee69,_0x3b3213,_0x44d6a9){const _0x160f83=_0x52960c;return this[_0x160f83(0x96)][_0x160f83(0xc3)](e['DataLoaderService'])['loadUnitOfRevision'](_0x48ee69,_0x3b3213,_0x44d6a9);}};t[_0x52960c(0xc0)][_0x52960c(0xb0)](d),Object['defineProperty'](exports,_0x52960c(0x83),{'enumerable':!0x0,'get':function(){return l;}});
|