@univerjs-pro/edit-history-loader 0.15.0-insiders.20251227-dafc157 → 0.15.0-insiders.20251227-c108ce3
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/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +37 -37
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function _0x282d(_0xfbf0e7,_0x321814){_0xfbf0e7=_0xfbf0e7-0x86;const _0x1bd4db=_0x1bd4();let _0x282d68=_0x1bd4db[_0xfbf0e7];return _0x282d68;}const _0x352eee=_0x282d;(function(_0x5873d5,_0x2bf007){const _0x26dd49=_0x282d,_0x236557=_0x5873d5();while(!![]){try{const _0x2dee81=parseInt(_0x26dd49(0xc0))/0x1*(-parseInt(_0x26dd49(0xc6))/0x2)+-parseInt(_0x26dd49(0x16a))/0x3+-parseInt(_0x26dd49(0x16d))/0x4*(parseInt(_0x26dd49(0x15b))/0x5)+-parseInt(_0x26dd49(0x158))/0x6+-parseInt(_0x26dd49(0x11a))/0x7+-parseInt(_0x26dd49(0x136))/0x8*(-parseInt(_0x26dd49(0xcb))/0x9)+parseInt(_0x26dd49(0x91))/0xa;if(_0x2dee81===_0x2bf007)break;else _0x236557['push'](_0x236557['shift']());}catch(_0x2851e3){_0x236557['push'](_0x236557['shift']());}}}(_0x1bd4,0x96bb0));var A=Object[_0x352eee(0x140)],F=(_0x3d918d,_0x5ad21e,_0x3955a5)=>_0x5ad21e in _0x3d918d?A(_0x3d918d,_0x5ad21e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3955a5}):_0x3d918d[_0x5ad21e]=_0x3955a5,_=(_0x58795a,_0x3e6dd3,_0x5b899e)=>F(_0x58795a,typeof _0x3e6dd3!=_0x352eee(0xc2)?_0x3e6dd3+'':_0x3e6dd3,_0x5b899e);Object[_0x352eee(0x140)](exports,Symbol[_0x352eee(0xa1)],{'value':_0x352eee(0xa4)});const o=require('@univerjs/core'),C=require('@univerjs-pro/collaboration'),p=require('@univerjs-pro/collaboration-client'),P=require('@univerjs/design'),U=require('react'),h=require('@univerjs/ui'),O=require('rxjs'),d=require('@univerjs/sheets'),m=require('@univerjs-pro/edit-history-viewer'),L=require('@univerjs-pro/license'),V=require('@univerjs-pro/sheets-chart'),G=require('@univerjs-pro/sheets-chart-ui'),Y=require('@univerjs-pro/sheets-pivot'),K=require('@univerjs-pro/sheets-sparkline'),W=require('@univerjs-pro/sheets-sparkline-ui'),B=require('@univerjs/data-validation'),z=require('@univerjs/docs'),Z=require('@univerjs/docs-ui'),N=require('@univerjs/drawing'),J=require('@univerjs/drawing-ui'),Q=require('@univerjs/engine-formula'),X=require('@univerjs/engine-render'),ee=require('@univerjs/network'),R=require('@univerjs/rpc'),ie=require('@univerjs/sheets-conditional-formatting'),te=require('@univerjs/sheets-conditional-formatting-ui'),re=require('@univerjs/sheets-data-validation'),ne=require('@univerjs/sheets-data-validation-ui'),se=require('@univerjs/sheets-drawing'),oe=require('@univerjs/sheets-drawing-ui'),ae=require('@univerjs/sheets-filter'),ce=require('@univerjs/sheets-filter-ui'),le=require('@univerjs/sheets-formula'),ue=require('@univerjs/sheets-formula-ui'),he=require('@univerjs/sheets-hyper-link'),ge=require('@univerjs/sheets-hyper-link-ui'),ve=require('@univerjs/sheets-numfmt'),k=require('@univerjs/sheets-ui'),b='edit-history-loader.config',T={};function D({ref:_0x261d08,..._0x51cbe1}){const _0x4b9e08=_0x352eee,{icon:_0x429139,id:_0x221c47,className:_0x38e5cf,extend:_0x427d4a,..._0x2849e4}=_0x51cbe1,_0x47571b=(_0x4b9e08(0xd1)+_0x221c47+'\x20'+(_0x38e5cf||''))[_0x4b9e08(0x12a)](),_0x25079f=U[_0x4b9e08(0x153)]('_'+Se());return q(_0x429139,''+_0x221c47,{'defIds':_0x429139[_0x4b9e08(0x171)],'idSuffix':_0x25079f[_0x4b9e08(0x131)]},{'ref':_0x261d08,'className':_0x47571b,..._0x2849e4},_0x427d4a);}function q(_0x34210f,_0x4bfa73,_0x3d2881,_0x1b450a,_0x1eddc8){const _0x56ec44=_0x352eee;return U[_0x56ec44(0x112)](_0x34210f['tag'],{'key':_0x4bfa73,...de(_0x34210f,_0x3d2881,_0x1eddc8),..._0x1b450a},(_e(_0x34210f,_0x3d2881)[_0x56ec44(0xc4)]||[])['map']((_0x4b0c16,_0x2c299a)=>q(_0x4b0c16,_0x4bfa73+'-'+_0x34210f[_0x56ec44(0x163)]+'-'+_0x2c299a,_0x3d2881,void 0x0,_0x1eddc8)));}function de(_0x1fef70,_0x35b987,_0x4dd0c2){const _0x1fd214=_0x352eee,_0x2f03d4={..._0x1fef70['attrs']};_0x4dd0c2!=null&&_0x4dd0c2[_0x1fd214(0x8f)]&&_0x2f03d4[_0x1fd214(0x87)]===_0x1fd214(0x8f)&&(_0x2f03d4['fill']=_0x4dd0c2[_0x1fd214(0x8f)]),_0x1fef70[_0x1fd214(0x163)]===_0x1fd214(0xea)&&_0x2f03d4['id']&&(_0x2f03d4['id']=_0x2f03d4['id']+_0x35b987[_0x1fd214(0xa6)]),Object[_0x1fd214(0xa0)](_0x2f03d4)[_0x1fd214(0xfa)](([_0x5f096e,_0xa74810])=>{const _0x29b225=_0x1fd214;_0x5f096e===_0x29b225(0xea)&&typeof _0xa74810==_0x29b225(0x159)&&(_0x2f03d4[_0x5f096e]=_0xa74810[_0x29b225(0x157)](/url\(#(.*)\)/,'url(#$1'+_0x35b987[_0x29b225(0xa6)]+')'));});const {defIds:_0x4ce9dc}=_0x35b987;return!_0x4ce9dc||_0x4ce9dc['length']===0x0||(_0x1fef70[_0x1fd214(0x163)]===_0x1fd214(0xa2)&&_0x2f03d4[_0x1fd214(0x167)]&&(_0x2f03d4[_0x1fd214(0x167)]=_0x2f03d4[_0x1fd214(0x167)]+_0x35b987[_0x1fd214(0xa6)]),Object[_0x1fd214(0xa0)](_0x2f03d4)[_0x1fd214(0xfa)](([_0x2d6d7c,_0x1a75a6])=>{const _0x137be7=_0x1fd214;typeof _0x1a75a6=='string'&&(_0x2f03d4[_0x2d6d7c]=_0x1a75a6[_0x137be7(0x157)](/url\(#(.*)\)/,_0x137be7(0xce)+_0x35b987[_0x137be7(0xa6)]+')'));})),_0x2f03d4;}function _e(_0x21eb93,_0x1a7751){const _0x6e5517=_0x352eee;var _0x2c7d8a;const {defIds:_0x5da1c9}=_0x1a7751;return!_0x5da1c9||_0x5da1c9[_0x6e5517(0x124)]===0x0?_0x21eb93:_0x21eb93[_0x6e5517(0x163)]===_0x6e5517(0x89)&&((_0x2c7d8a=_0x21eb93[_0x6e5517(0xc4)])!=null&&_0x2c7d8a[_0x6e5517(0x124)])?{..._0x21eb93,'children':_0x21eb93[_0x6e5517(0xc4)]['map'](_0x6c6798=>typeof _0x6c6798['attrs']['id']==_0x6e5517(0x159)&&_0x5da1c9&&_0x5da1c9[_0x6e5517(0x150)](_0x6c6798[_0x6e5517(0xb4)]['id'])?{..._0x6c6798,'attrs':{..._0x6c6798[_0x6e5517(0xb4)],'id':_0x6c6798['attrs']['id']+_0x1a7751[_0x6e5517(0xa6)]}}:_0x6c6798)}:_0x21eb93;}function Se(){const _0x5b5e7e=_0x352eee;return Math[_0x5b5e7e(0x107)]()[_0x5b5e7e(0x152)](0x24)['substring'](0x2,0x8);}D[_0x352eee(0xc9)]='UniverIcon';const me={'tag':_0x352eee(0x10a),'attrs':{'xmlns':_0x352eee(0x92),'fill':'none','viewBox':'0\x200\x2016\x2016','width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'fill':_0x352eee(0x142),'clipPath':'url(#history-icon_clip0_907_281)'},'children':[{'tag':_0x352eee(0xb9),'attrs':{'d':_0x352eee(0x143)}},{'tag':_0x352eee(0xb9),'attrs':{'d':_0x352eee(0xe9)}}]},{'tag':_0x352eee(0x89),'attrs':{},'children':[{'tag':_0x352eee(0x94),'attrs':{'id':_0x352eee(0x151)},'children':[{'tag':_0x352eee(0xb9),'attrs':{'fill':_0x352eee(0xb2),'d':_0x352eee(0xb0)}}]}]}],'defIds':[_0x352eee(0x151)]},$=U[_0x352eee(0x138)](function(_0xf65577,_0x2e9670){const _0x5f2016=_0x352eee;return U['createElement'](D,Object['assign']({},_0xf65577,{'id':_0x5f2016(0x170),'ref':_0x2e9670,'icon':me}));});$[_0x352eee(0xc9)]='HistoryIcon';var ye=Object[_0x352eee(0x16b)],pe=(_0xc7781f,_0x4ba34a,_0x385b85,_0x29e10b)=>{for(var _0x2c1cfa=_0x29e10b>0x1?void 0x0:_0x29e10b?ye(_0x4ba34a,_0x385b85):_0x4ba34a,_0x38b019=_0xc7781f['length']-0x1,_0x1e8867;_0x38b019>=0x0;_0x38b019--)(_0x1e8867=_0xc7781f[_0x38b019])&&(_0x2c1cfa=_0x1e8867(_0x2c1cfa)||_0x2c1cfa);return _0x2c1cfa;},g=(_0x11f919,_0x545141)=>(_0x595cae,_0x3fef9d)=>_0x545141(_0x595cae,_0x3fef9d,_0x11f919);const fe=_0x352eee(0xcf),H=_0x352eee(0x12c),y='univer-history-container';exports[_0x352eee(0xe0)]=class extends o[_0x352eee(0x12b)]{constructor(_0x4420e1,_0x4ef880,_0x320df0,_0x12fb71,_0x1e6a65,_0x6e5a62,_0x358474,_0x570abc,_0xdec5e1,_0x31904e){const _0x318e3b=_0x352eee;super(),_(this,_0x318e3b(0xb1),new O[(_0x318e3b(0x134))](null)),_(this,_0x318e3b(0x15f),this[_0x318e3b(0xb1)][_0x318e3b(0xc1)]()),_(this,'_disposableCollection',new o[(_0x318e3b(0xc3))]()),_(this,'_pluginMap',new Map()),(this[_0x318e3b(0xda)]=_0x4420e1,this[_0x318e3b(0x10e)]=_0x4ef880,this[_0x318e3b(0x9a)]=_0x320df0,this['_commandService']=_0x12fb71,this[_0x318e3b(0xbb)]=_0x1e6a65,this[_0x318e3b(0xfe)]=_0x6e5a62,this[_0x318e3b(0x10d)]=_0x358474,this[_0x318e3b(0xb6)]=_0x570abc,this[_0x318e3b(0xf2)]=_0xdec5e1,this['_themeService']=_0x31904e,this[_0x318e3b(0xba)]());}get['historyUniver'](){const _0x15b0af=_0x352eee;return this[_0x15b0af(0xb1)]['value'];}[_0x352eee(0xba)](){const _0x2fd93a=_0x352eee;this[_0x2fd93a(0x10f)](),this[_0x2fd93a(0xbc)]();}[_0x352eee(0x10f)](){const _0x24211f=_0x352eee;var _0x3361a5;const _0x6ddbb7=(_0x3361a5=this[_0x24211f(0x9a)][_0x24211f(0xd5)](H))!=null?_0x3361a5:fe,_0x851005=document[_0x24211f(0xbe)](_0x6ddbb7);if(!_0x851005)return;const _0x3c656d=document[_0x24211f(0x112)]('div');_0x3c656d['id']=y,_0x3c656d[_0x24211f(0x13f)][_0x24211f(0xde)]=_0x24211f(0x14c),_0x3c656d[_0x24211f(0x110)]['position']=_0x24211f(0x125),_0x3c656d['style'][_0x24211f(0x113)]='0',_0x3c656d[_0x24211f(0x110)]['left']='0',_0x3c656d['style'][_0x24211f(0xf1)]=_0x24211f(0x90),_0x3c656d[_0x24211f(0x110)]['height']='100%',_0x3c656d['style'][_0x24211f(0x12e)]=_0x24211f(0xcc),_0x3c656d['style'][_0x24211f(0xdd)]=_0x24211f(0xb5),_0x851005[_0x24211f(0xf8)](_0x3c656d);}[_0x352eee(0xbc)](){const _0x2ea5e3=_0x352eee;var _0x324107,_0x1b58dd,_0x2d182d,_0x49466b;[[X[_0x2ea5e3(0x9d)]],[h[_0x2ea5e3(0xe1)],{'container':y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[h['IDialogService'],null]]}],[ee[_0x2ea5e3(0x14e)]],[N['UniverDrawingPlugin'],{'override':[[N[_0x2ea5e3(0x16c)],null]]}],[z[_0x2ea5e3(0x121)],{'hasScroll':!0x1}],[Z['UniverDocsUIPlugin']],[ve[_0x2ea5e3(0x109)]],[d[_0x2ea5e3(0x129)],{'notExecuteFormula':!0x0}],[k[_0x2ea5e3(0xd7)]],[le[_0x2ea5e3(0xc8)]],[ue[_0x2ea5e3(0xac)]],[C[_0x2ea5e3(0xb8)]],[ae['UniverSheetsFilterPlugin']],[ce[_0x2ea5e3(0x105)]],[ie[_0x2ea5e3(0xf4)]],[te[_0x2ea5e3(0x14d)]],[he[_0x2ea5e3(0x8a)]],[ge['UniverSheetsHyperLinkUIPlugin']],[B[_0x2ea5e3(0x11f)]],[re['UniverSheetsDataValidationPlugin']],[ne['UniverSheetsDataValidationUIPlugin']],[Q[_0x2ea5e3(0xb7)],{'notExecuteFormula':!0x0}],[R[_0x2ea5e3(0xdc)],{'workerURL':(_0x1b58dd=(_0x324107=this[_0x2ea5e3(0x9a)]['getConfig'](R[_0x2ea5e3(0x161)]))==null?void 0x0:_0x324107[_0x2ea5e3(0x95)])!=null?_0x1b58dd:_0x2ea5e3(0x130)}],[J[_0x2ea5e3(0x145)]],[se[_0x2ea5e3(0x141)]],[oe['UniverSheetsDrawingUIPlugin']],[K[_0x2ea5e3(0x12d)]],[W[_0x2ea5e3(0x165)]],[V[_0x2ea5e3(0xa7)]],[G[_0x2ea5e3(0xf0)]],[Y[_0x2ea5e3(0x148)],{'notExecuteFormula':!0x0}],[m['UniverEditHistoryViewerPlugin'],{'historyListServerUrl':(_0x2d182d=this[_0x2ea5e3(0x9a)][_0x2ea5e3(0xd5)](b))==null?void 0x0:_0x2d182d[_0x2ea5e3(0x11b)],'historyPanelComponentKey':(_0x49466b=this[_0x2ea5e3(0x9a)]['getConfig'](b))==null?void 0x0:_0x49466b['historyPanelComponentKey']}]][_0x2ea5e3(0xfa)](([_0xc296b9,_0x55596b])=>this[_0x2ea5e3(0x11e)](_0xc296b9,_0x55596b));}['dispose'](){const _0x413479=_0x352eee;super['dispose'](),this['unMountHistoryContent'](),this[_0x413479(0xff)]['clear']();}[_0x352eee(0x11e)](_0x1c83cf,_0xd79d7d,_0x16fe0e){const _0x512564=_0x352eee;if(this['_pluginMap'][_0x512564(0x11c)](_0x1c83cf['pluginName'])&&!_0x16fe0e)throw new Error(_0x512564(0x139)+_0x1c83cf[_0x512564(0x8e)]+'\x20has\x20been\x20registered.');this[_0x512564(0xff)][_0x512564(0x10b)](_0x1c83cf['pluginName'],[_0x1c83cf,_0xd79d7d]);}['getAllPlugins'](){const _0x59644a=_0x352eee;return Array[_0x59644a(0x119)](this[_0x59644a(0xff)][_0x59644a(0x128)]());}['mountHistoryContent'](_0x13a11e){const _0x47de2a=_0x352eee,_0x12320c=document[_0x47de2a(0xbe)](y);_0x12320c&&(_0x12320c['style'][_0x47de2a(0xdd)]=_0x47de2a(0xd9),this[_0x47de2a(0xaa)](_0x13a11e,y));}[_0x352eee(0xe3)](){const _0x44699e=_0x352eee;var _0x11a4f0;this[_0x44699e(0x173)][_0x44699e(0xd8)](),(_0x11a4f0=this[_0x44699e(0x103)])==null||_0x11a4f0['dispose'](),this['_historyUniver$'][_0x44699e(0xc7)](null);const _0xc696d7=document[_0x44699e(0xbe)](y);_0xc696d7&&(_0xc696d7['style'][_0x44699e(0xdd)]=_0x44699e(0xb5));}['_initUniver'](_0x36d85d,_0x65e093){const _0x17bebd=_0x352eee;if(this[_0x17bebd(0x103)])return;const _0x2cb0e7=new o[(_0x17bebd(0xec))]({'locales':{[this[_0x17bebd(0xda)][_0x17bebd(0x16e)]()]:this[_0x17bebd(0xda)][_0x17bebd(0x8d)]()},'override':[[o[_0x17bebd(0x116)],{'useClass':p[_0x17bebd(0xf6)]}]]}),_0x3bc403=_0x2cb0e7['__getInjector']();this[_0x17bebd(0x14f)](this['_themeService']['darkMode$'][_0x17bebd(0xe2)](_0x59dc22=>{const _0x588df6=_0x17bebd;_0x3bc403['get'](o[_0x588df6(0x146)])[_0x588df6(0x114)](_0x59dc22);})),this[_0x17bebd(0x14f)](this[_0x17bebd(0x156)][_0x17bebd(0xf9)][_0x17bebd(0xe2)](_0x35bf59=>{const _0x51a230=_0x17bebd;_0x3bc403[_0x51a230(0xf3)](o[_0x51a230(0x146)])[_0x51a230(0xf5)](_0x35bf59);})),_0x3bc403['get'](o[_0x17bebd(0x104)])[_0x17bebd(0x164)](this[_0x17bebd(0xda)][_0x17bebd(0x16e)]()),_0x3bc403[_0x17bebd(0xf3)](o['IConfigService'])[_0x17bebd(0x111)](p['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY'],this[_0x17bebd(0x9a)][_0x17bebd(0xd5)](p[_0x17bebd(0xa3)]));const _0x8b7dd9=this[_0x17bebd(0x9a)][_0x17bebd(0xd5)](L[_0x17bebd(0x100)]);_0x8b7dd9&&_0x2cb0e7['registerPlugin'](L[_0x17bebd(0x13c)],{'license':_0x8b7dd9['ls']}),this[_0x17bebd(0xff)][_0x17bebd(0xfa)](([_0x5dc0de,_0x1245ad])=>{_0x2cb0e7['registerPlugin'](_0x5dc0de,_0x1245ad);}),_0x3bc403[_0x17bebd(0x118)](_0x1023ed=>{const _0x2d50c7=_0x17bebd;this[_0x2d50c7(0xfb)](_0x1023ed,_0x36d85d);}),this[_0x17bebd(0xb1)]['next'](_0x2cb0e7);const _0x3af09e=_0x3bc403[_0x17bebd(0xf3)](m[_0x17bebd(0xd6)]),_0x31a231=this[_0x17bebd(0x15e)](_0x36d85d);_0x3af09e[_0x17bebd(0x88)](_0x36d85d,_0x65e093,_0x31a231);}[_0x352eee(0xfb)](_0x4f84b4,_0x31fe35){const _0x42f9c2=_0x352eee,_0x573480=_0x4f84b4['get'](m[_0x42f9c2(0xd6)]);this['_disposableCollection'][_0x42f9c2(0xbf)](_0x573480[_0x42f9c2(0xed)]['subscribe'](_0x3d06e4=>{const _0x3dd494=_0x42f9c2;switch(_0x3d06e4){case m[_0x3dd494(0xa9)][_0x3dd494(0xbd)]:this[_0x3dd494(0xb6)]['closeAll'](),this[_0x3dd494(0xf2)][_0x3dd494(0xa8)]();break;case m[_0x3dd494(0xa9)]['Exited']:this[_0x3dd494(0x115)][_0x3dd494(0x15c)](j['id']),this['unMountHistoryContent']();break;case m[_0x3dd494(0xa9)]['Error']:this[_0x3dd494(0xe3)](),this[_0x3dd494(0xbb)][_0x3dd494(0xcd)]({'content':this[_0x3dd494(0xda)]['t'](_0x3dd494(0xd4)),'type':P[_0x3dd494(0x160)]['Error'],'duration':0xbb8});break;}})),this['_disposableCollection'][_0x42f9c2(0xbf)](_0x573480[_0x42f9c2(0x174)][_0x42f9c2(0xe2)](async _0x510062=>{const _0x286cb2=_0x42f9c2;_0x510062&&this['_commandService'][_0x286cb2(0x15c)](C[_0x286cb2(0x97)]['id'],{'unitId':_0x31fe35,'revision':_0x510062});}));}[_0x352eee(0x15e)](_0x3de3df){const _0x42ab39=_0x352eee,_0x1a7e88=this[_0x42ab39(0x10e)][_0x42ab39(0x8c)](_0x3de3df)[_0x42ab39(0x86)]()[_0x42ab39(0xd2)](_0x1aea32=>_0x1aea32[_0x42ab39(0x11d)]()),_0x4c02f1=new d['WorkbookEditablePermission'](_0x3de3df)['id'],_0x1bac9d=_0x1a7e88[_0x42ab39(0xd2)](_0x873733=>new d[(_0x42ab39(0xb3))](_0x3de3df,_0x873733)['id']),_0x51c55e=_0x1a7e88[_0x42ab39(0xd2)](_0x3e0994=>this[_0x42ab39(0x10d)][_0x42ab39(0x137)](_0x3de3df,_0x3e0994)[_0x42ab39(0xd2)](_0x469258=>new d[(_0x42ab39(0xc5))](_0x3de3df,_0x3e0994,_0x469258[_0x42ab39(0x98)])['id']))[_0x42ab39(0x12f)](),_0x205ecd=new d['WorkbookRecoverHistoryPermission'](_0x3de3df)['id'];return this['_permissionService'][_0x42ab39(0x120)]([_0x4c02f1,..._0x1bac9d,..._0x51c55e,_0x205ecd])[_0x42ab39(0xef)](_0x111ba3=>!!_0x111ba3['value']);}},exports[_0x352eee(0xe0)]=pe([g(0x0,o['Inject'](o[_0x352eee(0x104)])),g(0x1,o[_0x352eee(0xe5)]),g(0x2,o[_0x352eee(0x147)]),g(0x3,o[_0x352eee(0x14a)]),g(0x4,h['IMessageService']),g(0x5,o[_0x352eee(0x133)]),g(0x6,o[_0x352eee(0x9c)](d[_0x352eee(0xca)])),g(0x7,o['Inject'](h[_0x352eee(0xfd)])),g(0x8,o['Inject'](h[_0x352eee(0x149)])),g(0x9,o[_0x352eee(0x9c)](o[_0x352eee(0x146)]))],exports[_0x352eee(0xe0)]);const M={'id':_0x352eee(0xab),'type':o['CommandType']['OPERATION'],'handler':_0x5b49c1=>{const _0x29ae28=_0x352eee,_0x3dc454=_0x5b49c1[_0x29ae28(0xf3)](exports['HistoryLoaderService']),_0x19f109=_0x5b49c1['get'](o['IUniverInstanceService']),{unitId:_0x133e24}=d[_0x29ae28(0xe8)](_0x19f109)||{};return _0x133e24?(_0x3dc454['mountHistoryContent'](_0x133e24),!0x0):!0x1;}},j={'id':'univer.operation.exit-edit-history','type':o[_0x352eee(0x13d)][_0x352eee(0xe4)],'handler':()=>!0x0};function Ce(_0xee448d){const _0x5f44de=_0x352eee;return{'id':M['id'],'type':h[_0x5f44de(0x99)]['BUTTON'],'icon':_0x5f44de(0x15d),'tooltip':'editHistory.panel.title','hidden$':h[_0x5f44de(0x102)](_0xee448d,o[_0x5f44de(0x13a)][_0x5f44de(0x9e)]),'disabled$':k['getCurrentRangeDisable$'](_0xee448d,{'workbookTypes':[d[_0x5f44de(0xa5)],d[_0x5f44de(0x122)]],'worksheetTypes':[],'rangeTypes':[]})};}const Ie={[h['RibbonStartGroup'][_0x352eee(0x126)]]:{[M['id']]:{'order':0.2,'menuItemFactory':Ce}}};function _0x1bd4(){const _0x25abbf=['getUnit','getLocales','pluginName','colorChannel1','100%','22251550IfMWJG','http://www.w3.org/2000/svg','unsubscribe','clipPath','workerURL','reload','RevertRevisionMutation','permissionId','MenuItemType','_configService','UNIVER_UNKNOWN','Inject','UniverRenderEnginePlugin','UNIVER_SHEET','location','entries','toStringTag','use','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','Module','WorkbookEditablePermission','idSuffix','UniverSheetsChartPlugin','close','HistoryModeStatus','_initUniver','univer.operation.toggle-edit-history','UniverSheetsFormulaUIPlugin','IMessageService','Loading','combineLatest','M0\x200H16V16H0z','_historyUniver$','white','WorksheetEditPermission','attrs','none','_dialogService','UniverFormulaEnginePlugin','UniverCollaborationPlugin','path','_init','_messageService','_initPlugins','Entered','getElementById','add','4713DEaGaZ','asObservable','symbol','DisposableCollection','children','RangeProtectionPermissionEditPoint','166qzUHMy','next','UniverSheetsFormulaPlugin','displayName','RangeProtectionRuleModel','369fqqQCC','1000','show','url(#$1','univer-container','Injector','univerjs-icon\x20univerjs-icon-','map','toDisposable','editHistory.panel.listFetchError','getConfig','HistoryManagerService','UniverSheetsUIPlugin','dispose','block','_localeService','_injector','UniverRPCMainThreadPlugin','display','uComp','eventID','HistoryLoaderService','UniverUIPlugin','subscribe','unMountHistoryContent','OPERATION','IUniverInstanceService','registerCommand','_historyManagerService','getSheetCommandTarget','M8.28291\x205.16293C8.28295\x204.83156\x208.01435\x204.5629\x207.68298\x204.56287C7.35161\x204.56283\x207.08295\x204.83143\x207.08291\x205.1628L7.08252\x208.63494C7.0825\x208.79881\x207.1495\x208.95555\x207.26796\x209.06877L9.70073\x2011.3939C9.94029\x2011.6228\x2010.3201\x2011.6142\x2010.549\x2011.3747C10.778\x2011.1351\x2010.7694\x2010.7553\x2010.5298\x2010.5263L8.28255\x208.37852L8.28291\x205.16293Z','mask','UNIVER_HISTORY_CONTAINER_ID','Univer','status$','editHistory.panel.revertFailed','every','UniverSheetsChartUIPlugin','width','_sidebarService','get','UniverSheetsConditionalFormattingPlugin','setTheme','AuthzIoHttpService','IMenuManagerService','appendChild','currentTheme$','forEach','_initListener','ILocalCacheService','IDialogService','_permissionService','_pluginMap','LS_CONFIG_KEY','getCollabEntity','getMenuHiddenObservable','historyUniver','LocaleService','UniverSheetsFilterUIPlugin','_localCacheService','random','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','UniverSheetsNumfmtPlugin','svg','set','CollaborationController','_selectionProtectionRuleModel','_univerInstanceService','_initContainer','style','setConfig','createElement','top','setDarkMode','_commandService','IAuthzIoService','_revertErrorTimer','invoke','from','3435355qeEBug','historyListServerUrl','has','getSheetId','registerPlugin','UniverDataValidationPlugin','composePermission','UniverDocsPlugin','WorkbookViewHistoryPermission','ComponentManager','length','absolute','OTHERS','univerContainerId','values','UniverSheetsPlugin','trim','Disposable','UNIVER_CONTAINER_ID','UniverSheetSparklinePlugin','zIndex','flat','./worker.js','current','onSteady','IPermissionService','BehaviorSubject','_config','55192pebVrQ','getSubunitRuleList','forwardRef','[HistoryLoaderService]:\x20Plugin\x20','UniverInstanceType','merge','UniverLicensePlugin','CommandType','type','dataset','defineProperty','UniverSheetsDrawingPlugin','currentColor','M4.45388\x204.14989H3.52896C4.61144\x202.8939\x206.21319\x202.0999\x207.9999\x202.0999C11.2584\x202.0999\x2013.8999\x204.74142\x2013.8999\x207.9999C13.8999\x2011.2584\x2011.2584\x2013.8999\x207.9999\x2013.8999C4.74142\x2013.8999\x202.0999\x2011.2584\x202.0999\x207.9999C2.0999\x207.66853\x201.83127\x207.3999\x201.4999\x207.3999C1.16853\x207.3999\x200.899902\x207.66853\x200.899902\x207.9999C0.899902\x2011.9211\x204.07868\x2015.0999\x207.9999\x2015.0999C11.9211\x2015.0999\x2015.0999\x2011.9211\x2015.0999\x207.9999C15.0999\x204.07868\x2011.9211\x200.899902\x207.9999\x200.899902C5.88709\x200.899902\x203.9903\x201.82298\x202.69023\x203.28636V2.38625C2.69023\x202.05488\x202.42161\x201.78625\x202.09023\x201.78625C1.75886\x201.78625\x201.49023\x202.05488\x201.49023\x202.38625V4.74989C1.49023\x205.08126\x201.75886\x205.34989\x202.09023\x205.34989H4.45388C4.78525\x205.34989\x205.05388\x205.08126\x205.05388\x204.74989C5.05388\x204.41851\x204.78525\x204.14989\x204.45388\x204.14989Z','RxDisposable','UniverDrawingUIPlugin','ThemeService','IConfigService','UniverSheetsPivotTablePlugin','ISidebarService','ICommandService','_menuManagerService','history-container','UniverSheetsConditionalFormattingUIPlugin','UniverNetworkPlugin','disposeWithMe','includes','history-icon_clip0_907_281','toString','useRef','UniverEditHistoryLoaderPlugin','mutations','_themeService','replace','1304736fvcZxg','string','Error','360405HjWoPL','executeCommand','HistoryIcon','_checkCanRevert','historyUniver$','MessageType','PLUGIN_CONFIG_KEY_MAIN_THREAD','onStarting','tag','setLocale','UniverSheetSparklineUIPlugin','exhaustSavingTask','xlink:href','CollaborationStatus','Plugin','1724937JyvGxq','getOwnPropertyDescriptor','IImageIoService','12kPJnHG','getCurrentLocale','CollaborationEvent','history-icon','defIds','_collaborationController','_disposableCollection','revertRevision$','getSheets','fill','triggerLoadVersions','defs','UniverSheetsHyperLinkPlugin','editHistory.panel.reverting'];_0x1bd4=function(){return _0x25abbf;};return _0x1bd4();}var Ue=Object['getOwnPropertyDescriptor'],Ee=(_0x2dcd78,_0x23c237,_0x274049,_0x2441ec)=>{const _0x18d467=_0x352eee;for(var _0x5424b4=_0x2441ec>0x1?void 0x0:_0x2441ec?Ue(_0x23c237,_0x274049):_0x23c237,_0x327931=_0x2dcd78[_0x18d467(0x124)]-0x1,_0x3ee643;_0x327931>=0x0;_0x327931--)(_0x3ee643=_0x2dcd78[_0x327931])&&(_0x5424b4=_0x3ee643(_0x5424b4)||_0x5424b4);return _0x5424b4;},S=(_0x167790,_0x50cd32)=>(_0x590f07,_0xc7c354)=>_0x50cd32(_0x590f07,_0xc7c354,_0x167790);let E=class extends o[_0x352eee(0x144)]{constructor(_0x40d452,_0x75bfa4,_0xd89145,_0xd0a91c,_0x2f61d6,_0x3592ea,_0x619641,_0x3d49fa){const _0x31747b=_0x352eee;super(),_(this,'_revertErrorTimer',null),(this['_commandService']=_0x40d452,this[_0x31747b(0x14b)]=_0x75bfa4,this['_componentManager']=_0xd89145,this[_0x31747b(0xe7)]=_0xd0a91c,this[_0x31747b(0xda)]=_0x2f61d6,this[_0x31747b(0xbb)]=_0x3592ea,this[_0x31747b(0x172)]=_0x619641,this[_0x31747b(0x106)]=_0x3d49fa,this[_0x31747b(0xba)]());}[_0x352eee(0xba)](){const _0x99e8ed=_0x352eee;[M,j]['forEach'](_0x1a5a03=>this[_0x99e8ed(0x14f)](o[_0x99e8ed(0xd3)](this[_0x99e8ed(0x115)][_0x99e8ed(0xe6)](_0x1a5a03)))),this['disposeWithMe'](this['_componentManager']['register']('HistoryIcon',$)),this[_0x99e8ed(0x14b)]['mergeMenu'](Ie),this[_0x99e8ed(0x14f)](this[_0x99e8ed(0x115)]['onCommandExecuted'](_0x4db263=>{const _0x41afe0=_0x99e8ed;if(_0x4db263['id']===C[_0x41afe0(0x97)]['id']){this[_0x41afe0(0xbb)][_0x41afe0(0xcd)]({'content':this[_0x41afe0(0xda)]['t'](_0x41afe0(0x8b)),'type':P[_0x41afe0(0x160)][_0x41afe0(0xae)],'duration':0x1388});const {unitId:_0x407d95}=_0x4db263['params'],_0xce6e10=this[_0x41afe0(0x172)][_0x41afe0(0x101)](_0x407d95),_0x214044=O[_0x41afe0(0xaf)]([_0xce6e10['session']['event$'],_0xce6e10['state$']])['subscribe'](async([_0x551f64,_0x5117d0])=>{const _0x171c3b=_0x41afe0;var _0x543530;_0x551f64[_0x171c3b(0xdf)]===C[_0x171c3b(0x16f)]['CHANGESET_ACK']&&(_0x5117d0==null?void 0x0:_0x5117d0['status'])===p[_0x171c3b(0x168)]['SYNCED']&&_0x551f64['data'][_0x171c3b(0x155)]['some'](_0x34291b=>_0x34291b['id']===C[_0x171c3b(0x97)]['id'])&&(this[_0x171c3b(0xe7)][_0x171c3b(0xe3)](),_0x214044[_0x171c3b(0x93)](),this[_0x171c3b(0x117)]&&clearTimeout(this['_revertErrorTimer']),await((_0x543530=this[_0x171c3b(0x106)])==null?void 0x0:_0x543530[_0x171c3b(0x166)]()),setTimeout(()=>window[_0x171c3b(0x9f)][_0x171c3b(0x96)]()));});this[_0x41afe0(0x117)]=setTimeout(()=>{const _0x3c4517=_0x41afe0;_0x214044[_0x3c4517(0x93)](),this['_messageService'][_0x3c4517(0xcd)]({'content':this[_0x3c4517(0xda)]['t'](_0x3c4517(0xee)),'type':P[_0x3c4517(0x160)][_0x3c4517(0x15a)],'duration':0xbb8});},0x1388);}}));}};E=Ee([S(0x0,o[_0x352eee(0x14a)]),S(0x1,h[_0x352eee(0xf7)]),S(0x2,o[_0x352eee(0x9c)](h[_0x352eee(0x123)])),S(0x3,o['Inject'](exports['HistoryLoaderService'])),S(0x4,o[_0x352eee(0x9c)](o[_0x352eee(0x104)])),S(0x5,h[_0x352eee(0xad)]),S(0x6,o[_0x352eee(0x9c)](p[_0x352eee(0x10c)])),S(0x7,p[_0x352eee(0xfc)])],E);var Pe=Object['getOwnPropertyDescriptor'],be=(_0x576113,_0x10d77b,_0x5ddbab,_0x394545)=>{for(var _0x45c6ce=_0x394545>0x1?void 0x0:_0x394545?Pe(_0x10d77b,_0x5ddbab):_0x10d77b,_0x452c6e=_0x576113['length']-0x1,_0x11d701;_0x452c6e>=0x0;_0x452c6e--)(_0x11d701=_0x576113[_0x452c6e])&&(_0x45c6ce=_0x11d701(_0x45c6ce)||_0x45c6ce);return _0x45c6ce;},w=(_0x1c94e0,_0x527c8a)=>(_0x826155,_0x1ba507)=>_0x527c8a(_0x826155,_0x1ba507,_0x1c94e0);const He=_0x352eee(0x108);var I;exports[_0x352eee(0x154)]=(I=class extends o[_0x352eee(0x169)]{constructor(_0x2aad59=T,_0x547abe,_0x1dfe5c){const _0x39e635=_0x352eee;super(),this[_0x39e635(0x135)]=_0x2aad59,this[_0x39e635(0xdb)]=_0x547abe,this[_0x39e635(0x9a)]=_0x1dfe5c;const {menu:_0x32d1d9,..._0x1fa3bc}=o[_0x39e635(0x13b)]({},T,this[_0x39e635(0x135)]);_0x32d1d9&&this['_configService'][_0x39e635(0x111)]('menu',_0x32d1d9,{'merge':!0x0}),this['_configService'][_0x39e635(0x111)](b,_0x1fa3bc),this[_0x39e635(0x135)]['univerContainerId']&&this['_configService'][_0x39e635(0x111)](H,this[_0x39e635(0x135)][_0x39e635(0x127)]);}[_0x352eee(0x162)](){const _0x293a0f=_0x352eee;[[exports[_0x293a0f(0xe0)]],[E]][_0x293a0f(0xfa)](_0xed2857=>this['_injector'][_0x293a0f(0xbf)](_0xed2857));}[_0x352eee(0x132)](){const _0x29cea8=_0x352eee;this[_0x29cea8(0xdb)][_0x29cea8(0xf3)](E);}},_(I,_0x352eee(0x13e),o['UniverInstanceType'][_0x352eee(0x9b)]),_(I,_0x352eee(0x8e),He),I),exports['UniverEditHistoryLoaderPlugin']=be([w(0x1,o[_0x352eee(0x9c)](o[_0x352eee(0xd0)])),w(0x2,o['IConfigService'])],exports[_0x352eee(0x154)]),exports['UNIVER_CONTAINER_ID_KEY']=H,exports[_0x352eee(0xeb)]=y;
|
|
1
|
+
'use strict';const _0x4fb628=_0x23a4;(function(_0x3b3847,_0x59fa79){const _0x1afa66=_0x23a4,_0x4a62c7=_0x3b3847();while(!![]){try{const _0x2e87e1=parseInt(_0x1afa66(0x174))/0x1+-parseInt(_0x1afa66(0x15d))/0x2+parseInt(_0x1afa66(0x153))/0x3*(parseInt(_0x1afa66(0x19f))/0x4)+parseInt(_0x1afa66(0x1bd))/0x5*(-parseInt(_0x1afa66(0xf6))/0x6)+parseInt(_0x1afa66(0x128))/0x7+parseInt(_0x1afa66(0x186))/0x8+parseInt(_0x1afa66(0x17d))/0x9*(-parseInt(_0x1afa66(0x175))/0xa);if(_0x2e87e1===_0x59fa79)break;else _0x4a62c7['push'](_0x4a62c7['shift']());}catch(_0x12cb1a){_0x4a62c7['push'](_0x4a62c7['shift']());}}}(_0x4fa8,0x78c48));function _0x4fa8(){const _0x32428c=['history-icon','none','_config','assign','WorksheetEditPermission','getElementById','LS_CONFIG_KEY','./worker.js','dispose','setConfig','symbol','CollaborationStatus','get','WorkbookEditablePermission','subscribe','url(#$1','registerCommand','AuthzIoHttpService','onCommandExecuted','style','absolute','_injector','string','_init','forwardRef','5718559muVXta','Exited','getSubunitRuleList','createElement','BehaviorSubject','UniverSheetsFormulaPlugin','editHistory.panel.listFetchError','_localeService','UniverSheetsChartUIPlugin','BUTTON','forEach','UniverFormulaEnginePlugin','HistoryManagerService','disposeWithMe','100%','add','UNIVER_SHEET','reload','CollaborationController','length','Univer','_initUniver','every','UniverSheetsConditionalFormattingPlugin','map','M8.28291\x205.16293C8.28295\x204.83156\x208.01435\x204.5629\x207.68298\x204.56287C7.35161\x204.56283\x207.08295\x204.83143\x207.08291\x205.1628L7.08252\x208.63494C7.0825\x208.79881\x207.1495\x208.95555\x207.26796\x209.06877L9.70073\x2011.3939C9.94029\x2011.6228\x2010.3201\x2011.6142\x2010.549\x2011.3747C10.778\x2011.1351\x2010.7694\x2010.7553\x2010.5298\x2010.5263L8.28255\x208.37852L8.28291\x205.16293Z','UniverSheetsHyperLinkUIPlugin','next','UNIVER_CONTAINER_ID_KEY','MessageType','colorChannel1','RevertRevisionMutation','_historyManagerService','UniverDocsUIPlugin','IImageIoService','UniverSheetsPivotTablePlugin','url(#history-icon_clip0_907_281)','defs','toDisposable','IAuthzIoService','invoke','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_permissionService','764763JGAkzl','univer-history-container','entries','_commandService','_collaborationController','width','_themeService','[HistoryLoaderService]:\x20Plugin\x20','status','DisposableCollection','1175534GjoYpw','ComponentManager','appendChild','_initContainer','CommandType','state$','toString','getCurrentLocale','M4.45388\x204.14989H3.52896C4.61144\x202.8939\x206.21319\x202.0999\x207.9999\x202.0999C11.2584\x202.0999\x2013.8999\x204.74142\x2013.8999\x207.9999C13.8999\x2011.2584\x2011.2584\x2013.8999\x207.9999\x2013.8999C4.74142\x2013.8999\x202.0999\x2011.2584\x202.0999\x207.9999C2.0999\x207.66853\x201.83127\x207.3999\x201.4999\x207.3999C1.16853\x207.3999\x200.899902\x207.66853\x200.899902\x207.9999C0.899902\x2011.9211\x204.07868\x2015.0999\x207.9999\x2015.0999C11.9211\x2015.0999\x2015.0999\x2011.9211\x2015.0999\x207.9999C15.0999\x204.07868\x2011.9211\x200.899902\x207.9999\x200.899902C5.88709\x200.899902\x203.9903\x201.82298\x202.69023\x203.28636V2.38625C2.69023\x202.05488\x202.42161\x201.78625\x202.09023\x201.78625C1.75886\x201.78625\x201.49023\x202.05488\x201.49023\x202.38625V4.74989C1.49023\x205.08126\x201.75886\x205.34989\x202.09023\x205.34989H4.45388C4.78525\x205.34989\x205.05388\x205.08126\x205.05388\x204.74989C5.05388\x204.41851\x204.78525\x204.14989\x204.45388\x204.14989Z','_checkCanRevert','_univerInstanceService','closeAll','mutations','type','UNIVER_CONTAINER_ID','_pluginMap','IPermissionService','_initPlugins','Entered','historyPanelComponentKey','UniverSheetsUIPlugin','mask','position','53370LDsyZf','15400qYAdrU','RibbonStartGroup','UniverSheetsDrawingUIPlugin','1em','1000','workerURL','onStarting','executeCommand','3285JFQFes','UniverInstanceType','_messageService','UniverSheetsDataValidationUIPlugin','univerjs-icon\x20univerjs-icon-','_localCacheService','fill','HistoryIcon','WorkbookRecoverHistoryPermission','5014480VWBtbf','has','_componentManager','trim','getSheetCommandTarget','UniverSheetSparklineUIPlugin','getOwnPropertyDescriptor','ILocalCacheService','OTHERS','LocaleService','HistoryModeStatus','UniverRenderEnginePlugin','asObservable','path','ThemeService','UniverUIPlugin','clipPath','_sidebarService','currentTheme$','UniverEditHistoryLoaderPlugin','_dialogService','Plugin','pluginName','permissionId','registerPlugin','8GiGOdb','mountHistoryContent','params','dataset','xlink:href','CollaborationEvent','replace','substring','getCollabEntity','Error','defineProperty','univerContainerId','UniverSheetsDrawingPlugin','UniverRPCMainThreadPlugin','getMenuHiddenObservable','ICommandService','historyListServerUrl','show','block','unMountHistoryContent','uComp','_initListener','random','from','http://www.w3.org/2000/svg','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','location','RxDisposable','children','composePermission','453035USTunv','historyUniver','PLUGIN_CONFIG_KEY_MAIN_THREAD','left','display','\x20has\x20been\x20registered.','unsubscribe','Module','_historyUniver$','Injector','_disposableCollection','UniverLicensePlugin','_menuManagerService','clear','defIds','getConfig','darkMode$','history-icon_clip0_907_281','displayName','UniverSheetsChartPlugin','setLocale','attrs','Inject','IMessageService','eventID','menu','some','_selectionProtectionRuleModel','_configService','IDialogService','status$','toStringTag','register','value','includes','values','UniverSheetsHyperLinkPlugin','OPERATION','UNIVER_UNKNOWN','UniverDrawingPlugin','24fLGeeq','exhaustSavingTask','UniverNetworkPlugin','useRef','SYNCED','HistoryLoaderService','getUnit','CHANGESET_ACK','tag','IUniverInstanceService','getAllPlugins','univer.operation.exit-edit-history','IConfigService','div','white','IMenuManagerService','_revertErrorTimer','UniverSheetsFilterPlugin','use','editHistory.panel.revertFailed','idSuffix','UniverCollaborationPlugin','UniverEditHistoryViewerPlugin','close','__getInjector'];_0x4fa8=function(){return _0x32428c;};return _0x4fa8();}function _0x23a4(_0x5935f0,_0x2b14f9){_0x5935f0=_0x5935f0-0xef;const _0x4fa864=_0x4fa8();let _0x23a43e=_0x4fa864[_0x5935f0];return _0x23a43e;}var A=Object[_0x4fb628(0x1a9)],F=(_0x212926,_0x41eac9,_0x3f3409)=>_0x41eac9 in _0x212926?A(_0x212926,_0x41eac9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3f3409}):_0x212926[_0x41eac9]=_0x3f3409,_=(_0x698727,_0x1af67c,_0x16d1a8)=>F(_0x698727,typeof _0x1af67c!=_0x4fb628(0x119)?_0x1af67c+'':_0x1af67c,_0x16d1a8);Object[_0x4fb628(0x1a9)](exports,Symbol[_0x4fb628(0x1dc)],{'value':_0x4fb628(0x1c4)});const o=require('@univerjs/core'),C=require('@univerjs-pro/collaboration'),p=require('@univerjs-pro/collaboration-client'),P=require('@univerjs/design'),U=require('react'),h=require('@univerjs/ui'),O=require('rxjs'),d=require('@univerjs/sheets'),m=require('@univerjs-pro/edit-history-viewer'),L=require('@univerjs-pro/license'),V=require('@univerjs-pro/sheets-chart'),G=require('@univerjs-pro/sheets-chart-ui'),Y=require('@univerjs-pro/sheets-pivot'),K=require('@univerjs-pro/sheets-sparkline'),W=require('@univerjs-pro/sheets-sparkline-ui'),B=require('@univerjs/data-validation'),z=require('@univerjs/docs'),Z=require('@univerjs/docs-ui'),N=require('@univerjs/drawing'),J=require('@univerjs/drawing-ui'),Q=require('@univerjs/engine-formula'),X=require('@univerjs/engine-render'),ee=require('@univerjs/network'),R=require('@univerjs/rpc'),ie=require('@univerjs/sheets-conditional-formatting'),te=require('@univerjs/sheets-conditional-formatting-ui'),re=require('@univerjs/sheets-data-validation'),ne=require('@univerjs/sheets-data-validation-ui'),se=require('@univerjs/sheets-drawing'),oe=require('@univerjs/sheets-drawing-ui'),ae=require('@univerjs/sheets-filter'),ce=require('@univerjs/sheets-filter-ui'),le=require('@univerjs/sheets-formula'),ue=require('@univerjs/sheets-formula-ui'),he=require('@univerjs/sheets-hyper-link'),ge=require('@univerjs/sheets-hyper-link-ui'),ve=require('@univerjs/sheets-numfmt'),k=require('@univerjs/sheets-ui'),b='edit-history-loader.config',T={};function D({ref:_0x2e19dc,..._0x5a0fa6}){const _0x5c7d91=_0x4fb628,{icon:_0x4d9cfa,id:_0x1eb8a9,className:_0x4fa563,extend:_0x54f7cc,..._0x411c97}=_0x5a0fa6,_0x23fb92=(_0x5c7d91(0x181)+_0x1eb8a9+'\x20'+(_0x4fa563||''))[_0x5c7d91(0x189)](),_0xfdc899=U[_0x5c7d91(0xf9)]('_'+Se());return q(_0x4d9cfa,''+_0x1eb8a9,{'defIds':_0x4d9cfa[_0x5c7d91(0x1cb)],'idSuffix':_0xfdc899['current']},{'ref':_0x2e19dc,'className':_0x23fb92,..._0x411c97},_0x54f7cc);}function q(_0x21fcd1,_0x245bfd,_0x412a3a,_0x3942e3,_0x13eab9){const _0x2b6554=_0x4fb628;return U[_0x2b6554(0x12b)](_0x21fcd1[_0x2b6554(0xfe)],{'key':_0x245bfd,...de(_0x21fcd1,_0x412a3a,_0x13eab9),..._0x3942e3},(_e(_0x21fcd1,_0x412a3a)['children']||[])[_0x2b6554(0x140)]((_0x186215,_0x1dd308)=>q(_0x186215,_0x245bfd+'-'+_0x21fcd1[_0x2b6554(0xfe)]+'-'+_0x1dd308,_0x412a3a,void 0x0,_0x13eab9)));}function de(_0x56b236,_0x780fbb,_0x2ebdde){const _0x2c6cd6=_0x4fb628,_0xd0165f={..._0x56b236[_0x2c6cd6(0x1d2)]};_0x2ebdde!=null&&_0x2ebdde[_0x2c6cd6(0x146)]&&_0xd0165f[_0x2c6cd6(0x183)]===_0x2c6cd6(0x146)&&(_0xd0165f['fill']=_0x2ebdde[_0x2c6cd6(0x146)]),_0x56b236[_0x2c6cd6(0xfe)]===_0x2c6cd6(0x172)&&_0xd0165f['id']&&(_0xd0165f['id']=_0xd0165f['id']+_0x780fbb[_0x2c6cd6(0x10a)]),Object[_0x2c6cd6(0x155)](_0xd0165f)['forEach'](([_0x3f4253,_0x4818ea])=>{const _0x2367e6=_0x2c6cd6;_0x3f4253==='mask'&&typeof _0x4818ea==_0x2367e6(0x125)&&(_0xd0165f[_0x3f4253]=_0x4818ea[_0x2367e6(0x1a5)](/url\(#(.*)\)/,_0x2367e6(0x11e)+_0x780fbb['idSuffix']+')'));});const {defIds:_0x595682}=_0x780fbb;return!_0x595682||_0x595682['length']===0x0||(_0x56b236['tag']===_0x2c6cd6(0x108)&&_0xd0165f[_0x2c6cd6(0x1a3)]&&(_0xd0165f['xlink:href']=_0xd0165f[_0x2c6cd6(0x1a3)]+_0x780fbb['idSuffix']),Object[_0x2c6cd6(0x155)](_0xd0165f)['forEach'](([_0x3f4933,_0x51916b])=>{const _0x23a279=_0x2c6cd6;typeof _0x51916b==_0x23a279(0x125)&&(_0xd0165f[_0x3f4933]=_0x51916b[_0x23a279(0x1a5)](/url\(#(.*)\)/,_0x23a279(0x11e)+_0x780fbb[_0x23a279(0x10a)]+')'));})),_0xd0165f;}function _e(_0x32e7b3,_0x5b0a31){const _0x38ff5b=_0x4fb628;var _0xede378;const {defIds:_0x598019}=_0x5b0a31;return!_0x598019||_0x598019[_0x38ff5b(0x13b)]===0x0?_0x32e7b3:_0x32e7b3[_0x38ff5b(0xfe)]==='defs'&&((_0xede378=_0x32e7b3[_0x38ff5b(0x1bb)])!=null&&_0xede378['length'])?{..._0x32e7b3,'children':_0x32e7b3[_0x38ff5b(0x1bb)][_0x38ff5b(0x140)](_0x243c59=>typeof _0x243c59[_0x38ff5b(0x1d2)]['id']==_0x38ff5b(0x125)&&_0x598019&&_0x598019[_0x38ff5b(0xf0)](_0x243c59[_0x38ff5b(0x1d2)]['id'])?{..._0x243c59,'attrs':{..._0x243c59[_0x38ff5b(0x1d2)],'id':_0x243c59['attrs']['id']+_0x5b0a31[_0x38ff5b(0x10a)]}}:_0x243c59)}:_0x32e7b3;}function Se(){const _0x2648a7=_0x4fb628;return Math[_0x2648a7(0x1b5)]()[_0x2648a7(0x163)](0x24)[_0x2648a7(0x1a6)](0x2,0x8);}D[_0x4fb628(0x1cf)]='UniverIcon';const me={'tag':'svg','attrs':{'xmlns':_0x4fb628(0x1b7),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x4fb628(0x178),'height':_0x4fb628(0x178)},'children':[{'tag':'g','attrs':{'fill':'currentColor','clipPath':_0x4fb628(0x14c)},'children':[{'tag':'path','attrs':{'d':_0x4fb628(0x165)}},{'tag':_0x4fb628(0x193),'attrs':{'d':_0x4fb628(0x141)}}]},{'tag':_0x4fb628(0x14d),'attrs':{},'children':[{'tag':_0x4fb628(0x196),'attrs':{'id':_0x4fb628(0x1ce)},'children':[{'tag':_0x4fb628(0x193),'attrs':{'fill':_0x4fb628(0x104),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['history-icon_clip0_907_281']},$=U[_0x4fb628(0x127)](function(_0x1603a3,_0x293539){const _0x51f84d=_0x4fb628;return U[_0x51f84d(0x12b)](D,Object[_0x51f84d(0x112)]({},_0x1603a3,{'id':_0x51f84d(0x10f),'ref':_0x293539,'icon':me}));});$[_0x4fb628(0x1cf)]='HistoryIcon';var ye=Object[_0x4fb628(0x18c)],pe=(_0x91d971,_0x127ecb,_0x3e7962,_0x38451d)=>{const _0x9f5f4=_0x4fb628;for(var _0x56fe7b=_0x38451d>0x1?void 0x0:_0x38451d?ye(_0x127ecb,_0x3e7962):_0x127ecb,_0x1700a6=_0x91d971[_0x9f5f4(0x13b)]-0x1,_0x3c06a7;_0x1700a6>=0x0;_0x1700a6--)(_0x3c06a7=_0x91d971[_0x1700a6])&&(_0x56fe7b=_0x3c06a7(_0x56fe7b)||_0x56fe7b);return _0x56fe7b;},g=(_0xd005c2,_0x2f179f)=>(_0x585191,_0x48c228)=>_0x2f179f(_0x585191,_0x48c228,_0xd005c2);const fe='univer-container',H=_0x4fb628(0x16b),y=_0x4fb628(0x154);exports[_0x4fb628(0xfb)]=class extends o['Disposable']{constructor(_0x2c9597,_0x14d217,_0x13710d,_0x41e2e3,_0x5bb1a1,_0x123f78,_0x4db760,_0x209782,_0x1807fc,_0x5edfe4){const _0x191938=_0x4fb628;super(),_(this,_0x191938(0x1c5),new O[(_0x191938(0x12c))](null)),_(this,'historyUniver$',this[_0x191938(0x1c5)][_0x191938(0x192)]()),_(this,'_disposableCollection',new o[(_0x191938(0x15c))]()),_(this,_0x191938(0x16c),new Map()),(this[_0x191938(0x12f)]=_0x2c9597,this[_0x191938(0x167)]=_0x14d217,this[_0x191938(0x1d9)]=_0x13710d,this[_0x191938(0x156)]=_0x41e2e3,this[_0x191938(0x17f)]=_0x5bb1a1,this[_0x191938(0x152)]=_0x123f78,this['_selectionProtectionRuleModel']=_0x4db760,this[_0x191938(0x19a)]=_0x209782,this[_0x191938(0x197)]=_0x1807fc,this[_0x191938(0x159)]=_0x5edfe4,this[_0x191938(0x126)]());}get[_0x4fb628(0x1be)](){const _0x5c2e87=_0x4fb628;return this[_0x5c2e87(0x1c5)][_0x5c2e87(0xef)];}[_0x4fb628(0x126)](){const _0x6018f6=_0x4fb628;this[_0x6018f6(0x160)](),this[_0x6018f6(0x16e)]();}[_0x4fb628(0x160)](){const _0x2bcfde=_0x4fb628;var _0x125891;const _0x5325d5=(_0x125891=this['_configService'][_0x2bcfde(0x1cc)](H))!=null?_0x125891:fe,_0x35b1bb=document[_0x2bcfde(0x114)](_0x5325d5);if(!_0x35b1bb)return;const _0x1a3472=document[_0x2bcfde(0x12b)](_0x2bcfde(0x103));_0x1a3472['id']=y,_0x1a3472[_0x2bcfde(0x1a2)][_0x2bcfde(0x1b3)]='history-container',_0x1a3472[_0x2bcfde(0x122)][_0x2bcfde(0x173)]=_0x2bcfde(0x123),_0x1a3472['style']['top']='0',_0x1a3472[_0x2bcfde(0x122)][_0x2bcfde(0x1c0)]='0',_0x1a3472[_0x2bcfde(0x122)][_0x2bcfde(0x158)]='100%',_0x1a3472[_0x2bcfde(0x122)]['height']=_0x2bcfde(0x136),_0x1a3472[_0x2bcfde(0x122)]['zIndex']=_0x2bcfde(0x179),_0x1a3472['style'][_0x2bcfde(0x1c1)]=_0x2bcfde(0x110),_0x35b1bb[_0x2bcfde(0x15f)](_0x1a3472);}[_0x4fb628(0x16e)](){const _0x3e65f8=_0x4fb628;var _0x16521,_0x25e3f8,_0x40c4a0,_0x2a033b;[[X[_0x3e65f8(0x191)]],[h[_0x3e65f8(0x195)],{'container':y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[h[_0x3e65f8(0x1da)],null]]}],[ee[_0x3e65f8(0xf8)]],[N[_0x3e65f8(0xf5)],{'override':[[N[_0x3e65f8(0x14a)],null]]}],[z['UniverDocsPlugin'],{'hasScroll':!0x1}],[Z[_0x3e65f8(0x149)]],[ve['UniverSheetsNumfmtPlugin']],[d['UniverSheetsPlugin'],{'notExecuteFormula':!0x0}],[k[_0x3e65f8(0x171)]],[le[_0x3e65f8(0x12d)]],[ue['UniverSheetsFormulaUIPlugin']],[C[_0x3e65f8(0x10b)]],[ae[_0x3e65f8(0x107)]],[ce['UniverSheetsFilterUIPlugin']],[ie[_0x3e65f8(0x13f)]],[te['UniverSheetsConditionalFormattingUIPlugin']],[he[_0x3e65f8(0xf2)]],[ge[_0x3e65f8(0x142)]],[B['UniverDataValidationPlugin']],[re['UniverSheetsDataValidationPlugin']],[ne[_0x3e65f8(0x180)]],[Q[_0x3e65f8(0x133)],{'notExecuteFormula':!0x0}],[R[_0x3e65f8(0x1ac)],{'workerURL':(_0x25e3f8=(_0x16521=this[_0x3e65f8(0x1d9)]['getConfig'](R[_0x3e65f8(0x1bf)]))==null?void 0x0:_0x16521[_0x3e65f8(0x17a)])!=null?_0x25e3f8:_0x3e65f8(0x116)}],[J['UniverDrawingUIPlugin']],[se[_0x3e65f8(0x1ab)]],[oe[_0x3e65f8(0x177)]],[K['UniverSheetSparklinePlugin']],[W[_0x3e65f8(0x18b)]],[V[_0x3e65f8(0x1d0)]],[G[_0x3e65f8(0x130)]],[Y[_0x3e65f8(0x14b)],{'notExecuteFormula':!0x0}],[m[_0x3e65f8(0x10c)],{'historyListServerUrl':(_0x40c4a0=this[_0x3e65f8(0x1d9)]['getConfig'](b))==null?void 0x0:_0x40c4a0[_0x3e65f8(0x1af)],'historyPanelComponentKey':(_0x2a033b=this['_configService'][_0x3e65f8(0x1cc)](b))==null?void 0x0:_0x2a033b[_0x3e65f8(0x170)]}]]['forEach'](([_0x48799a,_0x4a1b3d])=>this['registerPlugin'](_0x48799a,_0x4a1b3d));}[_0x4fb628(0x117)](){const _0x4a7b4b=_0x4fb628;super[_0x4a7b4b(0x117)](),this['unMountHistoryContent'](),this[_0x4a7b4b(0x16c)][_0x4a7b4b(0x1ca)]();}[_0x4fb628(0x19e)](_0x14858f,_0x956d1b,_0x5aebc3){const _0x41f35a=_0x4fb628;if(this[_0x41f35a(0x16c)][_0x41f35a(0x187)](_0x14858f['pluginName'])&&!_0x5aebc3)throw new Error(_0x41f35a(0x15a)+_0x14858f[_0x41f35a(0x19c)]+_0x41f35a(0x1c2));this[_0x41f35a(0x16c)]['set'](_0x14858f['pluginName'],[_0x14858f,_0x956d1b]);}[_0x4fb628(0x100)](){const _0x1a1430=_0x4fb628;return Array[_0x1a1430(0x1b6)](this[_0x1a1430(0x16c)][_0x1a1430(0xf1)]());}[_0x4fb628(0x1a0)](_0x69ef9b){const _0x5366dc=_0x4fb628,_0x47616c=document['getElementById'](y);_0x47616c&&(_0x47616c[_0x5366dc(0x122)][_0x5366dc(0x1c1)]=_0x5366dc(0x1b1),this['_initUniver'](_0x69ef9b,y));}[_0x4fb628(0x1b2)](){const _0x2fc3ae=_0x4fb628;var _0x2379b7;this[_0x2fc3ae(0x1c7)]['dispose'](),(_0x2379b7=this[_0x2fc3ae(0x1be)])==null||_0x2379b7[_0x2fc3ae(0x117)](),this['_historyUniver$'][_0x2fc3ae(0x143)](null);const _0x1313af=document[_0x2fc3ae(0x114)](y);_0x1313af&&(_0x1313af[_0x2fc3ae(0x122)][_0x2fc3ae(0x1c1)]=_0x2fc3ae(0x110));}[_0x4fb628(0x13d)](_0x8be6ba,_0x20796d){const _0x5e262b=_0x4fb628;if(this[_0x5e262b(0x1be)])return;const _0x55f147=new o[(_0x5e262b(0x13c))]({'locales':{[this[_0x5e262b(0x12f)][_0x5e262b(0x164)]()]:this[_0x5e262b(0x12f)]['getLocales']()},'override':[[o[_0x5e262b(0x14f)],{'useClass':p[_0x5e262b(0x120)]}]]}),_0x2ab454=_0x55f147[_0x5e262b(0x10e)]();this[_0x5e262b(0x135)](this[_0x5e262b(0x159)][_0x5e262b(0x1cd)]['subscribe'](_0x5307aa=>{const _0x14e8c3=_0x5e262b;_0x2ab454['get'](o[_0x14e8c3(0x194)])['setDarkMode'](_0x5307aa);})),this['disposeWithMe'](this['_themeService'][_0x5e262b(0x198)][_0x5e262b(0x11d)](_0x375b57=>{const _0x1194c8=_0x5e262b;_0x2ab454[_0x1194c8(0x11b)](o[_0x1194c8(0x194)])['setTheme'](_0x375b57);})),_0x2ab454[_0x5e262b(0x11b)](o['LocaleService'])[_0x5e262b(0x1d1)](this[_0x5e262b(0x12f)][_0x5e262b(0x164)]()),_0x2ab454['get'](o[_0x5e262b(0x102)])[_0x5e262b(0x118)](p[_0x5e262b(0x151)],this['_configService'][_0x5e262b(0x1cc)](p[_0x5e262b(0x151)]));const _0x3bf078=this['_configService'][_0x5e262b(0x1cc)](L[_0x5e262b(0x115)]);_0x3bf078&&_0x55f147[_0x5e262b(0x19e)](L[_0x5e262b(0x1c8)],{'license':_0x3bf078['ls']}),this['_pluginMap'][_0x5e262b(0x132)](([_0x23c2d9,_0x2ad672])=>{const _0x10f197=_0x5e262b;_0x55f147[_0x10f197(0x19e)](_0x23c2d9,_0x2ad672);}),_0x2ab454[_0x5e262b(0x150)](_0x32d040=>{const _0x404c14=_0x5e262b;this[_0x404c14(0x1b4)](_0x32d040,_0x8be6ba);}),this['_historyUniver$']['next'](_0x55f147);const _0x2004a6=_0x2ab454[_0x5e262b(0x11b)](m[_0x5e262b(0x134)]),_0xb89454=this['_checkCanRevert'](_0x8be6ba);_0x2004a6['triggerLoadVersions'](_0x8be6ba,_0x20796d,_0xb89454);}['_initListener'](_0x6c0de7,_0x4d81be){const _0x68cfa1=_0x4fb628,_0x187b24=_0x6c0de7[_0x68cfa1(0x11b)](m['HistoryManagerService']);this['_disposableCollection'][_0x68cfa1(0x137)](_0x187b24[_0x68cfa1(0x1db)][_0x68cfa1(0x11d)](_0x5088d5=>{const _0x168cea=_0x68cfa1;switch(_0x5088d5){case m[_0x168cea(0x190)][_0x168cea(0x16f)]:this[_0x168cea(0x19a)][_0x168cea(0x168)](),this[_0x168cea(0x197)][_0x168cea(0x10d)]();break;case m['HistoryModeStatus'][_0x168cea(0x129)]:this[_0x168cea(0x156)][_0x168cea(0x17c)](j['id']),this[_0x168cea(0x1b2)]();break;case m[_0x168cea(0x190)][_0x168cea(0x1a8)]:this[_0x168cea(0x1b2)](),this['_messageService'][_0x168cea(0x1b0)]({'content':this[_0x168cea(0x12f)]['t'](_0x168cea(0x12e)),'type':P['MessageType'][_0x168cea(0x1a8)],'duration':0xbb8});break;}})),this[_0x68cfa1(0x1c7)]['add'](_0x187b24['revertRevision$'][_0x68cfa1(0x11d)](async _0x18d938=>{const _0x23fade=_0x68cfa1;_0x18d938&&this[_0x23fade(0x156)][_0x23fade(0x17c)](C[_0x23fade(0x147)]['id'],{'unitId':_0x4d81be,'revision':_0x18d938});}));}[_0x4fb628(0x166)](_0x4ad5e2){const _0x175ce9=_0x4fb628,_0x313410=this['_univerInstanceService'][_0x175ce9(0xfc)](_0x4ad5e2)['getSheets']()[_0x175ce9(0x140)](_0x1635fd=>_0x1635fd['getSheetId']()),_0x2614ce=new d['WorkbookEditablePermission'](_0x4ad5e2)['id'],_0x3a4cf3=_0x313410[_0x175ce9(0x140)](_0x1adaf1=>new d[(_0x175ce9(0x113))](_0x4ad5e2,_0x1adaf1)['id']),_0xd5291c=_0x313410[_0x175ce9(0x140)](_0xd155bc=>this[_0x175ce9(0x1d8)][_0x175ce9(0x12a)](_0x4ad5e2,_0xd155bc)[_0x175ce9(0x140)](_0x2899cc=>new d['RangeProtectionPermissionEditPoint'](_0x4ad5e2,_0xd155bc,_0x2899cc[_0x175ce9(0x19d)])['id']))['flat'](),_0x37aa41=new d[(_0x175ce9(0x185))](_0x4ad5e2)['id'];return this[_0x175ce9(0x152)][_0x175ce9(0x1bc)]([_0x2614ce,..._0x3a4cf3,..._0xd5291c,_0x37aa41])[_0x175ce9(0x13e)](_0x3c2d98=>!!_0x3c2d98[_0x175ce9(0xef)]);}},exports['HistoryLoaderService']=pe([g(0x0,o[_0x4fb628(0x1d3)](o[_0x4fb628(0x18f)])),g(0x1,o[_0x4fb628(0xff)]),g(0x2,o[_0x4fb628(0x102)]),g(0x3,o[_0x4fb628(0x1ae)]),g(0x4,h[_0x4fb628(0x1d4)]),g(0x5,o[_0x4fb628(0x16d)]),g(0x6,o[_0x4fb628(0x1d3)](d['RangeProtectionRuleModel'])),g(0x7,o[_0x4fb628(0x1d3)](h[_0x4fb628(0x1da)])),g(0x8,o[_0x4fb628(0x1d3)](h['ISidebarService'])),g(0x9,o[_0x4fb628(0x1d3)](o[_0x4fb628(0x194)]))],exports[_0x4fb628(0xfb)]);const M={'id':'univer.operation.toggle-edit-history','type':o[_0x4fb628(0x161)][_0x4fb628(0xf3)],'handler':_0xa98359=>{const _0x2a7cad=_0x4fb628,_0x55e105=_0xa98359[_0x2a7cad(0x11b)](exports[_0x2a7cad(0xfb)]),_0x188b12=_0xa98359['get'](o[_0x2a7cad(0xff)]),{unitId:_0x36010b}=d[_0x2a7cad(0x18a)](_0x188b12)||{};return _0x36010b?(_0x55e105[_0x2a7cad(0x1a0)](_0x36010b),!0x0):!0x1;}},j={'id':_0x4fb628(0x101),'type':o[_0x4fb628(0x161)][_0x4fb628(0xf3)],'handler':()=>!0x0};function Ce(_0x5345b9){const _0x1d2538=_0x4fb628;return{'id':M['id'],'type':h['MenuItemType'][_0x1d2538(0x131)],'icon':_0x1d2538(0x184),'tooltip':'editHistory.panel.title','hidden$':h[_0x1d2538(0x1ad)](_0x5345b9,o['UniverInstanceType'][_0x1d2538(0x138)]),'disabled$':k['getCurrentRangeDisable$'](_0x5345b9,{'workbookTypes':[d[_0x1d2538(0x11c)],d['WorkbookViewHistoryPermission']],'worksheetTypes':[],'rangeTypes':[]})};}const Ie={[h[_0x4fb628(0x176)][_0x4fb628(0x18e)]]:{[M['id']]:{'order':0.2,'menuItemFactory':Ce}}};var Ue=Object[_0x4fb628(0x18c)],Ee=(_0x3527c3,_0x59493d,_0x3465ac,_0x45fd91)=>{const _0x271493=_0x4fb628;for(var _0x362039=_0x45fd91>0x1?void 0x0:_0x45fd91?Ue(_0x59493d,_0x3465ac):_0x59493d,_0x1f6a93=_0x3527c3[_0x271493(0x13b)]-0x1,_0x431e68;_0x1f6a93>=0x0;_0x1f6a93--)(_0x431e68=_0x3527c3[_0x1f6a93])&&(_0x362039=_0x431e68(_0x362039)||_0x362039);return _0x362039;},S=(_0x336731,_0x34cd17)=>(_0x3c62b7,_0x598eca)=>_0x34cd17(_0x3c62b7,_0x598eca,_0x336731);let E=class extends o[_0x4fb628(0x1ba)]{constructor(_0x188b43,_0x167b67,_0x8fd4dd,_0x352676,_0x15d605,_0x473c81,_0x1707e2,_0x19a487){const _0x1eaf57=_0x4fb628;super(),_(this,_0x1eaf57(0x106),null),(this[_0x1eaf57(0x156)]=_0x188b43,this[_0x1eaf57(0x1c9)]=_0x167b67,this['_componentManager']=_0x8fd4dd,this[_0x1eaf57(0x148)]=_0x352676,this[_0x1eaf57(0x12f)]=_0x15d605,this['_messageService']=_0x473c81,this[_0x1eaf57(0x157)]=_0x1707e2,this[_0x1eaf57(0x182)]=_0x19a487,this[_0x1eaf57(0x126)]());}[_0x4fb628(0x126)](){const _0x10f2f5=_0x4fb628;[M,j]['forEach'](_0x11da50=>this[_0x10f2f5(0x135)](o[_0x10f2f5(0x14e)](this[_0x10f2f5(0x156)][_0x10f2f5(0x11f)](_0x11da50)))),this[_0x10f2f5(0x135)](this[_0x10f2f5(0x188)][_0x10f2f5(0x1dd)](_0x10f2f5(0x184),$)),this[_0x10f2f5(0x1c9)]['mergeMenu'](Ie),this[_0x10f2f5(0x135)](this[_0x10f2f5(0x156)][_0x10f2f5(0x121)](_0x3f0d8e=>{const _0xae74f9=_0x10f2f5;if(_0x3f0d8e['id']===C[_0xae74f9(0x147)]['id']){this[_0xae74f9(0x17f)]['show']({'content':this[_0xae74f9(0x12f)]['t']('editHistory.panel.reverting'),'type':P[_0xae74f9(0x145)]['Loading'],'duration':0x1388});const {unitId:_0x39ecbc}=_0x3f0d8e[_0xae74f9(0x1a1)],_0x17c9b4=this[_0xae74f9(0x157)][_0xae74f9(0x1a7)](_0x39ecbc),_0x4ed265=O['combineLatest']([_0x17c9b4['session']['event$'],_0x17c9b4[_0xae74f9(0x162)]])['subscribe'](async([_0x439057,_0x5dcd20])=>{const _0x13af8a=_0xae74f9;var _0x2e298b;_0x439057[_0x13af8a(0x1d5)]===C[_0x13af8a(0x1a4)][_0x13af8a(0xfd)]&&(_0x5dcd20==null?void 0x0:_0x5dcd20[_0x13af8a(0x15b)])===p[_0x13af8a(0x11a)][_0x13af8a(0xfa)]&&_0x439057['data'][_0x13af8a(0x169)][_0x13af8a(0x1d7)](_0xdd8e6b=>_0xdd8e6b['id']===C[_0x13af8a(0x147)]['id'])&&(this['_historyManagerService'][_0x13af8a(0x1b2)](),_0x4ed265[_0x13af8a(0x1c3)](),this['_revertErrorTimer']&&clearTimeout(this['_revertErrorTimer']),await((_0x2e298b=this[_0x13af8a(0x182)])==null?void 0x0:_0x2e298b[_0x13af8a(0xf7)]()),setTimeout(()=>window[_0x13af8a(0x1b9)][_0x13af8a(0x139)]()));});this[_0xae74f9(0x106)]=setTimeout(()=>{const _0x4da822=_0xae74f9;_0x4ed265[_0x4da822(0x1c3)](),this['_messageService'][_0x4da822(0x1b0)]({'content':this[_0x4da822(0x12f)]['t'](_0x4da822(0x109)),'type':P[_0x4da822(0x145)]['Error'],'duration':0xbb8});},0x1388);}}));}};E=Ee([S(0x0,o[_0x4fb628(0x1ae)]),S(0x1,h[_0x4fb628(0x105)]),S(0x2,o['Inject'](h[_0x4fb628(0x15e)])),S(0x3,o[_0x4fb628(0x1d3)](exports[_0x4fb628(0xfb)])),S(0x4,o[_0x4fb628(0x1d3)](o[_0x4fb628(0x18f)])),S(0x5,h[_0x4fb628(0x1d4)]),S(0x6,o[_0x4fb628(0x1d3)](p[_0x4fb628(0x13a)])),S(0x7,p[_0x4fb628(0x18d)])],E);var Pe=Object['getOwnPropertyDescriptor'],be=(_0x1c3b00,_0x4c0ea6,_0x4fae48,_0x16afcd)=>{const _0x225520=_0x4fb628;for(var _0x4959d1=_0x16afcd>0x1?void 0x0:_0x16afcd?Pe(_0x4c0ea6,_0x4fae48):_0x4c0ea6,_0x51d4bd=_0x1c3b00[_0x225520(0x13b)]-0x1,_0x44fdc0;_0x51d4bd>=0x0;_0x51d4bd--)(_0x44fdc0=_0x1c3b00[_0x51d4bd])&&(_0x4959d1=_0x44fdc0(_0x4959d1)||_0x4959d1);return _0x4959d1;},w=(_0x168673,_0x1251f3)=>(_0x1944a7,_0x4164ad)=>_0x1251f3(_0x1944a7,_0x4164ad,_0x168673);const He=_0x4fb628(0x1b8);var I;exports['UniverEditHistoryLoaderPlugin']=(I=class extends o[_0x4fb628(0x19b)]{constructor(_0x194c22=T,_0x3ecfba,_0x110385){const _0x21b2b7=_0x4fb628;super(),this['_config']=_0x194c22,this[_0x21b2b7(0x124)]=_0x3ecfba,this[_0x21b2b7(0x1d9)]=_0x110385;const {menu:_0x35820d,..._0x275dab}=o['merge']({},T,this['_config']);_0x35820d&&this[_0x21b2b7(0x1d9)][_0x21b2b7(0x118)](_0x21b2b7(0x1d6),_0x35820d,{'merge':!0x0}),this[_0x21b2b7(0x1d9)][_0x21b2b7(0x118)](b,_0x275dab),this[_0x21b2b7(0x111)][_0x21b2b7(0x1aa)]&&this[_0x21b2b7(0x1d9)]['setConfig'](H,this[_0x21b2b7(0x111)]['univerContainerId']);}[_0x4fb628(0x17b)](){const _0xb94e9b=_0x4fb628;[[exports[_0xb94e9b(0xfb)]],[E]][_0xb94e9b(0x132)](_0x46f01d=>this['_injector']['add'](_0x46f01d));}['onSteady'](){const _0x2070bf=_0x4fb628;this[_0x2070bf(0x124)][_0x2070bf(0x11b)](E);}},_(I,_0x4fb628(0x16a),o[_0x4fb628(0x17e)][_0x4fb628(0xf4)]),_(I,_0x4fb628(0x19c),He),I),exports[_0x4fb628(0x199)]=be([w(0x1,o[_0x4fb628(0x1d3)](o[_0x4fb628(0x1c6)])),w(0x2,o['IConfigService'])],exports[_0x4fb628(0x199)]),exports[_0x4fb628(0x144)]=H,exports['UNIVER_HISTORY_CONTAINER_ID']=y;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x25f2b8=_0x5c09;(function(_0x22b510,_0x4ea1b7){const _0x5c120b=_0x5c09,_0x7adc8e=_0x22b510();while(!![]){try{const _0x2ba5e8=-parseInt(_0x5c120b(0x1c5))/0x1+-parseInt(_0x5c120b(0x14f))/0x2*(parseInt(_0x5c120b(0x191))/0x3)+-parseInt(_0x5c120b(0x1c0))/0x4+-parseInt(_0x5c120b(0x139))/0x5+-parseInt(_0x5c120b(0x19d))/0x6*(-parseInt(_0x5c120b(0x1d2))/0x7)+-parseInt(_0x5c120b(0x19b))/0x8+parseInt(_0x5c120b(0x1c4))/0x9;if(_0x2ba5e8===_0x4ea1b7)break;else _0x7adc8e['push'](_0x7adc8e['shift']());}catch(_0x259dd7){_0x7adc8e['push'](_0x7adc8e['shift']());}}}(_0x3e35,0x9a7d7));var Y=Object[_0x25f2b8(0x13c)],B=(_0x3602bf,_0x5462ba,_0x3b4f5f)=>_0x5462ba in _0x3602bf?Y(_0x3602bf,_0x5462ba,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b4f5f}):_0x3602bf[_0x5462ba]=_0x3b4f5f,g=(_0x1e5a7f,_0x193ff3,_0x400031)=>B(_0x1e5a7f,typeof _0x193ff3!=_0x25f2b8(0x17c)?_0x193ff3+'':_0x193ff3,_0x400031);import{Inject as _0x41efd7,LocaleService as _0xb0452e,IUniverInstanceService as _0x8a5a9d,IConfigService as _0x131274,ICommandService as _0x224820,IPermissionService as _0x28f6f7,ThemeService as _0x5bc95c,Disposable as _0x4aad88,DisposableCollection as _0x42a948,Univer as _0x47eb2f,IAuthzIoService as _0x492657,CommandType as _0x190338,UniverInstanceType as _0xc233d6,RxDisposable as _0x488257,toDisposable as _0x3ceea9,Plugin as _0xc6fa17,merge as _0x19cac6,Injector as _0x52f041}from'@univerjs/core';import{UniverCollaborationPlugin as _0x32fb82,RevertRevisionMutation as _0x3597e3,CollaborationEvent as _0x574f46}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x19d43f,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x10d54f,CollaborationController as _0x44e7de,ILocalCacheService as _0x548fb8,CollaborationStatus as _0x5c2d44}from'@univerjs-pro/collaboration-client';import{MessageType as _0x3e6f44}from'@univerjs/design';import{useRef as _0x3d30c4,createElement as _0x243747,forwardRef as _0x26f19d}from'react';import{IMessageService as _0x32fe6c,IDialogService as _0x358e13,ISidebarService as _0x9174b0,UniverUIPlugin as _0xccc37b,getMenuHiddenObservable as _0x8bc998,MenuItemType as _0x3adfbd,RibbonStartGroup as _0x4f03de,IMenuManagerService as _0x54668e,ComponentManager as _0x5ae537}from'@univerjs/ui';import{BehaviorSubject as _0x3b622a,combineLatest as _0x184ea2}from'rxjs';import{RangeProtectionRuleModel as _0x53c595,UniverSheetsPlugin as _0x848112,WorkbookEditablePermission as _0x2d00a1,WorksheetEditPermission as _0x463647,RangeProtectionPermissionEditPoint as _0x54e2d9,WorkbookRecoverHistoryPermission as _0x2cd4cc,getSheetCommandTarget as _0x78a46d,WorkbookViewHistoryPermission as _0x56ca48}from'@univerjs/sheets';import{UniverEditHistoryViewerPlugin as _0x5114c4,HistoryManagerService as _0x54b46a,HistoryModeStatus as _0x55884d}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x182f46,UniverLicensePlugin as _0x462a18}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x3750c7}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0x2e5bb9}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x566188}from'@univerjs-pro/sheets-pivot';import{UniverSheetSparklinePlugin as _0x13f046}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x5bf6e1}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x38d957}from'@univerjs/data-validation';import{UniverDocsPlugin as _0x5a7022}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x24f393}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0xa6479c,IImageIoService as _0x28f985}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x2721c0}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x4bf4de}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x44207b}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x3b45ea}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x2bfb6a,PLUGIN_CONFIG_KEY_MAIN_THREAD as _0x5c685c}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x5a8cd7}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x22485c}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x2a4e8d}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0xbb4d8e}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x52aa7d}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x4059e2}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x1c9104}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x27c3a4}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x5bc16c}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x50fefa}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x1c5f34}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x415ac6}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x5b3099}from'@univerjs/sheets-numfmt';function _0x5c09(_0x7b566a,_0x270ec7){_0x7b566a=_0x7b566a-0x132;const _0x3e35dc=_0x3e35();let _0x5c09f7=_0x3e35dc[_0x7b566a];return _0x5c09f7;}import{UniverSheetsUIPlugin as _0x34386c,getCurrentRangeDisable$ as _0x119c3d}from'@univerjs/sheets-ui';const U=_0x25f2b8(0x143),N={};function F({ref:_0x27dfbc,..._0x172a01}){const _0x23292a=_0x25f2b8,{icon:_0x46fc7c,id:_0x4fec00,className:_0x39e4e5,extend:_0x4db7e3,..._0x3d9ef7}=_0x172a01,_0x41b701=(_0x23292a(0x1da)+_0x4fec00+'\x20'+(_0x39e4e5||''))['trim'](),_0x43a674=_0x3d30c4('_'+hi());return j(_0x46fc7c,''+_0x4fec00,{'defIds':_0x46fc7c[_0x23292a(0x175)],'idSuffix':_0x43a674[_0x23292a(0x1d8)]},{'ref':_0x27dfbc,'className':_0x41b701,..._0x3d9ef7},_0x4db7e3);}function j(_0x369763,_0xddc5f2,_0xbdd1bb,_0xb50a88,_0x69f36c){const _0x43d4f9=_0x25f2b8;return _0x243747(_0x369763[_0x43d4f9(0x18f)],{'key':_0xddc5f2,...ci(_0x369763,_0xbdd1bb,_0x69f36c),..._0xb50a88},(li(_0x369763,_0xbdd1bb)[_0x43d4f9(0x1a0)]||[])[_0x43d4f9(0x15b)]((_0x30738f,_0x420f39)=>j(_0x30738f,_0xddc5f2+'-'+_0x369763[_0x43d4f9(0x18f)]+'-'+_0x420f39,_0xbdd1bb,void 0x0,_0x69f36c)));}function ci(_0x4ff2f6,_0x39fb15,_0x2c6096){const _0x2705a0=_0x25f2b8,_0x2edb81={..._0x4ff2f6['attrs']};_0x2c6096!=null&&_0x2c6096['colorChannel1']&&_0x2edb81[_0x2705a0(0x162)]===_0x2705a0(0x177)&&(_0x2edb81['fill']=_0x2c6096[_0x2705a0(0x177)]),_0x4ff2f6[_0x2705a0(0x18f)]===_0x2705a0(0x16c)&&_0x2edb81['id']&&(_0x2edb81['id']=_0x2edb81['id']+_0x39fb15[_0x2705a0(0x1b4)]),Object[_0x2705a0(0x18a)](_0x2edb81)[_0x2705a0(0x169)](([_0x5c3ddd,_0x3d49d4])=>{const _0x499301=_0x2705a0;_0x5c3ddd==='mask'&&typeof _0x3d49d4==_0x499301(0x178)&&(_0x2edb81[_0x5c3ddd]=_0x3d49d4['replace'](/url\(#(.*)\)/,_0x499301(0x145)+_0x39fb15[_0x499301(0x1b4)]+')'));});const {defIds:_0x46613f}=_0x39fb15;return!_0x46613f||_0x46613f[_0x2705a0(0x1c1)]===0x0||(_0x4ff2f6['tag']===_0x2705a0(0x140)&&_0x2edb81['xlink:href']&&(_0x2edb81[_0x2705a0(0x147)]=_0x2edb81[_0x2705a0(0x147)]+_0x39fb15[_0x2705a0(0x1b4)]),Object[_0x2705a0(0x18a)](_0x2edb81)[_0x2705a0(0x169)](([_0x3c4a40,_0x159b23])=>{const _0x4b5a3d=_0x2705a0;typeof _0x159b23==_0x4b5a3d(0x178)&&(_0x2edb81[_0x3c4a40]=_0x159b23['replace'](/url\(#(.*)\)/,'url(#$1'+_0x39fb15[_0x4b5a3d(0x1b4)]+')'));})),_0x2edb81;}function li(_0x3602f7,_0x2130cf){const _0x276924=_0x25f2b8;var _0x1eb50f;const {defIds:_0x525bfc}=_0x2130cf;return!_0x525bfc||_0x525bfc[_0x276924(0x1c1)]===0x0?_0x3602f7:_0x3602f7[_0x276924(0x18f)]==='defs'&&((_0x1eb50f=_0x3602f7[_0x276924(0x1a0)])!=null&&_0x1eb50f['length'])?{..._0x3602f7,'children':_0x3602f7[_0x276924(0x1a0)]['map'](_0x80d0b5=>typeof _0x80d0b5[_0x276924(0x1d0)]['id']==_0x276924(0x178)&&_0x525bfc&&_0x525bfc[_0x276924(0x16d)](_0x80d0b5[_0x276924(0x1d0)]['id'])?{..._0x80d0b5,'attrs':{..._0x80d0b5[_0x276924(0x1d0)],'id':_0x80d0b5[_0x276924(0x1d0)]['id']+_0x2130cf['idSuffix']}}:_0x80d0b5)}:_0x3602f7;}function _0x3e35(){const _0xca4fbd=['show','2317076kabPHL','getAllPlugins','assign','_localCacheService','get','svg','univerContainerId','registerCommand','unMountHistoryContent','historyUniver','top','some','map','history-icon_clip0_907_281','_selectionProtectionRuleModel','_messageService','onCommandExecuted','executeCommand','url(#history-icon_clip0_907_281)','fill','CHANGESET_ACK','OTHERS','./worker.js','_componentManager','\x20has\x20been\x20registered.','_init','forEach','getConfig','history-container','mask','includes','getCurrentLocale','M0\x200H16V16H0z','historyPanelComponentKey','currentTheme$','M4.45388\x204.14989H3.52896C4.61144\x202.8939\x206.21319\x202.0999\x207.9999\x202.0999C11.2584\x202.0999\x2013.8999\x204.74142\x2013.8999\x207.9999C13.8999\x2011.2584\x2011.2584\x2013.8999\x207.9999\x2013.8999C4.74142\x2013.8999\x202.0999\x2011.2584\x202.0999\x207.9999C2.0999\x207.66853\x201.83127\x207.3999\x201.4999\x207.3999C1.16853\x207.3999\x200.899902\x207.66853\x200.899902\x207.9999C0.899902\x2011.9211\x204.07868\x2015.0999\x207.9999\x2015.0999C11.9211\x2015.0999\x2015.0999\x2011.9211\x2015.0999\x207.9999C15.0999\x204.07868\x2011.9211\x200.899902\x207.9999\x200.899902C5.88709\x200.899902\x203.9903\x201.82298\x202.69023\x203.28636V2.38625C2.69023\x202.05488\x202.42161\x201.78625\x202.09023\x201.78625C1.75886\x201.78625\x201.49023\x202.05488\x201.49023\x202.38625V4.74989C1.49023\x205.08126\x201.75886\x205.34989\x202.09023\x205.34989H4.45388C4.78525\x205.34989\x205.05388\x205.08126\x205.05388\x204.74989C5.05388\x204.41851\x204.78525\x204.14989\x204.45388\x204.14989Z','dataset','dispose','defIds','editHistory.panel.revertFailed','colorChannel1','string','value','_initPlugins','100%','symbol','_config','clipPath','session','_permissionService','_historyManagerService','clear','none','set','UNIVER_SHEET','data','_localeService','substring','_collaborationController','entries','width','_configService','flat','every','tag','_dialogService','3zqcJbc','absolute','composePermission','Exited','history-icon','_initListener','getSheets','disposeWithMe','getOwnPropertyDescriptor','uComp','2128576IMtiew','status','834xYaVYT','registerPlugin','_initUniver','children','workerURL','type','block','onStarting','event$','UNIVER_CONTAINER_ID','register','left','mountHistoryContent','getElementById','displayName','setConfig','1em','location','path','getUnit','toString','add','state$','idSuffix','univer.operation.exit-edit-history','UNIVER_UNKNOWN','_sidebarService','Entered','historyListServerUrl','getSubunitRuleList','_commandService','subscribe','_historyUniver$','_injector','HistoryIcon','1642332mJfouP','length','0\x200\x2016\x2016','white','23273433AcJNAQ','97439vQhkuR','from','eventID','menu','Loading','_disposableCollection','status$','revertRevision$','_menuManagerService','setLocale','triggerLoadVersions','attrs','display','27902kgjCRd','zIndex','params','_revertErrorTimer','__getInjector','close','current','_themeService','univerjs-icon\x20univerjs-icon-','has','getSheetId','unsubscribe','exhaustSavingTask','currentColor','M8.28291\x205.16293C8.28295\x204.83156\x208.01435\x204.5629\x207.68298\x204.56287C7.35161\x204.56283\x207.08295\x204.83143\x207.08291\x205.1628L7.08252\x208.63494C7.0825\x208.79881\x207.1495\x208.95555\x207.26796\x209.06877L9.70073\x2011.3939C9.94029\x2011.6228\x2010.3201\x2011.6142\x2010.549\x2011.3747C10.778\x2011.1351\x2010.7694\x2010.7553\x2010.5298\x2010.5263L8.28255\x208.37852L8.28291\x205.16293Z','_pluginMap','univer-container','2872840IfNAjz','OPERATION','style','defineProperty','div','_checkCanRevert','_univerInstanceService','use','asObservable','editHistory.panel.listFetchError','edit-history-loader.config','next','url(#$1','invoke','xlink:href','pluginName','Error','appendChild','univer.operation.toggle-edit-history','_initContainer','[HistoryLoaderService]:\x20Plugin\x20'];_0x3e35=function(){return _0xca4fbd;};return _0x3e35();}function hi(){const _0x17099e=_0x25f2b8;return Math['random']()[_0x17099e(0x1b1)](0x24)[_0x17099e(0x188)](0x2,0x8);}F['displayName']='UniverIcon';const ui={'tag':_0x25f2b8(0x154),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x25f2b8(0x1c2),'width':_0x25f2b8(0x1ad),'height':_0x25f2b8(0x1ad)},'children':[{'tag':'g','attrs':{'fill':_0x25f2b8(0x135),'clipPath':_0x25f2b8(0x161)},'children':[{'tag':_0x25f2b8(0x1af),'attrs':{'d':_0x25f2b8(0x172)}},{'tag':_0x25f2b8(0x1af),'attrs':{'d':_0x25f2b8(0x136)}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x25f2b8(0x17e),'attrs':{'id':_0x25f2b8(0x15c)},'children':[{'tag':_0x25f2b8(0x1af),'attrs':{'fill':_0x25f2b8(0x1c3),'d':_0x25f2b8(0x16f)}}]}]}],'defIds':[_0x25f2b8(0x15c)]},V=_0x26f19d(function(_0x5ca7fd,_0x35bcc4){const _0x34fd86=_0x25f2b8;return _0x243747(F,Object[_0x34fd86(0x151)]({},_0x5ca7fd,{'id':_0x34fd86(0x195),'ref':_0x35bcc4,'icon':ui}));});V[_0x25f2b8(0x1ab)]=_0x25f2b8(0x1bf);var gi=Object['getOwnPropertyDescriptor'],mi=(_0x26a46e,_0x31b08f,_0x1c5bfc,_0x4c478a)=>{const _0x29fc05=_0x25f2b8;for(var _0x2235b0=_0x4c478a>0x1?void 0x0:_0x4c478a?gi(_0x31b08f,_0x1c5bfc):_0x31b08f,_0x4bd94a=_0x26a46e[_0x29fc05(0x1c1)]-0x1,_0x2996fb;_0x4bd94a>=0x0;_0x4bd94a--)(_0x2996fb=_0x26a46e[_0x4bd94a])&&(_0x2235b0=_0x2996fb(_0x2235b0)||_0x2235b0);return _0x2235b0;},l=(_0x283ef9,_0x29dee0)=>(_0xb9d65b,_0x300ea9)=>_0x29dee0(_0xb9d65b,_0x300ea9,_0x283ef9);const vi=_0x25f2b8(0x138),G=_0x25f2b8(0x1a6),d='univer-history-container';let f=class extends _0x4aad88{constructor(_0x1c8348,_0x34d303,_0x1119eb,_0x3f6036,_0x2425bd,_0x1f7b88,_0x5dfc2a,_0x5ac488,_0xf1e551,_0x366ce2){const _0x37519e=_0x25f2b8;super(),g(this,'_historyUniver$',new _0x3b622a(null)),g(this,'historyUniver$',this[_0x37519e(0x1bd)][_0x37519e(0x141)]()),g(this,_0x37519e(0x1ca),new _0x42a948()),g(this,'_pluginMap',new Map()),(this[_0x37519e(0x187)]=_0x1c8348,this['_univerInstanceService']=_0x34d303,this[_0x37519e(0x18c)]=_0x1119eb,this[_0x37519e(0x1bb)]=_0x3f6036,this[_0x37519e(0x15e)]=_0x2425bd,this[_0x37519e(0x180)]=_0x1f7b88,this['_selectionProtectionRuleModel']=_0x5dfc2a,this[_0x37519e(0x190)]=_0x5ac488,this[_0x37519e(0x1b7)]=_0xf1e551,this['_themeService']=_0x366ce2,this['_init']());}get['historyUniver'](){const _0x3a7f78=_0x25f2b8;return this[_0x3a7f78(0x1bd)][_0x3a7f78(0x179)];}[_0x25f2b8(0x168)](){const _0x177b00=_0x25f2b8;this[_0x177b00(0x14c)](),this[_0x177b00(0x17a)]();}[_0x25f2b8(0x14c)](){const _0x2ea59c=_0x25f2b8;var _0x524e00;const _0x411388=(_0x524e00=this['_configService'][_0x2ea59c(0x16a)](G))!=null?_0x524e00:vi,_0x4877d1=document[_0x2ea59c(0x1aa)](_0x411388);if(!_0x4877d1)return;const _0x53838f=document['createElement'](_0x2ea59c(0x13d));_0x53838f['id']=d,_0x53838f[_0x2ea59c(0x173)][_0x2ea59c(0x19a)]=_0x2ea59c(0x16b),_0x53838f['style']['position']=_0x2ea59c(0x192),_0x53838f[_0x2ea59c(0x13b)][_0x2ea59c(0x159)]='0',_0x53838f['style'][_0x2ea59c(0x1a8)]='0',_0x53838f[_0x2ea59c(0x13b)][_0x2ea59c(0x18b)]='100%',_0x53838f[_0x2ea59c(0x13b)]['height']=_0x2ea59c(0x17b),_0x53838f[_0x2ea59c(0x13b)][_0x2ea59c(0x1d3)]='1000',_0x53838f[_0x2ea59c(0x13b)][_0x2ea59c(0x1d1)]=_0x2ea59c(0x183),_0x4877d1[_0x2ea59c(0x14a)](_0x53838f);}['_initPlugins'](){const _0x3a88c3=_0x25f2b8;var _0xce6c9f,_0x3f66f9,_0xf9e9aa,_0x226636;[[_0x44207b],[_0xccc37b,{'container':d,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x358e13,null]]}],[_0x3b45ea],[_0xa6479c,{'override':[[_0x28f985,null]]}],[_0x5a7022,{'hasScroll':!0x1}],[_0x24f393],[_0x5b3099],[_0x848112,{'notExecuteFormula':!0x0}],[_0x34386c],[_0x5bc16c],[_0x50fefa],[_0x32fb82],[_0x1c9104],[_0x27c3a4],[_0x5a8cd7],[_0x22485c],[_0x1c5f34],[_0x415ac6],[_0x38d957],[_0x2a4e8d],[_0xbb4d8e],[_0x4bf4de,{'notExecuteFormula':!0x0}],[_0x2bfb6a,{'workerURL':(_0x3f66f9=(_0xce6c9f=this[_0x3a88c3(0x18c)]['getConfig'](_0x5c685c))==null?void 0x0:_0xce6c9f[_0x3a88c3(0x1a1)])!=null?_0x3f66f9:_0x3a88c3(0x165)}],[_0x2721c0],[_0x52aa7d],[_0x4059e2],[_0x13f046],[_0x5bf6e1],[_0x3750c7],[_0x2e5bb9],[_0x566188,{'notExecuteFormula':!0x0}],[_0x5114c4,{'historyListServerUrl':(_0xf9e9aa=this[_0x3a88c3(0x18c)][_0x3a88c3(0x16a)](U))==null?void 0x0:_0xf9e9aa[_0x3a88c3(0x1b9)],'historyPanelComponentKey':(_0x226636=this[_0x3a88c3(0x18c)][_0x3a88c3(0x16a)](U))==null?void 0x0:_0x226636[_0x3a88c3(0x170)]}]][_0x3a88c3(0x169)](([_0x332e9f,_0x5d130e])=>this[_0x3a88c3(0x19e)](_0x332e9f,_0x5d130e));}[_0x25f2b8(0x174)](){const _0x2fb92a=_0x25f2b8;super[_0x2fb92a(0x174)](),this['unMountHistoryContent'](),this[_0x2fb92a(0x137)][_0x2fb92a(0x182)]();}[_0x25f2b8(0x19e)](_0x2970e1,_0xafdffb,_0x1b91be){const _0x2da53e=_0x25f2b8;if(this[_0x2da53e(0x137)][_0x2da53e(0x1db)](_0x2970e1[_0x2da53e(0x148)])&&!_0x1b91be)throw new Error(_0x2da53e(0x14d)+_0x2970e1[_0x2da53e(0x148)]+_0x2da53e(0x167));this[_0x2da53e(0x137)][_0x2da53e(0x184)](_0x2970e1['pluginName'],[_0x2970e1,_0xafdffb]);}[_0x25f2b8(0x150)](){const _0x3c45bb=_0x25f2b8;return Array[_0x3c45bb(0x1c6)](this[_0x3c45bb(0x137)]['values']());}['mountHistoryContent'](_0x17525a){const _0x15e371=_0x25f2b8,_0x24a825=document['getElementById'](d);_0x24a825&&(_0x24a825['style'][_0x15e371(0x1d1)]=_0x15e371(0x1a3),this[_0x15e371(0x19f)](_0x17525a,d));}[_0x25f2b8(0x157)](){const _0x6e46f2=_0x25f2b8;var _0xdda761;this['_disposableCollection'][_0x6e46f2(0x174)](),(_0xdda761=this['historyUniver'])==null||_0xdda761[_0x6e46f2(0x174)](),this[_0x6e46f2(0x1bd)]['next'](null);const _0x2548ba=document['getElementById'](d);_0x2548ba&&(_0x2548ba['style']['display']=_0x6e46f2(0x183));}[_0x25f2b8(0x19f)](_0x1bbf5c,_0x367a6c){const _0x36a618=_0x25f2b8;if(this[_0x36a618(0x158)])return;const _0x4aa6e5=new _0x47eb2f({'locales':{[this[_0x36a618(0x187)][_0x36a618(0x16e)]()]:this[_0x36a618(0x187)]['getLocales']()},'override':[[_0x492657,{'useClass':_0x19d43f}]]}),_0x289ad0=_0x4aa6e5[_0x36a618(0x1d6)]();this[_0x36a618(0x198)](this[_0x36a618(0x1d9)]['darkMode$'][_0x36a618(0x1bc)](_0x4f9d1f=>{const _0x1d9358=_0x36a618;_0x289ad0[_0x1d9358(0x153)](_0x5bc95c)['setDarkMode'](_0x4f9d1f);})),this[_0x36a618(0x198)](this[_0x36a618(0x1d9)][_0x36a618(0x171)][_0x36a618(0x1bc)](_0x58449f=>{const _0x93d3fe=_0x36a618;_0x289ad0[_0x93d3fe(0x153)](_0x5bc95c)['setTheme'](_0x58449f);})),_0x289ad0[_0x36a618(0x153)](_0xb0452e)[_0x36a618(0x1ce)](this[_0x36a618(0x187)]['getCurrentLocale']()),_0x289ad0[_0x36a618(0x153)](_0x131274)[_0x36a618(0x1ac)](_0x10d54f,this[_0x36a618(0x18c)][_0x36a618(0x16a)](_0x10d54f));const _0x5d6870=this['_configService'][_0x36a618(0x16a)](_0x182f46);_0x5d6870&&_0x4aa6e5['registerPlugin'](_0x462a18,{'license':_0x5d6870['ls']}),this[_0x36a618(0x137)][_0x36a618(0x169)](([_0x179ce4,_0x5dc81e])=>{_0x4aa6e5['registerPlugin'](_0x179ce4,_0x5dc81e);}),_0x289ad0[_0x36a618(0x146)](_0x19da77=>{const _0x1f6e55=_0x36a618;this[_0x1f6e55(0x196)](_0x19da77,_0x1bbf5c);}),this[_0x36a618(0x1bd)][_0x36a618(0x144)](_0x4aa6e5);const _0x2e4e06=_0x289ad0[_0x36a618(0x153)](_0x54b46a),_0x249d0f=this['_checkCanRevert'](_0x1bbf5c);_0x2e4e06[_0x36a618(0x1cf)](_0x1bbf5c,_0x367a6c,_0x249d0f);}[_0x25f2b8(0x196)](_0x182160,_0x13a415){const _0x113695=_0x25f2b8,_0x1dd66b=_0x182160[_0x113695(0x153)](_0x54b46a);this[_0x113695(0x1ca)][_0x113695(0x1b2)](_0x1dd66b[_0x113695(0x1cb)][_0x113695(0x1bc)](_0x4e5def=>{const _0x43a3de=_0x113695;switch(_0x4e5def){case _0x55884d[_0x43a3de(0x1b8)]:this[_0x43a3de(0x190)]['closeAll'](),this[_0x43a3de(0x1b7)][_0x43a3de(0x1d7)]();break;case _0x55884d[_0x43a3de(0x194)]:this[_0x43a3de(0x1bb)][_0x43a3de(0x160)](W['id']),this['unMountHistoryContent']();break;case _0x55884d[_0x43a3de(0x149)]:this[_0x43a3de(0x157)](),this[_0x43a3de(0x15e)][_0x43a3de(0x14e)]({'content':this['_localeService']['t'](_0x43a3de(0x142)),'type':_0x3e6f44[_0x43a3de(0x149)],'duration':0xbb8});break;}})),this[_0x113695(0x1ca)][_0x113695(0x1b2)](_0x1dd66b[_0x113695(0x1cc)][_0x113695(0x1bc)](async _0x1cd8e0=>{const _0x2eb600=_0x113695;_0x1cd8e0&&this[_0x2eb600(0x1bb)][_0x2eb600(0x160)](_0x3597e3['id'],{'unitId':_0x13a415,'revision':_0x1cd8e0});}));}[_0x25f2b8(0x13e)](_0x53d226){const _0x28b959=_0x25f2b8,_0x200c31=this[_0x28b959(0x13f)][_0x28b959(0x1b0)](_0x53d226)[_0x28b959(0x197)]()[_0x28b959(0x15b)](_0x22222e=>_0x22222e[_0x28b959(0x132)]()),_0xfe47ea=new _0x2d00a1(_0x53d226)['id'],_0x554fb3=_0x200c31[_0x28b959(0x15b)](_0x345a72=>new _0x463647(_0x53d226,_0x345a72)['id']),_0x28daf9=_0x200c31[_0x28b959(0x15b)](_0x51e7cd=>this[_0x28b959(0x15d)][_0x28b959(0x1ba)](_0x53d226,_0x51e7cd)[_0x28b959(0x15b)](_0x3a8e8c=>new _0x54e2d9(_0x53d226,_0x51e7cd,_0x3a8e8c['permissionId'])['id']))[_0x28b959(0x18d)](),_0x18fbd3=new _0x2cd4cc(_0x53d226)['id'];return this[_0x28b959(0x180)][_0x28b959(0x193)]([_0xfe47ea,..._0x554fb3,..._0x28daf9,_0x18fbd3])[_0x28b959(0x18e)](_0x19f123=>!!_0x19f123[_0x28b959(0x179)]);}};f=mi([l(0x0,_0x41efd7(_0xb0452e)),l(0x1,_0x8a5a9d),l(0x2,_0x131274),l(0x3,_0x224820),l(0x4,_0x32fe6c),l(0x5,_0x28f6f7),l(0x6,_0x41efd7(_0x53c595)),l(0x7,_0x41efd7(_0x358e13)),l(0x8,_0x41efd7(_0x9174b0)),l(0x9,_0x41efd7(_0x5bc95c))],f);const b={'id':_0x25f2b8(0x14b),'type':_0x190338[_0x25f2b8(0x13a)],'handler':_0x5e57b8=>{const _0x4fa70a=_0x25f2b8,_0x1f3108=_0x5e57b8[_0x4fa70a(0x153)](f),_0x255e8e=_0x5e57b8['get'](_0x8a5a9d),{unitId:_0x546ca1}=_0x78a46d(_0x255e8e)||{};return _0x546ca1?(_0x1f3108[_0x4fa70a(0x1a9)](_0x546ca1),!0x0):!0x1;}},W={'id':_0x25f2b8(0x1b5),'type':_0x190338['OPERATION'],'handler':()=>!0x0};function di(_0x331b20){const _0x522823=_0x25f2b8;return{'id':b['id'],'type':_0x3adfbd['BUTTON'],'icon':_0x522823(0x1bf),'tooltip':'editHistory.panel.title','hidden$':_0x8bc998(_0x331b20,_0xc233d6[_0x522823(0x185)]),'disabled$':_0x119c3d(_0x331b20,{'workbookTypes':[_0x2d00a1,_0x56ca48],'worksheetTypes':[],'rangeTypes':[]})};}const fi={[_0x4f03de[_0x25f2b8(0x164)]]:{[b['id']]:{'order':0.2,'menuItemFactory':di}}};var _i=Object[_0x25f2b8(0x199)],pi=(_0x537811,_0x18a720,_0x254452,_0x3911d2)=>{const _0x42c50a=_0x25f2b8;for(var _0x3f30cf=_0x3911d2>0x1?void 0x0:_0x3911d2?_i(_0x18a720,_0x254452):_0x18a720,_0x4a62eb=_0x537811[_0x42c50a(0x1c1)]-0x1,_0x115ac6;_0x4a62eb>=0x0;_0x4a62eb--)(_0x115ac6=_0x537811[_0x4a62eb])&&(_0x3f30cf=_0x115ac6(_0x3f30cf)||_0x3f30cf);return _0x3f30cf;},m=(_0x28d059,_0x5841c3)=>(_0x5a2916,_0x513b51)=>_0x5841c3(_0x5a2916,_0x513b51,_0x28d059);let p=class extends _0x488257{constructor(_0x7c4d5f,_0xfe4767,_0x431e60,_0x27e575,_0x1b55f5,_0x1c9692,_0x1dc077,_0x19fccf){const _0x442ef9=_0x25f2b8;super(),g(this,'_revertErrorTimer',null),(this[_0x442ef9(0x1bb)]=_0x7c4d5f,this['_menuManagerService']=_0xfe4767,this[_0x442ef9(0x166)]=_0x431e60,this[_0x442ef9(0x181)]=_0x27e575,this[_0x442ef9(0x187)]=_0x1b55f5,this['_messageService']=_0x1c9692,this[_0x442ef9(0x189)]=_0x1dc077,this[_0x442ef9(0x152)]=_0x19fccf,this[_0x442ef9(0x168)]());}[_0x25f2b8(0x168)](){const _0x2c75f3=_0x25f2b8;[b,W][_0x2c75f3(0x169)](_0x2fd26a=>this[_0x2c75f3(0x198)](_0x3ceea9(this['_commandService'][_0x2c75f3(0x156)](_0x2fd26a)))),this[_0x2c75f3(0x198)](this[_0x2c75f3(0x166)][_0x2c75f3(0x1a7)](_0x2c75f3(0x1bf),V)),this[_0x2c75f3(0x1cd)]['mergeMenu'](fi),this[_0x2c75f3(0x198)](this[_0x2c75f3(0x1bb)][_0x2c75f3(0x15f)](_0x7c287b=>{const _0x18a85a=_0x2c75f3;if(_0x7c287b['id']===_0x3597e3['id']){this[_0x18a85a(0x15e)][_0x18a85a(0x14e)]({'content':this['_localeService']['t']('editHistory.panel.reverting'),'type':_0x3e6f44[_0x18a85a(0x1c9)],'duration':0x1388});const {unitId:_0x27b184}=_0x7c287b[_0x18a85a(0x1d4)],_0xfd07cf=this['_collaborationController']['getCollabEntity'](_0x27b184),_0x288fb1=_0x184ea2([_0xfd07cf[_0x18a85a(0x17f)][_0x18a85a(0x1a5)],_0xfd07cf[_0x18a85a(0x1b3)]])[_0x18a85a(0x1bc)](async([_0x408605,_0x307910])=>{const _0x5ec576=_0x18a85a;var _0x57a159;_0x408605[_0x5ec576(0x1c7)]===_0x574f46[_0x5ec576(0x163)]&&(_0x307910==null?void 0x0:_0x307910[_0x5ec576(0x19c)])===_0x5c2d44['SYNCED']&&_0x408605[_0x5ec576(0x186)]['mutations'][_0x5ec576(0x15a)](_0x4baf3d=>_0x4baf3d['id']===_0x3597e3['id'])&&(this[_0x5ec576(0x181)]['unMountHistoryContent'](),_0x288fb1['unsubscribe'](),this[_0x5ec576(0x1d5)]&&clearTimeout(this['_revertErrorTimer']),await((_0x57a159=this[_0x5ec576(0x152)])==null?void 0x0:_0x57a159[_0x5ec576(0x134)]()),setTimeout(()=>window[_0x5ec576(0x1ae)]['reload']()));});this[_0x18a85a(0x1d5)]=setTimeout(()=>{const _0x5b3669=_0x18a85a;_0x288fb1[_0x5b3669(0x133)](),this['_messageService'][_0x5b3669(0x14e)]({'content':this[_0x5b3669(0x187)]['t'](_0x5b3669(0x176)),'type':_0x3e6f44[_0x5b3669(0x149)],'duration':0xbb8});},0x1388);}}));}};p=pi([m(0x0,_0x224820),m(0x1,_0x54668e),m(0x2,_0x41efd7(_0x5ae537)),m(0x3,_0x41efd7(f)),m(0x4,_0x41efd7(_0xb0452e)),m(0x5,_0x32fe6c),m(0x6,_0x41efd7(_0x44e7de)),m(0x7,_0x548fb8)],p);var Si=Object[_0x25f2b8(0x199)],Ci=(_0x178c98,_0x586574,_0x251f9a,_0x14e4c3)=>{for(var _0x5e8b1f=_0x14e4c3>0x1?void 0x0:_0x14e4c3?Si(_0x586574,_0x251f9a):_0x586574,_0x46e84e=_0x178c98['length']-0x1,_0x574cf0;_0x46e84e>=0x0;_0x46e84e--)(_0x574cf0=_0x178c98[_0x46e84e])&&(_0x5e8b1f=_0x574cf0(_0x5e8b1f)||_0x5e8b1f);return _0x5e8b1f;},R=(_0x2fd963,_0x4ded13)=>(_0x522c66,_0x4be751)=>_0x4ded13(_0x522c66,_0x4be751,_0x2fd963);const yi='UNIVER_EDIT_HISTORY_LOADER_PLUGIN';var _;let H=(_=class extends _0xc6fa17{constructor(_0x55f2f=N,_0x29e925,_0x1cb192){const _0x3af17f=_0x25f2b8;super(),this[_0x3af17f(0x17d)]=_0x55f2f,this[_0x3af17f(0x1be)]=_0x29e925,this[_0x3af17f(0x18c)]=_0x1cb192;const {menu:_0xb1916,..._0x376299}=_0x19cac6({},N,this[_0x3af17f(0x17d)]);_0xb1916&&this[_0x3af17f(0x18c)]['setConfig'](_0x3af17f(0x1c8),_0xb1916,{'merge':!0x0}),this[_0x3af17f(0x18c)][_0x3af17f(0x1ac)](U,_0x376299),this[_0x3af17f(0x17d)][_0x3af17f(0x155)]&&this[_0x3af17f(0x18c)][_0x3af17f(0x1ac)](G,this[_0x3af17f(0x17d)][_0x3af17f(0x155)]);}[_0x25f2b8(0x1a4)](){const _0x20423d=_0x25f2b8;[[f],[p]]['forEach'](_0x22d5bd=>this[_0x20423d(0x1be)]['add'](_0x22d5bd));}['onSteady'](){const _0x42bfd0=_0x25f2b8;this['_injector'][_0x42bfd0(0x153)](p);}},g(_,_0x25f2b8(0x1a2),_0xc233d6[_0x25f2b8(0x1b6)]),g(_,'pluginName',yi),_);H=Ci([R(0x1,_0x41efd7(_0x52f041)),R(0x2,_0x131274)],H);export{f as HistoryLoaderService,G as UNIVER_CONTAINER_ID_KEY,d as UNIVER_HISTORY_CONTAINER_ID,H as UniverEditHistoryLoaderPlugin};
|
|
1
|
+
const _0x26f5c5=_0x4153;(function(_0xeefe72,_0x3eb864){const _0xe0a80e=_0x4153,_0x513b57=_0xeefe72();while(!![]){try{const _0x5a5627=-parseInt(_0xe0a80e(0xe3))/0x1+parseInt(_0xe0a80e(0x108))/0x2+parseInt(_0xe0a80e(0xb3))/0x3+-parseInt(_0xe0a80e(0x92))/0x4+-parseInt(_0xe0a80e(0xa6))/0x5+-parseInt(_0xe0a80e(0x11f))/0x6*(-parseInt(_0xe0a80e(0xa0))/0x7)+parseInt(_0xe0a80e(0xcc))/0x8*(parseInt(_0xe0a80e(0xeb))/0x9);if(_0x5a5627===_0x3eb864)break;else _0x513b57['push'](_0x513b57['shift']());}catch(_0xa7e573){_0x513b57['push'](_0x513b57['shift']());}}}(_0x32cd,0xa6ff8));var Y=Object[_0x26f5c5(0xdc)],B=(_0x48f30a,_0xc601c9,_0x49d258)=>_0xc601c9 in _0x48f30a?Y(_0x48f30a,_0xc601c9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49d258}):_0x48f30a[_0xc601c9]=_0x49d258,g=(_0x356be4,_0x1224d4,_0x45017a)=>B(_0x356be4,typeof _0x1224d4!=_0x26f5c5(0xf2)?_0x1224d4+'':_0x1224d4,_0x45017a);import{Inject as _0xb38479,LocaleService as _0x2e1af7,IUniverInstanceService as _0x1b154f,IConfigService as _0x3c4f6c,ICommandService as _0xeae62a,IPermissionService as _0x796d7,ThemeService as _0x38a186,Disposable as _0x17bff1,DisposableCollection as _0x76eaa7,Univer as _0x4059ab,IAuthzIoService as _0x35a2a6,CommandType as _0x583198,UniverInstanceType as _0x500737,RxDisposable as _0x371026,toDisposable as _0x3c8bed,Plugin as _0x5857f0,merge as _0x100c73,Injector as _0x198ee0}from'@univerjs/core';import{UniverCollaborationPlugin as _0x64c4c0,RevertRevisionMutation as _0xd1193f,CollaborationEvent as _0x28d345}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x531ebd,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x2a6248,CollaborationController as _0x250a30,ILocalCacheService as _0x43cb3d,CollaborationStatus as _0x188bde}from'@univerjs-pro/collaboration-client';import{MessageType as _0x58132a}from'@univerjs/design';import{useRef as _0xbdb9eb,createElement as _0x3228e2,forwardRef as _0x47085a}from'react';import{IMessageService as _0x3ff56f,IDialogService as _0x44bef5,ISidebarService as _0x49ae37,UniverUIPlugin as _0x408dd5,getMenuHiddenObservable as _0x4b4794,MenuItemType as _0x1200ff,RibbonStartGroup as _0x202139,IMenuManagerService as _0x18b5b2,ComponentManager as _0xc50fc4}from'@univerjs/ui';import{BehaviorSubject as _0x52b858,combineLatest as _0x19dfa3}from'rxjs';import{RangeProtectionRuleModel as _0xf75585,UniverSheetsPlugin as _0x272656,WorkbookEditablePermission as _0x45614f,WorksheetEditPermission as _0x23fd86,RangeProtectionPermissionEditPoint as _0x36dacb,WorkbookRecoverHistoryPermission as _0x3514f3,getSheetCommandTarget as _0x53e9a1,WorkbookViewHistoryPermission as _0x4c0659}from'@univerjs/sheets';import{UniverEditHistoryViewerPlugin as _0x1d25c0,HistoryManagerService as _0x16646d,HistoryModeStatus as _0x5180a7}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x4db0d1,UniverLicensePlugin as _0xd6f678}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x1ea352}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0x181e32}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x436dc8}from'@univerjs-pro/sheets-pivot';import{UniverSheetSparklinePlugin as _0x5dda31}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x1469cd}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x158e32}from'@univerjs/data-validation';import{UniverDocsPlugin as _0xe81348}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x185513}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0x17d3b4,IImageIoService as _0x2c823b}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x352f14}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x5d4683}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x3a9b1a}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x3b2836}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x4fad4a,PLUGIN_CONFIG_KEY_MAIN_THREAD as _0x1da40e}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x879b86}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x378399}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x4400f4}from'@univerjs/sheets-data-validation';function _0x32cd(){const _0x4646cb=['dataset','_localCacheService','height','getAllPlugins','url(#history-icon_clip0_907_281)','assign','104mYSZdO','getLocales','getSheetId','_messageService','uComp','unMountHistoryContent','triggerLoadVersions','editHistory.panel.reverting','path','_historyUniver$','_initPlugins','entries','defIds','UNIVER_SHEET','position','every','defineProperty','M4.45388\x204.14989H3.52896C4.61144\x202.8939\x206.21319\x202.0999\x207.9999\x202.0999C11.2584\x202.0999\x2013.8999\x204.74142\x2013.8999\x207.9999C13.8999\x2011.2584\x2011.2584\x2013.8999\x207.9999\x2013.8999C4.74142\x2013.8999\x202.0999\x2011.2584\x202.0999\x207.9999C2.0999\x207.66853\x201.83127\x207.3999\x201.4999\x207.3999C1.16853\x207.3999\x200.899902\x207.66853\x200.899902\x207.9999C0.899902\x2011.9211\x204.07868\x2015.0999\x207.9999\x2015.0999C11.9211\x2015.0999\x2015.0999\x2011.9211\x2015.0999\x207.9999C15.0999\x204.07868\x2011.9211\x200.899902\x207.9999\x200.899902C5.88709\x200.899902\x203.9903\x201.82298\x202.69023\x203.28636V2.38625C2.69023\x202.05488\x202.42161\x201.78625\x202.09023\x201.78625C1.75886\x201.78625\x201.49023\x202.05488\x201.49023\x202.38625V4.74989C1.49023\x205.08126\x201.75886\x205.34989\x202.09023\x205.34989H4.45388C4.78525\x205.34989\x205.05388\x205.08126\x205.05388\x204.74989C5.05388\x204.41851\x204.78525\x204.14989\x204.45388\x204.14989Z','univerContainerId','mergeMenu','_configService','eventID','setTheme','97082nkYLlU','_initUniver','_collaborationController','string','top','OPERATION','M8.28291\x205.16293C8.28295\x204.83156\x208.01435\x204.5629\x207.68298\x204.56287C7.35161\x204.56283\x207.08295\x204.83143\x207.08291\x205.1628L7.08252\x208.63494C7.0825\x208.79881\x207.1495\x208.95555\x207.26796\x209.06877L9.70073\x2011.3939C9.94029\x2011.6228\x2010.3201\x2011.6142\x2010.549\x2011.3747C10.778\x2011.1351\x2010.7694\x2010.7553\x2010.5298\x2010.5263L8.28255\x208.37852L8.28291\x205.16293Z','permissionId','235089tRkfvx','event$','currentColor','next','params','asObservable','getSheets','symbol','left','historyPanelComponentKey','closeAll','_init','getOwnPropertyDescriptor','dispose','get','darkMode$','[HistoryLoaderService]:\x20Plugin\x20','subscribe','url(#$1','status$','mask','historyListServerUrl','./worker.js','_permissionService','idSuffix','BUTTON','display','edit-history-loader.config','defs','629682BMdWqX','fill','_sidebarService','displayName','createElement','getSubunitRuleList','pluginName','historyUniver','UNIVER_CONTAINER_ID','xlink:href','_initListener','attrs','use','toString','value','location','disposeWithMe','show','_selectionProtectionRuleModel','tag','length','clear','replace','14664pTXbll','_componentManager','0\x200\x2016\x2016','history-icon_clip0_907_281','_menuManagerService','data','colorChannel1','onStarting','1em','HistoryIcon','style','_historyManagerService','set','univer.operation.toggle-edit-history','_disposableCollection','_initContainer','__getInjector','100%','5283888LZmzTD','map','_injector','current','invoke','OTHERS','from','_revertErrorTimer','children','getElementById','values','setLocale','composePermission','has','3703LZYrNp','executeCommand','_univerInstanceService','http://www.w3.org/2000/svg','getCurrentLocale','_checkCanRevert','6008095msKyUo','session','SYNCED','add','zIndex','Loading','workerURL','getConfig','setConfig','mountHistoryContent','Exited','clipPath','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','4069221hXRTGD','1000','Error','random','_localeService','_pluginMap','unsubscribe','CHANGESET_ACK','forEach','registerPlugin','status','univer-history-container','_config','flat','includes','_commandService','_dialogService','history-icon','exhaustSavingTask'];_0x32cd=function(){return _0x4646cb;};return _0x32cd();}import{UniverSheetsDataValidationUIPlugin as _0x1359f1}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0xe9bfae}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x314a73}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x2ab64d}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x1ff082}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x111cff}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x16cbaa}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x217fd7}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x391f2e}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x144214}from'@univerjs/sheets-numfmt';import{UniverSheetsUIPlugin as _0x49b19d,getCurrentRangeDisable$ as _0xf8252b}from'@univerjs/sheets-ui';const U=_0x26f5c5(0x106),N={};function F({ref:_0x4169c1,..._0x27ea3d}){const _0xa0f420=_0x26f5c5,{icon:_0x2fcd7e,id:_0x46580d,className:_0x2ade1d,extend:_0x4a70ed,..._0x401621}=_0x27ea3d,_0x58d3d1=('univerjs-icon\x20univerjs-icon-'+_0x46580d+'\x20'+(_0x2ade1d||''))['trim'](),_0x8ef55d=_0xbdb9eb('_'+hi());return j(_0x2fcd7e,''+_0x46580d,{'defIds':_0x2fcd7e[_0xa0f420(0xd8)],'idSuffix':_0x8ef55d[_0xa0f420(0x95)]},{'ref':_0x4169c1,'className':_0x58d3d1,..._0x401621},_0x4a70ed);}function j(_0x494aba,_0xbdb415,_0x5a4c6e,_0x2592e9,_0x5540d7){const _0x84881d=_0x26f5c5;return _0x3228e2(_0x494aba[_0x84881d(0x11b)],{'key':_0xbdb415,...ci(_0x494aba,_0x5a4c6e,_0x5540d7),..._0x2592e9},(li(_0x494aba,_0x5a4c6e)[_0x84881d(0x9a)]||[])['map']((_0xb96357,_0x188a68)=>j(_0xb96357,_0xbdb415+'-'+_0x494aba['tag']+'-'+_0x188a68,_0x5a4c6e,void 0x0,_0x5540d7)));}function ci(_0x1498cb,_0x29103d,_0x1e393f){const _0x28f891=_0x26f5c5,_0x5e722d={..._0x1498cb['attrs']};_0x1e393f!=null&&_0x1e393f[_0x28f891(0x125)]&&_0x5e722d[_0x28f891(0x109)]==='colorChannel1'&&(_0x5e722d[_0x28f891(0x109)]=_0x1e393f[_0x28f891(0x125)]),_0x1498cb[_0x28f891(0x11b)]===_0x28f891(0xff)&&_0x5e722d['id']&&(_0x5e722d['id']=_0x5e722d['id']+_0x29103d[_0x28f891(0x103)]),Object[_0x28f891(0xd7)](_0x5e722d)['forEach'](([_0x355f86,_0x3d1489])=>{const _0x5a776f=_0x28f891;_0x355f86===_0x5a776f(0xff)&&typeof _0x3d1489==_0x5a776f(0xe6)&&(_0x5e722d[_0x355f86]=_0x3d1489[_0x5a776f(0x11e)](/url\(#(.*)\)/,'url(#$1'+_0x29103d['idSuffix']+')'));});const {defIds:_0x1ebdfd}=_0x29103d;return!_0x1ebdfd||_0x1ebdfd[_0x28f891(0x11c)]===0x0||(_0x1498cb[_0x28f891(0x11b)]===_0x28f891(0x114)&&_0x5e722d[_0x28f891(0x111)]&&(_0x5e722d[_0x28f891(0x111)]=_0x5e722d[_0x28f891(0x111)]+_0x29103d[_0x28f891(0x103)]),Object['entries'](_0x5e722d)[_0x28f891(0xbb)](([_0x17d5e6,_0x4539c9])=>{const _0x1653de=_0x28f891;typeof _0x4539c9==_0x1653de(0xe6)&&(_0x5e722d[_0x17d5e6]=_0x4539c9['replace'](/url\(#(.*)\)/,_0x1653de(0xfd)+_0x29103d[_0x1653de(0x103)]+')'));})),_0x5e722d;}function li(_0x4d0d8b,_0x572339){const _0x544162=_0x26f5c5;var _0x3a17e4;const {defIds:_0x4da600}=_0x572339;return!_0x4da600||_0x4da600[_0x544162(0x11c)]===0x0?_0x4d0d8b:_0x4d0d8b[_0x544162(0x11b)]===_0x544162(0x107)&&((_0x3a17e4=_0x4d0d8b[_0x544162(0x9a)])!=null&&_0x3a17e4[_0x544162(0x11c)])?{..._0x4d0d8b,'children':_0x4d0d8b[_0x544162(0x9a)]['map'](_0x4bfcc2=>typeof _0x4bfcc2[_0x544162(0x113)]['id']==_0x544162(0xe6)&&_0x4da600&&_0x4da600[_0x544162(0xc1)](_0x4bfcc2[_0x544162(0x113)]['id'])?{..._0x4bfcc2,'attrs':{..._0x4bfcc2[_0x544162(0x113)],'id':_0x4bfcc2['attrs']['id']+_0x572339[_0x544162(0x103)]}}:_0x4bfcc2)}:_0x4d0d8b;}function hi(){const _0x1029af=_0x26f5c5;return Math[_0x1029af(0xb6)]()[_0x1029af(0x115)](0x24)['substring'](0x2,0x8);}F['displayName']='UniverIcon';const ui={'tag':'svg','attrs':{'xmlns':_0x26f5c5(0xa3),'fill':'none','viewBox':_0x26f5c5(0x121),'width':_0x26f5c5(0x127),'height':_0x26f5c5(0x127)},'children':[{'tag':'g','attrs':{'fill':_0x26f5c5(0xed),'clipPath':_0x26f5c5(0xca)},'children':[{'tag':'path','attrs':{'d':_0x26f5c5(0xdd)}},{'tag':_0x26f5c5(0xd4),'attrs':{'d':_0x26f5c5(0xe9)}}]},{'tag':_0x26f5c5(0x107),'attrs':{},'children':[{'tag':_0x26f5c5(0xb1),'attrs':{'id':'history-icon_clip0_907_281'},'children':[{'tag':_0x26f5c5(0xd4),'attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x26f5c5(0x122)]},V=_0x47085a(function(_0x1a99f2,_0xaf4a80){const _0x3aa733=_0x26f5c5;return _0x3228e2(F,Object[_0x3aa733(0xcb)]({},_0x1a99f2,{'id':_0x3aa733(0xc4),'ref':_0xaf4a80,'icon':ui}));});function _0x4153(_0x1d7703,_0x505a01){_0x1d7703=_0x1d7703-0x8e;const _0x32cd8a=_0x32cd();let _0x415358=_0x32cd8a[_0x1d7703];return _0x415358;}V[_0x26f5c5(0x10b)]='HistoryIcon';var gi=Object[_0x26f5c5(0xf7)],mi=(_0x251530,_0x2b56fe,_0x2a3434,_0x44fa89)=>{const _0x2d973d=_0x26f5c5;for(var _0x3326e2=_0x44fa89>0x1?void 0x0:_0x44fa89?gi(_0x2b56fe,_0x2a3434):_0x2b56fe,_0xadec4e=_0x251530[_0x2d973d(0x11c)]-0x1,_0x373949;_0xadec4e>=0x0;_0xadec4e--)(_0x373949=_0x251530[_0xadec4e])&&(_0x3326e2=_0x373949(_0x3326e2)||_0x3326e2);return _0x3326e2;},l=(_0x5d72e4,_0x72e5d3)=>(_0x519d73,_0x5e029e)=>_0x72e5d3(_0x519d73,_0x5e029e,_0x5d72e4);const vi='univer-container',G=_0x26f5c5(0x110),d=_0x26f5c5(0xbe);let f=class extends _0x17bff1{constructor(_0x3772df,_0x2e4e68,_0x226700,_0xaf9ff4,_0x27c158,_0x2328df,_0x5d253e,_0x838264,_0x188984,_0x1e9ed1){const _0x9d389c=_0x26f5c5;super(),g(this,_0x9d389c(0xd5),new _0x52b858(null)),g(this,'historyUniver$',this[_0x9d389c(0xd5)][_0x9d389c(0xf0)]()),g(this,_0x9d389c(0x8e),new _0x76eaa7()),g(this,_0x9d389c(0xb8),new Map()),(this[_0x9d389c(0xb7)]=_0x3772df,this[_0x9d389c(0xa2)]=_0x2e4e68,this['_configService']=_0x226700,this['_commandService']=_0xaf9ff4,this[_0x9d389c(0xcf)]=_0x27c158,this[_0x9d389c(0x102)]=_0x2328df,this['_selectionProtectionRuleModel']=_0x5d253e,this[_0x9d389c(0xc3)]=_0x838264,this[_0x9d389c(0x10a)]=_0x188984,this['_themeService']=_0x1e9ed1,this[_0x9d389c(0xf6)]());}get[_0x26f5c5(0x10f)](){const _0x4a38ae=_0x26f5c5;return this[_0x4a38ae(0xd5)]['value'];}[_0x26f5c5(0xf6)](){const _0x32f72d=_0x26f5c5;this[_0x32f72d(0x8f)](),this[_0x32f72d(0xd6)]();}['_initContainer'](){const _0x30d34e=_0x26f5c5;var _0x956bf4;const _0x284a13=(_0x956bf4=this[_0x30d34e(0xe0)][_0x30d34e(0xad)](G))!=null?_0x956bf4:vi,_0x4e6b23=document[_0x30d34e(0x9b)](_0x284a13);if(!_0x4e6b23)return;const _0x1a86e8=document[_0x30d34e(0x10c)]('div');_0x1a86e8['id']=d,_0x1a86e8[_0x30d34e(0xc6)][_0x30d34e(0xd0)]='history-container',_0x1a86e8[_0x30d34e(0x129)][_0x30d34e(0xda)]='absolute',_0x1a86e8[_0x30d34e(0x129)][_0x30d34e(0xe7)]='0',_0x1a86e8[_0x30d34e(0x129)][_0x30d34e(0xf3)]='0',_0x1a86e8[_0x30d34e(0x129)]['width']='100%',_0x1a86e8[_0x30d34e(0x129)][_0x30d34e(0xc8)]=_0x30d34e(0x91),_0x1a86e8[_0x30d34e(0x129)][_0x30d34e(0xaa)]=_0x30d34e(0xb4),_0x1a86e8['style'][_0x30d34e(0x105)]='none',_0x4e6b23['appendChild'](_0x1a86e8);}[_0x26f5c5(0xd6)](){const _0x12d9ac=_0x26f5c5;var _0x30a70a,_0x20d612,_0x59b699,_0x3e06ad;[[_0x3a9b1a],[_0x408dd5,{'container':d,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x44bef5,null]]}],[_0x3b2836],[_0x17d3b4,{'override':[[_0x2c823b,null]]}],[_0xe81348,{'hasScroll':!0x1}],[_0x185513],[_0x144214],[_0x272656,{'notExecuteFormula':!0x0}],[_0x49b19d],[_0x111cff],[_0x16cbaa],[_0x64c4c0],[_0x2ab64d],[_0x1ff082],[_0x879b86],[_0x378399],[_0x217fd7],[_0x391f2e],[_0x158e32],[_0x4400f4],[_0x1359f1],[_0x5d4683,{'notExecuteFormula':!0x0}],[_0x4fad4a,{'workerURL':(_0x20d612=(_0x30a70a=this[_0x12d9ac(0xe0)][_0x12d9ac(0xad)](_0x1da40e))==null?void 0x0:_0x30a70a[_0x12d9ac(0xac)])!=null?_0x20d612:_0x12d9ac(0x101)}],[_0x352f14],[_0xe9bfae],[_0x314a73],[_0x5dda31],[_0x1469cd],[_0x1ea352],[_0x181e32],[_0x436dc8,{'notExecuteFormula':!0x0}],[_0x1d25c0,{'historyListServerUrl':(_0x59b699=this['_configService'][_0x12d9ac(0xad)](U))==null?void 0x0:_0x59b699[_0x12d9ac(0x100)],'historyPanelComponentKey':(_0x3e06ad=this[_0x12d9ac(0xe0)]['getConfig'](U))==null?void 0x0:_0x3e06ad[_0x12d9ac(0xf4)]}]][_0x12d9ac(0xbb)](([_0x351809,_0x4de709])=>this['registerPlugin'](_0x351809,_0x4de709));}['dispose'](){const _0x16ce5b=_0x26f5c5;super[_0x16ce5b(0xf8)](),this[_0x16ce5b(0xd1)](),this['_pluginMap'][_0x16ce5b(0x11d)]();}[_0x26f5c5(0xbc)](_0x224a2d,_0x346415,_0x197bfe){const _0x558472=_0x26f5c5;if(this[_0x558472(0xb8)][_0x558472(0x9f)](_0x224a2d[_0x558472(0x10e)])&&!_0x197bfe)throw new Error(_0x558472(0xfb)+_0x224a2d['pluginName']+'\x20has\x20been\x20registered.');this[_0x558472(0xb8)][_0x558472(0x12b)](_0x224a2d['pluginName'],[_0x224a2d,_0x346415]);}[_0x26f5c5(0xc9)](){const _0x382cc9=_0x26f5c5;return Array[_0x382cc9(0x98)](this['_pluginMap'][_0x382cc9(0x9c)]());}['mountHistoryContent'](_0x37563b){const _0x2afb75=_0x26f5c5,_0x14e308=document[_0x2afb75(0x9b)](d);_0x14e308&&(_0x14e308[_0x2afb75(0x129)][_0x2afb75(0x105)]='block',this[_0x2afb75(0xe4)](_0x37563b,d));}[_0x26f5c5(0xd1)](){const _0x51ce26=_0x26f5c5;var _0x73c70a;this['_disposableCollection'][_0x51ce26(0xf8)](),(_0x73c70a=this[_0x51ce26(0x10f)])==null||_0x73c70a['dispose'](),this[_0x51ce26(0xd5)][_0x51ce26(0xee)](null);const _0x22a163=document[_0x51ce26(0x9b)](d);_0x22a163&&(_0x22a163[_0x51ce26(0x129)]['display']='none');}[_0x26f5c5(0xe4)](_0xf42072,_0x23b018){const _0x390de3=_0x26f5c5;if(this[_0x390de3(0x10f)])return;const _0x8dccfb=new _0x4059ab({'locales':{[this[_0x390de3(0xb7)][_0x390de3(0xa4)]()]:this[_0x390de3(0xb7)][_0x390de3(0xcd)]()},'override':[[_0x35a2a6,{'useClass':_0x531ebd}]]}),_0x4eb73f=_0x8dccfb[_0x390de3(0x90)]();this[_0x390de3(0x118)](this['_themeService'][_0x390de3(0xfa)]['subscribe'](_0x54e4e2=>{const _0x360fda=_0x390de3;_0x4eb73f[_0x360fda(0xf9)](_0x38a186)['setDarkMode'](_0x54e4e2);})),this[_0x390de3(0x118)](this['_themeService']['currentTheme$'][_0x390de3(0xfc)](_0xfecce2=>{const _0x14c625=_0x390de3;_0x4eb73f[_0x14c625(0xf9)](_0x38a186)[_0x14c625(0xe2)](_0xfecce2);})),_0x4eb73f['get'](_0x2e1af7)[_0x390de3(0x9d)](this['_localeService'][_0x390de3(0xa4)]()),_0x4eb73f[_0x390de3(0xf9)](_0x3c4f6c)['setConfig'](_0x2a6248,this[_0x390de3(0xe0)]['getConfig'](_0x2a6248));const _0x47d7f7=this[_0x390de3(0xe0)][_0x390de3(0xad)](_0x4db0d1);_0x47d7f7&&_0x8dccfb[_0x390de3(0xbc)](_0xd6f678,{'license':_0x47d7f7['ls']}),this['_pluginMap'][_0x390de3(0xbb)](([_0x54bb4e,_0x5b4735])=>{const _0x59a838=_0x390de3;_0x8dccfb[_0x59a838(0xbc)](_0x54bb4e,_0x5b4735);}),_0x4eb73f[_0x390de3(0x96)](_0x5a2fa5=>{const _0x2c70b9=_0x390de3;this[_0x2c70b9(0x112)](_0x5a2fa5,_0xf42072);}),this[_0x390de3(0xd5)][_0x390de3(0xee)](_0x8dccfb);const _0x158b82=_0x4eb73f['get'](_0x16646d),_0x5ddadc=this[_0x390de3(0xa5)](_0xf42072);_0x158b82[_0x390de3(0xd2)](_0xf42072,_0x23b018,_0x5ddadc);}[_0x26f5c5(0x112)](_0x2f6a58,_0x139e8e){const _0xec08ef=_0x26f5c5,_0x131e94=_0x2f6a58[_0xec08ef(0xf9)](_0x16646d);this[_0xec08ef(0x8e)][_0xec08ef(0xa9)](_0x131e94[_0xec08ef(0xfe)][_0xec08ef(0xfc)](_0x2afca1=>{const _0x4a9355=_0xec08ef;switch(_0x2afca1){case _0x5180a7['Entered']:this['_dialogService'][_0x4a9355(0xf5)](),this[_0x4a9355(0x10a)]['close']();break;case _0x5180a7[_0x4a9355(0xb0)]:this[_0x4a9355(0xc2)]['executeCommand'](W['id']),this[_0x4a9355(0xd1)]();break;case _0x5180a7[_0x4a9355(0xb5)]:this[_0x4a9355(0xd1)](),this[_0x4a9355(0xcf)]['show']({'content':this[_0x4a9355(0xb7)]['t']('editHistory.panel.listFetchError'),'type':_0x58132a[_0x4a9355(0xb5)],'duration':0xbb8});break;}})),this['_disposableCollection'][_0xec08ef(0xa9)](_0x131e94['revertRevision$'][_0xec08ef(0xfc)](async _0x2669a1=>{const _0x3b3de1=_0xec08ef;_0x2669a1&&this['_commandService'][_0x3b3de1(0xa1)](_0xd1193f['id'],{'unitId':_0x139e8e,'revision':_0x2669a1});}));}['_checkCanRevert'](_0x43ea9e){const _0x12bdc7=_0x26f5c5,_0x342f5f=this[_0x12bdc7(0xa2)]['getUnit'](_0x43ea9e)[_0x12bdc7(0xf1)]()[_0x12bdc7(0x93)](_0x54a314=>_0x54a314[_0x12bdc7(0xce)]()),_0x55b450=new _0x45614f(_0x43ea9e)['id'],_0x501e15=_0x342f5f[_0x12bdc7(0x93)](_0xfa8ef5=>new _0x23fd86(_0x43ea9e,_0xfa8ef5)['id']),_0x340e99=_0x342f5f[_0x12bdc7(0x93)](_0x3bc0e5=>this[_0x12bdc7(0x11a)][_0x12bdc7(0x10d)](_0x43ea9e,_0x3bc0e5)[_0x12bdc7(0x93)](_0x3f6f3e=>new _0x36dacb(_0x43ea9e,_0x3bc0e5,_0x3f6f3e[_0x12bdc7(0xea)])['id']))[_0x12bdc7(0xc0)](),_0x838ac=new _0x3514f3(_0x43ea9e)['id'];return this[_0x12bdc7(0x102)][_0x12bdc7(0x9e)]([_0x55b450,..._0x501e15,..._0x340e99,_0x838ac])[_0x12bdc7(0xdb)](_0x222ff4=>!!_0x222ff4[_0x12bdc7(0x116)]);}};f=mi([l(0x0,_0xb38479(_0x2e1af7)),l(0x1,_0x1b154f),l(0x2,_0x3c4f6c),l(0x3,_0xeae62a),l(0x4,_0x3ff56f),l(0x5,_0x796d7),l(0x6,_0xb38479(_0xf75585)),l(0x7,_0xb38479(_0x44bef5)),l(0x8,_0xb38479(_0x49ae37)),l(0x9,_0xb38479(_0x38a186))],f);const b={'id':_0x26f5c5(0x12c),'type':_0x583198[_0x26f5c5(0xe8)],'handler':_0x3c70c9=>{const _0x2f0532=_0x26f5c5,_0x4d800a=_0x3c70c9[_0x2f0532(0xf9)](f),_0x476f33=_0x3c70c9[_0x2f0532(0xf9)](_0x1b154f),{unitId:_0x426e55}=_0x53e9a1(_0x476f33)||{};return _0x426e55?(_0x4d800a[_0x2f0532(0xaf)](_0x426e55),!0x0):!0x1;}},W={'id':'univer.operation.exit-edit-history','type':_0x583198[_0x26f5c5(0xe8)],'handler':()=>!0x0};function di(_0x1f19f7){const _0x72619b=_0x26f5c5;return{'id':b['id'],'type':_0x1200ff[_0x72619b(0x104)],'icon':_0x72619b(0x128),'tooltip':'editHistory.panel.title','hidden$':_0x4b4794(_0x1f19f7,_0x500737[_0x72619b(0xd9)]),'disabled$':_0xf8252b(_0x1f19f7,{'workbookTypes':[_0x45614f,_0x4c0659],'worksheetTypes':[],'rangeTypes':[]})};}const fi={[_0x202139[_0x26f5c5(0x97)]]:{[b['id']]:{'order':0.2,'menuItemFactory':di}}};var _i=Object['getOwnPropertyDescriptor'],pi=(_0x18cc9e,_0x1ed577,_0xf9d7c7,_0x2e8117)=>{const _0x3d661b=_0x26f5c5;for(var _0x21ee5d=_0x2e8117>0x1?void 0x0:_0x2e8117?_i(_0x1ed577,_0xf9d7c7):_0x1ed577,_0x3bbb4c=_0x18cc9e[_0x3d661b(0x11c)]-0x1,_0x4cc30a;_0x3bbb4c>=0x0;_0x3bbb4c--)(_0x4cc30a=_0x18cc9e[_0x3bbb4c])&&(_0x21ee5d=_0x4cc30a(_0x21ee5d)||_0x21ee5d);return _0x21ee5d;},m=(_0x247168,_0x49ff4e)=>(_0x1924c1,_0x2f0bd8)=>_0x49ff4e(_0x1924c1,_0x2f0bd8,_0x247168);let p=class extends _0x371026{constructor(_0x34d20f,_0x57554e,_0x9bb375,_0x31608d,_0x4712e9,_0x5e3353,_0x414482,_0x33447e){const _0x20f5f8=_0x26f5c5;super(),g(this,'_revertErrorTimer',null),(this[_0x20f5f8(0xc2)]=_0x34d20f,this[_0x20f5f8(0x123)]=_0x57554e,this['_componentManager']=_0x9bb375,this[_0x20f5f8(0x12a)]=_0x31608d,this['_localeService']=_0x4712e9,this['_messageService']=_0x5e3353,this[_0x20f5f8(0xe5)]=_0x414482,this[_0x20f5f8(0xc7)]=_0x33447e,this[_0x20f5f8(0xf6)]());}[_0x26f5c5(0xf6)](){const _0x79c89a=_0x26f5c5;[b,W][_0x79c89a(0xbb)](_0xb1f593=>this[_0x79c89a(0x118)](_0x3c8bed(this[_0x79c89a(0xc2)]['registerCommand'](_0xb1f593)))),this[_0x79c89a(0x118)](this[_0x79c89a(0x120)]['register'](_0x79c89a(0x128),V)),this[_0x79c89a(0x123)][_0x79c89a(0xdf)](fi),this[_0x79c89a(0x118)](this[_0x79c89a(0xc2)]['onCommandExecuted'](_0x17aa6a=>{const _0x496ad8=_0x79c89a;if(_0x17aa6a['id']===_0xd1193f['id']){this['_messageService'][_0x496ad8(0x119)]({'content':this['_localeService']['t'](_0x496ad8(0xd3)),'type':_0x58132a[_0x496ad8(0xab)],'duration':0x1388});const {unitId:_0x5d19b5}=_0x17aa6a[_0x496ad8(0xef)],_0x3f10c6=this[_0x496ad8(0xe5)]['getCollabEntity'](_0x5d19b5),_0x1e6cda=_0x19dfa3([_0x3f10c6[_0x496ad8(0xa7)][_0x496ad8(0xec)],_0x3f10c6['state$']])[_0x496ad8(0xfc)](async([_0x14d97f,_0x4d3636])=>{const _0x9638a7=_0x496ad8;var _0x3e4667;_0x14d97f[_0x9638a7(0xe1)]===_0x28d345[_0x9638a7(0xba)]&&(_0x4d3636==null?void 0x0:_0x4d3636[_0x9638a7(0xbd)])===_0x188bde[_0x9638a7(0xa8)]&&_0x14d97f[_0x9638a7(0x124)]['mutations']['some'](_0x290a1f=>_0x290a1f['id']===_0xd1193f['id'])&&(this[_0x9638a7(0x12a)][_0x9638a7(0xd1)](),_0x1e6cda[_0x9638a7(0xb9)](),this[_0x9638a7(0x99)]&&clearTimeout(this['_revertErrorTimer']),await((_0x3e4667=this[_0x9638a7(0xc7)])==null?void 0x0:_0x3e4667[_0x9638a7(0xc5)]()),setTimeout(()=>window[_0x9638a7(0x117)]['reload']()));});this[_0x496ad8(0x99)]=setTimeout(()=>{const _0x9878c7=_0x496ad8;_0x1e6cda['unsubscribe'](),this[_0x9878c7(0xcf)][_0x9878c7(0x119)]({'content':this[_0x9878c7(0xb7)]['t']('editHistory.panel.revertFailed'),'type':_0x58132a[_0x9878c7(0xb5)],'duration':0xbb8});},0x1388);}}));}};p=pi([m(0x0,_0xeae62a),m(0x1,_0x18b5b2),m(0x2,_0xb38479(_0xc50fc4)),m(0x3,_0xb38479(f)),m(0x4,_0xb38479(_0x2e1af7)),m(0x5,_0x3ff56f),m(0x6,_0xb38479(_0x250a30)),m(0x7,_0x43cb3d)],p);var Si=Object[_0x26f5c5(0xf7)],Ci=(_0xaa6146,_0x7a9b0b,_0x276d50,_0x4ede15)=>{const _0x11fa6d=_0x26f5c5;for(var _0x2a77d3=_0x4ede15>0x1?void 0x0:_0x4ede15?Si(_0x7a9b0b,_0x276d50):_0x7a9b0b,_0x55c21d=_0xaa6146[_0x11fa6d(0x11c)]-0x1,_0x219d17;_0x55c21d>=0x0;_0x55c21d--)(_0x219d17=_0xaa6146[_0x55c21d])&&(_0x2a77d3=_0x219d17(_0x2a77d3)||_0x2a77d3);return _0x2a77d3;},R=(_0x57cca4,_0x4c01ab)=>(_0x532b40,_0x5b28bb)=>_0x4c01ab(_0x532b40,_0x5b28bb,_0x57cca4);const yi=_0x26f5c5(0xb2);var _;let H=(_=class extends _0x5857f0{constructor(_0x5ee2a7=N,_0x37f8ea,_0x18cab8){const _0x2837d4=_0x26f5c5;super(),this['_config']=_0x5ee2a7,this[_0x2837d4(0x94)]=_0x37f8ea,this[_0x2837d4(0xe0)]=_0x18cab8;const {menu:_0x551cfa,..._0x1c25c5}=_0x100c73({},N,this['_config']);_0x551cfa&&this[_0x2837d4(0xe0)][_0x2837d4(0xae)]('menu',_0x551cfa,{'merge':!0x0}),this[_0x2837d4(0xe0)][_0x2837d4(0xae)](U,_0x1c25c5),this[_0x2837d4(0xbf)][_0x2837d4(0xde)]&&this[_0x2837d4(0xe0)][_0x2837d4(0xae)](G,this[_0x2837d4(0xbf)]['univerContainerId']);}[_0x26f5c5(0x126)](){const _0x26ca06=_0x26f5c5;[[f],[p]]['forEach'](_0x63a84e=>this['_injector'][_0x26ca06(0xa9)](_0x63a84e));}['onSteady'](){const _0x107f71=_0x26f5c5;this['_injector'][_0x107f71(0xf9)](p);}},g(_,'type',_0x500737['UNIVER_UNKNOWN']),g(_,'pluginName',yi),_);H=Ci([R(0x1,_0xb38479(_0x198ee0)),R(0x2,_0x3c4f6c)],H);export{f as HistoryLoaderService,G as UNIVER_CONTAINER_ID_KEY,d as UNIVER_HISTORY_CONTAINER_ID,H as UniverEditHistoryLoaderPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x25f2b8=_0x5c09;(function(_0x22b510,_0x4ea1b7){const _0x5c120b=_0x5c09,_0x7adc8e=_0x22b510();while(!![]){try{const _0x2ba5e8=-parseInt(_0x5c120b(0x1c5))/0x1+-parseInt(_0x5c120b(0x14f))/0x2*(parseInt(_0x5c120b(0x191))/0x3)+-parseInt(_0x5c120b(0x1c0))/0x4+-parseInt(_0x5c120b(0x139))/0x5+-parseInt(_0x5c120b(0x19d))/0x6*(-parseInt(_0x5c120b(0x1d2))/0x7)+-parseInt(_0x5c120b(0x19b))/0x8+parseInt(_0x5c120b(0x1c4))/0x9;if(_0x2ba5e8===_0x4ea1b7)break;else _0x7adc8e['push'](_0x7adc8e['shift']());}catch(_0x259dd7){_0x7adc8e['push'](_0x7adc8e['shift']());}}}(_0x3e35,0x9a7d7));var Y=Object[_0x25f2b8(0x13c)],B=(_0x3602bf,_0x5462ba,_0x3b4f5f)=>_0x5462ba in _0x3602bf?Y(_0x3602bf,_0x5462ba,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b4f5f}):_0x3602bf[_0x5462ba]=_0x3b4f5f,g=(_0x1e5a7f,_0x193ff3,_0x400031)=>B(_0x1e5a7f,typeof _0x193ff3!=_0x25f2b8(0x17c)?_0x193ff3+'':_0x193ff3,_0x400031);import{Inject as _0x41efd7,LocaleService as _0xb0452e,IUniverInstanceService as _0x8a5a9d,IConfigService as _0x131274,ICommandService as _0x224820,IPermissionService as _0x28f6f7,ThemeService as _0x5bc95c,Disposable as _0x4aad88,DisposableCollection as _0x42a948,Univer as _0x47eb2f,IAuthzIoService as _0x492657,CommandType as _0x190338,UniverInstanceType as _0xc233d6,RxDisposable as _0x488257,toDisposable as _0x3ceea9,Plugin as _0xc6fa17,merge as _0x19cac6,Injector as _0x52f041}from'@univerjs/core';import{UniverCollaborationPlugin as _0x32fb82,RevertRevisionMutation as _0x3597e3,CollaborationEvent as _0x574f46}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x19d43f,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x10d54f,CollaborationController as _0x44e7de,ILocalCacheService as _0x548fb8,CollaborationStatus as _0x5c2d44}from'@univerjs-pro/collaboration-client';import{MessageType as _0x3e6f44}from'@univerjs/design';import{useRef as _0x3d30c4,createElement as _0x243747,forwardRef as _0x26f19d}from'react';import{IMessageService as _0x32fe6c,IDialogService as _0x358e13,ISidebarService as _0x9174b0,UniverUIPlugin as _0xccc37b,getMenuHiddenObservable as _0x8bc998,MenuItemType as _0x3adfbd,RibbonStartGroup as _0x4f03de,IMenuManagerService as _0x54668e,ComponentManager as _0x5ae537}from'@univerjs/ui';import{BehaviorSubject as _0x3b622a,combineLatest as _0x184ea2}from'rxjs';import{RangeProtectionRuleModel as _0x53c595,UniverSheetsPlugin as _0x848112,WorkbookEditablePermission as _0x2d00a1,WorksheetEditPermission as _0x463647,RangeProtectionPermissionEditPoint as _0x54e2d9,WorkbookRecoverHistoryPermission as _0x2cd4cc,getSheetCommandTarget as _0x78a46d,WorkbookViewHistoryPermission as _0x56ca48}from'@univerjs/sheets';import{UniverEditHistoryViewerPlugin as _0x5114c4,HistoryManagerService as _0x54b46a,HistoryModeStatus as _0x55884d}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x182f46,UniverLicensePlugin as _0x462a18}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x3750c7}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0x2e5bb9}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x566188}from'@univerjs-pro/sheets-pivot';import{UniverSheetSparklinePlugin as _0x13f046}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x5bf6e1}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x38d957}from'@univerjs/data-validation';import{UniverDocsPlugin as _0x5a7022}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x24f393}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0xa6479c,IImageIoService as _0x28f985}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x2721c0}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x4bf4de}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x44207b}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x3b45ea}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x2bfb6a,PLUGIN_CONFIG_KEY_MAIN_THREAD as _0x5c685c}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x5a8cd7}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x22485c}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x2a4e8d}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0xbb4d8e}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x52aa7d}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x4059e2}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x1c9104}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x27c3a4}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x5bc16c}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x50fefa}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x1c5f34}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x415ac6}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x5b3099}from'@univerjs/sheets-numfmt';function _0x5c09(_0x7b566a,_0x270ec7){_0x7b566a=_0x7b566a-0x132;const _0x3e35dc=_0x3e35();let _0x5c09f7=_0x3e35dc[_0x7b566a];return _0x5c09f7;}import{UniverSheetsUIPlugin as _0x34386c,getCurrentRangeDisable$ as _0x119c3d}from'@univerjs/sheets-ui';const U=_0x25f2b8(0x143),N={};function F({ref:_0x27dfbc,..._0x172a01}){const _0x23292a=_0x25f2b8,{icon:_0x46fc7c,id:_0x4fec00,className:_0x39e4e5,extend:_0x4db7e3,..._0x3d9ef7}=_0x172a01,_0x41b701=(_0x23292a(0x1da)+_0x4fec00+'\x20'+(_0x39e4e5||''))['trim'](),_0x43a674=_0x3d30c4('_'+hi());return j(_0x46fc7c,''+_0x4fec00,{'defIds':_0x46fc7c[_0x23292a(0x175)],'idSuffix':_0x43a674[_0x23292a(0x1d8)]},{'ref':_0x27dfbc,'className':_0x41b701,..._0x3d9ef7},_0x4db7e3);}function j(_0x369763,_0xddc5f2,_0xbdd1bb,_0xb50a88,_0x69f36c){const _0x43d4f9=_0x25f2b8;return _0x243747(_0x369763[_0x43d4f9(0x18f)],{'key':_0xddc5f2,...ci(_0x369763,_0xbdd1bb,_0x69f36c),..._0xb50a88},(li(_0x369763,_0xbdd1bb)[_0x43d4f9(0x1a0)]||[])[_0x43d4f9(0x15b)]((_0x30738f,_0x420f39)=>j(_0x30738f,_0xddc5f2+'-'+_0x369763[_0x43d4f9(0x18f)]+'-'+_0x420f39,_0xbdd1bb,void 0x0,_0x69f36c)));}function ci(_0x4ff2f6,_0x39fb15,_0x2c6096){const _0x2705a0=_0x25f2b8,_0x2edb81={..._0x4ff2f6['attrs']};_0x2c6096!=null&&_0x2c6096['colorChannel1']&&_0x2edb81[_0x2705a0(0x162)]===_0x2705a0(0x177)&&(_0x2edb81['fill']=_0x2c6096[_0x2705a0(0x177)]),_0x4ff2f6[_0x2705a0(0x18f)]===_0x2705a0(0x16c)&&_0x2edb81['id']&&(_0x2edb81['id']=_0x2edb81['id']+_0x39fb15[_0x2705a0(0x1b4)]),Object[_0x2705a0(0x18a)](_0x2edb81)[_0x2705a0(0x169)](([_0x5c3ddd,_0x3d49d4])=>{const _0x499301=_0x2705a0;_0x5c3ddd==='mask'&&typeof _0x3d49d4==_0x499301(0x178)&&(_0x2edb81[_0x5c3ddd]=_0x3d49d4['replace'](/url\(#(.*)\)/,_0x499301(0x145)+_0x39fb15[_0x499301(0x1b4)]+')'));});const {defIds:_0x46613f}=_0x39fb15;return!_0x46613f||_0x46613f[_0x2705a0(0x1c1)]===0x0||(_0x4ff2f6['tag']===_0x2705a0(0x140)&&_0x2edb81['xlink:href']&&(_0x2edb81[_0x2705a0(0x147)]=_0x2edb81[_0x2705a0(0x147)]+_0x39fb15[_0x2705a0(0x1b4)]),Object[_0x2705a0(0x18a)](_0x2edb81)[_0x2705a0(0x169)](([_0x3c4a40,_0x159b23])=>{const _0x4b5a3d=_0x2705a0;typeof _0x159b23==_0x4b5a3d(0x178)&&(_0x2edb81[_0x3c4a40]=_0x159b23['replace'](/url\(#(.*)\)/,'url(#$1'+_0x39fb15[_0x4b5a3d(0x1b4)]+')'));})),_0x2edb81;}function li(_0x3602f7,_0x2130cf){const _0x276924=_0x25f2b8;var _0x1eb50f;const {defIds:_0x525bfc}=_0x2130cf;return!_0x525bfc||_0x525bfc[_0x276924(0x1c1)]===0x0?_0x3602f7:_0x3602f7[_0x276924(0x18f)]==='defs'&&((_0x1eb50f=_0x3602f7[_0x276924(0x1a0)])!=null&&_0x1eb50f['length'])?{..._0x3602f7,'children':_0x3602f7[_0x276924(0x1a0)]['map'](_0x80d0b5=>typeof _0x80d0b5[_0x276924(0x1d0)]['id']==_0x276924(0x178)&&_0x525bfc&&_0x525bfc[_0x276924(0x16d)](_0x80d0b5[_0x276924(0x1d0)]['id'])?{..._0x80d0b5,'attrs':{..._0x80d0b5[_0x276924(0x1d0)],'id':_0x80d0b5[_0x276924(0x1d0)]['id']+_0x2130cf['idSuffix']}}:_0x80d0b5)}:_0x3602f7;}function _0x3e35(){const _0xca4fbd=['show','2317076kabPHL','getAllPlugins','assign','_localCacheService','get','svg','univerContainerId','registerCommand','unMountHistoryContent','historyUniver','top','some','map','history-icon_clip0_907_281','_selectionProtectionRuleModel','_messageService','onCommandExecuted','executeCommand','url(#history-icon_clip0_907_281)','fill','CHANGESET_ACK','OTHERS','./worker.js','_componentManager','\x20has\x20been\x20registered.','_init','forEach','getConfig','history-container','mask','includes','getCurrentLocale','M0\x200H16V16H0z','historyPanelComponentKey','currentTheme$','M4.45388\x204.14989H3.52896C4.61144\x202.8939\x206.21319\x202.0999\x207.9999\x202.0999C11.2584\x202.0999\x2013.8999\x204.74142\x2013.8999\x207.9999C13.8999\x2011.2584\x2011.2584\x2013.8999\x207.9999\x2013.8999C4.74142\x2013.8999\x202.0999\x2011.2584\x202.0999\x207.9999C2.0999\x207.66853\x201.83127\x207.3999\x201.4999\x207.3999C1.16853\x207.3999\x200.899902\x207.66853\x200.899902\x207.9999C0.899902\x2011.9211\x204.07868\x2015.0999\x207.9999\x2015.0999C11.9211\x2015.0999\x2015.0999\x2011.9211\x2015.0999\x207.9999C15.0999\x204.07868\x2011.9211\x200.899902\x207.9999\x200.899902C5.88709\x200.899902\x203.9903\x201.82298\x202.69023\x203.28636V2.38625C2.69023\x202.05488\x202.42161\x201.78625\x202.09023\x201.78625C1.75886\x201.78625\x201.49023\x202.05488\x201.49023\x202.38625V4.74989C1.49023\x205.08126\x201.75886\x205.34989\x202.09023\x205.34989H4.45388C4.78525\x205.34989\x205.05388\x205.08126\x205.05388\x204.74989C5.05388\x204.41851\x204.78525\x204.14989\x204.45388\x204.14989Z','dataset','dispose','defIds','editHistory.panel.revertFailed','colorChannel1','string','value','_initPlugins','100%','symbol','_config','clipPath','session','_permissionService','_historyManagerService','clear','none','set','UNIVER_SHEET','data','_localeService','substring','_collaborationController','entries','width','_configService','flat','every','tag','_dialogService','3zqcJbc','absolute','composePermission','Exited','history-icon','_initListener','getSheets','disposeWithMe','getOwnPropertyDescriptor','uComp','2128576IMtiew','status','834xYaVYT','registerPlugin','_initUniver','children','workerURL','type','block','onStarting','event$','UNIVER_CONTAINER_ID','register','left','mountHistoryContent','getElementById','displayName','setConfig','1em','location','path','getUnit','toString','add','state$','idSuffix','univer.operation.exit-edit-history','UNIVER_UNKNOWN','_sidebarService','Entered','historyListServerUrl','getSubunitRuleList','_commandService','subscribe','_historyUniver$','_injector','HistoryIcon','1642332mJfouP','length','0\x200\x2016\x2016','white','23273433AcJNAQ','97439vQhkuR','from','eventID','menu','Loading','_disposableCollection','status$','revertRevision$','_menuManagerService','setLocale','triggerLoadVersions','attrs','display','27902kgjCRd','zIndex','params','_revertErrorTimer','__getInjector','close','current','_themeService','univerjs-icon\x20univerjs-icon-','has','getSheetId','unsubscribe','exhaustSavingTask','currentColor','M8.28291\x205.16293C8.28295\x204.83156\x208.01435\x204.5629\x207.68298\x204.56287C7.35161\x204.56283\x207.08295\x204.83143\x207.08291\x205.1628L7.08252\x208.63494C7.0825\x208.79881\x207.1495\x208.95555\x207.26796\x209.06877L9.70073\x2011.3939C9.94029\x2011.6228\x2010.3201\x2011.6142\x2010.549\x2011.3747C10.778\x2011.1351\x2010.7694\x2010.7553\x2010.5298\x2010.5263L8.28255\x208.37852L8.28291\x205.16293Z','_pluginMap','univer-container','2872840IfNAjz','OPERATION','style','defineProperty','div','_checkCanRevert','_univerInstanceService','use','asObservable','editHistory.panel.listFetchError','edit-history-loader.config','next','url(#$1','invoke','xlink:href','pluginName','Error','appendChild','univer.operation.toggle-edit-history','_initContainer','[HistoryLoaderService]:\x20Plugin\x20'];_0x3e35=function(){return _0xca4fbd;};return _0x3e35();}function hi(){const _0x17099e=_0x25f2b8;return Math['random']()[_0x17099e(0x1b1)](0x24)[_0x17099e(0x188)](0x2,0x8);}F['displayName']='UniverIcon';const ui={'tag':_0x25f2b8(0x154),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x25f2b8(0x1c2),'width':_0x25f2b8(0x1ad),'height':_0x25f2b8(0x1ad)},'children':[{'tag':'g','attrs':{'fill':_0x25f2b8(0x135),'clipPath':_0x25f2b8(0x161)},'children':[{'tag':_0x25f2b8(0x1af),'attrs':{'d':_0x25f2b8(0x172)}},{'tag':_0x25f2b8(0x1af),'attrs':{'d':_0x25f2b8(0x136)}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x25f2b8(0x17e),'attrs':{'id':_0x25f2b8(0x15c)},'children':[{'tag':_0x25f2b8(0x1af),'attrs':{'fill':_0x25f2b8(0x1c3),'d':_0x25f2b8(0x16f)}}]}]}],'defIds':[_0x25f2b8(0x15c)]},V=_0x26f19d(function(_0x5ca7fd,_0x35bcc4){const _0x34fd86=_0x25f2b8;return _0x243747(F,Object[_0x34fd86(0x151)]({},_0x5ca7fd,{'id':_0x34fd86(0x195),'ref':_0x35bcc4,'icon':ui}));});V[_0x25f2b8(0x1ab)]=_0x25f2b8(0x1bf);var gi=Object['getOwnPropertyDescriptor'],mi=(_0x26a46e,_0x31b08f,_0x1c5bfc,_0x4c478a)=>{const _0x29fc05=_0x25f2b8;for(var _0x2235b0=_0x4c478a>0x1?void 0x0:_0x4c478a?gi(_0x31b08f,_0x1c5bfc):_0x31b08f,_0x4bd94a=_0x26a46e[_0x29fc05(0x1c1)]-0x1,_0x2996fb;_0x4bd94a>=0x0;_0x4bd94a--)(_0x2996fb=_0x26a46e[_0x4bd94a])&&(_0x2235b0=_0x2996fb(_0x2235b0)||_0x2235b0);return _0x2235b0;},l=(_0x283ef9,_0x29dee0)=>(_0xb9d65b,_0x300ea9)=>_0x29dee0(_0xb9d65b,_0x300ea9,_0x283ef9);const vi=_0x25f2b8(0x138),G=_0x25f2b8(0x1a6),d='univer-history-container';let f=class extends _0x4aad88{constructor(_0x1c8348,_0x34d303,_0x1119eb,_0x3f6036,_0x2425bd,_0x1f7b88,_0x5dfc2a,_0x5ac488,_0xf1e551,_0x366ce2){const _0x37519e=_0x25f2b8;super(),g(this,'_historyUniver$',new _0x3b622a(null)),g(this,'historyUniver$',this[_0x37519e(0x1bd)][_0x37519e(0x141)]()),g(this,_0x37519e(0x1ca),new _0x42a948()),g(this,'_pluginMap',new Map()),(this[_0x37519e(0x187)]=_0x1c8348,this['_univerInstanceService']=_0x34d303,this[_0x37519e(0x18c)]=_0x1119eb,this[_0x37519e(0x1bb)]=_0x3f6036,this[_0x37519e(0x15e)]=_0x2425bd,this[_0x37519e(0x180)]=_0x1f7b88,this['_selectionProtectionRuleModel']=_0x5dfc2a,this[_0x37519e(0x190)]=_0x5ac488,this[_0x37519e(0x1b7)]=_0xf1e551,this['_themeService']=_0x366ce2,this['_init']());}get['historyUniver'](){const _0x3a7f78=_0x25f2b8;return this[_0x3a7f78(0x1bd)][_0x3a7f78(0x179)];}[_0x25f2b8(0x168)](){const _0x177b00=_0x25f2b8;this[_0x177b00(0x14c)](),this[_0x177b00(0x17a)]();}[_0x25f2b8(0x14c)](){const _0x2ea59c=_0x25f2b8;var _0x524e00;const _0x411388=(_0x524e00=this['_configService'][_0x2ea59c(0x16a)](G))!=null?_0x524e00:vi,_0x4877d1=document[_0x2ea59c(0x1aa)](_0x411388);if(!_0x4877d1)return;const _0x53838f=document['createElement'](_0x2ea59c(0x13d));_0x53838f['id']=d,_0x53838f[_0x2ea59c(0x173)][_0x2ea59c(0x19a)]=_0x2ea59c(0x16b),_0x53838f['style']['position']=_0x2ea59c(0x192),_0x53838f[_0x2ea59c(0x13b)][_0x2ea59c(0x159)]='0',_0x53838f['style'][_0x2ea59c(0x1a8)]='0',_0x53838f[_0x2ea59c(0x13b)][_0x2ea59c(0x18b)]='100%',_0x53838f[_0x2ea59c(0x13b)]['height']=_0x2ea59c(0x17b),_0x53838f[_0x2ea59c(0x13b)][_0x2ea59c(0x1d3)]='1000',_0x53838f[_0x2ea59c(0x13b)][_0x2ea59c(0x1d1)]=_0x2ea59c(0x183),_0x4877d1[_0x2ea59c(0x14a)](_0x53838f);}['_initPlugins'](){const _0x3a88c3=_0x25f2b8;var _0xce6c9f,_0x3f66f9,_0xf9e9aa,_0x226636;[[_0x44207b],[_0xccc37b,{'container':d,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x358e13,null]]}],[_0x3b45ea],[_0xa6479c,{'override':[[_0x28f985,null]]}],[_0x5a7022,{'hasScroll':!0x1}],[_0x24f393],[_0x5b3099],[_0x848112,{'notExecuteFormula':!0x0}],[_0x34386c],[_0x5bc16c],[_0x50fefa],[_0x32fb82],[_0x1c9104],[_0x27c3a4],[_0x5a8cd7],[_0x22485c],[_0x1c5f34],[_0x415ac6],[_0x38d957],[_0x2a4e8d],[_0xbb4d8e],[_0x4bf4de,{'notExecuteFormula':!0x0}],[_0x2bfb6a,{'workerURL':(_0x3f66f9=(_0xce6c9f=this[_0x3a88c3(0x18c)]['getConfig'](_0x5c685c))==null?void 0x0:_0xce6c9f[_0x3a88c3(0x1a1)])!=null?_0x3f66f9:_0x3a88c3(0x165)}],[_0x2721c0],[_0x52aa7d],[_0x4059e2],[_0x13f046],[_0x5bf6e1],[_0x3750c7],[_0x2e5bb9],[_0x566188,{'notExecuteFormula':!0x0}],[_0x5114c4,{'historyListServerUrl':(_0xf9e9aa=this[_0x3a88c3(0x18c)][_0x3a88c3(0x16a)](U))==null?void 0x0:_0xf9e9aa[_0x3a88c3(0x1b9)],'historyPanelComponentKey':(_0x226636=this[_0x3a88c3(0x18c)][_0x3a88c3(0x16a)](U))==null?void 0x0:_0x226636[_0x3a88c3(0x170)]}]][_0x3a88c3(0x169)](([_0x332e9f,_0x5d130e])=>this[_0x3a88c3(0x19e)](_0x332e9f,_0x5d130e));}[_0x25f2b8(0x174)](){const _0x2fb92a=_0x25f2b8;super[_0x2fb92a(0x174)](),this['unMountHistoryContent'](),this[_0x2fb92a(0x137)][_0x2fb92a(0x182)]();}[_0x25f2b8(0x19e)](_0x2970e1,_0xafdffb,_0x1b91be){const _0x2da53e=_0x25f2b8;if(this[_0x2da53e(0x137)][_0x2da53e(0x1db)](_0x2970e1[_0x2da53e(0x148)])&&!_0x1b91be)throw new Error(_0x2da53e(0x14d)+_0x2970e1[_0x2da53e(0x148)]+_0x2da53e(0x167));this[_0x2da53e(0x137)][_0x2da53e(0x184)](_0x2970e1['pluginName'],[_0x2970e1,_0xafdffb]);}[_0x25f2b8(0x150)](){const _0x3c45bb=_0x25f2b8;return Array[_0x3c45bb(0x1c6)](this[_0x3c45bb(0x137)]['values']());}['mountHistoryContent'](_0x17525a){const _0x15e371=_0x25f2b8,_0x24a825=document['getElementById'](d);_0x24a825&&(_0x24a825['style'][_0x15e371(0x1d1)]=_0x15e371(0x1a3),this[_0x15e371(0x19f)](_0x17525a,d));}[_0x25f2b8(0x157)](){const _0x6e46f2=_0x25f2b8;var _0xdda761;this['_disposableCollection'][_0x6e46f2(0x174)](),(_0xdda761=this['historyUniver'])==null||_0xdda761[_0x6e46f2(0x174)](),this[_0x6e46f2(0x1bd)]['next'](null);const _0x2548ba=document['getElementById'](d);_0x2548ba&&(_0x2548ba['style']['display']=_0x6e46f2(0x183));}[_0x25f2b8(0x19f)](_0x1bbf5c,_0x367a6c){const _0x36a618=_0x25f2b8;if(this[_0x36a618(0x158)])return;const _0x4aa6e5=new _0x47eb2f({'locales':{[this[_0x36a618(0x187)][_0x36a618(0x16e)]()]:this[_0x36a618(0x187)]['getLocales']()},'override':[[_0x492657,{'useClass':_0x19d43f}]]}),_0x289ad0=_0x4aa6e5[_0x36a618(0x1d6)]();this[_0x36a618(0x198)](this[_0x36a618(0x1d9)]['darkMode$'][_0x36a618(0x1bc)](_0x4f9d1f=>{const _0x1d9358=_0x36a618;_0x289ad0[_0x1d9358(0x153)](_0x5bc95c)['setDarkMode'](_0x4f9d1f);})),this[_0x36a618(0x198)](this[_0x36a618(0x1d9)][_0x36a618(0x171)][_0x36a618(0x1bc)](_0x58449f=>{const _0x93d3fe=_0x36a618;_0x289ad0[_0x93d3fe(0x153)](_0x5bc95c)['setTheme'](_0x58449f);})),_0x289ad0[_0x36a618(0x153)](_0xb0452e)[_0x36a618(0x1ce)](this[_0x36a618(0x187)]['getCurrentLocale']()),_0x289ad0[_0x36a618(0x153)](_0x131274)[_0x36a618(0x1ac)](_0x10d54f,this[_0x36a618(0x18c)][_0x36a618(0x16a)](_0x10d54f));const _0x5d6870=this['_configService'][_0x36a618(0x16a)](_0x182f46);_0x5d6870&&_0x4aa6e5['registerPlugin'](_0x462a18,{'license':_0x5d6870['ls']}),this[_0x36a618(0x137)][_0x36a618(0x169)](([_0x179ce4,_0x5dc81e])=>{_0x4aa6e5['registerPlugin'](_0x179ce4,_0x5dc81e);}),_0x289ad0[_0x36a618(0x146)](_0x19da77=>{const _0x1f6e55=_0x36a618;this[_0x1f6e55(0x196)](_0x19da77,_0x1bbf5c);}),this[_0x36a618(0x1bd)][_0x36a618(0x144)](_0x4aa6e5);const _0x2e4e06=_0x289ad0[_0x36a618(0x153)](_0x54b46a),_0x249d0f=this['_checkCanRevert'](_0x1bbf5c);_0x2e4e06[_0x36a618(0x1cf)](_0x1bbf5c,_0x367a6c,_0x249d0f);}[_0x25f2b8(0x196)](_0x182160,_0x13a415){const _0x113695=_0x25f2b8,_0x1dd66b=_0x182160[_0x113695(0x153)](_0x54b46a);this[_0x113695(0x1ca)][_0x113695(0x1b2)](_0x1dd66b[_0x113695(0x1cb)][_0x113695(0x1bc)](_0x4e5def=>{const _0x43a3de=_0x113695;switch(_0x4e5def){case _0x55884d[_0x43a3de(0x1b8)]:this[_0x43a3de(0x190)]['closeAll'](),this[_0x43a3de(0x1b7)][_0x43a3de(0x1d7)]();break;case _0x55884d[_0x43a3de(0x194)]:this[_0x43a3de(0x1bb)][_0x43a3de(0x160)](W['id']),this['unMountHistoryContent']();break;case _0x55884d[_0x43a3de(0x149)]:this[_0x43a3de(0x157)](),this[_0x43a3de(0x15e)][_0x43a3de(0x14e)]({'content':this['_localeService']['t'](_0x43a3de(0x142)),'type':_0x3e6f44[_0x43a3de(0x149)],'duration':0xbb8});break;}})),this[_0x113695(0x1ca)][_0x113695(0x1b2)](_0x1dd66b[_0x113695(0x1cc)][_0x113695(0x1bc)](async _0x1cd8e0=>{const _0x2eb600=_0x113695;_0x1cd8e0&&this[_0x2eb600(0x1bb)][_0x2eb600(0x160)](_0x3597e3['id'],{'unitId':_0x13a415,'revision':_0x1cd8e0});}));}[_0x25f2b8(0x13e)](_0x53d226){const _0x28b959=_0x25f2b8,_0x200c31=this[_0x28b959(0x13f)][_0x28b959(0x1b0)](_0x53d226)[_0x28b959(0x197)]()[_0x28b959(0x15b)](_0x22222e=>_0x22222e[_0x28b959(0x132)]()),_0xfe47ea=new _0x2d00a1(_0x53d226)['id'],_0x554fb3=_0x200c31[_0x28b959(0x15b)](_0x345a72=>new _0x463647(_0x53d226,_0x345a72)['id']),_0x28daf9=_0x200c31[_0x28b959(0x15b)](_0x51e7cd=>this[_0x28b959(0x15d)][_0x28b959(0x1ba)](_0x53d226,_0x51e7cd)[_0x28b959(0x15b)](_0x3a8e8c=>new _0x54e2d9(_0x53d226,_0x51e7cd,_0x3a8e8c['permissionId'])['id']))[_0x28b959(0x18d)](),_0x18fbd3=new _0x2cd4cc(_0x53d226)['id'];return this[_0x28b959(0x180)][_0x28b959(0x193)]([_0xfe47ea,..._0x554fb3,..._0x28daf9,_0x18fbd3])[_0x28b959(0x18e)](_0x19f123=>!!_0x19f123[_0x28b959(0x179)]);}};f=mi([l(0x0,_0x41efd7(_0xb0452e)),l(0x1,_0x8a5a9d),l(0x2,_0x131274),l(0x3,_0x224820),l(0x4,_0x32fe6c),l(0x5,_0x28f6f7),l(0x6,_0x41efd7(_0x53c595)),l(0x7,_0x41efd7(_0x358e13)),l(0x8,_0x41efd7(_0x9174b0)),l(0x9,_0x41efd7(_0x5bc95c))],f);const b={'id':_0x25f2b8(0x14b),'type':_0x190338[_0x25f2b8(0x13a)],'handler':_0x5e57b8=>{const _0x4fa70a=_0x25f2b8,_0x1f3108=_0x5e57b8[_0x4fa70a(0x153)](f),_0x255e8e=_0x5e57b8['get'](_0x8a5a9d),{unitId:_0x546ca1}=_0x78a46d(_0x255e8e)||{};return _0x546ca1?(_0x1f3108[_0x4fa70a(0x1a9)](_0x546ca1),!0x0):!0x1;}},W={'id':_0x25f2b8(0x1b5),'type':_0x190338['OPERATION'],'handler':()=>!0x0};function di(_0x331b20){const _0x522823=_0x25f2b8;return{'id':b['id'],'type':_0x3adfbd['BUTTON'],'icon':_0x522823(0x1bf),'tooltip':'editHistory.panel.title','hidden$':_0x8bc998(_0x331b20,_0xc233d6[_0x522823(0x185)]),'disabled$':_0x119c3d(_0x331b20,{'workbookTypes':[_0x2d00a1,_0x56ca48],'worksheetTypes':[],'rangeTypes':[]})};}const fi={[_0x4f03de[_0x25f2b8(0x164)]]:{[b['id']]:{'order':0.2,'menuItemFactory':di}}};var _i=Object[_0x25f2b8(0x199)],pi=(_0x537811,_0x18a720,_0x254452,_0x3911d2)=>{const _0x42c50a=_0x25f2b8;for(var _0x3f30cf=_0x3911d2>0x1?void 0x0:_0x3911d2?_i(_0x18a720,_0x254452):_0x18a720,_0x4a62eb=_0x537811[_0x42c50a(0x1c1)]-0x1,_0x115ac6;_0x4a62eb>=0x0;_0x4a62eb--)(_0x115ac6=_0x537811[_0x4a62eb])&&(_0x3f30cf=_0x115ac6(_0x3f30cf)||_0x3f30cf);return _0x3f30cf;},m=(_0x28d059,_0x5841c3)=>(_0x5a2916,_0x513b51)=>_0x5841c3(_0x5a2916,_0x513b51,_0x28d059);let p=class extends _0x488257{constructor(_0x7c4d5f,_0xfe4767,_0x431e60,_0x27e575,_0x1b55f5,_0x1c9692,_0x1dc077,_0x19fccf){const _0x442ef9=_0x25f2b8;super(),g(this,'_revertErrorTimer',null),(this[_0x442ef9(0x1bb)]=_0x7c4d5f,this['_menuManagerService']=_0xfe4767,this[_0x442ef9(0x166)]=_0x431e60,this[_0x442ef9(0x181)]=_0x27e575,this[_0x442ef9(0x187)]=_0x1b55f5,this['_messageService']=_0x1c9692,this[_0x442ef9(0x189)]=_0x1dc077,this[_0x442ef9(0x152)]=_0x19fccf,this[_0x442ef9(0x168)]());}[_0x25f2b8(0x168)](){const _0x2c75f3=_0x25f2b8;[b,W][_0x2c75f3(0x169)](_0x2fd26a=>this[_0x2c75f3(0x198)](_0x3ceea9(this['_commandService'][_0x2c75f3(0x156)](_0x2fd26a)))),this[_0x2c75f3(0x198)](this[_0x2c75f3(0x166)][_0x2c75f3(0x1a7)](_0x2c75f3(0x1bf),V)),this[_0x2c75f3(0x1cd)]['mergeMenu'](fi),this[_0x2c75f3(0x198)](this[_0x2c75f3(0x1bb)][_0x2c75f3(0x15f)](_0x7c287b=>{const _0x18a85a=_0x2c75f3;if(_0x7c287b['id']===_0x3597e3['id']){this[_0x18a85a(0x15e)][_0x18a85a(0x14e)]({'content':this['_localeService']['t']('editHistory.panel.reverting'),'type':_0x3e6f44[_0x18a85a(0x1c9)],'duration':0x1388});const {unitId:_0x27b184}=_0x7c287b[_0x18a85a(0x1d4)],_0xfd07cf=this['_collaborationController']['getCollabEntity'](_0x27b184),_0x288fb1=_0x184ea2([_0xfd07cf[_0x18a85a(0x17f)][_0x18a85a(0x1a5)],_0xfd07cf[_0x18a85a(0x1b3)]])[_0x18a85a(0x1bc)](async([_0x408605,_0x307910])=>{const _0x5ec576=_0x18a85a;var _0x57a159;_0x408605[_0x5ec576(0x1c7)]===_0x574f46[_0x5ec576(0x163)]&&(_0x307910==null?void 0x0:_0x307910[_0x5ec576(0x19c)])===_0x5c2d44['SYNCED']&&_0x408605[_0x5ec576(0x186)]['mutations'][_0x5ec576(0x15a)](_0x4baf3d=>_0x4baf3d['id']===_0x3597e3['id'])&&(this[_0x5ec576(0x181)]['unMountHistoryContent'](),_0x288fb1['unsubscribe'](),this[_0x5ec576(0x1d5)]&&clearTimeout(this['_revertErrorTimer']),await((_0x57a159=this[_0x5ec576(0x152)])==null?void 0x0:_0x57a159[_0x5ec576(0x134)]()),setTimeout(()=>window[_0x5ec576(0x1ae)]['reload']()));});this[_0x18a85a(0x1d5)]=setTimeout(()=>{const _0x5b3669=_0x18a85a;_0x288fb1[_0x5b3669(0x133)](),this['_messageService'][_0x5b3669(0x14e)]({'content':this[_0x5b3669(0x187)]['t'](_0x5b3669(0x176)),'type':_0x3e6f44[_0x5b3669(0x149)],'duration':0xbb8});},0x1388);}}));}};p=pi([m(0x0,_0x224820),m(0x1,_0x54668e),m(0x2,_0x41efd7(_0x5ae537)),m(0x3,_0x41efd7(f)),m(0x4,_0x41efd7(_0xb0452e)),m(0x5,_0x32fe6c),m(0x6,_0x41efd7(_0x44e7de)),m(0x7,_0x548fb8)],p);var Si=Object[_0x25f2b8(0x199)],Ci=(_0x178c98,_0x586574,_0x251f9a,_0x14e4c3)=>{for(var _0x5e8b1f=_0x14e4c3>0x1?void 0x0:_0x14e4c3?Si(_0x586574,_0x251f9a):_0x586574,_0x46e84e=_0x178c98['length']-0x1,_0x574cf0;_0x46e84e>=0x0;_0x46e84e--)(_0x574cf0=_0x178c98[_0x46e84e])&&(_0x5e8b1f=_0x574cf0(_0x5e8b1f)||_0x5e8b1f);return _0x5e8b1f;},R=(_0x2fd963,_0x4ded13)=>(_0x522c66,_0x4be751)=>_0x4ded13(_0x522c66,_0x4be751,_0x2fd963);const yi='UNIVER_EDIT_HISTORY_LOADER_PLUGIN';var _;let H=(_=class extends _0xc6fa17{constructor(_0x55f2f=N,_0x29e925,_0x1cb192){const _0x3af17f=_0x25f2b8;super(),this[_0x3af17f(0x17d)]=_0x55f2f,this[_0x3af17f(0x1be)]=_0x29e925,this[_0x3af17f(0x18c)]=_0x1cb192;const {menu:_0xb1916,..._0x376299}=_0x19cac6({},N,this[_0x3af17f(0x17d)]);_0xb1916&&this[_0x3af17f(0x18c)]['setConfig'](_0x3af17f(0x1c8),_0xb1916,{'merge':!0x0}),this[_0x3af17f(0x18c)][_0x3af17f(0x1ac)](U,_0x376299),this[_0x3af17f(0x17d)][_0x3af17f(0x155)]&&this[_0x3af17f(0x18c)][_0x3af17f(0x1ac)](G,this[_0x3af17f(0x17d)][_0x3af17f(0x155)]);}[_0x25f2b8(0x1a4)](){const _0x20423d=_0x25f2b8;[[f],[p]]['forEach'](_0x22d5bd=>this[_0x20423d(0x1be)]['add'](_0x22d5bd));}['onSteady'](){const _0x42bfd0=_0x25f2b8;this['_injector'][_0x42bfd0(0x153)](p);}},g(_,_0x25f2b8(0x1a2),_0xc233d6[_0x25f2b8(0x1b6)]),g(_,'pluginName',yi),_);H=Ci([R(0x1,_0x41efd7(_0x52f041)),R(0x2,_0x131274)],H);export{f as HistoryLoaderService,G as UNIVER_CONTAINER_ID_KEY,d as UNIVER_HISTORY_CONTAINER_ID,H as UniverEditHistoryLoaderPlugin};
|
|
1
|
+
const _0x26f5c5=_0x4153;(function(_0xeefe72,_0x3eb864){const _0xe0a80e=_0x4153,_0x513b57=_0xeefe72();while(!![]){try{const _0x5a5627=-parseInt(_0xe0a80e(0xe3))/0x1+parseInt(_0xe0a80e(0x108))/0x2+parseInt(_0xe0a80e(0xb3))/0x3+-parseInt(_0xe0a80e(0x92))/0x4+-parseInt(_0xe0a80e(0xa6))/0x5+-parseInt(_0xe0a80e(0x11f))/0x6*(-parseInt(_0xe0a80e(0xa0))/0x7)+parseInt(_0xe0a80e(0xcc))/0x8*(parseInt(_0xe0a80e(0xeb))/0x9);if(_0x5a5627===_0x3eb864)break;else _0x513b57['push'](_0x513b57['shift']());}catch(_0xa7e573){_0x513b57['push'](_0x513b57['shift']());}}}(_0x32cd,0xa6ff8));var Y=Object[_0x26f5c5(0xdc)],B=(_0x48f30a,_0xc601c9,_0x49d258)=>_0xc601c9 in _0x48f30a?Y(_0x48f30a,_0xc601c9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49d258}):_0x48f30a[_0xc601c9]=_0x49d258,g=(_0x356be4,_0x1224d4,_0x45017a)=>B(_0x356be4,typeof _0x1224d4!=_0x26f5c5(0xf2)?_0x1224d4+'':_0x1224d4,_0x45017a);import{Inject as _0xb38479,LocaleService as _0x2e1af7,IUniverInstanceService as _0x1b154f,IConfigService as _0x3c4f6c,ICommandService as _0xeae62a,IPermissionService as _0x796d7,ThemeService as _0x38a186,Disposable as _0x17bff1,DisposableCollection as _0x76eaa7,Univer as _0x4059ab,IAuthzIoService as _0x35a2a6,CommandType as _0x583198,UniverInstanceType as _0x500737,RxDisposable as _0x371026,toDisposable as _0x3c8bed,Plugin as _0x5857f0,merge as _0x100c73,Injector as _0x198ee0}from'@univerjs/core';import{UniverCollaborationPlugin as _0x64c4c0,RevertRevisionMutation as _0xd1193f,CollaborationEvent as _0x28d345}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x531ebd,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x2a6248,CollaborationController as _0x250a30,ILocalCacheService as _0x43cb3d,CollaborationStatus as _0x188bde}from'@univerjs-pro/collaboration-client';import{MessageType as _0x58132a}from'@univerjs/design';import{useRef as _0xbdb9eb,createElement as _0x3228e2,forwardRef as _0x47085a}from'react';import{IMessageService as _0x3ff56f,IDialogService as _0x44bef5,ISidebarService as _0x49ae37,UniverUIPlugin as _0x408dd5,getMenuHiddenObservable as _0x4b4794,MenuItemType as _0x1200ff,RibbonStartGroup as _0x202139,IMenuManagerService as _0x18b5b2,ComponentManager as _0xc50fc4}from'@univerjs/ui';import{BehaviorSubject as _0x52b858,combineLatest as _0x19dfa3}from'rxjs';import{RangeProtectionRuleModel as _0xf75585,UniverSheetsPlugin as _0x272656,WorkbookEditablePermission as _0x45614f,WorksheetEditPermission as _0x23fd86,RangeProtectionPermissionEditPoint as _0x36dacb,WorkbookRecoverHistoryPermission as _0x3514f3,getSheetCommandTarget as _0x53e9a1,WorkbookViewHistoryPermission as _0x4c0659}from'@univerjs/sheets';import{UniverEditHistoryViewerPlugin as _0x1d25c0,HistoryManagerService as _0x16646d,HistoryModeStatus as _0x5180a7}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x4db0d1,UniverLicensePlugin as _0xd6f678}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x1ea352}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0x181e32}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x436dc8}from'@univerjs-pro/sheets-pivot';import{UniverSheetSparklinePlugin as _0x5dda31}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x1469cd}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x158e32}from'@univerjs/data-validation';import{UniverDocsPlugin as _0xe81348}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x185513}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0x17d3b4,IImageIoService as _0x2c823b}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x352f14}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x5d4683}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x3a9b1a}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x3b2836}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x4fad4a,PLUGIN_CONFIG_KEY_MAIN_THREAD as _0x1da40e}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x879b86}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x378399}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x4400f4}from'@univerjs/sheets-data-validation';function _0x32cd(){const _0x4646cb=['dataset','_localCacheService','height','getAllPlugins','url(#history-icon_clip0_907_281)','assign','104mYSZdO','getLocales','getSheetId','_messageService','uComp','unMountHistoryContent','triggerLoadVersions','editHistory.panel.reverting','path','_historyUniver$','_initPlugins','entries','defIds','UNIVER_SHEET','position','every','defineProperty','M4.45388\x204.14989H3.52896C4.61144\x202.8939\x206.21319\x202.0999\x207.9999\x202.0999C11.2584\x202.0999\x2013.8999\x204.74142\x2013.8999\x207.9999C13.8999\x2011.2584\x2011.2584\x2013.8999\x207.9999\x2013.8999C4.74142\x2013.8999\x202.0999\x2011.2584\x202.0999\x207.9999C2.0999\x207.66853\x201.83127\x207.3999\x201.4999\x207.3999C1.16853\x207.3999\x200.899902\x207.66853\x200.899902\x207.9999C0.899902\x2011.9211\x204.07868\x2015.0999\x207.9999\x2015.0999C11.9211\x2015.0999\x2015.0999\x2011.9211\x2015.0999\x207.9999C15.0999\x204.07868\x2011.9211\x200.899902\x207.9999\x200.899902C5.88709\x200.899902\x203.9903\x201.82298\x202.69023\x203.28636V2.38625C2.69023\x202.05488\x202.42161\x201.78625\x202.09023\x201.78625C1.75886\x201.78625\x201.49023\x202.05488\x201.49023\x202.38625V4.74989C1.49023\x205.08126\x201.75886\x205.34989\x202.09023\x205.34989H4.45388C4.78525\x205.34989\x205.05388\x205.08126\x205.05388\x204.74989C5.05388\x204.41851\x204.78525\x204.14989\x204.45388\x204.14989Z','univerContainerId','mergeMenu','_configService','eventID','setTheme','97082nkYLlU','_initUniver','_collaborationController','string','top','OPERATION','M8.28291\x205.16293C8.28295\x204.83156\x208.01435\x204.5629\x207.68298\x204.56287C7.35161\x204.56283\x207.08295\x204.83143\x207.08291\x205.1628L7.08252\x208.63494C7.0825\x208.79881\x207.1495\x208.95555\x207.26796\x209.06877L9.70073\x2011.3939C9.94029\x2011.6228\x2010.3201\x2011.6142\x2010.549\x2011.3747C10.778\x2011.1351\x2010.7694\x2010.7553\x2010.5298\x2010.5263L8.28255\x208.37852L8.28291\x205.16293Z','permissionId','235089tRkfvx','event$','currentColor','next','params','asObservable','getSheets','symbol','left','historyPanelComponentKey','closeAll','_init','getOwnPropertyDescriptor','dispose','get','darkMode$','[HistoryLoaderService]:\x20Plugin\x20','subscribe','url(#$1','status$','mask','historyListServerUrl','./worker.js','_permissionService','idSuffix','BUTTON','display','edit-history-loader.config','defs','629682BMdWqX','fill','_sidebarService','displayName','createElement','getSubunitRuleList','pluginName','historyUniver','UNIVER_CONTAINER_ID','xlink:href','_initListener','attrs','use','toString','value','location','disposeWithMe','show','_selectionProtectionRuleModel','tag','length','clear','replace','14664pTXbll','_componentManager','0\x200\x2016\x2016','history-icon_clip0_907_281','_menuManagerService','data','colorChannel1','onStarting','1em','HistoryIcon','style','_historyManagerService','set','univer.operation.toggle-edit-history','_disposableCollection','_initContainer','__getInjector','100%','5283888LZmzTD','map','_injector','current','invoke','OTHERS','from','_revertErrorTimer','children','getElementById','values','setLocale','composePermission','has','3703LZYrNp','executeCommand','_univerInstanceService','http://www.w3.org/2000/svg','getCurrentLocale','_checkCanRevert','6008095msKyUo','session','SYNCED','add','zIndex','Loading','workerURL','getConfig','setConfig','mountHistoryContent','Exited','clipPath','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','4069221hXRTGD','1000','Error','random','_localeService','_pluginMap','unsubscribe','CHANGESET_ACK','forEach','registerPlugin','status','univer-history-container','_config','flat','includes','_commandService','_dialogService','history-icon','exhaustSavingTask'];_0x32cd=function(){return _0x4646cb;};return _0x32cd();}import{UniverSheetsDataValidationUIPlugin as _0x1359f1}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0xe9bfae}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x314a73}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x2ab64d}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x1ff082}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x111cff}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x16cbaa}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x217fd7}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x391f2e}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x144214}from'@univerjs/sheets-numfmt';import{UniverSheetsUIPlugin as _0x49b19d,getCurrentRangeDisable$ as _0xf8252b}from'@univerjs/sheets-ui';const U=_0x26f5c5(0x106),N={};function F({ref:_0x4169c1,..._0x27ea3d}){const _0xa0f420=_0x26f5c5,{icon:_0x2fcd7e,id:_0x46580d,className:_0x2ade1d,extend:_0x4a70ed,..._0x401621}=_0x27ea3d,_0x58d3d1=('univerjs-icon\x20univerjs-icon-'+_0x46580d+'\x20'+(_0x2ade1d||''))['trim'](),_0x8ef55d=_0xbdb9eb('_'+hi());return j(_0x2fcd7e,''+_0x46580d,{'defIds':_0x2fcd7e[_0xa0f420(0xd8)],'idSuffix':_0x8ef55d[_0xa0f420(0x95)]},{'ref':_0x4169c1,'className':_0x58d3d1,..._0x401621},_0x4a70ed);}function j(_0x494aba,_0xbdb415,_0x5a4c6e,_0x2592e9,_0x5540d7){const _0x84881d=_0x26f5c5;return _0x3228e2(_0x494aba[_0x84881d(0x11b)],{'key':_0xbdb415,...ci(_0x494aba,_0x5a4c6e,_0x5540d7),..._0x2592e9},(li(_0x494aba,_0x5a4c6e)[_0x84881d(0x9a)]||[])['map']((_0xb96357,_0x188a68)=>j(_0xb96357,_0xbdb415+'-'+_0x494aba['tag']+'-'+_0x188a68,_0x5a4c6e,void 0x0,_0x5540d7)));}function ci(_0x1498cb,_0x29103d,_0x1e393f){const _0x28f891=_0x26f5c5,_0x5e722d={..._0x1498cb['attrs']};_0x1e393f!=null&&_0x1e393f[_0x28f891(0x125)]&&_0x5e722d[_0x28f891(0x109)]==='colorChannel1'&&(_0x5e722d[_0x28f891(0x109)]=_0x1e393f[_0x28f891(0x125)]),_0x1498cb[_0x28f891(0x11b)]===_0x28f891(0xff)&&_0x5e722d['id']&&(_0x5e722d['id']=_0x5e722d['id']+_0x29103d[_0x28f891(0x103)]),Object[_0x28f891(0xd7)](_0x5e722d)['forEach'](([_0x355f86,_0x3d1489])=>{const _0x5a776f=_0x28f891;_0x355f86===_0x5a776f(0xff)&&typeof _0x3d1489==_0x5a776f(0xe6)&&(_0x5e722d[_0x355f86]=_0x3d1489[_0x5a776f(0x11e)](/url\(#(.*)\)/,'url(#$1'+_0x29103d['idSuffix']+')'));});const {defIds:_0x1ebdfd}=_0x29103d;return!_0x1ebdfd||_0x1ebdfd[_0x28f891(0x11c)]===0x0||(_0x1498cb[_0x28f891(0x11b)]===_0x28f891(0x114)&&_0x5e722d[_0x28f891(0x111)]&&(_0x5e722d[_0x28f891(0x111)]=_0x5e722d[_0x28f891(0x111)]+_0x29103d[_0x28f891(0x103)]),Object['entries'](_0x5e722d)[_0x28f891(0xbb)](([_0x17d5e6,_0x4539c9])=>{const _0x1653de=_0x28f891;typeof _0x4539c9==_0x1653de(0xe6)&&(_0x5e722d[_0x17d5e6]=_0x4539c9['replace'](/url\(#(.*)\)/,_0x1653de(0xfd)+_0x29103d[_0x1653de(0x103)]+')'));})),_0x5e722d;}function li(_0x4d0d8b,_0x572339){const _0x544162=_0x26f5c5;var _0x3a17e4;const {defIds:_0x4da600}=_0x572339;return!_0x4da600||_0x4da600[_0x544162(0x11c)]===0x0?_0x4d0d8b:_0x4d0d8b[_0x544162(0x11b)]===_0x544162(0x107)&&((_0x3a17e4=_0x4d0d8b[_0x544162(0x9a)])!=null&&_0x3a17e4[_0x544162(0x11c)])?{..._0x4d0d8b,'children':_0x4d0d8b[_0x544162(0x9a)]['map'](_0x4bfcc2=>typeof _0x4bfcc2[_0x544162(0x113)]['id']==_0x544162(0xe6)&&_0x4da600&&_0x4da600[_0x544162(0xc1)](_0x4bfcc2[_0x544162(0x113)]['id'])?{..._0x4bfcc2,'attrs':{..._0x4bfcc2[_0x544162(0x113)],'id':_0x4bfcc2['attrs']['id']+_0x572339[_0x544162(0x103)]}}:_0x4bfcc2)}:_0x4d0d8b;}function hi(){const _0x1029af=_0x26f5c5;return Math[_0x1029af(0xb6)]()[_0x1029af(0x115)](0x24)['substring'](0x2,0x8);}F['displayName']='UniverIcon';const ui={'tag':'svg','attrs':{'xmlns':_0x26f5c5(0xa3),'fill':'none','viewBox':_0x26f5c5(0x121),'width':_0x26f5c5(0x127),'height':_0x26f5c5(0x127)},'children':[{'tag':'g','attrs':{'fill':_0x26f5c5(0xed),'clipPath':_0x26f5c5(0xca)},'children':[{'tag':'path','attrs':{'d':_0x26f5c5(0xdd)}},{'tag':_0x26f5c5(0xd4),'attrs':{'d':_0x26f5c5(0xe9)}}]},{'tag':_0x26f5c5(0x107),'attrs':{},'children':[{'tag':_0x26f5c5(0xb1),'attrs':{'id':'history-icon_clip0_907_281'},'children':[{'tag':_0x26f5c5(0xd4),'attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x26f5c5(0x122)]},V=_0x47085a(function(_0x1a99f2,_0xaf4a80){const _0x3aa733=_0x26f5c5;return _0x3228e2(F,Object[_0x3aa733(0xcb)]({},_0x1a99f2,{'id':_0x3aa733(0xc4),'ref':_0xaf4a80,'icon':ui}));});function _0x4153(_0x1d7703,_0x505a01){_0x1d7703=_0x1d7703-0x8e;const _0x32cd8a=_0x32cd();let _0x415358=_0x32cd8a[_0x1d7703];return _0x415358;}V[_0x26f5c5(0x10b)]='HistoryIcon';var gi=Object[_0x26f5c5(0xf7)],mi=(_0x251530,_0x2b56fe,_0x2a3434,_0x44fa89)=>{const _0x2d973d=_0x26f5c5;for(var _0x3326e2=_0x44fa89>0x1?void 0x0:_0x44fa89?gi(_0x2b56fe,_0x2a3434):_0x2b56fe,_0xadec4e=_0x251530[_0x2d973d(0x11c)]-0x1,_0x373949;_0xadec4e>=0x0;_0xadec4e--)(_0x373949=_0x251530[_0xadec4e])&&(_0x3326e2=_0x373949(_0x3326e2)||_0x3326e2);return _0x3326e2;},l=(_0x5d72e4,_0x72e5d3)=>(_0x519d73,_0x5e029e)=>_0x72e5d3(_0x519d73,_0x5e029e,_0x5d72e4);const vi='univer-container',G=_0x26f5c5(0x110),d=_0x26f5c5(0xbe);let f=class extends _0x17bff1{constructor(_0x3772df,_0x2e4e68,_0x226700,_0xaf9ff4,_0x27c158,_0x2328df,_0x5d253e,_0x838264,_0x188984,_0x1e9ed1){const _0x9d389c=_0x26f5c5;super(),g(this,_0x9d389c(0xd5),new _0x52b858(null)),g(this,'historyUniver$',this[_0x9d389c(0xd5)][_0x9d389c(0xf0)]()),g(this,_0x9d389c(0x8e),new _0x76eaa7()),g(this,_0x9d389c(0xb8),new Map()),(this[_0x9d389c(0xb7)]=_0x3772df,this[_0x9d389c(0xa2)]=_0x2e4e68,this['_configService']=_0x226700,this['_commandService']=_0xaf9ff4,this[_0x9d389c(0xcf)]=_0x27c158,this[_0x9d389c(0x102)]=_0x2328df,this['_selectionProtectionRuleModel']=_0x5d253e,this[_0x9d389c(0xc3)]=_0x838264,this[_0x9d389c(0x10a)]=_0x188984,this['_themeService']=_0x1e9ed1,this[_0x9d389c(0xf6)]());}get[_0x26f5c5(0x10f)](){const _0x4a38ae=_0x26f5c5;return this[_0x4a38ae(0xd5)]['value'];}[_0x26f5c5(0xf6)](){const _0x32f72d=_0x26f5c5;this[_0x32f72d(0x8f)](),this[_0x32f72d(0xd6)]();}['_initContainer'](){const _0x30d34e=_0x26f5c5;var _0x956bf4;const _0x284a13=(_0x956bf4=this[_0x30d34e(0xe0)][_0x30d34e(0xad)](G))!=null?_0x956bf4:vi,_0x4e6b23=document[_0x30d34e(0x9b)](_0x284a13);if(!_0x4e6b23)return;const _0x1a86e8=document[_0x30d34e(0x10c)]('div');_0x1a86e8['id']=d,_0x1a86e8[_0x30d34e(0xc6)][_0x30d34e(0xd0)]='history-container',_0x1a86e8[_0x30d34e(0x129)][_0x30d34e(0xda)]='absolute',_0x1a86e8[_0x30d34e(0x129)][_0x30d34e(0xe7)]='0',_0x1a86e8[_0x30d34e(0x129)][_0x30d34e(0xf3)]='0',_0x1a86e8[_0x30d34e(0x129)]['width']='100%',_0x1a86e8[_0x30d34e(0x129)][_0x30d34e(0xc8)]=_0x30d34e(0x91),_0x1a86e8[_0x30d34e(0x129)][_0x30d34e(0xaa)]=_0x30d34e(0xb4),_0x1a86e8['style'][_0x30d34e(0x105)]='none',_0x4e6b23['appendChild'](_0x1a86e8);}[_0x26f5c5(0xd6)](){const _0x12d9ac=_0x26f5c5;var _0x30a70a,_0x20d612,_0x59b699,_0x3e06ad;[[_0x3a9b1a],[_0x408dd5,{'container':d,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x44bef5,null]]}],[_0x3b2836],[_0x17d3b4,{'override':[[_0x2c823b,null]]}],[_0xe81348,{'hasScroll':!0x1}],[_0x185513],[_0x144214],[_0x272656,{'notExecuteFormula':!0x0}],[_0x49b19d],[_0x111cff],[_0x16cbaa],[_0x64c4c0],[_0x2ab64d],[_0x1ff082],[_0x879b86],[_0x378399],[_0x217fd7],[_0x391f2e],[_0x158e32],[_0x4400f4],[_0x1359f1],[_0x5d4683,{'notExecuteFormula':!0x0}],[_0x4fad4a,{'workerURL':(_0x20d612=(_0x30a70a=this[_0x12d9ac(0xe0)][_0x12d9ac(0xad)](_0x1da40e))==null?void 0x0:_0x30a70a[_0x12d9ac(0xac)])!=null?_0x20d612:_0x12d9ac(0x101)}],[_0x352f14],[_0xe9bfae],[_0x314a73],[_0x5dda31],[_0x1469cd],[_0x1ea352],[_0x181e32],[_0x436dc8,{'notExecuteFormula':!0x0}],[_0x1d25c0,{'historyListServerUrl':(_0x59b699=this['_configService'][_0x12d9ac(0xad)](U))==null?void 0x0:_0x59b699[_0x12d9ac(0x100)],'historyPanelComponentKey':(_0x3e06ad=this[_0x12d9ac(0xe0)]['getConfig'](U))==null?void 0x0:_0x3e06ad[_0x12d9ac(0xf4)]}]][_0x12d9ac(0xbb)](([_0x351809,_0x4de709])=>this['registerPlugin'](_0x351809,_0x4de709));}['dispose'](){const _0x16ce5b=_0x26f5c5;super[_0x16ce5b(0xf8)](),this[_0x16ce5b(0xd1)](),this['_pluginMap'][_0x16ce5b(0x11d)]();}[_0x26f5c5(0xbc)](_0x224a2d,_0x346415,_0x197bfe){const _0x558472=_0x26f5c5;if(this[_0x558472(0xb8)][_0x558472(0x9f)](_0x224a2d[_0x558472(0x10e)])&&!_0x197bfe)throw new Error(_0x558472(0xfb)+_0x224a2d['pluginName']+'\x20has\x20been\x20registered.');this[_0x558472(0xb8)][_0x558472(0x12b)](_0x224a2d['pluginName'],[_0x224a2d,_0x346415]);}[_0x26f5c5(0xc9)](){const _0x382cc9=_0x26f5c5;return Array[_0x382cc9(0x98)](this['_pluginMap'][_0x382cc9(0x9c)]());}['mountHistoryContent'](_0x37563b){const _0x2afb75=_0x26f5c5,_0x14e308=document[_0x2afb75(0x9b)](d);_0x14e308&&(_0x14e308[_0x2afb75(0x129)][_0x2afb75(0x105)]='block',this[_0x2afb75(0xe4)](_0x37563b,d));}[_0x26f5c5(0xd1)](){const _0x51ce26=_0x26f5c5;var _0x73c70a;this['_disposableCollection'][_0x51ce26(0xf8)](),(_0x73c70a=this[_0x51ce26(0x10f)])==null||_0x73c70a['dispose'](),this[_0x51ce26(0xd5)][_0x51ce26(0xee)](null);const _0x22a163=document[_0x51ce26(0x9b)](d);_0x22a163&&(_0x22a163[_0x51ce26(0x129)]['display']='none');}[_0x26f5c5(0xe4)](_0xf42072,_0x23b018){const _0x390de3=_0x26f5c5;if(this[_0x390de3(0x10f)])return;const _0x8dccfb=new _0x4059ab({'locales':{[this[_0x390de3(0xb7)][_0x390de3(0xa4)]()]:this[_0x390de3(0xb7)][_0x390de3(0xcd)]()},'override':[[_0x35a2a6,{'useClass':_0x531ebd}]]}),_0x4eb73f=_0x8dccfb[_0x390de3(0x90)]();this[_0x390de3(0x118)](this['_themeService'][_0x390de3(0xfa)]['subscribe'](_0x54e4e2=>{const _0x360fda=_0x390de3;_0x4eb73f[_0x360fda(0xf9)](_0x38a186)['setDarkMode'](_0x54e4e2);})),this[_0x390de3(0x118)](this['_themeService']['currentTheme$'][_0x390de3(0xfc)](_0xfecce2=>{const _0x14c625=_0x390de3;_0x4eb73f[_0x14c625(0xf9)](_0x38a186)[_0x14c625(0xe2)](_0xfecce2);})),_0x4eb73f['get'](_0x2e1af7)[_0x390de3(0x9d)](this['_localeService'][_0x390de3(0xa4)]()),_0x4eb73f[_0x390de3(0xf9)](_0x3c4f6c)['setConfig'](_0x2a6248,this[_0x390de3(0xe0)]['getConfig'](_0x2a6248));const _0x47d7f7=this[_0x390de3(0xe0)][_0x390de3(0xad)](_0x4db0d1);_0x47d7f7&&_0x8dccfb[_0x390de3(0xbc)](_0xd6f678,{'license':_0x47d7f7['ls']}),this['_pluginMap'][_0x390de3(0xbb)](([_0x54bb4e,_0x5b4735])=>{const _0x59a838=_0x390de3;_0x8dccfb[_0x59a838(0xbc)](_0x54bb4e,_0x5b4735);}),_0x4eb73f[_0x390de3(0x96)](_0x5a2fa5=>{const _0x2c70b9=_0x390de3;this[_0x2c70b9(0x112)](_0x5a2fa5,_0xf42072);}),this[_0x390de3(0xd5)][_0x390de3(0xee)](_0x8dccfb);const _0x158b82=_0x4eb73f['get'](_0x16646d),_0x5ddadc=this[_0x390de3(0xa5)](_0xf42072);_0x158b82[_0x390de3(0xd2)](_0xf42072,_0x23b018,_0x5ddadc);}[_0x26f5c5(0x112)](_0x2f6a58,_0x139e8e){const _0xec08ef=_0x26f5c5,_0x131e94=_0x2f6a58[_0xec08ef(0xf9)](_0x16646d);this[_0xec08ef(0x8e)][_0xec08ef(0xa9)](_0x131e94[_0xec08ef(0xfe)][_0xec08ef(0xfc)](_0x2afca1=>{const _0x4a9355=_0xec08ef;switch(_0x2afca1){case _0x5180a7['Entered']:this['_dialogService'][_0x4a9355(0xf5)](),this[_0x4a9355(0x10a)]['close']();break;case _0x5180a7[_0x4a9355(0xb0)]:this[_0x4a9355(0xc2)]['executeCommand'](W['id']),this[_0x4a9355(0xd1)]();break;case _0x5180a7[_0x4a9355(0xb5)]:this[_0x4a9355(0xd1)](),this[_0x4a9355(0xcf)]['show']({'content':this[_0x4a9355(0xb7)]['t']('editHistory.panel.listFetchError'),'type':_0x58132a[_0x4a9355(0xb5)],'duration':0xbb8});break;}})),this['_disposableCollection'][_0xec08ef(0xa9)](_0x131e94['revertRevision$'][_0xec08ef(0xfc)](async _0x2669a1=>{const _0x3b3de1=_0xec08ef;_0x2669a1&&this['_commandService'][_0x3b3de1(0xa1)](_0xd1193f['id'],{'unitId':_0x139e8e,'revision':_0x2669a1});}));}['_checkCanRevert'](_0x43ea9e){const _0x12bdc7=_0x26f5c5,_0x342f5f=this[_0x12bdc7(0xa2)]['getUnit'](_0x43ea9e)[_0x12bdc7(0xf1)]()[_0x12bdc7(0x93)](_0x54a314=>_0x54a314[_0x12bdc7(0xce)]()),_0x55b450=new _0x45614f(_0x43ea9e)['id'],_0x501e15=_0x342f5f[_0x12bdc7(0x93)](_0xfa8ef5=>new _0x23fd86(_0x43ea9e,_0xfa8ef5)['id']),_0x340e99=_0x342f5f[_0x12bdc7(0x93)](_0x3bc0e5=>this[_0x12bdc7(0x11a)][_0x12bdc7(0x10d)](_0x43ea9e,_0x3bc0e5)[_0x12bdc7(0x93)](_0x3f6f3e=>new _0x36dacb(_0x43ea9e,_0x3bc0e5,_0x3f6f3e[_0x12bdc7(0xea)])['id']))[_0x12bdc7(0xc0)](),_0x838ac=new _0x3514f3(_0x43ea9e)['id'];return this[_0x12bdc7(0x102)][_0x12bdc7(0x9e)]([_0x55b450,..._0x501e15,..._0x340e99,_0x838ac])[_0x12bdc7(0xdb)](_0x222ff4=>!!_0x222ff4[_0x12bdc7(0x116)]);}};f=mi([l(0x0,_0xb38479(_0x2e1af7)),l(0x1,_0x1b154f),l(0x2,_0x3c4f6c),l(0x3,_0xeae62a),l(0x4,_0x3ff56f),l(0x5,_0x796d7),l(0x6,_0xb38479(_0xf75585)),l(0x7,_0xb38479(_0x44bef5)),l(0x8,_0xb38479(_0x49ae37)),l(0x9,_0xb38479(_0x38a186))],f);const b={'id':_0x26f5c5(0x12c),'type':_0x583198[_0x26f5c5(0xe8)],'handler':_0x3c70c9=>{const _0x2f0532=_0x26f5c5,_0x4d800a=_0x3c70c9[_0x2f0532(0xf9)](f),_0x476f33=_0x3c70c9[_0x2f0532(0xf9)](_0x1b154f),{unitId:_0x426e55}=_0x53e9a1(_0x476f33)||{};return _0x426e55?(_0x4d800a[_0x2f0532(0xaf)](_0x426e55),!0x0):!0x1;}},W={'id':'univer.operation.exit-edit-history','type':_0x583198[_0x26f5c5(0xe8)],'handler':()=>!0x0};function di(_0x1f19f7){const _0x72619b=_0x26f5c5;return{'id':b['id'],'type':_0x1200ff[_0x72619b(0x104)],'icon':_0x72619b(0x128),'tooltip':'editHistory.panel.title','hidden$':_0x4b4794(_0x1f19f7,_0x500737[_0x72619b(0xd9)]),'disabled$':_0xf8252b(_0x1f19f7,{'workbookTypes':[_0x45614f,_0x4c0659],'worksheetTypes':[],'rangeTypes':[]})};}const fi={[_0x202139[_0x26f5c5(0x97)]]:{[b['id']]:{'order':0.2,'menuItemFactory':di}}};var _i=Object['getOwnPropertyDescriptor'],pi=(_0x18cc9e,_0x1ed577,_0xf9d7c7,_0x2e8117)=>{const _0x3d661b=_0x26f5c5;for(var _0x21ee5d=_0x2e8117>0x1?void 0x0:_0x2e8117?_i(_0x1ed577,_0xf9d7c7):_0x1ed577,_0x3bbb4c=_0x18cc9e[_0x3d661b(0x11c)]-0x1,_0x4cc30a;_0x3bbb4c>=0x0;_0x3bbb4c--)(_0x4cc30a=_0x18cc9e[_0x3bbb4c])&&(_0x21ee5d=_0x4cc30a(_0x21ee5d)||_0x21ee5d);return _0x21ee5d;},m=(_0x247168,_0x49ff4e)=>(_0x1924c1,_0x2f0bd8)=>_0x49ff4e(_0x1924c1,_0x2f0bd8,_0x247168);let p=class extends _0x371026{constructor(_0x34d20f,_0x57554e,_0x9bb375,_0x31608d,_0x4712e9,_0x5e3353,_0x414482,_0x33447e){const _0x20f5f8=_0x26f5c5;super(),g(this,'_revertErrorTimer',null),(this[_0x20f5f8(0xc2)]=_0x34d20f,this[_0x20f5f8(0x123)]=_0x57554e,this['_componentManager']=_0x9bb375,this[_0x20f5f8(0x12a)]=_0x31608d,this['_localeService']=_0x4712e9,this['_messageService']=_0x5e3353,this[_0x20f5f8(0xe5)]=_0x414482,this[_0x20f5f8(0xc7)]=_0x33447e,this[_0x20f5f8(0xf6)]());}[_0x26f5c5(0xf6)](){const _0x79c89a=_0x26f5c5;[b,W][_0x79c89a(0xbb)](_0xb1f593=>this[_0x79c89a(0x118)](_0x3c8bed(this[_0x79c89a(0xc2)]['registerCommand'](_0xb1f593)))),this[_0x79c89a(0x118)](this[_0x79c89a(0x120)]['register'](_0x79c89a(0x128),V)),this[_0x79c89a(0x123)][_0x79c89a(0xdf)](fi),this[_0x79c89a(0x118)](this[_0x79c89a(0xc2)]['onCommandExecuted'](_0x17aa6a=>{const _0x496ad8=_0x79c89a;if(_0x17aa6a['id']===_0xd1193f['id']){this['_messageService'][_0x496ad8(0x119)]({'content':this['_localeService']['t'](_0x496ad8(0xd3)),'type':_0x58132a[_0x496ad8(0xab)],'duration':0x1388});const {unitId:_0x5d19b5}=_0x17aa6a[_0x496ad8(0xef)],_0x3f10c6=this[_0x496ad8(0xe5)]['getCollabEntity'](_0x5d19b5),_0x1e6cda=_0x19dfa3([_0x3f10c6[_0x496ad8(0xa7)][_0x496ad8(0xec)],_0x3f10c6['state$']])[_0x496ad8(0xfc)](async([_0x14d97f,_0x4d3636])=>{const _0x9638a7=_0x496ad8;var _0x3e4667;_0x14d97f[_0x9638a7(0xe1)]===_0x28d345[_0x9638a7(0xba)]&&(_0x4d3636==null?void 0x0:_0x4d3636[_0x9638a7(0xbd)])===_0x188bde[_0x9638a7(0xa8)]&&_0x14d97f[_0x9638a7(0x124)]['mutations']['some'](_0x290a1f=>_0x290a1f['id']===_0xd1193f['id'])&&(this[_0x9638a7(0x12a)][_0x9638a7(0xd1)](),_0x1e6cda[_0x9638a7(0xb9)](),this[_0x9638a7(0x99)]&&clearTimeout(this['_revertErrorTimer']),await((_0x3e4667=this[_0x9638a7(0xc7)])==null?void 0x0:_0x3e4667[_0x9638a7(0xc5)]()),setTimeout(()=>window[_0x9638a7(0x117)]['reload']()));});this[_0x496ad8(0x99)]=setTimeout(()=>{const _0x9878c7=_0x496ad8;_0x1e6cda['unsubscribe'](),this[_0x9878c7(0xcf)][_0x9878c7(0x119)]({'content':this[_0x9878c7(0xb7)]['t']('editHistory.panel.revertFailed'),'type':_0x58132a[_0x9878c7(0xb5)],'duration':0xbb8});},0x1388);}}));}};p=pi([m(0x0,_0xeae62a),m(0x1,_0x18b5b2),m(0x2,_0xb38479(_0xc50fc4)),m(0x3,_0xb38479(f)),m(0x4,_0xb38479(_0x2e1af7)),m(0x5,_0x3ff56f),m(0x6,_0xb38479(_0x250a30)),m(0x7,_0x43cb3d)],p);var Si=Object[_0x26f5c5(0xf7)],Ci=(_0xaa6146,_0x7a9b0b,_0x276d50,_0x4ede15)=>{const _0x11fa6d=_0x26f5c5;for(var _0x2a77d3=_0x4ede15>0x1?void 0x0:_0x4ede15?Si(_0x7a9b0b,_0x276d50):_0x7a9b0b,_0x55c21d=_0xaa6146[_0x11fa6d(0x11c)]-0x1,_0x219d17;_0x55c21d>=0x0;_0x55c21d--)(_0x219d17=_0xaa6146[_0x55c21d])&&(_0x2a77d3=_0x219d17(_0x2a77d3)||_0x2a77d3);return _0x2a77d3;},R=(_0x57cca4,_0x4c01ab)=>(_0x532b40,_0x5b28bb)=>_0x4c01ab(_0x532b40,_0x5b28bb,_0x57cca4);const yi=_0x26f5c5(0xb2);var _;let H=(_=class extends _0x5857f0{constructor(_0x5ee2a7=N,_0x37f8ea,_0x18cab8){const _0x2837d4=_0x26f5c5;super(),this['_config']=_0x5ee2a7,this[_0x2837d4(0x94)]=_0x37f8ea,this[_0x2837d4(0xe0)]=_0x18cab8;const {menu:_0x551cfa,..._0x1c25c5}=_0x100c73({},N,this['_config']);_0x551cfa&&this[_0x2837d4(0xe0)][_0x2837d4(0xae)]('menu',_0x551cfa,{'merge':!0x0}),this[_0x2837d4(0xe0)][_0x2837d4(0xae)](U,_0x1c25c5),this[_0x2837d4(0xbf)][_0x2837d4(0xde)]&&this[_0x2837d4(0xe0)][_0x2837d4(0xae)](G,this[_0x2837d4(0xbf)]['univerContainerId']);}[_0x26f5c5(0x126)](){const _0x26ca06=_0x26f5c5;[[f],[p]]['forEach'](_0x63a84e=>this['_injector'][_0x26ca06(0xa9)](_0x63a84e));}['onSteady'](){const _0x107f71=_0x26f5c5;this['_injector'][_0x107f71(0xf9)](p);}},g(_,'type',_0x500737['UNIVER_UNKNOWN']),g(_,'pluginName',yi),_);H=Ci([R(0x1,_0xb38479(_0x198ee0)),R(0x2,_0x3c4f6c)],H);export{f as HistoryLoaderService,G as UNIVER_CONTAINER_ID_KEY,d as UNIVER_HISTORY_CONTAINER_ID,H as UniverEditHistoryLoaderPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x22bf(_0x262e6d,_0x4a9845){_0x262e6d=_0x262e6d-0x85;const _0xa03900=_0xa039();let _0x22bf5b=_0xa03900[_0x262e6d];return _0x22bf5b;}(function(_0x3737e4,_0x49d15c){const _0x4fc253=_0x22bf,_0x4963ac=_0x3737e4();while(!![]){try{const _0x323968=parseInt(_0x4fc253(0xfd))/0x1+-parseInt(_0x4fc253(0x9d))/0x2*(parseInt(_0x4fc253(0xcc))/0x3)+-parseInt(_0x4fc253(0x179))/0x4+parseInt(_0x4fc253(0x129))/0x5+-parseInt(_0x4fc253(0x145))/0x6+parseInt(_0x4fc253(0x13f))/0x7+parseInt(_0x4fc253(0x160))/0x8*(parseInt(_0x4fc253(0x120))/0x9);if(_0x323968===_0x49d15c)break;else _0x4963ac['push'](_0x4963ac['shift']());}catch(_0x54ef41){_0x4963ac['push'](_0x4963ac['shift']());}}}(_0xa039,0xd7afe),function(_0x4989cc,_0x3e3170){const _0x33829b=_0x22bf;typeof exports==_0x33829b(0x1a9)&&typeof module<'u'?_0x3e3170(exports,require('@univerjs/core'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/design'),require('react'),require('@univerjs/ui'),require('rxjs'),require('@univerjs/sheets'),require('@univerjs-pro/edit-history-viewer'),require('@univerjs-pro/license'),require('@univerjs-pro/sheets-chart'),require('@univerjs-pro/sheets-chart-ui'),require('@univerjs-pro/sheets-pivot'),require('@univerjs-pro/sheets-sparkline'),require('@univerjs-pro/sheets-sparkline-ui'),require('@univerjs/data-validation'),require('@univerjs/docs'),require('@univerjs/docs-ui'),require('@univerjs/drawing'),require('@univerjs/drawing-ui'),require('@univerjs/engine-formula'),require('@univerjs/engine-render'),require('@univerjs/network'),require('@univerjs/rpc'),require('@univerjs/sheets-conditional-formatting'),require('@univerjs/sheets-conditional-formatting-ui'),require('@univerjs/sheets-data-validation'),require('@univerjs/sheets-data-validation-ui'),require('@univerjs/sheets-drawing'),require('@univerjs/sheets-drawing-ui'),require('@univerjs/sheets-filter'),require('@univerjs/sheets-filter-ui'),require('@univerjs/sheets-formula'),require('@univerjs/sheets-formula-ui'),require('@univerjs/sheets-hyper-link'),require('@univerjs/sheets-hyper-link-ui'),require('@univerjs/sheets-numfmt'),require('@univerjs/sheets-ui')):typeof define==_0x33829b(0xa4)&&define[_0x33829b(0x8c)]?define([_0x33829b(0x91),_0x33829b(0xd6),'@univerjs-pro/collaboration',_0x33829b(0x16b),_0x33829b(0xbb),_0x33829b(0x181),_0x33829b(0x125),_0x33829b(0xda),_0x33829b(0x104),_0x33829b(0x17b),'@univerjs-pro/license',_0x33829b(0x183),_0x33829b(0x9f),_0x33829b(0x156),_0x33829b(0x130),_0x33829b(0xeb),_0x33829b(0xf6),'@univerjs/docs',_0x33829b(0xe1),_0x33829b(0x141),_0x33829b(0x17d),_0x33829b(0x134),_0x33829b(0x13c),_0x33829b(0x14c),_0x33829b(0x165),'@univerjs/sheets-conditional-formatting','@univerjs/sheets-conditional-formatting-ui','@univerjs/sheets-data-validation','@univerjs/sheets-data-validation-ui',_0x33829b(0xae),'@univerjs/sheets-drawing-ui',_0x33829b(0xce),'@univerjs/sheets-filter-ui','@univerjs/sheets-formula','@univerjs/sheets-formula-ui','@univerjs/sheets-hyper-link',_0x33829b(0x15f),'@univerjs/sheets-numfmt',_0x33829b(0x188)],_0x3e3170):(_0x4989cc=typeof globalThis<'u'?globalThis:_0x4989cc||self,_0x3e3170(_0x4989cc[_0x33829b(0x189)]={},_0x4989cc[_0x33829b(0x180)],_0x4989cc[_0x33829b(0x13e)],_0x4989cc[_0x33829b(0x192)],_0x4989cc[_0x33829b(0x197)],_0x4989cc[_0x33829b(0x92)],_0x4989cc[_0x33829b(0x142)],_0x4989cc[_0x33829b(0xda)],_0x4989cc[_0x33829b(0xba)],_0x4989cc[_0x33829b(0x99)],_0x4989cc[_0x33829b(0xab)],_0x4989cc[_0x33829b(0x100)],_0x4989cc[_0x33829b(0xf0)],_0x4989cc[_0x33829b(0x114)],_0x4989cc[_0x33829b(0x18f)],_0x4989cc['UniverProSheetsSparklineUi'],_0x4989cc[_0x33829b(0x170)],_0x4989cc[_0x33829b(0x1b3)],_0x4989cc[_0x33829b(0x133)],_0x4989cc[_0x33829b(0x14a)],_0x4989cc[_0x33829b(0x1b4)],_0x4989cc[_0x33829b(0xad)],_0x4989cc[_0x33829b(0xdc)],_0x4989cc['UniverNetwork'],_0x4989cc['UniverRpc'],_0x4989cc['UniverSheetsConditionalFormatting'],_0x4989cc['UniverSheetsConditionalFormattingUi'],_0x4989cc[_0x33829b(0x122)],_0x4989cc[_0x33829b(0xa0)],_0x4989cc[_0x33829b(0x166)],_0x4989cc[_0x33829b(0x171)],_0x4989cc['UniverSheetsFilter'],_0x4989cc[_0x33829b(0xd0)],_0x4989cc['UniverSheetsFormula'],_0x4989cc[_0x33829b(0x162)],_0x4989cc['UniverSheetsHyperLink'],_0x4989cc[_0x33829b(0x16f)],_0x4989cc[_0x33829b(0x98)],_0x4989cc[_0x33829b(0x13a)]));}(this,function(_0x4fa08c,_0x33a895,_0x4a5c5a,_0x553178,_0x54b4b6,_0x4d6f6f,_0xd9cc56,_0x43a58f,_0xc96aeb,_0x2643cc,_0x14e701,_0x1ef779,_0xc7d25d,_0x5ae5ce,_0x28575f,_0x3fd07d,_0x15e7c6,_0x340fa0,_0x30b7cd,_0x4eb197,_0x1607e4,_0x2c8fed,_0x35b03f,_0x28b2b2,_0x1f489b,_0xa0c48a,_0x48575d,_0x2d8b00,_0x3771b1,_0x5ec8ef,_0x8ae628,_0x1600fb,_0xbeba9a,_0x522212,_0x570e0c,_0x556dd0,_0x28a633,_0x2effc3,_0x1fb220){'use strict';const _0x12ffe1=_0x22bf;var _0x5553ea=Object[_0x12ffe1(0x175)],_0x45a0fe=(_0x3e84f3,_0x564b7e,_0xb74ec7)=>_0x564b7e in _0x3e84f3?_0x5553ea(_0x3e84f3,_0x564b7e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb74ec7}):_0x3e84f3[_0x564b7e]=_0xb74ec7,_0x54231d=(_0x4d6dcf,_0x294685,_0x31ed4b)=>_0x45a0fe(_0x4d6dcf,typeof _0x294685!=_0x12ffe1(0x149)?_0x294685+'':_0x294685,_0x31ed4b),_0xca8770;const _0x15d5c7=_0x12ffe1(0xb7),_0x52b77d={};function _0x206399({ref:_0x4d8641,..._0x542fc1}){const _0x509b19=_0x12ffe1,{icon:_0xd9698,id:_0x97724c,className:_0x538912,extend:_0x2f1521,..._0x3d20c1}=_0x542fc1,_0x788f9f=(_0x509b19(0xa9)+_0x97724c+'\x20'+(_0x538912||''))[_0x509b19(0x176)](),_0x45cc1b=_0x4d6f6f[_0x509b19(0x18d)]('_'+_0x3e378d());return _0x5a4ed3(_0xd9698,''+_0x97724c,{'defIds':_0xd9698[_0x509b19(0xef)],'idSuffix':_0x45cc1b[_0x509b19(0x199)]},{'ref':_0x4d8641,'className':_0x788f9f,..._0x3d20c1},_0x2f1521);}function _0x5a4ed3(_0x374b2f,_0x2308f9,_0x3bcee4,_0x3dc424,_0xf09a14){const _0x18ab95=_0x12ffe1;return _0x4d6f6f['createElement'](_0x374b2f[_0x18ab95(0x11a)],{'key':_0x2308f9,..._0x550108(_0x374b2f,_0x3bcee4,_0xf09a14),..._0x3dc424},(_0x1e6d51(_0x374b2f,_0x3bcee4)['children']||[])['map']((_0x19b62b,_0x442746)=>_0x5a4ed3(_0x19b62b,_0x2308f9+'-'+_0x374b2f[_0x18ab95(0x11a)]+'-'+_0x442746,_0x3bcee4,void 0x0,_0xf09a14)));}function _0x550108(_0x3eb1b8,_0x559a26,_0x19802c){const _0x407f4a=_0x12ffe1,_0x13b3bc={..._0x3eb1b8[_0x407f4a(0x13d)]};_0x19802c!=null&&_0x19802c['colorChannel1']&&_0x13b3bc[_0x407f4a(0x194)]===_0x407f4a(0x14b)&&(_0x13b3bc[_0x407f4a(0x194)]=_0x19802c['colorChannel1']),_0x3eb1b8['tag']===_0x407f4a(0xb2)&&_0x13b3bc['id']&&(_0x13b3bc['id']=_0x13b3bc['id']+_0x559a26[_0x407f4a(0xc6)]),Object[_0x407f4a(0x88)](_0x13b3bc)[_0x407f4a(0x16a)](([_0x356a5d,_0x58a209])=>{const _0x4cb7eb=_0x407f4a;_0x356a5d===_0x4cb7eb(0xb2)&&typeof _0x58a209==_0x4cb7eb(0x14e)&&(_0x13b3bc[_0x356a5d]=_0x58a209[_0x4cb7eb(0x10f)](/url\(#(.*)\)/,'url(#$1'+_0x559a26[_0x4cb7eb(0xc6)]+')'));});const {defIds:_0x5821c8}=_0x559a26;return!_0x5821c8||_0x5821c8[_0x407f4a(0xc4)]===0x0||(_0x3eb1b8[_0x407f4a(0x11a)]===_0x407f4a(0x8f)&&_0x13b3bc[_0x407f4a(0x15c)]&&(_0x13b3bc[_0x407f4a(0x15c)]=_0x13b3bc['xlink:href']+_0x559a26[_0x407f4a(0xc6)]),Object[_0x407f4a(0x88)](_0x13b3bc)[_0x407f4a(0x16a)](([_0x560e39,_0x363bcf])=>{const _0x4e54fc=_0x407f4a;typeof _0x363bcf==_0x4e54fc(0x14e)&&(_0x13b3bc[_0x560e39]=_0x363bcf[_0x4e54fc(0x10f)](/url\(#(.*)\)/,_0x4e54fc(0xd2)+_0x559a26['idSuffix']+')'));})),_0x13b3bc;}function _0x1e6d51(_0x1c44d8,_0x3b65c9){const _0x3ffa3d=_0x12ffe1;var _0x39363d;const {defIds:_0x530172}=_0x3b65c9;return!_0x530172||_0x530172['length']===0x0?_0x1c44d8:_0x1c44d8[_0x3ffa3d(0x11a)]===_0x3ffa3d(0x12d)&&((_0x39363d=_0x1c44d8[_0x3ffa3d(0xe2)])!=null&&_0x39363d[_0x3ffa3d(0xc4)])?{..._0x1c44d8,'children':_0x1c44d8['children'][_0x3ffa3d(0xb4)](_0x181e4=>typeof _0x181e4[_0x3ffa3d(0x13d)]['id']==_0x3ffa3d(0x14e)&&_0x530172&&_0x530172[_0x3ffa3d(0x158)](_0x181e4[_0x3ffa3d(0x13d)]['id'])?{..._0x181e4,'attrs':{..._0x181e4[_0x3ffa3d(0x13d)],'id':_0x181e4[_0x3ffa3d(0x13d)]['id']+_0x3b65c9[_0x3ffa3d(0xc6)]}}:_0x181e4)}:_0x1c44d8;}function _0x3e378d(){const _0x3da128=_0x12ffe1;return Math[_0x3da128(0x10a)]()[_0x3da128(0x1b0)](0x24)[_0x3da128(0x18c)](0x2,0x8);}_0x206399[_0x12ffe1(0x1b9)]=_0x12ffe1(0x157);const _0x4681fb={'tag':'svg','attrs':{'xmlns':_0x12ffe1(0x1ae),'fill':_0x12ffe1(0xe9),'viewBox':_0x12ffe1(0xd4),'width':_0x12ffe1(0xed),'height':_0x12ffe1(0xed)},'children':[{'tag':'g','attrs':{'fill':_0x12ffe1(0x140),'clipPath':_0x12ffe1(0x152)},'children':[{'tag':_0x12ffe1(0x172),'attrs':{'d':_0x12ffe1(0x19c)}},{'tag':_0x12ffe1(0x172),'attrs':{'d':_0x12ffe1(0xbc)}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x12ffe1(0x1a8),'attrs':{'id':_0x12ffe1(0x17f)},'children':[{'tag':_0x12ffe1(0x172),'attrs':{'fill':_0x12ffe1(0xd9),'d':_0x12ffe1(0x185)}}]}]}],'defIds':[_0x12ffe1(0x17f)]},_0x5356d3=_0x4d6f6f[_0x12ffe1(0xb5)](function(_0x159e62,_0xe1f9ab){const _0x104502=_0x12ffe1;return _0x4d6f6f[_0x104502(0x10e)](_0x206399,Object[_0x104502(0xde)]({},_0x159e62,{'id':'history-icon','ref':_0xe1f9ab,'icon':_0x4681fb}));});_0x5356d3[_0x12ffe1(0x1b9)]=_0x12ffe1(0x9c);var _0x18651b=Object[_0x12ffe1(0x15a)],_0x163fa8=(_0xc511ae,_0xf7cb3c,_0x1980bc,_0x17ca8b)=>{for(var _0x3749da=_0x17ca8b>0x1?void 0x0:_0x17ca8b?_0x18651b(_0xf7cb3c,_0x1980bc):_0xf7cb3c,_0x5f1938=_0xc511ae['length']-0x1,_0x4aa2be;_0x5f1938>=0x0;_0x5f1938--)(_0x4aa2be=_0xc511ae[_0x5f1938])&&(_0x3749da=_0x4aa2be(_0x3749da)||_0x3749da);return _0x3749da;},_0x5ea2e8=(_0x3115f7,_0x49f468)=>(_0x1a7ee1,_0x1e4ba8)=>_0x49f468(_0x1a7ee1,_0x1e4ba8,_0x3115f7);const _0x44308f=_0x12ffe1(0x108),_0x832571='UNIVER_CONTAINER_ID',_0x182472=_0x12ffe1(0x19d);_0x4fa08c[_0x12ffe1(0x86)]=class extends _0x33a895['Disposable']{constructor(_0x42925b,_0x5cf533,_0x10c01c,_0x484500,_0x239f43,_0x276fb5,_0x147384,_0x1bda14,_0x59c8fd,_0x326540){const _0x1fb07e=_0x12ffe1;super(),_0x54231d(this,'_historyUniver$',new _0x43a58f[(_0x1fb07e(0x89))](null)),_0x54231d(this,_0x1fb07e(0x9b),this[_0x1fb07e(0x1b6)]['asObservable']()),_0x54231d(this,_0x1fb07e(0xfb),new _0x33a895[(_0x1fb07e(0x1a3))]()),_0x54231d(this,_0x1fb07e(0x17c),new Map()),(this['_localeService']=_0x42925b,this['_univerInstanceService']=_0x5cf533,this[_0x1fb07e(0x13b)]=_0x10c01c,this[_0x1fb07e(0x93)]=_0x484500,this[_0x1fb07e(0xe3)]=_0x239f43,this[_0x1fb07e(0xca)]=_0x276fb5,this['_selectionProtectionRuleModel']=_0x147384,this[_0x1fb07e(0xa2)]=_0x1bda14,this[_0x1fb07e(0x1ac)]=_0x59c8fd,this[_0x1fb07e(0x195)]=_0x326540,this['_init']());}get[_0x12ffe1(0x187)](){const _0x258772=_0x12ffe1;return this['_historyUniver$'][_0x258772(0xf7)];}[_0x12ffe1(0x190)](){const _0x4d9e63=_0x12ffe1;this[_0x4d9e63(0x178)](),this[_0x4d9e63(0x1a5)]();}['_initContainer'](){const _0x268db6=_0x12ffe1;var _0x5e6654;const _0x527fc2=(_0x5e6654=this[_0x268db6(0x13b)][_0x268db6(0x196)](_0x832571))!=null?_0x5e6654:_0x44308f,_0x13111e=document['getElementById'](_0x527fc2);if(!_0x13111e)return;const _0x4ee641=document[_0x268db6(0x10e)]('div');_0x4ee641['id']=_0x182472,_0x4ee641[_0x268db6(0x12b)]['uComp']='history-container',_0x4ee641[_0x268db6(0x137)]['position']=_0x268db6(0x16d),_0x4ee641['style']['top']='0',_0x4ee641[_0x268db6(0x137)][_0x268db6(0x169)]='0',_0x4ee641[_0x268db6(0x137)][_0x268db6(0x121)]=_0x268db6(0x123),_0x4ee641[_0x268db6(0x137)][_0x268db6(0x112)]=_0x268db6(0x123),_0x4ee641[_0x268db6(0x137)][_0x268db6(0x1a4)]=_0x268db6(0x159),_0x4ee641[_0x268db6(0x137)][_0x268db6(0xb3)]=_0x268db6(0xe9),_0x13111e[_0x268db6(0xec)](_0x4ee641);}[_0x12ffe1(0x1a5)](){const _0x4a2149=_0x12ffe1;var _0x37bfc4,_0x5bab7c,_0x2b7dfc,_0x2042ca;[[_0x35b03f[_0x4a2149(0xdf)]],[_0xd9cc56[_0x4a2149(0xcb)],{'container':_0x182472,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0xd9cc56[_0x4a2149(0x1a2)],null]]}],[_0x28b2b2[_0x4a2149(0x167)]],[_0x4eb197[_0x4a2149(0x1ad)],{'override':[[_0x4eb197[_0x4a2149(0x10c)],null]]}],[_0x340fa0[_0x4a2149(0x16c)],{'hasScroll':!0x1}],[_0x30b7cd['UniverDocsUIPlugin']],[_0x2effc3['UniverSheetsNumfmtPlugin']],[_0xc96aeb[_0x4a2149(0x116)],{'notExecuteFormula':!0x0}],[_0x1fb220['UniverSheetsUIPlugin']],[_0x522212[_0x4a2149(0x102)]],[_0x570e0c[_0x4a2149(0x11d)]],[_0x4a5c5a[_0x4a2149(0x12a)]],[_0x1600fb['UniverSheetsFilterPlugin']],[_0xbeba9a[_0x4a2149(0x18b)]],[_0xa0c48a[_0x4a2149(0x163)]],[_0x48575d['UniverSheetsConditionalFormattingUIPlugin']],[_0x556dd0[_0x4a2149(0x184)]],[_0x28a633[_0x4a2149(0x11f)]],[_0x15e7c6[_0x4a2149(0xf1)]],[_0x2d8b00[_0x4a2149(0x115)]],[_0x3771b1[_0x4a2149(0x19b)]],[_0x2c8fed[_0x4a2149(0x154)],{'notExecuteFormula':!0x0}],[_0x1f489b[_0x4a2149(0xa8)],{'workerURL':(_0x5bab7c=(_0x37bfc4=this[_0x4a2149(0x13b)][_0x4a2149(0x196)](_0x1f489b['PLUGIN_CONFIG_KEY_MAIN_THREAD']))==null?void 0x0:_0x37bfc4[_0x4a2149(0x90)])!=null?_0x5bab7c:_0x4a2149(0x109)}],[_0x1607e4[_0x4a2149(0x182)]],[_0x5ec8ef[_0x4a2149(0x1a7)]],[_0x8ae628['UniverSheetsDrawingUIPlugin']],[_0x28575f[_0x4a2149(0x15e)]],[_0x3fd07d[_0x4a2149(0x1b7)]],[_0x1ef779['UniverSheetsChartPlugin']],[_0xc7d25d[_0x4a2149(0x8b)]],[_0x5ae5ce[_0x4a2149(0x1ab)],{'notExecuteFormula':!0x0}],[_0x2643cc['UniverEditHistoryViewerPlugin'],{'historyListServerUrl':(_0x2b7dfc=this['_configService']['getConfig'](_0x15d5c7))==null?void 0x0:_0x2b7dfc['historyListServerUrl'],'historyPanelComponentKey':(_0x2042ca=this[_0x4a2149(0x13b)][_0x4a2149(0x196)](_0x15d5c7))==null?void 0x0:_0x2042ca[_0x4a2149(0x8a)]}]]['forEach'](([_0x281d0f,_0x25b8e5])=>this['registerPlugin'](_0x281d0f,_0x25b8e5));}[_0x12ffe1(0x1b8)](){const _0x42c03c=_0x12ffe1;super[_0x42c03c(0x1b8)](),this['unMountHistoryContent'](),this['_pluginMap'][_0x42c03c(0xb1)]();}[_0x12ffe1(0xf4)](_0x5b566e,_0x268622,_0x166a19){const _0x2f11dc=_0x12ffe1;if(this[_0x2f11dc(0x17c)][_0x2f11dc(0x161)](_0x5b566e[_0x2f11dc(0xa6)])&&!_0x166a19)throw new Error(_0x2f11dc(0xb6)+_0x5b566e['pluginName']+_0x2f11dc(0x173));this[_0x2f11dc(0x17c)][_0x2f11dc(0x106)](_0x5b566e[_0x2f11dc(0xa6)],[_0x5b566e,_0x268622]);}[_0x12ffe1(0xc2)](){const _0x977dbc=_0x12ffe1;return Array[_0x977dbc(0x1b2)](this[_0x977dbc(0x17c)]['values']());}[_0x12ffe1(0x8e)](_0x53e844){const _0x1cbf2e=_0x12ffe1,_0x152b88=document[_0x1cbf2e(0xfe)](_0x182472);_0x152b88&&(_0x152b88[_0x1cbf2e(0x137)][_0x1cbf2e(0xb3)]=_0x1cbf2e(0x12e),this[_0x1cbf2e(0x96)](_0x53e844,_0x182472));}[_0x12ffe1(0xc9)](){const _0x3da2c4=_0x12ffe1;var _0x202d86;this[_0x3da2c4(0xfb)][_0x3da2c4(0x1b8)](),(_0x202d86=this[_0x3da2c4(0x187)])==null||_0x202d86[_0x3da2c4(0x1b8)](),this['_historyUniver$'][_0x3da2c4(0x12c)](null);const _0x55480a=document[_0x3da2c4(0xfe)](_0x182472);_0x55480a&&(_0x55480a[_0x3da2c4(0x137)][_0x3da2c4(0xb3)]=_0x3da2c4(0xe9));}['_initUniver'](_0x5e63da,_0x87d807){const _0x234f19=_0x12ffe1;if(this[_0x234f19(0x187)])return;const _0x176f17=new _0x33a895['Univer']({'locales':{[this['_localeService'][_0x234f19(0xbf)]()]:this[_0x234f19(0xaf)]['getLocales']()},'override':[[_0x33a895[_0x234f19(0x101)],{'useClass':_0x553178[_0x234f19(0x132)]}]]}),_0x47a9fa=_0x176f17[_0x234f19(0x1a1)]();this[_0x234f19(0x17a)](this[_0x234f19(0x195)]['darkMode$'][_0x234f19(0x191)](_0x4846de=>{const _0x4651d7=_0x234f19;_0x47a9fa[_0x4651d7(0x9e)](_0x33a895[_0x4651d7(0x135)])[_0x4651d7(0x94)](_0x4846de);})),this[_0x234f19(0x17a)](this[_0x234f19(0x195)][_0x234f19(0xfc)][_0x234f19(0x191)](_0x1556e9=>{const _0x2f0a4f=_0x234f19;_0x47a9fa['get'](_0x33a895[_0x2f0a4f(0x135)])[_0x2f0a4f(0x148)](_0x1556e9);})),_0x47a9fa[_0x234f19(0x9e)](_0x33a895[_0x234f19(0x177)])[_0x234f19(0x128)](this[_0x234f19(0xaf)][_0x234f19(0xbf)]()),_0x47a9fa['get'](_0x33a895[_0x234f19(0x15d)])['setConfig'](_0x553178[_0x234f19(0x9a)],this[_0x234f19(0x13b)][_0x234f19(0x196)](_0x553178[_0x234f19(0x9a)]));const _0xc77fe7=this[_0x234f19(0x13b)][_0x234f19(0x196)](_0x14e701[_0x234f19(0x19a)]);_0xc77fe7&&_0x176f17['registerPlugin'](_0x14e701[_0x234f19(0x103)],{'license':_0xc77fe7['ls']}),this[_0x234f19(0x17c)]['forEach'](([_0x507aba,_0x363519])=>{const _0x2ddfa1=_0x234f19;_0x176f17[_0x2ddfa1(0xf4)](_0x507aba,_0x363519);}),_0x47a9fa[_0x234f19(0xf9)](_0x13eb49=>{const _0x3435f5=_0x234f19;this[_0x3435f5(0xb9)](_0x13eb49,_0x5e63da);}),this[_0x234f19(0x1b6)]['next'](_0x176f17);const _0x1dd3cc=_0x47a9fa[_0x234f19(0x9e)](_0x2643cc[_0x234f19(0x97)]),_0x2cf125=this[_0x234f19(0xd5)](_0x5e63da);_0x1dd3cc[_0x234f19(0x131)](_0x5e63da,_0x87d807,_0x2cf125);}[_0x12ffe1(0xb9)](_0x3b71ef,_0x1bd062){const _0x473ad0=_0x12ffe1,_0x226598=_0x3b71ef[_0x473ad0(0x9e)](_0x2643cc[_0x473ad0(0x97)]);this[_0x473ad0(0xfb)][_0x473ad0(0xcd)](_0x226598[_0x473ad0(0x18e)][_0x473ad0(0x191)](_0x19f0a0=>{const _0x462cf1=_0x473ad0;switch(_0x19f0a0){case _0x2643cc[_0x462cf1(0xc0)][_0x462cf1(0x147)]:this[_0x462cf1(0xa2)][_0x462cf1(0xdb)](),this[_0x462cf1(0x1ac)][_0x462cf1(0x124)]();break;case _0x2643cc[_0x462cf1(0xc0)]['Exited']:this['_commandService'][_0x462cf1(0xc7)](_0x9b3f10['id']),this[_0x462cf1(0xc9)]();break;case _0x2643cc[_0x462cf1(0xc0)][_0x462cf1(0x193)]:this[_0x462cf1(0xc9)](),this['_messageService'][_0x462cf1(0x19e)]({'content':this['_localeService']['t'](_0x462cf1(0x1a0)),'type':_0x54b4b6[_0x462cf1(0xd1)][_0x462cf1(0x193)],'duration':0xbb8});break;}})),this[_0x473ad0(0xfb)][_0x473ad0(0xcd)](_0x226598[_0x473ad0(0x10d)][_0x473ad0(0x191)](async _0x576cf6=>{const _0x4c009d=_0x473ad0;_0x576cf6&&this[_0x4c009d(0x93)]['executeCommand'](_0x4a5c5a[_0x4c009d(0x164)]['id'],{'unitId':_0x1bd062,'revision':_0x576cf6});}));}[_0x12ffe1(0xd5)](_0x5d7045){const _0x2efd2e=_0x12ffe1,_0x1e91ec=this[_0x2efd2e(0x11e)][_0x2efd2e(0xaa)](_0x5d7045)[_0x2efd2e(0xd7)]()[_0x2efd2e(0xb4)](_0x1b8892=>_0x1b8892[_0x2efd2e(0xbe)]()),_0xfb91a0=new _0xc96aeb[(_0x2efd2e(0x198))](_0x5d7045)['id'],_0x35aadb=_0x1e91ec[_0x2efd2e(0xb4)](_0x63eb56=>new _0xc96aeb[(_0x2efd2e(0x105))](_0x5d7045,_0x63eb56)['id']),_0x35ff9f=_0x1e91ec[_0x2efd2e(0xb4)](_0x3abcd7=>this[_0x2efd2e(0x127)]['getSubunitRuleList'](_0x5d7045,_0x3abcd7)[_0x2efd2e(0xb4)](_0x5beff3=>new _0xc96aeb[(_0x2efd2e(0xc5))](_0x5d7045,_0x3abcd7,_0x5beff3[_0x2efd2e(0xff)])['id']))[_0x2efd2e(0x14f)](),_0x1a8a41=new _0xc96aeb['WorkbookRecoverHistoryPermission'](_0x5d7045)['id'];return this['_permissionService'][_0x2efd2e(0x18a)]([_0xfb91a0,..._0x35aadb,..._0x35ff9f,_0x1a8a41])[_0x2efd2e(0x110)](_0x3d603c=>!!_0x3d603c[_0x2efd2e(0xf7)]);}},_0x4fa08c[_0x12ffe1(0x86)]=_0x163fa8([_0x5ea2e8(0x0,_0x33a895[_0x12ffe1(0x1aa)](_0x33a895[_0x12ffe1(0x177)])),_0x5ea2e8(0x1,_0x33a895[_0x12ffe1(0x143)]),_0x5ea2e8(0x2,_0x33a895['IConfigService']),_0x5ea2e8(0x3,_0x33a895[_0x12ffe1(0x118)]),_0x5ea2e8(0x4,_0xd9cc56['IMessageService']),_0x5ea2e8(0x5,_0x33a895[_0x12ffe1(0xb0)]),_0x5ea2e8(0x6,_0x33a895['Inject'](_0xc96aeb[_0x12ffe1(0xfa)])),_0x5ea2e8(0x7,_0x33a895[_0x12ffe1(0x1aa)](_0xd9cc56[_0x12ffe1(0x1a2)])),_0x5ea2e8(0x8,_0x33a895['Inject'](_0xd9cc56['ISidebarService'])),_0x5ea2e8(0x9,_0x33a895['Inject'](_0x33a895['ThemeService']))],_0x4fa08c['HistoryLoaderService']);const _0xc72e8c={'id':_0x12ffe1(0xd8),'type':_0x33a895['CommandType'][_0x12ffe1(0xe7)],'handler':_0x5d60a3=>{const _0x56e8a2=_0x12ffe1,_0x12e856=_0x5d60a3[_0x56e8a2(0x9e)](_0x4fa08c[_0x56e8a2(0x86)]),_0x59b0d4=_0x5d60a3['get'](_0x33a895[_0x56e8a2(0x143)]),{unitId:_0x52489d}=_0xc96aeb[_0x56e8a2(0x8d)](_0x59b0d4)||{};return _0x52489d?(_0x12e856[_0x56e8a2(0x8e)](_0x52489d),!0x0):!0x1;}},_0x9b3f10={'id':'univer.operation.exit-edit-history','type':_0x33a895[_0x12ffe1(0x113)][_0x12ffe1(0xe7)],'handler':()=>!0x0};function _0xdf433f(_0x31c1ce){const _0x560fe4=_0x12ffe1;return{'id':_0xc72e8c['id'],'type':_0xd9cc56[_0x560fe4(0x1b1)][_0x560fe4(0xf8)],'icon':'HistoryIcon','tooltip':_0x560fe4(0xe8),'hidden$':_0xd9cc56[_0x560fe4(0xe0)](_0x31c1ce,_0x33a895['UniverInstanceType'][_0x560fe4(0xac)]),'disabled$':_0x1fb220[_0x560fe4(0x11b)](_0x31c1ce,{'workbookTypes':[_0xc96aeb['WorkbookEditablePermission'],_0xc96aeb['WorkbookViewHistoryPermission']],'worksheetTypes':[],'rangeTypes':[]})};}const _0x54459e={[_0xd9cc56[_0x12ffe1(0xa7)][_0x12ffe1(0x1a6)]]:{[_0xc72e8c['id']]:{'order':0.2,'menuItemFactory':_0xdf433f}}};var _0x2fffd6=Object[_0x12ffe1(0x15a)],_0x5dc7b9=(_0x1a3be1,_0x5ef9af,_0xd23fd6,_0x5d04f3)=>{for(var _0x27cbda=_0x5d04f3>0x1?void 0x0:_0x5d04f3?_0x2fffd6(_0x5ef9af,_0xd23fd6):_0x5ef9af,_0x4b9ca7=_0x1a3be1['length']-0x1,_0x2803a4;_0x4b9ca7>=0x0;_0x4b9ca7--)(_0x2803a4=_0x1a3be1[_0x4b9ca7])&&(_0x27cbda=_0x2803a4(_0x27cbda)||_0x27cbda);return _0x27cbda;},_0x2db63a=(_0x1e6655,_0x14c57d)=>(_0x344c54,_0x25ed3d)=>_0x14c57d(_0x344c54,_0x25ed3d,_0x1e6655);let _0x2ac250=class extends _0x33a895[_0x12ffe1(0xee)]{constructor(_0x1a3ea5,_0x1d1be6,_0x245ff0,_0x1cd1bc,_0x5edc15,_0x5cf3f1,_0xf81c00,_0x56e67){const _0x21a87e=_0x12ffe1;super(),_0x54231d(this,_0x21a87e(0x10b),null),(this[_0x21a87e(0x93)]=_0x1a3ea5,this['_menuManagerService']=_0x1d1be6,this[_0x21a87e(0xd3)]=_0x245ff0,this[_0x21a87e(0x139)]=_0x1cd1bc,this[_0x21a87e(0xaf)]=_0x5edc15,this['_messageService']=_0x5cf3f1,this[_0x21a87e(0x14d)]=_0xf81c00,this[_0x21a87e(0xf3)]=_0x56e67,this[_0x21a87e(0x190)]());}[_0x12ffe1(0x190)](){const _0x2c41da=_0x12ffe1;[_0xc72e8c,_0x9b3f10]['forEach'](_0x3d7d3b=>this[_0x2c41da(0x17a)](_0x33a895['toDisposable'](this['_commandService'][_0x2c41da(0xf2)](_0x3d7d3b)))),this[_0x2c41da(0x17a)](this[_0x2c41da(0xd3)][_0x2c41da(0xe6)](_0x2c41da(0x9c),_0x5356d3)),this[_0x2c41da(0xea)]['mergeMenu'](_0x54459e),this[_0x2c41da(0x17a)](this['_commandService'][_0x2c41da(0x87)](_0x192858=>{const _0x1ab0c0=_0x2c41da;if(_0x192858['id']===_0x4a5c5a[_0x1ab0c0(0x164)]['id']){this[_0x1ab0c0(0xe3)]['show']({'content':this[_0x1ab0c0(0xaf)]['t'](_0x1ab0c0(0xe5)),'type':_0x54b4b6[_0x1ab0c0(0xd1)][_0x1ab0c0(0x186)],'duration':0x1388});const {unitId:_0x1fc204}=_0x192858[_0x1ab0c0(0x174)],_0x361f97=this['_collaborationController'][_0x1ab0c0(0xa3)](_0x1fc204),_0x5592d2=_0x43a58f['combineLatest']([_0x361f97['session'][_0x1ab0c0(0x19f)],_0x361f97[_0x1ab0c0(0xa5)]])[_0x1ab0c0(0x191)](async([_0x260f76,_0x5ced0b])=>{const _0x5b2e06=_0x1ab0c0;var _0x4511dd;_0x260f76[_0x5b2e06(0x107)]===_0x4a5c5a[_0x5b2e06(0x16e)]['CHANGESET_ACK']&&(_0x5ced0b==null?void 0x0:_0x5ced0b[_0x5b2e06(0x17e)])===_0x553178[_0x5b2e06(0x119)][_0x5b2e06(0x1af)]&&_0x260f76[_0x5b2e06(0x146)][_0x5b2e06(0xa1)][_0x5b2e06(0xc3)](_0x20ec54=>_0x20ec54['id']===_0x4a5c5a[_0x5b2e06(0x164)]['id'])&&(this[_0x5b2e06(0x139)]['unMountHistoryContent'](),_0x5592d2['unsubscribe'](),this[_0x5b2e06(0x10b)]&&clearTimeout(this[_0x5b2e06(0x10b)]),await((_0x4511dd=this['_localCacheService'])==null?void 0x0:_0x4511dd[_0x5b2e06(0xe4)]()),setTimeout(()=>window[_0x5b2e06(0x151)][_0x5b2e06(0xbd)]()));});this['_revertErrorTimer']=setTimeout(()=>{const _0x5ecd0a=_0x1ab0c0;_0x5592d2[_0x5ecd0a(0x138)](),this[_0x5ecd0a(0xe3)][_0x5ecd0a(0x19e)]({'content':this[_0x5ecd0a(0xaf)]['t']('editHistory.panel.revertFailed'),'type':_0x54b4b6[_0x5ecd0a(0xd1)][_0x5ecd0a(0x193)],'duration':0xbb8});},0x1388);}}));}};_0x2ac250=_0x5dc7b9([_0x2db63a(0x0,_0x33a895['ICommandService']),_0x2db63a(0x1,_0xd9cc56[_0x12ffe1(0xc1)]),_0x2db63a(0x2,_0x33a895[_0x12ffe1(0x1aa)](_0xd9cc56[_0x12ffe1(0xc8)])),_0x2db63a(0x3,_0x33a895[_0x12ffe1(0x1aa)](_0x4fa08c[_0x12ffe1(0x86)])),_0x2db63a(0x4,_0x33a895[_0x12ffe1(0x1aa)](_0x33a895[_0x12ffe1(0x177)])),_0x2db63a(0x5,_0xd9cc56[_0x12ffe1(0x144)]),_0x2db63a(0x6,_0x33a895[_0x12ffe1(0x1aa)](_0x553178[_0x12ffe1(0xdd)])),_0x2db63a(0x7,_0x553178[_0x12ffe1(0x1b5)])],_0x2ac250);var _0x2ed86f=Object[_0x12ffe1(0x15a)],_0x55e917=(_0x2f4b55,_0xdd60c8,_0x36c947,_0x2ac955)=>{const _0x467ce7=_0x12ffe1;for(var _0x3369bf=_0x2ac955>0x1?void 0x0:_0x2ac955?_0x2ed86f(_0xdd60c8,_0x36c947):_0xdd60c8,_0x472c8f=_0x2f4b55[_0x467ce7(0xc4)]-0x1,_0x118bc1;_0x472c8f>=0x0;_0x472c8f--)(_0x118bc1=_0x2f4b55[_0x472c8f])&&(_0x3369bf=_0x118bc1(_0x3369bf)||_0x3369bf);return _0x3369bf;},_0x18adf2=(_0x32c086,_0x1e2f1e)=>(_0x4610e5,_0x3bee56)=>_0x1e2f1e(_0x4610e5,_0x3bee56,_0x32c086);const _0x2148fc=_0x12ffe1(0xcf);_0x4fa08c[_0x12ffe1(0x117)]=(_0xca8770=class extends _0x33a895['Plugin']{constructor(_0x397641=_0x52b77d,_0x197b98,_0x232abf){const _0x327536=_0x12ffe1;super(),this['_config']=_0x397641,this[_0x327536(0xb8)]=_0x197b98,this[_0x327536(0x13b)]=_0x232abf;const {menu:_0x2185d7,..._0x2fe9ce}=_0x33a895[_0x327536(0x95)]({},_0x52b77d,this[_0x327536(0x150)]);_0x2185d7&&this[_0x327536(0x13b)]['setConfig'](_0x327536(0x15b),_0x2185d7,{'merge':!0x0}),this[_0x327536(0x13b)][_0x327536(0x136)](_0x15d5c7,_0x2fe9ce),this[_0x327536(0x150)][_0x327536(0x153)]&&this[_0x327536(0x13b)][_0x327536(0x136)](_0x832571,this[_0x327536(0x150)][_0x327536(0x153)]);}['onStarting'](){const _0x3c0459=_0x12ffe1;[[_0x4fa08c[_0x3c0459(0x86)]],[_0x2ac250]]['forEach'](_0x5d50a4=>this[_0x3c0459(0xb8)][_0x3c0459(0xcd)](_0x5d50a4));}[_0x12ffe1(0x155)](){const _0x26cc78=_0x12ffe1;this[_0x26cc78(0xb8)][_0x26cc78(0x9e)](_0x2ac250);}},_0x54231d(_0xca8770,'type',_0x33a895[_0x12ffe1(0x126)][_0x12ffe1(0x12f)]),_0x54231d(_0xca8770,_0x12ffe1(0xa6),_0x2148fc),_0xca8770),_0x4fa08c[_0x12ffe1(0x117)]=_0x55e917([_0x18adf2(0x1,_0x33a895[_0x12ffe1(0x1aa)](_0x33a895[_0x12ffe1(0x168)])),_0x18adf2(0x2,_0x33a895['IConfigService'])],_0x4fa08c[_0x12ffe1(0x117)]),_0x4fa08c[_0x12ffe1(0x111)]=_0x832571,_0x4fa08c[_0x12ffe1(0x85)]=_0x182472,Object[_0x12ffe1(0x175)](_0x4fa08c,Symbol[_0x12ffe1(0xf5)],{'value':_0x12ffe1(0x11c)});}));function _0xa039(){const _0x1ac8d3=['getSheets','univer.operation.toggle-edit-history','white','rxjs','closeAll','UniverEngineRender','CollaborationController','assign','UniverRenderEnginePlugin','getMenuHiddenObservable','@univerjs/docs-ui','children','_messageService','exhaustSavingTask','editHistory.panel.reverting','register','OPERATION','editHistory.panel.title','none','_menuManagerService','@univerjs-pro/sheets-sparkline-ui','appendChild','1em','RxDisposable','defIds','UniverProSheetsChartUi','UniverDataValidationPlugin','registerCommand','_localCacheService','registerPlugin','toStringTag','@univerjs/data-validation','value','BUTTON','invoke','RangeProtectionRuleModel','_disposableCollection','currentTheme$','153232fXAPTj','getElementById','permissionId','UniverProSheetsChart','IAuthzIoService','UniverSheetsFormulaPlugin','UniverLicensePlugin','@univerjs/sheets','WorksheetEditPermission','set','eventID','univer-container','./worker.js','random','_revertErrorTimer','IImageIoService','revertRevision$','createElement','replace','every','UNIVER_CONTAINER_ID_KEY','height','CommandType','UniverProSheetsPivot','UniverSheetsDataValidationPlugin','UniverSheetsPlugin','UniverEditHistoryLoaderPlugin','ICommandService','CollaborationStatus','tag','getCurrentRangeDisable$','Module','UniverSheetsFormulaUIPlugin','_univerInstanceService','UniverSheetsHyperLinkUIPlugin','679347HRVoNj','width','UniverSheetsDataValidation','100%','close','@univerjs/ui','UniverInstanceType','_selectionProtectionRuleModel','setLocale','3783740puAPOw','UniverCollaborationPlugin','dataset','next','defs','block','UNIVER_UNKNOWN','@univerjs-pro/sheets-sparkline','triggerLoadVersions','AuthzIoHttpService','UniverDocsUi','@univerjs/engine-formula','ThemeService','setConfig','style','unsubscribe','_historyManagerService','UniverSheetsUi','_configService','@univerjs/engine-render','attrs','UniverProCollaboration','8289610TpRyDO','currentColor','@univerjs/drawing','UniverUi','IUniverInstanceService','IMessageService','6922770RFjKiS','data','Entered','setTheme','symbol','UniverDrawing','colorChannel1','@univerjs/network','_collaborationController','string','flat','_config','location','url(#history-icon_clip0_907_281)','univerContainerId','UniverFormulaEnginePlugin','onSteady','@univerjs-pro/sheets-pivot','UniverIcon','includes','1000','getOwnPropertyDescriptor','menu','xlink:href','IConfigService','UniverSheetSparklinePlugin','@univerjs/sheets-hyper-link-ui','40Timphx','has','UniverSheetsFormulaUi','UniverSheetsConditionalFormattingPlugin','RevertRevisionMutation','@univerjs/rpc','UniverSheetsDrawing','UniverNetworkPlugin','Injector','left','forEach','@univerjs-pro/collaboration-client','UniverDocsPlugin','absolute','CollaborationEvent','UniverSheetsHyperLinkUi','UniverDataValidation','UniverSheetsDrawingUi','path','\x20has\x20been\x20registered.','params','defineProperty','trim','LocaleService','_initContainer','576660ONfNKT','disposeWithMe','@univerjs-pro/edit-history-viewer','_pluginMap','@univerjs/drawing-ui','status','history-icon_clip0_907_281','UniverCore','react','UniverDrawingUIPlugin','@univerjs-pro/sheets-chart','UniverSheetsHyperLinkPlugin','M0\x200H16V16H0z','Loading','historyUniver','@univerjs/sheets-ui','UniverProEditHistoryLoader','composePermission','UniverSheetsFilterUIPlugin','substring','useRef','status$','UniverProSheetsSparkline','_init','subscribe','UniverProCollaborationClient','Error','fill','_themeService','getConfig','UniverDesign','WorkbookEditablePermission','current','LS_CONFIG_KEY','UniverSheetsDataValidationUIPlugin','M4.45388\x204.14989H3.52896C4.61144\x202.8939\x206.21319\x202.0999\x207.9999\x202.0999C11.2584\x202.0999\x2013.8999\x204.74142\x2013.8999\x207.9999C13.8999\x2011.2584\x2011.2584\x2013.8999\x207.9999\x2013.8999C4.74142\x2013.8999\x202.0999\x2011.2584\x202.0999\x207.9999C2.0999\x207.66853\x201.83127\x207.3999\x201.4999\x207.3999C1.16853\x207.3999\x200.899902\x207.66853\x200.899902\x207.9999C0.899902\x2011.9211\x204.07868\x2015.0999\x207.9999\x2015.0999C11.9211\x2015.0999\x2015.0999\x2011.9211\x2015.0999\x207.9999C15.0999\x204.07868\x2011.9211\x200.899902\x207.9999\x200.899902C5.88709\x200.899902\x203.9903\x201.82298\x202.69023\x203.28636V2.38625C2.69023\x202.05488\x202.42161\x201.78625\x202.09023\x201.78625C1.75886\x201.78625\x201.49023\x202.05488\x201.49023\x202.38625V4.74989C1.49023\x205.08126\x201.75886\x205.34989\x202.09023\x205.34989H4.45388C4.78525\x205.34989\x205.05388\x205.08126\x205.05388\x204.74989C5.05388\x204.41851\x204.78525\x204.14989\x204.45388\x204.14989Z','univer-history-container','show','event$','editHistory.panel.listFetchError','__getInjector','IDialogService','DisposableCollection','zIndex','_initPlugins','OTHERS','UniverSheetsDrawingPlugin','clipPath','object','Inject','UniverSheetsPivotTablePlugin','_sidebarService','UniverDrawingPlugin','http://www.w3.org/2000/svg','SYNCED','toString','MenuItemType','from','UniverDocs','UniverDrawingUi','ILocalCacheService','_historyUniver$','UniverSheetSparklineUIPlugin','dispose','displayName','UNIVER_HISTORY_CONTAINER_ID','HistoryLoaderService','onCommandExecuted','entries','BehaviorSubject','historyPanelComponentKey','UniverSheetsChartUIPlugin','amd','getSheetCommandTarget','mountHistoryContent','use','workerURL','exports','React','_commandService','setDarkMode','merge','_initUniver','HistoryManagerService','UniverSheetsNumfmt','UniverProEditHistoryViewer','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','historyUniver$','HistoryIcon','6bYiSSF','get','@univerjs-pro/sheets-chart-ui','UniverSheetsDataValidationUi','mutations','_dialogService','getCollabEntity','function','state$','pluginName','RibbonStartGroup','UniverRPCMainThreadPlugin','univerjs-icon\x20univerjs-icon-','getUnit','UniverProLicense','UNIVER_SHEET','UniverEngineFormula','@univerjs/sheets-drawing','_localeService','IPermissionService','clear','mask','display','map','forwardRef','[HistoryLoaderService]:\x20Plugin\x20','edit-history-loader.config','_injector','_initListener','UniverSheets','@univerjs/design','M8.28291\x205.16293C8.28295\x204.83156\x208.01435\x204.5629\x207.68298\x204.56287C7.35161\x204.56283\x207.08295\x204.83143\x207.08291\x205.1628L7.08252\x208.63494C7.0825\x208.79881\x207.1495\x208.95555\x207.26796\x209.06877L9.70073\x2011.3939C9.94029\x2011.6228\x2010.3201\x2011.6142\x2010.549\x2011.3747C10.778\x2011.1351\x2010.7694\x2010.7553\x2010.5298\x2010.5263L8.28255\x208.37852L8.28291\x205.16293Z','reload','getSheetId','getCurrentLocale','HistoryModeStatus','IMenuManagerService','getAllPlugins','some','length','RangeProtectionPermissionEditPoint','idSuffix','executeCommand','ComponentManager','unMountHistoryContent','_permissionService','UniverUIPlugin','290211VwybjK','add','@univerjs/sheets-filter','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','UniverSheetsFilterUi','MessageType','url(#$1','_componentManager','0\x200\x2016\x2016','_checkCanRevert','@univerjs/core'];_0xa039=function(){return _0x1ac8d3;};return _0xa039();}
|
|
1
|
+
(function(_0x26d90a,_0x4cd067){const _0x5a6478=_0x219b,_0x3cbc01=_0x26d90a();while(!![]){try{const _0x256325=parseInt(_0x5a6478(0x7a))/0x1*(parseInt(_0x5a6478(0x16f))/0x2)+-parseInt(_0x5a6478(0x7d))/0x3*(-parseInt(_0x5a6478(0x75))/0x4)+-parseInt(_0x5a6478(0x68))/0x5+parseInt(_0x5a6478(0x195))/0x6*(parseInt(_0x5a6478(0x12a))/0x7)+parseInt(_0x5a6478(0x86))/0x8+parseInt(_0x5a6478(0x16e))/0x9*(-parseInt(_0x5a6478(0x162))/0xa)+parseInt(_0x5a6478(0xc0))/0xb*(-parseInt(_0x5a6478(0x187))/0xc);if(_0x256325===_0x4cd067)break;else _0x3cbc01['push'](_0x3cbc01['shift']());}catch(_0x20b3c4){_0x3cbc01['push'](_0x3cbc01['shift']());}}}(_0x81f5,0x63699),function(_0x3d3c18,_0x45cfe7){const _0x79fb45=_0x219b;typeof exports=='object'&&typeof module<'u'?_0x45cfe7(exports,require('@univerjs/core'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/design'),require('react'),require('@univerjs/ui'),require('rxjs'),require('@univerjs/sheets'),require('@univerjs-pro/edit-history-viewer'),require('@univerjs-pro/license'),require('@univerjs-pro/sheets-chart'),require('@univerjs-pro/sheets-chart-ui'),require('@univerjs-pro/sheets-pivot'),require('@univerjs-pro/sheets-sparkline'),require('@univerjs-pro/sheets-sparkline-ui'),require('@univerjs/data-validation'),require('@univerjs/docs'),require('@univerjs/docs-ui'),require('@univerjs/drawing'),require('@univerjs/drawing-ui'),require('@univerjs/engine-formula'),require('@univerjs/engine-render'),require('@univerjs/network'),require('@univerjs/rpc'),require('@univerjs/sheets-conditional-formatting'),require('@univerjs/sheets-conditional-formatting-ui'),require('@univerjs/sheets-data-validation'),require('@univerjs/sheets-data-validation-ui'),require('@univerjs/sheets-drawing'),require('@univerjs/sheets-drawing-ui'),require('@univerjs/sheets-filter'),require('@univerjs/sheets-filter-ui'),require('@univerjs/sheets-formula'),require('@univerjs/sheets-formula-ui'),require('@univerjs/sheets-hyper-link'),require('@univerjs/sheets-hyper-link-ui'),require('@univerjs/sheets-numfmt'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x79fb45(0x172)]?define(['exports','@univerjs/core',_0x79fb45(0x184),_0x79fb45(0x176),'@univerjs/design',_0x79fb45(0x161),'@univerjs/ui',_0x79fb45(0xbe),_0x79fb45(0xeb),_0x79fb45(0xf6),_0x79fb45(0x168),_0x79fb45(0x9a),_0x79fb45(0x11a),_0x79fb45(0x14e),_0x79fb45(0x84),_0x79fb45(0xaa),_0x79fb45(0x165),_0x79fb45(0x153),'@univerjs/docs-ui','@univerjs/drawing','@univerjs/drawing-ui',_0x79fb45(0x6e),'@univerjs/engine-render',_0x79fb45(0xb2),_0x79fb45(0x118),_0x79fb45(0x14a),_0x79fb45(0x183),'@univerjs/sheets-data-validation',_0x79fb45(0xff),_0x79fb45(0x96),_0x79fb45(0x9f),_0x79fb45(0x8f),_0x79fb45(0x148),'@univerjs/sheets-formula',_0x79fb45(0xae),_0x79fb45(0xa6),_0x79fb45(0x135),_0x79fb45(0x171),_0x79fb45(0x166)],_0x45cfe7):(_0x3d3c18=typeof globalThis<'u'?globalThis:_0x3d3c18||self,_0x45cfe7(_0x3d3c18[_0x79fb45(0x80)]={},_0x3d3c18[_0x79fb45(0xf1)],_0x3d3c18['UniverProCollaboration'],_0x3d3c18[_0x79fb45(0x19a)],_0x3d3c18[_0x79fb45(0x113)],_0x3d3c18[_0x79fb45(0x150)],_0x3d3c18[_0x79fb45(0xad)],_0x3d3c18[_0x79fb45(0xbe)],_0x3d3c18[_0x79fb45(0x105)],_0x3d3c18['UniverProEditHistoryViewer'],_0x3d3c18[_0x79fb45(0x81)],_0x3d3c18[_0x79fb45(0x169)],_0x3d3c18[_0x79fb45(0xfb)],_0x3d3c18[_0x79fb45(0x12e)],_0x3d3c18[_0x79fb45(0xd7)],_0x3d3c18[_0x79fb45(0xec)],_0x3d3c18['UniverDataValidation'],_0x3d3c18[_0x79fb45(0x11f)],_0x3d3c18['UniverDocsUi'],_0x3d3c18[_0x79fb45(0x10a)],_0x3d3c18[_0x79fb45(0x190)],_0x3d3c18[_0x79fb45(0x13d)],_0x3d3c18[_0x79fb45(0x180)],_0x3d3c18[_0x79fb45(0xcd)],_0x3d3c18[_0x79fb45(0x79)],_0x3d3c18[_0x79fb45(0x109)],_0x3d3c18[_0x79fb45(0x19c)],_0x3d3c18[_0x79fb45(0xd6)],_0x3d3c18[_0x79fb45(0x102)],_0x3d3c18['UniverSheetsDrawing'],_0x3d3c18[_0x79fb45(0x197)],_0x3d3c18[_0x79fb45(0x9c)],_0x3d3c18[_0x79fb45(0x16a)],_0x3d3c18['UniverSheetsFormula'],_0x3d3c18[_0x79fb45(0x104)],_0x3d3c18[_0x79fb45(0xb9)],_0x3d3c18[_0x79fb45(0x182)],_0x3d3c18[_0x79fb45(0x173)],_0x3d3c18[_0x79fb45(0x8c)]));}(this,function(_0x58f8e7,_0x1f90e9,_0x1cec7c,_0x29348e,_0x344a4a,_0x4c6c4a,_0x47eed6,_0x9c438f,_0x522f3c,_0x328063,_0x152973,_0x4523d7,_0x137bc9,_0xb57bee,_0x33fe68,_0x5420f1,_0x5774cc,_0x340983,_0x5addb7,_0x403684,_0x53b387,_0x4d83a5,_0x5c3909,_0x4735ff,_0x2966f7,_0x574d8b,_0x8df583,_0x6a8f6a,_0x2c7905,_0x5c7254,_0x19ae6e,_0x7964e8,_0x8e3210,_0x4eab54,_0x4a2551,_0xbb008,_0x4bc07e,_0x4fe45b,_0x34a5d6){'use strict';const _0x4ced40=_0x219b;var _0x5839d9=Object[_0x4ced40(0xe1)],_0x244006=(_0x2c4c7c,_0x5843b3,_0x28081f)=>_0x5843b3 in _0x2c4c7c?_0x5839d9(_0x2c4c7c,_0x5843b3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28081f}):_0x2c4c7c[_0x5843b3]=_0x28081f,_0x4eb434=(_0x184f04,_0xd2ef8f,_0x4ca292)=>_0x244006(_0x184f04,typeof _0xd2ef8f!=_0x4ced40(0xb5)?_0xd2ef8f+'':_0xd2ef8f,_0x4ca292),_0x19be40;const _0x41a754='edit-history-loader.config',_0x279207={};function _0x15bcb4({ref:_0x3f6b53,..._0xa53562}){const _0x1f25f1=_0x4ced40,{icon:_0x234946,id:_0xc3a573,className:_0x5085ec,extend:_0x343145,..._0x24f830}=_0xa53562,_0x13e7f2=(_0x1f25f1(0x18b)+_0xc3a573+'\x20'+(_0x5085ec||''))[_0x1f25f1(0xdb)](),_0x1f4e98=_0x4c6c4a[_0x1f25f1(0xb7)]('_'+_0x18972b());return _0x3070d6(_0x234946,''+_0xc3a573,{'defIds':_0x234946[_0x1f25f1(0x15b)],'idSuffix':_0x1f4e98['current']},{'ref':_0x3f6b53,'className':_0x13e7f2,..._0x24f830},_0x343145);}function _0x3070d6(_0x57b8c1,_0x66010,_0x317ee9,_0x30d9bf,_0x40dbc5){const _0x5c950c=_0x4ced40;return _0x4c6c4a[_0x5c950c(0xa7)](_0x57b8c1['tag'],{'key':_0x66010,..._0x509a2e(_0x57b8c1,_0x317ee9,_0x40dbc5),..._0x30d9bf},(_0x4139a3(_0x57b8c1,_0x317ee9)['children']||[])[_0x5c950c(0x10e)]((_0x21ac65,_0x402445)=>_0x3070d6(_0x21ac65,_0x66010+'-'+_0x57b8c1[_0x5c950c(0x146)]+'-'+_0x402445,_0x317ee9,void 0x0,_0x40dbc5)));}function _0x509a2e(_0xbbe86e,_0x325f96,_0xf185e7){const _0x4edfbc=_0x4ced40,_0x408dc0={..._0xbbe86e[_0x4edfbc(0x18e)]};_0xf185e7!=null&&_0xf185e7[_0x4edfbc(0x12c)]&&_0x408dc0[_0x4edfbc(0x174)]===_0x4edfbc(0x12c)&&(_0x408dc0[_0x4edfbc(0x174)]=_0xf185e7[_0x4edfbc(0x12c)]),_0xbbe86e[_0x4edfbc(0x146)]===_0x4edfbc(0x163)&&_0x408dc0['id']&&(_0x408dc0['id']=_0x408dc0['id']+_0x325f96[_0x4edfbc(0x125)]),Object[_0x4edfbc(0xf2)](_0x408dc0)[_0x4edfbc(0x192)](([_0x59606b,_0x556939])=>{const _0x373a67=_0x4edfbc;_0x59606b===_0x373a67(0x163)&&typeof _0x556939==_0x373a67(0x17b)&&(_0x408dc0[_0x59606b]=_0x556939[_0x373a67(0x154)](/url\(#(.*)\)/,'url(#$1'+_0x325f96[_0x373a67(0x125)]+')'));});const {defIds:_0xa52d50}=_0x325f96;return!_0xa52d50||_0xa52d50['length']===0x0||(_0xbbe86e['tag']==='use'&&_0x408dc0['xlink:href']&&(_0x408dc0[_0x4edfbc(0x193)]=_0x408dc0[_0x4edfbc(0x193)]+_0x325f96[_0x4edfbc(0x125)]),Object[_0x4edfbc(0xf2)](_0x408dc0)['forEach'](([_0x4b0ca1,_0x87534d])=>{const _0x53032f=_0x4edfbc;typeof _0x87534d=='string'&&(_0x408dc0[_0x4b0ca1]=_0x87534d['replace'](/url\(#(.*)\)/,_0x53032f(0xee)+_0x325f96[_0x53032f(0x125)]+')'));})),_0x408dc0;}function _0x4139a3(_0x5eca86,_0x4b94b2){const _0x359710=_0x4ced40;var _0x52040e;const {defIds:_0x277a47}=_0x4b94b2;return!_0x277a47||_0x277a47[_0x359710(0x17f)]===0x0?_0x5eca86:_0x5eca86['tag']===_0x359710(0xb3)&&((_0x52040e=_0x5eca86['children'])!=null&&_0x52040e[_0x359710(0x17f)])?{..._0x5eca86,'children':_0x5eca86[_0x359710(0x88)][_0x359710(0x10e)](_0x2cca57=>typeof _0x2cca57[_0x359710(0x18e)]['id']=='string'&&_0x277a47&&_0x277a47[_0x359710(0x128)](_0x2cca57[_0x359710(0x18e)]['id'])?{..._0x2cca57,'attrs':{..._0x2cca57[_0x359710(0x18e)],'id':_0x2cca57[_0x359710(0x18e)]['id']+_0x4b94b2[_0x359710(0x125)]}}:_0x2cca57)}:_0x5eca86;}function _0x18972b(){const _0x307623=_0x4ced40;return Math[_0x307623(0xfc)]()[_0x307623(0xc8)](0x24)[_0x307623(0x15c)](0x2,0x8);}_0x15bcb4[_0x4ced40(0x121)]=_0x4ced40(0x70);const _0x4585e5={'tag':_0x4ced40(0xd3),'attrs':{'xmlns':_0x4ced40(0x6c),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x4ced40(0x14f),'height':'1em'},'children':[{'tag':'g','attrs':{'fill':'currentColor','clipPath':_0x4ced40(0x17e)},'children':[{'tag':_0x4ced40(0x9d),'attrs':{'d':'M4.45388\x204.14989H3.52896C4.61144\x202.8939\x206.21319\x202.0999\x207.9999\x202.0999C11.2584\x202.0999\x2013.8999\x204.74142\x2013.8999\x207.9999C13.8999\x2011.2584\x2011.2584\x2013.8999\x207.9999\x2013.8999C4.74142\x2013.8999\x202.0999\x2011.2584\x202.0999\x207.9999C2.0999\x207.66853\x201.83127\x207.3999\x201.4999\x207.3999C1.16853\x207.3999\x200.899902\x207.66853\x200.899902\x207.9999C0.899902\x2011.9211\x204.07868\x2015.0999\x207.9999\x2015.0999C11.9211\x2015.0999\x2015.0999\x2011.9211\x2015.0999\x207.9999C15.0999\x204.07868\x2011.9211\x200.899902\x207.9999\x200.899902C5.88709\x200.899902\x203.9903\x201.82298\x202.69023\x203.28636V2.38625C2.69023\x202.05488\x202.42161\x201.78625\x202.09023\x201.78625C1.75886\x201.78625\x201.49023\x202.05488\x201.49023\x202.38625V4.74989C1.49023\x205.08126\x201.75886\x205.34989\x202.09023\x205.34989H4.45388C4.78525\x205.34989\x205.05388\x205.08126\x205.05388\x204.74989C5.05388\x204.41851\x204.78525\x204.14989\x204.45388\x204.14989Z'}},{'tag':_0x4ced40(0x9d),'attrs':{'d':_0x4ced40(0xb1)}}]},{'tag':_0x4ced40(0xb3),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'history-icon_clip0_907_281'},'children':[{'tag':_0x4ced40(0x9d),'attrs':{'fill':_0x4ced40(0x8e),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x4ced40(0xde)]},_0x4af850=_0x4c6c4a[_0x4ced40(0x199)](function(_0x567ccd,_0x2fa6cf){const _0x4b3388=_0x4ced40;return _0x4c6c4a[_0x4b3388(0xa7)](_0x15bcb4,Object[_0x4b3388(0x78)]({},_0x567ccd,{'id':_0x4b3388(0x143),'ref':_0x2fa6cf,'icon':_0x4585e5}));});_0x4af850[_0x4ced40(0x121)]=_0x4ced40(0xd9);var _0x3d1c17=Object[_0x4ced40(0xa4)],_0x15a308=(_0x5120ec,_0x491b52,_0xdde75,_0x4fb167)=>{const _0x116d08=_0x4ced40;for(var _0xa4a8d3=_0x4fb167>0x1?void 0x0:_0x4fb167?_0x3d1c17(_0x491b52,_0xdde75):_0x491b52,_0x5e7801=_0x5120ec[_0x116d08(0x17f)]-0x1,_0x489271;_0x5e7801>=0x0;_0x5e7801--)(_0x489271=_0x5120ec[_0x5e7801])&&(_0xa4a8d3=_0x489271(_0xa4a8d3)||_0xa4a8d3);return _0xa4a8d3;},_0x27a146=(_0x32113b,_0x1bfd22)=>(_0x259f65,_0x1ecde6)=>_0x1bfd22(_0x259f65,_0x1ecde6,_0x32113b);const _0x3209a8=_0x4ced40(0xe2),_0x51a286=_0x4ced40(0x149),_0x496bb8='univer-history-container';_0x58f8e7[_0x4ced40(0x123)]=class extends _0x1f90e9[_0x4ced40(0x17a)]{constructor(_0x21fc7b,_0x1a9ba9,_0x3b7ee1,_0x992c36,_0x420d61,_0x156c86,_0x2bcf7b,_0x2318c8,_0x57b3b2,_0x350d39){const _0x49e286=_0x4ced40;super(),_0x4eb434(this,_0x49e286(0x12f),new _0x9c438f[(_0x49e286(0xf8))](null)),_0x4eb434(this,_0x49e286(0xed),this['_historyUniver$'][_0x49e286(0x175)]()),_0x4eb434(this,'_disposableCollection',new _0x1f90e9[(_0x49e286(0xef))]()),_0x4eb434(this,_0x49e286(0x13c),new Map()),(this['_localeService']=_0x21fc7b,this[_0x49e286(0x101)]=_0x1a9ba9,this[_0x49e286(0x19b)]=_0x3b7ee1,this['_commandService']=_0x992c36,this[_0x49e286(0xbc)]=_0x420d61,this[_0x49e286(0x16c)]=_0x156c86,this['_selectionProtectionRuleModel']=_0x2bcf7b,this[_0x49e286(0xe9)]=_0x2318c8,this[_0x49e286(0x108)]=_0x57b3b2,this[_0x49e286(0x11e)]=_0x350d39,this[_0x49e286(0x83)]());}get[_0x4ced40(0x89)](){const _0x3e8d2d=_0x4ced40;return this[_0x3e8d2d(0x12f)][_0x3e8d2d(0x73)];}[_0x4ced40(0x83)](){const _0x5e58fe=_0x4ced40;this[_0x5e58fe(0x1a1)](),this[_0x5e58fe(0x74)]();}[_0x4ced40(0x1a1)](){const _0x44f99f=_0x4ced40;var _0x882f2c;const _0x5942a7=(_0x882f2c=this[_0x44f99f(0x19b)][_0x44f99f(0x18f)](_0x51a286))!=null?_0x882f2c:_0x3209a8,_0x15a9f8=document[_0x44f99f(0xd1)](_0x5942a7);if(!_0x15a9f8)return;const _0x2c068f=document['createElement'](_0x44f99f(0xc2));_0x2c068f['id']=_0x496bb8,_0x2c068f[_0x44f99f(0xf3)]['uComp']=_0x44f99f(0x141),_0x2c068f[_0x44f99f(0xce)][_0x44f99f(0x19d)]=_0x44f99f(0x14c),_0x2c068f[_0x44f99f(0xce)]['top']='0',_0x2c068f[_0x44f99f(0xce)][_0x44f99f(0x87)]='0',_0x2c068f[_0x44f99f(0xce)][_0x44f99f(0xe6)]=_0x44f99f(0xa9),_0x2c068f['style'][_0x44f99f(0x160)]=_0x44f99f(0xa9),_0x2c068f['style']['zIndex']=_0x44f99f(0x6d),_0x2c068f[_0x44f99f(0xce)][_0x44f99f(0x95)]=_0x44f99f(0xd2),_0x15a9f8[_0x44f99f(0x97)](_0x2c068f);}['_initPlugins'](){const _0x15e18c=_0x4ced40;var _0x5f2881,_0x5e8d15,_0x11942b,_0x2cf5dc;[[_0x5c3909[_0x15e18c(0x9b)]],[_0x47eed6[_0x15e18c(0x157)],{'container':_0x496bb8,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x47eed6[_0x15e18c(0x10d)],null]]}],[_0x4735ff[_0x15e18c(0x15d)]],[_0x403684['UniverDrawingPlugin'],{'override':[[_0x403684[_0x15e18c(0x147)],null]]}],[_0x340983[_0x15e18c(0xd8)],{'hasScroll':!0x1}],[_0x5addb7[_0x15e18c(0x13a)]],[_0x4fe45b[_0x15e18c(0x144)]],[_0x522f3c[_0x15e18c(0xab)],{'notExecuteFormula':!0x0}],[_0x34a5d6[_0x15e18c(0x17c)]],[_0x4eab54[_0x15e18c(0x1a3)]],[_0x4a2551[_0x15e18c(0x7c)]],[_0x1cec7c[_0x15e18c(0xfa)]],[_0x7964e8[_0x15e18c(0x151)]],[_0x8e3210[_0x15e18c(0x196)]],[_0x574d8b[_0x15e18c(0xf9)]],[_0x8df583[_0x15e18c(0xa1)]],[_0xbb008[_0x15e18c(0xfe)]],[_0x4bc07e[_0x15e18c(0x107)]],[_0x5774cc[_0x15e18c(0x124)]],[_0x6a8f6a[_0x15e18c(0x103)]],[_0x2c7905['UniverSheetsDataValidationUIPlugin']],[_0x4d83a5[_0x15e18c(0xa8)],{'notExecuteFormula':!0x0}],[_0x2966f7[_0x15e18c(0x131)],{'workerURL':(_0x5e8d15=(_0x5f2881=this[_0x15e18c(0x19b)][_0x15e18c(0x18f)](_0x2966f7[_0x15e18c(0xc7)]))==null?void 0x0:_0x5f2881[_0x15e18c(0x186)])!=null?_0x5e8d15:_0x15e18c(0x120)}],[_0x53b387[_0x15e18c(0x111)]],[_0x5c7254[_0x15e18c(0x185)]],[_0x19ae6e[_0x15e18c(0xc9)]],[_0x33fe68[_0x15e18c(0xdd)]],[_0x5420f1['UniverSheetSparklineUIPlugin']],[_0x4523d7[_0x15e18c(0x13e)]],[_0x137bc9[_0x15e18c(0xb8)]],[_0xb57bee[_0x15e18c(0x181)],{'notExecuteFormula':!0x0}],[_0x328063[_0x15e18c(0x106)],{'historyListServerUrl':(_0x11942b=this[_0x15e18c(0x19b)][_0x15e18c(0x18f)](_0x41a754))==null?void 0x0:_0x11942b[_0x15e18c(0x6b)],'historyPanelComponentKey':(_0x2cf5dc=this[_0x15e18c(0x19b)]['getConfig'](_0x41a754))==null?void 0x0:_0x2cf5dc[_0x15e18c(0xdc)]}]][_0x15e18c(0x192)](([_0x11d272,_0x2d10cb])=>this['registerPlugin'](_0x11d272,_0x2d10cb));}[_0x4ced40(0xe8)](){const _0x3c5cc0=_0x4ced40;super[_0x3c5cc0(0xe8)](),this[_0x3c5cc0(0x13b)](),this[_0x3c5cc0(0x13c)][_0x3c5cc0(0x6f)]();}[_0x4ced40(0xe5)](_0x1acd98,_0x38c0e6,_0xfc2744){const _0x3045f6=_0x4ced40;if(this[_0x3045f6(0x13c)][_0x3045f6(0xac)](_0x1acd98[_0x3045f6(0x8b)])&&!_0xfc2744)throw new Error(_0x3045f6(0x119)+_0x1acd98[_0x3045f6(0x8b)]+_0x3045f6(0x159));this[_0x3045f6(0x13c)][_0x3045f6(0x156)](_0x1acd98[_0x3045f6(0x8b)],[_0x1acd98,_0x38c0e6]);}[_0x4ced40(0xc5)](){const _0x1df375=_0x4ced40;return Array['from'](this[_0x1df375(0x13c)][_0x1df375(0xd4)]());}[_0x4ced40(0x8d)](_0xe3f848){const _0x526e4d=_0x4ced40,_0x1b5050=document[_0x526e4d(0xd1)](_0x496bb8);_0x1b5050&&(_0x1b5050[_0x526e4d(0xce)]['display']='block',this[_0x526e4d(0x140)](_0xe3f848,_0x496bb8));}[_0x4ced40(0x13b)](){const _0x4dfb08=_0x4ced40;var _0x4bd15c;this[_0x4dfb08(0x179)]['dispose'](),(_0x4bd15c=this[_0x4dfb08(0x89)])==null||_0x4bd15c[_0x4dfb08(0xe8)](),this['_historyUniver$'][_0x4dfb08(0xd0)](null);const _0x3cd044=document['getElementById'](_0x496bb8);_0x3cd044&&(_0x3cd044[_0x4dfb08(0xce)][_0x4dfb08(0x95)]=_0x4dfb08(0xd2));}[_0x4ced40(0x140)](_0x263e19,_0x459474){const _0x1c63af=_0x4ced40;if(this['historyUniver'])return;const _0x2c20af=new _0x1f90e9[(_0x1c63af(0xea))]({'locales':{[this['_localeService'][_0x1c63af(0x127)]()]:this[_0x1c63af(0x11c)][_0x1c63af(0x72)]()},'override':[[_0x1f90e9[_0x1c63af(0x71)],{'useClass':_0x29348e[_0x1c63af(0xd5)]}]]}),_0x2d9751=_0x2c20af[_0x1c63af(0xb0)]();this['disposeWithMe'](this[_0x1c63af(0x11e)][_0x1c63af(0x198)][_0x1c63af(0x152)](_0x51b956=>{const _0x5eab96=_0x1c63af;_0x2d9751[_0x5eab96(0xc4)](_0x1f90e9['ThemeService'])[_0x5eab96(0x178)](_0x51b956);})),this[_0x1c63af(0x142)](this[_0x1c63af(0x11e)][_0x1c63af(0x177)]['subscribe'](_0x29c732=>{const _0x202ec7=_0x1c63af;_0x2d9751['get'](_0x1f90e9[_0x202ec7(0x1a2)])['setTheme'](_0x29c732);})),_0x2d9751[_0x1c63af(0xc4)](_0x1f90e9[_0x1c63af(0x7b)])[_0x1c63af(0xcc)](this[_0x1c63af(0x11c)][_0x1c63af(0x127)]()),_0x2d9751[_0x1c63af(0xc4)](_0x1f90e9['IConfigService'])[_0x1c63af(0xc3)](_0x29348e[_0x1c63af(0x12b)],this['_configService']['getConfig'](_0x29348e['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']));const _0x51ace5=this['_configService'][_0x1c63af(0x18f)](_0x152973[_0x1c63af(0x19f)]);_0x51ace5&&_0x2c20af['registerPlugin'](_0x152973[_0x1c63af(0x69)],{'license':_0x51ace5['ls']}),this['_pluginMap'][_0x1c63af(0x192)](([_0x452fad,_0x23dab9])=>{const _0x309a3f=_0x1c63af;_0x2c20af[_0x309a3f(0xe5)](_0x452fad,_0x23dab9);}),_0x2d9751[_0x1c63af(0x155)](_0x339589=>{const _0x10ccb0=_0x1c63af;this[_0x10ccb0(0x164)](_0x339589,_0x263e19);}),this[_0x1c63af(0x12f)]['next'](_0x2c20af);const _0x31fd9f=_0x2d9751['get'](_0x328063['HistoryManagerService']),_0x5dfdc4=this[_0x1c63af(0x15f)](_0x263e19);_0x31fd9f[_0x1c63af(0x137)](_0x263e19,_0x459474,_0x5dfdc4);}['_initListener'](_0x453649,_0x44b0d1){const _0x588742=_0x4ced40,_0xf8dfce=_0x453649[_0x588742(0xc4)](_0x328063['HistoryManagerService']);this[_0x588742(0x179)][_0x588742(0x7f)](_0xf8dfce['status$'][_0x588742(0x152)](_0x52c260=>{const _0x46127f=_0x588742;switch(_0x52c260){case _0x328063[_0x46127f(0x90)]['Entered']:this[_0x46127f(0xe9)]['closeAll'](),this['_sidebarService'][_0x46127f(0xa5)]();break;case _0x328063[_0x46127f(0x90)][_0x46127f(0xfd)]:this[_0x46127f(0x67)][_0x46127f(0xcf)](_0x47864d['id']),this['unMountHistoryContent']();break;case _0x328063[_0x46127f(0x90)][_0x46127f(0x77)]:this[_0x46127f(0x13b)](),this[_0x46127f(0xbc)]['show']({'content':this[_0x46127f(0x11c)]['t'](_0x46127f(0x10f)),'type':_0x344a4a['MessageType'][_0x46127f(0x77)],'duration':0xbb8});break;}})),this['_disposableCollection'][_0x588742(0x7f)](_0xf8dfce[_0x588742(0x82)]['subscribe'](async _0xca7f06=>{const _0x531589=_0x588742;_0xca7f06&&this[_0x531589(0x67)][_0x531589(0xcf)](_0x1cec7c[_0x531589(0x9e)]['id'],{'unitId':_0x44b0d1,'revision':_0xca7f06});}));}[_0x4ced40(0x15f)](_0x5bbb61){const _0x5116a7=_0x4ced40,_0x36a653=this[_0x5116a7(0x101)][_0x5116a7(0x98)](_0x5bbb61)[_0x5116a7(0x138)]()[_0x5116a7(0x10e)](_0x1a42c4=>_0x1a42c4['getSheetId']()),_0x5e48e9=new _0x522f3c['WorkbookEditablePermission'](_0x5bbb61)['id'],_0x30b04f=_0x36a653[_0x5116a7(0x10e)](_0x1f82a4=>new _0x522f3c[(_0x5116a7(0x133))](_0x5bbb61,_0x1f82a4)['id']),_0x1efd57=_0x36a653[_0x5116a7(0x10e)](_0x40ce1d=>this[_0x5116a7(0x18c)][_0x5116a7(0x18a)](_0x5bbb61,_0x40ce1d)[_0x5116a7(0x10e)](_0x5ebd18=>new _0x522f3c[(_0x5116a7(0x8a))](_0x5bbb61,_0x40ce1d,_0x5ebd18[_0x5116a7(0x114)])['id']))['flat'](),_0x3ad875=new _0x522f3c[(_0x5116a7(0x18d))](_0x5bbb61)['id'];return this[_0x5116a7(0x16c)][_0x5116a7(0xaf)]([_0x5e48e9,..._0x30b04f,..._0x1efd57,_0x3ad875])['every'](_0x5db950=>!!_0x5db950[_0x5116a7(0x73)]);}},_0x58f8e7[_0x4ced40(0x123)]=_0x15a308([_0x27a146(0x0,_0x1f90e9[_0x4ced40(0x139)](_0x1f90e9[_0x4ced40(0x7b)])),_0x27a146(0x1,_0x1f90e9[_0x4ced40(0x16b)]),_0x27a146(0x2,_0x1f90e9['IConfigService']),_0x27a146(0x3,_0x1f90e9['ICommandService']),_0x27a146(0x4,_0x47eed6[_0x4ced40(0x188)]),_0x27a146(0x5,_0x1f90e9[_0x4ced40(0x17d)]),_0x27a146(0x6,_0x1f90e9[_0x4ced40(0x139)](_0x522f3c[_0x4ced40(0x136)])),_0x27a146(0x7,_0x1f90e9[_0x4ced40(0x139)](_0x47eed6['IDialogService'])),_0x27a146(0x8,_0x1f90e9['Inject'](_0x47eed6['ISidebarService'])),_0x27a146(0x9,_0x1f90e9[_0x4ced40(0x139)](_0x1f90e9[_0x4ced40(0x1a2)]))],_0x58f8e7[_0x4ced40(0x123)]);const _0xf38b0={'id':'univer.operation.toggle-edit-history','type':_0x1f90e9[_0x4ced40(0xa3)][_0x4ced40(0x129)],'handler':_0x3175dc=>{const _0x503cb9=_0x4ced40,_0x2eb710=_0x3175dc['get'](_0x58f8e7['HistoryLoaderService']),_0x17344d=_0x3175dc['get'](_0x1f90e9[_0x503cb9(0x16b)]),{unitId:_0x2effac}=_0x522f3c[_0x503cb9(0x11d)](_0x17344d)||{};return _0x2effac?(_0x2eb710[_0x503cb9(0x8d)](_0x2effac),!0x0):!0x1;}},_0x47864d={'id':_0x4ced40(0x85),'type':_0x1f90e9['CommandType']['OPERATION'],'handler':()=>!0x0};function _0x123527(_0x1b18aa){const _0x42419a=_0x4ced40;return{'id':_0xf38b0['id'],'type':_0x47eed6[_0x42419a(0x132)][_0x42419a(0x12d)],'icon':_0x42419a(0xd9),'tooltip':_0x42419a(0xc1),'hidden$':_0x47eed6[_0x42419a(0x191)](_0x1b18aa,_0x1f90e9[_0x42419a(0xda)]['UNIVER_SHEET']),'disabled$':_0x34a5d6[_0x42419a(0xbf)](_0x1b18aa,{'workbookTypes':[_0x522f3c[_0x42419a(0x189)],_0x522f3c['WorkbookViewHistoryPermission']],'worksheetTypes':[],'rangeTypes':[]})};}const _0x3d219c={[_0x47eed6[_0x4ced40(0x19e)][_0x4ced40(0xdf)]]:{[_0xf38b0['id']]:{'order':0.2,'menuItemFactory':_0x123527}}};var _0x18974c=Object[_0x4ced40(0xa4)],_0x3c73f8=(_0x3600f3,_0x2be927,_0xccf427,_0x452f4a)=>{for(var _0x198fe8=_0x452f4a>0x1?void 0x0:_0x452f4a?_0x18974c(_0x2be927,_0xccf427):_0x2be927,_0xa44547=_0x3600f3['length']-0x1,_0x1b44e8;_0xa44547>=0x0;_0xa44547--)(_0x1b44e8=_0x3600f3[_0xa44547])&&(_0x198fe8=_0x1b44e8(_0x198fe8)||_0x198fe8);return _0x198fe8;},_0x39583a=(_0x2d0cef,_0x5792f5)=>(_0x130cf0,_0x3d89a5)=>_0x5792f5(_0x130cf0,_0x3d89a5,_0x2d0cef);let _0x16eb1c=class extends _0x1f90e9['RxDisposable']{constructor(_0x13a720,_0x2e0c4a,_0x40ccd5,_0x5a1a3a,_0x5c5bc7,_0x2a628e,_0x2bb50f,_0x5bd564){const _0x3aaeb2=_0x4ced40;super(),_0x4eb434(this,'_revertErrorTimer',null),(this[_0x3aaeb2(0x67)]=_0x13a720,this['_menuManagerService']=_0x2e0c4a,this[_0x3aaeb2(0x14d)]=_0x40ccd5,this['_historyManagerService']=_0x5a1a3a,this[_0x3aaeb2(0x11c)]=_0x5c5bc7,this[_0x3aaeb2(0xbc)]=_0x2a628e,this[_0x3aaeb2(0xc6)]=_0x2bb50f,this[_0x3aaeb2(0x126)]=_0x5bd564,this[_0x3aaeb2(0x83)]());}[_0x4ced40(0x83)](){const _0x5f3b01=_0x4ced40;[_0xf38b0,_0x47864d][_0x5f3b01(0x192)](_0x583a57=>this[_0x5f3b01(0x142)](_0x1f90e9[_0x5f3b01(0x99)](this[_0x5f3b01(0x67)]['registerCommand'](_0x583a57)))),this[_0x5f3b01(0x142)](this[_0x5f3b01(0x14d)][_0x5f3b01(0x116)](_0x5f3b01(0xd9),_0x4af850)),this[_0x5f3b01(0x167)][_0x5f3b01(0x110)](_0x3d219c),this[_0x5f3b01(0x142)](this[_0x5f3b01(0x67)][_0x5f3b01(0x6a)](_0x4bc12c=>{const _0x20a7fa=_0x5f3b01;if(_0x4bc12c['id']===_0x1cec7c[_0x20a7fa(0x9e)]['id']){this[_0x20a7fa(0xbc)][_0x20a7fa(0x170)]({'content':this[_0x20a7fa(0x11c)]['t'](_0x20a7fa(0xe0)),'type':_0x344a4a['MessageType'][_0x20a7fa(0x92)],'duration':0x1388});const {unitId:_0x5c5352}=_0x4bc12c['params'],_0x3a5924=this[_0x20a7fa(0xc6)][_0x20a7fa(0x117)](_0x5c5352),_0x37d575=_0x9c438f['combineLatest']([_0x3a5924[_0x20a7fa(0x158)][_0x20a7fa(0x10c)],_0x3a5924[_0x20a7fa(0xe7)]])[_0x20a7fa(0x152)](async([_0x12c377,_0x8469c1])=>{const _0x3a289f=_0x20a7fa;var _0x4dbcce;_0x12c377['eventID']===_0x1cec7c[_0x3a289f(0x16d)][_0x3a289f(0xe4)]&&(_0x8469c1==null?void 0x0:_0x8469c1['status'])===_0x29348e[_0x3a289f(0x115)]['SYNCED']&&_0x12c377[_0x3a289f(0xb4)]['mutations'][_0x3a289f(0x15e)](_0x48c090=>_0x48c090['id']===_0x1cec7c[_0x3a289f(0x9e)]['id'])&&(this[_0x3a289f(0xa0)][_0x3a289f(0x13b)](),_0x37d575['unsubscribe'](),this[_0x3a289f(0xbb)]&&clearTimeout(this[_0x3a289f(0xbb)]),await((_0x4dbcce=this[_0x3a289f(0x126)])==null?void 0x0:_0x4dbcce[_0x3a289f(0x91)]()),setTimeout(()=>window[_0x3a289f(0xf7)][_0x3a289f(0x7e)]()));});this[_0x20a7fa(0xbb)]=setTimeout(()=>{const _0xab6b3a=_0x20a7fa;_0x37d575[_0xab6b3a(0x194)](),this['_messageService'][_0xab6b3a(0x170)]({'content':this[_0xab6b3a(0x11c)]['t'](_0xab6b3a(0xb6)),'type':_0x344a4a[_0xab6b3a(0x134)][_0xab6b3a(0x77)],'duration':0xbb8});},0x1388);}}));}};_0x16eb1c=_0x3c73f8([_0x39583a(0x0,_0x1f90e9[_0x4ced40(0xcb)]),_0x39583a(0x1,_0x47eed6[_0x4ced40(0x11b)]),_0x39583a(0x2,_0x1f90e9[_0x4ced40(0x139)](_0x47eed6[_0x4ced40(0xca)])),_0x39583a(0x3,_0x1f90e9[_0x4ced40(0x139)](_0x58f8e7['HistoryLoaderService'])),_0x39583a(0x4,_0x1f90e9[_0x4ced40(0x139)](_0x1f90e9['LocaleService'])),_0x39583a(0x5,_0x47eed6['IMessageService']),_0x39583a(0x6,_0x1f90e9[_0x4ced40(0x139)](_0x29348e[_0x4ced40(0x94)])),_0x39583a(0x7,_0x29348e[_0x4ced40(0x93)])],_0x16eb1c);var _0x4c76f6=Object[_0x4ced40(0xa4)],_0x2a115c=(_0x5ee9cc,_0x430b92,_0x46a77e,_0xbc7ab8)=>{const _0xc5dee5=_0x4ced40;for(var _0x36cc11=_0xbc7ab8>0x1?void 0x0:_0xbc7ab8?_0x4c76f6(_0x430b92,_0x46a77e):_0x430b92,_0x246266=_0x5ee9cc[_0xc5dee5(0x17f)]-0x1,_0x34e045;_0x246266>=0x0;_0x246266--)(_0x34e045=_0x5ee9cc[_0x246266])&&(_0x36cc11=_0x34e045(_0x36cc11)||_0x36cc11);return _0x36cc11;},_0x5a9d69=(_0x529252,_0x103fa9)=>(_0x25eb6c,_0x1178d7)=>_0x103fa9(_0x25eb6c,_0x1178d7,_0x529252);const _0x3cf031=_0x4ced40(0x130);_0x58f8e7[_0x4ced40(0x15a)]=(_0x19be40=class extends _0x1f90e9[_0x4ced40(0x13f)]{constructor(_0x88ceaa=_0x279207,_0xb8cb89,_0x1cf989){const _0x2e507e=_0x4ced40;super(),this['_config']=_0x88ceaa,this[_0x2e507e(0x10b)]=_0xb8cb89,this[_0x2e507e(0x19b)]=_0x1cf989;const {menu:_0x80b795,..._0x2371c1}=_0x1f90e9[_0x2e507e(0xf0)]({},_0x279207,this[_0x2e507e(0x1a0)]);_0x80b795&&this['_configService'][_0x2e507e(0xc3)](_0x2e507e(0x14b),_0x80b795,{'merge':!0x0}),this[_0x2e507e(0x19b)][_0x2e507e(0xc3)](_0x41a754,_0x2371c1),this[_0x2e507e(0x1a0)][_0x2e507e(0xf5)]&&this[_0x2e507e(0x19b)][_0x2e507e(0xc3)](_0x51a286,this[_0x2e507e(0x1a0)][_0x2e507e(0xf5)]);}[_0x4ced40(0x100)](){const _0x3c159c=_0x4ced40;[[_0x58f8e7[_0x3c159c(0x123)]],[_0x16eb1c]][_0x3c159c(0x192)](_0x1b6a82=>this['_injector'][_0x3c159c(0x7f)](_0x1b6a82));}[_0x4ced40(0xa2)](){const _0x5a934f=_0x4ced40;this[_0x5a934f(0x10b)][_0x5a934f(0xc4)](_0x16eb1c);}},_0x4eb434(_0x19be40,_0x4ced40(0x76),_0x1f90e9[_0x4ced40(0xda)][_0x4ced40(0xba)]),_0x4eb434(_0x19be40,_0x4ced40(0x8b),_0x3cf031),_0x19be40),_0x58f8e7[_0x4ced40(0x15a)]=_0x2a115c([_0x5a9d69(0x1,_0x1f90e9['Inject'](_0x1f90e9[_0x4ced40(0x122)])),_0x5a9d69(0x2,_0x1f90e9[_0x4ced40(0xe3)])],_0x58f8e7[_0x4ced40(0x15a)]),_0x58f8e7[_0x4ced40(0xbd)]=_0x51a286,_0x58f8e7[_0x4ced40(0xf4)]=_0x496bb8,Object[_0x4ced40(0xe1)](_0x58f8e7,Symbol[_0x4ced40(0x145)],{'value':_0x4ced40(0x112)});}));function _0x219b(_0x17f810,_0x1e38b7){_0x17f810=_0x17f810-0x67;const _0x81f545=_0x81f5();let _0x219b4a=_0x81f545[_0x17f810];return _0x219b4a;}function _0x81f5(){const _0x3a451c=['UniverSheetsDataValidationPlugin','UniverSheetsFormulaUi','UniverSheets','UniverEditHistoryViewerPlugin','UniverSheetsHyperLinkUIPlugin','_sidebarService','UniverSheetsConditionalFormatting','UniverDrawing','_injector','event$','IDialogService','map','editHistory.panel.listFetchError','mergeMenu','UniverDrawingUIPlugin','Module','UniverDesign','permissionId','CollaborationStatus','register','getCollabEntity','@univerjs/rpc','[HistoryLoaderService]:\x20Plugin\x20','@univerjs-pro/sheets-chart-ui','IMenuManagerService','_localeService','getSheetCommandTarget','_themeService','UniverDocs','./worker.js','displayName','Injector','HistoryLoaderService','UniverDataValidationPlugin','idSuffix','_localCacheService','getCurrentLocale','includes','OPERATION','110726ADrMOG','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','colorChannel1','BUTTON','UniverProSheetsPivot','_historyUniver$','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','UniverRPCMainThreadPlugin','MenuItemType','WorksheetEditPermission','MessageType','@univerjs/sheets-hyper-link-ui','RangeProtectionRuleModel','triggerLoadVersions','getSheets','Inject','UniverDocsUIPlugin','unMountHistoryContent','_pluginMap','UniverEngineFormula','UniverSheetsChartPlugin','Plugin','_initUniver','history-container','disposeWithMe','history-icon','UniverSheetsNumfmtPlugin','toStringTag','tag','IImageIoService','@univerjs/sheets-filter-ui','UNIVER_CONTAINER_ID','@univerjs/sheets-conditional-formatting','menu','absolute','_componentManager','@univerjs-pro/sheets-pivot','1em','React','UniverSheetsFilterPlugin','subscribe','@univerjs/docs','replace','invoke','set','UniverUIPlugin','session','\x20has\x20been\x20registered.','UniverEditHistoryLoaderPlugin','defIds','substring','UniverNetworkPlugin','some','_checkCanRevert','height','react','450YAyEUH','mask','_initListener','@univerjs/data-validation','@univerjs/sheets-ui','_menuManagerService','@univerjs-pro/license','UniverProSheetsChart','UniverSheetsFilterUi','IUniverInstanceService','_permissionService','CollaborationEvent','84141sditwk','158EpoELI','show','@univerjs/sheets-numfmt','amd','UniverSheetsNumfmt','fill','asObservable','@univerjs-pro/collaboration-client','currentTheme$','setDarkMode','_disposableCollection','Disposable','string','UniverSheetsUIPlugin','IPermissionService','url(#history-icon_clip0_907_281)','length','UniverEngineRender','UniverSheetsPivotTablePlugin','UniverSheetsHyperLinkUi','@univerjs/sheets-conditional-formatting-ui','@univerjs-pro/collaboration','UniverSheetsDrawingPlugin','workerURL','2804916WbSBxu','IMessageService','WorkbookEditablePermission','getSubunitRuleList','univerjs-icon\x20univerjs-icon-','_selectionProtectionRuleModel','WorkbookRecoverHistoryPermission','attrs','getConfig','UniverDrawingUi','getMenuHiddenObservable','forEach','xlink:href','unsubscribe','192uvWUTq','UniverSheetsFilterUIPlugin','UniverSheetsDrawingUi','darkMode$','forwardRef','UniverProCollaborationClient','_configService','UniverSheetsConditionalFormattingUi','position','RibbonStartGroup','LS_CONFIG_KEY','_config','_initContainer','ThemeService','UniverSheetsFormulaPlugin','_commandService','1260040ZWYtwX','UniverLicensePlugin','onCommandExecuted','historyListServerUrl','http://www.w3.org/2000/svg','1000','@univerjs/engine-formula','clear','UniverIcon','IAuthzIoService','getLocales','value','_initPlugins','835168ybQaEG','type','Error','assign','UniverRpc','5497dhyzUI','LocaleService','UniverSheetsFormulaUIPlugin','6kByybN','reload','add','UniverProEditHistoryLoader','UniverProLicense','revertRevision$','_init','@univerjs-pro/sheets-sparkline','univer.operation.exit-edit-history','3384896TLKrHo','left','children','historyUniver','RangeProtectionPermissionEditPoint','pluginName','UniverSheetsUi','mountHistoryContent','white','@univerjs/sheets-filter','HistoryModeStatus','exhaustSavingTask','Loading','ILocalCacheService','CollaborationController','display','@univerjs/sheets-drawing','appendChild','getUnit','toDisposable','@univerjs-pro/sheets-chart','UniverRenderEnginePlugin','UniverSheetsFilter','path','RevertRevisionMutation','@univerjs/sheets-drawing-ui','_historyManagerService','UniverSheetsConditionalFormattingUIPlugin','onSteady','CommandType','getOwnPropertyDescriptor','close','@univerjs/sheets-hyper-link','createElement','UniverFormulaEnginePlugin','100%','@univerjs-pro/sheets-sparkline-ui','UniverSheetsPlugin','has','UniverUi','@univerjs/sheets-formula-ui','composePermission','__getInjector','M8.28291\x205.16293C8.28295\x204.83156\x208.01435\x204.5629\x207.68298\x204.56287C7.35161\x204.56283\x207.08295\x204.83143\x207.08291\x205.1628L7.08252\x208.63494C7.0825\x208.79881\x207.1495\x208.95555\x207.26796\x209.06877L9.70073\x2011.3939C9.94029\x2011.6228\x2010.3201\x2011.6142\x2010.549\x2011.3747C10.778\x2011.1351\x2010.7694\x2010.7553\x2010.5298\x2010.5263L8.28255\x208.37852L8.28291\x205.16293Z','@univerjs/network','defs','data','symbol','editHistory.panel.revertFailed','useRef','UniverSheetsChartUIPlugin','UniverSheetsHyperLink','UNIVER_UNKNOWN','_revertErrorTimer','_messageService','UNIVER_CONTAINER_ID_KEY','rxjs','getCurrentRangeDisable$','33DMtBGm','editHistory.panel.title','div','setConfig','get','getAllPlugins','_collaborationController','PLUGIN_CONFIG_KEY_MAIN_THREAD','toString','UniverSheetsDrawingUIPlugin','ComponentManager','ICommandService','setLocale','UniverNetwork','style','executeCommand','next','getElementById','none','svg','values','AuthzIoHttpService','UniverSheetsDataValidation','UniverProSheetsSparkline','UniverDocsPlugin','HistoryIcon','UniverInstanceType','trim','historyPanelComponentKey','UniverSheetSparklinePlugin','history-icon_clip0_907_281','OTHERS','editHistory.panel.reverting','defineProperty','univer-container','IConfigService','CHANGESET_ACK','registerPlugin','width','state$','dispose','_dialogService','Univer','@univerjs/sheets','UniverProSheetsSparklineUi','historyUniver$','url(#$1','DisposableCollection','merge','UniverCore','entries','dataset','UNIVER_HISTORY_CONTAINER_ID','univerContainerId','@univerjs-pro/edit-history-viewer','location','BehaviorSubject','UniverSheetsConditionalFormattingPlugin','UniverCollaborationPlugin','UniverProSheetsChartUi','random','Exited','UniverSheetsHyperLinkPlugin','@univerjs/sheets-data-validation-ui','onStarting','_univerInstanceService','UniverSheetsDataValidationUi'];_0x81f5=function(){return _0x3a451c;};return _0x81f5();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/edit-history-loader",
|
|
3
|
-
"version": "0.15.0-insiders.20251227-
|
|
3
|
+
"version": "0.15.0-insiders.20251227-c108ce3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet edit history loader",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -47,42 +47,42 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@univerjs/icons": "^1.1.0",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.15.0-insiders.20251227-
|
|
51
|
-
"@univerjs-pro/collaboration-client": "0.15.0-insiders.20251227-
|
|
52
|
-
"@univerjs-pro/
|
|
53
|
-
"@univerjs-pro/
|
|
54
|
-
"@univerjs-pro/
|
|
55
|
-
"@univerjs-pro/sheets-
|
|
56
|
-
"@univerjs-pro/sheets-
|
|
57
|
-
"@univerjs-pro/sheets-sparkline": "0.15.0-insiders.20251227-
|
|
58
|
-
"@univerjs-pro/sheets-sparkline-ui": "0.15.0-insiders.20251227-
|
|
59
|
-
"@univerjs/
|
|
60
|
-
"@univerjs/design": "0.15.0-insiders.20251227-
|
|
61
|
-
"@univerjs/
|
|
62
|
-
"@univerjs/docs": "0.15.0-insiders.20251227-
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs/engine-render": "0.15.0-insiders.20251227-
|
|
68
|
-
"@univerjs/network": "0.15.0-insiders.20251227-
|
|
69
|
-
"@univerjs/sheets": "0.15.0-insiders.20251227-
|
|
70
|
-
"@univerjs/
|
|
71
|
-
"@univerjs/sheets-conditional-formatting": "0.15.0-insiders.20251227-
|
|
72
|
-
"@univerjs/
|
|
73
|
-
"@univerjs/sheets-data-validation": "0.15.0-insiders.20251227-
|
|
74
|
-
"@univerjs/sheets-data-validation
|
|
75
|
-
"@univerjs/sheets-drawing": "0.15.0-insiders.20251227-
|
|
76
|
-
"@univerjs/sheets-drawing-ui": "0.15.0-insiders.20251227-
|
|
77
|
-
"@univerjs/sheets-filter
|
|
78
|
-
"@univerjs/sheets-formula": "0.15.0-insiders.20251227-
|
|
79
|
-
"@univerjs/sheets-
|
|
80
|
-
"@univerjs/sheets-
|
|
81
|
-
"@univerjs/sheets-hyper-link
|
|
82
|
-
"@univerjs/sheets-
|
|
83
|
-
"@univerjs/sheets-ui": "0.15.0-insiders.20251227-
|
|
84
|
-
"@univerjs/ui": "0.15.0-insiders.20251227-
|
|
85
|
-
"@univerjs/sheets-
|
|
50
|
+
"@univerjs-pro/collaboration": "0.15.0-insiders.20251227-c108ce3",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.15.0-insiders.20251227-c108ce3",
|
|
52
|
+
"@univerjs-pro/license": "0.15.0-insiders.20251227-c108ce3",
|
|
53
|
+
"@univerjs-pro/sheets-chart": "0.15.0-insiders.20251227-c108ce3",
|
|
54
|
+
"@univerjs-pro/edit-history-viewer": "0.15.0-insiders.20251227-c108ce3",
|
|
55
|
+
"@univerjs-pro/sheets-pivot": "0.15.0-insiders.20251227-c108ce3",
|
|
56
|
+
"@univerjs-pro/sheets-chart-ui": "0.15.0-insiders.20251227-c108ce3",
|
|
57
|
+
"@univerjs-pro/sheets-sparkline": "0.15.0-insiders.20251227-c108ce3",
|
|
58
|
+
"@univerjs-pro/sheets-sparkline-ui": "0.15.0-insiders.20251227-c108ce3",
|
|
59
|
+
"@univerjs/data-validation": "0.15.0-insiders.20251227-c108ce3",
|
|
60
|
+
"@univerjs/design": "0.15.0-insiders.20251227-c108ce3",
|
|
61
|
+
"@univerjs/core": "0.15.0-insiders.20251227-c108ce3",
|
|
62
|
+
"@univerjs/docs": "0.15.0-insiders.20251227-c108ce3",
|
|
63
|
+
"@univerjs/drawing": "0.15.0-insiders.20251227-c108ce3",
|
|
64
|
+
"@univerjs/docs-ui": "0.15.0-insiders.20251227-c108ce3",
|
|
65
|
+
"@univerjs/engine-formula": "0.15.0-insiders.20251227-c108ce3",
|
|
66
|
+
"@univerjs/drawing-ui": "0.15.0-insiders.20251227-c108ce3",
|
|
67
|
+
"@univerjs/engine-render": "0.15.0-insiders.20251227-c108ce3",
|
|
68
|
+
"@univerjs/network": "0.15.0-insiders.20251227-c108ce3",
|
|
69
|
+
"@univerjs/sheets": "0.15.0-insiders.20251227-c108ce3",
|
|
70
|
+
"@univerjs/sheets-conditional-formatting-ui": "0.15.0-insiders.20251227-c108ce3",
|
|
71
|
+
"@univerjs/sheets-conditional-formatting": "0.15.0-insiders.20251227-c108ce3",
|
|
72
|
+
"@univerjs/rpc": "0.15.0-insiders.20251227-c108ce3",
|
|
73
|
+
"@univerjs/sheets-data-validation-ui": "0.15.0-insiders.20251227-c108ce3",
|
|
74
|
+
"@univerjs/sheets-data-validation": "0.15.0-insiders.20251227-c108ce3",
|
|
75
|
+
"@univerjs/sheets-drawing": "0.15.0-insiders.20251227-c108ce3",
|
|
76
|
+
"@univerjs/sheets-drawing-ui": "0.15.0-insiders.20251227-c108ce3",
|
|
77
|
+
"@univerjs/sheets-filter": "0.15.0-insiders.20251227-c108ce3",
|
|
78
|
+
"@univerjs/sheets-formula": "0.15.0-insiders.20251227-c108ce3",
|
|
79
|
+
"@univerjs/sheets-filter-ui": "0.15.0-insiders.20251227-c108ce3",
|
|
80
|
+
"@univerjs/sheets-formula-ui": "0.15.0-insiders.20251227-c108ce3",
|
|
81
|
+
"@univerjs/sheets-hyper-link": "0.15.0-insiders.20251227-c108ce3",
|
|
82
|
+
"@univerjs/sheets-hyper-link-ui": "0.15.0-insiders.20251227-c108ce3",
|
|
83
|
+
"@univerjs/sheets-ui": "0.15.0-insiders.20251227-c108ce3",
|
|
84
|
+
"@univerjs/ui": "0.15.0-insiders.20251227-c108ce3",
|
|
85
|
+
"@univerjs/sheets-numfmt": "0.15.0-insiders.20251227-c108ce3"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
88
|
"react": "18.3.1",
|