@univerjs-pro/collaboration-client 1.2.0 → 1.3.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/types/controllers/collaboration/changeset-submitter.d.ts +2 -2
- package/lib/types/controllers/collaboration/collaboration-entity.d.ts +4 -4
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +24 -22
- package/lib/types/facade/f-event.d.ts +3 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +1 -0
- package/lib/types/services/collaboration-ui-event/collaboration-ui-event.d.ts +2 -0
- 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 _0x833588=_0x4575;function _0x4575(_0x10c83,_0x4d088c){_0x10c83=_0x10c83-0x111;const _0x1b12a5=_0x1b12();let _0x4575e1=_0x1b12a5[_0x10c83];return _0x4575e1;}(function(_0x4dd8f4,_0x4a83b3){const _0x2d2a09=_0x4575,_0x507990=_0x4dd8f4();while(!![]){try{const _0x4cf9d2=-parseInt(_0x2d2a09(0x166))/0x1+parseInt(_0x2d2a09(0x115))/0x2+-parseInt(_0x2d2a09(0x13a))/0x3*(parseInt(_0x2d2a09(0x173))/0x4)+parseInt(_0x2d2a09(0x178))/0x5*(-parseInt(_0x2d2a09(0x15a))/0x6)+-parseInt(_0x2d2a09(0x17e))/0x7*(-parseInt(_0x2d2a09(0x113))/0x8)+parseInt(_0x2d2a09(0x13d))/0x9*(parseInt(_0x2d2a09(0x138))/0xa)+parseInt(_0x2d2a09(0x179))/0xb;if(_0x4cf9d2===_0x4a83b3)break;else _0x507990['push'](_0x507990['shift']());}catch(_0x3bb090){_0x507990['push'](_0x507990['shift']());}}}(_0x1b12,0x49742),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x833588(0x17a)}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core/facade'),n=require('@univerjs/core'),r=require('rxjs');var i=class extends t['FEnum']{get['CollaborationStatus'](){const _0x4bfc83=_0x833588;return e[_0x4bfc83(0x145)];}};t['FEnum']['extend'](i);var a=class extends t['FEventName']{get[_0x833588(0x17d)](){const _0x148eef=_0x833588;return _0x148eef(0x17d);}get[_0x833588(0x12c)](){const _0x3bea3d=_0x833588;return _0x3bea3d(0x12c);}get[_0x833588(0x17c)](){const _0x51e52e=_0x833588;return _0x51e52e(0x17c);}};t[_0x833588(0x15d)][_0x833588(0x137)](a);function o(_0x5cb02c,_0x47b3dc){return function(_0x24f1aa,_0x5a8043){_0x47b3dc(_0x24f1aa,_0x5a8043,_0x5cb02c);};}function s(_0x5b1c90,_0x45876c,_0x3bbc17,_0x2e10bd){const _0x5b71ae=_0x833588;var _0x109623=arguments[_0x5b71ae(0x156)],_0xd110ff=_0x109623<0x3?_0x45876c:_0x2e10bd===null?_0x2e10bd=Object[_0x5b71ae(0x150)](_0x45876c,_0x3bbc17):_0x2e10bd,_0x48524d;if(typeof Reflect==_0x5b71ae(0x175)&&typeof Reflect['decorate']==_0x5b71ae(0x11e))_0xd110ff=Reflect[_0x5b71ae(0x123)](_0x5b1c90,_0x45876c,_0x3bbc17,_0x2e10bd);else{for(var _0x1ae740=_0x5b1c90['length']-0x1;_0x1ae740>=0x0;_0x1ae740--)(_0x48524d=_0x5b1c90[_0x1ae740])&&(_0xd110ff=(_0x109623<0x3?_0x48524d(_0xd110ff):_0x109623>0x3?_0x48524d(_0x45876c,_0x3bbc17,_0xd110ff):_0x48524d(_0x45876c,_0x3bbc17))||_0xd110ff);}return _0x109623>0x3&&_0xd110ff&&Object['defineProperty'](_0x45876c,_0x3bbc17,_0xd110ff),_0xd110ff;}let c=class extends t['FBase']{constructor(_0xde9355,_0x542892,_0x5d361f,_0x281f55,_0x434c4b){const _0x57a8b2=_0x833588;super(),this[_0x57a8b2(0x132)]=_0xde9355,this[_0x57a8b2(0x117)]=_0x542892,this[_0x57a8b2(0x13e)]=_0x5d361f,this[_0x57a8b2(0x114)]=_0x281f55,this[_0x57a8b2(0x14c)]=_0x434c4b;}async[_0x833588(0x12b)](_0x4084bf,_0x224529){const _0x4cc8cd=_0x833588;return await this['_dataLoaderService'][_0x4cc8cd(0x135)](_0x4084bf,n[_0x4cc8cd(0x130)][_0x4cc8cd(0x118)],void 0x0,_0x224529)?(await this[_0x4cc8cd(0x14c)][_0x4cc8cd(0x119)](_0x4084bf),this[_0x4cc8cd(0x132)][_0x4cc8cd(0x16f)](_0x4084bf)):null;}async[_0x833588(0x128)](_0x1772a3,_0x9011dd){const _0x272b19=_0x833588;return await this['_dataLoaderService'][_0x272b19(0x135)](_0x1772a3,n[_0x272b19(0x130)][_0x272b19(0x14d)],void 0x0,_0x9011dd)?(await this[_0x272b19(0x14c)][_0x272b19(0x119)](_0x1772a3),this[_0x272b19(0x132)][_0x272b19(0x111)](_0x1772a3)):null;}async[_0x833588(0x155)](_0x2839f5,_0x5a26fc){const _0x11a707=_0x833588;return await this['_dataLoaderService'][_0x11a707(0x135)](_0x2839f5,n[_0x11a707(0x130)]['UNIVER_BASE'],void 0x0,_0x5a26fc)?(await this[_0x11a707(0x14c)]['readyForCollab'](_0x2839f5),this[_0x11a707(0x132)][_0x11a707(0x116)](_0x2839f5)):null;}async['loadSlideAsync'](_0x366b48,_0x5883c8){const _0x3971fa=_0x833588;return await this[_0x3971fa(0x114)][_0x3971fa(0x135)](_0x366b48,n[_0x3971fa(0x130)][_0x3971fa(0x122)],void 0x0,_0x5883c8)?(await this['_collaborationController'][_0x3971fa(0x119)](_0x366b48),this[_0x3971fa(0x132)][_0x3971fa(0x160)](_0x366b48)):null;}async[_0x833588(0x141)](_0x518548,_0x3741c6){const _0x4e0856=_0x833588;return await this[_0x4e0856(0x114)][_0x4e0856(0x135)](_0x518548,n['UniverInstanceType'][_0x4e0856(0x148)],void 0x0,_0x3741c6)?(await this['_collaborationController']['readyForCollab'](_0x518548),this['_handler'][_0x4e0856(0x171)](_0x518548)):null;}async[_0x833588(0x149)](_0xd482d,_0x262007){const _0x35925c=_0x833588;return await this[_0x35925c(0x114)][_0x35925c(0x135)](_0xd482d,n[_0x35925c(0x130)][_0x35925c(0x169)],void 0x0,_0x262007)?(await this[_0x35925c(0x14c)][_0x35925c(0x119)](_0xd482d),this[_0x35925c(0x132)][_0x35925c(0x13c)](_0xd482d)):null;}[_0x833588(0x159)](_0x104557,_0xcc29d6){const _0x59d040=_0x833588;let _0x3b21cb=this[_0x59d040(0x117)]['get'](e[_0x59d040(0x146)])[_0x59d040(0x124)](_0x104557)[_0x59d040(0x142)]((0x0,r[_0x59d040(0x12e)])(_0x1bd9cb=>_0x1bd9cb[_0x59d040(0x11a)]))[_0x59d040(0x129)](_0x56be0c=>_0xcc29d6(Array[_0x59d040(0x17f)](_0x56be0c[_0x59d040(0x121)]())));return(0x0,n['toDisposable'])(_0x3b21cb);}[_0x833588(0x176)](_0x32419e){const _0x4f0a4a=_0x833588;let _0x59c354=this[_0x4f0a4a(0x16a)](_0x32419e);if(!_0x59c354)return e[_0x4f0a4a(0x145)][_0x4f0a4a(0x17b)];let _0x78af48=this[_0x4f0a4a(0x14c)]['getCollabEntity'](_0x59c354);return(_0x78af48==null?void 0x0:_0x78af48[_0x4f0a4a(0x139)][_0x4f0a4a(0x14e)])??e[_0x4f0a4a(0x145)][_0x4f0a4a(0x17b)];}['hasWritePending'](_0x5d87bc){const _0x35d25b=_0x833588;let _0x3e1973=this[_0x35d25b(0x16a)](_0x5d87bc);return _0x3e1973?this['_collaborationController'][_0x35d25b(0x172)](_0x3e1973):!0x1;}[_0x833588(0x143)](_0x3b086d,_0xde1fe6={}){const _0x11a094=_0x833588;let _0x193866=this[_0x11a094(0x16a)](_0x3b086d);if(!_0x193866)return Promise['reject'](Error(_0x11a094(0x14b)));let _0x20a98f=this[_0x11a094(0x14c)][_0x11a094(0x120)](_0x193866);if(!_0x20a98f)return Promise[_0x11a094(0x13b)](Error('[FCollaboration]:\x20Unit\x20\x22'+_0x193866+'\x22\x20is\x20not\x20in\x20collaboration\x20mode.'));let _0x2f61f2=_0x20a98f[_0x11a094(0x139)][_0x11a094(0x14e)];if(_0x2f61f2===e[_0x11a094(0x145)]['SYNCED'])return Promise[_0x11a094(0x134)]();let _0x3523ff=l(_0x193866,_0x2f61f2);if(_0x3523ff)return Promise['reject'](_0x3523ff);let _0x10b1af=_0xde1fe6[_0x11a094(0x12a)]??0x7530;return new Promise((_0x3f8eb2,_0x3f9994)=>{const _0x3e7ed2=_0x11a094;let _0x35aea2=!0x1,_0x2d66f6=null,_0xda4ba8=setTimeout(()=>{const _0x39615e=_0x4575;_0x35aea2=!0x0,_0x2d66f6==null||_0x2d66f6[_0x39615e(0x16b)](),_0x3f9994(Error(_0x39615e(0x12f)+_0x193866+_0x39615e(0x16c)+_0x10b1af+_0x39615e(0x13f)));},_0x10b1af),_0x1f3866=()=>{_0x35aea2=!0x0,clearTimeout(_0xda4ba8),_0x2d66f6==null||_0x2d66f6['unsubscribe']();};_0x2d66f6=_0x20a98f[_0x3e7ed2(0x15f)]['subscribe'](_0x381892=>{const _0xc679cb=_0x3e7ed2;if(_0x35aea2)return;if(_0x381892===e[_0xc679cb(0x145)][_0xc679cb(0x16e)]){_0x1f3866(),_0x3f8eb2();return;}let _0x2e0fff=l(_0x193866,_0x381892);_0x2e0fff&&(_0x1f3866(),_0x3f9994(_0x2e0fff));});});}['_resolveUnitId'](_0x3bb5ef){const _0x326773=_0x833588;var _0x1110ef;return _0x3bb5ef||((_0x1110ef=this[_0x326773(0x13e)]['getFocusedUnit']())==null?void 0x0:_0x1110ef[_0x326773(0x177)]());}};c=s([o(0x1,(0x0,n[_0x833588(0x126)])(n[_0x833588(0x15e)])),o(0x2,n[_0x833588(0x174)]),o(0x3,(0x0,n[_0x833588(0x126)])(e['DataLoaderService'])),o(0x4,(0x0,n[_0x833588(0x126)])(e[_0x833588(0x127)]))],c);function l(_0x4dc2b5,_0x540979){const _0x2ffb1d=_0x833588;return _0x540979===e['CollaborationStatus']['CONFLICT']||_0x540979===e[_0x2ffb1d(0x145)]['NOT_COLLAB']?Error(_0x2ffb1d(0x140)+_0x4dc2b5+_0x2ffb1d(0x168)+_0x540979+'.'):null;}function _0x1b12(){const _0x430182=['loadBaseAsync','length','revert','attempt','subscribeCollaborators','8772OmmonG','get','fireEvent','FEventName','Injector','status$','getPresentation','FCollaboration','cacheCleared','entityInit$','DisposableCollection','add','117221lCOHLy','changesetResend$','\x22\x20while\x20collaboration\x20status\x20is\x20','UNIVER_PDF','_resolveUnitId','unsubscribe','\x22\x20after\x20','loadServerUnitOfRevision','SYNCED','getWorkbook','nextDelayMs','getBoard','hasWritePending','169804swdcsi','IUniverInstanceService','object','getCollaborationStatus','getUnitId','1565anWpmu','12254561KNDfKh','Module','NOT_COLLAB','CollaborationChangesetResend','CollaborationStatusChanged','9401PzuilR','from','unitID','getDocument','unsyncedMutationCount','1408xZAecR','_dataLoaderService','29670NVHiSa','getBase','_injector','UNIVER_SHEET','readyForCollab','members$','distinctUntilChanged','message','loadServerUnit','function','disposeWithMe','getCollabEntity','values','UNIVER_SLIDE','decorate','waitForRoom$','reason','Inject','CollaborationController','loadDocAsync','subscribe','timeout','loadSheetAsync','CollaborationConflict','conflict$','switchMap','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','UniverInstanceType','toDisposable','_handler','registerEventHandler','resolve','loadUnit','_initialize','extend','311510FAEdvB','state','39duEspZ','reject','getPdf','18wBfpcI','_univerInstanceService','ms.','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','loadBoardAsync','pipe','flush','DataLoaderService','CollaborationStatus','MemberService','forEach','UNIVER_BOARD','loadPdfAsync','localChanges','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','_collaborationController','UNIVER_DOC','status','getCollaboration','getOwnPropertyDescriptor','Event','defineProperty','getCollabEntities','loadUnitOfRevision'];_0x1b12=function(){return _0x430182;};return _0x1b12();}var u=class extends t['FUniver']{[_0x833588(0x136)](_0x1d08b5){const _0x599946=_0x833588;let _0x4facdd=_0x1d08b5[_0x599946(0x15b)](e[_0x599946(0x127)]);this[_0x599946(0x11f)](this[_0x599946(0x133)](this[_0x599946(0x151)][_0x599946(0x17d)],()=>{const _0x48412f=_0x599946;let _0x50a335=new n[(_0x48412f(0x164))](),_0xca10a7=_0x23f9e0=>{const _0xc0cb98=_0x48412f;let _0x13c10a=_0x23f9e0['status$'][_0xc0cb98(0x142)]((0x0,r[_0xc0cb98(0x11b)])())[_0xc0cb98(0x129)](_0x5df87b=>{const _0x41f332=_0xc0cb98;let _0x5f1f14={'unitId':_0x23f9e0[_0x41f332(0x180)],'status':_0x5df87b};this[_0x41f332(0x15c)](this[_0x41f332(0x151)][_0x41f332(0x17d)],_0x5f1f14);});_0x50a335['add']((0x0,n[_0xc0cb98(0x131)])(_0x13c10a));};return _0x4facdd[_0x48412f(0x153)]()[_0x48412f(0x147)](_0xca10a7),_0x50a335[_0x48412f(0x165)]((0x0,n[_0x48412f(0x131)])(_0x4facdd[_0x48412f(0x163)]['subscribe'](_0xca10a7))),_0x50a335;})),this['disposeWithMe'](this[_0x599946(0x133)](this[_0x599946(0x151)][_0x599946(0x12c)],()=>{const _0x147f23=_0x599946;let _0x2ce997=new n[(_0x147f23(0x164))](),_0x2ce695=_0x2d9e74=>{const _0x528f45=_0x147f23;let _0x271337=_0x2d9e74[_0x528f45(0x12d)][_0x528f45(0x129)](_0x69062e=>{const _0x23db59=_0x528f45;let _0x157a89={'unitId':_0x69062e[_0x23db59(0x180)],'reason':_0x69062e[_0x23db59(0x125)],'message':_0x69062e[_0x23db59(0x11c)],'revert':_0x69062e[_0x23db59(0x157)],'localChanges':_0x69062e[_0x23db59(0x14a)],'cacheCleared':_0x69062e[_0x23db59(0x162)]};this[_0x23db59(0x15c)](this[_0x23db59(0x151)][_0x23db59(0x12c)],_0x157a89);});_0x2ce997[_0x528f45(0x165)]((0x0,n[_0x528f45(0x131)])(_0x271337));};return _0x4facdd[_0x147f23(0x153)]()[_0x147f23(0x147)](_0x2ce695),_0x2ce997[_0x147f23(0x165)]((0x0,n['toDisposable'])(_0x4facdd[_0x147f23(0x163)][_0x147f23(0x129)](_0x2ce695))),_0x2ce997;})),this[_0x599946(0x11f)](this[_0x599946(0x133)](this[_0x599946(0x151)][_0x599946(0x17c)],()=>{const _0x33a57a=_0x599946;let _0x2e7f23=new n['DisposableCollection'](),_0xbbd475=_0x1467a8=>{const _0x245d4c=_0x4575;let _0x557c9e=_0x1467a8[_0x245d4c(0x167)][_0x245d4c(0x129)](_0x12faca=>{const _0x2af9c2=_0x245d4c;let _0x2d744c={'unitId':_0x12faca[_0x2af9c2(0x180)],'reqId':_0x12faca['reqId'],'reason':_0x12faca[_0x2af9c2(0x125)],'attempt':_0x12faca[_0x2af9c2(0x158)],'elapsedMs':_0x12faca['elapsedMs'],'unsyncedMutationCount':_0x12faca[_0x2af9c2(0x112)],'nextDelayMs':_0x12faca[_0x2af9c2(0x170)]};this[_0x2af9c2(0x15c)](this[_0x2af9c2(0x151)]['CollaborationChangesetResend'],_0x2d744c);});_0x2e7f23[_0x245d4c(0x165)]((0x0,n['toDisposable'])(_0x557c9e));};return _0x4facdd[_0x33a57a(0x153)]()[_0x33a57a(0x147)](_0xbbd475),_0x2e7f23['add']((0x0,n[_0x33a57a(0x131)])(_0x4facdd[_0x33a57a(0x163)][_0x33a57a(0x129)](_0xbbd475))),_0x2e7f23;}));}[_0x833588(0x14f)](){const _0x41aa25=_0x833588;return this['_injector']['createInstance'](c,{'getWorkbook':_0x5a8ef6=>this[_0x41aa25(0x16f)](_0x5a8ef6),'getDocument':_0x55c394=>this[_0x41aa25(0x111)](_0x55c394),'getPresentation':_0x382800=>this['getPresentation'](_0x382800),'getBase':_0x1111d9=>this[_0x41aa25(0x116)](_0x1111d9),'getBoard':_0x4d3ff8=>this[_0x41aa25(0x171)](_0x4d3ff8),'getPdf':_0x22faf4=>this['getPdf'](_0x22faf4)});}[_0x833588(0x11d)](_0x3b7f1e,_0x3c1f5a,_0x478236){const _0x4d272c=_0x833588;return this[_0x4d272c(0x117)][_0x4d272c(0x15b)](e[_0x4d272c(0x144)])['loadUnit'](_0x3b7f1e,_0x3c1f5a,_0x478236);}[_0x833588(0x16d)](_0x44403e,_0x21c70b,_0x3127c0){const _0x1ce8cb=_0x833588;return this[_0x1ce8cb(0x117)][_0x1ce8cb(0x15b)](e[_0x1ce8cb(0x144)])[_0x1ce8cb(0x154)](_0x44403e,_0x21c70b,_0x3127c0);}};t['FUniver'][_0x833588(0x137)](u),Object[_0x833588(0x152)](exports,_0x833588(0x161),{'enumerable':!0x0,'get':function(){return c;}});
|
|
1
|
+
const _0xfdbd9c=_0x1023;(function(_0x20eb5c,_0x26bf92){const _0x413f4f=_0x1023,_0x2a0806=_0x20eb5c();while(!![]){try{const _0x3c0565=-parseInt(_0x413f4f(0x223))/0x1+-parseInt(_0x413f4f(0x20d))/0x2*(parseInt(_0x413f4f(0x22c))/0x3)+parseInt(_0x413f4f(0x1e6))/0x4*(-parseInt(_0x413f4f(0x210))/0x5)+-parseInt(_0x413f4f(0x21f))/0x6*(parseInt(_0x413f4f(0x207))/0x7)+parseInt(_0x413f4f(0x1ee))/0x8*(parseInt(_0x413f4f(0x20e))/0x9)+-parseInt(_0x413f4f(0x1eb))/0xa+parseInt(_0x413f4f(0x1f9))/0xb;if(_0x3c0565===_0x26bf92)break;else _0x2a0806['push'](_0x2a0806['shift']());}catch(_0xc3ac72){_0x2a0806['push'](_0x2a0806['shift']());}}}(_0x5320,0x9a663),Object[_0xfdbd9c(0x229)](exports,Symbol[_0xfdbd9c(0x1f3)],{'value':_0xfdbd9c(0x1f8)}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core/facade'),n=require('@univerjs/core'),r=require('rxjs');var i=class extends t[_0xfdbd9c(0x237)]{get['CollaborationStatus'](){const _0x1d8d74=_0xfdbd9c;return e[_0x1d8d74(0x1e8)];}};t[_0xfdbd9c(0x237)][_0xfdbd9c(0x224)](i);var a=class extends t[_0xfdbd9c(0x1f7)]{get[_0xfdbd9c(0x1e3)](){const _0x3fb237=_0xfdbd9c;return _0x3fb237(0x1e3);}get['CollaborationConflict'](){const _0x2bd972=_0xfdbd9c;return _0x2bd972(0x1f5);}get['CollaborationChangesetResend'](){const _0x150c3b=_0xfdbd9c;return _0x150c3b(0x245);}};t['FEventName'][_0xfdbd9c(0x224)](a);function o(_0x9445b2,_0xe3c139){return function(_0x50a0d8,_0xabc33){_0xe3c139(_0x50a0d8,_0xabc33,_0x9445b2);};}function _0x1023(_0x4714b9,_0x1d8915){_0x4714b9=_0x4714b9-0x1dd;const _0x53206d=_0x5320();let _0x10230c=_0x53206d[_0x4714b9];return _0x10230c;}function s(_0x1b1439,_0x44e3cb,_0x176d65,_0x238053){const _0xccd8b4=_0xfdbd9c;var _0x5748bd=arguments[_0xccd8b4(0x1e0)],_0x58934b=_0x5748bd<0x3?_0x44e3cb:_0x238053===null?_0x238053=Object[_0xccd8b4(0x1f2)](_0x44e3cb,_0x176d65):_0x238053,_0x588fe1;if(typeof Reflect==_0xccd8b4(0x22a)&&typeof Reflect[_0xccd8b4(0x21e)]==_0xccd8b4(0x1df))_0x58934b=Reflect['decorate'](_0x1b1439,_0x44e3cb,_0x176d65,_0x238053);else{for(var _0x23cf56=_0x1b1439['length']-0x1;_0x23cf56>=0x0;_0x23cf56--)(_0x588fe1=_0x1b1439[_0x23cf56])&&(_0x58934b=(_0x5748bd<0x3?_0x588fe1(_0x58934b):_0x5748bd>0x3?_0x588fe1(_0x44e3cb,_0x176d65,_0x58934b):_0x588fe1(_0x44e3cb,_0x176d65))||_0x58934b);}return _0x5748bd>0x3&&_0x58934b&&Object[_0xccd8b4(0x229)](_0x44e3cb,_0x176d65,_0x58934b),_0x58934b;}let c=class extends t[_0xfdbd9c(0x1e4)]{constructor(_0x5cbfb8,_0x543f92,_0x38df7a,_0x2afa13,_0x1aed96){const _0xe27ae7=_0xfdbd9c;super(),this['_handler']=_0x5cbfb8,this[_0xe27ae7(0x206)]=_0x543f92,this[_0xe27ae7(0x228)]=_0x38df7a,this[_0xe27ae7(0x22d)]=_0x2afa13,this[_0xe27ae7(0x202)]=_0x1aed96;}async[_0xfdbd9c(0x222)](_0x435fa6,_0x42db8d){const _0x3d0a03=_0xfdbd9c;return await this[_0x3d0a03(0x22d)][_0x3d0a03(0x20b)](_0x435fa6,n[_0x3d0a03(0x247)][_0x3d0a03(0x1dd)],void 0x0,_0x42db8d)?(await this[_0x3d0a03(0x202)]['readyForCollab'](_0x435fa6),this[_0x3d0a03(0x238)][_0x3d0a03(0x205)](_0x435fa6)):null;}async[_0xfdbd9c(0x23b)](_0x4c5572,_0x19f4e8){const _0x59f010=_0xfdbd9c;return await this['_dataLoaderService'][_0x59f010(0x20b)](_0x4c5572,n[_0x59f010(0x247)]['UNIVER_DOC'],void 0x0,_0x19f4e8)?(await this['_collaborationController'][_0x59f010(0x23a)](_0x4c5572),this[_0x59f010(0x238)][_0x59f010(0x21d)](_0x4c5572)):null;}async['loadBaseAsync'](_0x334d89,_0x27e5ea){const _0x17c1da=_0xfdbd9c;return await this[_0x17c1da(0x22d)][_0x17c1da(0x20b)](_0x334d89,n[_0x17c1da(0x247)][_0x17c1da(0x23e)],void 0x0,_0x27e5ea)?(await this[_0x17c1da(0x202)][_0x17c1da(0x23a)](_0x334d89),this[_0x17c1da(0x238)]['getBase'](_0x334d89)):null;}async[_0xfdbd9c(0x1ed)](_0x2c50c3,_0x37e050){const _0x3a7a0b=_0xfdbd9c;return await this['_dataLoaderService'][_0x3a7a0b(0x20b)](_0x2c50c3,n[_0x3a7a0b(0x247)][_0x3a7a0b(0x216)],void 0x0,_0x37e050)?(await this[_0x3a7a0b(0x202)][_0x3a7a0b(0x23a)](_0x2c50c3),this[_0x3a7a0b(0x238)][_0x3a7a0b(0x231)](_0x2c50c3)):null;}async[_0xfdbd9c(0x22b)](_0x48dbc7,_0x358071){const _0x249d58=_0xfdbd9c;return await this[_0x249d58(0x22d)][_0x249d58(0x20b)](_0x48dbc7,n['UniverInstanceType']['UNIVER_BOARD'],void 0x0,_0x358071)?(await this['_collaborationController'][_0x249d58(0x23a)](_0x48dbc7),this[_0x249d58(0x238)]['getBoard'](_0x48dbc7)):null;}async[_0xfdbd9c(0x240)](_0xb15352,_0x385a7f){const _0x5391d6=_0xfdbd9c;return await this[_0x5391d6(0x22d)][_0x5391d6(0x20b)](_0xb15352,n[_0x5391d6(0x247)][_0x5391d6(0x1e5)],void 0x0,_0x385a7f)?(await this[_0x5391d6(0x202)][_0x5391d6(0x23a)](_0xb15352),this['_handler'][_0x5391d6(0x213)](_0xb15352)):null;}[_0xfdbd9c(0x241)](_0x128228,_0x47fe6b){const _0x5b755a=_0xfdbd9c;let _0x8c0839=this[_0x5b755a(0x206)]['get'](e[_0x5b755a(0x200)])[_0x5b755a(0x219)](_0x128228)[_0x5b755a(0x208)]((0x0,r['switchMap'])(_0x27301b=>_0x27301b[_0x5b755a(0x232)]))['subscribe'](_0x21953a=>_0x47fe6b(Array['from'](_0x21953a[_0x5b755a(0x23f)]())));return(0x0,n[_0x5b755a(0x248)])(_0x8c0839);}[_0xfdbd9c(0x21b)](_0x11dbd0){const _0x381ea2=_0xfdbd9c;let _0x2fc363=this[_0x381ea2(0x1de)](_0x11dbd0);if(!_0x2fc363)return e[_0x381ea2(0x1e8)][_0x381ea2(0x233)];let _0x4d3352=this[_0x381ea2(0x202)][_0x381ea2(0x215)](_0x2fc363);return(_0x4d3352==null?void 0x0:_0x4d3352[_0x381ea2(0x1fe)]['status'])??e[_0x381ea2(0x1e8)][_0x381ea2(0x233)];}[_0xfdbd9c(0x212)](_0x55b79b){const _0x24e985=_0xfdbd9c;let _0x2c47d3=this['_resolveUnitId'](_0x55b79b);return _0x2c47d3?this[_0x24e985(0x202)][_0x24e985(0x212)](_0x2c47d3):!0x1;}[_0xfdbd9c(0x209)](_0x1e7c77,_0x1bfc39={}){const _0x111dbb=_0xfdbd9c;let _0x15509f=this[_0x111dbb(0x1de)](_0x1e7c77);if(!_0x15509f)return Promise[_0x111dbb(0x1fc)](Error(_0x111dbb(0x230)));let _0x3f841a=this[_0x111dbb(0x202)][_0x111dbb(0x215)](_0x15509f);if(!_0x3f841a)return Promise[_0x111dbb(0x1fc)](Error(_0x111dbb(0x214)+_0x15509f+_0x111dbb(0x23c)));let _0x38e241=_0x3f841a[_0x111dbb(0x1fe)]['status'];if(_0x38e241===e['CollaborationStatus'][_0x111dbb(0x227)])return Promise['resolve']();let _0x476021=l(_0x15509f,_0x38e241);if(_0x476021)return Promise[_0x111dbb(0x1fc)](_0x476021);let _0x1d884f=_0x1bfc39[_0x111dbb(0x221)]??0x7530;return new Promise((_0x962d9f,_0x20c6b4)=>{const _0x3c5d90=_0x111dbb;let _0x1c6b7a=!0x1,_0xb67658=null,_0x2ec3e8=setTimeout(()=>{const _0x19d55f=_0x1023;_0x1c6b7a=!0x0,_0xb67658==null||_0xb67658[_0x19d55f(0x1fa)](),_0x20c6b4(Error(_0x19d55f(0x234)+_0x15509f+_0x19d55f(0x1e2)+_0x1d884f+_0x19d55f(0x1ec)));},_0x1d884f),_0x248f29=()=>{const _0x33c36b=_0x1023;_0x1c6b7a=!0x0,clearTimeout(_0x2ec3e8),_0xb67658==null||_0xb67658[_0x33c36b(0x1fa)]();};_0xb67658=_0x3f841a[_0x3c5d90(0x1f0)][_0x3c5d90(0x204)](_0x4e0cc9=>{const _0x28c341=_0x3c5d90;if(_0x1c6b7a)return;if(_0x4e0cc9===e[_0x28c341(0x1e8)]['SYNCED']){_0x248f29(),_0x962d9f();return;}let _0x5d833c=l(_0x15509f,_0x4e0cc9);_0x5d833c&&(_0x248f29(),_0x20c6b4(_0x5d833c));});});}[_0xfdbd9c(0x1de)](_0x58dc7f){const _0x150da4=_0xfdbd9c;var _0x271dad;return _0x58dc7f||((_0x271dad=this[_0x150da4(0x228)][_0x150da4(0x20f)]())==null?void 0x0:_0x271dad[_0x150da4(0x225)]());}};c=s([o(0x1,(0x0,n[_0xfdbd9c(0x1e9)])(n[_0xfdbd9c(0x22e)])),o(0x2,n[_0xfdbd9c(0x239)]),o(0x3,(0x0,n[_0xfdbd9c(0x1e9)])(e[_0xfdbd9c(0x21a)])),o(0x4,(0x0,n[_0xfdbd9c(0x1e9)])(e[_0xfdbd9c(0x1ff)]))],c);function _0x5320(){const _0x555d7e=['status$','distinctUntilChanged','getOwnPropertyDescriptor','toStringTag','loadServerUnitOfRevision','CollaborationConflict','get','FEventName','Module','43096713GWuFEU','unsubscribe','forEach','reject','getBase','state','CollaborationController','MemberService','elapsedMs','_collaborationController','fireEvent','subscribe','getWorkbook','_injector','5805541lmOBSI','pipe','flush','entityInit$','loadUnit','unsyncedMutationCount','9622xiflSC','9BhazBc','getFocusedUnit','20GJLcGG','conflict$','hasWritePending','getPdf','[FCollaboration]:\x20Unit\x20\x22','getCollabEntity','UNIVER_SLIDE','FUniver','getCollabEntities','waitForRoom$','DataLoaderService','getCollaborationStatus','cacheCleared','getDocument','decorate','6WsVpyb','message','timeout','loadSheetAsync','1232636AVnGZy','extend','getUnitId','disposeWithMe','SYNCED','_univerInstanceService','defineProperty','object','loadBoardAsync','123uumCro','_dataLoaderService','Injector','unitID','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','getPresentation','members$','NOT_COLLAB','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','add','DisposableCollection','FEnum','_handler','IUniverInstanceService','readyForCollab','loadDocAsync','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','CONFLICT','UNIVER_BASE','values','loadPdfAsync','subscribeCollaborators','FCollaboration','revert','getBoard','CollaborationChangesetResend','loadServerUnit','UniverInstanceType','toDisposable','\x22\x20while\x20collaboration\x20status\x20is\x20','UNIVER_SHEET','_resolveUnitId','function','length','loadUnitOfRevision','\x22\x20after\x20','CollaborationStatusChanged','FBase','UNIVER_PDF','646084eUwTQT','registerEventHandler','CollaborationStatus','Inject','reason','5896760UPxzug','ms.','loadSlideAsync','1676368jVRvCh','Event'];_0x5320=function(){return _0x555d7e;};return _0x5320();}function l(_0x37107e,_0x44fdab){const _0x2004bd=_0xfdbd9c;return _0x44fdab===e[_0x2004bd(0x1e8)][_0x2004bd(0x23d)]||_0x44fdab===e['CollaborationStatus']['NOT_COLLAB']?Error('[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22'+_0x37107e+_0x2004bd(0x249)+_0x44fdab+'.'):null;}var u=class extends t[_0xfdbd9c(0x217)]{['_initialize'](_0x254fdc){const _0x141a0d=_0xfdbd9c;let _0x28c4f2=_0x254fdc[_0x141a0d(0x1f6)](e[_0x141a0d(0x1ff)]);this[_0x141a0d(0x226)](this[_0x141a0d(0x1e7)](this[_0x141a0d(0x1ef)]['CollaborationStatusChanged'],()=>{const _0x840950=_0x141a0d;let _0x5922ec=new n[(_0x840950(0x236))](),_0x3dd7bd=_0x2c3e85=>{const _0x3ad3fc=_0x840950;let _0x2c2f6f=_0x2c3e85[_0x3ad3fc(0x1f0)][_0x3ad3fc(0x208)]((0x0,r[_0x3ad3fc(0x1f1)])())['subscribe'](_0x2ad131=>{const _0x2d9e88=_0x3ad3fc;let _0x4e7728={'unitId':_0x2c3e85[_0x2d9e88(0x22f)],'status':_0x2ad131};this[_0x2d9e88(0x203)](this['Event'][_0x2d9e88(0x1e3)],_0x4e7728);});_0x5922ec[_0x3ad3fc(0x235)]((0x0,n['toDisposable'])(_0x2c2f6f));};return _0x28c4f2[_0x840950(0x218)]()['forEach'](_0x3dd7bd),_0x5922ec['add']((0x0,n[_0x840950(0x248)])(_0x28c4f2[_0x840950(0x20a)][_0x840950(0x204)](_0x3dd7bd))),_0x5922ec;})),this[_0x141a0d(0x226)](this['registerEventHandler'](this[_0x141a0d(0x1ef)][_0x141a0d(0x1f5)],()=>{const _0x482664=_0x141a0d;let _0x3def8f=new n['DisposableCollection'](),_0x8657c5=_0x598baa=>{const _0x37648c=_0x1023;let _0xe8b30f=_0x598baa[_0x37648c(0x211)][_0x37648c(0x204)](_0x3f595b=>{const _0x4b9486=_0x37648c;let _0x979a36={'unitId':_0x3f595b[_0x4b9486(0x22f)],'reason':_0x3f595b[_0x4b9486(0x1ea)],'message':_0x3f595b[_0x4b9486(0x220)],'revert':_0x3f595b[_0x4b9486(0x243)],'localChanges':_0x3f595b['localChanges'],'cacheCleared':_0x3f595b[_0x4b9486(0x21c)]};this[_0x4b9486(0x203)](this[_0x4b9486(0x1ef)]['CollaborationConflict'],_0x979a36);});_0x3def8f['add']((0x0,n[_0x37648c(0x248)])(_0xe8b30f));};return _0x28c4f2[_0x482664(0x218)]()[_0x482664(0x1fb)](_0x8657c5),_0x3def8f[_0x482664(0x235)]((0x0,n[_0x482664(0x248)])(_0x28c4f2[_0x482664(0x20a)][_0x482664(0x204)](_0x8657c5))),_0x3def8f;})),this[_0x141a0d(0x226)](this[_0x141a0d(0x1e7)](this['Event']['CollaborationChangesetResend'],()=>{const _0x4b3cce=_0x141a0d;let _0xe4c976=new n['DisposableCollection'](),_0x4b4370=_0x2e028c=>{const _0x56f213=_0x1023;let _0x16a4b1=_0x2e028c['changesetResend$'][_0x56f213(0x204)](_0x2ff3b1=>{const _0x52d5c5=_0x56f213;let _0x4ded12={'unitId':_0x2ff3b1[_0x52d5c5(0x22f)],'reqId':_0x2ff3b1['reqId'],'reason':_0x2ff3b1[_0x52d5c5(0x1ea)],'attempt':_0x2ff3b1['attempt'],'elapsedMs':_0x2ff3b1[_0x52d5c5(0x201)],'unsyncedMutationCount':_0x2ff3b1[_0x52d5c5(0x20c)],'nextDelayMs':_0x2ff3b1['nextDelayMs']};this[_0x52d5c5(0x203)](this['Event'][_0x52d5c5(0x245)],_0x4ded12);});_0xe4c976[_0x56f213(0x235)]((0x0,n[_0x56f213(0x248)])(_0x16a4b1));};return _0x28c4f2[_0x4b3cce(0x218)]()[_0x4b3cce(0x1fb)](_0x4b4370),_0xe4c976[_0x4b3cce(0x235)]((0x0,n[_0x4b3cce(0x248)])(_0x28c4f2[_0x4b3cce(0x20a)][_0x4b3cce(0x204)](_0x4b4370))),_0xe4c976;}));}['getCollaboration'](){const _0x2e70af=_0xfdbd9c;return this['_injector']['createInstance'](c,{'getWorkbook':_0x53a7af=>this[_0x2e70af(0x205)](_0x53a7af),'getDocument':_0x5e55c8=>this['getDocument'](_0x5e55c8),'getPresentation':_0x487519=>this[_0x2e70af(0x231)](_0x487519),'getBase':_0x3f0f79=>this[_0x2e70af(0x1fd)](_0x3f0f79),'getBoard':_0x3e63ca=>this[_0x2e70af(0x244)](_0x3e63ca),'getPdf':_0x4dd87e=>this[_0x2e70af(0x213)](_0x4dd87e)});}[_0xfdbd9c(0x246)](_0x7684f,_0x376e62,_0x4d23b5){const _0xc16f8b=_0xfdbd9c;return this[_0xc16f8b(0x206)][_0xc16f8b(0x1f6)](e[_0xc16f8b(0x21a)])[_0xc16f8b(0x20b)](_0x7684f,_0x376e62,_0x4d23b5);}[_0xfdbd9c(0x1f4)](_0x395aec,_0x301b98,_0x9e6da2){const _0x534e6c=_0xfdbd9c;return this[_0x534e6c(0x206)][_0x534e6c(0x1f6)](e[_0x534e6c(0x21a)])[_0x534e6c(0x1e1)](_0x395aec,_0x301b98,_0x9e6da2);}};t[_0xfdbd9c(0x217)][_0xfdbd9c(0x224)](u),Object[_0xfdbd9c(0x229)](exports,_0xfdbd9c(0x242),{'enumerable':!0x0,'get':function(){return c;}});
|