@univerjs-pro/collaboration-client 0.17.0 → 0.18.0
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/ca-ES.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/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.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-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.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/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.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-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.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/ja-JP.js +1 -1
- package/lib/locale/ko-KR.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-TW.js +1 -1
- package/lib/types/controllers/collaboration/collaboration-entity.d.ts +8 -5
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +6 -4
- package/lib/types/controllers/collaboration/collaboration.controller.d.ts +4 -3
- package/lib/types/controllers/collaboration/utils/changeset-utils.d.ts +4 -4
- package/lib/types/controllers/config.schema.d.ts +2 -2
- package/lib/types/controllers/telemetry.d.ts +1 -1
- package/lib/types/facade/f-collaboration.d.ts +6 -4
- package/lib/types/facade/f-event.d.ts +2 -2
- package/lib/types/facade/f-univer.d.ts +1 -1
- package/lib/types/locale/ca-ES.d.ts +1 -1
- package/lib/types/locale/es-ES.d.ts +1 -1
- package/lib/types/locale/fa-IR.d.ts +1 -1
- package/lib/types/locale/fr-FR.d.ts +1 -1
- package/lib/types/locale/ja-JP.d.ts +1 -1
- package/lib/types/locale/ko-KR.d.ts +1 -1
- package/lib/types/locale/ru-RU.d.ts +1 -1
- package/lib/types/locale/sk-SK.d.ts +1 -1
- package/lib/types/locale/vi-VN.d.ts +1 -1
- package/lib/types/locale/zh-CN.d.ts +1 -1
- package/lib/types/locale/zh-TW.d.ts +1 -1
- package/lib/types/plugin.d.ts +1 -1
- package/lib/types/services/auth-server/authz-io-http.service.d.ts +3 -2
- package/lib/types/services/collaboration-session/collaboration-session.d.ts +5 -4
- package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +6 -4
- package/lib/types/services/collaboration-ui-event/collaboration-ui-event.d.ts +1 -1
- package/lib/types/services/comment/comment.service.d.ts +2 -2
- package/lib/types/services/data-loader/data-loader.service.d.ts +3 -2
- package/lib/types/services/image-remote/image-io.service.d.ts +6 -4
- package/lib/types/services/local-cache/local-cache.service.d.ts +4 -4
- package/lib/types/services/member/member.service.d.ts +4 -3
- package/lib/types/services/mention-server/mention-io-http.service.d.ts +2 -1
- package/lib/types/services/network-condition/network-condition.service.d.ts +2 -2
- package/lib/types/services/range-selection/sheet-transform-selections.service.d.ts +2 -1
- package/lib/types/services/single-active-unit/single-active-unit.service.d.ts +2 -2
- package/lib/types/services/snapshot-server/snapshot-server.service.d.ts +2 -2
- package/lib/types/services/socket/collaboration-socket.service.d.ts +9 -6
- package/lib/types/services/socket/serialize.d.ts +1 -1
- package/lib/types/services/undoredo/collaborative-undoredo.service.d.ts +4 -2
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.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/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.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-TW.js +1 -1
- package/package.json +14 -13
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { Nullable
|
|
2
|
-
import { ICollaborationSocket
|
|
1
|
+
import type { Nullable } from '@univerjs/core';
|
|
2
|
+
import type { ICollaborationSocket } from '../socket/collaboration-socket.service';
|
|
3
|
+
import { Disposable, IConfigService, ILogService, Injector } from '@univerjs/core';
|
|
3
4
|
import { CollaborationUIEventService } from '../collaboration-ui-event/collaboration-ui-event';
|
|
4
5
|
import { INetworkConditionService } from '../network-condition/network-condition.service';
|
|
6
|
+
import { ICollaborationSocketService } from '../socket/collaboration-socket.service';
|
|
5
7
|
import { CollaborationSession, SessionStatus } from './collaboration-session';
|
|
6
8
|
/**
|
|
7
9
|
* This service provide collaboration sessions to univer instances. A collaboration session
|
|
@@ -18,12 +20,12 @@ export declare class CollaborationSessionService extends Disposable {
|
|
|
18
20
|
* Socket for collaboration sessions. Session are by unitID but the socket is share by collaboration sessions.
|
|
19
21
|
*/
|
|
20
22
|
private _socket$;
|
|
21
|
-
readonly socket$: import(
|
|
23
|
+
readonly socket$: import("rxjs").Observable<Nullable<ICollaborationSocket>>;
|
|
22
24
|
private get _socket();
|
|
23
25
|
private _candidateSocket;
|
|
24
26
|
private _sessions;
|
|
25
27
|
private _status$;
|
|
26
|
-
status$: import(
|
|
28
|
+
status$: import("rxjs").Observable<SessionStatus>;
|
|
27
29
|
private _socketReady;
|
|
28
30
|
private _retryConnectingTimer;
|
|
29
31
|
private _retryCount;
|
|
@@ -14,6 +14,6 @@ export declare enum CollaborationUIEventId {
|
|
|
14
14
|
}
|
|
15
15
|
export declare class CollaborationUIEventService {
|
|
16
16
|
private readonly _event$;
|
|
17
|
-
readonly event$: import(
|
|
17
|
+
readonly event$: import("rxjs").Observable<ICollaborationUIEvent>;
|
|
18
18
|
emitEvent(event: ICollaborationUIEvent): void;
|
|
19
19
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ICommentUpdate } from '@univerjs/protocol';
|
|
1
|
+
import type { ICommentUpdate } from '@univerjs/protocol';
|
|
2
2
|
export declare class CommentService {
|
|
3
3
|
private readonly _commentUpdate$;
|
|
4
|
-
readonly commentUpdate$: import(
|
|
4
|
+
readonly commentUpdate$: import("rxjs").Observable<ICommentUpdate>;
|
|
5
5
|
onCommentUpdate(data: ICommentUpdate): void;
|
|
6
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { UnitModel
|
|
1
|
+
import type { UnitModel } from '@univerjs/core';
|
|
2
2
|
import { SnapshotService } from '@univerjs-pro/collaboration';
|
|
3
|
+
import { ILogService, RxDisposable } from '@univerjs/core';
|
|
3
4
|
import { UniverType } from '@univerjs/protocol';
|
|
4
5
|
import { ILocalCacheService } from '../local-cache/local-cache.service';
|
|
5
6
|
export interface IUnitInfo {
|
|
@@ -15,7 +16,7 @@ export declare class DataLoaderService extends RxDisposable {
|
|
|
15
16
|
private readonly _snapshotService;
|
|
16
17
|
private readonly _localCacheService?;
|
|
17
18
|
private readonly _unitInfo$;
|
|
18
|
-
readonly unitInfo$: import(
|
|
19
|
+
readonly unitInfo$: import("rxjs").Observable<IUnitInfo | null>;
|
|
19
20
|
constructor(_logService: ILogService, _snapshotService: SnapshotService, _localCacheService?: ILocalCacheService | undefined);
|
|
20
21
|
loadUnitOfRevision(unitId: string, type: UniverType, rev: number): Promise<UnitModel | null>;
|
|
21
22
|
loadUnit(unitId: string, type: UniverType, subUnitId?: string): Promise<UnitModel | null>;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { Nullable
|
|
2
|
-
import { IImageIoService, IImageIoServiceParam
|
|
3
|
-
import { IError } from '@univerjs/protocol';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
1
|
+
import type { Nullable } from '@univerjs/core';
|
|
2
|
+
import type { IImageIoService, IImageIoServiceParam } from '@univerjs/drawing';
|
|
3
|
+
import type { IError } from '@univerjs/protocol';
|
|
4
|
+
import type { Observable } from 'rxjs';
|
|
5
|
+
import { IConfigService, IUniverInstanceService } from '@univerjs/core';
|
|
6
|
+
import { ImageSourceType } from '@univerjs/drawing';
|
|
5
7
|
import { HTTPService } from '@univerjs/network';
|
|
6
8
|
export declare const ALLOW_IMAGE_LIST: string[];
|
|
7
9
|
export interface ISignUrlResponse {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IChangeset } from '@univerjs-pro/collaboration';
|
|
2
|
-
import { IMutationInfo, Nullable } from '@univerjs/core';
|
|
3
|
-
import { UniverType } from '@univerjs/protocol';
|
|
1
|
+
import type { IChangeset } from '@univerjs-pro/collaboration';
|
|
2
|
+
import type { IMutationInfo, Nullable } from '@univerjs/core';
|
|
3
|
+
import type { UniverType } from '@univerjs/protocol';
|
|
4
4
|
export interface IUnitCacheData {
|
|
5
5
|
unitID: string;
|
|
6
6
|
type: UniverType;
|
|
@@ -17,5 +17,5 @@ export interface ILocalCacheService {
|
|
|
17
17
|
exhaustSavingTask(): Promise<void>;
|
|
18
18
|
saveTaskMap: Map<string, number>;
|
|
19
19
|
}
|
|
20
|
-
export declare const ILocalCacheService: import(
|
|
20
|
+
export declare const ILocalCacheService: import("@wendellhu/redi").IdentifierDecorator<ILocalCacheService>;
|
|
21
21
|
export declare function getLocalCacheKey(unitID: string): string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Nullable
|
|
2
|
-
import { IMember } from '@univerjs/protocol';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
1
|
+
import type { Nullable } from '@univerjs/core';
|
|
2
|
+
import type { IMember } from '@univerjs/protocol';
|
|
3
|
+
import type { Observable } from 'rxjs';
|
|
4
|
+
import { Disposable, IUniverInstanceService, UserManagerService } from '@univerjs/core';
|
|
4
5
|
export interface IUser extends IMember {
|
|
5
6
|
userID: string;
|
|
6
7
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { IListMentionParam, IListMentionResponse, IMentionIOService
|
|
1
|
+
import type { IListMentionParam, IListMentionResponse, IMentionIOService } from '@univerjs/core';
|
|
2
|
+
import { IConfigService } from '@univerjs/core';
|
|
2
3
|
import { HTTPService } from '@univerjs/network';
|
|
3
4
|
export declare class MentionIoHttpService implements IMentionIOService {
|
|
4
5
|
private readonly _configService;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
1
|
+
import type { Observable } from 'rxjs';
|
|
2
2
|
export interface INetworkConditionService {
|
|
3
3
|
online$: Observable<boolean>;
|
|
4
4
|
online: boolean;
|
|
5
5
|
}
|
|
6
|
-
export declare const INetworkConditionService: import(
|
|
6
|
+
export declare const INetworkConditionService: import("@wendellhu/redi").IdentifierDecorator<INetworkConditionService>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { IChangeset
|
|
1
|
+
import type { IChangeset } from '@univerjs-pro/collaboration';
|
|
2
|
+
import { ITransformService } from '@univerjs-pro/collaboration';
|
|
2
3
|
import { Injector, IUniverInstanceService } from '@univerjs/core';
|
|
3
4
|
export declare function extractTargetFromFirstChangeset(changeset: IChangeset): {
|
|
4
5
|
unitId: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
1
|
+
import type { Observable } from 'rxjs';
|
|
2
2
|
/**
|
|
3
3
|
* It is not recommended to open multiple units in different browser tabs at the same time,
|
|
4
4
|
* especially when the there is not access to the internet. There is a great chance of loosing
|
|
5
5
|
* offline data! So we should make there is only one active unit at a time.
|
|
6
6
|
*/
|
|
7
|
-
export declare const ISingleActiveUnitService: import(
|
|
7
|
+
export declare const ISingleActiveUnitService: import("@wendellhu/redi").IdentifierDecorator<ISingleActiveUnitService>;
|
|
8
8
|
export interface ISingleActiveUnitService {
|
|
9
9
|
editingUnit: (unitID: string) => void;
|
|
10
10
|
getUnitStatus$: (unitID: string) => Observable<UnitStatus>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ILogContext, ISnapshotServerService } from '@univerjs-pro/collaboration';
|
|
2
|
-
import { ICopyFileMetaResponse, IFetchMissingChangesetsRequest, IFetchMissingChangesetsResponse, IGetDeserializedSheetBlockResponse, IGetLatestCsReqIdBySidResponse, IGetResourcesRequest, IGetResourcesResponse, IGetSheetBlockRequest, IGetSheetBlockResponse, IGetUnitOnRevRequest, IGetUnitOnRevResponse, ISaveChangesetResponse, ISaveSheetBlockResponse, ISaveSnapshotResponse } from '@univerjs/protocol';
|
|
1
|
+
import type { ILogContext, ISnapshotServerService } from '@univerjs-pro/collaboration';
|
|
2
|
+
import type { ICopyFileMetaResponse, IFetchMissingChangesetsRequest, IFetchMissingChangesetsResponse, IGetDeserializedSheetBlockResponse, IGetLatestCsReqIdBySidResponse, IGetResourcesRequest, IGetResourcesResponse, IGetSheetBlockRequest, IGetSheetBlockResponse, IGetUnitOnRevRequest, IGetUnitOnRevResponse, ISaveChangesetResponse, ISaveSheetBlockResponse, ISaveSnapshotResponse } from '@univerjs/protocol';
|
|
3
3
|
import { IConfigService } from '@univerjs/core';
|
|
4
4
|
import { HTTPService } from '@univerjs/network';
|
|
5
5
|
export declare class SnapshotServerOverHTTPService implements ISnapshotServerService {
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { ICombRequestEvent, ICombResponseEvent, IFetchingMissEvent, ISubmitChangesetEvent
|
|
2
|
-
import { Nullable
|
|
3
|
-
import { ISocket
|
|
4
|
-
import { IChangeset } from '@univerjs/protocol';
|
|
5
|
-
import { Observable } from 'rxjs';
|
|
1
|
+
import type { ICombRequestEvent, ICombResponseEvent, IFetchingMissEvent, ISubmitChangesetEvent } from '@univerjs-pro/collaboration';
|
|
2
|
+
import type { Nullable } from '@univerjs/core';
|
|
3
|
+
import type { ISocket } from '@univerjs/network';
|
|
4
|
+
import type { IChangeset } from '@univerjs/protocol';
|
|
5
|
+
import type { Observable } from 'rxjs';
|
|
6
|
+
import { ISnapshotServerService } from '@univerjs-pro/collaboration';
|
|
7
|
+
import { Disposable, IConfigService, ILogService, Injector } from '@univerjs/core';
|
|
8
|
+
import { HTTPService } from '@univerjs/network';
|
|
6
9
|
/**
|
|
7
10
|
* A special wrapper around of the original {@link ISocket} implementation to
|
|
8
11
|
* for collaboration.
|
|
@@ -21,7 +24,7 @@ export interface ICollaborationSocket extends Pick<ISocket, 'open$' | 'error$' |
|
|
|
21
24
|
export interface ICollaborationSocketService {
|
|
22
25
|
createSocket: (url: string) => Promise<Nullable<ICollaborationSocket>>;
|
|
23
26
|
}
|
|
24
|
-
export declare const ICollaborationSocketService: import(
|
|
27
|
+
export declare const ICollaborationSocketService: import("@wendellhu/redi").IdentifierDecorator<ICollaborationSocketService>;
|
|
25
28
|
export declare abstract class CollaborationSocketService extends Disposable implements ICollaborationSocketService {
|
|
26
29
|
protected readonly _injector: Injector;
|
|
27
30
|
protected readonly _httpService: HTTPService;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ICombRequestEvent, ICombResponseEvent } from '@univerjs-pro/collaboration';
|
|
1
|
+
import type { ICombRequestEvent, ICombResponseEvent } from '@univerjs-pro/collaboration';
|
|
2
2
|
export declare function deserializeToCombResponse(event: MessageEvent): ICombResponseEvent;
|
|
3
3
|
export declare function serializeCombRequest(event: ICombRequestEvent): string;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { IChangeset
|
|
2
|
-
import { IUndoRedoService
|
|
1
|
+
import type { IChangeset } from '@univerjs-pro/collaboration';
|
|
2
|
+
import type { IUndoRedoService } from '@univerjs/core';
|
|
3
|
+
import { ITransformService } from '@univerjs-pro/collaboration';
|
|
4
|
+
import { ICommandService, IContextService, ILogService, IUniverInstanceService, LocalUndoRedoService } from '@univerjs/core';
|
|
3
5
|
/**
|
|
4
6
|
* `LocalUndoRedoService` cannot transform mutations in the undo redo stack under collaboration conditions.
|
|
5
7
|
*/
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1e4a51,_0x1511b9){const _0x34039f=_0x1d5e,_0x81ad66=_0x1e4a51();while(!![]){try{const _0x550a22=parseInt(_0x34039f(0xcd))/0x1+parseInt(_0x34039f(0x8b))/0x2*(parseInt(_0x34039f(0x91))/0x3)+parseInt(_0x34039f(0x9c))/0x4*(-parseInt(_0x34039f(0x89))/0x5)+-parseInt(_0x34039f(0x8c))/0x6+-parseInt(_0x34039f(0xbf))/0x7*(parseInt(_0x34039f(0xb2))/0x8)+parseInt(_0x34039f(0xcf))/0x9*(-parseInt(_0x34039f(0x99))/0xa)+parseInt(_0x34039f(0xb9))/0xb;if(_0x550a22===_0x1511b9)break;else _0x81ad66['push'](_0x81ad66['shift']());}catch(_0x33b990){_0x81ad66['push'](_0x81ad66['shift']());}}}(_0x3955,0xd48cf),function(_0x3a45ea,_0x27f312){const _0x5d061d=_0x1d5e;typeof exports==_0x5d061d(0xad)&&typeof module<'u'?_0x27f312(exports,require(`@univerjs-pro/collaboration-client`),require(`@univerjs/core/facade`),require(`@univerjs/core`),require(`@univerjs-pro/collaboration`),require(`rxjs`)):typeof define==_0x5d061d(0x9e)&&define[_0x5d061d(0xce)]?define(['exports',_0x5d061d(0xb0),'@univerjs/core/facade',_0x5d061d(0xa2),_0x5d061d(0xa7),_0x5d061d(0xa4)],_0x27f312):(_0x3a45ea=typeof globalThis<'u'?globalThis:_0x3a45ea||self,_0x27f312(_0x3a45ea[_0x5d061d(0xc3)]={},_0x3a45ea[_0x5d061d(0x8a)],_0x3a45ea[_0x5d061d(0x87)],_0x3a45ea['UniverCore'],_0x3a45ea['UniverProCollaboration'],_0x3a45ea[_0x5d061d(0xa4)]));}(this,function(_0x475f99,_0x18ca7d,_0x5b2852,_0x2d8c7e,_0x363a41,_0x17a044){const _0x20e909=_0x1d5e;Object[_0x20e909(0xc9)](_0x475f99,Symbol[_0x20e909(0x9a)],{'value':_0x20e909(0xac)});var _0x453596=class extends _0x5b2852['FEnum']{get[_0x20e909(0x88)](){const _0x370558=_0x20e909;return _0x18ca7d[_0x370558(0x88)];}};_0x5b2852[_0x20e909(0xaf)][_0x20e909(0xa0)](_0x453596);var _0x49b1ef=class{get[_0x20e909(0xba)](){const _0x3371a9=_0x20e909;return _0x3371a9(0xba);}};_0x5b2852[_0x20e909(0xb1)][_0x20e909(0xa0)](_0x49b1ef);function _0x2cddcc(_0x1472cd,_0x16d275){return function(_0x433f0d,_0x321338){_0x16d275(_0x433f0d,_0x321338,_0x1472cd);};}function _0xa67dc8(_0x528ad7,_0x5e9074,_0x40ea63,_0x56dc4a){const _0x52fb1a=_0x20e909;var _0x15ea45=arguments[_0x52fb1a(0xbe)],_0x1ef5bc=_0x15ea45<0x3?_0x5e9074:_0x56dc4a===null?_0x56dc4a=Object[_0x52fb1a(0x9d)](_0x5e9074,_0x40ea63):_0x56dc4a,_0x4fb020;if(typeof Reflect==_0x52fb1a(0xad)&&typeof Reflect[_0x52fb1a(0xc4)]=='function')_0x1ef5bc=Reflect['decorate'](_0x528ad7,_0x5e9074,_0x40ea63,_0x56dc4a);else{for(var _0x1cc22a=_0x528ad7[_0x52fb1a(0xbe)]-0x1;_0x1cc22a>=0x0;_0x1cc22a--)(_0x4fb020=_0x528ad7[_0x1cc22a])&&(_0x1ef5bc=(_0x15ea45<0x3?_0x4fb020(_0x1ef5bc):_0x15ea45>0x3?_0x4fb020(_0x5e9074,_0x40ea63,_0x1ef5bc):_0x4fb020(_0x5e9074,_0x40ea63))||_0x1ef5bc);}return _0x15ea45>0x3&&_0x1ef5bc&&Object[_0x52fb1a(0xc9)](_0x5e9074,_0x40ea63,_0x1ef5bc),_0x1ef5bc;}let _0x48baff=class extends _0x5b2852[_0x20e909(0xae)]{constructor(_0x4c8368,_0x1a0b6f,_0x33e1d8,_0x252545,_0x21383b){const _0x22833a=_0x20e909;super(),this[_0x22833a(0xa5)]=_0x4c8368,this[_0x22833a(0x9b)]=_0x1a0b6f,this[_0x22833a(0xc6)]=_0x33e1d8,this[_0x22833a(0x97)]=_0x252545,this[_0x22833a(0xb6)]=_0x21383b;}async[_0x20e909(0xca)](){const _0x76dbc9=_0x20e909;return this[_0x76dbc9(0xc5)]();}async[_0x20e909(0xc5)](){const _0x34766c=_0x20e909;throw Error(_0x34766c(0x96));}async[_0x20e909(0xd0)](_0x41f4c1){const _0x4380b7=_0x20e909;return this[_0x4380b7(0xd1)](_0x41f4c1);}async[_0x20e909(0xd1)](_0x540870,_0x84d3d1){const _0x14bfea=_0x20e909;return await this[_0x14bfea(0x97)][_0x14bfea(0xd0)](_0x540870,0x0,_0x84d3d1)?(await this['_collaborationController'][_0x14bfea(0xb4)](_0x540870),this[_0x14bfea(0xa5)][_0x14bfea(0xa6)](_0x540870)):null;}[_0x20e909(0xb5)](_0x2da417,_0x5e47bb){const _0x3e40e9=_0x20e909;return(0x0,_0x2d8c7e[_0x3e40e9(0x8d)])(this[_0x3e40e9(0x9b)]['get'](_0x18ca7d['MemberService'])['waitForRoom$'](_0x2da417)['pipe']((0x0,_0x17a044[_0x3e40e9(0xc2)])(_0x51701b=>_0x51701b[_0x3e40e9(0xcc)]))[_0x3e40e9(0xa8)](_0x51bfbc=>_0x5e47bb(Array[_0x3e40e9(0xc1)](_0x51bfbc[_0x3e40e9(0x8f)]()))));}[_0x20e909(0xb8)](_0x11540d){const _0x25b3a0=_0x20e909;var _0x179d06;let _0x2a133a;if(_0x11540d)_0x2a133a=_0x11540d;else{let _0x201803=this['_univerInstanceService']['getFocusedUnit']();_0x2a133a=_0x201803==null?void 0x0:_0x201803[_0x25b3a0(0xc8)]();}if(!_0x2a133a)return _0x18ca7d['CollaborationStatus'][_0x25b3a0(0xd2)];let _0x1d40a3=this[_0x25b3a0(0xb6)][_0x25b3a0(0xab)](_0x2a133a);return(_0x179d06=_0x1d40a3==null?void 0x0:_0x1d40a3[_0x25b3a0(0xbc)][_0x25b3a0(0x8e)])==null?_0x18ca7d[_0x25b3a0(0x88)][_0x25b3a0(0xd2)]:_0x179d06;}};_0x48baff=_0xa67dc8([_0x2cddcc(0x1,(0x0,_0x2d8c7e['Inject'])(_0x2d8c7e[_0x20e909(0xb7)])),_0x2cddcc(0x2,_0x2d8c7e[_0x20e909(0x85)]),_0x2cddcc(0x3,(0x0,_0x2d8c7e['Inject'])(_0x363a41['SnapshotService'])),_0x2cddcc(0x4,(0x0,_0x2d8c7e[_0x20e909(0x9f)])(_0x18ca7d[_0x20e909(0xa9)]))],_0x48baff);var _0x149729=class extends _0x5b2852[_0x20e909(0xc7)]{[_0x20e909(0xa3)](_0x348170){const _0x1b6939=_0x20e909;let _0x1aff39=_0x348170[_0x1b6939(0x98)](_0x18ca7d[_0x1b6939(0xa9)]);this['disposeWithMe'](this[_0x1b6939(0x92)](this[_0x1b6939(0xaa)][_0x1b6939(0xba)],()=>{const _0x102098=_0x1b6939;let _0xad4662=new _0x2d8c7e[(_0x102098(0x86))](),_0x26e611=_0x1aff39[_0x102098(0x90)]['subscribe'](_0x1c62d2=>{const _0x4578b8=_0x102098;let _0x2a43cc=_0x1c62d2[_0x4578b8(0xb3)][_0x4578b8(0xa8)](_0x4f4a08=>{const _0x31cd48=_0x4578b8;this['fireEvent'](this[_0x31cd48(0xaa)][_0x31cd48(0xba)],{'unitId':_0x1c62d2[_0x31cd48(0xcb)],'status':_0x4f4a08});});_0xad4662[_0x4578b8(0xc0)]((0x0,_0x2d8c7e['toDisposable'])(_0x2a43cc));});return _0xad4662[_0x102098(0xc0)]((0x0,_0x2d8c7e[_0x102098(0x8d)])(_0x26e611)),_0xad4662;}));}[_0x20e909(0xbd)](){const _0x302a5c=_0x20e909;return this[_0x302a5c(0x9b)][_0x302a5c(0x93)](_0x48baff,{'getUniverSheet':_0xbc9182=>this[_0x302a5c(0xa6)](_0xbc9182)});}['loadServerUnit'](_0x5106fc,_0x6c0a20,_0x13bd07){const _0x3c4aa2=_0x20e909;return this[_0x3c4aa2(0x9b)][_0x3c4aa2(0x98)](_0x18ca7d[_0x3c4aa2(0xbb)])['loadUnit'](_0x5106fc,_0x6c0a20,_0x13bd07);}[_0x20e909(0xa1)](_0x220f1d,_0x192b2a,_0x22a0a9){const _0x26c333=_0x20e909;return this[_0x26c333(0x9b)][_0x26c333(0x98)](_0x18ca7d[_0x26c333(0xbb)])[_0x26c333(0x94)](_0x220f1d,_0x192b2a,_0x22a0a9);}};_0x5b2852[_0x20e909(0xc7)]['extend'](_0x149729),Object[_0x20e909(0xc9)](_0x475f99,_0x20e909(0x95),{'enumerable':!0x0,'get':function(){return _0x48baff;}});}));function _0x1d5e(_0x44a8aa,_0x1721ce){_0x44a8aa=_0x44a8aa-0x85;const _0x3955b0=_0x3955();let _0x1d5ecb=_0x3955b0[_0x44a8aa];return _0x1d5ecb;}function _0x3955(){const _0x7d131a=['loadServerUnitOfRevision','@univerjs/core','_initialize','rxjs','_handler','getUniverSheet','@univerjs-pro/collaboration','subscribe','CollaborationController','Event','getCollabEntity','Module','object','FBase','FEnum','@univerjs-pro/collaboration-client','FEventName','344CydFFN','status$','readyForCollab','subscribeCollaborators','_collaborationController','Injector','getCollaborationStatus','37157934FCtYhb','CollaborationStatusChanged','DataLoaderService','state','getCollaboration','length','185003pjrmQs','add','from','switchMap','UniverProCollaborationClientFacade','decorate','loadActiveSheetAsync','_univerInstanceService','FUniver','getUnitId','defineProperty','loadActiveSheet','unitID','members$','634141BnuUvY','amd','53649oaMvGc','loadSheet','loadSheetAsync','NOT_COLLAB','IUniverInstanceService','DisposableCollection','UniverCoreFacade','CollaborationStatus','5729365YJwtIE','UniverProCollaborationClient','1724794cHcFwo','7528194RpzoHp','toDisposable','status','values','entityInit$','6LIHtpz','registerEventHandler','createInstance','loadUnitOfRevision','FCollaboration','[FCollaboration]:\x20this\x20method\x20should\x20be\x20override.','_snapshotService','get','2230aJtxip','toStringTag','_injector','4mXyNTZ','getOwnPropertyDescriptor','function','Inject','extend'];_0x3955=function(){return _0x7d131a;};return _0x3955();}
|