@univerjs-pro/collaboration-client 1.0.3 → 1.1.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.
Files changed (91) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/types/controllers/collaboration/collaboration-state.d.ts +51 -11
  65. package/lib/types/facade/f-collaboration.d.ts +3 -4
  66. package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +3 -3
  67. package/lib/types/services/collaboration-ui-event/collaboration-ui-event.d.ts +1 -0
  68. package/lib/types/services/data-loader/data-loader.service.d.ts +9 -2
  69. package/lib/types/services/local-cache/local-cache.service.d.ts +11 -6
  70. package/lib/umd/facade.js +1 -1
  71. package/lib/umd/index.js +1 -1
  72. package/lib/umd/locale/ar-SA.js +1 -1
  73. package/lib/umd/locale/ca-ES.js +1 -1
  74. package/lib/umd/locale/de-DE.js +1 -1
  75. package/lib/umd/locale/en-US.js +1 -1
  76. package/lib/umd/locale/es-ES.js +1 -1
  77. package/lib/umd/locale/fa-IR.js +1 -1
  78. package/lib/umd/locale/fr-FR.js +1 -1
  79. package/lib/umd/locale/id-ID.js +1 -1
  80. package/lib/umd/locale/it-IT.js +1 -1
  81. package/lib/umd/locale/ja-JP.js +1 -1
  82. package/lib/umd/locale/ko-KR.js +1 -1
  83. package/lib/umd/locale/pl-PL.js +1 -1
  84. package/lib/umd/locale/pt-BR.js +1 -1
  85. package/lib/umd/locale/ru-RU.js +1 -1
  86. package/lib/umd/locale/sk-SK.js +1 -1
  87. package/lib/umd/locale/vi-VN.js +1 -1
  88. package/lib/umd/locale/zh-CN.js +1 -1
  89. package/lib/umd/locale/zh-HK.js +1 -1
  90. package/lib/umd/locale/zh-TW.js +1 -1
  91. package/package.json +16 -16
@@ -1 +1 @@
1
- const _0x192e24=_0x4537;function _0x4537(_0x5efbdd,_0x39bc99){_0x5efbdd=_0x5efbdd-0xa5;const _0x6bc96c=_0x6bc9();let _0x4537e4=_0x6bc96c[_0x5efbdd];return _0x4537e4;}(function(_0x24d19f,_0x1d88ef){const _0x318150=_0x4537,_0x2b3c90=_0x24d19f();while(!![]){try{const _0x540df9=parseInt(_0x318150(0xbb))/0x1*(-parseInt(_0x318150(0xc2))/0x2)+-parseInt(_0x318150(0xaa))/0x3*(parseInt(_0x318150(0xa9))/0x4)+-parseInt(_0x318150(0xb9))/0x5*(-parseInt(_0x318150(0xc0))/0x6)+parseInt(_0x318150(0xb2))/0x7*(-parseInt(_0x318150(0xb5))/0x8)+-parseInt(_0x318150(0xb4))/0x9*(parseInt(_0x318150(0xba))/0xa)+parseInt(_0x318150(0xab))/0xb*(-parseInt(_0x318150(0xb1))/0xc)+parseInt(_0x318150(0xae))/0xd;if(_0x540df9===_0x1d88ef)break;else _0x2b3c90['push'](_0x2b3c90['shift']());}catch(_0x3505cd){_0x2b3c90['push'](_0x2b3c90['shift']());}}}(_0x6bc9,0x9af64));const e={'collaboration-client':{'collabClient':{'tooltip':{'reconnect':'點擊重新連線'}},'collabStatus':{'fetchMiss':_0x192e24(0xa5),'conflict':_0x192e24(0xbd),'notCollab':_0x192e24(0xbe),'synced':_0x192e24(0xaf),'syncing':_0x192e24(0xb3),'offline':'已離線,編輯將儲存在本機'},'session':{'connection-failed':_0x192e24(0xb7),'will-retry':_0x192e24(0xbc),'room-full':_0x192e24(0xb0),'join-failed':'加入協作失敗,請稍後重試,您的編輯將暫存於本機。','room-not-exists':_0x192e24(0xad),'room-permission-denied':'沒有協作權限,您的編輯將暫存於本機。','room-cnt-exceeds':_0x192e24(0xb8),'collaboration-timeout':_0x192e24(0xbf)},'conflict':{'title':_0x192e24(0xc3),'content':_0x192e24(0xac)},'permission':{'title':_0x192e24(0xb6),'content':_0x192e24(0xc1)},'collaboration':{'single-unit':{'warning':_0x192e24(0xa6)},'closeRoom':_0x192e24(0xa8)},'auth':{'needGotoLoginAlert':_0x192e24(0xa7)}}};export{e as default};function _0x6bc9(){const _0x74f7ee=['已同步','此文件協作人數已達上限,您的編輯將暫存於本機。','108aTzitr','119NzoNIn','同步中...','45YtZgNM','93872HucQJj','認證錯誤','連線失敗,請檢查您的網路。','協作文件數量超過限制,您的編輯將暫存於本機。','10dveamw','2218870vZTNAj','5wpiRLg','連線失敗,將在稍後重試連線。','編輯衝突','本機檔案','伺服器未回應協作請求,您的編輯將儲存在本機。','631122roFWDo','您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。','363980EjVNEm','協作衝突','正在擷取伺服器資料...','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。','由於協作房間已關閉,編輯權限已被收回。','80lmufZh','16311rJKEdl','881639flNahb','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','加入協作失敗,您的編輯將暫存於本機。','45152822HasmAm'];_0x6bc9=function(){return _0x74f7ee;};return _0x6bc9();}
1
+ const _0x3b8851=_0x5e7a;(function(_0x458da0,_0x2d6656){const _0x4880f6=_0x5e7a,_0x226fc1=_0x458da0();while(!![]){try{const _0x19d86d=parseInt(_0x4880f6(0x1f3))/0x1*(parseInt(_0x4880f6(0x1db))/0x2)+parseInt(_0x4880f6(0x1de))/0x3+-parseInt(_0x4880f6(0x1e0))/0x4*(-parseInt(_0x4880f6(0x1f1))/0x5)+parseInt(_0x4880f6(0x1ec))/0x6*(-parseInt(_0x4880f6(0x1ea))/0x7)+-parseInt(_0x4880f6(0x1f4))/0x8*(parseInt(_0x4880f6(0x1eb))/0x9)+parseInt(_0x4880f6(0x1ed))/0xa*(parseInt(_0x4880f6(0x1dd))/0xb)+-parseInt(_0x4880f6(0x1ee))/0xc;if(_0x19d86d===_0x2d6656)break;else _0x226fc1['push'](_0x226fc1['shift']());}catch(_0x37d32c){_0x226fc1['push'](_0x226fc1['shift']());}}}(_0x47fc,0x6e244));const e={'collaboration-client':{'collabClient':{'tooltip':{'reconnect':'點擊重新連線'}},'collabStatus':{'fetchMiss':_0x3b8851(0x1e2),'conflict':_0x3b8851(0x1e5),'notCollab':_0x3b8851(0x1e1),'synced':_0x3b8851(0x1e3),'syncing':_0x3b8851(0x1e9),'offline':'已離線,編輯將儲存在本機'},'session':{'connection-failed':_0x3b8851(0x1f2),'will-retry':_0x3b8851(0x1ef),'room-full':_0x3b8851(0x1d9),'join-failed':_0x3b8851(0x1e6),'room-not-exists':'加入協作失敗,您的編輯將暫存於本機。','room-permission-denied':_0x3b8851(0x1e7),'room-cnt-exceeds':'協作文件數量超過限制,您的編輯將暫存於本機。','collaboration-timeout':'伺服器未回應協作請求,您的編輯將儲存在本機。'},'conflict':{'title':_0x3b8851(0x1dc),'content':_0x3b8851(0x1e4)},'permission':{'title':_0x3b8851(0x1df),'content':_0x3b8851(0x1e8)},'collaboration':{'single-unit':{'warning':_0x3b8851(0x1da)},'closeRoom':'由於協作房間已關閉,編輯權限已被收回。'},'auth':{'needGotoLoginAlert':_0x3b8851(0x1f0)}}};function _0x5e7a(_0x3f4940,_0x1cfd05){_0x3f4940=_0x3f4940-0x1d9;const _0x47fc5e=_0x47fc();let _0x5e7a99=_0x47fc5e[_0x3f4940];return _0x5e7a99;}function _0x47fc(){const _0x3bae62=['沒有協作權限,您的編輯將暫存於本機。','您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。','同步中...','259nbSoVZ','99vKJwxg','47418WhBGHN','70eVkUSc','7097544RBEGxw','連線失敗,將在稍後重試連線。','您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。','5tMjDit','連線失敗,請檢查您的網路。','503545sraJxd','68984GdEPIv','此文件協作人數已達上限,您的編輯將暫存於本機。','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','2VVXenT','協作衝突','1355739bhtQrz','105480mSqOzv','認證錯誤','113672DbtIwV','本機檔案','正在擷取伺服器資料...','已同步','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','編輯衝突','加入協作失敗,請稍後重試,您的編輯將暫存於本機。'];_0x47fc=function(){return _0x3bae62;};return _0x47fc();}export{e as default};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x323396=_0x1c57;(function(_0x34b383,_0x3071e7){const _0xeefbbe=_0x1c57,_0x1f6165=_0x34b383();while(!![]){try{const _0x278d0f=-parseInt(_0xeefbbe(0x1d0))/0x1+parseInt(_0xeefbbe(0x1d7))/0x2*(-parseInt(_0xeefbbe(0x1dd))/0x3)+-parseInt(_0xeefbbe(0x1ae))/0x4*(parseInt(_0xeefbbe(0x1cd))/0x5)+-parseInt(_0xeefbbe(0x1d2))/0x6+-parseInt(_0xeefbbe(0x1a1))/0x7+parseInt(_0xeefbbe(0x1e3))/0x8+-parseInt(_0xeefbbe(0x1d1))/0x9*(-parseInt(_0xeefbbe(0x1c6))/0xa);if(_0x278d0f===_0x3071e7)break;else _0x1f6165['push'](_0x1f6165['shift']());}catch(_0x345f95){_0x1f6165['push'](_0x1f6165['shift']());}}}(_0x54bb,0xcac1c));import{CollaborationController as _0x242075,CollaborationStatus as _0xc7f623,DataLoaderService as _0x967cae,MemberService as _0x22c4e9}from'@univerjs-pro/collaboration-client';import{FBase as _0x53e01c,FEnum as _0x3c1ade,FEventName as _0x33e7b9,FUniver as _0x3be7ee}from'@univerjs/core/facade';import{DisposableCollection as _0x1ac6c0,IUniverInstanceService as _0x407b3c,Inject as _0x14667b,Injector as _0x4f5fb2,toDisposable as _0x42b565}from'@univerjs/core';import{SnapshotService as _0x14bb4e}from'@univerjs-pro/collaboration';function _0x1c57(_0xe85c73,_0x3f24ca){_0xe85c73=_0xe85c73-0x19c;const _0x54bbea=_0x54bb();let _0x1c5739=_0x54bbea[_0xe85c73];return _0x1c5739;}import{switchMap as _0x41a3c8}from'rxjs';var h=class extends _0x3c1ade{get['CollaborationStatus'](){return _0xc7f623;}};function _0x54bb(){const _0x3914c0=['loadDocAsync','getPresentation','getFocusedUnit','\x22\x20while\x20collaboration\x20status\x20is\x20','973732HxPlOc','defineProperty','loadBoard','loadUnitOfRevision','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','members$','loadUnit','subscribe','length','subscribeCollaborators','registerEventHandler','CollaborationStatusChanged','resolve','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','Event','pipe','get','NOT_COLLAB','_univerInstanceService','loadPdfAsync','getWorkbook','loadSheetAsync','readyForCollab','getBoard','1690TwZyLx','unitID','getBase','add','status$','_handler','unsubscribe','25GNQvjz','status','loadSlideAsync','119810XNbnCE','211743JNImsX','1310916yIeHtd','getOwnPropertyDescriptor','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','getPdf','_resolveUnitId','1690CogrHa','getCollaboration','state','[FCollaboration]:\x20Unit\x20\x22','decorate','getCollaborationStatus','3963mtECrD','extend','values','function','_injector','object','7149672lTCIAa','reject','loadDoc','loadPdf','\x22\x20after\x20','getUnitId','9573018goUlWz','getCollabEntity','loadBase','_collaborationController','_snapshotService','fireEvent','timeout','loadSheet','from'];_0x54bb=function(){return _0x3914c0;};return _0x54bb();}_0x3c1ade[_0x323396(0x1de)](h);var g=class extends _0x33e7b9{get[_0x323396(0x1b9)](){const _0x513843=_0x323396;return _0x513843(0x1b9);}};_0x33e7b9[_0x323396(0x1de)](g);function _(_0x4f68b2,_0xa3a408){return function(_0x4b6dde,_0x450948){_0xa3a408(_0x4b6dde,_0x450948,_0x4f68b2);};}function v(_0x57c47e,_0xfc727e,_0x1cdd29,_0x4ad6b9){const _0x224c68=_0x323396;var _0x533b1b=arguments[_0x224c68(0x1b6)],_0x556716=_0x533b1b<0x3?_0xfc727e:_0x4ad6b9===null?_0x4ad6b9=Object[_0x224c68(0x1d3)](_0xfc727e,_0x1cdd29):_0x4ad6b9,_0x5cd9b0;if(typeof Reflect==_0x224c68(0x1e2)&&typeof Reflect['decorate']==_0x224c68(0x1e0))_0x556716=Reflect[_0x224c68(0x1db)](_0x57c47e,_0xfc727e,_0x1cdd29,_0x4ad6b9);else{for(var _0x1a05ca=_0x57c47e[_0x224c68(0x1b6)]-0x1;_0x1a05ca>=0x0;_0x1a05ca--)(_0x5cd9b0=_0x57c47e[_0x1a05ca])&&(_0x556716=(_0x533b1b<0x3?_0x5cd9b0(_0x556716):_0x533b1b>0x3?_0x5cd9b0(_0xfc727e,_0x1cdd29,_0x556716):_0x5cd9b0(_0xfc727e,_0x1cdd29))||_0x556716);}return _0x533b1b>0x3&&_0x556716&&Object[_0x224c68(0x1af)](_0xfc727e,_0x1cdd29,_0x556716),_0x556716;}let y=class extends _0x53e01c{constructor(_0x58faa2,_0x2131c7,_0x105a24,_0x1d7bf7,_0x50dbeb){const _0x21083b=_0x323396;super(),this[_0x21083b(0x1cb)]=_0x58faa2,this[_0x21083b(0x1e1)]=_0x2131c7,this[_0x21083b(0x1c0)]=_0x105a24,this[_0x21083b(0x1a5)]=_0x1d7bf7,this[_0x21083b(0x1a4)]=_0x50dbeb;}async[_0x323396(0x1c3)](_0xf82dc,_0xd72ab){const _0x59e79a=_0x323396;return await this['_snapshotService'][_0x59e79a(0x1a8)](_0xf82dc,0x0,_0xd72ab)?(await this[_0x59e79a(0x1a4)][_0x59e79a(0x1c4)](_0xf82dc),this[_0x59e79a(0x1cb)][_0x59e79a(0x1c2)](_0xf82dc)):null;}async[_0x323396(0x1aa)](_0x5a04c5,_0x1d9ae8){const _0x501af7=_0x323396;return await this['_snapshotService'][_0x501af7(0x19d)](_0x5a04c5,0x0,_0x1d9ae8)?(await this[_0x501af7(0x1a4)][_0x501af7(0x1c4)](_0x5a04c5),this[_0x501af7(0x1cb)]['getDocument'](_0x5a04c5)):null;}async['loadBaseAsync'](_0x1eb71e,_0x44fecb){const _0x58dcf7=_0x323396;return await this[_0x58dcf7(0x1a5)][_0x58dcf7(0x1a3)](_0x1eb71e,0x0,_0x44fecb)?(await this['_collaborationController'][_0x58dcf7(0x1c4)](_0x1eb71e),this[_0x58dcf7(0x1cb)][_0x58dcf7(0x1c8)](_0x1eb71e)):null;}async[_0x323396(0x1cf)](_0x3625c3,_0x4e73d7){const _0x4d27cd=_0x323396;return await this[_0x4d27cd(0x1a5)]['loadSlide'](_0x3625c3,0x0,_0x4e73d7)?(await this[_0x4d27cd(0x1a4)][_0x4d27cd(0x1c4)](_0x3625c3),this[_0x4d27cd(0x1cb)]['getPresentation'](_0x3625c3)):null;}async['loadBoardAsync'](_0x30eabf,_0x29d077){const _0x580b4f=_0x323396;return await this['_snapshotService'][_0x580b4f(0x1b0)](_0x30eabf,0x0,_0x29d077)?(await this[_0x580b4f(0x1a4)][_0x580b4f(0x1c4)](_0x30eabf),this['_handler']['getBoard'](_0x30eabf)):null;}async[_0x323396(0x1c1)](_0x374718,_0x323059){const _0x38d614=_0x323396;return await this[_0x38d614(0x1a5)][_0x38d614(0x19e)](_0x374718,0x0,_0x323059)?(await this[_0x38d614(0x1a4)][_0x38d614(0x1c4)](_0x374718),this[_0x38d614(0x1cb)][_0x38d614(0x1d5)](_0x374718)):null;}[_0x323396(0x1b7)](_0x144d6f,_0x109662){const _0x2c8bb4=_0x323396;let _0x460c0c=this[_0x2c8bb4(0x1e1)][_0x2c8bb4(0x1be)](_0x22c4e9)['waitForRoom$'](_0x144d6f)[_0x2c8bb4(0x1bd)](_0x41a3c8(_0x50b11d=>_0x50b11d[_0x2c8bb4(0x1b3)]))[_0x2c8bb4(0x1b5)](_0x55a157=>_0x109662(Array[_0x2c8bb4(0x1a9)](_0x55a157[_0x2c8bb4(0x1df)]())));return _0x42b565(_0x460c0c);}[_0x323396(0x1dc)](_0x407ce3){const _0x5ef8b6=_0x323396;let _0x879139=this[_0x5ef8b6(0x1d6)](_0x407ce3);if(!_0x879139)return _0xc7f623[_0x5ef8b6(0x1bf)];let _0x4c2f5e=this[_0x5ef8b6(0x1a4)][_0x5ef8b6(0x1a2)](_0x879139);return(_0x4c2f5e==null?void 0x0:_0x4c2f5e[_0x5ef8b6(0x1d9)][_0x5ef8b6(0x1ce)])??_0xc7f623[_0x5ef8b6(0x1bf)];}['flush'](_0x7d95d,_0x4eeede={}){const _0x2a9930=_0x323396;let _0xde31b5=this[_0x2a9930(0x1d6)](_0x7d95d);if(!_0xde31b5)return Promise['reject'](Error(_0x2a9930(0x1b2)));let _0x54a5ff=this[_0x2a9930(0x1a4)]['getCollabEntity'](_0xde31b5);if(!_0x54a5ff)return Promise[_0x2a9930(0x19c)](Error(_0x2a9930(0x1da)+_0xde31b5+_0x2a9930(0x1d4)));let _0x4358a2=_0x54a5ff[_0x2a9930(0x1d9)][_0x2a9930(0x1ce)];if(_0x4358a2===_0xc7f623['SYNCED'])return Promise[_0x2a9930(0x1ba)]();let _0x33c950=b(_0xde31b5,_0x4358a2);if(_0x33c950)return Promise['reject'](_0x33c950);let _0x32faa4=_0x4eeede[_0x2a9930(0x1a7)]??0x7530;return new Promise((_0xb88f36,_0x17ed31)=>{const _0x24189a=_0x2a9930;let _0x38fa1c=!0x1,_0x48ce1c=null,_0x31def9=setTimeout(()=>{const _0x454302=_0x1c57;_0x38fa1c=!0x0,_0x48ce1c==null||_0x48ce1c[_0x454302(0x1cc)](),_0x17ed31(Error(_0x454302(0x1bb)+_0xde31b5+_0x454302(0x19f)+_0x32faa4+'ms.'));},_0x32faa4),_0x54f69a=()=>{const _0x51dad0=_0x1c57;_0x38fa1c=!0x0,clearTimeout(_0x31def9),_0x48ce1c==null||_0x48ce1c[_0x51dad0(0x1cc)]();};_0x48ce1c=_0x54a5ff[_0x24189a(0x1ca)][_0x24189a(0x1b5)](_0x196007=>{if(_0x38fa1c)return;if(_0x196007===_0xc7f623['SYNCED']){_0x54f69a(),_0xb88f36();return;}let _0x42a557=b(_0xde31b5,_0x196007);_0x42a557&&(_0x54f69a(),_0x17ed31(_0x42a557));});});}['_resolveUnitId'](_0x43cf13){const _0x5130b9=_0x323396;var _0x421bca;return _0x43cf13||((_0x421bca=this['_univerInstanceService'][_0x5130b9(0x1ac)]())==null?void 0x0:_0x421bca[_0x5130b9(0x1a0)]());}};y=v([_(0x1,_0x14667b(_0x4f5fb2)),_(0x2,_0x407b3c),_(0x3,_0x14667b(_0x14bb4e)),_(0x4,_0x14667b(_0x242075))],y);function b(_0x1d33fe,_0x47eddb){const _0xf8d74d=_0x323396;return _0x47eddb===_0xc7f623['CONFLICT']||_0x47eddb===_0xc7f623[_0xf8d74d(0x1bf)]?Error('[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22'+_0x1d33fe+_0xf8d74d(0x1ad)+_0x47eddb+'.'):null;}var x=class extends _0x3be7ee{['_initialize'](_0x252087){const _0x2516c1=_0x323396;let _0x230502=_0x252087['get'](_0x242075);this['disposeWithMe'](this[_0x2516c1(0x1b8)](this[_0x2516c1(0x1bc)][_0x2516c1(0x1b9)],()=>{const _0x28ed33=_0x2516c1;let _0x1215ba=new _0x1ac6c0(),_0xdf59a3=_0x230502['entityInit$'][_0x28ed33(0x1b5)](_0x32b906=>{const _0x7f470e=_0x28ed33;let _0x12334e=_0x32b906[_0x7f470e(0x1ca)][_0x7f470e(0x1b5)](_0x1a02f9=>{const _0x171fc3=_0x7f470e;let _0x2ab896={'unitId':_0x32b906[_0x171fc3(0x1c7)],'status':_0x1a02f9};this[_0x171fc3(0x1a6)](this['Event'][_0x171fc3(0x1b9)],_0x2ab896);});_0x1215ba[_0x7f470e(0x1c9)](_0x42b565(_0x12334e));});return _0x1215ba[_0x28ed33(0x1c9)](_0x42b565(_0xdf59a3)),_0x1215ba;}));}[_0x323396(0x1d8)](){const _0x237f5b=_0x323396;return this[_0x237f5b(0x1e1)]['createInstance'](y,{'getWorkbook':_0x519bca=>this[_0x237f5b(0x1c2)](_0x519bca),'getDocument':_0x2a68a8=>this['getDocument'](_0x2a68a8),'getPresentation':_0x3dfcf6=>this[_0x237f5b(0x1ab)](_0x3dfcf6),'getBase':_0x3b7921=>this[_0x237f5b(0x1c8)](_0x3b7921),'getBoard':_0x59079a=>this[_0x237f5b(0x1c5)](_0x59079a),'getPdf':_0x305789=>this[_0x237f5b(0x1d5)](_0x305789)});}['loadServerUnit'](_0x3bd9ac,_0x5f1bf5,_0x5dfd9d){const _0x2879b8=_0x323396;return this['_injector'][_0x2879b8(0x1be)](_0x967cae)[_0x2879b8(0x1b4)](_0x3bd9ac,_0x5f1bf5,_0x5dfd9d);}['loadServerUnitOfRevision'](_0x3ac230,_0x19251f,_0x3b9206){const _0x38b8c9=_0x323396;return this['_injector'][_0x38b8c9(0x1be)](_0x967cae)[_0x38b8c9(0x1b1)](_0x3ac230,_0x19251f,_0x3b9206);}};_0x3be7ee[_0x323396(0x1de)](x);export{y as FCollaboration};
1
+ const _0x1dcad0=_0x1b85;(function(_0x5b7ef5,_0x448691){const _0x1f96fb=_0x1b85,_0x5d3a60=_0x5b7ef5();while(!![]){try{const _0x40b1ec=parseInt(_0x1f96fb(0x1f4))/0x1+-parseInt(_0x1f96fb(0x22b))/0x2*(-parseInt(_0x1f96fb(0x207))/0x3)+-parseInt(_0x1f96fb(0x1f7))/0x4*(parseInt(_0x1f96fb(0x1f2))/0x5)+-parseInt(_0x1f96fb(0x234))/0x6+-parseInt(_0x1f96fb(0x1f1))/0x7*(-parseInt(_0x1f96fb(0x208))/0x8)+parseInt(_0x1f96fb(0x238))/0x9*(parseInt(_0x1f96fb(0x236))/0xa)+parseInt(_0x1f96fb(0x23c))/0xb*(-parseInt(_0x1f96fb(0x1f0))/0xc);if(_0x40b1ec===_0x448691)break;else _0x5d3a60['push'](_0x5d3a60['shift']());}catch(_0x406963){_0x5d3a60['push'](_0x5d3a60['shift']());}}}(_0x7981,0x4e108));import{CollaborationController as _0x25f8f1,CollaborationStatus as _0x10ce7d,DataLoaderService as _0x1072cd,MemberService as _0x36f1fd}from'@univerjs-pro/collaboration-client';import{FBase as _0x1bf77b,FEnum as _0x159c74,FEventName as _0x13183f,FUniver as _0x1b630f}from'@univerjs/core/facade';import{DisposableCollection as _0x5e8abf,IUniverInstanceService as _0xac809c,Inject as _0x132184,Injector as _0x2b2ef3,UniverInstanceType as _0x453837,toDisposable as _0x4984cf}from'@univerjs/core';import{switchMap as _0x16ef84}from'rxjs';var h=class extends _0x159c74{get[_0x1dcad0(0x230)](){return _0x10ce7d;}};function _0x7981(){const _0x3650fd=['[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','status','4178724VQRKIq','822724IEPYHA','15cTMvHD','CONFLICT','218682iNewBp','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','_injector','629580RjnORJ','loadDocAsync','loadBoardAsync','SYNCED','getPresentation','getBase','subscribe','readyForCollab','UNIVER_BASE','disposeWithMe','getPdf','resolve','_collaborationController','members$','getFocusedUnit','UNIVER_SLIDE','9vVnKEj','24lhGWyi','object','state','values','timeout','loadServerUnit','loadPdfAsync','waitForRoom$','loadUnitOfRevision','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','_univerInstanceService','extend','_handler','getCollaborationStatus','getCollabEntity','decorate','getBoard','UNIVER_PDF','Event','loadUnit','getCollaboration','loadSlideAsync','get','add','reject','unsubscribe','status$','UNIVER_SHEET','registerEventHandler','subscribeCollaborators','from','getWorkbook','_dataLoaderService','loadSheetAsync','389122bBfmmL','entityInit$','pipe','length','_resolveUnitId','CollaborationStatus','defineProperty','getDocument','loadBaseAsync','2892018XFuwbc','CollaborationStatusChanged','790SdJWdg','NOT_COLLAB','53226GBKuTQ','loadServerUnitOfRevision','getUnitId','UNIVER_DOC','11wGWIhf','function','\x22\x20while\x20collaboration\x20status\x20is\x20'];_0x7981=function(){return _0x3650fd;};return _0x7981();}_0x159c74[_0x1dcad0(0x214)](h);var g=class extends _0x13183f{get[_0x1dcad0(0x235)](){const _0x47edb5=_0x1dcad0;return _0x47edb5(0x235);}};_0x13183f[_0x1dcad0(0x214)](g);function _(_0x3d0e37,_0xe452ee){return function(_0x23c8e2,_0x12f3a2){_0xe452ee(_0x23c8e2,_0x12f3a2,_0x3d0e37);};}function v(_0x2818aa,_0x4a86cd,_0x9e1bcf,_0x17634b){const _0x81fbb3=_0x1dcad0;var _0x2d86e0=arguments[_0x81fbb3(0x22e)],_0x5aae7a=_0x2d86e0<0x3?_0x4a86cd:_0x17634b===null?_0x17634b=Object['getOwnPropertyDescriptor'](_0x4a86cd,_0x9e1bcf):_0x17634b,_0x125ee6;if(typeof Reflect==_0x81fbb3(0x209)&&typeof Reflect[_0x81fbb3(0x218)]==_0x81fbb3(0x23d))_0x5aae7a=Reflect[_0x81fbb3(0x218)](_0x2818aa,_0x4a86cd,_0x9e1bcf,_0x17634b);else{for(var _0x28630d=_0x2818aa[_0x81fbb3(0x22e)]-0x1;_0x28630d>=0x0;_0x28630d--)(_0x125ee6=_0x2818aa[_0x28630d])&&(_0x5aae7a=(_0x2d86e0<0x3?_0x125ee6(_0x5aae7a):_0x2d86e0>0x3?_0x125ee6(_0x4a86cd,_0x9e1bcf,_0x5aae7a):_0x125ee6(_0x4a86cd,_0x9e1bcf))||_0x5aae7a);}return _0x2d86e0>0x3&&_0x5aae7a&&Object[_0x81fbb3(0x231)](_0x4a86cd,_0x9e1bcf,_0x5aae7a),_0x5aae7a;}function _0x1b85(_0x5ae834,_0x5180c7){_0x5ae834=_0x5ae834-0x1ee;const _0x798190=_0x7981();let _0x1b856e=_0x798190[_0x5ae834];return _0x1b856e;}let y=class extends _0x1bf77b{constructor(_0xf387f,_0x3826ea,_0x431d8c,_0x672ce,_0x5b75ca){const _0x468d70=_0x1dcad0;super(),this[_0x468d70(0x215)]=_0xf387f,this[_0x468d70(0x1f6)]=_0x3826ea,this[_0x468d70(0x213)]=_0x431d8c,this[_0x468d70(0x229)]=_0x672ce,this[_0x468d70(0x203)]=_0x5b75ca;}async[_0x1dcad0(0x22a)](_0x53c7a0,_0x3f5f9e){const _0x41a823=_0x1dcad0;return await this[_0x41a823(0x229)][_0x41a823(0x21c)](_0x53c7a0,_0x453837[_0x41a823(0x224)],void 0x0,_0x3f5f9e)?(await this[_0x41a823(0x203)]['readyForCollab'](_0x53c7a0),this['_handler'][_0x41a823(0x228)](_0x53c7a0)):null;}async[_0x1dcad0(0x1f8)](_0x20c9d5,_0x5f3cce){const _0x2995f2=_0x1dcad0;return await this[_0x2995f2(0x229)][_0x2995f2(0x21c)](_0x20c9d5,_0x453837[_0x2995f2(0x23b)],void 0x0,_0x5f3cce)?(await this[_0x2995f2(0x203)][_0x2995f2(0x1fe)](_0x20c9d5),this['_handler']['getDocument'](_0x20c9d5)):null;}async[_0x1dcad0(0x233)](_0x2aa719,_0xcf18a4){const _0x1f513a=_0x1dcad0;return await this[_0x1f513a(0x229)]['loadUnit'](_0x2aa719,_0x453837[_0x1f513a(0x1ff)],void 0x0,_0xcf18a4)?(await this[_0x1f513a(0x203)][_0x1f513a(0x1fe)](_0x2aa719),this[_0x1f513a(0x215)]['getBase'](_0x2aa719)):null;}async[_0x1dcad0(0x21e)](_0x1bd863,_0x2e3e2c){const _0x3099ff=_0x1dcad0;return await this[_0x3099ff(0x229)][_0x3099ff(0x21c)](_0x1bd863,_0x453837[_0x3099ff(0x206)],void 0x0,_0x2e3e2c)?(await this[_0x3099ff(0x203)][_0x3099ff(0x1fe)](_0x1bd863),this[_0x3099ff(0x215)][_0x3099ff(0x1fb)](_0x1bd863)):null;}async[_0x1dcad0(0x1f9)](_0x575b86,_0x285ed5){const _0x808b73=_0x1dcad0;return await this[_0x808b73(0x229)][_0x808b73(0x21c)](_0x575b86,_0x453837['UNIVER_BOARD'],void 0x0,_0x285ed5)?(await this[_0x808b73(0x203)][_0x808b73(0x1fe)](_0x575b86),this[_0x808b73(0x215)][_0x808b73(0x219)](_0x575b86)):null;}async[_0x1dcad0(0x20e)](_0x4b2d6e,_0x12d2fa){const _0x55b9a3=_0x1dcad0;return await this['_dataLoaderService'][_0x55b9a3(0x21c)](_0x4b2d6e,_0x453837[_0x55b9a3(0x21a)],void 0x0,_0x12d2fa)?(await this[_0x55b9a3(0x203)][_0x55b9a3(0x1fe)](_0x4b2d6e),this[_0x55b9a3(0x215)][_0x55b9a3(0x201)](_0x4b2d6e)):null;}[_0x1dcad0(0x226)](_0xbeaaca,_0x4205ad){const _0x2660e8=_0x1dcad0;let _0x14c00a=this['_injector'][_0x2660e8(0x21f)](_0x36f1fd)[_0x2660e8(0x20f)](_0xbeaaca)[_0x2660e8(0x22d)](_0x16ef84(_0x1671a8=>_0x1671a8[_0x2660e8(0x204)]))[_0x2660e8(0x1fd)](_0x4b6d62=>_0x4205ad(Array[_0x2660e8(0x227)](_0x4b6d62[_0x2660e8(0x20b)]())));return _0x4984cf(_0x14c00a);}[_0x1dcad0(0x216)](_0x54c9e2){const _0x2d174a=_0x1dcad0;let _0x193cf0=this[_0x2d174a(0x22f)](_0x54c9e2);if(!_0x193cf0)return _0x10ce7d[_0x2d174a(0x237)];let _0x2e7e2f=this[_0x2d174a(0x203)][_0x2d174a(0x217)](_0x193cf0);return(_0x2e7e2f==null?void 0x0:_0x2e7e2f[_0x2d174a(0x20a)][_0x2d174a(0x1ef)])??_0x10ce7d[_0x2d174a(0x237)];}['flush'](_0x4cd53e,_0x1d79ea={}){const _0x57042d=_0x1dcad0;let _0x15c859=this[_0x57042d(0x22f)](_0x4cd53e);if(!_0x15c859)return Promise[_0x57042d(0x221)](Error(_0x57042d(0x212)));let _0x1133d0=this[_0x57042d(0x203)][_0x57042d(0x217)](_0x15c859);if(!_0x1133d0)return Promise[_0x57042d(0x221)](Error('[FCollaboration]:\x20Unit\x20\x22'+_0x15c859+_0x57042d(0x211)));let _0x2e00b2=_0x1133d0[_0x57042d(0x20a)][_0x57042d(0x1ef)];if(_0x2e00b2===_0x10ce7d[_0x57042d(0x1fa)])return Promise[_0x57042d(0x202)]();let _0x4806b5=b(_0x15c859,_0x2e00b2);if(_0x4806b5)return Promise[_0x57042d(0x221)](_0x4806b5);let _0x13ffa5=_0x1d79ea[_0x57042d(0x20c)]??0x7530;return new Promise((_0x2a225a,_0xc1769e)=>{const _0x475b58=_0x57042d;let _0x3dc3e2=!0x1,_0x4d1025=null,_0x51304e=setTimeout(()=>{const _0x5663f5=_0x1b85;_0x3dc3e2=!0x0,_0x4d1025==null||_0x4d1025['unsubscribe'](),_0xc1769e(Error(_0x5663f5(0x1f5)+_0x15c859+'\x22\x20after\x20'+_0x13ffa5+'ms.'));},_0x13ffa5),_0x13d332=()=>{const _0x14841=_0x1b85;_0x3dc3e2=!0x0,clearTimeout(_0x51304e),_0x4d1025==null||_0x4d1025[_0x14841(0x222)]();};_0x4d1025=_0x1133d0[_0x475b58(0x223)][_0x475b58(0x1fd)](_0x289175=>{const _0x58a519=_0x475b58;if(_0x3dc3e2)return;if(_0x289175===_0x10ce7d[_0x58a519(0x1fa)]){_0x13d332(),_0x2a225a();return;}let _0x2bce7b=b(_0x15c859,_0x289175);_0x2bce7b&&(_0x13d332(),_0xc1769e(_0x2bce7b));});});}[_0x1dcad0(0x22f)](_0x4686cd){const _0x178d30=_0x1dcad0;var _0x52c8c9;return _0x4686cd||((_0x52c8c9=this[_0x178d30(0x213)][_0x178d30(0x205)]())==null?void 0x0:_0x52c8c9[_0x178d30(0x23a)]());}};y=v([_(0x1,_0x132184(_0x2b2ef3)),_(0x2,_0xac809c),_(0x3,_0x132184(_0x1072cd)),_(0x4,_0x132184(_0x25f8f1))],y);function b(_0x42e009,_0x22ff56){const _0x1ce74f=_0x1dcad0;return _0x22ff56===_0x10ce7d[_0x1ce74f(0x1f3)]||_0x22ff56===_0x10ce7d[_0x1ce74f(0x237)]?Error(_0x1ce74f(0x1ee)+_0x42e009+_0x1ce74f(0x23e)+_0x22ff56+'.'):null;}var x=class extends _0x1b630f{['_initialize'](_0x512a7e){const _0x5779cc=_0x1dcad0;let _0x1aa43c=_0x512a7e[_0x5779cc(0x21f)](_0x25f8f1);this[_0x5779cc(0x200)](this[_0x5779cc(0x225)](this[_0x5779cc(0x21b)][_0x5779cc(0x235)],()=>{const _0x3e676d=_0x5779cc;let _0x2c4d0f=new _0x5e8abf(),_0x461be2=_0x1aa43c[_0x3e676d(0x22c)][_0x3e676d(0x1fd)](_0x222141=>{const _0x1ad205=_0x3e676d;let _0x107cbc=_0x222141[_0x1ad205(0x223)]['subscribe'](_0x35623b=>{const _0x56004e=_0x1ad205;let _0x33f4c6={'unitId':_0x222141['unitID'],'status':_0x35623b};this['fireEvent'](this[_0x56004e(0x21b)][_0x56004e(0x235)],_0x33f4c6);});_0x2c4d0f[_0x1ad205(0x220)](_0x4984cf(_0x107cbc));});return _0x2c4d0f['add'](_0x4984cf(_0x461be2)),_0x2c4d0f;}));}[_0x1dcad0(0x21d)](){const _0x26ceee=_0x1dcad0;return this[_0x26ceee(0x1f6)]['createInstance'](y,{'getWorkbook':_0x318104=>this['getWorkbook'](_0x318104),'getDocument':_0x5c5f2c=>this[_0x26ceee(0x232)](_0x5c5f2c),'getPresentation':_0x416f24=>this[_0x26ceee(0x1fb)](_0x416f24),'getBase':_0x2cd8eb=>this[_0x26ceee(0x1fc)](_0x2cd8eb),'getBoard':_0x52416a=>this['getBoard'](_0x52416a),'getPdf':_0x2b4fa4=>this[_0x26ceee(0x201)](_0x2b4fa4)});}[_0x1dcad0(0x20d)](_0x459eba,_0x549968,_0x30b626){const _0x2ec6ce=_0x1dcad0;return this[_0x2ec6ce(0x1f6)][_0x2ec6ce(0x21f)](_0x1072cd)[_0x2ec6ce(0x21c)](_0x459eba,_0x549968,_0x30b626);}[_0x1dcad0(0x239)](_0x1ac731,_0x1d2007,_0x385d80){const _0x46d0d9=_0x1dcad0;return this[_0x46d0d9(0x1f6)]['get'](_0x1072cd)[_0x46d0d9(0x210)](_0x1ac731,_0x1d2007,_0x385d80);}};_0x1b630f[_0x1dcad0(0x214)](x);export{y as FCollaboration};