@univerjs-pro/collaboration-client 1.0.0-beta.0 → 1.0.0-beta.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 (87) 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/facade/f-collaboration.d.ts +14 -0
  65. package/lib/types/services/undoredo/collaborative-undoredo.service.d.ts +2 -2
  66. package/lib/umd/facade.js +1 -1
  67. package/lib/umd/index.js +1 -1
  68. package/lib/umd/locale/ar-SA.js +1 -1
  69. package/lib/umd/locale/ca-ES.js +1 -1
  70. package/lib/umd/locale/de-DE.js +1 -1
  71. package/lib/umd/locale/en-US.js +1 -1
  72. package/lib/umd/locale/es-ES.js +1 -1
  73. package/lib/umd/locale/fa-IR.js +1 -1
  74. package/lib/umd/locale/fr-FR.js +1 -1
  75. package/lib/umd/locale/id-ID.js +1 -1
  76. package/lib/umd/locale/it-IT.js +1 -1
  77. package/lib/umd/locale/ja-JP.js +1 -1
  78. package/lib/umd/locale/ko-KR.js +1 -1
  79. package/lib/umd/locale/pl-PL.js +1 -1
  80. package/lib/umd/locale/pt-BR.js +1 -1
  81. package/lib/umd/locale/ru-RU.js +1 -1
  82. package/lib/umd/locale/sk-SK.js +1 -1
  83. package/lib/umd/locale/vi-VN.js +1 -1
  84. package/lib/umd/locale/zh-CN.js +1 -1
  85. package/lib/umd/locale/zh-HK.js +1 -1
  86. package/lib/umd/locale/zh-TW.js +1 -1
  87. package/package.json +15 -15
@@ -1 +1 @@
1
- const _0x3c9ff4=_0x17c1;function _0x316c(){const _0x1afdae=['已同步','協作文件數量超過限制,您的編輯將暫存於本機。','您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。','連線失敗,請檢查您的網路。','認證錯誤','加入協作失敗,請稍後重試,您的編輯將暫存於本機。','點擊重新連線','同步中...','由於協作房間已關閉,編輯權限已被收回。','4516000paqsTC','加入協作失敗,您的編輯將暫存於本機。','49784JUwWJi','協作衝突','26706NhWyFe','23967CnKvUB','6voOLdk','639514MgYDtE','正在擷取伺服器資料...','6CzKIpm','此文件協作人數已達上限,您的編輯將暫存於本機。','7838215YjipGa','12065648cgBsPz','已離線,編輯將儲存在本機','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','沒有協作權限,您的編輯將暫存於本機。','1910ZNOxMb','編輯衝突','您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。','伺服器未回應協作請求,您的編輯將儲存在本機。','本機檔案'];_0x316c=function(){return _0x1afdae;};return _0x316c();}(function(_0x463381,_0x2a703f){const _0x10e0c7=_0x17c1,_0x1ebde4=_0x463381();while(!![]){try{const _0x2c4531=parseInt(_0x10e0c7(0x1f7))/0x1+parseInt(_0x10e0c7(0x1f9))/0x2*(parseInt(_0x10e0c7(0x1f4))/0x3)+parseInt(_0x10e0c7(0x1f2))/0x4+-parseInt(_0x10e0c7(0x1fb))/0x5*(parseInt(_0x10e0c7(0x1f6))/0x6)+parseInt(_0x10e0c7(0x1fc))/0x7+parseInt(_0x10e0c7(0x1f0))/0x8+-parseInt(_0x10e0c7(0x1f5))/0x9*(parseInt(_0x10e0c7(0x200))/0xa);if(_0x2c4531===_0x2a703f)break;else _0x1ebde4['push'](_0x1ebde4['shift']());}catch(_0x668914){_0x1ebde4['push'](_0x1ebde4['shift']());}}}(_0x316c,0xd96ba));const e={'collaboration-client':{'collabClient':{'tooltip':{'reconnect':_0x3c9ff4(0x20b)}},'collabStatus':{'fetchMiss':_0x3c9ff4(0x1f8),'conflict':_0x3c9ff4(0x201),'notCollab':_0x3c9ff4(0x204),'synced':_0x3c9ff4(0x205),'syncing':_0x3c9ff4(0x20c),'offline':_0x3c9ff4(0x1fd)},'session':{'connection-failed':_0x3c9ff4(0x208),'will-retry':'連線失敗,將在稍後重試連線。','room-full':_0x3c9ff4(0x1fa),'join-failed':_0x3c9ff4(0x20a),'room-not-exists':_0x3c9ff4(0x1f1),'room-permission-denied':_0x3c9ff4(0x1ff),'room-cnt-exceeds':_0x3c9ff4(0x206),'collaboration-timeout':_0x3c9ff4(0x203)},'conflict':{'title':_0x3c9ff4(0x1f3),'content':'您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。'},'permission':{'title':_0x3c9ff4(0x209),'content':_0x3c9ff4(0x207)},'collaboration':{'single-unit':{'warning':_0x3c9ff4(0x1fe)},'closeRoom':_0x3c9ff4(0x20d)},'auth':{'needGotoLoginAlert':_0x3c9ff4(0x202)}}};function _0x17c1(_0x451eeb,_0x20aa84){_0x451eeb=_0x451eeb-0x1f0;const _0x316c32=_0x316c();let _0x17c166=_0x316c32[_0x451eeb];return _0x17c166;}module['exports']=e;
1
+ const _0x19155f=_0x5530;(function(_0xc20363,_0x2dc458){const _0xa24a8c=_0x5530,_0x1d1204=_0xc20363();while(!![]){try{const _0x375346=-parseInt(_0xa24a8c(0x14f))/0x1*(-parseInt(_0xa24a8c(0x158))/0x2)+-parseInt(_0xa24a8c(0x161))/0x3*(-parseInt(_0xa24a8c(0x14a))/0x4)+parseInt(_0xa24a8c(0x160))/0x5+-parseInt(_0xa24a8c(0x15e))/0x6*(-parseInt(_0xa24a8c(0x157))/0x7)+-parseInt(_0xa24a8c(0x159))/0x8+-parseInt(_0xa24a8c(0x155))/0x9*(-parseInt(_0xa24a8c(0x14d))/0xa)+-parseInt(_0xa24a8c(0x148))/0xb*(parseInt(_0xa24a8c(0x15c))/0xc);if(_0x375346===_0x2dc458)break;else _0x1d1204['push'](_0x1d1204['shift']());}catch(_0x374119){_0x1d1204['push'](_0x1d1204['shift']());}}}(_0x8a28,0xe8340));const e={'collaboration-client':{'collabClient':{'tooltip':{'reconnect':'點擊重新連線'}},'collabStatus':{'fetchMiss':_0x19155f(0x15d),'conflict':_0x19155f(0x166),'notCollab':_0x19155f(0x15b),'synced':_0x19155f(0x151),'syncing':'同步中...','offline':_0x19155f(0x150)},'session':{'connection-failed':_0x19155f(0x164),'will-retry':_0x19155f(0x14b),'room-full':_0x19155f(0x15a),'join-failed':_0x19155f(0x156),'room-not-exists':_0x19155f(0x165),'room-permission-denied':_0x19155f(0x14e),'room-cnt-exceeds':_0x19155f(0x152),'collaboration-timeout':_0x19155f(0x153)},'conflict':{'title':_0x19155f(0x162),'content':_0x19155f(0x15f)},'permission':{'title':_0x19155f(0x14c),'content':_0x19155f(0x163)},'collaboration':{'single-unit':{'warning':_0x19155f(0x167)},'closeRoom':_0x19155f(0x154)},'auth':{'needGotoLoginAlert':'您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。'}}};function _0x8a28(){const _0x1a6e87=['協作文件數量超過限制,您的編輯將暫存於本機。','伺服器未回應協作請求,您的編輯將儲存在本機。','由於協作房間已關閉,編輯權限已被收回。','908577kyhlBd','加入協作失敗,請稍後重試,您的編輯將暫存於本機。','9023PAWHvS','622712YvARxb','10663120ZNMCVz','此文件協作人數已達上限,您的編輯將暫存於本機。','本機檔案','168SuJBDC','正在擷取伺服器資料...','4458mUWWni','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','4749340jxbOfi','4788849nEbkCu','協作衝突','您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。','連線失敗,請檢查您的網路。','加入協作失敗,您的編輯將暫存於本機。','編輯衝突','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','2412949vrugQL','exports','4VUYSQS','連線失敗,將在稍後重試連線。','認證錯誤','60obibYT','沒有協作權限,您的編輯將暫存於本機。','4JcslCl','已離線,編輯將儲存在本機','已同步'];_0x8a28=function(){return _0x1a6e87;};return _0x8a28();}function _0x5530(_0x1ed554,_0x3b57f0){_0x1ed554=_0x1ed554-0x148;const _0x8a28b3=_0x8a28();let _0x553076=_0x8a28b3[_0x1ed554];return _0x553076;}module[_0x19155f(0x149)]=e;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x3c058e=_0x808b;(function(_0x261344,_0x2e539b){const _0x1dad5a=_0x808b,_0x3181ca=_0x261344();while(!![]){try{const _0x4cec57=-parseInt(_0x1dad5a(0x87))/0x1+-parseInt(_0x1dad5a(0x9b))/0x2*(-parseInt(_0x1dad5a(0x98))/0x3)+-parseInt(_0x1dad5a(0x95))/0x4+-parseInt(_0x1dad5a(0x99))/0x5+-parseInt(_0x1dad5a(0x7d))/0x6+parseInt(_0x1dad5a(0x72))/0x7+parseInt(_0x1dad5a(0x78))/0x8;if(_0x4cec57===_0x2e539b)break;else _0x3181ca['push'](_0x3181ca['shift']());}catch(_0x172db0){_0x3181ca['push'](_0x3181ca['shift']());}}}(_0x2445,0x6ac3c));import{CollaborationController as _0x5908f7,CollaborationStatus as _0x8793a2,DataLoaderService as _0x5768b5,MemberService as _0xdc3371}from'@univerjs-pro/collaboration-client';import{FBase as _0x4ff620,FEnum as _0x1316b0,FEventName as _0x1ccac0,FUniver as _0x53a7ce}from'@univerjs/core/facade';import{DisposableCollection as _0x5e396e,IUniverInstanceService as _0x4a1953,Inject as _0x5e6672,Injector as _0x4e94fa,toDisposable as _0x1b51cb}from'@univerjs/core';import{SnapshotService as _0x5035fd}from'@univerjs-pro/collaboration';import{switchMap as _0x5573bd}from'rxjs';var h=class extends _0x1316b0{get['CollaborationStatus'](){return _0x8793a2;}};_0x1316b0[_0x3c058e(0x89)](h);var g=class extends _0x1ccac0{get[_0x3c058e(0xa9)](){const _0x20b44e=_0x3c058e;return _0x20b44e(0xa9);}};_0x1ccac0[_0x3c058e(0x89)](g);function _(_0x173085,_0x41a0c1){return function(_0x2b8344,_0x5a2201){_0x41a0c1(_0x2b8344,_0x5a2201,_0x173085);};}function v(_0x12e879,_0x306bfc,_0x5bf867,_0x5bcd06){const _0x2b52e9=_0x3c058e;var _0x17949f=arguments[_0x2b52e9(0x73)],_0x21fa5f=_0x17949f<0x3?_0x306bfc:_0x5bcd06===null?_0x5bcd06=Object['getOwnPropertyDescriptor'](_0x306bfc,_0x5bf867):_0x5bcd06,_0x3cc34e;if(typeof Reflect==_0x2b52e9(0x85)&&typeof Reflect[_0x2b52e9(0x94)]==_0x2b52e9(0xab))_0x21fa5f=Reflect[_0x2b52e9(0x94)](_0x12e879,_0x306bfc,_0x5bf867,_0x5bcd06);else{for(var _0x436356=_0x12e879[_0x2b52e9(0x73)]-0x1;_0x436356>=0x0;_0x436356--)(_0x3cc34e=_0x12e879[_0x436356])&&(_0x21fa5f=(_0x17949f<0x3?_0x3cc34e(_0x21fa5f):_0x17949f>0x3?_0x3cc34e(_0x306bfc,_0x5bf867,_0x21fa5f):_0x3cc34e(_0x306bfc,_0x5bf867))||_0x21fa5f);}return _0x17949f>0x3&&_0x21fa5f&&Object[_0x2b52e9(0x6f)](_0x306bfc,_0x5bf867,_0x21fa5f),_0x21fa5f;}function _0x808b(_0x31d541,_0x4e95d9){_0x31d541=_0x31d541-0x6e;const _0x2445ba=_0x2445();let _0x808bce=_0x2445ba[_0x31d541];return _0x808bce;}let y=class extends _0x4ff620{constructor(_0x44a198,_0x480e79,_0x7ff10c,_0x18e4ae,_0x527e5f){const _0x13730c=_0x3c058e;super(),this[_0x13730c(0x86)]=_0x44a198,this[_0x13730c(0x84)]=_0x480e79,this['_univerInstanceService']=_0x7ff10c,this[_0x13730c(0x6e)]=_0x18e4ae,this[_0x13730c(0xa4)]=_0x527e5f;}async['loadSheetAsync'](_0x24aad4,_0x3e4072){const _0x55dedc=_0x3c058e;return await this['_snapshotService']['loadSheet'](_0x24aad4,0x0,_0x3e4072)?(await this[_0x55dedc(0xa4)][_0x55dedc(0x8e)](_0x24aad4),this['_handler'][_0x55dedc(0x83)](_0x24aad4)):null;}async[_0x3c058e(0x9a)](_0x30e2d6,_0x1bc4e2){const _0x43c5e9=_0x3c058e;return await this[_0x43c5e9(0x6e)][_0x43c5e9(0x88)](_0x30e2d6,0x0,_0x1bc4e2)?(await this[_0x43c5e9(0xa4)][_0x43c5e9(0x8e)](_0x30e2d6),this[_0x43c5e9(0x86)][_0x43c5e9(0x9f)](_0x30e2d6)):null;}async[_0x3c058e(0xa2)](_0x4343d5,_0x462f59){const _0xf7f06c=_0x3c058e;return await this[_0xf7f06c(0x6e)][_0xf7f06c(0x96)](_0x4343d5,0x0,_0x462f59)?(await this[_0xf7f06c(0xa4)]['readyForCollab'](_0x4343d5),this['_handler'][_0xf7f06c(0x80)](_0x4343d5)):null;}async[_0x3c058e(0xa6)](_0x358d8e,_0x20b9e7){const _0x1a210d=_0x3c058e;return await this['_snapshotService'][_0x1a210d(0x90)](_0x358d8e,0x0,_0x20b9e7)?(await this[_0x1a210d(0xa4)][_0x1a210d(0x8e)](_0x358d8e),this[_0x1a210d(0x86)]['getPresentation'](_0x358d8e)):null;}async['loadBoardAsync'](_0x114f89,_0x3fb0b0){const _0x19e852=_0x3c058e;return await this['_snapshotService'][_0x19e852(0x71)](_0x114f89,0x0,_0x3fb0b0)?(await this[_0x19e852(0xa4)][_0x19e852(0x8e)](_0x114f89),this[_0x19e852(0x86)][_0x19e852(0x81)](_0x114f89)):null;}[_0x3c058e(0x9c)](_0xf39000,_0xcc8e40){const _0x35eba9=_0x3c058e;return _0x1b51cb(this[_0x35eba9(0x84)][_0x35eba9(0xa1)](_0xdc3371)[_0x35eba9(0xa7)](_0xf39000)['pipe'](_0x5573bd(_0x5cc289=>_0x5cc289[_0x35eba9(0x75)]))[_0x35eba9(0xa0)](_0x5c9d05=>_0xcc8e40(Array[_0x35eba9(0xa3)](_0x5c9d05['values']()))));}[_0x3c058e(0x70)](_0x37d9c0){const _0x215022=_0x3c058e;let _0x514dae=this[_0x215022(0x7c)](_0x37d9c0);if(!_0x514dae)return _0x8793a2[_0x215022(0xb0)];let _0x21da6e=this[_0x215022(0xa4)][_0x215022(0x79)](_0x514dae);return(_0x21da6e==null?void 0x0:_0x21da6e['state'][_0x215022(0x7a)])??_0x8793a2[_0x215022(0xb0)];}[_0x3c058e(0x9d)](_0x50c6e5,_0x5efd0c={}){const _0x350846=_0x3c058e;let _0x5d79e9=this[_0x350846(0x7c)](_0x50c6e5);if(!_0x5d79e9)return Promise['reject'](Error('[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.'));let _0x3f2759=this['_collaborationController'][_0x350846(0x79)](_0x5d79e9);if(!_0x3f2759)return Promise[_0x350846(0x8d)](Error('[FCollaboration]:\x20Unit\x20\x22'+_0x5d79e9+_0x350846(0x76)));let _0x1e3da8=_0x3f2759['state']['status'];if(_0x1e3da8===_0x8793a2[_0x350846(0xad)])return Promise[_0x350846(0x74)]();let _0x45763a=b(_0x5d79e9,_0x1e3da8);if(_0x45763a)return Promise[_0x350846(0x8d)](_0x45763a);let _0x57e995=_0x5efd0c[_0x350846(0xaa)]??0x7530;return new Promise((_0x1c373b,_0x29e898)=>{const _0x5963af=_0x350846;let _0xe22d18=!0x1,_0x461100=null,_0x56bd98=setTimeout(()=>{const _0xa87a36=_0x808b;_0xe22d18=!0x0,_0x461100==null||_0x461100[_0xa87a36(0xb1)](),_0x29e898(Error(_0xa87a36(0x91)+_0x5d79e9+_0xa87a36(0x82)+_0x57e995+'ms.'));},_0x57e995),_0x3e8ef5=()=>{const _0x2e58e0=_0x808b;_0xe22d18=!0x0,clearTimeout(_0x56bd98),_0x461100==null||_0x461100[_0x2e58e0(0xb1)]();};_0x461100=_0x3f2759['status$'][_0x5963af(0xa0)](_0x2ecafb=>{if(_0xe22d18)return;if(_0x2ecafb===_0x8793a2['SYNCED']){_0x3e8ef5(),_0x1c373b();return;}let _0x5eeeb2=b(_0x5d79e9,_0x2ecafb);_0x5eeeb2&&(_0x3e8ef5(),_0x29e898(_0x5eeeb2));});});}[_0x3c058e(0x7c)](_0x2b87c3){const _0x3c4484=_0x3c058e;var _0x189ad5;return _0x2b87c3||((_0x189ad5=this[_0x3c4484(0x8b)][_0x3c4484(0x8f)]())==null?void 0x0:_0x189ad5[_0x3c4484(0x7f)]());}};y=v([_(0x1,_0x5e6672(_0x4e94fa)),_(0x2,_0x4a1953),_(0x3,_0x5e6672(_0x5035fd)),_(0x4,_0x5e6672(_0x5908f7))],y);function b(_0x591752,_0x28d700){const _0x49aba6=_0x3c058e;return _0x28d700===_0x8793a2[_0x49aba6(0x93)]||_0x28d700===_0x8793a2[_0x49aba6(0xb0)]?Error(_0x49aba6(0xa5)+_0x591752+_0x49aba6(0x9e)+_0x28d700+'.'):null;}var x=class extends _0x53a7ce{[_0x3c058e(0x97)](_0x5abcaf){const _0x57540b=_0x3c058e;let _0x4aaf1d=_0x5abcaf[_0x57540b(0xa1)](_0x5908f7);this['disposeWithMe'](this[_0x57540b(0xac)](this[_0x57540b(0x7e)]['CollaborationStatusChanged'],()=>{const _0x1ee9be=_0x57540b;let _0x1cc08e=new _0x5e396e(),_0xfab0c=_0x4aaf1d['entityInit$'][_0x1ee9be(0xa0)](_0x4c16f2=>{const _0x3a15e3=_0x1ee9be;let _0x2a0832=_0x4c16f2[_0x3a15e3(0xa8)][_0x3a15e3(0xa0)](_0x49f776=>{const _0x3dfb95=_0x3a15e3;let _0x3239b7={'unitId':_0x4c16f2[_0x3dfb95(0x8a)],'status':_0x49f776};this[_0x3dfb95(0xae)](this[_0x3dfb95(0x7e)]['CollaborationStatusChanged'],_0x3239b7);});_0x1cc08e[_0x3a15e3(0xaf)](_0x1b51cb(_0x2a0832));});return _0x1cc08e[_0x1ee9be(0xaf)](_0x1b51cb(_0xfab0c)),_0x1cc08e;}));}[_0x3c058e(0x8c)](){const _0x4eb374=_0x3c058e;return this[_0x4eb374(0x84)]['createInstance'](y,{'getWorkbook':_0x2ae41a=>this[_0x4eb374(0x83)](_0x2ae41a),'getDocument':_0xe9fe78=>this[_0x4eb374(0x9f)](_0xe9fe78),'getPresentation':_0xc17622=>this[_0x4eb374(0x7b)](_0xc17622),'getBase':_0x53c90e=>this['getBase'](_0x53c90e),'getBoard':_0x2597cd=>this[_0x4eb374(0x81)](_0x2597cd)});}['loadServerUnit'](_0x5d6c18,_0x45c93f,_0x64e926){const _0xf185f4=_0x3c058e;return this[_0xf185f4(0x84)]['get'](_0x5768b5)[_0xf185f4(0x92)](_0x5d6c18,_0x45c93f,_0x64e926);}['loadServerUnitOfRevision'](_0x34b310,_0x3ae6d5,_0x12ef66){const _0x4d896a=_0x3c058e;return this[_0x4d896a(0x84)][_0x4d896a(0xa1)](_0x5768b5)[_0x4d896a(0x77)](_0x34b310,_0x3ae6d5,_0x12ef66);}};_0x53a7ce['extend'](x);function _0x2445(){const _0x14e813=['from','_collaborationController','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','loadSlideAsync','waitForRoom$','status$','CollaborationStatusChanged','timeout','function','registerEventHandler','SYNCED','fireEvent','add','NOT_COLLAB','unsubscribe','_snapshotService','defineProperty','getCollaborationStatus','loadBoard','3234315RtjgkD','length','resolve','members$','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','loadUnitOfRevision','5876768uNiRtg','getCollabEntity','status','getPresentation','_resolveUnitId','3618162iTPOLd','Event','getUnitId','getBase','getBoard','\x22\x20after\x20','getWorkbook','_injector','object','_handler','62710DhLigo','loadDoc','extend','unitID','_univerInstanceService','getCollaboration','reject','readyForCollab','getFocusedUnit','loadSlide','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','loadUnit','CONFLICT','decorate','2520388CMIOFx','loadBase','_initialize','498HLVniM','204235tcPpIu','loadDocAsync','6956ZfShGk','subscribeCollaborators','flush','\x22\x20while\x20collaboration\x20status\x20is\x20','getDocument','subscribe','get','loadBaseAsync'];_0x2445=function(){return _0x14e813;};return _0x2445();}export{y as FCollaboration};
1
+ const _0x2f007a=_0x43a2;function _0x57cb(){const _0x2419c5=['[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','loadBoard','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','values','status$','extend','CONFLICT','waitForRoom$','_resolveUnitId','reject','loadPdfAsync','length','decorate','SYNCED','subscribeCollaborators','loadBoardAsync','554055SVohns','pipe','loadUnitOfRevision','unitID','NOT_COLLAB','fireEvent','entityInit$','object','resolve','get','createInstance','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','Event','state','114587dLMBvp','getDocument','getCollaborationStatus','141921wzTWrW','getBase','unsubscribe','_snapshotService','getOwnPropertyDescriptor','getWorkbook','subscribe','members$','function','_univerInstanceService','loadDocAsync','loadSheet','readyForCollab','loadSheetAsync','flush','_collaborationController','1505UKQxkw','CollaborationStatusChanged','loadSlideAsync','add','_handler','CollaborationStatus','936IgAJom','getPdf','getFocusedUnit','ms.','getPresentation','loadDoc','loadPdf','status','defineProperty','loadUnit','442476YbUeLI','120544PeFbkt','_injector','loadSlide','loadServerUnit','16304yNqSED'];_0x57cb=function(){return _0x2419c5;};return _0x57cb();}(function(_0xbb49f2,_0x24b7dc){const _0x3a3fda=_0x43a2,_0x4c5df8=_0xbb49f2();while(!![]){try{const _0x373b99=-parseInt(_0x3a3fda(0xb5))/0x1+parseInt(_0x3a3fda(0x96))/0x2+-parseInt(_0x3a3fda(0xb8))/0x3+parseInt(_0x3a3fda(0x91))/0x4+parseInt(_0x3a3fda(0xa7))/0x5+parseInt(_0x3a3fda(0x87))/0x6*(parseInt(_0x3a3fda(0x81))/0x7)+parseInt(_0x3a3fda(0x92))/0x8;if(_0x373b99===_0x24b7dc)break;else _0x4c5df8['push'](_0x4c5df8['shift']());}catch(_0xb7d928){_0x4c5df8['push'](_0x4c5df8['shift']());}}}(_0x57cb,0x1c648));import{CollaborationController as _0x31e156,CollaborationStatus as _0x7de9db,DataLoaderService as _0x2975e8,MemberService as _0x1d9f21}from'@univerjs-pro/collaboration-client';import{FBase as _0x4ce142,FEnum as _0x245e79,FEventName as _0x584ad6,FUniver as _0x42d5d6}from'@univerjs/core/facade';import{DisposableCollection as _0x455eb1,IUniverInstanceService as _0x39a890,Inject as _0x2be3f7,Injector as _0x5363ad,toDisposable as _0x103e1b}from'@univerjs/core';import{SnapshotService as _0x56072d}from'@univerjs-pro/collaboration';import{switchMap as _0x438025}from'rxjs';var h=class extends _0x245e79{get[_0x2f007a(0x86)](){return _0x7de9db;}};_0x245e79['extend'](h);var g=class extends _0x584ad6{get['CollaborationStatusChanged'](){const _0x229433=_0x2f007a;return _0x229433(0x82);}};_0x584ad6[_0x2f007a(0x9c)](g);function _(_0x34a4be,_0x437587){return function(_0x4d8413,_0x2dc153){_0x437587(_0x4d8413,_0x2dc153,_0x34a4be);};}function v(_0x7f67c5,_0x35984c,_0x4e099f,_0x3269c7){const _0x5b50b4=_0x2f007a;var _0x36a8f1=arguments[_0x5b50b4(0xa2)],_0x3410bd=_0x36a8f1<0x3?_0x35984c:_0x3269c7===null?_0x3269c7=Object[_0x5b50b4(0xbc)](_0x35984c,_0x4e099f):_0x3269c7,_0x576525;if(typeof Reflect==_0x5b50b4(0xae)&&typeof Reflect[_0x5b50b4(0xa3)]==_0x5b50b4(0x79))_0x3410bd=Reflect['decorate'](_0x7f67c5,_0x35984c,_0x4e099f,_0x3269c7);else{for(var _0x4ae292=_0x7f67c5[_0x5b50b4(0xa2)]-0x1;_0x4ae292>=0x0;_0x4ae292--)(_0x576525=_0x7f67c5[_0x4ae292])&&(_0x3410bd=(_0x36a8f1<0x3?_0x576525(_0x3410bd):_0x36a8f1>0x3?_0x576525(_0x35984c,_0x4e099f,_0x3410bd):_0x576525(_0x35984c,_0x4e099f))||_0x3410bd);}return _0x36a8f1>0x3&&_0x3410bd&&Object[_0x5b50b4(0x8f)](_0x35984c,_0x4e099f,_0x3410bd),_0x3410bd;}let y=class extends _0x4ce142{constructor(_0x21e298,_0x5c66f9,_0x2e0e48,_0x19877d,_0x4512f7){const _0x1945cb=_0x2f007a;super(),this[_0x1945cb(0x85)]=_0x21e298,this['_injector']=_0x5c66f9,this['_univerInstanceService']=_0x2e0e48,this['_snapshotService']=_0x19877d,this[_0x1945cb(0x80)]=_0x4512f7;}async[_0x2f007a(0x7e)](_0xaf7b73,_0x2ac168){const _0xe8321b=_0x2f007a;return await this[_0xe8321b(0xbb)][_0xe8321b(0x7c)](_0xaf7b73,0x0,_0x2ac168)?(await this[_0xe8321b(0x80)][_0xe8321b(0x7d)](_0xaf7b73),this[_0xe8321b(0x85)]['getWorkbook'](_0xaf7b73)):null;}async[_0x2f007a(0x7b)](_0x14a5f1,_0x46789f){const _0x32f9a3=_0x2f007a;return await this['_snapshotService'][_0x32f9a3(0x8c)](_0x14a5f1,0x0,_0x46789f)?(await this[_0x32f9a3(0x80)][_0x32f9a3(0x7d)](_0x14a5f1),this[_0x32f9a3(0x85)][_0x32f9a3(0xb6)](_0x14a5f1)):null;}async['loadBaseAsync'](_0x2999ed,_0x5bef27){const _0x164f28=_0x2f007a;return await this[_0x164f28(0xbb)]['loadBase'](_0x2999ed,0x0,_0x5bef27)?(await this[_0x164f28(0x80)][_0x164f28(0x7d)](_0x2999ed),this[_0x164f28(0x85)][_0x164f28(0xb9)](_0x2999ed)):null;}async[_0x2f007a(0x83)](_0x45ed8e,_0x1fc99d){const _0x227d4c=_0x2f007a;return await this[_0x227d4c(0xbb)][_0x227d4c(0x94)](_0x45ed8e,0x0,_0x1fc99d)?(await this[_0x227d4c(0x80)][_0x227d4c(0x7d)](_0x45ed8e),this[_0x227d4c(0x85)][_0x227d4c(0x8b)](_0x45ed8e)):null;}async[_0x2f007a(0xa6)](_0x451306,_0x45a319){const _0x1edf99=_0x2f007a;return await this[_0x1edf99(0xbb)][_0x1edf99(0x98)](_0x451306,0x0,_0x45a319)?(await this['_collaborationController'][_0x1edf99(0x7d)](_0x451306),this[_0x1edf99(0x85)]['getBoard'](_0x451306)):null;}async[_0x2f007a(0xa1)](_0x1e2fce,_0x1f82dd){const _0x319881=_0x2f007a;return await this[_0x319881(0xbb)][_0x319881(0x8d)](_0x1e2fce,0x0,_0x1f82dd)?(await this[_0x319881(0x80)][_0x319881(0x7d)](_0x1e2fce),this[_0x319881(0x85)][_0x319881(0x88)](_0x1e2fce)):null;}[_0x2f007a(0xa5)](_0x3ccbde,_0x3bf93a){const _0x2b2fb7=_0x2f007a;return _0x103e1b(this['_injector']['get'](_0x1d9f21)[_0x2b2fb7(0x9e)](_0x3ccbde)[_0x2b2fb7(0xa8)](_0x438025(_0x12ff07=>_0x12ff07[_0x2b2fb7(0x78)]))[_0x2b2fb7(0x77)](_0x5c0f53=>_0x3bf93a(Array['from'](_0x5c0f53[_0x2b2fb7(0x9a)]()))));}[_0x2f007a(0xb7)](_0x1bb3e0){const _0x574d45=_0x2f007a;let _0x2e8d0d=this[_0x574d45(0x9f)](_0x1bb3e0);if(!_0x2e8d0d)return _0x7de9db[_0x574d45(0xab)];let _0x44c3fe=this[_0x574d45(0x80)]['getCollabEntity'](_0x2e8d0d);return(_0x44c3fe==null?void 0x0:_0x44c3fe[_0x574d45(0xb4)][_0x574d45(0x8e)])??_0x7de9db[_0x574d45(0xab)];}[_0x2f007a(0x7f)](_0x39098d,_0x65954e={}){const _0x43caaa=_0x2f007a;let _0x55dc75=this[_0x43caaa(0x9f)](_0x39098d);if(!_0x55dc75)return Promise[_0x43caaa(0xa0)](Error(_0x43caaa(0x99)));let _0x4046c9=this[_0x43caaa(0x80)]['getCollabEntity'](_0x55dc75);if(!_0x4046c9)return Promise[_0x43caaa(0xa0)](Error('[FCollaboration]:\x20Unit\x20\x22'+_0x55dc75+_0x43caaa(0xb2)));let _0x3f223f=_0x4046c9[_0x43caaa(0xb4)]['status'];if(_0x3f223f===_0x7de9db[_0x43caaa(0xa4)])return Promise[_0x43caaa(0xaf)]();let _0x77c245=b(_0x55dc75,_0x3f223f);if(_0x77c245)return Promise[_0x43caaa(0xa0)](_0x77c245);let _0x4f6b33=_0x65954e['timeout']??0x7530;return new Promise((_0x348c42,_0x116bac)=>{const _0x27b77c=_0x43caaa;let _0x38fd70=!0x1,_0x5c7d30=null,_0x3389b1=setTimeout(()=>{const _0x228b4b=_0x43a2;_0x38fd70=!0x0,_0x5c7d30==null||_0x5c7d30['unsubscribe'](),_0x116bac(Error(_0x228b4b(0x97)+_0x55dc75+'\x22\x20after\x20'+_0x4f6b33+_0x228b4b(0x8a)));},_0x4f6b33),_0x5a7c37=()=>{const _0x100082=_0x43a2;_0x38fd70=!0x0,clearTimeout(_0x3389b1),_0x5c7d30==null||_0x5c7d30[_0x100082(0xba)]();};_0x5c7d30=_0x4046c9[_0x27b77c(0x9b)]['subscribe'](_0x115474=>{if(_0x38fd70)return;if(_0x115474===_0x7de9db['SYNCED']){_0x5a7c37(),_0x348c42();return;}let _0x1705ac=b(_0x55dc75,_0x115474);_0x1705ac&&(_0x5a7c37(),_0x116bac(_0x1705ac));});});}[_0x2f007a(0x9f)](_0x2da627){const _0x57eebb=_0x2f007a;var _0x344fb3;return _0x2da627||((_0x344fb3=this[_0x57eebb(0x7a)][_0x57eebb(0x89)]())==null?void 0x0:_0x344fb3['getUnitId']());}};y=v([_(0x1,_0x2be3f7(_0x5363ad)),_(0x2,_0x39a890),_(0x3,_0x2be3f7(_0x56072d)),_(0x4,_0x2be3f7(_0x31e156))],y);function b(_0x5a4df5,_0x14e4db){const _0x55c0ab=_0x2f007a;return _0x14e4db===_0x7de9db[_0x55c0ab(0x9d)]||_0x14e4db===_0x7de9db['NOT_COLLAB']?Error('[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22'+_0x5a4df5+'\x22\x20while\x20collaboration\x20status\x20is\x20'+_0x14e4db+'.'):null;}var x=class extends _0x42d5d6{['_initialize'](_0x59201d){const _0x1368f1=_0x2f007a;let _0x52daa7=_0x59201d['get'](_0x31e156);this['disposeWithMe'](this['registerEventHandler'](this[_0x1368f1(0xb3)][_0x1368f1(0x82)],()=>{const _0x3f2387=_0x1368f1;let _0x3b21c6=new _0x455eb1(),_0x452b66=_0x52daa7[_0x3f2387(0xad)]['subscribe'](_0x1a8851=>{const _0x48948a=_0x3f2387;let _0x207ea1=_0x1a8851['status$'][_0x48948a(0x77)](_0x27c4e1=>{const _0x22e1c2=_0x48948a;let _0x38b6cf={'unitId':_0x1a8851[_0x22e1c2(0xaa)],'status':_0x27c4e1};this[_0x22e1c2(0xac)](this['Event']['CollaborationStatusChanged'],_0x38b6cf);});_0x3b21c6[_0x48948a(0x84)](_0x103e1b(_0x207ea1));});return _0x3b21c6[_0x3f2387(0x84)](_0x103e1b(_0x452b66)),_0x3b21c6;}));}['getCollaboration'](){const _0x4960d0=_0x2f007a;return this[_0x4960d0(0x93)][_0x4960d0(0xb1)](y,{'getWorkbook':_0x4dba61=>this[_0x4960d0(0xbd)](_0x4dba61),'getDocument':_0x2e8376=>this[_0x4960d0(0xb6)](_0x2e8376),'getPresentation':_0x1f9e3a=>this[_0x4960d0(0x8b)](_0x1f9e3a),'getBase':_0x157e68=>this[_0x4960d0(0xb9)](_0x157e68),'getBoard':_0x5049e4=>this['getBoard'](_0x5049e4),'getPdf':_0x59a79e=>this[_0x4960d0(0x88)](_0x59a79e)});}[_0x2f007a(0x95)](_0x372db4,_0xe57b53,_0x4983ed){const _0x5c48a0=_0x2f007a;return this[_0x5c48a0(0x93)][_0x5c48a0(0xb0)](_0x2975e8)[_0x5c48a0(0x90)](_0x372db4,_0xe57b53,_0x4983ed);}['loadServerUnitOfRevision'](_0x3cadff,_0x419c2d,_0x576c4f){const _0x24b762=_0x2f007a;return this[_0x24b762(0x93)][_0x24b762(0xb0)](_0x2975e8)[_0x24b762(0xa9)](_0x3cadff,_0x419c2d,_0x576c4f);}};_0x42d5d6[_0x2f007a(0x9c)](x);function _0x43a2(_0x5e8cfc,_0x5d0fd0){_0x5e8cfc=_0x5e8cfc-0x77;const _0x57cb4a=_0x57cb();let _0x43a21d=_0x57cb4a[_0x5e8cfc];return _0x43a21d;}export{y as FCollaboration};