@univerjs-pro/collaboration-client 0.5.1 → 0.5.2-nightly.202412291605
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 -0
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.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/ru-RU.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 -0
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.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/ru-RU.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/types/config/config.d.ts +7 -2
- package/lib/types/controllers/collaboration/collaboration-entity.d.ts +20 -18
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +18 -15
- package/lib/types/controllers/collaboration/collaboration.controller.d.ts +2 -0
- package/lib/types/facade/f-collaboration.d.ts +33 -0
- package/lib/types/facade/f-univer.d.ts +12 -0
- package/lib/types/facade/index.d.ts +2 -0
- package/lib/types/index.d.ts +12 -12
- package/lib/types/plugin.d.ts +1 -6
- package/lib/types/services/collaboration-session/collaboration-session.d.ts +4 -5
- package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +7 -8
- package/lib/types/services/collaboration-ui-event/collaboration-ui-event.d.ts +19 -0
- package/lib/types/services/data-loader/data-loader.service.d.ts +23 -0
- package/lib/types/services/image-remote/image-io.service.d.ts +1 -1
- package/lib/types/services/local-cache/local-cache.service.d.ts +7 -23
- package/lib/types/services/member/member.service.d.ts +6 -0
- package/lib/types/services/network-condition/network-condition.service.d.ts +6 -0
- package/lib/types/services/permission/permission.service.d.ts +8 -3
- package/lib/types/services/single-active-unit/single-active-unit.service.d.ts +0 -24
- package/lib/types/services/socket/collaboration-socket.service.d.ts +4 -4
- package/lib/umd/facade.js +1 -0
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.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/ru-RU.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 +23 -21
- package/lib/index.css +0 -1
- package/lib/types/controllers/clipboard/docs/image/image-paste.controller.d.ts +0 -9
- package/lib/types/controllers/collab-cursor/__tests__/doc-collab-cursor.controller.spec.d.ts +0 -23
- package/lib/types/controllers/collab-cursor/__tests__/serialize-text-ranges.spec.d.ts +0 -1
- package/lib/types/controllers/collab-cursor/__tests__/sheet-collab-cursor.controller.spec.d.ts +0 -1
- package/lib/types/controllers/collab-cursor/collab-cursor.controller.d.ts +0 -22
- package/lib/types/controllers/collab-cursor/doc-collab-cursor-entity.d.ts +0 -38
- package/lib/types/controllers/collab-cursor/doc-collab-cursor-render.controller.d.ts +0 -24
- package/lib/types/controllers/collab-cursor/serialize-text-ranges.d.ts +0 -3
- package/lib/types/controllers/collab-cursor/sheet-collab-cursor-entity.d.ts +0 -39
- package/lib/types/controllers/collab-cursor/sheet-collab-cursor-render.controller.d.ts +0 -21
- package/lib/types/controllers/collab-status/collab-status.controller.d.ts +0 -18
- package/lib/types/controllers/collaboration/__tests__/collaboration.controller.spec.d.ts +0 -4
- package/lib/types/controllers/collaboration/__tests__/mock-text-selection-render-manager.service.d.ts +0 -0
- package/lib/types/controllers/collaboration/__tests__/mocks.d.ts +0 -58
- package/lib/types/controllers/data-loader/__tests__/data-loader.controller.spec.d.ts +0 -1
- package/lib/types/controllers/data-loader/data-loader.controller.d.ts +0 -22
- package/lib/types/models/cursor.d.ts +0 -30
- package/lib/types/services/color-assign/color-assign.service.d.ts +0 -10
- package/lib/types/services/ime-cache-transform/doc-transform-ime-cache.service.d.ts +0 -13
- package/lib/types/services/state-cache-transform/doc-transform-state-cache.service.d.ts +0 -12
- package/lib/types/services/sync-editing-collab-cursor/doc-sync-editing-collab-cursor.service.d.ts +0 -13
- package/lib/types/services/text-selection/doc-transform-selections.service.d.ts +0 -8
- package/lib/types/services/url/url.service.d.ts +0 -12
- package/lib/types/services/url/web-url.service.d.ts +0 -10
- package/lib/types/views/components/CollabStatus.d.ts +0 -10
- package/lib/types/views/components/CollabStatus.stories.d.ts +0 -8
- package/lib/types/views/shapes/doc-collab-cursor.d.ts +0 -27
- package/lib/types/views/shapes/sheet-collab-cursor.shape.d.ts +0 -27
- package/lib/types/views/shapes/text-bubble.shape.d.ts +0 -19
@@ -1,9 +1,9 @@
|
|
1
|
-
import { IDisposable, Nullable, IConfigService, ILogService, LocaleService, RxDisposable } from '@univerjs/core';
|
2
1
|
import { ICollaborationEvent } from '@univerjs-pro/collaboration';
|
2
|
+
import { IDisposable, Nullable, IConfigService, ILogService, LocaleService, RxDisposable } from '@univerjs/core';
|
3
3
|
import { Observable } from 'rxjs';
|
4
4
|
import { ICollaborationSocket } from '../socket/collaboration-socket.service';
|
5
5
|
import { ITelemetryService } from '@univerjs/telemetry';
|
6
|
-
import {
|
6
|
+
import { CollaborationUIEventService } from '../collaboration-ui-event/collaboration-ui-event';
|
7
7
|
import { CommentService } from '../comment/comment.service';
|
8
8
|
import { MemberService } from '../member/member.service';
|
9
9
|
export declare enum SessionStatus {
|
@@ -27,12 +27,11 @@ export declare const FailedReason: {
|
|
27
27
|
export declare class CollaborationSession extends RxDisposable implements IDisposable {
|
28
28
|
private readonly _unitID;
|
29
29
|
private readonly _logService;
|
30
|
-
private readonly _beforeCloseService;
|
31
|
-
private readonly _messageService;
|
32
30
|
private readonly _configService;
|
33
31
|
private readonly _localeService;
|
34
32
|
private readonly _memberService;
|
35
33
|
private readonly _commentService;
|
34
|
+
private readonly _collaborationUIEventService;
|
36
35
|
private readonly _telemetryService?;
|
37
36
|
private readonly _sessionStatus$;
|
38
37
|
readonly sessionStatus$: Observable<SessionStatus>;
|
@@ -41,7 +40,7 @@ export declare class CollaborationSession extends RxDisposable implements IDispo
|
|
41
40
|
readonly event$: Observable<ICollaborationEvent>;
|
42
41
|
private _socket;
|
43
42
|
private _socketMessageSubscription;
|
44
|
-
constructor(_unitID: string, socket$: Observable<Nullable<ICollaborationSocket>>, _logService: ILogService,
|
43
|
+
constructor(_unitID: string, socket$: Observable<Nullable<ICollaborationSocket>>, _logService: ILogService, _configService: IConfigService, _localeService: LocaleService, _memberService: MemberService, _commentService: CommentService, _collaborationUIEventService: CollaborationUIEventService, _telemetryService?: ITelemetryService | undefined);
|
45
44
|
getMemberID(): string | null;
|
46
45
|
dispose(): void;
|
47
46
|
close(): void;
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import { Nullable, Disposable, IConfigService, ILogService, Injector
|
1
|
+
import { Nullable, Disposable, IConfigService, ILogService, Injector } from '@univerjs/core';
|
2
2
|
import { ICollaborationSocket, ICollaborationSocketService } from '../socket/collaboration-socket.service';
|
3
3
|
import { HTTPService } from '@univerjs/network';
|
4
|
-
import {
|
4
|
+
import { CollaborationUIEventService } from '../collaboration-ui-event/collaboration-ui-event';
|
5
|
+
import { INetworkConditionService } from '../network-condition/network-condition.service';
|
5
6
|
import { CollaborationSession, SessionStatus } from './collaboration-session';
|
6
7
|
/**
|
7
8
|
* This service provide collaboration sessions to univer instances. A collaboration session
|
@@ -9,12 +10,12 @@ import { CollaborationSession, SessionStatus } from './collaboration-session';
|
|
9
10
|
*/
|
10
11
|
export declare class CollaborationSessionService extends Disposable {
|
11
12
|
private readonly _injector;
|
12
|
-
private readonly _localeService;
|
13
|
-
private readonly _messageService;
|
14
13
|
private readonly _logService;
|
15
14
|
private readonly _configService;
|
16
15
|
private readonly _socketService;
|
17
16
|
private readonly _httpService;
|
17
|
+
private readonly _collaborationUIEventService;
|
18
|
+
private readonly _networkConditionService?;
|
18
19
|
/**
|
19
20
|
* Socket for collaboration sessions. Session are by unitID but the socket is share by collaboration sessions.
|
20
21
|
*/
|
@@ -28,8 +29,8 @@ export declare class CollaborationSessionService extends Disposable {
|
|
28
29
|
private _socketReady;
|
29
30
|
private _retryConnectingTimer;
|
30
31
|
private _retryCount;
|
31
|
-
constructor(_injector: Injector,
|
32
|
-
private
|
32
|
+
constructor(_injector: Injector, _logService: ILogService, _configService: IConfigService, _socketService: ICollaborationSocketService, _httpService: HTTPService, _collaborationUIEventService: CollaborationUIEventService, _networkConditionService?: INetworkConditionService | undefined);
|
33
|
+
private _listenToNetworkCondition;
|
33
34
|
dispose(): void;
|
34
35
|
/**
|
35
36
|
* Require a collaboration session.
|
@@ -59,10 +60,8 @@ export declare class CollaborationSessionService extends Disposable {
|
|
59
60
|
*/
|
60
61
|
private _tryEnsureSocket;
|
61
62
|
private _onConnectionOpen;
|
62
|
-
private _listenToOfflineEvent;
|
63
63
|
private _onOffline;
|
64
64
|
private _onConnectionFailed;
|
65
|
-
private _listenToOnlineEvent;
|
66
65
|
private _tryReconnect;
|
67
66
|
private _onMessage;
|
68
67
|
private _sendHeartbeatTimer;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
export interface ICollaborationUIEvent {
|
2
|
+
id: CollaborationUIEventId;
|
3
|
+
data?: string;
|
4
|
+
}
|
5
|
+
export declare enum CollaborationUIEventId {
|
6
|
+
OTHER_CLIENT_EDITING = "OTHER_CLIENT_EDITING",
|
7
|
+
PERMISSION_DENIED = "PERMISSION_DENIED",
|
8
|
+
CONFLICT = "CONFLICT",
|
9
|
+
CLOSE_ROOM = "CLOSE_ROOM",
|
10
|
+
JOIN_ROOM_FAILED = "JOIN_ROOM_FAILED",
|
11
|
+
SOCKET_FAILED_RETRY = "SOCKET_FAILED_RETRY",
|
12
|
+
SOCKET_FAILED = "SOCKET_FAILED",
|
13
|
+
SUBMIT_CHANGESET_TIMEOUT = "SUBMIT_CHANGESET_TIMEOUT"
|
14
|
+
}
|
15
|
+
export declare class CollaborationUIEventService {
|
16
|
+
private readonly _event$;
|
17
|
+
readonly event$: import('rxjs').Observable<ICollaborationUIEvent>;
|
18
|
+
emitEvent(event: ICollaborationUIEvent): void;
|
19
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { UnitModel, ILogService, RxDisposable } from '@univerjs/core';
|
2
|
+
import { SnapshotService } from '@univerjs-pro/collaboration';
|
3
|
+
import { UniverType } from '@univerjs/protocol';
|
4
|
+
import { ILocalCacheService } from '../local-cache/local-cache.service';
|
5
|
+
export interface IUnitInfo {
|
6
|
+
unitId: string;
|
7
|
+
type: UniverType;
|
8
|
+
subUnitId?: string;
|
9
|
+
}
|
10
|
+
/**
|
11
|
+
* This service provides a way to load data from the server and initialize the Univer instance.
|
12
|
+
*/
|
13
|
+
export declare class DataLoaderService extends RxDisposable {
|
14
|
+
private readonly _logService;
|
15
|
+
private readonly _snapshotService;
|
16
|
+
private readonly _localCacheService?;
|
17
|
+
private readonly _unitInfo$;
|
18
|
+
readonly unitInfo$: import('rxjs').Observable<IUnitInfo | null>;
|
19
|
+
constructor(_logService: ILogService, _snapshotService: SnapshotService, _localCacheService?: ILocalCacheService | undefined);
|
20
|
+
loadUnit(unitId: string, type: UniverType, subUnitId?: string): Promise<UnitModel | null>;
|
21
|
+
private _loadSheet;
|
22
|
+
private _loadDoc;
|
23
|
+
}
|
@@ -12,7 +12,7 @@ export interface ISignUrlResponse {
|
|
12
12
|
error: IError | undefined;
|
13
13
|
url: string;
|
14
14
|
}
|
15
|
-
export declare class
|
15
|
+
export declare class CollaborationImageIoService implements IImageIoService {
|
16
16
|
private readonly _httpService;
|
17
17
|
private readonly _configService;
|
18
18
|
private readonly _univerInstanceService;
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import { IMutationInfo, Nullable
|
1
|
+
import { IMutationInfo, Nullable } from '@univerjs/core';
|
2
2
|
import { UniverType } from '@univerjs/protocol';
|
3
|
-
import { IChangeset
|
4
|
-
import { IBeforeCloseService } from '@univerjs/ui';
|
3
|
+
import { IChangeset } from '@univerjs-pro/collaboration';
|
5
4
|
export interface IUnitCacheData {
|
6
5
|
unitID: string;
|
7
6
|
type: UniverType;
|
@@ -9,29 +8,14 @@ export interface IUnitCacheData {
|
|
9
8
|
awaitingChangeset: Nullable<IChangeset>;
|
10
9
|
mutations: IMutationInfo[];
|
11
10
|
}
|
12
|
-
|
13
|
-
* This service provide caching to the collaboration controller.
|
14
|
-
*/
|
15
|
-
export declare class LocalCacheService extends Disposable {
|
16
|
-
private readonly _configService;
|
17
|
-
private readonly _localStorageService;
|
18
|
-
private readonly _beforeCloseService;
|
19
|
-
private readonly _localeService;
|
20
|
-
private readonly _revisionService;
|
21
|
-
private _cachedData;
|
22
|
-
private _saveTaskMap;
|
23
|
-
private _disabled;
|
24
|
-
constructor(_configService: IConfigService, _localStorageService: ILocalStorageService, _beforeCloseService: IBeforeCloseService, _localeService: LocaleService, _revisionService: RevisionService);
|
25
|
-
disableLocalCache(): void;
|
26
|
-
enableLocalCache(): void;
|
27
|
-
dispose(): void;
|
11
|
+
export interface ILocalCacheService {
|
28
12
|
loadOfflineData(unitID: string): Promise<Nullable<IUnitCacheData>>;
|
29
13
|
saveOfflineData(unitID: string, data: IUnitCacheData): Promise<boolean>;
|
30
14
|
updateOfflineData(unitID: string, type: UniverType, awaitingChangeset: Nullable<IChangeset>, pendingMutations: IMutationInfo[]): void;
|
31
|
-
|
32
|
-
|
33
|
-
private _saveCache;
|
15
|
+
disableLocalCache(): void;
|
16
|
+
enableLocalCache(): void;
|
34
17
|
exhaustSavingTask(): Promise<void>;
|
35
|
-
|
18
|
+
saveTaskMap: Map<string, number>;
|
36
19
|
}
|
20
|
+
export declare const ILocalCacheService: import('@wendellhu/redi').IdentifierDecorator<ILocalCacheService>;
|
37
21
|
export declare function getLocalCacheKey(unitID: string): string;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { Nullable, Disposable, IUniverInstanceService, UserManagerService } from '@univerjs/core';
|
2
2
|
import { IMember } from '@univerjs/protocol';
|
3
|
+
import { Observable } from 'rxjs';
|
3
4
|
export interface IUser extends IMember {
|
4
5
|
userID: string;
|
5
6
|
}
|
@@ -10,7 +11,9 @@ export declare class MemberService extends Disposable {
|
|
10
11
|
private readonly _univerInstanceService;
|
11
12
|
private _userManagerService;
|
12
13
|
private _roomMembers;
|
14
|
+
private readonly _roomCreated$;
|
13
15
|
constructor(_univerInstanceService: IUniverInstanceService, _userManagerService: UserManagerService);
|
16
|
+
waitForRoom$(unitId: string): Observable<RoomMember>;
|
14
17
|
/**
|
15
18
|
* @deprecated please use userManagerService
|
16
19
|
*/
|
@@ -52,6 +55,8 @@ export declare class MemberService extends Disposable {
|
|
52
55
|
*/
|
53
56
|
export declare class RoomMember extends Disposable {
|
54
57
|
private readonly _members;
|
58
|
+
private readonly _members$;
|
59
|
+
readonly members$: Observable<Map<string, IMember>>;
|
55
60
|
dispose(): void;
|
56
61
|
/**
|
57
62
|
* Update a member in the room(unit).
|
@@ -74,4 +79,5 @@ export declare class RoomMember extends Disposable {
|
|
74
79
|
* @returns member object array.
|
75
80
|
*/
|
76
81
|
getAllMembers(): IMember[];
|
82
|
+
private _emitMembers;
|
77
83
|
}
|
@@ -1,12 +1,17 @@
|
|
1
|
-
import { Injector, IPermissionService,
|
1
|
+
import { IAuthzIoService, Injector, IPermissionService, IUndoRedoService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
2
2
|
import { CollaborationSessionService } from '../collaboration-session/collaboration-session.service';
|
3
|
+
import { CollaborationUIEventService } from '../collaboration-ui-event/collaboration-ui-event';
|
3
4
|
export declare class PermissionService extends RxDisposable {
|
4
5
|
private _injector;
|
5
6
|
private _univerInstanceService;
|
6
7
|
private _permissionService;
|
7
8
|
private _collaborationSessionService;
|
8
|
-
private
|
9
|
-
|
9
|
+
private _collaborationUIEventService;
|
10
|
+
private _authzIoService;
|
11
|
+
private readonly _undoRedoService;
|
12
|
+
constructor(_injector: Injector, _univerInstanceService: IUniverInstanceService, _permissionService: IPermissionService, _collaborationSessionService: CollaborationSessionService, _collaborationUIEventService: CollaborationUIEventService, _authzIoService: IAuthzIoService, _undoRedoService: IUndoRedoService);
|
10
13
|
private _initCloseConn;
|
11
14
|
private _initUnitPermissionChange;
|
15
|
+
initWorkbookPermissionChange(_unitId?: string): Promise<void>;
|
16
|
+
refreshPermission(unitId: string, permissionId: string): void;
|
12
17
|
}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { Disposable } from '@univerjs/core';
|
2
1
|
import { Observable } from 'rxjs';
|
3
2
|
/**
|
4
3
|
* It is not recommended to open multiple units in different browser tabs at the same time,
|
@@ -14,26 +13,3 @@ export declare enum UnitStatus {
|
|
14
13
|
NO_OTHER_CLIENTS_EDITING = 0,
|
15
14
|
OTHER_CLIENTS_EDITING = 1
|
16
15
|
}
|
17
|
-
export declare class WebBrowserSingleActiveUnitService extends Disposable implements ISingleActiveUnitService {
|
18
|
-
private _id;
|
19
|
-
private _selfUnitIDs;
|
20
|
-
private _unitOnClients;
|
21
|
-
private _heartbeatTimer;
|
22
|
-
private _clearOtherTimers;
|
23
|
-
private _unitStatus;
|
24
|
-
constructor();
|
25
|
-
dispose(): void;
|
26
|
-
getUnitStatus$(unitID: string): Observable<UnitStatus>;
|
27
|
-
editingUnit(unitID: string): void;
|
28
|
-
disposeUnit(unitID: string): void;
|
29
|
-
private _init;
|
30
|
-
private _handleEvent;
|
31
|
-
private _handleJoinEvent;
|
32
|
-
private _scheduleClearOtherTimer;
|
33
|
-
private _removeClearOtherTimer;
|
34
|
-
private _handleLeaveEvent;
|
35
|
-
private _handleHeartbeatEvent;
|
36
|
-
private _send;
|
37
|
-
private _scheduleHeartbeat;
|
38
|
-
private _ensureSubject;
|
39
|
-
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ICombRequestEvent, ICombResponseEvent, IFetchingMissEvent, ISubmitChangesetEvent, ISnapshotServerService } from '@univerjs-pro/collaboration';
|
2
|
-
import { Nullable, Disposable, IConfigService, ILogService } from '@univerjs/core';
|
3
|
-
import { ISocket, HTTPService
|
2
|
+
import { Nullable, Disposable, IConfigService, ILogService, Injector } from '@univerjs/core';
|
3
|
+
import { ISocket, HTTPService } from '@univerjs/network';
|
4
4
|
import { IChangeset } from '@univerjs/protocol';
|
5
5
|
import { Observable } from 'rxjs';
|
6
6
|
export interface ICollaborationSocket extends Pick<ISocket, 'open$' | 'error$' | 'close$'> {
|
@@ -17,12 +17,12 @@ export interface ICollaborationSocketService {
|
|
17
17
|
}
|
18
18
|
export declare const ICollaborationSocketService: import('@wendellhu/redi').IdentifierDecorator<ICollaborationSocketService>;
|
19
19
|
export declare class CollaborationSocketService extends Disposable implements ICollaborationSocketService {
|
20
|
+
protected readonly _injector: Injector;
|
20
21
|
protected readonly _http: HTTPService;
|
21
|
-
protected readonly _ws: WebSocketService;
|
22
22
|
protected readonly _configService: IConfigService;
|
23
23
|
protected readonly _logService: ILogService;
|
24
24
|
protected readonly _snapshotServerService: ISnapshotServerService;
|
25
|
-
constructor(
|
25
|
+
constructor(_injector: Injector, _http: HTTPService, _configService: IConfigService, _logService: ILogService, _snapshotServerService: ISnapshotServerService);
|
26
26
|
/**
|
27
27
|
* Create a socket that would connect to the remote collaboration server. It would throw an error when the socket cannot be created.
|
28
28
|
*
|
@@ -0,0 +1 @@
|
|
1
|
+
function _0x2ef6(_0x2d1c46,_0x2f81f8){var _0x385a90=_0x385a();return _0x2ef6=function(_0x2ef67f,_0x33a70f){_0x2ef67f=_0x2ef67f-0x9b;var _0x5ec20e=_0x385a90[_0x2ef67f];return _0x5ec20e;},_0x2ef6(_0x2d1c46,_0x2f81f8);}function _0x385a(){var _0x5d575b=['values','createInstance','from','subscribe','828049HoCbYz','rxjs','2031462NvFSoF','2886804OqTiOq','toStringTag','waitForRoom$','FBase','getCollaboration','UniverProCollaborationClient','object','15qeJlFi','@univerjs/core','UNIVER_SHEET','members$','140HzAFmG','_injector','loadActiveSheet','Inject','UniverCore','_snapshotService','extend','defineProperty','353128lLWBfH','@univerjs-pro/collaboration','SnapshotService','toDisposable','[FCollaboration]:\x20this\x20method\x20should\x20be\x20override.','UniverProCollaboration','amd','UniverProCollaborationClientFacade','3758166CNptHR','CollaborationController','switchMap','readyForCollab','getUnit','getOwnPropertyDescriptor','getUniverSheet','Module','FUniver','FCollaboration','subscribeCollaborators','_univerInstanceService','loadSheet','exports','_collaborationController','@univerjs-pro/collaboration-client','796208aORGKh','length','1350736aeToXO','get'];_0x385a=function(){return _0x5d575b;};return _0x385a();}(function(_0x3fd3f4,_0x3c8ce8){var _0x200053=_0x2ef6,_0x5b9bf1=_0x3fd3f4();while(!![]){try{var _0x33ab7c=parseInt(_0x200053(0x9b))/0x1+parseInt(_0x200053(0xcb))/0x2+-parseInt(_0x200053(0x9d))/0x3+parseInt(_0x200053(0xc9))/0x4*(parseInt(_0x200053(0xa5))/0x5)+-parseInt(_0x200053(0x9e))/0x6+-parseInt(_0x200053(0xa9))/0x7*(parseInt(_0x200053(0xb1))/0x8)+parseInt(_0x200053(0xb9))/0x9;if(_0x33ab7c===_0x3c8ce8)break;else _0x5b9bf1['push'](_0x5b9bf1['shift']());}catch(_0x2f883a){_0x5b9bf1['push'](_0x5b9bf1['shift']());}}}(_0x385a,0x7476f),function(_0x506b52,_0x44b5e4){var _0x5cd5e2=_0x2ef6;typeof exports==_0x5cd5e2(0xa4)&&typeof module<'u'?_0x44b5e4(exports,require(_0x5cd5e2(0xa6)),require(_0x5cd5e2(0xb2)),require(_0x5cd5e2(0xc8)),require(_0x5cd5e2(0x9c))):typeof define=='function'&&define[_0x5cd5e2(0xb7)]?define([_0x5cd5e2(0xc6),_0x5cd5e2(0xa6),'@univerjs-pro/collaboration',_0x5cd5e2(0xc8),_0x5cd5e2(0x9c)],_0x44b5e4):(_0x506b52=typeof globalThis<'u'?globalThis:_0x506b52||self,_0x44b5e4(_0x506b52[_0x5cd5e2(0xb8)]={},_0x506b52[_0x5cd5e2(0xad)],_0x506b52[_0x5cd5e2(0xb6)],_0x506b52[_0x5cd5e2(0xa3)],_0x506b52[_0x5cd5e2(0x9c)]));}(this,function(_0x21afb2,_0x313eae,_0x4dc5f2,_0x351b43,_0x4276de){'use strict';var _0x372ec3=_0x2ef6;var _0x1a0344=Object[_0x372ec3(0xb0)],_0x5f5b3a=Object[_0x372ec3(0xbe)],_0x1b9ac1=(_0x5f2ae4,_0x3979d6,_0x94e900,_0x5312fa)=>{var _0x1c0a30=_0x372ec3;for(var _0x5a4987=_0x5312fa>0x1?void 0x0:_0x5312fa?_0x5f5b3a(_0x3979d6,_0x94e900):_0x3979d6,_0x20947c=_0x5f2ae4[_0x1c0a30(0xca)]-0x1,_0x40e475;_0x20947c>=0x0;_0x20947c--)(_0x40e475=_0x5f2ae4[_0x20947c])&&(_0x5a4987=(_0x5312fa?_0x40e475(_0x3979d6,_0x94e900,_0x5a4987):_0x40e475(_0x5a4987))||_0x5a4987);return _0x5312fa&&_0x5a4987&&_0x1a0344(_0x3979d6,_0x94e900,_0x5a4987),_0x5a4987;},_0xd4897d=(_0x472caa,_0x53b839)=>(_0x10ed06,_0x38a0fd)=>_0x53b839(_0x10ed06,_0x38a0fd,_0x472caa);_0x21afb2[_0x372ec3(0xc2)]=class extends _0x313eae[_0x372ec3(0xa1)]{constructor(_0x413987,_0x442a38,_0x33e0fb,_0x5f2b10,_0x5a4b14){var _0x1d8692=_0x372ec3;super(),this['_handler']=_0x413987,this[_0x1d8692(0xaa)]=_0x442a38,this['_univerInstanceService']=_0x33e0fb,this[_0x1d8692(0xae)]=_0x5f2b10,this['_collaborationController']=_0x5a4b14;}async[_0x372ec3(0xab)](){var _0xff65f7=_0x372ec3;throw new Error(_0xff65f7(0xb5));}async[_0x372ec3(0xc5)](_0x5d1d8c){var _0x45f228=_0x372ec3;return this[_0x45f228(0xc4)][_0x45f228(0xbd)](_0x5d1d8c,_0x313eae['UniverInstanceType'][_0x45f228(0xa7)])||await this['_snapshotService'][_0x45f228(0xc5)](_0x5d1d8c,0x0)?(await this[_0x45f228(0xc7)][_0x45f228(0xbc)](_0x5d1d8c),this['_handler'][_0x45f228(0xbf)](_0x5d1d8c)):null;}[_0x372ec3(0xc3)](_0xcffad,_0x4e7774){var _0xf71ed7=_0x372ec3;const _0xd70d33=this[_0xf71ed7(0xaa)][_0xf71ed7(0xcc)](_0x351b43['MemberService'])[_0xf71ed7(0xa0)](_0xcffad)['pipe'](_0x4276de[_0xf71ed7(0xbb)](_0xba4b24=>_0xba4b24[_0xf71ed7(0xa8)]))[_0xf71ed7(0xd0)](_0x356946=>_0x4e7774(Array[_0xf71ed7(0xcf)](_0x356946[_0xf71ed7(0xcd)]())));return _0x313eae[_0xf71ed7(0xb4)](_0xd70d33);}},_0x21afb2['FCollaboration']=_0x1b9ac1([_0xd4897d(0x1,_0x313eae[_0x372ec3(0xac)](_0x313eae['Injector'])),_0xd4897d(0x2,_0x313eae['IUniverInstanceService']),_0xd4897d(0x3,_0x313eae[_0x372ec3(0xac)](_0x4dc5f2[_0x372ec3(0xb3)])),_0xd4897d(0x4,_0x313eae[_0x372ec3(0xac)](_0x351b43[_0x372ec3(0xba)]))],_0x21afb2[_0x372ec3(0xc2)]);class _0x4392a5 extends _0x313eae[_0x372ec3(0xc1)]{[_0x372ec3(0xa2)](){var _0x172879=_0x372ec3;return this['_injector'][_0x172879(0xce)](_0x21afb2[_0x172879(0xc2)],{'getUniverSheet':_0x1aec9b=>this['getUniverSheet'](_0x1aec9b)});}}_0x313eae[_0x372ec3(0xc1)][_0x372ec3(0xaf)](_0x4392a5),Object[_0x372ec3(0xb0)](_0x21afb2,Symbol[_0x372ec3(0x9f)],{'value':_0x372ec3(0xc0)});}));
|