@univerjs-pro/edit-history-loader 0.4.2 → 0.5.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/types/index.d.ts +70 -3
- package/lib/umd/index.js +1 -1
- package/package.json +41 -41
- package/lib/types/command/history.operate.d.ts +0 -2
- package/lib/types/controllers/config.schema.d.ts +0 -13
- package/lib/types/controllers/history-loader.controller.d.ts +0 -17
- package/lib/types/controllers/history-menu.d.ts +0 -4
- package/lib/types/controllers/menu.schema.d.ts +0 -2
- package/lib/types/plugin.d.ts +0 -12
- package/lib/types/services/history-list.service.d.ts +0 -3
- package/lib/types/services/history-loader.service.d.ts +0 -33
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x3c6350=_0x2fa3;(function(_0x25b51c,_0x52ee6c){var _0x277f74=_0x2fa3,_0x28f509=_0x25b51c();while(!![]){try{var _0x4794f1=parseInt(_0x277f74(0x248))/0x1*(parseInt(_0x277f74(0x1f2))/0x2)+-parseInt(_0x277f74(0x2b4))/0x3+-parseInt(_0x277f74(0x2da))/0x4+-parseInt(_0x277f74(0x252))/0x5+-parseInt(_0x277f74(0x1f1))/0x6*(-parseInt(_0x277f74(0x253))/0x7)+parseInt(_0x277f74(0x2be))/0x8+parseInt(_0x277f74(0x2c2))/0x9*(parseInt(_0x277f74(0x206))/0xa);if(_0x4794f1===_0x52ee6c)break;else _0x28f509['push'](_0x28f509['shift']());}catch(_0x16262d){_0x28f509['push'](_0x28f509['shift']());}}}(_0x1bed,0x814ae));var q=Object[_0x3c6350(0x218)],x=(_0x3170a6,_0x282cb3,_0x2db403)=>_0x282cb3 in _0x3170a6?q(_0x3170a6,_0x282cb3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2db403}):_0x3170a6[_0x282cb3]=_0x2db403,S=(_0x3a6ab8,_0x3ef47c,_0x53e012)=>x(_0x3a6ab8,typeof _0x3ef47c!='symbol'?_0x3ef47c+'':_0x3ef47c,_0x53e012);Object[_0x3c6350(0x218)](exports,Symbol[_0x3c6350(0x293)],{'value':_0x3c6350(0x20a)});const s=require(_0x3c6350(0x22c)),V=require(_0x3c6350(0x2c9)),E=require(_0x3c6350(0x1f0)),F=require('@univerjs/docs'),k=require(_0x3c6350(0x205)),M=require(_0x3c6350(0x2bf)),A=require(_0x3c6350(0x21d)),$=require(_0x3c6350(0x2a7)),Y=require(_0x3c6350(0x2e9)),W=require('@univerjs/rpc'),h=require(_0x3c6350(0x287)),K=require(_0x3c6350(0x1ea)),B=require(_0x3c6350(0x228)),G=require(_0x3c6350(0x288)),z=require(_0x3c6350(0x22e)),Z=require(_0x3c6350(0x26e)),J=require(_0x3c6350(0x2d5)),Q=require(_0x3c6350(0x2a9)),X=require('@univerjs/sheets-filter-ui'),ee=require(_0x3c6350(0x254)),ie=require(_0x3c6350(0x272)),te=require(_0x3c6350(0x25d)),re=require('@univerjs/sheets-hyper-link-ui'),ne=require(_0x3c6350(0x20e)),O=require(_0x3c6350(0x2a0)),g=require(_0x3c6350(0x2e1)),p=require(_0x3c6350(0x1f6)),C=require(_0x3c6350(0x2e2)),m=require(_0x3c6350(0x209)),oe=require(_0x3c6350(0x251)),se=require('rxjs'),I=require('react'),w=_0x3c6350(0x294),ae={};var ce=Object[_0x3c6350(0x218)],le=Object['getOwnPropertyDescriptor'],ue=(_0x7cab52,_0x3de095,_0xd59b2a,_0x248262)=>{var _0x4ef288=_0x3c6350;for(var _0x4df3f1=_0x248262>0x1?void 0x0:_0x248262?le(_0x3de095,_0xd59b2a):_0x3de095,_0x4ba613=_0x7cab52[_0x4ef288(0x2ed)]-0x1,_0x4846e2;_0x4ba613>=0x0;_0x4ba613--)(_0x4846e2=_0x7cab52[_0x4ba613])&&(_0x4df3f1=(_0x248262?_0x4846e2(_0x3de095,_0xd59b2a,_0x4df3f1):_0x4846e2(_0x4df3f1))||_0x4df3f1);return _0x248262&&_0x4df3f1&&ce(_0x3de095,_0xd59b2a,_0x4df3f1),_0x4df3f1;},d=(_0x20db10,_0x1c8a56)=>(_0x30ec43,_0x9cc34d)=>_0x1c8a56(_0x30ec43,_0x9cc34d,_0x20db10);const ge=_0x3c6350(0x207),b=_0x3c6350(0x226),y=_0x3c6350(0x27b);exports['HistoryLoaderService']=class extends s[_0x3c6350(0x2c3)]{constructor(_0x58881e,_0x6820cb,_0x6ad56d,_0x1ec538,_0x27475b,_0x4d86b7,_0x3be557,_0x559e7e,_0x331a85){var _0x4178e9=_0x3c6350;super(),S(this,'_historyUniver',null),S(this,'_disposableCollection',new s['DisposableCollection']()),S(this,'_pluginMap',new Map()),(this[_0x4178e9(0x234)]=_0x58881e,this[_0x4178e9(0x2b9)]=_0x6820cb,this[_0x4178e9(0x2e4)]=_0x6ad56d,this['_commandService']=_0x1ec538,this[_0x4178e9(0x1f7)]=_0x27475b,this['_permissionService']=_0x4d86b7,this[_0x4178e9(0x2e8)]=_0x3be557,this['_dialogService']=_0x559e7e,this[_0x4178e9(0x2d6)]=_0x331a85,this[_0x4178e9(0x2df)]());}[_0x3c6350(0x2df)](){this['_initContainer'](),this['_initPlugins']();}['_initContainer'](){var _0x458609=_0x3c6350,_0x39aa6a;const _0x2a4a7d=(_0x39aa6a=this['_configService'][_0x458609(0x1fb)](b))!=null?_0x39aa6a:ge,_0x2e6dc5=document[_0x458609(0x225)](_0x2a4a7d);if(!_0x2e6dc5)return;const _0x4bbeb9=document[_0x458609(0x237)](_0x458609(0x2e7));_0x4bbeb9['id']=y,_0x4bbeb9['style'][_0x458609(0x262)]=_0x458609(0x1e9),_0x4bbeb9[_0x458609(0x2b2)]['top']='0',_0x4bbeb9[_0x458609(0x2b2)][_0x458609(0x24c)]='0',_0x4bbeb9[_0x458609(0x2b2)][_0x458609(0x1f3)]=_0x458609(0x27c),_0x4bbeb9[_0x458609(0x2b2)][_0x458609(0x2ae)]='100%',_0x4bbeb9[_0x458609(0x2b2)][_0x458609(0x276)]='1000',_0x4bbeb9[_0x458609(0x2b2)][_0x458609(0x210)]='none',_0x2e6dc5[_0x458609(0x2ab)](_0x4bbeb9);}[_0x3c6350(0x265)](){var _0x3efd27=_0x3c6350,_0x417d48;[[Y[_0x3efd27(0x1fe)]],[g[_0x3efd27(0x224)],{'container':y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[g[_0x3efd27(0x2d9)],null]]}],[M[_0x3efd27(0x261)],{'override':[[M['IImageIoService'],null]]}],[F[_0x3efd27(0x2ca)],{'hasScroll':!0x1}],[k['UniverDocsUIPlugin']],[ne[_0x3efd27(0x1ef)]],[h[_0x3efd27(0x2c5)],{'notExecuteFormula':!0x0}],[O[_0x3efd27(0x22f)]],[ee[_0x3efd27(0x2ac)]],[ie['UniverSheetsFormulaUIPlugin']],[p[_0x3efd27(0x200)]],[Q[_0x3efd27(0x2d1)]],[X[_0x3efd27(0x2f1)]],[K[_0x3efd27(0x1ed)]],[B[_0x3efd27(0x21f)]],[te[_0x3efd27(0x29b)]],[re[_0x3efd27(0x29d)]],[V[_0x3efd27(0x2dc)]],[G['UniverSheetsDataValidationPlugin']],[z[_0x3efd27(0x233)]],[$[_0x3efd27(0x208)],{'notExecuteFormula':!0x0}],[W[_0x3efd27(0x221)],{'workerURL':_0x3efd27(0x29c)}],[A['UniverDrawingUIPlugin']],[Z[_0x3efd27(0x20f)]],[J[_0x3efd27(0x271)]],[oe[_0x3efd27(0x2bd)],{'notExecuteFormula':!0x0}],[m[_0x3efd27(0x2d3)],{'historyListServerUrl':(_0x417d48=this[_0x3efd27(0x2e4)]['getConfig'](w))==null?void 0x0:_0x417d48[_0x3efd27(0x217)]}]][_0x3efd27(0x23e)](([_0x331f19,_0x513106])=>this['registerPlugin'](_0x331f19,_0x513106));}['dispose'](){var _0x35606c=_0x3c6350;super['dispose'](),this[_0x35606c(0x21c)](),this[_0x35606c(0x275)][_0x35606c(0x2d4)]();}['registerPlugin'](_0x2b085d,_0x105cd1,_0x589213){var _0x522f6a=_0x3c6350;if(this['_pluginMap'][_0x522f6a(0x2a2)](_0x2b085d[_0x522f6a(0x204)])&&!_0x589213)throw new Error(_0x522f6a(0x2a3)+_0x2b085d[_0x522f6a(0x204)]+'\x20has\x20been\x20registered.');this[_0x522f6a(0x275)]['set'](_0x2b085d[_0x522f6a(0x204)],[_0x2b085d,_0x105cd1]);}[_0x3c6350(0x212)](){var _0xd40a92=_0x3c6350;return Array[_0xd40a92(0x25e)](this[_0xd40a92(0x275)][_0xd40a92(0x260)]());}['mountHistoryContent'](_0x50996c){var _0x3e68cc=_0x3c6350;const _0x4aee3e=document[_0x3e68cc(0x225)](y);_0x4aee3e&&(_0x4aee3e[_0x3e68cc(0x2b2)][_0x3e68cc(0x210)]=_0x3e68cc(0x216),this[_0x3e68cc(0x2ad)](_0x50996c,y));}['unMountHistoryContent'](){var _0xf06e6c=_0x3c6350,_0xce010a;this[_0xf06e6c(0x27d)][_0xf06e6c(0x27e)](),(_0xce010a=this[_0xf06e6c(0x22b)])==null||_0xce010a[_0xf06e6c(0x27e)](),this[_0xf06e6c(0x22b)]=null;const _0x10d97a=document[_0xf06e6c(0x225)](y);_0x10d97a&&(_0x10d97a[_0xf06e6c(0x2b2)][_0xf06e6c(0x210)]=_0xf06e6c(0x26f));}[_0x3c6350(0x2ad)](_0x117e84,_0x53b8f4){var _0xe51edb=_0x3c6350;if(this[_0xe51edb(0x22b)])return;const _0x6bc040=new s[(_0xe51edb(0x269))]({'theme':E['greenTheme'],'locales':{[this[_0xe51edb(0x234)]['getCurrentLocale']()]:this['_localeService'][_0xe51edb(0x21e)]()},'override':[[s[_0xe51edb(0x285)],null]]});this['_historyUniver']=_0x6bc040;const _0x1d056c=_0x6bc040['__getInjector']();_0x1d056c[_0xe51edb(0x2a4)](s[_0xe51edb(0x290)])[_0xe51edb(0x244)](this[_0xe51edb(0x234)][_0xe51edb(0x239)]()),_0x1d056c[_0xe51edb(0x2a4)](s['IConfigService'])[_0xe51edb(0x247)](C[_0xe51edb(0x250)],this[_0xe51edb(0x2e4)]['getConfig'](C[_0xe51edb(0x250)])),this['_pluginMap']['forEach'](([_0x12bee8,_0x10a9fe])=>{var _0xd95e19=_0xe51edb;_0x6bc040[_0xd95e19(0x270)](_0x12bee8,_0x10a9fe);}),_0x1d056c[_0xe51edb(0x2cf)](_0x2d521f=>{var _0x242ccf=_0xe51edb;this['_initListener'](_0x2d521f,_0x117e84),this[_0x242ccf(0x249)](_0x2d521f,this['_messageService']);});const _0x11bb9c=_0x1d056c[_0xe51edb(0x2a4)](m['HistoryManagerService']),_0x37152d=this[_0xe51edb(0x2b6)](_0x117e84);_0x11bb9c[_0xe51edb(0x23f)](_0x117e84,_0x53b8f4,_0x37152d);}[_0x3c6350(0x298)](_0x4b24db,_0x2b4cc4){var _0x4993b0=_0x3c6350;const _0x154554=_0x4b24db[_0x4993b0(0x2a4)](m['HistoryManagerService']);this[_0x4993b0(0x27d)][_0x4993b0(0x23c)](_0x154554[_0x4993b0(0x282)][_0x4993b0(0x277)](_0x131232=>{var _0x257f0d=_0x4993b0;switch(_0x131232){case m[_0x257f0d(0x26b)][_0x257f0d(0x23a)]:this[_0x257f0d(0x2ce)][_0x257f0d(0x20c)](),this[_0x257f0d(0x2d6)]['close']();break;case m['HistoryModeStatus'][_0x257f0d(0x2af)]:this[_0x257f0d(0x21c)]();break;case m[_0x257f0d(0x26b)][_0x257f0d(0x241)]:this[_0x257f0d(0x21c)](),this[_0x257f0d(0x1f7)][_0x257f0d(0x1f4)]({'content':this['_localeService']['t'](_0x257f0d(0x2bb)),'type':E[_0x257f0d(0x2d8)][_0x257f0d(0x241)],'duration':0xbb8});break;}})),this[_0x4993b0(0x27d)][_0x4993b0(0x23c)](_0x154554[_0x4993b0(0x278)][_0x4993b0(0x277)](async _0x33599f=>{var _0x38c114=_0x4993b0;_0x33599f&&this['_commandService'][_0x38c114(0x2e0)](p[_0x38c114(0x1ee)]['id'],{'unitId':_0x2b4cc4,'revision':_0x33599f});}));}[_0x3c6350(0x249)](_0x5af2ba,_0x17213f){var _0x12c6f0=_0x3c6350;const _0x53e68d=_0x5af2ba['get'](g[_0x12c6f0(0x21a)]),_0x34d2b2=_0x17213f['getContainer']();_0x34d2b2&&_0x53e68d[_0x12c6f0(0x2bc)](_0x34d2b2);}['_checkCanRevert'](_0x339226){var _0x48fc7e=_0x3c6350;const _0x13a3f3=this[_0x48fc7e(0x2b9)][_0x48fc7e(0x202)](_0x339226)[_0x48fc7e(0x2b8)]()[_0x48fc7e(0x2aa)](_0x4fafcb=>_0x4fafcb[_0x48fc7e(0x28a)]()),_0xf5f734=new h[(_0x48fc7e(0x279))](_0x339226)['id'],_0x375883=_0x13a3f3[_0x48fc7e(0x2aa)](_0x2711c5=>new h['WorksheetEditPermission'](_0x339226,_0x2711c5)['id']),_0x3a6b50=_0x13a3f3['map'](_0x508f96=>this[_0x48fc7e(0x2e8)][_0x48fc7e(0x2b1)](_0x339226,_0x508f96)[_0x48fc7e(0x2aa)](_0x30a250=>new h[(_0x48fc7e(0x215))](_0x339226,_0x508f96,_0x30a250['permissionId'])['id']))[_0x48fc7e(0x291)](),_0xeb06f0=new h[(_0x48fc7e(0x2dd))](_0x339226)['id'];return this[_0x48fc7e(0x2cb)][_0x48fc7e(0x2ba)]([_0xf5f734,..._0x375883,..._0x3a6b50,_0xeb06f0])[_0x48fc7e(0x25f)](_0x587683=>!!_0x587683[_0x48fc7e(0x2c6)]);}},exports['HistoryLoaderService']=ue([d(0x0,s[_0x3c6350(0x26c)](s[_0x3c6350(0x290)])),d(0x1,s[_0x3c6350(0x25b)]),d(0x2,s[_0x3c6350(0x273)]),d(0x3,s[_0x3c6350(0x281)]),d(0x4,g[_0x3c6350(0x21a)]),d(0x5,s[_0x3c6350(0x23d)]),d(0x6,s['Inject'](h[_0x3c6350(0x26a)])),d(0x7,s[_0x3c6350(0x26c)](g[_0x3c6350(0x2d9)])),d(0x8,s['Inject'](g[_0x3c6350(0x1f5)]))],exports[_0x3c6350(0x263)]);var u=function(){return u=Object['assign']||function(_0x396118){var _0x5b32aa=_0x2fa3;for(var _0x1cad7c,_0x37eee0=0x1,_0x2ca4ec=arguments[_0x5b32aa(0x2ed)];_0x37eee0<_0x2ca4ec;_0x37eee0++){_0x1cad7c=arguments[_0x37eee0];for(var _0x234f20 in _0x1cad7c)Object[_0x5b32aa(0x227)][_0x5b32aa(0x213)][_0x5b32aa(0x28d)](_0x1cad7c,_0x234f20)&&(_0x396118[_0x234f20]=_0x1cad7c[_0x234f20]);}return _0x396118;},u['apply'](this,arguments);},ve=function(_0x2e139a,_0x70d18d){var _0x52f5ac=_0x3c6350,_0x562a45={};for(var _0x37dc3f in _0x2e139a)Object[_0x52f5ac(0x227)][_0x52f5ac(0x213)][_0x52f5ac(0x28d)](_0x2e139a,_0x37dc3f)&&_0x70d18d[_0x52f5ac(0x24b)](_0x37dc3f)<0x0&&(_0x562a45[_0x37dc3f]=_0x2e139a[_0x37dc3f]);if(_0x2e139a!=null&&typeof Object[_0x52f5ac(0x283)]=='function'){for(var _0x1ba4ec=0x0,_0x37dc3f=Object[_0x52f5ac(0x283)](_0x2e139a);_0x1ba4ec<_0x37dc3f[_0x52f5ac(0x2ed)];_0x1ba4ec++)_0x70d18d[_0x52f5ac(0x24b)](_0x37dc3f[_0x1ba4ec])<0x0&&Object[_0x52f5ac(0x227)][_0x52f5ac(0x1f8)]['call'](_0x2e139a,_0x37dc3f[_0x1ba4ec])&&(_0x562a45[_0x37dc3f[_0x1ba4ec]]=_0x2e139a[_0x37dc3f[_0x1ba4ec]]);}return _0x562a45;},N=I[_0x3c6350(0x219)](function(_0x5c98ee,_0x7baf43){var _0x2c0f80=_0x3c6350,_0x165821=_0x5c98ee[_0x2c0f80(0x25a)],_0x89c628=_0x5c98ee['id'],_0x570002=_0x5c98ee['className'],_0x4416f6=_0x5c98ee[_0x2c0f80(0x2d2)],_0x4aae54=ve(_0x5c98ee,[_0x2c0f80(0x25a),'id',_0x2c0f80(0x264),'extend']),_0x22a3dd=_0x2c0f80(0x2f0)[_0x2c0f80(0x2c4)](_0x89c628,'\x20')[_0x2c0f80(0x2c4)](_0x570002||'')[_0x2c0f80(0x1fa)](),_0x391378=I[_0x2c0f80(0x2c0)]('_'['concat'](_e()));return L(_0x165821,''[_0x2c0f80(0x2c4)](_0x89c628),{'defIds':_0x165821[_0x2c0f80(0x25c)],'idSuffix':_0x391378[_0x2c0f80(0x29f)]},u({'ref':_0x7baf43,'className':_0x22a3dd},_0x4aae54),_0x4416f6);});function L(_0x3d8f03,_0xd5f50b,_0x13b3a5,_0x40f741,_0x910b10){var _0x58eab3=_0x3c6350;return I['createElement'](_0x3d8f03[_0x58eab3(0x2eb)],u(u({'key':_0xd5f50b},de(_0x3d8f03,_0x13b3a5,_0x910b10)),_0x40f741),(he(_0x3d8f03,_0x13b3a5)['children']||[])[_0x58eab3(0x2aa)](function(_0x8d6597,_0x440ffd){var _0x4b0049=_0x58eab3;return L(_0x8d6597,''[_0x4b0049(0x2c4)](_0xd5f50b,'-')[_0x4b0049(0x2c4)](_0x3d8f03['tag'],'-')[_0x4b0049(0x2c4)](_0x440ffd),_0x13b3a5,void 0x0,_0x910b10);}));}function de(_0x40621f,_0x30aee5,_0x56329c){var _0x53295b=_0x3c6350,_0x310466=u({},_0x40621f[_0x53295b(0x284)]);_0x56329c!=null&&_0x56329c['colorChannel1']&&_0x310466[_0x53295b(0x1fd)]===_0x53295b(0x27a)&&(_0x310466[_0x53295b(0x1fd)]=_0x56329c[_0x53295b(0x27a)]);var _0x5adda0=_0x30aee5[_0x53295b(0x25c)];return!_0x5adda0||_0x5adda0['length']===0x0||(_0x40621f[_0x53295b(0x2eb)]==='use'&&_0x310466['xlink:href']&&(_0x310466[_0x53295b(0x2a8)]=_0x310466['xlink:href']+_0x30aee5['idSuffix']),Object[_0x53295b(0x26d)](_0x310466)['forEach'](function(_0x41d4ec){var _0x41ca6d=_0x53295b,_0x1b6f21=_0x41d4ec[0x0],_0x3cc927=_0x41d4ec[0x1];typeof _0x3cc927==_0x41ca6d(0x2c7)&&(_0x310466[_0x1b6f21]=_0x3cc927[_0x41ca6d(0x222)](/url\(#(.*)\)/,_0x41ca6d(0x2e5)['concat'](_0x30aee5[_0x41ca6d(0x24d)],')')));})),_0x310466;}function _0x1bed(){var _0x401ee2=['IAuthzIoService','0\x200\x2016\x2016','@univerjs/sheets','@univerjs/sheets-data-validation','UNIVER_CONTAINER_ID_KEY','getSheetId','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_UNKNOWN','call','WorkbookViewHistoryPermission','_componentManager','LocaleService','flat','displayName','toStringTag','edit-history-loader.config','some','RibbonStartGroup','univerContainerId','_initListener','path','OTHERS','UniverSheetsHyperLinkPlugin','./worker.js','UniverSheetsHyperLinkUIPlugin','OPERATION','current','@univerjs/sheets-ui','Plugin','has','[HistoryLoaderService]:\x20Plugin\x20','get','editHistory.panel.reverting','editHistory.panel.revertFailed','@univerjs/engine-formula','xlink:href','@univerjs/sheets-filter','map','appendChild','UniverSheetsFormulaPlugin','_initUniver','height','Exited','UniverIcon','getSubunitRuleList','style','CollaborationStatus','1778178CHfIWA','M0\x200H16V16H0z','_checkCanRevert','HistorySingle','getSheets','_univerInstanceService','composePermission','editHistory.panel.listFetchError','setContainer','UniverSheetsPivotTablePlugin','1874624YhJQHV','@univerjs/drawing','useRef','register','9QODRdX','Disposable','concat','UniverSheetsPlugin','value','string','exhaustSavingTask','@univerjs/data-validation','UniverDocsPlugin','_permissionService','CollaborationController','type','_dialogService','invoke','ComponentManager','UniverSheetsFilterPlugin','extend','UniverEditHistoryViewerPlugin','clear','@univerjs/sheets-drawing-ui','_sidebarService','registerCommand','MessageType','IDialogService','1456560JUQnsh','reload','UniverDataValidationPlugin','WorkbookRecoverHistoryPermission','CHANGESET_ACK','_init','executeCommand','@univerjs/ui','@univerjs-pro/collaboration-client','random','_configService','url(#$1','onStarting','div','_selectionProtectionRuleModel','@univerjs/engine-render','_config','tag','unsubscribe','length','menu','getOwnPropertyDescriptor','univerjs-icon\x20univerjs-icon-','UniverSheetsFilterUIPlugin','UNIVER_HISTORY_CONTAINER_ID','absolute','@univerjs/sheets-conditional-formatting','LocalCacheService','MenuItemType','UniverSheetsConditionalFormattingPlugin','RevertRevisionMutation','UniverSheetsNumfmtPlugin','@univerjs/design','12ChQsvv','6418zvdhCn','width','show','ISidebarService','@univerjs-pro/collaboration','_messageService','propertyIsEnumerable','url(#history-single_clip0_907_281)','trim','getConfig','1em','fill','UniverRenderEnginePlugin','UniverInstanceType','UniverCollaborationPlugin','toDisposable','getUnit','_menuManagerService','pluginName','@univerjs/docs-ui','12887580TPdjcp','univer-container','UniverFormulaEnginePlugin','@univerjs-pro/edit-history-viewer','Module','CommandType','closeAll','clipPath','@univerjs/sheets-numfmt','UniverSheetsDrawingPlugin','display','getMenuHiddenObservable','getAllPlugins','hasOwnProperty','Loading','RangeProtectionPermissionEditPoint','block','historyListServerUrl','defineProperty','forwardRef','IMessageService','data','unMountHistoryContent','@univerjs/drawing-ui','getLocales','UniverSheetsConditionalFormattingUIPlugin','substring','UniverRPCMainThreadPlugin','replace','_collaborationController','UniverUIPlugin','getElementById','UNIVER_CONTAINER_ID','prototype','@univerjs/sheets-conditional-formatting-ui','_localCacheService','eventID','_historyUniver','@univerjs/core','_revertErrorTimer','@univerjs/sheets-data-validation-ui','UniverSheetsUIPlugin','univer.operation.toggle-edit-history','event$','state$','UniverSheetsDataValidationUIPlugin','_localeService','location','UniverEditHistoryLoaderPlugin','createElement','disposeWithMe','getCurrentLocale','Entered','CollaborationEvent','add','IPermissionService','forEach','triggerLoadVersions','params','Error','_commandService','_historyManagerService','setLocale','mountHistoryContent','history-single_clip0_907_281','setConfig','73lfJNeT','_initMessageService','onSteady','indexOf','left','idSuffix','onCommandExecuted','_injector','SNAPSHOT_SERVER_URL_KEY','@univerjs-pro/sheets-pivot','3279085utywNb','1347227MEwmDK','@univerjs/sheets-formula','UNIVER_SHEET','RxDisposable','editHistory.panel.title','SYNCED','#fff','icon','IUniverInstanceService','defIds','@univerjs/sheets-hyper-link','from','every','values','UniverDrawingPlugin','position','HistoryLoaderService','className','_initPlugins','currentColor','assign','toString','Univer','RangeProtectionRuleModel','HistoryModeStatus','Inject','entries','@univerjs/sheets-drawing','none','registerPlugin','UniverSheetsDrawingUIPlugin','@univerjs/sheets-formula-ui','IConfigService','BUTTON','_pluginMap','zIndex','subscribe','revertRevision$','WorkbookEditablePermission','colorChannel1','univer-history-container','100%','_disposableCollection','dispose','defs','mergeMenu','ICommandService','status$','getOwnPropertySymbols','attrs'];_0x1bed=function(){return _0x401ee2;};return _0x1bed();}function he(_0x3a3519,_0x539c6f){var _0x59ae28=_0x3c6350,_0x258167,_0x33e1b3=_0x539c6f[_0x59ae28(0x25c)];return!_0x33e1b3||_0x33e1b3[_0x59ae28(0x2ed)]===0x0?_0x3a3519:_0x3a3519[_0x59ae28(0x2eb)]==='defs'&&(!((_0x258167=_0x3a3519['children'])===null||_0x258167===void 0x0)&&_0x258167['length'])?u(u({},_0x3a3519),{'children':_0x3a3519['children'][_0x59ae28(0x2aa)](function(_0x5b48e3){var _0x4063d1=_0x59ae28;return typeof _0x5b48e3[_0x4063d1(0x284)]['id']==_0x4063d1(0x2c7)&&_0x33e1b3&&_0x33e1b3[_0x4063d1(0x24b)](_0x5b48e3[_0x4063d1(0x284)]['id'])>-0x1?u(u({},_0x5b48e3),{'attrs':u(u({},_0x5b48e3[_0x4063d1(0x284)]),{'id':_0x5b48e3['attrs']['id']+_0x539c6f['idSuffix']})}):_0x5b48e3;})}):_0x3a3519;}function _e(){var _0x1b326f=_0x3c6350;return Math[_0x1b326f(0x2e3)]()[_0x1b326f(0x268)](0x24)[_0x1b326f(0x220)](0x2,0x8);}function _0x2fa3(_0x200fc7,_0x26aa93){var _0x1bedc4=_0x1bed();return _0x2fa3=function(_0x2fa31e,_0x59a2aa){_0x2fa31e=_0x2fa31e-0x1e9;var _0x1a7bcb=_0x1bedc4[_0x2fa31e];return _0x1a7bcb;},_0x2fa3(_0x200fc7,_0x26aa93);}N['displayName']=_0x3c6350(0x2b0);var fe={'tag':'svg','attrs':{'fill':'none','viewBox':_0x3c6350(0x286),'width':'1em','height':_0x3c6350(0x1fc)},'children':[{'tag':'g','attrs':{'fill':_0x3c6350(0x266),'clipPath':_0x3c6350(0x1f9)},'children':[{'tag':'path','attrs':{'d':_0x3c6350(0x28b)}},{'tag':'path','attrs':{'d':'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'}}]},{'tag':_0x3c6350(0x27f),'attrs':{},'children':[{'tag':_0x3c6350(0x20d),'attrs':{'id':'history-single_clip0_907_281'},'children':[{'tag':_0x3c6350(0x299),'attrs':{'fill':_0x3c6350(0x259),'d':_0x3c6350(0x2b5)}}]}]}],'defIds':[_0x3c6350(0x246)]},T=I[_0x3c6350(0x219)](function(_0x1e106f,_0x27ae96){var _0x5f2a3e=_0x3c6350;return I[_0x5f2a3e(0x237)](N,Object[_0x5f2a3e(0x267)]({},_0x1e106f,{'id':'history-single','ref':_0x27ae96,'icon':fe}));});T[_0x3c6350(0x292)]=_0x3c6350(0x2b7);const R={'id':_0x3c6350(0x230),'type':s[_0x3c6350(0x20b)][_0x3c6350(0x29e)],'handler':_0x58f324=>{var _0x45cb64=_0x3c6350;const _0x33e9c8=_0x58f324['get'](exports[_0x45cb64(0x263)]),_0xa55cc=_0x58f324[_0x45cb64(0x2a4)](s[_0x45cb64(0x25b)]),{unitId:_0x3a8d89}=h['getSheetCommandTarget'](_0xa55cc)||{};return _0x3a8d89?(_0x33e9c8[_0x45cb64(0x245)](_0x3a8d89),!0x0):!0x1;}},D='HistorySingle';function Se(_0x55e02e){var _0xd73ed5=_0x3c6350;return{'id':R['id'],'type':g[_0xd73ed5(0x1ec)][_0xd73ed5(0x274)],'icon':D,'tooltip':_0xd73ed5(0x257),'hidden$':g[_0xd73ed5(0x211)](_0x55e02e,s[_0xd73ed5(0x1ff)][_0xd73ed5(0x255)]),'disabled$':O['getCurrentRangeDisable$'](_0x55e02e,{'workbookTypes':[h[_0xd73ed5(0x279)],h[_0xd73ed5(0x28e)]],'worksheetTypes':[],'rangeTypes':[]})};}const me={[g[_0x3c6350(0x296)][_0x3c6350(0x29a)]]:{[R['id']]:{'order':0x0,'menuItemFactory':Se}}};var ye=Object[_0x3c6350(0x218)],pe=Object[_0x3c6350(0x2ef)],Ce=(_0x1c0b31,_0x26be9e,_0x366a78,_0xf1438)=>{for(var _0x579ffd=_0xf1438>0x1?void 0x0:_0xf1438?pe(_0x26be9e,_0x366a78):_0x26be9e,_0x5f551f=_0x1c0b31['length']-0x1,_0x15c8c3;_0x5f551f>=0x0;_0x5f551f--)(_0x15c8c3=_0x1c0b31[_0x5f551f])&&(_0x579ffd=(_0xf1438?_0x15c8c3(_0x26be9e,_0x366a78,_0x579ffd):_0x15c8c3(_0x579ffd))||_0x579ffd);return _0xf1438&&_0x579ffd&&ye(_0x26be9e,_0x366a78,_0x579ffd),_0x579ffd;},f=(_0x4af1a7,_0x5c853f)=>(_0x5107d9,_0x7a51c1)=>_0x5c853f(_0x5107d9,_0x7a51c1,_0x4af1a7);let P=class extends s[_0x3c6350(0x256)]{constructor(_0x3d299d,_0x33148a,_0x5c1147,_0x5e41d2,_0x5bff70,_0x4b2df8,_0x41c3e6,_0x27efc7){var _0x1c08ea=_0x3c6350;super(),S(this,_0x1c08ea(0x22d),null),(this[_0x1c08ea(0x242)]=_0x3d299d,this[_0x1c08ea(0x203)]=_0x33148a,this[_0x1c08ea(0x28f)]=_0x5c1147,this[_0x1c08ea(0x243)]=_0x5e41d2,this[_0x1c08ea(0x234)]=_0x5bff70,this[_0x1c08ea(0x1f7)]=_0x4b2df8,this[_0x1c08ea(0x223)]=_0x41c3e6,this[_0x1c08ea(0x229)]=_0x27efc7,this[_0x1c08ea(0x2df)]());}[_0x3c6350(0x2df)](){var _0x181768=_0x3c6350;[R]['forEach'](_0x415d4f=>this['disposeWithMe'](s[_0x181768(0x201)](this[_0x181768(0x242)][_0x181768(0x2d7)](_0x415d4f)))),this[_0x181768(0x238)](this[_0x181768(0x28f)][_0x181768(0x2c1)](D,T)),this[_0x181768(0x203)][_0x181768(0x280)](me),this[_0x181768(0x238)](this[_0x181768(0x242)][_0x181768(0x24e)](_0x45334b=>{var _0x5386e8=_0x181768;if(_0x45334b['id']===p[_0x5386e8(0x1ee)]['id']){this[_0x5386e8(0x1f7)]['show']({'content':this[_0x5386e8(0x234)]['t'](_0x5386e8(0x2a5)),'type':E[_0x5386e8(0x2d8)][_0x5386e8(0x214)],'duration':0x1388});const {unitId:_0x179f2b}=_0x45334b[_0x5386e8(0x240)],_0x290aaa=this[_0x5386e8(0x223)]['getCollabEntity'](_0x179f2b),_0x4589eb=se['combineLatest']([_0x290aaa['session'][_0x5386e8(0x231)],_0x290aaa[_0x5386e8(0x232)]])[_0x5386e8(0x277)](async([_0x2c0894,_0x140f1b])=>{var _0x119286=_0x5386e8;_0x2c0894[_0x119286(0x22a)]===p[_0x119286(0x23b)][_0x119286(0x2de)]&&(_0x140f1b==null?void 0x0:_0x140f1b['status'])===C[_0x119286(0x2b3)][_0x119286(0x258)]&&_0x2c0894[_0x119286(0x21b)]['mutations'][_0x119286(0x295)](_0x57775e=>_0x57775e['id']===p[_0x119286(0x1ee)]['id'])&&(this[_0x119286(0x243)]['unMountHistoryContent'](),_0x4589eb[_0x119286(0x2ec)](),this[_0x119286(0x22d)]&&clearTimeout(this[_0x119286(0x22d)]),await this[_0x119286(0x229)][_0x119286(0x2c8)](),setTimeout(()=>window[_0x119286(0x235)][_0x119286(0x2db)]()));});this[_0x5386e8(0x22d)]=setTimeout(()=>{var _0xc25e2=_0x5386e8;_0x4589eb['unsubscribe'](),this[_0xc25e2(0x1f7)]['show']({'content':this[_0xc25e2(0x234)]['t'](_0xc25e2(0x2a6)),'type':E[_0xc25e2(0x2d8)][_0xc25e2(0x241)],'duration':0xbb8});},0x1388);}}));}};P=Ce([f(0x0,s['ICommandService']),f(0x1,g['IMenuManagerService']),f(0x2,s[_0x3c6350(0x26c)](g[_0x3c6350(0x2d0)])),f(0x3,s['Inject'](exports['HistoryLoaderService'])),f(0x4,s[_0x3c6350(0x26c)](s[_0x3c6350(0x290)])),f(0x5,g[_0x3c6350(0x21a)]),f(0x6,s[_0x3c6350(0x26c)](C[_0x3c6350(0x2cc)])),f(0x7,s[_0x3c6350(0x26c)](C[_0x3c6350(0x1eb)]))],P);var Ie=Object[_0x3c6350(0x218)],Ue=Object[_0x3c6350(0x2ef)],Ee=(_0x324312,_0x357a5d,_0x3343fd,_0x5c20a3)=>{var _0x32c75f=_0x3c6350;for(var _0x59df1d=_0x5c20a3>0x1?void 0x0:_0x5c20a3?Ue(_0x357a5d,_0x3343fd):_0x357a5d,_0x3d3456=_0x324312[_0x32c75f(0x2ed)]-0x1,_0x3a293f;_0x3d3456>=0x0;_0x3d3456--)(_0x3a293f=_0x324312[_0x3d3456])&&(_0x59df1d=(_0x5c20a3?_0x3a293f(_0x357a5d,_0x3343fd,_0x59df1d):_0x3a293f(_0x59df1d))||_0x59df1d);return _0x5c20a3&&_0x59df1d&&Ie(_0x357a5d,_0x3343fd,_0x59df1d),_0x59df1d;},H=(_0x2edf09,_0x15bee5)=>(_0x2d79bc,_0x45522c)=>_0x15bee5(_0x2d79bc,_0x45522c,_0x2edf09);const Pe='UNIVER_EDIT_HISTORY_LOADER_PLUGIN';var U;exports[_0x3c6350(0x236)]=(U=class extends s[_0x3c6350(0x2a1)]{constructor(_0x26a2b9=ae,_0x912b2,_0x362fd9){var _0x518d8d=_0x3c6350;super(),this[_0x518d8d(0x2ea)]=_0x26a2b9,this[_0x518d8d(0x24f)]=_0x912b2,this[_0x518d8d(0x2e4)]=_0x362fd9;const {menu:_0x58dd48,..._0x5f5994}=this[_0x518d8d(0x2ea)];_0x58dd48&&this[_0x518d8d(0x2e4)][_0x518d8d(0x247)](_0x518d8d(0x2ee),_0x58dd48,{'merge':!0x0}),this[_0x518d8d(0x2e4)]['setConfig'](w,_0x5f5994),this[_0x518d8d(0x2ea)][_0x518d8d(0x297)]&&this[_0x518d8d(0x2e4)]['setConfig'](b,this[_0x518d8d(0x2ea)][_0x518d8d(0x297)]);}[_0x3c6350(0x2e6)](){var _0x40e037=_0x3c6350;[[exports[_0x40e037(0x263)]],[P]][_0x40e037(0x23e)](_0x24fefc=>this['_injector']['add'](_0x24fefc));}[_0x3c6350(0x24a)](){var _0x5e923c=_0x3c6350;this[_0x5e923c(0x24f)][_0x5e923c(0x2a4)](P);}},S(U,_0x3c6350(0x2cd),s[_0x3c6350(0x1ff)][_0x3c6350(0x28c)]),S(U,_0x3c6350(0x204),Pe),U),exports[_0x3c6350(0x236)]=Ee([H(0x1,s['Inject'](s['Injector'])),H(0x2,s[_0x3c6350(0x273)])],exports[_0x3c6350(0x236)]),exports[_0x3c6350(0x289)]=b,exports[_0x3c6350(0x2f2)]=y;
|
|
1
|
+
'use strict';var _0x74ab75=_0x15f2;(function(_0x5c0714,_0x3d1bcd){var _0x2a932a=_0x15f2,_0x474a02=_0x5c0714();while(!![]){try{var _0x390952=-parseInt(_0x2a932a(0x12f))/0x1*(-parseInt(_0x2a932a(0x9f))/0x2)+-parseInt(_0x2a932a(0x143))/0x3+parseInt(_0x2a932a(0x155))/0x4*(parseInt(_0x2a932a(0xe1))/0x5)+parseInt(_0x2a932a(0xf6))/0x6*(-parseInt(_0x2a932a(0x140))/0x7)+parseInt(_0x2a932a(0xa6))/0x8*(parseInt(_0x2a932a(0xda))/0x9)+parseInt(_0x2a932a(0xc0))/0xa+parseInt(_0x2a932a(0xe7))/0xb*(parseInt(_0x2a932a(0xb8))/0xc);if(_0x390952===_0x3d1bcd)break;else _0x474a02['push'](_0x474a02['shift']());}catch(_0x37fe58){_0x474a02['push'](_0x474a02['shift']());}}}(_0x5610,0xcc1fa));var q=Object[_0x74ab75(0x99)],x=(_0x27534a,_0x4725aa,_0x727c67)=>_0x4725aa in _0x27534a?q(_0x27534a,_0x4725aa,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x727c67}):_0x27534a[_0x4725aa]=_0x727c67,S=(_0x579605,_0x4a56b0,_0x8e2197)=>x(_0x579605,typeof _0x4a56b0!=_0x74ab75(0x79)?_0x4a56b0+'':_0x4a56b0,_0x8e2197);Object['defineProperty'](exports,Symbol[_0x74ab75(0x10a)],{'value':_0x74ab75(0x123)});function _0x5610(){var _0x46b3fe=['CHANGESET_ACK','style','@univerjs/docs','UniverDrawingPlugin','getSubunitRuleList','state$','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','get','MenuItemType','substring','__getInjector','@univerjs/sheets-data-validation-ui','_dialogService','_revertErrorTimer','576uwAEgV','display','@univerjs/sheets-ui','UniverDrawingUIPlugin','HistorySingle','@univerjs/sheets-filter','map','CommandType','CollaborationController','_initUniver','UniverEditHistoryViewerPlugin','forEach','UNIVER_UNKNOWN','UNIVER_CONTAINER_ID_KEY','length','event$','@univerjs/data-validation','UniverInstanceType','mutations','WorkbookEditablePermission','toStringTag','@univerjs/drawing-ui','forwardRef','getElementById','UniverDataValidationPlugin','@univerjs/sheets-conditional-formatting-ui','_pluginMap','WorksheetEditPermission','UniverSheetsDataValidationPlugin','pluginName','IPermissionService','LocalCacheService','ComponentManager','UniverSheetsFormulaPlugin','every','@univerjs/sheets-drawing','univerjs-icon\x20univerjs-icon-','location','rxjs','mountHistoryContent','@univerjs/docs-ui','url(#$1','unMountHistoryContent','UniverSheetsNumfmtPlugin','_initContainer','Module','url(#history-single_clip0_907_281)','concat','@univerjs/design','UniverSheetsHyperLinkUIPlugin','100%','univerContainerId','call','_checkCanRevert','_init','LocaleService','@univerjs/engine-formula','3CSsOff','position','@univerjs/sheets-filter-ui','setConfig','session','children','_collaborationController','_historyUniver','displayName','permissionId','editHistory.panel.revertFailed','some','BUTTON','CollaborationEvent','toDisposable','OPERATION','flat','85204DRPgUf','getOwnPropertyDescriptor','_historyManagerService','3415521FiTXUq','@univerjs/sheets-conditional-formatting','idSuffix','getLocales','@univerjs/sheets-numfmt','HistoryLoaderService','replace','defIds','onSteady','clipPath','@univerjs/drawing','getConfig','UniverSheetsConditionalFormattingUIPlugin','RangeProtectionRuleModel','eventID','clear','UniverSheetsFilterPlugin','getCurrentLocale','166636lASFmc','editHistory.panel.title','colorChannel1','reload','UniverSheetsDrawingPlugin','DisposableCollection','UniverSheetsFormulaUIPlugin','show','Injector','WorkbookRecoverHistoryPermission','block','getCurrentRangeDisable$','has','_initPlugins','Exited','getContainer','_disposableCollection','path','#fff','HistoryManagerService','revertRevision$','_componentManager','close','symbol','M0\x200H16V16H0z','@univerjs/sheets','setLocale','hasOwnProperty','registerCommand','IImageIoService','onCommandExecuted','_configService','xlink:href','RxDisposable','OTHERS','Entered','getSheets','@univerjs/rpc','1em','composePermission','@univerjs/sheets-hyper-link-ui','registerPlugin','random','disposeWithMe','_sidebarService','UniverIcon','ISidebarService','SNAPSHOT_SERVER_URL_KEY','IConfigService','edit-history-loader.config','fill','history-single_clip0_907_281','getAllPlugins','IUniverInstanceService','getMenuHiddenObservable','defineProperty','_initMessageService','_messageService','indexOf','subscribe','mergeMenu','26798wOSroI','current','HistoryModeStatus','entries','UniverEditHistoryLoaderPlugin','defs','getOwnPropertySymbols','8IqyPRS','function','@univerjs/sheets-formula','_menuManagerService','add','univer-container','values','WorkbookViewHistoryPermission','RevertRevisionMutation','className','IAuthzIoService','div','getSheetId','apply','ICommandService','UniverSheetsConditionalFormattingPlugin','status','_selectionProtectionRuleModel','22691532QHCrCX','IDialogService','Loading','createElement','unsubscribe','IMessageService','getCollabEntity','params','4599940fiIdTT','value','toString','dispose','_localCacheService','_localeService','string','_injector','menu','type','none','editHistory.panel.listFetchError','attrs','@univerjs/sheets-drawing-ui','_univerInstanceService','prototype','Plugin','UNIVER_CONTAINER_ID','assign','@univerjs/ui','getSheetCommandTarget','exhaustSavingTask','@univerjs-pro/collaboration','combineLatest','MessageType','Univer','4892958RBbeYz','UniverSheetsDataValidationUIPlugin','tag','@univerjs/sheets-hyper-link','./worker.js','_config','UniverRPCMainThreadPlugin','25eHkuOf','Inject','_commandService','_permissionService','appendChild','register','11kRlyYO'];_0x5610=function(){return _0x46b3fe;};return _0x5610();}const s=require('@univerjs/core'),V=require(_0x74ab75(0x106)),E=require(_0x74ab75(0x126)),F=require(_0x74ab75(0xea)),k=require(_0x74ab75(0x11e)),M=require(_0x74ab75(0x14d)),A=require(_0x74ab75(0x10b)),$=require(_0x74ab75(0x12e)),Y=require('@univerjs/engine-render'),W=require(_0x74ab75(0x87)),h=require(_0x74ab75(0x7b)),K=require(_0x74ab75(0x144)),B=require(_0x74ab75(0x10f)),G=require('@univerjs/sheets-data-validation'),z=require(_0x74ab75(0xf3)),Z=require(_0x74ab75(0x119)),J=require(_0x74ab75(0xcd)),Q=require(_0x74ab75(0xfb)),X=require(_0x74ab75(0x131)),ee=require(_0x74ab75(0xa8)),ie=require('@univerjs/sheets-formula-ui'),te=require(_0x74ab75(0xdd)),re=require(_0x74ab75(0x8a)),ne=require(_0x74ab75(0x147)),O=require(_0x74ab75(0xf8)),g=require(_0x74ab75(0xd3)),p=require(_0x74ab75(0xd6)),C=require('@univerjs-pro/collaboration-client'),m=require('@univerjs-pro/edit-history-viewer'),oe=require('@univerjs-pro/sheets-pivot'),se=require(_0x74ab75(0x11c)),I=require('react'),w=_0x74ab75(0x93),ae={};var ce=Object[_0x74ab75(0x99)],le=Object['getOwnPropertyDescriptor'],ue=(_0x5df29e,_0x1e0b66,_0x393fc3,_0xe311a9)=>{var _0x23e1ec=_0x74ab75;for(var _0x476155=_0xe311a9>0x1?void 0x0:_0xe311a9?le(_0x1e0b66,_0x393fc3):_0x1e0b66,_0x3f8aa6=_0x5df29e[_0x23e1ec(0x104)]-0x1,_0x239831;_0x3f8aa6>=0x0;_0x3f8aa6--)(_0x239831=_0x5df29e[_0x3f8aa6])&&(_0x476155=(_0xe311a9?_0x239831(_0x1e0b66,_0x393fc3,_0x476155):_0x239831(_0x476155))||_0x476155);return _0xe311a9&&_0x476155&&ce(_0x1e0b66,_0x393fc3,_0x476155),_0x476155;},d=(_0x1ff607,_0x300159)=>(_0x3e663a,_0x16bbd4)=>_0x300159(_0x3e663a,_0x16bbd4,_0x1ff607);const ge=_0x74ab75(0xab),b=_0x74ab75(0xd1),y='univer-history-container';exports[_0x74ab75(0x148)]=class extends s['Disposable']{constructor(_0x3412b9,_0x2f274d,_0x27e477,_0x26ded2,_0xf6ac42,_0x3942f8,_0x253883,_0x3fa461,_0x32b981){var _0x4ac980=_0x74ab75;super(),S(this,_0x4ac980(0x136),null),S(this,'_disposableCollection',new s[(_0x4ac980(0x15a))]()),S(this,_0x4ac980(0x110),new Map()),(this[_0x4ac980(0xc5)]=_0x3412b9,this[_0x4ac980(0xce)]=_0x2f274d,this[_0x4ac980(0x81)]=_0x27e477,this[_0x4ac980(0xe3)]=_0x26ded2,this['_messageService']=_0xf6ac42,this[_0x4ac980(0xe4)]=_0x3942f8,this[_0x4ac980(0xb7)]=_0x253883,this[_0x4ac980(0xf4)]=_0x3fa461,this[_0x4ac980(0x8e)]=_0x32b981,this[_0x4ac980(0x12c)]());}['_init'](){var _0x15c1c3=_0x74ab75;this[_0x15c1c3(0x122)](),this['_initPlugins']();}['_initContainer'](){var _0x59f41c=_0x74ab75,_0x585f6d;const _0x49208b=(_0x585f6d=this[_0x59f41c(0x81)][_0x59f41c(0x14e)](b))!=null?_0x585f6d:ge,_0x479ed6=document[_0x59f41c(0x10d)](_0x49208b);if(!_0x479ed6)return;const _0x153a9d=document[_0x59f41c(0xbb)](_0x59f41c(0xb1));_0x153a9d['id']=y,_0x153a9d['style'][_0x59f41c(0x130)]='absolute',_0x153a9d[_0x59f41c(0xe9)]['top']='0',_0x153a9d[_0x59f41c(0xe9)]['left']='0',_0x153a9d[_0x59f41c(0xe9)]['width']=_0x59f41c(0x128),_0x153a9d[_0x59f41c(0xe9)]['height']='100%',_0x153a9d[_0x59f41c(0xe9)]['zIndex']='1000',_0x153a9d[_0x59f41c(0xe9)][_0x59f41c(0xf7)]=_0x59f41c(0xca),_0x479ed6[_0x59f41c(0xe5)](_0x153a9d);}[_0x74ab75(0x6f)](){var _0x2a5988=_0x74ab75,_0x4a2033;[[Y['UniverRenderEnginePlugin']],[g['UniverUIPlugin'],{'container':y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[g[_0x2a5988(0xb9)],null]]}],[M[_0x2a5988(0xeb)],{'override':[[M[_0x2a5988(0x7f)],null]]}],[F['UniverDocsPlugin'],{'hasScroll':!0x1}],[k['UniverDocsUIPlugin']],[ne[_0x2a5988(0x121)]],[h['UniverSheetsPlugin'],{'notExecuteFormula':!0x0}],[O['UniverSheetsUIPlugin']],[ee[_0x2a5988(0x117)]],[ie[_0x2a5988(0x15b)]],[p['UniverCollaborationPlugin']],[Q[_0x2a5988(0x153)]],[X['UniverSheetsFilterUIPlugin']],[K[_0x2a5988(0xb5)]],[B[_0x2a5988(0x14f)]],[te['UniverSheetsHyperLinkPlugin']],[re[_0x2a5988(0x127)]],[V[_0x2a5988(0x10e)]],[G[_0x2a5988(0x112)]],[z[_0x2a5988(0xdb)]],[$['UniverFormulaEnginePlugin'],{'notExecuteFormula':!0x0}],[W[_0x2a5988(0xe0)],{'workerURL':_0x2a5988(0xde)}],[A[_0x2a5988(0xf9)]],[Z[_0x2a5988(0x159)]],[J['UniverSheetsDrawingUIPlugin']],[oe['UniverSheetsPivotTablePlugin'],{'notExecuteFormula':!0x0}],[m[_0x2a5988(0x100)],{'historyListServerUrl':(_0x4a2033=this[_0x2a5988(0x81)][_0x2a5988(0x14e)](w))==null?void 0x0:_0x4a2033['historyListServerUrl']}]]['forEach'](([_0x31be59,_0x265676])=>this[_0x2a5988(0x8b)](_0x31be59,_0x265676));}[_0x74ab75(0xc3)](){var _0x11fe57=_0x74ab75;super[_0x11fe57(0xc3)](),this[_0x11fe57(0x120)](),this[_0x11fe57(0x110)][_0x11fe57(0x152)]();}['registerPlugin'](_0x5dcfaf,_0x1b0e11,_0x1c3d5f){var _0x39ea90=_0x74ab75;if(this['_pluginMap'][_0x39ea90(0x6e)](_0x5dcfaf['pluginName'])&&!_0x1c3d5f)throw new Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x5dcfaf[_0x39ea90(0x113)]+'\x20has\x20been\x20registered.');this['_pluginMap']['set'](_0x5dcfaf['pluginName'],[_0x5dcfaf,_0x1b0e11]);}[_0x74ab75(0x96)](){var _0x2772ba=_0x74ab75;return Array['from'](this['_pluginMap'][_0x2772ba(0xac)]());}[_0x74ab75(0x11d)](_0x5483ed){var _0x3066dc=_0x74ab75;const _0x54c822=document['getElementById'](y);_0x54c822&&(_0x54c822[_0x3066dc(0xe9)][_0x3066dc(0xf7)]=_0x3066dc(0x6c),this['_initUniver'](_0x5483ed,y));}[_0x74ab75(0x120)](){var _0x383adc=_0x74ab75,_0x18d1e6;this[_0x383adc(0x72)]['dispose'](),(_0x18d1e6=this[_0x383adc(0x136)])==null||_0x18d1e6[_0x383adc(0xc3)](),this[_0x383adc(0x136)]=null;const _0x41153f=document['getElementById'](y);_0x41153f&&(_0x41153f[_0x383adc(0xe9)]['display']='none');}[_0x74ab75(0xff)](_0x1f850f,_0x3a1ada){var _0x3d56da=_0x74ab75;if(this[_0x3d56da(0x136)])return;const _0x1ce872=new s[(_0x3d56da(0xd9))]({'theme':E['greenTheme'],'locales':{[this['_localeService'][_0x3d56da(0x154)]()]:this[_0x3d56da(0xc5)][_0x3d56da(0x146)]()},'override':[[s[_0x3d56da(0xb0)],null]]});this[_0x3d56da(0x136)]=_0x1ce872;const _0x2db5f8=_0x1ce872[_0x3d56da(0xf2)]();_0x2db5f8[_0x3d56da(0xef)](s['LocaleService'])[_0x3d56da(0x7c)](this[_0x3d56da(0xc5)]['getCurrentLocale']()),_0x2db5f8[_0x3d56da(0xef)](s[_0x3d56da(0x92)])[_0x3d56da(0x132)](C[_0x3d56da(0x91)],this[_0x3d56da(0x81)]['getConfig'](C['SNAPSHOT_SERVER_URL_KEY'])),this[_0x3d56da(0x110)][_0x3d56da(0x101)](([_0x5ee21d,_0x2f13d4])=>{var _0x2572a1=_0x3d56da;_0x1ce872[_0x2572a1(0x8b)](_0x5ee21d,_0x2f13d4);}),_0x2db5f8['invoke'](_0x588204=>{var _0x50c55d=_0x3d56da;this['_initListener'](_0x588204,_0x1f850f),this[_0x50c55d(0x9a)](_0x588204,this[_0x50c55d(0x9b)]);});const _0x26dfa8=_0x2db5f8[_0x3d56da(0xef)](m[_0x3d56da(0x75)]),_0x4d5ba3=this[_0x3d56da(0x12b)](_0x1f850f);_0x26dfa8['triggerLoadVersions'](_0x1f850f,_0x3a1ada,_0x4d5ba3);}['_initListener'](_0xd8902e,_0x445a2e){var _0xc8f155=_0x74ab75;const _0x2db707=_0xd8902e[_0xc8f155(0xef)](m[_0xc8f155(0x75)]);this[_0xc8f155(0x72)][_0xc8f155(0xaa)](_0x2db707['status$'][_0xc8f155(0x9d)](_0x4e9537=>{var _0x266dd1=_0xc8f155;switch(_0x4e9537){case m[_0x266dd1(0xa1)][_0x266dd1(0x85)]:this[_0x266dd1(0xf4)]['closeAll'](),this['_sidebarService'][_0x266dd1(0x78)]();break;case m[_0x266dd1(0xa1)][_0x266dd1(0x70)]:this[_0x266dd1(0x120)]();break;case m['HistoryModeStatus']['Error']:this[_0x266dd1(0x120)](),this[_0x266dd1(0x9b)][_0x266dd1(0x15c)]({'content':this[_0x266dd1(0xc5)]['t'](_0x266dd1(0xcb)),'type':E['MessageType']['Error'],'duration':0xbb8});break;}})),this[_0xc8f155(0x72)][_0xc8f155(0xaa)](_0x2db707[_0xc8f155(0x76)]['subscribe'](async _0x42c38d=>{var _0x3e0d37=_0xc8f155;_0x42c38d&&this[_0x3e0d37(0xe3)]['executeCommand'](p[_0x3e0d37(0xae)]['id'],{'unitId':_0x445a2e,'revision':_0x42c38d});}));}[_0x74ab75(0x9a)](_0x403549,_0x2f3b61){var _0xff7efb=_0x74ab75;const _0x10f6a1=_0x403549[_0xff7efb(0xef)](g['IMessageService']),_0x16a8f8=_0x2f3b61[_0xff7efb(0x71)]();_0x16a8f8&&_0x10f6a1['setContainer'](_0x16a8f8);}[_0x74ab75(0x12b)](_0xf2c5f1){var _0x40b752=_0x74ab75;const _0x4c0e6e=this[_0x40b752(0xce)]['getUnit'](_0xf2c5f1)[_0x40b752(0x86)]()[_0x40b752(0xfc)](_0x2ea58e=>_0x2ea58e[_0x40b752(0xb2)]()),_0x27fdac=new h[(_0x40b752(0x109))](_0xf2c5f1)['id'],_0x20ee94=_0x4c0e6e[_0x40b752(0xfc)](_0x59e042=>new h[(_0x40b752(0x111))](_0xf2c5f1,_0x59e042)['id']),_0x154e0f=_0x4c0e6e[_0x40b752(0xfc)](_0xb33b25=>this[_0x40b752(0xb7)][_0x40b752(0xec)](_0xf2c5f1,_0xb33b25)['map'](_0x830f1b=>new h['RangeProtectionPermissionEditPoint'](_0xf2c5f1,_0xb33b25,_0x830f1b[_0x40b752(0x138)])['id']))[_0x40b752(0x13f)](),_0x7f3e46=new h[(_0x40b752(0x15e))](_0xf2c5f1)['id'];return this[_0x40b752(0xe4)][_0x40b752(0x89)]([_0x27fdac,..._0x20ee94,..._0x154e0f,_0x7f3e46])[_0x40b752(0x118)](_0x430293=>!!_0x430293[_0x40b752(0xc1)]);}},exports[_0x74ab75(0x148)]=ue([d(0x0,s[_0x74ab75(0xe2)](s[_0x74ab75(0x12d)])),d(0x1,s['IUniverInstanceService']),d(0x2,s['IConfigService']),d(0x3,s[_0x74ab75(0xb4)]),d(0x4,g[_0x74ab75(0xbd)]),d(0x5,s[_0x74ab75(0x114)]),d(0x6,s[_0x74ab75(0xe2)](h[_0x74ab75(0x150)])),d(0x7,s['Inject'](g[_0x74ab75(0xb9)])),d(0x8,s[_0x74ab75(0xe2)](g[_0x74ab75(0x90)]))],exports[_0x74ab75(0x148)]);var u=function(){var _0x31ef3e=_0x74ab75;return u=Object[_0x31ef3e(0xd2)]||function(_0x6e7719){var _0x42408f=_0x31ef3e;for(var _0x267c42,_0x198869=0x1,_0x382d15=arguments[_0x42408f(0x104)];_0x198869<_0x382d15;_0x198869++){_0x267c42=arguments[_0x198869];for(var _0x1a31d9 in _0x267c42)Object['prototype'][_0x42408f(0x7d)][_0x42408f(0x12a)](_0x267c42,_0x1a31d9)&&(_0x6e7719[_0x1a31d9]=_0x267c42[_0x1a31d9]);}return _0x6e7719;},u[_0x31ef3e(0xb3)](this,arguments);},ve=function(_0x44eb1a,_0x5147fa){var _0x3cabd9=_0x74ab75,_0x544f88={};for(var _0x40c9ee in _0x44eb1a)Object[_0x3cabd9(0xcf)][_0x3cabd9(0x7d)]['call'](_0x44eb1a,_0x40c9ee)&&_0x5147fa['indexOf'](_0x40c9ee)<0x0&&(_0x544f88[_0x40c9ee]=_0x44eb1a[_0x40c9ee]);if(_0x44eb1a!=null&&typeof Object[_0x3cabd9(0xa5)]==_0x3cabd9(0xa7)){for(var _0x2d243d=0x0,_0x40c9ee=Object[_0x3cabd9(0xa5)](_0x44eb1a);_0x2d243d<_0x40c9ee['length'];_0x2d243d++)_0x5147fa['indexOf'](_0x40c9ee[_0x2d243d])<0x0&&Object[_0x3cabd9(0xcf)]['propertyIsEnumerable'][_0x3cabd9(0x12a)](_0x44eb1a,_0x40c9ee[_0x2d243d])&&(_0x544f88[_0x40c9ee[_0x2d243d]]=_0x44eb1a[_0x40c9ee[_0x2d243d]]);}return _0x544f88;},N=I[_0x74ab75(0x10c)](function(_0x3eacab,_0x4b75c1){var _0x454d05=_0x74ab75,_0x2cdbf9=_0x3eacab['icon'],_0x4e2c33=_0x3eacab['id'],_0x4e1265=_0x3eacab['className'],_0xa5ff47=_0x3eacab['extend'],_0x79ab0=ve(_0x3eacab,['icon','id',_0x454d05(0xaf),'extend']),_0x2df3ab=_0x454d05(0x11a)['concat'](_0x4e2c33,'\x20')[_0x454d05(0x125)](_0x4e1265||'')['trim'](),_0x3f4bac=I['useRef']('_'['concat'](_e()));return L(_0x2cdbf9,''[_0x454d05(0x125)](_0x4e2c33),{'defIds':_0x2cdbf9[_0x454d05(0x14a)],'idSuffix':_0x3f4bac[_0x454d05(0xa0)]},u({'ref':_0x4b75c1,'className':_0x2df3ab},_0x79ab0),_0xa5ff47);});function L(_0x367362,_0x4751f0,_0x527f34,_0x55d3a6,_0x21656b){var _0xf0beb6=_0x74ab75;return I[_0xf0beb6(0xbb)](_0x367362[_0xf0beb6(0xdc)],u(u({'key':_0x4751f0},de(_0x367362,_0x527f34,_0x21656b)),_0x55d3a6),(he(_0x367362,_0x527f34)['children']||[])[_0xf0beb6(0xfc)](function(_0x264302,_0x189191){var _0x164d68=_0xf0beb6;return L(_0x264302,''[_0x164d68(0x125)](_0x4751f0,'-')['concat'](_0x367362['tag'],'-')[_0x164d68(0x125)](_0x189191),_0x527f34,void 0x0,_0x21656b);}));}function de(_0x63240e,_0x9cbebb,_0x366ce4){var _0xc64b79=_0x74ab75,_0x495488=u({},_0x63240e[_0xc64b79(0xcc)]);_0x366ce4!=null&&_0x366ce4[_0xc64b79(0x157)]&&_0x495488[_0xc64b79(0x94)]===_0xc64b79(0x157)&&(_0x495488[_0xc64b79(0x94)]=_0x366ce4[_0xc64b79(0x157)]);var _0x47dee0=_0x9cbebb[_0xc64b79(0x14a)];return!_0x47dee0||_0x47dee0['length']===0x0||(_0x63240e['tag']==='use'&&_0x495488[_0xc64b79(0x82)]&&(_0x495488['xlink:href']=_0x495488[_0xc64b79(0x82)]+_0x9cbebb[_0xc64b79(0x145)]),Object[_0xc64b79(0xa2)](_0x495488)[_0xc64b79(0x101)](function(_0x431a8c){var _0x1acd2e=_0xc64b79,_0x532cdc=_0x431a8c[0x0],_0xec57bb=_0x431a8c[0x1];typeof _0xec57bb==_0x1acd2e(0xc6)&&(_0x495488[_0x532cdc]=_0xec57bb[_0x1acd2e(0x149)](/url\(#(.*)\)/,_0x1acd2e(0x11f)[_0x1acd2e(0x125)](_0x9cbebb[_0x1acd2e(0x145)],')')));})),_0x495488;}function he(_0x3ecf57,_0x4fd065){var _0x55ad44=_0x74ab75,_0xf4ecde,_0x2018ca=_0x4fd065[_0x55ad44(0x14a)];return!_0x2018ca||_0x2018ca['length']===0x0?_0x3ecf57:_0x3ecf57[_0x55ad44(0xdc)]===_0x55ad44(0xa4)&&(!((_0xf4ecde=_0x3ecf57[_0x55ad44(0x134)])===null||_0xf4ecde===void 0x0)&&_0xf4ecde[_0x55ad44(0x104)])?u(u({},_0x3ecf57),{'children':_0x3ecf57['children'][_0x55ad44(0xfc)](function(_0xcecacd){var _0x4a2d22=_0x55ad44;return typeof _0xcecacd[_0x4a2d22(0xcc)]['id']=='string'&&_0x2018ca&&_0x2018ca[_0x4a2d22(0x9c)](_0xcecacd[_0x4a2d22(0xcc)]['id'])>-0x1?u(u({},_0xcecacd),{'attrs':u(u({},_0xcecacd['attrs']),{'id':_0xcecacd[_0x4a2d22(0xcc)]['id']+_0x4fd065[_0x4a2d22(0x145)]})}):_0xcecacd;})}):_0x3ecf57;}function _e(){var _0xf2533=_0x74ab75;return Math[_0xf2533(0x8c)]()[_0xf2533(0xc2)](0x24)[_0xf2533(0xf1)](0x2,0x8);}N[_0x74ab75(0x137)]=_0x74ab75(0x8f);var fe={'tag':'svg','attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x74ab75(0x88)},'children':[{'tag':'g','attrs':{'fill':'currentColor','clipPath':_0x74ab75(0x124)},'children':[{'tag':_0x74ab75(0x73),'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':_0x74ab75(0x73),'attrs':{'d':_0x74ab75(0xee)}}]},{'tag':_0x74ab75(0xa4),'attrs':{},'children':[{'tag':_0x74ab75(0x14c),'attrs':{'id':_0x74ab75(0x95)},'children':[{'tag':_0x74ab75(0x73),'attrs':{'fill':_0x74ab75(0x74),'d':_0x74ab75(0x7a)}}]}]}],'defIds':[_0x74ab75(0x95)]},T=I['forwardRef'](function(_0x170b41,_0x1f27a9){var _0x251510=_0x74ab75;return I['createElement'](N,Object[_0x251510(0xd2)]({},_0x170b41,{'id':'history-single','ref':_0x1f27a9,'icon':fe}));});T[_0x74ab75(0x137)]='HistorySingle';const R={'id':'univer.operation.toggle-edit-history','type':s[_0x74ab75(0xfd)][_0x74ab75(0x13e)],'handler':_0x77647c=>{var _0x28eb07=_0x74ab75;const _0x25e84e=_0x77647c[_0x28eb07(0xef)](exports[_0x28eb07(0x148)]),_0x22c891=_0x77647c[_0x28eb07(0xef)](s[_0x28eb07(0x97)]),{unitId:_0x22f938}=h[_0x28eb07(0xd4)](_0x22c891)||{};return _0x22f938?(_0x25e84e[_0x28eb07(0x11d)](_0x22f938),!0x0):!0x1;}},D=_0x74ab75(0xfa);function Se(_0x473f1a){var _0x4a1917=_0x74ab75;return{'id':R['id'],'type':g[_0x4a1917(0xf0)][_0x4a1917(0x13b)],'icon':D,'tooltip':_0x4a1917(0x156),'hidden$':g[_0x4a1917(0x98)](_0x473f1a,s[_0x4a1917(0x107)]['UNIVER_SHEET']),'disabled$':O[_0x4a1917(0x6d)](_0x473f1a,{'workbookTypes':[h[_0x4a1917(0x109)],h[_0x4a1917(0xad)]],'worksheetTypes':[],'rangeTypes':[]})};}const me={[g['RibbonStartGroup'][_0x74ab75(0x84)]]:{[R['id']]:{'order':0x0,'menuItemFactory':Se}}};var ye=Object['defineProperty'],pe=Object[_0x74ab75(0x141)],Ce=(_0x5d60b8,_0x47415c,_0x3cc353,_0x550862)=>{var _0x5c5a28=_0x74ab75;for(var _0x4280b8=_0x550862>0x1?void 0x0:_0x550862?pe(_0x47415c,_0x3cc353):_0x47415c,_0x2f3a74=_0x5d60b8[_0x5c5a28(0x104)]-0x1,_0x849bb0;_0x2f3a74>=0x0;_0x2f3a74--)(_0x849bb0=_0x5d60b8[_0x2f3a74])&&(_0x4280b8=(_0x550862?_0x849bb0(_0x47415c,_0x3cc353,_0x4280b8):_0x849bb0(_0x4280b8))||_0x4280b8);return _0x550862&&_0x4280b8&&ye(_0x47415c,_0x3cc353,_0x4280b8),_0x4280b8;},f=(_0x105db0,_0xeef183)=>(_0x4b568e,_0x426e50)=>_0xeef183(_0x4b568e,_0x426e50,_0x105db0);let P=class extends s[_0x74ab75(0x83)]{constructor(_0x22e6cb,_0x43c68a,_0x596ce2,_0x4d3aa1,_0x201165,_0x2cfc88,_0x2a88f0,_0x2479f3){var _0x3045e0=_0x74ab75;super(),S(this,_0x3045e0(0xf5),null),(this[_0x3045e0(0xe3)]=_0x22e6cb,this['_menuManagerService']=_0x43c68a,this['_componentManager']=_0x596ce2,this[_0x3045e0(0x142)]=_0x4d3aa1,this[_0x3045e0(0xc5)]=_0x201165,this[_0x3045e0(0x9b)]=_0x2cfc88,this[_0x3045e0(0x135)]=_0x2a88f0,this[_0x3045e0(0xc4)]=_0x2479f3,this['_init']());}[_0x74ab75(0x12c)](){var _0x2a1058=_0x74ab75;[R][_0x2a1058(0x101)](_0x2178d1=>this[_0x2a1058(0x8d)](s[_0x2a1058(0x13d)](this[_0x2a1058(0xe3)][_0x2a1058(0x7e)](_0x2178d1)))),this['disposeWithMe'](this[_0x2a1058(0x77)][_0x2a1058(0xe6)](D,T)),this[_0x2a1058(0xa9)][_0x2a1058(0x9e)](me),this[_0x2a1058(0x8d)](this[_0x2a1058(0xe3)][_0x2a1058(0x80)](_0x1578ca=>{var _0x416c49=_0x2a1058;if(_0x1578ca['id']===p[_0x416c49(0xae)]['id']){this[_0x416c49(0x9b)][_0x416c49(0x15c)]({'content':this[_0x416c49(0xc5)]['t']('editHistory.panel.reverting'),'type':E['MessageType'][_0x416c49(0xba)],'duration':0x1388});const {unitId:_0x5767cf}=_0x1578ca[_0x416c49(0xbf)],_0x160244=this['_collaborationController'][_0x416c49(0xbe)](_0x5767cf),_0x12b1be=se[_0x416c49(0xd7)]([_0x160244[_0x416c49(0x133)][_0x416c49(0x105)],_0x160244[_0x416c49(0xed)]])[_0x416c49(0x9d)](async([_0x135d70,_0x5ad7b9])=>{var _0x5d1142=_0x416c49;_0x135d70[_0x5d1142(0x151)]===p[_0x5d1142(0x13c)][_0x5d1142(0xe8)]&&(_0x5ad7b9==null?void 0x0:_0x5ad7b9[_0x5d1142(0xb6)])===C['CollaborationStatus']['SYNCED']&&_0x135d70['data'][_0x5d1142(0x108)][_0x5d1142(0x13a)](_0xed870f=>_0xed870f['id']===p['RevertRevisionMutation']['id'])&&(this[_0x5d1142(0x142)]['unMountHistoryContent'](),_0x12b1be[_0x5d1142(0xbc)](),this['_revertErrorTimer']&&clearTimeout(this[_0x5d1142(0xf5)]),await this[_0x5d1142(0xc4)][_0x5d1142(0xd5)](),setTimeout(()=>window[_0x5d1142(0x11b)][_0x5d1142(0x158)]()));});this[_0x416c49(0xf5)]=setTimeout(()=>{var _0x46f3c2=_0x416c49;_0x12b1be[_0x46f3c2(0xbc)](),this['_messageService'][_0x46f3c2(0x15c)]({'content':this['_localeService']['t'](_0x46f3c2(0x139)),'type':E[_0x46f3c2(0xd8)]['Error'],'duration':0xbb8});},0x1388);}}));}};function _0x15f2(_0x2945f0,_0x1ce4b4){var _0x561083=_0x5610();return _0x15f2=function(_0x15f2ce,_0x1d9eb9){_0x15f2ce=_0x15f2ce-0x6c;var _0x1d3e6f=_0x561083[_0x15f2ce];return _0x1d3e6f;},_0x15f2(_0x2945f0,_0x1ce4b4);}P=Ce([f(0x0,s[_0x74ab75(0xb4)]),f(0x1,g['IMenuManagerService']),f(0x2,s[_0x74ab75(0xe2)](g[_0x74ab75(0x116)])),f(0x3,s[_0x74ab75(0xe2)](exports[_0x74ab75(0x148)])),f(0x4,s[_0x74ab75(0xe2)](s[_0x74ab75(0x12d)])),f(0x5,g[_0x74ab75(0xbd)]),f(0x6,s[_0x74ab75(0xe2)](C[_0x74ab75(0xfe)])),f(0x7,s[_0x74ab75(0xe2)](C[_0x74ab75(0x115)]))],P);var Ie=Object[_0x74ab75(0x99)],Ue=Object[_0x74ab75(0x141)],Ee=(_0x8ed76d,_0x599f44,_0x19435f,_0x3bff65)=>{var _0x448d00=_0x74ab75;for(var _0x338b3d=_0x3bff65>0x1?void 0x0:_0x3bff65?Ue(_0x599f44,_0x19435f):_0x599f44,_0x567dff=_0x8ed76d[_0x448d00(0x104)]-0x1,_0x202360;_0x567dff>=0x0;_0x567dff--)(_0x202360=_0x8ed76d[_0x567dff])&&(_0x338b3d=(_0x3bff65?_0x202360(_0x599f44,_0x19435f,_0x338b3d):_0x202360(_0x338b3d))||_0x338b3d);return _0x3bff65&&_0x338b3d&&Ie(_0x599f44,_0x19435f,_0x338b3d),_0x338b3d;},H=(_0x57c2ab,_0x66d7a3)=>(_0x52f525,_0x2008f7)=>_0x66d7a3(_0x52f525,_0x2008f7,_0x57c2ab);const Pe='UNIVER_EDIT_HISTORY_LOADER_PLUGIN';var U;exports[_0x74ab75(0xa3)]=(U=class extends s[_0x74ab75(0xd0)]{constructor(_0x41f1ea=ae,_0x5a6952,_0x9b93a0){var _0x567495=_0x74ab75;super(),this[_0x567495(0xdf)]=_0x41f1ea,this[_0x567495(0xc7)]=_0x5a6952,this[_0x567495(0x81)]=_0x9b93a0;const {menu:_0x2e7a65,..._0x1d3a19}=this[_0x567495(0xdf)];_0x2e7a65&&this['_configService'][_0x567495(0x132)](_0x567495(0xc8),_0x2e7a65,{'merge':!0x0}),this[_0x567495(0x81)]['setConfig'](w,_0x1d3a19),this[_0x567495(0xdf)][_0x567495(0x129)]&&this[_0x567495(0x81)][_0x567495(0x132)](b,this[_0x567495(0xdf)][_0x567495(0x129)]);}['onStarting'](){var _0x2cc055=_0x74ab75;[[exports[_0x2cc055(0x148)]],[P]][_0x2cc055(0x101)](_0x221443=>this['_injector'][_0x2cc055(0xaa)](_0x221443));}[_0x74ab75(0x14b)](){var _0x4282a6=_0x74ab75;this[_0x4282a6(0xc7)][_0x4282a6(0xef)](P);}},S(U,_0x74ab75(0xc9),s[_0x74ab75(0x107)][_0x74ab75(0x102)]),S(U,_0x74ab75(0x113),Pe),U),exports[_0x74ab75(0xa3)]=Ee([H(0x1,s['Inject'](s[_0x74ab75(0x15d)])),H(0x2,s[_0x74ab75(0x92)])],exports[_0x74ab75(0xa3)]),exports[_0x74ab75(0x103)]=b,exports['UNIVER_HISTORY_CONTAINER_ID']=y;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x228491=_0x2a50;(function(_0x14f9e0,_0x2fd5d2){var _0x4d0c8d=_0x2a50,_0xe2ea89=_0x14f9e0();while(!![]){try{var _0x2b32be=parseInt(_0x4d0c8d(0x22e))/0x1+-parseInt(_0x4d0c8d(0x1ce))/0x2*(-parseInt(_0x4d0c8d(0x1fe))/0x3)+parseInt(_0x4d0c8d(0x229))/0x4+-parseInt(_0x4d0c8d(0x195))/0x5*(-parseInt(_0x4d0c8d(0x222))/0x6)+parseInt(_0x4d0c8d(0x1d8))/0x7+-parseInt(_0x4d0c8d(0x1d1))/0x8+-parseInt(_0x4d0c8d(0x19a))/0x9;if(_0x2b32be===_0x2fd5d2)break;else _0xe2ea89['push'](_0xe2ea89['shift']());}catch(_0x28396e){_0xe2ea89['push'](_0xe2ea89['shift']());}}}(_0x481a,0x533c7));var Y=Object[_0x228491(0x1b9)],B=(_0x485d1b,_0x2d31e9,_0x22fd23)=>_0x2d31e9 in _0x485d1b?Y(_0x485d1b,_0x2d31e9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x22fd23}):_0x485d1b[_0x2d31e9]=_0x22fd23,m=(_0x2b0ee8,_0x5ec18a,_0x19d146)=>B(_0x2b0ee8,typeof _0x5ec18a!='symbol'?_0x5ec18a+'':_0x5ec18a,_0x19d146);function _0x2a50(_0x543244,_0x5dd6ed){var _0x481abf=_0x481a();return _0x2a50=function(_0x2a50a9,_0x4ea543){_0x2a50a9=_0x2a50a9-0x18b;var _0x164acc=_0x481abf[_0x2a50a9];return _0x164acc;},_0x2a50(_0x543244,_0x5dd6ed);}import{Inject as _0x1754d9,LocaleService as _0x1d6065,Disposable as _0x281ba1,DisposableCollection as _0x40519f,Univer as _0x312841,IAuthzIoService as _0x175a4c,IConfigService as _0x5f0170,IUniverInstanceService as _0x3cb63c,ICommandService as _0x866ce4,IPermissionService as _0x38d747,CommandType as _0x586b34,UniverInstanceType as _0x2050e4,RxDisposable as _0x5c2536,toDisposable as _0x338777,Plugin as _0x58632a,Injector as _0x50822c}from'@univerjs/core';import{UniverDataValidationPlugin as _0x326f76}from'@univerjs/data-validation';import{greenTheme as _0x520604,MessageType as _0x5ae7b9}from'@univerjs/design';import{UniverDocsPlugin as _0x371c7f}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x576766}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0x43cae0,IImageIoService as _0x13593c}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x2c0ac3}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x4ad19b}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x29e8d0}from'@univerjs/engine-render';import{UniverRPCMainThreadPlugin as _0x4261dd}from'@univerjs/rpc';import{RangeProtectionRuleModel as _0x1c532e,UniverSheetsPlugin as _0x2bc293,WorkbookEditablePermission as _0x3fc3e5,WorksheetEditPermission as _0x355263,RangeProtectionPermissionEditPoint as _0x2a0131,WorkbookRecoverHistoryPermission as _0x4b31ac,getSheetCommandTarget as _0x30cc29,WorkbookViewHistoryPermission as _0x19c267}from'@univerjs/sheets';import{UniverSheetsConditionalFormattingPlugin as _0x354672}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x3534c2}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x50605f}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0x2e00d7}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x20248f}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x43d1fc}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x122c6c}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x3351b0}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x2f2ac0}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x37eee2}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x5aa5b8}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x2b0919}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x44b41c}from'@univerjs/sheets-numfmt';import{UniverSheetsUIPlugin as _0x297888,getCurrentRangeDisable$ as _0x417e7e}from'@univerjs/sheets-ui';import{IDialogService as _0x12ec88,ISidebarService as _0xa7d58c,UniverUIPlugin as _0x405e24,IMessageService as _0x5df467,MenuItemType as _0x1637d8,getMenuHiddenObservable as _0x35221f,RibbonStartGroup as _0x1ab324,ComponentManager as _0x1e66bb,IMenuManagerService as _0xa39f7f}from'@univerjs/ui';import{UniverCollaborationPlugin as _0x4a6710,RevertRevisionMutation as _0x185eb3,CollaborationEvent as _0x50197e}from'@univerjs-pro/collaboration';import{SNAPSHOT_SERVER_URL_KEY as _0x3bb9fe,CollaborationController as _0x3cb138,LocalCacheService as _0x534d34,CollaborationStatus as _0x5d6272}from'@univerjs-pro/collaboration-client';import{UniverEditHistoryViewerPlugin as _0x3e3b84,HistoryManagerService as _0x419226,HistoryModeStatus as _0xf32c49}from'@univerjs-pro/edit-history-viewer';import{UniverSheetsPivotTablePlugin as _0x4e7ae6}from'@univerjs-pro/sheets-pivot';import{combineLatest as _0x2a3253}from'rxjs';function _0x481a(){var _0x13a919=['_historyManagerService','101658NCwXsP','registerPlugin','fill','getConfig','display','_permissionService','setConfig','createElement','icon','defIds','toString','onCommandExecuted','_injector','event$','getLocales','replace','getOwnPropertyDescriptor','unMountHistoryContent','clear','Entered','\x20has\x20been\x20registered.','editHistory.panel.reverting','_config','pluginName','0\x200\x2016\x2016','getSubunitRuleList','univer-history-container','className','getOwnPropertySymbols','none','_selectionProtectionRuleModel','disposeWithMe','historyListServerUrl','_commandService','_messageService','setLocale','12MXlbLn','getCurrentLocale','status','mergeMenu','getCollabEntity','1em','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','2440776eUefIr','_configService','unsubscribe','call','_componentManager','516970nFwrOQ','_univerInstanceService','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','string','assign','_dialogService','forEach','executeCommand','_localCacheService','getUnit','top','current','__getInjector','register','873515amLAoT','_init','idSuffix','clipPath','_initPlugins','11325159wjnPuH','block','univer.operation.toggle-edit-history','style','getElementById','_checkCanRevert','type','./worker.js','zIndex','has','getSheets','setContainer','_revertErrorTimer','appendChild','invoke','get','add','_initListener','_sidebarService','revertRevision$','UNIVER_CONTAINER_ID','subscribe','CHANGESET_ACK','Loading','currentColor','[HistoryLoaderService]:\x20Plugin\x20','#fff','BUTTON','position','from','_pluginMap','defineProperty','_menuManagerService','_collaborationController','random','SYNCED','prototype','show','left','_initUniver','attrs','edit-history-loader.config','values','100%','_initContainer','Error','editHistory.panel.listFetchError','getAllPlugins','_initMessageService','length','displayName','status$','18fgKZDJ','UNIVER_UNKNOWN','path','4242392zbbjVR','extend','xlink:href','OTHERS','exhaustSavingTask','_localeService','indexOf','2436287cZjTxG','1000','history-single_clip0_907_281','url(#$1','dispose','set','onSteady','M0\x200H16V16H0z','svg','univerjs-icon\x20univerjs-icon-','div','absolute','concat','permissionId','_historyUniver','colorChannel1','editHistory.panel.revertFailed','children','getSheetId','apply','height','every','data','propertyIsEnumerable','HistorySingle','defs','tag','hasOwnProperty','onStarting','Exited','reload','univerContainerId','_disposableCollection','univer-container','OPERATION','map','menu'];_0x481a=function(){return _0x13a919;};return _0x481a();}import{forwardRef as _0x2ef87b,useRef as _0x1ca6f4,createElement as _0x35b55d}from'react';const j=_0x228491(0x1c3),qe={};var Je=Object[_0x228491(0x1b9)],Qe=Object[_0x228491(0x20e)],Xe=(_0xa5c625,_0x148f43,_0x347bca,_0x2007c9)=>{for(var _0x3abd0b=_0x2007c9>0x1?void 0x0:_0x2007c9?Qe(_0x148f43,_0x347bca):_0x148f43,_0x463337=_0xa5c625['length']-0x1,_0x4a7043;_0x463337>=0x0;_0x463337--)(_0x4a7043=_0xa5c625[_0x463337])&&(_0x3abd0b=(_0x2007c9?_0x4a7043(_0x148f43,_0x347bca,_0x3abd0b):_0x4a7043(_0x3abd0b))||_0x3abd0b);return _0x2007c9&&_0x3abd0b&&Je(_0x148f43,_0x347bca,_0x3abd0b),_0x3abd0b;},g=(_0x54e3f7,_0xa2505e)=>(_0x19d74a,_0x28ba00)=>_0xa2505e(_0x19d74a,_0x28ba00,_0x54e3f7);const ei=_0x228491(0x1f9),k=_0x228491(0x1ae),d=_0x228491(0x218);let f=class extends _0x281ba1{constructor(_0x4f3cf9,_0x3d4628,_0x56e4d0,_0x21e332,_0x3bd1b0,_0x4a3a39,_0x365b70,_0x2882a6,_0x4c6ec4){var _0x318ba9=_0x228491;super(),m(this,_0x318ba9(0x1e6),null),m(this,_0x318ba9(0x1f8),new _0x40519f()),m(this,_0x318ba9(0x1b8),new Map()),(this[_0x318ba9(0x1d6)]=_0x4f3cf9,this[_0x318ba9(0x22f)]=_0x3d4628,this[_0x318ba9(0x22a)]=_0x56e4d0,this['_commandService']=_0x21e332,this[_0x318ba9(0x220)]=_0x3bd1b0,this[_0x318ba9(0x203)]=_0x4a3a39,this[_0x318ba9(0x21c)]=_0x365b70,this['_dialogService']=_0x2882a6,this[_0x318ba9(0x1ac)]=_0x4c6ec4,this[_0x318ba9(0x196)]());}[_0x228491(0x196)](){var _0x115a0c=_0x228491;this[_0x115a0c(0x1c6)](),this[_0x115a0c(0x199)]();}[_0x228491(0x1c6)](){var _0x336162=_0x228491,_0x46f6d9;const _0x2b2637=(_0x46f6d9=this[_0x336162(0x22a)][_0x336162(0x201)](k))!=null?_0x46f6d9:ei,_0x2cb7ab=document['getElementById'](_0x2b2637);if(!_0x2cb7ab)return;const _0x15c7d7=document[_0x336162(0x205)](_0x336162(0x1e2));_0x15c7d7['id']=d,_0x15c7d7[_0x336162(0x19d)][_0x336162(0x1b6)]=_0x336162(0x1e3),_0x15c7d7[_0x336162(0x19d)][_0x336162(0x191)]='0',_0x15c7d7['style'][_0x336162(0x1c0)]='0',_0x15c7d7[_0x336162(0x19d)]['width']=_0x336162(0x1c5),_0x15c7d7[_0x336162(0x19d)][_0x336162(0x1ec)]='100%',_0x15c7d7[_0x336162(0x19d)][_0x336162(0x1a2)]=_0x336162(0x1d9),_0x15c7d7[_0x336162(0x19d)]['display']='none',_0x2cb7ab[_0x336162(0x1a7)](_0x15c7d7);}[_0x228491(0x199)](){var _0x3a66f9=_0x228491,_0x58be23;[[_0x29e8d0],[_0x405e24,{'container':d,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x12ec88,null]]}],[_0x43cae0,{'override':[[_0x13593c,null]]}],[_0x371c7f,{'hasScroll':!0x1}],[_0x576766],[_0x44b41c],[_0x2bc293,{'notExecuteFormula':!0x0}],[_0x297888],[_0x2f2ac0],[_0x37eee2],[_0x4a6710],[_0x122c6c],[_0x3351b0],[_0x354672],[_0x3534c2],[_0x5aa5b8],[_0x2b0919],[_0x326f76],[_0x50605f],[_0x2e00d7],[_0x4ad19b,{'notExecuteFormula':!0x0}],[_0x4261dd,{'workerURL':_0x3a66f9(0x1a1)}],[_0x2c0ac3],[_0x20248f],[_0x43d1fc],[_0x4e7ae6,{'notExecuteFormula':!0x0}],[_0x3e3b84,{'historyListServerUrl':(_0x58be23=this[_0x3a66f9(0x22a)][_0x3a66f9(0x201)](j))==null?void 0x0:_0x58be23[_0x3a66f9(0x21e)]}]][_0x3a66f9(0x18d)](([_0x5c982e,_0x2c5242])=>this['registerPlugin'](_0x5c982e,_0x2c5242));}[_0x228491(0x1dc)](){var _0x586695=_0x228491;super['dispose'](),this[_0x586695(0x20f)](),this[_0x586695(0x1b8)][_0x586695(0x210)]();}[_0x228491(0x1ff)](_0x5a6a36,_0x518e34,_0x5a630c){var _0x2ea0bf=_0x228491;if(this[_0x2ea0bf(0x1b8)][_0x2ea0bf(0x1a3)](_0x5a6a36[_0x2ea0bf(0x215)])&&!_0x5a630c)throw new Error(_0x2ea0bf(0x1b3)+_0x5a6a36['pluginName']+_0x2ea0bf(0x212));this[_0x2ea0bf(0x1b8)][_0x2ea0bf(0x1dd)](_0x5a6a36[_0x2ea0bf(0x215)],[_0x5a6a36,_0x518e34]);}[_0x228491(0x1c9)](){var _0x521a6a=_0x228491;return Array[_0x521a6a(0x1b7)](this[_0x521a6a(0x1b8)][_0x521a6a(0x1c4)]());}['mountHistoryContent'](_0x1ecdb3){var _0x58864c=_0x228491;const _0x1869b5=document[_0x58864c(0x19e)](d);_0x1869b5&&(_0x1869b5[_0x58864c(0x19d)][_0x58864c(0x202)]=_0x58864c(0x19b),this[_0x58864c(0x1c1)](_0x1ecdb3,d));}[_0x228491(0x20f)](){var _0x416206=_0x228491,_0x5d7bbc;this[_0x416206(0x1f8)][_0x416206(0x1dc)](),(_0x5d7bbc=this[_0x416206(0x1e6)])==null||_0x5d7bbc[_0x416206(0x1dc)](),this[_0x416206(0x1e6)]=null;const _0x43f770=document[_0x416206(0x19e)](d);_0x43f770&&(_0x43f770[_0x416206(0x19d)]['display']=_0x416206(0x21b));}[_0x228491(0x1c1)](_0x56b439,_0x3f8ba0){var _0x4ab736=_0x228491;if(this[_0x4ab736(0x1e6)])return;const _0xe0ea45=new _0x312841({'theme':_0x520604,'locales':{[this[_0x4ab736(0x1d6)][_0x4ab736(0x223)]()]:this[_0x4ab736(0x1d6)][_0x4ab736(0x20c)]()},'override':[[_0x175a4c,null]]});this[_0x4ab736(0x1e6)]=_0xe0ea45;const _0xce1bf8=_0xe0ea45[_0x4ab736(0x193)]();_0xce1bf8[_0x4ab736(0x1a9)](_0x1d6065)[_0x4ab736(0x221)](this['_localeService'][_0x4ab736(0x223)]()),_0xce1bf8['get'](_0x5f0170)[_0x4ab736(0x204)](_0x3bb9fe,this[_0x4ab736(0x22a)][_0x4ab736(0x201)](_0x3bb9fe)),this[_0x4ab736(0x1b8)][_0x4ab736(0x18d)](([_0x1ce3a9,_0x14d337])=>{var _0xe64009=_0x4ab736;_0xe0ea45[_0xe64009(0x1ff)](_0x1ce3a9,_0x14d337);}),_0xce1bf8[_0x4ab736(0x1a8)](_0x3bd374=>{var _0x2ac923=_0x4ab736;this['_initListener'](_0x3bd374,_0x56b439),this[_0x2ac923(0x1ca)](_0x3bd374,this['_messageService']);});const _0x1fb931=_0xce1bf8[_0x4ab736(0x1a9)](_0x419226),_0x4df119=this['_checkCanRevert'](_0x56b439);_0x1fb931['triggerLoadVersions'](_0x56b439,_0x3f8ba0,_0x4df119);}[_0x228491(0x1ab)](_0x3c5cbc,_0x469578){var _0x2afb54=_0x228491;const _0x48c179=_0x3c5cbc['get'](_0x419226);this[_0x2afb54(0x1f8)][_0x2afb54(0x1aa)](_0x48c179[_0x2afb54(0x1cd)][_0x2afb54(0x1af)](_0xfc3221=>{var _0x5e6d8b=_0x2afb54;switch(_0xfc3221){case _0xf32c49[_0x5e6d8b(0x211)]:this[_0x5e6d8b(0x18c)]['closeAll'](),this['_sidebarService']['close']();break;case _0xf32c49[_0x5e6d8b(0x1f5)]:this[_0x5e6d8b(0x20f)]();break;case _0xf32c49[_0x5e6d8b(0x1c7)]:this[_0x5e6d8b(0x20f)](),this[_0x5e6d8b(0x220)]['show']({'content':this[_0x5e6d8b(0x1d6)]['t'](_0x5e6d8b(0x1c8)),'type':_0x5ae7b9[_0x5e6d8b(0x1c7)],'duration':0xbb8});break;}})),this[_0x2afb54(0x1f8)][_0x2afb54(0x1aa)](_0x48c179[_0x2afb54(0x1ad)][_0x2afb54(0x1af)](async _0x4b2a9b=>{var _0x152c14=_0x2afb54;_0x4b2a9b&&this['_commandService'][_0x152c14(0x18e)](_0x185eb3['id'],{'unitId':_0x469578,'revision':_0x4b2a9b});}));}[_0x228491(0x1ca)](_0x29e904,_0x2d768f){var _0x4a0d2f=_0x228491;const _0xdbc120=_0x29e904[_0x4a0d2f(0x1a9)](_0x5df467),_0x44c3fa=_0x2d768f['getContainer']();_0x44c3fa&&_0xdbc120[_0x4a0d2f(0x1a5)](_0x44c3fa);}[_0x228491(0x19f)](_0x5b466d){var _0x595522=_0x228491;const _0x4b8f23=this[_0x595522(0x22f)][_0x595522(0x190)](_0x5b466d)[_0x595522(0x1a4)]()[_0x595522(0x1fb)](_0x8f0e16=>_0x8f0e16[_0x595522(0x1ea)]()),_0x1ae3b7=new _0x3fc3e5(_0x5b466d)['id'],_0x50de5a=_0x4b8f23[_0x595522(0x1fb)](_0x4056a3=>new _0x355263(_0x5b466d,_0x4056a3)['id']),_0x5959eb=_0x4b8f23[_0x595522(0x1fb)](_0x423365=>this[_0x595522(0x21c)][_0x595522(0x217)](_0x5b466d,_0x423365)[_0x595522(0x1fb)](_0x498fd6=>new _0x2a0131(_0x5b466d,_0x423365,_0x498fd6[_0x595522(0x1e5)])['id']))['flat'](),_0x1a353b=new _0x4b31ac(_0x5b466d)['id'];return this['_permissionService']['composePermission']([_0x1ae3b7,..._0x50de5a,..._0x5959eb,_0x1a353b])[_0x595522(0x1ed)](_0x5215f1=>!!_0x5215f1['value']);}};f=Xe([g(0x0,_0x1754d9(_0x1d6065)),g(0x1,_0x3cb63c),g(0x2,_0x5f0170),g(0x3,_0x866ce4),g(0x4,_0x5df467),g(0x5,_0x38d747),g(0x6,_0x1754d9(_0x1c532e)),g(0x7,_0x1754d9(_0x12ec88)),g(0x8,_0x1754d9(_0xa7d58c))],f);var l=function(){var _0x303ecd=_0x228491;return l=Object[_0x303ecd(0x18b)]||function(_0x4c061b){var _0x172f0d=_0x303ecd;for(var _0x2c29d8,_0x5af8ed=0x1,_0x362b47=arguments['length'];_0x5af8ed<_0x362b47;_0x5af8ed++){_0x2c29d8=arguments[_0x5af8ed];for(var _0x39074b in _0x2c29d8)Object[_0x172f0d(0x1be)]['hasOwnProperty'][_0x172f0d(0x22c)](_0x2c29d8,_0x39074b)&&(_0x4c061b[_0x39074b]=_0x2c29d8[_0x39074b]);}return _0x4c061b;},l[_0x303ecd(0x1eb)](this,arguments);},ii=function(_0x2c019e,_0x1aac93){var _0x2aa176=_0x228491,_0x4a6161={};for(var _0x864fa6 in _0x2c019e)Object[_0x2aa176(0x1be)][_0x2aa176(0x1f3)][_0x2aa176(0x22c)](_0x2c019e,_0x864fa6)&&_0x1aac93[_0x2aa176(0x1d7)](_0x864fa6)<0x0&&(_0x4a6161[_0x864fa6]=_0x2c019e[_0x864fa6]);if(_0x2c019e!=null&&typeof Object[_0x2aa176(0x21a)]=='function'){for(var _0x57879b=0x0,_0x864fa6=Object[_0x2aa176(0x21a)](_0x2c019e);_0x57879b<_0x864fa6[_0x2aa176(0x1cb)];_0x57879b++)_0x1aac93[_0x2aa176(0x1d7)](_0x864fa6[_0x57879b])<0x0&&Object[_0x2aa176(0x1be)][_0x2aa176(0x1ef)][_0x2aa176(0x22c)](_0x2c019e,_0x864fa6[_0x57879b])&&(_0x4a6161[_0x864fa6[_0x57879b]]=_0x2c019e[_0x864fa6[_0x57879b]]);}return _0x4a6161;},A=_0x2ef87b(function(_0x20649c,_0x5278c8){var _0x233dfa=_0x228491,_0x3d34fb=_0x20649c[_0x233dfa(0x206)],_0x5bbfda=_0x20649c['id'],_0x510407=_0x20649c[_0x233dfa(0x219)],_0x2fdb3b=_0x20649c[_0x233dfa(0x1d2)],_0x357dfa=ii(_0x20649c,[_0x233dfa(0x206),'id',_0x233dfa(0x219),_0x233dfa(0x1d2)]),_0x4f3e78=_0x233dfa(0x1e1)[_0x233dfa(0x1e4)](_0x5bbfda,'\x20')['concat'](_0x510407||'')['trim'](),_0x467e36=_0x1ca6f4('_'[_0x233dfa(0x1e4)](ni()));return V(_0x3d34fb,''[_0x233dfa(0x1e4)](_0x5bbfda),{'defIds':_0x3d34fb[_0x233dfa(0x207)],'idSuffix':_0x467e36[_0x233dfa(0x192)]},l({'ref':_0x5278c8,'className':_0x4f3e78},_0x357dfa),_0x2fdb3b);});function V(_0x115266,_0x5d545c,_0x113bb4,_0x53db03,_0x474c66){var _0x512805=_0x228491;return _0x35b55d(_0x115266[_0x512805(0x1f2)],l(l({'key':_0x5d545c},ti(_0x115266,_0x113bb4,_0x474c66)),_0x53db03),(ri(_0x115266,_0x113bb4)[_0x512805(0x1e9)]||[])['map'](function(_0x5d3d5a,_0x5956d5){var _0x546e02=_0x512805;return V(_0x5d3d5a,''[_0x546e02(0x1e4)](_0x5d545c,'-')[_0x546e02(0x1e4)](_0x115266[_0x546e02(0x1f2)],'-')[_0x546e02(0x1e4)](_0x5956d5),_0x113bb4,void 0x0,_0x474c66);}));}function ti(_0x5c0735,_0x360c22,_0x5f2b5e){var _0x367e05=_0x228491,_0x34e012=l({},_0x5c0735[_0x367e05(0x1c2)]);_0x5f2b5e!=null&&_0x5f2b5e['colorChannel1']&&_0x34e012[_0x367e05(0x200)]===_0x367e05(0x1e7)&&(_0x34e012[_0x367e05(0x200)]=_0x5f2b5e[_0x367e05(0x1e7)]);var _0x9d1a30=_0x360c22[_0x367e05(0x207)];return!_0x9d1a30||_0x9d1a30[_0x367e05(0x1cb)]===0x0||(_0x5c0735[_0x367e05(0x1f2)]==='use'&&_0x34e012[_0x367e05(0x1d3)]&&(_0x34e012['xlink:href']=_0x34e012[_0x367e05(0x1d3)]+_0x360c22['idSuffix']),Object['entries'](_0x34e012)[_0x367e05(0x18d)](function(_0x121501){var _0xc2e6a=_0x367e05,_0x2d1ede=_0x121501[0x0],_0x15ceeb=_0x121501[0x1];typeof _0x15ceeb=='string'&&(_0x34e012[_0x2d1ede]=_0x15ceeb[_0xc2e6a(0x20d)](/url\(#(.*)\)/,_0xc2e6a(0x1db)['concat'](_0x360c22[_0xc2e6a(0x197)],')')));})),_0x34e012;}function ri(_0x4d5bae,_0x1568c9){var _0x2acaa7=_0x228491,_0x5201d1,_0x2b1711=_0x1568c9[_0x2acaa7(0x207)];return!_0x2b1711||_0x2b1711[_0x2acaa7(0x1cb)]===0x0?_0x4d5bae:_0x4d5bae[_0x2acaa7(0x1f2)]===_0x2acaa7(0x1f1)&&(!((_0x5201d1=_0x4d5bae[_0x2acaa7(0x1e9)])===null||_0x5201d1===void 0x0)&&_0x5201d1[_0x2acaa7(0x1cb)])?l(l({},_0x4d5bae),{'children':_0x4d5bae['children']['map'](function(_0x1ce680){var _0x229fa2=_0x2acaa7;return typeof _0x1ce680[_0x229fa2(0x1c2)]['id']==_0x229fa2(0x231)&&_0x2b1711&&_0x2b1711[_0x229fa2(0x1d7)](_0x1ce680[_0x229fa2(0x1c2)]['id'])>-0x1?l(l({},_0x1ce680),{'attrs':l(l({},_0x1ce680[_0x229fa2(0x1c2)]),{'id':_0x1ce680[_0x229fa2(0x1c2)]['id']+_0x1568c9[_0x229fa2(0x197)]})}):_0x1ce680;})}):_0x4d5bae;}function ni(){var _0x5df3b2=_0x228491;return Math[_0x5df3b2(0x1bc)]()[_0x5df3b2(0x208)](0x24)['substring'](0x2,0x8);}A[_0x228491(0x1cc)]='UniverIcon';var oi={'tag':_0x228491(0x1e0),'attrs':{'fill':_0x228491(0x21b),'viewBox':_0x228491(0x216),'width':_0x228491(0x227),'height':'1em'},'children':[{'tag':'g','attrs':{'fill':_0x228491(0x1b2),'clipPath':'url(#history-single_clip0_907_281)'},'children':[{'tag':_0x228491(0x1d0),'attrs':{'d':_0x228491(0x228)}},{'tag':'path','attrs':{'d':'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'}}]},{'tag':_0x228491(0x1f1),'attrs':{},'children':[{'tag':_0x228491(0x198),'attrs':{'id':_0x228491(0x1da)},'children':[{'tag':_0x228491(0x1d0),'attrs':{'fill':_0x228491(0x1b4),'d':_0x228491(0x1df)}}]}]}],'defIds':[_0x228491(0x1da)]},$=_0x2ef87b(function(_0x3d8558,_0x3aa9c3){var _0x310500=_0x228491;return _0x35b55d(A,Object[_0x310500(0x18b)]({},_0x3d8558,{'id':'history-single','ref':_0x3aa9c3,'icon':oi}));});$[_0x228491(0x1cc)]=_0x228491(0x1f0);const E={'id':_0x228491(0x19c),'type':_0x586b34[_0x228491(0x1fa)],'handler':_0x5430f0=>{var _0x451e4e=_0x228491;const _0x4cbf42=_0x5430f0[_0x451e4e(0x1a9)](f),_0x93dba1=_0x5430f0[_0x451e4e(0x1a9)](_0x3cb63c),{unitId:_0xd8ca18}=_0x30cc29(_0x93dba1)||{};return _0xd8ca18?(_0x4cbf42['mountHistoryContent'](_0xd8ca18),!0x0):!0x1;}},F=_0x228491(0x1f0);function si(_0x42eb25){var _0x43ee76=_0x228491;return{'id':E['id'],'type':_0x1637d8[_0x43ee76(0x1b5)],'icon':F,'tooltip':'editHistory.panel.title','hidden$':_0x35221f(_0x42eb25,_0x2050e4['UNIVER_SHEET']),'disabled$':_0x417e7e(_0x42eb25,{'workbookTypes':[_0x3fc3e5,_0x19c267],'worksheetTypes':[],'rangeTypes':[]})};}const ai={[_0x1ab324[_0x228491(0x1d4)]]:{[E['id']]:{'order':0x0,'menuItemFactory':si}}};var ci=Object[_0x228491(0x1b9)],li=Object[_0x228491(0x20e)],ui=(_0x44d49a,_0x3056d2,_0x4d8075,_0x53e8aa)=>{var _0x41d1b1=_0x228491;for(var _0x304767=_0x53e8aa>0x1?void 0x0:_0x53e8aa?li(_0x3056d2,_0x4d8075):_0x3056d2,_0x4c6d85=_0x44d49a[_0x41d1b1(0x1cb)]-0x1,_0x13f825;_0x4c6d85>=0x0;_0x4c6d85--)(_0x13f825=_0x44d49a[_0x4c6d85])&&(_0x304767=(_0x53e8aa?_0x13f825(_0x3056d2,_0x4d8075,_0x304767):_0x13f825(_0x304767))||_0x304767);return _0x53e8aa&&_0x304767&&ci(_0x3056d2,_0x4d8075,_0x304767),_0x304767;},h=(_0x2ccca0,_0x2ba4e5)=>(_0x760dc2,_0x353270)=>_0x2ba4e5(_0x760dc2,_0x353270,_0x2ccca0);let p=class extends _0x5c2536{constructor(_0x46db1b,_0x7acca,_0x2186c2,_0x487178,_0x62ef01,_0x392cc3,_0x28e179,_0x4cfa0a){var _0x5d69a5=_0x228491;super(),m(this,_0x5d69a5(0x1a6),null),(this['_commandService']=_0x46db1b,this['_menuManagerService']=_0x7acca,this['_componentManager']=_0x2186c2,this[_0x5d69a5(0x1fd)]=_0x487178,this[_0x5d69a5(0x1d6)]=_0x62ef01,this[_0x5d69a5(0x220)]=_0x392cc3,this['_collaborationController']=_0x28e179,this[_0x5d69a5(0x18f)]=_0x4cfa0a,this[_0x5d69a5(0x196)]());}[_0x228491(0x196)](){var _0x3009e1=_0x228491;[E][_0x3009e1(0x18d)](_0x29f2c7=>this[_0x3009e1(0x21d)](_0x338777(this[_0x3009e1(0x21f)]['registerCommand'](_0x29f2c7)))),this['disposeWithMe'](this[_0x3009e1(0x22d)][_0x3009e1(0x194)](F,$)),this[_0x3009e1(0x1ba)][_0x3009e1(0x225)](ai),this[_0x3009e1(0x21d)](this[_0x3009e1(0x21f)][_0x3009e1(0x209)](_0x2c7991=>{var _0x291b4f=_0x3009e1;if(_0x2c7991['id']===_0x185eb3['id']){this[_0x291b4f(0x220)][_0x291b4f(0x1bf)]({'content':this[_0x291b4f(0x1d6)]['t'](_0x291b4f(0x213)),'type':_0x5ae7b9[_0x291b4f(0x1b1)],'duration':0x1388});const {unitId:_0x18283a}=_0x2c7991['params'],_0x19511a=this[_0x291b4f(0x1bb)][_0x291b4f(0x226)](_0x18283a),_0x3cd981=_0x2a3253([_0x19511a['session'][_0x291b4f(0x20b)],_0x19511a['state$']])[_0x291b4f(0x1af)](async([_0x513a16,_0xff8236])=>{var _0x29d34f=_0x291b4f;_0x513a16['eventID']===_0x50197e[_0x29d34f(0x1b0)]&&(_0xff8236==null?void 0x0:_0xff8236[_0x29d34f(0x224)])===_0x5d6272[_0x29d34f(0x1bd)]&&_0x513a16[_0x29d34f(0x1ee)]['mutations']['some'](_0x5878d8=>_0x5878d8['id']===_0x185eb3['id'])&&(this['_historyManagerService'][_0x29d34f(0x20f)](),_0x3cd981[_0x29d34f(0x22b)](),this[_0x29d34f(0x1a6)]&&clearTimeout(this['_revertErrorTimer']),await this[_0x29d34f(0x18f)][_0x29d34f(0x1d5)](),setTimeout(()=>window['location'][_0x29d34f(0x1f6)]()));});this['_revertErrorTimer']=setTimeout(()=>{var _0x1cfefb=_0x291b4f;_0x3cd981['unsubscribe'](),this[_0x1cfefb(0x220)][_0x1cfefb(0x1bf)]({'content':this['_localeService']['t'](_0x1cfefb(0x1e8)),'type':_0x5ae7b9[_0x1cfefb(0x1c7)],'duration':0xbb8});},0x1388);}}));}};p=ui([h(0x0,_0x866ce4),h(0x1,_0xa39f7f),h(0x2,_0x1754d9(_0x1e66bb)),h(0x3,_0x1754d9(f)),h(0x4,_0x1754d9(_0x1d6065)),h(0x5,_0x5df467),h(0x6,_0x1754d9(_0x3cb138)),h(0x7,_0x1754d9(_0x534d34))],p);var gi=Object[_0x228491(0x1b9)],vi=Object[_0x228491(0x20e)],hi=(_0x275507,_0x5a2adc,_0x412799,_0x42fee0)=>{for(var _0x76707c=_0x42fee0>0x1?void 0x0:_0x42fee0?vi(_0x5a2adc,_0x412799):_0x5a2adc,_0x163a25=_0x275507['length']-0x1,_0x506d0d;_0x163a25>=0x0;_0x163a25--)(_0x506d0d=_0x275507[_0x163a25])&&(_0x76707c=(_0x42fee0?_0x506d0d(_0x5a2adc,_0x412799,_0x76707c):_0x506d0d(_0x76707c))||_0x76707c);return _0x42fee0&&_0x76707c&&gi(_0x5a2adc,_0x412799,_0x76707c),_0x76707c;},O=(_0x269111,_0x1d6ffb)=>(_0x4cf329,_0x55b4e7)=>_0x1d6ffb(_0x4cf329,_0x55b4e7,_0x269111);const mi=_0x228491(0x230);var _;let R=(_=class extends _0x58632a{constructor(_0x1de2cd=qe,_0x39e691,_0x3b072a){var _0x4a2cc0=_0x228491;super(),this[_0x4a2cc0(0x214)]=_0x1de2cd,this['_injector']=_0x39e691,this[_0x4a2cc0(0x22a)]=_0x3b072a;const {menu:_0xa01328,..._0x5aab65}=this[_0x4a2cc0(0x214)];_0xa01328&&this['_configService']['setConfig'](_0x4a2cc0(0x1fc),_0xa01328,{'merge':!0x0}),this[_0x4a2cc0(0x22a)][_0x4a2cc0(0x204)](j,_0x5aab65),this[_0x4a2cc0(0x214)][_0x4a2cc0(0x1f7)]&&this[_0x4a2cc0(0x22a)][_0x4a2cc0(0x204)](k,this[_0x4a2cc0(0x214)][_0x4a2cc0(0x1f7)]);}[_0x228491(0x1f4)](){var _0x54ec69=_0x228491;[[f],[p]]['forEach'](_0x6a9267=>this[_0x54ec69(0x20a)][_0x54ec69(0x1aa)](_0x6a9267));}[_0x228491(0x1de)](){var _0x326869=_0x228491;this['_injector'][_0x326869(0x1a9)](p);}},m(_,_0x228491(0x1a0),_0x2050e4[_0x228491(0x1cf)]),m(_,_0x228491(0x215),mi),_);R=hi([O(0x1,_0x1754d9(_0x50822c)),O(0x2,_0x5f0170)],R);export{f as HistoryLoaderService,k as UNIVER_CONTAINER_ID_KEY,d as UNIVER_HISTORY_CONTAINER_ID,R as UniverEditHistoryLoaderPlugin};
|
|
1
|
+
var _0x23c015=_0x1831;(function(_0x1814f2,_0x16e0ef){var _0x4c8dc3=_0x1831,_0x4ab5a4=_0x1814f2();while(!![]){try{var _0x2d93c5=-parseInt(_0x4c8dc3(0x21c))/0x1+-parseInt(_0x4c8dc3(0x1b7))/0x2+-parseInt(_0x4c8dc3(0x223))/0x3*(-parseInt(_0x4c8dc3(0x1ce))/0x4)+-parseInt(_0x4c8dc3(0x1be))/0x5*(parseInt(_0x4c8dc3(0x1c3))/0x6)+-parseInt(_0x4c8dc3(0x1de))/0x7+parseInt(_0x4c8dc3(0x1b0))/0x8+parseInt(_0x4c8dc3(0x215))/0x9;if(_0x2d93c5===_0x16e0ef)break;else _0x4ab5a4['push'](_0x4ab5a4['shift']());}catch(_0x373708){_0x4ab5a4['push'](_0x4ab5a4['shift']());}}}(_0x58cf,0x2c222));var Y=Object[_0x23c015(0x241)],B=(_0x1a8cca,_0xa4403a,_0x1080c6)=>_0xa4403a in _0x1a8cca?Y(_0x1a8cca,_0xa4403a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1080c6}):_0x1a8cca[_0xa4403a]=_0x1080c6,m=(_0xcc37d3,_0x16dab5,_0x2c23b1)=>B(_0xcc37d3,typeof _0x16dab5!='symbol'?_0x16dab5+'':_0x16dab5,_0x2c23b1);import{Inject as _0x4c4713,LocaleService as _0x368f66,Disposable as _0x1ee7b6,DisposableCollection as _0x2d1bcf,Univer as _0x4c6d1a,IAuthzIoService as _0x329f03,IConfigService as _0x428ea4,IUniverInstanceService as _0x40f863,ICommandService as _0x4e72cd,IPermissionService as _0x1c0e42,CommandType as _0x573bd0,UniverInstanceType as _0x5989b3,RxDisposable as _0x9f06db,toDisposable as _0x2bd064,Plugin as _0x1be44e,Injector as _0x5774bf}from'@univerjs/core';import{UniverDataValidationPlugin as _0x328717}from'@univerjs/data-validation';import{greenTheme as _0x311a2d,MessageType as _0x27176e}from'@univerjs/design';import{UniverDocsPlugin as _0x22717c}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x19a902}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0x3627de,IImageIoService as _0x50cfc7}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x554c16}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x4ce4df}from'@univerjs/engine-formula';function _0x1831(_0xfe48f2,_0x83c436){var _0x58cf8f=_0x58cf();return _0x1831=function(_0x18317d,_0x4599c2){_0x18317d=_0x18317d-0x199;var _0x573977=_0x58cf8f[_0x18317d];return _0x573977;},_0x1831(_0xfe48f2,_0x83c436);}import{UniverRenderEnginePlugin as _0xfea9a1}from'@univerjs/engine-render';import{UniverRPCMainThreadPlugin as _0x5891b5}from'@univerjs/rpc';import{RangeProtectionRuleModel as _0x528f6c,UniverSheetsPlugin as _0x2eb946,WorkbookEditablePermission as _0x37159a,WorksheetEditPermission as _0xa23732,RangeProtectionPermissionEditPoint as _0x5bfe62,WorkbookRecoverHistoryPermission as _0x100c5a,getSheetCommandTarget as _0x49a403,WorkbookViewHistoryPermission as _0x4114ac}from'@univerjs/sheets';import{UniverSheetsConditionalFormattingPlugin as _0x147aef}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x41d3e9}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x66cf9b}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0x4ab9f7}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x30cdb1}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x1ebf17}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x12d402}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x10d030}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x239de2}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x3254db}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x5ad34c}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x3c778c}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x16c610}from'@univerjs/sheets-numfmt';import{UniverSheetsUIPlugin as _0x10bdb3,getCurrentRangeDisable$ as _0x323036}from'@univerjs/sheets-ui';import{IDialogService as _0x3664c3,ISidebarService as _0xe35f3,UniverUIPlugin as _0x21f20a,IMessageService as _0x1eb25c,MenuItemType as _0x387d64,getMenuHiddenObservable as _0x315ac6,RibbonStartGroup as _0x3c12c3,ComponentManager as _0x98c99f,IMenuManagerService as _0x220616}from'@univerjs/ui';import{UniverCollaborationPlugin as _0x3f3c2b,RevertRevisionMutation as _0x4adb36,CollaborationEvent as _0x10c109}from'@univerjs-pro/collaboration';import{SNAPSHOT_SERVER_URL_KEY as _0x3cc041,CollaborationController as _0x1ca80b,LocalCacheService as _0x54bc31,CollaborationStatus as _0x151ef8}from'@univerjs-pro/collaboration-client';import{UniverEditHistoryViewerPlugin as _0x5cfd1,HistoryManagerService as _0x414090,HistoryModeStatus as _0x4b2473}from'@univerjs-pro/edit-history-viewer';import{UniverSheetsPivotTablePlugin as _0x2fe66c}from'@univerjs-pro/sheets-pivot';import{combineLatest as _0x32f07b}from'rxjs';import{forwardRef as _0x174d2d,useRef as _0x27c24f,createElement as _0x5aa372}from'react';const j=_0x23c015(0x1b8),qe={};var Je=Object['defineProperty'],Qe=Object[_0x23c015(0x1d6)],Xe=(_0x388199,_0x53c985,_0x215466,_0x2a8c1e)=>{var _0x4cf5d5=_0x23c015;for(var _0x32bb81=_0x2a8c1e>0x1?void 0x0:_0x2a8c1e?Qe(_0x53c985,_0x215466):_0x53c985,_0x1d259d=_0x388199[_0x4cf5d5(0x22f)]-0x1,_0x2d7458;_0x1d259d>=0x0;_0x1d259d--)(_0x2d7458=_0x388199[_0x1d259d])&&(_0x32bb81=(_0x2a8c1e?_0x2d7458(_0x53c985,_0x215466,_0x32bb81):_0x2d7458(_0x32bb81))||_0x32bb81);return _0x2a8c1e&&_0x32bb81&&Je(_0x53c985,_0x215466,_0x32bb81),_0x32bb81;},g=(_0x34becc,_0x152870)=>(_0x230320,_0x12e254)=>_0x152870(_0x230320,_0x12e254,_0x34becc);const ei=_0x23c015(0x20b),k=_0x23c015(0x202),d=_0x23c015(0x23c);let f=class extends _0x1ee7b6{constructor(_0x117c67,_0x37feb3,_0x2a5d97,_0x4f6cdd,_0x477588,_0x4d2e0e,_0x2e3ef4,_0x5180d0,_0x27eac0){var _0x50295e=_0x23c015;super(),m(this,_0x50295e(0x204),null),m(this,_0x50295e(0x1d5),new _0x2d1bcf()),m(this,_0x50295e(0x1d1),new Map()),(this[_0x50295e(0x1cd)]=_0x117c67,this[_0x50295e(0x1fc)]=_0x37feb3,this[_0x50295e(0x236)]=_0x2a5d97,this['_commandService']=_0x4f6cdd,this[_0x50295e(0x1a7)]=_0x477588,this[_0x50295e(0x22d)]=_0x4d2e0e,this[_0x50295e(0x230)]=_0x2e3ef4,this[_0x50295e(0x1ad)]=_0x5180d0,this[_0x50295e(0x1f7)]=_0x27eac0,this[_0x50295e(0x1fa)]());}[_0x23c015(0x1fa)](){var _0x13d97c=_0x23c015;this['_initContainer'](),this[_0x13d97c(0x21e)]();}[_0x23c015(0x220)](){var _0x5301ba=_0x23c015,_0x5634b7;const _0x274cce=(_0x5634b7=this[_0x5301ba(0x236)][_0x5301ba(0x1d8)](k))!=null?_0x5634b7:ei,_0x2437a4=document[_0x5301ba(0x1b6)](_0x274cce);if(!_0x2437a4)return;const _0x3efb88=document['createElement'](_0x5301ba(0x20c));_0x3efb88['id']=d,_0x3efb88[_0x5301ba(0x1a9)]['position']='absolute',_0x3efb88[_0x5301ba(0x1a9)][_0x5301ba(0x20d)]='0',_0x3efb88[_0x5301ba(0x1a9)][_0x5301ba(0x1aa)]='0',_0x3efb88[_0x5301ba(0x1a9)]['width']=_0x5301ba(0x1ae),_0x3efb88['style'][_0x5301ba(0x23b)]='100%',_0x3efb88['style'][_0x5301ba(0x239)]=_0x5301ba(0x1bc),_0x3efb88['style']['display']='none',_0x2437a4[_0x5301ba(0x1e9)](_0x3efb88);}[_0x23c015(0x21e)](){var _0x79b5fe=_0x23c015,_0x2accd3;[[_0xfea9a1],[_0x21f20a,{'container':d,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x3664c3,null]]}],[_0x3627de,{'override':[[_0x50cfc7,null]]}],[_0x22717c,{'hasScroll':!0x1}],[_0x19a902],[_0x16c610],[_0x2eb946,{'notExecuteFormula':!0x0}],[_0x10bdb3],[_0x239de2],[_0x3254db],[_0x3f3c2b],[_0x12d402],[_0x10d030],[_0x147aef],[_0x41d3e9],[_0x5ad34c],[_0x3c778c],[_0x328717],[_0x66cf9b],[_0x4ab9f7],[_0x4ce4df,{'notExecuteFormula':!0x0}],[_0x5891b5,{'workerURL':_0x79b5fe(0x21b)}],[_0x554c16],[_0x30cdb1],[_0x1ebf17],[_0x2fe66c,{'notExecuteFormula':!0x0}],[_0x5cfd1,{'historyListServerUrl':(_0x2accd3=this[_0x79b5fe(0x236)][_0x79b5fe(0x1d8)](j))==null?void 0x0:_0x2accd3['historyListServerUrl']}]]['forEach'](([_0x6f50c0,_0x1bf08c])=>this[_0x79b5fe(0x225)](_0x6f50c0,_0x1bf08c));}['dispose'](){var _0x511249=_0x23c015;super[_0x511249(0x205)](),this[_0x511249(0x1e8)](),this['_pluginMap']['clear']();}[_0x23c015(0x225)](_0x55e0a9,_0x1de8dc,_0x4c88f5){var _0x41082c=_0x23c015;if(this[_0x41082c(0x1d1)][_0x41082c(0x1a5)](_0x55e0a9['pluginName'])&&!_0x4c88f5)throw new Error(_0x41082c(0x1a4)+_0x55e0a9['pluginName']+'\x20has\x20been\x20registered.');this[_0x41082c(0x1d1)]['set'](_0x55e0a9[_0x41082c(0x22e)],[_0x55e0a9,_0x1de8dc]);}['getAllPlugins'](){var _0x22ab38=_0x23c015;return Array[_0x22ab38(0x1dc)](this[_0x22ab38(0x1d1)][_0x22ab38(0x1a6)]());}['mountHistoryContent'](_0x54d9a9){var _0xb724cb=_0x23c015;const _0x32eb7d=document[_0xb724cb(0x1b6)](d);_0x32eb7d&&(_0x32eb7d[_0xb724cb(0x1a9)][_0xb724cb(0x212)]=_0xb724cb(0x21f),this[_0xb724cb(0x19b)](_0x54d9a9,d));}[_0x23c015(0x1e8)](){var _0x5b561c=_0x23c015,_0x3fdff2;this[_0x5b561c(0x1d5)][_0x5b561c(0x205)](),(_0x3fdff2=this[_0x5b561c(0x204)])==null||_0x3fdff2['dispose'](),this[_0x5b561c(0x204)]=null;const _0x4a2033=document['getElementById'](d);_0x4a2033&&(_0x4a2033['style'][_0x5b561c(0x212)]=_0x5b561c(0x200));}[_0x23c015(0x19b)](_0x5ae076,_0x476ccc){var _0x49c68a=_0x23c015;if(this[_0x49c68a(0x204)])return;const _0x1f783d=new _0x4c6d1a({'theme':_0x311a2d,'locales':{[this['_localeService'][_0x49c68a(0x222)]()]:this['_localeService'][_0x49c68a(0x1b9)]()},'override':[[_0x329f03,null]]});this[_0x49c68a(0x204)]=_0x1f783d;const _0x55c05e=_0x1f783d[_0x49c68a(0x221)]();_0x55c05e[_0x49c68a(0x19a)](_0x368f66)[_0x49c68a(0x199)](this[_0x49c68a(0x1cd)][_0x49c68a(0x222)]()),_0x55c05e[_0x49c68a(0x19a)](_0x428ea4)['setConfig'](_0x3cc041,this['_configService']['getConfig'](_0x3cc041)),this[_0x49c68a(0x1d1)][_0x49c68a(0x19d)](([_0x278619,_0x55ebbe])=>{var _0x5e8d59=_0x49c68a;_0x1f783d[_0x5e8d59(0x225)](_0x278619,_0x55ebbe);}),_0x55c05e[_0x49c68a(0x1e0)](_0x47cb5c=>{var _0x3a0ee3=_0x49c68a;this[_0x3a0ee3(0x217)](_0x47cb5c,_0x5ae076),this['_initMessageService'](_0x47cb5c,this[_0x3a0ee3(0x1a7)]);});const _0x1b7c53=_0x55c05e[_0x49c68a(0x19a)](_0x414090),_0x1457ca=this[_0x49c68a(0x219)](_0x5ae076);_0x1b7c53[_0x49c68a(0x229)](_0x5ae076,_0x476ccc,_0x1457ca);}[_0x23c015(0x217)](_0xcc0d80,_0x55e476){var _0x3ea064=_0x23c015;const _0x33fc2f=_0xcc0d80[_0x3ea064(0x19a)](_0x414090);this['_disposableCollection']['add'](_0x33fc2f['status$']['subscribe'](_0x2df617=>{var _0x4d4bde=_0x3ea064;switch(_0x2df617){case _0x4b2473['Entered']:this[_0x4d4bde(0x1ad)][_0x4d4bde(0x203)](),this[_0x4d4bde(0x1f7)][_0x4d4bde(0x20a)]();break;case _0x4b2473[_0x4d4bde(0x1ed)]:this[_0x4d4bde(0x1e8)]();break;case _0x4b2473[_0x4d4bde(0x1e1)]:this['unMountHistoryContent'](),this[_0x4d4bde(0x1a7)]['show']({'content':this[_0x4d4bde(0x1cd)]['t'](_0x4d4bde(0x211)),'type':_0x27176e[_0x4d4bde(0x1e1)],'duration':0xbb8});break;}})),this[_0x3ea064(0x1d5)]['add'](_0x33fc2f[_0x3ea064(0x1c6)][_0x3ea064(0x228)](async _0x12c46d=>{var _0x547ce1=_0x3ea064;_0x12c46d&&this[_0x547ce1(0x1f8)][_0x547ce1(0x1f9)](_0x4adb36['id'],{'unitId':_0x55e476,'revision':_0x12c46d});}));}[_0x23c015(0x1db)](_0x16c40f,_0x1d5ad1){var _0x288dd5=_0x23c015;const _0x2225e1=_0x16c40f[_0x288dd5(0x19a)](_0x1eb25c),_0x115360=_0x1d5ad1[_0x288dd5(0x1b1)]();_0x115360&&_0x2225e1['setContainer'](_0x115360);}['_checkCanRevert'](_0x228293){var _0x7f26b8=_0x23c015;const _0x208e7c=this['_univerInstanceService'][_0x7f26b8(0x216)](_0x228293)[_0x7f26b8(0x1ba)]()[_0x7f26b8(0x1e7)](_0x148612=>_0x148612[_0x7f26b8(0x21a)]()),_0x30c70e=new _0x37159a(_0x228293)['id'],_0xe3cbfb=_0x208e7c[_0x7f26b8(0x1e7)](_0x5abfb3=>new _0xa23732(_0x228293,_0x5abfb3)['id']),_0x19b1dd=_0x208e7c['map'](_0x48e111=>this[_0x7f26b8(0x230)][_0x7f26b8(0x1af)](_0x228293,_0x48e111)[_0x7f26b8(0x1e7)](_0x4bd4e2=>new _0x5bfe62(_0x228293,_0x48e111,_0x4bd4e2[_0x7f26b8(0x19e)])['id']))['flat'](),_0x222da6=new _0x100c5a(_0x228293)['id'];return this['_permissionService'][_0x7f26b8(0x1d4)]([_0x30c70e,..._0xe3cbfb,..._0x19b1dd,_0x222da6])[_0x7f26b8(0x1b5)](_0x55969e=>!!_0x55969e['value']);}};f=Xe([g(0x0,_0x4c4713(_0x368f66)),g(0x1,_0x40f863),g(0x2,_0x428ea4),g(0x3,_0x4e72cd),g(0x4,_0x1eb25c),g(0x5,_0x1c0e42),g(0x6,_0x4c4713(_0x528f6c)),g(0x7,_0x4c4713(_0x3664c3)),g(0x8,_0x4c4713(_0xe35f3))],f);var l=function(){var _0x349e4c=_0x23c015;return l=Object[_0x349e4c(0x227)]||function(_0x508a0a){var _0xa99849=_0x349e4c;for(var _0x385ada,_0x12d415=0x1,_0x14a751=arguments['length'];_0x12d415<_0x14a751;_0x12d415++){_0x385ada=arguments[_0x12d415];for(var _0x3b3bf9 in _0x385ada)Object[_0xa99849(0x1fe)]['hasOwnProperty'][_0xa99849(0x1d9)](_0x385ada,_0x3b3bf9)&&(_0x508a0a[_0x3b3bf9]=_0x385ada[_0x3b3bf9]);}return _0x508a0a;},l[_0x349e4c(0x1ea)](this,arguments);},ii=function(_0x192990,_0x56067a){var _0x576927=_0x23c015,_0x4c1ca2={};for(var _0x5defb5 in _0x192990)Object['prototype'][_0x576927(0x1bd)][_0x576927(0x1d9)](_0x192990,_0x5defb5)&&_0x56067a[_0x576927(0x1c0)](_0x5defb5)<0x0&&(_0x4c1ca2[_0x5defb5]=_0x192990[_0x5defb5]);if(_0x192990!=null&&typeof Object['getOwnPropertySymbols']==_0x576927(0x1ff)){for(var _0x50de26=0x0,_0x5defb5=Object[_0x576927(0x1c5)](_0x192990);_0x50de26<_0x5defb5[_0x576927(0x22f)];_0x50de26++)_0x56067a[_0x576927(0x1c0)](_0x5defb5[_0x50de26])<0x0&&Object[_0x576927(0x1fe)]['propertyIsEnumerable'][_0x576927(0x1d9)](_0x192990,_0x5defb5[_0x50de26])&&(_0x4c1ca2[_0x5defb5[_0x50de26]]=_0x192990[_0x5defb5[_0x50de26]]);}return _0x4c1ca2;},A=_0x174d2d(function(_0x56a938,_0x543e8f){var _0x4bc7a2=_0x23c015,_0x386a5e=_0x56a938['icon'],_0x355cb0=_0x56a938['id'],_0x3ecaee=_0x56a938[_0x4bc7a2(0x207)],_0x378fd7=_0x56a938[_0x4bc7a2(0x1cf)],_0x2c326d=ii(_0x56a938,['icon','id','className',_0x4bc7a2(0x1cf)]),_0x4dbfed=_0x4bc7a2(0x1f1)[_0x4bc7a2(0x237)](_0x355cb0,'\x20')[_0x4bc7a2(0x237)](_0x3ecaee||'')[_0x4bc7a2(0x1c8)](),_0x59c913=_0x27c24f('_'[_0x4bc7a2(0x237)](ni()));return V(_0x386a5e,''['concat'](_0x355cb0),{'defIds':_0x386a5e[_0x4bc7a2(0x1c1)],'idSuffix':_0x59c913[_0x4bc7a2(0x209)]},l({'ref':_0x543e8f,'className':_0x4dbfed},_0x2c326d),_0x378fd7);});function V(_0x57b3ad,_0x42d8d1,_0x201253,_0x1e0196,_0x37fcd6){var _0x291ace=_0x23c015;return _0x5aa372(_0x57b3ad[_0x291ace(0x1c4)],l(l({'key':_0x42d8d1},ti(_0x57b3ad,_0x201253,_0x37fcd6)),_0x1e0196),(ri(_0x57b3ad,_0x201253)[_0x291ace(0x1fb)]||[])[_0x291ace(0x1e7)](function(_0x39b206,_0x7cff9b){var _0x4ba739=_0x291ace;return V(_0x39b206,''[_0x4ba739(0x237)](_0x42d8d1,'-')[_0x4ba739(0x237)](_0x57b3ad[_0x4ba739(0x1c4)],'-')[_0x4ba739(0x237)](_0x7cff9b),_0x201253,void 0x0,_0x37fcd6);}));}function ti(_0x134a83,_0x44fd84,_0x2e9c15){var _0x3c2a70=_0x23c015,_0x8412d=l({},_0x134a83[_0x3c2a70(0x19c)]);_0x2e9c15!=null&&_0x2e9c15[_0x3c2a70(0x22b)]&&_0x8412d[_0x3c2a70(0x235)]==='colorChannel1'&&(_0x8412d[_0x3c2a70(0x235)]=_0x2e9c15['colorChannel1']);var _0x5642f4=_0x44fd84[_0x3c2a70(0x1c1)];return!_0x5642f4||_0x5642f4[_0x3c2a70(0x22f)]===0x0||(_0x134a83[_0x3c2a70(0x1c4)]===_0x3c2a70(0x1c7)&&_0x8412d[_0x3c2a70(0x1d3)]&&(_0x8412d[_0x3c2a70(0x1d3)]=_0x8412d[_0x3c2a70(0x1d3)]+_0x44fd84[_0x3c2a70(0x1ac)]),Object[_0x3c2a70(0x1da)](_0x8412d)[_0x3c2a70(0x19d)](function(_0x58cb66){var _0xfbfc1c=_0x3c2a70,_0x26bfbc=_0x58cb66[0x0],_0x473703=_0x58cb66[0x1];typeof _0x473703==_0xfbfc1c(0x1bb)&&(_0x8412d[_0x26bfbc]=_0x473703[_0xfbfc1c(0x1e5)](/url\(#(.*)\)/,_0xfbfc1c(0x1d7)[_0xfbfc1c(0x237)](_0x44fd84[_0xfbfc1c(0x1ac)],')')));})),_0x8412d;}function ri(_0xc6d2a,_0x282941){var _0x5b0318=_0x23c015,_0x3a47f9,_0x57d576=_0x282941['defIds'];return!_0x57d576||_0x57d576['length']===0x0?_0xc6d2a:_0xc6d2a['tag']===_0x5b0318(0x1e6)&&(!((_0x3a47f9=_0xc6d2a[_0x5b0318(0x1fb)])===null||_0x3a47f9===void 0x0)&&_0x3a47f9[_0x5b0318(0x22f)])?l(l({},_0xc6d2a),{'children':_0xc6d2a[_0x5b0318(0x1fb)][_0x5b0318(0x1e7)](function(_0x534e1e){var _0xb3d0fb=_0x5b0318;return typeof _0x534e1e[_0xb3d0fb(0x19c)]['id']=='string'&&_0x57d576&&_0x57d576[_0xb3d0fb(0x1c0)](_0x534e1e[_0xb3d0fb(0x19c)]['id'])>-0x1?l(l({},_0x534e1e),{'attrs':l(l({},_0x534e1e['attrs']),{'id':_0x534e1e[_0xb3d0fb(0x19c)]['id']+_0x282941[_0xb3d0fb(0x1ac)]})}):_0x534e1e;})}):_0xc6d2a;}function ni(){var _0x3f526a=_0x23c015;return Math[_0x3f526a(0x1e2)]()[_0x3f526a(0x208)](0x24)[_0x3f526a(0x1b2)](0x2,0x8);}A[_0x23c015(0x243)]=_0x23c015(0x23d);var oi={'tag':_0x23c015(0x1f5),'attrs':{'fill':_0x23c015(0x200),'viewBox':_0x23c015(0x1f2),'width':_0x23c015(0x1a0),'height':'1em'},'children':[{'tag':'g','attrs':{'fill':_0x23c015(0x20e),'clipPath':_0x23c015(0x238)},'children':[{'tag':_0x23c015(0x23f),'attrs':{'d':_0x23c015(0x213)}},{'tag':_0x23c015(0x23f),'attrs':{'d':_0x23c015(0x1ab)}}]},{'tag':_0x23c015(0x1e6),'attrs':{},'children':[{'tag':_0x23c015(0x1a8),'attrs':{'id':_0x23c015(0x22c)},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0x23c015(0x1b4)}}]}]}],'defIds':['history-single_clip0_907_281']},$=_0x174d2d(function(_0x13d7ef,_0x12ff13){var _0x519753=_0x23c015;return _0x5aa372(A,Object[_0x519753(0x227)]({},_0x13d7ef,{'id':_0x519753(0x1cc),'ref':_0x12ff13,'icon':oi}));});$['displayName']=_0x23c015(0x1c2);const E={'id':_0x23c015(0x1cb),'type':_0x573bd0[_0x23c015(0x1a1)],'handler':_0x59a7ec=>{var _0x10b26c=_0x23c015;const _0xc768f8=_0x59a7ec['get'](f),_0x59a63f=_0x59a7ec[_0x10b26c(0x19a)](_0x40f863),{unitId:_0x20e4fa}=_0x49a403(_0x59a63f)||{};return _0x20e4fa?(_0xc768f8[_0x10b26c(0x210)](_0x20e4fa),!0x0):!0x1;}},F='HistorySingle';function si(_0x37c239){var _0x49ffeb=_0x23c015;return{'id':E['id'],'type':_0x387d64[_0x49ffeb(0x1ef)],'icon':F,'tooltip':_0x49ffeb(0x23a),'hidden$':_0x315ac6(_0x37c239,_0x5989b3[_0x49ffeb(0x1f4)]),'disabled$':_0x323036(_0x37c239,{'workbookTypes':[_0x37159a,_0x4114ac],'worksheetTypes':[],'rangeTypes':[]})};}const ai={[_0x3c12c3['OTHERS']]:{[E['id']]:{'order':0x0,'menuItemFactory':si}}};var ci=Object[_0x23c015(0x241)],li=Object[_0x23c015(0x1d6)],ui=(_0xd4123,_0x17ea1b,_0x38aa5f,_0x37c7d5)=>{for(var _0x3a6eff=_0x37c7d5>0x1?void 0x0:_0x37c7d5?li(_0x17ea1b,_0x38aa5f):_0x17ea1b,_0x412c69=_0xd4123['length']-0x1,_0x150990;_0x412c69>=0x0;_0x412c69--)(_0x150990=_0xd4123[_0x412c69])&&(_0x3a6eff=(_0x37c7d5?_0x150990(_0x17ea1b,_0x38aa5f,_0x3a6eff):_0x150990(_0x3a6eff))||_0x3a6eff);return _0x37c7d5&&_0x3a6eff&&ci(_0x17ea1b,_0x38aa5f,_0x3a6eff),_0x3a6eff;},h=(_0x18f522,_0x52f451)=>(_0x904a54,_0x20811e)=>_0x52f451(_0x904a54,_0x20811e,_0x18f522);function _0x58cf(){var _0xeaa131=['mergeMenu','708687wstPvQ','UNIVER_UNKNOWN','invoke','Error','random','reload','editHistory.panel.reverting','replace','defs','map','unMountHistoryContent','appendChild','apply','_collaborationController','data','Exited','SYNCED','BUTTON','_menuManagerService','univerjs-icon\x20univerjs-icon-','0\x200\x2016\x2016','univerContainerId','UNIVER_SHEET','svg','type','_sidebarService','_commandService','executeCommand','_init','children','_univerInstanceService','unsubscribe','prototype','function','none','params','UNIVER_CONTAINER_ID','closeAll','_historyUniver','dispose','exhaustSavingTask','className','toString','current','close','univer-container','div','top','currentColor','session','mountHistoryContent','editHistory.panel.listFetchError','display','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','setConfig','8137530IweiZa','getUnit','_initListener','menu','_checkCanRevert','getSheetId','./worker.js','207174SYxIwS','getCollabEntity','_initPlugins','block','_initContainer','__getInjector','getCurrentLocale','75JdmznW','eventID','registerPlugin','registerCommand','assign','subscribe','triggerLoadVersions','onStarting','colorChannel1','history-single_clip0_907_281','_permissionService','pluginName','length','_selectionProtectionRuleModel','some','_config','onCommandExecuted','event$','fill','_configService','concat','url(#history-single_clip0_907_281)','zIndex','editHistory.panel.title','height','univer-history-container','UniverIcon','show','path','state$','defineProperty','_injector','displayName','setLocale','get','_initUniver','attrs','forEach','permissionId','location','1em','OPERATION','_revertErrorTimer','mutations','[HistoryLoaderService]:\x20Plugin\x20','has','values','_messageService','clipPath','style','left','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','idSuffix','_dialogService','100%','getSubunitRuleList','840512pkUtmf','getContainer','substring','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','M0\x200H16V16H0z','every','getElementById','550318LMGAUY','edit-history-loader.config','getLocales','getSheets','string','1000','hasOwnProperty','1232825ymwqBO','CHANGESET_ACK','indexOf','defIds','HistorySingle','6MkpvET','tag','getOwnPropertySymbols','revertRevision$','use','trim','disposeWithMe','status','univer.operation.toggle-edit-history','history-single','_localeService','268jdmlWX','extend','_componentManager','_pluginMap','editHistory.panel.revertFailed','xlink:href','composePermission','_disposableCollection','getOwnPropertyDescriptor','url(#$1','getConfig','call','entries','_initMessageService','from'];_0x58cf=function(){return _0xeaa131;};return _0x58cf();}let p=class extends _0x9f06db{constructor(_0x197f89,_0x6950ca,_0x57fae2,_0x328ad4,_0x15596a,_0x4f9844,_0x24e421,_0x5a3fd0){var _0x69f140=_0x23c015;super(),m(this,'_revertErrorTimer',null),(this[_0x69f140(0x1f8)]=_0x197f89,this[_0x69f140(0x1f0)]=_0x6950ca,this['_componentManager']=_0x57fae2,this['_historyManagerService']=_0x328ad4,this[_0x69f140(0x1cd)]=_0x15596a,this[_0x69f140(0x1a7)]=_0x4f9844,this[_0x69f140(0x1eb)]=_0x24e421,this['_localCacheService']=_0x5a3fd0,this[_0x69f140(0x1fa)]());}[_0x23c015(0x1fa)](){var _0x29ce11=_0x23c015;[E][_0x29ce11(0x19d)](_0xa92295=>this['disposeWithMe'](_0x2bd064(this[_0x29ce11(0x1f8)][_0x29ce11(0x226)](_0xa92295)))),this[_0x29ce11(0x1c9)](this[_0x29ce11(0x1d0)]['register'](F,$)),this[_0x29ce11(0x1f0)][_0x29ce11(0x1dd)](ai),this[_0x29ce11(0x1c9)](this['_commandService'][_0x29ce11(0x233)](_0x3d5def=>{var _0x374ab6=_0x29ce11;if(_0x3d5def['id']===_0x4adb36['id']){this[_0x374ab6(0x1a7)][_0x374ab6(0x23e)]({'content':this[_0x374ab6(0x1cd)]['t'](_0x374ab6(0x1e4)),'type':_0x27176e['Loading'],'duration':0x1388});const {unitId:_0x376144}=_0x3d5def[_0x374ab6(0x201)],_0x589a5a=this[_0x374ab6(0x1eb)][_0x374ab6(0x21d)](_0x376144),_0xf4aca3=_0x32f07b([_0x589a5a[_0x374ab6(0x20f)][_0x374ab6(0x234)],_0x589a5a[_0x374ab6(0x240)]])[_0x374ab6(0x228)](async([_0x185ccd,_0x3a522c])=>{var _0x4cd7a0=_0x374ab6;_0x185ccd[_0x4cd7a0(0x224)]===_0x10c109[_0x4cd7a0(0x1bf)]&&(_0x3a522c==null?void 0x0:_0x3a522c[_0x4cd7a0(0x1ca)])===_0x151ef8[_0x4cd7a0(0x1ee)]&&_0x185ccd[_0x4cd7a0(0x1ec)][_0x4cd7a0(0x1a3)][_0x4cd7a0(0x231)](_0x2942a3=>_0x2942a3['id']===_0x4adb36['id'])&&(this['_historyManagerService'][_0x4cd7a0(0x1e8)](),_0xf4aca3[_0x4cd7a0(0x1fd)](),this[_0x4cd7a0(0x1a2)]&&clearTimeout(this['_revertErrorTimer']),await this['_localCacheService'][_0x4cd7a0(0x206)](),setTimeout(()=>window[_0x4cd7a0(0x19f)][_0x4cd7a0(0x1e3)]()));});this[_0x374ab6(0x1a2)]=setTimeout(()=>{var _0x2dbe8a=_0x374ab6;_0xf4aca3[_0x2dbe8a(0x1fd)](),this[_0x2dbe8a(0x1a7)][_0x2dbe8a(0x23e)]({'content':this[_0x2dbe8a(0x1cd)]['t'](_0x2dbe8a(0x1d2)),'type':_0x27176e[_0x2dbe8a(0x1e1)],'duration':0xbb8});},0x1388);}}));}};p=ui([h(0x0,_0x4e72cd),h(0x1,_0x220616),h(0x2,_0x4c4713(_0x98c99f)),h(0x3,_0x4c4713(f)),h(0x4,_0x4c4713(_0x368f66)),h(0x5,_0x1eb25c),h(0x6,_0x4c4713(_0x1ca80b)),h(0x7,_0x4c4713(_0x54bc31))],p);var gi=Object['defineProperty'],vi=Object[_0x23c015(0x1d6)],hi=(_0x11616e,_0x5ac6a7,_0x294cfe,_0x3f1a4d)=>{var _0x8d2b3b=_0x23c015;for(var _0x11bb48=_0x3f1a4d>0x1?void 0x0:_0x3f1a4d?vi(_0x5ac6a7,_0x294cfe):_0x5ac6a7,_0x35d217=_0x11616e[_0x8d2b3b(0x22f)]-0x1,_0x186fa3;_0x35d217>=0x0;_0x35d217--)(_0x186fa3=_0x11616e[_0x35d217])&&(_0x11bb48=(_0x3f1a4d?_0x186fa3(_0x5ac6a7,_0x294cfe,_0x11bb48):_0x186fa3(_0x11bb48))||_0x11bb48);return _0x3f1a4d&&_0x11bb48&&gi(_0x5ac6a7,_0x294cfe,_0x11bb48),_0x11bb48;},O=(_0x1397ab,_0x38849b)=>(_0x50db46,_0x1864f4)=>_0x38849b(_0x50db46,_0x1864f4,_0x1397ab);const mi=_0x23c015(0x1b3);var _;let R=(_=class extends _0x1be44e{constructor(_0x11e00f=qe,_0x3caa10,_0x4b2ff4){var _0x54c994=_0x23c015;super(),this[_0x54c994(0x232)]=_0x11e00f,this['_injector']=_0x3caa10,this[_0x54c994(0x236)]=_0x4b2ff4;const {menu:_0x2e1c4f,..._0x2af9eb}=this['_config'];_0x2e1c4f&&this[_0x54c994(0x236)][_0x54c994(0x214)](_0x54c994(0x218),_0x2e1c4f,{'merge':!0x0}),this[_0x54c994(0x236)][_0x54c994(0x214)](j,_0x2af9eb),this[_0x54c994(0x232)]['univerContainerId']&&this[_0x54c994(0x236)][_0x54c994(0x214)](k,this[_0x54c994(0x232)][_0x54c994(0x1f3)]);}[_0x23c015(0x22a)](){var _0x666054=_0x23c015;[[f],[p]][_0x666054(0x19d)](_0x319852=>this[_0x666054(0x242)]['add'](_0x319852));}['onSteady'](){var _0x4c1345=_0x23c015;this[_0x4c1345(0x242)][_0x4c1345(0x19a)](p);}},m(_,_0x23c015(0x1f6),_0x5989b3[_0x23c015(0x1df)]),m(_,_0x23c015(0x22e),mi),_);R=hi([O(0x1,_0x4c4713(_0x5774bf)),O(0x2,_0x428ea4)],R);export{f as HistoryLoaderService,k as UNIVER_CONTAINER_ID_KEY,d as UNIVER_HISTORY_CONTAINER_ID,R as UniverEditHistoryLoaderPlugin};
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,3 +1,70 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { Disposable as Disposable_2 } from '@univerjs/core';
|
|
2
|
+
import { ICommandService } from '@univerjs/core';
|
|
3
|
+
import { IConfigService } from '@univerjs/core';
|
|
4
|
+
import { IDialogService } from '@univerjs/ui';
|
|
5
|
+
import { IMessageService } from '@univerjs/ui';
|
|
6
|
+
import { Injector } from '@univerjs/core';
|
|
7
|
+
import { IPermissionService } from '@univerjs/core';
|
|
8
|
+
import { ISidebarService } from '@univerjs/ui';
|
|
9
|
+
import { IUniverInstanceService } from '@univerjs/core';
|
|
10
|
+
import { LocaleService } from '@univerjs/core';
|
|
11
|
+
import { MenuConfig } from '@univerjs/ui';
|
|
12
|
+
import { Plugin as Plugin_2 } from '@univerjs/core';
|
|
13
|
+
import { PluginCtor } from '@univerjs/core';
|
|
14
|
+
import { RangeProtectionRuleModel } from '@univerjs/sheets';
|
|
15
|
+
import { UniverInstanceType } from '@univerjs/core';
|
|
16
|
+
|
|
17
|
+
export declare class HistoryLoaderService extends Disposable_2 {
|
|
18
|
+
private readonly _localeService;
|
|
19
|
+
private readonly _univerInstanceService;
|
|
20
|
+
private readonly _configService;
|
|
21
|
+
private readonly _commandService;
|
|
22
|
+
private readonly _messageService;
|
|
23
|
+
private readonly _permissionService;
|
|
24
|
+
private _selectionProtectionRuleModel;
|
|
25
|
+
private readonly _dialogService;
|
|
26
|
+
private readonly _sidebarService;
|
|
27
|
+
private _historyUniver;
|
|
28
|
+
private _disposableCollection;
|
|
29
|
+
private _pluginMap;
|
|
30
|
+
constructor(_localeService: LocaleService, _univerInstanceService: IUniverInstanceService, _configService: IConfigService, _commandService: ICommandService, _messageService: IMessageService, _permissionService: IPermissionService, _selectionProtectionRuleModel: RangeProtectionRuleModel, _dialogService: IDialogService, _sidebarService: ISidebarService);
|
|
31
|
+
private _init;
|
|
32
|
+
private _initContainer;
|
|
33
|
+
private _initPlugins;
|
|
34
|
+
dispose(): void;
|
|
35
|
+
registerPlugin<T extends PluginCtor>(ctor: T, config?: ConstructorParameters<T>[0], override?: false): void;
|
|
36
|
+
getAllPlugins(): [ctor: PluginCtor, config: object | undefined][];
|
|
37
|
+
mountHistoryContent(unitId: string): void;
|
|
38
|
+
unMountHistoryContent(): void;
|
|
39
|
+
private _initUniver;
|
|
40
|
+
private _initListener;
|
|
41
|
+
private _initMessageService;
|
|
42
|
+
private _checkCanRevert;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
declare interface IUniverEditHistoryLoaderConfig {
|
|
46
|
+
menu?: MenuConfig;
|
|
47
|
+
univerContainerId?: string;
|
|
48
|
+
/**
|
|
49
|
+
* @description The server url of the history list
|
|
50
|
+
* @default ''
|
|
51
|
+
*/
|
|
52
|
+
historyListServerUrl?: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export declare const UNIVER_CONTAINER_ID_KEY = "UNIVER_CONTAINER_ID";
|
|
56
|
+
|
|
57
|
+
export declare const UNIVER_HISTORY_CONTAINER_ID = "univer-history-container";
|
|
58
|
+
|
|
59
|
+
export declare class UniverEditHistoryLoaderPlugin extends Plugin_2 {
|
|
60
|
+
private readonly _config;
|
|
61
|
+
protected _injector: Injector;
|
|
62
|
+
private readonly _configService;
|
|
63
|
+
static type: UniverInstanceType;
|
|
64
|
+
static pluginName: string;
|
|
65
|
+
constructor(_config: Partial<IUniverEditHistoryLoaderConfig> | undefined, _injector: Injector, _configService: IConfigService);
|
|
66
|
+
onStarting(): void;
|
|
67
|
+
onSteady(): void;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export { }
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x18b0(_0x151081,_0x3ffbe7){var _0x5cb68d=_0x5cb6();return _0x18b0=function(_0x18b057,_0x17f6ec){_0x18b057=_0x18b057-0x94;var _0x3d5882=_0x5cb68d[_0x18b057];return _0x3d5882;},_0x18b0(_0x151081,_0x3ffbe7);}function _0x5cb6(){var _0x11c051=['_checkCanRevert','history-single_clip0_907_281','value','assign','disposeWithMe','url(#history-single_clip0_907_281)','\x20has\x20been\x20registered.','propertyIsEnumerable','@univerjs/sheets-hyper-link-ui','@univerjs/docs-ui','Module','UniverEngineFormula','getConfig','length','HistoryLoaderService','status','data','position','@univerjs/sheets-hyper-link','_selectionProtectionRuleModel','idSuffix','WorkbookEditablePermission','IConfigService','UniverEditHistoryLoader','extend','toDisposable','IUniverInstanceService','Plugin','getCollabEntity','IPermissionService','_initListener','_pluginMap','UniverSheets','UniverSheetsConditionalFormattingPlugin','div','Inject','triggerLoadVersions','CollaborationEvent','CommandType','_localCacheService','@univerjs/sheets-conditional-formatting-ui','hasOwnProperty','UniverDataValidationPlugin','session','WorksheetEditPermission','@univerjs/drawing-ui','OTHERS','UNIVER_CONTAINER_ID','UniverSheetsDrawingUIPlugin','greenTheme','ComponentManager','setContainer','React','getElementById','_configService','fill','display','ICommandService','UniverSheetsPivotTablePlugin','invoke','OPERATION','_univerInstanceService','UniverDrawing','univer-history-container','_collaborationController','string','univerContainerId','UniverSheetsPlugin','UniverEditHistoryViewerPlugin','mutations','getSheetId','block','getOwnPropertySymbols','678992oNodCU','UniverUi','toStringTag','IAuthzIoService','_historyManagerService','Error','1509010Zypjyc','clear','[HistoryLoaderService]:\x20Plugin\x20','concat','clipPath','toString','_menuManagerService','none','UniverDataValidation','UniverSheetsHyperLinkPlugin','RevertRevisionMutation','subscribe','Disposable','UniverSheetsNumfmt','@univerjs/engine-render','UniverSheetsHyperLinkUIPlugin','_permissionService','forwardRef','absolute','UniverRPCMainThreadPlugin','CollaborationStatus','editHistory.panel.listFetchError','UniverCollaborationClient','_initContainer','M0\x200H16V16H0z','prototype','@univerjs/sheets-drawing-ui','setConfig','appendChild','UniverSheetsDrawingUi','@univerjs/drawing','UniverUIPlugin','getCurrentLocale','UniverSheetsFormulaUIPlugin','UniverSheetsDataValidation','xlink:href','getSheets','permissionId','UniverSheetsHyperLinkUi','executeCommand','path','setLocale','@univerjs-pro/sheets-pivot','_localeService','apply','@univerjs/sheets','top','univer.operation.toggle-edit-history','UniverSheetsHyperLink','_initUniver','editHistory.panel.revertFailed','MessageType','getContainer','getMenuHiddenObservable','defs','CHANGESET_ACK','@univerjs/sheets-formula-ui','revertRevision$','UniverSheetsUi','UniverIcon','_historyUniver','UNIVER_UNKNOWN','getUnit','height','attrs','@univerjs/sheets-data-validation','mergeMenu','editHistory.panel.title','UniverSheetsUIPlugin','@univerjs/sheets-filter-ui','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','DisposableCollection','entries','react','forEach','@univerjs/sheets-ui','set','3mGWhsC','@univerjs/sheets-numfmt','reload','_init','_initMessageService','amd','UniverDrawingUIPlugin','icon','_componentManager','function','exports','getAllPlugins','register','12aILoZn','_dialogService','UniverSheetsDataValidationPlugin','@univerjs/engine-formula','9xmvBvD','UniverDocsUIPlugin','83384FffDcw','add','Injector','event$','LocaleService','UniverSheetsFilter','ISidebarService','UniverDrawingPlugin','./worker.js','_messageService','@univerjs-pro/collaboration-client','SNAPSHOT_SERVER_URL_KEY','@univerjs/sheets-formula','UniverCollaboration','_initPlugins','Exited','closeAll','style','129131YOGACn','UniverDocs','UniverSheetsFormulaPlugin','@univerjs/sheets-filter','CollaborationController','_commandService','_config','RxDisposable','history-single','UniverRenderEnginePlugin','getSheetCommandTarget','composePermission','getLocales','0\x200\x2016\x2016','getOwnPropertyDescriptor','IMenuManagerService','width','svg','use','HistoryManagerService','UniverDrawingUi','@univerjs/ui','unMountHistoryContent','state$','HistoryModeStatus','_sidebarService','UNIVER_HISTORY_CONTAINER_ID','useRef','#fff','createElement','registerPlugin','show','UniverSheetsDrawing','get','univerjs-icon\x20univerjs-icon-','_revertErrorTimer','@univerjs/data-validation','@univerjs-pro/edit-history-viewer','current','1em','menu','defIds','_disposableCollection','IMessageService','editHistory.panel.reverting','replace','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','Entered','@univerjs/sheets-data-validation-ui','className','close','220085yTbzRo','random','IImageIoService','UniverSheetsDataValidationUIPlugin','tag','from','BUTTON','pluginName','url(#$1','defineProperty','map','UniverSheetsConditionalFormattingUIPlugin','children','UniverEditHistoryViewer','dispose','UniverCore','combineLatest','UniverDocsUi','UniverSheetsConditionalFormattingUi','112jsTysX','Univer','eventID','@univerjs/docs','@univerjs/core','indexOf','location','Loading','UniverFormulaEnginePlugin','displayName','HistorySingle','onStarting','UniverSheetsConditionalFormatting','substring','__getInjector','_injector','colorChannel1','UniverInstanceType','@univerjs/sheets-conditional-formatting','@univerjs-pro/collaboration','univer-container','@univerjs/design','5323175QLydpl','left','@univerjs/rpc','UniverEditHistoryLoaderPlugin','UniverSheetsFormulaUi','getCurrentRangeDisable$','325492syXQhk','call'];_0x5cb6=function(){return _0x11c051;};return _0x5cb6();}(function(_0x2eada1,_0x291896){var _0x2731f2=_0x18b0,_0x25a736=_0x2eada1();while(!![]){try{var _0x566249=-parseInt(_0x2731f2(0x16f))/0x1+parseInt(_0x2731f2(0xac))/0x2+-parseInt(_0x2731f2(0x14a))/0x3*(parseInt(_0x2731f2(0xf7))/0x4)+parseInt(_0x2731f2(0x1a2))/0x5*(parseInt(_0x2731f2(0x157))/0x6)+parseInt(_0x2731f2(0x15d))/0x7*(-parseInt(_0x2731f2(0x1b5))/0x8)+-parseInt(_0x2731f2(0x15b))/0x9*(parseInt(_0x2731f2(0xfd))/0xa)+parseInt(_0x2731f2(0xa6))/0xb;if(_0x566249===_0x291896)break;else _0x25a736['push'](_0x25a736['shift']());}catch(_0x2c0d2d){_0x25a736['push'](_0x25a736['shift']());}}}(_0x5cb6,0x1cd8d),function(_0x2d25fc,_0x574367){var _0x2a9324=_0x18b0;typeof exports=='object'&&typeof module<'u'?_0x574367(exports,require(_0x2a9324(0x94)),require(_0x2a9324(0x193)),require(_0x2a9324(0xa5)),require(_0x2a9324(0x1b8)),require(_0x2a9324(0xb7)),require('@univerjs/drawing'),require(_0x2a9324(0xdb)),require('@univerjs/engine-formula'),require(_0x2a9324(0x10b)),require(_0x2a9324(0xa8)),require('@univerjs/sheets'),require(_0x2a9324(0xa2)),require(_0x2a9324(0xd6)),require(_0x2a9324(0x13e)),require(_0x2a9324(0x19f)),require('@univerjs/sheets-drawing'),require(_0x2a9324(0x117)),require(_0x2a9324(0x172)),require('@univerjs/sheets-filter-ui'),require(_0x2a9324(0x169)),require(_0x2a9324(0x135)),require(_0x2a9324(0xc0)),require(_0x2a9324(0xb6)),require('@univerjs/sheets-numfmt'),require(_0x2a9324(0x148)),require(_0x2a9324(0x184)),require(_0x2a9324(0xa3)),require(_0x2a9324(0x167)),require(_0x2a9324(0x194)),require('@univerjs-pro/sheets-pivot'),require('rxjs'),require(_0x2a9324(0x146))):typeof define==_0x2a9324(0x153)&&define[_0x2a9324(0x14f)]?define([_0x2a9324(0x154),_0x2a9324(0x94),_0x2a9324(0x193),_0x2a9324(0xa5),'@univerjs/docs',_0x2a9324(0xb7),_0x2a9324(0x11b),_0x2a9324(0xdb),_0x2a9324(0x15a),_0x2a9324(0x10b),'@univerjs/rpc',_0x2a9324(0x12a),_0x2a9324(0xa2),_0x2a9324(0xd6),_0x2a9324(0x13e),_0x2a9324(0x19f),'@univerjs/sheets-drawing',_0x2a9324(0x117),'@univerjs/sheets-filter',_0x2a9324(0x142),_0x2a9324(0x169),_0x2a9324(0x135),_0x2a9324(0xc0),_0x2a9324(0xb6),_0x2a9324(0x14b),'@univerjs/sheets-ui',_0x2a9324(0x184),_0x2a9324(0xa3),_0x2a9324(0x167),_0x2a9324(0x194),_0x2a9324(0x127),'rxjs',_0x2a9324(0x146)],_0x574367):(_0x2d25fc=typeof globalThis<'u'?globalThis:_0x2d25fc||self,_0x574367(_0x2d25fc[_0x2a9324(0xc5)]={},_0x2d25fc[_0x2a9324(0x1b1)],_0x2d25fc[_0x2a9324(0x105)],_0x2d25fc['UniverDesign'],_0x2d25fc[_0x2a9324(0x170)],_0x2d25fc[_0x2a9324(0x1b3)],_0x2d25fc[_0x2a9324(0xec)],_0x2d25fc[_0x2a9324(0x183)],_0x2d25fc[_0x2a9324(0xb9)],_0x2d25fc['UniverEngineRender'],_0x2d25fc['UniverRpc'],_0x2d25fc[_0x2a9324(0xce)],_0x2d25fc[_0x2a9324(0x9c)],_0x2d25fc[_0x2a9324(0x1b4)],_0x2d25fc[_0x2a9324(0x11f)],_0x2d25fc['UniverSheetsDataValidationUi'],_0x2d25fc[_0x2a9324(0x18f)],_0x2d25fc[_0x2a9324(0x11a)],_0x2d25fc[_0x2a9324(0x162)],_0x2d25fc['UniverSheetsFilterUi'],_0x2d25fc['UniverSheetsFormula'],_0x2d25fc[_0x2a9324(0xaa)],_0x2d25fc[_0x2a9324(0x12d)],_0x2d25fc[_0x2a9324(0x123)],_0x2d25fc[_0x2a9324(0x10a)],_0x2d25fc[_0x2a9324(0x137)],_0x2d25fc[_0x2a9324(0xf8)],_0x2d25fc[_0x2a9324(0x16a)],_0x2d25fc[_0x2a9324(0x113)],_0x2d25fc[_0x2a9324(0x1af)],_0x2d25fc['UniverSheetsPivot'],_0x2d25fc['rxjs'],_0x2d25fc[_0x2a9324(0xe2)]));}(this,function(_0x49a87d,_0xa2f4f9,_0x248278,_0x4438ea,_0x9afd8f,_0x113072,_0xa4e0ca,_0x4a1cee,_0x50c070,_0x580a93,_0x45c9f1,_0x5b05aa,_0x517c3f,_0x3f2698,_0x47f0fd,_0x19390d,_0x57fe41,_0x43f211,_0x5e05da,_0x883368,_0x572a2c,_0x4643c9,_0x3f3a01,_0x34cade,_0x48ad10,_0x51e94c,_0x297cba,_0x189de8,_0x51c6ea,_0x1ce882,_0x13833e,_0x3517d7,_0x598038){'use strict';var _0x5bfb46=_0x18b0;var _0x29c21=Object[_0x5bfb46(0x1ab)],_0x2d371b=(_0x3097c3,_0x4c7132,_0x1027f3)=>_0x4c7132 in _0x3097c3?_0x29c21(_0x3097c3,_0x4c7132,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1027f3}):_0x3097c3[_0x4c7132]=_0x1027f3,_0x2a6caa=(_0x56e53b,_0x443de5,_0x4dafab)=>_0x2d371b(_0x56e53b,typeof _0x443de5!='symbol'?_0x443de5+'':_0x443de5,_0x4dafab),_0x4569aa;const _0x394c3b='edit-history-loader.config',_0x17d50a={};var _0x4a2636=Object[_0x5bfb46(0x1ab)],_0x53f776=Object[_0x5bfb46(0x17d)],_0x376ff3=(_0x14d76f,_0x3ec398,_0x2f49a3,_0x4fe74e)=>{for(var _0x492518=_0x4fe74e>0x1?void 0x0:_0x4fe74e?_0x53f776(_0x3ec398,_0x2f49a3):_0x3ec398,_0x5532ca=_0x14d76f['length']-0x1,_0x48f9c2;_0x5532ca>=0x0;_0x5532ca--)(_0x48f9c2=_0x14d76f[_0x5532ca])&&(_0x492518=(_0x4fe74e?_0x48f9c2(_0x3ec398,_0x2f49a3,_0x492518):_0x48f9c2(_0x492518))||_0x492518);return _0x4fe74e&&_0x492518&&_0x4a2636(_0x3ec398,_0x2f49a3,_0x492518),_0x492518;},_0x5d79c9=(_0x52f1f4,_0x14ba3d)=>(_0x1faf75,_0x5bd724)=>_0x14ba3d(_0x1faf75,_0x5bd724,_0x52f1f4);const _0x47a7ed=_0x5bfb46(0xa4),_0x5e8f06=_0x5bfb46(0xdd),_0xf0205d=_0x5bfb46(0xed);_0x49a87d[_0x5bfb46(0xbc)]=class extends _0xa2f4f9[_0x5bfb46(0x109)]{constructor(_0x5b96bd,_0x4eec7d,_0x449f8f,_0x2597fe,_0x4f9571,_0x4d0a62,_0xe01817,_0x3f87a3,_0x4b49b8){var _0x512617=_0x5bfb46;super(),_0x2a6caa(this,_0x512617(0x139),null),_0x2a6caa(this,_0x512617(0x199),new _0xa2f4f9[(_0x512617(0x144))]()),_0x2a6caa(this,'_pluginMap',new Map()),(this['_localeService']=_0x5b96bd,this['_univerInstanceService']=_0x4eec7d,this[_0x512617(0xe4)]=_0x449f8f,this[_0x512617(0x174)]=_0x2597fe,this['_messageService']=_0x4f9571,this[_0x512617(0x10d)]=_0x4d0a62,this[_0x512617(0xc1)]=_0xe01817,this[_0x512617(0x158)]=_0x3f87a3,this['_sidebarService']=_0x4b49b8,this[_0x512617(0x14d)]());}[_0x5bfb46(0x14d)](){var _0x3212bc=_0x5bfb46;this[_0x3212bc(0x114)](),this[_0x3212bc(0x16b)]();}['_initContainer'](){var _0xc0d720=_0x5bfb46,_0x17e25d;const _0x536bf5=(_0x17e25d=this[_0xc0d720(0xe4)][_0xc0d720(0xba)](_0x5e8f06))!=null?_0x17e25d:_0x47a7ed,_0x24e13b=document[_0xc0d720(0xe3)](_0x536bf5);if(!_0x24e13b)return;const _0x5491b9=document[_0xc0d720(0x18c)](_0xc0d720(0xd0));_0x5491b9['id']=_0xf0205d,_0x5491b9[_0xc0d720(0x16e)][_0xc0d720(0xbf)]=_0xc0d720(0x10f),_0x5491b9[_0xc0d720(0x16e)][_0xc0d720(0x12b)]='0',_0x5491b9[_0xc0d720(0x16e)][_0xc0d720(0xa7)]='0',_0x5491b9[_0xc0d720(0x16e)][_0xc0d720(0x17f)]='100%',_0x5491b9[_0xc0d720(0x16e)][_0xc0d720(0x13c)]='100%',_0x5491b9[_0xc0d720(0x16e)]['zIndex']='1000',_0x5491b9[_0xc0d720(0x16e)][_0xc0d720(0xe6)]='none',_0x24e13b[_0xc0d720(0x119)](_0x5491b9);}[_0x5bfb46(0x16b)](){var _0x6da183=_0x5bfb46,_0x5ee8cd;[[_0x580a93[_0x6da183(0x178)]],[_0x297cba[_0x6da183(0x11c)],{'container':_0xf0205d,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x297cba['IDialogService'],null]]}],[_0xa4e0ca[_0x6da183(0x164)],{'override':[[_0xa4e0ca[_0x6da183(0x1a4)],null]]}],[_0x9afd8f['UniverDocsPlugin'],{'hasScroll':!0x1}],[_0x113072[_0x6da183(0x15c)]],[_0x48ad10['UniverSheetsNumfmtPlugin']],[_0x5b05aa[_0x6da183(0xf1)],{'notExecuteFormula':!0x0}],[_0x51e94c[_0x6da183(0x141)]],[_0x572a2c[_0x6da183(0x171)]],[_0x4643c9[_0x6da183(0x11e)]],[_0x189de8['UniverCollaborationPlugin']],[_0x5e05da['UniverSheetsFilterPlugin']],[_0x883368['UniverSheetsFilterUIPlugin']],[_0x517c3f[_0x6da183(0xcf)]],[_0x3f2698[_0x6da183(0x1ad)]],[_0x3f3a01[_0x6da183(0x106)]],[_0x34cade[_0x6da183(0x10c)]],[_0x248278[_0x6da183(0xd8)]],[_0x47f0fd[_0x6da183(0x159)]],[_0x19390d[_0x6da183(0x1a5)]],[_0x50c070[_0x6da183(0x98)],{'notExecuteFormula':!0x0}],[_0x45c9f1[_0x6da183(0x110)],{'workerURL':_0x6da183(0x165)}],[_0x4a1cee[_0x6da183(0x150)]],[_0x57fe41['UniverSheetsDrawingPlugin']],[_0x43f211[_0x6da183(0xde)]],[_0x13833e[_0x6da183(0xe8)],{'notExecuteFormula':!0x0}],[_0x1ce882[_0x6da183(0xf2)],{'historyListServerUrl':(_0x5ee8cd=this['_configService']['getConfig'](_0x394c3b))==null?void 0x0:_0x5ee8cd['historyListServerUrl']}]]['forEach'](([_0x301c72,_0x577ca1])=>this[_0x6da183(0x18d)](_0x301c72,_0x577ca1));}[_0x5bfb46(0x1b0)](){var _0x227422=_0x5bfb46;super[_0x227422(0x1b0)](),this[_0x227422(0x185)](),this[_0x227422(0xcd)][_0x227422(0xfe)]();}[_0x5bfb46(0x18d)](_0x5042c,_0xaeed68,_0x34eea9){var _0x250b05=_0x5bfb46;if(this['_pluginMap']['has'](_0x5042c['pluginName'])&&!_0x34eea9)throw new Error(_0x250b05(0xff)+_0x5042c[_0x250b05(0x1a9)]+_0x250b05(0xb4));this[_0x250b05(0xcd)][_0x250b05(0x149)](_0x5042c[_0x250b05(0x1a9)],[_0x5042c,_0xaeed68]);}[_0x5bfb46(0x155)](){var _0x5c164b=_0x5bfb46;return Array[_0x5c164b(0x1a7)](this[_0x5c164b(0xcd)]['values']());}['mountHistoryContent'](_0x30ee0c){var _0x384c9e=_0x5bfb46;const _0x462d3a=document[_0x384c9e(0xe3)](_0xf0205d);_0x462d3a&&(_0x462d3a[_0x384c9e(0x16e)]['display']=_0x384c9e(0xf5),this['_initUniver'](_0x30ee0c,_0xf0205d));}[_0x5bfb46(0x185)](){var _0x579d9d=_0x5bfb46,_0x51596d;this[_0x579d9d(0x199)][_0x579d9d(0x1b0)](),(_0x51596d=this[_0x579d9d(0x139)])==null||_0x51596d[_0x579d9d(0x1b0)](),this[_0x579d9d(0x139)]=null;const _0x4cf870=document[_0x579d9d(0xe3)](_0xf0205d);_0x4cf870&&(_0x4cf870[_0x579d9d(0x16e)][_0x579d9d(0xe6)]=_0x579d9d(0x104));}[_0x5bfb46(0x12e)](_0x4810eb,_0x4047fa){var _0x1142c1=_0x5bfb46;if(this[_0x1142c1(0x139)])return;const _0x1a7cd3=new _0xa2f4f9[(_0x1142c1(0x1b6))]({'theme':_0x4438ea[_0x1142c1(0xdf)],'locales':{[this['_localeService'][_0x1142c1(0x11d)]()]:this[_0x1142c1(0x128)][_0x1142c1(0x17b)]()},'override':[[_0xa2f4f9[_0x1142c1(0xfa)],null]]});this[_0x1142c1(0x139)]=_0x1a7cd3;const _0x552a50=_0x1a7cd3[_0x1142c1(0x9e)]();_0x552a50['get'](_0xa2f4f9[_0x1142c1(0x161)])[_0x1142c1(0x126)](this[_0x1142c1(0x128)]['getCurrentLocale']()),_0x552a50[_0x1142c1(0x190)](_0xa2f4f9[_0x1142c1(0xc4)])[_0x1142c1(0x118)](_0x51c6ea[_0x1142c1(0x168)],this['_configService'][_0x1142c1(0xba)](_0x51c6ea['SNAPSHOT_SERVER_URL_KEY'])),this[_0x1142c1(0xcd)][_0x1142c1(0x147)](([_0x170785,_0x5f0ebe])=>{var _0x26fdc7=_0x1142c1;_0x1a7cd3[_0x26fdc7(0x18d)](_0x170785,_0x5f0ebe);}),_0x552a50[_0x1142c1(0xe9)](_0x3630ed=>{var _0x3e0993=_0x1142c1;this[_0x3e0993(0xcc)](_0x3630ed,_0x4810eb),this['_initMessageService'](_0x3630ed,this[_0x3e0993(0x166)]);});const _0x5d3e37=_0x552a50[_0x1142c1(0x190)](_0x1ce882['HistoryManagerService']),_0x659022=this[_0x1142c1(0xae)](_0x4810eb);_0x5d3e37[_0x1142c1(0xd2)](_0x4810eb,_0x4047fa,_0x659022);}[_0x5bfb46(0xcc)](_0x2249c8,_0x47f800){var _0xf8997b=_0x5bfb46;const _0x38d2ed=_0x2249c8['get'](_0x1ce882[_0xf8997b(0x182)]);this[_0xf8997b(0x199)]['add'](_0x38d2ed['status$'][_0xf8997b(0x108)](_0xd975cd=>{var _0x2ab060=_0xf8997b;switch(_0xd975cd){case _0x1ce882[_0x2ab060(0x187)][_0x2ab060(0x19e)]:this[_0x2ab060(0x158)][_0x2ab060(0x16d)](),this[_0x2ab060(0x188)][_0x2ab060(0x1a1)]();break;case _0x1ce882['HistoryModeStatus'][_0x2ab060(0x16c)]:this[_0x2ab060(0x185)]();break;case _0x1ce882[_0x2ab060(0x187)][_0x2ab060(0xfc)]:this[_0x2ab060(0x185)](),this[_0x2ab060(0x166)][_0x2ab060(0x18e)]({'content':this['_localeService']['t'](_0x2ab060(0x112)),'type':_0x4438ea[_0x2ab060(0x130)][_0x2ab060(0xfc)],'duration':0xbb8});break;}})),this[_0xf8997b(0x199)][_0xf8997b(0x15e)](_0x38d2ed[_0xf8997b(0x136)][_0xf8997b(0x108)](async _0x1c9213=>{var _0x13a164=_0xf8997b;_0x1c9213&&this[_0x13a164(0x174)][_0x13a164(0x124)](_0x189de8['RevertRevisionMutation']['id'],{'unitId':_0x47f800,'revision':_0x1c9213});}));}[_0x5bfb46(0x14e)](_0x4b4749,_0x5f215c){var _0xc19b80=_0x5bfb46;const _0x1e989c=_0x4b4749[_0xc19b80(0x190)](_0x297cba[_0xc19b80(0x19a)]),_0x25cbe3=_0x5f215c[_0xc19b80(0x131)]();_0x25cbe3&&_0x1e989c[_0xc19b80(0xe1)](_0x25cbe3);}['_checkCanRevert'](_0xe5a8e7){var _0x359baf=_0x5bfb46;const _0x4d1ad4=this[_0x359baf(0xeb)][_0x359baf(0x13b)](_0xe5a8e7)[_0x359baf(0x121)]()[_0x359baf(0x1ac)](_0x2c05a4=>_0x2c05a4[_0x359baf(0xf4)]()),_0x32d994=new _0x5b05aa[(_0x359baf(0xc3))](_0xe5a8e7)['id'],_0x386738=_0x4d1ad4[_0x359baf(0x1ac)](_0x29f450=>new _0x5b05aa[(_0x359baf(0xda))](_0xe5a8e7,_0x29f450)['id']),_0x49fea6=_0x4d1ad4['map'](_0x3dd33e=>this[_0x359baf(0xc1)]['getSubunitRuleList'](_0xe5a8e7,_0x3dd33e)[_0x359baf(0x1ac)](_0x389ee4=>new _0x5b05aa['RangeProtectionPermissionEditPoint'](_0xe5a8e7,_0x3dd33e,_0x389ee4[_0x359baf(0x122)])['id']))['flat'](),_0x42c98e=new _0x5b05aa['WorkbookRecoverHistoryPermission'](_0xe5a8e7)['id'];return this['_permissionService'][_0x359baf(0x17a)]([_0x32d994,..._0x386738,..._0x49fea6,_0x42c98e])['every'](_0x3b6265=>!!_0x3b6265[_0x359baf(0xb0)]);}},_0x49a87d['HistoryLoaderService']=_0x376ff3([_0x5d79c9(0x0,_0xa2f4f9[_0x5bfb46(0xd1)](_0xa2f4f9['LocaleService'])),_0x5d79c9(0x1,_0xa2f4f9[_0x5bfb46(0xc8)]),_0x5d79c9(0x2,_0xa2f4f9['IConfigService']),_0x5d79c9(0x3,_0xa2f4f9[_0x5bfb46(0xe7)]),_0x5d79c9(0x4,_0x297cba[_0x5bfb46(0x19a)]),_0x5d79c9(0x5,_0xa2f4f9[_0x5bfb46(0xcb)]),_0x5d79c9(0x6,_0xa2f4f9[_0x5bfb46(0xd1)](_0x5b05aa['RangeProtectionRuleModel'])),_0x5d79c9(0x7,_0xa2f4f9[_0x5bfb46(0xd1)](_0x297cba['IDialogService'])),_0x5d79c9(0x8,_0xa2f4f9[_0x5bfb46(0xd1)](_0x297cba[_0x5bfb46(0x163)]))],_0x49a87d[_0x5bfb46(0xbc)]);var _0x297ac0=function(){var _0x379c65=_0x5bfb46;return _0x297ac0=Object[_0x379c65(0xb1)]||function(_0x3aa703){var _0x670145=_0x379c65;for(var _0x29ae1c,_0x271d5c=0x1,_0x2d5f17=arguments[_0x670145(0xbb)];_0x271d5c<_0x2d5f17;_0x271d5c++){_0x29ae1c=arguments[_0x271d5c];for(var _0x4e2617 in _0x29ae1c)Object[_0x670145(0x116)][_0x670145(0xd7)][_0x670145(0xad)](_0x29ae1c,_0x4e2617)&&(_0x3aa703[_0x4e2617]=_0x29ae1c[_0x4e2617]);}return _0x3aa703;},_0x297ac0[_0x379c65(0x129)](this,arguments);},_0x20af15=function(_0x1a7b7b,_0x1862b6){var _0x21a5e1=_0x5bfb46,_0x54b58d={};for(var _0x5f4cb2 in _0x1a7b7b)Object[_0x21a5e1(0x116)]['hasOwnProperty'][_0x21a5e1(0xad)](_0x1a7b7b,_0x5f4cb2)&&_0x1862b6[_0x21a5e1(0x95)](_0x5f4cb2)<0x0&&(_0x54b58d[_0x5f4cb2]=_0x1a7b7b[_0x5f4cb2]);if(_0x1a7b7b!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x55be2c=0x0,_0x5f4cb2=Object[_0x21a5e1(0xf6)](_0x1a7b7b);_0x55be2c<_0x5f4cb2[_0x21a5e1(0xbb)];_0x55be2c++)_0x1862b6[_0x21a5e1(0x95)](_0x5f4cb2[_0x55be2c])<0x0&&Object[_0x21a5e1(0x116)][_0x21a5e1(0xb5)][_0x21a5e1(0xad)](_0x1a7b7b,_0x5f4cb2[_0x55be2c])&&(_0x54b58d[_0x5f4cb2[_0x55be2c]]=_0x1a7b7b[_0x5f4cb2[_0x55be2c]]);}return _0x54b58d;},_0x5bd678=_0x598038[_0x5bfb46(0x10e)](function(_0x354f21,_0x39d02a){var _0x5723d5=_0x5bfb46,_0x32d2eb=_0x354f21[_0x5723d5(0x151)],_0x3a7a44=_0x354f21['id'],_0x5d9438=_0x354f21[_0x5723d5(0x1a0)],_0x18e632=_0x354f21[_0x5723d5(0xc6)],_0x123e1e=_0x20af15(_0x354f21,['icon','id',_0x5723d5(0x1a0),'extend']),_0x25953e=_0x5723d5(0x191)['concat'](_0x3a7a44,'\x20')[_0x5723d5(0x100)](_0x5d9438||'')['trim'](),_0x197863=_0x598038[_0x5723d5(0x18a)]('_'[_0x5723d5(0x100)](_0x3a8940()));return _0x1e846d(_0x32d2eb,''[_0x5723d5(0x100)](_0x3a7a44),{'defIds':_0x32d2eb['defIds'],'idSuffix':_0x197863[_0x5723d5(0x195)]},_0x297ac0({'ref':_0x39d02a,'className':_0x25953e},_0x123e1e),_0x18e632);});function _0x1e846d(_0x14fd12,_0x4d0a01,_0x4767c4,_0x463acb,_0x34894d){var _0x106ed8=_0x5bfb46;return _0x598038['createElement'](_0x14fd12[_0x106ed8(0x1a6)],_0x297ac0(_0x297ac0({'key':_0x4d0a01},_0x42320d(_0x14fd12,_0x4767c4,_0x34894d)),_0x463acb),(_0x43727a(_0x14fd12,_0x4767c4)[_0x106ed8(0x1ae)]||[])['map'](function(_0x5e3d0d,_0x22212b){var _0x561511=_0x106ed8;return _0x1e846d(_0x5e3d0d,''[_0x561511(0x100)](_0x4d0a01,'-')[_0x561511(0x100)](_0x14fd12[_0x561511(0x1a6)],'-')[_0x561511(0x100)](_0x22212b),_0x4767c4,void 0x0,_0x34894d);}));}function _0x42320d(_0x2b5d0d,_0x4215ac,_0xb4bba6){var _0x584fa2=_0x5bfb46,_0x51f3af=_0x297ac0({},_0x2b5d0d[_0x584fa2(0x13d)]);_0xb4bba6!=null&&_0xb4bba6['colorChannel1']&&_0x51f3af[_0x584fa2(0xe5)]===_0x584fa2(0xa0)&&(_0x51f3af[_0x584fa2(0xe5)]=_0xb4bba6[_0x584fa2(0xa0)]);var _0x4014c9=_0x4215ac['defIds'];return!_0x4014c9||_0x4014c9[_0x584fa2(0xbb)]===0x0||(_0x2b5d0d[_0x584fa2(0x1a6)]===_0x584fa2(0x181)&&_0x51f3af['xlink:href']&&(_0x51f3af[_0x584fa2(0x120)]=_0x51f3af['xlink:href']+_0x4215ac[_0x584fa2(0xc2)]),Object[_0x584fa2(0x145)](_0x51f3af)[_0x584fa2(0x147)](function(_0x180042){var _0xb8ed7d=_0x584fa2,_0x25c042=_0x180042[0x0],_0x478ff6=_0x180042[0x1];typeof _0x478ff6==_0xb8ed7d(0xef)&&(_0x51f3af[_0x25c042]=_0x478ff6[_0xb8ed7d(0x19c)](/url\(#(.*)\)/,_0xb8ed7d(0x1aa)[_0xb8ed7d(0x100)](_0x4215ac[_0xb8ed7d(0xc2)],')')));})),_0x51f3af;}function _0x43727a(_0x3e43f5,_0x4e4f38){var _0x4ad32e=_0x5bfb46,_0x10f1ab,_0x572ec6=_0x4e4f38[_0x4ad32e(0x198)];return!_0x572ec6||_0x572ec6['length']===0x0?_0x3e43f5:_0x3e43f5['tag']===_0x4ad32e(0x133)&&(!((_0x10f1ab=_0x3e43f5[_0x4ad32e(0x1ae)])===null||_0x10f1ab===void 0x0)&&_0x10f1ab[_0x4ad32e(0xbb)])?_0x297ac0(_0x297ac0({},_0x3e43f5),{'children':_0x3e43f5[_0x4ad32e(0x1ae)][_0x4ad32e(0x1ac)](function(_0x2265ea){var _0x1c0beb=_0x4ad32e;return typeof _0x2265ea[_0x1c0beb(0x13d)]['id']=='string'&&_0x572ec6&&_0x572ec6[_0x1c0beb(0x95)](_0x2265ea[_0x1c0beb(0x13d)]['id'])>-0x1?_0x297ac0(_0x297ac0({},_0x2265ea),{'attrs':_0x297ac0(_0x297ac0({},_0x2265ea[_0x1c0beb(0x13d)]),{'id':_0x2265ea[_0x1c0beb(0x13d)]['id']+_0x4e4f38['idSuffix']})}):_0x2265ea;})}):_0x3e43f5;}function _0x3a8940(){var _0x4cfd1b=_0x5bfb46;return Math[_0x4cfd1b(0x1a3)]()[_0x4cfd1b(0x102)](0x24)[_0x4cfd1b(0x9d)](0x2,0x8);}_0x5bd678[_0x5bfb46(0x99)]=_0x5bfb46(0x138);var _0x5b28b2={'tag':_0x5bfb46(0x180),'attrs':{'fill':_0x5bfb46(0x104),'viewBox':_0x5bfb46(0x17c),'width':_0x5bfb46(0x196),'height':_0x5bfb46(0x196)},'children':[{'tag':'g','attrs':{'fill':'currentColor','clipPath':_0x5bfb46(0xb3)},'children':[{'tag':_0x5bfb46(0x125),'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':_0x5bfb46(0x125),'attrs':{'d':_0x5bfb46(0x143)}}]},{'tag':_0x5bfb46(0x133),'attrs':{},'children':[{'tag':_0x5bfb46(0x101),'attrs':{'id':'history-single_clip0_907_281'},'children':[{'tag':'path','attrs':{'fill':_0x5bfb46(0x18b),'d':_0x5bfb46(0x115)}}]}]}],'defIds':[_0x5bfb46(0xaf)]},_0x2f2e4a=_0x598038['forwardRef'](function(_0x41e55a,_0x4d5015){var _0xaddf3=_0x5bfb46;return _0x598038[_0xaddf3(0x18c)](_0x5bd678,Object[_0xaddf3(0xb1)]({},_0x41e55a,{'id':_0xaddf3(0x177),'ref':_0x4d5015,'icon':_0x5b28b2}));});_0x2f2e4a[_0x5bfb46(0x99)]='HistorySingle';const _0x329cf9={'id':_0x5bfb46(0x12c),'type':_0xa2f4f9[_0x5bfb46(0xd4)][_0x5bfb46(0xea)],'handler':_0x48b8ce=>{var _0x49ce5b=_0x5bfb46;const _0x5b913b=_0x48b8ce['get'](_0x49a87d[_0x49ce5b(0xbc)]),_0x2e580f=_0x48b8ce[_0x49ce5b(0x190)](_0xa2f4f9[_0x49ce5b(0xc8)]),{unitId:_0x50060a}=_0x5b05aa[_0x49ce5b(0x179)](_0x2e580f)||{};return _0x50060a?(_0x5b913b['mountHistoryContent'](_0x50060a),!0x0):!0x1;}},_0x436de1=_0x5bfb46(0x9a);function _0x2802d0(_0xaf54c0){var _0x2a854e=_0x5bfb46;return{'id':_0x329cf9['id'],'type':_0x297cba['MenuItemType'][_0x2a854e(0x1a8)],'icon':_0x436de1,'tooltip':_0x2a854e(0x140),'hidden$':_0x297cba[_0x2a854e(0x132)](_0xaf54c0,_0xa2f4f9[_0x2a854e(0xa1)]['UNIVER_SHEET']),'disabled$':_0x51e94c[_0x2a854e(0xab)](_0xaf54c0,{'workbookTypes':[_0x5b05aa[_0x2a854e(0xc3)],_0x5b05aa['WorkbookViewHistoryPermission']],'worksheetTypes':[],'rangeTypes':[]})};}const _0x463c1d={[_0x297cba['RibbonStartGroup'][_0x5bfb46(0xdc)]]:{[_0x329cf9['id']]:{'order':0x0,'menuItemFactory':_0x2802d0}}};var _0x38fe64=Object['defineProperty'],_0x4ba7b5=Object['getOwnPropertyDescriptor'],_0x1e41d1=(_0x5d8e5c,_0x6f7088,_0x21c744,_0x4a7b62)=>{for(var _0x15c586=_0x4a7b62>0x1?void 0x0:_0x4a7b62?_0x4ba7b5(_0x6f7088,_0x21c744):_0x6f7088,_0x47fb89=_0x5d8e5c['length']-0x1,_0x39735e;_0x47fb89>=0x0;_0x47fb89--)(_0x39735e=_0x5d8e5c[_0x47fb89])&&(_0x15c586=(_0x4a7b62?_0x39735e(_0x6f7088,_0x21c744,_0x15c586):_0x39735e(_0x15c586))||_0x15c586);return _0x4a7b62&&_0x15c586&&_0x38fe64(_0x6f7088,_0x21c744,_0x15c586),_0x15c586;},_0x21a176=(_0x2be21a,_0x229936)=>(_0x39df21,_0x113ec6)=>_0x229936(_0x39df21,_0x113ec6,_0x2be21a);let _0x31ed4b=class extends _0xa2f4f9[_0x5bfb46(0x176)]{constructor(_0x4ed9e3,_0x27445e,_0x2993d6,_0x5f36a4,_0x43a3fd,_0x546d61,_0x52d43f,_0x498b10){var _0x49ca77=_0x5bfb46;super(),_0x2a6caa(this,_0x49ca77(0x192),null),(this[_0x49ca77(0x174)]=_0x4ed9e3,this[_0x49ca77(0x103)]=_0x27445e,this['_componentManager']=_0x2993d6,this[_0x49ca77(0xfb)]=_0x5f36a4,this['_localeService']=_0x43a3fd,this['_messageService']=_0x546d61,this['_collaborationController']=_0x52d43f,this['_localCacheService']=_0x498b10,this[_0x49ca77(0x14d)]());}[_0x5bfb46(0x14d)](){var _0x12eabd=_0x5bfb46;[_0x329cf9]['forEach'](_0xa697f4=>this[_0x12eabd(0xb2)](_0xa2f4f9[_0x12eabd(0xc7)](this[_0x12eabd(0x174)]['registerCommand'](_0xa697f4)))),this[_0x12eabd(0xb2)](this[_0x12eabd(0x152)][_0x12eabd(0x156)](_0x436de1,_0x2f2e4a)),this[_0x12eabd(0x103)][_0x12eabd(0x13f)](_0x463c1d),this[_0x12eabd(0xb2)](this[_0x12eabd(0x174)]['onCommandExecuted'](_0x3d783f=>{var _0x231430=_0x12eabd;if(_0x3d783f['id']===_0x189de8[_0x231430(0x107)]['id']){this[_0x231430(0x166)][_0x231430(0x18e)]({'content':this[_0x231430(0x128)]['t'](_0x231430(0x19b)),'type':_0x4438ea[_0x231430(0x130)][_0x231430(0x97)],'duration':0x1388});const {unitId:_0x29b3fb}=_0x3d783f['params'],_0x2314f6=this[_0x231430(0xee)][_0x231430(0xca)](_0x29b3fb),_0x41c7a3=_0x3517d7[_0x231430(0x1b2)]([_0x2314f6[_0x231430(0xd9)][_0x231430(0x160)],_0x2314f6[_0x231430(0x186)]])[_0x231430(0x108)](async([_0x14da16,_0xe8fd2])=>{var _0x184655=_0x231430;_0x14da16[_0x184655(0x1b7)]===_0x189de8[_0x184655(0xd3)][_0x184655(0x134)]&&(_0xe8fd2==null?void 0x0:_0xe8fd2[_0x184655(0xbd)])===_0x51c6ea[_0x184655(0x111)]['SYNCED']&&_0x14da16[_0x184655(0xbe)][_0x184655(0xf3)]['some'](_0x7398ba=>_0x7398ba['id']===_0x189de8[_0x184655(0x107)]['id'])&&(this[_0x184655(0xfb)][_0x184655(0x185)](),_0x41c7a3['unsubscribe'](),this[_0x184655(0x192)]&&clearTimeout(this[_0x184655(0x192)]),await this[_0x184655(0xd5)]['exhaustSavingTask'](),setTimeout(()=>window[_0x184655(0x96)][_0x184655(0x14c)]()));});this[_0x231430(0x192)]=setTimeout(()=>{var _0x3de1ff=_0x231430;_0x41c7a3['unsubscribe'](),this[_0x3de1ff(0x166)]['show']({'content':this['_localeService']['t'](_0x3de1ff(0x12f)),'type':_0x4438ea[_0x3de1ff(0x130)][_0x3de1ff(0xfc)],'duration':0xbb8});},0x1388);}}));}};_0x31ed4b=_0x1e41d1([_0x21a176(0x0,_0xa2f4f9[_0x5bfb46(0xe7)]),_0x21a176(0x1,_0x297cba[_0x5bfb46(0x17e)]),_0x21a176(0x2,_0xa2f4f9[_0x5bfb46(0xd1)](_0x297cba[_0x5bfb46(0xe0)])),_0x21a176(0x3,_0xa2f4f9['Inject'](_0x49a87d[_0x5bfb46(0xbc)])),_0x21a176(0x4,_0xa2f4f9[_0x5bfb46(0xd1)](_0xa2f4f9[_0x5bfb46(0x161)])),_0x21a176(0x5,_0x297cba[_0x5bfb46(0x19a)]),_0x21a176(0x6,_0xa2f4f9[_0x5bfb46(0xd1)](_0x51c6ea[_0x5bfb46(0x173)])),_0x21a176(0x7,_0xa2f4f9[_0x5bfb46(0xd1)](_0x51c6ea['LocalCacheService']))],_0x31ed4b);var _0x43cd56=Object[_0x5bfb46(0x1ab)],_0x1b2861=Object[_0x5bfb46(0x17d)],_0x36bf22=(_0x15e34e,_0x133d47,_0x23ee31,_0x3f5fd0)=>{var _0x4f19a1=_0x5bfb46;for(var _0x2bbbfb=_0x3f5fd0>0x1?void 0x0:_0x3f5fd0?_0x1b2861(_0x133d47,_0x23ee31):_0x133d47,_0x396724=_0x15e34e[_0x4f19a1(0xbb)]-0x1,_0x2687d7;_0x396724>=0x0;_0x396724--)(_0x2687d7=_0x15e34e[_0x396724])&&(_0x2bbbfb=(_0x3f5fd0?_0x2687d7(_0x133d47,_0x23ee31,_0x2bbbfb):_0x2687d7(_0x2bbbfb))||_0x2bbbfb);return _0x3f5fd0&&_0x2bbbfb&&_0x43cd56(_0x133d47,_0x23ee31,_0x2bbbfb),_0x2bbbfb;},_0x56111e=(_0x223f45,_0x113ca0)=>(_0x47c2c9,_0x1b0bdd)=>_0x113ca0(_0x47c2c9,_0x1b0bdd,_0x223f45);const _0x30daa4=_0x5bfb46(0x19d);_0x49a87d[_0x5bfb46(0xa9)]=(_0x4569aa=class extends _0xa2f4f9[_0x5bfb46(0xc9)]{constructor(_0x1dfee6=_0x17d50a,_0x3bbc91,_0x48ece5){var _0xf644d7=_0x5bfb46;super(),this[_0xf644d7(0x175)]=_0x1dfee6,this[_0xf644d7(0x9f)]=_0x3bbc91,this['_configService']=_0x48ece5;const {menu:_0x160801,..._0x46de28}=this[_0xf644d7(0x175)];_0x160801&&this[_0xf644d7(0xe4)]['setConfig'](_0xf644d7(0x197),_0x160801,{'merge':!0x0}),this[_0xf644d7(0xe4)]['setConfig'](_0x394c3b,_0x46de28),this[_0xf644d7(0x175)][_0xf644d7(0xf0)]&&this['_configService'][_0xf644d7(0x118)](_0x5e8f06,this[_0xf644d7(0x175)][_0xf644d7(0xf0)]);}[_0x5bfb46(0x9b)](){var _0x462154=_0x5bfb46;[[_0x49a87d[_0x462154(0xbc)]],[_0x31ed4b]][_0x462154(0x147)](_0x4b6876=>this['_injector'][_0x462154(0x15e)](_0x4b6876));}['onSteady'](){var _0x6205ab=_0x5bfb46;this['_injector'][_0x6205ab(0x190)](_0x31ed4b);}},_0x2a6caa(_0x4569aa,'type',_0xa2f4f9['UniverInstanceType'][_0x5bfb46(0x13a)]),_0x2a6caa(_0x4569aa,_0x5bfb46(0x1a9),_0x30daa4),_0x4569aa),_0x49a87d[_0x5bfb46(0xa9)]=_0x36bf22([_0x56111e(0x1,_0xa2f4f9[_0x5bfb46(0xd1)](_0xa2f4f9[_0x5bfb46(0x15f)])),_0x56111e(0x2,_0xa2f4f9[_0x5bfb46(0xc4)])],_0x49a87d[_0x5bfb46(0xa9)]),_0x49a87d['UNIVER_CONTAINER_ID_KEY']=_0x5e8f06,_0x49a87d[_0x5bfb46(0x189)]=_0xf0205d,Object[_0x5bfb46(0x1ab)](_0x49a87d,Symbol[_0x5bfb46(0xf9)],{'value':_0x5bfb46(0xb8)});}));
|
|
1
|
+
(function(_0x2cc390,_0x1f86d2){var _0x21f13f=_0x40d2,_0x51984d=_0x2cc390();while(!![]){try{var _0x1c17d0=-parseInt(_0x21f13f(0x122))/0x1+-parseInt(_0x21f13f(0x1e1))/0x2+-parseInt(_0x21f13f(0x1bd))/0x3*(parseInt(_0x21f13f(0x1a6))/0x4)+parseInt(_0x21f13f(0x179))/0x5*(-parseInt(_0x21f13f(0x172))/0x6)+-parseInt(_0x21f13f(0xe3))/0x7*(-parseInt(_0x21f13f(0xd6))/0x8)+parseInt(_0x21f13f(0x1c0))/0x9+parseInt(_0x21f13f(0x1a5))/0xa;if(_0x1c17d0===_0x1f86d2)break;else _0x51984d['push'](_0x51984d['shift']());}catch(_0x4c5401){_0x51984d['push'](_0x51984d['shift']());}}}(_0x1c98,0xebae7),function(_0x11009a,_0x598546){var _0x290755=_0x40d2;typeof exports==_0x290755(0xe9)&&typeof module<'u'?_0x598546(exports,require('@univerjs/core'),require('@univerjs/data-validation'),require(_0x290755(0x1ab)),require(_0x290755(0x1c6)),require(_0x290755(0xfb)),require(_0x290755(0x131)),require(_0x290755(0x137)),require(_0x290755(0x1cf)),require(_0x290755(0x14f)),require(_0x290755(0xff)),require('@univerjs/sheets'),require('@univerjs/sheets-conditional-formatting'),require(_0x290755(0x176)),require(_0x290755(0x188)),require('@univerjs/sheets-data-validation-ui'),require(_0x290755(0xfe)),require('@univerjs/sheets-drawing-ui'),require('@univerjs/sheets-filter'),require('@univerjs/sheets-filter-ui'),require(_0x290755(0x1e3)),require(_0x290755(0x189)),require(_0x290755(0x13a)),require(_0x290755(0x132)),require(_0x290755(0x17e)),require('@univerjs/sheets-ui'),require(_0x290755(0x18a)),require(_0x290755(0x1f0)),require(_0x290755(0x12b)),require(_0x290755(0x18e)),require(_0x290755(0x16c)),require(_0x290755(0x1ea)),require(_0x290755(0x101))):typeof define==_0x290755(0xd5)&&define[_0x290755(0xe6)]?define([_0x290755(0x1b3),'@univerjs/core',_0x290755(0x144),_0x290755(0x1ab),'@univerjs/docs',_0x290755(0xfb),_0x290755(0x131),_0x290755(0x137),_0x290755(0x1cf),_0x290755(0x14f),_0x290755(0xff),_0x290755(0x18b),_0x290755(0x1b7),_0x290755(0x176),_0x290755(0x188),_0x290755(0x175),'@univerjs/sheets-drawing',_0x290755(0x190),_0x290755(0x10d),'@univerjs/sheets-filter-ui',_0x290755(0x1e3),'@univerjs/sheets-formula-ui',_0x290755(0x13a),_0x290755(0x132),'@univerjs/sheets-numfmt',_0x290755(0x14a),_0x290755(0x18a),_0x290755(0x1f0),_0x290755(0x12b),_0x290755(0x18e),'@univerjs-pro/sheets-pivot','rxjs',_0x290755(0x101)],_0x598546):(_0x11009a=typeof globalThis<'u'?globalThis:_0x11009a||self,_0x598546(_0x11009a[_0x290755(0x18c)]={},_0x11009a['UniverCore'],_0x11009a[_0x290755(0xd0)],_0x11009a[_0x290755(0x17f)],_0x11009a[_0x290755(0x1a7)],_0x11009a[_0x290755(0x1a0)],_0x11009a[_0x290755(0x10e)],_0x11009a['UniverDrawingUi'],_0x11009a[_0x290755(0x1e8)],_0x11009a['UniverEngineRender'],_0x11009a[_0x290755(0x118)],_0x11009a[_0x290755(0x19a)],_0x11009a[_0x290755(0xed)],_0x11009a['UniverSheetsConditionalFormattingUi'],_0x11009a[_0x290755(0x182)],_0x11009a[_0x290755(0x134)],_0x11009a['UniverSheetsDrawing'],_0x11009a['UniverSheetsDrawingUi'],_0x11009a[_0x290755(0x19f)],_0x11009a[_0x290755(0x14e)],_0x11009a[_0x290755(0x136)],_0x11009a[_0x290755(0x14c)],_0x11009a[_0x290755(0x181)],_0x11009a[_0x290755(0x1bf)],_0x11009a[_0x290755(0x121)],_0x11009a[_0x290755(0x1f8)],_0x11009a['UniverUi'],_0x11009a[_0x290755(0xe1)],_0x11009a[_0x290755(0x1b5)],_0x11009a[_0x290755(0x1e9)],_0x11009a['UniverSheetsPivot'],_0x11009a[_0x290755(0x1ea)],_0x11009a[_0x290755(0x19b)]));}(this,function(_0x2e8ad2,_0x1e8e62,_0x166d16,_0x4b6fb7,_0x39da0b,_0x41e382,_0x38eded,_0x2005ef,_0x4f9dc3,_0x168cb9,_0x19a5f7,_0x53434b,_0x804777,_0x50c950,_0x563a60,_0x4003e9,_0x5ef6bb,_0x2002de,_0x34345a,_0x45e22e,_0x1491b3,_0x120a76,_0x24e7b9,_0x1bd270,_0x3e84c8,_0x4c6b77,_0x22dc3c,_0x557293,_0x9aebcc,_0x3e2793,_0x1f0308,_0x3eba53,_0x174ec6){'use strict';var _0x101afc=_0x40d2;var _0x32d241=Object[_0x101afc(0x12c)],_0x5d52cc=(_0x29cba4,_0x21ecab,_0x5a0791)=>_0x21ecab in _0x29cba4?_0x32d241(_0x29cba4,_0x21ecab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5a0791}):_0x29cba4[_0x21ecab]=_0x5a0791,_0x2ea48b=(_0x1dfa62,_0x59abc6,_0x32c842)=>_0x5d52cc(_0x1dfa62,typeof _0x59abc6!=_0x101afc(0xfc)?_0x59abc6+'':_0x59abc6,_0x32c842),_0x26395e;const _0x28b1b1='edit-history-loader.config',_0x2d21a3={};var _0xaeda7d=Object['defineProperty'],_0x5434d0=Object[_0x101afc(0x11f)],_0x5f5dda=(_0x3fc236,_0xb6df43,_0x131250,_0x452547)=>{var _0x2e5a4f=_0x101afc;for(var _0x64a77d=_0x452547>0x1?void 0x0:_0x452547?_0x5434d0(_0xb6df43,_0x131250):_0xb6df43,_0x36c4ff=_0x3fc236[_0x2e5a4f(0xe0)]-0x1,_0x5ac097;_0x36c4ff>=0x0;_0x36c4ff--)(_0x5ac097=_0x3fc236[_0x36c4ff])&&(_0x64a77d=(_0x452547?_0x5ac097(_0xb6df43,_0x131250,_0x64a77d):_0x5ac097(_0x64a77d))||_0x64a77d);return _0x452547&&_0x64a77d&&_0xaeda7d(_0xb6df43,_0x131250,_0x64a77d),_0x64a77d;},_0x2a42e3=(_0x1c5acc,_0x4d9c47)=>(_0xfb9ab9,_0x5bd304)=>_0x4d9c47(_0xfb9ab9,_0x5bd304,_0x1c5acc);const _0x3d9ecd=_0x101afc(0x167),_0x58f1f6='UNIVER_CONTAINER_ID',_0x524704='univer-history-container';_0x2e8ad2[_0x101afc(0xdb)]=class extends _0x1e8e62[_0x101afc(0x15a)]{constructor(_0x427dad,_0xa39f8c,_0x1cad7a,_0x3beba0,_0x469151,_0xf0c862,_0x22b387,_0x2568ce,_0x323f04){var _0x82523a=_0x101afc;super(),_0x2ea48b(this,_0x82523a(0xef),null),_0x2ea48b(this,_0x82523a(0x15e),new _0x1e8e62['DisposableCollection']()),_0x2ea48b(this,'_pluginMap',new Map()),(this['_localeService']=_0x427dad,this[_0x82523a(0x1ed)]=_0xa39f8c,this[_0x82523a(0x10a)]=_0x1cad7a,this['_commandService']=_0x3beba0,this[_0x82523a(0x138)]=_0x469151,this[_0x82523a(0x16a)]=_0xf0c862,this[_0x82523a(0x1d8)]=_0x22b387,this['_dialogService']=_0x2568ce,this['_sidebarService']=_0x323f04,this[_0x82523a(0x1db)]());}['_init'](){var _0x37effd=_0x101afc;this['_initContainer'](),this[_0x37effd(0xdc)]();}[_0x101afc(0x1d6)](){var _0x308afb=_0x101afc,_0x16366f;const _0xb7f61d=(_0x16366f=this[_0x308afb(0x10a)][_0x308afb(0x1ef)](_0x58f1f6))!=null?_0x16366f:_0x3d9ecd,_0x483e69=document[_0x308afb(0x1ae)](_0xb7f61d);if(!_0x483e69)return;const _0x2da142=document[_0x308afb(0x1a2)](_0x308afb(0x1b4));_0x2da142['id']=_0x524704,_0x2da142['style']['position']='absolute',_0x2da142[_0x308afb(0x1c4)][_0x308afb(0x161)]='0',_0x2da142[_0x308afb(0x1c4)][_0x308afb(0x13d)]='0',_0x2da142[_0x308afb(0x1c4)][_0x308afb(0xfa)]=_0x308afb(0x1d7),_0x2da142[_0x308afb(0x1c4)][_0x308afb(0x1da)]=_0x308afb(0x1d7),_0x2da142[_0x308afb(0x1c4)][_0x308afb(0x112)]='1000',_0x2da142[_0x308afb(0x1c4)][_0x308afb(0x1c7)]=_0x308afb(0x129),_0x483e69[_0x308afb(0x17a)](_0x2da142);}[_0x101afc(0xdc)](){var _0x55320b=_0x101afc,_0x5ddb9b;[[_0x168cb9['UniverRenderEnginePlugin']],[_0x22dc3c[_0x55320b(0xd7)],{'container':_0x524704,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x22dc3c[_0x55320b(0xf1)],null]]}],[_0x38eded[_0x55320b(0x1dd)],{'override':[[_0x38eded[_0x55320b(0x1c2)],null]]}],[_0x39da0b[_0x55320b(0x1dc)],{'hasScroll':!0x1}],[_0x41e382[_0x55320b(0x113)]],[_0x3e84c8[_0x55320b(0x163)]],[_0x53434b[_0x55320b(0x1f3)],{'notExecuteFormula':!0x0}],[_0x4c6b77['UniverSheetsUIPlugin']],[_0x1491b3[_0x55320b(0x19d)]],[_0x120a76[_0x55320b(0x116)]],[_0x557293[_0x55320b(0x119)]],[_0x34345a['UniverSheetsFilterPlugin']],[_0x45e22e[_0x55320b(0x147)]],[_0x804777['UniverSheetsConditionalFormattingPlugin']],[_0x50c950[_0x55320b(0x191)]],[_0x24e7b9[_0x55320b(0x187)]],[_0x1bd270[_0x55320b(0x1c5)]],[_0x166d16[_0x55320b(0x120)]],[_0x563a60[_0x55320b(0x107)]],[_0x4003e9[_0x55320b(0x133)]],[_0x4f9dc3[_0x55320b(0xf9)],{'notExecuteFormula':!0x0}],[_0x19a5f7[_0x55320b(0xdd)],{'workerURL':_0x55320b(0xf6)}],[_0x2005ef[_0x55320b(0x10b)]],[_0x5ef6bb[_0x55320b(0x17c)]],[_0x2002de[_0x55320b(0x135)]],[_0x1f0308[_0x55320b(0xd4)],{'notExecuteFormula':!0x0}],[_0x3e2793[_0x55320b(0xcf)],{'historyListServerUrl':(_0x5ddb9b=this[_0x55320b(0x10a)][_0x55320b(0x1ef)](_0x28b1b1))==null?void 0x0:_0x5ddb9b[_0x55320b(0x166)]}]][_0x55320b(0x15f)](([_0x460f03,_0x51625d])=>this['registerPlugin'](_0x460f03,_0x51625d));}[_0x101afc(0x1d1)](){var _0x548f5f=_0x101afc;super[_0x548f5f(0x1d1)](),this[_0x548f5f(0x1ac)](),this[_0x548f5f(0x108)][_0x548f5f(0x1d5)]();}[_0x101afc(0x1bb)](_0x4bc39c,_0x470d6b,_0x2822e5){var _0x31c440=_0x101afc;if(this[_0x31c440(0x108)][_0x31c440(0x12e)](_0x4bc39c['pluginName'])&&!_0x2822e5)throw new Error(_0x31c440(0x173)+_0x4bc39c[_0x31c440(0x142)]+_0x31c440(0x1df));this['_pluginMap']['set'](_0x4bc39c['pluginName'],[_0x4bc39c,_0x470d6b]);}[_0x101afc(0x106)](){var _0x901bc8=_0x101afc;return Array[_0x901bc8(0x1ee)](this[_0x901bc8(0x108)]['values']());}[_0x101afc(0x110)](_0x131173){var _0x3db719=_0x101afc;const _0xfe0712=document['getElementById'](_0x524704);_0xfe0712&&(_0xfe0712['style']['display']=_0x3db719(0xe8),this[_0x3db719(0xec)](_0x131173,_0x524704));}[_0x101afc(0x1ac)](){var _0x10efb4=_0x101afc,_0x528f1b;this['_disposableCollection']['dispose'](),(_0x528f1b=this[_0x10efb4(0xef)])==null||_0x528f1b['dispose'](),this[_0x10efb4(0xef)]=null;const _0x10eaab=document[_0x10efb4(0x1ae)](_0x524704);_0x10eaab&&(_0x10eaab[_0x10efb4(0x1c4)][_0x10efb4(0x1c7)]=_0x10efb4(0x129));}[_0x101afc(0xec)](_0x49faba,_0x23c65f){var _0x2f9c87=_0x101afc;if(this[_0x2f9c87(0xef)])return;const _0x5ddcfe=new _0x1e8e62[(_0x2f9c87(0x169))]({'theme':_0x4b6fb7[_0x2f9c87(0x157)],'locales':{[this['_localeService']['getCurrentLocale']()]:this[_0x2f9c87(0x145)][_0x2f9c87(0x180)]()},'override':[[_0x1e8e62[_0x2f9c87(0x1f7)],null]]});this[_0x2f9c87(0xef)]=_0x5ddcfe;const _0x20f2b8=_0x5ddcfe[_0x2f9c87(0x195)]();_0x20f2b8[_0x2f9c87(0x165)](_0x1e8e62['LocaleService'])[_0x2f9c87(0x12a)](this[_0x2f9c87(0x145)][_0x2f9c87(0x1f2)]()),_0x20f2b8[_0x2f9c87(0x165)](_0x1e8e62['IConfigService'])[_0x2f9c87(0x105)](_0x9aebcc[_0x2f9c87(0x1e0)],this[_0x2f9c87(0x10a)][_0x2f9c87(0x1ef)](_0x9aebcc[_0x2f9c87(0x1e0)])),this[_0x2f9c87(0x108)][_0x2f9c87(0x15f)](([_0x444471,_0x4314be])=>{var _0x37baff=_0x2f9c87;_0x5ddcfe[_0x37baff(0x1bb)](_0x444471,_0x4314be);}),_0x20f2b8[_0x2f9c87(0x198)](_0x3ae0a1=>{var _0x1abc58=_0x2f9c87;this[_0x1abc58(0x1c3)](_0x3ae0a1,_0x49faba),this[_0x1abc58(0x1d2)](_0x3ae0a1,this[_0x1abc58(0x138)]);});const _0xcb7748=_0x20f2b8[_0x2f9c87(0x165)](_0x3e2793[_0x2f9c87(0x17b)]),_0x24f4ef=this[_0x2f9c87(0x186)](_0x49faba);_0xcb7748[_0x2f9c87(0x156)](_0x49faba,_0x23c65f,_0x24f4ef);}[_0x101afc(0x1c3)](_0x4734f8,_0x1a2155){var _0xb07b98=_0x101afc;const _0x2bdcaa=_0x4734f8[_0xb07b98(0x165)](_0x3e2793[_0xb07b98(0x17b)]);this[_0xb07b98(0x15e)]['add'](_0x2bdcaa[_0xb07b98(0x170)]['subscribe'](_0x8b0a07=>{var _0x4145f9=_0xb07b98;switch(_0x8b0a07){case _0x3e2793['HistoryModeStatus'][_0x4145f9(0x18f)]:this[_0x4145f9(0x102)][_0x4145f9(0x146)](),this['_sidebarService'][_0x4145f9(0x103)]();break;case _0x3e2793[_0x4145f9(0x16b)]['Exited']:this['unMountHistoryContent']();break;case _0x3e2793['HistoryModeStatus'][_0x4145f9(0x1cc)]:this[_0x4145f9(0x1ac)](),this[_0x4145f9(0x138)][_0x4145f9(0x1d9)]({'content':this['_localeService']['t'](_0x4145f9(0x1ad)),'type':_0x4b6fb7[_0x4145f9(0x184)][_0x4145f9(0x1cc)],'duration':0xbb8});break;}})),this['_disposableCollection'][_0xb07b98(0x13e)](_0x2bdcaa['revertRevision$'][_0xb07b98(0xda)](async _0x3349a1=>{var _0x203def=_0xb07b98;_0x3349a1&&this['_commandService'][_0x203def(0x1b1)](_0x557293[_0x203def(0x1af)]['id'],{'unitId':_0x1a2155,'revision':_0x3349a1});}));}[_0x101afc(0x1d2)](_0x3ba0b5,_0x5f80cc){var _0xb3405=_0x101afc;const _0x458a87=_0x3ba0b5[_0xb3405(0x165)](_0x22dc3c[_0xb3405(0x11a)]),_0x1eb261=_0x5f80cc[_0xb3405(0xeb)]();_0x1eb261&&_0x458a87[_0xb3405(0x152)](_0x1eb261);}[_0x101afc(0x186)](_0x57080f){var _0xf1625d=_0x101afc;const _0x11112d=this[_0xf1625d(0x1ed)][_0xf1625d(0x183)](_0x57080f)[_0xf1625d(0x19c)]()['map'](_0x2f1f0c=>_0x2f1f0c['getSheetId']()),_0x22b095=new _0x53434b[(_0xf1625d(0x19e))](_0x57080f)['id'],_0x5e97fc=_0x11112d['map'](_0x28b7ca=>new _0x53434b[(_0xf1625d(0x155))](_0x57080f,_0x28b7ca)['id']),_0x59fb7a=_0x11112d['map'](_0x41fb14=>this['_selectionProtectionRuleModel']['getSubunitRuleList'](_0x57080f,_0x41fb14)[_0xf1625d(0x1f5)](_0x10b31b=>new _0x53434b[(_0xf1625d(0x16d))](_0x57080f,_0x41fb14,_0x10b31b[_0xf1625d(0x149)])['id']))[_0xf1625d(0x11c)](),_0x22cec1=new _0x53434b[(_0xf1625d(0x1cb))](_0x57080f)['id'];return this[_0xf1625d(0x16a)][_0xf1625d(0x124)]([_0x22b095,..._0x5e97fc,..._0x59fb7a,_0x22cec1])[_0xf1625d(0x1d4)](_0x1a6f6b=>!!_0x1a6f6b[_0xf1625d(0x199)]);}},_0x2e8ad2['HistoryLoaderService']=_0x5f5dda([_0x2a42e3(0x0,_0x1e8e62[_0x101afc(0x15c)](_0x1e8e62[_0x101afc(0x1d3)])),_0x2a42e3(0x1,_0x1e8e62[_0x101afc(0x11b)]),_0x2a42e3(0x2,_0x1e8e62[_0x101afc(0x174)]),_0x2a42e3(0x3,_0x1e8e62['ICommandService']),_0x2a42e3(0x4,_0x22dc3c[_0x101afc(0x11a)]),_0x2a42e3(0x5,_0x1e8e62[_0x101afc(0x13f)]),_0x2a42e3(0x6,_0x1e8e62[_0x101afc(0x15c)](_0x53434b['RangeProtectionRuleModel'])),_0x2a42e3(0x7,_0x1e8e62['Inject'](_0x22dc3c['IDialogService'])),_0x2a42e3(0x8,_0x1e8e62[_0x101afc(0x15c)](_0x22dc3c[_0x101afc(0x177)]))],_0x2e8ad2[_0x101afc(0xdb)]);var _0x1227a4=function(){var _0x45eead=_0x101afc;return _0x1227a4=Object[_0x45eead(0x192)]||function(_0x69ca2c){var _0x3fe27e=_0x45eead;for(var _0x4fe087,_0x5ea09c=0x1,_0x3d4751=arguments[_0x3fe27e(0xe0)];_0x5ea09c<_0x3d4751;_0x5ea09c++){_0x4fe087=arguments[_0x5ea09c];for(var _0x4e8e43 in _0x4fe087)Object[_0x3fe27e(0x115)][_0x3fe27e(0xf5)][_0x3fe27e(0x153)](_0x4fe087,_0x4e8e43)&&(_0x69ca2c[_0x4e8e43]=_0x4fe087[_0x4e8e43]);}return _0x69ca2c;},_0x1227a4[_0x45eead(0x1bc)](this,arguments);},_0x5b39d7=function(_0x7dd5ff,_0x20c641){var _0x424ab1=_0x101afc,_0x48e997={};for(var _0x5b2013 in _0x7dd5ff)Object[_0x424ab1(0x115)]['hasOwnProperty'][_0x424ab1(0x153)](_0x7dd5ff,_0x5b2013)&&_0x20c641[_0x424ab1(0xf0)](_0x5b2013)<0x0&&(_0x48e997[_0x5b2013]=_0x7dd5ff[_0x5b2013]);if(_0x7dd5ff!=null&&typeof Object[_0x424ab1(0x160)]=='function'){for(var _0x24b54c=0x0,_0x5b2013=Object[_0x424ab1(0x160)](_0x7dd5ff);_0x24b54c<_0x5b2013[_0x424ab1(0xe0)];_0x24b54c++)_0x20c641[_0x424ab1(0xf0)](_0x5b2013[_0x24b54c])<0x0&&Object[_0x424ab1(0x115)][_0x424ab1(0x16e)][_0x424ab1(0x153)](_0x7dd5ff,_0x5b2013[_0x24b54c])&&(_0x48e997[_0x5b2013[_0x24b54c]]=_0x7dd5ff[_0x5b2013[_0x24b54c]]);}return _0x48e997;},_0x8db1e1=_0x174ec6[_0x101afc(0x1b8)](function(_0x3ff3e3,_0x30927c){var _0x2c8dc1=_0x101afc,_0x1fb7f7=_0x3ff3e3[_0x2c8dc1(0x125)],_0x306d78=_0x3ff3e3['id'],_0x24ff3c=_0x3ff3e3['className'],_0x42c0da=_0x3ff3e3[_0x2c8dc1(0xe4)],_0x2e8e1d=_0x5b39d7(_0x3ff3e3,['icon','id',_0x2c8dc1(0x178),'extend']),_0x264cf0=_0x2c8dc1(0x1f4)[_0x2c8dc1(0x130)](_0x306d78,'\x20')[_0x2c8dc1(0x130)](_0x24ff3c||'')['trim'](),_0x10e445=_0x174ec6[_0x2c8dc1(0xf8)]('_'[_0x2c8dc1(0x130)](_0x1a2686()));return _0x23b859(_0x1fb7f7,''['concat'](_0x306d78),{'defIds':_0x1fb7f7[_0x2c8dc1(0xf4)],'idSuffix':_0x10e445[_0x2c8dc1(0x10c)]},_0x1227a4({'ref':_0x30927c,'className':_0x264cf0},_0x2e8e1d),_0x42c0da);});function _0x23b859(_0x205a3c,_0x14fdf8,_0x31c812,_0x51ad37,_0x548916){var _0x108919=_0x101afc;return _0x174ec6[_0x108919(0x1a2)](_0x205a3c[_0x108919(0x196)],_0x1227a4(_0x1227a4({'key':_0x14fdf8},_0x3693e9(_0x205a3c,_0x31c812,_0x548916)),_0x51ad37),(_0x58b8a7(_0x205a3c,_0x31c812)[_0x108919(0x151)]||[])[_0x108919(0x1f5)](function(_0x44153e,_0x15af86){var _0x3779ca=_0x108919;return _0x23b859(_0x44153e,''['concat'](_0x14fdf8,'-')[_0x3779ca(0x130)](_0x205a3c['tag'],'-')[_0x3779ca(0x130)](_0x15af86),_0x31c812,void 0x0,_0x548916);}));}function _0x3693e9(_0x1174c1,_0x3d2daa,_0x2aa426){var _0x77509=_0x101afc,_0x1f9cd9=_0x1227a4({},_0x1174c1[_0x77509(0xea)]);_0x2aa426!=null&&_0x2aa426[_0x77509(0x14b)]&&_0x1f9cd9[_0x77509(0x171)]===_0x77509(0x14b)&&(_0x1f9cd9[_0x77509(0x171)]=_0x2aa426[_0x77509(0x14b)]);var _0x252b1f=_0x3d2daa['defIds'];return!_0x252b1f||_0x252b1f[_0x77509(0xe0)]===0x0||(_0x1174c1[_0x77509(0x196)]===_0x77509(0xe7)&&_0x1f9cd9[_0x77509(0x1eb)]&&(_0x1f9cd9[_0x77509(0x1eb)]=_0x1f9cd9['xlink:href']+_0x3d2daa[_0x77509(0x185)]),Object[_0x77509(0x1e4)](_0x1f9cd9)[_0x77509(0x15f)](function(_0x67dc1e){var _0x728376=_0x77509,_0x5da6c=_0x67dc1e[0x0],_0x8be9cd=_0x67dc1e[0x1];typeof _0x8be9cd=='string'&&(_0x1f9cd9[_0x5da6c]=_0x8be9cd[_0x728376(0x1b2)](/url\(#(.*)\)/,'url(#$1'[_0x728376(0x130)](_0x3d2daa[_0x728376(0x185)],')')));})),_0x1f9cd9;}function _0x58b8a7(_0x4d39a4,_0x2eaa40){var _0x379dfe=_0x101afc,_0x43e236,_0x3aaa48=_0x2eaa40[_0x379dfe(0xf4)];return!_0x3aaa48||_0x3aaa48[_0x379dfe(0xe0)]===0x0?_0x4d39a4:_0x4d39a4[_0x379dfe(0x196)]===_0x379dfe(0xd3)&&(!((_0x43e236=_0x4d39a4[_0x379dfe(0x151)])===null||_0x43e236===void 0x0)&&_0x43e236[_0x379dfe(0xe0)])?_0x1227a4(_0x1227a4({},_0x4d39a4),{'children':_0x4d39a4[_0x379dfe(0x151)][_0x379dfe(0x1f5)](function(_0x5f55c2){var _0x1d5beb=_0x379dfe;return typeof _0x5f55c2[_0x1d5beb(0xea)]['id']==_0x1d5beb(0x114)&&_0x3aaa48&&_0x3aaa48[_0x1d5beb(0xf0)](_0x5f55c2['attrs']['id'])>-0x1?_0x1227a4(_0x1227a4({},_0x5f55c2),{'attrs':_0x1227a4(_0x1227a4({},_0x5f55c2[_0x1d5beb(0xea)]),{'id':_0x5f55c2[_0x1d5beb(0xea)]['id']+_0x2eaa40['idSuffix']})}):_0x5f55c2;})}):_0x4d39a4;}function _0x1a2686(){var _0x5a3bf4=_0x101afc;return Math[_0x5a3bf4(0x1cd)]()[_0x5a3bf4(0x1b6)](0x24)[_0x5a3bf4(0xd9)](0x2,0x8);}_0x8db1e1[_0x101afc(0x1c1)]=_0x101afc(0x111);var _0x3292ec={'tag':_0x101afc(0x168),'attrs':{'fill':'none','viewBox':_0x101afc(0xdf),'width':_0x101afc(0xf2),'height':_0x101afc(0xf2)},'children':[{'tag':'g','attrs':{'fill':_0x101afc(0x1e5),'clipPath':_0x101afc(0x154)},'children':[{'tag':_0x101afc(0xde),'attrs':{'d':_0x101afc(0x164)}},{'tag':_0x101afc(0xde),'attrs':{'d':_0x101afc(0x100)}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'history-single_clip0_907_281'},'children':[{'tag':_0x101afc(0xde),'attrs':{'fill':_0x101afc(0x1be),'d':_0x101afc(0x140)}}]}]}],'defIds':[_0x101afc(0x159)]},_0x3b3c70=_0x174ec6[_0x101afc(0x1b8)](function(_0x4e1eea,_0x32506d){var _0x25d840=_0x101afc;return _0x174ec6[_0x25d840(0x1a2)](_0x8db1e1,Object[_0x25d840(0x192)]({},_0x4e1eea,{'id':_0x25d840(0x17d),'ref':_0x32506d,'icon':_0x3292ec}));});_0x3b3c70[_0x101afc(0x1c1)]=_0x101afc(0x1b0);const _0x4d3b7d={'id':_0x101afc(0x148),'type':_0x1e8e62[_0x101afc(0x1d0)][_0x101afc(0xd8)],'handler':_0x1c4d02=>{var _0x197abf=_0x101afc;const _0x521b1b=_0x1c4d02['get'](_0x2e8ad2[_0x197abf(0xdb)]),_0x47e6c8=_0x1c4d02[_0x197abf(0x165)](_0x1e8e62[_0x197abf(0x11b)]),{unitId:_0xec442c}=_0x53434b[_0x197abf(0x1ba)](_0x47e6c8)||{};return _0xec442c?(_0x521b1b[_0x197abf(0x110)](_0xec442c),!0x0):!0x1;}},_0xcd33d0=_0x101afc(0x1b0);function _0x14e59(_0x4e80e6){var _0x48a67b=_0x101afc;return{'id':_0x4d3b7d['id'],'type':_0x22dc3c['MenuItemType']['BUTTON'],'icon':_0xcd33d0,'tooltip':'editHistory.panel.title','hidden$':_0x22dc3c[_0x48a67b(0x18d)](_0x4e80e6,_0x1e8e62[_0x48a67b(0x13b)]['UNIVER_SHEET']),'disabled$':_0x4c6b77[_0x48a67b(0x141)](_0x4e80e6,{'workbookTypes':[_0x53434b[_0x48a67b(0x19e)],_0x53434b[_0x48a67b(0x1f9)]],'worksheetTypes':[],'rangeTypes':[]})};}const _0x2615a1={[_0x22dc3c[_0x101afc(0x1de)][_0x101afc(0x162)]]:{[_0x4d3b7d['id']]:{'order':0x0,'menuItemFactory':_0x14e59}}};var _0x4cce25=Object[_0x101afc(0x12c)],_0x409bf9=Object[_0x101afc(0x11f)],_0x59edd4=(_0x5b0760,_0x16aaa9,_0x3dca4f,_0x2a9609)=>{var _0x25b6ed=_0x101afc;for(var _0x2c3680=_0x2a9609>0x1?void 0x0:_0x2a9609?_0x409bf9(_0x16aaa9,_0x3dca4f):_0x16aaa9,_0x193f56=_0x5b0760[_0x25b6ed(0xe0)]-0x1,_0xdd154f;_0x193f56>=0x0;_0x193f56--)(_0xdd154f=_0x5b0760[_0x193f56])&&(_0x2c3680=(_0x2a9609?_0xdd154f(_0x16aaa9,_0x3dca4f,_0x2c3680):_0xdd154f(_0x2c3680))||_0x2c3680);return _0x2a9609&&_0x2c3680&&_0x4cce25(_0x16aaa9,_0x3dca4f,_0x2c3680),_0x2c3680;},_0x2a73e9=(_0x153d3,_0x268d70)=>(_0x599c32,_0x594ffc)=>_0x268d70(_0x599c32,_0x594ffc,_0x153d3);let _0x486bba=class extends _0x1e8e62[_0x101afc(0xce)]{constructor(_0x23bee5,_0x53d4da,_0x31b98a,_0x5eacd2,_0xa8a56c,_0x59832f,_0x2ff35a,_0x309691){var _0x2cca47=_0x101afc;super(),_0x2ea48b(this,'_revertErrorTimer',null),(this[_0x2cca47(0x109)]=_0x23bee5,this['_menuManagerService']=_0x53d4da,this[_0x2cca47(0x14d)]=_0x31b98a,this[_0x2cca47(0xd2)]=_0x5eacd2,this[_0x2cca47(0x145)]=_0xa8a56c,this[_0x2cca47(0x138)]=_0x59832f,this[_0x2cca47(0x10f)]=_0x2ff35a,this[_0x2cca47(0x117)]=_0x309691,this['_init']());}[_0x101afc(0x1db)](){var _0x4e320a=_0x101afc;[_0x4d3b7d]['forEach'](_0x1b4c6f=>this[_0x4e320a(0xe2)](_0x1e8e62['toDisposable'](this[_0x4e320a(0x109)]['registerCommand'](_0x1b4c6f)))),this[_0x4e320a(0xe2)](this[_0x4e320a(0x14d)][_0x4e320a(0x13c)](_0xcd33d0,_0x3b3c70)),this[_0x4e320a(0x1a4)][_0x4e320a(0x1e7)](_0x2615a1),this[_0x4e320a(0xe2)](this['_commandService']['onCommandExecuted'](_0x58e689=>{var _0x4b747f=_0x4e320a;if(_0x58e689['id']===_0x557293[_0x4b747f(0x1af)]['id']){this[_0x4b747f(0x138)][_0x4b747f(0x1d9)]({'content':this['_localeService']['t'](_0x4b747f(0x1a8)),'type':_0x4b6fb7[_0x4b747f(0x184)][_0x4b747f(0x128)],'duration':0x1388});const {unitId:_0xf844fb}=_0x58e689[_0x4b747f(0xf7)],_0x175bb5=this['_collaborationController'][_0x4b747f(0x126)](_0xf844fb),_0x5ad01e=_0x3eba53[_0x4b747f(0xee)]([_0x175bb5[_0x4b747f(0xd1)][_0x4b747f(0x1b9)],_0x175bb5[_0x4b747f(0x1ec)]])['subscribe'](async([_0xdded0e,_0x5e1501])=>{var _0xc9633b=_0x4b747f;_0xdded0e[_0xc9633b(0x12f)]===_0x557293[_0xc9633b(0x123)][_0xc9633b(0x193)]&&(_0x5e1501==null?void 0x0:_0x5e1501[_0xc9633b(0x1aa)])===_0x9aebcc[_0xc9633b(0x1c8)][_0xc9633b(0x1a3)]&&_0xdded0e[_0xc9633b(0xe5)]['mutations'][_0xc9633b(0x1c9)](_0x4b5cf8=>_0x4b5cf8['id']===_0x557293[_0xc9633b(0x1af)]['id'])&&(this[_0xc9633b(0xd2)][_0xc9633b(0x1ac)](),_0x5ad01e[_0xc9633b(0x1f1)](),this['_revertErrorTimer']&&clearTimeout(this[_0xc9633b(0x15d)]),await this[_0xc9633b(0x117)]['exhaustSavingTask'](),setTimeout(()=>window[_0xc9633b(0x1ce)][_0xc9633b(0x127)]()));});this[_0x4b747f(0x15d)]=setTimeout(()=>{var _0x1eb0e8=_0x4b747f;_0x5ad01e['unsubscribe'](),this[_0x1eb0e8(0x138)][_0x1eb0e8(0x1d9)]({'content':this[_0x1eb0e8(0x145)]['t'](_0x1eb0e8(0x143)),'type':_0x4b6fb7[_0x1eb0e8(0x184)][_0x1eb0e8(0x1cc)],'duration':0xbb8});},0x1388);}}));}};_0x486bba=_0x59edd4([_0x2a73e9(0x0,_0x1e8e62[_0x101afc(0x139)]),_0x2a73e9(0x1,_0x22dc3c[_0x101afc(0x1e2)]),_0x2a73e9(0x2,_0x1e8e62[_0x101afc(0x15c)](_0x22dc3c[_0x101afc(0x1a9)])),_0x2a73e9(0x3,_0x1e8e62[_0x101afc(0x15c)](_0x2e8ad2[_0x101afc(0xdb)])),_0x2a73e9(0x4,_0x1e8e62['Inject'](_0x1e8e62[_0x101afc(0x1d3)])),_0x2a73e9(0x5,_0x22dc3c['IMessageService']),_0x2a73e9(0x6,_0x1e8e62[_0x101afc(0x15c)](_0x9aebcc[_0x101afc(0x197)])),_0x2a73e9(0x7,_0x1e8e62[_0x101afc(0x15c)](_0x9aebcc[_0x101afc(0x150)]))],_0x486bba);var _0x452c9c=Object[_0x101afc(0x12c)],_0x178666=Object['getOwnPropertyDescriptor'],_0x3c15a9=(_0x460c02,_0x47bb53,_0x342c28,_0x3aa1c3)=>{var _0x484ad6=_0x101afc;for(var _0xb3e4fb=_0x3aa1c3>0x1?void 0x0:_0x3aa1c3?_0x178666(_0x47bb53,_0x342c28):_0x47bb53,_0x4a63b8=_0x460c02[_0x484ad6(0xe0)]-0x1,_0x4914ff;_0x4a63b8>=0x0;_0x4a63b8--)(_0x4914ff=_0x460c02[_0x4a63b8])&&(_0xb3e4fb=(_0x3aa1c3?_0x4914ff(_0x47bb53,_0x342c28,_0xb3e4fb):_0x4914ff(_0xb3e4fb))||_0xb3e4fb);return _0x3aa1c3&&_0xb3e4fb&&_0x452c9c(_0x47bb53,_0x342c28,_0xb3e4fb),_0xb3e4fb;},_0x423197=(_0x21a5e3,_0x2c3a6d)=>(_0x4a29da,_0x4d08b4)=>_0x2c3a6d(_0x4a29da,_0x4d08b4,_0x21a5e3);const _0x41de1f=_0x101afc(0x12d);_0x2e8ad2['UniverEditHistoryLoaderPlugin']=(_0x26395e=class extends _0x1e8e62[_0x101afc(0x1e6)]{constructor(_0x5d27b5=_0x2d21a3,_0xfd792d,_0x3f85ee){var _0x2c4c0c=_0x101afc;super(),this[_0x2c4c0c(0x1ca)]=_0x5d27b5,this['_injector']=_0xfd792d,this[_0x2c4c0c(0x10a)]=_0x3f85ee;const {menu:_0x9a3b17,..._0x2fae5c}=this[_0x2c4c0c(0x1ca)];_0x9a3b17&&this[_0x2c4c0c(0x10a)][_0x2c4c0c(0x105)](_0x2c4c0c(0x15b),_0x9a3b17,{'merge':!0x0}),this[_0x2c4c0c(0x10a)][_0x2c4c0c(0x105)](_0x28b1b1,_0x2fae5c),this['_config'][_0x2c4c0c(0xf3)]&&this[_0x2c4c0c(0x10a)][_0x2c4c0c(0x105)](_0x58f1f6,this['_config'][_0x2c4c0c(0xf3)]);}[_0x101afc(0x104)](){var _0x3ce71e=_0x101afc;[[_0x2e8ad2['HistoryLoaderService']],[_0x486bba]][_0x3ce71e(0x15f)](_0x569f00=>this['_injector'][_0x3ce71e(0x13e)](_0x569f00));}[_0x101afc(0x11e)](){var _0x274f19=_0x101afc;this[_0x274f19(0x11d)][_0x274f19(0x165)](_0x486bba);}},_0x2ea48b(_0x26395e,'type',_0x1e8e62[_0x101afc(0x13b)][_0x101afc(0x1f6)]),_0x2ea48b(_0x26395e,'pluginName',_0x41de1f),_0x26395e),_0x2e8ad2[_0x101afc(0xfd)]=_0x3c15a9([_0x423197(0x1,_0x1e8e62[_0x101afc(0x15c)](_0x1e8e62[_0x101afc(0x1a1)])),_0x423197(0x2,_0x1e8e62[_0x101afc(0x174)])],_0x2e8ad2[_0x101afc(0xfd)]),_0x2e8ad2[_0x101afc(0x194)]=_0x58f1f6,_0x2e8ad2[_0x101afc(0x158)]=_0x524704,Object[_0x101afc(0x12c)](_0x2e8ad2,Symbol['toStringTag'],{'value':_0x101afc(0x16f)});}));function _0x40d2(_0x1d7cfd,_0x363056){var _0x1c9890=_0x1c98();return _0x40d2=function(_0x40d247,_0x1abf17){_0x40d247=_0x40d247-0xce;var _0x43c65f=_0x1c9890[_0x40d247];return _0x43c65f;},_0x40d2(_0x1d7cfd,_0x363056);}function _0x1c98(){var _0x14be8d=['Plugin','mergeMenu','UniverEngineFormula','UniverEditHistoryViewer','rxjs','xlink:href','state$','_univerInstanceService','from','getConfig','@univerjs-pro/collaboration','unsubscribe','getCurrentLocale','UniverSheetsPlugin','univerjs-icon\x20univerjs-icon-','map','UNIVER_UNKNOWN','IAuthzIoService','UniverSheetsUi','WorkbookViewHistoryPermission','RxDisposable','UniverEditHistoryViewerPlugin','UniverDataValidation','session','_historyManagerService','defs','UniverSheetsPivotTablePlugin','function','1264uwDTKF','UniverUIPlugin','OPERATION','substring','subscribe','HistoryLoaderService','_initPlugins','UniverRPCMainThreadPlugin','path','0\x200\x2016\x2016','length','UniverCollaboration','disposeWithMe','81431plvLxI','extend','data','amd','use','block','object','attrs','getContainer','_initUniver','UniverSheetsConditionalFormatting','combineLatest','_historyUniver','indexOf','IDialogService','1em','univerContainerId','defIds','hasOwnProperty','./worker.js','params','useRef','UniverFormulaEnginePlugin','width','@univerjs/docs-ui','symbol','UniverEditHistoryLoaderPlugin','@univerjs/sheets-drawing','@univerjs/rpc','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','react','_dialogService','close','onStarting','setConfig','getAllPlugins','UniverSheetsDataValidationPlugin','_pluginMap','_commandService','_configService','UniverDrawingUIPlugin','current','@univerjs/sheets-filter','UniverDrawing','_collaborationController','mountHistoryContent','UniverIcon','zIndex','UniverDocsUIPlugin','string','prototype','UniverSheetsFormulaUIPlugin','_localCacheService','UniverRpc','UniverCollaborationPlugin','IMessageService','IUniverInstanceService','flat','_injector','onSteady','getOwnPropertyDescriptor','UniverDataValidationPlugin','UniverSheetsNumfmt','652509mIrWED','CollaborationEvent','composePermission','icon','getCollabEntity','reload','Loading','none','setLocale','@univerjs-pro/collaboration-client','defineProperty','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','has','eventID','concat','@univerjs/drawing','@univerjs/sheets-hyper-link-ui','UniverSheetsDataValidationUIPlugin','UniverSheetsDataValidationUi','UniverSheetsDrawingUIPlugin','UniverSheetsFormula','@univerjs/drawing-ui','_messageService','ICommandService','@univerjs/sheets-hyper-link','UniverInstanceType','register','left','add','IPermissionService','M0\x200H16V16H0z','getCurrentRangeDisable$','pluginName','editHistory.panel.revertFailed','@univerjs/data-validation','_localeService','closeAll','UniverSheetsFilterUIPlugin','univer.operation.toggle-edit-history','permissionId','@univerjs/sheets-ui','colorChannel1','UniverSheetsFormulaUi','_componentManager','UniverSheetsFilterUi','@univerjs/engine-render','LocalCacheService','children','setContainer','call','url(#history-single_clip0_907_281)','WorksheetEditPermission','triggerLoadVersions','greenTheme','UNIVER_HISTORY_CONTAINER_ID','history-single_clip0_907_281','Disposable','menu','Inject','_revertErrorTimer','_disposableCollection','forEach','getOwnPropertySymbols','top','OTHERS','UniverSheetsNumfmtPlugin','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','get','historyListServerUrl','univer-container','svg','Univer','_permissionService','HistoryModeStatus','@univerjs-pro/sheets-pivot','RangeProtectionPermissionEditPoint','propertyIsEnumerable','Module','status$','fill','18MAzMjd','[HistoryLoaderService]:\x20Plugin\x20','IConfigService','@univerjs/sheets-data-validation-ui','@univerjs/sheets-conditional-formatting-ui','ISidebarService','className','1598645UyxLur','appendChild','HistoryManagerService','UniverSheetsDrawingPlugin','history-single','@univerjs/sheets-numfmt','UniverDesign','getLocales','UniverSheetsHyperLink','UniverSheetsDataValidation','getUnit','MessageType','idSuffix','_checkCanRevert','UniverSheetsHyperLinkPlugin','@univerjs/sheets-data-validation','@univerjs/sheets-formula-ui','@univerjs/ui','@univerjs/sheets','UniverEditHistoryLoader','getMenuHiddenObservable','@univerjs-pro/edit-history-viewer','Entered','@univerjs/sheets-drawing-ui','UniverSheetsConditionalFormattingUIPlugin','assign','CHANGESET_ACK','UNIVER_CONTAINER_ID_KEY','__getInjector','tag','CollaborationController','invoke','value','UniverSheets','React','getSheets','UniverSheetsFormulaPlugin','WorkbookEditablePermission','UniverSheetsFilter','UniverDocsUi','Injector','createElement','SYNCED','_menuManagerService','21564680jVyUaN','3804TxbIvu','UniverDocs','editHistory.panel.reverting','ComponentManager','status','@univerjs/design','unMountHistoryContent','editHistory.panel.listFetchError','getElementById','RevertRevisionMutation','HistorySingle','executeCommand','replace','exports','div','UniverCollaborationClient','toString','@univerjs/sheets-conditional-formatting','forwardRef','event$','getSheetCommandTarget','registerPlugin','apply','1683DpLCbn','#fff','UniverSheetsHyperLinkUi','4019976NHOGGA','displayName','IImageIoService','_initListener','style','UniverSheetsHyperLinkUIPlugin','@univerjs/docs','display','CollaborationStatus','some','_config','WorkbookRecoverHistoryPermission','Error','random','location','@univerjs/engine-formula','CommandType','dispose','_initMessageService','LocaleService','every','clear','_initContainer','100%','_selectionProtectionRuleModel','show','height','_init','UniverDocsPlugin','UniverDrawingPlugin','RibbonStartGroup','\x20has\x20been\x20registered.','SNAPSHOT_SERVER_URL_KEY','2661176cRgHPj','IMenuManagerService','@univerjs/sheets-formula','entries','currentColor'];_0x1c98=function(){return _0x14be8d;};return _0x1c98();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/edit-history-loader",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0-alpha.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet edit history loader",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -30,8 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"./lib/*": "./lib/*"
|
|
32
32
|
},
|
|
33
|
-
"main": "./lib/
|
|
34
|
-
"module": "./lib/es/index.js",
|
|
33
|
+
"main": "./lib/es/index.js",
|
|
35
34
|
"types": "./lib/types/index.d.ts",
|
|
36
35
|
"publishConfig": {
|
|
37
36
|
"access": "public"
|
|
@@ -47,49 +46,49 @@
|
|
|
47
46
|
"rxjs": ">=7.0.0"
|
|
48
47
|
},
|
|
49
48
|
"dependencies": {
|
|
50
|
-
"@univerjs/icons": "^0.
|
|
51
|
-
"@univerjs-pro/collaboration": "0.
|
|
52
|
-
"@univerjs-pro/edit-history-viewer": "0.
|
|
53
|
-
"@univerjs-pro/collaboration-client": "0.
|
|
54
|
-
"@univerjs/
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs/
|
|
57
|
-
"@univerjs/docs": "0.
|
|
58
|
-
"@univerjs
|
|
59
|
-
"@univerjs/docs-ui": "0.
|
|
60
|
-
"@univerjs/drawing": "0.
|
|
61
|
-
"@univerjs/
|
|
62
|
-
"@univerjs/engine-render": "0.
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/rpc": "0.4.2",
|
|
49
|
+
"@univerjs/icons": "^0.2.5",
|
|
50
|
+
"@univerjs-pro/collaboration": "0.5.0-alpha.0",
|
|
51
|
+
"@univerjs-pro/edit-history-viewer": "0.5.0-alpha.0",
|
|
52
|
+
"@univerjs-pro/collaboration-client": "0.5.0-alpha.0",
|
|
53
|
+
"@univerjs-pro/sheets-pivot": "0.5.0-alpha.0",
|
|
54
|
+
"@univerjs/core": "0.5.0-alpha.0",
|
|
55
|
+
"@univerjs/data-validation": "0.5.0-alpha.0",
|
|
56
|
+
"@univerjs/docs": "0.5.0-alpha.0",
|
|
57
|
+
"@univerjs/design": "0.5.0-alpha.0",
|
|
58
|
+
"@univerjs/docs-ui": "0.5.0-alpha.0",
|
|
59
|
+
"@univerjs/drawing-ui": "0.5.0-alpha.0",
|
|
60
|
+
"@univerjs/drawing": "0.5.0-alpha.0",
|
|
61
|
+
"@univerjs/engine-render": "0.5.0-alpha.0",
|
|
62
|
+
"@univerjs/engine-formula": "0.5.0-alpha.0",
|
|
63
|
+
"@univerjs/rpc": "0.5.0-alpha.0",
|
|
66
64
|
"@univerjs/protocol": "0.1.39-alpha.38",
|
|
67
|
-
"@univerjs/sheets-conditional-formatting": "0.
|
|
68
|
-
"@univerjs/sheets-
|
|
69
|
-
"@univerjs/sheets
|
|
70
|
-
"@univerjs/sheets-
|
|
71
|
-
"@univerjs/sheets-drawing": "0.
|
|
72
|
-
"@univerjs/sheets-
|
|
73
|
-
"@univerjs/sheets-
|
|
74
|
-
"@univerjs/sheets-
|
|
75
|
-
"@univerjs/sheets-
|
|
76
|
-
"@univerjs/sheets-
|
|
77
|
-
"@univerjs/sheets-
|
|
78
|
-
"@univerjs/sheets-
|
|
79
|
-
"@univerjs/sheets-
|
|
80
|
-
"@univerjs/sheets-
|
|
81
|
-
"@univerjs/ui": "0.
|
|
65
|
+
"@univerjs/sheets-conditional-formatting-ui": "0.5.0-alpha.0",
|
|
66
|
+
"@univerjs/sheets-data-validation": "0.5.0-alpha.0",
|
|
67
|
+
"@univerjs/sheets": "0.5.0-alpha.0",
|
|
68
|
+
"@univerjs/sheets-conditional-formatting": "0.5.0-alpha.0",
|
|
69
|
+
"@univerjs/sheets-drawing": "0.5.0-alpha.0",
|
|
70
|
+
"@univerjs/sheets-data-validation-ui": "0.5.0-alpha.0",
|
|
71
|
+
"@univerjs/sheets-filter": "0.5.0-alpha.0",
|
|
72
|
+
"@univerjs/sheets-drawing-ui": "0.5.0-alpha.0",
|
|
73
|
+
"@univerjs/sheets-filter-ui": "0.5.0-alpha.0",
|
|
74
|
+
"@univerjs/sheets-formula": "0.5.0-alpha.0",
|
|
75
|
+
"@univerjs/sheets-hyper-link-ui": "0.5.0-alpha.0",
|
|
76
|
+
"@univerjs/sheets-formula-ui": "0.5.0-alpha.0",
|
|
77
|
+
"@univerjs/sheets-hyper-link": "0.5.0-alpha.0",
|
|
78
|
+
"@univerjs/sheets-numfmt": "0.5.0-alpha.0",
|
|
79
|
+
"@univerjs/sheets-ui": "0.5.0-alpha.0",
|
|
80
|
+
"@univerjs/ui": "0.5.0-alpha.0"
|
|
82
81
|
},
|
|
83
82
|
"devDependencies": {
|
|
84
|
-
"@types/react": "^18.3.
|
|
83
|
+
"@types/react": "^18.3.12",
|
|
85
84
|
"react": "18.3.1",
|
|
86
85
|
"rxjs": "^7.8.1",
|
|
87
86
|
"typescript": "5.6.3",
|
|
88
|
-
"vite": "^5.4.
|
|
89
|
-
"vitest": "^2.1.
|
|
90
|
-
"@univerjs-infra/shared": "0.
|
|
87
|
+
"vite": "^5.4.10",
|
|
88
|
+
"vitest": "^2.1.4",
|
|
89
|
+
"@univerjs-infra/shared": "0.5.0-alpha.0"
|
|
91
90
|
},
|
|
92
|
-
"
|
|
91
|
+
"space": {
|
|
93
92
|
".": {
|
|
94
93
|
"import": "./lib/es/index.js",
|
|
95
94
|
"require": "./lib/cjs/index.js",
|
|
@@ -107,6 +106,7 @@
|
|
|
107
106
|
"test:watch": "vitest",
|
|
108
107
|
"coverage": "vitest run --coverage",
|
|
109
108
|
"lint:types": "tsc --noEmit",
|
|
110
|
-
"build": "
|
|
111
|
-
}
|
|
109
|
+
"build": "tsx build.ts"
|
|
110
|
+
},
|
|
111
|
+
"module": "./lib/es/index.js"
|
|
112
112
|
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { MenuConfig } from '@univerjs/ui';
|
|
2
|
-
export declare const PLUGIN_CONFIG_KEY = "edit-history-loader.config";
|
|
3
|
-
export declare const configSymbol: unique symbol;
|
|
4
|
-
export interface IUniverEditHistoryLoaderConfig {
|
|
5
|
-
menu?: MenuConfig;
|
|
6
|
-
univerContainerId?: string;
|
|
7
|
-
/**
|
|
8
|
-
* @description The server url of the history list
|
|
9
|
-
* @default ''
|
|
10
|
-
*/
|
|
11
|
-
historyListServerUrl?: string;
|
|
12
|
-
}
|
|
13
|
-
export declare const defaultPluginConfig: IUniverEditHistoryLoaderConfig;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ICommandService, LocaleService, RxDisposable } from '@univerjs/core';
|
|
2
|
-
import { ComponentManager, IMenuManagerService, IMessageService } from '@univerjs/ui';
|
|
3
|
-
import { CollaborationController, LocalCacheService } from '@univerjs-pro/collaboration-client';
|
|
4
|
-
import { HistoryLoaderService } from '../services/history-loader.service';
|
|
5
|
-
export declare class HistoryLoaderController extends RxDisposable {
|
|
6
|
-
private readonly _commandService;
|
|
7
|
-
protected readonly _menuManagerService: IMenuManagerService;
|
|
8
|
-
private readonly _componentManager;
|
|
9
|
-
private readonly _historyManagerService;
|
|
10
|
-
private readonly _localeService;
|
|
11
|
-
private readonly _messageService;
|
|
12
|
-
private readonly _collaborationController;
|
|
13
|
-
private readonly _localCacheService;
|
|
14
|
-
private _revertErrorTimer;
|
|
15
|
-
constructor(_commandService: ICommandService, _menuManagerService: IMenuManagerService, _componentManager: ComponentManager, _historyManagerService: HistoryLoaderService, _localeService: LocaleService, _messageService: IMessageService, _collaborationController: CollaborationController, _localCacheService: LocalCacheService);
|
|
16
|
-
private _init;
|
|
17
|
-
}
|
package/lib/types/plugin.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IUniverEditHistoryLoaderConfig } from './controllers/config.schema';
|
|
2
|
-
import { IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
3
|
-
export declare class UniverEditHistoryLoaderPlugin extends Plugin {
|
|
4
|
-
private readonly _config;
|
|
5
|
-
protected _injector: Injector;
|
|
6
|
-
private readonly _configService;
|
|
7
|
-
static type: UniverInstanceType;
|
|
8
|
-
static pluginName: string;
|
|
9
|
-
constructor(_config: Partial<IUniverEditHistoryLoaderConfig> | undefined, _injector: Injector, _configService: IConfigService);
|
|
10
|
-
onStarting(): void;
|
|
11
|
-
onSteady(): void;
|
|
12
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { PluginCtor, Disposable, ICommandService, IConfigService, IPermissionService, IUniverInstanceService, LocaleService } from '@univerjs/core';
|
|
2
|
-
import { RangeProtectionRuleModel } from '@univerjs/sheets';
|
|
3
|
-
import { IDialogService, IMessageService, ISidebarService } from '@univerjs/ui';
|
|
4
|
-
export declare const DEFAULT_UNIVER_CONTAINER_ID = "univer-container";
|
|
5
|
-
export declare const UNIVER_CONTAINER_ID_KEY = "UNIVER_CONTAINER_ID";
|
|
6
|
-
export declare const UNIVER_HISTORY_CONTAINER_ID = "univer-history-container";
|
|
7
|
-
export declare class HistoryLoaderService extends Disposable {
|
|
8
|
-
private readonly _localeService;
|
|
9
|
-
private readonly _univerInstanceService;
|
|
10
|
-
private readonly _configService;
|
|
11
|
-
private readonly _commandService;
|
|
12
|
-
private readonly _messageService;
|
|
13
|
-
private readonly _permissionService;
|
|
14
|
-
private _selectionProtectionRuleModel;
|
|
15
|
-
private readonly _dialogService;
|
|
16
|
-
private readonly _sidebarService;
|
|
17
|
-
private _historyUniver;
|
|
18
|
-
private _disposableCollection;
|
|
19
|
-
private _pluginMap;
|
|
20
|
-
constructor(_localeService: LocaleService, _univerInstanceService: IUniverInstanceService, _configService: IConfigService, _commandService: ICommandService, _messageService: IMessageService, _permissionService: IPermissionService, _selectionProtectionRuleModel: RangeProtectionRuleModel, _dialogService: IDialogService, _sidebarService: ISidebarService);
|
|
21
|
-
private _init;
|
|
22
|
-
private _initContainer;
|
|
23
|
-
private _initPlugins;
|
|
24
|
-
dispose(): void;
|
|
25
|
-
registerPlugin<T extends PluginCtor>(ctor: T, config?: ConstructorParameters<T>[0], override?: false): void;
|
|
26
|
-
getAllPlugins(): [ctor: PluginCtor, config: object | undefined][];
|
|
27
|
-
mountHistoryContent(unitId: string): void;
|
|
28
|
-
unMountHistoryContent(): void;
|
|
29
|
-
private _initUniver;
|
|
30
|
-
private _initListener;
|
|
31
|
-
private _initMessageService;
|
|
32
|
-
private _checkCanRevert;
|
|
33
|
-
}
|