@univerjs-pro/collaboration-client 1.0.4 → 1.2.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/README.md +2 -0
- 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/config/config.d.ts +19 -0
- package/lib/types/controllers/collaboration/changeset-submitter.d.ts +132 -0
- package/lib/types/controllers/collaboration/collaboration-entity.d.ts +28 -1
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +175 -43
- package/lib/types/controllers/collaboration/collaboration.controller.d.ts +7 -0
- package/lib/types/controllers/collaboration/utils/changeset-utils.d.ts +7 -3
- package/lib/types/facade/f-collaboration.d.ts +20 -4
- package/lib/types/facade/f-event.d.ts +87 -2
- package/lib/types/index.d.ts +5 -3
- package/lib/types/services/collaboration-session/collaboration-session.d.ts +4 -8
- package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +4 -4
- package/lib/types/services/collaboration-ui-event/collaboration-ui-event.d.ts +9 -0
- package/lib/types/services/data-loader/data-loader.service.d.ts +9 -2
- package/lib/types/services/local-cache/local-cache.service.d.ts +11 -6
- package/lib/types/services/socket/collaboration-socket.service.d.ts +10 -2
- package/lib/types/services/undoredo/collaborative-undoredo.service.d.ts +5 -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 +16 -16
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1dcd3f=_0x29ad;(function(_0x85a6e3,_0x5cb620){const _0x4eba1c=_0x29ad,_0x4b34ba=_0x85a6e3();while(!![]){try{const _0x1d603e=parseInt(_0x4eba1c(0x207))/0x1*(parseInt(_0x4eba1c(0x231))/0x2)+parseInt(_0x4eba1c(0x209))/0x3+-parseInt(_0x4eba1c(0x223))/0x4+-parseInt(_0x4eba1c(0x1fc))/0x5*(parseInt(_0x4eba1c(0x20f))/0x6)+parseInt(_0x4eba1c(0x214))/0x7*(-parseInt(_0x4eba1c(0x20a))/0x8)+parseInt(_0x4eba1c(0x221))/0x9*(parseInt(_0x4eba1c(0x1f6))/0xa)+-parseInt(_0x4eba1c(0x226))/0xb*(parseInt(_0x4eba1c(0x1ff))/0xc);if(_0x1d603e===_0x5cb620)break;else _0x4b34ba['push'](_0x4b34ba['shift']());}catch(_0x2e5691){_0x4b34ba['push'](_0x4b34ba['shift']());}}}(_0x4430,0x4fcd3));import{CollaborationController as _0x1e3c3a,CollaborationStatus as _0x4d308d,DataLoaderService as _0x4ed2da,MemberService as _0x4c5b0e}from'@univerjs-pro/collaboration-client';import{FBase as _0x4c8cdb,FEnum as _0x2ec9da,FEventName as _0x351aa8,FUniver as _0x29ab02}from'@univerjs/core/facade';import{DisposableCollection as _0x2d9bb0,IUniverInstanceService as _0x58a08a,Inject as _0x47569c,Injector as _0x695c9f,toDisposable as _0x44f995}from'@univerjs/core';import{SnapshotService as _0x2052bc}from'@univerjs-pro/collaboration';import{switchMap as _0x2b9edc}from'rxjs';var h=class extends _0x2ec9da{get[_0x1dcd3f(0x21f)](){return _0x4d308d;}};_0x2ec9da[_0x1dcd3f(0x22a)](h);var g=class extends _0x351aa8{get[_0x1dcd3f(0x21c)](){const _0x49bf5c=_0x1dcd3f;return _0x49bf5c(0x21c);}};function _0x29ad(_0x18aa1e,_0x3cabdc){_0x18aa1e=_0x18aa1e-0x1ee;const _0x443088=_0x4430();let _0x29ada0=_0x443088[_0x18aa1e];return _0x29ada0;}_0x351aa8[_0x1dcd3f(0x22a)](g);function _(_0x44b513,_0x92a322){return function(_0x43fa19,_0x2849d0){_0x92a322(_0x43fa19,_0x2849d0,_0x44b513);};}function v(_0xab38b0,_0x1aeed4,_0x47bc0b,_0x13f4e6){const _0x21e54d=_0x1dcd3f;var _0x311992=arguments['length'],_0x3ffc02=_0x311992<0x3?_0x1aeed4:_0x13f4e6===null?_0x13f4e6=Object['getOwnPropertyDescriptor'](_0x1aeed4,_0x47bc0b):_0x13f4e6,_0x379cd3;if(typeof Reflect==_0x21e54d(0x22d)&&typeof Reflect[_0x21e54d(0x216)]==_0x21e54d(0x1fa))_0x3ffc02=Reflect[_0x21e54d(0x216)](_0xab38b0,_0x1aeed4,_0x47bc0b,_0x13f4e6);else{for(var _0x8343dc=_0xab38b0[_0x21e54d(0x1f8)]-0x1;_0x8343dc>=0x0;_0x8343dc--)(_0x379cd3=_0xab38b0[_0x8343dc])&&(_0x3ffc02=(_0x311992<0x3?_0x379cd3(_0x3ffc02):_0x311992>0x3?_0x379cd3(_0x1aeed4,_0x47bc0b,_0x3ffc02):_0x379cd3(_0x1aeed4,_0x47bc0b))||_0x3ffc02);}return _0x311992>0x3&&_0x3ffc02&&Object[_0x21e54d(0x1f5)](_0x1aeed4,_0x47bc0b,_0x3ffc02),_0x3ffc02;}let y=class extends _0x4c8cdb{constructor(_0x1c188f,_0x498bae,_0x2aaf1d,_0x253a9b,_0x26ad95){const _0x15b106=_0x1dcd3f;super(),this['_handler']=_0x1c188f,this[_0x15b106(0x23b)]=_0x498bae,this[_0x15b106(0x225)]=_0x2aaf1d,this[_0x15b106(0x201)]=_0x253a9b,this[_0x15b106(0x20d)]=_0x26ad95;}async[_0x1dcd3f(0x22b)](_0x48143a,_0x14e003){const _0x22a5bd=_0x1dcd3f;return await this[_0x22a5bd(0x201)]['loadSheet'](_0x48143a,0x0,_0x14e003)?(await this['_collaborationController'][_0x22a5bd(0x1f2)](_0x48143a),this['_handler'][_0x22a5bd(0x20b)](_0x48143a)):null;}async['loadDocAsync'](_0x2e79e9,_0x5b8010){const _0x96840d=_0x1dcd3f;return await this['_snapshotService'][_0x96840d(0x21e)](_0x2e79e9,0x0,_0x5b8010)?(await this[_0x96840d(0x20d)]['readyForCollab'](_0x2e79e9),this[_0x96840d(0x22f)][_0x96840d(0x1f7)](_0x2e79e9)):null;}async[_0x1dcd3f(0x202)](_0x3abe57,_0x3dbada){const _0xdc5b2e=_0x1dcd3f;return await this[_0xdc5b2e(0x201)][_0xdc5b2e(0x1fb)](_0x3abe57,0x0,_0x3dbada)?(await this[_0xdc5b2e(0x20d)][_0xdc5b2e(0x1f2)](_0x3abe57),this['_handler'][_0xdc5b2e(0x1f0)](_0x3abe57)):null;}async[_0x1dcd3f(0x23c)](_0x120fe3,_0xd22af1){const _0x53d34d=_0x1dcd3f;return await this[_0x53d34d(0x201)]['loadSlide'](_0x120fe3,0x0,_0xd22af1)?(await this[_0x53d34d(0x20d)][_0x53d34d(0x1f2)](_0x120fe3),this[_0x53d34d(0x22f)][_0x53d34d(0x1ef)](_0x120fe3)):null;}async[_0x1dcd3f(0x217)](_0x4df8ed,_0x4dd451){const _0x97acbd=_0x1dcd3f;return await this[_0x97acbd(0x201)][_0x97acbd(0x1fd)](_0x4df8ed,0x0,_0x4dd451)?(await this[_0x97acbd(0x20d)][_0x97acbd(0x1f2)](_0x4df8ed),this[_0x97acbd(0x22f)][_0x97acbd(0x20e)](_0x4df8ed)):null;}async[_0x1dcd3f(0x210)](_0x30d0a3,_0x3671a6){const _0x4d1661=_0x1dcd3f;return await this['_snapshotService'][_0x4d1661(0x1f3)](_0x30d0a3,0x0,_0x3671a6)?(await this[_0x4d1661(0x20d)][_0x4d1661(0x1f2)](_0x30d0a3),this['_handler'][_0x4d1661(0x232)](_0x30d0a3)):null;}[_0x1dcd3f(0x220)](_0x568467,_0x5be404){const _0x48d867=_0x1dcd3f;let _0x1043ed=this[_0x48d867(0x23b)][_0x48d867(0x203)](_0x4c5b0e)['waitForRoom$'](_0x568467)[_0x48d867(0x211)](_0x2b9edc(_0x2b0507=>_0x2b0507[_0x48d867(0x213)]))['subscribe'](_0x55df7e=>_0x5be404(Array['from'](_0x55df7e[_0x48d867(0x22e)]())));return _0x44f995(_0x1043ed);}[_0x1dcd3f(0x200)](_0x3524cb){const _0x19e5f7=_0x1dcd3f;let _0x50826b=this[_0x19e5f7(0x219)](_0x3524cb);if(!_0x50826b)return _0x4d308d[_0x19e5f7(0x235)];let _0x5359d8=this[_0x19e5f7(0x20d)][_0x19e5f7(0x233)](_0x50826b);return(_0x5359d8==null?void 0x0:_0x5359d8['state'][_0x19e5f7(0x1f9)])??_0x4d308d[_0x19e5f7(0x235)];}[_0x1dcd3f(0x205)](_0x3b695d,_0x5ae381={}){const _0x1c1721=_0x1dcd3f;let _0x568911=this[_0x1c1721(0x219)](_0x3b695d);if(!_0x568911)return Promise[_0x1c1721(0x204)](Error(_0x1c1721(0x227)));let _0x503103=this[_0x1c1721(0x20d)][_0x1c1721(0x233)](_0x568911);if(!_0x503103)return Promise[_0x1c1721(0x204)](Error(_0x1c1721(0x218)+_0x568911+_0x1c1721(0x21b)));let _0x504386=_0x503103[_0x1c1721(0x1ee)][_0x1c1721(0x1f9)];if(_0x504386===_0x4d308d[_0x1c1721(0x20c)])return Promise[_0x1c1721(0x222)]();let _0x16c813=b(_0x568911,_0x504386);if(_0x16c813)return Promise[_0x1c1721(0x204)](_0x16c813);let _0x4bf875=_0x5ae381[_0x1c1721(0x238)]??0x7530;return new Promise((_0x40ba15,_0x5a9cf6)=>{const _0x3dbdf5=_0x1c1721;let _0x2a241b=!0x1,_0x528ce2=null,_0x8d9714=setTimeout(()=>{const _0xa494c3=_0x29ad;_0x2a241b=!0x0,_0x528ce2==null||_0x528ce2['unsubscribe'](),_0x5a9cf6(Error(_0xa494c3(0x236)+_0x568911+'\x22\x20after\x20'+_0x4bf875+'ms.'));},_0x4bf875),_0x75a50a=()=>{const _0x151bbe=_0x29ad;_0x2a241b=!0x0,clearTimeout(_0x8d9714),_0x528ce2==null||_0x528ce2[_0x151bbe(0x22c)]();};_0x528ce2=_0x503103['status$'][_0x3dbdf5(0x23a)](_0x55a7fd=>{const _0x2606c0=_0x3dbdf5;if(_0x2a241b)return;if(_0x55a7fd===_0x4d308d[_0x2606c0(0x20c)]){_0x75a50a(),_0x40ba15();return;}let _0x15421e=b(_0x568911,_0x55a7fd);_0x15421e&&(_0x75a50a(),_0x5a9cf6(_0x15421e));});});}[_0x1dcd3f(0x219)](_0x514b29){const _0x123cbd=_0x1dcd3f;var _0x307bcb;return _0x514b29||((_0x307bcb=this[_0x123cbd(0x225)][_0x123cbd(0x215)]())==null?void 0x0:_0x307bcb[_0x123cbd(0x234)]());}};function _0x4430(){const _0x573da5=['timeout','loadServerUnitOfRevision','subscribe','_injector','loadSlideAsync','state','getPresentation','getBase','disposeWithMe','readyForCollab','loadPdf','_initialize','defineProperty','20UmIYKb','getDocument','length','status','function','loadBase','93715TAHVVm','loadBoard','status$','319044HIUgYr','getCollaborationStatus','_snapshotService','loadBaseAsync','get','reject','flush','loadUnit','150197rUwvug','Event','1921023MHZNJO','8kqqsUp','getWorkbook','SYNCED','_collaborationController','getBoard','150LPxyIz','loadPdfAsync','pipe','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','members$','982233tVtZVK','getFocusedUnit','decorate','loadBoardAsync','[FCollaboration]:\x20Unit\x20\x22','_resolveUnitId','add','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','CollaborationStatusChanged','registerEventHandler','loadDoc','CollaborationStatus','subscribeCollaborators','2272869kNuqte','resolve','163260xQyMVI','CONFLICT','_univerInstanceService','132CLTbVs','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','createInstance','getCollaboration','extend','loadSheetAsync','unsubscribe','object','values','_handler','unitID','2byATJf','getPdf','getCollabEntity','getUnitId','NOT_COLLAB','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','entityInit$'];_0x4430=function(){return _0x573da5;};return _0x4430();}y=v([_(0x1,_0x47569c(_0x695c9f)),_(0x2,_0x58a08a),_(0x3,_0x47569c(_0x2052bc)),_(0x4,_0x47569c(_0x1e3c3a))],y);function b(_0x3566be,_0x50771c){const _0x577c33=_0x1dcd3f;return _0x50771c===_0x4d308d[_0x577c33(0x224)]||_0x50771c===_0x4d308d[_0x577c33(0x235)]?Error(_0x577c33(0x212)+_0x3566be+'\x22\x20while\x20collaboration\x20status\x20is\x20'+_0x50771c+'.'):null;}var x=class extends _0x29ab02{[_0x1dcd3f(0x1f4)](_0x2e2472){const _0x16599f=_0x1dcd3f;let _0x466fde=_0x2e2472[_0x16599f(0x203)](_0x1e3c3a);this[_0x16599f(0x1f1)](this[_0x16599f(0x21d)](this['Event']['CollaborationStatusChanged'],()=>{const _0x406858=_0x16599f;let _0x1d766f=new _0x2d9bb0(),_0x46b856=_0x466fde[_0x406858(0x237)]['subscribe'](_0x3a1454=>{const _0x446cc2=_0x406858;let _0x43e88e=_0x3a1454[_0x446cc2(0x1fe)][_0x446cc2(0x23a)](_0x3a0c22=>{const _0x215595=_0x446cc2;let _0x55115b={'unitId':_0x3a1454[_0x215595(0x230)],'status':_0x3a0c22};this['fireEvent'](this[_0x215595(0x208)][_0x215595(0x21c)],_0x55115b);});_0x1d766f[_0x446cc2(0x21a)](_0x44f995(_0x43e88e));});return _0x1d766f['add'](_0x44f995(_0x46b856)),_0x1d766f;}));}[_0x1dcd3f(0x229)](){const _0x45799=_0x1dcd3f;return this[_0x45799(0x23b)][_0x45799(0x228)](y,{'getWorkbook':_0x10e7b1=>this['getWorkbook'](_0x10e7b1),'getDocument':_0x4d609d=>this[_0x45799(0x1f7)](_0x4d609d),'getPresentation':_0x2918ba=>this[_0x45799(0x1ef)](_0x2918ba),'getBase':_0x3e6ed3=>this[_0x45799(0x1f0)](_0x3e6ed3),'getBoard':_0x350f98=>this['getBoard'](_0x350f98),'getPdf':_0x588de3=>this['getPdf'](_0x588de3)});}['loadServerUnit'](_0x419a69,_0x37aa11,_0x29d63d){const _0xc3ffe6=_0x1dcd3f;return this[_0xc3ffe6(0x23b)][_0xc3ffe6(0x203)](_0x4ed2da)[_0xc3ffe6(0x206)](_0x419a69,_0x37aa11,_0x29d63d);}[_0x1dcd3f(0x239)](_0x3cd2c2,_0x2b43a3,_0x1858d5){const _0x2d0640=_0x1dcd3f;return this[_0x2d0640(0x23b)][_0x2d0640(0x203)](_0x4ed2da)['loadUnitOfRevision'](_0x3cd2c2,_0x2b43a3,_0x1858d5);}};_0x29ab02[_0x1dcd3f(0x22a)](x);export{y as FCollaboration};
|
|
1
|
+
const _0x85e3d9=_0x49d1;(function(_0x122933,_0xb57bb){const _0x484f63=_0x49d1,_0x477f33=_0x122933();while(!![]){try{const _0x44acf9=parseInt(_0x484f63(0x188))/0x1*(parseInt(_0x484f63(0x1a7))/0x2)+parseInt(_0x484f63(0x17a))/0x3+parseInt(_0x484f63(0x18b))/0x4+parseInt(_0x484f63(0x1a3))/0x5+-parseInt(_0x484f63(0x17f))/0x6*(-parseInt(_0x484f63(0x1a1))/0x7)+-parseInt(_0x484f63(0x172))/0x8*(-parseInt(_0x484f63(0x19f))/0x9)+parseInt(_0x484f63(0x161))/0xa*(-parseInt(_0x484f63(0x187))/0xb);if(_0x44acf9===_0xb57bb)break;else _0x477f33['push'](_0x477f33['shift']());}catch(_0x1a53bd){_0x477f33['push'](_0x477f33['shift']());}}}(_0x17a7,0xd3464));import{CollaborationController as _0x3dfb96,CollaborationStatus as _0x50103e,DataLoaderService as _0x5efb66,MemberService as _0x411279}from'@univerjs-pro/collaboration-client';import{FBase as _0x383393,FEnum as _0x381755,FEventName as _0x1d5373,FUniver as _0x28a778}from'@univerjs/core/facade';import{DisposableCollection as _0x4e06f2,IUniverInstanceService as _0x206d69,Inject as _0x46c16f,Injector as _0x15c5fb,UniverInstanceType as _0x1c5868,toDisposable as _0xdfb3ce}from'@univerjs/core';import{distinctUntilChanged as _0x4dab85,switchMap as _0x4a2321}from'rxjs';var g=class extends _0x381755{get[_0x85e3d9(0x16c)](){return _0x50103e;}};_0x381755['extend'](g);var _=class extends _0x1d5373{get[_0x85e3d9(0x15f)](){const _0x20610e=_0x85e3d9;return _0x20610e(0x15f);}get[_0x85e3d9(0x178)](){const _0x2b5bbd=_0x85e3d9;return _0x2b5bbd(0x178);}get['CollaborationChangesetResend'](){const _0x33747e=_0x85e3d9;return _0x33747e(0x157);}};_0x1d5373['extend'](_);function v(_0x5b7f52,_0x169287){return function(_0x569d77,_0x3ae3f0){_0x169287(_0x569d77,_0x3ae3f0,_0x5b7f52);};}function y(_0x226d34,_0x4325e5,_0x329666,_0x5e116c){const _0x5587c2=_0x85e3d9;var _0x516a0d=arguments[_0x5587c2(0x176)],_0x57fcb6=_0x516a0d<0x3?_0x4325e5:_0x5e116c===null?_0x5e116c=Object[_0x5587c2(0x180)](_0x4325e5,_0x329666):_0x5e116c,_0x1c2bab;if(typeof Reflect==_0x5587c2(0x1a6)&&typeof Reflect[_0x5587c2(0x19e)]==_0x5587c2(0x1a8))_0x57fcb6=Reflect[_0x5587c2(0x19e)](_0x226d34,_0x4325e5,_0x329666,_0x5e116c);else{for(var _0x5163ce=_0x226d34[_0x5587c2(0x176)]-0x1;_0x5163ce>=0x0;_0x5163ce--)(_0x1c2bab=_0x226d34[_0x5163ce])&&(_0x57fcb6=(_0x516a0d<0x3?_0x1c2bab(_0x57fcb6):_0x516a0d>0x3?_0x1c2bab(_0x4325e5,_0x329666,_0x57fcb6):_0x1c2bab(_0x4325e5,_0x329666))||_0x57fcb6);}return _0x516a0d>0x3&&_0x57fcb6&&Object[_0x5587c2(0x199)](_0x4325e5,_0x329666,_0x57fcb6),_0x57fcb6;}function _0x17a7(){const _0x400f6d=['add','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','extend','ms.','timeout','loadDocAsync','_dataLoaderService','revert','UNIVER_DOC','fireEvent','elapsedMs','\x22\x20while\x20collaboration\x20status\x20is\x20','defineProperty','from','[FCollaboration]:\x20Unit\x20\x22','getBase','loadBaseAsync','decorate','94140zkUZFv','loadPdfAsync','11642148Dtrgeo','subscribe','3401930hqDnwE','conflict$','_resolveUnitId','object','112660pBRPeV','function','get','entityInit$','readyForCollab','unsyncedMutationCount','reject','UNIVER_SLIDE','loadUnit','getWorkbook','CollaborationChangesetResend','reason','getUnitId','UNIVER_BOARD','members$','status','getCollabEntities','getPdf','CollaborationStatusChanged','UNIVER_BASE','31777090fVLQBD','cacheCleared','loadUnitOfRevision','NOT_COLLAB','waitForRoom$','pipe','getBoard','hasWritePending','registerEventHandler','Event','attempt','CollaborationStatus','disposeWithMe','getCollaboration','_initialize','getDocument','getCollaborationStatus','680WbUWwG','message','changesetResend$','unitID','length','unsubscribe','CollaborationConflict','status$','4813512viTSFU','forEach','state','\x22\x20after\x20','_univerInstanceService','6jYILEG','getOwnPropertyDescriptor','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','CONFLICT','getPresentation','nextDelayMs','loadSlideAsync','_injector','22SXEHbx','17TAmBQz','getCollabEntity','_handler','5704136WeXGLu','_collaborationController'];_0x17a7=function(){return _0x400f6d;};return _0x17a7();}let b=class extends _0x383393{constructor(_0x574221,_0x9d19e4,_0x43aff5,_0x1a5ff5,_0x27a411){const _0x5975c1=_0x85e3d9;super(),this[_0x5975c1(0x18a)]=_0x574221,this[_0x5975c1(0x186)]=_0x9d19e4,this[_0x5975c1(0x17e)]=_0x43aff5,this[_0x5975c1(0x193)]=_0x1a5ff5,this[_0x5975c1(0x18c)]=_0x27a411;}async['loadSheetAsync'](_0x417d8d,_0x4c65ce){const _0x120516=_0x85e3d9;return await this[_0x120516(0x193)]['loadUnit'](_0x417d8d,_0x1c5868['UNIVER_SHEET'],void 0x0,_0x4c65ce)?(await this[_0x120516(0x18c)][_0x120516(0x151)](_0x417d8d),this[_0x120516(0x18a)][_0x120516(0x156)](_0x417d8d)):null;}async[_0x85e3d9(0x192)](_0x2f210b,_0x2f2c81){const _0x336083=_0x85e3d9;return await this[_0x336083(0x193)][_0x336083(0x155)](_0x2f210b,_0x1c5868[_0x336083(0x195)],void 0x0,_0x2f2c81)?(await this[_0x336083(0x18c)][_0x336083(0x151)](_0x2f210b),this[_0x336083(0x18a)][_0x336083(0x170)](_0x2f210b)):null;}async[_0x85e3d9(0x19d)](_0x1fed92,_0x29eb4e){const _0x11fece=_0x85e3d9;return await this[_0x11fece(0x193)]['loadUnit'](_0x1fed92,_0x1c5868[_0x11fece(0x160)],void 0x0,_0x29eb4e)?(await this[_0x11fece(0x18c)][_0x11fece(0x151)](_0x1fed92),this['_handler'][_0x11fece(0x19c)](_0x1fed92)):null;}async[_0x85e3d9(0x185)](_0x5c824b,_0x6e8ec7){const _0x25e468=_0x85e3d9;return await this['_dataLoaderService'][_0x25e468(0x155)](_0x5c824b,_0x1c5868[_0x25e468(0x154)],void 0x0,_0x6e8ec7)?(await this[_0x25e468(0x18c)][_0x25e468(0x151)](_0x5c824b),this[_0x25e468(0x18a)][_0x25e468(0x183)](_0x5c824b)):null;}async['loadBoardAsync'](_0x59cb3e,_0x3c4cec){const _0x5c6b17=_0x85e3d9;return await this[_0x5c6b17(0x193)][_0x5c6b17(0x155)](_0x59cb3e,_0x1c5868[_0x5c6b17(0x15a)],void 0x0,_0x3c4cec)?(await this['_collaborationController'][_0x5c6b17(0x151)](_0x59cb3e),this[_0x5c6b17(0x18a)]['getBoard'](_0x59cb3e)):null;}async[_0x85e3d9(0x1a0)](_0x5b32cd,_0xf0d8ee){const _0x3e381f=_0x85e3d9;return await this[_0x3e381f(0x193)][_0x3e381f(0x155)](_0x5b32cd,_0x1c5868['UNIVER_PDF'],void 0x0,_0xf0d8ee)?(await this[_0x3e381f(0x18c)][_0x3e381f(0x151)](_0x5b32cd),this[_0x3e381f(0x18a)][_0x3e381f(0x15e)](_0x5b32cd)):null;}['subscribeCollaborators'](_0x1f539e,_0x283d18){const _0x649cc3=_0x85e3d9;let _0x46fb7f=this[_0x649cc3(0x186)][_0x649cc3(0x14f)](_0x411279)[_0x649cc3(0x165)](_0x1f539e)['pipe'](_0x4a2321(_0x46a419=>_0x46a419[_0x649cc3(0x15b)]))[_0x649cc3(0x1a2)](_0x5ab7c7=>_0x283d18(Array[_0x649cc3(0x19a)](_0x5ab7c7['values']())));return _0xdfb3ce(_0x46fb7f);}[_0x85e3d9(0x171)](_0x168add){const _0x56249b=_0x85e3d9;let _0x2a1d1b=this[_0x56249b(0x1a5)](_0x168add);if(!_0x2a1d1b)return _0x50103e['NOT_COLLAB'];let _0x4a7592=this[_0x56249b(0x18c)][_0x56249b(0x189)](_0x2a1d1b);return(_0x4a7592==null?void 0x0:_0x4a7592[_0x56249b(0x17c)]['status'])??_0x50103e[_0x56249b(0x164)];}[_0x85e3d9(0x168)](_0x91e821){const _0x4c7ec8=_0x85e3d9;let _0x44a1ab=this['_resolveUnitId'](_0x91e821);return _0x44a1ab?this[_0x4c7ec8(0x18c)][_0x4c7ec8(0x168)](_0x44a1ab):!0x1;}['flush'](_0x44e29b,_0x5238a4={}){const _0x331d23=_0x85e3d9;let _0x47e689=this[_0x331d23(0x1a5)](_0x44e29b);if(!_0x47e689)return Promise[_0x331d23(0x153)](Error('[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.'));let _0x1e05dd=this[_0x331d23(0x18c)][_0x331d23(0x189)](_0x47e689);if(!_0x1e05dd)return Promise[_0x331d23(0x153)](Error(_0x331d23(0x19b)+_0x47e689+_0x331d23(0x18e)));let _0x27f2e5=_0x1e05dd['state'][_0x331d23(0x15c)];if(_0x27f2e5===_0x50103e['SYNCED'])return Promise['resolve']();let _0x58e54f=x(_0x47e689,_0x27f2e5);if(_0x58e54f)return Promise[_0x331d23(0x153)](_0x58e54f);let _0x181099=_0x5238a4[_0x331d23(0x191)]??0x7530;return new Promise((_0xf11120,_0x8fb1c0)=>{const _0x10f99c=_0x331d23;let _0x35218d=!0x1,_0xaf234a=null,_0x47ca26=setTimeout(()=>{const _0x57b772=_0x49d1;_0x35218d=!0x0,_0xaf234a==null||_0xaf234a[_0x57b772(0x177)](),_0x8fb1c0(Error('[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22'+_0x47e689+_0x57b772(0x17d)+_0x181099+_0x57b772(0x190)));},_0x181099),_0x561da3=()=>{_0x35218d=!0x0,clearTimeout(_0x47ca26),_0xaf234a==null||_0xaf234a['unsubscribe']();};_0xaf234a=_0x1e05dd[_0x10f99c(0x179)][_0x10f99c(0x1a2)](_0x2d4e78=>{if(_0x35218d)return;if(_0x2d4e78===_0x50103e['SYNCED']){_0x561da3(),_0xf11120();return;}let _0x28a6c6=x(_0x47e689,_0x2d4e78);_0x28a6c6&&(_0x561da3(),_0x8fb1c0(_0x28a6c6));});});}[_0x85e3d9(0x1a5)](_0x349d5f){const _0x3251a4=_0x85e3d9;var _0x428fab;return _0x349d5f||((_0x428fab=this[_0x3251a4(0x17e)]['getFocusedUnit']())==null?void 0x0:_0x428fab[_0x3251a4(0x159)]());}};b=y([v(0x1,_0x46c16f(_0x15c5fb)),v(0x2,_0x206d69),v(0x3,_0x46c16f(_0x5efb66)),v(0x4,_0x46c16f(_0x3dfb96))],b);function x(_0x3da502,_0x40c731){const _0x161bfa=_0x85e3d9;return _0x40c731===_0x50103e[_0x161bfa(0x182)]||_0x40c731===_0x50103e[_0x161bfa(0x164)]?Error(_0x161bfa(0x181)+_0x3da502+_0x161bfa(0x198)+_0x40c731+'.'):null;}function _0x49d1(_0x52ccf6,_0x19911f){_0x52ccf6=_0x52ccf6-0x14f;const _0x17a772=_0x17a7();let _0x49d1f4=_0x17a772[_0x52ccf6];return _0x49d1f4;}var S=class extends _0x28a778{[_0x85e3d9(0x16f)](_0x4046a8){const _0x4e5bfd=_0x85e3d9;let _0x19a4f6=_0x4046a8[_0x4e5bfd(0x14f)](_0x3dfb96);this['disposeWithMe'](this[_0x4e5bfd(0x169)](this['Event'][_0x4e5bfd(0x15f)],()=>{const _0x25abb6=_0x4e5bfd;let _0x33529e=new _0x4e06f2(),_0x281465=_0x6e0e7c=>{const _0x4ea755=_0x49d1;let _0x2070fd=_0x6e0e7c['status$'][_0x4ea755(0x166)](_0x4dab85())[_0x4ea755(0x1a2)](_0x2cfe08=>{const _0x383121=_0x4ea755;let _0x1523e2={'unitId':_0x6e0e7c[_0x383121(0x175)],'status':_0x2cfe08};this[_0x383121(0x196)](this[_0x383121(0x16a)][_0x383121(0x15f)],_0x1523e2);});_0x33529e[_0x4ea755(0x18d)](_0xdfb3ce(_0x2070fd));};return _0x19a4f6[_0x25abb6(0x15d)]()[_0x25abb6(0x17b)](_0x281465),_0x33529e['add'](_0xdfb3ce(_0x19a4f6['entityInit$'][_0x25abb6(0x1a2)](_0x281465))),_0x33529e;})),this[_0x4e5bfd(0x16d)](this[_0x4e5bfd(0x169)](this[_0x4e5bfd(0x16a)][_0x4e5bfd(0x178)],()=>{const _0x3f3a08=_0x4e5bfd;let _0xda08fd=new _0x4e06f2(),_0x3fad69=_0xb55514=>{const _0x260bca=_0x49d1;let _0x472f60=_0xb55514[_0x260bca(0x1a4)]['subscribe'](_0x1cdcf6=>{const _0x555e1c=_0x260bca;let _0x5b1599={'unitId':_0x1cdcf6[_0x555e1c(0x175)],'reason':_0x1cdcf6[_0x555e1c(0x158)],'message':_0x1cdcf6[_0x555e1c(0x173)],'revert':_0x1cdcf6[_0x555e1c(0x194)],'localChanges':_0x1cdcf6['localChanges'],'cacheCleared':_0x1cdcf6[_0x555e1c(0x162)]};this[_0x555e1c(0x196)](this['Event'][_0x555e1c(0x178)],_0x5b1599);});_0xda08fd[_0x260bca(0x18d)](_0xdfb3ce(_0x472f60));};return _0x19a4f6[_0x3f3a08(0x15d)]()[_0x3f3a08(0x17b)](_0x3fad69),_0xda08fd[_0x3f3a08(0x18d)](_0xdfb3ce(_0x19a4f6[_0x3f3a08(0x150)]['subscribe'](_0x3fad69))),_0xda08fd;})),this[_0x4e5bfd(0x16d)](this['registerEventHandler'](this[_0x4e5bfd(0x16a)][_0x4e5bfd(0x157)],()=>{const _0x5a44d6=_0x4e5bfd;let _0x55e789=new _0x4e06f2(),_0x27fd33=_0x40f1cc=>{const _0x313a98=_0x49d1;let _0x97ba2e=_0x40f1cc[_0x313a98(0x174)]['subscribe'](_0xeffdac=>{const _0x3d40a4=_0x313a98;let _0x40f6f1={'unitId':_0xeffdac[_0x3d40a4(0x175)],'reqId':_0xeffdac['reqId'],'reason':_0xeffdac[_0x3d40a4(0x158)],'attempt':_0xeffdac[_0x3d40a4(0x16b)],'elapsedMs':_0xeffdac[_0x3d40a4(0x197)],'unsyncedMutationCount':_0xeffdac[_0x3d40a4(0x152)],'nextDelayMs':_0xeffdac[_0x3d40a4(0x184)]};this[_0x3d40a4(0x196)](this[_0x3d40a4(0x16a)][_0x3d40a4(0x157)],_0x40f6f1);});_0x55e789[_0x313a98(0x18d)](_0xdfb3ce(_0x97ba2e));};return _0x19a4f6[_0x5a44d6(0x15d)]()[_0x5a44d6(0x17b)](_0x27fd33),_0x55e789[_0x5a44d6(0x18d)](_0xdfb3ce(_0x19a4f6['entityInit$'][_0x5a44d6(0x1a2)](_0x27fd33))),_0x55e789;}));}[_0x85e3d9(0x16e)](){const _0x15b635=_0x85e3d9;return this[_0x15b635(0x186)]['createInstance'](b,{'getWorkbook':_0x3cee06=>this[_0x15b635(0x156)](_0x3cee06),'getDocument':_0x32097a=>this[_0x15b635(0x170)](_0x32097a),'getPresentation':_0x32b67b=>this['getPresentation'](_0x32b67b),'getBase':_0x4622a0=>this[_0x15b635(0x19c)](_0x4622a0),'getBoard':_0x45e19c=>this[_0x15b635(0x167)](_0x45e19c),'getPdf':_0x58e413=>this['getPdf'](_0x58e413)});}['loadServerUnit'](_0x51fc42,_0x4f92b6,_0x13d41e){const _0xcd179a=_0x85e3d9;return this[_0xcd179a(0x186)][_0xcd179a(0x14f)](_0x5efb66)[_0xcd179a(0x155)](_0x51fc42,_0x4f92b6,_0x13d41e);}['loadServerUnitOfRevision'](_0x1c81a5,_0x5745d8,_0xcde9ba){const _0x134b46=_0x85e3d9;return this[_0x134b46(0x186)][_0x134b46(0x14f)](_0x5efb66)[_0x134b46(0x163)](_0x1c81a5,_0x5745d8,_0xcde9ba);}};_0x28a778[_0x85e3d9(0x18f)](S);export{b as FCollaboration};
|