@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231010.0 → 0.0.0-nightly-20231012.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 _0x45ea=['Revision\x20history','submit','isReadOnly','buttonView','set','execute','pluginName','items','get','length','bind','Save\x20current\x20revision','change:isOpen','saveRevision','panelView','isEnabled','componentFactory','add','isReady','reset','saveButtonView','revisionName','focus','view','revisionHistory','children','addMany','plugins','init','remove','requires'];(function(_0x56a9df,_0x45ea67){const _0x490524=function(_0x5f05b2){while(--_0x5f05b2){_0x56a9df['push'](_0x56a9df['shift']());}};_0x490524(++_0x45ea67);}(_0x45ea,0x1d0));const _0x4905=function(_0x56a9df,_0x45ea67){_0x56a9df=_0x56a9df-0x0;let _0x490524=_0x45ea[_0x56a9df];return _0x490524;};import{Plugin as _0x1b5e80,icons as _0x3f8286}from'ckeditor5/src/core';import{ListView as _0x3522f7,ListItemView as _0x339fa9,ButtonView as _0x2e0324,createDropdown as _0x3926ec}from'ckeditor5/src/ui';import _0x1df703 from'../../revisiontracker';import _0x5748bc from'./revisionhistorysaverevisionformview';import{getTranslation as _0x4622cd}from'../../utils/common-translations';export default class u extends _0x1b5e80{static get[_0x4905('0x7')](){return'RevisionHistoryUI';}static get[_0x4905('0x0')](){return[_0x1df703];}[_0x4905('0x1d')](){const _0x147441=this['editor'],_0x1e9ccf=_0x147441['plugins'][_0x4905('0x9')]('RevisionTracker');_0x147441['ui'][_0x4905('0x11')][_0x4905('0x12')](_0x4905('0x19'),_0x364c01=>{const _0x1accf8=_0x3926ec(_0x364c01),_0x41d841=_0x1accf8[_0x4905('0xf')][_0x4905('0x1a')],_0x37bd92=new _0x3522f7(_0x364c01),_0xd7391f=new _0x339fa9(_0x364c01),_0x5b09c6=new _0x2e0324(_0x364c01),_0x5737ae=new _0x339fa9(_0x364c01),_0x22b555=new _0x2e0324(_0x364c01),_0x4e1274=new _0x5748bc(_0x364c01);function _0x3413d2(){_0x41d841[_0x4905('0xa')]&&_0x41d841[_0x4905('0x1e')](0x0),_0x41d841['add'](_0x37bd92);}function _0x10077b(){_0x1accf8['isOpen']=!0x1,_0x147441['editing'][_0x4905('0x18')][_0x4905('0x17')]();}return _0x1accf8['bind'](_0x4905('0x10'))['to'](_0x1e9ccf,_0x4905('0x13'),_0x1e9ccf,'isEnabled',_0x147441,'isReadOnly',(_0x48b312,_0x28efdb,_0x52502f)=>_0x48b312&&_0x28efdb&&!_0x52502f),_0x1accf8[_0x4905('0x4')][_0x4905('0x5')]({'icon':_0x3f8286['history'],'label':_0x4622cd(_0x364c01,_0x4905('0x1')),'tooltip':!0x0}),_0x5b09c6[_0x4905('0x5')]({'label':_0x4622cd(_0x364c01,_0x4905('0xc')),'withText':!0x0}),_0x5b09c6[_0x4905('0xb')]('isEnabled')['to'](_0x1e9ccf,_0x4905('0x13'),_0x1e9ccf,_0x4905('0x10'),_0x147441,'isReadOnly',(_0x2fa533,_0x15ba83,_0x2a42a6)=>_0x2fa533&&_0x15ba83&&!_0x2a42a6),_0x5b09c6['on'](_0x4905('0x6'),()=>function(){_0x41d841[_0x4905('0xa')]&&_0x41d841['remove'](0x0),(_0x4e1274[_0x4905('0x14')](),_0x41d841['add'](_0x4e1274),_0x4e1274['focus']());}()),_0x22b555[_0x4905('0x5')]({'label':_0x4622cd(_0x364c01,'Open\x20revision\x20history'),'withText':!0x0}),_0x22b555['bind'](_0x4905('0x10'))['to'](_0x1e9ccf,_0x4905('0x13'),_0x147441,_0x4905('0x3'),(_0x767f27,_0x400621)=>_0x767f27&&!_0x400621),_0x22b555['on'](_0x4905('0x6'),()=>{_0x147441['config']['get'](_0x4905('0x19'))['showRevisionViewerCallback'](),_0x10077b();}),_0xd7391f[_0x4905('0x1a')][_0x4905('0x12')](_0x5b09c6),_0x5737ae['children'][_0x4905('0x12')](_0x22b555),_0x37bd92[_0x4905('0x8')][_0x4905('0x1b')]([_0xd7391f,_0x5737ae]),_0x1accf8['on'](_0x4905('0xd'),()=>_0x3413d2()),_0x4e1274[_0x4905('0x15')][_0x4905('0xb')](_0x4905('0x10'))['to'](_0x1e9ccf,'isReady',_0x1e9ccf,_0x4905('0x10'),_0x147441,_0x4905('0x3'),(_0x441ce2,_0x167e0d,_0x41df2e)=>_0x441ce2&&_0x167e0d&&!_0x41df2e),_0x4e1274['on'](_0x4905('0x2'),()=>(_0x147441[_0x4905('0x1c')][_0x4905('0x9')](_0x1df703)[_0x4905('0xe')]({'name':_0x4e1274[_0x4905('0x16')]}),void _0x10077b())),_0x4e1274['on']('cancel',()=>_0x3413d2()),_0x4e1274['render'](),_0x3413d2(),_0x1accf8;});}}
23
+ const _0x29b8=['cancel','length','showRevisionViewerCallback','saveButtonView','config','change:isOpen','editor','buttonView','isReadOnly','revisionHistory','revisionName','set','panelView','Save\x20current\x20revision','Revision\x20history','addMany','componentFactory','items','render','Open\x20revision\x20history','plugins','saveRevision','get','add','remove','children','focus','view','bind','pluginName','isReady','isEnabled','execute'];(function(_0x4a66ae,_0x29b832){const _0xacd35a=function(_0x648479){while(--_0x648479){_0x4a66ae['push'](_0x4a66ae['shift']());}};_0xacd35a(++_0x29b832);}(_0x29b8,0x19c));const _0xacd3=function(_0x4a66ae,_0x29b832){_0x4a66ae=_0x4a66ae-0x0;let _0xacd35a=_0x29b8[_0x4a66ae];return _0xacd35a;};import{Plugin as _0x3c4539,icons as _0x28f8a0}from'ckeditor5/src/core';import{ListView as _0x290c31,ListItemView as _0x526715,ButtonView as _0x59bd3c,createDropdown as _0x292efe}from'ckeditor5/src/ui';import _0x4711ab from'../../revisiontracker';import _0x43d6b4 from'./revisionhistorysaverevisionformview';import{getTranslation as _0x1a21a9}from'../../utils/common-translations';export default class u extends _0x3c4539{static get[_0xacd3('0xd')](){return'RevisionHistoryUI';}static get['requires'](){return[_0x4711ab];}['init'](){const _0x2800c4=this[_0xacd3('0x17')],_0xd84985=_0x2800c4[_0xacd3('0x4')][_0xacd3('0x6')]('RevisionTracker');_0x2800c4['ui'][_0xacd3('0x0')][_0xacd3('0x7')](_0xacd3('0x1a'),_0x5956f1=>{const _0x171af8=_0x292efe(_0x5956f1),_0x30e966=_0x171af8[_0xacd3('0x1d')][_0xacd3('0x9')],_0x29fc73=new _0x290c31(_0x5956f1),_0xeff1c5=new _0x526715(_0x5956f1),_0x160ee6=new _0x59bd3c(_0x5956f1),_0xdedd0c=new _0x526715(_0x5956f1),_0x36a1e7=new _0x59bd3c(_0x5956f1),_0x38452d=new _0x43d6b4(_0x5956f1);function _0x87e2c(){_0x30e966[_0xacd3('0x12')]&&_0x30e966[_0xacd3('0x8')](0x0),_0x30e966['add'](_0x29fc73);}function _0xd31c4c(){_0x171af8['isOpen']=!0x1,_0x2800c4['editing'][_0xacd3('0xb')]['focus']();}return _0x171af8[_0xacd3('0xc')](_0xacd3('0xf'))['to'](_0xd84985,_0xacd3('0xe'),_0xd84985,_0xacd3('0xf'),_0x2800c4,_0xacd3('0x19'),(_0x3585ab,_0x3af2a0,_0x31c004)=>_0x3585ab&&_0x3af2a0&&!_0x31c004),_0x171af8[_0xacd3('0x18')][_0xacd3('0x1c')]({'icon':_0x28f8a0['history'],'label':_0x1a21a9(_0x5956f1,_0xacd3('0x1f')),'tooltip':!0x0}),_0x160ee6[_0xacd3('0x1c')]({'label':_0x1a21a9(_0x5956f1,_0xacd3('0x1e')),'withText':!0x0}),_0x160ee6[_0xacd3('0xc')](_0xacd3('0xf'))['to'](_0xd84985,'isReady',_0xd84985,_0xacd3('0xf'),_0x2800c4,_0xacd3('0x19'),(_0x51312a,_0x21d7a8,_0xfc532)=>_0x51312a&&_0x21d7a8&&!_0xfc532),_0x160ee6['on'](_0xacd3('0x10'),()=>function(){_0x30e966[_0xacd3('0x12')]&&_0x30e966['remove'](0x0),(_0x38452d['reset'](),_0x30e966[_0xacd3('0x7')](_0x38452d),_0x38452d[_0xacd3('0xa')]());}()),_0x36a1e7[_0xacd3('0x1c')]({'label':_0x1a21a9(_0x5956f1,_0xacd3('0x3')),'withText':!0x0}),_0x36a1e7['bind'](_0xacd3('0xf'))['to'](_0xd84985,'isReady',_0x2800c4,_0xacd3('0x19'),(_0x29a4a2,_0x1b837c)=>_0x29a4a2&&!_0x1b837c),_0x36a1e7['on'](_0xacd3('0x10'),()=>{_0x2800c4[_0xacd3('0x15')][_0xacd3('0x6')](_0xacd3('0x1a'))[_0xacd3('0x13')](),_0xd31c4c();}),_0xeff1c5[_0xacd3('0x9')][_0xacd3('0x7')](_0x160ee6),_0xdedd0c[_0xacd3('0x9')][_0xacd3('0x7')](_0x36a1e7),_0x29fc73[_0xacd3('0x1')][_0xacd3('0x20')]([_0xeff1c5,_0xdedd0c]),_0x171af8['on'](_0xacd3('0x16'),()=>_0x87e2c()),_0x38452d[_0xacd3('0x14')]['bind'](_0xacd3('0xf'))['to'](_0xd84985,_0xacd3('0xe'),_0xd84985,'isEnabled',_0x2800c4,'isReadOnly',(_0x4101b7,_0x14367c,_0xf563f8)=>_0x4101b7&&_0x14367c&&!_0xf563f8),_0x38452d['on']('submit',()=>(_0x2800c4[_0xacd3('0x4')][_0xacd3('0x6')](_0x4711ab)[_0xacd3('0x5')]({'name':_0x38452d[_0xacd3('0x1b')]}),void _0xd31c4c())),_0x38452d['on'](_0xacd3('0x11'),()=>_0x87e2c()),_0x38452d[_0xacd3('0x2')](),_0x87e2c(),_0x171af8;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x16a2=['isVisible','getRevisionsInDiff','fieldView','_revisionViewer','isSelected','_handleRevisionSetName','Restore\x20this\x20revision','name','revisionViews','action','_revisionsRepository','isEnabled','string','appendChild','_sidebarView','init','repository','get','_handleRevisionSelected','bind','map','restoreRevisionCallback','nameRevision','getIndex','getEarlierVisibleRevision','isReady','restoreRevision','remove','revisionSelected','ready','getLaterVisibleRevision','timePeriodViews','defaultRevisionActions','pluginName','data','focus','highlightRevisions','Compare\x20against\x20selected','length','compareAgainstSelected','destroy','compare','revisionHistory.revisionActions','editor','element','_handleEditorDataReady','_createRevisionActions','config','plugins','setName','RevisionsSidebar','getRevision','select','_handleDiffChange','revisionHistory.viewerSidebarContainer','listenTo','availableRevisionActions'];(function(_0x4da081,_0x16a292){const _0x1abaa6=function(_0x1a73eb){while(--_0x1a73eb){_0x4da081['push'](_0x4da081['shift']());}};_0x1abaa6(++_0x16a292);}(_0x16a2,0x1aa));const _0x1aba=function(_0x4da081,_0x16a292){_0x4da081=_0x4da081-0x0;let _0x1abaa6=_0x16a2[_0x4da081];return _0x1abaa6;};import{Plugin as _0x59dea9}from'ckeditor5/src/core';import _0x5b2ea5 from'./revisionssidebarview';import _0x4274b5 from'../../revisionviewer';export default class w extends _0x59dea9{static get[_0x1aba('0x6')](){return _0x1aba('0x17');}static get['requires'](){return[_0x4274b5];}constructor(_0x2fb3b0){super(_0x2fb3b0),this[_0x1aba('0x21')]=_0x2fb3b0[_0x1aba('0x15')][_0x1aba('0x2f')](_0x4274b5),this[_0x1aba('0x28')]=this[_0x1aba('0x21')][_0x1aba('0x2e')],this['_sidebarView']=null;}[_0x1aba('0x2d')](){const _0x5cb85d=this['_revisionsRepository']['_revisions'],_0x3c3f91=this[_0x1aba('0x13')](),_0x524f85=this[_0x1aba('0x10')][_0x1aba('0x14')][_0x1aba('0x2f')](_0x1aba('0x1b'));this[_0x1aba('0x2c')]=new _0x5b2ea5(this['editor']['locale'],_0x5cb85d,_0x3c3f91),this[_0x1aba('0x2c')]['on'](_0x1aba('0x1'),this[_0x1aba('0x30')][_0x1aba('0x31')](this)),this[_0x1aba('0x2c')]['on']('revisionSetName',this[_0x1aba('0x23')][_0x1aba('0x31')](this)),this[_0x1aba('0x2c')][_0x1aba('0x31')](_0x1aba('0x29'))['to'](this[_0x1aba('0x21')]),this[_0x1aba('0x2c')][_0x1aba('0x4')]['on']('add',(_0x906994,_0xf1a03e)=>{_0xf1a03e[_0x1aba('0x26')]['on']('add',(_0xbc81ed,_0x4b48e2)=>{_0x4b48e2['bind']('isEnabled',_0x1aba('0x37'))['to'](this['_revisionViewer']);});}),this['_sidebarView']['render'](),this[_0x1aba('0x1c')](this[_0x1aba('0x10')][_0x1aba('0x7')],_0x1aba('0x2'),this[_0x1aba('0x12')][_0x1aba('0x31')](this)),this[_0x1aba('0x1c')](this[_0x1aba('0x21')],'change:diff',this['_handleDiffChange'][_0x1aba('0x31')](this)),_0x524f85[_0x1aba('0x2b')](this[_0x1aba('0x2c')][_0x1aba('0x11')]);}[_0x1aba('0xd')](){this[_0x1aba('0x2c')][_0x1aba('0x11')][_0x1aba('0x0')](),this['_sidebarView']['destroy']();}[_0x1aba('0x12')](){const _0x49f981=this[_0x1aba('0x28')][_0x1aba('0x18')](0x0);if(_0x49f981){const _0x246c76=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x49f981['id']);this[_0x1aba('0x21')][_0x1aba('0xe')](_0x49f981,_0x246c76);}}[_0x1aba('0x30')](_0x19e2eb,_0x557c3c){const _0x127b57=this[_0x1aba('0x28')]['getRevision'](_0x557c3c['id']),_0x202cf7=this[_0x1aba('0x28')]['getEarlierVisibleRevision'](_0x127b57['id']);this[_0x1aba('0x21')][_0x1aba('0xe')](_0x127b57,_0x202cf7);}[_0x1aba('0x23')](_0x4eba6a,_0x3bba07){this[_0x1aba('0x28')][_0x1aba('0x18')](_0x3bba07['id'])[_0x1aba('0x16')](_0x3bba07[_0x1aba('0x25')]);}[_0x1aba('0x1a')](_0x247c66,_0x30c887,_0x394e4b){const _0x3e8812=this[_0x1aba('0x28')]['getRevisionsInDiff'](_0x394e4b);_0x3e8812[_0x1aba('0xb')]>0x2?(this[_0x1aba('0x2c')][_0x1aba('0x9')](_0x3e8812),this['_sidebarView']['selectRevision'](null)):(this[_0x1aba('0x2c')][_0x1aba('0x9')]([]),this[_0x1aba('0x2c')]['selectRevision'](_0x3e8812[0x0]));}['_createRevisionActions'](){const _0x3e57b2=this[_0x1aba('0x10')],_0xdade4=w[_0x1aba('0x1d')],_0x451747=_0x3e57b2[_0x1aba('0x14')][_0x1aba('0x2f')](_0x1aba('0xf'))||w[_0x1aba('0x5')];if(_0x451747[_0x1aba('0xb')])return _0x451747[_0x1aba('0x32')](_0x50554f=>{const _0x40b855=_0x1aba('0x2a')==typeof _0x50554f?Object['assign']({},_0xdade4[_0x50554f]):_0x50554f;return _0x40b855['action']=_0x40b855[_0x1aba('0x27')][_0x1aba('0x31')](this,_0x3e57b2),_0x40b855[_0x1aba('0x1e')]&&(_0x40b855[_0x1aba('0x1e')]=_0x40b855[_0x1aba('0x1e')][_0x1aba('0x31')](this,_0x3e57b2)),_0x40b855;});}}w[_0x1aba('0x1d')]={'compareAgainstSelected':{'name':_0x1aba('0xa'),'action':({plugins:_0x2c68fd},_0x205cd1)=>{const _0x5cc2dd=_0x2c68fd[_0x1aba('0x2f')](_0x4274b5),_0x326574=_0x5cc2dd[_0x1aba('0x2e')];let _0x2b94e2=_0x5cc2dd['diff']['newRevisionId'],_0x15ef41=_0x205cd1['id'];_0x326574[_0x1aba('0x35')](_0x2b94e2)>_0x326574['getIndex'](_0x15ef41)&&([_0x2b94e2,_0x15ef41]=[_0x15ef41,_0x2b94e2]),_0x5cc2dd['compare'](_0x2b94e2,_0x15ef41);},'isVisible':({plugins:_0x47e523},_0x27a7ab)=>{const _0x5f4c4d=_0x47e523['get'](_0x4274b5);return!(_0x5f4c4d[_0x1aba('0x2e')][_0x1aba('0x1f')](_0x5f4c4d['diff'])[_0x1aba('0xb')]>0x2)&&!_0x27a7ab[_0x1aba('0x22')];}},'restoreRevision':{'name':_0x1aba('0x24'),'action':(_0x1e6b2e,{id:_0x4364df})=>{_0x1e6b2e[_0x1aba('0x14')]['get']('revisionHistory')[_0x1aba('0x33')](_0x4364df);},'isVisible':({plugins:_0x26d1d0},_0x31f44b)=>!!_0x26d1d0[_0x1aba('0x2f')](_0x4274b5)[_0x1aba('0x2e')][_0x1aba('0x3')](_0x31f44b['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x4a9569},{id:_0xfd4596,revisionNameView:_0x1ae284})=>{const _0x46c072=_0x4a9569['get'](_0x4274b5),_0x834df9=_0x46c072[_0x1aba('0x2e')][_0x1aba('0x36')](_0xfd4596);_0x46c072[_0x1aba('0xe')](_0xfd4596,_0x834df9),_0x1ae284[_0x1aba('0x8')](),_0x1ae284[_0x1aba('0x20')][_0x1aba('0x19')]();}}},w[_0x1aba('0x5')]=[_0x1aba('0xc'),_0x1aba('0x38'),_0x1aba('0x34')];
23
+ const _0x3054=['name','_createRevisionActions','_handleDiffChange','compare','revisionViews','Name\x20this\x20revision','getLaterVisibleRevision','appendChild','_sidebarView','revisionHistory','_revisionsRepository','getRevision','highlightRevisions','bind','_revisionViewer','listenTo','_handleRevisionSetName','locale','revisionSelected','RevisionsSidebar','isSelected','nameRevision','revisionHistory.revisionActions','repository','action','pluginName','setName','add','restoreRevision','editor','getRevisionsInDiff','timePeriodViews','isEnabled','select','_handleRevisionSelected','revisionHistory.viewerSidebarContainer','focus','getIndex','ready','destroy','_handleEditorDataReady','getEarlierVisibleRevision','init','data','length','render','defaultRevisionActions','availableRevisionActions','isVisible','plugins','get','fieldView'];(function(_0x2f19d8,_0x30546c){const _0x396ddf=function(_0x29dae5){while(--_0x29dae5){_0x2f19d8['push'](_0x2f19d8['shift']());}};_0x396ddf(++_0x30546c);}(_0x3054,0x12a));const _0x396d=function(_0x2f19d8,_0x30546c){_0x2f19d8=_0x2f19d8-0x0;let _0x396ddf=_0x3054[_0x2f19d8];return _0x396ddf;};import{Plugin as _0x574d8c}from'ckeditor5/src/core';import _0x13b4f0 from'./revisionssidebarview';import _0x2f4a08 from'../../revisionviewer';export default class w extends _0x574d8c{static get[_0x396d('0x27')](){return _0x396d('0x21');}static get['requires'](){return[_0x2f4a08];}constructor(_0x132ed3){super(_0x132ed3),this[_0x396d('0x1c')]=_0x132ed3[_0x396d('0xb')][_0x396d('0xc')](_0x2f4a08),this['_revisionsRepository']=this[_0x396d('0x1c')]['repository'],this[_0x396d('0x16')]=null;}[_0x396d('0x4')](){const _0x363beb=this['_revisionsRepository']['_revisions'],_0x3d9cde=this[_0x396d('0xf')](),_0x1dee41=this[_0x396d('0x2b')]['config'][_0x396d('0xc')](_0x396d('0x31'));this[_0x396d('0x16')]=new _0x13b4f0(this['editor'][_0x396d('0x1f')],_0x363beb,_0x3d9cde),this['_sidebarView']['on'](_0x396d('0x20'),this[_0x396d('0x30')][_0x396d('0x1b')](this)),this[_0x396d('0x16')]['on']('revisionSetName',this['_handleRevisionSetName'][_0x396d('0x1b')](this)),this[_0x396d('0x16')][_0x396d('0x1b')](_0x396d('0x2e'))['to'](this[_0x396d('0x1c')]),this[_0x396d('0x16')][_0x396d('0x2d')]['on'](_0x396d('0x29'),(_0x196703,_0x2543ca)=>{_0x2543ca[_0x396d('0x12')]['on'](_0x396d('0x29'),(_0x541b40,_0x498cae)=>{_0x498cae[_0x396d('0x1b')](_0x396d('0x2e'),'isReady')['to'](this['_revisionViewer']);});}),this[_0x396d('0x16')][_0x396d('0x7')](),this[_0x396d('0x1d')](this['editor'][_0x396d('0x5')],_0x396d('0x0'),this[_0x396d('0x2')][_0x396d('0x1b')](this)),this[_0x396d('0x1d')](this['_revisionViewer'],'change:diff',this[_0x396d('0x10')][_0x396d('0x1b')](this)),_0x1dee41[_0x396d('0x15')](this[_0x396d('0x16')]['element']);}[_0x396d('0x1')](){this[_0x396d('0x16')]['element']['remove'](),this[_0x396d('0x16')][_0x396d('0x1')]();}[_0x396d('0x2')](){const _0x4997e7=this[_0x396d('0x18')][_0x396d('0x19')](0x0);if(_0x4997e7){const _0x132098=this[_0x396d('0x18')][_0x396d('0x3')](_0x4997e7['id']);this[_0x396d('0x1c')]['compare'](_0x4997e7,_0x132098);}}[_0x396d('0x30')](_0x40cded,_0x1d6978){const _0x4aebd1=this[_0x396d('0x18')][_0x396d('0x19')](_0x1d6978['id']),_0x2911a3=this['_revisionsRepository'][_0x396d('0x3')](_0x4aebd1['id']);this[_0x396d('0x1c')]['compare'](_0x4aebd1,_0x2911a3);}[_0x396d('0x1e')](_0x2028ee,_0x1e4040){this['_revisionsRepository']['getRevision'](_0x1e4040['id'])[_0x396d('0x28')](_0x1e4040[_0x396d('0xe')]);}[_0x396d('0x10')](_0x10f007,_0x2796a1,_0x1152cc){const _0x6eb1e2=this['_revisionsRepository'][_0x396d('0x2c')](_0x1152cc);_0x6eb1e2['length']>0x2?(this[_0x396d('0x16')][_0x396d('0x1a')](_0x6eb1e2),this[_0x396d('0x16')]['selectRevision'](null)):(this[_0x396d('0x16')][_0x396d('0x1a')]([]),this[_0x396d('0x16')]['selectRevision'](_0x6eb1e2[0x0]));}['_createRevisionActions'](){const _0x5d03f4=this['editor'],_0x5a195e=w[_0x396d('0x9')],_0x3534cf=_0x5d03f4['config'][_0x396d('0xc')](_0x396d('0x24'))||w[_0x396d('0x8')];if(_0x3534cf[_0x396d('0x6')])return _0x3534cf['map'](_0xfe4028=>{const _0x1a6b0b='string'==typeof _0xfe4028?Object['assign']({},_0x5a195e[_0xfe4028]):_0xfe4028;return _0x1a6b0b['action']=_0x1a6b0b[_0x396d('0x26')]['bind'](this,_0x5d03f4),_0x1a6b0b['isVisible']&&(_0x1a6b0b[_0x396d('0xa')]=_0x1a6b0b['isVisible'][_0x396d('0x1b')](this,_0x5d03f4)),_0x1a6b0b;});}}w[_0x396d('0x9')]={'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x162d93},_0x4982ea)=>{const _0x2985c7=_0x162d93[_0x396d('0xc')](_0x2f4a08),_0x52f3fd=_0x2985c7['repository'];let _0x19c2f1=_0x2985c7['diff']['newRevisionId'],_0x565da6=_0x4982ea['id'];_0x52f3fd[_0x396d('0x33')](_0x19c2f1)>_0x52f3fd[_0x396d('0x33')](_0x565da6)&&([_0x19c2f1,_0x565da6]=[_0x565da6,_0x19c2f1]),_0x2985c7[_0x396d('0x11')](_0x19c2f1,_0x565da6);},'isVisible':({plugins:_0x3266fa},_0x553f3c)=>{const _0x22a2e8=_0x3266fa['get'](_0x2f4a08);return!(_0x22a2e8[_0x396d('0x25')]['getRevisionsInDiff'](_0x22a2e8['diff'])[_0x396d('0x6')]>0x2)&&!_0x553f3c[_0x396d('0x22')];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x14d280,{id:_0x1c2dbf})=>{_0x14d280['config'][_0x396d('0xc')](_0x396d('0x17'))['restoreRevisionCallback'](_0x1c2dbf);},'isVisible':({plugins:_0x18320f},_0x29858b)=>!!_0x18320f[_0x396d('0xc')](_0x2f4a08)[_0x396d('0x25')][_0x396d('0x14')](_0x29858b['id'])},'nameRevision':{'name':_0x396d('0x13'),'action':({plugins:_0x458c2e},{id:_0x4ddcc1,revisionNameView:_0x488c9d})=>{const _0x3cb07a=_0x458c2e[_0x396d('0xc')](_0x2f4a08),_0x10b47a=_0x3cb07a[_0x396d('0x25')]['getEarlierVisibleRevision'](_0x4ddcc1);_0x3cb07a['compare'](_0x4ddcc1,_0x10b47a),_0x488c9d[_0x396d('0x32')](),_0x488c9d[_0x396d('0xd')][_0x396d('0x2f')]();}}},w[_0x396d('0x8')]=['compareAgainstSelected',_0x396d('0x2a'),_0x396d('0x23')];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x6f8f=['ck-reset_all','ck-revision-history-sidebar__header','setTemplate','ck-revision-history-sidebar__header__label','span','Revision\x20history'];(function(_0x15b263,_0x6f8f0d){const _0x279877=function(_0x116ab8){while(--_0x116ab8){_0x15b263['push'](_0x15b263['shift']());}};_0x279877(++_0x6f8f0d);}(_0x6f8f,0xbf));const _0x2798=function(_0x15b263,_0x6f8f0d){_0x15b263=_0x15b263-0x0;let _0x279877=_0x6f8f[_0x15b263];return _0x279877;};import{View as _0x4dc4b6,IconView as _0x579f7c}from'ckeditor5/src/ui';import{getTranslation as _0x5ecf34}from'../../utils/common-translations';import{icons as _0x37fd5c}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rr extends _0x4dc4b6{constructor(_0x49a6c){super(_0x49a6c);const _0x763d16=new _0x579f7c();_0x763d16['content']=_0x37fd5c['history'],this[_0x2798('0x3')]({'tag':'div','attributes':{'class':['ck',_0x2798('0x1'),_0x2798('0x2')]},'children':[_0x763d16,{'tag':_0x2798('0x5'),'attributes':{'class':['ck',_0x2798('0x4')]},'children':[_0x5ecf34(_0x49a6c,_0x2798('0x0'))]}]});}}
23
+ const _0x2566=['history','ck-reset_all','ck-revision-history-sidebar__header','ck-revision-history-sidebar__header__label','content','Revision\x20history','setTemplate','span','div'];(function(_0x1dc654,_0x2566fa){const _0x1e0c3b=function(_0xea9b03){while(--_0xea9b03){_0x1dc654['push'](_0x1dc654['shift']());}};_0x1e0c3b(++_0x2566fa);}(_0x2566,0xe1));const _0x1e0c=function(_0x1dc654,_0x2566fa){_0x1dc654=_0x1dc654-0x0;let _0x1e0c3b=_0x2566[_0x1dc654];return _0x1e0c3b;};import{View as _0xfe04b5,IconView as _0x552eb1}from'ckeditor5/src/ui';import{getTranslation as _0x1bdc81}from'../../utils/common-translations';import{icons as _0x2a4dc1}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rr extends _0xfe04b5{constructor(_0x40a8d1){super(_0x40a8d1);const _0x2ecb27=new _0x552eb1();_0x2ecb27[_0x1e0c('0x4')]=_0x2a4dc1[_0x1e0c('0x0')],this[_0x1e0c('0x6')]({'tag':_0x1e0c('0x8'),'attributes':{'class':['ck',_0x1e0c('0x1'),_0x1e0c('0x2')]},'children':[_0x2ecb27,{'tag':_0x1e0c('0x7'),'attributes':{'class':['ck',_0x1e0c('0x3')]},'children':[_0x1bdc81(_0x40a8d1,_0x1e0c('0x5'))]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x261f=['removeRevision','div','createCollection','span','addRevision','setName','ck-revision-history-sidebar__time-period__label','add','delegate','ck-revision-history-sidebar__time-period__revisions','revisionViews','_revisionActions','locale','remove','startDate'];(function(_0x554af2,_0x261f45){const _0x5d3e79=function(_0x419e0d){while(--_0x419e0d){_0x554af2['push'](_0x554af2['shift']());}};_0x5d3e79(++_0x261f45);}(_0x261f,0x1ca));const _0x5d3e=function(_0x554af2,_0x261f45){_0x554af2=_0x554af2-0x0;let _0x5d3e79=_0x261f[_0x554af2];return _0x5d3e79;};import{View as _0x215a90}from'ckeditor5/src/ui';import _0x47293d from'../revision/revisionview';import{getDateTimePeriodInfo as _0x14edc6}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x215a90{constructor(_0x37f048,_0x4c1424,_0x279375){super(_0x37f048);const _0x1c31d4=_0x14edc6(_0x4c1424,this[_0x5d3e('0x4')]['uiLanguage'])['localizedPeriodName'];this[_0x5d3e('0x6')]=_0x4c1424,this[_0x5d3e('0x2')]=this[_0x5d3e('0x9')](),this[_0x5d3e('0x3')]=_0x279375,this[_0x5d3e('0x2')][_0x5d3e('0x0')]('select')['to'](this),this[_0x5d3e('0x2')][_0x5d3e('0x0')](_0x5d3e('0xc'))['to'](this),this['setTemplate']({'tag':_0x5d3e('0x8'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':_0x5d3e('0xa'),'attributes':{'class':['ck',_0x5d3e('0xd')]},'children':[{'text':_0x1c31d4}]},{'tag':_0x5d3e('0x8'),'attributes':{'class':['ck',_0x5d3e('0x1')]},'children':this[_0x5d3e('0x2')]}]});}[_0x5d3e('0xb')](_0x2d2c50){const _0x4be6f9=new _0x47293d(this[_0x5d3e('0x4')],_0x2d2c50,this['_revisionActions']);this[_0x5d3e('0x2')][_0x5d3e('0xe')](_0x4be6f9);}[_0x5d3e('0x7')](_0x4c5082){const _0x3d1c36=this[_0x5d3e('0x2')]['find'](_0x44419b=>_0x44419b['id']===_0x4c5082['id']);this[_0x5d3e('0x2')][_0x5d3e('0x5')](_0x3d1c36);}}
23
+ const _0x2f9c=['ck-revision-history-sidebar__time-period','find','setName','select','localizedPeriodName','revisionViews','startDate','createCollection','div','addRevision','_revisionActions','ck-revision-history-sidebar__time-period__label','locale','add','delegate','removeRevision','setTemplate'];(function(_0x14fc08,_0x2f9c63){const _0x58ada8=function(_0x1fdda2){while(--_0x1fdda2){_0x14fc08['push'](_0x14fc08['shift']());}};_0x58ada8(++_0x2f9c63);}(_0x2f9c,0xbc));const _0x58ad=function(_0x14fc08,_0x2f9c63){_0x14fc08=_0x14fc08-0x0;let _0x58ada8=_0x2f9c[_0x14fc08];return _0x58ada8;};import{View as _0x2c5a1f}from'ckeditor5/src/ui';import _0x37e769 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x237276}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x2c5a1f{constructor(_0x472535,_0x231b79,_0x45b9f5){super(_0x472535);const _0x59e798=_0x237276(_0x231b79,this[_0x58ad('0xb')]['uiLanguage'])[_0x58ad('0x3')];this[_0x58ad('0x5')]=_0x231b79,this['revisionViews']=this[_0x58ad('0x6')](),this[_0x58ad('0x9')]=_0x45b9f5,this[_0x58ad('0x4')][_0x58ad('0xd')](_0x58ad('0x2'))['to'](this),this[_0x58ad('0x4')][_0x58ad('0xd')](_0x58ad('0x1'))['to'](this),this[_0x58ad('0xf')]({'tag':'div','attributes':{'class':['ck',_0x58ad('0x10')]},'children':[{'tag':'span','attributes':{'class':['ck',_0x58ad('0xa')]},'children':[{'text':_0x59e798}]},{'tag':_0x58ad('0x7'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this[_0x58ad('0x4')]}]});}[_0x58ad('0x8')](_0xb79a34){const _0x3a7206=new _0x37e769(this[_0x58ad('0xb')],_0xb79a34,this[_0x58ad('0x9')]);this['revisionViews'][_0x58ad('0xc')](_0x3a7206);}[_0x58ad('0xe')](_0x2df439){const _0x4c0159=this['revisionViews'][_0x58ad('0x0')](_0x5f4d02=>_0x5f4d02['id']===_0x2df439['id']);this[_0x58ad('0x4')]['remove'](_0x4c0159);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1ba1=['_getTimePeriodViewByStartDate','render','locale','startDate','uiLanguage','ck-revision-history-sidebar__timeline','unhighlight','getTime','removeRevision','some','_removeRevision','revisionViews','_addRevision','ck-reset','setName','revisionSetName','highlightRevisions','div','isEnabled','addRevision','select','flat','bindTemplate','createdAt','_revisionActions','ck-disabled','get','deselect','_revisions','timePeriodViews','map','highlight','fire','delegate','revisionSelected','add','createCollection'];(function(_0x1f142e,_0x1ba172){const _0x5e6508=function(_0x3082ac){while(--_0x3082ac){_0x1f142e['push'](_0x1f142e['shift']());}};_0x5e6508(++_0x1ba172);}(_0x1ba1,0xe6));const _0x5e65=function(_0x1f142e,_0x1ba172){_0x1f142e=_0x1f142e-0x0;let _0x5e6508=_0x1ba1[_0x1f142e];return _0x5e6508;};import{View as _0x348bdb}from'ckeditor5/src/ui';import _0x16c385 from'./revisionssidebartimeperiodview';import _0x2895d5 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x2b8576}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x348bdb{constructor(_0x263723,_0x2eac11,_0x33008f){super(_0x263723);const _0xf3ca7=this[_0x5e65('0xe')];this[_0x5e65('0x15')]=this[_0x5e65('0x1c')](),this['timePeriodViews'][_0x5e65('0x19')]('select')['to'](this),this[_0x5e65('0x15')][_0x5e65('0x19')](_0x5e65('0x6'))['to'](this),this['_revisions']=_0x2eac11,this[_0x5e65('0x10')]=_0x33008f,this['on']('select',(_0x279118,_0x1bdf26)=>{this[_0x5e65('0x18')](_0x5e65('0x1a'),_0x1bdf26);}),this['on']('setName',(_0x16aa74,_0x4f68bc)=>{this[_0x5e65('0x18')](_0x5e65('0x7'),_0x4f68bc);}),this['set'](_0x5e65('0xa'),!0x1),this['setTemplate']({'tag':_0x5e65('0x9'),'attributes':{'class':['ck',_0x5e65('0x5'),'ck-rounded-corners','ck-revision-history-sidebar']},'children':[new _0x2895d5(_0x263723),{'tag':'div','attributes':{'class':['ck',_0x5e65('0x22'),_0xf3ca7['if'](_0x5e65('0xa'),_0x5e65('0x11'),_0x27065e=>!_0x27065e)]},'children':this[_0x5e65('0x15')]}]});}[_0x5e65('0x1e')](){super[_0x5e65('0x1e')]();for(const _0x41a844 of this[_0x5e65('0x14')])this[_0x5e65('0x4')](_0x41a844);this[_0x5e65('0x14')]['on'](_0x5e65('0x1b'),(_0x58d07f,_0x6e24bf)=>{this['_addRevision'](_0x6e24bf);}),this[_0x5e65('0x14')]['on']('remove',(_0x500ade,_0x160eae)=>{this[_0x5e65('0x2')](_0x160eae);});}get[_0x5e65('0x3')](){return this[_0x5e65('0x15')][_0x5e65('0x16')](_0x5f3bfc=>_0x5f3bfc[_0x5e65('0x3')]['map'](_0x54903b=>_0x54903b))[_0x5e65('0xd')]();}['selectRevision'](_0x293691){for(const _0x5543c3 of this[_0x5e65('0x3')])_0x293691&&_0x293691['id']===_0x5543c3['id']?_0x5543c3[_0x5e65('0xc')]():_0x5543c3[_0x5e65('0x13')]();}[_0x5e65('0x8')](_0x5f4a5f){for(const _0x41463e of this['revisionViews'])_0x5f4a5f[_0x5e65('0x1')](({id:_0x1e5c78})=>_0x1e5c78===_0x41463e['id'])?_0x41463e[_0x5e65('0x17')]():_0x41463e[_0x5e65('0x23')]();}[_0x5e65('0x4')](_0x4d79d4){const _0x5f0f88=_0x2b8576(_0x4d79d4[_0x5e65('0xf')],this[_0x5e65('0x1f')][_0x5e65('0x21')])[_0x5e65('0x20')];let _0x21cce3=this[_0x5e65('0x15')][_0x5e65('0x12')](0x0);_0x21cce3&&_0x21cce3[_0x5e65('0x20')][_0x5e65('0x24')]()===_0x5f0f88[_0x5e65('0x24')]()||(_0x21cce3=new _0x16c385(this['locale'],_0x5f0f88,this[_0x5e65('0x10')]),this['timePeriodViews'][_0x5e65('0x1b')](_0x21cce3)),_0x21cce3[_0x5e65('0xb')](_0x4d79d4);}[_0x5e65('0x2')](_0x2283e6){const _0x4ba8d3=_0x2b8576(_0x2283e6[_0x5e65('0xf')],this[_0x5e65('0x1f')]['uiLanguage'])[_0x5e65('0x20')];this[_0x5e65('0x1d')](_0x4ba8d3)[_0x5e65('0x0')](_0x2283e6);}[_0x5e65('0x1d')](_0x36c913){return this[_0x5e65('0x15')]['find'](_0x6dd016=>_0x6dd016['startDate'][_0x5e65('0x24')]()===_0x36c913[_0x5e65('0x24')]());}}
23
+ const _0x2a26=['revisionSelected','ck-rounded-corners','createCollection','highlight','flat','select','remove','_getTimePeriodViewByStartDate','locale','get','startDate','highlightRevisions','setName','ck-revision-history-sidebar','_revisions','div','_revisionActions','render','set','unhighlight','uiLanguage','add','_addRevision','bindTemplate','revisionSetName','removeRevision','setTemplate','ck-disabled','getTime','addRevision','timePeriodViews','createdAt','fire','ck-revision-history-sidebar__timeline','map','find','revisionViews','delegate','some','isEnabled'];(function(_0x227333,_0x2a269e){const _0x678205=function(_0xeedd2a){while(--_0xeedd2a){_0x227333['push'](_0x227333['shift']());}};_0x678205(++_0x2a269e);}(_0x2a26,0xf4));const _0x6782=function(_0x227333,_0x2a269e){_0x227333=_0x227333-0x0;let _0x678205=_0x2a26[_0x227333];return _0x678205;};import{View as _0x418746}from'ckeditor5/src/ui';import _0x23a0dd from'./revisionssidebartimeperiodview';import _0x1b4fc5 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x2b6083}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x418746{constructor(_0x4f9bed,_0x1e1e32,_0x1311d2){super(_0x4f9bed);const _0x484d78=this[_0x6782('0x13')];this[_0x6782('0x1a')]=this[_0x6782('0x26')](),this[_0x6782('0x1a')][_0x6782('0x21')](_0x6782('0x1'))['to'](this),this[_0x6782('0x1a')][_0x6782('0x21')](_0x6782('0x8'))['to'](this),this[_0x6782('0xa')]=_0x1e1e32,this[_0x6782('0xc')]=_0x1311d2,this['on'](_0x6782('0x1'),(_0x102314,_0x27f1d1)=>{this[_0x6782('0x1c')](_0x6782('0x24'),_0x27f1d1);}),this['on'](_0x6782('0x8'),(_0x1b3f93,_0x4ec75a)=>{this['fire'](_0x6782('0x14'),_0x4ec75a);}),this[_0x6782('0xe')](_0x6782('0x23'),!0x1),this[_0x6782('0x16')]({'tag':'div','attributes':{'class':['ck','ck-reset',_0x6782('0x25'),_0x6782('0x9')]},'children':[new _0x1b4fc5(_0x4f9bed),{'tag':_0x6782('0xb'),'attributes':{'class':['ck',_0x6782('0x1d'),_0x484d78['if']('isEnabled',_0x6782('0x17'),_0x303764=>!_0x303764)]},'children':this[_0x6782('0x1a')]}]});}[_0x6782('0xd')](){super[_0x6782('0xd')]();for(const _0x27c9f of this['_revisions'])this[_0x6782('0x12')](_0x27c9f);this[_0x6782('0xa')]['on'](_0x6782('0x11'),(_0x2acac3,_0x40da02)=>{this[_0x6782('0x12')](_0x40da02);}),this[_0x6782('0xa')]['on'](_0x6782('0x2'),(_0x3ed177,_0x2e079e)=>{this['_removeRevision'](_0x2e079e);});}get['revisionViews'](){return this[_0x6782('0x1a')][_0x6782('0x1e')](_0x2c235c=>_0x2c235c[_0x6782('0x20')][_0x6782('0x1e')](_0x2e4a45=>_0x2e4a45))[_0x6782('0x0')]();}['selectRevision'](_0x2cc385){for(const _0x4b9ee7 of this[_0x6782('0x20')])_0x2cc385&&_0x2cc385['id']===_0x4b9ee7['id']?_0x4b9ee7[_0x6782('0x1')]():_0x4b9ee7['deselect']();}[_0x6782('0x7')](_0x5bc489){for(const _0x224351 of this[_0x6782('0x20')])_0x5bc489[_0x6782('0x22')](({id:_0x36bc1b})=>_0x36bc1b===_0x224351['id'])?_0x224351[_0x6782('0x27')]():_0x224351[_0x6782('0xf')]();}['_addRevision'](_0x5322b0){const _0x133750=_0x2b6083(_0x5322b0['createdAt'],this[_0x6782('0x4')][_0x6782('0x10')])['startDate'];let _0x364d9d=this[_0x6782('0x1a')][_0x6782('0x5')](0x0);_0x364d9d&&_0x364d9d[_0x6782('0x6')][_0x6782('0x18')]()===_0x133750[_0x6782('0x18')]()||(_0x364d9d=new _0x23a0dd(this['locale'],_0x133750,this[_0x6782('0xc')]),this[_0x6782('0x1a')]['add'](_0x364d9d)),_0x364d9d[_0x6782('0x19')](_0x5322b0);}['_removeRevision'](_0x33fe6e){const _0x4a3d08=_0x2b6083(_0x33fe6e[_0x6782('0x1b')],this[_0x6782('0x4')][_0x6782('0x10')])[_0x6782('0x6')];this[_0x6782('0x3')](_0x4a3d08)[_0x6782('0x15')](_0x33fe6e);}[_0x6782('0x3')](_0x14eac9){return this['timePeriodViews'][_0x6782('0x1f')](_0x4464dd=>_0x4464dd[_0x6782('0x6')]['getTime']()===_0x14eac9[_0x6782('0x18')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4948=['fromJSDate','weekdayLong','local','month','hasSame','setLocale','day','week','monthLong','toRelativeCalendar','startOf','year','toJSDate'];(function(_0x5f040c,_0x4948a9){const _0x4d0a21=function(_0x2f05fd){while(--_0x2f05fd){_0x5f040c['push'](_0x5f040c['shift']());}};_0x4d0a21(++_0x4948a9);}(_0x4948,0x1f3));const _0x4d0a=function(_0x5f040c,_0x4948a9){_0x5f040c=_0x5f040c-0x0;let _0x4d0a21=_0x4948[_0x5f040c];return _0x4d0a21;};import{DateTime as _0x2c2bd6}from'luxon';export function getDateTimePeriodInfo(_0x1012cf,_0x4a594d){const _0x5a84a1=_0x2c2bd6[_0x4d0a('0x8')](_0x1012cf)[_0x4d0a('0x0')](_0x4a594d),_0x13d6de=_0x2c2bd6[_0x4d0a('0xa')](),_0x2aa91c=_0x13d6de['minus']({'days':0x1})['startOf'](_0x4d0a('0x1'));let _0x56f43e,_0x37d6ec;return _0x5a84a1['hasSame'](_0x13d6de,_0x4d0a('0x1'))?(_0x56f43e=_0x5a84a1[_0x4d0a('0x5')](_0x4d0a('0x1'))[_0x4d0a('0x7')](),_0x37d6ec=_0x5a84a1['toRelativeCalendar']()):_0x5a84a1['hasSame'](_0x2aa91c,'day')?(_0x56f43e=_0x2aa91c[_0x4d0a('0x7')](),_0x37d6ec=_0x5a84a1[_0x4d0a('0x4')]()):_0x5a84a1[_0x4d0a('0xc')](_0x13d6de,_0x4d0a('0x2'))?(_0x56f43e=_0x5a84a1['startOf'](_0x4d0a('0x2'))[_0x4d0a('0x7')](),_0x37d6ec=_0x5a84a1[_0x4d0a('0x9')]||''):_0x5a84a1[_0x4d0a('0xc')](_0x13d6de,_0x4d0a('0x6'))?(_0x56f43e=_0x5a84a1[_0x4d0a('0x5')](_0x4d0a('0xb'))[_0x4d0a('0x7')](),_0x37d6ec=_0x5a84a1[_0x4d0a('0x3')]||''):(_0x56f43e=_0x5a84a1['startOf'](_0x4d0a('0x6'))[_0x4d0a('0x7')](),_0x37d6ec=String(_0x5a84a1['year'])),{'startDate':_0x56f43e,'localizedPeriodName':_0x37d6ec};}
23
+ const _0x4756=['month','toJSDate','minus','day','year','monthLong','week','setLocale','weekdayLong','startOf','hasSame','toRelativeCalendar'];(function(_0x1cc37c,_0x475631){const _0x4aa55a=function(_0x4af6cd){while(--_0x4af6cd){_0x1cc37c['push'](_0x1cc37c['shift']());}};_0x4aa55a(++_0x475631);}(_0x4756,0xdc));const _0x4aa5=function(_0x1cc37c,_0x475631){_0x1cc37c=_0x1cc37c-0x0;let _0x4aa55a=_0x4756[_0x1cc37c];return _0x4aa55a;};import{DateTime as _0x486906}from'luxon';export function getDateTimePeriodInfo(_0x5bf1f8,_0x546bfd){const _0x2f552f=_0x486906['fromJSDate'](_0x5bf1f8)[_0x4aa5('0x3')](_0x546bfd),_0xe0abc=_0x486906['local'](),_0x2531cb=_0xe0abc[_0x4aa5('0xa')]({'days':0x1})['startOf'](_0x4aa5('0xb'));let _0x91e379,_0x3ccc9b;return _0x2f552f[_0x4aa5('0x6')](_0xe0abc,_0x4aa5('0xb'))?(_0x91e379=_0x2f552f[_0x4aa5('0x5')](_0x4aa5('0xb'))[_0x4aa5('0x9')](),_0x3ccc9b=_0x2f552f['toRelativeCalendar']()):_0x2f552f['hasSame'](_0x2531cb,_0x4aa5('0xb'))?(_0x91e379=_0x2531cb[_0x4aa5('0x9')](),_0x3ccc9b=_0x2f552f[_0x4aa5('0x7')]()):_0x2f552f[_0x4aa5('0x6')](_0xe0abc,_0x4aa5('0x2'))?(_0x91e379=_0x2f552f[_0x4aa5('0x5')]('week')[_0x4aa5('0x9')](),_0x3ccc9b=_0x2f552f[_0x4aa5('0x4')]||''):_0x2f552f[_0x4aa5('0x6')](_0xe0abc,_0x4aa5('0x0'))?(_0x91e379=_0x2f552f['startOf'](_0x4aa5('0x8'))[_0x4aa5('0x9')](),_0x3ccc9b=_0x2f552f[_0x4aa5('0x1')]||''):(_0x91e379=_0x2f552f[_0x4aa5('0x5')]('year')[_0x4aa5('0x9')](),_0x3ccc9b=String(_0x2f552f['year'])),{'startDate':_0x91e379,'localizedPeriodName':_0x3ccc9b};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x29da=['data','Removed\x20by','Suggested\x20by','name','Added\x20by','set','isSuggestion','ck-revision-change','add','bindTemplate','_model','span','focus','type','setTemplate','changeId','ck-revision-change__label'];(function(_0x5d65f4,_0x29da43){const _0xef7b77=function(_0x225980){while(--_0x225980){_0x5d65f4['push'](_0x5d65f4['shift']());}};_0xef7b77(++_0x29da43);}(_0x29da,0x1ec));const _0xef7b=function(_0x5d65f4,_0x29da43){_0x5d65f4=_0x5d65f4-0x0;let _0xef7b77=_0x29da[_0x5d65f4];return _0xef7b77;};import{View as _0xd36418}from'ckeditor5/src/ui';import{getTranslation as _0xdfc03}from'../../utils/common-translations';export default class Z extends _0xd36418{constructor(_0x439104,_0xd9034d){super(_0x439104),this[_0xef7b('0xb')]=_0xd9034d,this[_0xef7b('0x10')]=_0xd9034d['id'];const _0x4011eb=this[_0xef7b('0xa')],_0x1a4127=_0xdfc03(_0x439104,_0xd9034d[_0xef7b('0x1')][_0xef7b('0x7')]?_0xef7b('0x3'):_0xef7b('0x9')==_0xd9034d[_0xef7b('0xe')]?_0xef7b('0x5'):_0xef7b('0x2'));this[_0xef7b('0x6')](_0xef7b('0xe'),_0xd9034d[_0xef7b('0xe')]),this[_0xef7b('0xf')]({'tag':'div','attributes':{'class':['ck-annotation',_0xef7b('0x8'),_0x4011eb['to'](_0xef7b('0xe'),_0x1e5fbd=>'ck-revision-change__'+_0x1e5fbd)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':_0xef7b('0xc'),'attributes':{'class':[_0xef7b('0x0')]},'children':[{'text':_0x1a4127}]},{'text':'\x20'+_0xd9034d['author'][_0xef7b('0x4')]}]}]});}[_0xef7b('0xd')](){this['element']['focus']();}}
23
+ const _0x55de=['changeId','type','ck-annotation','isSuggestion','_model','Suggested\x20by','Removed\x20by','ck-revision-change__','add','bindTemplate','set','span','element','focus','Added\x20by','div','data','author','setTemplate'];(function(_0x2d8aff,_0x55de79){const _0x3442cb=function(_0x365db7){while(--_0x365db7){_0x2d8aff['push'](_0x2d8aff['shift']());}};_0x3442cb(++_0x55de79);}(_0x55de,0x123));const _0x3442=function(_0x2d8aff,_0x55de79){_0x2d8aff=_0x2d8aff-0x0;let _0x3442cb=_0x55de[_0x2d8aff];return _0x3442cb;};import{View as _0x44b9a1}from'ckeditor5/src/ui';import{getTranslation as _0x3500d3}from'../../utils/common-translations';export default class Z extends _0x44b9a1{constructor(_0x2afbc2,_0x2da645){super(_0x2afbc2),this[_0x3442('0x11')]=_0x2da645,this[_0x3442('0xd')]=_0x2da645['id'];const _0x28d29a=this[_0x3442('0x3')],_0x324fe4=_0x3500d3(_0x2afbc2,_0x2da645[_0x3442('0xa')][_0x3442('0x10')]?_0x3442('0x12'):_0x3442('0x2')==_0x2da645[_0x3442('0xe')]?_0x3442('0x8'):_0x3442('0x0'));this[_0x3442('0x4')]('type',_0x2da645[_0x3442('0xe')]),this[_0x3442('0xc')]({'tag':_0x3442('0x9'),'attributes':{'class':[_0x3442('0xf'),'ck-revision-change',_0x28d29a['to'](_0x3442('0xe'),_0x437d5c=>_0x3442('0x1')+_0x437d5c)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':_0x3442('0x5'),'attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x324fe4}]},{'text':'\x20'+_0x2da645[_0x3442('0xb')]['name']}]}]});}[_0x3442('0x7')](){this[_0x3442('0x6')][_0x3442('0x7')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4bd1=['Show\x20next\x20change','isNavigationMode','currentChangeNumber','span','fire','_statusText','_isStatusLabelVisible','isReady','set','bindTemplate','div','isForwardNavigationEnabled','NUMBER_OF_CHANGES','execute','numberOfChanges','No\x20changes','X_OF_Y_CHANGES','isBackwardNavigationEnabled','backward','ck-hidden','EDIT_X_OF_Y_REVISIONS','ck-revision-history-ui__changes-navigation__label','ck-revision-history-ui','bind','isEnabled','ck-revision-history-ui__changes-navigation__wrapper','ck-revision-history-ui__changes-navigation__navigation'];(function(_0x4e5f71,_0x4bd1bd){const _0x5e9d27=function(_0x1b7c0c){while(--_0x1b7c0c){_0x4e5f71['push'](_0x4e5f71['shift']());}};_0x5e9d27(++_0x4bd1bd);}(_0x4bd1,0x1ad));const _0x5e9d=function(_0x4e5f71,_0x4bd1bd){_0x4e5f71=_0x4e5f71-0x0;let _0x5e9d27=_0x4bd1[_0x4e5f71];return _0x5e9d27;};import{View as _0x4df04f,ButtonView as _0x36615e,ToolbarSeparatorView as _0x3a82c7}from'ckeditor5/src/ui';import{getTranslation as _0x5dedc4}from'../../utils/common-translations';import _0x157860 from'../../../theme/icons/arrow-up.svg';import _0x26c59a from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x4df04f{constructor(_0x2c9b8a){super(_0x2c9b8a);const _0x3dab0e=this[_0x5e9d('0xc')],_0x63054b=new _0x36615e(_0x2c9b8a),_0x48252c=new _0x36615e(_0x2c9b8a);this[_0x5e9d('0xb')](_0x5e9d('0x4'),!0x1),this[_0x5e9d('0xb')]('isReady',!0x1),this[_0x5e9d('0xb')](_0x5e9d('0x5'),0x0),this['set'](_0x5e9d('0x11'),0x0),this[_0x5e9d('0xb')](_0x5e9d('0xe'),!0x1),this[_0x5e9d('0xb')](_0x5e9d('0x14'),!0x1),this[_0x5e9d('0x1a')](_0x5e9d('0x9'))['to'](this,_0x5e9d('0xa'),this,_0x5e9d('0x11'),(_0x45b59f,_0x93bb8)=>_0x45b59f&&_0x93bb8>0x0),this[_0x5e9d('0x1a')](_0x5e9d('0x8'))['to'](this,_0x5e9d('0xa'),this,_0x5e9d('0x5'),this,'numberOfChanges',this,_0x5e9d('0x4'),(_0x21ce4a,_0x521101,_0x7123b5,_0x4aee65)=>{if(!_0x21ce4a)return _0x5dedc4(_0x2c9b8a,'Loading...');if(!_0x7123b5)return _0x5dedc4(_0x2c9b8a,_0x5e9d('0x12'));const _0x28075c=_0x5dedc4(_0x2c9b8a,_0x5e9d('0xf'),_0x7123b5);return _0x4aee65?_0x5dedc4(_0x2c9b8a,_0x5e9d('0x13'),[_0x521101+0x1,_0x7123b5]):_0x28075c;}),_0x63054b['set']({'label':_0x5dedc4(_0x2c9b8a,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x157860}),_0x48252c[_0x5e9d('0xb')]({'label':_0x5dedc4(_0x2c9b8a,_0x5e9d('0x3')),'tooltip':!0x0,'icon':_0x26c59a}),_0x63054b['bind'](_0x5e9d('0x0'))['to'](this,_0x5e9d('0x14')),_0x48252c[_0x5e9d('0x1a')](_0x5e9d('0x0'))['to'](this,_0x5e9d('0xe')),_0x63054b['on']('execute',()=>this[_0x5e9d('0x7')](_0x5e9d('0x10'),_0x5e9d('0x15'))),_0x48252c['on']('execute',()=>this[_0x5e9d('0x7')](_0x5e9d('0x10'),'forward')),this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x5e9d('0x19'),'ck-revision-history-ui__changes-navigation']},'children':[{'tag':_0x5e9d('0x6'),'attributes':{'class':[_0x5e9d('0x1')]},'children':[{'tag':_0x5e9d('0x6'),'attributes':{'class':[_0x5e9d('0x18'),_0x3dab0e['if']('_isStatusLabelVisible',_0x5e9d('0x16'),_0x23044a=>!_0x23044a)]},'children':[{'text':_0x3dab0e['to'](_0x5e9d('0x4'),_0x13fceb=>_0x13fceb?_0x5dedc4(_0x2c9b8a,_0x5e9d('0x17'))+':\x20':_0x5dedc4(_0x2c9b8a,'Total')+':\x20')}]},{'text':_0x3dab0e['to'](_0x5e9d('0x8'))}]},new _0x3a82c7(),{'tag':_0x5e9d('0xd'),'attributes':{'class':[_0x5e9d('0x2')]},'children':[_0x63054b,_0x48252c]}]});}}
23
+ const _0x5965=['div','ck-revision-history-ui__changes-navigation','bindTemplate','Loading...','No\x20changes','Show\x20next\x20change','isReady','backward','ck-revision-history-ui','currentChangeNumber','numberOfChanges','ck-revision-history-ui__changes-navigation__label','ck-revision-history-ui__changes-navigation__navigation','NUMBER_OF_CHANGES','_statusText','Total','isBackwardNavigationEnabled','forward','fire','_isStatusLabelVisible','span','execute','isForwardNavigationEnabled','set','isNavigationMode','isEnabled','ck-hidden','bind'];(function(_0x4d2349,_0x59655a){const _0x347276=function(_0xdf356a){while(--_0xdf356a){_0x4d2349['push'](_0x4d2349['shift']());}};_0x347276(++_0x59655a);}(_0x5965,0x1a8));const _0x3472=function(_0x4d2349,_0x59655a){_0x4d2349=_0x4d2349-0x0;let _0x347276=_0x5965[_0x4d2349];return _0x347276;};import{View as _0xeecc3c,ButtonView as _0x106ef9,ToolbarSeparatorView as _0x112c32}from'ckeditor5/src/ui';import{getTranslation as _0x517f29}from'../../utils/common-translations';import _0x1ebcf4 from'../../../theme/icons/arrow-up.svg';import _0x27917b from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0xeecc3c{constructor(_0x100ad5){super(_0x100ad5);const _0x22776f=this[_0x3472('0x1a')],_0xdedfdf=new _0x106ef9(_0x100ad5),_0x51845d=new _0x106ef9(_0x100ad5);this[_0x3472('0x13')]('isNavigationMode',!0x1),this[_0x3472('0x13')]('isReady',!0x1),this[_0x3472('0x13')](_0x3472('0x5'),0x0),this['set']('numberOfChanges',0x0),this['set'](_0x3472('0x12'),!0x1),this[_0x3472('0x13')](_0x3472('0xc'),!0x1),this[_0x3472('0x17')](_0x3472('0xf'))['to'](this,_0x3472('0x2'),this,'numberOfChanges',(_0x1f3167,_0x228eb3)=>_0x1f3167&&_0x228eb3>0x0),this[_0x3472('0x17')](_0x3472('0xa'))['to'](this,_0x3472('0x2'),this,_0x3472('0x5'),this,_0x3472('0x6'),this,_0x3472('0x14'),(_0x34b5e3,_0x5bf62c,_0x1f326a,_0x23aaee)=>{if(!_0x34b5e3)return _0x517f29(_0x100ad5,_0x3472('0x1b'));if(!_0x1f326a)return _0x517f29(_0x100ad5,_0x3472('0x0'));const _0x4966d5=_0x517f29(_0x100ad5,_0x3472('0x9'),_0x1f326a);return _0x23aaee?_0x517f29(_0x100ad5,'X_OF_Y_CHANGES',[_0x5bf62c+0x1,_0x1f326a]):_0x4966d5;}),_0xdedfdf[_0x3472('0x13')]({'label':_0x517f29(_0x100ad5,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x1ebcf4}),_0x51845d[_0x3472('0x13')]({'label':_0x517f29(_0x100ad5,_0x3472('0x1')),'tooltip':!0x0,'icon':_0x27917b}),_0xdedfdf['bind'](_0x3472('0x15'))['to'](this,'isBackwardNavigationEnabled'),_0x51845d[_0x3472('0x17')](_0x3472('0x15'))['to'](this,_0x3472('0x12')),_0xdedfdf['on']('execute',()=>this[_0x3472('0xe')]('execute',_0x3472('0x3'))),_0x51845d['on'](_0x3472('0x11'),()=>this[_0x3472('0xe')](_0x3472('0x11'),_0x3472('0xd'))),this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x3472('0x4'),_0x3472('0x19')]},'children':[{'tag':_0x3472('0x10'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':[_0x3472('0x7'),_0x22776f['if'](_0x3472('0xf'),_0x3472('0x16'),_0xcb6ccf=>!_0xcb6ccf)]},'children':[{'text':_0x22776f['to'](_0x3472('0x14'),_0x54b917=>_0x54b917?_0x517f29(_0x100ad5,'EDIT_X_OF_Y_REVISIONS')+':\x20':_0x517f29(_0x100ad5,_0x3472('0xb'))+':\x20')}]},{'text':_0x22776f['to'](_0x3472('0xa'))}]},new _0x112c32(),{'tag':_0x3472('0x18'),'attributes':{'class':[_0x3472('0x8')]},'children':[_0xdedfdf,_0x51845d]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x21a1=['view','document','ck-editor__editable__loading-overlay','addClass','roots','removeClass','RevisionViewerLoadingOverlay','change','show','hide','editing','editor'];(function(_0x380ccf,_0x21a142){const _0x223630=function(_0x128855){while(--_0x128855){_0x380ccf['push'](_0x380ccf['shift']());}};_0x223630(++_0x21a142);}(_0x21a1,0x14f));const _0x2236=function(_0x380ccf,_0x21a142){_0x380ccf=_0x380ccf-0x0;let _0x223630=_0x21a1[_0x380ccf];return _0x223630;};import{Plugin as _0x2432ea}from'ckeditor5/src/core';const oe=_0x2236('0x3');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x2432ea{static get['pluginName'](){return _0x2236('0x7');}[_0x2236('0x9')](){const _0x4121cd=this[_0x2236('0x0')][_0x2236('0xb')][_0x2236('0x1')];_0x4121cd[_0x2236('0x8')](_0x18961a=>{for(const _0x3d0c69 of _0x4121cd[_0x2236('0x2')]['roots'])_0x18961a[_0x2236('0x4')](oe,_0x3d0c69);});}[_0x2236('0xa')](){const _0x5ae603=this[_0x2236('0x0')][_0x2236('0xb')][_0x2236('0x1')];_0x5ae603[_0x2236('0x8')](_0x8cc353=>{for(const _0xd58057 of _0x5ae603[_0x2236('0x2')][_0x2236('0x5')])_0x8cc353[_0x2236('0x6')](oe,_0xd58057);});}}
23
+ const _0x2fd1=['RevisionViewerLoadingOverlay','editor','removeClass','roots','ck-editor__editable__loading-overlay','pluginName','show','document','hide','view','editing','change'];(function(_0x319776,_0x2fd1f2){const _0x4818ba=function(_0x47ed27){while(--_0x47ed27){_0x319776['push'](_0x319776['shift']());}};_0x4818ba(++_0x2fd1f2);}(_0x2fd1,0x134));const _0x4818=function(_0x319776,_0x2fd1f2){_0x319776=_0x319776-0x0;let _0x4818ba=_0x2fd1[_0x319776];return _0x4818ba;};import{Plugin as _0x95b9b7}from'ckeditor5/src/core';const oe=_0x4818('0x8');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x95b9b7{static get[_0x4818('0x9')](){return _0x4818('0x4');}[_0x4818('0xa')](){const _0x4b7923=this[_0x4818('0x5')][_0x4818('0x2')][_0x4818('0x1')];_0x4b7923[_0x4818('0x3')](_0x642708=>{for(const _0x5787f2 of _0x4b7923[_0x4818('0xb')]['roots'])_0x642708['addClass'](oe,_0x5787f2);});}[_0x4818('0x0')](){const _0x1ea41f=this['editor'][_0x4818('0x2')]['view'];_0x1ea41f[_0x4818('0x3')](_0x3f57de=>{for(const _0x2728bd of _0x1ea41f[_0x4818('0xb')][_0x4818('0x7')])_0x3f57de[_0x4818('0x6')](oe,_0x2728bd);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x6eb6=['requires','isEnabled','RevisionViewerUI','hide','isForwardNavigationEnabled','show','currentChangeNumber','exitToEditing','bind','commands','execute','componentFactory','isReady','revisionHistory','ck-revision-history-ui__back-to-editing','Back\x20to\x20editing','add','plugins','listenTo','restoreRevision','isBackwardNavigationEnabled','closeRevisionViewerCallback','numberOfChanges','editor','init','showNextChange','set','change:isReady','get'];(function(_0x523690,_0x6eb610){const _0x740955=function(_0x2af553){while(--_0x2af553){_0x523690['push'](_0x523690['shift']());}};_0x740955(++_0x6eb610);}(_0x6eb6,0x1bd));const _0x7409=function(_0x523690,_0x6eb610){_0x523690=_0x523690-0x0;let _0x740955=_0x6eb6[_0x523690];return _0x740955;};import{Plugin as _0x199062}from'ckeditor5/src/core';import{ButtonView as _0x22e526}from'ckeditor5/src/ui';import _0x234c1d from'./changesnavigationview';import _0x43b210 from'./../../revisionviewer';import _0x393629 from'./revisionviewerloadingoverlay';import{getTranslation as _0x16da4b}from'../../utils/common-translations';import _0x249d35 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x199062{static get['pluginName'](){return _0x7409('0x15');}static get[_0x7409('0x13')](){return[_0x43b210,_0x393629];}[_0x7409('0xe')](){const _0xbb19a3=this[_0x7409('0xd')],_0x2fec70=_0xbb19a3[_0x7409('0x7')][_0x7409('0x12')](_0x43b210),_0x3f72be=_0xbb19a3[_0x7409('0x7')][_0x7409('0x12')](_0x393629);_0xbb19a3['ui']['componentFactory'][_0x7409('0x6')](_0x7409('0x1a'),_0x33b64d=>{const _0x5aa12e=new _0x22e526(_0x33b64d);return _0x5aa12e['set']({'label':_0x16da4b(_0x33b64d,_0x7409('0x5')),'icon':_0x249d35,'withText':!0x0,'tooltip':!0x0,'class':_0x7409('0x4')}),this[_0x7409('0x8')](_0x5aa12e,_0x7409('0x0'),()=>{_0xbb19a3['config']['get'](_0x7409('0x3'))[_0x7409('0xb')]();}),_0x5aa12e;}),_0xbb19a3['ui']['componentFactory'][_0x7409('0x6')](_0x7409('0x9'),_0x11c5ce=>{const _0x4ec53b=new _0x22e526(_0x11c5ce);return _0x4ec53b[_0x7409('0x10')]({'label':_0x16da4b(_0x11c5ce,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4ec53b[_0x7409('0x1b')](_0x7409('0x14'))['to'](_0xbb19a3[_0x7409('0x1c')][_0x7409('0x12')](_0x7409('0x9'))),this[_0x7409('0x8')](_0x4ec53b,_0x7409('0x0'),()=>_0xbb19a3['execute'](_0x7409('0x9'))),_0x4ec53b;}),_0xbb19a3['ui'][_0x7409('0x1')][_0x7409('0x6')]('changesNavigation',_0x4db7b6=>{const _0x5dc746=new _0x234c1d(_0x4db7b6),_0x3e5306=_0xbb19a3[_0x7409('0x1c')]['get']('showPreviousChange'),_0x326bfe=_0xbb19a3[_0x7409('0x1c')][_0x7409('0x12')]('showNextChange');return _0x5dc746[_0x7409('0x1b')](_0x7409('0xa'))['to'](_0x3e5306,_0x7409('0x14')),_0x5dc746[_0x7409('0x1b')](_0x7409('0x17'))['to'](_0x326bfe,'isEnabled'),_0x5dc746[_0x7409('0x1b')](_0x7409('0x2'),_0x7409('0x19'),_0x7409('0xc'),'isNavigationMode')['to'](_0x2fec70),this[_0x7409('0x8')](_0x5dc746,'execute',(_0x122962,_0x2f7b12)=>{_0xbb19a3[_0x7409('0x0')]('forward'===_0x2f7b12?_0x7409('0xf'):'showPreviousChange');}),_0x5dc746;}),_0x3f72be[_0x7409('0x18')](),_0x2fec70['on'](_0x7409('0x11'),(_0x10400c,_0x319719,_0x5e9bd4)=>{_0x5e9bd4?_0x3f72be[_0x7409('0x16')]():_0x3f72be['show']();});}}
23
+ const _0x54db=['isNavigationMode','requires','editor','get','Back\x20to\x20editing','ck-revision-history-ui__back-to-editing','config','show','isEnabled','listenTo','execute','showPreviousChange','bind','plugins','hide','numberOfChanges','add','componentFactory','restoreRevision','isBackwardNavigationEnabled','isReady','closeRevisionViewerCallback','showNextChange','set','exitToEditing','commands','currentChangeNumber','Restore\x20this\x20revision'];(function(_0x4c6292,_0x54dbf5){const _0x2d468f=function(_0xfe849a){while(--_0xfe849a){_0x4c6292['push'](_0x4c6292['shift']());}};_0x2d468f(++_0x54dbf5);}(_0x54db,0x1a5));const _0x2d46=function(_0x4c6292,_0x54dbf5){_0x4c6292=_0x4c6292-0x0;let _0x2d468f=_0x54db[_0x4c6292];return _0x2d468f;};import{Plugin as _0x418486}from'ckeditor5/src/core';import{ButtonView as _0xff59c4}from'ckeditor5/src/ui';import _0x4bf641 from'./changesnavigationview';import _0x23f592 from'./../../revisionviewer';import _0x1b8bf6 from'./revisionviewerloadingoverlay';import{getTranslation as _0x425f27}from'../../utils/common-translations';import _0x218da6 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x418486{static get['pluginName'](){return'RevisionViewerUI';}static get[_0x2d46('0x0')](){return[_0x23f592,_0x1b8bf6];}['init'](){const _0x47e3da=this[_0x2d46('0x1')],_0x417877=_0x47e3da[_0x2d46('0xc')]['get'](_0x23f592),_0x3346a8=_0x47e3da[_0x2d46('0xc')][_0x2d46('0x2')](_0x1b8bf6);_0x47e3da['ui'][_0x2d46('0x10')][_0x2d46('0xf')](_0x2d46('0x17'),_0x2f6c04=>{const _0x326ce1=new _0xff59c4(_0x2f6c04);return _0x326ce1[_0x2d46('0x16')]({'label':_0x425f27(_0x2f6c04,_0x2d46('0x3')),'icon':_0x218da6,'withText':!0x0,'tooltip':!0x0,'class':_0x2d46('0x4')}),this[_0x2d46('0x8')](_0x326ce1,_0x2d46('0x9'),()=>{_0x47e3da[_0x2d46('0x5')][_0x2d46('0x2')]('revisionHistory')[_0x2d46('0x14')]();}),_0x326ce1;}),_0x47e3da['ui']['componentFactory'][_0x2d46('0xf')]('restoreRevision',_0x21be23=>{const _0x4d9195=new _0xff59c4(_0x21be23);return _0x4d9195['set']({'label':_0x425f27(_0x21be23,_0x2d46('0x1a')),'withText':!0x0,'tooltip':!0x0}),_0x4d9195[_0x2d46('0xb')](_0x2d46('0x7'))['to'](_0x47e3da[_0x2d46('0x18')][_0x2d46('0x2')](_0x2d46('0x11'))),this[_0x2d46('0x8')](_0x4d9195,_0x2d46('0x9'),()=>_0x47e3da[_0x2d46('0x9')]('restoreRevision')),_0x4d9195;}),_0x47e3da['ui'][_0x2d46('0x10')][_0x2d46('0xf')]('changesNavigation',_0x45a737=>{const _0x21225c=new _0x4bf641(_0x45a737),_0x513604=_0x47e3da['commands'][_0x2d46('0x2')](_0x2d46('0xa')),_0x1be1df=_0x47e3da[_0x2d46('0x18')][_0x2d46('0x2')](_0x2d46('0x15'));return _0x21225c[_0x2d46('0xb')](_0x2d46('0x12'))['to'](_0x513604,_0x2d46('0x7')),_0x21225c[_0x2d46('0xb')]('isForwardNavigationEnabled')['to'](_0x1be1df,_0x2d46('0x7')),_0x21225c[_0x2d46('0xb')](_0x2d46('0x13'),_0x2d46('0x19'),_0x2d46('0xe'),_0x2d46('0x1b'))['to'](_0x417877),this[_0x2d46('0x8')](_0x21225c,_0x2d46('0x9'),(_0x52380f,_0x46bc51)=>{_0x47e3da['execute']('forward'===_0x46bc51?_0x2d46('0x15'):_0x2d46('0xa'));}),_0x21225c;}),_0x3346a8[_0x2d46('0x6')](),_0x417877['on']('change:isReady',(_0x7d9a65,_0x38ce8a,_0x56ac8c)=>{_0x56ac8c?_0x3346a8[_0x2d46('0xd')]():_0x3346a8['show']();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x262d6a,_0x9e3eda,_0x3cee2f){const t=_0x262d6a['t'];switch(_0x9e3eda){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'},_0x3cee2f);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3cee2f);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 _0x9e3eda;}}
23
+ export function getTranslation(_0x430c89,_0xb70a0c,_0x3c7a79){const t=_0x430c89['t'];switch(_0xb70a0c){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'},_0x3c7a79);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3c7a79);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 _0xb70a0c;}}