@univerjs-pro/collaboration-client 1.0.2 → 1.0.4

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 +15 -15
@@ -1 +1 @@
1
- function _0x47f3(_0x5ce21b,_0x181e2d){_0x5ce21b=_0x5ce21b-0x1d5;const _0x133ddd=_0x133d();let _0x47f390=_0x133ddd[_0x5ce21b];return _0x47f390;}function _0x133d(){const _0x308aa0=['24TPoDzP','320wCcljH','已離線,編輯將儲存在本機','伺服器未回應協作請求,您的編輯將儲存在本機。','57578eJorDp','已同步','連線失敗,將在稍後重試連線。','52707FmcQge','5wYpCkO','加入協作失敗,您的編輯將暫存於本機。','由於協作房間已關閉,編輯權限已被收回。','3286158aOWJoP','121QHqvFy','沒有協作權限,您的編輯將暫存於本機。','66350BFOTgi','208159AEzDUH','協作文件數量超過限制,您的編輯將暫存於本機。','本機檔案','您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。','同步中...','48868872tJexEw','11658123icrXmG','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','此文件協作人數已達上限,您的編輯將暫存於本機。','編輯衝突','連線失敗,請檢查您的網路。','點擊重新連線','加入協作失敗,請稍後重試,您的編輯將暫存於本機。','正在擷取伺服器資料...','您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。','244WeZIZl'];_0x133d=function(){return _0x308aa0;};return _0x133d();}const _0x5c6152=_0x47f3;(function(_0x1be874,_0x416203){const _0x1b4956=_0x47f3,_0x51d4a7=_0x1be874();while(!![]){try{const _0x48dc20=parseInt(_0x1b4956(0x1dd))/0x1*(parseInt(_0x1b4956(0x1e1))/0x2)+parseInt(_0x1b4956(0x1e4))/0x3*(parseInt(_0x1b4956(0x1dc))/0x4)+-parseInt(_0x1b4956(0x1e5))/0x5*(-parseInt(_0x1b4956(0x1e8))/0x6)+-parseInt(_0x1b4956(0x1ec))/0x7*(-parseInt(_0x1b4956(0x1de))/0x8)+parseInt(_0x1b4956(0x1f2))/0x9+-parseInt(_0x1b4956(0x1eb))/0xa*(parseInt(_0x1b4956(0x1e9))/0xb)+-parseInt(_0x1b4956(0x1f1))/0xc;if(_0x48dc20===_0x416203)break;else _0x51d4a7['push'](_0x51d4a7['shift']());}catch(_0x497da7){_0x51d4a7['push'](_0x51d4a7['shift']());}}}(_0x133d,0x9ea2e));const e={'collaboration-client':{'collabClient':{'tooltip':{'reconnect':_0x5c6152(0x1d8)}},'collabStatus':{'fetchMiss':_0x5c6152(0x1da),'conflict':_0x5c6152(0x1d6),'notCollab':_0x5c6152(0x1ee),'synced':_0x5c6152(0x1e2),'syncing':_0x5c6152(0x1f0),'offline':_0x5c6152(0x1df)},'session':{'connection-failed':_0x5c6152(0x1d7),'will-retry':_0x5c6152(0x1e3),'room-full':_0x5c6152(0x1d5),'join-failed':_0x5c6152(0x1d9),'room-not-exists':_0x5c6152(0x1e6),'room-permission-denied':_0x5c6152(0x1ea),'room-cnt-exceeds':_0x5c6152(0x1ed),'collaboration-timeout':_0x5c6152(0x1e0)},'conflict':{'title':'協作衝突','content':_0x5c6152(0x1f3)},'permission':{'title':'認證錯誤','content':_0x5c6152(0x1db)},'collaboration':{'single-unit':{'warning':'您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。'},'closeRoom':_0x5c6152(0x1e7)},'auth':{'needGotoLoginAlert':_0x5c6152(0x1ef)}}};module['exports']=e;
1
+ const _0x2126f5=_0x36c3;(function(_0x2d3040,_0x13cce7){const _0x4cff43=_0x36c3,_0x2e505a=_0x2d3040();while(!![]){try{const _0x30a9f8=parseInt(_0x4cff43(0x142))/0x1*(parseInt(_0x4cff43(0x134))/0x2)+parseInt(_0x4cff43(0x135))/0x3*(parseInt(_0x4cff43(0x141))/0x4)+-parseInt(_0x4cff43(0x144))/0x5*(-parseInt(_0x4cff43(0x140))/0x6)+-parseInt(_0x4cff43(0x13c))/0x7+-parseInt(_0x4cff43(0x132))/0x8+-parseInt(_0x4cff43(0x145))/0x9*(parseInt(_0x4cff43(0x148))/0xa)+-parseInt(_0x4cff43(0x137))/0xb*(-parseInt(_0x4cff43(0x130))/0xc);if(_0x30a9f8===_0x13cce7)break;else _0x2e505a['push'](_0x2e505a['shift']());}catch(_0x4b5826){_0x2e505a['push'](_0x2e505a['shift']());}}}(_0x5f31,0x43874));const e={'collaboration-client':{'collabClient':{'tooltip':{'reconnect':_0x2126f5(0x14a)}},'collabStatus':{'fetchMiss':_0x2126f5(0x13e),'conflict':_0x2126f5(0x14b),'notCollab':'本機檔案','synced':_0x2126f5(0x13f),'syncing':'同步中...','offline':_0x2126f5(0x149)},'session':{'connection-failed':_0x2126f5(0x139),'will-retry':_0x2126f5(0x131),'room-full':_0x2126f5(0x12f),'join-failed':_0x2126f5(0x136),'room-not-exists':_0x2126f5(0x138),'room-permission-denied':'沒有協作權限,您的編輯將暫存於本機。','room-cnt-exceeds':_0x2126f5(0x133),'collaboration-timeout':_0x2126f5(0x13b)},'conflict':{'title':'協作衝突','content':_0x2126f5(0x13a)},'permission':{'title':'認證錯誤','content':_0x2126f5(0x143)},'collaboration':{'single-unit':{'warning':'您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。'},'closeRoom':_0x2126f5(0x146)},'auth':{'needGotoLoginAlert':_0x2126f5(0x13d)}}};function _0x5f31(){const _0xa61618=['編輯衝突','此文件協作人數已達上限,您的編輯將暫存於本機。','1260444XwknQn','連線失敗,將在稍後重試連線。','3071424gKtlJz','協作文件數量超過限制,您的編輯將暫存於本機。','72WnKavq','3510JfzGZI','加入協作失敗,請稍後重試,您的編輯將暫存於本機。','77hQVVQu','加入協作失敗,您的編輯將暫存於本機。','連線失敗,請檢查您的網路。','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','伺服器未回應協作請求,您的編輯將儲存在本機。','3270834eXZwnN','您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。','正在擷取伺服器資料...','已同步','30eIXlPT','1352iUczcX','5674FMKAsM','您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。','182705KBXHJe','1233vsNqmh','由於協作房間已關閉,編輯權限已被收回。','exports','28460nUfoCx','已離線,編輯將儲存在本機','點擊重新連線'];_0x5f31=function(){return _0xa61618;};return _0x5f31();}function _0x36c3(_0x58f333,_0x515fcb){_0x58f333=_0x58f333-0x12f;const _0x5f31de=_0x5f31();let _0x36c387=_0x5f31de[_0x58f333];return _0x36c387;}module[_0x2126f5(0x147)]=e;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x1d1fc3=_0x22f4;(function(_0x4e26d3,_0x3cbbfb){const _0x3cf035=_0x22f4,_0x3feda4=_0x4e26d3();while(!![]){try{const _0x1d0471=parseInt(_0x3cf035(0x16a))/0x1+parseInt(_0x3cf035(0x170))/0x2+parseInt(_0x3cf035(0x16c))/0x3*(-parseInt(_0x3cf035(0x14e))/0x4)+-parseInt(_0x3cf035(0x17b))/0x5*(-parseInt(_0x3cf035(0x183))/0x6)+parseInt(_0x3cf035(0x16b))/0x7+parseInt(_0x3cf035(0x166))/0x8+-parseInt(_0x3cf035(0x151))/0x9*(parseInt(_0x3cf035(0x181))/0xa);if(_0x1d0471===_0x3cbbfb)break;else _0x3feda4['push'](_0x3feda4['shift']());}catch(_0x4e1fcf){_0x3feda4['push'](_0x3feda4['shift']());}}}(_0x22f9,0x3354f));import{CollaborationController as _0x530327,CollaborationStatus as _0x7daa4d,DataLoaderService as _0x5d355a,MemberService as _0x15d0b6}from'@univerjs-pro/collaboration-client';import{FBase as _0xee6fe5,FEnum as _0x58b719,FEventName as _0x250992,FUniver as _0x45db87}from'@univerjs/core/facade';import{DisposableCollection as _0x39c187,IUniverInstanceService as _0x52a829,Inject as _0x22a320,Injector as _0x59aa74,toDisposable as _0x304255}from'@univerjs/core';import{SnapshotService as _0xe31d93}from'@univerjs-pro/collaboration';import{switchMap as _0x114c20}from'rxjs';var h=class extends _0x58b719{get[_0x1d1fc3(0x156)](){return _0x7daa4d;}};_0x58b719['extend'](h);var g=class extends _0x250992{get[_0x1d1fc3(0x163)](){const _0x2a000d=_0x1d1fc3;return _0x2a000d(0x163);}};_0x250992[_0x1d1fc3(0x197)](g);function _(_0x289f01,_0xbff724){return function(_0x59f373,_0x5e8d1e){_0xbff724(_0x59f373,_0x5e8d1e,_0x289f01);};}function v(_0x1b0951,_0x3b73fc,_0x3cb873,_0x3f5231){const _0x18fa6b=_0x1d1fc3;var _0x287c01=arguments[_0x18fa6b(0x19b)],_0x259e97=_0x287c01<0x3?_0x3b73fc:_0x3f5231===null?_0x3f5231=Object[_0x18fa6b(0x18f)](_0x3b73fc,_0x3cb873):_0x3f5231,_0x2ca8b5;if(typeof Reflect==_0x18fa6b(0x159)&&typeof Reflect[_0x18fa6b(0x15c)]==_0x18fa6b(0x19a))_0x259e97=Reflect[_0x18fa6b(0x15c)](_0x1b0951,_0x3b73fc,_0x3cb873,_0x3f5231);else{for(var _0x577d7e=_0x1b0951['length']-0x1;_0x577d7e>=0x0;_0x577d7e--)(_0x2ca8b5=_0x1b0951[_0x577d7e])&&(_0x259e97=(_0x287c01<0x3?_0x2ca8b5(_0x259e97):_0x287c01>0x3?_0x2ca8b5(_0x3b73fc,_0x3cb873,_0x259e97):_0x2ca8b5(_0x3b73fc,_0x3cb873))||_0x259e97);}return _0x287c01>0x3&&_0x259e97&&Object[_0x18fa6b(0x14f)](_0x3b73fc,_0x3cb873,_0x259e97),_0x259e97;}let y=class extends _0xee6fe5{constructor(_0x262ad8,_0x3599a9,_0x385e92,_0x13d3cc,_0x31be87){const _0x2067f6=_0x1d1fc3;super(),this[_0x2067f6(0x185)]=_0x262ad8,this[_0x2067f6(0x17d)]=_0x3599a9,this[_0x2067f6(0x164)]=_0x385e92,this['_snapshotService']=_0x13d3cc,this['_collaborationController']=_0x31be87;}async[_0x1d1fc3(0x182)](_0x503a4e,_0x1921f9){const _0x14a45b=_0x1d1fc3;return await this[_0x14a45b(0x169)]['loadSheet'](_0x503a4e,0x0,_0x1921f9)?(await this[_0x14a45b(0x150)][_0x14a45b(0x196)](_0x503a4e),this[_0x14a45b(0x185)][_0x14a45b(0x176)](_0x503a4e)):null;}async['loadDocAsync'](_0x1623da,_0x2e44cd){const _0x59e567=_0x1d1fc3;return await this['_snapshotService'][_0x59e567(0x199)](_0x1623da,0x0,_0x2e44cd)?(await this[_0x59e567(0x150)]['readyForCollab'](_0x1623da),this['_handler'][_0x59e567(0x171)](_0x1623da)):null;}async['loadBaseAsync'](_0x28599c,_0x411e1a){const _0x28ca8c=_0x1d1fc3;return await this['_snapshotService'][_0x28ca8c(0x195)](_0x28599c,0x0,_0x411e1a)?(await this[_0x28ca8c(0x150)][_0x28ca8c(0x196)](_0x28599c),this[_0x28ca8c(0x185)][_0x28ca8c(0x15a)](_0x28599c)):null;}async[_0x1d1fc3(0x162)](_0x3446e1,_0x22a948){const _0x21707f=_0x1d1fc3;return await this[_0x21707f(0x169)]['loadSlide'](_0x3446e1,0x0,_0x22a948)?(await this[_0x21707f(0x150)]['readyForCollab'](_0x3446e1),this[_0x21707f(0x185)]['getPresentation'](_0x3446e1)):null;}async[_0x1d1fc3(0x17e)](_0x10d784,_0x4de154){const _0x2fef88=_0x1d1fc3;return await this[_0x2fef88(0x169)][_0x2fef88(0x17a)](_0x10d784,0x0,_0x4de154)?(await this[_0x2fef88(0x150)]['readyForCollab'](_0x10d784),this['_handler'][_0x2fef88(0x16d)](_0x10d784)):null;}async[_0x1d1fc3(0x184)](_0x3fa080,_0x1ff967){const _0x1689c1=_0x1d1fc3;return await this[_0x1689c1(0x169)][_0x1689c1(0x17c)](_0x3fa080,0x0,_0x1ff967)?(await this[_0x1689c1(0x150)][_0x1689c1(0x196)](_0x3fa080),this['_handler'][_0x1689c1(0x17f)](_0x3fa080)):null;}['subscribeCollaborators'](_0x52ff08,_0x4a6ccc){const _0x2a4c06=_0x1d1fc3;let _0x15ed1b=this['_injector']['get'](_0x15d0b6)[_0x2a4c06(0x155)](_0x52ff08)[_0x2a4c06(0x16f)](_0x114c20(_0x4cbee2=>_0x4cbee2[_0x2a4c06(0x19c)]))[_0x2a4c06(0x15b)](_0x34cea1=>_0x4a6ccc(Array[_0x2a4c06(0x18b)](_0x34cea1[_0x2a4c06(0x167)]())));return _0x304255(_0x15ed1b);}[_0x1d1fc3(0x160)](_0x348bb8){const _0xa52744=_0x1d1fc3;let _0x1af9ea=this[_0xa52744(0x193)](_0x348bb8);if(!_0x1af9ea)return _0x7daa4d[_0xa52744(0x165)];let _0x4be819=this['_collaborationController'][_0xa52744(0x158)](_0x1af9ea);return(_0x4be819==null?void 0x0:_0x4be819[_0xa52744(0x187)][_0xa52744(0x152)])??_0x7daa4d[_0xa52744(0x165)];}[_0x1d1fc3(0x18c)](_0x2ae66c,_0x35f2e9={}){const _0x1f5f76=_0x1d1fc3;let _0x50002e=this[_0x1f5f76(0x193)](_0x2ae66c);if(!_0x50002e)return Promise['reject'](Error('[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.'));let _0x15ae3d=this[_0x1f5f76(0x150)][_0x1f5f76(0x158)](_0x50002e);if(!_0x15ae3d)return Promise['reject'](Error(_0x1f5f76(0x154)+_0x50002e+_0x1f5f76(0x157)));let _0x1357ba=_0x15ae3d[_0x1f5f76(0x187)][_0x1f5f76(0x152)];if(_0x1357ba===_0x7daa4d[_0x1f5f76(0x174)])return Promise['resolve']();let _0x309572=b(_0x50002e,_0x1357ba);if(_0x309572)return Promise[_0x1f5f76(0x180)](_0x309572);let _0x4c96d5=_0x35f2e9[_0x1f5f76(0x179)]??0x7530;return new Promise((_0xef78fd,_0x5bb004)=>{const _0x4f4075=_0x1f5f76;let _0x2bcdac=!0x1,_0x2671d5=null,_0x3ddd77=setTimeout(()=>{const _0x232a2e=_0x22f4;_0x2bcdac=!0x0,_0x2671d5==null||_0x2671d5[_0x232a2e(0x16e)](),_0x5bb004(Error(_0x232a2e(0x188)+_0x50002e+'\x22\x20after\x20'+_0x4c96d5+_0x232a2e(0x194)));},_0x4c96d5),_0x1670be=()=>{const _0x10b382=_0x22f4;_0x2bcdac=!0x0,clearTimeout(_0x3ddd77),_0x2671d5==null||_0x2671d5[_0x10b382(0x16e)]();};_0x2671d5=_0x15ae3d[_0x4f4075(0x168)][_0x4f4075(0x15b)](_0x61b315=>{const _0x42cc49=_0x4f4075;if(_0x2bcdac)return;if(_0x61b315===_0x7daa4d[_0x42cc49(0x174)]){_0x1670be(),_0xef78fd();return;}let _0x21feb9=b(_0x50002e,_0x61b315);_0x21feb9&&(_0x1670be(),_0x5bb004(_0x21feb9));});});}['_resolveUnitId'](_0x4b8664){const _0x42df3d=_0x1d1fc3;var _0x5a9606;return _0x4b8664||((_0x5a9606=this[_0x42df3d(0x164)]['getFocusedUnit']())==null?void 0x0:_0x5a9606[_0x42df3d(0x15d)]());}};function _0x22f9(){const _0x5bc9d2=['17605dOpopt','loadPdf','_injector','loadBoardAsync','getPdf','reject','50wHnBzb','loadSheetAsync','576RBLtUd','loadPdfAsync','_handler','getCollaboration','state','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','fireEvent','\x22\x20while\x20collaboration\x20status\x20is\x20','from','flush','loadUnit','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','getOwnPropertyDescriptor','add','_initialize','getPresentation','_resolveUnitId','ms.','loadBase','readyForCollab','extend','loadServerUnit','loadDoc','function','length','members$','8sjIRga','defineProperty','_collaborationController','1153962AzMUpd','status','loadUnitOfRevision','[FCollaboration]:\x20Unit\x20\x22','waitForRoom$','CollaborationStatus','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','getCollabEntity','object','getBase','subscribe','decorate','getUnitId','CONFLICT','registerEventHandler','getCollaborationStatus','get','loadSlideAsync','CollaborationStatusChanged','_univerInstanceService','NOT_COLLAB','2075480eaQfxp','values','status$','_snapshotService','67308Fmwigm','2491657Jyxbyr','412656iYpWQc','getBoard','unsubscribe','pipe','211478ATfyPl','getDocument','Event','unitID','SYNCED','createInstance','getWorkbook','entityInit$','disposeWithMe','timeout','loadBoard'];_0x22f9=function(){return _0x5bc9d2;};return _0x22f9();}function _0x22f4(_0x1ca41a,_0x5f4d80){_0x1ca41a=_0x1ca41a-0x14e;const _0x22f907=_0x22f9();let _0x22f446=_0x22f907[_0x1ca41a];return _0x22f446;}y=v([_(0x1,_0x22a320(_0x59aa74)),_(0x2,_0x52a829),_(0x3,_0x22a320(_0xe31d93)),_(0x4,_0x22a320(_0x530327))],y);function b(_0x30eee8,_0x3d34a3){const _0x407575=_0x1d1fc3;return _0x3d34a3===_0x7daa4d[_0x407575(0x15e)]||_0x3d34a3===_0x7daa4d[_0x407575(0x165)]?Error(_0x407575(0x18e)+_0x30eee8+_0x407575(0x18a)+_0x3d34a3+'.'):null;}var x=class extends _0x45db87{[_0x1d1fc3(0x191)](_0x1d271a){const _0x56f899=_0x1d1fc3;let _0x4d71c5=_0x1d271a[_0x56f899(0x161)](_0x530327);this[_0x56f899(0x178)](this[_0x56f899(0x15f)](this[_0x56f899(0x172)][_0x56f899(0x163)],()=>{const _0x43cfa4=_0x56f899;let _0x381f62=new _0x39c187(),_0x36e350=_0x4d71c5[_0x43cfa4(0x177)][_0x43cfa4(0x15b)](_0x2e547c=>{const _0x532c20=_0x43cfa4;let _0x20fd68=_0x2e547c[_0x532c20(0x168)][_0x532c20(0x15b)](_0x74f57d=>{const _0x3de821=_0x532c20;let _0xbb55c1={'unitId':_0x2e547c[_0x3de821(0x173)],'status':_0x74f57d};this[_0x3de821(0x189)](this[_0x3de821(0x172)]['CollaborationStatusChanged'],_0xbb55c1);});_0x381f62[_0x532c20(0x190)](_0x304255(_0x20fd68));});return _0x381f62[_0x43cfa4(0x190)](_0x304255(_0x36e350)),_0x381f62;}));}[_0x1d1fc3(0x186)](){const _0x1fcced=_0x1d1fc3;return this[_0x1fcced(0x17d)][_0x1fcced(0x175)](y,{'getWorkbook':_0x5c05f1=>this[_0x1fcced(0x176)](_0x5c05f1),'getDocument':_0x40d0f6=>this[_0x1fcced(0x171)](_0x40d0f6),'getPresentation':_0x20d5de=>this[_0x1fcced(0x192)](_0x20d5de),'getBase':_0x3baebb=>this[_0x1fcced(0x15a)](_0x3baebb),'getBoard':_0x4eefef=>this['getBoard'](_0x4eefef),'getPdf':_0x94b607=>this[_0x1fcced(0x17f)](_0x94b607)});}[_0x1d1fc3(0x198)](_0xf5d091,_0x4a5389,_0x11229e){const _0x1fc0bc=_0x1d1fc3;return this[_0x1fc0bc(0x17d)][_0x1fc0bc(0x161)](_0x5d355a)[_0x1fc0bc(0x18d)](_0xf5d091,_0x4a5389,_0x11229e);}['loadServerUnitOfRevision'](_0x5de57d,_0x1e8bfb,_0xf313b0){const _0x47ae11=_0x1d1fc3;return this[_0x47ae11(0x17d)][_0x47ae11(0x161)](_0x5d355a)[_0x47ae11(0x153)](_0x5de57d,_0x1e8bfb,_0xf313b0);}};_0x45db87[_0x1d1fc3(0x197)](x);export{y as FCollaboration};
1
+ const _0x1dcd3f=_0x29ad;(function(_0x85a6e3,_0x5cb620){const _0x4eba1c=_0x29ad,_0x4b34ba=_0x85a6e3();while(!![]){try{const _0x1d603e=parseInt(_0x4eba1c(0x207))/0x1*(parseInt(_0x4eba1c(0x231))/0x2)+parseInt(_0x4eba1c(0x209))/0x3+-parseInt(_0x4eba1c(0x223))/0x4+-parseInt(_0x4eba1c(0x1fc))/0x5*(parseInt(_0x4eba1c(0x20f))/0x6)+parseInt(_0x4eba1c(0x214))/0x7*(-parseInt(_0x4eba1c(0x20a))/0x8)+parseInt(_0x4eba1c(0x221))/0x9*(parseInt(_0x4eba1c(0x1f6))/0xa)+-parseInt(_0x4eba1c(0x226))/0xb*(parseInt(_0x4eba1c(0x1ff))/0xc);if(_0x1d603e===_0x5cb620)break;else _0x4b34ba['push'](_0x4b34ba['shift']());}catch(_0x2e5691){_0x4b34ba['push'](_0x4b34ba['shift']());}}}(_0x4430,0x4fcd3));import{CollaborationController as _0x1e3c3a,CollaborationStatus as _0x4d308d,DataLoaderService as _0x4ed2da,MemberService as _0x4c5b0e}from'@univerjs-pro/collaboration-client';import{FBase as _0x4c8cdb,FEnum as _0x2ec9da,FEventName as _0x351aa8,FUniver as _0x29ab02}from'@univerjs/core/facade';import{DisposableCollection as _0x2d9bb0,IUniverInstanceService as _0x58a08a,Inject as _0x47569c,Injector as _0x695c9f,toDisposable as _0x44f995}from'@univerjs/core';import{SnapshotService as _0x2052bc}from'@univerjs-pro/collaboration';import{switchMap as _0x2b9edc}from'rxjs';var h=class extends _0x2ec9da{get[_0x1dcd3f(0x21f)](){return _0x4d308d;}};_0x2ec9da[_0x1dcd3f(0x22a)](h);var g=class extends _0x351aa8{get[_0x1dcd3f(0x21c)](){const _0x49bf5c=_0x1dcd3f;return _0x49bf5c(0x21c);}};function _0x29ad(_0x18aa1e,_0x3cabdc){_0x18aa1e=_0x18aa1e-0x1ee;const _0x443088=_0x4430();let _0x29ada0=_0x443088[_0x18aa1e];return _0x29ada0;}_0x351aa8[_0x1dcd3f(0x22a)](g);function _(_0x44b513,_0x92a322){return function(_0x43fa19,_0x2849d0){_0x92a322(_0x43fa19,_0x2849d0,_0x44b513);};}function v(_0xab38b0,_0x1aeed4,_0x47bc0b,_0x13f4e6){const _0x21e54d=_0x1dcd3f;var _0x311992=arguments['length'],_0x3ffc02=_0x311992<0x3?_0x1aeed4:_0x13f4e6===null?_0x13f4e6=Object['getOwnPropertyDescriptor'](_0x1aeed4,_0x47bc0b):_0x13f4e6,_0x379cd3;if(typeof Reflect==_0x21e54d(0x22d)&&typeof Reflect[_0x21e54d(0x216)]==_0x21e54d(0x1fa))_0x3ffc02=Reflect[_0x21e54d(0x216)](_0xab38b0,_0x1aeed4,_0x47bc0b,_0x13f4e6);else{for(var _0x8343dc=_0xab38b0[_0x21e54d(0x1f8)]-0x1;_0x8343dc>=0x0;_0x8343dc--)(_0x379cd3=_0xab38b0[_0x8343dc])&&(_0x3ffc02=(_0x311992<0x3?_0x379cd3(_0x3ffc02):_0x311992>0x3?_0x379cd3(_0x1aeed4,_0x47bc0b,_0x3ffc02):_0x379cd3(_0x1aeed4,_0x47bc0b))||_0x3ffc02);}return _0x311992>0x3&&_0x3ffc02&&Object[_0x21e54d(0x1f5)](_0x1aeed4,_0x47bc0b,_0x3ffc02),_0x3ffc02;}let y=class extends _0x4c8cdb{constructor(_0x1c188f,_0x498bae,_0x2aaf1d,_0x253a9b,_0x26ad95){const _0x15b106=_0x1dcd3f;super(),this['_handler']=_0x1c188f,this[_0x15b106(0x23b)]=_0x498bae,this[_0x15b106(0x225)]=_0x2aaf1d,this[_0x15b106(0x201)]=_0x253a9b,this[_0x15b106(0x20d)]=_0x26ad95;}async[_0x1dcd3f(0x22b)](_0x48143a,_0x14e003){const _0x22a5bd=_0x1dcd3f;return await this[_0x22a5bd(0x201)]['loadSheet'](_0x48143a,0x0,_0x14e003)?(await this['_collaborationController'][_0x22a5bd(0x1f2)](_0x48143a),this['_handler'][_0x22a5bd(0x20b)](_0x48143a)):null;}async['loadDocAsync'](_0x2e79e9,_0x5b8010){const _0x96840d=_0x1dcd3f;return await this['_snapshotService'][_0x96840d(0x21e)](_0x2e79e9,0x0,_0x5b8010)?(await this[_0x96840d(0x20d)]['readyForCollab'](_0x2e79e9),this[_0x96840d(0x22f)][_0x96840d(0x1f7)](_0x2e79e9)):null;}async[_0x1dcd3f(0x202)](_0x3abe57,_0x3dbada){const _0xdc5b2e=_0x1dcd3f;return await this[_0xdc5b2e(0x201)][_0xdc5b2e(0x1fb)](_0x3abe57,0x0,_0x3dbada)?(await this[_0xdc5b2e(0x20d)][_0xdc5b2e(0x1f2)](_0x3abe57),this['_handler'][_0xdc5b2e(0x1f0)](_0x3abe57)):null;}async[_0x1dcd3f(0x23c)](_0x120fe3,_0xd22af1){const _0x53d34d=_0x1dcd3f;return await this[_0x53d34d(0x201)]['loadSlide'](_0x120fe3,0x0,_0xd22af1)?(await this[_0x53d34d(0x20d)][_0x53d34d(0x1f2)](_0x120fe3),this[_0x53d34d(0x22f)][_0x53d34d(0x1ef)](_0x120fe3)):null;}async[_0x1dcd3f(0x217)](_0x4df8ed,_0x4dd451){const _0x97acbd=_0x1dcd3f;return await this[_0x97acbd(0x201)][_0x97acbd(0x1fd)](_0x4df8ed,0x0,_0x4dd451)?(await this[_0x97acbd(0x20d)][_0x97acbd(0x1f2)](_0x4df8ed),this[_0x97acbd(0x22f)][_0x97acbd(0x20e)](_0x4df8ed)):null;}async[_0x1dcd3f(0x210)](_0x30d0a3,_0x3671a6){const _0x4d1661=_0x1dcd3f;return await this['_snapshotService'][_0x4d1661(0x1f3)](_0x30d0a3,0x0,_0x3671a6)?(await this[_0x4d1661(0x20d)][_0x4d1661(0x1f2)](_0x30d0a3),this['_handler'][_0x4d1661(0x232)](_0x30d0a3)):null;}[_0x1dcd3f(0x220)](_0x568467,_0x5be404){const _0x48d867=_0x1dcd3f;let _0x1043ed=this[_0x48d867(0x23b)][_0x48d867(0x203)](_0x4c5b0e)['waitForRoom$'](_0x568467)[_0x48d867(0x211)](_0x2b9edc(_0x2b0507=>_0x2b0507[_0x48d867(0x213)]))['subscribe'](_0x55df7e=>_0x5be404(Array['from'](_0x55df7e[_0x48d867(0x22e)]())));return _0x44f995(_0x1043ed);}[_0x1dcd3f(0x200)](_0x3524cb){const _0x19e5f7=_0x1dcd3f;let _0x50826b=this[_0x19e5f7(0x219)](_0x3524cb);if(!_0x50826b)return _0x4d308d[_0x19e5f7(0x235)];let _0x5359d8=this[_0x19e5f7(0x20d)][_0x19e5f7(0x233)](_0x50826b);return(_0x5359d8==null?void 0x0:_0x5359d8['state'][_0x19e5f7(0x1f9)])??_0x4d308d[_0x19e5f7(0x235)];}[_0x1dcd3f(0x205)](_0x3b695d,_0x5ae381={}){const _0x1c1721=_0x1dcd3f;let _0x568911=this[_0x1c1721(0x219)](_0x3b695d);if(!_0x568911)return Promise[_0x1c1721(0x204)](Error(_0x1c1721(0x227)));let _0x503103=this[_0x1c1721(0x20d)][_0x1c1721(0x233)](_0x568911);if(!_0x503103)return Promise[_0x1c1721(0x204)](Error(_0x1c1721(0x218)+_0x568911+_0x1c1721(0x21b)));let _0x504386=_0x503103[_0x1c1721(0x1ee)][_0x1c1721(0x1f9)];if(_0x504386===_0x4d308d[_0x1c1721(0x20c)])return Promise[_0x1c1721(0x222)]();let _0x16c813=b(_0x568911,_0x504386);if(_0x16c813)return Promise[_0x1c1721(0x204)](_0x16c813);let _0x4bf875=_0x5ae381[_0x1c1721(0x238)]??0x7530;return new Promise((_0x40ba15,_0x5a9cf6)=>{const _0x3dbdf5=_0x1c1721;let _0x2a241b=!0x1,_0x528ce2=null,_0x8d9714=setTimeout(()=>{const _0xa494c3=_0x29ad;_0x2a241b=!0x0,_0x528ce2==null||_0x528ce2['unsubscribe'](),_0x5a9cf6(Error(_0xa494c3(0x236)+_0x568911+'\x22\x20after\x20'+_0x4bf875+'ms.'));},_0x4bf875),_0x75a50a=()=>{const _0x151bbe=_0x29ad;_0x2a241b=!0x0,clearTimeout(_0x8d9714),_0x528ce2==null||_0x528ce2[_0x151bbe(0x22c)]();};_0x528ce2=_0x503103['status$'][_0x3dbdf5(0x23a)](_0x55a7fd=>{const _0x2606c0=_0x3dbdf5;if(_0x2a241b)return;if(_0x55a7fd===_0x4d308d[_0x2606c0(0x20c)]){_0x75a50a(),_0x40ba15();return;}let _0x15421e=b(_0x568911,_0x55a7fd);_0x15421e&&(_0x75a50a(),_0x5a9cf6(_0x15421e));});});}[_0x1dcd3f(0x219)](_0x514b29){const _0x123cbd=_0x1dcd3f;var _0x307bcb;return _0x514b29||((_0x307bcb=this[_0x123cbd(0x225)][_0x123cbd(0x215)]())==null?void 0x0:_0x307bcb[_0x123cbd(0x234)]());}};function _0x4430(){const _0x573da5=['timeout','loadServerUnitOfRevision','subscribe','_injector','loadSlideAsync','state','getPresentation','getBase','disposeWithMe','readyForCollab','loadPdf','_initialize','defineProperty','20UmIYKb','getDocument','length','status','function','loadBase','93715TAHVVm','loadBoard','status$','319044HIUgYr','getCollaborationStatus','_snapshotService','loadBaseAsync','get','reject','flush','loadUnit','150197rUwvug','Event','1921023MHZNJO','8kqqsUp','getWorkbook','SYNCED','_collaborationController','getBoard','150LPxyIz','loadPdfAsync','pipe','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','members$','982233tVtZVK','getFocusedUnit','decorate','loadBoardAsync','[FCollaboration]:\x20Unit\x20\x22','_resolveUnitId','add','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','CollaborationStatusChanged','registerEventHandler','loadDoc','CollaborationStatus','subscribeCollaborators','2272869kNuqte','resolve','163260xQyMVI','CONFLICT','_univerInstanceService','132CLTbVs','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','createInstance','getCollaboration','extend','loadSheetAsync','unsubscribe','object','values','_handler','unitID','2byATJf','getPdf','getCollabEntity','getUnitId','NOT_COLLAB','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','entityInit$'];_0x4430=function(){return _0x573da5;};return _0x4430();}y=v([_(0x1,_0x47569c(_0x695c9f)),_(0x2,_0x58a08a),_(0x3,_0x47569c(_0x2052bc)),_(0x4,_0x47569c(_0x1e3c3a))],y);function b(_0x3566be,_0x50771c){const _0x577c33=_0x1dcd3f;return _0x50771c===_0x4d308d[_0x577c33(0x224)]||_0x50771c===_0x4d308d[_0x577c33(0x235)]?Error(_0x577c33(0x212)+_0x3566be+'\x22\x20while\x20collaboration\x20status\x20is\x20'+_0x50771c+'.'):null;}var x=class extends _0x29ab02{[_0x1dcd3f(0x1f4)](_0x2e2472){const _0x16599f=_0x1dcd3f;let _0x466fde=_0x2e2472[_0x16599f(0x203)](_0x1e3c3a);this[_0x16599f(0x1f1)](this[_0x16599f(0x21d)](this['Event']['CollaborationStatusChanged'],()=>{const _0x406858=_0x16599f;let _0x1d766f=new _0x2d9bb0(),_0x46b856=_0x466fde[_0x406858(0x237)]['subscribe'](_0x3a1454=>{const _0x446cc2=_0x406858;let _0x43e88e=_0x3a1454[_0x446cc2(0x1fe)][_0x446cc2(0x23a)](_0x3a0c22=>{const _0x215595=_0x446cc2;let _0x55115b={'unitId':_0x3a1454[_0x215595(0x230)],'status':_0x3a0c22};this['fireEvent'](this[_0x215595(0x208)][_0x215595(0x21c)],_0x55115b);});_0x1d766f[_0x446cc2(0x21a)](_0x44f995(_0x43e88e));});return _0x1d766f['add'](_0x44f995(_0x46b856)),_0x1d766f;}));}[_0x1dcd3f(0x229)](){const _0x45799=_0x1dcd3f;return this[_0x45799(0x23b)][_0x45799(0x228)](y,{'getWorkbook':_0x10e7b1=>this['getWorkbook'](_0x10e7b1),'getDocument':_0x4d609d=>this[_0x45799(0x1f7)](_0x4d609d),'getPresentation':_0x2918ba=>this[_0x45799(0x1ef)](_0x2918ba),'getBase':_0x3e6ed3=>this[_0x45799(0x1f0)](_0x3e6ed3),'getBoard':_0x350f98=>this['getBoard'](_0x350f98),'getPdf':_0x588de3=>this['getPdf'](_0x588de3)});}['loadServerUnit'](_0x419a69,_0x37aa11,_0x29d63d){const _0xc3ffe6=_0x1dcd3f;return this[_0xc3ffe6(0x23b)][_0xc3ffe6(0x203)](_0x4ed2da)[_0xc3ffe6(0x206)](_0x419a69,_0x37aa11,_0x29d63d);}[_0x1dcd3f(0x239)](_0x3cd2c2,_0x2b43a3,_0x1858d5){const _0x2d0640=_0x1dcd3f;return this[_0x2d0640(0x23b)][_0x2d0640(0x203)](_0x4ed2da)['loadUnitOfRevision'](_0x3cd2c2,_0x2b43a3,_0x1858d5);}};_0x29ab02[_0x1dcd3f(0x22a)](x);export{y as FCollaboration};