@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231010.0 → 0.0.0-nightly-20231011.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 _0x4cfb=['cancel','history','add','Revision\x20history','isReadOnly','showRevisionViewerCallback','RevisionTracker','revisionName','set','editor','isEnabled','init','revisionHistory','panelView','addMany','focus','plugins','children','RevisionHistoryUI','remove','isReady','Save\x20current\x20revision','length','submit','execute','get','saveButtonView','componentFactory','bind','saveRevision','change:isOpen','buttonView','config','reset'];(function(_0x426a45,_0x4cfbf5){const _0x51bace=function(_0x31417){while(--_0x31417){_0x426a45['push'](_0x426a45['shift']());}};_0x51bace(++_0x4cfbf5);}(_0x4cfb,0x17b));const _0x51ba=function(_0x426a45,_0x4cfbf5){_0x426a45=_0x426a45-0x0;let _0x51bace=_0x4cfb[_0x426a45];return _0x51bace;};import{Plugin as _0x49e984,icons as _0x28bb98}from'ckeditor5/src/core';import{ListView as _0xb1935c,ListItemView as _0x9bfbb7,ButtonView as _0x399cb8,createDropdown as _0xb46018}from'ckeditor5/src/ui';import _0x320e4a from'../../revisiontracker';import _0x5c93cd from'./revisionhistorysaverevisionformview';import{getTranslation as _0x65dd86}from'../../utils/common-translations';export default class u extends _0x49e984{static get['pluginName'](){return _0x51ba('0xd');}static get['requires'](){return[_0x320e4a];}[_0x51ba('0x6')](){const _0x126fe8=this[_0x51ba('0x4')],_0x2af799=_0x126fe8[_0x51ba('0xb')][_0x51ba('0x14')](_0x51ba('0x1'));_0x126fe8['ui'][_0x51ba('0x16')][_0x51ba('0x1f')]('revisionHistory',_0x2c9e99=>{const _0x823a47=_0xb46018(_0x2c9e99),_0x4487dd=_0x823a47[_0x51ba('0x8')][_0x51ba('0xc')],_0x59056e=new _0xb1935c(_0x2c9e99),_0x2b84b9=new _0x9bfbb7(_0x2c9e99),_0x34d6ce=new _0x399cb8(_0x2c9e99),_0x4d4054=new _0x9bfbb7(_0x2c9e99),_0x50ab1b=new _0x399cb8(_0x2c9e99),_0x39cbf6=new _0x5c93cd(_0x2c9e99);function _0x1a3f4f(){_0x4487dd['length']&&_0x4487dd[_0x51ba('0xe')](0x0),_0x4487dd[_0x51ba('0x1f')](_0x59056e);}function _0x852152(){_0x823a47['isOpen']=!0x1,_0x126fe8['editing']['view'][_0x51ba('0xa')]();}return _0x823a47[_0x51ba('0x17')](_0x51ba('0x5'))['to'](_0x2af799,_0x51ba('0xf'),_0x2af799,_0x51ba('0x5'),_0x126fe8,_0x51ba('0x21'),(_0x4cc760,_0x5e5d99,_0x4e211a)=>_0x4cc760&&_0x5e5d99&&!_0x4e211a),_0x823a47[_0x51ba('0x1a')]['set']({'icon':_0x28bb98[_0x51ba('0x1e')],'label':_0x65dd86(_0x2c9e99,_0x51ba('0x20')),'tooltip':!0x0}),_0x34d6ce[_0x51ba('0x3')]({'label':_0x65dd86(_0x2c9e99,_0x51ba('0x10')),'withText':!0x0}),_0x34d6ce[_0x51ba('0x17')](_0x51ba('0x5'))['to'](_0x2af799,_0x51ba('0xf'),_0x2af799,_0x51ba('0x5'),_0x126fe8,_0x51ba('0x21'),(_0x51c90f,_0x411939,_0x5b0c2d)=>_0x51c90f&&_0x411939&&!_0x5b0c2d),_0x34d6ce['on'](_0x51ba('0x13'),()=>function(){_0x4487dd[_0x51ba('0x11')]&&_0x4487dd[_0x51ba('0xe')](0x0),(_0x39cbf6[_0x51ba('0x1c')](),_0x4487dd[_0x51ba('0x1f')](_0x39cbf6),_0x39cbf6['focus']());}()),_0x50ab1b[_0x51ba('0x3')]({'label':_0x65dd86(_0x2c9e99,'Open\x20revision\x20history'),'withText':!0x0}),_0x50ab1b[_0x51ba('0x17')](_0x51ba('0x5'))['to'](_0x2af799,'isReady',_0x126fe8,'isReadOnly',(_0x4ea4e7,_0x1bb928)=>_0x4ea4e7&&!_0x1bb928),_0x50ab1b['on'](_0x51ba('0x13'),()=>{_0x126fe8[_0x51ba('0x1b')][_0x51ba('0x14')](_0x51ba('0x7'))[_0x51ba('0x0')](),_0x852152();}),_0x2b84b9[_0x51ba('0xc')][_0x51ba('0x1f')](_0x34d6ce),_0x4d4054[_0x51ba('0xc')]['add'](_0x50ab1b),_0x59056e['items'][_0x51ba('0x9')]([_0x2b84b9,_0x4d4054]),_0x823a47['on'](_0x51ba('0x19'),()=>_0x1a3f4f()),_0x39cbf6[_0x51ba('0x15')][_0x51ba('0x17')](_0x51ba('0x5'))['to'](_0x2af799,_0x51ba('0xf'),_0x2af799,'isEnabled',_0x126fe8,_0x51ba('0x21'),(_0x47fbb9,_0x546334,_0x48fc22)=>_0x47fbb9&&_0x546334&&!_0x48fc22),_0x39cbf6['on'](_0x51ba('0x12'),()=>(_0x126fe8[_0x51ba('0xb')][_0x51ba('0x14')](_0x320e4a)[_0x51ba('0x18')]({'name':_0x39cbf6[_0x51ba('0x2')]}),void _0x852152())),_0x39cbf6['on'](_0x51ba('0x1d'),()=>_0x1a3f4f()),_0x39cbf6['render'](),_0x1a3f4f(),_0x823a47;});}}
@@ -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 _0x7ec2=['config','revisionSelected','render','data','bind','diff','Restore\x20this\x20revision','newRevisionId','isReady','restoreRevision','RevisionsSidebar','length','getRevisionsInDiff','_handleDiffChange','highlightRevisions','add','init','_createRevisionActions','change:diff','ready','plugins','revisionHistory.revisionActions','isEnabled','appendChild','destroy','isVisible','action','defaultRevisionActions','element','_handleEditorDataReady','compare','_revisionViewer','_handleRevisionSetName','revisionViews','listenTo','_revisions','name','_sidebarView','repository','setName','compareAgainstSelected','getLaterVisibleRevision','getEarlierVisibleRevision','availableRevisionActions','select','getRevision','Compare\x20against\x20selected','get','restoreRevisionCallback','assign','revisionHistory.viewerSidebarContainer','fieldView','_revisionsRepository','_handleRevisionSelected','getIndex','pluginName','focus','editor','selectRevision','revisionSetName'];(function(_0x160e05,_0x181592){const _0x474979=function(_0x12fab3){while(--_0x12fab3){_0x160e05['push'](_0x160e05['shift']());}};_0x474979(++_0x181592);}(_0x7ec2,0xc0));const _0x1815=function(_0x160e05,_0x181592){_0x160e05=_0x160e05-0x0;let _0x474979=_0x7ec2[_0x160e05];return _0x474979;};import{Plugin as _0xb24d11}from'ckeditor5/src/core';import _0x9cd1fc from'./revisionssidebarview';import _0x419dd7 from'../../revisionviewer';export default class w extends _0xb24d11{static get[_0x1815('0x2b')](){return _0x1815('0x3a');}static get['requires'](){return[_0x419dd7];}constructor(_0x46c704){super(_0x46c704),this[_0x1815('0x13')]=_0x46c704[_0x1815('0x8')]['get'](_0x419dd7),this[_0x1815('0x28')]=this[_0x1815('0x13')][_0x1815('0x1a')],this[_0x1815('0x19')]=null;}[_0x1815('0x4')](){const _0x26e503=this[_0x1815('0x28')][_0x1815('0x17')],_0x307592=this[_0x1815('0x5')](),_0x7d7e25=this[_0x1815('0x2d')][_0x1815('0x30')][_0x1815('0x23')](_0x1815('0x26'));this['_sidebarView']=new _0x9cd1fc(this[_0x1815('0x2d')]['locale'],_0x26e503,_0x307592),this[_0x1815('0x19')]['on'](_0x1815('0x31'),this[_0x1815('0x29')][_0x1815('0x34')](this)),this[_0x1815('0x19')]['on'](_0x1815('0x2f'),this[_0x1815('0x14')]['bind'](this)),this['_sidebarView'][_0x1815('0x34')](_0x1815('0xa'))['to'](this[_0x1815('0x13')]),this['_sidebarView']['timePeriodViews']['on']('add',(_0x2e042f,_0x441762)=>{_0x441762[_0x1815('0x15')]['on'](_0x1815('0x3'),(_0x4c37d3,_0x20e817)=>{_0x20e817[_0x1815('0x34')](_0x1815('0xa'),_0x1815('0x38'))['to'](this[_0x1815('0x13')]);});}),this[_0x1815('0x19')][_0x1815('0x32')](),this[_0x1815('0x16')](this['editor'][_0x1815('0x33')],_0x1815('0x7'),this[_0x1815('0x11')]['bind'](this)),this['listenTo'](this[_0x1815('0x13')],_0x1815('0x6'),this[_0x1815('0x1')][_0x1815('0x34')](this)),_0x7d7e25[_0x1815('0xb')](this[_0x1815('0x19')][_0x1815('0x10')]);}[_0x1815('0xc')](){this[_0x1815('0x19')]['element']['remove'](),this[_0x1815('0x19')]['destroy']();}[_0x1815('0x11')](){const _0x3b0d97=this['_revisionsRepository'][_0x1815('0x21')](0x0);if(_0x3b0d97){const _0x1436aa=this[_0x1815('0x28')][_0x1815('0x1e')](_0x3b0d97['id']);this['_revisionViewer'][_0x1815('0x12')](_0x3b0d97,_0x1436aa);}}[_0x1815('0x29')](_0x2fa74e,_0x6831af){const _0x43cbb3=this[_0x1815('0x28')][_0x1815('0x21')](_0x6831af['id']),_0x5e9dd1=this[_0x1815('0x28')]['getEarlierVisibleRevision'](_0x43cbb3['id']);this[_0x1815('0x13')][_0x1815('0x12')](_0x43cbb3,_0x5e9dd1);}[_0x1815('0x14')](_0x40b5e5,_0x209571){this['_revisionsRepository']['getRevision'](_0x209571['id'])[_0x1815('0x1b')](_0x209571[_0x1815('0x18')]);}[_0x1815('0x1')](_0x410110,_0x3b971d,_0x443e53){const _0x2d043a=this[_0x1815('0x28')][_0x1815('0x0')](_0x443e53);_0x2d043a[_0x1815('0x3b')]>0x2?(this[_0x1815('0x19')][_0x1815('0x2')](_0x2d043a),this['_sidebarView'][_0x1815('0x2e')](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView'][_0x1815('0x2e')](_0x2d043a[0x0]));}['_createRevisionActions'](){const _0x124b79=this[_0x1815('0x2d')],_0x112e1b=w['availableRevisionActions'],_0x5709bf=_0x124b79[_0x1815('0x30')][_0x1815('0x23')](_0x1815('0x9'))||w['defaultRevisionActions'];if(_0x5709bf[_0x1815('0x3b')])return _0x5709bf['map'](_0x49f57b=>{const _0x3d57a8='string'==typeof _0x49f57b?Object[_0x1815('0x25')]({},_0x112e1b[_0x49f57b]):_0x49f57b;return _0x3d57a8[_0x1815('0xe')]=_0x3d57a8[_0x1815('0xe')][_0x1815('0x34')](this,_0x124b79),_0x3d57a8['isVisible']&&(_0x3d57a8['isVisible']=_0x3d57a8[_0x1815('0xd')][_0x1815('0x34')](this,_0x124b79)),_0x3d57a8;});}}w[_0x1815('0x1f')]={'compareAgainstSelected':{'name':_0x1815('0x22'),'action':({plugins:_0x5a1697},_0x461b8e)=>{const _0x182ccc=_0x5a1697[_0x1815('0x23')](_0x419dd7),_0x4753f2=_0x182ccc[_0x1815('0x1a')];let _0x2ef356=_0x182ccc[_0x1815('0x35')][_0x1815('0x37')],_0x232579=_0x461b8e['id'];_0x4753f2['getIndex'](_0x2ef356)>_0x4753f2[_0x1815('0x2a')](_0x232579)&&([_0x2ef356,_0x232579]=[_0x232579,_0x2ef356]),_0x182ccc[_0x1815('0x12')](_0x2ef356,_0x232579);},'isVisible':({plugins:_0x50ecea},_0x31a1ae)=>{const _0x57b211=_0x50ecea[_0x1815('0x23')](_0x419dd7);return!(_0x57b211[_0x1815('0x1a')][_0x1815('0x0')](_0x57b211[_0x1815('0x35')])[_0x1815('0x3b')]>0x2)&&!_0x31a1ae['isSelected'];}},'restoreRevision':{'name':_0x1815('0x36'),'action':(_0x1af8c7,{id:_0x18adf3})=>{_0x1af8c7[_0x1815('0x30')][_0x1815('0x23')]('revisionHistory')[_0x1815('0x24')](_0x18adf3);},'isVisible':({plugins:_0x3d1333},_0x1177ef)=>!!_0x3d1333[_0x1815('0x23')](_0x419dd7)[_0x1815('0x1a')][_0x1815('0x1d')](_0x1177ef['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x516498},{id:_0x596c4c,revisionNameView:_0x143e0e})=>{const _0x1f709f=_0x516498[_0x1815('0x23')](_0x419dd7),_0x257666=_0x1f709f[_0x1815('0x1a')][_0x1815('0x1e')](_0x596c4c);_0x1f709f['compare'](_0x596c4c,_0x257666),_0x143e0e[_0x1815('0x2c')](),_0x143e0e[_0x1815('0x27')][_0x1815('0x20')]();}}},w[_0x1815('0xf')]=[_0x1815('0x1c'),_0x1815('0x39'),'nameRevision'];
@@ -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 _0x2e38=['ck-revision-history-sidebar__header__label','content','Revision\x20history','div','span','ck-revision-history-sidebar__header'];(function(_0x57f314,_0x2e387f){const _0x5b16c1=function(_0x3d1af0){while(--_0x3d1af0){_0x57f314['push'](_0x57f314['shift']());}};_0x5b16c1(++_0x2e387f);}(_0x2e38,0x1d5));const _0x5b16=function(_0x57f314,_0x2e387f){_0x57f314=_0x57f314-0x0;let _0x5b16c1=_0x2e38[_0x57f314];return _0x5b16c1;};import{View as _0x1a895a,IconView as _0x323324}from'ckeditor5/src/ui';import{getTranslation as _0x36a689}from'../../utils/common-translations';import{icons as _0x86b24c}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rr extends _0x1a895a{constructor(_0x1b65b5){super(_0x1b65b5);const _0x1f6176=new _0x323324();_0x1f6176[_0x5b16('0x0')]=_0x86b24c['history'],this['setTemplate']({'tag':_0x5b16('0x2'),'attributes':{'class':['ck','ck-reset_all',_0x5b16('0x4')]},'children':[_0x1f6176,{'tag':_0x5b16('0x3'),'attributes':{'class':['ck',_0x5b16('0x5')]},'children':[_0x36a689(_0x1b65b5,_0x5b16('0x1'))]}]});}}
@@ -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 _0x4db7=['add','setName','startDate','uiLanguage','_revisionActions','span','find','div','localizedPeriodName','ck-revision-history-sidebar__time-period__revisions','createCollection','locale','delegate','revisionViews'];(function(_0x3193a9,_0x4db7c0){const _0x1fdcd0=function(_0x1c59af){while(--_0x1c59af){_0x3193a9['push'](_0x3193a9['shift']());}};_0x1fdcd0(++_0x4db7c0);}(_0x4db7,0x134));const _0x1fdc=function(_0x3193a9,_0x4db7c0){_0x3193a9=_0x3193a9-0x0;let _0x1fdcd0=_0x4db7[_0x3193a9];return _0x1fdcd0;};import{View as _0x4d8232}from'ckeditor5/src/ui';import _0x4e4570 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x396522}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x4d8232{constructor(_0x2e5bf4,_0x2a3df5,_0x45d420){super(_0x2e5bf4);const _0x1befc4=_0x396522(_0x2a3df5,this[_0x1fdc('0xb')][_0x1fdc('0x3')])[_0x1fdc('0x8')];this[_0x1fdc('0x2')]=_0x2a3df5,this[_0x1fdc('0xd')]=this[_0x1fdc('0xa')](),this[_0x1fdc('0x4')]=_0x45d420,this[_0x1fdc('0xd')][_0x1fdc('0xc')]('select')['to'](this),this[_0x1fdc('0xd')]['delegate'](_0x1fdc('0x1'))['to'](this),this['setTemplate']({'tag':_0x1fdc('0x7'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':_0x1fdc('0x5'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x1befc4}]},{'tag':'div','attributes':{'class':['ck',_0x1fdc('0x9')]},'children':this[_0x1fdc('0xd')]}]});}['addRevision'](_0x5caacb){const _0x32a780=new _0x4e4570(this[_0x1fdc('0xb')],_0x5caacb,this['_revisionActions']);this[_0x1fdc('0xd')][_0x1fdc('0x0')](_0x32a780);}['removeRevision'](_0x483998){const _0x1aa77b=this[_0x1fdc('0xd')][_0x1fdc('0x6')](_0x210d0d=>_0x210d0d['id']===_0x483998['id']);this[_0x1fdc('0xd')]['remove'](_0x1aa77b);}}
@@ -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 _0x2c68=['revisionViews','deselect','uiLanguage','_revisionActions','set','addRevision','isEnabled','_removeRevision','ck-disabled','div','fire','createdAt','add','highlightRevisions','ck-rounded-corners','delegate','getTime','setName','_revisions','createCollection','revisionSetName','map','highlight','render','_getTimePeriodViewByStartDate','unhighlight','startDate','find','ck-reset','flat','locale','bindTemplate','select','remove','ck-revision-history-sidebar__timeline','timePeriodViews'];(function(_0x40cd3d,_0x2c685d){const _0x1b3e8a=function(_0x47388e){while(--_0x47388e){_0x40cd3d['push'](_0x40cd3d['shift']());}};_0x1b3e8a(++_0x2c685d);}(_0x2c68,0x174));const _0x1b3e=function(_0x40cd3d,_0x2c685d){_0x40cd3d=_0x40cd3d-0x0;let _0x1b3e8a=_0x2c68[_0x40cd3d];return _0x1b3e8a;};import{View as _0x5cdf3d}from'ckeditor5/src/ui';import _0x4979dd from'./revisionssidebartimeperiodview';import _0x47ab27 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0xb15b94}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x5cdf3d{constructor(_0x924d58,_0xcf8b8f,_0xb1e56e){super(_0x924d58);const _0x3f826d=this[_0x1b3e('0x13')];this[_0x1b3e('0x17')]=this[_0x1b3e('0x7')](),this['timePeriodViews'][_0x1b3e('0x3')](_0x1b3e('0x14'))['to'](this),this[_0x1b3e('0x17')]['delegate'](_0x1b3e('0x5'))['to'](this),this[_0x1b3e('0x6')]=_0xcf8b8f,this[_0x1b3e('0x1b')]=_0xb1e56e,this['on']('select',(_0x18c16d,_0x32a011)=>{this[_0x1b3e('0x22')]('revisionSelected',_0x32a011);}),this['on'](_0x1b3e('0x5'),(_0xfe758,_0x3eb92e)=>{this[_0x1b3e('0x22')](_0x1b3e('0x8'),_0x3eb92e);}),this[_0x1b3e('0x1c')]('isEnabled',!0x1),this['setTemplate']({'tag':_0x1b3e('0x21'),'attributes':{'class':['ck',_0x1b3e('0x10'),_0x1b3e('0x2'),'ck-revision-history-sidebar']},'children':[new _0x47ab27(_0x924d58),{'tag':_0x1b3e('0x21'),'attributes':{'class':['ck',_0x1b3e('0x16'),_0x3f826d['if'](_0x1b3e('0x1e'),_0x1b3e('0x20'),_0x3412a2=>!_0x3412a2)]},'children':this[_0x1b3e('0x17')]}]});}[_0x1b3e('0xb')](){super[_0x1b3e('0xb')]();for(const _0x4a2803 of this[_0x1b3e('0x6')])this['_addRevision'](_0x4a2803);this[_0x1b3e('0x6')]['on'](_0x1b3e('0x0'),(_0x3d39df,_0x15e595)=>{this['_addRevision'](_0x15e595);}),this[_0x1b3e('0x6')]['on'](_0x1b3e('0x15'),(_0x4ba0ba,_0x27dd32)=>{this[_0x1b3e('0x1f')](_0x27dd32);});}get['revisionViews'](){return this['timePeriodViews'][_0x1b3e('0x9')](_0x5d484c=>_0x5d484c[_0x1b3e('0x18')]['map'](_0x10056b=>_0x10056b))[_0x1b3e('0x11')]();}['selectRevision'](_0x216518){for(const _0x17dfe6 of this[_0x1b3e('0x18')])_0x216518&&_0x216518['id']===_0x17dfe6['id']?_0x17dfe6[_0x1b3e('0x14')]():_0x17dfe6[_0x1b3e('0x19')]();}[_0x1b3e('0x1')](_0x554f8a){for(const _0x36d88a of this[_0x1b3e('0x18')])_0x554f8a['some'](({id:_0x47db52})=>_0x47db52===_0x36d88a['id'])?_0x36d88a[_0x1b3e('0xa')]():_0x36d88a[_0x1b3e('0xd')]();}['_addRevision'](_0x193f9b){const _0x5464d6=_0xb15b94(_0x193f9b[_0x1b3e('0x23')],this[_0x1b3e('0x12')]['uiLanguage'])[_0x1b3e('0xe')];let _0x425d06=this['timePeriodViews']['get'](0x0);_0x425d06&&_0x425d06[_0x1b3e('0xe')][_0x1b3e('0x4')]()===_0x5464d6[_0x1b3e('0x4')]()||(_0x425d06=new _0x4979dd(this[_0x1b3e('0x12')],_0x5464d6,this[_0x1b3e('0x1b')]),this[_0x1b3e('0x17')][_0x1b3e('0x0')](_0x425d06)),_0x425d06[_0x1b3e('0x1d')](_0x193f9b);}[_0x1b3e('0x1f')](_0x4b6ed5){const _0x4693e1=_0xb15b94(_0x4b6ed5['createdAt'],this[_0x1b3e('0x12')][_0x1b3e('0x1a')])[_0x1b3e('0xe')];this[_0x1b3e('0xc')](_0x4693e1)['removeRevision'](_0x4b6ed5);}[_0x1b3e('0xc')](_0x526556){return this[_0x1b3e('0x17')][_0x1b3e('0xf')](_0x56f248=>_0x56f248[_0x1b3e('0xe')]['getTime']()===_0x526556[_0x1b3e('0x4')]());}}
@@ -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 _0x985e=['startOf','toJSDate','month','week','toRelativeCalendar','year','hasSame','fromJSDate','day','setLocale','local','minus'];(function(_0x1a1ed2,_0x985e3){const _0xfc7d03=function(_0x154aa5){while(--_0x154aa5){_0x1a1ed2['push'](_0x1a1ed2['shift']());}};_0xfc7d03(++_0x985e3);}(_0x985e,0xd1));const _0xfc7d=function(_0x1a1ed2,_0x985e3){_0x1a1ed2=_0x1a1ed2-0x0;let _0xfc7d03=_0x985e[_0x1a1ed2];return _0xfc7d03;};import{DateTime as _0x527a9d}from'luxon';export function getDateTimePeriodInfo(_0x5e0e0f,_0x5dc793){const _0x5be193=_0x527a9d[_0xfc7d('0x2')](_0x5e0e0f)[_0xfc7d('0x4')](_0x5dc793),_0x49175d=_0x527a9d[_0xfc7d('0x5')](),_0x23d6ce=_0x49175d[_0xfc7d('0x6')]({'days':0x1})['startOf'](_0xfc7d('0x3'));let _0x2cec1e,_0x4e28c5;return _0x5be193['hasSame'](_0x49175d,'day')?(_0x2cec1e=_0x5be193['startOf'](_0xfc7d('0x3'))[_0xfc7d('0x8')](),_0x4e28c5=_0x5be193[_0xfc7d('0xb')]()):_0x5be193[_0xfc7d('0x1')](_0x23d6ce,'day')?(_0x2cec1e=_0x23d6ce[_0xfc7d('0x8')](),_0x4e28c5=_0x5be193[_0xfc7d('0xb')]()):_0x5be193['hasSame'](_0x49175d,_0xfc7d('0xa'))?(_0x2cec1e=_0x5be193[_0xfc7d('0x7')](_0xfc7d('0xa'))[_0xfc7d('0x8')](),_0x4e28c5=_0x5be193['weekdayLong']||''):_0x5be193[_0xfc7d('0x1')](_0x49175d,_0xfc7d('0x0'))?(_0x2cec1e=_0x5be193[_0xfc7d('0x7')](_0xfc7d('0x9'))[_0xfc7d('0x8')](),_0x4e28c5=_0x5be193['monthLong']||''):(_0x2cec1e=_0x5be193['startOf'](_0xfc7d('0x0'))[_0xfc7d('0x8')](),_0x4e28c5=String(_0x5be193['year'])),{'startDate':_0x2cec1e,'localizedPeriodName':_0x4e28c5};}
@@ -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 _0x4f08=['setTemplate','span','set','ck-revision-change__label','ck-revision-change','name','element','type','ck-annotation','Added\x20by','isSuggestion','bindTemplate','_model','focus','add','div','Suggested\x20by'];(function(_0x397f99,_0x4f08fa){const _0x33991f=function(_0x4f5f83){while(--_0x4f5f83){_0x397f99['push'](_0x397f99['shift']());}};_0x33991f(++_0x4f08fa);}(_0x4f08,0x155));const _0x3399=function(_0x397f99,_0x4f08fa){_0x397f99=_0x397f99-0x0;let _0x33991f=_0x4f08[_0x397f99];return _0x33991f;};import{View as _0x3f8b41}from'ckeditor5/src/ui';import{getTranslation as _0x656585}from'../../utils/common-translations';export default class Z extends _0x3f8b41{constructor(_0x2e94a7,_0x25253f){super(_0x2e94a7),this[_0x3399('0xb')]=_0x25253f,this['changeId']=_0x25253f['id'];const _0x223436=this[_0x3399('0xa')],_0x28161f=_0x656585(_0x2e94a7,_0x25253f['data'][_0x3399('0x9')]?_0x3399('0xf'):_0x3399('0xd')==_0x25253f['type']?_0x3399('0x8'):'Removed\x20by');this[_0x3399('0x1')](_0x3399('0x6'),_0x25253f['type']),this[_0x3399('0x10')]({'tag':_0x3399('0xe'),'attributes':{'class':[_0x3399('0x7'),_0x3399('0x3'),_0x223436['to']('type',_0x4081fd=>'ck-revision-change__'+_0x4081fd)],'tabindex':-0x1},'children':[{'tag':_0x3399('0x0'),'children':[{'tag':'span','attributes':{'class':[_0x3399('0x2')]},'children':[{'text':_0x28161f}]},{'text':'\x20'+_0x25253f['author'][_0x3399('0x4')]}]}]});}['focus'](){this[_0x3399('0x5')][_0x3399('0xc')]();}}
@@ -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 _0x4876=['isForwardNavigationEnabled','ck-hidden','_statusText','numberOfChanges','backward','forward','execute','currentChangeNumber','bind','span','Show\x20next\x20change','isEnabled','isReady','No\x20changes','ck-revision-history-ui__changes-navigation__navigation','Show\x20previous\x20change','set','ck-revision-history-ui__changes-navigation__label','Total','EDIT_X_OF_Y_REVISIONS','isBackwardNavigationEnabled','X_OF_Y_CHANGES','_isStatusLabelVisible','div','fire','isNavigationMode','ck-revision-history-ui__changes-navigation__wrapper'];(function(_0x1211e6,_0x4876f5){const _0x378851=function(_0x2f9984){while(--_0x2f9984){_0x1211e6['push'](_0x1211e6['shift']());}};_0x378851(++_0x4876f5);}(_0x4876,0xaf));const _0x3788=function(_0x1211e6,_0x4876f5){_0x1211e6=_0x1211e6-0x0;let _0x378851=_0x4876[_0x1211e6];return _0x378851;};import{View as _0x30a0d7,ButtonView as _0x3bccc0,ToolbarSeparatorView as _0x245bd3}from'ckeditor5/src/ui';import{getTranslation as _0x365b8b}from'../../utils/common-translations';import _0xea7ac4 from'../../../theme/icons/arrow-up.svg';import _0x1dca13 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x30a0d7{constructor(_0x5d4d2b){super(_0x5d4d2b);const _0x43a972=this['bindTemplate'],_0x4d02ab=new _0x3bccc0(_0x5d4d2b),_0x209f99=new _0x3bccc0(_0x5d4d2b);this[_0x3788('0x3')]('isNavigationMode',!0x1),this[_0x3788('0x3')](_0x3788('0x1a'),!0x1),this['set'](_0x3788('0x15'),0x0),this['set'](_0x3788('0x11'),0x0),this[_0x3788('0x3')](_0x3788('0xe'),!0x1),this['set'](_0x3788('0x7'),!0x1),this[_0x3788('0x16')](_0x3788('0x9'))['to'](this,_0x3788('0x1a'),this,_0x3788('0x11'),(_0x5d5506,_0x139cd6)=>_0x5d5506&&_0x139cd6>0x0),this[_0x3788('0x16')](_0x3788('0x10'))['to'](this,_0x3788('0x1a'),this,_0x3788('0x15'),this,_0x3788('0x11'),this,_0x3788('0xc'),(_0x2f31d6,_0x383570,_0x464cf0,_0x14e1e1)=>{if(!_0x2f31d6)return _0x365b8b(_0x5d4d2b,'Loading...');if(!_0x464cf0)return _0x365b8b(_0x5d4d2b,_0x3788('0x0'));const _0xfaf96f=_0x365b8b(_0x5d4d2b,'NUMBER_OF_CHANGES',_0x464cf0);return _0x14e1e1?_0x365b8b(_0x5d4d2b,_0x3788('0x8'),[_0x383570+0x1,_0x464cf0]):_0xfaf96f;}),_0x4d02ab[_0x3788('0x3')]({'label':_0x365b8b(_0x5d4d2b,_0x3788('0x2')),'tooltip':!0x0,'icon':_0xea7ac4}),_0x209f99[_0x3788('0x3')]({'label':_0x365b8b(_0x5d4d2b,_0x3788('0x18')),'tooltip':!0x0,'icon':_0x1dca13}),_0x4d02ab[_0x3788('0x16')]('isEnabled')['to'](this,_0x3788('0x7')),_0x209f99['bind'](_0x3788('0x19'))['to'](this,_0x3788('0xe')),_0x4d02ab['on'](_0x3788('0x14'),()=>this[_0x3788('0xb')](_0x3788('0x14'),_0x3788('0x12'))),_0x209f99['on'](_0x3788('0x14'),()=>this['fire']('execute',_0x3788('0x13'))),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-ui','ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':[_0x3788('0xd')]},'children':[{'tag':_0x3788('0x17'),'attributes':{'class':[_0x3788('0x4'),_0x43a972['if'](_0x3788('0x9'),_0x3788('0xf'),_0x493e44=>!_0x493e44)]},'children':[{'text':_0x43a972['to'](_0x3788('0xc'),_0x2b85a9=>_0x2b85a9?_0x365b8b(_0x5d4d2b,_0x3788('0x6'))+':\x20':_0x365b8b(_0x5d4d2b,_0x3788('0x5'))+':\x20')}]},{'text':_0x43a972['to'](_0x3788('0x10'))}]},new _0x245bd3(),{'tag':_0x3788('0xa'),'attributes':{'class':[_0x3788('0x1')]},'children':[_0x4d02ab,_0x209f99]}]});}}
@@ -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 _0x2e87=['document','ck-editor__editable__loading-overlay','editor','hide','pluginName','roots','view','editing','RevisionViewerLoadingOverlay','change','show'];(function(_0x23c58d,_0x2e87de){const _0x24c7df=function(_0x5f55fe){while(--_0x5f55fe){_0x23c58d['push'](_0x23c58d['shift']());}};_0x24c7df(++_0x2e87de);}(_0x2e87,0x6d));const _0x24c7=function(_0x23c58d,_0x2e87de){_0x23c58d=_0x23c58d-0x0;let _0x24c7df=_0x2e87[_0x23c58d];return _0x24c7df;};import{Plugin as _0x48a7e7}from'ckeditor5/src/core';const oe=_0x24c7('0x2');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x48a7e7{static get[_0x24c7('0x5')](){return _0x24c7('0x9');}[_0x24c7('0x0')](){const _0x557f07=this[_0x24c7('0x3')][_0x24c7('0x8')]['view'];_0x557f07[_0x24c7('0xa')](_0x24a26e=>{for(const _0x33fbd8 of _0x557f07[_0x24c7('0x1')][_0x24c7('0x6')])_0x24a26e['addClass'](oe,_0x33fbd8);});}[_0x24c7('0x4')](){const _0x2f9f20=this[_0x24c7('0x3')][_0x24c7('0x8')][_0x24c7('0x7')];_0x2f9f20[_0x24c7('0xa')](_0x3d6af9=>{for(const _0x21bab0 of _0x2f9f20[_0x24c7('0x1')]['roots'])_0x3d6af9['removeClass'](oe,_0x21bab0);});}}
@@ -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 _0x48e6=['isForwardNavigationEnabled','closeRevisionViewerCallback','show','isEnabled','isReady','restoreRevision','execute','init','Back\x20to\x20editing','set','forward','hide','editor','numberOfChanges','isBackwardNavigationEnabled','exitToEditing','bind','isNavigationMode','showNextChange','RevisionViewerUI','change:isReady','get','plugins','showPreviousChange','config','listenTo','add','revisionHistory','commands','requires'];(function(_0x2dd876,_0x48e6d4){const _0x3a484e=function(_0x232a32){while(--_0x232a32){_0x2dd876['push'](_0x2dd876['shift']());}};_0x3a484e(++_0x48e6d4);}(_0x48e6,0x124));const _0x3a48=function(_0x2dd876,_0x48e6d4){_0x2dd876=_0x2dd876-0x0;let _0x3a484e=_0x48e6[_0x2dd876];return _0x3a484e;};import{Plugin as _0x312d2b}from'ckeditor5/src/core';import{ButtonView as _0x350594}from'ckeditor5/src/ui';import _0xd7efe3 from'./changesnavigationview';import _0x259d30 from'./../../revisionviewer';import _0x4df31a from'./revisionviewerloadingoverlay';import{getTranslation as _0x457b03}from'../../utils/common-translations';import _0x49df70 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x312d2b{static get['pluginName'](){return _0x3a48('0x1b');}static get[_0x3a48('0x7')](){return[_0x259d30,_0x4df31a];}[_0x3a48('0xf')](){const _0x3503ab=this[_0x3a48('0x14')],_0x4ddecd=_0x3503ab['plugins']['get'](_0x259d30),_0x2df846=_0x3503ab[_0x3a48('0x0')][_0x3a48('0x1d')](_0x4df31a);_0x3503ab['ui']['componentFactory'][_0x3a48('0x4')](_0x3a48('0x17'),_0x4a3a30=>{const _0x4dccd4=new _0x350594(_0x4a3a30);return _0x4dccd4[_0x3a48('0x11')]({'label':_0x457b03(_0x4a3a30,_0x3a48('0x10')),'icon':_0x49df70,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4dccd4,'execute',()=>{_0x3503ab[_0x3a48('0x2')]['get'](_0x3a48('0x5'))[_0x3a48('0x9')]();}),_0x4dccd4;}),_0x3503ab['ui']['componentFactory'][_0x3a48('0x4')](_0x3a48('0xd'),_0x5a622f=>{const _0xf91e14=new _0x350594(_0x5a622f);return _0xf91e14[_0x3a48('0x11')]({'label':_0x457b03(_0x5a622f,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xf91e14['bind'](_0x3a48('0xb'))['to'](_0x3503ab[_0x3a48('0x6')][_0x3a48('0x1d')]('restoreRevision')),this['listenTo'](_0xf91e14,'execute',()=>_0x3503ab[_0x3a48('0xe')](_0x3a48('0xd'))),_0xf91e14;}),_0x3503ab['ui']['componentFactory'][_0x3a48('0x4')]('changesNavigation',_0x2c6ba4=>{const _0x78bcbb=new _0xd7efe3(_0x2c6ba4),_0x2bf5fe=_0x3503ab[_0x3a48('0x6')][_0x3a48('0x1d')]('showPreviousChange'),_0x34aa51=_0x3503ab['commands'][_0x3a48('0x1d')]('showNextChange');return _0x78bcbb[_0x3a48('0x18')](_0x3a48('0x16'))['to'](_0x2bf5fe,'isEnabled'),_0x78bcbb[_0x3a48('0x18')](_0x3a48('0x8'))['to'](_0x34aa51,_0x3a48('0xb')),_0x78bcbb['bind'](_0x3a48('0xc'),'currentChangeNumber',_0x3a48('0x15'),_0x3a48('0x19'))['to'](_0x4ddecd),this[_0x3a48('0x3')](_0x78bcbb,_0x3a48('0xe'),(_0x342af5,_0x363379)=>{_0x3503ab[_0x3a48('0xe')](_0x3a48('0x12')===_0x363379?_0x3a48('0x1a'):_0x3a48('0x1'));}),_0x78bcbb;}),_0x2df846[_0x3a48('0xa')](),_0x4ddecd['on'](_0x3a48('0x1c'),(_0x41e656,_0x9be40a,_0x51b88b)=>{_0x51b88b?_0x2df846[_0x3a48('0x13')]():_0x2df846['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(_0xe20742,_0x5c5b6a,_0x2cdd67){const t=_0xe20742['t'];switch(_0x5c5b6a){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'},_0x2cdd67);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2cdd67);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 _0x5c5b6a;}}