@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230726.0 → 0.0.0-nightly-20230728.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +6 -6
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2f07=['requires','panelView','get','RevisionHistoryUI','isReadOnly','revisionHistory','cancel','saveRevision','bind','remove','Open\x20revision\x20history','editor','saveButtonView','addMany','plugins','isEnabled','config','children','componentFactory','isReady','items','change:isOpen','revisionName','focus','Revision\x20history','pluginName','render','execute','add','showRevisionViewerCallback','Save\x20current\x20revision','init','length','submit','set'];(function(_0x5ca1be,_0x2f074c){const _0x1deb61=function(_0x2222ea){while(--_0x2222ea){_0x5ca1be['push'](_0x5ca1be['shift']());}};_0x1deb61(++_0x2f074c);}(_0x2f07,0x1e9));const _0x1deb=function(_0x5ca1be,_0x2f074c){_0x5ca1be=_0x5ca1be-0x0;let _0x1deb61=_0x2f07[_0x5ca1be];return _0x1deb61;};import{Plugin as _0x28dafe}from'ckeditor5/src/core';import{ListView as _0x1dae5a,ListItemView as _0x17758b,ButtonView as _0x4c9a7f,createDropdown as _0x2f5e26}from'ckeditor5/src/ui';import _0x452f2d from'../../revisiontracker';import _0x507521 from'./revisionhistorysaverevisionformview';import _0x7be430 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x357b8e}from'../../utils/common-translations';export default class u extends _0x28dafe{static get[_0x1deb('0x1a')](){return _0x1deb('0x4');}static get[_0x1deb('0x1')](){return[_0x452f2d];}[_0x1deb('0x20')](){const _0x91130c=this[_0x1deb('0xc')],_0x588409=_0x91130c[_0x1deb('0xf')][_0x1deb('0x3')]('RevisionTracker');_0x91130c['ui'][_0x1deb('0x13')][_0x1deb('0x1d')](_0x1deb('0x6'),_0x30925a=>{const _0xe9abec=_0x2f5e26(_0x30925a),_0x288e36=_0xe9abec[_0x1deb('0x2')]['children'],_0x5e932b=new _0x1dae5a(_0x30925a),_0x231697=new _0x17758b(_0x30925a),_0x346b1a=new _0x4c9a7f(_0x30925a),_0x33d980=new _0x17758b(_0x30925a),_0x5edbca=new _0x4c9a7f(_0x30925a),_0x45fd7c=new _0x507521(_0x30925a);function _0x35afa0(){_0x288e36[_0x1deb('0x21')]&&_0x288e36['remove'](0x0),_0x288e36[_0x1deb('0x1d')](_0x5e932b);}function _0x4685ec(){_0xe9abec['isOpen']=!0x1,_0x91130c['editing']['view'][_0x1deb('0x18')]();}return _0xe9abec['bind'](_0x1deb('0x10'))['to'](_0x588409,'isReady',_0x588409,_0x1deb('0x10'),_0x91130c,_0x1deb('0x5'),(_0x42fcc9,_0x1cddda,_0x1a99a8)=>_0x42fcc9&&_0x1cddda&&!_0x1a99a8),_0xe9abec['buttonView'][_0x1deb('0x0')]({'icon':_0x7be430,'label':_0x357b8e(_0x30925a,_0x1deb('0x19')),'tooltip':!0x0}),_0x346b1a[_0x1deb('0x0')]({'label':_0x357b8e(_0x30925a,_0x1deb('0x1f')),'withText':!0x0}),_0x346b1a[_0x1deb('0x9')](_0x1deb('0x10'))['to'](_0x588409,_0x1deb('0x14'),_0x588409,_0x1deb('0x10'),_0x91130c,_0x1deb('0x5'),(_0x25d9cf,_0xfe158b,_0x2a44e6)=>_0x25d9cf&&_0xfe158b&&!_0x2a44e6),_0x346b1a['on'](_0x1deb('0x1c'),()=>function(){_0x288e36[_0x1deb('0x21')]&&_0x288e36[_0x1deb('0xa')](0x0),(_0x45fd7c['reset'](),_0x288e36['add'](_0x45fd7c),_0x45fd7c['focus']());}()),_0x5edbca[_0x1deb('0x0')]({'label':_0x357b8e(_0x30925a,_0x1deb('0xb')),'withText':!0x0}),_0x5edbca[_0x1deb('0x9')]('isEnabled')['to'](_0x588409,_0x1deb('0x14'),_0x91130c,'isReadOnly',(_0x21b074,_0x4c1fe6)=>_0x21b074&&!_0x4c1fe6),_0x5edbca['on'](_0x1deb('0x1c'),()=>{_0x91130c[_0x1deb('0x11')][_0x1deb('0x3')](_0x1deb('0x6'))[_0x1deb('0x1e')](),_0x4685ec();}),_0x231697['children'][_0x1deb('0x1d')](_0x346b1a),_0x33d980[_0x1deb('0x12')]['add'](_0x5edbca),_0x5e932b[_0x1deb('0x15')][_0x1deb('0xe')]([_0x231697,_0x33d980]),_0xe9abec['on'](_0x1deb('0x16'),()=>_0x35afa0()),_0x45fd7c[_0x1deb('0xd')][_0x1deb('0x9')]('isEnabled')['to'](_0x588409,_0x1deb('0x14'),_0x588409,_0x1deb('0x10'),_0x91130c,_0x1deb('0x5'),(_0x1907d7,_0x41a7b6,_0x4a9e3b)=>_0x1907d7&&_0x41a7b6&&!_0x4a9e3b),_0x45fd7c['on'](_0x1deb('0x22'),()=>(_0x91130c[_0x1deb('0xf')]['get'](_0x452f2d)[_0x1deb('0x8')]({'name':_0x45fd7c[_0x1deb('0x17')]}),void _0x4685ec())),_0x45fd7c['on'](_0x1deb('0x7'),()=>_0x35afa0()),_0x45fd7c[_0x1deb('0x1b')](),_0x35afa0(),_0xe9abec;});}}
23
+ const _0xab0a=['items','editor','execute','requires','focus','init','isReady','config','revisionHistory','children','add','isOpen','showRevisionViewerCallback','componentFactory','bind','isEnabled','saveButtonView','saveRevision','revisionName','length','change:isOpen','isReadOnly','get','submit','plugins','view','Open\x20revision\x20history','Revision\x20history','remove','set','panelView'];(function(_0x2b32a9,_0xab0a48){const _0x27453b=function(_0x464ba5){while(--_0x464ba5){_0x2b32a9['push'](_0x2b32a9['shift']());}};_0x27453b(++_0xab0a48);}(_0xab0a,0x119));const _0x2745=function(_0x2b32a9,_0xab0a48){_0x2b32a9=_0x2b32a9-0x0;let _0x27453b=_0xab0a[_0x2b32a9];return _0x27453b;};import{Plugin as _0x503bd7}from'ckeditor5/src/core';import{ListView as _0x1617a5,ListItemView as _0x33ebad,ButtonView as _0x5e5611,createDropdown as _0x3b77f4}from'ckeditor5/src/ui';import _0x5a9e52 from'../../revisiontracker';import _0x346157 from'./revisionhistorysaverevisionformview';import _0x81d92 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x2dd5f5}from'../../utils/common-translations';export default class u extends _0x503bd7{static get['pluginName'](){return'RevisionHistoryUI';}static get[_0x2745('0x1')](){return[_0x5a9e52];}[_0x2745('0x3')](){const _0x5d55c1=this[_0x2745('0x1e')],_0x2a73e3=_0x5d55c1[_0x2745('0x16')]['get']('RevisionTracker');_0x5d55c1['ui'][_0x2745('0xb')][_0x2745('0x8')](_0x2745('0x6'),_0x577354=>{const _0x5ab98d=_0x3b77f4(_0x577354),_0x4eb321=_0x5ab98d[_0x2745('0x1c')][_0x2745('0x7')],_0x3f7ad2=new _0x1617a5(_0x577354),_0xd4a91d=new _0x33ebad(_0x577354),_0x49a9e8=new _0x5e5611(_0x577354),_0x678d28=new _0x33ebad(_0x577354),_0x4926f1=new _0x5e5611(_0x577354),_0x1ce914=new _0x346157(_0x577354);function _0x56f289(){_0x4eb321[_0x2745('0x11')]&&_0x4eb321[_0x2745('0x1a')](0x0),_0x4eb321[_0x2745('0x8')](_0x3f7ad2);}function _0x2b36d0(){_0x5ab98d[_0x2745('0x9')]=!0x1,_0x5d55c1['editing'][_0x2745('0x17')][_0x2745('0x2')]();}return _0x5ab98d[_0x2745('0xc')]('isEnabled')['to'](_0x2a73e3,_0x2745('0x4'),_0x2a73e3,_0x2745('0xd'),_0x5d55c1,_0x2745('0x13'),(_0x27da0d,_0x1b74bf,_0x5c9b60)=>_0x27da0d&&_0x1b74bf&&!_0x5c9b60),_0x5ab98d['buttonView'][_0x2745('0x1b')]({'icon':_0x81d92,'label':_0x2dd5f5(_0x577354,_0x2745('0x19')),'tooltip':!0x0}),_0x49a9e8[_0x2745('0x1b')]({'label':_0x2dd5f5(_0x577354,'Save\x20current\x20revision'),'withText':!0x0}),_0x49a9e8['bind']('isEnabled')['to'](_0x2a73e3,_0x2745('0x4'),_0x2a73e3,'isEnabled',_0x5d55c1,_0x2745('0x13'),(_0x405bae,_0x35996c,_0x201c0b)=>_0x405bae&&_0x35996c&&!_0x201c0b),_0x49a9e8['on'](_0x2745('0x0'),()=>function(){_0x4eb321[_0x2745('0x11')]&&_0x4eb321['remove'](0x0),(_0x1ce914['reset'](),_0x4eb321[_0x2745('0x8')](_0x1ce914),_0x1ce914[_0x2745('0x2')]());}()),_0x4926f1[_0x2745('0x1b')]({'label':_0x2dd5f5(_0x577354,_0x2745('0x18')),'withText':!0x0}),_0x4926f1['bind']('isEnabled')['to'](_0x2a73e3,'isReady',_0x5d55c1,_0x2745('0x13'),(_0x1c350c,_0x132425)=>_0x1c350c&&!_0x132425),_0x4926f1['on']('execute',()=>{_0x5d55c1[_0x2745('0x5')][_0x2745('0x14')](_0x2745('0x6'))[_0x2745('0xa')](),_0x2b36d0();}),_0xd4a91d[_0x2745('0x7')][_0x2745('0x8')](_0x49a9e8),_0x678d28['children'][_0x2745('0x8')](_0x4926f1),_0x3f7ad2[_0x2745('0x1d')]['addMany']([_0xd4a91d,_0x678d28]),_0x5ab98d['on'](_0x2745('0x12'),()=>_0x56f289()),_0x1ce914[_0x2745('0xe')][_0x2745('0xc')](_0x2745('0xd'))['to'](_0x2a73e3,'isReady',_0x2a73e3,_0x2745('0xd'),_0x5d55c1,_0x2745('0x13'),(_0x21d10c,_0x488efd,_0x499d27)=>_0x21d10c&&_0x488efd&&!_0x499d27),_0x1ce914['on'](_0x2745('0x15'),()=>(_0x5d55c1[_0x2745('0x16')][_0x2745('0x14')](_0x5a9e52)[_0x2745('0xf')]({'name':_0x1ce914[_0x2745('0x10')]}),void _0x2b36d0())),_0x1ce914['on']('cancel',()=>_0x56f289()),_0x1ce914['render'](),_0x56f289(),_0x5ab98d;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x529c=['defaultRevisionActions','_revisionViewer','config','isSelected','compare','pluginName','_handleDiffChange','restoreRevision','revisionSetName','string','editor','name','init','highlightRevisions','getIndex','setName','nameRevision','Restore\x20this\x20revision','fieldView','selectRevision','render','getEarlierVisibleRevision','revisionHistory.viewerSidebarContainer','revisionSelected','bind','getLaterVisibleRevision','isVisible','availableRevisionActions','remove','locale','element','add','get','_handleRevisionSelected','focus','_createRevisionActions','repository','_sidebarView','revisionHistory','_handleRevisionSetName','requires','length','Name\x20this\x20revision','revisionViews','Compare\x20against\x20selected','revisionHistory.revisionActions','_revisionsRepository','isEnabled','appendChild','data','destroy','timePeriodViews','restoreRevisionCallback','_handleEditorDataReady','getRevision','newRevisionId'];(function(_0x36e3be,_0x529c9f){const _0x183f8c=function(_0x3b4a68){while(--_0x3b4a68){_0x36e3be['push'](_0x36e3be['shift']());}};_0x183f8c(++_0x529c9f);}(_0x529c,0x14a));const _0x183f=function(_0x36e3be,_0x529c9f){_0x36e3be=_0x36e3be-0x0;let _0x183f8c=_0x529c[_0x36e3be];return _0x183f8c;};import{Plugin as _0x4e346f}from'ckeditor5/src/core';import _0x195417 from'./revisionssidebarview';import _0x49ca4a from'../../revisionviewer';export default class w extends _0x4e346f{static get[_0x183f('0xb')](){return'RevisionsSidebar';}static get[_0x183f('0x2e')](){return[_0x49ca4a];}constructor(_0x420359){super(_0x420359),this[_0x183f('0x7')]=_0x420359['plugins'][_0x183f('0x26')](_0x49ca4a),this[_0x183f('0x34')]=this[_0x183f('0x7')][_0x183f('0x2a')],this[_0x183f('0x2b')]=null;}[_0x183f('0x12')](){const _0x2ffded=this[_0x183f('0x34')]['_revisions'],_0x394f64=this[_0x183f('0x29')](),_0x5e6dfe=this[_0x183f('0x10')]['config'][_0x183f('0x26')](_0x183f('0x1c'));this['_sidebarView']=new _0x195417(this[_0x183f('0x10')][_0x183f('0x23')],_0x2ffded,_0x394f64),this[_0x183f('0x2b')]['on'](_0x183f('0x1d'),this[_0x183f('0x27')][_0x183f('0x1e')](this)),this['_sidebarView']['on'](_0x183f('0xe'),this['_handleRevisionSetName'][_0x183f('0x1e')](this)),this[_0x183f('0x2b')][_0x183f('0x1e')](_0x183f('0x35'))['to'](this['_revisionViewer']),this[_0x183f('0x2b')][_0x183f('0x1')]['on']('add',(_0x2cbc1e,_0x277d47)=>{_0x277d47[_0x183f('0x31')]['on'](_0x183f('0x25'),(_0xddc5ba,_0x255d8d)=>{_0x255d8d[_0x183f('0x1e')](_0x183f('0x35'),'isReady')['to'](this[_0x183f('0x7')]);});}),this['_sidebarView'][_0x183f('0x1a')](),this['listenTo'](this[_0x183f('0x10')][_0x183f('0x37')],'ready',this[_0x183f('0x3')][_0x183f('0x1e')](this)),this['listenTo'](this[_0x183f('0x7')],'change:diff',this[_0x183f('0xc')]['bind'](this)),_0x5e6dfe[_0x183f('0x36')](this[_0x183f('0x2b')][_0x183f('0x24')]);}[_0x183f('0x0')](){this['_sidebarView'][_0x183f('0x24')][_0x183f('0x22')](),this[_0x183f('0x2b')]['destroy']();}['_handleEditorDataReady'](){const _0x3de925=this[_0x183f('0x34')][_0x183f('0x4')](0x0);if(_0x3de925){const _0x541048=this[_0x183f('0x34')]['getEarlierVisibleRevision'](_0x3de925['id']);this[_0x183f('0x7')]['compare'](_0x3de925,_0x541048);}}['_handleRevisionSelected'](_0x1c00f8,_0x76786){const _0xc99b41=this[_0x183f('0x34')][_0x183f('0x4')](_0x76786['id']),_0x57f33d=this[_0x183f('0x34')]['getEarlierVisibleRevision'](_0xc99b41['id']);this['_revisionViewer'][_0x183f('0xa')](_0xc99b41,_0x57f33d);}[_0x183f('0x2d')](_0x12adce,_0x3a17b9){this[_0x183f('0x34')][_0x183f('0x4')](_0x3a17b9['id'])[_0x183f('0x15')](_0x3a17b9[_0x183f('0x11')]);}[_0x183f('0xc')](_0x2811d8,_0x3891ea,_0x60a27c){const _0x1f334e=this['_revisionsRepository']['getRevisionsInDiff'](_0x60a27c);_0x1f334e[_0x183f('0x2f')]>0x2?(this[_0x183f('0x2b')][_0x183f('0x13')](_0x1f334e),this[_0x183f('0x2b')][_0x183f('0x19')](null)):(this[_0x183f('0x2b')][_0x183f('0x13')]([]),this[_0x183f('0x2b')]['selectRevision'](_0x1f334e[0x0]));}[_0x183f('0x29')](){const _0x25cab1=this[_0x183f('0x10')],_0x2b69a6=w[_0x183f('0x21')],_0x541fa4=_0x25cab1[_0x183f('0x8')][_0x183f('0x26')](_0x183f('0x33'))||w[_0x183f('0x6')];if(_0x541fa4[_0x183f('0x2f')])return _0x541fa4['map'](_0x24f9c5=>{const _0x220f83=_0x183f('0xf')==typeof _0x24f9c5?Object['assign']({},_0x2b69a6[_0x24f9c5]):_0x24f9c5;return _0x220f83['action']=_0x220f83['action']['bind'](this,_0x25cab1),_0x220f83['isVisible']&&(_0x220f83[_0x183f('0x20')]=_0x220f83['isVisible'][_0x183f('0x1e')](this,_0x25cab1)),_0x220f83;});}}w[_0x183f('0x21')]={'compareAgainstSelected':{'name':_0x183f('0x32'),'action':({plugins:_0x3d3aca},_0x589ac4)=>{const _0xaa0352=_0x3d3aca[_0x183f('0x26')](_0x49ca4a),_0x4ac039=_0xaa0352[_0x183f('0x2a')];let _0x51488b=_0xaa0352['diff'][_0x183f('0x5')],_0x5e9da2=_0x589ac4['id'];_0x4ac039['getIndex'](_0x51488b)>_0x4ac039[_0x183f('0x14')](_0x5e9da2)&&([_0x51488b,_0x5e9da2]=[_0x5e9da2,_0x51488b]),_0xaa0352[_0x183f('0xa')](_0x51488b,_0x5e9da2);},'isVisible':({plugins:_0x15cfb3},_0xe03fd3)=>{const _0x37e1d2=_0x15cfb3[_0x183f('0x26')](_0x49ca4a);return!(_0x37e1d2[_0x183f('0x2a')]['getRevisionsInDiff'](_0x37e1d2['diff'])['length']>0x2)&&!_0xe03fd3[_0x183f('0x9')];}},'restoreRevision':{'name':_0x183f('0x17'),'action':(_0x56ef1c,{id:_0x308799})=>{_0x56ef1c['config'][_0x183f('0x26')](_0x183f('0x2c'))[_0x183f('0x2')](_0x308799);},'isVisible':({plugins:_0x1a95d1},_0x4172d7)=>!!_0x1a95d1[_0x183f('0x26')](_0x49ca4a)['repository'][_0x183f('0x1f')](_0x4172d7['id'])},'nameRevision':{'name':_0x183f('0x30'),'action':({plugins:_0xe722fb},{id:_0x443652,revisionNameView:_0x2660d4})=>{const _0x4c4201=_0xe722fb[_0x183f('0x26')](_0x49ca4a),_0x2dfe05=_0x4c4201['repository'][_0x183f('0x1b')](_0x443652);_0x4c4201[_0x183f('0xa')](_0x443652,_0x2dfe05),_0x2660d4[_0x183f('0x28')](),_0x2660d4[_0x183f('0x18')]['select']();}}},w[_0x183f('0x6')]=['compareAgainstSelected',_0x183f('0xd'),_0x183f('0x16')];
23
+ const _0xc9d4=['restoreRevision','destroy','selectRevision','_revisionsRepository','revisionSelected','assign','compare','defaultRevisionActions','isSelected','revisionSetName','ready','_sidebarView','listenTo','isEnabled','_createRevisionActions','appendChild','name','editor','string','highlightRevisions','_revisionViewer','remove','map','element','getEarlierVisibleRevision','_handleRevisionSelected','length','_handleEditorDataReady','getRevisionsInDiff','repository','add','get','select','getRevision','render','bind','diff','plugins','availableRevisionActions','_handleRevisionSetName','revisionViews','isVisible','_revisions','data','focus','_handleDiffChange','revisionHistory.viewerSidebarContainer','config','timePeriodViews','action','getIndex','requires','setName','Name\x20this\x20revision'];(function(_0x200444,_0xc9d479){const _0x1402bc=function(_0x3647e6){while(--_0x3647e6){_0x200444['push'](_0x200444['shift']());}};_0x1402bc(++_0xc9d479);}(_0xc9d4,0xea));const _0x1402=function(_0x200444,_0xc9d479){_0x200444=_0x200444-0x0;let _0x1402bc=_0xc9d4[_0x200444];return _0x1402bc;};import{Plugin as _0x68fd5e}from'ckeditor5/src/core';import _0x21c655 from'./revisionssidebarview';import _0x3261f1 from'../../revisionviewer';export default class w extends _0x68fd5e{static get['pluginName'](){return'RevisionsSidebar';}static get[_0x1402('0x21')](){return[_0x3261f1];}constructor(_0x3e9c58){super(_0x3e9c58),this[_0x1402('0x2')]=_0x3e9c58[_0x1402('0x13')][_0x1402('0xd')](_0x3261f1),this[_0x1402('0x27')]=this[_0x1402('0x2')][_0x1402('0xb')],this[_0x1402('0x2f')]=null;}['init'](){const _0x5c8335=this[_0x1402('0x27')][_0x1402('0x18')],_0x2be14c=this[_0x1402('0x32')](),_0x15f556=this[_0x1402('0x35')][_0x1402('0x1d')][_0x1402('0xd')](_0x1402('0x1c'));this[_0x1402('0x2f')]=new _0x21c655(this['editor']['locale'],_0x5c8335,_0x2be14c),this['_sidebarView']['on'](_0x1402('0x28'),this[_0x1402('0x7')][_0x1402('0x11')](this)),this[_0x1402('0x2f')]['on'](_0x1402('0x2d'),this['_handleRevisionSetName'][_0x1402('0x11')](this)),this[_0x1402('0x2f')][_0x1402('0x11')]('isEnabled')['to'](this[_0x1402('0x2')]),this[_0x1402('0x2f')][_0x1402('0x1e')]['on'](_0x1402('0xc'),(_0x46be77,_0xe5ccaf)=>{_0xe5ccaf[_0x1402('0x16')]['on'](_0x1402('0xc'),(_0x266317,_0x112302)=>{_0x112302['bind'](_0x1402('0x31'),'isReady')['to'](this['_revisionViewer']);});}),this[_0x1402('0x2f')][_0x1402('0x10')](),this['listenTo'](this[_0x1402('0x35')][_0x1402('0x19')],_0x1402('0x2e'),this[_0x1402('0x9')][_0x1402('0x11')](this)),this[_0x1402('0x30')](this[_0x1402('0x2')],'change:diff',this[_0x1402('0x1b')][_0x1402('0x11')](this)),_0x15f556[_0x1402('0x33')](this[_0x1402('0x2f')][_0x1402('0x5')]);}['destroy'](){this['_sidebarView'][_0x1402('0x5')][_0x1402('0x3')](),this[_0x1402('0x2f')][_0x1402('0x25')]();}[_0x1402('0x9')](){const _0x348c91=this['_revisionsRepository'][_0x1402('0xf')](0x0);if(_0x348c91){const _0xf26d3b=this[_0x1402('0x27')]['getEarlierVisibleRevision'](_0x348c91['id']);this[_0x1402('0x2')][_0x1402('0x2a')](_0x348c91,_0xf26d3b);}}[_0x1402('0x7')](_0x55249a,_0x29cb21){const _0x30f68f=this[_0x1402('0x27')][_0x1402('0xf')](_0x29cb21['id']),_0x51e7d5=this[_0x1402('0x27')][_0x1402('0x6')](_0x30f68f['id']);this['_revisionViewer'][_0x1402('0x2a')](_0x30f68f,_0x51e7d5);}[_0x1402('0x15')](_0xd06542,_0x534a22){this[_0x1402('0x27')][_0x1402('0xf')](_0x534a22['id'])[_0x1402('0x22')](_0x534a22[_0x1402('0x34')]);}['_handleDiffChange'](_0x4786ac,_0x3e02c3,_0x58e65b){const _0x2f5490=this[_0x1402('0x27')]['getRevisionsInDiff'](_0x58e65b);_0x2f5490['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x2f5490),this[_0x1402('0x2f')][_0x1402('0x26')](null)):(this['_sidebarView'][_0x1402('0x1')]([]),this[_0x1402('0x2f')][_0x1402('0x26')](_0x2f5490[0x0]));}['_createRevisionActions'](){const _0x551355=this[_0x1402('0x35')],_0x361142=w['availableRevisionActions'],_0x544603=_0x551355[_0x1402('0x1d')][_0x1402('0xd')]('revisionHistory.revisionActions')||w[_0x1402('0x2b')];if(_0x544603[_0x1402('0x8')])return _0x544603[_0x1402('0x4')](_0x338a72=>{const _0x23a1d9=_0x1402('0x0')==typeof _0x338a72?Object[_0x1402('0x29')]({},_0x361142[_0x338a72]):_0x338a72;return _0x23a1d9[_0x1402('0x1f')]=_0x23a1d9[_0x1402('0x1f')][_0x1402('0x11')](this,_0x551355),_0x23a1d9[_0x1402('0x17')]&&(_0x23a1d9['isVisible']=_0x23a1d9[_0x1402('0x17')][_0x1402('0x11')](this,_0x551355)),_0x23a1d9;});}}w[_0x1402('0x14')]={'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x5ed398},_0x2b4af4)=>{const _0x5cd1f1=_0x5ed398[_0x1402('0xd')](_0x3261f1),_0x4c4164=_0x5cd1f1['repository'];let _0x3e0e34=_0x5cd1f1[_0x1402('0x12')]['newRevisionId'],_0x3c7bb5=_0x2b4af4['id'];_0x4c4164[_0x1402('0x20')](_0x3e0e34)>_0x4c4164[_0x1402('0x20')](_0x3c7bb5)&&([_0x3e0e34,_0x3c7bb5]=[_0x3c7bb5,_0x3e0e34]),_0x5cd1f1['compare'](_0x3e0e34,_0x3c7bb5);},'isVisible':({plugins:_0x448f9a},_0x5781b9)=>{const _0x4e141b=_0x448f9a[_0x1402('0xd')](_0x3261f1);return!(_0x4e141b[_0x1402('0xb')][_0x1402('0xa')](_0x4e141b[_0x1402('0x12')])[_0x1402('0x8')]>0x2)&&!_0x5781b9[_0x1402('0x2c')];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x3aa9d0,{id:_0x3bbafc})=>{_0x3aa9d0[_0x1402('0x1d')][_0x1402('0xd')]('revisionHistory')['restoreRevisionCallback'](_0x3bbafc);},'isVisible':({plugins:_0x4bb0eb},_0x14520d)=>!!_0x4bb0eb[_0x1402('0xd')](_0x3261f1)['repository']['getLaterVisibleRevision'](_0x14520d['id'])},'nameRevision':{'name':_0x1402('0x23'),'action':({plugins:_0x315c98},{id:_0x2f7813,revisionNameView:_0x46a5f4})=>{const _0x58ccf0=_0x315c98[_0x1402('0xd')](_0x3261f1),_0x23ed50=_0x58ccf0[_0x1402('0xb')][_0x1402('0x6')](_0x2f7813);_0x58ccf0[_0x1402('0x2a')](_0x2f7813,_0x23ed50),_0x46a5f4[_0x1402('0x1a')](),_0x46a5f4['fieldView'][_0x1402('0xe')]();}}},w[_0x1402('0x2b')]=['compareAgainstSelected',_0x1402('0x24'),'nameRevision'];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1f09=['div','ck-revision-history-sidebar__header__label','content','ck-reset_all','Revision\x20history'];(function(_0x231604,_0x1f09d9){const _0x553be7=function(_0x236ad4){while(--_0x236ad4){_0x231604['push'](_0x231604['shift']());}};_0x553be7(++_0x1f09d9);}(_0x1f09,0x6d));const _0x553b=function(_0x231604,_0x1f09d9){_0x231604=_0x231604-0x0;let _0x553be7=_0x1f09[_0x231604];return _0x553be7;};import{View as _0xa24441,IconView as _0x102db0}from'ckeditor5/src/ui';import{getTranslation as _0x283fc0}from'../../utils/common-translations';import _0x53ec90 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0xa24441{constructor(_0xaea5ab){super(_0xaea5ab);const _0x17ab39=new _0x102db0();_0x17ab39[_0x553b('0x3')]=_0x53ec90,this['setTemplate']({'tag':_0x553b('0x1'),'attributes':{'class':['ck',_0x553b('0x4'),'ck-revision-history-sidebar__header']},'children':[_0x17ab39,{'tag':'span','attributes':{'class':['ck',_0x553b('0x2')]},'children':[_0x283fc0(_0xaea5ab,_0x553b('0x0'))]}]});}}
23
+ const _0x2983=['div','content','span','ck-revision-history-sidebar__header__label','ck-reset_all','Revision\x20history','setTemplate'];(function(_0x544c2f,_0x2983fb){const _0x157c8f=function(_0x36abf1){while(--_0x36abf1){_0x544c2f['push'](_0x544c2f['shift']());}};_0x157c8f(++_0x2983fb);}(_0x2983,0x1c6));const _0x157c=function(_0x544c2f,_0x2983fb){_0x544c2f=_0x544c2f-0x0;let _0x157c8f=_0x2983[_0x544c2f];return _0x157c8f;};import{View as _0xfc2aa4,IconView as _0x17244f}from'ckeditor5/src/ui';import{getTranslation as _0x11748e}from'../../utils/common-translations';import _0x4533c9 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0xfc2aa4{constructor(_0x1b1575){super(_0x1b1575);const _0x3b1652=new _0x17244f();_0x3b1652[_0x157c('0x2')]=_0x4533c9,this[_0x157c('0x0')]({'tag':_0x157c('0x1'),'attributes':{'class':['ck',_0x157c('0x5'),'ck-revision-history-sidebar__header']},'children':[_0x3b1652,{'tag':_0x157c('0x3'),'attributes':{'class':['ck',_0x157c('0x4')]},'children':[_0x11748e(_0x1b1575,_0x157c('0x6'))]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3983=['removeRevision','locale','div','_revisionActions','uiLanguage','span','ck-revision-history-sidebar__time-period','add','setName','remove','startDate','delegate','revisionViews','ck-revision-history-sidebar__time-period__label','addRevision','setTemplate','ck-revision-history-sidebar__time-period__revisions'];(function(_0x3ba0e1,_0x39838d){const _0x39ccc2=function(_0x14b9c0){while(--_0x14b9c0){_0x3ba0e1['push'](_0x3ba0e1['shift']());}};_0x39ccc2(++_0x39838d);}(_0x3983,0x15e));const _0x39cc=function(_0x3ba0e1,_0x39838d){_0x3ba0e1=_0x3ba0e1-0x0;let _0x39ccc2=_0x3983[_0x3ba0e1];return _0x39ccc2;};import{View as _0x35f92b}from'ckeditor5/src/ui';import _0x3fd6c4 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x3a6915}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x35f92b{constructor(_0x24b556,_0x1d685a,_0x172b1a){super(_0x24b556);const _0x3a52c9=_0x3a6915(_0x1d685a,this[_0x39cc('0x8')][_0x39cc('0xb')])['localizedPeriodName'];this[_0x39cc('0x0')]=_0x1d685a,this[_0x39cc('0x2')]=this['createCollection'](),this[_0x39cc('0xa')]=_0x172b1a,this[_0x39cc('0x2')][_0x39cc('0x1')]('select')['to'](this),this[_0x39cc('0x2')][_0x39cc('0x1')](_0x39cc('0xf'))['to'](this),this[_0x39cc('0x5')]({'tag':_0x39cc('0x9'),'attributes':{'class':['ck',_0x39cc('0xd')]},'children':[{'tag':_0x39cc('0xc'),'attributes':{'class':['ck',_0x39cc('0x3')]},'children':[{'text':_0x3a52c9}]},{'tag':_0x39cc('0x9'),'attributes':{'class':['ck',_0x39cc('0x6')]},'children':this['revisionViews']}]});}[_0x39cc('0x4')](_0x594626){const _0x403245=new _0x3fd6c4(this['locale'],_0x594626,this['_revisionActions']);this['revisionViews'][_0x39cc('0xe')](_0x403245);}[_0x39cc('0x7')](_0x22284c){const _0x284436=this[_0x39cc('0x2')]['find'](_0x5590ed=>_0x5590ed['id']===_0x22284c['id']);this[_0x39cc('0x2')][_0x39cc('0x10')](_0x284436);}}
23
+ const _0xd02f=['span','startDate','remove','ck-revision-history-sidebar__time-period','uiLanguage','addRevision','select','createCollection','_revisionActions','delegate','ck-revision-history-sidebar__time-period__revisions','locale','ck-revision-history-sidebar__time-period__label','revisionViews','add','div','setName'];(function(_0xb87f7f,_0xd02f81){const _0x4aec2b=function(_0x56dbc5){while(--_0x56dbc5){_0xb87f7f['push'](_0xb87f7f['shift']());}};_0x4aec2b(++_0xd02f81);}(_0xd02f,0x94));const _0x4aec=function(_0xb87f7f,_0xd02f81){_0xb87f7f=_0xb87f7f-0x0;let _0x4aec2b=_0xd02f[_0xb87f7f];return _0x4aec2b;};import{View as _0x364f5f}from'ckeditor5/src/ui';import _0x19db09 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x5dd50d}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x364f5f{constructor(_0x42995e,_0x337f50,_0x4b309f){super(_0x42995e);const _0x4346a8=_0x5dd50d(_0x337f50,this['locale'][_0x4aec('0x9')])['localizedPeriodName'];this[_0x4aec('0x6')]=_0x337f50,this[_0x4aec('0x1')]=this[_0x4aec('0xc')](),this[_0x4aec('0xd')]=_0x4b309f,this[_0x4aec('0x1')][_0x4aec('0xe')](_0x4aec('0xb'))['to'](this),this['revisionViews'][_0x4aec('0xe')](_0x4aec('0x4'))['to'](this),this['setTemplate']({'tag':_0x4aec('0x3'),'attributes':{'class':['ck',_0x4aec('0x8')]},'children':[{'tag':_0x4aec('0x5'),'attributes':{'class':['ck',_0x4aec('0x0')]},'children':[{'text':_0x4346a8}]},{'tag':_0x4aec('0x3'),'attributes':{'class':['ck',_0x4aec('0xf')]},'children':this[_0x4aec('0x1')]}]});}[_0x4aec('0xa')](_0x303ceb){const _0x341436=new _0x19db09(this[_0x4aec('0x10')],_0x303ceb,this[_0x4aec('0xd')]);this[_0x4aec('0x1')][_0x4aec('0x2')](_0x341436);}['removeRevision'](_0x4e939b){const _0x407d8a=this[_0x4aec('0x1')]['find'](_0x2f0e9a=>_0x2f0e9a['id']===_0x4e939b['id']);this[_0x4aec('0x1')][_0x4aec('0x7')](_0x407d8a);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x481f=['remove','timePeriodViews','uiLanguage','removeRevision','startDate','_addRevision','div','revisionViews','fire','_revisionActions','_getTimePeriodViewByStartDate','addRevision','setTemplate','selectRevision','find','some','_removeRevision','delegate','render','getTime','map','setName','ck-revision-history-sidebar','set','createdAt','select','highlight','flat','unhighlight','locale','revisionSelected','revisionSetName','ck-revision-history-sidebar__timeline','createCollection','add','isEnabled','_revisions','deselect'];(function(_0x1d8a88,_0x481fc3){const _0x3dbb16=function(_0x1dbcc7){while(--_0x1dbcc7){_0x1d8a88['push'](_0x1d8a88['shift']());}};_0x3dbb16(++_0x481fc3);}(_0x481f,0xe0));const _0x3dbb=function(_0x1d8a88,_0x481fc3){_0x1d8a88=_0x1d8a88-0x0;let _0x3dbb16=_0x481f[_0x1d8a88];return _0x3dbb16;};import{View as _0x4c3a92}from'ckeditor5/src/ui';import _0x48256b from'./revisionssidebartimeperiodview';import _0x1db9a0 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x3e54c1}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x4c3a92{constructor(_0x1e340a,_0x5ad7ea,_0x3ec6a){super(_0x1e340a);const _0x4dd53d=this['bindTemplate'];this[_0x3dbb('0x5')]=this[_0x3dbb('0x25')](),this['timePeriodViews'][_0x3dbb('0x15')](_0x3dbb('0x1d'))['to'](this),this[_0x3dbb('0x5')][_0x3dbb('0x15')]('setName')['to'](this),this[_0x3dbb('0x2')]=_0x5ad7ea,this['_revisionActions']=_0x3ec6a,this['on']('select',(_0x50261d,_0x6e7b56)=>{this[_0x3dbb('0xc')](_0x3dbb('0x22'),_0x6e7b56);}),this['on'](_0x3dbb('0x19'),(_0x3753df,_0x34935e)=>{this[_0x3dbb('0xc')](_0x3dbb('0x23'),_0x34935e);}),this[_0x3dbb('0x1b')](_0x3dbb('0x1'),!0x1),this[_0x3dbb('0x10')]({'tag':_0x3dbb('0xa'),'attributes':{'class':['ck','ck-reset','ck-rounded-corners',_0x3dbb('0x1a')]},'children':[new _0x1db9a0(_0x1e340a),{'tag':_0x3dbb('0xa'),'attributes':{'class':['ck',_0x3dbb('0x24'),_0x4dd53d['if']('isEnabled','ck-disabled',_0x4176f3=>!_0x4176f3)]},'children':this[_0x3dbb('0x5')]}]});}[_0x3dbb('0x16')](){super[_0x3dbb('0x16')]();for(const _0x38f587 of this[_0x3dbb('0x2')])this[_0x3dbb('0x9')](_0x38f587);this[_0x3dbb('0x2')]['on']('add',(_0x2add43,_0x5d7648)=>{this[_0x3dbb('0x9')](_0x5d7648);}),this[_0x3dbb('0x2')]['on'](_0x3dbb('0x4'),(_0x3a815c,_0x573c0a)=>{this[_0x3dbb('0x14')](_0x573c0a);});}get['revisionViews'](){return this['timePeriodViews'][_0x3dbb('0x18')](_0x19d5b2=>_0x19d5b2[_0x3dbb('0xb')]['map'](_0x585829=>_0x585829))[_0x3dbb('0x1f')]();}[_0x3dbb('0x11')](_0x4a4067){for(const _0x40830a of this[_0x3dbb('0xb')])_0x4a4067&&_0x4a4067['id']===_0x40830a['id']?_0x40830a[_0x3dbb('0x1d')]():_0x40830a[_0x3dbb('0x3')]();}['highlightRevisions'](_0x37c52d){for(const _0x34b972 of this[_0x3dbb('0xb')])_0x37c52d[_0x3dbb('0x13')](({id:_0x580da0})=>_0x580da0===_0x34b972['id'])?_0x34b972[_0x3dbb('0x1e')]():_0x34b972[_0x3dbb('0x20')]();}[_0x3dbb('0x9')](_0x39cc3e){const _0x248712=_0x3e54c1(_0x39cc3e[_0x3dbb('0x1c')],this[_0x3dbb('0x21')][_0x3dbb('0x6')])['startDate'];let _0x5e384f=this[_0x3dbb('0x5')]['get'](0x0);_0x5e384f&&_0x5e384f[_0x3dbb('0x8')][_0x3dbb('0x17')]()===_0x248712[_0x3dbb('0x17')]()||(_0x5e384f=new _0x48256b(this[_0x3dbb('0x21')],_0x248712,this[_0x3dbb('0xd')]),this[_0x3dbb('0x5')][_0x3dbb('0x0')](_0x5e384f)),_0x5e384f[_0x3dbb('0xf')](_0x39cc3e);}['_removeRevision'](_0x3fd14b){const _0x2b749b=_0x3e54c1(_0x3fd14b['createdAt'],this[_0x3dbb('0x21')][_0x3dbb('0x6')])['startDate'];this['_getTimePeriodViewByStartDate'](_0x2b749b)[_0x3dbb('0x7')](_0x3fd14b);}[_0x3dbb('0xe')](_0x564a5c){return this[_0x3dbb('0x5')][_0x3dbb('0x12')](_0x4151ad=>_0x4151ad['startDate']['getTime']()===_0x564a5c[_0x3dbb('0x17')]());}}
23
+ const _0x5a6b=['fire','deselect','_addRevision','startDate','map','div','revisionViews','delegate','isEnabled','ck-rounded-corners','unhighlight','_getTimePeriodViewByStartDate','locale','_revisionActions','createdAt','get','ck-reset','_revisions','revisionSelected','createCollection','remove','add','selectRevision','_removeRevision','select','uiLanguage','find','flat','revisionSetName','getTime','setName','set','some','ck-revision-history-sidebar__timeline','ck-disabled','ck-revision-history-sidebar','timePeriodViews','highlight','render'];(function(_0x1b40be,_0x5a6b9f){const _0x345584=function(_0x370ce6){while(--_0x370ce6){_0x1b40be['push'](_0x1b40be['shift']());}};_0x345584(++_0x5a6b9f);}(_0x5a6b,0xd6));const _0x3455=function(_0x1b40be,_0x5a6b9f){_0x1b40be=_0x1b40be-0x0;let _0x345584=_0x5a6b[_0x1b40be];return _0x345584;};import{View as _0x5d01bc}from'ckeditor5/src/ui';import _0x29e4ab from'./revisionssidebartimeperiodview';import _0x2b91f6 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x171029}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x5d01bc{constructor(_0x106071,_0x53c31d,_0x58ee9e){super(_0x106071);const _0x35bff6=this['bindTemplate'];this[_0x3455('0x11')]=this[_0x3455('0x0')](),this['timePeriodViews']['delegate']('select')['to'](this),this[_0x3455('0x11')][_0x3455('0x1b')](_0x3455('0xb'))['to'](this),this[_0x3455('0x25')]=_0x53c31d,this[_0x3455('0x21')]=_0x58ee9e,this['on'](_0x3455('0x5'),(_0x4a23a9,_0x43bb45)=>{this[_0x3455('0x14')](_0x3455('0x26'),_0x43bb45);}),this['on']('setName',(_0x1adcf2,_0x220880)=>{this[_0x3455('0x14')](_0x3455('0x9'),_0x220880);}),this[_0x3455('0xc')](_0x3455('0x1c'),!0x1),this['setTemplate']({'tag':_0x3455('0x19'),'attributes':{'class':['ck',_0x3455('0x24'),_0x3455('0x1d'),_0x3455('0x10')]},'children':[new _0x2b91f6(_0x106071),{'tag':_0x3455('0x19'),'attributes':{'class':['ck',_0x3455('0xe'),_0x35bff6['if'](_0x3455('0x1c'),_0x3455('0xf'),_0x16ab7f=>!_0x16ab7f)]},'children':this[_0x3455('0x11')]}]});}[_0x3455('0x13')](){super['render']();for(const _0x3b0ea8 of this[_0x3455('0x25')])this[_0x3455('0x16')](_0x3b0ea8);this[_0x3455('0x25')]['on'](_0x3455('0x2'),(_0xde3de3,_0x565b70)=>{this[_0x3455('0x16')](_0x565b70);}),this[_0x3455('0x25')]['on'](_0x3455('0x1'),(_0x5e3e97,_0x7963ee)=>{this['_removeRevision'](_0x7963ee);});}get[_0x3455('0x1a')](){return this['timePeriodViews'][_0x3455('0x18')](_0x3d4e24=>_0x3d4e24[_0x3455('0x1a')][_0x3455('0x18')](_0x41fb94=>_0x41fb94))[_0x3455('0x8')]();}[_0x3455('0x3')](_0x10588c){for(const _0x3ed76e of this[_0x3455('0x1a')])_0x10588c&&_0x10588c['id']===_0x3ed76e['id']?_0x3ed76e[_0x3455('0x5')]():_0x3ed76e[_0x3455('0x15')]();}['highlightRevisions'](_0x58dfc0){for(const _0x51280a of this[_0x3455('0x1a')])_0x58dfc0[_0x3455('0xd')](({id:_0x428e9e})=>_0x428e9e===_0x51280a['id'])?_0x51280a[_0x3455('0x12')]():_0x51280a[_0x3455('0x1e')]();}[_0x3455('0x16')](_0x29723c){const _0x2509c0=_0x171029(_0x29723c[_0x3455('0x22')],this[_0x3455('0x20')]['uiLanguage'])[_0x3455('0x17')];let _0x58804a=this[_0x3455('0x11')][_0x3455('0x23')](0x0);_0x58804a&&_0x58804a[_0x3455('0x17')][_0x3455('0xa')]()===_0x2509c0['getTime']()||(_0x58804a=new _0x29e4ab(this[_0x3455('0x20')],_0x2509c0,this['_revisionActions']),this[_0x3455('0x11')]['add'](_0x58804a)),_0x58804a['addRevision'](_0x29723c);}[_0x3455('0x4')](_0x33653d){const _0x15db41=_0x171029(_0x33653d[_0x3455('0x22')],this[_0x3455('0x20')][_0x3455('0x6')])[_0x3455('0x17')];this[_0x3455('0x1f')](_0x15db41)['removeRevision'](_0x33653d);}[_0x3455('0x1f')](_0x337303){return this['timePeriodViews'][_0x3455('0x7')](_0x4f235b=>_0x4f235b['startDate'][_0x3455('0xa')]()===_0x337303['getTime']());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x240d=['startOf','week','setLocale','toJSDate','hasSame','local','monthLong','day','toRelativeCalendar','minus','year','fromJSDate','weekdayLong'];(function(_0x4d3c52,_0x240d4e){const _0x1964f4=function(_0x14d33d){while(--_0x14d33d){_0x4d3c52['push'](_0x4d3c52['shift']());}};_0x1964f4(++_0x240d4e);}(_0x240d,0x1a8));const _0x1964=function(_0x4d3c52,_0x240d4e){_0x4d3c52=_0x4d3c52-0x0;let _0x1964f4=_0x240d[_0x4d3c52];return _0x1964f4;};import{DateTime as _0xd1ea3f}from'luxon';export function getDateTimePeriodInfo(_0x3d8e66,_0x3cf9a7){const _0x2c274e=_0xd1ea3f[_0x1964('0x3')](_0x3d8e66)[_0x1964('0x7')](_0x3cf9a7),_0x7579f3=_0xd1ea3f[_0x1964('0xa')](),_0x1cab34=_0x7579f3[_0x1964('0x1')]({'days':0x1})[_0x1964('0x5')](_0x1964('0xc'));let _0x9cf034,_0x468cda;return _0x2c274e[_0x1964('0x9')](_0x7579f3,_0x1964('0xc'))?(_0x9cf034=_0x2c274e['startOf']('day')['toJSDate'](),_0x468cda=_0x2c274e[_0x1964('0x0')]()):_0x2c274e[_0x1964('0x9')](_0x1cab34,'day')?(_0x9cf034=_0x1cab34[_0x1964('0x8')](),_0x468cda=_0x2c274e[_0x1964('0x0')]()):_0x2c274e['hasSame'](_0x7579f3,'week')?(_0x9cf034=_0x2c274e['startOf'](_0x1964('0x6'))[_0x1964('0x8')](),_0x468cda=_0x2c274e[_0x1964('0x4')]||''):_0x2c274e['hasSame'](_0x7579f3,'year')?(_0x9cf034=_0x2c274e[_0x1964('0x5')]('month')[_0x1964('0x8')](),_0x468cda=_0x2c274e[_0x1964('0xb')]||''):(_0x9cf034=_0x2c274e[_0x1964('0x5')](_0x1964('0x2'))['toJSDate'](),_0x468cda=String(_0x2c274e[_0x1964('0x2')])),{'startDate':_0x9cf034,'localizedPeriodName':_0x468cda};}
23
+ const _0x27e3=['fromJSDate','toRelativeCalendar','week','hasSame','toJSDate','weekdayLong','setLocale','month','year','local','minus','day','monthLong','startOf'];(function(_0x1b7d15,_0x27e31f){const _0x287b34=function(_0x4db85c){while(--_0x4db85c){_0x1b7d15['push'](_0x1b7d15['shift']());}};_0x287b34(++_0x27e31f);}(_0x27e3,0xd7));const _0x287b=function(_0x1b7d15,_0x27e31f){_0x1b7d15=_0x1b7d15-0x0;let _0x287b34=_0x27e3[_0x1b7d15];return _0x287b34;};import{DateTime as _0x4ec1e1}from'luxon';export function getDateTimePeriodInfo(_0x44eecc,_0x225474){const _0x223080=_0x4ec1e1[_0x287b('0x9')](_0x44eecc)[_0x287b('0x1')](_0x225474),_0x499ec3=_0x4ec1e1[_0x287b('0x4')](),_0x43e5dc=_0x499ec3[_0x287b('0x5')]({'days':0x1})[_0x287b('0x8')](_0x287b('0x6'));let _0x17a15d,_0x2cef72;return _0x223080[_0x287b('0xc')](_0x499ec3,_0x287b('0x6'))?(_0x17a15d=_0x223080[_0x287b('0x8')]('day')[_0x287b('0xd')](),_0x2cef72=_0x223080[_0x287b('0xa')]()):_0x223080[_0x287b('0xc')](_0x43e5dc,'day')?(_0x17a15d=_0x43e5dc[_0x287b('0xd')](),_0x2cef72=_0x223080[_0x287b('0xa')]()):_0x223080[_0x287b('0xc')](_0x499ec3,_0x287b('0xb'))?(_0x17a15d=_0x223080[_0x287b('0x8')]('week')[_0x287b('0xd')](),_0x2cef72=_0x223080[_0x287b('0x0')]||''):_0x223080['hasSame'](_0x499ec3,_0x287b('0x3'))?(_0x17a15d=_0x223080[_0x287b('0x8')](_0x287b('0x2'))[_0x287b('0xd')](),_0x2cef72=_0x223080[_0x287b('0x7')]||''):(_0x17a15d=_0x223080[_0x287b('0x8')](_0x287b('0x3'))[_0x287b('0xd')](),_0x2cef72=String(_0x223080[_0x287b('0x3')])),{'startDate':_0x17a15d,'localizedPeriodName':_0x2cef72};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x6434=['Removed\x20by','span','bindTemplate','ck-revision-change__label','author','type','data','ck-annotation','Suggested\x20by','set','div','focus','setTemplate','Added\x20by'];(function(_0x38009d,_0x643472){const _0x49c4a3=function(_0x428071){while(--_0x428071){_0x38009d['push'](_0x38009d['shift']());}};_0x49c4a3(++_0x643472);}(_0x6434,0x14f));const _0x49c4=function(_0x38009d,_0x643472){_0x38009d=_0x38009d-0x0;let _0x49c4a3=_0x6434[_0x38009d];return _0x49c4a3;};import{View as _0x4f7071}from'ckeditor5/src/ui';import{getTranslation as _0x2b5fa2}from'../../utils/common-translations';export default class Z extends _0x4f7071{constructor(_0x33083e,_0xce0e4e){super(_0x33083e),this['_model']=_0xce0e4e,this['changeId']=_0xce0e4e['id'];const _0x141224=this[_0x49c4('0x3')],_0x1877ea=_0x2b5fa2(_0x33083e,_0xce0e4e[_0x49c4('0x7')]['isSuggestion']?_0x49c4('0x9'):'add'==_0xce0e4e[_0x49c4('0x6')]?_0x49c4('0x0'):_0x49c4('0x1'));this[_0x49c4('0xa')](_0x49c4('0x6'),_0xce0e4e['type']),this[_0x49c4('0xd')]({'tag':_0x49c4('0xb'),'attributes':{'class':[_0x49c4('0x8'),'ck-revision-change',_0x141224['to']('type',_0x52cfb7=>'ck-revision-change__'+_0x52cfb7)],'tabindex':-0x1},'children':[{'tag':_0x49c4('0x2'),'children':[{'tag':_0x49c4('0x2'),'attributes':{'class':[_0x49c4('0x4')]},'children':[{'text':_0x1877ea}]},{'text':'\x20'+_0xce0e4e[_0x49c4('0x5')]['name']}]}]});}[_0x49c4('0xc')](){this['element'][_0x49c4('0xc')]();}}
23
+ const _0xeaa0=['isSuggestion','Added\x20by','ck-revision-change__label','add','span','_model','focus','data','Suggested\x20by','ck-revision-change__','setTemplate','Removed\x20by','div','name','set','element','ck-revision-change','type'];(function(_0x6eb3af,_0xeaa0ed){const _0x1c5266=function(_0x24478b){while(--_0x24478b){_0x6eb3af['push'](_0x6eb3af['shift']());}};_0x1c5266(++_0xeaa0ed);}(_0xeaa0,0x81));const _0x1c52=function(_0x6eb3af,_0xeaa0ed){_0x6eb3af=_0x6eb3af-0x0;let _0x1c5266=_0xeaa0[_0x6eb3af];return _0x1c5266;};import{View as _0x253840}from'ckeditor5/src/ui';import{getTranslation as _0x295db8}from'../../utils/common-translations';export default class Z extends _0x253840{constructor(_0x366c05,_0x58216b){super(_0x366c05),this[_0x1c52('0x2')]=_0x58216b,this['changeId']=_0x58216b['id'];const _0x45bc67=this['bindTemplate'],_0x566480=_0x295db8(_0x366c05,_0x58216b[_0x1c52('0x4')][_0x1c52('0xf')]?_0x1c52('0x5'):_0x1c52('0x0')==_0x58216b[_0x1c52('0xe')]?_0x1c52('0x10'):_0x1c52('0x8'));this[_0x1c52('0xb')]('type',_0x58216b[_0x1c52('0xe')]),this[_0x1c52('0x7')]({'tag':_0x1c52('0x9'),'attributes':{'class':['ck-annotation',_0x1c52('0xd'),_0x45bc67['to']('type',_0x1bd41d=>_0x1c52('0x6')+_0x1bd41d)],'tabindex':-0x1},'children':[{'tag':_0x1c52('0x1'),'children':[{'tag':_0x1c52('0x1'),'attributes':{'class':[_0x1c52('0x11')]},'children':[{'text':_0x566480}]},{'text':'\x20'+_0x58216b['author'][_0x1c52('0xa')]}]}]});}[_0x1c52('0x3')](){this[_0x1c52('0xc')][_0x1c52('0x3')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x9b82=['isBackwardNavigationEnabled','backward','isEnabled','isNavigationMode','ck-revision-history-ui__changes-navigation','setTemplate','Loading...','span','NUMBER_OF_CHANGES','fire','ck-revision-history-ui__changes-navigation__wrapper','Total','_statusText','div','numberOfChanges','EDIT_X_OF_Y_REVISIONS','currentChangeNumber','set','_isStatusLabelVisible','ck-revision-history-ui','isReady','bindTemplate','ck-hidden','isForwardNavigationEnabled','bind','execute'];(function(_0x153264,_0x9b821){const _0x538c46=function(_0x15463b){while(--_0x15463b){_0x153264['push'](_0x153264['shift']());}};_0x538c46(++_0x9b821);}(_0x9b82,0xbd));const _0x538c=function(_0x153264,_0x9b821){_0x153264=_0x153264-0x0;let _0x538c46=_0x9b82[_0x153264];return _0x538c46;};import{View as _0x3e11f8,ButtonView as _0x14bc45,ToolbarSeparatorView as _0x32e2d1}from'ckeditor5/src/ui';import{getTranslation as _0x3d26d2}from'../../utils/common-translations';import _0x2b127f from'../../../theme/icons/arrow-up.svg';import _0x424518 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x3e11f8{constructor(_0x47badf){super(_0x47badf);const _0x464465=this[_0x538c('0xe')],_0x339a8c=new _0x14bc45(_0x47badf),_0x17cb29=new _0x14bc45(_0x47badf);this['set'](_0x538c('0x16'),!0x1),this[_0x538c('0xa')](_0x538c('0xd'),!0x1),this[_0x538c('0xa')]('currentChangeNumber',0x0),this[_0x538c('0xa')](_0x538c('0x7'),0x0),this[_0x538c('0xa')](_0x538c('0x10'),!0x1),this[_0x538c('0xa')](_0x538c('0x13'),!0x1),this[_0x538c('0x11')](_0x538c('0xb'))['to'](this,_0x538c('0xd'),this,_0x538c('0x7'),(_0x4ac9a6,_0x163581)=>_0x4ac9a6&&_0x163581>0x0),this[_0x538c('0x11')](_0x538c('0x5'))['to'](this,_0x538c('0xd'),this,_0x538c('0x9'),this,_0x538c('0x7'),this,_0x538c('0x16'),(_0x3d834c,_0x4325c3,_0x500367,_0x3ff06d)=>{if(!_0x3d834c)return _0x3d26d2(_0x47badf,_0x538c('0x19'));if(!_0x500367)return _0x3d26d2(_0x47badf,'No\x20changes');const _0x196562=_0x3d26d2(_0x47badf,_0x538c('0x1'),_0x500367);return _0x3ff06d?_0x3d26d2(_0x47badf,'X_OF_Y_CHANGES',[_0x4325c3+0x1,_0x500367]):_0x196562;}),_0x339a8c[_0x538c('0xa')]({'label':_0x3d26d2(_0x47badf,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x2b127f}),_0x17cb29[_0x538c('0xa')]({'label':_0x3d26d2(_0x47badf,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x424518}),_0x339a8c[_0x538c('0x11')](_0x538c('0x15'))['to'](this,_0x538c('0x13')),_0x17cb29[_0x538c('0x11')](_0x538c('0x15'))['to'](this,_0x538c('0x10')),_0x339a8c['on'](_0x538c('0x12'),()=>this[_0x538c('0x2')]('execute',_0x538c('0x14'))),_0x17cb29['on'](_0x538c('0x12'),()=>this[_0x538c('0x2')](_0x538c('0x12'),'forward')),this[_0x538c('0x18')]({'tag':_0x538c('0x6'),'attributes':{'class':['ck',_0x538c('0xc'),_0x538c('0x17')]},'children':[{'tag':_0x538c('0x0'),'attributes':{'class':[_0x538c('0x3')]},'children':[{'tag':_0x538c('0x0'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x464465['if'](_0x538c('0xb'),_0x538c('0xf'),_0x3f6c65=>!_0x3f6c65)]},'children':[{'text':_0x464465['to'](_0x538c('0x16'),_0x4894b6=>_0x4894b6?_0x3d26d2(_0x47badf,_0x538c('0x8'))+':\x20':_0x3d26d2(_0x47badf,_0x538c('0x4'))+':\x20')}]},{'text':_0x464465['to'](_0x538c('0x5'))}]},new _0x32e2d1(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x339a8c,_0x17cb29]}]});}}
23
+ const _0x1bc2=['_isStatusLabelVisible','div','_statusText','isForwardNavigationEnabled','setTemplate','isReady','span','isNavigationMode','fire','EDIT_X_OF_Y_REVISIONS','ck-revision-history-ui','currentChangeNumber','bind','ck-hidden','Loading...','Show\x20next\x20change','bindTemplate','set','isBackwardNavigationEnabled','ck-revision-history-ui__changes-navigation','X_OF_Y_CHANGES','backward','ck-revision-history-ui__changes-navigation__wrapper','numberOfChanges','isEnabled','execute'];(function(_0x29b996,_0x1bc213){const _0x168dcd=function(_0x3c342a){while(--_0x3c342a){_0x29b996['push'](_0x29b996['shift']());}};_0x168dcd(++_0x1bc213);}(_0x1bc2,0x113));const _0x168d=function(_0x29b996,_0x1bc213){_0x29b996=_0x29b996-0x0;let _0x168dcd=_0x1bc2[_0x29b996];return _0x168dcd;};import{View as _0x51c1f1,ButtonView as _0x131538,ToolbarSeparatorView as _0x2ceab8}from'ckeditor5/src/ui';import{getTranslation as _0x188ab2}from'../../utils/common-translations';import _0x82b8db from'../../../theme/icons/arrow-up.svg';import _0x3e887d from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x51c1f1{constructor(_0x27d11a){super(_0x27d11a);const _0x3faffe=this[_0x168d('0x1')],_0x4e53a9=new _0x131538(_0x27d11a),_0x30ea3f=new _0x131538(_0x27d11a);this[_0x168d('0x2')]('isNavigationMode',!0x1),this['set'](_0x168d('0x10'),!0x1),this[_0x168d('0x2')](_0x168d('0x16'),0x0),this[_0x168d('0x2')]('numberOfChanges',0x0),this[_0x168d('0x2')](_0x168d('0xe'),!0x1),this[_0x168d('0x2')](_0x168d('0x3'),!0x1),this[_0x168d('0x17')](_0x168d('0xb'))['to'](this,_0x168d('0x10'),this,'numberOfChanges',(_0x539301,_0x62d68c)=>_0x539301&&_0x62d68c>0x0),this[_0x168d('0x17')](_0x168d('0xd'))['to'](this,_0x168d('0x10'),this,_0x168d('0x16'),this,_0x168d('0x8'),this,_0x168d('0x12'),(_0x13cd35,_0x134a32,_0x37001d,_0x30e263)=>{if(!_0x13cd35)return _0x188ab2(_0x27d11a,_0x168d('0x19'));if(!_0x37001d)return _0x188ab2(_0x27d11a,'No\x20changes');const _0x5beb11=_0x188ab2(_0x27d11a,'NUMBER_OF_CHANGES',_0x37001d);return _0x30e263?_0x188ab2(_0x27d11a,_0x168d('0x5'),[_0x134a32+0x1,_0x37001d]):_0x5beb11;}),_0x4e53a9[_0x168d('0x2')]({'label':_0x188ab2(_0x27d11a,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x82b8db}),_0x30ea3f[_0x168d('0x2')]({'label':_0x188ab2(_0x27d11a,_0x168d('0x0')),'tooltip':!0x0,'icon':_0x3e887d}),_0x4e53a9[_0x168d('0x17')](_0x168d('0x9'))['to'](this,_0x168d('0x3')),_0x30ea3f[_0x168d('0x17')](_0x168d('0x9'))['to'](this,_0x168d('0xe')),_0x4e53a9['on'](_0x168d('0xa'),()=>this[_0x168d('0x13')](_0x168d('0xa'),_0x168d('0x6'))),_0x30ea3f['on'](_0x168d('0xa'),()=>this['fire'](_0x168d('0xa'),'forward')),this[_0x168d('0xf')]({'tag':_0x168d('0xc'),'attributes':{'class':['ck',_0x168d('0x15'),_0x168d('0x4')]},'children':[{'tag':_0x168d('0x11'),'attributes':{'class':[_0x168d('0x7')]},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x3faffe['if']('_isStatusLabelVisible',_0x168d('0x18'),_0x259288=>!_0x259288)]},'children':[{'text':_0x3faffe['to'](_0x168d('0x12'),_0x23b79d=>_0x23b79d?_0x188ab2(_0x27d11a,_0x168d('0x14'))+':\x20':_0x188ab2(_0x27d11a,'Total')+':\x20')}]},{'text':_0x3faffe['to']('_statusText')}]},new _0x2ceab8(),{'tag':_0x168d('0xc'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4e53a9,_0x30ea3f]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1860=['ck-editor__editable__loading-overlay','document','editing','change','addClass','editor','removeClass','pluginName','roots'];(function(_0x405005,_0x18604a){const _0x2d4fe2=function(_0x2c8ad3){while(--_0x2c8ad3){_0x405005['push'](_0x405005['shift']());}};_0x2d4fe2(++_0x18604a);}(_0x1860,0x172));const _0x2d4f=function(_0x405005,_0x18604a){_0x405005=_0x405005-0x0;let _0x2d4fe2=_0x1860[_0x405005];return _0x2d4fe2;};import{Plugin as _0x479f17}from'ckeditor5/src/core';const oe=_0x2d4f('0x8');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x479f17{static get[_0x2d4f('0x6')](){return'RevisionViewerLoadingOverlay';}['show'](){const _0x21e9fe=this['editor'][_0x2d4f('0x1')]['view'];_0x21e9fe[_0x2d4f('0x2')](_0x47b14c=>{for(const _0x12de00 of _0x21e9fe[_0x2d4f('0x0')][_0x2d4f('0x7')])_0x47b14c[_0x2d4f('0x3')](oe,_0x12de00);});}['hide'](){const _0x3c7b02=this[_0x2d4f('0x4')][_0x2d4f('0x1')]['view'];_0x3c7b02[_0x2d4f('0x2')](_0x3c2acb=>{for(const _0x52ac11 of _0x3c7b02['document']['roots'])_0x3c2acb[_0x2d4f('0x5')](oe,_0x52ac11);});}}
23
+ const _0x10a4=['ck-editor__editable__loading-overlay','RevisionViewerLoadingOverlay','pluginName','addClass','roots','show','view','editor','editing','document'];(function(_0x2ae303,_0x10a468){const _0x440dbf=function(_0x15a20c){while(--_0x15a20c){_0x2ae303['push'](_0x2ae303['shift']());}};_0x440dbf(++_0x10a468);}(_0x10a4,0x118));const _0x440d=function(_0x2ae303,_0x10a468){_0x2ae303=_0x2ae303-0x0;let _0x440dbf=_0x10a4[_0x2ae303];return _0x440dbf;};import{Plugin as _0x3f5b3a}from'ckeditor5/src/core';const oe=_0x440d('0x0');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x3f5b3a{static get[_0x440d('0x2')](){return _0x440d('0x1');}[_0x440d('0x5')](){const _0x45773b=this['editor'][_0x440d('0x8')]['view'];_0x45773b['change'](_0x2f594e=>{for(const _0xfdf49c of _0x45773b[_0x440d('0x9')][_0x440d('0x4')])_0x2f594e[_0x440d('0x3')](oe,_0xfdf49c);});}['hide'](){const _0x1b1c81=this[_0x440d('0x7')]['editing'][_0x440d('0x6')];_0x1b1c81['change'](_0x27ee34=>{for(const _0x35ac17 of _0x1b1c81[_0x440d('0x9')][_0x440d('0x4')])_0x27ee34['removeClass'](oe,_0x35ac17);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x399b=['changesNavigation','closeRevisionViewerCallback','change:isReady','requires','init','isBackwardNavigationEnabled','listenTo','isEnabled','execute','showNextChange','pluginName','editor','set','plugins','currentChangeNumber','config','showPreviousChange','bind','isNavigationMode','add','get','show','RevisionViewerUI','Restore\x20this\x20revision','isReady','restoreRevision','commands','numberOfChanges','componentFactory','Back\x20to\x20editing'];(function(_0x4905b2,_0x399b43){const _0x17dfc1=function(_0x25e40c){while(--_0x25e40c){_0x4905b2['push'](_0x4905b2['shift']());}};_0x17dfc1(++_0x399b43);}(_0x399b,0x197));const _0x17df=function(_0x4905b2,_0x399b43){_0x4905b2=_0x4905b2-0x0;let _0x17dfc1=_0x399b[_0x4905b2];return _0x17dfc1;};import{Plugin as _0x2e6aad}from'ckeditor5/src/core';import{ButtonView as _0x21b18b}from'ckeditor5/src/ui';import _0x2732b6 from'./changesnavigationview';import _0x46a187 from'./../../revisionviewer';import _0x11bd4d from'./revisionviewerloadingoverlay';import{getTranslation as _0x40c783}from'../../utils/common-translations';import _0x33974c from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x2e6aad{static get[_0x17df('0x17')](){return _0x17df('0x5');}static get[_0x17df('0x10')](){return[_0x46a187,_0x11bd4d];}[_0x17df('0x11')](){const _0x19e6fb=this[_0x17df('0x18')],_0x274d15=_0x19e6fb['plugins'][_0x17df('0x3')](_0x46a187),_0x3cdfc6=_0x19e6fb[_0x17df('0x1a')][_0x17df('0x3')](_0x11bd4d);_0x19e6fb['ui'][_0x17df('0xb')][_0x17df('0x2')]('exitToEditing',_0x5c00aa=>{const _0x2f2f5e=new _0x21b18b(_0x5c00aa);return _0x2f2f5e[_0x17df('0x19')]({'label':_0x40c783(_0x5c00aa,_0x17df('0xc')),'icon':_0x33974c,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this[_0x17df('0x13')](_0x2f2f5e,_0x17df('0x15'),()=>{_0x19e6fb[_0x17df('0x1c')]['get']('revisionHistory')[_0x17df('0xe')]();}),_0x2f2f5e;}),_0x19e6fb['ui'][_0x17df('0xb')][_0x17df('0x2')](_0x17df('0x8'),_0x20c80b=>{const _0xaaac9b=new _0x21b18b(_0x20c80b);return _0xaaac9b[_0x17df('0x19')]({'label':_0x40c783(_0x20c80b,_0x17df('0x6')),'withText':!0x0,'tooltip':!0x0}),_0xaaac9b[_0x17df('0x0')](_0x17df('0x14'))['to'](_0x19e6fb[_0x17df('0x9')][_0x17df('0x3')]('restoreRevision')),this[_0x17df('0x13')](_0xaaac9b,_0x17df('0x15'),()=>_0x19e6fb[_0x17df('0x15')](_0x17df('0x8'))),_0xaaac9b;}),_0x19e6fb['ui'][_0x17df('0xb')][_0x17df('0x2')](_0x17df('0xd'),_0x3c1889=>{const _0x127900=new _0x2732b6(_0x3c1889),_0x4669ab=_0x19e6fb['commands'][_0x17df('0x3')]('showPreviousChange'),_0x178415=_0x19e6fb[_0x17df('0x9')][_0x17df('0x3')](_0x17df('0x16'));return _0x127900[_0x17df('0x0')](_0x17df('0x12'))['to'](_0x4669ab,_0x17df('0x14')),_0x127900[_0x17df('0x0')]('isForwardNavigationEnabled')['to'](_0x178415,_0x17df('0x14')),_0x127900[_0x17df('0x0')](_0x17df('0x7'),_0x17df('0x1b'),_0x17df('0xa'),_0x17df('0x1'))['to'](_0x274d15),this['listenTo'](_0x127900,'execute',(_0x291da6,_0x1cb209)=>{_0x19e6fb[_0x17df('0x15')]('forward'===_0x1cb209?'showNextChange':_0x17df('0x1d'));}),_0x127900;}),_0x3cdfc6[_0x17df('0x4')](),_0x274d15['on'](_0x17df('0xf'),(_0x44db66,_0x131368,_0x5c6623)=>{_0x5c6623?_0x3cdfc6['hide']():_0x3cdfc6['show']();});}}
23
+ const _0x1aed=['commands','showNextChange','isReady','componentFactory','plugins','RevisionViewerUI','execute','add','init','editor','ck-revision-history-ui__back-to-editing','bind','hide','currentChangeNumber','pluginName','Restore\x20this\x20revision','change:isReady','isForwardNavigationEnabled','exitToEditing','isNavigationMode','config','isEnabled','Back\x20to\x20editing','forward','listenTo','numberOfChanges','requires','show','get','set','restoreRevision','revisionHistory'];(function(_0x203327,_0x1aed97){const _0x94ceaa=function(_0x1f4a8c){while(--_0x1f4a8c){_0x203327['push'](_0x203327['shift']());}};_0x94ceaa(++_0x1aed97);}(_0x1aed,0xeb));const _0x94ce=function(_0x203327,_0x1aed97){_0x203327=_0x203327-0x0;let _0x94ceaa=_0x1aed[_0x203327];return _0x94ceaa;};import{Plugin as _0x4a407a}from'ckeditor5/src/core';import{ButtonView as _0x5003fc}from'ckeditor5/src/ui';import _0x21cd2d from'./changesnavigationview';import _0x910729 from'./../../revisionviewer';import _0x22c03a from'./revisionviewerloadingoverlay';import{getTranslation as _0x241fe3}from'../../utils/common-translations';import _0x1cbb19 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x4a407a{static get[_0x94ce('0x3')](){return _0x94ce('0x1a');}static get[_0x94ce('0xf')](){return[_0x910729,_0x22c03a];}[_0x94ce('0x1d')](){const _0x3fefe5=this[_0x94ce('0x1e')],_0x598e03=_0x3fefe5[_0x94ce('0x19')][_0x94ce('0x11')](_0x910729),_0x5d4364=_0x3fefe5[_0x94ce('0x19')]['get'](_0x22c03a);_0x3fefe5['ui']['componentFactory'][_0x94ce('0x1c')](_0x94ce('0x7'),_0x25eca6=>{const _0x100b9f=new _0x5003fc(_0x25eca6);return _0x100b9f['set']({'label':_0x241fe3(_0x25eca6,_0x94ce('0xb')),'icon':_0x1cbb19,'withText':!0x0,'tooltip':!0x0,'class':_0x94ce('0x1f')}),this[_0x94ce('0xd')](_0x100b9f,_0x94ce('0x1b'),()=>{_0x3fefe5[_0x94ce('0x9')][_0x94ce('0x11')](_0x94ce('0x14'))['closeRevisionViewerCallback']();}),_0x100b9f;}),_0x3fefe5['ui'][_0x94ce('0x18')][_0x94ce('0x1c')](_0x94ce('0x13'),_0x482ab0=>{const _0xdc822f=new _0x5003fc(_0x482ab0);return _0xdc822f[_0x94ce('0x12')]({'label':_0x241fe3(_0x482ab0,_0x94ce('0x4')),'withText':!0x0,'tooltip':!0x0}),_0xdc822f[_0x94ce('0x0')]('isEnabled')['to'](_0x3fefe5['commands'][_0x94ce('0x11')](_0x94ce('0x13'))),this[_0x94ce('0xd')](_0xdc822f,_0x94ce('0x1b'),()=>_0x3fefe5[_0x94ce('0x1b')]('restoreRevision')),_0xdc822f;}),_0x3fefe5['ui'][_0x94ce('0x18')]['add']('changesNavigation',_0x53f3a0=>{const _0x435823=new _0x21cd2d(_0x53f3a0),_0x509e51=_0x3fefe5[_0x94ce('0x15')][_0x94ce('0x11')]('showPreviousChange'),_0x1e47f5=_0x3fefe5['commands'][_0x94ce('0x11')](_0x94ce('0x16'));return _0x435823[_0x94ce('0x0')]('isBackwardNavigationEnabled')['to'](_0x509e51,_0x94ce('0xa')),_0x435823[_0x94ce('0x0')](_0x94ce('0x6'))['to'](_0x1e47f5,'isEnabled'),_0x435823[_0x94ce('0x0')](_0x94ce('0x17'),_0x94ce('0x2'),_0x94ce('0xe'),_0x94ce('0x8'))['to'](_0x598e03),this['listenTo'](_0x435823,_0x94ce('0x1b'),(_0x4c506b,_0x3d7b21)=>{_0x3fefe5[_0x94ce('0x1b')](_0x94ce('0xc')===_0x3d7b21?_0x94ce('0x16'):'showPreviousChange');}),_0x435823;}),_0x5d4364[_0x94ce('0x10')](),_0x598e03['on'](_0x94ce('0x5'),(_0x319a97,_0x47cfaa,_0x3baecf)=>{_0x3baecf?_0x5d4364[_0x94ce('0x1')]():_0x5d4364[_0x94ce('0x10')]();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x31e3a6,_0x33ec82,_0x30565c){const t=_0x31e3a6['t'];switch(_0x33ec82){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'},_0x30565c);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x30565c);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 _0x33ec82;}}
23
+ export function getTranslation(_0x1e5e82,_0x2c329c,_0x4ff111){const t=_0x1e5e82['t'];switch(_0x2c329c){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'},_0x4ff111);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4ff111);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 _0x2c329c;}}