@univerjs-pro/collaboration-client 0.25.1 → 0.25.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/umd/facade.js +1 -1
  65. package/lib/umd/index.js +1 -1
  66. package/lib/umd/locale/ar-SA.js +1 -1
  67. package/lib/umd/locale/ca-ES.js +1 -1
  68. package/lib/umd/locale/de-DE.js +1 -1
  69. package/lib/umd/locale/en-US.js +1 -1
  70. package/lib/umd/locale/es-ES.js +1 -1
  71. package/lib/umd/locale/fa-IR.js +1 -1
  72. package/lib/umd/locale/fr-FR.js +1 -1
  73. package/lib/umd/locale/id-ID.js +1 -1
  74. package/lib/umd/locale/it-IT.js +1 -1
  75. package/lib/umd/locale/ja-JP.js +1 -1
  76. package/lib/umd/locale/ko-KR.js +1 -1
  77. package/lib/umd/locale/pl-PL.js +1 -1
  78. package/lib/umd/locale/pt-BR.js +1 -1
  79. package/lib/umd/locale/ru-RU.js +1 -1
  80. package/lib/umd/locale/sk-SK.js +1 -1
  81. package/lib/umd/locale/vi-VN.js +1 -1
  82. package/lib/umd/locale/zh-CN.js +1 -1
  83. package/lib/umd/locale/zh-HK.js +1 -1
  84. package/lib/umd/locale/zh-TW.js +1 -1
  85. package/package.json +11 -11
@@ -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
+ const _0x2e2447=_0x1bbb;function _0x2951(){const _0x55a563=['本機檔案','100yaSetw','加入協作失敗,請稍後重試,您的編輯將暫存於本機。','8080DdbwGk','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','986Hepenx','由於協作房間已關閉,編輯權限已被收回。','認證錯誤','已離線,編輯將儲存在本機','2126230EjNRqk','4045936FuDxGI','連線失敗,請檢查您的網路。','21514272BUTsUh','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','正在擷取伺服器資料...','7sKIywa','沒有協作權限,您的編輯將暫存於本機。','9DYRCAn','編輯衝突','連線失敗,將在稍後重試連線。','協作衝突','11528miQhzP','此文件協作人數已達上限,您的編輯將暫存於本機。','同步中...','2084TKwOIq','45537QAfxSj','您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。','5914758zitZJO','協作文件數量超過限制,您的編輯將暫存於本機。'];_0x2951=function(){return _0x55a563;};return _0x2951();}(function(_0x4e02d9,_0x4a758a){const _0x208b43=_0x1bbb,_0xcb43fc=_0x4e02d9();while(!![]){try{const _0x5e46ce=parseInt(_0x208b43(0x127))/0x1*(parseInt(_0x208b43(0x11d))/0x2)+-parseInt(_0x208b43(0x11e))/0x3*(-parseInt(_0x208b43(0x123))/0x4)+-parseInt(_0x208b43(0x12b))/0x5+parseInt(_0x208b43(0x120))/0x6*(parseInt(_0x208b43(0x131))/0x7)+-parseInt(_0x208b43(0x12c))/0x8*(parseInt(_0x208b43(0x133))/0x9)+-parseInt(_0x208b43(0x125))/0xa*(-parseInt(_0x208b43(0x137))/0xb)+-parseInt(_0x208b43(0x12e))/0xc;if(_0x5e46ce===_0x4a758a)break;else _0xcb43fc['push'](_0xcb43fc['shift']());}catch(_0x131242){_0xcb43fc['push'](_0xcb43fc['shift']());}}}(_0x2951,0x7de24));const e={'collaboration-client':{'collabClient':{'tooltip':{'reconnect':'點擊重新連線'}},'collabStatus':{'fetchMiss':_0x2e2447(0x130),'conflict':_0x2e2447(0x134),'notCollab':_0x2e2447(0x122),'synced':'已同步','syncing':_0x2e2447(0x11c),'offline':_0x2e2447(0x12a)},'session':{'connection-failed':_0x2e2447(0x12d),'will-retry':_0x2e2447(0x135),'room-full':_0x2e2447(0x11b),'join-failed':_0x2e2447(0x124),'room-not-exists':'加入協作失敗,您的編輯將暫存於本機。','room-permission-denied':_0x2e2447(0x132),'room-cnt-exceeds':_0x2e2447(0x121),'collaboration-timeout':'伺服器未回應協作請求,您的編輯將儲存在本機。'},'conflict':{'title':_0x2e2447(0x136),'content':_0x2e2447(0x12f)},'permission':{'title':_0x2e2447(0x129),'content':_0x2e2447(0x11f)},'collaboration':{'single-unit':{'warning':_0x2e2447(0x126)},'closeRoom':_0x2e2447(0x128)},'auth':{'needGotoLoginAlert':'您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。'}}};function _0x1bbb(_0x276621,_0x39eee0){_0x276621=_0x276621-0x11b;const _0x2951be=_0x2951();let _0x1bbb46=_0x2951be[_0x276621];return _0x1bbb46;}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 _0x296125=_0x2fc4;(function(_0x929f70,_0x310ceb){const _0xb869c8=_0x2fc4,_0x52ec40=_0x929f70();while(!![]){try{const _0x3cd490=parseInt(_0xb869c8(0x150))/0x1+-parseInt(_0xb869c8(0x127))/0x2+-parseInt(_0xb869c8(0x14a))/0x3+-parseInt(_0xb869c8(0x146))/0x4*(parseInt(_0xb869c8(0x131))/0x5)+-parseInt(_0xb869c8(0x147))/0x6+parseInt(_0xb869c8(0x151))/0x7+parseInt(_0xb869c8(0x156))/0x8;if(_0x3cd490===_0x310ceb)break;else _0x52ec40['push'](_0x52ec40['shift']());}catch(_0x55bd19){_0x52ec40['push'](_0x52ec40['shift']());}}}(_0x58c6,0xf0088));import{CollaborationController as _0x6ee18c,CollaborationStatus as _0x19e571,DataLoaderService as _0x2ffe90,MemberService as _0x558292}from'@univerjs-pro/collaboration-client';import{FBase as _0x577053,FEnum as _0x4f4675,FEventName as _0x392f29,FUniver as _0x3e222c}from'@univerjs/core/facade';import{DisposableCollection as _0x249d1c,IUniverInstanceService as _0x3ac7d6,Inject as _0x5465d4,Injector as _0x1bacae,toDisposable as _0x483f67}from'@univerjs/core';import{SnapshotService as _0x122df6}from'@univerjs-pro/collaboration';import{switchMap as _0x1ba3c3}from'rxjs';function _0x58c6(){const _0x14bff6=['status$','getCollaborationStatus','loadActiveSheetAsync','getCollaboration','decorate','createInstance','loadSheet','getOwnPropertyDescriptor','length','state','_univerInstanceService','_snapshotService','disposeWithMe','registerEventHandler','loadUnitOfRevision','CollaborationStatusChanged','object','6260zcdKuk','6446940gafBmr','loadActiveSheet','_injector','3825888RTHGpe','extend','_handler','from','loadServerUnitOfRevision','NOT_COLLAB','1714517EWJSWT','12563957vVqIaC','subscribe','subscribeCollaborators','members$','loadUnit','7608656kjyJCM','get','461486slndqU','_collaborationController','getUniverSheet','Event','getUnitId','status','add','loadSheetAsync','loadServerUnit','function','2865JIPWnK','values','getCollabEntity','waitForRoom$'];_0x58c6=function(){return _0x14bff6;};return _0x58c6();}var h=class extends _0x4f4675{get['CollaborationStatus'](){return _0x19e571;}};_0x4f4675[_0x296125(0x14b)](h);var g=class extends _0x392f29{get[_0x296125(0x144)](){const _0x1f6662=_0x296125;return _0x1f6662(0x144);}};_0x392f29[_0x296125(0x14b)](g);function _(_0x1db60d,_0x860d5){return function(_0x2fb4a4,_0x4a48e7){_0x860d5(_0x2fb4a4,_0x4a48e7,_0x1db60d);};}function v(_0x437e79,_0x446529,_0x250bf5,_0x3fc18f){const _0x54853f=_0x296125;var _0x261052=arguments[_0x54853f(0x13d)],_0x282d66=_0x261052<0x3?_0x446529:_0x3fc18f===null?_0x3fc18f=Object[_0x54853f(0x13c)](_0x446529,_0x250bf5):_0x3fc18f,_0x1485cc;if(typeof Reflect==_0x54853f(0x145)&&typeof Reflect[_0x54853f(0x139)]==_0x54853f(0x130))_0x282d66=Reflect[_0x54853f(0x139)](_0x437e79,_0x446529,_0x250bf5,_0x3fc18f);else{for(var _0x49ed15=_0x437e79[_0x54853f(0x13d)]-0x1;_0x49ed15>=0x0;_0x49ed15--)(_0x1485cc=_0x437e79[_0x49ed15])&&(_0x282d66=(_0x261052<0x3?_0x1485cc(_0x282d66):_0x261052>0x3?_0x1485cc(_0x446529,_0x250bf5,_0x282d66):_0x1485cc(_0x446529,_0x250bf5))||_0x282d66);}return _0x261052>0x3&&_0x282d66&&Object['defineProperty'](_0x446529,_0x250bf5,_0x282d66),_0x282d66;}let y=class extends _0x577053{constructor(_0x4b6a89,_0x193c92,_0x2eb620,_0x2f23d4,_0xfb800c){const _0x52ff50=_0x296125;super(),this[_0x52ff50(0x14c)]=_0x4b6a89,this[_0x52ff50(0x149)]=_0x193c92,this[_0x52ff50(0x13f)]=_0x2eb620,this['_snapshotService']=_0x2f23d4,this[_0x52ff50(0x128)]=_0xfb800c;}async[_0x296125(0x148)](){return this['loadActiveSheetAsync']();}async[_0x296125(0x137)](){throw Error('[FCollaboration]:\x20this\x20method\x20should\x20be\x20override.');}async[_0x296125(0x13b)](_0x57475b){return this['loadSheetAsync'](_0x57475b);}async[_0x296125(0x12e)](_0x31ab5b,_0x3d1c70){const _0x3418ed=_0x296125;return await this[_0x3418ed(0x140)]['loadSheet'](_0x31ab5b,0x0,_0x3d1c70)?(await this[_0x3418ed(0x128)]['readyForCollab'](_0x31ab5b),this[_0x3418ed(0x14c)][_0x3418ed(0x129)](_0x31ab5b)):null;}[_0x296125(0x153)](_0x1347fb,_0x516f45){const _0x217d85=_0x296125;return _0x483f67(this['_injector']['get'](_0x558292)[_0x217d85(0x134)](_0x1347fb)['pipe'](_0x1ba3c3(_0x49fe18=>_0x49fe18[_0x217d85(0x154)]))[_0x217d85(0x152)](_0x5cb4d7=>_0x516f45(Array[_0x217d85(0x14d)](_0x5cb4d7[_0x217d85(0x132)]()))));}[_0x296125(0x136)](_0xbb1673){const _0x24bd7d=_0x296125;var _0x516a52;let _0x57d2c4;if(_0xbb1673)_0x57d2c4=_0xbb1673;else{let _0x7539d3=this[_0x24bd7d(0x13f)]['getFocusedUnit']();_0x57d2c4=_0x7539d3==null?void 0x0:_0x7539d3[_0x24bd7d(0x12b)]();}if(!_0x57d2c4)return _0x19e571[_0x24bd7d(0x14f)];let _0x2d2c26=this[_0x24bd7d(0x128)][_0x24bd7d(0x133)](_0x57d2c4);return(_0x516a52=_0x2d2c26==null?void 0x0:_0x2d2c26[_0x24bd7d(0x13e)][_0x24bd7d(0x12c)])==null?_0x19e571[_0x24bd7d(0x14f)]:_0x516a52;}};function _0x2fc4(_0x1d6bf1,_0x547261){_0x1d6bf1=_0x1d6bf1-0x127;const _0x58c66a=_0x58c6();let _0x2fc47e=_0x58c66a[_0x1d6bf1];return _0x2fc47e;}y=v([_(0x1,_0x5465d4(_0x1bacae)),_(0x2,_0x3ac7d6),_(0x3,_0x5465d4(_0x122df6)),_(0x4,_0x5465d4(_0x6ee18c))],y);var b=class extends _0x3e222c{['_initialize'](_0x394be4){const _0x188fdf=_0x296125;let _0x10024e=_0x394be4[_0x188fdf(0x157)](_0x6ee18c);this[_0x188fdf(0x141)](this[_0x188fdf(0x142)](this[_0x188fdf(0x12a)][_0x188fdf(0x144)],()=>{const _0x4639a5=_0x188fdf;let _0x417e6f=new _0x249d1c(),_0x4a2dc1=_0x10024e['entityInit$'][_0x4639a5(0x152)](_0x446a50=>{const _0xdbf76e=_0x4639a5;let _0x4a1858=_0x446a50[_0xdbf76e(0x135)][_0xdbf76e(0x152)](_0x1435c6=>{const _0x58a288=_0xdbf76e;let _0x5ec84c={'unitId':_0x446a50['unitID'],'status':_0x1435c6};this['fireEvent'](this[_0x58a288(0x12a)][_0x58a288(0x144)],_0x5ec84c);});_0x417e6f[_0xdbf76e(0x12d)](_0x483f67(_0x4a1858));});return _0x417e6f[_0x4639a5(0x12d)](_0x483f67(_0x4a2dc1)),_0x417e6f;}));}[_0x296125(0x138)](){const _0x1c5b45=_0x296125;return this[_0x1c5b45(0x149)][_0x1c5b45(0x13a)](y,{'getUniverSheet':_0x26a04d=>this['getUniverSheet'](_0x26a04d)});}[_0x296125(0x12f)](_0x5e0c5d,_0x1e765e,_0x5698be){const _0x4a3a2a=_0x296125;return this[_0x4a3a2a(0x149)][_0x4a3a2a(0x157)](_0x2ffe90)[_0x4a3a2a(0x155)](_0x5e0c5d,_0x1e765e,_0x5698be);}[_0x296125(0x14e)](_0x5d7e5c,_0x232ff2,_0x168b5c){const _0x20f157=_0x296125;return this[_0x20f157(0x149)]['get'](_0x2ffe90)[_0x20f157(0x143)](_0x5d7e5c,_0x232ff2,_0x168b5c);}};_0x3e222c['extend'](b);export{y as FCollaboration};