@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231214.0 → 0.0.0-nightly-20231215.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 _0x4f22=['view','length','remove','Save\x20current\x20revision','revisionName','items','pluginName','isEnabled','get','panelView','init','requires','cancel','add','set','execute','isReady','showRevisionViewerCallback','buttonView','RevisionHistoryUI','plugins','children','isOpen','focus','bind','history','editing','componentFactory','config','Open\x20revision\x20history','editor','isReadOnly','revisionHistory','change:isOpen'];(function(_0x514297,_0x4f22cf){const _0x11033b=function(_0x372902){while(--_0x372902){_0x514297['push'](_0x514297['shift']());}};_0x11033b(++_0x4f22cf);}(_0x4f22,0x1b9));const _0x1103=function(_0x514297,_0x4f22cf){_0x514297=_0x514297-0x0;let _0x11033b=_0x4f22[_0x514297];return _0x11033b;};import{Plugin as _0x5af662,icons as _0x33d87d}from'ckeditor5/src/core';import{ListView as _0x1eb2b4,ListItemView as _0x8add95,ButtonView as _0x46b411,createDropdown as _0x11b08d}from'ckeditor5/src/ui';import _0x2e22e8 from'../../revisiontracker';import _0x3099b4 from'./revisionhistorysaverevisionformview';import{getTranslation as _0x2d217e}from'../../utils/common-translations';export default class u extends _0x5af662{static get[_0x1103('0x7')](){return _0x1103('0x14');}static get[_0x1103('0xc')](){return[_0x2e22e8];}[_0x1103('0xb')](){const _0x1851b3=this[_0x1103('0x1f')],_0x457032=_0x1851b3[_0x1103('0x15')]['get']('RevisionTracker');_0x1851b3['ui'][_0x1103('0x1c')]['add'](_0x1103('0x21'),_0x9ce4d0=>{const _0x4646e7=_0x11b08d(_0x9ce4d0),_0x33199e=_0x4646e7[_0x1103('0xa')][_0x1103('0x16')],_0x23b9c8=new _0x1eb2b4(_0x9ce4d0),_0x17e035=new _0x8add95(_0x9ce4d0),_0x2d8d7a=new _0x46b411(_0x9ce4d0),_0x42b83f=new _0x8add95(_0x9ce4d0),_0x105ea4=new _0x46b411(_0x9ce4d0),_0x5ae8c4=new _0x3099b4(_0x9ce4d0);function _0x289ec4(){_0x33199e[_0x1103('0x2')]&&_0x33199e[_0x1103('0x3')](0x0),_0x33199e[_0x1103('0xe')](_0x23b9c8);}function _0x5e05fb(){_0x4646e7[_0x1103('0x17')]=!0x1,_0x1851b3[_0x1103('0x1b')][_0x1103('0x1')]['focus']();}return _0x4646e7[_0x1103('0x19')](_0x1103('0x8'))['to'](_0x457032,_0x1103('0x11'),_0x457032,_0x1103('0x8'),_0x1851b3,_0x1103('0x20'),(_0x3795f4,_0xafd6ed,_0x58f7f4)=>_0x3795f4&&_0xafd6ed&&!_0x58f7f4),_0x4646e7[_0x1103('0x13')][_0x1103('0xf')]({'icon':_0x33d87d[_0x1103('0x1a')],'label':_0x2d217e(_0x9ce4d0,'Revision\x20history'),'tooltip':!0x0}),_0x2d8d7a[_0x1103('0xf')]({'label':_0x2d217e(_0x9ce4d0,_0x1103('0x4')),'withText':!0x0}),_0x2d8d7a[_0x1103('0x19')](_0x1103('0x8'))['to'](_0x457032,_0x1103('0x11'),_0x457032,_0x1103('0x8'),_0x1851b3,_0x1103('0x20'),(_0x48178b,_0x1bf66b,_0x2be53b)=>_0x48178b&&_0x1bf66b&&!_0x2be53b),_0x2d8d7a['on'](_0x1103('0x10'),()=>function(){_0x33199e[_0x1103('0x2')]&&_0x33199e[_0x1103('0x3')](0x0),(_0x5ae8c4['reset'](),_0x33199e['add'](_0x5ae8c4),_0x5ae8c4[_0x1103('0x18')]());}()),_0x105ea4['set']({'label':_0x2d217e(_0x9ce4d0,_0x1103('0x1e')),'withText':!0x0}),_0x105ea4[_0x1103('0x19')]('isEnabled')['to'](_0x457032,'isReady',_0x1851b3,_0x1103('0x20'),(_0x48bf13,_0x5d5dc8)=>_0x48bf13&&!_0x5d5dc8),_0x105ea4['on']('execute',()=>{_0x1851b3[_0x1103('0x1d')][_0x1103('0x9')]('revisionHistory')[_0x1103('0x12')](),_0x5e05fb();}),_0x17e035[_0x1103('0x16')]['add'](_0x2d8d7a),_0x42b83f[_0x1103('0x16')][_0x1103('0xe')](_0x105ea4),_0x23b9c8[_0x1103('0x6')]['addMany']([_0x17e035,_0x42b83f]),_0x4646e7['on'](_0x1103('0x0'),()=>_0x289ec4()),_0x5ae8c4['saveButtonView'][_0x1103('0x19')](_0x1103('0x8'))['to'](_0x457032,'isReady',_0x457032,_0x1103('0x8'),_0x1851b3,_0x1103('0x20'),(_0x4d8eb2,_0x449a11,_0x739011)=>_0x4d8eb2&&_0x449a11&&!_0x739011),_0x5ae8c4['on']('submit',()=>(_0x1851b3['plugins'][_0x1103('0x9')](_0x2e22e8)['saveRevision']({'name':_0x5ae8c4[_0x1103('0x5')]}),void _0x5e05fb())),_0x5ae8c4['on'](_0x1103('0xd'),()=>_0x289ec4()),_0x5ae8c4['render'](),_0x289ec4(),_0x4646e7;});}}
23
+ const _0x5270=['submit','view','items','Revision\x20history','history','get','revisionHistory','revisionName','isReadOnly','RevisionTracker','Save\x20current\x20revision','remove','cancel','plugins','reset','change:isOpen','requires','RevisionHistoryUI','render','showRevisionViewerCallback','isOpen','isEnabled','isReady','config','pluginName','focus','saveButtonView','execute','children','set','add','editing','bind','panelView'];(function(_0x4a9c8e,_0x52700b){const _0x35fabb=function(_0x320439){while(--_0x320439){_0x4a9c8e['push'](_0x4a9c8e['shift']());}};_0x35fabb(++_0x52700b);}(_0x5270,0x19d));const _0x35fa=function(_0x4a9c8e,_0x52700b){_0x4a9c8e=_0x4a9c8e-0x0;let _0x35fabb=_0x5270[_0x4a9c8e];return _0x35fabb;};import{Plugin as _0x1194f7,icons as _0x2e203d}from'ckeditor5/src/core';import{ListView as _0x40b32a,ListItemView as _0x3979f3,ButtonView as _0x56b28d,createDropdown as _0x4d6b7a}from'ckeditor5/src/ui';import _0x5ba1d7 from'../../revisiontracker';import _0x58b0c7 from'./revisionhistorysaverevisionformview';import{getTranslation as _0x25e89d}from'../../utils/common-translations';export default class u extends _0x1194f7{static get[_0x35fa('0x13')](){return _0x35fa('0xc');}static get[_0x35fa('0xb')](){return[_0x5ba1d7];}['init'](){const _0x23b44d=this['editor'],_0x446fc3=_0x23b44d[_0x35fa('0x8')][_0x35fa('0x0')](_0x35fa('0x4'));_0x23b44d['ui']['componentFactory'][_0x35fa('0x19')](_0x35fa('0x1'),_0x584995=>{const _0x2dbb1f=_0x4d6b7a(_0x584995),_0x5bfeb6=_0x2dbb1f[_0x35fa('0x1c')][_0x35fa('0x17')],_0x4a8dfc=new _0x40b32a(_0x584995),_0x483ea8=new _0x3979f3(_0x584995),_0x3afa6f=new _0x56b28d(_0x584995),_0x4a45b6=new _0x3979f3(_0x584995),_0x3bd5c4=new _0x56b28d(_0x584995),_0x2c7233=new _0x58b0c7(_0x584995);function _0x573bb5(){_0x5bfeb6['length']&&_0x5bfeb6['remove'](0x0),_0x5bfeb6[_0x35fa('0x19')](_0x4a8dfc);}function _0x105756(){_0x2dbb1f[_0x35fa('0xf')]=!0x1,_0x23b44d[_0x35fa('0x1a')][_0x35fa('0x1e')][_0x35fa('0x14')]();}return _0x2dbb1f['bind']('isEnabled')['to'](_0x446fc3,_0x35fa('0x11'),_0x446fc3,_0x35fa('0x10'),_0x23b44d,_0x35fa('0x3'),(_0x1ee493,_0x4d9079,_0x20e7f4)=>_0x1ee493&&_0x4d9079&&!_0x20e7f4),_0x2dbb1f['buttonView'][_0x35fa('0x18')]({'icon':_0x2e203d[_0x35fa('0x21')],'label':_0x25e89d(_0x584995,_0x35fa('0x20')),'tooltip':!0x0}),_0x3afa6f['set']({'label':_0x25e89d(_0x584995,_0x35fa('0x5')),'withText':!0x0}),_0x3afa6f[_0x35fa('0x1b')](_0x35fa('0x10'))['to'](_0x446fc3,_0x35fa('0x11'),_0x446fc3,_0x35fa('0x10'),_0x23b44d,_0x35fa('0x3'),(_0x2346fc,_0x42cb55,_0x19c914)=>_0x2346fc&&_0x42cb55&&!_0x19c914),_0x3afa6f['on'](_0x35fa('0x16'),()=>function(){_0x5bfeb6['length']&&_0x5bfeb6[_0x35fa('0x6')](0x0),(_0x2c7233[_0x35fa('0x9')](),_0x5bfeb6[_0x35fa('0x19')](_0x2c7233),_0x2c7233[_0x35fa('0x14')]());}()),_0x3bd5c4[_0x35fa('0x18')]({'label':_0x25e89d(_0x584995,'Open\x20revision\x20history'),'withText':!0x0}),_0x3bd5c4['bind'](_0x35fa('0x10'))['to'](_0x446fc3,'isReady',_0x23b44d,_0x35fa('0x3'),(_0x245f9e,_0x4edd49)=>_0x245f9e&&!_0x4edd49),_0x3bd5c4['on']('execute',()=>{_0x23b44d[_0x35fa('0x12')]['get']('revisionHistory')[_0x35fa('0xe')](),_0x105756();}),_0x483ea8['children']['add'](_0x3afa6f),_0x4a45b6[_0x35fa('0x17')][_0x35fa('0x19')](_0x3bd5c4),_0x4a8dfc[_0x35fa('0x1f')]['addMany']([_0x483ea8,_0x4a45b6]),_0x2dbb1f['on'](_0x35fa('0xa'),()=>_0x573bb5()),_0x2c7233[_0x35fa('0x15')][_0x35fa('0x1b')](_0x35fa('0x10'))['to'](_0x446fc3,_0x35fa('0x11'),_0x446fc3,_0x35fa('0x10'),_0x23b44d,_0x35fa('0x3'),(_0x8d35a0,_0x1f8d78,_0x2f2c3d)=>_0x8d35a0&&_0x1f8d78&&!_0x2f2c3d),_0x2c7233['on'](_0x35fa('0x1d'),()=>(_0x23b44d[_0x35fa('0x8')]['get'](_0x5ba1d7)['saveRevision']({'name':_0x2c7233[_0x35fa('0x2')]}),void _0x105756())),_0x2c7233['on'](_0x35fa('0x7'),()=>_0x573bb5()),_0x2c7233[_0x35fa('0xd')](),_0x573bb5(),_0x2dbb1f;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3c8c=['length','Restore\x20this\x20revision','revisionHistory.viewerSidebarContainer','assign','Compare\x20against\x20selected','compare','render','destroy','getIndex','isEnabled','RevisionsSidebar','element','timePeriodViews','plugins','data','_revisionViewer','add','bind','selectRevision','_handleRevisionSelected','_handleRevisionSetName','getRevisionsInDiff','isVisible','config','_revisions','listenTo','ready','defaultRevisionActions','availableRevisionActions','change:diff','locale','restoreRevision','setName','action','pluginName','_handleEditorDataReady','revisionSelected','name','diff','highlightRevisions','_handleDiffChange','isSelected','fieldView','repository','newRevisionId','_createRevisionActions','getEarlierVisibleRevision','get','getLaterVisibleRevision','revisionSetName','getRevision','Name\x20this\x20revision','editor','_revisionsRepository','_sidebarView','focus','map','compareAgainstSelected'];(function(_0x4d66f9,_0x3c8c1f){const _0x51ff32=function(_0x34063c){while(--_0x34063c){_0x4d66f9['push'](_0x4d66f9['shift']());}};_0x51ff32(++_0x3c8c1f);}(_0x3c8c,0x1a9));const _0x51ff=function(_0x4d66f9,_0x3c8c1f){_0x4d66f9=_0x4d66f9-0x0;let _0x51ff32=_0x3c8c[_0x4d66f9];return _0x51ff32;};import{Plugin as _0x5bf9fb}from'ckeditor5/src/core';import _0x15b827 from'./revisionssidebarview';import _0x18fc91 from'../../revisionviewer';export default class w extends _0x5bf9fb{static get[_0x51ff('0xf')](){return _0x51ff('0x31');}static get['requires'](){return[_0x18fc91];}constructor(_0x2caad3){super(_0x2caad3),this['_revisionViewer']=_0x2caad3[_0x51ff('0x34')][_0x51ff('0x1c')](_0x18fc91),this['_revisionsRepository']=this[_0x51ff('0x36')]['repository'],this[_0x51ff('0x23')]=null;}['init'](){const _0x4214e5=this[_0x51ff('0x22')][_0x51ff('0x5')],_0x1b500b=this['_createRevisionActions'](),_0x249e65=this['editor'][_0x51ff('0x4')][_0x51ff('0x1c')](_0x51ff('0x29'));this[_0x51ff('0x23')]=new _0x15b827(this[_0x51ff('0x21')][_0x51ff('0xb')],_0x4214e5,_0x1b500b),this[_0x51ff('0x23')]['on'](_0x51ff('0x11'),this['_handleRevisionSelected'][_0x51ff('0x38')](this)),this[_0x51ff('0x23')]['on'](_0x51ff('0x1e'),this[_0x51ff('0x1')]['bind'](this)),this[_0x51ff('0x23')][_0x51ff('0x38')](_0x51ff('0x30'))['to'](this['_revisionViewer']),this[_0x51ff('0x23')][_0x51ff('0x33')]['on'](_0x51ff('0x37'),(_0x515692,_0x55fa65)=>{_0x55fa65['revisionViews']['on'](_0x51ff('0x37'),(_0x3601fb,_0x437b94)=>{_0x437b94[_0x51ff('0x38')]('isEnabled','isReady')['to'](this[_0x51ff('0x36')]);});}),this[_0x51ff('0x23')][_0x51ff('0x2d')](),this[_0x51ff('0x6')](this[_0x51ff('0x21')][_0x51ff('0x35')],_0x51ff('0x7'),this[_0x51ff('0x10')][_0x51ff('0x38')](this)),this['listenTo'](this[_0x51ff('0x36')],_0x51ff('0xa'),this[_0x51ff('0x15')][_0x51ff('0x38')](this)),_0x249e65['appendChild'](this[_0x51ff('0x23')][_0x51ff('0x32')]);}[_0x51ff('0x2e')](){this[_0x51ff('0x23')]['element']['remove'](),this[_0x51ff('0x23')][_0x51ff('0x2e')]();}['_handleEditorDataReady'](){const _0x291ac0=this['_revisionsRepository'][_0x51ff('0x1f')](0x0);if(_0x291ac0){const _0xce5478=this[_0x51ff('0x22')]['getEarlierVisibleRevision'](_0x291ac0['id']);this[_0x51ff('0x36')]['compare'](_0x291ac0,_0xce5478);}}[_0x51ff('0x0')](_0x579a56,_0x4fcef0){const _0x5b8e33=this[_0x51ff('0x22')][_0x51ff('0x1f')](_0x4fcef0['id']),_0x28a0b3=this[_0x51ff('0x22')][_0x51ff('0x1b')](_0x5b8e33['id']);this[_0x51ff('0x36')][_0x51ff('0x2c')](_0x5b8e33,_0x28a0b3);}['_handleRevisionSetName'](_0x5a5602,_0x2f94ea){this[_0x51ff('0x22')]['getRevision'](_0x2f94ea['id'])[_0x51ff('0xd')](_0x2f94ea[_0x51ff('0x12')]);}['_handleDiffChange'](_0x101e80,_0x514748,_0x3146a2){const _0xad4df4=this[_0x51ff('0x22')][_0x51ff('0x2')](_0x3146a2);_0xad4df4[_0x51ff('0x27')]>0x2?(this[_0x51ff('0x23')][_0x51ff('0x14')](_0xad4df4),this[_0x51ff('0x23')][_0x51ff('0x39')](null)):(this[_0x51ff('0x23')]['highlightRevisions']([]),this[_0x51ff('0x23')][_0x51ff('0x39')](_0xad4df4[0x0]));}[_0x51ff('0x1a')](){const _0x395230=this[_0x51ff('0x21')],_0x2a4b0e=w[_0x51ff('0x9')],_0x134087=_0x395230[_0x51ff('0x4')]['get']('revisionHistory.revisionActions')||w[_0x51ff('0x8')];if(_0x134087[_0x51ff('0x27')])return _0x134087[_0x51ff('0x25')](_0x47f16d=>{const _0x348931='string'==typeof _0x47f16d?Object[_0x51ff('0x2a')]({},_0x2a4b0e[_0x47f16d]):_0x47f16d;return _0x348931[_0x51ff('0xe')]=_0x348931[_0x51ff('0xe')][_0x51ff('0x38')](this,_0x395230),_0x348931[_0x51ff('0x3')]&&(_0x348931[_0x51ff('0x3')]=_0x348931[_0x51ff('0x3')]['bind'](this,_0x395230)),_0x348931;});}}w['availableRevisionActions']={'compareAgainstSelected':{'name':_0x51ff('0x2b'),'action':({plugins:_0x51aca7},_0x7de917)=>{const _0x4482cb=_0x51aca7['get'](_0x18fc91),_0x1a2645=_0x4482cb[_0x51ff('0x18')];let _0x53356e=_0x4482cb[_0x51ff('0x13')][_0x51ff('0x19')],_0x29705e=_0x7de917['id'];_0x1a2645[_0x51ff('0x2f')](_0x53356e)>_0x1a2645['getIndex'](_0x29705e)&&([_0x53356e,_0x29705e]=[_0x29705e,_0x53356e]),_0x4482cb[_0x51ff('0x2c')](_0x53356e,_0x29705e);},'isVisible':({plugins:_0x9a73e3},_0x2f0614)=>{const _0x4d32c0=_0x9a73e3[_0x51ff('0x1c')](_0x18fc91);return!(_0x4d32c0['repository'][_0x51ff('0x2')](_0x4d32c0[_0x51ff('0x13')])['length']>0x2)&&!_0x2f0614[_0x51ff('0x16')];}},'restoreRevision':{'name':_0x51ff('0x28'),'action':(_0x19f8aa,{id:_0x170609})=>{_0x19f8aa[_0x51ff('0x4')]['get']('revisionHistory')['restoreRevisionCallback'](_0x170609);},'isVisible':({plugins:_0x41b5d1},_0x15eb72)=>!!_0x41b5d1[_0x51ff('0x1c')](_0x18fc91)['repository'][_0x51ff('0x1d')](_0x15eb72['id'])},'nameRevision':{'name':_0x51ff('0x20'),'action':({plugins:_0x4eb566},{id:_0x4d211d,revisionNameView:_0x3ecc06})=>{const _0x4c7f78=_0x4eb566[_0x51ff('0x1c')](_0x18fc91),_0x4c91a1=_0x4c7f78[_0x51ff('0x18')][_0x51ff('0x1b')](_0x4d211d);_0x4c7f78[_0x51ff('0x2c')](_0x4d211d,_0x4c91a1),_0x3ecc06[_0x51ff('0x24')](),_0x3ecc06[_0x51ff('0x17')]['select']();}}},w[_0x51ff('0x8')]=[_0x51ff('0x26'),_0x51ff('0xc'),'nameRevision'];
23
+ const _0x5e1d=['_sidebarView','repository','get','config','_revisionViewer','compare','isEnabled','revisionHistory','string','isVisible','select','getRevisionsInDiff','setName','fieldView','name','getLaterVisibleRevision','assign','appendChild','_handleRevisionSelected','pluginName','_createRevisionActions','action','element','Compare\x20against\x20selected','remove','_handleEditorDataReady','defaultRevisionActions','nameRevision','bind','selectRevision','diff','plugins','getRevision','_revisions','change:diff','revisionHistory.revisionActions','init','_handleRevisionSetName','restoreRevisionCallback','_handleDiffChange','revisionSetName','newRevisionId','focus','getEarlierVisibleRevision','restoreRevision','compareAgainstSelected','getIndex','add','length','isReady','availableRevisionActions','locale','destroy','editor','Name\x20this\x20revision','_revisionsRepository','listenTo'];(function(_0x4e340d,_0x5e1d92){const _0x5b8cb9=function(_0x3acbe7){while(--_0x3acbe7){_0x4e340d['push'](_0x4e340d['shift']());}};_0x5b8cb9(++_0x5e1d92);}(_0x5e1d,0x1ac));const _0x5b8c=function(_0x4e340d,_0x5e1d92){_0x4e340d=_0x4e340d-0x0;let _0x5b8cb9=_0x5e1d[_0x4e340d];return _0x5b8cb9;};import{Plugin as _0x3c00c4}from'ckeditor5/src/core';import _0x48a605 from'./revisionssidebarview';import _0x240aa7 from'../../revisionviewer';export default class w extends _0x3c00c4{static get[_0x5b8c('0x2f')](){return'RevisionsSidebar';}static get['requires'](){return[_0x240aa7];}constructor(_0x55fbe1){super(_0x55fbe1),this['_revisionViewer']=_0x55fbe1[_0x5b8c('0x2')][_0x5b8c('0x1e')](_0x240aa7),this[_0x5b8c('0x1a')]=this['_revisionViewer']['repository'],this[_0x5b8c('0x1c')]=null;}[_0x5b8c('0x7')](){const _0x13ed5b=this[_0x5b8c('0x1a')][_0x5b8c('0x4')],_0x52e6e3=this[_0x5b8c('0x30')](),_0x23d528=this[_0x5b8c('0x18')][_0x5b8c('0x1f')][_0x5b8c('0x1e')]('revisionHistory.viewerSidebarContainer');this[_0x5b8c('0x1c')]=new _0x48a605(this[_0x5b8c('0x18')][_0x5b8c('0x16')],_0x13ed5b,_0x52e6e3),this[_0x5b8c('0x1c')]['on']('revisionSelected',this[_0x5b8c('0x2e')]['bind'](this)),this[_0x5b8c('0x1c')]['on'](_0x5b8c('0xb'),this[_0x5b8c('0x8')][_0x5b8c('0x38')](this)),this[_0x5b8c('0x1c')][_0x5b8c('0x38')]('isEnabled')['to'](this['_revisionViewer']),this['_sidebarView']['timePeriodViews']['on'](_0x5b8c('0x12'),(_0x1bc8ef,_0x1d9081)=>{_0x1d9081['revisionViews']['on'](_0x5b8c('0x12'),(_0x5ede56,_0x227f9c)=>{_0x227f9c[_0x5b8c('0x38')](_0x5b8c('0x22'),_0x5b8c('0x14'))['to'](this[_0x5b8c('0x20')]);});}),this[_0x5b8c('0x1c')]['render'](),this[_0x5b8c('0x1b')](this[_0x5b8c('0x18')]['data'],'ready',this[_0x5b8c('0x35')][_0x5b8c('0x38')](this)),this[_0x5b8c('0x1b')](this[_0x5b8c('0x20')],_0x5b8c('0x5'),this[_0x5b8c('0xa')][_0x5b8c('0x38')](this)),_0x23d528[_0x5b8c('0x2d')](this[_0x5b8c('0x1c')]['element']);}['destroy'](){this[_0x5b8c('0x1c')][_0x5b8c('0x32')][_0x5b8c('0x34')](),this[_0x5b8c('0x1c')][_0x5b8c('0x17')]();}[_0x5b8c('0x35')](){const _0x34af49=this[_0x5b8c('0x1a')][_0x5b8c('0x3')](0x0);if(_0x34af49){const _0x36e927=this[_0x5b8c('0x1a')]['getEarlierVisibleRevision'](_0x34af49['id']);this[_0x5b8c('0x20')][_0x5b8c('0x21')](_0x34af49,_0x36e927);}}[_0x5b8c('0x2e')](_0x2d9e9c,_0x5464af){const _0x1b1c3c=this[_0x5b8c('0x1a')][_0x5b8c('0x3')](_0x5464af['id']),_0x40b79b=this[_0x5b8c('0x1a')][_0x5b8c('0xe')](_0x1b1c3c['id']);this[_0x5b8c('0x20')][_0x5b8c('0x21')](_0x1b1c3c,_0x40b79b);}[_0x5b8c('0x8')](_0x1c763a,_0x481c3e){this[_0x5b8c('0x1a')][_0x5b8c('0x3')](_0x481c3e['id'])[_0x5b8c('0x28')](_0x481c3e[_0x5b8c('0x2a')]);}[_0x5b8c('0xa')](_0x4eb6b3,_0x5cfde5,_0x3e94f7){const _0x301b20=this['_revisionsRepository'][_0x5b8c('0x27')](_0x3e94f7);_0x301b20[_0x5b8c('0x13')]>0x2?(this['_sidebarView']['highlightRevisions'](_0x301b20),this['_sidebarView'][_0x5b8c('0x0')](null)):(this[_0x5b8c('0x1c')]['highlightRevisions']([]),this['_sidebarView'][_0x5b8c('0x0')](_0x301b20[0x0]));}[_0x5b8c('0x30')](){const _0x2c9125=this['editor'],_0x518485=w[_0x5b8c('0x15')],_0x8274eb=_0x2c9125[_0x5b8c('0x1f')][_0x5b8c('0x1e')](_0x5b8c('0x6'))||w[_0x5b8c('0x36')];if(_0x8274eb['length'])return _0x8274eb['map'](_0x56e9b0=>{const _0x2c00fe=_0x5b8c('0x24')==typeof _0x56e9b0?Object[_0x5b8c('0x2c')]({},_0x518485[_0x56e9b0]):_0x56e9b0;return _0x2c00fe[_0x5b8c('0x31')]=_0x2c00fe['action'][_0x5b8c('0x38')](this,_0x2c9125),_0x2c00fe[_0x5b8c('0x25')]&&(_0x2c00fe[_0x5b8c('0x25')]=_0x2c00fe[_0x5b8c('0x25')][_0x5b8c('0x38')](this,_0x2c9125)),_0x2c00fe;});}}w['availableRevisionActions']={'compareAgainstSelected':{'name':_0x5b8c('0x33'),'action':({plugins:_0x5217b5},_0x5efc18)=>{const _0x311ae2=_0x5217b5[_0x5b8c('0x1e')](_0x240aa7),_0x34264e=_0x311ae2['repository'];let _0x1489d6=_0x311ae2['diff'][_0x5b8c('0xc')],_0x3b6746=_0x5efc18['id'];_0x34264e[_0x5b8c('0x11')](_0x1489d6)>_0x34264e['getIndex'](_0x3b6746)&&([_0x1489d6,_0x3b6746]=[_0x3b6746,_0x1489d6]),_0x311ae2[_0x5b8c('0x21')](_0x1489d6,_0x3b6746);},'isVisible':({plugins:_0x5ec760},_0xe48625)=>{const _0x597f33=_0x5ec760[_0x5b8c('0x1e')](_0x240aa7);return!(_0x597f33[_0x5b8c('0x1d')]['getRevisionsInDiff'](_0x597f33[_0x5b8c('0x1')])['length']>0x2)&&!_0xe48625['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0xc769f5,{id:_0x2cc66a})=>{_0xc769f5['config']['get'](_0x5b8c('0x23'))[_0x5b8c('0x9')](_0x2cc66a);},'isVisible':({plugins:_0xf65aee},_0x59fb23)=>!!_0xf65aee['get'](_0x240aa7)[_0x5b8c('0x1d')][_0x5b8c('0x2b')](_0x59fb23['id'])},'nameRevision':{'name':_0x5b8c('0x19'),'action':({plugins:_0x2b5ddd},{id:_0x30b6db,revisionNameView:_0x367405})=>{const _0xa62c6d=_0x2b5ddd[_0x5b8c('0x1e')](_0x240aa7),_0x1bcb68=_0xa62c6d[_0x5b8c('0x1d')][_0x5b8c('0xe')](_0x30b6db);_0xa62c6d[_0x5b8c('0x21')](_0x30b6db,_0x1bcb68),_0x367405[_0x5b8c('0xd')](),_0x367405[_0x5b8c('0x29')][_0x5b8c('0x26')]();}}},w['defaultRevisionActions']=[_0x5b8c('0x10'),_0x5b8c('0xf'),_0x5b8c('0x37')];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1c04=['setTemplate','span','content','ck-reset_all','div','ck-revision-history-sidebar__header'];(function(_0x4d7f6,_0x1c0469){const _0x410720=function(_0x40f701){while(--_0x40f701){_0x4d7f6['push'](_0x4d7f6['shift']());}};_0x410720(++_0x1c0469);}(_0x1c04,0x65));const _0x4107=function(_0x4d7f6,_0x1c0469){_0x4d7f6=_0x4d7f6-0x0;let _0x410720=_0x1c04[_0x4d7f6];return _0x410720;};import{View as _0x469fed,IconView as _0x572a4e}from'ckeditor5/src/ui';import{getTranslation as _0x1b9a78}from'../../utils/common-translations';import{icons as _0x460c47}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rr extends _0x469fed{constructor(_0x5a044f){super(_0x5a044f);const _0x5e30ac=new _0x572a4e();_0x5e30ac[_0x4107('0x3')]=_0x460c47['history'],this[_0x4107('0x1')]({'tag':_0x4107('0x5'),'attributes':{'class':['ck',_0x4107('0x4'),_0x4107('0x0')]},'children':[_0x5e30ac,{'tag':_0x4107('0x2'),'attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[_0x1b9a78(_0x5a044f,'Revision\x20history')]}]});}}
23
+ const _0x53e8=['Revision\x20history','setTemplate','ck-revision-history-sidebar__header__label','span','div','ck-reset_all','history','content'];(function(_0x1103f0,_0x53e86a){const _0x59ebdf=function(_0x235837){while(--_0x235837){_0x1103f0['push'](_0x1103f0['shift']());}};_0x59ebdf(++_0x53e86a);}(_0x53e8,0xab));const _0x59eb=function(_0x1103f0,_0x53e86a){_0x1103f0=_0x1103f0-0x0;let _0x59ebdf=_0x53e8[_0x1103f0];return _0x59ebdf;};import{View as _0x49622e,IconView as _0x5c1868}from'ckeditor5/src/ui';import{getTranslation as _0x49b226}from'../../utils/common-translations';import{icons as _0x5e292f}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rr extends _0x49622e{constructor(_0x43c5b4){super(_0x43c5b4);const _0x5d6404=new _0x5c1868();_0x5d6404[_0x59eb('0x4')]=_0x5e292f[_0x59eb('0x3')],this[_0x59eb('0x6')]({'tag':_0x59eb('0x1'),'attributes':{'class':['ck',_0x59eb('0x2'),'ck-revision-history-sidebar__header']},'children':[_0x5d6404,{'tag':_0x59eb('0x0'),'attributes':{'class':['ck',_0x59eb('0x7')]},'children':[_0x49b226(_0x43c5b4,_0x59eb('0x5'))]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3a22=['setTemplate','createCollection','_revisionActions','find','add','locale','remove','ck-revision-history-sidebar__time-period','startDate','uiLanguage','setName','delegate','revisionViews','addRevision','div','span'];(function(_0x4d7d8c,_0x3a22d0){const _0x4625e7=function(_0x410eb3){while(--_0x410eb3){_0x4d7d8c['push'](_0x4d7d8c['shift']());}};_0x4625e7(++_0x3a22d0);}(_0x3a22,0x1a9));const _0x4625=function(_0x4d7d8c,_0x3a22d0){_0x4d7d8c=_0x4d7d8c-0x0;let _0x4625e7=_0x3a22[_0x4d7d8c];return _0x4625e7;};import{View as _0x47fb09}from'ckeditor5/src/ui';import _0x447ab7 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x36ff9c}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x47fb09{constructor(_0x15d88f,_0x16cda7,_0x5e619b){super(_0x15d88f);const _0xd0114e=_0x36ff9c(_0x16cda7,this[_0x4625('0xc')][_0x4625('0x0')])['localizedPeriodName'];this[_0x4625('0xf')]=_0x16cda7,this[_0x4625('0x3')]=this[_0x4625('0x8')](),this['_revisionActions']=_0x5e619b,this['revisionViews'][_0x4625('0x2')]('select')['to'](this),this[_0x4625('0x3')][_0x4625('0x2')](_0x4625('0x1'))['to'](this),this[_0x4625('0x7')]({'tag':_0x4625('0x5'),'attributes':{'class':['ck',_0x4625('0xe')]},'children':[{'tag':_0x4625('0x6'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0xd0114e}]},{'tag':_0x4625('0x5'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this[_0x4625('0x3')]}]});}[_0x4625('0x4')](_0x201234){const _0x370769=new _0x447ab7(this[_0x4625('0xc')],_0x201234,this[_0x4625('0x9')]);this[_0x4625('0x3')][_0x4625('0xb')](_0x370769);}['removeRevision'](_0x2e9e2d){const _0x5f17a7=this[_0x4625('0x3')][_0x4625('0xa')](_0x142aed=>_0x142aed['id']===_0x2e9e2d['id']);this[_0x4625('0x3')][_0x4625('0xd')](_0x5f17a7);}}
23
+ const _0x1717=['revisionViews','div','addRevision','delegate','select','locale','removeRevision','add','setTemplate','createCollection','_revisionActions','find','remove','ck-revision-history-sidebar__time-period__revisions'];(function(_0x857d2f,_0x171713){const _0x4dfe01=function(_0x3848dd){while(--_0x3848dd){_0x857d2f['push'](_0x857d2f['shift']());}};_0x4dfe01(++_0x171713);}(_0x1717,0x87));const _0x4dfe=function(_0x857d2f,_0x171713){_0x857d2f=_0x857d2f-0x0;let _0x4dfe01=_0x1717[_0x857d2f];return _0x4dfe01;};import{View as _0x531958}from'ckeditor5/src/ui';import _0x1a3b81 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x4d60a2}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x531958{constructor(_0x20d38f,_0x570008,_0x1cfcff){super(_0x20d38f);const _0x5be0e0=_0x4d60a2(_0x570008,this[_0x4dfe('0xa')]['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x570008,this[_0x4dfe('0x5')]=this[_0x4dfe('0x0')](),this['_revisionActions']=_0x1cfcff,this[_0x4dfe('0x5')][_0x4dfe('0x8')](_0x4dfe('0x9'))['to'](this),this[_0x4dfe('0x5')][_0x4dfe('0x8')]('setName')['to'](this),this[_0x4dfe('0xd')]({'tag':_0x4dfe('0x6'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x5be0e0}]},{'tag':'div','attributes':{'class':['ck',_0x4dfe('0x4')]},'children':this['revisionViews']}]});}[_0x4dfe('0x7')](_0x198509){const _0x401062=new _0x1a3b81(this['locale'],_0x198509,this[_0x4dfe('0x1')]);this['revisionViews'][_0x4dfe('0xc')](_0x401062);}[_0x4dfe('0xb')](_0x39efd6){const _0x2930a4=this[_0x4dfe('0x5')][_0x4dfe('0x2')](_0x3f2ad4=>_0x3f2ad4['id']===_0x39efd6['id']);this[_0x4dfe('0x5')][_0x4dfe('0x3')](_0x2930a4);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5e77=['delegate','revisionSelected','_revisionActions','removeRevision','selectRevision','ck-revision-history-sidebar__timeline','highlightRevisions','ck-revision-history-sidebar','isEnabled','createdAt','_getTimePeriodViewByStartDate','select','add','bindTemplate','_removeRevision','revisionSetName','find','div','unhighlight','render','getTime','some','_addRevision','map','deselect','createCollection','ck-disabled','uiLanguage','locale','startDate','revisionViews','ck-reset','setTemplate','remove','timePeriodViews','setName','fire','set','_revisions'];(function(_0x57b9eb,_0x5e7704){const _0xb251ae=function(_0x1262ca){while(--_0x1262ca){_0x57b9eb['push'](_0x57b9eb['shift']());}};_0xb251ae(++_0x5e7704);}(_0x5e77,0x1d4));const _0xb251=function(_0x57b9eb,_0x5e7704){_0x57b9eb=_0x57b9eb-0x0;let _0xb251ae=_0x5e77[_0x57b9eb];return _0xb251ae;};import{View as _0x2128e0}from'ckeditor5/src/ui';import _0x49b131 from'./revisionssidebartimeperiodview';import _0x111d6c from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x5136e1}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x2128e0{constructor(_0x2376db,_0x2e4078,_0x347a1c){super(_0x2376db);const _0x36a7b1=this[_0xb251('0xd')];this[_0xb251('0x22')]=this[_0xb251('0x19')](),this[_0xb251('0x22')][_0xb251('0x0')](_0xb251('0xb'))['to'](this),this['timePeriodViews']['delegate'](_0xb251('0x23'))['to'](this),this['_revisions']=_0x2e4078,this[_0xb251('0x2')]=_0x347a1c,this['on'](_0xb251('0xb'),(_0x35f160,_0xef426d)=>{this[_0xb251('0x24')](_0xb251('0x1'),_0xef426d);}),this['on'](_0xb251('0x23'),(_0x3f28b,_0x24b7ce)=>{this['fire'](_0xb251('0xf'),_0x24b7ce);}),this[_0xb251('0x25')](_0xb251('0x8'),!0x1),this[_0xb251('0x20')]({'tag':_0xb251('0x11'),'attributes':{'class':['ck',_0xb251('0x1f'),'ck-rounded-corners',_0xb251('0x7')]},'children':[new _0x111d6c(_0x2376db),{'tag':_0xb251('0x11'),'attributes':{'class':['ck',_0xb251('0x5'),_0x36a7b1['if']('isEnabled',_0xb251('0x1a'),_0x48ab0b=>!_0x48ab0b)]},'children':this[_0xb251('0x22')]}]});}[_0xb251('0x13')](){super[_0xb251('0x13')]();for(const _0x1aa207 of this['_revisions'])this[_0xb251('0x16')](_0x1aa207);this[_0xb251('0x26')]['on'](_0xb251('0xc'),(_0x604625,_0x12fefb)=>{this[_0xb251('0x16')](_0x12fefb);}),this['_revisions']['on'](_0xb251('0x21'),(_0x54fa9f,_0x618d6f)=>{this[_0xb251('0xe')](_0x618d6f);});}get[_0xb251('0x1e')](){return this['timePeriodViews'][_0xb251('0x17')](_0x6f874e=>_0x6f874e[_0xb251('0x1e')][_0xb251('0x17')](_0x1d9274=>_0x1d9274))['flat']();}[_0xb251('0x4')](_0x1c9ad2){for(const _0x5572bd of this['revisionViews'])_0x1c9ad2&&_0x1c9ad2['id']===_0x5572bd['id']?_0x5572bd[_0xb251('0xb')]():_0x5572bd[_0xb251('0x18')]();}[_0xb251('0x6')](_0x3353ae){for(const _0x533ed8 of this[_0xb251('0x1e')])_0x3353ae[_0xb251('0x15')](({id:_0x1bed68})=>_0x1bed68===_0x533ed8['id'])?_0x533ed8['highlight']():_0x533ed8[_0xb251('0x12')]();}['_addRevision'](_0x165417){const _0x515da2=_0x5136e1(_0x165417[_0xb251('0x9')],this[_0xb251('0x1c')]['uiLanguage'])['startDate'];let _0x3943a8=this[_0xb251('0x22')]['get'](0x0);_0x3943a8&&_0x3943a8[_0xb251('0x1d')][_0xb251('0x14')]()===_0x515da2[_0xb251('0x14')]()||(_0x3943a8=new _0x49b131(this[_0xb251('0x1c')],_0x515da2,this[_0xb251('0x2')]),this['timePeriodViews'][_0xb251('0xc')](_0x3943a8)),_0x3943a8['addRevision'](_0x165417);}[_0xb251('0xe')](_0x9d204e){const _0xff098=_0x5136e1(_0x9d204e[_0xb251('0x9')],this[_0xb251('0x1c')][_0xb251('0x1b')])[_0xb251('0x1d')];this[_0xb251('0xa')](_0xff098)[_0xb251('0x3')](_0x9d204e);}['_getTimePeriodViewByStartDate'](_0x1d33c5){return this[_0xb251('0x22')][_0xb251('0x10')](_0xc18d53=>_0xc18d53[_0xb251('0x1d')][_0xb251('0x14')]()===_0x1d33c5['getTime']());}}
23
+ const _0x42c4=['ck-revision-history-sidebar__timeline','addRevision','uiLanguage','unhighlight','setName','remove','createCollection','add','timePeriodViews','highlightRevisions','some','startDate','set','_revisionActions','fire','ck-rounded-corners','deselect','flat','select','_revisions','get','_getTimePeriodViewByStartDate','removeRevision','ck-reset','map','bindTemplate','revisionSelected','createdAt','highlight','_addRevision','_removeRevision','render','delegate','revisionViews','find','setTemplate','locale','getTime','isEnabled','div'];(function(_0x2705aa,_0x42c4f6){const _0x322861=function(_0xdd3c7e){while(--_0xdd3c7e){_0x2705aa['push'](_0x2705aa['shift']());}};_0x322861(++_0x42c4f6);}(_0x42c4,0x108));const _0x3228=function(_0x2705aa,_0x42c4f6){_0x2705aa=_0x2705aa-0x0;let _0x322861=_0x42c4[_0x2705aa];return _0x322861;};import{View as _0x1e4a4a}from'ckeditor5/src/ui';import _0x4ba961 from'./revisionssidebartimeperiodview';import _0xed48d3 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x3a65c7}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x1e4a4a{constructor(_0x27c0c9,_0x4e6926,_0x22af70){super(_0x27c0c9);const _0x4d922f=this[_0x3228('0x1')];this[_0x3228('0x18')]=this[_0x3228('0x16')](),this['timePeriodViews'][_0x3228('0x8')](_0x3228('0x22'))['to'](this),this['timePeriodViews'][_0x3228('0x8')](_0x3228('0x14'))['to'](this),this[_0x3228('0x23')]=_0x4e6926,this[_0x3228('0x1d')]=_0x22af70,this['on'](_0x3228('0x22'),(_0x7e5c6e,_0x4567e2)=>{this['fire'](_0x3228('0x2'),_0x4567e2);}),this['on'](_0x3228('0x14'),(_0x27fc77,_0x559828)=>{this[_0x3228('0x1e')]('revisionSetName',_0x559828);}),this[_0x3228('0x1c')](_0x3228('0xe'),!0x1),this[_0x3228('0xb')]({'tag':_0x3228('0xf'),'attributes':{'class':['ck',_0x3228('0x27'),_0x3228('0x1f'),'ck-revision-history-sidebar']},'children':[new _0xed48d3(_0x27c0c9),{'tag':'div','attributes':{'class':['ck',_0x3228('0x10'),_0x4d922f['if'](_0x3228('0xe'),'ck-disabled',_0x4cf9c3=>!_0x4cf9c3)]},'children':this[_0x3228('0x18')]}]});}[_0x3228('0x7')](){super[_0x3228('0x7')]();for(const _0xaba35d of this[_0x3228('0x23')])this[_0x3228('0x5')](_0xaba35d);this[_0x3228('0x23')]['on']('add',(_0x2d7062,_0x213010)=>{this['_addRevision'](_0x213010);}),this['_revisions']['on'](_0x3228('0x15'),(_0x2a7b40,_0x31ed25)=>{this[_0x3228('0x6')](_0x31ed25);});}get[_0x3228('0x9')](){return this['timePeriodViews'][_0x3228('0x0')](_0x18a476=>_0x18a476[_0x3228('0x9')][_0x3228('0x0')](_0x1af0b2=>_0x1af0b2))[_0x3228('0x21')]();}['selectRevision'](_0x66cad7){for(const _0x2de483 of this['revisionViews'])_0x66cad7&&_0x66cad7['id']===_0x2de483['id']?_0x2de483['select']():_0x2de483[_0x3228('0x20')]();}[_0x3228('0x19')](_0x5128cd){for(const _0xd080d1 of this[_0x3228('0x9')])_0x5128cd[_0x3228('0x1a')](({id:_0x5c3eec})=>_0x5c3eec===_0xd080d1['id'])?_0xd080d1[_0x3228('0x4')]():_0xd080d1[_0x3228('0x13')]();}[_0x3228('0x5')](_0x3f19c8){const _0x38466a=_0x3a65c7(_0x3f19c8[_0x3228('0x3')],this[_0x3228('0xc')]['uiLanguage'])[_0x3228('0x1b')];let _0x69e287=this[_0x3228('0x18')][_0x3228('0x24')](0x0);_0x69e287&&_0x69e287[_0x3228('0x1b')]['getTime']()===_0x38466a['getTime']()||(_0x69e287=new _0x4ba961(this[_0x3228('0xc')],_0x38466a,this[_0x3228('0x1d')]),this['timePeriodViews'][_0x3228('0x17')](_0x69e287)),_0x69e287[_0x3228('0x11')](_0x3f19c8);}[_0x3228('0x6')](_0x27ef6c){const _0x3bc065=_0x3a65c7(_0x27ef6c[_0x3228('0x3')],this[_0x3228('0xc')][_0x3228('0x12')])[_0x3228('0x1b')];this[_0x3228('0x25')](_0x3bc065)[_0x3228('0x26')](_0x27ef6c);}[_0x3228('0x25')](_0x3d3e81){return this['timePeriodViews'][_0x3228('0xa')](_0x508aad=>_0x508aad['startDate']['getTime']()===_0x3d3e81[_0x3228('0xd')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a72=['year','week','toJSDate','local','toRelativeCalendar','startOf','setLocale','day','month','hasSame','minus','monthLong','fromJSDate'];(function(_0xced1b9,_0x1a729d){const _0x23332b=function(_0x338c96){while(--_0x338c96){_0xced1b9['push'](_0xced1b9['shift']());}};_0x23332b(++_0x1a729d);}(_0x1a72,0x9a));const _0x2333=function(_0xced1b9,_0x1a729d){_0xced1b9=_0xced1b9-0x0;let _0x23332b=_0x1a72[_0xced1b9];return _0x23332b;};import{DateTime as _0x2eba9a}from'luxon';export function getDateTimePeriodInfo(_0x313c78,_0x4eb404){const _0x3dc683=_0x2eba9a[_0x2333('0x1')](_0x313c78)[_0x2333('0x8')](_0x4eb404),_0x125824=_0x2eba9a[_0x2333('0x5')](),_0x478b94=_0x125824[_0x2333('0xc')]({'days':0x1})['startOf'](_0x2333('0x9'));let _0x210897,_0x3d927b;return _0x3dc683[_0x2333('0xb')](_0x125824,_0x2333('0x9'))?(_0x210897=_0x3dc683[_0x2333('0x7')](_0x2333('0x9'))[_0x2333('0x4')](),_0x3d927b=_0x3dc683[_0x2333('0x6')]()):_0x3dc683[_0x2333('0xb')](_0x478b94,_0x2333('0x9'))?(_0x210897=_0x478b94[_0x2333('0x4')](),_0x3d927b=_0x3dc683['toRelativeCalendar']()):_0x3dc683[_0x2333('0xb')](_0x125824,_0x2333('0x3'))?(_0x210897=_0x3dc683[_0x2333('0x7')](_0x2333('0x3'))['toJSDate'](),_0x3d927b=_0x3dc683['weekdayLong']||''):_0x3dc683[_0x2333('0xb')](_0x125824,_0x2333('0x2'))?(_0x210897=_0x3dc683[_0x2333('0x7')](_0x2333('0xa'))[_0x2333('0x4')](),_0x3d927b=_0x3dc683[_0x2333('0x0')]||''):(_0x210897=_0x3dc683[_0x2333('0x7')](_0x2333('0x2'))['toJSDate'](),_0x3d927b=String(_0x3dc683[_0x2333('0x2')])),{'startDate':_0x210897,'localizedPeriodName':_0x3d927b};}
23
+ const _0x7fcc=['week','weekdayLong','day','hasSame','local','year','monthLong','startOf','minus','toJSDate','fromJSDate','toRelativeCalendar'];(function(_0x22f11a,_0x7fcc24){const _0x330c55=function(_0x2b5416){while(--_0x2b5416){_0x22f11a['push'](_0x22f11a['shift']());}};_0x330c55(++_0x7fcc24);}(_0x7fcc,0xf6));const _0x330c=function(_0x22f11a,_0x7fcc24){_0x22f11a=_0x22f11a-0x0;let _0x330c55=_0x7fcc[_0x22f11a];return _0x330c55;};import{DateTime as _0x5a037d}from'luxon';export function getDateTimePeriodInfo(_0x3b7523,_0x3d87e7){const _0x86ce21=_0x5a037d[_0x330c('0x4')](_0x3b7523)['setLocale'](_0x3d87e7),_0x4a047d=_0x5a037d[_0x330c('0xa')](),_0x1b7a32=_0x4a047d[_0x330c('0x2')]({'days':0x1})['startOf']('day');let _0x20ac51,_0x5073d8;return _0x86ce21[_0x330c('0x9')](_0x4a047d,_0x330c('0x8'))?(_0x20ac51=_0x86ce21[_0x330c('0x1')]('day')[_0x330c('0x3')](),_0x5073d8=_0x86ce21[_0x330c('0x5')]()):_0x86ce21['hasSame'](_0x1b7a32,_0x330c('0x8'))?(_0x20ac51=_0x1b7a32[_0x330c('0x3')](),_0x5073d8=_0x86ce21['toRelativeCalendar']()):_0x86ce21[_0x330c('0x9')](_0x4a047d,_0x330c('0x6'))?(_0x20ac51=_0x86ce21[_0x330c('0x1')](_0x330c('0x6'))[_0x330c('0x3')](),_0x5073d8=_0x86ce21[_0x330c('0x7')]||''):_0x86ce21['hasSame'](_0x4a047d,_0x330c('0xb'))?(_0x20ac51=_0x86ce21['startOf']('month')['toJSDate'](),_0x5073d8=_0x86ce21[_0x330c('0x0')]||''):(_0x20ac51=_0x86ce21['startOf']('year')[_0x330c('0x3')](),_0x5073d8=String(_0x86ce21[_0x330c('0xb')])),{'startDate':_0x20ac51,'localizedPeriodName':_0x5073d8};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5d7d=['span','Added\x20by','div','element','setTemplate','changeId','focus','type','bindTemplate','data','Suggested\x20by','ck-revision-change','ck-annotation','_model'];(function(_0x24d2d9,_0x5d7d9e){const _0x638daa=function(_0x3bd58f){while(--_0x3bd58f){_0x24d2d9['push'](_0x24d2d9['shift']());}};_0x638daa(++_0x5d7d9e);}(_0x5d7d,0xfe));const _0x638d=function(_0x24d2d9,_0x5d7d9e){_0x24d2d9=_0x24d2d9-0x0;let _0x638daa=_0x5d7d[_0x24d2d9];return _0x638daa;};import{View as _0x5d5c0f}from'ckeditor5/src/ui';import{getTranslation as _0x34afa0}from'../../utils/common-translations';export default class Z extends _0x5d5c0f{constructor(_0x27616e,_0x2983a9){super(_0x27616e),this[_0x638d('0xb')]=_0x2983a9,this[_0x638d('0x3')]=_0x2983a9['id'];const _0x54481e=this[_0x638d('0x6')],_0x33a439=_0x34afa0(_0x27616e,_0x2983a9[_0x638d('0x7')]['isSuggestion']?_0x638d('0x8'):'add'==_0x2983a9[_0x638d('0x5')]?_0x638d('0xd'):'Removed\x20by');this['set'](_0x638d('0x5'),_0x2983a9[_0x638d('0x5')]),this[_0x638d('0x2')]({'tag':_0x638d('0x0'),'attributes':{'class':[_0x638d('0xa'),_0x638d('0x9'),_0x54481e['to'](_0x638d('0x5'),_0x489225=>'ck-revision-change__'+_0x489225)],'tabindex':-0x1},'children':[{'tag':_0x638d('0xc'),'children':[{'tag':_0x638d('0xc'),'attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x33a439}]},{'text':'\x20'+_0x2983a9['author']['name']}]}]});}['focus'](){this[_0x638d('0x1')][_0x638d('0x4')]();}}
23
+ const _0x59c9=['author','div','Removed\x20by','focus','type','changeId','set','_model','Added\x20by','element','isSuggestion','name','ck-revision-change','bindTemplate','span','ck-revision-change__label'];(function(_0x590c54,_0x59c9e8){const _0x4fce7e=function(_0x256a72){while(--_0x256a72){_0x590c54['push'](_0x590c54['shift']());}};_0x4fce7e(++_0x59c9e8);}(_0x59c9,0x1da));const _0x4fce=function(_0x590c54,_0x59c9e8){_0x590c54=_0x590c54-0x0;let _0x4fce7e=_0x59c9[_0x590c54];return _0x4fce7e;};import{View as _0xa73f14}from'ckeditor5/src/ui';import{getTranslation as _0x57545f}from'../../utils/common-translations';export default class Z extends _0xa73f14{constructor(_0x140148,_0x1e8e92){super(_0x140148),this[_0x4fce('0xd')]=_0x1e8e92,this[_0x4fce('0xb')]=_0x1e8e92['id'];const _0x6383cc=this[_0x4fce('0x3')],_0x37daea=_0x57545f(_0x140148,_0x1e8e92['data'][_0x4fce('0x0')]?'Suggested\x20by':'add'==_0x1e8e92[_0x4fce('0xa')]?_0x4fce('0xe'):_0x4fce('0x8'));this[_0x4fce('0xc')](_0x4fce('0xa'),_0x1e8e92[_0x4fce('0xa')]),this['setTemplate']({'tag':_0x4fce('0x7'),'attributes':{'class':['ck-annotation',_0x4fce('0x2'),_0x6383cc['to'](_0x4fce('0xa'),_0xd398c7=>'ck-revision-change__'+_0xd398c7)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':_0x4fce('0x4'),'attributes':{'class':[_0x4fce('0x5')]},'children':[{'text':_0x37daea}]},{'text':'\x20'+_0x1e8e92[_0x4fce('0x6')][_0x4fce('0x1')]}]}]});}[_0x4fce('0x9')](){this[_0x4fce('0xf')][_0x4fce('0x9')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4eda=['X_OF_Y_CHANGES','isNavigationMode','set','isForwardNavigationEnabled','fire','isReady','forward','isBackwardNavigationEnabled','ck-hidden','Show\x20next\x20change','div','ck-revision-history-ui__changes-navigation__label','No\x20changes','execute','EDIT_X_OF_Y_REVISIONS','setTemplate','bindTemplate','ck-revision-history-ui__changes-navigation__wrapper','currentChangeNumber','Show\x20previous\x20change','_isStatusLabelVisible','Total','numberOfChanges','bind','ck-revision-history-ui','span'];(function(_0x3f3a72,_0x4edae8){const _0x14bd83=function(_0x1e3abf){while(--_0x1e3abf){_0x3f3a72['push'](_0x3f3a72['shift']());}};_0x14bd83(++_0x4edae8);}(_0x4eda,0x16d));const _0x14bd=function(_0x3f3a72,_0x4edae8){_0x3f3a72=_0x3f3a72-0x0;let _0x14bd83=_0x4eda[_0x3f3a72];return _0x14bd83;};import{View as _0x339757,ButtonView as _0xd884c7,ToolbarSeparatorView as _0x135fa0}from'ckeditor5/src/ui';import{getTranslation as _0x2d452d}from'../../utils/common-translations';import _0x46841a from'../../../theme/icons/arrow-up.svg';import _0x4a9975 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x339757{constructor(_0xedf38f){super(_0xedf38f);const _0x525d00=this[_0x14bd('0xf')],_0xe783b0=new _0xd884c7(_0xedf38f),_0x8f2bf8=new _0xd884c7(_0xedf38f);this[_0x14bd('0x1')](_0x14bd('0x0'),!0x1),this[_0x14bd('0x1')](_0x14bd('0x4'),!0x1),this[_0x14bd('0x1')](_0x14bd('0x11'),0x0),this[_0x14bd('0x1')](_0x14bd('0x15'),0x0),this['set'](_0x14bd('0x2'),!0x1),this[_0x14bd('0x1')](_0x14bd('0x6'),!0x1),this[_0x14bd('0x16')](_0x14bd('0x13'))['to'](this,_0x14bd('0x4'),this,_0x14bd('0x15'),(_0xd4a4f7,_0x25715b)=>_0xd4a4f7&&_0x25715b>0x0),this[_0x14bd('0x16')]('_statusText')['to'](this,_0x14bd('0x4'),this,'currentChangeNumber',this,_0x14bd('0x15'),this,'isNavigationMode',(_0x4d5fc9,_0xa9d951,_0x429c52,_0x53fab2)=>{if(!_0x4d5fc9)return _0x2d452d(_0xedf38f,'Loading...');if(!_0x429c52)return _0x2d452d(_0xedf38f,_0x14bd('0xb'));const _0x478158=_0x2d452d(_0xedf38f,'NUMBER_OF_CHANGES',_0x429c52);return _0x53fab2?_0x2d452d(_0xedf38f,_0x14bd('0x19'),[_0xa9d951+0x1,_0x429c52]):_0x478158;}),_0xe783b0['set']({'label':_0x2d452d(_0xedf38f,_0x14bd('0x12')),'tooltip':!0x0,'icon':_0x46841a}),_0x8f2bf8['set']({'label':_0x2d452d(_0xedf38f,_0x14bd('0x8')),'tooltip':!0x0,'icon':_0x4a9975}),_0xe783b0[_0x14bd('0x16')]('isEnabled')['to'](this,_0x14bd('0x6')),_0x8f2bf8['bind']('isEnabled')['to'](this,_0x14bd('0x2')),_0xe783b0['on']('execute',()=>this[_0x14bd('0x3')](_0x14bd('0xc'),'backward')),_0x8f2bf8['on']('execute',()=>this[_0x14bd('0x3')](_0x14bd('0xc'),_0x14bd('0x5'))),this[_0x14bd('0xe')]({'tag':_0x14bd('0x9'),'attributes':{'class':['ck',_0x14bd('0x17'),'ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':[_0x14bd('0x10')]},'children':[{'tag':_0x14bd('0x18'),'attributes':{'class':[_0x14bd('0xa'),_0x525d00['if'](_0x14bd('0x13'),_0x14bd('0x7'),_0x202dc2=>!_0x202dc2)]},'children':[{'text':_0x525d00['to'](_0x14bd('0x0'),_0x155d5b=>_0x155d5b?_0x2d452d(_0xedf38f,_0x14bd('0xd'))+':\x20':_0x2d452d(_0xedf38f,_0x14bd('0x14'))+':\x20')}]},{'text':_0x525d00['to']('_statusText')}]},new _0x135fa0(),{'tag':_0x14bd('0x9'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0xe783b0,_0x8f2bf8]}]});}}
23
+ const _0x1bf0=['isBackwardNavigationEnabled','numberOfChanges','Show\x20previous\x20change','isNavigationMode','ck-revision-history-ui__changes-navigation__label','X_OF_Y_CHANGES','bind','execute','bindTemplate','div','span','_isStatusLabelVisible','backward','No\x20changes','Show\x20next\x20change','NUMBER_OF_CHANGES','isEnabled','ck-revision-history-ui__changes-navigation__navigation','EDIT_X_OF_Y_REVISIONS','isForwardNavigationEnabled','currentChangeNumber','isReady','set','forward','_statusText','ck-revision-history-ui','fire'];(function(_0x437b52,_0x1bf08c){const _0x1e015c=function(_0x121bf3){while(--_0x121bf3){_0x437b52['push'](_0x437b52['shift']());}};_0x1e015c(++_0x1bf08c);}(_0x1bf0,0x75));const _0x1e01=function(_0x437b52,_0x1bf08c){_0x437b52=_0x437b52-0x0;let _0x1e015c=_0x1bf0[_0x437b52];return _0x1e015c;};import{View as _0xee8fa9,ButtonView as _0x45f0c8,ToolbarSeparatorView as _0xc26994}from'ckeditor5/src/ui';import{getTranslation as _0x97d643}from'../../utils/common-translations';import _0x140631 from'../../../theme/icons/arrow-up.svg';import _0x258fd0 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0xee8fa9{constructor(_0x38e231){super(_0x38e231);const _0x4703bb=this[_0x1e01('0x1a')],_0xa0354=new _0x45f0c8(_0x38e231),_0x5123c8=new _0x45f0c8(_0x38e231);this[_0x1e01('0xd')](_0x1e01('0x15'),!0x1),this[_0x1e01('0xd')](_0x1e01('0xc'),!0x1),this[_0x1e01('0xd')](_0x1e01('0xb'),0x0),this[_0x1e01('0xd')](_0x1e01('0x13'),0x0),this[_0x1e01('0xd')](_0x1e01('0xa'),!0x1),this[_0x1e01('0xd')]('isBackwardNavigationEnabled',!0x1),this[_0x1e01('0x18')]('_isStatusLabelVisible')['to'](this,_0x1e01('0xc'),this,'numberOfChanges',(_0x5aef61,_0x2ee651)=>_0x5aef61&&_0x2ee651>0x0),this[_0x1e01('0x18')](_0x1e01('0xf'))['to'](this,'isReady',this,_0x1e01('0xb'),this,'numberOfChanges',this,_0x1e01('0x15'),(_0x355b7e,_0x286aa2,_0x86ece6,_0x5c8581)=>{if(!_0x355b7e)return _0x97d643(_0x38e231,'Loading...');if(!_0x86ece6)return _0x97d643(_0x38e231,_0x1e01('0x4'));const _0x57f07b=_0x97d643(_0x38e231,_0x1e01('0x6'),_0x86ece6);return _0x5c8581?_0x97d643(_0x38e231,_0x1e01('0x17'),[_0x286aa2+0x1,_0x86ece6]):_0x57f07b;}),_0xa0354['set']({'label':_0x97d643(_0x38e231,_0x1e01('0x14')),'tooltip':!0x0,'icon':_0x140631}),_0x5123c8['set']({'label':_0x97d643(_0x38e231,_0x1e01('0x5')),'tooltip':!0x0,'icon':_0x258fd0}),_0xa0354['bind']('isEnabled')['to'](this,_0x1e01('0x12')),_0x5123c8['bind'](_0x1e01('0x7'))['to'](this,_0x1e01('0xa')),_0xa0354['on']('execute',()=>this[_0x1e01('0x11')](_0x1e01('0x19'),_0x1e01('0x3'))),_0x5123c8['on'](_0x1e01('0x19'),()=>this[_0x1e01('0x11')]('execute',_0x1e01('0xe'))),this['setTemplate']({'tag':_0x1e01('0x0'),'attributes':{'class':['ck',_0x1e01('0x10'),'ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':_0x1e01('0x1'),'attributes':{'class':[_0x1e01('0x16'),_0x4703bb['if'](_0x1e01('0x2'),'ck-hidden',_0x316e46=>!_0x316e46)]},'children':[{'text':_0x4703bb['to'](_0x1e01('0x15'),_0x5637b6=>_0x5637b6?_0x97d643(_0x38e231,_0x1e01('0x9'))+':\x20':_0x97d643(_0x38e231,'Total')+':\x20')}]},{'text':_0x4703bb['to'](_0x1e01('0xf'))}]},new _0xc26994(),{'tag':_0x1e01('0x0'),'attributes':{'class':[_0x1e01('0x8')]},'children':[_0xa0354,_0x5123c8]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4536=['document','removeClass','ck-editor__editable__loading-overlay','show','change','roots','hide','editing','pluginName','editor','addClass','RevisionViewerLoadingOverlay','view'];(function(_0x3438d9,_0x45364d){const _0x4b12ae=function(_0x1440f1){while(--_0x1440f1){_0x3438d9['push'](_0x3438d9['shift']());}};_0x4b12ae(++_0x45364d);}(_0x4536,0x13f));const _0x4b12=function(_0x3438d9,_0x45364d){_0x3438d9=_0x3438d9-0x0;let _0x4b12ae=_0x4536[_0x3438d9];return _0x4b12ae;};import{Plugin as _0xd5a29f}from'ckeditor5/src/core';const oe=_0x4b12('0x8');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0xd5a29f{static get[_0x4b12('0x1')](){return _0x4b12('0x4');}[_0x4b12('0x9')](){const _0x2b6aff=this[_0x4b12('0x2')][_0x4b12('0x0')][_0x4b12('0x5')];_0x2b6aff[_0x4b12('0xa')](_0x4b9a4d=>{for(const _0x4c7910 of _0x2b6aff[_0x4b12('0x6')][_0x4b12('0xb')])_0x4b9a4d[_0x4b12('0x3')](oe,_0x4c7910);});}[_0x4b12('0xc')](){const _0x75a7e1=this['editor'][_0x4b12('0x0')]['view'];_0x75a7e1[_0x4b12('0xa')](_0x53ead5=>{for(const _0x49470a of _0x75a7e1['document']['roots'])_0x53ead5[_0x4b12('0x7')](oe,_0x49470a);});}}
23
+ const _0x2980=['change','pluginName','roots','show','editing','RevisionViewerLoadingOverlay','hide','removeClass','editor','ck-editor__editable__loading-overlay','document','view'];(function(_0x52cbd1,_0x2980db){const _0x88090a=function(_0x2b44cc){while(--_0x2b44cc){_0x52cbd1['push'](_0x52cbd1['shift']());}};_0x88090a(++_0x2980db);}(_0x2980,0x1c0));const _0x8809=function(_0x52cbd1,_0x2980db){_0x52cbd1=_0x52cbd1-0x0;let _0x88090a=_0x2980[_0x52cbd1];return _0x88090a;};import{Plugin as _0x4c66c2}from'ckeditor5/src/core';const oe=_0x8809('0x5');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x4c66c2{static get[_0x8809('0x9')](){return _0x8809('0x1');}[_0x8809('0xb')](){const _0x59b5f1=this[_0x8809('0x4')][_0x8809('0x0')][_0x8809('0x7')];_0x59b5f1['change'](_0x517362=>{for(const _0x226afd of _0x59b5f1[_0x8809('0x6')][_0x8809('0xa')])_0x517362['addClass'](oe,_0x226afd);});}[_0x8809('0x2')](){const _0x1b9739=this['editor'][_0x8809('0x0')][_0x8809('0x7')];_0x1b9739[_0x8809('0x8')](_0xa7ce7d=>{for(const _0xa6fb3f of _0x1b9739['document'][_0x8809('0xa')])_0xa7ce7d[_0x8809('0x3')](oe,_0xa6fb3f);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1d75=['plugins','add','ck-revision-history-ui__back-to-editing','componentFactory','showPreviousChange','get','commands','Restore\x20this\x20revision','currentChangeNumber','RevisionViewerUI','isEnabled','requires','isBackwardNavigationEnabled','forward','show','Back\x20to\x20editing','isReady','listenTo','editor','numberOfChanges','isForwardNavigationEnabled','revisionHistory','changesNavigation','showNextChange','set','closeRevisionViewerCallback','restoreRevision','init','change:isReady','config','execute','bind'];(function(_0x294573,_0x1d7523){const _0x47d6c3=function(_0x533bf8){while(--_0x533bf8){_0x294573['push'](_0x294573['shift']());}};_0x47d6c3(++_0x1d7523);}(_0x1d75,0x111));const _0x47d6=function(_0x294573,_0x1d7523){_0x294573=_0x294573-0x0;let _0x47d6c3=_0x1d75[_0x294573];return _0x47d6c3;};import{Plugin as _0x3cc0e4}from'ckeditor5/src/core';import{ButtonView as _0x818c19}from'ckeditor5/src/ui';import _0x44e4ab from'./changesnavigationview';import _0xbe2eb7 from'./../../revisionviewer';import _0x3aa790 from'./revisionviewerloadingoverlay';import{getTranslation as _0x58f7e7}from'../../utils/common-translations';import _0xca4703 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x3cc0e4{static get['pluginName'](){return _0x47d6('0x18');}static get[_0x47d6('0x1a')](){return[_0xbe2eb7,_0x3aa790];}[_0x47d6('0xa')](){const _0x497835=this[_0x47d6('0x1')],_0x217d6f=_0x497835[_0x47d6('0xf')][_0x47d6('0x14')](_0xbe2eb7),_0x3ae2c1=_0x497835[_0x47d6('0xf')][_0x47d6('0x14')](_0x3aa790);_0x497835['ui'][_0x47d6('0x12')][_0x47d6('0x10')]('exitToEditing',_0x2fcbd9=>{const _0x2ceae6=new _0x818c19(_0x2fcbd9);return _0x2ceae6[_0x47d6('0x7')]({'label':_0x58f7e7(_0x2fcbd9,_0x47d6('0x1e')),'icon':_0xca4703,'withText':!0x0,'tooltip':!0x0,'class':_0x47d6('0x11')}),this[_0x47d6('0x0')](_0x2ceae6,_0x47d6('0xd'),()=>{_0x497835[_0x47d6('0xc')][_0x47d6('0x14')](_0x47d6('0x4'))[_0x47d6('0x8')]();}),_0x2ceae6;}),_0x497835['ui']['componentFactory'][_0x47d6('0x10')](_0x47d6('0x9'),_0xc75a10=>{const _0x5510ab=new _0x818c19(_0xc75a10);return _0x5510ab['set']({'label':_0x58f7e7(_0xc75a10,_0x47d6('0x16')),'withText':!0x0,'tooltip':!0x0}),_0x5510ab[_0x47d6('0xe')](_0x47d6('0x19'))['to'](_0x497835[_0x47d6('0x15')][_0x47d6('0x14')]('restoreRevision')),this['listenTo'](_0x5510ab,_0x47d6('0xd'),()=>_0x497835[_0x47d6('0xd')]('restoreRevision')),_0x5510ab;}),_0x497835['ui'][_0x47d6('0x12')][_0x47d6('0x10')](_0x47d6('0x5'),_0x4ea857=>{const _0x22a2b4=new _0x44e4ab(_0x4ea857),_0x455719=_0x497835[_0x47d6('0x15')][_0x47d6('0x14')](_0x47d6('0x13')),_0xd5a0ba=_0x497835[_0x47d6('0x15')][_0x47d6('0x14')]('showNextChange');return _0x22a2b4[_0x47d6('0xe')](_0x47d6('0x1b'))['to'](_0x455719,'isEnabled'),_0x22a2b4[_0x47d6('0xe')](_0x47d6('0x3'))['to'](_0xd5a0ba,_0x47d6('0x19')),_0x22a2b4[_0x47d6('0xe')](_0x47d6('0x1f'),_0x47d6('0x17'),_0x47d6('0x2'),'isNavigationMode')['to'](_0x217d6f),this['listenTo'](_0x22a2b4,_0x47d6('0xd'),(_0x5e18a4,_0x15803d)=>{_0x497835[_0x47d6('0xd')](_0x47d6('0x1c')===_0x15803d?_0x47d6('0x6'):_0x47d6('0x13'));}),_0x22a2b4;}),_0x3ae2c1['show'](),_0x217d6f['on'](_0x47d6('0xb'),(_0x384206,_0x50798c,_0x5e7ecf)=>{_0x5e7ecf?_0x3ae2c1['hide']():_0x3ae2c1[_0x47d6('0x1d')]();});}}
23
+ const _0x3a6d=['commands','exitToEditing','showPreviousChange','ck-revision-history-ui__back-to-editing','forward','Restore\x20this\x20revision','add','requires','closeRevisionViewerCallback','change:isReady','restoreRevision','execute','RevisionViewerUI','isReady','isForwardNavigationEnabled','changesNavigation','Back\x20to\x20editing','currentChangeNumber','config','plugins','listenTo','revisionHistory','showNextChange','pluginName','hide','get','numberOfChanges','componentFactory','isBackwardNavigationEnabled','isEnabled','show','editor','bind','set','isNavigationMode'];(function(_0x290b05,_0x3a6d8e){const _0x311f81=function(_0x287acf){while(--_0x287acf){_0x290b05['push'](_0x290b05['shift']());}};_0x311f81(++_0x3a6d8e);}(_0x3a6d,0x110));const _0x311f=function(_0x290b05,_0x3a6d8e){_0x290b05=_0x290b05-0x0;let _0x311f81=_0x3a6d[_0x290b05];return _0x311f81;};import{Plugin as _0x2d8fab}from'ckeditor5/src/core';import{ButtonView as _0x1b1e83}from'ckeditor5/src/ui';import _0x59a585 from'./changesnavigationview';import _0x3d103f from'./../../revisionviewer';import _0x70fbcc from'./revisionviewerloadingoverlay';import{getTranslation as _0xc314f1}from'../../utils/common-translations';import _0x16de3a from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x2d8fab{static get[_0x311f('0x1f')](){return _0x311f('0x14');}static get[_0x311f('0xf')](){return[_0x3d103f,_0x70fbcc];}['init'](){const _0x1c112f=this[_0x311f('0x4')],_0x1d5ed3=_0x1c112f[_0x311f('0x1b')][_0x311f('0x21')](_0x3d103f),_0x32c7d8=_0x1c112f['plugins'][_0x311f('0x21')](_0x70fbcc);_0x1c112f['ui'][_0x311f('0x0')][_0x311f('0xe')](_0x311f('0x9'),_0x969529=>{const _0x30d88a=new _0x1b1e83(_0x969529);return _0x30d88a[_0x311f('0x6')]({'label':_0xc314f1(_0x969529,_0x311f('0x18')),'icon':_0x16de3a,'withText':!0x0,'tooltip':!0x0,'class':_0x311f('0xb')}),this['listenTo'](_0x30d88a,_0x311f('0x13'),()=>{_0x1c112f[_0x311f('0x1a')][_0x311f('0x21')](_0x311f('0x1d'))[_0x311f('0x10')]();}),_0x30d88a;}),_0x1c112f['ui'][_0x311f('0x0')][_0x311f('0xe')]('restoreRevision',_0x4a8a7c=>{const _0x3cd6c4=new _0x1b1e83(_0x4a8a7c);return _0x3cd6c4[_0x311f('0x6')]({'label':_0xc314f1(_0x4a8a7c,_0x311f('0xd')),'withText':!0x0,'tooltip':!0x0}),_0x3cd6c4[_0x311f('0x5')](_0x311f('0x2'))['to'](_0x1c112f['commands'][_0x311f('0x21')](_0x311f('0x12'))),this[_0x311f('0x1c')](_0x3cd6c4,_0x311f('0x13'),()=>_0x1c112f[_0x311f('0x13')](_0x311f('0x12'))),_0x3cd6c4;}),_0x1c112f['ui'][_0x311f('0x0')][_0x311f('0xe')](_0x311f('0x17'),_0x1a0e8b=>{const _0x2b6abe=new _0x59a585(_0x1a0e8b),_0x399ebc=_0x1c112f[_0x311f('0x8')]['get'](_0x311f('0xa')),_0xea4f3f=_0x1c112f[_0x311f('0x8')]['get'](_0x311f('0x1e'));return _0x2b6abe[_0x311f('0x5')](_0x311f('0x1'))['to'](_0x399ebc,'isEnabled'),_0x2b6abe[_0x311f('0x5')](_0x311f('0x16'))['to'](_0xea4f3f,_0x311f('0x2')),_0x2b6abe[_0x311f('0x5')](_0x311f('0x15'),_0x311f('0x19'),_0x311f('0x22'),_0x311f('0x7'))['to'](_0x1d5ed3),this['listenTo'](_0x2b6abe,_0x311f('0x13'),(_0x31464a,_0x3be175)=>{_0x1c112f['execute'](_0x311f('0xc')===_0x3be175?_0x311f('0x1e'):_0x311f('0xa'));}),_0x2b6abe;}),_0x32c7d8[_0x311f('0x3')](),_0x1d5ed3['on'](_0x311f('0x11'),(_0x186f24,_0x269d64,_0x387185)=>{_0x387185?_0x32c7d8[_0x311f('0x20')]():_0x32c7d8[_0x311f('0x3')]();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x43bbda,_0x40a2d0,_0x47ecf1){const t=_0x43bbda['t'];switch(_0x40a2d0){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'},_0x47ecf1);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x47ecf1);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 _0x40a2d0;}}
23
+ export function getTranslation(_0x167f0b,_0x4a3bc8,_0x4ff4b8){const t=_0x167f0b['t'];switch(_0x4a3bc8){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'},_0x4ff4b8);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4ff4b8);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 _0x4a3bc8;}}