@univerjs-pro/collaboration-client 1.0.0-alpha.1 → 1.0.0-alpha.2

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 (85) 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/umd/facade.js +1 -1
  65. package/lib/umd/index.js +1 -1
  66. package/lib/umd/locale/ar-SA.js +1 -1
  67. package/lib/umd/locale/ca-ES.js +1 -1
  68. package/lib/umd/locale/de-DE.js +1 -1
  69. package/lib/umd/locale/en-US.js +1 -1
  70. package/lib/umd/locale/es-ES.js +1 -1
  71. package/lib/umd/locale/fa-IR.js +1 -1
  72. package/lib/umd/locale/fr-FR.js +1 -1
  73. package/lib/umd/locale/id-ID.js +1 -1
  74. package/lib/umd/locale/it-IT.js +1 -1
  75. package/lib/umd/locale/ja-JP.js +1 -1
  76. package/lib/umd/locale/ko-KR.js +1 -1
  77. package/lib/umd/locale/pl-PL.js +1 -1
  78. package/lib/umd/locale/pt-BR.js +1 -1
  79. package/lib/umd/locale/ru-RU.js +1 -1
  80. package/lib/umd/locale/sk-SK.js +1 -1
  81. package/lib/umd/locale/vi-VN.js +1 -1
  82. package/lib/umd/locale/zh-CN.js +1 -1
  83. package/lib/umd/locale/zh-HK.js +1 -1
  84. package/lib/umd/locale/zh-TW.js +1 -1
  85. package/package.json +13 -13
@@ -1 +1 @@
1
- const _0xc89ca8=_0x4b0d;function _0x4b0d(_0x7ab5a2,_0x21255e){_0x7ab5a2=_0x7ab5a2-0xc4;const _0x442d76=_0x442d();let _0x4b0d47=_0x442d76[_0x7ab5a2];return _0x4b0d47;}(function(_0x4a97e1,_0x7fd119){const _0x1a1017=_0x4b0d,_0x2c0660=_0x4a97e1();while(!![]){try{const _0x4f8a02=-parseInt(_0x1a1017(0xcd))/0x1*(parseInt(_0x1a1017(0xd3))/0x2)+-parseInt(_0x1a1017(0xd7))/0x3+-parseInt(_0x1a1017(0xd4))/0x4+parseInt(_0x1a1017(0xc6))/0x5*(-parseInt(_0x1a1017(0xc4))/0x6)+parseInt(_0x1a1017(0xcc))/0x7*(parseInt(_0x1a1017(0xdb))/0x8)+parseInt(_0x1a1017(0xd1))/0x9+parseInt(_0x1a1017(0xce))/0xa*(parseInt(_0x1a1017(0xc5))/0xb);if(_0x4f8a02===_0x7fd119)break;else _0x2c0660['push'](_0x2c0660['shift']());}catch(_0x29eada){_0x2c0660['push'](_0x2c0660['shift']());}}}(_0x442d,0x55fb6));function _0x442d(){const _0x29ad82=['您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。','5173398SIUNFD','點擊重新連線','14URqbSA','1894840kyCMrR','加入協作失敗,您的編輯將暫存於本機。','加入協作失敗,請稍後重試,您的編輯將暫存於本機。','11622yBnXLL','認證錯誤','連線失敗,請檢查您的網路。','沒有協作權限,您的編輯將暫存於本機。','8wqHTjj','協作文件數量超過限制,您的編輯將暫存於本機。','744ekZDej','22pekTQK','21355hfuaZZ','伺服器未回應協作請求,您的編輯將儲存在本機。','編輯衝突','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','此文件協作人數已達上限,您的編輯將暫存於本機。','已同步','3441277pIHIBg','947uBJMdf','1497830ZkHAoj','協作衝突'];_0x442d=function(){return _0x29ad82;};return _0x442d();}const e={'collaboration-client':{'collabClient':{'tooltip':{'reconnect':_0xc89ca8(0xd2)}},'collabStatus':{'fetchMiss':'正在擷取伺服器資料...','conflict':_0xc89ca8(0xc8),'notCollab':'本機檔案','synced':_0xc89ca8(0xcb),'syncing':'同步中...','offline':'已離線,編輯將儲存在本機'},'session':{'connection-failed':_0xc89ca8(0xd9),'will-retry':'連線失敗,將在稍後重試連線。','room-full':_0xc89ca8(0xca),'join-failed':_0xc89ca8(0xd6),'room-not-exists':_0xc89ca8(0xd5),'room-permission-denied':_0xc89ca8(0xda),'room-cnt-exceeds':_0xc89ca8(0xdc),'collaboration-timeout':_0xc89ca8(0xc7)},'conflict':{'title':_0xc89ca8(0xcf),'content':'您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。'},'permission':{'title':_0xc89ca8(0xd8),'content':'您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。'},'collaboration':{'single-unit':{'warning':_0xc89ca8(0xc9)},'closeRoom':'由於協作房間已關閉,編輯權限已被收回。'},'auth':{'needGotoLoginAlert':_0xc89ca8(0xd0)}}};export{e as default};
1
+ const _0x3d2533=_0x25c8;function _0x27b1(){const _0x37c3db=['216BuLsuT','您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。','編輯衝突','343532JhilrH','此文件協作人數已達上限,您的編輯將暫存於本機。','69915bbtlCz','伺服器未回應協作請求,您的編輯將儲存在本機。','492oBGPYn','連線失敗,請檢查您的網路。','加入協作失敗,您的編輯將暫存於本機。','已離線,編輯將儲存在本機','同步中...','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','正在擷取伺服器資料...','點擊重新連線','87965inQleH','連線失敗,將在稍後重試連線。','5612406FheadX','5444248OMNDEm','協作文件數量超過限制,您的編輯將暫存於本機。','協作衝突','您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。','61602NWGCcS','46049157sIYXFm'];_0x27b1=function(){return _0x37c3db;};return _0x27b1();}(function(_0x251d85,_0x3ea4d9){const _0x149bdd=_0x25c8,_0x1f1665=_0x251d85();while(!![]){try{const _0x2463e1=parseInt(_0x149bdd(0x8b))/0x1+parseInt(_0x149bdd(0x84))/0x2+parseInt(_0x149bdd(0x7f))/0x3+parseInt(_0x149bdd(0x80))/0x4+-parseInt(_0x149bdd(0x7d))/0x5*(-parseInt(_0x149bdd(0x8d))/0x6)+parseInt(_0x149bdd(0x89))/0x7*(parseInt(_0x149bdd(0x86))/0x8)+-parseInt(_0x149bdd(0x85))/0x9;if(_0x2463e1===_0x3ea4d9)break;else _0x1f1665['push'](_0x1f1665['shift']());}catch(_0x19ddbc){_0x1f1665['push'](_0x1f1665['shift']());}}}(_0x27b1,0xf0285));const e={'collaboration-client':{'collabClient':{'tooltip':{'reconnect':_0x3d2533(0x7c)}},'collabStatus':{'fetchMiss':_0x3d2533(0x7b),'conflict':_0x3d2533(0x88),'notCollab':'本機檔案','synced':'已同步','syncing':_0x3d2533(0x91),'offline':_0x3d2533(0x90)},'session':{'connection-failed':_0x3d2533(0x8e),'will-retry':_0x3d2533(0x7e),'room-full':_0x3d2533(0x8a),'join-failed':'加入協作失敗,請稍後重試,您的編輯將暫存於本機。','room-not-exists':_0x3d2533(0x8f),'room-permission-denied':'沒有協作權限,您的編輯將暫存於本機。','room-cnt-exceeds':_0x3d2533(0x81),'collaboration-timeout':_0x3d2533(0x8c)},'conflict':{'title':_0x3d2533(0x82),'content':_0x3d2533(0x92)},'permission':{'title':'認證錯誤','content':_0x3d2533(0x87)},'collaboration':{'single-unit':{'warning':'您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。'},'closeRoom':'由於協作房間已關閉,編輯權限已被收回。'},'auth':{'needGotoLoginAlert':_0x3d2533(0x83)}}};function _0x25c8(_0x1141fa,_0x282a30){_0x1141fa=_0x1141fa-0x7b;const _0x27b152=_0x27b1();let _0x25c80c=_0x27b152[_0x1141fa];return _0x25c80c;}export{e as default};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x535688=_0x32d8;(function(_0x1402b6,_0x2926d7){const _0x4c134d=_0x32d8,_0x1a7d1e=_0x1402b6();while(!![]){try{const _0x7d5b21=parseInt(_0x4c134d(0x146))/0x1+parseInt(_0x4c134d(0x15e))/0x2+parseInt(_0x4c134d(0x133))/0x3*(parseInt(_0x4c134d(0x15b))/0x4)+parseInt(_0x4c134d(0x145))/0x5+-parseInt(_0x4c134d(0x164))/0x6+-parseInt(_0x4c134d(0x138))/0x7+-parseInt(_0x4c134d(0x137))/0x8;if(_0x7d5b21===_0x2926d7)break;else _0x1a7d1e['push'](_0x1a7d1e['shift']());}catch(_0x3956d5){_0x1a7d1e['push'](_0x1a7d1e['shift']());}}}(_0x2ecd,0xa9ec4));import{CollaborationController as _0x57c2fa,CollaborationStatus as _0x466a7c,DataLoaderService as _0x3b99ae,MemberService as _0x8775a6}from'@univerjs-pro/collaboration-client';import{FBase as _0x1be2a3,FEnum as _0x24fe2e,FEventName as _0x4d53a3,FUniver as _0x41b409}from'@univerjs/core/facade';import{DisposableCollection as _0x5d55b0,IUniverInstanceService as _0x447d85,Inject as _0x557dd6,Injector as _0x3294ff,toDisposable as _0x330e8e}from'@univerjs/core';import{SnapshotService as _0x5d09fc}from'@univerjs-pro/collaboration';function _0x32d8(_0x580b71,_0x428fb1){_0x580b71=_0x580b71-0x12f;const _0x2ecd8a=_0x2ecd();let _0x32d870=_0x2ecd8a[_0x580b71];return _0x32d870;}import{switchMap as _0x54716c}from'rxjs';var h=class extends _0x24fe2e{get[_0x535688(0x15d)](){return _0x466a7c;}};_0x24fe2e[_0x535688(0x161)](h);var g=class extends _0x4d53a3{get[_0x535688(0x13d)](){const _0x2c6a42=_0x535688;return _0x2c6a42(0x13d);}};_0x4d53a3[_0x535688(0x161)](g);function _0x2ecd(){const _0x309892=['CollaborationStatus','2586416dpmJiv','getWorkbook','loadSheetAsync','extend','_handler','loadServerUnitOfRevision','706176tClWmO','readyForCollab','waitForRoom$','loadBase','loadUnit','getUnitId','3KhGrPy','values','defineProperty','status','12139424Wclfhg','8013082drXEPi','loadDocAsync','loadUnitOfRevision','add','_injector','CollaborationStatusChanged','subscribeCollaborators','loadSlide','_univerInstanceService','NOT_COLLAB','getBase','_collaborationController','status$','3629620jEuWVv','439277EBlBqi','decorate','registerEventHandler','from','state','getPresentation','subscribe','loadDoc','entityInit$','createInstance','pipe','getDocument','loadSheet','_initialize','getOwnPropertyDescriptor','getCollaboration','members$','unitID','_snapshotService','Event','get','4069780GQDdSA','length'];_0x2ecd=function(){return _0x309892;};return _0x2ecd();}function _(_0x579572,_0x1b8beb){return function(_0x527f45,_0xa56f44){_0x1b8beb(_0x527f45,_0xa56f44,_0x579572);};}function v(_0x223de4,_0x72dde8,_0xf7e1c6,_0x44871b){const _0x59109a=_0x535688;var _0x4a3437=arguments[_0x59109a(0x15c)],_0x32e5b7=_0x4a3437<0x3?_0x72dde8:_0x44871b===null?_0x44871b=Object[_0x59109a(0x154)](_0x72dde8,_0xf7e1c6):_0x44871b,_0x5c6f6f;if(typeof Reflect=='object'&&typeof Reflect[_0x59109a(0x147)]=='function')_0x32e5b7=Reflect[_0x59109a(0x147)](_0x223de4,_0x72dde8,_0xf7e1c6,_0x44871b);else{for(var _0x512109=_0x223de4[_0x59109a(0x15c)]-0x1;_0x512109>=0x0;_0x512109--)(_0x5c6f6f=_0x223de4[_0x512109])&&(_0x32e5b7=(_0x4a3437<0x3?_0x5c6f6f(_0x32e5b7):_0x4a3437>0x3?_0x5c6f6f(_0x72dde8,_0xf7e1c6,_0x32e5b7):_0x5c6f6f(_0x72dde8,_0xf7e1c6))||_0x32e5b7);}return _0x4a3437>0x3&&_0x32e5b7&&Object[_0x59109a(0x135)](_0x72dde8,_0xf7e1c6,_0x32e5b7),_0x32e5b7;}let y=class extends _0x1be2a3{constructor(_0x448ef,_0x50e545,_0x52df02,_0x4998c0,_0x14ec50){const _0x2a39d2=_0x535688;super(),this['_handler']=_0x448ef,this['_injector']=_0x50e545,this['_univerInstanceService']=_0x52df02,this[_0x2a39d2(0x158)]=_0x4998c0,this['_collaborationController']=_0x14ec50;}async[_0x535688(0x160)](_0x4e32d6,_0x2ab3b1){const _0x3672a7=_0x535688;return await this[_0x3672a7(0x158)][_0x3672a7(0x152)](_0x4e32d6,0x0,_0x2ab3b1)?(await this[_0x3672a7(0x143)][_0x3672a7(0x165)](_0x4e32d6),this['_handler'][_0x3672a7(0x15f)](_0x4e32d6)):null;}async[_0x535688(0x139)](_0x494075,_0x1c2729){const _0x31859b=_0x535688;return await this[_0x31859b(0x158)][_0x31859b(0x14d)](_0x494075,0x0,_0x1c2729)?(await this['_collaborationController'][_0x31859b(0x165)](_0x494075),this[_0x31859b(0x162)][_0x31859b(0x151)](_0x494075)):null;}async['loadBaseAsync'](_0x2eea37,_0x4ff339){const _0x432834=_0x535688;return await this[_0x432834(0x158)][_0x432834(0x130)](_0x2eea37,0x0,_0x4ff339)?(await this[_0x432834(0x143)][_0x432834(0x165)](_0x2eea37),this['_handler'][_0x432834(0x142)](_0x2eea37)):null;}async['loadSlideAsync'](_0x5dc69f,_0x4d3063){const _0xbdea46=_0x535688;return await this[_0xbdea46(0x158)][_0xbdea46(0x13f)](_0x5dc69f,0x0,_0x4d3063)?(await this[_0xbdea46(0x143)]['readyForCollab'](_0x5dc69f),this[_0xbdea46(0x162)][_0xbdea46(0x14b)](_0x5dc69f)):null;}[_0x535688(0x13e)](_0x4cb2bb,_0x2605cc){const _0x49e669=_0x535688;return _0x330e8e(this[_0x49e669(0x13c)]['get'](_0x8775a6)[_0x49e669(0x12f)](_0x4cb2bb)[_0x49e669(0x150)](_0x54716c(_0x479bfc=>_0x479bfc[_0x49e669(0x156)]))[_0x49e669(0x14c)](_0x538ceb=>_0x2605cc(Array[_0x49e669(0x149)](_0x538ceb[_0x49e669(0x134)]()))));}['getCollaborationStatus'](_0x469b56){const _0x396a3f=_0x535688;var _0x335df9;let _0x123630;if(_0x469b56)_0x123630=_0x469b56;else{let _0x500b38=this[_0x396a3f(0x140)]['getFocusedUnit']();_0x123630=_0x500b38==null?void 0x0:_0x500b38[_0x396a3f(0x132)]();}if(!_0x123630)return _0x466a7c[_0x396a3f(0x141)];let _0x3aeef9=this[_0x396a3f(0x143)]['getCollabEntity'](_0x123630);return(_0x335df9=_0x3aeef9==null?void 0x0:_0x3aeef9[_0x396a3f(0x14a)][_0x396a3f(0x136)])==null?_0x466a7c['NOT_COLLAB']:_0x335df9;}};y=v([_(0x1,_0x557dd6(_0x3294ff)),_(0x2,_0x447d85),_(0x3,_0x557dd6(_0x5d09fc)),_(0x4,_0x557dd6(_0x57c2fa))],y);var b=class extends _0x41b409{[_0x535688(0x153)](_0x38f34c){const _0x469339=_0x535688;let _0x41ada6=_0x38f34c['get'](_0x57c2fa);this['disposeWithMe'](this[_0x469339(0x148)](this[_0x469339(0x159)][_0x469339(0x13d)],()=>{const _0x30e43a=_0x469339;let _0x524dee=new _0x5d55b0(),_0x6ba074=_0x41ada6[_0x30e43a(0x14e)]['subscribe'](_0x51573b=>{const _0x3061f3=_0x30e43a;let _0x42a21e=_0x51573b[_0x3061f3(0x144)][_0x3061f3(0x14c)](_0x28e598=>{const _0x2465c5=_0x3061f3;let _0x19c6f7={'unitId':_0x51573b[_0x2465c5(0x157)],'status':_0x28e598};this['fireEvent'](this['Event']['CollaborationStatusChanged'],_0x19c6f7);});_0x524dee[_0x3061f3(0x13b)](_0x330e8e(_0x42a21e));});return _0x524dee[_0x30e43a(0x13b)](_0x330e8e(_0x6ba074)),_0x524dee;}));}[_0x535688(0x155)](){const _0x20b39b=_0x535688;return this[_0x20b39b(0x13c)][_0x20b39b(0x14f)](y,{'getWorkbook':_0x361d6a=>this[_0x20b39b(0x15f)](_0x361d6a),'getDocument':_0x4c2963=>this[_0x20b39b(0x151)](_0x4c2963),'getPresentation':_0x3c47b2=>this['getPresentation'](_0x3c47b2),'getBase':_0x1ac48f=>this[_0x20b39b(0x142)](_0x1ac48f)});}['loadServerUnit'](_0x2e5000,_0x4e4dbd,_0x53e99e){const _0x2c3715=_0x535688;return this[_0x2c3715(0x13c)][_0x2c3715(0x15a)](_0x3b99ae)[_0x2c3715(0x131)](_0x2e5000,_0x4e4dbd,_0x53e99e);}[_0x535688(0x163)](_0x5f6789,_0x3ecfc9,_0x4515c1){const _0x2bb056=_0x535688;return this[_0x2bb056(0x13c)][_0x2bb056(0x15a)](_0x3b99ae)[_0x2bb056(0x13a)](_0x5f6789,_0x3ecfc9,_0x4515c1);}};_0x41b409[_0x535688(0x161)](b);export{y as FCollaboration};
1
+ const _0x476c53=_0x3c77;(function(_0x5839fb,_0x3ae386){const _0x4cd1de=_0x3c77,_0x5efe4e=_0x5839fb();while(!![]){try{const _0x546c92=-parseInt(_0x4cd1de(0x1fd))/0x1*(parseInt(_0x4cd1de(0x223))/0x2)+parseInt(_0x4cd1de(0x209))/0x3+parseInt(_0x4cd1de(0x1f2))/0x4*(parseInt(_0x4cd1de(0x21f))/0x5)+parseInt(_0x4cd1de(0x1f6))/0x6+parseInt(_0x4cd1de(0x218))/0x7+parseInt(_0x4cd1de(0x206))/0x8+-parseInt(_0x4cd1de(0x1f7))/0x9*(parseInt(_0x4cd1de(0x1f4))/0xa);if(_0x546c92===_0x3ae386)break;else _0x5efe4e['push'](_0x5efe4e['shift']());}catch(_0x561a5d){_0x5efe4e['push'](_0x5efe4e['shift']());}}}(_0x586c,0xd90ea));import{CollaborationController as _0x3462eb,CollaborationStatus as _0x5a0a55,DataLoaderService as _0x5d1ed8,MemberService as _0x176c5b}from'@univerjs-pro/collaboration-client';import{FBase as _0x51de27,FEnum as _0x20068e,FEventName as _0x5dce4e,FUniver as _0x294afc}from'@univerjs/core/facade';function _0x586c(){const _0x2dfbb0=['waitForRoom$','loadSlideAsync','_initialize','disposeWithMe','defineProperty','extend','length','loadUnit','subscribeCollaborators','loadSheetAsync','8517761NjPyir','Event','loadBaseAsync','function','CollaborationStatusChanged','createInstance','loadSlide','1527980bpCqAC','_univerInstanceService','loadBase','_collaborationController','1238dFSWPf','getBase','object','getCollabEntity','20JXBgCm','loadUnitOfRevision','9908380NMXUFg','get','3337416VtMxTd','27enBSGX','_snapshotService','loadSheet','registerEventHandler','getDocument','members$','1879JwiYWZ','getCollaboration','state','_injector','values','add','subscribe','NOT_COLLAB','readyForCollab','2538224WWTEoF','getFocusedUnit','status$','4219092JotuWl','_handler','fireEvent','from','getWorkbook'];_0x586c=function(){return _0x2dfbb0;};return _0x586c();}import{DisposableCollection as _0xeb5346,IUniverInstanceService as _0x9008ea,Inject as _0x1aa1c8,Injector as _0x2d3a23,toDisposable as _0x455548}from'@univerjs/core';import{SnapshotService as _0x5a891b}from'@univerjs-pro/collaboration';import{switchMap as _0x27306d}from'rxjs';var h=class extends _0x20068e{get['CollaborationStatus'](){return _0x5a0a55;}};_0x20068e['extend'](h);var g=class extends _0x5dce4e{get[_0x476c53(0x21c)](){return'CollaborationStatusChanged';}};_0x5dce4e[_0x476c53(0x213)](g);function _(_0x156f6b,_0x1a4f8e){return function(_0x446c11,_0x31bd42){_0x1a4f8e(_0x446c11,_0x31bd42,_0x156f6b);};}function v(_0x16e09d,_0x166fba,_0x5a99e3,_0x269118){const _0x4f028f=_0x476c53;var _0x27825a=arguments[_0x4f028f(0x214)],_0x39207e=_0x27825a<0x3?_0x166fba:_0x269118===null?_0x269118=Object['getOwnPropertyDescriptor'](_0x166fba,_0x5a99e3):_0x269118,_0x5c96f6;if(typeof Reflect==_0x4f028f(0x225)&&typeof Reflect['decorate']==_0x4f028f(0x21b))_0x39207e=Reflect['decorate'](_0x16e09d,_0x166fba,_0x5a99e3,_0x269118);else{for(var _0x1fdb3e=_0x16e09d['length']-0x1;_0x1fdb3e>=0x0;_0x1fdb3e--)(_0x5c96f6=_0x16e09d[_0x1fdb3e])&&(_0x39207e=(_0x27825a<0x3?_0x5c96f6(_0x39207e):_0x27825a>0x3?_0x5c96f6(_0x166fba,_0x5a99e3,_0x39207e):_0x5c96f6(_0x166fba,_0x5a99e3))||_0x39207e);}return _0x27825a>0x3&&_0x39207e&&Object[_0x4f028f(0x212)](_0x166fba,_0x5a99e3,_0x39207e),_0x39207e;}let y=class extends _0x51de27{constructor(_0x420953,_0x129524,_0x2ffaa5,_0x5b23e4,_0x16cd1d){const _0x331247=_0x476c53;super(),this['_handler']=_0x420953,this[_0x331247(0x200)]=_0x129524,this[_0x331247(0x220)]=_0x2ffaa5,this[_0x331247(0x1f8)]=_0x5b23e4,this[_0x331247(0x222)]=_0x16cd1d;}async[_0x476c53(0x217)](_0x35cfea,_0x4c2b48){const _0x2db665=_0x476c53;return await this[_0x2db665(0x1f8)][_0x2db665(0x1f9)](_0x35cfea,0x0,_0x4c2b48)?(await this[_0x2db665(0x222)][_0x2db665(0x205)](_0x35cfea),this[_0x2db665(0x20a)][_0x2db665(0x20d)](_0x35cfea)):null;}async['loadDocAsync'](_0x51f8f1,_0x616486){const _0x5b0e3a=_0x476c53;return await this[_0x5b0e3a(0x1f8)]['loadDoc'](_0x51f8f1,0x0,_0x616486)?(await this[_0x5b0e3a(0x222)][_0x5b0e3a(0x205)](_0x51f8f1),this[_0x5b0e3a(0x20a)][_0x5b0e3a(0x1fb)](_0x51f8f1)):null;}async[_0x476c53(0x21a)](_0x114df3,_0x43dec6){const _0x3288f7=_0x476c53;return await this[_0x3288f7(0x1f8)][_0x3288f7(0x221)](_0x114df3,0x0,_0x43dec6)?(await this['_collaborationController'][_0x3288f7(0x205)](_0x114df3),this[_0x3288f7(0x20a)]['getBase'](_0x114df3)):null;}async[_0x476c53(0x20f)](_0x57ab71,_0x53c1f4){const _0x4218de=_0x476c53;return await this[_0x4218de(0x1f8)][_0x4218de(0x21e)](_0x57ab71,0x0,_0x53c1f4)?(await this[_0x4218de(0x222)]['readyForCollab'](_0x57ab71),this[_0x4218de(0x20a)]['getPresentation'](_0x57ab71)):null;}[_0x476c53(0x216)](_0x2c7b7d,_0x131b1b){const _0x34e82c=_0x476c53;return _0x455548(this[_0x34e82c(0x200)]['get'](_0x176c5b)[_0x34e82c(0x20e)](_0x2c7b7d)['pipe'](_0x27306d(_0x593e3d=>_0x593e3d[_0x34e82c(0x1fc)]))[_0x34e82c(0x203)](_0x336052=>_0x131b1b(Array[_0x34e82c(0x20c)](_0x336052[_0x34e82c(0x201)]()))));}['getCollaborationStatus'](_0x2dea36){const _0x37ec6a=_0x476c53;var _0x28df97;let _0x4e7a71;if(_0x2dea36)_0x4e7a71=_0x2dea36;else{let _0x171944=this[_0x37ec6a(0x220)][_0x37ec6a(0x207)]();_0x4e7a71=_0x171944==null?void 0x0:_0x171944['getUnitId']();}if(!_0x4e7a71)return _0x5a0a55[_0x37ec6a(0x204)];let _0x50c1b1=this[_0x37ec6a(0x222)][_0x37ec6a(0x1f1)](_0x4e7a71);return(_0x28df97=_0x50c1b1==null?void 0x0:_0x50c1b1[_0x37ec6a(0x1ff)]['status'])==null?_0x5a0a55['NOT_COLLAB']:_0x28df97;}};y=v([_(0x1,_0x1aa1c8(_0x2d3a23)),_(0x2,_0x9008ea),_(0x3,_0x1aa1c8(_0x5a891b)),_(0x4,_0x1aa1c8(_0x3462eb))],y);function _0x3c77(_0x1a6fdb,_0x3534d0){_0x1a6fdb=_0x1a6fdb-0x1f1;const _0x586c18=_0x586c();let _0x3c7748=_0x586c18[_0x1a6fdb];return _0x3c7748;}var b=class extends _0x294afc{[_0x476c53(0x210)](_0x5777b7){const _0x366080=_0x476c53;let _0x543f83=_0x5777b7[_0x366080(0x1f5)](_0x3462eb);this[_0x366080(0x211)](this[_0x366080(0x1fa)](this[_0x366080(0x219)][_0x366080(0x21c)],()=>{const _0x21f9ad=_0x366080;let _0x11a753=new _0xeb5346(),_0x5793dd=_0x543f83['entityInit$']['subscribe'](_0x3513e5=>{const _0xe54f22=_0x3c77;let _0x3a4f3d=_0x3513e5[_0xe54f22(0x208)][_0xe54f22(0x203)](_0x5c47b1=>{const _0x3a6261=_0xe54f22;let _0xb8e473={'unitId':_0x3513e5['unitID'],'status':_0x5c47b1};this[_0x3a6261(0x20b)](this['Event'][_0x3a6261(0x21c)],_0xb8e473);});_0x11a753[_0xe54f22(0x202)](_0x455548(_0x3a4f3d));});return _0x11a753[_0x21f9ad(0x202)](_0x455548(_0x5793dd)),_0x11a753;}));}[_0x476c53(0x1fe)](){const _0x4d8f77=_0x476c53;return this[_0x4d8f77(0x200)][_0x4d8f77(0x21d)](y,{'getWorkbook':_0x5c7581=>this[_0x4d8f77(0x20d)](_0x5c7581),'getDocument':_0x1719f7=>this['getDocument'](_0x1719f7),'getPresentation':_0x499149=>this['getPresentation'](_0x499149),'getBase':_0x3c8a03=>this[_0x4d8f77(0x224)](_0x3c8a03)});}['loadServerUnit'](_0x2ddd21,_0x46a621,_0x2029f1){const _0x209a7f=_0x476c53;return this[_0x209a7f(0x200)][_0x209a7f(0x1f5)](_0x5d1ed8)[_0x209a7f(0x215)](_0x2ddd21,_0x46a621,_0x2029f1);}['loadServerUnitOfRevision'](_0x23108e,_0x4bf4d6,_0x338e35){const _0x41e174=_0x476c53;return this[_0x41e174(0x200)][_0x41e174(0x1f5)](_0x5d1ed8)[_0x41e174(0x1f3)](_0x23108e,_0x4bf4d6,_0x338e35);}};_0x294afc[_0x476c53(0x213)](b);export{y as FCollaboration};