@univerjs-pro/collaboration-client 1.2.0 → 1.3.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/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/es/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x47cf02=_0x4882;function _0x2711(){const _0xf6a9ef=['同步中...','編輯衝突','加入協作失敗,您的編輯將暫存於本機。','13393630VWDkij','8150085cndmho','協作文件數量超過限制,您的編輯將暫存於本機。','1260936wObPyg','協作衝突','已離線,編輯將儲存在本機','連線失敗,將在稍後重試連線。','4qxTvQj','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','連線失敗,請檢查您的網路。','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。','8447455sVDbyU','42vRsuYc','4hilIFe','沒有協作權限,您的編輯將暫存於本機。','653879Qpoeze','認證錯誤','正在擷取伺服器資料...','5998856qVEaSl','您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。','4683261igwXCg','由於協作房間已關閉,編輯權限已被收回。','加入協作失敗,請稍後重試,您的編輯將暫存於本機。'];_0x2711=function(){return _0xf6a9ef;};return _0x2711();}function _0x4882(_0x4eea93,_0x2a7876){_0x4eea93=_0x4eea93-0xb2;const _0x27114e=_0x2711();let _0x488297=_0x27114e[_0x4eea93];return _0x488297;}(function(_0x52f273,_0x2754a0){const _0xbb5d1f=_0x4882,_0x2eacd7=_0x52f273();while(!![]){try{const _0x285f2d=-parseInt(_0xbb5d1f(0xbc))/0x1*(parseInt(_0xbb5d1f(0xb3))/0x2)+parseInt(_0xbb5d1f(0xc1))/0x3*(parseInt(_0xbb5d1f(0xba))/0x4)+parseInt(_0xbb5d1f(0xb8))/0x5+parseInt(_0xbb5d1f(0xca))/0x6*(-parseInt(_0xbb5d1f(0xb9))/0x7)+parseInt(_0xbb5d1f(0xbf))/0x8+parseInt(_0xbb5d1f(0xc8))/0x9+-parseInt(_0xbb5d1f(0xc7))/0xa;if(_0x285f2d===_0x2754a0)break;else _0x2eacd7['push'](_0x2eacd7['shift']());}catch(_0x9acf2f){_0x2eacd7['push'](_0x2eacd7['shift']());}}}(_0x2711,0xf3a37));const e={'collaboration-client':{'collabClient':{'tooltip':{'reconnect':'點擊重新連線'}},'collabStatus':{'fetchMiss':_0x47cf02(0xbe),'conflict':_0x47cf02(0xc5),'notCollab':'本機檔案','synced':'已同步','syncing':_0x47cf02(0xc4),'offline':_0x47cf02(0xcc)},'session':{'connection-failed':_0x47cf02(0xb5),'will-retry':_0x47cf02(0xb2),'room-full':'此文件協作人數已達上限,您的編輯將暫存於本機。','join-failed':_0x47cf02(0xc3),'room-not-exists':_0x47cf02(0xc6),'room-permission-denied':_0x47cf02(0xbb),'room-cnt-exceeds':_0x47cf02(0xc9),'collaboration-timeout':'伺服器未回應協作請求,您的編輯將儲存在本機。'},'conflict':{'title':_0x47cf02(0xcb),'content':_0x47cf02(0xb4)},'permission':{'title':_0x47cf02(0xbd),'content':_0x47cf02(0xb7)},'collaboration':{'single-unit':{'warning':_0x47cf02(0xb6)},'closeRoom':_0x47cf02(0xc2)},'auth':{'needGotoLoginAlert':_0x47cf02(0xc0)}}};export{e as default};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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};
|
|
1
|
+
const _0x52a11a=_0x5b0f;(function(_0x556e50,_0x427869){const _0x25da29=_0x5b0f,_0x4e21c6=_0x556e50();while(!![]){try{const _0x43c1f7=parseInt(_0x25da29(0x1a5))/0x1+-parseInt(_0x25da29(0x1b2))/0x2*(-parseInt(_0x25da29(0x1c9))/0x3)+-parseInt(_0x25da29(0x187))/0x4+-parseInt(_0x25da29(0x196))/0x5+-parseInt(_0x25da29(0x197))/0x6*(parseInt(_0x25da29(0x19d))/0x7)+-parseInt(_0x25da29(0x1ac))/0x8+-parseInt(_0x25da29(0x183))/0x9*(-parseInt(_0x25da29(0x1d0))/0xa);if(_0x43c1f7===_0x427869)break;else _0x4e21c6['push'](_0x4e21c6['shift']());}catch(_0x199243){_0x4e21c6['push'](_0x4e21c6['shift']());}}}(_0x1eef,0xad347));import{CollaborationController as _0x2a9c4a,CollaborationStatus as _0x16720b,DataLoaderService as _0xf62d64,MemberService as _0x565356}from'@univerjs-pro/collaboration-client';import{FBase as _0x3f8c6e,FEnum as _0x5c2b23,FEventName as _0x1063f1,FUniver as _0x584241}from'@univerjs/core/facade';function _0x1eef(){const _0x19280b=['3BzbIyQ','decorate','CollaborationConflict','loadDocAsync','_collaborationController','ms.','status$','1470mZXNoP','_injector','UNIVER_PDF','subscribeCollaborators','UNIVER_SHEET','disposeWithMe','getPdf','getCollabEntities','entityInit$','registerEventHandler','loadSheetAsync','119628TOjZlx','Event','reject','getUnitId','1139280RVwtgT','forEach','fireEvent','_univerInstanceService','function','_handler','getFocusedUnit','changesetResend$','createInstance','getCollaborationStatus','NOT_COLLAB','status','readyForCollab','SYNCED','length','5570060Txwdlr','2044806sYIROK','CollaborationChangesetResend','loadUnitOfRevision','nextDelayMs','UNIVER_SLIDE','elapsedMs','7MYNlfY','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','message','attempt','loadSlideAsync','_resolveUnitId','from','943663KUGIIy','hasWritePending','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','[FCollaboration]:\x20Unit\x20\x22','UNIVER_BASE','subscribe','loadServerUnit','8869128fBNRzJ','state','CollaborationStatusChanged','getWorkbook','extend','waitForRoom$','1320268mNSrSh','unsubscribe','add','loadPdfAsync','object','unitID','getDocument','getBase','loadUnit','timeout','pipe','members$','unsyncedMutationCount','reqId','cacheCleared','_dataLoaderService','getPresentation','UNIVER_DOC','\x22\x20after\x20','get','defineProperty','CONFLICT','getBoard'];_0x1eef=function(){return _0x19280b;};return _0x1eef();}import{DisposableCollection as _0x1f99d5,IUniverInstanceService as _0x1a3621,Inject as _0x51465c,Injector as _0x557a8c,UniverInstanceType as _0x5c13ce,toDisposable as _0x210adf}from'@univerjs/core';import{distinctUntilChanged as _0x48038c,switchMap as _0x22c341}from'rxjs';var g=class extends _0x5c2b23{get['CollaborationStatus'](){return _0x16720b;}};_0x5c2b23[_0x52a11a(0x1b0)](g);var _=class extends _0x1063f1{get[_0x52a11a(0x1ae)](){const _0x3d8502=_0x52a11a;return _0x3d8502(0x1ae);}get[_0x52a11a(0x1cb)](){const _0x1772ce=_0x52a11a;return _0x1772ce(0x1cb);}get[_0x52a11a(0x198)](){const _0x39173d=_0x52a11a;return _0x39173d(0x198);}};_0x1063f1[_0x52a11a(0x1b0)](_);function v(_0x3e1195,_0x2d07b0){return function(_0x27642f,_0x1e7a31){_0x2d07b0(_0x27642f,_0x1e7a31,_0x3e1195);};}function y(_0x1f6be2,_0x2842ea,_0x269a63,_0x230a0e){const _0x4875b5=_0x52a11a;var _0x224c16=arguments[_0x4875b5(0x195)],_0xef470a=_0x224c16<0x3?_0x2842ea:_0x230a0e===null?_0x230a0e=Object['getOwnPropertyDescriptor'](_0x2842ea,_0x269a63):_0x230a0e,_0x5357cf;if(typeof Reflect==_0x4875b5(0x1b6)&&typeof Reflect[_0x4875b5(0x1ca)]==_0x4875b5(0x18b))_0xef470a=Reflect['decorate'](_0x1f6be2,_0x2842ea,_0x269a63,_0x230a0e);else{for(var _0x258187=_0x1f6be2['length']-0x1;_0x258187>=0x0;_0x258187--)(_0x5357cf=_0x1f6be2[_0x258187])&&(_0xef470a=(_0x224c16<0x3?_0x5357cf(_0xef470a):_0x224c16>0x3?_0x5357cf(_0x2842ea,_0x269a63,_0xef470a):_0x5357cf(_0x2842ea,_0x269a63))||_0xef470a);}return _0x224c16>0x3&&_0xef470a&&Object[_0x4875b5(0x1c6)](_0x2842ea,_0x269a63,_0xef470a),_0xef470a;}let b=class extends _0x3f8c6e{constructor(_0x21b164,_0x2989c5,_0x3d2df7,_0x5ab726,_0x37786a){const _0x419c77=_0x52a11a;super(),this[_0x419c77(0x18c)]=_0x21b164,this[_0x419c77(0x1d1)]=_0x2989c5,this[_0x419c77(0x18a)]=_0x3d2df7,this[_0x419c77(0x1c1)]=_0x5ab726,this[_0x419c77(0x1cd)]=_0x37786a;}async[_0x52a11a(0x182)](_0x2905b6,_0x3b6d54){const _0x3e3659=_0x52a11a;return await this['_dataLoaderService'][_0x3e3659(0x1ba)](_0x2905b6,_0x5c13ce[_0x3e3659(0x17c)],void 0x0,_0x3b6d54)?(await this[_0x3e3659(0x1cd)]['readyForCollab'](_0x2905b6),this['_handler']['getWorkbook'](_0x2905b6)):null;}async[_0x52a11a(0x1cc)](_0x1c65db,_0x354cc5){const _0x2a0952=_0x52a11a;return await this[_0x2a0952(0x1c1)][_0x2a0952(0x1ba)](_0x1c65db,_0x5c13ce[_0x2a0952(0x1c3)],void 0x0,_0x354cc5)?(await this[_0x2a0952(0x1cd)][_0x2a0952(0x193)](_0x1c65db),this[_0x2a0952(0x18c)][_0x2a0952(0x1b8)](_0x1c65db)):null;}async['loadBaseAsync'](_0x952ef0,_0x3f5e78){const _0x52d6ba=_0x52a11a;return await this[_0x52d6ba(0x1c1)][_0x52d6ba(0x1ba)](_0x952ef0,_0x5c13ce[_0x52d6ba(0x1a9)],void 0x0,_0x3f5e78)?(await this[_0x52d6ba(0x1cd)][_0x52d6ba(0x193)](_0x952ef0),this[_0x52d6ba(0x18c)][_0x52d6ba(0x1b9)](_0x952ef0)):null;}async[_0x52a11a(0x1a2)](_0x2d965d,_0x56a4d0){const _0x2789cc=_0x52a11a;return await this[_0x2789cc(0x1c1)][_0x2789cc(0x1ba)](_0x2d965d,_0x5c13ce[_0x2789cc(0x19b)],void 0x0,_0x56a4d0)?(await this[_0x2789cc(0x1cd)]['readyForCollab'](_0x2d965d),this[_0x2789cc(0x18c)][_0x2789cc(0x1c2)](_0x2d965d)):null;}async['loadBoardAsync'](_0x317246,_0x21fc0f){const _0x56cb3b=_0x52a11a;return await this[_0x56cb3b(0x1c1)]['loadUnit'](_0x317246,_0x5c13ce['UNIVER_BOARD'],void 0x0,_0x21fc0f)?(await this[_0x56cb3b(0x1cd)][_0x56cb3b(0x193)](_0x317246),this['_handler'][_0x56cb3b(0x1c8)](_0x317246)):null;}async[_0x52a11a(0x1b5)](_0x435aca,_0x245188){const _0x51005e=_0x52a11a;return await this[_0x51005e(0x1c1)][_0x51005e(0x1ba)](_0x435aca,_0x5c13ce[_0x51005e(0x1d2)],void 0x0,_0x245188)?(await this['_collaborationController'][_0x51005e(0x193)](_0x435aca),this[_0x51005e(0x18c)]['getPdf'](_0x435aca)):null;}[_0x52a11a(0x1d3)](_0x1af0c1,_0x5736ee){const _0x166df3=_0x52a11a;let _0x4d0289=this[_0x166df3(0x1d1)]['get'](_0x565356)[_0x166df3(0x1b1)](_0x1af0c1)[_0x166df3(0x1bc)](_0x22c341(_0x848050=>_0x848050[_0x166df3(0x1bd)]))['subscribe'](_0xcdc8f1=>_0x5736ee(Array[_0x166df3(0x1a4)](_0xcdc8f1['values']())));return _0x210adf(_0x4d0289);}[_0x52a11a(0x190)](_0x1617c6){const _0x1787b2=_0x52a11a;let _0x4710c6=this[_0x1787b2(0x1a3)](_0x1617c6);if(!_0x4710c6)return _0x16720b[_0x1787b2(0x191)];let _0x351794=this['_collaborationController']['getCollabEntity'](_0x4710c6);return(_0x351794==null?void 0x0:_0x351794[_0x1787b2(0x1ad)][_0x1787b2(0x192)])??_0x16720b['NOT_COLLAB'];}[_0x52a11a(0x1a6)](_0x3a4054){const _0x169c9e=_0x52a11a;let _0x408c54=this[_0x169c9e(0x1a3)](_0x3a4054);return _0x408c54?this[_0x169c9e(0x1cd)]['hasWritePending'](_0x408c54):!0x1;}['flush'](_0x24ec58,_0x5e782e={}){const _0xa7f943=_0x52a11a;let _0x3e5c1f=this[_0xa7f943(0x1a3)](_0x24ec58);if(!_0x3e5c1f)return Promise['reject'](Error('[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.'));let _0x209bfa=this['_collaborationController']['getCollabEntity'](_0x3e5c1f);if(!_0x209bfa)return Promise['reject'](Error(_0xa7f943(0x1a8)+_0x3e5c1f+_0xa7f943(0x19f)));let _0x262d8b=_0x209bfa[_0xa7f943(0x1ad)][_0xa7f943(0x192)];if(_0x262d8b===_0x16720b['SYNCED'])return Promise['resolve']();let _0x92a021=x(_0x3e5c1f,_0x262d8b);if(_0x92a021)return Promise[_0xa7f943(0x185)](_0x92a021);let _0x44ac68=_0x5e782e[_0xa7f943(0x1bb)]??0x7530;return new Promise((_0x1501b2,_0x528703)=>{const _0x4ff01f=_0xa7f943;let _0x4cf573=!0x1,_0x13b368=null,_0x23ffb9=setTimeout(()=>{const _0x1828c3=_0x5b0f;_0x4cf573=!0x0,_0x13b368==null||_0x13b368['unsubscribe'](),_0x528703(Error(_0x1828c3(0x1a7)+_0x3e5c1f+_0x1828c3(0x1c4)+_0x44ac68+_0x1828c3(0x1ce)));},_0x44ac68),_0x20f5e9=()=>{const _0x100bb6=_0x5b0f;_0x4cf573=!0x0,clearTimeout(_0x23ffb9),_0x13b368==null||_0x13b368[_0x100bb6(0x1b3)]();};_0x13b368=_0x209bfa[_0x4ff01f(0x1cf)][_0x4ff01f(0x1aa)](_0x2b667e=>{const _0x580b55=_0x4ff01f;if(_0x4cf573)return;if(_0x2b667e===_0x16720b[_0x580b55(0x194)]){_0x20f5e9(),_0x1501b2();return;}let _0x218d01=x(_0x3e5c1f,_0x2b667e);_0x218d01&&(_0x20f5e9(),_0x528703(_0x218d01));});});}['_resolveUnitId'](_0xcad397){const _0x3b888f=_0x52a11a;var _0xebb09a;return _0xcad397||((_0xebb09a=this['_univerInstanceService'][_0x3b888f(0x18d)]())==null?void 0x0:_0xebb09a[_0x3b888f(0x186)]());}};b=y([v(0x1,_0x51465c(_0x557a8c)),v(0x2,_0x1a3621),v(0x3,_0x51465c(_0xf62d64)),v(0x4,_0x51465c(_0x2a9c4a))],b);function x(_0x12105a,_0x108dda){const _0x2d8402=_0x52a11a;return _0x108dda===_0x16720b[_0x2d8402(0x1c7)]||_0x108dda===_0x16720b[_0x2d8402(0x191)]?Error(_0x2d8402(0x19e)+_0x12105a+'\x22\x20while\x20collaboration\x20status\x20is\x20'+_0x108dda+'.'):null;}var S=class extends _0x584241{['_initialize'](_0x548674){const _0x316e23=_0x52a11a;let _0x457b9a=_0x548674['get'](_0x2a9c4a);this['disposeWithMe'](this[_0x316e23(0x181)](this['Event'][_0x316e23(0x1ae)],()=>{const _0x51aeb0=_0x316e23;let _0x53c751=new _0x1f99d5(),_0x2c7c03=_0x23c73d=>{const _0x3df1c0=_0x5b0f;let _0x3998d1=_0x23c73d[_0x3df1c0(0x1cf)]['pipe'](_0x48038c())[_0x3df1c0(0x1aa)](_0x237680=>{const _0x5dce06=_0x3df1c0;let _0x3b0179={'unitId':_0x23c73d[_0x5dce06(0x1b7)],'status':_0x237680};this[_0x5dce06(0x189)](this[_0x5dce06(0x184)][_0x5dce06(0x1ae)],_0x3b0179);});_0x53c751['add'](_0x210adf(_0x3998d1));};return _0x457b9a[_0x51aeb0(0x17f)]()[_0x51aeb0(0x188)](_0x2c7c03),_0x53c751[_0x51aeb0(0x1b4)](_0x210adf(_0x457b9a[_0x51aeb0(0x180)]['subscribe'](_0x2c7c03))),_0x53c751;})),this['disposeWithMe'](this[_0x316e23(0x181)](this['Event'][_0x316e23(0x1cb)],()=>{const _0x4b20ec=_0x316e23;let _0x128637=new _0x1f99d5(),_0x2f726f=_0x145760=>{const _0x1dee0d=_0x5b0f;let _0x35888a=_0x145760['conflict$']['subscribe'](_0x129e0f=>{const _0x430730=_0x5b0f;let _0x16711f={'unitId':_0x129e0f[_0x430730(0x1b7)],'reason':_0x129e0f['reason'],'message':_0x129e0f[_0x430730(0x1a0)],'revert':_0x129e0f['revert'],'localChanges':_0x129e0f['localChanges'],'cacheCleared':_0x129e0f[_0x430730(0x1c0)]};this[_0x430730(0x189)](this[_0x430730(0x184)][_0x430730(0x1cb)],_0x16711f);});_0x128637[_0x1dee0d(0x1b4)](_0x210adf(_0x35888a));};return _0x457b9a['getCollabEntities']()[_0x4b20ec(0x188)](_0x2f726f),_0x128637['add'](_0x210adf(_0x457b9a['entityInit$']['subscribe'](_0x2f726f))),_0x128637;})),this[_0x316e23(0x17d)](this[_0x316e23(0x181)](this[_0x316e23(0x184)][_0x316e23(0x198)],()=>{const _0x25a8f3=_0x316e23;let _0x1e3ea6=new _0x1f99d5(),_0x334487=_0x52b21a=>{const _0x438bc0=_0x5b0f;let _0x243d76=_0x52b21a[_0x438bc0(0x18e)][_0x438bc0(0x1aa)](_0x8e9f83=>{const _0x6fcd7c=_0x438bc0;let _0x14eaa6={'unitId':_0x8e9f83[_0x6fcd7c(0x1b7)],'reqId':_0x8e9f83[_0x6fcd7c(0x1bf)],'reason':_0x8e9f83['reason'],'attempt':_0x8e9f83[_0x6fcd7c(0x1a1)],'elapsedMs':_0x8e9f83[_0x6fcd7c(0x19c)],'unsyncedMutationCount':_0x8e9f83[_0x6fcd7c(0x1be)],'nextDelayMs':_0x8e9f83[_0x6fcd7c(0x19a)]};this['fireEvent'](this['Event'][_0x6fcd7c(0x198)],_0x14eaa6);});_0x1e3ea6[_0x438bc0(0x1b4)](_0x210adf(_0x243d76));};return _0x457b9a['getCollabEntities']()[_0x25a8f3(0x188)](_0x334487),_0x1e3ea6[_0x25a8f3(0x1b4)](_0x210adf(_0x457b9a[_0x25a8f3(0x180)]['subscribe'](_0x334487))),_0x1e3ea6;}));}['getCollaboration'](){const _0x3e65c8=_0x52a11a;return this[_0x3e65c8(0x1d1)][_0x3e65c8(0x18f)](b,{'getWorkbook':_0x2eb2dd=>this[_0x3e65c8(0x1af)](_0x2eb2dd),'getDocument':_0x1b8a2a=>this[_0x3e65c8(0x1b8)](_0x1b8a2a),'getPresentation':_0x33de63=>this[_0x3e65c8(0x1c2)](_0x33de63),'getBase':_0x189809=>this['getBase'](_0x189809),'getBoard':_0xdc6ec9=>this[_0x3e65c8(0x1c8)](_0xdc6ec9),'getPdf':_0x324c29=>this[_0x3e65c8(0x17e)](_0x324c29)});}[_0x52a11a(0x1ab)](_0x30227b,_0x2aa8bf,_0x1619e6){const _0x92d104=_0x52a11a;return this['_injector'][_0x92d104(0x1c5)](_0xf62d64)[_0x92d104(0x1ba)](_0x30227b,_0x2aa8bf,_0x1619e6);}['loadServerUnitOfRevision'](_0x19b488,_0x228df1,_0x7ce1a7){const _0x53449e=_0x52a11a;return this['_injector'][_0x53449e(0x1c5)](_0xf62d64)[_0x53449e(0x199)](_0x19b488,_0x228df1,_0x7ce1a7);}};_0x584241[_0x52a11a(0x1b0)](S);function _0x5b0f(_0x2d66c8,_0xbe6887){_0x2d66c8=_0x2d66c8-0x17c;const _0x1eef7d=_0x1eef();let _0x5b0f40=_0x1eef7d[_0x2d66c8];return _0x5b0f40;}export{b as FCollaboration};
|