@univerjs-pro/collaboration-client 1.3.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/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/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x18465f=_0x33a5;(function(_0x1289df,_0x153383){const _0x1f7bad=_0x33a5,_0x3a6530=_0x1289df();while(!![]){try{const _0xa46de9=-parseInt(_0x1f7bad(0xbf))/0x1+parseInt(_0x1f7bad(0xcb))/0x2+-parseInt(_0x1f7bad(0xba))/0x3*(parseInt(_0x1f7bad(0xd5))/0x4)+-parseInt(_0x1f7bad(0xc7))/0x5*(-parseInt(_0x1f7bad(0xca))/0x6)+parseInt(_0x1f7bad(0xc9))/0x7+parseInt(_0x1f7bad(0xd6))/0x8*(-parseInt(_0x1f7bad(0xd0))/0x9)+-parseInt(_0x1f7bad(0xc6))/0xa*(parseInt(_0x1f7bad(0xbe))/0xb);if(_0xa46de9===_0x153383)break;else _0x3a6530['push'](_0x3a6530['shift']());}catch(_0x443dc8){_0x3a6530['push'](_0x3a6530['shift']());}}}(_0x1d09,0x2681f));function _0x33a5(_0x339f4f,_0x4218d6){_0x339f4f=_0x339f4f-0xba;const _0x1d0915=_0x1d09();let _0x33a575=_0x1d0915[_0x339f4f];return _0x33a575;}function _0x1d09(){const _0x8d5fac=['本機檔案','正在擷取伺服器資料...','您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。','10053WodgSB','協作衝突','連線失敗,將在稍後重試連線。','由於協作房間已關閉,編輯權限已被收回。','已離線,編輯將儲存在本機','56zFpZSj','568gHCmwj','沒有協作權限,您的編輯將暫存於本機。','協作文件數量超過限制,您的編輯將暫存於本機。','6267sYbxAl','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','編輯衝突','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','2171675TtWyVn','26647muYzdY','點擊重新連線','連線失敗,請檢查您的網路。','exports','伺服器未回應協作請求,您的編輯將儲存在本機。','加入協作失敗,請稍後重試,您的編輯將暫存於本機。','同步中...','10CshBwR','1265680DdMBIT','您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。','1255954DwNflj','6wTdavP','115588NNcmhh','加入協作失敗,您的編輯將暫存於本機。'];_0x1d09=function(){return _0x8d5fac;};return _0x1d09();}const e={'collaboration-client':{'collabClient':{'tooltip':{'reconnect':_0x18465f(0xc0)}},'collabStatus':{'fetchMiss':_0x18465f(0xce),'conflict':_0x18465f(0xbc),'notCollab':_0x18465f(0xcd),'synced':'已同步','syncing':_0x18465f(0xc5),'offline':_0x18465f(0xd4)},'session':{'connection-failed':_0x18465f(0xc1),'will-retry':_0x18465f(0xd2),'room-full':'此文件協作人數已達上限,您的編輯將暫存於本機。','join-failed':_0x18465f(0xc4),'room-not-exists':_0x18465f(0xcc),'room-permission-denied':_0x18465f(0xd7),'room-cnt-exceeds':_0x18465f(0xd8),'collaboration-timeout':_0x18465f(0xc3)},'conflict':{'title':_0x18465f(0xd1),'content':_0x18465f(0xbd)},'permission':{'title':'認證錯誤','content':_0x18465f(0xc8)},'collaboration':{'single-unit':{'warning':_0x18465f(0xbb)},'closeRoom':_0x18465f(0xd3)},'auth':{'needGotoLoginAlert':_0x18465f(0xcf)}}};module[_0x18465f(0xc2)]=e;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x410d5b=_0x2299;(function(_0x32fe73,_0x5b15dd){const _0xfdb8cd=_0x2299,_0x4bbc3b=_0x32fe73();while(!![]){try{const _0x5607b5=-parseInt(_0xfdb8cd(0x115))/0x1+parseInt(_0xfdb8cd(0x114))/0x2*(parseInt(_0xfdb8cd(0xf4))/0x3)+parseInt(_0xfdb8cd(0xf9))/0x4*(-parseInt(_0xfdb8cd(0xe5))/0x5)+-parseInt(_0xfdb8cd(0xdb))/0x6*(parseInt(_0xfdb8cd(0xc2))/0x7)+parseInt(_0xfdb8cd(0xc3))/0x8*(parseInt(_0xfdb8cd(0xf1))/0x9)+-parseInt(_0xfdb8cd(0xf6))/0xa*(parseInt(_0xfdb8cd(0xd5))/0xb)+parseInt(_0xfdb8cd(0x104))/0xc;if(_0x5607b5===_0x5b15dd)break;else _0x4bbc3b['push'](_0x4bbc3b['shift']());}catch(_0x26b34c){_0x4bbc3b['push'](_0x4bbc3b['shift']());}}}(_0x17c8,0x7a5cc));import{CollaborationController as _0x2a8fff,CollaborationStatus as _0x159c14,DataLoaderService as _0x17a7ef,MemberService as _0x1b6009}from'@univerjs-pro/collaboration-client';import{FBase as _0x533ba9,FEnum as _0xad9e32,FEventName as _0x266d9b,FUniver as _0x358fa9}from'@univerjs/core/facade';import{DisposableCollection as _0x14cdca,IUniverInstanceService as _0x41f9a5,Inject as _0x4eefcc,Injector as _0x4764a1,UniverInstanceType as _0x125bc4,toDisposable as _0x3a4c61}from'@univerjs/core';import{distinctUntilChanged as _0x407595,switchMap as _0x267a4f}from'rxjs';var g=class extends _0xad9e32{get[_0x410d5b(0x111)](){return _0x159c14;}};function _0x17c8(){const _0x5942e3=['_handler','object','get','NOT_COLLAB','loadUnit','extend','decorate','disposeWithMe','CollaborationStatus','forEach','members$','254fzmgqC','930960uicRrB','_initialize','ms.','getCollabEntities','UNIVER_SLIDE','changesetResend$','unitID','7hQHiQi','8aYVQwr','_univerInstanceService','CollaborationChangesetResend','nextDelayMs','loadPdfAsync','getCollaboration','_dataLoaderService','hasWritePending','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','CollaborationStatusChanged','entityInit$','UNIVER_BASE','from','\x22\x20while\x20collaboration\x20status\x20is\x20','getPresentation','getFocusedUnit','getCollabEntity','unsubscribe','88vmNqLL','UNIVER_SHEET','readyForCollab','loadBoardAsync','elapsedMs','reject','5431134CFuFCX','resolve','getBase','_collaborationController','UNIVER_PDF','_injector','registerEventHandler','values','getBoard','subscribeCollaborators','950TUXhTY','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','createInstance','getPdf','localChanges','UNIVER_DOC','state','_resolveUnitId','defineProperty','flush','reason','length','5697504hBfoSf','pipe','subscribe','4575cdCtqo','loadServerUnit','1176590voFuql','CollaborationConflict','message','16084PTEbhy','getDocument','unsyncedMutationCount','timeout','status$','loadUnitOfRevision','Event','loadSheetAsync','fireEvent','revert','status','38590512sSroQy','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','UNIVER_BOARD','SYNCED','add'];_0x17c8=function(){return _0x5942e3;};return _0x17c8();}function _0x2299(_0x591584,_0xbed972){_0x591584=_0x591584-0xc2;const _0x17c8c3=_0x17c8();let _0x229966=_0x17c8c3[_0x591584];return _0x229966;}_0xad9e32[_0x410d5b(0x10e)](g);var _=class extends _0x266d9b{get['CollaborationStatusChanged'](){const _0x2058d5=_0x410d5b;return _0x2058d5(0xcc);}get[_0x410d5b(0xf7)](){return'CollaborationConflict';}get[_0x410d5b(0xc5)](){const _0x11fcbc=_0x410d5b;return _0x11fcbc(0xc5);}};_0x266d9b[_0x410d5b(0x10e)](_);function v(_0x2f7ad3,_0x1a73ee){return function(_0x5dd72a,_0x35a5ae){_0x1a73ee(_0x5dd72a,_0x35a5ae,_0x2f7ad3);};}function y(_0x4488a8,_0x54948a,_0x22081c,_0x49f6b6){const _0x3b3fc1=_0x410d5b;var _0x4a2090=arguments[_0x3b3fc1(0xf0)],_0x4ef684=_0x4a2090<0x3?_0x54948a:_0x49f6b6===null?_0x49f6b6=Object['getOwnPropertyDescriptor'](_0x54948a,_0x22081c):_0x49f6b6,_0x736e4d;if(typeof Reflect==_0x3b3fc1(0x10a)&&typeof Reflect[_0x3b3fc1(0x10f)]=='function')_0x4ef684=Reflect[_0x3b3fc1(0x10f)](_0x4488a8,_0x54948a,_0x22081c,_0x49f6b6);else{for(var _0x575af3=_0x4488a8['length']-0x1;_0x575af3>=0x0;_0x575af3--)(_0x736e4d=_0x4488a8[_0x575af3])&&(_0x4ef684=(_0x4a2090<0x3?_0x736e4d(_0x4ef684):_0x4a2090>0x3?_0x736e4d(_0x54948a,_0x22081c,_0x4ef684):_0x736e4d(_0x54948a,_0x22081c))||_0x4ef684);}return _0x4a2090>0x3&&_0x4ef684&&Object[_0x3b3fc1(0xed)](_0x54948a,_0x22081c,_0x4ef684),_0x4ef684;}let b=class extends _0x533ba9{constructor(_0x2dd415,_0x51d40b,_0x26544f,_0x2a7510,_0x5323d3){const _0x1c2de1=_0x410d5b;super(),this[_0x1c2de1(0x109)]=_0x2dd415,this[_0x1c2de1(0xe0)]=_0x51d40b,this[_0x1c2de1(0xc4)]=_0x26544f,this[_0x1c2de1(0xc9)]=_0x2a7510,this[_0x1c2de1(0xde)]=_0x5323d3;}async[_0x410d5b(0x100)](_0x2bd3e6,_0x3cbf71){const _0x255403=_0x410d5b;return await this[_0x255403(0xc9)][_0x255403(0x10d)](_0x2bd3e6,_0x125bc4[_0x255403(0xd6)],void 0x0,_0x3cbf71)?(await this[_0x255403(0xde)][_0x255403(0xd7)](_0x2bd3e6),this[_0x255403(0x109)]['getWorkbook'](_0x2bd3e6)):null;}async['loadDocAsync'](_0x40d02e,_0xfd6e6d){const _0x1d37b8=_0x410d5b;return await this[_0x1d37b8(0xc9)][_0x1d37b8(0x10d)](_0x40d02e,_0x125bc4[_0x1d37b8(0xea)],void 0x0,_0xfd6e6d)?(await this[_0x1d37b8(0xde)]['readyForCollab'](_0x40d02e),this[_0x1d37b8(0x109)][_0x1d37b8(0xfa)](_0x40d02e)):null;}async['loadBaseAsync'](_0x1546fd,_0x30d226){const _0x863d3f=_0x410d5b;return await this[_0x863d3f(0xc9)][_0x863d3f(0x10d)](_0x1546fd,_0x125bc4[_0x863d3f(0xce)],void 0x0,_0x30d226)?(await this[_0x863d3f(0xde)][_0x863d3f(0xd7)](_0x1546fd),this[_0x863d3f(0x109)][_0x863d3f(0xdd)](_0x1546fd)):null;}async['loadSlideAsync'](_0x2f22fa,_0x2b9061){const _0x2e6c82=_0x410d5b;return await this[_0x2e6c82(0xc9)][_0x2e6c82(0x10d)](_0x2f22fa,_0x125bc4[_0x2e6c82(0x119)],void 0x0,_0x2b9061)?(await this[_0x2e6c82(0xde)][_0x2e6c82(0xd7)](_0x2f22fa),this[_0x2e6c82(0x109)][_0x2e6c82(0xd1)](_0x2f22fa)):null;}async[_0x410d5b(0xd8)](_0x456c1e,_0x14159d){const _0x5460bc=_0x410d5b;return await this[_0x5460bc(0xc9)][_0x5460bc(0x10d)](_0x456c1e,_0x125bc4[_0x5460bc(0x106)],void 0x0,_0x14159d)?(await this[_0x5460bc(0xde)][_0x5460bc(0xd7)](_0x456c1e),this[_0x5460bc(0x109)][_0x5460bc(0xe3)](_0x456c1e)):null;}async[_0x410d5b(0xc7)](_0x3118f2,_0x48c236){const _0xbd66ef=_0x410d5b;return await this[_0xbd66ef(0xc9)][_0xbd66ef(0x10d)](_0x3118f2,_0x125bc4[_0xbd66ef(0xdf)],void 0x0,_0x48c236)?(await this[_0xbd66ef(0xde)][_0xbd66ef(0xd7)](_0x3118f2),this[_0xbd66ef(0x109)][_0xbd66ef(0xe8)](_0x3118f2)):null;}[_0x410d5b(0xe4)](_0x27e996,_0x2caca8){const _0x1ab4ff=_0x410d5b;let _0x51190b=this[_0x1ab4ff(0xe0)][_0x1ab4ff(0x10b)](_0x1b6009)['waitForRoom$'](_0x27e996)[_0x1ab4ff(0xf2)](_0x267a4f(_0x133e74=>_0x133e74[_0x1ab4ff(0x113)]))[_0x1ab4ff(0xf3)](_0x192a7a=>_0x2caca8(Array[_0x1ab4ff(0xcf)](_0x192a7a[_0x1ab4ff(0xe2)]())));return _0x3a4c61(_0x51190b);}['getCollaborationStatus'](_0x497ad3){const _0x136368=_0x410d5b;let _0x138e09=this[_0x136368(0xec)](_0x497ad3);if(!_0x138e09)return _0x159c14[_0x136368(0x10c)];let _0x43ef76=this[_0x136368(0xde)]['getCollabEntity'](_0x138e09);return(_0x43ef76==null?void 0x0:_0x43ef76[_0x136368(0xeb)][_0x136368(0x103)])??_0x159c14[_0x136368(0x10c)];}['hasWritePending'](_0x88ec8a){const _0x1b6740=_0x410d5b;let _0x3dadd7=this[_0x1b6740(0xec)](_0x88ec8a);return _0x3dadd7?this[_0x1b6740(0xde)][_0x1b6740(0xca)](_0x3dadd7):!0x1;}[_0x410d5b(0xee)](_0x3148d4,_0x43b08e={}){const _0x475e66=_0x410d5b;let _0x572d53=this[_0x475e66(0xec)](_0x3148d4);if(!_0x572d53)return Promise[_0x475e66(0xda)](Error('[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.'));let _0x35faeb=this[_0x475e66(0xde)][_0x475e66(0xd3)](_0x572d53);if(!_0x35faeb)return Promise['reject'](Error('[FCollaboration]:\x20Unit\x20\x22'+_0x572d53+_0x475e66(0x105)));let _0x413af2=_0x35faeb[_0x475e66(0xeb)][_0x475e66(0x103)];if(_0x413af2===_0x159c14['SYNCED'])return Promise[_0x475e66(0xdc)]();let _0x11374a=x(_0x572d53,_0x413af2);if(_0x11374a)return Promise[_0x475e66(0xda)](_0x11374a);let _0xf15082=_0x43b08e[_0x475e66(0xfc)]??0x7530;return new Promise((_0x261ae9,_0x5c900e)=>{const _0x1b57f3=_0x475e66;let _0x563daa=!0x1,_0x47d226=null,_0x52409c=setTimeout(()=>{const _0x45043a=_0x2299;_0x563daa=!0x0,_0x47d226==null||_0x47d226[_0x45043a(0xd4)](),_0x5c900e(Error(_0x45043a(0xe6)+_0x572d53+'\x22\x20after\x20'+_0xf15082+_0x45043a(0x117)));},_0xf15082),_0x524445=()=>{const _0x15319f=_0x2299;_0x563daa=!0x0,clearTimeout(_0x52409c),_0x47d226==null||_0x47d226[_0x15319f(0xd4)]();};_0x47d226=_0x35faeb['status$'][_0x1b57f3(0xf3)](_0x1ffd54=>{const _0x30d936=_0x1b57f3;if(_0x563daa)return;if(_0x1ffd54===_0x159c14[_0x30d936(0x107)]){_0x524445(),_0x261ae9();return;}let _0x102adf=x(_0x572d53,_0x1ffd54);_0x102adf&&(_0x524445(),_0x5c900e(_0x102adf));});});}[_0x410d5b(0xec)](_0x43a93e){const _0x1fe3d8=_0x410d5b;var _0x33c22e;return _0x43a93e||((_0x33c22e=this[_0x1fe3d8(0xc4)][_0x1fe3d8(0xd2)]())==null?void 0x0:_0x33c22e['getUnitId']());}};b=y([v(0x1,_0x4eefcc(_0x4764a1)),v(0x2,_0x41f9a5),v(0x3,_0x4eefcc(_0x17a7ef)),v(0x4,_0x4eefcc(_0x2a8fff))],b);function x(_0x3bcdd7,_0x10c495){const _0x480e21=_0x410d5b;return _0x10c495===_0x159c14['CONFLICT']||_0x10c495===_0x159c14['NOT_COLLAB']?Error(_0x480e21(0xcb)+_0x3bcdd7+_0x480e21(0xd0)+_0x10c495+'.'):null;}var S=class extends _0x358fa9{[_0x410d5b(0x116)](_0x5aaf35){const _0x3d7b07=_0x410d5b;let _0x3d970a=_0x5aaf35[_0x3d7b07(0x10b)](_0x2a8fff);this[_0x3d7b07(0x110)](this[_0x3d7b07(0xe1)](this[_0x3d7b07(0xff)][_0x3d7b07(0xcc)],()=>{const _0x228c23=_0x3d7b07;let _0x5aa06a=new _0x14cdca(),_0x301f6d=_0xa1ee37=>{const _0x44e000=_0x2299;let _0x2d419d=_0xa1ee37[_0x44e000(0xfd)][_0x44e000(0xf2)](_0x407595())[_0x44e000(0xf3)](_0xca8c21=>{const _0x12dd23=_0x44e000;let _0x1c0e5c={'unitId':_0xa1ee37['unitID'],'status':_0xca8c21};this['fireEvent'](this['Event'][_0x12dd23(0xcc)],_0x1c0e5c);});_0x5aa06a['add'](_0x3a4c61(_0x2d419d));};return _0x3d970a[_0x228c23(0x118)]()['forEach'](_0x301f6d),_0x5aa06a[_0x228c23(0x108)](_0x3a4c61(_0x3d970a[_0x228c23(0xcd)][_0x228c23(0xf3)](_0x301f6d))),_0x5aa06a;})),this[_0x3d7b07(0x110)](this[_0x3d7b07(0xe1)](this[_0x3d7b07(0xff)][_0x3d7b07(0xf7)],()=>{const _0x5b2fc8=_0x3d7b07;let _0x31c8a8=new _0x14cdca(),_0x45595e=_0x519ac6=>{let _0x20afd7=_0x519ac6['conflict$']['subscribe'](_0x534b1e=>{const _0x4afd3d=_0x2299;let _0x43947b={'unitId':_0x534b1e[_0x4afd3d(0x11b)],'reason':_0x534b1e[_0x4afd3d(0xef)],'message':_0x534b1e[_0x4afd3d(0xf8)],'revert':_0x534b1e[_0x4afd3d(0x102)],'localChanges':_0x534b1e[_0x4afd3d(0xe9)],'cacheCleared':_0x534b1e['cacheCleared']};this['fireEvent'](this[_0x4afd3d(0xff)][_0x4afd3d(0xf7)],_0x43947b);});_0x31c8a8['add'](_0x3a4c61(_0x20afd7));};return _0x3d970a[_0x5b2fc8(0x118)]()[_0x5b2fc8(0x112)](_0x45595e),_0x31c8a8[_0x5b2fc8(0x108)](_0x3a4c61(_0x3d970a[_0x5b2fc8(0xcd)][_0x5b2fc8(0xf3)](_0x45595e))),_0x31c8a8;})),this[_0x3d7b07(0x110)](this['registerEventHandler'](this[_0x3d7b07(0xff)][_0x3d7b07(0xc5)],()=>{const _0x4f7982=_0x3d7b07;let _0x5d41ea=new _0x14cdca(),_0x4f9757=_0x3d066a=>{const _0x2a0882=_0x2299;let _0x2d7083=_0x3d066a[_0x2a0882(0x11a)][_0x2a0882(0xf3)](_0x334495=>{const _0x43d166=_0x2a0882;let _0xa8ccbe={'unitId':_0x334495['unitID'],'reqId':_0x334495['reqId'],'reason':_0x334495[_0x43d166(0xef)],'attempt':_0x334495['attempt'],'elapsedMs':_0x334495[_0x43d166(0xd9)],'unsyncedMutationCount':_0x334495[_0x43d166(0xfb)],'nextDelayMs':_0x334495[_0x43d166(0xc6)]};this[_0x43d166(0x101)](this[_0x43d166(0xff)][_0x43d166(0xc5)],_0xa8ccbe);});_0x5d41ea['add'](_0x3a4c61(_0x2d7083));};return _0x3d970a[_0x4f7982(0x118)]()[_0x4f7982(0x112)](_0x4f9757),_0x5d41ea[_0x4f7982(0x108)](_0x3a4c61(_0x3d970a[_0x4f7982(0xcd)][_0x4f7982(0xf3)](_0x4f9757))),_0x5d41ea;}));}[_0x410d5b(0xc8)](){const _0x36907f=_0x410d5b;return this[_0x36907f(0xe0)][_0x36907f(0xe7)](b,{'getWorkbook':_0x53a33a=>this['getWorkbook'](_0x53a33a),'getDocument':_0x48c44d=>this['getDocument'](_0x48c44d),'getPresentation':_0x38ee43=>this[_0x36907f(0xd1)](_0x38ee43),'getBase':_0x4bd2c8=>this[_0x36907f(0xdd)](_0x4bd2c8),'getBoard':_0x578a70=>this[_0x36907f(0xe3)](_0x578a70),'getPdf':_0x2584cf=>this[_0x36907f(0xe8)](_0x2584cf)});}[_0x410d5b(0xf5)](_0x1912d7,_0x56b5ff,_0x213d41){const _0x2e1fb7=_0x410d5b;return this[_0x2e1fb7(0xe0)]['get'](_0x17a7ef)[_0x2e1fb7(0x10d)](_0x1912d7,_0x56b5ff,_0x213d41);}['loadServerUnitOfRevision'](_0x31f456,_0x329965,_0x4bf597){const _0xa6ba48=_0x410d5b;return this[_0xa6ba48(0xe0)]['get'](_0x17a7ef)[_0xa6ba48(0xfe)](_0x31f456,_0x329965,_0x4bf597);}};_0x358fa9['extend'](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};
|