@univerjs-pro/edit-history-loader 0.15.0-insiders.20251227-453e4ff → 0.15.0-insiders.20260106-79b11f9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +38 -38
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0xcf3776=_0x25a1;(function(_0x52fc22,_0x38a416){const _0x1cbb50=_0x25a1,_0x593c64=_0x52fc22();while(!![]){try{const _0x436132=-parseInt(_0x1cbb50(0x1e8))/0x1+parseInt(_0x1cbb50(0x1cc))/0x2*(parseInt(_0x1cbb50(0x1f6))/0x3)+-parseInt(_0x1cbb50(0x14b))/0x4*(-parseInt(_0x1cbb50(0x162))/0x5)+parseInt(_0x1cbb50(0x1ed))/0x6*(parseInt(_0x1cbb50(0x1b3))/0x7)+-parseInt(_0x1cbb50(0x183))/0x8*(parseInt(_0x1cbb50(0x130))/0x9)+parseInt(_0x1cbb50(0x1eb))/0xa*(parseInt(_0x1cbb50(0x17f))/0xb)+parseInt(_0x1cbb50(0x1aa))/0xc;if(_0x436132===_0x38a416)break;else _0x593c64['push'](_0x593c64['shift']());}catch(_0x45b534){_0x593c64['push'](_0x593c64['shift']());}}}(_0x34a5,0xa3a85));var A=Object['defineProperty'],F=(_0xfd8379,_0x182630,_0x2ae564)=>_0x182630 in _0xfd8379?A(_0xfd8379,_0x182630,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ae564}):_0xfd8379[_0x182630]=_0x2ae564,_=(_0x57a080,_0x49bd55,_0x145cfc)=>F(_0x57a080,typeof _0x49bd55!=_0xcf3776(0x16e)?_0x49bd55+'':_0x49bd55,_0x145cfc);Object['defineProperty'](exports,Symbol[_0xcf3776(0x19f)],{'value':_0xcf3776(0x150)});const o=require('@univerjs/core'),C=require('@univerjs-pro/collaboration'),p=require('@univerjs-pro/collaboration-client'),P=require('@univerjs/design'),U=require('react'),h=require('@univerjs/ui'),O=require('rxjs'),d=require('@univerjs/sheets'),m=require('@univerjs-pro/edit-history-viewer'),L=require('@univerjs-pro/license'),V=require('@univerjs-pro/sheets-chart'),G=require('@univerjs-pro/sheets-chart-ui'),Y=require('@univerjs-pro/sheets-pivot'),K=require('@univerjs-pro/sheets-sparkline'),W=require('@univerjs-pro/sheets-sparkline-ui'),B=require('@univerjs/data-validation'),z=require('@univerjs/docs'),Z=require('@univerjs/docs-ui'),N=require('@univerjs/drawing'),J=require('@univerjs/drawing-ui'),Q=require('@univerjs/engine-formula'),X=require('@univerjs/engine-render'),ee=require('@univerjs/network'),R=require('@univerjs/rpc'),ie=require('@univerjs/sheets-conditional-formatting'),te=require('@univerjs/sheets-conditional-formatting-ui'),re=require('@univerjs/sheets-data-validation'),ne=require('@univerjs/sheets-data-validation-ui'),se=require('@univerjs/sheets-drawing'),oe=require('@univerjs/sheets-drawing-ui'),ae=require('@univerjs/sheets-filter'),ce=require('@univerjs/sheets-filter-ui'),le=require('@univerjs/sheets-formula'),ue=require('@univerjs/sheets-formula-ui'),he=require('@univerjs/sheets-hyper-link'),ge=require('@univerjs/sheets-hyper-link-ui'),ve=require('@univerjs/sheets-numfmt'),k=require('@univerjs/sheets-ui'),b=_0xcf3776(0x124),T={};function D({ref:_0x384fdc,..._0x568dca}){const _0x39b761=_0xcf3776,{icon:_0x435281,id:_0xd4736f,className:_0x135b4d,extend:_0x3fcba1,..._0x546aaf}=_0x568dca,_0x480621=(_0x39b761(0x196)+_0xd4736f+'\x20'+(_0x135b4d||''))[_0x39b761(0x15d)](),_0xcd2cf5=U['useRef']('_'+Se());return q(_0x435281,''+_0xd4736f,{'defIds':_0x435281[_0x39b761(0x1d6)],'idSuffix':_0xcd2cf5[_0x39b761(0x1da)]},{'ref':_0x384fdc,'className':_0x480621,..._0x546aaf},_0x3fcba1);}function q(_0x4ae69f,_0x17efdd,_0x69d538,_0x372234,_0x3636f0){const _0x3386d7=_0xcf3776;return U[_0x3386d7(0x1dc)](_0x4ae69f[_0x3386d7(0x15e)],{'key':_0x17efdd,...de(_0x4ae69f,_0x69d538,_0x3636f0),..._0x372234},(_e(_0x4ae69f,_0x69d538)[_0x3386d7(0x114)]||[])[_0x3386d7(0x15f)]((_0x43fef3,_0x383dce)=>q(_0x43fef3,_0x17efdd+'-'+_0x4ae69f[_0x3386d7(0x15e)]+'-'+_0x383dce,_0x69d538,void 0x0,_0x3636f0)));}function de(_0x23a9e2,_0x4eaa5e,_0x52b624){const _0x38bd1e=_0xcf3776,_0xa4297d={..._0x23a9e2[_0x38bd1e(0x18b)]};_0x52b624!=null&&_0x52b624[_0x38bd1e(0x1d7)]&&_0xa4297d[_0x38bd1e(0x18a)]==='colorChannel1'&&(_0xa4297d['fill']=_0x52b624['colorChannel1']),_0x23a9e2[_0x38bd1e(0x15e)]===_0x38bd1e(0x188)&&_0xa4297d['id']&&(_0xa4297d['id']=_0xa4297d['id']+_0x4eaa5e['idSuffix']),Object[_0x38bd1e(0x1f2)](_0xa4297d)[_0x38bd1e(0x1fe)](([_0x56583f,_0x1fb82d])=>{const _0x29a3c5=_0x38bd1e;_0x56583f===_0x29a3c5(0x188)&&typeof _0x1fb82d==_0x29a3c5(0x177)&&(_0xa4297d[_0x56583f]=_0x1fb82d['replace'](/url\(#(.*)\)/,_0x29a3c5(0x176)+_0x4eaa5e[_0x29a3c5(0x13c)]+')'));});const {defIds:_0x258cfc}=_0x4eaa5e;return!_0x258cfc||_0x258cfc[_0x38bd1e(0x1d1)]===0x0||(_0x23a9e2[_0x38bd1e(0x15e)]==='use'&&_0xa4297d[_0x38bd1e(0x1e0)]&&(_0xa4297d['xlink:href']=_0xa4297d[_0x38bd1e(0x1e0)]+_0x4eaa5e['idSuffix']),Object['entries'](_0xa4297d)[_0x38bd1e(0x1fe)](([_0x2409f9,_0x150d70])=>{const _0x365f41=_0x38bd1e;typeof _0x150d70==_0x365f41(0x177)&&(_0xa4297d[_0x2409f9]=_0x150d70[_0x365f41(0x137)](/url\(#(.*)\)/,_0x365f41(0x176)+_0x4eaa5e['idSuffix']+')'));})),_0xa4297d;}function _e(_0x51e00d,_0x552a15){const _0x11d013=_0xcf3776;var _0x428e50;const {defIds:_0x1dd820}=_0x552a15;return!_0x1dd820||_0x1dd820[_0x11d013(0x1d1)]===0x0?_0x51e00d:_0x51e00d[_0x11d013(0x15e)]===_0x11d013(0x12c)&&((_0x428e50=_0x51e00d[_0x11d013(0x114)])!=null&&_0x428e50[_0x11d013(0x1d1)])?{..._0x51e00d,'children':_0x51e00d[_0x11d013(0x114)][_0x11d013(0x15f)](_0x4f8a84=>typeof _0x4f8a84[_0x11d013(0x18b)]['id']=='string'&&_0x1dd820&&_0x1dd820[_0x11d013(0x1c7)](_0x4f8a84[_0x11d013(0x18b)]['id'])?{..._0x4f8a84,'attrs':{..._0x4f8a84['attrs'],'id':_0x4f8a84['attrs']['id']+_0x552a15[_0x11d013(0x13c)]}}:_0x4f8a84)}:_0x51e00d;}function Se(){const _0x42944f=_0xcf3776;return Math[_0x42944f(0x165)]()[_0x42944f(0x160)](0x24)[_0x42944f(0x121)](0x2,0x8);}D[_0xcf3776(0x190)]='UniverIcon';function _0x34a5(){const _0x384960=['displayName','_localCacheService','UniverSheetsConditionalFormattingUIPlugin','has','UniverSheetsHyperLinkPlugin','getElementById','univerjs-icon\x20univerjs-icon-','IMenuManagerService','_revertErrorTimer','_commandService','from','ComponentManager','registerCommand','mutations','some','toStringTag','_injector','UniverSheetsPlugin','_init','mergeMenu','getCurrentLocale','_selectionProtectionRuleModel','reload','MessageType','status','white','3200136IUdVbX','unsubscribe','_initPlugins','HistoryManagerService','currentColor','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','setConfig','Entered','UniverRenderEnginePlugin','215992lCDsYm','./worker.js','registerPlugin','history-container','Error','url(#history-icon_clip0_907_281)','getOwnPropertyDescriptor','location','WorkbookEditablePermission','close','UNIVER_CONTAINER_ID_KEY','mountHistoryContent','history-icon_clip0_907_281','get','clear','onSteady','1em','IUniverInstanceService','_localeService','_messageService','includes','M0\x200H16V16H0z','editHistory.panel.reverting','Loading','100%','40QQijtU','HistoryLoaderService','setDarkMode','UniverSheetsHyperLinkUIPlugin','_historyUniver$','length','UniverSheetsDrawingPlugin','0\x200\x2016\x2016','onCommandExecuted','IConfigService','defIds','colorChannel1','Disposable','top','current','UniverSheetsChartUIPlugin','createElement','_sidebarService','univer-container','UniverDataValidationPlugin','xlink:href','combineLatest','closeAll','getConfig','UniverNetworkPlugin','subscribe','height','composePermission','163426EgcDws','Univer','getSheetCommandTarget','1995370yKpYgH','CollaborationStatus','6EUkfie','editHistory.panel.title','_configService','next','WorkbookViewHistoryPermission','entries','appendChild','add','revertRevision$','136320TIaiAD','onStarting','WorksheetEditPermission','value','BehaviorSubject','svg','univer.operation.toggle-edit-history','absolute','forEach','currentTheme$','workerURL','UniverSheetsFilterUIPlugin','darkMode$','children','RevertRevisionMutation','flat','univer.operation.exit-edit-history','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','http://www.w3.org/2000/svg','getMenuHiddenObservable','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','uComp','UniverSheetsDataValidationPlugin','__getInjector','UniverDocsUIPlugin','IDialogService','substring','_dialogService','editHistory.panel.listFetchError','edit-history-loader.config','OPERATION','_disposableCollection','_componentManager','UNIVER_HISTORY_CONTAINER_ID','_pluginMap','invoke','path','defs','UniverSheetsFormulaUIPlugin','ThemeService','left','9zCgoVy','AuthzIoHttpService','UniverCollaborationPlugin','_initUniver','unMountHistoryContent','style','UniverEditHistoryLoaderPlugin','replace','getCurrentRangeDisable$','SYNCED','getLocales','WorkbookRecoverHistoryPermission','idSuffix','div','LS_CONFIG_KEY','_collaborationController','UniverInstanceType','CollaborationController','exhaustSavingTask','getSheets','UNIVER_SHEET','_univerInstanceService','PLUGIN_CONFIG_KEY_MAIN_THREAD','forwardRef','Exited','dispose','UniverSheetsFilterPlugin','793552jXTJdp','ILocalCacheService','getUnit','historyUniver','getCollabEntity','Module','triggerLoadVersions','HistoryIcon','getSheetId','width','_menuManagerService','_permissionService','UNIVER_UNKNOWN','state$','dataset','_historyManagerService','every','RangeProtectionPermissionEditPoint','trim','tag','map','toString','permissionId','15RgIyAF','session','_checkCanRevert','random','display','UniverSheetsConditionalFormattingPlugin','pluginName','executeCommand','RibbonStartGroup','UniverFormulaEnginePlugin','UniverUIPlugin','univerContainerId','symbol','ICommandService','LocaleService','univer-history-container','UniverEditHistoryViewerPlugin','UniverSheetsPivotTablePlugin','IMessageService','_config','url(#$1','string','historyUniver$','UniverDocsPlugin','position','disposeWithMe','_initListener','HistoryModeStatus','asObservable','11hvrGyp','Plugin','toDisposable','Inject','9338144hUKHUP','IPermissionService','getAllPlugins','show','IAuthzIoService','mask','CollaborationEvent','fill','attrs','UniverRPCMainThreadPlugin','register','_themeService','none'];_0x34a5=function(){return _0x384960;};return _0x34a5();}const me={'tag':_0xcf3776(0x1fb),'attrs':{'xmlns':_0xcf3776(0x119),'fill':_0xcf3776(0x18f),'viewBox':_0xcf3776(0x1d3),'width':_0xcf3776(0x1c3),'height':_0xcf3776(0x1c3)},'children':[{'tag':'g','attrs':{'fill':_0xcf3776(0x1ae),'clipPath':_0xcf3776(0x1b8)},'children':[{'tag':_0xcf3776(0x12b),'attrs':{'d':_0xcf3776(0x118)}},{'tag':_0xcf3776(0x12b),'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':_0xcf3776(0x12c),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0xcf3776(0x1bf)},'children':[{'tag':_0xcf3776(0x12b),'attrs':{'fill':_0xcf3776(0x1a9),'d':_0xcf3776(0x1c8)}}]}]}],'defIds':[_0xcf3776(0x1bf)]},$=U[_0xcf3776(0x147)](function(_0x28efd4,_0x404392){return U['createElement'](D,Object['assign']({},_0x28efd4,{'id':'history-icon','ref':_0x404392,'icon':me}));});$['displayName']=_0xcf3776(0x152);function _0x25a1(_0x379580,_0x2617f1){_0x379580=_0x379580-0x112;const _0x34a5db=_0x34a5();let _0x25a1a4=_0x34a5db[_0x379580];return _0x25a1a4;}var ye=Object[_0xcf3776(0x1b9)],pe=(_0x25a28b,_0x3bbb17,_0x193be8,_0xadb9a5)=>{for(var _0x279d45=_0xadb9a5>0x1?void 0x0:_0xadb9a5?ye(_0x3bbb17,_0x193be8):_0x3bbb17,_0x2b5659=_0x25a28b['length']-0x1,_0x5b08d6;_0x2b5659>=0x0;_0x2b5659--)(_0x5b08d6=_0x25a28b[_0x2b5659])&&(_0x279d45=_0x5b08d6(_0x279d45)||_0x279d45);return _0x279d45;},g=(_0x4a5605,_0xc79e27)=>(_0x1bb4f1,_0x54adbb)=>_0xc79e27(_0x1bb4f1,_0x54adbb,_0x4a5605);const fe=_0xcf3776(0x1de),H='UNIVER_CONTAINER_ID',y=_0xcf3776(0x171);exports[_0xcf3776(0x1cd)]=class extends o[_0xcf3776(0x1d8)]{constructor(_0x887231,_0x4d9001,_0x5549ae,_0x5beefa,_0x3ab124,_0xa6a013,_0x5e2a0d,_0x1e3680,_0x619873,_0x104063){const _0x200643=_0xcf3776;super(),_(this,'_historyUniver$',new O[(_0x200643(0x1fa))](null)),_(this,_0x200643(0x178),this[_0x200643(0x1d0)][_0x200643(0x17e)]()),_(this,_0x200643(0x126),new o['DisposableCollection']()),_(this,_0x200643(0x129),new Map()),(this['_localeService']=_0x887231,this[_0x200643(0x145)]=_0x4d9001,this[_0x200643(0x1ef)]=_0x5549ae,this[_0x200643(0x199)]=_0x5beefa,this[_0x200643(0x1c6)]=_0x3ab124,this['_permissionService']=_0xa6a013,this[_0x200643(0x1a5)]=_0x5e2a0d,this[_0x200643(0x122)]=_0x1e3680,this[_0x200643(0x1dd)]=_0x619873,this['_themeService']=_0x104063,this[_0x200643(0x1a2)]());}get['historyUniver'](){const _0x3e1423=_0xcf3776;return this['_historyUniver$'][_0x3e1423(0x1f9)];}[_0xcf3776(0x1a2)](){const _0x5c491c=_0xcf3776;this['_initContainer'](),this[_0x5c491c(0x1ac)]();}['_initContainer'](){const _0x4251e8=_0xcf3776;var _0x45b67d;const _0x41e385=(_0x45b67d=this[_0x4251e8(0x1ef)][_0x4251e8(0x1e3)](H))!=null?_0x45b67d:fe,_0x2ff964=document[_0x4251e8(0x195)](_0x41e385);if(!_0x2ff964)return;const _0x242de8=document[_0x4251e8(0x1dc)](_0x4251e8(0x13d));_0x242de8['id']=y,_0x242de8[_0x4251e8(0x159)][_0x4251e8(0x11c)]=_0x4251e8(0x1b6),_0x242de8[_0x4251e8(0x135)][_0x4251e8(0x17a)]=_0x4251e8(0x1fd),_0x242de8[_0x4251e8(0x135)][_0x4251e8(0x1d9)]='0',_0x242de8[_0x4251e8(0x135)][_0x4251e8(0x12f)]='0',_0x242de8[_0x4251e8(0x135)][_0x4251e8(0x154)]=_0x4251e8(0x1cb),_0x242de8[_0x4251e8(0x135)][_0x4251e8(0x1e6)]='100%',_0x242de8[_0x4251e8(0x135)]['zIndex']='1000',_0x242de8[_0x4251e8(0x135)]['display']=_0x4251e8(0x18f),_0x2ff964[_0x4251e8(0x1f3)](_0x242de8);}['_initPlugins'](){const _0xed3464=_0xcf3776;var _0x91364a,_0x305869,_0x50fbd1,_0x221f4a;[[X[_0xed3464(0x1b2)]],[h[_0xed3464(0x16c)],{'container':y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[h[_0xed3464(0x120)],null]]}],[ee[_0xed3464(0x1e4)]],[N['UniverDrawingPlugin'],{'override':[[N['IImageIoService'],null]]}],[z[_0xed3464(0x179)],{'hasScroll':!0x1}],[Z[_0xed3464(0x11f)]],[ve['UniverSheetsNumfmtPlugin']],[d[_0xed3464(0x1a1)],{'notExecuteFormula':!0x0}],[k['UniverSheetsUIPlugin']],[le['UniverSheetsFormulaPlugin']],[ue[_0xed3464(0x12d)]],[C[_0xed3464(0x132)]],[ae[_0xed3464(0x14a)]],[ce[_0xed3464(0x112)]],[ie[_0xed3464(0x167)]],[te[_0xed3464(0x192)]],[he[_0xed3464(0x194)]],[ge[_0xed3464(0x1cf)]],[B[_0xed3464(0x1df)]],[re[_0xed3464(0x11d)]],[ne['UniverSheetsDataValidationUIPlugin']],[Q[_0xed3464(0x16b)],{'notExecuteFormula':!0x0}],[R[_0xed3464(0x18c)],{'workerURL':(_0x305869=(_0x91364a=this[_0xed3464(0x1ef)][_0xed3464(0x1e3)](R[_0xed3464(0x146)]))==null?void 0x0:_0x91364a[_0xed3464(0x200)])!=null?_0x305869:_0xed3464(0x1b4)}],[J['UniverDrawingUIPlugin']],[se[_0xed3464(0x1d2)]],[oe['UniverSheetsDrawingUIPlugin']],[K['UniverSheetSparklinePlugin']],[W['UniverSheetSparklineUIPlugin']],[V['UniverSheetsChartPlugin']],[G[_0xed3464(0x1db)]],[Y[_0xed3464(0x173)],{'notExecuteFormula':!0x0}],[m[_0xed3464(0x172)],{'historyListServerUrl':(_0x50fbd1=this[_0xed3464(0x1ef)][_0xed3464(0x1e3)](b))==null?void 0x0:_0x50fbd1['historyListServerUrl'],'historyPanelComponentKey':(_0x221f4a=this['_configService'][_0xed3464(0x1e3)](b))==null?void 0x0:_0x221f4a['historyPanelComponentKey']}]]['forEach'](([_0x5d49d4,_0x5c9e4f])=>this['registerPlugin'](_0x5d49d4,_0x5c9e4f));}[_0xcf3776(0x149)](){const _0x4bd940=_0xcf3776;super[_0x4bd940(0x149)](),this[_0x4bd940(0x134)](),this[_0x4bd940(0x129)][_0x4bd940(0x1c1)]();}[_0xcf3776(0x1b5)](_0x241d9e,_0x4fd205,_0x37cf27){const _0x515d32=_0xcf3776;if(this[_0x515d32(0x129)][_0x515d32(0x193)](_0x241d9e['pluginName'])&&!_0x37cf27)throw new Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x241d9e[_0x515d32(0x168)]+'\x20has\x20been\x20registered.');this[_0x515d32(0x129)]['set'](_0x241d9e[_0x515d32(0x168)],[_0x241d9e,_0x4fd205]);}[_0xcf3776(0x185)](){const _0x392bac=_0xcf3776;return Array[_0x392bac(0x19a)](this[_0x392bac(0x129)]['values']());}[_0xcf3776(0x1be)](_0x29063b){const _0x15657d=_0xcf3776,_0x9b19c=document['getElementById'](y);_0x9b19c&&(_0x9b19c[_0x15657d(0x135)][_0x15657d(0x166)]='block',this[_0x15657d(0x133)](_0x29063b,y));}[_0xcf3776(0x134)](){const _0x2f4df6=_0xcf3776;var _0x65568f;this[_0x2f4df6(0x126)][_0x2f4df6(0x149)](),(_0x65568f=this[_0x2f4df6(0x14e)])==null||_0x65568f[_0x2f4df6(0x149)](),this[_0x2f4df6(0x1d0)][_0x2f4df6(0x1f0)](null);const _0x3f2b12=document[_0x2f4df6(0x195)](y);_0x3f2b12&&(_0x3f2b12['style'][_0x2f4df6(0x166)]='none');}['_initUniver'](_0x134d28,_0xe99f12){const _0x4fbe6c=_0xcf3776;if(this[_0x4fbe6c(0x14e)])return;const _0x253c9e=new o[(_0x4fbe6c(0x1e9))]({'locales':{[this[_0x4fbe6c(0x1c5)][_0x4fbe6c(0x1a4)]()]:this[_0x4fbe6c(0x1c5)][_0x4fbe6c(0x13a)]()},'override':[[o[_0x4fbe6c(0x187)],{'useClass':p[_0x4fbe6c(0x131)]}]]}),_0x373ee6=_0x253c9e[_0x4fbe6c(0x11e)]();this['disposeWithMe'](this[_0x4fbe6c(0x18e)][_0x4fbe6c(0x113)][_0x4fbe6c(0x1e5)](_0x23208a=>{const _0x289041=_0x4fbe6c;_0x373ee6[_0x289041(0x1c0)](o[_0x289041(0x12e)])[_0x289041(0x1ce)](_0x23208a);})),this['disposeWithMe'](this[_0x4fbe6c(0x18e)][_0x4fbe6c(0x1ff)][_0x4fbe6c(0x1e5)](_0x24dda4=>{const _0x4a35a2=_0x4fbe6c;_0x373ee6[_0x4a35a2(0x1c0)](o[_0x4a35a2(0x12e)])['setTheme'](_0x24dda4);})),_0x373ee6[_0x4fbe6c(0x1c0)](o[_0x4fbe6c(0x170)])['setLocale'](this['_localeService']['getCurrentLocale']()),_0x373ee6['get'](o[_0x4fbe6c(0x1d5)])['setConfig'](p[_0x4fbe6c(0x11b)],this['_configService'][_0x4fbe6c(0x1e3)](p[_0x4fbe6c(0x11b)]));const _0x37d02a=this['_configService'][_0x4fbe6c(0x1e3)](L[_0x4fbe6c(0x13e)]);_0x37d02a&&_0x253c9e[_0x4fbe6c(0x1b5)](L['UniverLicensePlugin'],{'license':_0x37d02a['ls']}),this['_pluginMap'][_0x4fbe6c(0x1fe)](([_0x34be5a,_0x2f3192])=>{const _0x109e41=_0x4fbe6c;_0x253c9e[_0x109e41(0x1b5)](_0x34be5a,_0x2f3192);}),_0x373ee6[_0x4fbe6c(0x12a)](_0x3efd7c=>{const _0x269b5f=_0x4fbe6c;this[_0x269b5f(0x17c)](_0x3efd7c,_0x134d28);}),this[_0x4fbe6c(0x1d0)][_0x4fbe6c(0x1f0)](_0x253c9e);const _0x43f1af=_0x373ee6[_0x4fbe6c(0x1c0)](m['HistoryManagerService']),_0x12503c=this['_checkCanRevert'](_0x134d28);_0x43f1af[_0x4fbe6c(0x151)](_0x134d28,_0xe99f12,_0x12503c);}['_initListener'](_0x5c0219,_0x267034){const _0x575e58=_0xcf3776,_0x10e999=_0x5c0219[_0x575e58(0x1c0)](m[_0x575e58(0x1ad)]);this['_disposableCollection']['add'](_0x10e999['status$'][_0x575e58(0x1e5)](_0x160048=>{const _0x8cbf15=_0x575e58;switch(_0x160048){case m['HistoryModeStatus'][_0x8cbf15(0x1b1)]:this[_0x8cbf15(0x122)][_0x8cbf15(0x1e2)](),this[_0x8cbf15(0x1dd)][_0x8cbf15(0x1bc)]();break;case m[_0x8cbf15(0x17d)][_0x8cbf15(0x148)]:this[_0x8cbf15(0x199)][_0x8cbf15(0x169)](j['id']),this[_0x8cbf15(0x134)]();break;case m[_0x8cbf15(0x17d)][_0x8cbf15(0x1b7)]:this[_0x8cbf15(0x134)](),this['_messageService'][_0x8cbf15(0x186)]({'content':this[_0x8cbf15(0x1c5)]['t'](_0x8cbf15(0x123)),'type':P[_0x8cbf15(0x1a7)][_0x8cbf15(0x1b7)],'duration':0xbb8});break;}})),this[_0x575e58(0x126)][_0x575e58(0x1f4)](_0x10e999[_0x575e58(0x1f5)][_0x575e58(0x1e5)](async _0x76612b=>{const _0x709b61=_0x575e58;_0x76612b&&this[_0x709b61(0x199)]['executeCommand'](C[_0x709b61(0x115)]['id'],{'unitId':_0x267034,'revision':_0x76612b});}));}[_0xcf3776(0x164)](_0xb67e4c){const _0x4046af=_0xcf3776,_0x12f432=this[_0x4046af(0x145)][_0x4046af(0x14d)](_0xb67e4c)[_0x4046af(0x143)]()['map'](_0x180736=>_0x180736[_0x4046af(0x153)]()),_0x2f5259=new d[(_0x4046af(0x1bb))](_0xb67e4c)['id'],_0x5069b0=_0x12f432['map'](_0x571c50=>new d[(_0x4046af(0x1f8))](_0xb67e4c,_0x571c50)['id']),_0x62edfa=_0x12f432[_0x4046af(0x15f)](_0x460771=>this[_0x4046af(0x1a5)]['getSubunitRuleList'](_0xb67e4c,_0x460771)[_0x4046af(0x15f)](_0x53bc38=>new d[(_0x4046af(0x15c))](_0xb67e4c,_0x460771,_0x53bc38[_0x4046af(0x161)])['id']))[_0x4046af(0x116)](),_0x551abd=new d[(_0x4046af(0x13b))](_0xb67e4c)['id'];return this[_0x4046af(0x156)][_0x4046af(0x1e7)]([_0x2f5259,..._0x5069b0,..._0x62edfa,_0x551abd])[_0x4046af(0x15b)](_0x3bb545=>!!_0x3bb545[_0x4046af(0x1f9)]);}},exports[_0xcf3776(0x1cd)]=pe([g(0x0,o[_0xcf3776(0x182)](o[_0xcf3776(0x170)])),g(0x1,o[_0xcf3776(0x1c4)]),g(0x2,o[_0xcf3776(0x1d5)]),g(0x3,o[_0xcf3776(0x16f)]),g(0x4,h['IMessageService']),g(0x5,o[_0xcf3776(0x184)]),g(0x6,o[_0xcf3776(0x182)](d['RangeProtectionRuleModel'])),g(0x7,o[_0xcf3776(0x182)](h[_0xcf3776(0x120)])),g(0x8,o['Inject'](h['ISidebarService'])),g(0x9,o[_0xcf3776(0x182)](o[_0xcf3776(0x12e)]))],exports[_0xcf3776(0x1cd)]);const M={'id':_0xcf3776(0x1fc),'type':o['CommandType']['OPERATION'],'handler':_0x2f530c=>{const _0x24a7a9=_0xcf3776,_0x1a8cf0=_0x2f530c[_0x24a7a9(0x1c0)](exports[_0x24a7a9(0x1cd)]),_0x4f9bab=_0x2f530c[_0x24a7a9(0x1c0)](o[_0x24a7a9(0x1c4)]),{unitId:_0x170fb7}=d[_0x24a7a9(0x1ea)](_0x4f9bab)||{};return _0x170fb7?(_0x1a8cf0[_0x24a7a9(0x1be)](_0x170fb7),!0x0):!0x1;}},j={'id':_0xcf3776(0x117),'type':o['CommandType'][_0xcf3776(0x125)],'handler':()=>!0x0};function Ce(_0x26f35b){const _0x4656d2=_0xcf3776;return{'id':M['id'],'type':h['MenuItemType']['BUTTON'],'icon':_0x4656d2(0x152),'tooltip':_0x4656d2(0x1ee),'hidden$':h[_0x4656d2(0x11a)](_0x26f35b,o[_0x4656d2(0x140)][_0x4656d2(0x144)]),'disabled$':k[_0x4656d2(0x138)](_0x26f35b,{'workbookTypes':[d[_0x4656d2(0x1bb)],d[_0x4656d2(0x1f1)]],'worksheetTypes':[],'rangeTypes':[]})};}const Ie={[h[_0xcf3776(0x16a)]['OTHERS']]:{[M['id']]:{'order':0.2,'menuItemFactory':Ce}}};var Ue=Object[_0xcf3776(0x1b9)],Ee=(_0x35f3ef,_0x2fea80,_0x5a3e45,_0x20a23c)=>{const _0xf3e971=_0xcf3776;for(var _0x2e071f=_0x20a23c>0x1?void 0x0:_0x20a23c?Ue(_0x2fea80,_0x5a3e45):_0x2fea80,_0x37130a=_0x35f3ef[_0xf3e971(0x1d1)]-0x1,_0x49343f;_0x37130a>=0x0;_0x37130a--)(_0x49343f=_0x35f3ef[_0x37130a])&&(_0x2e071f=_0x49343f(_0x2e071f)||_0x2e071f);return _0x2e071f;},S=(_0x3c45b5,_0x2180cc)=>(_0x4ea473,_0x5b9f9b)=>_0x2180cc(_0x4ea473,_0x5b9f9b,_0x3c45b5);let E=class extends o['RxDisposable']{constructor(_0x2a807c,_0x4d6f53,_0x4ab266,_0x1aef26,_0x2f7549,_0x2217e5,_0x22737d,_0x4161a1){const _0x23e245=_0xcf3776;super(),_(this,_0x23e245(0x198),null),(this[_0x23e245(0x199)]=_0x2a807c,this[_0x23e245(0x155)]=_0x4d6f53,this[_0x23e245(0x127)]=_0x4ab266,this[_0x23e245(0x15a)]=_0x1aef26,this['_localeService']=_0x2f7549,this[_0x23e245(0x1c6)]=_0x2217e5,this[_0x23e245(0x13f)]=_0x22737d,this[_0x23e245(0x191)]=_0x4161a1,this[_0x23e245(0x1a2)]());}[_0xcf3776(0x1a2)](){const _0x5cf335=_0xcf3776;[M,j][_0x5cf335(0x1fe)](_0x3bb610=>this[_0x5cf335(0x17b)](o[_0x5cf335(0x181)](this[_0x5cf335(0x199)][_0x5cf335(0x19c)](_0x3bb610)))),this[_0x5cf335(0x17b)](this[_0x5cf335(0x127)][_0x5cf335(0x18d)]('HistoryIcon',$)),this[_0x5cf335(0x155)][_0x5cf335(0x1a3)](Ie),this[_0x5cf335(0x17b)](this['_commandService'][_0x5cf335(0x1d4)](_0x5dd251=>{const _0x3dd118=_0x5cf335;if(_0x5dd251['id']===C[_0x3dd118(0x115)]['id']){this[_0x3dd118(0x1c6)][_0x3dd118(0x186)]({'content':this['_localeService']['t'](_0x3dd118(0x1c9)),'type':P['MessageType'][_0x3dd118(0x1ca)],'duration':0x1388});const {unitId:_0x25444c}=_0x5dd251['params'],_0x19e89d=this[_0x3dd118(0x13f)][_0x3dd118(0x14f)](_0x25444c),_0x3303a4=O[_0x3dd118(0x1e1)]([_0x19e89d[_0x3dd118(0x163)]['event$'],_0x19e89d[_0x3dd118(0x158)]])[_0x3dd118(0x1e5)](async([_0x4511b9,_0x490c63])=>{const _0x77eec7=_0x3dd118;var _0x4b54ae;_0x4511b9['eventID']===C[_0x77eec7(0x189)]['CHANGESET_ACK']&&(_0x490c63==null?void 0x0:_0x490c63[_0x77eec7(0x1a8)])===p[_0x77eec7(0x1ec)][_0x77eec7(0x139)]&&_0x4511b9['data'][_0x77eec7(0x19d)][_0x77eec7(0x19e)](_0x141399=>_0x141399['id']===C['RevertRevisionMutation']['id'])&&(this['_historyManagerService'][_0x77eec7(0x134)](),_0x3303a4['unsubscribe'](),this[_0x77eec7(0x198)]&&clearTimeout(this[_0x77eec7(0x198)]),await((_0x4b54ae=this['_localCacheService'])==null?void 0x0:_0x4b54ae[_0x77eec7(0x142)]()),setTimeout(()=>window[_0x77eec7(0x1ba)][_0x77eec7(0x1a6)]()));});this['_revertErrorTimer']=setTimeout(()=>{const _0x4cbb4a=_0x3dd118;_0x3303a4[_0x4cbb4a(0x1ab)](),this['_messageService'][_0x4cbb4a(0x186)]({'content':this['_localeService']['t']('editHistory.panel.revertFailed'),'type':P[_0x4cbb4a(0x1a7)][_0x4cbb4a(0x1b7)],'duration':0xbb8});},0x1388);}}));}};E=Ee([S(0x0,o['ICommandService']),S(0x1,h[_0xcf3776(0x197)]),S(0x2,o['Inject'](h[_0xcf3776(0x19b)])),S(0x3,o[_0xcf3776(0x182)](exports[_0xcf3776(0x1cd)])),S(0x4,o[_0xcf3776(0x182)](o[_0xcf3776(0x170)])),S(0x5,h[_0xcf3776(0x174)]),S(0x6,o['Inject'](p[_0xcf3776(0x141)])),S(0x7,p[_0xcf3776(0x14c)])],E);var Pe=Object[_0xcf3776(0x1b9)],be=(_0xd402c1,_0x1c349b,_0x28c456,_0x34aba4)=>{for(var _0x14adef=_0x34aba4>0x1?void 0x0:_0x34aba4?Pe(_0x1c349b,_0x28c456):_0x1c349b,_0x37da4b=_0xd402c1['length']-0x1,_0x6ca178;_0x37da4b>=0x0;_0x37da4b--)(_0x6ca178=_0xd402c1[_0x37da4b])&&(_0x14adef=_0x6ca178(_0x14adef)||_0x14adef);return _0x14adef;},w=(_0x5431a6,_0x3c5b79)=>(_0x455162,_0x376dde)=>_0x3c5b79(_0x455162,_0x376dde,_0x5431a6);const He=_0xcf3776(0x1af);var I;exports[_0xcf3776(0x136)]=(I=class extends o[_0xcf3776(0x180)]{constructor(_0x1ccd14=T,_0x559a30,_0x363414){const _0x2b3241=_0xcf3776;super(),this[_0x2b3241(0x175)]=_0x1ccd14,this[_0x2b3241(0x1a0)]=_0x559a30,this[_0x2b3241(0x1ef)]=_0x363414;const {menu:_0x190f2c,..._0x4ed647}=o['merge']({},T,this[_0x2b3241(0x175)]);_0x190f2c&&this[_0x2b3241(0x1ef)][_0x2b3241(0x1b0)]('menu',_0x190f2c,{'merge':!0x0}),this[_0x2b3241(0x1ef)][_0x2b3241(0x1b0)](b,_0x4ed647),this[_0x2b3241(0x175)]['univerContainerId']&&this[_0x2b3241(0x1ef)][_0x2b3241(0x1b0)](H,this[_0x2b3241(0x175)][_0x2b3241(0x16d)]);}[_0xcf3776(0x1f7)](){const _0x4fe2eb=_0xcf3776;[[exports['HistoryLoaderService']],[E]]['forEach'](_0x3b75fb=>this[_0x4fe2eb(0x1a0)][_0x4fe2eb(0x1f4)](_0x3b75fb));}[_0xcf3776(0x1c2)](){const _0xf04da4=_0xcf3776;this[_0xf04da4(0x1a0)][_0xf04da4(0x1c0)](E);}},_(I,'type',o[_0xcf3776(0x140)][_0xcf3776(0x157)]),_(I,_0xcf3776(0x168),He),I),exports[_0xcf3776(0x136)]=be([w(0x1,o['Inject'](o['Injector'])),w(0x2,o[_0xcf3776(0x1d5)])],exports[_0xcf3776(0x136)]),exports[_0xcf3776(0x1bd)]=H,exports[_0xcf3776(0x128)]=y;
|
|
1
|
+
'use strict';const _0x25e8dd=_0xd997;(function(_0x37ceac,_0x3f0abb){const _0x2fa1=_0xd997,_0x4d960d=_0x37ceac();while(!![]){try{const _0x2cd360=parseInt(_0x2fa1(0x182))/0x1*(-parseInt(_0x2fa1(0x122))/0x2)+parseInt(_0x2fa1(0x116))/0x3+parseInt(_0x2fa1(0x173))/0x4+-parseInt(_0x2fa1(0x1a1))/0x5+-parseInt(_0x2fa1(0x19f))/0x6+parseInt(_0x2fa1(0x141))/0x7*(parseInt(_0x2fa1(0x132))/0x8)+parseInt(_0x2fa1(0x12b))/0x9;if(_0x2cd360===_0x3f0abb)break;else _0x4d960d['push'](_0x4d960d['shift']());}catch(_0x233838){_0x4d960d['push'](_0x4d960d['shift']());}}}(_0x5227,0x99352));var A=Object[_0x25e8dd(0x19c)],F=(_0x59a175,_0x19d123,_0xfb4eaf)=>_0x19d123 in _0x59a175?A(_0x59a175,_0x19d123,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xfb4eaf}):_0x59a175[_0x19d123]=_0xfb4eaf,_=(_0x53adc4,_0x3d3d92,_0x285a5a)=>F(_0x53adc4,typeof _0x3d3d92!='symbol'?_0x3d3d92+'':_0x3d3d92,_0x285a5a);Object['defineProperty'](exports,Symbol[_0x25e8dd(0xfc)],{'value':_0x25e8dd(0xf5)});const o=require('@univerjs/core'),C=require('@univerjs-pro/collaboration'),p=require('@univerjs-pro/collaboration-client'),P=require('@univerjs/design'),U=require('react'),h=require('@univerjs/ui'),O=require('rxjs'),d=require('@univerjs/sheets'),m=require('@univerjs-pro/edit-history-viewer'),L=require('@univerjs-pro/license'),V=require('@univerjs-pro/sheets-chart'),G=require('@univerjs-pro/sheets-chart-ui'),Y=require('@univerjs-pro/sheets-pivot'),K=require('@univerjs-pro/sheets-sparkline'),W=require('@univerjs-pro/sheets-sparkline-ui'),B=require('@univerjs/data-validation'),z=require('@univerjs/docs'),Z=require('@univerjs/docs-ui'),N=require('@univerjs/drawing'),J=require('@univerjs/drawing-ui'),Q=require('@univerjs/engine-formula'),X=require('@univerjs/engine-render'),ee=require('@univerjs/network'),R=require('@univerjs/rpc'),ie=require('@univerjs/sheets-conditional-formatting'),te=require('@univerjs/sheets-conditional-formatting-ui'),re=require('@univerjs/sheets-data-validation'),ne=require('@univerjs/sheets-data-validation-ui'),se=require('@univerjs/sheets-drawing'),oe=require('@univerjs/sheets-drawing-ui'),ae=require('@univerjs/sheets-filter'),ce=require('@univerjs/sheets-filter-ui'),le=require('@univerjs/sheets-formula'),ue=require('@univerjs/sheets-formula-ui'),he=require('@univerjs/sheets-hyper-link'),ge=require('@univerjs/sheets-hyper-link-ui'),ve=require('@univerjs/sheets-numfmt'),k=require('@univerjs/sheets-ui'),b='edit-history-loader.config',T={};function D({ref:_0x1217f4,..._0x138bc0}){const _0x442ed2=_0x25e8dd,{icon:_0x513ba0,id:_0x3fe046,className:_0x267973,extend:_0x55db36,..._0x11e08d}=_0x138bc0,_0xd525df=(_0x442ed2(0x11f)+_0x3fe046+'\x20'+(_0x267973||''))[_0x442ed2(0x108)](),_0x22a4ac=U[_0x442ed2(0x1d3)]('_'+Se());return q(_0x513ba0,''+_0x3fe046,{'defIds':_0x513ba0[_0x442ed2(0x14b)],'idSuffix':_0x22a4ac[_0x442ed2(0xed)]},{'ref':_0x1217f4,'className':_0xd525df,..._0x11e08d},_0x55db36);}function q(_0x5b583e,_0x518867,_0x495c5b,_0x4ef23c,_0x57d479){const _0x1b7ebf=_0x25e8dd;return U[_0x1b7ebf(0x12f)](_0x5b583e[_0x1b7ebf(0x1a5)],{'key':_0x518867,...de(_0x5b583e,_0x495c5b,_0x57d479),..._0x4ef23c},(_e(_0x5b583e,_0x495c5b)[_0x1b7ebf(0x133)]||[])['map']((_0x26deaf,_0x5a6be0)=>q(_0x26deaf,_0x518867+'-'+_0x5b583e[_0x1b7ebf(0x1a5)]+'-'+_0x5a6be0,_0x495c5b,void 0x0,_0x57d479)));}function de(_0x17f847,_0x4fe2f6,_0xc1226d){const _0x587d59=_0x25e8dd,_0x4beaac={..._0x17f847[_0x587d59(0xee)]};_0xc1226d!=null&&_0xc1226d[_0x587d59(0x120)]&&_0x4beaac['fill']===_0x587d59(0x120)&&(_0x4beaac[_0x587d59(0x10d)]=_0xc1226d[_0x587d59(0x120)]),_0x17f847[_0x587d59(0x1a5)]===_0x587d59(0x101)&&_0x4beaac['id']&&(_0x4beaac['id']=_0x4beaac['id']+_0x4fe2f6[_0x587d59(0x1c4)]),Object[_0x587d59(0x131)](_0x4beaac)['forEach'](([_0x59775f,_0x3e2f34])=>{const _0x2b39a6=_0x587d59;_0x59775f===_0x2b39a6(0x101)&&typeof _0x3e2f34=='string'&&(_0x4beaac[_0x59775f]=_0x3e2f34[_0x2b39a6(0x1d6)](/url\(#(.*)\)/,_0x2b39a6(0x1e2)+_0x4fe2f6[_0x2b39a6(0x1c4)]+')'));});const {defIds:_0x27a351}=_0x4fe2f6;return!_0x27a351||_0x27a351[_0x587d59(0x1dc)]===0x0||(_0x17f847[_0x587d59(0x1a5)]===_0x587d59(0x1cd)&&_0x4beaac[_0x587d59(0x13f)]&&(_0x4beaac[_0x587d59(0x13f)]=_0x4beaac['xlink:href']+_0x4fe2f6[_0x587d59(0x1c4)]),Object[_0x587d59(0x131)](_0x4beaac)[_0x587d59(0x15d)](([_0x29bcde,_0x2d7b38])=>{const _0x2ba6da=_0x587d59;typeof _0x2d7b38==_0x2ba6da(0x11b)&&(_0x4beaac[_0x29bcde]=_0x2d7b38[_0x2ba6da(0x1d6)](/url\(#(.*)\)/,_0x2ba6da(0x1e2)+_0x4fe2f6['idSuffix']+')'));})),_0x4beaac;}function _e(_0x4bb829,_0x2b15a1){const _0x1f2796=_0x25e8dd;var _0x1556c7;const {defIds:_0x295540}=_0x2b15a1;return!_0x295540||_0x295540[_0x1f2796(0x1dc)]===0x0?_0x4bb829:_0x4bb829[_0x1f2796(0x1a5)]===_0x1f2796(0x1cf)&&((_0x1556c7=_0x4bb829[_0x1f2796(0x133)])!=null&&_0x1556c7[_0x1f2796(0x1dc)])?{..._0x4bb829,'children':_0x4bb829['children'][_0x1f2796(0x1af)](_0x498dda=>typeof _0x498dda[_0x1f2796(0xee)]['id']==_0x1f2796(0x11b)&&_0x295540&&_0x295540[_0x1f2796(0x165)](_0x498dda[_0x1f2796(0xee)]['id'])?{..._0x498dda,'attrs':{..._0x498dda[_0x1f2796(0xee)],'id':_0x498dda['attrs']['id']+_0x2b15a1[_0x1f2796(0x1c4)]}}:_0x498dda)}:_0x4bb829;}function Se(){const _0x31b301=_0x25e8dd;return Math[_0x31b301(0x14d)]()['toString'](0x24)[_0x31b301(0x110)](0x2,0x8);}D[_0x25e8dd(0x121)]=_0x25e8dd(0x10b);const me={'tag':'svg','attrs':{'xmlns':_0x25e8dd(0xf8),'fill':_0x25e8dd(0x161),'viewBox':_0x25e8dd(0x145),'width':_0x25e8dd(0x14f),'height':_0x25e8dd(0x14f)},'children':[{'tag':'g','attrs':{'fill':'currentColor','clipPath':_0x25e8dd(0x151)},'children':[{'tag':_0x25e8dd(0x1b6),'attrs':{'d':_0x25e8dd(0x1d0)}},{'tag':_0x25e8dd(0x1b6),'attrs':{'d':_0x25e8dd(0x1bb)}}]},{'tag':_0x25e8dd(0x1cf),'attrs':{},'children':[{'tag':_0x25e8dd(0x15b),'attrs':{'id':'history-icon_clip0_907_281'},'children':[{'tag':_0x25e8dd(0x1b6),'attrs':{'fill':_0x25e8dd(0x1b3),'d':_0x25e8dd(0x174)}}]}]}],'defIds':[_0x25e8dd(0x156)]},$=U[_0x25e8dd(0x16e)](function(_0x1e614c,_0x370ed1){const _0x39a721=_0x25e8dd;return U[_0x39a721(0x12f)](D,Object[_0x39a721(0xfb)]({},_0x1e614c,{'id':_0x39a721(0x102),'ref':_0x370ed1,'icon':me}));});$[_0x25e8dd(0x121)]='HistoryIcon';var ye=Object[_0x25e8dd(0x193)],pe=(_0x38da8f,_0x579a3b,_0x2128a9,_0x1d37e5)=>{for(var _0x498127=_0x1d37e5>0x1?void 0x0:_0x1d37e5?ye(_0x579a3b,_0x2128a9):_0x579a3b,_0x1e15f8=_0x38da8f['length']-0x1,_0x740993;_0x1e15f8>=0x0;_0x1e15f8--)(_0x740993=_0x38da8f[_0x1e15f8])&&(_0x498127=_0x740993(_0x498127)||_0x498127);return _0x498127;},g=(_0x46f638,_0x3321fc)=>(_0x2540c7,_0x577749)=>_0x3321fc(_0x2540c7,_0x577749,_0x46f638);const fe=_0x25e8dd(0xff),H='UNIVER_CONTAINER_ID',y=_0x25e8dd(0x1bf);exports[_0x25e8dd(0x125)]=class extends o[_0x25e8dd(0x1aa)]{constructor(_0x7f420d,_0x303425,_0x22ca82,_0x33e99f,_0x1cf223,_0x3dfd7b,_0x42e4d3,_0x15f08e,_0x27908d,_0x11f362){const _0xbda5b0=_0x25e8dd;super(),_(this,'_historyUniver$',new O['BehaviorSubject'](null)),_(this,_0xbda5b0(0xf1),this[_0xbda5b0(0x149)][_0xbda5b0(0xec)]()),_(this,_0xbda5b0(0x137),new o[(_0xbda5b0(0x13b))]()),_(this,_0xbda5b0(0x1b7),new Map()),(this[_0xbda5b0(0x17c)]=_0x7f420d,this[_0xbda5b0(0x14c)]=_0x303425,this[_0xbda5b0(0x1a6)]=_0x22ca82,this[_0xbda5b0(0x1a2)]=_0x33e99f,this[_0xbda5b0(0x14e)]=_0x1cf223,this[_0xbda5b0(0x106)]=_0x3dfd7b,this[_0xbda5b0(0x166)]=_0x42e4d3,this[_0xbda5b0(0x147)]=_0x15f08e,this[_0xbda5b0(0x17b)]=_0x27908d,this[_0xbda5b0(0x19e)]=_0x11f362,this[_0xbda5b0(0x1da)]());}get['historyUniver'](){const _0x2a08e5=_0x25e8dd;return this[_0x2a08e5(0x149)][_0x2a08e5(0x15c)];}[_0x25e8dd(0x1da)](){const _0x500a18=_0x25e8dd;this[_0x500a18(0x118)](),this[_0x500a18(0x18e)]();}[_0x25e8dd(0x118)](){const _0x4e7208=_0x25e8dd;var _0x1bdd01;const _0x5affa9=(_0x1bdd01=this[_0x4e7208(0x1a6)]['getConfig'](H))!=null?_0x1bdd01:fe,_0x4f39d5=document[_0x4e7208(0x127)](_0x5affa9);if(!_0x4f39d5)return;const _0x2131bf=document[_0x4e7208(0x12f)]('div');_0x2131bf['id']=y,_0x2131bf[_0x4e7208(0x1ba)][_0x4e7208(0x136)]=_0x4e7208(0x170),_0x2131bf[_0x4e7208(0x194)][_0x4e7208(0x190)]=_0x4e7208(0x199),_0x2131bf['style']['top']='0',_0x2131bf['style']['left']='0',_0x2131bf[_0x4e7208(0x194)]['width']=_0x4e7208(0x144),_0x2131bf[_0x4e7208(0x194)][_0x4e7208(0x1d8)]=_0x4e7208(0x144),_0x2131bf['style'][_0x4e7208(0x150)]=_0x4e7208(0x126),_0x2131bf['style']['display']='none',_0x4f39d5[_0x4e7208(0x1d2)](_0x2131bf);}[_0x25e8dd(0x18e)](){const _0x20356a=_0x25e8dd;var _0x3b56b2,_0x3394a5,_0x1152ac,_0x345213;[[X[_0x20356a(0x192)]],[h[_0x20356a(0x17d)],{'container':y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[h[_0x20356a(0x1dd)],null]]}],[ee[_0x20356a(0x19d)]],[N['UniverDrawingPlugin'],{'override':[[N[_0x20356a(0xf7)],null]]}],[z['UniverDocsPlugin'],{'hasScroll':!0x1}],[Z[_0x20356a(0x13e)]],[ve[_0x20356a(0x1d4)]],[d[_0x20356a(0x152)],{'notExecuteFormula':!0x0}],[k[_0x20356a(0x15f)]],[le[_0x20356a(0x130)]],[ue[_0x20356a(0x1cc)]],[C[_0x20356a(0x18d)]],[ae['UniverSheetsFilterPlugin']],[ce[_0x20356a(0x1d5)]],[ie[_0x20356a(0xf6)]],[te[_0x20356a(0x153)]],[he[_0x20356a(0x1ab)]],[ge[_0x20356a(0x1c0)]],[B[_0x20356a(0x176)]],[re['UniverSheetsDataValidationPlugin']],[ne[_0x20356a(0xfd)]],[Q[_0x20356a(0x103)],{'notExecuteFormula':!0x0}],[R[_0x20356a(0x1db)],{'workerURL':(_0x3394a5=(_0x3b56b2=this[_0x20356a(0x1a6)][_0x20356a(0x186)](R[_0x20356a(0x178)]))==null?void 0x0:_0x3b56b2[_0x20356a(0x113)])!=null?_0x3394a5:'./worker.js'}],[J[_0x20356a(0x1b1)]],[se[_0x20356a(0x18f)]],[oe['UniverSheetsDrawingUIPlugin']],[K[_0x20356a(0x1b4)]],[W['UniverSheetSparklineUIPlugin']],[V[_0x20356a(0x171)]],[G[_0x20356a(0x109)]],[Y[_0x20356a(0x1e0)],{'notExecuteFormula':!0x0}],[m[_0x20356a(0x1a9)],{'historyListServerUrl':(_0x1152ac=this[_0x20356a(0x1a6)]['getConfig'](b))==null?void 0x0:_0x1152ac['historyListServerUrl'],'historyPanelComponentKey':(_0x345213=this[_0x20356a(0x1a6)][_0x20356a(0x186)](b))==null?void 0x0:_0x345213[_0x20356a(0x1c8)]}]]['forEach'](([_0x1ccfae,_0x287f4c])=>this[_0x20356a(0x180)](_0x1ccfae,_0x287f4c));}[_0x25e8dd(0x1a0)](){const _0x3228be=_0x25e8dd;super[_0x3228be(0x1a0)](),this['unMountHistoryContent'](),this[_0x3228be(0x1b7)][_0x3228be(0xf0)]();}[_0x25e8dd(0x180)](_0x5813a9,_0x460ad4,_0x9e3fe1){const _0x309e9d=_0x25e8dd;if(this[_0x309e9d(0x1b7)][_0x309e9d(0x16f)](_0x5813a9[_0x309e9d(0x1de)])&&!_0x9e3fe1)throw new Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x5813a9[_0x309e9d(0x1de)]+_0x309e9d(0x129));this[_0x309e9d(0x1b7)][_0x309e9d(0x146)](_0x5813a9[_0x309e9d(0x1de)],[_0x5813a9,_0x460ad4]);}[_0x25e8dd(0x16c)](){const _0x4f6702=_0x25e8dd;return Array[_0x4f6702(0x16d)](this['_pluginMap'][_0x4f6702(0x12d)]());}[_0x25e8dd(0x1bc)](_0x51ef7d){const _0x26a5ed=_0x25e8dd,_0x508646=document[_0x26a5ed(0x127)](y);_0x508646&&(_0x508646[_0x26a5ed(0x194)][_0x26a5ed(0x134)]='block',this[_0x26a5ed(0x1ad)](_0x51ef7d,y));}[_0x25e8dd(0x1c2)](){const _0xb000c9=_0x25e8dd;var _0x42dba9;this[_0xb000c9(0x137)][_0xb000c9(0x1a0)](),(_0x42dba9=this[_0xb000c9(0x10e)])==null||_0x42dba9[_0xb000c9(0x1a0)](),this[_0xb000c9(0x149)][_0xb000c9(0x111)](null);const _0x554e7b=document[_0xb000c9(0x127)](y);_0x554e7b&&(_0x554e7b[_0xb000c9(0x194)][_0xb000c9(0x134)]=_0xb000c9(0x161));}[_0x25e8dd(0x1ad)](_0x51f5c1,_0x3e9059){const _0x198991=_0x25e8dd;if(this['historyUniver'])return;const _0x1d3279=new o[(_0x198991(0x13a))]({'locales':{[this['_localeService'][_0x198991(0x1c9)]()]:this[_0x198991(0x17c)][_0x198991(0x1b8)]()},'override':[[o['IAuthzIoService'],{'useClass':p[_0x198991(0x1be)]}]]}),_0x541bf0=_0x1d3279[_0x198991(0x140)]();this[_0x198991(0x177)](this['_themeService'][_0x198991(0x16b)][_0x198991(0x1d7)](_0x47e755=>{const _0x111512=_0x198991;_0x541bf0['get'](o[_0x111512(0x167)])[_0x111512(0x1df)](_0x47e755);})),this[_0x198991(0x177)](this[_0x198991(0x19e)][_0x198991(0x114)][_0x198991(0x1d7)](_0x423dad=>{const _0x192cb1=_0x198991;_0x541bf0[_0x192cb1(0x1b5)](o[_0x192cb1(0x167)])[_0x192cb1(0x189)](_0x423dad);})),_0x541bf0['get'](o[_0x198991(0x16a)])['setLocale'](this[_0x198991(0x17c)][_0x198991(0x1c9)]()),_0x541bf0['get'](o[_0x198991(0x104)])[_0x198991(0x1a8)](p[_0x198991(0x115)],this[_0x198991(0x1a6)][_0x198991(0x186)](p['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']));const _0x4146ab=this[_0x198991(0x1a6)][_0x198991(0x186)](L[_0x198991(0x148)]);_0x4146ab&&_0x1d3279[_0x198991(0x180)](L[_0x198991(0x1b9)],{'license':_0x4146ab['ls']}),this[_0x198991(0x1b7)][_0x198991(0x15d)](([_0x50f404,_0x430aab])=>{_0x1d3279['registerPlugin'](_0x50f404,_0x430aab);}),_0x541bf0['invoke'](_0x398f65=>{const _0x206a6f=_0x198991;this[_0x206a6f(0x12c)](_0x398f65,_0x51f5c1);}),this[_0x198991(0x149)]['next'](_0x1d3279);const _0x474241=_0x541bf0[_0x198991(0x1b5)](m[_0x198991(0xf4)]),_0x22efcd=this[_0x198991(0x17e)](_0x51f5c1);_0x474241['triggerLoadVersions'](_0x51f5c1,_0x3e9059,_0x22efcd);}[_0x25e8dd(0x12c)](_0x26341b,_0x42b7b2){const _0x406b4b=_0x25e8dd,_0x4887ed=_0x26341b[_0x406b4b(0x1b5)](m['HistoryManagerService']);this[_0x406b4b(0x137)][_0x406b4b(0x1c7)](_0x4887ed['status$'][_0x406b4b(0x1d7)](_0x35ca4d=>{const _0x1358ad=_0x406b4b;switch(_0x35ca4d){case m[_0x1358ad(0x19a)][_0x1358ad(0x185)]:this[_0x1358ad(0x147)]['closeAll'](),this[_0x1358ad(0x17b)][_0x1358ad(0x18c)]();break;case m[_0x1358ad(0x19a)][_0x1358ad(0x10f)]:this[_0x1358ad(0x1a2)]['executeCommand'](j['id']),this[_0x1358ad(0x1c2)]();break;case m['HistoryModeStatus'][_0x1358ad(0x10c)]:this[_0x1358ad(0x1c2)](),this[_0x1358ad(0x14e)]['show']({'content':this[_0x1358ad(0x17c)]['t'](_0x1358ad(0x163)),'type':P[_0x1358ad(0x187)]['Error'],'duration':0xbb8});break;}})),this[_0x406b4b(0x137)][_0x406b4b(0x1c7)](_0x4887ed[_0x406b4b(0x1a3)][_0x406b4b(0x1d7)](async _0x4df73f=>{const _0x5bf6a5=_0x406b4b;_0x4df73f&&this[_0x5bf6a5(0x1a2)][_0x5bf6a5(0x1a4)](C[_0x5bf6a5(0x119)]['id'],{'unitId':_0x42b7b2,'revision':_0x4df73f});}));}[_0x25e8dd(0x17e)](_0x24d5aa){const _0x49e713=_0x25e8dd,_0x47ef0c=this['_univerInstanceService']['getUnit'](_0x24d5aa)[_0x49e713(0xfe)]()[_0x49e713(0x1af)](_0x28146a=>_0x28146a[_0x49e713(0x124)]()),_0x3a202d=new d[(_0x49e713(0x179))](_0x24d5aa)['id'],_0x10a935=_0x47ef0c[_0x49e713(0x1af)](_0x1ff10a=>new d[(_0x49e713(0x139))](_0x24d5aa,_0x1ff10a)['id']),_0x420eb6=_0x47ef0c[_0x49e713(0x1af)](_0xf3520e=>this[_0x49e713(0x166)][_0x49e713(0xf9)](_0x24d5aa,_0xf3520e)['map'](_0x129e52=>new d[(_0x49e713(0x154))](_0x24d5aa,_0xf3520e,_0x129e52[_0x49e713(0x112)])['id']))[_0x49e713(0xf2)](),_0x261989=new d['WorkbookRecoverHistoryPermission'](_0x24d5aa)['id'];return this['_permissionService'][_0x49e713(0x10a)]([_0x3a202d,..._0x10a935,..._0x420eb6,_0x261989])['every'](_0x1c1946=>!!_0x1c1946['value']);}},exports[_0x25e8dd(0x125)]=pe([g(0x0,o[_0x25e8dd(0xf3)](o[_0x25e8dd(0x16a)])),g(0x1,o['IUniverInstanceService']),g(0x2,o['IConfigService']),g(0x3,o[_0x25e8dd(0x183)]),g(0x4,h[_0x25e8dd(0x117)]),g(0x5,o[_0x25e8dd(0x1e1)]),g(0x6,o[_0x25e8dd(0xf3)](d['RangeProtectionRuleModel'])),g(0x7,o[_0x25e8dd(0xf3)](h[_0x25e8dd(0x1dd)])),g(0x8,o[_0x25e8dd(0xf3)](h['ISidebarService'])),g(0x9,o[_0x25e8dd(0xf3)](o[_0x25e8dd(0x167)]))],exports[_0x25e8dd(0x125)]);const M={'id':_0x25e8dd(0x1ca),'type':o[_0x25e8dd(0x1c6)][_0x25e8dd(0xef)],'handler':_0x120932=>{const _0xdde6e5=_0x25e8dd,_0xe80a0c=_0x120932[_0xdde6e5(0x1b5)](exports[_0xdde6e5(0x125)]),_0x46c598=_0x120932[_0xdde6e5(0x1b5)](o[_0xdde6e5(0x11d)]),{unitId:_0x35576d}=d[_0xdde6e5(0x159)](_0x46c598)||{};return _0x35576d?(_0xe80a0c[_0xdde6e5(0x1bc)](_0x35576d),!0x0):!0x1;}},j={'id':_0x25e8dd(0x11e),'type':o[_0x25e8dd(0x1c6)][_0x25e8dd(0xef)],'handler':()=>!0x0};function Ce(_0xd29ce){const _0x3ed9d4=_0x25e8dd;return{'id':M['id'],'type':h[_0x3ed9d4(0x168)]['BUTTON'],'icon':_0x3ed9d4(0x155),'tooltip':'editHistory.panel.title','hidden$':h[_0x3ed9d4(0x11c)](_0xd29ce,o[_0x3ed9d4(0x19b)]['UNIVER_SHEET']),'disabled$':k[_0x3ed9d4(0x1a7)](_0xd29ce,{'workbookTypes':[d[_0x3ed9d4(0x179)],d[_0x3ed9d4(0x1c1)]],'worksheetTypes':[],'rangeTypes':[]})};}const Ie={[h[_0x25e8dd(0x13d)][_0x25e8dd(0x1c3)]]:{[M['id']]:{'order':0.2,'menuItemFactory':Ce}}};function _0x5227(){const _0x4c44d0=['3535905gNPfZG','_commandService','revertRevision$','executeCommand','tag','_configService','getCurrentRangeDisable$','setConfig','UniverEditHistoryViewerPlugin','Disposable','UniverSheetsHyperLinkPlugin','show','_initUniver','_injector','map','registerCommand','UniverDrawingUIPlugin','data','white','UniverSheetSparklinePlugin','get','path','_pluginMap','getLocales','UniverLicensePlugin','dataset','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','mountHistoryContent','_localCacheService','AuthzIoHttpService','univer-history-container','UniverSheetsHyperLinkUIPlugin','WorkbookViewHistoryPermission','unMountHistoryContent','OTHERS','idSuffix','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','CommandType','add','historyPanelComponentKey','getCurrentLocale','univer.operation.toggle-edit-history','toDisposable','UniverSheetsFormulaUIPlugin','use','params','defs','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','register','appendChild','useRef','UniverSheetsNumfmtPlugin','UniverSheetsFilterUIPlugin','replace','subscribe','height','UniverEditHistoryLoaderPlugin','_init','UniverRPCMainThreadPlugin','length','IDialogService','pluginName','setDarkMode','UniverSheetsPivotTablePlugin','IPermissionService','url(#$1','editHistory.panel.reverting','menu','univerContainerId','asObservable','current','attrs','OPERATION','clear','historyUniver$','flat','Inject','HistoryManagerService','Module','UniverSheetsConditionalFormattingPlugin','IImageIoService','http://www.w3.org/2000/svg','getSubunitRuleList','reload','assign','toStringTag','UniverSheetsDataValidationUIPlugin','getSheets','univer-container','onSteady','mask','history-icon','UniverFormulaEnginePlugin','IConfigService','_menuManagerService','_permissionService','onCommandExecuted','trim','UniverSheetsChartUIPlugin','composePermission','UniverIcon','Error','fill','historyUniver','Exited','substring','next','permissionId','workerURL','currentTheme$','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','1057455rmkDJL','IMessageService','_initContainer','RevertRevisionMutation','IMenuManagerService','string','getMenuHiddenObservable','IUniverInstanceService','univer.operation.exit-edit-history','univerjs-icon\x20univerjs-icon-','colorChannel1','displayName','40396oxOrxJ','_revertErrorTimer','getSheetId','HistoryLoaderService','1000','getElementById','mutations','\x20has\x20been\x20registered.','merge','20153493sysxmm','_initListener','values','session','createElement','UniverSheetsFormulaPlugin','entries','249656TBBVne','children','display','CHANGESET_ACK','uComp','_disposableCollection','state$','WorksheetEditPermission','Univer','DisposableCollection','mergeMenu','RibbonStartGroup','UniverDocsUIPlugin','xlink:href','__getInjector','77AHwqHF','event$','_historyManagerService','100%','0\x200\x2016\x2016','set','_dialogService','LS_CONFIG_KEY','_historyUniver$','ILocalCacheService','defIds','_univerInstanceService','random','_messageService','1em','zIndex','url(#history-icon_clip0_907_281)','UniverSheetsPlugin','UniverSheetsConditionalFormattingUIPlugin','RangeProtectionPermissionEditPoint','HistoryIcon','history-icon_clip0_907_281','editHistory.panel.revertFailed','CollaborationEvent','getSheetCommandTarget','eventID','clipPath','value','forEach','UNIVER_CONTAINER_ID_KEY','UniverSheetsUIPlugin','Loading','none','onStarting','editHistory.panel.listFetchError','UNIVER_HISTORY_CONTAINER_ID','includes','_selectionProtectionRuleModel','ThemeService','MenuItemType','_componentManager','LocaleService','darkMode$','getAllPlugins','from','forwardRef','has','history-container','UniverSheetsChartPlugin','getCollabEntity','70996GPzcjC','M0\x200H16V16H0z','RxDisposable','UniverDataValidationPlugin','disposeWithMe','PLUGIN_CONFIG_KEY_MAIN_THREAD','WorkbookEditablePermission','_config','_sidebarService','_localeService','UniverUIPlugin','_checkCanRevert','CollaborationController','registerPlugin','SYNCED','46lERTbw','ICommandService','exhaustSavingTask','Entered','getConfig','MessageType','CollaborationStatus','setTheme','Plugin','_collaborationController','close','UniverCollaborationPlugin','_initPlugins','UniverSheetsDrawingPlugin','position','Injector','UniverRenderEnginePlugin','getOwnPropertyDescriptor','style','ComponentManager','some','location','unsubscribe','absolute','HistoryModeStatus','UniverInstanceType','defineProperty','UniverNetworkPlugin','_themeService','4133766pUQKIj','dispose'];_0x5227=function(){return _0x4c44d0;};return _0x5227();}var Ue=Object['getOwnPropertyDescriptor'],Ee=(_0x5388e,_0x3aa628,_0x118e0e,_0x488c2d)=>{const _0x144d77=_0x25e8dd;for(var _0x31c332=_0x488c2d>0x1?void 0x0:_0x488c2d?Ue(_0x3aa628,_0x118e0e):_0x3aa628,_0x35aac9=_0x5388e[_0x144d77(0x1dc)]-0x1,_0x232f7b;_0x35aac9>=0x0;_0x35aac9--)(_0x232f7b=_0x5388e[_0x35aac9])&&(_0x31c332=_0x232f7b(_0x31c332)||_0x31c332);return _0x31c332;},S=(_0x51305d,_0x5f4c6a)=>(_0x31029a,_0x4faa32)=>_0x5f4c6a(_0x31029a,_0x4faa32,_0x51305d);let E=class extends o[_0x25e8dd(0x175)]{constructor(_0x26da1e,_0x15af34,_0x2ec019,_0x2d635a,_0x120e62,_0x187684,_0x1bb60a,_0x498c5f){const _0x2de9ec=_0x25e8dd;super(),_(this,_0x2de9ec(0x123),null),(this[_0x2de9ec(0x1a2)]=_0x26da1e,this['_menuManagerService']=_0x15af34,this[_0x2de9ec(0x169)]=_0x2ec019,this[_0x2de9ec(0x143)]=_0x2d635a,this[_0x2de9ec(0x17c)]=_0x120e62,this[_0x2de9ec(0x14e)]=_0x187684,this['_collaborationController']=_0x1bb60a,this[_0x2de9ec(0x1bd)]=_0x498c5f,this[_0x2de9ec(0x1da)]());}[_0x25e8dd(0x1da)](){const _0x29754d=_0x25e8dd;[M,j][_0x29754d(0x15d)](_0x51786f=>this[_0x29754d(0x177)](o[_0x29754d(0x1cb)](this['_commandService'][_0x29754d(0x1b0)](_0x51786f)))),this[_0x29754d(0x177)](this[_0x29754d(0x169)][_0x29754d(0x1d1)]('HistoryIcon',$)),this[_0x29754d(0x105)][_0x29754d(0x13c)](Ie),this[_0x29754d(0x177)](this['_commandService'][_0x29754d(0x107)](_0x227680=>{const _0x52ae57=_0x29754d;if(_0x227680['id']===C[_0x52ae57(0x119)]['id']){this[_0x52ae57(0x14e)][_0x52ae57(0x1ac)]({'content':this[_0x52ae57(0x17c)]['t'](_0x52ae57(0x1e3)),'type':P['MessageType'][_0x52ae57(0x160)],'duration':0x1388});const {unitId:_0x49b44a}=_0x227680[_0x52ae57(0x1ce)],_0x241353=this[_0x52ae57(0x18b)][_0x52ae57(0x172)](_0x49b44a),_0x14954d=O['combineLatest']([_0x241353[_0x52ae57(0x12e)][_0x52ae57(0x142)],_0x241353[_0x52ae57(0x138)]])['subscribe'](async([_0x130b53,_0x38fd41])=>{const _0x514f4d=_0x52ae57;var _0x10028a;_0x130b53[_0x514f4d(0x15a)]===C[_0x514f4d(0x158)][_0x514f4d(0x135)]&&(_0x38fd41==null?void 0x0:_0x38fd41['status'])===p[_0x514f4d(0x188)][_0x514f4d(0x181)]&&_0x130b53[_0x514f4d(0x1b2)][_0x514f4d(0x128)][_0x514f4d(0x196)](_0x546160=>_0x546160['id']===C['RevertRevisionMutation']['id'])&&(this['_historyManagerService'][_0x514f4d(0x1c2)](),_0x14954d[_0x514f4d(0x198)](),this['_revertErrorTimer']&&clearTimeout(this[_0x514f4d(0x123)]),await((_0x10028a=this[_0x514f4d(0x1bd)])==null?void 0x0:_0x10028a[_0x514f4d(0x184)]()),setTimeout(()=>window[_0x514f4d(0x197)][_0x514f4d(0xfa)]()));});this[_0x52ae57(0x123)]=setTimeout(()=>{const _0x5aed27=_0x52ae57;_0x14954d[_0x5aed27(0x198)](),this[_0x5aed27(0x14e)]['show']({'content':this['_localeService']['t'](_0x5aed27(0x157)),'type':P[_0x5aed27(0x187)][_0x5aed27(0x10c)],'duration':0xbb8});},0x1388);}}));}};E=Ee([S(0x0,o[_0x25e8dd(0x183)]),S(0x1,h[_0x25e8dd(0x11a)]),S(0x2,o[_0x25e8dd(0xf3)](h[_0x25e8dd(0x195)])),S(0x3,o[_0x25e8dd(0xf3)](exports[_0x25e8dd(0x125)])),S(0x4,o[_0x25e8dd(0xf3)](o[_0x25e8dd(0x16a)])),S(0x5,h['IMessageService']),S(0x6,o['Inject'](p[_0x25e8dd(0x17f)])),S(0x7,p[_0x25e8dd(0x14a)])],E);var Pe=Object['getOwnPropertyDescriptor'],be=(_0x302d1a,_0x387e13,_0x4fecf2,_0x5e84e0)=>{for(var _0x2b1e7=_0x5e84e0>0x1?void 0x0:_0x5e84e0?Pe(_0x387e13,_0x4fecf2):_0x387e13,_0x2b2861=_0x302d1a['length']-0x1,_0x1154cd;_0x2b2861>=0x0;_0x2b2861--)(_0x1154cd=_0x302d1a[_0x2b2861])&&(_0x2b1e7=_0x1154cd(_0x2b1e7)||_0x2b1e7);return _0x2b1e7;},w=(_0x326953,_0x382bbc)=>(_0x2f767a,_0x5dc476)=>_0x382bbc(_0x2f767a,_0x5dc476,_0x326953);function _0xd997(_0x44aca,_0x175edb){_0x44aca=_0x44aca-0xec;const _0x522728=_0x5227();let _0xd997c4=_0x522728[_0x44aca];return _0xd997c4;}const He=_0x25e8dd(0x1c5);var I;exports[_0x25e8dd(0x1d9)]=(I=class extends o[_0x25e8dd(0x18a)]{constructor(_0x40f8b1=T,_0x14d8bd,_0x15b78d){const _0x586727=_0x25e8dd;super(),this[_0x586727(0x17a)]=_0x40f8b1,this[_0x586727(0x1ae)]=_0x14d8bd,this[_0x586727(0x1a6)]=_0x15b78d;const {menu:_0x379bd5,..._0x42d359}=o[_0x586727(0x12a)]({},T,this[_0x586727(0x17a)]);_0x379bd5&&this[_0x586727(0x1a6)]['setConfig'](_0x586727(0x1e4),_0x379bd5,{'merge':!0x0}),this[_0x586727(0x1a6)][_0x586727(0x1a8)](b,_0x42d359),this['_config']['univerContainerId']&&this[_0x586727(0x1a6)]['setConfig'](H,this[_0x586727(0x17a)][_0x586727(0x1e5)]);}[_0x25e8dd(0x162)](){const _0x2844d3=_0x25e8dd;[[exports[_0x2844d3(0x125)]],[E]][_0x2844d3(0x15d)](_0x266f98=>this['_injector']['add'](_0x266f98));}[_0x25e8dd(0x100)](){const _0x69a525=_0x25e8dd;this['_injector'][_0x69a525(0x1b5)](E);}},_(I,'type',o['UniverInstanceType']['UNIVER_UNKNOWN']),_(I,_0x25e8dd(0x1de),He),I),exports[_0x25e8dd(0x1d9)]=be([w(0x1,o[_0x25e8dd(0xf3)](o[_0x25e8dd(0x191)])),w(0x2,o[_0x25e8dd(0x104)])],exports[_0x25e8dd(0x1d9)]),exports[_0x25e8dd(0x15e)]=H,exports[_0x25e8dd(0x164)]=y;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x373636=_0x1304;(function(_0x467a0f,_0x32d480){const _0x17f170=_0x1304,_0x325daf=_0x467a0f();while(!![]){try{const _0x21df0e=parseInt(_0x17f170(0xcb))/0x1+-parseInt(_0x17f170(0xed))/0x2*(parseInt(_0x17f170(0x111))/0x3)+-parseInt(_0x17f170(0x13b))/0x4*(parseInt(_0x17f170(0x10c))/0x5)+-parseInt(_0x17f170(0xe9))/0x6+parseInt(_0x17f170(0xf2))/0x7*(parseInt(_0x17f170(0x139))/0x8)+parseInt(_0x17f170(0xa9))/0x9+parseInt(_0x17f170(0x13a))/0xa;if(_0x21df0e===_0x32d480)break;else _0x325daf['push'](_0x325daf['shift']());}catch(_0x5c6eba){_0x325daf['push'](_0x325daf['shift']());}}}(_0x32a6,0xc9558));var Y=Object['defineProperty'],B=(_0x444737,_0x310579,_0x545af3)=>_0x310579 in _0x444737?Y(_0x444737,_0x310579,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x545af3}):_0x444737[_0x310579]=_0x545af3,g=(_0x23f727,_0x5995d6,_0x289205)=>B(_0x23f727,typeof _0x5995d6!='symbol'?_0x5995d6+'':_0x5995d6,_0x289205);import{Inject as _0x4cf848,LocaleService as _0x2c91a4,IUniverInstanceService as _0x6bda87,IConfigService as _0x4b0f9d,ICommandService as _0x74f853,IPermissionService as _0x35e2f7,ThemeService as _0xb44845,Disposable as _0xda74e5,DisposableCollection as _0x1a09e0,Univer as _0x113bce,IAuthzIoService as _0x8bda80,CommandType as _0x42ba76,UniverInstanceType as _0x1b1fcf,RxDisposable as _0x157f2e,toDisposable as _0x5895ad,Plugin as _0x20c115,merge as _0x51c2af,Injector as _0x55b805}from'@univerjs/core';import{UniverCollaborationPlugin as _0x4906a6,RevertRevisionMutation as _0x276b03,CollaborationEvent as _0x1aa5f6}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x69b380,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0xfde2d,CollaborationController as _0x36eb0f,ILocalCacheService as _0x46d98a,CollaborationStatus as _0x4c8494}from'@univerjs-pro/collaboration-client';import{MessageType as _0x530a6d}from'@univerjs/design';import{useRef as _0x986daa,createElement as _0x2a36ac,forwardRef as _0x535732}from'react';import{IMessageService as _0x582a14,IDialogService as _0x3807e6,ISidebarService as _0x3969b7,UniverUIPlugin as _0x1207c5,getMenuHiddenObservable as _0x4ed132,MenuItemType as _0x30aac4,RibbonStartGroup as _0xcb0ce3,IMenuManagerService as _0x7a8a70,ComponentManager as _0x5b1e0c}from'@univerjs/ui';import{BehaviorSubject as _0x31fb66,combineLatest as _0x4cf64d}from'rxjs';import{RangeProtectionRuleModel as _0x5018ad,UniverSheetsPlugin as _0x2cf6b4,WorkbookEditablePermission as _0x4f3937,WorksheetEditPermission as _0x40738e,RangeProtectionPermissionEditPoint as _0x27ffca,WorkbookRecoverHistoryPermission as _0x8b603b,getSheetCommandTarget as _0x36ca76,WorkbookViewHistoryPermission as _0x116758}from'@univerjs/sheets';import{UniverEditHistoryViewerPlugin as _0x3c390e,HistoryManagerService as _0x34391b,HistoryModeStatus as _0x30efeb}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x35e646,UniverLicensePlugin as _0x5d8f12}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x3695d7}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0x18d5f1}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x66a00d}from'@univerjs-pro/sheets-pivot';import{UniverSheetSparklinePlugin as _0x47a769}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x5d2d93}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x1ed559}from'@univerjs/data-validation';import{UniverDocsPlugin as _0x3a8f00}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x3f2008}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0x5c0196,IImageIoService as _0x1faf6c}from'@univerjs/drawing';function _0x32a6(){const _0x5b7604=['displayName','setTheme','currentTheme$','BUTTON','dispose','exhaustSavingTask','getOwnPropertyDescriptor','_revertErrorTimer','_componentManager','dataset','_menuManagerService','length','type','block','_univerInstanceService','5417280OkumqB','trim','defs','univerContainerId','2DvRuYZ','createElement','CHANGESET_ACK','registerPlugin','status$','23548RdTeic','history-icon_clip0_907_281','colorChannel1','_configService','_initPlugins','from','_historyUniver$','params','editHistory.panel.reverting','onCommandExecuted','UNIVER_SHEET','_initUniver','historyUniver','getElementById','_localeService','tag','mountHistoryContent','_collaborationController','zIndex','composePermission','current','[HistoryLoaderService]:\x20Plugin\x20','none','M8.28291\x205.16293C8.28295\x204.83156\x208.01435\x204.5629\x207.68298\x204.56287C7.35161\x204.56283\x207.08295\x204.83143\x207.08291\x205.1628L7.08252\x208.63494C7.0825\x208.79881\x207.1495\x208.95555\x207.26796\x209.06877L9.70073\x2011.3939C9.94029\x2011.6228\x2010.3201\x2011.6142\x2010.549\x2011.3747C10.778\x2011.1351\x2010.7694\x2010.7553\x2010.5298\x2010.5263L8.28255\x208.37852L8.28291\x205.16293Z','permissionId','next','5tHofMc','getSheets','_messageService','substring','univer-history-container','4892946QSLcoK','invoke','http://www.w3.org/2000/svg','close','100%','_config','0\x200\x2016\x2016','setDarkMode','univer.operation.exit-edit-history','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','replace','use','_permissionService','onSteady','register','attrs','add','executeCommand','path','data','univer-container','editHistory.panel.title','style','Loading','_checkCanRevert','url(#history-icon_clip0_907_281)','menu','status','forEach','currentColor','1em','white','edit-history-loader.config','\x20has\x20been\x20registered.','onStarting','display','uComp','historyListServerUrl','_dialogService','top','2592xHQlCI','10089890xRryKI','6415096gccnrO','assign','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','_disposableCollection','left','__getInjector','clear','children','historyPanelComponentKey','Error','pluginName','random','unMountHistoryContent','_localCacheService','disposeWithMe','_commandService','map','svg','reload','show','closeAll','unsubscribe','historyUniver$','_initListener','1000','width','mergeMenu','11272356FlKMNk','getSubunitRuleList','revertRevision$','subscribe','setConfig','includes','mask','url(#$1','flat','height','_injector','UniverIcon','_selectionProtectionRuleModel','event$','HistoryIcon','value','editHistory.panel.revertFailed','getCurrentLocale','Entered','univer.operation.toggle-edit-history','get','toString','OPERATION','mutations','idSuffix','editHistory.panel.listFetchError','_sidebarService','xlink:href','setLocale','_initContainer','getSheetId','_pluginMap','every','div','1610891tzgxBF','entries','triggerLoadVersions','asObservable','_init','getConfig','getCollabEntity','workerURL','_historyManagerService','_themeService','location','has','getLocales','string','clipPath'];_0x32a6=function(){return _0x5b7604;};return _0x32a6();}import{UniverDrawingUIPlugin as _0x535f59}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x123479}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x6b9847}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0xf4b03e}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0xe64929,PLUGIN_CONFIG_KEY_MAIN_THREAD as _0x4c5b18}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x151244}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x33c2da}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x226d65}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0x4d43a3}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x471766}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x266dea}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x14d590}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0xec952}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x3f02a6}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x60ce41}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x1ea2ce}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x27c318}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x745455}from'@univerjs/sheets-numfmt';import{UniverSheetsUIPlugin as _0x3ebd73,getCurrentRangeDisable$ as _0x17d34e}from'@univerjs/sheets-ui';const U=_0x373636(0x131),N={};function F({ref:_0x10fc28,..._0x1da16d}){const _0x1bfd60=_0x373636,{icon:_0x40854e,id:_0x4d89cf,className:_0x379f6b,extend:_0x43cf46,..._0x38d701}=_0x1da16d,_0xd04780=('univerjs-icon\x20univerjs-icon-'+_0x4d89cf+'\x20'+(_0x379f6b||''))[_0x1bfd60(0xea)](),_0x91e99a=_0x986daa('_'+hi());return j(_0x40854e,''+_0x4d89cf,{'defIds':_0x40854e['defIds'],'idSuffix':_0x91e99a[_0x1bfd60(0x106)]},{'ref':_0x10fc28,'className':_0xd04780,..._0x38d701},_0x43cf46);}function j(_0x482153,_0x1be9b3,_0x160b4d,_0xae3842,_0x5e562d){const _0x4634b0=_0x373636;return _0x2a36ac(_0x482153[_0x4634b0(0x101)],{'key':_0x1be9b3,...ci(_0x482153,_0x160b4d,_0x5e562d),..._0xae3842},(li(_0x482153,_0x160b4d)[_0x4634b0(0x142)]||[])['map']((_0x125f60,_0x3fb647)=>j(_0x125f60,_0x1be9b3+'-'+_0x482153['tag']+'-'+_0x3fb647,_0x160b4d,void 0x0,_0x5e562d)));}function ci(_0x1caadd,_0x11d1a9,_0x198527){const _0x208e41=_0x373636,_0x3de4aa={..._0x1caadd[_0x208e41(0x120)]};_0x198527!=null&&_0x198527[_0x208e41(0xf4)]&&_0x3de4aa['fill']===_0x208e41(0xf4)&&(_0x3de4aa['fill']=_0x198527[_0x208e41(0xf4)]),_0x1caadd[_0x208e41(0x101)]===_0x208e41(0xaf)&&_0x3de4aa['id']&&(_0x3de4aa['id']=_0x3de4aa['id']+_0x11d1a9['idSuffix']),Object[_0x208e41(0xcc)](_0x3de4aa)[_0x208e41(0x12d)](([_0x12cb4f,_0x42b272])=>{const _0x1431a5=_0x208e41;_0x12cb4f===_0x1431a5(0xaf)&&typeof _0x42b272==_0x1431a5(0xd8)&&(_0x3de4aa[_0x12cb4f]=_0x42b272[_0x1431a5(0x11b)](/url\(#(.*)\)/,_0x1431a5(0xb0)+_0x11d1a9[_0x1431a5(0xc1)]+')'));});const {defIds:_0x28fb38}=_0x11d1a9;return!_0x28fb38||_0x28fb38['length']===0x0||(_0x1caadd['tag']===_0x208e41(0x11c)&&_0x3de4aa[_0x208e41(0xc4)]&&(_0x3de4aa[_0x208e41(0xc4)]=_0x3de4aa[_0x208e41(0xc4)]+_0x11d1a9[_0x208e41(0xc1)]),Object[_0x208e41(0xcc)](_0x3de4aa)[_0x208e41(0x12d)](([_0x3d22a2,_0x5cd8ad])=>{const _0x496ff4=_0x208e41;typeof _0x5cd8ad=='string'&&(_0x3de4aa[_0x3d22a2]=_0x5cd8ad['replace'](/url\(#(.*)\)/,_0x496ff4(0xb0)+_0x11d1a9['idSuffix']+')'));})),_0x3de4aa;}function li(_0x61d775,_0x1bb5bd){const _0x1b009f=_0x373636;var _0x5280b3;const {defIds:_0x48b113}=_0x1bb5bd;return!_0x48b113||_0x48b113[_0x1b009f(0xe5)]===0x0?_0x61d775:_0x61d775['tag']===_0x1b009f(0xeb)&&((_0x5280b3=_0x61d775['children'])!=null&&_0x5280b3[_0x1b009f(0xe5)])?{..._0x61d775,'children':_0x61d775[_0x1b009f(0x142)][_0x1b009f(0x14b)](_0x57798a=>typeof _0x57798a[_0x1b009f(0x120)]['id']==_0x1b009f(0xd8)&&_0x48b113&&_0x48b113[_0x1b009f(0xae)](_0x57798a[_0x1b009f(0x120)]['id'])?{..._0x57798a,'attrs':{..._0x57798a[_0x1b009f(0x120)],'id':_0x57798a[_0x1b009f(0x120)]['id']+_0x1bb5bd['idSuffix']}}:_0x57798a)}:_0x61d775;}function hi(){const _0x117d1b=_0x373636;return Math[_0x117d1b(0x146)]()[_0x117d1b(0xbe)](0x24)[_0x117d1b(0x10f)](0x2,0x8);}F[_0x373636(0xda)]=_0x373636(0xb4);const ui={'tag':_0x373636(0x14c),'attrs':{'xmlns':_0x373636(0x113),'fill':_0x373636(0x108),'viewBox':_0x373636(0x117),'width':_0x373636(0x12f),'height':_0x373636(0x12f)},'children':[{'tag':'g','attrs':{'fill':_0x373636(0x12e),'clipPath':_0x373636(0x12a)},'children':[{'tag':_0x373636(0x123),'attrs':{'d':_0x373636(0x13d)}},{'tag':_0x373636(0x123),'attrs':{'d':_0x373636(0x109)}}]},{'tag':_0x373636(0xeb),'attrs':{},'children':[{'tag':_0x373636(0xd9),'attrs':{'id':'history-icon_clip0_907_281'},'children':[{'tag':_0x373636(0x123),'attrs':{'fill':_0x373636(0x130),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x373636(0xf3)]},V=_0x535732(function(_0x334e66,_0x5d2966){const _0x256897=_0x373636;return _0x2a36ac(F,Object[_0x256897(0x13c)]({},_0x334e66,{'id':'history-icon','ref':_0x5d2966,'icon':ui}));});V[_0x373636(0xda)]=_0x373636(0xb7);var gi=Object[_0x373636(0xe0)],mi=(_0x5e43c1,_0x5b2beb,_0x529214,_0x47f186)=>{const _0x3200a4=_0x373636;for(var _0x541bd7=_0x47f186>0x1?void 0x0:_0x47f186?gi(_0x5b2beb,_0x529214):_0x5b2beb,_0x3b2762=_0x5e43c1[_0x3200a4(0xe5)]-0x1,_0x2e0bde;_0x3b2762>=0x0;_0x3b2762--)(_0x2e0bde=_0x5e43c1[_0x3b2762])&&(_0x541bd7=_0x2e0bde(_0x541bd7)||_0x541bd7);return _0x541bd7;},l=(_0x1654dd,_0x1ca4fc)=>(_0x4ab925,_0x1527b4)=>_0x1ca4fc(_0x4ab925,_0x1527b4,_0x1654dd);const vi=_0x373636(0x125),G='UNIVER_CONTAINER_ID',d=_0x373636(0x110);let f=class extends _0xda74e5{constructor(_0x34e9df,_0x320b5c,_0x43f140,_0x38dcd1,_0xde5ffe,_0x3848ea,_0x24c396,_0x1e04a6,_0x3fcea8,_0x57f1a2){const _0x72626c=_0x373636;super(),g(this,_0x72626c(0xf8),new _0x31fb66(null)),g(this,_0x72626c(0x151),this[_0x72626c(0xf8)][_0x72626c(0xce)]()),g(this,_0x72626c(0x13e),new _0x1a09e0()),g(this,'_pluginMap',new Map()),(this[_0x72626c(0x100)]=_0x34e9df,this[_0x72626c(0xe8)]=_0x320b5c,this['_configService']=_0x43f140,this[_0x72626c(0x14a)]=_0x38dcd1,this[_0x72626c(0x10e)]=_0xde5ffe,this[_0x72626c(0x11d)]=_0x3848ea,this[_0x72626c(0xb5)]=_0x24c396,this['_dialogService']=_0x1e04a6,this[_0x72626c(0xc3)]=_0x3fcea8,this[_0x72626c(0xd4)]=_0x57f1a2,this[_0x72626c(0xcf)]());}get[_0x373636(0xfe)](){const _0x7b0ad4=_0x373636;return this[_0x7b0ad4(0xf8)][_0x7b0ad4(0xb8)];}[_0x373636(0xcf)](){const _0xd73d7b=_0x373636;this['_initContainer'](),this[_0xd73d7b(0xf6)]();}[_0x373636(0xc6)](){const _0x3b0873=_0x373636;var _0x2b238b;const _0x1e492a=(_0x2b238b=this[_0x3b0873(0xf5)]['getConfig'](G))!=null?_0x2b238b:vi,_0x27b1d6=document[_0x3b0873(0xff)](_0x1e492a);if(!_0x27b1d6)return;const _0x1426d8=document[_0x3b0873(0xee)](_0x3b0873(0xca));_0x1426d8['id']=d,_0x1426d8[_0x3b0873(0xe3)][_0x3b0873(0x135)]='history-container',_0x1426d8[_0x3b0873(0x127)]['position']='absolute',_0x1426d8['style'][_0x3b0873(0x138)]='0',_0x1426d8[_0x3b0873(0x127)][_0x3b0873(0x13f)]='0',_0x1426d8[_0x3b0873(0x127)][_0x3b0873(0x154)]=_0x3b0873(0x115),_0x1426d8[_0x3b0873(0x127)][_0x3b0873(0xb2)]='100%',_0x1426d8[_0x3b0873(0x127)][_0x3b0873(0x104)]=_0x3b0873(0x153),_0x1426d8[_0x3b0873(0x127)]['display']='none',_0x27b1d6['appendChild'](_0x1426d8);}['_initPlugins'](){const _0x38da02=_0x373636;var _0x1fb2d1,_0x58178a,_0x3735dd,_0x29a7f7;[[_0x6b9847],[_0x1207c5,{'container':d,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x3807e6,null]]}],[_0xf4b03e],[_0x5c0196,{'override':[[_0x1faf6c,null]]}],[_0x3a8f00,{'hasScroll':!0x1}],[_0x3f2008],[_0x745455],[_0x2cf6b4,{'notExecuteFormula':!0x0}],[_0x3ebd73],[_0x3f02a6],[_0x60ce41],[_0x4906a6],[_0x14d590],[_0xec952],[_0x151244],[_0x33c2da],[_0x1ea2ce],[_0x27c318],[_0x1ed559],[_0x226d65],[_0x4d43a3],[_0x123479,{'notExecuteFormula':!0x0}],[_0xe64929,{'workerURL':(_0x58178a=(_0x1fb2d1=this[_0x38da02(0xf5)][_0x38da02(0xd0)](_0x4c5b18))==null?void 0x0:_0x1fb2d1[_0x38da02(0xd2)])!=null?_0x58178a:'./worker.js'}],[_0x535f59],[_0x471766],[_0x266dea],[_0x47a769],[_0x5d2d93],[_0x3695d7],[_0x18d5f1],[_0x66a00d,{'notExecuteFormula':!0x0}],[_0x3c390e,{'historyListServerUrl':(_0x3735dd=this['_configService'][_0x38da02(0xd0)](U))==null?void 0x0:_0x3735dd[_0x38da02(0x136)],'historyPanelComponentKey':(_0x29a7f7=this[_0x38da02(0xf5)][_0x38da02(0xd0)](U))==null?void 0x0:_0x29a7f7[_0x38da02(0x143)]}]][_0x38da02(0x12d)](([_0x32e43f,_0x266b9a])=>this[_0x38da02(0xf0)](_0x32e43f,_0x266b9a));}[_0x373636(0xde)](){const _0x415d06=_0x373636;super['dispose'](),this['unMountHistoryContent'](),this[_0x415d06(0xc8)][_0x415d06(0x141)]();}[_0x373636(0xf0)](_0x13c663,_0x2b3e4b,_0x2c6e6b){const _0x4c26e4=_0x373636;if(this[_0x4c26e4(0xc8)][_0x4c26e4(0xd6)](_0x13c663[_0x4c26e4(0x145)])&&!_0x2c6e6b)throw new Error(_0x4c26e4(0x107)+_0x13c663['pluginName']+_0x4c26e4(0x132));this[_0x4c26e4(0xc8)]['set'](_0x13c663['pluginName'],[_0x13c663,_0x2b3e4b]);}['getAllPlugins'](){const _0xaf5f54=_0x373636;return Array[_0xaf5f54(0xf7)](this['_pluginMap']['values']());}['mountHistoryContent'](_0x561a24){const _0x1a63cb=_0x373636,_0xe2c943=document[_0x1a63cb(0xff)](d);_0xe2c943&&(_0xe2c943['style'][_0x1a63cb(0x134)]=_0x1a63cb(0xe7),this[_0x1a63cb(0xfd)](_0x561a24,d));}[_0x373636(0x147)](){const _0x3365bf=_0x373636;var _0x43f4cb;this[_0x3365bf(0x13e)][_0x3365bf(0xde)](),(_0x43f4cb=this['historyUniver'])==null||_0x43f4cb[_0x3365bf(0xde)](),this[_0x3365bf(0xf8)][_0x3365bf(0x10b)](null);const _0x138673=document[_0x3365bf(0xff)](d);_0x138673&&(_0x138673[_0x3365bf(0x127)][_0x3365bf(0x134)]=_0x3365bf(0x108));}[_0x373636(0xfd)](_0x29385d,_0xd0041b){const _0x3a5bda=_0x373636;if(this[_0x3a5bda(0xfe)])return;const _0xf1d853=new _0x113bce({'locales':{[this[_0x3a5bda(0x100)][_0x3a5bda(0xba)]()]:this[_0x3a5bda(0x100)][_0x3a5bda(0xd7)]()},'override':[[_0x8bda80,{'useClass':_0x69b380}]]}),_0x30262b=_0xf1d853[_0x3a5bda(0x140)]();this[_0x3a5bda(0x149)](this['_themeService']['darkMode$'][_0x3a5bda(0xac)](_0x29e1f3=>{const _0x32fec1=_0x3a5bda;_0x30262b[_0x32fec1(0xbd)](_0xb44845)[_0x32fec1(0x118)](_0x29e1f3);})),this[_0x3a5bda(0x149)](this['_themeService'][_0x3a5bda(0xdc)]['subscribe'](_0x61bdb8=>{const _0x3e6466=_0x3a5bda;_0x30262b[_0x3e6466(0xbd)](_0xb44845)[_0x3e6466(0xdb)](_0x61bdb8);})),_0x30262b[_0x3a5bda(0xbd)](_0x2c91a4)[_0x3a5bda(0xc5)](this[_0x3a5bda(0x100)][_0x3a5bda(0xba)]()),_0x30262b[_0x3a5bda(0xbd)](_0x4b0f9d)[_0x3a5bda(0xad)](_0xfde2d,this[_0x3a5bda(0xf5)][_0x3a5bda(0xd0)](_0xfde2d));const _0x59dc23=this['_configService'][_0x3a5bda(0xd0)](_0x35e646);_0x59dc23&&_0xf1d853[_0x3a5bda(0xf0)](_0x5d8f12,{'license':_0x59dc23['ls']}),this[_0x3a5bda(0xc8)][_0x3a5bda(0x12d)](([_0x28417d,_0x365d85])=>{_0xf1d853['registerPlugin'](_0x28417d,_0x365d85);}),_0x30262b[_0x3a5bda(0x112)](_0x576f6a=>{this['_initListener'](_0x576f6a,_0x29385d);}),this[_0x3a5bda(0xf8)]['next'](_0xf1d853);const _0x25672e=_0x30262b[_0x3a5bda(0xbd)](_0x34391b),_0x344483=this[_0x3a5bda(0x129)](_0x29385d);_0x25672e[_0x3a5bda(0xcd)](_0x29385d,_0xd0041b,_0x344483);}[_0x373636(0x152)](_0x35f49b,_0x4825c7){const _0x59ad6c=_0x373636,_0x4aa5a5=_0x35f49b[_0x59ad6c(0xbd)](_0x34391b);this[_0x59ad6c(0x13e)]['add'](_0x4aa5a5[_0x59ad6c(0xf1)]['subscribe'](_0xefff75=>{const _0x5d1ee5=_0x59ad6c;switch(_0xefff75){case _0x30efeb[_0x5d1ee5(0xbb)]:this[_0x5d1ee5(0x137)][_0x5d1ee5(0x14f)](),this['_sidebarService'][_0x5d1ee5(0x114)]();break;case _0x30efeb['Exited']:this[_0x5d1ee5(0x14a)][_0x5d1ee5(0x122)](W['id']),this['unMountHistoryContent']();break;case _0x30efeb[_0x5d1ee5(0x144)]:this[_0x5d1ee5(0x147)](),this['_messageService'][_0x5d1ee5(0x14e)]({'content':this[_0x5d1ee5(0x100)]['t'](_0x5d1ee5(0xc2)),'type':_0x530a6d['Error'],'duration':0xbb8});break;}})),this[_0x59ad6c(0x13e)]['add'](_0x4aa5a5[_0x59ad6c(0xab)]['subscribe'](async _0x27b1c9=>{const _0x76ed50=_0x59ad6c;_0x27b1c9&&this[_0x76ed50(0x14a)][_0x76ed50(0x122)](_0x276b03['id'],{'unitId':_0x4825c7,'revision':_0x27b1c9});}));}[_0x373636(0x129)](_0x1d5785){const _0x3454f9=_0x373636,_0x291945=this[_0x3454f9(0xe8)]['getUnit'](_0x1d5785)[_0x3454f9(0x10d)]()['map'](_0x4bd937=>_0x4bd937[_0x3454f9(0xc7)]()),_0x3a22d4=new _0x4f3937(_0x1d5785)['id'],_0x42b4e2=_0x291945[_0x3454f9(0x14b)](_0x3b98e=>new _0x40738e(_0x1d5785,_0x3b98e)['id']),_0x21f6c6=_0x291945[_0x3454f9(0x14b)](_0x85c0bc=>this['_selectionProtectionRuleModel'][_0x3454f9(0xaa)](_0x1d5785,_0x85c0bc)[_0x3454f9(0x14b)](_0x323764=>new _0x27ffca(_0x1d5785,_0x85c0bc,_0x323764[_0x3454f9(0x10a)])['id']))[_0x3454f9(0xb1)](),_0x41306b=new _0x8b603b(_0x1d5785)['id'];return this[_0x3454f9(0x11d)][_0x3454f9(0x105)]([_0x3a22d4,..._0x42b4e2,..._0x21f6c6,_0x41306b])[_0x3454f9(0xc9)](_0x4d71c7=>!!_0x4d71c7['value']);}};f=mi([l(0x0,_0x4cf848(_0x2c91a4)),l(0x1,_0x6bda87),l(0x2,_0x4b0f9d),l(0x3,_0x74f853),l(0x4,_0x582a14),l(0x5,_0x35e2f7),l(0x6,_0x4cf848(_0x5018ad)),l(0x7,_0x4cf848(_0x3807e6)),l(0x8,_0x4cf848(_0x3969b7)),l(0x9,_0x4cf848(_0xb44845))],f);const b={'id':_0x373636(0xbc),'type':_0x42ba76[_0x373636(0xbf)],'handler':_0x1a8b67=>{const _0x165fa6=_0x373636,_0x3e1b39=_0x1a8b67[_0x165fa6(0xbd)](f),_0x10d7a3=_0x1a8b67[_0x165fa6(0xbd)](_0x6bda87),{unitId:_0x5e967d}=_0x36ca76(_0x10d7a3)||{};return _0x5e967d?(_0x3e1b39[_0x165fa6(0x102)](_0x5e967d),!0x0):!0x1;}},W={'id':_0x373636(0x119),'type':_0x42ba76[_0x373636(0xbf)],'handler':()=>!0x0};function di(_0xb3b418){const _0x4ef821=_0x373636;return{'id':b['id'],'type':_0x30aac4[_0x4ef821(0xdd)],'icon':'HistoryIcon','tooltip':_0x4ef821(0x126),'hidden$':_0x4ed132(_0xb3b418,_0x1b1fcf[_0x4ef821(0xfc)]),'disabled$':_0x17d34e(_0xb3b418,{'workbookTypes':[_0x4f3937,_0x116758],'worksheetTypes':[],'rangeTypes':[]})};}function _0x1304(_0x13d0b9,_0x4849de){_0x13d0b9=_0x13d0b9-0xa9;const _0x32a6fd=_0x32a6();let _0x1304d6=_0x32a6fd[_0x13d0b9];return _0x1304d6;}const fi={[_0xcb0ce3['OTHERS']]:{[b['id']]:{'order':0.2,'menuItemFactory':di}}};var _i=Object[_0x373636(0xe0)],pi=(_0x2e140e,_0x443394,_0x414deb,_0x38f3bf)=>{const _0x266c22=_0x373636;for(var _0x19ee16=_0x38f3bf>0x1?void 0x0:_0x38f3bf?_i(_0x443394,_0x414deb):_0x443394,_0x2d147a=_0x2e140e[_0x266c22(0xe5)]-0x1,_0x2a3f6e;_0x2d147a>=0x0;_0x2d147a--)(_0x2a3f6e=_0x2e140e[_0x2d147a])&&(_0x19ee16=_0x2a3f6e(_0x19ee16)||_0x19ee16);return _0x19ee16;},m=(_0x54bdac,_0x3f037f)=>(_0x5617ac,_0x5ddbda)=>_0x3f037f(_0x5617ac,_0x5ddbda,_0x54bdac);let p=class extends _0x157f2e{constructor(_0x5a9e0b,_0x3948c0,_0x50c16d,_0x4bfe5b,_0x1d2c6d,_0x56ce0e,_0x29980d,_0x138315){const _0x4a5b25=_0x373636;super(),g(this,_0x4a5b25(0xe1),null),(this[_0x4a5b25(0x14a)]=_0x5a9e0b,this[_0x4a5b25(0xe4)]=_0x3948c0,this[_0x4a5b25(0xe2)]=_0x50c16d,this['_historyManagerService']=_0x4bfe5b,this['_localeService']=_0x1d2c6d,this['_messageService']=_0x56ce0e,this[_0x4a5b25(0x103)]=_0x29980d,this[_0x4a5b25(0x148)]=_0x138315,this[_0x4a5b25(0xcf)]());}[_0x373636(0xcf)](){const _0x4f9309=_0x373636;[b,W][_0x4f9309(0x12d)](_0xf67874=>this[_0x4f9309(0x149)](_0x5895ad(this[_0x4f9309(0x14a)]['registerCommand'](_0xf67874)))),this[_0x4f9309(0x149)](this[_0x4f9309(0xe2)][_0x4f9309(0x11f)](_0x4f9309(0xb7),V)),this[_0x4f9309(0xe4)][_0x4f9309(0x155)](fi),this['disposeWithMe'](this[_0x4f9309(0x14a)][_0x4f9309(0xfb)](_0x1a7a78=>{const _0x2c9714=_0x4f9309;if(_0x1a7a78['id']===_0x276b03['id']){this[_0x2c9714(0x10e)][_0x2c9714(0x14e)]({'content':this[_0x2c9714(0x100)]['t'](_0x2c9714(0xfa)),'type':_0x530a6d[_0x2c9714(0x128)],'duration':0x1388});const {unitId:_0x4bec4e}=_0x1a7a78[_0x2c9714(0xf9)],_0x5da616=this['_collaborationController'][_0x2c9714(0xd1)](_0x4bec4e),_0x4beb1d=_0x4cf64d([_0x5da616['session'][_0x2c9714(0xb6)],_0x5da616['state$']])[_0x2c9714(0xac)](async([_0x502745,_0x11f8db])=>{const _0x1ac8eb=_0x2c9714;var _0x3eb011;_0x502745['eventID']===_0x1aa5f6[_0x1ac8eb(0xef)]&&(_0x11f8db==null?void 0x0:_0x11f8db[_0x1ac8eb(0x12c)])===_0x4c8494['SYNCED']&&_0x502745[_0x1ac8eb(0x124)][_0x1ac8eb(0xc0)]['some'](_0xa9f464=>_0xa9f464['id']===_0x276b03['id'])&&(this[_0x1ac8eb(0xd3)][_0x1ac8eb(0x147)](),_0x4beb1d[_0x1ac8eb(0x150)](),this[_0x1ac8eb(0xe1)]&&clearTimeout(this[_0x1ac8eb(0xe1)]),await((_0x3eb011=this[_0x1ac8eb(0x148)])==null?void 0x0:_0x3eb011[_0x1ac8eb(0xdf)]()),setTimeout(()=>window[_0x1ac8eb(0xd5)][_0x1ac8eb(0x14d)]()));});this[_0x2c9714(0xe1)]=setTimeout(()=>{const _0x32d28d=_0x2c9714;_0x4beb1d[_0x32d28d(0x150)](),this[_0x32d28d(0x10e)]['show']({'content':this[_0x32d28d(0x100)]['t'](_0x32d28d(0xb9)),'type':_0x530a6d['Error'],'duration':0xbb8});},0x1388);}}));}};p=pi([m(0x0,_0x74f853),m(0x1,_0x7a8a70),m(0x2,_0x4cf848(_0x5b1e0c)),m(0x3,_0x4cf848(f)),m(0x4,_0x4cf848(_0x2c91a4)),m(0x5,_0x582a14),m(0x6,_0x4cf848(_0x36eb0f)),m(0x7,_0x46d98a)],p);var Si=Object[_0x373636(0xe0)],Ci=(_0xb4ad3,_0x21fc6b,_0x4c4b96,_0x595b32)=>{const _0x2444dc=_0x373636;for(var _0x5162d0=_0x595b32>0x1?void 0x0:_0x595b32?Si(_0x21fc6b,_0x4c4b96):_0x21fc6b,_0x4e8ad0=_0xb4ad3[_0x2444dc(0xe5)]-0x1,_0x135b6e;_0x4e8ad0>=0x0;_0x4e8ad0--)(_0x135b6e=_0xb4ad3[_0x4e8ad0])&&(_0x5162d0=_0x135b6e(_0x5162d0)||_0x5162d0);return _0x5162d0;},R=(_0x201f1f,_0x26171a)=>(_0x5a72cb,_0x26f767)=>_0x26171a(_0x5a72cb,_0x26f767,_0x201f1f);const yi=_0x373636(0x11a);var _;let H=(_=class extends _0x20c115{constructor(_0x31b236=N,_0x127e1b,_0x1e3a5a){const _0x1cacbd=_0x373636;super(),this[_0x1cacbd(0x116)]=_0x31b236,this['_injector']=_0x127e1b,this['_configService']=_0x1e3a5a;const {menu:_0x4cbe2c,..._0x2f85ce}=_0x51c2af({},N,this[_0x1cacbd(0x116)]);_0x4cbe2c&&this['_configService'][_0x1cacbd(0xad)](_0x1cacbd(0x12b),_0x4cbe2c,{'merge':!0x0}),this['_configService'][_0x1cacbd(0xad)](U,_0x2f85ce),this[_0x1cacbd(0x116)]['univerContainerId']&&this[_0x1cacbd(0xf5)][_0x1cacbd(0xad)](G,this[_0x1cacbd(0x116)][_0x1cacbd(0xec)]);}[_0x373636(0x133)](){const _0x142e53=_0x373636;[[f],[p]][_0x142e53(0x12d)](_0x9cf079=>this[_0x142e53(0xb3)][_0x142e53(0x121)](_0x9cf079));}[_0x373636(0x11e)](){const _0x456f67=_0x373636;this[_0x456f67(0xb3)]['get'](p);}},g(_,_0x373636(0xe6),_0x1b1fcf['UNIVER_UNKNOWN']),g(_,_0x373636(0x145),yi),_);H=Ci([R(0x1,_0x4cf848(_0x55b805)),R(0x2,_0x4b0f9d)],H);export{f as HistoryLoaderService,G as UNIVER_CONTAINER_ID_KEY,d as UNIVER_HISTORY_CONTAINER_ID,H as UniverEditHistoryLoaderPlugin};
|
|
1
|
+
const _0x39a409=_0x4215;(function(_0x4328f9,_0x4a8bb9){const _0x3a085a=_0x4215,_0x5c98b0=_0x4328f9();while(!![]){try{const _0x4fc6e2=-parseInt(_0x3a085a(0x173))/0x1+parseInt(_0x3a085a(0x156))/0x2+parseInt(_0x3a085a(0x1c4))/0x3*(-parseInt(_0x3a085a(0x15f))/0x4)+parseInt(_0x3a085a(0x1c0))/0x5*(-parseInt(_0x3a085a(0x17b))/0x6)+parseInt(_0x3a085a(0x174))/0x7*(-parseInt(_0x3a085a(0x1c1))/0x8)+-parseInt(_0x3a085a(0x155))/0x9+parseInt(_0x3a085a(0x1a2))/0xa;if(_0x4fc6e2===_0x4a8bb9)break;else _0x5c98b0['push'](_0x5c98b0['shift']());}catch(_0x8ce1fe){_0x5c98b0['push'](_0x5c98b0['shift']());}}}(_0x197d,0x19a65));var Y=Object[_0x39a409(0x16e)],B=(_0x3165e9,_0x2b34d2,_0x5cb011)=>_0x2b34d2 in _0x3165e9?Y(_0x3165e9,_0x2b34d2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5cb011}):_0x3165e9[_0x2b34d2]=_0x5cb011,g=(_0x1cf6e9,_0x50036a,_0xc4d513)=>B(_0x1cf6e9,typeof _0x50036a!='symbol'?_0x50036a+'':_0x50036a,_0xc4d513);import{Inject as _0x4d0f78,LocaleService as _0x5a075e,IUniverInstanceService as _0x47b3be,IConfigService as _0x1036a9,ICommandService as _0x270472,IPermissionService as _0x44885c,ThemeService as _0x2ea7de,Disposable as _0x49da04,DisposableCollection as _0x4ae443,Univer as _0x2af004,IAuthzIoService as _0x2e67dc,CommandType as _0x23553e,UniverInstanceType as _0x33cada,RxDisposable as _0x157ec3,toDisposable as _0x572451,Plugin as _0x219636,merge as _0x4aa835,Injector as _0x2a077e}from'@univerjs/core';import{UniverCollaborationPlugin as _0x21bf16,RevertRevisionMutation as _0x388f9a,CollaborationEvent as _0x18fd40}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x1e7fd3,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x431c30,CollaborationController as _0x450258,ILocalCacheService as _0x3ebc56,CollaborationStatus as _0x346212}from'@univerjs-pro/collaboration-client';import{MessageType as _0x57be99}from'@univerjs/design';import{useRef as _0x23c6f8,createElement as _0x353685,forwardRef as _0x4f6452}from'react';import{IMessageService as _0xea87f8,IDialogService as _0x56af60,ISidebarService as _0x4f29fb,UniverUIPlugin as _0xd84c08,getMenuHiddenObservable as _0x4e42e2,MenuItemType as _0x343a87,RibbonStartGroup as _0x57879a,IMenuManagerService as _0x26094f,ComponentManager as _0x529cde}from'@univerjs/ui';import{BehaviorSubject as _0x1e1719,combineLatest as _0x2accaf}from'rxjs';import{RangeProtectionRuleModel as _0x440857,UniverSheetsPlugin as _0x2d42f2,WorkbookEditablePermission as _0x30b2b0,WorksheetEditPermission as _0x38ce77,RangeProtectionPermissionEditPoint as _0x49c7c9,WorkbookRecoverHistoryPermission as _0x4755cd,getSheetCommandTarget as _0x335a78,WorkbookViewHistoryPermission as _0x244137}from'@univerjs/sheets';import{UniverEditHistoryViewerPlugin as _0x55f083,HistoryManagerService as _0x28e5b3,HistoryModeStatus as _0x31562f}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x42a5c0,UniverLicensePlugin as _0x2267c3}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x4a62d7}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0x1c1683}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x54d5cc}from'@univerjs-pro/sheets-pivot';import{UniverSheetSparklinePlugin as _0x53a353}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x58f67d}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x2415c8}from'@univerjs/data-validation';import{UniverDocsPlugin as _0x3e7d56}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x1bc943}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0x3286a4,IImageIoService as _0x66f5be}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x1e9d93}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x37863c}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x5ce173}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x3705a0}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x395e79,PLUGIN_CONFIG_KEY_MAIN_THREAD as _0x569c2e}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x1f0c0e}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x4591cf}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x2f6efb}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0x72766e}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x1f0e4a}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x1beca3}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x2e23be}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x45dadf}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x27ea31}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x121351}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x4b6b5e}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x590a71}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x296f36}from'@univerjs/sheets-numfmt';import{UniverSheetsUIPlugin as _0x5339c0,getCurrentRangeDisable$ as _0x34f0f4}from'@univerjs/sheets-ui';const U=_0x39a409(0x1af),N={};function F({ref:_0x12f44a,..._0x287e65}){const _0x2e5cb1=_0x39a409,{icon:_0x28f5c4,id:_0x456d64,className:_0x5f4686,extend:_0x4bea15,..._0x1165e2}=_0x287e65,_0x534bcc=(_0x2e5cb1(0x15a)+_0x456d64+'\x20'+(_0x5f4686||''))['trim'](),_0x39fb19=_0x23c6f8('_'+hi());return j(_0x28f5c4,''+_0x456d64,{'defIds':_0x28f5c4[_0x2e5cb1(0x18d)],'idSuffix':_0x39fb19['current']},{'ref':_0x12f44a,'className':_0x534bcc,..._0x1165e2},_0x4bea15);}function j(_0x5a1ee9,_0x1de9bf,_0x4bc91a,_0x26f54c,_0xbd4289){const _0x58a684=_0x39a409;return _0x353685(_0x5a1ee9[_0x58a684(0x1a3)],{'key':_0x1de9bf,...ci(_0x5a1ee9,_0x4bc91a,_0xbd4289),..._0x26f54c},(li(_0x5a1ee9,_0x4bc91a)['children']||[])[_0x58a684(0x185)]((_0x257a53,_0x392354)=>j(_0x257a53,_0x1de9bf+'-'+_0x5a1ee9[_0x58a684(0x1a3)]+'-'+_0x392354,_0x4bc91a,void 0x0,_0xbd4289)));}function ci(_0x179869,_0x1ef5d6,_0x1776bc){const _0x43f79d=_0x39a409,_0x5f0798={..._0x179869[_0x43f79d(0x175)]};_0x1776bc!=null&&_0x1776bc[_0x43f79d(0x18b)]&&_0x5f0798[_0x43f79d(0x181)]===_0x43f79d(0x18b)&&(_0x5f0798['fill']=_0x1776bc[_0x43f79d(0x18b)]),_0x179869[_0x43f79d(0x1a3)]===_0x43f79d(0x1d2)&&_0x5f0798['id']&&(_0x5f0798['id']=_0x5f0798['id']+_0x1ef5d6['idSuffix']),Object[_0x43f79d(0x146)](_0x5f0798)[_0x43f79d(0x19a)](([_0x316d26,_0x579a26])=>{const _0x453586=_0x43f79d;_0x316d26===_0x453586(0x1d2)&&typeof _0x579a26=='string'&&(_0x5f0798[_0x316d26]=_0x579a26[_0x453586(0x143)](/url\(#(.*)\)/,'url(#$1'+_0x1ef5d6[_0x453586(0x190)]+')'));});const {defIds:_0x514dcf}=_0x1ef5d6;return!_0x514dcf||_0x514dcf[_0x43f79d(0x1d5)]===0x0||(_0x179869['tag']===_0x43f79d(0x1a5)&&_0x5f0798[_0x43f79d(0x1a9)]&&(_0x5f0798[_0x43f79d(0x1a9)]=_0x5f0798['xlink:href']+_0x1ef5d6[_0x43f79d(0x190)]),Object[_0x43f79d(0x146)](_0x5f0798)[_0x43f79d(0x19a)](([_0x411004,_0x1a9b3d])=>{const _0x653efd=_0x43f79d;typeof _0x1a9b3d==_0x653efd(0x1ac)&&(_0x5f0798[_0x411004]=_0x1a9b3d['replace'](/url\(#(.*)\)/,'url(#$1'+_0x1ef5d6[_0x653efd(0x190)]+')'));})),_0x5f0798;}function _0x4215(_0x11a234,_0x1abe64){_0x11a234=_0x11a234-0x134;const _0x197d74=_0x197d();let _0x4215cc=_0x197d74[_0x11a234];return _0x4215cc;}function li(_0x47a86c,_0xead4d3){const _0x33b8dc=_0x39a409;var _0x1f2494;const {defIds:_0x4e9a5f}=_0xead4d3;return!_0x4e9a5f||_0x4e9a5f['length']===0x0?_0x47a86c:_0x47a86c[_0x33b8dc(0x1a3)]===_0x33b8dc(0x158)&&((_0x1f2494=_0x47a86c[_0x33b8dc(0x13a)])!=null&&_0x1f2494[_0x33b8dc(0x1d5)])?{..._0x47a86c,'children':_0x47a86c[_0x33b8dc(0x13a)][_0x33b8dc(0x185)](_0x1d0acc=>typeof _0x1d0acc['attrs']['id']=='string'&&_0x4e9a5f&&_0x4e9a5f[_0x33b8dc(0x1c2)](_0x1d0acc['attrs']['id'])?{..._0x1d0acc,'attrs':{..._0x1d0acc[_0x33b8dc(0x175)],'id':_0x1d0acc[_0x33b8dc(0x175)]['id']+_0xead4d3[_0x33b8dc(0x190)]}}:_0x1d0acc)}:_0x47a86c;}function hi(){const _0x47a29a=_0x39a409;return Math[_0x47a29a(0x163)]()['toString'](0x24)[_0x47a29a(0x147)](0x2,0x8);}F[_0x39a409(0x15c)]=_0x39a409(0x1a4);const ui={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x39a409(0x1b3),'viewBox':_0x39a409(0x1aa),'width':_0x39a409(0x15d),'height':_0x39a409(0x15d)},'children':[{'tag':'g','attrs':{'fill':_0x39a409(0x1d3),'clipPath':_0x39a409(0x161)},'children':[{'tag':'path','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':_0x39a409(0x166),'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':_0x39a409(0x158),'attrs':{},'children':[{'tag':_0x39a409(0x178),'attrs':{'id':'history-icon_clip0_907_281'},'children':[{'tag':_0x39a409(0x166),'attrs':{'fill':_0x39a409(0x1a1),'d':_0x39a409(0x182)}}]}]}],'defIds':['history-icon_clip0_907_281']},V=_0x4f6452(function(_0x13772f,_0x4d99a4){const _0x4edb86=_0x39a409;return _0x353685(F,Object[_0x4edb86(0x177)]({},_0x13772f,{'id':'history-icon','ref':_0x4d99a4,'icon':ui}));});V['displayName']=_0x39a409(0x1c3);var gi=Object[_0x39a409(0x154)],mi=(_0x422c1a,_0x41f1e5,_0x264f38,_0x55c810)=>{const _0x219601=_0x39a409;for(var _0x9961e=_0x55c810>0x1?void 0x0:_0x55c810?gi(_0x41f1e5,_0x264f38):_0x41f1e5,_0x1b6500=_0x422c1a[_0x219601(0x1d5)]-0x1,_0x3ef054;_0x1b6500>=0x0;_0x1b6500--)(_0x3ef054=_0x422c1a[_0x1b6500])&&(_0x9961e=_0x3ef054(_0x9961e)||_0x9961e);return _0x9961e;},l=(_0x32b534,_0x78a0e6)=>(_0x503ff0,_0x161b24)=>_0x78a0e6(_0x503ff0,_0x161b24,_0x32b534);const vi=_0x39a409(0x1c8),G=_0x39a409(0x13e),d=_0x39a409(0x1d1);let f=class extends _0x49da04{constructor(_0x3e6486,_0x4b4971,_0x4b293c,_0xbb8bbe,_0xe4a43e,_0x196b8,_0x25b776,_0x8970ae,_0x7b89b,_0x4e9cb1){const _0xb7b853=_0x39a409;super(),g(this,_0xb7b853(0x1ba),new _0x1e1719(null)),g(this,_0xb7b853(0x18c),this['_historyUniver$'][_0xb7b853(0x17d)]()),g(this,_0xb7b853(0x159),new _0x4ae443()),g(this,_0xb7b853(0x13b),new Map()),(this[_0xb7b853(0x19d)]=_0x3e6486,this[_0xb7b853(0x1c5)]=_0x4b4971,this[_0xb7b853(0x148)]=_0x4b293c,this['_commandService']=_0xbb8bbe,this[_0xb7b853(0x172)]=_0xe4a43e,this[_0xb7b853(0x14f)]=_0x196b8,this[_0xb7b853(0x1a6)]=_0x25b776,this['_dialogService']=_0x8970ae,this[_0xb7b853(0x14b)]=_0x7b89b,this[_0xb7b853(0x14a)]=_0x4e9cb1,this[_0xb7b853(0x1a8)]());}get['historyUniver'](){const _0x4080f3=_0x39a409;return this[_0x4080f3(0x1ba)][_0x4080f3(0x1cd)];}[_0x39a409(0x1a8)](){const _0x184efc=_0x39a409;this['_initContainer'](),this[_0x184efc(0x13d)]();}[_0x39a409(0x16a)](){const _0x3b0a66=_0x39a409;var _0x769d72;const _0x5c6a22=(_0x769d72=this['_configService'][_0x3b0a66(0x167)](G))!=null?_0x769d72:vi,_0x394ba3=document[_0x3b0a66(0x1b1)](_0x5c6a22);if(!_0x394ba3)return;const _0x28b48c=document[_0x3b0a66(0x134)]('div');_0x28b48c['id']=d,_0x28b48c['dataset'][_0x3b0a66(0x151)]=_0x3b0a66(0x17a),_0x28b48c[_0x3b0a66(0x192)][_0x3b0a66(0x18e)]=_0x3b0a66(0x17e),_0x28b48c[_0x3b0a66(0x192)]['top']='0',_0x28b48c[_0x3b0a66(0x192)][_0x3b0a66(0x1bf)]='0',_0x28b48c[_0x3b0a66(0x192)][_0x3b0a66(0x153)]=_0x3b0a66(0x14d),_0x28b48c[_0x3b0a66(0x192)][_0x3b0a66(0x197)]='100%',_0x28b48c[_0x3b0a66(0x192)][_0x3b0a66(0x13c)]=_0x3b0a66(0x19e),_0x28b48c[_0x3b0a66(0x192)]['display']=_0x3b0a66(0x1b3),_0x394ba3['appendChild'](_0x28b48c);}[_0x39a409(0x13d)](){const _0x4c3e9f=_0x39a409;var _0x3d421f,_0x4be136,_0x234282,_0x53c60d;[[_0x5ce173],[_0xd84c08,{'container':d,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x56af60,null]]}],[_0x3705a0],[_0x3286a4,{'override':[[_0x66f5be,null]]}],[_0x3e7d56,{'hasScroll':!0x1}],[_0x1bc943],[_0x296f36],[_0x2d42f2,{'notExecuteFormula':!0x0}],[_0x5339c0],[_0x27ea31],[_0x121351],[_0x21bf16],[_0x2e23be],[_0x45dadf],[_0x1f0c0e],[_0x4591cf],[_0x4b6b5e],[_0x590a71],[_0x2415c8],[_0x2f6efb],[_0x72766e],[_0x37863c,{'notExecuteFormula':!0x0}],[_0x395e79,{'workerURL':(_0x4be136=(_0x3d421f=this[_0x4c3e9f(0x148)][_0x4c3e9f(0x167)](_0x569c2e))==null?void 0x0:_0x3d421f['workerURL'])!=null?_0x4be136:_0x4c3e9f(0x145)}],[_0x1e9d93],[_0x1f0e4a],[_0x1beca3],[_0x53a353],[_0x58f67d],[_0x4a62d7],[_0x1c1683],[_0x54d5cc,{'notExecuteFormula':!0x0}],[_0x55f083,{'historyListServerUrl':(_0x234282=this[_0x4c3e9f(0x148)][_0x4c3e9f(0x167)](U))==null?void 0x0:_0x234282['historyListServerUrl'],'historyPanelComponentKey':(_0x53c60d=this[_0x4c3e9f(0x148)][_0x4c3e9f(0x167)](U))==null?void 0x0:_0x53c60d[_0x4c3e9f(0x139)]}]][_0x4c3e9f(0x19a)](([_0x2279ca,_0x2ee621])=>this['registerPlugin'](_0x2279ca,_0x2ee621));}['dispose'](){const _0x577d9b=_0x39a409;super[_0x577d9b(0x1b0)](),this[_0x577d9b(0x189)](),this[_0x577d9b(0x13b)]['clear']();}[_0x39a409(0x1b4)](_0x2abe0b,_0x40a861,_0x17191e){const _0x2e03fd=_0x39a409;if(this[_0x2e03fd(0x13b)][_0x2e03fd(0x186)](_0x2abe0b[_0x2e03fd(0x1b6)])&&!_0x17191e)throw new Error(_0x2e03fd(0x199)+_0x2abe0b[_0x2e03fd(0x1b6)]+'\x20has\x20been\x20registered.');this[_0x2e03fd(0x13b)][_0x2e03fd(0x1bc)](_0x2abe0b[_0x2e03fd(0x1b6)],[_0x2abe0b,_0x40a861]);}[_0x39a409(0x1b5)](){const _0x42d6fd=_0x39a409;return Array['from'](this[_0x42d6fd(0x13b)]['values']());}['mountHistoryContent'](_0x4f67b8){const _0x13324e=_0x39a409,_0x1266dc=document[_0x13324e(0x1b1)](d);_0x1266dc&&(_0x1266dc[_0x13324e(0x192)][_0x13324e(0x1b2)]='block',this['_initUniver'](_0x4f67b8,d));}[_0x39a409(0x189)](){const _0x2e7ee8=_0x39a409;var _0x428c26;this['_disposableCollection'][_0x2e7ee8(0x1b0)](),(_0x428c26=this[_0x2e7ee8(0x14e)])==null||_0x428c26[_0x2e7ee8(0x1b0)](),this[_0x2e7ee8(0x1ba)][_0x2e7ee8(0x137)](null);const _0x3c54da=document['getElementById'](d);_0x3c54da&&(_0x3c54da['style'][_0x2e7ee8(0x1b2)]=_0x2e7ee8(0x1b3));}[_0x39a409(0x19f)](_0x205c5a,_0x141c7e){const _0x50c436=_0x39a409;if(this[_0x50c436(0x14e)])return;const _0x1cf4f2=new _0x2af004({'locales':{[this[_0x50c436(0x19d)][_0x50c436(0x187)]()]:this[_0x50c436(0x19d)][_0x50c436(0x1cb)]()},'override':[[_0x2e67dc,{'useClass':_0x1e7fd3}]]}),_0x361a85=_0x1cf4f2[_0x50c436(0x18a)]();this[_0x50c436(0x140)](this[_0x50c436(0x14a)][_0x50c436(0x176)]['subscribe'](_0x13573e=>{const _0x3542f7=_0x50c436;_0x361a85[_0x3542f7(0x1c9)](_0x2ea7de)[_0x3542f7(0x170)](_0x13573e);})),this['disposeWithMe'](this['_themeService'][_0x50c436(0x1d4)][_0x50c436(0x169)](_0x34f98d=>{const _0x1818aa=_0x50c436;_0x361a85[_0x1818aa(0x1c9)](_0x2ea7de)[_0x1818aa(0x162)](_0x34f98d);})),_0x361a85['get'](_0x5a075e)[_0x50c436(0x179)](this['_localeService']['getCurrentLocale']()),_0x361a85[_0x50c436(0x1c9)](_0x1036a9)[_0x50c436(0x1ca)](_0x431c30,this['_configService'][_0x50c436(0x167)](_0x431c30));const _0x1aa4af=this[_0x50c436(0x148)][_0x50c436(0x167)](_0x42a5c0);_0x1aa4af&&_0x1cf4f2[_0x50c436(0x1b4)](_0x2267c3,{'license':_0x1aa4af['ls']}),this[_0x50c436(0x13b)][_0x50c436(0x19a)](([_0x51f44c,_0x58d640])=>{_0x1cf4f2['registerPlugin'](_0x51f44c,_0x58d640);}),_0x361a85[_0x50c436(0x149)](_0xcc07a3=>{const _0x50c2f8=_0x50c436;this[_0x50c2f8(0x1d0)](_0xcc07a3,_0x205c5a);}),this['_historyUniver$']['next'](_0x1cf4f2);const _0x3e236f=_0x361a85[_0x50c436(0x1c9)](_0x28e5b3),_0xefe191=this[_0x50c436(0x16f)](_0x205c5a);_0x3e236f[_0x50c436(0x138)](_0x205c5a,_0x141c7e,_0xefe191);}[_0x39a409(0x1d0)](_0x469186,_0x2b1bf9){const _0x2beecb=_0x39a409,_0x346751=_0x469186[_0x2beecb(0x1c9)](_0x28e5b3);this[_0x2beecb(0x159)][_0x2beecb(0x165)](_0x346751[_0x2beecb(0x198)][_0x2beecb(0x169)](_0x389d=>{const _0x16dc41=_0x2beecb;switch(_0x389d){case _0x31562f[_0x16dc41(0x191)]:this[_0x16dc41(0x171)][_0x16dc41(0x142)](),this[_0x16dc41(0x14b)][_0x16dc41(0x135)]();break;case _0x31562f[_0x16dc41(0x1a0)]:this['_commandService'][_0x16dc41(0x1b7)](W['id']),this[_0x16dc41(0x189)]();break;case _0x31562f[_0x16dc41(0x152)]:this[_0x16dc41(0x189)](),this[_0x16dc41(0x172)][_0x16dc41(0x188)]({'content':this[_0x16dc41(0x19d)]['t'](_0x16dc41(0x15b)),'type':_0x57be99['Error'],'duration':0xbb8});break;}})),this['_disposableCollection']['add'](_0x346751['revertRevision$'][_0x2beecb(0x169)](async _0x5dcbd1=>{const _0xf340bf=_0x2beecb;_0x5dcbd1&&this[_0xf340bf(0x141)][_0xf340bf(0x1b7)](_0x388f9a['id'],{'unitId':_0x2b1bf9,'revision':_0x5dcbd1});}));}[_0x39a409(0x16f)](_0x52e07b){const _0x44ce16=_0x39a409,_0x1b7dfa=this[_0x44ce16(0x1c5)][_0x44ce16(0x19c)](_0x52e07b)[_0x44ce16(0x1cc)]()[_0x44ce16(0x185)](_0x4168d7=>_0x4168d7[_0x44ce16(0x13f)]()),_0x54cbd1=new _0x30b2b0(_0x52e07b)['id'],_0x215867=_0x1b7dfa[_0x44ce16(0x185)](_0x1cbd9d=>new _0x38ce77(_0x52e07b,_0x1cbd9d)['id']),_0x5bb83d=_0x1b7dfa['map'](_0x1f5b62=>this[_0x44ce16(0x1a6)][_0x44ce16(0x1ad)](_0x52e07b,_0x1f5b62)[_0x44ce16(0x185)](_0x277b0a=>new _0x49c7c9(_0x52e07b,_0x1f5b62,_0x277b0a[_0x44ce16(0x1a7)])['id']))['flat'](),_0x3fea05=new _0x4755cd(_0x52e07b)['id'];return this['_permissionService'][_0x44ce16(0x14c)]([_0x54cbd1,..._0x215867,..._0x5bb83d,_0x3fea05])[_0x44ce16(0x194)](_0x5442dd=>!!_0x5442dd['value']);}};f=mi([l(0x0,_0x4d0f78(_0x5a075e)),l(0x1,_0x47b3be),l(0x2,_0x1036a9),l(0x3,_0x270472),l(0x4,_0xea87f8),l(0x5,_0x44885c),l(0x6,_0x4d0f78(_0x440857)),l(0x7,_0x4d0f78(_0x56af60)),l(0x8,_0x4d0f78(_0x4f29fb)),l(0x9,_0x4d0f78(_0x2ea7de))],f);const b={'id':_0x39a409(0x1ab),'type':_0x23553e[_0x39a409(0x17f)],'handler':_0x43e945=>{const _0x19e850=_0x39a409,_0x2b0d33=_0x43e945['get'](f),_0x3e2312=_0x43e945[_0x19e850(0x1c9)](_0x47b3be),{unitId:_0x187532}=_0x335a78(_0x3e2312)||{};return _0x187532?(_0x2b0d33[_0x19e850(0x184)](_0x187532),!0x0):!0x1;}},W={'id':'univer.operation.exit-edit-history','type':_0x23553e[_0x39a409(0x17f)],'handler':()=>!0x0};function di(_0x4569c6){const _0xfdf906=_0x39a409;return{'id':b['id'],'type':_0x343a87[_0xfdf906(0x136)],'icon':_0xfdf906(0x1c3),'tooltip':'editHistory.panel.title','hidden$':_0x4e42e2(_0x4569c6,_0x33cada['UNIVER_SHEET']),'disabled$':_0x34f0f4(_0x4569c6,{'workbookTypes':[_0x30b2b0,_0x244137],'worksheetTypes':[],'rangeTypes':[]})};}const fi={[_0x57879a[_0x39a409(0x183)]]:{[b['id']]:{'order':0.2,'menuItemFactory':di}}};var _i=Object[_0x39a409(0x154)],pi=(_0x367e60,_0x2eb5b4,_0x10c4fd,_0x5590c1)=>{for(var _0x1bd382=_0x5590c1>0x1?void 0x0:_0x5590c1?_i(_0x2eb5b4,_0x10c4fd):_0x2eb5b4,_0x22a8fb=_0x367e60['length']-0x1,_0x2b6b68;_0x22a8fb>=0x0;_0x22a8fb--)(_0x2b6b68=_0x367e60[_0x22a8fb])&&(_0x1bd382=_0x2b6b68(_0x1bd382)||_0x1bd382);return _0x1bd382;},m=(_0x3038eb,_0x5b877e)=>(_0x4737d1,_0x254d94)=>_0x5b877e(_0x4737d1,_0x254d94,_0x3038eb);let p=class extends _0x157ec3{constructor(_0xe7108f,_0x4a3c0b,_0x59d070,_0x5720e3,_0xd35b75,_0x2a1df5,_0x2c25ce,_0x132cdd){const _0x3fb26a=_0x39a409;super(),g(this,'_revertErrorTimer',null),(this['_commandService']=_0xe7108f,this[_0x3fb26a(0x1b8)]=_0x4a3c0b,this[_0x3fb26a(0x1be)]=_0x59d070,this['_historyManagerService']=_0x5720e3,this['_localeService']=_0xd35b75,this[_0x3fb26a(0x172)]=_0x2a1df5,this[_0x3fb26a(0x196)]=_0x2c25ce,this[_0x3fb26a(0x19b)]=_0x132cdd,this[_0x3fb26a(0x1a8)]());}['_init'](){const _0x47846d=_0x39a409;[b,W][_0x47846d(0x19a)](_0x4f034c=>this[_0x47846d(0x140)](_0x572451(this['_commandService'][_0x47846d(0x16c)](_0x4f034c)))),this[_0x47846d(0x140)](this[_0x47846d(0x1be)][_0x47846d(0x18f)](_0x47846d(0x1c3),V)),this['_menuManagerService'][_0x47846d(0x15e)](fi),this[_0x47846d(0x140)](this[_0x47846d(0x141)][_0x47846d(0x168)](_0x48aead=>{const _0xdf642b=_0x47846d;if(_0x48aead['id']===_0x388f9a['id']){this['_messageService'][_0xdf642b(0x188)]({'content':this[_0xdf642b(0x19d)]['t']('editHistory.panel.reverting'),'type':_0x57be99[_0xdf642b(0x16b)],'duration':0x1388});const {unitId:_0xbaf462}=_0x48aead[_0xdf642b(0x180)],_0x24d9f1=this[_0xdf642b(0x196)]['getCollabEntity'](_0xbaf462),_0x21d306=_0x2accaf([_0x24d9f1['session'][_0xdf642b(0x1ce)],_0x24d9f1[_0xdf642b(0x17c)]])['subscribe'](async([_0x4228b4,_0x179ff6])=>{const _0x2f6612=_0xdf642b;var _0x42fc61;_0x4228b4[_0x2f6612(0x1c7)]===_0x18fd40[_0x2f6612(0x164)]&&(_0x179ff6==null?void 0x0:_0x179ff6[_0x2f6612(0x1cf)])===_0x346212['SYNCED']&&_0x4228b4['data'][_0x2f6612(0x16d)]['some'](_0x598cad=>_0x598cad['id']===_0x388f9a['id'])&&(this['_historyManagerService'][_0x2f6612(0x189)](),_0x21d306['unsubscribe'](),this[_0x2f6612(0x150)]&&clearTimeout(this[_0x2f6612(0x150)]),await((_0x42fc61=this[_0x2f6612(0x19b)])==null?void 0x0:_0x42fc61[_0x2f6612(0x160)]()),setTimeout(()=>window['location'][_0x2f6612(0x1ae)]()));});this[_0xdf642b(0x150)]=setTimeout(()=>{const _0x2530db=_0xdf642b;_0x21d306['unsubscribe'](),this[_0x2530db(0x172)][_0x2530db(0x188)]({'content':this[_0x2530db(0x19d)]['t'](_0x2530db(0x144)),'type':_0x57be99['Error'],'duration':0xbb8});},0x1388);}}));}};p=pi([m(0x0,_0x270472),m(0x1,_0x26094f),m(0x2,_0x4d0f78(_0x529cde)),m(0x3,_0x4d0f78(f)),m(0x4,_0x4d0f78(_0x5a075e)),m(0x5,_0xea87f8),m(0x6,_0x4d0f78(_0x450258)),m(0x7,_0x3ebc56)],p);var Si=Object[_0x39a409(0x154)],Ci=(_0x16c1b2,_0x3ccd86,_0xa686e7,_0x1eaf6c)=>{const _0x3d9030=_0x39a409;for(var _0x4479b3=_0x1eaf6c>0x1?void 0x0:_0x1eaf6c?Si(_0x3ccd86,_0xa686e7):_0x3ccd86,_0x5d1b54=_0x16c1b2[_0x3d9030(0x1d5)]-0x1,_0x3e5cf1;_0x5d1b54>=0x0;_0x5d1b54--)(_0x3e5cf1=_0x16c1b2[_0x5d1b54])&&(_0x4479b3=_0x3e5cf1(_0x4479b3)||_0x4479b3);return _0x4479b3;},R=(_0x5ad2c9,_0x437e3f)=>(_0x598bd2,_0x1822ac)=>_0x437e3f(_0x598bd2,_0x1822ac,_0x5ad2c9);function _0x197d(){const _0x557b40=['univerjs-icon\x20univerjs-icon-','editHistory.panel.listFetchError','displayName','1em','mergeMenu','16WnFYyS','exhaustSavingTask','url(#history-icon_clip0_907_281)','setTheme','random','CHANGESET_ACK','add','path','getConfig','onCommandExecuted','subscribe','_initContainer','Loading','registerCommand','mutations','defineProperty','_checkCanRevert','setDarkMode','_dialogService','_messageService','93471FbHidw','638771UfhcOi','attrs','darkMode$','assign','clipPath','setLocale','history-container','12XYIaiq','state$','asObservable','absolute','OPERATION','params','fill','M0\x200H16V16H0z','OTHERS','mountHistoryContent','map','has','getCurrentLocale','show','unMountHistoryContent','__getInjector','colorChannel1','historyUniver$','defIds','position','register','idSuffix','Entered','style','_injector','every','univerContainerId','_collaborationController','height','status$','[HistoryLoaderService]:\x20Plugin\x20','forEach','_localCacheService','getUnit','_localeService','1000','_initUniver','Exited','white','7220270TVJhdz','tag','UniverIcon','use','_selectionProtectionRuleModel','permissionId','_init','xlink:href','0\x200\x2016\x2016','univer.operation.toggle-edit-history','string','getSubunitRuleList','reload','edit-history-loader.config','dispose','getElementById','display','none','registerPlugin','getAllPlugins','pluginName','executeCommand','_menuManagerService','_config','_historyUniver$','menu','set','UNIVER_UNKNOWN','_componentManager','left','260740EZoSux','8zacMQB','includes','HistoryIcon','117213kkmlvK','_univerInstanceService','onSteady','eventID','univer-container','get','setConfig','getLocales','getSheets','value','event$','status','_initListener','univer-history-container','mask','currentColor','currentTheme$','length','createElement','close','BUTTON','next','triggerLoadVersions','historyPanelComponentKey','children','_pluginMap','zIndex','_initPlugins','UNIVER_CONTAINER_ID','getSheetId','disposeWithMe','_commandService','closeAll','replace','editHistory.panel.revertFailed','./worker.js','entries','substring','_configService','invoke','_themeService','_sidebarService','composePermission','100%','historyUniver','_permissionService','_revertErrorTimer','uComp','Error','width','getOwnPropertyDescriptor','1650888IfWVIB','23540HzuijY','type','defs','_disposableCollection'];_0x197d=function(){return _0x557b40;};return _0x197d();}const yi='UNIVER_EDIT_HISTORY_LOADER_PLUGIN';var _;let H=(_=class extends _0x219636{constructor(_0x1e0186=N,_0x2a515b,_0x586356){const _0x501206=_0x39a409;super(),this[_0x501206(0x1b9)]=_0x1e0186,this[_0x501206(0x193)]=_0x2a515b,this[_0x501206(0x148)]=_0x586356;const {menu:_0x52ba3e,..._0x31a2c7}=_0x4aa835({},N,this['_config']);_0x52ba3e&&this[_0x501206(0x148)][_0x501206(0x1ca)](_0x501206(0x1bb),_0x52ba3e,{'merge':!0x0}),this[_0x501206(0x148)][_0x501206(0x1ca)](U,_0x31a2c7),this['_config'][_0x501206(0x195)]&&this[_0x501206(0x148)]['setConfig'](G,this['_config'][_0x501206(0x195)]);}['onStarting'](){const _0x177403=_0x39a409;[[f],[p]][_0x177403(0x19a)](_0x2ab5ee=>this[_0x177403(0x193)][_0x177403(0x165)](_0x2ab5ee));}[_0x39a409(0x1c6)](){const _0x39443d=_0x39a409;this[_0x39443d(0x193)][_0x39443d(0x1c9)](p);}},g(_,_0x39a409(0x157),_0x33cada[_0x39a409(0x1bd)]),g(_,'pluginName',yi),_);H=Ci([R(0x1,_0x4d0f78(_0x2a077e)),R(0x2,_0x1036a9)],H);export{f as HistoryLoaderService,G as UNIVER_CONTAINER_ID_KEY,d as UNIVER_HISTORY_CONTAINER_ID,H as UniverEditHistoryLoaderPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x373636=_0x1304;(function(_0x467a0f,_0x32d480){const _0x17f170=_0x1304,_0x325daf=_0x467a0f();while(!![]){try{const _0x21df0e=parseInt(_0x17f170(0xcb))/0x1+-parseInt(_0x17f170(0xed))/0x2*(parseInt(_0x17f170(0x111))/0x3)+-parseInt(_0x17f170(0x13b))/0x4*(parseInt(_0x17f170(0x10c))/0x5)+-parseInt(_0x17f170(0xe9))/0x6+parseInt(_0x17f170(0xf2))/0x7*(parseInt(_0x17f170(0x139))/0x8)+parseInt(_0x17f170(0xa9))/0x9+parseInt(_0x17f170(0x13a))/0xa;if(_0x21df0e===_0x32d480)break;else _0x325daf['push'](_0x325daf['shift']());}catch(_0x5c6eba){_0x325daf['push'](_0x325daf['shift']());}}}(_0x32a6,0xc9558));var Y=Object['defineProperty'],B=(_0x444737,_0x310579,_0x545af3)=>_0x310579 in _0x444737?Y(_0x444737,_0x310579,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x545af3}):_0x444737[_0x310579]=_0x545af3,g=(_0x23f727,_0x5995d6,_0x289205)=>B(_0x23f727,typeof _0x5995d6!='symbol'?_0x5995d6+'':_0x5995d6,_0x289205);import{Inject as _0x4cf848,LocaleService as _0x2c91a4,IUniverInstanceService as _0x6bda87,IConfigService as _0x4b0f9d,ICommandService as _0x74f853,IPermissionService as _0x35e2f7,ThemeService as _0xb44845,Disposable as _0xda74e5,DisposableCollection as _0x1a09e0,Univer as _0x113bce,IAuthzIoService as _0x8bda80,CommandType as _0x42ba76,UniverInstanceType as _0x1b1fcf,RxDisposable as _0x157f2e,toDisposable as _0x5895ad,Plugin as _0x20c115,merge as _0x51c2af,Injector as _0x55b805}from'@univerjs/core';import{UniverCollaborationPlugin as _0x4906a6,RevertRevisionMutation as _0x276b03,CollaborationEvent as _0x1aa5f6}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x69b380,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0xfde2d,CollaborationController as _0x36eb0f,ILocalCacheService as _0x46d98a,CollaborationStatus as _0x4c8494}from'@univerjs-pro/collaboration-client';import{MessageType as _0x530a6d}from'@univerjs/design';import{useRef as _0x986daa,createElement as _0x2a36ac,forwardRef as _0x535732}from'react';import{IMessageService as _0x582a14,IDialogService as _0x3807e6,ISidebarService as _0x3969b7,UniverUIPlugin as _0x1207c5,getMenuHiddenObservable as _0x4ed132,MenuItemType as _0x30aac4,RibbonStartGroup as _0xcb0ce3,IMenuManagerService as _0x7a8a70,ComponentManager as _0x5b1e0c}from'@univerjs/ui';import{BehaviorSubject as _0x31fb66,combineLatest as _0x4cf64d}from'rxjs';import{RangeProtectionRuleModel as _0x5018ad,UniverSheetsPlugin as _0x2cf6b4,WorkbookEditablePermission as _0x4f3937,WorksheetEditPermission as _0x40738e,RangeProtectionPermissionEditPoint as _0x27ffca,WorkbookRecoverHistoryPermission as _0x8b603b,getSheetCommandTarget as _0x36ca76,WorkbookViewHistoryPermission as _0x116758}from'@univerjs/sheets';import{UniverEditHistoryViewerPlugin as _0x3c390e,HistoryManagerService as _0x34391b,HistoryModeStatus as _0x30efeb}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x35e646,UniverLicensePlugin as _0x5d8f12}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x3695d7}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0x18d5f1}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x66a00d}from'@univerjs-pro/sheets-pivot';import{UniverSheetSparklinePlugin as _0x47a769}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x5d2d93}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x1ed559}from'@univerjs/data-validation';import{UniverDocsPlugin as _0x3a8f00}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x3f2008}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0x5c0196,IImageIoService as _0x1faf6c}from'@univerjs/drawing';function _0x32a6(){const _0x5b7604=['displayName','setTheme','currentTheme$','BUTTON','dispose','exhaustSavingTask','getOwnPropertyDescriptor','_revertErrorTimer','_componentManager','dataset','_menuManagerService','length','type','block','_univerInstanceService','5417280OkumqB','trim','defs','univerContainerId','2DvRuYZ','createElement','CHANGESET_ACK','registerPlugin','status$','23548RdTeic','history-icon_clip0_907_281','colorChannel1','_configService','_initPlugins','from','_historyUniver$','params','editHistory.panel.reverting','onCommandExecuted','UNIVER_SHEET','_initUniver','historyUniver','getElementById','_localeService','tag','mountHistoryContent','_collaborationController','zIndex','composePermission','current','[HistoryLoaderService]:\x20Plugin\x20','none','M8.28291\x205.16293C8.28295\x204.83156\x208.01435\x204.5629\x207.68298\x204.56287C7.35161\x204.56283\x207.08295\x204.83143\x207.08291\x205.1628L7.08252\x208.63494C7.0825\x208.79881\x207.1495\x208.95555\x207.26796\x209.06877L9.70073\x2011.3939C9.94029\x2011.6228\x2010.3201\x2011.6142\x2010.549\x2011.3747C10.778\x2011.1351\x2010.7694\x2010.7553\x2010.5298\x2010.5263L8.28255\x208.37852L8.28291\x205.16293Z','permissionId','next','5tHofMc','getSheets','_messageService','substring','univer-history-container','4892946QSLcoK','invoke','http://www.w3.org/2000/svg','close','100%','_config','0\x200\x2016\x2016','setDarkMode','univer.operation.exit-edit-history','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','replace','use','_permissionService','onSteady','register','attrs','add','executeCommand','path','data','univer-container','editHistory.panel.title','style','Loading','_checkCanRevert','url(#history-icon_clip0_907_281)','menu','status','forEach','currentColor','1em','white','edit-history-loader.config','\x20has\x20been\x20registered.','onStarting','display','uComp','historyListServerUrl','_dialogService','top','2592xHQlCI','10089890xRryKI','6415096gccnrO','assign','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','_disposableCollection','left','__getInjector','clear','children','historyPanelComponentKey','Error','pluginName','random','unMountHistoryContent','_localCacheService','disposeWithMe','_commandService','map','svg','reload','show','closeAll','unsubscribe','historyUniver$','_initListener','1000','width','mergeMenu','11272356FlKMNk','getSubunitRuleList','revertRevision$','subscribe','setConfig','includes','mask','url(#$1','flat','height','_injector','UniverIcon','_selectionProtectionRuleModel','event$','HistoryIcon','value','editHistory.panel.revertFailed','getCurrentLocale','Entered','univer.operation.toggle-edit-history','get','toString','OPERATION','mutations','idSuffix','editHistory.panel.listFetchError','_sidebarService','xlink:href','setLocale','_initContainer','getSheetId','_pluginMap','every','div','1610891tzgxBF','entries','triggerLoadVersions','asObservable','_init','getConfig','getCollabEntity','workerURL','_historyManagerService','_themeService','location','has','getLocales','string','clipPath'];_0x32a6=function(){return _0x5b7604;};return _0x32a6();}import{UniverDrawingUIPlugin as _0x535f59}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x123479}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x6b9847}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0xf4b03e}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0xe64929,PLUGIN_CONFIG_KEY_MAIN_THREAD as _0x4c5b18}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x151244}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x33c2da}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x226d65}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0x4d43a3}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x471766}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x266dea}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x14d590}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0xec952}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x3f02a6}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x60ce41}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x1ea2ce}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x27c318}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x745455}from'@univerjs/sheets-numfmt';import{UniverSheetsUIPlugin as _0x3ebd73,getCurrentRangeDisable$ as _0x17d34e}from'@univerjs/sheets-ui';const U=_0x373636(0x131),N={};function F({ref:_0x10fc28,..._0x1da16d}){const _0x1bfd60=_0x373636,{icon:_0x40854e,id:_0x4d89cf,className:_0x379f6b,extend:_0x43cf46,..._0x38d701}=_0x1da16d,_0xd04780=('univerjs-icon\x20univerjs-icon-'+_0x4d89cf+'\x20'+(_0x379f6b||''))[_0x1bfd60(0xea)](),_0x91e99a=_0x986daa('_'+hi());return j(_0x40854e,''+_0x4d89cf,{'defIds':_0x40854e['defIds'],'idSuffix':_0x91e99a[_0x1bfd60(0x106)]},{'ref':_0x10fc28,'className':_0xd04780,..._0x38d701},_0x43cf46);}function j(_0x482153,_0x1be9b3,_0x160b4d,_0xae3842,_0x5e562d){const _0x4634b0=_0x373636;return _0x2a36ac(_0x482153[_0x4634b0(0x101)],{'key':_0x1be9b3,...ci(_0x482153,_0x160b4d,_0x5e562d),..._0xae3842},(li(_0x482153,_0x160b4d)[_0x4634b0(0x142)]||[])['map']((_0x125f60,_0x3fb647)=>j(_0x125f60,_0x1be9b3+'-'+_0x482153['tag']+'-'+_0x3fb647,_0x160b4d,void 0x0,_0x5e562d)));}function ci(_0x1caadd,_0x11d1a9,_0x198527){const _0x208e41=_0x373636,_0x3de4aa={..._0x1caadd[_0x208e41(0x120)]};_0x198527!=null&&_0x198527[_0x208e41(0xf4)]&&_0x3de4aa['fill']===_0x208e41(0xf4)&&(_0x3de4aa['fill']=_0x198527[_0x208e41(0xf4)]),_0x1caadd[_0x208e41(0x101)]===_0x208e41(0xaf)&&_0x3de4aa['id']&&(_0x3de4aa['id']=_0x3de4aa['id']+_0x11d1a9['idSuffix']),Object[_0x208e41(0xcc)](_0x3de4aa)[_0x208e41(0x12d)](([_0x12cb4f,_0x42b272])=>{const _0x1431a5=_0x208e41;_0x12cb4f===_0x1431a5(0xaf)&&typeof _0x42b272==_0x1431a5(0xd8)&&(_0x3de4aa[_0x12cb4f]=_0x42b272[_0x1431a5(0x11b)](/url\(#(.*)\)/,_0x1431a5(0xb0)+_0x11d1a9[_0x1431a5(0xc1)]+')'));});const {defIds:_0x28fb38}=_0x11d1a9;return!_0x28fb38||_0x28fb38['length']===0x0||(_0x1caadd['tag']===_0x208e41(0x11c)&&_0x3de4aa[_0x208e41(0xc4)]&&(_0x3de4aa[_0x208e41(0xc4)]=_0x3de4aa[_0x208e41(0xc4)]+_0x11d1a9[_0x208e41(0xc1)]),Object[_0x208e41(0xcc)](_0x3de4aa)[_0x208e41(0x12d)](([_0x3d22a2,_0x5cd8ad])=>{const _0x496ff4=_0x208e41;typeof _0x5cd8ad=='string'&&(_0x3de4aa[_0x3d22a2]=_0x5cd8ad['replace'](/url\(#(.*)\)/,_0x496ff4(0xb0)+_0x11d1a9['idSuffix']+')'));})),_0x3de4aa;}function li(_0x61d775,_0x1bb5bd){const _0x1b009f=_0x373636;var _0x5280b3;const {defIds:_0x48b113}=_0x1bb5bd;return!_0x48b113||_0x48b113[_0x1b009f(0xe5)]===0x0?_0x61d775:_0x61d775['tag']===_0x1b009f(0xeb)&&((_0x5280b3=_0x61d775['children'])!=null&&_0x5280b3[_0x1b009f(0xe5)])?{..._0x61d775,'children':_0x61d775[_0x1b009f(0x142)][_0x1b009f(0x14b)](_0x57798a=>typeof _0x57798a[_0x1b009f(0x120)]['id']==_0x1b009f(0xd8)&&_0x48b113&&_0x48b113[_0x1b009f(0xae)](_0x57798a[_0x1b009f(0x120)]['id'])?{..._0x57798a,'attrs':{..._0x57798a[_0x1b009f(0x120)],'id':_0x57798a[_0x1b009f(0x120)]['id']+_0x1bb5bd['idSuffix']}}:_0x57798a)}:_0x61d775;}function hi(){const _0x117d1b=_0x373636;return Math[_0x117d1b(0x146)]()[_0x117d1b(0xbe)](0x24)[_0x117d1b(0x10f)](0x2,0x8);}F[_0x373636(0xda)]=_0x373636(0xb4);const ui={'tag':_0x373636(0x14c),'attrs':{'xmlns':_0x373636(0x113),'fill':_0x373636(0x108),'viewBox':_0x373636(0x117),'width':_0x373636(0x12f),'height':_0x373636(0x12f)},'children':[{'tag':'g','attrs':{'fill':_0x373636(0x12e),'clipPath':_0x373636(0x12a)},'children':[{'tag':_0x373636(0x123),'attrs':{'d':_0x373636(0x13d)}},{'tag':_0x373636(0x123),'attrs':{'d':_0x373636(0x109)}}]},{'tag':_0x373636(0xeb),'attrs':{},'children':[{'tag':_0x373636(0xd9),'attrs':{'id':'history-icon_clip0_907_281'},'children':[{'tag':_0x373636(0x123),'attrs':{'fill':_0x373636(0x130),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x373636(0xf3)]},V=_0x535732(function(_0x334e66,_0x5d2966){const _0x256897=_0x373636;return _0x2a36ac(F,Object[_0x256897(0x13c)]({},_0x334e66,{'id':'history-icon','ref':_0x5d2966,'icon':ui}));});V[_0x373636(0xda)]=_0x373636(0xb7);var gi=Object[_0x373636(0xe0)],mi=(_0x5e43c1,_0x5b2beb,_0x529214,_0x47f186)=>{const _0x3200a4=_0x373636;for(var _0x541bd7=_0x47f186>0x1?void 0x0:_0x47f186?gi(_0x5b2beb,_0x529214):_0x5b2beb,_0x3b2762=_0x5e43c1[_0x3200a4(0xe5)]-0x1,_0x2e0bde;_0x3b2762>=0x0;_0x3b2762--)(_0x2e0bde=_0x5e43c1[_0x3b2762])&&(_0x541bd7=_0x2e0bde(_0x541bd7)||_0x541bd7);return _0x541bd7;},l=(_0x1654dd,_0x1ca4fc)=>(_0x4ab925,_0x1527b4)=>_0x1ca4fc(_0x4ab925,_0x1527b4,_0x1654dd);const vi=_0x373636(0x125),G='UNIVER_CONTAINER_ID',d=_0x373636(0x110);let f=class extends _0xda74e5{constructor(_0x34e9df,_0x320b5c,_0x43f140,_0x38dcd1,_0xde5ffe,_0x3848ea,_0x24c396,_0x1e04a6,_0x3fcea8,_0x57f1a2){const _0x72626c=_0x373636;super(),g(this,_0x72626c(0xf8),new _0x31fb66(null)),g(this,_0x72626c(0x151),this[_0x72626c(0xf8)][_0x72626c(0xce)]()),g(this,_0x72626c(0x13e),new _0x1a09e0()),g(this,'_pluginMap',new Map()),(this[_0x72626c(0x100)]=_0x34e9df,this[_0x72626c(0xe8)]=_0x320b5c,this['_configService']=_0x43f140,this[_0x72626c(0x14a)]=_0x38dcd1,this[_0x72626c(0x10e)]=_0xde5ffe,this[_0x72626c(0x11d)]=_0x3848ea,this[_0x72626c(0xb5)]=_0x24c396,this['_dialogService']=_0x1e04a6,this[_0x72626c(0xc3)]=_0x3fcea8,this[_0x72626c(0xd4)]=_0x57f1a2,this[_0x72626c(0xcf)]());}get[_0x373636(0xfe)](){const _0x7b0ad4=_0x373636;return this[_0x7b0ad4(0xf8)][_0x7b0ad4(0xb8)];}[_0x373636(0xcf)](){const _0xd73d7b=_0x373636;this['_initContainer'](),this[_0xd73d7b(0xf6)]();}[_0x373636(0xc6)](){const _0x3b0873=_0x373636;var _0x2b238b;const _0x1e492a=(_0x2b238b=this[_0x3b0873(0xf5)]['getConfig'](G))!=null?_0x2b238b:vi,_0x27b1d6=document[_0x3b0873(0xff)](_0x1e492a);if(!_0x27b1d6)return;const _0x1426d8=document[_0x3b0873(0xee)](_0x3b0873(0xca));_0x1426d8['id']=d,_0x1426d8[_0x3b0873(0xe3)][_0x3b0873(0x135)]='history-container',_0x1426d8[_0x3b0873(0x127)]['position']='absolute',_0x1426d8['style'][_0x3b0873(0x138)]='0',_0x1426d8[_0x3b0873(0x127)][_0x3b0873(0x13f)]='0',_0x1426d8[_0x3b0873(0x127)][_0x3b0873(0x154)]=_0x3b0873(0x115),_0x1426d8[_0x3b0873(0x127)][_0x3b0873(0xb2)]='100%',_0x1426d8[_0x3b0873(0x127)][_0x3b0873(0x104)]=_0x3b0873(0x153),_0x1426d8[_0x3b0873(0x127)]['display']='none',_0x27b1d6['appendChild'](_0x1426d8);}['_initPlugins'](){const _0x38da02=_0x373636;var _0x1fb2d1,_0x58178a,_0x3735dd,_0x29a7f7;[[_0x6b9847],[_0x1207c5,{'container':d,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x3807e6,null]]}],[_0xf4b03e],[_0x5c0196,{'override':[[_0x1faf6c,null]]}],[_0x3a8f00,{'hasScroll':!0x1}],[_0x3f2008],[_0x745455],[_0x2cf6b4,{'notExecuteFormula':!0x0}],[_0x3ebd73],[_0x3f02a6],[_0x60ce41],[_0x4906a6],[_0x14d590],[_0xec952],[_0x151244],[_0x33c2da],[_0x1ea2ce],[_0x27c318],[_0x1ed559],[_0x226d65],[_0x4d43a3],[_0x123479,{'notExecuteFormula':!0x0}],[_0xe64929,{'workerURL':(_0x58178a=(_0x1fb2d1=this[_0x38da02(0xf5)][_0x38da02(0xd0)](_0x4c5b18))==null?void 0x0:_0x1fb2d1[_0x38da02(0xd2)])!=null?_0x58178a:'./worker.js'}],[_0x535f59],[_0x471766],[_0x266dea],[_0x47a769],[_0x5d2d93],[_0x3695d7],[_0x18d5f1],[_0x66a00d,{'notExecuteFormula':!0x0}],[_0x3c390e,{'historyListServerUrl':(_0x3735dd=this['_configService'][_0x38da02(0xd0)](U))==null?void 0x0:_0x3735dd[_0x38da02(0x136)],'historyPanelComponentKey':(_0x29a7f7=this[_0x38da02(0xf5)][_0x38da02(0xd0)](U))==null?void 0x0:_0x29a7f7[_0x38da02(0x143)]}]][_0x38da02(0x12d)](([_0x32e43f,_0x266b9a])=>this[_0x38da02(0xf0)](_0x32e43f,_0x266b9a));}[_0x373636(0xde)](){const _0x415d06=_0x373636;super['dispose'](),this['unMountHistoryContent'](),this[_0x415d06(0xc8)][_0x415d06(0x141)]();}[_0x373636(0xf0)](_0x13c663,_0x2b3e4b,_0x2c6e6b){const _0x4c26e4=_0x373636;if(this[_0x4c26e4(0xc8)][_0x4c26e4(0xd6)](_0x13c663[_0x4c26e4(0x145)])&&!_0x2c6e6b)throw new Error(_0x4c26e4(0x107)+_0x13c663['pluginName']+_0x4c26e4(0x132));this[_0x4c26e4(0xc8)]['set'](_0x13c663['pluginName'],[_0x13c663,_0x2b3e4b]);}['getAllPlugins'](){const _0xaf5f54=_0x373636;return Array[_0xaf5f54(0xf7)](this['_pluginMap']['values']());}['mountHistoryContent'](_0x561a24){const _0x1a63cb=_0x373636,_0xe2c943=document[_0x1a63cb(0xff)](d);_0xe2c943&&(_0xe2c943['style'][_0x1a63cb(0x134)]=_0x1a63cb(0xe7),this[_0x1a63cb(0xfd)](_0x561a24,d));}[_0x373636(0x147)](){const _0x3365bf=_0x373636;var _0x43f4cb;this[_0x3365bf(0x13e)][_0x3365bf(0xde)](),(_0x43f4cb=this['historyUniver'])==null||_0x43f4cb[_0x3365bf(0xde)](),this[_0x3365bf(0xf8)][_0x3365bf(0x10b)](null);const _0x138673=document[_0x3365bf(0xff)](d);_0x138673&&(_0x138673[_0x3365bf(0x127)][_0x3365bf(0x134)]=_0x3365bf(0x108));}[_0x373636(0xfd)](_0x29385d,_0xd0041b){const _0x3a5bda=_0x373636;if(this[_0x3a5bda(0xfe)])return;const _0xf1d853=new _0x113bce({'locales':{[this[_0x3a5bda(0x100)][_0x3a5bda(0xba)]()]:this[_0x3a5bda(0x100)][_0x3a5bda(0xd7)]()},'override':[[_0x8bda80,{'useClass':_0x69b380}]]}),_0x30262b=_0xf1d853[_0x3a5bda(0x140)]();this[_0x3a5bda(0x149)](this['_themeService']['darkMode$'][_0x3a5bda(0xac)](_0x29e1f3=>{const _0x32fec1=_0x3a5bda;_0x30262b[_0x32fec1(0xbd)](_0xb44845)[_0x32fec1(0x118)](_0x29e1f3);})),this[_0x3a5bda(0x149)](this['_themeService'][_0x3a5bda(0xdc)]['subscribe'](_0x61bdb8=>{const _0x3e6466=_0x3a5bda;_0x30262b[_0x3e6466(0xbd)](_0xb44845)[_0x3e6466(0xdb)](_0x61bdb8);})),_0x30262b[_0x3a5bda(0xbd)](_0x2c91a4)[_0x3a5bda(0xc5)](this[_0x3a5bda(0x100)][_0x3a5bda(0xba)]()),_0x30262b[_0x3a5bda(0xbd)](_0x4b0f9d)[_0x3a5bda(0xad)](_0xfde2d,this[_0x3a5bda(0xf5)][_0x3a5bda(0xd0)](_0xfde2d));const _0x59dc23=this['_configService'][_0x3a5bda(0xd0)](_0x35e646);_0x59dc23&&_0xf1d853[_0x3a5bda(0xf0)](_0x5d8f12,{'license':_0x59dc23['ls']}),this[_0x3a5bda(0xc8)][_0x3a5bda(0x12d)](([_0x28417d,_0x365d85])=>{_0xf1d853['registerPlugin'](_0x28417d,_0x365d85);}),_0x30262b[_0x3a5bda(0x112)](_0x576f6a=>{this['_initListener'](_0x576f6a,_0x29385d);}),this[_0x3a5bda(0xf8)]['next'](_0xf1d853);const _0x25672e=_0x30262b[_0x3a5bda(0xbd)](_0x34391b),_0x344483=this[_0x3a5bda(0x129)](_0x29385d);_0x25672e[_0x3a5bda(0xcd)](_0x29385d,_0xd0041b,_0x344483);}[_0x373636(0x152)](_0x35f49b,_0x4825c7){const _0x59ad6c=_0x373636,_0x4aa5a5=_0x35f49b[_0x59ad6c(0xbd)](_0x34391b);this[_0x59ad6c(0x13e)]['add'](_0x4aa5a5[_0x59ad6c(0xf1)]['subscribe'](_0xefff75=>{const _0x5d1ee5=_0x59ad6c;switch(_0xefff75){case _0x30efeb[_0x5d1ee5(0xbb)]:this[_0x5d1ee5(0x137)][_0x5d1ee5(0x14f)](),this['_sidebarService'][_0x5d1ee5(0x114)]();break;case _0x30efeb['Exited']:this[_0x5d1ee5(0x14a)][_0x5d1ee5(0x122)](W['id']),this['unMountHistoryContent']();break;case _0x30efeb[_0x5d1ee5(0x144)]:this[_0x5d1ee5(0x147)](),this['_messageService'][_0x5d1ee5(0x14e)]({'content':this[_0x5d1ee5(0x100)]['t'](_0x5d1ee5(0xc2)),'type':_0x530a6d['Error'],'duration':0xbb8});break;}})),this[_0x59ad6c(0x13e)]['add'](_0x4aa5a5[_0x59ad6c(0xab)]['subscribe'](async _0x27b1c9=>{const _0x76ed50=_0x59ad6c;_0x27b1c9&&this[_0x76ed50(0x14a)][_0x76ed50(0x122)](_0x276b03['id'],{'unitId':_0x4825c7,'revision':_0x27b1c9});}));}[_0x373636(0x129)](_0x1d5785){const _0x3454f9=_0x373636,_0x291945=this[_0x3454f9(0xe8)]['getUnit'](_0x1d5785)[_0x3454f9(0x10d)]()['map'](_0x4bd937=>_0x4bd937[_0x3454f9(0xc7)]()),_0x3a22d4=new _0x4f3937(_0x1d5785)['id'],_0x42b4e2=_0x291945[_0x3454f9(0x14b)](_0x3b98e=>new _0x40738e(_0x1d5785,_0x3b98e)['id']),_0x21f6c6=_0x291945[_0x3454f9(0x14b)](_0x85c0bc=>this['_selectionProtectionRuleModel'][_0x3454f9(0xaa)](_0x1d5785,_0x85c0bc)[_0x3454f9(0x14b)](_0x323764=>new _0x27ffca(_0x1d5785,_0x85c0bc,_0x323764[_0x3454f9(0x10a)])['id']))[_0x3454f9(0xb1)](),_0x41306b=new _0x8b603b(_0x1d5785)['id'];return this[_0x3454f9(0x11d)][_0x3454f9(0x105)]([_0x3a22d4,..._0x42b4e2,..._0x21f6c6,_0x41306b])[_0x3454f9(0xc9)](_0x4d71c7=>!!_0x4d71c7['value']);}};f=mi([l(0x0,_0x4cf848(_0x2c91a4)),l(0x1,_0x6bda87),l(0x2,_0x4b0f9d),l(0x3,_0x74f853),l(0x4,_0x582a14),l(0x5,_0x35e2f7),l(0x6,_0x4cf848(_0x5018ad)),l(0x7,_0x4cf848(_0x3807e6)),l(0x8,_0x4cf848(_0x3969b7)),l(0x9,_0x4cf848(_0xb44845))],f);const b={'id':_0x373636(0xbc),'type':_0x42ba76[_0x373636(0xbf)],'handler':_0x1a8b67=>{const _0x165fa6=_0x373636,_0x3e1b39=_0x1a8b67[_0x165fa6(0xbd)](f),_0x10d7a3=_0x1a8b67[_0x165fa6(0xbd)](_0x6bda87),{unitId:_0x5e967d}=_0x36ca76(_0x10d7a3)||{};return _0x5e967d?(_0x3e1b39[_0x165fa6(0x102)](_0x5e967d),!0x0):!0x1;}},W={'id':_0x373636(0x119),'type':_0x42ba76[_0x373636(0xbf)],'handler':()=>!0x0};function di(_0xb3b418){const _0x4ef821=_0x373636;return{'id':b['id'],'type':_0x30aac4[_0x4ef821(0xdd)],'icon':'HistoryIcon','tooltip':_0x4ef821(0x126),'hidden$':_0x4ed132(_0xb3b418,_0x1b1fcf[_0x4ef821(0xfc)]),'disabled$':_0x17d34e(_0xb3b418,{'workbookTypes':[_0x4f3937,_0x116758],'worksheetTypes':[],'rangeTypes':[]})};}function _0x1304(_0x13d0b9,_0x4849de){_0x13d0b9=_0x13d0b9-0xa9;const _0x32a6fd=_0x32a6();let _0x1304d6=_0x32a6fd[_0x13d0b9];return _0x1304d6;}const fi={[_0xcb0ce3['OTHERS']]:{[b['id']]:{'order':0.2,'menuItemFactory':di}}};var _i=Object[_0x373636(0xe0)],pi=(_0x2e140e,_0x443394,_0x414deb,_0x38f3bf)=>{const _0x266c22=_0x373636;for(var _0x19ee16=_0x38f3bf>0x1?void 0x0:_0x38f3bf?_i(_0x443394,_0x414deb):_0x443394,_0x2d147a=_0x2e140e[_0x266c22(0xe5)]-0x1,_0x2a3f6e;_0x2d147a>=0x0;_0x2d147a--)(_0x2a3f6e=_0x2e140e[_0x2d147a])&&(_0x19ee16=_0x2a3f6e(_0x19ee16)||_0x19ee16);return _0x19ee16;},m=(_0x54bdac,_0x3f037f)=>(_0x5617ac,_0x5ddbda)=>_0x3f037f(_0x5617ac,_0x5ddbda,_0x54bdac);let p=class extends _0x157f2e{constructor(_0x5a9e0b,_0x3948c0,_0x50c16d,_0x4bfe5b,_0x1d2c6d,_0x56ce0e,_0x29980d,_0x138315){const _0x4a5b25=_0x373636;super(),g(this,_0x4a5b25(0xe1),null),(this[_0x4a5b25(0x14a)]=_0x5a9e0b,this[_0x4a5b25(0xe4)]=_0x3948c0,this[_0x4a5b25(0xe2)]=_0x50c16d,this['_historyManagerService']=_0x4bfe5b,this['_localeService']=_0x1d2c6d,this['_messageService']=_0x56ce0e,this[_0x4a5b25(0x103)]=_0x29980d,this[_0x4a5b25(0x148)]=_0x138315,this[_0x4a5b25(0xcf)]());}[_0x373636(0xcf)](){const _0x4f9309=_0x373636;[b,W][_0x4f9309(0x12d)](_0xf67874=>this[_0x4f9309(0x149)](_0x5895ad(this[_0x4f9309(0x14a)]['registerCommand'](_0xf67874)))),this[_0x4f9309(0x149)](this[_0x4f9309(0xe2)][_0x4f9309(0x11f)](_0x4f9309(0xb7),V)),this[_0x4f9309(0xe4)][_0x4f9309(0x155)](fi),this['disposeWithMe'](this[_0x4f9309(0x14a)][_0x4f9309(0xfb)](_0x1a7a78=>{const _0x2c9714=_0x4f9309;if(_0x1a7a78['id']===_0x276b03['id']){this[_0x2c9714(0x10e)][_0x2c9714(0x14e)]({'content':this[_0x2c9714(0x100)]['t'](_0x2c9714(0xfa)),'type':_0x530a6d[_0x2c9714(0x128)],'duration':0x1388});const {unitId:_0x4bec4e}=_0x1a7a78[_0x2c9714(0xf9)],_0x5da616=this['_collaborationController'][_0x2c9714(0xd1)](_0x4bec4e),_0x4beb1d=_0x4cf64d([_0x5da616['session'][_0x2c9714(0xb6)],_0x5da616['state$']])[_0x2c9714(0xac)](async([_0x502745,_0x11f8db])=>{const _0x1ac8eb=_0x2c9714;var _0x3eb011;_0x502745['eventID']===_0x1aa5f6[_0x1ac8eb(0xef)]&&(_0x11f8db==null?void 0x0:_0x11f8db[_0x1ac8eb(0x12c)])===_0x4c8494['SYNCED']&&_0x502745[_0x1ac8eb(0x124)][_0x1ac8eb(0xc0)]['some'](_0xa9f464=>_0xa9f464['id']===_0x276b03['id'])&&(this[_0x1ac8eb(0xd3)][_0x1ac8eb(0x147)](),_0x4beb1d[_0x1ac8eb(0x150)](),this[_0x1ac8eb(0xe1)]&&clearTimeout(this[_0x1ac8eb(0xe1)]),await((_0x3eb011=this[_0x1ac8eb(0x148)])==null?void 0x0:_0x3eb011[_0x1ac8eb(0xdf)]()),setTimeout(()=>window[_0x1ac8eb(0xd5)][_0x1ac8eb(0x14d)]()));});this[_0x2c9714(0xe1)]=setTimeout(()=>{const _0x32d28d=_0x2c9714;_0x4beb1d[_0x32d28d(0x150)](),this[_0x32d28d(0x10e)]['show']({'content':this[_0x32d28d(0x100)]['t'](_0x32d28d(0xb9)),'type':_0x530a6d['Error'],'duration':0xbb8});},0x1388);}}));}};p=pi([m(0x0,_0x74f853),m(0x1,_0x7a8a70),m(0x2,_0x4cf848(_0x5b1e0c)),m(0x3,_0x4cf848(f)),m(0x4,_0x4cf848(_0x2c91a4)),m(0x5,_0x582a14),m(0x6,_0x4cf848(_0x36eb0f)),m(0x7,_0x46d98a)],p);var Si=Object[_0x373636(0xe0)],Ci=(_0xb4ad3,_0x21fc6b,_0x4c4b96,_0x595b32)=>{const _0x2444dc=_0x373636;for(var _0x5162d0=_0x595b32>0x1?void 0x0:_0x595b32?Si(_0x21fc6b,_0x4c4b96):_0x21fc6b,_0x4e8ad0=_0xb4ad3[_0x2444dc(0xe5)]-0x1,_0x135b6e;_0x4e8ad0>=0x0;_0x4e8ad0--)(_0x135b6e=_0xb4ad3[_0x4e8ad0])&&(_0x5162d0=_0x135b6e(_0x5162d0)||_0x5162d0);return _0x5162d0;},R=(_0x201f1f,_0x26171a)=>(_0x5a72cb,_0x26f767)=>_0x26171a(_0x5a72cb,_0x26f767,_0x201f1f);const yi=_0x373636(0x11a);var _;let H=(_=class extends _0x20c115{constructor(_0x31b236=N,_0x127e1b,_0x1e3a5a){const _0x1cacbd=_0x373636;super(),this[_0x1cacbd(0x116)]=_0x31b236,this['_injector']=_0x127e1b,this['_configService']=_0x1e3a5a;const {menu:_0x4cbe2c,..._0x2f85ce}=_0x51c2af({},N,this[_0x1cacbd(0x116)]);_0x4cbe2c&&this['_configService'][_0x1cacbd(0xad)](_0x1cacbd(0x12b),_0x4cbe2c,{'merge':!0x0}),this['_configService'][_0x1cacbd(0xad)](U,_0x2f85ce),this[_0x1cacbd(0x116)]['univerContainerId']&&this[_0x1cacbd(0xf5)][_0x1cacbd(0xad)](G,this[_0x1cacbd(0x116)][_0x1cacbd(0xec)]);}[_0x373636(0x133)](){const _0x142e53=_0x373636;[[f],[p]][_0x142e53(0x12d)](_0x9cf079=>this[_0x142e53(0xb3)][_0x142e53(0x121)](_0x9cf079));}[_0x373636(0x11e)](){const _0x456f67=_0x373636;this[_0x456f67(0xb3)]['get'](p);}},g(_,_0x373636(0xe6),_0x1b1fcf['UNIVER_UNKNOWN']),g(_,_0x373636(0x145),yi),_);H=Ci([R(0x1,_0x4cf848(_0x55b805)),R(0x2,_0x4b0f9d)],H);export{f as HistoryLoaderService,G as UNIVER_CONTAINER_ID_KEY,d as UNIVER_HISTORY_CONTAINER_ID,H as UniverEditHistoryLoaderPlugin};
|
|
1
|
+
const _0x39a409=_0x4215;(function(_0x4328f9,_0x4a8bb9){const _0x3a085a=_0x4215,_0x5c98b0=_0x4328f9();while(!![]){try{const _0x4fc6e2=-parseInt(_0x3a085a(0x173))/0x1+parseInt(_0x3a085a(0x156))/0x2+parseInt(_0x3a085a(0x1c4))/0x3*(-parseInt(_0x3a085a(0x15f))/0x4)+parseInt(_0x3a085a(0x1c0))/0x5*(-parseInt(_0x3a085a(0x17b))/0x6)+parseInt(_0x3a085a(0x174))/0x7*(-parseInt(_0x3a085a(0x1c1))/0x8)+-parseInt(_0x3a085a(0x155))/0x9+parseInt(_0x3a085a(0x1a2))/0xa;if(_0x4fc6e2===_0x4a8bb9)break;else _0x5c98b0['push'](_0x5c98b0['shift']());}catch(_0x8ce1fe){_0x5c98b0['push'](_0x5c98b0['shift']());}}}(_0x197d,0x19a65));var Y=Object[_0x39a409(0x16e)],B=(_0x3165e9,_0x2b34d2,_0x5cb011)=>_0x2b34d2 in _0x3165e9?Y(_0x3165e9,_0x2b34d2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5cb011}):_0x3165e9[_0x2b34d2]=_0x5cb011,g=(_0x1cf6e9,_0x50036a,_0xc4d513)=>B(_0x1cf6e9,typeof _0x50036a!='symbol'?_0x50036a+'':_0x50036a,_0xc4d513);import{Inject as _0x4d0f78,LocaleService as _0x5a075e,IUniverInstanceService as _0x47b3be,IConfigService as _0x1036a9,ICommandService as _0x270472,IPermissionService as _0x44885c,ThemeService as _0x2ea7de,Disposable as _0x49da04,DisposableCollection as _0x4ae443,Univer as _0x2af004,IAuthzIoService as _0x2e67dc,CommandType as _0x23553e,UniverInstanceType as _0x33cada,RxDisposable as _0x157ec3,toDisposable as _0x572451,Plugin as _0x219636,merge as _0x4aa835,Injector as _0x2a077e}from'@univerjs/core';import{UniverCollaborationPlugin as _0x21bf16,RevertRevisionMutation as _0x388f9a,CollaborationEvent as _0x18fd40}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x1e7fd3,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x431c30,CollaborationController as _0x450258,ILocalCacheService as _0x3ebc56,CollaborationStatus as _0x346212}from'@univerjs-pro/collaboration-client';import{MessageType as _0x57be99}from'@univerjs/design';import{useRef as _0x23c6f8,createElement as _0x353685,forwardRef as _0x4f6452}from'react';import{IMessageService as _0xea87f8,IDialogService as _0x56af60,ISidebarService as _0x4f29fb,UniverUIPlugin as _0xd84c08,getMenuHiddenObservable as _0x4e42e2,MenuItemType as _0x343a87,RibbonStartGroup as _0x57879a,IMenuManagerService as _0x26094f,ComponentManager as _0x529cde}from'@univerjs/ui';import{BehaviorSubject as _0x1e1719,combineLatest as _0x2accaf}from'rxjs';import{RangeProtectionRuleModel as _0x440857,UniverSheetsPlugin as _0x2d42f2,WorkbookEditablePermission as _0x30b2b0,WorksheetEditPermission as _0x38ce77,RangeProtectionPermissionEditPoint as _0x49c7c9,WorkbookRecoverHistoryPermission as _0x4755cd,getSheetCommandTarget as _0x335a78,WorkbookViewHistoryPermission as _0x244137}from'@univerjs/sheets';import{UniverEditHistoryViewerPlugin as _0x55f083,HistoryManagerService as _0x28e5b3,HistoryModeStatus as _0x31562f}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x42a5c0,UniverLicensePlugin as _0x2267c3}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x4a62d7}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0x1c1683}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x54d5cc}from'@univerjs-pro/sheets-pivot';import{UniverSheetSparklinePlugin as _0x53a353}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x58f67d}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x2415c8}from'@univerjs/data-validation';import{UniverDocsPlugin as _0x3e7d56}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x1bc943}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0x3286a4,IImageIoService as _0x66f5be}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x1e9d93}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x37863c}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x5ce173}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x3705a0}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x395e79,PLUGIN_CONFIG_KEY_MAIN_THREAD as _0x569c2e}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x1f0c0e}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x4591cf}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x2f6efb}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0x72766e}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x1f0e4a}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x1beca3}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x2e23be}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x45dadf}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x27ea31}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x121351}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x4b6b5e}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x590a71}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x296f36}from'@univerjs/sheets-numfmt';import{UniverSheetsUIPlugin as _0x5339c0,getCurrentRangeDisable$ as _0x34f0f4}from'@univerjs/sheets-ui';const U=_0x39a409(0x1af),N={};function F({ref:_0x12f44a,..._0x287e65}){const _0x2e5cb1=_0x39a409,{icon:_0x28f5c4,id:_0x456d64,className:_0x5f4686,extend:_0x4bea15,..._0x1165e2}=_0x287e65,_0x534bcc=(_0x2e5cb1(0x15a)+_0x456d64+'\x20'+(_0x5f4686||''))['trim'](),_0x39fb19=_0x23c6f8('_'+hi());return j(_0x28f5c4,''+_0x456d64,{'defIds':_0x28f5c4[_0x2e5cb1(0x18d)],'idSuffix':_0x39fb19['current']},{'ref':_0x12f44a,'className':_0x534bcc,..._0x1165e2},_0x4bea15);}function j(_0x5a1ee9,_0x1de9bf,_0x4bc91a,_0x26f54c,_0xbd4289){const _0x58a684=_0x39a409;return _0x353685(_0x5a1ee9[_0x58a684(0x1a3)],{'key':_0x1de9bf,...ci(_0x5a1ee9,_0x4bc91a,_0xbd4289),..._0x26f54c},(li(_0x5a1ee9,_0x4bc91a)['children']||[])[_0x58a684(0x185)]((_0x257a53,_0x392354)=>j(_0x257a53,_0x1de9bf+'-'+_0x5a1ee9[_0x58a684(0x1a3)]+'-'+_0x392354,_0x4bc91a,void 0x0,_0xbd4289)));}function ci(_0x179869,_0x1ef5d6,_0x1776bc){const _0x43f79d=_0x39a409,_0x5f0798={..._0x179869[_0x43f79d(0x175)]};_0x1776bc!=null&&_0x1776bc[_0x43f79d(0x18b)]&&_0x5f0798[_0x43f79d(0x181)]===_0x43f79d(0x18b)&&(_0x5f0798['fill']=_0x1776bc[_0x43f79d(0x18b)]),_0x179869[_0x43f79d(0x1a3)]===_0x43f79d(0x1d2)&&_0x5f0798['id']&&(_0x5f0798['id']=_0x5f0798['id']+_0x1ef5d6['idSuffix']),Object[_0x43f79d(0x146)](_0x5f0798)[_0x43f79d(0x19a)](([_0x316d26,_0x579a26])=>{const _0x453586=_0x43f79d;_0x316d26===_0x453586(0x1d2)&&typeof _0x579a26=='string'&&(_0x5f0798[_0x316d26]=_0x579a26[_0x453586(0x143)](/url\(#(.*)\)/,'url(#$1'+_0x1ef5d6[_0x453586(0x190)]+')'));});const {defIds:_0x514dcf}=_0x1ef5d6;return!_0x514dcf||_0x514dcf[_0x43f79d(0x1d5)]===0x0||(_0x179869['tag']===_0x43f79d(0x1a5)&&_0x5f0798[_0x43f79d(0x1a9)]&&(_0x5f0798[_0x43f79d(0x1a9)]=_0x5f0798['xlink:href']+_0x1ef5d6[_0x43f79d(0x190)]),Object[_0x43f79d(0x146)](_0x5f0798)[_0x43f79d(0x19a)](([_0x411004,_0x1a9b3d])=>{const _0x653efd=_0x43f79d;typeof _0x1a9b3d==_0x653efd(0x1ac)&&(_0x5f0798[_0x411004]=_0x1a9b3d['replace'](/url\(#(.*)\)/,'url(#$1'+_0x1ef5d6[_0x653efd(0x190)]+')'));})),_0x5f0798;}function _0x4215(_0x11a234,_0x1abe64){_0x11a234=_0x11a234-0x134;const _0x197d74=_0x197d();let _0x4215cc=_0x197d74[_0x11a234];return _0x4215cc;}function li(_0x47a86c,_0xead4d3){const _0x33b8dc=_0x39a409;var _0x1f2494;const {defIds:_0x4e9a5f}=_0xead4d3;return!_0x4e9a5f||_0x4e9a5f['length']===0x0?_0x47a86c:_0x47a86c[_0x33b8dc(0x1a3)]===_0x33b8dc(0x158)&&((_0x1f2494=_0x47a86c[_0x33b8dc(0x13a)])!=null&&_0x1f2494[_0x33b8dc(0x1d5)])?{..._0x47a86c,'children':_0x47a86c[_0x33b8dc(0x13a)][_0x33b8dc(0x185)](_0x1d0acc=>typeof _0x1d0acc['attrs']['id']=='string'&&_0x4e9a5f&&_0x4e9a5f[_0x33b8dc(0x1c2)](_0x1d0acc['attrs']['id'])?{..._0x1d0acc,'attrs':{..._0x1d0acc[_0x33b8dc(0x175)],'id':_0x1d0acc[_0x33b8dc(0x175)]['id']+_0xead4d3[_0x33b8dc(0x190)]}}:_0x1d0acc)}:_0x47a86c;}function hi(){const _0x47a29a=_0x39a409;return Math[_0x47a29a(0x163)]()['toString'](0x24)[_0x47a29a(0x147)](0x2,0x8);}F[_0x39a409(0x15c)]=_0x39a409(0x1a4);const ui={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x39a409(0x1b3),'viewBox':_0x39a409(0x1aa),'width':_0x39a409(0x15d),'height':_0x39a409(0x15d)},'children':[{'tag':'g','attrs':{'fill':_0x39a409(0x1d3),'clipPath':_0x39a409(0x161)},'children':[{'tag':'path','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':_0x39a409(0x166),'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':_0x39a409(0x158),'attrs':{},'children':[{'tag':_0x39a409(0x178),'attrs':{'id':'history-icon_clip0_907_281'},'children':[{'tag':_0x39a409(0x166),'attrs':{'fill':_0x39a409(0x1a1),'d':_0x39a409(0x182)}}]}]}],'defIds':['history-icon_clip0_907_281']},V=_0x4f6452(function(_0x13772f,_0x4d99a4){const _0x4edb86=_0x39a409;return _0x353685(F,Object[_0x4edb86(0x177)]({},_0x13772f,{'id':'history-icon','ref':_0x4d99a4,'icon':ui}));});V['displayName']=_0x39a409(0x1c3);var gi=Object[_0x39a409(0x154)],mi=(_0x422c1a,_0x41f1e5,_0x264f38,_0x55c810)=>{const _0x219601=_0x39a409;for(var _0x9961e=_0x55c810>0x1?void 0x0:_0x55c810?gi(_0x41f1e5,_0x264f38):_0x41f1e5,_0x1b6500=_0x422c1a[_0x219601(0x1d5)]-0x1,_0x3ef054;_0x1b6500>=0x0;_0x1b6500--)(_0x3ef054=_0x422c1a[_0x1b6500])&&(_0x9961e=_0x3ef054(_0x9961e)||_0x9961e);return _0x9961e;},l=(_0x32b534,_0x78a0e6)=>(_0x503ff0,_0x161b24)=>_0x78a0e6(_0x503ff0,_0x161b24,_0x32b534);const vi=_0x39a409(0x1c8),G=_0x39a409(0x13e),d=_0x39a409(0x1d1);let f=class extends _0x49da04{constructor(_0x3e6486,_0x4b4971,_0x4b293c,_0xbb8bbe,_0xe4a43e,_0x196b8,_0x25b776,_0x8970ae,_0x7b89b,_0x4e9cb1){const _0xb7b853=_0x39a409;super(),g(this,_0xb7b853(0x1ba),new _0x1e1719(null)),g(this,_0xb7b853(0x18c),this['_historyUniver$'][_0xb7b853(0x17d)]()),g(this,_0xb7b853(0x159),new _0x4ae443()),g(this,_0xb7b853(0x13b),new Map()),(this[_0xb7b853(0x19d)]=_0x3e6486,this[_0xb7b853(0x1c5)]=_0x4b4971,this[_0xb7b853(0x148)]=_0x4b293c,this['_commandService']=_0xbb8bbe,this[_0xb7b853(0x172)]=_0xe4a43e,this[_0xb7b853(0x14f)]=_0x196b8,this[_0xb7b853(0x1a6)]=_0x25b776,this['_dialogService']=_0x8970ae,this[_0xb7b853(0x14b)]=_0x7b89b,this[_0xb7b853(0x14a)]=_0x4e9cb1,this[_0xb7b853(0x1a8)]());}get['historyUniver'](){const _0x4080f3=_0x39a409;return this[_0x4080f3(0x1ba)][_0x4080f3(0x1cd)];}[_0x39a409(0x1a8)](){const _0x184efc=_0x39a409;this['_initContainer'](),this[_0x184efc(0x13d)]();}[_0x39a409(0x16a)](){const _0x3b0a66=_0x39a409;var _0x769d72;const _0x5c6a22=(_0x769d72=this['_configService'][_0x3b0a66(0x167)](G))!=null?_0x769d72:vi,_0x394ba3=document[_0x3b0a66(0x1b1)](_0x5c6a22);if(!_0x394ba3)return;const _0x28b48c=document[_0x3b0a66(0x134)]('div');_0x28b48c['id']=d,_0x28b48c['dataset'][_0x3b0a66(0x151)]=_0x3b0a66(0x17a),_0x28b48c[_0x3b0a66(0x192)][_0x3b0a66(0x18e)]=_0x3b0a66(0x17e),_0x28b48c[_0x3b0a66(0x192)]['top']='0',_0x28b48c[_0x3b0a66(0x192)][_0x3b0a66(0x1bf)]='0',_0x28b48c[_0x3b0a66(0x192)][_0x3b0a66(0x153)]=_0x3b0a66(0x14d),_0x28b48c[_0x3b0a66(0x192)][_0x3b0a66(0x197)]='100%',_0x28b48c[_0x3b0a66(0x192)][_0x3b0a66(0x13c)]=_0x3b0a66(0x19e),_0x28b48c[_0x3b0a66(0x192)]['display']=_0x3b0a66(0x1b3),_0x394ba3['appendChild'](_0x28b48c);}[_0x39a409(0x13d)](){const _0x4c3e9f=_0x39a409;var _0x3d421f,_0x4be136,_0x234282,_0x53c60d;[[_0x5ce173],[_0xd84c08,{'container':d,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x56af60,null]]}],[_0x3705a0],[_0x3286a4,{'override':[[_0x66f5be,null]]}],[_0x3e7d56,{'hasScroll':!0x1}],[_0x1bc943],[_0x296f36],[_0x2d42f2,{'notExecuteFormula':!0x0}],[_0x5339c0],[_0x27ea31],[_0x121351],[_0x21bf16],[_0x2e23be],[_0x45dadf],[_0x1f0c0e],[_0x4591cf],[_0x4b6b5e],[_0x590a71],[_0x2415c8],[_0x2f6efb],[_0x72766e],[_0x37863c,{'notExecuteFormula':!0x0}],[_0x395e79,{'workerURL':(_0x4be136=(_0x3d421f=this[_0x4c3e9f(0x148)][_0x4c3e9f(0x167)](_0x569c2e))==null?void 0x0:_0x3d421f['workerURL'])!=null?_0x4be136:_0x4c3e9f(0x145)}],[_0x1e9d93],[_0x1f0e4a],[_0x1beca3],[_0x53a353],[_0x58f67d],[_0x4a62d7],[_0x1c1683],[_0x54d5cc,{'notExecuteFormula':!0x0}],[_0x55f083,{'historyListServerUrl':(_0x234282=this[_0x4c3e9f(0x148)][_0x4c3e9f(0x167)](U))==null?void 0x0:_0x234282['historyListServerUrl'],'historyPanelComponentKey':(_0x53c60d=this[_0x4c3e9f(0x148)][_0x4c3e9f(0x167)](U))==null?void 0x0:_0x53c60d[_0x4c3e9f(0x139)]}]][_0x4c3e9f(0x19a)](([_0x2279ca,_0x2ee621])=>this['registerPlugin'](_0x2279ca,_0x2ee621));}['dispose'](){const _0x577d9b=_0x39a409;super[_0x577d9b(0x1b0)](),this[_0x577d9b(0x189)](),this[_0x577d9b(0x13b)]['clear']();}[_0x39a409(0x1b4)](_0x2abe0b,_0x40a861,_0x17191e){const _0x2e03fd=_0x39a409;if(this[_0x2e03fd(0x13b)][_0x2e03fd(0x186)](_0x2abe0b[_0x2e03fd(0x1b6)])&&!_0x17191e)throw new Error(_0x2e03fd(0x199)+_0x2abe0b[_0x2e03fd(0x1b6)]+'\x20has\x20been\x20registered.');this[_0x2e03fd(0x13b)][_0x2e03fd(0x1bc)](_0x2abe0b[_0x2e03fd(0x1b6)],[_0x2abe0b,_0x40a861]);}[_0x39a409(0x1b5)](){const _0x42d6fd=_0x39a409;return Array['from'](this[_0x42d6fd(0x13b)]['values']());}['mountHistoryContent'](_0x4f67b8){const _0x13324e=_0x39a409,_0x1266dc=document[_0x13324e(0x1b1)](d);_0x1266dc&&(_0x1266dc[_0x13324e(0x192)][_0x13324e(0x1b2)]='block',this['_initUniver'](_0x4f67b8,d));}[_0x39a409(0x189)](){const _0x2e7ee8=_0x39a409;var _0x428c26;this['_disposableCollection'][_0x2e7ee8(0x1b0)](),(_0x428c26=this[_0x2e7ee8(0x14e)])==null||_0x428c26[_0x2e7ee8(0x1b0)](),this[_0x2e7ee8(0x1ba)][_0x2e7ee8(0x137)](null);const _0x3c54da=document['getElementById'](d);_0x3c54da&&(_0x3c54da['style'][_0x2e7ee8(0x1b2)]=_0x2e7ee8(0x1b3));}[_0x39a409(0x19f)](_0x205c5a,_0x141c7e){const _0x50c436=_0x39a409;if(this[_0x50c436(0x14e)])return;const _0x1cf4f2=new _0x2af004({'locales':{[this[_0x50c436(0x19d)][_0x50c436(0x187)]()]:this[_0x50c436(0x19d)][_0x50c436(0x1cb)]()},'override':[[_0x2e67dc,{'useClass':_0x1e7fd3}]]}),_0x361a85=_0x1cf4f2[_0x50c436(0x18a)]();this[_0x50c436(0x140)](this[_0x50c436(0x14a)][_0x50c436(0x176)]['subscribe'](_0x13573e=>{const _0x3542f7=_0x50c436;_0x361a85[_0x3542f7(0x1c9)](_0x2ea7de)[_0x3542f7(0x170)](_0x13573e);})),this['disposeWithMe'](this['_themeService'][_0x50c436(0x1d4)][_0x50c436(0x169)](_0x34f98d=>{const _0x1818aa=_0x50c436;_0x361a85[_0x1818aa(0x1c9)](_0x2ea7de)[_0x1818aa(0x162)](_0x34f98d);})),_0x361a85['get'](_0x5a075e)[_0x50c436(0x179)](this['_localeService']['getCurrentLocale']()),_0x361a85[_0x50c436(0x1c9)](_0x1036a9)[_0x50c436(0x1ca)](_0x431c30,this['_configService'][_0x50c436(0x167)](_0x431c30));const _0x1aa4af=this[_0x50c436(0x148)][_0x50c436(0x167)](_0x42a5c0);_0x1aa4af&&_0x1cf4f2[_0x50c436(0x1b4)](_0x2267c3,{'license':_0x1aa4af['ls']}),this[_0x50c436(0x13b)][_0x50c436(0x19a)](([_0x51f44c,_0x58d640])=>{_0x1cf4f2['registerPlugin'](_0x51f44c,_0x58d640);}),_0x361a85[_0x50c436(0x149)](_0xcc07a3=>{const _0x50c2f8=_0x50c436;this[_0x50c2f8(0x1d0)](_0xcc07a3,_0x205c5a);}),this['_historyUniver$']['next'](_0x1cf4f2);const _0x3e236f=_0x361a85[_0x50c436(0x1c9)](_0x28e5b3),_0xefe191=this[_0x50c436(0x16f)](_0x205c5a);_0x3e236f[_0x50c436(0x138)](_0x205c5a,_0x141c7e,_0xefe191);}[_0x39a409(0x1d0)](_0x469186,_0x2b1bf9){const _0x2beecb=_0x39a409,_0x346751=_0x469186[_0x2beecb(0x1c9)](_0x28e5b3);this[_0x2beecb(0x159)][_0x2beecb(0x165)](_0x346751[_0x2beecb(0x198)][_0x2beecb(0x169)](_0x389d=>{const _0x16dc41=_0x2beecb;switch(_0x389d){case _0x31562f[_0x16dc41(0x191)]:this[_0x16dc41(0x171)][_0x16dc41(0x142)](),this[_0x16dc41(0x14b)][_0x16dc41(0x135)]();break;case _0x31562f[_0x16dc41(0x1a0)]:this['_commandService'][_0x16dc41(0x1b7)](W['id']),this[_0x16dc41(0x189)]();break;case _0x31562f[_0x16dc41(0x152)]:this[_0x16dc41(0x189)](),this[_0x16dc41(0x172)][_0x16dc41(0x188)]({'content':this[_0x16dc41(0x19d)]['t'](_0x16dc41(0x15b)),'type':_0x57be99['Error'],'duration':0xbb8});break;}})),this['_disposableCollection']['add'](_0x346751['revertRevision$'][_0x2beecb(0x169)](async _0x5dcbd1=>{const _0xf340bf=_0x2beecb;_0x5dcbd1&&this[_0xf340bf(0x141)][_0xf340bf(0x1b7)](_0x388f9a['id'],{'unitId':_0x2b1bf9,'revision':_0x5dcbd1});}));}[_0x39a409(0x16f)](_0x52e07b){const _0x44ce16=_0x39a409,_0x1b7dfa=this[_0x44ce16(0x1c5)][_0x44ce16(0x19c)](_0x52e07b)[_0x44ce16(0x1cc)]()[_0x44ce16(0x185)](_0x4168d7=>_0x4168d7[_0x44ce16(0x13f)]()),_0x54cbd1=new _0x30b2b0(_0x52e07b)['id'],_0x215867=_0x1b7dfa[_0x44ce16(0x185)](_0x1cbd9d=>new _0x38ce77(_0x52e07b,_0x1cbd9d)['id']),_0x5bb83d=_0x1b7dfa['map'](_0x1f5b62=>this[_0x44ce16(0x1a6)][_0x44ce16(0x1ad)](_0x52e07b,_0x1f5b62)[_0x44ce16(0x185)](_0x277b0a=>new _0x49c7c9(_0x52e07b,_0x1f5b62,_0x277b0a[_0x44ce16(0x1a7)])['id']))['flat'](),_0x3fea05=new _0x4755cd(_0x52e07b)['id'];return this['_permissionService'][_0x44ce16(0x14c)]([_0x54cbd1,..._0x215867,..._0x5bb83d,_0x3fea05])[_0x44ce16(0x194)](_0x5442dd=>!!_0x5442dd['value']);}};f=mi([l(0x0,_0x4d0f78(_0x5a075e)),l(0x1,_0x47b3be),l(0x2,_0x1036a9),l(0x3,_0x270472),l(0x4,_0xea87f8),l(0x5,_0x44885c),l(0x6,_0x4d0f78(_0x440857)),l(0x7,_0x4d0f78(_0x56af60)),l(0x8,_0x4d0f78(_0x4f29fb)),l(0x9,_0x4d0f78(_0x2ea7de))],f);const b={'id':_0x39a409(0x1ab),'type':_0x23553e[_0x39a409(0x17f)],'handler':_0x43e945=>{const _0x19e850=_0x39a409,_0x2b0d33=_0x43e945['get'](f),_0x3e2312=_0x43e945[_0x19e850(0x1c9)](_0x47b3be),{unitId:_0x187532}=_0x335a78(_0x3e2312)||{};return _0x187532?(_0x2b0d33[_0x19e850(0x184)](_0x187532),!0x0):!0x1;}},W={'id':'univer.operation.exit-edit-history','type':_0x23553e[_0x39a409(0x17f)],'handler':()=>!0x0};function di(_0x4569c6){const _0xfdf906=_0x39a409;return{'id':b['id'],'type':_0x343a87[_0xfdf906(0x136)],'icon':_0xfdf906(0x1c3),'tooltip':'editHistory.panel.title','hidden$':_0x4e42e2(_0x4569c6,_0x33cada['UNIVER_SHEET']),'disabled$':_0x34f0f4(_0x4569c6,{'workbookTypes':[_0x30b2b0,_0x244137],'worksheetTypes':[],'rangeTypes':[]})};}const fi={[_0x57879a[_0x39a409(0x183)]]:{[b['id']]:{'order':0.2,'menuItemFactory':di}}};var _i=Object[_0x39a409(0x154)],pi=(_0x367e60,_0x2eb5b4,_0x10c4fd,_0x5590c1)=>{for(var _0x1bd382=_0x5590c1>0x1?void 0x0:_0x5590c1?_i(_0x2eb5b4,_0x10c4fd):_0x2eb5b4,_0x22a8fb=_0x367e60['length']-0x1,_0x2b6b68;_0x22a8fb>=0x0;_0x22a8fb--)(_0x2b6b68=_0x367e60[_0x22a8fb])&&(_0x1bd382=_0x2b6b68(_0x1bd382)||_0x1bd382);return _0x1bd382;},m=(_0x3038eb,_0x5b877e)=>(_0x4737d1,_0x254d94)=>_0x5b877e(_0x4737d1,_0x254d94,_0x3038eb);let p=class extends _0x157ec3{constructor(_0xe7108f,_0x4a3c0b,_0x59d070,_0x5720e3,_0xd35b75,_0x2a1df5,_0x2c25ce,_0x132cdd){const _0x3fb26a=_0x39a409;super(),g(this,'_revertErrorTimer',null),(this['_commandService']=_0xe7108f,this[_0x3fb26a(0x1b8)]=_0x4a3c0b,this[_0x3fb26a(0x1be)]=_0x59d070,this['_historyManagerService']=_0x5720e3,this['_localeService']=_0xd35b75,this[_0x3fb26a(0x172)]=_0x2a1df5,this[_0x3fb26a(0x196)]=_0x2c25ce,this[_0x3fb26a(0x19b)]=_0x132cdd,this[_0x3fb26a(0x1a8)]());}['_init'](){const _0x47846d=_0x39a409;[b,W][_0x47846d(0x19a)](_0x4f034c=>this[_0x47846d(0x140)](_0x572451(this['_commandService'][_0x47846d(0x16c)](_0x4f034c)))),this[_0x47846d(0x140)](this[_0x47846d(0x1be)][_0x47846d(0x18f)](_0x47846d(0x1c3),V)),this['_menuManagerService'][_0x47846d(0x15e)](fi),this[_0x47846d(0x140)](this[_0x47846d(0x141)][_0x47846d(0x168)](_0x48aead=>{const _0xdf642b=_0x47846d;if(_0x48aead['id']===_0x388f9a['id']){this['_messageService'][_0xdf642b(0x188)]({'content':this[_0xdf642b(0x19d)]['t']('editHistory.panel.reverting'),'type':_0x57be99[_0xdf642b(0x16b)],'duration':0x1388});const {unitId:_0xbaf462}=_0x48aead[_0xdf642b(0x180)],_0x24d9f1=this[_0xdf642b(0x196)]['getCollabEntity'](_0xbaf462),_0x21d306=_0x2accaf([_0x24d9f1['session'][_0xdf642b(0x1ce)],_0x24d9f1[_0xdf642b(0x17c)]])['subscribe'](async([_0x4228b4,_0x179ff6])=>{const _0x2f6612=_0xdf642b;var _0x42fc61;_0x4228b4[_0x2f6612(0x1c7)]===_0x18fd40[_0x2f6612(0x164)]&&(_0x179ff6==null?void 0x0:_0x179ff6[_0x2f6612(0x1cf)])===_0x346212['SYNCED']&&_0x4228b4['data'][_0x2f6612(0x16d)]['some'](_0x598cad=>_0x598cad['id']===_0x388f9a['id'])&&(this['_historyManagerService'][_0x2f6612(0x189)](),_0x21d306['unsubscribe'](),this[_0x2f6612(0x150)]&&clearTimeout(this[_0x2f6612(0x150)]),await((_0x42fc61=this[_0x2f6612(0x19b)])==null?void 0x0:_0x42fc61[_0x2f6612(0x160)]()),setTimeout(()=>window['location'][_0x2f6612(0x1ae)]()));});this[_0xdf642b(0x150)]=setTimeout(()=>{const _0x2530db=_0xdf642b;_0x21d306['unsubscribe'](),this[_0x2530db(0x172)][_0x2530db(0x188)]({'content':this[_0x2530db(0x19d)]['t'](_0x2530db(0x144)),'type':_0x57be99['Error'],'duration':0xbb8});},0x1388);}}));}};p=pi([m(0x0,_0x270472),m(0x1,_0x26094f),m(0x2,_0x4d0f78(_0x529cde)),m(0x3,_0x4d0f78(f)),m(0x4,_0x4d0f78(_0x5a075e)),m(0x5,_0xea87f8),m(0x6,_0x4d0f78(_0x450258)),m(0x7,_0x3ebc56)],p);var Si=Object[_0x39a409(0x154)],Ci=(_0x16c1b2,_0x3ccd86,_0xa686e7,_0x1eaf6c)=>{const _0x3d9030=_0x39a409;for(var _0x4479b3=_0x1eaf6c>0x1?void 0x0:_0x1eaf6c?Si(_0x3ccd86,_0xa686e7):_0x3ccd86,_0x5d1b54=_0x16c1b2[_0x3d9030(0x1d5)]-0x1,_0x3e5cf1;_0x5d1b54>=0x0;_0x5d1b54--)(_0x3e5cf1=_0x16c1b2[_0x5d1b54])&&(_0x4479b3=_0x3e5cf1(_0x4479b3)||_0x4479b3);return _0x4479b3;},R=(_0x5ad2c9,_0x437e3f)=>(_0x598bd2,_0x1822ac)=>_0x437e3f(_0x598bd2,_0x1822ac,_0x5ad2c9);function _0x197d(){const _0x557b40=['univerjs-icon\x20univerjs-icon-','editHistory.panel.listFetchError','displayName','1em','mergeMenu','16WnFYyS','exhaustSavingTask','url(#history-icon_clip0_907_281)','setTheme','random','CHANGESET_ACK','add','path','getConfig','onCommandExecuted','subscribe','_initContainer','Loading','registerCommand','mutations','defineProperty','_checkCanRevert','setDarkMode','_dialogService','_messageService','93471FbHidw','638771UfhcOi','attrs','darkMode$','assign','clipPath','setLocale','history-container','12XYIaiq','state$','asObservable','absolute','OPERATION','params','fill','M0\x200H16V16H0z','OTHERS','mountHistoryContent','map','has','getCurrentLocale','show','unMountHistoryContent','__getInjector','colorChannel1','historyUniver$','defIds','position','register','idSuffix','Entered','style','_injector','every','univerContainerId','_collaborationController','height','status$','[HistoryLoaderService]:\x20Plugin\x20','forEach','_localCacheService','getUnit','_localeService','1000','_initUniver','Exited','white','7220270TVJhdz','tag','UniverIcon','use','_selectionProtectionRuleModel','permissionId','_init','xlink:href','0\x200\x2016\x2016','univer.operation.toggle-edit-history','string','getSubunitRuleList','reload','edit-history-loader.config','dispose','getElementById','display','none','registerPlugin','getAllPlugins','pluginName','executeCommand','_menuManagerService','_config','_historyUniver$','menu','set','UNIVER_UNKNOWN','_componentManager','left','260740EZoSux','8zacMQB','includes','HistoryIcon','117213kkmlvK','_univerInstanceService','onSteady','eventID','univer-container','get','setConfig','getLocales','getSheets','value','event$','status','_initListener','univer-history-container','mask','currentColor','currentTheme$','length','createElement','close','BUTTON','next','triggerLoadVersions','historyPanelComponentKey','children','_pluginMap','zIndex','_initPlugins','UNIVER_CONTAINER_ID','getSheetId','disposeWithMe','_commandService','closeAll','replace','editHistory.panel.revertFailed','./worker.js','entries','substring','_configService','invoke','_themeService','_sidebarService','composePermission','100%','historyUniver','_permissionService','_revertErrorTimer','uComp','Error','width','getOwnPropertyDescriptor','1650888IfWVIB','23540HzuijY','type','defs','_disposableCollection'];_0x197d=function(){return _0x557b40;};return _0x197d();}const yi='UNIVER_EDIT_HISTORY_LOADER_PLUGIN';var _;let H=(_=class extends _0x219636{constructor(_0x1e0186=N,_0x2a515b,_0x586356){const _0x501206=_0x39a409;super(),this[_0x501206(0x1b9)]=_0x1e0186,this[_0x501206(0x193)]=_0x2a515b,this[_0x501206(0x148)]=_0x586356;const {menu:_0x52ba3e,..._0x31a2c7}=_0x4aa835({},N,this['_config']);_0x52ba3e&&this[_0x501206(0x148)][_0x501206(0x1ca)](_0x501206(0x1bb),_0x52ba3e,{'merge':!0x0}),this[_0x501206(0x148)][_0x501206(0x1ca)](U,_0x31a2c7),this['_config'][_0x501206(0x195)]&&this[_0x501206(0x148)]['setConfig'](G,this['_config'][_0x501206(0x195)]);}['onStarting'](){const _0x177403=_0x39a409;[[f],[p]][_0x177403(0x19a)](_0x2ab5ee=>this[_0x177403(0x193)][_0x177403(0x165)](_0x2ab5ee));}[_0x39a409(0x1c6)](){const _0x39443d=_0x39a409;this[_0x39443d(0x193)][_0x39443d(0x1c9)](p);}},g(_,_0x39a409(0x157),_0x33cada[_0x39a409(0x1bd)]),g(_,'pluginName',yi),_);H=Ci([R(0x1,_0x4d0f78(_0x2a077e)),R(0x2,_0x1036a9)],H);export{f as HistoryLoaderService,G as UNIVER_CONTAINER_ID_KEY,d as UNIVER_HISTORY_CONTAINER_ID,H as UniverEditHistoryLoaderPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x45d2(_0x4fb3d8,_0x205c8e){_0x4fb3d8=_0x4fb3d8-0x1eb;const _0x4639d8=_0x4639();let _0x45d2a1=_0x4639d8[_0x4fb3d8];return _0x45d2a1;}(function(_0xcc3e,_0x87bf3f){const _0x31e155=_0x45d2,_0x4c37e6=_0xcc3e();while(!![]){try{const _0x16eab1=-parseInt(_0x31e155(0x316))/0x1+-parseInt(_0x31e155(0x238))/0x2*(-parseInt(_0x31e155(0x22b))/0x3)+parseInt(_0x31e155(0x2ef))/0x4+-parseInt(_0x31e155(0x2e5))/0x5*(-parseInt(_0x31e155(0x2d0))/0x6)+-parseInt(_0x31e155(0x210))/0x7+-parseInt(_0x31e155(0x297))/0x8*(parseInt(_0x31e155(0x293))/0x9)+parseInt(_0x31e155(0x206))/0xa;if(_0x16eab1===_0x87bf3f)break;else _0x4c37e6['push'](_0x4c37e6['shift']());}catch(_0x43f685){_0x4c37e6['push'](_0x4c37e6['shift']());}}}(_0x4639,0x57040),function(_0x1b72ce,_0x2a4640){const _0x2932a3=_0x45d2;typeof exports==_0x2932a3(0x207)&&typeof module<'u'?_0x2a4640(exports,require('@univerjs/core'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/design'),require('react'),require('@univerjs/ui'),require('rxjs'),require('@univerjs/sheets'),require('@univerjs-pro/edit-history-viewer'),require('@univerjs-pro/license'),require('@univerjs-pro/sheets-chart'),require('@univerjs-pro/sheets-chart-ui'),require('@univerjs-pro/sheets-pivot'),require('@univerjs-pro/sheets-sparkline'),require('@univerjs-pro/sheets-sparkline-ui'),require('@univerjs/data-validation'),require('@univerjs/docs'),require('@univerjs/docs-ui'),require('@univerjs/drawing'),require('@univerjs/drawing-ui'),require('@univerjs/engine-formula'),require('@univerjs/engine-render'),require('@univerjs/network'),require('@univerjs/rpc'),require('@univerjs/sheets-conditional-formatting'),require('@univerjs/sheets-conditional-formatting-ui'),require('@univerjs/sheets-data-validation'),require('@univerjs/sheets-data-validation-ui'),require('@univerjs/sheets-drawing'),require('@univerjs/sheets-drawing-ui'),require('@univerjs/sheets-filter'),require('@univerjs/sheets-filter-ui'),require('@univerjs/sheets-formula'),require('@univerjs/sheets-formula-ui'),require('@univerjs/sheets-hyper-link'),require('@univerjs/sheets-hyper-link-ui'),require('@univerjs/sheets-numfmt'),require('@univerjs/sheets-ui')):typeof define==_0x2932a3(0x2fe)&&define[_0x2932a3(0x2d2)]?define([_0x2932a3(0x219),_0x2932a3(0x31e),_0x2932a3(0x2d6),'@univerjs-pro/collaboration-client','@univerjs/design',_0x2932a3(0x26e),'@univerjs/ui',_0x2932a3(0x287),_0x2932a3(0x240),_0x2932a3(0x2b5),_0x2932a3(0x302),'@univerjs-pro/sheets-chart','@univerjs-pro/sheets-chart-ui',_0x2932a3(0x1f9),_0x2932a3(0x23f),_0x2932a3(0x272),'@univerjs/data-validation',_0x2932a3(0x21c),'@univerjs/docs-ui',_0x2932a3(0x28a),_0x2932a3(0x257),'@univerjs/engine-formula',_0x2932a3(0x243),'@univerjs/network','@univerjs/rpc',_0x2932a3(0x29d),_0x2932a3(0x267),_0x2932a3(0x23a),'@univerjs/sheets-data-validation-ui','@univerjs/sheets-drawing','@univerjs/sheets-drawing-ui',_0x2932a3(0x205),_0x2932a3(0x30a),_0x2932a3(0x2c7),_0x2932a3(0x21f),'@univerjs/sheets-hyper-link',_0x2932a3(0x271),_0x2932a3(0x22a),_0x2932a3(0x216)],_0x2a4640):(_0x1b72ce=typeof globalThis<'u'?globalThis:_0x1b72ce||self,_0x2a4640(_0x1b72ce[_0x2932a3(0x291)]={},_0x1b72ce['UniverCore'],_0x1b72ce[_0x2932a3(0x218)],_0x1b72ce[_0x2932a3(0x23d)],_0x1b72ce[_0x2932a3(0x2d3)],_0x1b72ce[_0x2932a3(0x237)],_0x1b72ce['UniverUi'],_0x1b72ce[_0x2932a3(0x287)],_0x1b72ce[_0x2932a3(0x25c)],_0x1b72ce[_0x2932a3(0x1ee)],_0x1b72ce[_0x2932a3(0x2e0)],_0x1b72ce[_0x2932a3(0x1eb)],_0x1b72ce[_0x2932a3(0x2a9)],_0x1b72ce[_0x2932a3(0x213)],_0x1b72ce['UniverProSheetsSparkline'],_0x1b72ce['UniverProSheetsSparklineUi'],_0x1b72ce[_0x2932a3(0x285)],_0x1b72ce[_0x2932a3(0x2b3)],_0x1b72ce[_0x2932a3(0x2fb)],_0x1b72ce[_0x2932a3(0x2cf)],_0x1b72ce['UniverDrawingUi'],_0x1b72ce[_0x2932a3(0x313)],_0x1b72ce[_0x2932a3(0x200)],_0x1b72ce[_0x2932a3(0x29a)],_0x1b72ce[_0x2932a3(0x31a)],_0x1b72ce[_0x2932a3(0x2b6)],_0x1b72ce['UniverSheetsConditionalFormattingUi'],_0x1b72ce[_0x2932a3(0x221)],_0x1b72ce[_0x2932a3(0x2ab)],_0x1b72ce[_0x2932a3(0x1ef)],_0x1b72ce[_0x2932a3(0x212)],_0x1b72ce[_0x2932a3(0x248)],_0x1b72ce['UniverSheetsFilterUi'],_0x1b72ce['UniverSheetsFormula'],_0x1b72ce[_0x2932a3(0x311)],_0x1b72ce[_0x2932a3(0x2f9)],_0x1b72ce[_0x2932a3(0x204)],_0x1b72ce[_0x2932a3(0x264)],_0x1b72ce[_0x2932a3(0x1fa)]));}(this,function(_0x21380a,_0x384d3e,_0x501e7b,_0x18a564,_0x521395,_0x49cbeb,_0x16e6bf,_0x26f985,_0x1146db,_0x161ac3,_0x9e661b,_0xcb9e1c,_0x21bcb7,_0x582b09,_0x63321d,_0x3bcecb,_0xc3b9ca,_0x480136,_0x32bb2c,_0x1ec27d,_0x47ae4e,_0x2759bd,_0x3dbae9,_0x427b4a,_0x1d9b2d,_0x4954e3,_0x2cf31c,_0x563918,_0x1d7216,_0x391c75,_0x46086c,_0x46f07f,_0x5559d6,_0x5851c5,_0x46c0cf,_0x2cc829,_0x483c3f,_0x3ffb32,_0x3d88e9){'use strict';const _0x40cd04=_0x45d2;var _0x5088b3=Object[_0x40cd04(0x225)],_0x17832e=(_0x4b1393,_0x267683,_0x37ca23)=>_0x267683 in _0x4b1393?_0x5088b3(_0x4b1393,_0x267683,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37ca23}):_0x4b1393[_0x267683]=_0x37ca23,_0x78dce3=(_0x5d2203,_0x2b1381,_0x3171bc)=>_0x17832e(_0x5d2203,typeof _0x2b1381!=_0x40cd04(0x308)?_0x2b1381+'':_0x2b1381,_0x3171bc),_0x2c1bc1;const _0x3327d5='edit-history-loader.config',_0x3ae22b={};function _0x5cb66e({ref:_0x2d4824,..._0x2f3dcc}){const _0x534d89=_0x40cd04,{icon:_0x116915,id:_0x1dd65c,className:_0x59141e,extend:_0x921dc9,..._0x2de8a1}=_0x2f3dcc,_0x579918=(_0x534d89(0x2bc)+_0x1dd65c+'\x20'+(_0x59141e||''))[_0x534d89(0x2de)](),_0x427a9f=_0x49cbeb[_0x534d89(0x2f4)]('_'+_0x4cb851());return _0x35b289(_0x116915,''+_0x1dd65c,{'defIds':_0x116915[_0x534d89(0x262)],'idSuffix':_0x427a9f['current']},{'ref':_0x2d4824,'className':_0x579918,..._0x2de8a1},_0x921dc9);}function _0x35b289(_0x5a851b,_0xced7b,_0x3dd218,_0x4c8064,_0x5a63e1){const _0x761642=_0x40cd04;return _0x49cbeb[_0x761642(0x24b)](_0x5a851b[_0x761642(0x2df)],{'key':_0xced7b,..._0x1076f7(_0x5a851b,_0x3dd218,_0x5a63e1),..._0x4c8064},(_0x4e98e4(_0x5a851b,_0x3dd218)[_0x761642(0x29c)]||[])['map']((_0x237ba9,_0x5a5d90)=>_0x35b289(_0x237ba9,_0xced7b+'-'+_0x5a851b[_0x761642(0x2df)]+'-'+_0x5a5d90,_0x3dd218,void 0x0,_0x5a63e1)));}function _0x1076f7(_0x350497,_0x4ca67e,_0x2cbe4e){const _0x5cc21e=_0x40cd04,_0x212263={..._0x350497[_0x5cc21e(0x281)]};_0x2cbe4e!=null&&_0x2cbe4e[_0x5cc21e(0x22f)]&&_0x212263[_0x5cc21e(0x21a)]===_0x5cc21e(0x22f)&&(_0x212263[_0x5cc21e(0x21a)]=_0x2cbe4e[_0x5cc21e(0x22f)]),_0x350497[_0x5cc21e(0x2df)]==='mask'&&_0x212263['id']&&(_0x212263['id']=_0x212263['id']+_0x4ca67e[_0x5cc21e(0x2b4)]),Object[_0x5cc21e(0x2d8)](_0x212263)[_0x5cc21e(0x30d)](([_0x4c8adc,_0x3c099c])=>{const _0x16582b=_0x5cc21e;_0x4c8adc===_0x16582b(0x279)&&typeof _0x3c099c=='string'&&(_0x212263[_0x4c8adc]=_0x3c099c[_0x16582b(0x27b)](/url\(#(.*)\)/,_0x16582b(0x2b8)+_0x4ca67e[_0x16582b(0x2b4)]+')'));});const {defIds:_0x29330e}=_0x4ca67e;return!_0x29330e||_0x29330e[_0x5cc21e(0x27a)]===0x0||(_0x350497['tag']===_0x5cc21e(0x20e)&&_0x212263[_0x5cc21e(0x214)]&&(_0x212263[_0x5cc21e(0x214)]=_0x212263[_0x5cc21e(0x214)]+_0x4ca67e[_0x5cc21e(0x2b4)]),Object[_0x5cc21e(0x2d8)](_0x212263)[_0x5cc21e(0x30d)](([_0x419746,_0x279d77])=>{const _0x2c1099=_0x5cc21e;typeof _0x279d77==_0x2c1099(0x280)&&(_0x212263[_0x419746]=_0x279d77['replace'](/url\(#(.*)\)/,_0x2c1099(0x2b8)+_0x4ca67e[_0x2c1099(0x2b4)]+')'));})),_0x212263;}function _0x4e98e4(_0x5166f7,_0x2001d1){const _0x46d13c=_0x40cd04;var _0x19306b;const {defIds:_0x34960b}=_0x2001d1;return!_0x34960b||_0x34960b[_0x46d13c(0x27a)]===0x0?_0x5166f7:_0x5166f7[_0x46d13c(0x2df)]===_0x46d13c(0x2ad)&&((_0x19306b=_0x5166f7['children'])!=null&&_0x19306b[_0x46d13c(0x27a)])?{..._0x5166f7,'children':_0x5166f7['children'][_0x46d13c(0x231)](_0x2a8e3e=>typeof _0x2a8e3e[_0x46d13c(0x281)]['id']==_0x46d13c(0x280)&&_0x34960b&&_0x34960b[_0x46d13c(0x31c)](_0x2a8e3e[_0x46d13c(0x281)]['id'])?{..._0x2a8e3e,'attrs':{..._0x2a8e3e[_0x46d13c(0x281)],'id':_0x2a8e3e[_0x46d13c(0x281)]['id']+_0x2001d1[_0x46d13c(0x2b4)]}}:_0x2a8e3e)}:_0x5166f7;}function _0x4cb851(){const _0x152610=_0x40cd04;return Math[_0x152610(0x258)]()[_0x152610(0x277)](0x24)[_0x152610(0x31b)](0x2,0x8);}_0x5cb66e[_0x40cd04(0x2a8)]=_0x40cd04(0x229);const _0x130d17={'tag':_0x40cd04(0x241),'attrs':{'xmlns':_0x40cd04(0x24e),'fill':_0x40cd04(0x2c5),'viewBox':'0\x200\x2016\x2016','width':_0x40cd04(0x30b),'height':_0x40cd04(0x30b)},'children':[{'tag':'g','attrs':{'fill':_0x40cd04(0x2ca),'clipPath':_0x40cd04(0x1f6)},'children':[{'tag':_0x40cd04(0x2be),'attrs':{'d':_0x40cd04(0x266)}},{'tag':'path','attrs':{'d':_0x40cd04(0x28b)}}]},{'tag':_0x40cd04(0x2ad),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x40cd04(0x304)},'children':[{'tag':'path','attrs':{'fill':_0x40cd04(0x28e),'d':_0x40cd04(0x306)}}]}]}],'defIds':['history-icon_clip0_907_281']},_0x35f11a=_0x49cbeb[_0x40cd04(0x2e9)](function(_0x3a003e,_0x54f60d){const _0x18b7d1=_0x40cd04;return _0x49cbeb[_0x18b7d1(0x24b)](_0x5cb66e,Object[_0x18b7d1(0x317)]({},_0x3a003e,{'id':_0x18b7d1(0x2e2),'ref':_0x54f60d,'icon':_0x130d17}));});_0x35f11a[_0x40cd04(0x2a8)]='HistoryIcon';var _0x44d81d=Object[_0x40cd04(0x256)],_0xf3a1f0=(_0xe62ec9,_0x322717,_0x278c95,_0x5f7c26)=>{const _0xb47720=_0x40cd04;for(var _0x1d1635=_0x5f7c26>0x1?void 0x0:_0x5f7c26?_0x44d81d(_0x322717,_0x278c95):_0x322717,_0x206a00=_0xe62ec9[_0xb47720(0x27a)]-0x1,_0xfd803a;_0x206a00>=0x0;_0x206a00--)(_0xfd803a=_0xe62ec9[_0x206a00])&&(_0x1d1635=_0xfd803a(_0x1d1635)||_0x1d1635);return _0x1d1635;},_0x5e1f03=(_0x1034a2,_0x97e1c9)=>(_0x4a7d41,_0x447d98)=>_0x97e1c9(_0x4a7d41,_0x447d98,_0x1034a2);const _0x558122=_0x40cd04(0x286),_0x4232ea=_0x40cd04(0x263),_0x42b7c5=_0x40cd04(0x1f3);_0x21380a[_0x40cd04(0x25a)]=class extends _0x384d3e['Disposable']{constructor(_0x439918,_0x3160c4,_0x50270b,_0x3a6478,_0x2775ea,_0x510b0d,_0x3b7955,_0x32a622,_0x1bf614,_0x256c9d){const _0xa9424f=_0x40cd04;super(),_0x78dce3(this,_0xa9424f(0x2ac),new _0x26f985[(_0xa9424f(0x1fd))](null)),_0x78dce3(this,'historyUniver$',this[_0xa9424f(0x2ac)][_0xa9424f(0x27d)]()),_0x78dce3(this,_0xa9424f(0x20d),new _0x384d3e['DisposableCollection']()),_0x78dce3(this,'_pluginMap',new Map()),(this[_0xa9424f(0x28f)]=_0x439918,this[_0xa9424f(0x253)]=_0x3160c4,this[_0xa9424f(0x283)]=_0x50270b,this[_0xa9424f(0x1f8)]=_0x3a6478,this[_0xa9424f(0x31d)]=_0x2775ea,this[_0xa9424f(0x21b)]=_0x510b0d,this[_0xa9424f(0x282)]=_0x3b7955,this[_0xa9424f(0x28c)]=_0x32a622,this[_0xa9424f(0x303)]=_0x1bf614,this[_0xa9424f(0x298)]=_0x256c9d,this[_0xa9424f(0x23b)]());}get[_0x40cd04(0x1f5)](){const _0x27469d=_0x40cd04;return this[_0x27469d(0x2ac)][_0x27469d(0x2b0)];}['_init'](){const _0x564ec3=_0x40cd04;this[_0x564ec3(0x2a1)](),this['_initPlugins']();}['_initContainer'](){const _0x47db63=_0x40cd04;var _0x415214;const _0x1850cb=(_0x415214=this['_configService'][_0x47db63(0x2a7)](_0x4232ea))!=null?_0x415214:_0x558122,_0x3472bf=document[_0x47db63(0x319)](_0x1850cb);if(!_0x3472bf)return;const _0x5a6822=document['createElement'](_0x47db63(0x224));_0x5a6822['id']=_0x42b7c5,_0x5a6822[_0x47db63(0x249)][_0x47db63(0x265)]=_0x47db63(0x294),_0x5a6822['style']['position']=_0x47db63(0x26d),_0x5a6822[_0x47db63(0x2c9)]['top']='0',_0x5a6822[_0x47db63(0x2c9)][_0x47db63(0x24f)]='0',_0x5a6822[_0x47db63(0x2c9)][_0x47db63(0x2dd)]=_0x47db63(0x1f4),_0x5a6822[_0x47db63(0x2c9)][_0x47db63(0x1fb)]=_0x47db63(0x1f4),_0x5a6822[_0x47db63(0x2c9)][_0x47db63(0x2a6)]=_0x47db63(0x254),_0x5a6822['style'][_0x47db63(0x20c)]=_0x47db63(0x2c5),_0x3472bf[_0x47db63(0x2c4)](_0x5a6822);}[_0x40cd04(0x23e)](){const _0x3b028a=_0x40cd04;var _0x377823,_0xa4fb58,_0x3a1f41,_0x5cea64;[[_0x3dbae9[_0x3b028a(0x1f1)]],[_0x16e6bf['UniverUIPlugin'],{'container':_0x42b7c5,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x16e6bf[_0x3b028a(0x2f2)],null]]}],[_0x427b4a['UniverNetworkPlugin']],[_0x1ec27d[_0x3b028a(0x236)],{'override':[[_0x1ec27d[_0x3b028a(0x2c2)],null]]}],[_0x480136['UniverDocsPlugin'],{'hasScroll':!0x1}],[_0x32bb2c[_0x3b028a(0x2bb)]],[_0x3ffb32[_0x3b028a(0x28d)]],[_0x1146db[_0x3b028a(0x20b)],{'notExecuteFormula':!0x0}],[_0x3d88e9[_0x3b028a(0x209)]],[_0x5851c5[_0x3b028a(0x24a)]],[_0x46c0cf[_0x3b028a(0x2a2)]],[_0x501e7b['UniverCollaborationPlugin']],[_0x46f07f[_0x3b028a(0x23c)]],[_0x5559d6['UniverSheetsFilterUIPlugin']],[_0x4954e3[_0x3b028a(0x2cd)]],[_0x2cf31c[_0x3b028a(0x25d)]],[_0x2cc829[_0x3b028a(0x1fc)]],[_0x483c3f['UniverSheetsHyperLinkUIPlugin']],[_0xc3b9ca[_0x3b028a(0x2bf)]],[_0x563918[_0x3b028a(0x27c)]],[_0x1d7216[_0x3b028a(0x288)]],[_0x2759bd['UniverFormulaEnginePlugin'],{'notExecuteFormula':!0x0}],[_0x1d9b2d['UniverRPCMainThreadPlugin'],{'workerURL':(_0xa4fb58=(_0x377823=this[_0x3b028a(0x283)]['getConfig'](_0x1d9b2d[_0x3b028a(0x255)]))==null?void 0x0:_0x377823[_0x3b028a(0x22e)])!=null?_0xa4fb58:_0x3b028a(0x2a0)}],[_0x47ae4e[_0x3b028a(0x242)]],[_0x391c75[_0x3b028a(0x26f)]],[_0x46086c[_0x3b028a(0x2ea)]],[_0x63321d['UniverSheetSparklinePlugin']],[_0x3bcecb[_0x3b028a(0x251)]],[_0xcb9e1c[_0x3b028a(0x26b)]],[_0x21bcb7[_0x3b028a(0x245)]],[_0x582b09[_0x3b028a(0x2d1)],{'notExecuteFormula':!0x0}],[_0x161ac3[_0x3b028a(0x2f8)],{'historyListServerUrl':(_0x3a1f41=this['_configService']['getConfig'](_0x3327d5))==null?void 0x0:_0x3a1f41[_0x3b028a(0x2d5)],'historyPanelComponentKey':(_0x5cea64=this[_0x3b028a(0x283)]['getConfig'](_0x3327d5))==null?void 0x0:_0x5cea64[_0x3b028a(0x268)]}]]['forEach'](([_0x485c16,_0x400366])=>this[_0x3b028a(0x2fc)](_0x485c16,_0x400366));}[_0x40cd04(0x292)](){const _0xb22eb2=_0x40cd04;super['dispose'](),this['unMountHistoryContent'](),this[_0xb22eb2(0x296)][_0xb22eb2(0x2ae)]();}[_0x40cd04(0x2fc)](_0x4f1ae4,_0x2e59bc,_0x1c95b3){const _0x2ef517=_0x40cd04;if(this[_0x2ef517(0x296)][_0x2ef517(0x2e1)](_0x4f1ae4['pluginName'])&&!_0x1c95b3)throw new Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x4f1ae4[_0x2ef517(0x284)]+_0x2ef517(0x314));this[_0x2ef517(0x296)][_0x2ef517(0x2ce)](_0x4f1ae4[_0x2ef517(0x284)],[_0x4f1ae4,_0x2e59bc]);}[_0x40cd04(0x222)](){const _0x34ca4b=_0x40cd04;return Array['from'](this[_0x34ca4b(0x296)]['values']());}[_0x40cd04(0x270)](_0xf9cbd9){const _0x244472=_0x40cd04,_0x1f0cc2=document['getElementById'](_0x42b7c5);_0x1f0cc2&&(_0x1f0cc2['style']['display']=_0x244472(0x2ec),this['_initUniver'](_0xf9cbd9,_0x42b7c5));}[_0x40cd04(0x2af)](){const _0x3794c5=_0x40cd04;var _0xd91f70;this[_0x3794c5(0x20d)][_0x3794c5(0x292)](),(_0xd91f70=this['historyUniver'])==null||_0xd91f70['dispose'](),this[_0x3794c5(0x2ac)]['next'](null);const _0x5288f8=document[_0x3794c5(0x319)](_0x42b7c5);_0x5288f8&&(_0x5288f8[_0x3794c5(0x2c9)][_0x3794c5(0x20c)]=_0x3794c5(0x2c5));}['_initUniver'](_0x398b4d,_0x46f4b2){const _0x5d5bde=_0x40cd04;if(this[_0x5d5bde(0x1f5)])return;const _0xa38571=new _0x384d3e[(_0x5d5bde(0x2fa))]({'locales':{[this[_0x5d5bde(0x28f)]['getCurrentLocale']()]:this['_localeService'][_0x5d5bde(0x274)]()},'override':[[_0x384d3e[_0x5d5bde(0x24c)],{'useClass':_0x18a564['AuthzIoHttpService']}]]}),_0x214593=_0xa38571[_0x5d5bde(0x2da)]();this[_0x5d5bde(0x203)](this[_0x5d5bde(0x298)][_0x5d5bde(0x2f5)][_0x5d5bde(0x233)](_0x3209a0=>{const _0x49ddbf=_0x5d5bde;_0x214593[_0x49ddbf(0x25b)](_0x384d3e[_0x49ddbf(0x2a5)])[_0x49ddbf(0x217)](_0x3209a0);})),this['disposeWithMe'](this[_0x5d5bde(0x298)][_0x5d5bde(0x289)][_0x5d5bde(0x233)](_0x4c9b89=>{const _0x34471e=_0x5d5bde;_0x214593[_0x34471e(0x25b)](_0x384d3e[_0x34471e(0x2a5)])[_0x34471e(0x30f)](_0x4c9b89);})),_0x214593[_0x5d5bde(0x25b)](_0x384d3e[_0x5d5bde(0x1ed)])['setLocale'](this[_0x5d5bde(0x28f)][_0x5d5bde(0x215)]()),_0x214593[_0x5d5bde(0x25b)](_0x384d3e[_0x5d5bde(0x2eb)])[_0x5d5bde(0x230)](_0x18a564['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY'],this['_configService'][_0x5d5bde(0x2a7)](_0x18a564[_0x5d5bde(0x1f7)]));const _0x5c10f0=this['_configService'][_0x5d5bde(0x2a7)](_0x9e661b[_0x5d5bde(0x2cb)]);_0x5c10f0&&_0xa38571[_0x5d5bde(0x2fc)](_0x9e661b[_0x5d5bde(0x2ba)],{'license':_0x5c10f0['ls']}),this['_pluginMap'][_0x5d5bde(0x30d)](([_0x25113c,_0x28ad9c])=>{const _0x27303d=_0x5d5bde;_0xa38571[_0x27303d(0x2fc)](_0x25113c,_0x28ad9c);}),_0x214593['invoke'](_0x19d103=>{const _0x281771=_0x5d5bde;this[_0x281771(0x2c3)](_0x19d103,_0x398b4d);}),this['_historyUniver$'][_0x5d5bde(0x310)](_0xa38571);const _0x241929=_0x214593['get'](_0x161ac3[_0x5d5bde(0x22c)]),_0x99a75b=this[_0x5d5bde(0x247)](_0x398b4d);_0x241929[_0x5d5bde(0x301)](_0x398b4d,_0x46f4b2,_0x99a75b);}[_0x40cd04(0x2c3)](_0x511d02,_0x3f9380){const _0x39bf6f=_0x40cd04,_0x4ad7ee=_0x511d02[_0x39bf6f(0x25b)](_0x161ac3['HistoryManagerService']);this[_0x39bf6f(0x20d)][_0x39bf6f(0x232)](_0x4ad7ee[_0x39bf6f(0x2cc)][_0x39bf6f(0x233)](_0x40e466=>{const _0xfacfee=_0x39bf6f;switch(_0x40e466){case _0x161ac3['HistoryModeStatus'][_0xfacfee(0x1f2)]:this[_0xfacfee(0x28c)][_0xfacfee(0x2f3)](),this[_0xfacfee(0x303)][_0xfacfee(0x25f)]();break;case _0x161ac3[_0xfacfee(0x2fd)][_0xfacfee(0x318)]:this[_0xfacfee(0x1f8)][_0xfacfee(0x1fe)](_0x3e4a1e['id']),this['unMountHistoryContent']();break;case _0x161ac3[_0xfacfee(0x2fd)][_0xfacfee(0x1ff)]:this['unMountHistoryContent'](),this[_0xfacfee(0x31d)][_0xfacfee(0x250)]({'content':this[_0xfacfee(0x28f)]['t'](_0xfacfee(0x2c6)),'type':_0x521395[_0xfacfee(0x228)]['Error'],'duration':0xbb8});break;}})),this['_disposableCollection'][_0x39bf6f(0x232)](_0x4ad7ee['revertRevision$'][_0x39bf6f(0x233)](async _0x4a4e69=>{const _0x3d801e=_0x39bf6f;_0x4a4e69&&this[_0x3d801e(0x1f8)][_0x3d801e(0x1fe)](_0x501e7b['RevertRevisionMutation']['id'],{'unitId':_0x3f9380,'revision':_0x4a4e69});}));}[_0x40cd04(0x247)](_0x430a3a){const _0x4628bc=_0x40cd04,_0x10660b=this[_0x4628bc(0x253)][_0x4628bc(0x273)](_0x430a3a)[_0x4628bc(0x1f0)]()[_0x4628bc(0x231)](_0x46552f=>_0x46552f[_0x4628bc(0x26c)]()),_0x1d9a85=new _0x1146db[(_0x4628bc(0x24d))](_0x430a3a)['id'],_0x414b6d=_0x10660b[_0x4628bc(0x231)](_0x3e6d1a=>new _0x1146db[(_0x4628bc(0x22d))](_0x430a3a,_0x3e6d1a)['id']),_0x2717b7=_0x10660b[_0x4628bc(0x231)](_0x5a68f9=>this[_0x4628bc(0x282)][_0x4628bc(0x295)](_0x430a3a,_0x5a68f9)['map'](_0x4972c6=>new _0x1146db[(_0x4628bc(0x2e3))](_0x430a3a,_0x5a68f9,_0x4972c6[_0x4628bc(0x309)])['id']))[_0x4628bc(0x290)](),_0x24ac30=new _0x1146db[(_0x4628bc(0x2e8))](_0x430a3a)['id'];return this['_permissionService'][_0x4628bc(0x227)]([_0x1d9a85,..._0x414b6d,..._0x2717b7,_0x24ac30])['every'](_0x299daa=>!!_0x299daa[_0x4628bc(0x2b0)]);}},_0x21380a[_0x40cd04(0x25a)]=_0xf3a1f0([_0x5e1f03(0x0,_0x384d3e[_0x40cd04(0x276)](_0x384d3e['LocaleService'])),_0x5e1f03(0x1,_0x384d3e[_0x40cd04(0x202)]),_0x5e1f03(0x2,_0x384d3e[_0x40cd04(0x2eb)]),_0x5e1f03(0x3,_0x384d3e[_0x40cd04(0x2a4)]),_0x5e1f03(0x4,_0x16e6bf['IMessageService']),_0x5e1f03(0x5,_0x384d3e[_0x40cd04(0x2b7)]),_0x5e1f03(0x6,_0x384d3e[_0x40cd04(0x276)](_0x1146db['RangeProtectionRuleModel'])),_0x5e1f03(0x7,_0x384d3e['Inject'](_0x16e6bf['IDialogService'])),_0x5e1f03(0x8,_0x384d3e[_0x40cd04(0x276)](_0x16e6bf[_0x40cd04(0x208)])),_0x5e1f03(0x9,_0x384d3e[_0x40cd04(0x276)](_0x384d3e[_0x40cd04(0x2a5)]))],_0x21380a['HistoryLoaderService']);const _0x11825c={'id':'univer.operation.toggle-edit-history','type':_0x384d3e[_0x40cd04(0x26a)]['OPERATION'],'handler':_0x4640f5=>{const _0x39cea7=_0x40cd04,_0x5bac16=_0x4640f5[_0x39cea7(0x25b)](_0x21380a['HistoryLoaderService']),_0x4307a4=_0x4640f5[_0x39cea7(0x25b)](_0x384d3e[_0x39cea7(0x202)]),{unitId:_0x321512}=_0x1146db['getSheetCommandTarget'](_0x4307a4)||{};return _0x321512?(_0x5bac16['mountHistoryContent'](_0x321512),!0x0):!0x1;}},_0x3e4a1e={'id':_0x40cd04(0x2d9),'type':_0x384d3e['CommandType'][_0x40cd04(0x2b9)],'handler':()=>!0x0};function _0x5c4f0b(_0x1da7e3){const _0x599d06=_0x40cd04;return{'id':_0x11825c['id'],'type':_0x16e6bf[_0x599d06(0x223)][_0x599d06(0x2db)],'icon':_0x599d06(0x20f),'tooltip':_0x599d06(0x2f1),'hidden$':_0x16e6bf[_0x599d06(0x315)](_0x1da7e3,_0x384d3e['UniverInstanceType'][_0x599d06(0x2b2)]),'disabled$':_0x3d88e9[_0x599d06(0x211)](_0x1da7e3,{'workbookTypes':[_0x1146db['WorkbookEditablePermission'],_0x1146db['WorkbookViewHistoryPermission']],'worksheetTypes':[],'rangeTypes':[]})};}const _0x2ef417={[_0x16e6bf[_0x40cd04(0x30c)][_0x40cd04(0x261)]]:{[_0x11825c['id']]:{'order':0.2,'menuItemFactory':_0x5c4f0b}}};var _0xb88e29=Object['getOwnPropertyDescriptor'],_0x4b186e=(_0x153f8d,_0x5e4ab5,_0x5a2dc5,_0x1c8c47)=>{const _0x201e54=_0x40cd04;for(var _0x4961d7=_0x1c8c47>0x1?void 0x0:_0x1c8c47?_0xb88e29(_0x5e4ab5,_0x5a2dc5):_0x5e4ab5,_0x4669d9=_0x153f8d[_0x201e54(0x27a)]-0x1,_0x2bd939;_0x4669d9>=0x0;_0x4669d9--)(_0x2bd939=_0x153f8d[_0x4669d9])&&(_0x4961d7=_0x2bd939(_0x4961d7)||_0x4961d7);return _0x4961d7;},_0x55b883=(_0x2f461d,_0x1f6286)=>(_0x10b56b,_0x4fda7b)=>_0x1f6286(_0x10b56b,_0x4fda7b,_0x2f461d);let _0x34edaf=class extends _0x384d3e['RxDisposable']{constructor(_0x3516fa,_0xb33120,_0x59d2c3,_0x4a1d56,_0x4fd291,_0x161a3e,_0x2f1710,_0x2432e5){const _0x2ecf03=_0x40cd04;super(),_0x78dce3(this,'_revertErrorTimer',null),(this[_0x2ecf03(0x1f8)]=_0x3516fa,this[_0x2ecf03(0x2c1)]=_0xb33120,this[_0x2ecf03(0x30e)]=_0x59d2c3,this['_historyManagerService']=_0x4a1d56,this[_0x2ecf03(0x28f)]=_0x4fd291,this[_0x2ecf03(0x31d)]=_0x161a3e,this[_0x2ecf03(0x299)]=_0x2f1710,this[_0x2ecf03(0x21e)]=_0x2432e5,this[_0x2ecf03(0x23b)]());}[_0x40cd04(0x23b)](){const _0x19e1c3=_0x40cd04;[_0x11825c,_0x3e4a1e]['forEach'](_0x151109=>this[_0x19e1c3(0x203)](_0x384d3e[_0x19e1c3(0x300)](this['_commandService'][_0x19e1c3(0x307)](_0x151109)))),this[_0x19e1c3(0x203)](this[_0x19e1c3(0x30e)][_0x19e1c3(0x201)]('HistoryIcon',_0x35f11a)),this[_0x19e1c3(0x2c1)][_0x19e1c3(0x312)](_0x2ef417),this[_0x19e1c3(0x203)](this[_0x19e1c3(0x1f8)]['onCommandExecuted'](_0x2a1b96=>{const _0xe939b8=_0x19e1c3;if(_0x2a1b96['id']===_0x501e7b[_0xe939b8(0x2c8)]['id']){this[_0xe939b8(0x31d)][_0xe939b8(0x250)]({'content':this['_localeService']['t'](_0xe939b8(0x2f0)),'type':_0x521395[_0xe939b8(0x228)][_0xe939b8(0x260)],'duration':0x1388});const {unitId:_0x4c7676}=_0x2a1b96[_0xe939b8(0x20a)],_0x4904c1=this[_0xe939b8(0x299)][_0xe939b8(0x246)](_0x4c7676),_0x269305=_0x26f985[_0xe939b8(0x278)]([_0x4904c1['session'][_0xe939b8(0x269)],_0x4904c1['state$']])['subscribe'](async([_0x202dcc,_0x1b96b7])=>{const _0x4143bd=_0xe939b8;var _0x2a190d;_0x202dcc[_0x4143bd(0x220)]===_0x501e7b[_0x4143bd(0x2ed)][_0x4143bd(0x2e4)]&&(_0x1b96b7==null?void 0x0:_0x1b96b7[_0x4143bd(0x275)])===_0x18a564[_0x4143bd(0x2f7)]['SYNCED']&&_0x202dcc[_0x4143bd(0x2d7)][_0x4143bd(0x226)]['some'](_0x2b5dcd=>_0x2b5dcd['id']===_0x501e7b['RevertRevisionMutation']['id'])&&(this[_0x4143bd(0x21d)]['unMountHistoryContent'](),_0x269305[_0x4143bd(0x2ff)](),this[_0x4143bd(0x29b)]&&clearTimeout(this['_revertErrorTimer']),await((_0x2a190d=this[_0x4143bd(0x21e)])==null?void 0x0:_0x2a190d[_0x4143bd(0x244)]()),setTimeout(()=>window[_0x4143bd(0x2e7)][_0x4143bd(0x234)]()));});this['_revertErrorTimer']=setTimeout(()=>{const _0x4ff719=_0xe939b8;_0x269305[_0x4ff719(0x2ff)](),this[_0x4ff719(0x31d)][_0x4ff719(0x250)]({'content':this['_localeService']['t'](_0x4ff719(0x2aa)),'type':_0x521395[_0x4ff719(0x228)]['Error'],'duration':0xbb8});},0x1388);}}));}};_0x34edaf=_0x4b186e([_0x55b883(0x0,_0x384d3e[_0x40cd04(0x2a4)]),_0x55b883(0x1,_0x16e6bf[_0x40cd04(0x2f6)]),_0x55b883(0x2,_0x384d3e[_0x40cd04(0x276)](_0x16e6bf[_0x40cd04(0x305)])),_0x55b883(0x3,_0x384d3e[_0x40cd04(0x276)](_0x21380a[_0x40cd04(0x25a)])),_0x55b883(0x4,_0x384d3e['Inject'](_0x384d3e[_0x40cd04(0x1ed)])),_0x55b883(0x5,_0x16e6bf['IMessageService']),_0x55b883(0x6,_0x384d3e[_0x40cd04(0x276)](_0x18a564[_0x40cd04(0x2e6)])),_0x55b883(0x7,_0x18a564[_0x40cd04(0x27f)])],_0x34edaf);var _0x2e284d=Object['getOwnPropertyDescriptor'],_0x305298=(_0x32f386,_0x55fc2b,_0x2dbe3f,_0x2e5b2a)=>{for(var _0x56024d=_0x2e5b2a>0x1?void 0x0:_0x2e5b2a?_0x2e284d(_0x55fc2b,_0x2dbe3f):_0x55fc2b,_0x5c9c70=_0x32f386['length']-0x1,_0x5339c6;_0x5c9c70>=0x0;_0x5c9c70--)(_0x5339c6=_0x32f386[_0x5c9c70])&&(_0x56024d=_0x5339c6(_0x56024d)||_0x56024d);return _0x56024d;},_0x2d2628=(_0x523169,_0xb3027c)=>(_0x4be4fe,_0x564c07)=>_0xb3027c(_0x4be4fe,_0x564c07,_0x523169);const _0x107077=_0x40cd04(0x252);_0x21380a['UniverEditHistoryLoaderPlugin']=(_0x2c1bc1=class extends _0x384d3e[_0x40cd04(0x29f)]{constructor(_0x68b247=_0x3ae22b,_0x7c8b80,_0xaa8643){const _0x5e211e=_0x40cd04;super(),this[_0x5e211e(0x2dc)]=_0x68b247,this[_0x5e211e(0x2ee)]=_0x7c8b80,this[_0x5e211e(0x283)]=_0xaa8643;const {menu:_0x6294d2,..._0x248cb2}=_0x384d3e['merge']({},_0x3ae22b,this[_0x5e211e(0x2dc)]);_0x6294d2&&this[_0x5e211e(0x283)]['setConfig'](_0x5e211e(0x2bd),_0x6294d2,{'merge':!0x0}),this[_0x5e211e(0x283)][_0x5e211e(0x230)](_0x3327d5,_0x248cb2),this[_0x5e211e(0x2dc)][_0x5e211e(0x2d4)]&&this[_0x5e211e(0x283)]['setConfig'](_0x4232ea,this[_0x5e211e(0x2dc)]['univerContainerId']);}[_0x40cd04(0x235)](){const _0x4de89e=_0x40cd04;[[_0x21380a[_0x4de89e(0x25a)]],[_0x34edaf]][_0x4de89e(0x30d)](_0x5bd1a1=>this['_injector'][_0x4de89e(0x232)](_0x5bd1a1));}[_0x40cd04(0x2b1)](){const _0x3fb5f5=_0x40cd04;this[_0x3fb5f5(0x2ee)][_0x3fb5f5(0x25b)](_0x34edaf);}},_0x78dce3(_0x2c1bc1,_0x40cd04(0x25e),_0x384d3e[_0x40cd04(0x2c0)][_0x40cd04(0x2a3)]),_0x78dce3(_0x2c1bc1,_0x40cd04(0x284),_0x107077),_0x2c1bc1),_0x21380a[_0x40cd04(0x239)]=_0x305298([_0x2d2628(0x1,_0x384d3e[_0x40cd04(0x276)](_0x384d3e[_0x40cd04(0x29e)])),_0x2d2628(0x2,_0x384d3e[_0x40cd04(0x2eb)])],_0x21380a[_0x40cd04(0x239)]),_0x21380a['UNIVER_CONTAINER_ID_KEY']=_0x4232ea,_0x21380a[_0x40cd04(0x259)]=_0x42b7c5,Object[_0x40cd04(0x225)](_0x21380a,Symbol[_0x40cd04(0x27e)],{'value':_0x40cd04(0x1ec)});}));function _0x4639(){const _0x511ff9=['Inject','toString','combineLatest','mask','length','replace','UniverSheetsDataValidationPlugin','asObservable','toStringTag','ILocalCacheService','string','attrs','_selectionProtectionRuleModel','_configService','pluginName','UniverDataValidation','univer-container','rxjs','UniverSheetsDataValidationUIPlugin','currentTheme$','@univerjs/drawing','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','_dialogService','UniverSheetsNumfmtPlugin','white','_localeService','flat','UniverProEditHistoryLoader','dispose','135doWpPA','history-container','getSubunitRuleList','_pluginMap','171736zYxRfS','_themeService','_collaborationController','UniverNetwork','_revertErrorTimer','children','@univerjs/sheets-conditional-formatting','Injector','Plugin','./worker.js','_initContainer','UniverSheetsFormulaUIPlugin','UNIVER_UNKNOWN','ICommandService','ThemeService','zIndex','getConfig','displayName','UniverProSheetsChartUi','editHistory.panel.revertFailed','UniverSheetsDataValidationUi','_historyUniver$','defs','clear','unMountHistoryContent','value','onSteady','UNIVER_SHEET','UniverDocs','idSuffix','@univerjs-pro/edit-history-viewer','UniverSheetsConditionalFormatting','IPermissionService','url(#$1','OPERATION','UniverLicensePlugin','UniverDocsUIPlugin','univerjs-icon\x20univerjs-icon-','menu','path','UniverDataValidationPlugin','UniverInstanceType','_menuManagerService','IImageIoService','_initListener','appendChild','none','editHistory.panel.listFetchError','@univerjs/sheets-formula','RevertRevisionMutation','style','currentColor','LS_CONFIG_KEY','status$','UniverSheetsConditionalFormattingPlugin','set','UniverDrawing','45282EHllgU','UniverSheetsPivotTablePlugin','amd','UniverDesign','univerContainerId','historyListServerUrl','@univerjs-pro/collaboration','data','entries','univer.operation.exit-edit-history','__getInjector','BUTTON','_config','width','trim','tag','UniverProLicense','has','history-icon','RangeProtectionPermissionEditPoint','CHANGESET_ACK','165EZppCH','CollaborationController','location','WorkbookRecoverHistoryPermission','forwardRef','UniverSheetsDrawingUIPlugin','IConfigService','block','CollaborationEvent','_injector','1507748nWjAcr','editHistory.panel.reverting','editHistory.panel.title','IDialogService','closeAll','useRef','darkMode$','IMenuManagerService','CollaborationStatus','UniverEditHistoryViewerPlugin','UniverSheetsHyperLink','Univer','UniverDocsUi','registerPlugin','HistoryModeStatus','function','unsubscribe','toDisposable','triggerLoadVersions','@univerjs-pro/license','_sidebarService','history-icon_clip0_907_281','ComponentManager','M0\x200H16V16H0z','registerCommand','symbol','permissionId','@univerjs/sheets-filter-ui','1em','RibbonStartGroup','forEach','_componentManager','setTheme','next','UniverSheetsFormulaUi','mergeMenu','UniverEngineFormula','\x20has\x20been\x20registered.','getMenuHiddenObservable','586985RfpEOH','assign','Exited','getElementById','UniverRpc','substring','includes','_messageService','@univerjs/core','UniverProSheetsChart','Module','LocaleService','UniverProEditHistoryViewer','UniverSheetsDrawing','getSheets','UniverRenderEnginePlugin','Entered','univer-history-container','100%','historyUniver','url(#history-icon_clip0_907_281)','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_commandService','@univerjs-pro/sheets-pivot','UniverSheetsUi','height','UniverSheetsHyperLinkPlugin','BehaviorSubject','executeCommand','Error','UniverEngineRender','register','IUniverInstanceService','disposeWithMe','UniverSheetsHyperLinkUi','@univerjs/sheets-filter','6817420jhZkEK','object','ISidebarService','UniverSheetsUIPlugin','params','UniverSheetsPlugin','display','_disposableCollection','use','HistoryIcon','2970429SKIQJo','getCurrentRangeDisable$','UniverSheetsDrawingUi','UniverProSheetsPivot','xlink:href','getCurrentLocale','@univerjs/sheets-ui','setDarkMode','UniverProCollaboration','exports','fill','_permissionService','@univerjs/docs','_historyManagerService','_localCacheService','@univerjs/sheets-formula-ui','eventID','UniverSheetsDataValidation','getAllPlugins','MenuItemType','div','defineProperty','mutations','composePermission','MessageType','UniverIcon','@univerjs/sheets-numfmt','9tqFJsl','HistoryManagerService','WorksheetEditPermission','workerURL','colorChannel1','setConfig','map','add','subscribe','reload','onStarting','UniverDrawingPlugin','React','254682aqfHpu','UniverEditHistoryLoaderPlugin','@univerjs/sheets-data-validation','_init','UniverSheetsFilterPlugin','UniverProCollaborationClient','_initPlugins','@univerjs-pro/sheets-sparkline','@univerjs/sheets','svg','UniverDrawingUIPlugin','@univerjs/engine-render','exhaustSavingTask','UniverSheetsChartUIPlugin','getCollabEntity','_checkCanRevert','UniverSheetsFilter','dataset','UniverSheetsFormulaPlugin','createElement','IAuthzIoService','WorkbookEditablePermission','http://www.w3.org/2000/svg','left','show','UniverSheetSparklineUIPlugin','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','_univerInstanceService','1000','PLUGIN_CONFIG_KEY_MAIN_THREAD','getOwnPropertyDescriptor','@univerjs/drawing-ui','random','UNIVER_HISTORY_CONTAINER_ID','HistoryLoaderService','get','UniverSheets','UniverSheetsConditionalFormattingUIPlugin','type','close','Loading','OTHERS','defIds','UNIVER_CONTAINER_ID','UniverSheetsNumfmt','uComp','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','@univerjs/sheets-conditional-formatting-ui','historyPanelComponentKey','event$','CommandType','UniverSheetsChartPlugin','getSheetId','absolute','react','UniverSheetsDrawingPlugin','mountHistoryContent','@univerjs/sheets-hyper-link-ui','@univerjs-pro/sheets-sparkline-ui','getUnit','getLocales','status'];_0x4639=function(){return _0x511ff9;};return _0x4639();}
|
|
1
|
+
function _0x221e(){const _0x430d04=['[HistoryLoaderService]:\x20Plugin\x20','permissionId','@univerjs/sheets-data-validation','4398656tVbiCI','closeAll','@univerjs/sheets-numfmt','UniverDrawing','toDisposable','UniverFormulaEnginePlugin','editHistory.panel.reverting','event$','url(#history-icon_clip0_907_281)','UniverProSheetsChartUi','onSteady','UniverProLicense','length','M0\x200H16V16H0z','@univerjs-pro/sheets-chart','UNIVER_HISTORY_CONTAINER_ID','history-icon_clip0_907_281','Module','setConfig','_menuManagerService','ISidebarService','editHistory.panel.revertFailed','Plugin','left','_injector','UniverSheetsUi','1513000NMPQWE','@univerjs/docs-ui','UniverSheetSparklinePlugin','1em','HistoryManagerService','@univerjs-pro/edit-history-viewer','add','IPermissionService','includes','MenuItemType','univer.operation.exit-edit-history','style','symbol','UniverSheetsUIPlugin','get','has','revertRevision$','subscribe','_configService','asObservable','Exited','UniverSheetsFilterUIPlugin','225250qivESs','UniverSheetsPivotTablePlugin','from','OPERATION','attrs','BehaviorSubject','IConfigService','@univerjs-pro/sheets-pivot','@univerjs/sheets-drawing','idSuffix','set','Loading','react','UniverProCollaboration','eventID','CollaborationController','WorkbookViewHistoryPermission','UniverSheetsFilterUi','@univerjs/docs','unMountHistoryContent','absolute','getOwnPropertyDescriptor','state$','_selectionProtectionRuleModel','unsubscribe','toString','assign','PLUGIN_CONFIG_KEY_MAIN_THREAD','_permissionService','@univerjs/engine-formula','_historyUniver$','RangeProtectionRuleModel','UniverInstanceType','object','mountHistoryContent','230akVrlb','workerURL','UniverEngineFormula','div','ComponentManager','edit-history-loader.config','combineLatest','map','Inject','executeCommand','mask','replace','pluginName','100%','UniverSheetsConditionalFormatting','HistoryModeStatus','top','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','clipPath','\x20has\x20been\x20registered.','historyUniver','1115038JQGqtv','_revertErrorTimer','_dialogService','mergeMenu','dataset','@univerjs/drawing','params','IMessageService','forwardRef','_localCacheService','DisposableCollection','setLocale','exhaustSavingTask','UniverUIPlugin','Entered','1000','UniverEngineRender','UniverCore','@univerjs/engine-render','flat','display','UniverDataValidation','14oWMqsU','UniverSheetsFormula','path','univerContainerId','random','next','UniverProSheetsSparklineUi','AuthzIoHttpService','UniverDesign','CollaborationStatus','HistoryLoaderService','values','@univerjs/sheets-ui','registerCommand','_localeService','1275330RInOcn','onCommandExecuted','CollaborationEvent','displayName','UNIVER_SHEET','UniverSheetsChartUIPlugin','@univerjs/sheets-filter','UniverSheetsHyperLinkUIPlugin','UniverSheetsNumfmtPlugin','univer.operation.toggle-edit-history','UniverSheetsDrawingUIPlugin','xlink:href','data','UniverDrawingUIPlugin','__getInjector','LocaleService','_checkCanRevert','fill','IDialogService','UniverSheetsNumfmt','getUnit','UniverSheetsFormulaUIPlugin','@univerjs/design','@univerjs/sheets-drawing-ui','univerjs-icon\x20univerjs-icon-','UniverProEditHistoryViewer','@univerjs/network','onStarting','_pluginMap','rxjs','getAllPlugins','getSheetId','@univerjs/sheets','close','entries','UNIVER_CONTAINER_ID','2414358AClahU','_initPlugins','getMenuHiddenObservable','getCurrentLocale','univer-history-container','show','UniverSheetsHyperLinkPlugin','ICommandService','status$','type','ThemeService','UniverRpc','use','IUniverInstanceService','RangeProtectionPermissionEditPoint','UniverLicensePlugin','invoke','HistoryIcon','UNIVER_UNKNOWN','value','clear','@univerjs/sheets-conditional-formatting-ui','session','getSheets','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','UniverProSheetsChart','every','setTheme','url(#$1','UniverNetwork','UniverSheetsFilter','@univerjs-pro/sheets-sparkline-ui','getConfig','getSubunitRuleList','_config','UniverProSheetsSparkline','116nTpPLa','_initUniver','UniverEditHistoryViewerPlugin','uComp','_init','UniverEditHistoryLoaderPlugin','_historyManagerService','WorkbookRecoverHistoryPermission','editHistory.panel.listFetchError','UniverDrawingUi','@univerjs/sheets-conditional-formatting','0\x200\x2016\x2016','@univerjs/sheets-hyper-link-ui','registerPlugin','_componentManager','UniverSheetsDrawing','location','CommandType','UniverSheetsFormulaUi','defineProperty','menu','colorChannel1','_commandService','dispose','@univerjs-pro/collaboration-client','RevertRevisionMutation','UniverSheetsHyperLink','createElement','_initListener','1433844QxLtlM','@univerjs-pro/collaboration','_themeService','block','UniverSheetsChartPlugin','MessageType','Error','function','_collaborationController','history-container','Injector','UniverSheetsFilterPlugin','svg','_univerInstanceService','UniverDocsUi','string','trim','WorkbookEditablePermission','appendChild','_messageService','UniverProSheetsPivot','UniverRenderEnginePlugin','UniverDocsPlugin','UniverUi','substring','reload','zIndex','Disposable','some','none','useRef','getElementById','historyUniver$','forEach','_sidebarService','@univerjs/drawing-ui','currentTheme$','UniverSheetsDrawingUi','@univerjs/sheets-data-validation-ui','status','Univer','_disposableCollection','IAuthzIoService','UniverSheetsHyperLinkUi','disposeWithMe','UniverSheetsDrawingPlugin','UniverSheetsConditionalFormattingPlugin','amd','toStringTag','getLocales','mutations','BUTTON','UniverSheetsDataValidation','_initContainer','getCollabEntity','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','@univerjs/rpc','children','UniverProEditHistoryLoader','@univerjs/sheets-hyper-link','UniverSheetsDataValidationUi','UniverDocs','OTHERS','IMenuManagerService','tag','CHANGESET_ACK','UniverSheetsDataValidationUIPlugin'];_0x221e=function(){return _0x430d04;};return _0x221e();}function _0x3fec(_0xd59f4f,_0x1bed96){_0xd59f4f=_0xd59f4f-0x111;const _0x221ead=_0x221e();let _0x3fec31=_0x221ead[_0xd59f4f];return _0x3fec31;}(function(_0x3a5f5e,_0x56dc7f){const _0x2b1d85=_0x3fec,_0x127c1d=_0x3a5f5e();while(!![]){try{const _0x29e621=-parseInt(_0x2b1d85(0x19a))/0x1+-parseInt(_0x2b1d85(0x14c))/0x2+-parseInt(_0x2b1d85(0x1e3))/0x3+parseInt(_0x2b1d85(0x207))/0x4*(-parseInt(_0x2b1d85(0x162))/0x5)+-parseInt(_0x2b1d85(0x1bf))/0x6*(-parseInt(_0x2b1d85(0x1b0))/0x7)+parseInt(_0x2b1d85(0x132))/0x8+-parseInt(_0x2b1d85(0x224))/0x9*(-parseInt(_0x2b1d85(0x185))/0xa);if(_0x29e621===_0x56dc7f)break;else _0x127c1d['push'](_0x127c1d['shift']());}catch(_0x4b72df){_0x127c1d['push'](_0x127c1d['shift']());}}}(_0x221e,0xa0434),function(_0x2d09e1,_0x4c68b2){const _0x4fb7ab=_0x3fec;typeof exports==_0x4fb7ab(0x183)&&typeof module<'u'?_0x4c68b2(exports,require('@univerjs/core'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/design'),require('react'),require('@univerjs/ui'),require('rxjs'),require('@univerjs/sheets'),require('@univerjs-pro/edit-history-viewer'),require('@univerjs-pro/license'),require('@univerjs-pro/sheets-chart'),require('@univerjs-pro/sheets-chart-ui'),require('@univerjs-pro/sheets-pivot'),require('@univerjs-pro/sheets-sparkline'),require('@univerjs-pro/sheets-sparkline-ui'),require('@univerjs/data-validation'),require('@univerjs/docs'),require('@univerjs/docs-ui'),require('@univerjs/drawing'),require('@univerjs/drawing-ui'),require('@univerjs/engine-formula'),require('@univerjs/engine-render'),require('@univerjs/network'),require('@univerjs/rpc'),require('@univerjs/sheets-conditional-formatting'),require('@univerjs/sheets-conditional-formatting-ui'),require('@univerjs/sheets-data-validation'),require('@univerjs/sheets-data-validation-ui'),require('@univerjs/sheets-drawing'),require('@univerjs/sheets-drawing-ui'),require('@univerjs/sheets-filter'),require('@univerjs/sheets-filter-ui'),require('@univerjs/sheets-formula'),require('@univerjs/sheets-formula-ui'),require('@univerjs/sheets-hyper-link'),require('@univerjs/sheets-hyper-link-ui'),require('@univerjs/sheets-numfmt'),require('@univerjs/sheets-ui')):typeof define==_0x4fb7ab(0x22b)&&define[_0x4fb7ab(0x11b)]?define(['exports','@univerjs/core',_0x4fb7ab(0x225),_0x4fb7ab(0x21f),_0x4fb7ab(0x1d5),_0x4fb7ab(0x16e),'@univerjs/ui',_0x4fb7ab(0x1dc),_0x4fb7ab(0x1df),_0x4fb7ab(0x151),'@univerjs-pro/license',_0x4fb7ab(0x140),'@univerjs-pro/sheets-chart-ui',_0x4fb7ab(0x169),'@univerjs-pro/sheets-sparkline',_0x4fb7ab(0x202),'@univerjs/data-validation',_0x4fb7ab(0x174),_0x4fb7ab(0x14d),_0x4fb7ab(0x19f),_0x4fb7ab(0x247),_0x4fb7ab(0x17f),_0x4fb7ab(0x1ac),_0x4fb7ab(0x1d9),_0x4fb7ab(0x124),_0x4fb7ab(0x211),_0x4fb7ab(0x1f8),_0x4fb7ab(0x131),_0x4fb7ab(0x112),_0x4fb7ab(0x16a),_0x4fb7ab(0x1d6),_0x4fb7ab(0x1c5),'@univerjs/sheets-filter-ui','@univerjs/sheets-formula','@univerjs/sheets-formula-ui',_0x4fb7ab(0x127),_0x4fb7ab(0x213),_0x4fb7ab(0x134),_0x4fb7ab(0x1bc)],_0x4c68b2):(_0x2d09e1=typeof globalThis<'u'?globalThis:_0x2d09e1||self,_0x4c68b2(_0x2d09e1[_0x4fb7ab(0x126)]={},_0x2d09e1[_0x4fb7ab(0x1ab)],_0x2d09e1[_0x4fb7ab(0x16f)],_0x2d09e1['UniverProCollaborationClient'],_0x2d09e1[_0x4fb7ab(0x1b8)],_0x2d09e1['React'],_0x2d09e1[_0x4fb7ab(0x23b)],_0x2d09e1[_0x4fb7ab(0x1dc)],_0x2d09e1['UniverSheets'],_0x2d09e1[_0x4fb7ab(0x1d8)],_0x2d09e1[_0x4fb7ab(0x13d)],_0x2d09e1[_0x4fb7ab(0x1fc)],_0x2d09e1[_0x4fb7ab(0x13b)],_0x2d09e1[_0x4fb7ab(0x238)],_0x2d09e1[_0x4fb7ab(0x206)],_0x2d09e1[_0x4fb7ab(0x1b6)],_0x2d09e1[_0x4fb7ab(0x1af)],_0x2d09e1[_0x4fb7ab(0x129)],_0x2d09e1[_0x4fb7ab(0x232)],_0x2d09e1[_0x4fb7ab(0x135)],_0x2d09e1[_0x4fb7ab(0x210)],_0x2d09e1[_0x4fb7ab(0x187)],_0x2d09e1[_0x4fb7ab(0x1aa)],_0x2d09e1[_0x4fb7ab(0x200)],_0x2d09e1[_0x4fb7ab(0x1ee)],_0x2d09e1[_0x4fb7ab(0x193)],_0x2d09e1['UniverSheetsConditionalFormattingUi'],_0x2d09e1[_0x4fb7ab(0x120)],_0x2d09e1[_0x4fb7ab(0x128)],_0x2d09e1[_0x4fb7ab(0x216)],_0x2d09e1[_0x4fb7ab(0x111)],_0x2d09e1[_0x4fb7ab(0x201)],_0x2d09e1[_0x4fb7ab(0x173)],_0x2d09e1[_0x4fb7ab(0x1b1)],_0x2d09e1[_0x4fb7ab(0x219)],_0x2d09e1[_0x4fb7ab(0x221)],_0x2d09e1[_0x4fb7ab(0x117)],_0x2d09e1[_0x4fb7ab(0x1d2)],_0x2d09e1[_0x4fb7ab(0x14b)]));}(this,function(_0x27ada1,_0x537c22,_0x4f3e9c,_0x251c0a,_0x3ef9d6,_0x41080a,_0x22baaf,_0x22eb74,_0x44ec29,_0x5a1305,_0x2d79c1,_0x737433,_0x55fdb9,_0x293dd8,_0x28ed15,_0x3dd1e2,_0x2e1490,_0xf44cde,_0x56f538,_0x59b92f,_0x230441,_0x52f746,_0x33ba4f,_0x31a66b,_0x1340b6,_0x16b055,_0x1bb4fa,_0x42f6d6,_0x2633a3,_0x3d7369,_0x31a301,_0x3f601c,_0x5f6a98,_0x212bed,_0x3e107e,_0x551090,_0x2805d7,_0x126bcd,_0x5df6f3){'use strict';const _0x23586f=_0x3fec;var _0x4471b3=Object[_0x23586f(0x21a)],_0x2b7506=(_0x377052,_0x114197,_0x3597da)=>_0x114197 in _0x377052?_0x4471b3(_0x377052,_0x114197,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3597da}):_0x377052[_0x114197]=_0x3597da,_0xc3bd1b=(_0x30b17f,_0x315970,_0x4244f3)=>_0x2b7506(_0x30b17f,typeof _0x315970!=_0x23586f(0x158)?_0x315970+'':_0x315970,_0x4244f3),_0x5c3e85;const _0x264e8e=_0x23586f(0x18a),_0x2937ec={};function _0x414ef8({ref:_0xb8e16,..._0x1ee41a}){const _0x4eb197=_0x23586f,{icon:_0x200766,id:_0x494958,className:_0x1da537,extend:_0x21c2b4,..._0x47ba9a}=_0x1ee41a,_0x243dae=(_0x4eb197(0x1d7)+_0x494958+'\x20'+(_0x1da537||''))[_0x4eb197(0x234)](),_0x150cfb=_0x41080a[_0x4eb197(0x242)]('_'+_0x4b3b6c());return _0x113efb(_0x200766,''+_0x494958,{'defIds':_0x200766['defIds'],'idSuffix':_0x150cfb['current']},{'ref':_0xb8e16,'className':_0x243dae,..._0x47ba9a},_0x21c2b4);}function _0x113efb(_0x3af182,_0x1dd42a,_0x2fc90b,_0x37663c,_0x14cd87){const _0x515ef5=_0x23586f;return _0x41080a[_0x515ef5(0x222)](_0x3af182[_0x515ef5(0x12c)],{'key':_0x1dd42a,..._0x33bdb8(_0x3af182,_0x2fc90b,_0x14cd87),..._0x37663c},(_0x3e878e(_0x3af182,_0x2fc90b)[_0x515ef5(0x125)]||[])[_0x515ef5(0x18c)]((_0x2921b2,_0x31e9a8)=>_0x113efb(_0x2921b2,_0x1dd42a+'-'+_0x3af182[_0x515ef5(0x12c)]+'-'+_0x31e9a8,_0x2fc90b,void 0x0,_0x14cd87)));}function _0x33bdb8(_0x159f49,_0x5e60c3,_0x2571fb){const _0x1c031d=_0x23586f,_0x3cd13b={..._0x159f49['attrs']};_0x2571fb!=null&&_0x2571fb[_0x1c031d(0x21c)]&&_0x3cd13b['fill']===_0x1c031d(0x21c)&&(_0x3cd13b[_0x1c031d(0x1d0)]=_0x2571fb[_0x1c031d(0x21c)]),_0x159f49['tag']==='mask'&&_0x3cd13b['id']&&(_0x3cd13b['id']=_0x3cd13b['id']+_0x5e60c3[_0x1c031d(0x16b)]),Object['entries'](_0x3cd13b)['forEach'](([_0x48292e,_0x56da33])=>{const _0x59f2aa=_0x1c031d;_0x48292e===_0x59f2aa(0x18f)&&typeof _0x56da33==_0x59f2aa(0x233)&&(_0x3cd13b[_0x48292e]=_0x56da33[_0x59f2aa(0x190)](/url\(#(.*)\)/,_0x59f2aa(0x1ff)+_0x5e60c3[_0x59f2aa(0x16b)]+')'));});const {defIds:_0x4c30b6}=_0x5e60c3;return!_0x4c30b6||_0x4c30b6[_0x1c031d(0x13e)]===0x0||(_0x159f49[_0x1c031d(0x12c)]===_0x1c031d(0x1ef)&&_0x3cd13b['xlink:href']&&(_0x3cd13b[_0x1c031d(0x1ca)]=_0x3cd13b[_0x1c031d(0x1ca)]+_0x5e60c3[_0x1c031d(0x16b)]),Object[_0x1c031d(0x1e1)](_0x3cd13b)[_0x1c031d(0x245)](([_0x203d7b,_0x56166c])=>{const _0x3699bf=_0x1c031d;typeof _0x56166c=='string'&&(_0x3cd13b[_0x203d7b]=_0x56166c[_0x3699bf(0x190)](/url\(#(.*)\)/,_0x3699bf(0x1ff)+_0x5e60c3['idSuffix']+')'));})),_0x3cd13b;}function _0x3e878e(_0xb4aed3,_0x48aa51){const _0x3eadd5=_0x23586f;var _0x20e5ef;const {defIds:_0x330753}=_0x48aa51;return!_0x330753||_0x330753[_0x3eadd5(0x13e)]===0x0?_0xb4aed3:_0xb4aed3[_0x3eadd5(0x12c)]==='defs'&&((_0x20e5ef=_0xb4aed3[_0x3eadd5(0x125)])!=null&&_0x20e5ef[_0x3eadd5(0x13e)])?{..._0xb4aed3,'children':_0xb4aed3['children']['map'](_0x477c5a=>typeof _0x477c5a[_0x3eadd5(0x166)]['id']=='string'&&_0x330753&&_0x330753[_0x3eadd5(0x154)](_0x477c5a['attrs']['id'])?{..._0x477c5a,'attrs':{..._0x477c5a[_0x3eadd5(0x166)],'id':_0x477c5a['attrs']['id']+_0x48aa51[_0x3eadd5(0x16b)]}}:_0x477c5a)}:_0xb4aed3;}function _0x4b3b6c(){const _0x35de89=_0x23586f;return Math[_0x35de89(0x1b4)]()[_0x35de89(0x17b)](0x24)[_0x35de89(0x23c)](0x2,0x8);}_0x414ef8[_0x23586f(0x1c2)]='UniverIcon';const _0x3d53b6={'tag':_0x23586f(0x230),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x23586f(0x241),'viewBox':_0x23586f(0x212),'width':_0x23586f(0x14f),'height':_0x23586f(0x14f)},'children':[{'tag':'g','attrs':{'fill':'currentColor','clipPath':_0x23586f(0x13a)},'children':[{'tag':_0x23586f(0x1b2),'attrs':{'d':_0x23586f(0x1fb)}},{'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':'defs','attrs':{},'children':[{'tag':_0x23586f(0x197),'attrs':{'id':_0x23586f(0x142)},'children':[{'tag':_0x23586f(0x1b2),'attrs':{'fill':'white','d':_0x23586f(0x13f)}}]}]}],'defIds':[_0x23586f(0x142)]},_0x438dd9=_0x41080a[_0x23586f(0x1a2)](function(_0x528c05,_0x1b9166){const _0x1d6fb4=_0x23586f;return _0x41080a[_0x1d6fb4(0x222)](_0x414ef8,Object[_0x1d6fb4(0x17c)]({},_0x528c05,{'id':'history-icon','ref':_0x1b9166,'icon':_0x3d53b6}));});_0x438dd9[_0x23586f(0x1c2)]=_0x23586f(0x1f4);var _0x3a4b29=Object[_0x23586f(0x177)],_0x4956e5=(_0x55692a,_0x39c30a,_0x38e7b0,_0x3607bb)=>{const _0x2df7e8=_0x23586f;for(var _0x4b005e=_0x3607bb>0x1?void 0x0:_0x3607bb?_0x3a4b29(_0x39c30a,_0x38e7b0):_0x39c30a,_0x5e98e7=_0x55692a[_0x2df7e8(0x13e)]-0x1,_0x4182b7;_0x5e98e7>=0x0;_0x5e98e7--)(_0x4182b7=_0x55692a[_0x5e98e7])&&(_0x4b005e=_0x4182b7(_0x4b005e)||_0x4b005e);return _0x4b005e;},_0x58fb9e=(_0x2dafac,_0x1e5825)=>(_0x59bed6,_0x544e13)=>_0x1e5825(_0x59bed6,_0x544e13,_0x2dafac);const _0x4b2c74='univer-container',_0x1dc2bf=_0x23586f(0x1e2),_0x316434=_0x23586f(0x1e7);_0x27ada1['HistoryLoaderService']=class extends _0x537c22[_0x23586f(0x23f)]{constructor(_0x3a3818,_0x26276a,_0xfd4679,_0x3779b2,_0x26312a,_0x1a0e24,_0x4f94d4,_0x51bd3f,_0x313b7b,_0x1dee47){const _0x50889b=_0x23586f;super(),_0xc3bd1b(this,'_historyUniver$',new _0x22eb74[(_0x50889b(0x167))](null)),_0xc3bd1b(this,_0x50889b(0x244),this['_historyUniver$'][_0x50889b(0x15f)]()),_0xc3bd1b(this,_0x50889b(0x115),new _0x537c22[(_0x50889b(0x1a4))]()),_0xc3bd1b(this,'_pluginMap',new Map()),(this['_localeService']=_0x3a3818,this['_univerInstanceService']=_0x26276a,this['_configService']=_0xfd4679,this[_0x50889b(0x21d)]=_0x3779b2,this[_0x50889b(0x237)]=_0x26312a,this[_0x50889b(0x17e)]=_0x1a0e24,this[_0x50889b(0x179)]=_0x4f94d4,this[_0x50889b(0x19c)]=_0x51bd3f,this[_0x50889b(0x246)]=_0x313b7b,this[_0x50889b(0x226)]=_0x1dee47,this['_init']());}get[_0x23586f(0x199)](){const _0x4e1111=_0x23586f;return this[_0x4e1111(0x180)][_0x4e1111(0x1f6)];}[_0x23586f(0x20b)](){const _0x1efd63=_0x23586f;this[_0x1efd63(0x121)](),this[_0x1efd63(0x1e4)]();}[_0x23586f(0x121)](){const _0x4e65a3=_0x23586f;var _0x360a85;const _0x4ee441=(_0x360a85=this[_0x4e65a3(0x15e)][_0x4e65a3(0x203)](_0x1dc2bf))!=null?_0x360a85:_0x4b2c74,_0x213ee8=document[_0x4e65a3(0x243)](_0x4ee441);if(!_0x213ee8)return;const _0x575443=document[_0x4e65a3(0x222)](_0x4e65a3(0x188));_0x575443['id']=_0x316434,_0x575443[_0x4e65a3(0x19e)][_0x4e65a3(0x20a)]=_0x4e65a3(0x22d),_0x575443['style']['position']=_0x4e65a3(0x176),_0x575443[_0x4e65a3(0x157)][_0x4e65a3(0x195)]='0',_0x575443['style'][_0x4e65a3(0x149)]='0',_0x575443[_0x4e65a3(0x157)]['width']='100%',_0x575443[_0x4e65a3(0x157)]['height']=_0x4e65a3(0x192),_0x575443['style'][_0x4e65a3(0x23e)]=_0x4e65a3(0x1a9),_0x575443[_0x4e65a3(0x157)]['display']=_0x4e65a3(0x241),_0x213ee8[_0x4e65a3(0x236)](_0x575443);}['_initPlugins'](){const _0x4c538d=_0x23586f;var _0x46db58,_0x283c46,_0x404b28,_0x2ec6da;[[_0x33ba4f[_0x4c538d(0x239)]],[_0x22baaf[_0x4c538d(0x1a7)],{'container':_0x316434,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x22baaf[_0x4c538d(0x1d1)],null]]}],[_0x31a66b['UniverNetworkPlugin']],[_0x59b92f['UniverDrawingPlugin'],{'override':[[_0x59b92f['IImageIoService'],null]]}],[_0xf44cde[_0x4c538d(0x23a)],{'hasScroll':!0x1}],[_0x56f538['UniverDocsUIPlugin']],[_0x126bcd[_0x4c538d(0x1c7)]],[_0x44ec29['UniverSheetsPlugin'],{'notExecuteFormula':!0x0}],[_0x5df6f3[_0x4c538d(0x159)]],[_0x212bed['UniverSheetsFormulaPlugin']],[_0x3e107e[_0x4c538d(0x1d4)]],[_0x4f3e9c['UniverCollaborationPlugin']],[_0x3f601c[_0x4c538d(0x22f)]],[_0x5f6a98[_0x4c538d(0x161)]],[_0x16b055[_0x4c538d(0x11a)]],[_0x1bb4fa['UniverSheetsConditionalFormattingUIPlugin']],[_0x551090[_0x4c538d(0x1e9)]],[_0x2805d7[_0x4c538d(0x1c6)]],[_0x2e1490['UniverDataValidationPlugin']],[_0x42f6d6['UniverSheetsDataValidationPlugin']],[_0x2633a3[_0x4c538d(0x12e)]],[_0x52f746[_0x4c538d(0x137)],{'notExecuteFormula':!0x0}],[_0x1340b6['UniverRPCMainThreadPlugin'],{'workerURL':(_0x283c46=(_0x46db58=this[_0x4c538d(0x15e)][_0x4c538d(0x203)](_0x1340b6[_0x4c538d(0x17d)]))==null?void 0x0:_0x46db58[_0x4c538d(0x186)])!=null?_0x283c46:'./worker.js'}],[_0x230441[_0x4c538d(0x1cc)]],[_0x3d7369[_0x4c538d(0x119)]],[_0x31a301[_0x4c538d(0x1c9)]],[_0x28ed15[_0x4c538d(0x14e)]],[_0x3dd1e2['UniverSheetSparklineUIPlugin']],[_0x737433[_0x4c538d(0x228)]],[_0x55fdb9[_0x4c538d(0x1c4)]],[_0x293dd8[_0x4c538d(0x163)],{'notExecuteFormula':!0x0}],[_0x5a1305[_0x4c538d(0x209)],{'historyListServerUrl':(_0x404b28=this['_configService'][_0x4c538d(0x203)](_0x264e8e))==null?void 0x0:_0x404b28['historyListServerUrl'],'historyPanelComponentKey':(_0x2ec6da=this['_configService']['getConfig'](_0x264e8e))==null?void 0x0:_0x2ec6da['historyPanelComponentKey']}]][_0x4c538d(0x245)](([_0x3f0fed,_0xece0b0])=>this['registerPlugin'](_0x3f0fed,_0xece0b0));}[_0x23586f(0x21e)](){const _0x3c346a=_0x23586f;super[_0x3c346a(0x21e)](),this['unMountHistoryContent'](),this[_0x3c346a(0x1db)][_0x3c346a(0x1f7)]();}['registerPlugin'](_0x235515,_0x14c4f2,_0x178af4){const _0x457877=_0x23586f;if(this[_0x457877(0x1db)][_0x457877(0x15b)](_0x235515[_0x457877(0x191)])&&!_0x178af4)throw new Error(_0x457877(0x12f)+_0x235515['pluginName']+_0x457877(0x198));this[_0x457877(0x1db)][_0x457877(0x16c)](_0x235515[_0x457877(0x191)],[_0x235515,_0x14c4f2]);}[_0x23586f(0x1dd)](){const _0x1e8307=_0x23586f;return Array[_0x1e8307(0x164)](this['_pluginMap'][_0x1e8307(0x1bb)]());}['mountHistoryContent'](_0x3ecb24){const _0x1b0d1c=_0x23586f,_0x5cfcd3=document[_0x1b0d1c(0x243)](_0x316434);_0x5cfcd3&&(_0x5cfcd3[_0x1b0d1c(0x157)]['display']=_0x1b0d1c(0x227),this[_0x1b0d1c(0x208)](_0x3ecb24,_0x316434));}['unMountHistoryContent'](){const _0xdf006=_0x23586f;var _0x469cb8;this['_disposableCollection'][_0xdf006(0x21e)](),(_0x469cb8=this['historyUniver'])==null||_0x469cb8[_0xdf006(0x21e)](),this[_0xdf006(0x180)][_0xdf006(0x1b5)](null);const _0x4732a5=document[_0xdf006(0x243)](_0x316434);_0x4732a5&&(_0x4732a5[_0xdf006(0x157)][_0xdf006(0x1ae)]='none');}[_0x23586f(0x208)](_0x35c586,_0x20b145){const _0x166bc4=_0x23586f;if(this[_0x166bc4(0x199)])return;const _0xe37425=new _0x537c22[(_0x166bc4(0x114))]({'locales':{[this[_0x166bc4(0x1be)][_0x166bc4(0x1e6)]()]:this[_0x166bc4(0x1be)][_0x166bc4(0x11d)]()},'override':[[_0x537c22[_0x166bc4(0x116)],{'useClass':_0x251c0a[_0x166bc4(0x1b7)]}]]}),_0x514088=_0xe37425[_0x166bc4(0x1cd)]();this[_0x166bc4(0x118)](this['_themeService']['darkMode$'][_0x166bc4(0x15d)](_0x4b7c29=>{const _0x76b0ea=_0x166bc4;_0x514088[_0x76b0ea(0x15a)](_0x537c22['ThemeService'])['setDarkMode'](_0x4b7c29);})),this[_0x166bc4(0x118)](this[_0x166bc4(0x226)][_0x166bc4(0x248)][_0x166bc4(0x15d)](_0x8c2b4f=>{const _0x46536c=_0x166bc4;_0x514088[_0x46536c(0x15a)](_0x537c22[_0x46536c(0x1ed)])[_0x46536c(0x1fe)](_0x8c2b4f);})),_0x514088[_0x166bc4(0x15a)](_0x537c22[_0x166bc4(0x1ce)])[_0x166bc4(0x1a5)](this['_localeService'][_0x166bc4(0x1e6)]()),_0x514088[_0x166bc4(0x15a)](_0x537c22['IConfigService'])['setConfig'](_0x251c0a[_0x166bc4(0x196)],this[_0x166bc4(0x15e)][_0x166bc4(0x203)](_0x251c0a[_0x166bc4(0x196)]));const _0x3843c3=this[_0x166bc4(0x15e)]['getConfig'](_0x2d79c1['LS_CONFIG_KEY']);_0x3843c3&&_0xe37425[_0x166bc4(0x214)](_0x2d79c1[_0x166bc4(0x1f2)],{'license':_0x3843c3['ls']}),this[_0x166bc4(0x1db)]['forEach'](([_0x5afaa6,_0x2ee4d2])=>{const _0x4db390=_0x166bc4;_0xe37425[_0x4db390(0x214)](_0x5afaa6,_0x2ee4d2);}),_0x514088[_0x166bc4(0x1f3)](_0x59416b=>{this['_initListener'](_0x59416b,_0x35c586);}),this[_0x166bc4(0x180)]['next'](_0xe37425);const _0x3f1803=_0x514088[_0x166bc4(0x15a)](_0x5a1305[_0x166bc4(0x150)]),_0x1fdeb6=this['_checkCanRevert'](_0x35c586);_0x3f1803['triggerLoadVersions'](_0x35c586,_0x20b145,_0x1fdeb6);}[_0x23586f(0x223)](_0x3b031d,_0x8020fb){const _0x4d069f=_0x23586f,_0x18e630=_0x3b031d['get'](_0x5a1305['HistoryManagerService']);this[_0x4d069f(0x115)][_0x4d069f(0x152)](_0x18e630[_0x4d069f(0x1eb)]['subscribe'](_0x33857e=>{const _0x144a1a=_0x4d069f;switch(_0x33857e){case _0x5a1305[_0x144a1a(0x194)][_0x144a1a(0x1a8)]:this[_0x144a1a(0x19c)][_0x144a1a(0x133)](),this[_0x144a1a(0x246)][_0x144a1a(0x1e0)]();break;case _0x5a1305[_0x144a1a(0x194)][_0x144a1a(0x160)]:this[_0x144a1a(0x21d)][_0x144a1a(0x18e)](_0x40b99b['id']),this[_0x144a1a(0x175)]();break;case _0x5a1305['HistoryModeStatus'][_0x144a1a(0x22a)]:this[_0x144a1a(0x175)](),this[_0x144a1a(0x237)]['show']({'content':this[_0x144a1a(0x1be)]['t'](_0x144a1a(0x20f)),'type':_0x3ef9d6['MessageType']['Error'],'duration':0xbb8});break;}})),this[_0x4d069f(0x115)][_0x4d069f(0x152)](_0x18e630[_0x4d069f(0x15c)][_0x4d069f(0x15d)](async _0x74b841=>{const _0x1c5a97=_0x4d069f;_0x74b841&&this[_0x1c5a97(0x21d)]['executeCommand'](_0x4f3e9c[_0x1c5a97(0x220)]['id'],{'unitId':_0x8020fb,'revision':_0x74b841});}));}[_0x23586f(0x1cf)](_0x4899d0){const _0x2da548=_0x23586f,_0x1e5c83=this[_0x2da548(0x231)][_0x2da548(0x1d3)](_0x4899d0)[_0x2da548(0x1fa)]()[_0x2da548(0x18c)](_0x580994=>_0x580994[_0x2da548(0x1de)]()),_0x286052=new _0x44ec29[(_0x2da548(0x235))](_0x4899d0)['id'],_0x3c7564=_0x1e5c83[_0x2da548(0x18c)](_0x13a1cb=>new _0x44ec29['WorksheetEditPermission'](_0x4899d0,_0x13a1cb)['id']),_0xcd7e70=_0x1e5c83[_0x2da548(0x18c)](_0xcb79e8=>this[_0x2da548(0x179)][_0x2da548(0x204)](_0x4899d0,_0xcb79e8)[_0x2da548(0x18c)](_0x2f1f79=>new _0x44ec29[(_0x2da548(0x1f1))](_0x4899d0,_0xcb79e8,_0x2f1f79[_0x2da548(0x130)])['id']))[_0x2da548(0x1ad)](),_0x383437=new _0x44ec29[(_0x2da548(0x20e))](_0x4899d0)['id'];return this['_permissionService']['composePermission']([_0x286052,..._0x3c7564,..._0xcd7e70,_0x383437])[_0x2da548(0x1fd)](_0x788696=>!!_0x788696[_0x2da548(0x1f6)]);}},_0x27ada1[_0x23586f(0x1ba)]=_0x4956e5([_0x58fb9e(0x0,_0x537c22[_0x23586f(0x18d)](_0x537c22[_0x23586f(0x1ce)])),_0x58fb9e(0x1,_0x537c22[_0x23586f(0x1f0)]),_0x58fb9e(0x2,_0x537c22['IConfigService']),_0x58fb9e(0x3,_0x537c22['ICommandService']),_0x58fb9e(0x4,_0x22baaf[_0x23586f(0x1a1)]),_0x58fb9e(0x5,_0x537c22[_0x23586f(0x153)]),_0x58fb9e(0x6,_0x537c22[_0x23586f(0x18d)](_0x44ec29[_0x23586f(0x181)])),_0x58fb9e(0x7,_0x537c22[_0x23586f(0x18d)](_0x22baaf[_0x23586f(0x1d1)])),_0x58fb9e(0x8,_0x537c22['Inject'](_0x22baaf[_0x23586f(0x146)])),_0x58fb9e(0x9,_0x537c22[_0x23586f(0x18d)](_0x537c22['ThemeService']))],_0x27ada1[_0x23586f(0x1ba)]);const _0x8dff02={'id':_0x23586f(0x1c8),'type':_0x537c22[_0x23586f(0x218)][_0x23586f(0x165)],'handler':_0x373594=>{const _0x3d71c7=_0x23586f,_0x27d6a4=_0x373594[_0x3d71c7(0x15a)](_0x27ada1[_0x3d71c7(0x1ba)]),_0x1f25dd=_0x373594[_0x3d71c7(0x15a)](_0x537c22[_0x3d71c7(0x1f0)]),{unitId:_0x2cf9d0}=_0x44ec29['getSheetCommandTarget'](_0x1f25dd)||{};return _0x2cf9d0?(_0x27d6a4[_0x3d71c7(0x184)](_0x2cf9d0),!0x0):!0x1;}},_0x40b99b={'id':_0x23586f(0x156),'type':_0x537c22['CommandType'][_0x23586f(0x165)],'handler':()=>!0x0};function _0x5e1f06(_0x449ab9){const _0x33a740=_0x23586f;return{'id':_0x8dff02['id'],'type':_0x22baaf[_0x33a740(0x155)][_0x33a740(0x11f)],'icon':_0x33a740(0x1f4),'tooltip':'editHistory.panel.title','hidden$':_0x22baaf[_0x33a740(0x1e5)](_0x449ab9,_0x537c22[_0x33a740(0x182)][_0x33a740(0x1c3)]),'disabled$':_0x5df6f3['getCurrentRangeDisable$'](_0x449ab9,{'workbookTypes':[_0x44ec29[_0x33a740(0x235)],_0x44ec29[_0x33a740(0x172)]],'worksheetTypes':[],'rangeTypes':[]})};}const _0x4cae7b={[_0x22baaf['RibbonStartGroup'][_0x23586f(0x12a)]]:{[_0x8dff02['id']]:{'order':0.2,'menuItemFactory':_0x5e1f06}}};var _0x26be2e=Object[_0x23586f(0x177)],_0x49ebd4=(_0x2ba406,_0x53d939,_0x4a2d2e,_0x2f9de2)=>{const _0x17df4a=_0x23586f;for(var _0x3dea75=_0x2f9de2>0x1?void 0x0:_0x2f9de2?_0x26be2e(_0x53d939,_0x4a2d2e):_0x53d939,_0x476734=_0x2ba406[_0x17df4a(0x13e)]-0x1,_0x262f69;_0x476734>=0x0;_0x476734--)(_0x262f69=_0x2ba406[_0x476734])&&(_0x3dea75=_0x262f69(_0x3dea75)||_0x3dea75);return _0x3dea75;},_0x2d4b4a=(_0x44f113,_0x2550ce)=>(_0x483942,_0x14183c)=>_0x2550ce(_0x483942,_0x14183c,_0x44f113);let _0xb881c7=class extends _0x537c22['RxDisposable']{constructor(_0x4d541b,_0x3ffae9,_0x375347,_0x101706,_0x27133c,_0x3dfa15,_0x411753,_0x58a049){const _0x1f68b8=_0x23586f;super(),_0xc3bd1b(this,_0x1f68b8(0x19b),null),(this[_0x1f68b8(0x21d)]=_0x4d541b,this[_0x1f68b8(0x145)]=_0x3ffae9,this[_0x1f68b8(0x215)]=_0x375347,this[_0x1f68b8(0x20d)]=_0x101706,this[_0x1f68b8(0x1be)]=_0x27133c,this[_0x1f68b8(0x237)]=_0x3dfa15,this['_collaborationController']=_0x411753,this[_0x1f68b8(0x1a3)]=_0x58a049,this[_0x1f68b8(0x20b)]());}[_0x23586f(0x20b)](){const _0x3f2ac8=_0x23586f;[_0x8dff02,_0x40b99b][_0x3f2ac8(0x245)](_0x55956c=>this[_0x3f2ac8(0x118)](_0x537c22[_0x3f2ac8(0x136)](this[_0x3f2ac8(0x21d)][_0x3f2ac8(0x1bd)](_0x55956c)))),this[_0x3f2ac8(0x118)](this[_0x3f2ac8(0x215)]['register']('HistoryIcon',_0x438dd9)),this[_0x3f2ac8(0x145)][_0x3f2ac8(0x19d)](_0x4cae7b),this[_0x3f2ac8(0x118)](this[_0x3f2ac8(0x21d)][_0x3f2ac8(0x1c0)](_0x20b0c8=>{const _0x352fe4=_0x3f2ac8;if(_0x20b0c8['id']===_0x4f3e9c['RevertRevisionMutation']['id']){this[_0x352fe4(0x237)][_0x352fe4(0x1e8)]({'content':this['_localeService']['t'](_0x352fe4(0x138)),'type':_0x3ef9d6[_0x352fe4(0x229)][_0x352fe4(0x16d)],'duration':0x1388});const {unitId:_0x40536f}=_0x20b0c8[_0x352fe4(0x1a0)],_0x4d162a=this[_0x352fe4(0x22c)][_0x352fe4(0x122)](_0x40536f),_0x7bbb0e=_0x22eb74[_0x352fe4(0x18b)]([_0x4d162a[_0x352fe4(0x1f9)][_0x352fe4(0x139)],_0x4d162a[_0x352fe4(0x178)]])[_0x352fe4(0x15d)](async([_0x56e6f1,_0x55e476])=>{const _0x35c124=_0x352fe4;var _0x9a0496;_0x56e6f1[_0x35c124(0x170)]===_0x4f3e9c[_0x35c124(0x1c1)][_0x35c124(0x12d)]&&(_0x55e476==null?void 0x0:_0x55e476[_0x35c124(0x113)])===_0x251c0a[_0x35c124(0x1b9)]['SYNCED']&&_0x56e6f1[_0x35c124(0x1cb)][_0x35c124(0x11e)][_0x35c124(0x240)](_0x3635e2=>_0x3635e2['id']===_0x4f3e9c['RevertRevisionMutation']['id'])&&(this[_0x35c124(0x20d)]['unMountHistoryContent'](),_0x7bbb0e[_0x35c124(0x17a)](),this[_0x35c124(0x19b)]&&clearTimeout(this[_0x35c124(0x19b)]),await((_0x9a0496=this[_0x35c124(0x1a3)])==null?void 0x0:_0x9a0496[_0x35c124(0x1a6)]()),setTimeout(()=>window[_0x35c124(0x217)][_0x35c124(0x23d)]()));});this['_revertErrorTimer']=setTimeout(()=>{const _0x41ac4a=_0x352fe4;_0x7bbb0e[_0x41ac4a(0x17a)](),this[_0x41ac4a(0x237)]['show']({'content':this['_localeService']['t'](_0x41ac4a(0x147)),'type':_0x3ef9d6[_0x41ac4a(0x229)][_0x41ac4a(0x22a)],'duration':0xbb8});},0x1388);}}));}};_0xb881c7=_0x49ebd4([_0x2d4b4a(0x0,_0x537c22[_0x23586f(0x1ea)]),_0x2d4b4a(0x1,_0x22baaf[_0x23586f(0x12b)]),_0x2d4b4a(0x2,_0x537c22[_0x23586f(0x18d)](_0x22baaf[_0x23586f(0x189)])),_0x2d4b4a(0x3,_0x537c22['Inject'](_0x27ada1[_0x23586f(0x1ba)])),_0x2d4b4a(0x4,_0x537c22[_0x23586f(0x18d)](_0x537c22[_0x23586f(0x1ce)])),_0x2d4b4a(0x5,_0x22baaf[_0x23586f(0x1a1)]),_0x2d4b4a(0x6,_0x537c22[_0x23586f(0x18d)](_0x251c0a[_0x23586f(0x171)])),_0x2d4b4a(0x7,_0x251c0a['ILocalCacheService'])],_0xb881c7);var _0x5b662f=Object[_0x23586f(0x177)],_0xe47ace=(_0x415bdc,_0x304cef,_0x1643ff,_0x2b830d)=>{const _0x4b4ff1=_0x23586f;for(var _0x22be5b=_0x2b830d>0x1?void 0x0:_0x2b830d?_0x5b662f(_0x304cef,_0x1643ff):_0x304cef,_0x290f3c=_0x415bdc[_0x4b4ff1(0x13e)]-0x1,_0x586429;_0x290f3c>=0x0;_0x290f3c--)(_0x586429=_0x415bdc[_0x290f3c])&&(_0x22be5b=_0x586429(_0x22be5b)||_0x22be5b);return _0x22be5b;},_0x72dc6e=(_0x335da1,_0x13c69a)=>(_0xa5b6d0,_0x46cf73)=>_0x13c69a(_0xa5b6d0,_0x46cf73,_0x335da1);const _0x2255c2=_0x23586f(0x123);_0x27ada1[_0x23586f(0x20c)]=(_0x5c3e85=class extends _0x537c22[_0x23586f(0x148)]{constructor(_0x27be98=_0x2937ec,_0x2e977d,_0x31eb25){const _0x3dc2e8=_0x23586f;super(),this[_0x3dc2e8(0x205)]=_0x27be98,this[_0x3dc2e8(0x14a)]=_0x2e977d,this[_0x3dc2e8(0x15e)]=_0x31eb25;const {menu:_0x19019b,..._0x3d443e}=_0x537c22['merge']({},_0x2937ec,this['_config']);_0x19019b&&this[_0x3dc2e8(0x15e)][_0x3dc2e8(0x144)](_0x3dc2e8(0x21b),_0x19019b,{'merge':!0x0}),this['_configService'][_0x3dc2e8(0x144)](_0x264e8e,_0x3d443e),this['_config'][_0x3dc2e8(0x1b3)]&&this[_0x3dc2e8(0x15e)][_0x3dc2e8(0x144)](_0x1dc2bf,this[_0x3dc2e8(0x205)][_0x3dc2e8(0x1b3)]);}[_0x23586f(0x1da)](){const _0x2fa9ac=_0x23586f;[[_0x27ada1['HistoryLoaderService']],[_0xb881c7]][_0x2fa9ac(0x245)](_0x179d5b=>this[_0x2fa9ac(0x14a)]['add'](_0x179d5b));}[_0x23586f(0x13c)](){const _0x43dfbc=_0x23586f;this[_0x43dfbc(0x14a)][_0x43dfbc(0x15a)](_0xb881c7);}},_0xc3bd1b(_0x5c3e85,_0x23586f(0x1ec),_0x537c22[_0x23586f(0x182)][_0x23586f(0x1f5)]),_0xc3bd1b(_0x5c3e85,_0x23586f(0x191),_0x2255c2),_0x5c3e85),_0x27ada1[_0x23586f(0x20c)]=_0xe47ace([_0x72dc6e(0x1,_0x537c22[_0x23586f(0x18d)](_0x537c22[_0x23586f(0x22e)])),_0x72dc6e(0x2,_0x537c22[_0x23586f(0x168)])],_0x27ada1[_0x23586f(0x20c)]),_0x27ada1['UNIVER_CONTAINER_ID_KEY']=_0x1dc2bf,_0x27ada1[_0x23586f(0x141)]=_0x316434,Object[_0x23586f(0x21a)](_0x27ada1,Symbol[_0x23586f(0x11c)],{'value':_0x23586f(0x143)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/edit-history-loader",
|
|
3
|
-
"version": "0.15.0-insiders.
|
|
3
|
+
"version": "0.15.0-insiders.20260106-79b11f9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet edit history loader",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -47,42 +47,42 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@univerjs/icons": "^1.1.0",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.15.0-insiders.
|
|
51
|
-
"@univerjs-pro/collaboration
|
|
52
|
-
"@univerjs-pro/
|
|
53
|
-
"@univerjs-pro/
|
|
54
|
-
"@univerjs-pro/sheets-pivot": "0.15.0-insiders.
|
|
55
|
-
"@univerjs-pro/sheets-
|
|
56
|
-
"@univerjs-pro/
|
|
57
|
-
"@univerjs
|
|
58
|
-
"@univerjs-pro/sheets-sparkline-ui": "0.15.0-insiders.
|
|
59
|
-
"@univerjs/
|
|
60
|
-
"@univerjs/
|
|
61
|
-
"@univerjs/
|
|
62
|
-
"@univerjs/
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/docs-ui": "0.15.0-insiders.
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs/engine-
|
|
68
|
-
"@univerjs/
|
|
69
|
-
"@univerjs/
|
|
70
|
-
"@univerjs/sheets-conditional-formatting": "0.15.0-insiders.
|
|
71
|
-
"@univerjs/sheets": "0.15.0-insiders.
|
|
72
|
-
"@univerjs/sheets-data-validation": "0.15.0-insiders.
|
|
73
|
-
"@univerjs/sheets-
|
|
74
|
-
"@univerjs/sheets-
|
|
75
|
-
"@univerjs/sheets-
|
|
76
|
-
"@univerjs/sheets-
|
|
77
|
-
"@univerjs/sheets-
|
|
78
|
-
"@univerjs/sheets-formula": "0.15.0-insiders.
|
|
79
|
-
"@univerjs/sheets-
|
|
80
|
-
"@univerjs/sheets-hyper-link": "0.15.0-insiders.
|
|
81
|
-
"@univerjs/sheets-
|
|
82
|
-
"@univerjs/sheets-
|
|
83
|
-
"@univerjs/sheets-ui": "0.15.0-insiders.
|
|
84
|
-
"@univerjs/ui": "0.15.0-insiders.
|
|
85
|
-
"@univerjs/sheets-numfmt": "0.15.0-insiders.
|
|
50
|
+
"@univerjs-pro/collaboration-client": "0.15.0-insiders.20260106-79b11f9",
|
|
51
|
+
"@univerjs-pro/collaboration": "0.15.0-insiders.20260106-79b11f9",
|
|
52
|
+
"@univerjs-pro/sheets-chart": "0.15.0-insiders.20260106-79b11f9",
|
|
53
|
+
"@univerjs-pro/sheets-chart-ui": "0.15.0-insiders.20260106-79b11f9",
|
|
54
|
+
"@univerjs-pro/sheets-pivot": "0.15.0-insiders.20260106-79b11f9",
|
|
55
|
+
"@univerjs-pro/sheets-sparkline": "0.15.0-insiders.20260106-79b11f9",
|
|
56
|
+
"@univerjs-pro/edit-history-viewer": "0.15.0-insiders.20260106-79b11f9",
|
|
57
|
+
"@univerjs/core": "0.15.0-insiders.20260106-79b11f9",
|
|
58
|
+
"@univerjs-pro/sheets-sparkline-ui": "0.15.0-insiders.20260106-79b11f9",
|
|
59
|
+
"@univerjs-pro/license": "0.15.0-insiders.20260106-79b11f9",
|
|
60
|
+
"@univerjs/design": "0.15.0-insiders.20260106-79b11f9",
|
|
61
|
+
"@univerjs/docs": "0.15.0-insiders.20260106-79b11f9",
|
|
62
|
+
"@univerjs/drawing": "0.15.0-insiders.20260106-79b11f9",
|
|
63
|
+
"@univerjs/data-validation": "0.15.0-insiders.20260106-79b11f9",
|
|
64
|
+
"@univerjs/docs-ui": "0.15.0-insiders.20260106-79b11f9",
|
|
65
|
+
"@univerjs/drawing-ui": "0.15.0-insiders.20260106-79b11f9",
|
|
66
|
+
"@univerjs/engine-formula": "0.15.0-insiders.20260106-79b11f9",
|
|
67
|
+
"@univerjs/engine-render": "0.15.0-insiders.20260106-79b11f9",
|
|
68
|
+
"@univerjs/network": "0.15.0-insiders.20260106-79b11f9",
|
|
69
|
+
"@univerjs/rpc": "0.15.0-insiders.20260106-79b11f9",
|
|
70
|
+
"@univerjs/sheets-conditional-formatting-ui": "0.15.0-insiders.20260106-79b11f9",
|
|
71
|
+
"@univerjs/sheets": "0.15.0-insiders.20260106-79b11f9",
|
|
72
|
+
"@univerjs/sheets-data-validation": "0.15.0-insiders.20260106-79b11f9",
|
|
73
|
+
"@univerjs/sheets-drawing": "0.15.0-insiders.20260106-79b11f9",
|
|
74
|
+
"@univerjs/sheets-filter": "0.15.0-insiders.20260106-79b11f9",
|
|
75
|
+
"@univerjs/sheets-conditional-formatting": "0.15.0-insiders.20260106-79b11f9",
|
|
76
|
+
"@univerjs/sheets-filter-ui": "0.15.0-insiders.20260106-79b11f9",
|
|
77
|
+
"@univerjs/sheets-formula": "0.15.0-insiders.20260106-79b11f9",
|
|
78
|
+
"@univerjs/sheets-formula-ui": "0.15.0-insiders.20260106-79b11f9",
|
|
79
|
+
"@univerjs/sheets-hyper-link": "0.15.0-insiders.20260106-79b11f9",
|
|
80
|
+
"@univerjs/sheets-hyper-link-ui": "0.15.0-insiders.20260106-79b11f9",
|
|
81
|
+
"@univerjs/sheets-data-validation-ui": "0.15.0-insiders.20260106-79b11f9",
|
|
82
|
+
"@univerjs/sheets-ui": "0.15.0-insiders.20260106-79b11f9",
|
|
83
|
+
"@univerjs/sheets-drawing-ui": "0.15.0-insiders.20260106-79b11f9",
|
|
84
|
+
"@univerjs/ui": "0.15.0-insiders.20260106-79b11f9",
|
|
85
|
+
"@univerjs/sheets-numfmt": "0.15.0-insiders.20260106-79b11f9"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
88
|
"react": "18.3.1",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"typescript": "^5.9.3",
|
|
91
91
|
"vite": "^7.3.0",
|
|
92
92
|
"vitest": "^4.0.16",
|
|
93
|
-
"@univerjs-infra/shared": "0.
|
|
93
|
+
"@univerjs-infra/shared": "0.15.0"
|
|
94
94
|
},
|
|
95
95
|
"scripts": {
|
|
96
96
|
"test": "vitest run",
|