@univerjs-pro/collaboration-client 1.0.0-alpha.4 → 1.0.0-alpha.6

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 +14 -14
@@ -1 +1 @@
1
- const _0xa4d642=_0x2c27;(function(_0x3376e7,_0x23df22){const _0x2a2695=_0x2c27,_0x3c1e01=_0x3376e7();while(!![]){try{const _0x305d14=parseInt(_0x2a2695(0x168))/0x1*(-parseInt(_0x2a2695(0x162))/0x2)+-parseInt(_0x2a2695(0x15d))/0x3+parseInt(_0x2a2695(0x14f))/0x4*(parseInt(_0x2a2695(0x15c))/0x5)+parseInt(_0x2a2695(0x151))/0x6+parseInt(_0x2a2695(0x163))/0x7*(parseInt(_0x2a2695(0x155))/0x8)+parseInt(_0x2a2695(0x14e))/0x9*(parseInt(_0x2a2695(0x15b))/0xa)+-parseInt(_0x2a2695(0x161))/0xb*(parseInt(_0x2a2695(0x159))/0xc);if(_0x305d14===_0x23df22)break;else _0x3c1e01['push'](_0x3c1e01['shift']());}catch(_0x1be8e6){_0x3c1e01['push'](_0x3c1e01['shift']());}}}(_0x1edd,0xca142));function _0x2c27(_0x326025,_0x9495ac){_0x326025=_0x326025-0x14e;const _0x1edd6e=_0x1edd();let _0x2c277c=_0x1edd6e[_0x326025];return _0x2c277c;}const e={'collaboration-client':{'collabClient':{'tooltip':{'reconnect':_0xa4d642(0x167)}},'collabStatus':{'fetchMiss':'正在擷取伺服器資料...','conflict':_0xa4d642(0x156),'notCollab':_0xa4d642(0x166),'synced':_0xa4d642(0x15e),'syncing':_0xa4d642(0x154),'offline':_0xa4d642(0x16c)},'session':{'connection-failed':_0xa4d642(0x16a),'will-retry':_0xa4d642(0x16b),'room-full':_0xa4d642(0x152),'join-failed':_0xa4d642(0x153),'room-not-exists':_0xa4d642(0x158),'room-permission-denied':_0xa4d642(0x169),'room-cnt-exceeds':_0xa4d642(0x164),'collaboration-timeout':_0xa4d642(0x160)},'conflict':{'title':_0xa4d642(0x165),'content':_0xa4d642(0x15a)},'permission':{'title':_0xa4d642(0x150),'content':_0xa4d642(0x15f)},'collaboration':{'single-unit':{'warning':_0xa4d642(0x157)},'closeRoom':_0xa4d642(0x16d)},'auth':{'needGotoLoginAlert':'您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。'}}};export{e as default};function _0x1edd(){const _0x48f5a7=['3464400ISoOXW','此文件協作人數已達上限,您的編輯將暫存於本機。','加入協作失敗,請稍後重試,您的編輯將暫存於本機。','同步中...','16IIWsPG','編輯衝突','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','加入協作失敗,您的編輯將暫存於本機。','48DvvRmo','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','750JEBhYE','2495930DEVARE','83685hDTnvn','已同步','您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。','伺服器未回應協作請求,您的編輯將儲存在本機。','2429768lCXJwG','4qrHlZl','751583ZvgdVP','協作文件數量超過限制,您的編輯將暫存於本機。','協作衝突','本機檔案','點擊重新連線','659387HESHiY','沒有協作權限,您的編輯將暫存於本機。','連線失敗,請檢查您的網路。','連線失敗,將在稍後重試連線。','已離線,編輯將儲存在本機','由於協作房間已關閉,編輯權限已被收回。','152091ASVfTD','8nJOtmK','認證錯誤'];_0x1edd=function(){return _0x48f5a7;};return _0x1edd();}
1
+ const _0x5236c6=_0x384f;function _0x384f(_0x30e188,_0xf03d48){_0x30e188=_0x30e188-0x9d;const _0x10dd93=_0x10dd();let _0x384f37=_0x10dd93[_0x30e188];return _0x384f37;}(function(_0x34e3fb,_0x3cf953){const _0x2ba0aa=_0x384f,_0x2a314c=_0x34e3fb();while(!![]){try{const _0x32e75f=-parseInt(_0x2ba0aa(0xb2))/0x1+parseInt(_0x2ba0aa(0xa7))/0x2+parseInt(_0x2ba0aa(0xb7))/0x3+-parseInt(_0x2ba0aa(0xab))/0x4+-parseInt(_0x2ba0aa(0xad))/0x5+parseInt(_0x2ba0aa(0x9d))/0x6*(parseInt(_0x2ba0aa(0x9e))/0x7)+parseInt(_0x2ba0aa(0xaa))/0x8*(parseInt(_0x2ba0aa(0xb1))/0x9);if(_0x32e75f===_0x3cf953)break;else _0x2a314c['push'](_0x2a314c['shift']());}catch(_0x4ae41a){_0x2a314c['push'](_0x2a314c['shift']());}}}(_0x10dd,0xddc8e));const e={'collaboration-client':{'collabClient':{'tooltip':{'reconnect':_0x5236c6(0xa4)}},'collabStatus':{'fetchMiss':_0x5236c6(0xa6),'conflict':_0x5236c6(0xb5),'notCollab':_0x5236c6(0xb0),'synced':_0x5236c6(0xae),'syncing':'同步中...','offline':_0x5236c6(0xb6)},'session':{'connection-failed':_0x5236c6(0xa2),'will-retry':_0x5236c6(0xb3),'room-full':'此文件協作人數已達上限,您的編輯將暫存於本機。','join-failed':_0x5236c6(0xa8),'room-not-exists':_0x5236c6(0xa3),'room-permission-denied':_0x5236c6(0xa5),'room-cnt-exceeds':'協作文件數量超過限制,您的編輯將暫存於本機。','collaboration-timeout':_0x5236c6(0xaf)},'conflict':{'title':_0x5236c6(0x9f),'content':_0x5236c6(0xb4)},'permission':{'title':_0x5236c6(0xac),'content':_0x5236c6(0xa9)},'collaboration':{'single-unit':{'warning':_0x5236c6(0xa1)},'closeRoom':_0x5236c6(0xa0)},'auth':{'needGotoLoginAlert':'您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。'}}};export{e as default};function _0x10dd(){const _0x583d46=['1878550lkJLbG','加入協作失敗,請稍後重試,您的編輯將暫存於本機。','您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。','32CupYpv','1936160bQynLE','認證錯誤','6402945IMttPz','已同步','伺服器未回應協作請求,您的編輯將儲存在本機。','本機檔案','993915wYgbtR','588769jZmlsk','連線失敗,將在稍後重試連線。','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','編輯衝突','已離線,編輯將儲存在本機','4237707ZFpAHJ','401352kZRzxu','49Szkiht','協作衝突','由於協作房間已關閉,編輯權限已被收回。','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','連線失敗,請檢查您的網路。','加入協作失敗,您的編輯將暫存於本機。','點擊重新連線','沒有協作權限,您的編輯將暫存於本機。','正在擷取伺服器資料...'];_0x10dd=function(){return _0x583d46;};return _0x10dd();}
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x4b67dd=_0x4cdf;(function(_0x460656,_0x1226c3){const _0x3f04a7=_0x4cdf,_0x2d7afb=_0x460656();while(!![]){try{const _0x2e5c50=parseInt(_0x3f04a7(0x13e))/0x1*(-parseInt(_0x3f04a7(0x142))/0x2)+-parseInt(_0x3f04a7(0x14b))/0x3+-parseInt(_0x3f04a7(0x16a))/0x4*(-parseInt(_0x3f04a7(0x149))/0x5)+-parseInt(_0x3f04a7(0x160))/0x6*(parseInt(_0x3f04a7(0x16c))/0x7)+-parseInt(_0x3f04a7(0x136))/0x8+parseInt(_0x3f04a7(0x16d))/0x9*(parseInt(_0x3f04a7(0x134))/0xa)+parseInt(_0x3f04a7(0x155))/0xb*(parseInt(_0x3f04a7(0x12e))/0xc);if(_0x2e5c50===_0x1226c3)break;else _0x2d7afb['push'](_0x2d7afb['shift']());}catch(_0x24506f){_0x2d7afb['push'](_0x2d7afb['shift']());}}}(_0x4498,0x21ae9));import{CollaborationController as _0x1a0f79,CollaborationStatus as _0x3364c1,DataLoaderService as _0x4bc8f0,MemberService as _0x58d335}from'@univerjs-pro/collaboration-client';import{FBase as _0x52a3c9,FEnum as _0x541442,FEventName as _0x49d7c4,FUniver as _0xaef4f1}from'@univerjs/core/facade';import{DisposableCollection as _0x1abbbd,IUniverInstanceService as _0x1bca34,Inject as _0x547d8d,Injector as _0x3e2183,toDisposable as _0x1d3d70}from'@univerjs/core';function _0x4cdf(_0x5602e8,_0x39f2eb){_0x5602e8=_0x5602e8-0x12e;const _0x44981b=_0x4498();let _0x4cdf57=_0x44981b[_0x5602e8];return _0x4cdf57;}import{SnapshotService as _0x28c84c}from'@univerjs-pro/collaboration';import{switchMap as _0x36213d}from'rxjs';var h=class extends _0x541442{get[_0x4b67dd(0x138)](){return _0x3364c1;}};function _0x4498(){const _0x34fc04=['members$','loadBaseAsync','_handler','getBase','get','4578pWbDWY','_collaborationController','subscribeCollaborators','length','readyForCollab','loadServerUnitOfRevision','getPresentation','object','[FCollaboration]:\x20Unit\x20\x22','SYNCED','344YoYPql','getFocusedUnit','861ylHQGd','28413GHlKSX','NOT_COLLAB','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','state','loadDocAsync','ms.','_injector','3561564kpdnkD','loadSlide','status$','loadUnit','getWorkbook','getCollabEntity','10lIHcPr','unsubscribe','689520WcprhB','Event','CollaborationStatus','disposeWithMe','getCollaboration','getUnitId','_resolveUnitId','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','33lbxQYh','function','subscribe','_initialize','8914HfbAOO','pipe','loadBoard','loadSheet','extend','defineProperty','CollaborationStatusChanged','14180CZQvXQ','_snapshotService','236307iiNQDp','CONFLICT','createInstance','getCollaborationStatus','_univerInstanceService','values','getBoard','\x22\x20while\x20collaboration\x20status\x20is\x20','loadServerUnit','reject','11upInlI','fireEvent','\x22\x20after\x20','add','registerEventHandler','decorate'];_0x4498=function(){return _0x34fc04;};return _0x4498();}_0x541442[_0x4b67dd(0x146)](h);var g=class extends _0x49d7c4{get['CollaborationStatusChanged'](){const _0x300d6a=_0x4b67dd;return _0x300d6a(0x148);}};_0x49d7c4[_0x4b67dd(0x146)](g);function _(_0x2a98d4,_0x43a41a){return function(_0x50e4b8,_0x40d561){_0x43a41a(_0x50e4b8,_0x40d561,_0x2a98d4);};}function v(_0x4a78e6,_0x26215e,_0x272c0c,_0x197813){const _0x3730ba=_0x4b67dd;var _0x31030b=arguments[_0x3730ba(0x163)],_0x1ac451=_0x31030b<0x3?_0x26215e:_0x197813===null?_0x197813=Object['getOwnPropertyDescriptor'](_0x26215e,_0x272c0c):_0x197813,_0x115a31;if(typeof Reflect==_0x3730ba(0x167)&&typeof Reflect[_0x3730ba(0x15a)]==_0x3730ba(0x13f))_0x1ac451=Reflect[_0x3730ba(0x15a)](_0x4a78e6,_0x26215e,_0x272c0c,_0x197813);else{for(var _0xa198f=_0x4a78e6[_0x3730ba(0x163)]-0x1;_0xa198f>=0x0;_0xa198f--)(_0x115a31=_0x4a78e6[_0xa198f])&&(_0x1ac451=(_0x31030b<0x3?_0x115a31(_0x1ac451):_0x31030b>0x3?_0x115a31(_0x26215e,_0x272c0c,_0x1ac451):_0x115a31(_0x26215e,_0x272c0c))||_0x1ac451);}return _0x31030b>0x3&&_0x1ac451&&Object[_0x3730ba(0x147)](_0x26215e,_0x272c0c,_0x1ac451),_0x1ac451;}let y=class extends _0x52a3c9{constructor(_0x2ab65d,_0x2e7919,_0x3a1ced,_0x67c27e,_0x5bbae8){const _0x3e5ed3=_0x4b67dd;super(),this[_0x3e5ed3(0x15d)]=_0x2ab65d,this[_0x3e5ed3(0x173)]=_0x2e7919,this[_0x3e5ed3(0x14f)]=_0x3a1ced,this[_0x3e5ed3(0x14a)]=_0x67c27e,this[_0x3e5ed3(0x161)]=_0x5bbae8;}async['loadSheetAsync'](_0x41b4d9,_0xb72917){const _0x421b56=_0x4b67dd;return await this[_0x421b56(0x14a)][_0x421b56(0x145)](_0x41b4d9,0x0,_0xb72917)?(await this[_0x421b56(0x161)][_0x421b56(0x164)](_0x41b4d9),this[_0x421b56(0x15d)][_0x421b56(0x132)](_0x41b4d9)):null;}async[_0x4b67dd(0x171)](_0x558000,_0x23925f){const _0xdb5daf=_0x4b67dd;return await this['_snapshotService']['loadDoc'](_0x558000,0x0,_0x23925f)?(await this[_0xdb5daf(0x161)][_0xdb5daf(0x164)](_0x558000),this[_0xdb5daf(0x15d)]['getDocument'](_0x558000)):null;}async[_0x4b67dd(0x15c)](_0x4b07d2,_0x369265){const _0x5214fa=_0x4b67dd;return await this[_0x5214fa(0x14a)]['loadBase'](_0x4b07d2,0x0,_0x369265)?(await this[_0x5214fa(0x161)][_0x5214fa(0x164)](_0x4b07d2),this[_0x5214fa(0x15d)][_0x5214fa(0x15e)](_0x4b07d2)):null;}async['loadSlideAsync'](_0x4ed816,_0xac0d37){const _0x1d8134=_0x4b67dd;return await this[_0x1d8134(0x14a)][_0x1d8134(0x12f)](_0x4ed816,0x0,_0xac0d37)?(await this['_collaborationController'][_0x1d8134(0x164)](_0x4ed816),this['_handler'][_0x1d8134(0x166)](_0x4ed816)):null;}async['loadBoardAsync'](_0x4f83aa,_0x52f697){const _0x126696=_0x4b67dd;return await this[_0x126696(0x14a)][_0x126696(0x144)](_0x4f83aa,0x0,_0x52f697)?(await this[_0x126696(0x161)]['readyForCollab'](_0x4f83aa),this[_0x126696(0x15d)][_0x126696(0x151)](_0x4f83aa)):null;}[_0x4b67dd(0x162)](_0xf1f1ec,_0x5869f4){const _0x4bd7cb=_0x4b67dd;return _0x1d3d70(this[_0x4bd7cb(0x173)]['get'](_0x58d335)['waitForRoom$'](_0xf1f1ec)[_0x4bd7cb(0x143)](_0x36213d(_0x5a507b=>_0x5a507b[_0x4bd7cb(0x15b)]))[_0x4bd7cb(0x140)](_0x3de6c9=>_0x5869f4(Array['from'](_0x3de6c9[_0x4bd7cb(0x150)]()))));}[_0x4b67dd(0x14e)](_0x4b16d3){const _0x3565bf=_0x4b67dd;var _0x109288;let _0x12a296=this[_0x3565bf(0x13c)](_0x4b16d3);if(!_0x12a296)return _0x3364c1[_0x3565bf(0x16e)];let _0x3b52b0=this[_0x3565bf(0x161)][_0x3565bf(0x133)](_0x12a296);return(_0x109288=_0x3b52b0==null?void 0x0:_0x3b52b0[_0x3565bf(0x170)]['status'])==null?_0x3364c1[_0x3565bf(0x16e)]:_0x109288;}['flush'](_0x3f937b,_0x5cf205={}){const _0x50dbb9=_0x4b67dd;var _0x19c735;let _0x58d64a=this['_resolveUnitId'](_0x3f937b);if(!_0x58d64a)return Promise[_0x50dbb9(0x154)](Error(_0x50dbb9(0x16f)));let _0x24a182=this['_collaborationController'][_0x50dbb9(0x133)](_0x58d64a);if(!_0x24a182)return Promise[_0x50dbb9(0x154)](Error(_0x50dbb9(0x168)+_0x58d64a+_0x50dbb9(0x13d)));let _0x9c65b8=_0x24a182['state']['status'];if(_0x9c65b8===_0x3364c1[_0x50dbb9(0x169)])return Promise['resolve']();let _0x15d39b=b(_0x58d64a,_0x9c65b8);if(_0x15d39b)return Promise['reject'](_0x15d39b);let _0x5335c3=(_0x19c735=_0x5cf205['timeout'])==null?0x7530:_0x19c735;return new Promise((_0x67c717,_0x262e83)=>{const _0x5e8dc5=_0x50dbb9;let _0x5d6be7=!0x1,_0x860e2=null,_0x3c314e=setTimeout(()=>{const _0x468b5d=_0x4cdf;_0x5d6be7=!0x0,_0x860e2==null||_0x860e2[_0x468b5d(0x135)](),_0x262e83(Error('[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22'+_0x58d64a+_0x468b5d(0x157)+_0x5335c3+_0x468b5d(0x172)));},_0x5335c3),_0x3d219a=()=>{const _0x2c2c75=_0x4cdf;_0x5d6be7=!0x0,clearTimeout(_0x3c314e),_0x860e2==null||_0x860e2[_0x2c2c75(0x135)]();};_0x860e2=_0x24a182[_0x5e8dc5(0x130)][_0x5e8dc5(0x140)](_0x3f0970=>{const _0x2931b2=_0x5e8dc5;if(_0x5d6be7)return;if(_0x3f0970===_0x3364c1[_0x2931b2(0x169)]){_0x3d219a(),_0x67c717();return;}let _0x5b0860=b(_0x58d64a,_0x3f0970);_0x5b0860&&(_0x3d219a(),_0x262e83(_0x5b0860));});});}[_0x4b67dd(0x13c)](_0x1f1c7a){const _0x323361=_0x4b67dd;var _0x138a6f;return _0x1f1c7a||((_0x138a6f=this[_0x323361(0x14f)][_0x323361(0x16b)]())==null?void 0x0:_0x138a6f[_0x323361(0x13b)]());}};y=v([_(0x1,_0x547d8d(_0x3e2183)),_(0x2,_0x1bca34),_(0x3,_0x547d8d(_0x28c84c)),_(0x4,_0x547d8d(_0x1a0f79))],y);function b(_0x2f63da,_0x3e1dad){const _0x278c66=_0x4b67dd;return _0x3e1dad===_0x3364c1[_0x278c66(0x14c)]||_0x3e1dad===_0x3364c1[_0x278c66(0x16e)]?Error('[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22'+_0x2f63da+_0x278c66(0x152)+_0x3e1dad+'.'):null;}var x=class extends _0xaef4f1{[_0x4b67dd(0x141)](_0x22bbc3){const _0x508141=_0x4b67dd;let _0x288ca4=_0x22bbc3[_0x508141(0x15f)](_0x1a0f79);this[_0x508141(0x139)](this[_0x508141(0x159)](this[_0x508141(0x137)][_0x508141(0x148)],()=>{const _0x2b1730=_0x508141;let _0x42e453=new _0x1abbbd(),_0x499e4c=_0x288ca4['entityInit$'][_0x2b1730(0x140)](_0xec9a28=>{const _0x5dd939=_0x2b1730;let _0x16a820=_0xec9a28['status$'][_0x5dd939(0x140)](_0x1b68f0=>{const _0x1bc93c=_0x5dd939;let _0x5d65b3={'unitId':_0xec9a28['unitID'],'status':_0x1b68f0};this[_0x1bc93c(0x156)](this[_0x1bc93c(0x137)][_0x1bc93c(0x148)],_0x5d65b3);});_0x42e453[_0x5dd939(0x158)](_0x1d3d70(_0x16a820));});return _0x42e453[_0x2b1730(0x158)](_0x1d3d70(_0x499e4c)),_0x42e453;}));}[_0x4b67dd(0x13a)](){const _0x345e1b=_0x4b67dd;return this['_injector'][_0x345e1b(0x14d)](y,{'getWorkbook':_0x1b74dc=>this[_0x345e1b(0x132)](_0x1b74dc),'getDocument':_0x52cd6f=>this['getDocument'](_0x52cd6f),'getPresentation':_0x19f91c=>this[_0x345e1b(0x166)](_0x19f91c),'getBase':_0x2548b8=>this[_0x345e1b(0x15e)](_0x2548b8),'getBoard':_0x625d8=>this[_0x345e1b(0x151)](_0x625d8)});}[_0x4b67dd(0x153)](_0x2d221c,_0x2d3354,_0x396298){const _0x7ef79a=_0x4b67dd;return this[_0x7ef79a(0x173)][_0x7ef79a(0x15f)](_0x4bc8f0)[_0x7ef79a(0x131)](_0x2d221c,_0x2d3354,_0x396298);}[_0x4b67dd(0x165)](_0x46d2b8,_0x5aac18,_0x1d4dc4){const _0x150423=_0x4b67dd;return this[_0x150423(0x173)][_0x150423(0x15f)](_0x4bc8f0)['loadUnitOfRevision'](_0x46d2b8,_0x5aac18,_0x1d4dc4);}};_0xaef4f1[_0x4b67dd(0x146)](x);export{y as FCollaboration};
1
+ const _0x5d81cf=_0x2bfb;(function(_0x451dbd,_0x438808){const _0x4741e7=_0x2bfb,_0x528903=_0x451dbd();while(!![]){try{const _0x54a571=-parseInt(_0x4741e7(0xcd))/0x1+parseInt(_0x4741e7(0xfd))/0x2+parseInt(_0x4741e7(0xc3))/0x3*(parseInt(_0x4741e7(0xb6))/0x4)+parseInt(_0x4741e7(0xdc))/0x5*(-parseInt(_0x4741e7(0xd7))/0x6)+-parseInt(_0x4741e7(0xdb))/0x7*(-parseInt(_0x4741e7(0xca))/0x8)+parseInt(_0x4741e7(0xc4))/0x9+parseInt(_0x4741e7(0xd5))/0xa*(-parseInt(_0x4741e7(0xf5))/0xb);if(_0x54a571===_0x438808)break;else _0x528903['push'](_0x528903['shift']());}catch(_0x220d24){_0x528903['push'](_0x528903['shift']());}}}(_0x1e61,0xa0b78));import{CollaborationController as _0x81d25a,CollaborationStatus as _0x2f58b3,DataLoaderService as _0xfead7e,MemberService as _0x470e17}from'@univerjs-pro/collaboration-client';import{FBase as _0x41f3de,FEnum as _0x10b323,FEventName as _0x538a54,FUniver as _0x4c08c2}from'@univerjs/core/facade';import{DisposableCollection as _0x4454a6,IUniverInstanceService as _0x455293,Inject as _0x482f62,Injector as _0x3eca89,toDisposable as _0x4dfd25}from'@univerjs/core';import{SnapshotService as _0xda3fdc}from'@univerjs-pro/collaboration';import{switchMap as _0x4d0af7}from'rxjs';var h=class extends _0x10b323{get[_0x5d81cf(0xc1)](){return _0x2f58b3;}};_0x10b323['extend'](h);var g=class extends _0x538a54{get[_0x5d81cf(0xfc)](){const _0x29e75a=_0x5d81cf;return _0x29e75a(0xfc);}};_0x538a54[_0x5d81cf(0xc6)](g);function _(_0x1cf381,_0x4e8f88){return function(_0x5db686,_0x4a4248){_0x4e8f88(_0x5db686,_0x4a4248,_0x1cf381);};}function v(_0x55a36e,_0x5147f2,_0x54a256,_0x3ab11d){const _0x67e1a1=_0x5d81cf;var _0x4c77bc=arguments[_0x67e1a1(0xd4)],_0x460dd8=_0x4c77bc<0x3?_0x5147f2:_0x3ab11d===null?_0x3ab11d=Object[_0x67e1a1(0xef)](_0x5147f2,_0x54a256):_0x3ab11d,_0x233067;if(typeof Reflect==_0x67e1a1(0xe7)&&typeof Reflect['decorate']==_0x67e1a1(0xeb))_0x460dd8=Reflect[_0x67e1a1(0xd3)](_0x55a36e,_0x5147f2,_0x54a256,_0x3ab11d);else{for(var _0x35a5ed=_0x55a36e['length']-0x1;_0x35a5ed>=0x0;_0x35a5ed--)(_0x233067=_0x55a36e[_0x35a5ed])&&(_0x460dd8=(_0x4c77bc<0x3?_0x233067(_0x460dd8):_0x4c77bc>0x3?_0x233067(_0x5147f2,_0x54a256,_0x460dd8):_0x233067(_0x5147f2,_0x54a256))||_0x460dd8);}return _0x4c77bc>0x3&&_0x460dd8&&Object[_0x67e1a1(0xba)](_0x5147f2,_0x54a256,_0x460dd8),_0x460dd8;}let y=class extends _0x41f3de{constructor(_0x3f43db,_0x2fee44,_0x14a17b,_0x2179f9,_0x21cca8){const _0xefce40=_0x5d81cf;super(),this[_0xefce40(0xc9)]=_0x3f43db,this[_0xefce40(0xc7)]=_0x2fee44,this[_0xefce40(0xcc)]=_0x14a17b,this['_snapshotService']=_0x2179f9,this[_0xefce40(0xf1)]=_0x21cca8;}async[_0x5d81cf(0xb1)](_0x3b1712,_0x297f99){const _0x13a7dd=_0x5d81cf;return await this[_0x13a7dd(0xda)]['loadSheet'](_0x3b1712,0x0,_0x297f99)?(await this[_0x13a7dd(0xf1)][_0x13a7dd(0xe0)](_0x3b1712),this[_0x13a7dd(0xc9)][_0x13a7dd(0xd6)](_0x3b1712)):null;}async[_0x5d81cf(0xd0)](_0x2586fd,_0x5d7fe4){const _0x85bc22=_0x5d81cf;return await this[_0x85bc22(0xda)][_0x85bc22(0xb9)](_0x2586fd,0x0,_0x5d7fe4)?(await this[_0x85bc22(0xf1)][_0x85bc22(0xe0)](_0x2586fd),this[_0x85bc22(0xc9)]['getDocument'](_0x2586fd)):null;}async[_0x5d81cf(0xc2)](_0xab6695,_0x5c9f91){const _0x55693f=_0x5d81cf;return await this[_0x55693f(0xda)][_0x55693f(0xe5)](_0xab6695,0x0,_0x5c9f91)?(await this[_0x55693f(0xf1)][_0x55693f(0xe0)](_0xab6695),this['_handler'][_0x55693f(0xf2)](_0xab6695)):null;}async[_0x5d81cf(0xf3)](_0x30c048,_0x5a965c){const _0xeb84fa=_0x5d81cf;return await this[_0xeb84fa(0xda)][_0xeb84fa(0xff)](_0x30c048,0x0,_0x5a965c)?(await this['_collaborationController'][_0xeb84fa(0xe0)](_0x30c048),this['_handler'][_0xeb84fa(0xee)](_0x30c048)):null;}async[_0x5d81cf(0xdf)](_0x41249c,_0x563c38){const _0x43f156=_0x5d81cf;return await this[_0x43f156(0xda)][_0x43f156(0xb4)](_0x41249c,0x0,_0x563c38)?(await this[_0x43f156(0xf1)][_0x43f156(0xe0)](_0x41249c),this[_0x43f156(0xc9)]['getBoard'](_0x41249c)):null;}['subscribeCollaborators'](_0xb22381,_0x10cc7a){const _0x2b3f31=_0x5d81cf;return _0x4dfd25(this[_0x2b3f31(0xc7)][_0x2b3f31(0xbc)](_0x470e17)[_0x2b3f31(0xea)](_0xb22381)[_0x2b3f31(0xe9)](_0x4d0af7(_0x43b821=>_0x43b821[_0x2b3f31(0xe1)]))['subscribe'](_0x375350=>_0x10cc7a(Array[_0x2b3f31(0xd2)](_0x375350[_0x2b3f31(0xe4)]()))));}[_0x5d81cf(0xc5)](_0x53ed82){const _0x1bfd35=_0x5d81cf;var _0x5919ee;let _0x53c51c=this[_0x1bfd35(0xd8)](_0x53ed82);if(!_0x53c51c)return _0x2f58b3[_0x1bfd35(0xe3)];let _0x1346f8=this['_collaborationController'][_0x1bfd35(0xbb)](_0x53c51c);return(_0x5919ee=_0x1346f8==null?void 0x0:_0x1346f8[_0x1bfd35(0xd9)][_0x1bfd35(0xec)])==null?_0x2f58b3[_0x1bfd35(0xe3)]:_0x5919ee;}[_0x5d81cf(0xed)](_0x2441fd,_0x12842b={}){const _0x238aa5=_0x5d81cf;var _0x55cd21;let _0x212c75=this[_0x238aa5(0xd8)](_0x2441fd);if(!_0x212c75)return Promise[_0x238aa5(0xc0)](Error(_0x238aa5(0xf0)));let _0x413f79=this[_0x238aa5(0xf1)]['getCollabEntity'](_0x212c75);if(!_0x413f79)return Promise[_0x238aa5(0xc0)](Error('[FCollaboration]:\x20Unit\x20\x22'+_0x212c75+_0x238aa5(0xf9)));let _0x3aee23=_0x413f79[_0x238aa5(0xd9)][_0x238aa5(0xec)];if(_0x3aee23===_0x2f58b3[_0x238aa5(0xbf)])return Promise[_0x238aa5(0xbd)]();let _0x3ca8f6=b(_0x212c75,_0x3aee23);if(_0x3ca8f6)return Promise[_0x238aa5(0xc0)](_0x3ca8f6);let _0x33dcaf=(_0x55cd21=_0x12842b['timeout'])==null?0x7530:_0x55cd21;return new Promise((_0x56488d,_0x3d933b)=>{const _0x2a1ebc=_0x238aa5;let _0x16f146=!0x1,_0x2df942=null,_0x120ab9=setTimeout(()=>{const _0x2088b7=_0x2bfb;_0x16f146=!0x0,_0x2df942==null||_0x2df942[_0x2088b7(0xb8)](),_0x3d933b(Error(_0x2088b7(0xde)+_0x212c75+_0x2088b7(0xf7)+_0x33dcaf+'ms.'));},_0x33dcaf),_0x59481c=()=>{const _0x248709=_0x2bfb;_0x16f146=!0x0,clearTimeout(_0x120ab9),_0x2df942==null||_0x2df942[_0x248709(0xb8)]();};_0x2df942=_0x413f79['status$'][_0x2a1ebc(0xf4)](_0x50637b=>{const _0x1064b3=_0x2a1ebc;if(_0x16f146)return;if(_0x50637b===_0x2f58b3[_0x1064b3(0xbf)]){_0x59481c(),_0x56488d();return;}let _0x5f415a=b(_0x212c75,_0x50637b);_0x5f415a&&(_0x59481c(),_0x3d933b(_0x5f415a));});});}['_resolveUnitId'](_0x54cbd6){const _0x360038=_0x5d81cf;var _0x1524cc;return _0x54cbd6||((_0x1524cc=this[_0x360038(0xcc)][_0x360038(0xd1)]())==null?void 0x0:_0x1524cc['getUnitId']());}};y=v([_(0x1,_0x482f62(_0x3eca89)),_(0x2,_0x455293),_(0x3,_0x482f62(_0xda3fdc)),_(0x4,_0x482f62(_0x81d25a))],y);function _0x2bfb(_0x244f95,_0x5446e7){_0x244f95=_0x244f95-0xb1;const _0x1e6117=_0x1e61();let _0x2bfb74=_0x1e6117[_0x244f95];return _0x2bfb74;}function _0x1e61(){const _0x332a77=['_injector','\x22\x20while\x20collaboration\x20status\x20is\x20','_handler','8IfDBkv','entityInit$','_univerInstanceService','1221733JSsmUY','getDocument','_initialize','loadDocAsync','getFocusedUnit','from','decorate','length','70xyuIbR','getWorkbook','60054xJytZk','_resolveUnitId','state','_snapshotService','6860707ZGmGzl','655HzyPxv','registerEventHandler','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','loadBoardAsync','readyForCollab','members$','fireEvent','NOT_COLLAB','values','loadBase','getCollaboration','object','loadServerUnitOfRevision','pipe','waitForRoom$','function','status','flush','getPresentation','getOwnPropertyDescriptor','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','_collaborationController','getBase','loadSlideAsync','subscribe','648219ROEtMC','loadUnit','\x22\x20after\x20','disposeWithMe','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','Event','loadServerUnit','CollaborationStatusChanged','2135952TYvwRV','unitID','loadSlide','loadSheetAsync','createInstance','add','loadBoard','status$','16lMwjSn','getBoard','unsubscribe','loadDoc','defineProperty','getCollabEntity','get','resolve','CONFLICT','SYNCED','reject','CollaborationStatus','loadBaseAsync','398946fYXQEN','9213354MXwWHm','getCollaborationStatus','extend'];_0x1e61=function(){return _0x332a77;};return _0x1e61();}function b(_0x8801f1,_0x3f26ad){const _0x31e56c=_0x5d81cf;return _0x3f26ad===_0x2f58b3[_0x31e56c(0xbe)]||_0x3f26ad===_0x2f58b3['NOT_COLLAB']?Error('[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22'+_0x8801f1+_0x31e56c(0xc8)+_0x3f26ad+'.'):null;}var x=class extends _0x4c08c2{[_0x5d81cf(0xcf)](_0x536153){const _0x49d709=_0x5d81cf;let _0x42e932=_0x536153['get'](_0x81d25a);this[_0x49d709(0xf8)](this[_0x49d709(0xdd)](this[_0x49d709(0xfa)][_0x49d709(0xfc)],()=>{const _0x49d735=_0x49d709;let _0x57d9b5=new _0x4454a6(),_0x167569=_0x42e932[_0x49d735(0xcb)][_0x49d735(0xf4)](_0x2ef58f=>{const _0x4ae2f7=_0x49d735;let _0x5ba2cd=_0x2ef58f[_0x4ae2f7(0xb5)][_0x4ae2f7(0xf4)](_0x5232cb=>{const _0x3bf3d9=_0x4ae2f7;let _0x39d2bf={'unitId':_0x2ef58f[_0x3bf3d9(0xfe)],'status':_0x5232cb};this[_0x3bf3d9(0xe2)](this['Event']['CollaborationStatusChanged'],_0x39d2bf);});_0x57d9b5['add'](_0x4dfd25(_0x5ba2cd));});return _0x57d9b5[_0x49d735(0xb3)](_0x4dfd25(_0x167569)),_0x57d9b5;}));}[_0x5d81cf(0xe6)](){const _0x12fc04=_0x5d81cf;return this[_0x12fc04(0xc7)][_0x12fc04(0xb2)](y,{'getWorkbook':_0x23c279=>this[_0x12fc04(0xd6)](_0x23c279),'getDocument':_0x8e0676=>this[_0x12fc04(0xce)](_0x8e0676),'getPresentation':_0x15d404=>this['getPresentation'](_0x15d404),'getBase':_0x23c008=>this[_0x12fc04(0xf2)](_0x23c008),'getBoard':_0x363240=>this[_0x12fc04(0xb7)](_0x363240)});}[_0x5d81cf(0xfb)](_0x2dd0eb,_0x318c93,_0x146458){const _0x36d72d=_0x5d81cf;return this[_0x36d72d(0xc7)][_0x36d72d(0xbc)](_0xfead7e)[_0x36d72d(0xf6)](_0x2dd0eb,_0x318c93,_0x146458);}[_0x5d81cf(0xe8)](_0x1ac402,_0x22a755,_0x1f7f0c){const _0x30a77c=_0x5d81cf;return this[_0x30a77c(0xc7)][_0x30a77c(0xbc)](_0xfead7e)['loadUnitOfRevision'](_0x1ac402,_0x22a755,_0x1f7f0c);}};_0x4c08c2[_0x5d81cf(0xc6)](x);export{y as FCollaboration};