@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230706.0 → 0.0.0-nightly-20230707.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 _0x5111=['RevisionHistoryUI','panelView','get','render','Open\x20revision\x20history','length','requires','Save\x20current\x20revision','focus','bind','buttonView','Revision\x20history','editor','editing','saveRevision','isReadOnly','pluginName','init','children','remove','addMany','cancel','saveButtonView','isOpen','add','revisionHistory','set','change:isOpen','componentFactory','isEnabled','plugins','isReady','execute','submit','RevisionTracker'];(function(_0x5fe7e7,_0x511124){const _0x583904=function(_0x5ba12e){while(--_0x5ba12e){_0x5fe7e7['push'](_0x5fe7e7['shift']());}};_0x583904(++_0x511124);}(_0x5111,0x7d));const _0x5839=function(_0x5fe7e7,_0x511124){_0x5fe7e7=_0x5fe7e7-0x0;let _0x583904=_0x5111[_0x5fe7e7];return _0x583904;};import{Plugin as _0x3e3da8}from'ckeditor5/src/core';import{ListView as _0x35fd3e,ListItemView as _0x3f1acc,ButtonView as _0x2d1a6d,createDropdown as _0x235c2e}from'ckeditor5/src/ui';import _0x490fd6 from'../../revisiontracker';import _0x59d989 from'./revisionhistorysaverevisionformview';import _0x250a05 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x2e3609}from'../../utils/common-translations';export default class l extends _0x3e3da8{static get[_0x5839('0x1f')](){return _0x5839('0xf');}static get[_0x5839('0x15')](){return[_0x490fd6];}[_0x5839('0x20')](){const _0xd08e81=this[_0x5839('0x1b')],_0x1ad2dc=_0xd08e81[_0x5839('0xa')][_0x5839('0x11')](_0x5839('0xe'));_0xd08e81['ui'][_0x5839('0x8')]['add'](_0x5839('0x5'),_0x2aa1cb=>{const _0x44ce1a=_0x235c2e(_0x2aa1cb),_0x2c264d=_0x44ce1a[_0x5839('0x10')][_0x5839('0x21')],_0x157087=new _0x35fd3e(_0x2aa1cb),_0x153d2e=new _0x3f1acc(_0x2aa1cb),_0x137244=new _0x2d1a6d(_0x2aa1cb),_0x23f190=new _0x3f1acc(_0x2aa1cb),_0x2748da=new _0x2d1a6d(_0x2aa1cb),_0x26152f=new _0x59d989(_0x2aa1cb);function _0x474803(){_0x2c264d['length']&&_0x2c264d[_0x5839('0x22')](0x0),_0x2c264d['add'](_0x157087);}function _0x5a0171(){_0x44ce1a[_0x5839('0x3')]=!0x1,_0xd08e81[_0x5839('0x1c')]['view'][_0x5839('0x17')]();}return _0x44ce1a[_0x5839('0x18')](_0x5839('0x9'))['to'](_0x1ad2dc,_0x5839('0xb'),_0x1ad2dc,_0x5839('0x9'),_0xd08e81,_0x5839('0x1e'),(_0x5aae23,_0xc05fa6,_0x141de7)=>_0x5aae23&&_0xc05fa6&&!_0x141de7),_0x44ce1a[_0x5839('0x19')]['set']({'icon':_0x250a05,'label':_0x2e3609(_0x2aa1cb,_0x5839('0x1a')),'tooltip':!0x0}),_0x137244[_0x5839('0x6')]({'label':_0x2e3609(_0x2aa1cb,_0x5839('0x16')),'withText':!0x0}),_0x137244[_0x5839('0x18')](_0x5839('0x9'))['to'](_0x1ad2dc,_0x5839('0xb'),_0x1ad2dc,_0x5839('0x9'),_0xd08e81,_0x5839('0x1e'),(_0x1ea6cf,_0x50220e,_0x488fdb)=>_0x1ea6cf&&_0x50220e&&!_0x488fdb),_0x137244['on'](_0x5839('0xc'),()=>function(){_0x2c264d[_0x5839('0x14')]&&_0x2c264d['remove'](0x0),(_0x26152f['reset'](),_0x2c264d[_0x5839('0x4')](_0x26152f),_0x26152f['focus']());}()),_0x2748da[_0x5839('0x6')]({'label':_0x2e3609(_0x2aa1cb,_0x5839('0x13')),'withText':!0x0}),_0x2748da[_0x5839('0x18')](_0x5839('0x9'))['to'](_0x1ad2dc,'isReady',_0xd08e81,_0x5839('0x1e'),(_0x56883f,_0x43b337)=>_0x56883f&&!_0x43b337),_0x2748da['on'](_0x5839('0xc'),()=>{_0xd08e81['config'][_0x5839('0x11')]('revisionHistory')['showRevisionViewerCallback'](),_0x5a0171();}),_0x153d2e[_0x5839('0x21')][_0x5839('0x4')](_0x137244),_0x23f190[_0x5839('0x21')][_0x5839('0x4')](_0x2748da),_0x157087['items'][_0x5839('0x0')]([_0x153d2e,_0x23f190]),_0x44ce1a['on'](_0x5839('0x7'),()=>_0x474803()),_0x26152f[_0x5839('0x2')][_0x5839('0x18')](_0x5839('0x9'))['to'](_0x1ad2dc,_0x5839('0xb'),_0x1ad2dc,_0x5839('0x9'),_0xd08e81,_0x5839('0x1e'),(_0x1d8e26,_0x3075be,_0x56afec)=>_0x1d8e26&&_0x3075be&&!_0x56afec),_0x26152f['on'](_0x5839('0xd'),()=>(_0xd08e81[_0x5839('0xa')][_0x5839('0x11')](_0x490fd6)[_0x5839('0x1d')]({'name':_0x26152f['revisionName']}),void _0x5a0171())),_0x26152f['on'](_0x5839('0x1'),()=>_0x474803()),_0x26152f[_0x5839('0x12')](),_0x474803(),_0x44ce1a;});}}
23
+ const _0x2c00=['get','panelView','RevisionHistoryUI','isOpen','submit','saveRevision','cancel','pluginName','revisionHistory','execute','items','isReadOnly','set','isEnabled','componentFactory','bind','revisionName','children','length','isReady','focus','RevisionTracker','config','editor','view','showRevisionViewerCallback','add','editing','remove','plugins','change:isOpen','init'];(function(_0x12582e,_0x2c0079){const _0x127437=function(_0x31cd8b){while(--_0x31cd8b){_0x12582e['push'](_0x12582e['shift']());}};_0x127437(++_0x2c0079);}(_0x2c00,0xb1));const _0x1274=function(_0x12582e,_0x2c0079){_0x12582e=_0x12582e-0x0;let _0x127437=_0x2c00[_0x12582e];return _0x127437;};import{Plugin as _0x14bfb6}from'ckeditor5/src/core';import{ListView as _0x4b580c,ListItemView as _0x190f0c,ButtonView as _0x17487a,createDropdown as _0x158e53}from'ckeditor5/src/ui';import _0x23bee9 from'../../revisiontracker';import _0x4fb81b from'./revisionhistorysaverevisionformview';import _0x1fec66 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x13261c}from'../../utils/common-translations';export default class l extends _0x14bfb6{static get[_0x1274('0x16')](){return _0x1274('0x11');}static get['requires'](){return[_0x23bee9];}[_0x1274('0xe')](){const _0x22d5dc=this[_0x1274('0x6')],_0x174e7e=_0x22d5dc[_0x1274('0xc')]['get'](_0x1274('0x4'));_0x22d5dc['ui'][_0x1274('0x1d')]['add']('revisionHistory',_0xef22e5=>{const _0x3aa793=_0x158e53(_0xef22e5),_0x2d6bfc=_0x3aa793[_0x1274('0x10')][_0x1274('0x0')],_0xeb3a20=new _0x4b580c(_0xef22e5),_0x5c7b83=new _0x190f0c(_0xef22e5),_0x17d151=new _0x17487a(_0xef22e5),_0x4ee4f0=new _0x190f0c(_0xef22e5),_0x8a8042=new _0x17487a(_0xef22e5),_0x4b6a61=new _0x4fb81b(_0xef22e5);function _0x340f1f(){_0x2d6bfc[_0x1274('0x1')]&&_0x2d6bfc[_0x1274('0xb')](0x0),_0x2d6bfc[_0x1274('0x9')](_0xeb3a20);}function _0x12f8f(){_0x3aa793[_0x1274('0x12')]=!0x1,_0x22d5dc[_0x1274('0xa')][_0x1274('0x7')][_0x1274('0x3')]();}return _0x3aa793[_0x1274('0x1e')](_0x1274('0x1c'))['to'](_0x174e7e,_0x1274('0x2'),_0x174e7e,'isEnabled',_0x22d5dc,_0x1274('0x1a'),(_0x3e0230,_0x168d18,_0x106f1d)=>_0x3e0230&&_0x168d18&&!_0x106f1d),_0x3aa793['buttonView'][_0x1274('0x1b')]({'icon':_0x1fec66,'label':_0x13261c(_0xef22e5,'Revision\x20history'),'tooltip':!0x0}),_0x17d151[_0x1274('0x1b')]({'label':_0x13261c(_0xef22e5,'Save\x20current\x20revision'),'withText':!0x0}),_0x17d151[_0x1274('0x1e')](_0x1274('0x1c'))['to'](_0x174e7e,'isReady',_0x174e7e,'isEnabled',_0x22d5dc,_0x1274('0x1a'),(_0x344a99,_0x533533,_0xb6d231)=>_0x344a99&&_0x533533&&!_0xb6d231),_0x17d151['on']('execute',()=>function(){_0x2d6bfc[_0x1274('0x1')]&&_0x2d6bfc['remove'](0x0),(_0x4b6a61['reset'](),_0x2d6bfc[_0x1274('0x9')](_0x4b6a61),_0x4b6a61[_0x1274('0x3')]());}()),_0x8a8042['set']({'label':_0x13261c(_0xef22e5,'Open\x20revision\x20history'),'withText':!0x0}),_0x8a8042['bind'](_0x1274('0x1c'))['to'](_0x174e7e,_0x1274('0x2'),_0x22d5dc,'isReadOnly',(_0xa188eb,_0x128a0c)=>_0xa188eb&&!_0x128a0c),_0x8a8042['on'](_0x1274('0x18'),()=>{_0x22d5dc[_0x1274('0x5')][_0x1274('0xf')](_0x1274('0x17'))[_0x1274('0x8')](),_0x12f8f();}),_0x5c7b83[_0x1274('0x0')][_0x1274('0x9')](_0x17d151),_0x4ee4f0[_0x1274('0x0')][_0x1274('0x9')](_0x8a8042),_0xeb3a20[_0x1274('0x19')]['addMany']([_0x5c7b83,_0x4ee4f0]),_0x3aa793['on'](_0x1274('0xd'),()=>_0x340f1f()),_0x4b6a61['saveButtonView'][_0x1274('0x1e')](_0x1274('0x1c'))['to'](_0x174e7e,_0x1274('0x2'),_0x174e7e,_0x1274('0x1c'),_0x22d5dc,'isReadOnly',(_0x4bb325,_0x32510a,_0x3ec00c)=>_0x4bb325&&_0x32510a&&!_0x3ec00c),_0x4b6a61['on'](_0x1274('0x13'),()=>(_0x22d5dc[_0x1274('0xc')][_0x1274('0xf')](_0x23bee9)[_0x1274('0x14')]({'name':_0x4b6a61[_0x1274('0x1f')]}),void _0x12f8f())),_0x4b6a61['on'](_0x1274('0x15'),()=>_0x340f1f()),_0x4b6a61['render'](),_0x340f1f(),_0x3aa793;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x43ad=['_revisionsRepository','map','_sidebarView','availableRevisionActions','defaultRevisionActions','_handleDiffChange','getLaterVisibleRevision','revisionViews','nameRevision','isVisible','isReady','restoreRevision','repository','getRevision','pluginName','getIndex','name','_revisionViewer','timePeriodViews','compare','string','locale','_revisions','getRevisionsInDiff','get','plugins','change:diff','_handleRevisionSetName','getEarlierVisibleRevision','compareAgainstSelected','bind','data','selectRevision','_createRevisionActions','config','add','length','init','ready','element','newRevisionId','appendChild','render','diff','listenTo','_handleEditorDataReady','restoreRevisionCallback','action','editor','revisionHistory.revisionActions','focus','RevisionsSidebar','_handleRevisionSelected','isSelected','highlightRevisions','setName','Compare\x20against\x20selected'];(function(_0x4cd1d4,_0x43adc4){const _0x6d4e8e=function(_0x253186){while(--_0x253186){_0x4cd1d4['push'](_0x4cd1d4['shift']());}};_0x6d4e8e(++_0x43adc4);}(_0x43ad,0x1a7));const _0x6d4e=function(_0x4cd1d4,_0x43adc4){_0x4cd1d4=_0x4cd1d4-0x0;let _0x6d4e8e=_0x43ad[_0x4cd1d4];return _0x6d4e8e;};import{Plugin as _0x135593}from'ckeditor5/src/core';import _0x46d676 from'./revisionssidebarview';import _0x577e2c from'../../revisionviewer';export default class R extends _0x135593{static get[_0x6d4e('0x2f')](){return _0x6d4e('0x1b');}static get['requires'](){return[_0x577e2c];}constructor(_0x5854f8){super(_0x5854f8),this[_0x6d4e('0x32')]=_0x5854f8[_0x6d4e('0x1')][_0x6d4e('0x0')](_0x577e2c),this[_0x6d4e('0x21')]=this[_0x6d4e('0x32')][_0x6d4e('0x2d')],this[_0x6d4e('0x23')]=null;}[_0x6d4e('0xd')](){const _0xc8e224=this[_0x6d4e('0x21')][_0x6d4e('0x37')],_0x41f107=this[_0x6d4e('0x9')](),_0x125961=this[_0x6d4e('0x18')][_0x6d4e('0xa')][_0x6d4e('0x0')]('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new _0x46d676(this[_0x6d4e('0x18')][_0x6d4e('0x36')],_0xc8e224,_0x41f107),this['_sidebarView']['on']('revisionSelected',this[_0x6d4e('0x1c')]['bind'](this)),this[_0x6d4e('0x23')]['on']('revisionSetName',this[_0x6d4e('0x3')]['bind'](this)),this['_sidebarView'][_0x6d4e('0x6')]('isEnabled')['to'](this[_0x6d4e('0x32')]),this[_0x6d4e('0x23')][_0x6d4e('0x33')]['on'](_0x6d4e('0xb'),(_0x5e9422,_0x388c99)=>{_0x388c99[_0x6d4e('0x28')]['on']('add',(_0x290697,_0x371729)=>{_0x371729[_0x6d4e('0x6')]('isEnabled',_0x6d4e('0x2b'))['to'](this[_0x6d4e('0x32')]);});}),this['_sidebarView'][_0x6d4e('0x12')](),this[_0x6d4e('0x14')](this[_0x6d4e('0x18')][_0x6d4e('0x7')],_0x6d4e('0xe'),this['_handleEditorDataReady'][_0x6d4e('0x6')](this)),this[_0x6d4e('0x14')](this['_revisionViewer'],_0x6d4e('0x2'),this['_handleDiffChange'][_0x6d4e('0x6')](this)),_0x125961[_0x6d4e('0x11')](this[_0x6d4e('0x23')][_0x6d4e('0xf')]);}['destroy'](){this['_sidebarView'][_0x6d4e('0xf')]['remove'](),this[_0x6d4e('0x23')]['destroy']();}[_0x6d4e('0x15')](){const _0x226527=this[_0x6d4e('0x21')][_0x6d4e('0x2e')](0x0);if(_0x226527){const _0x77d2b=this[_0x6d4e('0x21')][_0x6d4e('0x4')](_0x226527['id']);this[_0x6d4e('0x32')][_0x6d4e('0x34')](_0x226527,_0x77d2b);}}[_0x6d4e('0x1c')](_0x38c3b2,_0x980f6f){const _0x11a248=this[_0x6d4e('0x21')]['getRevision'](_0x980f6f['id']),_0x421c01=this[_0x6d4e('0x21')][_0x6d4e('0x4')](_0x11a248['id']);this['_revisionViewer'][_0x6d4e('0x34')](_0x11a248,_0x421c01);}['_handleRevisionSetName'](_0x56ceb9,_0x3cd4d1){this['_revisionsRepository']['getRevision'](_0x3cd4d1['id'])[_0x6d4e('0x1f')](_0x3cd4d1[_0x6d4e('0x31')]);}[_0x6d4e('0x26')](_0xdff32a,_0x195838,_0x45629a){const _0x1509bc=this[_0x6d4e('0x21')][_0x6d4e('0x38')](_0x45629a);_0x1509bc[_0x6d4e('0xc')]>0x2?(this['_sidebarView']['highlightRevisions'](_0x1509bc),this[_0x6d4e('0x23')][_0x6d4e('0x8')](null)):(this[_0x6d4e('0x23')][_0x6d4e('0x1e')]([]),this[_0x6d4e('0x23')]['selectRevision'](_0x1509bc[0x0]));}[_0x6d4e('0x9')](){const _0x529a47=this[_0x6d4e('0x18')],_0x53fe20=R[_0x6d4e('0x24')],_0x1dd24b=_0x529a47[_0x6d4e('0xa')][_0x6d4e('0x0')](_0x6d4e('0x19'))||R[_0x6d4e('0x25')];if(_0x1dd24b['length'])return _0x1dd24b[_0x6d4e('0x22')](_0x46c462=>{const _0x5e9fbc=_0x6d4e('0x35')==typeof _0x46c462?Object['assign']({},_0x53fe20[_0x46c462]):_0x46c462;return _0x5e9fbc[_0x6d4e('0x17')]=_0x5e9fbc['action'][_0x6d4e('0x6')](this,_0x529a47),_0x5e9fbc[_0x6d4e('0x2a')]&&(_0x5e9fbc[_0x6d4e('0x2a')]=_0x5e9fbc['isVisible']['bind'](this,_0x529a47)),_0x5e9fbc;});}}R[_0x6d4e('0x24')]={'compareAgainstSelected':{'name':_0x6d4e('0x20'),'action':({plugins:_0x46cb72},_0x1de0dc)=>{const _0x8220a2=_0x46cb72[_0x6d4e('0x0')](_0x577e2c),_0x5d65c7=_0x8220a2[_0x6d4e('0x2d')];let _0x5cd665=_0x8220a2['diff'][_0x6d4e('0x10')],_0x42d91d=_0x1de0dc['id'];_0x5d65c7[_0x6d4e('0x30')](_0x5cd665)>_0x5d65c7['getIndex'](_0x42d91d)&&([_0x5cd665,_0x42d91d]=[_0x42d91d,_0x5cd665]),_0x8220a2[_0x6d4e('0x34')](_0x5cd665,_0x42d91d);},'isVisible':({plugins:_0x50e2e3},_0x52268e)=>{const _0x3fdbfb=_0x50e2e3[_0x6d4e('0x0')](_0x577e2c);return!(_0x3fdbfb['repository'][_0x6d4e('0x38')](_0x3fdbfb[_0x6d4e('0x13')])['length']>0x2)&&!_0x52268e[_0x6d4e('0x1d')];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x2283f5,{id:_0x7b0fa})=>{_0x2283f5[_0x6d4e('0xa')]['get']('revisionHistory')[_0x6d4e('0x16')](_0x7b0fa);},'isVisible':({plugins:_0x29535f},_0x3efd0e)=>!!_0x29535f['get'](_0x577e2c)[_0x6d4e('0x2d')][_0x6d4e('0x27')](_0x3efd0e['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x171564},{id:_0x6c3c1f,revisionNameView:_0x3a04a7})=>{const _0x20a4f9=_0x171564['get'](_0x577e2c),_0x172857=_0x20a4f9[_0x6d4e('0x2d')]['getEarlierVisibleRevision'](_0x6c3c1f);_0x20a4f9[_0x6d4e('0x34')](_0x6c3c1f,_0x172857),_0x3a04a7[_0x6d4e('0x1a')](),_0x3a04a7['fieldView']['select']();}}},R[_0x6d4e('0x25')]=[_0x6d4e('0x5'),_0x6d4e('0x2c'),_0x6d4e('0x29')];
23
+ const _0x2459=['change:diff','diff','length','setName','remove','fieldView','name','select','revisionSetName','focus','Restore\x20this\x20revision','_handleRevisionSetName','destroy','Compare\x20against\x20selected','revisionSelected','_sidebarView','isSelected','_revisionsRepository','init','render','timePeriodViews','map','_handleEditorDataReady','compareAgainstSelected','newRevisionId','_handleRevisionSelected','availableRevisionActions','revisionHistory','repository','getRevisionsInDiff','_createRevisionActions','isVisible','element','pluginName','getEarlierVisibleRevision','locale','compare','revisionHistory.viewerSidebarContainer','add','getRevision','RevisionsSidebar','_revisionViewer','appendChild','_handleDiffChange','revisionViews','assign','bind','editor','action','plugins','defaultRevisionActions','nameRevision','selectRevision','highlightRevisions','listenTo','Name\x20this\x20revision','restoreRevision','getIndex','ready','isEnabled','revisionHistory.revisionActions','get'];(function(_0x2a65d7,_0x245906){const _0x44e600=function(_0x3f4d67){while(--_0x3f4d67){_0x2a65d7['push'](_0x2a65d7['shift']());}};_0x44e600(++_0x245906);}(_0x2459,0x116));const _0x44e6=function(_0x2a65d7,_0x245906){_0x2a65d7=_0x2a65d7-0x0;let _0x44e600=_0x2459[_0x2a65d7];return _0x44e600;};import{Plugin as _0x5952ba}from'ckeditor5/src/core';import _0x22874f from'./revisionssidebarview';import _0xfe2f3d from'../../revisionviewer';export default class R extends _0x5952ba{static get[_0x44e6('0x3')](){return _0x44e6('0xa');}static get['requires'](){return[_0xfe2f3d];}constructor(_0xc2febf){super(_0xc2febf),this[_0x44e6('0xb')]=_0xc2febf[_0x44e6('0x13')]['get'](_0xfe2f3d),this[_0x44e6('0x31')]=this[_0x44e6('0xb')]['repository'],this[_0x44e6('0x2f')]=null;}[_0x44e6('0x32')](){const _0x40e68d=this['_revisionsRepository']['_revisions'],_0x301b52=this[_0x44e6('0x0')](),_0x365b30=this[_0x44e6('0x11')]['config']['get'](_0x44e6('0x7'));this[_0x44e6('0x2f')]=new _0x22874f(this['editor'][_0x44e6('0x5')],_0x40e68d,_0x301b52),this[_0x44e6('0x2f')]['on'](_0x44e6('0x2e'),this[_0x44e6('0x39')][_0x44e6('0x10')](this)),this[_0x44e6('0x2f')]['on'](_0x44e6('0x28'),this[_0x44e6('0x2b')][_0x44e6('0x10')](this)),this[_0x44e6('0x2f')][_0x44e6('0x10')](_0x44e6('0x1d'))['to'](this[_0x44e6('0xb')]),this['_sidebarView'][_0x44e6('0x34')]['on'](_0x44e6('0x8'),(_0x50dfa0,_0x102534)=>{_0x102534[_0x44e6('0xe')]['on'](_0x44e6('0x8'),(_0x33df9,_0x3bd0a0)=>{_0x3bd0a0[_0x44e6('0x10')](_0x44e6('0x1d'),'isReady')['to'](this['_revisionViewer']);});}),this[_0x44e6('0x2f')][_0x44e6('0x33')](),this[_0x44e6('0x18')](this['editor']['data'],_0x44e6('0x1c'),this[_0x44e6('0x36')]['bind'](this)),this[_0x44e6('0x18')](this[_0x44e6('0xb')],_0x44e6('0x20'),this[_0x44e6('0xd')]['bind'](this)),_0x365b30[_0x44e6('0xc')](this['_sidebarView'][_0x44e6('0x2')]);}[_0x44e6('0x2c')](){this[_0x44e6('0x2f')][_0x44e6('0x2')][_0x44e6('0x24')](),this[_0x44e6('0x2f')][_0x44e6('0x2c')]();}['_handleEditorDataReady'](){const _0x56db1d=this[_0x44e6('0x31')][_0x44e6('0x9')](0x0);if(_0x56db1d){const _0x3e0912=this[_0x44e6('0x31')][_0x44e6('0x4')](_0x56db1d['id']);this['_revisionViewer'][_0x44e6('0x6')](_0x56db1d,_0x3e0912);}}['_handleRevisionSelected'](_0x3b2e36,_0x3d12b6){const _0x10a29f=this[_0x44e6('0x31')]['getRevision'](_0x3d12b6['id']),_0x3364d0=this[_0x44e6('0x31')][_0x44e6('0x4')](_0x10a29f['id']);this[_0x44e6('0xb')]['compare'](_0x10a29f,_0x3364d0);}[_0x44e6('0x2b')](_0x2f6ede,_0x22d013){this['_revisionsRepository'][_0x44e6('0x9')](_0x22d013['id'])[_0x44e6('0x23')](_0x22d013[_0x44e6('0x26')]);}['_handleDiffChange'](_0x279208,_0x2199c8,_0x45e1dc){const _0x442092=this['_revisionsRepository'][_0x44e6('0x3d')](_0x45e1dc);_0x442092[_0x44e6('0x22')]>0x2?(this['_sidebarView'][_0x44e6('0x17')](_0x442092),this[_0x44e6('0x2f')][_0x44e6('0x16')](null)):(this[_0x44e6('0x2f')][_0x44e6('0x17')]([]),this[_0x44e6('0x2f')][_0x44e6('0x16')](_0x442092[0x0]));}[_0x44e6('0x0')](){const _0x31a041=this[_0x44e6('0x11')],_0x5993df=R[_0x44e6('0x3a')],_0x50f8cb=_0x31a041['config']['get'](_0x44e6('0x1e'))||R['defaultRevisionActions'];if(_0x50f8cb['length'])return _0x50f8cb[_0x44e6('0x35')](_0x47def7=>{const _0x3ec836='string'==typeof _0x47def7?Object[_0x44e6('0xf')]({},_0x5993df[_0x47def7]):_0x47def7;return _0x3ec836[_0x44e6('0x12')]=_0x3ec836['action'][_0x44e6('0x10')](this,_0x31a041),_0x3ec836[_0x44e6('0x1')]&&(_0x3ec836[_0x44e6('0x1')]=_0x3ec836['isVisible'][_0x44e6('0x10')](this,_0x31a041)),_0x3ec836;});}}R[_0x44e6('0x3a')]={'compareAgainstSelected':{'name':_0x44e6('0x2d'),'action':({plugins:_0x132f24},_0x1a5566)=>{const _0x504747=_0x132f24[_0x44e6('0x1f')](_0xfe2f3d),_0x483f6d=_0x504747[_0x44e6('0x3c')];let _0x5325dc=_0x504747['diff'][_0x44e6('0x38')],_0x184016=_0x1a5566['id'];_0x483f6d[_0x44e6('0x1b')](_0x5325dc)>_0x483f6d[_0x44e6('0x1b')](_0x184016)&&([_0x5325dc,_0x184016]=[_0x184016,_0x5325dc]),_0x504747['compare'](_0x5325dc,_0x184016);},'isVisible':({plugins:_0x3e1641},_0x136642)=>{const _0x32dd45=_0x3e1641[_0x44e6('0x1f')](_0xfe2f3d);return!(_0x32dd45[_0x44e6('0x3c')]['getRevisionsInDiff'](_0x32dd45[_0x44e6('0x21')])[_0x44e6('0x22')]>0x2)&&!_0x136642[_0x44e6('0x30')];}},'restoreRevision':{'name':_0x44e6('0x2a'),'action':(_0xd359f2,{id:_0x240cc9})=>{_0xd359f2['config'][_0x44e6('0x1f')](_0x44e6('0x3b'))['restoreRevisionCallback'](_0x240cc9);},'isVisible':({plugins:_0x54c183},_0x41d637)=>!!_0x54c183[_0x44e6('0x1f')](_0xfe2f3d)['repository']['getLaterVisibleRevision'](_0x41d637['id'])},'nameRevision':{'name':_0x44e6('0x19'),'action':({plugins:_0x24e719},{id:_0x534b73,revisionNameView:_0x112a05})=>{const _0x4a7672=_0x24e719[_0x44e6('0x1f')](_0xfe2f3d),_0x38310f=_0x4a7672[_0x44e6('0x3c')][_0x44e6('0x4')](_0x534b73);_0x4a7672[_0x44e6('0x6')](_0x534b73,_0x38310f),_0x112a05[_0x44e6('0x29')](),_0x112a05[_0x44e6('0x25')][_0x44e6('0x27')]();}}},R[_0x44e6('0x14')]=[_0x44e6('0x37'),_0x44e6('0x1a'),_0x44e6('0x15')];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x10c4=['ck-revision-history-sidebar__header__label','Revision\x20history','span','setTemplate','div','ck-revision-history-sidebar__header'];(function(_0x4afdb8,_0x10c465){const _0x13d768=function(_0x5380c0){while(--_0x5380c0){_0x4afdb8['push'](_0x4afdb8['shift']());}};_0x13d768(++_0x10c465);}(_0x10c4,0x19f));const _0x13d7=function(_0x4afdb8,_0x10c465){_0x4afdb8=_0x4afdb8-0x0;let _0x13d768=_0x10c4[_0x4afdb8];return _0x13d768;};import{View as _0x15049c,IconView as _0x5305ae}from'ckeditor5/src/ui';import{getTranslation as _0x2c1965}from'../../utils/common-translations';import _0x3b8489 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x15049c{constructor(_0x425dc5){super(_0x425dc5);const _0x6cc19d=new _0x5305ae();_0x6cc19d['content']=_0x3b8489,this[_0x13d7('0x2')]({'tag':_0x13d7('0x3'),'attributes':{'class':['ck','ck-reset_all',_0x13d7('0x4')]},'children':[_0x6cc19d,{'tag':_0x13d7('0x1'),'attributes':{'class':['ck',_0x13d7('0x5')]},'children':[_0x2c1965(_0x425dc5,_0x13d7('0x0'))]}]});}}
23
+ const _0x9a70=['setTemplate','ck-revision-history-sidebar__header','ck-revision-history-sidebar__header__label','div','span'];(function(_0x25e95a,_0x9a704d){const _0x2dcfdd=function(_0x259171){while(--_0x259171){_0x25e95a['push'](_0x25e95a['shift']());}};_0x2dcfdd(++_0x9a704d);}(_0x9a70,0x103));const _0x2dcf=function(_0x25e95a,_0x9a704d){_0x25e95a=_0x25e95a-0x0;let _0x2dcfdd=_0x9a70[_0x25e95a];return _0x2dcfdd;};import{View as _0x69b639,IconView as _0x14fa90}from'ckeditor5/src/ui';import{getTranslation as _0x35bdad}from'../../utils/common-translations';import _0x9c4c2a from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x69b639{constructor(_0x25eb10){super(_0x25eb10);const _0x76a233=new _0x14fa90();_0x76a233['content']=_0x9c4c2a,this[_0x2dcf('0x1')]({'tag':_0x2dcf('0x4'),'attributes':{'class':['ck','ck-reset_all',_0x2dcf('0x2')]},'children':[_0x76a233,{'tag':_0x2dcf('0x0'),'attributes':{'class':['ck',_0x2dcf('0x3')]},'children':[_0x35bdad(_0x25eb10,'Revision\x20history')]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1388=['div','createCollection','revisionViews','ck-revision-history-sidebar__time-period','setTemplate','add','remove','_revisionActions','removeRevision','localizedPeriodName','locale','select','delegate','find','startDate','setName','ck-revision-history-sidebar__time-period__label'];(function(_0xb18f3b,_0x13883d){const _0xa863f5=function(_0x7460c9){while(--_0x7460c9){_0xb18f3b['push'](_0xb18f3b['shift']());}};_0xa863f5(++_0x13883d);}(_0x1388,0x92));const _0xa863=function(_0xb18f3b,_0x13883d){_0xb18f3b=_0xb18f3b-0x0;let _0xa863f5=_0x1388[_0xb18f3b];return _0xa863f5;};import{View as _0x593737}from'ckeditor5/src/ui';import _0x60b878 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x59ed50}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x593737{constructor(_0x346aaf,_0x3e0c7b,_0x456516){super(_0x346aaf);const _0x38fc66=_0x59ed50(_0x3e0c7b,this[_0xa863('0x0')]['uiLanguage'])[_0xa863('0x10')];this[_0xa863('0x4')]=_0x3e0c7b,this[_0xa863('0x9')]=this[_0xa863('0x8')](),this[_0xa863('0xe')]=_0x456516,this['revisionViews']['delegate'](_0xa863('0x1'))['to'](this),this['revisionViews'][_0xa863('0x2')](_0xa863('0x5'))['to'](this),this[_0xa863('0xb')]({'tag':_0xa863('0x7'),'attributes':{'class':['ck',_0xa863('0xa')]},'children':[{'tag':'span','attributes':{'class':['ck',_0xa863('0x6')]},'children':[{'text':_0x38fc66}]},{'tag':_0xa863('0x7'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this[_0xa863('0x9')]}]});}['addRevision'](_0x25a941){const _0x5358fb=new _0x60b878(this[_0xa863('0x0')],_0x25a941,this[_0xa863('0xe')]);this[_0xa863('0x9')][_0xa863('0xc')](_0x5358fb);}[_0xa863('0xf')](_0x35d979){const _0x39dee1=this[_0xa863('0x9')][_0xa863('0x3')](_0x14e3cd=>_0x14e3cd['id']===_0x35d979['id']);this[_0xa863('0x9')][_0xa863('0xd')](_0x39dee1);}}
23
+ const _0x11ba=['setTemplate','div','delegate','locale','startDate','add','uiLanguage','revisionViews','ck-revision-history-sidebar__time-period__label','addRevision','removeRevision','select','localizedPeriodName','find','_revisionActions','ck-revision-history-sidebar__time-period__revisions'];(function(_0x1638ab,_0x11baee){const _0x3db82d=function(_0x587f11){while(--_0x587f11){_0x1638ab['push'](_0x1638ab['shift']());}};_0x3db82d(++_0x11baee);}(_0x11ba,0xc1));const _0x3db8=function(_0x1638ab,_0x11baee){_0x1638ab=_0x1638ab-0x0;let _0x3db82d=_0x11ba[_0x1638ab];return _0x3db82d;};import{View as _0x36d70c}from'ckeditor5/src/ui';import _0xcb423f from'../revision/revisionview';import{getDateTimePeriodInfo as _0x44a862}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x36d70c{constructor(_0x4a6477,_0x13323c,_0x1d0545){super(_0x4a6477);const _0x582fa8=_0x44a862(_0x13323c,this[_0x3db8('0x2')][_0x3db8('0x5')])[_0x3db8('0xb')];this[_0x3db8('0x3')]=_0x13323c,this[_0x3db8('0x6')]=this['createCollection'](),this['_revisionActions']=_0x1d0545,this[_0x3db8('0x6')][_0x3db8('0x1')](_0x3db8('0xa'))['to'](this),this['revisionViews']['delegate']('setName')['to'](this),this[_0x3db8('0xf')]({'tag':_0x3db8('0x0'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':'span','attributes':{'class':['ck',_0x3db8('0x7')]},'children':[{'text':_0x582fa8}]},{'tag':_0x3db8('0x0'),'attributes':{'class':['ck',_0x3db8('0xe')]},'children':this[_0x3db8('0x6')]}]});}[_0x3db8('0x8')](_0x88a4e5){const _0x5ee43f=new _0xcb423f(this['locale'],_0x88a4e5,this[_0x3db8('0xd')]);this[_0x3db8('0x6')][_0x3db8('0x4')](_0x5ee43f);}[_0x3db8('0x9')](_0x52238f){const _0x407353=this[_0x3db8('0x6')][_0x3db8('0xc')](_0x131c12=>_0x131c12['id']===_0x52238f['id']);this[_0x3db8('0x6')]['remove'](_0x407353);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3bc7=['createdAt','uiLanguage','_revisions','removeRevision','ck-revision-history-sidebar','ck-disabled','highlight','div','setTemplate','selectRevision','_getTimePeriodViewByStartDate','startDate','createCollection','addRevision','revisionViews','ck-rounded-corners','timePeriodViews','flat','_addRevision','set','bindTemplate','render','remove','ck-revision-history-sidebar__timeline','add','getTime','delegate','setName','find','select','unhighlight','_removeRevision','ck-reset','some','fire','_revisionActions','locale'];(function(_0x4c4ef8,_0x3bc797){const _0x34a9b0=function(_0x197726){while(--_0x197726){_0x4c4ef8['push'](_0x4c4ef8['shift']());}};_0x34a9b0(++_0x3bc797);}(_0x3bc7,0x1a4));const _0x34a9=function(_0x4c4ef8,_0x3bc797){_0x4c4ef8=_0x4c4ef8-0x0;let _0x34a9b0=_0x3bc7[_0x4c4ef8];return _0x34a9b0;};import{View as _0x45dea1}from'ckeditor5/src/ui';import _0x29b877 from'./revisionssidebartimeperiodview';import _0x53be15 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x1c8848}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x45dea1{constructor(_0x5f04a2,_0x1770b3,_0x308dee){super(_0x5f04a2);const _0x12b6f1=this[_0x34a9('0x7')];this[_0x34a9('0x3')]=this[_0x34a9('0x24')](),this[_0x34a9('0x3')][_0x34a9('0xd')](_0x34a9('0x10'))['to'](this),this['timePeriodViews']['delegate'](_0x34a9('0xe'))['to'](this),this[_0x34a9('0x1a')]=_0x1770b3,this[_0x34a9('0x16')]=_0x308dee,this['on']('select',(_0x8954c6,_0x3e3e4a)=>{this[_0x34a9('0x15')]('revisionSelected',_0x3e3e4a);}),this['on'](_0x34a9('0xe'),(_0x71a41,_0x20fa9e)=>{this['fire']('revisionSetName',_0x20fa9e);}),this[_0x34a9('0x6')]('isEnabled',!0x1),this[_0x34a9('0x20')]({'tag':_0x34a9('0x1f'),'attributes':{'class':['ck',_0x34a9('0x13'),_0x34a9('0x2'),_0x34a9('0x1c')]},'children':[new _0x53be15(_0x5f04a2),{'tag':_0x34a9('0x1f'),'attributes':{'class':['ck',_0x34a9('0xa'),_0x12b6f1['if']('isEnabled',_0x34a9('0x1d'),_0x4435a3=>!_0x4435a3)]},'children':this['timePeriodViews']}]});}[_0x34a9('0x8')](){super['render']();for(const _0x55427e of this['_revisions'])this[_0x34a9('0x5')](_0x55427e);this[_0x34a9('0x1a')]['on']('add',(_0x34fe78,_0x4d500e)=>{this[_0x34a9('0x5')](_0x4d500e);}),this[_0x34a9('0x1a')]['on'](_0x34a9('0x9'),(_0x1c249d,_0x165d72)=>{this[_0x34a9('0x12')](_0x165d72);});}get[_0x34a9('0x1')](){return this[_0x34a9('0x3')]['map'](_0x7029a1=>_0x7029a1[_0x34a9('0x1')]['map'](_0x2d47eb=>_0x2d47eb))[_0x34a9('0x4')]();}[_0x34a9('0x21')](_0x4ee8bc){for(const _0x24a94d of this[_0x34a9('0x1')])_0x4ee8bc&&_0x4ee8bc['id']===_0x24a94d['id']?_0x24a94d[_0x34a9('0x10')]():_0x24a94d['deselect']();}['highlightRevisions'](_0x11979a){for(const _0x558331 of this[_0x34a9('0x1')])_0x11979a[_0x34a9('0x14')](({id:_0x5be4e8})=>_0x5be4e8===_0x558331['id'])?_0x558331[_0x34a9('0x1e')]():_0x558331[_0x34a9('0x11')]();}['_addRevision'](_0x216760){const _0x39aca6=_0x1c8848(_0x216760[_0x34a9('0x18')],this['locale'][_0x34a9('0x19')])[_0x34a9('0x23')];let _0x292859=this[_0x34a9('0x3')]['get'](0x0);_0x292859&&_0x292859[_0x34a9('0x23')][_0x34a9('0xc')]()===_0x39aca6['getTime']()||(_0x292859=new _0x29b877(this[_0x34a9('0x17')],_0x39aca6,this[_0x34a9('0x16')]),this[_0x34a9('0x3')][_0x34a9('0xb')](_0x292859)),_0x292859[_0x34a9('0x0')](_0x216760);}[_0x34a9('0x12')](_0x421f60){const _0x4a518d=_0x1c8848(_0x421f60[_0x34a9('0x18')],this[_0x34a9('0x17')][_0x34a9('0x19')])[_0x34a9('0x23')];this[_0x34a9('0x22')](_0x4a518d)[_0x34a9('0x1b')](_0x421f60);}[_0x34a9('0x22')](_0x61850c){return this[_0x34a9('0x3')][_0x34a9('0xf')](_0xb69984=>_0xb69984[_0x34a9('0x23')][_0x34a9('0xc')]()===_0x61850c['getTime']());}}
23
+ const _0x225b=['flat','startDate','uiLanguage','set','locale','revisionSelected','add','_revisionActions','ck-revision-history-sidebar','remove','_getTimePeriodViewByStartDate','div','isEnabled','get','render','_revisions','delegate','select','_removeRevision','setName','timePeriodViews','find','addRevision','selectRevision','setTemplate','ck-revision-history-sidebar__timeline','createdAt','_addRevision','getTime','revisionSetName','ck-disabled','revisionViews','ck-rounded-corners','removeRevision'];(function(_0x4d3b49,_0x225bfe){const _0x4d19d2=function(_0x3e3456){while(--_0x3e3456){_0x4d3b49['push'](_0x4d3b49['shift']());}};_0x4d19d2(++_0x225bfe);}(_0x225b,0x1a8));const _0x4d19=function(_0x4d3b49,_0x225bfe){_0x4d3b49=_0x4d3b49-0x0;let _0x4d19d2=_0x225b[_0x4d3b49];return _0x4d19d2;};import{View as _0x7338b4}from'ckeditor5/src/ui';import _0x1415a9 from'./revisionssidebartimeperiodview';import _0x5e3485 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x4ccdbf}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x7338b4{constructor(_0x25ea23,_0x2e2ef7,_0x566029){super(_0x25ea23);const _0x145a3c=this['bindTemplate'];this[_0x4d19('0x4')]=this['createCollection'](),this[_0x4d19('0x4')]['delegate'](_0x4d19('0x1'))['to'](this),this[_0x4d19('0x4')][_0x4d19('0x0')]('setName')['to'](this),this[_0x4d19('0x21')]=_0x2e2ef7,this[_0x4d19('0x19')]=_0x566029,this['on'](_0x4d19('0x1'),(_0x166d21,_0x5e5e6f)=>{this['fire'](_0x4d19('0x17'),_0x5e5e6f);}),this['on'](_0x4d19('0x3'),(_0xe39166,_0x45e7ad)=>{this['fire'](_0x4d19('0xd'),_0x45e7ad);}),this[_0x4d19('0x15')](_0x4d19('0x1e'),!0x1),this[_0x4d19('0x8')]({'tag':_0x4d19('0x1d'),'attributes':{'class':['ck','ck-reset',_0x4d19('0x10'),_0x4d19('0x1a')]},'children':[new _0x5e3485(_0x25ea23),{'tag':_0x4d19('0x1d'),'attributes':{'class':['ck',_0x4d19('0x9'),_0x145a3c['if'](_0x4d19('0x1e'),_0x4d19('0xe'),_0x335bfe=>!_0x335bfe)]},'children':this[_0x4d19('0x4')]}]});}[_0x4d19('0x20')](){super[_0x4d19('0x20')]();for(const _0x3b251a of this['_revisions'])this[_0x4d19('0xb')](_0x3b251a);this[_0x4d19('0x21')]['on'](_0x4d19('0x18'),(_0x3d9e2b,_0x45a467)=>{this[_0x4d19('0xb')](_0x45a467);}),this['_revisions']['on'](_0x4d19('0x1b'),(_0x497d70,_0x1dc334)=>{this['_removeRevision'](_0x1dc334);});}get[_0x4d19('0xf')](){return this['timePeriodViews']['map'](_0x36c68d=>_0x36c68d['revisionViews']['map'](_0x2f387d=>_0x2f387d))[_0x4d19('0x12')]();}[_0x4d19('0x7')](_0x4f2bd7){for(const _0x981624 of this[_0x4d19('0xf')])_0x4f2bd7&&_0x4f2bd7['id']===_0x981624['id']?_0x981624[_0x4d19('0x1')]():_0x981624['deselect']();}['highlightRevisions'](_0xb4a971){for(const _0x3720c5 of this[_0x4d19('0xf')])_0xb4a971['some'](({id:_0xa5b6b5})=>_0xa5b6b5===_0x3720c5['id'])?_0x3720c5['highlight']():_0x3720c5['unhighlight']();}['_addRevision'](_0x5dff03){const _0x535860=_0x4ccdbf(_0x5dff03[_0x4d19('0xa')],this[_0x4d19('0x16')][_0x4d19('0x14')])[_0x4d19('0x13')];let _0x25a194=this[_0x4d19('0x4')][_0x4d19('0x1f')](0x0);_0x25a194&&_0x25a194[_0x4d19('0x13')]['getTime']()===_0x535860[_0x4d19('0xc')]()||(_0x25a194=new _0x1415a9(this['locale'],_0x535860,this[_0x4d19('0x19')]),this[_0x4d19('0x4')][_0x4d19('0x18')](_0x25a194)),_0x25a194[_0x4d19('0x6')](_0x5dff03);}[_0x4d19('0x2')](_0x5e13f2){const _0x256acf=_0x4ccdbf(_0x5e13f2[_0x4d19('0xa')],this['locale']['uiLanguage'])[_0x4d19('0x13')];this[_0x4d19('0x1c')](_0x256acf)[_0x4d19('0x11')](_0x5e13f2);}[_0x4d19('0x1c')](_0x41b7ea){return this[_0x4d19('0x4')][_0x4d19('0x5')](_0x26ca08=>_0x26ca08[_0x4d19('0x13')][_0x4d19('0xc')]()===_0x41b7ea[_0x4d19('0xc')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3cfb=['week','month','toRelativeCalendar','weekdayLong','toJSDate','day','hasSame','startOf','year','fromJSDate','local'];(function(_0x232a24,_0x3cfb60){const _0x4c7270=function(_0x30b928){while(--_0x30b928){_0x232a24['push'](_0x232a24['shift']());}};_0x4c7270(++_0x3cfb60);}(_0x3cfb,0xf7));const _0x4c72=function(_0x232a24,_0x3cfb60){_0x232a24=_0x232a24-0x0;let _0x4c7270=_0x3cfb[_0x232a24];return _0x4c7270;};import{DateTime as _0x3067ac}from'luxon';export function getDateTimePeriodInfo(_0x3c66bd,_0xebe680){const _0x1c134b=_0x3067ac[_0x4c72('0x4')](_0x3c66bd)['setLocale'](_0xebe680),_0x24cbbb=_0x3067ac[_0x4c72('0x5')](),_0x3e1cca=_0x24cbbb['minus']({'days':0x1})['startOf'](_0x4c72('0x0'));let _0x1e5398,_0x546820;return _0x1c134b[_0x4c72('0x1')](_0x24cbbb,'day')?(_0x1e5398=_0x1c134b['startOf']('day')[_0x4c72('0xa')](),_0x546820=_0x1c134b[_0x4c72('0x8')]()):_0x1c134b[_0x4c72('0x1')](_0x3e1cca,'day')?(_0x1e5398=_0x3e1cca[_0x4c72('0xa')](),_0x546820=_0x1c134b[_0x4c72('0x8')]()):_0x1c134b[_0x4c72('0x1')](_0x24cbbb,_0x4c72('0x6'))?(_0x1e5398=_0x1c134b[_0x4c72('0x2')](_0x4c72('0x6'))[_0x4c72('0xa')](),_0x546820=_0x1c134b[_0x4c72('0x9')]||''):_0x1c134b['hasSame'](_0x24cbbb,_0x4c72('0x3'))?(_0x1e5398=_0x1c134b['startOf'](_0x4c72('0x7'))['toJSDate'](),_0x546820=_0x1c134b['monthLong']||''):(_0x1e5398=_0x1c134b[_0x4c72('0x2')]('year')['toJSDate'](),_0x546820=String(_0x1c134b[_0x4c72('0x3')])),{'startDate':_0x1e5398,'localizedPeriodName':_0x546820};}
23
+ const _0x2454=['minus','startOf','local','hasSame','fromJSDate','toJSDate','weekdayLong','toRelativeCalendar','week','year','monthLong','setLocale','day'];(function(_0x555167,_0x2454f2){const _0x52f24a=function(_0x39e580){while(--_0x39e580){_0x555167['push'](_0x555167['shift']());}};_0x52f24a(++_0x2454f2);}(_0x2454,0x1ca));const _0x52f2=function(_0x555167,_0x2454f2){_0x555167=_0x555167-0x0;let _0x52f24a=_0x2454[_0x555167];return _0x52f24a;};import{DateTime as _0x2a4024}from'luxon';export function getDateTimePeriodInfo(_0x119794,_0x4dcf1d){const _0x237aa7=_0x2a4024[_0x52f2('0x1')](_0x119794)[_0x52f2('0x8')](_0x4dcf1d),_0x58113a=_0x2a4024[_0x52f2('0xc')](),_0x1b7ea9=_0x58113a[_0x52f2('0xa')]({'days':0x1})[_0x52f2('0xb')](_0x52f2('0x9'));let _0x199736,_0x4f1038;return _0x237aa7['hasSame'](_0x58113a,_0x52f2('0x9'))?(_0x199736=_0x237aa7[_0x52f2('0xb')](_0x52f2('0x9'))['toJSDate'](),_0x4f1038=_0x237aa7[_0x52f2('0x4')]()):_0x237aa7[_0x52f2('0x0')](_0x1b7ea9,_0x52f2('0x9'))?(_0x199736=_0x1b7ea9[_0x52f2('0x2')](),_0x4f1038=_0x237aa7['toRelativeCalendar']()):_0x237aa7['hasSame'](_0x58113a,_0x52f2('0x5'))?(_0x199736=_0x237aa7[_0x52f2('0xb')](_0x52f2('0x5'))[_0x52f2('0x2')](),_0x4f1038=_0x237aa7[_0x52f2('0x3')]||''):_0x237aa7[_0x52f2('0x0')](_0x58113a,_0x52f2('0x6'))?(_0x199736=_0x237aa7[_0x52f2('0xb')]('month')[_0x52f2('0x2')](),_0x4f1038=_0x237aa7[_0x52f2('0x7')]||''):(_0x199736=_0x237aa7[_0x52f2('0xb')](_0x52f2('0x6'))[_0x52f2('0x2')](),_0x4f1038=String(_0x237aa7[_0x52f2('0x6')])),{'startDate':_0x199736,'localizedPeriodName':_0x4f1038};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x40ad=['ck-revision-change__label','_model','set','add','type','bindTemplate','span','Added\x20by','author','name','focus','ck-annotation','Suggested\x20by','ck-revision-change__','Removed\x20by','changeId'];(function(_0x343edf,_0x40adf4){const _0x5e1d6c=function(_0x532523){while(--_0x532523){_0x343edf['push'](_0x343edf['shift']());}};_0x5e1d6c(++_0x40adf4);}(_0x40ad,0x13f));const _0x5e1d=function(_0x343edf,_0x40adf4){_0x343edf=_0x343edf-0x0;let _0x5e1d6c=_0x40ad[_0x343edf];return _0x5e1d6c;};import{View as _0x561416}from'ckeditor5/src/ui';import{getTranslation as _0x4523f0}from'../../utils/common-translations';export default class X extends _0x561416{constructor(_0x57288b,_0x3214e5){super(_0x57288b),this[_0x5e1d('0x2')]=_0x3214e5,this[_0x5e1d('0x0')]=_0x3214e5['id'];const _0x1c19f5=this[_0x5e1d('0x6')],_0x300556=_0x4523f0(_0x57288b,_0x3214e5['data']['isSuggestion']?_0x5e1d('0xd'):_0x5e1d('0x4')==_0x3214e5[_0x5e1d('0x5')]?_0x5e1d('0x8'):_0x5e1d('0xf'));this[_0x5e1d('0x3')](_0x5e1d('0x5'),_0x3214e5[_0x5e1d('0x5')]),this['setTemplate']({'tag':'div','attributes':{'class':[_0x5e1d('0xc'),'ck-revision-change',_0x1c19f5['to'](_0x5e1d('0x5'),_0x230704=>_0x5e1d('0xe')+_0x230704)],'tabindex':-0x1},'children':[{'tag':_0x5e1d('0x7'),'children':[{'tag':_0x5e1d('0x7'),'attributes':{'class':[_0x5e1d('0x1')]},'children':[{'text':_0x300556}]},{'text':'\x20'+_0x3214e5[_0x5e1d('0x9')][_0x5e1d('0xa')]}]}]});}[_0x5e1d('0xb')](){this['element'][_0x5e1d('0xb')]();}}
23
+ const _0x3079=['type','focus','ck-revision-change__','Suggested\x20by','ck-revision-change__label','add','div','changeId','author','span','element','Added\x20by','setTemplate','Removed\x20by','name','_model'];(function(_0x3f5930,_0x3079c7){const _0x445d30=function(_0x3c3c5b){while(--_0x3c3c5b){_0x3f5930['push'](_0x3f5930['shift']());}};_0x445d30(++_0x3079c7);}(_0x3079,0x16e));const _0x445d=function(_0x3f5930,_0x3079c7){_0x3f5930=_0x3f5930-0x0;let _0x445d30=_0x3079[_0x3f5930];return _0x445d30;};import{View as _0x543c1d}from'ckeditor5/src/ui';import{getTranslation as _0x10a353}from'../../utils/common-translations';export default class X extends _0x543c1d{constructor(_0x16c8b3,_0x37cffd){super(_0x16c8b3),this[_0x445d('0x1')]=_0x37cffd,this[_0x445d('0x9')]=_0x37cffd['id'];const _0x527778=this['bindTemplate'],_0x45dbc7=_0x10a353(_0x16c8b3,_0x37cffd['data']['isSuggestion']?_0x445d('0x5'):_0x445d('0x7')==_0x37cffd[_0x445d('0x2')]?_0x445d('0xd'):_0x445d('0xf'));this['set']('type',_0x37cffd[_0x445d('0x2')]),this[_0x445d('0xe')]({'tag':_0x445d('0x8'),'attributes':{'class':['ck-annotation','ck-revision-change',_0x527778['to'](_0x445d('0x2'),_0x24b568=>_0x445d('0x4')+_0x24b568)],'tabindex':-0x1},'children':[{'tag':_0x445d('0xb'),'children':[{'tag':_0x445d('0xb'),'attributes':{'class':[_0x445d('0x6')]},'children':[{'text':_0x45dbc7}]},{'text':'\x20'+_0x37cffd[_0x445d('0xa')][_0x445d('0x0')]}]}]});}['focus'](){this[_0x445d('0xc')][_0x445d('0x3')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4e1d=['set','currentChangeNumber','bindTemplate','isReady','_isStatusLabelVisible','No\x20changes','isEnabled','Total','ck-hidden','execute','ck-revision-history-ui__changes-navigation__label','ck-revision-history-ui__changes-navigation','EDIT_X_OF_Y_REVISIONS','ck-revision-history-ui__changes-navigation__wrapper','isBackwardNavigationEnabled','_statusText','bind','fire','numberOfChanges','Show\x20next\x20change','forward','setTemplate','Show\x20previous\x20change','div','span','isNavigationMode','X_OF_Y_CHANGES','Loading...','ck-revision-history-ui__changes-navigation__navigation','NUMBER_OF_CHANGES'];(function(_0x3619bf,_0x4e1dc7){const _0x2c926a=function(_0x16ef70){while(--_0x16ef70){_0x3619bf['push'](_0x3619bf['shift']());}};_0x2c926a(++_0x4e1dc7);}(_0x4e1d,0x147));const _0x2c92=function(_0x3619bf,_0x4e1dc7){_0x3619bf=_0x3619bf-0x0;let _0x2c926a=_0x4e1d[_0x3619bf];return _0x2c926a;};import{View as _0x12b23c,ButtonView as _0x17bc59,ToolbarSeparatorView as _0x7a194b}from'ckeditor5/src/ui';import{getTranslation as _0x49951d}from'../../utils/common-translations';import _0x280c9d from'../../../theme/icons/arrow-up.svg';import _0x24b5e3 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x12b23c{constructor(_0x252daf){super(_0x252daf);const _0x371813=this[_0x2c92('0x5')],_0x4fa9de=new _0x17bc59(_0x252daf),_0x2c33c8=new _0x17bc59(_0x252daf);this[_0x2c92('0x3')](_0x2c92('0x1c'),!0x1),this[_0x2c92('0x3')](_0x2c92('0x6'),!0x1),this[_0x2c92('0x3')](_0x2c92('0x4'),0x0),this[_0x2c92('0x3')](_0x2c92('0x15'),0x0),this[_0x2c92('0x3')]('isForwardNavigationEnabled',!0x1),this[_0x2c92('0x3')](_0x2c92('0x11'),!0x1),this[_0x2c92('0x13')](_0x2c92('0x7'))['to'](this,'isReady',this,'numberOfChanges',(_0x3bdad8,_0x507200)=>_0x3bdad8&&_0x507200>0x0),this[_0x2c92('0x13')](_0x2c92('0x12'))['to'](this,_0x2c92('0x6'),this,_0x2c92('0x4'),this,_0x2c92('0x15'),this,_0x2c92('0x1c'),(_0x43d1a8,_0x4742b2,_0x4a8f73,_0x14d6e4)=>{if(!_0x43d1a8)return _0x49951d(_0x252daf,_0x2c92('0x0'));if(!_0x4a8f73)return _0x49951d(_0x252daf,_0x2c92('0x8'));const _0x4de3dc=_0x49951d(_0x252daf,_0x2c92('0x2'),_0x4a8f73);return _0x14d6e4?_0x49951d(_0x252daf,_0x2c92('0x1d'),[_0x4742b2+0x1,_0x4a8f73]):_0x4de3dc;}),_0x4fa9de[_0x2c92('0x3')]({'label':_0x49951d(_0x252daf,_0x2c92('0x19')),'tooltip':!0x0,'icon':_0x280c9d}),_0x2c33c8[_0x2c92('0x3')]({'label':_0x49951d(_0x252daf,_0x2c92('0x16')),'tooltip':!0x0,'icon':_0x24b5e3}),_0x4fa9de[_0x2c92('0x13')](_0x2c92('0x9'))['to'](this,'isBackwardNavigationEnabled'),_0x2c33c8['bind'](_0x2c92('0x9'))['to'](this,'isForwardNavigationEnabled'),_0x4fa9de['on']('execute',()=>this['fire'](_0x2c92('0xc'),'backward')),_0x2c33c8['on'](_0x2c92('0xc'),()=>this[_0x2c92('0x14')]('execute',_0x2c92('0x17'))),this[_0x2c92('0x18')]({'tag':_0x2c92('0x1a'),'attributes':{'class':['ck','ck-revision-history-ui',_0x2c92('0xe')]},'children':[{'tag':_0x2c92('0x1b'),'attributes':{'class':[_0x2c92('0x10')]},'children':[{'tag':_0x2c92('0x1b'),'attributes':{'class':[_0x2c92('0xd'),_0x371813['if']('_isStatusLabelVisible',_0x2c92('0xb'),_0x49214f=>!_0x49214f)]},'children':[{'text':_0x371813['to']('isNavigationMode',_0x4a4212=>_0x4a4212?_0x49951d(_0x252daf,_0x2c92('0xf'))+':\x20':_0x49951d(_0x252daf,_0x2c92('0xa'))+':\x20')}]},{'text':_0x371813['to'](_0x2c92('0x12'))}]},new _0x7a194b(),{'tag':_0x2c92('0x1a'),'attributes':{'class':[_0x2c92('0x1')]},'children':[_0x4fa9de,_0x2c33c8]}]});}}
23
+ const _0x1fe7=['span','Total','ck-revision-history-ui__changes-navigation__navigation','backward','ck-revision-history-ui','ck-revision-history-ui__changes-navigation__wrapper','numberOfChanges','fire','forward','execute','ck-revision-history-ui__changes-navigation__label','ck-revision-history-ui__changes-navigation','Show\x20previous\x20change','_isStatusLabelVisible','div','NUMBER_OF_CHANGES','isBackwardNavigationEnabled','isForwardNavigationEnabled','_statusText','isNavigationMode','bind','isReady','isEnabled','currentChangeNumber','set'];(function(_0x125222,_0x1fe7af){const _0x25f17f=function(_0x79a813){while(--_0x79a813){_0x125222['push'](_0x125222['shift']());}};_0x25f17f(++_0x1fe7af);}(_0x1fe7,0xb1));const _0x25f1=function(_0x125222,_0x1fe7af){_0x125222=_0x125222-0x0;let _0x25f17f=_0x1fe7[_0x125222];return _0x25f17f;};import{View as _0x3362f8,ButtonView as _0x4c1a79,ToolbarSeparatorView as _0x558ef6}from'ckeditor5/src/ui';import{getTranslation as _0x4acde1}from'../../utils/common-translations';import _0x5640fd from'../../../theme/icons/arrow-up.svg';import _0x911f87 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x3362f8{constructor(_0x402d0e){super(_0x402d0e);const _0x5cc98e=this['bindTemplate'],_0x215bb7=new _0x4c1a79(_0x402d0e),_0x5bc7a4=new _0x4c1a79(_0x402d0e);this[_0x25f1('0x16')](_0x25f1('0x11'),!0x1),this[_0x25f1('0x16')](_0x25f1('0x13'),!0x1),this[_0x25f1('0x16')](_0x25f1('0x15'),0x0),this[_0x25f1('0x16')](_0x25f1('0x4'),0x0),this[_0x25f1('0x16')]('isForwardNavigationEnabled',!0x1),this[_0x25f1('0x16')]('isBackwardNavigationEnabled',!0x1),this[_0x25f1('0x12')](_0x25f1('0xb'))['to'](this,_0x25f1('0x13'),this,_0x25f1('0x4'),(_0x599005,_0x1c39d2)=>_0x599005&&_0x1c39d2>0x0),this[_0x25f1('0x12')]('_statusText')['to'](this,_0x25f1('0x13'),this,'currentChangeNumber',this,_0x25f1('0x4'),this,'isNavigationMode',(_0x500ab4,_0x34b1b4,_0x23a0e8,_0x3cc735)=>{if(!_0x500ab4)return _0x4acde1(_0x402d0e,'Loading...');if(!_0x23a0e8)return _0x4acde1(_0x402d0e,'No\x20changes');const _0x4ff1bb=_0x4acde1(_0x402d0e,_0x25f1('0xd'),_0x23a0e8);return _0x3cc735?_0x4acde1(_0x402d0e,'X_OF_Y_CHANGES',[_0x34b1b4+0x1,_0x23a0e8]):_0x4ff1bb;}),_0x215bb7[_0x25f1('0x16')]({'label':_0x4acde1(_0x402d0e,_0x25f1('0xa')),'tooltip':!0x0,'icon':_0x5640fd}),_0x5bc7a4[_0x25f1('0x16')]({'label':_0x4acde1(_0x402d0e,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x911f87}),_0x215bb7[_0x25f1('0x12')]('isEnabled')['to'](this,_0x25f1('0xe')),_0x5bc7a4['bind'](_0x25f1('0x14'))['to'](this,_0x25f1('0xf')),_0x215bb7['on'](_0x25f1('0x7'),()=>this[_0x25f1('0x5')](_0x25f1('0x7'),_0x25f1('0x1'))),_0x5bc7a4['on']('execute',()=>this[_0x25f1('0x5')](_0x25f1('0x7'),_0x25f1('0x6'))),this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x25f1('0x2'),_0x25f1('0x9')]},'children':[{'tag':_0x25f1('0x17'),'attributes':{'class':[_0x25f1('0x3')]},'children':[{'tag':'span','attributes':{'class':[_0x25f1('0x8'),_0x5cc98e['if']('_isStatusLabelVisible','ck-hidden',_0x450cf8=>!_0x450cf8)]},'children':[{'text':_0x5cc98e['to'](_0x25f1('0x11'),_0x56d3f5=>_0x56d3f5?_0x4acde1(_0x402d0e,'EDIT_X_OF_Y_REVISIONS')+':\x20':_0x4acde1(_0x402d0e,_0x25f1('0x18'))+':\x20')}]},{'text':_0x5cc98e['to'](_0x25f1('0x10'))}]},new _0x558ef6(),{'tag':_0x25f1('0xc'),'attributes':{'class':[_0x25f1('0x0')]},'children':[_0x215bb7,_0x5bc7a4]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x115b=['editor','RevisionViewerLoadingOverlay','removeClass','pluginName','view','hide','editing','addClass','change','roots','document','ck-editor__editable__loading-overlay'];(function(_0x4a553a,_0x115bc3){const _0x2c7b99=function(_0x13fc89){while(--_0x13fc89){_0x4a553a['push'](_0x4a553a['shift']());}};_0x2c7b99(++_0x115bc3);}(_0x115b,0x19c));const _0x2c7b=function(_0x4a553a,_0x115bc3){_0x4a553a=_0x4a553a-0x0;let _0x2c7b99=_0x115b[_0x4a553a];return _0x2c7b99;};import{Plugin as _0x23c5ba}from'ckeditor5/src/core';const oe=_0x2c7b('0x7');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x23c5ba{static get[_0x2c7b('0xb')](){return _0x2c7b('0x9');}['show'](){const _0x294510=this[_0x2c7b('0x8')][_0x2c7b('0x2')][_0x2c7b('0x0')];_0x294510[_0x2c7b('0x4')](_0x2ea443=>{for(const _0xefedbc of _0x294510[_0x2c7b('0x6')]['roots'])_0x2ea443[_0x2c7b('0x3')](oe,_0xefedbc);});}[_0x2c7b('0x1')](){const _0x55ced1=this[_0x2c7b('0x8')][_0x2c7b('0x2')][_0x2c7b('0x0')];_0x55ced1[_0x2c7b('0x4')](_0xb9b97e=>{for(const _0x20142a of _0x55ced1['document'][_0x2c7b('0x5')])_0xb9b97e[_0x2c7b('0xa')](oe,_0x20142a);});}}
23
+ const _0x42b8=['removeClass','document','pluginName','change','view','RevisionViewerLoadingOverlay','addClass','editor','hide','editing','show'];(function(_0xb76f99,_0x42b806){const _0x4869ae=function(_0x1d3a4d){while(--_0x1d3a4d){_0xb76f99['push'](_0xb76f99['shift']());}};_0x4869ae(++_0x42b806);}(_0x42b8,0x94));const _0x4869=function(_0xb76f99,_0x42b806){_0xb76f99=_0xb76f99-0x0;let _0x4869ae=_0x42b8[_0xb76f99];return _0x4869ae;};import{Plugin as _0x599c13}from'ckeditor5/src/core';const oe='ck-editor__editable__loading-overlay';import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x599c13{static get[_0x4869('0x8')](){return _0x4869('0x0');}[_0x4869('0x5')](){const _0x14b012=this[_0x4869('0x2')][_0x4869('0x4')][_0x4869('0xa')];_0x14b012[_0x4869('0x9')](_0x441bb4=>{for(const _0x5bdba7 of _0x14b012['document']['roots'])_0x441bb4[_0x4869('0x1')](oe,_0x5bdba7);});}[_0x4869('0x3')](){const _0x161b9a=this[_0x4869('0x2')][_0x4869('0x4')][_0x4869('0xa')];_0x161b9a[_0x4869('0x9')](_0x463fb7=>{for(const _0x5e0500 of _0x161b9a[_0x4869('0x7')]['roots'])_0x463fb7[_0x4869('0x6')](oe,_0x5e0500);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x461d=['commands','plugins','revisionHistory','change:isReady','get','restoreRevision','Back\x20to\x20editing','isEnabled','showPreviousChange','config','requires','isReady','isForwardNavigationEnabled','isBackwardNavigationEnabled','exitToEditing','showNextChange','pluginName','isNavigationMode','currentChangeNumber','RevisionViewerUI','componentFactory','set','show','numberOfChanges','listenTo','editor','execute','changesNavigation','add','bind','closeRevisionViewerCallback'];(function(_0x19571b,_0x461dfc){const _0x48be72=function(_0x492ce2){while(--_0x492ce2){_0x19571b['push'](_0x19571b['shift']());}};_0x48be72(++_0x461dfc);}(_0x461d,0xce));const _0x48be=function(_0x19571b,_0x461dfc){_0x19571b=_0x19571b-0x0;let _0x48be72=_0x461d[_0x19571b];return _0x48be72;};import{Plugin as _0x4dfd6c}from'ckeditor5/src/core';import{ButtonView as _0x230405}from'ckeditor5/src/ui';import _0x361392 from'./changesnavigationview';import _0x1c2a83 from'./../../revisionviewer';import _0x5d64a8 from'./revisionviewerloadingoverlay';import{getTranslation as _0x4980b6}from'../../utils/common-translations';import _0x4a2f53 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class w extends _0x4dfd6c{static get[_0x48be('0x1b')](){return _0x48be('0x1e');}static get[_0x48be('0x15')](){return[_0x1c2a83,_0x5d64a8];}['init'](){const _0x246d56=this[_0x48be('0x5')],_0x5179c3=_0x246d56['plugins'][_0x48be('0xf')](_0x1c2a83),_0x34251e=_0x246d56[_0x48be('0xc')][_0x48be('0xf')](_0x5d64a8);_0x246d56['ui'][_0x48be('0x0')][_0x48be('0x8')](_0x48be('0x19'),_0x2a53cb=>{const _0x2c90b8=new _0x230405(_0x2a53cb);return _0x2c90b8[_0x48be('0x1')]({'label':_0x4980b6(_0x2a53cb,_0x48be('0x11')),'icon':_0x4a2f53,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this[_0x48be('0x4')](_0x2c90b8,'execute',()=>{_0x246d56[_0x48be('0x14')][_0x48be('0xf')](_0x48be('0xd'))[_0x48be('0xa')]();}),_0x2c90b8;}),_0x246d56['ui']['componentFactory']['add']('restoreRevision',_0x8a23e2=>{const _0x5c3458=new _0x230405(_0x8a23e2);return _0x5c3458[_0x48be('0x1')]({'label':_0x4980b6(_0x8a23e2,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5c3458['bind'](_0x48be('0x12'))['to'](_0x246d56[_0x48be('0xb')][_0x48be('0xf')](_0x48be('0x10'))),this[_0x48be('0x4')](_0x5c3458,_0x48be('0x6'),()=>_0x246d56[_0x48be('0x6')](_0x48be('0x10'))),_0x5c3458;}),_0x246d56['ui'][_0x48be('0x0')][_0x48be('0x8')](_0x48be('0x7'),_0x2fbbce=>{const _0x4f6189=new _0x361392(_0x2fbbce),_0x4ac8ea=_0x246d56[_0x48be('0xb')][_0x48be('0xf')](_0x48be('0x13')),_0x54a1c0=_0x246d56[_0x48be('0xb')][_0x48be('0xf')]('showNextChange');return _0x4f6189[_0x48be('0x9')](_0x48be('0x18'))['to'](_0x4ac8ea,_0x48be('0x12')),_0x4f6189[_0x48be('0x9')](_0x48be('0x17'))['to'](_0x54a1c0,'isEnabled'),_0x4f6189[_0x48be('0x9')](_0x48be('0x16'),_0x48be('0x1d'),_0x48be('0x3'),_0x48be('0x1c'))['to'](_0x5179c3),this[_0x48be('0x4')](_0x4f6189,_0x48be('0x6'),(_0x3d317f,_0x218531)=>{_0x246d56[_0x48be('0x6')]('forward'===_0x218531?_0x48be('0x1a'):_0x48be('0x13'));}),_0x4f6189;}),_0x34251e[_0x48be('0x2')](),_0x5179c3['on'](_0x48be('0xe'),(_0x42451f,_0x57c5e4,_0x44192d)=>{_0x44192d?_0x34251e['hide']():_0x34251e['show']();});}}
23
+ const _0x3c46=['editor','requires','Restore\x20this\x20revision','RevisionViewerUI','isBackwardNavigationEnabled','closeRevisionViewerCallback','isForwardNavigationEnabled','isNavigationMode','currentChangeNumber','ck-revision-history-ui__back-to-editing','showNextChange','execute','bind','isEnabled','forward','Back\x20to\x20editing','set','commands','showPreviousChange','revisionHistory','get','plugins','change:isReady','init','componentFactory','config','restoreRevision','listenTo','add','show','hide'];(function(_0xb97fd3,_0x3c462e){const _0x268047=function(_0x247aed){while(--_0x247aed){_0xb97fd3['push'](_0xb97fd3['shift']());}};_0x268047(++_0x3c462e);}(_0x3c46,0x94));const _0x2680=function(_0xb97fd3,_0x3c462e){_0xb97fd3=_0xb97fd3-0x0;let _0x268047=_0x3c46[_0xb97fd3];return _0x268047;};import{Plugin as _0x422a24}from'ckeditor5/src/core';import{ButtonView as _0x2d9e5c}from'ckeditor5/src/ui';import _0x2c926b from'./changesnavigationview';import _0x249b7c from'./../../revisionviewer';import _0xe2aaa1 from'./revisionviewerloadingoverlay';import{getTranslation as _0x1730fc}from'../../utils/common-translations';import _0x3ce136 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class w extends _0x422a24{static get['pluginName'](){return _0x2680('0xa');}static get[_0x2680('0x8')](){return[_0x249b7c,_0xe2aaa1];}[_0x2680('0x1e')](){const _0x296aa0=this[_0x2680('0x7')],_0x2ca40e=_0x296aa0[_0x2680('0x1c')][_0x2680('0x1b')](_0x249b7c),_0x909bbf=_0x296aa0[_0x2680('0x1c')]['get'](_0xe2aaa1);_0x296aa0['ui'][_0x2680('0x0')][_0x2680('0x4')]('exitToEditing',_0x4f11d6=>{const _0x53d0a9=new _0x2d9e5c(_0x4f11d6);return _0x53d0a9['set']({'label':_0x1730fc(_0x4f11d6,_0x2680('0x16')),'icon':_0x3ce136,'withText':!0x0,'tooltip':!0x0,'class':_0x2680('0x10')}),this[_0x2680('0x3')](_0x53d0a9,_0x2680('0x12'),()=>{_0x296aa0[_0x2680('0x1')]['get'](_0x2680('0x1a'))[_0x2680('0xc')]();}),_0x53d0a9;}),_0x296aa0['ui'][_0x2680('0x0')]['add']('restoreRevision',_0x58a8d3=>{const _0x9417cf=new _0x2d9e5c(_0x58a8d3);return _0x9417cf[_0x2680('0x17')]({'label':_0x1730fc(_0x58a8d3,_0x2680('0x9')),'withText':!0x0,'tooltip':!0x0}),_0x9417cf[_0x2680('0x13')](_0x2680('0x14'))['to'](_0x296aa0[_0x2680('0x18')]['get'](_0x2680('0x2'))),this[_0x2680('0x3')](_0x9417cf,_0x2680('0x12'),()=>_0x296aa0[_0x2680('0x12')]('restoreRevision')),_0x9417cf;}),_0x296aa0['ui'][_0x2680('0x0')][_0x2680('0x4')]('changesNavigation',_0x5e085d=>{const _0x58f733=new _0x2c926b(_0x5e085d),_0x3dc15e=_0x296aa0[_0x2680('0x18')]['get'](_0x2680('0x19')),_0x22bee6=_0x296aa0[_0x2680('0x18')][_0x2680('0x1b')](_0x2680('0x11'));return _0x58f733[_0x2680('0x13')](_0x2680('0xb'))['to'](_0x3dc15e,_0x2680('0x14')),_0x58f733[_0x2680('0x13')](_0x2680('0xd'))['to'](_0x22bee6,'isEnabled'),_0x58f733[_0x2680('0x13')]('isReady',_0x2680('0xf'),'numberOfChanges',_0x2680('0xe'))['to'](_0x2ca40e),this[_0x2680('0x3')](_0x58f733,_0x2680('0x12'),(_0x293563,_0x58ddd7)=>{_0x296aa0[_0x2680('0x12')](_0x2680('0x15')===_0x58ddd7?_0x2680('0x11'):_0x2680('0x19'));}),_0x58f733;}),_0x909bbf[_0x2680('0x5')](),_0x2ca40e['on'](_0x2680('0x1d'),(_0x31d099,_0x20d668,_0x4cf243)=>{_0x4cf243?_0x909bbf[_0x2680('0x6')]():_0x909bbf[_0x2680('0x5')]();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x382404,_0x186947,_0x34b24e){const t=_0x382404['t'];switch(_0x186947){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'},_0x34b24e);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x34b24e);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 _0x186947;}}
23
+ export function getTranslation(_0x2dc987,_0x1febd4,_0x4cad12){const t=_0x2dc987['t'];switch(_0x1febd4){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'},_0x4cad12);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4cad12);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 _0x1febd4;}}