@univerjs-pro/collaboration-client 1.0.0-alpha.7 → 1.0.0-alpha.8

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 (92) 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 +6 -0
  65. package/lib/types/controllers/collaboration/collaboration-state.d.ts +3 -4
  66. package/lib/types/controllers/collaboration/utils/changeset-utils.d.ts +8 -5
  67. package/lib/types/index.d.ts +2 -3
  68. package/lib/types/services/attachment-remote/attachment-io.service.d.ts +9 -4
  69. package/lib/types/services/attachment-remote/types.d.ts +2 -19
  70. package/lib/types/services/member/member.service.d.ts +2 -15
  71. package/lib/umd/facade.js +1 -1
  72. package/lib/umd/index.js +1 -1
  73. package/lib/umd/locale/ar-SA.js +1 -1
  74. package/lib/umd/locale/ca-ES.js +1 -1
  75. package/lib/umd/locale/de-DE.js +1 -1
  76. package/lib/umd/locale/en-US.js +1 -1
  77. package/lib/umd/locale/es-ES.js +1 -1
  78. package/lib/umd/locale/fa-IR.js +1 -1
  79. package/lib/umd/locale/fr-FR.js +1 -1
  80. package/lib/umd/locale/id-ID.js +1 -1
  81. package/lib/umd/locale/it-IT.js +1 -1
  82. package/lib/umd/locale/ja-JP.js +1 -1
  83. package/lib/umd/locale/ko-KR.js +1 -1
  84. package/lib/umd/locale/pl-PL.js +1 -1
  85. package/lib/umd/locale/pt-BR.js +1 -1
  86. package/lib/umd/locale/ru-RU.js +1 -1
  87. package/lib/umd/locale/sk-SK.js +1 -1
  88. package/lib/umd/locale/vi-VN.js +1 -1
  89. package/lib/umd/locale/zh-CN.js +1 -1
  90. package/lib/umd/locale/zh-HK.js +1 -1
  91. package/lib/umd/locale/zh-TW.js +1 -1
  92. package/package.json +15 -14
@@ -1 +1 @@
1
- const _0x2f4ce3=_0x2447;function _0x4acf(){const _0x14fd10=['9McmJfo','正在擷取伺服器資料...','933219XncAPy','7452CzmmqG','加入協作失敗,您的編輯將暫存於本機。','編輯衝突','1939460wBUDyL','151460GdelEb','3531hoFHXQ','連線失敗,請檢查您的網路。','1NtPfCU','88boCzOy','138ieDIAZ','認證錯誤','由於協作房間已關閉,編輯權限已被收回。','已離線,編輯將儲存在本機','加入協作失敗,請稍後重試,您的編輯將暫存於本機。','812834vueCOi','伺服器未回應協作請求,您的編輯將儲存在本機。','同步中...','點擊重新連線','連線失敗,將在稍後重試連線。','協作衝突','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','200952zNViSm','107421zpNiYG','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。','協作文件數量超過限制,您的編輯將暫存於本機。','exports','沒有協作權限,您的編輯將暫存於本機。','已同步'];_0x4acf=function(){return _0x14fd10;};return _0x4acf();}(function(_0x7fe388,_0x5c95a4){const _0x58db41=_0x2447,_0x49fd41=_0x7fe388();while(!![]){try{const _0x23fd97=-parseInt(_0x58db41(0x1de))/0x1*(-parseInt(_0x58db41(0x1e5))/0x2)+-parseInt(_0x58db41(0x1ed))/0x3*(parseInt(_0x58db41(0x1df))/0x4)+-parseInt(_0x58db41(0x1db))/0x5*(-parseInt(_0x58db41(0x1e0))/0x6)+parseInt(_0x58db41(0x1d6))/0x7+-parseInt(_0x58db41(0x1ec))/0x8+-parseInt(_0x58db41(0x1d4))/0x9*(-parseInt(_0x58db41(0x1da))/0xa)+-parseInt(_0x58db41(0x1dc))/0xb*(parseInt(_0x58db41(0x1d7))/0xc);if(_0x23fd97===_0x5c95a4)break;else _0x49fd41['push'](_0x49fd41['shift']());}catch(_0x4a8302){_0x49fd41['push'](_0x49fd41['shift']());}}}(_0x4acf,0x66186));function _0x2447(_0x33affc,_0x52b15e){_0x33affc=_0x33affc-0x1cf;const _0x4acfa6=_0x4acf();let _0x244758=_0x4acfa6[_0x33affc];return _0x244758;}const e={'collaboration-client':{'collabClient':{'tooltip':{'reconnect':_0x2f4ce3(0x1e8)}},'collabStatus':{'fetchMiss':_0x2f4ce3(0x1d5),'conflict':_0x2f4ce3(0x1d9),'notCollab':'本機檔案','synced':_0x2f4ce3(0x1d3),'syncing':_0x2f4ce3(0x1e7),'offline':_0x2f4ce3(0x1e3)},'session':{'connection-failed':_0x2f4ce3(0x1dd),'will-retry':_0x2f4ce3(0x1e9),'room-full':'此文件協作人數已達上限,您的編輯將暫存於本機。','join-failed':_0x2f4ce3(0x1e4),'room-not-exists':_0x2f4ce3(0x1d8),'room-permission-denied':_0x2f4ce3(0x1d2),'room-cnt-exceeds':_0x2f4ce3(0x1d0),'collaboration-timeout':_0x2f4ce3(0x1e6)},'conflict':{'title':_0x2f4ce3(0x1ea),'content':_0x2f4ce3(0x1ee)},'permission':{'title':_0x2f4ce3(0x1e1),'content':'您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。'},'collaboration':{'single-unit':{'warning':_0x2f4ce3(0x1eb)},'closeRoom':_0x2f4ce3(0x1e2)},'auth':{'needGotoLoginAlert':_0x2f4ce3(0x1cf)}}};module[_0x2f4ce3(0x1d1)]=e;
1
+ const _0x226517=_0x268a;function _0x268a(_0x4761d5,_0x3acd4d){_0x4761d5=_0x4761d5-0xc1;const _0x15c05c=_0x15c0();let _0x268aa0=_0x15c05c[_0x4761d5];return _0x268aa0;}(function(_0x91bded,_0x5d54c3){const _0x38850f=_0x268a,_0x3d2e01=_0x91bded();while(!![]){try{const _0x518521=parseInt(_0x38850f(0xd8))/0x1+-parseInt(_0x38850f(0xd3))/0x2+parseInt(_0x38850f(0xd9))/0x3+parseInt(_0x38850f(0xca))/0x4+-parseInt(_0x38850f(0xcb))/0x5*(-parseInt(_0x38850f(0xcd))/0x6)+parseInt(_0x38850f(0xc2))/0x7*(-parseInt(_0x38850f(0xc4))/0x8)+parseInt(_0x38850f(0xc5))/0x9*(-parseInt(_0x38850f(0xc1))/0xa);if(_0x518521===_0x5d54c3)break;else _0x3d2e01['push'](_0x3d2e01['shift']());}catch(_0x55212d){_0x3d2e01['push'](_0x3d2e01['shift']());}}}(_0x15c0,0xf329c));function _0x15c0(){const _0x2eb77d=['5786848UnIMhY','15reSsyW','協作文件數量超過限制,您的編輯將暫存於本機。','3323196azrTsc','沒有協作權限,您的編輯將暫存於本機。','由於協作房間已關閉,編輯權限已被收回。','正在擷取伺服器資料...','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','本機檔案','3582100VXFgFG','加入協作失敗,請稍後重試,您的編輯將暫存於本機。','點擊重新連線','加入協作失敗,您的編輯將暫存於本機。','exports','501997wQAmLD','646665JlAKlY','已離線,編輯將儲存在本機','此文件協作人數已達上限,您的編輯將暫存於本機。','同步中...','連線失敗,將在稍後重試連線。','您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。','361180whdFvS','933037yNyvdx','連線失敗,請檢查您的網路。','32qQFydh','126BXDomi','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','已同步','編輯衝突','您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。'];_0x15c0=function(){return _0x2eb77d;};return _0x15c0();}const e={'collaboration-client':{'collabClient':{'tooltip':{'reconnect':_0x226517(0xd5)}},'collabStatus':{'fetchMiss':_0x226517(0xd0),'conflict':_0x226517(0xc8),'notCollab':_0x226517(0xd2),'synced':_0x226517(0xc7),'syncing':_0x226517(0xdc),'offline':_0x226517(0xda)},'session':{'connection-failed':_0x226517(0xc3),'will-retry':_0x226517(0xdd),'room-full':_0x226517(0xdb),'join-failed':_0x226517(0xd4),'room-not-exists':_0x226517(0xd6),'room-permission-denied':_0x226517(0xce),'room-cnt-exceeds':_0x226517(0xcc),'collaboration-timeout':'伺服器未回應協作請求,您的編輯將儲存在本機。'},'conflict':{'title':'協作衝突','content':_0x226517(0xc6)},'permission':{'title':'認證錯誤','content':_0x226517(0xde)},'collaboration':{'single-unit':{'warning':_0x226517(0xd1)},'closeRoom':_0x226517(0xcf)},'auth':{'needGotoLoginAlert':_0x226517(0xc9)}}};module[_0x226517(0xd7)]=e;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x13fc39=_0x41e9;(function(_0x1f28c8,_0x1cec35){const _0x472fdb=_0x41e9,_0x4a2676=_0x1f28c8();while(!![]){try{const _0x49ac72=parseInt(_0x472fdb(0xe6))/0x1+-parseInt(_0x472fdb(0x113))/0x2+-parseInt(_0x472fdb(0xef))/0x3+parseInt(_0x472fdb(0xe3))/0x4*(-parseInt(_0x472fdb(0xdd))/0x5)+-parseInt(_0x472fdb(0x112))/0x6+-parseInt(_0x472fdb(0xfd))/0x7+parseInt(_0x472fdb(0xec))/0x8;if(_0x49ac72===_0x1cec35)break;else _0x4a2676['push'](_0x4a2676['shift']());}catch(_0x30e986){_0x4a2676['push'](_0x4a2676['shift']());}}}(_0x33f7,0x7e78a));import{CollaborationController as _0x38eb93,CollaborationStatus as _0x277b35,DataLoaderService as _0x4c6da6,MemberService as _0x38b4ef}from'@univerjs-pro/collaboration-client';import{FBase as _0x3ad0c2,FEnum as _0x48ae64,FEventName as _0x536813,FUniver as _0x3a45e7}from'@univerjs/core/facade';import{DisposableCollection as _0x481f18,IUniverInstanceService as _0x1e1742,Inject as _0xb11b48,Injector as _0x41057e,toDisposable as _0xf87e13}from'@univerjs/core';import{SnapshotService as _0x32ff4b}from'@univerjs-pro/collaboration';import{switchMap as _0x407a9f}from'rxjs';var h=class extends _0x48ae64{get[_0x13fc39(0xf7)](){return _0x277b35;}};_0x48ae64[_0x13fc39(0xfe)](h);var g=class extends _0x536813{get['CollaborationStatusChanged'](){const _0x26dddd=_0x13fc39;return _0x26dddd(0xd9);}};_0x536813[_0x13fc39(0xfe)](g);function _(_0x318a3b,_0x42926e){return function(_0x4fa553,_0x27f39e){_0x42926e(_0x4fa553,_0x27f39e,_0x318a3b);};}function v(_0x486a6c,_0x130d46,_0x524aac,_0x642e44){const _0x22c6c7=_0x13fc39;var _0x31b471=arguments['length'],_0x553ee6=_0x31b471<0x3?_0x130d46:_0x642e44===null?_0x642e44=Object['getOwnPropertyDescriptor'](_0x130d46,_0x524aac):_0x642e44,_0x43acba;if(typeof Reflect==_0x22c6c7(0xf1)&&typeof Reflect[_0x22c6c7(0xff)]==_0x22c6c7(0x106))_0x553ee6=Reflect[_0x22c6c7(0xff)](_0x486a6c,_0x130d46,_0x524aac,_0x642e44);else{for(var _0x4d6386=_0x486a6c[_0x22c6c7(0xd7)]-0x1;_0x4d6386>=0x0;_0x4d6386--)(_0x43acba=_0x486a6c[_0x4d6386])&&(_0x553ee6=(_0x31b471<0x3?_0x43acba(_0x553ee6):_0x31b471>0x3?_0x43acba(_0x130d46,_0x524aac,_0x553ee6):_0x43acba(_0x130d46,_0x524aac))||_0x553ee6);}return _0x31b471>0x3&&_0x553ee6&&Object[_0x22c6c7(0xd4)](_0x130d46,_0x524aac,_0x553ee6),_0x553ee6;}let y=class extends _0x3ad0c2{constructor(_0x35b751,_0x420eef,_0x4f798f,_0x59eebc,_0x1e959a){const _0xdd217f=_0x13fc39;super(),this[_0xdd217f(0xf3)]=_0x35b751,this[_0xdd217f(0xe2)]=_0x420eef,this['_univerInstanceService']=_0x4f798f,this['_snapshotService']=_0x59eebc,this[_0xdd217f(0xeb)]=_0x1e959a;}async[_0x13fc39(0x104)](_0x3f10d8,_0x25e8c3){const _0x43e77c=_0x13fc39;return await this[_0x43e77c(0xf4)][_0x43e77c(0x107)](_0x3f10d8,0x0,_0x25e8c3)?(await this['_collaborationController'][_0x43e77c(0xe0)](_0x3f10d8),this[_0x43e77c(0xf3)][_0x43e77c(0xd6)](_0x3f10d8)):null;}async[_0x13fc39(0xf9)](_0x2c0b2e,_0xfb4efc){const _0x2aeb9b=_0x13fc39;return await this[_0x2aeb9b(0xf4)][_0x2aeb9b(0xde)](_0x2c0b2e,0x0,_0xfb4efc)?(await this['_collaborationController'][_0x2aeb9b(0xe0)](_0x2c0b2e),this['_handler'][_0x2aeb9b(0x105)](_0x2c0b2e)):null;}async[_0x13fc39(0x10c)](_0x2f0cbb,_0x3d102d){const _0x37cfab=_0x13fc39;return await this[_0x37cfab(0xf4)][_0x37cfab(0x109)](_0x2f0cbb,0x0,_0x3d102d)?(await this['_collaborationController'][_0x37cfab(0xe0)](_0x2f0cbb),this[_0x37cfab(0xf3)][_0x37cfab(0x102)](_0x2f0cbb)):null;}async['loadSlideAsync'](_0x52a5bc,_0x47543f){const _0x4a47b1=_0x13fc39;return await this[_0x4a47b1(0xf4)]['loadSlide'](_0x52a5bc,0x0,_0x47543f)?(await this['_collaborationController'][_0x4a47b1(0xe0)](_0x52a5bc),this[_0x4a47b1(0xf3)][_0x4a47b1(0xea)](_0x52a5bc)):null;}async[_0x13fc39(0x103)](_0x15f2f1,_0x5f2ea4){const _0x4ee935=_0x13fc39;return await this['_snapshotService']['loadBoard'](_0x15f2f1,0x0,_0x5f2ea4)?(await this['_collaborationController'][_0x4ee935(0xe0)](_0x15f2f1),this[_0x4ee935(0xf3)][_0x4ee935(0xf8)](_0x15f2f1)):null;}['subscribeCollaborators'](_0x343feb,_0x56ee7f){const _0x45a6d2=_0x13fc39;return _0xf87e13(this[_0x45a6d2(0xe2)][_0x45a6d2(0xe9)](_0x38b4ef)[_0x45a6d2(0xd8)](_0x343feb)['pipe'](_0x407a9f(_0x31da1e=>_0x31da1e[_0x45a6d2(0x111)]))[_0x45a6d2(0xd1)](_0x389f47=>_0x56ee7f(Array[_0x45a6d2(0xd2)](_0x389f47['values']()))));}[_0x13fc39(0xe5)](_0x212145){const _0x2a5759=_0x13fc39;var _0x2fa460;let _0x178986=this[_0x2a5759(0xe7)](_0x212145);if(!_0x178986)return _0x277b35[_0x2a5759(0xf5)];let _0x8d077c=this[_0x2a5759(0xeb)][_0x2a5759(0x10b)](_0x178986);return(_0x2fa460=_0x8d077c==null?void 0x0:_0x8d077c[_0x2a5759(0xfb)][_0x2a5759(0xed)])==null?_0x277b35[_0x2a5759(0xf5)]:_0x2fa460;}[_0x13fc39(0xd3)](_0x35e2f2,_0x1ca216={}){const _0x23e1dc=_0x13fc39;var _0x8603d;let _0x535724=this['_resolveUnitId'](_0x35e2f2);if(!_0x535724)return Promise[_0x23e1dc(0x10f)](Error(_0x23e1dc(0xf2)));let _0x249ebe=this[_0x23e1dc(0xeb)]['getCollabEntity'](_0x535724);if(!_0x249ebe)return Promise[_0x23e1dc(0x10f)](Error('[FCollaboration]:\x20Unit\x20\x22'+_0x535724+_0x23e1dc(0x110)));let _0xf3a3f8=_0x249ebe[_0x23e1dc(0xfb)][_0x23e1dc(0xed)];if(_0xf3a3f8===_0x277b35['SYNCED'])return Promise[_0x23e1dc(0xd0)]();let _0x1241bf=b(_0x535724,_0xf3a3f8);if(_0x1241bf)return Promise['reject'](_0x1241bf);let _0x240ccb=(_0x8603d=_0x1ca216[_0x23e1dc(0xe1)])==null?0x7530:_0x8603d;return new Promise((_0x18c90f,_0x150c45)=>{const _0x6b6cb3=_0x23e1dc;let _0x4ad14b=!0x1,_0x17285c=null,_0x313362=setTimeout(()=>{const _0x214097=_0x41e9;_0x4ad14b=!0x0,_0x17285c==null||_0x17285c[_0x214097(0xe4)](),_0x150c45(Error(_0x214097(0xfa)+_0x535724+_0x214097(0xdb)+_0x240ccb+_0x214097(0x10a)));},_0x240ccb),_0x492015=()=>{const _0xf1647=_0x41e9;_0x4ad14b=!0x0,clearTimeout(_0x313362),_0x17285c==null||_0x17285c[_0xf1647(0xe4)]();};_0x17285c=_0x249ebe[_0x6b6cb3(0x101)]['subscribe'](_0x3bfa84=>{const _0x140f43=_0x6b6cb3;if(_0x4ad14b)return;if(_0x3bfa84===_0x277b35[_0x140f43(0x100)]){_0x492015(),_0x18c90f();return;}let _0x50cbab=b(_0x535724,_0x3bfa84);_0x50cbab&&(_0x492015(),_0x150c45(_0x50cbab));});});}[_0x13fc39(0xe7)](_0x187d59){var _0x2b57b7;return _0x187d59||((_0x2b57b7=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x2b57b7['getUnitId']());}};y=v([_(0x1,_0xb11b48(_0x41057e)),_(0x2,_0x1e1742),_(0x3,_0xb11b48(_0x32ff4b)),_(0x4,_0xb11b48(_0x38eb93))],y);function b(_0x211841,_0x439cb9){const _0x2beedc=_0x13fc39;return _0x439cb9===_0x277b35[_0x2beedc(0xda)]||_0x439cb9===_0x277b35[_0x2beedc(0xf5)]?Error('[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22'+_0x211841+'\x22\x20while\x20collaboration\x20status\x20is\x20'+_0x439cb9+'.'):null;}var x=class extends _0x3a45e7{[_0x13fc39(0x10e)](_0x4c5e15){const _0x17a98e=_0x13fc39;let _0x23ec4e=_0x4c5e15[_0x17a98e(0xe9)](_0x38eb93);this[_0x17a98e(0xfc)](this[_0x17a98e(0xe8)](this['Event'][_0x17a98e(0xd9)],()=>{const _0x5ebed4=_0x17a98e;let _0x4bbd2a=new _0x481f18(),_0x53cff5=_0x23ec4e[_0x5ebed4(0xdc)]['subscribe'](_0x533217=>{const _0x10f2c2=_0x5ebed4;let _0x423c5b=_0x533217[_0x10f2c2(0x101)]['subscribe'](_0x2b9700=>{const _0xf6470=_0x10f2c2;let _0x364909={'unitId':_0x533217[_0xf6470(0x108)],'status':_0x2b9700};this[_0xf6470(0xf6)](this[_0xf6470(0xd5)][_0xf6470(0xd9)],_0x364909);});_0x4bbd2a[_0x10f2c2(0xf0)](_0xf87e13(_0x423c5b));});return _0x4bbd2a[_0x5ebed4(0xf0)](_0xf87e13(_0x53cff5)),_0x4bbd2a;}));}[_0x13fc39(0xdf)](){const _0x50711a=_0x13fc39;return this[_0x50711a(0xe2)][_0x50711a(0xee)](y,{'getWorkbook':_0xc41aca=>this['getWorkbook'](_0xc41aca),'getDocument':_0x4548af=>this[_0x50711a(0x105)](_0x4548af),'getPresentation':_0x9f3cc=>this[_0x50711a(0xea)](_0x9f3cc),'getBase':_0x3b8705=>this[_0x50711a(0x102)](_0x3b8705),'getBoard':_0x1458d8=>this[_0x50711a(0xf8)](_0x1458d8)});}['loadServerUnit'](_0x264e69,_0x36dc88,_0x1e9ffa){const _0x2d9c49=_0x13fc39;return this[_0x2d9c49(0xe2)]['get'](_0x4c6da6)[_0x2d9c49(0x10d)](_0x264e69,_0x36dc88,_0x1e9ffa);}['loadServerUnitOfRevision'](_0x2b5d6d,_0x47f2bb,_0x5bc091){const _0x10d732=_0x13fc39;return this[_0x10d732(0xe2)][_0x10d732(0xe9)](_0x4c6da6)['loadUnitOfRevision'](_0x2b5d6d,_0x47f2bb,_0x5bc091);}};function _0x33f7(){const _0x425012=['timeout','_injector','4UACcPl','unsubscribe','getCollaborationStatus','587324GXyLIf','_resolveUnitId','registerEventHandler','get','getPresentation','_collaborationController','12913240hZBCyn','status','createInstance','2182368sIJmfu','add','object','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','_handler','_snapshotService','NOT_COLLAB','fireEvent','CollaborationStatus','getBoard','loadDocAsync','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','state','disposeWithMe','1393028dneliv','extend','decorate','SYNCED','status$','getBase','loadBoardAsync','loadSheetAsync','getDocument','function','loadSheet','unitID','loadBase','ms.','getCollabEntity','loadBaseAsync','loadUnit','_initialize','reject','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','members$','200622wGGRha','1397258YBEKuc','resolve','subscribe','from','flush','defineProperty','Event','getWorkbook','length','waitForRoom$','CollaborationStatusChanged','CONFLICT','\x22\x20after\x20','entityInit$','124635bnAqQu','loadDoc','getCollaboration','readyForCollab'];_0x33f7=function(){return _0x425012;};return _0x33f7();}function _0x41e9(_0x3b61f8,_0x39ae19){_0x3b61f8=_0x3b61f8-0xd0;const _0x33f7f1=_0x33f7();let _0x41e9b7=_0x33f7f1[_0x3b61f8];return _0x41e9b7;}_0x3a45e7[_0x13fc39(0xfe)](x);export{y as FCollaboration};
1
+ const _0x48297b=_0x1f2c;(function(_0x5250be,_0x533d31){const _0x448a5a=_0x1f2c,_0x46dc57=_0x5250be();while(!![]){try{const _0x4bfabe=parseInt(_0x448a5a(0x132))/0x1+parseInt(_0x448a5a(0x165))/0x2*(parseInt(_0x448a5a(0x13d))/0x3)+parseInt(_0x448a5a(0x150))/0x4*(parseInt(_0x448a5a(0x14a))/0x5)+-parseInt(_0x448a5a(0x15e))/0x6+parseInt(_0x448a5a(0x142))/0x7*(parseInt(_0x448a5a(0x14c))/0x8)+-parseInt(_0x448a5a(0x14d))/0x9*(-parseInt(_0x448a5a(0x137))/0xa)+-parseInt(_0x448a5a(0x162))/0xb;if(_0x4bfabe===_0x533d31)break;else _0x46dc57['push'](_0x46dc57['shift']());}catch(_0x575f10){_0x46dc57['push'](_0x46dc57['shift']());}}}(_0x22cc,0x3cad0));import{CollaborationController as _0x274f47,CollaborationStatus as _0x1d0527,DataLoaderService as _0x52941b,MemberService as _0x1ab603}from'@univerjs-pro/collaboration-client';import{FBase as _0x598bc,FEnum as _0x2fef54,FEventName as _0x33ebe1,FUniver as _0x554cbe}from'@univerjs/core/facade';import{DisposableCollection as _0x498a59,IUniverInstanceService as _0xd2f24f,Inject as _0x1a9f82,Injector as _0x48391b,toDisposable as _0x4d24c8}from'@univerjs/core';import{SnapshotService as _0x5c621c}from'@univerjs-pro/collaboration';function _0x1f2c(_0x3cf465,_0x265be7){_0x3cf465=_0x3cf465-0x12e;const _0x22cc79=_0x22cc();let _0x1f2c6c=_0x22cc79[_0x3cf465];return _0x1f2c6c;}import{switchMap as _0x5fe3d9}from'rxjs';var h=class extends _0x2fef54{get[_0x48297b(0x174)](){return _0x1d0527;}};_0x2fef54[_0x48297b(0x153)](h);var g=class extends _0x33ebe1{get[_0x48297b(0x143)](){const _0x48cf50=_0x48297b;return _0x48cf50(0x143);}};_0x33ebe1['extend'](g);function _(_0x3190e5,_0x4c3a1b){return function(_0x12d8ae,_0x2a9542){_0x4c3a1b(_0x12d8ae,_0x2a9542,_0x3190e5);};}function v(_0x2478de,_0x2c3377,_0x34cfd3,_0x49f911){const _0x15eb2c=_0x48297b;var _0x2481ce=arguments['length'],_0x227584=_0x2481ce<0x3?_0x2c3377:_0x49f911===null?_0x49f911=Object['getOwnPropertyDescriptor'](_0x2c3377,_0x34cfd3):_0x49f911,_0x3e2050;if(typeof Reflect=='object'&&typeof Reflect[_0x15eb2c(0x169)]==_0x15eb2c(0x16e))_0x227584=Reflect[_0x15eb2c(0x169)](_0x2478de,_0x2c3377,_0x34cfd3,_0x49f911);else{for(var _0x1ac509=_0x2478de[_0x15eb2c(0x15f)]-0x1;_0x1ac509>=0x0;_0x1ac509--)(_0x3e2050=_0x2478de[_0x1ac509])&&(_0x227584=(_0x2481ce<0x3?_0x3e2050(_0x227584):_0x2481ce>0x3?_0x3e2050(_0x2c3377,_0x34cfd3,_0x227584):_0x3e2050(_0x2c3377,_0x34cfd3))||_0x227584);}return _0x2481ce>0x3&&_0x227584&&Object[_0x15eb2c(0x134)](_0x2c3377,_0x34cfd3,_0x227584),_0x227584;}let y=class extends _0x598bc{constructor(_0x3f285a,_0x21bfb2,_0x59b4dd,_0x52eb9e,_0x1481c8){const _0x32ad59=_0x48297b;super(),this[_0x32ad59(0x154)]=_0x3f285a,this['_injector']=_0x21bfb2,this[_0x32ad59(0x159)]=_0x59b4dd,this[_0x32ad59(0x175)]=_0x52eb9e,this[_0x32ad59(0x13c)]=_0x1481c8;}async[_0x48297b(0x149)](_0x34d4cc,_0x21f516){const _0x221ecf=_0x48297b;return await this[_0x221ecf(0x175)]['loadSheet'](_0x34d4cc,0x0,_0x21f516)?(await this[_0x221ecf(0x13c)]['readyForCollab'](_0x34d4cc),this[_0x221ecf(0x154)][_0x221ecf(0x15a)](_0x34d4cc)):null;}async[_0x48297b(0x136)](_0x54f595,_0x204083){const _0x27c7ea=_0x48297b;return await this[_0x27c7ea(0x175)][_0x27c7ea(0x170)](_0x54f595,0x0,_0x204083)?(await this[_0x27c7ea(0x13c)][_0x27c7ea(0x148)](_0x54f595),this[_0x27c7ea(0x154)][_0x27c7ea(0x161)](_0x54f595)):null;}async['loadBaseAsync'](_0x506816,_0x1c8677){const _0x33f4a3=_0x48297b;return await this[_0x33f4a3(0x175)][_0x33f4a3(0x14e)](_0x506816,0x0,_0x1c8677)?(await this[_0x33f4a3(0x13c)][_0x33f4a3(0x148)](_0x506816),this[_0x33f4a3(0x154)][_0x33f4a3(0x16f)](_0x506816)):null;}async[_0x48297b(0x164)](_0x1d32a1,_0x49bc5c){const _0x5dba01=_0x48297b;return await this[_0x5dba01(0x175)][_0x5dba01(0x16a)](_0x1d32a1,0x0,_0x49bc5c)?(await this[_0x5dba01(0x13c)][_0x5dba01(0x148)](_0x1d32a1),this[_0x5dba01(0x154)][_0x5dba01(0x155)](_0x1d32a1)):null;}async[_0x48297b(0x152)](_0x21e73c,_0x10da09){const _0x54218e=_0x48297b;return await this[_0x54218e(0x175)][_0x54218e(0x12e)](_0x21e73c,0x0,_0x10da09)?(await this[_0x54218e(0x13c)][_0x54218e(0x148)](_0x21e73c),this[_0x54218e(0x154)][_0x54218e(0x13e)](_0x21e73c)):null;}[_0x48297b(0x172)](_0xd0ee6d,_0x13f6f6){const _0x4c67c7=_0x48297b;return _0x4d24c8(this['_injector'][_0x4c67c7(0x168)](_0x1ab603)['waitForRoom$'](_0xd0ee6d)[_0x4c67c7(0x167)](_0x5fe3d9(_0x44b5a5=>_0x44b5a5['members$']))[_0x4c67c7(0x130)](_0x477ea8=>_0x13f6f6(Array['from'](_0x477ea8[_0x4c67c7(0x156)]()))));}[_0x48297b(0x138)](_0x318a0c){const _0x3d4be9=_0x48297b;var _0x5a03b8;let _0x487eed=this[_0x3d4be9(0x133)](_0x318a0c);if(!_0x487eed)return _0x1d0527[_0x3d4be9(0x151)];let _0x383636=this[_0x3d4be9(0x13c)][_0x3d4be9(0x131)](_0x487eed);return(_0x5a03b8=_0x383636==null?void 0x0:_0x383636[_0x3d4be9(0x13b)][_0x3d4be9(0x158)])==null?_0x1d0527['NOT_COLLAB']:_0x5a03b8;}[_0x48297b(0x160)](_0x564376,_0x458cf5={}){const _0xb82f30=_0x48297b;var _0x1e4ea9;let _0x5392f1=this[_0xb82f30(0x133)](_0x564376);if(!_0x5392f1)return Promise[_0xb82f30(0x14b)](Error('[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.'));let _0x5a8a2b=this['_collaborationController'][_0xb82f30(0x131)](_0x5392f1);if(!_0x5a8a2b)return Promise[_0xb82f30(0x14b)](Error('[FCollaboration]:\x20Unit\x20\x22'+_0x5392f1+'\x22\x20is\x20not\x20in\x20collaboration\x20mode.'));let _0x4b14b9=_0x5a8a2b[_0xb82f30(0x13b)]['status'];if(_0x4b14b9===_0x1d0527[_0xb82f30(0x135)])return Promise[_0xb82f30(0x147)]();let _0x13765d=b(_0x5392f1,_0x4b14b9);if(_0x13765d)return Promise['reject'](_0x13765d);let _0x6a8c97=(_0x1e4ea9=_0x458cf5[_0xb82f30(0x16b)])==null?0x7530:_0x1e4ea9;return new Promise((_0x40baf0,_0x55404e)=>{const _0x357a26=_0xb82f30;let _0x477287=!0x1,_0x15ac95=null,_0x5bf191=setTimeout(()=>{const _0x55fe54=_0x1f2c;_0x477287=!0x0,_0x15ac95==null||_0x15ac95[_0x55fe54(0x141)](),_0x55404e(Error(_0x55fe54(0x173)+_0x5392f1+_0x55fe54(0x145)+_0x6a8c97+_0x55fe54(0x171)));},_0x6a8c97),_0x30f132=()=>{const _0x24a544=_0x1f2c;_0x477287=!0x0,clearTimeout(_0x5bf191),_0x15ac95==null||_0x15ac95[_0x24a544(0x141)]();};_0x15ac95=_0x5a8a2b[_0x357a26(0x157)][_0x357a26(0x130)](_0x5ab52e=>{const _0x57be28=_0x357a26;if(_0x477287)return;if(_0x5ab52e===_0x1d0527[_0x57be28(0x135)]){_0x30f132(),_0x40baf0();return;}let _0x3618b6=b(_0x5392f1,_0x5ab52e);_0x3618b6&&(_0x30f132(),_0x55404e(_0x3618b6));});});}[_0x48297b(0x133)](_0x15fced){const _0x42a8c8=_0x48297b;var _0x21bff4;return _0x15fced||((_0x21bff4=this[_0x42a8c8(0x159)][_0x42a8c8(0x14f)]())==null?void 0x0:_0x21bff4[_0x42a8c8(0x144)]());}};y=v([_(0x1,_0x1a9f82(_0x48391b)),_(0x2,_0xd2f24f),_(0x3,_0x1a9f82(_0x5c621c)),_(0x4,_0x1a9f82(_0x274f47))],y);function b(_0x54cce,_0x2a0fe4){const _0x2e57d4=_0x48297b;return _0x2a0fe4===_0x1d0527['CONFLICT']||_0x2a0fe4===_0x1d0527[_0x2e57d4(0x151)]?Error('[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22'+_0x54cce+_0x2e57d4(0x163)+_0x2a0fe4+'.'):null;}var x=class extends _0x554cbe{[_0x48297b(0x12f)](_0x58b4b7){const _0x5456b0=_0x48297b;let _0x4ca3d4=_0x58b4b7[_0x5456b0(0x168)](_0x274f47);this[_0x5456b0(0x166)](this[_0x5456b0(0x139)](this[_0x5456b0(0x16c)][_0x5456b0(0x143)],()=>{const _0x1327ed=_0x5456b0;let _0x210c9c=new _0x498a59(),_0x580dd8=_0x4ca3d4['entityInit$'][_0x1327ed(0x130)](_0x5168e=>{const _0xd5ee25=_0x1327ed;let _0x57470d=_0x5168e['status$'][_0xd5ee25(0x130)](_0x1bfde0=>{const _0xdd745=_0xd5ee25;let _0x579c0b={'unitId':_0x5168e[_0xdd745(0x15b)],'status':_0x1bfde0};this[_0xdd745(0x146)](this[_0xdd745(0x16c)]['CollaborationStatusChanged'],_0x579c0b);});_0x210c9c['add'](_0x4d24c8(_0x57470d));});return _0x210c9c[_0x1327ed(0x16d)](_0x4d24c8(_0x580dd8)),_0x210c9c;}));}['getCollaboration'](){const _0x13b609=_0x48297b;return this[_0x13b609(0x13f)][_0x13b609(0x13a)](y,{'getWorkbook':_0x39ec6d=>this['getWorkbook'](_0x39ec6d),'getDocument':_0x28e5d9=>this[_0x13b609(0x161)](_0x28e5d9),'getPresentation':_0x96f5d0=>this[_0x13b609(0x155)](_0x96f5d0),'getBase':_0x2880fb=>this[_0x13b609(0x16f)](_0x2880fb),'getBoard':_0x3f672e=>this['getBoard'](_0x3f672e)});}[_0x48297b(0x15d)](_0x6755c8,_0x491856,_0x4a1aff){const _0x463efe=_0x48297b;return this[_0x463efe(0x13f)]['get'](_0x52941b)['loadUnit'](_0x6755c8,_0x491856,_0x4a1aff);}[_0x48297b(0x140)](_0x15535c,_0x4d8a3f,_0x22be8f){const _0x3d58a9=_0x48297b;return this['_injector'][_0x3d58a9(0x168)](_0x52941b)[_0x3d58a9(0x15c)](_0x15535c,_0x4d8a3f,_0x22be8f);}};_0x554cbe[_0x48297b(0x153)](x);export{y as FCollaboration};function _0x22cc(){const _0xd483fd=['2560QuSNah','getCollaborationStatus','registerEventHandler','createInstance','state','_collaborationController','6wMRyPX','getBoard','_injector','loadServerUnitOfRevision','unsubscribe','34391zRXJsr','CollaborationStatusChanged','getUnitId','\x22\x20after\x20','fireEvent','resolve','readyForCollab','loadSheetAsync','5xNXzUd','reject','592gNakVi','2259lfHIRn','loadBase','getFocusedUnit','394736aotaaB','NOT_COLLAB','loadBoardAsync','extend','_handler','getPresentation','values','status$','status','_univerInstanceService','getWorkbook','unitID','loadUnitOfRevision','loadServerUnit','1020360cXeGpi','length','flush','getDocument','7578868mjEkTR','\x22\x20while\x20collaboration\x20status\x20is\x20','loadSlideAsync','161638rXobdg','disposeWithMe','pipe','get','decorate','loadSlide','timeout','Event','add','function','getBase','loadDoc','ms.','subscribeCollaborators','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','CollaborationStatus','_snapshotService','loadBoard','_initialize','subscribe','getCollabEntity','419436pKwjka','_resolveUnitId','defineProperty','SYNCED','loadDocAsync'];_0x22cc=function(){return _0xd483fd;};return _0x22cc();}