@univerjs-pro/collaboration-client 0.25.0 → 1.0.0-alpha.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 (97) 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/config/config.d.ts +70 -0
  65. package/lib/types/controllers/collaboration/collaboration-entity.d.ts +15 -1
  66. package/lib/types/controllers/collaboration/utils/changeset-utils.d.ts +6 -14
  67. package/lib/types/facade/f-collaboration.d.ts +38 -25
  68. package/lib/types/index.d.ts +11 -7
  69. package/lib/types/locale/types.d.ts +3 -0
  70. package/lib/types/plugin.d.ts +1 -1
  71. package/lib/types/services/attachment-remote/attachment-io.service.d.ts +22 -0
  72. package/lib/types/services/attachment-remote/types.d.ts +23 -0
  73. package/lib/types/services/data-loader/data-loader.service.d.ts +3 -0
  74. package/lib/types/services/local-cache/local-cache.service.d.ts +1 -0
  75. package/lib/umd/facade.js +1 -1
  76. package/lib/umd/index.js +1 -1
  77. package/lib/umd/locale/ar-SA.js +1 -1
  78. package/lib/umd/locale/ca-ES.js +1 -1
  79. package/lib/umd/locale/de-DE.js +1 -1
  80. package/lib/umd/locale/en-US.js +1 -1
  81. package/lib/umd/locale/es-ES.js +1 -1
  82. package/lib/umd/locale/fa-IR.js +1 -1
  83. package/lib/umd/locale/fr-FR.js +1 -1
  84. package/lib/umd/locale/id-ID.js +1 -1
  85. package/lib/umd/locale/it-IT.js +1 -1
  86. package/lib/umd/locale/ja-JP.js +1 -1
  87. package/lib/umd/locale/ko-KR.js +1 -1
  88. package/lib/umd/locale/pl-PL.js +1 -1
  89. package/lib/umd/locale/pt-BR.js +1 -1
  90. package/lib/umd/locale/ru-RU.js +1 -1
  91. package/lib/umd/locale/sk-SK.js +1 -1
  92. package/lib/umd/locale/vi-VN.js +1 -1
  93. package/lib/umd/locale/zh-CN.js +1 -1
  94. package/lib/umd/locale/zh-HK.js +1 -1
  95. package/lib/umd/locale/zh-TW.js +1 -1
  96. package/package.json +16 -14
  97. package/lib/types/controllers/config.schema.d.ts +0 -64
@@ -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 _0x4d8325=_0x4155;function _0x4155(_0x55d75a,_0x27de87){_0x55d75a=_0x55d75a-0x1ef;const _0x2e6c4f=_0x2e6c();let _0x41558b=_0x2e6c4f[_0x55d75a];return _0x41558b;}(function(_0x38d99a,_0xbf38e3){const _0x4c60b4=_0x4155,_0xa3f637=_0x38d99a();while(!![]){try{const _0x444ef8=-parseInt(_0x4c60b4(0x200))/0x1*(parseInt(_0x4c60b4(0x208))/0x2)+-parseInt(_0x4c60b4(0x1fe))/0x3*(parseInt(_0x4c60b4(0x203))/0x4)+-parseInt(_0x4c60b4(0x1f4))/0x5+-parseInt(_0x4c60b4(0x1f5))/0x6+-parseInt(_0x4c60b4(0x1f9))/0x7*(-parseInt(_0x4c60b4(0x1ef))/0x8)+-parseInt(_0x4c60b4(0x1f7))/0x9*(parseInt(_0x4c60b4(0x1f6))/0xa)+parseInt(_0x4c60b4(0x1fa))/0xb;if(_0x444ef8===_0xbf38e3)break;else _0xa3f637['push'](_0xa3f637['shift']());}catch(_0x3b0d72){_0xa3f637['push'](_0xa3f637['shift']());}}}(_0x2e6c,0xa9733));const e={'collaboration-client':{'collabClient':{'tooltip':{'reconnect':'點擊重新連線'}},'collabStatus':{'fetchMiss':'正在擷取伺服器資料...','conflict':_0x4d8325(0x1f0),'notCollab':_0x4d8325(0x204),'synced':_0x4d8325(0x1fb),'syncing':'同步中...','offline':_0x4d8325(0x1f2)},'session':{'connection-failed':_0x4d8325(0x207),'will-retry':'連線失敗,將在稍後重試連線。','room-full':'此文件協作人數已達上限,您的編輯將暫存於本機。','join-failed':_0x4d8325(0x1f3),'room-not-exists':_0x4d8325(0x1fd),'room-permission-denied':_0x4d8325(0x201),'room-cnt-exceeds':'協作文件數量超過限制,您的編輯將暫存於本機。','collaboration-timeout':'伺服器未回應協作請求,您的編輯將儲存在本機。'},'conflict':{'title':_0x4d8325(0x1f1),'content':_0x4d8325(0x206)},'permission':{'title':_0x4d8325(0x205),'content':_0x4d8325(0x1fc)},'collaboration':{'single-unit':{'warning':_0x4d8325(0x202)},'closeRoom':_0x4d8325(0x1ff)},'auth':{'needGotoLoginAlert':'您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。'}}};function _0x2e6c(){const _0x829790=['編輯衝突','協作衝突','已離線,編輯將儲存在本機','加入協作失敗,請稍後重試,您的編輯將暫存於本機。','308165jBBbBu','6095274ogiNYE','340IKfvvp','37683ZLCDWY','exports','7314041gvlChc','23218745xEtwdX','已同步','您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。','加入協作失敗,您的編輯將暫存於本機。','25143fKsGbV','由於協作房間已關閉,編輯權限已被收回。','330097GyLeso','沒有協作權限,您的編輯將暫存於本機。','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','120BmUfbH','本機檔案','認證錯誤','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','連線失敗,請檢查您的網路。','6hLduXf','8JszLaq'];_0x2e6c=function(){return _0x829790;};return _0x2e6c();}module[_0x4d8325(0x1f8)]=e;
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 _0x5336c5=_0x2a12;(function(_0x2b1f5e,_0x5ef170){const _0x83d91a=_0x2a12,_0x33aeec=_0x2b1f5e();while(!![]){try{const _0x3f166b=parseInt(_0x83d91a(0x1e2))/0x1*(-parseInt(_0x83d91a(0x1d6))/0x2)+parseInt(_0x83d91a(0x1ce))/0x3+parseInt(_0x83d91a(0x1d7))/0x4*(-parseInt(_0x83d91a(0x1c5))/0x5)+parseInt(_0x83d91a(0x1cb))/0x6+-parseInt(_0x83d91a(0x1d5))/0x7*(parseInt(_0x83d91a(0x1ea))/0x8)+-parseInt(_0x83d91a(0x1f5))/0x9+parseInt(_0x83d91a(0x1d1))/0xa*(parseInt(_0x83d91a(0x1df))/0xb);if(_0x3f166b===_0x5ef170)break;else _0x33aeec['push'](_0x33aeec['shift']());}catch(_0x27e8be){_0x33aeec['push'](_0x33aeec['shift']());}}}(_0x1810,0xadb5f));import{CollaborationController as _0x42f083,CollaborationStatus as _0x261e17,DataLoaderService as _0x382443,MemberService as _0x162476}from'@univerjs-pro/collaboration-client';import{FBase as _0x4fa887,FEnum as _0x55ad85,FEventName as _0x5ae43d,FUniver as _0x4c266a}from'@univerjs/core/facade';import{DisposableCollection as _0xaa38c,IUniverInstanceService as _0x2f92dc,Inject as _0x480ff5,Injector as _0x18114b,toDisposable as _0x278fff}from'@univerjs/core';import{SnapshotService as _0x51b064}from'@univerjs-pro/collaboration';import{switchMap as _0x19b790}from'rxjs';var h=class extends _0x55ad85{get[_0x5336c5(0x1ef)](){return _0x261e17;}};_0x55ad85[_0x5336c5(0x1dd)](h);var g=class extends _0x5ae43d{get['CollaborationStatusChanged'](){const _0x587b81=_0x5336c5;return _0x587b81(0x1c9);}};_0x5ae43d['extend'](g);function _(_0x1b4967,_0x1b8e4d){return function(_0x53a32a,_0x4b9628){_0x1b8e4d(_0x53a32a,_0x4b9628,_0x1b4967);};}function v(_0x346a50,_0x33e994,_0x135e91,_0x3962c0){const _0x263609=_0x5336c5;var _0x47a1f5=arguments[_0x263609(0x1c1)],_0x26527d=_0x47a1f5<0x3?_0x33e994:_0x3962c0===null?_0x3962c0=Object[_0x263609(0x1c6)](_0x33e994,_0x135e91):_0x3962c0,_0x23f6dc;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x263609(0x1ba))_0x26527d=Reflect[_0x263609(0x1d4)](_0x346a50,_0x33e994,_0x135e91,_0x3962c0);else{for(var _0x4b769a=_0x346a50[_0x263609(0x1c1)]-0x1;_0x4b769a>=0x0;_0x4b769a--)(_0x23f6dc=_0x346a50[_0x4b769a])&&(_0x26527d=(_0x47a1f5<0x3?_0x23f6dc(_0x26527d):_0x47a1f5>0x3?_0x23f6dc(_0x33e994,_0x135e91,_0x26527d):_0x23f6dc(_0x33e994,_0x135e91))||_0x26527d);}return _0x47a1f5>0x3&&_0x26527d&&Object[_0x263609(0x1c8)](_0x33e994,_0x135e91,_0x26527d),_0x26527d;}let y=class extends _0x4fa887{constructor(_0x4c01ca,_0x2b2c7c,_0x2ab56a,_0x4b1a44,_0x2df179){const _0x567643=_0x5336c5;super(),this['_handler']=_0x4c01ca,this[_0x567643(0x1e7)]=_0x2b2c7c,this[_0x567643(0x1e6)]=_0x2ab56a,this[_0x567643(0x1bf)]=_0x4b1a44,this['_collaborationController']=_0x2df179;}async[_0x5336c5(0x1de)](_0x2a454f,_0x5b7212){const _0x1781c9=_0x5336c5;return await this[_0x1781c9(0x1bf)][_0x1781c9(0x1bd)](_0x2a454f,0x0,_0x5b7212)?(await this[_0x1781c9(0x1e3)][_0x1781c9(0x1d0)](_0x2a454f),this[_0x1781c9(0x1f1)][_0x1781c9(0x1da)](_0x2a454f)):null;}async[_0x5336c5(0x1e4)](_0x19cd05,_0x43bedb){const _0x290c76=_0x5336c5;return await this[_0x290c76(0x1bf)][_0x290c76(0x1d2)](_0x19cd05,0x0,_0x43bedb)?(await this[_0x290c76(0x1e3)][_0x290c76(0x1d0)](_0x19cd05),this[_0x290c76(0x1f1)][_0x290c76(0x1f6)](_0x19cd05)):null;}async['loadBaseAsync'](_0x3da25b,_0x2e5ab1){const _0x60dc95=_0x5336c5;return await this[_0x60dc95(0x1bf)][_0x60dc95(0x1f3)](_0x3da25b,0x0,_0x2e5ab1)?(await this[_0x60dc95(0x1e3)][_0x60dc95(0x1d0)](_0x3da25b),this[_0x60dc95(0x1f1)]['getBase'](_0x3da25b)):null;}async[_0x5336c5(0x1c2)](_0xb676b4,_0x68df2e){const _0x3f4dc5=_0x5336c5;return await this[_0x3f4dc5(0x1bf)][_0x3f4dc5(0x1f4)](_0xb676b4,0x0,_0x68df2e)?(await this[_0x3f4dc5(0x1e3)][_0x3f4dc5(0x1d0)](_0xb676b4),this[_0x3f4dc5(0x1f1)][_0x3f4dc5(0x1e0)](_0xb676b4)):null;}[_0x5336c5(0x1cc)](_0x2fa2bf,_0x543682){const _0x405a4f=_0x5336c5;return _0x278fff(this[_0x405a4f(0x1e7)][_0x405a4f(0x1c7)](_0x162476)[_0x405a4f(0x1e8)](_0x2fa2bf)[_0x405a4f(0x1e1)](_0x19b790(_0x5e123a=>_0x5e123a['members$']))[_0x405a4f(0x1c0)](_0x3b616e=>_0x543682(Array['from'](_0x3b616e[_0x405a4f(0x1eb)]()))));}[_0x5336c5(0x1ca)](_0x5ebde8){const _0x3bd8ae=_0x5336c5;var _0xec70d1;let _0x48888e;if(_0x5ebde8)_0x48888e=_0x5ebde8;else{let _0x3cdc23=this['_univerInstanceService'][_0x3bd8ae(0x1f2)]();_0x48888e=_0x3cdc23==null?void 0x0:_0x3cdc23[_0x3bd8ae(0x1ed)]();}if(!_0x48888e)return _0x261e17[_0x3bd8ae(0x1be)];let _0x5ef77e=this[_0x3bd8ae(0x1e3)][_0x3bd8ae(0x1c3)](_0x48888e);return(_0xec70d1=_0x5ef77e==null?void 0x0:_0x5ef77e[_0x3bd8ae(0x1ec)][_0x3bd8ae(0x1ee)])==null?_0x261e17[_0x3bd8ae(0x1be)]:_0xec70d1;}};y=v([_(0x1,_0x480ff5(_0x18114b)),_(0x2,_0x2f92dc),_(0x3,_0x480ff5(_0x51b064)),_(0x4,_0x480ff5(_0x42f083))],y);function _0x2a12(_0x8d7bce,_0x49db62){_0x8d7bce=_0x8d7bce-0x1ba;const _0x181094=_0x1810();let _0x2a124e=_0x181094[_0x8d7bce];return _0x2a124e;}var b=class extends _0x4c266a{[_0x5336c5(0x1e9)](_0x16b8e0){const _0x225704=_0x5336c5;let _0x37adb5=_0x16b8e0[_0x225704(0x1c7)](_0x42f083);this[_0x225704(0x1db)](this[_0x225704(0x1cd)](this[_0x225704(0x1cf)][_0x225704(0x1c9)],()=>{const _0x561187=_0x225704;let _0x20bbc7=new _0xaa38c(),_0x56c9ba=_0x37adb5['entityInit$'][_0x561187(0x1c0)](_0x4d2c16=>{const _0x454769=_0x561187;let _0x2a9d95=_0x4d2c16[_0x454769(0x1c4)]['subscribe'](_0x16ea9f=>{const _0x1b56fa=_0x454769;let _0x5d045e={'unitId':_0x4d2c16['unitID'],'status':_0x16ea9f};this['fireEvent'](this['Event'][_0x1b56fa(0x1c9)],_0x5d045e);});_0x20bbc7[_0x454769(0x1d3)](_0x278fff(_0x2a9d95));});return _0x20bbc7[_0x561187(0x1d3)](_0x278fff(_0x56c9ba)),_0x20bbc7;}));}[_0x5336c5(0x1e5)](){const _0x1ae042=_0x5336c5;return this['_injector'][_0x1ae042(0x1dc)](y,{'getWorkbook':_0x37e84a=>this[_0x1ae042(0x1da)](_0x37e84a),'getDocument':_0x18af1e=>this[_0x1ae042(0x1f6)](_0x18af1e),'getPresentation':_0x36176c=>this[_0x1ae042(0x1e0)](_0x36176c),'getBase':_0x45da8c=>this[_0x1ae042(0x1d8)](_0x45da8c)});}[_0x5336c5(0x1f0)](_0x130c8e,_0x54e985,_0x4c390c){const _0x3dad4a=_0x5336c5;return this[_0x3dad4a(0x1e7)][_0x3dad4a(0x1c7)](_0x382443)[_0x3dad4a(0x1d9)](_0x130c8e,_0x54e985,_0x4c390c);}[_0x5336c5(0x1bc)](_0x4c8785,_0x37142a,_0x5d8467){const _0xdd7ad6=_0x5336c5;return this[_0xdd7ad6(0x1e7)][_0xdd7ad6(0x1c7)](_0x382443)[_0xdd7ad6(0x1bb)](_0x4c8785,_0x37142a,_0x5d8467);}};_0x4c266a[_0x5336c5(0x1dd)](b);export{y as FCollaboration};function _0x1810(){const _0x3165d2=['getPresentation','pipe','19727pVQhuZ','_collaborationController','loadDocAsync','getCollaboration','_univerInstanceService','_injector','waitForRoom$','_initialize','1514656IKLxSH','values','state','getUnitId','status','CollaborationStatus','loadServerUnit','_handler','getFocusedUnit','loadBase','loadSlide','1280070YUkhfg','getDocument','function','loadUnitOfRevision','loadServerUnitOfRevision','loadSheet','NOT_COLLAB','_snapshotService','subscribe','length','loadSlideAsync','getCollabEntity','status$','23965HuZpWA','getOwnPropertyDescriptor','get','defineProperty','CollaborationStatusChanged','getCollaborationStatus','105990ehsizV','subscribeCollaborators','registerEventHandler','3331608okxroL','Event','readyForCollab','72190HaIbKn','loadDoc','add','decorate','21yCtaBC','32DfpUpv','76orXYEm','getBase','loadUnit','getWorkbook','disposeWithMe','createInstance','extend','loadSheetAsync','1067TMmoyD'];_0x1810=function(){return _0x3165d2;};return _0x1810();}