@univerjs-pro/collaboration-client 1.0.0-rc.0 → 1.0.1
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/config/config.d.ts +0 -12
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +2 -1
- package/lib/types/services/collaboration-ui-event/collaboration-ui-event.d.ts +3 -0
- package/lib/types/services/local-cache/local-cache.service.d.ts +1 -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/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x26da58=_0x1bc1;(function(_0x59c408,_0x2fa6bf){const _0xb07519=_0x1bc1,_0x3207a4=_0x59c408();while(!![]){try{const _0x323ba2=-parseInt(_0xb07519(0x190))/0x1+-parseInt(_0xb07519(0x18c))/0x2*(-parseInt(_0xb07519(0x1b5))/0x3)+parseInt(_0xb07519(0x19f))/0x4*(parseInt(_0xb07519(0x19e))/0x5)+parseInt(_0xb07519(0x1d7))/0x6+parseInt(_0xb07519(0x1d2))/0x7+parseInt(_0xb07519(0x1b8))/0x8+-parseInt(_0xb07519(0x1c0))/0x9;if(_0x323ba2===_0x2fa6bf)break;else _0x3207a4['push'](_0x3207a4['shift']());}catch(_0x252871){_0x3207a4['push'](_0x3207a4['shift']());}}}(_0x293e,0xb2cbf),Object['defineProperty'](exports,Symbol[_0x26da58(0x1d1)],{'value':_0x26da58(0x1bf)}));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[_0x26da58(0x1d3)](){const _0x37477a=_0x26da58;return e[_0x37477a(0x1d3)];}};function _0x293e(){const _0x538660=['FEventName','_handler','DataLoaderService','\x22\x20while\x20collaboration\x20status\x20is\x20','NOT_COLLAB','loadPdf','subscribeCollaborators','status$','FUniver','loadSlideAsync','getCollabEntity','CollaborationController','length','loadUnit','defineProperty','pipe','loadSlide','_snapshotService','ms.','loadBase','switchMap','405051hIvLNR','FEnum','getBoard','1649664Axhnzf','_injector','getUnitId','SnapshotService','Injector','getWorkbook','values','Module','1824273kfVjGU','unsubscribe','members$','extend','\x22\x20after\x20','loadPdfAsync','createInstance','resolve','_resolveUnitId','unitID','object','getDocument','toDisposable','timeout','_collaborationController','reject','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','toStringTag','2243444jzdwpe','CollaborationStatus','from','status','[FCollaboration]:\x20Unit\x20\x22','966402ejCrpr','CollaborationStatusChanged','function','registerEventHandler','loadBaseAsync','_univerInstanceService','SYNCED','loadDocAsync','entityInit$','loadBoardAsync','loadUnitOfRevision','readyForCollab','CONFLICT','state','get','getFocusedUnit','waitForRoom$','getCollaborationStatus','10QDMbYk','loadDoc','MemberService','Inject','797122rXpKmc','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','getOwnPropertyDescriptor','disposeWithMe','getPresentation','_initialize','decorate','loadBoard','getCollaboration','subscribe','getPdf','add','Event','IUniverInstanceService','15UumMCL','492424jPbSZH'];_0x293e=function(){return _0x538660;};return _0x293e();}t[_0x26da58(0x1b6)][_0x26da58(0x1c3)](a);var o=class extends t[_0x26da58(0x1a0)]{get['CollaborationStatusChanged'](){const _0x25d2d2=_0x26da58;return _0x25d2d2(0x1d8);}};t[_0x26da58(0x1a0)][_0x26da58(0x1c3)](o);function s(_0x5225bb,_0x5aef90){return function(_0x159928,_0x3673e2){_0x5aef90(_0x159928,_0x3673e2,_0x5225bb);};}function _0x1bc1(_0x283a3a,_0x50aefc){_0x283a3a=_0x283a3a-0x186;const _0x293eca=_0x293e();let _0x1bc104=_0x293eca[_0x283a3a];return _0x1bc104;}function c(_0x4b3ee9,_0x36c828,_0x491b33,_0x4574d4){const _0x4f4b7c=_0x26da58;var _0x3bd306=arguments['length'],_0x4fdad6=_0x3bd306<0x3?_0x36c828:_0x4574d4===null?_0x4574d4=Object[_0x4f4b7c(0x192)](_0x36c828,_0x491b33):_0x4574d4,_0x1154de;if(typeof Reflect==_0x4f4b7c(0x1ca)&&typeof Reflect[_0x4f4b7c(0x196)]==_0x4f4b7c(0x1d9))_0x4fdad6=Reflect[_0x4f4b7c(0x196)](_0x4b3ee9,_0x36c828,_0x491b33,_0x4574d4);else{for(var _0x545347=_0x4b3ee9[_0x4f4b7c(0x1ac)]-0x1;_0x545347>=0x0;_0x545347--)(_0x1154de=_0x4b3ee9[_0x545347])&&(_0x4fdad6=(_0x3bd306<0x3?_0x1154de(_0x4fdad6):_0x3bd306>0x3?_0x1154de(_0x36c828,_0x491b33,_0x4fdad6):_0x1154de(_0x36c828,_0x491b33))||_0x4fdad6);}return _0x3bd306>0x3&&_0x4fdad6&&Object['defineProperty'](_0x36c828,_0x491b33,_0x4fdad6),_0x4fdad6;}let l=class extends t['FBase']{constructor(_0x37e734,_0x2ac7e6,_0x322c67,_0x208d5e,_0x5c445b){const _0x3e77b0=_0x26da58;super(),this['_handler']=_0x37e734,this[_0x3e77b0(0x1b9)]=_0x2ac7e6,this[_0x3e77b0(0x1dc)]=_0x322c67,this['_snapshotService']=_0x208d5e,this[_0x3e77b0(0x1ce)]=_0x5c445b;}async['loadSheetAsync'](_0x37bd4e,_0x2f178f){const _0x441363=_0x26da58;return await this[_0x441363(0x1b1)]['loadSheet'](_0x37bd4e,0x0,_0x2f178f)?(await this[_0x441363(0x1ce)][_0x441363(0x1e2)](_0x37bd4e),this[_0x441363(0x1a1)][_0x441363(0x1bd)](_0x37bd4e)):null;}async[_0x26da58(0x1de)](_0x5453b4,_0xfa83df){const _0x56c1d0=_0x26da58;return await this[_0x56c1d0(0x1b1)][_0x56c1d0(0x18d)](_0x5453b4,0x0,_0xfa83df)?(await this['_collaborationController'][_0x56c1d0(0x1e2)](_0x5453b4),this['_handler'][_0x56c1d0(0x1cb)](_0x5453b4)):null;}async[_0x26da58(0x1db)](_0xdfb96,_0x353bec){const _0x31d2f7=_0x26da58;return await this['_snapshotService'][_0x31d2f7(0x1b3)](_0xdfb96,0x0,_0x353bec)?(await this[_0x31d2f7(0x1ce)][_0x31d2f7(0x1e2)](_0xdfb96),this[_0x31d2f7(0x1a1)]['getBase'](_0xdfb96)):null;}async[_0x26da58(0x1a9)](_0x50543,_0x490328){const _0x55c0d3=_0x26da58;return await this[_0x55c0d3(0x1b1)][_0x55c0d3(0x1b0)](_0x50543,0x0,_0x490328)?(await this['_collaborationController'][_0x55c0d3(0x1e2)](_0x50543),this[_0x55c0d3(0x1a1)][_0x55c0d3(0x194)](_0x50543)):null;}async[_0x26da58(0x1e0)](_0x9feac,_0x329b04){const _0x1e98f6=_0x26da58;return await this[_0x1e98f6(0x1b1)][_0x1e98f6(0x197)](_0x9feac,0x0,_0x329b04)?(await this['_collaborationController'][_0x1e98f6(0x1e2)](_0x9feac),this[_0x1e98f6(0x1a1)][_0x1e98f6(0x1b7)](_0x9feac)):null;}async[_0x26da58(0x1c5)](_0x9d7a73,_0x2a076b){const _0x521e58=_0x26da58;return await this[_0x521e58(0x1b1)][_0x521e58(0x1a5)](_0x9d7a73,0x0,_0x2a076b)?(await this[_0x521e58(0x1ce)][_0x521e58(0x1e2)](_0x9d7a73),this[_0x521e58(0x1a1)][_0x521e58(0x19a)](_0x9d7a73)):null;}[_0x26da58(0x1a6)](_0x25006d,_0x3a41b0){const _0x55c49e=_0x26da58;return(0x0,n[_0x55c49e(0x1cc)])(this[_0x55c49e(0x1b9)][_0x55c49e(0x188)](e[_0x55c49e(0x18e)])[_0x55c49e(0x18a)](_0x25006d)[_0x55c49e(0x1af)]((0x0,i[_0x55c49e(0x1b4)])(_0x50dcaf=>_0x50dcaf[_0x55c49e(0x1c2)]))[_0x55c49e(0x199)](_0x32fbbb=>_0x3a41b0(Array[_0x55c49e(0x1d4)](_0x32fbbb[_0x55c49e(0x1be)]()))));}[_0x26da58(0x18b)](_0x153af1){const _0xc39d33=_0x26da58;let _0x2ddef6=this[_0xc39d33(0x1c8)](_0x153af1);if(!_0x2ddef6)return e[_0xc39d33(0x1d3)]['NOT_COLLAB'];let _0x2978fd=this[_0xc39d33(0x1ce)][_0xc39d33(0x1aa)](_0x2ddef6);return(_0x2978fd==null?void 0x0:_0x2978fd[_0xc39d33(0x187)][_0xc39d33(0x1d5)])??e[_0xc39d33(0x1d3)][_0xc39d33(0x1a4)];}['flush'](_0x540bef,_0x10aa3d={}){const _0x1bb7de=_0x26da58;let _0x145a08=this['_resolveUnitId'](_0x540bef);if(!_0x145a08)return Promise[_0x1bb7de(0x1cf)](Error(_0x1bb7de(0x191)));let _0x2055bf=this['_collaborationController'][_0x1bb7de(0x1aa)](_0x145a08);if(!_0x2055bf)return Promise[_0x1bb7de(0x1cf)](Error(_0x1bb7de(0x1d6)+_0x145a08+'\x22\x20is\x20not\x20in\x20collaboration\x20mode.'));let _0x4d8408=_0x2055bf[_0x1bb7de(0x187)][_0x1bb7de(0x1d5)];if(_0x4d8408===e[_0x1bb7de(0x1d3)][_0x1bb7de(0x1dd)])return Promise[_0x1bb7de(0x1c7)]();let _0xff853f=u(_0x145a08,_0x4d8408);if(_0xff853f)return Promise['reject'](_0xff853f);let _0x5f29d7=_0x10aa3d[_0x1bb7de(0x1cd)]??0x7530;return new Promise((_0x410d71,_0x1d4d30)=>{const _0x6199fc=_0x1bb7de;let _0x2705fa=!0x1,_0x364491=null,_0x40c128=setTimeout(()=>{const _0x56fd4a=_0x1bc1;_0x2705fa=!0x0,_0x364491==null||_0x364491[_0x56fd4a(0x1c1)](),_0x1d4d30(Error('[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22'+_0x145a08+_0x56fd4a(0x1c4)+_0x5f29d7+_0x56fd4a(0x1b2)));},_0x5f29d7),_0x29a012=()=>{const _0x427b96=_0x1bc1;_0x2705fa=!0x0,clearTimeout(_0x40c128),_0x364491==null||_0x364491[_0x427b96(0x1c1)]();};_0x364491=_0x2055bf[_0x6199fc(0x1a7)][_0x6199fc(0x199)](_0x482dc1=>{const _0xfb1440=_0x6199fc;if(_0x2705fa)return;if(_0x482dc1===e['CollaborationStatus'][_0xfb1440(0x1dd)]){_0x29a012(),_0x410d71();return;}let _0x4203a3=u(_0x145a08,_0x482dc1);_0x4203a3&&(_0x29a012(),_0x1d4d30(_0x4203a3));});});}[_0x26da58(0x1c8)](_0x10d5cf){const _0x3af7cc=_0x26da58;var _0x1b365a;return _0x10d5cf||((_0x1b365a=this[_0x3af7cc(0x1dc)][_0x3af7cc(0x189)]())==null?void 0x0:_0x1b365a[_0x3af7cc(0x1ba)]());}};l=c([s(0x1,(0x0,n[_0x26da58(0x18f)])(n[_0x26da58(0x1bc)])),s(0x2,n[_0x26da58(0x19d)]),s(0x3,(0x0,n[_0x26da58(0x18f)])(r[_0x26da58(0x1bb)])),s(0x4,(0x0,n['Inject'])(e[_0x26da58(0x1ab)]))],l);function u(_0x3f2247,_0x45cdcb){const _0x2e3e40=_0x26da58;return _0x45cdcb===e[_0x2e3e40(0x1d3)][_0x2e3e40(0x186)]||_0x45cdcb===e['CollaborationStatus']['NOT_COLLAB']?Error(_0x2e3e40(0x1d0)+_0x3f2247+_0x2e3e40(0x1a3)+_0x45cdcb+'.'):null;}var d=class extends t[_0x26da58(0x1a8)]{[_0x26da58(0x195)](_0x4342ae){const _0x3a1877=_0x26da58;let _0x373950=_0x4342ae['get'](e[_0x3a1877(0x1ab)]);this[_0x3a1877(0x193)](this[_0x3a1877(0x1da)](this[_0x3a1877(0x19c)][_0x3a1877(0x1d8)],()=>{const _0x3ccc2c=_0x3a1877;let _0x23427c=new n['DisposableCollection'](),_0x44e91f=_0x373950[_0x3ccc2c(0x1df)]['subscribe'](_0x535a0a=>{const _0x24a23e=_0x3ccc2c;let _0x1b84dd=_0x535a0a[_0x24a23e(0x1a7)][_0x24a23e(0x199)](_0x21e40e=>{const _0x12f8a9=_0x24a23e;let _0x5deb7e={'unitId':_0x535a0a[_0x12f8a9(0x1c9)],'status':_0x21e40e};this['fireEvent'](this[_0x12f8a9(0x19c)][_0x12f8a9(0x1d8)],_0x5deb7e);});_0x23427c['add']((0x0,n['toDisposable'])(_0x1b84dd));});return _0x23427c[_0x3ccc2c(0x19b)]((0x0,n['toDisposable'])(_0x44e91f)),_0x23427c;}));}[_0x26da58(0x198)](){const _0x4eec5a=_0x26da58;return this[_0x4eec5a(0x1b9)][_0x4eec5a(0x1c6)](l,{'getWorkbook':_0x409292=>this[_0x4eec5a(0x1bd)](_0x409292),'getDocument':_0xd7b498=>this['getDocument'](_0xd7b498),'getPresentation':_0x386488=>this[_0x4eec5a(0x194)](_0x386488),'getBase':_0x36e84b=>this['getBase'](_0x36e84b),'getBoard':_0x550a49=>this[_0x4eec5a(0x1b7)](_0x550a49),'getPdf':_0x5a88c5=>this[_0x4eec5a(0x19a)](_0x5a88c5)});}['loadServerUnit'](_0x31028c,_0x477ea8,_0x17fd29){const _0x194a32=_0x26da58;return this[_0x194a32(0x1b9)][_0x194a32(0x188)](e['DataLoaderService'])[_0x194a32(0x1ad)](_0x31028c,_0x477ea8,_0x17fd29);}['loadServerUnitOfRevision'](_0x2fdfed,_0x479f37,_0x133774){const _0x1113da=_0x26da58;return this[_0x1113da(0x1b9)]['get'](e[_0x1113da(0x1a2)])[_0x1113da(0x1e1)](_0x2fdfed,_0x479f37,_0x133774);}};t[_0x26da58(0x1a8)][_0x26da58(0x1c3)](d),Object[_0x26da58(0x1ae)](exports,'FCollaboration',{'enumerable':!0x0,'get':function(){return l;}});
|
|
1
|
+
const _0x54e60a=_0x1354;(function(_0x570801,_0xd50f44){const _0x4c279c=_0x1354,_0x4ee14b=_0x570801();while(!![]){try{const _0x4d2da5=-parseInt(_0x4c279c(0x14f))/0x1*(parseInt(_0x4c279c(0x16d))/0x2)+-parseInt(_0x4c279c(0x142))/0x3+parseInt(_0x4c279c(0x141))/0x4+-parseInt(_0x4c279c(0x17f))/0x5*(parseInt(_0x4c279c(0x12c))/0x6)+-parseInt(_0x4c279c(0x134))/0x7+-parseInt(_0x4c279c(0x154))/0x8+-parseInt(_0x4c279c(0x13f))/0x9*(-parseInt(_0x4c279c(0x135))/0xa);if(_0x4d2da5===_0xd50f44)break;else _0x4ee14b['push'](_0x4ee14b['shift']());}catch(_0x1320c8){_0x4ee14b['push'](_0x4ee14b['shift']());}}}(_0x3f2a,0xd603d),Object[_0x54e60a(0x151)](exports,Symbol[_0x54e60a(0x12e)],{'value':_0x54e60a(0x164)}));function _0x3f2a(){const _0x1ca98f=['[FCollaboration]:\x20Unit\x20\x22','7991345RmbVva','object','CollaborationController','FCollaboration','reject','loadUnit','FBase','subscribe','_initialize','6KDpoGj','_snapshotService','toStringTag','getFocusedUnit','resolve','FEnum','loadBoard','flush','3804836peKkry','40XJBFfI','toDisposable','SYNCED','CollaborationStatusChanged','_resolveUnitId','loadUnitOfRevision','function','loadPdfAsync','ms.','loadServerUnitOfRevision','10792503SHnVXM','unsubscribe','4027064LvoPQL','1649895WkUaNM','getOwnPropertyDescriptor','loadPdf','disposeWithMe','waitForRoom$','NOT_COLLAB','Injector','unitID','getCollabEntity','DisposableCollection','FEventName','entityInit$','createInstance','1IcqQYK','status','defineProperty','Event','_handler','8634408pJHQsX','FUniver','pipe','loadSlide','MemberService','_collaborationController','length','switchMap','getWorkbook','getCollaboration','_univerInstanceService','CollaborationStatus','\x22\x20while\x20collaboration\x20status\x20is\x20','DataLoaderService','Inject','state','Module','getBoard','loadDoc','getPdf','readyForCollab','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','CONFLICT','add','loadSheetAsync','2311492HeOxhr','loadDocAsync','loadSlideAsync','IUniverInstanceService','_injector','fireEvent','getDocument','loadServerUnit','from','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','getCollaborationStatus','getPresentation','extend','getBase','subscribeCollaborators','get','status$'];_0x3f2a=function(){return _0x1ca98f;};return _0x3f2a();}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[_0x54e60a(0x131)]{get[_0x54e60a(0x15f)](){const _0x143555=_0x54e60a;return e[_0x143555(0x15f)];}};t[_0x54e60a(0x131)][_0x54e60a(0x179)](a);var o=class extends t[_0x54e60a(0x14c)]{get['CollaborationStatusChanged'](){const _0x39ff87=_0x54e60a;return _0x39ff87(0x138);}};t[_0x54e60a(0x14c)][_0x54e60a(0x179)](o);function s(_0x2f8117,_0x2dcac6){return function(_0x400d23,_0x4cfc79){_0x2dcac6(_0x400d23,_0x4cfc79,_0x2f8117);};}function _0x1354(_0xdb2ed7,_0x628b63){_0xdb2ed7=_0xdb2ed7-0x127;const _0x3f2af1=_0x3f2a();let _0x135470=_0x3f2af1[_0xdb2ed7];return _0x135470;}function c(_0x1c1bcd,_0x35b358,_0x248619,_0x44b34d){const _0x37eb82=_0x54e60a;var _0x1c146a=arguments[_0x37eb82(0x15a)],_0x3702dc=_0x1c146a<0x3?_0x35b358:_0x44b34d===null?_0x44b34d=Object[_0x37eb82(0x143)](_0x35b358,_0x248619):_0x44b34d,_0x4a556e;if(typeof Reflect==_0x37eb82(0x180)&&typeof Reflect['decorate']==_0x37eb82(0x13b))_0x3702dc=Reflect['decorate'](_0x1c1bcd,_0x35b358,_0x248619,_0x44b34d);else{for(var _0x3de4ae=_0x1c1bcd['length']-0x1;_0x3de4ae>=0x0;_0x3de4ae--)(_0x4a556e=_0x1c1bcd[_0x3de4ae])&&(_0x3702dc=(_0x1c146a<0x3?_0x4a556e(_0x3702dc):_0x1c146a>0x3?_0x4a556e(_0x35b358,_0x248619,_0x3702dc):_0x4a556e(_0x35b358,_0x248619))||_0x3702dc);}return _0x1c146a>0x3&&_0x3702dc&&Object[_0x37eb82(0x151)](_0x35b358,_0x248619,_0x3702dc),_0x3702dc;}let l=class extends t[_0x54e60a(0x129)]{constructor(_0x1f23f0,_0x2c9733,_0x49d3c4,_0x2221e3,_0x57aa0a){const _0x4f3534=_0x54e60a;super(),this[_0x4f3534(0x153)]=_0x1f23f0,this['_injector']=_0x2c9733,this[_0x4f3534(0x15e)]=_0x49d3c4,this[_0x4f3534(0x12d)]=_0x2221e3,this[_0x4f3534(0x159)]=_0x57aa0a;}async[_0x54e60a(0x16c)](_0x12e112,_0x207f8f){const _0x3dffdd=_0x54e60a;return await this[_0x3dffdd(0x12d)]['loadSheet'](_0x12e112,0x0,_0x207f8f)?(await this[_0x3dffdd(0x159)][_0x3dffdd(0x168)](_0x12e112),this[_0x3dffdd(0x153)][_0x3dffdd(0x15c)](_0x12e112)):null;}async[_0x54e60a(0x16e)](_0x227b0a,_0x3ef9c0){const _0x2ec7cb=_0x54e60a;return await this[_0x2ec7cb(0x12d)][_0x2ec7cb(0x166)](_0x227b0a,0x0,_0x3ef9c0)?(await this['_collaborationController'][_0x2ec7cb(0x168)](_0x227b0a),this[_0x2ec7cb(0x153)][_0x2ec7cb(0x173)](_0x227b0a)):null;}async['loadBaseAsync'](_0x592a7c,_0x1d4352){const _0x2a62e0=_0x54e60a;return await this[_0x2a62e0(0x12d)]['loadBase'](_0x592a7c,0x0,_0x1d4352)?(await this[_0x2a62e0(0x159)][_0x2a62e0(0x168)](_0x592a7c),this[_0x2a62e0(0x153)][_0x2a62e0(0x17a)](_0x592a7c)):null;}async[_0x54e60a(0x16f)](_0x4c7520,_0x3c302f){const _0xca4f56=_0x54e60a;return await this[_0xca4f56(0x12d)][_0xca4f56(0x157)](_0x4c7520,0x0,_0x3c302f)?(await this[_0xca4f56(0x159)][_0xca4f56(0x168)](_0x4c7520),this[_0xca4f56(0x153)]['getPresentation'](_0x4c7520)):null;}async['loadBoardAsync'](_0x14c4d4,_0x44bf09){const _0x5b95e1=_0x54e60a;return await this[_0x5b95e1(0x12d)][_0x5b95e1(0x132)](_0x14c4d4,0x0,_0x44bf09)?(await this['_collaborationController'][_0x5b95e1(0x168)](_0x14c4d4),this[_0x5b95e1(0x153)][_0x5b95e1(0x165)](_0x14c4d4)):null;}async[_0x54e60a(0x13c)](_0x3953bc,_0x7cec09){const _0xdfea4e=_0x54e60a;return await this['_snapshotService'][_0xdfea4e(0x144)](_0x3953bc,0x0,_0x7cec09)?(await this[_0xdfea4e(0x159)][_0xdfea4e(0x168)](_0x3953bc),this[_0xdfea4e(0x153)][_0xdfea4e(0x167)](_0x3953bc)):null;}[_0x54e60a(0x17b)](_0x56c426,_0x402db8){const _0x23cff1=_0x54e60a;let _0x1bab7a=this[_0x23cff1(0x171)][_0x23cff1(0x17c)](e[_0x23cff1(0x158)])[_0x23cff1(0x146)](_0x56c426)[_0x23cff1(0x156)]((0x0,i[_0x23cff1(0x15b)])(_0x1d091c=>_0x1d091c['members$']))[_0x23cff1(0x12a)](_0x47bd30=>_0x402db8(Array[_0x23cff1(0x175)](_0x47bd30['values']())));return(0x0,n[_0x23cff1(0x136)])(_0x1bab7a);}[_0x54e60a(0x177)](_0x2ffe65){const _0x4e66e2=_0x54e60a;let _0x55e8f0=this[_0x4e66e2(0x139)](_0x2ffe65);if(!_0x55e8f0)return e['CollaborationStatus'][_0x4e66e2(0x147)];let _0x560756=this[_0x4e66e2(0x159)]['getCollabEntity'](_0x55e8f0);return(_0x560756==null?void 0x0:_0x560756[_0x4e66e2(0x163)]['status'])??e[_0x4e66e2(0x15f)][_0x4e66e2(0x147)];}[_0x54e60a(0x133)](_0x53503f,_0x362790={}){const _0x2658cc=_0x54e60a;let _0x164f2f=this[_0x2658cc(0x139)](_0x53503f);if(!_0x164f2f)return Promise[_0x2658cc(0x127)](Error(_0x2658cc(0x169)));let _0x2e43d5=this[_0x2658cc(0x159)][_0x2658cc(0x14a)](_0x164f2f);if(!_0x2e43d5)return Promise[_0x2658cc(0x127)](Error(_0x2658cc(0x17e)+_0x164f2f+'\x22\x20is\x20not\x20in\x20collaboration\x20mode.'));let _0xd9315b=_0x2e43d5[_0x2658cc(0x163)][_0x2658cc(0x150)];if(_0xd9315b===e[_0x2658cc(0x15f)][_0x2658cc(0x137)])return Promise[_0x2658cc(0x130)]();let _0x20a310=u(_0x164f2f,_0xd9315b);if(_0x20a310)return Promise[_0x2658cc(0x127)](_0x20a310);let _0x587fbe=_0x362790['timeout']??0x7530;return new Promise((_0x36ecea,_0x5812d8)=>{const _0x5dac09=_0x2658cc;let _0x360ba9=!0x1,_0x1780a2=null,_0x1a669a=setTimeout(()=>{const _0x5a8786=_0x1354;_0x360ba9=!0x0,_0x1780a2==null||_0x1780a2[_0x5a8786(0x140)](),_0x5812d8(Error(_0x5a8786(0x176)+_0x164f2f+'\x22\x20after\x20'+_0x587fbe+_0x5a8786(0x13d)));},_0x587fbe),_0x45783c=()=>{const _0x27502a=_0x1354;_0x360ba9=!0x0,clearTimeout(_0x1a669a),_0x1780a2==null||_0x1780a2[_0x27502a(0x140)]();};_0x1780a2=_0x2e43d5[_0x5dac09(0x17d)]['subscribe'](_0x41fc04=>{const _0x353b97=_0x5dac09;if(_0x360ba9)return;if(_0x41fc04===e[_0x353b97(0x15f)][_0x353b97(0x137)]){_0x45783c(),_0x36ecea();return;}let _0x252686=u(_0x164f2f,_0x41fc04);_0x252686&&(_0x45783c(),_0x5812d8(_0x252686));});});}[_0x54e60a(0x139)](_0x29f727){const _0x458627=_0x54e60a;var _0x2b9270;return _0x29f727||((_0x2b9270=this[_0x458627(0x15e)][_0x458627(0x12f)]())==null?void 0x0:_0x2b9270['getUnitId']());}};l=c([s(0x1,(0x0,n[_0x54e60a(0x162)])(n[_0x54e60a(0x148)])),s(0x2,n[_0x54e60a(0x170)]),s(0x3,(0x0,n['Inject'])(r['SnapshotService'])),s(0x4,(0x0,n[_0x54e60a(0x162)])(e['CollaborationController']))],l);function u(_0x56e678,_0x1c9141){const _0x2909d=_0x54e60a;return _0x1c9141===e[_0x2909d(0x15f)][_0x2909d(0x16a)]||_0x1c9141===e[_0x2909d(0x15f)][_0x2909d(0x147)]?Error('[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22'+_0x56e678+_0x2909d(0x160)+_0x1c9141+'.'):null;}var d=class extends t[_0x54e60a(0x155)]{[_0x54e60a(0x12b)](_0x411a77){const _0x15ad3e=_0x54e60a;let _0x1bd55b=_0x411a77[_0x15ad3e(0x17c)](e[_0x15ad3e(0x181)]);this[_0x15ad3e(0x145)](this['registerEventHandler'](this[_0x15ad3e(0x152)][_0x15ad3e(0x138)],()=>{const _0x4e40c8=_0x15ad3e;let _0x198e49=new n[(_0x4e40c8(0x14b))](),_0x33eb45=_0x1bd55b[_0x4e40c8(0x14d)][_0x4e40c8(0x12a)](_0x263910=>{const _0x4108c4=_0x4e40c8;let _0x355677=_0x263910[_0x4108c4(0x17d)][_0x4108c4(0x12a)](_0x544235=>{const _0x30b1ca=_0x4108c4;let _0x4588cc={'unitId':_0x263910[_0x30b1ca(0x149)],'status':_0x544235};this[_0x30b1ca(0x172)](this[_0x30b1ca(0x152)]['CollaborationStatusChanged'],_0x4588cc);});_0x198e49[_0x4108c4(0x16b)]((0x0,n[_0x4108c4(0x136)])(_0x355677));});return _0x198e49[_0x4e40c8(0x16b)]((0x0,n['toDisposable'])(_0x33eb45)),_0x198e49;}));}[_0x54e60a(0x15d)](){const _0x382b33=_0x54e60a;return this[_0x382b33(0x171)][_0x382b33(0x14e)](l,{'getWorkbook':_0x160bdf=>this[_0x382b33(0x15c)](_0x160bdf),'getDocument':_0x1ddf61=>this['getDocument'](_0x1ddf61),'getPresentation':_0x5441b6=>this[_0x382b33(0x178)](_0x5441b6),'getBase':_0x3af186=>this[_0x382b33(0x17a)](_0x3af186),'getBoard':_0xa6b61a=>this[_0x382b33(0x165)](_0xa6b61a),'getPdf':_0x5eb8b5=>this['getPdf'](_0x5eb8b5)});}[_0x54e60a(0x174)](_0x2ba060,_0x57cbd3,_0x1dc0c5){const _0x1768de=_0x54e60a;return this['_injector'][_0x1768de(0x17c)](e['DataLoaderService'])[_0x1768de(0x128)](_0x2ba060,_0x57cbd3,_0x1dc0c5);}[_0x54e60a(0x13e)](_0x4fcfe,_0x37d62b,_0x164c2e){const _0x5ab17d=_0x54e60a;return this[_0x5ab17d(0x171)][_0x5ab17d(0x17c)](e[_0x5ab17d(0x161)])[_0x5ab17d(0x13a)](_0x4fcfe,_0x37d62b,_0x164c2e);}};t[_0x54e60a(0x155)][_0x54e60a(0x179)](d),Object[_0x54e60a(0x151)](exports,_0x54e60a(0x182),{'enumerable':!0x0,'get':function(){return l;}});
|