@ckeditor/ckeditor5-revision-history 38.0.0-rc.1 → 38.0.1

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 _0x2875=['RevisionHistoryUI','isReadOnly','editing','Save\x20current\x20revision','bind','cancel','view','Revision\x20history','isOpen','componentFactory','isEnabled','editor','config','length','saveButtonView','get','remove','plugins','execute','add','revisionHistory','panelView','RevisionTracker','Open\x20revision\x20history','render','set','change:isOpen','pluginName','focus','children','requires','showRevisionViewerCallback','isReady'];(function(_0x4ea64d,_0x2875fd){const _0x408d0c=function(_0x2188ad){while(--_0x2188ad){_0x4ea64d['push'](_0x4ea64d['shift']());}};_0x408d0c(++_0x2875fd);}(_0x2875,0x1ae));const _0x408d=function(_0x4ea64d,_0x2875fd){_0x4ea64d=_0x4ea64d-0x0;let _0x408d0c=_0x2875[_0x4ea64d];return _0x408d0c;};import{Plugin as _0x58b580}from'ckeditor5/src/core';import{ListView as _0xb91485,ListItemView as _0x3cec79,ButtonView as _0x1b1415,createDropdown as _0x1c5d86}from'ckeditor5/src/ui';import _0x44fa14 from'../../revisiontracker';import _0x5410d5 from'./revisionhistorysaverevisionformview';import _0x2087ab from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x90a9c2}from'../../utils/common-translations';export default class u extends _0x58b580{static get[_0x408d('0x1a')](){return _0x408d('0x20');}static get[_0x408d('0x1d')](){return[_0x44fa14];}['init'](){const _0x1d3e09=this[_0x408d('0xa')],_0x4ad954=_0x1d3e09[_0x408d('0x10')][_0x408d('0xe')](_0x408d('0x15'));_0x1d3e09['ui'][_0x408d('0x8')][_0x408d('0x12')]('revisionHistory',_0x2c247e=>{const _0x1a83fa=_0x1c5d86(_0x2c247e),_0x509189=_0x1a83fa[_0x408d('0x14')]['children'],_0x34a802=new _0xb91485(_0x2c247e),_0x1e0681=new _0x3cec79(_0x2c247e),_0x298f1a=new _0x1b1415(_0x2c247e),_0x3632f6=new _0x3cec79(_0x2c247e),_0x4a1f69=new _0x1b1415(_0x2c247e),_0x231510=new _0x5410d5(_0x2c247e);function _0x11f253(){_0x509189[_0x408d('0xc')]&&_0x509189[_0x408d('0xf')](0x0),_0x509189[_0x408d('0x12')](_0x34a802);}function _0x459f50(){_0x1a83fa[_0x408d('0x7')]=!0x1,_0x1d3e09[_0x408d('0x1')][_0x408d('0x5')]['focus']();}return _0x1a83fa[_0x408d('0x3')](_0x408d('0x9'))['to'](_0x4ad954,'isReady',_0x4ad954,_0x408d('0x9'),_0x1d3e09,_0x408d('0x0'),(_0x38d9dc,_0xde4ece,_0x517c88)=>_0x38d9dc&&_0xde4ece&&!_0x517c88),_0x1a83fa['buttonView'][_0x408d('0x18')]({'icon':_0x2087ab,'label':_0x90a9c2(_0x2c247e,_0x408d('0x6')),'tooltip':!0x0}),_0x298f1a[_0x408d('0x18')]({'label':_0x90a9c2(_0x2c247e,_0x408d('0x2')),'withText':!0x0}),_0x298f1a['bind'](_0x408d('0x9'))['to'](_0x4ad954,_0x408d('0x1f'),_0x4ad954,_0x408d('0x9'),_0x1d3e09,'isReadOnly',(_0x1df262,_0x3b2a4b,_0xc7f273)=>_0x1df262&&_0x3b2a4b&&!_0xc7f273),_0x298f1a['on'](_0x408d('0x11'),()=>function(){_0x509189[_0x408d('0xc')]&&_0x509189['remove'](0x0),(_0x231510['reset'](),_0x509189[_0x408d('0x12')](_0x231510),_0x231510[_0x408d('0x1b')]());}()),_0x4a1f69['set']({'label':_0x90a9c2(_0x2c247e,_0x408d('0x16')),'withText':!0x0}),_0x4a1f69['bind'](_0x408d('0x9'))['to'](_0x4ad954,_0x408d('0x1f'),_0x1d3e09,_0x408d('0x0'),(_0x1134d4,_0x1e64ba)=>_0x1134d4&&!_0x1e64ba),_0x4a1f69['on'](_0x408d('0x11'),()=>{_0x1d3e09[_0x408d('0xb')][_0x408d('0xe')](_0x408d('0x13'))[_0x408d('0x1e')](),_0x459f50();}),_0x1e0681[_0x408d('0x1c')][_0x408d('0x12')](_0x298f1a),_0x3632f6['children']['add'](_0x4a1f69),_0x34a802['items']['addMany']([_0x1e0681,_0x3632f6]),_0x1a83fa['on'](_0x408d('0x19'),()=>_0x11f253()),_0x231510[_0x408d('0xd')][_0x408d('0x3')](_0x408d('0x9'))['to'](_0x4ad954,'isReady',_0x4ad954,'isEnabled',_0x1d3e09,_0x408d('0x0'),(_0x5c0171,_0x5cfec6,_0x3e0e5c)=>_0x5c0171&&_0x5cfec6&&!_0x3e0e5c),_0x231510['on']('submit',()=>(_0x1d3e09[_0x408d('0x10')][_0x408d('0xe')](_0x44fa14)['saveRevision']({'name':_0x231510['revisionName']}),void _0x459f50())),_0x231510['on'](_0x408d('0x4'),()=>_0x11f253()),_0x231510[_0x408d('0x17')](),_0x11f253(),_0x1a83fa;});}}
23
+ const _0x3745=['reset','panelView','length','remove','isReadOnly','children','execute','plugins','pluginName','isOpen','get','saveRevision','config','render','items','editor','bind','focus','RevisionHistoryUI','add','change:isOpen','buttonView','Save\x20current\x20revision','isEnabled','cancel','componentFactory','isReady','set'];(function(_0x4eac47,_0x37452d){const _0x339d8d=function(_0x374931){while(--_0x374931){_0x4eac47['push'](_0x4eac47['shift']());}};_0x339d8d(++_0x37452d);}(_0x3745,0x1ae));const _0x339d=function(_0x4eac47,_0x37452d){_0x4eac47=_0x4eac47-0x0;let _0x339d8d=_0x3745[_0x4eac47];return _0x339d8d;};import{Plugin as _0xdd5764}from'ckeditor5/src/core';import{ListView as _0x2766e7,ListItemView as _0x424890,ButtonView as _0x2bd73d,createDropdown as _0x1494e3}from'ckeditor5/src/ui';import _0x190153 from'../../revisiontracker';import _0xdf11b4 from'./revisionhistorysaverevisionformview';import _0x21fc36 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x4fe23a}from'../../utils/common-translations';export default class u extends _0xdd5764{static get[_0x339d('0x1a')](){return _0x339d('0x8');}static get['requires'](){return[_0x190153];}['init'](){const _0x19c47b=this[_0x339d('0x5')],_0x3583f0=_0x19c47b[_0x339d('0x19')][_0x339d('0x0')]('RevisionTracker');_0x19c47b['ui'][_0x339d('0xf')]['add']('revisionHistory',_0x20e06e=>{const _0x5f1f86=_0x1494e3(_0x20e06e),_0x3142ac=_0x5f1f86[_0x339d('0x13')][_0x339d('0x17')],_0x21abee=new _0x2766e7(_0x20e06e),_0x5e7e86=new _0x424890(_0x20e06e),_0x1eac8f=new _0x2bd73d(_0x20e06e),_0x4cbf58=new _0x424890(_0x20e06e),_0x2eab58=new _0x2bd73d(_0x20e06e),_0x154faf=new _0xdf11b4(_0x20e06e);function _0x5026b3(){_0x3142ac[_0x339d('0x14')]&&_0x3142ac[_0x339d('0x15')](0x0),_0x3142ac[_0x339d('0x9')](_0x21abee);}function _0x4d1023(){_0x5f1f86[_0x339d('0x1b')]=!0x1,_0x19c47b['editing']['view'][_0x339d('0x7')]();}return _0x5f1f86[_0x339d('0x6')](_0x339d('0xd'))['to'](_0x3583f0,_0x339d('0x10'),_0x3583f0,_0x339d('0xd'),_0x19c47b,_0x339d('0x16'),(_0x5b97e4,_0x3aea53,_0x6fd477)=>_0x5b97e4&&_0x3aea53&&!_0x6fd477),_0x5f1f86[_0x339d('0xb')][_0x339d('0x11')]({'icon':_0x21fc36,'label':_0x4fe23a(_0x20e06e,'Revision\x20history'),'tooltip':!0x0}),_0x1eac8f[_0x339d('0x11')]({'label':_0x4fe23a(_0x20e06e,_0x339d('0xc')),'withText':!0x0}),_0x1eac8f[_0x339d('0x6')](_0x339d('0xd'))['to'](_0x3583f0,_0x339d('0x10'),_0x3583f0,_0x339d('0xd'),_0x19c47b,'isReadOnly',(_0x4831a8,_0x5d2e0f,_0x290f3f)=>_0x4831a8&&_0x5d2e0f&&!_0x290f3f),_0x1eac8f['on']('execute',()=>function(){_0x3142ac[_0x339d('0x14')]&&_0x3142ac['remove'](0x0),(_0x154faf[_0x339d('0x12')](),_0x3142ac['add'](_0x154faf),_0x154faf[_0x339d('0x7')]());}()),_0x2eab58[_0x339d('0x11')]({'label':_0x4fe23a(_0x20e06e,'Open\x20revision\x20history'),'withText':!0x0}),_0x2eab58['bind']('isEnabled')['to'](_0x3583f0,_0x339d('0x10'),_0x19c47b,'isReadOnly',(_0x2a17a0,_0x313689)=>_0x2a17a0&&!_0x313689),_0x2eab58['on'](_0x339d('0x18'),()=>{_0x19c47b[_0x339d('0x2')][_0x339d('0x0')]('revisionHistory')['showRevisionViewerCallback'](),_0x4d1023();}),_0x5e7e86[_0x339d('0x17')][_0x339d('0x9')](_0x1eac8f),_0x4cbf58[_0x339d('0x17')][_0x339d('0x9')](_0x2eab58),_0x21abee[_0x339d('0x4')]['addMany']([_0x5e7e86,_0x4cbf58]),_0x5f1f86['on'](_0x339d('0xa'),()=>_0x5026b3()),_0x154faf['saveButtonView'][_0x339d('0x6')](_0x339d('0xd'))['to'](_0x3583f0,'isReady',_0x3583f0,_0x339d('0xd'),_0x19c47b,_0x339d('0x16'),(_0x28ce0e,_0x332b7c,_0x59fc99)=>_0x28ce0e&&_0x332b7c&&!_0x59fc99),_0x154faf['on']('submit',()=>(_0x19c47b['plugins'][_0x339d('0x0')](_0x190153)[_0x339d('0x1')]({'name':_0x154faf['revisionName']}),void _0x4d1023())),_0x154faf['on'](_0x339d('0xe'),()=>_0x5026b3()),_0x154faf[_0x339d('0x3')](),_0x5026b3(),_0x5f1f86;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x29f8=['plugins','listenTo','isVisible','compare','length','getRevisionsInDiff','action','getIndex','bind','_revisionViewer','diff','revisionHistory.revisionActions','newRevisionId','Restore\x20this\x20revision','name','add','repository','assign','revisionHistory.viewerSidebarContainer','map','get','getEarlierVisibleRevision','_handleRevisionSelected','_revisionsRepository','_handleEditorDataReady','fieldView','highlightRevisions','isEnabled','defaultRevisionActions','restoreRevision','Compare\x20against\x20selected','render','isSelected','destroy','setName','pluginName','editor','_createRevisionActions','revisionViews','getRevision','_handleRevisionSetName','revisionHistory','select','element','restoreRevisionCallback','revisionSelected','_revisions','ready','Name\x20this\x20revision','change:diff','remove','compareAgainstSelected','init','getLaterVisibleRevision','isReady','_sidebarView','config','selectRevision','availableRevisionActions'];(function(_0x14246f,_0x29f85b){const _0x54f649=function(_0x298e87){while(--_0x298e87){_0x14246f['push'](_0x14246f['shift']());}};_0x54f649(++_0x29f85b);}(_0x29f8,0xb8));const _0x54f6=function(_0x14246f,_0x29f85b){_0x14246f=_0x14246f-0x0;let _0x54f649=_0x29f8[_0x14246f];return _0x54f649;};import{Plugin as _0x24c043}from'ckeditor5/src/core';import _0x10bac9 from'./revisionssidebarview';import _0x7d1db0 from'../../revisionviewer';export default class d extends _0x24c043{static get[_0x54f6('0x1c')](){return'RevisionsSidebar';}static get['requires'](){return[_0x7d1db0];}constructor(_0x37396d){super(_0x37396d),this[_0x54f6('0x2')]=_0x37396d[_0x54f6('0x34')][_0x54f6('0xd')](_0x7d1db0),this[_0x54f6('0x10')]=this[_0x54f6('0x2')]['repository'],this[_0x54f6('0x30')]=null;}[_0x54f6('0x2d')](){const _0x27bd3a=this[_0x54f6('0x10')][_0x54f6('0x27')],_0x1dfd6d=this[_0x54f6('0x1e')](),_0x2c23b1=this[_0x54f6('0x1d')]['config']['get'](_0x54f6('0xb'));this[_0x54f6('0x30')]=new _0x10bac9(this[_0x54f6('0x1d')]['locale'],_0x27bd3a,_0x1dfd6d),this[_0x54f6('0x30')]['on'](_0x54f6('0x26'),this[_0x54f6('0xf')][_0x54f6('0x1')](this)),this[_0x54f6('0x30')]['on']('revisionSetName',this[_0x54f6('0x21')]['bind'](this)),this[_0x54f6('0x30')]['bind'](_0x54f6('0x14'))['to'](this[_0x54f6('0x2')]),this[_0x54f6('0x30')]['timePeriodViews']['on'](_0x54f6('0x8'),(_0x4a4583,_0x3ab7fb)=>{_0x3ab7fb[_0x54f6('0x1f')]['on'](_0x54f6('0x8'),(_0x55c49a,_0x4241b1)=>{_0x4241b1['bind'](_0x54f6('0x14'),_0x54f6('0x2f'))['to'](this[_0x54f6('0x2')]);});}),this[_0x54f6('0x30')][_0x54f6('0x18')](),this[_0x54f6('0x35')](this[_0x54f6('0x1d')]['data'],_0x54f6('0x28'),this[_0x54f6('0x11')][_0x54f6('0x1')](this)),this['listenTo'](this['_revisionViewer'],_0x54f6('0x2a'),this['_handleDiffChange'][_0x54f6('0x1')](this)),_0x2c23b1['appendChild'](this[_0x54f6('0x30')]['element']);}[_0x54f6('0x1a')](){this['_sidebarView'][_0x54f6('0x24')][_0x54f6('0x2b')](),this[_0x54f6('0x30')][_0x54f6('0x1a')]();}[_0x54f6('0x11')](){const _0x230c82=this[_0x54f6('0x10')][_0x54f6('0x20')](0x0);if(_0x230c82){const _0xb59ea0=this[_0x54f6('0x10')][_0x54f6('0xe')](_0x230c82['id']);this[_0x54f6('0x2')][_0x54f6('0x37')](_0x230c82,_0xb59ea0);}}[_0x54f6('0xf')](_0x2188e0,_0x2bd431){const _0x1cf105=this[_0x54f6('0x10')][_0x54f6('0x20')](_0x2bd431['id']),_0x493863=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1cf105['id']);this[_0x54f6('0x2')][_0x54f6('0x37')](_0x1cf105,_0x493863);}['_handleRevisionSetName'](_0x28b9a1,_0x51d1dc){this[_0x54f6('0x10')][_0x54f6('0x20')](_0x51d1dc['id'])[_0x54f6('0x1b')](_0x51d1dc[_0x54f6('0x7')]);}['_handleDiffChange'](_0x16b20e,_0xd865f0,_0x3a1083){const _0x402bce=this[_0x54f6('0x10')][_0x54f6('0x39')](_0x3a1083);_0x402bce[_0x54f6('0x38')]>0x2?(this['_sidebarView'][_0x54f6('0x13')](_0x402bce),this[_0x54f6('0x30')][_0x54f6('0x32')](null)):(this[_0x54f6('0x30')]['highlightRevisions']([]),this[_0x54f6('0x30')][_0x54f6('0x32')](_0x402bce[0x0]));}[_0x54f6('0x1e')](){const _0x2ec87d=this['editor'],_0x3a6ac0=d[_0x54f6('0x33')],_0xa8984e=_0x2ec87d[_0x54f6('0x31')]['get'](_0x54f6('0x4'))||d[_0x54f6('0x15')];if(_0xa8984e[_0x54f6('0x38')])return _0xa8984e[_0x54f6('0xc')](_0x29a7f5=>{const _0x119e4a='string'==typeof _0x29a7f5?Object[_0x54f6('0xa')]({},_0x3a6ac0[_0x29a7f5]):_0x29a7f5;return _0x119e4a[_0x54f6('0x3a')]=_0x119e4a[_0x54f6('0x3a')][_0x54f6('0x1')](this,_0x2ec87d),_0x119e4a[_0x54f6('0x36')]&&(_0x119e4a['isVisible']=_0x119e4a['isVisible'][_0x54f6('0x1')](this,_0x2ec87d)),_0x119e4a;});}}d[_0x54f6('0x33')]={'compareAgainstSelected':{'name':_0x54f6('0x17'),'action':({plugins:_0x37741a},_0x53b39b)=>{const _0x15b773=_0x37741a[_0x54f6('0xd')](_0x7d1db0),_0x424552=_0x15b773['repository'];let _0x3cfd87=_0x15b773['diff'][_0x54f6('0x5')],_0x599f4e=_0x53b39b['id'];_0x424552[_0x54f6('0x0')](_0x3cfd87)>_0x424552['getIndex'](_0x599f4e)&&([_0x3cfd87,_0x599f4e]=[_0x599f4e,_0x3cfd87]),_0x15b773[_0x54f6('0x37')](_0x3cfd87,_0x599f4e);},'isVisible':({plugins:_0x5b931c},_0x338767)=>{const _0x21fb3a=_0x5b931c[_0x54f6('0xd')](_0x7d1db0);return!(_0x21fb3a[_0x54f6('0x9')][_0x54f6('0x39')](_0x21fb3a[_0x54f6('0x3')])[_0x54f6('0x38')]>0x2)&&!_0x338767[_0x54f6('0x19')];}},'restoreRevision':{'name':_0x54f6('0x6'),'action':(_0x1f34e3,{id:_0x1e68b9})=>{_0x1f34e3[_0x54f6('0x31')]['get'](_0x54f6('0x22'))[_0x54f6('0x25')](_0x1e68b9);},'isVisible':({plugins:_0x17d70b},_0x11026f)=>!!_0x17d70b[_0x54f6('0xd')](_0x7d1db0)[_0x54f6('0x9')][_0x54f6('0x2e')](_0x11026f['id'])},'nameRevision':{'name':_0x54f6('0x29'),'action':({plugins:_0x5f3e8f},{id:_0xcf2e0,revisionNameView:_0x358fc8})=>{const _0x3b92ee=_0x5f3e8f[_0x54f6('0xd')](_0x7d1db0),_0x636523=_0x3b92ee[_0x54f6('0x9')][_0x54f6('0xe')](_0xcf2e0);_0x3b92ee['compare'](_0xcf2e0,_0x636523),_0x358fc8['focus'](),_0x358fc8[_0x54f6('0x12')][_0x54f6('0x23')]();}}},d[_0x54f6('0x15')]=[_0x54f6('0x2c'),_0x54f6('0x16'),'nameRevision'];
23
+ const _0x23e9=['nameRevision','getRevision','restoreRevisionCallback','revisionSelected','editor','add','render','isEnabled','change:diff','fieldView','isSelected','get','selectRevision','length','listenTo','_handleDiffChange','diff','revisionSetName','isVisible','compare','bind','assign','data','element','_handleEditorDataReady','init','requires','config','repository','revisionHistory','plugins','revisionViews','revisionHistory.viewerSidebarContainer','getEarlierVisibleRevision','revisionHistory.revisionActions','setName','_revisions','_revisionsRepository','getIndex','destroy','availableRevisionActions','appendChild','string','select','getRevisionsInDiff','Name\x20this\x20revision','remove','_handleRevisionSelected','newRevisionId','RevisionsSidebar','Compare\x20against\x20selected','highlightRevisions','getLaterVisibleRevision','compareAgainstSelected','name','defaultRevisionActions','pluginName','_createRevisionActions','_sidebarView','Restore\x20this\x20revision','_revisionViewer'];(function(_0x4b86b8,_0x23e9f3){const _0x51a54b=function(_0x56dd39){while(--_0x56dd39){_0x4b86b8['push'](_0x4b86b8['shift']());}};_0x51a54b(++_0x23e9f3);}(_0x23e9,0x1a1));const _0x51a5=function(_0x4b86b8,_0x23e9f3){_0x4b86b8=_0x4b86b8-0x0;let _0x51a54b=_0x23e9[_0x4b86b8];return _0x51a54b;};import{Plugin as _0x4a61ad}from'ckeditor5/src/core';import _0x581670 from'./revisionssidebarview';import _0x40cb07 from'../../revisionviewer';export default class d extends _0x4a61ad{static get[_0x51a5('0x5')](){return _0x51a5('0x3b');}static get[_0x51a5('0x24')](){return[_0x40cb07];}constructor(_0x53e9e0){super(_0x53e9e0),this['_revisionViewer']=_0x53e9e0[_0x51a5('0x28')][_0x51a5('0x15')](_0x40cb07),this['_revisionsRepository']=this['_revisionViewer'][_0x51a5('0x26')],this[_0x51a5('0x7')]=null;}[_0x51a5('0x23')](){const _0x3fef6f=this['_revisionsRepository'][_0x51a5('0x2e')],_0x1ec246=this[_0x51a5('0x6')](),_0x55e982=this[_0x51a5('0xe')][_0x51a5('0x25')]['get'](_0x51a5('0x2a'));this[_0x51a5('0x7')]=new _0x581670(this[_0x51a5('0xe')]['locale'],_0x3fef6f,_0x1ec246),this[_0x51a5('0x7')]['on'](_0x51a5('0xd'),this['_handleRevisionSelected'][_0x51a5('0x1e')](this)),this['_sidebarView']['on'](_0x51a5('0x1b'),this['_handleRevisionSetName']['bind'](this)),this[_0x51a5('0x7')][_0x51a5('0x1e')](_0x51a5('0x11'))['to'](this[_0x51a5('0x9')]),this['_sidebarView']['timePeriodViews']['on'](_0x51a5('0xf'),(_0x276fbb,_0x263d00)=>{_0x263d00[_0x51a5('0x29')]['on'](_0x51a5('0xf'),(_0x37be06,_0x39989b)=>{_0x39989b[_0x51a5('0x1e')]('isEnabled','isReady')['to'](this['_revisionViewer']);});}),this['_sidebarView'][_0x51a5('0x10')](),this['listenTo'](this[_0x51a5('0xe')][_0x51a5('0x20')],'ready',this['_handleEditorDataReady'][_0x51a5('0x1e')](this)),this[_0x51a5('0x18')](this['_revisionViewer'],_0x51a5('0x12'),this[_0x51a5('0x19')][_0x51a5('0x1e')](this)),_0x55e982[_0x51a5('0x33')](this['_sidebarView'][_0x51a5('0x21')]);}[_0x51a5('0x31')](){this[_0x51a5('0x7')]['element'][_0x51a5('0x38')](),this[_0x51a5('0x7')][_0x51a5('0x31')]();}[_0x51a5('0x22')](){const _0x323649=this[_0x51a5('0x2f')][_0x51a5('0xb')](0x0);if(_0x323649){const _0x2db0af=this['_revisionsRepository'][_0x51a5('0x2b')](_0x323649['id']);this['_revisionViewer'][_0x51a5('0x1d')](_0x323649,_0x2db0af);}}[_0x51a5('0x39')](_0x2dfe02,_0x19224d){const _0xe72e5=this[_0x51a5('0x2f')][_0x51a5('0xb')](_0x19224d['id']),_0xfa11da=this[_0x51a5('0x2f')][_0x51a5('0x2b')](_0xe72e5['id']);this['_revisionViewer']['compare'](_0xe72e5,_0xfa11da);}['_handleRevisionSetName'](_0x239c1b,_0xaac9d5){this[_0x51a5('0x2f')][_0x51a5('0xb')](_0xaac9d5['id'])[_0x51a5('0x2d')](_0xaac9d5[_0x51a5('0x3')]);}[_0x51a5('0x19')](_0xea7004,_0x1de4ca,_0x6433ca){const _0x2f4f8d=this[_0x51a5('0x2f')]['getRevisionsInDiff'](_0x6433ca);_0x2f4f8d[_0x51a5('0x17')]>0x2?(this[_0x51a5('0x7')][_0x51a5('0x0')](_0x2f4f8d),this[_0x51a5('0x7')][_0x51a5('0x16')](null)):(this[_0x51a5('0x7')][_0x51a5('0x0')]([]),this['_sidebarView'][_0x51a5('0x16')](_0x2f4f8d[0x0]));}['_createRevisionActions'](){const _0x4705f0=this['editor'],_0x82ff3b=d[_0x51a5('0x32')],_0x4afdea=_0x4705f0[_0x51a5('0x25')][_0x51a5('0x15')](_0x51a5('0x2c'))||d[_0x51a5('0x4')];if(_0x4afdea[_0x51a5('0x17')])return _0x4afdea['map'](_0x47d7db=>{const _0x5d7368=_0x51a5('0x34')==typeof _0x47d7db?Object[_0x51a5('0x1f')]({},_0x82ff3b[_0x47d7db]):_0x47d7db;return _0x5d7368['action']=_0x5d7368['action'][_0x51a5('0x1e')](this,_0x4705f0),_0x5d7368[_0x51a5('0x1c')]&&(_0x5d7368[_0x51a5('0x1c')]=_0x5d7368['isVisible'][_0x51a5('0x1e')](this,_0x4705f0)),_0x5d7368;});}}d[_0x51a5('0x32')]={'compareAgainstSelected':{'name':_0x51a5('0x3c'),'action':({plugins:_0x5e8dae},_0x238f4c)=>{const _0x3dd67a=_0x5e8dae['get'](_0x40cb07),_0x1cae2c=_0x3dd67a[_0x51a5('0x26')];let _0x1465f6=_0x3dd67a['diff'][_0x51a5('0x3a')],_0x451953=_0x238f4c['id'];_0x1cae2c[_0x51a5('0x30')](_0x1465f6)>_0x1cae2c['getIndex'](_0x451953)&&([_0x1465f6,_0x451953]=[_0x451953,_0x1465f6]),_0x3dd67a['compare'](_0x1465f6,_0x451953);},'isVisible':({plugins:_0x5c3d6b},_0x18ff59)=>{const _0x2c05f4=_0x5c3d6b[_0x51a5('0x15')](_0x40cb07);return!(_0x2c05f4[_0x51a5('0x26')][_0x51a5('0x36')](_0x2c05f4[_0x51a5('0x1a')])['length']>0x2)&&!_0x18ff59[_0x51a5('0x14')];}},'restoreRevision':{'name':_0x51a5('0x8'),'action':(_0x32c5ad,{id:_0x86e086})=>{_0x32c5ad[_0x51a5('0x25')][_0x51a5('0x15')](_0x51a5('0x27'))[_0x51a5('0xc')](_0x86e086);},'isVisible':({plugins:_0x21fc36},_0x356178)=>!!_0x21fc36[_0x51a5('0x15')](_0x40cb07)['repository'][_0x51a5('0x1')](_0x356178['id'])},'nameRevision':{'name':_0x51a5('0x37'),'action':({plugins:_0x309e62},{id:_0x5da514,revisionNameView:_0x1b4a3d})=>{const _0x5855d1=_0x309e62[_0x51a5('0x15')](_0x40cb07),_0x4d1292=_0x5855d1[_0x51a5('0x26')][_0x51a5('0x2b')](_0x5da514);_0x5855d1[_0x51a5('0x1d')](_0x5da514,_0x4d1292),_0x1b4a3d['focus'](),_0x1b4a3d[_0x51a5('0x13')][_0x51a5('0x35')]();}}},d[_0x51a5('0x4')]=[_0x51a5('0x2'),'restoreRevision',_0x51a5('0xa')];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4b8f=['span','Revision\x20history','setTemplate','ck-revision-history-sidebar__header__label','div','content','ck-reset_all'];(function(_0x2b33eb,_0x4b8fb8){const _0x5b647e=function(_0x563eb0){while(--_0x563eb0){_0x2b33eb['push'](_0x2b33eb['shift']());}};_0x5b647e(++_0x4b8fb8);}(_0x4b8f,0x119));const _0x5b64=function(_0x2b33eb,_0x4b8fb8){_0x2b33eb=_0x2b33eb-0x0;let _0x5b647e=_0x4b8f[_0x2b33eb];return _0x5b647e;};import{View as _0x4ac558,IconView as _0x3f658a}from'ckeditor5/src/ui';import{getTranslation as _0x515b0b}from'../../utils/common-translations';import _0xc55a80 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x4ac558{constructor(_0x451390){super(_0x451390);const _0x52eb24=new _0x3f658a();_0x52eb24[_0x5b64('0x4')]=_0xc55a80,this[_0x5b64('0x1')]({'tag':_0x5b64('0x3'),'attributes':{'class':['ck',_0x5b64('0x5'),'ck-revision-history-sidebar__header']},'children':[_0x52eb24,{'tag':_0x5b64('0x6'),'attributes':{'class':['ck',_0x5b64('0x2')]},'children':[_0x515b0b(_0x451390,_0x5b64('0x0'))]}]});}}
23
+ const _0x5e78=['content','ck-revision-history-sidebar__header','ck-reset_all','ck-revision-history-sidebar__header__label','div'];(function(_0x35ec76,_0x5e78cb){const _0x514f9b=function(_0x536104){while(--_0x536104){_0x35ec76['push'](_0x35ec76['shift']());}};_0x514f9b(++_0x5e78cb);}(_0x5e78,0x146));const _0x514f=function(_0x35ec76,_0x5e78cb){_0x35ec76=_0x35ec76-0x0;let _0x514f9b=_0x5e78[_0x35ec76];return _0x514f9b;};import{View as _0x47e5df,IconView as _0x2a2a52}from'ckeditor5/src/ui';import{getTranslation as _0x550466}from'../../utils/common-translations';import _0x2f20d1 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x47e5df{constructor(_0x594e8b){super(_0x594e8b);const _0x218852=new _0x2a2a52();_0x218852[_0x514f('0x4')]=_0x2f20d1,this['setTemplate']({'tag':_0x514f('0x3'),'attributes':{'class':['ck',_0x514f('0x1'),_0x514f('0x0')]},'children':[_0x218852,{'tag':'span','attributes':{'class':['ck',_0x514f('0x2')]},'children':[_0x550466(_0x594e8b,'Revision\x20history')]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x522d=['find','uiLanguage','setName','span','div','startDate','remove','delegate','setTemplate','add','ck-revision-history-sidebar__time-period__revisions','revisionViews','locale'];(function(_0x2d01f7,_0x522d78){const _0x53e0bb=function(_0x102781){while(--_0x102781){_0x2d01f7['push'](_0x2d01f7['shift']());}};_0x53e0bb(++_0x522d78);}(_0x522d,0x121));const _0x53e0=function(_0x2d01f7,_0x522d78){_0x2d01f7=_0x2d01f7-0x0;let _0x53e0bb=_0x522d[_0x2d01f7];return _0x53e0bb;};import{View as _0x2bd915}from'ckeditor5/src/ui';import _0xdbe589 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x2c92be}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class ki extends _0x2bd915{constructor(_0x58d6ad,_0x1375dd,_0x4abc73){super(_0x58d6ad);const _0x363339=_0x2c92be(_0x1375dd,this['locale'][_0x53e0('0xb')])['localizedPeriodName'];this[_0x53e0('0x2')]=_0x1375dd,this[_0x53e0('0x8')]=this['createCollection'](),this['_revisionActions']=_0x4abc73,this[_0x53e0('0x8')][_0x53e0('0x4')]('select')['to'](this),this['revisionViews'][_0x53e0('0x4')](_0x53e0('0xc'))['to'](this),this[_0x53e0('0x5')]({'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':_0x53e0('0x0'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x363339}]},{'tag':_0x53e0('0x1'),'attributes':{'class':['ck',_0x53e0('0x7')]},'children':this[_0x53e0('0x8')]}]});}['addRevision'](_0x2755d7){const _0x4adf1c=new _0xdbe589(this[_0x53e0('0x9')],_0x2755d7,this['_revisionActions']);this[_0x53e0('0x8')][_0x53e0('0x6')](_0x4adf1c);}['removeRevision'](_0x3bef64){const _0x252d2f=this['revisionViews'][_0x53e0('0xa')](_0x21d646=>_0x21d646['id']===_0x3bef64['id']);this[_0x53e0('0x8')][_0x53e0('0x3')](_0x252d2f);}}
23
+ const _0x1a48=['_revisionActions','div','remove','revisionViews','find','uiLanguage','ck-revision-history-sidebar__time-period__revisions','ck-revision-history-sidebar__time-period__label','startDate','createCollection','localizedPeriodName','setName','delegate','locale','span','removeRevision','addRevision'];(function(_0x42f893,_0x1a48ce){const _0x85ccdf=function(_0x126746){while(--_0x126746){_0x42f893['push'](_0x42f893['shift']());}};_0x85ccdf(++_0x1a48ce);}(_0x1a48,0x17d));const _0x85cc=function(_0x42f893,_0x1a48ce){_0x42f893=_0x42f893-0x0;let _0x85ccdf=_0x1a48[_0x42f893];return _0x85ccdf;};import{View as _0x1f3dac}from'ckeditor5/src/ui';import _0x568dee from'../revision/revisionview';import{getDateTimePeriodInfo as _0x2b0ec8}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x1f3dac{constructor(_0x44c645,_0xbe39fa,_0x4b6311){super(_0x44c645);const _0xb1d0af=_0x2b0ec8(_0xbe39fa,this[_0x85cc('0x6')][_0x85cc('0xf')])[_0x85cc('0x3')];this[_0x85cc('0x1')]=_0xbe39fa,this[_0x85cc('0xd')]=this[_0x85cc('0x2')](),this[_0x85cc('0xa')]=_0x4b6311,this[_0x85cc('0xd')][_0x85cc('0x5')]('select')['to'](this),this[_0x85cc('0xd')][_0x85cc('0x5')](_0x85cc('0x4'))['to'](this),this['setTemplate']({'tag':_0x85cc('0xb'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':_0x85cc('0x7'),'attributes':{'class':['ck',_0x85cc('0x0')]},'children':[{'text':_0xb1d0af}]},{'tag':_0x85cc('0xb'),'attributes':{'class':['ck',_0x85cc('0x10')]},'children':this[_0x85cc('0xd')]}]});}[_0x85cc('0x9')](_0x36ae7c){const _0x32075d=new _0x568dee(this[_0x85cc('0x6')],_0x36ae7c,this['_revisionActions']);this[_0x85cc('0xd')]['add'](_0x32075d);}[_0x85cc('0x8')](_0x2c4150){const _0x27fc90=this['revisionViews'][_0x85cc('0xe')](_0x4a9063=>_0x4a9063['id']===_0x2c4150['id']);this[_0x85cc('0xd')][_0x85cc('0xc')](_0x27fc90);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x8bb4=['render','revisionSetName','startDate','get','delegate','select','ck-reset','setName','_revisionActions','div','isEnabled','createdAt','flat','timePeriodViews','locale','unhighlight','ck-revision-history-sidebar','createCollection','fire','getTime','remove','add','_getTimePeriodViewByStartDate','ck-rounded-corners','set','revisionViews','_addRevision','ck-revision-history-sidebar__timeline','bindTemplate','_removeRevision','revisionSelected','selectRevision','map','find','deselect','highlightRevisions','some','uiLanguage','_revisions','addRevision'];(function(_0x5a260d,_0x8bb4de){const _0x540b1b=function(_0xac6637){while(--_0xac6637){_0x5a260d['push'](_0x5a260d['shift']());}};_0x540b1b(++_0x8bb4de);}(_0x8bb4,0x1df));const _0x540b=function(_0x5a260d,_0x8bb4de){_0x5a260d=_0x5a260d-0x0;let _0x540b1b=_0x8bb4[_0x5a260d];return _0x540b1b;};import{View as _0x32f84d}from'ckeditor5/src/ui';import _0x4237b1 from'./revisionssidebartimeperiodview';import _0x1f8159 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0xa5aef4}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x32f84d{constructor(_0x53f861,_0x50f67e,_0x54c85f){super(_0x53f861);const _0x527a01=this[_0x540b('0x1d')];this[_0x540b('0xe')]=this[_0x540b('0x12')](),this[_0x540b('0xe')][_0x540b('0x5')](_0x540b('0x6'))['to'](this),this[_0x540b('0xe')][_0x540b('0x5')](_0x540b('0x8'))['to'](this),this[_0x540b('0x27')]=_0x50f67e,this[_0x540b('0x9')]=_0x54c85f,this['on'](_0x540b('0x6'),(_0x4ef844,_0x579f13)=>{this[_0x540b('0x13')](_0x540b('0x1f'),_0x579f13);}),this['on'](_0x540b('0x8'),(_0x9efb30,_0x1fd876)=>{this[_0x540b('0x13')](_0x540b('0x2'),_0x1fd876);}),this[_0x540b('0x19')](_0x540b('0xb'),!0x1),this['setTemplate']({'tag':_0x540b('0xa'),'attributes':{'class':['ck',_0x540b('0x7'),_0x540b('0x18'),_0x540b('0x11')]},'children':[new _0x1f8159(_0x53f861),{'tag':_0x540b('0xa'),'attributes':{'class':['ck',_0x540b('0x1c'),_0x527a01['if'](_0x540b('0xb'),'ck-disabled',_0x18adb1=>!_0x18adb1)]},'children':this[_0x540b('0xe')]}]});}[_0x540b('0x1')](){super[_0x540b('0x1')]();for(const _0x5f0feb of this['_revisions'])this['_addRevision'](_0x5f0feb);this[_0x540b('0x27')]['on'](_0x540b('0x16'),(_0xc87106,_0x5b23db)=>{this[_0x540b('0x1b')](_0x5b23db);}),this[_0x540b('0x27')]['on'](_0x540b('0x15'),(_0xcba005,_0x2e121b)=>{this[_0x540b('0x1e')](_0x2e121b);});}get[_0x540b('0x1a')](){return this[_0x540b('0xe')][_0x540b('0x21')](_0x241ab2=>_0x241ab2[_0x540b('0x1a')][_0x540b('0x21')](_0x5b5cb9=>_0x5b5cb9))[_0x540b('0xd')]();}[_0x540b('0x20')](_0x128b8e){for(const _0xa6a92c of this[_0x540b('0x1a')])_0x128b8e&&_0x128b8e['id']===_0xa6a92c['id']?_0xa6a92c[_0x540b('0x6')]():_0xa6a92c[_0x540b('0x23')]();}[_0x540b('0x24')](_0x2d10c9){for(const _0x51ed5d of this['revisionViews'])_0x2d10c9[_0x540b('0x25')](({id:_0x105407})=>_0x105407===_0x51ed5d['id'])?_0x51ed5d['highlight']():_0x51ed5d[_0x540b('0x10')]();}[_0x540b('0x1b')](_0x3ee97e){const _0x2794db=_0xa5aef4(_0x3ee97e[_0x540b('0xc')],this[_0x540b('0xf')][_0x540b('0x26')])[_0x540b('0x3')];let _0x5edba5=this['timePeriodViews'][_0x540b('0x4')](0x0);_0x5edba5&&_0x5edba5['startDate'][_0x540b('0x14')]()===_0x2794db['getTime']()||(_0x5edba5=new _0x4237b1(this[_0x540b('0xf')],_0x2794db,this[_0x540b('0x9')]),this['timePeriodViews'][_0x540b('0x16')](_0x5edba5)),_0x5edba5[_0x540b('0x0')](_0x3ee97e);}[_0x540b('0x1e')](_0x465f8e){const _0x440d71=_0xa5aef4(_0x465f8e[_0x540b('0xc')],this['locale'][_0x540b('0x26')])['startDate'];this[_0x540b('0x17')](_0x440d71)['removeRevision'](_0x465f8e);}[_0x540b('0x17')](_0x29595c){return this['timePeriodViews'][_0x540b('0x22')](_0x1784d5=>_0x1784d5[_0x540b('0x3')][_0x540b('0x14')]()===_0x29595c['getTime']());}}
23
+ const _0x4555=['ck-disabled','map','_revisions','locale','ck-revision-history-sidebar','_addRevision','highlightRevisions','some','unhighlight','addRevision','_revisionActions','uiLanguage','getTime','flat','ck-reset','revisionSelected','selectRevision','startDate','remove','render','ck-rounded-corners','add','select','revisionSetName','div','setName','createdAt','_removeRevision','fire','ck-revision-history-sidebar__timeline','set','revisionViews','get','timePeriodViews','isEnabled','delegate','deselect','setTemplate'];(function(_0x59dbbf,_0x45558f){const _0x52445f=function(_0x3182e4){while(--_0x3182e4){_0x59dbbf['push'](_0x59dbbf['shift']());}};_0x52445f(++_0x45558f);}(_0x4555,0x1dd));const _0x5244=function(_0x59dbbf,_0x45558f){_0x59dbbf=_0x59dbbf-0x0;let _0x52445f=_0x4555[_0x59dbbf];return _0x52445f;};import{View as _0x301575}from'ckeditor5/src/ui';import _0x5c6497 from'./revisionssidebartimeperiodview';import _0x99ed1 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x116c96}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x301575{constructor(_0x3018b4,_0x4aae0f,_0x1c994f){super(_0x3018b4);const _0x4a88a5=this['bindTemplate'];this[_0x5244('0xc')]=this['createCollection'](),this[_0x5244('0xc')][_0x5244('0xe')]('select')['to'](this),this[_0x5244('0xc')][_0x5244('0xe')](_0x5244('0x4'))['to'](this),this[_0x5244('0x13')]=_0x4aae0f,this[_0x5244('0x1b')]=_0x1c994f,this['on'](_0x5244('0x1'),(_0x1d10fa,_0xbdf4a5)=>{this[_0x5244('0x7')](_0x5244('0x20'),_0xbdf4a5);}),this['on'](_0x5244('0x4'),(_0x152aaf,_0x47f958)=>{this['fire'](_0x5244('0x2'),_0x47f958);}),this[_0x5244('0x9')](_0x5244('0xd'),!0x1),this[_0x5244('0x10')]({'tag':'div','attributes':{'class':['ck',_0x5244('0x1f'),_0x5244('0x25'),_0x5244('0x15')]},'children':[new _0x99ed1(_0x3018b4),{'tag':_0x5244('0x3'),'attributes':{'class':['ck',_0x5244('0x8'),_0x4a88a5['if'](_0x5244('0xd'),_0x5244('0x11'),_0x264ece=>!_0x264ece)]},'children':this[_0x5244('0xc')]}]});}[_0x5244('0x24')](){super[_0x5244('0x24')]();for(const _0x2ed5bf of this[_0x5244('0x13')])this[_0x5244('0x16')](_0x2ed5bf);this[_0x5244('0x13')]['on'](_0x5244('0x0'),(_0x1f8228,_0x57f30a)=>{this['_addRevision'](_0x57f30a);}),this[_0x5244('0x13')]['on'](_0x5244('0x23'),(_0x279951,_0x3c5090)=>{this[_0x5244('0x6')](_0x3c5090);});}get[_0x5244('0xa')](){return this[_0x5244('0xc')][_0x5244('0x12')](_0x749df9=>_0x749df9[_0x5244('0xa')][_0x5244('0x12')](_0x5bea4d=>_0x5bea4d))[_0x5244('0x1e')]();}[_0x5244('0x21')](_0x44ed43){for(const _0x1f94f0 of this[_0x5244('0xa')])_0x44ed43&&_0x44ed43['id']===_0x1f94f0['id']?_0x1f94f0[_0x5244('0x1')]():_0x1f94f0[_0x5244('0xf')]();}[_0x5244('0x17')](_0x7997de){for(const _0x4600ca of this[_0x5244('0xa')])_0x7997de[_0x5244('0x18')](({id:_0x38031d})=>_0x38031d===_0x4600ca['id'])?_0x4600ca['highlight']():_0x4600ca[_0x5244('0x19')]();}[_0x5244('0x16')](_0x2716a6){const _0x4d8be3=_0x116c96(_0x2716a6[_0x5244('0x5')],this[_0x5244('0x14')][_0x5244('0x1c')])[_0x5244('0x22')];let _0x53cd5e=this['timePeriodViews'][_0x5244('0xb')](0x0);_0x53cd5e&&_0x53cd5e[_0x5244('0x22')][_0x5244('0x1d')]()===_0x4d8be3['getTime']()||(_0x53cd5e=new _0x5c6497(this[_0x5244('0x14')],_0x4d8be3,this['_revisionActions']),this[_0x5244('0xc')][_0x5244('0x0')](_0x53cd5e)),_0x53cd5e[_0x5244('0x1a')](_0x2716a6);}['_removeRevision'](_0x322853){const _0x22ae18=_0x116c96(_0x322853['createdAt'],this[_0x5244('0x14')][_0x5244('0x1c')])[_0x5244('0x22')];this['_getTimePeriodViewByStartDate'](_0x22ae18)['removeRevision'](_0x322853);}['_getTimePeriodViewByStartDate'](_0x2189ad){return this['timePeriodViews']['find'](_0x131407=>_0x131407[_0x5244('0x22')][_0x5244('0x1d')]()===_0x2189ad[_0x5244('0x1d')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x15c7=['week','toRelativeCalendar','day','hasSame','monthLong','toJSDate','fromJSDate','year','startOf','setLocale'];(function(_0x540614,_0x15c74e){const _0x4a25c0=function(_0x4796de){while(--_0x4796de){_0x540614['push'](_0x540614['shift']());}};_0x4a25c0(++_0x15c74e);}(_0x15c7,0x1c5));const _0x4a25=function(_0x540614,_0x15c74e){_0x540614=_0x540614-0x0;let _0x4a25c0=_0x15c7[_0x540614];return _0x4a25c0;};import{DateTime as _0x4bbc8b}from'luxon';export function getDateTimePeriodInfo(_0x125abd,_0x4cf1a8){const _0x45ed24=_0x4bbc8b[_0x4a25('0x3')](_0x125abd)[_0x4a25('0x6')](_0x4cf1a8),_0x393680=_0x4bbc8b['local'](),_0x33e05a=_0x393680['minus']({'days':0x1})['startOf']('day');let _0x382c83,_0x2e19ff;return _0x45ed24[_0x4a25('0x0')](_0x393680,_0x4a25('0x9'))?(_0x382c83=_0x45ed24['startOf'](_0x4a25('0x9'))['toJSDate'](),_0x2e19ff=_0x45ed24['toRelativeCalendar']()):_0x45ed24['hasSame'](_0x33e05a,_0x4a25('0x9'))?(_0x382c83=_0x33e05a[_0x4a25('0x2')](),_0x2e19ff=_0x45ed24[_0x4a25('0x8')]()):_0x45ed24['hasSame'](_0x393680,_0x4a25('0x7'))?(_0x382c83=_0x45ed24[_0x4a25('0x5')](_0x4a25('0x7'))[_0x4a25('0x2')](),_0x2e19ff=_0x45ed24['weekdayLong']||''):_0x45ed24[_0x4a25('0x0')](_0x393680,_0x4a25('0x4'))?(_0x382c83=_0x45ed24[_0x4a25('0x5')]('month')[_0x4a25('0x2')](),_0x2e19ff=_0x45ed24[_0x4a25('0x1')]||''):(_0x382c83=_0x45ed24[_0x4a25('0x5')]('year')[_0x4a25('0x2')](),_0x2e19ff=String(_0x45ed24[_0x4a25('0x4')])),{'startDate':_0x382c83,'localizedPeriodName':_0x2e19ff};}
23
+ const _0x1b22=['local','minus','weekdayLong','setLocale','startOf','fromJSDate','toRelativeCalendar','day','toJSDate','week','hasSame','year'];(function(_0x5f05c1,_0x1b2223){const _0x3ecb12=function(_0x456853){while(--_0x456853){_0x5f05c1['push'](_0x5f05c1['shift']());}};_0x3ecb12(++_0x1b2223);}(_0x1b22,0x1f3));const _0x3ecb=function(_0x5f05c1,_0x1b2223){_0x5f05c1=_0x5f05c1-0x0;let _0x3ecb12=_0x1b22[_0x5f05c1];return _0x3ecb12;};import{DateTime as _0x531bf9}from'luxon';export function getDateTimePeriodInfo(_0x3af288,_0x175b25){const _0x2d11b3=_0x531bf9[_0x3ecb('0xa')](_0x3af288)[_0x3ecb('0x8')](_0x175b25),_0x54e297=_0x531bf9[_0x3ecb('0x5')](),_0x3d657f=_0x54e297[_0x3ecb('0x6')]({'days':0x1})[_0x3ecb('0x9')](_0x3ecb('0x0'));let _0x1a42ec,_0x363a6a;return _0x2d11b3[_0x3ecb('0x3')](_0x54e297,_0x3ecb('0x0'))?(_0x1a42ec=_0x2d11b3[_0x3ecb('0x9')]('day')[_0x3ecb('0x1')](),_0x363a6a=_0x2d11b3[_0x3ecb('0xb')]()):_0x2d11b3[_0x3ecb('0x3')](_0x3d657f,_0x3ecb('0x0'))?(_0x1a42ec=_0x3d657f[_0x3ecb('0x1')](),_0x363a6a=_0x2d11b3[_0x3ecb('0xb')]()):_0x2d11b3['hasSame'](_0x54e297,'week')?(_0x1a42ec=_0x2d11b3[_0x3ecb('0x9')](_0x3ecb('0x2'))[_0x3ecb('0x1')](),_0x363a6a=_0x2d11b3[_0x3ecb('0x7')]||''):_0x2d11b3['hasSame'](_0x54e297,_0x3ecb('0x4'))?(_0x1a42ec=_0x2d11b3[_0x3ecb('0x9')]('month')[_0x3ecb('0x1')](),_0x363a6a=_0x2d11b3['monthLong']||''):(_0x1a42ec=_0x2d11b3['startOf'](_0x3ecb('0x4'))[_0x3ecb('0x1')](),_0x363a6a=String(_0x2d11b3['year'])),{'startDate':_0x1a42ec,'localizedPeriodName':_0x363a6a};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3492=['ck-annotation','set','type','ck-revision-change__label','element','_model','isSuggestion','changeId','span','name','add','author','data','focus'];(function(_0x2faf60,_0x3492f7){const _0x538724=function(_0x34ebd3){while(--_0x34ebd3){_0x2faf60['push'](_0x2faf60['shift']());}};_0x538724(++_0x3492f7);}(_0x3492,0x12c));const _0x5387=function(_0x2faf60,_0x3492f7){_0x2faf60=_0x2faf60-0x0;let _0x538724=_0x3492[_0x2faf60];return _0x538724;};import{View as _0x440c07}from'ckeditor5/src/ui';import{getTranslation as _0x7ccdbf}from'../../utils/common-translations';export default class Q extends _0x440c07{constructor(_0x294d55,_0x5e0273){super(_0x294d55),this[_0x5387('0xd')]=_0x5e0273,this[_0x5387('0x1')]=_0x5e0273['id'];const _0x42f631=this['bindTemplate'],_0x358e44=_0x7ccdbf(_0x294d55,_0x5e0273[_0x5387('0x6')][_0x5387('0x0')]?'Suggested\x20by':_0x5387('0x4')==_0x5e0273[_0x5387('0xa')]?'Added\x20by':'Removed\x20by');this[_0x5387('0x9')](_0x5387('0xa'),_0x5e0273[_0x5387('0xa')]),this['setTemplate']({'tag':'div','attributes':{'class':[_0x5387('0x8'),'ck-revision-change',_0x42f631['to']('type',_0x24bf6b=>'ck-revision-change__'+_0x24bf6b)],'tabindex':-0x1},'children':[{'tag':_0x5387('0x2'),'children':[{'tag':_0x5387('0x2'),'attributes':{'class':[_0x5387('0xb')]},'children':[{'text':_0x358e44}]},{'text':'\x20'+_0x5e0273[_0x5387('0x5')][_0x5387('0x3')]}]}]});}['focus'](){this[_0x5387('0xc')][_0x5387('0x7')]();}}
23
+ const _0x2909=['Removed\x20by','isSuggestion','span','ck-revision-change','type','Suggested\x20by','Added\x20by','add','focus','setTemplate','_model','ck-revision-change__','author','ck-annotation','data','div'];(function(_0x2a728e,_0x290951){const _0x5bd050=function(_0xfbae04){while(--_0xfbae04){_0x2a728e['push'](_0x2a728e['shift']());}};_0x5bd050(++_0x290951);}(_0x2909,0x116));const _0x5bd0=function(_0x2a728e,_0x290951){_0x2a728e=_0x2a728e-0x0;let _0x5bd050=_0x2909[_0x2a728e];return _0x5bd050;};import{View as _0x3d46e3}from'ckeditor5/src/ui';import{getTranslation as _0xf4e68c}from'../../utils/common-translations';export default class Q extends _0x3d46e3{constructor(_0x5bd31b,_0x31a3e4){super(_0x5bd31b),this[_0x5bd0('0x4')]=_0x31a3e4,this['changeId']=_0x31a3e4['id'];const _0x3784fd=this['bindTemplate'],_0x139600=_0xf4e68c(_0x5bd31b,_0x31a3e4[_0x5bd0('0x8')][_0x5bd0('0xb')]?_0x5bd0('0xf'):_0x5bd0('0x1')==_0x31a3e4['type']?_0x5bd0('0x0'):_0x5bd0('0xa'));this['set'](_0x5bd0('0xe'),_0x31a3e4[_0x5bd0('0xe')]),this[_0x5bd0('0x3')]({'tag':_0x5bd0('0x9'),'attributes':{'class':[_0x5bd0('0x7'),_0x5bd0('0xd'),_0x3784fd['to']('type',_0x2eb091=>_0x5bd0('0x5')+_0x2eb091)],'tabindex':-0x1},'children':[{'tag':_0x5bd0('0xc'),'children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x139600}]},{'text':'\x20'+_0x31a3e4[_0x5bd0('0x6')]['name']}]}]});}[_0x5bd0('0x2')](){this['element'][_0x5bd0('0x2')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4d48=['backward','div','ck-revision-history-ui__changes-navigation','fire','NUMBER_OF_CHANGES','currentChangeNumber','isBackwardNavigationEnabled','Show\x20next\x20change','X_OF_Y_CHANGES','ck-revision-history-ui__changes-navigation__wrapper','isReady','_statusText','Show\x20previous\x20change','bindTemplate','isNavigationMode','isForwardNavigationEnabled','execute','numberOfChanges','setTemplate','_isStatusLabelVisible','set','ck-revision-history-ui__changes-navigation__navigation','bind','No\x20changes','span','isEnabled'];(function(_0x1676f0,_0x4d487e){const _0xef649a=function(_0x508204){while(--_0x508204){_0x1676f0['push'](_0x1676f0['shift']());}};_0xef649a(++_0x4d487e);}(_0x4d48,0xc2));const _0xef64=function(_0x1676f0,_0x4d487e){_0x1676f0=_0x1676f0-0x0;let _0xef649a=_0x4d48[_0x1676f0];return _0xef649a;};import{View as _0x8a8395,ButtonView as _0x49d37c,ToolbarSeparatorView as _0x59d5f3}from'ckeditor5/src/ui';import{getTranslation as _0x312cb3}from'../../utils/common-translations';import _0x3f4ca8 from'../../../theme/icons/arrow-up.svg';import _0x493ed0 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x8a8395{constructor(_0x4f112d){super(_0x4f112d);const _0x276ccd=this[_0xef64('0x1')],_0x4cc4a9=new _0x49d37c(_0x4f112d),_0x793db2=new _0x49d37c(_0x4f112d);this['set'](_0xef64('0x2'),!0x1),this['set'](_0xef64('0x18'),!0x1),this['set'](_0xef64('0x13'),0x0),this[_0xef64('0x8')](_0xef64('0x5'),0x0),this[_0xef64('0x8')](_0xef64('0x3'),!0x1),this[_0xef64('0x8')](_0xef64('0x14'),!0x1),this[_0xef64('0xa')](_0xef64('0x7'))['to'](this,_0xef64('0x18'),this,_0xef64('0x5'),(_0x3e4599,_0x5467d4)=>_0x3e4599&&_0x5467d4>0x0),this[_0xef64('0xa')]('_statusText')['to'](this,_0xef64('0x18'),this,_0xef64('0x13'),this,_0xef64('0x5'),this,_0xef64('0x2'),(_0x2615ad,_0x4af5f8,_0xa08439,_0x3f9c28)=>{if(!_0x2615ad)return _0x312cb3(_0x4f112d,'Loading...');if(!_0xa08439)return _0x312cb3(_0x4f112d,_0xef64('0xb'));const _0x47a000=_0x312cb3(_0x4f112d,_0xef64('0x12'),_0xa08439);return _0x3f9c28?_0x312cb3(_0x4f112d,_0xef64('0x16'),[_0x4af5f8+0x1,_0xa08439]):_0x47a000;}),_0x4cc4a9[_0xef64('0x8')]({'label':_0x312cb3(_0x4f112d,_0xef64('0x0')),'tooltip':!0x0,'icon':_0x3f4ca8}),_0x793db2[_0xef64('0x8')]({'label':_0x312cb3(_0x4f112d,_0xef64('0x15')),'tooltip':!0x0,'icon':_0x493ed0}),_0x4cc4a9[_0xef64('0xa')](_0xef64('0xd'))['to'](this,_0xef64('0x14')),_0x793db2[_0xef64('0xa')]('isEnabled')['to'](this,_0xef64('0x3')),_0x4cc4a9['on'](_0xef64('0x4'),()=>this[_0xef64('0x11')](_0xef64('0x4'),_0xef64('0xe'))),_0x793db2['on'](_0xef64('0x4'),()=>this[_0xef64('0x11')](_0xef64('0x4'),'forward')),this[_0xef64('0x6')]({'tag':_0xef64('0xf'),'attributes':{'class':['ck','ck-revision-history-ui',_0xef64('0x10')]},'children':[{'tag':_0xef64('0xc'),'attributes':{'class':[_0xef64('0x17')]},'children':[{'tag':_0xef64('0xc'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x276ccd['if'](_0xef64('0x7'),'ck-hidden',_0x1a82d4=>!_0x1a82d4)]},'children':[{'text':_0x276ccd['to'](_0xef64('0x2'),_0x5ad4ad=>_0x5ad4ad?_0x312cb3(_0x4f112d,'EDIT_X_OF_Y_REVISIONS')+':\x20':_0x312cb3(_0x4f112d,'Total')+':\x20')}]},{'text':_0x276ccd['to'](_0xef64('0x19'))}]},new _0x59d5f3(),{'tag':_0xef64('0xf'),'attributes':{'class':[_0xef64('0x9')]},'children':[_0x4cc4a9,_0x793db2]}]});}}
23
+ const _0x9eca=['numberOfChanges','NUMBER_OF_CHANGES','ck-hidden','currentChangeNumber','execute','set','ck-revision-history-ui','span','bind','isEnabled','ck-revision-history-ui__changes-navigation__wrapper','ck-revision-history-ui__changes-navigation__label','isForwardNavigationEnabled','_isStatusLabelVisible','_statusText','bindTemplate','Total','ck-revision-history-ui__changes-navigation','isReady','No\x20changes','X_OF_Y_CHANGES','EDIT_X_OF_Y_REVISIONS','forward','isBackwardNavigationEnabled','Loading...','div','Show\x20previous\x20change','isNavigationMode','fire','ck-revision-history-ui__changes-navigation__navigation'];(function(_0x2898ee,_0x9eca4b){const _0x54e464=function(_0x4ff870){while(--_0x4ff870){_0x2898ee['push'](_0x2898ee['shift']());}};_0x54e464(++_0x9eca4b);}(_0x9eca,0x10e));const _0x54e4=function(_0x2898ee,_0x9eca4b){_0x2898ee=_0x2898ee-0x0;let _0x54e464=_0x9eca[_0x2898ee];return _0x54e464;};import{View as _0x3a1350,ButtonView as _0x273738,ToolbarSeparatorView as _0xc4960b}from'ckeditor5/src/ui';import{getTranslation as _0xaf29f6}from'../../utils/common-translations';import _0x1f08db from'../../../theme/icons/arrow-up.svg';import _0x2d6724 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x3a1350{constructor(_0x34eacf){super(_0x34eacf);const _0x2a8ad1=this[_0x54e4('0xf')],_0x10bbcb=new _0x273738(_0x34eacf),_0x4eea43=new _0x273738(_0x34eacf);this[_0x54e4('0x5')](_0x54e4('0x1b'),!0x1),this[_0x54e4('0x5')](_0x54e4('0x12'),!0x1),this[_0x54e4('0x5')](_0x54e4('0x3'),0x0),this[_0x54e4('0x5')](_0x54e4('0x0'),0x0),this[_0x54e4('0x5')](_0x54e4('0xc'),!0x1),this['set'](_0x54e4('0x17'),!0x1),this[_0x54e4('0x8')](_0x54e4('0xd'))['to'](this,_0x54e4('0x12'),this,_0x54e4('0x0'),(_0x2c1208,_0x367ead)=>_0x2c1208&&_0x367ead>0x0),this[_0x54e4('0x8')](_0x54e4('0xe'))['to'](this,_0x54e4('0x12'),this,_0x54e4('0x3'),this,'numberOfChanges',this,_0x54e4('0x1b'),(_0x4388f1,_0x1daca2,_0x35101d,_0x2dabe0)=>{if(!_0x4388f1)return _0xaf29f6(_0x34eacf,_0x54e4('0x18'));if(!_0x35101d)return _0xaf29f6(_0x34eacf,_0x54e4('0x13'));const _0x586e8b=_0xaf29f6(_0x34eacf,_0x54e4('0x1'),_0x35101d);return _0x2dabe0?_0xaf29f6(_0x34eacf,_0x54e4('0x14'),[_0x1daca2+0x1,_0x35101d]):_0x586e8b;}),_0x10bbcb[_0x54e4('0x5')]({'label':_0xaf29f6(_0x34eacf,_0x54e4('0x1a')),'tooltip':!0x0,'icon':_0x1f08db}),_0x4eea43[_0x54e4('0x5')]({'label':_0xaf29f6(_0x34eacf,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2d6724}),_0x10bbcb[_0x54e4('0x8')](_0x54e4('0x9'))['to'](this,_0x54e4('0x17')),_0x4eea43['bind']('isEnabled')['to'](this,_0x54e4('0xc')),_0x10bbcb['on'](_0x54e4('0x4'),()=>this[_0x54e4('0x1c')](_0x54e4('0x4'),'backward')),_0x4eea43['on'](_0x54e4('0x4'),()=>this[_0x54e4('0x1c')]('execute',_0x54e4('0x16'))),this['setTemplate']({'tag':_0x54e4('0x19'),'attributes':{'class':['ck',_0x54e4('0x6'),_0x54e4('0x11')]},'children':[{'tag':'span','attributes':{'class':[_0x54e4('0xa')]},'children':[{'tag':_0x54e4('0x7'),'attributes':{'class':[_0x54e4('0xb'),_0x2a8ad1['if'](_0x54e4('0xd'),_0x54e4('0x2'),_0x4c1c53=>!_0x4c1c53)]},'children':[{'text':_0x2a8ad1['to'](_0x54e4('0x1b'),_0x3a3dca=>_0x3a3dca?_0xaf29f6(_0x34eacf,_0x54e4('0x15'))+':\x20':_0xaf29f6(_0x34eacf,_0x54e4('0x10'))+':\x20')}]},{'text':_0x2a8ad1['to']('_statusText')}]},new _0xc4960b(),{'tag':_0x54e4('0x19'),'attributes':{'class':[_0x54e4('0x1d')]},'children':[_0x10bbcb,_0x4eea43]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4c83=['addClass','pluginName','roots','RevisionViewerLoadingOverlay','change','show','editor','view','document','editing','removeClass','ck-editor__editable__loading-overlay','hide'];(function(_0x372116,_0x4c8362){const _0x92bff5=function(_0x2cb113){while(--_0x2cb113){_0x372116['push'](_0x372116['shift']());}};_0x92bff5(++_0x4c8362);}(_0x4c83,0x14b));const _0x92bf=function(_0x372116,_0x4c8362){_0x372116=_0x372116-0x0;let _0x92bff5=_0x4c83[_0x372116];return _0x92bff5;};import{Plugin as _0x41a466}from'ckeditor5/src/core';const ee=_0x92bf('0x5');import'../../../theme/revisionviewerloadingoverlay.css';export default class oe extends _0x41a466{static get[_0x92bf('0x8')](){return _0x92bf('0xa');}[_0x92bf('0xc')](){const _0x24a5d9=this[_0x92bf('0x0')][_0x92bf('0x3')][_0x92bf('0x1')];_0x24a5d9[_0x92bf('0xb')](_0x2008bc=>{for(const _0x35183b of _0x24a5d9[_0x92bf('0x2')][_0x92bf('0x9')])_0x2008bc[_0x92bf('0x7')](ee,_0x35183b);});}[_0x92bf('0x6')](){const _0x13495d=this['editor'][_0x92bf('0x3')][_0x92bf('0x1')];_0x13495d[_0x92bf('0xb')](_0x5bd233=>{for(const _0x232b91 of _0x13495d[_0x92bf('0x2')][_0x92bf('0x9')])_0x5bd233[_0x92bf('0x4')](ee,_0x232b91);});}}
23
+ const _0x4011=['document','editor','removeClass','view','editing','roots','change','show','addClass','RevisionViewerLoadingOverlay','ck-editor__editable__loading-overlay','pluginName'];(function(_0x112163,_0x40119b){const _0x45dddd=function(_0x560d71){while(--_0x560d71){_0x112163['push'](_0x112163['shift']());}};_0x45dddd(++_0x40119b);}(_0x4011,0xab));const _0x45dd=function(_0x112163,_0x40119b){_0x112163=_0x112163-0x0;let _0x45dddd=_0x4011[_0x112163];return _0x45dddd;};import{Plugin as _0x661059}from'ckeditor5/src/core';const oe=_0x45dd('0x7');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x661059{static get[_0x45dd('0x8')](){return _0x45dd('0x6');}[_0x45dd('0x4')](){const _0x447da4=this['editor'][_0x45dd('0x1')][_0x45dd('0x0')];_0x447da4[_0x45dd('0x3')](_0x4d7f64=>{for(const _0x5a8198 of _0x447da4[_0x45dd('0x9')][_0x45dd('0x2')])_0x4d7f64[_0x45dd('0x5')](oe,_0x5a8198);});}['hide'](){const _0x1132b3=this[_0x45dd('0xa')][_0x45dd('0x1')]['view'];_0x1132b3[_0x45dd('0x3')](_0x53434c=>{for(const _0x19ebcf of _0x1132b3['document'][_0x45dd('0x2')])_0x53434c[_0x45dd('0xb')](oe,_0x19ebcf);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xa5c8=['hide','plugins','isEnabled','pluginName','componentFactory','isReady','add','listenTo','exitToEditing','changesNavigation','isForwardNavigationEnabled','revisionHistory','showPreviousChange','get','Restore\x20this\x20revision','bind','editor','show','restoreRevision','isBackwardNavigationEnabled','showNextChange','change:isReady','forward','config','isNavigationMode','init','currentChangeNumber','closeRevisionViewerCallback','commands','execute','ck-revision-history-ui__back-to-editing'];(function(_0xadc8a2,_0xa5c8c5){const _0x20dcda=function(_0x341f5c){while(--_0x341f5c){_0xadc8a2['push'](_0xadc8a2['shift']());}};_0x20dcda(++_0xa5c8c5);}(_0xa5c8,0x91));const _0x20dc=function(_0xadc8a2,_0xa5c8c5){_0xadc8a2=_0xadc8a2-0x0;let _0x20dcda=_0xa5c8[_0xadc8a2];return _0x20dcda;};import{Plugin as _0x3161a7}from'ckeditor5/src/core';import{ButtonView as _0x16c1f0}from'ckeditor5/src/ui';import _0x5c141f from'./changesnavigationview';import _0x156c0e from'./../../revisionviewer';import _0x15a81c from'./revisionviewerloadingoverlay';import{getTranslation as _0x3aba82}from'../../utils/common-translations';import _0x35da04 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class y extends _0x3161a7{static get[_0x20dc('0xd')](){return'RevisionViewerUI';}static get['requires'](){return[_0x156c0e,_0x15a81c];}[_0x20dc('0x4')](){const _0x18ea42=this[_0x20dc('0x1a')],_0x819cd7=_0x18ea42[_0x20dc('0xb')][_0x20dc('0x17')](_0x156c0e),_0x2ebe82=_0x18ea42['plugins'][_0x20dc('0x17')](_0x15a81c);_0x18ea42['ui'][_0x20dc('0xe')]['add'](_0x20dc('0x12'),_0x560130=>{const _0x4184d8=new _0x16c1f0(_0x560130);return _0x4184d8['set']({'label':_0x3aba82(_0x560130,'Back\x20to\x20editing'),'icon':_0x35da04,'withText':!0x0,'tooltip':!0x0,'class':_0x20dc('0x9')}),this[_0x20dc('0x11')](_0x4184d8,_0x20dc('0x8'),()=>{_0x18ea42[_0x20dc('0x2')][_0x20dc('0x17')](_0x20dc('0x15'))[_0x20dc('0x6')]();}),_0x4184d8;}),_0x18ea42['ui'][_0x20dc('0xe')][_0x20dc('0x10')](_0x20dc('0x1c'),_0x1d286a=>{const _0x51d769=new _0x16c1f0(_0x1d286a);return _0x51d769['set']({'label':_0x3aba82(_0x1d286a,_0x20dc('0x18')),'withText':!0x0,'tooltip':!0x0}),_0x51d769['bind']('isEnabled')['to'](_0x18ea42['commands'][_0x20dc('0x17')](_0x20dc('0x1c'))),this['listenTo'](_0x51d769,_0x20dc('0x8'),()=>_0x18ea42['execute'](_0x20dc('0x1c'))),_0x51d769;}),_0x18ea42['ui'][_0x20dc('0xe')]['add'](_0x20dc('0x13'),_0x20a3b2=>{const _0x1184f2=new _0x5c141f(_0x20a3b2),_0x19e01a=_0x18ea42['commands'][_0x20dc('0x17')](_0x20dc('0x16')),_0xac50c=_0x18ea42[_0x20dc('0x7')][_0x20dc('0x17')](_0x20dc('0x1e'));return _0x1184f2['bind'](_0x20dc('0x1d'))['to'](_0x19e01a,_0x20dc('0xc')),_0x1184f2['bind'](_0x20dc('0x14'))['to'](_0xac50c,'isEnabled'),_0x1184f2[_0x20dc('0x19')](_0x20dc('0xf'),_0x20dc('0x5'),'numberOfChanges',_0x20dc('0x3'))['to'](_0x819cd7),this[_0x20dc('0x11')](_0x1184f2,_0x20dc('0x8'),(_0x151adb,_0x48879d)=>{_0x18ea42[_0x20dc('0x8')](_0x20dc('0x1')===_0x48879d?_0x20dc('0x1e'):_0x20dc('0x16'));}),_0x1184f2;}),_0x2ebe82[_0x20dc('0x1b')](),_0x819cd7['on'](_0x20dc('0x0'),(_0x4af4ad,_0x32c41a,_0x244279)=>{_0x244279?_0x2ebe82[_0x20dc('0xa')]():_0x2ebe82['show']();});}}
23
+ const _0x35e2=['currentChangeNumber','isReady','listenTo','commands','isForwardNavigationEnabled','closeRevisionViewerCallback','revisionHistory','set','restoreRevision','numberOfChanges','componentFactory','plugins','hide','showNextChange','Restore\x20this\x20revision','get','execute','changesNavigation','requires','show','forward','isNavigationMode','ck-revision-history-ui__back-to-editing','isEnabled','showPreviousChange','bind','add','exitToEditing'];(function(_0xaf2fae,_0x35e20e){const _0x3d828f=function(_0x2cf24b){while(--_0x2cf24b){_0xaf2fae['push'](_0xaf2fae['shift']());}};_0x3d828f(++_0x35e20e);}(_0x35e2,0x92));const _0x3d82=function(_0xaf2fae,_0x35e20e){_0xaf2fae=_0xaf2fae-0x0;let _0x3d828f=_0x35e2[_0xaf2fae];return _0x3d828f;};import{Plugin as _0xcc1cf8}from'ckeditor5/src/core';import{ButtonView as _0xe37a73}from'ckeditor5/src/ui';import _0x5148f3 from'./changesnavigationview';import _0xc04be5 from'./../../revisionviewer';import _0x472a8f from'./revisionviewerloadingoverlay';import{getTranslation as _0x28de80}from'../../utils/common-translations';import _0x4207bc from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class y extends _0xcc1cf8{static get['pluginName'](){return'RevisionViewerUI';}static get[_0x3d82('0xc')](){return[_0xc04be5,_0x472a8f];}['init'](){const _0x38aa8e=this['editor'],_0x2a0933=_0x38aa8e[_0x3d82('0x5')][_0x3d82('0x9')](_0xc04be5),_0x2927ba=_0x38aa8e[_0x3d82('0x5')][_0x3d82('0x9')](_0x472a8f);_0x38aa8e['ui'][_0x3d82('0x4')][_0x3d82('0x14')](_0x3d82('0x15'),_0x3ada84=>{const _0x147ddb=new _0xe37a73(_0x3ada84);return _0x147ddb[_0x3d82('0x1')]({'label':_0x28de80(_0x3ada84,'Back\x20to\x20editing'),'icon':_0x4207bc,'withText':!0x0,'tooltip':!0x0,'class':_0x3d82('0x10')}),this['listenTo'](_0x147ddb,_0x3d82('0xa'),()=>{_0x38aa8e['config']['get'](_0x3d82('0x0'))[_0x3d82('0x1b')]();}),_0x147ddb;}),_0x38aa8e['ui'][_0x3d82('0x4')][_0x3d82('0x14')](_0x3d82('0x2'),_0xe832a2=>{const _0x10ec56=new _0xe37a73(_0xe832a2);return _0x10ec56['set']({'label':_0x28de80(_0xe832a2,_0x3d82('0x8')),'withText':!0x0,'tooltip':!0x0}),_0x10ec56[_0x3d82('0x13')](_0x3d82('0x11'))['to'](_0x38aa8e[_0x3d82('0x19')][_0x3d82('0x9')](_0x3d82('0x2'))),this[_0x3d82('0x18')](_0x10ec56,_0x3d82('0xa'),()=>_0x38aa8e[_0x3d82('0xa')]('restoreRevision')),_0x10ec56;}),_0x38aa8e['ui'][_0x3d82('0x4')][_0x3d82('0x14')](_0x3d82('0xb'),_0x3c3581=>{const _0x2a2539=new _0x5148f3(_0x3c3581),_0x15e9ac=_0x38aa8e['commands'][_0x3d82('0x9')](_0x3d82('0x12')),_0x2cfbc1=_0x38aa8e['commands'][_0x3d82('0x9')](_0x3d82('0x7'));return _0x2a2539[_0x3d82('0x13')]('isBackwardNavigationEnabled')['to'](_0x15e9ac,_0x3d82('0x11')),_0x2a2539[_0x3d82('0x13')](_0x3d82('0x1a'))['to'](_0x2cfbc1,_0x3d82('0x11')),_0x2a2539[_0x3d82('0x13')](_0x3d82('0x17'),_0x3d82('0x16'),_0x3d82('0x3'),_0x3d82('0xf'))['to'](_0x2a0933),this[_0x3d82('0x18')](_0x2a2539,_0x3d82('0xa'),(_0x34970e,_0x400fa4)=>{_0x38aa8e[_0x3d82('0xa')](_0x3d82('0xe')===_0x400fa4?_0x3d82('0x7'):'showPreviousChange');}),_0x2a2539;}),_0x2927ba[_0x3d82('0xd')](),_0x2a0933['on']('change:isReady',(_0x805f83,_0x58349e,_0x363559)=>{_0x363559?_0x2927ba[_0x3d82('0x6')]():_0x2927ba['show']();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x174c8a,_0x5f4670,_0x49e50d){const t=_0x174c8a['t'];switch(_0x5f4670){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'},_0x49e50d);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x49e50d);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 _0x5f4670;}}
23
+ export function getTranslation(_0x5ea8cd,_0x414ae9,_0x206bba){const t=_0x5ea8cd['t'];switch(_0x414ae9){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'},_0x206bba);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x206bba);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 _0x414ae9;}}