@univerjs-pro/collaboration-client 1.0.0-beta.0 → 1.0.0-beta.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 (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/facade/f-collaboration.d.ts +14 -0
  65. package/lib/types/services/undoredo/collaborative-undoredo.service.d.ts +2 -2
  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 +16 -16
@@ -1,6 +1,7 @@
1
1
  import type { FBase as FBaseFacade } from '@univerjs-pro/bases/facade';
2
2
  import type { FBoard } from '@univerjs-pro/boards/facade';
3
3
  import type { ILogContext } from '@univerjs-pro/collaboration';
4
+ import type { FPdf } from '@univerjs-pro/pdfs/facade';
4
5
  import type { FPresentation } from '@univerjs-pro/slides/facade';
5
6
  import type { IDisposable } from '@univerjs/core';
6
7
  import type { FDocument } from '@univerjs/docs/facade';
@@ -34,6 +35,7 @@ export declare class FCollaboration extends FBase {
34
35
  getPresentation: (id: string) => FPresentation | null;
35
36
  getBase: (id: string) => FBaseFacade | null;
36
37
  getBoard: (id: string) => FBoard | null;
38
+ getPdf: (id: string) => FPdf | null;
37
39
  }, _injector: Injector, _univerInstanceService: IUniverInstanceService, _snapshotService: SnapshotService, _collaborationController: CollaborationController);
38
40
  /**
39
41
  * Load a Univer Sheet from the server with a unit ID.
@@ -95,6 +97,18 @@ export declare class FCollaboration extends FBase {
95
97
  * ```
96
98
  */
97
99
  loadBoardAsync(unitId: string, context?: ILogContext): Promise<FBoard | null>;
100
+ /**
101
+ * Load a Univer PDF from the server with a unit ID.
102
+ * @param {string} unitId ID of the Univer PDF that you would like to load.
103
+ * @param {ILogContext} [context] Optional context.
104
+ * @returns {Promise<FPdf | null>} The {@link FPdf} or null if ID cannot be associated with a Univer PDF.
105
+ * @example
106
+ * ```typescript
107
+ * const collaboration = univerAPI.getCollaboration();
108
+ * const pdf = await collaboration.loadPdfAsync('your-unit-id');
109
+ * ```
110
+ */
111
+ loadPdfAsync(unitId: string, context?: ILogContext): Promise<FPdf | null>;
98
112
  /**
99
113
  * Subscribe collaborators of a Univer file.
100
114
  *
@@ -1,7 +1,7 @@
1
1
  import type { IChangeset } from '@univerjs-pro/collaboration';
2
2
  import type { IUndoRedoService } from '@univerjs/core';
3
3
  import { ITransformService } from '@univerjs-pro/collaboration';
4
- import { ICommandService, IContextService, ILogService, IUniverInstanceService, LocalUndoRedoService } from '@univerjs/core';
4
+ import { ICommandService, IConfigService, IContextService, ILogService, IUniverInstanceService, LocalUndoRedoService } from '@univerjs/core';
5
5
  /**
6
6
  * `LocalUndoRedoService` cannot transform mutations in the undo redo stack under collaboration conditions.
7
7
  */
@@ -11,7 +11,7 @@ export interface ICollaborativeUndoRedoService extends IUndoRedoService {
11
11
  export declare class CollaborativeUndoRedoService extends LocalUndoRedoService implements ICollaborativeUndoRedoService {
12
12
  private readonly _transformService;
13
13
  private readonly _logService;
14
- constructor(_currentUniverSheet: IUniverInstanceService, _commandService: ICommandService, _contextService: IContextService, _transformService: ITransformService, _logService: ILogService);
14
+ constructor(_currentUniverSheet: IUniverInstanceService, _commandService: ICommandService, _contextService: IContextService, _configService: IConfigService, _transformService: ITransformService, _logService: ILogService);
15
15
  transformUndoRedo(unitID: string, changesets: IChangeset): void;
16
16
  private _clearUndo;
17
17
  private _clearRedo;
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x51f1(_0x428df8,_0x4a71c3){_0x428df8=_0x428df8-0x110;const _0xb3f346=_0xb3f3();let _0x51f1d4=_0xb3f346[_0x428df8];return _0x51f1d4;}(function(_0x261889,_0x5271bb){const _0x1ef0ea=_0x51f1,_0x10f931=_0x261889();while(!![]){try{const _0x13a1a5=parseInt(_0x1ef0ea(0x154))/0x1*(-parseInt(_0x1ef0ea(0x122))/0x2)+parseInt(_0x1ef0ea(0x168))/0x3+parseInt(_0x1ef0ea(0x15c))/0x4*(-parseInt(_0x1ef0ea(0x138))/0x5)+parseInt(_0x1ef0ea(0x115))/0x6+parseInt(_0x1ef0ea(0x130))/0x7+-parseInt(_0x1ef0ea(0x159))/0x8+parseInt(_0x1ef0ea(0x136))/0x9;if(_0x13a1a5===_0x5271bb)break;else _0x10f931['push'](_0x10f931['shift']());}catch(_0x38cc1e){_0x10f931['push'](_0x10f931['shift']());}}}(_0xb3f3,0x2e26a),function(_0x5d8111,_0x24b5ae){const _0x5d1113=_0x51f1;typeof exports=='object'&&typeof module<'u'?_0x24b5ae(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core/facade'),require('@univerjs/core'),require('@univerjs-pro/collaboration'),require('rxjs')):typeof define==_0x5d1113(0x169)&&define[_0x5d1113(0x132)]?define([_0x5d1113(0x140),_0x5d1113(0x13c),_0x5d1113(0x139),_0x5d1113(0x14b),_0x5d1113(0x16e),'rxjs'],_0x24b5ae):(_0x5d8111=typeof globalThis<'u'?globalThis:_0x5d8111||self,_0x24b5ae(_0x5d8111[_0x5d1113(0x14c)]={},_0x5d8111['UniverProCollaborationClient'],_0x5d8111['UniverCoreFacade'],_0x5d8111[_0x5d1113(0x150)],_0x5d8111['UniverProCollaboration'],_0x5d8111[_0x5d1113(0x13b)]));}(this,function(_0x522e94,_0xdda150,_0x4f7f51,_0x423b42,_0x5934e5,_0x29f433){const _0x3bf646=_0x51f1;Object[_0x3bf646(0x160)](_0x522e94,Symbol['toStringTag'],{'value':_0x3bf646(0x163)});var _0x487f2f=class extends _0x4f7f51[_0x3bf646(0x110)]{get[_0x3bf646(0x16f)](){const _0xb979c8=_0x3bf646;return _0xdda150[_0xb979c8(0x16f)];}};_0x4f7f51[_0x3bf646(0x110)][_0x3bf646(0x117)](_0x487f2f);var _0x51b9fb=class extends _0x4f7f51[_0x3bf646(0x162)]{get['CollaborationStatusChanged'](){const _0xf4d7e0=_0x3bf646;return _0xf4d7e0(0x112);}};_0x4f7f51[_0x3bf646(0x162)][_0x3bf646(0x117)](_0x51b9fb);function _0x47a05f(_0x5a13d9,_0x55d0bc){return function(_0x2efdbd,_0x1ab8af){_0x55d0bc(_0x2efdbd,_0x1ab8af,_0x5a13d9);};}function _0x3a9dd8(_0x3c8730,_0x1d7ffb,_0x40a554,_0x5c6e85){const _0x691bfa=_0x3bf646;var _0x1bc063=arguments[_0x691bfa(0x113)],_0x56a92f=_0x1bc063<0x3?_0x1d7ffb:_0x5c6e85===null?_0x5c6e85=Object['getOwnPropertyDescriptor'](_0x1d7ffb,_0x40a554):_0x5c6e85,_0x173f34;if(typeof Reflect==_0x691bfa(0x16d)&&typeof Reflect['decorate']=='function')_0x56a92f=Reflect['decorate'](_0x3c8730,_0x1d7ffb,_0x40a554,_0x5c6e85);else{for(var _0x13de7e=_0x3c8730[_0x691bfa(0x113)]-0x1;_0x13de7e>=0x0;_0x13de7e--)(_0x173f34=_0x3c8730[_0x13de7e])&&(_0x56a92f=(_0x1bc063<0x3?_0x173f34(_0x56a92f):_0x1bc063>0x3?_0x173f34(_0x1d7ffb,_0x40a554,_0x56a92f):_0x173f34(_0x1d7ffb,_0x40a554))||_0x56a92f);}return _0x1bc063>0x3&&_0x56a92f&&Object[_0x691bfa(0x160)](_0x1d7ffb,_0x40a554,_0x56a92f),_0x56a92f;}let _0x5ca87b=class extends _0x4f7f51[_0x3bf646(0x15a)]{constructor(_0x1e018c,_0x55d7b9,_0x23ebf1,_0x29d35a,_0x29d176){const _0x44e959=_0x3bf646;super(),this[_0x44e959(0x12d)]=_0x1e018c,this[_0x44e959(0x111)]=_0x55d7b9,this[_0x44e959(0x118)]=_0x23ebf1,this[_0x44e959(0x158)]=_0x29d35a,this['_collaborationController']=_0x29d176;}async[_0x3bf646(0x14d)](_0x53c2a3,_0x4b7f75){const _0x3266c4=_0x3bf646;return await this[_0x3266c4(0x158)][_0x3266c4(0x13d)](_0x53c2a3,0x0,_0x4b7f75)?(await this[_0x3266c4(0x129)][_0x3266c4(0x147)](_0x53c2a3),this[_0x3266c4(0x12d)][_0x3266c4(0x116)](_0x53c2a3)):null;}async[_0x3bf646(0x15f)](_0x2f275e,_0x2ff08a){const _0x2cc2b2=_0x3bf646;return await this[_0x2cc2b2(0x158)]['loadDoc'](_0x2f275e,0x0,_0x2ff08a)?(await this[_0x2cc2b2(0x129)][_0x2cc2b2(0x147)](_0x2f275e),this['_handler'][_0x2cc2b2(0x151)](_0x2f275e)):null;}async[_0x3bf646(0x121)](_0x112861,_0x39aec5){const _0x533769=_0x3bf646;return await this[_0x533769(0x158)][_0x533769(0x114)](_0x112861,0x0,_0x39aec5)?(await this[_0x533769(0x129)][_0x533769(0x147)](_0x112861),this['_handler'][_0x533769(0x12f)](_0x112861)):null;}async[_0x3bf646(0x13a)](_0x1ef4d3,_0xfc36b0){const _0x442b91=_0x3bf646;return await this[_0x442b91(0x158)][_0x442b91(0x16c)](_0x1ef4d3,0x0,_0xfc36b0)?(await this[_0x442b91(0x129)]['readyForCollab'](_0x1ef4d3),this['_handler'][_0x442b91(0x11e)](_0x1ef4d3)):null;}async[_0x3bf646(0x167)](_0x246c1e,_0x16a889){const _0xe1230a=_0x3bf646;return await this[_0xe1230a(0x158)][_0xe1230a(0x164)](_0x246c1e,0x0,_0x16a889)?(await this[_0xe1230a(0x129)][_0xe1230a(0x147)](_0x246c1e),this[_0xe1230a(0x12d)][_0xe1230a(0x170)](_0x246c1e)):null;}[_0x3bf646(0x146)](_0x38af7f,_0x20a319){const _0x2194c9=_0x3bf646;return(0x0,_0x423b42['toDisposable'])(this[_0x2194c9(0x111)][_0x2194c9(0x142)](_0xdda150[_0x2194c9(0x161)])[_0x2194c9(0x11c)](_0x38af7f)[_0x2194c9(0x14f)]((0x0,_0x29f433[_0x2194c9(0x137)])(_0x272dbf=>_0x272dbf['members$']))['subscribe'](_0x674f26=>_0x20a319(Array[_0x2194c9(0x128)](_0x674f26['values']()))));}[_0x3bf646(0x12a)](_0x2733a5){const _0x21435f=_0x3bf646;let _0xdbf358=this['_resolveUnitId'](_0x2733a5);if(!_0xdbf358)return _0xdda150[_0x21435f(0x16f)][_0x21435f(0x133)];let _0x2a10e5=this['_collaborationController'][_0x21435f(0x12e)](_0xdbf358);return(_0x2a10e5==null?void 0x0:_0x2a10e5['state'][_0x21435f(0x156)])??_0xdda150[_0x21435f(0x16f)][_0x21435f(0x133)];}['flush'](_0xe8f36b,_0x21b4c6={}){const _0x5c9914=_0x3bf646;let _0x12ebd6=this[_0x5c9914(0x15b)](_0xe8f36b);if(!_0x12ebd6)return Promise['reject'](Error('[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.'));let _0x37ebc2=this['_collaborationController'][_0x5c9914(0x12e)](_0x12ebd6);if(!_0x37ebc2)return Promise[_0x5c9914(0x16a)](Error('[FCollaboration]:\x20Unit\x20\x22'+_0x12ebd6+_0x5c9914(0x127)));let _0x825376=_0x37ebc2['state']['status'];if(_0x825376===_0xdda150[_0x5c9914(0x16f)][_0x5c9914(0x171)])return Promise[_0x5c9914(0x11a)]();let _0x45ddbd=_0x3695d0(_0x12ebd6,_0x825376);if(_0x45ddbd)return Promise[_0x5c9914(0x16a)](_0x45ddbd);let _0x42473e=_0x21b4c6[_0x5c9914(0x14a)]??0x7530;return new Promise((_0x56128a,_0x21eb95)=>{const _0x2d2450=_0x5c9914;let _0x22fbc1=!0x1,_0x24827c=null,_0x5d291f=setTimeout(()=>{const _0x3994cf=_0x51f1;_0x22fbc1=!0x0,_0x24827c==null||_0x24827c[_0x3994cf(0x152)](),_0x21eb95(Error(_0x3994cf(0x125)+_0x12ebd6+_0x3994cf(0x123)+_0x42473e+_0x3994cf(0x15e)));},_0x42473e),_0x57603f=()=>{const _0x4f4a94=_0x51f1;_0x22fbc1=!0x0,clearTimeout(_0x5d291f),_0x24827c==null||_0x24827c[_0x4f4a94(0x152)]();};_0x24827c=_0x37ebc2[_0x2d2450(0x131)][_0x2d2450(0x149)](_0x35fc08=>{const _0x3b6e0e=_0x2d2450;if(_0x22fbc1)return;if(_0x35fc08===_0xdda150[_0x3b6e0e(0x16f)]['SYNCED']){_0x57603f(),_0x56128a();return;}let _0x12b13b=_0x3695d0(_0x12ebd6,_0x35fc08);_0x12b13b&&(_0x57603f(),_0x21eb95(_0x12b13b));});});}['_resolveUnitId'](_0x2066a){const _0x58ba82=_0x3bf646;var _0x1e34f6;return _0x2066a||((_0x1e34f6=this[_0x58ba82(0x118)][_0x58ba82(0x120)]())==null?void 0x0:_0x1e34f6[_0x58ba82(0x157)]());}};_0x5ca87b=_0x3a9dd8([_0x47a05f(0x1,(0x0,_0x423b42['Inject'])(_0x423b42[_0x3bf646(0x13e)])),_0x47a05f(0x2,_0x423b42[_0x3bf646(0x16b)]),_0x47a05f(0x3,(0x0,_0x423b42[_0x3bf646(0x153)])(_0x5934e5['SnapshotService'])),_0x47a05f(0x4,(0x0,_0x423b42[_0x3bf646(0x153)])(_0xdda150[_0x3bf646(0x11f)]))],_0x5ca87b);function _0x3695d0(_0x4e5311,_0x14b208){const _0x56d2a5=_0x3bf646;return _0x14b208===_0xdda150[_0x56d2a5(0x16f)]['CONFLICT']||_0x14b208===_0xdda150[_0x56d2a5(0x16f)][_0x56d2a5(0x133)]?Error(_0x56d2a5(0x166)+_0x4e5311+_0x56d2a5(0x144)+_0x14b208+'.'):null;}var _0x338055=class extends _0x4f7f51[_0x3bf646(0x141)]{[_0x3bf646(0x135)](_0x4c00da){const _0x2ea161=_0x3bf646;let _0x530ad6=_0x4c00da[_0x2ea161(0x142)](_0xdda150[_0x2ea161(0x11f)]);this[_0x2ea161(0x155)](this[_0x2ea161(0x124)](this[_0x2ea161(0x13f)]['CollaborationStatusChanged'],()=>{const _0x483831=_0x2ea161;let _0x15d3bb=new _0x423b42[(_0x483831(0x126))](),_0x48e4e6=_0x530ad6[_0x483831(0x119)]['subscribe'](_0x49084e=>{const _0x3436a8=_0x483831;let _0x46c182=_0x49084e[_0x3436a8(0x131)][_0x3436a8(0x149)](_0x2212d2=>{const _0x51c901=_0x3436a8;let _0x1db387={'unitId':_0x49084e[_0x51c901(0x12b)],'status':_0x2212d2};this['fireEvent'](this['Event'][_0x51c901(0x112)],_0x1db387);});_0x15d3bb[_0x3436a8(0x165)]((0x0,_0x423b42[_0x3436a8(0x148)])(_0x46c182));});return _0x15d3bb[_0x483831(0x165)]((0x0,_0x423b42[_0x483831(0x148)])(_0x48e4e6)),_0x15d3bb;}));}[_0x3bf646(0x134)](){const _0x514543=_0x3bf646;return this['_injector'][_0x514543(0x11b)](_0x5ca87b,{'getWorkbook':_0x18b5f1=>this['getWorkbook'](_0x18b5f1),'getDocument':_0x4f4d57=>this[_0x514543(0x151)](_0x4f4d57),'getPresentation':_0x479c73=>this[_0x514543(0x11e)](_0x479c73),'getBase':_0x17920d=>this['getBase'](_0x17920d),'getBoard':_0x39db1f=>this[_0x514543(0x170)](_0x39db1f)});}[_0x3bf646(0x145)](_0x85367f,_0x46cd68,_0x5dc1ac){const _0x10ffd5=_0x3bf646;return this[_0x10ffd5(0x111)][_0x10ffd5(0x142)](_0xdda150[_0x10ffd5(0x11d)])[_0x10ffd5(0x14e)](_0x85367f,_0x46cd68,_0x5dc1ac);}[_0x3bf646(0x15d)](_0x19ed24,_0x1add6e,_0x2fc247){const _0x2c352d=_0x3bf646;return this['_injector'][_0x2c352d(0x142)](_0xdda150[_0x2c352d(0x11d)])[_0x2c352d(0x143)](_0x19ed24,_0x1add6e,_0x2fc247);}};_0x4f7f51[_0x3bf646(0x141)][_0x3bf646(0x117)](_0x338055),Object[_0x3bf646(0x160)](_0x522e94,_0x3bf646(0x12c),{'enumerable':!0x0,'get':function(){return _0x5ca87b;}});}));function _0xb3f3(){const _0x1e61cf=['UniverProCollaborationClientFacade','loadSheetAsync','loadUnit','pipe','UniverCore','getDocument','unsubscribe','Inject','1kRIvCe','disposeWithMe','status','getUnitId','_snapshotService','1902016gKRVun','FBase','_resolveUnitId','16THPyCl','loadServerUnitOfRevision','ms.','loadDocAsync','defineProperty','MemberService','FEventName','Module','loadBoard','add','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','loadBoardAsync','569901pVfZBD','function','reject','IUniverInstanceService','loadSlide','object','@univerjs-pro/collaboration','CollaborationStatus','getBoard','SYNCED','FEnum','_injector','CollaborationStatusChanged','length','loadBase','2208408PKXKTF','getWorkbook','extend','_univerInstanceService','entityInit$','resolve','createInstance','waitForRoom$','DataLoaderService','getPresentation','CollaborationController','getFocusedUnit','loadBaseAsync','709942mSrJod','\x22\x20after\x20','registerEventHandler','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','DisposableCollection','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','from','_collaborationController','getCollaborationStatus','unitID','FCollaboration','_handler','getCollabEntity','getBase','1329923oMkKGv','status$','amd','NOT_COLLAB','getCollaboration','_initialize','3034341HmOGNx','switchMap','379270ZShTBr','@univerjs/core/facade','loadSlideAsync','rxjs','@univerjs-pro/collaboration-client','loadSheet','Injector','Event','exports','FUniver','get','loadUnitOfRevision','\x22\x20while\x20collaboration\x20status\x20is\x20','loadServerUnit','subscribeCollaborators','readyForCollab','toDisposable','subscribe','timeout','@univerjs/core'];_0xb3f3=function(){return _0x1e61cf;};return _0xb3f3();}
1
+ function _0x1d38(_0x52726f,_0x314b9d){_0x52726f=_0x52726f-0x8e;const _0x4636e6=_0x4636();let _0x1d38d4=_0x4636e6[_0x52726f];return _0x1d38d4;}(function(_0x33c17e,_0x1a9c77){const _0x13e289=_0x1d38,_0x44916a=_0x33c17e();while(!![]){try{const _0x4d445e=parseInt(_0x13e289(0xd9))/0x1*(parseInt(_0x13e289(0x93))/0x2)+parseInt(_0x13e289(0xdb))/0x3*(parseInt(_0x13e289(0x95))/0x4)+parseInt(_0x13e289(0xb5))/0x5+-parseInt(_0x13e289(0xc3))/0x6+-parseInt(_0x13e289(0xae))/0x7*(-parseInt(_0x13e289(0xa2))/0x8)+-parseInt(_0x13e289(0xa6))/0x9*(parseInt(_0x13e289(0xaf))/0xa)+-parseInt(_0x13e289(0x9f))/0xb*(parseInt(_0x13e289(0xa1))/0xc);if(_0x4d445e===_0x1a9c77)break;else _0x44916a['push'](_0x44916a['shift']());}catch(_0x4fa121){_0x44916a['push'](_0x44916a['shift']());}}}(_0x4636,0x949fe),function(_0x51d362,_0x4072e3){const _0x163591=_0x1d38;typeof exports==_0x163591(0xac)&&typeof module<'u'?_0x4072e3(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core/facade'),require('@univerjs/core'),require('@univerjs-pro/collaboration'),require('rxjs')):typeof define==_0x163591(0xc9)&&define[_0x163591(0x96)]?define([_0x163591(0xe7),_0x163591(0xe2),_0x163591(0x9a),_0x163591(0x98),_0x163591(0xf4),_0x163591(0xbe)],_0x4072e3):(_0x51d362=typeof globalThis<'u'?globalThis:_0x51d362||self,_0x4072e3(_0x51d362[_0x163591(0xf2)]={},_0x51d362[_0x163591(0xee)],_0x51d362[_0x163591(0xd6)],_0x51d362[_0x163591(0xdd)],_0x51d362[_0x163591(0xda)],_0x51d362[_0x163591(0xbe)]));}(this,function(_0x435362,_0x2b46cb,_0x488c40,_0x56e679,_0x5beaff,_0x4fb961){const _0x3dcd8e=_0x1d38;Object[_0x3dcd8e(0x91)](_0x435362,Symbol[_0x3dcd8e(0xed)],{'value':'Module'});var _0x5bf9c4=class extends _0x488c40[_0x3dcd8e(0xcd)]{get['CollaborationStatus'](){const _0x5c8c80=_0x3dcd8e;return _0x2b46cb[_0x5c8c80(0xd3)];}};_0x488c40['FEnum'][_0x3dcd8e(0x99)](_0x5bf9c4);var _0x32fb28=class extends _0x488c40[_0x3dcd8e(0xea)]{get[_0x3dcd8e(0xf5)](){return'CollaborationStatusChanged';}};_0x488c40[_0x3dcd8e(0xea)][_0x3dcd8e(0x99)](_0x32fb28);function _0x2ffc90(_0x341553,_0x3a301a){return function(_0x1c5b0a,_0x5e62fe){_0x3a301a(_0x1c5b0a,_0x5e62fe,_0x341553);};}function _0x13234b(_0x5b7e9b,_0x1c1341,_0x52e850,_0x1b70d7){const _0xb922b5=_0x3dcd8e;var _0x363099=arguments['length'],_0x59dce0=_0x363099<0x3?_0x1c1341:_0x1b70d7===null?_0x1b70d7=Object['getOwnPropertyDescriptor'](_0x1c1341,_0x52e850):_0x1b70d7,_0x2d67b9;if(typeof Reflect==_0xb922b5(0xac)&&typeof Reflect[_0xb922b5(0xab)]=='function')_0x59dce0=Reflect['decorate'](_0x5b7e9b,_0x1c1341,_0x52e850,_0x1b70d7);else{for(var _0x4a934d=_0x5b7e9b[_0xb922b5(0xc2)]-0x1;_0x4a934d>=0x0;_0x4a934d--)(_0x2d67b9=_0x5b7e9b[_0x4a934d])&&(_0x59dce0=(_0x363099<0x3?_0x2d67b9(_0x59dce0):_0x363099>0x3?_0x2d67b9(_0x1c1341,_0x52e850,_0x59dce0):_0x2d67b9(_0x1c1341,_0x52e850))||_0x59dce0);}return _0x363099>0x3&&_0x59dce0&&Object[_0xb922b5(0x91)](_0x1c1341,_0x52e850,_0x59dce0),_0x59dce0;}let _0x5eceea=class extends _0x488c40['FBase']{constructor(_0x433dcb,_0x4a2d8f,_0xb98a4c,_0x1628d0,_0x3468e0){const _0x2eb855=_0x3dcd8e;super(),this[_0x2eb855(0xa7)]=_0x433dcb,this[_0x2eb855(0xb0)]=_0x4a2d8f,this[_0x2eb855(0xef)]=_0xb98a4c,this[_0x2eb855(0xc1)]=_0x1628d0,this[_0x2eb855(0x90)]=_0x3468e0;}async[_0x3dcd8e(0xb1)](_0x4e9295,_0x1affbb){const _0x2436b4=_0x3dcd8e;return await this[_0x2436b4(0xc1)]['loadSheet'](_0x4e9295,0x0,_0x1affbb)?(await this[_0x2436b4(0x90)][_0x2436b4(0x92)](_0x4e9295),this[_0x2436b4(0xa7)][_0x2436b4(0xcc)](_0x4e9295)):null;}async[_0x3dcd8e(0xcb)](_0x2a109c,_0x96acfa){const _0x2e09bf=_0x3dcd8e;return await this['_snapshotService'][_0x2e09bf(0xa4)](_0x2a109c,0x0,_0x96acfa)?(await this[_0x2e09bf(0x90)][_0x2e09bf(0x92)](_0x2a109c),this[_0x2e09bf(0xa7)][_0x2e09bf(0xc0)](_0x2a109c)):null;}async['loadBaseAsync'](_0x30cd78,_0x112d75){const _0x38f48a=_0x3dcd8e;return await this[_0x38f48a(0xc1)]['loadBase'](_0x30cd78,0x0,_0x112d75)?(await this[_0x38f48a(0x90)][_0x38f48a(0x92)](_0x30cd78),this[_0x38f48a(0xa7)]['getBase'](_0x30cd78)):null;}async[_0x3dcd8e(0xdc)](_0x3fd716,_0x4d7db4){const _0x4c29d9=_0x3dcd8e;return await this[_0x4c29d9(0xc1)][_0x4c29d9(0x9e)](_0x3fd716,0x0,_0x4d7db4)?(await this[_0x4c29d9(0x90)][_0x4c29d9(0x92)](_0x3fd716),this[_0x4c29d9(0xa7)][_0x4c29d9(0xe8)](_0x3fd716)):null;}async[_0x3dcd8e(0xca)](_0x5dd149,_0x9a199b){const _0x5cd25e=_0x3dcd8e;return await this[_0x5cd25e(0xc1)][_0x5cd25e(0xaa)](_0x5dd149,0x0,_0x9a199b)?(await this['_collaborationController'][_0x5cd25e(0x92)](_0x5dd149),this['_handler'][_0x5cd25e(0xd5)](_0x5dd149)):null;}async[_0x3dcd8e(0x97)](_0x4bc425,_0x3c165a){const _0x38e5aa=_0x3dcd8e;return await this[_0x38e5aa(0xc1)][_0x38e5aa(0xbf)](_0x4bc425,0x0,_0x3c165a)?(await this[_0x38e5aa(0x90)][_0x38e5aa(0x92)](_0x4bc425),this['_handler'][_0x38e5aa(0xc6)](_0x4bc425)):null;}[_0x3dcd8e(0xa0)](_0x57c3d2,_0xfdcc18){const _0x20d465=_0x3dcd8e;return(0x0,_0x56e679[_0x20d465(0xad)])(this[_0x20d465(0xb0)]['get'](_0x2b46cb[_0x20d465(0xc5)])[_0x20d465(0xbb)](_0x57c3d2)[_0x20d465(0xb2)]((0x0,_0x4fb961[_0x20d465(0xa9)])(_0xc5c82e=>_0xc5c82e[_0x20d465(0xa5)]))[_0x20d465(0xd7)](_0x1a8343=>_0xfdcc18(Array[_0x20d465(0xc7)](_0x1a8343['values']()))));}[_0x3dcd8e(0xf7)](_0x416f62){const _0x1017b6=_0x3dcd8e;let _0xb32c96=this[_0x1017b6(0xba)](_0x416f62);if(!_0xb32c96)return _0x2b46cb['CollaborationStatus'][_0x1017b6(0xbc)];let _0x44a62f=this[_0x1017b6(0x90)][_0x1017b6(0x9c)](_0xb32c96);return(_0x44a62f==null?void 0x0:_0x44a62f[_0x1017b6(0x8f)]['status'])??_0x2b46cb['CollaborationStatus'][_0x1017b6(0xbc)];}[_0x3dcd8e(0xe0)](_0x5c6a11,_0x33d145={}){const _0xee852=_0x3dcd8e;let _0x509380=this[_0xee852(0xba)](_0x5c6a11);if(!_0x509380)return Promise[_0xee852(0xec)](Error(_0xee852(0xd2)));let _0x5cbd94=this[_0xee852(0x90)][_0xee852(0x9c)](_0x509380);if(!_0x5cbd94)return Promise['reject'](Error('[FCollaboration]:\x20Unit\x20\x22'+_0x509380+'\x22\x20is\x20not\x20in\x20collaboration\x20mode.'));let _0x1a89a5=_0x5cbd94[_0xee852(0x8f)][_0xee852(0xb3)];if(_0x1a89a5===_0x2b46cb[_0xee852(0xd3)][_0xee852(0xc4)])return Promise[_0xee852(0xa8)]();let _0x582d5d=_0x1a234b(_0x509380,_0x1a89a5);if(_0x582d5d)return Promise[_0xee852(0xec)](_0x582d5d);let _0x2dd15d=_0x33d145[_0xee852(0xd0)]??0x7530;return new Promise((_0x1d7717,_0x2ff514)=>{const _0x489893=_0xee852;let _0x1ae127=!0x1,_0x438c4f=null,_0x243fe5=setTimeout(()=>{const _0x308a30=_0x1d38;_0x1ae127=!0x0,_0x438c4f==null||_0x438c4f[_0x308a30(0xd1)](),_0x2ff514(Error('[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22'+_0x509380+_0x308a30(0xa3)+_0x2dd15d+_0x308a30(0xbd)));},_0x2dd15d),_0x49560f=()=>{const _0x369c7a=_0x1d38;_0x1ae127=!0x0,clearTimeout(_0x243fe5),_0x438c4f==null||_0x438c4f[_0x369c7a(0xd1)]();};_0x438c4f=_0x5cbd94[_0x489893(0xf3)][_0x489893(0xd7)](_0x2da4ab=>{const _0x1eab7e=_0x489893;if(_0x1ae127)return;if(_0x2da4ab===_0x2b46cb['CollaborationStatus'][_0x1eab7e(0xc4)]){_0x49560f(),_0x1d7717();return;}let _0x5d5dae=_0x1a234b(_0x509380,_0x2da4ab);_0x5d5dae&&(_0x49560f(),_0x2ff514(_0x5d5dae));});});}[_0x3dcd8e(0xba)](_0x835911){const _0x57a2f8=_0x3dcd8e;var _0x13da43;return _0x835911||((_0x13da43=this[_0x57a2f8(0xef)][_0x57a2f8(0xf0)]())==null?void 0x0:_0x13da43[_0x57a2f8(0xe9)]());}};_0x5eceea=_0x13234b([_0x2ffc90(0x1,(0x0,_0x56e679['Inject'])(_0x56e679[_0x3dcd8e(0xb7)])),_0x2ffc90(0x2,_0x56e679[_0x3dcd8e(0xf1)]),_0x2ffc90(0x3,(0x0,_0x56e679[_0x3dcd8e(0xce)])(_0x5beaff[_0x3dcd8e(0xd4)])),_0x2ffc90(0x4,(0x0,_0x56e679[_0x3dcd8e(0xce)])(_0x2b46cb[_0x3dcd8e(0xc8)]))],_0x5eceea);function _0x1a234b(_0x3f500a,_0x52e2bd){const _0x80944=_0x3dcd8e;return _0x52e2bd===_0x2b46cb[_0x80944(0xd3)][_0x80944(0xb9)]||_0x52e2bd===_0x2b46cb[_0x80944(0xd3)]['NOT_COLLAB']?Error(_0x80944(0xe6)+_0x3f500a+_0x80944(0xb6)+_0x52e2bd+'.'):null;}var _0x5e8b74=class extends _0x488c40[_0x3dcd8e(0xdf)]{[_0x3dcd8e(0x9d)](_0x130711){const _0x361949=_0x3dcd8e;let _0x47a238=_0x130711[_0x361949(0xe4)](_0x2b46cb[_0x361949(0xc8)]);this[_0x361949(0xcf)](this[_0x361949(0xd8)](this[_0x361949(0xeb)][_0x361949(0xf5)],()=>{const _0x2ceb52=_0x361949;let _0x3ca226=new _0x56e679['DisposableCollection'](),_0x56078d=_0x47a238[_0x2ceb52(0x9b)][_0x2ceb52(0xd7)](_0xdc23f0=>{const _0x167856=_0x2ceb52;let _0x2500bd=_0xdc23f0[_0x167856(0xf3)][_0x167856(0xd7)](_0x3d9b70=>{const _0x2abca8=_0x167856;let _0x1dec68={'unitId':_0xdc23f0[_0x2abca8(0xf6)],'status':_0x3d9b70};this[_0x2abca8(0xe3)](this['Event']['CollaborationStatusChanged'],_0x1dec68);});_0x3ca226[_0x167856(0xb4)]((0x0,_0x56e679['toDisposable'])(_0x2500bd));});return _0x3ca226[_0x2ceb52(0xb4)]((0x0,_0x56e679[_0x2ceb52(0xad)])(_0x56078d)),_0x3ca226;}));}[_0x3dcd8e(0xb8)](){const _0x4026a4=_0x3dcd8e;return this[_0x4026a4(0xb0)]['createInstance'](_0x5eceea,{'getWorkbook':_0x50db4a=>this['getWorkbook'](_0x50db4a),'getDocument':_0x438f46=>this[_0x4026a4(0xc0)](_0x438f46),'getPresentation':_0x2374b4=>this[_0x4026a4(0xe8)](_0x2374b4),'getBase':_0x18487a=>this['getBase'](_0x18487a),'getBoard':_0x288db2=>this[_0x4026a4(0xd5)](_0x288db2),'getPdf':_0x3a58a2=>this[_0x4026a4(0xc6)](_0x3a58a2)});}[_0x3dcd8e(0xe1)](_0x29b6a5,_0x4f63c7,_0x381306){const _0x3ed03d=_0x3dcd8e;return this['_injector'][_0x3ed03d(0xe4)](_0x2b46cb['DataLoaderService'])[_0x3ed03d(0x8e)](_0x29b6a5,_0x4f63c7,_0x381306);}[_0x3dcd8e(0xde)](_0x4d7fc7,_0x3ff5d0,_0x37940e){const _0x55bcb9=_0x3dcd8e;return this[_0x55bcb9(0xb0)][_0x55bcb9(0xe4)](_0x2b46cb[_0x55bcb9(0xe5)])[_0x55bcb9(0x94)](_0x4d7fc7,_0x3ff5d0,_0x37940e);}};_0x488c40[_0x3dcd8e(0xdf)]['extend'](_0x5e8b74),Object[_0x3dcd8e(0x91)](_0x435362,'FCollaboration',{'enumerable':!0x0,'get':function(){return _0x5eceea;}});}));function _0x4636(){const _0x2c8376=['7072878VMOnEr','SYNCED','MemberService','getPdf','from','CollaborationController','function','loadBoardAsync','loadDocAsync','getWorkbook','FEnum','Inject','disposeWithMe','timeout','unsubscribe','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','CollaborationStatus','SnapshotService','getBoard','UniverCoreFacade','subscribe','registerEventHandler','1gqBBJk','UniverProCollaboration','6nnwaGH','loadSlideAsync','UniverCore','loadServerUnitOfRevision','FUniver','flush','loadServerUnit','@univerjs-pro/collaboration-client','fireEvent','get','DataLoaderService','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','exports','getPresentation','getUnitId','FEventName','Event','reject','toStringTag','UniverProCollaborationClient','_univerInstanceService','getFocusedUnit','IUniverInstanceService','UniverProCollaborationClientFacade','status$','@univerjs-pro/collaboration','CollaborationStatusChanged','unitID','getCollaborationStatus','loadUnit','state','_collaborationController','defineProperty','readyForCollab','1157434XnNedP','loadUnitOfRevision','2074704OCiRNr','amd','loadPdfAsync','@univerjs/core','extend','@univerjs/core/facade','entityInit$','getCollabEntity','_initialize','loadSlide','65901lqcHmo','subscribeCollaborators','1272ybrjma','52568iSEXGt','\x22\x20after\x20','loadDoc','members$','1514574asCyHC','_handler','resolve','switchMap','loadBoard','decorate','object','toDisposable','504zAhizH','30vXWXsq','_injector','loadSheetAsync','pipe','status','add','4191510kxrnZE','\x22\x20while\x20collaboration\x20status\x20is\x20','Injector','getCollaboration','CONFLICT','_resolveUnitId','waitForRoom$','NOT_COLLAB','ms.','rxjs','loadPdf','getDocument','_snapshotService','length'];_0x4636=function(){return _0x2c8376;};return _0x4636();}