@univerjs-pro/collaboration-client 0.25.0 → 0.25.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.
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 +11 -11
@@ -1 +1 @@
1
- function _0x1730(){const _0x205aee=['同步中...','由於協作房間已關閉,編輯權限已被收回。','9482921eOXQJJ','此文件協作人數已達上限,您的編輯將暫存於本機。','認證錯誤','6yWQfZr','加入協作失敗,您的編輯將暫存於本機。','96MCdNbK','318515ReIXSj','本機檔案','連線失敗,請檢查您的網路。','14062096AMbSqN','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','已離線,編輯將儲存在本機','713270IAkCDX','沒有協作權限,您的編輯將暫存於本機。','伺服器未回應協作請求,您的編輯將儲存在本機。','1313580Qhqbea','4ymbubV','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','協作文件數量超過限制,您的編輯將暫存於本機。','連線失敗,將在稍後重試連線。','1318065lEycQi','41994711jxDNzG','9oqduVb','正在擷取伺服器資料...','協作衝突','您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。'];_0x1730=function(){return _0x205aee;};return _0x1730();}const _0x177c03=_0xe38f;(function(_0x44c84f,_0x302961){const _0x463e5f=_0xe38f,_0x2136e0=_0x44c84f();while(!![]){try{const _0x5ae706=-parseInt(_0x463e5f(0x150))/0x1*(parseInt(_0x463e5f(0x14c))/0x2)+-parseInt(_0x463e5f(0x154))/0x3+-parseInt(_0x463e5f(0x161))/0x4*(parseInt(_0x463e5f(0x162))/0x5)+-parseInt(_0x463e5f(0x15f))/0x6*(parseInt(_0x463e5f(0x15c))/0x7)+parseInt(_0x463e5f(0x165))/0x8+-parseInt(_0x463e5f(0x156))/0x9*(-parseInt(_0x463e5f(0x14f))/0xa)+parseInt(_0x463e5f(0x155))/0xb;if(_0x5ae706===_0x302961)break;else _0x2136e0['push'](_0x2136e0['shift']());}catch(_0x1ebd73){_0x2136e0['push'](_0x2136e0['shift']());}}}(_0x1730,0xe9ba7));const e={'collaboration-client':{'collabClient':{'tooltip':{'reconnect':'點擊重新連線'}},'collabStatus':{'fetchMiss':_0x177c03(0x157),'conflict':'編輯衝突','notCollab':_0x177c03(0x163),'synced':'已同步','syncing':_0x177c03(0x15a),'offline':_0x177c03(0x14b)},'session':{'connection-failed':_0x177c03(0x164),'will-retry':_0x177c03(0x153),'room-full':_0x177c03(0x15d),'join-failed':'加入協作失敗,請稍後重試,您的編輯將暫存於本機。','room-not-exists':_0x177c03(0x160),'room-permission-denied':_0x177c03(0x14d),'room-cnt-exceeds':_0x177c03(0x152),'collaboration-timeout':_0x177c03(0x14e)},'conflict':{'title':_0x177c03(0x158),'content':_0x177c03(0x166)},'permission':{'title':_0x177c03(0x15e),'content':_0x177c03(0x159)},'collaboration':{'single-unit':{'warning':_0x177c03(0x151)},'closeRoom':_0x177c03(0x15b)},'auth':{'needGotoLoginAlert':'您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。'}}};function _0xe38f(_0x49813,_0x3d1295){_0x49813=_0x49813-0x14b;const _0x173071=_0x1730();let _0xe38f8c=_0x173071[_0x49813];return _0xe38f8c;}module['exports']=e;
1
+ const _0x3d379d=_0x10c6;(function(_0x4d1ac2,_0x3cccee){const _0x415dd2=_0x10c6,_0xca93f9=_0x4d1ac2();while(!![]){try{const _0x29910b=parseInt(_0x415dd2(0x1ee))/0x1+-parseInt(_0x415dd2(0x203))/0x2*(-parseInt(_0x415dd2(0x1ed))/0x3)+parseInt(_0x415dd2(0x1f1))/0x4*(-parseInt(_0x415dd2(0x1f7))/0x5)+parseInt(_0x415dd2(0x1f5))/0x6*(-parseInt(_0x415dd2(0x1fa))/0x7)+-parseInt(_0x415dd2(0x1fe))/0x8+parseInt(_0x415dd2(0x1fc))/0x9*(-parseInt(_0x415dd2(0x1f3))/0xa)+parseInt(_0x415dd2(0x1e7))/0xb;if(_0x29910b===_0x3cccee)break;else _0xca93f9['push'](_0xca93f9['shift']());}catch(_0x43294d){_0xca93f9['push'](_0xca93f9['shift']());}}}(_0x4284,0x99e48));function _0x10c6(_0x2c3046,_0x28ca73){_0x2c3046=_0x2c3046-0x1e6;const _0x42843f=_0x4284();let _0x10c6c8=_0x42843f[_0x2c3046];return _0x10c6c8;}const e={'collaboration-client':{'collabClient':{'tooltip':{'reconnect':_0x3d379d(0x202)}},'collabStatus':{'fetchMiss':_0x3d379d(0x1f4),'conflict':_0x3d379d(0x1f2),'notCollab':'本機檔案','synced':_0x3d379d(0x201),'syncing':_0x3d379d(0x1e9),'offline':_0x3d379d(0x1ec)},'session':{'connection-failed':_0x3d379d(0x1fd),'will-retry':_0x3d379d(0x1eb),'room-full':'此文件協作人數已達上限,您的編輯將暫存於本機。','join-failed':'加入協作失敗,請稍後重試,您的編輯將暫存於本機。','room-not-exists':_0x3d379d(0x1fb),'room-permission-denied':_0x3d379d(0x1e6),'room-cnt-exceeds':_0x3d379d(0x1ef),'collaboration-timeout':_0x3d379d(0x1ea)},'conflict':{'title':_0x3d379d(0x200),'content':_0x3d379d(0x1f6)},'permission':{'title':_0x3d379d(0x1ff),'content':'您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。'},'collaboration':{'single-unit':{'warning':_0x3d379d(0x1f8)},'closeRoom':_0x3d379d(0x1f0)},'auth':{'needGotoLoginAlert':_0x3d379d(0x1f9)}}};module[_0x3d379d(0x1e8)]=e;function _0x4284(){const _0x45b8c7=['3404144rRQveY','認證錯誤','協作衝突','已同步','點擊重新連線','74806OiICAf','沒有協作權限,您的編輯將暫存於本機。','29834266ihgWxM','exports','同步中...','伺服器未回應協作請求,您的編輯將儲存在本機。','連線失敗,將在稍後重試連線。','已離線,編輯將儲存在本機','57vhwiFX','66438ajpnLH','協作文件數量超過限制,您的編輯將暫存於本機。','由於協作房間已關閉,編輯權限已被收回。','3974360dNyaAP','編輯衝突','3861170xFlugk','正在擷取伺服器資料...','30dNWFwj','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','5aoHPTF','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。','934661swtxvY','加入協作失敗,您的編輯將暫存於本機。','18gQSTEb','連線失敗,請檢查您的網路。'];_0x4284=function(){return _0x45b8c7;};return _0x4284();}
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x54092f=_0x5e5a;(function(_0xd40f19,_0x5e11d1){const _0x23ec8d=_0x5e5a,_0xf4bca6=_0xd40f19();while(!![]){try{const _0xc2784d=-parseInt(_0x23ec8d(0xc4))/0x1+parseInt(_0x23ec8d(0xe3))/0x2+parseInt(_0x23ec8d(0xe0))/0x3*(-parseInt(_0x23ec8d(0xe9))/0x4)+-parseInt(_0x23ec8d(0xbd))/0x5+parseInt(_0x23ec8d(0xda))/0x6+-parseInt(_0x23ec8d(0xe6))/0x7*(-parseInt(_0x23ec8d(0xc7))/0x8)+parseInt(_0x23ec8d(0xc5))/0x9;if(_0xc2784d===_0x5e11d1)break;else _0xf4bca6['push'](_0xf4bca6['shift']());}catch(_0x33ea28){_0xf4bca6['push'](_0xf4bca6['shift']());}}}(_0x2af5,0x9c7d1));import{CollaborationController as _0x262699,CollaborationStatus as _0x3d35c9,DataLoaderService as _0x3dec8f,MemberService as _0x2d2b71}from'@univerjs-pro/collaboration-client';import{FBase as _0x45a5ce,FEnum as _0x2a28a4,FEventName as _0x37d6a6,FUniver as _0x6ef71}from'@univerjs/core/facade';import{DisposableCollection as _0x415f70,IUniverInstanceService as _0x5a01df,Inject as _0x3b2403,Injector as _0xaf19f4,toDisposable as _0x52a4d9}from'@univerjs/core';import{SnapshotService as _0x52c95f}from'@univerjs-pro/collaboration';import{switchMap as _0x592263}from'rxjs';var h=class extends _0x2a28a4{get[_0x54092f(0xe4)](){return _0x3d35c9;}};_0x2a28a4[_0x54092f(0xde)](h);function _0x5e5a(_0x3bb77c,_0x23ed90){_0x3bb77c=_0x3bb77c-0xbc;const _0x2af526=_0x2af5();let _0x5e5a67=_0x2af526[_0x3bb77c];return _0x5e5a67;}var g=class extends _0x37d6a6{get[_0x54092f(0xe5)](){const _0x5c5c6d=_0x54092f;return _0x5c5c6d(0xe5);}};_0x37d6a6[_0x54092f(0xde)](g);function _(_0x190b7f,_0xfb0486){return function(_0x5ed3f6,_0x2733bf){_0xfb0486(_0x5ed3f6,_0x2733bf,_0x190b7f);};}function v(_0x5c6ea5,_0x1d2df1,_0x3e807d,_0x4fe4df){const _0x5fa744=_0x54092f;var _0x4ae27c=arguments[_0x5fa744(0xbf)],_0x5ee3a3=_0x4ae27c<0x3?_0x1d2df1:_0x4fe4df===null?_0x4fe4df=Object[_0x5fa744(0xcd)](_0x1d2df1,_0x3e807d):_0x4fe4df,_0x75847c;if(typeof Reflect=='object'&&typeof Reflect[_0x5fa744(0xd3)]=='function')_0x5ee3a3=Reflect['decorate'](_0x5c6ea5,_0x1d2df1,_0x3e807d,_0x4fe4df);else{for(var _0xea4ed3=_0x5c6ea5['length']-0x1;_0xea4ed3>=0x0;_0xea4ed3--)(_0x75847c=_0x5c6ea5[_0xea4ed3])&&(_0x5ee3a3=(_0x4ae27c<0x3?_0x75847c(_0x5ee3a3):_0x4ae27c>0x3?_0x75847c(_0x1d2df1,_0x3e807d,_0x5ee3a3):_0x75847c(_0x1d2df1,_0x3e807d))||_0x5ee3a3);}return _0x4ae27c>0x3&&_0x5ee3a3&&Object[_0x5fa744(0xe7)](_0x1d2df1,_0x3e807d,_0x5ee3a3),_0x5ee3a3;}let y=class extends _0x45a5ce{constructor(_0x1b81d1,_0x2d4e3c,_0x4f52ae,_0x5a20b0,_0x41e21a){const _0x3267d1=_0x54092f;super(),this['_handler']=_0x1b81d1,this[_0x3267d1(0xcc)]=_0x2d4e3c,this['_univerInstanceService']=_0x4f52ae,this[_0x3267d1(0xe1)]=_0x5a20b0,this['_collaborationController']=_0x41e21a;}async[_0x54092f(0xe8)](){const _0x312d57=_0x54092f;return this[_0x312d57(0xe2)]();}async[_0x54092f(0xe2)](){const _0x302cc2=_0x54092f;throw Error(_0x302cc2(0xc9));}async[_0x54092f(0xbe)](_0xee10eb){return this['loadSheetAsync'](_0xee10eb);}async[_0x54092f(0xce)](_0x3dae5d,_0x451ab8){const _0x473d12=_0x54092f;return await this[_0x473d12(0xe1)][_0x473d12(0xbe)](_0x3dae5d,0x0,_0x451ab8)?(await this[_0x473d12(0xcf)][_0x473d12(0xd6)](_0x3dae5d),this['_handler'][_0x473d12(0xd9)](_0x3dae5d)):null;}['subscribeCollaborators'](_0x227421,_0x357ece){const _0x3f328a=_0x54092f;return _0x52a4d9(this[_0x3f328a(0xcc)][_0x3f328a(0xdd)](_0x2d2b71)['waitForRoom$'](_0x227421)['pipe'](_0x592263(_0x3155fd=>_0x3155fd['members$']))[_0x3f328a(0xd5)](_0x181471=>_0x357ece(Array[_0x3f328a(0xc2)](_0x181471[_0x3f328a(0xdf)]()))));}[_0x54092f(0xd8)](_0x45183c){const _0x3d619d=_0x54092f;var _0x54a9ea;let _0x3bcc06;if(_0x45183c)_0x3bcc06=_0x45183c;else{let _0x410d4b=this['_univerInstanceService']['getFocusedUnit']();_0x3bcc06=_0x410d4b==null?void 0x0:_0x410d4b[_0x3d619d(0xcb)]();}if(!_0x3bcc06)return _0x3d35c9[_0x3d619d(0xca)];let _0x1f0a0f=this[_0x3d619d(0xcf)][_0x3d619d(0xdb)](_0x3bcc06);return(_0x54a9ea=_0x1f0a0f==null?void 0x0:_0x1f0a0f[_0x3d619d(0xc1)][_0x3d619d(0xd4)])==null?_0x3d35c9[_0x3d619d(0xca)]:_0x54a9ea;}};y=v([_(0x1,_0x3b2403(_0xaf19f4)),_(0x2,_0x5a01df),_(0x3,_0x3b2403(_0x52c95f)),_(0x4,_0x3b2403(_0x262699))],y);var b=class extends _0x6ef71{[_0x54092f(0xc3)](_0x5a8b81){const _0x7afab1=_0x54092f;let _0x4c6b24=_0x5a8b81['get'](_0x262699);this['disposeWithMe'](this['registerEventHandler'](this[_0x7afab1(0xd1)]['CollaborationStatusChanged'],()=>{const _0x20867e=_0x7afab1;let _0xb5439e=new _0x415f70(),_0x18d317=_0x4c6b24[_0x20867e(0xc6)][_0x20867e(0xd5)](_0xfd83c2=>{const _0x11d4b7=_0x20867e;let _0x383f42=_0xfd83c2['status$'][_0x11d4b7(0xd5)](_0x194bac=>{const _0x33087e=_0x11d4b7;let _0x35664d={'unitId':_0xfd83c2[_0x33087e(0xdc)],'status':_0x194bac};this['fireEvent'](this['Event'][_0x33087e(0xe5)],_0x35664d);});_0xb5439e[_0x11d4b7(0xd0)](_0x52a4d9(_0x383f42));});return _0xb5439e[_0x20867e(0xd0)](_0x52a4d9(_0x18d317)),_0xb5439e;}));}[_0x54092f(0xd2)](){const _0x24d69a=_0x54092f;return this[_0x24d69a(0xcc)][_0x24d69a(0xd7)](y,{'getUniverSheet':_0x3defbb=>this['getUniverSheet'](_0x3defbb)});}[_0x54092f(0xc0)](_0x598bef,_0x378507,_0x5bd947){const _0x510ad2=_0x54092f;return this[_0x510ad2(0xcc)]['get'](_0x3dec8f)[_0x510ad2(0xbc)](_0x598bef,_0x378507,_0x5bd947);}[_0x54092f(0xc8)](_0x19e2ca,_0x3885e8,_0x51a012){const _0x5af388=_0x54092f;return this[_0x5af388(0xcc)][_0x5af388(0xdd)](_0x3dec8f)['loadUnitOfRevision'](_0x19e2ca,_0x3885e8,_0x51a012);}};_0x6ef71[_0x54092f(0xde)](b);export{y as FCollaboration};function _0x2af5(){const _0x3be05a=['loadActiveSheet','44ujUEie','loadUnit','5731125ZJBAdU','loadSheet','length','loadServerUnit','state','from','_initialize','537224iHigac','4822812PBBBqC','entityInit$','8DMtCMD','loadServerUnitOfRevision','[FCollaboration]:\x20this\x20method\x20should\x20be\x20override.','NOT_COLLAB','getUnitId','_injector','getOwnPropertyDescriptor','loadSheetAsync','_collaborationController','add','Event','getCollaboration','decorate','status','subscribe','readyForCollab','createInstance','getCollaborationStatus','getUniverSheet','6272220uctlSI','getCollabEntity','unitID','get','extend','values','150363dQOAmy','_snapshotService','loadActiveSheetAsync','2061584hbEpoF','CollaborationStatus','CollaborationStatusChanged','1846089VuIseY','defineProperty'];_0x2af5=function(){return _0x3be05a;};return _0x2af5();}
1
+ const _0xbb5dc9=_0x3ed1;(function(_0x9fe8c6,_0x3f5c46){const _0x4eb0e4=_0x3ed1,_0x3bd5d2=_0x9fe8c6();while(!![]){try{const _0x509f6e=parseInt(_0x4eb0e4(0x11d))/0x1+parseInt(_0x4eb0e4(0x10e))/0x2*(-parseInt(_0x4eb0e4(0x125))/0x3)+parseInt(_0x4eb0e4(0x133))/0x4*(parseInt(_0x4eb0e4(0x128))/0x5)+-parseInt(_0x4eb0e4(0x10d))/0x6+-parseInt(_0x4eb0e4(0x138))/0x7*(parseInt(_0x4eb0e4(0x139))/0x8)+-parseInt(_0x4eb0e4(0x13a))/0x9+parseInt(_0x4eb0e4(0x112))/0xa;if(_0x509f6e===_0x3f5c46)break;else _0x3bd5d2['push'](_0x3bd5d2['shift']());}catch(_0x2533d8){_0x3bd5d2['push'](_0x3bd5d2['shift']());}}}(_0x14ab,0x263f1));import{CollaborationController as _0x32893e,CollaborationStatus as _0x393784,DataLoaderService as _0x580e28,MemberService as _0x4a083d}from'@univerjs-pro/collaboration-client';import{FBase as _0x7e9789,FEnum as _0xb00d44,FEventName as _0x128b7e,FUniver as _0x47575b}from'@univerjs/core/facade';import{DisposableCollection as _0xfbd677,IUniverInstanceService as _0x13bda4,Inject as _0x4571df,Injector as _0x32744b,toDisposable as _0x5540cc}from'@univerjs/core';import{SnapshotService as _0x1d9ba6}from'@univerjs-pro/collaboration';import{switchMap as _0x47fa49}from'rxjs';var h=class extends _0xb00d44{get['CollaborationStatus'](){return _0x393784;}};_0xb00d44[_0xbb5dc9(0x123)](h);var g=class extends _0x128b7e{get[_0xbb5dc9(0x118)](){return'CollaborationStatusChanged';}};function _0x3ed1(_0x5f5726,_0x238175){_0x5f5726=_0x5f5726-0x10a;const _0x14ab25=_0x14ab();let _0x3ed1ff=_0x14ab25[_0x5f5726];return _0x3ed1ff;}_0x128b7e[_0xbb5dc9(0x123)](g);function _0x14ab(){const _0x5416b2=['from','_collaborationController','getCollabEntity','loadUnitOfRevision','getOwnPropertyDescriptor','CollaborationStatusChanged','members$','getUniverSheet','[FCollaboration]:\x20this\x20method\x20should\x20be\x20override.','get','224570DRPPPR','loadSheet','loadSheetAsync','length','status$','Event','extend','waitForRoom$','3069zQjDlc','decorate','registerEventHandler','139575FVvtvs','loadUnit','getUnitId','NOT_COLLAB','_snapshotService','createInstance','_injector','loadServerUnit','_univerInstanceService','function','entityInit$','4NKDcmN','getCollaborationStatus','_handler','fireEvent','add','13916pvSwPH','608ZceBhB','1234053VWNixG','unitID','readyForCollab','status','getFocusedUnit','pipe','subscribe','930072LBIhjn','348jRGCnD','disposeWithMe','defineProperty','loadActiveSheetAsync','5253910vsYbwU'];_0x14ab=function(){return _0x5416b2;};return _0x14ab();}function _(_0x49a733,_0x4b3457){return function(_0x59cdcf,_0xfa6f11){_0x4b3457(_0x59cdcf,_0xfa6f11,_0x49a733);};}function v(_0x5155ad,_0x34391a,_0xac7444,_0x52316c){const _0x553cd=_0xbb5dc9;var _0x1df4ca=arguments[_0x553cd(0x120)],_0x55ea02=_0x1df4ca<0x3?_0x34391a:_0x52316c===null?_0x52316c=Object[_0x553cd(0x117)](_0x34391a,_0xac7444):_0x52316c,_0x4ac87e;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x553cd(0x131))_0x55ea02=Reflect[_0x553cd(0x126)](_0x5155ad,_0x34391a,_0xac7444,_0x52316c);else{for(var _0x175fe4=_0x5155ad[_0x553cd(0x120)]-0x1;_0x175fe4>=0x0;_0x175fe4--)(_0x4ac87e=_0x5155ad[_0x175fe4])&&(_0x55ea02=(_0x1df4ca<0x3?_0x4ac87e(_0x55ea02):_0x1df4ca>0x3?_0x4ac87e(_0x34391a,_0xac7444,_0x55ea02):_0x4ac87e(_0x34391a,_0xac7444))||_0x55ea02);}return _0x1df4ca>0x3&&_0x55ea02&&Object[_0x553cd(0x110)](_0x34391a,_0xac7444,_0x55ea02),_0x55ea02;}let y=class extends _0x7e9789{constructor(_0x3dced3,_0x143473,_0x162c20,_0x1cb783,_0x1e4038){const _0x248000=_0xbb5dc9;super(),this['_handler']=_0x3dced3,this[_0x248000(0x12e)]=_0x143473,this[_0x248000(0x130)]=_0x162c20,this['_snapshotService']=_0x1cb783,this['_collaborationController']=_0x1e4038;}async['loadActiveSheet'](){const _0xe5cb13=_0xbb5dc9;return this[_0xe5cb13(0x111)]();}async[_0xbb5dc9(0x111)](){const _0x23bf52=_0xbb5dc9;throw Error(_0x23bf52(0x11b));}async[_0xbb5dc9(0x11e)](_0x25a020){const _0x4050b7=_0xbb5dc9;return this[_0x4050b7(0x11f)](_0x25a020);}async[_0xbb5dc9(0x11f)](_0x3cd166,_0x353772){const _0x17dba3=_0xbb5dc9;return await this[_0x17dba3(0x12c)][_0x17dba3(0x11e)](_0x3cd166,0x0,_0x353772)?(await this[_0x17dba3(0x114)][_0x17dba3(0x13c)](_0x3cd166),this[_0x17dba3(0x135)][_0x17dba3(0x11a)](_0x3cd166)):null;}['subscribeCollaborators'](_0x50dbc3,_0x533495){const _0x174ffe=_0xbb5dc9;return _0x5540cc(this[_0x174ffe(0x12e)][_0x174ffe(0x11c)](_0x4a083d)[_0x174ffe(0x124)](_0x50dbc3)[_0x174ffe(0x10b)](_0x47fa49(_0x2bc2f6=>_0x2bc2f6[_0x174ffe(0x119)]))['subscribe'](_0x42f470=>_0x533495(Array[_0x174ffe(0x113)](_0x42f470['values']()))));}[_0xbb5dc9(0x134)](_0x23b46e){const _0x2e432d=_0xbb5dc9;var _0x1c5fc1;let _0x35ac38;if(_0x23b46e)_0x35ac38=_0x23b46e;else{let _0x34e14a=this['_univerInstanceService'][_0x2e432d(0x10a)]();_0x35ac38=_0x34e14a==null?void 0x0:_0x34e14a[_0x2e432d(0x12a)]();}if(!_0x35ac38)return _0x393784[_0x2e432d(0x12b)];let _0x2c4221=this[_0x2e432d(0x114)][_0x2e432d(0x115)](_0x35ac38);return(_0x1c5fc1=_0x2c4221==null?void 0x0:_0x2c4221['state'][_0x2e432d(0x13d)])==null?_0x393784['NOT_COLLAB']:_0x1c5fc1;}};y=v([_(0x1,_0x4571df(_0x32744b)),_(0x2,_0x13bda4),_(0x3,_0x4571df(_0x1d9ba6)),_(0x4,_0x4571df(_0x32893e))],y);var b=class extends _0x47575b{['_initialize'](_0x454899){const _0x28f247=_0xbb5dc9;let _0x2445a1=_0x454899['get'](_0x32893e);this[_0x28f247(0x10f)](this[_0x28f247(0x127)](this[_0x28f247(0x122)]['CollaborationStatusChanged'],()=>{const _0x8ddcd0=_0x28f247;let _0x21544f=new _0xfbd677(),_0x5a2ede=_0x2445a1[_0x8ddcd0(0x132)][_0x8ddcd0(0x10c)](_0xe8bec2=>{const _0x35b4cd=_0x8ddcd0;let _0x14da0b=_0xe8bec2[_0x35b4cd(0x121)][_0x35b4cd(0x10c)](_0x4b0bba=>{const _0x272768=_0x35b4cd;let _0x298806={'unitId':_0xe8bec2[_0x272768(0x13b)],'status':_0x4b0bba};this[_0x272768(0x136)](this[_0x272768(0x122)][_0x272768(0x118)],_0x298806);});_0x21544f[_0x35b4cd(0x137)](_0x5540cc(_0x14da0b));});return _0x21544f[_0x8ddcd0(0x137)](_0x5540cc(_0x5a2ede)),_0x21544f;}));}['getCollaboration'](){const _0x2e756e=_0xbb5dc9;return this[_0x2e756e(0x12e)][_0x2e756e(0x12d)](y,{'getUniverSheet':_0x1077bc=>this['getUniverSheet'](_0x1077bc)});}[_0xbb5dc9(0x12f)](_0x38777a,_0xa070fb,_0x37779f){const _0x36fcc6=_0xbb5dc9;return this[_0x36fcc6(0x12e)][_0x36fcc6(0x11c)](_0x580e28)[_0x36fcc6(0x129)](_0x38777a,_0xa070fb,_0x37779f);}['loadServerUnitOfRevision'](_0x5a5be3,_0x200cb9,_0x1d2d44){const _0x143127=_0xbb5dc9;return this['_injector']['get'](_0x580e28)[_0x143127(0x116)](_0x5a5be3,_0x200cb9,_0x1d2d44);}};_0x47575b[_0xbb5dc9(0x123)](b);export{y as FCollaboration};