@univerjs-pro/collaboration-client 1.0.0-alpha.3 → 1.0.0-alpha.4
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
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0xa4d642=_0x2c27;(function(_0x3376e7,_0x23df22){const _0x2a2695=_0x2c27,_0x3c1e01=_0x3376e7();while(!![]){try{const _0x305d14=parseInt(_0x2a2695(0x168))/0x1*(-parseInt(_0x2a2695(0x162))/0x2)+-parseInt(_0x2a2695(0x15d))/0x3+parseInt(_0x2a2695(0x14f))/0x4*(parseInt(_0x2a2695(0x15c))/0x5)+parseInt(_0x2a2695(0x151))/0x6+parseInt(_0x2a2695(0x163))/0x7*(parseInt(_0x2a2695(0x155))/0x8)+parseInt(_0x2a2695(0x14e))/0x9*(parseInt(_0x2a2695(0x15b))/0xa)+-parseInt(_0x2a2695(0x161))/0xb*(parseInt(_0x2a2695(0x159))/0xc);if(_0x305d14===_0x23df22)break;else _0x3c1e01['push'](_0x3c1e01['shift']());}catch(_0x1be8e6){_0x3c1e01['push'](_0x3c1e01['shift']());}}}(_0x1edd,0xca142));function _0x2c27(_0x326025,_0x9495ac){_0x326025=_0x326025-0x14e;const _0x1edd6e=_0x1edd();let _0x2c277c=_0x1edd6e[_0x326025];return _0x2c277c;}const e={'collaboration-client':{'collabClient':{'tooltip':{'reconnect':_0xa4d642(0x167)}},'collabStatus':{'fetchMiss':'正在擷取伺服器資料...','conflict':_0xa4d642(0x156),'notCollab':_0xa4d642(0x166),'synced':_0xa4d642(0x15e),'syncing':_0xa4d642(0x154),'offline':_0xa4d642(0x16c)},'session':{'connection-failed':_0xa4d642(0x16a),'will-retry':_0xa4d642(0x16b),'room-full':_0xa4d642(0x152),'join-failed':_0xa4d642(0x153),'room-not-exists':_0xa4d642(0x158),'room-permission-denied':_0xa4d642(0x169),'room-cnt-exceeds':_0xa4d642(0x164),'collaboration-timeout':_0xa4d642(0x160)},'conflict':{'title':_0xa4d642(0x165),'content':_0xa4d642(0x15a)},'permission':{'title':_0xa4d642(0x150),'content':_0xa4d642(0x15f)},'collaboration':{'single-unit':{'warning':_0xa4d642(0x157)},'closeRoom':_0xa4d642(0x16d)},'auth':{'needGotoLoginAlert':'您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。'}}};export{e as default};function _0x1edd(){const _0x48f5a7=['3464400ISoOXW','此文件協作人數已達上限,您的編輯將暫存於本機。','加入協作失敗,請稍後重試,您的編輯將暫存於本機。','同步中...','16IIWsPG','編輯衝突','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','加入協作失敗,您的編輯將暫存於本機。','48DvvRmo','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','750JEBhYE','2495930DEVARE','83685hDTnvn','已同步','您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。','伺服器未回應協作請求,您的編輯將儲存在本機。','2429768lCXJwG','4qrHlZl','751583ZvgdVP','協作文件數量超過限制,您的編輯將暫存於本機。','協作衝突','本機檔案','點擊重新連線','659387HESHiY','沒有協作權限,您的編輯將暫存於本機。','連線失敗,請檢查您的網路。','連線失敗,將在稍後重試連線。','已離線,編輯將儲存在本機','由於協作房間已關閉,編輯權限已被收回。','152091ASVfTD','8nJOtmK','認證錯誤'];_0x1edd=function(){return _0x48f5a7;};return _0x1edd();}
|
|
@@ -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 _0x4eff(){const _0xebc6ef=['loadSheetAsync','_collaborationController','FBase','status$','ms.','_initialize','getPresentation','rxjs','1079299iGGoRT','_resolveUnitId','loadBase','state','extend','SYNCED','FCollaboration','FEnum','[FCollaboration]:\x20Unit\x20\x22','toStringTag','NOT_COLLAB','CollaborationController','Module','loadUnit','values','43945ASdzbh','object','registerEventHandler','loadDoc','@univerjs-pro/collaboration-client','loadBoard','unitID','length','defineProperty','exports','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','toDisposable','15mfSXen','unsubscribe','function','resolve','_injector','loadSheet','getCollabEntity','loadDocAsync','loadServerUnit','_handler','582gRdBoo','191943faFbow','@univerjs/core','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','getDocument','getOwnPropertyDescriptor','SnapshotService','amd','status','get','add','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','\x22\x20after\x20','719512gGESDx','loadBoardAsync','readyForCollab','getFocusedUnit','from','getBoard','subscribe','Event','entityInit$','createInstance','IUniverInstanceService','CollaborationStatusChanged','@univerjs/core/facade','getWorkbook','DisposableCollection','_snapshotService','12538830myrTXf','DataLoaderService','loadUnitOfRevision','_univerInstanceService','reject','UniverProCollaborationClientFacade','CollaborationStatus','MemberService','CONFLICT','@univerjs-pro/collaboration','FEventName','fireEvent','UniverCore','decorate','flush','loadBaseAsync','2410289wDTmeD','getCollaboration','8FdeXVk','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','getBase','FUniver','Inject','loadServerUnitOfRevision','2398804YjGFeO','UniverProCollaborationClient'];_0x4eff=function(){return _0xebc6ef;};return _0x4eff();}function _0x299f(_0x19dac4,_0x41173c){_0x19dac4=_0x19dac4-0x75;const _0x4effc9=_0x4eff();let _0x299f49=_0x4effc9[_0x19dac4];return _0x299f49;}(function(_0x4ce818,_0x4b9724){const _0x270c0f=_0x299f,_0xab29d7=_0x4ce818();while(!![]){try{const _0xaed5b1=parseInt(_0x270c0f(0x9a))/0x1+parseInt(_0x270c0f(0x90))/0x2+parseInt(_0x270c0f(0xb5))/0x3*(-parseInt(_0x270c0f(0xcc))/0x4)+-parseInt(_0x270c0f(0xa9))/0x5*(-parseInt(_0x270c0f(0xbf))/0x6)+-parseInt(_0x270c0f(0x88))/0x7*(parseInt(_0x270c0f(0x8a))/0x8)+parseInt(_0x270c0f(0xc0))/0x9+-parseInt(_0x270c0f(0x78))/0xa;if(_0xaed5b1===_0x4b9724)break;else _0xab29d7['push'](_0xab29d7['shift']());}catch(_0x1cc992){_0xab29d7['push'](_0xab29d7['shift']());}}}(_0x4eff,0x9fe71),function(_0x1e08f6,_0x3548bc){const _0x4e24c0=_0x299f;typeof exports==_0x4e24c0(0xaa)&&typeof module<'u'?_0x3548bc(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core/facade'),require('@univerjs/core'),require('@univerjs-pro/collaboration'),require('rxjs')):typeof define==_0x4e24c0(0xb7)&&define[_0x4e24c0(0xc6)]?define([_0x4e24c0(0xb2),_0x4e24c0(0xad),_0x4e24c0(0xd8),_0x4e24c0(0xc1),_0x4e24c0(0x81),_0x4e24c0(0x99)],_0x3548bc):(_0x1e08f6=typeof globalThis<'u'?globalThis:_0x1e08f6||self,_0x3548bc(_0x1e08f6[_0x4e24c0(0x7d)]={},_0x1e08f6[_0x4e24c0(0x91)],_0x1e08f6['UniverCoreFacade'],_0x1e08f6[_0x4e24c0(0x84)],_0x1e08f6['UniverProCollaboration'],_0x1e08f6['rxjs']));}(this,function(_0x4ca478,_0x15892a,_0x26c841,_0x16f7fc,_0x4bf555,_0x3a4b4f){const _0xb49d29=_0x299f;Object[_0xb49d29(0xb1)](_0x4ca478,Symbol[_0xb49d29(0xa3)],{'value':_0xb49d29(0xa6)});var _0x2e42bf=class extends _0x26c841['FEnum']{get[_0xb49d29(0x7e)](){const _0x4040f4=_0xb49d29;return _0x15892a[_0x4040f4(0x7e)];}};_0x26c841[_0xb49d29(0xa1)]['extend'](_0x2e42bf);var _0x9bc4cd=class extends _0x26c841[_0xb49d29(0x82)]{get[_0xb49d29(0xd7)](){const _0x5ac31f=_0xb49d29;return _0x5ac31f(0xd7);}};_0x26c841[_0xb49d29(0x82)][_0xb49d29(0x9e)](_0x9bc4cd);function _0x50d807(_0x2cf027,_0x303320){return function(_0x44768f,_0x41b71f){_0x303320(_0x44768f,_0x41b71f,_0x2cf027);};}function _0x431474(_0x2d8b95,_0x298c87,_0x3491da,_0x5afd55){const _0xb968ea=_0xb49d29;var _0x3fd37c=arguments[_0xb968ea(0xb0)],_0x563069=_0x3fd37c<0x3?_0x298c87:_0x5afd55===null?_0x5afd55=Object[_0xb968ea(0xc4)](_0x298c87,_0x3491da):_0x5afd55,_0x5dfa78;if(typeof Reflect=='object'&&typeof Reflect[_0xb968ea(0x85)]==_0xb968ea(0xb7))_0x563069=Reflect['decorate'](_0x2d8b95,_0x298c87,_0x3491da,_0x5afd55);else{for(var _0x26045d=_0x2d8b95[_0xb968ea(0xb0)]-0x1;_0x26045d>=0x0;_0x26045d--)(_0x5dfa78=_0x2d8b95[_0x26045d])&&(_0x563069=(_0x3fd37c<0x3?_0x5dfa78(_0x563069):_0x3fd37c>0x3?_0x5dfa78(_0x298c87,_0x3491da,_0x563069):_0x5dfa78(_0x298c87,_0x3491da))||_0x563069);}return _0x3fd37c>0x3&&_0x563069&&Object[_0xb968ea(0xb1)](_0x298c87,_0x3491da,_0x563069),_0x563069;}let _0x15f830=class extends _0x26c841[_0xb49d29(0x94)]{constructor(_0x2e6823,_0x1033d4,_0x261f06,_0x5bfe3c,_0x4c3393){const _0x41f6b9=_0xb49d29;super(),this['_handler']=_0x2e6823,this[_0x41f6b9(0xb9)]=_0x1033d4,this[_0x41f6b9(0x7b)]=_0x261f06,this[_0x41f6b9(0x77)]=_0x5bfe3c,this[_0x41f6b9(0x93)]=_0x4c3393;}async[_0xb49d29(0x92)](_0x5c5c70,_0x25dae7){const _0x486e63=_0xb49d29;return await this['_snapshotService'][_0x486e63(0xba)](_0x5c5c70,0x0,_0x25dae7)?(await this[_0x486e63(0x93)][_0x486e63(0xce)](_0x5c5c70),this[_0x486e63(0xbe)]['getWorkbook'](_0x5c5c70)):null;}async[_0xb49d29(0xbc)](_0x3bf73e,_0x21946d){const _0x118bf3=_0xb49d29;return await this[_0x118bf3(0x77)][_0x118bf3(0xac)](_0x3bf73e,0x0,_0x21946d)?(await this[_0x118bf3(0x93)][_0x118bf3(0xce)](_0x3bf73e),this[_0x118bf3(0xbe)][_0x118bf3(0xc3)](_0x3bf73e)):null;}async[_0xb49d29(0x87)](_0x5331f8,_0x40242a){const _0xdfc7b3=_0xb49d29;return await this[_0xdfc7b3(0x77)][_0xdfc7b3(0x9c)](_0x5331f8,0x0,_0x40242a)?(await this[_0xdfc7b3(0x93)][_0xdfc7b3(0xce)](_0x5331f8),this[_0xdfc7b3(0xbe)][_0xdfc7b3(0x8c)](_0x5331f8)):null;}async['loadSlideAsync'](_0x11644d,_0x46bdf4){const _0xe374a2=_0xb49d29;return await this[_0xe374a2(0x77)]['loadSlide'](_0x11644d,0x0,_0x46bdf4)?(await this[_0xe374a2(0x93)][_0xe374a2(0xce)](_0x11644d),this['_handler'][_0xe374a2(0x98)](_0x11644d)):null;}async[_0xb49d29(0xcd)](_0x33d66b,_0x2f1834){const _0x1d6ad2=_0xb49d29;return await this[_0x1d6ad2(0x77)][_0x1d6ad2(0xae)](_0x33d66b,0x0,_0x2f1834)?(await this[_0x1d6ad2(0x93)][_0x1d6ad2(0xce)](_0x33d66b),this[_0x1d6ad2(0xbe)][_0x1d6ad2(0xd1)](_0x33d66b)):null;}['subscribeCollaborators'](_0x3eadd4,_0x4783d9){const _0x3485e9=_0xb49d29;return(0x0,_0x16f7fc['toDisposable'])(this[_0x3485e9(0xb9)][_0x3485e9(0xc8)](_0x15892a[_0x3485e9(0x7f)])['waitForRoom$'](_0x3eadd4)['pipe']((0x0,_0x3a4b4f['switchMap'])(_0xc9fa6=>_0xc9fa6['members$']))['subscribe'](_0x5d76f1=>_0x4783d9(Array[_0x3485e9(0xd0)](_0x5d76f1[_0x3485e9(0xa8)]()))));}['getCollaborationStatus'](_0x1014a0){const _0x2c059f=_0xb49d29;var _0x1c1e18;let _0x1ae4aa=this['_resolveUnitId'](_0x1014a0);if(!_0x1ae4aa)return _0x15892a['CollaborationStatus']['NOT_COLLAB'];let _0x476e5c=this['_collaborationController'][_0x2c059f(0xbb)](_0x1ae4aa);return(_0x1c1e18=_0x476e5c==null?void 0x0:_0x476e5c['state'][_0x2c059f(0xc7)])==null?_0x15892a[_0x2c059f(0x7e)]['NOT_COLLAB']:_0x1c1e18;}[_0xb49d29(0x86)](_0x33506b,_0x51259a={}){const _0x1e6668=_0xb49d29;var _0x503ec2;let _0x3c3acf=this[_0x1e6668(0x9b)](_0x33506b);if(!_0x3c3acf)return Promise[_0x1e6668(0x7c)](Error(_0x1e6668(0xca)));let _0x13e7a7=this[_0x1e6668(0x93)]['getCollabEntity'](_0x3c3acf);if(!_0x13e7a7)return Promise[_0x1e6668(0x7c)](Error(_0x1e6668(0xa2)+_0x3c3acf+_0x1e6668(0xb3)));let _0x38c5d9=_0x13e7a7[_0x1e6668(0x9d)]['status'];if(_0x38c5d9===_0x15892a[_0x1e6668(0x7e)][_0x1e6668(0x9f)])return Promise[_0x1e6668(0xb8)]();let _0x182800=_0x5e889e(_0x3c3acf,_0x38c5d9);if(_0x182800)return Promise[_0x1e6668(0x7c)](_0x182800);let _0xc1d9d4=(_0x503ec2=_0x51259a['timeout'])==null?0x7530:_0x503ec2;return new Promise((_0x15866b,_0x2ed0e0)=>{const _0x1e4a20=_0x1e6668;let _0x83b2af=!0x1,_0xb91cb9=null,_0x578267=setTimeout(()=>{const _0x4a47bb=_0x299f;_0x83b2af=!0x0,_0xb91cb9==null||_0xb91cb9[_0x4a47bb(0xb6)](),_0x2ed0e0(Error(_0x4a47bb(0x8b)+_0x3c3acf+_0x4a47bb(0xcb)+_0xc1d9d4+_0x4a47bb(0x96)));},_0xc1d9d4),_0x7653ff=()=>{const _0x115e45=_0x299f;_0x83b2af=!0x0,clearTimeout(_0x578267),_0xb91cb9==null||_0xb91cb9[_0x115e45(0xb6)]();};_0xb91cb9=_0x13e7a7['status$'][_0x1e4a20(0xd2)](_0x1a9ce7=>{const _0x35363b=_0x1e4a20;if(_0x83b2af)return;if(_0x1a9ce7===_0x15892a[_0x35363b(0x7e)][_0x35363b(0x9f)]){_0x7653ff(),_0x15866b();return;}let _0x5bf0e3=_0x5e889e(_0x3c3acf,_0x1a9ce7);_0x5bf0e3&&(_0x7653ff(),_0x2ed0e0(_0x5bf0e3));});});}[_0xb49d29(0x9b)](_0x364d63){const _0xaf0fb6=_0xb49d29;var _0x44a688;return _0x364d63||((_0x44a688=this[_0xaf0fb6(0x7b)][_0xaf0fb6(0xcf)]())==null?void 0x0:_0x44a688['getUnitId']());}};_0x15f830=_0x431474([_0x50d807(0x1,(0x0,_0x16f7fc[_0xb49d29(0x8e)])(_0x16f7fc['Injector'])),_0x50d807(0x2,_0x16f7fc[_0xb49d29(0xd6)]),_0x50d807(0x3,(0x0,_0x16f7fc[_0xb49d29(0x8e)])(_0x4bf555[_0xb49d29(0xc5)])),_0x50d807(0x4,(0x0,_0x16f7fc[_0xb49d29(0x8e)])(_0x15892a[_0xb49d29(0xa5)]))],_0x15f830);function _0x5e889e(_0x274e69,_0xaed991){const _0x262823=_0xb49d29;return _0xaed991===_0x15892a['CollaborationStatus'][_0x262823(0x80)]||_0xaed991===_0x15892a[_0x262823(0x7e)][_0x262823(0xa4)]?Error(_0x262823(0xc2)+_0x274e69+'\x22\x20while\x20collaboration\x20status\x20is\x20'+_0xaed991+'.'):null;}var _0x514769=class extends _0x26c841[_0xb49d29(0x8d)]{[_0xb49d29(0x97)](_0x53adda){const _0x12ed27=_0xb49d29;let _0x1d512a=_0x53adda['get'](_0x15892a[_0x12ed27(0xa5)]);this['disposeWithMe'](this[_0x12ed27(0xab)](this['Event']['CollaborationStatusChanged'],()=>{const _0x445de5=_0x12ed27;let _0x92e2ce=new _0x16f7fc[(_0x445de5(0x76))](),_0x37da96=_0x1d512a[_0x445de5(0xd4)]['subscribe'](_0x3a935a=>{const _0x4bb353=_0x445de5;let _0x5a1456=_0x3a935a[_0x4bb353(0x95)][_0x4bb353(0xd2)](_0xa89233=>{const _0x1c8ea8=_0x4bb353;let _0x5d80ac={'unitId':_0x3a935a[_0x1c8ea8(0xaf)],'status':_0xa89233};this[_0x1c8ea8(0x83)](this[_0x1c8ea8(0xd3)]['CollaborationStatusChanged'],_0x5d80ac);});_0x92e2ce[_0x4bb353(0xc9)]((0x0,_0x16f7fc[_0x4bb353(0xb4)])(_0x5a1456));});return _0x92e2ce['add']((0x0,_0x16f7fc[_0x445de5(0xb4)])(_0x37da96)),_0x92e2ce;}));}[_0xb49d29(0x89)](){const _0x1027a5=_0xb49d29;return this['_injector'][_0x1027a5(0xd5)](_0x15f830,{'getWorkbook':_0x4cd6ab=>this[_0x1027a5(0x75)](_0x4cd6ab),'getDocument':_0x5ddeb8=>this[_0x1027a5(0xc3)](_0x5ddeb8),'getPresentation':_0xe47905=>this[_0x1027a5(0x98)](_0xe47905),'getBase':_0x5e1b04=>this[_0x1027a5(0x8c)](_0x5e1b04),'getBoard':_0x497cd5=>this[_0x1027a5(0xd1)](_0x497cd5)});}[_0xb49d29(0xbd)](_0x4ac871,_0x477dc0,_0x4b329f){const _0x577ed6=_0xb49d29;return this[_0x577ed6(0xb9)]['get'](_0x15892a['DataLoaderService'])[_0x577ed6(0xa7)](_0x4ac871,_0x477dc0,_0x4b329f);}[_0xb49d29(0x8f)](_0x18e378,_0xe0178c,_0x2bff0e){const _0x28c641=_0xb49d29;return this['_injector'][_0x28c641(0xc8)](_0x15892a[_0x28c641(0x79)])[_0x28c641(0x7a)](_0x18e378,_0xe0178c,_0x2bff0e);}};_0x26c841[_0xb49d29(0x8d)]['extend'](_0x514769),Object[_0xb49d29(0xb1)](_0x4ca478,_0xb49d29(0xa0),{'enumerable':!0x0,'get':function(){return _0x15f830;}});}));
|