@univerjs-pro/live-share 0.25.1 → 1.0.0-alpha.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/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.css +0 -5
- package/lib/index.js +1 -1
- package/lib/types/index.d.ts +2 -2
- package/lib/types/plugin.d.ts +1 -1
- package/lib/types/views/components/LiveShare.d.ts +1 -1
- package/lib/types/views/components/LiveShare.stories.d.ts +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +14 -14
- /package/lib/types/{controllers/config.schema.d.ts → config/config.d.ts} +0 -0
- /package/lib/types/controllers/live-share/{live-share-ui.controller.d.ts → ui.controller.d.ts} +0 -0
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5a6102=_0x373a;function _0xac2e(){const _0x56be8a=['object','getLiveShareStatus','UniverInstanceType','stopFollowing','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_liveShareController','LiveShareController','toPrimitive','defineProperty','iterator','get','3314904wavdBF','4706709HVZSas','getLiveShareCoordinatorSync','constructor','1516414mrpCRk','9643856VHGoOb','call','getCurrentUnitOfType','_injector','default','symbol','36Bhdcfb','getStatus','UNIVER_SHEET','startFollowing','string','3VEddaC','FUniver','function','getUnitId','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','IUniverInstanceService','FEnum','LiveShareStatusEnum','183415aJGwqo','extend','2119738zTLYcc','38855169jSSBYM','No\x20active\x20workbook\x20found.','stopPresenting'];_0xac2e=function(){return _0x56be8a;};return _0xac2e();}(function(_0x4a435f,_0x48a94){const _0x23497d=_0x373a,_0x504a1b=_0x4a435f();while(!![]){try{const _0x407ad7=-parseInt(_0x23497d(0x91))/0x1+parseInt(_0x23497d(0xa7))/0x2*(-parseInt(_0x23497d(0x9d))/0x3)+-parseInt(_0x23497d(0x98))/0x4*(-parseInt(_0x23497d(0xa5))/0x5)+-parseInt(_0x23497d(0x8d))/0x6+parseInt(_0x23497d(0x8e))/0x7+-parseInt(_0x23497d(0x92))/0x8+parseInt(_0x23497d(0xa8))/0x9;if(_0x407ad7===_0x48a94)break;else _0x504a1b['push'](_0x504a1b['shift']());}catch(_0x3e46d1){_0x504a1b['push'](_0x504a1b['shift']());}}}(_0xac2e,0xf09b6));let e=require('@univerjs-pro/live-share'),t=require('@univerjs/core'),n=require('@univerjs/core/facade');function r(_0x1ca70d){'@babel/helpers - typeof';const _0x436645=_0x373a;return r=typeof Symbol==_0x436645(0x9f)&&typeof Symbol[_0x436645(0x8b)]==_0x436645(0x97)?function(_0x36069c){return typeof _0x36069c;}:function(_0x315f22){const _0x11c003=_0x436645;return _0x315f22&&typeof Symbol==_0x11c003(0x9f)&&_0x315f22[_0x11c003(0x90)]===Symbol&&_0x315f22!==Symbol['prototype']?_0x11c003(0x97):typeof _0x315f22;},r(_0x1ca70d);}function i(_0x20bfcd,_0x8a2244){const _0x537588=_0x373a;if(r(_0x20bfcd)!=_0x537588(0xab)||!_0x20bfcd)return _0x20bfcd;var _0x24e1c4=_0x20bfcd[Symbol[_0x537588(0xb2)]];if(_0x24e1c4!==void 0x0){var _0xfe9737=_0x24e1c4[_0x537588(0x93)](_0x20bfcd,_0x8a2244||_0x537588(0x96));if(r(_0xfe9737)!='object')return _0xfe9737;throw TypeError(_0x537588(0xa1));}return(_0x8a2244==='string'?String:Number)(_0x20bfcd);}function _0x373a(_0x16c497,_0x409c9e){_0x16c497=_0x16c497-0x8a;const _0xac2e97=_0xac2e();let _0x373a6e=_0xac2e97[_0x16c497];return _0x373a6e;}function a(_0x55bbcd){const _0x4a177c=_0x373a;var _0x477b5f=i(_0x55bbcd,_0x4a177c(0x9c));return r(_0x477b5f)=='symbol'?_0x477b5f:_0x477b5f+'';}function o(_0x5c0f71,_0x1f3fe7,_0x1bb913){const _0x1e0deb=_0x373a;return(_0x1f3fe7=a(_0x1f3fe7))in _0x5c0f71?Object[_0x1e0deb(0x8a)](_0x5c0f71,_0x1f3fe7,{'value':_0x1bb913,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5c0f71[_0x1f3fe7]=_0x1bb913,_0x5c0f71;}var s=class extends n[_0x5a6102(0x9e)]{constructor(..._0x4859a9){const _0x25bea9=_0x5a6102;super(..._0x4859a9),o(this,_0x25bea9(0xb0),void 0x0);}['_initialize'](_0x24ba61){const _0x49e44d=_0x5a6102;this[_0x49e44d(0xb0)]=_0x24ba61[_0x49e44d(0x8c)](e[_0x49e44d(0xb1)]);}[_0x5a6102(0xac)](){const _0x2e13ee=_0x5a6102;var _0x93026b;let _0x52b6ca=this['_injector'][_0x2e13ee(0x8c)](t[_0x2e13ee(0xa2)])[_0x2e13ee(0x94)](t[_0x2e13ee(0xad)][_0x2e13ee(0x9a)]);if(!_0x52b6ca)throw Error(_0x2e13ee(0xa9));let _0x59e92b=_0x52b6ca[_0x2e13ee(0xa0)](),_0x89619d=this['_liveShareController'][_0x2e13ee(0x8f)](_0x59e92b);return(_0x93026b=_0x89619d==null?void 0x0:_0x89619d[_0x2e13ee(0x99)]())==null?e['LiveShareStatus']['IDLE']:_0x93026b;}[_0x5a6102(0x9b)](){const _0x1584c6=_0x5a6102;let _0x116f8d=this[_0x1584c6(0x95)][_0x1584c6(0x8c)](t[_0x1584c6(0xa2)])[_0x1584c6(0x94)](t[_0x1584c6(0xad)]['UNIVER_SHEET']);if(!_0x116f8d)throw Error(_0x1584c6(0xa9));let _0x4aa0eb=_0x116f8d[_0x1584c6(0xa0)](),_0x209260=this[_0x1584c6(0xb0)]['getLiveShareCoordinatorSync'](_0x4aa0eb);if(!_0x209260)throw Error(_0x1584c6(0xaf));_0x209260[_0x1584c6(0x9b)]();}[_0x5a6102(0xae)](){const _0x5ea916=_0x5a6102;let _0x5e795c=this[_0x5ea916(0x95)][_0x5ea916(0x8c)](t[_0x5ea916(0xa2)])[_0x5ea916(0x94)](t[_0x5ea916(0xad)]['UNIVER_SHEET']);if(!_0x5e795c)throw Error(_0x5ea916(0xa9));let _0x3a91d3=_0x5e795c[_0x5ea916(0xa0)](),_0x40d6da=this[_0x5ea916(0xb0)][_0x5ea916(0x8f)](_0x3a91d3);if(!_0x40d6da)throw Error(_0x5ea916(0xaf));_0x40d6da['stopFollowing']();}['startPresenting'](){const _0x1c2740=_0x5a6102;let _0x1d81a7=this[_0x1c2740(0x95)]['get'](t[_0x1c2740(0xa2)])[_0x1c2740(0x94)](t[_0x1c2740(0xad)][_0x1c2740(0x9a)]);if(!_0x1d81a7)throw Error(_0x1c2740(0xa9));let _0xed2888=_0x1d81a7['getUnitId'](),_0x2dfd1e=this[_0x1c2740(0xb0)][_0x1c2740(0x8f)](_0xed2888);if(!_0x2dfd1e)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2dfd1e['tryStartPresenting']();}[_0x5a6102(0xaa)](){const _0x30fccc=_0x5a6102;let _0x270182=this[_0x30fccc(0x95)]['get'](t[_0x30fccc(0xa2)])[_0x30fccc(0x94)](t[_0x30fccc(0xad)][_0x30fccc(0x9a)]);if(!_0x270182)throw Error('No\x20active\x20workbook\x20found.');let _0x8a38c1=_0x270182['getUnitId'](),_0x5befd8=this[_0x30fccc(0xb0)]['getLiveShareCoordinatorSync'](_0x8a38c1);if(!_0x5befd8)throw Error(_0x30fccc(0xaf));_0x5befd8['stopPresenting']();}};n[_0x5a6102(0x9e)]['extend'](s);var c=class extends n[_0x5a6102(0xa3)]{get[_0x5a6102(0xa4)](){return e['LiveShareStatus'];}};n[_0x5a6102(0xa3)][_0x5a6102(0xa6)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2a6aa1=_0x1878;(function(_0x25c78e,_0xc9b328){const _0x3d481e=_0x1878,_0x571f4e=_0x25c78e();while(!![]){try{const _0x311999=-parseInt(_0x3d481e(0x1ee))/0x1*(parseInt(_0x3d481e(0x21d))/0x2)+parseInt(_0x3d481e(0x1f8))/0x3+-parseInt(_0x3d481e(0x1c3))/0x4*(-parseInt(_0x3d481e(0x1a8))/0x5)+-parseInt(_0x3d481e(0x178))/0x6*(-parseInt(_0x3d481e(0x1f1))/0x7)+-parseInt(_0x3d481e(0x1f4))/0x8*(-parseInt(_0x3d481e(0x20d))/0x9)+-parseInt(_0x3d481e(0x171))/0xa+-parseInt(_0x3d481e(0x1e6))/0xb;if(_0x311999===_0xc9b328)break;else _0x571f4e['push'](_0x571f4e['shift']());}catch(_0x276bfe){_0x571f4e['push'](_0x571f4e['shift']());}}}(_0x4b1b,0xb110a),Object[_0x2a6aa1(0x1a9)](exports,Symbol[_0x2a6aa1(0x211)],{'value':'Module'}));let e=require('@univerjs/core'),t=require('@univerjs/ui'),n=require('@univerjs/design'),r=require('@univerjs/icons'),i=require('react'),a=require('@univerjs-pro/collaboration'),o=require('@univerjs-pro/collaboration-client'),s=require('@univerjs/sheets'),c=require('rxjs'),l=require('rxjs/operators'),u=require('react/jsx-runtime'),d=require('@univerjs/sheets-ui');function f(_0x89c5c7){'@babel/helpers - typeof';const _0x5066e5=_0x2a6aa1;return f=typeof Symbol==_0x5066e5(0x1ae)&&typeof Symbol['iterator']=='symbol'?function(_0x489c63){return typeof _0x489c63;}:function(_0xf15985){const _0x4a56f3=_0x5066e5;return _0xf15985&&typeof Symbol==_0x4a56f3(0x1ae)&&_0xf15985[_0x4a56f3(0x1a7)]===Symbol&&_0xf15985!==Symbol[_0x4a56f3(0x1b7)]?_0x4a56f3(0x1bd):typeof _0xf15985;},f(_0x89c5c7);}function p(_0x2cd95a,_0x461ed1){const _0x476c5f=_0x2a6aa1;if(f(_0x2cd95a)!=_0x476c5f(0x177)||!_0x2cd95a)return _0x2cd95a;var _0x39edcd=_0x2cd95a[Symbol['toPrimitive']];if(_0x39edcd!==void 0x0){var _0x2b83c5=_0x39edcd['call'](_0x2cd95a,_0x461ed1||_0x476c5f(0x199));if(f(_0x2b83c5)!=_0x476c5f(0x177))return _0x2b83c5;throw TypeError(_0x476c5f(0x1d0));}return(_0x461ed1===_0x476c5f(0x1ac)?String:Number)(_0x2cd95a);}function m(_0x36eec3){const _0x3f9c7a=_0x2a6aa1;var _0x488f11=p(_0x36eec3,'string');return f(_0x488f11)==_0x3f9c7a(0x1bd)?_0x488f11:_0x488f11+'';}function h(_0x4a0fda,_0x2bcfd4,_0x39c076){const _0x3bab8d=_0x2a6aa1;return(_0x2bcfd4=m(_0x2bcfd4))in _0x4a0fda?Object[_0x3bab8d(0x1a9)](_0x4a0fda,_0x2bcfd4,{'value':_0x39c076,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4a0fda[_0x2bcfd4]=_0x39c076,_0x4a0fda;}var g=class extends e['Disposable']{constructor(..._0xde0a0a){const _0x4e761b=_0x2a6aa1;super(..._0xde0a0a),h(this,_0x4e761b(0x196),new Set()),h(this,_0x4e761b(0x1b4),new Set());}[_0x2a6aa1(0x19b)](_0x41d31d){const _0x329a28=_0x2a6aa1;return this[_0x329a28(0x196)]['add'](_0x41d31d),(0x0,e[_0x329a28(0x1d8)])(()=>this[_0x329a28(0x196)]['delete'](_0x41d31d));}[_0x2a6aa1(0x19d)](_0x1621c3){const _0xd7f301=_0x2a6aa1;return this[_0xd7f301(0x1b4)]['add'](_0x1621c3),(0x0,e['toDisposable'])(()=>this[_0xd7f301(0x1b4)][_0xd7f301(0x22b)](_0x1621c3));}[_0x2a6aa1(0x1ca)](_0x1c4d88){const _0x2bde57=_0x2a6aa1;return this[_0x2bde57(0x196)]['has'](_0x1c4d88);}[_0x2a6aa1(0x1e2)](_0x527fe4){const _0x5058b6=_0x2a6aa1;return Array[_0x5058b6(0x1fd)](this['_reporters'])[_0x5058b6(0x20f)](_0x29f414=>_0x29f414(_0x527fe4));}};function _(_0x597948,_0x1d1aef){return function(_0x1914c7,_0x5e6a29){_0x1d1aef(_0x1914c7,_0x5e6a29,_0x597948);};}function v(_0x5c7506,_0x30f46f,_0x1c453c,_0x471f78){const _0x1d11fc=_0x2a6aa1;var _0x596f83=arguments[_0x1d11fc(0x1c5)],_0x406bae=_0x596f83<0x3?_0x30f46f:_0x471f78===null?_0x471f78=Object[_0x1d11fc(0x1b1)](_0x30f46f,_0x1c453c):_0x471f78,_0x573ac3;if(typeof Reflect=='object'&&typeof Reflect[_0x1d11fc(0x1cd)]==_0x1d11fc(0x1ae))_0x406bae=Reflect[_0x1d11fc(0x1cd)](_0x5c7506,_0x30f46f,_0x1c453c,_0x471f78);else{for(var _0x153809=_0x5c7506[_0x1d11fc(0x1c5)]-0x1;_0x153809>=0x0;_0x153809--)(_0x573ac3=_0x5c7506[_0x153809])&&(_0x406bae=(_0x596f83<0x3?_0x573ac3(_0x406bae):_0x596f83>0x3?_0x573ac3(_0x30f46f,_0x1c453c,_0x406bae):_0x573ac3(_0x30f46f,_0x1c453c))||_0x406bae);}return _0x596f83>0x3&&_0x406bae&&Object[_0x1d11fc(0x1a9)](_0x30f46f,_0x1c453c,_0x406bae),_0x406bae;}let y=class extends e['RxDisposable']{constructor(_0x467a16,_0x586990,_0x5a036d){const _0x4df159=_0x2a6aa1;super(),this[_0x4df159(0x1e1)]=_0x467a16,this[_0x4df159(0x17a)]=_0x586990,this[_0x4df159(0x195)]=_0x5a036d,h(this,_0x4df159(0x184),new Map()),this[_0x4df159(0x20c)]();}async['getLiveShareCoordinator'](_0x41345e){const _0x5c49a4=_0x2a6aa1;return this[_0x5c49a4(0x184)]['has'](_0x41345e)||await this[_0x5c49a4(0x179)](_0x41345e),this['_entities'][_0x5c49a4(0x18b)](_0x41345e);}[_0x2a6aa1(0x18f)](_0x54c707){const _0x2a6f38=_0x2a6aa1;var _0x86db55;return(_0x86db55=this[_0x2a6f38(0x184)][_0x2a6f38(0x18b)](_0x54c707))==null?null:_0x86db55;}[_0x2a6aa1(0x20c)](){const _0x78e8a3=_0x2a6aa1;this[_0x78e8a3(0x1e1)][_0x78e8a3(0x1a1)](e['UniverInstanceType']['UNIVER_SHEET'])[_0x78e8a3(0x22e)]((0x0,l[_0x78e8a3(0x1eb)])(this[_0x78e8a3(0x1f6)]))[_0x78e8a3(0x1db)](async _0x3dfa8e=>{const _0x537027=_0x78e8a3;let _0x8bdc7d=_0x3dfa8e['unit'][_0x537027(0x22c)]();this[_0x537027(0x184)][_0x537027(0x1dd)](_0x8bdc7d)||this[_0x537027(0x179)](_0x8bdc7d);}),this['_univerInstanceService'][_0x78e8a3(0x1bf)](e[_0x78e8a3(0x221)][_0x78e8a3(0x1f7)])[_0x78e8a3(0x22e)]((0x0,l['takeUntil'])(this[_0x78e8a3(0x1f6)]))['subscribe'](_0x26a843=>{const _0x13f660=_0x78e8a3;let _0x2af9ff=_0x26a843['getUnitId'](),_0x28c976=this[_0x13f660(0x184)][_0x13f660(0x18b)](_0x2af9ff);_0x28c976==null||_0x28c976[_0x13f660(0x1ec)]();});}async[_0x2a6aa1(0x179)](_0x2f9a44){const _0x4aedb8=_0x2a6aa1;let _0x441ac5=await this['_collabSessionService'][_0x4aedb8(0x1cc)](_0x2f9a44),_0x485872=this['_injector'][_0x4aedb8(0x1d1)](x,_0x2f9a44,_0x441ac5);return _0x485872[_0x4aedb8(0x223)](),this[_0x4aedb8(0x184)][_0x4aedb8(0x222)](_0x2f9a44,_0x485872),_0x485872;}};y=v([_(0x0,e[_0x2a6aa1(0x1a5)]),_(0x1,(0x0,e[_0x2a6aa1(0x189)])(e[_0x2a6aa1(0x1cf)])),_(0x2,(0x0,e[_0x2a6aa1(0x189)])(o['CollaborationSessionService']))],y);let b=function(_0x525a2e){const _0x41e165=_0x2a6aa1;return _0x525a2e[_0x41e165(0x1d9)]=_0x41e165(0x1c6),_0x525a2e[_0x41e165(0x1de)]=_0x41e165(0x21b),_0x525a2e[_0x41e165(0x218)]=_0x41e165(0x1f3),_0x525a2e[_0x41e165(0x1d7)]=_0x41e165(0x1b5),_0x525a2e[_0x41e165(0x1c7)]='presenting',_0x525a2e;}({}),x=class extends e[_0x2a6aa1(0x1e4)]{get[_0x2a6aa1(0x1fb)](){const _0x135ab2=_0x2a6aa1;return this[_0x135ab2(0x17f)][_0x135ab2(0x176)]();}constructor(_0x2d5cce,_0x5ad87d,_0x242327,_0x242882,_0x1adf4e){const _0x5c7cdd=_0x2a6aa1;super(),this[_0x5c7cdd(0x1c1)]=_0x2d5cce,this[_0x5c7cdd(0x1a4)]=_0x5ad87d,this['_configService']=_0x242327,this[_0x5c7cdd(0x1b3)]=_0x242882,this['_commandService']=_0x1adf4e,h(this,_0x5c7cdd(0x17f),new c[(_0x5c7cdd(0x1b0))](_0x5c7cdd(0x21b))),h(this,'status$',this[_0x5c7cdd(0x17f)][_0x5c7cdd(0x1a6)]()),h(this,_0x5c7cdd(0x20c),!0x1),h(this,'_commandDisposable',null),h(this,_0x5c7cdd(0x202),null);}['dispose'](){const _0x10cc61=_0x2a6aa1;var _0x5609be;(_0x5609be=this[_0x10cc61(0x1f0)])==null||_0x5609be[_0x10cc61(0x1ec)](),this[_0x10cc61(0x17f)][_0x10cc61(0x193)](_0x10cc61(0x21b)),this[_0x10cc61(0x17f)]['complete']();}['getStatus'](){return this['_status'];}[_0x2a6aa1(0x223)](){const _0x319171=_0x2a6aa1;this[_0x319171(0x20c)]||(this['_init']=!0x0,this[_0x319171(0x1a4)]['sessionStatus$']['pipe']((0x0,l[_0x319171(0x1eb)])(this[_0x319171(0x1f6)]))[_0x319171(0x1db)](_0x58620a=>{const _0xb6a3b1=_0x319171;switch(_0x58620a){case o['SessionStatus']['OFFLINE']:this[_0xb6a3b1(0x1d4)]();break;case o[_0xb6a3b1(0x19c)][_0xb6a3b1(0x1e7)]:this[_0xb6a3b1(0x225)]();break;default:}}),this[_0x319171(0x1a4)][_0x319171(0x215)]['pipe']((0x0,l[_0x319171(0x1eb)])(this[_0x319171(0x1f6)]))[_0x319171(0x1db)](_0x5ccf5c=>{const _0x369cdc=_0x319171;let {eventID:_0x2789e9}=_0x5ccf5c;switch(_0x2789e9){case a[_0x369cdc(0x188)][_0x369cdc(0x1ef)]:this['_handleNewHost'](_0x5ccf5c);break;case a[_0x369cdc(0x188)][_0x369cdc(0x1c9)]:this['_handleOperation'](_0x5ccf5c);break;case a['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0x369cdc(0x21c)]();break;case a[_0x369cdc(0x188)][_0x369cdc(0x1d2)]:this[_0x369cdc(0x1bb)](_0x5ccf5c);break;default:}}));}['tryStartPresenting'](){const _0x1b34d1=_0x2a6aa1;this[_0x1b34d1(0x1a4)][_0x1b34d1(0x1e8)]({'eventID':a[_0x1b34d1(0x188)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x1b34d1(0x1c1)],'userID':this[_0x1b34d1(0x1a4)][_0x1b34d1(0x21a)]()}},this[_0x1b34d1(0x1c1)]);}[_0x2a6aa1(0x1a3)](){const _0x2ba4bf=_0x2a6aa1;this[_0x2ba4bf(0x1fb)]===_0x2ba4bf(0x224)&&(this[_0x2ba4bf(0x17f)]['next'](_0x2ba4bf(0x21b)),this['_collabSession'][_0x2ba4bf(0x1e8)]({'eventID':a['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x2ba4bf(0x1c1)]}},this[_0x2ba4bf(0x1c1)]));}['startFollowing'](){const _0x5cd6cb=_0x2a6aa1;this[_0x5cd6cb(0x1fb)]===_0x5cd6cb(0x1b5)&&(this[_0x5cd6cb(0x17f)][_0x5cd6cb(0x193)](_0x5cd6cb(0x1f3)),this['_startFollowing']());}[_0x2a6aa1(0x22d)](){const _0x1f96d1=_0x2a6aa1;this['_status']===_0x1f96d1(0x1f3)&&this[_0x1f96d1(0x21f)]();}[_0x2a6aa1(0x192)](_0xb03af9){const _0x125710=_0x2a6aa1;let {presenter:_0x4e59ca}=_0xb03af9['data'],_0x302236=this[_0x125710(0x1a4)][_0x125710(0x21a)]();this[_0x125710(0x202)]=_0x4e59ca,_0x4e59ca===_0x302236?(this[_0x125710(0x21f)](),this[_0x125710(0x18c)]()):this[_0x125710(0x1fb)]!==_0x125710(0x1b5)&&(this[_0x125710(0x1d3)](),this[_0x125710(0x174)]());}[_0x2a6aa1(0x182)](){const _0x4f59fd=_0x2a6aa1;let _0x230b90={'eventID':a['CollaborationEvent'][_0x4f59fd(0x185)]};this[_0x4f59fd(0x1a4)][_0x4f59fd(0x1e8)](_0x230b90,this['_unitID']);}[_0x2a6aa1(0x21c)](){const _0x2efacc=_0x2a6aa1;this[_0x2efacc(0x202)]=null,this[_0x2efacc(0x1fb)]!==_0x2efacc(0x224)&&this[_0x2efacc(0x217)]();}[_0x2a6aa1(0x1bb)](_0x1d07cd){const _0x214a0a=_0x2a6aa1;if(this[_0x214a0a(0x1fb)]==='following'&&this[_0x214a0a(0x202)]===_0x1d07cd['data'][_0x214a0a(0x190)]){let _0x31ea5d=(0x0,a['parseProtocolChangeset'])(_0x1d07cd[_0x214a0a(0x209)])[_0x214a0a(0x197)][_0x214a0a(0x1b8)]()[_0x214a0a(0x1ed)](_0x190508=>_0x190508['id']===s[_0x214a0a(0x187)]['id']);if(_0x31ea5d){let _0x535a54=_0x31ea5d[_0x214a0a(0x17d)][_0x214a0a(0x1f2)],_0x5b59d7=_0x31ea5d[_0x214a0a(0x17d)]['sheet']['id'];setTimeout(()=>{const _0x5a1201=_0x214a0a;this['_commandService'][_0x5a1201(0x227)](s[_0x5a1201(0x17e)]['id'],{'unitId':_0x535a54,'subUnitId':_0x5b59d7},{'fromCollab':!0x0});});}}}[_0x2a6aa1(0x18c)](){const _0x150205=_0x2a6aa1;var _0x16a47e;(_0x16a47e=this[_0x150205(0x1f0)])==null||_0x16a47e[_0x150205(0x1ec)](),this[_0x150205(0x17f)][_0x150205(0x193)](_0x150205(0x224));let _0x9f4cb5=new Map(),_0x3b1844=this['_commandDisposable']=new e[(_0x150205(0x1c0))]();_0x3b1844[_0x150205(0x191)]((0x0,e[_0x150205(0x1d8)])(()=>{const _0x482e16=_0x150205;_0x9f4cb5[_0x482e16(0x172)](({subject:_0x34ba14,subscription:_0x1ee6b8})=>{const _0x593b61=_0x482e16;_0x1ee6b8[_0x593b61(0x183)](),_0x34ba14['complete']();}),_0x9f4cb5[_0x482e16(0x20a)]();})),_0x3b1844[_0x150205(0x191)](this[_0x150205(0x200)][_0x150205(0x1ce)](_0x59d296=>{const _0x5aea20=_0x150205;if(_0x59d296[_0x5aea20(0x229)]!==e['CommandType'][_0x5aea20(0x1ff)]||!this[_0x5aea20(0x1b3)][_0x5aea20(0x1ca)](_0x59d296['id']))return;let {id:_0x2c365e}=_0x59d296,_0x442dfc;if(_0x9f4cb5[_0x5aea20(0x1dd)](_0x2c365e))_0x442dfc=_0x9f4cb5[_0x5aea20(0x18b)](_0x2c365e)[_0x5aea20(0x1ab)];else{var _0x2a1984;_0x442dfc=new c['Subject']();let _0xa76041=_0x442dfc[_0x5aea20(0x22e)]((0x0,l[_0x5aea20(0x19a)])((_0x2a1984=this['_configService'][_0x5aea20(0x18a)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x2a1984,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5aea20(0x1db)](_0x344830=>{const _0x5a406f=_0x5aea20;this['_collabSession']['send']({'eventID':a['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5a406f(0x1c1)],'operations':{[_0x344830['id']]:{'id':_0x344830['id'],'params':JSON[_0x5a406f(0x228)](_0x344830[_0x5a406f(0x17d)])}}}},this[_0x5a406f(0x1c1)]);});_0x9f4cb5[_0x5aea20(0x222)](_0x2c365e,{'subject':_0x442dfc,'subscription':_0xa76041});}_0x442dfc[_0x5aea20(0x193)](_0x59d296);})),this['_liveShareService'][_0x150205(0x1e2)](this['_unitID'])[_0x150205(0x172)](_0xa00189=>this[_0x150205(0x1a4)][_0x150205(0x1e8)]({'eventID':a[_0x150205(0x188)][_0x150205(0x1c9)],'data':{'unitID':this['_unitID'],'operations':{[_0xa00189['id']]:{'id':_0xa00189['id'],'params':JSON[_0x150205(0x228)](_0xa00189[_0x150205(0x17d)])}}}},this[_0x150205(0x1c1)]));}[_0x2a6aa1(0x1d3)](){const _0x339401=_0x2a6aa1;var _0x4eb665;this[_0x339401(0x17f)][_0x339401(0x193)](_0x339401(0x21b)),(_0x4eb665=this[_0x339401(0x1f0)])==null||_0x4eb665['dispose'](),this[_0x339401(0x1f0)]=null;}[_0x2a6aa1(0x174)](){const _0x3b8d85=_0x2a6aa1;var _0x5f37c3;(_0x5f37c3=this[_0x3b8d85(0x1f0)])==null||_0x5f37c3[_0x3b8d85(0x1ec)](),this[_0x3b8d85(0x17f)][_0x3b8d85(0x193)](_0x3b8d85(0x1f3));}[_0x2a6aa1(0x217)](){const _0x531040=_0x2a6aa1;var _0x2ada3d;this['_status$'][_0x531040(0x193)](_0x531040(0x21b)),(_0x2ada3d=this[_0x531040(0x1f0)])==null||_0x2ada3d['dispose'](),this[_0x531040(0x1f0)]=null;}['_stopFollowing'](){const _0x3fe2fb=_0x2a6aa1;var _0x421d4b;this['_status$'][_0x3fe2fb(0x193)](_0x3fe2fb(0x1b5)),(_0x421d4b=this[_0x3fe2fb(0x1f0)])==null||_0x421d4b['dispose']();}['_handleOperation'](_0x41d822){const _0x2bdd15=_0x2a6aa1;if([_0x2bdd15(0x224),_0x2bdd15(0x1b5),_0x2bdd15(0x1c6)]['includes'](this['_status'])||!_0x41d822[_0x2bdd15(0x209)]['presenter']||_0x41d822[_0x2bdd15(0x209)]['presenter']===this['_collabSession'][_0x2bdd15(0x21a)]())return;this[_0x2bdd15(0x1fb)]===_0x2bdd15(0x21b)&&this[_0x2bdd15(0x174)]();let _0x32a294=_0x41d822[_0x2bdd15(0x209)]['operations'];Object['values'](_0x32a294)[_0x2bdd15(0x172)](_0xf9275c=>{const _0x45fef5=_0x2bdd15;this[_0x45fef5(0x200)][_0x45fef5(0x227)](_0xf9275c['id'],_0xf9275c[_0x45fef5(0x17d)]?JSON[_0x45fef5(0x19e)](_0xf9275c[_0x45fef5(0x17d)]):null,{'fromCollab':!0x0});});}[_0x2a6aa1(0x1d4)](){const _0x3cf985=_0x2a6aa1;var _0xfda53f;this[_0x3cf985(0x17f)]['next'](_0x3cf985(0x1c6)),(_0xfda53f=this[_0x3cf985(0x1f0)])==null||_0xfda53f['dispose']();}[_0x2a6aa1(0x225)](){const _0x253f26=_0x2a6aa1;this['_status$']['next'](_0x253f26(0x21b)),this[_0x253f26(0x182)]();}};x=v([_(0x2,e[_0x2a6aa1(0x186)]),_(0x3,(0x0,e[_0x2a6aa1(0x189)])(g)),_(0x4,e[_0x2a6aa1(0x1ea)])],x);function S(){const _0x1d0d3d=_0x2a6aa1;let _0x2a5f5b=(0x0,t['useDependency'])(y),_0x506ba0=(0x0,t[_0x1d0d3d(0x216)])(e[_0x1d0d3d(0x1a5)]),_0x569878=(0x0,t[_0x1d0d3d(0x198)])(()=>_0x506ba0[_0x1d0d3d(0x219)](e[_0x1d0d3d(0x221)][_0x1d0d3d(0x1f7)]),void 0x0,!0x1,[]),[_0x3aa62f,_0x53dd2c]=(0x0,i['useState'])(null),[_0x354ca2,_0x130c34]=(0x0,i[_0x1d0d3d(0x22a)])(_0x1d0d3d(0x21b)),_0x9ddb1b=(0x0,i['useRef'])(null);return(0x0,i['useEffect'])(()=>(_0x569878&&_0x2a5f5b[_0x1d0d3d(0x1f5)](_0x569878['getUnitId']())['then'](_0x4f3d42=>{const _0x476c3f=_0x1d0d3d;_0x53dd2c(_0x4f3d42),_0x9ddb1b[_0x476c3f(0x1c4)]=_0x4f3d42[_0x476c3f(0x1d5)][_0x476c3f(0x1db)](_0x508d81=>{_0x130c34(_0x508d81);});}),()=>{const _0x75909d=_0x1d0d3d;var _0x3e794d;(_0x3e794d=_0x9ddb1b['current'])==null||_0x3e794d['unsubscribe'](),_0x9ddb1b[_0x75909d(0x1c4)]=null;}),[_0x569878,_0x2a5f5b]),_0x3aa62f?(0x0,u[_0x1d0d3d(0x207)])(n[_0x1d0d3d(0x1a2)],{'align':_0x1d0d3d(0x203),'disabled':_0x354ca2===_0x1d0d3d(0x1c6),'className':_0x1d0d3d(0x175),'overlay':(0x0,u['jsx'])(C,{'status':_0x354ca2,'coordinator':_0x3aa62f}),'children':(0x0,u[_0x1d0d3d(0x207)])(_0x1d0d3d(0x1ad),{'className':(0x0,n[_0x1d0d3d(0x212)])('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x354ca2==='offline','univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x354ca2!==_0x1d0d3d(0x1c6)}),'type':_0x1d0d3d(0x1ad),'children':(0x0,u['jsx'])(r[_0x1d0d3d(0x181)],{'className':_0x1d0d3d(0x1f9)})})}):null;}function C(_0x460016){const _0xf2cd4a=_0x2a6aa1;let {status:_0x1e75ee,coordinator:_0x541939}=_0x460016;switch(_0x1e75ee){case _0xf2cd4a(0x21b):return(0x0,u['jsx'])(w,{'coordinator':_0x541939});case _0xf2cd4a(0x1f3):return(0x0,u['jsx'])(T,{'coordinator':_0x541939});case _0xf2cd4a(0x1b5):return(0x0,u[_0xf2cd4a(0x207)])(E,{'coordinator':_0x541939});case _0xf2cd4a(0x1c6):return(0x0,u['jsx'])(O,{});case _0xf2cd4a(0x224):return(0x0,u['jsx'])(D,{'coordinator':_0x541939});default:return null;}}function w(_0x4be624){const _0x4d652b=_0x2a6aa1;let {coordinator:_0x4bee47}=_0x4be624;return(0x0,u[_0x4d652b(0x208)])(u[_0x4d652b(0x21e)],{'children':[(0x0,u[_0x4d652b(0x207)])(_0x4d652b(0x1aa),{'className':_0x4d652b(0x1c2),'children':_0x4d652b(0x226)}),(0x0,u[_0x4d652b(0x207)])(n['Button'],{'onClick':()=>_0x4bee47['tryStartPresenting'](),'children':_0x4d652b(0x1e3)})]});}function T(_0x3b18ca){const _0x44e64b=_0x2a6aa1;let {coordinator:_0x4abe44}=_0x3b18ca;return(0x0,u['jsxs'])(u[_0x44e64b(0x21e)],{'children':[(0x0,u['jsx'])(_0x44e64b(0x1aa),{'className':_0x44e64b(0x1c2),'children':_0x44e64b(0x173)}),(0x0,u['jsx'])(n[_0x44e64b(0x19f)],{'onClick':()=>_0x4abe44[_0x44e64b(0x22d)](),'children':_0x44e64b(0x214)})]});}function E(_0x107d95){const _0x3eb5aa=_0x2a6aa1;let {coordinator:_0x3f007e}=_0x107d95;return(0x0,u[_0x3eb5aa(0x208)])(u[_0x3eb5aa(0x21e)],{'children':[(0x0,u[_0x3eb5aa(0x207)])(_0x3eb5aa(0x1aa),{'className':_0x3eb5aa(0x1c2),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),(0x0,u[_0x3eb5aa(0x207)])(n['Button'],{'variant':_0x3eb5aa(0x1ba),'onClick':()=>_0x3f007e[_0x3eb5aa(0x210)](),'children':'Start\x20following'})]});}function D(_0x8ed177){const _0x583276=_0x2a6aa1;let {coordinator:_0x4d490b}=_0x8ed177;return(0x0,u[_0x583276(0x208)])(u[_0x583276(0x21e)],{'children':[(0x0,u[_0x583276(0x207)])(_0x583276(0x1aa),{'className':_0x583276(0x1c2),'children':_0x583276(0x20e)}),(0x0,u[_0x583276(0x207)])(n[_0x583276(0x19f)],{'variant':_0x583276(0x199),'onClick':()=>_0x4d490b[_0x583276(0x1a3)](),'children':'Stop\x20presenting'})]});}function O(){const _0x8d0f1f=_0x2a6aa1;return(0x0,u['jsx'])(u[_0x8d0f1f(0x21e)],{'children':'You\x27are\x20offline.'});}let k=class extends e[_0x2a6aa1(0x1e9)]{constructor(_0xd1e325,_0x2a0112){const _0x142d1b=_0x2a6aa1;super(),this[_0x142d1b(0x17a)]=_0xd1e325,this[_0x142d1b(0x1fe)]=_0x2a0112,this[_0x142d1b(0x1da)]();}[_0x2a6aa1(0x1da)](){const _0x44caec=_0x2a6aa1;this[_0x44caec(0x220)](this[_0x44caec(0x1fe)][_0x44caec(0x1b2)](t[_0x44caec(0x20b)][_0x44caec(0x18d)],()=>(0x0,t['connectInjector'])(S,this[_0x44caec(0x17a)])));}};k=v([_(0x0,(0x0,e['Inject'])(e[_0x2a6aa1(0x1cf)])),_(0x1,t[_0x2a6aa1(0x205)])],k);function _0x4b1b(){const _0x1dd580=['subject','string','button','function','pluginName','BehaviorSubject','getOwnPropertyDescriptor','registerComponent','_liveShareService','_reporters','not-following','0.25.1','prototype','reverse','override','text','_handleNewChangeSets','mergeOverrideWithDependencies','symbol','live-share.config','getTypeOfUnitDisposed$','DisposableCollection','_unitID','univer-mb-3\x20univer-w-full\x20univer-text-sm','161084EWpetQ','current','length','offline','PRESENTING','Plugin','LIVESHARE_OPERATION','shouldShareOperation','LiveShareController','requireSession','decorate','onCommandExecuted','Injector','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','createInstance','NEW_CHANGESETS','_stopPresenting','_handleOffline','status$','registerDependencies','NOT_FOLLOWING','toDisposable','OFFLINE','_mountLiveShare','subscribe','touchDependencies','has','IDLE','SetZoomRatioOperation','merge','_univerInstanceService','getInitialStates','Start','RxDisposable','LiveShareService','11012782ADfTJQ','ONLINE','send','Disposable','ICommandService','takeUntil','dispose','find','1416980CJfFNx','LIVESHARE_NEW_HOST','_commandDisposable','1817893HgGPrN','unitId','following','1394168jqwdKy','getLiveShareCoordinator','dispose$','UNIVER_SHEET','962739iQnpOr','univer-size-4','LiveShareStatus','_status','LiveShareCoordinator','from','_uiPartsService','OPERATION','_commandService','DependentOn','_presenter','end','UNIVER_LIVE_SHARE_PLUGIN','IUIPartsService','setConfig','jsx','jsxs','data','clear','BuiltInUIPart','_init','63KxnkGQ','You\x27re\x20presenting\x20the\x20document','map','startFollowing','toStringTag','clsx','version','Stop\x20following','event$','useDependency','_beIdle','FOLLOWING','getCurrentTypeOfUnit$','getMemberID','idle','_handleTerminate','2liAotl','Fragment','_stopFollowing','disposeWithMe','UniverInstanceType','set','init','presenting','_handleOnline','Present\x20this\x20document','executeCommand','stringify','type','useState','delete','getUnitId','stopFollowing','pipe','1027400AiLpTk','forEach','You\x27re\x20following\x20the\x20presenter','_startFollowing','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','getValue','object','18RKzSnP','_startLiveShareCoordinator','_injector','_configService','UniverCollaborationClientPlugin','params','SetWorksheetActiveOperation','_status$','UniverLiveSharePlugin','LiveShareIcon','_fetchOperations','unsubscribe','_entities','LIVESHARE_FETCH_OPERATIONS','IConfigService','InsertSheetMutation','CollaborationEvent','Inject','getConfig','get','_startPresenting','HEADER_MENU','UNIVER_UNKNOWN','getLiveShareCoordinatorSync','memberID','add','_handleNewHost','next','onRendered','_collabSessionService','_sharedOperations','mutations','useObservable','default','throttleTime','registerSharedOperation','SessionStatus','registerInitialStateReporter','parse','Button','_config','getTypeOfUnitAdded$','Dropdown','stopPresenting','_collabSession','IUniverInstanceService','asObservable','constructor','115oYeyAW','defineProperty','div'];_0x4b1b=function(){return _0x1dd580;};return _0x4b1b();}var A='@univerjs-pro/live-share',j=_0x2a6aa1(0x1b6);const M={};let N=class extends e['Disposable']{constructor(_0x538552){const _0x4e571a=_0x2a6aa1;super(),this[_0x4e571a(0x1b3)]=_0x538552,this[_0x4e571a(0x20c)]();}[_0x2a6aa1(0x20c)](){const _0x274772=_0x2a6aa1;[d[_0x274772(0x1df)]['id'],d['SetScrollOperation']['id'],s[_0x274772(0x17e)]['id']]['forEach'](_0x3068c1=>{const _0x2ef60f=_0x274772;this[_0x2ef60f(0x220)](this[_0x2ef60f(0x1b3)]['registerSharedOperation'](_0x3068c1));});}};N=v([_(0x0,(0x0,e['Inject'])(g))],N);function _0x1878(_0x5bfa1c,_0x14f4ae){_0x5bfa1c=_0x5bfa1c-0x171;const _0x4b1b2b=_0x4b1b();let _0x1878f9=_0x4b1b2b[_0x5bfa1c];return _0x1878f9;}let P=class extends e[_0x2a6aa1(0x1c8)]{constructor(_0x1c80af=M,_0x3a8f4a,_0x1501c9){const _0x28355b=_0x2a6aa1;super(),this[_0x28355b(0x1a0)]=_0x1c80af,this[_0x28355b(0x17a)]=_0x3a8f4a,this[_0x28355b(0x17b)]=_0x1501c9;let {..._0x57a5d2}=(0x0,e[_0x28355b(0x1e0)])({},M,this['_config']);this[_0x28355b(0x17b)][_0x28355b(0x206)](_0x28355b(0x1be),_0x57a5d2);}['onStarting'](){const _0x125fe1=_0x2a6aa1;(0x0,e[_0x125fe1(0x1d6)])(this[_0x125fe1(0x17a)],(0x0,e[_0x125fe1(0x1bc)])([[g],[y],[N],[k]],this[_0x125fe1(0x1a0)][_0x125fe1(0x1b9)])),(0x0,e['touchDependencies'])(this[_0x125fe1(0x17a)],[[N]]);}[_0x2a6aa1(0x194)](){const _0x2b0116=_0x2a6aa1;(0x0,e[_0x2b0116(0x1dc)])(this[_0x2b0116(0x17a)],[[k]]);}};h(P,_0x2a6aa1(0x229),e[_0x2a6aa1(0x221)][_0x2a6aa1(0x18e)]),h(P,_0x2a6aa1(0x1af),_0x2a6aa1(0x204)),h(P,'packageName',A),h(P,_0x2a6aa1(0x213),j),P=v([(0x0,e[_0x2a6aa1(0x201)])(o[_0x2a6aa1(0x17c)]),_(0x1,(0x0,e[_0x2a6aa1(0x189)])(e[_0x2a6aa1(0x1cf)])),_(0x2,e[_0x2a6aa1(0x186)])],P),Object[_0x2a6aa1(0x1a9)](exports,'DesktopLiveShareController',{'enumerable':!0x0,'get':function(){return k;}}),exports['LiveShare']=S,Object['defineProperty'](exports,_0x2a6aa1(0x1cb),{'enumerable':!0x0,'get':function(){return y;}}),Object[_0x2a6aa1(0x1a9)](exports,_0x2a6aa1(0x1fc),{'enumerable':!0x0,'get':function(){return x;}}),exports[_0x2a6aa1(0x1e5)]=g,exports[_0x2a6aa1(0x1fa)]=b,Object['defineProperty'](exports,_0x2a6aa1(0x180),{'enumerable':!0x0,'get':function(){return P;}});
|
|
1
|
+
const _0x5d5271=_0x4057;(function(_0x369080,_0x1752f9){const _0xd09079=_0x4057,_0x13efb5=_0x369080();while(!![]){try{const _0x5e6c55=-parseInt(_0xd09079(0x267))/0x1*(parseInt(_0xd09079(0x29e))/0x2)+parseInt(_0xd09079(0x289))/0x3*(-parseInt(_0xd09079(0x1ea))/0x4)+parseInt(_0xd09079(0x262))/0x5+parseInt(_0xd09079(0x25e))/0x6+parseInt(_0xd09079(0x1f1))/0x7+-parseInt(_0xd09079(0x24a))/0x8*(parseInt(_0xd09079(0x21b))/0x9)+-parseInt(_0xd09079(0x22d))/0xa*(-parseInt(_0xd09079(0x21d))/0xb);if(_0x5e6c55===_0x1752f9)break;else _0x13efb5['push'](_0x13efb5['shift']());}catch(_0x23a9ab){_0x13efb5['push'](_0x13efb5['shift']());}}}(_0x13f4,0x80eae),Object[_0x5d5271(0x279)](exports,Symbol[_0x5d5271(0x28c)],{'value':'Module'}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs-pro/collaboration-client'),n=require('@univerjs/core'),r=require('@univerjs/sheets'),i=require('rxjs'),a=require('rxjs/operators'),o=require('@univerjs/ui'),s=require('@univerjs/design'),c=require('@univerjs/icons'),l=require('react'),u=require('react/jsx-runtime'),d=require('@univerjs/sheets-ui');function f(_0x194457){'@babel/helpers - typeof';const _0x5df084=_0x5d5271;return f=typeof Symbol==_0x5df084(0x25c)&&typeof Symbol[_0x5df084(0x27a)]=='symbol'?function(_0x96250e){return typeof _0x96250e;}:function(_0x506273){const _0x1333d5=_0x5df084;return _0x506273&&typeof Symbol=='function'&&_0x506273[_0x1333d5(0x243)]===Symbol&&_0x506273!==Symbol[_0x1333d5(0x225)]?'symbol':typeof _0x506273;},f(_0x194457);}function _0x13f4(){const _0x584edf=['object','next','UniverCollaborationClientPlugin','_fetchOperations','idle','OPERATION','SetZoomRatioOperation','LiveShare','Plugin','reverse','find','_collabSessionService','_collabSession','constructor','decorate','_entities','presenting','get','CollaborationEvent','disposeWithMe','8sodfIV','sheet','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ONLINE','asObservable','version','_handleNewHost','getTypeOfUnitDisposed$','not-following','_univerInstanceService','getOwnPropertyDescriptor','Inject','tryStartPresenting','_reporters','IUIPartsService','_mountLiveShare','jsxs','_stopPresenting','function','_config','2148528hKrhEq','useObservable','unsubscribe','set','4111760nGiXoq','shouldShareOperation','UniverInstanceType','getLiveShareCoordinator','call','58eytDTN','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','Subject','Disposable','parseProtocolChangeset','merge','end','pipe','offline','Present\x20this\x20document','button','BuiltInUIPart','event$','useDependency','_stopFollowing','stopPresenting','delete','params','defineProperty','iterator','sessionStatus$','onStarting','_sharedOperations','_handleOnline','_startPresenting','RxDisposable','override','_status$','NOT_FOLLOWING','univer-mb-3\x20univer-w-full\x20univer-text-sm','getStatus','_startFollowing','init','stopFollowing','2199YTfbrG','setConfig','UniverLiveSharePlugin','toStringTag','1.0.0-alpha.1','_liveShareService','throttleTime','LIVESHARE_REQUEST_HOST','IUniverInstanceService','forEach','Injector','add','parse','values','div','onCommandExecuted','_unitID','SetWorksheetActiveOperation','registerDependencies','text','live-share.config','15356HnKFoj','type','LiveShareService','useState','_handleTerminate','SessionStatus','mutations','Button','touchDependencies','InsertSheetMutation','You\x27re\x20presenting\x20the\x20document','1444FTmnxW','getConfig','toDisposable','presenter','getInitialStates','takeUntil','_startLiveShareCoordinator','5647271COhgJS','getCurrentTypeOfUnit$','_uiPartsService','You\x27re\x20following\x20the\x20presenter','mergeOverrideWithDependencies','unitId','_commandService','OFFLINE','IConfigService','following','jsx','_handleOffline','useRef','current','dispose','startFollowing','then','LIVESHARE_FETCH_OPERATIONS','getValue','_beIdle','onRendered','Fragment','_configService','getMemberID','_presenter','Start','CollaborationSessionService','getLiveShareCoordinatorSync','registerComponent','Stop\x20following','status$','default','_handleOperation','send','_commandDisposable','UNIVER_SHEET','getTypeOfUnitAdded$','CommandType','subscribe','@univerjs-pro/live-share','FOLLOWING','from','9225558ZPFzDG','length','11LNIpOp','unit','getUnitId','DesktopLiveShareController','_init','_status','symbol','pluginName','prototype','SAME_OPERATION_SHARE_INTERVAL','string','clear','stringify','data','SetScrollOperation','UNIVER_LIVE_SHARE_PLUGIN','2758520dxXuLK','_handleNewChangeSets','DependentOn','has','complete','subject','dispose$','_injector','LIVESHARE_OPERATION'];_0x13f4=function(){return _0x584edf;};return _0x13f4();}function p(_0x2fdce6,_0x21ff04){const _0x170206=_0x5d5271;if(f(_0x2fdce6)!=_0x170206(0x236)||!_0x2fdce6)return _0x2fdce6;var _0x298911=_0x2fdce6[Symbol['toPrimitive']];if(_0x298911!==void 0x0){var _0x4eb140=_0x298911[_0x170206(0x266)](_0x2fdce6,_0x21ff04||'default');if(f(_0x4eb140)!=_0x170206(0x236))return _0x4eb140;throw TypeError(_0x170206(0x24c));}return(_0x21ff04===_0x170206(0x227)?String:Number)(_0x2fdce6);}function m(_0x27d1e1){const _0x1e32e6=_0x5d5271;var _0x5806c6=p(_0x27d1e1,_0x1e32e6(0x227));return f(_0x5806c6)==_0x1e32e6(0x223)?_0x5806c6:_0x5806c6+'';}function h(_0x21a868,_0x24285b,_0x276ae5){return(_0x24285b=m(_0x24285b))in _0x21a868?Object['defineProperty'](_0x21a868,_0x24285b,{'value':_0x276ae5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x21a868[_0x24285b]=_0x276ae5,_0x21a868;}var g=class extends n[_0x5d5271(0x26a)]{constructor(..._0x105410){const _0x56e94f=_0x5d5271;super(..._0x105410),h(this,_0x56e94f(0x27d),new Set()),h(this,_0x56e94f(0x257),new Set());}['registerSharedOperation'](_0x51c3a5){const _0x3b752b=_0x5d5271;return this[_0x3b752b(0x27d)][_0x3b752b(0x294)](_0x51c3a5),(0x0,n[_0x3b752b(0x1ec)])(()=>this[_0x3b752b(0x27d)][_0x3b752b(0x277)](_0x51c3a5));}['registerInitialStateReporter'](_0x440b98){const _0xcbc6fa=_0x5d5271;return this[_0xcbc6fa(0x257)][_0xcbc6fa(0x294)](_0x440b98),(0x0,n[_0xcbc6fa(0x1ec)])(()=>this['_reporters']['delete'](_0x440b98));}[_0x5d5271(0x263)](_0x4704b1){const _0x299632=_0x5d5271;return this[_0x299632(0x27d)][_0x299632(0x230)](_0x4704b1);}[_0x5d5271(0x1ee)](_0x228d4f){const _0x49a90b=_0x5d5271;return Array[_0x49a90b(0x21a)](this[_0x49a90b(0x257)])['map'](_0xe1cdfa=>_0xe1cdfa(_0x228d4f));}};function _(_0x5f37da,_0x181597){return function(_0x6ad20f,_0x4838d2){_0x181597(_0x6ad20f,_0x4838d2,_0x5f37da);};}function v(_0x562ed3,_0x3fffbe,_0x5922a4,_0x2f3da2){const _0x2843e5=_0x5d5271;var _0x2fb42a=arguments[_0x2843e5(0x21c)],_0x2689f9=_0x2fb42a<0x3?_0x3fffbe:_0x2f3da2===null?_0x2f3da2=Object[_0x2843e5(0x254)](_0x3fffbe,_0x5922a4):_0x2f3da2,_0x1af31f;if(typeof Reflect=='object'&&typeof Reflect[_0x2843e5(0x244)]==_0x2843e5(0x25c))_0x2689f9=Reflect[_0x2843e5(0x244)](_0x562ed3,_0x3fffbe,_0x5922a4,_0x2f3da2);else{for(var _0x3471e4=_0x562ed3[_0x2843e5(0x21c)]-0x1;_0x3471e4>=0x0;_0x3471e4--)(_0x1af31f=_0x562ed3[_0x3471e4])&&(_0x2689f9=(_0x2fb42a<0x3?_0x1af31f(_0x2689f9):_0x2fb42a>0x3?_0x1af31f(_0x3fffbe,_0x5922a4,_0x2689f9):_0x1af31f(_0x3fffbe,_0x5922a4))||_0x2689f9);}return _0x2fb42a>0x3&&_0x2689f9&&Object[_0x2843e5(0x279)](_0x3fffbe,_0x5922a4,_0x2689f9),_0x2689f9;}let y=class extends n[_0x5d5271(0x280)]{constructor(_0x13a35b,_0x402c22,_0x29ab51){const _0x48d13c=_0x5d5271;super(),this[_0x48d13c(0x253)]=_0x13a35b,this['_injector']=_0x402c22,this[_0x48d13c(0x241)]=_0x29ab51,h(this,_0x48d13c(0x245),new Map()),this['_init']();}async[_0x5d5271(0x265)](_0x4a9a33){const _0x313b95=_0x5d5271;return this[_0x313b95(0x245)][_0x313b95(0x230)](_0x4a9a33)||await this['_startLiveShareCoordinator'](_0x4a9a33),this[_0x313b95(0x245)][_0x313b95(0x247)](_0x4a9a33);}[_0x5d5271(0x20c)](_0x130dd2){const _0x431821=_0x5d5271;var _0x20f069;return(_0x20f069=this[_0x431821(0x245)][_0x431821(0x247)](_0x130dd2))==null?null:_0x20f069;}[_0x5d5271(0x221)](){const _0x36a387=_0x5d5271;this[_0x36a387(0x253)][_0x36a387(0x215)](n['UniverInstanceType'][_0x36a387(0x214)])[_0x36a387(0x26e)]((0x0,a[_0x36a387(0x1ef)])(this['dispose$']))[_0x36a387(0x217)](async _0x351c09=>{const _0x36c060=_0x36a387;let _0x29c1bc=_0x351c09[_0x36c060(0x21e)][_0x36c060(0x21f)]();this[_0x36c060(0x245)][_0x36c060(0x230)](_0x29c1bc)||this[_0x36c060(0x1f0)](_0x29c1bc);}),this[_0x36a387(0x253)][_0x36a387(0x251)](n[_0x36a387(0x264)][_0x36a387(0x214)])['pipe']((0x0,a['takeUntil'])(this[_0x36a387(0x233)]))[_0x36a387(0x217)](_0x3fc093=>{const _0x2eaec3=_0x36a387;let _0x4e5ae0=_0x3fc093[_0x2eaec3(0x21f)](),_0x52ce84=this[_0x2eaec3(0x245)][_0x2eaec3(0x247)](_0x4e5ae0);_0x52ce84==null||_0x52ce84[_0x2eaec3(0x1ff)]();});}async[_0x5d5271(0x1f0)](_0x57a4b4){const _0x5af126=_0x5d5271;let _0x4bbbed=await this['_collabSessionService']['requireSession'](_0x57a4b4),_0x5b90f7=this[_0x5af126(0x234)]['createInstance'](x,_0x57a4b4,_0x4bbbed);return _0x5b90f7[_0x5af126(0x287)](),this['_entities']['set'](_0x57a4b4,_0x5b90f7),_0x5b90f7;}};y=v([_(0x0,n[_0x5d5271(0x291)]),_(0x1,(0x0,n['Inject'])(n[_0x5d5271(0x293)])),_(0x2,(0x0,n[_0x5d5271(0x255)])(t[_0x5d5271(0x20b)]))],y);let b=function(_0x197304){const _0x1e7561=_0x5d5271;return _0x197304[_0x1e7561(0x1f8)]=_0x1e7561(0x26f),_0x197304['IDLE']=_0x1e7561(0x23a),_0x197304[_0x1e7561(0x219)]=_0x1e7561(0x1fa),_0x197304[_0x1e7561(0x283)]=_0x1e7561(0x252),_0x197304['PRESENTING']=_0x1e7561(0x246),_0x197304;}({}),x=class extends n[_0x5d5271(0x280)]{get[_0x5d5271(0x222)](){const _0x556443=_0x5d5271;return this[_0x556443(0x282)][_0x556443(0x203)]();}constructor(_0x259086,_0x485b15,_0x2c05e3,_0x33f08b,_0x17adc3){const _0x5b6ae5=_0x5d5271;super(),this['_unitID']=_0x259086,this[_0x5b6ae5(0x242)]=_0x485b15,this['_configService']=_0x2c05e3,this[_0x5b6ae5(0x28e)]=_0x33f08b,this['_commandService']=_0x17adc3,h(this,'_status$',new i['BehaviorSubject'](_0x5b6ae5(0x23a))),h(this,_0x5b6ae5(0x20f),this[_0x5b6ae5(0x282)][_0x5b6ae5(0x24e)]()),h(this,_0x5b6ae5(0x221),!0x1),h(this,'_commandDisposable',null),h(this,'_presenter',null);}['dispose'](){const _0x462b6f=_0x5d5271;var _0x8b748;(_0x8b748=this[_0x462b6f(0x213)])==null||_0x8b748[_0x462b6f(0x1ff)](),this[_0x462b6f(0x282)][_0x462b6f(0x237)]('idle'),this['_status$'][_0x462b6f(0x231)]();}[_0x5d5271(0x285)](){const _0xa2e7c=_0x5d5271;return this[_0xa2e7c(0x222)];}[_0x5d5271(0x287)](){const _0x52e16e=_0x5d5271;this[_0x52e16e(0x221)]||(this[_0x52e16e(0x221)]=!0x0,this[_0x52e16e(0x242)][_0x52e16e(0x27b)]['pipe']((0x0,a['takeUntil'])(this[_0x52e16e(0x233)]))[_0x52e16e(0x217)](_0x3a6f4d=>{const _0x5d8f22=_0x52e16e;switch(_0x3a6f4d){case t[_0x5d8f22(0x1e4)][_0x5d8f22(0x1f8)]:this[_0x5d8f22(0x1fc)]();break;case t[_0x5d8f22(0x1e4)][_0x5d8f22(0x24d)]:this[_0x5d8f22(0x27e)]();break;default:}}),this[_0x52e16e(0x242)][_0x52e16e(0x273)]['pipe']((0x0,a['takeUntil'])(this[_0x52e16e(0x233)]))[_0x52e16e(0x217)](_0x1c6982=>{const _0x2f19d1=_0x52e16e;let {eventID:_0x480419}=_0x1c6982;switch(_0x480419){case e[_0x2f19d1(0x248)]['LIVESHARE_NEW_HOST']:this[_0x2f19d1(0x250)](_0x1c6982);break;case e[_0x2f19d1(0x248)][_0x2f19d1(0x235)]:this[_0x2f19d1(0x211)](_0x1c6982);break;case e[_0x2f19d1(0x248)]['LIVESHARE_TERMINATE']:this[_0x2f19d1(0x2a2)]();break;case e[_0x2f19d1(0x248)]['NEW_CHANGESETS']:this[_0x2f19d1(0x22e)](_0x1c6982);break;default:}}));}[_0x5d5271(0x256)](){const _0x591ee5=_0x5d5271;this[_0x591ee5(0x242)]['send']({'eventID':e[_0x591ee5(0x248)][_0x591ee5(0x290)],'data':{'unitID':this[_0x591ee5(0x299)],'userID':this[_0x591ee5(0x242)]['getMemberID']()}},this['_unitID']);}[_0x5d5271(0x276)](){const _0x52d099=_0x5d5271;this[_0x52d099(0x222)]===_0x52d099(0x246)&&(this['_status$']['next'](_0x52d099(0x23a)),this['_collabSession']['send']({'eventID':e[_0x52d099(0x248)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x52d099(0x299)]}},this[_0x52d099(0x299)]));}[_0x5d5271(0x200)](){const _0x2c149f=_0x5d5271;this[_0x2c149f(0x222)]===_0x2c149f(0x252)&&(this[_0x2c149f(0x282)]['next'](_0x2c149f(0x1fa)),this[_0x2c149f(0x286)]());}['stopFollowing'](){const _0x11d114=_0x5d5271;this[_0x11d114(0x222)]===_0x11d114(0x1fa)&&this[_0x11d114(0x275)]();}[_0x5d5271(0x250)](_0x3537ec){const _0x1bf8e3=_0x5d5271;let {presenter:_0x2ab7b2}=_0x3537ec['data'],_0x2d43a4=this[_0x1bf8e3(0x242)][_0x1bf8e3(0x208)]();this[_0x1bf8e3(0x209)]=_0x2ab7b2,_0x2ab7b2===_0x2d43a4?(this[_0x1bf8e3(0x275)](),this[_0x1bf8e3(0x27f)]()):this[_0x1bf8e3(0x222)]!=='not-following'&&(this[_0x1bf8e3(0x25b)](),this[_0x1bf8e3(0x286)]());}[_0x5d5271(0x239)](){const _0x4ebbdf=_0x5d5271;let _0x24251c={'eventID':e[_0x4ebbdf(0x248)][_0x4ebbdf(0x202)]};this[_0x4ebbdf(0x242)][_0x4ebbdf(0x212)](_0x24251c,this[_0x4ebbdf(0x299)]);}[_0x5d5271(0x2a2)](){const _0x5151f7=_0x5d5271;this['_presenter']=null,this[_0x5151f7(0x222)]!==_0x5151f7(0x246)&&this[_0x5151f7(0x204)]();}['_handleNewChangeSets'](_0x46e747){const _0x18b3c0=_0x5d5271;if(this[_0x18b3c0(0x222)]===_0x18b3c0(0x1fa)&&this[_0x18b3c0(0x209)]===_0x46e747['data']['memberID']){let _0x3569f0=(0x0,e[_0x18b3c0(0x26b)])(_0x46e747[_0x18b3c0(0x22a)])[_0x18b3c0(0x1e5)][_0x18b3c0(0x23f)]()[_0x18b3c0(0x240)](_0x553fa8=>_0x553fa8['id']===r[_0x18b3c0(0x1e8)]['id']);if(_0x3569f0){let _0x52f60d=_0x3569f0['params'][_0x18b3c0(0x1f6)],_0x20f850=_0x3569f0[_0x18b3c0(0x278)][_0x18b3c0(0x24b)]['id'];setTimeout(()=>{const _0x48010d=_0x18b3c0;this[_0x48010d(0x1f7)]['executeCommand'](r['SetWorksheetActiveOperation']['id'],{'unitId':_0x52f60d,'subUnitId':_0x20f850},{'fromCollab':!0x0});});}}}[_0x5d5271(0x27f)](){const _0x1268f6=_0x5d5271;var _0x532116;(_0x532116=this[_0x1268f6(0x213)])==null||_0x532116[_0x1268f6(0x1ff)](),this[_0x1268f6(0x282)]['next'](_0x1268f6(0x246));let _0x178ffb=new Map(),_0x15e078=this[_0x1268f6(0x213)]=new n['DisposableCollection']();_0x15e078[_0x1268f6(0x294)]((0x0,n['toDisposable'])(()=>{const _0x26cddd=_0x1268f6;_0x178ffb['forEach'](({subject:_0x39d523,subscription:_0x9e1abc})=>{const _0x34dda8=_0x4057;_0x9e1abc[_0x34dda8(0x260)](),_0x39d523['complete']();}),_0x178ffb[_0x26cddd(0x228)]();})),_0x15e078[_0x1268f6(0x294)](this['_commandService'][_0x1268f6(0x298)](_0x685b17=>{const _0x2860bd=_0x1268f6;if(_0x685b17[_0x2860bd(0x29f)]!==n[_0x2860bd(0x216)][_0x2860bd(0x23b)]||!this['_liveShareService']['shouldShareOperation'](_0x685b17['id']))return;let {id:_0x53da3f}=_0x685b17,_0xba65f3;if(_0x178ffb[_0x2860bd(0x230)](_0x53da3f))_0xba65f3=_0x178ffb[_0x2860bd(0x247)](_0x53da3f)[_0x2860bd(0x232)];else{var _0x2a014d;_0xba65f3=new i[(_0x2860bd(0x269))]();let _0x388129=_0xba65f3[_0x2860bd(0x26e)]((0x0,a[_0x2860bd(0x28f)])((_0x2a014d=this[_0x2860bd(0x207)][_0x2860bd(0x1eb)](_0x2860bd(0x226)))==null?0xc8:_0x2a014d,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x3f3da2=>{const _0x515756=_0x2860bd;this[_0x515756(0x242)]['send']({'eventID':e['CollaborationEvent'][_0x515756(0x235)],'data':{'unitID':this[_0x515756(0x299)],'operations':{[_0x3f3da2['id']]:{'id':_0x3f3da2['id'],'params':JSON[_0x515756(0x229)](_0x3f3da2[_0x515756(0x278)])}}}},this[_0x515756(0x299)]);});_0x178ffb[_0x2860bd(0x261)](_0x53da3f,{'subject':_0xba65f3,'subscription':_0x388129});}_0xba65f3[_0x2860bd(0x237)](_0x685b17);})),this[_0x1268f6(0x28e)][_0x1268f6(0x1ee)](this['_unitID'])[_0x1268f6(0x292)](_0x7d7014=>this[_0x1268f6(0x242)][_0x1268f6(0x212)]({'eventID':e[_0x1268f6(0x248)][_0x1268f6(0x235)],'data':{'unitID':this[_0x1268f6(0x299)],'operations':{[_0x7d7014['id']]:{'id':_0x7d7014['id'],'params':JSON[_0x1268f6(0x229)](_0x7d7014[_0x1268f6(0x278)])}}}},this[_0x1268f6(0x299)]));}[_0x5d5271(0x25b)](){const _0x15e883=_0x5d5271;var _0x3fa4c8;this[_0x15e883(0x282)][_0x15e883(0x237)](_0x15e883(0x23a)),(_0x3fa4c8=this['_commandDisposable'])==null||_0x3fa4c8[_0x15e883(0x1ff)](),this[_0x15e883(0x213)]=null;}[_0x5d5271(0x286)](){const _0x12c89d=_0x5d5271;var _0x1fb638;(_0x1fb638=this[_0x12c89d(0x213)])==null||_0x1fb638[_0x12c89d(0x1ff)](),this[_0x12c89d(0x282)][_0x12c89d(0x237)](_0x12c89d(0x1fa));}[_0x5d5271(0x204)](){const _0x15e7af=_0x5d5271;var _0x28285b;this[_0x15e7af(0x282)][_0x15e7af(0x237)]('idle'),(_0x28285b=this[_0x15e7af(0x213)])==null||_0x28285b[_0x15e7af(0x1ff)](),this[_0x15e7af(0x213)]=null;}['_stopFollowing'](){const _0x53b4a4=_0x5d5271;var _0x9ad4ea;this['_status$'][_0x53b4a4(0x237)](_0x53b4a4(0x252)),(_0x9ad4ea=this[_0x53b4a4(0x213)])==null||_0x9ad4ea[_0x53b4a4(0x1ff)]();}[_0x5d5271(0x211)](_0x5b09d4){const _0x2bb1bf=_0x5d5271;if([_0x2bb1bf(0x246),'not-following',_0x2bb1bf(0x26f)]['includes'](this['_status'])||!_0x5b09d4[_0x2bb1bf(0x22a)][_0x2bb1bf(0x1ed)]||_0x5b09d4[_0x2bb1bf(0x22a)]['presenter']===this[_0x2bb1bf(0x242)][_0x2bb1bf(0x208)]())return;this[_0x2bb1bf(0x222)]==='idle'&&this[_0x2bb1bf(0x286)]();let _0x253df6=_0x5b09d4[_0x2bb1bf(0x22a)]['operations'];Object[_0x2bb1bf(0x296)](_0x253df6)['forEach'](_0x3cdb07=>{const _0xb062db=_0x2bb1bf;this[_0xb062db(0x1f7)]['executeCommand'](_0x3cdb07['id'],_0x3cdb07[_0xb062db(0x278)]?JSON[_0xb062db(0x295)](_0x3cdb07[_0xb062db(0x278)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x56d5fe=_0x5d5271;var _0x3a0f62;this[_0x56d5fe(0x282)][_0x56d5fe(0x237)]('offline'),(_0x3a0f62=this[_0x56d5fe(0x213)])==null||_0x3a0f62[_0x56d5fe(0x1ff)]();}[_0x5d5271(0x27e)](){const _0x3a5001=_0x5d5271;this[_0x3a5001(0x282)][_0x3a5001(0x237)]('idle'),this[_0x3a5001(0x239)]();}};x=v([_(0x2,n[_0x5d5271(0x1f9)]),_(0x3,(0x0,n[_0x5d5271(0x255)])(g)),_(0x4,n['ICommandService'])],x);function _0x4057(_0x2ef9ca,_0x2d2d14){_0x2ef9ca=_0x2ef9ca-0x1e4;const _0x13f465=_0x13f4();let _0x40574a=_0x13f465[_0x2ef9ca];return _0x40574a;}function S(){const _0x3a73cf=_0x5d5271;let _0x2e21bc=(0x0,o[_0x3a73cf(0x274)])(y),_0x2920d0=(0x0,o['useDependency'])(n[_0x3a73cf(0x291)]),_0x20e85f=(0x0,o[_0x3a73cf(0x25f)])(()=>_0x2920d0[_0x3a73cf(0x1f2)](n[_0x3a73cf(0x264)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x271036,_0x31fc07]=(0x0,l[_0x3a73cf(0x2a1)])(null),[_0x30bac1,_0x4b9866]=(0x0,l[_0x3a73cf(0x2a1)])(_0x3a73cf(0x23a)),_0xaea6a3=(0x0,l[_0x3a73cf(0x1fd)])(null);return(0x0,l['useEffect'])(()=>(_0x20e85f&&_0x2e21bc[_0x3a73cf(0x265)](_0x20e85f['getUnitId']())[_0x3a73cf(0x201)](_0x3e7e98=>{const _0x3489c5=_0x3a73cf;_0x31fc07(_0x3e7e98),_0xaea6a3[_0x3489c5(0x1fe)]=_0x3e7e98[_0x3489c5(0x20f)]['subscribe'](_0x4ab0b6=>{_0x4b9866(_0x4ab0b6);});}),()=>{const _0x58ae14=_0x3a73cf;var _0x52f7bf;(_0x52f7bf=_0xaea6a3[_0x58ae14(0x1fe)])==null||_0x52f7bf['unsubscribe'](),_0xaea6a3['current']=null;}),[_0x20e85f,_0x2e21bc]),_0x271036?(0x0,u[_0x3a73cf(0x1fb)])(s['Dropdown'],{'align':_0x3a73cf(0x26d),'disabled':_0x30bac1==='offline','className':_0x3a73cf(0x268),'overlay':(0x0,u[_0x3a73cf(0x1fb)])(C,{'status':_0x30bac1,'coordinator':_0x271036}),'children':(0x0,u[_0x3a73cf(0x1fb)])(_0x3a73cf(0x271),{'className':(0x0,s['clsx'])('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x30bac1===_0x3a73cf(0x26f),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x30bac1!==_0x3a73cf(0x26f)}),'type':_0x3a73cf(0x271),'children':(0x0,u['jsx'])(c['LiveShareIcon'],{})})}):null;}function C(_0x26dc97){const _0x3749e2=_0x5d5271;let {status:_0x32ecf8,coordinator:_0x5073c0}=_0x26dc97;switch(_0x32ecf8){case _0x3749e2(0x23a):return(0x0,u[_0x3749e2(0x1fb)])(w,{'coordinator':_0x5073c0});case _0x3749e2(0x1fa):return(0x0,u[_0x3749e2(0x1fb)])(T,{'coordinator':_0x5073c0});case _0x3749e2(0x252):return(0x0,u[_0x3749e2(0x1fb)])(E,{'coordinator':_0x5073c0});case'offline':return(0x0,u['jsx'])(O,{});case _0x3749e2(0x246):return(0x0,u[_0x3749e2(0x1fb)])(D,{'coordinator':_0x5073c0});default:return null;}}function w(_0x36ddca){const _0xf09a4d=_0x5d5271;let {coordinator:_0x419573}=_0x36ddca;return(0x0,u[_0xf09a4d(0x25a)])(u[_0xf09a4d(0x206)],{'children':[(0x0,u[_0xf09a4d(0x1fb)])('div',{'className':_0xf09a4d(0x284),'children':_0xf09a4d(0x270)}),(0x0,u[_0xf09a4d(0x1fb)])(s[_0xf09a4d(0x1e6)],{'onClick':()=>_0x419573[_0xf09a4d(0x256)](),'children':_0xf09a4d(0x20a)})]});}function T(_0x598cdb){const _0x23bf6d=_0x5d5271;let {coordinator:_0x42af2c}=_0x598cdb;return(0x0,u[_0x23bf6d(0x25a)])(u['Fragment'],{'children':[(0x0,u[_0x23bf6d(0x1fb)])('div',{'className':_0x23bf6d(0x284),'children':_0x23bf6d(0x1f4)}),(0x0,u[_0x23bf6d(0x1fb)])(s[_0x23bf6d(0x1e6)],{'onClick':()=>_0x42af2c[_0x23bf6d(0x288)](),'children':_0x23bf6d(0x20e)})]});}function E(_0x201e71){const _0x1a4051=_0x5d5271;let {coordinator:_0xf60763}=_0x201e71;return(0x0,u[_0x1a4051(0x25a)])(u[_0x1a4051(0x206)],{'children':[(0x0,u[_0x1a4051(0x1fb)])(_0x1a4051(0x297),{'className':_0x1a4051(0x284),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),(0x0,u[_0x1a4051(0x1fb)])(s[_0x1a4051(0x1e6)],{'variant':_0x1a4051(0x29c),'onClick':()=>_0xf60763[_0x1a4051(0x200)](),'children':'Start\x20following'})]});}function D(_0x719b8e){const _0x1ee59f=_0x5d5271;let {coordinator:_0x2e3c01}=_0x719b8e;return(0x0,u[_0x1ee59f(0x25a)])(u[_0x1ee59f(0x206)],{'children':[(0x0,u[_0x1ee59f(0x1fb)])('div',{'className':_0x1ee59f(0x284),'children':_0x1ee59f(0x1e9)}),(0x0,u['jsx'])(s[_0x1ee59f(0x1e6)],{'variant':_0x1ee59f(0x210),'onClick':()=>_0x2e3c01[_0x1ee59f(0x276)](),'children':'Stop\x20presenting'})]});}function O(){const _0x3decd5=_0x5d5271;return(0x0,u[_0x3decd5(0x1fb)])(u[_0x3decd5(0x206)],{'children':'You\x27are\x20offline.'});}let k=class extends n['Disposable']{constructor(_0x434dd1,_0x5e4ba3){const _0x30c756=_0x5d5271;super(),this[_0x30c756(0x234)]=_0x434dd1,this[_0x30c756(0x1f3)]=_0x5e4ba3,this[_0x30c756(0x259)]();}[_0x5d5271(0x259)](){const _0x33dc30=_0x5d5271;this['disposeWithMe'](this[_0x33dc30(0x1f3)][_0x33dc30(0x20d)](o[_0x33dc30(0x272)]['HEADER_MENU'],()=>(0x0,o['connectInjector'])(S,this[_0x33dc30(0x234)])));}};k=v([_(0x0,(0x0,n[_0x5d5271(0x255)])(n[_0x5d5271(0x293)])),_(0x1,o[_0x5d5271(0x258)])],k);var A=_0x5d5271(0x218),j=_0x5d5271(0x28d);const M={};let N=class extends n['Disposable']{constructor(_0x29fedb){const _0x47259e=_0x5d5271;super(),this[_0x47259e(0x28e)]=_0x29fedb,this[_0x47259e(0x221)]();}[_0x5d5271(0x221)](){const _0x597f78=_0x5d5271;[d[_0x597f78(0x23c)]['id'],d[_0x597f78(0x22b)]['id'],r[_0x597f78(0x29a)]['id']][_0x597f78(0x292)](_0x20ddc4=>{const _0xf4177=_0x597f78;this[_0xf4177(0x249)](this['_liveShareService']['registerSharedOperation'](_0x20ddc4));});}};N=v([_(0x0,(0x0,n[_0x5d5271(0x255)])(g))],N);let P=class extends n[_0x5d5271(0x23e)]{constructor(_0x246465=M,_0x3b6384,_0x5bed58){const _0x578956=_0x5d5271;super(),this['_config']=_0x246465,this[_0x578956(0x234)]=_0x3b6384,this[_0x578956(0x207)]=_0x5bed58;let {..._0x205669}=(0x0,n[_0x578956(0x26c)])({},M,this[_0x578956(0x25d)]);this[_0x578956(0x207)][_0x578956(0x28a)](_0x578956(0x29d),_0x205669);}[_0x5d5271(0x27c)](){const _0x21c97c=_0x5d5271;(0x0,n[_0x21c97c(0x29b)])(this[_0x21c97c(0x234)],(0x0,n[_0x21c97c(0x1f5)])([[g],[y],[N],[k]],this[_0x21c97c(0x25d)][_0x21c97c(0x281)])),(0x0,n[_0x21c97c(0x1e7)])(this[_0x21c97c(0x234)],[[N]]);}[_0x5d5271(0x205)](){const _0x592db0=_0x5d5271;(0x0,n[_0x592db0(0x1e7)])(this[_0x592db0(0x234)],[[k]]);}};h(P,_0x5d5271(0x29f),n[_0x5d5271(0x264)]['UNIVER_UNKNOWN']),h(P,_0x5d5271(0x224),_0x5d5271(0x22c)),h(P,'packageName',A),h(P,_0x5d5271(0x24f),j),P=v([(0x0,n[_0x5d5271(0x22f)])(t[_0x5d5271(0x238)]),_(0x1,(0x0,n['Inject'])(n[_0x5d5271(0x293)])),_(0x2,n[_0x5d5271(0x1f9)])],P),Object[_0x5d5271(0x279)](exports,_0x5d5271(0x220),{'enumerable':!0x0,'get':function(){return k;}}),exports[_0x5d5271(0x23d)]=S,Object['defineProperty'](exports,'LiveShareController',{'enumerable':!0x0,'get':function(){return y;}}),Object['defineProperty'](exports,'LiveShareCoordinator',{'enumerable':!0x0,'get':function(){return x;}}),exports[_0x5d5271(0x2a0)]=g,exports['LiveShareStatus']=b,Object[_0x5d5271(0x279)](exports,_0x5d5271(0x28b),{'enumerable':!0x0,'get':function(){return P;}});
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x4230ab=_0x4d7f;(function(_0xc11408,_0x9afe8b){const _0x38fe34=_0x4d7f,_0x5b1d1a=_0xc11408();while(!![]){try{const _0x2b9270=-parseInt(_0x38fe34(0x19e))/0x1*(parseInt(_0x38fe34(0x19a))/0x2)+-parseInt(_0x38fe34(0x1b4))/0x3+parseInt(_0x38fe34(0x1a0))/0x4*(parseInt(_0x38fe34(0x1b3))/0x5)+parseInt(_0x38fe34(0x1b8))/0x6+parseInt(_0x38fe34(0x19c))/0x7*(-parseInt(_0x38fe34(0x1a7))/0x8)+parseInt(_0x38fe34(0x19b))/0x9+-parseInt(_0x38fe34(0x1af))/0xa*(-parseInt(_0x38fe34(0x1a6))/0xb);if(_0x2b9270===_0x9afe8b)break;else _0x5b1d1a['push'](_0x5b1d1a['shift']());}catch(_0x32edb4){_0x5b1d1a['push'](_0x5b1d1a['shift']());}}}(_0x4e90,0x78b03));import{LiveShareController as _0x48788c,LiveShareStatus as _0xf80c85}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x14008c,UniverInstanceType as _0x454af0}from'@univerjs/core';function _0x4d7f(_0x3a3295,_0x25d797){_0x3a3295=_0x3a3295-0x198;const _0x4e9005=_0x4e90();let _0x4d7f1e=_0x4e9005[_0x3a3295];return _0x4d7f1e;}import{FEnum as _0x23328a,FUniver as _0x27d841}from'@univerjs/core/facade';function o(_0x14c7d2){'@babel/helpers - typeof';const _0x2d0aea=_0x4d7f;return o=typeof Symbol==_0x2d0aea(0x19d)&&typeof Symbol[_0x2d0aea(0x1ae)]==_0x2d0aea(0x1a1)?function(_0xffbf65){return typeof _0xffbf65;}:function(_0x3273e7){const _0x50f874=_0x2d0aea;return _0x3273e7&&typeof Symbol==_0x50f874(0x19d)&&_0x3273e7['constructor']===Symbol&&_0x3273e7!==Symbol[_0x50f874(0x1b0)]?'symbol':typeof _0x3273e7;},o(_0x14c7d2);}function _0x4e90(){const _0x23cde2=['@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','extend','_liveShareController','get','startPresenting','No\x20active\x20workbook\x20found.','24398VrCtjv','1030689rAGlqP','201901wjswQQ','function','53mwQzNO','object','4GeIbzd','symbol','string','LiveShareStatusEnum','getLiveShareStatus','defineProperty','4651889mwCjFs','88PbUDic','getStatus','getLiveShareCoordinatorSync','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','UNIVER_SHEET','_injector','tryStartPresenting','iterator','40ZhLPSK','prototype','IDLE','stopPresenting','389135kOsevZ','2355750rsYCfI','_initialize','stopFollowing','getCurrentUnitOfType','2156790TiPhjS','getUnitId'];_0x4e90=function(){return _0x23cde2;};return _0x4e90();}function s(_0x5a2645,_0x39e7d2){const _0x5b53bf=_0x4d7f;if(o(_0x5a2645)!=_0x5b53bf(0x19f)||!_0x5a2645)return _0x5a2645;var _0x3e1176=_0x5a2645[Symbol['toPrimitive']];if(_0x3e1176!==void 0x0){var _0x30bc36=_0x3e1176['call'](_0x5a2645,_0x39e7d2||'default');if(o(_0x30bc36)!=_0x5b53bf(0x19f))return _0x30bc36;throw TypeError(_0x5b53bf(0x1ba));}return(_0x39e7d2===_0x5b53bf(0x1a2)?String:Number)(_0x5a2645);}function c(_0x3f6610){var _0x35e888=s(_0x3f6610,'string');return o(_0x35e888)=='symbol'?_0x35e888:_0x35e888+'';}function l(_0x82750f,_0x1a3a57,_0x4c652c){const _0x97a2a0=_0x4d7f;return(_0x1a3a57=c(_0x1a3a57))in _0x82750f?Object[_0x97a2a0(0x1a5)](_0x82750f,_0x1a3a57,{'value':_0x4c652c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x82750f[_0x1a3a57]=_0x4c652c,_0x82750f;}var u=class extends _0x27d841{constructor(..._0x17a628){const _0x25f7ec=_0x4d7f;super(..._0x17a628),l(this,_0x25f7ec(0x1bc),void 0x0);}[_0x4230ab(0x1b5)](_0x371262){const _0x33a8bf=_0x4230ab;this[_0x33a8bf(0x1bc)]=_0x371262[_0x33a8bf(0x1bd)](_0x48788c);}[_0x4230ab(0x1a4)](){const _0x45904a=_0x4230ab;var _0x3159e0;let _0x499676=this[_0x45904a(0x1ac)][_0x45904a(0x1bd)](_0x14008c)[_0x45904a(0x1b7)](_0x454af0[_0x45904a(0x1ab)]);if(!_0x499676)throw Error(_0x45904a(0x199));let _0x5dd476=_0x499676[_0x45904a(0x1b9)](),_0x2f894f=this[_0x45904a(0x1bc)][_0x45904a(0x1a9)](_0x5dd476);return(_0x3159e0=_0x2f894f==null?void 0x0:_0x2f894f[_0x45904a(0x1a8)]())==null?_0xf80c85[_0x45904a(0x1b1)]:_0x3159e0;}['startFollowing'](){const _0xac4e73=_0x4230ab;let _0x3ba3ac=this[_0xac4e73(0x1ac)][_0xac4e73(0x1bd)](_0x14008c)['getCurrentUnitOfType'](_0x454af0['UNIVER_SHEET']);if(!_0x3ba3ac)throw Error(_0xac4e73(0x199));let _0x310149=_0x3ba3ac[_0xac4e73(0x1b9)](),_0x4452a3=this[_0xac4e73(0x1bc)]['getLiveShareCoordinatorSync'](_0x310149);if(!_0x4452a3)throw Error(_0xac4e73(0x1aa));_0x4452a3['startFollowing']();}[_0x4230ab(0x1b6)](){const _0x46c0c2=_0x4230ab;let _0x423aa1=this[_0x46c0c2(0x1ac)][_0x46c0c2(0x1bd)](_0x14008c)[_0x46c0c2(0x1b7)](_0x454af0['UNIVER_SHEET']);if(!_0x423aa1)throw Error(_0x46c0c2(0x199));let _0x48a972=_0x423aa1[_0x46c0c2(0x1b9)](),_0x4cdaae=this[_0x46c0c2(0x1bc)]['getLiveShareCoordinatorSync'](_0x48a972);if(!_0x4cdaae)throw Error(_0x46c0c2(0x1aa));_0x4cdaae[_0x46c0c2(0x1b6)]();}[_0x4230ab(0x198)](){const _0x169c08=_0x4230ab;let _0xde028c=this[_0x169c08(0x1ac)]['get'](_0x14008c)[_0x169c08(0x1b7)](_0x454af0[_0x169c08(0x1ab)]);if(!_0xde028c)throw Error(_0x169c08(0x199));let _0xf450aa=_0xde028c[_0x169c08(0x1b9)](),_0x5551fe=this['_liveShareController']['getLiveShareCoordinatorSync'](_0xf450aa);if(!_0x5551fe)throw Error(_0x169c08(0x1aa));_0x5551fe[_0x169c08(0x1ad)]();}['stopPresenting'](){const _0x358993=_0x4230ab;let _0x4d33b3=this[_0x358993(0x1ac)][_0x358993(0x1bd)](_0x14008c)['getCurrentUnitOfType'](_0x454af0['UNIVER_SHEET']);if(!_0x4d33b3)throw Error(_0x358993(0x199));let _0x24b69f=_0x4d33b3['getUnitId'](),_0x2e3862=this[_0x358993(0x1bc)][_0x358993(0x1a9)](_0x24b69f);if(!_0x2e3862)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2e3862[_0x358993(0x1b2)]();}};_0x27d841[_0x4230ab(0x1bb)](u);var d=class extends _0x23328a{get[_0x4230ab(0x1a3)](){return _0xf80c85;}};_0x23328a[_0x4230ab(0x1bb)](d);export{};
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3a51e2=_0x4f04;(function(_0x7c94c4,_0x9fd205){const _0x517d9e=_0x4f04,_0x11008d=_0x7c94c4();while(!![]){try{const _0x4b19f5=-parseInt(_0x517d9e(0x129))/0x1*(-parseInt(_0x517d9e(0x15b))/0x2)+-parseInt(_0x517d9e(0x13f))/0x3*(-parseInt(_0x517d9e(0x16e))/0x4)+parseInt(_0x517d9e(0x181))/0x5*(parseInt(_0x517d9e(0x189))/0x6)+parseInt(_0x517d9e(0x175))/0x7+-parseInt(_0x517d9e(0x17e))/0x8*(parseInt(_0x517d9e(0x112))/0x9)+-parseInt(_0x517d9e(0x139))/0xa+-parseInt(_0x517d9e(0x121))/0xb;if(_0x4b19f5===_0x9fd205)break;else _0x11008d['push'](_0x11008d['shift']());}catch(_0x2953e4){_0x11008d['push'](_0x11008d['shift']());}}}(_0x3355,0x832fa));import{CommandType as _0x7f38d3,DependentOn as _0x4c3c0f,Disposable as _0x4a49fb,DisposableCollection as _0x18665d,ICommandService as _0x3b1e83,IConfigService as _0x57549a,IUniverInstanceService as _0x4621f9,Inject as _0x3840c8,Injector as _0x368b3b,Plugin as _0x4e113b,RxDisposable as _0x1e9a11,UniverInstanceType as _0x17f2f1,merge as _0x5aed77,mergeOverrideWithDependencies as _0x168dbe,registerDependencies as _0x127fa5,toDisposable as _0x4d1eee,touchDependencies as _0x337d60}from'@univerjs/core';import{BuiltInUIPart as _0x377270,IUIPartsService as _0x2e12cf,connectInjector as _0x7d9cd6,useDependency as _0x47178f,useObservable as _0x557da8}from'@univerjs/ui';function _0x4f04(_0x57b70f,_0x541404){_0x57b70f=_0x57b70f-0x106;const _0x33556f=_0x3355();let _0x4f044c=_0x33556f[_0x57b70f];return _0x4f044c;}import{Button as _0x1c8cae,Dropdown as _0x8acd69,clsx as _0x59885a}from'@univerjs/design';import{LiveShareIcon as _0x22016b}from'@univerjs/icons';import{useEffect as _0xa54735,useRef as _0x18e2b4,useState as _0x358d85}from'react';import{CollaborationEvent as _0x190d08,parseProtocolChangeset as _0x426c25}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x2d443c,SessionStatus as _0x193eec,UniverCollaborationClientPlugin as _0x9355f0}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x228261,SetWorksheetActiveOperation as _0x519c92}from'@univerjs/sheets';import{BehaviorSubject as _0x5a7d17,Subject as _0x574717}from'rxjs';import{takeUntil as _0x1bbe95,throttleTime as _0x409197}from'rxjs/operators';import{Fragment as _0x16c28a,jsx as _0xe94489,jsxs as _0x3b4390}from'react/jsx-runtime';import{SetScrollOperation as _0x13b133,SetZoomRatioOperation as _0x35525e}from'@univerjs/sheets-ui';function R(_0x40bae0){'@babel/helpers - typeof';const _0x2359fe=_0x4f04;return R=typeof Symbol==_0x2359fe(0x18b)&&typeof Symbol[_0x2359fe(0x120)]==_0x2359fe(0x194)?function(_0x145bbf){return typeof _0x145bbf;}:function(_0x524d37){const _0x45a1ad=_0x2359fe;return _0x524d37&&typeof Symbol=='function'&&_0x524d37[_0x45a1ad(0x179)]===Symbol&&_0x524d37!==Symbol[_0x45a1ad(0x143)]?_0x45a1ad(0x194):typeof _0x524d37;},R(_0x40bae0);}function z(_0x5e38e2,_0xd45460){const _0x3d6ea6=_0x4f04;if(R(_0x5e38e2)!=_0x3d6ea6(0x115)||!_0x5e38e2)return _0x5e38e2;var _0x580a8c=_0x5e38e2[Symbol['toPrimitive']];if(_0x580a8c!==void 0x0){var _0x1020fb=_0x580a8c[_0x3d6ea6(0x15d)](_0x5e38e2,_0xd45460||_0x3d6ea6(0x16b));if(R(_0x1020fb)!='object')return _0x1020fb;throw TypeError(_0x3d6ea6(0x165));}return(_0xd45460===_0x3d6ea6(0x197)?String:Number)(_0x5e38e2);}function B(_0x3058f0){var _0x56af65=z(_0x3058f0,'string');return R(_0x56af65)=='symbol'?_0x56af65:_0x56af65+'';}function V(_0x37da58,_0x440c93,_0x55f37b){return(_0x440c93=B(_0x440c93))in _0x37da58?Object['defineProperty'](_0x37da58,_0x440c93,{'value':_0x55f37b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x37da58[_0x440c93]=_0x55f37b,_0x37da58;}var H=class extends _0x4a49fb{constructor(..._0x128230){const _0x195211=_0x4f04;super(..._0x128230),V(this,_0x195211(0x162),new Set()),V(this,_0x195211(0x196),new Set());}[_0x3a51e2(0x138)](_0x29075c){const _0x34ac9b=_0x3a51e2;return this['_sharedOperations']['add'](_0x29075c),_0x4d1eee(()=>this[_0x34ac9b(0x162)][_0x34ac9b(0x163)](_0x29075c));}[_0x3a51e2(0x166)](_0x26e81f){const _0x52e67d=_0x3a51e2;return this['_reporters']['add'](_0x26e81f),_0x4d1eee(()=>this[_0x52e67d(0x196)]['delete'](_0x26e81f));}[_0x3a51e2(0x133)](_0x3bc063){const _0x39f892=_0x3a51e2;return this[_0x39f892(0x162)][_0x39f892(0x14a)](_0x3bc063);}[_0x3a51e2(0x180)](_0x22d7e7){const _0x43d20c=_0x3a51e2;return Array[_0x43d20c(0x106)](this[_0x43d20c(0x196)])['map'](_0x3cfc32=>_0x3cfc32(_0x22d7e7));}};function U(_0x21ac22,_0x5300cb){return function(_0x333287,_0x5490a9){_0x5300cb(_0x333287,_0x5490a9,_0x21ac22);};}function W(_0x435b2e,_0x32a2c4,_0x52d947,_0x43f3ba){const _0x5210b2=_0x3a51e2;var _0x1a58cb=arguments[_0x5210b2(0x155)],_0x32a8fc=_0x1a58cb<0x3?_0x32a2c4:_0x43f3ba===null?_0x43f3ba=Object[_0x5210b2(0x18a)](_0x32a2c4,_0x52d947):_0x43f3ba,_0x5f0cfb;if(typeof Reflect==_0x5210b2(0x115)&&typeof Reflect[_0x5210b2(0x18d)]==_0x5210b2(0x18b))_0x32a8fc=Reflect[_0x5210b2(0x18d)](_0x435b2e,_0x32a2c4,_0x52d947,_0x43f3ba);else{for(var _0x1c3fe9=_0x435b2e[_0x5210b2(0x155)]-0x1;_0x1c3fe9>=0x0;_0x1c3fe9--)(_0x5f0cfb=_0x435b2e[_0x1c3fe9])&&(_0x32a8fc=(_0x1a58cb<0x3?_0x5f0cfb(_0x32a8fc):_0x1a58cb>0x3?_0x5f0cfb(_0x32a2c4,_0x52d947,_0x32a8fc):_0x5f0cfb(_0x32a2c4,_0x52d947))||_0x32a8fc);}return _0x1a58cb>0x3&&_0x32a8fc&&Object[_0x5210b2(0x17f)](_0x32a2c4,_0x52d947,_0x32a8fc),_0x32a8fc;}let G=class extends _0x1e9a11{constructor(_0x2d0d1b,_0x3c9550,_0x24da43){const _0xd924e6=_0x3a51e2;super(),this[_0xd924e6(0x12e)]=_0x2d0d1b,this[_0xd924e6(0x10e)]=_0x3c9550,this[_0xd924e6(0x110)]=_0x24da43,V(this,_0xd924e6(0x11c),new Map()),this[_0xd924e6(0x188)]();}async['getLiveShareCoordinator'](_0x19eded){const _0x552abb=_0x3a51e2;return this['_entities'][_0x552abb(0x14a)](_0x19eded)||await this[_0x552abb(0x11d)](_0x19eded),this[_0x552abb(0x11c)][_0x552abb(0x183)](_0x19eded);}[_0x3a51e2(0x134)](_0x5a9c67){const _0x31d597=_0x3a51e2;var _0x36e5c1;return(_0x36e5c1=this[_0x31d597(0x11c)][_0x31d597(0x183)](_0x5a9c67))==null?null:_0x36e5c1;}['_init'](){const _0x430e38=_0x3a51e2;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x17f2f1[_0x430e38(0x158)])[_0x430e38(0x10a)](_0x1bbe95(this[_0x430e38(0x191)]))[_0x430e38(0x19a)](async _0x8c48c7=>{const _0x4fca02=_0x430e38;let _0x389370=_0x8c48c7['unit']['getUnitId']();this['_entities'][_0x4fca02(0x14a)](_0x389370)||this['_startLiveShareCoordinator'](_0x389370);}),this[_0x430e38(0x12e)]['getTypeOfUnitDisposed$'](_0x17f2f1[_0x430e38(0x158)])[_0x430e38(0x10a)](_0x1bbe95(this['dispose$']))[_0x430e38(0x19a)](_0x1b0592=>{const _0x219248=_0x430e38;let _0x154f02=_0x1b0592['getUnitId'](),_0x2763e1=this[_0x219248(0x11c)][_0x219248(0x183)](_0x154f02);_0x2763e1==null||_0x2763e1[_0x219248(0x13a)]();});}async[_0x3a51e2(0x11d)](_0x206541){const _0x4077cb=_0x3a51e2;let _0x299bd5=await this[_0x4077cb(0x110)][_0x4077cb(0x14c)](_0x206541),_0x23fb35=this[_0x4077cb(0x10e)][_0x4077cb(0x16d)](q,_0x206541,_0x299bd5);return _0x23fb35[_0x4077cb(0x11a)](),this['_entities'][_0x4077cb(0x192)](_0x206541,_0x23fb35),_0x23fb35;}};G=W([U(0x0,_0x4621f9),U(0x1,_0x3840c8(_0x368b3b)),U(0x2,_0x3840c8(_0x2d443c))],G);let K=function(_0x40e7e5){const _0x1707de=_0x3a51e2;return _0x40e7e5[_0x1707de(0x141)]='offline',_0x40e7e5[_0x1707de(0x117)]=_0x1707de(0x151),_0x40e7e5[_0x1707de(0x186)]=_0x1707de(0x160),_0x40e7e5[_0x1707de(0x150)]=_0x1707de(0x12a),_0x40e7e5[_0x1707de(0x154)]=_0x1707de(0x156),_0x40e7e5;}({}),q=class extends _0x1e9a11{get[_0x3a51e2(0x140)](){const _0x2b6524=_0x3a51e2;return this[_0x2b6524(0x17c)][_0x2b6524(0x18f)]();}constructor(_0x43e65f,_0x369a37,_0x393d64,_0x434708,_0x40b832){const _0x3e3032=_0x3a51e2;super(),this[_0x3e3032(0x164)]=_0x43e65f,this[_0x3e3032(0x119)]=_0x369a37,this['_configService']=_0x393d64,this[_0x3e3032(0x136)]=_0x434708,this[_0x3e3032(0x108)]=_0x40b832,V(this,_0x3e3032(0x17c),new _0x5a7d17(_0x3e3032(0x151))),V(this,_0x3e3032(0x12c),this['_status$']['asObservable']()),V(this,'_init',!0x1),V(this,_0x3e3032(0x116),null),V(this,_0x3e3032(0x10c),null);}[_0x3a51e2(0x13a)](){const _0x284d01=_0x3a51e2;var _0x5ab5ee;(_0x5ab5ee=this[_0x284d01(0x116)])==null||_0x5ab5ee[_0x284d01(0x13a)](),this['_status$'][_0x284d01(0x159)](_0x284d01(0x151)),this[_0x284d01(0x17c)][_0x284d01(0x12d)]();}[_0x3a51e2(0x170)](){const _0x35afb5=_0x3a51e2;return this[_0x35afb5(0x140)];}[_0x3a51e2(0x11a)](){const _0x41b569=_0x3a51e2;this[_0x41b569(0x188)]||(this[_0x41b569(0x188)]=!0x0,this['_collabSession']['sessionStatus$']['pipe'](_0x1bbe95(this[_0x41b569(0x191)]))[_0x41b569(0x19a)](_0x4b2061=>{const _0x451f48=_0x41b569;switch(_0x4b2061){case _0x193eec['OFFLINE']:this[_0x451f48(0x124)]();break;case _0x193eec[_0x451f48(0x127)]:this[_0x451f48(0x152)]();break;default:}}),this['_collabSession'][_0x41b569(0x142)]['pipe'](_0x1bbe95(this['dispose$']))[_0x41b569(0x19a)](_0x4a7ee4=>{const _0x13c775=_0x41b569;let {eventID:_0x24563a}=_0x4a7ee4;switch(_0x24563a){case _0x190d08[_0x13c775(0x137)]:this[_0x13c775(0x195)](_0x4a7ee4);break;case _0x190d08[_0x13c775(0x114)]:this[_0x13c775(0x144)](_0x4a7ee4);break;case _0x190d08[_0x13c775(0x161)]:this['_handleTerminate']();break;case _0x190d08[_0x13c775(0x125)]:this[_0x13c775(0x123)](_0x4a7ee4);break;default:}}));}['tryStartPresenting'](){const _0x2d4d04=_0x3a51e2;this[_0x2d4d04(0x119)][_0x2d4d04(0x185)]({'eventID':_0x190d08['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x2d4d04(0x119)][_0x2d4d04(0x13c)]()}},this[_0x2d4d04(0x164)]);}[_0x3a51e2(0x146)](){const _0x10bfec=_0x3a51e2;this['_status']===_0x10bfec(0x156)&&(this[_0x10bfec(0x17c)][_0x10bfec(0x159)]('idle'),this[_0x10bfec(0x119)][_0x10bfec(0x185)]({'eventID':_0x190d08[_0x10bfec(0x161)],'data':{'unitID':this[_0x10bfec(0x164)]}},this[_0x10bfec(0x164)]));}[_0x3a51e2(0x171)](){const _0x11a72a=_0x3a51e2;this['_status']===_0x11a72a(0x12a)&&(this[_0x11a72a(0x17c)][_0x11a72a(0x159)](_0x11a72a(0x160)),this[_0x11a72a(0x187)]());}[_0x3a51e2(0x157)](){const _0x14eacd=_0x3a51e2;this[_0x14eacd(0x140)]===_0x14eacd(0x160)&&this['_stopFollowing']();}['_handleNewHost'](_0x1651f0){const _0x4dc404=_0x3a51e2;let {presenter:_0x1ecdee}=_0x1651f0[_0x4dc404(0x16f)],_0x5d5e28=this[_0x4dc404(0x119)][_0x4dc404(0x13c)]();this[_0x4dc404(0x10c)]=_0x1ecdee,_0x1ecdee===_0x5d5e28?(this[_0x4dc404(0x131)](),this[_0x4dc404(0x15a)]()):this[_0x4dc404(0x140)]!==_0x4dc404(0x12a)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x3a51e2(0x126)](){const _0x25250c=_0x3a51e2;let _0x590b56={'eventID':_0x190d08['LIVESHARE_FETCH_OPERATIONS']};this[_0x25250c(0x119)][_0x25250c(0x185)](_0x590b56,this[_0x25250c(0x164)]);}[_0x3a51e2(0x10d)](){const _0x13d2fb=_0x3a51e2;this['_presenter']=null,this[_0x13d2fb(0x140)]!==_0x13d2fb(0x156)&&this['_beIdle']();}[_0x3a51e2(0x123)](_0x163903){const _0x27382b=_0x3a51e2;if(this['_status']===_0x27382b(0x160)&&this[_0x27382b(0x10c)]===_0x163903[_0x27382b(0x16f)][_0x27382b(0x147)]){let _0x5b1cf6=_0x426c25(_0x163903[_0x27382b(0x16f)])[_0x27382b(0x173)][_0x27382b(0x14b)]()[_0x27382b(0x132)](_0x362b5a=>_0x362b5a['id']===_0x228261['id']);if(_0x5b1cf6){let _0x29c4b0=_0x5b1cf6[_0x27382b(0x130)][_0x27382b(0x17a)],_0x30543d=_0x5b1cf6[_0x27382b(0x130)]['sheet']['id'];setTimeout(()=>{const _0x1e70fe=_0x27382b;this[_0x1e70fe(0x108)][_0x1e70fe(0x128)](_0x519c92['id'],{'unitId':_0x29c4b0,'subUnitId':_0x30543d},{'fromCollab':!0x0});});}}}[_0x3a51e2(0x15a)](){const _0x34a16d=_0x3a51e2;var _0x463490;(_0x463490=this[_0x34a16d(0x116)])==null||_0x463490[_0x34a16d(0x13a)](),this[_0x34a16d(0x17c)][_0x34a16d(0x159)]('presenting');let _0x453ff6=new Map(),_0x3da532=this[_0x34a16d(0x116)]=new _0x18665d();_0x3da532[_0x34a16d(0x19c)](_0x4d1eee(()=>{const _0x232b80=_0x34a16d;_0x453ff6[_0x232b80(0x167)](({subject:_0x56c9e4,subscription:_0x41f52d})=>{const _0x170c8c=_0x232b80;_0x41f52d[_0x170c8c(0x16c)](),_0x56c9e4[_0x170c8c(0x12d)]();}),_0x453ff6[_0x232b80(0x198)]();})),_0x3da532[_0x34a16d(0x19c)](this[_0x34a16d(0x108)][_0x34a16d(0x190)](_0x3b026b=>{const _0x751393=_0x34a16d;if(_0x3b026b[_0x751393(0x13e)]!==_0x7f38d3[_0x751393(0x135)]||!this[_0x751393(0x136)][_0x751393(0x133)](_0x3b026b['id']))return;let {id:_0x278cb3}=_0x3b026b,_0x4db587;if(_0x453ff6[_0x751393(0x14a)](_0x278cb3))_0x4db587=_0x453ff6[_0x751393(0x183)](_0x278cb3)[_0x751393(0x11e)];else{var _0x465484;_0x4db587=new _0x574717();let _0x4fe22a=_0x4db587[_0x751393(0x10a)](_0x409197((_0x465484=this[_0x751393(0x15c)][_0x751393(0x145)](_0x751393(0x177)))==null?0xc8:_0x465484,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x751393(0x19a)](_0x76ef33=>{const _0x4b7ab0=_0x751393;this[_0x4b7ab0(0x119)][_0x4b7ab0(0x185)]({'eventID':_0x190d08[_0x4b7ab0(0x114)],'data':{'unitID':this[_0x4b7ab0(0x164)],'operations':{[_0x76ef33['id']]:{'id':_0x76ef33['id'],'params':JSON['stringify'](_0x76ef33['params'])}}}},this['_unitID']);});_0x453ff6[_0x751393(0x192)](_0x278cb3,{'subject':_0x4db587,'subscription':_0x4fe22a});}_0x4db587[_0x751393(0x159)](_0x3b026b);})),this['_liveShareService'][_0x34a16d(0x180)](this[_0x34a16d(0x164)])[_0x34a16d(0x167)](_0x45d99e=>this[_0x34a16d(0x119)]['send']({'eventID':_0x190d08['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x34a16d(0x164)],'operations':{[_0x45d99e['id']]:{'id':_0x45d99e['id'],'params':JSON['stringify'](_0x45d99e['params'])}}}},this[_0x34a16d(0x164)]));}['_stopPresenting'](){const _0x32eb23=_0x3a51e2;var _0x99d5cc;this[_0x32eb23(0x17c)][_0x32eb23(0x159)](_0x32eb23(0x151)),(_0x99d5cc=this[_0x32eb23(0x116)])==null||_0x99d5cc[_0x32eb23(0x13a)](),this[_0x32eb23(0x116)]=null;}[_0x3a51e2(0x187)](){const _0x498ad6=_0x3a51e2;var _0x4528be;(_0x4528be=this[_0x498ad6(0x116)])==null||_0x4528be[_0x498ad6(0x13a)](),this[_0x498ad6(0x17c)][_0x498ad6(0x159)](_0x498ad6(0x160));}[_0x3a51e2(0x17d)](){const _0x53c94e=_0x3a51e2;var _0x1e18df;this[_0x53c94e(0x17c)][_0x53c94e(0x159)](_0x53c94e(0x151)),(_0x1e18df=this['_commandDisposable'])==null||_0x1e18df[_0x53c94e(0x13a)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x52a6c5=_0x3a51e2;var _0xac56a2;this['_status$'][_0x52a6c5(0x159)](_0x52a6c5(0x12a)),(_0xac56a2=this[_0x52a6c5(0x116)])==null||_0xac56a2['dispose']();}['_handleOperation'](_0x1e233c){const _0xd56dba=_0x3a51e2;if([_0xd56dba(0x156),_0xd56dba(0x12a),'offline'][_0xd56dba(0x109)](this[_0xd56dba(0x140)])||!_0x1e233c['data'][_0xd56dba(0x18c)]||_0x1e233c['data'][_0xd56dba(0x18c)]===this[_0xd56dba(0x119)][_0xd56dba(0x13c)]())return;this[_0xd56dba(0x140)]===_0xd56dba(0x151)&&this[_0xd56dba(0x187)]();let _0x256ee3=_0x1e233c[_0xd56dba(0x16f)][_0xd56dba(0x14f)];Object[_0xd56dba(0x113)](_0x256ee3)[_0xd56dba(0x167)](_0x59a1d2=>{const _0x28a37d=_0xd56dba;this[_0x28a37d(0x108)][_0x28a37d(0x128)](_0x59a1d2['id'],_0x59a1d2[_0x28a37d(0x130)]?JSON['parse'](_0x59a1d2[_0x28a37d(0x130)]):null,{'fromCollab':!0x0});});}[_0x3a51e2(0x124)](){const _0x35c6c8=_0x3a51e2;var _0x2f56c5;this[_0x35c6c8(0x17c)]['next'](_0x35c6c8(0x122)),(_0x2f56c5=this[_0x35c6c8(0x116)])==null||_0x2f56c5[_0x35c6c8(0x13a)]();}['_handleOnline'](){const _0xd9627=_0x3a51e2;this[_0xd9627(0x17c)][_0xd9627(0x159)]('idle'),this['_fetchOperations']();}};q=W([U(0x2,_0x57549a),U(0x3,_0x3840c8(H)),U(0x4,_0x3b1e83)],q);function J(){const _0x41191f=_0x3a51e2;let _0x290dc9=_0x47178f(G),_0x592e87=_0x47178f(_0x4621f9),_0x17f05d=_0x557da8(()=>_0x592e87[_0x41191f(0x18e)](_0x17f2f1[_0x41191f(0x158)]),void 0x0,!0x1,[]),[_0xeea236,_0x431a25]=_0x358d85(null),[_0x147972,_0x44b26c]=_0x358d85(_0x41191f(0x151)),_0x2c68c2=_0x18e2b4(null);return _0xa54735(()=>(_0x17f05d&&_0x290dc9['getLiveShareCoordinator'](_0x17f05d[_0x41191f(0x19d)]())[_0x41191f(0x17b)](_0x320267=>{const _0x33307d=_0x41191f;_0x431a25(_0x320267),_0x2c68c2[_0x33307d(0x10b)]=_0x320267[_0x33307d(0x12c)][_0x33307d(0x19a)](_0x545bdc=>{_0x44b26c(_0x545bdc);});}),()=>{const _0x58820f=_0x41191f;var _0x5f5b83;(_0x5f5b83=_0x2c68c2[_0x58820f(0x10b)])==null||_0x5f5b83[_0x58820f(0x16c)](),_0x2c68c2['current']=null;}),[_0x17f05d,_0x290dc9]),_0xeea236?_0xe94489(_0x8acd69,{'align':_0x41191f(0x10f),'disabled':_0x147972===_0x41191f(0x122),'className':_0x41191f(0x15e),'overlay':_0xe94489(se,{'status':_0x147972,'coordinator':_0xeea236}),'children':_0xe94489(_0x41191f(0x14d),{'className':_0x59885a('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x147972===_0x41191f(0x122),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x147972!==_0x41191f(0x122)}),'type':_0x41191f(0x14d),'children':_0xe94489(_0x22016b,{'className':_0x41191f(0x193)})})}):null;}function se(_0x462768){const _0x22ba38=_0x3a51e2;let {status:_0x29f8d1,coordinator:_0x2e1208}=_0x462768;switch(_0x29f8d1){case'idle':return _0xe94489(ce,{'coordinator':_0x2e1208});case _0x22ba38(0x160):return _0xe94489(le,{'coordinator':_0x2e1208});case _0x22ba38(0x12a):return _0xe94489(ue,{'coordinator':_0x2e1208});case'offline':return _0xe94489(de,{});case _0x22ba38(0x156):return _0xe94489(Y,{'coordinator':_0x2e1208});default:return null;}}function ce(_0xe425ea){const _0x3ce838=_0x3a51e2;let {coordinator:_0x4cffe4}=_0xe425ea;return _0x3b4390(_0x16c28a,{'children':[_0xe94489(_0x3ce838(0x15f),{'className':_0x3ce838(0x19b),'children':_0x3ce838(0x118)}),_0xe94489(_0x1c8cae,{'onClick':()=>_0x4cffe4[_0x3ce838(0x12f)](),'children':_0x3ce838(0x176)})]});}function le(_0x4a0205){const _0x604d73=_0x3a51e2;let {coordinator:_0x569f56}=_0x4a0205;return _0x3b4390(_0x16c28a,{'children':[_0xe94489(_0x604d73(0x15f),{'className':_0x604d73(0x19b),'children':_0x604d73(0x182)}),_0xe94489(_0x1c8cae,{'onClick':()=>_0x569f56[_0x604d73(0x157)](),'children':'Stop\x20following'})]});}function ue(_0x13229f){const _0x597adc=_0x3a51e2;let {coordinator:_0x548d73}=_0x13229f;return _0x3b4390(_0x16c28a,{'children':[_0xe94489(_0x597adc(0x15f),{'className':_0x597adc(0x19b),'children':_0x597adc(0x11f)}),_0xe94489(_0x1c8cae,{'variant':_0x597adc(0x107),'onClick':()=>_0x548d73[_0x597adc(0x171)](),'children':'Start\x20following'})]});}function Y(_0x1288a1){const _0x23a5b8=_0x3a51e2;let {coordinator:_0x97b1e1}=_0x1288a1;return _0x3b4390(_0x16c28a,{'children':[_0xe94489(_0x23a5b8(0x15f),{'className':_0x23a5b8(0x19b),'children':_0x23a5b8(0x111)}),_0xe94489(_0x1c8cae,{'variant':_0x23a5b8(0x16b),'onClick':()=>_0x97b1e1[_0x23a5b8(0x146)](),'children':_0x23a5b8(0x172)})]});}function de(){const _0x645c71=_0x3a51e2;return _0xe94489(_0x16c28a,{'children':_0x645c71(0x153)});}let X=class extends _0x4a49fb{constructor(_0x1235b0,_0x4dffd6){const _0x2a95b2=_0x3a51e2;super(),this['_injector']=_0x1235b0,this[_0x2a95b2(0x169)]=_0x4dffd6,this[_0x2a95b2(0x11b)]();}[_0x3a51e2(0x11b)](){const _0x400b71=_0x3a51e2;this[_0x400b71(0x174)](this['_uiPartsService'][_0x400b71(0x13b)](_0x377270[_0x400b71(0x148)],()=>_0x7d9cd6(J,this['_injector'])));}};X=W([U(0x0,_0x3840c8(_0x368b3b)),U(0x1,_0x2e12cf)],X);var fe='@univerjs-pro/live-share',pe='0.25.1';function _0x3355(){const _0x445cda=['registerComponent','getMemberID','setConfig','type','2025663idGcpW','_status','OFFLINE','event$','prototype','_handleOperation','getConfig','stopPresenting','memberID','HEADER_MENU','onStarting','has','reverse','requireSession','button','_config','operations','NOT_FOLLOWING','idle','_handleOnline','You\x27are\x20offline.','PRESENTING','length','presenting','stopFollowing','UNIVER_SHEET','next','_startPresenting','1846eGkgmN','_configService','call','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','div','following','LIVESHARE_TERMINATE','_sharedOperations','delete','_unitID','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','registerInitialStateReporter','forEach','live-share.config','_uiPartsService','override','default','unsubscribe','createInstance','4rwIDrz','data','getStatus','startFollowing','Stop\x20presenting','mutations','disposeWithMe','4281753lrXCUB','Start','SAME_OPERATION_SHARE_INTERVAL','packageName','constructor','unitId','then','_status$','_beIdle','416560emdqXc','defineProperty','getInitialStates','45OIxCvk','You\x27re\x20following\x20the\x20presenter','get','version','send','FOLLOWING','_startFollowing','_init','551856fnNNXI','getOwnPropertyDescriptor','function','presenter','decorate','getCurrentTypeOfUnit$','getValue','onCommandExecuted','dispose$','set','univer-size-4','symbol','_handleNewHost','_reporters','string','clear','UNIVER_LIVE_SHARE_PLUGIN','subscribe','univer-mb-3\x20univer-w-full\x20univer-text-sm','add','getUnitId','from','text','_commandService','includes','pipe','current','_presenter','_handleTerminate','_injector','end','_collabSessionService','You\x27re\x20presenting\x20the\x20document','126hOOgSF','values','LIVESHARE_OPERATION','object','_commandDisposable','IDLE','Present\x20this\x20document','_collabSession','init','_mountLiveShare','_entities','_startLiveShareCoordinator','subject','You\x27re\x20not\x20following\x20the\x20presenter','iterator','15159276rXigCW','offline','_handleNewChangeSets','_handleOffline','NEW_CHANGESETS','_fetchOperations','ONLINE','executeCommand','859CQMnfw','not-following','pluginName','status$','complete','_univerInstanceService','tryStartPresenting','params','_stopFollowing','find','shouldShareOperation','getLiveShareCoordinatorSync','OPERATION','_liveShareService','LIVESHARE_NEW_HOST','registerSharedOperation','2631070jaWWIj','dispose'];_0x3355=function(){return _0x445cda;};return _0x3355();}const Z={};let Q=class extends _0x4a49fb{constructor(_0x351bd8){const _0x3106e4=_0x3a51e2;super(),this[_0x3106e4(0x136)]=_0x351bd8,this[_0x3106e4(0x188)]();}[_0x3a51e2(0x188)](){[_0x35525e['id'],_0x13b133['id'],_0x519c92['id']]['forEach'](_0x2e3836=>{const _0x5ab586=_0x4f04;this['disposeWithMe'](this[_0x5ab586(0x136)][_0x5ab586(0x138)](_0x2e3836));});}};Q=W([U(0x0,_0x3840c8(H))],Q);let $=class extends _0x4e113b{constructor(_0x21a659=Z,_0x51af84,_0x7c930f){const _0x3dd96d=_0x3a51e2;super(),this[_0x3dd96d(0x14e)]=_0x21a659,this['_injector']=_0x51af84,this[_0x3dd96d(0x15c)]=_0x7c930f;let {..._0xd57fa5}=_0x5aed77({},Z,this[_0x3dd96d(0x14e)]);this[_0x3dd96d(0x15c)][_0x3dd96d(0x13d)](_0x3dd96d(0x168),_0xd57fa5);}[_0x3a51e2(0x149)](){const _0x27b297=_0x3a51e2;_0x127fa5(this[_0x27b297(0x10e)],_0x168dbe([[H],[G],[Q],[X]],this[_0x27b297(0x14e)][_0x27b297(0x16a)])),_0x337d60(this[_0x27b297(0x10e)],[[Q]]);}['onRendered'](){_0x337d60(this['_injector'],[[X]]);}};V($,_0x3a51e2(0x13e),_0x17f2f1['UNIVER_UNKNOWN']),V($,_0x3a51e2(0x12b),_0x3a51e2(0x199)),V($,_0x3a51e2(0x178),fe),V($,_0x3a51e2(0x184),pe),$=W([_0x4c3c0f(_0x9355f0),U(0x1,_0x3840c8(_0x368b3b)),U(0x2,_0x57549a)],$);export{X as DesktopLiveShareController,J as LiveShare,G as LiveShareController,q as LiveShareCoordinator,H as LiveShareService,K as LiveShareStatus,$ as UniverLiveSharePlugin};
|
|
1
|
+
const _0x163933=_0x49a4;(function(_0x166d25,_0xb36586){const _0x5ed3f5=_0x49a4,_0x5e91b3=_0x166d25();while(!![]){try{const _0x5a83e8=parseInt(_0x5ed3f5(0x1e0))/0x1+parseInt(_0x5ed3f5(0x18e))/0x2*(-parseInt(_0x5ed3f5(0x1ba))/0x3)+-parseInt(_0x5ed3f5(0x18f))/0x4+parseInt(_0x5ed3f5(0x19f))/0x5*(-parseInt(_0x5ed3f5(0x177))/0x6)+parseInt(_0x5ed3f5(0x17e))/0x7+-parseInt(_0x5ed3f5(0x1e2))/0x8*(-parseInt(_0x5ed3f5(0x1f2))/0x9)+parseInt(_0x5ed3f5(0x1eb))/0xa*(-parseInt(_0x5ed3f5(0x1da))/0xb);if(_0x5a83e8===_0xb36586)break;else _0x5e91b3['push'](_0x5e91b3['shift']());}catch(_0x4b0be9){_0x5e91b3['push'](_0x5e91b3['shift']());}}}(_0x4c3f,0x670ae));import{CollaborationEvent as _0x2f4f4b,parseProtocolChangeset as _0xf7fca8}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1dc03d,SessionStatus as _0x43364d,UniverCollaborationClientPlugin as _0x33b357}from'@univerjs-pro/collaboration-client';import{CommandType as _0x41b375,DependentOn as _0x372528,Disposable as _0x3a6ee4,DisposableCollection as _0x373e29,ICommandService as _0x15ae55,IConfigService as _0x3287d9,IUniverInstanceService as _0x5dd410,Inject as _0x147d4e,Injector as _0x430c6d,Plugin as _0x2c55cc,RxDisposable as _0x3eff75,UniverInstanceType as _0x19d69b,merge as _0x1f0203,mergeOverrideWithDependencies as _0x76a44e,registerDependencies as _0x492046,toDisposable as _0x2c9771,touchDependencies as _0x4b567d}from'@univerjs/core';import{InsertSheetMutation as _0x29a9fa,SetWorksheetActiveOperation as _0x24df1b}from'@univerjs/sheets';import{BehaviorSubject as _0x1bdd9f,Subject as _0x4a9313}from'rxjs';import{takeUntil as _0x66b583,throttleTime as _0x23f001}from'rxjs/operators';import{BuiltInUIPart as _0x27c857,IUIPartsService as _0x2568a8,connectInjector as _0x34038f,useDependency as _0x4d0b0b,useObservable as _0x471499}from'@univerjs/ui';function _0x4c3f(){const _0x1d12b0=['_reporters','HEADER_MENU','clear','presenter','_injector','set','FOLLOWING','_commandService','setConfig','status$','executeCommand','LIVESHARE_FETCH_OPERATIONS','subscribe','Start','_handleOnline','getLiveShareCoordinatorSync','data','onStarting','call','6rifvkw','memberID','idle','prototype','_startFollowing','_univerInstanceService','_startPresenting','3153962cexbSX','packageName','toPrimitive','getValue','pluginName','createInstance','_handleNewChangeSets','end','@univerjs-pro/live-share','getTypeOfUnitAdded$','sessionStatus$','decorate','ONLINE','asObservable','pipe','button','12JjJguK','3217576HJgNcE','override','getCurrentTypeOfUnit$','getLiveShareCoordinator','_entities','UNIVER_SHEET','LIVESHARE_REQUEST_HOST','LIVESHARE_NEW_HOST','_unitID','LIVESHARE_TERMINATE','offline','OPERATION','_collabSession','length','shouldShareOperation','_commandDisposable','1497950knNXPS','requireSession','_startLiveShareCoordinator','sheet','tryStartPresenting','OFFLINE','onRendered','current','delete','function','default','getOwnPropertyDescriptor','_collabSessionService','get','stringify','_sharedOperations','following','from','defineProperty','You\x27are\x20offline.','includes','_config','_handleOperation','unitId','div','_handleOffline','complete','82179tBeTmf','You\x27re\x20presenting\x20the\x20document','getInitialStates','forEach','_status','unit','getStatus','getUnitId','presenting','_stopFollowing','disposeWithMe','has','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','add','string','_handleTerminate','_status$','symbol','mutations','_configService','_uiPartsService','univer-mb-3\x20univer-w-full\x20univer-text-sm','stopFollowing','_liveShareService','not-following','getTypeOfUnitDisposed$','reverse','getConfig','UNIVER_LIVE_SHARE_PLUGIN','constructor','registerComponent','_presenter','2560206GIuVnm','1.0.0-alpha.1','_init','onCommandExecuted','send','_mountLiveShare','635588GlObXK','version','1673992efwRCn','find','params','getMemberID','next','LIVESHARE_OPERATION','then','Start\x20following','object','10nwvzzS','init','NOT_FOLLOWING','_handleNewHost','_stopPresenting','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','type','36ekssiw','UNIVER_UNKNOWN','PRESENTING','dispose','dispose$','unsubscribe'];_0x4c3f=function(){return _0x1d12b0;};return _0x4c3f();}import{Button as _0xac3a18,Dropdown as _0x4045b5,clsx as _0x38f52b}from'@univerjs/design';import{LiveShareIcon as _0x5e9cb6}from'@univerjs/icons';import{useEffect as _0x542576,useRef as _0x418b8a,useState as _0x41fdc7}from'react';import{Fragment as _0x98295f,jsx as _0x50789a,jsxs as _0x16b88}from'react/jsx-runtime';import{SetScrollOperation as _0x452de4,SetZoomRatioOperation as _0x284992}from'@univerjs/sheets-ui';function R(_0x2e5dbd){'@babel/helpers - typeof';const _0x1909dc=_0x49a4;return R=typeof Symbol==_0x1909dc(0x1a8)&&typeof Symbol['iterator']=='symbol'?function(_0x1aede5){return typeof _0x1aede5;}:function(_0x4970eb){const _0x1f32d9=_0x1909dc;return _0x4970eb&&typeof Symbol=='function'&&_0x4970eb[_0x1f32d9(0x1d7)]===Symbol&&_0x4970eb!==Symbol[_0x1f32d9(0x17a)]?_0x1f32d9(0x1cb):typeof _0x4970eb;},R(_0x2e5dbd);}function z(_0x360513,_0x561972){const _0x566e15=_0x49a4;if(R(_0x360513)!=_0x566e15(0x1ea)||!_0x360513)return _0x360513;var _0x1ca540=_0x360513[Symbol[_0x566e15(0x180)]];if(_0x1ca540!==void 0x0){var _0xaa31f1=_0x1ca540[_0x566e15(0x176)](_0x360513,_0x561972||_0x566e15(0x1a9));if(R(_0xaa31f1)!=_0x566e15(0x1ea))return _0xaa31f1;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x561972===_0x566e15(0x1c8)?String:Number)(_0x360513);}function B(_0x298d17){const _0x2bc6a9=_0x49a4;var _0x2e51f5=z(_0x298d17,_0x2bc6a9(0x1c8));return R(_0x2e51f5)==_0x2bc6a9(0x1cb)?_0x2e51f5:_0x2e51f5+'';}function V(_0x4bc780,_0x3b6231,_0x10d764){return(_0x3b6231=B(_0x3b6231))in _0x4bc780?Object['defineProperty'](_0x4bc780,_0x3b6231,{'value':_0x10d764,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4bc780[_0x3b6231]=_0x10d764,_0x4bc780;}function _0x49a4(_0x430074,_0x2c9319){_0x430074=_0x430074-0x175;const _0x4c3fa5=_0x4c3f();let _0x49a4ac=_0x4c3fa5[_0x430074];return _0x49a4ac;}var H=class extends _0x3a6ee4{constructor(..._0x39f7fb){const _0x4d3fcd=_0x49a4;super(..._0x39f7fb),V(this,_0x4d3fcd(0x1ae),new Set()),V(this,_0x4d3fcd(0x1f8),new Set());}['registerSharedOperation'](_0xac2562){const _0x14bfae=_0x49a4;return this[_0x14bfae(0x1ae)]['add'](_0xac2562),_0x2c9771(()=>this['_sharedOperations'][_0x14bfae(0x1a7)](_0xac2562));}['registerInitialStateReporter'](_0x4b672f){const _0x5870a3=_0x49a4;return this['_reporters'][_0x5870a3(0x1c7)](_0x4b672f),_0x2c9771(()=>this[_0x5870a3(0x1f8)][_0x5870a3(0x1a7)](_0x4b672f));}[_0x163933(0x19d)](_0x2c4e5c){const _0x1680f1=_0x163933;return this[_0x1680f1(0x1ae)][_0x1680f1(0x1c5)](_0x2c4e5c);}[_0x163933(0x1bc)](_0x48c9c8){const _0x3e8813=_0x163933;return Array[_0x3e8813(0x1b0)](this['_reporters'])['map'](_0x56600c=>_0x56600c(_0x48c9c8));}};function U(_0xe4e8b3,_0x1df87b){return function(_0xa60193,_0x182af4){_0x1df87b(_0xa60193,_0x182af4,_0xe4e8b3);};}function W(_0x386c97,_0x3a1df4,_0x4c0591,_0x1ea34e){const _0x3f17be=_0x163933;var _0x5a9968=arguments['length'],_0x2d3b37=_0x5a9968<0x3?_0x3a1df4:_0x1ea34e===null?_0x1ea34e=Object[_0x3f17be(0x1aa)](_0x3a1df4,_0x4c0591):_0x1ea34e,_0x1b9b97;if(typeof Reflect=='object'&&typeof Reflect[_0x3f17be(0x189)]==_0x3f17be(0x1a8))_0x2d3b37=Reflect['decorate'](_0x386c97,_0x3a1df4,_0x4c0591,_0x1ea34e);else{for(var _0x1a01d8=_0x386c97[_0x3f17be(0x19c)]-0x1;_0x1a01d8>=0x0;_0x1a01d8--)(_0x1b9b97=_0x386c97[_0x1a01d8])&&(_0x2d3b37=(_0x5a9968<0x3?_0x1b9b97(_0x2d3b37):_0x5a9968>0x3?_0x1b9b97(_0x3a1df4,_0x4c0591,_0x2d3b37):_0x1b9b97(_0x3a1df4,_0x4c0591))||_0x2d3b37);}return _0x5a9968>0x3&&_0x2d3b37&&Object[_0x3f17be(0x1b1)](_0x3a1df4,_0x4c0591,_0x2d3b37),_0x2d3b37;}let G=class extends _0x3eff75{constructor(_0x226578,_0x47fef8,_0x38b540){const _0x226b13=_0x163933;super(),this[_0x226b13(0x17c)]=_0x226578,this[_0x226b13(0x1fc)]=_0x47fef8,this[_0x226b13(0x1ab)]=_0x38b540,V(this,_0x226b13(0x193),new Map()),this[_0x226b13(0x1dc)]();}async[_0x163933(0x192)](_0x24bf37){const _0x5ea5c0=_0x163933;return this[_0x5ea5c0(0x193)]['has'](_0x24bf37)||await this[_0x5ea5c0(0x1a1)](_0x24bf37),this[_0x5ea5c0(0x193)][_0x5ea5c0(0x1ac)](_0x24bf37);}[_0x163933(0x207)](_0x4a1474){const _0x2ebb49=_0x163933;var _0x592831;return(_0x592831=this[_0x2ebb49(0x193)]['get'](_0x4a1474))==null?null:_0x592831;}[_0x163933(0x1dc)](){const _0x2cdc17=_0x163933;this[_0x2cdc17(0x17c)][_0x2cdc17(0x187)](_0x19d69b['UNIVER_SHEET'])[_0x2cdc17(0x18c)](_0x66b583(this['dispose$']))[_0x2cdc17(0x204)](async _0x15dbb3=>{const _0x5f77be=_0x2cdc17;let _0x3a2665=_0x15dbb3[_0x5f77be(0x1bf)]['getUnitId']();this['_entities']['has'](_0x3a2665)||this[_0x5f77be(0x1a1)](_0x3a2665);}),this[_0x2cdc17(0x17c)][_0x2cdc17(0x1d3)](_0x19d69b['UNIVER_SHEET'])['pipe'](_0x66b583(this[_0x2cdc17(0x1f6)]))[_0x2cdc17(0x204)](_0x5012e4=>{const _0x59db71=_0x2cdc17;let _0xc87cc0=_0x5012e4[_0x59db71(0x1c1)](),_0x37f9cd=this[_0x59db71(0x193)][_0x59db71(0x1ac)](_0xc87cc0);_0x37f9cd==null||_0x37f9cd['dispose']();});}async[_0x163933(0x1a1)](_0x5df195){const _0x3d0cb1=_0x163933;let _0x13f003=await this[_0x3d0cb1(0x1ab)][_0x3d0cb1(0x1a0)](_0x5df195),_0x202b31=this['_injector'][_0x3d0cb1(0x183)](q,_0x5df195,_0x13f003);return _0x202b31['init'](),this[_0x3d0cb1(0x193)]['set'](_0x5df195,_0x202b31),_0x202b31;}};G=W([U(0x0,_0x5dd410),U(0x1,_0x147d4e(_0x430c6d)),U(0x2,_0x147d4e(_0x1dc03d))],G);let K=function(_0x56b824){const _0x5d24ed=_0x163933;return _0x56b824[_0x5d24ed(0x1a4)]='offline',_0x56b824['IDLE']='idle',_0x56b824[_0x5d24ed(0x1fe)]=_0x5d24ed(0x1af),_0x56b824[_0x5d24ed(0x1ed)]='not-following',_0x56b824[_0x5d24ed(0x1f4)]='presenting',_0x56b824;}({}),q=class extends _0x3eff75{get['_status'](){const _0x8c5651=_0x163933;return this[_0x8c5651(0x1ca)][_0x8c5651(0x181)]();}constructor(_0x32fb17,_0x183cd3,_0x8672c3,_0x50f8c5,_0x10d38f){const _0x38b91d=_0x163933;super(),this['_unitID']=_0x32fb17,this['_collabSession']=_0x183cd3,this[_0x38b91d(0x1cd)]=_0x8672c3,this['_liveShareService']=_0x50f8c5,this[_0x38b91d(0x1ff)]=_0x10d38f,V(this,'_status$',new _0x1bdd9f('idle')),V(this,_0x38b91d(0x201),this[_0x38b91d(0x1ca)][_0x38b91d(0x18b)]()),V(this,_0x38b91d(0x1dc),!0x1),V(this,_0x38b91d(0x19e),null),V(this,_0x38b91d(0x1d9),null);}[_0x163933(0x1f5)](){const _0x5c4bde=_0x163933;var _0x50be78;(_0x50be78=this[_0x5c4bde(0x19e)])==null||_0x50be78['dispose'](),this[_0x5c4bde(0x1ca)][_0x5c4bde(0x1e6)](_0x5c4bde(0x179)),this[_0x5c4bde(0x1ca)][_0x5c4bde(0x1b9)]();}[_0x163933(0x1c0)](){const _0x5d2248=_0x163933;return this[_0x5d2248(0x1be)];}[_0x163933(0x1ec)](){const _0xd79c49=_0x163933;this[_0xd79c49(0x1dc)]||(this[_0xd79c49(0x1dc)]=!0x0,this[_0xd79c49(0x19b)][_0xd79c49(0x188)][_0xd79c49(0x18c)](_0x66b583(this[_0xd79c49(0x1f6)]))[_0xd79c49(0x204)](_0x28822a=>{const _0x30a943=_0xd79c49;switch(_0x28822a){case _0x43364d[_0x30a943(0x1a4)]:this[_0x30a943(0x1b8)]();break;case _0x43364d[_0x30a943(0x18a)]:this[_0x30a943(0x206)]();break;default:}}),this[_0xd79c49(0x19b)]['event$']['pipe'](_0x66b583(this['dispose$']))['subscribe'](_0x565bc9=>{const _0x5f285e=_0xd79c49;let {eventID:_0x59cf12}=_0x565bc9;switch(_0x59cf12){case _0x2f4f4b[_0x5f285e(0x196)]:this[_0x5f285e(0x1ee)](_0x565bc9);break;case _0x2f4f4b[_0x5f285e(0x1e7)]:this[_0x5f285e(0x1b5)](_0x565bc9);break;case _0x2f4f4b[_0x5f285e(0x198)]:this[_0x5f285e(0x1c9)]();break;case _0x2f4f4b['NEW_CHANGESETS']:this[_0x5f285e(0x184)](_0x565bc9);break;default:}}));}[_0x163933(0x1a3)](){const _0x19b60e=_0x163933;this['_collabSession']['send']({'eventID':_0x2f4f4b[_0x19b60e(0x195)],'data':{'unitID':this['_unitID'],'userID':this[_0x19b60e(0x19b)][_0x19b60e(0x1e5)]()}},this['_unitID']);}['stopPresenting'](){const _0xbdaf9f=_0x163933;this[_0xbdaf9f(0x1be)]===_0xbdaf9f(0x1c2)&&(this['_status$'][_0xbdaf9f(0x1e6)](_0xbdaf9f(0x179)),this[_0xbdaf9f(0x19b)]['send']({'eventID':_0x2f4f4b[_0xbdaf9f(0x198)],'data':{'unitID':this[_0xbdaf9f(0x197)]}},this['_unitID']));}['startFollowing'](){const _0x352bd5=_0x163933;this[_0x352bd5(0x1be)]==='not-following'&&(this[_0x352bd5(0x1ca)][_0x352bd5(0x1e6)](_0x352bd5(0x1af)),this[_0x352bd5(0x17b)]());}['stopFollowing'](){const _0x54df9c=_0x163933;this[_0x54df9c(0x1be)]===_0x54df9c(0x1af)&&this[_0x54df9c(0x1c3)]();}[_0x163933(0x1ee)](_0x1d46da){const _0x1b552e=_0x163933;let {presenter:_0x2019ff}=_0x1d46da[_0x1b552e(0x208)],_0x42ec53=this[_0x1b552e(0x19b)][_0x1b552e(0x1e5)]();this[_0x1b552e(0x1d9)]=_0x2019ff,_0x2019ff===_0x42ec53?(this['_stopFollowing'](),this[_0x1b552e(0x17d)]()):this['_status']!=='not-following'&&(this[_0x1b552e(0x1ef)](),this[_0x1b552e(0x17b)]());}['_fetchOperations'](){const _0x542a10=_0x163933;let _0x1b4fb8={'eventID':_0x2f4f4b[_0x542a10(0x203)]};this[_0x542a10(0x19b)][_0x542a10(0x1de)](_0x1b4fb8,this['_unitID']);}[_0x163933(0x1c9)](){const _0x5a4953=_0x163933;this[_0x5a4953(0x1d9)]=null,this[_0x5a4953(0x1be)]!=='presenting'&&this['_beIdle']();}[_0x163933(0x184)](_0x109487){const _0x2a09bf=_0x163933;if(this[_0x2a09bf(0x1be)]==='following'&&this[_0x2a09bf(0x1d9)]===_0x109487[_0x2a09bf(0x208)][_0x2a09bf(0x178)]){let _0x233132=_0xf7fca8(_0x109487[_0x2a09bf(0x208)])[_0x2a09bf(0x1cc)][_0x2a09bf(0x1d4)]()[_0x2a09bf(0x1e3)](_0x4dc560=>_0x4dc560['id']===_0x29a9fa['id']);if(_0x233132){let _0x164df1=_0x233132[_0x2a09bf(0x1e4)][_0x2a09bf(0x1b6)],_0x768efc=_0x233132[_0x2a09bf(0x1e4)][_0x2a09bf(0x1a2)]['id'];setTimeout(()=>{const _0x5f586a=_0x2a09bf;this[_0x5f586a(0x1ff)][_0x5f586a(0x202)](_0x24df1b['id'],{'unitId':_0x164df1,'subUnitId':_0x768efc},{'fromCollab':!0x0});});}}}[_0x163933(0x17d)](){const _0x5d9911=_0x163933;var _0x59abbb;(_0x59abbb=this[_0x5d9911(0x19e)])==null||_0x59abbb[_0x5d9911(0x1f5)](),this[_0x5d9911(0x1ca)][_0x5d9911(0x1e6)](_0x5d9911(0x1c2));let _0x519bcd=new Map(),_0x4bba98=this[_0x5d9911(0x19e)]=new _0x373e29();_0x4bba98[_0x5d9911(0x1c7)](_0x2c9771(()=>{const _0x5ca6ba=_0x5d9911;_0x519bcd[_0x5ca6ba(0x1bd)](({subject:_0x3075c4,subscription:_0x3b94d6})=>{const _0x1443b7=_0x5ca6ba;_0x3b94d6[_0x1443b7(0x1f7)](),_0x3075c4[_0x1443b7(0x1b9)]();}),_0x519bcd[_0x5ca6ba(0x1fa)]();})),_0x4bba98[_0x5d9911(0x1c7)](this[_0x5d9911(0x1ff)][_0x5d9911(0x1dd)](_0x349dd1=>{const _0x44c970=_0x5d9911;if(_0x349dd1[_0x44c970(0x1f1)]!==_0x41b375[_0x44c970(0x19a)]||!this[_0x44c970(0x1d1)][_0x44c970(0x19d)](_0x349dd1['id']))return;let {id:_0x56b6fb}=_0x349dd1,_0x5984e8;if(_0x519bcd[_0x44c970(0x1c5)](_0x56b6fb))_0x5984e8=_0x519bcd[_0x44c970(0x1ac)](_0x56b6fb)['subject'];else{var _0x136831;_0x5984e8=new _0x4a9313();let _0x6bf016=_0x5984e8[_0x44c970(0x18c)](_0x23f001((_0x136831=this[_0x44c970(0x1cd)][_0x44c970(0x1d5)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x136831,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x44c970(0x204)](_0x161cdb=>{const _0x337870=_0x44c970;this[_0x337870(0x19b)][_0x337870(0x1de)]({'eventID':_0x2f4f4b[_0x337870(0x1e7)],'data':{'unitID':this['_unitID'],'operations':{[_0x161cdb['id']]:{'id':_0x161cdb['id'],'params':JSON[_0x337870(0x1ad)](_0x161cdb[_0x337870(0x1e4)])}}}},this['_unitID']);});_0x519bcd[_0x44c970(0x1fd)](_0x56b6fb,{'subject':_0x5984e8,'subscription':_0x6bf016});}_0x5984e8[_0x44c970(0x1e6)](_0x349dd1);})),this[_0x5d9911(0x1d1)]['getInitialStates'](this[_0x5d9911(0x197)])[_0x5d9911(0x1bd)](_0x289507=>this[_0x5d9911(0x19b)]['send']({'eventID':_0x2f4f4b[_0x5d9911(0x1e7)],'data':{'unitID':this[_0x5d9911(0x197)],'operations':{[_0x289507['id']]:{'id':_0x289507['id'],'params':JSON['stringify'](_0x289507[_0x5d9911(0x1e4)])}}}},this[_0x5d9911(0x197)]));}[_0x163933(0x1ef)](){const _0x16a67e=_0x163933;var _0x59d750;this[_0x16a67e(0x1ca)]['next'](_0x16a67e(0x179)),(_0x59d750=this[_0x16a67e(0x19e)])==null||_0x59d750[_0x16a67e(0x1f5)](),this[_0x16a67e(0x19e)]=null;}[_0x163933(0x17b)](){const _0x5c1ac5=_0x163933;var _0x125d5f;(_0x125d5f=this[_0x5c1ac5(0x19e)])==null||_0x125d5f[_0x5c1ac5(0x1f5)](),this[_0x5c1ac5(0x1ca)]['next'](_0x5c1ac5(0x1af));}['_beIdle'](){const _0x1c0665=_0x163933;var _0x365def;this[_0x1c0665(0x1ca)][_0x1c0665(0x1e6)](_0x1c0665(0x179)),(_0x365def=this['_commandDisposable'])==null||_0x365def[_0x1c0665(0x1f5)](),this[_0x1c0665(0x19e)]=null;}[_0x163933(0x1c3)](){const _0x16fb98=_0x163933;var _0x5ae3ba;this[_0x16fb98(0x1ca)]['next'](_0x16fb98(0x1d2)),(_0x5ae3ba=this['_commandDisposable'])==null||_0x5ae3ba[_0x16fb98(0x1f5)]();}[_0x163933(0x1b5)](_0x2a7e7c){const _0x434bd5=_0x163933;if([_0x434bd5(0x1c2),_0x434bd5(0x1d2),_0x434bd5(0x199)][_0x434bd5(0x1b3)](this[_0x434bd5(0x1be)])||!_0x2a7e7c[_0x434bd5(0x208)][_0x434bd5(0x1fb)]||_0x2a7e7c['data'][_0x434bd5(0x1fb)]===this[_0x434bd5(0x19b)][_0x434bd5(0x1e5)]())return;this[_0x434bd5(0x1be)]===_0x434bd5(0x179)&&this[_0x434bd5(0x17b)]();let _0x747534=_0x2a7e7c['data']['operations'];Object['values'](_0x747534)['forEach'](_0x46610a=>{const _0x405ca9=_0x434bd5;this[_0x405ca9(0x1ff)]['executeCommand'](_0x46610a['id'],_0x46610a['params']?JSON['parse'](_0x46610a[_0x405ca9(0x1e4)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x5e049c=_0x163933;var _0x4abaa6;this['_status$'][_0x5e049c(0x1e6)](_0x5e049c(0x199)),(_0x4abaa6=this[_0x5e049c(0x19e)])==null||_0x4abaa6[_0x5e049c(0x1f5)]();}[_0x163933(0x206)](){const _0x34a1f0=_0x163933;this['_status$'][_0x34a1f0(0x1e6)](_0x34a1f0(0x179)),this['_fetchOperations']();}};q=W([U(0x2,_0x3287d9),U(0x3,_0x147d4e(H)),U(0x4,_0x15ae55)],q);function J(){const _0x544e9c=_0x163933;let _0x18e9df=_0x4d0b0b(G),_0x47d618=_0x4d0b0b(_0x5dd410),_0xe72ba5=_0x471499(()=>_0x47d618[_0x544e9c(0x191)](_0x19d69b[_0x544e9c(0x194)]),void 0x0,!0x1,[]),[_0x554ef2,_0x2c5c35]=_0x41fdc7(null),[_0x4d2e68,_0x28c5a7]=_0x41fdc7(_0x544e9c(0x179)),_0xd2604d=_0x418b8a(null);return _0x542576(()=>(_0xe72ba5&&_0x18e9df[_0x544e9c(0x192)](_0xe72ba5[_0x544e9c(0x1c1)]())[_0x544e9c(0x1e8)](_0x349de9=>{const _0x20ae39=_0x544e9c;_0x2c5c35(_0x349de9),_0xd2604d['current']=_0x349de9['status$'][_0x20ae39(0x204)](_0x3be167=>{_0x28c5a7(_0x3be167);});}),()=>{const _0x3f1dd3=_0x544e9c;var _0xcaf005;(_0xcaf005=_0xd2604d[_0x3f1dd3(0x1a6)])==null||_0xcaf005[_0x3f1dd3(0x1f7)](),_0xd2604d['current']=null;}),[_0xe72ba5,_0x18e9df]),_0x554ef2?_0x50789a(_0x4045b5,{'align':_0x544e9c(0x185),'disabled':_0x4d2e68==='offline','className':_0x544e9c(0x1f0),'overlay':_0x50789a(se,{'status':_0x4d2e68,'coordinator':_0x554ef2}),'children':_0x50789a(_0x544e9c(0x18d),{'className':_0x38f52b(_0x544e9c(0x1c6),{'univer-cursor-not-allowed':_0x4d2e68==='offline','univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4d2e68!==_0x544e9c(0x199)}),'type':_0x544e9c(0x18d),'children':_0x50789a(_0x5e9cb6,{})})}):null;}function se(_0x5aa10c){const _0x7863ca=_0x163933;let {status:_0x3e622d,coordinator:_0x5e64a1}=_0x5aa10c;switch(_0x3e622d){case _0x7863ca(0x179):return _0x50789a(ce,{'coordinator':_0x5e64a1});case'following':return _0x50789a(le,{'coordinator':_0x5e64a1});case _0x7863ca(0x1d2):return _0x50789a(ue,{'coordinator':_0x5e64a1});case'offline':return _0x50789a(de,{});case _0x7863ca(0x1c2):return _0x50789a(Y,{'coordinator':_0x5e64a1});default:return null;}}function ce(_0x540ff2){const _0x219aa0=_0x163933;let {coordinator:_0x19cf79}=_0x540ff2;return _0x16b88(_0x98295f,{'children':[_0x50789a(_0x219aa0(0x1b7),{'className':_0x219aa0(0x1cf),'children':'Present\x20this\x20document'}),_0x50789a(_0xac3a18,{'onClick':()=>_0x19cf79[_0x219aa0(0x1a3)](),'children':_0x219aa0(0x205)})]});}function le(_0x73a277){const _0x33576b=_0x163933;let {coordinator:_0x1086c9}=_0x73a277;return _0x16b88(_0x98295f,{'children':[_0x50789a(_0x33576b(0x1b7),{'className':_0x33576b(0x1cf),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x50789a(_0xac3a18,{'onClick':()=>_0x1086c9[_0x33576b(0x1d0)](),'children':'Stop\x20following'})]});}function ue(_0x531476){const _0xaf0dff=_0x163933;let {coordinator:_0x50bc01}=_0x531476;return _0x16b88(_0x98295f,{'children':[_0x50789a('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x50789a(_0xac3a18,{'variant':'text','onClick':()=>_0x50bc01['startFollowing'](),'children':_0xaf0dff(0x1e9)})]});}function Y(_0x399c83){const _0x3251e4=_0x163933;let {coordinator:_0x4980a9}=_0x399c83;return _0x16b88(_0x98295f,{'children':[_0x50789a(_0x3251e4(0x1b7),{'className':_0x3251e4(0x1cf),'children':_0x3251e4(0x1bb)}),_0x50789a(_0xac3a18,{'variant':_0x3251e4(0x1a9),'onClick':()=>_0x4980a9['stopPresenting'](),'children':'Stop\x20presenting'})]});}function de(){const _0x5194cd=_0x163933;return _0x50789a(_0x98295f,{'children':_0x5194cd(0x1b2)});}let X=class extends _0x3a6ee4{constructor(_0x593ddd,_0x26b2fc){const _0x15338f=_0x163933;super(),this[_0x15338f(0x1fc)]=_0x593ddd,this[_0x15338f(0x1ce)]=_0x26b2fc,this[_0x15338f(0x1df)]();}['_mountLiveShare'](){const _0x1070bb=_0x163933;this[_0x1070bb(0x1c4)](this[_0x1070bb(0x1ce)][_0x1070bb(0x1d8)](_0x27c857[_0x1070bb(0x1f9)],()=>_0x34038f(J,this[_0x1070bb(0x1fc)])));}};X=W([U(0x0,_0x147d4e(_0x430c6d)),U(0x1,_0x2568a8)],X);var fe=_0x163933(0x186),pe=_0x163933(0x1db);const Z={};let Q=class extends _0x3a6ee4{constructor(_0x6ac638){const _0x154f47=_0x163933;super(),this[_0x154f47(0x1d1)]=_0x6ac638,this[_0x154f47(0x1dc)]();}[_0x163933(0x1dc)](){const _0x356985=_0x163933;[_0x284992['id'],_0x452de4['id'],_0x24df1b['id']][_0x356985(0x1bd)](_0x5dd2df=>{this['disposeWithMe'](this['_liveShareService']['registerSharedOperation'](_0x5dd2df));});}};Q=W([U(0x0,_0x147d4e(H))],Q);let $=class extends _0x2c55cc{constructor(_0x12150e=Z,_0x4a2f61,_0x441862){const _0x15a3a7=_0x163933;super(),this[_0x15a3a7(0x1b4)]=_0x12150e,this['_injector']=_0x4a2f61,this[_0x15a3a7(0x1cd)]=_0x441862;let {..._0x40b82b}=_0x1f0203({},Z,this[_0x15a3a7(0x1b4)]);this[_0x15a3a7(0x1cd)][_0x15a3a7(0x200)]('live-share.config',_0x40b82b);}[_0x163933(0x175)](){const _0x1e6350=_0x163933;_0x492046(this['_injector'],_0x76a44e([[H],[G],[Q],[X]],this[_0x1e6350(0x1b4)][_0x1e6350(0x190)])),_0x4b567d(this[_0x1e6350(0x1fc)],[[Q]]);}[_0x163933(0x1a5)](){const _0x322fc0=_0x163933;_0x4b567d(this[_0x322fc0(0x1fc)],[[X]]);}};V($,_0x163933(0x1f1),_0x19d69b[_0x163933(0x1f3)]),V($,_0x163933(0x182),_0x163933(0x1d6)),V($,_0x163933(0x17f),fe),V($,_0x163933(0x1e1),pe),$=W([_0x372528(_0x33b357),U(0x1,_0x147d4e(_0x430c6d)),U(0x2,_0x3287d9)],$);export{X as DesktopLiveShareController,J as LiveShare,G as LiveShareController,q as LiveShareCoordinator,H as LiveShareService,K as LiveShareStatus,$ as UniverLiveSharePlugin};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x4230ab=_0x4d7f;(function(_0xc11408,_0x9afe8b){const _0x38fe34=_0x4d7f,_0x5b1d1a=_0xc11408();while(!![]){try{const _0x2b9270=-parseInt(_0x38fe34(0x19e))/0x1*(parseInt(_0x38fe34(0x19a))/0x2)+-parseInt(_0x38fe34(0x1b4))/0x3+parseInt(_0x38fe34(0x1a0))/0x4*(parseInt(_0x38fe34(0x1b3))/0x5)+parseInt(_0x38fe34(0x1b8))/0x6+parseInt(_0x38fe34(0x19c))/0x7*(-parseInt(_0x38fe34(0x1a7))/0x8)+parseInt(_0x38fe34(0x19b))/0x9+-parseInt(_0x38fe34(0x1af))/0xa*(-parseInt(_0x38fe34(0x1a6))/0xb);if(_0x2b9270===_0x9afe8b)break;else _0x5b1d1a['push'](_0x5b1d1a['shift']());}catch(_0x32edb4){_0x5b1d1a['push'](_0x5b1d1a['shift']());}}}(_0x4e90,0x78b03));import{LiveShareController as _0x48788c,LiveShareStatus as _0xf80c85}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x14008c,UniverInstanceType as _0x454af0}from'@univerjs/core';function _0x4d7f(_0x3a3295,_0x25d797){_0x3a3295=_0x3a3295-0x198;const _0x4e9005=_0x4e90();let _0x4d7f1e=_0x4e9005[_0x3a3295];return _0x4d7f1e;}import{FEnum as _0x23328a,FUniver as _0x27d841}from'@univerjs/core/facade';function o(_0x14c7d2){'@babel/helpers - typeof';const _0x2d0aea=_0x4d7f;return o=typeof Symbol==_0x2d0aea(0x19d)&&typeof Symbol[_0x2d0aea(0x1ae)]==_0x2d0aea(0x1a1)?function(_0xffbf65){return typeof _0xffbf65;}:function(_0x3273e7){const _0x50f874=_0x2d0aea;return _0x3273e7&&typeof Symbol==_0x50f874(0x19d)&&_0x3273e7['constructor']===Symbol&&_0x3273e7!==Symbol[_0x50f874(0x1b0)]?'symbol':typeof _0x3273e7;},o(_0x14c7d2);}function _0x4e90(){const _0x23cde2=['@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','extend','_liveShareController','get','startPresenting','No\x20active\x20workbook\x20found.','24398VrCtjv','1030689rAGlqP','201901wjswQQ','function','53mwQzNO','object','4GeIbzd','symbol','string','LiveShareStatusEnum','getLiveShareStatus','defineProperty','4651889mwCjFs','88PbUDic','getStatus','getLiveShareCoordinatorSync','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','UNIVER_SHEET','_injector','tryStartPresenting','iterator','40ZhLPSK','prototype','IDLE','stopPresenting','389135kOsevZ','2355750rsYCfI','_initialize','stopFollowing','getCurrentUnitOfType','2156790TiPhjS','getUnitId'];_0x4e90=function(){return _0x23cde2;};return _0x4e90();}function s(_0x5a2645,_0x39e7d2){const _0x5b53bf=_0x4d7f;if(o(_0x5a2645)!=_0x5b53bf(0x19f)||!_0x5a2645)return _0x5a2645;var _0x3e1176=_0x5a2645[Symbol['toPrimitive']];if(_0x3e1176!==void 0x0){var _0x30bc36=_0x3e1176['call'](_0x5a2645,_0x39e7d2||'default');if(o(_0x30bc36)!=_0x5b53bf(0x19f))return _0x30bc36;throw TypeError(_0x5b53bf(0x1ba));}return(_0x39e7d2===_0x5b53bf(0x1a2)?String:Number)(_0x5a2645);}function c(_0x3f6610){var _0x35e888=s(_0x3f6610,'string');return o(_0x35e888)=='symbol'?_0x35e888:_0x35e888+'';}function l(_0x82750f,_0x1a3a57,_0x4c652c){const _0x97a2a0=_0x4d7f;return(_0x1a3a57=c(_0x1a3a57))in _0x82750f?Object[_0x97a2a0(0x1a5)](_0x82750f,_0x1a3a57,{'value':_0x4c652c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x82750f[_0x1a3a57]=_0x4c652c,_0x82750f;}var u=class extends _0x27d841{constructor(..._0x17a628){const _0x25f7ec=_0x4d7f;super(..._0x17a628),l(this,_0x25f7ec(0x1bc),void 0x0);}[_0x4230ab(0x1b5)](_0x371262){const _0x33a8bf=_0x4230ab;this[_0x33a8bf(0x1bc)]=_0x371262[_0x33a8bf(0x1bd)](_0x48788c);}[_0x4230ab(0x1a4)](){const _0x45904a=_0x4230ab;var _0x3159e0;let _0x499676=this[_0x45904a(0x1ac)][_0x45904a(0x1bd)](_0x14008c)[_0x45904a(0x1b7)](_0x454af0[_0x45904a(0x1ab)]);if(!_0x499676)throw Error(_0x45904a(0x199));let _0x5dd476=_0x499676[_0x45904a(0x1b9)](),_0x2f894f=this[_0x45904a(0x1bc)][_0x45904a(0x1a9)](_0x5dd476);return(_0x3159e0=_0x2f894f==null?void 0x0:_0x2f894f[_0x45904a(0x1a8)]())==null?_0xf80c85[_0x45904a(0x1b1)]:_0x3159e0;}['startFollowing'](){const _0xac4e73=_0x4230ab;let _0x3ba3ac=this[_0xac4e73(0x1ac)][_0xac4e73(0x1bd)](_0x14008c)['getCurrentUnitOfType'](_0x454af0['UNIVER_SHEET']);if(!_0x3ba3ac)throw Error(_0xac4e73(0x199));let _0x310149=_0x3ba3ac[_0xac4e73(0x1b9)](),_0x4452a3=this[_0xac4e73(0x1bc)]['getLiveShareCoordinatorSync'](_0x310149);if(!_0x4452a3)throw Error(_0xac4e73(0x1aa));_0x4452a3['startFollowing']();}[_0x4230ab(0x1b6)](){const _0x46c0c2=_0x4230ab;let _0x423aa1=this[_0x46c0c2(0x1ac)][_0x46c0c2(0x1bd)](_0x14008c)[_0x46c0c2(0x1b7)](_0x454af0['UNIVER_SHEET']);if(!_0x423aa1)throw Error(_0x46c0c2(0x199));let _0x48a972=_0x423aa1[_0x46c0c2(0x1b9)](),_0x4cdaae=this[_0x46c0c2(0x1bc)]['getLiveShareCoordinatorSync'](_0x48a972);if(!_0x4cdaae)throw Error(_0x46c0c2(0x1aa));_0x4cdaae[_0x46c0c2(0x1b6)]();}[_0x4230ab(0x198)](){const _0x169c08=_0x4230ab;let _0xde028c=this[_0x169c08(0x1ac)]['get'](_0x14008c)[_0x169c08(0x1b7)](_0x454af0[_0x169c08(0x1ab)]);if(!_0xde028c)throw Error(_0x169c08(0x199));let _0xf450aa=_0xde028c[_0x169c08(0x1b9)](),_0x5551fe=this['_liveShareController']['getLiveShareCoordinatorSync'](_0xf450aa);if(!_0x5551fe)throw Error(_0x169c08(0x1aa));_0x5551fe[_0x169c08(0x1ad)]();}['stopPresenting'](){const _0x358993=_0x4230ab;let _0x4d33b3=this[_0x358993(0x1ac)][_0x358993(0x1bd)](_0x14008c)['getCurrentUnitOfType'](_0x454af0['UNIVER_SHEET']);if(!_0x4d33b3)throw Error(_0x358993(0x199));let _0x24b69f=_0x4d33b3['getUnitId'](),_0x2e3862=this[_0x358993(0x1bc)][_0x358993(0x1a9)](_0x24b69f);if(!_0x2e3862)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2e3862[_0x358993(0x1b2)]();}};_0x27d841[_0x4230ab(0x1bb)](u);var d=class extends _0x23328a{get[_0x4230ab(0x1a3)](){return _0xf80c85;}};_0x23328a[_0x4230ab(0x1bb)](d);export{};
|
package/lib/index.css
CHANGED
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3a51e2=_0x4f04;(function(_0x7c94c4,_0x9fd205){const _0x517d9e=_0x4f04,_0x11008d=_0x7c94c4();while(!![]){try{const _0x4b19f5=-parseInt(_0x517d9e(0x129))/0x1*(-parseInt(_0x517d9e(0x15b))/0x2)+-parseInt(_0x517d9e(0x13f))/0x3*(-parseInt(_0x517d9e(0x16e))/0x4)+parseInt(_0x517d9e(0x181))/0x5*(parseInt(_0x517d9e(0x189))/0x6)+parseInt(_0x517d9e(0x175))/0x7+-parseInt(_0x517d9e(0x17e))/0x8*(parseInt(_0x517d9e(0x112))/0x9)+-parseInt(_0x517d9e(0x139))/0xa+-parseInt(_0x517d9e(0x121))/0xb;if(_0x4b19f5===_0x9fd205)break;else _0x11008d['push'](_0x11008d['shift']());}catch(_0x2953e4){_0x11008d['push'](_0x11008d['shift']());}}}(_0x3355,0x832fa));import{CommandType as _0x7f38d3,DependentOn as _0x4c3c0f,Disposable as _0x4a49fb,DisposableCollection as _0x18665d,ICommandService as _0x3b1e83,IConfigService as _0x57549a,IUniverInstanceService as _0x4621f9,Inject as _0x3840c8,Injector as _0x368b3b,Plugin as _0x4e113b,RxDisposable as _0x1e9a11,UniverInstanceType as _0x17f2f1,merge as _0x5aed77,mergeOverrideWithDependencies as _0x168dbe,registerDependencies as _0x127fa5,toDisposable as _0x4d1eee,touchDependencies as _0x337d60}from'@univerjs/core';import{BuiltInUIPart as _0x377270,IUIPartsService as _0x2e12cf,connectInjector as _0x7d9cd6,useDependency as _0x47178f,useObservable as _0x557da8}from'@univerjs/ui';function _0x4f04(_0x57b70f,_0x541404){_0x57b70f=_0x57b70f-0x106;const _0x33556f=_0x3355();let _0x4f044c=_0x33556f[_0x57b70f];return _0x4f044c;}import{Button as _0x1c8cae,Dropdown as _0x8acd69,clsx as _0x59885a}from'@univerjs/design';import{LiveShareIcon as _0x22016b}from'@univerjs/icons';import{useEffect as _0xa54735,useRef as _0x18e2b4,useState as _0x358d85}from'react';import{CollaborationEvent as _0x190d08,parseProtocolChangeset as _0x426c25}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x2d443c,SessionStatus as _0x193eec,UniverCollaborationClientPlugin as _0x9355f0}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x228261,SetWorksheetActiveOperation as _0x519c92}from'@univerjs/sheets';import{BehaviorSubject as _0x5a7d17,Subject as _0x574717}from'rxjs';import{takeUntil as _0x1bbe95,throttleTime as _0x409197}from'rxjs/operators';import{Fragment as _0x16c28a,jsx as _0xe94489,jsxs as _0x3b4390}from'react/jsx-runtime';import{SetScrollOperation as _0x13b133,SetZoomRatioOperation as _0x35525e}from'@univerjs/sheets-ui';function R(_0x40bae0){'@babel/helpers - typeof';const _0x2359fe=_0x4f04;return R=typeof Symbol==_0x2359fe(0x18b)&&typeof Symbol[_0x2359fe(0x120)]==_0x2359fe(0x194)?function(_0x145bbf){return typeof _0x145bbf;}:function(_0x524d37){const _0x45a1ad=_0x2359fe;return _0x524d37&&typeof Symbol=='function'&&_0x524d37[_0x45a1ad(0x179)]===Symbol&&_0x524d37!==Symbol[_0x45a1ad(0x143)]?_0x45a1ad(0x194):typeof _0x524d37;},R(_0x40bae0);}function z(_0x5e38e2,_0xd45460){const _0x3d6ea6=_0x4f04;if(R(_0x5e38e2)!=_0x3d6ea6(0x115)||!_0x5e38e2)return _0x5e38e2;var _0x580a8c=_0x5e38e2[Symbol['toPrimitive']];if(_0x580a8c!==void 0x0){var _0x1020fb=_0x580a8c[_0x3d6ea6(0x15d)](_0x5e38e2,_0xd45460||_0x3d6ea6(0x16b));if(R(_0x1020fb)!='object')return _0x1020fb;throw TypeError(_0x3d6ea6(0x165));}return(_0xd45460===_0x3d6ea6(0x197)?String:Number)(_0x5e38e2);}function B(_0x3058f0){var _0x56af65=z(_0x3058f0,'string');return R(_0x56af65)=='symbol'?_0x56af65:_0x56af65+'';}function V(_0x37da58,_0x440c93,_0x55f37b){return(_0x440c93=B(_0x440c93))in _0x37da58?Object['defineProperty'](_0x37da58,_0x440c93,{'value':_0x55f37b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x37da58[_0x440c93]=_0x55f37b,_0x37da58;}var H=class extends _0x4a49fb{constructor(..._0x128230){const _0x195211=_0x4f04;super(..._0x128230),V(this,_0x195211(0x162),new Set()),V(this,_0x195211(0x196),new Set());}[_0x3a51e2(0x138)](_0x29075c){const _0x34ac9b=_0x3a51e2;return this['_sharedOperations']['add'](_0x29075c),_0x4d1eee(()=>this[_0x34ac9b(0x162)][_0x34ac9b(0x163)](_0x29075c));}[_0x3a51e2(0x166)](_0x26e81f){const _0x52e67d=_0x3a51e2;return this['_reporters']['add'](_0x26e81f),_0x4d1eee(()=>this[_0x52e67d(0x196)]['delete'](_0x26e81f));}[_0x3a51e2(0x133)](_0x3bc063){const _0x39f892=_0x3a51e2;return this[_0x39f892(0x162)][_0x39f892(0x14a)](_0x3bc063);}[_0x3a51e2(0x180)](_0x22d7e7){const _0x43d20c=_0x3a51e2;return Array[_0x43d20c(0x106)](this[_0x43d20c(0x196)])['map'](_0x3cfc32=>_0x3cfc32(_0x22d7e7));}};function U(_0x21ac22,_0x5300cb){return function(_0x333287,_0x5490a9){_0x5300cb(_0x333287,_0x5490a9,_0x21ac22);};}function W(_0x435b2e,_0x32a2c4,_0x52d947,_0x43f3ba){const _0x5210b2=_0x3a51e2;var _0x1a58cb=arguments[_0x5210b2(0x155)],_0x32a8fc=_0x1a58cb<0x3?_0x32a2c4:_0x43f3ba===null?_0x43f3ba=Object[_0x5210b2(0x18a)](_0x32a2c4,_0x52d947):_0x43f3ba,_0x5f0cfb;if(typeof Reflect==_0x5210b2(0x115)&&typeof Reflect[_0x5210b2(0x18d)]==_0x5210b2(0x18b))_0x32a8fc=Reflect[_0x5210b2(0x18d)](_0x435b2e,_0x32a2c4,_0x52d947,_0x43f3ba);else{for(var _0x1c3fe9=_0x435b2e[_0x5210b2(0x155)]-0x1;_0x1c3fe9>=0x0;_0x1c3fe9--)(_0x5f0cfb=_0x435b2e[_0x1c3fe9])&&(_0x32a8fc=(_0x1a58cb<0x3?_0x5f0cfb(_0x32a8fc):_0x1a58cb>0x3?_0x5f0cfb(_0x32a2c4,_0x52d947,_0x32a8fc):_0x5f0cfb(_0x32a2c4,_0x52d947))||_0x32a8fc);}return _0x1a58cb>0x3&&_0x32a8fc&&Object[_0x5210b2(0x17f)](_0x32a2c4,_0x52d947,_0x32a8fc),_0x32a8fc;}let G=class extends _0x1e9a11{constructor(_0x2d0d1b,_0x3c9550,_0x24da43){const _0xd924e6=_0x3a51e2;super(),this[_0xd924e6(0x12e)]=_0x2d0d1b,this[_0xd924e6(0x10e)]=_0x3c9550,this[_0xd924e6(0x110)]=_0x24da43,V(this,_0xd924e6(0x11c),new Map()),this[_0xd924e6(0x188)]();}async['getLiveShareCoordinator'](_0x19eded){const _0x552abb=_0x3a51e2;return this['_entities'][_0x552abb(0x14a)](_0x19eded)||await this[_0x552abb(0x11d)](_0x19eded),this[_0x552abb(0x11c)][_0x552abb(0x183)](_0x19eded);}[_0x3a51e2(0x134)](_0x5a9c67){const _0x31d597=_0x3a51e2;var _0x36e5c1;return(_0x36e5c1=this[_0x31d597(0x11c)][_0x31d597(0x183)](_0x5a9c67))==null?null:_0x36e5c1;}['_init'](){const _0x430e38=_0x3a51e2;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x17f2f1[_0x430e38(0x158)])[_0x430e38(0x10a)](_0x1bbe95(this[_0x430e38(0x191)]))[_0x430e38(0x19a)](async _0x8c48c7=>{const _0x4fca02=_0x430e38;let _0x389370=_0x8c48c7['unit']['getUnitId']();this['_entities'][_0x4fca02(0x14a)](_0x389370)||this['_startLiveShareCoordinator'](_0x389370);}),this[_0x430e38(0x12e)]['getTypeOfUnitDisposed$'](_0x17f2f1[_0x430e38(0x158)])[_0x430e38(0x10a)](_0x1bbe95(this['dispose$']))[_0x430e38(0x19a)](_0x1b0592=>{const _0x219248=_0x430e38;let _0x154f02=_0x1b0592['getUnitId'](),_0x2763e1=this[_0x219248(0x11c)][_0x219248(0x183)](_0x154f02);_0x2763e1==null||_0x2763e1[_0x219248(0x13a)]();});}async[_0x3a51e2(0x11d)](_0x206541){const _0x4077cb=_0x3a51e2;let _0x299bd5=await this[_0x4077cb(0x110)][_0x4077cb(0x14c)](_0x206541),_0x23fb35=this[_0x4077cb(0x10e)][_0x4077cb(0x16d)](q,_0x206541,_0x299bd5);return _0x23fb35[_0x4077cb(0x11a)](),this['_entities'][_0x4077cb(0x192)](_0x206541,_0x23fb35),_0x23fb35;}};G=W([U(0x0,_0x4621f9),U(0x1,_0x3840c8(_0x368b3b)),U(0x2,_0x3840c8(_0x2d443c))],G);let K=function(_0x40e7e5){const _0x1707de=_0x3a51e2;return _0x40e7e5[_0x1707de(0x141)]='offline',_0x40e7e5[_0x1707de(0x117)]=_0x1707de(0x151),_0x40e7e5[_0x1707de(0x186)]=_0x1707de(0x160),_0x40e7e5[_0x1707de(0x150)]=_0x1707de(0x12a),_0x40e7e5[_0x1707de(0x154)]=_0x1707de(0x156),_0x40e7e5;}({}),q=class extends _0x1e9a11{get[_0x3a51e2(0x140)](){const _0x2b6524=_0x3a51e2;return this[_0x2b6524(0x17c)][_0x2b6524(0x18f)]();}constructor(_0x43e65f,_0x369a37,_0x393d64,_0x434708,_0x40b832){const _0x3e3032=_0x3a51e2;super(),this[_0x3e3032(0x164)]=_0x43e65f,this[_0x3e3032(0x119)]=_0x369a37,this['_configService']=_0x393d64,this[_0x3e3032(0x136)]=_0x434708,this[_0x3e3032(0x108)]=_0x40b832,V(this,_0x3e3032(0x17c),new _0x5a7d17(_0x3e3032(0x151))),V(this,_0x3e3032(0x12c),this['_status$']['asObservable']()),V(this,'_init',!0x1),V(this,_0x3e3032(0x116),null),V(this,_0x3e3032(0x10c),null);}[_0x3a51e2(0x13a)](){const _0x284d01=_0x3a51e2;var _0x5ab5ee;(_0x5ab5ee=this[_0x284d01(0x116)])==null||_0x5ab5ee[_0x284d01(0x13a)](),this['_status$'][_0x284d01(0x159)](_0x284d01(0x151)),this[_0x284d01(0x17c)][_0x284d01(0x12d)]();}[_0x3a51e2(0x170)](){const _0x35afb5=_0x3a51e2;return this[_0x35afb5(0x140)];}[_0x3a51e2(0x11a)](){const _0x41b569=_0x3a51e2;this[_0x41b569(0x188)]||(this[_0x41b569(0x188)]=!0x0,this['_collabSession']['sessionStatus$']['pipe'](_0x1bbe95(this[_0x41b569(0x191)]))[_0x41b569(0x19a)](_0x4b2061=>{const _0x451f48=_0x41b569;switch(_0x4b2061){case _0x193eec['OFFLINE']:this[_0x451f48(0x124)]();break;case _0x193eec[_0x451f48(0x127)]:this[_0x451f48(0x152)]();break;default:}}),this['_collabSession'][_0x41b569(0x142)]['pipe'](_0x1bbe95(this['dispose$']))[_0x41b569(0x19a)](_0x4a7ee4=>{const _0x13c775=_0x41b569;let {eventID:_0x24563a}=_0x4a7ee4;switch(_0x24563a){case _0x190d08[_0x13c775(0x137)]:this[_0x13c775(0x195)](_0x4a7ee4);break;case _0x190d08[_0x13c775(0x114)]:this[_0x13c775(0x144)](_0x4a7ee4);break;case _0x190d08[_0x13c775(0x161)]:this['_handleTerminate']();break;case _0x190d08[_0x13c775(0x125)]:this[_0x13c775(0x123)](_0x4a7ee4);break;default:}}));}['tryStartPresenting'](){const _0x2d4d04=_0x3a51e2;this[_0x2d4d04(0x119)][_0x2d4d04(0x185)]({'eventID':_0x190d08['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x2d4d04(0x119)][_0x2d4d04(0x13c)]()}},this[_0x2d4d04(0x164)]);}[_0x3a51e2(0x146)](){const _0x10bfec=_0x3a51e2;this['_status']===_0x10bfec(0x156)&&(this[_0x10bfec(0x17c)][_0x10bfec(0x159)]('idle'),this[_0x10bfec(0x119)][_0x10bfec(0x185)]({'eventID':_0x190d08[_0x10bfec(0x161)],'data':{'unitID':this[_0x10bfec(0x164)]}},this[_0x10bfec(0x164)]));}[_0x3a51e2(0x171)](){const _0x11a72a=_0x3a51e2;this['_status']===_0x11a72a(0x12a)&&(this[_0x11a72a(0x17c)][_0x11a72a(0x159)](_0x11a72a(0x160)),this[_0x11a72a(0x187)]());}[_0x3a51e2(0x157)](){const _0x14eacd=_0x3a51e2;this[_0x14eacd(0x140)]===_0x14eacd(0x160)&&this['_stopFollowing']();}['_handleNewHost'](_0x1651f0){const _0x4dc404=_0x3a51e2;let {presenter:_0x1ecdee}=_0x1651f0[_0x4dc404(0x16f)],_0x5d5e28=this[_0x4dc404(0x119)][_0x4dc404(0x13c)]();this[_0x4dc404(0x10c)]=_0x1ecdee,_0x1ecdee===_0x5d5e28?(this[_0x4dc404(0x131)](),this[_0x4dc404(0x15a)]()):this[_0x4dc404(0x140)]!==_0x4dc404(0x12a)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x3a51e2(0x126)](){const _0x25250c=_0x3a51e2;let _0x590b56={'eventID':_0x190d08['LIVESHARE_FETCH_OPERATIONS']};this[_0x25250c(0x119)][_0x25250c(0x185)](_0x590b56,this[_0x25250c(0x164)]);}[_0x3a51e2(0x10d)](){const _0x13d2fb=_0x3a51e2;this['_presenter']=null,this[_0x13d2fb(0x140)]!==_0x13d2fb(0x156)&&this['_beIdle']();}[_0x3a51e2(0x123)](_0x163903){const _0x27382b=_0x3a51e2;if(this['_status']===_0x27382b(0x160)&&this[_0x27382b(0x10c)]===_0x163903[_0x27382b(0x16f)][_0x27382b(0x147)]){let _0x5b1cf6=_0x426c25(_0x163903[_0x27382b(0x16f)])[_0x27382b(0x173)][_0x27382b(0x14b)]()[_0x27382b(0x132)](_0x362b5a=>_0x362b5a['id']===_0x228261['id']);if(_0x5b1cf6){let _0x29c4b0=_0x5b1cf6[_0x27382b(0x130)][_0x27382b(0x17a)],_0x30543d=_0x5b1cf6[_0x27382b(0x130)]['sheet']['id'];setTimeout(()=>{const _0x1e70fe=_0x27382b;this[_0x1e70fe(0x108)][_0x1e70fe(0x128)](_0x519c92['id'],{'unitId':_0x29c4b0,'subUnitId':_0x30543d},{'fromCollab':!0x0});});}}}[_0x3a51e2(0x15a)](){const _0x34a16d=_0x3a51e2;var _0x463490;(_0x463490=this[_0x34a16d(0x116)])==null||_0x463490[_0x34a16d(0x13a)](),this[_0x34a16d(0x17c)][_0x34a16d(0x159)]('presenting');let _0x453ff6=new Map(),_0x3da532=this[_0x34a16d(0x116)]=new _0x18665d();_0x3da532[_0x34a16d(0x19c)](_0x4d1eee(()=>{const _0x232b80=_0x34a16d;_0x453ff6[_0x232b80(0x167)](({subject:_0x56c9e4,subscription:_0x41f52d})=>{const _0x170c8c=_0x232b80;_0x41f52d[_0x170c8c(0x16c)](),_0x56c9e4[_0x170c8c(0x12d)]();}),_0x453ff6[_0x232b80(0x198)]();})),_0x3da532[_0x34a16d(0x19c)](this[_0x34a16d(0x108)][_0x34a16d(0x190)](_0x3b026b=>{const _0x751393=_0x34a16d;if(_0x3b026b[_0x751393(0x13e)]!==_0x7f38d3[_0x751393(0x135)]||!this[_0x751393(0x136)][_0x751393(0x133)](_0x3b026b['id']))return;let {id:_0x278cb3}=_0x3b026b,_0x4db587;if(_0x453ff6[_0x751393(0x14a)](_0x278cb3))_0x4db587=_0x453ff6[_0x751393(0x183)](_0x278cb3)[_0x751393(0x11e)];else{var _0x465484;_0x4db587=new _0x574717();let _0x4fe22a=_0x4db587[_0x751393(0x10a)](_0x409197((_0x465484=this[_0x751393(0x15c)][_0x751393(0x145)](_0x751393(0x177)))==null?0xc8:_0x465484,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x751393(0x19a)](_0x76ef33=>{const _0x4b7ab0=_0x751393;this[_0x4b7ab0(0x119)][_0x4b7ab0(0x185)]({'eventID':_0x190d08[_0x4b7ab0(0x114)],'data':{'unitID':this[_0x4b7ab0(0x164)],'operations':{[_0x76ef33['id']]:{'id':_0x76ef33['id'],'params':JSON['stringify'](_0x76ef33['params'])}}}},this['_unitID']);});_0x453ff6[_0x751393(0x192)](_0x278cb3,{'subject':_0x4db587,'subscription':_0x4fe22a});}_0x4db587[_0x751393(0x159)](_0x3b026b);})),this['_liveShareService'][_0x34a16d(0x180)](this[_0x34a16d(0x164)])[_0x34a16d(0x167)](_0x45d99e=>this[_0x34a16d(0x119)]['send']({'eventID':_0x190d08['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x34a16d(0x164)],'operations':{[_0x45d99e['id']]:{'id':_0x45d99e['id'],'params':JSON['stringify'](_0x45d99e['params'])}}}},this[_0x34a16d(0x164)]));}['_stopPresenting'](){const _0x32eb23=_0x3a51e2;var _0x99d5cc;this[_0x32eb23(0x17c)][_0x32eb23(0x159)](_0x32eb23(0x151)),(_0x99d5cc=this[_0x32eb23(0x116)])==null||_0x99d5cc[_0x32eb23(0x13a)](),this[_0x32eb23(0x116)]=null;}[_0x3a51e2(0x187)](){const _0x498ad6=_0x3a51e2;var _0x4528be;(_0x4528be=this[_0x498ad6(0x116)])==null||_0x4528be[_0x498ad6(0x13a)](),this[_0x498ad6(0x17c)][_0x498ad6(0x159)](_0x498ad6(0x160));}[_0x3a51e2(0x17d)](){const _0x53c94e=_0x3a51e2;var _0x1e18df;this[_0x53c94e(0x17c)][_0x53c94e(0x159)](_0x53c94e(0x151)),(_0x1e18df=this['_commandDisposable'])==null||_0x1e18df[_0x53c94e(0x13a)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x52a6c5=_0x3a51e2;var _0xac56a2;this['_status$'][_0x52a6c5(0x159)](_0x52a6c5(0x12a)),(_0xac56a2=this[_0x52a6c5(0x116)])==null||_0xac56a2['dispose']();}['_handleOperation'](_0x1e233c){const _0xd56dba=_0x3a51e2;if([_0xd56dba(0x156),_0xd56dba(0x12a),'offline'][_0xd56dba(0x109)](this[_0xd56dba(0x140)])||!_0x1e233c['data'][_0xd56dba(0x18c)]||_0x1e233c['data'][_0xd56dba(0x18c)]===this[_0xd56dba(0x119)][_0xd56dba(0x13c)]())return;this[_0xd56dba(0x140)]===_0xd56dba(0x151)&&this[_0xd56dba(0x187)]();let _0x256ee3=_0x1e233c[_0xd56dba(0x16f)][_0xd56dba(0x14f)];Object[_0xd56dba(0x113)](_0x256ee3)[_0xd56dba(0x167)](_0x59a1d2=>{const _0x28a37d=_0xd56dba;this[_0x28a37d(0x108)][_0x28a37d(0x128)](_0x59a1d2['id'],_0x59a1d2[_0x28a37d(0x130)]?JSON['parse'](_0x59a1d2[_0x28a37d(0x130)]):null,{'fromCollab':!0x0});});}[_0x3a51e2(0x124)](){const _0x35c6c8=_0x3a51e2;var _0x2f56c5;this[_0x35c6c8(0x17c)]['next'](_0x35c6c8(0x122)),(_0x2f56c5=this[_0x35c6c8(0x116)])==null||_0x2f56c5[_0x35c6c8(0x13a)]();}['_handleOnline'](){const _0xd9627=_0x3a51e2;this[_0xd9627(0x17c)][_0xd9627(0x159)]('idle'),this['_fetchOperations']();}};q=W([U(0x2,_0x57549a),U(0x3,_0x3840c8(H)),U(0x4,_0x3b1e83)],q);function J(){const _0x41191f=_0x3a51e2;let _0x290dc9=_0x47178f(G),_0x592e87=_0x47178f(_0x4621f9),_0x17f05d=_0x557da8(()=>_0x592e87[_0x41191f(0x18e)](_0x17f2f1[_0x41191f(0x158)]),void 0x0,!0x1,[]),[_0xeea236,_0x431a25]=_0x358d85(null),[_0x147972,_0x44b26c]=_0x358d85(_0x41191f(0x151)),_0x2c68c2=_0x18e2b4(null);return _0xa54735(()=>(_0x17f05d&&_0x290dc9['getLiveShareCoordinator'](_0x17f05d[_0x41191f(0x19d)]())[_0x41191f(0x17b)](_0x320267=>{const _0x33307d=_0x41191f;_0x431a25(_0x320267),_0x2c68c2[_0x33307d(0x10b)]=_0x320267[_0x33307d(0x12c)][_0x33307d(0x19a)](_0x545bdc=>{_0x44b26c(_0x545bdc);});}),()=>{const _0x58820f=_0x41191f;var _0x5f5b83;(_0x5f5b83=_0x2c68c2[_0x58820f(0x10b)])==null||_0x5f5b83[_0x58820f(0x16c)](),_0x2c68c2['current']=null;}),[_0x17f05d,_0x290dc9]),_0xeea236?_0xe94489(_0x8acd69,{'align':_0x41191f(0x10f),'disabled':_0x147972===_0x41191f(0x122),'className':_0x41191f(0x15e),'overlay':_0xe94489(se,{'status':_0x147972,'coordinator':_0xeea236}),'children':_0xe94489(_0x41191f(0x14d),{'className':_0x59885a('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x147972===_0x41191f(0x122),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x147972!==_0x41191f(0x122)}),'type':_0x41191f(0x14d),'children':_0xe94489(_0x22016b,{'className':_0x41191f(0x193)})})}):null;}function se(_0x462768){const _0x22ba38=_0x3a51e2;let {status:_0x29f8d1,coordinator:_0x2e1208}=_0x462768;switch(_0x29f8d1){case'idle':return _0xe94489(ce,{'coordinator':_0x2e1208});case _0x22ba38(0x160):return _0xe94489(le,{'coordinator':_0x2e1208});case _0x22ba38(0x12a):return _0xe94489(ue,{'coordinator':_0x2e1208});case'offline':return _0xe94489(de,{});case _0x22ba38(0x156):return _0xe94489(Y,{'coordinator':_0x2e1208});default:return null;}}function ce(_0xe425ea){const _0x3ce838=_0x3a51e2;let {coordinator:_0x4cffe4}=_0xe425ea;return _0x3b4390(_0x16c28a,{'children':[_0xe94489(_0x3ce838(0x15f),{'className':_0x3ce838(0x19b),'children':_0x3ce838(0x118)}),_0xe94489(_0x1c8cae,{'onClick':()=>_0x4cffe4[_0x3ce838(0x12f)](),'children':_0x3ce838(0x176)})]});}function le(_0x4a0205){const _0x604d73=_0x3a51e2;let {coordinator:_0x569f56}=_0x4a0205;return _0x3b4390(_0x16c28a,{'children':[_0xe94489(_0x604d73(0x15f),{'className':_0x604d73(0x19b),'children':_0x604d73(0x182)}),_0xe94489(_0x1c8cae,{'onClick':()=>_0x569f56[_0x604d73(0x157)](),'children':'Stop\x20following'})]});}function ue(_0x13229f){const _0x597adc=_0x3a51e2;let {coordinator:_0x548d73}=_0x13229f;return _0x3b4390(_0x16c28a,{'children':[_0xe94489(_0x597adc(0x15f),{'className':_0x597adc(0x19b),'children':_0x597adc(0x11f)}),_0xe94489(_0x1c8cae,{'variant':_0x597adc(0x107),'onClick':()=>_0x548d73[_0x597adc(0x171)](),'children':'Start\x20following'})]});}function Y(_0x1288a1){const _0x23a5b8=_0x3a51e2;let {coordinator:_0x97b1e1}=_0x1288a1;return _0x3b4390(_0x16c28a,{'children':[_0xe94489(_0x23a5b8(0x15f),{'className':_0x23a5b8(0x19b),'children':_0x23a5b8(0x111)}),_0xe94489(_0x1c8cae,{'variant':_0x23a5b8(0x16b),'onClick':()=>_0x97b1e1[_0x23a5b8(0x146)](),'children':_0x23a5b8(0x172)})]});}function de(){const _0x645c71=_0x3a51e2;return _0xe94489(_0x16c28a,{'children':_0x645c71(0x153)});}let X=class extends _0x4a49fb{constructor(_0x1235b0,_0x4dffd6){const _0x2a95b2=_0x3a51e2;super(),this['_injector']=_0x1235b0,this[_0x2a95b2(0x169)]=_0x4dffd6,this[_0x2a95b2(0x11b)]();}[_0x3a51e2(0x11b)](){const _0x400b71=_0x3a51e2;this[_0x400b71(0x174)](this['_uiPartsService'][_0x400b71(0x13b)](_0x377270[_0x400b71(0x148)],()=>_0x7d9cd6(J,this['_injector'])));}};X=W([U(0x0,_0x3840c8(_0x368b3b)),U(0x1,_0x2e12cf)],X);var fe='@univerjs-pro/live-share',pe='0.25.1';function _0x3355(){const _0x445cda=['registerComponent','getMemberID','setConfig','type','2025663idGcpW','_status','OFFLINE','event$','prototype','_handleOperation','getConfig','stopPresenting','memberID','HEADER_MENU','onStarting','has','reverse','requireSession','button','_config','operations','NOT_FOLLOWING','idle','_handleOnline','You\x27are\x20offline.','PRESENTING','length','presenting','stopFollowing','UNIVER_SHEET','next','_startPresenting','1846eGkgmN','_configService','call','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','div','following','LIVESHARE_TERMINATE','_sharedOperations','delete','_unitID','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','registerInitialStateReporter','forEach','live-share.config','_uiPartsService','override','default','unsubscribe','createInstance','4rwIDrz','data','getStatus','startFollowing','Stop\x20presenting','mutations','disposeWithMe','4281753lrXCUB','Start','SAME_OPERATION_SHARE_INTERVAL','packageName','constructor','unitId','then','_status$','_beIdle','416560emdqXc','defineProperty','getInitialStates','45OIxCvk','You\x27re\x20following\x20the\x20presenter','get','version','send','FOLLOWING','_startFollowing','_init','551856fnNNXI','getOwnPropertyDescriptor','function','presenter','decorate','getCurrentTypeOfUnit$','getValue','onCommandExecuted','dispose$','set','univer-size-4','symbol','_handleNewHost','_reporters','string','clear','UNIVER_LIVE_SHARE_PLUGIN','subscribe','univer-mb-3\x20univer-w-full\x20univer-text-sm','add','getUnitId','from','text','_commandService','includes','pipe','current','_presenter','_handleTerminate','_injector','end','_collabSessionService','You\x27re\x20presenting\x20the\x20document','126hOOgSF','values','LIVESHARE_OPERATION','object','_commandDisposable','IDLE','Present\x20this\x20document','_collabSession','init','_mountLiveShare','_entities','_startLiveShareCoordinator','subject','You\x27re\x20not\x20following\x20the\x20presenter','iterator','15159276rXigCW','offline','_handleNewChangeSets','_handleOffline','NEW_CHANGESETS','_fetchOperations','ONLINE','executeCommand','859CQMnfw','not-following','pluginName','status$','complete','_univerInstanceService','tryStartPresenting','params','_stopFollowing','find','shouldShareOperation','getLiveShareCoordinatorSync','OPERATION','_liveShareService','LIVESHARE_NEW_HOST','registerSharedOperation','2631070jaWWIj','dispose'];_0x3355=function(){return _0x445cda;};return _0x3355();}const Z={};let Q=class extends _0x4a49fb{constructor(_0x351bd8){const _0x3106e4=_0x3a51e2;super(),this[_0x3106e4(0x136)]=_0x351bd8,this[_0x3106e4(0x188)]();}[_0x3a51e2(0x188)](){[_0x35525e['id'],_0x13b133['id'],_0x519c92['id']]['forEach'](_0x2e3836=>{const _0x5ab586=_0x4f04;this['disposeWithMe'](this[_0x5ab586(0x136)][_0x5ab586(0x138)](_0x2e3836));});}};Q=W([U(0x0,_0x3840c8(H))],Q);let $=class extends _0x4e113b{constructor(_0x21a659=Z,_0x51af84,_0x7c930f){const _0x3dd96d=_0x3a51e2;super(),this[_0x3dd96d(0x14e)]=_0x21a659,this['_injector']=_0x51af84,this[_0x3dd96d(0x15c)]=_0x7c930f;let {..._0xd57fa5}=_0x5aed77({},Z,this[_0x3dd96d(0x14e)]);this[_0x3dd96d(0x15c)][_0x3dd96d(0x13d)](_0x3dd96d(0x168),_0xd57fa5);}[_0x3a51e2(0x149)](){const _0x27b297=_0x3a51e2;_0x127fa5(this[_0x27b297(0x10e)],_0x168dbe([[H],[G],[Q],[X]],this[_0x27b297(0x14e)][_0x27b297(0x16a)])),_0x337d60(this[_0x27b297(0x10e)],[[Q]]);}['onRendered'](){_0x337d60(this['_injector'],[[X]]);}};V($,_0x3a51e2(0x13e),_0x17f2f1['UNIVER_UNKNOWN']),V($,_0x3a51e2(0x12b),_0x3a51e2(0x199)),V($,_0x3a51e2(0x178),fe),V($,_0x3a51e2(0x184),pe),$=W([_0x4c3c0f(_0x9355f0),U(0x1,_0x3840c8(_0x368b3b)),U(0x2,_0x57549a)],$);export{X as DesktopLiveShareController,J as LiveShare,G as LiveShareController,q as LiveShareCoordinator,H as LiveShareService,K as LiveShareStatus,$ as UniverLiveSharePlugin};
|
|
1
|
+
const _0x163933=_0x49a4;(function(_0x166d25,_0xb36586){const _0x5ed3f5=_0x49a4,_0x5e91b3=_0x166d25();while(!![]){try{const _0x5a83e8=parseInt(_0x5ed3f5(0x1e0))/0x1+parseInt(_0x5ed3f5(0x18e))/0x2*(-parseInt(_0x5ed3f5(0x1ba))/0x3)+-parseInt(_0x5ed3f5(0x18f))/0x4+parseInt(_0x5ed3f5(0x19f))/0x5*(-parseInt(_0x5ed3f5(0x177))/0x6)+parseInt(_0x5ed3f5(0x17e))/0x7+-parseInt(_0x5ed3f5(0x1e2))/0x8*(-parseInt(_0x5ed3f5(0x1f2))/0x9)+parseInt(_0x5ed3f5(0x1eb))/0xa*(-parseInt(_0x5ed3f5(0x1da))/0xb);if(_0x5a83e8===_0xb36586)break;else _0x5e91b3['push'](_0x5e91b3['shift']());}catch(_0x4b0be9){_0x5e91b3['push'](_0x5e91b3['shift']());}}}(_0x4c3f,0x670ae));import{CollaborationEvent as _0x2f4f4b,parseProtocolChangeset as _0xf7fca8}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1dc03d,SessionStatus as _0x43364d,UniverCollaborationClientPlugin as _0x33b357}from'@univerjs-pro/collaboration-client';import{CommandType as _0x41b375,DependentOn as _0x372528,Disposable as _0x3a6ee4,DisposableCollection as _0x373e29,ICommandService as _0x15ae55,IConfigService as _0x3287d9,IUniverInstanceService as _0x5dd410,Inject as _0x147d4e,Injector as _0x430c6d,Plugin as _0x2c55cc,RxDisposable as _0x3eff75,UniverInstanceType as _0x19d69b,merge as _0x1f0203,mergeOverrideWithDependencies as _0x76a44e,registerDependencies as _0x492046,toDisposable as _0x2c9771,touchDependencies as _0x4b567d}from'@univerjs/core';import{InsertSheetMutation as _0x29a9fa,SetWorksheetActiveOperation as _0x24df1b}from'@univerjs/sheets';import{BehaviorSubject as _0x1bdd9f,Subject as _0x4a9313}from'rxjs';import{takeUntil as _0x66b583,throttleTime as _0x23f001}from'rxjs/operators';import{BuiltInUIPart as _0x27c857,IUIPartsService as _0x2568a8,connectInjector as _0x34038f,useDependency as _0x4d0b0b,useObservable as _0x471499}from'@univerjs/ui';function _0x4c3f(){const _0x1d12b0=['_reporters','HEADER_MENU','clear','presenter','_injector','set','FOLLOWING','_commandService','setConfig','status$','executeCommand','LIVESHARE_FETCH_OPERATIONS','subscribe','Start','_handleOnline','getLiveShareCoordinatorSync','data','onStarting','call','6rifvkw','memberID','idle','prototype','_startFollowing','_univerInstanceService','_startPresenting','3153962cexbSX','packageName','toPrimitive','getValue','pluginName','createInstance','_handleNewChangeSets','end','@univerjs-pro/live-share','getTypeOfUnitAdded$','sessionStatus$','decorate','ONLINE','asObservable','pipe','button','12JjJguK','3217576HJgNcE','override','getCurrentTypeOfUnit$','getLiveShareCoordinator','_entities','UNIVER_SHEET','LIVESHARE_REQUEST_HOST','LIVESHARE_NEW_HOST','_unitID','LIVESHARE_TERMINATE','offline','OPERATION','_collabSession','length','shouldShareOperation','_commandDisposable','1497950knNXPS','requireSession','_startLiveShareCoordinator','sheet','tryStartPresenting','OFFLINE','onRendered','current','delete','function','default','getOwnPropertyDescriptor','_collabSessionService','get','stringify','_sharedOperations','following','from','defineProperty','You\x27are\x20offline.','includes','_config','_handleOperation','unitId','div','_handleOffline','complete','82179tBeTmf','You\x27re\x20presenting\x20the\x20document','getInitialStates','forEach','_status','unit','getStatus','getUnitId','presenting','_stopFollowing','disposeWithMe','has','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','add','string','_handleTerminate','_status$','symbol','mutations','_configService','_uiPartsService','univer-mb-3\x20univer-w-full\x20univer-text-sm','stopFollowing','_liveShareService','not-following','getTypeOfUnitDisposed$','reverse','getConfig','UNIVER_LIVE_SHARE_PLUGIN','constructor','registerComponent','_presenter','2560206GIuVnm','1.0.0-alpha.1','_init','onCommandExecuted','send','_mountLiveShare','635588GlObXK','version','1673992efwRCn','find','params','getMemberID','next','LIVESHARE_OPERATION','then','Start\x20following','object','10nwvzzS','init','NOT_FOLLOWING','_handleNewHost','_stopPresenting','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','type','36ekssiw','UNIVER_UNKNOWN','PRESENTING','dispose','dispose$','unsubscribe'];_0x4c3f=function(){return _0x1d12b0;};return _0x4c3f();}import{Button as _0xac3a18,Dropdown as _0x4045b5,clsx as _0x38f52b}from'@univerjs/design';import{LiveShareIcon as _0x5e9cb6}from'@univerjs/icons';import{useEffect as _0x542576,useRef as _0x418b8a,useState as _0x41fdc7}from'react';import{Fragment as _0x98295f,jsx as _0x50789a,jsxs as _0x16b88}from'react/jsx-runtime';import{SetScrollOperation as _0x452de4,SetZoomRatioOperation as _0x284992}from'@univerjs/sheets-ui';function R(_0x2e5dbd){'@babel/helpers - typeof';const _0x1909dc=_0x49a4;return R=typeof Symbol==_0x1909dc(0x1a8)&&typeof Symbol['iterator']=='symbol'?function(_0x1aede5){return typeof _0x1aede5;}:function(_0x4970eb){const _0x1f32d9=_0x1909dc;return _0x4970eb&&typeof Symbol=='function'&&_0x4970eb[_0x1f32d9(0x1d7)]===Symbol&&_0x4970eb!==Symbol[_0x1f32d9(0x17a)]?_0x1f32d9(0x1cb):typeof _0x4970eb;},R(_0x2e5dbd);}function z(_0x360513,_0x561972){const _0x566e15=_0x49a4;if(R(_0x360513)!=_0x566e15(0x1ea)||!_0x360513)return _0x360513;var _0x1ca540=_0x360513[Symbol[_0x566e15(0x180)]];if(_0x1ca540!==void 0x0){var _0xaa31f1=_0x1ca540[_0x566e15(0x176)](_0x360513,_0x561972||_0x566e15(0x1a9));if(R(_0xaa31f1)!=_0x566e15(0x1ea))return _0xaa31f1;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x561972===_0x566e15(0x1c8)?String:Number)(_0x360513);}function B(_0x298d17){const _0x2bc6a9=_0x49a4;var _0x2e51f5=z(_0x298d17,_0x2bc6a9(0x1c8));return R(_0x2e51f5)==_0x2bc6a9(0x1cb)?_0x2e51f5:_0x2e51f5+'';}function V(_0x4bc780,_0x3b6231,_0x10d764){return(_0x3b6231=B(_0x3b6231))in _0x4bc780?Object['defineProperty'](_0x4bc780,_0x3b6231,{'value':_0x10d764,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4bc780[_0x3b6231]=_0x10d764,_0x4bc780;}function _0x49a4(_0x430074,_0x2c9319){_0x430074=_0x430074-0x175;const _0x4c3fa5=_0x4c3f();let _0x49a4ac=_0x4c3fa5[_0x430074];return _0x49a4ac;}var H=class extends _0x3a6ee4{constructor(..._0x39f7fb){const _0x4d3fcd=_0x49a4;super(..._0x39f7fb),V(this,_0x4d3fcd(0x1ae),new Set()),V(this,_0x4d3fcd(0x1f8),new Set());}['registerSharedOperation'](_0xac2562){const _0x14bfae=_0x49a4;return this[_0x14bfae(0x1ae)]['add'](_0xac2562),_0x2c9771(()=>this['_sharedOperations'][_0x14bfae(0x1a7)](_0xac2562));}['registerInitialStateReporter'](_0x4b672f){const _0x5870a3=_0x49a4;return this['_reporters'][_0x5870a3(0x1c7)](_0x4b672f),_0x2c9771(()=>this[_0x5870a3(0x1f8)][_0x5870a3(0x1a7)](_0x4b672f));}[_0x163933(0x19d)](_0x2c4e5c){const _0x1680f1=_0x163933;return this[_0x1680f1(0x1ae)][_0x1680f1(0x1c5)](_0x2c4e5c);}[_0x163933(0x1bc)](_0x48c9c8){const _0x3e8813=_0x163933;return Array[_0x3e8813(0x1b0)](this['_reporters'])['map'](_0x56600c=>_0x56600c(_0x48c9c8));}};function U(_0xe4e8b3,_0x1df87b){return function(_0xa60193,_0x182af4){_0x1df87b(_0xa60193,_0x182af4,_0xe4e8b3);};}function W(_0x386c97,_0x3a1df4,_0x4c0591,_0x1ea34e){const _0x3f17be=_0x163933;var _0x5a9968=arguments['length'],_0x2d3b37=_0x5a9968<0x3?_0x3a1df4:_0x1ea34e===null?_0x1ea34e=Object[_0x3f17be(0x1aa)](_0x3a1df4,_0x4c0591):_0x1ea34e,_0x1b9b97;if(typeof Reflect=='object'&&typeof Reflect[_0x3f17be(0x189)]==_0x3f17be(0x1a8))_0x2d3b37=Reflect['decorate'](_0x386c97,_0x3a1df4,_0x4c0591,_0x1ea34e);else{for(var _0x1a01d8=_0x386c97[_0x3f17be(0x19c)]-0x1;_0x1a01d8>=0x0;_0x1a01d8--)(_0x1b9b97=_0x386c97[_0x1a01d8])&&(_0x2d3b37=(_0x5a9968<0x3?_0x1b9b97(_0x2d3b37):_0x5a9968>0x3?_0x1b9b97(_0x3a1df4,_0x4c0591,_0x2d3b37):_0x1b9b97(_0x3a1df4,_0x4c0591))||_0x2d3b37);}return _0x5a9968>0x3&&_0x2d3b37&&Object[_0x3f17be(0x1b1)](_0x3a1df4,_0x4c0591,_0x2d3b37),_0x2d3b37;}let G=class extends _0x3eff75{constructor(_0x226578,_0x47fef8,_0x38b540){const _0x226b13=_0x163933;super(),this[_0x226b13(0x17c)]=_0x226578,this[_0x226b13(0x1fc)]=_0x47fef8,this[_0x226b13(0x1ab)]=_0x38b540,V(this,_0x226b13(0x193),new Map()),this[_0x226b13(0x1dc)]();}async[_0x163933(0x192)](_0x24bf37){const _0x5ea5c0=_0x163933;return this[_0x5ea5c0(0x193)]['has'](_0x24bf37)||await this[_0x5ea5c0(0x1a1)](_0x24bf37),this[_0x5ea5c0(0x193)][_0x5ea5c0(0x1ac)](_0x24bf37);}[_0x163933(0x207)](_0x4a1474){const _0x2ebb49=_0x163933;var _0x592831;return(_0x592831=this[_0x2ebb49(0x193)]['get'](_0x4a1474))==null?null:_0x592831;}[_0x163933(0x1dc)](){const _0x2cdc17=_0x163933;this[_0x2cdc17(0x17c)][_0x2cdc17(0x187)](_0x19d69b['UNIVER_SHEET'])[_0x2cdc17(0x18c)](_0x66b583(this['dispose$']))[_0x2cdc17(0x204)](async _0x15dbb3=>{const _0x5f77be=_0x2cdc17;let _0x3a2665=_0x15dbb3[_0x5f77be(0x1bf)]['getUnitId']();this['_entities']['has'](_0x3a2665)||this[_0x5f77be(0x1a1)](_0x3a2665);}),this[_0x2cdc17(0x17c)][_0x2cdc17(0x1d3)](_0x19d69b['UNIVER_SHEET'])['pipe'](_0x66b583(this[_0x2cdc17(0x1f6)]))[_0x2cdc17(0x204)](_0x5012e4=>{const _0x59db71=_0x2cdc17;let _0xc87cc0=_0x5012e4[_0x59db71(0x1c1)](),_0x37f9cd=this[_0x59db71(0x193)][_0x59db71(0x1ac)](_0xc87cc0);_0x37f9cd==null||_0x37f9cd['dispose']();});}async[_0x163933(0x1a1)](_0x5df195){const _0x3d0cb1=_0x163933;let _0x13f003=await this[_0x3d0cb1(0x1ab)][_0x3d0cb1(0x1a0)](_0x5df195),_0x202b31=this['_injector'][_0x3d0cb1(0x183)](q,_0x5df195,_0x13f003);return _0x202b31['init'](),this[_0x3d0cb1(0x193)]['set'](_0x5df195,_0x202b31),_0x202b31;}};G=W([U(0x0,_0x5dd410),U(0x1,_0x147d4e(_0x430c6d)),U(0x2,_0x147d4e(_0x1dc03d))],G);let K=function(_0x56b824){const _0x5d24ed=_0x163933;return _0x56b824[_0x5d24ed(0x1a4)]='offline',_0x56b824['IDLE']='idle',_0x56b824[_0x5d24ed(0x1fe)]=_0x5d24ed(0x1af),_0x56b824[_0x5d24ed(0x1ed)]='not-following',_0x56b824[_0x5d24ed(0x1f4)]='presenting',_0x56b824;}({}),q=class extends _0x3eff75{get['_status'](){const _0x8c5651=_0x163933;return this[_0x8c5651(0x1ca)][_0x8c5651(0x181)]();}constructor(_0x32fb17,_0x183cd3,_0x8672c3,_0x50f8c5,_0x10d38f){const _0x38b91d=_0x163933;super(),this['_unitID']=_0x32fb17,this['_collabSession']=_0x183cd3,this[_0x38b91d(0x1cd)]=_0x8672c3,this['_liveShareService']=_0x50f8c5,this[_0x38b91d(0x1ff)]=_0x10d38f,V(this,'_status$',new _0x1bdd9f('idle')),V(this,_0x38b91d(0x201),this[_0x38b91d(0x1ca)][_0x38b91d(0x18b)]()),V(this,_0x38b91d(0x1dc),!0x1),V(this,_0x38b91d(0x19e),null),V(this,_0x38b91d(0x1d9),null);}[_0x163933(0x1f5)](){const _0x5c4bde=_0x163933;var _0x50be78;(_0x50be78=this[_0x5c4bde(0x19e)])==null||_0x50be78['dispose'](),this[_0x5c4bde(0x1ca)][_0x5c4bde(0x1e6)](_0x5c4bde(0x179)),this[_0x5c4bde(0x1ca)][_0x5c4bde(0x1b9)]();}[_0x163933(0x1c0)](){const _0x5d2248=_0x163933;return this[_0x5d2248(0x1be)];}[_0x163933(0x1ec)](){const _0xd79c49=_0x163933;this[_0xd79c49(0x1dc)]||(this[_0xd79c49(0x1dc)]=!0x0,this[_0xd79c49(0x19b)][_0xd79c49(0x188)][_0xd79c49(0x18c)](_0x66b583(this[_0xd79c49(0x1f6)]))[_0xd79c49(0x204)](_0x28822a=>{const _0x30a943=_0xd79c49;switch(_0x28822a){case _0x43364d[_0x30a943(0x1a4)]:this[_0x30a943(0x1b8)]();break;case _0x43364d[_0x30a943(0x18a)]:this[_0x30a943(0x206)]();break;default:}}),this[_0xd79c49(0x19b)]['event$']['pipe'](_0x66b583(this['dispose$']))['subscribe'](_0x565bc9=>{const _0x5f285e=_0xd79c49;let {eventID:_0x59cf12}=_0x565bc9;switch(_0x59cf12){case _0x2f4f4b[_0x5f285e(0x196)]:this[_0x5f285e(0x1ee)](_0x565bc9);break;case _0x2f4f4b[_0x5f285e(0x1e7)]:this[_0x5f285e(0x1b5)](_0x565bc9);break;case _0x2f4f4b[_0x5f285e(0x198)]:this[_0x5f285e(0x1c9)]();break;case _0x2f4f4b['NEW_CHANGESETS']:this[_0x5f285e(0x184)](_0x565bc9);break;default:}}));}[_0x163933(0x1a3)](){const _0x19b60e=_0x163933;this['_collabSession']['send']({'eventID':_0x2f4f4b[_0x19b60e(0x195)],'data':{'unitID':this['_unitID'],'userID':this[_0x19b60e(0x19b)][_0x19b60e(0x1e5)]()}},this['_unitID']);}['stopPresenting'](){const _0xbdaf9f=_0x163933;this[_0xbdaf9f(0x1be)]===_0xbdaf9f(0x1c2)&&(this['_status$'][_0xbdaf9f(0x1e6)](_0xbdaf9f(0x179)),this[_0xbdaf9f(0x19b)]['send']({'eventID':_0x2f4f4b[_0xbdaf9f(0x198)],'data':{'unitID':this[_0xbdaf9f(0x197)]}},this['_unitID']));}['startFollowing'](){const _0x352bd5=_0x163933;this[_0x352bd5(0x1be)]==='not-following'&&(this[_0x352bd5(0x1ca)][_0x352bd5(0x1e6)](_0x352bd5(0x1af)),this[_0x352bd5(0x17b)]());}['stopFollowing'](){const _0x54df9c=_0x163933;this[_0x54df9c(0x1be)]===_0x54df9c(0x1af)&&this[_0x54df9c(0x1c3)]();}[_0x163933(0x1ee)](_0x1d46da){const _0x1b552e=_0x163933;let {presenter:_0x2019ff}=_0x1d46da[_0x1b552e(0x208)],_0x42ec53=this[_0x1b552e(0x19b)][_0x1b552e(0x1e5)]();this[_0x1b552e(0x1d9)]=_0x2019ff,_0x2019ff===_0x42ec53?(this['_stopFollowing'](),this[_0x1b552e(0x17d)]()):this['_status']!=='not-following'&&(this[_0x1b552e(0x1ef)](),this[_0x1b552e(0x17b)]());}['_fetchOperations'](){const _0x542a10=_0x163933;let _0x1b4fb8={'eventID':_0x2f4f4b[_0x542a10(0x203)]};this[_0x542a10(0x19b)][_0x542a10(0x1de)](_0x1b4fb8,this['_unitID']);}[_0x163933(0x1c9)](){const _0x5a4953=_0x163933;this[_0x5a4953(0x1d9)]=null,this[_0x5a4953(0x1be)]!=='presenting'&&this['_beIdle']();}[_0x163933(0x184)](_0x109487){const _0x2a09bf=_0x163933;if(this[_0x2a09bf(0x1be)]==='following'&&this[_0x2a09bf(0x1d9)]===_0x109487[_0x2a09bf(0x208)][_0x2a09bf(0x178)]){let _0x233132=_0xf7fca8(_0x109487[_0x2a09bf(0x208)])[_0x2a09bf(0x1cc)][_0x2a09bf(0x1d4)]()[_0x2a09bf(0x1e3)](_0x4dc560=>_0x4dc560['id']===_0x29a9fa['id']);if(_0x233132){let _0x164df1=_0x233132[_0x2a09bf(0x1e4)][_0x2a09bf(0x1b6)],_0x768efc=_0x233132[_0x2a09bf(0x1e4)][_0x2a09bf(0x1a2)]['id'];setTimeout(()=>{const _0x5f586a=_0x2a09bf;this[_0x5f586a(0x1ff)][_0x5f586a(0x202)](_0x24df1b['id'],{'unitId':_0x164df1,'subUnitId':_0x768efc},{'fromCollab':!0x0});});}}}[_0x163933(0x17d)](){const _0x5d9911=_0x163933;var _0x59abbb;(_0x59abbb=this[_0x5d9911(0x19e)])==null||_0x59abbb[_0x5d9911(0x1f5)](),this[_0x5d9911(0x1ca)][_0x5d9911(0x1e6)](_0x5d9911(0x1c2));let _0x519bcd=new Map(),_0x4bba98=this[_0x5d9911(0x19e)]=new _0x373e29();_0x4bba98[_0x5d9911(0x1c7)](_0x2c9771(()=>{const _0x5ca6ba=_0x5d9911;_0x519bcd[_0x5ca6ba(0x1bd)](({subject:_0x3075c4,subscription:_0x3b94d6})=>{const _0x1443b7=_0x5ca6ba;_0x3b94d6[_0x1443b7(0x1f7)](),_0x3075c4[_0x1443b7(0x1b9)]();}),_0x519bcd[_0x5ca6ba(0x1fa)]();})),_0x4bba98[_0x5d9911(0x1c7)](this[_0x5d9911(0x1ff)][_0x5d9911(0x1dd)](_0x349dd1=>{const _0x44c970=_0x5d9911;if(_0x349dd1[_0x44c970(0x1f1)]!==_0x41b375[_0x44c970(0x19a)]||!this[_0x44c970(0x1d1)][_0x44c970(0x19d)](_0x349dd1['id']))return;let {id:_0x56b6fb}=_0x349dd1,_0x5984e8;if(_0x519bcd[_0x44c970(0x1c5)](_0x56b6fb))_0x5984e8=_0x519bcd[_0x44c970(0x1ac)](_0x56b6fb)['subject'];else{var _0x136831;_0x5984e8=new _0x4a9313();let _0x6bf016=_0x5984e8[_0x44c970(0x18c)](_0x23f001((_0x136831=this[_0x44c970(0x1cd)][_0x44c970(0x1d5)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x136831,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x44c970(0x204)](_0x161cdb=>{const _0x337870=_0x44c970;this[_0x337870(0x19b)][_0x337870(0x1de)]({'eventID':_0x2f4f4b[_0x337870(0x1e7)],'data':{'unitID':this['_unitID'],'operations':{[_0x161cdb['id']]:{'id':_0x161cdb['id'],'params':JSON[_0x337870(0x1ad)](_0x161cdb[_0x337870(0x1e4)])}}}},this['_unitID']);});_0x519bcd[_0x44c970(0x1fd)](_0x56b6fb,{'subject':_0x5984e8,'subscription':_0x6bf016});}_0x5984e8[_0x44c970(0x1e6)](_0x349dd1);})),this[_0x5d9911(0x1d1)]['getInitialStates'](this[_0x5d9911(0x197)])[_0x5d9911(0x1bd)](_0x289507=>this[_0x5d9911(0x19b)]['send']({'eventID':_0x2f4f4b[_0x5d9911(0x1e7)],'data':{'unitID':this[_0x5d9911(0x197)],'operations':{[_0x289507['id']]:{'id':_0x289507['id'],'params':JSON['stringify'](_0x289507[_0x5d9911(0x1e4)])}}}},this[_0x5d9911(0x197)]));}[_0x163933(0x1ef)](){const _0x16a67e=_0x163933;var _0x59d750;this[_0x16a67e(0x1ca)]['next'](_0x16a67e(0x179)),(_0x59d750=this[_0x16a67e(0x19e)])==null||_0x59d750[_0x16a67e(0x1f5)](),this[_0x16a67e(0x19e)]=null;}[_0x163933(0x17b)](){const _0x5c1ac5=_0x163933;var _0x125d5f;(_0x125d5f=this[_0x5c1ac5(0x19e)])==null||_0x125d5f[_0x5c1ac5(0x1f5)](),this[_0x5c1ac5(0x1ca)]['next'](_0x5c1ac5(0x1af));}['_beIdle'](){const _0x1c0665=_0x163933;var _0x365def;this[_0x1c0665(0x1ca)][_0x1c0665(0x1e6)](_0x1c0665(0x179)),(_0x365def=this['_commandDisposable'])==null||_0x365def[_0x1c0665(0x1f5)](),this[_0x1c0665(0x19e)]=null;}[_0x163933(0x1c3)](){const _0x16fb98=_0x163933;var _0x5ae3ba;this[_0x16fb98(0x1ca)]['next'](_0x16fb98(0x1d2)),(_0x5ae3ba=this['_commandDisposable'])==null||_0x5ae3ba[_0x16fb98(0x1f5)]();}[_0x163933(0x1b5)](_0x2a7e7c){const _0x434bd5=_0x163933;if([_0x434bd5(0x1c2),_0x434bd5(0x1d2),_0x434bd5(0x199)][_0x434bd5(0x1b3)](this[_0x434bd5(0x1be)])||!_0x2a7e7c[_0x434bd5(0x208)][_0x434bd5(0x1fb)]||_0x2a7e7c['data'][_0x434bd5(0x1fb)]===this[_0x434bd5(0x19b)][_0x434bd5(0x1e5)]())return;this[_0x434bd5(0x1be)]===_0x434bd5(0x179)&&this[_0x434bd5(0x17b)]();let _0x747534=_0x2a7e7c['data']['operations'];Object['values'](_0x747534)['forEach'](_0x46610a=>{const _0x405ca9=_0x434bd5;this[_0x405ca9(0x1ff)]['executeCommand'](_0x46610a['id'],_0x46610a['params']?JSON['parse'](_0x46610a[_0x405ca9(0x1e4)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x5e049c=_0x163933;var _0x4abaa6;this['_status$'][_0x5e049c(0x1e6)](_0x5e049c(0x199)),(_0x4abaa6=this[_0x5e049c(0x19e)])==null||_0x4abaa6[_0x5e049c(0x1f5)]();}[_0x163933(0x206)](){const _0x34a1f0=_0x163933;this['_status$'][_0x34a1f0(0x1e6)](_0x34a1f0(0x179)),this['_fetchOperations']();}};q=W([U(0x2,_0x3287d9),U(0x3,_0x147d4e(H)),U(0x4,_0x15ae55)],q);function J(){const _0x544e9c=_0x163933;let _0x18e9df=_0x4d0b0b(G),_0x47d618=_0x4d0b0b(_0x5dd410),_0xe72ba5=_0x471499(()=>_0x47d618[_0x544e9c(0x191)](_0x19d69b[_0x544e9c(0x194)]),void 0x0,!0x1,[]),[_0x554ef2,_0x2c5c35]=_0x41fdc7(null),[_0x4d2e68,_0x28c5a7]=_0x41fdc7(_0x544e9c(0x179)),_0xd2604d=_0x418b8a(null);return _0x542576(()=>(_0xe72ba5&&_0x18e9df[_0x544e9c(0x192)](_0xe72ba5[_0x544e9c(0x1c1)]())[_0x544e9c(0x1e8)](_0x349de9=>{const _0x20ae39=_0x544e9c;_0x2c5c35(_0x349de9),_0xd2604d['current']=_0x349de9['status$'][_0x20ae39(0x204)](_0x3be167=>{_0x28c5a7(_0x3be167);});}),()=>{const _0x3f1dd3=_0x544e9c;var _0xcaf005;(_0xcaf005=_0xd2604d[_0x3f1dd3(0x1a6)])==null||_0xcaf005[_0x3f1dd3(0x1f7)](),_0xd2604d['current']=null;}),[_0xe72ba5,_0x18e9df]),_0x554ef2?_0x50789a(_0x4045b5,{'align':_0x544e9c(0x185),'disabled':_0x4d2e68==='offline','className':_0x544e9c(0x1f0),'overlay':_0x50789a(se,{'status':_0x4d2e68,'coordinator':_0x554ef2}),'children':_0x50789a(_0x544e9c(0x18d),{'className':_0x38f52b(_0x544e9c(0x1c6),{'univer-cursor-not-allowed':_0x4d2e68==='offline','univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4d2e68!==_0x544e9c(0x199)}),'type':_0x544e9c(0x18d),'children':_0x50789a(_0x5e9cb6,{})})}):null;}function se(_0x5aa10c){const _0x7863ca=_0x163933;let {status:_0x3e622d,coordinator:_0x5e64a1}=_0x5aa10c;switch(_0x3e622d){case _0x7863ca(0x179):return _0x50789a(ce,{'coordinator':_0x5e64a1});case'following':return _0x50789a(le,{'coordinator':_0x5e64a1});case _0x7863ca(0x1d2):return _0x50789a(ue,{'coordinator':_0x5e64a1});case'offline':return _0x50789a(de,{});case _0x7863ca(0x1c2):return _0x50789a(Y,{'coordinator':_0x5e64a1});default:return null;}}function ce(_0x540ff2){const _0x219aa0=_0x163933;let {coordinator:_0x19cf79}=_0x540ff2;return _0x16b88(_0x98295f,{'children':[_0x50789a(_0x219aa0(0x1b7),{'className':_0x219aa0(0x1cf),'children':'Present\x20this\x20document'}),_0x50789a(_0xac3a18,{'onClick':()=>_0x19cf79[_0x219aa0(0x1a3)](),'children':_0x219aa0(0x205)})]});}function le(_0x73a277){const _0x33576b=_0x163933;let {coordinator:_0x1086c9}=_0x73a277;return _0x16b88(_0x98295f,{'children':[_0x50789a(_0x33576b(0x1b7),{'className':_0x33576b(0x1cf),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x50789a(_0xac3a18,{'onClick':()=>_0x1086c9[_0x33576b(0x1d0)](),'children':'Stop\x20following'})]});}function ue(_0x531476){const _0xaf0dff=_0x163933;let {coordinator:_0x50bc01}=_0x531476;return _0x16b88(_0x98295f,{'children':[_0x50789a('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x50789a(_0xac3a18,{'variant':'text','onClick':()=>_0x50bc01['startFollowing'](),'children':_0xaf0dff(0x1e9)})]});}function Y(_0x399c83){const _0x3251e4=_0x163933;let {coordinator:_0x4980a9}=_0x399c83;return _0x16b88(_0x98295f,{'children':[_0x50789a(_0x3251e4(0x1b7),{'className':_0x3251e4(0x1cf),'children':_0x3251e4(0x1bb)}),_0x50789a(_0xac3a18,{'variant':_0x3251e4(0x1a9),'onClick':()=>_0x4980a9['stopPresenting'](),'children':'Stop\x20presenting'})]});}function de(){const _0x5194cd=_0x163933;return _0x50789a(_0x98295f,{'children':_0x5194cd(0x1b2)});}let X=class extends _0x3a6ee4{constructor(_0x593ddd,_0x26b2fc){const _0x15338f=_0x163933;super(),this[_0x15338f(0x1fc)]=_0x593ddd,this[_0x15338f(0x1ce)]=_0x26b2fc,this[_0x15338f(0x1df)]();}['_mountLiveShare'](){const _0x1070bb=_0x163933;this[_0x1070bb(0x1c4)](this[_0x1070bb(0x1ce)][_0x1070bb(0x1d8)](_0x27c857[_0x1070bb(0x1f9)],()=>_0x34038f(J,this[_0x1070bb(0x1fc)])));}};X=W([U(0x0,_0x147d4e(_0x430c6d)),U(0x1,_0x2568a8)],X);var fe=_0x163933(0x186),pe=_0x163933(0x1db);const Z={};let Q=class extends _0x3a6ee4{constructor(_0x6ac638){const _0x154f47=_0x163933;super(),this[_0x154f47(0x1d1)]=_0x6ac638,this[_0x154f47(0x1dc)]();}[_0x163933(0x1dc)](){const _0x356985=_0x163933;[_0x284992['id'],_0x452de4['id'],_0x24df1b['id']][_0x356985(0x1bd)](_0x5dd2df=>{this['disposeWithMe'](this['_liveShareService']['registerSharedOperation'](_0x5dd2df));});}};Q=W([U(0x0,_0x147d4e(H))],Q);let $=class extends _0x2c55cc{constructor(_0x12150e=Z,_0x4a2f61,_0x441862){const _0x15a3a7=_0x163933;super(),this[_0x15a3a7(0x1b4)]=_0x12150e,this['_injector']=_0x4a2f61,this[_0x15a3a7(0x1cd)]=_0x441862;let {..._0x40b82b}=_0x1f0203({},Z,this[_0x15a3a7(0x1b4)]);this[_0x15a3a7(0x1cd)][_0x15a3a7(0x200)]('live-share.config',_0x40b82b);}[_0x163933(0x175)](){const _0x1e6350=_0x163933;_0x492046(this['_injector'],_0x76a44e([[H],[G],[Q],[X]],this[_0x1e6350(0x1b4)][_0x1e6350(0x190)])),_0x4b567d(this[_0x1e6350(0x1fc)],[[Q]]);}[_0x163933(0x1a5)](){const _0x322fc0=_0x163933;_0x4b567d(this[_0x322fc0(0x1fc)],[[X]]);}};V($,_0x163933(0x1f1),_0x19d69b[_0x163933(0x1f3)]),V($,_0x163933(0x182),_0x163933(0x1d6)),V($,_0x163933(0x17f),fe),V($,_0x163933(0x1e1),pe),$=W([_0x372528(_0x33b357),U(0x1,_0x147d4e(_0x430c6d)),U(0x2,_0x3287d9)],$);export{X as DesktopLiveShareController,J as LiveShare,G as LiveShareController,q as LiveShareCoordinator,H as LiveShareService,K as LiveShareStatus,$ as UniverLiveSharePlugin};
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './global.css';
|
|
2
|
-
export type { IUniverLiveShareConfig } from './
|
|
3
|
-
export { DesktopLiveShareController } from './controllers/live-share/live-share-ui.controller';
|
|
2
|
+
export type { IUniverLiveShareConfig } from './config/config';
|
|
4
3
|
export { LiveShareController, LiveShareCoordinator, LiveShareStatus } from './controllers/live-share/live-share.controller';
|
|
4
|
+
export { DesktopLiveShareController } from './controllers/live-share/ui.controller';
|
|
5
5
|
export { UniverLiveSharePlugin } from './plugin';
|
|
6
6
|
export { LiveShareService } from './services/live-share.service';
|
|
7
7
|
export { LiveShare } from './views/components/LiveShare';
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IUniverLiveShareConfig } from './
|
|
1
|
+
import type { IUniverLiveShareConfig } from './config/config';
|
|
2
2
|
import { IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
3
3
|
export declare class UniverLiveSharePlugin extends Plugin {
|
|
4
4
|
private readonly _config;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function LiveShare(): import("react
|
|
1
|
+
export declare function LiveShare(): import("react").JSX.Element | null;
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4cb6(_0x16e45c,_0x441989){_0x16e45c=_0x16e45c-0x98;const _0x2b6627=_0x2b66();let _0x4cb62d=_0x2b6627[_0x16e45c];return _0x4cb62d;}(function(_0x1db2b4,_0x2fe2e0){const _0x2710ad=_0x4cb6,_0x23508c=_0x1db2b4();while(!![]){try{const _0x4e8e05=-parseInt(_0x2710ad(0xaa))/0x1+parseInt(_0x2710ad(0xc3))/0x2+parseInt(_0x2710ad(0xa0))/0x3+parseInt(_0x2710ad(0xad))/0x4+parseInt(_0x2710ad(0xbd))/0x5+parseInt(_0x2710ad(0xb1))/0x6*(parseInt(_0x2710ad(0xb9))/0x7)+-parseInt(_0x2710ad(0xa1))/0x8;if(_0x4e8e05===_0x2fe2e0)break;else _0x23508c['push'](_0x23508c['shift']());}catch(_0x552bdc){_0x23508c['push'](_0x23508c['shift']());}}}(_0x2b66,0x3e1f1),function(_0xee61ca,_0x31b84c){const _0x5154e9=_0x4cb6;typeof exports==_0x5154e9(0xb2)&&typeof module<'u'?_0x31b84c(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x5154e9(0xc5)&&define[_0x5154e9(0xb8)]?define([_0x5154e9(0xa5),_0x5154e9(0xa4),_0x5154e9(0x9f)],_0x31b84c):(_0xee61ca=typeof globalThis<'u'?globalThis:_0xee61ca||self,_0x31b84c(_0xee61ca[_0x5154e9(0xb3)],_0xee61ca[_0x5154e9(0xbf)],_0xee61ca[_0x5154e9(0x99)]));}(this,function(_0x1fca91,_0x457e13,_0x489a39){const _0x108ccf=_0x4cb6;function _0xb53b9(_0x2d8fc5){'@babel/helpers - typeof';const _0x2dd586=_0x4cb6;return _0xb53b9=typeof Symbol==_0x2dd586(0xc5)&&typeof Symbol[_0x2dd586(0x9b)]==_0x2dd586(0xa2)?function(_0x59e12a){return typeof _0x59e12a;}:function(_0x30df5f){const _0x38b9d9=_0x2dd586;return _0x30df5f&&typeof Symbol==_0x38b9d9(0xc5)&&_0x30df5f[_0x38b9d9(0xb0)]===Symbol&&_0x30df5f!==Symbol[_0x38b9d9(0x9e)]?'symbol':typeof _0x30df5f;},_0xb53b9(_0x2d8fc5);}function _0x4e7ab5(_0x584486,_0x460213){const _0x301352=_0x4cb6;if(_0xb53b9(_0x584486)!=_0x301352(0xb2)||!_0x584486)return _0x584486;var _0x5a9cd5=_0x584486[Symbol[_0x301352(0x9c)]];if(_0x5a9cd5!==void 0x0){var _0x2e9161=_0x5a9cd5[_0x301352(0xa8)](_0x584486,_0x460213||'default');if(_0xb53b9(_0x2e9161)!=_0x301352(0xb2))return _0x2e9161;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x460213===_0x301352(0xac)?String:Number)(_0x584486);}function _0x517b60(_0x527be1){const _0x623b7e=_0x4cb6;var _0x23e4cf=_0x4e7ab5(_0x527be1,_0x623b7e(0xac));return _0xb53b9(_0x23e4cf)=='symbol'?_0x23e4cf:_0x23e4cf+'';}function _0x1adf0c(_0x56c0c9,_0x104922,_0x19530a){const _0x5408a2=_0x4cb6;return(_0x104922=_0x517b60(_0x104922))in _0x56c0c9?Object[_0x5408a2(0xc2)](_0x56c0c9,_0x104922,{'value':_0x19530a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x56c0c9[_0x104922]=_0x19530a,_0x56c0c9;}var _0x2b1160=class extends _0x489a39[_0x108ccf(0xb7)]{constructor(..._0x59ffe6){const _0x3fdbe2=_0x108ccf;super(..._0x59ffe6),_0x1adf0c(this,_0x3fdbe2(0xab),void 0x0);}[_0x108ccf(0xb6)](_0x1baaac){const _0x5e2596=_0x108ccf;this[_0x5e2596(0xab)]=_0x1baaac[_0x5e2596(0xbc)](_0x1fca91[_0x5e2596(0xa9)]);}[_0x108ccf(0xc4)](){const _0x14725b=_0x108ccf;var _0x4c94ae;let _0x3dffdc=this[_0x14725b(0xbe)][_0x14725b(0xbc)](_0x457e13[_0x14725b(0xb4)])[_0x14725b(0xaf)](_0x457e13['UniverInstanceType'][_0x14725b(0xb5)]);if(!_0x3dffdc)throw Error(_0x14725b(0x9a));let _0x1f339a=_0x3dffdc[_0x14725b(0x9d)](),_0x486d83=this[_0x14725b(0xab)][_0x14725b(0x98)](_0x1f339a);return(_0x4c94ae=_0x486d83==null?void 0x0:_0x486d83[_0x14725b(0xba)]())==null?_0x1fca91[_0x14725b(0xc6)][_0x14725b(0xbb)]:_0x4c94ae;}['startFollowing'](){const _0x3e96b0=_0x108ccf;let _0x39f5fb=this[_0x3e96b0(0xbe)][_0x3e96b0(0xbc)](_0x457e13[_0x3e96b0(0xb4)])[_0x3e96b0(0xaf)](_0x457e13[_0x3e96b0(0xc0)]['UNIVER_SHEET']);if(!_0x39f5fb)throw Error('No\x20active\x20workbook\x20found.');let _0x24dd51=_0x39f5fb['getUnitId'](),_0x3ee9c9=this[_0x3e96b0(0xab)]['getLiveShareCoordinatorSync'](_0x24dd51);if(!_0x3ee9c9)throw Error(_0x3e96b0(0xa6));_0x3ee9c9['startFollowing']();}[_0x108ccf(0xc1)](){const _0x3e94fd=_0x108ccf;let _0x50f8f5=this[_0x3e94fd(0xbe)][_0x3e94fd(0xbc)](_0x457e13[_0x3e94fd(0xb4)])[_0x3e94fd(0xaf)](_0x457e13['UniverInstanceType'][_0x3e94fd(0xb5)]);if(!_0x50f8f5)throw Error(_0x3e94fd(0x9a));let _0x4f0e2e=_0x50f8f5[_0x3e94fd(0x9d)](),_0x313dea=this[_0x3e94fd(0xab)]['getLiveShareCoordinatorSync'](_0x4f0e2e);if(!_0x313dea)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x313dea[_0x3e94fd(0xc1)]();}['startPresenting'](){const _0x47b4a4=_0x108ccf;let _0x30deef=this['_injector'][_0x47b4a4(0xbc)](_0x457e13[_0x47b4a4(0xb4)])[_0x47b4a4(0xaf)](_0x457e13[_0x47b4a4(0xc0)][_0x47b4a4(0xb5)]);if(!_0x30deef)throw Error('No\x20active\x20workbook\x20found.');let _0x4d9790=_0x30deef['getUnitId'](),_0x5b4db9=this['_liveShareController'][_0x47b4a4(0x98)](_0x4d9790);if(!_0x5b4db9)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5b4db9['tryStartPresenting']();}[_0x108ccf(0xa7)](){const _0x4153a9=_0x108ccf;let _0x556d9b=this['_injector'][_0x4153a9(0xbc)](_0x457e13[_0x4153a9(0xb4)])['getCurrentUnitOfType'](_0x457e13[_0x4153a9(0xc0)][_0x4153a9(0xb5)]);if(!_0x556d9b)throw Error(_0x4153a9(0x9a));let _0x22041d=_0x556d9b[_0x4153a9(0x9d)](),_0x292e60=this[_0x4153a9(0xab)][_0x4153a9(0x98)](_0x22041d);if(!_0x292e60)throw Error(_0x4153a9(0xa6));_0x292e60[_0x4153a9(0xa7)]();}};_0x489a39[_0x108ccf(0xb7)]['extend'](_0x2b1160);var _0x2c0fc9=class extends _0x489a39[_0x108ccf(0xa3)]{get['LiveShareStatusEnum'](){const _0x45c3e9=_0x108ccf;return _0x1fca91[_0x45c3e9(0xc6)];}};_0x489a39[_0x108ccf(0xa3)][_0x108ccf(0xae)](_0x2c0fc9);}));function _0x2b66(){const _0x5d1178=['function','LiveShareStatus','getLiveShareCoordinatorSync','UniverCoreFacade','No\x20active\x20workbook\x20found.','iterator','toPrimitive','getUnitId','prototype','@univerjs/core/facade','311505JUzxpx','5534224SMgIrP','symbol','FEnum','@univerjs/core','@univerjs-pro/live-share','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','stopPresenting','call','LiveShareController','63720Zknmzx','_liveShareController','string','346812BfZMQN','extend','getCurrentUnitOfType','constructor','556926BGZCsY','object','UniverProLiveShare','IUniverInstanceService','UNIVER_SHEET','_initialize','FUniver','amd','35UHXKwn','getStatus','IDLE','get','393225mJqfCr','_injector','UniverCore','UniverInstanceType','stopFollowing','defineProperty','553318pHzPja','getLiveShareStatus'];_0x2b66=function(){return _0x5d1178;};return _0x2b66();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x4487(_0x535be6,_0x3a86a3){_0x535be6=_0x535be6-0x7e;const _0xb4a871=_0xb4a8();let _0x448758=_0xb4a871[_0x535be6];return _0x448758;}(function(_0x3a4b82,_0x50df29){const _0x4cc9cb=_0x4487,_0x2f44d3=_0x3a4b82();while(!![]){try{const _0x442307=-parseInt(_0x4cc9cb(0x148))/0x1*(parseInt(_0x4cc9cb(0x114))/0x2)+-parseInt(_0x4cc9cb(0xae))/0x3+-parseInt(_0x4cc9cb(0x137))/0x4*(-parseInt(_0x4cc9cb(0xd6))/0x5)+-parseInt(_0x4cc9cb(0xca))/0x6+-parseInt(_0x4cc9cb(0x159))/0x7*(parseInt(_0x4cc9cb(0xaa))/0x8)+-parseInt(_0x4cc9cb(0x153))/0x9+-parseInt(_0x4cc9cb(0xef))/0xa*(-parseInt(_0x4cc9cb(0x15d))/0xb);if(_0x442307===_0x50df29)break;else _0x2f44d3['push'](_0x2f44d3['shift']());}catch(_0x1e4482){_0x2f44d3['push'](_0x2f44d3['shift']());}}}(_0xb4a8,0x870af),function(_0x3a0a76,_0x150d49){const _0x3573b4=_0x4487;typeof exports==_0x3573b4(0xf8)&&typeof module<'u'?_0x150d49(exports,require('@univerjs/core'),require('@univerjs/ui'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('react/jsx-runtime'),require('@univerjs/sheets-ui')):typeof define==_0x3573b4(0x132)&&define[_0x3573b4(0xd0)]?define([_0x3573b4(0xfb),_0x3573b4(0x98),_0x3573b4(0xfd),_0x3573b4(0x169),_0x3573b4(0x106),_0x3573b4(0xd7),_0x3573b4(0xa2),_0x3573b4(0xbe),_0x3573b4(0xbb),_0x3573b4(0xcb),_0x3573b4(0xd4),_0x3573b4(0x124)],_0x150d49):(_0x3a0a76=typeof globalThis<'u'?globalThis:_0x3a0a76||self,_0x150d49(_0x3a0a76['UniverProLiveShare']={},_0x3a0a76[_0x3573b4(0x117)],_0x3a0a76[_0x3573b4(0x12e)],_0x3a0a76[_0x3573b4(0x12b)],_0x3a0a76[_0x3573b4(0xfc)],_0x3a0a76[_0x3573b4(0xf6)],_0x3a0a76[_0x3573b4(0x123)],_0x3a0a76[_0x3573b4(0x8a)],_0x3a0a76[_0x3573b4(0xbb)],_0x3a0a76[_0x3573b4(0xbb)][_0x3573b4(0xc8)],_0x3a0a76['React'],_0x3a0a76[_0x3573b4(0xd8)]));}(this,function(_0x267332,_0x5d0cde,_0x2d834b,_0x28b9d4,_0x168f88,_0x51961d,_0x2d41d9,_0x4e0523,_0x418e8f,_0x4ebb2a,_0x38b09a,_0x522b82){const _0x21389e=_0x4487;Object[_0x21389e(0x93)](_0x267332,Symbol['toStringTag'],{'value':_0x21389e(0x9a)});function _0x2ed2e8({ref:_0x567275,..._0x4e66dd}){const _0x27fa71=_0x21389e;let {icon:_0x2f3905,id:_0x18b587,className:_0x5de2fb,extend:_0x4b6e38,..._0x2fb1b2}=_0x4e66dd,_0x3f2072=(_0x27fa71(0xe1)+_0x18b587+'\x20'+(_0x5de2fb||''))[_0x27fa71(0xde)](),_0x52a235=(0x0,_0x168f88[_0x27fa71(0xad)])('_'+_0x2a6f4a());return _0x13745e(_0x2f3905,''+_0x18b587,{'defIds':_0x2f3905[_0x27fa71(0x116)],'idSuffix':_0x52a235[_0x27fa71(0x158)]},{'ref':_0x567275,'className':_0x3f2072,..._0x2fb1b2},_0x4b6e38);}function _0x13745e(_0x267a7a,_0x23071d,_0x4d766c,_0x233885,_0x4e1753){const _0x4dd3b5=_0x21389e;return(0x0,_0x168f88[_0x4dd3b5(0x13f)])(_0x267a7a[_0x4dd3b5(0xcc)],{'key':_0x23071d,..._0x48fa28(_0x267a7a,_0x4d766c,_0x4e1753),..._0x233885},(_0x40b54e(_0x267a7a,_0x4d766c)[_0x4dd3b5(0x174)]||[])[_0x4dd3b5(0x92)]((_0x55e8a1,_0x12c916)=>_0x13745e(_0x55e8a1,_0x23071d+'-'+_0x267a7a['tag']+'-'+_0x12c916,_0x4d766c,void 0x0,_0x4e1753)));}function _0x48fa28(_0x591491,_0x18125d,_0x336183){const _0x3bab89=_0x21389e;let _0x5e6a5a={..._0x591491[_0x3bab89(0xd2)]};_0x336183!=null&&_0x336183[_0x3bab89(0x15a)]&&_0x5e6a5a[_0x3bab89(0x15f)]===_0x3bab89(0x15a)&&(_0x5e6a5a['fill']=_0x336183[_0x3bab89(0x15a)]),_0x591491[_0x3bab89(0xcc)]===_0x3bab89(0xce)&&_0x5e6a5a['id']&&(_0x5e6a5a['id']+=_0x18125d[_0x3bab89(0x168)]),Object[_0x3bab89(0x136)](_0x5e6a5a)[_0x3bab89(0x166)](([_0x31079d,_0x3d25ca])=>{const _0x3def35=_0x3bab89;_0x31079d===_0x3def35(0xce)&&typeof _0x3d25ca==_0x3def35(0x143)&&(_0x5e6a5a[_0x31079d]=_0x3d25ca[_0x3def35(0x105)](/url\(#(.*)\)/,_0x3def35(0x94)+_0x18125d['idSuffix']+')'));});let {defIds:_0x586c97}=_0x18125d;return!_0x586c97||_0x586c97['length']===0x0?_0x5e6a5a:(_0x591491[_0x3bab89(0xcc)]===_0x3bab89(0x155)&&_0x5e6a5a['xlink:href']&&(_0x5e6a5a[_0x3bab89(0x142)]+=_0x18125d[_0x3bab89(0x168)]),Object['entries'](_0x5e6a5a)['forEach'](([_0x52cc13,_0x9770d])=>{const _0x388fd6=_0x3bab89;typeof _0x9770d==_0x388fd6(0x143)&&(_0x5e6a5a[_0x52cc13]=_0x9770d[_0x388fd6(0x105)](/url\(#(.*)\)/,_0x388fd6(0x94)+_0x18125d[_0x388fd6(0x168)]+')'));}),_0x5e6a5a);}function _0x40b54e(_0x53f522,_0x25541f){const _0x295215=_0x21389e;var _0x9aa4a4;let {defIds:_0x25e9ca}=_0x25541f;return!_0x25e9ca||_0x25e9ca[_0x295215(0x8c)]===0x0?_0x53f522:_0x53f522[_0x295215(0xcc)]===_0x295215(0x147)&&(_0x9aa4a4=_0x53f522['children'])!=null&&_0x9aa4a4[_0x295215(0x8c)]?{..._0x53f522,'children':_0x53f522[_0x295215(0x174)][_0x295215(0x92)](_0xb233d3=>typeof _0xb233d3[_0x295215(0xd2)]['id']==_0x295215(0x143)&&_0x25e9ca&&_0x25e9ca[_0x295215(0x84)](_0xb233d3[_0x295215(0xd2)]['id'])?{..._0xb233d3,'attrs':{..._0xb233d3[_0x295215(0xd2)],'id':_0xb233d3[_0x295215(0xd2)]['id']+_0x25541f[_0x295215(0x168)]}}:_0xb233d3)}:_0x53f522;}function _0x2a6f4a(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}_0x2ed2e8[_0x21389e(0x144)]=_0x21389e(0xbc);let _0x5c915b={'tag':_0x21389e(0xba),'attrs':{'xmlns':_0x21389e(0x108),'fill':_0x21389e(0x85),'viewBox':'0\x200\x2017\x2017','width':_0x21389e(0x145),'height':'1em'},'children':[{'tag':_0x21389e(0x95),'attrs':{'fill':_0x21389e(0x146),'d':_0x21389e(0x83)}},{'tag':_0x21389e(0x95),'attrs':{'fill':_0x21389e(0x146),'d':_0x21389e(0x150),'fillRule':'evenodd','clipRule':_0x21389e(0x10e)}}]},_0x28fca2=(0x0,_0x168f88['forwardRef'])(function(_0x3f4650,_0x38225c){const _0x36be41=_0x21389e;return(0x0,_0x168f88[_0x36be41(0x13f)])(_0x2ed2e8,Object['assign']({},_0x3f4650,{'id':_0x36be41(0x12a),'ref':_0x38225c,'icon':_0x5c915b}));});_0x28fca2[_0x21389e(0x144)]=_0x21389e(0x160);function _0x3b6e5b(_0xcb869e){'@babel/helpers - typeof';const _0x302f19=_0x21389e;return _0x3b6e5b=typeof Symbol==_0x302f19(0x132)&&typeof Symbol[_0x302f19(0xb5)]=='symbol'?function(_0x18db48){return typeof _0x18db48;}:function(_0x4cad8d){const _0x2ca6da=_0x302f19;return _0x4cad8d&&typeof Symbol=='function'&&_0x4cad8d[_0x2ca6da(0xa4)]===Symbol&&_0x4cad8d!==Symbol['prototype']?_0x2ca6da(0x80):typeof _0x4cad8d;},_0x3b6e5b(_0xcb869e);}function _0x35b973(_0x232f2e,_0x432f4a){const _0x44c069=_0x21389e;if(_0x3b6e5b(_0x232f2e)!=_0x44c069(0xf8)||!_0x232f2e)return _0x232f2e;var _0x28e6a2=_0x232f2e[Symbol[_0x44c069(0xb4)]];if(_0x28e6a2!==void 0x0){var _0x6da949=_0x28e6a2[_0x44c069(0x154)](_0x232f2e,_0x432f4a||_0x44c069(0xd1));if(_0x3b6e5b(_0x6da949)!='object')return _0x6da949;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x432f4a==='string'?String:Number)(_0x232f2e);}function _0x191f38(_0x5fff8f){const _0x5eed6c=_0x21389e;var _0x14fa23=_0x35b973(_0x5fff8f,_0x5eed6c(0x143));return _0x3b6e5b(_0x14fa23)=='symbol'?_0x14fa23:_0x14fa23+'';}function _0x527e54(_0x5a5d1c,_0x3c0bd2,_0x50c348){const _0x276b73=_0x21389e;return(_0x3c0bd2=_0x191f38(_0x3c0bd2))in _0x5a5d1c?Object[_0x276b73(0x93)](_0x5a5d1c,_0x3c0bd2,{'value':_0x50c348,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5a5d1c[_0x3c0bd2]=_0x50c348,_0x5a5d1c;}var _0x2e5c0f=class extends _0x5d0cde[_0x21389e(0xf4)]{constructor(..._0x4f39ae){const _0x53091e=_0x21389e;super(..._0x4f39ae),_0x527e54(this,_0x53091e(0x14b),new Set()),_0x527e54(this,_0x53091e(0x141),new Set());}[_0x21389e(0xcf)](_0x52a473){const _0x3d4a4f=_0x21389e;return this[_0x3d4a4f(0x14b)][_0x3d4a4f(0x13b)](_0x52a473),(0x0,_0x5d0cde['toDisposable'])(()=>this[_0x3d4a4f(0x14b)][_0x3d4a4f(0x11a)](_0x52a473));}[_0x21389e(0x14d)](_0x2b11db){const _0x5ed2ab=_0x21389e;return this[_0x5ed2ab(0x141)][_0x5ed2ab(0x13b)](_0x2b11db),(0x0,_0x5d0cde[_0x5ed2ab(0xb8)])(()=>this[_0x5ed2ab(0x141)][_0x5ed2ab(0x11a)](_0x2b11db));}['shouldShareOperation'](_0x5dcfbf){const _0xe0909f=_0x21389e;return this[_0xe0909f(0x14b)][_0xe0909f(0x7e)](_0x5dcfbf);}[_0x21389e(0x152)](_0x368d59){const _0x361a13=_0x21389e;return Array[_0x361a13(0xfe)](this[_0x361a13(0x141)])[_0x361a13(0x92)](_0x51f610=>_0x51f610(_0x368d59));}};function _0x13e222(_0x316945,_0x580c9b){return function(_0x5501da,_0x2d4b8b){_0x580c9b(_0x5501da,_0x2d4b8b,_0x316945);};}function _0x3fc719(_0x20a2fa,_0x2f9924,_0x4b847e,_0x26058b){const _0xab739e=_0x21389e;var _0x5f181e=arguments[_0xab739e(0x8c)],_0x35d9e0=_0x5f181e<0x3?_0x2f9924:_0x26058b===null?_0x26058b=Object['getOwnPropertyDescriptor'](_0x2f9924,_0x4b847e):_0x26058b,_0x248902;if(typeof Reflect==_0xab739e(0xf8)&&typeof Reflect[_0xab739e(0xf5)]==_0xab739e(0x132))_0x35d9e0=Reflect[_0xab739e(0xf5)](_0x20a2fa,_0x2f9924,_0x4b847e,_0x26058b);else{for(var _0x221ca0=_0x20a2fa[_0xab739e(0x8c)]-0x1;_0x221ca0>=0x0;_0x221ca0--)(_0x248902=_0x20a2fa[_0x221ca0])&&(_0x35d9e0=(_0x5f181e<0x3?_0x248902(_0x35d9e0):_0x5f181e>0x3?_0x248902(_0x2f9924,_0x4b847e,_0x35d9e0):_0x248902(_0x2f9924,_0x4b847e))||_0x35d9e0);}return _0x5f181e>0x3&&_0x35d9e0&&Object[_0xab739e(0x93)](_0x2f9924,_0x4b847e,_0x35d9e0),_0x35d9e0;}let _0x5cd63a=class extends _0x5d0cde['RxDisposable']{constructor(_0x187333,_0x191029,_0x599a35){const _0xf6be0d=_0x21389e;super(),this[_0xf6be0d(0x12c)]=_0x187333,this['_injector']=_0x191029,this[_0xf6be0d(0x14e)]=_0x599a35,_0x527e54(this,_0xf6be0d(0xb7),new Map()),this[_0xf6be0d(0xf0)]();}async[_0x21389e(0xa7)](_0x1ce972){const _0x40c6cf=_0x21389e;return this['_entities'][_0x40c6cf(0x7e)](_0x1ce972)||await this[_0x40c6cf(0x129)](_0x1ce972),this['_entities']['get'](_0x1ce972);}[_0x21389e(0x107)](_0x312ca3){const _0x34bbc6=_0x21389e;var _0x36303c;return(_0x36303c=this[_0x34bbc6(0xb7)][_0x34bbc6(0x10a)](_0x312ca3))==null?null:_0x36303c;}[_0x21389e(0xf0)](){const _0x181924=_0x21389e;this[_0x181924(0x12c)][_0x181924(0xb0)](_0x5d0cde[_0x181924(0xe5)]['UNIVER_SHEET'])['pipe']((0x0,_0x4ebb2a[_0x181924(0x126)])(this[_0x181924(0xe8)]))[_0x181924(0x11f)](async _0x79d7c0=>{const _0x2f633d=_0x181924;let _0x551052=_0x79d7c0['unit'][_0x2f633d(0x121)]();this[_0x2f633d(0xb7)][_0x2f633d(0x7e)](_0x551052)||this[_0x2f633d(0x129)](_0x551052);}),this[_0x181924(0x12c)][_0x181924(0xa9)](_0x5d0cde[_0x181924(0xe5)]['UNIVER_SHEET'])['pipe']((0x0,_0x4ebb2a[_0x181924(0x126)])(this[_0x181924(0xe8)]))[_0x181924(0x11f)](_0x173644=>{const _0x37edf7=_0x181924;let _0x282d6b=_0x173644[_0x37edf7(0x121)](),_0x2af064=this['_entities'][_0x37edf7(0x10a)](_0x282d6b);_0x2af064==null||_0x2af064[_0x37edf7(0xfa)]();});}async['_startLiveShareCoordinator'](_0x205825){const _0x56e747=_0x21389e;let _0x435db6=await this[_0x56e747(0x14e)][_0x56e747(0x10d)](_0x205825),_0x406e05=this[_0x56e747(0xf3)][_0x56e747(0x87)](_0x1841b1,_0x205825,_0x435db6);return _0x406e05[_0x56e747(0x127)](),this[_0x56e747(0xb7)]['set'](_0x205825,_0x406e05),_0x406e05;}};_0x5cd63a=_0x3fc719([_0x13e222(0x0,_0x5d0cde[_0x21389e(0x162)]),_0x13e222(0x1,(0x0,_0x5d0cde['Inject'])(_0x5d0cde[_0x21389e(0x134)])),_0x13e222(0x2,(0x0,_0x5d0cde[_0x21389e(0xc4)])(_0x2d41d9[_0x21389e(0x8e)]))],_0x5cd63a);let _0x24d389=function(_0x2f5a1f){const _0x5ba050=_0x21389e;return _0x2f5a1f[_0x5ba050(0x13d)]=_0x5ba050(0x10b),_0x2f5a1f[_0x5ba050(0xc6)]=_0x5ba050(0xc2),_0x2f5a1f[_0x5ba050(0x11d)]=_0x5ba050(0x101),_0x2f5a1f[_0x5ba050(0x122)]=_0x5ba050(0x139),_0x2f5a1f[_0x5ba050(0x9c)]=_0x5ba050(0x89),_0x2f5a1f;}({}),_0x1841b1=class extends _0x5d0cde[_0x21389e(0x16e)]{get[_0x21389e(0x10f)](){const _0x14468b=_0x21389e;return this[_0x14468b(0x161)]['getValue']();}constructor(_0x48b2ae,_0x49db33,_0x546632,_0x1b0045,_0x35c814){const _0x505c6e=_0x21389e;super(),this[_0x505c6e(0xac)]=_0x48b2ae,this[_0x505c6e(0xb2)]=_0x49db33,this['_configService']=_0x546632,this[_0x505c6e(0x13c)]=_0x1b0045,this['_commandService']=_0x35c814,_0x527e54(this,_0x505c6e(0x161),new _0x418e8f[(_0x505c6e(0x118))]('idle')),_0x527e54(this,_0x505c6e(0x173),this['_status$'][_0x505c6e(0xb1)]()),_0x527e54(this,'_init',!0x1),_0x527e54(this,_0x505c6e(0x8b),null),_0x527e54(this,_0x505c6e(0x12d),null);}['dispose'](){const _0x29a96f=_0x21389e;var _0x127bd6;(_0x127bd6=this['_commandDisposable'])==null||_0x127bd6[_0x29a96f(0xfa)](),this[_0x29a96f(0x161)][_0x29a96f(0x11b)]('idle'),this[_0x29a96f(0x161)][_0x29a96f(0x16c)]();}[_0x21389e(0x9f)](){const _0x171dfc=_0x21389e;return this[_0x171dfc(0x10f)];}[_0x21389e(0x127)](){const _0x3546b0=_0x21389e;this[_0x3546b0(0xf0)]||(this['_init']=!0x0,this[_0x3546b0(0xb2)][_0x3546b0(0x175)][_0x3546b0(0xab)]((0x0,_0x4ebb2a[_0x3546b0(0x126)])(this['dispose$']))[_0x3546b0(0x11f)](_0x5b2da0=>{const _0x5c28f6=_0x3546b0;switch(_0x5b2da0){case _0x2d41d9[_0x5c28f6(0x14f)][_0x5c28f6(0x13d)]:this['_handleOffline']();break;case _0x2d41d9[_0x5c28f6(0x14f)][_0x5c28f6(0x96)]:this[_0x5c28f6(0xbf)]();break;default:}}),this['_collabSession'][_0x3546b0(0xf9)][_0x3546b0(0xab)]((0x0,_0x4ebb2a[_0x3546b0(0x126)])(this[_0x3546b0(0xe8)]))[_0x3546b0(0x11f)](_0x3c8067=>{const _0x4e8687=_0x3546b0;let {eventID:_0x2ac588}=_0x3c8067;switch(_0x2ac588){case _0x51961d['CollaborationEvent'][_0x4e8687(0xf2)]:this[_0x4e8687(0xc7)](_0x3c8067);break;case _0x51961d[_0x4e8687(0x13e)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x3c8067);break;case _0x51961d[_0x4e8687(0x13e)][_0x4e8687(0x167)]:this[_0x4e8687(0x102)]();break;case _0x51961d[_0x4e8687(0x13e)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x3c8067);break;default:}}));}[_0x21389e(0xbd)](){const _0x3f55cc=_0x21389e;this[_0x3f55cc(0xb2)][_0x3f55cc(0xaf)]({'eventID':_0x51961d[_0x3f55cc(0x13e)][_0x3f55cc(0x14a)],'data':{'unitID':this['_unitID'],'userID':this[_0x3f55cc(0xb2)]['getMemberID']()}},this[_0x3f55cc(0xac)]);}[_0x21389e(0xff)](){const _0x62759c=_0x21389e;this['_status']===_0x62759c(0x89)&&(this['_status$'][_0x62759c(0x11b)](_0x62759c(0xc2)),this['_collabSession'][_0x62759c(0xaf)]({'eventID':_0x51961d['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x62759c(0xac)]}},this[_0x62759c(0xac)]));}[_0x21389e(0xd9)](){const _0x2f31c5=_0x21389e;this[_0x2f31c5(0x10f)]===_0x2f31c5(0x139)&&(this[_0x2f31c5(0x161)][_0x2f31c5(0x11b)]('following'),this['_startFollowing']());}['stopFollowing'](){const _0x1e4c8e=_0x21389e;this[_0x1e4c8e(0x10f)]===_0x1e4c8e(0x101)&&this['_stopFollowing']();}['_handleNewHost'](_0x22d196){const _0xea7181=_0x21389e;let {presenter:_0x5774dd}=_0x22d196[_0xea7181(0x9d)],_0x13662a=this[_0xea7181(0xb2)]['getMemberID']();this[_0xea7181(0x12d)]=_0x5774dd,_0x5774dd===_0x13662a?(this[_0xea7181(0xe7)](),this['_startPresenting']()):this[_0xea7181(0x10f)]!=='not-following'&&(this[_0xea7181(0xc1)](),this[_0xea7181(0x149)]());}[_0x21389e(0xe4)](){const _0x3d2a7a=_0x21389e;let _0x5c00aa={'eventID':_0x51961d[_0x3d2a7a(0x13e)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x3d2a7a(0xb2)][_0x3d2a7a(0xaf)](_0x5c00aa,this[_0x3d2a7a(0xac)]);}['_handleTerminate'](){const _0x55473f=_0x21389e;this[_0x55473f(0x12d)]=null,this[_0x55473f(0x10f)]!==_0x55473f(0x89)&&this[_0x55473f(0x113)]();}['_handleNewChangeSets'](_0x3a3fd9){const _0x21a974=_0x21389e;if(this['_status']===_0x21a974(0x101)&&this['_presenter']===_0x3a3fd9[_0x21a974(0x9d)][_0x21a974(0x15b)]){let _0x1e86b2=(0x0,_0x51961d[_0x21a974(0xa1)])(_0x3a3fd9['data'])[_0x21a974(0x16d)][_0x21a974(0x110)]()[_0x21a974(0x7f)](_0x56b0bc=>_0x56b0bc['id']===_0x4e0523[_0x21a974(0x109)]['id']);if(_0x1e86b2){let _0x5b7800=_0x1e86b2[_0x21a974(0x11c)]['unitId'],_0x329e00=_0x1e86b2[_0x21a974(0x11c)][_0x21a974(0x130)]['id'];setTimeout(()=>{const _0xf5ad7f=_0x21a974;this[_0xf5ad7f(0x8d)]['executeCommand'](_0x4e0523[_0xf5ad7f(0x156)]['id'],{'unitId':_0x5b7800,'subUnitId':_0x329e00},{'fromCollab':!0x0});});}}}[_0x21389e(0x119)](){const _0x59f95a=_0x21389e;var _0x4f5606;(_0x4f5606=this['_commandDisposable'])==null||_0x4f5606[_0x59f95a(0xfa)](),this[_0x59f95a(0x161)][_0x59f95a(0x11b)](_0x59f95a(0x89));let _0x408a03=new Map(),_0x2fd0f4=this[_0x59f95a(0x8b)]=new _0x5d0cde[(_0x59f95a(0x100))]();_0x2fd0f4[_0x59f95a(0x13b)]((0x0,_0x5d0cde[_0x59f95a(0xb8)])(()=>{const _0x4dbc3e=_0x59f95a;_0x408a03[_0x4dbc3e(0x166)](({subject:_0x3bd7b2,subscription:_0x3b1aef})=>{const _0x30af03=_0x4dbc3e;_0x3b1aef[_0x30af03(0xd5)](),_0x3bd7b2[_0x30af03(0x16c)]();}),_0x408a03[_0x4dbc3e(0x157)]();})),_0x2fd0f4[_0x59f95a(0x13b)](this[_0x59f95a(0x8d)]['onCommandExecuted'](_0x166d6d=>{const _0x2fef15=_0x59f95a;if(_0x166d6d[_0x2fef15(0x86)]!==_0x5d0cde[_0x2fef15(0x133)][_0x2fef15(0x9e)]||!this['_liveShareService'][_0x2fef15(0xee)](_0x166d6d['id']))return;let {id:_0x4cb69e}=_0x166d6d,_0x218128;if(_0x408a03[_0x2fef15(0x7e)](_0x4cb69e))_0x218128=_0x408a03[_0x2fef15(0x10a)](_0x4cb69e)[_0x2fef15(0xea)];else{var _0x65635c;_0x218128=new _0x418e8f[(_0x2fef15(0x13a))]();let _0x151d7c=_0x218128[_0x2fef15(0xab)]((0x0,_0x4ebb2a[_0x2fef15(0xf7)])((_0x65635c=this[_0x2fef15(0xb6)][_0x2fef15(0xa3)](_0x2fef15(0xa6)))==null?0xc8:_0x65635c,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2fef15(0x11f)](_0x2c8985=>{const _0x3cd2a7=_0x2fef15;this[_0x3cd2a7(0xb2)][_0x3cd2a7(0xaf)]({'eventID':_0x51961d[_0x3cd2a7(0x13e)][_0x3cd2a7(0x172)],'data':{'unitID':this[_0x3cd2a7(0xac)],'operations':{[_0x2c8985['id']]:{'id':_0x2c8985['id'],'params':JSON['stringify'](_0x2c8985['params'])}}}},this[_0x3cd2a7(0xac)]);});_0x408a03['set'](_0x4cb69e,{'subject':_0x218128,'subscription':_0x151d7c});}_0x218128['next'](_0x166d6d);})),this[_0x59f95a(0x13c)][_0x59f95a(0x152)](this[_0x59f95a(0xac)])['forEach'](_0x2b9998=>this[_0x59f95a(0xb2)]['send']({'eventID':_0x51961d['CollaborationEvent'][_0x59f95a(0x172)],'data':{'unitID':this[_0x59f95a(0xac)],'operations':{[_0x2b9998['id']]:{'id':_0x2b9998['id'],'params':JSON[_0x59f95a(0x15c)](_0x2b9998[_0x59f95a(0x11c)])}}}},this[_0x59f95a(0xac)]));}[_0x21389e(0xc1)](){const _0x497672=_0x21389e;var _0x1e7b9d;this[_0x497672(0x161)]['next']('idle'),(_0x1e7b9d=this[_0x497672(0x8b)])==null||_0x1e7b9d[_0x497672(0xfa)](),this[_0x497672(0x8b)]=null;}['_startFollowing'](){const _0x1ff247=_0x21389e;var _0xfa3689;(_0xfa3689=this[_0x1ff247(0x8b)])==null||_0xfa3689['dispose'](),this[_0x1ff247(0x161)][_0x1ff247(0x11b)]('following');}[_0x21389e(0x113)](){const _0x521651=_0x21389e;var _0x35c140;this['_status$']['next'](_0x521651(0xc2)),(_0x35c140=this[_0x521651(0x8b)])==null||_0x35c140['dispose'](),this[_0x521651(0x8b)]=null;}[_0x21389e(0xe7)](){const _0x1db87d=_0x21389e;var _0x10ec28;this[_0x1db87d(0x161)]['next'](_0x1db87d(0x139)),(_0x10ec28=this['_commandDisposable'])==null||_0x10ec28[_0x1db87d(0xfa)]();}[_0x21389e(0xc3)](_0x32ea83){const _0x5495de=_0x21389e;if([_0x5495de(0x89),_0x5495de(0x139),'offline'][_0x5495de(0x84)](this['_status'])||!_0x32ea83[_0x5495de(0x9d)]['presenter']||_0x32ea83['data'][_0x5495de(0x88)]===this[_0x5495de(0xb2)][_0x5495de(0x90)]())return;this[_0x5495de(0x10f)]===_0x5495de(0xc2)&&this[_0x5495de(0x149)]();let _0x487206=_0x32ea83[_0x5495de(0x9d)][_0x5495de(0xc0)];Object[_0x5495de(0x112)](_0x487206)[_0x5495de(0x166)](_0x1fc1ad=>{const _0x110d29=_0x5495de;this['_commandService'][_0x110d29(0xc9)](_0x1fc1ad['id'],_0x1fc1ad[_0x110d29(0x11c)]?JSON[_0x110d29(0x103)](_0x1fc1ad[_0x110d29(0x11c)]):null,{'fromCollab':!0x0});});}[_0x21389e(0x170)](){const _0x3db8c2=_0x21389e;var _0x1868d8;this[_0x3db8c2(0x161)][_0x3db8c2(0x11b)](_0x3db8c2(0x10b)),(_0x1868d8=this[_0x3db8c2(0x8b)])==null||_0x1868d8[_0x3db8c2(0xfa)]();}[_0x21389e(0xbf)](){const _0x35fe07=_0x21389e;this['_status$'][_0x35fe07(0x11b)]('idle'),this[_0x35fe07(0xe4)]();}};_0x1841b1=_0x3fc719([_0x13e222(0x2,_0x5d0cde['IConfigService']),_0x13e222(0x3,(0x0,_0x5d0cde[_0x21389e(0xc4)])(_0x2e5c0f)),_0x13e222(0x4,_0x5d0cde[_0x21389e(0xdb)])],_0x1841b1);function _0x4d1733(){const _0x30a7b0=_0x21389e;let _0x7ba00=(0x0,_0x2d834b[_0x30a7b0(0x111)])(_0x5cd63a),_0x5f23f4=(0x0,_0x2d834b[_0x30a7b0(0x111)])(_0x5d0cde[_0x30a7b0(0x162)]),_0x3daccd=(0x0,_0x2d834b[_0x30a7b0(0xe2)])(()=>_0x5f23f4['getCurrentTypeOfUnit$'](_0x5d0cde[_0x30a7b0(0xe5)][_0x30a7b0(0x16a)]),void 0x0,!0x1,[]),[_0x5b264d,_0x23a044]=(0x0,_0x168f88['useState'])(null),[_0x375c85,_0x2e982f]=(0x0,_0x168f88[_0x30a7b0(0x99)])(_0x30a7b0(0xc2)),_0x33f825=(0x0,_0x168f88[_0x30a7b0(0xad)])(null);return(0x0,_0x168f88['useEffect'])(()=>(_0x3daccd&&_0x7ba00[_0x30a7b0(0xa7)](_0x3daccd[_0x30a7b0(0x121)]())['then'](_0x16ca8d=>{const _0x1e3c50=_0x30a7b0;_0x23a044(_0x16ca8d),_0x33f825['current']=_0x16ca8d[_0x1e3c50(0x173)][_0x1e3c50(0x11f)](_0xa3f613=>{_0x2e982f(_0xa3f613);});}),()=>{const _0x97b8b5=_0x30a7b0;var _0x5e6fa0;(_0x5e6fa0=_0x33f825[_0x97b8b5(0x158)])==null||_0x5e6fa0['unsubscribe'](),_0x33f825['current']=null;}),[_0x3daccd,_0x7ba00]),_0x5b264d?(0x0,_0x38b09a[_0x30a7b0(0xe0)])(_0x28b9d4['Dropdown'],{'align':_0x30a7b0(0xda),'disabled':_0x375c85===_0x30a7b0(0x10b),'className':_0x30a7b0(0xa0),'overlay':(0x0,_0x38b09a[_0x30a7b0(0xe0)])(_0x312fb2,{'status':_0x375c85,'coordinator':_0x5b264d}),'children':(0x0,_0x38b09a[_0x30a7b0(0xe0)])(_0x30a7b0(0x91),{'className':(0x0,_0x28b9d4[_0x30a7b0(0xdf)])(_0x30a7b0(0xed),{'univer-cursor-not-allowed':_0x375c85===_0x30a7b0(0x10b),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x375c85!==_0x30a7b0(0x10b)}),'type':_0x30a7b0(0x91),'children':(0x0,_0x38b09a[_0x30a7b0(0xe0)])(_0x28fca2,{'className':_0x30a7b0(0x135)})})}):null;}function _0x312fb2(_0x2a143b){const _0x5c6bf8=_0x21389e;let {status:_0x475e20,coordinator:_0x2998e2}=_0x2a143b;switch(_0x475e20){case _0x5c6bf8(0xc2):return(0x0,_0x38b09a[_0x5c6bf8(0xe0)])(_0x28db49,{'coordinator':_0x2998e2});case'following':return(0x0,_0x38b09a[_0x5c6bf8(0xe0)])(_0x3f13a9,{'coordinator':_0x2998e2});case _0x5c6bf8(0x139):return(0x0,_0x38b09a['jsx'])(_0xd0bf7,{'coordinator':_0x2998e2});case _0x5c6bf8(0x10b):return(0x0,_0x38b09a['jsx'])(_0x1d8caf,{});case _0x5c6bf8(0x89):return(0x0,_0x38b09a[_0x5c6bf8(0xe0)])(_0x1457dd,{'coordinator':_0x2998e2});default:return null;}}function _0x28db49(_0x1e9820){const _0x122b7f=_0x21389e;let {coordinator:_0x5c02b9}=_0x1e9820;return(0x0,_0x38b09a[_0x122b7f(0x131)])(_0x38b09a['Fragment'],{'children':[(0x0,_0x38b09a[_0x122b7f(0xe0)])(_0x122b7f(0x11e),{'className':_0x122b7f(0xe9),'children':'Present\x20this\x20document'}),(0x0,_0x38b09a[_0x122b7f(0xe0)])(_0x28b9d4[_0x122b7f(0x128)],{'onClick':()=>_0x5c02b9['tryStartPresenting'](),'children':_0x122b7f(0x9b)})]});}function _0x3f13a9(_0x138cd1){const _0x423d95=_0x21389e;let {coordinator:_0x2408c0}=_0x138cd1;return(0x0,_0x38b09a['jsxs'])(_0x38b09a[_0x423d95(0x8f)],{'children':[(0x0,_0x38b09a[_0x423d95(0xe0)])(_0x423d95(0x11e),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x423d95(0x16b)}),(0x0,_0x38b09a['jsx'])(_0x28b9d4[_0x423d95(0x128)],{'onClick':()=>_0x2408c0[_0x423d95(0xeb)](),'children':_0x423d95(0x163)})]});}function _0xd0bf7(_0x623ace){const _0x301408=_0x21389e;let {coordinator:_0x5e80d0}=_0x623ace;return(0x0,_0x38b09a['jsxs'])(_0x38b09a[_0x301408(0x8f)],{'children':[(0x0,_0x38b09a[_0x301408(0xe0)])('div',{'className':_0x301408(0xe9),'children':_0x301408(0x14c)}),(0x0,_0x38b09a['jsx'])(_0x28b9d4['Button'],{'variant':_0x301408(0x171),'onClick':()=>_0x5e80d0[_0x301408(0xd9)](),'children':_0x301408(0x164)})]});}function _0x1457dd(_0x1d5da0){const _0x10390a=_0x21389e;let {coordinator:_0x56229f}=_0x1d5da0;return(0x0,_0x38b09a[_0x10390a(0x131)])(_0x38b09a[_0x10390a(0x8f)],{'children':[(0x0,_0x38b09a[_0x10390a(0xe0)])(_0x10390a(0x11e),{'className':_0x10390a(0xe9),'children':_0x10390a(0xe3)}),(0x0,_0x38b09a[_0x10390a(0xe0)])(_0x28b9d4[_0x10390a(0x128)],{'variant':_0x10390a(0xd1),'onClick':()=>_0x56229f[_0x10390a(0xff)](),'children':'Stop\x20presenting'})]});}function _0x1d8caf(){const _0x45f9d2=_0x21389e;return(0x0,_0x38b09a[_0x45f9d2(0xe0)])(_0x38b09a['Fragment'],{'children':_0x45f9d2(0x120)});}let _0x3a9a8f=class extends _0x5d0cde[_0x21389e(0xf4)]{constructor(_0x29dd51,_0x5bda41){const _0x13527d=_0x21389e;super(),this[_0x13527d(0xf3)]=_0x29dd51,this[_0x13527d(0xe6)]=_0x5bda41,this['_mountLiveShare']();}[_0x21389e(0x97)](){const _0x503e6a=_0x21389e;this['disposeWithMe'](this[_0x503e6a(0xe6)][_0x503e6a(0x15e)](_0x2d834b[_0x503e6a(0x104)]['HEADER_MENU'],()=>(0x0,_0x2d834b['connectInjector'])(_0x4d1733,this[_0x503e6a(0xf3)])));}};_0x3a9a8f=_0x3fc719([_0x13e222(0x0,(0x0,_0x5d0cde[_0x21389e(0xc4)])(_0x5d0cde[_0x21389e(0x134)])),_0x13e222(0x1,_0x2d834b[_0x21389e(0x81)])],_0x3a9a8f);var _0x24e7a3=_0x21389e(0xa8),_0x3231a4=_0x21389e(0xdc);let _0x211232={},_0x5fc1b=class extends _0x5d0cde[_0x21389e(0xf4)]{constructor(_0x97a05b){const _0x337823=_0x21389e;super(),this[_0x337823(0x13c)]=_0x97a05b,this[_0x337823(0xf0)]();}[_0x21389e(0xf0)](){const _0x2b6d43=_0x21389e;[_0x522b82[_0x2b6d43(0x138)]['id'],_0x522b82[_0x2b6d43(0x115)]['id'],_0x4e0523[_0x2b6d43(0x156)]['id']]['forEach'](_0x34497c=>{const _0x2ab33b=_0x2b6d43;this[_0x2ab33b(0xb9)](this[_0x2ab33b(0x13c)][_0x2ab33b(0xcf)](_0x34497c));});}};_0x5fc1b=_0x3fc719([_0x13e222(0x0,(0x0,_0x5d0cde[_0x21389e(0xc4)])(_0x2e5c0f))],_0x5fc1b);let _0x3fd576=class extends _0x5d0cde['Plugin']{constructor(_0x24d2a8=_0x211232,_0x494b6e,_0x4c6d6d){const _0x5431ac=_0x21389e;super(),this[_0x5431ac(0x151)]=_0x24d2a8,this[_0x5431ac(0xf3)]=_0x494b6e,this[_0x5431ac(0xb6)]=_0x4c6d6d;let {..._0x2d7437}=(0x0,_0x5d0cde['merge'])({},_0x211232,this[_0x5431ac(0x151)]);this[_0x5431ac(0xb6)][_0x5431ac(0x82)]('live-share.config',_0x2d7437);}[_0x21389e(0x140)](){const _0x155484=_0x21389e;(0x0,_0x5d0cde['registerDependencies'])(this['_injector'],(0x0,_0x5d0cde[_0x155484(0x10c)])([[_0x2e5c0f],[_0x5cd63a],[_0x5fc1b],[_0x3a9a8f]],this[_0x155484(0x151)][_0x155484(0xb3)])),(0x0,_0x5d0cde[_0x155484(0x125)])(this[_0x155484(0xf3)],[[_0x5fc1b]]);}[_0x21389e(0x12f)](){const _0x42d5bc=_0x21389e;(0x0,_0x5d0cde['touchDependencies'])(this[_0x42d5bc(0xf3)],[[_0x3a9a8f]]);}};_0x527e54(_0x3fd576,_0x21389e(0x86),_0x5d0cde[_0x21389e(0xe5)][_0x21389e(0xa5)]),_0x527e54(_0x3fd576,'pluginName',_0x21389e(0xdd)),_0x527e54(_0x3fd576,_0x21389e(0x16f),_0x24e7a3),_0x527e54(_0x3fd576,'version',_0x3231a4),_0x3fd576=_0x3fc719([(0x0,_0x5d0cde[_0x21389e(0xd3)])(_0x2d41d9[_0x21389e(0xf1)]),_0x13e222(0x1,(0x0,_0x5d0cde[_0x21389e(0xc4)])(_0x5d0cde[_0x21389e(0x134)])),_0x13e222(0x2,_0x5d0cde[_0x21389e(0xec)])],_0x3fd576),Object[_0x21389e(0x93)](_0x267332,'DesktopLiveShareController',{'enumerable':!0x0,'get':function(){return _0x3a9a8f;}}),_0x267332[_0x21389e(0x165)]=_0x4d1733,Object[_0x21389e(0x93)](_0x267332,'LiveShareController',{'enumerable':!0x0,'get':function(){return _0x5cd63a;}}),Object[_0x21389e(0x93)](_0x267332,_0x21389e(0xcd),{'enumerable':!0x0,'get':function(){return _0x1841b1;}}),_0x267332['LiveShareService']=_0x2e5c0f,_0x267332['LiveShareStatus']=_0x24d389,Object[_0x21389e(0x93)](_0x267332,_0x21389e(0xc5),{'enumerable':!0x0,'get':function(){return _0x3fd576;}});}));function _0xb4a8(){const _0x496fd0=['mask','registerSharedOperation','amd','default','attrs','DependentOn','react/jsx-runtime','unsubscribe','9665DKDMkw','@univerjs-pro/collaboration','UniverSheetsUi','startFollowing','end','ICommandService','0.25.1','UNIVER_LIVE_SHARE_PLUGIN','trim','clsx','jsx','univerjs-icon\x20univerjs-icon-','useObservable','You\x27re\x20presenting\x20the\x20document','_fetchOperations','UniverInstanceType','_uiPartsService','_stopFollowing','dispose$','univer-mb-3\x20univer-w-full\x20univer-text-sm','subject','stopFollowing','IConfigService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','shouldShareOperation','51860tNeQBh','_init','UniverCollaborationClientPlugin','LIVESHARE_NEW_HOST','_injector','Disposable','decorate','UniverProCollaboration','throttleTime','object','event$','dispose','exports','React','@univerjs/ui','from','stopPresenting','DisposableCollection','following','_handleTerminate','parse','BuiltInUIPart','replace','react','getLiveShareCoordinatorSync','http://www.w3.org/2000/svg','InsertSheetMutation','get','offline','mergeOverrideWithDependencies','requireSession','evenodd','_status','reverse','useDependency','values','_beIdle','3594EOqYFO','SetScrollOperation','defIds','UniverCore','BehaviorSubject','_startPresenting','delete','next','params','FOLLOWING','div','subscribe','You\x27are\x20offline.','getUnitId','NOT_FOLLOWING','UniverProCollaborationClient','@univerjs/sheets-ui','touchDependencies','takeUntil','init','Button','_startLiveShareCoordinator','live-share-icon','UniverDesign','_univerInstanceService','_presenter','UniverUi','onRendered','sheet','jsxs','function','CommandType','Injector','univer-size-4','entries','1368pRsgTz','SetZoomRatioOperation','not-following','Subject','add','_liveShareService','OFFLINE','CollaborationEvent','createElement','onStarting','_reporters','xlink:href','string','displayName','1em','currentColor','defs','381MydBdI','_startFollowing','LIVESHARE_REQUEST_HOST','_sharedOperations','You\x27re\x20not\x20following\x20the\x20presenter','registerInitialStateReporter','_collabSessionService','SessionStatus','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_config','getInitialStates','7171353gqeHBo','call','use','SetWorksheetActiveOperation','clear','current','182VypVIx','colorChannel1','memberID','stringify','7007XLvNmS','registerComponent','fill','LiveShareIcon','_status$','IUniverInstanceService','Stop\x20following','Start\x20following','LiveShare','forEach','LIVESHARE_TERMINATE','idSuffix','@univerjs/design','UNIVER_SHEET','You\x27re\x20following\x20the\x20presenter','complete','mutations','RxDisposable','packageName','_handleOffline','text','LIVESHARE_OPERATION','status$','children','sessionStatus$','has','find','symbol','IUIPartsService','setConfig','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','includes','none','type','createInstance','presenter','presenting','UniverSheets','_commandDisposable','length','_commandService','CollaborationSessionService','Fragment','getMemberID','button','map','defineProperty','url(#$1','path','ONLINE','_mountLiveShare','@univerjs/core','useState','Module','Start','PRESENTING','data','OPERATION','getStatus','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','parseProtocolChangeset','@univerjs-pro/collaboration-client','getConfig','constructor','UNIVER_UNKNOWN','SAME_OPERATION_SHARE_INTERVAL','getLiveShareCoordinator','@univerjs-pro/live-share','getTypeOfUnitDisposed$','58096LDSUgR','pipe','_unitID','useRef','3217014ESYVlR','send','getTypeOfUnitAdded$','asObservable','_collabSession','override','toPrimitive','iterator','_configService','_entities','toDisposable','disposeWithMe','svg','rxjs','UniverIcon','tryStartPresenting','@univerjs/sheets','_handleOnline','operations','_stopPresenting','idle','_handleOperation','Inject','UniverLiveSharePlugin','IDLE','_handleNewHost','operators','executeCommand','4012854WBGIwL','rxjs/operators','tag','LiveShareCoordinator'];_0xb4a8=function(){return _0x496fd0;};return _0xb4a8();}
|
|
1
|
+
(function(_0xb787a5,_0x37128c){const _0x1b5365=_0x3522,_0x48f2e9=_0xb787a5();while(!![]){try{const _0x5baf8a=-parseInt(_0x1b5365(0x1c5))/0x1+-parseInt(_0x1b5365(0x24c))/0x2*(-parseInt(_0x1b5365(0x1dc))/0x3)+parseInt(_0x1b5365(0x1e0))/0x4*(parseInt(_0x1b5365(0x19b))/0x5)+-parseInt(_0x1b5365(0x1aa))/0x6+-parseInt(_0x1b5365(0x19a))/0x7+parseInt(_0x1b5365(0x1fd))/0x8*(-parseInt(_0x1b5365(0x1e1))/0x9)+parseInt(_0x1b5365(0x247))/0xa;if(_0x5baf8a===_0x37128c)break;else _0x48f2e9['push'](_0x48f2e9['shift']());}catch(_0x1fae8b){_0x48f2e9['push'](_0x48f2e9['shift']());}}}(_0x3b8f,0x8b687),function(_0x4506cf,_0x49514e){const _0x1e7aac=_0x3522;typeof exports==_0x1e7aac(0x1a9)&&typeof module<'u'?_0x49514e(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/ui'),require('@univerjs/design'),require('react'),require('react/jsx-runtime'),require('@univerjs/sheets-ui')):typeof define==_0x1e7aac(0x1b4)&&define['amd']?define(['exports',_0x1e7aac(0x181),_0x1e7aac(0x16f),_0x1e7aac(0x220),_0x1e7aac(0x1f0),'rxjs','rxjs/operators',_0x1e7aac(0x22c),_0x1e7aac(0x200),_0x1e7aac(0x243),_0x1e7aac(0x17e),_0x1e7aac(0x1cb)],_0x49514e):(_0x4506cf=typeof globalThis<'u'?globalThis:_0x4506cf||self,_0x49514e(_0x4506cf[_0x1e7aac(0x22a)]={},_0x4506cf[_0x1e7aac(0x237)],_0x4506cf[_0x1e7aac(0x214)],_0x4506cf[_0x1e7aac(0x1eb)],_0x4506cf[_0x1e7aac(0x207)],_0x4506cf[_0x1e7aac(0x15d)],_0x4506cf['rxjs']['operators'],_0x4506cf[_0x1e7aac(0x1a6)],_0x4506cf[_0x1e7aac(0x1c4)],_0x4506cf['React'],_0x4506cf[_0x1e7aac(0x1c0)],_0x4506cf[_0x1e7aac(0x1da)]));}(this,function(_0x522c9e,_0x5e573b,_0x5a0b21,_0x2783b2,_0x5e4379,_0x1b8c8a,_0x5b7387,_0x59ae43,_0x5342f5,_0x28435e,_0x1fcf35,_0x149c26){const _0x273424=_0x3522;Object[_0x273424(0x228)](_0x522c9e,Symbol[_0x273424(0x24d)],{'value':_0x273424(0x1d0)});function _0x4a213c(_0x1927da){'@babel/helpers - typeof';const _0x4b1d87=_0x273424;return _0x4a213c=typeof Symbol==_0x4b1d87(0x1b4)&&typeof Symbol['iterator']=='symbol'?function(_0x823a02){return typeof _0x823a02;}:function(_0x749b74){const _0x27f1b8=_0x4b1d87;return _0x749b74&&typeof Symbol==_0x27f1b8(0x1b4)&&_0x749b74[_0x27f1b8(0x234)]===Symbol&&_0x749b74!==Symbol[_0x27f1b8(0x16a)]?'symbol':typeof _0x749b74;},_0x4a213c(_0x1927da);}function _0x545adb(_0x67b8fd,_0x1a25fe){const _0x14f6fa=_0x273424;if(_0x4a213c(_0x67b8fd)!=_0x14f6fa(0x1a9)||!_0x67b8fd)return _0x67b8fd;var _0x2ce7cc=_0x67b8fd[Symbol[_0x14f6fa(0x1ec)]];if(_0x2ce7cc!==void 0x0){var _0x443e99=_0x2ce7cc[_0x14f6fa(0x194)](_0x67b8fd,_0x1a25fe||_0x14f6fa(0x17d));if(_0x4a213c(_0x443e99)!='object')return _0x443e99;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1a25fe===_0x14f6fa(0x20b)?String:Number)(_0x67b8fd);}function _0x1ba22d(_0x388432){const _0x259c96=_0x273424;var _0x166d7a=_0x545adb(_0x388432,'string');return _0x4a213c(_0x166d7a)==_0x259c96(0x221)?_0x166d7a:_0x166d7a+'';}function _0xdfb72d(_0x431817,_0x4ab856,_0x20b0fc){const _0x45075a=_0x273424;return(_0x4ab856=_0x1ba22d(_0x4ab856))in _0x431817?Object[_0x45075a(0x228)](_0x431817,_0x4ab856,{'value':_0x20b0fc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x431817[_0x4ab856]=_0x20b0fc,_0x431817;}var _0x46bf5a=class extends _0x2783b2[_0x273424(0x1f2)]{constructor(..._0x47062e){const _0x18b950=_0x273424;super(..._0x47062e),_0xdfb72d(this,'_sharedOperations',new Set()),_0xdfb72d(this,_0x18b950(0x1e4),new Set());}[_0x273424(0x231)](_0x3ce058){const _0x41054d=_0x273424;return this['_sharedOperations'][_0x41054d(0x168)](_0x3ce058),(0x0,_0x2783b2[_0x41054d(0x19f)])(()=>this[_0x41054d(0x18e)]['delete'](_0x3ce058));}[_0x273424(0x224)](_0x1c835e){const _0x46d978=_0x273424;return this[_0x46d978(0x1e4)][_0x46d978(0x168)](_0x1c835e),(0x0,_0x2783b2[_0x46d978(0x19f)])(()=>this[_0x46d978(0x1e4)]['delete'](_0x1c835e));}[_0x273424(0x1c6)](_0x48aae4){const _0x2845c6=_0x273424;return this[_0x2845c6(0x18e)][_0x2845c6(0x226)](_0x48aae4);}[_0x273424(0x17f)](_0x4e912c){const _0x278739=_0x273424;return Array[_0x278739(0x238)](this[_0x278739(0x1e4)])[_0x278739(0x178)](_0x146898=>_0x146898(_0x4e912c));}};function _0x5a79e4(_0x4fd5a0,_0x333307){return function(_0x355ce0,_0x1c15b5){_0x333307(_0x355ce0,_0x1c15b5,_0x4fd5a0);};}function _0x5e495f(_0x4e2cae,_0x2c4bf0,_0x2cbef6,_0x3ffae0){const _0x595fb9=_0x273424;var _0x24fcfb=arguments[_0x595fb9(0x171)],_0x475659=_0x24fcfb<0x3?_0x2c4bf0:_0x3ffae0===null?_0x3ffae0=Object[_0x595fb9(0x1b1)](_0x2c4bf0,_0x2cbef6):_0x3ffae0,_0x18c4da;if(typeof Reflect==_0x595fb9(0x1a9)&&typeof Reflect['decorate']==_0x595fb9(0x1b4))_0x475659=Reflect[_0x595fb9(0x1cd)](_0x4e2cae,_0x2c4bf0,_0x2cbef6,_0x3ffae0);else{for(var _0x873bcc=_0x4e2cae['length']-0x1;_0x873bcc>=0x0;_0x873bcc--)(_0x18c4da=_0x4e2cae[_0x873bcc])&&(_0x475659=(_0x24fcfb<0x3?_0x18c4da(_0x475659):_0x24fcfb>0x3?_0x18c4da(_0x2c4bf0,_0x2cbef6,_0x475659):_0x18c4da(_0x2c4bf0,_0x2cbef6))||_0x475659);}return _0x24fcfb>0x3&&_0x475659&&Object[_0x595fb9(0x228)](_0x2c4bf0,_0x2cbef6,_0x475659),_0x475659;}let _0x403428=class extends _0x2783b2[_0x273424(0x195)]{constructor(_0x23dd4f,_0x3f44ae,_0x5df301){const _0x2da985=_0x273424;super(),this[_0x2da985(0x1e5)]=_0x23dd4f,this['_injector']=_0x3f44ae,this[_0x2da985(0x22e)]=_0x5df301,_0xdfb72d(this,_0x2da985(0x1a1),new Map()),this['_init']();}async['getLiveShareCoordinator'](_0xae6926){const _0x354525=_0x273424;return this[_0x354525(0x1a1)][_0x354525(0x226)](_0xae6926)||await this['_startLiveShareCoordinator'](_0xae6926),this['_entities'][_0x354525(0x241)](_0xae6926);}['getLiveShareCoordinatorSync'](_0x214bc4){const _0x4dc3f9=_0x273424;var _0x498bd7;return(_0x498bd7=this[_0x4dc3f9(0x1a1)][_0x4dc3f9(0x241)](_0x214bc4))==null?null:_0x498bd7;}['_init'](){const _0x1ce1c6=_0x273424;this[_0x1ce1c6(0x1e5)][_0x1ce1c6(0x213)](_0x2783b2['UniverInstanceType'][_0x1ce1c6(0x215)])[_0x1ce1c6(0x167)]((0x0,_0x5b7387['takeUntil'])(this['dispose$']))['subscribe'](async _0x52caf6=>{const _0x384bec=_0x1ce1c6;let _0x4e192e=_0x52caf6[_0x384bec(0x15e)][_0x384bec(0x1fb)]();this['_entities'][_0x384bec(0x226)](_0x4e192e)||this[_0x384bec(0x1e3)](_0x4e192e);}),this[_0x1ce1c6(0x1e5)][_0x1ce1c6(0x20d)](_0x2783b2[_0x1ce1c6(0x16d)][_0x1ce1c6(0x215)])[_0x1ce1c6(0x167)]((0x0,_0x5b7387[_0x1ce1c6(0x1d3)])(this[_0x1ce1c6(0x21d)]))['subscribe'](_0x3cbba5=>{const _0x248716=_0x1ce1c6;let _0x3b3c3b=_0x3cbba5[_0x248716(0x1fb)](),_0x13c980=this[_0x248716(0x1a1)]['get'](_0x3b3c3b);_0x13c980==null||_0x13c980['dispose']();});}async[_0x273424(0x1e3)](_0x67b7a){const _0x24b56b=_0x273424;let _0x1f2c98=await this['_collabSessionService']['requireSession'](_0x67b7a),_0x3647db=this['_injector']['createInstance'](_0x5676f0,_0x67b7a,_0x1f2c98);return _0x3647db[_0x24b56b(0x15f)](),this[_0x24b56b(0x1a1)][_0x24b56b(0x191)](_0x67b7a,_0x3647db),_0x3647db;}};_0x403428=_0x5e495f([_0x5a79e4(0x0,_0x2783b2['IUniverInstanceService']),_0x5a79e4(0x1,(0x0,_0x2783b2[_0x273424(0x182)])(_0x2783b2[_0x273424(0x172)])),_0x5a79e4(0x2,(0x0,_0x2783b2[_0x273424(0x182)])(_0x5a0b21[_0x273424(0x163)]))],_0x403428);let _0x26310f=function(_0xccc439){const _0xce207c=_0x273424;return _0xccc439[_0xce207c(0x1c8)]=_0xce207c(0x192),_0xccc439[_0xce207c(0x199)]='idle',_0xccc439['FOLLOWING']=_0xce207c(0x24b),_0xccc439['NOT_FOLLOWING']='not-following',_0xccc439[_0xce207c(0x230)]=_0xce207c(0x22d),_0xccc439;}({}),_0x5676f0=class extends _0x2783b2['RxDisposable']{get[_0x273424(0x1e8)](){const _0xddf438=_0x273424;return this[_0xddf438(0x1af)]['getValue']();}constructor(_0x535ede,_0x53b117,_0x50a3c5,_0x59b59f,_0x46c480){const _0x1b04e6=_0x273424;super(),this[_0x1b04e6(0x1f8)]=_0x535ede,this[_0x1b04e6(0x18b)]=_0x53b117,this['_configService']=_0x50a3c5,this['_liveShareService']=_0x59b59f,this[_0x1b04e6(0x1ee)]=_0x46c480,_0xdfb72d(this,_0x1b04e6(0x1af),new _0x1b8c8a[(_0x1b04e6(0x1f4))](_0x1b04e6(0x248))),_0xdfb72d(this,'status$',this[_0x1b04e6(0x1af)][_0x1b04e6(0x160)]()),_0xdfb72d(this,'_init',!0x1),_0xdfb72d(this,_0x1b04e6(0x15c),null),_0xdfb72d(this,'_presenter',null);}[_0x273424(0x179)](){const _0x3ee777=_0x273424;var _0x52bf53;(_0x52bf53=this['_commandDisposable'])==null||_0x52bf53[_0x3ee777(0x179)](),this[_0x3ee777(0x1af)][_0x3ee777(0x233)](_0x3ee777(0x248)),this['_status$']['complete']();}[_0x273424(0x21f)](){const _0x32cf97=_0x273424;return this[_0x32cf97(0x1e8)];}[_0x273424(0x15f)](){const _0x5e25b9=_0x273424;this[_0x5e25b9(0x209)]||(this['_init']=!0x0,this['_collabSession'][_0x5e25b9(0x165)][_0x5e25b9(0x167)]((0x0,_0x5b7387[_0x5e25b9(0x1d3)])(this['dispose$']))[_0x5e25b9(0x183)](_0x573fef=>{const _0x4eaa9f=_0x5e25b9;switch(_0x573fef){case _0x5a0b21[_0x4eaa9f(0x22f)][_0x4eaa9f(0x1c8)]:this[_0x4eaa9f(0x23b)]();break;case _0x5a0b21[_0x4eaa9f(0x22f)][_0x4eaa9f(0x210)]:this[_0x4eaa9f(0x1df)]();break;default:}}),this[_0x5e25b9(0x18b)][_0x5e25b9(0x239)][_0x5e25b9(0x167)]((0x0,_0x5b7387[_0x5e25b9(0x1d3)])(this[_0x5e25b9(0x21d)]))[_0x5e25b9(0x183)](_0x240cc6=>{const _0x17c44d=_0x5e25b9;let {eventID:_0x145fb2}=_0x240cc6;switch(_0x145fb2){case _0x5e573b['CollaborationEvent'][_0x17c44d(0x1f3)]:this[_0x17c44d(0x23c)](_0x240cc6);break;case _0x5e573b[_0x17c44d(0x206)][_0x17c44d(0x1dd)]:this['_handleOperation'](_0x240cc6);break;case _0x5e573b[_0x17c44d(0x206)]['LIVESHARE_TERMINATE']:this[_0x17c44d(0x193)]();break;case _0x5e573b[_0x17c44d(0x206)][_0x17c44d(0x203)]:this[_0x17c44d(0x19e)](_0x240cc6);break;default:}}));}[_0x273424(0x1fc)](){const _0x11c287=_0x273424;this[_0x11c287(0x18b)][_0x11c287(0x17a)]({'eventID':_0x5e573b[_0x11c287(0x206)][_0x11c287(0x189)],'data':{'unitID':this['_unitID'],'userID':this[_0x11c287(0x18b)][_0x11c287(0x1f5)]()}},this['_unitID']);}[_0x273424(0x1ed)](){const _0x21cd36=_0x273424;this[_0x21cd36(0x1e8)]==='presenting'&&(this['_status$'][_0x21cd36(0x233)](_0x21cd36(0x248)),this[_0x21cd36(0x18b)][_0x21cd36(0x17a)]({'eventID':_0x5e573b[_0x21cd36(0x206)][_0x21cd36(0x1a2)],'data':{'unitID':this[_0x21cd36(0x1f8)]}},this[_0x21cd36(0x1f8)]));}[_0x273424(0x1a4)](){const _0x15a385=_0x273424;this[_0x15a385(0x1e8)]===_0x15a385(0x1a5)&&(this[_0x15a385(0x1af)][_0x15a385(0x233)]('following'),this[_0x15a385(0x1b0)]());}['stopFollowing'](){const _0x38fd9a=_0x273424;this[_0x38fd9a(0x1e8)]===_0x38fd9a(0x24b)&&this[_0x38fd9a(0x229)]();}[_0x273424(0x23c)](_0x485ee8){const _0x2c0b2b=_0x273424;let {presenter:_0x3ee4c8}=_0x485ee8['data'],_0x4c2c83=this[_0x2c0b2b(0x18b)]['getMemberID']();this[_0x2c0b2b(0x23a)]=_0x3ee4c8,_0x3ee4c8===_0x4c2c83?(this[_0x2c0b2b(0x229)](),this[_0x2c0b2b(0x222)]()):this[_0x2c0b2b(0x1e8)]!=='not-following'&&(this[_0x2c0b2b(0x174)](),this[_0x2c0b2b(0x1b0)]());}['_fetchOperations'](){const _0x2dce54=_0x273424;let _0x3235a1={'eventID':_0x5e573b[_0x2dce54(0x206)][_0x2dce54(0x1f9)]};this[_0x2dce54(0x18b)][_0x2dce54(0x17a)](_0x3235a1,this['_unitID']);}['_handleTerminate'](){const _0xc8ed0c=_0x273424;this['_presenter']=null,this[_0xc8ed0c(0x1e8)]!==_0xc8ed0c(0x22d)&&this[_0xc8ed0c(0x198)]();}['_handleNewChangeSets'](_0x53c920){const _0x117bbd=_0x273424;if(this['_status']===_0x117bbd(0x24b)&&this[_0x117bbd(0x23a)]===_0x53c920[_0x117bbd(0x24e)]['memberID']){let _0x53830a=(0x0,_0x5e573b['parseProtocolChangeset'])(_0x53c920['data'])['mutations'][_0x117bbd(0x166)]()[_0x117bbd(0x15b)](_0x9dc178=>_0x9dc178['id']===_0x5e4379[_0x117bbd(0x170)]['id']);if(_0x53830a){let _0x520775=_0x53830a[_0x117bbd(0x20c)][_0x117bbd(0x1a8)],_0x2745a0=_0x53830a[_0x117bbd(0x20c)][_0x117bbd(0x187)]['id'];setTimeout(()=>{const _0x404603=_0x117bbd;this[_0x404603(0x1ee)][_0x404603(0x1b2)](_0x5e4379[_0x404603(0x1cf)]['id'],{'unitId':_0x520775,'subUnitId':_0x2745a0},{'fromCollab':!0x0});});}}}[_0x273424(0x222)](){const _0x32db00=_0x273424;var _0x2bf9ad;(_0x2bf9ad=this[_0x32db00(0x15c)])==null||_0x2bf9ad['dispose'](),this[_0x32db00(0x1af)]['next'](_0x32db00(0x22d));let _0x34d554=new Map(),_0x4a2972=this[_0x32db00(0x15c)]=new _0x2783b2[(_0x32db00(0x16c))]();_0x4a2972['add']((0x0,_0x2783b2[_0x32db00(0x19f)])(()=>{const _0x3d876c=_0x32db00;_0x34d554['forEach'](({subject:_0x49a983,subscription:_0x263a6f})=>{_0x263a6f['unsubscribe'](),_0x49a983['complete']();}),_0x34d554[_0x3d876c(0x1ac)]();})),_0x4a2972[_0x32db00(0x168)](this[_0x32db00(0x1ee)][_0x32db00(0x246)](_0x2da30d=>{const _0x4889d8=_0x32db00;if(_0x2da30d['type']!==_0x2783b2[_0x4889d8(0x1ad)][_0x4889d8(0x1a0)]||!this['_liveShareService'][_0x4889d8(0x1c6)](_0x2da30d['id']))return;let {id:_0x2f9cae}=_0x2da30d,_0x5d59e0;if(_0x34d554[_0x4889d8(0x226)](_0x2f9cae))_0x5d59e0=_0x34d554['get'](_0x2f9cae)[_0x4889d8(0x1d6)];else{var _0x2459de;_0x5d59e0=new _0x1b8c8a['Subject']();let _0x10b04a=_0x5d59e0[_0x4889d8(0x167)]((0x0,_0x5b7387[_0x4889d8(0x232)])((_0x2459de=this[_0x4889d8(0x1b3)][_0x4889d8(0x227)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x2459de,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4889d8(0x183)](_0x550870=>{const _0x310f3e=_0x4889d8;this[_0x310f3e(0x18b)][_0x310f3e(0x17a)]({'eventID':_0x5e573b[_0x310f3e(0x206)][_0x310f3e(0x1dd)],'data':{'unitID':this['_unitID'],'operations':{[_0x550870['id']]:{'id':_0x550870['id'],'params':JSON[_0x310f3e(0x1b7)](_0x550870['params'])}}}},this[_0x310f3e(0x1f8)]);});_0x34d554[_0x4889d8(0x191)](_0x2f9cae,{'subject':_0x5d59e0,'subscription':_0x10b04a});}_0x5d59e0[_0x4889d8(0x233)](_0x2da30d);})),this[_0x32db00(0x18a)][_0x32db00(0x17f)](this['_unitID'])['forEach'](_0xb5ea68=>this[_0x32db00(0x18b)][_0x32db00(0x17a)]({'eventID':_0x5e573b[_0x32db00(0x206)][_0x32db00(0x1dd)],'data':{'unitID':this[_0x32db00(0x1f8)],'operations':{[_0xb5ea68['id']]:{'id':_0xb5ea68['id'],'params':JSON['stringify'](_0xb5ea68[_0x32db00(0x20c)])}}}},this[_0x32db00(0x1f8)]));}['_stopPresenting'](){const _0x4d8408=_0x273424;var _0x174131;this[_0x4d8408(0x1af)][_0x4d8408(0x233)](_0x4d8408(0x248)),(_0x174131=this[_0x4d8408(0x15c)])==null||_0x174131[_0x4d8408(0x179)](),this[_0x4d8408(0x15c)]=null;}['_startFollowing'](){const _0x5a049d=_0x273424;var _0x1de7d5;(_0x1de7d5=this[_0x5a049d(0x15c)])==null||_0x1de7d5[_0x5a049d(0x179)](),this[_0x5a049d(0x1af)][_0x5a049d(0x233)](_0x5a049d(0x24b));}[_0x273424(0x198)](){const _0x1254e4=_0x273424;var _0x92d8ab;this[_0x1254e4(0x1af)]['next'](_0x1254e4(0x248)),(_0x92d8ab=this[_0x1254e4(0x15c)])==null||_0x92d8ab['dispose'](),this[_0x1254e4(0x15c)]=null;}['_stopFollowing'](){const _0x4fef42=_0x273424;var _0xe32ce0;this['_status$'][_0x4fef42(0x233)]('not-following'),(_0xe32ce0=this[_0x4fef42(0x15c)])==null||_0xe32ce0['dispose']();}[_0x273424(0x19d)](_0x2a2668){const _0x38ca5c=_0x273424;if([_0x38ca5c(0x22d),'not-following',_0x38ca5c(0x192)][_0x38ca5c(0x212)](this['_status'])||!_0x2a2668['data'][_0x38ca5c(0x1f1)]||_0x2a2668['data'][_0x38ca5c(0x1f1)]===this[_0x38ca5c(0x18b)][_0x38ca5c(0x1f5)]())return;this[_0x38ca5c(0x1e8)]===_0x38ca5c(0x248)&&this['_startFollowing']();let _0x8e2c7c=_0x2a2668['data'][_0x38ca5c(0x244)];Object[_0x38ca5c(0x162)](_0x8e2c7c)[_0x38ca5c(0x223)](_0xacf7fe=>{const _0x171edf=_0x38ca5c;this[_0x171edf(0x1ee)][_0x171edf(0x1b2)](_0xacf7fe['id'],_0xacf7fe[_0x171edf(0x20c)]?JSON[_0x171edf(0x218)](_0xacf7fe[_0x171edf(0x20c)]):null,{'fromCollab':!0x0});});}[_0x273424(0x23b)](){const _0x201d24=_0x273424;var _0x1888a2;this[_0x201d24(0x1af)][_0x201d24(0x233)](_0x201d24(0x192)),(_0x1888a2=this[_0x201d24(0x15c)])==null||_0x1888a2[_0x201d24(0x179)]();}['_handleOnline'](){const _0x4d1357=_0x273424;this[_0x4d1357(0x1af)]['next'](_0x4d1357(0x248)),this[_0x4d1357(0x245)]();}};_0x5676f0=_0x5e495f([_0x5a79e4(0x2,_0x2783b2[_0x273424(0x1d5)]),_0x5a79e4(0x3,(0x0,_0x2783b2[_0x273424(0x182)])(_0x46bf5a)),_0x5a79e4(0x4,_0x2783b2[_0x273424(0x1b9)])],_0x5676f0);function _0x3524e4({ref:_0x2c434a,..._0x148e3a}){const _0x2387ac=_0x273424;let {icon:_0x1d9570,id:_0xe2f939,className:_0x152532,extend:_0x5caad1,..._0x102baf}=_0x148e3a,_0x53b513=(_0x2387ac(0x164)+_0xe2f939+'\x20'+(_0x152532||''))[_0x2387ac(0x20e)](),_0x4c606a=(0x0,_0x28435e[_0x2387ac(0x1b5)])('_'+_0x22b3c5());return _0x6f7f1d(_0x1d9570,''+_0xe2f939,{'defIds':_0x1d9570[_0x2387ac(0x23e)],'idSuffix':_0x4c606a[_0x2387ac(0x23f)]},{'ref':_0x2c434a,'className':_0x53b513,..._0x102baf},_0x5caad1);}function _0x6f7f1d(_0x4f8c8a,_0x1b17fb,_0x2fc0fe,_0x18d145,_0x44a0a9){const _0x2b4411=_0x273424;return(0x0,_0x28435e[_0x2b4411(0x19c)])(_0x4f8c8a[_0x2b4411(0x17b)],{'key':_0x1b17fb,..._0x38cfc5(_0x4f8c8a,_0x2fc0fe,_0x44a0a9),..._0x18d145},(_0x3dca53(_0x4f8c8a,_0x2fc0fe)['children']||[])[_0x2b4411(0x178)]((_0x43c2c2,_0x506ef0)=>_0x6f7f1d(_0x43c2c2,_0x1b17fb+'-'+_0x4f8c8a[_0x2b4411(0x17b)]+'-'+_0x506ef0,_0x2fc0fe,void 0x0,_0x44a0a9)));}function _0x38cfc5(_0x522e55,_0x4050bd,_0x1db93f){const _0x5c0465=_0x273424;let _0x31e272={..._0x522e55[_0x5c0465(0x1c1)]};_0x1db93f!=null&&_0x1db93f[_0x5c0465(0x1bb)]&&_0x31e272[_0x5c0465(0x20f)]==='colorChannel1'&&(_0x31e272[_0x5c0465(0x20f)]=_0x1db93f[_0x5c0465(0x1bb)]),_0x1db93f!=null&&_0x1db93f[_0x5c0465(0x1bb)]&&_0x31e272['stroke']===_0x5c0465(0x1bb)&&(_0x31e272[_0x5c0465(0x204)]=_0x1db93f[_0x5c0465(0x1bb)]),_0x522e55[_0x5c0465(0x17b)]==='mask'&&_0x31e272['id']&&(_0x31e272['id']+=_0x4050bd[_0x5c0465(0x184)]),Object['entries'](_0x31e272)[_0x5c0465(0x223)](([_0x462403,_0x1e040b])=>{const _0x16323a=_0x5c0465;_0x462403===_0x16323a(0x1e2)&&typeof _0x1e040b==_0x16323a(0x20b)&&(_0x31e272[_0x462403]=_0x1e040b[_0x16323a(0x208)](/url\(#(.*)\)/,_0x16323a(0x1fa)+_0x4050bd[_0x16323a(0x184)]+')'));});let {defIds:_0x4d6aef}=_0x4050bd;return!_0x4d6aef||_0x4d6aef['length']===0x0?_0x31e272:(_0x522e55[_0x5c0465(0x17b)]===_0x5c0465(0x1ca)&&_0x31e272['xlink:href']&&(_0x31e272['xlink:href']+=_0x4050bd['idSuffix']),Object[_0x5c0465(0x188)](_0x31e272)[_0x5c0465(0x223)](([_0xa4fe4b,_0x542e72])=>{const _0x440ffe=_0x5c0465;typeof _0x542e72==_0x440ffe(0x20b)&&(_0x31e272[_0xa4fe4b]=_0x542e72['replace'](/url\(#(.*)\)/,'url(#$1'+_0x4050bd[_0x440ffe(0x184)]+')'));}),_0x31e272);}function _0x3dca53(_0x16b57f,_0x53418f){const _0x36fd9d=_0x273424;var _0x2aa843;let {defIds:_0x11e931}=_0x53418f;return!_0x11e931||_0x11e931[_0x36fd9d(0x171)]===0x0?_0x16b57f:_0x16b57f[_0x36fd9d(0x17b)]===_0x36fd9d(0x216)&&(_0x2aa843=_0x16b57f[_0x36fd9d(0x21b)])!=null&&_0x2aa843[_0x36fd9d(0x171)]?{..._0x16b57f,'children':_0x16b57f[_0x36fd9d(0x21b)][_0x36fd9d(0x178)](_0x37593b=>typeof _0x37593b[_0x36fd9d(0x1c1)]['id']==_0x36fd9d(0x20b)&&_0x11e931&&_0x11e931['includes'](_0x37593b[_0x36fd9d(0x1c1)]['id'])?{..._0x37593b,'attrs':{..._0x37593b[_0x36fd9d(0x1c1)],'id':_0x37593b[_0x36fd9d(0x1c1)]['id']+_0x53418f[_0x36fd9d(0x184)]}}:_0x37593b)}:_0x16b57f;}function _0x22b3c5(){const _0x4d0e24=_0x273424;return Math[_0x4d0e24(0x197)]()[_0x4d0e24(0x1c7)](0x24)[_0x4d0e24(0x17c)](0x2,0x8);}_0x3524e4[_0x273424(0x18d)]=_0x273424(0x180);let _0x1c5187={'tag':_0x273424(0x1d8),'attrs':{'xmlns':_0x273424(0x1d4),'fill':_0x273424(0x1cc),'viewBox':_0x273424(0x1b6),'width':_0x273424(0x16b),'height':_0x273424(0x16b)},'children':[{'tag':_0x273424(0x1bf),'attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x273424(0x1bf),'attrs':{'fill':_0x273424(0x1de),'d':_0x273424(0x1ab),'fillRule':_0x273424(0x21e),'clipRule':'evenodd'}}]},_0x52df06=(0x0,_0x28435e[_0x273424(0x1bc)])(function(_0x1ca9bd,_0x14d00f){const _0x5b4a65=_0x273424;return(0x0,_0x28435e[_0x5b4a65(0x19c)])(_0x3524e4,Object['assign']({},_0x1ca9bd,{'id':'live-share-icon','ref':_0x14d00f,'icon':_0x1c5187}));});_0x52df06[_0x273424(0x18d)]=_0x273424(0x1d1);function _0x311b0f(){const _0x396b4c=_0x273424;let _0x862bea=(0x0,_0x59ae43[_0x396b4c(0x202)])(_0x403428),_0x392047=(0x0,_0x59ae43['useDependency'])(_0x2783b2[_0x396b4c(0x1e7)]),_0xab3042=(0x0,_0x59ae43['useObservable'])(()=>_0x392047[_0x396b4c(0x1d2)](_0x2783b2[_0x396b4c(0x16d)][_0x396b4c(0x215)]),void 0x0,!0x1,[]),[_0x4c4eb3,_0x194711]=(0x0,_0x28435e[_0x396b4c(0x1f6)])(null),[_0x4f042b,_0x22eb9e]=(0x0,_0x28435e[_0x396b4c(0x1f6)])(_0x396b4c(0x248)),_0x49fe41=(0x0,_0x28435e[_0x396b4c(0x1b5)])(null);return(0x0,_0x28435e[_0x396b4c(0x1bd)])(()=>(_0xab3042&&_0x862bea[_0x396b4c(0x161)](_0xab3042[_0x396b4c(0x1fb)]())[_0x396b4c(0x20a)](_0x284273=>{const _0x35418f=_0x396b4c;_0x194711(_0x284273),_0x49fe41[_0x35418f(0x23f)]=_0x284273['status$']['subscribe'](_0x115f23=>{_0x22eb9e(_0x115f23);});}),()=>{const _0x2efb92=_0x396b4c;var _0x516bba;(_0x516bba=_0x49fe41['current'])==null||_0x516bba[_0x2efb92(0x1ce)](),_0x49fe41[_0x2efb92(0x23f)]=null;}),[_0xab3042,_0x862bea]),_0x4c4eb3?(0x0,_0x1fcf35[_0x396b4c(0x176)])(_0x5342f5[_0x396b4c(0x196)],{'align':_0x396b4c(0x201),'disabled':_0x4f042b===_0x396b4c(0x192),'className':_0x396b4c(0x21a),'overlay':(0x0,_0x1fcf35[_0x396b4c(0x176)])(_0x106f66,{'status':_0x4f042b,'coordinator':_0x4c4eb3}),'children':(0x0,_0x1fcf35[_0x396b4c(0x176)])(_0x396b4c(0x15a),{'className':(0x0,_0x5342f5[_0x396b4c(0x1f7)])(_0x396b4c(0x177),{'univer-cursor-not-allowed':_0x4f042b===_0x396b4c(0x192),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4f042b!==_0x396b4c(0x192)}),'type':_0x396b4c(0x15a),'children':(0x0,_0x1fcf35[_0x396b4c(0x176)])(_0x52df06,{})})}):null;}function _0x106f66(_0xc74eb){const _0x49193d=_0x273424;let {status:_0x2aae41,coordinator:_0x32962f}=_0xc74eb;switch(_0x2aae41){case'idle':return(0x0,_0x1fcf35[_0x49193d(0x176)])(_0x286de5,{'coordinator':_0x32962f});case _0x49193d(0x24b):return(0x0,_0x1fcf35[_0x49193d(0x176)])(_0x29942c,{'coordinator':_0x32962f});case _0x49193d(0x1a5):return(0x0,_0x1fcf35[_0x49193d(0x176)])(_0x407838,{'coordinator':_0x32962f});case _0x49193d(0x192):return(0x0,_0x1fcf35['jsx'])(_0x39ad7c,{});case _0x49193d(0x22d):return(0x0,_0x1fcf35[_0x49193d(0x176)])(_0x5c210c,{'coordinator':_0x32962f});default:return null;}}function _0x286de5(_0x4b02d8){const _0x3b1348=_0x273424;let {coordinator:_0x3b6f2f}=_0x4b02d8;return(0x0,_0x1fcf35['jsxs'])(_0x1fcf35[_0x3b1348(0x1ae)],{'children':[(0x0,_0x1fcf35[_0x3b1348(0x176)])(_0x3b1348(0x1ef),{'className':_0x3b1348(0x173),'children':_0x3b1348(0x1ea)}),(0x0,_0x1fcf35[_0x3b1348(0x176)])(_0x5342f5['Button'],{'onClick':()=>_0x3b6f2f[_0x3b1348(0x1fc)](),'children':'Start'})]});}function _0x29942c(_0x2ba8da){const _0x498244=_0x273424;let {coordinator:_0x1ec19c}=_0x2ba8da;return(0x0,_0x1fcf35[_0x498244(0x16e)])(_0x1fcf35[_0x498244(0x1ae)],{'children':[(0x0,_0x1fcf35[_0x498244(0x176)])(_0x498244(0x1ef),{'className':_0x498244(0x173),'children':'You\x27re\x20following\x20the\x20presenter'}),(0x0,_0x1fcf35['jsx'])(_0x5342f5[_0x498244(0x219)],{'onClick':()=>_0x1ec19c[_0x498244(0x190)](),'children':_0x498244(0x1c3)})]});}function _0x407838(_0x5c0d57){const _0x41c793=_0x273424;let {coordinator:_0x5beb48}=_0x5c0d57;return(0x0,_0x1fcf35['jsxs'])(_0x1fcf35[_0x41c793(0x1ae)],{'children':[(0x0,_0x1fcf35[_0x41c793(0x176)])(_0x41c793(0x1ef),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x41c793(0x1e6)}),(0x0,_0x1fcf35[_0x41c793(0x176)])(_0x5342f5[_0x41c793(0x219)],{'variant':_0x41c793(0x1d9),'onClick':()=>_0x5beb48[_0x41c793(0x1a4)](),'children':_0x41c793(0x1be)})]});}function _0x5c210c(_0x43ab50){const _0x4efef9=_0x273424;let {coordinator:_0x260281}=_0x43ab50;return(0x0,_0x1fcf35[_0x4efef9(0x16e)])(_0x1fcf35[_0x4efef9(0x1ae)],{'children':[(0x0,_0x1fcf35[_0x4efef9(0x176)])('div',{'className':_0x4efef9(0x173),'children':'You\x27re\x20presenting\x20the\x20document'}),(0x0,_0x1fcf35[_0x4efef9(0x176)])(_0x5342f5['Button'],{'variant':_0x4efef9(0x17d),'onClick':()=>_0x260281[_0x4efef9(0x1ed)](),'children':'Stop\x20presenting'})]});}function _0x39ad7c(){const _0x4bdbc3=_0x273424;return(0x0,_0x1fcf35[_0x4bdbc3(0x176)])(_0x1fcf35[_0x4bdbc3(0x1ae)],{'children':_0x4bdbc3(0x1b8)});}let _0x1107e1=class extends _0x2783b2['Disposable']{constructor(_0x1b7eae,_0x5a2640){const _0x4370f9=_0x273424;super(),this[_0x4370f9(0x1a3)]=_0x1b7eae,this[_0x4370f9(0x186)]=_0x5a2640,this['_mountLiveShare']();}[_0x273424(0x1fe)](){const _0x4339a6=_0x273424;this[_0x4339a6(0x217)](this[_0x4339a6(0x186)]['registerComponent'](_0x59ae43['BuiltInUIPart']['HEADER_MENU'],()=>(0x0,_0x59ae43[_0x4339a6(0x1a7)])(_0x311b0f,this[_0x4339a6(0x1a3)])));}};_0x1107e1=_0x5e495f([_0x5a79e4(0x0,(0x0,_0x2783b2['Inject'])(_0x2783b2['Injector'])),_0x5a79e4(0x1,_0x59ae43[_0x273424(0x185)])],_0x1107e1);var _0x3a2515=_0x273424(0x235),_0x37d115=_0x273424(0x1ba);let _0x3d365b={},_0xc5543f=class extends _0x2783b2[_0x273424(0x1f2)]{constructor(_0x5f2e09){const _0x1fb1ed=_0x273424;super(),this['_liveShareService']=_0x5f2e09,this[_0x1fb1ed(0x209)]();}['_init'](){const _0x5b096e=_0x273424;[_0x149c26[_0x5b096e(0x1c9)]['id'],_0x149c26['SetScrollOperation']['id'],_0x5e4379['SetWorksheetActiveOperation']['id']][_0x5b096e(0x223)](_0x1dfa27=>{const _0x1e504e=_0x5b096e;this['disposeWithMe'](this[_0x1e504e(0x18a)][_0x1e504e(0x231)](_0x1dfa27));});}};_0xc5543f=_0x5e495f([_0x5a79e4(0x0,(0x0,_0x2783b2[_0x273424(0x182)])(_0x46bf5a))],_0xc5543f);let _0x36e118=class extends _0x2783b2[_0x273424(0x22b)]{constructor(_0x367d3c=_0x3d365b,_0x40772b,_0x2fd5ee){const _0x5665b0=_0x273424;super(),this[_0x5665b0(0x249)]=_0x367d3c,this[_0x5665b0(0x1a3)]=_0x40772b,this['_configService']=_0x2fd5ee;let {..._0x1d1dc6}=(0x0,_0x2783b2[_0x5665b0(0x205)])({},_0x3d365b,this[_0x5665b0(0x249)]);this['_configService'][_0x5665b0(0x169)](_0x5665b0(0x211),_0x1d1dc6);}['onStarting'](){const _0x4d26d8=_0x273424;(0x0,_0x2783b2[_0x4d26d8(0x18f)])(this[_0x4d26d8(0x1a3)],(0x0,_0x2783b2[_0x4d26d8(0x1d7)])([[_0x46bf5a],[_0x403428],[_0xc5543f],[_0x1107e1]],this[_0x4d26d8(0x249)]['override'])),(0x0,_0x2783b2[_0x4d26d8(0x1db)])(this[_0x4d26d8(0x1a3)],[[_0xc5543f]]);}[_0x273424(0x18c)](){const _0x2ccdaa=_0x273424;(0x0,_0x2783b2[_0x2ccdaa(0x1db)])(this[_0x2ccdaa(0x1a3)],[[_0x1107e1]]);}};_0xdfb72d(_0x36e118,_0x273424(0x1c2),_0x2783b2[_0x273424(0x16d)]['UNIVER_UNKNOWN']),_0xdfb72d(_0x36e118,_0x273424(0x23d),_0x273424(0x236)),_0xdfb72d(_0x36e118,_0x273424(0x24a),_0x3a2515),_0xdfb72d(_0x36e118,_0x273424(0x21c),_0x37d115),_0x36e118=_0x5e495f([(0x0,_0x2783b2[_0x273424(0x225)])(_0x5a0b21[_0x273424(0x1ff)]),_0x5a79e4(0x1,(0x0,_0x2783b2[_0x273424(0x182)])(_0x2783b2[_0x273424(0x172)])),_0x5a79e4(0x2,_0x2783b2['IConfigService'])],_0x36e118),Object[_0x273424(0x228)](_0x522c9e,_0x273424(0x1e9),{'enumerable':!0x0,'get':function(){return _0x1107e1;}}),_0x522c9e['LiveShare']=_0x311b0f,Object[_0x273424(0x228)](_0x522c9e,'LiveShareController',{'enumerable':!0x0,'get':function(){return _0x403428;}}),Object[_0x273424(0x228)](_0x522c9e,'LiveShareCoordinator',{'enumerable':!0x0,'get':function(){return _0x5676f0;}}),_0x522c9e[_0x273424(0x240)]=_0x46bf5a,_0x522c9e[_0x273424(0x175)]=_0x26310f,Object[_0x273424(0x228)](_0x522c9e,_0x273424(0x242),{'enumerable':!0x0,'get':function(){return _0x36e118;}});}));function _0x3522(_0xaa3579,_0xb9fdc){_0xaa3579=_0xaa3579-0x15a;const _0x3b8f3a=_0x3b8f();let _0x3522e6=_0x3b8f3a[_0xaa3579];return _0x3522e6;}function _0x3b8f(){const _0xd5f17c=['LiveShareStatus','jsx','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','map','dispose','send','tag','substring','default','react/jsx-runtime','getInitialStates','UniverIcon','@univerjs-pro/collaboration','Inject','subscribe','idSuffix','IUIPartsService','_uiPartsService','sheet','entries','LIVESHARE_REQUEST_HOST','_liveShareService','_collabSession','onRendered','displayName','_sharedOperations','registerDependencies','stopFollowing','set','offline','_handleTerminate','call','RxDisposable','Dropdown','random','_beIdle','IDLE','2272872ZvRerR','3065GgELXd','createElement','_handleOperation','_handleNewChangeSets','toDisposable','OPERATION','_entities','LIVESHARE_TERMINATE','_injector','startFollowing','not-following','UniverUi','connectInjector','unitId','object','1213452nWkyDw','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','clear','CommandType','Fragment','_status$','_startFollowing','getOwnPropertyDescriptor','executeCommand','_configService','function','useRef','0\x200\x2017\x2017','stringify','You\x27are\x20offline.','ICommandService','1.0.0-alpha.1','colorChannel1','forwardRef','useEffect','Start\x20following','path','React','attrs','type','Stop\x20following','UniverDesign','622699KtyZXk','shouldShareOperation','toString','OFFLINE','SetZoomRatioOperation','use','@univerjs/sheets-ui','none','decorate','unsubscribe','SetWorksheetActiveOperation','Module','LiveShareIcon','getCurrentTypeOfUnit$','takeUntil','http://www.w3.org/2000/svg','IConfigService','subject','mergeOverrideWithDependencies','svg','text','UniverSheetsUi','touchDependencies','442977rhqcGt','LIVESHARE_OPERATION','currentColor','_handleOnline','860oGzjyB','180fRMqvC','mask','_startLiveShareCoordinator','_reporters','_univerInstanceService','You\x27re\x20not\x20following\x20the\x20presenter','IUniverInstanceService','_status','DesktopLiveShareController','Present\x20this\x20document','UniverCore','toPrimitive','stopPresenting','_commandService','div','@univerjs/sheets','presenter','Disposable','LIVESHARE_NEW_HOST','BehaviorSubject','getMemberID','useState','clsx','_unitID','LIVESHARE_FETCH_OPERATIONS','url(#$1','getUnitId','tryStartPresenting','64408wrVjFm','_mountLiveShare','UniverCollaborationClientPlugin','@univerjs/design','end','useDependency','NEW_CHANGESETS','stroke','merge','CollaborationEvent','UniverSheets','replace','_init','then','string','params','getTypeOfUnitDisposed$','trim','fill','ONLINE','live-share.config','includes','getTypeOfUnitAdded$','UniverProCollaborationClient','UNIVER_SHEET','defs','disposeWithMe','parse','Button','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','children','version','dispose$','evenodd','getStatus','@univerjs/core','symbol','_startPresenting','forEach','registerInitialStateReporter','DependentOn','has','getConfig','defineProperty','_stopFollowing','UniverProLiveShare','Plugin','@univerjs/ui','presenting','_collabSessionService','SessionStatus','PRESENTING','registerSharedOperation','throttleTime','next','constructor','@univerjs-pro/live-share','UNIVER_LIVE_SHARE_PLUGIN','UniverProCollaboration','from','event$','_presenter','_handleOffline','_handleNewHost','pluginName','defIds','current','LiveShareService','get','UniverLiveSharePlugin','react','operations','_fetchOperations','onCommandExecuted','16022180ExxjrY','idle','_config','packageName','following','2ZUVkIb','toStringTag','data','button','find','_commandDisposable','rxjs','unit','init','asObservable','getLiveShareCoordinator','values','CollaborationSessionService','univerjs-icon\x20univerjs-icon-','sessionStatus$','reverse','pipe','add','setConfig','prototype','1em','DisposableCollection','UniverInstanceType','jsxs','@univerjs-pro/collaboration-client','InsertSheetMutation','length','Injector','univer-mb-3\x20univer-w-full\x20univer-text-sm','_stopPresenting'];_0x3b8f=function(){return _0xd5f17c;};return _0x3b8f();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-alpha.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Live share collaboration plugin for Univer Pro.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -62,24 +62,24 @@
|
|
|
62
62
|
"rxjs": ">=7.0.0"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@univerjs/icons": "1.
|
|
66
|
-
"@univerjs-pro/collaboration": "0.
|
|
67
|
-
"@univerjs-pro/collaboration
|
|
68
|
-
"@univerjs/
|
|
69
|
-
"@univerjs/
|
|
70
|
-
"@univerjs/sheets": "0.
|
|
71
|
-
"@univerjs/
|
|
72
|
-
"@univerjs/
|
|
65
|
+
"@univerjs/icons": "1.14.0",
|
|
66
|
+
"@univerjs-pro/collaboration-client": "1.0.0-alpha.1",
|
|
67
|
+
"@univerjs-pro/collaboration": "1.0.0-alpha.1",
|
|
68
|
+
"@univerjs/core": "1.0.0-alpha.1",
|
|
69
|
+
"@univerjs/design": "1.0.0-alpha.1",
|
|
70
|
+
"@univerjs/sheets-ui": "1.0.0-alpha.1",
|
|
71
|
+
"@univerjs/ui": "1.0.0-alpha.1",
|
|
72
|
+
"@univerjs/sheets": "1.0.0-alpha.1"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"postcss": "^8.5.
|
|
75
|
+
"postcss": "^8.5.15",
|
|
76
76
|
"react": "18.3.1",
|
|
77
77
|
"rxjs": "7.8.2",
|
|
78
|
-
"tailwindcss": "
|
|
78
|
+
"tailwindcss": "3.4.17",
|
|
79
79
|
"typescript": "^6.0.3",
|
|
80
|
-
"vitest": "^4.1.
|
|
81
|
-
"@univerjs/
|
|
82
|
-
"@univerjs
|
|
80
|
+
"vitest": "^4.1.9",
|
|
81
|
+
"@univerjs-infra/shared": "1.0.0-alpha.1",
|
|
82
|
+
"@univerjs/protocol": "1.0.0-alpha.1"
|
|
83
83
|
},
|
|
84
84
|
"scripts": {
|
|
85
85
|
"test": "vitest run",
|
|
File without changes
|
/package/lib/types/controllers/live-share/{live-share-ui.controller.d.ts → ui.controller.d.ts}
RENAMED
|
File without changes
|