@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231003.0 → 0.0.0-nightly-20231005.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 _0x651c=['execute','items','length','add','bind','remove','Save\x20current\x20revision','history','saveButtonView','isReadOnly','render','showRevisionViewerCallback','init','componentFactory','addMany','cancel','isReady','isEnabled','change:isOpen','pluginName','submit','set','panelView','children','get','focus','revisionName','saveRevision'];(function(_0x2203a9,_0x651c8a){const _0x468b1f=function(_0x5bdb6c){while(--_0x5bdb6c){_0x2203a9['push'](_0x2203a9['shift']());}};_0x468b1f(++_0x651c8a);}(_0x651c,0xf2));const _0x468b=function(_0x2203a9,_0x651c8a){_0x2203a9=_0x2203a9-0x0;let _0x468b1f=_0x651c[_0x2203a9];return _0x468b1f;};import{Plugin as _0x16c084,icons as _0x5710dd}from'ckeditor5/src/core';import{ListView as _0x3b2b0e,ListItemView as _0x3d235c,ButtonView as _0x36c49a,createDropdown as _0x508f1b}from'ckeditor5/src/ui';import _0x334c6f from'../../revisiontracker';import _0xcbdfde from'./revisionhistorysaverevisionformview';import{getTranslation as _0x58263b}from'../../utils/common-translations';export default class u extends _0x16c084{static get[_0x468b('0x1')](){return'RevisionHistoryUI';}static get['requires'](){return[_0x334c6f];}[_0x468b('0x16')](){const _0x581510=this['editor'],_0x15664c=_0x581510['plugins'][_0x468b('0x6')]('RevisionTracker');_0x581510['ui'][_0x468b('0x17')][_0x468b('0xd')]('revisionHistory',_0x288e87=>{const _0x2ab11f=_0x508f1b(_0x288e87),_0x2547fb=_0x2ab11f[_0x468b('0x4')][_0x468b('0x5')],_0x4419c5=new _0x3b2b0e(_0x288e87),_0x13ad66=new _0x3d235c(_0x288e87),_0x84ea3e=new _0x36c49a(_0x288e87),_0x3c6a4d=new _0x3d235c(_0x288e87),_0x4baba8=new _0x36c49a(_0x288e87),_0x3a445a=new _0xcbdfde(_0x288e87);function _0x1fd2f2(){_0x2547fb['length']&&_0x2547fb[_0x468b('0xf')](0x0),_0x2547fb['add'](_0x4419c5);}function _0x4a6539(){_0x2ab11f['isOpen']=!0x1,_0x581510['editing']['view'][_0x468b('0x7')]();}return _0x2ab11f['bind'](_0x468b('0x1b'))['to'](_0x15664c,_0x468b('0x1a'),_0x15664c,'isEnabled',_0x581510,_0x468b('0x13'),(_0xa0e41a,_0x5d26a1,_0x27010b)=>_0xa0e41a&&_0x5d26a1&&!_0x27010b),_0x2ab11f['buttonView'][_0x468b('0x3')]({'icon':_0x5710dd[_0x468b('0x11')],'label':_0x58263b(_0x288e87,'Revision\x20history'),'tooltip':!0x0}),_0x84ea3e[_0x468b('0x3')]({'label':_0x58263b(_0x288e87,_0x468b('0x10')),'withText':!0x0}),_0x84ea3e[_0x468b('0xe')](_0x468b('0x1b'))['to'](_0x15664c,_0x468b('0x1a'),_0x15664c,_0x468b('0x1b'),_0x581510,_0x468b('0x13'),(_0x34bb26,_0x441d81,_0x33d87a)=>_0x34bb26&&_0x441d81&&!_0x33d87a),_0x84ea3e['on'](_0x468b('0xa'),()=>function(){_0x2547fb[_0x468b('0xc')]&&_0x2547fb[_0x468b('0xf')](0x0),(_0x3a445a['reset'](),_0x2547fb[_0x468b('0xd')](_0x3a445a),_0x3a445a[_0x468b('0x7')]());}()),_0x4baba8[_0x468b('0x3')]({'label':_0x58263b(_0x288e87,'Open\x20revision\x20history'),'withText':!0x0}),_0x4baba8[_0x468b('0xe')](_0x468b('0x1b'))['to'](_0x15664c,'isReady',_0x581510,_0x468b('0x13'),(_0x2803d6,_0x14b558)=>_0x2803d6&&!_0x14b558),_0x4baba8['on'](_0x468b('0xa'),()=>{_0x581510['config'][_0x468b('0x6')]('revisionHistory')[_0x468b('0x15')](),_0x4a6539();}),_0x13ad66[_0x468b('0x5')]['add'](_0x84ea3e),_0x3c6a4d['children'][_0x468b('0xd')](_0x4baba8),_0x4419c5[_0x468b('0xb')][_0x468b('0x18')]([_0x13ad66,_0x3c6a4d]),_0x2ab11f['on'](_0x468b('0x0'),()=>_0x1fd2f2()),_0x3a445a[_0x468b('0x12')]['bind'](_0x468b('0x1b'))['to'](_0x15664c,'isReady',_0x15664c,_0x468b('0x1b'),_0x581510,_0x468b('0x13'),(_0x171fad,_0x2ce1f0,_0x226c13)=>_0x171fad&&_0x2ce1f0&&!_0x226c13),_0x3a445a['on'](_0x468b('0x2'),()=>(_0x581510['plugins'][_0x468b('0x6')](_0x334c6f)[_0x468b('0x9')]({'name':_0x3a445a[_0x468b('0x8')]}),void _0x4a6539())),_0x3a445a['on'](_0x468b('0x19'),()=>_0x1fd2f2()),_0x3a445a[_0x468b('0x14')](),_0x1fd2f2(),_0x2ab11f;});}}
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;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x324c=['_revisionViewer','_handleRevisionSetName','length','init','compareAgainstSelected','RevisionsSidebar','timePeriodViews','compare','isSelected','_handleEditorDataReady','repository','element','revisionHistory.revisionActions','Name\x20this\x20revision','defaultRevisionActions','_handleDiffChange','selectRevision','string','availableRevisionActions','getEarlierVisibleRevision','revisionViews','getLaterVisibleRevision','plugins','Restore\x20this\x20revision','setName','editor','remove','fieldView','restoreRevision','render','get','highlightRevisions','diff','getRevision','_revisionsRepository','config','appendChild','ready','_handleRevisionSelected','getRevisionsInDiff','action','_sidebarView','revisionSetName','revisionSelected','destroy','change:diff','listenTo','Compare\x20against\x20selected','isEnabled','_revisions','revisionHistory.viewerSidebarContainer','data','_createRevisionActions','bind','isVisible','restoreRevisionCallback','getIndex','pluginName','add'];(function(_0x131e6e,_0x324c93){const _0xa65e99=function(_0xc10ac7){while(--_0xc10ac7){_0x131e6e['push'](_0x131e6e['shift']());}};_0xa65e99(++_0x324c93);}(_0x324c,0xb4));const _0xa65e=function(_0x131e6e,_0x324c93){_0x131e6e=_0x131e6e-0x0;let _0xa65e99=_0x324c[_0x131e6e];return _0xa65e99;};import{Plugin as _0x5175d6}from'ckeditor5/src/core';import _0x5ae708 from'./revisionssidebarview';import _0x4b417d from'../../revisionviewer';export default class w extends _0x5175d6{static get[_0xa65e('0x36')](){return _0xa65e('0x2');}static get['requires'](){return[_0x4b417d];}constructor(_0x373fe2){super(_0x373fe2),this[_0xa65e('0x38')]=_0x373fe2[_0xa65e('0x13')]['get'](_0x4b417d),this[_0xa65e('0x1f')]=this[_0xa65e('0x38')][_0xa65e('0x7')],this[_0xa65e('0x26')]=null;}[_0xa65e('0x0')](){const _0x25371f=this[_0xa65e('0x1f')][_0xa65e('0x2e')],_0x4d5563=this[_0xa65e('0x31')](),_0x368894=this[_0xa65e('0x16')][_0xa65e('0x20')][_0xa65e('0x1b')](_0xa65e('0x2f'));this[_0xa65e('0x26')]=new _0x5ae708(this[_0xa65e('0x16')]['locale'],_0x25371f,_0x4d5563),this[_0xa65e('0x26')]['on'](_0xa65e('0x28'),this[_0xa65e('0x23')][_0xa65e('0x32')](this)),this[_0xa65e('0x26')]['on'](_0xa65e('0x27'),this['_handleRevisionSetName'][_0xa65e('0x32')](this)),this[_0xa65e('0x26')]['bind'](_0xa65e('0x2d'))['to'](this[_0xa65e('0x38')]),this[_0xa65e('0x26')][_0xa65e('0x3')]['on'](_0xa65e('0x37'),(_0x30d4b9,_0x2f2cb5)=>{_0x2f2cb5[_0xa65e('0x11')]['on']('add',(_0x56f278,_0x4669eb)=>{_0x4669eb[_0xa65e('0x32')](_0xa65e('0x2d'),'isReady')['to'](this['_revisionViewer']);});}),this[_0xa65e('0x26')][_0xa65e('0x1a')](),this['listenTo'](this[_0xa65e('0x16')][_0xa65e('0x30')],_0xa65e('0x22'),this['_handleEditorDataReady'][_0xa65e('0x32')](this)),this[_0xa65e('0x2b')](this[_0xa65e('0x38')],_0xa65e('0x2a'),this[_0xa65e('0xc')][_0xa65e('0x32')](this)),_0x368894[_0xa65e('0x21')](this[_0xa65e('0x26')][_0xa65e('0x8')]);}[_0xa65e('0x29')](){this['_sidebarView']['element'][_0xa65e('0x17')](),this[_0xa65e('0x26')][_0xa65e('0x29')]();}[_0xa65e('0x6')](){const _0x2523fc=this['_revisionsRepository'][_0xa65e('0x1e')](0x0);if(_0x2523fc){const _0x31a3bb=this[_0xa65e('0x1f')][_0xa65e('0x10')](_0x2523fc['id']);this['_revisionViewer'][_0xa65e('0x4')](_0x2523fc,_0x31a3bb);}}[_0xa65e('0x23')](_0x479073,_0x39a219){const _0x4587d8=this['_revisionsRepository']['getRevision'](_0x39a219['id']),_0x29c0a5=this['_revisionsRepository'][_0xa65e('0x10')](_0x4587d8['id']);this[_0xa65e('0x38')]['compare'](_0x4587d8,_0x29c0a5);}[_0xa65e('0x39')](_0x5a609c,_0x5e6288){this[_0xa65e('0x1f')][_0xa65e('0x1e')](_0x5e6288['id'])[_0xa65e('0x15')](_0x5e6288['name']);}[_0xa65e('0xc')](_0x3d37bc,_0xd89b,_0x1c2d01){const _0x283d65=this[_0xa65e('0x1f')]['getRevisionsInDiff'](_0x1c2d01);_0x283d65['length']>0x2?(this[_0xa65e('0x26')][_0xa65e('0x1c')](_0x283d65),this[_0xa65e('0x26')]['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView'][_0xa65e('0xd')](_0x283d65[0x0]));}[_0xa65e('0x31')](){const _0x161102=this[_0xa65e('0x16')],_0x16dceb=w['availableRevisionActions'],_0x3c07a2=_0x161102[_0xa65e('0x20')][_0xa65e('0x1b')](_0xa65e('0x9'))||w[_0xa65e('0xb')];if(_0x3c07a2[_0xa65e('0x3a')])return _0x3c07a2['map'](_0x302bee=>{const _0x5330ee=_0xa65e('0xe')==typeof _0x302bee?Object['assign']({},_0x16dceb[_0x302bee]):_0x302bee;return _0x5330ee['action']=_0x5330ee[_0xa65e('0x25')][_0xa65e('0x32')](this,_0x161102),_0x5330ee['isVisible']&&(_0x5330ee[_0xa65e('0x33')]=_0x5330ee['isVisible'][_0xa65e('0x32')](this,_0x161102)),_0x5330ee;});}}w[_0xa65e('0xf')]={'compareAgainstSelected':{'name':_0xa65e('0x2c'),'action':({plugins:_0x478458},_0x40a8c5)=>{const _0x1fee48=_0x478458[_0xa65e('0x1b')](_0x4b417d),_0x47c464=_0x1fee48[_0xa65e('0x7')];let _0x12caec=_0x1fee48[_0xa65e('0x1d')]['newRevisionId'],_0x5f534e=_0x40a8c5['id'];_0x47c464[_0xa65e('0x35')](_0x12caec)>_0x47c464[_0xa65e('0x35')](_0x5f534e)&&([_0x12caec,_0x5f534e]=[_0x5f534e,_0x12caec]),_0x1fee48[_0xa65e('0x4')](_0x12caec,_0x5f534e);},'isVisible':({plugins:_0x46355f},_0x554788)=>{const _0x25731c=_0x46355f['get'](_0x4b417d);return!(_0x25731c[_0xa65e('0x7')][_0xa65e('0x24')](_0x25731c['diff'])['length']>0x2)&&!_0x554788[_0xa65e('0x5')];}},'restoreRevision':{'name':_0xa65e('0x14'),'action':(_0xeb032c,{id:_0x5d0847})=>{_0xeb032c[_0xa65e('0x20')][_0xa65e('0x1b')]('revisionHistory')[_0xa65e('0x34')](_0x5d0847);},'isVisible':({plugins:_0x13ba6f},_0x2b7f41)=>!!_0x13ba6f['get'](_0x4b417d)[_0xa65e('0x7')][_0xa65e('0x12')](_0x2b7f41['id'])},'nameRevision':{'name':_0xa65e('0xa'),'action':({plugins:_0x37e710},{id:_0x575148,revisionNameView:_0x2ac418})=>{const _0x4667a1=_0x37e710[_0xa65e('0x1b')](_0x4b417d),_0x17c260=_0x4667a1[_0xa65e('0x7')][_0xa65e('0x10')](_0x575148);_0x4667a1[_0xa65e('0x4')](_0x575148,_0x17c260),_0x2ac418['focus'](),_0x2ac418[_0xa65e('0x18')]['select']();}}},w[_0xa65e('0xb')]=[_0xa65e('0x1'),_0xa65e('0x19'),'nameRevision'];
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'];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x56a8=['content','history','ck-reset_all','setTemplate','Revision\x20history','div','ck-revision-history-sidebar__header__label','ck-revision-history-sidebar__header'];(function(_0x43928d,_0x56a892){const _0x289f55=function(_0x22c32b){while(--_0x22c32b){_0x43928d['push'](_0x43928d['shift']());}};_0x289f55(++_0x56a892);}(_0x56a8,0x180));const _0x289f=function(_0x43928d,_0x56a892){_0x43928d=_0x43928d-0x0;let _0x289f55=_0x56a8[_0x43928d];return _0x289f55;};import{View as _0x4dac0a,IconView as _0x32cb04}from'ckeditor5/src/ui';import{getTranslation as _0x3bb3be}from'../../utils/common-translations';import{icons as _0x5b1d92}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rr extends _0x4dac0a{constructor(_0x42824d){super(_0x42824d);const _0x4792c0=new _0x32cb04();_0x4792c0[_0x289f('0x0')]=_0x5b1d92[_0x289f('0x1')],this[_0x289f('0x3')]({'tag':_0x289f('0x5'),'attributes':{'class':['ck',_0x289f('0x2'),_0x289f('0x7')]},'children':[_0x4792c0,{'tag':'span','attributes':{'class':['ck',_0x289f('0x6')]},'children':[_0x3bb3be(_0x42824d,_0x289f('0x4'))]}]});}}
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'))]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x24a2=['setTemplate','select','ck-revision-history-sidebar__time-period__label','div','startDate','ck-revision-history-sidebar__time-period','remove','localizedPeriodName','_revisionActions','addRevision','uiLanguage','revisionViews','createCollection','ck-revision-history-sidebar__time-period__revisions','removeRevision','locale'];(function(_0x493903,_0x24a2c8){const _0xe91a7b=function(_0x794748){while(--_0x794748){_0x493903['push'](_0x493903['shift']());}};_0xe91a7b(++_0x24a2c8);}(_0x24a2,0x197));const _0xe91a=function(_0x493903,_0x24a2c8){_0x493903=_0x493903-0x0;let _0xe91a7b=_0x24a2[_0x493903];return _0xe91a7b;};import{View as _0x4632d3}from'ckeditor5/src/ui';import _0x3f37a3 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x59d51a}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x4632d3{constructor(_0x3988cf,_0x47b01b,_0x1f0c37){super(_0x3988cf);const _0x241d9d=_0x59d51a(_0x47b01b,this[_0xe91a('0x8')][_0xe91a('0x3')])[_0xe91a('0x0')];this[_0xe91a('0xd')]=_0x47b01b,this[_0xe91a('0x4')]=this[_0xe91a('0x5')](),this['_revisionActions']=_0x1f0c37,this[_0xe91a('0x4')]['delegate'](_0xe91a('0xa'))['to'](this),this['revisionViews']['delegate']('setName')['to'](this),this[_0xe91a('0x9')]({'tag':_0xe91a('0xc'),'attributes':{'class':['ck',_0xe91a('0xe')]},'children':[{'tag':'span','attributes':{'class':['ck',_0xe91a('0xb')]},'children':[{'text':_0x241d9d}]},{'tag':'div','attributes':{'class':['ck',_0xe91a('0x6')]},'children':this[_0xe91a('0x4')]}]});}[_0xe91a('0x2')](_0x281d71){const _0x221aa5=new _0x3f37a3(this['locale'],_0x281d71,this[_0xe91a('0x1')]);this[_0xe91a('0x4')]['add'](_0x221aa5);}[_0xe91a('0x7')](_0x242580){const _0x1540ca=this['revisionViews']['find'](_0x2c6596=>_0x2c6596['id']===_0x242580['id']);this[_0xe91a('0x4')][_0xe91a('0xf')](_0x1540ca);}}
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);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5a52=['_revisionActions','timePeriodViews','ck-revision-history-sidebar','remove','set','ck-revision-history-sidebar__timeline','add','highlight','startDate','removeRevision','revisionViews','delegate','div','get','_addRevision','fire','_getTimePeriodViewByStartDate','flat','isEnabled','locale','_revisions','getTime','render','createCollection','_removeRevision','selectRevision','createdAt','ck-disabled','setName','ck-rounded-corners','ck-reset','deselect','select','addRevision','uiLanguage','revisionSelected'];(function(_0x4a65de,_0x5a5296){const _0x2ebb31=function(_0x5b2b1d){while(--_0x5b2b1d){_0x4a65de['push'](_0x4a65de['shift']());}};_0x2ebb31(++_0x5a5296);}(_0x5a52,0x77));const _0x2ebb=function(_0x4a65de,_0x5a5296){_0x4a65de=_0x4a65de-0x0;let _0x2ebb31=_0x5a52[_0x4a65de];return _0x2ebb31;};import{View as _0x22eb26}from'ckeditor5/src/ui';import _0xf309b9 from'./revisionssidebartimeperiodview';import _0x2bbfab from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x253b76}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x22eb26{constructor(_0x31b6bb,_0x418647,_0x266361){super(_0x31b6bb);const _0x4c3125=this['bindTemplate'];this['timePeriodViews']=this[_0x2ebb('0xc')](),this[_0x2ebb('0x1a')][_0x2ebb('0x0')](_0x2ebb('0x15'))['to'](this),this[_0x2ebb('0x1a')][_0x2ebb('0x0')](_0x2ebb('0x11'))['to'](this),this[_0x2ebb('0x9')]=_0x418647,this[_0x2ebb('0x19')]=_0x266361,this['on']('select',(_0x2730fb,_0x584bd7)=>{this[_0x2ebb('0x4')](_0x2ebb('0x18'),_0x584bd7);}),this['on'](_0x2ebb('0x11'),(_0x2335a0,_0x4a8969)=>{this['fire']('revisionSetName',_0x4a8969);}),this[_0x2ebb('0x1d')](_0x2ebb('0x7'),!0x1),this['setTemplate']({'tag':_0x2ebb('0x1'),'attributes':{'class':['ck',_0x2ebb('0x13'),_0x2ebb('0x12'),_0x2ebb('0x1b')]},'children':[new _0x2bbfab(_0x31b6bb),{'tag':_0x2ebb('0x1'),'attributes':{'class':['ck',_0x2ebb('0x1e'),_0x4c3125['if'](_0x2ebb('0x7'),_0x2ebb('0x10'),_0x2a1003=>!_0x2a1003)]},'children':this[_0x2ebb('0x1a')]}]});}[_0x2ebb('0xb')](){super[_0x2ebb('0xb')]();for(const _0x4192e4 of this['_revisions'])this[_0x2ebb('0x3')](_0x4192e4);this['_revisions']['on'](_0x2ebb('0x1f'),(_0x230e07,_0x15af6e)=>{this[_0x2ebb('0x3')](_0x15af6e);}),this[_0x2ebb('0x9')]['on'](_0x2ebb('0x1c'),(_0x3bbcc9,_0x51b05b)=>{this[_0x2ebb('0xd')](_0x51b05b);});}get[_0x2ebb('0x23')](){return this['timePeriodViews']['map'](_0x263223=>_0x263223[_0x2ebb('0x23')]['map'](_0x3dcc15=>_0x3dcc15))[_0x2ebb('0x6')]();}[_0x2ebb('0xe')](_0x28c603){for(const _0x26c63e of this['revisionViews'])_0x28c603&&_0x28c603['id']===_0x26c63e['id']?_0x26c63e['select']():_0x26c63e[_0x2ebb('0x14')]();}['highlightRevisions'](_0x17ff75){for(const _0x4a7b49 of this[_0x2ebb('0x23')])_0x17ff75['some'](({id:_0x244194})=>_0x244194===_0x4a7b49['id'])?_0x4a7b49[_0x2ebb('0x20')]():_0x4a7b49['unhighlight']();}[_0x2ebb('0x3')](_0x4c2a38){const _0x3dfa6b=_0x253b76(_0x4c2a38[_0x2ebb('0xf')],this['locale']['uiLanguage'])[_0x2ebb('0x21')];let _0xa92b4=this[_0x2ebb('0x1a')][_0x2ebb('0x2')](0x0);_0xa92b4&&_0xa92b4[_0x2ebb('0x21')][_0x2ebb('0xa')]()===_0x3dfa6b[_0x2ebb('0xa')]()||(_0xa92b4=new _0xf309b9(this['locale'],_0x3dfa6b,this[_0x2ebb('0x19')]),this[_0x2ebb('0x1a')][_0x2ebb('0x1f')](_0xa92b4)),_0xa92b4[_0x2ebb('0x16')](_0x4c2a38);}[_0x2ebb('0xd')](_0x20c04b){const _0x5a9f78=_0x253b76(_0x20c04b[_0x2ebb('0xf')],this[_0x2ebb('0x8')][_0x2ebb('0x17')])['startDate'];this[_0x2ebb('0x5')](_0x5a9f78)[_0x2ebb('0x22')](_0x20c04b);}[_0x2ebb('0x5')](_0x187c18){return this['timePeriodViews']['find'](_0x2891cf=>_0x2891cf[_0x2ebb('0x21')][_0x2ebb('0xa')]()===_0x187c18['getTime']());}}
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']());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x51f9=['monthLong','toRelativeCalendar','week','toJSDate','weekdayLong','local','year','hasSame','month','startOf','minus','day'];(function(_0x49c670,_0x51f91c){const _0x3e4abd=function(_0x32f2b7){while(--_0x32f2b7){_0x49c670['push'](_0x49c670['shift']());}};_0x3e4abd(++_0x51f91c);}(_0x51f9,0x19a));const _0x3e4a=function(_0x49c670,_0x51f91c){_0x49c670=_0x49c670-0x0;let _0x3e4abd=_0x51f9[_0x49c670];return _0x3e4abd;};import{DateTime as _0xebf803}from'luxon';export function getDateTimePeriodInfo(_0x3d243b,_0x54cab5){const _0xf6a634=_0xebf803['fromJSDate'](_0x3d243b)['setLocale'](_0x54cab5),_0x4c9258=_0xebf803[_0x3e4a('0x3')](),_0x35cf0a=_0x4c9258[_0x3e4a('0x8')]({'days':0x1})[_0x3e4a('0x7')](_0x3e4a('0x9'));let _0x3f2742,_0x4e176e;return _0xf6a634[_0x3e4a('0x5')](_0x4c9258,_0x3e4a('0x9'))?(_0x3f2742=_0xf6a634[_0x3e4a('0x7')](_0x3e4a('0x9'))[_0x3e4a('0x1')](),_0x4e176e=_0xf6a634[_0x3e4a('0xb')]()):_0xf6a634['hasSame'](_0x35cf0a,_0x3e4a('0x9'))?(_0x3f2742=_0x35cf0a[_0x3e4a('0x1')](),_0x4e176e=_0xf6a634[_0x3e4a('0xb')]()):_0xf6a634[_0x3e4a('0x5')](_0x4c9258,'week')?(_0x3f2742=_0xf6a634['startOf'](_0x3e4a('0x0'))[_0x3e4a('0x1')](),_0x4e176e=_0xf6a634[_0x3e4a('0x2')]||''):_0xf6a634[_0x3e4a('0x5')](_0x4c9258,_0x3e4a('0x4'))?(_0x3f2742=_0xf6a634[_0x3e4a('0x7')](_0x3e4a('0x6'))[_0x3e4a('0x1')](),_0x4e176e=_0xf6a634[_0x3e4a('0xa')]||''):(_0x3f2742=_0xf6a634[_0x3e4a('0x7')](_0x3e4a('0x4'))['toJSDate'](),_0x4e176e=String(_0xf6a634[_0x3e4a('0x4')])),{'startDate':_0x3f2742,'localizedPeriodName':_0x4e176e};}
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};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xa537=['_model','changeId','author','element','ck-revision-change__','ck-annotation','div','Added\x20by','type','add','setTemplate','ck-revision-change','set','Removed\x20by','isSuggestion','ck-revision-change__label','Suggested\x20by','data','span'];(function(_0x5e9798,_0xa5372){const _0x249c86=function(_0x4120d9){while(--_0x4120d9){_0x5e9798['push'](_0x5e9798['shift']());}};_0x249c86(++_0xa5372);}(_0xa537,0x7c));const _0x249c=function(_0x5e9798,_0xa5372){_0x5e9798=_0x5e9798-0x0;let _0x249c86=_0xa537[_0x5e9798];return _0x249c86;};import{View as _0x1a3b7b}from'ckeditor5/src/ui';import{getTranslation as _0x346133}from'../../utils/common-translations';export default class Z extends _0x1a3b7b{constructor(_0x248aa1,_0x4ec120){super(_0x248aa1),this[_0x249c('0x9')]=_0x4ec120,this[_0x249c('0xa')]=_0x4ec120['id'];const _0x1985ba=this['bindTemplate'],_0x2c139c=_0x346133(_0x248aa1,_0x4ec120[_0x249c('0x7')][_0x249c('0x4')]?_0x249c('0x6'):_0x249c('0x12')==_0x4ec120['type']?_0x249c('0x10'):_0x249c('0x3'));this[_0x249c('0x2')](_0x249c('0x11'),_0x4ec120[_0x249c('0x11')]),this[_0x249c('0x0')]({'tag':_0x249c('0xf'),'attributes':{'class':[_0x249c('0xe'),_0x249c('0x1'),_0x1985ba['to']('type',_0x127c76=>_0x249c('0xd')+_0x127c76)],'tabindex':-0x1},'children':[{'tag':_0x249c('0x8'),'children':[{'tag':_0x249c('0x8'),'attributes':{'class':[_0x249c('0x5')]},'children':[{'text':_0x2c139c}]},{'text':'\x20'+_0x4ec120[_0x249c('0xb')]['name']}]}]});}['focus'](){this[_0x249c('0xc')]['focus']();}}
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')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2067=['backward','isNavigationMode','span','fire','execute','set','ck-revision-history-ui__changes-navigation__navigation','Loading...','currentChangeNumber','ck-hidden','isEnabled','ck-revision-history-ui__changes-navigation','bindTemplate','Show\x20previous\x20change','ck-revision-history-ui__changes-navigation__wrapper','isForwardNavigationEnabled','No\x20changes','ck-revision-history-ui__changes-navigation__label','bind','numberOfChanges','X_OF_Y_CHANGES','forward','div','Show\x20next\x20change','isReady','ck-revision-history-ui','_isStatusLabelVisible','_statusText','isBackwardNavigationEnabled'];(function(_0x1a1b6f,_0x20674b){const _0x40bd0a=function(_0x11d90f){while(--_0x11d90f){_0x1a1b6f['push'](_0x1a1b6f['shift']());}};_0x40bd0a(++_0x20674b);}(_0x2067,0xd1));const _0x40bd=function(_0x1a1b6f,_0x20674b){_0x1a1b6f=_0x1a1b6f-0x0;let _0x40bd0a=_0x2067[_0x1a1b6f];return _0x40bd0a;};import{View as _0x1ecc6b,ButtonView as _0x3c8a38,ToolbarSeparatorView as _0x276c42}from'ckeditor5/src/ui';import{getTranslation as _0x3bbda7}from'../../utils/common-translations';import _0x4a7cfe from'../../../theme/icons/arrow-up.svg';import _0x46eaf8 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x1ecc6b{constructor(_0x16de6b){super(_0x16de6b);const _0x1abaea=this[_0x40bd('0x6')],_0x262ae8=new _0x3c8a38(_0x16de6b),_0x275df1=new _0x3c8a38(_0x16de6b);this['set']('isNavigationMode',!0x1),this[_0x40bd('0x1c')]('isReady',!0x1),this[_0x40bd('0x1c')](_0x40bd('0x2'),0x0),this[_0x40bd('0x1c')](_0x40bd('0xd'),0x0),this[_0x40bd('0x1c')](_0x40bd('0x9'),!0x1),this[_0x40bd('0x1c')](_0x40bd('0x16'),!0x1),this['bind'](_0x40bd('0x14'))['to'](this,_0x40bd('0x12'),this,_0x40bd('0xd'),(_0x1dbdc7,_0x2c3517)=>_0x1dbdc7&&_0x2c3517>0x0),this[_0x40bd('0xc')](_0x40bd('0x15'))['to'](this,_0x40bd('0x12'),this,_0x40bd('0x2'),this,'numberOfChanges',this,_0x40bd('0x18'),(_0x3ff2aa,_0x337aa2,_0x6482dc,_0x3d42da)=>{if(!_0x3ff2aa)return _0x3bbda7(_0x16de6b,_0x40bd('0x1'));if(!_0x6482dc)return _0x3bbda7(_0x16de6b,_0x40bd('0xa'));const _0x2f45f1=_0x3bbda7(_0x16de6b,'NUMBER_OF_CHANGES',_0x6482dc);return _0x3d42da?_0x3bbda7(_0x16de6b,_0x40bd('0xe'),[_0x337aa2+0x1,_0x6482dc]):_0x2f45f1;}),_0x262ae8['set']({'label':_0x3bbda7(_0x16de6b,_0x40bd('0x7')),'tooltip':!0x0,'icon':_0x4a7cfe}),_0x275df1[_0x40bd('0x1c')]({'label':_0x3bbda7(_0x16de6b,_0x40bd('0x11')),'tooltip':!0x0,'icon':_0x46eaf8}),_0x262ae8[_0x40bd('0xc')]('isEnabled')['to'](this,_0x40bd('0x16')),_0x275df1[_0x40bd('0xc')](_0x40bd('0x4'))['to'](this,'isForwardNavigationEnabled'),_0x262ae8['on'](_0x40bd('0x1b'),()=>this[_0x40bd('0x1a')](_0x40bd('0x1b'),_0x40bd('0x17'))),_0x275df1['on']('execute',()=>this[_0x40bd('0x1a')](_0x40bd('0x1b'),_0x40bd('0xf'))),this['setTemplate']({'tag':_0x40bd('0x10'),'attributes':{'class':['ck',_0x40bd('0x13'),_0x40bd('0x5')]},'children':[{'tag':_0x40bd('0x19'),'attributes':{'class':[_0x40bd('0x8')]},'children':[{'tag':_0x40bd('0x19'),'attributes':{'class':[_0x40bd('0xb'),_0x1abaea['if']('_isStatusLabelVisible',_0x40bd('0x3'),_0x282b63=>!_0x282b63)]},'children':[{'text':_0x1abaea['to'](_0x40bd('0x18'),_0x561f1a=>_0x561f1a?_0x3bbda7(_0x16de6b,'EDIT_X_OF_Y_REVISIONS')+':\x20':_0x3bbda7(_0x16de6b,'Total')+':\x20')}]},{'text':_0x1abaea['to'](_0x40bd('0x15'))}]},new _0x276c42(),{'tag':_0x40bd('0x10'),'attributes':{'class':[_0x40bd('0x0')]},'children':[_0x262ae8,_0x275df1]}]});}}
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]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x31c0=['change','editor','RevisionViewerLoadingOverlay','pluginName','addClass','hide','roots','editing','ck-editor__editable__loading-overlay','removeClass','view','document'];(function(_0x179f40,_0x31c0d3){const _0x2eeb9b=function(_0x10e2c5){while(--_0x10e2c5){_0x179f40['push'](_0x179f40['shift']());}};_0x2eeb9b(++_0x31c0d3);}(_0x31c0,0xc7));const _0x2eeb=function(_0x179f40,_0x31c0d3){_0x179f40=_0x179f40-0x0;let _0x2eeb9b=_0x31c0[_0x179f40];return _0x2eeb9b;};import{Plugin as _0x2d6ff4}from'ckeditor5/src/core';const oe=_0x2eeb('0x1');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x2d6ff4{static get[_0x2eeb('0x8')](){return _0x2eeb('0x7');}['show'](){const _0x49a4a5=this['editor'][_0x2eeb('0x0')][_0x2eeb('0x3')];_0x49a4a5[_0x2eeb('0x5')](_0x3b99e8=>{for(const _0x3d3528 of _0x49a4a5[_0x2eeb('0x4')][_0x2eeb('0xb')])_0x3b99e8[_0x2eeb('0x9')](oe,_0x3d3528);});}[_0x2eeb('0xa')](){const _0x1286ce=this[_0x2eeb('0x6')][_0x2eeb('0x0')][_0x2eeb('0x3')];_0x1286ce[_0x2eeb('0x5')](_0x426cd2=>{for(const _0x1f5edf of _0x1286ce[_0x2eeb('0x4')][_0x2eeb('0xb')])_0x426cd2[_0x2eeb('0x2')](oe,_0x1f5edf);});}}
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);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x471a=['add','Restore\x20this\x20revision','currentChangeNumber','change:isReady','isNavigationMode','restoreRevision','isEnabled','numberOfChanges','Back\x20to\x20editing','set','exitToEditing','bind','isReady','config','hide','componentFactory','execute','commands','changesNavigation','editor','get','show','isForwardNavigationEnabled','RevisionViewerUI','ck-revision-history-ui__back-to-editing','init','revisionHistory','listenTo','plugins','showPreviousChange','forward','showNextChange'];(function(_0x22689e,_0x471ace){const _0x3982d0=function(_0x4519ff){while(--_0x4519ff){_0x22689e['push'](_0x22689e['shift']());}};_0x3982d0(++_0x471ace);}(_0x471a,0xf4));const _0x3982=function(_0x22689e,_0x471ace){_0x22689e=_0x22689e-0x0;let _0x3982d0=_0x471a[_0x22689e];return _0x3982d0;};import{Plugin as _0x14769a}from'ckeditor5/src/core';import{ButtonView as _0x1901a9}from'ckeditor5/src/ui';import _0x593120 from'./changesnavigationview';import _0x3b8980 from'./../../revisionviewer';import _0xcc8c29 from'./revisionviewerloadingoverlay';import{getTranslation as _0x575075}from'../../utils/common-translations';import _0x44470c from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x14769a{static get['pluginName'](){return _0x3982('0x3');}static get['requires'](){return[_0x3b8980,_0xcc8c29];}[_0x3982('0x5')](){const _0x1f4762=this[_0x3982('0x1f')],_0x53cd5e=_0x1f4762['plugins']['get'](_0x3b8980),_0x5ed715=_0x1f4762[_0x3982('0x8')]['get'](_0xcc8c29);_0x1f4762['ui'][_0x3982('0x1b')][_0x3982('0xc')](_0x3982('0x16'),_0x14984e=>{const _0x52a112=new _0x1901a9(_0x14984e);return _0x52a112[_0x3982('0x15')]({'label':_0x575075(_0x14984e,_0x3982('0x14')),'icon':_0x44470c,'withText':!0x0,'tooltip':!0x0,'class':_0x3982('0x4')}),this[_0x3982('0x7')](_0x52a112,_0x3982('0x1c'),()=>{_0x1f4762[_0x3982('0x19')][_0x3982('0x0')](_0x3982('0x6'))['closeRevisionViewerCallback']();}),_0x52a112;}),_0x1f4762['ui'][_0x3982('0x1b')][_0x3982('0xc')]('restoreRevision',_0x577d3b=>{const _0x3ba70b=new _0x1901a9(_0x577d3b);return _0x3ba70b['set']({'label':_0x575075(_0x577d3b,_0x3982('0xd')),'withText':!0x0,'tooltip':!0x0}),_0x3ba70b[_0x3982('0x17')](_0x3982('0x12'))['to'](_0x1f4762[_0x3982('0x1d')][_0x3982('0x0')]('restoreRevision')),this['listenTo'](_0x3ba70b,_0x3982('0x1c'),()=>_0x1f4762[_0x3982('0x1c')](_0x3982('0x11'))),_0x3ba70b;}),_0x1f4762['ui']['componentFactory'][_0x3982('0xc')](_0x3982('0x1e'),_0x598302=>{const _0x1c0957=new _0x593120(_0x598302),_0x2c3d0f=_0x1f4762[_0x3982('0x1d')][_0x3982('0x0')](_0x3982('0x9')),_0x2a0e47=_0x1f4762[_0x3982('0x1d')][_0x3982('0x0')](_0x3982('0xb'));return _0x1c0957[_0x3982('0x17')]('isBackwardNavigationEnabled')['to'](_0x2c3d0f,_0x3982('0x12')),_0x1c0957[_0x3982('0x17')](_0x3982('0x2'))['to'](_0x2a0e47,_0x3982('0x12')),_0x1c0957['bind'](_0x3982('0x18'),_0x3982('0xe'),_0x3982('0x13'),_0x3982('0x10'))['to'](_0x53cd5e),this[_0x3982('0x7')](_0x1c0957,'execute',(_0xb2cc78,_0x3b0e5f)=>{_0x1f4762[_0x3982('0x1c')](_0x3982('0xa')===_0x3b0e5f?_0x3982('0xb'):'showPreviousChange');}),_0x1c0957;}),_0x5ed715['show'](),_0x53cd5e['on'](_0x3982('0xf'),(_0xa5a690,_0x27d807,_0x324d6e)=>{_0x324d6e?_0x5ed715[_0x3982('0x1a')]():_0x5ed715[_0x3982('0x1')]();});}}
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')]();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x204f9b,_0x5541fc,_0x2f2bd8){const t=_0x204f9b['t'];switch(_0x5541fc){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'},_0x2f2bd8);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2f2bd8);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 _0x5541fc;}}
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;}}