@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20240130.0 → 0.0.0-nightly-20240131.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 +5 -5
  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 _0x39de=['addMany','remove','isOpen','isEnabled','revisionHistory','componentFactory','set','get','saveButtonView','length','editor','Open\x20revision\x20history','RevisionHistoryUI','RevisionTracker','panelView','bind','isReadOnly','plugins','cancel','render','items','config','requires','isReady','children','init','execute','submit','Revision\x20history','editing','add','focus'];(function(_0x46e100,_0x39dece){const _0x1e511c=function(_0x15765f){while(--_0x15765f){_0x46e100['push'](_0x46e100['shift']());}};_0x1e511c(++_0x39dece);}(_0x39de,0x18e));const _0x1e51=function(_0x46e100,_0x39dece){_0x46e100=_0x46e100-0x0;let _0x1e511c=_0x39de[_0x46e100];return _0x1e511c;};import{Plugin as _0x27de58,icons as _0x4771a9}from'ckeditor5/src/core.js';import{ListView as _0x6a8020,ListItemView as _0xf457c4,ButtonView as _0x5527ed,createDropdown as _0x5d0d0e}from'ckeditor5/src/ui.js';import _0x22d5d3 from'../../revisiontracker.js';import _0x5d2900 from'./revisionhistorysaverevisionformview.js';import{getTranslation as _0x57d7e9}from'../../utils/common-translations.js';export default class u extends _0x27de58{static get['pluginName'](){return _0x1e51('0x1e');}static get[_0x1e51('0x8')](){return[_0x22d5d3];}[_0x1e51('0xb')](){const _0x637971=this[_0x1e51('0x1c')],_0x46f8aa=_0x637971[_0x1e51('0x3')][_0x1e51('0x19')](_0x1e51('0x1f'));_0x637971['ui'][_0x1e51('0x17')][_0x1e51('0x10')](_0x1e51('0x16'),_0x23c144=>{const _0x7ffc3f=_0x5d0d0e(_0x23c144),_0x1e0c22=_0x7ffc3f[_0x1e51('0x0')][_0x1e51('0xa')],_0x1c6b50=new _0x6a8020(_0x23c144),_0x380196=new _0xf457c4(_0x23c144),_0x6d567d=new _0x5527ed(_0x23c144),_0x1338a5=new _0xf457c4(_0x23c144),_0x436816=new _0x5527ed(_0x23c144),_0x526fb3=new _0x5d2900(_0x23c144);function _0x3a47ee(){_0x1e0c22[_0x1e51('0x1b')]&&_0x1e0c22[_0x1e51('0x13')](0x0),_0x1e0c22[_0x1e51('0x10')](_0x1c6b50);}function _0x3b530d(){_0x7ffc3f[_0x1e51('0x14')]=!0x1,_0x637971[_0x1e51('0xf')]['view'][_0x1e51('0x11')]();}return _0x7ffc3f[_0x1e51('0x1')](_0x1e51('0x15'))['to'](_0x46f8aa,_0x1e51('0x9'),_0x46f8aa,_0x1e51('0x15'),_0x637971,_0x1e51('0x2'),(_0x4a7a15,_0x45b29b,_0x55eb04)=>_0x4a7a15&&_0x45b29b&&!_0x55eb04),_0x7ffc3f['buttonView'][_0x1e51('0x18')]({'icon':_0x4771a9['history'],'label':_0x57d7e9(_0x23c144,_0x1e51('0xe')),'tooltip':!0x0}),_0x6d567d[_0x1e51('0x18')]({'label':_0x57d7e9(_0x23c144,'Save\x20current\x20revision'),'withText':!0x0}),_0x6d567d[_0x1e51('0x1')]('isEnabled')['to'](_0x46f8aa,_0x1e51('0x9'),_0x46f8aa,_0x1e51('0x15'),_0x637971,_0x1e51('0x2'),(_0x3c7aaf,_0x354cfd,_0x559ab5)=>_0x3c7aaf&&_0x354cfd&&!_0x559ab5),_0x6d567d['on'](_0x1e51('0xc'),()=>function(){_0x1e0c22[_0x1e51('0x1b')]&&_0x1e0c22[_0x1e51('0x13')](0x0),(_0x526fb3['reset'](),_0x1e0c22[_0x1e51('0x10')](_0x526fb3),_0x526fb3[_0x1e51('0x11')]());}()),_0x436816['set']({'label':_0x57d7e9(_0x23c144,_0x1e51('0x1d')),'withText':!0x0}),_0x436816[_0x1e51('0x1')]('isEnabled')['to'](_0x46f8aa,_0x1e51('0x9'),_0x637971,'isReadOnly',(_0x1adac8,_0x215554)=>_0x1adac8&&!_0x215554),_0x436816['on']('execute',()=>{_0x637971[_0x1e51('0x7')][_0x1e51('0x19')](_0x1e51('0x16'))['showRevisionViewerCallback'](),_0x3b530d();}),_0x380196[_0x1e51('0xa')][_0x1e51('0x10')](_0x6d567d),_0x1338a5[_0x1e51('0xa')][_0x1e51('0x10')](_0x436816),_0x1c6b50[_0x1e51('0x6')][_0x1e51('0x12')]([_0x380196,_0x1338a5]),_0x7ffc3f['on']('change:isOpen',()=>_0x3a47ee()),_0x526fb3[_0x1e51('0x1a')][_0x1e51('0x1')](_0x1e51('0x15'))['to'](_0x46f8aa,_0x1e51('0x9'),_0x46f8aa,_0x1e51('0x15'),_0x637971,'isReadOnly',(_0x862771,_0x525e14,_0x17005f)=>_0x862771&&_0x525e14&&!_0x17005f),_0x526fb3['on'](_0x1e51('0xd'),()=>(_0x637971[_0x1e51('0x3')][_0x1e51('0x19')](_0x22d5d3)['saveRevision']({'name':_0x526fb3['revisionName']}),void _0x3b530d())),_0x526fb3['on'](_0x1e51('0x4'),()=>_0x3a47ee()),_0x526fb3[_0x1e51('0x5')](),_0x3a47ee(),_0x7ffc3f;});}}
23
+ const _0x4f46=['panelView','RevisionHistoryUI','revisionName','init','items','bind','saveButtonView','cancel','Save\x20current\x20revision','execute','remove','set','Open\x20revision\x20history','add','isEnabled','addMany','get','buttonView','view','isReady','length','showRevisionViewerCallback','config','submit','revisionHistory','RevisionTracker','isOpen','isReadOnly','Revision\x20history','reset','requires','plugins','change:isOpen','editing','focus','history'];(function(_0x4e27c5,_0x4f460a){const _0x20d773=function(_0x5a88a7){while(--_0x5a88a7){_0x4e27c5['push'](_0x4e27c5['shift']());}};_0x20d773(++_0x4f460a);}(_0x4f46,0x1ac));const _0x20d7=function(_0x4e27c5,_0x4f460a){_0x4e27c5=_0x4e27c5-0x0;let _0x20d773=_0x4f46[_0x4e27c5];return _0x20d773;};import{Plugin as _0x5edd13,icons as _0x30e272}from'ckeditor5/src/core.js';import{ListView as _0x45542e,ListItemView as _0x5ab524,ButtonView as _0x55e087,createDropdown as _0x355c72}from'ckeditor5/src/ui.js';import _0x3af54e from'../../revisiontracker.js';import _0x9ed97c from'./revisionhistorysaverevisionformview.js';import{getTranslation as _0x47447b}from'../../utils/common-translations.js';export default class u extends _0x5edd13{static get['pluginName'](){return _0x20d7('0x5');}static get[_0x20d7('0x22')](){return[_0x3af54e];}[_0x20d7('0x7')](){const _0x396326=this['editor'],_0x5b5ee2=_0x396326[_0x20d7('0x23')][_0x20d7('0x14')](_0x20d7('0x1d'));_0x396326['ui']['componentFactory']['add']('revisionHistory',_0x3a6da1=>{const _0x3d2b16=_0x355c72(_0x3a6da1),_0x35f8aa=_0x3d2b16[_0x20d7('0x4')]['children'],_0x4b5b30=new _0x45542e(_0x3a6da1),_0x3a46a7=new _0x5ab524(_0x3a6da1),_0x28dc60=new _0x55e087(_0x3a6da1),_0xe8ac94=new _0x5ab524(_0x3a6da1),_0x429798=new _0x55e087(_0x3a6da1),_0x34546e=new _0x9ed97c(_0x3a6da1);function _0xb78251(){_0x35f8aa[_0x20d7('0x18')]&&_0x35f8aa[_0x20d7('0xe')](0x0),_0x35f8aa[_0x20d7('0x11')](_0x4b5b30);}function _0x5db4f1(){_0x3d2b16[_0x20d7('0x1e')]=!0x1,_0x396326[_0x20d7('0x1')][_0x20d7('0x16')][_0x20d7('0x2')]();}return _0x3d2b16['bind'](_0x20d7('0x12'))['to'](_0x5b5ee2,_0x20d7('0x17'),_0x5b5ee2,_0x20d7('0x12'),_0x396326,_0x20d7('0x1f'),(_0xbe120b,_0x3c794e,_0xb9bf92)=>_0xbe120b&&_0x3c794e&&!_0xb9bf92),_0x3d2b16[_0x20d7('0x15')][_0x20d7('0xf')]({'icon':_0x30e272[_0x20d7('0x3')],'label':_0x47447b(_0x3a6da1,_0x20d7('0x20')),'tooltip':!0x0}),_0x28dc60[_0x20d7('0xf')]({'label':_0x47447b(_0x3a6da1,_0x20d7('0xc')),'withText':!0x0}),_0x28dc60[_0x20d7('0x9')](_0x20d7('0x12'))['to'](_0x5b5ee2,_0x20d7('0x17'),_0x5b5ee2,_0x20d7('0x12'),_0x396326,_0x20d7('0x1f'),(_0x37ba16,_0x47fee1,_0x236f47)=>_0x37ba16&&_0x47fee1&&!_0x236f47),_0x28dc60['on']('execute',()=>function(){_0x35f8aa['length']&&_0x35f8aa[_0x20d7('0xe')](0x0),(_0x34546e[_0x20d7('0x21')](),_0x35f8aa[_0x20d7('0x11')](_0x34546e),_0x34546e[_0x20d7('0x2')]());}()),_0x429798[_0x20d7('0xf')]({'label':_0x47447b(_0x3a6da1,_0x20d7('0x10')),'withText':!0x0}),_0x429798['bind'](_0x20d7('0x12'))['to'](_0x5b5ee2,_0x20d7('0x17'),_0x396326,'isReadOnly',(_0xf96fc0,_0x449f54)=>_0xf96fc0&&!_0x449f54),_0x429798['on'](_0x20d7('0xd'),()=>{_0x396326[_0x20d7('0x1a')][_0x20d7('0x14')](_0x20d7('0x1c'))[_0x20d7('0x19')](),_0x5db4f1();}),_0x3a46a7['children'][_0x20d7('0x11')](_0x28dc60),_0xe8ac94['children'][_0x20d7('0x11')](_0x429798),_0x4b5b30[_0x20d7('0x8')][_0x20d7('0x13')]([_0x3a46a7,_0xe8ac94]),_0x3d2b16['on'](_0x20d7('0x0'),()=>_0xb78251()),_0x34546e[_0x20d7('0xa')][_0x20d7('0x9')](_0x20d7('0x12'))['to'](_0x5b5ee2,'isReady',_0x5b5ee2,_0x20d7('0x12'),_0x396326,_0x20d7('0x1f'),(_0x5e7bab,_0x4f9a7e,_0x4e0350)=>_0x5e7bab&&_0x4f9a7e&&!_0x4e0350),_0x34546e['on'](_0x20d7('0x1b'),()=>(_0x396326[_0x20d7('0x23')][_0x20d7('0x14')](_0x3af54e)['saveRevision']({'name':_0x34546e[_0x20d7('0x6')]}),void _0x5db4f1())),_0x34546e['on'](_0x20d7('0xb'),()=>_0xb78251()),_0x34546e['render'](),_0xb78251(),_0x3d2b16;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2c07=['isEnabled','listenTo','isVisible','element','config','revisionSetName','compareAgainstSelected','getRevision','_handleRevisionSetName','map','revisionHistory.viewerSidebarContainer','length','locale','timePeriodViews','setName','get','isSelected','availableRevisionActions','_sidebarView','highlightRevisions','change:diff','revisionHistory.revisionActions','plugins','Name\x20this\x20revision','selectRevision','bind','fieldView','pluginName','revisionSelected','assign','name','_revisionsRepository','diff','restoreRevisionCallback','data','revisionViews','Restore\x20this\x20revision','focus','_handleRevisionSelected','action','compare','_revisions','appendChild','requires','getEarlierVisibleRevision','getRevisionsInDiff','destroy','init','repository','_createRevisionActions','defaultRevisionActions','ready','getIndex','_revisionViewer','remove','editor','_handleEditorDataReady','add','_handleDiffChange'];(function(_0x55f0e7,_0x2c0701){const _0x1ad253=function(_0x17314f){while(--_0x17314f){_0x55f0e7['push'](_0x55f0e7['shift']());}};_0x1ad253(++_0x2c0701);}(_0x2c07,0x1cd));const _0x1ad2=function(_0x55f0e7,_0x2c0701){_0x55f0e7=_0x55f0e7-0x0;let _0x1ad253=_0x2c07[_0x55f0e7];return _0x1ad253;};import{Plugin as _0x4b0185}from'ckeditor5/src/core.js';import _0x19b2e6 from'./revisionssidebarview.js';import _0x53370c from'../../revisionviewer.js';export default class w extends _0x4b0185{static get[_0x1ad2('0x26')](){return'RevisionsSidebar';}static get[_0x1ad2('0x36')](){return[_0x53370c];}constructor(_0x43cc5e){super(_0x43cc5e),this[_0x1ad2('0x5')]=_0x43cc5e[_0x1ad2('0x21')][_0x1ad2('0x1a')](_0x53370c),this['_revisionsRepository']=this[_0x1ad2('0x5')][_0x1ad2('0x0')],this[_0x1ad2('0x1d')]=null;}[_0x1ad2('0x3a')](){const _0xe6779f=this[_0x1ad2('0x2a')][_0x1ad2('0x34')],_0x488ad2=this[_0x1ad2('0x1')](),_0x778268=this[_0x1ad2('0x7')][_0x1ad2('0xf')][_0x1ad2('0x1a')](_0x1ad2('0x15'));this[_0x1ad2('0x1d')]=new _0x19b2e6(this[_0x1ad2('0x7')][_0x1ad2('0x17')],_0xe6779f,_0x488ad2),this[_0x1ad2('0x1d')]['on'](_0x1ad2('0x27'),this[_0x1ad2('0x31')][_0x1ad2('0x24')](this)),this[_0x1ad2('0x1d')]['on'](_0x1ad2('0x10'),this[_0x1ad2('0x13')][_0x1ad2('0x24')](this)),this[_0x1ad2('0x1d')][_0x1ad2('0x24')](_0x1ad2('0xb'))['to'](this[_0x1ad2('0x5')]),this[_0x1ad2('0x1d')][_0x1ad2('0x18')]['on']('add',(_0xffd045,_0x6e87f7)=>{_0x6e87f7[_0x1ad2('0x2e')]['on'](_0x1ad2('0x9'),(_0x483710,_0x66de4d)=>{_0x66de4d[_0x1ad2('0x24')]('isEnabled','isReady')['to'](this[_0x1ad2('0x5')]);});}),this[_0x1ad2('0x1d')]['render'](),this[_0x1ad2('0xc')](this[_0x1ad2('0x7')][_0x1ad2('0x2d')],_0x1ad2('0x3'),this[_0x1ad2('0x8')][_0x1ad2('0x24')](this)),this['listenTo'](this[_0x1ad2('0x5')],_0x1ad2('0x1f'),this[_0x1ad2('0xa')][_0x1ad2('0x24')](this)),_0x778268[_0x1ad2('0x35')](this['_sidebarView'][_0x1ad2('0xe')]);}['destroy'](){this['_sidebarView']['element'][_0x1ad2('0x6')](),this[_0x1ad2('0x1d')][_0x1ad2('0x39')]();}[_0x1ad2('0x8')](){const _0x596cc6=this['_revisionsRepository'][_0x1ad2('0x12')](0x0);if(_0x596cc6){const _0x4415f4=this[_0x1ad2('0x2a')]['getEarlierVisibleRevision'](_0x596cc6['id']);this[_0x1ad2('0x5')]['compare'](_0x596cc6,_0x4415f4);}}[_0x1ad2('0x31')](_0x351534,_0x4b87e6){const _0x3dd20f=this[_0x1ad2('0x2a')][_0x1ad2('0x12')](_0x4b87e6['id']),_0x1358ea=this[_0x1ad2('0x2a')][_0x1ad2('0x37')](_0x3dd20f['id']);this[_0x1ad2('0x5')]['compare'](_0x3dd20f,_0x1358ea);}['_handleRevisionSetName'](_0x92920c,_0x13c840){this[_0x1ad2('0x2a')][_0x1ad2('0x12')](_0x13c840['id'])[_0x1ad2('0x19')](_0x13c840[_0x1ad2('0x29')]);}['_handleDiffChange'](_0x593621,_0x30eede,_0x1c0868){const _0x545e5c=this[_0x1ad2('0x2a')][_0x1ad2('0x38')](_0x1c0868);_0x545e5c[_0x1ad2('0x16')]>0x2?(this[_0x1ad2('0x1d')][_0x1ad2('0x1e')](_0x545e5c),this[_0x1ad2('0x1d')]['selectRevision'](null)):(this[_0x1ad2('0x1d')][_0x1ad2('0x1e')]([]),this[_0x1ad2('0x1d')][_0x1ad2('0x23')](_0x545e5c[0x0]));}[_0x1ad2('0x1')](){const _0x976f20=this['editor'],_0xf54a5f=w[_0x1ad2('0x1c')],_0x4ea5e8=_0x976f20[_0x1ad2('0xf')]['get'](_0x1ad2('0x20'))||w[_0x1ad2('0x2')];if(_0x4ea5e8[_0x1ad2('0x16')])return _0x4ea5e8[_0x1ad2('0x14')](_0x4dea78=>{const _0x13ab95='string'==typeof _0x4dea78?Object[_0x1ad2('0x28')]({},_0xf54a5f[_0x4dea78]):_0x4dea78;return _0x13ab95[_0x1ad2('0x32')]=_0x13ab95[_0x1ad2('0x32')][_0x1ad2('0x24')](this,_0x976f20),_0x13ab95[_0x1ad2('0xd')]&&(_0x13ab95[_0x1ad2('0xd')]=_0x13ab95[_0x1ad2('0xd')][_0x1ad2('0x24')](this,_0x976f20)),_0x13ab95;});}}w[_0x1ad2('0x1c')]={'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x5c4104},_0x1e6c67)=>{const _0x16a5ce=_0x5c4104[_0x1ad2('0x1a')](_0x53370c),_0x460b4d=_0x16a5ce[_0x1ad2('0x0')];let _0x1324c8=_0x16a5ce[_0x1ad2('0x2b')]['newRevisionId'],_0xabdc39=_0x1e6c67['id'];_0x460b4d['getIndex'](_0x1324c8)>_0x460b4d[_0x1ad2('0x4')](_0xabdc39)&&([_0x1324c8,_0xabdc39]=[_0xabdc39,_0x1324c8]),_0x16a5ce[_0x1ad2('0x33')](_0x1324c8,_0xabdc39);},'isVisible':({plugins:_0x404830},_0x1ddb46)=>{const _0x2be819=_0x404830[_0x1ad2('0x1a')](_0x53370c);return!(_0x2be819['repository'][_0x1ad2('0x38')](_0x2be819['diff'])[_0x1ad2('0x16')]>0x2)&&!_0x1ddb46[_0x1ad2('0x1b')];}},'restoreRevision':{'name':_0x1ad2('0x2f'),'action':(_0x2f6958,{id:_0x5e6bc3})=>{_0x2f6958['config'][_0x1ad2('0x1a')]('revisionHistory')[_0x1ad2('0x2c')](_0x5e6bc3);},'isVisible':({plugins:_0x271d89},_0x3786fe)=>!!_0x271d89[_0x1ad2('0x1a')](_0x53370c)[_0x1ad2('0x0')]['getLaterVisibleRevision'](_0x3786fe['id'])},'nameRevision':{'name':_0x1ad2('0x22'),'action':({plugins:_0x23d765},{id:_0xe38dc3,revisionNameView:_0x3bd535})=>{const _0x5e9762=_0x23d765[_0x1ad2('0x1a')](_0x53370c),_0x508542=_0x5e9762[_0x1ad2('0x0')][_0x1ad2('0x37')](_0xe38dc3);_0x5e9762[_0x1ad2('0x33')](_0xe38dc3,_0x508542),_0x3bd535[_0x1ad2('0x30')](),_0x3bd535[_0x1ad2('0x25')]['select']();}}},w[_0x1ad2('0x2')]=[_0x1ad2('0x11'),'restoreRevision','nameRevision'];
23
+ const _0x4a83=['data','editor','repository','Compare\x20against\x20selected','config','revisionSetName','getIndex','isSelected','plugins','diff','compare','get','focus','destroy','_createRevisionActions','getEarlierVisibleRevision','restoreRevisionCallback','listenTo','fieldView','_handleEditorDataReady','restoreRevision','ready','render','action','revisionHistory.viewerSidebarContainer','_handleRevisionSetName','select','revisionSelected','_handleRevisionSelected','defaultRevisionActions','isEnabled','getRevision','add','requires','highlightRevisions','revisionViews','selectRevision','_handleDiffChange','Restore\x20this\x20revision','_sidebarView','element','setName','getRevisionsInDiff','_revisionViewer','bind','_revisionsRepository','RevisionsSidebar','isVisible','appendChild','string','_revisions','isReady','pluginName','length','assign','revisionHistory'];(function(_0x4cde56,_0x4a8387){const _0x58046e=function(_0x1577bc){while(--_0x1577bc){_0x4cde56['push'](_0x4cde56['shift']());}};_0x58046e(++_0x4a8387);}(_0x4a83,0x1a7));const _0x5804=function(_0x4cde56,_0x4a8387){_0x4cde56=_0x4cde56-0x0;let _0x58046e=_0x4a83[_0x4cde56];return _0x58046e;};import{Plugin as _0xbfdfb9}from'ckeditor5/src/core.js';import _0x3d7b35 from'./revisionssidebarview.js';import _0x227349 from'../../revisionviewer.js';export default class w extends _0xbfdfb9{static get[_0x5804('0x15')](){return _0x5804('0xf');}static get[_0x5804('0x2')](){return[_0x227349];}constructor(_0x72fe07){super(_0x72fe07),this['_revisionViewer']=_0x72fe07[_0x5804('0x21')][_0x5804('0x24')](_0x227349),this[_0x5804('0xe')]=this[_0x5804('0xc')][_0x5804('0x1b')],this[_0x5804('0x8')]=null;}['init'](){const _0x243f3c=this[_0x5804('0xe')][_0x5804('0x13')],_0x16edc4=this[_0x5804('0x27')](),_0x1bdb0f=this[_0x5804('0x1a')][_0x5804('0x1d')]['get'](_0x5804('0x31'));this['_sidebarView']=new _0x3d7b35(this[_0x5804('0x1a')]['locale'],_0x243f3c,_0x16edc4),this['_sidebarView']['on'](_0x5804('0x34'),this['_handleRevisionSelected'][_0x5804('0xd')](this)),this[_0x5804('0x8')]['on'](_0x5804('0x1e'),this['_handleRevisionSetName'][_0x5804('0xd')](this)),this['_sidebarView'][_0x5804('0xd')](_0x5804('0x37'))['to'](this['_revisionViewer']),this[_0x5804('0x8')]['timePeriodViews']['on'](_0x5804('0x1'),(_0x5b44ce,_0xcd5cd)=>{_0xcd5cd[_0x5804('0x4')]['on'](_0x5804('0x1'),(_0x1a6e58,_0x435f34)=>{_0x435f34[_0x5804('0xd')]('isEnabled',_0x5804('0x14'))['to'](this['_revisionViewer']);});}),this[_0x5804('0x8')][_0x5804('0x2f')](),this[_0x5804('0x2a')](this[_0x5804('0x1a')][_0x5804('0x19')],_0x5804('0x2e'),this[_0x5804('0x2c')][_0x5804('0xd')](this)),this[_0x5804('0x2a')](this['_revisionViewer'],'change:diff',this['_handleDiffChange']['bind'](this)),_0x1bdb0f[_0x5804('0x11')](this[_0x5804('0x8')]['element']);}[_0x5804('0x26')](){this[_0x5804('0x8')][_0x5804('0x9')]['remove'](),this['_sidebarView']['destroy']();}[_0x5804('0x2c')](){const _0x49e994=this[_0x5804('0xe')]['getRevision'](0x0);if(_0x49e994){const _0x1a5083=this[_0x5804('0xe')][_0x5804('0x28')](_0x49e994['id']);this[_0x5804('0xc')][_0x5804('0x23')](_0x49e994,_0x1a5083);}}[_0x5804('0x35')](_0x2d749a,_0x19a8f0){const _0x160f14=this[_0x5804('0xe')]['getRevision'](_0x19a8f0['id']),_0x1b3891=this[_0x5804('0xe')]['getEarlierVisibleRevision'](_0x160f14['id']);this[_0x5804('0xc')][_0x5804('0x23')](_0x160f14,_0x1b3891);}[_0x5804('0x32')](_0xda8d33,_0x20c968){this[_0x5804('0xe')][_0x5804('0x0')](_0x20c968['id'])[_0x5804('0xa')](_0x20c968['name']);}[_0x5804('0x6')](_0x3fc8ba,_0x3600fb,_0xb47b17){const _0x455c04=this[_0x5804('0xe')][_0x5804('0xb')](_0xb47b17);_0x455c04[_0x5804('0x16')]>0x2?(this['_sidebarView'][_0x5804('0x3')](_0x455c04),this['_sidebarView'][_0x5804('0x5')](null)):(this[_0x5804('0x8')][_0x5804('0x3')]([]),this[_0x5804('0x8')][_0x5804('0x5')](_0x455c04[0x0]));}['_createRevisionActions'](){const _0x3b994c=this[_0x5804('0x1a')],_0x307531=w['availableRevisionActions'],_0x1d162b=_0x3b994c[_0x5804('0x1d')][_0x5804('0x24')]('revisionHistory.revisionActions')||w[_0x5804('0x36')];if(_0x1d162b['length'])return _0x1d162b['map'](_0x3064e6=>{const _0x50ea35=_0x5804('0x12')==typeof _0x3064e6?Object[_0x5804('0x17')]({},_0x307531[_0x3064e6]):_0x3064e6;return _0x50ea35[_0x5804('0x30')]=_0x50ea35['action'][_0x5804('0xd')](this,_0x3b994c),_0x50ea35[_0x5804('0x10')]&&(_0x50ea35[_0x5804('0x10')]=_0x50ea35['isVisible'][_0x5804('0xd')](this,_0x3b994c)),_0x50ea35;});}}w['availableRevisionActions']={'compareAgainstSelected':{'name':_0x5804('0x1c'),'action':({plugins:_0x47d181},_0x51b0c6)=>{const _0x5ba83d=_0x47d181[_0x5804('0x24')](_0x227349),_0x310f5a=_0x5ba83d[_0x5804('0x1b')];let _0x28085d=_0x5ba83d[_0x5804('0x22')]['newRevisionId'],_0x1063b2=_0x51b0c6['id'];_0x310f5a[_0x5804('0x1f')](_0x28085d)>_0x310f5a[_0x5804('0x1f')](_0x1063b2)&&([_0x28085d,_0x1063b2]=[_0x1063b2,_0x28085d]),_0x5ba83d[_0x5804('0x23')](_0x28085d,_0x1063b2);},'isVisible':({plugins:_0x59ebc0},_0x3a29b7)=>{const _0x1c6fb0=_0x59ebc0[_0x5804('0x24')](_0x227349);return!(_0x1c6fb0[_0x5804('0x1b')][_0x5804('0xb')](_0x1c6fb0[_0x5804('0x22')])[_0x5804('0x16')]>0x2)&&!_0x3a29b7[_0x5804('0x20')];}},'restoreRevision':{'name':_0x5804('0x7'),'action':(_0x376b7e,{id:_0x3a6409})=>{_0x376b7e[_0x5804('0x1d')][_0x5804('0x24')](_0x5804('0x18'))[_0x5804('0x29')](_0x3a6409);},'isVisible':({plugins:_0x651dc5},_0x503b1e)=>!!_0x651dc5[_0x5804('0x24')](_0x227349)[_0x5804('0x1b')]['getLaterVisibleRevision'](_0x503b1e['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x4ac333},{id:_0x21a11d,revisionNameView:_0x5bc7b9})=>{const _0x41b48a=_0x4ac333['get'](_0x227349),_0x3bda90=_0x41b48a[_0x5804('0x1b')]['getEarlierVisibleRevision'](_0x21a11d);_0x41b48a[_0x5804('0x23')](_0x21a11d,_0x3bda90),_0x5bc7b9[_0x5804('0x25')](),_0x5bc7b9[_0x5804('0x2b')][_0x5804('0x33')]();}}},w['defaultRevisionActions']=['compareAgainstSelected',_0x5804('0x2d'),'nameRevision'];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3194=['setTemplate','history','div','ck-revision-history-sidebar__header__label','Revision\x20history','ck-reset_all','content','ck-revision-history-sidebar__header'];(function(_0x34dbad,_0x3194c3){const _0x3fb5ce=function(_0x2bab62){while(--_0x2bab62){_0x34dbad['push'](_0x34dbad['shift']());}};_0x3fb5ce(++_0x3194c3);}(_0x3194,0x142));const _0x3fb5=function(_0x34dbad,_0x3194c3){_0x34dbad=_0x34dbad-0x0;let _0x3fb5ce=_0x3194[_0x34dbad];return _0x3fb5ce;};import{View as _0x4756e0,IconView as _0x36d2b3}from'ckeditor5/src/ui.js';import{getTranslation as _0x1018db}from'../../utils/common-translations.js';import{icons as _0x205d5e}from'ckeditor5/src/core.js';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rs extends _0x4756e0{constructor(_0x1845f8){super(_0x1845f8);const _0x43c083=new _0x36d2b3();_0x43c083[_0x3fb5('0x4')]=_0x205d5e[_0x3fb5('0x7')],this[_0x3fb5('0x6')]({'tag':_0x3fb5('0x0'),'attributes':{'class':['ck',_0x3fb5('0x3'),_0x3fb5('0x5')]},'children':[_0x43c083,{'tag':'span','attributes':{'class':['ck',_0x3fb5('0x1')]},'children':[_0x1018db(_0x1845f8,_0x3fb5('0x2'))]}]});}}
23
+ const _0x4b3c=['setTemplate','ck-revision-history-sidebar__header','ck-revision-history-sidebar__header__label','history','span','ck-reset_all','content','div'];(function(_0x1172e1,_0x4b3cd8){const _0x5e8b2e=function(_0x52c992){while(--_0x52c992){_0x1172e1['push'](_0x1172e1['shift']());}};_0x5e8b2e(++_0x4b3cd8);}(_0x4b3c,0xad));const _0x5e8b=function(_0x1172e1,_0x4b3cd8){_0x1172e1=_0x1172e1-0x0;let _0x5e8b2e=_0x4b3c[_0x1172e1];return _0x5e8b2e;};import{View as _0xa1cbcb,IconView as _0x59b93c}from'ckeditor5/src/ui.js';import{getTranslation as _0x509103}from'../../utils/common-translations.js';import{icons as _0x2c67ef}from'ckeditor5/src/core.js';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rs extends _0xa1cbcb{constructor(_0x2f32eb){super(_0x2f32eb);const _0x54cb9a=new _0x59b93c();_0x54cb9a[_0x5e8b('0x1')]=_0x2c67ef[_0x5e8b('0x6')],this[_0x5e8b('0x3')]({'tag':_0x5e8b('0x2'),'attributes':{'class':['ck',_0x5e8b('0x0'),_0x5e8b('0x4')]},'children':[_0x54cb9a,{'tag':_0x5e8b('0x7'),'attributes':{'class':['ck',_0x5e8b('0x5')]},'children':[_0x509103(_0x2f32eb,'Revision\x20history')]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x244e=['div','select','locale','ck-revision-history-sidebar__time-period__revisions','delegate','ck-revision-history-sidebar__time-period','localizedPeriodName','span','setTemplate','startDate','createCollection','_revisionActions','add','remove','revisionViews','addRevision','find'];(function(_0x49b770,_0x244ebb){const _0x31b9db=function(_0x193bc0){while(--_0x193bc0){_0x49b770['push'](_0x49b770['shift']());}};_0x31b9db(++_0x244ebb);}(_0x244e,0x199));const _0x31b9=function(_0x49b770,_0x244ebb){_0x49b770=_0x49b770-0x0;let _0x31b9db=_0x244e[_0x49b770];return _0x31b9db;};import{View as _0x469734}from'ckeditor5/src/ui.js';import _0x27412e from'../revision/revisionview.js';import{getDateTimePeriodInfo as _0x10b7cf}from'./utils.js';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class vi extends _0x469734{constructor(_0x1f90f9,_0xb8649e,_0x4ee2ed){super(_0x1f90f9);const _0x322e6c=_0x10b7cf(_0xb8649e,this[_0x31b9('0x1')]['uiLanguage'])[_0x31b9('0x5')];this[_0x31b9('0x8')]=_0xb8649e,this[_0x31b9('0xd')]=this[_0x31b9('0x9')](),this[_0x31b9('0xa')]=_0x4ee2ed,this[_0x31b9('0xd')][_0x31b9('0x3')](_0x31b9('0x0'))['to'](this),this[_0x31b9('0xd')][_0x31b9('0x3')]('setName')['to'](this),this[_0x31b9('0x7')]({'tag':_0x31b9('0x10'),'attributes':{'class':['ck',_0x31b9('0x4')]},'children':[{'tag':_0x31b9('0x6'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x322e6c}]},{'tag':'div','attributes':{'class':['ck',_0x31b9('0x2')]},'children':this[_0x31b9('0xd')]}]});}[_0x31b9('0xe')](_0x534d16){const _0x339b12=new _0x27412e(this[_0x31b9('0x1')],_0x534d16,this[_0x31b9('0xa')]);this['revisionViews'][_0x31b9('0xb')](_0x339b12);}['removeRevision'](_0x3066f6){const _0x57eaae=this[_0x31b9('0xd')][_0x31b9('0xf')](_0x46b483=>_0x46b483['id']===_0x3066f6['id']);this[_0x31b9('0xd')][_0x31b9('0xc')](_0x57eaae);}}
23
+ const _0x5d67=['setName','ck-revision-history-sidebar__time-period__label','revisionViews','remove','uiLanguage','addRevision','select','createCollection','startDate','delegate','div','localizedPeriodName','add','span','ck-revision-history-sidebar__time-period__revisions','ck-revision-history-sidebar__time-period'];(function(_0x14c127,_0x5d67cf){const _0x321cd8=function(_0xe70ddb){while(--_0xe70ddb){_0x14c127['push'](_0x14c127['shift']());}};_0x321cd8(++_0x5d67cf);}(_0x5d67,0xbb));const _0x321c=function(_0x14c127,_0x5d67cf){_0x14c127=_0x14c127-0x0;let _0x321cd8=_0x5d67[_0x14c127];return _0x321cd8;};import{View as _0x687b61}from'ckeditor5/src/ui.js';import _0x49aae8 from'../revision/revisionview.js';import{getDateTimePeriodInfo as _0x36c8dd}from'./utils.js';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class vi extends _0x687b61{constructor(_0x5d5f63,_0x2c6108,_0x447397){super(_0x5d5f63);const _0x558f43=_0x36c8dd(_0x2c6108,this['locale'][_0x321c('0x9')])[_0x321c('0x0')];this[_0x321c('0xd')]=_0x2c6108,this[_0x321c('0x7')]=this[_0x321c('0xc')](),this['_revisionActions']=_0x447397,this['revisionViews'][_0x321c('0xe')](_0x321c('0xb'))['to'](this),this['revisionViews']['delegate'](_0x321c('0x5'))['to'](this),this['setTemplate']({'tag':_0x321c('0xf'),'attributes':{'class':['ck',_0x321c('0x4')]},'children':[{'tag':_0x321c('0x2'),'attributes':{'class':['ck',_0x321c('0x6')]},'children':[{'text':_0x558f43}]},{'tag':_0x321c('0xf'),'attributes':{'class':['ck',_0x321c('0x3')]},'children':this[_0x321c('0x7')]}]});}[_0x321c('0xa')](_0x2e9d12){const _0x4c3fb6=new _0x49aae8(this['locale'],_0x2e9d12,this['_revisionActions']);this[_0x321c('0x7')][_0x321c('0x1')](_0x4c3fb6);}['removeRevision'](_0x23792d){const _0x216287=this[_0x321c('0x7')]['find'](_0x506a1a=>_0x506a1a['id']===_0x23792d['id']);this[_0x321c('0x7')][_0x321c('0x8')](_0x216287);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb156=['locale','setTemplate','highlightRevisions','div','uiLanguage','delegate','_revisions','addRevision','selectRevision','find','render','createCollection','revisionSetName','ck-rounded-corners','revisionSelected','ck-reset','fire','get','timePeriodViews','removeRevision','_getTimePeriodViewByStartDate','isEnabled','highlight','remove','set','map','revisionViews','setName','deselect','_addRevision','some','getTime','startDate','_revisionActions','ck-revision-history-sidebar__timeline','bindTemplate','_removeRevision','select'];(function(_0x395982,_0xb156fa){const _0x9e5cf7=function(_0x335664){while(--_0x335664){_0x395982['push'](_0x395982['shift']());}};_0x9e5cf7(++_0xb156fa);}(_0xb156,0x155));const _0x9e5c=function(_0x395982,_0xb156fa){_0x395982=_0x395982-0x0;let _0x9e5cf7=_0xb156[_0x395982];return _0x9e5cf7;};import{View as _0xe8b3e2}from'ckeditor5/src/ui.js';import _0x32ab9c from'./revisionssidebartimeperiodview.js';import _0x115e3e from'./revisionssidebarheaderview.js';import{getDateTimePeriodInfo as _0x9de3b9}from'./utils.js';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class di extends _0xe8b3e2{constructor(_0x112883,_0x3b6414,_0x33766a){super(_0x112883);const _0x22aa0e=this[_0x9e5c('0x24')];this['timePeriodViews']=this[_0x9e5c('0xc')](),this[_0x9e5c('0x13')][_0x9e5c('0x6')](_0x9e5c('0x0'))['to'](this),this[_0x9e5c('0x13')]['delegate'](_0x9e5c('0x1c'))['to'](this),this[_0x9e5c('0x7')]=_0x3b6414,this[_0x9e5c('0x22')]=_0x33766a,this['on']('select',(_0x40acff,_0x137a82)=>{this[_0x9e5c('0x11')](_0x9e5c('0xf'),_0x137a82);}),this['on'](_0x9e5c('0x1c'),(_0x581d2c,_0x46a8b1)=>{this['fire'](_0x9e5c('0xd'),_0x46a8b1);}),this[_0x9e5c('0x19')](_0x9e5c('0x16'),!0x1),this[_0x9e5c('0x2')]({'tag':_0x9e5c('0x4'),'attributes':{'class':['ck',_0x9e5c('0x10'),_0x9e5c('0xe'),'ck-revision-history-sidebar']},'children':[new _0x115e3e(_0x112883),{'tag':'div','attributes':{'class':['ck',_0x9e5c('0x23'),_0x22aa0e['if']('isEnabled','ck-disabled',_0x49ddb0=>!_0x49ddb0)]},'children':this[_0x9e5c('0x13')]}]});}[_0x9e5c('0xb')](){super[_0x9e5c('0xb')]();for(const _0x5d4fc2 of this['_revisions'])this['_addRevision'](_0x5d4fc2);this[_0x9e5c('0x7')]['on']('add',(_0x452598,_0x348a49)=>{this['_addRevision'](_0x348a49);}),this[_0x9e5c('0x7')]['on'](_0x9e5c('0x18'),(_0x2fc77c,_0x2305d3)=>{this['_removeRevision'](_0x2305d3);});}get[_0x9e5c('0x1b')](){return this[_0x9e5c('0x13')][_0x9e5c('0x1a')](_0x29396b=>_0x29396b[_0x9e5c('0x1b')][_0x9e5c('0x1a')](_0x4e0496=>_0x4e0496))['flat']();}[_0x9e5c('0x9')](_0x2271e7){for(const _0x4a1b52 of this['revisionViews'])_0x2271e7&&_0x2271e7['id']===_0x4a1b52['id']?_0x4a1b52['select']():_0x4a1b52[_0x9e5c('0x1d')]();}[_0x9e5c('0x3')](_0x188f1a){for(const _0x46aa5d of this[_0x9e5c('0x1b')])_0x188f1a[_0x9e5c('0x1f')](({id:_0x179580})=>_0x179580===_0x46aa5d['id'])?_0x46aa5d[_0x9e5c('0x17')]():_0x46aa5d['unhighlight']();}[_0x9e5c('0x1e')](_0x5e0022){const _0x555b56=_0x9de3b9(_0x5e0022['createdAt'],this[_0x9e5c('0x1')][_0x9e5c('0x5')])[_0x9e5c('0x21')];let _0x344723=this[_0x9e5c('0x13')][_0x9e5c('0x12')](0x0);_0x344723&&_0x344723[_0x9e5c('0x21')][_0x9e5c('0x20')]()===_0x555b56[_0x9e5c('0x20')]()||(_0x344723=new _0x32ab9c(this[_0x9e5c('0x1')],_0x555b56,this[_0x9e5c('0x22')]),this['timePeriodViews']['add'](_0x344723)),_0x344723[_0x9e5c('0x8')](_0x5e0022);}[_0x9e5c('0x25')](_0x3a38fe){const _0x1ac017=_0x9de3b9(_0x3a38fe['createdAt'],this['locale'][_0x9e5c('0x5')])[_0x9e5c('0x21')];this[_0x9e5c('0x15')](_0x1ac017)[_0x9e5c('0x14')](_0x3a38fe);}[_0x9e5c('0x15')](_0x18b0ef){return this[_0x9e5c('0x13')][_0x9e5c('0xa')](_0x34a69b=>_0x34a69b['startDate'][_0x9e5c('0x20')]()===_0x18b0ef[_0x9e5c('0x20')]());}}
23
+ const _0x2dd1=['revisionViews','highlight','select','_revisionActions','locale','get','fire','delegate','render','_removeRevision','_getTimePeriodViewByStartDate','setTemplate','timePeriodViews','startDate','ck-revision-history-sidebar__timeline','addRevision','uiLanguage','getTime','isEnabled','ck-reset','bindTemplate','_addRevision','add','unhighlight','setName','remove','some','ck-rounded-corners','map','set','div','flat','createdAt','removeRevision','ck-revision-history-sidebar','createCollection','ck-disabled','_revisions'];(function(_0x54c9c7,_0x2dd1e7){const _0x189f07=function(_0x47899c){while(--_0x47899c){_0x54c9c7['push'](_0x54c9c7['shift']());}};_0x189f07(++_0x2dd1e7);}(_0x2dd1,0x1c8));const _0x189f=function(_0x54c9c7,_0x2dd1e7){_0x54c9c7=_0x54c9c7-0x0;let _0x189f07=_0x2dd1[_0x54c9c7];return _0x189f07;};import{View as _0x52d296}from'ckeditor5/src/ui.js';import _0x35241e from'./revisionssidebartimeperiodview.js';import _0x9412ba from'./revisionssidebarheaderview.js';import{getDateTimePeriodInfo as _0x2cae2d}from'./utils.js';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class di extends _0x52d296{constructor(_0x4bd0af,_0x295211,_0x5cce33){super(_0x4bd0af);const _0x550295=this[_0x189f('0x14')];this['timePeriodViews']=this[_0x189f('0x23')](),this['timePeriodViews']['delegate'](_0x189f('0x2'))['to'](this),this['timePeriodViews'][_0x189f('0x7')](_0x189f('0x18'))['to'](this),this['_revisions']=_0x295211,this[_0x189f('0x3')]=_0x5cce33,this['on']('select',(_0x35e750,_0x2151d7)=>{this[_0x189f('0x6')]('revisionSelected',_0x2151d7);}),this['on']('setName',(_0x489ae1,_0xbf82ef)=>{this[_0x189f('0x6')]('revisionSetName',_0xbf82ef);}),this[_0x189f('0x1d')]('isEnabled',!0x1),this[_0x189f('0xb')]({'tag':_0x189f('0x1e'),'attributes':{'class':['ck',_0x189f('0x13'),_0x189f('0x1b'),_0x189f('0x22')]},'children':[new _0x9412ba(_0x4bd0af),{'tag':'div','attributes':{'class':['ck',_0x189f('0xe'),_0x550295['if'](_0x189f('0x12'),_0x189f('0x24'),_0x5e84aa=>!_0x5e84aa)]},'children':this['timePeriodViews']}]});}[_0x189f('0x8')](){super[_0x189f('0x8')]();for(const _0x16d71f of this[_0x189f('0x25')])this[_0x189f('0x15')](_0x16d71f);this[_0x189f('0x25')]['on'](_0x189f('0x16'),(_0x3a1db5,_0x3066b9)=>{this[_0x189f('0x15')](_0x3066b9);}),this[_0x189f('0x25')]['on'](_0x189f('0x19'),(_0x1af1a8,_0x1202c3)=>{this['_removeRevision'](_0x1202c3);});}get['revisionViews'](){return this[_0x189f('0xc')][_0x189f('0x1c')](_0xcba101=>_0xcba101[_0x189f('0x0')]['map'](_0x27e0c5=>_0x27e0c5))[_0x189f('0x1f')]();}['selectRevision'](_0x21350e){for(const _0x318410 of this['revisionViews'])_0x21350e&&_0x21350e['id']===_0x318410['id']?_0x318410['select']():_0x318410['deselect']();}['highlightRevisions'](_0x366ac3){for(const _0x476afc of this[_0x189f('0x0')])_0x366ac3[_0x189f('0x1a')](({id:_0x11b3ca})=>_0x11b3ca===_0x476afc['id'])?_0x476afc[_0x189f('0x1')]():_0x476afc[_0x189f('0x17')]();}['_addRevision'](_0x1454b9){const _0x1fa8f6=_0x2cae2d(_0x1454b9[_0x189f('0x20')],this[_0x189f('0x4')][_0x189f('0x10')])[_0x189f('0xd')];let _0x488bb9=this[_0x189f('0xc')][_0x189f('0x5')](0x0);_0x488bb9&&_0x488bb9['startDate'][_0x189f('0x11')]()===_0x1fa8f6[_0x189f('0x11')]()||(_0x488bb9=new _0x35241e(this[_0x189f('0x4')],_0x1fa8f6,this[_0x189f('0x3')]),this[_0x189f('0xc')]['add'](_0x488bb9)),_0x488bb9[_0x189f('0xf')](_0x1454b9);}[_0x189f('0x9')](_0xb0bc8d){const _0x5362f2=_0x2cae2d(_0xb0bc8d['createdAt'],this[_0x189f('0x4')][_0x189f('0x10')])[_0x189f('0xd')];this[_0x189f('0xa')](_0x5362f2)[_0x189f('0x21')](_0xb0bc8d);}[_0x189f('0xa')](_0x9f726c){return this[_0x189f('0xc')]['find'](_0x2da535=>_0x2da535[_0x189f('0xd')][_0x189f('0x11')]()===_0x9f726c[_0x189f('0x11')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ea5=['monthLong','startOf','hasSame','fromJSDate','week','minus','toRelativeCalendar','day','toJSDate','setLocale','year'];(function(_0xb5f0c8,_0x2ea53c){const _0xc45a99=function(_0x47668a){while(--_0x47668a){_0xb5f0c8['push'](_0xb5f0c8['shift']());}};_0xc45a99(++_0x2ea53c);}(_0x2ea5,0x93));const _0xc45a=function(_0xb5f0c8,_0x2ea53c){_0xb5f0c8=_0xb5f0c8-0x0;let _0xc45a99=_0x2ea5[_0xb5f0c8];return _0xc45a99;};import{DateTime as _0x18ee25}from'luxon';export function getDateTimePeriodInfo(_0x24359b,_0x8baa1d){const _0x4abc1e=_0x18ee25[_0xc45a('0xa')](_0x24359b)[_0xc45a('0x5')](_0x8baa1d),_0x5b79db=_0x18ee25['local'](),_0x14e7af=_0x5b79db[_0xc45a('0x1')]({'days':0x1})[_0xc45a('0x8')]('day');let _0x34c76c,_0x24125a;return _0x4abc1e[_0xc45a('0x9')](_0x5b79db,_0xc45a('0x3'))?(_0x34c76c=_0x4abc1e['startOf'](_0xc45a('0x3'))[_0xc45a('0x4')](),_0x24125a=_0x4abc1e['toRelativeCalendar']()):_0x4abc1e[_0xc45a('0x9')](_0x14e7af,_0xc45a('0x3'))?(_0x34c76c=_0x14e7af[_0xc45a('0x4')](),_0x24125a=_0x4abc1e[_0xc45a('0x2')]()):_0x4abc1e[_0xc45a('0x9')](_0x5b79db,_0xc45a('0x0'))?(_0x34c76c=_0x4abc1e[_0xc45a('0x8')]('week')[_0xc45a('0x4')](),_0x24125a=_0x4abc1e['weekdayLong']||''):_0x4abc1e['hasSame'](_0x5b79db,_0xc45a('0x6'))?(_0x34c76c=_0x4abc1e[_0xc45a('0x8')]('month')[_0xc45a('0x4')](),_0x24125a=_0x4abc1e[_0xc45a('0x7')]||''):(_0x34c76c=_0x4abc1e['startOf']('year')[_0xc45a('0x4')](),_0x24125a=String(_0x4abc1e['year'])),{'startDate':_0x34c76c,'localizedPeriodName':_0x24125a};}
23
+ const _0x498a=['weekdayLong','hasSame','minus','year','setLocale','week','toRelativeCalendar','month','monthLong','day','toJSDate','local','fromJSDate','startOf'];(function(_0x3fe91a,_0x498aea){const _0x73995f=function(_0x412fc5){while(--_0x412fc5){_0x3fe91a['push'](_0x3fe91a['shift']());}};_0x73995f(++_0x498aea);}(_0x498a,0x170));const _0x7399=function(_0x3fe91a,_0x498aea){_0x3fe91a=_0x3fe91a-0x0;let _0x73995f=_0x498a[_0x3fe91a];return _0x73995f;};import{DateTime as _0x390fb0}from'luxon';export function getDateTimePeriodInfo(_0x475908,_0x37055e){const _0x212bef=_0x390fb0[_0x7399('0x8')](_0x475908)[_0x7399('0x0')](_0x37055e),_0x361aa8=_0x390fb0[_0x7399('0x7')](),_0x366598=_0x361aa8[_0x7399('0xc')]({'days':0x1})[_0x7399('0x9')](_0x7399('0x5'));let _0x239fcf,_0x3bdf8f;return _0x212bef[_0x7399('0xb')](_0x361aa8,_0x7399('0x5'))?(_0x239fcf=_0x212bef[_0x7399('0x9')](_0x7399('0x5'))[_0x7399('0x6')](),_0x3bdf8f=_0x212bef[_0x7399('0x2')]()):_0x212bef[_0x7399('0xb')](_0x366598,_0x7399('0x5'))?(_0x239fcf=_0x366598[_0x7399('0x6')](),_0x3bdf8f=_0x212bef['toRelativeCalendar']()):_0x212bef[_0x7399('0xb')](_0x361aa8,'week')?(_0x239fcf=_0x212bef[_0x7399('0x9')](_0x7399('0x1'))[_0x7399('0x6')](),_0x3bdf8f=_0x212bef[_0x7399('0xa')]||''):_0x212bef['hasSame'](_0x361aa8,_0x7399('0xd'))?(_0x239fcf=_0x212bef[_0x7399('0x9')](_0x7399('0x3'))['toJSDate'](),_0x3bdf8f=_0x212bef[_0x7399('0x4')]||''):(_0x239fcf=_0x212bef['startOf'](_0x7399('0xd'))[_0x7399('0x6')](),_0x3bdf8f=String(_0x212bef[_0x7399('0xd')])),{'startDate':_0x239fcf,'localizedPeriodName':_0x3bdf8f};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x23c0=['type','name','setTemplate','element','ck-revision-change__','changeId','bindTemplate','_model','isSuggestion','Added\x20by','span','ck-annotation','Suggested\x20by','div','focus'];(function(_0x4c185a,_0x23c024){const _0x4b1ed4=function(_0xda01b5){while(--_0xda01b5){_0x4c185a['push'](_0x4c185a['shift']());}};_0x4b1ed4(++_0x23c024);}(_0x23c0,0x1a3));const _0x4b1e=function(_0x4c185a,_0x23c024){_0x4c185a=_0x4c185a-0x0;let _0x4b1ed4=_0x23c0[_0x4c185a];return _0x4b1ed4;};import{View as _0xc51903}from'ckeditor5/src/ui.js';import{getTranslation as _0x11ca21}from'../../utils/common-translations.js';export default class Z extends _0xc51903{constructor(_0x258a01,_0x5490aa){super(_0x258a01),this[_0x4b1e('0x8')]=_0x5490aa,this[_0x4b1e('0x6')]=_0x5490aa['id'];const _0xe11251=this[_0x4b1e('0x7')],_0x470a15=_0x11ca21(_0x258a01,_0x5490aa['data'][_0x4b1e('0x9')]?_0x4b1e('0xd'):'add'==_0x5490aa['type']?_0x4b1e('0xa'):'Removed\x20by');this['set'](_0x4b1e('0x1'),_0x5490aa[_0x4b1e('0x1')]),this[_0x4b1e('0x3')]({'tag':_0x4b1e('0xe'),'attributes':{'class':[_0x4b1e('0xc'),'ck-revision-change',_0xe11251['to'](_0x4b1e('0x1'),_0x53b3dc=>_0x4b1e('0x5')+_0x53b3dc)],'tabindex':-0x1},'children':[{'tag':_0x4b1e('0xb'),'children':[{'tag':_0x4b1e('0xb'),'attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x470a15}]},{'text':'\x20'+_0x5490aa['author'][_0x4b1e('0x2')]}]}]});}[_0x4b1e('0x0')](){this[_0x4b1e('0x4')][_0x4b1e('0x0')]();}}
23
+ const _0x29f9=['set','ck-annotation','type','isSuggestion','changeId','div','name','span','author','focus','setTemplate','bindTemplate','element','Removed\x20by','ck-revision-change__'];(function(_0x684733,_0x29f925){const _0x806e01=function(_0x5d0fea){while(--_0x5d0fea){_0x684733['push'](_0x684733['shift']());}};_0x806e01(++_0x29f925);}(_0x29f9,0x7f));const _0x806e=function(_0x684733,_0x29f925){_0x684733=_0x684733-0x0;let _0x806e01=_0x29f9[_0x684733];return _0x806e01;};import{View as _0x14e1dc}from'ckeditor5/src/ui.js';import{getTranslation as _0x26c7f3}from'../../utils/common-translations.js';export default class Z extends _0x14e1dc{constructor(_0x54ad8b,_0x2245eb){super(_0x54ad8b),this['_model']=_0x2245eb,this[_0x806e('0xc')]=_0x2245eb['id'];const _0xf358c5=this[_0x806e('0x4')],_0x318253=_0x26c7f3(_0x54ad8b,_0x2245eb['data'][_0x806e('0xb')]?'Suggested\x20by':'add'==_0x2245eb['type']?'Added\x20by':_0x806e('0x6'));this[_0x806e('0x8')](_0x806e('0xa'),_0x2245eb[_0x806e('0xa')]),this[_0x806e('0x3')]({'tag':_0x806e('0xd'),'attributes':{'class':[_0x806e('0x9'),'ck-revision-change',_0xf358c5['to'](_0x806e('0xa'),_0x113040=>_0x806e('0x7')+_0x113040)],'tabindex':-0x1},'children':[{'tag':_0x806e('0x0'),'children':[{'tag':_0x806e('0x0'),'attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x318253}]},{'text':'\x20'+_0x2245eb[_0x806e('0x1')][_0x806e('0xe')]}]}]});}[_0x806e('0x2')](){this[_0x806e('0x5')][_0x806e('0x2')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xa768=['set','Loading...','No\x20changes','isForwardNavigationEnabled','div','bind','X_OF_Y_CHANGES','Show\x20previous\x20change','Total','isBackwardNavigationEnabled','span','backward','ck-revision-history-ui__changes-navigation__navigation','currentChangeNumber','forward','ck-hidden','numberOfChanges','ck-revision-history-ui__changes-navigation__label','isReady','Show\x20next\x20change','execute','isNavigationMode','ck-revision-history-ui__changes-navigation','NUMBER_OF_CHANGES','ck-revision-history-ui__changes-navigation__wrapper','_statusText','_isStatusLabelVisible','ck-revision-history-ui','EDIT_X_OF_Y_REVISIONS','bindTemplate','fire'];(function(_0x544106,_0xa768ec){const _0x47a035=function(_0x37e8b7){while(--_0x37e8b7){_0x544106['push'](_0x544106['shift']());}};_0x47a035(++_0xa768ec);}(_0xa768,0x1c6));const _0x47a0=function(_0x544106,_0xa768ec){_0x544106=_0x544106-0x0;let _0x47a035=_0xa768[_0x544106];return _0x47a035;};import{View as _0x23e4d0,ButtonView as _0x367685,ToolbarSeparatorView as _0x459ade}from'ckeditor5/src/ui.js';import{getTranslation as _0x50fbb3}from'../../utils/common-translations.js';import _0xc3ae38 from'../../../theme/icons/arrow-up.svg';import _0x5caa95 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x23e4d0{constructor(_0x2524cc){super(_0x2524cc);const _0x33bffa=this[_0x47a0('0x9')],_0x2c70c2=new _0x367685(_0x2524cc),_0x5e11a=new _0x367685(_0x2524cc);this['set']('isNavigationMode',!0x1),this[_0x47a0('0xb')](_0x47a0('0x1d'),!0x1),this[_0x47a0('0xb')](_0x47a0('0x18'),0x0),this[_0x47a0('0xb')](_0x47a0('0x1b'),0x0),this[_0x47a0('0xb')](_0x47a0('0xe'),!0x1),this[_0x47a0('0xb')]('isBackwardNavigationEnabled',!0x1),this[_0x47a0('0x10')](_0x47a0('0x6'))['to'](this,_0x47a0('0x1d'),this,_0x47a0('0x1b'),(_0x36f802,_0x12c44a)=>_0x36f802&&_0x12c44a>0x0),this[_0x47a0('0x10')](_0x47a0('0x5'))['to'](this,_0x47a0('0x1d'),this,_0x47a0('0x18'),this,'numberOfChanges',this,'isNavigationMode',(_0x4e274a,_0xfcfca3,_0x598a2f,_0x570cdc)=>{if(!_0x4e274a)return _0x50fbb3(_0x2524cc,_0x47a0('0xc'));if(!_0x598a2f)return _0x50fbb3(_0x2524cc,_0x47a0('0xd'));const _0x49e1b1=_0x50fbb3(_0x2524cc,_0x47a0('0x3'),_0x598a2f);return _0x570cdc?_0x50fbb3(_0x2524cc,_0x47a0('0x11'),[_0xfcfca3+0x1,_0x598a2f]):_0x49e1b1;}),_0x2c70c2['set']({'label':_0x50fbb3(_0x2524cc,_0x47a0('0x12')),'tooltip':!0x0,'icon':_0xc3ae38}),_0x5e11a[_0x47a0('0xb')]({'label':_0x50fbb3(_0x2524cc,_0x47a0('0x1e')),'tooltip':!0x0,'icon':_0x5caa95}),_0x2c70c2[_0x47a0('0x10')]('isEnabled')['to'](this,_0x47a0('0x14')),_0x5e11a[_0x47a0('0x10')]('isEnabled')['to'](this,_0x47a0('0xe')),_0x2c70c2['on'](_0x47a0('0x0'),()=>this[_0x47a0('0xa')](_0x47a0('0x0'),_0x47a0('0x16'))),_0x5e11a['on'](_0x47a0('0x0'),()=>this[_0x47a0('0xa')](_0x47a0('0x0'),_0x47a0('0x19'))),this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x47a0('0x7'),_0x47a0('0x2')]},'children':[{'tag':_0x47a0('0x15'),'attributes':{'class':[_0x47a0('0x4')]},'children':[{'tag':'span','attributes':{'class':[_0x47a0('0x1c'),_0x33bffa['if'](_0x47a0('0x6'),_0x47a0('0x1a'),_0x57dfc2=>!_0x57dfc2)]},'children':[{'text':_0x33bffa['to'](_0x47a0('0x1'),_0xdacbcd=>_0xdacbcd?_0x50fbb3(_0x2524cc,_0x47a0('0x8'))+':\x20':_0x50fbb3(_0x2524cc,_0x47a0('0x13'))+':\x20')}]},{'text':_0x33bffa['to'](_0x47a0('0x5'))}]},new _0x459ade(),{'tag':_0x47a0('0xf'),'attributes':{'class':[_0x47a0('0x17')]},'children':[_0x2c70c2,_0x5e11a]}]});}}
23
+ const _0x413d=['ck-hidden','forward','setTemplate','isReady','fire','numberOfChanges','isEnabled','ck-revision-history-ui__changes-navigation__label','ck-revision-history-ui','_statusText','isForwardNavigationEnabled','Loading...','bindTemplate','isBackwardNavigationEnabled','bind','EDIT_X_OF_Y_REVISIONS','_isStatusLabelVisible','Total','set','span','NUMBER_OF_CHANGES','Show\x20next\x20change','ck-revision-history-ui__changes-navigation__wrapper','execute','div','isNavigationMode'];(function(_0x3b56cb,_0x413dea){const _0x4e26a4=function(_0x3a33cc){while(--_0x3a33cc){_0x3b56cb['push'](_0x3b56cb['shift']());}};_0x4e26a4(++_0x413dea);}(_0x413d,0x15d));const _0x4e26=function(_0x3b56cb,_0x413dea){_0x3b56cb=_0x3b56cb-0x0;let _0x4e26a4=_0x413d[_0x3b56cb];return _0x4e26a4;};import{View as _0x456b03,ButtonView as _0x4b33bf,ToolbarSeparatorView as _0x311bbe}from'ckeditor5/src/ui.js';import{getTranslation as _0x456bd8}from'../../utils/common-translations.js';import _0x332598 from'../../../theme/icons/arrow-up.svg';import _0x31ddf0 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x456b03{constructor(_0x45ebdf){super(_0x45ebdf);const _0x38d1d8=this[_0x4e26('0x1')],_0x519b2e=new _0x4b33bf(_0x45ebdf),_0x520e9e=new _0x4b33bf(_0x45ebdf);this[_0x4e26('0x7')](_0x4e26('0xe'),!0x1),this['set']('isReady',!0x1),this['set']('currentChangeNumber',0x0),this[_0x4e26('0x7')](_0x4e26('0x14'),0x0),this['set']('isForwardNavigationEnabled',!0x1),this['set'](_0x4e26('0x2'),!0x1),this[_0x4e26('0x3')](_0x4e26('0x5'))['to'](this,'isReady',this,_0x4e26('0x14'),(_0x4762da,_0xd3ce2d)=>_0x4762da&&_0xd3ce2d>0x0),this[_0x4e26('0x3')](_0x4e26('0x18'))['to'](this,_0x4e26('0x12'),this,'currentChangeNumber',this,'numberOfChanges',this,_0x4e26('0xe'),(_0x1e9118,_0x48d1ce,_0x4ec6d5,_0x19b70c)=>{if(!_0x1e9118)return _0x456bd8(_0x45ebdf,_0x4e26('0x0'));if(!_0x4ec6d5)return _0x456bd8(_0x45ebdf,'No\x20changes');const _0x453fd0=_0x456bd8(_0x45ebdf,_0x4e26('0x9'),_0x4ec6d5);return _0x19b70c?_0x456bd8(_0x45ebdf,'X_OF_Y_CHANGES',[_0x48d1ce+0x1,_0x4ec6d5]):_0x453fd0;}),_0x519b2e[_0x4e26('0x7')]({'label':_0x456bd8(_0x45ebdf,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x332598}),_0x520e9e['set']({'label':_0x456bd8(_0x45ebdf,_0x4e26('0xa')),'tooltip':!0x0,'icon':_0x31ddf0}),_0x519b2e[_0x4e26('0x3')]('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x520e9e[_0x4e26('0x3')](_0x4e26('0x15'))['to'](this,_0x4e26('0x19')),_0x519b2e['on']('execute',()=>this[_0x4e26('0x13')](_0x4e26('0xc'),'backward')),_0x520e9e['on'](_0x4e26('0xc'),()=>this[_0x4e26('0x13')]('execute',_0x4e26('0x10'))),this[_0x4e26('0x11')]({'tag':_0x4e26('0xd'),'attributes':{'class':['ck',_0x4e26('0x17'),'ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':[_0x4e26('0xb')]},'children':[{'tag':_0x4e26('0x8'),'attributes':{'class':[_0x4e26('0x16'),_0x38d1d8['if'](_0x4e26('0x5'),_0x4e26('0xf'),_0x1e39ab=>!_0x1e39ab)]},'children':[{'text':_0x38d1d8['to']('isNavigationMode',_0x2dcbd5=>_0x2dcbd5?_0x456bd8(_0x45ebdf,_0x4e26('0x4'))+':\x20':_0x456bd8(_0x45ebdf,_0x4e26('0x6'))+':\x20')}]},{'text':_0x38d1d8['to']('_statusText')}]},new _0x311bbe(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x519b2e,_0x520e9e]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2053=['change','hide','removeClass','editing','ck-editor__editable__loading-overlay','addClass','editor','document','view'];(function(_0x23faaf,_0x20530e){const _0x4391bb=function(_0x2a71a7){while(--_0x2a71a7){_0x23faaf['push'](_0x23faaf['shift']());}};_0x4391bb(++_0x20530e);}(_0x2053,0xfb));const _0x4391=function(_0x23faaf,_0x20530e){_0x23faaf=_0x23faaf-0x0;let _0x4391bb=_0x2053[_0x23faaf];return _0x4391bb;};import{Plugin as _0x59173a}from'ckeditor5/src/core.js';const oe=_0x4391('0x5');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x59173a{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}['show'](){const _0x33d640=this[_0x4391('0x7')][_0x4391('0x4')][_0x4391('0x0')];_0x33d640[_0x4391('0x1')](_0x4cfc4b=>{for(const _0x47847f of _0x33d640[_0x4391('0x8')]['roots'])_0x4cfc4b[_0x4391('0x6')](oe,_0x47847f);});}[_0x4391('0x2')](){const _0x16a694=this[_0x4391('0x7')][_0x4391('0x4')][_0x4391('0x0')];_0x16a694['change'](_0x1e243c=>{for(const _0x14e027 of _0x16a694[_0x4391('0x8')]['roots'])_0x1e243c[_0x4391('0x3')](oe,_0x14e027);});}}
23
+ const _0x16e9=['hide','document','removeClass','RevisionViewerLoadingOverlay','view','roots','editing','change','show','pluginName'];(function(_0x44f910,_0x16e95f){const _0x2a0c1a=function(_0xcb6ccc){while(--_0xcb6ccc){_0x44f910['push'](_0x44f910['shift']());}};_0x2a0c1a(++_0x16e95f);}(_0x16e9,0x186));const _0x2a0c=function(_0x44f910,_0x16e95f){_0x44f910=_0x44f910-0x0;let _0x2a0c1a=_0x16e9[_0x44f910];return _0x2a0c1a;};import{Plugin as _0x94ec58}from'ckeditor5/src/core.js';const oe='ck-editor__editable__loading-overlay';import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x94ec58{static get[_0x2a0c('0x9')](){return _0x2a0c('0x3');}[_0x2a0c('0x8')](){const _0xdf865c=this['editor'][_0x2a0c('0x6')][_0x2a0c('0x4')];_0xdf865c['change'](_0x42de61=>{for(const _0x50e566 of _0xdf865c[_0x2a0c('0x1')][_0x2a0c('0x5')])_0x42de61['addClass'](oe,_0x50e566);});}[_0x2a0c('0x0')](){const _0xa7d485=this['editor'][_0x2a0c('0x6')][_0x2a0c('0x4')];_0xa7d485[_0x2a0c('0x7')](_0x2b48ab=>{for(const _0x42f58a of _0xa7d485[_0x2a0c('0x1')][_0x2a0c('0x5')])_0x2b48ab[_0x2a0c('0x2')](oe,_0x42f58a);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2570=['isEnabled','requires','isReady','change:isReady','forward','hide','exitToEditing','bind','execute','listenTo','set','RevisionViewerUI','changesNavigation','commands','get','Restore\x20this\x20revision','isForwardNavigationEnabled','restoreRevision','revisionHistory','showPreviousChange','isNavigationMode','add','closeRevisionViewerCallback','editor','undo','ck-revision-history-ui__back-to-editing','plugins','componentFactory','show','showNextChange','Back\x20to\x20editing','currentChangeNumber'];(function(_0x4de508,_0x2570ec){const _0x2a547a=function(_0x1502a2){while(--_0x1502a2){_0x4de508['push'](_0x4de508['shift']());}};_0x2a547a(++_0x2570ec);}(_0x2570,0x1ab));const _0x2a54=function(_0x4de508,_0x2570ec){_0x4de508=_0x4de508-0x0;let _0x2a547a=_0x2570[_0x4de508];return _0x2a547a;};import{icons as _0x51ec91,Plugin as _0x3003a5}from'ckeditor5/src/core.js';import{ButtonView as _0x1b5935}from'ckeditor5/src/ui.js';import _0x280438 from'./changesnavigationview.js';import _0x3eaa35 from'./../../revisionviewer.js';import _0x4bf7dd from'./revisionviewerloadingoverlay.js';import{getTranslation as _0x50988e}from'../../utils/common-translations.js';import'../../../theme/revisionviewer.css';export default class R extends _0x3003a5{static get['pluginName'](){return _0x2a54('0x0');}static get[_0x2a54('0x16')](){return[_0x3eaa35,_0x4bf7dd];}['init'](){const _0x3e1abd=this[_0x2a54('0xc')],_0x17dbd7=_0x3e1abd[_0x2a54('0xf')][_0x2a54('0x3')](_0x3eaa35),_0x18ebb1=_0x3e1abd[_0x2a54('0xf')][_0x2a54('0x3')](_0x4bf7dd);_0x3e1abd['ui'][_0x2a54('0x10')]['add'](_0x2a54('0x1b'),_0x13dd33=>{const _0x3288c5=new _0x1b5935(_0x13dd33);return _0x3288c5[_0x2a54('0x1f')]({'label':_0x50988e(_0x13dd33,_0x2a54('0x13')),'icon':_0x51ec91[_0x2a54('0xd')],'withText':!0x0,'tooltip':!0x0,'class':_0x2a54('0xe')}),this['listenTo'](_0x3288c5,_0x2a54('0x1d'),()=>{_0x3e1abd['config'][_0x2a54('0x3')](_0x2a54('0x7'))[_0x2a54('0xb')]();}),_0x3288c5;}),_0x3e1abd['ui'][_0x2a54('0x10')][_0x2a54('0xa')]('restoreRevision',_0x52baf2=>{const _0x1014f7=new _0x1b5935(_0x52baf2);return _0x1014f7['set']({'label':_0x50988e(_0x52baf2,_0x2a54('0x4')),'withText':!0x0,'tooltip':!0x0}),_0x1014f7[_0x2a54('0x1c')](_0x2a54('0x15'))['to'](_0x3e1abd['commands']['get']('restoreRevision')),this['listenTo'](_0x1014f7,_0x2a54('0x1d'),()=>_0x3e1abd['execute'](_0x2a54('0x6'))),_0x1014f7;}),_0x3e1abd['ui']['componentFactory']['add'](_0x2a54('0x1'),_0x432941=>{const _0x57779b=new _0x280438(_0x432941),_0x59ebab=_0x3e1abd[_0x2a54('0x2')][_0x2a54('0x3')](_0x2a54('0x8')),_0x3aa444=_0x3e1abd[_0x2a54('0x2')][_0x2a54('0x3')](_0x2a54('0x12'));return _0x57779b[_0x2a54('0x1c')]('isBackwardNavigationEnabled')['to'](_0x59ebab,_0x2a54('0x15')),_0x57779b['bind'](_0x2a54('0x5'))['to'](_0x3aa444,_0x2a54('0x15')),_0x57779b[_0x2a54('0x1c')](_0x2a54('0x17'),_0x2a54('0x14'),'numberOfChanges',_0x2a54('0x9'))['to'](_0x17dbd7),this[_0x2a54('0x1e')](_0x57779b,'execute',(_0x15d9ac,_0x51b1ee)=>{_0x3e1abd[_0x2a54('0x1d')](_0x2a54('0x19')===_0x51b1ee?_0x2a54('0x12'):'showPreviousChange');}),_0x57779b;}),_0x18ebb1['show'](),_0x17dbd7['on'](_0x2a54('0x18'),(_0x202b58,_0x3e4dc9,_0x5b2b56)=>{_0x5b2b56?_0x18ebb1[_0x2a54('0x1a')]():_0x18ebb1[_0x2a54('0x11')]();});}}
23
+ const _0x1b68=['undo','listenTo','config','ck-revision-history-ui__back-to-editing','plugins','isForwardNavigationEnabled','set','forward','isEnabled','get','changesNavigation','exitToEditing','showPreviousChange','isNavigationMode','add','show','componentFactory','restoreRevision','closeRevisionViewerCallback','Back\x20to\x20editing','currentChangeNumber','change:isReady','RevisionViewerUI','revisionHistory','editor','commands','Restore\x20this\x20revision','pluginName','showNextChange','isReady','bind','execute'];(function(_0x4cbae2,_0x1b6874){const _0x29d6f5=function(_0x2909b7){while(--_0x2909b7){_0x4cbae2['push'](_0x4cbae2['shift']());}};_0x29d6f5(++_0x1b6874);}(_0x1b68,0x1a6));const _0x29d6=function(_0x4cbae2,_0x1b6874){_0x4cbae2=_0x4cbae2-0x0;let _0x29d6f5=_0x1b68[_0x4cbae2];return _0x29d6f5;};import{icons as _0x17030b,Plugin as _0x59af23}from'ckeditor5/src/core.js';import{ButtonView as _0x1391bf}from'ckeditor5/src/ui.js';import _0x374702 from'./changesnavigationview.js';import _0x174b4d from'./../../revisionviewer.js';import _0x35fe0c from'./revisionviewerloadingoverlay.js';import{getTranslation as _0x39b393}from'../../utils/common-translations.js';import'../../../theme/revisionviewer.css';export default class R extends _0x59af23{static get[_0x29d6('0x15')](){return _0x29d6('0x10');}static get['requires'](){return[_0x174b4d,_0x35fe0c];}['init'](){const _0x212330=this[_0x29d6('0x12')],_0x2b9e47=_0x212330['plugins'][_0x29d6('0x3')](_0x174b4d),_0x5da50c=_0x212330[_0x29d6('0x1e')][_0x29d6('0x3')](_0x35fe0c);_0x212330['ui'][_0x29d6('0xa')][_0x29d6('0x8')](_0x29d6('0x5'),_0x5589b1=>{const _0x3981fb=new _0x1391bf(_0x5589b1);return _0x3981fb[_0x29d6('0x0')]({'label':_0x39b393(_0x5589b1,_0x29d6('0xd')),'icon':_0x17030b[_0x29d6('0x1a')],'withText':!0x0,'tooltip':!0x0,'class':_0x29d6('0x1d')}),this[_0x29d6('0x1b')](_0x3981fb,_0x29d6('0x19'),()=>{_0x212330[_0x29d6('0x1c')][_0x29d6('0x3')](_0x29d6('0x11'))[_0x29d6('0xc')]();}),_0x3981fb;}),_0x212330['ui'][_0x29d6('0xa')][_0x29d6('0x8')]('restoreRevision',_0x2bcacd=>{const _0x3a2d21=new _0x1391bf(_0x2bcacd);return _0x3a2d21[_0x29d6('0x0')]({'label':_0x39b393(_0x2bcacd,_0x29d6('0x14')),'withText':!0x0,'tooltip':!0x0}),_0x3a2d21['bind'](_0x29d6('0x2'))['to'](_0x212330[_0x29d6('0x13')][_0x29d6('0x3')](_0x29d6('0xb'))),this[_0x29d6('0x1b')](_0x3a2d21,_0x29d6('0x19'),()=>_0x212330['execute'](_0x29d6('0xb'))),_0x3a2d21;}),_0x212330['ui']['componentFactory'][_0x29d6('0x8')](_0x29d6('0x4'),_0x5e0fb5=>{const _0x5d4453=new _0x374702(_0x5e0fb5),_0x573bd6=_0x212330[_0x29d6('0x13')][_0x29d6('0x3')](_0x29d6('0x6')),_0x1d4877=_0x212330['commands'][_0x29d6('0x3')](_0x29d6('0x16'));return _0x5d4453[_0x29d6('0x18')]('isBackwardNavigationEnabled')['to'](_0x573bd6,'isEnabled'),_0x5d4453[_0x29d6('0x18')](_0x29d6('0x1f'))['to'](_0x1d4877,_0x29d6('0x2')),_0x5d4453[_0x29d6('0x18')](_0x29d6('0x17'),_0x29d6('0xe'),'numberOfChanges',_0x29d6('0x7'))['to'](_0x2b9e47),this[_0x29d6('0x1b')](_0x5d4453,_0x29d6('0x19'),(_0x2f4d4f,_0x32e257)=>{_0x212330['execute'](_0x29d6('0x1')===_0x32e257?'showNextChange':_0x29d6('0x6'));}),_0x5d4453;}),_0x5da50c['show'](),_0x2b9e47['on'](_0x29d6('0xf'),(_0xeae73a,_0xb61590,_0x1a4e99)=>{_0x1a4e99?_0x5da50c['hide']():_0x5da50c[_0x29d6('0x9')]();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x16846c,_0x2bff49,_0x599ca5){const t=_0x16846c['t'];switch(_0x2bff49){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'},_0x599ca5);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x599ca5);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 _0x2bff49;}}
23
+ export function getTranslation(_0x820993,_0x2c61c6,_0x40aa81){const t=_0x820993['t'];switch(_0x2c61c6){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'},_0x40aa81);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x40aa81);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 _0x2c61c6;}}