@univerjs-pro/collaboration-client 0.25.1 → 1.0.0-alpha.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 (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
- 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();}
1
+ function _0x338d(_0x44d46e,_0x5a0089){_0x44d46e=_0x44d46e-0xf8;const _0x55e9a3=_0x55e9();let _0x338d09=_0x55e9a3[_0x44d46e];return _0x338d09;}const _0x4e04bf=_0x338d;(function(_0xe4f1c9,_0x39ac14){const _0x517ace=_0x338d,_0x54cd98=_0xe4f1c9();while(!![]){try{const _0x3cba07=-parseInt(_0x517ace(0x103))/0x1*(parseInt(_0x517ace(0xff))/0x2)+parseInt(_0x517ace(0x10c))/0x3*(-parseInt(_0x517ace(0xfd))/0x4)+-parseInt(_0x517ace(0x111))/0x5*(-parseInt(_0x517ace(0x108))/0x6)+-parseInt(_0x517ace(0x110))/0x7*(-parseInt(_0x517ace(0x107))/0x8)+parseInt(_0x517ace(0x102))/0x9+parseInt(_0x517ace(0x10e))/0xa*(-parseInt(_0x517ace(0x10f))/0xb)+parseInt(_0x517ace(0xfb))/0xc*(parseInt(_0x517ace(0xf9))/0xd);if(_0x3cba07===_0x39ac14)break;else _0x54cd98['push'](_0x54cd98['shift']());}catch(_0x3000c9){_0x54cd98['push'](_0x54cd98['shift']());}}}(_0x55e9,0xeffad));const e={'collaboration-client':{'collabClient':{'tooltip':{'reconnect':'點擊重新連線'}},'collabStatus':{'fetchMiss':'正在擷取伺服器資料...','conflict':'編輯衝突','notCollab':'本機檔案','synced':_0x4e04bf(0xf8),'syncing':_0x4e04bf(0x10a),'offline':_0x4e04bf(0xfc)},'session':{'connection-failed':_0x4e04bf(0x101),'will-retry':'連線失敗,將在稍後重試連線。','room-full':_0x4e04bf(0xfa),'join-failed':_0x4e04bf(0x100),'room-not-exists':_0x4e04bf(0x109),'room-permission-denied':'沒有協作權限,您的編輯將暫存於本機。','room-cnt-exceeds':_0x4e04bf(0x106),'collaboration-timeout':_0x4e04bf(0xfe)},'conflict':{'title':'協作衝突','content':_0x4e04bf(0x10b)},'permission':{'title':_0x4e04bf(0x104),'content':'您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。'},'collaboration':{'single-unit':{'warning':'您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。'},'closeRoom':_0x4e04bf(0x10d)},'auth':{'needGotoLoginAlert':_0x4e04bf(0x105)}}};function _0x55e9(){const _0x5afaa0=['4475140zultpP','44FUQhZa','93611XEjStR','1774970LknboD','已同步','794638ElhNfn','此文件協作人數已達上限,您的編輯將暫存於本機。','192KmjPwm','已離線,編輯將儲存在本機','6697012BDCqUb','伺服器未回應協作請求,您的編輯將儲存在本機。','2tzSxqz','加入協作失敗,請稍後重試,您的編輯將暫存於本機。','連線失敗,請檢查您的網路。','12856644gRTcov','884314cPqAPR','認證錯誤','您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。','協作文件數量超過限制,您的編輯將暫存於本機。','688AYRiaS','30wsAWrX','加入協作失敗,您的編輯將暫存於本機。','同步中...','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','3GsWlat','由於協作房間已關閉,編輯權限已被收回。'];_0x55e9=function(){return _0x5afaa0;};return _0x55e9();}module['exports']=e;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
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};
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};