@univerjs-pro/collaboration-client 1.0.4 → 1.2.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/README.md +2 -0
- 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/config/config.d.ts +19 -0
- package/lib/types/controllers/collaboration/changeset-submitter.d.ts +132 -0
- package/lib/types/controllers/collaboration/collaboration-entity.d.ts +28 -1
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +175 -43
- package/lib/types/controllers/collaboration/collaboration.controller.d.ts +7 -0
- package/lib/types/controllers/collaboration/utils/changeset-utils.d.ts +7 -3
- package/lib/types/facade/f-collaboration.d.ts +20 -4
- package/lib/types/facade/f-event.d.ts +87 -2
- package/lib/types/index.d.ts +5 -3
- package/lib/types/services/collaboration-session/collaboration-session.d.ts +4 -8
- package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +4 -4
- package/lib/types/services/collaboration-ui-event/collaboration-ui-event.d.ts +9 -0
- package/lib/types/services/data-loader/data-loader.service.d.ts +9 -2
- package/lib/types/services/local-cache/local-cache.service.d.ts +11 -6
- package/lib/types/services/socket/collaboration-socket.service.d.ts +10 -2
- package/lib/types/services/undoredo/collaborative-undoredo.service.d.ts +5 -0
- 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 +16 -16
package/README.md
CHANGED
|
@@ -38,6 +38,8 @@ univer.registerPlugin(UniverCollaborationClientPlugin);
|
|
|
38
38
|
- Keep this package on the same version as the other `@univerjs/*` and `@univerjs-pro/*` packages in your application.
|
|
39
39
|
- Import locale files only for the languages your application enables.
|
|
40
40
|
- Use the facade entry when integrating through Univer Facade APIs.
|
|
41
|
+
- In Docs collaboration, undoing or redoing local paragraph formatting preserves collaborators' changes to other fields. This includes heading folds, alignment, indentation, spacing, tab stops, named styles, and numbering. Partial-format updates retain their authored fields, while full-paragraph replacements do not treat unchanged attributes as new edits; later collaborator changes to the same field remain in effect.
|
|
42
|
+
- Incoming mutation batches and grouped local history entries are transformed in order so preceding text edits keep paragraph history aligned. These history transformations do not change the document model, snapshot format, or collaboration protocol.
|
|
41
43
|
|
|
42
44
|
## Resources
|
|
43
45
|
|
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x52960c=_0x2cd9;(function(_0x5e00d1,_0x358af1){const _0x3f82eb=_0x2cd9,_0x577111=_0x5e00d1();while(!![]){try{const _0x545ed9=-parseInt(_0x3f82eb(0xab))/0x1*(parseInt(_0x3f82eb(0x6f))/0x2)+-parseInt(_0x3f82eb(0x91))/0x3+parseInt(_0x3f82eb(0x82))/0x4*(parseInt(_0x3f82eb(0xc4))/0x5)+-parseInt(_0x3f82eb(0xb3))/0x6*(parseInt(_0x3f82eb(0x7b))/0x7)+parseInt(_0x3f82eb(0x6d))/0x8+-parseInt(_0x3f82eb(0x73))/0x9*(-parseInt(_0x3f82eb(0x8a))/0xa)+parseInt(_0x3f82eb(0xc6))/0xb;if(_0x545ed9===_0x358af1)break;else _0x577111['push'](_0x577111['shift']());}catch(_0x1377c3){_0x577111['push'](_0x577111['shift']());}}}(_0x59d7,0x817dc),Object[_0x52960c(0xb6)](exports,Symbol['toStringTag'],{'value':'Module'}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core/facade'),n=require('@univerjs/core'),r=require('@univerjs-pro/collaboration'),i=require('rxjs');var a=class extends t['FEnum']{get[_0x52960c(0x9a)](){return e['CollaborationStatus'];}};t[_0x52960c(0x97)][_0x52960c(0xb0)](a);function _0x2cd9(_0x3c9aad,_0x2dc581){_0x3c9aad=_0x3c9aad-0x6c;const _0x59d7a3=_0x59d7();let _0x2cd9c7=_0x59d7a3[_0x3c9aad];return _0x2cd9c7;}var o=class extends t[_0x52960c(0xa8)]{get[_0x52960c(0x7e)](){const _0x283759=_0x52960c;return _0x283759(0x7e);}};t[_0x52960c(0xa8)]['extend'](o);function s(_0x286661,_0x3e98f3){return function(_0x1b86dd,_0x132a04){_0x3e98f3(_0x1b86dd,_0x132a04,_0x286661);};}function c(_0x5d4e2a,_0xa1ed03,_0x3e9015,_0x3afa84){const _0x193cee=_0x52960c;var _0x24cdec=arguments[_0x193cee(0x85)],_0x5b9435=_0x24cdec<0x3?_0xa1ed03:_0x3afa84===null?_0x3afa84=Object[_0x193cee(0xa9)](_0xa1ed03,_0x3e9015):_0x3afa84,_0x35bb55;if(typeof Reflect==_0x193cee(0x79)&&typeof Reflect[_0x193cee(0x72)]==_0x193cee(0xbb))_0x5b9435=Reflect['decorate'](_0x5d4e2a,_0xa1ed03,_0x3e9015,_0x3afa84);else{for(var _0x3cf18e=_0x5d4e2a[_0x193cee(0x85)]-0x1;_0x3cf18e>=0x0;_0x3cf18e--)(_0x35bb55=_0x5d4e2a[_0x3cf18e])&&(_0x5b9435=(_0x24cdec<0x3?_0x35bb55(_0x5b9435):_0x24cdec>0x3?_0x35bb55(_0xa1ed03,_0x3e9015,_0x5b9435):_0x35bb55(_0xa1ed03,_0x3e9015))||_0x5b9435);}return _0x24cdec>0x3&&_0x5b9435&&Object['defineProperty'](_0xa1ed03,_0x3e9015,_0x5b9435),_0x5b9435;}function _0x59d7(){const _0x46601d=['3Qanxmw','createInstance','DataLoaderService','loadServerUnit','loadDoc','extend','_resolveUnitId','\x22\x20after\x20','3678RlxWBF','getCollaborationStatus','state','defineProperty','add','waitForRoom$','NOT_COLLAB','getFocusedUnit','function','loadSheet','flush','getBase','loadBase','FUniver','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','Inject','get','5505iVqrjx','loadUnit','11311608kXKNuF','members$','IUniverInstanceService','1722504VCQxod','_collaborationController','109042FnpNqt','registerEventHandler','getCollaboration','decorate','9oJKZPb','getBoard','loadBoardAsync','_snapshotService','_univerInstanceService','getCollabEntity','object','status','3206YtmNhS','getPdf','disposeWithMe','CollaborationStatusChanged','getPresentation','loadPdf','getWorkbook','4JiSkQw','FCollaboration','resolve','length','CONFLICT','reject','loadPdfAsync','_initialize','1514860PIfeKp','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','loadSlide','readyForCollab','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','status$','_handler','1264545UrVznd','CollaborationController','FBase','\x22\x20while\x20collaboration\x20status\x20is\x20','getUnitId','_injector','FEnum','SYNCED','MemberService','CollaborationStatus','from','subscribe','DisposableCollection','unitID','toDisposable','values','loadBaseAsync','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','Event','loadSheetAsync','fireEvent','entityInit$','getDocument','FEventName','getOwnPropertyDescriptor','ms.'];_0x59d7=function(){return _0x46601d;};return _0x59d7();}let l=class extends t[_0x52960c(0x93)]{constructor(_0x5e0677,_0x2c50c8,_0x157bf5,_0x394301,_0x581ec8){const _0x14adc9=_0x52960c;super(),this[_0x14adc9(0x90)]=_0x5e0677,this[_0x14adc9(0x96)]=_0x2c50c8,this['_univerInstanceService']=_0x157bf5,this[_0x14adc9(0x76)]=_0x394301,this[_0x14adc9(0x6e)]=_0x581ec8;}async[_0x52960c(0xa4)](_0x5bb48a,_0x2e88dd){const _0x4d7192=_0x52960c;return await this['_snapshotService'][_0x4d7192(0xbc)](_0x5bb48a,0x0,_0x2e88dd)?(await this[_0x4d7192(0x6e)][_0x4d7192(0x8d)](_0x5bb48a),this['_handler'][_0x4d7192(0x81)](_0x5bb48a)):null;}async['loadDocAsync'](_0x1e199e,_0x5196f7){const _0x3e91ef=_0x52960c;return await this[_0x3e91ef(0x76)][_0x3e91ef(0xaf)](_0x1e199e,0x0,_0x5196f7)?(await this['_collaborationController'][_0x3e91ef(0x8d)](_0x1e199e),this[_0x3e91ef(0x90)][_0x3e91ef(0xa7)](_0x1e199e)):null;}async[_0x52960c(0xa1)](_0x5774fd,_0x2567c4){const _0x1d8c84=_0x52960c;return await this[_0x1d8c84(0x76)][_0x1d8c84(0xbf)](_0x5774fd,0x0,_0x2567c4)?(await this[_0x1d8c84(0x6e)]['readyForCollab'](_0x5774fd),this[_0x1d8c84(0x90)][_0x1d8c84(0xbe)](_0x5774fd)):null;}async['loadSlideAsync'](_0x37b2ba,_0x2f5b36){const _0x404097=_0x52960c;return await this[_0x404097(0x76)][_0x404097(0x8c)](_0x37b2ba,0x0,_0x2f5b36)?(await this['_collaborationController']['readyForCollab'](_0x37b2ba),this['_handler'][_0x404097(0x7f)](_0x37b2ba)):null;}async[_0x52960c(0x75)](_0x4ee099,_0x393d73){const _0x1f71b1=_0x52960c;return await this['_snapshotService']['loadBoard'](_0x4ee099,0x0,_0x393d73)?(await this[_0x1f71b1(0x6e)][_0x1f71b1(0x8d)](_0x4ee099),this[_0x1f71b1(0x90)][_0x1f71b1(0x74)](_0x4ee099)):null;}async[_0x52960c(0x88)](_0x33f89c,_0x41aaf5){const _0x112ae4=_0x52960c;return await this[_0x112ae4(0x76)][_0x112ae4(0x80)](_0x33f89c,0x0,_0x41aaf5)?(await this[_0x112ae4(0x6e)][_0x112ae4(0x8d)](_0x33f89c),this['_handler'][_0x112ae4(0x7c)](_0x33f89c)):null;}['subscribeCollaborators'](_0x58c062,_0x9bb889){const _0x1bafce=_0x52960c;let _0x3ead7a=this[_0x1bafce(0x96)][_0x1bafce(0xc3)](e[_0x1bafce(0x99)])[_0x1bafce(0xb8)](_0x58c062)['pipe']((0x0,i['switchMap'])(_0x5e60e1=>_0x5e60e1[_0x1bafce(0xc7)]))[_0x1bafce(0x9c)](_0x4279b4=>_0x9bb889(Array[_0x1bafce(0x9b)](_0x4279b4[_0x1bafce(0xa0)]())));return(0x0,n[_0x1bafce(0x9f)])(_0x3ead7a);}[_0x52960c(0xb4)](_0xfcc0a1){const _0x3bfca6=_0x52960c;let _0x523e7c=this['_resolveUnitId'](_0xfcc0a1);if(!_0x523e7c)return e['CollaborationStatus'][_0x3bfca6(0xb9)];let _0x2ece83=this['_collaborationController'][_0x3bfca6(0x78)](_0x523e7c);return(_0x2ece83==null?void 0x0:_0x2ece83[_0x3bfca6(0xb5)]['status'])??e[_0x3bfca6(0x9a)]['NOT_COLLAB'];}[_0x52960c(0xbd)](_0x51c3e1,_0x1f80a0={}){const _0x19e132=_0x52960c;let _0x145d73=this[_0x19e132(0xb1)](_0x51c3e1);if(!_0x145d73)return Promise[_0x19e132(0x87)](Error(_0x19e132(0x8e)));let _0x59f198=this[_0x19e132(0x6e)]['getCollabEntity'](_0x145d73);if(!_0x59f198)return Promise[_0x19e132(0x87)](Error('[FCollaboration]:\x20Unit\x20\x22'+_0x145d73+_0x19e132(0xc1)));let _0xf3182e=_0x59f198['state'][_0x19e132(0x7a)];if(_0xf3182e===e['CollaborationStatus']['SYNCED'])return Promise[_0x19e132(0x84)]();let _0x1ac7c6=u(_0x145d73,_0xf3182e);if(_0x1ac7c6)return Promise[_0x19e132(0x87)](_0x1ac7c6);let _0x2ac1f9=_0x1f80a0['timeout']??0x7530;return new Promise((_0x47f64a,_0x1f91ff)=>{const _0x4d2edd=_0x19e132;let _0x5cb301=!0x1,_0x5eefb2=null,_0x3a52cb=setTimeout(()=>{const _0x36b149=_0x2cd9;_0x5cb301=!0x0,_0x5eefb2==null||_0x5eefb2['unsubscribe'](),_0x1f91ff(Error(_0x36b149(0xa2)+_0x145d73+_0x36b149(0xb2)+_0x2ac1f9+_0x36b149(0xaa)));},_0x2ac1f9),_0x4fe44f=()=>{_0x5cb301=!0x0,clearTimeout(_0x3a52cb),_0x5eefb2==null||_0x5eefb2['unsubscribe']();};_0x5eefb2=_0x59f198[_0x4d2edd(0x8f)][_0x4d2edd(0x9c)](_0x44da8f=>{const _0x330278=_0x4d2edd;if(_0x5cb301)return;if(_0x44da8f===e[_0x330278(0x9a)][_0x330278(0x98)]){_0x4fe44f(),_0x47f64a();return;}let _0x3fc13d=u(_0x145d73,_0x44da8f);_0x3fc13d&&(_0x4fe44f(),_0x1f91ff(_0x3fc13d));});});}['_resolveUnitId'](_0xae7d){const _0x51453=_0x52960c;var _0x2e77b0;return _0xae7d||((_0x2e77b0=this[_0x51453(0x77)][_0x51453(0xba)]())==null?void 0x0:_0x2e77b0[_0x51453(0x95)]());}};l=c([s(0x1,(0x0,n[_0x52960c(0xc2)])(n['Injector'])),s(0x2,n[_0x52960c(0x6c)]),s(0x3,(0x0,n['Inject'])(r['SnapshotService'])),s(0x4,(0x0,n[_0x52960c(0xc2)])(e['CollaborationController']))],l);function u(_0x11f9ca,_0x4d1a1f){const _0x888fab=_0x52960c;return _0x4d1a1f===e[_0x888fab(0x9a)][_0x888fab(0x86)]||_0x4d1a1f===e['CollaborationStatus'][_0x888fab(0xb9)]?Error(_0x888fab(0x8b)+_0x11f9ca+_0x888fab(0x94)+_0x4d1a1f+'.'):null;}var d=class extends t[_0x52960c(0xc0)]{[_0x52960c(0x89)](_0x3c85ed){const _0x5d02d6=_0x52960c;let _0x13c34c=_0x3c85ed[_0x5d02d6(0xc3)](e[_0x5d02d6(0x92)]);this[_0x5d02d6(0x7d)](this[_0x5d02d6(0x70)](this[_0x5d02d6(0xa3)][_0x5d02d6(0x7e)],()=>{const _0x1e7626=_0x5d02d6;let _0x14bf04=new n[(_0x1e7626(0x9d))](),_0x5df4ba=_0x13c34c[_0x1e7626(0xa6)]['subscribe'](_0x296f77=>{const _0x2c81bf=_0x1e7626;let _0x3f5cc0=_0x296f77[_0x2c81bf(0x8f)][_0x2c81bf(0x9c)](_0x3bc668=>{const _0x407377=_0x2c81bf;let _0x15a144={'unitId':_0x296f77[_0x407377(0x9e)],'status':_0x3bc668};this[_0x407377(0xa5)](this['Event'][_0x407377(0x7e)],_0x15a144);});_0x14bf04[_0x2c81bf(0xb7)]((0x0,n[_0x2c81bf(0x9f)])(_0x3f5cc0));});return _0x14bf04[_0x1e7626(0xb7)]((0x0,n[_0x1e7626(0x9f)])(_0x5df4ba)),_0x14bf04;}));}[_0x52960c(0x71)](){const _0x59eec0=_0x52960c;return this[_0x59eec0(0x96)][_0x59eec0(0xac)](l,{'getWorkbook':_0x67cc53=>this['getWorkbook'](_0x67cc53),'getDocument':_0x34dd58=>this[_0x59eec0(0xa7)](_0x34dd58),'getPresentation':_0x5af9e0=>this[_0x59eec0(0x7f)](_0x5af9e0),'getBase':_0x1ee5ac=>this['getBase'](_0x1ee5ac),'getBoard':_0x1aeaaa=>this[_0x59eec0(0x74)](_0x1aeaaa),'getPdf':_0x493a39=>this[_0x59eec0(0x7c)](_0x493a39)});}[_0x52960c(0xae)](_0x28020b,_0x40741a,_0x142051){const _0x5dab2c=_0x52960c;return this[_0x5dab2c(0x96)][_0x5dab2c(0xc3)](e[_0x5dab2c(0xad)])[_0x5dab2c(0xc5)](_0x28020b,_0x40741a,_0x142051);}['loadServerUnitOfRevision'](_0x48ee69,_0x3b3213,_0x44d6a9){const _0x160f83=_0x52960c;return this[_0x160f83(0x96)][_0x160f83(0xc3)](e['DataLoaderService'])['loadUnitOfRevision'](_0x48ee69,_0x3b3213,_0x44d6a9);}};t[_0x52960c(0xc0)][_0x52960c(0xb0)](d),Object['defineProperty'](exports,_0x52960c(0x83),{'enumerable':!0x0,'get':function(){return l;}});
|
|
1
|
+
const _0x833588=_0x4575;function _0x4575(_0x10c83,_0x4d088c){_0x10c83=_0x10c83-0x111;const _0x1b12a5=_0x1b12();let _0x4575e1=_0x1b12a5[_0x10c83];return _0x4575e1;}(function(_0x4dd8f4,_0x4a83b3){const _0x2d2a09=_0x4575,_0x507990=_0x4dd8f4();while(!![]){try{const _0x4cf9d2=-parseInt(_0x2d2a09(0x166))/0x1+parseInt(_0x2d2a09(0x115))/0x2+-parseInt(_0x2d2a09(0x13a))/0x3*(parseInt(_0x2d2a09(0x173))/0x4)+parseInt(_0x2d2a09(0x178))/0x5*(-parseInt(_0x2d2a09(0x15a))/0x6)+-parseInt(_0x2d2a09(0x17e))/0x7*(-parseInt(_0x2d2a09(0x113))/0x8)+parseInt(_0x2d2a09(0x13d))/0x9*(parseInt(_0x2d2a09(0x138))/0xa)+parseInt(_0x2d2a09(0x179))/0xb;if(_0x4cf9d2===_0x4a83b3)break;else _0x507990['push'](_0x507990['shift']());}catch(_0x3bb090){_0x507990['push'](_0x507990['shift']());}}}(_0x1b12,0x49742),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x833588(0x17a)}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core/facade'),n=require('@univerjs/core'),r=require('rxjs');var i=class extends t['FEnum']{get['CollaborationStatus'](){const _0x4bfc83=_0x833588;return e[_0x4bfc83(0x145)];}};t['FEnum']['extend'](i);var a=class extends t['FEventName']{get[_0x833588(0x17d)](){const _0x148eef=_0x833588;return _0x148eef(0x17d);}get[_0x833588(0x12c)](){const _0x3bea3d=_0x833588;return _0x3bea3d(0x12c);}get[_0x833588(0x17c)](){const _0x51e52e=_0x833588;return _0x51e52e(0x17c);}};t[_0x833588(0x15d)][_0x833588(0x137)](a);function o(_0x5cb02c,_0x47b3dc){return function(_0x24f1aa,_0x5a8043){_0x47b3dc(_0x24f1aa,_0x5a8043,_0x5cb02c);};}function s(_0x5b1c90,_0x45876c,_0x3bbc17,_0x2e10bd){const _0x5b71ae=_0x833588;var _0x109623=arguments[_0x5b71ae(0x156)],_0xd110ff=_0x109623<0x3?_0x45876c:_0x2e10bd===null?_0x2e10bd=Object[_0x5b71ae(0x150)](_0x45876c,_0x3bbc17):_0x2e10bd,_0x48524d;if(typeof Reflect==_0x5b71ae(0x175)&&typeof Reflect['decorate']==_0x5b71ae(0x11e))_0xd110ff=Reflect[_0x5b71ae(0x123)](_0x5b1c90,_0x45876c,_0x3bbc17,_0x2e10bd);else{for(var _0x1ae740=_0x5b1c90['length']-0x1;_0x1ae740>=0x0;_0x1ae740--)(_0x48524d=_0x5b1c90[_0x1ae740])&&(_0xd110ff=(_0x109623<0x3?_0x48524d(_0xd110ff):_0x109623>0x3?_0x48524d(_0x45876c,_0x3bbc17,_0xd110ff):_0x48524d(_0x45876c,_0x3bbc17))||_0xd110ff);}return _0x109623>0x3&&_0xd110ff&&Object['defineProperty'](_0x45876c,_0x3bbc17,_0xd110ff),_0xd110ff;}let c=class extends t['FBase']{constructor(_0xde9355,_0x542892,_0x5d361f,_0x281f55,_0x434c4b){const _0x57a8b2=_0x833588;super(),this[_0x57a8b2(0x132)]=_0xde9355,this[_0x57a8b2(0x117)]=_0x542892,this[_0x57a8b2(0x13e)]=_0x5d361f,this[_0x57a8b2(0x114)]=_0x281f55,this[_0x57a8b2(0x14c)]=_0x434c4b;}async[_0x833588(0x12b)](_0x4084bf,_0x224529){const _0x4cc8cd=_0x833588;return await this['_dataLoaderService'][_0x4cc8cd(0x135)](_0x4084bf,n[_0x4cc8cd(0x130)][_0x4cc8cd(0x118)],void 0x0,_0x224529)?(await this[_0x4cc8cd(0x14c)][_0x4cc8cd(0x119)](_0x4084bf),this[_0x4cc8cd(0x132)][_0x4cc8cd(0x16f)](_0x4084bf)):null;}async[_0x833588(0x128)](_0x1772a3,_0x9011dd){const _0x272b19=_0x833588;return await this['_dataLoaderService'][_0x272b19(0x135)](_0x1772a3,n[_0x272b19(0x130)][_0x272b19(0x14d)],void 0x0,_0x9011dd)?(await this[_0x272b19(0x14c)][_0x272b19(0x119)](_0x1772a3),this[_0x272b19(0x132)][_0x272b19(0x111)](_0x1772a3)):null;}async[_0x833588(0x155)](_0x2839f5,_0x5a26fc){const _0x11a707=_0x833588;return await this['_dataLoaderService'][_0x11a707(0x135)](_0x2839f5,n[_0x11a707(0x130)]['UNIVER_BASE'],void 0x0,_0x5a26fc)?(await this[_0x11a707(0x14c)]['readyForCollab'](_0x2839f5),this[_0x11a707(0x132)][_0x11a707(0x116)](_0x2839f5)):null;}async['loadSlideAsync'](_0x366b48,_0x5883c8){const _0x3971fa=_0x833588;return await this[_0x3971fa(0x114)][_0x3971fa(0x135)](_0x366b48,n[_0x3971fa(0x130)][_0x3971fa(0x122)],void 0x0,_0x5883c8)?(await this['_collaborationController'][_0x3971fa(0x119)](_0x366b48),this[_0x3971fa(0x132)][_0x3971fa(0x160)](_0x366b48)):null;}async[_0x833588(0x141)](_0x518548,_0x3741c6){const _0x4e0856=_0x833588;return await this[_0x4e0856(0x114)][_0x4e0856(0x135)](_0x518548,n['UniverInstanceType'][_0x4e0856(0x148)],void 0x0,_0x3741c6)?(await this['_collaborationController']['readyForCollab'](_0x518548),this['_handler'][_0x4e0856(0x171)](_0x518548)):null;}async[_0x833588(0x149)](_0xd482d,_0x262007){const _0x35925c=_0x833588;return await this[_0x35925c(0x114)][_0x35925c(0x135)](_0xd482d,n[_0x35925c(0x130)][_0x35925c(0x169)],void 0x0,_0x262007)?(await this[_0x35925c(0x14c)][_0x35925c(0x119)](_0xd482d),this[_0x35925c(0x132)][_0x35925c(0x13c)](_0xd482d)):null;}[_0x833588(0x159)](_0x104557,_0xcc29d6){const _0x59d040=_0x833588;let _0x3b21cb=this[_0x59d040(0x117)]['get'](e[_0x59d040(0x146)])[_0x59d040(0x124)](_0x104557)[_0x59d040(0x142)]((0x0,r[_0x59d040(0x12e)])(_0x1bd9cb=>_0x1bd9cb[_0x59d040(0x11a)]))[_0x59d040(0x129)](_0x56be0c=>_0xcc29d6(Array[_0x59d040(0x17f)](_0x56be0c[_0x59d040(0x121)]())));return(0x0,n['toDisposable'])(_0x3b21cb);}[_0x833588(0x176)](_0x32419e){const _0x4f0a4a=_0x833588;let _0x59c354=this[_0x4f0a4a(0x16a)](_0x32419e);if(!_0x59c354)return e[_0x4f0a4a(0x145)][_0x4f0a4a(0x17b)];let _0x78af48=this[_0x4f0a4a(0x14c)]['getCollabEntity'](_0x59c354);return(_0x78af48==null?void 0x0:_0x78af48[_0x4f0a4a(0x139)][_0x4f0a4a(0x14e)])??e[_0x4f0a4a(0x145)][_0x4f0a4a(0x17b)];}['hasWritePending'](_0x5d87bc){const _0x35d25b=_0x833588;let _0x3e1973=this[_0x35d25b(0x16a)](_0x5d87bc);return _0x3e1973?this['_collaborationController'][_0x35d25b(0x172)](_0x3e1973):!0x1;}[_0x833588(0x143)](_0x3b086d,_0xde1fe6={}){const _0x11a094=_0x833588;let _0x193866=this[_0x11a094(0x16a)](_0x3b086d);if(!_0x193866)return Promise['reject'](Error(_0x11a094(0x14b)));let _0x20a98f=this[_0x11a094(0x14c)][_0x11a094(0x120)](_0x193866);if(!_0x20a98f)return Promise[_0x11a094(0x13b)](Error('[FCollaboration]:\x20Unit\x20\x22'+_0x193866+'\x22\x20is\x20not\x20in\x20collaboration\x20mode.'));let _0x2f61f2=_0x20a98f[_0x11a094(0x139)][_0x11a094(0x14e)];if(_0x2f61f2===e[_0x11a094(0x145)]['SYNCED'])return Promise[_0x11a094(0x134)]();let _0x3523ff=l(_0x193866,_0x2f61f2);if(_0x3523ff)return Promise['reject'](_0x3523ff);let _0x10b1af=_0xde1fe6[_0x11a094(0x12a)]??0x7530;return new Promise((_0x3f8eb2,_0x3f9994)=>{const _0x3e7ed2=_0x11a094;let _0x35aea2=!0x1,_0x2d66f6=null,_0xda4ba8=setTimeout(()=>{const _0x39615e=_0x4575;_0x35aea2=!0x0,_0x2d66f6==null||_0x2d66f6[_0x39615e(0x16b)](),_0x3f9994(Error(_0x39615e(0x12f)+_0x193866+_0x39615e(0x16c)+_0x10b1af+_0x39615e(0x13f)));},_0x10b1af),_0x1f3866=()=>{_0x35aea2=!0x0,clearTimeout(_0xda4ba8),_0x2d66f6==null||_0x2d66f6['unsubscribe']();};_0x2d66f6=_0x20a98f[_0x3e7ed2(0x15f)]['subscribe'](_0x381892=>{const _0xc679cb=_0x3e7ed2;if(_0x35aea2)return;if(_0x381892===e[_0xc679cb(0x145)][_0xc679cb(0x16e)]){_0x1f3866(),_0x3f8eb2();return;}let _0x2e0fff=l(_0x193866,_0x381892);_0x2e0fff&&(_0x1f3866(),_0x3f9994(_0x2e0fff));});});}['_resolveUnitId'](_0x3bb5ef){const _0x326773=_0x833588;var _0x1110ef;return _0x3bb5ef||((_0x1110ef=this[_0x326773(0x13e)]['getFocusedUnit']())==null?void 0x0:_0x1110ef[_0x326773(0x177)]());}};c=s([o(0x1,(0x0,n[_0x833588(0x126)])(n[_0x833588(0x15e)])),o(0x2,n[_0x833588(0x174)]),o(0x3,(0x0,n[_0x833588(0x126)])(e['DataLoaderService'])),o(0x4,(0x0,n[_0x833588(0x126)])(e[_0x833588(0x127)]))],c);function l(_0x4dc2b5,_0x540979){const _0x2ffb1d=_0x833588;return _0x540979===e['CollaborationStatus']['CONFLICT']||_0x540979===e[_0x2ffb1d(0x145)]['NOT_COLLAB']?Error(_0x2ffb1d(0x140)+_0x4dc2b5+_0x2ffb1d(0x168)+_0x540979+'.'):null;}function _0x1b12(){const _0x430182=['loadBaseAsync','length','revert','attempt','subscribeCollaborators','8772OmmonG','get','fireEvent','FEventName','Injector','status$','getPresentation','FCollaboration','cacheCleared','entityInit$','DisposableCollection','add','117221lCOHLy','changesetResend$','\x22\x20while\x20collaboration\x20status\x20is\x20','UNIVER_PDF','_resolveUnitId','unsubscribe','\x22\x20after\x20','loadServerUnitOfRevision','SYNCED','getWorkbook','nextDelayMs','getBoard','hasWritePending','169804swdcsi','IUniverInstanceService','object','getCollaborationStatus','getUnitId','1565anWpmu','12254561KNDfKh','Module','NOT_COLLAB','CollaborationChangesetResend','CollaborationStatusChanged','9401PzuilR','from','unitID','getDocument','unsyncedMutationCount','1408xZAecR','_dataLoaderService','29670NVHiSa','getBase','_injector','UNIVER_SHEET','readyForCollab','members$','distinctUntilChanged','message','loadServerUnit','function','disposeWithMe','getCollabEntity','values','UNIVER_SLIDE','decorate','waitForRoom$','reason','Inject','CollaborationController','loadDocAsync','subscribe','timeout','loadSheetAsync','CollaborationConflict','conflict$','switchMap','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','UniverInstanceType','toDisposable','_handler','registerEventHandler','resolve','loadUnit','_initialize','extend','311510FAEdvB','state','39duEspZ','reject','getPdf','18wBfpcI','_univerInstanceService','ms.','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','loadBoardAsync','pipe','flush','DataLoaderService','CollaborationStatus','MemberService','forEach','UNIVER_BOARD','loadPdfAsync','localChanges','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','_collaborationController','UNIVER_DOC','status','getCollaboration','getOwnPropertyDescriptor','Event','defineProperty','getCollabEntities','loadUnitOfRevision'];_0x1b12=function(){return _0x430182;};return _0x1b12();}var u=class extends t['FUniver']{[_0x833588(0x136)](_0x1d08b5){const _0x599946=_0x833588;let _0x4facdd=_0x1d08b5[_0x599946(0x15b)](e[_0x599946(0x127)]);this[_0x599946(0x11f)](this[_0x599946(0x133)](this[_0x599946(0x151)][_0x599946(0x17d)],()=>{const _0x48412f=_0x599946;let _0x50a335=new n[(_0x48412f(0x164))](),_0xca10a7=_0x23f9e0=>{const _0xc0cb98=_0x48412f;let _0x13c10a=_0x23f9e0['status$'][_0xc0cb98(0x142)]((0x0,r[_0xc0cb98(0x11b)])())[_0xc0cb98(0x129)](_0x5df87b=>{const _0x41f332=_0xc0cb98;let _0x5f1f14={'unitId':_0x23f9e0[_0x41f332(0x180)],'status':_0x5df87b};this[_0x41f332(0x15c)](this[_0x41f332(0x151)][_0x41f332(0x17d)],_0x5f1f14);});_0x50a335['add']((0x0,n[_0xc0cb98(0x131)])(_0x13c10a));};return _0x4facdd[_0x48412f(0x153)]()[_0x48412f(0x147)](_0xca10a7),_0x50a335[_0x48412f(0x165)]((0x0,n[_0x48412f(0x131)])(_0x4facdd[_0x48412f(0x163)]['subscribe'](_0xca10a7))),_0x50a335;})),this['disposeWithMe'](this[_0x599946(0x133)](this[_0x599946(0x151)][_0x599946(0x12c)],()=>{const _0x147f23=_0x599946;let _0x2ce997=new n[(_0x147f23(0x164))](),_0x2ce695=_0x2d9e74=>{const _0x528f45=_0x147f23;let _0x271337=_0x2d9e74[_0x528f45(0x12d)][_0x528f45(0x129)](_0x69062e=>{const _0x23db59=_0x528f45;let _0x157a89={'unitId':_0x69062e[_0x23db59(0x180)],'reason':_0x69062e[_0x23db59(0x125)],'message':_0x69062e[_0x23db59(0x11c)],'revert':_0x69062e[_0x23db59(0x157)],'localChanges':_0x69062e[_0x23db59(0x14a)],'cacheCleared':_0x69062e[_0x23db59(0x162)]};this[_0x23db59(0x15c)](this[_0x23db59(0x151)][_0x23db59(0x12c)],_0x157a89);});_0x2ce997[_0x528f45(0x165)]((0x0,n[_0x528f45(0x131)])(_0x271337));};return _0x4facdd[_0x147f23(0x153)]()[_0x147f23(0x147)](_0x2ce695),_0x2ce997[_0x147f23(0x165)]((0x0,n['toDisposable'])(_0x4facdd[_0x147f23(0x163)][_0x147f23(0x129)](_0x2ce695))),_0x2ce997;})),this[_0x599946(0x11f)](this[_0x599946(0x133)](this[_0x599946(0x151)][_0x599946(0x17c)],()=>{const _0x33a57a=_0x599946;let _0x2e7f23=new n['DisposableCollection'](),_0xbbd475=_0x1467a8=>{const _0x245d4c=_0x4575;let _0x557c9e=_0x1467a8[_0x245d4c(0x167)][_0x245d4c(0x129)](_0x12faca=>{const _0x2af9c2=_0x245d4c;let _0x2d744c={'unitId':_0x12faca[_0x2af9c2(0x180)],'reqId':_0x12faca['reqId'],'reason':_0x12faca[_0x2af9c2(0x125)],'attempt':_0x12faca[_0x2af9c2(0x158)],'elapsedMs':_0x12faca['elapsedMs'],'unsyncedMutationCount':_0x12faca[_0x2af9c2(0x112)],'nextDelayMs':_0x12faca[_0x2af9c2(0x170)]};this[_0x2af9c2(0x15c)](this[_0x2af9c2(0x151)]['CollaborationChangesetResend'],_0x2d744c);});_0x2e7f23[_0x245d4c(0x165)]((0x0,n['toDisposable'])(_0x557c9e));};return _0x4facdd[_0x33a57a(0x153)]()[_0x33a57a(0x147)](_0xbbd475),_0x2e7f23['add']((0x0,n[_0x33a57a(0x131)])(_0x4facdd[_0x33a57a(0x163)][_0x33a57a(0x129)](_0xbbd475))),_0x2e7f23;}));}[_0x833588(0x14f)](){const _0x41aa25=_0x833588;return this['_injector']['createInstance'](c,{'getWorkbook':_0x5a8ef6=>this[_0x41aa25(0x16f)](_0x5a8ef6),'getDocument':_0x55c394=>this[_0x41aa25(0x111)](_0x55c394),'getPresentation':_0x382800=>this['getPresentation'](_0x382800),'getBase':_0x1111d9=>this[_0x41aa25(0x116)](_0x1111d9),'getBoard':_0x4d3ff8=>this[_0x41aa25(0x171)](_0x4d3ff8),'getPdf':_0x22faf4=>this['getPdf'](_0x22faf4)});}[_0x833588(0x11d)](_0x3b7f1e,_0x3c1f5a,_0x478236){const _0x4d272c=_0x833588;return this[_0x4d272c(0x117)][_0x4d272c(0x15b)](e[_0x4d272c(0x144)])['loadUnit'](_0x3b7f1e,_0x3c1f5a,_0x478236);}[_0x833588(0x16d)](_0x44403e,_0x21c70b,_0x3127c0){const _0x1ce8cb=_0x833588;return this[_0x1ce8cb(0x117)][_0x1ce8cb(0x15b)](e[_0x1ce8cb(0x144)])[_0x1ce8cb(0x154)](_0x44403e,_0x21c70b,_0x3127c0);}};t['FUniver'][_0x833588(0x137)](u),Object[_0x833588(0x152)](exports,_0x833588(0x161),{'enumerable':!0x0,'get':function(){return c;}});
|