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

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/controllers/collaboration/collaboration-entity.d.ts +2 -2
  65. package/lib/types/services/data-loader/data-loader.service.d.ts +1 -1
  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 +14 -14
@@ -1 +1 @@
1
- function _0x3aaa(_0x4a700a,_0x2500b5){_0x4a700a=_0x4a700a-0x86;const _0x30af31=_0x30af();let _0x3aaa09=_0x30af31[_0x4a700a];return _0x3aaa09;}function _0x30af(){const _0x4fda45=['124yrulDw','連線失敗,將在稍後重試連線。','由於協作房間已關閉,編輯權限已被收回。','此文件協作人數已達上限,您的編輯將暫存於本機。','9AiplCq','1222944DoFFDs','編輯衝突','2468505duTJLi','390EUzXfc','已同步','協作衝突','正在擷取伺服器資料...','您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。','認證錯誤','伺服器未回應協作請求,您的編輯將儲存在本機。','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','209bVsziQ','4603WFmGBB','28070NLwlBR','3511412YfiksO','本機檔案','協作文件數量超過限制,您的編輯將暫存於本機。','加入協作失敗,您的編輯將暫存於本機。','32UEniai','2463909ThuZuN','已離線,編輯將儲存在本機','同步中...','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','5275740rjwQcz'];_0x30af=function(){return _0x4fda45;};return _0x30af();}const _0x38b178=_0x3aaa;(function(_0x5fe9fa,_0x47265e){const _0x5cc2e9=_0x3aaa,_0x291924=_0x5fe9fa();while(!![]){try{const _0x22e615=-parseInt(_0x5cc2e9(0x88))/0x1*(-parseInt(_0x5cc2e9(0x94))/0x2)+-parseInt(_0x5cc2e9(0x9b))/0x3+parseInt(_0x5cc2e9(0x8a))/0x4+-parseInt(_0x5cc2e9(0x89))/0x5*(-parseInt(_0x5cc2e9(0x9c))/0x6)+-parseInt(_0x5cc2e9(0x8f))/0x7*(parseInt(_0x5cc2e9(0x8e))/0x8)+parseInt(_0x5cc2e9(0x98))/0x9*(-parseInt(_0x5cc2e9(0x93))/0xa)+parseInt(_0x5cc2e9(0x87))/0xb*(parseInt(_0x5cc2e9(0x99))/0xc);if(_0x22e615===_0x47265e)break;else _0x291924['push'](_0x291924['shift']());}catch(_0x5bb7df){_0x291924['push'](_0x291924['shift']());}}}(_0x30af,0xac648));const e={'collaboration-client':{'collabClient':{'tooltip':{'reconnect':'點擊重新連線'}},'collabStatus':{'fetchMiss':_0x38b178(0x9f),'conflict':_0x38b178(0x9a),'notCollab':_0x38b178(0x8b),'synced':_0x38b178(0x9d),'syncing':_0x38b178(0x91),'offline':_0x38b178(0x90)},'session':{'connection-failed':'連線失敗,請檢查您的網路。','will-retry':_0x38b178(0x95),'room-full':_0x38b178(0x97),'join-failed':'加入協作失敗,請稍後重試,您的編輯將暫存於本機。','room-not-exists':_0x38b178(0x8d),'room-permission-denied':'沒有協作權限,您的編輯將暫存於本機。','room-cnt-exceeds':_0x38b178(0x8c),'collaboration-timeout':_0x38b178(0xa2)},'conflict':{'title':_0x38b178(0x9e),'content':_0x38b178(0x86)},'permission':{'title':_0x38b178(0xa1),'content':'您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。'},'collaboration':{'single-unit':{'warning':_0x38b178(0x92)},'closeRoom':_0x38b178(0x96)},'auth':{'needGotoLoginAlert':_0x38b178(0xa0)}}};export{e as default};
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();}
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x5d78a5=_0x3639;(function(_0x5cdaf4,_0x11546a){const _0x297f2f=_0x3639,_0x4976e4=_0x5cdaf4();while(!![]){try{const _0x1b1688=-parseInt(_0x297f2f(0x1d4))/0x1*(parseInt(_0x297f2f(0x1d7))/0x2)+parseInt(_0x297f2f(0x1ba))/0x3*(parseInt(_0x297f2f(0x195))/0x4)+-parseInt(_0x297f2f(0x19b))/0x5+parseInt(_0x297f2f(0x1d0))/0x6*(-parseInt(_0x297f2f(0x1c1))/0x7)+-parseInt(_0x297f2f(0x1b9))/0x8*(parseInt(_0x297f2f(0x1a2))/0x9)+-parseInt(_0x297f2f(0x199))/0xa*(-parseInt(_0x297f2f(0x1d3))/0xb)+parseInt(_0x297f2f(0x1d5))/0xc*(parseInt(_0x297f2f(0x1c8))/0xd);if(_0x1b1688===_0x11546a)break;else _0x4976e4['push'](_0x4976e4['shift']());}catch(_0xb6e8dc){_0x4976e4['push'](_0x4976e4['shift']());}}}(_0x3f0e,0x2cc77));import{CollaborationController as _0x1e7124,CollaborationStatus as _0x550de0,DataLoaderService as _0x49dec7,MemberService as _0x3f0d11}from'@univerjs-pro/collaboration-client';import{FBase as _0x3312ac,FEnum as _0x23c8ca,FEventName as _0xfd8d92,FUniver as _0x569220}from'@univerjs/core/facade';import{DisposableCollection as _0x32b43a,IUniverInstanceService as _0x110141,Inject as _0x2ab994,Injector as _0x3c2ee8,toDisposable as _0x2f175a}from'@univerjs/core';import{SnapshotService as _0x27cb23}from'@univerjs-pro/collaboration';import{switchMap as _0x3414aa}from'rxjs';function _0x3f0e(){const _0x4dd1e0=['483mwOYFX','length','unitID','registerEventHandler','readyForCollab','loadServerUnitOfRevision','getCollaborationStatus','24193hXtvbu','disposeWithMe','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','loadBase','entityInit$','getWorkbook','getFocusedUnit','5874UEgBxZ','getPresentation','getCollaboration','23122AmsXQH','314539LDsZID','4224SUaTCC','_resolveUnitId','2gsHpLP','loadSlide','get','_handler','NOT_COLLAB','_initialize','loadBoard','loadSlideAsync','\x22\x20after\x20','4JzGDen','unsubscribe','loadUnit','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','1070kTrcuf','fireEvent','1704315BvLCtu','[FCollaboration]:\x20Unit\x20\x22','_univerInstanceService','loadDocAsync','_collaborationController','status','Event','212373cyBJmc','CollaborationStatus','extend','loadSheetAsync','members$','subscribeCollaborators','loadSheet','CollaborationStatusChanged','loadServerUnit','values','getOwnPropertyDescriptor','loadUnitOfRevision','decorate','add','getDocument','state','status$','getBase','loadBaseAsync','getBoard','CONFLICT','SYNCED','_injector','24XerfsL','291519BMiWia','object','reject','_snapshotService','loadDoc','getCollabEntity','subscribe'];_0x3f0e=function(){return _0x4dd1e0;};return _0x3f0e();}var h=class extends _0x23c8ca{get[_0x5d78a5(0x1a3)](){return _0x550de0;}};_0x23c8ca[_0x5d78a5(0x1a4)](h);var g=class extends _0xfd8d92{get['CollaborationStatusChanged'](){return'CollaborationStatusChanged';}};function _0x3639(_0x52201a,_0x4736af){_0x52201a=_0x52201a-0x18e;const _0x3f0ee4=_0x3f0e();let _0x36393a=_0x3f0ee4[_0x52201a];return _0x36393a;}_0xfd8d92[_0x5d78a5(0x1a4)](g);function _(_0x346ea6,_0x24d8c3){return function(_0x24f827,_0x5f1aea){_0x24d8c3(_0x24f827,_0x5f1aea,_0x346ea6);};}function v(_0x206870,_0x350b14,_0x19dfc6,_0x77fe80){const _0x1fb804=_0x5d78a5;var _0x2686b2=arguments[_0x1fb804(0x1c2)],_0x2e3a5b=_0x2686b2<0x3?_0x350b14:_0x77fe80===null?_0x77fe80=Object[_0x1fb804(0x1ac)](_0x350b14,_0x19dfc6):_0x77fe80,_0x5040ab;if(typeof Reflect==_0x1fb804(0x1bb)&&typeof Reflect[_0x1fb804(0x1ae)]=='function')_0x2e3a5b=Reflect[_0x1fb804(0x1ae)](_0x206870,_0x350b14,_0x19dfc6,_0x77fe80);else{for(var _0x428eca=_0x206870[_0x1fb804(0x1c2)]-0x1;_0x428eca>=0x0;_0x428eca--)(_0x5040ab=_0x206870[_0x428eca])&&(_0x2e3a5b=(_0x2686b2<0x3?_0x5040ab(_0x2e3a5b):_0x2686b2>0x3?_0x5040ab(_0x350b14,_0x19dfc6,_0x2e3a5b):_0x5040ab(_0x350b14,_0x19dfc6))||_0x2e3a5b);}return _0x2686b2>0x3&&_0x2e3a5b&&Object['defineProperty'](_0x350b14,_0x19dfc6,_0x2e3a5b),_0x2e3a5b;}let y=class extends _0x3312ac{constructor(_0x5d79c4,_0x47e8a4,_0x5e6819,_0x5c1ac8,_0x4cd30f){const _0x42a1ea=_0x5d78a5;super(),this[_0x42a1ea(0x18f)]=_0x5d79c4,this[_0x42a1ea(0x1b8)]=_0x47e8a4,this['_univerInstanceService']=_0x5e6819,this[_0x42a1ea(0x1bd)]=_0x5c1ac8,this[_0x42a1ea(0x19f)]=_0x4cd30f;}async[_0x5d78a5(0x1a5)](_0x200e9b,_0x4dc546){const _0x5e65b5=_0x5d78a5;return await this['_snapshotService'][_0x5e65b5(0x1a8)](_0x200e9b,0x0,_0x4dc546)?(await this['_collaborationController'][_0x5e65b5(0x1c5)](_0x200e9b),this[_0x5e65b5(0x18f)][_0x5e65b5(0x1ce)](_0x200e9b)):null;}async[_0x5d78a5(0x19e)](_0x1f50d9,_0x531327){const _0x5b8fe2=_0x5d78a5;return await this[_0x5b8fe2(0x1bd)][_0x5b8fe2(0x1be)](_0x1f50d9,0x0,_0x531327)?(await this[_0x5b8fe2(0x19f)][_0x5b8fe2(0x1c5)](_0x1f50d9),this[_0x5b8fe2(0x18f)][_0x5b8fe2(0x1b0)](_0x1f50d9)):null;}async[_0x5d78a5(0x1b4)](_0x15d3ee,_0x54cdf1){const _0x1dd247=_0x5d78a5;return await this['_snapshotService'][_0x1dd247(0x1cc)](_0x15d3ee,0x0,_0x54cdf1)?(await this[_0x1dd247(0x19f)]['readyForCollab'](_0x15d3ee),this[_0x1dd247(0x18f)][_0x1dd247(0x1b3)](_0x15d3ee)):null;}async[_0x5d78a5(0x193)](_0x1c54b9,_0x5ad941){const _0x6b70bc=_0x5d78a5;return await this['_snapshotService'][_0x6b70bc(0x1d8)](_0x1c54b9,0x0,_0x5ad941)?(await this[_0x6b70bc(0x19f)]['readyForCollab'](_0x1c54b9),this['_handler']['getPresentation'](_0x1c54b9)):null;}async['loadBoardAsync'](_0x573188,_0x4a41c1){const _0x2cbc9e=_0x5d78a5;return await this[_0x2cbc9e(0x1bd)][_0x2cbc9e(0x192)](_0x573188,0x0,_0x4a41c1)?(await this[_0x2cbc9e(0x19f)][_0x2cbc9e(0x1c5)](_0x573188),this[_0x2cbc9e(0x18f)][_0x2cbc9e(0x1b5)](_0x573188)):null;}[_0x5d78a5(0x1a7)](_0x17ef6e,_0x481d72){const _0x10b68e=_0x5d78a5;return _0x2f175a(this[_0x10b68e(0x1b8)][_0x10b68e(0x18e)](_0x3f0d11)['waitForRoom$'](_0x17ef6e)['pipe'](_0x3414aa(_0x32b6f0=>_0x32b6f0[_0x10b68e(0x1a6)]))['subscribe'](_0x5b48c5=>_0x481d72(Array['from'](_0x5b48c5[_0x10b68e(0x1ab)]()))));}[_0x5d78a5(0x1c7)](_0x211273){const _0x3ddaca=_0x5d78a5;var _0x24a43c;let _0x3a52c0=this[_0x3ddaca(0x1d6)](_0x211273);if(!_0x3a52c0)return _0x550de0[_0x3ddaca(0x190)];let _0x16cd75=this['_collaborationController'][_0x3ddaca(0x1bf)](_0x3a52c0);return(_0x24a43c=_0x16cd75==null?void 0x0:_0x16cd75[_0x3ddaca(0x1b1)][_0x3ddaca(0x1a0)])==null?_0x550de0['NOT_COLLAB']:_0x24a43c;}['flush'](_0x40ccb1,_0x26278d={}){const _0x2b382c=_0x5d78a5;var _0x1e8d19;let _0xab9389=this['_resolveUnitId'](_0x40ccb1);if(!_0xab9389)return Promise[_0x2b382c(0x1bc)](Error(_0x2b382c(0x1cb)));let _0x366cdd=this['_collaborationController'][_0x2b382c(0x1bf)](_0xab9389);if(!_0x366cdd)return Promise['reject'](Error(_0x2b382c(0x19c)+_0xab9389+_0x2b382c(0x198)));let _0x3bece2=_0x366cdd['state'][_0x2b382c(0x1a0)];if(_0x3bece2===_0x550de0[_0x2b382c(0x1b7)])return Promise['resolve']();let _0xc83c29=b(_0xab9389,_0x3bece2);if(_0xc83c29)return Promise[_0x2b382c(0x1bc)](_0xc83c29);let _0x557034=(_0x1e8d19=_0x26278d['timeout'])==null?0x7530:_0x1e8d19;return new Promise((_0x21a20f,_0x3662ea)=>{const _0x4b96b2=_0x2b382c;let _0x46c109=!0x1,_0x3cc416=null,_0x343cdd=setTimeout(()=>{const _0x39841b=_0x3639;_0x46c109=!0x0,_0x3cc416==null||_0x3cc416[_0x39841b(0x196)](),_0x3662ea(Error('[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22'+_0xab9389+_0x39841b(0x194)+_0x557034+'ms.'));},_0x557034),_0x506266=()=>{const _0x50182b=_0x3639;_0x46c109=!0x0,clearTimeout(_0x343cdd),_0x3cc416==null||_0x3cc416[_0x50182b(0x196)]();};_0x3cc416=_0x366cdd[_0x4b96b2(0x1b2)][_0x4b96b2(0x1c0)](_0x1d833f=>{const _0x1567de=_0x4b96b2;if(_0x46c109)return;if(_0x1d833f===_0x550de0[_0x1567de(0x1b7)]){_0x506266(),_0x21a20f();return;}let _0x3db420=b(_0xab9389,_0x1d833f);_0x3db420&&(_0x506266(),_0x3662ea(_0x3db420));});});}[_0x5d78a5(0x1d6)](_0x47e6ee){const _0x284a7d=_0x5d78a5;var _0x21671b;return _0x47e6ee||((_0x21671b=this[_0x284a7d(0x19d)][_0x284a7d(0x1cf)]())==null?void 0x0:_0x21671b['getUnitId']());}};y=v([_(0x1,_0x2ab994(_0x3c2ee8)),_(0x2,_0x110141),_(0x3,_0x2ab994(_0x27cb23)),_(0x4,_0x2ab994(_0x1e7124))],y);function b(_0x3d3c56,_0x508440){const _0x1f7e19=_0x5d78a5;return _0x508440===_0x550de0[_0x1f7e19(0x1b6)]||_0x508440===_0x550de0[_0x1f7e19(0x190)]?Error(_0x1f7e19(0x1ca)+_0x3d3c56+'\x22\x20while\x20collaboration\x20status\x20is\x20'+_0x508440+'.'):null;}var x=class extends _0x569220{[_0x5d78a5(0x191)](_0x259f33){const _0x1e7306=_0x5d78a5;let _0x24e710=_0x259f33[_0x1e7306(0x18e)](_0x1e7124);this[_0x1e7306(0x1c9)](this[_0x1e7306(0x1c4)](this[_0x1e7306(0x1a1)][_0x1e7306(0x1a9)],()=>{const _0xa1bfe0=_0x1e7306;let _0x3d9afe=new _0x32b43a(),_0x4dd55f=_0x24e710[_0xa1bfe0(0x1cd)][_0xa1bfe0(0x1c0)](_0x135695=>{const _0x2e85d0=_0xa1bfe0;let _0x3bd9e9=_0x135695['status$']['subscribe'](_0x5a402e=>{const _0x4ce271=_0x3639;let _0x498073={'unitId':_0x135695[_0x4ce271(0x1c3)],'status':_0x5a402e};this[_0x4ce271(0x19a)](this[_0x4ce271(0x1a1)][_0x4ce271(0x1a9)],_0x498073);});_0x3d9afe[_0x2e85d0(0x1af)](_0x2f175a(_0x3bd9e9));});return _0x3d9afe[_0xa1bfe0(0x1af)](_0x2f175a(_0x4dd55f)),_0x3d9afe;}));}[_0x5d78a5(0x1d2)](){const _0x50d5eb=_0x5d78a5;return this[_0x50d5eb(0x1b8)]['createInstance'](y,{'getWorkbook':_0x2f1fa8=>this[_0x50d5eb(0x1ce)](_0x2f1fa8),'getDocument':_0x374608=>this['getDocument'](_0x374608),'getPresentation':_0x588715=>this[_0x50d5eb(0x1d1)](_0x588715),'getBase':_0x87ae24=>this[_0x50d5eb(0x1b3)](_0x87ae24),'getBoard':_0x36874e=>this[_0x50d5eb(0x1b5)](_0x36874e)});}[_0x5d78a5(0x1aa)](_0x3e869d,_0x349e1a,_0x2d3d58){const _0x300173=_0x5d78a5;return this[_0x300173(0x1b8)][_0x300173(0x18e)](_0x49dec7)[_0x300173(0x197)](_0x3e869d,_0x349e1a,_0x2d3d58);}[_0x5d78a5(0x1c6)](_0x270a81,_0x3f3b16,_0x5a86c7){const _0x27d016=_0x5d78a5;return this[_0x27d016(0x1b8)][_0x27d016(0x18e)](_0x49dec7)[_0x27d016(0x1ad)](_0x270a81,_0x3f3b16,_0x5a86c7);}};_0x569220['extend'](x);export{y as FCollaboration};
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};