@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231206.0 → 0.0.0-nightly-20231207.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 (32) hide show
  1. package/README.md +10 -10
  2. package/build/revision-history.js +1 -1
  3. package/package.json +6 -6
  4. package/src/changeitem.js +1 -1
  5. package/src/editor/revisionviewereditor.js +1 -1
  6. package/src/editor/revisionviewereditorui.js +1 -1
  7. package/src/editor/revisionviewereditoruiview.js +1 -1
  8. package/src/revision.js +1 -1
  9. package/src/revisiondiff.js +1 -1
  10. package/src/revisionhistory.js +1 -1
  11. package/src/revisionsrepository.js +1 -1
  12. package/src/revisiontracker.js +1 -1
  13. package/src/revisionviewer.js +1 -1
  14. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  15. package/src/ui/revision/revisionauthorview.js +1 -1
  16. package/src/ui/revision/revisionnameview.js +1 -1
  17. package/src/ui/revision/revisionview.js +1 -1
  18. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  19. package/src/ui/revision/subrevisionview.js +1 -1
  20. package/src/ui/revision/utils.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  22. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  26. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  27. package/src/ui/revisionssidebar/utils.js +1 -1
  28. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  29. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  31. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  32. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3704=['Revision\x20history','reset','cancel','length','plugins','requires','init','submit','revisionHistory','editing','isReadOnly','Open\x20revision\x20history','get','items','Save\x20current\x20revision','panelView','RevisionHistoryUI','set','bind','buttonView','isEnabled','children','add','componentFactory','remove','change:isOpen','RevisionTracker','history','focus','render','config','execute','saveRevision','isReady','editor','view'];(function(_0x45c7d3,_0x37044e){const _0x16e32f=function(_0x34c9aa){while(--_0x34c9aa){_0x45c7d3['push'](_0x45c7d3['shift']());}};_0x16e32f(++_0x37044e);}(_0x3704,0x189));const _0x16e3=function(_0x45c7d3,_0x37044e){_0x45c7d3=_0x45c7d3-0x0;let _0x16e32f=_0x3704[_0x45c7d3];return _0x16e32f;};import{Plugin as _0x455ed5,icons as _0x1d9136}from'ckeditor5/src/core';import{ListView as _0x4bc6df,ListItemView as _0xd9c43b,ButtonView as _0x56643e,createDropdown as _0x4c46ff}from'ckeditor5/src/ui';import _0x4b1ef8 from'../../revisiontracker';import _0x400c58 from'./revisionhistorysaverevisionformview';import{getTranslation as _0x46a97e}from'../../utils/common-translations';export default class u extends _0x455ed5{static get['pluginName'](){return _0x16e3('0x13');}static get[_0x16e3('0x8')](){return[_0x4b1ef8];}[_0x16e3('0x9')](){const _0x568344=this[_0x16e3('0x1')],_0x124e62=_0x568344['plugins'][_0x16e3('0xf')](_0x16e3('0x1d'));_0x568344['ui'][_0x16e3('0x1a')][_0x16e3('0x19')](_0x16e3('0xb'),_0x36be96=>{const _0x5b85c9=_0x4c46ff(_0x36be96),_0x28601f=_0x5b85c9[_0x16e3('0x12')][_0x16e3('0x18')],_0x2f898e=new _0x4bc6df(_0x36be96),_0x3547cb=new _0xd9c43b(_0x36be96),_0x343ade=new _0x56643e(_0x36be96),_0x30082e=new _0xd9c43b(_0x36be96),_0x49aff2=new _0x56643e(_0x36be96),_0x286eaf=new _0x400c58(_0x36be96);function _0x3ab890(){_0x28601f[_0x16e3('0x6')]&&_0x28601f[_0x16e3('0x1b')](0x0),_0x28601f['add'](_0x2f898e);}function _0x3d7d52(){_0x5b85c9['isOpen']=!0x1,_0x568344[_0x16e3('0xc')][_0x16e3('0x2')]['focus']();}return _0x5b85c9[_0x16e3('0x15')](_0x16e3('0x17'))['to'](_0x124e62,_0x16e3('0x0'),_0x124e62,_0x16e3('0x17'),_0x568344,_0x16e3('0xd'),(_0x5dbff4,_0x5c52b0,_0x1876b2)=>_0x5dbff4&&_0x5c52b0&&!_0x1876b2),_0x5b85c9[_0x16e3('0x16')][_0x16e3('0x14')]({'icon':_0x1d9136[_0x16e3('0x1e')],'label':_0x46a97e(_0x36be96,_0x16e3('0x3')),'tooltip':!0x0}),_0x343ade[_0x16e3('0x14')]({'label':_0x46a97e(_0x36be96,_0x16e3('0x11')),'withText':!0x0}),_0x343ade[_0x16e3('0x15')](_0x16e3('0x17'))['to'](_0x124e62,_0x16e3('0x0'),_0x124e62,_0x16e3('0x17'),_0x568344,_0x16e3('0xd'),(_0x1345e5,_0x46607d,_0xb23158)=>_0x1345e5&&_0x46607d&&!_0xb23158),_0x343ade['on'](_0x16e3('0x22'),()=>function(){_0x28601f[_0x16e3('0x6')]&&_0x28601f[_0x16e3('0x1b')](0x0),(_0x286eaf[_0x16e3('0x4')](),_0x28601f[_0x16e3('0x19')](_0x286eaf),_0x286eaf[_0x16e3('0x1f')]());}()),_0x49aff2[_0x16e3('0x14')]({'label':_0x46a97e(_0x36be96,_0x16e3('0xe')),'withText':!0x0}),_0x49aff2[_0x16e3('0x15')]('isEnabled')['to'](_0x124e62,'isReady',_0x568344,_0x16e3('0xd'),(_0x7611f5,_0x337ad7)=>_0x7611f5&&!_0x337ad7),_0x49aff2['on'](_0x16e3('0x22'),()=>{_0x568344[_0x16e3('0x21')][_0x16e3('0xf')](_0x16e3('0xb'))['showRevisionViewerCallback'](),_0x3d7d52();}),_0x3547cb['children'][_0x16e3('0x19')](_0x343ade),_0x30082e['children'][_0x16e3('0x19')](_0x49aff2),_0x2f898e[_0x16e3('0x10')]['addMany']([_0x3547cb,_0x30082e]),_0x5b85c9['on'](_0x16e3('0x1c'),()=>_0x3ab890()),_0x286eaf['saveButtonView']['bind'](_0x16e3('0x17'))['to'](_0x124e62,'isReady',_0x124e62,'isEnabled',_0x568344,'isReadOnly',(_0x165788,_0x1596ab,_0x3aef57)=>_0x165788&&_0x1596ab&&!_0x3aef57),_0x286eaf['on'](_0x16e3('0xa'),()=>(_0x568344[_0x16e3('0x7')][_0x16e3('0xf')](_0x4b1ef8)[_0x16e3('0x23')]({'name':_0x286eaf['revisionName']}),void _0x3d7d52())),_0x286eaf['on'](_0x16e3('0x5'),()=>_0x3ab890()),_0x286eaf[_0x16e3('0x20')](),_0x3ab890(),_0x5b85c9;});}}
23
+ const _0x3edb=['set','init','saveRevision','requires','addMany','buttonView','render','saveButtonView','pluginName','children','get','length','isOpen','items','plugins','cancel','remove','reset','revisionName','Save\x20current\x20revision','isEnabled','panelView','history','config','Revision\x20history','editor','add','editing','execute','submit','bind','showRevisionViewerCallback','revisionHistory','isReady','isReadOnly'];(function(_0x5c6791,_0x3edb20){const _0x3b3f6c=function(_0x439cc7){while(--_0x439cc7){_0x5c6791['push'](_0x5c6791['shift']());}};_0x3b3f6c(++_0x3edb20);}(_0x3edb,0x1e8));const _0x3b3f=function(_0x5c6791,_0x3edb20){_0x5c6791=_0x5c6791-0x0;let _0x3b3f6c=_0x3edb[_0x5c6791];return _0x3b3f6c;};import{Plugin as _0x43c4a5,icons as _0x3c6bb9}from'ckeditor5/src/core';import{ListView as _0x35ae35,ListItemView as _0x2dcd87,ButtonView as _0x148616,createDropdown as _0x4c04f9}from'ckeditor5/src/ui';import _0x1539aa from'../../revisiontracker';import _0x30f444 from'./revisionhistorysaverevisionformview';import{getTranslation as _0x375431}from'../../utils/common-translations';export default class u extends _0x43c4a5{static get[_0x3b3f('0xa')](){return'RevisionHistoryUI';}static get[_0x3b3f('0x5')](){return[_0x1539aa];}[_0x3b3f('0x3')](){const _0x4212d0=this[_0x3b3f('0x1b')],_0x4c46e4=_0x4212d0[_0x3b3f('0x10')][_0x3b3f('0xc')]('RevisionTracker');_0x4212d0['ui']['componentFactory']['add']('revisionHistory',_0x228f1b=>{const _0x410532=_0x4c04f9(_0x228f1b),_0x53730e=_0x410532[_0x3b3f('0x17')][_0x3b3f('0xb')],_0x182043=new _0x35ae35(_0x228f1b),_0xd3b34d=new _0x2dcd87(_0x228f1b),_0x4e6e58=new _0x148616(_0x228f1b),_0x4a434b=new _0x2dcd87(_0x228f1b),_0x59c68b=new _0x148616(_0x228f1b),_0x21f621=new _0x30f444(_0x228f1b);function _0x4a5526(){_0x53730e['length']&&_0x53730e['remove'](0x0),_0x53730e[_0x3b3f('0x1c')](_0x182043);}function _0x321076(){_0x410532[_0x3b3f('0xe')]=!0x1,_0x4212d0[_0x3b3f('0x1d')]['view']['focus']();}return _0x410532[_0x3b3f('0x20')](_0x3b3f('0x16'))['to'](_0x4c46e4,'isReady',_0x4c46e4,_0x3b3f('0x16'),_0x4212d0,'isReadOnly',(_0x367f5f,_0x53da95,_0x291a64)=>_0x367f5f&&_0x53da95&&!_0x291a64),_0x410532[_0x3b3f('0x7')][_0x3b3f('0x2')]({'icon':_0x3c6bb9[_0x3b3f('0x18')],'label':_0x375431(_0x228f1b,_0x3b3f('0x1a')),'tooltip':!0x0}),_0x4e6e58['set']({'label':_0x375431(_0x228f1b,_0x3b3f('0x15')),'withText':!0x0}),_0x4e6e58['bind']('isEnabled')['to'](_0x4c46e4,_0x3b3f('0x0'),_0x4c46e4,_0x3b3f('0x16'),_0x4212d0,_0x3b3f('0x1'),(_0x46589e,_0x3dbc55,_0x413bd3)=>_0x46589e&&_0x3dbc55&&!_0x413bd3),_0x4e6e58['on'](_0x3b3f('0x1e'),()=>function(){_0x53730e[_0x3b3f('0xd')]&&_0x53730e[_0x3b3f('0x12')](0x0),(_0x21f621[_0x3b3f('0x13')](),_0x53730e[_0x3b3f('0x1c')](_0x21f621),_0x21f621['focus']());}()),_0x59c68b['set']({'label':_0x375431(_0x228f1b,'Open\x20revision\x20history'),'withText':!0x0}),_0x59c68b[_0x3b3f('0x20')](_0x3b3f('0x16'))['to'](_0x4c46e4,_0x3b3f('0x0'),_0x4212d0,_0x3b3f('0x1'),(_0x2aac9a,_0x4b8564)=>_0x2aac9a&&!_0x4b8564),_0x59c68b['on'](_0x3b3f('0x1e'),()=>{_0x4212d0[_0x3b3f('0x19')][_0x3b3f('0xc')](_0x3b3f('0x22'))[_0x3b3f('0x21')](),_0x321076();}),_0xd3b34d['children'][_0x3b3f('0x1c')](_0x4e6e58),_0x4a434b['children'][_0x3b3f('0x1c')](_0x59c68b),_0x182043[_0x3b3f('0xf')][_0x3b3f('0x6')]([_0xd3b34d,_0x4a434b]),_0x410532['on']('change:isOpen',()=>_0x4a5526()),_0x21f621[_0x3b3f('0x9')][_0x3b3f('0x20')](_0x3b3f('0x16'))['to'](_0x4c46e4,_0x3b3f('0x0'),_0x4c46e4,_0x3b3f('0x16'),_0x4212d0,_0x3b3f('0x1'),(_0x33cb70,_0x2b5fd4,_0x501fa3)=>_0x33cb70&&_0x2b5fd4&&!_0x501fa3),_0x21f621['on'](_0x3b3f('0x1f'),()=>(_0x4212d0[_0x3b3f('0x10')]['get'](_0x1539aa)[_0x3b3f('0x4')]({'name':_0x21f621[_0x3b3f('0x14')]}),void _0x321076())),_0x21f621['on'](_0x3b3f('0x11'),()=>_0x4a5526()),_0x21f621[_0x3b3f('0x8')](),_0x4a5526(),_0x410532;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ada=['select','getRevisionsInDiff','restoreRevision','defaultRevisionActions','Restore\x20this\x20revision','newRevisionId','get','revisionViews','revisionHistory','string','add','diff','editor','availableRevisionActions','compareAgainstSelected','_handleDiffChange','element','isVisible','_revisionsRepository','destroy','repository','bind','revisionSetName','revisionHistory.viewerSidebarContainer','isEnabled','selectRevision','_sidebarView','init','isSelected','Name\x20this\x20revision','getRevision','compare','_handleRevisionSelected','requires','appendChild','_handleEditorDataReady','getIndex','timePeriodViews','name','render','_handleRevisionSetName','config','nameRevision','length','listenTo','remove','_revisionViewer','map','fieldView','Compare\x20against\x20selected','restoreRevisionCallback','getLaterVisibleRevision','highlightRevisions','pluginName','data','assign','getEarlierVisibleRevision','locale'];(function(_0x4ca492,_0x2ada60){const _0x54c6d7=function(_0x108f9b){while(--_0x108f9b){_0x4ca492['push'](_0x4ca492['shift']());}};_0x54c6d7(++_0x2ada60);}(_0x2ada,0x78));const _0x54c6=function(_0x4ca492,_0x2ada60){_0x4ca492=_0x4ca492-0x0;let _0x54c6d7=_0x2ada[_0x4ca492];return _0x54c6d7;};import{Plugin as _0x3d825a}from'ckeditor5/src/core';import _0x893cdc from'./revisionssidebarview';import _0x5bf23a from'../../revisionviewer';export default class w extends _0x3d825a{static get[_0x54c6('0x31')](){return'RevisionsSidebar';}static get[_0x54c6('0x1d')](){return[_0x5bf23a];}constructor(_0xf993ac){super(_0xf993ac),this[_0x54c6('0x2a')]=_0xf993ac['plugins'][_0x54c6('0x2')](_0x5bf23a),this[_0x54c6('0xe')]=this[_0x54c6('0x2a')]['repository'],this[_0x54c6('0x16')]=null;}[_0x54c6('0x17')](){const _0x4fa5f1=this[_0x54c6('0xe')]['_revisions'],_0x156d9e=this['_createRevisionActions'](),_0x17ac64=this['editor'][_0x54c6('0x25')][_0x54c6('0x2')](_0x54c6('0x13'));this['_sidebarView']=new _0x893cdc(this[_0x54c6('0x8')][_0x54c6('0x35')],_0x4fa5f1,_0x156d9e),this[_0x54c6('0x16')]['on']('revisionSelected',this[_0x54c6('0x1c')]['bind'](this)),this[_0x54c6('0x16')]['on'](_0x54c6('0x12'),this[_0x54c6('0x24')][_0x54c6('0x11')](this)),this[_0x54c6('0x16')][_0x54c6('0x11')](_0x54c6('0x14'))['to'](this['_revisionViewer']),this['_sidebarView'][_0x54c6('0x21')]['on']('add',(_0x2806b0,_0x46c943)=>{_0x46c943[_0x54c6('0x3')]['on'](_0x54c6('0x6'),(_0x20174e,_0x200f5b)=>{_0x200f5b[_0x54c6('0x11')](_0x54c6('0x14'),'isReady')['to'](this[_0x54c6('0x2a')]);});}),this['_sidebarView'][_0x54c6('0x23')](),this[_0x54c6('0x28')](this['editor'][_0x54c6('0x32')],'ready',this[_0x54c6('0x1f')][_0x54c6('0x11')](this)),this['listenTo'](this['_revisionViewer'],'change:diff',this[_0x54c6('0xb')][_0x54c6('0x11')](this)),_0x17ac64[_0x54c6('0x1e')](this[_0x54c6('0x16')][_0x54c6('0xc')]);}[_0x54c6('0xf')](){this[_0x54c6('0x16')][_0x54c6('0xc')][_0x54c6('0x29')](),this[_0x54c6('0x16')][_0x54c6('0xf')]();}[_0x54c6('0x1f')](){const _0x5404d1=this[_0x54c6('0xe')][_0x54c6('0x1a')](0x0);if(_0x5404d1){const _0x44494d=this[_0x54c6('0xe')][_0x54c6('0x34')](_0x5404d1['id']);this[_0x54c6('0x2a')][_0x54c6('0x1b')](_0x5404d1,_0x44494d);}}[_0x54c6('0x1c')](_0x5a3421,_0x16e49d){const _0x5dd819=this[_0x54c6('0xe')][_0x54c6('0x1a')](_0x16e49d['id']),_0x46086e=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x5dd819['id']);this[_0x54c6('0x2a')][_0x54c6('0x1b')](_0x5dd819,_0x46086e);}[_0x54c6('0x24')](_0x59178b,_0x142373){this[_0x54c6('0xe')][_0x54c6('0x1a')](_0x142373['id'])['setName'](_0x142373[_0x54c6('0x22')]);}[_0x54c6('0xb')](_0x41530f,_0x490ab6,_0x49e694){const _0x55ba32=this[_0x54c6('0xe')][_0x54c6('0x37')](_0x49e694);_0x55ba32[_0x54c6('0x27')]>0x2?(this['_sidebarView']['highlightRevisions'](_0x55ba32),this[_0x54c6('0x16')][_0x54c6('0x15')](null)):(this[_0x54c6('0x16')][_0x54c6('0x30')]([]),this[_0x54c6('0x16')][_0x54c6('0x15')](_0x55ba32[0x0]));}['_createRevisionActions'](){const _0x2bdca1=this[_0x54c6('0x8')],_0x43f1c3=w[_0x54c6('0x9')],_0x27620e=_0x2bdca1[_0x54c6('0x25')][_0x54c6('0x2')]('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x27620e[_0x54c6('0x27')])return _0x27620e[_0x54c6('0x2b')](_0x352227=>{const _0x4c9f7a=_0x54c6('0x5')==typeof _0x352227?Object[_0x54c6('0x33')]({},_0x43f1c3[_0x352227]):_0x352227;return _0x4c9f7a['action']=_0x4c9f7a['action'][_0x54c6('0x11')](this,_0x2bdca1),_0x4c9f7a[_0x54c6('0xd')]&&(_0x4c9f7a[_0x54c6('0xd')]=_0x4c9f7a['isVisible'][_0x54c6('0x11')](this,_0x2bdca1)),_0x4c9f7a;});}}w['availableRevisionActions']={'compareAgainstSelected':{'name':_0x54c6('0x2d'),'action':({plugins:_0x516420},_0x1b0572)=>{const _0x24f0ee=_0x516420[_0x54c6('0x2')](_0x5bf23a),_0x201ef2=_0x24f0ee[_0x54c6('0x10')];let _0x4271d8=_0x24f0ee[_0x54c6('0x7')][_0x54c6('0x1')],_0x831873=_0x1b0572['id'];_0x201ef2[_0x54c6('0x20')](_0x4271d8)>_0x201ef2['getIndex'](_0x831873)&&([_0x4271d8,_0x831873]=[_0x831873,_0x4271d8]),_0x24f0ee[_0x54c6('0x1b')](_0x4271d8,_0x831873);},'isVisible':({plugins:_0x30ff6a},_0x2ae7a2)=>{const _0x32827a=_0x30ff6a[_0x54c6('0x2')](_0x5bf23a);return!(_0x32827a[_0x54c6('0x10')][_0x54c6('0x37')](_0x32827a['diff'])[_0x54c6('0x27')]>0x2)&&!_0x2ae7a2[_0x54c6('0x18')];}},'restoreRevision':{'name':_0x54c6('0x0'),'action':(_0x2845af,{id:_0x3b3118})=>{_0x2845af[_0x54c6('0x25')][_0x54c6('0x2')](_0x54c6('0x4'))[_0x54c6('0x2e')](_0x3b3118);},'isVisible':({plugins:_0xb06bd7},_0x3e9898)=>!!_0xb06bd7[_0x54c6('0x2')](_0x5bf23a)[_0x54c6('0x10')][_0x54c6('0x2f')](_0x3e9898['id'])},'nameRevision':{'name':_0x54c6('0x19'),'action':({plugins:_0x5f4613},{id:_0x5131ef,revisionNameView:_0x33f1a6})=>{const _0xa4ed7=_0x5f4613[_0x54c6('0x2')](_0x5bf23a),_0x2563e7=_0xa4ed7[_0x54c6('0x10')][_0x54c6('0x34')](_0x5131ef);_0xa4ed7[_0x54c6('0x1b')](_0x5131ef,_0x2563e7),_0x33f1a6['focus'](),_0x33f1a6[_0x54c6('0x2c')][_0x54c6('0x36')]();}}},w[_0x54c6('0x39')]=[_0x54c6('0xa'),_0x54c6('0x38'),_0x54c6('0x26')];
23
+ const _0x2519=['_sidebarView','requires','action','availableRevisionActions','nameRevision','_createRevisionActions','getIndex','revisionSelected','Restore\x20this\x20revision','string','render','data','compareAgainstSelected','timePeriodViews','_revisionViewer','listenTo','_handleEditorDataReady','revisionHistory','compare','_revisionsRepository','get','_handleRevisionSetName','Name\x20this\x20revision','_revisions','isVisible','revisionHistory.viewerSidebarContainer','defaultRevisionActions','selectRevision','revisionSetName','isEnabled','getRevision','init','focus','highlightRevisions','RevisionsSidebar','getLaterVisibleRevision','element','isSelected','revisionViews','restoreRevision','getEarlierVisibleRevision','length','bind','destroy','diff','getRevisionsInDiff','config','appendChild','editor','Compare\x20against\x20selected','isReady','fieldView','_handleRevisionSelected','add','locale','repository','restoreRevisionCallback'];(function(_0x323c49,_0x251953){const _0x2b15b0=function(_0x29f0cc){while(--_0x29f0cc){_0x323c49['push'](_0x323c49['shift']());}};_0x2b15b0(++_0x251953);}(_0x2519,0x137));const _0x2b15=function(_0x323c49,_0x251953){_0x323c49=_0x323c49-0x0;let _0x2b15b0=_0x2519[_0x323c49];return _0x2b15b0;};import{Plugin as _0x3a51b0}from'ckeditor5/src/core';import _0x53322c from'./revisionssidebarview';import _0x52cd4f from'../../revisionviewer';export default class w extends _0x3a51b0{static get['pluginName'](){return _0x2b15('0x8');}static get[_0x2b15('0x20')](){return[_0x52cd4f];}constructor(_0x36932f){super(_0x36932f),this['_revisionViewer']=_0x36932f['plugins'][_0x2b15('0x33')](_0x52cd4f),this[_0x2b15('0x32')]=this[_0x2b15('0x2d')]['repository'],this[_0x2b15('0x1f')]=null;}[_0x2b15('0x5')](){const _0x4c5e9f=this['_revisionsRepository'][_0x2b15('0x36')],_0x2a0a0a=this[_0x2b15('0x24')](),_0x1fe351=this[_0x2b15('0x16')][_0x2b15('0x14')]['get'](_0x2b15('0x38'));this[_0x2b15('0x1f')]=new _0x53322c(this[_0x2b15('0x16')][_0x2b15('0x1c')],_0x4c5e9f,_0x2a0a0a),this[_0x2b15('0x1f')]['on'](_0x2b15('0x26'),this[_0x2b15('0x1a')][_0x2b15('0x10')](this)),this[_0x2b15('0x1f')]['on'](_0x2b15('0x2'),this[_0x2b15('0x34')][_0x2b15('0x10')](this)),this['_sidebarView'][_0x2b15('0x10')](_0x2b15('0x3'))['to'](this[_0x2b15('0x2d')]),this['_sidebarView'][_0x2b15('0x2c')]['on']('add',(_0x5b43ea,_0x479d6e)=>{_0x479d6e[_0x2b15('0xc')]['on'](_0x2b15('0x1b'),(_0x294964,_0x5c78c4)=>{_0x5c78c4[_0x2b15('0x10')](_0x2b15('0x3'),_0x2b15('0x18'))['to'](this['_revisionViewer']);});}),this['_sidebarView'][_0x2b15('0x29')](),this[_0x2b15('0x2e')](this[_0x2b15('0x16')][_0x2b15('0x2a')],'ready',this[_0x2b15('0x2f')][_0x2b15('0x10')](this)),this[_0x2b15('0x2e')](this['_revisionViewer'],'change:diff',this['_handleDiffChange'][_0x2b15('0x10')](this)),_0x1fe351[_0x2b15('0x15')](this[_0x2b15('0x1f')][_0x2b15('0xa')]);}['destroy'](){this[_0x2b15('0x1f')][_0x2b15('0xa')]['remove'](),this[_0x2b15('0x1f')][_0x2b15('0x11')]();}['_handleEditorDataReady'](){const _0x8b020e=this[_0x2b15('0x32')][_0x2b15('0x4')](0x0);if(_0x8b020e){const _0x45849d=this[_0x2b15('0x32')][_0x2b15('0xe')](_0x8b020e['id']);this[_0x2b15('0x2d')][_0x2b15('0x31')](_0x8b020e,_0x45849d);}}['_handleRevisionSelected'](_0x224dbb,_0x45a22b){const _0x26becd=this[_0x2b15('0x32')][_0x2b15('0x4')](_0x45a22b['id']),_0x4d26f4=this[_0x2b15('0x32')][_0x2b15('0xe')](_0x26becd['id']);this['_revisionViewer'][_0x2b15('0x31')](_0x26becd,_0x4d26f4);}[_0x2b15('0x34')](_0x5929ad,_0x311c8d){this[_0x2b15('0x32')][_0x2b15('0x4')](_0x311c8d['id'])['setName'](_0x311c8d['name']);}['_handleDiffChange'](_0x504604,_0x2f8fa4,_0x5a305b){const _0x33167a=this[_0x2b15('0x32')]['getRevisionsInDiff'](_0x5a305b);_0x33167a['length']>0x2?(this[_0x2b15('0x1f')][_0x2b15('0x7')](_0x33167a),this[_0x2b15('0x1f')][_0x2b15('0x1')](null)):(this[_0x2b15('0x1f')][_0x2b15('0x7')]([]),this['_sidebarView'][_0x2b15('0x1')](_0x33167a[0x0]));}[_0x2b15('0x24')](){const _0x44358a=this[_0x2b15('0x16')],_0x236983=w[_0x2b15('0x22')],_0x4d0db7=_0x44358a[_0x2b15('0x14')][_0x2b15('0x33')]('revisionHistory.revisionActions')||w[_0x2b15('0x0')];if(_0x4d0db7[_0x2b15('0xf')])return _0x4d0db7['map'](_0x22ba2e=>{const _0x3ef43a=_0x2b15('0x28')==typeof _0x22ba2e?Object['assign']({},_0x236983[_0x22ba2e]):_0x22ba2e;return _0x3ef43a[_0x2b15('0x21')]=_0x3ef43a[_0x2b15('0x21')]['bind'](this,_0x44358a),_0x3ef43a['isVisible']&&(_0x3ef43a['isVisible']=_0x3ef43a[_0x2b15('0x37')][_0x2b15('0x10')](this,_0x44358a)),_0x3ef43a;});}}w[_0x2b15('0x22')]={'compareAgainstSelected':{'name':_0x2b15('0x17'),'action':({plugins:_0x37798b},_0x8135d5)=>{const _0x5539d1=_0x37798b['get'](_0x52cd4f),_0x4de755=_0x5539d1[_0x2b15('0x1d')];let _0x32414f=_0x5539d1[_0x2b15('0x12')]['newRevisionId'],_0x591da0=_0x8135d5['id'];_0x4de755[_0x2b15('0x25')](_0x32414f)>_0x4de755['getIndex'](_0x591da0)&&([_0x32414f,_0x591da0]=[_0x591da0,_0x32414f]),_0x5539d1[_0x2b15('0x31')](_0x32414f,_0x591da0);},'isVisible':({plugins:_0x5a1140},_0x48e329)=>{const _0x4e54cf=_0x5a1140[_0x2b15('0x33')](_0x52cd4f);return!(_0x4e54cf['repository'][_0x2b15('0x13')](_0x4e54cf[_0x2b15('0x12')])[_0x2b15('0xf')]>0x2)&&!_0x48e329[_0x2b15('0xb')];}},'restoreRevision':{'name':_0x2b15('0x27'),'action':(_0x1e0e84,{id:_0x2a69ac})=>{_0x1e0e84['config'][_0x2b15('0x33')](_0x2b15('0x30'))[_0x2b15('0x1e')](_0x2a69ac);},'isVisible':({plugins:_0x9c3ec2},_0x386492)=>!!_0x9c3ec2[_0x2b15('0x33')](_0x52cd4f)[_0x2b15('0x1d')][_0x2b15('0x9')](_0x386492['id'])},'nameRevision':{'name':_0x2b15('0x35'),'action':({plugins:_0x4497cf},{id:_0x28ea7a,revisionNameView:_0x4e6a8c})=>{const _0x43a73c=_0x4497cf[_0x2b15('0x33')](_0x52cd4f),_0x432e35=_0x43a73c[_0x2b15('0x1d')][_0x2b15('0xe')](_0x28ea7a);_0x43a73c[_0x2b15('0x31')](_0x28ea7a,_0x432e35),_0x4e6a8c[_0x2b15('0x6')](),_0x4e6a8c[_0x2b15('0x19')]['select']();}}},w['defaultRevisionActions']=[_0x2b15('0x2b'),_0x2b15('0xd'),_0x2b15('0x23')];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x47d1=['Revision\x20history','ck-revision-history-sidebar__header__label','span','setTemplate','history','content','div','ck-reset_all','ck-revision-history-sidebar__header'];(function(_0x2448d7,_0x47d135){const _0x3c1ca8=function(_0x4efa6c){while(--_0x4efa6c){_0x2448d7['push'](_0x2448d7['shift']());}};_0x3c1ca8(++_0x47d135);}(_0x47d1,0xfc));const _0x3c1c=function(_0x2448d7,_0x47d135){_0x2448d7=_0x2448d7-0x0;let _0x3c1ca8=_0x47d1[_0x2448d7];return _0x3c1ca8;};import{View as _0x3e968a,IconView as _0x5ca038}from'ckeditor5/src/ui';import{getTranslation as _0xdf06ac}from'../../utils/common-translations';import{icons as _0xd2f0db}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rr extends _0x3e968a{constructor(_0x5670e4){super(_0x5670e4);const _0x9372f0=new _0x5ca038();_0x9372f0[_0x3c1c('0x5')]=_0xd2f0db[_0x3c1c('0x4')],this[_0x3c1c('0x3')]({'tag':_0x3c1c('0x6'),'attributes':{'class':['ck',_0x3c1c('0x7'),_0x3c1c('0x8')]},'children':[_0x9372f0,{'tag':_0x3c1c('0x2'),'attributes':{'class':['ck',_0x3c1c('0x1')]},'children':[_0xdf06ac(_0x5670e4,_0x3c1c('0x0'))]}]});}}
23
+ const _0x41ba=['span','ck-reset_all','ck-revision-history-sidebar__header','history','setTemplate','div','ck-revision-history-sidebar__header__label','Revision\x20history'];(function(_0x4381b8,_0x41ba28){const _0x13ee74=function(_0x24e22a){while(--_0x24e22a){_0x4381b8['push'](_0x4381b8['shift']());}};_0x13ee74(++_0x41ba28);}(_0x41ba,0x17f));const _0x13ee=function(_0x4381b8,_0x41ba28){_0x4381b8=_0x4381b8-0x0;let _0x13ee74=_0x41ba[_0x4381b8];return _0x13ee74;};import{View as _0x4fd3b2,IconView as _0x979d1b}from'ckeditor5/src/ui';import{getTranslation as _0x42b73e}from'../../utils/common-translations';import{icons as _0xef4c82}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rr extends _0x4fd3b2{constructor(_0x20a2c6){super(_0x20a2c6);const _0x94610f=new _0x979d1b();_0x94610f['content']=_0xef4c82[_0x13ee('0x4')],this[_0x13ee('0x5')]({'tag':_0x13ee('0x6'),'attributes':{'class':['ck',_0x13ee('0x2'),_0x13ee('0x3')]},'children':[_0x94610f,{'tag':_0x13ee('0x1'),'attributes':{'class':['ck',_0x13ee('0x7')]},'children':[_0x42b73e(_0x20a2c6,_0x13ee('0x0'))]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5746=['div','span','addRevision','ck-revision-history-sidebar__time-period__revisions','createCollection','revisionViews','add','ck-revision-history-sidebar__time-period__label','locale','remove','setTemplate','delegate','removeRevision','select'];(function(_0x3a1834,_0x574636){const _0x201d5b=function(_0x45bb87){while(--_0x45bb87){_0x3a1834['push'](_0x3a1834['shift']());}};_0x201d5b(++_0x574636);}(_0x5746,0x158));const _0x201d=function(_0x3a1834,_0x574636){_0x3a1834=_0x3a1834-0x0;let _0x201d5b=_0x5746[_0x3a1834];return _0x201d5b;};import{View as _0x408b25}from'ckeditor5/src/ui';import _0x4c3de2 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x4973a1}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x408b25{constructor(_0x169584,_0x5a8897,_0x4d9678){super(_0x169584);const _0x1adebe=_0x4973a1(_0x5a8897,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x5a8897,this['revisionViews']=this[_0x201d('0xa')](),this['_revisionActions']=_0x4d9678,this['revisionViews'][_0x201d('0x3')](_0x201d('0x5'))['to'](this),this[_0x201d('0xb')]['delegate']('setName')['to'](this),this[_0x201d('0x2')]({'tag':_0x201d('0x6'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':_0x201d('0x7'),'attributes':{'class':['ck',_0x201d('0xd')]},'children':[{'text':_0x1adebe}]},{'tag':_0x201d('0x6'),'attributes':{'class':['ck',_0x201d('0x9')]},'children':this['revisionViews']}]});}[_0x201d('0x8')](_0x33d01f){const _0x5aa961=new _0x4c3de2(this[_0x201d('0x0')],_0x33d01f,this['_revisionActions']);this[_0x201d('0xb')][_0x201d('0xc')](_0x5aa961);}[_0x201d('0x4')](_0x3a5b1b){const _0x3fb14b=this[_0x201d('0xb')]['find'](_0x3530c4=>_0x3530c4['id']===_0x3a5b1b['id']);this[_0x201d('0xb')][_0x201d('0x1')](_0x3fb14b);}}
23
+ const _0x3207=['addRevision','localizedPeriodName','removeRevision','_revisionActions','uiLanguage','createCollection','ck-revision-history-sidebar__time-period','revisionViews','locale','div','select','add','startDate','setTemplate','ck-revision-history-sidebar__time-period__label','ck-revision-history-sidebar__time-period__revisions'];(function(_0x3df681,_0x32075c){const _0x4a25de=function(_0x13fd83){while(--_0x13fd83){_0x3df681['push'](_0x3df681['shift']());}};_0x4a25de(++_0x32075c);}(_0x3207,0x168));const _0x4a25=function(_0x3df681,_0x32075c){_0x3df681=_0x3df681-0x0;let _0x4a25de=_0x3207[_0x3df681];return _0x4a25de;};import{View as _0x2d7463}from'ckeditor5/src/ui';import _0x4d9460 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x52be62}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x2d7463{constructor(_0x24b437,_0x4068b7,_0x37c169){super(_0x24b437);const _0x292597=_0x52be62(_0x4068b7,this[_0x4a25('0x0')][_0x4a25('0xc')])[_0x4a25('0x9')];this[_0x4a25('0x4')]=_0x4068b7,this[_0x4a25('0xf')]=this[_0x4a25('0xd')](),this[_0x4a25('0xb')]=_0x37c169,this[_0x4a25('0xf')]['delegate'](_0x4a25('0x2'))['to'](this),this[_0x4a25('0xf')]['delegate']('setName')['to'](this),this[_0x4a25('0x5')]({'tag':_0x4a25('0x1'),'attributes':{'class':['ck',_0x4a25('0xe')]},'children':[{'tag':'span','attributes':{'class':['ck',_0x4a25('0x6')]},'children':[{'text':_0x292597}]},{'tag':_0x4a25('0x1'),'attributes':{'class':['ck',_0x4a25('0x7')]},'children':this[_0x4a25('0xf')]}]});}[_0x4a25('0x8')](_0x4dbdd8){const _0x4bb213=new _0x4d9460(this[_0x4a25('0x0')],_0x4dbdd8,this['_revisionActions']);this['revisionViews'][_0x4a25('0x3')](_0x4bb213);}[_0x4a25('0xa')](_0x20ce03){const _0xec7af2=this[_0x4a25('0xf')]['find'](_0x3a55a1=>_0x3a55a1['id']===_0x20ce03['id']);this[_0x4a25('0xf')]['remove'](_0xec7af2);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4b63=['_removeRevision','add','setTemplate','map','ck-revision-history-sidebar__timeline','removeRevision','uiLanguage','highlightRevisions','find','createCollection','isEnabled','revisionViews','selectRevision','remove','_getTimePeriodViewByStartDate','ck-reset','_revisions','_addRevision','flat','startDate','getTime','timePeriodViews','delegate','get','locale','bindTemplate','addRevision','fire','createdAt','ck-rounded-corners','revisionSelected','ck-revision-history-sidebar','revisionSetName','select','deselect','setName','set','highlight','_revisionActions','div'];(function(_0x5d1aab,_0x4b6305){const _0x18c53a=function(_0xef6c9f){while(--_0xef6c9f){_0x5d1aab['push'](_0x5d1aab['shift']());}};_0x18c53a(++_0x4b6305);}(_0x4b63,0x1eb));const _0x18c5=function(_0x5d1aab,_0x4b6305){_0x5d1aab=_0x5d1aab-0x0;let _0x18c53a=_0x4b63[_0x5d1aab];return _0x18c53a;};import{View as _0x40e539}from'ckeditor5/src/ui';import _0x5a079a from'./revisionssidebartimeperiodview';import _0x1459ac from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x2b7a88}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x40e539{constructor(_0x2ed911,_0x1f210c,_0x57afac){super(_0x2ed911);const _0x642037=this[_0x18c5('0xe')];this[_0x18c5('0xa')]=this[_0x18c5('0x26')](),this['timePeriodViews'][_0x18c5('0xb')](_0x18c5('0x16'))['to'](this),this[_0x18c5('0xa')][_0x18c5('0xb')](_0x18c5('0x18'))['to'](this),this[_0x18c5('0x5')]=_0x1f210c,this[_0x18c5('0x1b')]=_0x57afac,this['on'](_0x18c5('0x16'),(_0x3b6bb3,_0x33e3c5)=>{this[_0x18c5('0x10')](_0x18c5('0x13'),_0x33e3c5);}),this['on'](_0x18c5('0x18'),(_0x4ffd8d,_0x5e264b)=>{this[_0x18c5('0x10')](_0x18c5('0x15'),_0x5e264b);}),this[_0x18c5('0x19')](_0x18c5('0x27'),!0x1),this[_0x18c5('0x1f')]({'tag':'div','attributes':{'class':['ck',_0x18c5('0x4'),_0x18c5('0x12'),_0x18c5('0x14')]},'children':[new _0x1459ac(_0x2ed911),{'tag':_0x18c5('0x1c'),'attributes':{'class':['ck',_0x18c5('0x21'),_0x642037['if'](_0x18c5('0x27'),'ck-disabled',_0x2a015a=>!_0x2a015a)]},'children':this[_0x18c5('0xa')]}]});}['render'](){super['render']();for(const _0x4fdbb3 of this['_revisions'])this[_0x18c5('0x6')](_0x4fdbb3);this[_0x18c5('0x5')]['on'](_0x18c5('0x1e'),(_0x4c65d0,_0x3a69d8)=>{this[_0x18c5('0x6')](_0x3a69d8);}),this[_0x18c5('0x5')]['on'](_0x18c5('0x2'),(_0x4fee72,_0x537366)=>{this[_0x18c5('0x1d')](_0x537366);});}get[_0x18c5('0x0')](){return this[_0x18c5('0xa')][_0x18c5('0x20')](_0x467560=>_0x467560[_0x18c5('0x0')]['map'](_0x1b9409=>_0x1b9409))[_0x18c5('0x7')]();}[_0x18c5('0x1')](_0x5f0fca){for(const _0x58da23 of this[_0x18c5('0x0')])_0x5f0fca&&_0x5f0fca['id']===_0x58da23['id']?_0x58da23[_0x18c5('0x16')]():_0x58da23[_0x18c5('0x17')]();}[_0x18c5('0x24')](_0x396f13){for(const _0x159903 of this[_0x18c5('0x0')])_0x396f13['some'](({id:_0x273014})=>_0x273014===_0x159903['id'])?_0x159903[_0x18c5('0x1a')]():_0x159903['unhighlight']();}[_0x18c5('0x6')](_0x195f2e){const _0x12f011=_0x2b7a88(_0x195f2e['createdAt'],this[_0x18c5('0xd')][_0x18c5('0x23')])['startDate'];let _0x101281=this[_0x18c5('0xa')][_0x18c5('0xc')](0x0);_0x101281&&_0x101281[_0x18c5('0x8')][_0x18c5('0x9')]()===_0x12f011['getTime']()||(_0x101281=new _0x5a079a(this[_0x18c5('0xd')],_0x12f011,this[_0x18c5('0x1b')]),this[_0x18c5('0xa')][_0x18c5('0x1e')](_0x101281)),_0x101281[_0x18c5('0xf')](_0x195f2e);}[_0x18c5('0x1d')](_0x1ed8bf){const _0xdf7e8f=_0x2b7a88(_0x1ed8bf[_0x18c5('0x11')],this[_0x18c5('0xd')][_0x18c5('0x23')])[_0x18c5('0x8')];this['_getTimePeriodViewByStartDate'](_0xdf7e8f)[_0x18c5('0x22')](_0x1ed8bf);}[_0x18c5('0x3')](_0x619495){return this['timePeriodViews'][_0x18c5('0x25')](_0x141d5b=>_0x141d5b[_0x18c5('0x8')][_0x18c5('0x9')]()===_0x619495[_0x18c5('0x9')]());}}
23
+ const _0x5b00=['createCollection','removeRevision','startDate','remove','uiLanguage','revisionViews','createdAt','some','set','locale','_removeRevision','bindTemplate','unhighlight','add','_addRevision','ck-disabled','ck-rounded-corners','setName','getTime','_getTimePeriodViewByStartDate','render','_revisions','fire','ck-revision-history-sidebar__timeline','timePeriodViews','highlightRevisions','find','isEnabled','revisionSelected','select','map','ck-reset','div','addRevision','delegate','_revisionActions','deselect'];(function(_0x304789,_0x5b008a){const _0x3aefce=function(_0x48c994){while(--_0x48c994){_0x304789['push'](_0x304789['shift']());}};_0x3aefce(++_0x5b008a);}(_0x5b00,0x12e));const _0x3aef=function(_0x304789,_0x5b008a){_0x304789=_0x304789-0x0;let _0x3aefce=_0x5b00[_0x304789];return _0x3aefce;};import{View as _0xa7e727}from'ckeditor5/src/ui';import _0x4ec65c from'./revisionssidebartimeperiodview';import _0x157753 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x18575e}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0xa7e727{constructor(_0x3d5902,_0x37ba98,_0x2f2a8c){super(_0x3d5902);const _0x549bb4=this[_0x3aef('0x5')];this[_0x3aef('0x12')]=this[_0x3aef('0x1f')](),this[_0x3aef('0x12')][_0x3aef('0x1c')](_0x3aef('0x17'))['to'](this),this[_0x3aef('0x12')][_0x3aef('0x1c')]('setName')['to'](this),this[_0x3aef('0xf')]=_0x37ba98,this[_0x3aef('0x1d')]=_0x2f2a8c,this['on']('select',(_0x5cdb59,_0x58f6c0)=>{this[_0x3aef('0x10')](_0x3aef('0x16'),_0x58f6c0);}),this['on'](_0x3aef('0xb'),(_0x5a0364,_0x57560b)=>{this[_0x3aef('0x10')]('revisionSetName',_0x57560b);}),this[_0x3aef('0x2')]('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x3aef('0x19'),_0x3aef('0xa'),'ck-revision-history-sidebar']},'children':[new _0x157753(_0x3d5902),{'tag':_0x3aef('0x1a'),'attributes':{'class':['ck',_0x3aef('0x11'),_0x549bb4['if'](_0x3aef('0x15'),_0x3aef('0x9'),_0x359a40=>!_0x359a40)]},'children':this[_0x3aef('0x12')]}]});}[_0x3aef('0xe')](){super[_0x3aef('0xe')]();for(const _0x1245e3 of this['_revisions'])this[_0x3aef('0x8')](_0x1245e3);this[_0x3aef('0xf')]['on'](_0x3aef('0x7'),(_0x4c4bac,_0x50b193)=>{this[_0x3aef('0x8')](_0x50b193);}),this[_0x3aef('0xf')]['on'](_0x3aef('0x22'),(_0x2d80c2,_0x595a3a)=>{this[_0x3aef('0x4')](_0x595a3a);});}get[_0x3aef('0x24')](){return this[_0x3aef('0x12')][_0x3aef('0x18')](_0x1a1ffe=>_0x1a1ffe[_0x3aef('0x24')][_0x3aef('0x18')](_0x4c09f0=>_0x4c09f0))['flat']();}['selectRevision'](_0x522197){for(const _0x1703e3 of this[_0x3aef('0x24')])_0x522197&&_0x522197['id']===_0x1703e3['id']?_0x1703e3[_0x3aef('0x17')]():_0x1703e3[_0x3aef('0x1e')]();}[_0x3aef('0x13')](_0x379984){for(const _0xe4c39e of this[_0x3aef('0x24')])_0x379984[_0x3aef('0x1')](({id:_0x3ed0b0})=>_0x3ed0b0===_0xe4c39e['id'])?_0xe4c39e['highlight']():_0xe4c39e[_0x3aef('0x6')]();}[_0x3aef('0x8')](_0x3d62e1){const _0x4f6c16=_0x18575e(_0x3d62e1[_0x3aef('0x0')],this[_0x3aef('0x3')][_0x3aef('0x23')])[_0x3aef('0x21')];let _0xa569dc=this[_0x3aef('0x12')]['get'](0x0);_0xa569dc&&_0xa569dc[_0x3aef('0x21')][_0x3aef('0xc')]()===_0x4f6c16['getTime']()||(_0xa569dc=new _0x4ec65c(this[_0x3aef('0x3')],_0x4f6c16,this[_0x3aef('0x1d')]),this['timePeriodViews'][_0x3aef('0x7')](_0xa569dc)),_0xa569dc[_0x3aef('0x1b')](_0x3d62e1);}[_0x3aef('0x4')](_0x5c7c0d){const _0xf34679=_0x18575e(_0x5c7c0d[_0x3aef('0x0')],this[_0x3aef('0x3')][_0x3aef('0x23')])[_0x3aef('0x21')];this['_getTimePeriodViewByStartDate'](_0xf34679)[_0x3aef('0x20')](_0x5c7c0d);}[_0x3aef('0xd')](_0x148943){return this[_0x3aef('0x12')][_0x3aef('0x14')](_0x4edbef=>_0x4edbef[_0x3aef('0x21')][_0x3aef('0xc')]()===_0x148943[_0x3aef('0xc')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5a5e=['week','year','day','toJSDate','local','minus','hasSame','month','toRelativeCalendar','startOf','setLocale','monthLong','fromJSDate','weekdayLong'];(function(_0x9636ff,_0x5a5e54){const _0x39b1a6=function(_0x74098e){while(--_0x74098e){_0x9636ff['push'](_0x9636ff['shift']());}};_0x39b1a6(++_0x5a5e54);}(_0x5a5e,0x8b));const _0x39b1=function(_0x9636ff,_0x5a5e54){_0x9636ff=_0x9636ff-0x0;let _0x39b1a6=_0x5a5e[_0x9636ff];return _0x39b1a6;};import{DateTime as _0x2bb1eb}from'luxon';export function getDateTimePeriodInfo(_0x3ce453,_0x5bb413){const _0x47f515=_0x2bb1eb[_0x39b1('0xd')](_0x3ce453)[_0x39b1('0xb')](_0x5bb413),_0xa9d01a=_0x2bb1eb[_0x39b1('0x5')](),_0x5397f1=_0xa9d01a[_0x39b1('0x6')]({'days':0x1})[_0x39b1('0xa')]('day');let _0x552e06,_0x2171a;return _0x47f515[_0x39b1('0x7')](_0xa9d01a,_0x39b1('0x3'))?(_0x552e06=_0x47f515[_0x39b1('0xa')](_0x39b1('0x3'))[_0x39b1('0x4')](),_0x2171a=_0x47f515[_0x39b1('0x9')]()):_0x47f515[_0x39b1('0x7')](_0x5397f1,_0x39b1('0x3'))?(_0x552e06=_0x5397f1[_0x39b1('0x4')](),_0x2171a=_0x47f515['toRelativeCalendar']()):_0x47f515[_0x39b1('0x7')](_0xa9d01a,_0x39b1('0x1'))?(_0x552e06=_0x47f515['startOf']('week')[_0x39b1('0x4')](),_0x2171a=_0x47f515[_0x39b1('0x0')]||''):_0x47f515[_0x39b1('0x7')](_0xa9d01a,_0x39b1('0x2'))?(_0x552e06=_0x47f515[_0x39b1('0xa')](_0x39b1('0x8'))['toJSDate'](),_0x2171a=_0x47f515[_0x39b1('0xc')]||''):(_0x552e06=_0x47f515[_0x39b1('0xa')]('year')[_0x39b1('0x4')](),_0x2171a=String(_0x47f515[_0x39b1('0x2')])),{'startDate':_0x552e06,'localizedPeriodName':_0x2171a};}
23
+ const _0x5cee=['toRelativeCalendar','month','local','hasSame','monthLong','toJSDate','week','startOf','day','year'];(function(_0x39d652,_0x5cee85){const _0x4eb05f=function(_0x2e856f){while(--_0x2e856f){_0x39d652['push'](_0x39d652['shift']());}};_0x4eb05f(++_0x5cee85);}(_0x5cee,0x157));const _0x4eb0=function(_0x39d652,_0x5cee85){_0x39d652=_0x39d652-0x0;let _0x4eb05f=_0x5cee[_0x39d652];return _0x4eb05f;};import{DateTime as _0x599255}from'luxon';export function getDateTimePeriodInfo(_0x40c9b3,_0x2815f3){const _0x5e696d=_0x599255['fromJSDate'](_0x40c9b3)['setLocale'](_0x2815f3),_0x456f17=_0x599255[_0x4eb0('0x9')](),_0xd510c7=_0x456f17['minus']({'days':0x1})['startOf']('day');let _0x1c8cf4,_0x19c38b;return _0x5e696d[_0x4eb0('0x0')](_0x456f17,'day')?(_0x1c8cf4=_0x5e696d[_0x4eb0('0x4')]('day')['toJSDate'](),_0x19c38b=_0x5e696d[_0x4eb0('0x7')]()):_0x5e696d[_0x4eb0('0x0')](_0xd510c7,_0x4eb0('0x5'))?(_0x1c8cf4=_0xd510c7[_0x4eb0('0x2')](),_0x19c38b=_0x5e696d[_0x4eb0('0x7')]()):_0x5e696d[_0x4eb0('0x0')](_0x456f17,_0x4eb0('0x3'))?(_0x1c8cf4=_0x5e696d[_0x4eb0('0x4')]('week')[_0x4eb0('0x2')](),_0x19c38b=_0x5e696d['weekdayLong']||''):_0x5e696d[_0x4eb0('0x0')](_0x456f17,_0x4eb0('0x6'))?(_0x1c8cf4=_0x5e696d[_0x4eb0('0x4')](_0x4eb0('0x8'))['toJSDate'](),_0x19c38b=_0x5e696d[_0x4eb0('0x1')]||''):(_0x1c8cf4=_0x5e696d[_0x4eb0('0x4')](_0x4eb0('0x6'))[_0x4eb0('0x2')](),_0x19c38b=String(_0x5e696d[_0x4eb0('0x6')])),{'startDate':_0x1c8cf4,'localizedPeriodName':_0x19c38b};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x406b=['_model','focus','Removed\x20by','div','Suggested\x20by','author','bindTemplate','changeId','ck-revision-change__label','set','span','add','type','name','ck-annotation','ck-revision-change__','isSuggestion','ck-revision-change','Added\x20by'];(function(_0x2e02fb,_0x406baa){const _0x352314=function(_0x567bf0){while(--_0x567bf0){_0x2e02fb['push'](_0x2e02fb['shift']());}};_0x352314(++_0x406baa);}(_0x406b,0x125));const _0x3523=function(_0x2e02fb,_0x406baa){_0x2e02fb=_0x2e02fb-0x0;let _0x352314=_0x406b[_0x2e02fb];return _0x352314;};import{View as _0x583bcc}from'ckeditor5/src/ui';import{getTranslation as _0xb1535d}from'../../utils/common-translations';export default class Z extends _0x583bcc{constructor(_0x27a6c9,_0x13fdfb){super(_0x27a6c9),this[_0x3523('0xb')]=_0x13fdfb,this[_0x3523('0x12')]=_0x13fdfb['id'];const _0x3eeb27=this[_0x3523('0x11')],_0x123405=_0xb1535d(_0x27a6c9,_0x13fdfb['data'][_0x3523('0x8')]?_0x3523('0xf'):_0x3523('0x3')==_0x13fdfb['type']?_0x3523('0xa'):_0x3523('0xd'));this[_0x3523('0x1')](_0x3523('0x4'),_0x13fdfb[_0x3523('0x4')]),this['setTemplate']({'tag':_0x3523('0xe'),'attributes':{'class':[_0x3523('0x6'),_0x3523('0x9'),_0x3eeb27['to'](_0x3523('0x4'),_0x338a2e=>_0x3523('0x7')+_0x338a2e)],'tabindex':-0x1},'children':[{'tag':_0x3523('0x2'),'children':[{'tag':'span','attributes':{'class':[_0x3523('0x0')]},'children':[{'text':_0x123405}]},{'text':'\x20'+_0x13fdfb[_0x3523('0x10')][_0x3523('0x5')]}]}]});}[_0x3523('0xc')](){this['element'][_0x3523('0xc')]();}}
23
+ const _0x2e5a=['set','type','isSuggestion','focus','span','_model','name','ck-revision-change__','changeId','data','author','ck-revision-change','ck-revision-change__label','ck-annotation','setTemplate','add','element','Added\x20by','Suggested\x20by'];(function(_0x37232b,_0x2e5afd){const _0x4934b2=function(_0x1bb2c9){while(--_0x1bb2c9){_0x37232b['push'](_0x37232b['shift']());}};_0x4934b2(++_0x2e5afd);}(_0x2e5a,0x14b));const _0x4934=function(_0x37232b,_0x2e5afd){_0x37232b=_0x37232b-0x0;let _0x4934b2=_0x2e5a[_0x37232b];return _0x4934b2;};import{View as _0x496366}from'ckeditor5/src/ui';import{getTranslation as _0x38fd36}from'../../utils/common-translations';export default class Z extends _0x496366{constructor(_0x544ebb,_0x34059e){super(_0x544ebb),this[_0x4934('0x10')]=_0x34059e,this[_0x4934('0x0')]=_0x34059e['id'];const _0x414fef=this['bindTemplate'],_0xd27d06=_0x38fd36(_0x544ebb,_0x34059e[_0x4934('0x1')][_0x4934('0xd')]?_0x4934('0xa'):_0x4934('0x7')==_0x34059e[_0x4934('0xc')]?_0x4934('0x9'):'Removed\x20by');this[_0x4934('0xb')]('type',_0x34059e[_0x4934('0xc')]),this[_0x4934('0x6')]({'tag':'div','attributes':{'class':[_0x4934('0x5'),_0x4934('0x3'),_0x414fef['to']('type',_0x494ad5=>_0x4934('0x12')+_0x494ad5)],'tabindex':-0x1},'children':[{'tag':_0x4934('0xf'),'children':[{'tag':_0x4934('0xf'),'attributes':{'class':[_0x4934('0x4')]},'children':[{'text':_0xd27d06}]},{'text':'\x20'+_0x34059e[_0x4934('0x2')][_0x4934('0x11')]}]}]});}[_0x4934('0xe')](){this[_0x4934('0x8')]['focus']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1b45=['ck-revision-history-ui__changes-navigation__label','isBackwardNavigationEnabled','div','isForwardNavigationEnabled','isReady','Show\x20previous\x20change','NUMBER_OF_CHANGES','currentChangeNumber','setTemplate','isNavigationMode','set','Total','ck-hidden','ck-revision-history-ui__changes-navigation__wrapper','Show\x20next\x20change','forward','ck-revision-history-ui__changes-navigation__navigation','_statusText','bindTemplate','span','backward','No\x20changes','_isStatusLabelVisible','execute','bind','X_OF_Y_CHANGES','fire','isEnabled'];(function(_0x352353,_0x1b45e5){const _0x240787=function(_0x3e94d1){while(--_0x3e94d1){_0x352353['push'](_0x352353['shift']());}};_0x240787(++_0x1b45e5);}(_0x1b45,0x143));const _0x2407=function(_0x352353,_0x1b45e5){_0x352353=_0x352353-0x0;let _0x240787=_0x1b45[_0x352353];return _0x240787;};import{View as _0x904c69,ButtonView as _0x1b024c,ToolbarSeparatorView as _0x3d2d43}from'ckeditor5/src/ui';import{getTranslation as _0xca525a}from'../../utils/common-translations';import _0x54c215 from'../../../theme/icons/arrow-up.svg';import _0x4266be from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x904c69{constructor(_0x39fe51){super(_0x39fe51);const _0x25f75c=this[_0x2407('0x3')],_0x33a88f=new _0x1b024c(_0x39fe51),_0x4ab668=new _0x1b024c(_0x39fe51);this['set']('isNavigationMode',!0x1),this[_0x2407('0x17')](_0x2407('0x11'),!0x1),this[_0x2407('0x17')](_0x2407('0x14'),0x0),this['set']('numberOfChanges',0x0),this[_0x2407('0x17')]('isForwardNavigationEnabled',!0x1),this['set'](_0x2407('0xe'),!0x1),this[_0x2407('0x9')](_0x2407('0x7'))['to'](this,'isReady',this,'numberOfChanges',(_0x30924b,_0x22a945)=>_0x30924b&&_0x22a945>0x0),this[_0x2407('0x9')](_0x2407('0x2'))['to'](this,_0x2407('0x11'),this,_0x2407('0x14'),this,'numberOfChanges',this,'isNavigationMode',(_0xf4e464,_0x1f2909,_0x5ee497,_0x27ab5e)=>{if(!_0xf4e464)return _0xca525a(_0x39fe51,'Loading...');if(!_0x5ee497)return _0xca525a(_0x39fe51,_0x2407('0x6'));const _0x26ae43=_0xca525a(_0x39fe51,_0x2407('0x13'),_0x5ee497);return _0x27ab5e?_0xca525a(_0x39fe51,_0x2407('0xa'),[_0x1f2909+0x1,_0x5ee497]):_0x26ae43;}),_0x33a88f[_0x2407('0x17')]({'label':_0xca525a(_0x39fe51,_0x2407('0x12')),'tooltip':!0x0,'icon':_0x54c215}),_0x4ab668[_0x2407('0x17')]({'label':_0xca525a(_0x39fe51,_0x2407('0x1b')),'tooltip':!0x0,'icon':_0x4266be}),_0x33a88f[_0x2407('0x9')](_0x2407('0xc'))['to'](this,_0x2407('0xe')),_0x4ab668['bind']('isEnabled')['to'](this,_0x2407('0x10')),_0x33a88f['on'](_0x2407('0x8'),()=>this['fire'](_0x2407('0x8'),_0x2407('0x5'))),_0x4ab668['on'](_0x2407('0x8'),()=>this[_0x2407('0xb')](_0x2407('0x8'),_0x2407('0x0'))),this[_0x2407('0x15')]({'tag':_0x2407('0xf'),'attributes':{'class':['ck','ck-revision-history-ui','ck-revision-history-ui__changes-navigation']},'children':[{'tag':_0x2407('0x4'),'attributes':{'class':[_0x2407('0x1a')]},'children':[{'tag':_0x2407('0x4'),'attributes':{'class':[_0x2407('0xd'),_0x25f75c['if'](_0x2407('0x7'),_0x2407('0x19'),_0xe986a2=>!_0xe986a2)]},'children':[{'text':_0x25f75c['to'](_0x2407('0x16'),_0x26f4a1=>_0x26f4a1?_0xca525a(_0x39fe51,'EDIT_X_OF_Y_REVISIONS')+':\x20':_0xca525a(_0x39fe51,_0x2407('0x18'))+':\x20')}]},{'text':_0x25f75c['to']('_statusText')}]},new _0x3d2d43(),{'tag':_0x2407('0xf'),'attributes':{'class':[_0x2407('0x1')]},'children':[_0x33a88f,_0x4ab668]}]});}}
23
+ const _0x5c1d=['setTemplate','No\x20changes','isReady','execute','fire','set','isNavigationMode','Total','ck-hidden','EDIT_X_OF_Y_REVISIONS','isForwardNavigationEnabled','span','X_OF_Y_CHANGES','isBackwardNavigationEnabled','ck-revision-history-ui__changes-navigation__label','currentChangeNumber','numberOfChanges','_statusText','NUMBER_OF_CHANGES','isEnabled','bind','div','Show\x20previous\x20change','Loading...','Show\x20next\x20change','_isStatusLabelVisible','backward','ck-revision-history-ui','forward'];(function(_0x33501f,_0x5c1d50){const _0x5ae2c5=function(_0x524a0e){while(--_0x524a0e){_0x33501f['push'](_0x33501f['shift']());}};_0x5ae2c5(++_0x5c1d50);}(_0x5c1d,0x13b));const _0x5ae2=function(_0x33501f,_0x5c1d50){_0x33501f=_0x33501f-0x0;let _0x5ae2c5=_0x5c1d[_0x33501f];return _0x5ae2c5;};import{View as _0x2a92d7,ButtonView as _0x25f463,ToolbarSeparatorView as _0x1a3f3e}from'ckeditor5/src/ui';import{getTranslation as _0x5922c9}from'../../utils/common-translations';import _0x1dc872 from'../../../theme/icons/arrow-up.svg';import _0x27da5b from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x2a92d7{constructor(_0x44d734){super(_0x44d734);const _0x509689=this['bindTemplate'],_0x456cf5=new _0x25f463(_0x44d734),_0x5d8a71=new _0x25f463(_0x44d734);this[_0x5ae2('0x9')](_0x5ae2('0xa'),!0x1),this['set']('isReady',!0x1),this[_0x5ae2('0x9')](_0x5ae2('0x13'),0x0),this['set'](_0x5ae2('0x14'),0x0),this[_0x5ae2('0x9')](_0x5ae2('0xe'),!0x1),this[_0x5ae2('0x9')](_0x5ae2('0x11'),!0x1),this['bind'](_0x5ae2('0x0'))['to'](this,_0x5ae2('0x6'),this,_0x5ae2('0x14'),(_0x21e185,_0x2723fa)=>_0x21e185&&_0x2723fa>0x0),this[_0x5ae2('0x18')](_0x5ae2('0x15'))['to'](this,_0x5ae2('0x6'),this,_0x5ae2('0x13'),this,'numberOfChanges',this,_0x5ae2('0xa'),(_0x4fb2c8,_0x11f1ec,_0x2c6955,_0xa9a115)=>{if(!_0x4fb2c8)return _0x5922c9(_0x44d734,_0x5ae2('0x1b'));if(!_0x2c6955)return _0x5922c9(_0x44d734,_0x5ae2('0x5'));const _0x354f1f=_0x5922c9(_0x44d734,_0x5ae2('0x16'),_0x2c6955);return _0xa9a115?_0x5922c9(_0x44d734,_0x5ae2('0x10'),[_0x11f1ec+0x1,_0x2c6955]):_0x354f1f;}),_0x456cf5[_0x5ae2('0x9')]({'label':_0x5922c9(_0x44d734,_0x5ae2('0x1a')),'tooltip':!0x0,'icon':_0x1dc872}),_0x5d8a71[_0x5ae2('0x9')]({'label':_0x5922c9(_0x44d734,_0x5ae2('0x1c')),'tooltip':!0x0,'icon':_0x27da5b}),_0x456cf5[_0x5ae2('0x18')](_0x5ae2('0x17'))['to'](this,_0x5ae2('0x11')),_0x5d8a71['bind'](_0x5ae2('0x17'))['to'](this,_0x5ae2('0xe')),_0x456cf5['on'](_0x5ae2('0x7'),()=>this[_0x5ae2('0x8')](_0x5ae2('0x7'),_0x5ae2('0x1'))),_0x5d8a71['on'](_0x5ae2('0x7'),()=>this[_0x5ae2('0x8')]('execute',_0x5ae2('0x3'))),this[_0x5ae2('0x4')]({'tag':'div','attributes':{'class':['ck',_0x5ae2('0x2'),'ck-revision-history-ui__changes-navigation']},'children':[{'tag':_0x5ae2('0xf'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':_0x5ae2('0xf'),'attributes':{'class':[_0x5ae2('0x12'),_0x509689['if'](_0x5ae2('0x0'),_0x5ae2('0xc'),_0x44728e=>!_0x44728e)]},'children':[{'text':_0x509689['to'](_0x5ae2('0xa'),_0x35ef9c=>_0x35ef9c?_0x5922c9(_0x44d734,_0x5ae2('0xd'))+':\x20':_0x5922c9(_0x44d734,_0x5ae2('0xb'))+':\x20')}]},{'text':_0x509689['to']('_statusText')}]},new _0x1a3f3e(),{'tag':_0x5ae2('0x19'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x456cf5,_0x5d8a71]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xd989=['document','editing','ck-editor__editable__loading-overlay','editor','change','addClass','hide','roots','show','RevisionViewerLoadingOverlay','view','pluginName'];(function(_0x39a45a,_0xd98947){const _0x4e1425=function(_0x2050ed){while(--_0x2050ed){_0x39a45a['push'](_0x39a45a['shift']());}};_0x4e1425(++_0xd98947);}(_0xd989,0x156));const _0x4e14=function(_0x39a45a,_0xd98947){_0x39a45a=_0x39a45a-0x0;let _0x4e1425=_0xd989[_0x39a45a];return _0x4e1425;};import{Plugin as _0x2cbba7}from'ckeditor5/src/core';const oe=_0x4e14('0x8');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x2cbba7{static get[_0x4e14('0x5')](){return _0x4e14('0x3');}[_0x4e14('0x2')](){const _0xac88c4=this[_0x4e14('0x9')][_0x4e14('0x7')][_0x4e14('0x4')];_0xac88c4[_0x4e14('0xa')](_0xb38e79=>{for(const _0x22225b of _0xac88c4['document'][_0x4e14('0x1')])_0xb38e79[_0x4e14('0xb')](oe,_0x22225b);});}[_0x4e14('0x0')](){const _0x5c1e36=this[_0x4e14('0x9')][_0x4e14('0x7')]['view'];_0x5c1e36[_0x4e14('0xa')](_0x4cccb0=>{for(const _0x3c2100 of _0x5c1e36[_0x4e14('0x6')][_0x4e14('0x1')])_0x4cccb0['removeClass'](oe,_0x3c2100);});}}
23
+ const _0x1013=['editor','roots','removeClass','change','document','ck-editor__editable__loading-overlay','view','RevisionViewerLoadingOverlay','hide','show'];(function(_0x43f8aa,_0x101384){const _0x5bcc00=function(_0x1055f1){while(--_0x1055f1){_0x43f8aa['push'](_0x43f8aa['shift']());}};_0x5bcc00(++_0x101384);}(_0x1013,0x181));const _0x5bcc=function(_0x43f8aa,_0x101384){_0x43f8aa=_0x43f8aa-0x0;let _0x5bcc00=_0x1013[_0x43f8aa];return _0x5bcc00;};import{Plugin as _0x499cd1}from'ckeditor5/src/core';const oe=_0x5bcc('0x0');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x499cd1{static get['pluginName'](){return _0x5bcc('0x2');}[_0x5bcc('0x4')](){const _0x5b8000=this[_0x5bcc('0x5')]['editing'][_0x5bcc('0x1')];_0x5b8000[_0x5bcc('0x8')](_0x3415b3=>{for(const _0x1676a9 of _0x5b8000[_0x5bcc('0x9')][_0x5bcc('0x6')])_0x3415b3['addClass'](oe,_0x1676a9);});}[_0x5bcc('0x3')](){const _0x48f896=this['editor']['editing'][_0x5bcc('0x1')];_0x48f896[_0x5bcc('0x8')](_0x104447=>{for(const _0x3c2406 of _0x48f896[_0x5bcc('0x9')][_0x5bcc('0x6')])_0x104447[_0x5bcc('0x7')](oe,_0x3c2406);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x37f9=['execute','RevisionViewerUI','closeRevisionViewerCallback','listenTo','add','set','exitToEditing','componentFactory','show','forward','showPreviousChange','showNextChange','change:isReady','get','plugins','pluginName','commands','changesNavigation','requires','isForwardNavigationEnabled','Restore\x20this\x20revision','isBackwardNavigationEnabled','isNavigationMode','Back\x20to\x20editing','config','bind','currentChangeNumber','isEnabled','hide','numberOfChanges','editor','restoreRevision'];(function(_0x9978a6,_0x37f9a5){const _0x790f23=function(_0x1a9bfe){while(--_0x1a9bfe){_0x9978a6['push'](_0x9978a6['shift']());}};_0x790f23(++_0x37f9a5);}(_0x37f9,0x8c));const _0x790f=function(_0x9978a6,_0x37f9a5){_0x9978a6=_0x9978a6-0x0;let _0x790f23=_0x37f9[_0x9978a6];return _0x790f23;};import{Plugin as _0x30e699}from'ckeditor5/src/core';import{ButtonView as _0x34530b}from'ckeditor5/src/ui';import _0x2274b5 from'./changesnavigationview';import _0x3ca46d from'./../../revisionviewer';import _0x4547ff from'./revisionviewerloadingoverlay';import{getTranslation as _0x382e05}from'../../utils/common-translations';import _0x3dc727 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x30e699{static get[_0x790f('0x3')](){return _0x790f('0x15');}static get[_0x790f('0x6')](){return[_0x3ca46d,_0x4547ff];}['init'](){const _0x2aec14=this[_0x790f('0x12')],_0x2d1d8b=_0x2aec14[_0x790f('0x2')]['get'](_0x3ca46d),_0x5cb13b=_0x2aec14['plugins']['get'](_0x4547ff);_0x2aec14['ui']['componentFactory']['add'](_0x790f('0x1a'),_0x32d59d=>{const _0xfebac1=new _0x34530b(_0x32d59d);return _0xfebac1[_0x790f('0x19')]({'label':_0x382e05(_0x32d59d,_0x790f('0xb')),'icon':_0x3dc727,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this[_0x790f('0x17')](_0xfebac1,_0x790f('0x14'),()=>{_0x2aec14[_0x790f('0xc')][_0x790f('0x1')]('revisionHistory')[_0x790f('0x16')]();}),_0xfebac1;}),_0x2aec14['ui'][_0x790f('0x1b')]['add'](_0x790f('0x13'),_0x408632=>{const _0x50bf1e=new _0x34530b(_0x408632);return _0x50bf1e[_0x790f('0x19')]({'label':_0x382e05(_0x408632,_0x790f('0x8')),'withText':!0x0,'tooltip':!0x0}),_0x50bf1e[_0x790f('0xd')](_0x790f('0xf'))['to'](_0x2aec14[_0x790f('0x4')][_0x790f('0x1')](_0x790f('0x13'))),this[_0x790f('0x17')](_0x50bf1e,_0x790f('0x14'),()=>_0x2aec14[_0x790f('0x14')](_0x790f('0x13'))),_0x50bf1e;}),_0x2aec14['ui']['componentFactory'][_0x790f('0x18')](_0x790f('0x5'),_0x4ec9cf=>{const _0x5bc9=new _0x2274b5(_0x4ec9cf),_0x3e6bea=_0x2aec14[_0x790f('0x4')][_0x790f('0x1')](_0x790f('0x1e')),_0x1de04f=_0x2aec14[_0x790f('0x4')][_0x790f('0x1')](_0x790f('0x1f'));return _0x5bc9[_0x790f('0xd')](_0x790f('0x9'))['to'](_0x3e6bea,'isEnabled'),_0x5bc9[_0x790f('0xd')](_0x790f('0x7'))['to'](_0x1de04f,_0x790f('0xf')),_0x5bc9['bind']('isReady',_0x790f('0xe'),_0x790f('0x11'),_0x790f('0xa'))['to'](_0x2d1d8b),this['listenTo'](_0x5bc9,_0x790f('0x14'),(_0x2d071a,_0x4ba8c2)=>{_0x2aec14[_0x790f('0x14')](_0x790f('0x1d')===_0x4ba8c2?_0x790f('0x1f'):'showPreviousChange');}),_0x5bc9;}),_0x5cb13b[_0x790f('0x1c')](),_0x2d1d8b['on'](_0x790f('0x0'),(_0x11258f,_0x4a06df,_0x4ba8e9)=>{_0x4ba8e9?_0x5cb13b[_0x790f('0x10')]():_0x5cb13b[_0x790f('0x1c')]();});}}
23
+ const _0x55af=['componentFactory','showNextChange','isEnabled','revisionHistory','currentChangeNumber','execute','init','listenTo','restoreRevision','show','editor','showPreviousChange','hide','numberOfChanges','add','Restore\x20this\x20revision','isBackwardNavigationEnabled','change:isReady','bind','Back\x20to\x20editing','isForwardNavigationEnabled','set','plugins','changesNavigation','ck-revision-history-ui__back-to-editing','commands','get','config','requires'];(function(_0x2e328e,_0x55af84){const _0x4a3c76=function(_0x2f95fd){while(--_0x2f95fd){_0x2e328e['push'](_0x2e328e['shift']());}};_0x4a3c76(++_0x55af84);}(_0x55af,0x126));const _0x4a3c=function(_0x2e328e,_0x55af84){_0x2e328e=_0x2e328e-0x0;let _0x4a3c76=_0x55af[_0x2e328e];return _0x4a3c76;};import{Plugin as _0x56c941}from'ckeditor5/src/core';import{ButtonView as _0x4db8cb}from'ckeditor5/src/ui';import _0x3ef943 from'./changesnavigationview';import _0x5e0177 from'./../../revisionviewer';import _0x294a46 from'./revisionviewerloadingoverlay';import{getTranslation as _0x1453b4}from'../../utils/common-translations';import _0x11e58b from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x56c941{static get['pluginName'](){return'RevisionViewerUI';}static get[_0x4a3c('0x18')](){return[_0x5e0177,_0x294a46];}[_0x4a3c('0x2')](){const _0x68c59a=this[_0x4a3c('0x6')],_0x4cb6ce=_0x68c59a['plugins'][_0x4a3c('0x16')](_0x5e0177),_0x1c94a6=_0x68c59a[_0x4a3c('0x12')][_0x4a3c('0x16')](_0x294a46);_0x68c59a['ui'][_0x4a3c('0x19')]['add']('exitToEditing',_0x57508c=>{const _0x23409a=new _0x4db8cb(_0x57508c);return _0x23409a[_0x4a3c('0x11')]({'label':_0x1453b4(_0x57508c,_0x4a3c('0xf')),'icon':_0x11e58b,'withText':!0x0,'tooltip':!0x0,'class':_0x4a3c('0x14')}),this['listenTo'](_0x23409a,_0x4a3c('0x1'),()=>{_0x68c59a[_0x4a3c('0x17')][_0x4a3c('0x16')](_0x4a3c('0x1c'))['closeRevisionViewerCallback']();}),_0x23409a;}),_0x68c59a['ui']['componentFactory'][_0x4a3c('0xa')](_0x4a3c('0x4'),_0x49438d=>{const _0xa456ec=new _0x4db8cb(_0x49438d);return _0xa456ec['set']({'label':_0x1453b4(_0x49438d,_0x4a3c('0xb')),'withText':!0x0,'tooltip':!0x0}),_0xa456ec[_0x4a3c('0xe')]('isEnabled')['to'](_0x68c59a[_0x4a3c('0x15')][_0x4a3c('0x16')](_0x4a3c('0x4'))),this[_0x4a3c('0x3')](_0xa456ec,_0x4a3c('0x1'),()=>_0x68c59a[_0x4a3c('0x1')](_0x4a3c('0x4'))),_0xa456ec;}),_0x68c59a['ui'][_0x4a3c('0x19')][_0x4a3c('0xa')](_0x4a3c('0x13'),_0x57a49f=>{const _0x1c1844=new _0x3ef943(_0x57a49f),_0xda0cf8=_0x68c59a[_0x4a3c('0x15')]['get'](_0x4a3c('0x7')),_0x3c4218=_0x68c59a[_0x4a3c('0x15')]['get'](_0x4a3c('0x1a'));return _0x1c1844[_0x4a3c('0xe')](_0x4a3c('0xc'))['to'](_0xda0cf8,_0x4a3c('0x1b')),_0x1c1844['bind'](_0x4a3c('0x10'))['to'](_0x3c4218,_0x4a3c('0x1b')),_0x1c1844['bind']('isReady',_0x4a3c('0x0'),_0x4a3c('0x9'),'isNavigationMode')['to'](_0x4cb6ce),this['listenTo'](_0x1c1844,'execute',(_0x332f04,_0xd3355)=>{_0x68c59a['execute']('forward'===_0xd3355?_0x4a3c('0x1a'):_0x4a3c('0x7'));}),_0x1c1844;}),_0x1c94a6[_0x4a3c('0x5')](),_0x4cb6ce['on'](_0x4a3c('0xd'),(_0x30c7b4,_0x4acc4b,_0x20812f)=>{_0x20812f?_0x1c94a6[_0x4a3c('0x8')]():_0x1c94a6[_0x4a3c('0x5')]();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x63b886,_0xeb0023,_0xe7e4c0){const t=_0x63b886['t'];switch(_0xeb0023){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'},_0xe7e4c0);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xe7e4c0);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 _0xeb0023;}}
23
+ export function getTranslation(_0x5001a8,_0x260c8e,_0x39b1c5){const t=_0x5001a8['t'];switch(_0x260c8e){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'},_0x39b1c5);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x39b1c5);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 _0x260c8e;}}