@univerjs-pro/collaboration-client 1.0.0-alpha.0 → 1.0.0-alpha.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 (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 +13 -13
@@ -1 +1 @@
1
- const _0x125272=_0x443e;(function(_0x5bd169,_0x3a81d5){const _0xb5c566=_0x443e,_0x58255b=_0x5bd169();while(!![]){try{const _0x3b79d8=-parseInt(_0xb5c566(0x1b4))/0x1+parseInt(_0xb5c566(0x1b2))/0x2*(parseInt(_0xb5c566(0x1b7))/0x3)+parseInt(_0xb5c566(0x1c5))/0x4+-parseInt(_0xb5c566(0x1c6))/0x5*(parseInt(_0xb5c566(0x1c0))/0x6)+-parseInt(_0xb5c566(0x1cb))/0x7*(-parseInt(_0xb5c566(0x1bc))/0x8)+parseInt(_0xb5c566(0x1ca))/0x9*(parseInt(_0xb5c566(0x1c1))/0xa)+parseInt(_0xb5c566(0x1b6))/0xb;if(_0x3b79d8===_0x3a81d5)break;else _0x58255b['push'](_0x58255b['shift']());}catch(_0x186e6c){_0x58255b['push'](_0x58255b['shift']());}}}(_0x41be,0x723dd));function _0x443e(_0xef0ab0,_0x54ce90){_0xef0ab0=_0xef0ab0-0x1b2;const _0x41be01=_0x41be();let _0x443eb0=_0x41be01[_0xef0ab0];return _0x443eb0;}const e={'collaboration-client':{'collabClient':{'tooltip':{'reconnect':_0x125272(0x1b5)}},'collabStatus':{'fetchMiss':_0x125272(0x1be),'conflict':_0x125272(0x1b8),'notCollab':_0x125272(0x1c4),'synced':_0x125272(0x1bd),'syncing':_0x125272(0x1cd),'offline':'已離線,編輯將儲存在本機'},'session':{'connection-failed':'連線失敗,請檢查您的網路。','will-retry':_0x125272(0x1bf),'room-full':_0x125272(0x1b9),'join-failed':_0x125272(0x1c9),'room-not-exists':_0x125272(0x1cc),'room-permission-denied':'沒有協作權限,您的編輯將暫存於本機。','room-cnt-exceeds':'協作文件數量超過限制,您的編輯將暫存於本機。','collaboration-timeout':_0x125272(0x1c8)},'conflict':{'title':_0x125272(0x1c3),'content':_0x125272(0x1b3)},'permission':{'title':_0x125272(0x1bb),'content':_0x125272(0x1ba)},'collaboration':{'single-unit':{'warning':_0x125272(0x1c7)},'closeRoom':'由於協作房間已關閉,編輯權限已被收回。'},'auth':{'needGotoLoginAlert':_0x125272(0x1c2)}}};export{e as default};function _0x41be(){const _0x5e99ea=['您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。','協作衝突','本機檔案','299620QVfRQY','10865zMWEvx','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','伺服器未回應協作請求,您的編輯將儲存在本機。','加入協作失敗,請稍後重試,您的編輯將暫存於本機。','7344BEurYl','17843kaYLZp','加入協作失敗,您的編輯將暫存於本機。','同步中...','14fwhcCZ','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','689660VfjLLC','點擊重新連線','9701483yymKYq','64902pXosLK','編輯衝突','此文件協作人數已達上限,您的編輯將暫存於本機。','您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。','認證錯誤','1592iaImJG','已同步','正在擷取伺服器資料...','連線失敗,將在稍後重試連線。','2364SxbWbJ','4880Odblqj'];_0x41be=function(){return _0x5e99ea;};return _0x41be();}
1
+ const _0x3d2533=_0x25c8;function _0x27b1(){const _0x37c3db=['216BuLsuT','您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。','編輯衝突','343532JhilrH','此文件協作人數已達上限,您的編輯將暫存於本機。','69915bbtlCz','伺服器未回應協作請求,您的編輯將儲存在本機。','492oBGPYn','連線失敗,請檢查您的網路。','加入協作失敗,您的編輯將暫存於本機。','已離線,編輯將儲存在本機','同步中...','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','正在擷取伺服器資料...','點擊重新連線','87965inQleH','連線失敗,將在稍後重試連線。','5612406FheadX','5444248OMNDEm','協作文件數量超過限制,您的編輯將暫存於本機。','協作衝突','您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。','61602NWGCcS','46049157sIYXFm'];_0x27b1=function(){return _0x37c3db;};return _0x27b1();}(function(_0x251d85,_0x3ea4d9){const _0x149bdd=_0x25c8,_0x1f1665=_0x251d85();while(!![]){try{const _0x2463e1=parseInt(_0x149bdd(0x8b))/0x1+parseInt(_0x149bdd(0x84))/0x2+parseInt(_0x149bdd(0x7f))/0x3+parseInt(_0x149bdd(0x80))/0x4+-parseInt(_0x149bdd(0x7d))/0x5*(-parseInt(_0x149bdd(0x8d))/0x6)+parseInt(_0x149bdd(0x89))/0x7*(parseInt(_0x149bdd(0x86))/0x8)+-parseInt(_0x149bdd(0x85))/0x9;if(_0x2463e1===_0x3ea4d9)break;else _0x1f1665['push'](_0x1f1665['shift']());}catch(_0x19ddbc){_0x1f1665['push'](_0x1f1665['shift']());}}}(_0x27b1,0xf0285));const e={'collaboration-client':{'collabClient':{'tooltip':{'reconnect':_0x3d2533(0x7c)}},'collabStatus':{'fetchMiss':_0x3d2533(0x7b),'conflict':_0x3d2533(0x88),'notCollab':'本機檔案','synced':'已同步','syncing':_0x3d2533(0x91),'offline':_0x3d2533(0x90)},'session':{'connection-failed':_0x3d2533(0x8e),'will-retry':_0x3d2533(0x7e),'room-full':_0x3d2533(0x8a),'join-failed':'加入協作失敗,請稍後重試,您的編輯將暫存於本機。','room-not-exists':_0x3d2533(0x8f),'room-permission-denied':'沒有協作權限,您的編輯將暫存於本機。','room-cnt-exceeds':_0x3d2533(0x81),'collaboration-timeout':_0x3d2533(0x8c)},'conflict':{'title':_0x3d2533(0x82),'content':_0x3d2533(0x92)},'permission':{'title':'認證錯誤','content':_0x3d2533(0x87)},'collaboration':{'single-unit':{'warning':'您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。'},'closeRoom':'由於協作房間已關閉,編輯權限已被收回。'},'auth':{'needGotoLoginAlert':_0x3d2533(0x83)}}};function _0x25c8(_0x1141fa,_0x282a30){_0x1141fa=_0x1141fa-0x7b;const _0x27b152=_0x27b1();let _0x25c80c=_0x27b152[_0x1141fa];return _0x25c80c;}export{e as default};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x5336c5=_0x2a12;(function(_0x2b1f5e,_0x5ef170){const _0x83d91a=_0x2a12,_0x33aeec=_0x2b1f5e();while(!![]){try{const _0x3f166b=parseInt(_0x83d91a(0x1e2))/0x1*(-parseInt(_0x83d91a(0x1d6))/0x2)+parseInt(_0x83d91a(0x1ce))/0x3+parseInt(_0x83d91a(0x1d7))/0x4*(-parseInt(_0x83d91a(0x1c5))/0x5)+parseInt(_0x83d91a(0x1cb))/0x6+-parseInt(_0x83d91a(0x1d5))/0x7*(parseInt(_0x83d91a(0x1ea))/0x8)+-parseInt(_0x83d91a(0x1f5))/0x9+parseInt(_0x83d91a(0x1d1))/0xa*(parseInt(_0x83d91a(0x1df))/0xb);if(_0x3f166b===_0x5ef170)break;else _0x33aeec['push'](_0x33aeec['shift']());}catch(_0x27e8be){_0x33aeec['push'](_0x33aeec['shift']());}}}(_0x1810,0xadb5f));import{CollaborationController as _0x42f083,CollaborationStatus as _0x261e17,DataLoaderService as _0x382443,MemberService as _0x162476}from'@univerjs-pro/collaboration-client';import{FBase as _0x4fa887,FEnum as _0x55ad85,FEventName as _0x5ae43d,FUniver as _0x4c266a}from'@univerjs/core/facade';import{DisposableCollection as _0xaa38c,IUniverInstanceService as _0x2f92dc,Inject as _0x480ff5,Injector as _0x18114b,toDisposable as _0x278fff}from'@univerjs/core';import{SnapshotService as _0x51b064}from'@univerjs-pro/collaboration';import{switchMap as _0x19b790}from'rxjs';var h=class extends _0x55ad85{get[_0x5336c5(0x1ef)](){return _0x261e17;}};_0x55ad85[_0x5336c5(0x1dd)](h);var g=class extends _0x5ae43d{get['CollaborationStatusChanged'](){const _0x587b81=_0x5336c5;return _0x587b81(0x1c9);}};_0x5ae43d['extend'](g);function _(_0x1b4967,_0x1b8e4d){return function(_0x53a32a,_0x4b9628){_0x1b8e4d(_0x53a32a,_0x4b9628,_0x1b4967);};}function v(_0x346a50,_0x33e994,_0x135e91,_0x3962c0){const _0x263609=_0x5336c5;var _0x47a1f5=arguments[_0x263609(0x1c1)],_0x26527d=_0x47a1f5<0x3?_0x33e994:_0x3962c0===null?_0x3962c0=Object[_0x263609(0x1c6)](_0x33e994,_0x135e91):_0x3962c0,_0x23f6dc;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x263609(0x1ba))_0x26527d=Reflect[_0x263609(0x1d4)](_0x346a50,_0x33e994,_0x135e91,_0x3962c0);else{for(var _0x4b769a=_0x346a50[_0x263609(0x1c1)]-0x1;_0x4b769a>=0x0;_0x4b769a--)(_0x23f6dc=_0x346a50[_0x4b769a])&&(_0x26527d=(_0x47a1f5<0x3?_0x23f6dc(_0x26527d):_0x47a1f5>0x3?_0x23f6dc(_0x33e994,_0x135e91,_0x26527d):_0x23f6dc(_0x33e994,_0x135e91))||_0x26527d);}return _0x47a1f5>0x3&&_0x26527d&&Object[_0x263609(0x1c8)](_0x33e994,_0x135e91,_0x26527d),_0x26527d;}let y=class extends _0x4fa887{constructor(_0x4c01ca,_0x2b2c7c,_0x2ab56a,_0x4b1a44,_0x2df179){const _0x567643=_0x5336c5;super(),this['_handler']=_0x4c01ca,this[_0x567643(0x1e7)]=_0x2b2c7c,this[_0x567643(0x1e6)]=_0x2ab56a,this[_0x567643(0x1bf)]=_0x4b1a44,this['_collaborationController']=_0x2df179;}async[_0x5336c5(0x1de)](_0x2a454f,_0x5b7212){const _0x1781c9=_0x5336c5;return await this[_0x1781c9(0x1bf)][_0x1781c9(0x1bd)](_0x2a454f,0x0,_0x5b7212)?(await this[_0x1781c9(0x1e3)][_0x1781c9(0x1d0)](_0x2a454f),this[_0x1781c9(0x1f1)][_0x1781c9(0x1da)](_0x2a454f)):null;}async[_0x5336c5(0x1e4)](_0x19cd05,_0x43bedb){const _0x290c76=_0x5336c5;return await this[_0x290c76(0x1bf)][_0x290c76(0x1d2)](_0x19cd05,0x0,_0x43bedb)?(await this[_0x290c76(0x1e3)][_0x290c76(0x1d0)](_0x19cd05),this[_0x290c76(0x1f1)][_0x290c76(0x1f6)](_0x19cd05)):null;}async['loadBaseAsync'](_0x3da25b,_0x2e5ab1){const _0x60dc95=_0x5336c5;return await this[_0x60dc95(0x1bf)][_0x60dc95(0x1f3)](_0x3da25b,0x0,_0x2e5ab1)?(await this[_0x60dc95(0x1e3)][_0x60dc95(0x1d0)](_0x3da25b),this[_0x60dc95(0x1f1)]['getBase'](_0x3da25b)):null;}async[_0x5336c5(0x1c2)](_0xb676b4,_0x68df2e){const _0x3f4dc5=_0x5336c5;return await this[_0x3f4dc5(0x1bf)][_0x3f4dc5(0x1f4)](_0xb676b4,0x0,_0x68df2e)?(await this[_0x3f4dc5(0x1e3)][_0x3f4dc5(0x1d0)](_0xb676b4),this[_0x3f4dc5(0x1f1)][_0x3f4dc5(0x1e0)](_0xb676b4)):null;}[_0x5336c5(0x1cc)](_0x2fa2bf,_0x543682){const _0x405a4f=_0x5336c5;return _0x278fff(this[_0x405a4f(0x1e7)][_0x405a4f(0x1c7)](_0x162476)[_0x405a4f(0x1e8)](_0x2fa2bf)[_0x405a4f(0x1e1)](_0x19b790(_0x5e123a=>_0x5e123a['members$']))[_0x405a4f(0x1c0)](_0x3b616e=>_0x543682(Array['from'](_0x3b616e[_0x405a4f(0x1eb)]()))));}[_0x5336c5(0x1ca)](_0x5ebde8){const _0x3bd8ae=_0x5336c5;var _0xec70d1;let _0x48888e;if(_0x5ebde8)_0x48888e=_0x5ebde8;else{let _0x3cdc23=this['_univerInstanceService'][_0x3bd8ae(0x1f2)]();_0x48888e=_0x3cdc23==null?void 0x0:_0x3cdc23[_0x3bd8ae(0x1ed)]();}if(!_0x48888e)return _0x261e17[_0x3bd8ae(0x1be)];let _0x5ef77e=this[_0x3bd8ae(0x1e3)][_0x3bd8ae(0x1c3)](_0x48888e);return(_0xec70d1=_0x5ef77e==null?void 0x0:_0x5ef77e[_0x3bd8ae(0x1ec)][_0x3bd8ae(0x1ee)])==null?_0x261e17[_0x3bd8ae(0x1be)]:_0xec70d1;}};y=v([_(0x1,_0x480ff5(_0x18114b)),_(0x2,_0x2f92dc),_(0x3,_0x480ff5(_0x51b064)),_(0x4,_0x480ff5(_0x42f083))],y);function _0x2a12(_0x8d7bce,_0x49db62){_0x8d7bce=_0x8d7bce-0x1ba;const _0x181094=_0x1810();let _0x2a124e=_0x181094[_0x8d7bce];return _0x2a124e;}var b=class extends _0x4c266a{[_0x5336c5(0x1e9)](_0x16b8e0){const _0x225704=_0x5336c5;let _0x37adb5=_0x16b8e0[_0x225704(0x1c7)](_0x42f083);this[_0x225704(0x1db)](this[_0x225704(0x1cd)](this[_0x225704(0x1cf)][_0x225704(0x1c9)],()=>{const _0x561187=_0x225704;let _0x20bbc7=new _0xaa38c(),_0x56c9ba=_0x37adb5['entityInit$'][_0x561187(0x1c0)](_0x4d2c16=>{const _0x454769=_0x561187;let _0x2a9d95=_0x4d2c16[_0x454769(0x1c4)]['subscribe'](_0x16ea9f=>{const _0x1b56fa=_0x454769;let _0x5d045e={'unitId':_0x4d2c16['unitID'],'status':_0x16ea9f};this['fireEvent'](this['Event'][_0x1b56fa(0x1c9)],_0x5d045e);});_0x20bbc7[_0x454769(0x1d3)](_0x278fff(_0x2a9d95));});return _0x20bbc7[_0x561187(0x1d3)](_0x278fff(_0x56c9ba)),_0x20bbc7;}));}[_0x5336c5(0x1e5)](){const _0x1ae042=_0x5336c5;return this['_injector'][_0x1ae042(0x1dc)](y,{'getWorkbook':_0x37e84a=>this[_0x1ae042(0x1da)](_0x37e84a),'getDocument':_0x18af1e=>this[_0x1ae042(0x1f6)](_0x18af1e),'getPresentation':_0x36176c=>this[_0x1ae042(0x1e0)](_0x36176c),'getBase':_0x45da8c=>this[_0x1ae042(0x1d8)](_0x45da8c)});}[_0x5336c5(0x1f0)](_0x130c8e,_0x54e985,_0x4c390c){const _0x3dad4a=_0x5336c5;return this[_0x3dad4a(0x1e7)][_0x3dad4a(0x1c7)](_0x382443)[_0x3dad4a(0x1d9)](_0x130c8e,_0x54e985,_0x4c390c);}[_0x5336c5(0x1bc)](_0x4c8785,_0x37142a,_0x5d8467){const _0xdd7ad6=_0x5336c5;return this[_0xdd7ad6(0x1e7)][_0xdd7ad6(0x1c7)](_0x382443)[_0xdd7ad6(0x1bb)](_0x4c8785,_0x37142a,_0x5d8467);}};_0x4c266a[_0x5336c5(0x1dd)](b);export{y as FCollaboration};function _0x1810(){const _0x3165d2=['getPresentation','pipe','19727pVQhuZ','_collaborationController','loadDocAsync','getCollaboration','_univerInstanceService','_injector','waitForRoom$','_initialize','1514656IKLxSH','values','state','getUnitId','status','CollaborationStatus','loadServerUnit','_handler','getFocusedUnit','loadBase','loadSlide','1280070YUkhfg','getDocument','function','loadUnitOfRevision','loadServerUnitOfRevision','loadSheet','NOT_COLLAB','_snapshotService','subscribe','length','loadSlideAsync','getCollabEntity','status$','23965HuZpWA','getOwnPropertyDescriptor','get','defineProperty','CollaborationStatusChanged','getCollaborationStatus','105990ehsizV','subscribeCollaborators','registerEventHandler','3331608okxroL','Event','readyForCollab','72190HaIbKn','loadDoc','add','decorate','21yCtaBC','32DfpUpv','76orXYEm','getBase','loadUnit','getWorkbook','disposeWithMe','createInstance','extend','loadSheetAsync','1067TMmoyD'];_0x1810=function(){return _0x3165d2;};return _0x1810();}
1
+ const _0x476c53=_0x3c77;(function(_0x5839fb,_0x3ae386){const _0x4cd1de=_0x3c77,_0x5efe4e=_0x5839fb();while(!![]){try{const _0x546c92=-parseInt(_0x4cd1de(0x1fd))/0x1*(parseInt(_0x4cd1de(0x223))/0x2)+parseInt(_0x4cd1de(0x209))/0x3+parseInt(_0x4cd1de(0x1f2))/0x4*(parseInt(_0x4cd1de(0x21f))/0x5)+parseInt(_0x4cd1de(0x1f6))/0x6+parseInt(_0x4cd1de(0x218))/0x7+parseInt(_0x4cd1de(0x206))/0x8+-parseInt(_0x4cd1de(0x1f7))/0x9*(parseInt(_0x4cd1de(0x1f4))/0xa);if(_0x546c92===_0x3ae386)break;else _0x5efe4e['push'](_0x5efe4e['shift']());}catch(_0x561a5d){_0x5efe4e['push'](_0x5efe4e['shift']());}}}(_0x586c,0xd90ea));import{CollaborationController as _0x3462eb,CollaborationStatus as _0x5a0a55,DataLoaderService as _0x5d1ed8,MemberService as _0x176c5b}from'@univerjs-pro/collaboration-client';import{FBase as _0x51de27,FEnum as _0x20068e,FEventName as _0x5dce4e,FUniver as _0x294afc}from'@univerjs/core/facade';function _0x586c(){const _0x2dfbb0=['waitForRoom$','loadSlideAsync','_initialize','disposeWithMe','defineProperty','extend','length','loadUnit','subscribeCollaborators','loadSheetAsync','8517761NjPyir','Event','loadBaseAsync','function','CollaborationStatusChanged','createInstance','loadSlide','1527980bpCqAC','_univerInstanceService','loadBase','_collaborationController','1238dFSWPf','getBase','object','getCollabEntity','20JXBgCm','loadUnitOfRevision','9908380NMXUFg','get','3337416VtMxTd','27enBSGX','_snapshotService','loadSheet','registerEventHandler','getDocument','members$','1879JwiYWZ','getCollaboration','state','_injector','values','add','subscribe','NOT_COLLAB','readyForCollab','2538224WWTEoF','getFocusedUnit','status$','4219092JotuWl','_handler','fireEvent','from','getWorkbook'];_0x586c=function(){return _0x2dfbb0;};return _0x586c();}import{DisposableCollection as _0xeb5346,IUniverInstanceService as _0x9008ea,Inject as _0x1aa1c8,Injector as _0x2d3a23,toDisposable as _0x455548}from'@univerjs/core';import{SnapshotService as _0x5a891b}from'@univerjs-pro/collaboration';import{switchMap as _0x27306d}from'rxjs';var h=class extends _0x20068e{get['CollaborationStatus'](){return _0x5a0a55;}};_0x20068e['extend'](h);var g=class extends _0x5dce4e{get[_0x476c53(0x21c)](){return'CollaborationStatusChanged';}};_0x5dce4e[_0x476c53(0x213)](g);function _(_0x156f6b,_0x1a4f8e){return function(_0x446c11,_0x31bd42){_0x1a4f8e(_0x446c11,_0x31bd42,_0x156f6b);};}function v(_0x16e09d,_0x166fba,_0x5a99e3,_0x269118){const _0x4f028f=_0x476c53;var _0x27825a=arguments[_0x4f028f(0x214)],_0x39207e=_0x27825a<0x3?_0x166fba:_0x269118===null?_0x269118=Object['getOwnPropertyDescriptor'](_0x166fba,_0x5a99e3):_0x269118,_0x5c96f6;if(typeof Reflect==_0x4f028f(0x225)&&typeof Reflect['decorate']==_0x4f028f(0x21b))_0x39207e=Reflect['decorate'](_0x16e09d,_0x166fba,_0x5a99e3,_0x269118);else{for(var _0x1fdb3e=_0x16e09d['length']-0x1;_0x1fdb3e>=0x0;_0x1fdb3e--)(_0x5c96f6=_0x16e09d[_0x1fdb3e])&&(_0x39207e=(_0x27825a<0x3?_0x5c96f6(_0x39207e):_0x27825a>0x3?_0x5c96f6(_0x166fba,_0x5a99e3,_0x39207e):_0x5c96f6(_0x166fba,_0x5a99e3))||_0x39207e);}return _0x27825a>0x3&&_0x39207e&&Object[_0x4f028f(0x212)](_0x166fba,_0x5a99e3,_0x39207e),_0x39207e;}let y=class extends _0x51de27{constructor(_0x420953,_0x129524,_0x2ffaa5,_0x5b23e4,_0x16cd1d){const _0x331247=_0x476c53;super(),this['_handler']=_0x420953,this[_0x331247(0x200)]=_0x129524,this[_0x331247(0x220)]=_0x2ffaa5,this[_0x331247(0x1f8)]=_0x5b23e4,this[_0x331247(0x222)]=_0x16cd1d;}async[_0x476c53(0x217)](_0x35cfea,_0x4c2b48){const _0x2db665=_0x476c53;return await this[_0x2db665(0x1f8)][_0x2db665(0x1f9)](_0x35cfea,0x0,_0x4c2b48)?(await this[_0x2db665(0x222)][_0x2db665(0x205)](_0x35cfea),this[_0x2db665(0x20a)][_0x2db665(0x20d)](_0x35cfea)):null;}async['loadDocAsync'](_0x51f8f1,_0x616486){const _0x5b0e3a=_0x476c53;return await this[_0x5b0e3a(0x1f8)]['loadDoc'](_0x51f8f1,0x0,_0x616486)?(await this[_0x5b0e3a(0x222)][_0x5b0e3a(0x205)](_0x51f8f1),this[_0x5b0e3a(0x20a)][_0x5b0e3a(0x1fb)](_0x51f8f1)):null;}async[_0x476c53(0x21a)](_0x114df3,_0x43dec6){const _0x3288f7=_0x476c53;return await this[_0x3288f7(0x1f8)][_0x3288f7(0x221)](_0x114df3,0x0,_0x43dec6)?(await this['_collaborationController'][_0x3288f7(0x205)](_0x114df3),this[_0x3288f7(0x20a)]['getBase'](_0x114df3)):null;}async[_0x476c53(0x20f)](_0x57ab71,_0x53c1f4){const _0x4218de=_0x476c53;return await this[_0x4218de(0x1f8)][_0x4218de(0x21e)](_0x57ab71,0x0,_0x53c1f4)?(await this[_0x4218de(0x222)]['readyForCollab'](_0x57ab71),this[_0x4218de(0x20a)]['getPresentation'](_0x57ab71)):null;}[_0x476c53(0x216)](_0x2c7b7d,_0x131b1b){const _0x34e82c=_0x476c53;return _0x455548(this[_0x34e82c(0x200)]['get'](_0x176c5b)[_0x34e82c(0x20e)](_0x2c7b7d)['pipe'](_0x27306d(_0x593e3d=>_0x593e3d[_0x34e82c(0x1fc)]))[_0x34e82c(0x203)](_0x336052=>_0x131b1b(Array[_0x34e82c(0x20c)](_0x336052[_0x34e82c(0x201)]()))));}['getCollaborationStatus'](_0x2dea36){const _0x37ec6a=_0x476c53;var _0x28df97;let _0x4e7a71;if(_0x2dea36)_0x4e7a71=_0x2dea36;else{let _0x171944=this[_0x37ec6a(0x220)][_0x37ec6a(0x207)]();_0x4e7a71=_0x171944==null?void 0x0:_0x171944['getUnitId']();}if(!_0x4e7a71)return _0x5a0a55[_0x37ec6a(0x204)];let _0x50c1b1=this[_0x37ec6a(0x222)][_0x37ec6a(0x1f1)](_0x4e7a71);return(_0x28df97=_0x50c1b1==null?void 0x0:_0x50c1b1[_0x37ec6a(0x1ff)]['status'])==null?_0x5a0a55['NOT_COLLAB']:_0x28df97;}};y=v([_(0x1,_0x1aa1c8(_0x2d3a23)),_(0x2,_0x9008ea),_(0x3,_0x1aa1c8(_0x5a891b)),_(0x4,_0x1aa1c8(_0x3462eb))],y);function _0x3c77(_0x1a6fdb,_0x3534d0){_0x1a6fdb=_0x1a6fdb-0x1f1;const _0x586c18=_0x586c();let _0x3c7748=_0x586c18[_0x1a6fdb];return _0x3c7748;}var b=class extends _0x294afc{[_0x476c53(0x210)](_0x5777b7){const _0x366080=_0x476c53;let _0x543f83=_0x5777b7[_0x366080(0x1f5)](_0x3462eb);this[_0x366080(0x211)](this[_0x366080(0x1fa)](this[_0x366080(0x219)][_0x366080(0x21c)],()=>{const _0x21f9ad=_0x366080;let _0x11a753=new _0xeb5346(),_0x5793dd=_0x543f83['entityInit$']['subscribe'](_0x3513e5=>{const _0xe54f22=_0x3c77;let _0x3a4f3d=_0x3513e5[_0xe54f22(0x208)][_0xe54f22(0x203)](_0x5c47b1=>{const _0x3a6261=_0xe54f22;let _0xb8e473={'unitId':_0x3513e5['unitID'],'status':_0x5c47b1};this[_0x3a6261(0x20b)](this['Event'][_0x3a6261(0x21c)],_0xb8e473);});_0x11a753[_0xe54f22(0x202)](_0x455548(_0x3a4f3d));});return _0x11a753[_0x21f9ad(0x202)](_0x455548(_0x5793dd)),_0x11a753;}));}[_0x476c53(0x1fe)](){const _0x4d8f77=_0x476c53;return this[_0x4d8f77(0x200)][_0x4d8f77(0x21d)](y,{'getWorkbook':_0x5c7581=>this[_0x4d8f77(0x20d)](_0x5c7581),'getDocument':_0x1719f7=>this['getDocument'](_0x1719f7),'getPresentation':_0x499149=>this['getPresentation'](_0x499149),'getBase':_0x3c8a03=>this[_0x4d8f77(0x224)](_0x3c8a03)});}['loadServerUnit'](_0x2ddd21,_0x46a621,_0x2029f1){const _0x209a7f=_0x476c53;return this[_0x209a7f(0x200)][_0x209a7f(0x1f5)](_0x5d1ed8)[_0x209a7f(0x215)](_0x2ddd21,_0x46a621,_0x2029f1);}['loadServerUnitOfRevision'](_0x23108e,_0x4bf4d6,_0x338e35){const _0x41e174=_0x476c53;return this[_0x41e174(0x200)][_0x41e174(0x1f5)](_0x5d1ed8)[_0x41e174(0x1f3)](_0x23108e,_0x4bf4d6,_0x338e35);}};_0x294afc[_0x476c53(0x213)](b);export{y as FCollaboration};