@univerjs-pro/collaboration-client 1.0.0-alpha.8 → 1.0.0-beta.1
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/types/facade/f-collaboration.d.ts +14 -0
- package/lib/types/services/undoredo/collaborative-undoredo.service.d.ts +2 -2
- 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
|
+
const _0x32d820=_0x345d;(function(_0xd209c8,_0x4ee0f5){const _0xdb385=_0x345d,_0x5b9591=_0xd209c8();while(!![]){try{const _0x1985f0=-parseInt(_0xdb385(0x169))/0x1+parseInt(_0xdb385(0x17a))/0x2+-parseInt(_0xdb385(0x157))/0x3+parseInt(_0xdb385(0x1a6))/0x4*(parseInt(_0xdb385(0x1a1))/0x5)+-parseInt(_0xdb385(0x15f))/0x6*(-parseInt(_0xdb385(0x16f))/0x7)+-parseInt(_0xdb385(0x18b))/0x8*(parseInt(_0xdb385(0x18e))/0x9)+parseInt(_0xdb385(0x1a3))/0xa*(-parseInt(_0xdb385(0x1ab))/0xb);if(_0x1985f0===_0x4ee0f5)break;else _0x5b9591['push'](_0x5b9591['shift']());}catch(_0x4e6216){_0x5b9591['push'](_0x5b9591['shift']());}}}(_0x5cc9,0xd36aa),Object[_0x32d820(0x173)](exports,Symbol[_0x32d820(0x191)],{'value':_0x32d820(0x1ac)}));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[_0x32d820(0x194)]{get['CollaborationStatus'](){return e['CollaborationStatus'];}};t[_0x32d820(0x194)][_0x32d820(0x168)](a);var o=class extends t[_0x32d820(0x163)]{get[_0x32d820(0x187)](){return'CollaborationStatusChanged';}};t[_0x32d820(0x163)]['extend'](o);function _0x5cc9(){const _0x9e1598=['get','loadSheetAsync','210NGVwFI','FUniver','getFocusedUnit','loadPdfAsync','FEventName','loadPdf','members$','ms.','getPresentation','extend','847659OZBBjv','status$','waitForRoom$','FBase','from','SYNCED','143178WhWxhN','getCollaborationStatus','subscribe','_snapshotService','defineProperty','registerEventHandler','Inject','pipe','getPdf','loadUnit','getWorkbook','2876918NOUKWb','status','_resolveUnitId','getCollaboration','resolve','DataLoaderService','loadUnitOfRevision','Injector','CollaborationStatus','switchMap','getDocument','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','_univerInstanceService','CollaborationStatusChanged','length','DisposableCollection','readyForCollab','8XggjoU','values','loadBoardAsync','5267385KwuLkO','\x22\x20after\x20','getBoard','toStringTag','createInstance','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','FEnum','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','subscribeCollaborators','getOwnPropertyDescriptor','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','[FCollaboration]:\x20Unit\x20\x22','loadDocAsync','_initialize','state','_collaborationController','getCollabEntity','loadDoc','NOT_COLLAB','5zhArLz','unsubscribe','60340bsqpfw','fireEvent','disposeWithMe','1762248emRIHN','CollaborationController','loadServerUnit','_handler','_injector','187thKChA','Module','MemberService','toDisposable','CONFLICT','loadBaseAsync','getBase','loadSlide','Event','580341axHqiK','loadServerUnitOfRevision','FCollaboration','reject','loadSheet','IUniverInstanceService'];_0x5cc9=function(){return _0x9e1598;};return _0x5cc9();}function s(_0x4cb9d9,_0x533f94){return function(_0x158a67,_0x3b152d){_0x533f94(_0x158a67,_0x3b152d,_0x4cb9d9);};}function _0x345d(_0x198ef5,_0x412919){_0x198ef5=_0x198ef5-0x152;const _0x5cc96d=_0x5cc9();let _0x345d4b=_0x5cc96d[_0x198ef5];return _0x345d4b;}function c(_0x4cbe7a,_0xe40e91,_0xcc6c2e,_0x36f88b){const _0x32fc26=_0x32d820;var _0x178aff=arguments['length'],_0x44e2e=_0x178aff<0x3?_0xe40e91:_0x36f88b===null?_0x36f88b=Object[_0x32fc26(0x197)](_0xe40e91,_0xcc6c2e):_0x36f88b,_0x3cca0b;if(typeof Reflect=='object'&&typeof Reflect['decorate']=='function')_0x44e2e=Reflect['decorate'](_0x4cbe7a,_0xe40e91,_0xcc6c2e,_0x36f88b);else{for(var _0x4c46a0=_0x4cbe7a[_0x32fc26(0x188)]-0x1;_0x4c46a0>=0x0;_0x4c46a0--)(_0x3cca0b=_0x4cbe7a[_0x4c46a0])&&(_0x44e2e=(_0x178aff<0x3?_0x3cca0b(_0x44e2e):_0x178aff>0x3?_0x3cca0b(_0xe40e91,_0xcc6c2e,_0x44e2e):_0x3cca0b(_0xe40e91,_0xcc6c2e))||_0x44e2e);}return _0x178aff>0x3&&_0x44e2e&&Object['defineProperty'](_0xe40e91,_0xcc6c2e,_0x44e2e),_0x44e2e;}let l=class extends t[_0x32d820(0x16c)]{constructor(_0x49f2cb,_0x487bac,_0x587e7a,_0x4f41f0,_0x491adb){const _0x4d0077=_0x32d820;super(),this[_0x4d0077(0x1a9)]=_0x49f2cb,this[_0x4d0077(0x1aa)]=_0x487bac,this[_0x4d0077(0x186)]=_0x587e7a,this['_snapshotService']=_0x4f41f0,this[_0x4d0077(0x19d)]=_0x491adb;}async[_0x32d820(0x15e)](_0xf2188,_0xd5ac48){const _0x24b1a2=_0x32d820;return await this['_snapshotService'][_0x24b1a2(0x15b)](_0xf2188,0x0,_0xd5ac48)?(await this['_collaborationController']['readyForCollab'](_0xf2188),this[_0x24b1a2(0x1a9)][_0x24b1a2(0x179)](_0xf2188)):null;}async[_0x32d820(0x19a)](_0x5c8f90,_0x14c6c7){const _0x54fb3b=_0x32d820;return await this[_0x54fb3b(0x172)][_0x54fb3b(0x19f)](_0x5c8f90,0x0,_0x14c6c7)?(await this[_0x54fb3b(0x19d)][_0x54fb3b(0x18a)](_0x5c8f90),this['_handler'][_0x54fb3b(0x184)](_0x5c8f90)):null;}async[_0x32d820(0x153)](_0x3211e7,_0x5ea694){const _0x285832=_0x32d820;return await this['_snapshotService']['loadBase'](_0x3211e7,0x0,_0x5ea694)?(await this[_0x285832(0x19d)]['readyForCollab'](_0x3211e7),this['_handler']['getBase'](_0x3211e7)):null;}async['loadSlideAsync'](_0x1f918e,_0xc785a){const _0x26cbf2=_0x32d820;return await this[_0x26cbf2(0x172)][_0x26cbf2(0x155)](_0x1f918e,0x0,_0xc785a)?(await this[_0x26cbf2(0x19d)][_0x26cbf2(0x18a)](_0x1f918e),this['_handler'][_0x26cbf2(0x167)](_0x1f918e)):null;}async[_0x32d820(0x18d)](_0x594fd3,_0x57a1b6){const _0x1aa837=_0x32d820;return await this[_0x1aa837(0x172)]['loadBoard'](_0x594fd3,0x0,_0x57a1b6)?(await this['_collaborationController']['readyForCollab'](_0x594fd3),this[_0x1aa837(0x1a9)][_0x1aa837(0x190)](_0x594fd3)):null;}async[_0x32d820(0x162)](_0x1865db,_0x2f4866){const _0x871c97=_0x32d820;return await this[_0x871c97(0x172)][_0x871c97(0x164)](_0x1865db,0x0,_0x2f4866)?(await this[_0x871c97(0x19d)][_0x871c97(0x18a)](_0x1865db),this['_handler'][_0x871c97(0x177)](_0x1865db)):null;}[_0x32d820(0x196)](_0x3f62b2,_0x7cf20f){const _0x16ac7d=_0x32d820;return(0x0,n['toDisposable'])(this[_0x16ac7d(0x1aa)][_0x16ac7d(0x15d)](e[_0x16ac7d(0x1ad)])[_0x16ac7d(0x16b)](_0x3f62b2)[_0x16ac7d(0x176)]((0x0,i[_0x16ac7d(0x183)])(_0x3da89f=>_0x3da89f[_0x16ac7d(0x165)]))[_0x16ac7d(0x171)](_0xee582d=>_0x7cf20f(Array[_0x16ac7d(0x16d)](_0xee582d[_0x16ac7d(0x18c)]()))));}[_0x32d820(0x170)](_0x4d5150){const _0x546da9=_0x32d820;let _0x3c5033=this[_0x546da9(0x17c)](_0x4d5150);if(!_0x3c5033)return e['CollaborationStatus'][_0x546da9(0x1a0)];let _0x670d9c=this[_0x546da9(0x19d)][_0x546da9(0x19e)](_0x3c5033);return(_0x670d9c==null?void 0x0:_0x670d9c['state'][_0x546da9(0x17b)])??e[_0x546da9(0x182)][_0x546da9(0x1a0)];}['flush'](_0x3cdeec,_0x199886={}){const _0x402228=_0x32d820;let _0x5eb2ce=this[_0x402228(0x17c)](_0x3cdeec);if(!_0x5eb2ce)return Promise[_0x402228(0x15a)](Error(_0x402228(0x195)));let _0x48562a=this[_0x402228(0x19d)]['getCollabEntity'](_0x5eb2ce);if(!_0x48562a)return Promise[_0x402228(0x15a)](Error(_0x402228(0x199)+_0x5eb2ce+_0x402228(0x198)));let _0x38c9b4=_0x48562a[_0x402228(0x19c)]['status'];if(_0x38c9b4===e[_0x402228(0x182)][_0x402228(0x16e)])return Promise[_0x402228(0x17e)]();let _0x521c7f=u(_0x5eb2ce,_0x38c9b4);if(_0x521c7f)return Promise[_0x402228(0x15a)](_0x521c7f);let _0x424d52=_0x199886['timeout']??0x7530;return new Promise((_0x39b090,_0x1373b8)=>{const _0x3bb3ad=_0x402228;let _0x1a6d0b=!0x1,_0x56a561=null,_0x21795f=setTimeout(()=>{const _0x2f6365=_0x345d;_0x1a6d0b=!0x0,_0x56a561==null||_0x56a561[_0x2f6365(0x1a2)](),_0x1373b8(Error(_0x2f6365(0x185)+_0x5eb2ce+_0x2f6365(0x18f)+_0x424d52+_0x2f6365(0x166)));},_0x424d52),_0x395bc9=()=>{_0x1a6d0b=!0x0,clearTimeout(_0x21795f),_0x56a561==null||_0x56a561['unsubscribe']();};_0x56a561=_0x48562a['status$'][_0x3bb3ad(0x171)](_0x5bcc90=>{const _0xc8787d=_0x3bb3ad;if(_0x1a6d0b)return;if(_0x5bcc90===e['CollaborationStatus'][_0xc8787d(0x16e)]){_0x395bc9(),_0x39b090();return;}let _0xde5303=u(_0x5eb2ce,_0x5bcc90);_0xde5303&&(_0x395bc9(),_0x1373b8(_0xde5303));});});}[_0x32d820(0x17c)](_0xb0666a){const _0xa51663=_0x32d820;var _0x48b0a7;return _0xb0666a||((_0x48b0a7=this[_0xa51663(0x186)][_0xa51663(0x161)]())==null?void 0x0:_0x48b0a7['getUnitId']());}};l=c([s(0x1,(0x0,n[_0x32d820(0x175)])(n[_0x32d820(0x181)])),s(0x2,n[_0x32d820(0x15c)]),s(0x3,(0x0,n[_0x32d820(0x175)])(r['SnapshotService'])),s(0x4,(0x0,n[_0x32d820(0x175)])(e[_0x32d820(0x1a7)]))],l);function u(_0x3886b2,_0x339607){const _0x82aace=_0x32d820;return _0x339607===e[_0x82aace(0x182)][_0x82aace(0x152)]||_0x339607===e[_0x82aace(0x182)][_0x82aace(0x1a0)]?Error(_0x82aace(0x193)+_0x3886b2+'\x22\x20while\x20collaboration\x20status\x20is\x20'+_0x339607+'.'):null;}var d=class extends t['FUniver']{[_0x32d820(0x19b)](_0x5492e8){const _0x4eb598=_0x32d820;let _0x46c3c1=_0x5492e8[_0x4eb598(0x15d)](e[_0x4eb598(0x1a7)]);this[_0x4eb598(0x1a5)](this[_0x4eb598(0x174)](this[_0x4eb598(0x156)][_0x4eb598(0x187)],()=>{const _0x172367=_0x4eb598;let _0x1a0586=new n[(_0x172367(0x189))](),_0x17e11f=_0x46c3c1['entityInit$'][_0x172367(0x171)](_0x3559aa=>{const _0x40ed5e=_0x172367;let _0x43136a=_0x3559aa[_0x40ed5e(0x16a)]['subscribe'](_0x3d1f9b=>{const _0x23489e=_0x40ed5e;let _0x32ae1e={'unitId':_0x3559aa['unitID'],'status':_0x3d1f9b};this[_0x23489e(0x1a4)](this['Event']['CollaborationStatusChanged'],_0x32ae1e);});_0x1a0586['add']((0x0,n[_0x40ed5e(0x1ae)])(_0x43136a));});return _0x1a0586['add']((0x0,n[_0x172367(0x1ae)])(_0x17e11f)),_0x1a0586;}));}[_0x32d820(0x17d)](){const _0x27054d=_0x32d820;return this['_injector'][_0x27054d(0x192)](l,{'getWorkbook':_0x5eb36a=>this[_0x27054d(0x179)](_0x5eb36a),'getDocument':_0x87e267=>this['getDocument'](_0x87e267),'getPresentation':_0x121ab3=>this[_0x27054d(0x167)](_0x121ab3),'getBase':_0x226dfe=>this[_0x27054d(0x154)](_0x226dfe),'getBoard':_0xf14028=>this[_0x27054d(0x190)](_0xf14028),'getPdf':_0x198680=>this[_0x27054d(0x177)](_0x198680)});}[_0x32d820(0x1a8)](_0x3575cd,_0x371985,_0x18b819){const _0x3a8239=_0x32d820;return this[_0x3a8239(0x1aa)]['get'](e[_0x3a8239(0x17f)])[_0x3a8239(0x178)](_0x3575cd,_0x371985,_0x18b819);}[_0x32d820(0x158)](_0x5da083,_0x4dfd3d,_0xe15e96){const _0x45a076=_0x32d820;return this[_0x45a076(0x1aa)]['get'](e[_0x45a076(0x17f)])[_0x45a076(0x180)](_0x5da083,_0x4dfd3d,_0xe15e96);}};t[_0x32d820(0x160)][_0x32d820(0x168)](d),Object[_0x32d820(0x173)](exports,_0x32d820(0x159),{'enumerable':!0x0,'get':function(){return l;}});
|