@univerjs-pro/collaboration-client 1.0.4 → 1.1.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 (91) 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/controllers/collaboration/collaboration-state.d.ts +51 -11
  65. package/lib/types/facade/f-collaboration.d.ts +3 -4
  66. package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +3 -3
  67. package/lib/types/services/collaboration-ui-event/collaboration-ui-event.d.ts +1 -0
  68. package/lib/types/services/data-loader/data-loader.service.d.ts +9 -2
  69. package/lib/types/services/local-cache/local-cache.service.d.ts +11 -6
  70. package/lib/umd/facade.js +1 -1
  71. package/lib/umd/index.js +1 -1
  72. package/lib/umd/locale/ar-SA.js +1 -1
  73. package/lib/umd/locale/ca-ES.js +1 -1
  74. package/lib/umd/locale/de-DE.js +1 -1
  75. package/lib/umd/locale/en-US.js +1 -1
  76. package/lib/umd/locale/es-ES.js +1 -1
  77. package/lib/umd/locale/fa-IR.js +1 -1
  78. package/lib/umd/locale/fr-FR.js +1 -1
  79. package/lib/umd/locale/id-ID.js +1 -1
  80. package/lib/umd/locale/it-IT.js +1 -1
  81. package/lib/umd/locale/ja-JP.js +1 -1
  82. package/lib/umd/locale/ko-KR.js +1 -1
  83. package/lib/umd/locale/pl-PL.js +1 -1
  84. package/lib/umd/locale/pt-BR.js +1 -1
  85. package/lib/umd/locale/ru-RU.js +1 -1
  86. package/lib/umd/locale/sk-SK.js +1 -1
  87. package/lib/umd/locale/vi-VN.js +1 -1
  88. package/lib/umd/locale/zh-CN.js +1 -1
  89. package/lib/umd/locale/zh-HK.js +1 -1
  90. package/lib/umd/locale/zh-TW.js +1 -1
  91. package/package.json +16 -16
@@ -1 +1 @@
1
- const _0x37fcc9=_0x4610;(function(_0x44af7a,_0x8572ab){const _0x3e5a60=_0x4610,_0x222e55=_0x44af7a();while(!![]){try{const _0x22a1a6=-parseInt(_0x3e5a60(0x129))/0x1+-parseInt(_0x3e5a60(0x13c))/0x2*(parseInt(_0x3e5a60(0x126))/0x3)+-parseInt(_0x3e5a60(0x132))/0x4+-parseInt(_0x3e5a60(0x134))/0x5+parseInt(_0x3e5a60(0x12f))/0x6+parseInt(_0x3e5a60(0x139))/0x7+parseInt(_0x3e5a60(0x12d))/0x8;if(_0x22a1a6===_0x8572ab)break;else _0x222e55['push'](_0x222e55['shift']());}catch(_0x4909f0){_0x222e55['push'](_0x222e55['shift']());}}}(_0x14cc,0x4b904));function _0x4610(_0x2a33e1,_0x6cad9d){_0x2a33e1=_0x2a33e1-0x123;const _0x14cc7d=_0x14cc();let _0x46101e=_0x14cc7d[_0x2a33e1];return _0x46101e;}const e={'collaboration-client':{'collabClient':{'tooltip':{'reconnect':_0x37fcc9(0x131)}},'collabStatus':{'fetchMiss':_0x37fcc9(0x125),'conflict':'編輯衝突','notCollab':_0x37fcc9(0x124),'synced':_0x37fcc9(0x12c),'syncing':'同步中...','offline':_0x37fcc9(0x138)},'session':{'connection-failed':_0x37fcc9(0x127),'will-retry':_0x37fcc9(0x13a),'room-full':_0x37fcc9(0x133),'join-failed':_0x37fcc9(0x13b),'room-not-exists':_0x37fcc9(0x136),'room-permission-denied':_0x37fcc9(0x13e),'room-cnt-exceeds':_0x37fcc9(0x137),'collaboration-timeout':_0x37fcc9(0x12a)},'conflict':{'title':_0x37fcc9(0x135),'content':_0x37fcc9(0x130)},'permission':{'title':_0x37fcc9(0x123),'content':_0x37fcc9(0x12e)},'collaboration':{'single-unit':{'warning':_0x37fcc9(0x128)},'closeRoom':_0x37fcc9(0x12b)},'auth':{'needGotoLoginAlert':_0x37fcc9(0x13d)}}};function _0x14cc(){const _0x202c67=['伺服器未回應協作請求,您的編輯將儲存在本機。','由於協作房間已關閉,編輯權限已被收回。','已同步','8715752OamleO','您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。','1909326QWPBlk','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','點擊重新連線','172604ttIJgD','此文件協作人數已達上限,您的編輯將暫存於本機。','1549065CQAUEW','協作衝突','加入協作失敗,您的編輯將暫存於本機。','協作文件數量超過限制,您的編輯將暫存於本機。','已離線,編輯將儲存在本機','172984mLcwlO','連線失敗,將在稍後重試連線。','加入協作失敗,請稍後重試,您的編輯將暫存於本機。','324776liMHtv','您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。','沒有協作權限,您的編輯將暫存於本機。','認證錯誤','本機檔案','正在擷取伺服器資料...','6YFwjHv','連線失敗,請檢查您的網路。','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','445154qlIgGp'];_0x14cc=function(){return _0x202c67;};return _0x14cc();}export{e as default};
1
+ const _0x3b8851=_0x5e7a;(function(_0x458da0,_0x2d6656){const _0x4880f6=_0x5e7a,_0x226fc1=_0x458da0();while(!![]){try{const _0x19d86d=parseInt(_0x4880f6(0x1f3))/0x1*(parseInt(_0x4880f6(0x1db))/0x2)+parseInt(_0x4880f6(0x1de))/0x3+-parseInt(_0x4880f6(0x1e0))/0x4*(-parseInt(_0x4880f6(0x1f1))/0x5)+parseInt(_0x4880f6(0x1ec))/0x6*(-parseInt(_0x4880f6(0x1ea))/0x7)+-parseInt(_0x4880f6(0x1f4))/0x8*(parseInt(_0x4880f6(0x1eb))/0x9)+parseInt(_0x4880f6(0x1ed))/0xa*(parseInt(_0x4880f6(0x1dd))/0xb)+-parseInt(_0x4880f6(0x1ee))/0xc;if(_0x19d86d===_0x2d6656)break;else _0x226fc1['push'](_0x226fc1['shift']());}catch(_0x37d32c){_0x226fc1['push'](_0x226fc1['shift']());}}}(_0x47fc,0x6e244));const e={'collaboration-client':{'collabClient':{'tooltip':{'reconnect':'點擊重新連線'}},'collabStatus':{'fetchMiss':_0x3b8851(0x1e2),'conflict':_0x3b8851(0x1e5),'notCollab':_0x3b8851(0x1e1),'synced':_0x3b8851(0x1e3),'syncing':_0x3b8851(0x1e9),'offline':'已離線,編輯將儲存在本機'},'session':{'connection-failed':_0x3b8851(0x1f2),'will-retry':_0x3b8851(0x1ef),'room-full':_0x3b8851(0x1d9),'join-failed':_0x3b8851(0x1e6),'room-not-exists':'加入協作失敗,您的編輯將暫存於本機。','room-permission-denied':_0x3b8851(0x1e7),'room-cnt-exceeds':'協作文件數量超過限制,您的編輯將暫存於本機。','collaboration-timeout':'伺服器未回應協作請求,您的編輯將儲存在本機。'},'conflict':{'title':_0x3b8851(0x1dc),'content':_0x3b8851(0x1e4)},'permission':{'title':_0x3b8851(0x1df),'content':_0x3b8851(0x1e8)},'collaboration':{'single-unit':{'warning':_0x3b8851(0x1da)},'closeRoom':'由於協作房間已關閉,編輯權限已被收回。'},'auth':{'needGotoLoginAlert':_0x3b8851(0x1f0)}}};function _0x5e7a(_0x3f4940,_0x1cfd05){_0x3f4940=_0x3f4940-0x1d9;const _0x47fc5e=_0x47fc();let _0x5e7a99=_0x47fc5e[_0x3f4940];return _0x5e7a99;}function _0x47fc(){const _0x3bae62=['沒有協作權限,您的編輯將暫存於本機。','您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。','同步中...','259nbSoVZ','99vKJwxg','47418WhBGHN','70eVkUSc','7097544RBEGxw','連線失敗,將在稍後重試連線。','您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。','5tMjDit','連線失敗,請檢查您的網路。','503545sraJxd','68984GdEPIv','此文件協作人數已達上限,您的編輯將暫存於本機。','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','2VVXenT','協作衝突','1355739bhtQrz','105480mSqOzv','認證錯誤','113672DbtIwV','本機檔案','正在擷取伺服器資料...','已同步','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','編輯衝突','加入協作失敗,請稍後重試,您的編輯將暫存於本機。'];_0x47fc=function(){return _0x3bae62;};return _0x47fc();}export{e as default};
package/lib/facade.js CHANGED
@@ -1 +1 @@
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};
1
+ const _0x1dcad0=_0x1b85;(function(_0x5b7ef5,_0x448691){const _0x1f96fb=_0x1b85,_0x5d3a60=_0x5b7ef5();while(!![]){try{const _0x40b1ec=parseInt(_0x1f96fb(0x1f4))/0x1+-parseInt(_0x1f96fb(0x22b))/0x2*(-parseInt(_0x1f96fb(0x207))/0x3)+-parseInt(_0x1f96fb(0x1f7))/0x4*(parseInt(_0x1f96fb(0x1f2))/0x5)+-parseInt(_0x1f96fb(0x234))/0x6+-parseInt(_0x1f96fb(0x1f1))/0x7*(-parseInt(_0x1f96fb(0x208))/0x8)+parseInt(_0x1f96fb(0x238))/0x9*(parseInt(_0x1f96fb(0x236))/0xa)+parseInt(_0x1f96fb(0x23c))/0xb*(-parseInt(_0x1f96fb(0x1f0))/0xc);if(_0x40b1ec===_0x448691)break;else _0x5d3a60['push'](_0x5d3a60['shift']());}catch(_0x406963){_0x5d3a60['push'](_0x5d3a60['shift']());}}}(_0x7981,0x4e108));import{CollaborationController as _0x25f8f1,CollaborationStatus as _0x10ce7d,DataLoaderService as _0x1072cd,MemberService as _0x36f1fd}from'@univerjs-pro/collaboration-client';import{FBase as _0x1bf77b,FEnum as _0x159c74,FEventName as _0x13183f,FUniver as _0x1b630f}from'@univerjs/core/facade';import{DisposableCollection as _0x5e8abf,IUniverInstanceService as _0xac809c,Inject as _0x132184,Injector as _0x2b2ef3,UniverInstanceType as _0x453837,toDisposable as _0x4984cf}from'@univerjs/core';import{switchMap as _0x16ef84}from'rxjs';var h=class extends _0x159c74{get[_0x1dcad0(0x230)](){return _0x10ce7d;}};function _0x7981(){const _0x3650fd=['[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','status','4178724VQRKIq','822724IEPYHA','15cTMvHD','CONFLICT','218682iNewBp','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','_injector','629580RjnORJ','loadDocAsync','loadBoardAsync','SYNCED','getPresentation','getBase','subscribe','readyForCollab','UNIVER_BASE','disposeWithMe','getPdf','resolve','_collaborationController','members$','getFocusedUnit','UNIVER_SLIDE','9vVnKEj','24lhGWyi','object','state','values','timeout','loadServerUnit','loadPdfAsync','waitForRoom$','loadUnitOfRevision','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','_univerInstanceService','extend','_handler','getCollaborationStatus','getCollabEntity','decorate','getBoard','UNIVER_PDF','Event','loadUnit','getCollaboration','loadSlideAsync','get','add','reject','unsubscribe','status$','UNIVER_SHEET','registerEventHandler','subscribeCollaborators','from','getWorkbook','_dataLoaderService','loadSheetAsync','389122bBfmmL','entityInit$','pipe','length','_resolveUnitId','CollaborationStatus','defineProperty','getDocument','loadBaseAsync','2892018XFuwbc','CollaborationStatusChanged','790SdJWdg','NOT_COLLAB','53226GBKuTQ','loadServerUnitOfRevision','getUnitId','UNIVER_DOC','11wGWIhf','function','\x22\x20while\x20collaboration\x20status\x20is\x20'];_0x7981=function(){return _0x3650fd;};return _0x7981();}_0x159c74[_0x1dcad0(0x214)](h);var g=class extends _0x13183f{get[_0x1dcad0(0x235)](){const _0x47edb5=_0x1dcad0;return _0x47edb5(0x235);}};_0x13183f[_0x1dcad0(0x214)](g);function _(_0x3d0e37,_0xe452ee){return function(_0x23c8e2,_0x12f3a2){_0xe452ee(_0x23c8e2,_0x12f3a2,_0x3d0e37);};}function v(_0x2818aa,_0x4a86cd,_0x9e1bcf,_0x17634b){const _0x81fbb3=_0x1dcad0;var _0x2d86e0=arguments[_0x81fbb3(0x22e)],_0x5aae7a=_0x2d86e0<0x3?_0x4a86cd:_0x17634b===null?_0x17634b=Object['getOwnPropertyDescriptor'](_0x4a86cd,_0x9e1bcf):_0x17634b,_0x125ee6;if(typeof Reflect==_0x81fbb3(0x209)&&typeof Reflect[_0x81fbb3(0x218)]==_0x81fbb3(0x23d))_0x5aae7a=Reflect[_0x81fbb3(0x218)](_0x2818aa,_0x4a86cd,_0x9e1bcf,_0x17634b);else{for(var _0x28630d=_0x2818aa[_0x81fbb3(0x22e)]-0x1;_0x28630d>=0x0;_0x28630d--)(_0x125ee6=_0x2818aa[_0x28630d])&&(_0x5aae7a=(_0x2d86e0<0x3?_0x125ee6(_0x5aae7a):_0x2d86e0>0x3?_0x125ee6(_0x4a86cd,_0x9e1bcf,_0x5aae7a):_0x125ee6(_0x4a86cd,_0x9e1bcf))||_0x5aae7a);}return _0x2d86e0>0x3&&_0x5aae7a&&Object[_0x81fbb3(0x231)](_0x4a86cd,_0x9e1bcf,_0x5aae7a),_0x5aae7a;}function _0x1b85(_0x5ae834,_0x5180c7){_0x5ae834=_0x5ae834-0x1ee;const _0x798190=_0x7981();let _0x1b856e=_0x798190[_0x5ae834];return _0x1b856e;}let y=class extends _0x1bf77b{constructor(_0xf387f,_0x3826ea,_0x431d8c,_0x672ce,_0x5b75ca){const _0x468d70=_0x1dcad0;super(),this[_0x468d70(0x215)]=_0xf387f,this[_0x468d70(0x1f6)]=_0x3826ea,this[_0x468d70(0x213)]=_0x431d8c,this[_0x468d70(0x229)]=_0x672ce,this[_0x468d70(0x203)]=_0x5b75ca;}async[_0x1dcad0(0x22a)](_0x53c7a0,_0x3f5f9e){const _0x41a823=_0x1dcad0;return await this[_0x41a823(0x229)][_0x41a823(0x21c)](_0x53c7a0,_0x453837[_0x41a823(0x224)],void 0x0,_0x3f5f9e)?(await this[_0x41a823(0x203)]['readyForCollab'](_0x53c7a0),this['_handler'][_0x41a823(0x228)](_0x53c7a0)):null;}async[_0x1dcad0(0x1f8)](_0x20c9d5,_0x5f3cce){const _0x2995f2=_0x1dcad0;return await this[_0x2995f2(0x229)][_0x2995f2(0x21c)](_0x20c9d5,_0x453837[_0x2995f2(0x23b)],void 0x0,_0x5f3cce)?(await this[_0x2995f2(0x203)][_0x2995f2(0x1fe)](_0x20c9d5),this['_handler']['getDocument'](_0x20c9d5)):null;}async[_0x1dcad0(0x233)](_0x2aa719,_0xcf18a4){const _0x1f513a=_0x1dcad0;return await this[_0x1f513a(0x229)]['loadUnit'](_0x2aa719,_0x453837[_0x1f513a(0x1ff)],void 0x0,_0xcf18a4)?(await this[_0x1f513a(0x203)][_0x1f513a(0x1fe)](_0x2aa719),this[_0x1f513a(0x215)]['getBase'](_0x2aa719)):null;}async[_0x1dcad0(0x21e)](_0x1bd863,_0x2e3e2c){const _0x3099ff=_0x1dcad0;return await this[_0x3099ff(0x229)][_0x3099ff(0x21c)](_0x1bd863,_0x453837[_0x3099ff(0x206)],void 0x0,_0x2e3e2c)?(await this[_0x3099ff(0x203)][_0x3099ff(0x1fe)](_0x1bd863),this[_0x3099ff(0x215)][_0x3099ff(0x1fb)](_0x1bd863)):null;}async[_0x1dcad0(0x1f9)](_0x575b86,_0x285ed5){const _0x808b73=_0x1dcad0;return await this[_0x808b73(0x229)][_0x808b73(0x21c)](_0x575b86,_0x453837['UNIVER_BOARD'],void 0x0,_0x285ed5)?(await this[_0x808b73(0x203)][_0x808b73(0x1fe)](_0x575b86),this[_0x808b73(0x215)][_0x808b73(0x219)](_0x575b86)):null;}async[_0x1dcad0(0x20e)](_0x4b2d6e,_0x12d2fa){const _0x55b9a3=_0x1dcad0;return await this['_dataLoaderService'][_0x55b9a3(0x21c)](_0x4b2d6e,_0x453837[_0x55b9a3(0x21a)],void 0x0,_0x12d2fa)?(await this[_0x55b9a3(0x203)][_0x55b9a3(0x1fe)](_0x4b2d6e),this[_0x55b9a3(0x215)][_0x55b9a3(0x201)](_0x4b2d6e)):null;}[_0x1dcad0(0x226)](_0xbeaaca,_0x4205ad){const _0x2660e8=_0x1dcad0;let _0x14c00a=this['_injector'][_0x2660e8(0x21f)](_0x36f1fd)[_0x2660e8(0x20f)](_0xbeaaca)[_0x2660e8(0x22d)](_0x16ef84(_0x1671a8=>_0x1671a8[_0x2660e8(0x204)]))[_0x2660e8(0x1fd)](_0x4b6d62=>_0x4205ad(Array[_0x2660e8(0x227)](_0x4b6d62[_0x2660e8(0x20b)]())));return _0x4984cf(_0x14c00a);}[_0x1dcad0(0x216)](_0x54c9e2){const _0x2d174a=_0x1dcad0;let _0x193cf0=this[_0x2d174a(0x22f)](_0x54c9e2);if(!_0x193cf0)return _0x10ce7d[_0x2d174a(0x237)];let _0x2e7e2f=this[_0x2d174a(0x203)][_0x2d174a(0x217)](_0x193cf0);return(_0x2e7e2f==null?void 0x0:_0x2e7e2f[_0x2d174a(0x20a)][_0x2d174a(0x1ef)])??_0x10ce7d[_0x2d174a(0x237)];}['flush'](_0x4cd53e,_0x1d79ea={}){const _0x57042d=_0x1dcad0;let _0x15c859=this[_0x57042d(0x22f)](_0x4cd53e);if(!_0x15c859)return Promise[_0x57042d(0x221)](Error(_0x57042d(0x212)));let _0x1133d0=this[_0x57042d(0x203)][_0x57042d(0x217)](_0x15c859);if(!_0x1133d0)return Promise[_0x57042d(0x221)](Error('[FCollaboration]:\x20Unit\x20\x22'+_0x15c859+_0x57042d(0x211)));let _0x2e00b2=_0x1133d0[_0x57042d(0x20a)][_0x57042d(0x1ef)];if(_0x2e00b2===_0x10ce7d[_0x57042d(0x1fa)])return Promise[_0x57042d(0x202)]();let _0x4806b5=b(_0x15c859,_0x2e00b2);if(_0x4806b5)return Promise[_0x57042d(0x221)](_0x4806b5);let _0x13ffa5=_0x1d79ea[_0x57042d(0x20c)]??0x7530;return new Promise((_0x2a225a,_0xc1769e)=>{const _0x475b58=_0x57042d;let _0x3dc3e2=!0x1,_0x4d1025=null,_0x51304e=setTimeout(()=>{const _0x5663f5=_0x1b85;_0x3dc3e2=!0x0,_0x4d1025==null||_0x4d1025['unsubscribe'](),_0xc1769e(Error(_0x5663f5(0x1f5)+_0x15c859+'\x22\x20after\x20'+_0x13ffa5+'ms.'));},_0x13ffa5),_0x13d332=()=>{const _0x14841=_0x1b85;_0x3dc3e2=!0x0,clearTimeout(_0x51304e),_0x4d1025==null||_0x4d1025[_0x14841(0x222)]();};_0x4d1025=_0x1133d0[_0x475b58(0x223)][_0x475b58(0x1fd)](_0x289175=>{const _0x58a519=_0x475b58;if(_0x3dc3e2)return;if(_0x289175===_0x10ce7d[_0x58a519(0x1fa)]){_0x13d332(),_0x2a225a();return;}let _0x2bce7b=b(_0x15c859,_0x289175);_0x2bce7b&&(_0x13d332(),_0xc1769e(_0x2bce7b));});});}[_0x1dcad0(0x22f)](_0x4686cd){const _0x178d30=_0x1dcad0;var _0x52c8c9;return _0x4686cd||((_0x52c8c9=this[_0x178d30(0x213)][_0x178d30(0x205)]())==null?void 0x0:_0x52c8c9[_0x178d30(0x23a)]());}};y=v([_(0x1,_0x132184(_0x2b2ef3)),_(0x2,_0xac809c),_(0x3,_0x132184(_0x1072cd)),_(0x4,_0x132184(_0x25f8f1))],y);function b(_0x42e009,_0x22ff56){const _0x1ce74f=_0x1dcad0;return _0x22ff56===_0x10ce7d[_0x1ce74f(0x1f3)]||_0x22ff56===_0x10ce7d[_0x1ce74f(0x237)]?Error(_0x1ce74f(0x1ee)+_0x42e009+_0x1ce74f(0x23e)+_0x22ff56+'.'):null;}var x=class extends _0x1b630f{['_initialize'](_0x512a7e){const _0x5779cc=_0x1dcad0;let _0x1aa43c=_0x512a7e[_0x5779cc(0x21f)](_0x25f8f1);this[_0x5779cc(0x200)](this[_0x5779cc(0x225)](this[_0x5779cc(0x21b)][_0x5779cc(0x235)],()=>{const _0x3e676d=_0x5779cc;let _0x2c4d0f=new _0x5e8abf(),_0x461be2=_0x1aa43c[_0x3e676d(0x22c)][_0x3e676d(0x1fd)](_0x222141=>{const _0x1ad205=_0x3e676d;let _0x107cbc=_0x222141[_0x1ad205(0x223)]['subscribe'](_0x35623b=>{const _0x56004e=_0x1ad205;let _0x33f4c6={'unitId':_0x222141['unitID'],'status':_0x35623b};this['fireEvent'](this[_0x56004e(0x21b)][_0x56004e(0x235)],_0x33f4c6);});_0x2c4d0f[_0x1ad205(0x220)](_0x4984cf(_0x107cbc));});return _0x2c4d0f['add'](_0x4984cf(_0x461be2)),_0x2c4d0f;}));}[_0x1dcad0(0x21d)](){const _0x26ceee=_0x1dcad0;return this[_0x26ceee(0x1f6)]['createInstance'](y,{'getWorkbook':_0x318104=>this['getWorkbook'](_0x318104),'getDocument':_0x5c5f2c=>this[_0x26ceee(0x232)](_0x5c5f2c),'getPresentation':_0x416f24=>this[_0x26ceee(0x1fb)](_0x416f24),'getBase':_0x2cd8eb=>this[_0x26ceee(0x1fc)](_0x2cd8eb),'getBoard':_0x52416a=>this['getBoard'](_0x52416a),'getPdf':_0x2b4fa4=>this[_0x26ceee(0x201)](_0x2b4fa4)});}[_0x1dcad0(0x20d)](_0x459eba,_0x549968,_0x30b626){const _0x2ec6ce=_0x1dcad0;return this[_0x2ec6ce(0x1f6)][_0x2ec6ce(0x21f)](_0x1072cd)[_0x2ec6ce(0x21c)](_0x459eba,_0x549968,_0x30b626);}[_0x1dcad0(0x239)](_0x1ac731,_0x1d2007,_0x385d80){const _0x46d0d9=_0x1dcad0;return this[_0x46d0d9(0x1f6)]['get'](_0x1072cd)[_0x46d0d9(0x210)](_0x1ac731,_0x1d2007,_0x385d80);}};_0x1b630f[_0x1dcad0(0x214)](x);export{y as FCollaboration};