@univerjs-pro/collaboration-client 1.0.0-rc.0 → 1.0.1

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 (89) 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/config/config.d.ts +0 -12
  65. package/lib/types/controllers/collaboration/collaboration-state.d.ts +2 -1
  66. package/lib/types/services/collaboration-ui-event/collaboration-ui-event.d.ts +3 -0
  67. package/lib/types/services/local-cache/local-cache.service.d.ts +1 -0
  68. package/lib/umd/facade.js +1 -1
  69. package/lib/umd/index.js +1 -1
  70. package/lib/umd/locale/ar-SA.js +1 -1
  71. package/lib/umd/locale/ca-ES.js +1 -1
  72. package/lib/umd/locale/de-DE.js +1 -1
  73. package/lib/umd/locale/en-US.js +1 -1
  74. package/lib/umd/locale/es-ES.js +1 -1
  75. package/lib/umd/locale/fa-IR.js +1 -1
  76. package/lib/umd/locale/fr-FR.js +1 -1
  77. package/lib/umd/locale/id-ID.js +1 -1
  78. package/lib/umd/locale/it-IT.js +1 -1
  79. package/lib/umd/locale/ja-JP.js +1 -1
  80. package/lib/umd/locale/ko-KR.js +1 -1
  81. package/lib/umd/locale/pl-PL.js +1 -1
  82. package/lib/umd/locale/pt-BR.js +1 -1
  83. package/lib/umd/locale/ru-RU.js +1 -1
  84. package/lib/umd/locale/sk-SK.js +1 -1
  85. package/lib/umd/locale/vi-VN.js +1 -1
  86. package/lib/umd/locale/zh-CN.js +1 -1
  87. package/lib/umd/locale/zh-HK.js +1 -1
  88. package/lib/umd/locale/zh-TW.js +1 -1
  89. package/package.json +16 -16
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x4c11a7=_0x5306;(function(_0x2892fb,_0x15fc24){const _0x5b0053=_0x5306,_0x6dfd1b=_0x2892fb();while(!![]){try{const _0x4fb749=parseInt(_0x5b0053(0x139))/0x1*(parseInt(_0x5b0053(0x142))/0x2)+-parseInt(_0x5b0053(0x14d))/0x3+-parseInt(_0x5b0053(0x163))/0x4+-parseInt(_0x5b0053(0x144))/0x5+parseInt(_0x5b0053(0x134))/0x6*(parseInt(_0x5b0053(0x157))/0x7)+-parseInt(_0x5b0053(0x173))/0x8*(-parseInt(_0x5b0053(0x140))/0x9)+-parseInt(_0x5b0053(0x160))/0xa*(parseInt(_0x5b0053(0x16b))/0xb);if(_0x4fb749===_0x15fc24)break;else _0x6dfd1b['push'](_0x6dfd1b['shift']());}catch(_0x2c01c7){_0x6dfd1b['push'](_0x6dfd1b['shift']());}}}(_0x44b6,0xdbf85));import{CollaborationController as _0xab827e,CollaborationStatus as _0x42541e,DataLoaderService as _0x37add9,MemberService as _0x57a3a0}from'@univerjs-pro/collaboration-client';import{FBase as _0xfea50a,FEnum as _0x36d4d6,FEventName as _0x10a26,FUniver as _0x362548}from'@univerjs/core/facade';import{DisposableCollection as _0x1f249c,IUniverInstanceService as _0x4a4098,Inject as _0x1c22d9,Injector as _0xcfe44a,toDisposable as _0x54b0d0}from'@univerjs/core';import{SnapshotService as _0x183b3c}from'@univerjs-pro/collaboration';import{switchMap as _0x27d116}from'rxjs';var h=class extends _0x36d4d6{get[_0x4c11a7(0x12f)](){return _0x42541e;}};_0x36d4d6[_0x4c11a7(0x151)](h);var g=class extends _0x10a26{get['CollaborationStatusChanged'](){const _0x26d253=_0x4c11a7;return _0x26d253(0x169);}};_0x10a26[_0x4c11a7(0x151)](g);function _(_0x585d29,_0x5762ed){return function(_0x240512,_0x5f3276){_0x5762ed(_0x240512,_0x5f3276,_0x585d29);};}function _0x5306(_0x16182d,_0x17c5e9){_0x16182d=_0x16182d-0x12b;const _0x44b69e=_0x44b6();let _0x5306a8=_0x44b69e[_0x16182d];return _0x5306a8;}function v(_0x523475,_0x56645d,_0x45e64a,_0x15ac04){const _0x1013e5=_0x4c11a7;var _0x4ba08=arguments[_0x1013e5(0x146)],_0x471215=_0x4ba08<0x3?_0x56645d:_0x15ac04===null?_0x15ac04=Object[_0x1013e5(0x158)](_0x56645d,_0x45e64a):_0x15ac04,_0x450ca9;if(typeof Reflect==_0x1013e5(0x179)&&typeof Reflect[_0x1013e5(0x145)]==_0x1013e5(0x16f))_0x471215=Reflect[_0x1013e5(0x145)](_0x523475,_0x56645d,_0x45e64a,_0x15ac04);else{for(var _0x3e7d55=_0x523475[_0x1013e5(0x146)]-0x1;_0x3e7d55>=0x0;_0x3e7d55--)(_0x450ca9=_0x523475[_0x3e7d55])&&(_0x471215=(_0x4ba08<0x3?_0x450ca9(_0x471215):_0x4ba08>0x3?_0x450ca9(_0x56645d,_0x45e64a,_0x471215):_0x450ca9(_0x56645d,_0x45e64a))||_0x471215);}return _0x4ba08>0x3&&_0x471215&&Object[_0x1013e5(0x143)](_0x56645d,_0x45e64a,_0x471215),_0x471215;}let y=class extends _0xfea50a{constructor(_0x7eb262,_0x19955b,_0x406693,_0x31735e,_0x642c7c){const _0x311f43=_0x4c11a7;super(),this['_handler']=_0x7eb262,this['_injector']=_0x19955b,this[_0x311f43(0x15a)]=_0x406693,this[_0x311f43(0x141)]=_0x31735e,this['_collaborationController']=_0x642c7c;}async[_0x4c11a7(0x15b)](_0x27bd1f,_0x1648b4){const _0x483379=_0x4c11a7;return await this[_0x483379(0x141)][_0x483379(0x12c)](_0x27bd1f,0x0,_0x1648b4)?(await this[_0x483379(0x137)][_0x483379(0x176)](_0x27bd1f),this[_0x483379(0x166)][_0x483379(0x167)](_0x27bd1f)):null;}async[_0x4c11a7(0x13c)](_0x55a98d,_0x542b05){const _0x4dee4b=_0x4c11a7;return await this['_snapshotService'][_0x4dee4b(0x148)](_0x55a98d,0x0,_0x542b05)?(await this[_0x4dee4b(0x137)][_0x4dee4b(0x176)](_0x55a98d),this['_handler']['getDocument'](_0x55a98d)):null;}async[_0x4c11a7(0x14f)](_0x3d61c2,_0x218a74){const _0x208a43=_0x4c11a7;return await this['_snapshotService'][_0x208a43(0x138)](_0x3d61c2,0x0,_0x218a74)?(await this['_collaborationController'][_0x208a43(0x176)](_0x3d61c2),this['_handler'][_0x208a43(0x164)](_0x3d61c2)):null;}async[_0x4c11a7(0x136)](_0x75cda1,_0x2740a5){const _0x39a7b7=_0x4c11a7;return await this[_0x39a7b7(0x141)][_0x39a7b7(0x131)](_0x75cda1,0x0,_0x2740a5)?(await this[_0x39a7b7(0x137)][_0x39a7b7(0x176)](_0x75cda1),this[_0x39a7b7(0x166)][_0x39a7b7(0x149)](_0x75cda1)):null;}async[_0x4c11a7(0x133)](_0xdf0409,_0xcc1751){const _0x4b1dfc=_0x4c11a7;return await this[_0x4b1dfc(0x141)][_0x4b1dfc(0x147)](_0xdf0409,0x0,_0xcc1751)?(await this['_collaborationController'][_0x4b1dfc(0x176)](_0xdf0409),this[_0x4b1dfc(0x166)][_0x4b1dfc(0x159)](_0xdf0409)):null;}async[_0x4c11a7(0x175)](_0x3d07ec,_0x47beaf){const _0x48ad22=_0x4c11a7;return await this[_0x48ad22(0x141)][_0x48ad22(0x15f)](_0x3d07ec,0x0,_0x47beaf)?(await this[_0x48ad22(0x137)][_0x48ad22(0x176)](_0x3d07ec),this[_0x48ad22(0x166)][_0x48ad22(0x132)](_0x3d07ec)):null;}['subscribeCollaborators'](_0x4f0510,_0x2a25da){const _0x58c1a0=_0x4c11a7;return _0x54b0d0(this['_injector']['get'](_0x57a3a0)[_0x58c1a0(0x14e)](_0x4f0510)[_0x58c1a0(0x165)](_0x27d116(_0x34574c=>_0x34574c['members$']))[_0x58c1a0(0x13d)](_0x35f9fd=>_0x2a25da(Array[_0x58c1a0(0x162)](_0x35f9fd[_0x58c1a0(0x156)]()))));}[_0x4c11a7(0x15c)](_0x4dfb7b){const _0x4629dd=_0x4c11a7;let _0x3475fc=this[_0x4629dd(0x155)](_0x4dfb7b);if(!_0x3475fc)return _0x42541e[_0x4629dd(0x16e)];let _0x542e4b=this[_0x4629dd(0x137)][_0x4629dd(0x14c)](_0x3475fc);return(_0x542e4b==null?void 0x0:_0x542e4b[_0x4629dd(0x14a)]['status'])??_0x42541e[_0x4629dd(0x16e)];}[_0x4c11a7(0x14b)](_0x134ab2,_0x2c4217={}){const _0x3b3f60=_0x4c11a7;let _0x27a1a9=this[_0x3b3f60(0x155)](_0x134ab2);if(!_0x27a1a9)return Promise[_0x3b3f60(0x15d)](Error(_0x3b3f60(0x154)));let _0x1d9acb=this[_0x3b3f60(0x137)][_0x3b3f60(0x14c)](_0x27a1a9);if(!_0x1d9acb)return Promise[_0x3b3f60(0x15d)](Error(_0x3b3f60(0x152)+_0x27a1a9+'\x22\x20is\x20not\x20in\x20collaboration\x20mode.'));let _0x5105c4=_0x1d9acb[_0x3b3f60(0x14a)][_0x3b3f60(0x171)];if(_0x5105c4===_0x42541e[_0x3b3f60(0x15e)])return Promise['resolve']();let _0x46e418=b(_0x27a1a9,_0x5105c4);if(_0x46e418)return Promise[_0x3b3f60(0x15d)](_0x46e418);let _0x1019ae=_0x2c4217[_0x3b3f60(0x178)]??0x7530;return new Promise((_0x1847b8,_0x102257)=>{const _0xc2a3d5=_0x3b3f60;let _0x550440=!0x1,_0x4bc62b=null,_0x38d8cc=setTimeout(()=>{const _0x4f88da=_0x5306;_0x550440=!0x0,_0x4bc62b==null||_0x4bc62b[_0x4f88da(0x13a)](),_0x102257(Error(_0x4f88da(0x130)+_0x27a1a9+'\x22\x20after\x20'+_0x1019ae+_0x4f88da(0x12d)));},_0x1019ae),_0xdf70c9=()=>{const _0x9d7a31=_0x5306;_0x550440=!0x0,clearTimeout(_0x38d8cc),_0x4bc62b==null||_0x4bc62b[_0x9d7a31(0x13a)]();};_0x4bc62b=_0x1d9acb['status$'][_0xc2a3d5(0x13d)](_0x4bc905=>{const _0x315e49=_0xc2a3d5;if(_0x550440)return;if(_0x4bc905===_0x42541e[_0x315e49(0x15e)]){_0xdf70c9(),_0x1847b8();return;}let _0x19eb64=b(_0x27a1a9,_0x4bc905);_0x19eb64&&(_0xdf70c9(),_0x102257(_0x19eb64));});});}[_0x4c11a7(0x155)](_0x4d5378){const _0x34b0fe=_0x4c11a7;var _0x5ef598;return _0x4d5378||((_0x5ef598=this['_univerInstanceService'][_0x34b0fe(0x16d)]())==null?void 0x0:_0x5ef598[_0x34b0fe(0x17a)]());}};function _0x44b6(){const _0x231cb6=['Event','status','CONFLICT','88xnAVxu','loadServerUnitOfRevision','loadPdfAsync','readyForCollab','disposeWithMe','timeout','object','getUnitId','fireEvent','loadSheet','ms.','createInstance','CollaborationStatus','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','loadSlide','getPdf','loadBoardAsync','227784xhQdfa','\x22\x20while\x20collaboration\x20status\x20is\x20','loadSlideAsync','_collaborationController','loadBase','1Gzxwwa','unsubscribe','loadUnitOfRevision','loadDocAsync','subscribe','get','loadUnit','619389uxrtIU','_snapshotService','1700162PMZnBw','defineProperty','821595AsrFti','decorate','length','loadBoard','loadDoc','getPresentation','state','flush','getCollabEntity','1577331rsWcfA','waitForRoom$','loadBaseAsync','registerEventHandler','extend','[FCollaboration]:\x20Unit\x20\x22','add','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','_resolveUnitId','values','308QYEkbi','getOwnPropertyDescriptor','getBoard','_univerInstanceService','loadSheetAsync','getCollaborationStatus','reject','SYNCED','loadPdf','10VasCHX','unitID','from','3384736NTmVpm','getBase','pipe','_handler','getWorkbook','status$','CollaborationStatusChanged','_injector','9242761AlQlfN','getCollaboration','getFocusedUnit','NOT_COLLAB','function'];_0x44b6=function(){return _0x231cb6;};return _0x44b6();}y=v([_(0x1,_0x1c22d9(_0xcfe44a)),_(0x2,_0x4a4098),_(0x3,_0x1c22d9(_0x183b3c)),_(0x4,_0x1c22d9(_0xab827e))],y);function b(_0x4529cf,_0x4f0a92){const _0x2bc71a=_0x4c11a7;return _0x4f0a92===_0x42541e[_0x2bc71a(0x172)]||_0x4f0a92===_0x42541e['NOT_COLLAB']?Error('[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22'+_0x4529cf+_0x2bc71a(0x135)+_0x4f0a92+'.'):null;}var x=class extends _0x362548{['_initialize'](_0x286f9b){const _0x3c6b00=_0x4c11a7;let _0x351873=_0x286f9b[_0x3c6b00(0x13e)](_0xab827e);this[_0x3c6b00(0x177)](this[_0x3c6b00(0x150)](this[_0x3c6b00(0x170)][_0x3c6b00(0x169)],()=>{const _0x3c0b5f=_0x3c6b00;let _0x4b1745=new _0x1f249c(),_0x53b1d3=_0x351873['entityInit$']['subscribe'](_0x58c1ae=>{const _0x15bc12=_0x5306;let _0x3ef9f3=_0x58c1ae[_0x15bc12(0x168)][_0x15bc12(0x13d)](_0xb6907f=>{const _0x57c372=_0x15bc12;let _0x4e36eb={'unitId':_0x58c1ae[_0x57c372(0x161)],'status':_0xb6907f};this[_0x57c372(0x12b)](this[_0x57c372(0x170)][_0x57c372(0x169)],_0x4e36eb);});_0x4b1745[_0x15bc12(0x153)](_0x54b0d0(_0x3ef9f3));});return _0x4b1745[_0x3c0b5f(0x153)](_0x54b0d0(_0x53b1d3)),_0x4b1745;}));}[_0x4c11a7(0x16c)](){const _0x20a4b0=_0x4c11a7;return this[_0x20a4b0(0x16a)][_0x20a4b0(0x12e)](y,{'getWorkbook':_0x41eb06=>this[_0x20a4b0(0x167)](_0x41eb06),'getDocument':_0x273327=>this['getDocument'](_0x273327),'getPresentation':_0x38c86d=>this[_0x20a4b0(0x149)](_0x38c86d),'getBase':_0x1c5405=>this[_0x20a4b0(0x164)](_0x1c5405),'getBoard':_0x452b20=>this[_0x20a4b0(0x159)](_0x452b20),'getPdf':_0x252454=>this[_0x20a4b0(0x132)](_0x252454)});}['loadServerUnit'](_0xaff415,_0x402889,_0x25205c){const _0x141802=_0x4c11a7;return this[_0x141802(0x16a)][_0x141802(0x13e)](_0x37add9)[_0x141802(0x13f)](_0xaff415,_0x402889,_0x25205c);}[_0x4c11a7(0x174)](_0x4162df,_0x13761e,_0x36b3a1){const _0x5ba75c=_0x4c11a7;return this[_0x5ba75c(0x16a)][_0x5ba75c(0x13e)](_0x37add9)[_0x5ba75c(0x13b)](_0x4162df,_0x13761e,_0x36b3a1);}};_0x362548[_0x4c11a7(0x151)](x);export{y as FCollaboration};
1
+ const _0x210c1f=_0x589a;(function(_0x1b75f7,_0x10fe27){const _0x16d78e=_0x589a,_0x236468=_0x1b75f7();while(!![]){try{const _0x248edf=parseInt(_0x16d78e(0x141))/0x1+-parseInt(_0x16d78e(0x12b))/0x2*(parseInt(_0x16d78e(0x134))/0x3)+-parseInt(_0x16d78e(0x12d))/0x4*(parseInt(_0x16d78e(0x122))/0x5)+-parseInt(_0x16d78e(0x152))/0x6+parseInt(_0x16d78e(0x157))/0x7+parseInt(_0x16d78e(0x140))/0x8+-parseInt(_0x16d78e(0x139))/0x9*(-parseInt(_0x16d78e(0x11d))/0xa);if(_0x248edf===_0x10fe27)break;else _0x236468['push'](_0x236468['shift']());}catch(_0xd7d038){_0x236468['push'](_0x236468['shift']());}}}(_0x1605,0xb4695));import{CollaborationController as _0x5472d5,CollaborationStatus as _0x3d29b6,DataLoaderService as _0x1cac9f,MemberService as _0x31bd0e}from'@univerjs-pro/collaboration-client';function _0x589a(_0x23848c,_0x505241){_0x23848c=_0x23848c-0x118;const _0x16057f=_0x1605();let _0x589a02=_0x16057f[_0x23848c];return _0x589a02;}import{FBase as _0x1b8f1a,FEnum as _0x5d9ce9,FEventName as _0x2a0949,FUniver as _0x55cec4}from'@univerjs/core/facade';import{DisposableCollection as _0x46e553,IUniverInstanceService as _0xe8ddb7,Inject as _0x3b6ddc,Injector as _0x44381d,toDisposable as _0x34855b}from'@univerjs/core';import{SnapshotService as _0x813d07}from'@univerjs-pro/collaboration';import{switchMap as _0x7c99bd}from'rxjs';var h=class extends _0x5d9ce9{get[_0x210c1f(0x159)](){return _0x3d29b6;}};_0x5d9ce9['extend'](h);var g=class extends _0x2a0949{get['CollaborationStatusChanged'](){const _0x39d374=_0x210c1f;return _0x39d374(0x136);}};_0x2a0949[_0x210c1f(0x13c)](g);function _(_0x42b72d,_0x283fbb){return function(_0x41bcf8,_0x456981){_0x283fbb(_0x41bcf8,_0x456981,_0x42b72d);};}function v(_0x1f7c18,_0x214aef,_0x2f3b32,_0x1f550e){const _0x950513=_0x210c1f;var _0x324543=arguments[_0x950513(0x156)],_0x2ae601=_0x324543<0x3?_0x214aef:_0x1f550e===null?_0x1f550e=Object[_0x950513(0x135)](_0x214aef,_0x2f3b32):_0x1f550e,_0x457627;if(typeof Reflect==_0x950513(0x146)&&typeof Reflect['decorate']=='function')_0x2ae601=Reflect[_0x950513(0x120)](_0x1f7c18,_0x214aef,_0x2f3b32,_0x1f550e);else{for(var _0x521fcd=_0x1f7c18[_0x950513(0x156)]-0x1;_0x521fcd>=0x0;_0x521fcd--)(_0x457627=_0x1f7c18[_0x521fcd])&&(_0x2ae601=(_0x324543<0x3?_0x457627(_0x2ae601):_0x324543>0x3?_0x457627(_0x214aef,_0x2f3b32,_0x2ae601):_0x457627(_0x214aef,_0x2f3b32))||_0x2ae601);}return _0x324543>0x3&&_0x2ae601&&Object[_0x950513(0x131)](_0x214aef,_0x2f3b32,_0x2ae601),_0x2ae601;}let y=class extends _0x1b8f1a{constructor(_0x1905fd,_0x344612,_0x597aa6,_0x20ed1b,_0x3f97f2){const _0x368d3a=_0x210c1f;super(),this['_handler']=_0x1905fd,this['_injector']=_0x344612,this['_univerInstanceService']=_0x597aa6,this[_0x368d3a(0x13d)]=_0x20ed1b,this[_0x368d3a(0x11b)]=_0x3f97f2;}async[_0x210c1f(0x11a)](_0x421b17,_0x3f40cf){const _0x325cfa=_0x210c1f;return await this[_0x325cfa(0x13d)][_0x325cfa(0x14f)](_0x421b17,0x0,_0x3f40cf)?(await this[_0x325cfa(0x11b)][_0x325cfa(0x15c)](_0x421b17),this[_0x325cfa(0x132)]['getWorkbook'](_0x421b17)):null;}async[_0x210c1f(0x149)](_0x29e46f,_0x5b24f9){const _0xfa8c27=_0x210c1f;return await this[_0xfa8c27(0x13d)]['loadDoc'](_0x29e46f,0x0,_0x5b24f9)?(await this['_collaborationController'][_0xfa8c27(0x15c)](_0x29e46f),this['_handler']['getDocument'](_0x29e46f)):null;}async[_0x210c1f(0x127)](_0x4ff275,_0x3de97c){const _0xf9b3d3=_0x210c1f;return await this[_0xf9b3d3(0x13d)][_0xf9b3d3(0x118)](_0x4ff275,0x0,_0x3de97c)?(await this[_0xf9b3d3(0x11b)]['readyForCollab'](_0x4ff275),this[_0xf9b3d3(0x132)]['getBase'](_0x4ff275)):null;}async[_0x210c1f(0x13b)](_0x3a9fc7,_0x1a7b8a){const _0x1b437e=_0x210c1f;return await this[_0x1b437e(0x13d)][_0x1b437e(0x158)](_0x3a9fc7,0x0,_0x1a7b8a)?(await this[_0x1b437e(0x11b)][_0x1b437e(0x15c)](_0x3a9fc7),this[_0x1b437e(0x132)]['getPresentation'](_0x3a9fc7)):null;}async[_0x210c1f(0x130)](_0x1326b6,_0x4be5b7){const _0x11ccd3=_0x210c1f;return await this[_0x11ccd3(0x13d)][_0x11ccd3(0x11e)](_0x1326b6,0x0,_0x4be5b7)?(await this[_0x11ccd3(0x11b)][_0x11ccd3(0x15c)](_0x1326b6),this[_0x11ccd3(0x132)]['getBoard'](_0x1326b6)):null;}async[_0x210c1f(0x14d)](_0x4c7e88,_0x1c0f65){const _0x1fd9e3=_0x210c1f;return await this[_0x1fd9e3(0x13d)][_0x1fd9e3(0x14a)](_0x4c7e88,0x0,_0x1c0f65)?(await this[_0x1fd9e3(0x11b)][_0x1fd9e3(0x15c)](_0x4c7e88),this['_handler']['getPdf'](_0x4c7e88)):null;}['subscribeCollaborators'](_0x27f5d0,_0x4106f4){const _0x4b7380=_0x210c1f;let _0x360d42=this['_injector'][_0x4b7380(0x142)](_0x31bd0e)[_0x4b7380(0x161)](_0x27f5d0)[_0x4b7380(0x11f)](_0x7c99bd(_0x3cda15=>_0x3cda15[_0x4b7380(0x12c)]))[_0x4b7380(0x151)](_0x381634=>_0x4106f4(Array[_0x4b7380(0x126)](_0x381634[_0x4b7380(0x143)]())));return _0x34855b(_0x360d42);}[_0x210c1f(0x153)](_0x29fb0c){const _0x561242=_0x210c1f;let _0x4b7b7f=this['_resolveUnitId'](_0x29fb0c);if(!_0x4b7b7f)return _0x3d29b6['NOT_COLLAB'];let _0x4184ac=this[_0x561242(0x11b)][_0x561242(0x144)](_0x4b7b7f);return(_0x4184ac==null?void 0x0:_0x4184ac[_0x561242(0x15b)][_0x561242(0x148)])??_0x3d29b6[_0x561242(0x154)];}[_0x210c1f(0x160)](_0x20eb80,_0x3dfed1={}){const _0x4eea29=_0x210c1f;let _0x30acdb=this[_0x4eea29(0x13e)](_0x20eb80);if(!_0x30acdb)return Promise[_0x4eea29(0x123)](Error(_0x4eea29(0x128)));let _0x25cd53=this[_0x4eea29(0x11b)][_0x4eea29(0x144)](_0x30acdb);if(!_0x25cd53)return Promise['reject'](Error('[FCollaboration]:\x20Unit\x20\x22'+_0x30acdb+_0x4eea29(0x12e)));let _0x3db3c3=_0x25cd53['state'][_0x4eea29(0x148)];if(_0x3db3c3===_0x3d29b6[_0x4eea29(0x14e)])return Promise[_0x4eea29(0x150)]();let _0x1a846e=b(_0x30acdb,_0x3db3c3);if(_0x1a846e)return Promise['reject'](_0x1a846e);let _0x8eb186=_0x3dfed1[_0x4eea29(0x13a)]??0x7530;return new Promise((_0xbc5941,_0x123489)=>{const _0x3760ed=_0x4eea29;let _0x88bea7=!0x1,_0x35ede6=null,_0x50f227=setTimeout(()=>{const _0xd07cf1=_0x589a;_0x88bea7=!0x0,_0x35ede6==null||_0x35ede6[_0xd07cf1(0x15a)](),_0x123489(Error(_0xd07cf1(0x155)+_0x30acdb+'\x22\x20after\x20'+_0x8eb186+_0xd07cf1(0x14c)));},_0x8eb186),_0x592738=()=>{const _0x270902=_0x589a;_0x88bea7=!0x0,clearTimeout(_0x50f227),_0x35ede6==null||_0x35ede6[_0x270902(0x15a)]();};_0x35ede6=_0x25cd53['status$'][_0x3760ed(0x151)](_0x3c52f3=>{const _0x1069c9=_0x3760ed;if(_0x88bea7)return;if(_0x3c52f3===_0x3d29b6[_0x1069c9(0x14e)]){_0x592738(),_0xbc5941();return;}let _0x58fbc7=b(_0x30acdb,_0x3c52f3);_0x58fbc7&&(_0x592738(),_0x123489(_0x58fbc7));});});}[_0x210c1f(0x13e)](_0x389033){const _0x69502b=_0x210c1f;var _0x29e3ca;return _0x389033||((_0x29e3ca=this[_0x69502b(0x14b)]['getFocusedUnit']())==null?void 0x0:_0x29e3ca['getUnitId']());}};function _0x1605(){const _0x5b44cb=['loadPdf','_univerInstanceService','ms.','loadPdfAsync','SYNCED','loadSheet','resolve','subscribe','7149282uzqxxU','getCollaborationStatus','NOT_COLLAB','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','length','4511717PIYiIA','loadSlide','CollaborationStatus','unsubscribe','state','readyForCollab','getBoard','getDocument','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','flush','waitForRoom$','loadBase','add','loadSheetAsync','_collaborationController','loadServerUnit','10qIbCum','loadBoard','pipe','decorate','Event','44205tTorvN','reject','unitID','getPresentation','from','loadBaseAsync','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','getBase','loadServerUnitOfRevision','1806428rLADZc','members$','356BUTbxs','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','_injector','loadBoardAsync','defineProperty','_handler','registerEventHandler','3zSxtww','getOwnPropertyDescriptor','CollaborationStatusChanged','entityInit$','getPdf','4513617pLGYeb','timeout','loadSlideAsync','extend','_snapshotService','_resolveUnitId','loadUnit','9060616QWXDPt','1341954tQvQRC','get','values','getCollabEntity','getWorkbook','object','loadUnitOfRevision','status','loadDocAsync'];_0x1605=function(){return _0x5b44cb;};return _0x1605();}y=v([_(0x1,_0x3b6ddc(_0x44381d)),_(0x2,_0xe8ddb7),_(0x3,_0x3b6ddc(_0x813d07)),_(0x4,_0x3b6ddc(_0x5472d5))],y);function b(_0x56e7e4,_0x12ab2f){const _0x10769f=_0x210c1f;return _0x12ab2f===_0x3d29b6['CONFLICT']||_0x12ab2f===_0x3d29b6[_0x10769f(0x154)]?Error(_0x10769f(0x15f)+_0x56e7e4+'\x22\x20while\x20collaboration\x20status\x20is\x20'+_0x12ab2f+'.'):null;}var x=class extends _0x55cec4{['_initialize'](_0x5bdbb5){const _0x1212ce=_0x210c1f;let _0x373c5c=_0x5bdbb5[_0x1212ce(0x142)](_0x5472d5);this['disposeWithMe'](this[_0x1212ce(0x133)](this[_0x1212ce(0x121)][_0x1212ce(0x136)],()=>{const _0x1eb905=_0x1212ce;let _0x227dce=new _0x46e553(),_0x220470=_0x373c5c[_0x1eb905(0x137)][_0x1eb905(0x151)](_0x2e08d1=>{const _0x49a442=_0x1eb905;let _0x3a09fb=_0x2e08d1['status$']['subscribe'](_0x380e0f=>{const _0x14a9ea=_0x589a;let _0x58273a={'unitId':_0x2e08d1[_0x14a9ea(0x124)],'status':_0x380e0f};this['fireEvent'](this['Event'][_0x14a9ea(0x136)],_0x58273a);});_0x227dce[_0x49a442(0x119)](_0x34855b(_0x3a09fb));});return _0x227dce[_0x1eb905(0x119)](_0x34855b(_0x220470)),_0x227dce;}));}['getCollaboration'](){const _0x229b83=_0x210c1f;return this[_0x229b83(0x12f)]['createInstance'](y,{'getWorkbook':_0x56e427=>this[_0x229b83(0x145)](_0x56e427),'getDocument':_0x431160=>this[_0x229b83(0x15e)](_0x431160),'getPresentation':_0x1c77ec=>this[_0x229b83(0x125)](_0x1c77ec),'getBase':_0x59549e=>this[_0x229b83(0x129)](_0x59549e),'getBoard':_0x5b9d50=>this[_0x229b83(0x15d)](_0x5b9d50),'getPdf':_0x1d3e61=>this[_0x229b83(0x138)](_0x1d3e61)});}[_0x210c1f(0x11c)](_0x236d4c,_0xf58df0,_0x5deda9){const _0x29023e=_0x210c1f;return this['_injector'][_0x29023e(0x142)](_0x1cac9f)[_0x29023e(0x13f)](_0x236d4c,_0xf58df0,_0x5deda9);}[_0x210c1f(0x12a)](_0x479428,_0x2af575,_0x50d34f){const _0x1c60a5=_0x210c1f;return this[_0x1c60a5(0x12f)][_0x1c60a5(0x142)](_0x1cac9f)[_0x1c60a5(0x147)](_0x479428,_0x2af575,_0x50d34f);}};_0x55cec4[_0x210c1f(0x13c)](x);export{y as FCollaboration};