@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231005.0 → 0.0.0-nightly-20231006.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +6 -6
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5be8=['add','render','config','isReadOnly','children','submit','isOpen','Save\x20current\x20revision','Open\x20revision\x20history','remove','editing','revisionHistory','reset','revisionName','get','execute','bind','saveRevision','focus','view','init','addMany','pluginName','cancel','RevisionTracker','isEnabled','isReady','plugins','change:isOpen','buttonView','items','set'];(function(_0x242e23,_0x5be830){const _0x3ec8f6=function(_0xb1754f){while(--_0xb1754f){_0x242e23['push'](_0x242e23['shift']());}};_0x3ec8f6(++_0x5be830);}(_0x5be8,0xfc));const _0x3ec8=function(_0x242e23,_0x5be830){_0x242e23=_0x242e23-0x0;let _0x3ec8f6=_0x5be8[_0x242e23];return _0x3ec8f6;};import{Plugin as _0x6ff5e5,icons as _0x21ef75}from'ckeditor5/src/core';import{ListView as _0x52aae3,ListItemView as _0x5c647f,ButtonView as _0x3d3ec1,createDropdown as _0x473bf3}from'ckeditor5/src/ui';import _0x54b57d from'../../revisiontracker';import _0x5b1d65 from'./revisionhistorysaverevisionformview';import{getTranslation as _0x5e3151}from'../../utils/common-translations';export default class u extends _0x6ff5e5{static get[_0x3ec8('0x1a')](){return'RevisionHistoryUI';}static get['requires'](){return[_0x54b57d];}[_0x3ec8('0x18')](){const _0x188897=this['editor'],_0x1d0050=_0x188897[_0x3ec8('0x1f')]['get'](_0x3ec8('0x1c'));_0x188897['ui']['componentFactory'][_0x3ec8('0x4')]('revisionHistory',_0x2605dc=>{const _0xf55153=_0x473bf3(_0x2605dc),_0xd5bdd0=_0xf55153['panelView'][_0x3ec8('0x8')],_0x4baccf=new _0x52aae3(_0x2605dc),_0x13d20c=new _0x5c647f(_0x2605dc),_0x28fb33=new _0x3d3ec1(_0x2605dc),_0x3ffdc4=new _0x5c647f(_0x2605dc),_0x39f1bf=new _0x3d3ec1(_0x2605dc),_0x375e2a=new _0x5b1d65(_0x2605dc);function _0xb08095(){_0xd5bdd0['length']&&_0xd5bdd0[_0x3ec8('0xd')](0x0),_0xd5bdd0[_0x3ec8('0x4')](_0x4baccf);}function _0x25ff1f(){_0xf55153[_0x3ec8('0xa')]=!0x1,_0x188897[_0x3ec8('0xe')][_0x3ec8('0x17')][_0x3ec8('0x16')]();}return _0xf55153[_0x3ec8('0x14')](_0x3ec8('0x1d'))['to'](_0x1d0050,_0x3ec8('0x1e'),_0x1d0050,'isEnabled',_0x188897,_0x3ec8('0x7'),(_0x4819ea,_0x28abab,_0x64e3a3)=>_0x4819ea&&_0x28abab&&!_0x64e3a3),_0xf55153[_0x3ec8('0x1')]['set']({'icon':_0x21ef75['history'],'label':_0x5e3151(_0x2605dc,'Revision\x20history'),'tooltip':!0x0}),_0x28fb33[_0x3ec8('0x3')]({'label':_0x5e3151(_0x2605dc,_0x3ec8('0xb')),'withText':!0x0}),_0x28fb33[_0x3ec8('0x14')](_0x3ec8('0x1d'))['to'](_0x1d0050,_0x3ec8('0x1e'),_0x1d0050,_0x3ec8('0x1d'),_0x188897,_0x3ec8('0x7'),(_0x971e5d,_0x21f45c,_0x1a62cf)=>_0x971e5d&&_0x21f45c&&!_0x1a62cf),_0x28fb33['on']('execute',()=>function(){_0xd5bdd0['length']&&_0xd5bdd0[_0x3ec8('0xd')](0x0),(_0x375e2a[_0x3ec8('0x10')](),_0xd5bdd0[_0x3ec8('0x4')](_0x375e2a),_0x375e2a[_0x3ec8('0x16')]());}()),_0x39f1bf['set']({'label':_0x5e3151(_0x2605dc,_0x3ec8('0xc')),'withText':!0x0}),_0x39f1bf['bind'](_0x3ec8('0x1d'))['to'](_0x1d0050,'isReady',_0x188897,'isReadOnly',(_0xe89e53,_0x4eab02)=>_0xe89e53&&!_0x4eab02),_0x39f1bf['on'](_0x3ec8('0x13'),()=>{_0x188897[_0x3ec8('0x6')][_0x3ec8('0x12')](_0x3ec8('0xf'))['showRevisionViewerCallback'](),_0x25ff1f();}),_0x13d20c[_0x3ec8('0x8')]['add'](_0x28fb33),_0x3ffdc4[_0x3ec8('0x8')][_0x3ec8('0x4')](_0x39f1bf),_0x4baccf[_0x3ec8('0x2')][_0x3ec8('0x19')]([_0x13d20c,_0x3ffdc4]),_0xf55153['on'](_0x3ec8('0x0'),()=>_0xb08095()),_0x375e2a['saveButtonView'][_0x3ec8('0x14')](_0x3ec8('0x1d'))['to'](_0x1d0050,_0x3ec8('0x1e'),_0x1d0050,'isEnabled',_0x188897,'isReadOnly',(_0x2c44e5,_0x463cb9,_0x344045)=>_0x2c44e5&&_0x463cb9&&!_0x344045),_0x375e2a['on'](_0x3ec8('0x9'),()=>(_0x188897[_0x3ec8('0x1f')][_0x3ec8('0x12')](_0x54b57d)[_0x3ec8('0x15')]({'name':_0x375e2a[_0x3ec8('0x11')]}),void _0x25ff1f())),_0x375e2a['on'](_0x3ec8('0x1b'),()=>_0xb08095()),_0x375e2a[_0x3ec8('0x5')](),_0xb08095(),_0xf55153;});}}
23
+ const _0x4c64=['RevisionHistoryUI','Save\x20current\x20revision','isOpen','revisionHistory','isReadOnly','set','editing','Open\x20revision\x20history','submit','items','config','RevisionTracker','bind','showRevisionViewerCallback','remove','revisionName','get','children','reset','addMany','isEnabled','saveButtonView','add','editor','focus','plugins','componentFactory','pluginName','Revision\x20history','saveRevision','isReady','view','execute'];(function(_0x40b548,_0x4c64a0){const _0x394116=function(_0x26ba99){while(--_0x26ba99){_0x40b548['push'](_0x40b548['shift']());}};_0x394116(++_0x4c64a0);}(_0x4c64,0x174));const _0x3941=function(_0x40b548,_0x4c64a0){_0x40b548=_0x40b548-0x0;let _0x394116=_0x4c64[_0x40b548];return _0x394116;};import{Plugin as _0x314374,icons as _0x3e9c24}from'ckeditor5/src/core';import{ListView as _0x34c13a,ListItemView as _0x4b4771,ButtonView as _0x19d4e9,createDropdown as _0x442693}from'ckeditor5/src/ui';import _0x5500fc from'../../revisiontracker';import _0x2dc11c from'./revisionhistorysaverevisionformview';import{getTranslation as _0x5000c0}from'../../utils/common-translations';export default class u extends _0x314374{static get[_0x3941('0x12')](){return _0x3941('0x18');}static get['requires'](){return[_0x5500fc];}['init'](){const _0x2a4b69=this[_0x3941('0xe')],_0x2eb59b=_0x2a4b69['plugins'][_0x3941('0x7')](_0x3941('0x2'));_0x2a4b69['ui'][_0x3941('0x11')]['add'](_0x3941('0x1b'),_0x3a944c=>{const _0x44e1a2=_0x442693(_0x3a944c),_0x5615e8=_0x44e1a2['panelView']['children'],_0x384956=new _0x34c13a(_0x3a944c),_0x51ee2b=new _0x4b4771(_0x3a944c),_0x3d482a=new _0x19d4e9(_0x3a944c),_0x4c8d45=new _0x4b4771(_0x3a944c),_0x321751=new _0x19d4e9(_0x3a944c),_0x1fd0e6=new _0x2dc11c(_0x3a944c);function _0x2444ff(){_0x5615e8['length']&&_0x5615e8[_0x3941('0x5')](0x0),_0x5615e8['add'](_0x384956);}function _0x3d6538(){_0x44e1a2[_0x3941('0x1a')]=!0x1,_0x2a4b69[_0x3941('0x1e')][_0x3941('0x16')][_0x3941('0xf')]();}return _0x44e1a2[_0x3941('0x3')]('isEnabled')['to'](_0x2eb59b,'isReady',_0x2eb59b,_0x3941('0xb'),_0x2a4b69,_0x3941('0x1c'),(_0x3aaab0,_0x125fdb,_0x5bb5cc)=>_0x3aaab0&&_0x125fdb&&!_0x5bb5cc),_0x44e1a2['buttonView'][_0x3941('0x1d')]({'icon':_0x3e9c24['history'],'label':_0x5000c0(_0x3a944c,_0x3941('0x13')),'tooltip':!0x0}),_0x3d482a[_0x3941('0x1d')]({'label':_0x5000c0(_0x3a944c,_0x3941('0x19')),'withText':!0x0}),_0x3d482a[_0x3941('0x3')]('isEnabled')['to'](_0x2eb59b,'isReady',_0x2eb59b,_0x3941('0xb'),_0x2a4b69,_0x3941('0x1c'),(_0x6243f6,_0x595025,_0x25ebad)=>_0x6243f6&&_0x595025&&!_0x25ebad),_0x3d482a['on'](_0x3941('0x17'),()=>function(){_0x5615e8['length']&&_0x5615e8[_0x3941('0x5')](0x0),(_0x1fd0e6[_0x3941('0x9')](),_0x5615e8[_0x3941('0xd')](_0x1fd0e6),_0x1fd0e6[_0x3941('0xf')]());}()),_0x321751['set']({'label':_0x5000c0(_0x3a944c,_0x3941('0x1f')),'withText':!0x0}),_0x321751[_0x3941('0x3')](_0x3941('0xb'))['to'](_0x2eb59b,_0x3941('0x15'),_0x2a4b69,_0x3941('0x1c'),(_0x304ff9,_0x358f05)=>_0x304ff9&&!_0x358f05),_0x321751['on'](_0x3941('0x17'),()=>{_0x2a4b69[_0x3941('0x1')][_0x3941('0x7')](_0x3941('0x1b'))[_0x3941('0x4')](),_0x3d6538();}),_0x51ee2b[_0x3941('0x8')][_0x3941('0xd')](_0x3d482a),_0x4c8d45[_0x3941('0x8')][_0x3941('0xd')](_0x321751),_0x384956[_0x3941('0x0')][_0x3941('0xa')]([_0x51ee2b,_0x4c8d45]),_0x44e1a2['on']('change:isOpen',()=>_0x2444ff()),_0x1fd0e6[_0x3941('0xc')][_0x3941('0x3')](_0x3941('0xb'))['to'](_0x2eb59b,_0x3941('0x15'),_0x2eb59b,_0x3941('0xb'),_0x2a4b69,_0x3941('0x1c'),(_0x1a8f03,_0x5cd385,_0x2ad70a)=>_0x1a8f03&&_0x5cd385&&!_0x2ad70a),_0x1fd0e6['on'](_0x3941('0x20'),()=>(_0x2a4b69[_0x3941('0x10')]['get'](_0x5500fc)[_0x3941('0x14')]({'name':_0x1fd0e6[_0x3941('0x6')]}),void _0x3d6538())),_0x1fd0e6['on']('cancel',()=>_0x2444ff()),_0x1fd0e6['render'](),_0x2444ff(),_0x44e1a2;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x52e5=['_sidebarView','get','_revisionsRepository','_handleRevisionSelected','revisionHistory.revisionActions','length','editor','selectRevision','highlightRevisions','action','add','restoreRevisionCallback','getRevisionsInDiff','newRevisionId','name','render','diff','revisionSetName','destroy','getRevision','_handleEditorDataReady','isSelected','isEnabled','getLaterVisibleRevision','compare','revisionSelected','getIndex','repository','config','_revisionViewer','listenTo','defaultRevisionActions','select','restoreRevision','element','isVisible','availableRevisionActions','_revisions','pluginName','isReady','init','timePeriodViews','change:diff','data','revisionHistory.viewerSidebarContainer','ready','revisionViews','bind','setName','assign','Compare\x20against\x20selected','_handleRevisionSetName','getEarlierVisibleRevision','_handleDiffChange'];(function(_0x2c85de,_0x52e528){const _0x544d1=function(_0xe2c6fa){while(--_0xe2c6fa){_0x2c85de['push'](_0x2c85de['shift']());}};_0x544d1(++_0x52e528);}(_0x52e5,0x11f));const _0x544d=function(_0x2c85de,_0x52e528){_0x2c85de=_0x2c85de-0x0;let _0x544d1=_0x52e5[_0x2c85de];return _0x544d1;};import{Plugin as _0x47b0a6}from'ckeditor5/src/core';import _0x1c2dc8 from'./revisionssidebarview';import _0x491908 from'../../revisionviewer';export default class w extends _0x47b0a6{static get[_0x544d('0x15')](){return'RevisionsSidebar';}static get['requires'](){return[_0x491908];}constructor(_0x12feb5){super(_0x12feb5),this[_0x544d('0xc')]=_0x12feb5['plugins']['get'](_0x491908),this['_revisionsRepository']=this[_0x544d('0xc')][_0x544d('0xa')],this['_sidebarView']=null;}[_0x544d('0x17')](){const _0x5929a7=this['_revisionsRepository'][_0x544d('0x14')],_0x25aa27=this['_createRevisionActions'](),_0x2feb6a=this[_0x544d('0x2b')]['config'][_0x544d('0x26')](_0x544d('0x1b'));this[_0x544d('0x25')]=new _0x1c2dc8(this[_0x544d('0x2b')]['locale'],_0x5929a7,_0x25aa27),this[_0x544d('0x25')]['on'](_0x544d('0x8'),this[_0x544d('0x28')][_0x544d('0x1e')](this)),this[_0x544d('0x25')]['on'](_0x544d('0x0'),this[_0x544d('0x22')][_0x544d('0x1e')](this)),this['_sidebarView'][_0x544d('0x1e')]('isEnabled')['to'](this[_0x544d('0xc')]),this[_0x544d('0x25')][_0x544d('0x18')]['on'](_0x544d('0x2f'),(_0x13a44c,_0x107340)=>{_0x107340[_0x544d('0x1d')]['on'](_0x544d('0x2f'),(_0x626659,_0x947b8)=>{_0x947b8[_0x544d('0x1e')](_0x544d('0x5'),_0x544d('0x16'))['to'](this['_revisionViewer']);});}),this[_0x544d('0x25')][_0x544d('0x34')](),this[_0x544d('0xd')](this[_0x544d('0x2b')][_0x544d('0x1a')],_0x544d('0x1c'),this[_0x544d('0x3')][_0x544d('0x1e')](this)),this[_0x544d('0xd')](this[_0x544d('0xc')],_0x544d('0x19'),this['_handleDiffChange'][_0x544d('0x1e')](this)),_0x2feb6a['appendChild'](this['_sidebarView'][_0x544d('0x11')]);}[_0x544d('0x1')](){this[_0x544d('0x25')]['element']['remove'](),this[_0x544d('0x25')][_0x544d('0x1')]();}[_0x544d('0x3')](){const _0x57f42b=this[_0x544d('0x27')][_0x544d('0x2')](0x0);if(_0x57f42b){const _0x5dc7f9=this[_0x544d('0x27')][_0x544d('0x23')](_0x57f42b['id']);this['_revisionViewer'][_0x544d('0x7')](_0x57f42b,_0x5dc7f9);}}[_0x544d('0x28')](_0x481d1e,_0x302a8b){const _0x5a419d=this['_revisionsRepository'][_0x544d('0x2')](_0x302a8b['id']),_0x2a1ca0=this[_0x544d('0x27')][_0x544d('0x23')](_0x5a419d['id']);this[_0x544d('0xc')]['compare'](_0x5a419d,_0x2a1ca0);}[_0x544d('0x22')](_0x1f8110,_0x3635a4){this[_0x544d('0x27')][_0x544d('0x2')](_0x3635a4['id'])[_0x544d('0x1f')](_0x3635a4[_0x544d('0x33')]);}[_0x544d('0x24')](_0x3ac8e8,_0x408f25,_0x48f30a){const _0x5cd4d3=this[_0x544d('0x27')][_0x544d('0x31')](_0x48f30a);_0x5cd4d3[_0x544d('0x2a')]>0x2?(this[_0x544d('0x25')]['highlightRevisions'](_0x5cd4d3),this[_0x544d('0x25')][_0x544d('0x2c')](null)):(this[_0x544d('0x25')][_0x544d('0x2d')]([]),this['_sidebarView']['selectRevision'](_0x5cd4d3[0x0]));}['_createRevisionActions'](){const _0x4058fa=this[_0x544d('0x2b')],_0x1c2f1f=w[_0x544d('0x13')],_0x19acd9=_0x4058fa[_0x544d('0xb')][_0x544d('0x26')](_0x544d('0x29'))||w[_0x544d('0xe')];if(_0x19acd9['length'])return _0x19acd9['map'](_0x501e7b=>{const _0x42e6be='string'==typeof _0x501e7b?Object[_0x544d('0x20')]({},_0x1c2f1f[_0x501e7b]):_0x501e7b;return _0x42e6be[_0x544d('0x2e')]=_0x42e6be['action'][_0x544d('0x1e')](this,_0x4058fa),_0x42e6be['isVisible']&&(_0x42e6be[_0x544d('0x12')]=_0x42e6be[_0x544d('0x12')][_0x544d('0x1e')](this,_0x4058fa)),_0x42e6be;});}}w[_0x544d('0x13')]={'compareAgainstSelected':{'name':_0x544d('0x21'),'action':({plugins:_0x54b4c8},_0x1f17a9)=>{const _0x46a323=_0x54b4c8['get'](_0x491908),_0x4a16ff=_0x46a323[_0x544d('0xa')];let _0x2eb62a=_0x46a323['diff'][_0x544d('0x32')],_0x5d2146=_0x1f17a9['id'];_0x4a16ff['getIndex'](_0x2eb62a)>_0x4a16ff[_0x544d('0x9')](_0x5d2146)&&([_0x2eb62a,_0x5d2146]=[_0x5d2146,_0x2eb62a]),_0x46a323[_0x544d('0x7')](_0x2eb62a,_0x5d2146);},'isVisible':({plugins:_0x2ff127},_0x283f6b)=>{const _0x12cfab=_0x2ff127[_0x544d('0x26')](_0x491908);return!(_0x12cfab['repository'][_0x544d('0x31')](_0x12cfab[_0x544d('0x35')])['length']>0x2)&&!_0x283f6b[_0x544d('0x4')];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x4c53b0,{id:_0x1cb133})=>{_0x4c53b0['config'][_0x544d('0x26')]('revisionHistory')[_0x544d('0x30')](_0x1cb133);},'isVisible':({plugins:_0x222289},_0x9f55cc)=>!!_0x222289['get'](_0x491908)[_0x544d('0xa')][_0x544d('0x6')](_0x9f55cc['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x3bbafd},{id:_0x3e5d64,revisionNameView:_0x1c5be1})=>{const _0x547a38=_0x3bbafd[_0x544d('0x26')](_0x491908),_0x370965=_0x547a38[_0x544d('0xa')][_0x544d('0x23')](_0x3e5d64);_0x547a38[_0x544d('0x7')](_0x3e5d64,_0x370965),_0x1c5be1['focus'](),_0x1c5be1['fieldView'][_0x544d('0xf')]();}}},w[_0x544d('0xe')]=['compareAgainstSelected',_0x544d('0x10'),'nameRevision'];
23
+ const _0x3833=['bind','config','isVisible','highlightRevisions','restoreRevision','plugins','data','getEarlierVisibleRevision','Restore\x20this\x20revision','requires','editor','_revisionsRepository','length','newRevisionId','pluginName','destroy','getLaterVisibleRevision','_revisionViewer','nameRevision','listenTo','render','getRevisionsInDiff','timePeriodViews','remove','repository','_handleEditorDataReady','compareAgainstSelected','getIndex','init','change:diff','_handleDiffChange','diff','add','fieldView','ready','Name\x20this\x20revision','getRevision','assign','revisionHistory.viewerSidebarContainer','_sidebarView','revisionHistory.revisionActions','isEnabled','revisionHistory','get','Compare\x20against\x20selected','isReady','_handleRevisionSelected','appendChild','selectRevision','RevisionsSidebar','availableRevisionActions','compare','defaultRevisionActions','action','element','_handleRevisionSetName','setName'];(function(_0xcbfee2,_0x3833b0){const _0x9ab052=function(_0x355ee6){while(--_0x355ee6){_0xcbfee2['push'](_0xcbfee2['shift']());}};_0x9ab052(++_0x3833b0);}(_0x3833,0x99));const _0x9ab0=function(_0xcbfee2,_0x3833b0){_0xcbfee2=_0xcbfee2-0x0;let _0x9ab052=_0x3833[_0xcbfee2];return _0x9ab052;};import{Plugin as _0x23ee5d}from'ckeditor5/src/core';import _0x4e9a1e from'./revisionssidebarview';import _0x4e9931 from'../../revisionviewer';export default class w extends _0x23ee5d{static get[_0x9ab0('0x20')](){return _0x9ab0('0xa');}static get[_0x9ab0('0x1b')](){return[_0x4e9931];}constructor(_0x3fa378){super(_0x3fa378),this[_0x9ab0('0x23')]=_0x3fa378[_0x9ab0('0x17')][_0x9ab0('0x4')](_0x4e9931),this[_0x9ab0('0x1d')]=this['_revisionViewer']['repository'],this[_0x9ab0('0x0')]=null;}[_0x9ab0('0x2e')](){const _0x292f9d=this[_0x9ab0('0x1d')]['_revisions'],_0x1159cb=this['_createRevisionActions'](),_0x514e12=this[_0x9ab0('0x1c')][_0x9ab0('0x13')][_0x9ab0('0x4')](_0x9ab0('0x38'));this[_0x9ab0('0x0')]=new _0x4e9a1e(this['editor']['locale'],_0x292f9d,_0x1159cb),this['_sidebarView']['on']('revisionSelected',this[_0x9ab0('0x7')][_0x9ab0('0x12')](this)),this[_0x9ab0('0x0')]['on']('revisionSetName',this[_0x9ab0('0x10')]['bind'](this)),this['_sidebarView'][_0x9ab0('0x12')](_0x9ab0('0x2'))['to'](this[_0x9ab0('0x23')]),this['_sidebarView'][_0x9ab0('0x28')]['on'](_0x9ab0('0x32'),(_0x10baf5,_0x50fa58)=>{_0x50fa58['revisionViews']['on'](_0x9ab0('0x32'),(_0xfc1df4,_0x53214a)=>{_0x53214a[_0x9ab0('0x12')](_0x9ab0('0x2'),_0x9ab0('0x6'))['to'](this[_0x9ab0('0x23')]);});}),this[_0x9ab0('0x0')][_0x9ab0('0x26')](),this['listenTo'](this[_0x9ab0('0x1c')][_0x9ab0('0x18')],_0x9ab0('0x34'),this[_0x9ab0('0x2b')][_0x9ab0('0x12')](this)),this[_0x9ab0('0x25')](this[_0x9ab0('0x23')],_0x9ab0('0x2f'),this[_0x9ab0('0x30')][_0x9ab0('0x12')](this)),_0x514e12[_0x9ab0('0x8')](this['_sidebarView'][_0x9ab0('0xf')]);}[_0x9ab0('0x21')](){this[_0x9ab0('0x0')]['element'][_0x9ab0('0x29')](),this['_sidebarView'][_0x9ab0('0x21')]();}[_0x9ab0('0x2b')](){const _0x52a6ea=this[_0x9ab0('0x1d')]['getRevision'](0x0);if(_0x52a6ea){const _0x5c6c90=this[_0x9ab0('0x1d')][_0x9ab0('0x19')](_0x52a6ea['id']);this[_0x9ab0('0x23')][_0x9ab0('0xc')](_0x52a6ea,_0x5c6c90);}}[_0x9ab0('0x7')](_0x287103,_0x5d0706){const _0x4de6fa=this[_0x9ab0('0x1d')]['getRevision'](_0x5d0706['id']),_0x2ef64d=this[_0x9ab0('0x1d')][_0x9ab0('0x19')](_0x4de6fa['id']);this['_revisionViewer'][_0x9ab0('0xc')](_0x4de6fa,_0x2ef64d);}[_0x9ab0('0x10')](_0x509a3a,_0x5809c9){this['_revisionsRepository'][_0x9ab0('0x36')](_0x5809c9['id'])[_0x9ab0('0x11')](_0x5809c9['name']);}[_0x9ab0('0x30')](_0x10dfee,_0x5ca3d8,_0x201356){const _0x48ecd2=this[_0x9ab0('0x1d')]['getRevisionsInDiff'](_0x201356);_0x48ecd2[_0x9ab0('0x1e')]>0x2?(this['_sidebarView'][_0x9ab0('0x15')](_0x48ecd2),this[_0x9ab0('0x0')][_0x9ab0('0x9')](null)):(this[_0x9ab0('0x0')][_0x9ab0('0x15')]([]),this[_0x9ab0('0x0')]['selectRevision'](_0x48ecd2[0x0]));}['_createRevisionActions'](){const _0x5db121=this[_0x9ab0('0x1c')],_0x283bb9=w[_0x9ab0('0xb')],_0x169fd8=_0x5db121['config'][_0x9ab0('0x4')](_0x9ab0('0x1'))||w[_0x9ab0('0xd')];if(_0x169fd8[_0x9ab0('0x1e')])return _0x169fd8['map'](_0x18c7d3=>{const _0x5c1cd4='string'==typeof _0x18c7d3?Object[_0x9ab0('0x37')]({},_0x283bb9[_0x18c7d3]):_0x18c7d3;return _0x5c1cd4[_0x9ab0('0xe')]=_0x5c1cd4[_0x9ab0('0xe')][_0x9ab0('0x12')](this,_0x5db121),_0x5c1cd4[_0x9ab0('0x14')]&&(_0x5c1cd4[_0x9ab0('0x14')]=_0x5c1cd4['isVisible'][_0x9ab0('0x12')](this,_0x5db121)),_0x5c1cd4;});}}w[_0x9ab0('0xb')]={'compareAgainstSelected':{'name':_0x9ab0('0x5'),'action':({plugins:_0x5e93d0},_0x4001bd)=>{const _0x2ccafb=_0x5e93d0[_0x9ab0('0x4')](_0x4e9931),_0x1b67b3=_0x2ccafb[_0x9ab0('0x2a')];let _0x3650bf=_0x2ccafb[_0x9ab0('0x31')][_0x9ab0('0x1f')],_0x1481aa=_0x4001bd['id'];_0x1b67b3[_0x9ab0('0x2d')](_0x3650bf)>_0x1b67b3[_0x9ab0('0x2d')](_0x1481aa)&&([_0x3650bf,_0x1481aa]=[_0x1481aa,_0x3650bf]),_0x2ccafb[_0x9ab0('0xc')](_0x3650bf,_0x1481aa);},'isVisible':({plugins:_0x30cd98},_0x31641c)=>{const _0x2405b8=_0x30cd98[_0x9ab0('0x4')](_0x4e9931);return!(_0x2405b8[_0x9ab0('0x2a')][_0x9ab0('0x27')](_0x2405b8[_0x9ab0('0x31')])[_0x9ab0('0x1e')]>0x2)&&!_0x31641c['isSelected'];}},'restoreRevision':{'name':_0x9ab0('0x1a'),'action':(_0x2d7d91,{id:_0xa4fc7b})=>{_0x2d7d91[_0x9ab0('0x13')][_0x9ab0('0x4')](_0x9ab0('0x3'))['restoreRevisionCallback'](_0xa4fc7b);},'isVisible':({plugins:_0x4d893c},_0x15d322)=>!!_0x4d893c['get'](_0x4e9931)[_0x9ab0('0x2a')][_0x9ab0('0x22')](_0x15d322['id'])},'nameRevision':{'name':_0x9ab0('0x35'),'action':({plugins:_0x29247d},{id:_0x4d392a,revisionNameView:_0x11702f})=>{const _0x1b4cc9=_0x29247d[_0x9ab0('0x4')](_0x4e9931),_0x1e4631=_0x1b4cc9[_0x9ab0('0x2a')][_0x9ab0('0x19')](_0x4d392a);_0x1b4cc9['compare'](_0x4d392a,_0x1e4631),_0x11702f['focus'](),_0x11702f[_0x9ab0('0x33')]['select']();}}},w[_0x9ab0('0xd')]=[_0x9ab0('0x2c'),_0x9ab0('0x16'),_0x9ab0('0x24')];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2f1d=['span','ck-reset_all','content','div','ck-revision-history-sidebar__header__label','Revision\x20history'];(function(_0x24e24d,_0x2f1d82){const _0xfef0e6=function(_0x5008c5){while(--_0x5008c5){_0x24e24d['push'](_0x24e24d['shift']());}};_0xfef0e6(++_0x2f1d82);}(_0x2f1d,0xff));const _0xfef0=function(_0x24e24d,_0x2f1d82){_0x24e24d=_0x24e24d-0x0;let _0xfef0e6=_0x2f1d[_0x24e24d];return _0xfef0e6;};import{View as _0x56a614,IconView as _0x3c2d11}from'ckeditor5/src/ui';import{getTranslation as _0x2bb88c}from'../../utils/common-translations';import{icons as _0x9998be}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rr extends _0x56a614{constructor(_0x579337){super(_0x579337);const _0x2fac66=new _0x3c2d11();_0x2fac66[_0xfef0('0x5')]=_0x9998be['history'],this['setTemplate']({'tag':_0xfef0('0x0'),'attributes':{'class':['ck',_0xfef0('0x4'),'ck-revision-history-sidebar__header']},'children':[_0x2fac66,{'tag':_0xfef0('0x3'),'attributes':{'class':['ck',_0xfef0('0x1')]},'children':[_0x2bb88c(_0x579337,_0xfef0('0x2'))]}]});}}
23
+ const _0x1783=['span','content','div','history','ck-revision-history-sidebar__header__label','Revision\x20history','ck-reset_all'];(function(_0x2b3e58,_0x17839e){const _0x436333=function(_0x4e96f4){while(--_0x4e96f4){_0x2b3e58['push'](_0x2b3e58['shift']());}};_0x436333(++_0x17839e);}(_0x1783,0x119));const _0x4363=function(_0x2b3e58,_0x17839e){_0x2b3e58=_0x2b3e58-0x0;let _0x436333=_0x1783[_0x2b3e58];return _0x436333;};import{View as _0x36f8d0,IconView as _0x528122}from'ckeditor5/src/ui';import{getTranslation as _0x5ab817}from'../../utils/common-translations';import{icons as _0x11694e}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rr extends _0x36f8d0{constructor(_0x147d66){super(_0x147d66);const _0x2eda3f=new _0x528122();_0x2eda3f[_0x4363('0x0')]=_0x11694e[_0x4363('0x2')],this['setTemplate']({'tag':_0x4363('0x1'),'attributes':{'class':['ck',_0x4363('0x5'),'ck-revision-history-sidebar__header']},'children':[_0x2eda3f,{'tag':_0x4363('0x6'),'attributes':{'class':['ck',_0x4363('0x3')]},'children':[_0x5ab817(_0x147d66,_0x4363('0x4'))]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2c34=['revisionViews','startDate','_revisionActions','remove','ck-revision-history-sidebar__time-period','div','locale','span','localizedPeriodName','ck-revision-history-sidebar__time-period__revisions','createCollection','addRevision','setName','uiLanguage','select','find','removeRevision','setTemplate'];(function(_0x2a501d,_0x2c3413){const _0x8e48ec=function(_0xa2c30c){while(--_0xa2c30c){_0x2a501d['push'](_0x2a501d['shift']());}};_0x8e48ec(++_0x2c3413);}(_0x2c34,0x115));const _0x8e48=function(_0x2a501d,_0x2c3413){_0x2a501d=_0x2a501d-0x0;let _0x8e48ec=_0x2c34[_0x2a501d];return _0x8e48ec;};import{View as _0x1fdc6c}from'ckeditor5/src/ui';import _0x245a13 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x5e2717}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x1fdc6c{constructor(_0x512992,_0x40c5e6,_0x2cc098){super(_0x512992);const _0x55ff73=_0x5e2717(_0x40c5e6,this[_0x8e48('0x11')][_0x8e48('0x6')])[_0x8e48('0x1')];this[_0x8e48('0xc')]=_0x40c5e6,this[_0x8e48('0xb')]=this[_0x8e48('0x3')](),this['_revisionActions']=_0x2cc098,this[_0x8e48('0xb')]['delegate'](_0x8e48('0x7'))['to'](this),this[_0x8e48('0xb')]['delegate'](_0x8e48('0x5'))['to'](this),this[_0x8e48('0xa')]({'tag':'div','attributes':{'class':['ck',_0x8e48('0xf')]},'children':[{'tag':_0x8e48('0x0'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x55ff73}]},{'tag':_0x8e48('0x10'),'attributes':{'class':['ck',_0x8e48('0x2')]},'children':this['revisionViews']}]});}[_0x8e48('0x4')](_0x2bdff5){const _0x4f7257=new _0x245a13(this[_0x8e48('0x11')],_0x2bdff5,this[_0x8e48('0xd')]);this[_0x8e48('0xb')]['add'](_0x4f7257);}[_0x8e48('0x9')](_0x532f37){const _0x5c6b6c=this[_0x8e48('0xb')][_0x8e48('0x8')](_0x38308b=>_0x38308b['id']===_0x532f37['id']);this[_0x8e48('0xb')][_0x8e48('0xe')](_0x5c6b6c);}}
23
+ const _0x765d=['locale','span','select','setTemplate','createCollection','ck-revision-history-sidebar__time-period__revisions','ck-revision-history-sidebar__time-period__label','add','remove','removeRevision','_revisionActions','div','addRevision','uiLanguage','setName','revisionViews','startDate','ck-revision-history-sidebar__time-period'];(function(_0x2bcc6e,_0x765dc1){const _0x197142=function(_0x52dd51){while(--_0x52dd51){_0x2bcc6e['push'](_0x2bcc6e['shift']());}};_0x197142(++_0x765dc1);}(_0x765d,0x11c));const _0x1971=function(_0x2bcc6e,_0x765dc1){_0x2bcc6e=_0x2bcc6e-0x0;let _0x197142=_0x765d[_0x2bcc6e];return _0x197142;};import{View as _0x5a899d}from'ckeditor5/src/ui';import _0x3c3e14 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x4915ba}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x5a899d{constructor(_0x3f44e3,_0x4277d0,_0x1d40ff){super(_0x3f44e3);const _0x1acaba=_0x4915ba(_0x4277d0,this[_0x1971('0x4')][_0x1971('0x11')])['localizedPeriodName'];this[_0x1971('0x2')]=_0x4277d0,this[_0x1971('0x1')]=this[_0x1971('0x8')](),this['_revisionActions']=_0x1d40ff,this[_0x1971('0x1')]['delegate'](_0x1971('0x6'))['to'](this),this[_0x1971('0x1')]['delegate'](_0x1971('0x0'))['to'](this),this[_0x1971('0x7')]({'tag':_0x1971('0xf'),'attributes':{'class':['ck',_0x1971('0x3')]},'children':[{'tag':_0x1971('0x5'),'attributes':{'class':['ck',_0x1971('0xa')]},'children':[{'text':_0x1acaba}]},{'tag':_0x1971('0xf'),'attributes':{'class':['ck',_0x1971('0x9')]},'children':this[_0x1971('0x1')]}]});}[_0x1971('0x10')](_0x36245b){const _0x4ad388=new _0x3c3e14(this['locale'],_0x36245b,this[_0x1971('0xe')]);this[_0x1971('0x1')][_0x1971('0xb')](_0x4ad388);}[_0x1971('0xd')](_0xdd29fd){const _0x13a84d=this[_0x1971('0x1')]['find'](_0x2bae93=>_0x2bae93['id']===_0xdd29fd['id']);this['revisionViews'][_0x1971('0xc')](_0x13a84d);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x46e2=['startDate','setTemplate','render','delegate','revisionSelected','timePeriodViews','ck-reset','revisionViews','_revisionActions','some','_removeRevision','locale','highlightRevisions','setName','add','highlight','div','getTime','select','removeRevision','_revisions','_getTimePeriodViewByStartDate','_addRevision','ck-revision-history-sidebar__timeline','find','fire','isEnabled','remove','map','createdAt','revisionSetName'];(function(_0x4b6237,_0x46e273){const _0x3707d2=function(_0x325733){while(--_0x325733){_0x4b6237['push'](_0x4b6237['shift']());}};_0x3707d2(++_0x46e273);}(_0x46e2,0x1a0));const _0x3707=function(_0x4b6237,_0x46e273){_0x4b6237=_0x4b6237-0x0;let _0x3707d2=_0x46e2[_0x4b6237];return _0x3707d2;};import{View as _0xa7fce}from'ckeditor5/src/ui';import _0x505aac from'./revisionssidebartimeperiodview';import _0x1d358a from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x1d6dd5}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0xa7fce{constructor(_0x5061f5,_0x31b951,_0x34da78){super(_0x5061f5);const _0x3c3df5=this['bindTemplate'];this[_0x3707('0x17')]=this['createCollection'](),this[_0x3707('0x17')][_0x3707('0x15')](_0x3707('0x5'))['to'](this),this['timePeriodViews']['delegate'](_0x3707('0x0'))['to'](this),this[_0x3707('0x7')]=_0x31b951,this[_0x3707('0x1a')]=_0x34da78,this['on'](_0x3707('0x5'),(_0x5ce1a0,_0x4e4746)=>{this['fire'](_0x3707('0x16'),_0x4e4746);}),this['on']('setName',(_0x3e3883,_0x401bca)=>{this[_0x3707('0xc')](_0x3707('0x11'),_0x401bca);}),this['set'](_0x3707('0xd'),!0x1),this[_0x3707('0x13')]({'tag':'div','attributes':{'class':['ck',_0x3707('0x18'),'ck-rounded-corners','ck-revision-history-sidebar']},'children':[new _0x1d358a(_0x5061f5),{'tag':_0x3707('0x3'),'attributes':{'class':['ck',_0x3707('0xa'),_0x3c3df5['if'](_0x3707('0xd'),'ck-disabled',_0x365583=>!_0x365583)]},'children':this[_0x3707('0x17')]}]});}['render'](){super[_0x3707('0x14')]();for(const _0x2d5570 of this[_0x3707('0x7')])this['_addRevision'](_0x2d5570);this['_revisions']['on']('add',(_0x53896d,_0x226ac8)=>{this['_addRevision'](_0x226ac8);}),this[_0x3707('0x7')]['on'](_0x3707('0xe'),(_0x477667,_0x2f344f)=>{this[_0x3707('0x1c')](_0x2f344f);});}get[_0x3707('0x19')](){return this[_0x3707('0x17')]['map'](_0x4955ae=>_0x4955ae[_0x3707('0x19')][_0x3707('0xf')](_0x16b324=>_0x16b324))['flat']();}['selectRevision'](_0x5c91d2){for(const _0x202d2c of this[_0x3707('0x19')])_0x5c91d2&&_0x5c91d2['id']===_0x202d2c['id']?_0x202d2c[_0x3707('0x5')]():_0x202d2c['deselect']();}[_0x3707('0x1e')](_0x26b935){for(const _0x1f6f23 of this[_0x3707('0x19')])_0x26b935[_0x3707('0x1b')](({id:_0x1d7ae4})=>_0x1d7ae4===_0x1f6f23['id'])?_0x1f6f23[_0x3707('0x2')]():_0x1f6f23['unhighlight']();}[_0x3707('0x9')](_0x535ae2){const _0x9c61ed=_0x1d6dd5(_0x535ae2[_0x3707('0x10')],this[_0x3707('0x1d')]['uiLanguage'])[_0x3707('0x12')];let _0x1cd584=this[_0x3707('0x17')]['get'](0x0);_0x1cd584&&_0x1cd584['startDate'][_0x3707('0x4')]()===_0x9c61ed[_0x3707('0x4')]()||(_0x1cd584=new _0x505aac(this[_0x3707('0x1d')],_0x9c61ed,this[_0x3707('0x1a')]),this['timePeriodViews'][_0x3707('0x1')](_0x1cd584)),_0x1cd584['addRevision'](_0x535ae2);}['_removeRevision'](_0x1ebd04){const _0x3ccb4b=_0x1d6dd5(_0x1ebd04['createdAt'],this[_0x3707('0x1d')]['uiLanguage'])[_0x3707('0x12')];this[_0x3707('0x8')](_0x3ccb4b)[_0x3707('0x6')](_0x1ebd04);}['_getTimePeriodViewByStartDate'](_0x19fbed){return this[_0x3707('0x17')][_0x3707('0xb')](_0x5cb959=>_0x5cb959[_0x3707('0x12')][_0x3707('0x4')]()===_0x19fbed['getTime']());}}
23
+ const _0x5b7b=['deselect','_revisionActions','some','flat','_removeRevision','addRevision','_revisions','highlight','map','getTime','isEnabled','locale','setName','createdAt','div','ck-rounded-corners','startDate','selectRevision','_getTimePeriodViewByStartDate','revisionViews','select','add','fire','_addRevision','revisionSelected','delegate','find','revisionSetName','remove','ck-revision-history-sidebar','ck-revision-history-sidebar__timeline','ck-reset','set','timePeriodViews','bindTemplate','uiLanguage'];(function(_0x10b987,_0x5b7b81){const _0x285e22=function(_0x1d29bb){while(--_0x1d29bb){_0x10b987['push'](_0x10b987['shift']());}};_0x285e22(++_0x5b7b81);}(_0x5b7b,0xaa));const _0x285e=function(_0x10b987,_0x5b7b81){_0x10b987=_0x10b987-0x0;let _0x285e22=_0x5b7b[_0x10b987];return _0x285e22;};import{View as _0x56624d}from'ckeditor5/src/ui';import _0xc8d73f from'./revisionssidebartimeperiodview';import _0x475c82 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x4b6036}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x56624d{constructor(_0x11b8e5,_0x528ac8,_0x2e0e70){super(_0x11b8e5);const _0x2c7599=this[_0x285e('0x8')];this[_0x285e('0x7')]=this['createCollection'](),this[_0x285e('0x7')][_0x285e('0x23')](_0x285e('0x1e'))['to'](this),this[_0x285e('0x7')][_0x285e('0x23')]('setName')['to'](this),this[_0x285e('0x10')]=_0x528ac8,this[_0x285e('0xb')]=_0x2e0e70,this['on']('select',(_0x2176f3,_0x2baf21)=>{this['fire'](_0x285e('0x22'),_0x2baf21);}),this['on'](_0x285e('0x16'),(_0x19bc07,_0x39882a)=>{this[_0x285e('0x20')](_0x285e('0x1'),_0x39882a);}),this[_0x285e('0x6')]('isEnabled',!0x1),this['setTemplate']({'tag':_0x285e('0x18'),'attributes':{'class':['ck',_0x285e('0x5'),_0x285e('0x19'),_0x285e('0x3')]},'children':[new _0x475c82(_0x11b8e5),{'tag':_0x285e('0x18'),'attributes':{'class':['ck',_0x285e('0x4'),_0x2c7599['if'](_0x285e('0x14'),'ck-disabled',_0x144a1b=>!_0x144a1b)]},'children':this[_0x285e('0x7')]}]});}['render'](){super['render']();for(const _0x492351 of this[_0x285e('0x10')])this[_0x285e('0x21')](_0x492351);this[_0x285e('0x10')]['on'](_0x285e('0x1f'),(_0x26e4fb,_0x453ec5)=>{this['_addRevision'](_0x453ec5);}),this['_revisions']['on'](_0x285e('0x2'),(_0x2c90a7,_0xc2f784)=>{this[_0x285e('0xe')](_0xc2f784);});}get[_0x285e('0x1d')](){return this['timePeriodViews'][_0x285e('0x12')](_0x5ed8a4=>_0x5ed8a4[_0x285e('0x1d')][_0x285e('0x12')](_0x25727a=>_0x25727a))[_0x285e('0xd')]();}[_0x285e('0x1b')](_0x34ed81){for(const _0x4bd202 of this[_0x285e('0x1d')])_0x34ed81&&_0x34ed81['id']===_0x4bd202['id']?_0x4bd202['select']():_0x4bd202[_0x285e('0xa')]();}['highlightRevisions'](_0x44f893){for(const _0x25a638 of this[_0x285e('0x1d')])_0x44f893[_0x285e('0xc')](({id:_0x5ebd77})=>_0x5ebd77===_0x25a638['id'])?_0x25a638[_0x285e('0x11')]():_0x25a638['unhighlight']();}[_0x285e('0x21')](_0x4f99f7){const _0x413e98=_0x4b6036(_0x4f99f7[_0x285e('0x17')],this[_0x285e('0x15')]['uiLanguage'])[_0x285e('0x1a')];let _0x35cf96=this[_0x285e('0x7')]['get'](0x0);_0x35cf96&&_0x35cf96[_0x285e('0x1a')][_0x285e('0x13')]()===_0x413e98['getTime']()||(_0x35cf96=new _0xc8d73f(this[_0x285e('0x15')],_0x413e98,this[_0x285e('0xb')]),this[_0x285e('0x7')][_0x285e('0x1f')](_0x35cf96)),_0x35cf96[_0x285e('0xf')](_0x4f99f7);}[_0x285e('0xe')](_0x4f224f){const _0x6ff10b=_0x4b6036(_0x4f224f['createdAt'],this[_0x285e('0x15')][_0x285e('0x9')])[_0x285e('0x1a')];this[_0x285e('0x1c')](_0x6ff10b)['removeRevision'](_0x4f224f);}[_0x285e('0x1c')](_0x52d8c1){return this[_0x285e('0x7')][_0x285e('0x0')](_0x58a104=>_0x58a104[_0x285e('0x1a')][_0x285e('0x13')]()===_0x52d8c1[_0x285e('0x13')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2457=['monthLong','weekdayLong','week','toJSDate','day','year','hasSame','local','minus','fromJSDate','startOf','month'];(function(_0x20d0f9,_0x245797){const _0x51184e=function(_0x5312f5){while(--_0x5312f5){_0x20d0f9['push'](_0x20d0f9['shift']());}};_0x51184e(++_0x245797);}(_0x2457,0xed));const _0x5118=function(_0x20d0f9,_0x245797){_0x20d0f9=_0x20d0f9-0x0;let _0x51184e=_0x2457[_0x20d0f9];return _0x51184e;};import{DateTime as _0x5123fb}from'luxon';export function getDateTimePeriodInfo(_0x5755cc,_0x571c19){const _0x5d9a19=_0x5123fb[_0x5118('0x0')](_0x5755cc)['setLocale'](_0x571c19),_0x145eb4=_0x5123fb[_0x5118('0xa')](),_0x51ce42=_0x145eb4[_0x5118('0xb')]({'days':0x1})[_0x5118('0x1')](_0x5118('0x7'));let _0x2cf43b,_0x47746a;return _0x5d9a19['hasSame'](_0x145eb4,_0x5118('0x7'))?(_0x2cf43b=_0x5d9a19[_0x5118('0x1')](_0x5118('0x7'))['toJSDate'](),_0x47746a=_0x5d9a19['toRelativeCalendar']()):_0x5d9a19[_0x5118('0x9')](_0x51ce42,_0x5118('0x7'))?(_0x2cf43b=_0x51ce42[_0x5118('0x6')](),_0x47746a=_0x5d9a19['toRelativeCalendar']()):_0x5d9a19[_0x5118('0x9')](_0x145eb4,_0x5118('0x5'))?(_0x2cf43b=_0x5d9a19[_0x5118('0x1')]('week')[_0x5118('0x6')](),_0x47746a=_0x5d9a19[_0x5118('0x4')]||''):_0x5d9a19['hasSame'](_0x145eb4,_0x5118('0x8'))?(_0x2cf43b=_0x5d9a19[_0x5118('0x1')](_0x5118('0x2'))[_0x5118('0x6')](),_0x47746a=_0x5d9a19[_0x5118('0x3')]||''):(_0x2cf43b=_0x5d9a19[_0x5118('0x1')](_0x5118('0x8'))[_0x5118('0x6')](),_0x47746a=String(_0x5d9a19[_0x5118('0x8')])),{'startDate':_0x2cf43b,'localizedPeriodName':_0x47746a};}
23
+ const _0x4e7c=['toRelativeCalendar','minus','startOf','toJSDate','local','weekdayLong','day','fromJSDate','hasSame','year','week'];(function(_0x2daa33,_0x4e7c61){const _0x276fb9=function(_0x1743f5){while(--_0x1743f5){_0x2daa33['push'](_0x2daa33['shift']());}};_0x276fb9(++_0x4e7c61);}(_0x4e7c,0x123));const _0x276f=function(_0x2daa33,_0x4e7c61){_0x2daa33=_0x2daa33-0x0;let _0x276fb9=_0x4e7c[_0x2daa33];return _0x276fb9;};import{DateTime as _0x108f25}from'luxon';export function getDateTimePeriodInfo(_0x58f50d,_0x22487e){const _0x2f8401=_0x108f25[_0x276f('0x2')](_0x58f50d)['setLocale'](_0x22487e),_0x5af1aa=_0x108f25[_0x276f('0xa')](),_0x340bf6=_0x5af1aa[_0x276f('0x7')]({'days':0x1})['startOf'](_0x276f('0x1'));let _0x33e7ec,_0x48d5dc;return _0x2f8401[_0x276f('0x3')](_0x5af1aa,_0x276f('0x1'))?(_0x33e7ec=_0x2f8401[_0x276f('0x8')](_0x276f('0x1'))['toJSDate'](),_0x48d5dc=_0x2f8401[_0x276f('0x6')]()):_0x2f8401['hasSame'](_0x340bf6,_0x276f('0x1'))?(_0x33e7ec=_0x340bf6[_0x276f('0x9')](),_0x48d5dc=_0x2f8401['toRelativeCalendar']()):_0x2f8401[_0x276f('0x3')](_0x5af1aa,_0x276f('0x5'))?(_0x33e7ec=_0x2f8401[_0x276f('0x8')](_0x276f('0x5'))[_0x276f('0x9')](),_0x48d5dc=_0x2f8401[_0x276f('0x0')]||''):_0x2f8401[_0x276f('0x3')](_0x5af1aa,_0x276f('0x4'))?(_0x33e7ec=_0x2f8401[_0x276f('0x8')]('month')[_0x276f('0x9')](),_0x48d5dc=_0x2f8401['monthLong']||''):(_0x33e7ec=_0x2f8401[_0x276f('0x8')](_0x276f('0x4'))[_0x276f('0x9')](),_0x48d5dc=String(_0x2f8401[_0x276f('0x4')])),{'startDate':_0x33e7ec,'localizedPeriodName':_0x48d5dc};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x10ec=['set','author','span','_model','ck-annotation','Suggested\x20by','changeId','setTemplate','ck-revision-change__label','div','isSuggestion','type','focus','ck-revision-change','name','Added\x20by','bindTemplate','data','add','Removed\x20by'];(function(_0x26a3f4,_0x10ecc8){const _0x420225=function(_0x276e21){while(--_0x276e21){_0x26a3f4['push'](_0x26a3f4['shift']());}};_0x420225(++_0x10ecc8);}(_0x10ec,0x106));const _0x4202=function(_0x26a3f4,_0x10ecc8){_0x26a3f4=_0x26a3f4-0x0;let _0x420225=_0x10ec[_0x26a3f4];return _0x420225;};import{View as _0x18ab2c}from'ckeditor5/src/ui';import{getTranslation as _0x2a2406}from'../../utils/common-translations';export default class Z extends _0x18ab2c{constructor(_0x4ebef1,_0x1a9efe){super(_0x4ebef1),this[_0x4202('0x1')]=_0x1a9efe,this[_0x4202('0x4')]=_0x1a9efe['id'];const _0x7579ec=this[_0x4202('0xe')],_0x4b22ab=_0x2a2406(_0x4ebef1,_0x1a9efe[_0x4202('0xf')][_0x4202('0x8')]?_0x4202('0x3'):_0x4202('0x10')==_0x1a9efe['type']?_0x4202('0xd'):_0x4202('0x11'));this[_0x4202('0x12')](_0x4202('0x9'),_0x1a9efe[_0x4202('0x9')]),this[_0x4202('0x5')]({'tag':_0x4202('0x7'),'attributes':{'class':[_0x4202('0x2'),_0x4202('0xb'),_0x7579ec['to'](_0x4202('0x9'),_0x489ed9=>'ck-revision-change__'+_0x489ed9)],'tabindex':-0x1},'children':[{'tag':_0x4202('0x0'),'children':[{'tag':'span','attributes':{'class':[_0x4202('0x6')]},'children':[{'text':_0x4b22ab}]},{'text':'\x20'+_0x1a9efe[_0x4202('0x13')][_0x4202('0xc')]}]}]});}[_0x4202('0xa')](){this['element'][_0x4202('0xa')]();}}
23
+ const _0x39b0=['div','type','name','Added\x20by','bindTemplate','focus','changeId','Removed\x20by','setTemplate','set','element','_model','isSuggestion','data','author','ck-revision-change__','span'];(function(_0x435064,_0x39b09d){const _0x2c309a=function(_0x21586c){while(--_0x21586c){_0x435064['push'](_0x435064['shift']());}};_0x2c309a(++_0x39b09d);}(_0x39b0,0x17f));const _0x2c30=function(_0x435064,_0x39b09d){_0x435064=_0x435064-0x0;let _0x2c309a=_0x39b0[_0x435064];return _0x2c309a;};import{View as _0xdbb63d}from'ckeditor5/src/ui';import{getTranslation as _0x2a14bf}from'../../utils/common-translations';export default class Z extends _0xdbb63d{constructor(_0x17f421,_0x3c7182){super(_0x17f421),this[_0x2c30('0x2')]=_0x3c7182,this[_0x2c30('0xe')]=_0x3c7182['id'];const _0x18a61c=this[_0x2c30('0xc')],_0x2a51a3=_0x2a14bf(_0x17f421,_0x3c7182[_0x2c30('0x4')][_0x2c30('0x3')]?'Suggested\x20by':'add'==_0x3c7182[_0x2c30('0x9')]?_0x2c30('0xb'):_0x2c30('0xf'));this[_0x2c30('0x0')](_0x2c30('0x9'),_0x3c7182[_0x2c30('0x9')]),this[_0x2c30('0x10')]({'tag':_0x2c30('0x8'),'attributes':{'class':['ck-annotation','ck-revision-change',_0x18a61c['to'](_0x2c30('0x9'),_0x262e39=>_0x2c30('0x6')+_0x262e39)],'tabindex':-0x1},'children':[{'tag':_0x2c30('0x7'),'children':[{'tag':_0x2c30('0x7'),'attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x2a51a3}]},{'text':'\x20'+_0x3c7182[_0x2c30('0x5')][_0x2c30('0xa')]}]}]});}[_0x2c30('0xd')](){this[_0x2c30('0x1')][_0x2c30('0xd')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xea8a=['numberOfChanges','fire','set','div','ck-revision-history-ui__changes-navigation','isReady','ck-revision-history-ui','setTemplate','_isStatusLabelVisible','bindTemplate','ck-revision-history-ui__changes-navigation__label','ck-revision-history-ui__changes-navigation__navigation','span','forward','isForwardNavigationEnabled','Loading...','X_OF_Y_CHANGES','_statusText','isEnabled','NUMBER_OF_CHANGES','ck-revision-history-ui__changes-navigation__wrapper','EDIT_X_OF_Y_REVISIONS','isBackwardNavigationEnabled','bind','backward','Total','execute','currentChangeNumber','isNavigationMode'];(function(_0x4c1d88,_0xea8aa2){const _0x251244=function(_0x1a88c5){while(--_0x1a88c5){_0x4c1d88['push'](_0x4c1d88['shift']());}};_0x251244(++_0xea8aa2);}(_0xea8a,0x1a4));const _0x2512=function(_0x4c1d88,_0xea8aa2){_0x4c1d88=_0x4c1d88-0x0;let _0x251244=_0xea8a[_0x4c1d88];return _0x251244;};import{View as _0x10b85c,ButtonView as _0x46fd54,ToolbarSeparatorView as _0x33c8c2}from'ckeditor5/src/ui';import{getTranslation as _0x406034}from'../../utils/common-translations';import _0x4d038a from'../../../theme/icons/arrow-up.svg';import _0x4c990e from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x10b85c{constructor(_0xc6860a){super(_0xc6860a);const _0x1f5066=this[_0x2512('0x18')],_0x5c36ab=new _0x46fd54(_0xc6860a),_0x1f9fd5=new _0x46fd54(_0xc6860a);this['set'](_0x2512('0xe'),!0x1),this[_0x2512('0x11')](_0x2512('0x14'),!0x1),this[_0x2512('0x11')](_0x2512('0xd'),0x0),this[_0x2512('0x11')]('numberOfChanges',0x0),this[_0x2512('0x11')](_0x2512('0x0'),!0x1),this['set'](_0x2512('0x8'),!0x1),this[_0x2512('0x9')](_0x2512('0x17'))['to'](this,'isReady',this,_0x2512('0xf'),(_0x2e4cb2,_0x169a18)=>_0x2e4cb2&&_0x169a18>0x0),this[_0x2512('0x9')](_0x2512('0x3'))['to'](this,_0x2512('0x14'),this,_0x2512('0xd'),this,_0x2512('0xf'),this,_0x2512('0xe'),(_0x4633d8,_0x598379,_0x250a17,_0x4a67bd)=>{if(!_0x4633d8)return _0x406034(_0xc6860a,_0x2512('0x1'));if(!_0x250a17)return _0x406034(_0xc6860a,'No\x20changes');const _0x2f9083=_0x406034(_0xc6860a,_0x2512('0x5'),_0x250a17);return _0x4a67bd?_0x406034(_0xc6860a,_0x2512('0x2'),[_0x598379+0x1,_0x250a17]):_0x2f9083;}),_0x5c36ab[_0x2512('0x11')]({'label':_0x406034(_0xc6860a,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x4d038a}),_0x1f9fd5['set']({'label':_0x406034(_0xc6860a,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x4c990e}),_0x5c36ab[_0x2512('0x9')](_0x2512('0x4'))['to'](this,_0x2512('0x8')),_0x1f9fd5['bind'](_0x2512('0x4'))['to'](this,'isForwardNavigationEnabled'),_0x5c36ab['on']('execute',()=>this[_0x2512('0x10')](_0x2512('0xc'),_0x2512('0xa'))),_0x1f9fd5['on']('execute',()=>this['fire'](_0x2512('0xc'),_0x2512('0x1c'))),this[_0x2512('0x16')]({'tag':_0x2512('0x12'),'attributes':{'class':['ck',_0x2512('0x15'),_0x2512('0x13')]},'children':[{'tag':_0x2512('0x1b'),'attributes':{'class':[_0x2512('0x6')]},'children':[{'tag':'span','attributes':{'class':[_0x2512('0x19'),_0x1f5066['if']('_isStatusLabelVisible','ck-hidden',_0x3294aa=>!_0x3294aa)]},'children':[{'text':_0x1f5066['to'](_0x2512('0xe'),_0x1fd7c0=>_0x1fd7c0?_0x406034(_0xc6860a,_0x2512('0x7'))+':\x20':_0x406034(_0xc6860a,_0x2512('0xb'))+':\x20')}]},{'text':_0x1f5066['to'](_0x2512('0x3'))}]},new _0x33c8c2(),{'tag':_0x2512('0x12'),'attributes':{'class':[_0x2512('0x1a')]},'children':[_0x5c36ab,_0x1f9fd5]}]});}}
23
+ const _0x41ce=['ck-revision-history-ui','isForwardNavigationEnabled','setTemplate','set','div','numberOfChanges','NUMBER_OF_CHANGES','execute','span','isEnabled','bind','fire','bindTemplate','ck-hidden','currentChangeNumber','isReady','isNavigationMode','ck-revision-history-ui__changes-navigation__navigation','_statusText','No\x20changes','Show\x20next\x20change','ck-revision-history-ui__changes-navigation__label','ck-revision-history-ui__changes-navigation__wrapper','EDIT_X_OF_Y_REVISIONS','isBackwardNavigationEnabled','ck-revision-history-ui__changes-navigation'];(function(_0x35a4e9,_0x41ce5f){const _0xdca90c=function(_0xcfa57c){while(--_0xcfa57c){_0x35a4e9['push'](_0x35a4e9['shift']());}};_0xdca90c(++_0x41ce5f);}(_0x41ce,0x145));const _0xdca9=function(_0x35a4e9,_0x41ce5f){_0x35a4e9=_0x35a4e9-0x0;let _0xdca90c=_0x41ce[_0x35a4e9];return _0xdca90c;};import{View as _0x160933,ButtonView as _0x5c9bfd,ToolbarSeparatorView as _0x3ecd12}from'ckeditor5/src/ui';import{getTranslation as _0x3ec409}from'../../utils/common-translations';import _0x372369 from'../../../theme/icons/arrow-up.svg';import _0x26c397 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x160933{constructor(_0x33737e){super(_0x33737e);const _0x4c42bf=this[_0xdca9('0x19')],_0x287587=new _0x5c9bfd(_0x33737e),_0x36d933=new _0x5c9bfd(_0x33737e);this[_0xdca9('0x10')](_0xdca9('0x3'),!0x1),this['set'](_0xdca9('0x2'),!0x1),this[_0xdca9('0x10')]('currentChangeNumber',0x0),this[_0xdca9('0x10')](_0xdca9('0x12'),0x0),this[_0xdca9('0x10')](_0xdca9('0xe'),!0x1),this['set']('isBackwardNavigationEnabled',!0x1),this[_0xdca9('0x17')]('_isStatusLabelVisible')['to'](this,_0xdca9('0x2'),this,'numberOfChanges',(_0x473ca2,_0x39b54e)=>_0x473ca2&&_0x39b54e>0x0),this[_0xdca9('0x17')](_0xdca9('0x5'))['to'](this,_0xdca9('0x2'),this,_0xdca9('0x1'),this,_0xdca9('0x12'),this,_0xdca9('0x3'),(_0x1ad562,_0x511ac6,_0x3ba01e,_0xc4f440)=>{if(!_0x1ad562)return _0x3ec409(_0x33737e,'Loading...');if(!_0x3ba01e)return _0x3ec409(_0x33737e,_0xdca9('0x6'));const _0x52e8cc=_0x3ec409(_0x33737e,_0xdca9('0x13'),_0x3ba01e);return _0xc4f440?_0x3ec409(_0x33737e,'X_OF_Y_CHANGES',[_0x511ac6+0x1,_0x3ba01e]):_0x52e8cc;}),_0x287587[_0xdca9('0x10')]({'label':_0x3ec409(_0x33737e,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x372369}),_0x36d933[_0xdca9('0x10')]({'label':_0x3ec409(_0x33737e,_0xdca9('0x7')),'tooltip':!0x0,'icon':_0x26c397}),_0x287587[_0xdca9('0x17')]('isEnabled')['to'](this,_0xdca9('0xb')),_0x36d933[_0xdca9('0x17')](_0xdca9('0x16'))['to'](this,_0xdca9('0xe')),_0x287587['on'](_0xdca9('0x14'),()=>this[_0xdca9('0x18')](_0xdca9('0x14'),'backward')),_0x36d933['on'](_0xdca9('0x14'),()=>this[_0xdca9('0x18')]('execute','forward')),this[_0xdca9('0xf')]({'tag':_0xdca9('0x11'),'attributes':{'class':['ck',_0xdca9('0xd'),_0xdca9('0xc')]},'children':[{'tag':_0xdca9('0x15'),'attributes':{'class':[_0xdca9('0x9')]},'children':[{'tag':'span','attributes':{'class':[_0xdca9('0x8'),_0x4c42bf['if']('_isStatusLabelVisible',_0xdca9('0x0'),_0x3288c2=>!_0x3288c2)]},'children':[{'text':_0x4c42bf['to'](_0xdca9('0x3'),_0x8f0730=>_0x8f0730?_0x3ec409(_0x33737e,_0xdca9('0xa'))+':\x20':_0x3ec409(_0x33737e,'Total')+':\x20')}]},{'text':_0x4c42bf['to']('_statusText')}]},new _0x3ecd12(),{'tag':_0xdca9('0x11'),'attributes':{'class':[_0xdca9('0x4')]},'children':[_0x287587,_0x36d933]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2934=['roots','view','addClass','pluginName','hide','show','removeClass','change','document','RevisionViewerLoadingOverlay'];(function(_0x98575a,_0x2934e6){const _0x7bbb70=function(_0x3ec1ee){while(--_0x3ec1ee){_0x98575a['push'](_0x98575a['shift']());}};_0x7bbb70(++_0x2934e6);}(_0x2934,0x8b));const _0x7bbb=function(_0x98575a,_0x2934e6){_0x98575a=_0x98575a-0x0;let _0x7bbb70=_0x2934[_0x98575a];return _0x7bbb70;};import{Plugin as _0x29e769}from'ckeditor5/src/core';const oe='ck-editor__editable__loading-overlay';import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x29e769{static get[_0x7bbb('0x4')](){return _0x7bbb('0x0');}[_0x7bbb('0x6')](){const _0x8353ca=this['editor']['editing'][_0x7bbb('0x2')];_0x8353ca[_0x7bbb('0x8')](_0x54b8e3=>{for(const _0x1dca69 of _0x8353ca[_0x7bbb('0x9')][_0x7bbb('0x1')])_0x54b8e3[_0x7bbb('0x3')](oe,_0x1dca69);});}[_0x7bbb('0x5')](){const _0xca78cc=this['editor']['editing']['view'];_0xca78cc[_0x7bbb('0x8')](_0x3dc3a6=>{for(const _0x336156 of _0xca78cc[_0x7bbb('0x9')][_0x7bbb('0x1')])_0x3dc3a6[_0x7bbb('0x7')](oe,_0x336156);});}}
23
+ const _0x5ef3=['show','view','removeClass','editor','change','document','roots','addClass','RevisionViewerLoadingOverlay','editing','ck-editor__editable__loading-overlay'];(function(_0x6043a0,_0x5ef3f5){const _0x27f949=function(_0x3673e5){while(--_0x3673e5){_0x6043a0['push'](_0x6043a0['shift']());}};_0x27f949(++_0x5ef3f5);}(_0x5ef3,0x7d));const _0x27f9=function(_0x6043a0,_0x5ef3f5){_0x6043a0=_0x6043a0-0x0;let _0x27f949=_0x5ef3[_0x6043a0];return _0x27f949;};import{Plugin as _0x24b932}from'ckeditor5/src/core';const oe=_0x27f9('0x6');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x24b932{static get['pluginName'](){return _0x27f9('0x4');}[_0x27f9('0x7')](){const _0x3edd6a=this[_0x27f9('0xa')]['editing'][_0x27f9('0x8')];_0x3edd6a[_0x27f9('0x0')](_0x2b2edc=>{for(const _0x29a567 of _0x3edd6a[_0x27f9('0x1')][_0x27f9('0x2')])_0x2b2edc[_0x27f9('0x3')](oe,_0x29a567);});}['hide'](){const _0x3b199b=this[_0x27f9('0xa')][_0x27f9('0x5')]['view'];_0x3b199b[_0x27f9('0x0')](_0x10eec5=>{for(const _0x323b43 of _0x3b199b['document'][_0x27f9('0x2')])_0x10eec5[_0x27f9('0x9')](oe,_0x323b43);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x25e6=['RevisionViewerUI','init','plugins','isBackwardNavigationEnabled','componentFactory','isReady','ck-revision-history-ui__back-to-editing','showNextChange','restoreRevision','currentChangeNumber','bind','listenTo','isNavigationMode','get','commands','exitToEditing','forward','execute','isEnabled','set','numberOfChanges','showPreviousChange','requires','config','show','changesNavigation','add','pluginName'];(function(_0x187a5d,_0x25e6f3){const _0x497686=function(_0xb44a5b){while(--_0xb44a5b){_0x187a5d['push'](_0x187a5d['shift']());}};_0x497686(++_0x25e6f3);}(_0x25e6,0xca));const _0x4976=function(_0x187a5d,_0x25e6f3){_0x187a5d=_0x187a5d-0x0;let _0x497686=_0x25e6[_0x187a5d];return _0x497686;};import{Plugin as _0x2b58ed}from'ckeditor5/src/core';import{ButtonView as _0x4752ec}from'ckeditor5/src/ui';import _0x464cf4 from'./changesnavigationview';import _0x2adbae from'./../../revisionviewer';import _0x2106d9 from'./revisionviewerloadingoverlay';import{getTranslation as _0x26b518}from'../../utils/common-translations';import _0x333747 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x2b58ed{static get[_0x4976('0x15')](){return _0x4976('0x16');}static get[_0x4976('0x10')](){return[_0x2adbae,_0x2106d9];}[_0x4976('0x17')](){const _0x178a89=this['editor'],_0x3abcaf=_0x178a89[_0x4976('0x18')][_0x4976('0x7')](_0x2adbae),_0x3d0e4a=_0x178a89['plugins'][_0x4976('0x7')](_0x2106d9);_0x178a89['ui'][_0x4976('0x1a')]['add'](_0x4976('0x9'),_0x57c3c7=>{const _0x54efc8=new _0x4752ec(_0x57c3c7);return _0x54efc8[_0x4976('0xd')]({'label':_0x26b518(_0x57c3c7,'Back\x20to\x20editing'),'icon':_0x333747,'withText':!0x0,'tooltip':!0x0,'class':_0x4976('0x0')}),this['listenTo'](_0x54efc8,'execute',()=>{_0x178a89[_0x4976('0x11')][_0x4976('0x7')]('revisionHistory')['closeRevisionViewerCallback']();}),_0x54efc8;}),_0x178a89['ui'][_0x4976('0x1a')][_0x4976('0x14')](_0x4976('0x2'),_0x156240=>{const _0x3586fc=new _0x4752ec(_0x156240);return _0x3586fc[_0x4976('0xd')]({'label':_0x26b518(_0x156240,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3586fc[_0x4976('0x4')](_0x4976('0xc'))['to'](_0x178a89['commands'][_0x4976('0x7')](_0x4976('0x2'))),this[_0x4976('0x5')](_0x3586fc,_0x4976('0xb'),()=>_0x178a89[_0x4976('0xb')]('restoreRevision')),_0x3586fc;}),_0x178a89['ui'][_0x4976('0x1a')]['add'](_0x4976('0x13'),_0xe4924c=>{const _0x5c9d82=new _0x464cf4(_0xe4924c),_0x3e55ce=_0x178a89[_0x4976('0x8')][_0x4976('0x7')](_0x4976('0xf')),_0x32b941=_0x178a89['commands'][_0x4976('0x7')]('showNextChange');return _0x5c9d82[_0x4976('0x4')](_0x4976('0x19'))['to'](_0x3e55ce,_0x4976('0xc')),_0x5c9d82[_0x4976('0x4')]('isForwardNavigationEnabled')['to'](_0x32b941,_0x4976('0xc')),_0x5c9d82[_0x4976('0x4')](_0x4976('0x1b'),_0x4976('0x3'),_0x4976('0xe'),_0x4976('0x6'))['to'](_0x3abcaf),this['listenTo'](_0x5c9d82,'execute',(_0x21069c,_0x489bba)=>{_0x178a89[_0x4976('0xb')](_0x4976('0xa')===_0x489bba?_0x4976('0x1'):_0x4976('0xf'));}),_0x5c9d82;}),_0x3d0e4a[_0x4976('0x12')](),_0x3abcaf['on']('change:isReady',(_0x30e14a,_0x481a99,_0x58660e)=>{_0x58660e?_0x3d0e4a['hide']():_0x3d0e4a[_0x4976('0x12')]();});}}
23
+ const _0x3542=['plugins','config','showNextChange','add','numberOfChanges','commands','changesNavigation','currentChangeNumber','Restore\x20this\x20revision','isForwardNavigationEnabled','closeRevisionViewerCallback','get','exitToEditing','restoreRevision','execute','listenTo','forward','set','bind','Back\x20to\x20editing','showPreviousChange','revisionHistory','RevisionViewerUI','ck-revision-history-ui__back-to-editing','hide','isEnabled','show','pluginName','componentFactory'];(function(_0x802af1,_0x3542dd){const _0x133781=function(_0xd4d750){while(--_0xd4d750){_0x802af1['push'](_0x802af1['shift']());}};_0x133781(++_0x3542dd);}(_0x3542,0x85));const _0x1337=function(_0x802af1,_0x3542dd){_0x802af1=_0x802af1-0x0;let _0x133781=_0x3542[_0x802af1];return _0x133781;};import{Plugin as _0x5c1c43}from'ckeditor5/src/core';import{ButtonView as _0x26f381}from'ckeditor5/src/ui';import _0x3a863a from'./changesnavigationview';import _0x1c3029 from'./../../revisionviewer';import _0x366272 from'./revisionviewerloadingoverlay';import{getTranslation as _0x1dd8ff}from'../../utils/common-translations';import _0x305469 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x5c1c43{static get[_0x1337('0xa')](){return _0x1337('0x5');}static get['requires'](){return[_0x1c3029,_0x366272];}['init'](){const _0x4f1734=this['editor'],_0x3933fe=_0x4f1734[_0x1337('0xc')][_0x1337('0x17')](_0x1c3029),_0xbc0006=_0x4f1734[_0x1337('0xc')][_0x1337('0x17')](_0x366272);_0x4f1734['ui'][_0x1337('0xb')][_0x1337('0xf')](_0x1337('0x18'),_0x154071=>{const _0x58f5c5=new _0x26f381(_0x154071);return _0x58f5c5['set']({'label':_0x1dd8ff(_0x154071,_0x1337('0x2')),'icon':_0x305469,'withText':!0x0,'tooltip':!0x0,'class':_0x1337('0x6')}),this[_0x1337('0x1b')](_0x58f5c5,_0x1337('0x1a'),()=>{_0x4f1734[_0x1337('0xd')]['get'](_0x1337('0x4'))[_0x1337('0x16')]();}),_0x58f5c5;}),_0x4f1734['ui'][_0x1337('0xb')][_0x1337('0xf')]('restoreRevision',_0x39778a=>{const _0x28e614=new _0x26f381(_0x39778a);return _0x28e614[_0x1337('0x0')]({'label':_0x1dd8ff(_0x39778a,_0x1337('0x14')),'withText':!0x0,'tooltip':!0x0}),_0x28e614[_0x1337('0x1')](_0x1337('0x8'))['to'](_0x4f1734['commands'][_0x1337('0x17')](_0x1337('0x19'))),this['listenTo'](_0x28e614,_0x1337('0x1a'),()=>_0x4f1734['execute'](_0x1337('0x19'))),_0x28e614;}),_0x4f1734['ui'][_0x1337('0xb')][_0x1337('0xf')](_0x1337('0x12'),_0xd5e4a6=>{const _0x441235=new _0x3a863a(_0xd5e4a6),_0x365e5e=_0x4f1734['commands'][_0x1337('0x17')](_0x1337('0x3')),_0x1fc06b=_0x4f1734[_0x1337('0x11')][_0x1337('0x17')](_0x1337('0xe'));return _0x441235[_0x1337('0x1')]('isBackwardNavigationEnabled')['to'](_0x365e5e,_0x1337('0x8')),_0x441235['bind'](_0x1337('0x15'))['to'](_0x1fc06b,'isEnabled'),_0x441235[_0x1337('0x1')]('isReady',_0x1337('0x13'),_0x1337('0x10'),'isNavigationMode')['to'](_0x3933fe),this[_0x1337('0x1b')](_0x441235,'execute',(_0x305457,_0x4272c5)=>{_0x4f1734[_0x1337('0x1a')](_0x1337('0x1c')===_0x4272c5?'showNextChange':_0x1337('0x3'));}),_0x441235;}),_0xbc0006[_0x1337('0x9')](),_0x3933fe['on']('change:isReady',(_0xe7ce0e,_0x5ed748,_0xb89d73)=>{_0xb89d73?_0xbc0006[_0x1337('0x7')]():_0xbc0006[_0x1337('0x9')]();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x291bef,_0x2ff7ae,_0x2dbfcc){const t=_0x291bef['t'];switch(_0x2ff7ae){case'Revision\x20history':return t('Revision\x20history');case'Open\x20revision\x20history':return t('Open\x20revision\x20history');case'Restored':return t('Restored');case'Empty\x20document':return t('Empty\x20document');case'Initial\x20revision':return t('Initial\x20revision');case'Suggested\x20by':return t('Suggested\x20by');case'Added\x20by':return t('Added\x20by');case'Removed\x20by':return t('Removed\x20by');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Compare\x20against\x20selected':return t('Compare\x20against\x20selected');case'Name\x20this\x20revision':return t('Name\x20this\x20revision');case'Restore\x20this\x20revision':return t('Restore\x20this\x20revision');case'Back\x20to\x20editing':return t('Back\x20to\x20editing');case'Loading...':return t('Loading...');case'No\x20changes':return t('No\x20changes');case'NUMBER_OF_CHANGES':return t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0x2dbfcc);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2dbfcc);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision\x20(optional)':return t('Name\x20of\x20the\x20revision\x20(optional)');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});default:return _0x2ff7ae;}}
23
+ export function getTranslation(_0x45a6cd,_0x4467b7,_0xe479d7){const t=_0x45a6cd['t'];switch(_0x4467b7){case'Revision\x20history':return t('Revision\x20history');case'Open\x20revision\x20history':return t('Open\x20revision\x20history');case'Restored':return t('Restored');case'Empty\x20document':return t('Empty\x20document');case'Initial\x20revision':return t('Initial\x20revision');case'Suggested\x20by':return t('Suggested\x20by');case'Added\x20by':return t('Added\x20by');case'Removed\x20by':return t('Removed\x20by');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Compare\x20against\x20selected':return t('Compare\x20against\x20selected');case'Name\x20this\x20revision':return t('Name\x20this\x20revision');case'Restore\x20this\x20revision':return t('Restore\x20this\x20revision');case'Back\x20to\x20editing':return t('Back\x20to\x20editing');case'Loading...':return t('Loading...');case'No\x20changes':return t('No\x20changes');case'NUMBER_OF_CHANGES':return t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0xe479d7);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xe479d7);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision\x20(optional)':return t('Name\x20of\x20the\x20revision\x20(optional)');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});default:return _0x4467b7;}}