@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230727.0 → 0.0.0-nightly-20230729.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 _0x268f=['pluginName','length','config','isEnabled','add','revisionHistory','editing','init','RevisionHistoryUI','focus','reset','isReadOnly','items','requires','saveRevision','isReady','cancel','panelView','change:isOpen','buttonView','saveButtonView','bind','Save\x20current\x20revision','editor','revisionName','componentFactory','plugins','RevisionTracker','render','view','set','showRevisionViewerCallback','execute','children'];(function(_0x1bf1fa,_0x268f11){const _0xe2a30b=function(_0x207538){while(--_0x207538){_0x1bf1fa['push'](_0x1bf1fa['shift']());}};_0xe2a30b(++_0x268f11);}(_0x268f,0xd9));const _0xe2a3=function(_0x1bf1fa,_0x268f11){_0x1bf1fa=_0x1bf1fa-0x0;let _0xe2a30b=_0x268f[_0x1bf1fa];return _0xe2a30b;};import{Plugin as _0x4f71e6}from'ckeditor5/src/core';import{ListView as _0x3847fb,ListItemView as _0x419e79,ButtonView as _0x23d7ec,createDropdown as _0x38cac6}from'ckeditor5/src/ui';import _0x4dff08 from'../../revisiontracker';import _0x55c53e from'./revisionhistorysaverevisionformview';import _0x75b409 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x4b7242}from'../../utils/common-translations';export default class u extends _0x4f71e6{static get[_0xe2a3('0x15')](){return _0xe2a3('0x1d');}static get[_0xe2a3('0x0')](){return[_0x4dff08];}[_0xe2a3('0x1c')](){const _0x5af577=this[_0xe2a3('0xa')],_0x4cb0d0=_0x5af577['plugins']['get'](_0xe2a3('0xe'));_0x5af577['ui'][_0xe2a3('0xc')]['add'](_0xe2a3('0x1a'),_0x42837f=>{const _0x151a56=_0x38cac6(_0x42837f),_0x529659=_0x151a56[_0xe2a3('0x4')][_0xe2a3('0x14')],_0x27ab63=new _0x3847fb(_0x42837f),_0x2b0762=new _0x419e79(_0x42837f),_0x5797ad=new _0x23d7ec(_0x42837f),_0x3c0d9e=new _0x419e79(_0x42837f),_0x4f126c=new _0x23d7ec(_0x42837f),_0x3930bc=new _0x55c53e(_0x42837f);function _0x234fe1(){_0x529659[_0xe2a3('0x16')]&&_0x529659['remove'](0x0),_0x529659[_0xe2a3('0x19')](_0x27ab63);}function _0x46fdb5(){_0x151a56['isOpen']=!0x1,_0x5af577[_0xe2a3('0x1b')][_0xe2a3('0x10')][_0xe2a3('0x1e')]();}return _0x151a56[_0xe2a3('0x8')](_0xe2a3('0x18'))['to'](_0x4cb0d0,_0xe2a3('0x2'),_0x4cb0d0,_0xe2a3('0x18'),_0x5af577,_0xe2a3('0x20'),(_0x5c271b,_0x22c318,_0x293789)=>_0x5c271b&&_0x22c318&&!_0x293789),_0x151a56[_0xe2a3('0x6')][_0xe2a3('0x11')]({'icon':_0x75b409,'label':_0x4b7242(_0x42837f,'Revision\x20history'),'tooltip':!0x0}),_0x5797ad[_0xe2a3('0x11')]({'label':_0x4b7242(_0x42837f,_0xe2a3('0x9')),'withText':!0x0}),_0x5797ad[_0xe2a3('0x8')](_0xe2a3('0x18'))['to'](_0x4cb0d0,'isReady',_0x4cb0d0,_0xe2a3('0x18'),_0x5af577,_0xe2a3('0x20'),(_0x4596ca,_0x54997e,_0x1232f9)=>_0x4596ca&&_0x54997e&&!_0x1232f9),_0x5797ad['on'](_0xe2a3('0x13'),()=>function(){_0x529659[_0xe2a3('0x16')]&&_0x529659['remove'](0x0),(_0x3930bc[_0xe2a3('0x1f')](),_0x529659[_0xe2a3('0x19')](_0x3930bc),_0x3930bc['focus']());}()),_0x4f126c[_0xe2a3('0x11')]({'label':_0x4b7242(_0x42837f,'Open\x20revision\x20history'),'withText':!0x0}),_0x4f126c[_0xe2a3('0x8')](_0xe2a3('0x18'))['to'](_0x4cb0d0,_0xe2a3('0x2'),_0x5af577,_0xe2a3('0x20'),(_0x5d5495,_0xc74630)=>_0x5d5495&&!_0xc74630),_0x4f126c['on'](_0xe2a3('0x13'),()=>{_0x5af577[_0xe2a3('0x17')]['get'](_0xe2a3('0x1a'))[_0xe2a3('0x12')](),_0x46fdb5();}),_0x2b0762[_0xe2a3('0x14')][_0xe2a3('0x19')](_0x5797ad),_0x3c0d9e[_0xe2a3('0x14')][_0xe2a3('0x19')](_0x4f126c),_0x27ab63[_0xe2a3('0x21')]['addMany']([_0x2b0762,_0x3c0d9e]),_0x151a56['on'](_0xe2a3('0x5'),()=>_0x234fe1()),_0x3930bc[_0xe2a3('0x7')][_0xe2a3('0x8')]('isEnabled')['to'](_0x4cb0d0,_0xe2a3('0x2'),_0x4cb0d0,_0xe2a3('0x18'),_0x5af577,_0xe2a3('0x20'),(_0x54f571,_0x1805ab,_0x4e1eef)=>_0x54f571&&_0x1805ab&&!_0x4e1eef),_0x3930bc['on']('submit',()=>(_0x5af577[_0xe2a3('0xd')]['get'](_0x4dff08)[_0xe2a3('0x1')]({'name':_0x3930bc[_0xe2a3('0xb')]}),void _0x46fdb5())),_0x3930bc['on'](_0xe2a3('0x3'),()=>_0x234fe1()),_0x3930bc[_0xe2a3('0xf')](),_0x234fe1(),_0x151a56;});}}
23
+ const _0x4951=['items','view','cancel','reset','revisionName','execute','panelView','isReady','addMany','add','requires','submit','get','buttonView','isEnabled','children','bind','plugins','saveRevision','showRevisionViewerCallback','isReadOnly','length','saveButtonView','init','set','pluginName','revisionHistory','RevisionHistoryUI','Save\x20current\x20revision','focus','change:isOpen','Open\x20revision\x20history'];(function(_0x271a7b,_0x4951cb){const _0x3de623=function(_0x2e696b){while(--_0x2e696b){_0x271a7b['push'](_0x271a7b['shift']());}};_0x3de623(++_0x4951cb);}(_0x4951,0x108));const _0x3de6=function(_0x271a7b,_0x4951cb){_0x271a7b=_0x271a7b-0x0;let _0x3de623=_0x4951[_0x271a7b];return _0x3de623;};import{Plugin as _0x1d398b}from'ckeditor5/src/core';import{ListView as _0x19f6f2,ListItemView as _0x31af2e,ButtonView as _0x33acf1,createDropdown as _0x3f7550}from'ckeditor5/src/ui';import _0x37e5de from'../../revisiontracker';import _0x4836c3 from'./revisionhistorysaverevisionformview';import _0x3b2a24 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x16506b}from'../../utils/common-translations';export default class u extends _0x1d398b{static get[_0x3de6('0x11')](){return _0x3de6('0x13');}static get[_0x3de6('0x2')](){return[_0x37e5de];}[_0x3de6('0xf')](){const _0x1a8250=this['editor'],_0x17e120=_0x1a8250[_0x3de6('0x9')]['get']('RevisionTracker');_0x1a8250['ui']['componentFactory']['add'](_0x3de6('0x12'),_0x631104=>{const _0x3b8843=_0x3f7550(_0x631104),_0x529104=_0x3b8843[_0x3de6('0x1e')][_0x3de6('0x7')],_0x393e6c=new _0x19f6f2(_0x631104),_0x2a1328=new _0x31af2e(_0x631104),_0x242696=new _0x33acf1(_0x631104),_0x344954=new _0x31af2e(_0x631104),_0x16b22f=new _0x33acf1(_0x631104),_0x14e30b=new _0x4836c3(_0x631104);function _0x2025ef(){_0x529104[_0x3de6('0xd')]&&_0x529104['remove'](0x0),_0x529104[_0x3de6('0x1')](_0x393e6c);}function _0x46dc64(){_0x3b8843['isOpen']=!0x1,_0x1a8250['editing'][_0x3de6('0x19')]['focus']();}return _0x3b8843[_0x3de6('0x8')](_0x3de6('0x6'))['to'](_0x17e120,'isReady',_0x17e120,'isEnabled',_0x1a8250,_0x3de6('0xc'),(_0xa17fca,_0x2ffd01,_0x28f3dd)=>_0xa17fca&&_0x2ffd01&&!_0x28f3dd),_0x3b8843[_0x3de6('0x5')][_0x3de6('0x10')]({'icon':_0x3b2a24,'label':_0x16506b(_0x631104,'Revision\x20history'),'tooltip':!0x0}),_0x242696[_0x3de6('0x10')]({'label':_0x16506b(_0x631104,_0x3de6('0x14')),'withText':!0x0}),_0x242696[_0x3de6('0x8')](_0x3de6('0x6'))['to'](_0x17e120,'isReady',_0x17e120,_0x3de6('0x6'),_0x1a8250,_0x3de6('0xc'),(_0x4ab2eb,_0x131319,_0x568351)=>_0x4ab2eb&&_0x131319&&!_0x568351),_0x242696['on'](_0x3de6('0x1d'),()=>function(){_0x529104[_0x3de6('0xd')]&&_0x529104['remove'](0x0),(_0x14e30b[_0x3de6('0x1b')](),_0x529104[_0x3de6('0x1')](_0x14e30b),_0x14e30b[_0x3de6('0x15')]());}()),_0x16b22f[_0x3de6('0x10')]({'label':_0x16506b(_0x631104,_0x3de6('0x17')),'withText':!0x0}),_0x16b22f[_0x3de6('0x8')]('isEnabled')['to'](_0x17e120,_0x3de6('0x1f'),_0x1a8250,_0x3de6('0xc'),(_0xdeea5d,_0x342456)=>_0xdeea5d&&!_0x342456),_0x16b22f['on']('execute',()=>{_0x1a8250['config'][_0x3de6('0x4')]('revisionHistory')[_0x3de6('0xb')](),_0x46dc64();}),_0x2a1328[_0x3de6('0x7')]['add'](_0x242696),_0x344954[_0x3de6('0x7')]['add'](_0x16b22f),_0x393e6c[_0x3de6('0x18')][_0x3de6('0x0')]([_0x2a1328,_0x344954]),_0x3b8843['on'](_0x3de6('0x16'),()=>_0x2025ef()),_0x14e30b[_0x3de6('0xe')][_0x3de6('0x8')](_0x3de6('0x6'))['to'](_0x17e120,_0x3de6('0x1f'),_0x17e120,_0x3de6('0x6'),_0x1a8250,_0x3de6('0xc'),(_0x124cf2,_0x57b3a9,_0x355705)=>_0x124cf2&&_0x57b3a9&&!_0x355705),_0x14e30b['on'](_0x3de6('0x3'),()=>(_0x1a8250[_0x3de6('0x9')][_0x3de6('0x4')](_0x37e5de)[_0x3de6('0xa')]({'name':_0x14e30b[_0x3de6('0x1c')]}),void _0x46dc64())),_0x14e30b['on'](_0x3de6('0x1a'),()=>_0x2025ef()),_0x14e30b['render'](),_0x2025ef(),_0x3b8843;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4806=['_revisions','_sidebarView','editor','focus','bind','diff','_handleRevisionSetName','action','length','_revisionsRepository','restoreRevision','nameRevision','element','revisionSetName','compare','select','destroy','_createRevisionActions','getLaterVisibleRevision','restoreRevisionCallback','getRevision','highlightRevisions','map','fieldView','setName','add','ready','getEarlierVisibleRevision','change:diff','_handleEditorDataReady','string','RevisionsSidebar','get','isEnabled','repository','revisionHistory.revisionActions','revisionViews','_revisionViewer','getIndex','appendChild','data','isVisible','Restore\x20this\x20revision','render','plugins','init','defaultRevisionActions','_handleRevisionSelected','revisionSelected','locale','compareAgainstSelected','isSelected','selectRevision','revisionHistory','listenTo','newRevisionId','pluginName','Name\x20this\x20revision'];(function(_0x484e7c,_0x480617){const _0x57da1f=function(_0x187c4c){while(--_0x187c4c){_0x484e7c['push'](_0x484e7c['shift']());}};_0x57da1f(++_0x480617);}(_0x4806,0x194));const _0x57da=function(_0x484e7c,_0x480617){_0x484e7c=_0x484e7c-0x0;let _0x57da1f=_0x4806[_0x484e7c];return _0x57da1f;};import{Plugin as _0x19b587}from'ckeditor5/src/core';import _0x5732c6 from'./revisionssidebarview';import _0x7c9644 from'../../revisionviewer';export default class w extends _0x19b587{static get[_0x57da('0x0')](){return _0x57da('0x21');}static get['requires'](){return[_0x7c9644];}constructor(_0x5bb220){super(_0x5bb220),this[_0x57da('0x27')]=_0x5bb220[_0x57da('0x2e')][_0x57da('0x22')](_0x7c9644),this[_0x57da('0xb')]=this['_revisionViewer']['repository'],this[_0x57da('0x3')]=null;}[_0x57da('0x2f')](){const _0x2fa546=this[_0x57da('0xb')][_0x57da('0x2')],_0x1bdab5=this[_0x57da('0x13')](),_0x158773=this[_0x57da('0x4')]['config'][_0x57da('0x22')]('revisionHistory.viewerSidebarContainer');this[_0x57da('0x3')]=new _0x5732c6(this[_0x57da('0x4')][_0x57da('0x33')],_0x2fa546,_0x1bdab5),this[_0x57da('0x3')]['on'](_0x57da('0x32'),this[_0x57da('0x31')][_0x57da('0x6')](this)),this[_0x57da('0x3')]['on'](_0x57da('0xf'),this[_0x57da('0x8')][_0x57da('0x6')](this)),this[_0x57da('0x3')]['bind'](_0x57da('0x23'))['to'](this[_0x57da('0x27')]),this[_0x57da('0x3')]['timePeriodViews']['on'](_0x57da('0x1b'),(_0x552d26,_0x45d05c)=>{_0x45d05c[_0x57da('0x26')]['on']('add',(_0x4e64e7,_0x50f26a)=>{_0x50f26a['bind'](_0x57da('0x23'),'isReady')['to'](this[_0x57da('0x27')]);});}),this[_0x57da('0x3')][_0x57da('0x2d')](),this[_0x57da('0x38')](this[_0x57da('0x4')][_0x57da('0x2a')],_0x57da('0x1c'),this[_0x57da('0x1f')][_0x57da('0x6')](this)),this[_0x57da('0x38')](this['_revisionViewer'],_0x57da('0x1e'),this['_handleDiffChange'][_0x57da('0x6')](this)),_0x158773[_0x57da('0x29')](this[_0x57da('0x3')][_0x57da('0xe')]);}[_0x57da('0x12')](){this['_sidebarView']['element']['remove'](),this[_0x57da('0x3')][_0x57da('0x12')]();}[_0x57da('0x1f')](){const _0x30955d=this['_revisionsRepository'][_0x57da('0x16')](0x0);if(_0x30955d){const _0x54c1e8=this[_0x57da('0xb')][_0x57da('0x1d')](_0x30955d['id']);this[_0x57da('0x27')]['compare'](_0x30955d,_0x54c1e8);}}['_handleRevisionSelected'](_0x1b25cf,_0x453945){const _0x34e435=this[_0x57da('0xb')][_0x57da('0x16')](_0x453945['id']),_0x16305c=this[_0x57da('0xb')][_0x57da('0x1d')](_0x34e435['id']);this[_0x57da('0x27')][_0x57da('0x10')](_0x34e435,_0x16305c);}[_0x57da('0x8')](_0x25c2e1,_0x4e19c4){this[_0x57da('0xb')][_0x57da('0x16')](_0x4e19c4['id'])[_0x57da('0x1a')](_0x4e19c4['name']);}['_handleDiffChange'](_0x3821e0,_0x18c882,_0x536e89){const _0x268946=this[_0x57da('0xb')]['getRevisionsInDiff'](_0x536e89);_0x268946[_0x57da('0xa')]>0x2?(this[_0x57da('0x3')]['highlightRevisions'](_0x268946),this[_0x57da('0x3')][_0x57da('0x36')](null)):(this[_0x57da('0x3')][_0x57da('0x17')]([]),this[_0x57da('0x3')][_0x57da('0x36')](_0x268946[0x0]));}[_0x57da('0x13')](){const _0x24e2bb=this[_0x57da('0x4')],_0x4a5d84=w['availableRevisionActions'],_0x34fabb=_0x24e2bb['config'][_0x57da('0x22')](_0x57da('0x25'))||w[_0x57da('0x30')];if(_0x34fabb[_0x57da('0xa')])return _0x34fabb[_0x57da('0x18')](_0x2cc1ae=>{const _0x23801b=_0x57da('0x20')==typeof _0x2cc1ae?Object['assign']({},_0x4a5d84[_0x2cc1ae]):_0x2cc1ae;return _0x23801b[_0x57da('0x9')]=_0x23801b[_0x57da('0x9')][_0x57da('0x6')](this,_0x24e2bb),_0x23801b[_0x57da('0x2b')]&&(_0x23801b[_0x57da('0x2b')]=_0x23801b['isVisible'][_0x57da('0x6')](this,_0x24e2bb)),_0x23801b;});}}w['availableRevisionActions']={'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x2efbbe},_0x24ee9e)=>{const _0xd99d23=_0x2efbbe[_0x57da('0x22')](_0x7c9644),_0x5d2b8d=_0xd99d23[_0x57da('0x24')];let _0x10c0e6=_0xd99d23['diff'][_0x57da('0x39')],_0x362acb=_0x24ee9e['id'];_0x5d2b8d[_0x57da('0x28')](_0x10c0e6)>_0x5d2b8d[_0x57da('0x28')](_0x362acb)&&([_0x10c0e6,_0x362acb]=[_0x362acb,_0x10c0e6]),_0xd99d23[_0x57da('0x10')](_0x10c0e6,_0x362acb);},'isVisible':({plugins:_0x18c922},_0x45f480)=>{const _0x5a1d4a=_0x18c922[_0x57da('0x22')](_0x7c9644);return!(_0x5a1d4a[_0x57da('0x24')]['getRevisionsInDiff'](_0x5a1d4a[_0x57da('0x7')])['length']>0x2)&&!_0x45f480[_0x57da('0x35')];}},'restoreRevision':{'name':_0x57da('0x2c'),'action':(_0x5800a2,{id:_0x2f2a6d})=>{_0x5800a2['config'][_0x57da('0x22')](_0x57da('0x37'))[_0x57da('0x15')](_0x2f2a6d);},'isVisible':({plugins:_0x378df1},_0x17d8f9)=>!!_0x378df1[_0x57da('0x22')](_0x7c9644)['repository'][_0x57da('0x14')](_0x17d8f9['id'])},'nameRevision':{'name':_0x57da('0x1'),'action':({plugins:_0x307eec},{id:_0x4e5028,revisionNameView:_0x1466b9})=>{const _0x1d3fd3=_0x307eec[_0x57da('0x22')](_0x7c9644),_0x347b4f=_0x1d3fd3[_0x57da('0x24')][_0x57da('0x1d')](_0x4e5028);_0x1d3fd3['compare'](_0x4e5028,_0x347b4f),_0x1466b9[_0x57da('0x5')](),_0x1466b9[_0x57da('0x19')][_0x57da('0x11')]();}}},w[_0x57da('0x30')]=[_0x57da('0x34'),_0x57da('0xc'),_0x57da('0xd')];
23
+ const _0x4c9f=['config','assign','revisionHistory.revisionActions','_handleRevisionSelected','render','revisionSetName','bind','select','newRevisionId','ready','action','revisionViews','map','compareAgainstSelected','compare','add','diff','data','change:diff','_revisionsRepository','revisionHistory.viewerSidebarContainer','restoreRevision','getLaterVisibleRevision','remove','highlightRevisions','getEarlierVisibleRevision','fieldView','init','revisionHistory','element','editor','_handleEditorDataReady','get','revisionSelected','selectRevision','_revisionViewer','getRevisionsInDiff','_handleRevisionSetName','_sidebarView','RevisionsSidebar','nameRevision','_createRevisionActions','getIndex','availableRevisionActions','destroy','isSelected','length','listenTo','_handleDiffChange','isEnabled','plugins','appendChild','isVisible','name','locale','repository','Compare\x20against\x20selected','getRevision','defaultRevisionActions'];(function(_0x30d8ba,_0x4c9f53){const _0x5a2b49=function(_0xc22332){while(--_0xc22332){_0x30d8ba['push'](_0x30d8ba['shift']());}};_0x5a2b49(++_0x4c9f53);}(_0x4c9f,0x131));const _0x5a2b=function(_0x30d8ba,_0x4c9f53){_0x30d8ba=_0x30d8ba-0x0;let _0x5a2b49=_0x4c9f[_0x30d8ba];return _0x5a2b49;};import{Plugin as _0x5b80d8}from'ckeditor5/src/core';import _0x3d8172 from'./revisionssidebarview';import _0x524f10 from'../../revisionviewer';export default class w extends _0x5b80d8{static get['pluginName'](){return _0x5a2b('0x1d');}static get['requires'](){return[_0x524f10];}constructor(_0x35095b){super(_0x35095b),this['_revisionViewer']=_0x35095b[_0x5a2b('0x28')][_0x5a2b('0x16')](_0x524f10),this[_0x5a2b('0x9')]=this[_0x5a2b('0x19')]['repository'],this[_0x5a2b('0x1c')]=null;}[_0x5a2b('0x11')](){const _0x2b2245=this[_0x5a2b('0x9')]['_revisions'],_0x1a9145=this[_0x5a2b('0x1f')](),_0x6f6908=this[_0x5a2b('0x14')]['config'][_0x5a2b('0x16')](_0x5a2b('0xa'));this[_0x5a2b('0x1c')]=new _0x3d8172(this[_0x5a2b('0x14')][_0x5a2b('0x2c')],_0x2b2245,_0x1a9145),this[_0x5a2b('0x1c')]['on'](_0x5a2b('0x17'),this[_0x5a2b('0x34')][_0x5a2b('0x37')](this)),this['_sidebarView']['on'](_0x5a2b('0x36'),this[_0x5a2b('0x1b')][_0x5a2b('0x37')](this)),this[_0x5a2b('0x1c')][_0x5a2b('0x37')](_0x5a2b('0x27'))['to'](this[_0x5a2b('0x19')]),this[_0x5a2b('0x1c')]['timePeriodViews']['on'](_0x5a2b('0x5'),(_0x113d0b,_0x45749a)=>{_0x45749a[_0x5a2b('0x1')]['on'](_0x5a2b('0x5'),(_0x3dd0f8,_0x787b26)=>{_0x787b26[_0x5a2b('0x37')](_0x5a2b('0x27'),'isReady')['to'](this['_revisionViewer']);});}),this[_0x5a2b('0x1c')][_0x5a2b('0x35')](),this['listenTo'](this[_0x5a2b('0x14')][_0x5a2b('0x7')],_0x5a2b('0x3a'),this['_handleEditorDataReady'][_0x5a2b('0x37')](this)),this[_0x5a2b('0x25')](this[_0x5a2b('0x19')],_0x5a2b('0x8'),this[_0x5a2b('0x26')][_0x5a2b('0x37')](this)),_0x6f6908[_0x5a2b('0x29')](this[_0x5a2b('0x1c')]['element']);}[_0x5a2b('0x22')](){this[_0x5a2b('0x1c')][_0x5a2b('0x13')][_0x5a2b('0xd')](),this[_0x5a2b('0x1c')][_0x5a2b('0x22')]();}[_0x5a2b('0x15')](){const _0x3e43c8=this[_0x5a2b('0x9')][_0x5a2b('0x2f')](0x0);if(_0x3e43c8){const _0x184fc5=this['_revisionsRepository'][_0x5a2b('0xf')](_0x3e43c8['id']);this[_0x5a2b('0x19')][_0x5a2b('0x4')](_0x3e43c8,_0x184fc5);}}[_0x5a2b('0x34')](_0x4340a5,_0x177fa9){const _0x38ce32=this[_0x5a2b('0x9')]['getRevision'](_0x177fa9['id']),_0x5b1a2d=this[_0x5a2b('0x9')][_0x5a2b('0xf')](_0x38ce32['id']);this[_0x5a2b('0x19')][_0x5a2b('0x4')](_0x38ce32,_0x5b1a2d);}[_0x5a2b('0x1b')](_0xdc918e,_0x3468d7){this[_0x5a2b('0x9')]['getRevision'](_0x3468d7['id'])['setName'](_0x3468d7[_0x5a2b('0x2b')]);}[_0x5a2b('0x26')](_0xc3b102,_0x19cef0,_0x98ae4){const _0x509c4e=this[_0x5a2b('0x9')][_0x5a2b('0x1a')](_0x98ae4);_0x509c4e[_0x5a2b('0x24')]>0x2?(this['_sidebarView'][_0x5a2b('0xe')](_0x509c4e),this[_0x5a2b('0x1c')][_0x5a2b('0x18')](null)):(this['_sidebarView'][_0x5a2b('0xe')]([]),this['_sidebarView'][_0x5a2b('0x18')](_0x509c4e[0x0]));}[_0x5a2b('0x1f')](){const _0x1251a6=this[_0x5a2b('0x14')],_0x55e626=w[_0x5a2b('0x21')],_0x723d45=_0x1251a6[_0x5a2b('0x31')][_0x5a2b('0x16')](_0x5a2b('0x33'))||w['defaultRevisionActions'];if(_0x723d45['length'])return _0x723d45[_0x5a2b('0x2')](_0x471018=>{const _0x128258='string'==typeof _0x471018?Object[_0x5a2b('0x32')]({},_0x55e626[_0x471018]):_0x471018;return _0x128258[_0x5a2b('0x0')]=_0x128258[_0x5a2b('0x0')]['bind'](this,_0x1251a6),_0x128258[_0x5a2b('0x2a')]&&(_0x128258['isVisible']=_0x128258[_0x5a2b('0x2a')][_0x5a2b('0x37')](this,_0x1251a6)),_0x128258;});}}w[_0x5a2b('0x21')]={'compareAgainstSelected':{'name':_0x5a2b('0x2e'),'action':({plugins:_0x2367c2},_0x18f1c6)=>{const _0x11f7ab=_0x2367c2[_0x5a2b('0x16')](_0x524f10),_0x11270c=_0x11f7ab['repository'];let _0x4bc77d=_0x11f7ab[_0x5a2b('0x6')][_0x5a2b('0x39')],_0x2e82ec=_0x18f1c6['id'];_0x11270c[_0x5a2b('0x20')](_0x4bc77d)>_0x11270c[_0x5a2b('0x20')](_0x2e82ec)&&([_0x4bc77d,_0x2e82ec]=[_0x2e82ec,_0x4bc77d]),_0x11f7ab['compare'](_0x4bc77d,_0x2e82ec);},'isVisible':({plugins:_0x17a092},_0x41d3d2)=>{const _0x57d50b=_0x17a092[_0x5a2b('0x16')](_0x524f10);return!(_0x57d50b[_0x5a2b('0x2d')][_0x5a2b('0x1a')](_0x57d50b['diff'])[_0x5a2b('0x24')]>0x2)&&!_0x41d3d2[_0x5a2b('0x23')];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x9c14a6,{id:_0x31113b})=>{_0x9c14a6[_0x5a2b('0x31')][_0x5a2b('0x16')](_0x5a2b('0x12'))['restoreRevisionCallback'](_0x31113b);},'isVisible':({plugins:_0x5173f9},_0x1a855a)=>!!_0x5173f9[_0x5a2b('0x16')](_0x524f10)['repository'][_0x5a2b('0xc')](_0x1a855a['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x168ac2},{id:_0x4ac0da,revisionNameView:_0x1d77d3})=>{const _0x154362=_0x168ac2[_0x5a2b('0x16')](_0x524f10),_0x4e55b=_0x154362[_0x5a2b('0x2d')][_0x5a2b('0xf')](_0x4ac0da);_0x154362[_0x5a2b('0x4')](_0x4ac0da,_0x4e55b),_0x1d77d3['focus'](),_0x1d77d3[_0x5a2b('0x10')][_0x5a2b('0x38')]();}}},w[_0x5a2b('0x30')]=[_0x5a2b('0x3'),_0x5a2b('0xb'),_0x5a2b('0x1e')];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4755=['span','ck-revision-history-sidebar__header__label','setTemplate','div','content'];(function(_0x1cbd67,_0x475524){const _0x490f2b=function(_0x2dca9b){while(--_0x2dca9b){_0x1cbd67['push'](_0x1cbd67['shift']());}};_0x490f2b(++_0x475524);}(_0x4755,0xdc));const _0x490f=function(_0x1cbd67,_0x475524){_0x1cbd67=_0x1cbd67-0x0;let _0x490f2b=_0x4755[_0x1cbd67];return _0x490f2b;};import{View as _0x192514,IconView as _0x16df92}from'ckeditor5/src/ui';import{getTranslation as _0x4f15d1}from'../../utils/common-translations';import _0x330d8c from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x192514{constructor(_0x2943c0){super(_0x2943c0);const _0x1ccdf4=new _0x16df92();_0x1ccdf4[_0x490f('0x4')]=_0x330d8c,this[_0x490f('0x2')]({'tag':_0x490f('0x3'),'attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1ccdf4,{'tag':_0x490f('0x0'),'attributes':{'class':['ck',_0x490f('0x1')]},'children':[_0x4f15d1(_0x2943c0,'Revision\x20history')]}]});}}
23
+ const _0x29a5=['div','ck-reset_all','content','Revision\x20history','span'];(function(_0x1f94cf,_0x29a579){const _0x225f2b=function(_0x5350fd){while(--_0x5350fd){_0x1f94cf['push'](_0x1f94cf['shift']());}};_0x225f2b(++_0x29a579);}(_0x29a5,0xe8));const _0x225f=function(_0x1f94cf,_0x29a579){_0x1f94cf=_0x1f94cf-0x0;let _0x225f2b=_0x29a5[_0x1f94cf];return _0x225f2b;};import{View as _0x57a3c9,IconView as _0x5319ed}from'ckeditor5/src/ui';import{getTranslation as _0x4f63bb}from'../../utils/common-translations';import _0x5ec1d6 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x57a3c9{constructor(_0x379a01){super(_0x379a01);const _0x57bdc0=new _0x5319ed();_0x57bdc0[_0x225f('0x0')]=_0x5ec1d6,this['setTemplate']({'tag':_0x225f('0x3'),'attributes':{'class':['ck',_0x225f('0x4'),'ck-revision-history-sidebar__header']},'children':[_0x57bdc0,{'tag':_0x225f('0x2'),'attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[_0x4f63bb(_0x379a01,_0x225f('0x1'))]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3c51=['_revisionActions','startDate','localizedPeriodName','div','setTemplate','createCollection','select','span','locale','setName','addRevision','revisionViews','ck-revision-history-sidebar__time-period__label','find','removeRevision','remove'];(function(_0x339af6,_0x3c5112){const _0x3798ba=function(_0x3857bc){while(--_0x3857bc){_0x339af6['push'](_0x339af6['shift']());}};_0x3798ba(++_0x3c5112);}(_0x3c51,0x13c));const _0x3798=function(_0x339af6,_0x3c5112){_0x339af6=_0x339af6-0x0;let _0x3798ba=_0x3c51[_0x339af6];return _0x3798ba;};import{View as _0x3ac0a0}from'ckeditor5/src/ui';import _0x471604 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x375e98}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x3ac0a0{constructor(_0x487e28,_0x14fe83,_0x1c5eba){super(_0x487e28);const _0x1514e2=_0x375e98(_0x14fe83,this[_0x3798('0xc')]['uiLanguage'])[_0x3798('0x6')];this[_0x3798('0x5')]=_0x14fe83,this['revisionViews']=this[_0x3798('0x9')](),this['_revisionActions']=_0x1c5eba,this[_0x3798('0xf')]['delegate'](_0x3798('0xa'))['to'](this),this[_0x3798('0xf')]['delegate'](_0x3798('0xd'))['to'](this),this[_0x3798('0x8')]({'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':_0x3798('0xb'),'attributes':{'class':['ck',_0x3798('0x0')]},'children':[{'text':_0x1514e2}]},{'tag':_0x3798('0x7'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this[_0x3798('0xf')]}]});}[_0x3798('0xe')](_0x3a421d){const _0x17f3b8=new _0x471604(this[_0x3798('0xc')],_0x3a421d,this[_0x3798('0x4')]);this['revisionViews']['add'](_0x17f3b8);}[_0x3798('0x2')](_0x4012f3){const _0x59c45c=this[_0x3798('0xf')][_0x3798('0x1')](_0x48b8b9=>_0x48b8b9['id']===_0x4012f3['id']);this['revisionViews'][_0x3798('0x3')](_0x59c45c);}}
23
+ const _0x5d03=['div','delegate','removeRevision','revisionViews','ck-revision-history-sidebar__time-period__label','localizedPeriodName','_revisionActions','ck-revision-history-sidebar__time-period','uiLanguage','select','addRevision','add','createCollection','remove','locale','setName','startDate'];(function(_0x34e48a,_0x5d03c2){const _0x32d520=function(_0x46e06a){while(--_0x46e06a){_0x34e48a['push'](_0x34e48a['shift']());}};_0x32d520(++_0x5d03c2);}(_0x5d03,0x71));const _0x32d5=function(_0x34e48a,_0x5d03c2){_0x34e48a=_0x34e48a-0x0;let _0x32d520=_0x5d03[_0x34e48a];return _0x32d520;};import{View as _0x331d27}from'ckeditor5/src/ui';import _0x3f1eb2 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x5c412b}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x331d27{constructor(_0x872356,_0x21d70e,_0x420077){super(_0x872356);const _0x3d5909=_0x5c412b(_0x21d70e,this[_0x32d5('0x3')][_0x32d5('0xe')])[_0x32d5('0xb')];this[_0x32d5('0x5')]=_0x21d70e,this['revisionViews']=this[_0x32d5('0x1')](),this[_0x32d5('0xc')]=_0x420077,this[_0x32d5('0x9')][_0x32d5('0x7')](_0x32d5('0xf'))['to'](this),this[_0x32d5('0x9')][_0x32d5('0x7')](_0x32d5('0x4'))['to'](this),this['setTemplate']({'tag':_0x32d5('0x6'),'attributes':{'class':['ck',_0x32d5('0xd')]},'children':[{'tag':'span','attributes':{'class':['ck',_0x32d5('0xa')]},'children':[{'text':_0x3d5909}]},{'tag':_0x32d5('0x6'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this[_0x32d5('0x9')]}]});}[_0x32d5('0x10')](_0x2c9af1){const _0x266525=new _0x3f1eb2(this[_0x32d5('0x3')],_0x2c9af1,this[_0x32d5('0xc')]);this[_0x32d5('0x9')][_0x32d5('0x0')](_0x266525);}[_0x32d5('0x8')](_0x53937c){const _0x1bbb54=this[_0x32d5('0x9')]['find'](_0x5eeb70=>_0x5eeb70['id']===_0x53937c['id']);this[_0x32d5('0x9')][_0x32d5('0x2')](_0x1bbb54);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2130=['flat','locale','remove','div','createCollection','render','deselect','select','map','fire','ck-revision-history-sidebar__timeline','_getTimePeriodViewByStartDate','createdAt','timePeriodViews','unhighlight','_removeRevision','getTime','uiLanguage','ck-rounded-corners','setTemplate','startDate','isEnabled','_addRevision','find','highlightRevisions','set','_revisions','delegate','add','selectRevision','revisionSetName','setName','_revisionActions','ck-disabled','revisionViews','removeRevision','ck-reset'];(function(_0x9354a,_0x213000){const _0x3a68b8=function(_0x350210){while(--_0x350210){_0x9354a['push'](_0x9354a['shift']());}};_0x3a68b8(++_0x213000);}(_0x2130,0x66));const _0x3a68=function(_0x9354a,_0x213000){_0x9354a=_0x9354a-0x0;let _0x3a68b8=_0x2130[_0x9354a];return _0x3a68b8;};import{View as _0x1902fc}from'ckeditor5/src/ui';import _0x35a831 from'./revisionssidebartimeperiodview';import _0x5a0f61 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x5b7f95}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x1902fc{constructor(_0xc7f815,_0x50ac72,_0x21bcc2){super(_0xc7f815);const _0x2cd92b=this['bindTemplate'];this['timePeriodViews']=this[_0x3a68('0xd')](),this['timePeriodViews'][_0x3a68('0x24')](_0x3a68('0x10'))['to'](this),this[_0x3a68('0x16')][_0x3a68('0x24')](_0x3a68('0x3'))['to'](this),this[_0x3a68('0x23')]=_0x50ac72,this[_0x3a68('0x4')]=_0x21bcc2,this['on']('select',(_0x16b154,_0x46fdc7)=>{this[_0x3a68('0x12')]('revisionSelected',_0x46fdc7);}),this['on'](_0x3a68('0x3'),(_0x27514e,_0x2873d6)=>{this[_0x3a68('0x12')](_0x3a68('0x2'),_0x2873d6);}),this[_0x3a68('0x22')](_0x3a68('0x1e'),!0x1),this[_0x3a68('0x1c')]({'tag':_0x3a68('0xc'),'attributes':{'class':['ck',_0x3a68('0x8'),_0x3a68('0x1b'),'ck-revision-history-sidebar']},'children':[new _0x5a0f61(_0xc7f815),{'tag':'div','attributes':{'class':['ck',_0x3a68('0x13'),_0x2cd92b['if'](_0x3a68('0x1e'),_0x3a68('0x5'),_0x4f9284=>!_0x4f9284)]},'children':this[_0x3a68('0x16')]}]});}['render'](){super[_0x3a68('0xe')]();for(const _0x5ebc6e of this[_0x3a68('0x23')])this['_addRevision'](_0x5ebc6e);this['_revisions']['on'](_0x3a68('0x0'),(_0x5340bd,_0x2ca884)=>{this['_addRevision'](_0x2ca884);}),this[_0x3a68('0x23')]['on'](_0x3a68('0xb'),(_0x3ce8b3,_0x2882c6)=>{this[_0x3a68('0x18')](_0x2882c6);});}get[_0x3a68('0x6')](){return this[_0x3a68('0x16')][_0x3a68('0x11')](_0x1422c9=>_0x1422c9['revisionViews'][_0x3a68('0x11')](_0x34b1e2=>_0x34b1e2))[_0x3a68('0x9')]();}[_0x3a68('0x1')](_0x5af2c7){for(const _0x717cc9 of this[_0x3a68('0x6')])_0x5af2c7&&_0x5af2c7['id']===_0x717cc9['id']?_0x717cc9[_0x3a68('0x10')]():_0x717cc9[_0x3a68('0xf')]();}[_0x3a68('0x21')](_0x564292){for(const _0x3bb0ae of this[_0x3a68('0x6')])_0x564292['some'](({id:_0x29622b})=>_0x29622b===_0x3bb0ae['id'])?_0x3bb0ae['highlight']():_0x3bb0ae[_0x3a68('0x17')]();}[_0x3a68('0x1f')](_0x1266a2){const _0x21f369=_0x5b7f95(_0x1266a2[_0x3a68('0x15')],this[_0x3a68('0xa')][_0x3a68('0x1a')])[_0x3a68('0x1d')];let _0x4d2f78=this['timePeriodViews']['get'](0x0);_0x4d2f78&&_0x4d2f78[_0x3a68('0x1d')][_0x3a68('0x19')]()===_0x21f369[_0x3a68('0x19')]()||(_0x4d2f78=new _0x35a831(this[_0x3a68('0xa')],_0x21f369,this['_revisionActions']),this['timePeriodViews'][_0x3a68('0x0')](_0x4d2f78)),_0x4d2f78['addRevision'](_0x1266a2);}[_0x3a68('0x18')](_0x4c9f46){const _0x476b8a=_0x5b7f95(_0x4c9f46['createdAt'],this[_0x3a68('0xa')][_0x3a68('0x1a')])['startDate'];this[_0x3a68('0x14')](_0x476b8a)[_0x3a68('0x7')](_0x4c9f46);}[_0x3a68('0x14')](_0x46c72f){return this[_0x3a68('0x16')][_0x3a68('0x20')](_0x6f0acc=>_0x6f0acc[_0x3a68('0x1d')][_0x3a68('0x19')]()===_0x46c72f[_0x3a68('0x19')]());}}
23
+ const _0xd32a=['_addRevision','selectRevision','revisionSelected','bindTemplate','timePeriodViews','ck-rounded-corners','revisionSetName','_getTimePeriodViewByStartDate','some','set','isEnabled','add','revisionViews','fire','select','_removeRevision','createdAt','render','ck-revision-history-sidebar','highlight','ck-disabled','_revisionActions','find','map','removeRevision','ck-revision-history-sidebar__timeline','div','createCollection','ck-reset','remove','uiLanguage','startDate','locale','_revisions','deselect','setTemplate','get','setName','getTime','unhighlight','delegate'];(function(_0x426c4f,_0xd32acb){const _0x4f934c=function(_0x588d68){while(--_0x588d68){_0x426c4f['push'](_0x426c4f['shift']());}};_0x4f934c(++_0xd32acb);}(_0xd32a,0x17b));const _0x4f93=function(_0x426c4f,_0xd32acb){_0x426c4f=_0x426c4f-0x0;let _0x4f934c=_0xd32a[_0x426c4f];return _0x4f934c;};import{View as _0x16bc3b}from'ckeditor5/src/ui';import _0x491cd6 from'./revisionssidebartimeperiodview';import _0x592b35 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x70f5f1}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x16bc3b{constructor(_0x2dbedc,_0x30e294,_0x4f1524){super(_0x2dbedc);const _0x467203=this[_0x4f93('0x22')];this[_0x4f93('0x23')]=this[_0x4f93('0x11')](),this['timePeriodViews'][_0x4f93('0x1e')](_0x4f93('0x4'))['to'](this),this[_0x4f93('0x23')]['delegate'](_0x4f93('0x1b'))['to'](this),this[_0x4f93('0x17')]=_0x30e294,this['_revisionActions']=_0x4f1524,this['on'](_0x4f93('0x4'),(_0x39b747,_0x2dc84d)=>{this['fire'](_0x4f93('0x21'),_0x2dc84d);}),this['on'](_0x4f93('0x1b'),(_0x3389eb,_0x2e2702)=>{this[_0x4f93('0x3')](_0x4f93('0x25'),_0x2e2702);}),this[_0x4f93('0x28')]('isEnabled',!0x1),this[_0x4f93('0x19')]({'tag':_0x4f93('0x10'),'attributes':{'class':['ck',_0x4f93('0x12'),_0x4f93('0x24'),_0x4f93('0x8')]},'children':[new _0x592b35(_0x2dbedc),{'tag':'div','attributes':{'class':['ck',_0x4f93('0xf'),_0x467203['if'](_0x4f93('0x0'),_0x4f93('0xa'),_0x1bbc95=>!_0x1bbc95)]},'children':this[_0x4f93('0x23')]}]});}[_0x4f93('0x7')](){super[_0x4f93('0x7')]();for(const _0x96f08b of this[_0x4f93('0x17')])this[_0x4f93('0x1f')](_0x96f08b);this[_0x4f93('0x17')]['on']('add',(_0x1cdac3,_0x101c47)=>{this[_0x4f93('0x1f')](_0x101c47);}),this['_revisions']['on'](_0x4f93('0x13'),(_0x47244c,_0x40d4c4)=>{this['_removeRevision'](_0x40d4c4);});}get[_0x4f93('0x2')](){return this[_0x4f93('0x23')][_0x4f93('0xd')](_0x40735b=>_0x40735b[_0x4f93('0x2')][_0x4f93('0xd')](_0x140063=>_0x140063))['flat']();}[_0x4f93('0x20')](_0x31f2cd){for(const _0x3d252c of this[_0x4f93('0x2')])_0x31f2cd&&_0x31f2cd['id']===_0x3d252c['id']?_0x3d252c['select']():_0x3d252c[_0x4f93('0x18')]();}['highlightRevisions'](_0x208e10){for(const _0x30a2b3 of this[_0x4f93('0x2')])_0x208e10[_0x4f93('0x27')](({id:_0x28a534})=>_0x28a534===_0x30a2b3['id'])?_0x30a2b3[_0x4f93('0x9')]():_0x30a2b3[_0x4f93('0x1d')]();}[_0x4f93('0x1f')](_0xb7eb44){const _0x204ad5=_0x70f5f1(_0xb7eb44[_0x4f93('0x6')],this[_0x4f93('0x16')][_0x4f93('0x14')])['startDate'];let _0x54a90e=this[_0x4f93('0x23')][_0x4f93('0x1a')](0x0);_0x54a90e&&_0x54a90e[_0x4f93('0x15')][_0x4f93('0x1c')]()===_0x204ad5['getTime']()||(_0x54a90e=new _0x491cd6(this[_0x4f93('0x16')],_0x204ad5,this[_0x4f93('0xb')]),this[_0x4f93('0x23')][_0x4f93('0x1')](_0x54a90e)),_0x54a90e['addRevision'](_0xb7eb44);}[_0x4f93('0x5')](_0x15a040){const _0x9d0613=_0x70f5f1(_0x15a040[_0x4f93('0x6')],this[_0x4f93('0x16')]['uiLanguage'])['startDate'];this[_0x4f93('0x26')](_0x9d0613)[_0x4f93('0xe')](_0x15a040);}[_0x4f93('0x26')](_0x5a4ba4){return this['timePeriodViews'][_0x4f93('0xc')](_0x152981=>_0x152981[_0x4f93('0x15')][_0x4f93('0x1c')]()===_0x5a4ba4[_0x4f93('0x1c')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1870=['toJSDate','startOf','fromJSDate','setLocale','minus','day','year','toRelativeCalendar','local','hasSame','week'];(function(_0x14975e,_0x18706a){const _0x4222df=function(_0x2e2c5d){while(--_0x2e2c5d){_0x14975e['push'](_0x14975e['shift']());}};_0x4222df(++_0x18706a);}(_0x1870,0xba));const _0x4222=function(_0x14975e,_0x18706a){_0x14975e=_0x14975e-0x0;let _0x4222df=_0x1870[_0x14975e];return _0x4222df;};import{DateTime as _0x15fd2b}from'luxon';export function getDateTimePeriodInfo(_0x2d9b42,_0x5e44ff){const _0x3cb3cf=_0x15fd2b[_0x4222('0x3')](_0x2d9b42)[_0x4222('0x4')](_0x5e44ff),_0x1ee9da=_0x15fd2b[_0x4222('0x9')](),_0x236413=_0x1ee9da[_0x4222('0x5')]({'days':0x1})['startOf'](_0x4222('0x6'));let _0x3cc90d,_0x27664d;return _0x3cb3cf['hasSame'](_0x1ee9da,_0x4222('0x6'))?(_0x3cc90d=_0x3cb3cf[_0x4222('0x2')]('day')[_0x4222('0x1')](),_0x27664d=_0x3cb3cf['toRelativeCalendar']()):_0x3cb3cf['hasSame'](_0x236413,_0x4222('0x6'))?(_0x3cc90d=_0x236413[_0x4222('0x1')](),_0x27664d=_0x3cb3cf[_0x4222('0x8')]()):_0x3cb3cf[_0x4222('0xa')](_0x1ee9da,_0x4222('0x0'))?(_0x3cc90d=_0x3cb3cf[_0x4222('0x2')](_0x4222('0x0'))[_0x4222('0x1')](),_0x27664d=_0x3cb3cf['weekdayLong']||''):_0x3cb3cf[_0x4222('0xa')](_0x1ee9da,_0x4222('0x7'))?(_0x3cc90d=_0x3cb3cf[_0x4222('0x2')]('month')[_0x4222('0x1')](),_0x27664d=_0x3cb3cf['monthLong']||''):(_0x3cc90d=_0x3cb3cf[_0x4222('0x2')](_0x4222('0x7'))[_0x4222('0x1')](),_0x27664d=String(_0x3cb3cf[_0x4222('0x7')])),{'startDate':_0x3cc90d,'localizedPeriodName':_0x27664d};}
23
+ const _0x1d72=['year','day','toJSDate','weekdayLong','hasSame','startOf','week','monthLong','month','minus','setLocale','toRelativeCalendar','fromJSDate'];(function(_0x613f27,_0x1d72b8){const _0x1fcef9=function(_0x34a723){while(--_0x34a723){_0x613f27['push'](_0x613f27['shift']());}};_0x1fcef9(++_0x1d72b8);}(_0x1d72,0x7d));const _0x1fce=function(_0x613f27,_0x1d72b8){_0x613f27=_0x613f27-0x0;let _0x1fcef9=_0x1d72[_0x613f27];return _0x1fcef9;};import{DateTime as _0x1503de}from'luxon';export function getDateTimePeriodInfo(_0x387f11,_0x164899){const _0xe2b916=_0x1503de[_0x1fce('0x4')](_0x387f11)[_0x1fce('0x2')](_0x164899),_0x51ecfb=_0x1503de['local'](),_0x52c526=_0x51ecfb[_0x1fce('0x1')]({'days':0x1})[_0x1fce('0xa')](_0x1fce('0x6'));let _0x20a28e,_0x1483dd;return _0xe2b916['hasSame'](_0x51ecfb,'day')?(_0x20a28e=_0xe2b916[_0x1fce('0xa')](_0x1fce('0x6'))[_0x1fce('0x7')](),_0x1483dd=_0xe2b916[_0x1fce('0x3')]()):_0xe2b916['hasSame'](_0x52c526,_0x1fce('0x6'))?(_0x20a28e=_0x52c526[_0x1fce('0x7')](),_0x1483dd=_0xe2b916[_0x1fce('0x3')]()):_0xe2b916['hasSame'](_0x51ecfb,_0x1fce('0xb'))?(_0x20a28e=_0xe2b916['startOf']('week')[_0x1fce('0x7')](),_0x1483dd=_0xe2b916[_0x1fce('0x8')]||''):_0xe2b916[_0x1fce('0x9')](_0x51ecfb,'year')?(_0x20a28e=_0xe2b916[_0x1fce('0xa')](_0x1fce('0x0'))[_0x1fce('0x7')](),_0x1483dd=_0xe2b916[_0x1fce('0xc')]||''):(_0x20a28e=_0xe2b916[_0x1fce('0xa')](_0x1fce('0x5'))[_0x1fce('0x7')](),_0x1483dd=String(_0xe2b916[_0x1fce('0x5')])),{'startDate':_0x20a28e,'localizedPeriodName':_0x1483dd};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5417=['_model','element','span','isSuggestion','ck-revision-change__label','author','type','Suggested\x20by','ck-revision-change__','Removed\x20by','focus','changeId','div','bindTemplate','set','ck-annotation','add','setTemplate','data'];(function(_0x35897a,_0x5417f4){const _0x5a3d55=function(_0x3cffec){while(--_0x3cffec){_0x35897a['push'](_0x35897a['shift']());}};_0x5a3d55(++_0x5417f4);}(_0x5417,0x145));const _0x5a3d=function(_0x35897a,_0x5417f4){_0x35897a=_0x35897a-0x0;let _0x5a3d55=_0x5417[_0x35897a];return _0x5a3d55;};import{View as _0xcd581e}from'ckeditor5/src/ui';import{getTranslation as _0x35973b}from'../../utils/common-translations';export default class Z extends _0xcd581e{constructor(_0x2ee901,_0x527806){super(_0x2ee901),this[_0x5a3d('0x11')]=_0x527806,this[_0x5a3d('0x9')]=_0x527806['id'];const _0x3c3359=this[_0x5a3d('0xb')],_0x59a55e=_0x35973b(_0x2ee901,_0x527806[_0x5a3d('0x10')][_0x5a3d('0x1')]?_0x5a3d('0x5'):_0x5a3d('0xe')==_0x527806[_0x5a3d('0x4')]?'Added\x20by':_0x5a3d('0x7'));this[_0x5a3d('0xc')](_0x5a3d('0x4'),_0x527806['type']),this[_0x5a3d('0xf')]({'tag':_0x5a3d('0xa'),'attributes':{'class':[_0x5a3d('0xd'),'ck-revision-change',_0x3c3359['to'](_0x5a3d('0x4'),_0x33ee30=>_0x5a3d('0x6')+_0x33ee30)],'tabindex':-0x1},'children':[{'tag':_0x5a3d('0x0'),'children':[{'tag':_0x5a3d('0x0'),'attributes':{'class':[_0x5a3d('0x2')]},'children':[{'text':_0x59a55e}]},{'text':'\x20'+_0x527806[_0x5a3d('0x3')]['name']}]}]});}[_0x5a3d('0x8')](){this[_0x5a3d('0x12')][_0x5a3d('0x8')]();}}
23
+ const _0x4ecb=['setTemplate','data','isSuggestion','ck-revision-change','bindTemplate','span','author','ck-annotation','_model','type','ck-revision-change__label','div','add','element','Added\x20by','Suggested\x20by','ck-revision-change__','focus'];(function(_0x40fdbe,_0x4ecba5){const _0x508874=function(_0x5d68a4){while(--_0x5d68a4){_0x40fdbe['push'](_0x40fdbe['shift']());}};_0x508874(++_0x4ecba5);}(_0x4ecb,0x175));const _0x5088=function(_0x40fdbe,_0x4ecba5){_0x40fdbe=_0x40fdbe-0x0;let _0x508874=_0x4ecb[_0x40fdbe];return _0x508874;};import{View as _0x276582}from'ckeditor5/src/ui';import{getTranslation as _0x83309}from'../../utils/common-translations';export default class Z extends _0x276582{constructor(_0x512daf,_0x56e57c){super(_0x512daf),this[_0x5088('0xd')]=_0x56e57c,this['changeId']=_0x56e57c['id'];const _0x4dae72=this[_0x5088('0x9')],_0x42bba5=_0x83309(_0x512daf,_0x56e57c[_0x5088('0x6')][_0x5088('0x7')]?_0x5088('0x2'):_0x5088('0x11')==_0x56e57c[_0x5088('0xe')]?_0x5088('0x1'):'Removed\x20by');this['set'](_0x5088('0xe'),_0x56e57c['type']),this[_0x5088('0x5')]({'tag':_0x5088('0x10'),'attributes':{'class':[_0x5088('0xc'),_0x5088('0x8'),_0x4dae72['to'](_0x5088('0xe'),_0x2fe61c=>_0x5088('0x3')+_0x2fe61c)],'tabindex':-0x1},'children':[{'tag':_0x5088('0xa'),'children':[{'tag':'span','attributes':{'class':[_0x5088('0xf')]},'children':[{'text':_0x42bba5}]},{'text':'\x20'+_0x56e57c[_0x5088('0xb')]['name']}]}]});}[_0x5088('0x4')](){this[_0x5088('0x0')][_0x5088('0x4')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x15d7=['X_OF_Y_CHANGES','span','execute','isNavigationMode','numberOfChanges','setTemplate','ck-hidden','fire','set','NUMBER_OF_CHANGES','currentChangeNumber','ck-revision-history-ui__changes-navigation__navigation','isEnabled','bind','Show\x20previous\x20change','_statusText','_isStatusLabelVisible','backward','EDIT_X_OF_Y_REVISIONS','isForwardNavigationEnabled','div','No\x20changes','ck-revision-history-ui__changes-navigation__label','bindTemplate','isBackwardNavigationEnabled','isReady'];(function(_0x35ea9c,_0x15d7d8){const _0xd1ed48=function(_0x2ca8b7){while(--_0x2ca8b7){_0x35ea9c['push'](_0x35ea9c['shift']());}};_0xd1ed48(++_0x15d7d8);}(_0x15d7,0x72));const _0xd1ed=function(_0x35ea9c,_0x15d7d8){_0x35ea9c=_0x35ea9c-0x0;let _0xd1ed48=_0x15d7[_0x35ea9c];return _0xd1ed48;};import{View as _0x36fb0e,ButtonView as _0x556234,ToolbarSeparatorView as _0x2c6427}from'ckeditor5/src/ui';import{getTranslation as _0x40b61d}from'../../utils/common-translations';import _0x5e9ab8 from'../../../theme/icons/arrow-up.svg';import _0x5e50f9 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x36fb0e{constructor(_0x1bcc1b){super(_0x1bcc1b);const _0x3f0963=this[_0xd1ed('0xd')],_0x212dbc=new _0x556234(_0x1bcc1b),_0xbe2a6a=new _0x556234(_0x1bcc1b);this[_0xd1ed('0x18')](_0xd1ed('0x13'),!0x1),this[_0xd1ed('0x18')](_0xd1ed('0xf'),!0x1),this['set'](_0xd1ed('0x0'),0x0),this['set'](_0xd1ed('0x14'),0x0),this[_0xd1ed('0x18')](_0xd1ed('0x9'),!0x1),this[_0xd1ed('0x18')](_0xd1ed('0xe'),!0x1),this[_0xd1ed('0x3')]('_isStatusLabelVisible')['to'](this,_0xd1ed('0xf'),this,_0xd1ed('0x14'),(_0x156c24,_0x5f2f64)=>_0x156c24&&_0x5f2f64>0x0),this[_0xd1ed('0x3')](_0xd1ed('0x5'))['to'](this,'isReady',this,_0xd1ed('0x0'),this,_0xd1ed('0x14'),this,_0xd1ed('0x13'),(_0x1d3413,_0x51b317,_0x5cbf0a,_0x3dbaf4)=>{if(!_0x1d3413)return _0x40b61d(_0x1bcc1b,'Loading...');if(!_0x5cbf0a)return _0x40b61d(_0x1bcc1b,_0xd1ed('0xb'));const _0x4b9703=_0x40b61d(_0x1bcc1b,_0xd1ed('0x19'),_0x5cbf0a);return _0x3dbaf4?_0x40b61d(_0x1bcc1b,_0xd1ed('0x10'),[_0x51b317+0x1,_0x5cbf0a]):_0x4b9703;}),_0x212dbc[_0xd1ed('0x18')]({'label':_0x40b61d(_0x1bcc1b,_0xd1ed('0x4')),'tooltip':!0x0,'icon':_0x5e9ab8}),_0xbe2a6a[_0xd1ed('0x18')]({'label':_0x40b61d(_0x1bcc1b,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x5e50f9}),_0x212dbc[_0xd1ed('0x3')](_0xd1ed('0x2'))['to'](this,_0xd1ed('0xe')),_0xbe2a6a['bind'](_0xd1ed('0x2'))['to'](this,'isForwardNavigationEnabled'),_0x212dbc['on'](_0xd1ed('0x12'),()=>this[_0xd1ed('0x17')](_0xd1ed('0x12'),_0xd1ed('0x7'))),_0xbe2a6a['on'](_0xd1ed('0x12'),()=>this[_0xd1ed('0x17')](_0xd1ed('0x12'),'forward')),this[_0xd1ed('0x15')]({'tag':_0xd1ed('0xa'),'attributes':{'class':['ck','ck-revision-history-ui','ck-revision-history-ui__changes-navigation']},'children':[{'tag':_0xd1ed('0x11'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':_0xd1ed('0x11'),'attributes':{'class':[_0xd1ed('0xc'),_0x3f0963['if'](_0xd1ed('0x6'),_0xd1ed('0x16'),_0x25ad62=>!_0x25ad62)]},'children':[{'text':_0x3f0963['to'](_0xd1ed('0x13'),_0x477bd8=>_0x477bd8?_0x40b61d(_0x1bcc1b,_0xd1ed('0x8'))+':\x20':_0x40b61d(_0x1bcc1b,'Total')+':\x20')}]},{'text':_0x3f0963['to'](_0xd1ed('0x5'))}]},new _0x2c6427(),{'tag':'div','attributes':{'class':[_0xd1ed('0x1')]},'children':[_0x212dbc,_0xbe2a6a]}]});}}
23
+ const _0x156e=['X_OF_Y_CHANGES','currentChangeNumber','isForwardNavigationEnabled','span','ck-hidden','ck-revision-history-ui','NUMBER_OF_CHANGES','forward','Total','backward','bindTemplate','ck-revision-history-ui__changes-navigation__label','fire','isBackwardNavigationEnabled','isNavigationMode','Loading...','Show\x20previous\x20change','execute','ck-revision-history-ui__changes-navigation__wrapper','_isStatusLabelVisible','set','Show\x20next\x20change','isEnabled','div','bind','EDIT_X_OF_Y_REVISIONS','No\x20changes','_statusText','isReady','setTemplate','numberOfChanges'];(function(_0x32be90,_0x156ebf){const _0x155d2f=function(_0x28f57c){while(--_0x28f57c){_0x32be90['push'](_0x32be90['shift']());}};_0x155d2f(++_0x156ebf);}(_0x156e,0x139));const _0x155d=function(_0x32be90,_0x156ebf){_0x32be90=_0x32be90-0x0;let _0x155d2f=_0x156e[_0x32be90];return _0x155d2f;};import{View as _0x4e715b,ButtonView as _0x396d75,ToolbarSeparatorView as _0x2df02e}from'ckeditor5/src/ui';import{getTranslation as _0x50610e}from'../../utils/common-translations';import _0x17dc2e from'../../../theme/icons/arrow-up.svg';import _0x34637a from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x4e715b{constructor(_0x3b4b66){super(_0x3b4b66);const _0x10d0e4=this[_0x155d('0x7')],_0x1c4bef=new _0x396d75(_0x3b4b66),_0xee5366=new _0x396d75(_0x3b4b66);this['set'](_0x155d('0xb'),!0x1),this[_0x155d('0x11')](_0x155d('0x19'),!0x1),this['set'](_0x155d('0x1d'),0x0),this[_0x155d('0x11')](_0x155d('0x1b'),0x0),this[_0x155d('0x11')](_0x155d('0x1e'),!0x1),this[_0x155d('0x11')]('isBackwardNavigationEnabled',!0x1),this['bind'](_0x155d('0x10'))['to'](this,_0x155d('0x19'),this,_0x155d('0x1b'),(_0x55e4a2,_0x76f226)=>_0x55e4a2&&_0x76f226>0x0),this[_0x155d('0x15')]('_statusText')['to'](this,_0x155d('0x19'),this,_0x155d('0x1d'),this,'numberOfChanges',this,'isNavigationMode',(_0x4074b0,_0x10425a,_0x2af293,_0x3ca243)=>{if(!_0x4074b0)return _0x50610e(_0x3b4b66,_0x155d('0xc'));if(!_0x2af293)return _0x50610e(_0x3b4b66,_0x155d('0x17'));const _0x464417=_0x50610e(_0x3b4b66,_0x155d('0x3'),_0x2af293);return _0x3ca243?_0x50610e(_0x3b4b66,_0x155d('0x1c'),[_0x10425a+0x1,_0x2af293]):_0x464417;}),_0x1c4bef[_0x155d('0x11')]({'label':_0x50610e(_0x3b4b66,_0x155d('0xd')),'tooltip':!0x0,'icon':_0x17dc2e}),_0xee5366[_0x155d('0x11')]({'label':_0x50610e(_0x3b4b66,_0x155d('0x12')),'tooltip':!0x0,'icon':_0x34637a}),_0x1c4bef['bind'](_0x155d('0x13'))['to'](this,_0x155d('0xa')),_0xee5366['bind'](_0x155d('0x13'))['to'](this,_0x155d('0x1e')),_0x1c4bef['on'](_0x155d('0xe'),()=>this['fire'](_0x155d('0xe'),_0x155d('0x6'))),_0xee5366['on']('execute',()=>this[_0x155d('0x9')](_0x155d('0xe'),_0x155d('0x4'))),this[_0x155d('0x1a')]({'tag':'div','attributes':{'class':['ck',_0x155d('0x2'),'ck-revision-history-ui__changes-navigation']},'children':[{'tag':_0x155d('0x0'),'attributes':{'class':[_0x155d('0xf')]},'children':[{'tag':_0x155d('0x0'),'attributes':{'class':[_0x155d('0x8'),_0x10d0e4['if'](_0x155d('0x10'),_0x155d('0x1'),_0x5e64f6=>!_0x5e64f6)]},'children':[{'text':_0x10d0e4['to'](_0x155d('0xb'),_0x2f2b8a=>_0x2f2b8a?_0x50610e(_0x3b4b66,_0x155d('0x16'))+':\x20':_0x50610e(_0x3b4b66,_0x155d('0x5'))+':\x20')}]},{'text':_0x10d0e4['to'](_0x155d('0x18'))}]},new _0x2df02e(),{'tag':_0x155d('0x14'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1c4bef,_0xee5366]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x17da=['view','change','hide','pluginName','addClass','editor','roots','editing','document','ck-editor__editable__loading-overlay'];(function(_0x8eec6e,_0x17da78){const _0x359b31=function(_0x55fc4a){while(--_0x55fc4a){_0x8eec6e['push'](_0x8eec6e['shift']());}};_0x359b31(++_0x17da78);}(_0x17da,0x89));const _0x359b=function(_0x8eec6e,_0x17da78){_0x8eec6e=_0x8eec6e-0x0;let _0x359b31=_0x17da[_0x8eec6e];return _0x359b31;};import{Plugin as _0x34fde7}from'ckeditor5/src/core';const oe=_0x359b('0x2');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x34fde7{static get[_0x359b('0x6')](){return'RevisionViewerLoadingOverlay';}['show'](){const _0x3b6bdb=this[_0x359b('0x8')][_0x359b('0x0')][_0x359b('0x3')];_0x3b6bdb[_0x359b('0x4')](_0x2387c3=>{for(const _0x59c737 of _0x3b6bdb[_0x359b('0x1')][_0x359b('0x9')])_0x2387c3[_0x359b('0x7')](oe,_0x59c737);});}[_0x359b('0x5')](){const _0x2e9d0a=this[_0x359b('0x8')][_0x359b('0x0')][_0x359b('0x3')];_0x2e9d0a[_0x359b('0x4')](_0x5bfed3=>{for(const _0x4d77a0 of _0x2e9d0a[_0x359b('0x1')][_0x359b('0x9')])_0x5bfed3['removeClass'](oe,_0x4d77a0);});}}
23
+ const _0x30ae=['addClass','show','editor','editing','document','ck-editor__editable__loading-overlay','view','change','hide','roots'];(function(_0x27b7fe,_0x30aebc){const _0x4f616d=function(_0x1ec8f0){while(--_0x1ec8f0){_0x27b7fe['push'](_0x27b7fe['shift']());}};_0x4f616d(++_0x30aebc);}(_0x30ae,0x10a));const _0x4f61=function(_0x27b7fe,_0x30aebc){_0x27b7fe=_0x27b7fe-0x0;let _0x4f616d=_0x30ae[_0x27b7fe];return _0x4f616d;};import{Plugin as _0x181c54}from'ckeditor5/src/core';const oe=_0x4f61('0x9');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x181c54{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}[_0x4f61('0x5')](){const _0x3a200e=this[_0x4f61('0x6')][_0x4f61('0x7')][_0x4f61('0x0')];_0x3a200e['change'](_0x4ad8bb=>{for(const _0x3acc90 of _0x3a200e[_0x4f61('0x8')][_0x4f61('0x3')])_0x4ad8bb[_0x4f61('0x4')](oe,_0x3acc90);});}[_0x4f61('0x2')](){const _0x2c2c23=this[_0x4f61('0x6')]['editing'][_0x4f61('0x0')];_0x2c2c23[_0x4f61('0x1')](_0x1f9156=>{for(const _0x1e73fb of _0x2c2c23['document']['roots'])_0x1f9156['removeClass'](oe,_0x1e73fb);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x207b=['closeRevisionViewerCallback','RevisionViewerUI','get','requires','numberOfChanges','plugins','changesNavigation','set','Restore\x20this\x20revision','show','componentFactory','add','pluginName','exitToEditing','revisionHistory','currentChangeNumber','listenTo','ck-revision-history-ui__back-to-editing','isEnabled','init','showPreviousChange','execute','commands','isForwardNavigationEnabled','editor','showNextChange','restoreRevision','Back\x20to\x20editing','config','bind'];(function(_0x2065b6,_0x207be4){const _0x442c6f=function(_0x5cf0ec){while(--_0x5cf0ec){_0x2065b6['push'](_0x2065b6['shift']());}};_0x442c6f(++_0x207be4);}(_0x207b,0xec));const _0x442c=function(_0x2065b6,_0x207be4){_0x2065b6=_0x2065b6-0x0;let _0x442c6f=_0x207b[_0x2065b6];return _0x442c6f;};import{Plugin as _0x13e306}from'ckeditor5/src/core';import{ButtonView as _0x3347a9}from'ckeditor5/src/ui';import _0x590bb2 from'./changesnavigationview';import _0x130e9a from'./../../revisionviewer';import _0xa88d4e from'./revisionviewerloadingoverlay';import{getTranslation as _0x923324}from'../../utils/common-translations';import _0x183398 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x13e306{static get[_0x442c('0x10')](){return _0x442c('0x5');}static get[_0x442c('0x7')](){return[_0x130e9a,_0xa88d4e];}[_0x442c('0x17')](){const _0x479e90=this[_0x442c('0x1c')],_0x2bfd17=_0x479e90[_0x442c('0x9')][_0x442c('0x6')](_0x130e9a),_0x52c986=_0x479e90[_0x442c('0x9')][_0x442c('0x6')](_0xa88d4e);_0x479e90['ui'][_0x442c('0xe')][_0x442c('0xf')](_0x442c('0x11'),_0x40ad93=>{const _0x8f64af=new _0x3347a9(_0x40ad93);return _0x8f64af[_0x442c('0xb')]({'label':_0x923324(_0x40ad93,_0x442c('0x1')),'icon':_0x183398,'withText':!0x0,'tooltip':!0x0,'class':_0x442c('0x15')}),this[_0x442c('0x14')](_0x8f64af,'execute',()=>{_0x479e90[_0x442c('0x2')]['get'](_0x442c('0x12'))[_0x442c('0x4')]();}),_0x8f64af;}),_0x479e90['ui']['componentFactory'][_0x442c('0xf')](_0x442c('0x0'),_0x1d2038=>{const _0x546184=new _0x3347a9(_0x1d2038);return _0x546184[_0x442c('0xb')]({'label':_0x923324(_0x1d2038,_0x442c('0xc')),'withText':!0x0,'tooltip':!0x0}),_0x546184[_0x442c('0x3')](_0x442c('0x16'))['to'](_0x479e90['commands'][_0x442c('0x6')](_0x442c('0x0'))),this['listenTo'](_0x546184,_0x442c('0x19'),()=>_0x479e90[_0x442c('0x19')](_0x442c('0x0'))),_0x546184;}),_0x479e90['ui']['componentFactory']['add'](_0x442c('0xa'),_0x381eed=>{const _0x348978=new _0x590bb2(_0x381eed),_0x5490b7=_0x479e90['commands']['get']('showPreviousChange'),_0x12070b=_0x479e90[_0x442c('0x1a')]['get']('showNextChange');return _0x348978['bind']('isBackwardNavigationEnabled')['to'](_0x5490b7,_0x442c('0x16')),_0x348978['bind'](_0x442c('0x1b'))['to'](_0x12070b,'isEnabled'),_0x348978[_0x442c('0x3')]('isReady',_0x442c('0x13'),_0x442c('0x8'),'isNavigationMode')['to'](_0x2bfd17),this[_0x442c('0x14')](_0x348978,_0x442c('0x19'),(_0x4d31cb,_0x2065fe)=>{_0x479e90['execute']('forward'===_0x2065fe?_0x442c('0x1d'):_0x442c('0x18'));}),_0x348978;}),_0x52c986['show'](),_0x2bfd17['on']('change:isReady',(_0x48b300,_0x5d9e5f,_0x3ef37f)=>{_0x3ef37f?_0x52c986['hide']():_0x52c986[_0x442c('0xd')]();});}}
23
+ const _0x1a57=['pluginName','Back\x20to\x20editing','revisionHistory','plugins','bind','commands','restoreRevision','add','closeRevisionViewerCallback','Restore\x20this\x20revision','set','componentFactory','get','listenTo','isEnabled','isBackwardNavigationEnabled','execute','isReady','editor','showNextChange','config','hide','forward','numberOfChanges','init','currentChangeNumber','showPreviousChange','show','ck-revision-history-ui__back-to-editing','changesNavigation'];(function(_0x4ef34d,_0x1a5790){const _0x2e436c=function(_0x1ce3f5){while(--_0x1ce3f5){_0x4ef34d['push'](_0x4ef34d['shift']());}};_0x2e436c(++_0x1a5790);}(_0x1a57,0x1af));const _0x2e43=function(_0x4ef34d,_0x1a5790){_0x4ef34d=_0x4ef34d-0x0;let _0x2e436c=_0x1a57[_0x4ef34d];return _0x2e436c;};import{Plugin as _0x21b22b}from'ckeditor5/src/core';import{ButtonView as _0x251101}from'ckeditor5/src/ui';import _0x4fb869 from'./changesnavigationview';import _0xeae790 from'./../../revisionviewer';import _0x38b3ac from'./revisionviewerloadingoverlay';import{getTranslation as _0x62ba3c}from'../../utils/common-translations';import _0x19e423 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x21b22b{static get[_0x2e43('0x13')](){return'RevisionViewerUI';}static get['requires'](){return[_0xeae790,_0x38b3ac];}[_0x2e43('0xd')](){const _0x4620bb=this[_0x2e43('0x7')],_0x5e17da=_0x4620bb[_0x2e43('0x16')]['get'](_0xeae790),_0x51f9b9=_0x4620bb[_0x2e43('0x16')]['get'](_0x38b3ac);_0x4620bb['ui'][_0x2e43('0x0')][_0x2e43('0x1a')]('exitToEditing',_0x3dca05=>{const _0x295452=new _0x251101(_0x3dca05);return _0x295452[_0x2e43('0x1d')]({'label':_0x62ba3c(_0x3dca05,_0x2e43('0x14')),'icon':_0x19e423,'withText':!0x0,'tooltip':!0x0,'class':_0x2e43('0x11')}),this[_0x2e43('0x2')](_0x295452,_0x2e43('0x5'),()=>{_0x4620bb[_0x2e43('0x9')][_0x2e43('0x1')](_0x2e43('0x15'))[_0x2e43('0x1b')]();}),_0x295452;}),_0x4620bb['ui'][_0x2e43('0x0')][_0x2e43('0x1a')](_0x2e43('0x19'),_0x526138=>{const _0x5aaa9c=new _0x251101(_0x526138);return _0x5aaa9c[_0x2e43('0x1d')]({'label':_0x62ba3c(_0x526138,_0x2e43('0x1c')),'withText':!0x0,'tooltip':!0x0}),_0x5aaa9c[_0x2e43('0x17')]('isEnabled')['to'](_0x4620bb[_0x2e43('0x18')][_0x2e43('0x1')](_0x2e43('0x19'))),this[_0x2e43('0x2')](_0x5aaa9c,'execute',()=>_0x4620bb['execute'](_0x2e43('0x19'))),_0x5aaa9c;}),_0x4620bb['ui']['componentFactory']['add'](_0x2e43('0x12'),_0x2f1602=>{const _0x42a11d=new _0x4fb869(_0x2f1602),_0x25b7ab=_0x4620bb[_0x2e43('0x18')]['get']('showPreviousChange'),_0x4ac891=_0x4620bb[_0x2e43('0x18')]['get'](_0x2e43('0x8'));return _0x42a11d['bind'](_0x2e43('0x4'))['to'](_0x25b7ab,_0x2e43('0x3')),_0x42a11d['bind']('isForwardNavigationEnabled')['to'](_0x4ac891,_0x2e43('0x3')),_0x42a11d[_0x2e43('0x17')](_0x2e43('0x6'),_0x2e43('0xe'),_0x2e43('0xc'),'isNavigationMode')['to'](_0x5e17da),this[_0x2e43('0x2')](_0x42a11d,_0x2e43('0x5'),(_0x34f963,_0x4dcb20)=>{_0x4620bb[_0x2e43('0x5')](_0x2e43('0xb')===_0x4dcb20?_0x2e43('0x8'):_0x2e43('0xf'));}),_0x42a11d;}),_0x51f9b9[_0x2e43('0x10')](),_0x5e17da['on']('change:isReady',(_0x650c2,_0x2cfaf5,_0x545898)=>{_0x545898?_0x51f9b9[_0x2e43('0xa')]():_0x51f9b9['show']();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x191701,_0x180e28,_0x5f180b){const t=_0x191701['t'];switch(_0x180e28){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'},_0x5f180b);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5f180b);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 _0x180e28;}}
23
+ export function getTranslation(_0x129950,_0x5e082f,_0x25fe49){const t=_0x129950['t'];switch(_0x5e082f){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'},_0x25fe49);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x25fe49);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 _0x5e082f;}}