@univerjs-pro/collaboration-client 1.0.0-beta.0 → 1.0.0-beta.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 (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 +16 -16
@@ -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 _0x33df47=_0x3f6b;(function(_0x2acc74,_0x154621){const _0x54c73a=_0x3f6b,_0x2c15e1=_0x2acc74();while(!![]){try{const _0x1effea=parseInt(_0x54c73a(0x18a))/0x1+-parseInt(_0x54c73a(0x187))/0x2+parseInt(_0x54c73a(0x192))/0x3*(parseInt(_0x54c73a(0x18f))/0x4)+parseInt(_0x54c73a(0x188))/0x5*(parseInt(_0x54c73a(0x194))/0x6)+-parseInt(_0x54c73a(0x18b))/0x7+-parseInt(_0x54c73a(0x184))/0x8*(parseInt(_0x54c73a(0x193))/0x9)+parseInt(_0x54c73a(0x191))/0xa;if(_0x1effea===_0x154621)break;else _0x2c15e1['push'](_0x2c15e1['shift']());}catch(_0x59b469){_0x2c15e1['push'](_0x2c15e1['shift']());}}}(_0xe0e1,0x9e3ce));const e={'collaboration-client':{'collabClient':{'tooltip':{'reconnect':_0x33df47(0x199)}},'collabStatus':{'fetchMiss':'正在擷取伺服器資料...','conflict':'編輯衝突','notCollab':'本機檔案','synced':_0x33df47(0x186),'syncing':_0x33df47(0x18d),'offline':_0x33df47(0x195)},'session':{'connection-failed':_0x33df47(0x18c),'will-retry':_0x33df47(0x196),'room-full':_0x33df47(0x18e),'join-failed':'加入協作失敗,請稍後重試,您的編輯將暫存於本機。','room-not-exists':_0x33df47(0x189),'room-permission-denied':_0x33df47(0x185),'room-cnt-exceeds':_0x33df47(0x183),'collaboration-timeout':_0x33df47(0x197)},'conflict':{'title':'協作衝突','content':_0x33df47(0x198)},'permission':{'title':_0x33df47(0x190),'content':_0x33df47(0x181)},'collaboration':{'single-unit':{'warning':_0x33df47(0x19a)},'closeRoom':_0x33df47(0x182)},'auth':{'needGotoLoginAlert':'您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。'}}};function _0x3f6b(_0x1ca0ea,_0x5d3b35){_0x1ca0ea=_0x1ca0ea-0x181;const _0xe0e1b6=_0xe0e1();let _0x3f6b6d=_0xe0e1b6[_0x1ca0ea];return _0x3f6b6d;}function _0xe0e1(){const _0xb6ed2b=['您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。','由於協作房間已關閉,編輯權限已被收回。','協作文件數量超過限制,您的編輯將暫存於本機。','880xuKwTA','沒有協作權限,您的編輯將暫存於本機。','已同步','593196urBXKa','10350daIFnD','加入協作失敗,您的編輯將暫存於本機。','640903bDzKqy','4709467xacdDj','連線失敗,請檢查您的網路。','同步中...','此文件協作人數已達上限,您的編輯將暫存於本機。','1944660REumLi','認證錯誤','1654830uyAAhL','3phLYtf','5760wNLQMx','1146ioiqKG','已離線,編輯將儲存在本機','連線失敗,將在稍後重試連線。','伺服器未回應協作請求,您的編輯將儲存在本機。','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','點擊重新連線','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。'];_0xe0e1=function(){return _0xb6ed2b;};return _0xe0e1();}module['exports']=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 _0xe42515=_0x182e;function _0x182e(_0x31394a,_0x3dfbf3){_0x31394a=_0x31394a-0x165;const _0xa46442=_0xa464();let _0x182ece=_0xa46442[_0x31394a];return _0x182ece;}(function(_0x34e379,_0x5e0108){const _0x145a38=_0x182e,_0x310258=_0x34e379();while(!![]){try{const _0x5c7cbd=-parseInt(_0x145a38(0x19a))/0x1+-parseInt(_0x145a38(0x187))/0x2+-parseInt(_0x145a38(0x16f))/0x3*(parseInt(_0x145a38(0x18b))/0x4)+parseInt(_0x145a38(0x18a))/0x5+-parseInt(_0x145a38(0x188))/0x6+-parseInt(_0x145a38(0x166))/0x7*(parseInt(_0x145a38(0x16a))/0x8)+-parseInt(_0x145a38(0x171))/0x9*(-parseInt(_0x145a38(0x17d))/0xa);if(_0x5c7cbd===_0x5e0108)break;else _0x310258['push'](_0x310258['shift']());}catch(_0x59c6b7){_0x310258['push'](_0x310258['shift']());}}}(_0xa464,0xdcfbd));import{CollaborationController as _0x46c8d6,CollaborationStatus as _0x35b6c3,DataLoaderService as _0x1d2475,MemberService as _0x560350}from'@univerjs-pro/collaboration-client';import{FBase as _0x254a03,FEnum as _0x49cf55,FEventName as _0x4ba359,FUniver as _0x6fa0ed}from'@univerjs/core/facade';import{DisposableCollection as _0x1a000d,IUniverInstanceService as _0x22c343,Inject as _0x23fc2c,Injector as _0x456951,toDisposable as _0x3a2692}from'@univerjs/core';import{SnapshotService as _0x4fdd53}from'@univerjs-pro/collaboration';import{switchMap as _0x140223}from'rxjs';var h=class extends _0x49cf55{get['CollaborationStatus'](){return _0x35b6c3;}};_0x49cf55[_0xe42515(0x167)](h);var g=class extends _0x4ba359{get['CollaborationStatusChanged'](){const _0x364510=_0xe42515;return _0x364510(0x186);}};_0x4ba359[_0xe42515(0x167)](g);function _(_0x5e161f,_0x128c1b){return function(_0x2f43eb,_0x4917ed){_0x128c1b(_0x2f43eb,_0x4917ed,_0x5e161f);};}function v(_0x2c35b5,_0x11845c,_0x2af50b,_0x5efa99){const _0x4b42ca=_0xe42515;var _0x487225=arguments[_0x4b42ca(0x178)],_0x128c7b=_0x487225<0x3?_0x11845c:_0x5efa99===null?_0x5efa99=Object[_0x4b42ca(0x16c)](_0x11845c,_0x2af50b):_0x5efa99,_0x42dee2;if(typeof Reflect==_0x4b42ca(0x17a)&&typeof Reflect['decorate']=='function')_0x128c7b=Reflect[_0x4b42ca(0x19f)](_0x2c35b5,_0x11845c,_0x2af50b,_0x5efa99);else{for(var _0x4688b5=_0x2c35b5[_0x4b42ca(0x178)]-0x1;_0x4688b5>=0x0;_0x4688b5--)(_0x42dee2=_0x2c35b5[_0x4688b5])&&(_0x128c7b=(_0x487225<0x3?_0x42dee2(_0x128c7b):_0x487225>0x3?_0x42dee2(_0x11845c,_0x2af50b,_0x128c7b):_0x42dee2(_0x11845c,_0x2af50b))||_0x128c7b);}return _0x487225>0x3&&_0x128c7b&&Object[_0x4b42ca(0x17e)](_0x11845c,_0x2af50b,_0x128c7b),_0x128c7b;}let y=class extends _0x254a03{constructor(_0x5bf740,_0x51839b,_0x425041,_0x3c800d,_0x5bbeec){const _0x3fb82f=_0xe42515;super(),this[_0x3fb82f(0x19d)]=_0x5bf740,this[_0x3fb82f(0x196)]=_0x51839b,this[_0x3fb82f(0x195)]=_0x425041,this[_0x3fb82f(0x168)]=_0x3c800d,this['_collaborationController']=_0x5bbeec;}async[_0xe42515(0x18d)](_0x80a708,_0x2514b7){const _0x289891=_0xe42515;return await this[_0x289891(0x168)][_0x289891(0x172)](_0x80a708,0x0,_0x2514b7)?(await this[_0x289891(0x199)]['readyForCollab'](_0x80a708),this[_0x289891(0x19d)][_0x289891(0x176)](_0x80a708)):null;}async['loadDocAsync'](_0x1e877d,_0x2cba3f){const _0x3368e9=_0xe42515;return await this[_0x3368e9(0x168)][_0x3368e9(0x181)](_0x1e877d,0x0,_0x2cba3f)?(await this[_0x3368e9(0x199)]['readyForCollab'](_0x1e877d),this[_0x3368e9(0x19d)][_0x3368e9(0x183)](_0x1e877d)):null;}async['loadBaseAsync'](_0x293e34,_0x478b6e){const _0x239996=_0xe42515;return await this['_snapshotService']['loadBase'](_0x293e34,0x0,_0x478b6e)?(await this[_0x239996(0x199)][_0x239996(0x16e)](_0x293e34),this['_handler']['getBase'](_0x293e34)):null;}async['loadSlideAsync'](_0x3599f6,_0x57d96f){const _0x3e50e1=_0xe42515;return await this[_0x3e50e1(0x168)]['loadSlide'](_0x3599f6,0x0,_0x57d96f)?(await this[_0x3e50e1(0x199)][_0x3e50e1(0x16e)](_0x3599f6),this[_0x3e50e1(0x19d)][_0x3e50e1(0x16b)](_0x3599f6)):null;}async[_0xe42515(0x184)](_0x5f2220,_0x432615){const _0x3ddab8=_0xe42515;return await this[_0x3ddab8(0x168)][_0x3ddab8(0x1a3)](_0x5f2220,0x0,_0x432615)?(await this[_0x3ddab8(0x199)][_0x3ddab8(0x16e)](_0x5f2220),this[_0x3ddab8(0x19d)][_0x3ddab8(0x19c)](_0x5f2220)):null;}async['loadPdfAsync'](_0x3eeae2,_0x2ef38c){const _0x373ce3=_0xe42515;return await this[_0x373ce3(0x168)]['loadPdf'](_0x3eeae2,0x0,_0x2ef38c)?(await this[_0x373ce3(0x199)][_0x373ce3(0x16e)](_0x3eeae2),this[_0x373ce3(0x19d)][_0x373ce3(0x19b)](_0x3eeae2)):null;}[_0xe42515(0x174)](_0x19c580,_0x4fbd24){const _0x2ddbc9=_0xe42515;return _0x3a2692(this['_injector'][_0x2ddbc9(0x189)](_0x560350)['waitForRoom$'](_0x19c580)[_0x2ddbc9(0x1a5)](_0x140223(_0x2e5aa9=>_0x2e5aa9[_0x2ddbc9(0x16d)]))[_0x2ddbc9(0x17f)](_0x5dec43=>_0x4fbd24(Array[_0x2ddbc9(0x19e)](_0x5dec43[_0x2ddbc9(0x169)]()))));}[_0xe42515(0x170)](_0x3c4070){const _0x1ab7f1=_0xe42515;let _0x414419=this[_0x1ab7f1(0x18c)](_0x3c4070);if(!_0x414419)return _0x35b6c3[_0x1ab7f1(0x192)];let _0x193f88=this[_0x1ab7f1(0x199)][_0x1ab7f1(0x1a4)](_0x414419);return(_0x193f88==null?void 0x0:_0x193f88['state']['status'])??_0x35b6c3[_0x1ab7f1(0x192)];}[_0xe42515(0x165)](_0x503118,_0x52ddca={}){const _0x1743f2=_0xe42515;let _0x41c3bc=this[_0x1743f2(0x18c)](_0x503118);if(!_0x41c3bc)return Promise['reject'](Error(_0x1743f2(0x1a2)));let _0xaa00d7=this[_0x1743f2(0x199)][_0x1743f2(0x1a4)](_0x41c3bc);if(!_0xaa00d7)return Promise[_0x1743f2(0x198)](Error('[FCollaboration]:\x20Unit\x20\x22'+_0x41c3bc+_0x1743f2(0x1a7)));let _0x231cbe=_0xaa00d7[_0x1743f2(0x179)]['status'];if(_0x231cbe===_0x35b6c3[_0x1743f2(0x193)])return Promise['resolve']();let _0x36db38=b(_0x41c3bc,_0x231cbe);if(_0x36db38)return Promise[_0x1743f2(0x198)](_0x36db38);let _0x452796=_0x52ddca[_0x1743f2(0x190)]??0x7530;return new Promise((_0x179304,_0x442d81)=>{const _0x2b0884=_0x1743f2;let _0x149d8b=!0x1,_0xa71309=null,_0x5def12=setTimeout(()=>{const _0x2ad6a4=_0x182e;_0x149d8b=!0x0,_0xa71309==null||_0xa71309[_0x2ad6a4(0x191)](),_0x442d81(Error(_0x2ad6a4(0x180)+_0x41c3bc+_0x2ad6a4(0x197)+_0x452796+_0x2ad6a4(0x185)));},_0x452796),_0xe8ba55=()=>{const _0x130590=_0x182e;_0x149d8b=!0x0,clearTimeout(_0x5def12),_0xa71309==null||_0xa71309[_0x130590(0x191)]();};_0xa71309=_0xaa00d7[_0x2b0884(0x1a9)][_0x2b0884(0x17f)](_0x3ed7c7=>{const _0x1d2d17=_0x2b0884;if(_0x149d8b)return;if(_0x3ed7c7===_0x35b6c3[_0x1d2d17(0x193)]){_0xe8ba55(),_0x179304();return;}let _0x1bc338=b(_0x41c3bc,_0x3ed7c7);_0x1bc338&&(_0xe8ba55(),_0x442d81(_0x1bc338));});});}[_0xe42515(0x18c)](_0x248ed3){const _0x331614=_0xe42515;var _0x45309d;return _0x248ed3||((_0x45309d=this['_univerInstanceService'][_0x331614(0x17b)]())==null?void 0x0:_0x45309d[_0x331614(0x173)]());}};function _0xa464(){const _0x1eea44=['[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','loadDoc','add','getDocument','loadBoardAsync','ms.','CollaborationStatusChanged','2638494QrnvGX','1480518WeKlEG','get','1245545BmPHLl','156QABlZi','_resolveUnitId','loadSheetAsync','CONFLICT','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','timeout','unsubscribe','NOT_COLLAB','SYNCED','loadServerUnit','_univerInstanceService','_injector','\x22\x20after\x20','reject','_collaborationController','1240105yoSYuL','getPdf','getBoard','_handler','from','decorate','loadServerUnitOfRevision','getBase','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','loadBoard','getCollabEntity','pipe','_initialize','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','disposeWithMe','status$','flush','21msKtYD','extend','_snapshotService','values','3664672PRqRyE','getPresentation','getOwnPropertyDescriptor','members$','readyForCollab','72363VKUVdi','getCollaborationStatus','9zmYVDc','loadSheet','getUnitId','subscribeCollaborators','getCollaboration','getWorkbook','registerEventHandler','length','state','object','getFocusedUnit','\x22\x20while\x20collaboration\x20status\x20is\x20','57771160LawrlU','defineProperty','subscribe'];_0xa464=function(){return _0x1eea44;};return _0xa464();}y=v([_(0x1,_0x23fc2c(_0x456951)),_(0x2,_0x22c343),_(0x3,_0x23fc2c(_0x4fdd53)),_(0x4,_0x23fc2c(_0x46c8d6))],y);function b(_0x589f82,_0xb1f647){const _0x2cb36c=_0xe42515;return _0xb1f647===_0x35b6c3[_0x2cb36c(0x18e)]||_0xb1f647===_0x35b6c3[_0x2cb36c(0x192)]?Error(_0x2cb36c(0x18f)+_0x589f82+_0x2cb36c(0x17c)+_0xb1f647+'.'):null;}var x=class extends _0x6fa0ed{[_0xe42515(0x1a6)](_0x214d17){const _0x43d337=_0xe42515;let _0x2d112d=_0x214d17[_0x43d337(0x189)](_0x46c8d6);this[_0x43d337(0x1a8)](this[_0x43d337(0x177)](this['Event'][_0x43d337(0x186)],()=>{const _0x3d97da=_0x43d337;let _0x49a7e=new _0x1a000d(),_0x352a14=_0x2d112d['entityInit$'][_0x3d97da(0x17f)](_0x13f0a8=>{const _0x40d3b8=_0x3d97da;let _0x1e0351=_0x13f0a8[_0x40d3b8(0x1a9)][_0x40d3b8(0x17f)](_0x1b959f=>{const _0x3007e0=_0x40d3b8;let _0x19b5d7={'unitId':_0x13f0a8['unitID'],'status':_0x1b959f};this['fireEvent'](this['Event'][_0x3007e0(0x186)],_0x19b5d7);});_0x49a7e[_0x40d3b8(0x182)](_0x3a2692(_0x1e0351));});return _0x49a7e[_0x3d97da(0x182)](_0x3a2692(_0x352a14)),_0x49a7e;}));}[_0xe42515(0x175)](){const _0x20d246=_0xe42515;return this[_0x20d246(0x196)]['createInstance'](y,{'getWorkbook':_0x835c14=>this[_0x20d246(0x176)](_0x835c14),'getDocument':_0x50c594=>this[_0x20d246(0x183)](_0x50c594),'getPresentation':_0x39de91=>this[_0x20d246(0x16b)](_0x39de91),'getBase':_0x7e46c8=>this[_0x20d246(0x1a1)](_0x7e46c8),'getBoard':_0x24300f=>this[_0x20d246(0x19c)](_0x24300f),'getPdf':_0x340fcc=>this[_0x20d246(0x19b)](_0x340fcc)});}[_0xe42515(0x194)](_0x3c3431,_0x1d8f10,_0x4597c7){const _0x15e467=_0xe42515;return this[_0x15e467(0x196)][_0x15e467(0x189)](_0x1d2475)['loadUnit'](_0x3c3431,_0x1d8f10,_0x4597c7);}[_0xe42515(0x1a0)](_0x81e883,_0x3b49b9,_0x4a92f2){const _0x4cb7c3=_0xe42515;return this[_0x4cb7c3(0x196)]['get'](_0x1d2475)['loadUnitOfRevision'](_0x81e883,_0x3b49b9,_0x4a92f2);}};_0x6fa0ed['extend'](x);export{y as FCollaboration};