@univerjs-pro/collaboration-client 1.0.0-alpha.3 → 1.0.0-alpha.5
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.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/controllers/collaboration/collaboration-entity.d.ts +2 -2
- package/lib/types/services/data-loader/data-loader.service.d.ts +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +14 -14
|
@@ -80,9 +80,9 @@ export interface IDocCollaborationEntityCallback {
|
|
|
80
80
|
export declare class DocCollaborationEntity extends CollaborationEntity {
|
|
81
81
|
readonly unitID: string;
|
|
82
82
|
readonly type: UniverInstanceType;
|
|
83
|
-
private readonly _docStateChangeManagerService
|
|
83
|
+
private readonly _docStateChangeManagerService;
|
|
84
84
|
private _handlerCallback;
|
|
85
|
-
constructor(unitID: string, type: UniverInstanceType, session: CollaborationSession, injector: Injector, compressMutationService: CompressMutationService, localeService: LocaleService, revisionService: RevisionService, eventService: CollaborationUIEventService, univerInstanceService: IUniverInstanceService, logService: ILogService, commandService: ICommandService, permissionService: IPermissionService, _docStateChangeManagerService
|
|
85
|
+
constructor(unitID: string, type: UniverInstanceType, session: CollaborationSession, injector: Injector, compressMutationService: CompressMutationService, localeService: LocaleService, revisionService: RevisionService, eventService: CollaborationUIEventService, univerInstanceService: IUniverInstanceService, logService: ILogService, commandService: ICommandService, permissionService: IPermissionService, _docStateChangeManagerService: DocStateChangeManagerService, singleActiveUnitService?: ISingleActiveUnitService, localCacheService?: ILocalCacheService);
|
|
86
86
|
addHandlerCallback(cb: IDocCollaborationEntityCallback): void;
|
|
87
87
|
dispose(): void;
|
|
88
88
|
protected _createHandler(): ICollaborationStateHandler;
|
|
@@ -20,6 +20,6 @@ export declare class DataLoaderService extends RxDisposable {
|
|
|
20
20
|
readonly unitLoaded$: import("rxjs").Observable<UnitModel<object, UniverInstanceType>>;
|
|
21
21
|
constructor(_logService: ILogService, _snapshotService: SnapshotService, _localCacheService?: ILocalCacheService | undefined);
|
|
22
22
|
dispose(): void;
|
|
23
|
-
loadUnitOfRevision(unitId: string, type: UniverInstanceType, rev: number): Promise<UnitModel | null>;
|
|
23
|
+
loadUnitOfRevision(unitId: string, type: UniverInstanceType, rev: number, subUnitId?: string): Promise<UnitModel | null>;
|
|
24
24
|
loadUnit(unitId: string, type: UniverInstanceType, subUnitId?: string): Promise<UnitModel | null>;
|
|
25
25
|
}
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x29fe18,_0x47abbc){const _0x1dae1c=_0x3e43,_0x4bb106=_0x29fe18();while(!![]){try{const _0x1bb982=-parseInt(_0x1dae1c(0x233))/0x1+parseInt(_0x1dae1c(0x248))/0x2*(parseInt(_0x1dae1c(0x249))/0x3)+parseInt(_0x1dae1c(0x215))/0x4+-parseInt(_0x1dae1c(0x1fb))/0x5+-parseInt(_0x1dae1c(0x22e))/0x6+-parseInt(_0x1dae1c(0x20a))/0x7+-parseInt(_0x1dae1c(0x200))/0x8*(-parseInt(_0x1dae1c(0x24a))/0x9);if(_0x1bb982===_0x47abbc)break;else _0x4bb106['push'](_0x4bb106['shift']());}catch(_0x574d56){_0x4bb106['push'](_0x4bb106['shift']());}}}(_0x1b54,0x6a738),function(_0x57e7c5,_0x213d25){const _0x4539af=_0x3e43;typeof exports=='object'&&typeof module<'u'?_0x213d25(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core/facade'),require('@univerjs/core'),require('@univerjs-pro/collaboration'),require('rxjs')):typeof define=='function'&&define[_0x4539af(0x22b)]?define([_0x4539af(0x228),_0x4539af(0x235),_0x4539af(0x20f),_0x4539af(0x211),_0x4539af(0x234),_0x4539af(0x1fd)],_0x213d25):(_0x57e7c5=typeof globalThis<'u'?globalThis:_0x57e7c5||self,_0x213d25(_0x57e7c5[_0x4539af(0x23c)]={},_0x57e7c5[_0x4539af(0x202)],_0x57e7c5[_0x4539af(0x223)],_0x57e7c5[_0x4539af(0x206)],_0x57e7c5[_0x4539af(0x246)],_0x57e7c5[_0x4539af(0x1fd)]));}(this,function(_0x38c5b1,_0x2e361e,_0x280377,_0x1ca07a,_0x307cc5,_0x2dbb1a){const _0x2323f8=_0x3e43;Object[_0x2323f8(0x204)](_0x38c5b1,Symbol[_0x2323f8(0x20c)],{'value':_0x2323f8(0x230)});var _0x159d97=class extends _0x280377[_0x2323f8(0x245)]{get['CollaborationStatus'](){const _0x2b35bd=_0x2323f8;return _0x2e361e[_0x2b35bd(0x222)];}};_0x280377['FEnum'][_0x2323f8(0x22a)](_0x159d97);var _0x328501=class extends _0x280377[_0x2323f8(0x236)]{get[_0x2323f8(0x213)](){return'CollaborationStatusChanged';}};_0x280377[_0x2323f8(0x236)][_0x2323f8(0x22a)](_0x328501);function _0x6a3b9f(_0xd06144,_0x2c3635){return function(_0x57dcae,_0x51230e){_0x2c3635(_0x57dcae,_0x51230e,_0xd06144);};}function _0x59a918(_0x3a0667,_0x2fc364,_0x12bb61,_0x43349c){const _0x46c525=_0x2323f8;var _0xbba3ee=arguments[_0x46c525(0x209)],_0x37d3a9=_0xbba3ee<0x3?_0x2fc364:_0x43349c===null?_0x43349c=Object[_0x46c525(0x1ef)](_0x2fc364,_0x12bb61):_0x43349c,_0xf5576a;if(typeof Reflect=='object'&&typeof Reflect[_0x46c525(0x247)]==_0x46c525(0x214))_0x37d3a9=Reflect[_0x46c525(0x247)](_0x3a0667,_0x2fc364,_0x12bb61,_0x43349c);else{for(var _0x5d9b1c=_0x3a0667[_0x46c525(0x209)]-0x1;_0x5d9b1c>=0x0;_0x5d9b1c--)(_0xf5576a=_0x3a0667[_0x5d9b1c])&&(_0x37d3a9=(_0xbba3ee<0x3?_0xf5576a(_0x37d3a9):_0xbba3ee>0x3?_0xf5576a(_0x2fc364,_0x12bb61,_0x37d3a9):_0xf5576a(_0x2fc364,_0x12bb61))||_0x37d3a9);}return _0xbba3ee>0x3&&_0x37d3a9&&Object[_0x46c525(0x204)](_0x2fc364,_0x12bb61,_0x37d3a9),_0x37d3a9;}let _0x4a5feb=class extends _0x280377[_0x2323f8(0x23e)]{constructor(_0x5010af,_0xd7dc74,_0x2c83af,_0x2cfd16,_0x1c27e0){const _0xcae31d=_0x2323f8;super(),this['_handler']=_0x5010af,this[_0xcae31d(0x22f)]=_0xd7dc74,this[_0xcae31d(0x1ee)]=_0x2c83af,this[_0xcae31d(0x227)]=_0x2cfd16,this[_0xcae31d(0x216)]=_0x1c27e0;}async['loadSheetAsync'](_0x421c22,_0x34b98c){const _0x3944c4=_0x2323f8;return await this['_snapshotService'][_0x3944c4(0x221)](_0x421c22,0x0,_0x34b98c)?(await this[_0x3944c4(0x216)][_0x3944c4(0x21c)](_0x421c22),this[_0x3944c4(0x205)]['getWorkbook'](_0x421c22)):null;}async[_0x2323f8(0x243)](_0x63e2eb,_0x102c99){const _0x471129=_0x2323f8;return await this[_0x471129(0x227)][_0x471129(0x232)](_0x63e2eb,0x0,_0x102c99)?(await this[_0x471129(0x216)][_0x471129(0x21c)](_0x63e2eb),this[_0x471129(0x205)][_0x471129(0x212)](_0x63e2eb)):null;}async['loadBaseAsync'](_0xd0294,_0x2b1b8c){const _0x174b62=_0x2323f8;return await this[_0x174b62(0x227)][_0x174b62(0x244)](_0xd0294,0x0,_0x2b1b8c)?(await this[_0x174b62(0x216)][_0x174b62(0x21c)](_0xd0294),this['_handler'][_0x174b62(0x20d)](_0xd0294)):null;}async[_0x2323f8(0x201)](_0x55b0c4,_0x4e7552){const _0x3b374d=_0x2323f8;return await this[_0x3b374d(0x227)]['loadSlide'](_0x55b0c4,0x0,_0x4e7552)?(await this[_0x3b374d(0x216)][_0x3b374d(0x21c)](_0x55b0c4),this[_0x3b374d(0x205)][_0x3b374d(0x1f6)](_0x55b0c4)):null;}async[_0x2323f8(0x21d)](_0x29e98b,_0x14646d){const _0x27d48f=_0x2323f8;return await this['_snapshotService'][_0x27d48f(0x1ff)](_0x29e98b,0x0,_0x14646d)?(await this['_collaborationController'][_0x27d48f(0x21c)](_0x29e98b),this[_0x27d48f(0x205)][_0x27d48f(0x1fe)](_0x29e98b)):null;}[_0x2323f8(0x1f1)](_0x3efd08,_0x4a3bb0){const _0x130b06=_0x2323f8;return(0x0,_0x1ca07a['toDisposable'])(this['_injector'][_0x130b06(0x1ed)](_0x2e361e[_0x130b06(0x208)])[_0x130b06(0x237)](_0x3efd08)[_0x130b06(0x207)]((0x0,_0x2dbb1a[_0x130b06(0x24d)])(_0x28b5bc=>_0x28b5bc[_0x130b06(0x23d)]))[_0x130b06(0x239)](_0x2b0c17=>_0x4a3bb0(Array[_0x130b06(0x21f)](_0x2b0c17[_0x130b06(0x1f4)]()))));}[_0x2323f8(0x231)](_0xb3db25){const _0x51decf=_0x2323f8;var _0x158721;let _0x431fe5=this['_resolveUnitId'](_0xb3db25);if(!_0x431fe5)return _0x2e361e['CollaborationStatus'][_0x51decf(0x1f9)];let _0x1a9012=this[_0x51decf(0x216)]['getCollabEntity'](_0x431fe5);return(_0x158721=_0x1a9012==null?void 0x0:_0x1a9012[_0x51decf(0x1fa)][_0x51decf(0x22c)])==null?_0x2e361e[_0x51decf(0x222)][_0x51decf(0x1f9)]:_0x158721;}[_0x2323f8(0x1fc)](_0x2b80b1,_0x49078f={}){const _0x4dd211=_0x2323f8;var _0x32340e;let _0x48126b=this[_0x4dd211(0x24c)](_0x2b80b1);if(!_0x48126b)return Promise[_0x4dd211(0x21a)](Error(_0x4dd211(0x23f)));let _0x2c0a4b=this[_0x4dd211(0x216)][_0x4dd211(0x218)](_0x48126b);if(!_0x2c0a4b)return Promise['reject'](Error('[FCollaboration]:\x20Unit\x20\x22'+_0x48126b+_0x4dd211(0x240)));let _0x3082ba=_0x2c0a4b[_0x4dd211(0x1fa)]['status'];if(_0x3082ba===_0x2e361e[_0x4dd211(0x222)]['SYNCED'])return Promise['resolve']();let _0x163b49=_0x51b5a8(_0x48126b,_0x3082ba);if(_0x163b49)return Promise[_0x4dd211(0x21a)](_0x163b49);let _0x1a84a4=(_0x32340e=_0x49078f['timeout'])==null?0x7530:_0x32340e;return new Promise((_0x19da00,_0x2bebd8)=>{const _0x40457a=_0x4dd211;let _0x42f17b=!0x1,_0x39ab63=null,_0xedbaad=setTimeout(()=>{const _0x43dedc=_0x3e43;_0x42f17b=!0x0,_0x39ab63==null||_0x39ab63['unsubscribe'](),_0x2bebd8(Error(_0x43dedc(0x238)+_0x48126b+_0x43dedc(0x219)+_0x1a84a4+_0x43dedc(0x225)));},_0x1a84a4),_0x9d4e53=()=>{const _0x11e746=_0x3e43;_0x42f17b=!0x0,clearTimeout(_0xedbaad),_0x39ab63==null||_0x39ab63[_0x11e746(0x242)]();};_0x39ab63=_0x2c0a4b[_0x40457a(0x21b)]['subscribe'](_0xe39911=>{const _0x238ef2=_0x40457a;if(_0x42f17b)return;if(_0xe39911===_0x2e361e['CollaborationStatus'][_0x238ef2(0x226)]){_0x9d4e53(),_0x19da00();return;}let _0x22e950=_0x51b5a8(_0x48126b,_0xe39911);_0x22e950&&(_0x9d4e53(),_0x2bebd8(_0x22e950));});});}[_0x2323f8(0x24c)](_0x261106){const _0x4f906e=_0x2323f8;var _0x28dc69;return _0x261106||((_0x28dc69=this[_0x4f906e(0x1ee)][_0x4f906e(0x210)]())==null?void 0x0:_0x28dc69[_0x4f906e(0x1f2)]());}};_0x4a5feb=_0x59a918([_0x6a3b9f(0x1,(0x0,_0x1ca07a[_0x2323f8(0x1f0)])(_0x1ca07a[_0x2323f8(0x241)])),_0x6a3b9f(0x2,_0x1ca07a[_0x2323f8(0x224)]),_0x6a3b9f(0x3,(0x0,_0x1ca07a[_0x2323f8(0x1f0)])(_0x307cc5[_0x2323f8(0x21e)])),_0x6a3b9f(0x4,(0x0,_0x1ca07a[_0x2323f8(0x1f0)])(_0x2e361e[_0x2323f8(0x203)]))],_0x4a5feb);function _0x51b5a8(_0x5b3892,_0x50b6cd){const _0x2cf28d=_0x2323f8;return _0x50b6cd===_0x2e361e[_0x2cf28d(0x222)]['CONFLICT']||_0x50b6cd===_0x2e361e[_0x2cf28d(0x222)]['NOT_COLLAB']?Error(_0x2cf28d(0x217)+_0x5b3892+_0x2cf28d(0x1ec)+_0x50b6cd+'.'):null;}var _0x327b1c=class extends _0x280377[_0x2323f8(0x1f7)]{[_0x2323f8(0x23b)](_0x63949e){const _0x53714e=_0x2323f8;let _0x23b5bb=_0x63949e[_0x53714e(0x1ed)](_0x2e361e[_0x53714e(0x203)]);this['disposeWithMe'](this[_0x53714e(0x23a)](this['Event'][_0x53714e(0x213)],()=>{const _0x3ea29d=_0x53714e;let _0x3bd43b=new _0x1ca07a[(_0x3ea29d(0x1f8))](),_0x509e52=_0x23b5bb[_0x3ea29d(0x20e)][_0x3ea29d(0x239)](_0x510518=>{const _0x5916dc=_0x3ea29d;let _0x5a9cc6=_0x510518[_0x5916dc(0x21b)][_0x5916dc(0x239)](_0x3ed7fd=>{let _0x200ce4={'unitId':_0x510518['unitID'],'status':_0x3ed7fd};this['fireEvent'](this['Event']['CollaborationStatusChanged'],_0x200ce4);});_0x3bd43b[_0x5916dc(0x24b)]((0x0,_0x1ca07a[_0x5916dc(0x22d)])(_0x5a9cc6));});return _0x3bd43b[_0x3ea29d(0x24b)]((0x0,_0x1ca07a[_0x3ea29d(0x22d)])(_0x509e52)),_0x3bd43b;}));}[_0x2323f8(0x1f5)](){const _0x3581b8=_0x2323f8;return this['_injector'][_0x3581b8(0x1f3)](_0x4a5feb,{'getWorkbook':_0x530542=>this[_0x3581b8(0x20b)](_0x530542),'getDocument':_0x1718ee=>this[_0x3581b8(0x212)](_0x1718ee),'getPresentation':_0x6c4c49=>this[_0x3581b8(0x1f6)](_0x6c4c49),'getBase':_0x11c29e=>this[_0x3581b8(0x20d)](_0x11c29e),'getBoard':_0xa0f90=>this[_0x3581b8(0x1fe)](_0xa0f90)});}['loadServerUnit'](_0x172f7c,_0x8787b6,_0x1823d8){const _0x36c2d8=_0x2323f8;return this[_0x36c2d8(0x22f)][_0x36c2d8(0x1ed)](_0x2e361e['DataLoaderService'])['loadUnit'](_0x172f7c,_0x8787b6,_0x1823d8);}['loadServerUnitOfRevision'](_0x23c50c,_0xe3e29b,_0x5c04e0){const _0x45c974=_0x2323f8;return this['_injector'][_0x45c974(0x1ed)](_0x2e361e['DataLoaderService'])[_0x45c974(0x220)](_0x23c50c,_0xe3e29b,_0x5c04e0);}};_0x280377[_0x2323f8(0x1f7)][_0x2323f8(0x22a)](_0x327b1c),Object[_0x2323f8(0x204)](_0x38c5b1,_0x2323f8(0x229),{'enumerable':!0x0,'get':function(){return _0x4a5feb;}});}));function _0x3e43(_0x5c931d,_0x261820){_0x5c931d=_0x5c931d-0x1ec;const _0x1b5492=_0x1b54();let _0x3e43e4=_0x1b5492[_0x5c931d];return _0x3e43e4;}function _0x1b54(){const _0xb42b99=['loadSlideAsync','UniverProCollaborationClient','CollaborationController','defineProperty','_handler','UniverCore','pipe','MemberService','length','4222225PSwJqe','getWorkbook','toStringTag','getBase','entityInit$','@univerjs/core/facade','getFocusedUnit','@univerjs/core','getDocument','CollaborationStatusChanged','function','2755200UYBVSA','_collaborationController','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','getCollabEntity','\x22\x20after\x20','reject','status$','readyForCollab','loadBoardAsync','SnapshotService','from','loadUnitOfRevision','loadSheet','CollaborationStatus','UniverCoreFacade','IUniverInstanceService','ms.','SYNCED','_snapshotService','exports','FCollaboration','extend','amd','status','toDisposable','4790922scXXAd','_injector','Module','getCollaborationStatus','loadDoc','733830McVuHq','@univerjs-pro/collaboration','@univerjs-pro/collaboration-client','FEventName','waitForRoom$','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','subscribe','registerEventHandler','_initialize','UniverProCollaborationClientFacade','members$','FBase','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','Injector','unsubscribe','loadDocAsync','loadBase','FEnum','UniverProCollaboration','decorate','333930BwjNnO','6TzMHjS','15039126cAAdmM','add','_resolveUnitId','switchMap','\x22\x20while\x20collaboration\x20status\x20is\x20','get','_univerInstanceService','getOwnPropertyDescriptor','Inject','subscribeCollaborators','getUnitId','createInstance','values','getCollaboration','getPresentation','FUniver','DisposableCollection','NOT_COLLAB','state','611140XOlWpS','flush','rxjs','getBoard','loadBoard','8DcqpWn'];_0x1b54=function(){return _0xb42b99;};return _0x1b54();}
|
|
1
|
+
function _0x15ba(){const _0x2162eb=['UniverProCollaborationClient','reject','decorate','SYNCED','add','_initialize','CollaborationStatusChanged','fireEvent','get','_resolveUnitId','\x22\x20after\x20','pipe','loadDoc','DataLoaderService','69AqaGNZ','getOwnPropertyDescriptor','values','status','getPresentation','subscribe','CollaborationStatus','registerEventHandler','status$','timeout','DisposableCollection','flush','loadServerUnitOfRevision','disposeWithMe','loadUnitOfRevision','_univerInstanceService','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','UniverCore','switchMap','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','function','UniverCoreFacade','_handler','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','SnapshotService','unsubscribe','resolve','Event','_snapshotService','FUniver','getFocusedUnit','Injector','getUnitId','loadSheetAsync','getBoard','2009133JBOatl','@univerjs/core/facade','2081976JcPBlr','252864CTthBF','getBase','CONFLICT','length','@univerjs-pro/collaboration-client','FEventName','UniverProCollaborationClientFacade','getDocument','loadBoardAsync','NOT_COLLAB','extend','getCollaborationStatus','defineProperty','getWorkbook','loadBaseAsync','loadDocAsync','loadUnit','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','getCollabEntity','toStringTag','9704QHDghY','MemberService','members$','waitForRoom$','getCollaboration','loadSlide','\x22\x20while\x20collaboration\x20status\x20is\x20','@univerjs-pro/collaboration','_injector','subscribeCollaborators','CollaborationController','UniverProCollaboration','652075qXnbXW','exports','129614ytJTlE','state','readyForCollab','FBase','createInstance','toDisposable','unitID','FEnum','Inject','amd','8sAncIu','1393569uFPyAu','_collaborationController'];_0x15ba=function(){return _0x2162eb;};return _0x15ba();}function _0x5c6d(_0x45d053,_0x365c99){_0x45d053=_0x45d053-0xcd;const _0x15bad6=_0x15ba();let _0x5c6d81=_0x15bad6[_0x45d053];return _0x5c6d81;}(function(_0x94d84c,_0x4e1760){const _0x437a3a=_0x5c6d,_0x460513=_0x94d84c();while(!![]){try{const _0x17839a=-parseInt(_0x437a3a(0x122))/0x1*(-parseInt(_0x437a3a(0x118))/0x2)+-parseInt(_0x437a3a(0xd0))/0x3*(parseInt(_0x437a3a(0x10a))/0x4)+-parseInt(_0x437a3a(0x116))/0x5+parseInt(_0x437a3a(0xf6))/0x6+-parseInt(_0x437a3a(0xf3))/0x7+parseInt(_0x437a3a(0xf5))/0x8+parseInt(_0x437a3a(0x123))/0x9;if(_0x17839a===_0x4e1760)break;else _0x460513['push'](_0x460513['shift']());}catch(_0x27f4f5){_0x460513['push'](_0x460513['shift']());}}}(_0x15ba,0x7aab8),function(_0x260b67,_0x326006){const _0x1a080d=_0x5c6d;typeof exports=='object'&&typeof module<'u'?_0x326006(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core/facade'),require('@univerjs/core'),require('@univerjs-pro/collaboration'),require('rxjs')):typeof define==_0x1a080d(0xe4)&&define[_0x1a080d(0x121)]?define([_0x1a080d(0x117),_0x1a080d(0xfa),_0x1a080d(0xf4),'@univerjs/core',_0x1a080d(0x111),'rxjs'],_0x326006):(_0x260b67=typeof globalThis<'u'?globalThis:_0x260b67||self,_0x326006(_0x260b67[_0x1a080d(0xfc)]={},_0x260b67[_0x1a080d(0x125)],_0x260b67[_0x1a080d(0xe5)],_0x260b67[_0x1a080d(0xe1)],_0x260b67[_0x1a080d(0x115)],_0x260b67['rxjs']));}(this,function(_0x2fce93,_0x5550c2,_0x4f9f00,_0x4c5411,_0x41c24e,_0x87c877){const _0x22fc26=_0x5c6d;Object[_0x22fc26(0x102)](_0x2fce93,Symbol[_0x22fc26(0x109)],{'value':'Module'});var _0x4f5c57=class extends _0x4f9f00[_0x22fc26(0x11f)]{get[_0x22fc26(0xd6)](){return _0x5550c2['CollaborationStatus'];}};_0x4f9f00[_0x22fc26(0x11f)][_0x22fc26(0x100)](_0x4f5c57);var _0x3bde83=class extends _0x4f9f00[_0x22fc26(0xfb)]{get[_0x22fc26(0x12b)](){const _0x19de06=_0x22fc26;return _0x19de06(0x12b);}};_0x4f9f00[_0x22fc26(0xfb)]['extend'](_0x3bde83);function _0x29224b(_0x1e5e9f,_0x55e7e4){return function(_0x450e54,_0x319f5b){_0x55e7e4(_0x450e54,_0x319f5b,_0x1e5e9f);};}function _0x492c94(_0x314013,_0x549b6d,_0x340846,_0x18f1b2){const _0x16cf0e=_0x22fc26;var _0x39d498=arguments[_0x16cf0e(0xf9)],_0x3437b6=_0x39d498<0x3?_0x549b6d:_0x18f1b2===null?_0x18f1b2=Object[_0x16cf0e(0xd1)](_0x549b6d,_0x340846):_0x18f1b2,_0x10b29e;if(typeof Reflect=='object'&&typeof Reflect[_0x16cf0e(0x127)]=='function')_0x3437b6=Reflect[_0x16cf0e(0x127)](_0x314013,_0x549b6d,_0x340846,_0x18f1b2);else{for(var _0x5c766a=_0x314013['length']-0x1;_0x5c766a>=0x0;_0x5c766a--)(_0x10b29e=_0x314013[_0x5c766a])&&(_0x3437b6=(_0x39d498<0x3?_0x10b29e(_0x3437b6):_0x39d498>0x3?_0x10b29e(_0x549b6d,_0x340846,_0x3437b6):_0x10b29e(_0x549b6d,_0x340846))||_0x3437b6);}return _0x39d498>0x3&&_0x3437b6&&Object['defineProperty'](_0x549b6d,_0x340846,_0x3437b6),_0x3437b6;}let _0x12bb42=class extends _0x4f9f00[_0x22fc26(0x11b)]{constructor(_0x16cc24,_0x49a911,_0x205813,_0x5069a7,_0x1131f9){const _0x1ffba2=_0x22fc26;super(),this['_handler']=_0x16cc24,this[_0x1ffba2(0x112)]=_0x49a911,this[_0x1ffba2(0xdf)]=_0x205813,this[_0x1ffba2(0xec)]=_0x5069a7,this[_0x1ffba2(0x124)]=_0x1131f9;}async[_0x22fc26(0xf1)](_0x219a8b,_0x2b813d){const _0x5cbada=_0x22fc26;return await this[_0x5cbada(0xec)]['loadSheet'](_0x219a8b,0x0,_0x2b813d)?(await this[_0x5cbada(0x124)]['readyForCollab'](_0x219a8b),this[_0x5cbada(0xe6)][_0x5cbada(0x103)](_0x219a8b)):null;}async[_0x22fc26(0x105)](_0x523714,_0x4a761b){const _0x4f3800=_0x22fc26;return await this['_snapshotService'][_0x4f3800(0xce)](_0x523714,0x0,_0x4a761b)?(await this[_0x4f3800(0x124)]['readyForCollab'](_0x523714),this[_0x4f3800(0xe6)][_0x4f3800(0xfd)](_0x523714)):null;}async[_0x22fc26(0x104)](_0x34638f,_0x102160){const _0x1f862c=_0x22fc26;return await this[_0x1f862c(0xec)]['loadBase'](_0x34638f,0x0,_0x102160)?(await this['_collaborationController'][_0x1f862c(0x11a)](_0x34638f),this[_0x1f862c(0xe6)][_0x1f862c(0xf7)](_0x34638f)):null;}async['loadSlideAsync'](_0x1ce53c,_0x2574f4){const _0x1a6e54=_0x22fc26;return await this[_0x1a6e54(0xec)][_0x1a6e54(0x10f)](_0x1ce53c,0x0,_0x2574f4)?(await this['_collaborationController'][_0x1a6e54(0x11a)](_0x1ce53c),this[_0x1a6e54(0xe6)][_0x1a6e54(0xd4)](_0x1ce53c)):null;}async[_0x22fc26(0xfe)](_0x1e5f06,_0x59ed08){const _0x5df634=_0x22fc26;return await this['_snapshotService']['loadBoard'](_0x1e5f06,0x0,_0x59ed08)?(await this['_collaborationController'][_0x5df634(0x11a)](_0x1e5f06),this[_0x5df634(0xe6)][_0x5df634(0xf2)](_0x1e5f06)):null;}[_0x22fc26(0x113)](_0x45af89,_0x4672ba){const _0x39498d=_0x22fc26;return(0x0,_0x4c5411['toDisposable'])(this[_0x39498d(0x112)][_0x39498d(0x12d)](_0x5550c2[_0x39498d(0x10b)])[_0x39498d(0x10d)](_0x45af89)[_0x39498d(0xcd)]((0x0,_0x87c877[_0x39498d(0xe2)])(_0x5411fa=>_0x5411fa[_0x39498d(0x10c)]))[_0x39498d(0xd5)](_0x56fe5f=>_0x4672ba(Array['from'](_0x56fe5f[_0x39498d(0xd2)]()))));}[_0x22fc26(0x101)](_0x4d40b0){const _0x527403=_0x22fc26;var _0x5c9103;let _0x22eef3=this[_0x527403(0x12e)](_0x4d40b0);if(!_0x22eef3)return _0x5550c2[_0x527403(0xd6)][_0x527403(0xff)];let _0x30efbb=this[_0x527403(0x124)][_0x527403(0x108)](_0x22eef3);return(_0x5c9103=_0x30efbb==null?void 0x0:_0x30efbb[_0x527403(0x119)][_0x527403(0xd3)])==null?_0x5550c2['CollaborationStatus']['NOT_COLLAB']:_0x5c9103;}[_0x22fc26(0xdb)](_0x3ed4bd,_0x2c1d7d={}){const _0x38e666=_0x22fc26;var _0x383590;let _0x37881f=this[_0x38e666(0x12e)](_0x3ed4bd);if(!_0x37881f)return Promise['reject'](Error(_0x38e666(0xe7)));let _0x3dd502=this['_collaborationController'][_0x38e666(0x108)](_0x37881f);if(!_0x3dd502)return Promise[_0x38e666(0x126)](Error('[FCollaboration]:\x20Unit\x20\x22'+_0x37881f+_0x38e666(0xe0)));let _0x210630=_0x3dd502[_0x38e666(0x119)][_0x38e666(0xd3)];if(_0x210630===_0x5550c2[_0x38e666(0xd6)][_0x38e666(0x128)])return Promise[_0x38e666(0xea)]();let _0x40c443=_0x26b6ea(_0x37881f,_0x210630);if(_0x40c443)return Promise[_0x38e666(0x126)](_0x40c443);let _0x168731=(_0x383590=_0x2c1d7d[_0x38e666(0xd9)])==null?0x7530:_0x383590;return new Promise((_0x590ed1,_0xb8a9a8)=>{let _0x3c8d1f=!0x1,_0x28c384=null,_0xd62ddb=setTimeout(()=>{const _0x2154a4=_0x5c6d;_0x3c8d1f=!0x0,_0x28c384==null||_0x28c384[_0x2154a4(0xe9)](),_0xb8a9a8(Error(_0x2154a4(0xe3)+_0x37881f+_0x2154a4(0x12f)+_0x168731+'ms.'));},_0x168731),_0x47fde0=()=>{_0x3c8d1f=!0x0,clearTimeout(_0xd62ddb),_0x28c384==null||_0x28c384['unsubscribe']();};_0x28c384=_0x3dd502['status$']['subscribe'](_0x444bc8=>{const _0x236b69=_0x5c6d;if(_0x3c8d1f)return;if(_0x444bc8===_0x5550c2[_0x236b69(0xd6)][_0x236b69(0x128)]){_0x47fde0(),_0x590ed1();return;}let _0x540e13=_0x26b6ea(_0x37881f,_0x444bc8);_0x540e13&&(_0x47fde0(),_0xb8a9a8(_0x540e13));});});}[_0x22fc26(0x12e)](_0x354043){const _0x1af189=_0x22fc26;var _0x3865d7;return _0x354043||((_0x3865d7=this[_0x1af189(0xdf)][_0x1af189(0xee)]())==null?void 0x0:_0x3865d7[_0x1af189(0xf0)]());}};_0x12bb42=_0x492c94([_0x29224b(0x1,(0x0,_0x4c5411[_0x22fc26(0x120)])(_0x4c5411[_0x22fc26(0xef)])),_0x29224b(0x2,_0x4c5411['IUniverInstanceService']),_0x29224b(0x3,(0x0,_0x4c5411[_0x22fc26(0x120)])(_0x41c24e[_0x22fc26(0xe8)])),_0x29224b(0x4,(0x0,_0x4c5411[_0x22fc26(0x120)])(_0x5550c2[_0x22fc26(0x114)]))],_0x12bb42);function _0x26b6ea(_0x4bcfdd,_0x5ed91c){const _0x1ccb2c=_0x22fc26;return _0x5ed91c===_0x5550c2[_0x1ccb2c(0xd6)][_0x1ccb2c(0xf8)]||_0x5ed91c===_0x5550c2['CollaborationStatus'][_0x1ccb2c(0xff)]?Error(_0x1ccb2c(0x107)+_0x4bcfdd+_0x1ccb2c(0x110)+_0x5ed91c+'.'):null;}var _0x5b44c7=class extends _0x4f9f00[_0x22fc26(0xed)]{[_0x22fc26(0x12a)](_0x17d86b){const _0x43b81c=_0x22fc26;let _0x5fb49d=_0x17d86b[_0x43b81c(0x12d)](_0x5550c2['CollaborationController']);this[_0x43b81c(0xdd)](this[_0x43b81c(0xd7)](this[_0x43b81c(0xeb)][_0x43b81c(0x12b)],()=>{const _0x85cc19=_0x43b81c;let _0x483c81=new _0x4c5411[(_0x85cc19(0xda))](),_0x103c19=_0x5fb49d['entityInit$']['subscribe'](_0x502dda=>{const _0x50f160=_0x85cc19;let _0x45650f=_0x502dda[_0x50f160(0xd8)][_0x50f160(0xd5)](_0x5701fc=>{const _0x2d1cda=_0x50f160;let _0x14b412={'unitId':_0x502dda[_0x2d1cda(0x11e)],'status':_0x5701fc};this[_0x2d1cda(0x12c)](this[_0x2d1cda(0xeb)][_0x2d1cda(0x12b)],_0x14b412);});_0x483c81[_0x50f160(0x129)]((0x0,_0x4c5411[_0x50f160(0x11d)])(_0x45650f));});return _0x483c81['add']((0x0,_0x4c5411[_0x85cc19(0x11d)])(_0x103c19)),_0x483c81;}));}[_0x22fc26(0x10e)](){const _0x3ec773=_0x22fc26;return this[_0x3ec773(0x112)][_0x3ec773(0x11c)](_0x12bb42,{'getWorkbook':_0x2c8a3a=>this[_0x3ec773(0x103)](_0x2c8a3a),'getDocument':_0xe5f5d7=>this[_0x3ec773(0xfd)](_0xe5f5d7),'getPresentation':_0x12ca85=>this[_0x3ec773(0xd4)](_0x12ca85),'getBase':_0x78671f=>this['getBase'](_0x78671f),'getBoard':_0xe023e9=>this[_0x3ec773(0xf2)](_0xe023e9)});}['loadServerUnit'](_0x541d9f,_0x1bddcd,_0x4b4f3c){const _0x103905=_0x22fc26;return this['_injector'][_0x103905(0x12d)](_0x5550c2[_0x103905(0xcf)])[_0x103905(0x106)](_0x541d9f,_0x1bddcd,_0x4b4f3c);}[_0x22fc26(0xdc)](_0x34cdad,_0x1b33c1,_0x2a841e){const _0x4a97e8=_0x22fc26;return this['_injector'][_0x4a97e8(0x12d)](_0x5550c2[_0x4a97e8(0xcf)])[_0x4a97e8(0xde)](_0x34cdad,_0x1b33c1,_0x2a841e);}};_0x4f9f00[_0x22fc26(0xed)][_0x22fc26(0x100)](_0x5b44c7),Object['defineProperty'](_0x2fce93,'FCollaboration',{'enumerable':!0x0,'get':function(){return _0x12bb42;}});}));
|