@univerjs-pro/collaboration-client 1.0.0-alpha.8 → 1.0.0-beta.0
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 _0x1f91c8=_0xd973;(function(_0x15d3b9,_0x4b5ed3){const _0x3d26d4=_0xd973,_0x2f5f4f=_0x15d3b9();while(!![]){try{const _0x443270=-parseInt(_0x3d26d4(0x123))/0x1+-parseInt(_0x3d26d4(0x148))/0x2*(parseInt(_0x3d26d4(0x13b))/0x3)+-parseInt(_0x3d26d4(0x112))/0x4*(parseInt(_0x3d26d4(0x114))/0x5)+parseInt(_0x3d26d4(0x138))/0x6+-parseInt(_0x3d26d4(0x11c))/0x7+parseInt(_0x3d26d4(0x157))/0x8+parseInt(_0x3d26d4(0x13a))/0x9;if(_0x443270===_0x4b5ed3)break;else _0x2f5f4f['push'](_0x2f5f4f['shift']());}catch(_0x5d9d99){_0x2f5f4f['push'](_0x2f5f4f['shift']());}}}(_0x1397,0x7b86f),Object['defineProperty'](exports,Symbol[_0x1f91c8(0x12a)],{'value':_0x1f91c8(0x160)}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core/facade'),n=require('@univerjs/core'),r=require('@univerjs-pro/collaboration'),i=require('rxjs');function _0x1397(){const _0x4a8f7a=['unitID','SYNCED','_collaborationController','_univerInstanceService','getCollaboration','getCollabEntity','FEventName','2XUhLwI','[FCollaboration]:\x20Unit\x20\x22','registerEventHandler','loadUnitOfRevision','object','resolve','DataLoaderService','FBase','loadBase','loadServerUnit','_snapshotService','FUniver','NOT_COLLAB','from','getWorkbook','4843768BGerAG','Inject','getCollaborationStatus','_resolveUnitId','members$','flush','decorate','length','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','Module','SnapshotService','getFocusedUnit','defineProperty','get','getUnitId','loadSheetAsync','pipe','Event','loadBaseAsync','getBase','toDisposable','getDocument','entityInit$','628ENBBTg','extend','21745byXbUk','fireEvent','loadSlide','CollaborationStatus','DisposableCollection','MemberService','loadSlideAsync','timeout','948367NZVLUp','IUniverInstanceService','\x22\x20after\x20','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','disposeWithMe','loadBoardAsync','getBoard','913963mDIhoJ','loadDoc','loadServerUnitOfRevision','reject','loadSheet','unsubscribe','_injector','toStringTag','CollaborationStatusChanged','FCollaboration','subscribe','switchMap','CONFLICT','loadBoard','getOwnPropertyDescriptor','Injector','createInstance','state','ms.','getPresentation','subscribeCollaborators','2249394erERpi','readyForCollab','15472899ngYIdJ','1384131McbTLz','_handler','waitForRoom$','status$','loadDocAsync','add'];_0x1397=function(){return _0x4a8f7a;};return _0x1397();}var a=class extends t['FEnum']{get[_0x1f91c8(0x117)](){const _0x1d1b3e=_0x1f91c8;return e[_0x1d1b3e(0x117)];}};t['FEnum'][_0x1f91c8(0x113)](a);var o=class extends t['FEventName']{get[_0x1f91c8(0x12b)](){const _0x37682d=_0x1f91c8;return _0x37682d(0x12b);}};t[_0x1f91c8(0x147)]['extend'](o);function s(_0xaa4f41,_0x35f9be){return function(_0x126010,_0xbac4b6){_0x35f9be(_0x126010,_0xbac4b6,_0xaa4f41);};}function c(_0x988141,_0xd937d7,_0xb88bfa,_0x55b5a4){const _0x1d0899=_0x1f91c8;var _0x2c4bd4=arguments['length'],_0x3814cc=_0x2c4bd4<0x3?_0xd937d7:_0x55b5a4===null?_0x55b5a4=Object[_0x1d0899(0x131)](_0xd937d7,_0xb88bfa):_0x55b5a4,_0x37a6ba;if(typeof Reflect==_0x1d0899(0x14c)&&typeof Reflect[_0x1d0899(0x15d)]=='function')_0x3814cc=Reflect[_0x1d0899(0x15d)](_0x988141,_0xd937d7,_0xb88bfa,_0x55b5a4);else{for(var _0x3bfd66=_0x988141[_0x1d0899(0x15e)]-0x1;_0x3bfd66>=0x0;_0x3bfd66--)(_0x37a6ba=_0x988141[_0x3bfd66])&&(_0x3814cc=(_0x2c4bd4<0x3?_0x37a6ba(_0x3814cc):_0x2c4bd4>0x3?_0x37a6ba(_0xd937d7,_0xb88bfa,_0x3814cc):_0x37a6ba(_0xd937d7,_0xb88bfa))||_0x3814cc);}return _0x2c4bd4>0x3&&_0x3814cc&&Object[_0x1d0899(0x163)](_0xd937d7,_0xb88bfa,_0x3814cc),_0x3814cc;}let l=class extends t[_0x1f91c8(0x14f)]{constructor(_0x24e6b3,_0x10ab3e,_0x4aec58,_0x1aa048,_0x37a96a){const _0x18af66=_0x1f91c8;super(),this[_0x18af66(0x13c)]=_0x24e6b3,this[_0x18af66(0x129)]=_0x10ab3e,this['_univerInstanceService']=_0x4aec58,this[_0x18af66(0x152)]=_0x1aa048,this['_collaborationController']=_0x37a96a;}async[_0x1f91c8(0x166)](_0x52e3ab,_0x5c98c0){const _0x208519=_0x1f91c8;return await this[_0x208519(0x152)][_0x208519(0x127)](_0x52e3ab,0x0,_0x5c98c0)?(await this[_0x208519(0x143)][_0x208519(0x139)](_0x52e3ab),this[_0x208519(0x13c)]['getWorkbook'](_0x52e3ab)):null;}async[_0x1f91c8(0x13f)](_0x1794a2,_0x526b42){const _0x5e4fd1=_0x1f91c8;return await this[_0x5e4fd1(0x152)][_0x5e4fd1(0x124)](_0x1794a2,0x0,_0x526b42)?(await this[_0x5e4fd1(0x143)][_0x5e4fd1(0x139)](_0x1794a2),this['_handler'][_0x5e4fd1(0x110)](_0x1794a2)):null;}async[_0x1f91c8(0x169)](_0x1276e5,_0x1e1a26){const _0x2aeeda=_0x1f91c8;return await this[_0x2aeeda(0x152)][_0x2aeeda(0x150)](_0x1276e5,0x0,_0x1e1a26)?(await this[_0x2aeeda(0x143)][_0x2aeeda(0x139)](_0x1276e5),this[_0x2aeeda(0x13c)][_0x2aeeda(0x16a)](_0x1276e5)):null;}async[_0x1f91c8(0x11a)](_0x2b0722,_0x43a0dd){const _0x18ca55=_0x1f91c8;return await this[_0x18ca55(0x152)][_0x18ca55(0x116)](_0x2b0722,0x0,_0x43a0dd)?(await this[_0x18ca55(0x143)][_0x18ca55(0x139)](_0x2b0722),this[_0x18ca55(0x13c)]['getPresentation'](_0x2b0722)):null;}async[_0x1f91c8(0x121)](_0x2f5dcc,_0x19cd0d){const _0x33b000=_0x1f91c8;return await this['_snapshotService'][_0x33b000(0x130)](_0x2f5dcc,0x0,_0x19cd0d)?(await this[_0x33b000(0x143)][_0x33b000(0x139)](_0x2f5dcc),this[_0x33b000(0x13c)][_0x33b000(0x122)](_0x2f5dcc)):null;}[_0x1f91c8(0x137)](_0x79326,_0x25e879){const _0xff3b44=_0x1f91c8;return(0x0,n[_0xff3b44(0x16b)])(this[_0xff3b44(0x129)]['get'](e[_0xff3b44(0x119)])[_0xff3b44(0x13d)](_0x79326)[_0xff3b44(0x167)]((0x0,i[_0xff3b44(0x12e)])(_0x40b1a8=>_0x40b1a8[_0xff3b44(0x15b)]))['subscribe'](_0x3166c0=>_0x25e879(Array[_0xff3b44(0x155)](_0x3166c0['values']()))));}[_0x1f91c8(0x159)](_0xd42514){const _0x399162=_0x1f91c8;var _0x56d29b;let _0x398c0b=this[_0x399162(0x15a)](_0xd42514);if(!_0x398c0b)return e[_0x399162(0x117)][_0x399162(0x154)];let _0xfb0774=this['_collaborationController'][_0x399162(0x146)](_0x398c0b);return(_0x56d29b=_0xfb0774==null?void 0x0:_0xfb0774[_0x399162(0x134)]['status'])==null?e['CollaborationStatus'][_0x399162(0x154)]:_0x56d29b;}[_0x1f91c8(0x15c)](_0x58659f,_0x2d16cc={}){const _0x5e23e7=_0x1f91c8;var _0x4c5e77;let _0xb1e560=this[_0x5e23e7(0x15a)](_0x58659f);if(!_0xb1e560)return Promise[_0x5e23e7(0x126)](Error('[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.'));let _0x22104a=this[_0x5e23e7(0x143)]['getCollabEntity'](_0xb1e560);if(!_0x22104a)return Promise[_0x5e23e7(0x126)](Error(_0x5e23e7(0x149)+_0xb1e560+_0x5e23e7(0x15f)));let _0xba5918=_0x22104a[_0x5e23e7(0x134)]['status'];if(_0xba5918===e[_0x5e23e7(0x117)][_0x5e23e7(0x142)])return Promise[_0x5e23e7(0x14d)]();let _0x1c2b4c=u(_0xb1e560,_0xba5918);if(_0x1c2b4c)return Promise[_0x5e23e7(0x126)](_0x1c2b4c);let _0x7c36c0=(_0x4c5e77=_0x2d16cc[_0x5e23e7(0x11b)])==null?0x7530:_0x4c5e77;return new Promise((_0x3c0f79,_0x167bf9)=>{const _0x23ebdd=_0x5e23e7;let _0x18e9b2=!0x1,_0x1e8da5=null,_0x40062c=setTimeout(()=>{const _0x21056d=_0xd973;_0x18e9b2=!0x0,_0x1e8da5==null||_0x1e8da5[_0x21056d(0x128)](),_0x167bf9(Error(_0x21056d(0x11f)+_0xb1e560+_0x21056d(0x11e)+_0x7c36c0+_0x21056d(0x135)));},_0x7c36c0),_0x28e8c5=()=>{const _0x3c8094=_0xd973;_0x18e9b2=!0x0,clearTimeout(_0x40062c),_0x1e8da5==null||_0x1e8da5[_0x3c8094(0x128)]();};_0x1e8da5=_0x22104a[_0x23ebdd(0x13e)][_0x23ebdd(0x12d)](_0x3cbde8=>{const _0x60a24c=_0x23ebdd;if(_0x18e9b2)return;if(_0x3cbde8===e['CollaborationStatus'][_0x60a24c(0x142)]){_0x28e8c5(),_0x3c0f79();return;}let _0x2c86bd=u(_0xb1e560,_0x3cbde8);_0x2c86bd&&(_0x28e8c5(),_0x167bf9(_0x2c86bd));});});}[_0x1f91c8(0x15a)](_0x4f89f2){const _0x2d32d5=_0x1f91c8;var _0x2412b5;return _0x4f89f2||((_0x2412b5=this[_0x2d32d5(0x144)][_0x2d32d5(0x162)]())==null?void 0x0:_0x2412b5[_0x2d32d5(0x165)]());}};l=c([s(0x1,(0x0,n[_0x1f91c8(0x158)])(n[_0x1f91c8(0x132)])),s(0x2,n[_0x1f91c8(0x11d)]),s(0x3,(0x0,n[_0x1f91c8(0x158)])(r[_0x1f91c8(0x161)])),s(0x4,(0x0,n[_0x1f91c8(0x158)])(e['CollaborationController']))],l);function u(_0xc6430c,_0x324f7d){const _0xdfa0ca=_0x1f91c8;return _0x324f7d===e[_0xdfa0ca(0x117)][_0xdfa0ca(0x12f)]||_0x324f7d===e[_0xdfa0ca(0x117)][_0xdfa0ca(0x154)]?Error('[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22'+_0xc6430c+'\x22\x20while\x20collaboration\x20status\x20is\x20'+_0x324f7d+'.'):null;}function _0xd973(_0xc496f9,_0x613cd1){_0xc496f9=_0xc496f9-0x110;const _0x139762=_0x1397();let _0xd973bd=_0x139762[_0xc496f9];return _0xd973bd;}var d=class extends t[_0x1f91c8(0x153)]{['_initialize'](_0x86a87){const _0x3ccc17=_0x1f91c8;let _0x232c59=_0x86a87['get'](e['CollaborationController']);this[_0x3ccc17(0x120)](this[_0x3ccc17(0x14a)](this[_0x3ccc17(0x168)][_0x3ccc17(0x12b)],()=>{const _0x26cffe=_0x3ccc17;let _0x4ed051=new n[(_0x26cffe(0x118))](),_0x4148bf=_0x232c59[_0x26cffe(0x111)]['subscribe'](_0x248245=>{const _0x1e526c=_0x26cffe;let _0x15e1cb=_0x248245[_0x1e526c(0x13e)][_0x1e526c(0x12d)](_0x193000=>{const _0x5b9d2c=_0x1e526c;let _0xc883b2={'unitId':_0x248245[_0x5b9d2c(0x141)],'status':_0x193000};this[_0x5b9d2c(0x115)](this[_0x5b9d2c(0x168)]['CollaborationStatusChanged'],_0xc883b2);});_0x4ed051[_0x1e526c(0x140)]((0x0,n['toDisposable'])(_0x15e1cb));});return _0x4ed051[_0x26cffe(0x140)]((0x0,n[_0x26cffe(0x16b)])(_0x4148bf)),_0x4ed051;}));}[_0x1f91c8(0x145)](){const _0x51844e=_0x1f91c8;return this['_injector'][_0x51844e(0x133)](l,{'getWorkbook':_0x30a037=>this[_0x51844e(0x156)](_0x30a037),'getDocument':_0xd9d7b9=>this[_0x51844e(0x110)](_0xd9d7b9),'getPresentation':_0x452581=>this[_0x51844e(0x136)](_0x452581),'getBase':_0x145490=>this[_0x51844e(0x16a)](_0x145490),'getBoard':_0x2237df=>this[_0x51844e(0x122)](_0x2237df)});}[_0x1f91c8(0x151)](_0x15cb31,_0x11483e,_0x382aad){const _0x4b1a62=_0x1f91c8;return this[_0x4b1a62(0x129)][_0x4b1a62(0x164)](e[_0x4b1a62(0x14e)])['loadUnit'](_0x15cb31,_0x11483e,_0x382aad);}[_0x1f91c8(0x125)](_0xdad68,_0x3f0319,_0x44e770){const _0x18d55c=_0x1f91c8;return this['_injector'][_0x18d55c(0x164)](e[_0x18d55c(0x14e)])[_0x18d55c(0x14b)](_0xdad68,_0x3f0319,_0x44e770);}};t[_0x1f91c8(0x153)]['extend'](d),Object[_0x1f91c8(0x163)](exports,_0x1f91c8(0x12c),{'enumerable':!0x0,'get':function(){return l;}});
|
|
1
|
+
function _0xc692(_0x375ea6,_0xbf6fda){_0x375ea6=_0x375ea6-0x108;const _0x2eeca5=_0x2eec();let _0xc6925d=_0x2eeca5[_0x375ea6];return _0xc6925d;}const _0x1992c8=_0xc692;(function(_0x1ee022,_0x3510d7){const _0x3477eb=_0xc692,_0x26f9d4=_0x1ee022();while(!![]){try{const _0x4dfcea=-parseInt(_0x3477eb(0x11e))/0x1+-parseInt(_0x3477eb(0x115))/0x2+-parseInt(_0x3477eb(0x149))/0x3+-parseInt(_0x3477eb(0x108))/0x4+-parseInt(_0x3477eb(0x14d))/0x5+parseInt(_0x3477eb(0x155))/0x6+-parseInt(_0x3477eb(0x13e))/0x7*(-parseInt(_0x3477eb(0x13b))/0x8);if(_0x4dfcea===_0x3510d7)break;else _0x26f9d4['push'](_0x26f9d4['shift']());}catch(_0x128f8c){_0x26f9d4['push'](_0x26f9d4['shift']());}}}(_0x2eec,0x2f451),Object[_0x1992c8(0x118)](exports,Symbol['toStringTag'],{'value':_0x1992c8(0x151)}));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[_0x1992c8(0x145)](){const _0x1bc132=_0x1992c8;return e[_0x1bc132(0x145)];}};t['FEnum']['extend'](a);var o=class extends t[_0x1992c8(0x110)]{get[_0x1992c8(0x116)](){const _0x58d476=_0x1992c8;return _0x58d476(0x116);}};t[_0x1992c8(0x110)][_0x1992c8(0x109)](o);function s(_0x51c04b,_0x49284e){return function(_0x2d640,_0x43fb7a){_0x49284e(_0x2d640,_0x43fb7a,_0x51c04b);};}function c(_0xcc2396,_0x352784,_0x52a85a,_0x2c35fb){const _0x286e88=_0x1992c8;var _0x234b08=arguments['length'],_0x5394a3=_0x234b08<0x3?_0x352784:_0x2c35fb===null?_0x2c35fb=Object[_0x286e88(0x131)](_0x352784,_0x52a85a):_0x2c35fb,_0x5c329b;if(typeof Reflect=='object'&&typeof Reflect[_0x286e88(0x124)]==_0x286e88(0x152))_0x5394a3=Reflect[_0x286e88(0x124)](_0xcc2396,_0x352784,_0x52a85a,_0x2c35fb);else{for(var _0x4eeb28=_0xcc2396[_0x286e88(0x140)]-0x1;_0x4eeb28>=0x0;_0x4eeb28--)(_0x5c329b=_0xcc2396[_0x4eeb28])&&(_0x5394a3=(_0x234b08<0x3?_0x5c329b(_0x5394a3):_0x234b08>0x3?_0x5c329b(_0x352784,_0x52a85a,_0x5394a3):_0x5c329b(_0x352784,_0x52a85a))||_0x5394a3);}return _0x234b08>0x3&&_0x5394a3&&Object[_0x286e88(0x118)](_0x352784,_0x52a85a,_0x5394a3),_0x5394a3;}let l=class extends t[_0x1992c8(0x128)]{constructor(_0x2a6f31,_0x5734a4,_0x29abb8,_0x429070,_0x2c4e0a){const _0xd29750=_0x1992c8;super(),this['_handler']=_0x2a6f31,this[_0xd29750(0x156)]=_0x5734a4,this['_univerInstanceService']=_0x29abb8,this[_0xd29750(0x159)]=_0x429070,this[_0xd29750(0x10a)]=_0x2c4e0a;}async[_0x1992c8(0x133)](_0x54632c,_0x5e6c88){const _0x10ce5f=_0x1992c8;return await this[_0x10ce5f(0x159)]['loadSheet'](_0x54632c,0x0,_0x5e6c88)?(await this[_0x10ce5f(0x10a)][_0x10ce5f(0x129)](_0x54632c),this['_handler'][_0x10ce5f(0x12c)](_0x54632c)):null;}async[_0x1992c8(0x11f)](_0x2e0fd4,_0x5dc9dd){const _0x1ee66d=_0x1992c8;return await this[_0x1ee66d(0x159)][_0x1ee66d(0x13c)](_0x2e0fd4,0x0,_0x5dc9dd)?(await this[_0x1ee66d(0x10a)][_0x1ee66d(0x129)](_0x2e0fd4),this[_0x1ee66d(0x119)][_0x1ee66d(0x14c)](_0x2e0fd4)):null;}async['loadBaseAsync'](_0x16590e,_0x5a98a6){const _0x20bc15=_0x1992c8;return await this[_0x20bc15(0x159)][_0x20bc15(0x123)](_0x16590e,0x0,_0x5a98a6)?(await this[_0x20bc15(0x10a)]['readyForCollab'](_0x16590e),this[_0x20bc15(0x119)][_0x20bc15(0x112)](_0x16590e)):null;}async[_0x1992c8(0x146)](_0x1c9cc3,_0x1b7650){const _0x41fad0=_0x1992c8;return await this[_0x41fad0(0x159)][_0x41fad0(0x137)](_0x1c9cc3,0x0,_0x1b7650)?(await this[_0x41fad0(0x10a)]['readyForCollab'](_0x1c9cc3),this[_0x41fad0(0x119)][_0x41fad0(0x12b)](_0x1c9cc3)):null;}async[_0x1992c8(0x135)](_0xf77c76,_0x223c04){const _0x2ca265=_0x1992c8;return await this[_0x2ca265(0x159)][_0x2ca265(0x10c)](_0xf77c76,0x0,_0x223c04)?(await this[_0x2ca265(0x10a)][_0x2ca265(0x129)](_0xf77c76),this[_0x2ca265(0x119)][_0x2ca265(0x158)](_0xf77c76)):null;}[_0x1992c8(0x144)](_0x2805eb,_0x3ff58c){const _0x32fd74=_0x1992c8;return(0x0,n[_0x32fd74(0x114)])(this[_0x32fd74(0x156)][_0x32fd74(0x143)](e['MemberService'])['waitForRoom$'](_0x2805eb)['pipe']((0x0,i[_0x32fd74(0x117)])(_0x578b9c=>_0x578b9c[_0x32fd74(0x111)]))['subscribe'](_0x2231ab=>_0x3ff58c(Array[_0x32fd74(0x121)](_0x2231ab[_0x32fd74(0x130)]()))));}[_0x1992c8(0x150)](_0x4c4bdf){const _0x344b69=_0x1992c8;let _0x36af15=this[_0x344b69(0x120)](_0x4c4bdf);if(!_0x36af15)return e[_0x344b69(0x145)][_0x344b69(0x13d)];let _0x16679d=this[_0x344b69(0x10a)][_0x344b69(0x148)](_0x36af15);return(_0x16679d==null?void 0x0:_0x16679d[_0x344b69(0x10d)][_0x344b69(0x154)])??e[_0x344b69(0x145)]['NOT_COLLAB'];}['flush'](_0x3f15d1,_0x5ba783={}){const _0x50aa1a=_0x1992c8;let _0x280be6=this[_0x50aa1a(0x120)](_0x3f15d1);if(!_0x280be6)return Promise[_0x50aa1a(0x11c)](Error('[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.'));let _0x52c8f7=this['_collaborationController'][_0x50aa1a(0x148)](_0x280be6);if(!_0x52c8f7)return Promise[_0x50aa1a(0x11c)](Error(_0x50aa1a(0x125)+_0x280be6+_0x50aa1a(0x14a)));let _0x1d5372=_0x52c8f7[_0x50aa1a(0x10d)]['status'];if(_0x1d5372===e[_0x50aa1a(0x145)][_0x50aa1a(0x11d)])return Promise['resolve']();let _0x266c45=u(_0x280be6,_0x1d5372);if(_0x266c45)return Promise['reject'](_0x266c45);let _0x2b0ade=_0x5ba783[_0x50aa1a(0x15a)]??0x7530;return new Promise((_0x5bfdc2,_0x316220)=>{const _0x2c1386=_0x50aa1a;let _0x44dc8b=!0x1,_0x4a33d5=null,_0x4f6fe0=setTimeout(()=>{const _0x5dc1ea=_0xc692;_0x44dc8b=!0x0,_0x4a33d5==null||_0x4a33d5[_0x5dc1ea(0x139)](),_0x316220(Error(_0x5dc1ea(0x12d)+_0x280be6+_0x5dc1ea(0x122)+_0x2b0ade+_0x5dc1ea(0x113)));},_0x2b0ade),_0x37fa83=()=>{_0x44dc8b=!0x0,clearTimeout(_0x4f6fe0),_0x4a33d5==null||_0x4a33d5['unsubscribe']();};_0x4a33d5=_0x52c8f7['status$'][_0x2c1386(0x157)](_0x5d33f4=>{const _0x2b424f=_0x2c1386;if(_0x44dc8b)return;if(_0x5d33f4===e[_0x2b424f(0x145)]['SYNCED']){_0x37fa83(),_0x5bfdc2();return;}let _0x18f4c1=u(_0x280be6,_0x5d33f4);_0x18f4c1&&(_0x37fa83(),_0x316220(_0x18f4c1));});});}[_0x1992c8(0x120)](_0x30eba6){const _0x5aa50f=_0x1992c8;var _0x54cb5d;return _0x30eba6||((_0x54cb5d=this[_0x5aa50f(0x147)][_0x5aa50f(0x142)]())==null?void 0x0:_0x54cb5d[_0x5aa50f(0x12f)]());}};l=c([s(0x1,(0x0,n[_0x1992c8(0x127)])(n[_0x1992c8(0x132)])),s(0x2,n[_0x1992c8(0x126)]),s(0x3,(0x0,n[_0x1992c8(0x127)])(r['SnapshotService'])),s(0x4,(0x0,n[_0x1992c8(0x127)])(e[_0x1992c8(0x134)]))],l);function _0x2eec(){const _0x2f5f1c=['SYNCED','150405uBniHm','loadDocAsync','_resolveUnitId','from','\x22\x20after\x20','loadBase','decorate','[FCollaboration]:\x20Unit\x20\x22','IUniverInstanceService','Inject','FBase','readyForCollab','loadServerUnit','getPresentation','getWorkbook','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','FUniver','getUnitId','values','getOwnPropertyDescriptor','Injector','loadSheetAsync','CollaborationController','loadBoardAsync','createInstance','loadSlide','\x22\x20while\x20collaboration\x20status\x20is\x20','unsubscribe','loadUnitOfRevision','559448cBFyBz','loadDoc','NOT_COLLAB','98CwLaAO','fireEvent','length','DataLoaderService','getFocusedUnit','get','subscribeCollaborators','CollaborationStatus','loadSlideAsync','_univerInstanceService','getCollabEntity','886359PGFhLS','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','loadUnit','getDocument','376445cFMqcI','DisposableCollection','registerEventHandler','getCollaborationStatus','Module','function','Event','status','1322340brBYRN','_injector','subscribe','getBoard','_snapshotService','timeout','loadServerUnitOfRevision','FCollaboration','1150320vHmoEw','extend','_collaborationController','unitID','loadBoard','state','getCollaboration','_initialize','FEventName','members$','getBase','ms.','toDisposable','394160LRjCjN','CollaborationStatusChanged','switchMap','defineProperty','_handler','add','disposeWithMe','reject'];_0x2eec=function(){return _0x2f5f1c;};return _0x2eec();}function u(_0x996f4,_0x388630){const _0x560a49=_0x1992c8;return _0x388630===e[_0x560a49(0x145)]['CONFLICT']||_0x388630===e[_0x560a49(0x145)]['NOT_COLLAB']?Error('[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22'+_0x996f4+_0x560a49(0x138)+_0x388630+'.'):null;}var d=class extends t[_0x1992c8(0x12e)]{[_0x1992c8(0x10f)](_0x23b9dd){const _0x79f2f=_0x1992c8;let _0x34e35c=_0x23b9dd[_0x79f2f(0x143)](e[_0x79f2f(0x134)]);this[_0x79f2f(0x11b)](this[_0x79f2f(0x14f)](this['Event'][_0x79f2f(0x116)],()=>{const _0x1533ae=_0x79f2f;let _0x31bdd0=new n[(_0x1533ae(0x14e))](),_0x13c663=_0x34e35c['entityInit$'][_0x1533ae(0x157)](_0x2bd1b2=>{const _0x1e904c=_0x1533ae;let _0x1aa191=_0x2bd1b2['status$'][_0x1e904c(0x157)](_0x2210f2=>{const _0x1de646=_0x1e904c;let _0x227f90={'unitId':_0x2bd1b2[_0x1de646(0x10b)],'status':_0x2210f2};this[_0x1de646(0x13f)](this[_0x1de646(0x153)][_0x1de646(0x116)],_0x227f90);});_0x31bdd0[_0x1e904c(0x11a)]((0x0,n['toDisposable'])(_0x1aa191));});return _0x31bdd0[_0x1533ae(0x11a)]((0x0,n[_0x1533ae(0x114)])(_0x13c663)),_0x31bdd0;}));}[_0x1992c8(0x10e)](){const _0xf7491c=_0x1992c8;return this['_injector'][_0xf7491c(0x136)](l,{'getWorkbook':_0x39376a=>this[_0xf7491c(0x12c)](_0x39376a),'getDocument':_0x4b7583=>this[_0xf7491c(0x14c)](_0x4b7583),'getPresentation':_0x264128=>this[_0xf7491c(0x12b)](_0x264128),'getBase':_0x5cda47=>this['getBase'](_0x5cda47),'getBoard':_0x444141=>this[_0xf7491c(0x158)](_0x444141)});}[_0x1992c8(0x12a)](_0x18f245,_0x28c9b8,_0x594581){const _0x379091=_0x1992c8;return this['_injector']['get'](e['DataLoaderService'])[_0x379091(0x14b)](_0x18f245,_0x28c9b8,_0x594581);}[_0x1992c8(0x15b)](_0x41cbe1,_0x11c111,_0x51e320){const _0x2df705=_0x1992c8;return this[_0x2df705(0x156)][_0x2df705(0x143)](e[_0x2df705(0x141)])[_0x2df705(0x13a)](_0x41cbe1,_0x11c111,_0x51e320);}};t[_0x1992c8(0x12e)][_0x1992c8(0x109)](d),Object[_0x1992c8(0x118)](exports,_0x1992c8(0x15c),{'enumerable':!0x0,'get':function(){return l;}});
|