@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230905.0 → 0.0.0-nightly-20230907.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 _0x53e7=['view','editor','isOpen','pluginName','isReadOnly','reset','cancel','bind','buttonView','Save\x20current\x20revision','remove','plugins','isEnabled','get','add','saveRevision','revisionName','focus','children','items','showRevisionViewerCallback','componentFactory','submit','revisionHistory','execute','length','render','addMany','saveButtonView','Open\x20revision\x20history','RevisionHistoryUI','isReady','set','editing'];(function(_0x2e4bed,_0x53e7fd){const _0x5285fb=function(_0x130001){while(--_0x130001){_0x2e4bed['push'](_0x2e4bed['shift']());}};_0x5285fb(++_0x53e7fd);}(_0x53e7,0x126));const _0x5285=function(_0x2e4bed,_0x53e7fd){_0x2e4bed=_0x2e4bed-0x0;let _0x5285fb=_0x53e7[_0x2e4bed];return _0x5285fb;};import{Plugin as _0x397f69}from'ckeditor5/src/core';import{ListView as _0x1e6041,ListItemView as _0x4ca447,ButtonView as _0x54ebdf,createDropdown as _0x53def1}from'ckeditor5/src/ui';import _0x4b8c9f from'../../revisiontracker';import _0x4d1830 from'./revisionhistorysaverevisionformview';import _0x548b54 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x1072f7}from'../../utils/common-translations';export default class u extends _0x397f69{static get[_0x5285('0xf')](){return _0x5285('0x8');}static get['requires'](){return[_0x4b8c9f];}['init'](){const _0x64c4b2=this[_0x5285('0xd')],_0x2d78fd=_0x64c4b2[_0x5285('0x17')][_0x5285('0x19')]('RevisionTracker');_0x64c4b2['ui'][_0x5285('0x21')][_0x5285('0x1a')](_0x5285('0x1'),_0x4efbc9=>{const _0x1ae1b4=_0x53def1(_0x4efbc9),_0x236136=_0x1ae1b4['panelView'][_0x5285('0x1e')],_0x985966=new _0x1e6041(_0x4efbc9),_0x115c7f=new _0x4ca447(_0x4efbc9),_0x43615d=new _0x54ebdf(_0x4efbc9),_0x3b03fe=new _0x4ca447(_0x4efbc9),_0xcc72ba=new _0x54ebdf(_0x4efbc9),_0x5ac6b7=new _0x4d1830(_0x4efbc9);function _0x5ad7ec(){_0x236136[_0x5285('0x3')]&&_0x236136[_0x5285('0x16')](0x0),_0x236136[_0x5285('0x1a')](_0x985966);}function _0x37af0b(){_0x1ae1b4[_0x5285('0xe')]=!0x1,_0x64c4b2[_0x5285('0xb')][_0x5285('0xc')][_0x5285('0x1d')]();}return _0x1ae1b4[_0x5285('0x13')](_0x5285('0x18'))['to'](_0x2d78fd,_0x5285('0x9'),_0x2d78fd,'isEnabled',_0x64c4b2,_0x5285('0x10'),(_0x1e4f41,_0x3ea48a,_0x24a44a)=>_0x1e4f41&&_0x3ea48a&&!_0x24a44a),_0x1ae1b4[_0x5285('0x14')][_0x5285('0xa')]({'icon':_0x548b54,'label':_0x1072f7(_0x4efbc9,'Revision\x20history'),'tooltip':!0x0}),_0x43615d[_0x5285('0xa')]({'label':_0x1072f7(_0x4efbc9,_0x5285('0x15')),'withText':!0x0}),_0x43615d[_0x5285('0x13')](_0x5285('0x18'))['to'](_0x2d78fd,_0x5285('0x9'),_0x2d78fd,_0x5285('0x18'),_0x64c4b2,_0x5285('0x10'),(_0x255fc6,_0x12a212,_0x184a4b)=>_0x255fc6&&_0x12a212&&!_0x184a4b),_0x43615d['on']('execute',()=>function(){_0x236136[_0x5285('0x3')]&&_0x236136[_0x5285('0x16')](0x0),(_0x5ac6b7[_0x5285('0x11')](),_0x236136[_0x5285('0x1a')](_0x5ac6b7),_0x5ac6b7[_0x5285('0x1d')]());}()),_0xcc72ba['set']({'label':_0x1072f7(_0x4efbc9,_0x5285('0x7')),'withText':!0x0}),_0xcc72ba[_0x5285('0x13')]('isEnabled')['to'](_0x2d78fd,_0x5285('0x9'),_0x64c4b2,_0x5285('0x10'),(_0x259d27,_0x84c7c1)=>_0x259d27&&!_0x84c7c1),_0xcc72ba['on'](_0x5285('0x2'),()=>{_0x64c4b2['config'][_0x5285('0x19')](_0x5285('0x1'))[_0x5285('0x20')](),_0x37af0b();}),_0x115c7f[_0x5285('0x1e')][_0x5285('0x1a')](_0x43615d),_0x3b03fe[_0x5285('0x1e')]['add'](_0xcc72ba),_0x985966[_0x5285('0x1f')][_0x5285('0x5')]([_0x115c7f,_0x3b03fe]),_0x1ae1b4['on']('change:isOpen',()=>_0x5ad7ec()),_0x5ac6b7[_0x5285('0x6')][_0x5285('0x13')](_0x5285('0x18'))['to'](_0x2d78fd,'isReady',_0x2d78fd,_0x5285('0x18'),_0x64c4b2,_0x5285('0x10'),(_0x3c8d52,_0x98dd6d,_0x5a8954)=>_0x3c8d52&&_0x98dd6d&&!_0x5a8954),_0x5ac6b7['on'](_0x5285('0x0'),()=>(_0x64c4b2[_0x5285('0x17')][_0x5285('0x19')](_0x4b8c9f)[_0x5285('0x1b')]({'name':_0x5ac6b7[_0x5285('0x1c')]}),void _0x37af0b())),_0x5ac6b7['on'](_0x5285('0x12'),()=>_0x5ad7ec()),_0x5ac6b7[_0x5285('0x4')](),_0x5ad7ec(),_0x1ae1b4;});}}
23
+ const _0x270a=['componentFactory','cancel','change:isOpen','Save\x20current\x20revision','requires','plugins','revisionHistory','Revision\x20history','view','focus','bind','remove','saveButtonView','render','Open\x20revision\x20history','add','isReady','isEnabled','pluginName','saveRevision','editor','addMany','set','get','RevisionHistoryUI','execute','isReadOnly','children','panelView','length','RevisionTracker','init'];(function(_0x1c016c,_0x270a5c){const _0xfb877c=function(_0x1de267){while(--_0x1de267){_0x1c016c['push'](_0x1c016c['shift']());}};_0xfb877c(++_0x270a5c);}(_0x270a,0xd9));const _0xfb87=function(_0x1c016c,_0x270a5c){_0x1c016c=_0x1c016c-0x0;let _0xfb877c=_0x270a[_0x1c016c];return _0xfb877c;};import{Plugin as _0x1d88c0}from'ckeditor5/src/core';import{ListView as _0xdc6f0a,ListItemView as _0x1fb41b,ButtonView as _0x5387b4,createDropdown as _0xe2c96c}from'ckeditor5/src/ui';import _0x355c28 from'../../revisiontracker';import _0x1e32b8 from'./revisionhistorysaverevisionformview';import _0x36cfaf from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x219674}from'../../utils/common-translations';export default class u extends _0x1d88c0{static get[_0xfb87('0x19')](){return _0xfb87('0x1f');}static get[_0xfb87('0xb')](){return[_0x355c28];}[_0xfb87('0x6')](){const _0x469c3c=this[_0xfb87('0x1b')],_0x5cd8c2=_0x469c3c[_0xfb87('0xc')][_0xfb87('0x1e')](_0xfb87('0x5'));_0x469c3c['ui'][_0xfb87('0x7')][_0xfb87('0x16')]('revisionHistory',_0x57d3d3=>{const _0x8629ab=_0xe2c96c(_0x57d3d3),_0x151546=_0x8629ab[_0xfb87('0x3')][_0xfb87('0x2')],_0x2f9c15=new _0xdc6f0a(_0x57d3d3),_0xb9c798=new _0x1fb41b(_0x57d3d3),_0x48df55=new _0x5387b4(_0x57d3d3),_0xd3a42b=new _0x1fb41b(_0x57d3d3),_0x61e600=new _0x5387b4(_0x57d3d3),_0x2ff7a0=new _0x1e32b8(_0x57d3d3);function _0x1031f0(){_0x151546[_0xfb87('0x4')]&&_0x151546[_0xfb87('0x12')](0x0),_0x151546[_0xfb87('0x16')](_0x2f9c15);}function _0x2dffb3(){_0x8629ab['isOpen']=!0x1,_0x469c3c['editing'][_0xfb87('0xf')][_0xfb87('0x10')]();}return _0x8629ab[_0xfb87('0x11')](_0xfb87('0x18'))['to'](_0x5cd8c2,'isReady',_0x5cd8c2,_0xfb87('0x18'),_0x469c3c,_0xfb87('0x1'),(_0x1f1ef8,_0x541a5b,_0x233e36)=>_0x1f1ef8&&_0x541a5b&&!_0x233e36),_0x8629ab['buttonView'][_0xfb87('0x1d')]({'icon':_0x36cfaf,'label':_0x219674(_0x57d3d3,_0xfb87('0xe')),'tooltip':!0x0}),_0x48df55[_0xfb87('0x1d')]({'label':_0x219674(_0x57d3d3,_0xfb87('0xa')),'withText':!0x0}),_0x48df55[_0xfb87('0x11')](_0xfb87('0x18'))['to'](_0x5cd8c2,_0xfb87('0x17'),_0x5cd8c2,_0xfb87('0x18'),_0x469c3c,'isReadOnly',(_0x2a7afd,_0x1f11f0,_0x31389c)=>_0x2a7afd&&_0x1f11f0&&!_0x31389c),_0x48df55['on'](_0xfb87('0x0'),()=>function(){_0x151546[_0xfb87('0x4')]&&_0x151546[_0xfb87('0x12')](0x0),(_0x2ff7a0['reset'](),_0x151546[_0xfb87('0x16')](_0x2ff7a0),_0x2ff7a0['focus']());}()),_0x61e600['set']({'label':_0x219674(_0x57d3d3,_0xfb87('0x15')),'withText':!0x0}),_0x61e600['bind'](_0xfb87('0x18'))['to'](_0x5cd8c2,_0xfb87('0x17'),_0x469c3c,'isReadOnly',(_0x516a52,_0xe22f57)=>_0x516a52&&!_0xe22f57),_0x61e600['on'](_0xfb87('0x0'),()=>{_0x469c3c['config'][_0xfb87('0x1e')](_0xfb87('0xd'))['showRevisionViewerCallback'](),_0x2dffb3();}),_0xb9c798[_0xfb87('0x2')]['add'](_0x48df55),_0xd3a42b[_0xfb87('0x2')][_0xfb87('0x16')](_0x61e600),_0x2f9c15['items'][_0xfb87('0x1c')]([_0xb9c798,_0xd3a42b]),_0x8629ab['on'](_0xfb87('0x9'),()=>_0x1031f0()),_0x2ff7a0[_0xfb87('0x13')][_0xfb87('0x11')](_0xfb87('0x18'))['to'](_0x5cd8c2,_0xfb87('0x17'),_0x5cd8c2,'isEnabled',_0x469c3c,_0xfb87('0x1'),(_0x234e18,_0x2c8c72,_0x433814)=>_0x234e18&&_0x2c8c72&&!_0x433814),_0x2ff7a0['on']('submit',()=>(_0x469c3c['plugins']['get'](_0x355c28)[_0xfb87('0x1a')]({'name':_0x2ff7a0['revisionName']}),void _0x2dffb3())),_0x2ff7a0['on'](_0xfb87('0x8'),()=>_0x1031f0()),_0x2ff7a0[_0xfb87('0x14')](),_0x1031f0(),_0x8629ab;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x16c7=['data','select','restoreRevisionCallback','ready','_handleRevisionSelected','Restore\x20this\x20revision','repository','remove','getLaterVisibleRevision','string','editor','_handleEditorDataReady','add','revisionHistory.revisionActions','revisionHistory.viewerSidebarContainer','revisionSelected','requires','highlightRevisions','element','render','nameRevision','fieldView','Name\x20this\x20revision','listenTo','isEnabled','init','getRevision','compare','appendChild','selectRevision','getEarlierVisibleRevision','_revisionViewer','defaultRevisionActions','config','_createRevisionActions','getIndex','availableRevisionActions','get','_handleDiffChange','locale','setName','_handleRevisionSetName','change:diff','destroy','compareAgainstSelected','length','getRevisionsInDiff','_sidebarView','isSelected','RevisionsSidebar','restoreRevision','_revisionsRepository','pluginName','isVisible','map','focus','bind','diff'];(function(_0x2cd354,_0x16c7f4){const _0x2f7a44=function(_0x4c1d0e){while(--_0x4c1d0e){_0x2cd354['push'](_0x2cd354['shift']());}};_0x2f7a44(++_0x16c7f4);}(_0x16c7,0x6f));const _0x2f7a=function(_0x2cd354,_0x16c7f4){_0x2cd354=_0x2cd354-0x0;let _0x2f7a44=_0x16c7[_0x2cd354];return _0x2f7a44;};import{Plugin as _0x2e205f}from'ckeditor5/src/core';import _0x53b028 from'./revisionssidebarview';import _0x52e209 from'../../revisionviewer';export default class w extends _0x2e205f{static get[_0x2f7a('0x39')](){return _0x2f7a('0x36');}static get[_0x2f7a('0x15')](){return[_0x52e209];}constructor(_0xd0142a){super(_0xd0142a),this[_0x2f7a('0x24')]=_0xd0142a['plugins']['get'](_0x52e209),this[_0x2f7a('0x38')]=this[_0x2f7a('0x24')][_0x2f7a('0xb')],this[_0x2f7a('0x34')]=null;}[_0x2f7a('0x1e')](){const _0x201f59=this[_0x2f7a('0x38')]['_revisions'],_0x275586=this[_0x2f7a('0x27')](),_0x5ea8d6=this[_0x2f7a('0xf')][_0x2f7a('0x26')][_0x2f7a('0x2a')](_0x2f7a('0x13'));this[_0x2f7a('0x34')]=new _0x53b028(this['editor'][_0x2f7a('0x2c')],_0x201f59,_0x275586),this['_sidebarView']['on'](_0x2f7a('0x14'),this[_0x2f7a('0x9')][_0x2f7a('0x3')](this)),this[_0x2f7a('0x34')]['on']('revisionSetName',this['_handleRevisionSetName']['bind'](this)),this[_0x2f7a('0x34')][_0x2f7a('0x3')]('isEnabled')['to'](this['_revisionViewer']),this['_sidebarView']['timePeriodViews']['on'](_0x2f7a('0x11'),(_0x5b1637,_0x156588)=>{_0x156588['revisionViews']['on'](_0x2f7a('0x11'),(_0x2577d8,_0x1f247a)=>{_0x1f247a[_0x2f7a('0x3')](_0x2f7a('0x1d'),'isReady')['to'](this['_revisionViewer']);});}),this['_sidebarView'][_0x2f7a('0x18')](),this[_0x2f7a('0x1c')](this[_0x2f7a('0xf')][_0x2f7a('0x5')],_0x2f7a('0x8'),this[_0x2f7a('0x10')][_0x2f7a('0x3')](this)),this[_0x2f7a('0x1c')](this['_revisionViewer'],_0x2f7a('0x2f'),this['_handleDiffChange'][_0x2f7a('0x3')](this)),_0x5ea8d6[_0x2f7a('0x21')](this[_0x2f7a('0x34')][_0x2f7a('0x17')]);}[_0x2f7a('0x30')](){this[_0x2f7a('0x34')][_0x2f7a('0x17')][_0x2f7a('0xc')](),this['_sidebarView']['destroy']();}[_0x2f7a('0x10')](){const _0x4fdd9a=this[_0x2f7a('0x38')]['getRevision'](0x0);if(_0x4fdd9a){const _0x3c169b=this['_revisionsRepository'][_0x2f7a('0x23')](_0x4fdd9a['id']);this[_0x2f7a('0x24')][_0x2f7a('0x20')](_0x4fdd9a,_0x3c169b);}}[_0x2f7a('0x9')](_0x114b3d,_0x5a5b57){const _0x43d5d5=this['_revisionsRepository'][_0x2f7a('0x1f')](_0x5a5b57['id']),_0x57bf9a=this['_revisionsRepository'][_0x2f7a('0x23')](_0x43d5d5['id']);this[_0x2f7a('0x24')][_0x2f7a('0x20')](_0x43d5d5,_0x57bf9a);}[_0x2f7a('0x2e')](_0xaebf5,_0x89ce77){this[_0x2f7a('0x38')]['getRevision'](_0x89ce77['id'])[_0x2f7a('0x2d')](_0x89ce77['name']);}[_0x2f7a('0x2b')](_0x5b8b7e,_0x23ffc8,_0x2d6a23){const _0x54a1f3=this[_0x2f7a('0x38')]['getRevisionsInDiff'](_0x2d6a23);_0x54a1f3['length']>0x2?(this[_0x2f7a('0x34')]['highlightRevisions'](_0x54a1f3),this['_sidebarView'][_0x2f7a('0x22')](null)):(this[_0x2f7a('0x34')][_0x2f7a('0x16')]([]),this[_0x2f7a('0x34')][_0x2f7a('0x22')](_0x54a1f3[0x0]));}[_0x2f7a('0x27')](){const _0x3bc237=this[_0x2f7a('0xf')],_0xc26db3=w[_0x2f7a('0x29')],_0x43cb88=_0x3bc237[_0x2f7a('0x26')]['get'](_0x2f7a('0x12'))||w[_0x2f7a('0x25')];if(_0x43cb88[_0x2f7a('0x32')])return _0x43cb88[_0x2f7a('0x1')](_0x59f0bd=>{const _0x3df6d6=_0x2f7a('0xe')==typeof _0x59f0bd?Object['assign']({},_0xc26db3[_0x59f0bd]):_0x59f0bd;return _0x3df6d6['action']=_0x3df6d6['action'][_0x2f7a('0x3')](this,_0x3bc237),_0x3df6d6[_0x2f7a('0x0')]&&(_0x3df6d6[_0x2f7a('0x0')]=_0x3df6d6[_0x2f7a('0x0')][_0x2f7a('0x3')](this,_0x3bc237)),_0x3df6d6;});}}w[_0x2f7a('0x29')]={'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x23cdac},_0x4bc72c)=>{const _0x236d53=_0x23cdac[_0x2f7a('0x2a')](_0x52e209),_0x1435f2=_0x236d53[_0x2f7a('0xb')];let _0x2f44d1=_0x236d53[_0x2f7a('0x4')]['newRevisionId'],_0x5ef640=_0x4bc72c['id'];_0x1435f2[_0x2f7a('0x28')](_0x2f44d1)>_0x1435f2[_0x2f7a('0x28')](_0x5ef640)&&([_0x2f44d1,_0x5ef640]=[_0x5ef640,_0x2f44d1]),_0x236d53['compare'](_0x2f44d1,_0x5ef640);},'isVisible':({plugins:_0x1c38d2},_0x2431b9)=>{const _0x30b309=_0x1c38d2['get'](_0x52e209);return!(_0x30b309[_0x2f7a('0xb')][_0x2f7a('0x33')](_0x30b309[_0x2f7a('0x4')])[_0x2f7a('0x32')]>0x2)&&!_0x2431b9[_0x2f7a('0x35')];}},'restoreRevision':{'name':_0x2f7a('0xa'),'action':(_0x35001c,{id:_0x27e53f})=>{_0x35001c['config']['get']('revisionHistory')[_0x2f7a('0x7')](_0x27e53f);},'isVisible':({plugins:_0x4bcf2a},_0xff9942)=>!!_0x4bcf2a[_0x2f7a('0x2a')](_0x52e209)[_0x2f7a('0xb')][_0x2f7a('0xd')](_0xff9942['id'])},'nameRevision':{'name':_0x2f7a('0x1b'),'action':({plugins:_0x1b2c9e},{id:_0x404747,revisionNameView:_0x1ad17b})=>{const _0x3ff707=_0x1b2c9e[_0x2f7a('0x2a')](_0x52e209),_0x496932=_0x3ff707[_0x2f7a('0xb')][_0x2f7a('0x23')](_0x404747);_0x3ff707[_0x2f7a('0x20')](_0x404747,_0x496932),_0x1ad17b[_0x2f7a('0x2')](),_0x1ad17b[_0x2f7a('0x1a')][_0x2f7a('0x6')]();}}},w[_0x2f7a('0x25')]=[_0x2f7a('0x31'),_0x2f7a('0x37'),_0x2f7a('0x19')];
23
+ const _0x44da=['_revisionsRepository','focus','fieldView','timePeriodViews','revisionViews','defaultRevisionActions','name','isSelected','assign','pluginName','isVisible','element','getLaterVisibleRevision','editor','getRevisionsInDiff','render','compareAgainstSelected','length','highlightRevisions','compare','restoreRevisionCallback','destroy','restoreRevision','remove','_revisions','Compare\x20against\x20selected','string','selectRevision','config','revisionHistory.viewerSidebarContainer','availableRevisionActions','getEarlierVisibleRevision','plugins','get','action','Restore\x20this\x20revision','repository','_handleRevisionSelected','newRevisionId','_revisionViewer','listenTo','requires','_createRevisionActions','init','isEnabled','select','revisionHistory','data','map','Name\x20this\x20revision','_sidebarView','nameRevision','getRevision','ready','_handleDiffChange','bind','setName','_handleRevisionSetName','getIndex','_handleEditorDataReady','diff'];(function(_0x2383f3,_0x44da50){const _0x495e18=function(_0x25c67f){while(--_0x25c67f){_0x2383f3['push'](_0x2383f3['shift']());}};_0x495e18(++_0x44da50);}(_0x44da,0xf9));const _0x495e=function(_0x2383f3,_0x44da50){_0x2383f3=_0x2383f3-0x0;let _0x495e18=_0x44da[_0x2383f3];return _0x495e18;};import{Plugin as _0x11183a}from'ckeditor5/src/core';import _0x3893c7 from'./revisionssidebarview';import _0x460f3d from'../../revisionviewer';export default class w extends _0x11183a{static get[_0x495e('0x4')](){return'RevisionsSidebar';}static get[_0x495e('0x24')](){return[_0x460f3d];}constructor(_0x3bbb31){super(_0x3bbb31),this['_revisionViewer']=_0x3bbb31[_0x495e('0x1b')][_0x495e('0x1c')](_0x460f3d),this['_revisionsRepository']=this[_0x495e('0x22')]['repository'],this['_sidebarView']=null;}[_0x495e('0x26')](){const _0x2a8e4d=this[_0x495e('0x38')][_0x495e('0x13')],_0x42fbc5=this[_0x495e('0x25')](),_0x1260e5=this['editor'][_0x495e('0x17')][_0x495e('0x1c')](_0x495e('0x18'));this[_0x495e('0x2d')]=new _0x3893c7(this['editor']['locale'],_0x2a8e4d,_0x42fbc5),this[_0x495e('0x2d')]['on']('revisionSelected',this['_handleRevisionSelected'][_0x495e('0x32')](this)),this['_sidebarView']['on']('revisionSetName',this[_0x495e('0x34')]['bind'](this)),this[_0x495e('0x2d')][_0x495e('0x32')](_0x495e('0x27'))['to'](this[_0x495e('0x22')]),this['_sidebarView'][_0x495e('0x3b')]['on']('add',(_0x2748ab,_0x1fa3e9)=>{_0x1fa3e9[_0x495e('0x3c')]['on']('add',(_0x359d61,_0x243f16)=>{_0x243f16[_0x495e('0x32')](_0x495e('0x27'),'isReady')['to'](this[_0x495e('0x22')]);});}),this[_0x495e('0x2d')][_0x495e('0xa')](),this['listenTo'](this['editor'][_0x495e('0x2a')],_0x495e('0x30'),this['_handleEditorDataReady']['bind'](this)),this[_0x495e('0x23')](this[_0x495e('0x22')],'change:diff',this['_handleDiffChange']['bind'](this)),_0x1260e5['appendChild'](this[_0x495e('0x2d')]['element']);}[_0x495e('0x10')](){this[_0x495e('0x2d')][_0x495e('0x6')][_0x495e('0x12')](),this[_0x495e('0x2d')][_0x495e('0x10')]();}[_0x495e('0x36')](){const _0x2033fa=this[_0x495e('0x38')][_0x495e('0x2f')](0x0);if(_0x2033fa){const _0xe7201a=this[_0x495e('0x38')][_0x495e('0x1a')](_0x2033fa['id']);this['_revisionViewer'][_0x495e('0xe')](_0x2033fa,_0xe7201a);}}[_0x495e('0x20')](_0x4f1fe0,_0x3233a0){const _0x23aad1=this['_revisionsRepository'][_0x495e('0x2f')](_0x3233a0['id']),_0x3cce89=this[_0x495e('0x38')][_0x495e('0x1a')](_0x23aad1['id']);this[_0x495e('0x22')][_0x495e('0xe')](_0x23aad1,_0x3cce89);}[_0x495e('0x34')](_0x22d3f6,_0x2af738){this[_0x495e('0x38')][_0x495e('0x2f')](_0x2af738['id'])[_0x495e('0x33')](_0x2af738[_0x495e('0x1')]);}[_0x495e('0x31')](_0x33c651,_0x45cb14,_0x13ccd6){const _0x421b13=this[_0x495e('0x38')][_0x495e('0x9')](_0x13ccd6);_0x421b13[_0x495e('0xc')]>0x2?(this[_0x495e('0x2d')][_0x495e('0xd')](_0x421b13),this[_0x495e('0x2d')][_0x495e('0x16')](null)):(this[_0x495e('0x2d')][_0x495e('0xd')]([]),this[_0x495e('0x2d')]['selectRevision'](_0x421b13[0x0]));}[_0x495e('0x25')](){const _0x46b815=this[_0x495e('0x8')],_0x400179=w['availableRevisionActions'],_0x482e0a=_0x46b815[_0x495e('0x17')][_0x495e('0x1c')]('revisionHistory.revisionActions')||w[_0x495e('0x0')];if(_0x482e0a[_0x495e('0xc')])return _0x482e0a[_0x495e('0x2b')](_0x15f553=>{const _0x2dc645=_0x495e('0x15')==typeof _0x15f553?Object[_0x495e('0x3')]({},_0x400179[_0x15f553]):_0x15f553;return _0x2dc645['action']=_0x2dc645[_0x495e('0x1d')][_0x495e('0x32')](this,_0x46b815),_0x2dc645[_0x495e('0x5')]&&(_0x2dc645[_0x495e('0x5')]=_0x2dc645['isVisible'][_0x495e('0x32')](this,_0x46b815)),_0x2dc645;});}}w[_0x495e('0x19')]={'compareAgainstSelected':{'name':_0x495e('0x14'),'action':({plugins:_0x3dbbaf},_0x3000e0)=>{const _0x577fae=_0x3dbbaf[_0x495e('0x1c')](_0x460f3d),_0x314b72=_0x577fae['repository'];let _0x5b22d7=_0x577fae[_0x495e('0x37')][_0x495e('0x21')],_0xc3a146=_0x3000e0['id'];_0x314b72['getIndex'](_0x5b22d7)>_0x314b72[_0x495e('0x35')](_0xc3a146)&&([_0x5b22d7,_0xc3a146]=[_0xc3a146,_0x5b22d7]),_0x577fae[_0x495e('0xe')](_0x5b22d7,_0xc3a146);},'isVisible':({plugins:_0x1d8262},_0x2ee7bc)=>{const _0x657d9e=_0x1d8262[_0x495e('0x1c')](_0x460f3d);return!(_0x657d9e['repository'][_0x495e('0x9')](_0x657d9e[_0x495e('0x37')])[_0x495e('0xc')]>0x2)&&!_0x2ee7bc[_0x495e('0x2')];}},'restoreRevision':{'name':_0x495e('0x1e'),'action':(_0x5dad35,{id:_0x49dd2f})=>{_0x5dad35[_0x495e('0x17')][_0x495e('0x1c')](_0x495e('0x29'))[_0x495e('0xf')](_0x49dd2f);},'isVisible':({plugins:_0x211811},_0xe6877d)=>!!_0x211811[_0x495e('0x1c')](_0x460f3d)[_0x495e('0x1f')][_0x495e('0x7')](_0xe6877d['id'])},'nameRevision':{'name':_0x495e('0x2c'),'action':({plugins:_0x3d7aab},{id:_0x4a7ad3,revisionNameView:_0x249fb6})=>{const _0x8a0898=_0x3d7aab['get'](_0x460f3d),_0x1692bd=_0x8a0898[_0x495e('0x1f')][_0x495e('0x1a')](_0x4a7ad3);_0x8a0898[_0x495e('0xe')](_0x4a7ad3,_0x1692bd),_0x249fb6[_0x495e('0x39')](),_0x249fb6[_0x495e('0x3a')][_0x495e('0x28')]();}}},w[_0x495e('0x0')]=[_0x495e('0xb'),_0x495e('0x11'),_0x495e('0x2e')];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2543=['ck-revision-history-sidebar__header__label','content','div','ck-reset_all','span'];(function(_0x55786e,_0x25435e){const _0x5f0d6a=function(_0x28403a){while(--_0x28403a){_0x55786e['push'](_0x55786e['shift']());}};_0x5f0d6a(++_0x25435e);}(_0x2543,0x1cb));const _0x5f0d=function(_0x55786e,_0x25435e){_0x55786e=_0x55786e-0x0;let _0x5f0d6a=_0x2543[_0x55786e];return _0x5f0d6a;};import{View as _0x57c4bb,IconView as _0x15a86d}from'ckeditor5/src/ui';import{getTranslation as _0x2e1457}from'../../utils/common-translations';import _0x2a619e from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x57c4bb{constructor(_0x3fa984){super(_0x3fa984);const _0x462d23=new _0x15a86d();_0x462d23[_0x5f0d('0x2')]=_0x2a619e,this['setTemplate']({'tag':_0x5f0d('0x3'),'attributes':{'class':['ck',_0x5f0d('0x4'),'ck-revision-history-sidebar__header']},'children':[_0x462d23,{'tag':_0x5f0d('0x0'),'attributes':{'class':['ck',_0x5f0d('0x1')]},'children':[_0x2e1457(_0x3fa984,'Revision\x20history')]}]});}}
23
+ const _0x4137=['ck-revision-history-sidebar__header','setTemplate','span','content','Revision\x20history','ck-reset_all'];(function(_0x51d85f,_0x41377f){const _0x2426bd=function(_0x560569){while(--_0x560569){_0x51d85f['push'](_0x51d85f['shift']());}};_0x2426bd(++_0x41377f);}(_0x4137,0x1bc));const _0x2426=function(_0x51d85f,_0x41377f){_0x51d85f=_0x51d85f-0x0;let _0x2426bd=_0x4137[_0x51d85f];return _0x2426bd;};import{View as _0x3d638f,IconView as _0x65f755}from'ckeditor5/src/ui';import{getTranslation as _0x364dba}from'../../utils/common-translations';import _0x36536d from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x3d638f{constructor(_0x258e68){super(_0x258e68);const _0x39bae9=new _0x65f755();_0x39bae9[_0x2426('0x3')]=_0x36536d,this[_0x2426('0x1')]({'tag':'div','attributes':{'class':['ck',_0x2426('0x5'),_0x2426('0x0')]},'children':[_0x39bae9,{'tag':_0x2426('0x2'),'attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[_0x364dba(_0x258e68,_0x2426('0x4'))]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ed3=['delegate','startDate','_revisionActions','removeRevision','revisionViews','select','addRevision','span','setName','find','createCollection','ck-revision-history-sidebar__time-period','uiLanguage','locale','div','ck-revision-history-sidebar__time-period__revisions','remove'];(function(_0x32030b,_0x4ed3b9){const _0x1fb153=function(_0x4d09f9){while(--_0x4d09f9){_0x32030b['push'](_0x32030b['shift']());}};_0x1fb153(++_0x4ed3b9);}(_0x4ed3,0x136));const _0x1fb1=function(_0x32030b,_0x4ed3b9){_0x32030b=_0x32030b-0x0;let _0x1fb153=_0x4ed3[_0x32030b];return _0x1fb153;};import{View as _0xea27c7}from'ckeditor5/src/ui';import _0x5d5ac2 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x21d850}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0xea27c7{constructor(_0x1c2184,_0x58ab29,_0x7bd12a){super(_0x1c2184);const _0xb7ca18=_0x21d850(_0x58ab29,this[_0x1fb1('0x9')][_0x1fb1('0x8')])['localizedPeriodName'];this[_0x1fb1('0xe')]=_0x58ab29,this['revisionViews']=this[_0x1fb1('0x6')](),this[_0x1fb1('0xf')]=_0x7bd12a,this[_0x1fb1('0x0')][_0x1fb1('0xd')](_0x1fb1('0x1'))['to'](this),this[_0x1fb1('0x0')][_0x1fb1('0xd')](_0x1fb1('0x4'))['to'](this),this['setTemplate']({'tag':_0x1fb1('0xa'),'attributes':{'class':['ck',_0x1fb1('0x7')]},'children':[{'tag':_0x1fb1('0x3'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0xb7ca18}]},{'tag':_0x1fb1('0xa'),'attributes':{'class':['ck',_0x1fb1('0xb')]},'children':this[_0x1fb1('0x0')]}]});}[_0x1fb1('0x2')](_0xce509b){const _0x460543=new _0x5d5ac2(this['locale'],_0xce509b,this[_0x1fb1('0xf')]);this['revisionViews']['add'](_0x460543);}[_0x1fb1('0x10')](_0x113104){const _0x575a7d=this[_0x1fb1('0x0')][_0x1fb1('0x5')](_0x352ca0=>_0x352ca0['id']===_0x113104['id']);this[_0x1fb1('0x0')][_0x1fb1('0xc')](_0x575a7d);}}
23
+ const _0x56db=['span','delegate','setName','addRevision','createCollection','add','div','select','ck-revision-history-sidebar__time-period__revisions','setTemplate','revisionViews','removeRevision','localizedPeriodName','uiLanguage','find','ck-revision-history-sidebar__time-period__label','locale','remove'];(function(_0x59bbb6,_0x56db5e){const _0x31d2e2=function(_0x2ffce8){while(--_0x2ffce8){_0x59bbb6['push'](_0x59bbb6['shift']());}};_0x31d2e2(++_0x56db5e);}(_0x56db,0x1dd));const _0x31d2=function(_0x59bbb6,_0x56db5e){_0x59bbb6=_0x59bbb6-0x0;let _0x31d2e2=_0x56db[_0x59bbb6];return _0x31d2e2;};import{View as _0xea94ee}from'ckeditor5/src/ui';import _0x1fcaf7 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x301593}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0xea94ee{constructor(_0x33acb1,_0xfbe504,_0x14d5d8){super(_0x33acb1);const _0x56838b=_0x301593(_0xfbe504,this['locale'][_0x31d2('0x4')])[_0x31d2('0x3')];this['startDate']=_0xfbe504,this[_0x31d2('0x1')]=this[_0x31d2('0xd')](),this['_revisionActions']=_0x14d5d8,this[_0x31d2('0x1')][_0x31d2('0xa')](_0x31d2('0x10'))['to'](this),this['revisionViews'][_0x31d2('0xa')](_0x31d2('0xb'))['to'](this),this[_0x31d2('0x0')]({'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':_0x31d2('0x9'),'attributes':{'class':['ck',_0x31d2('0x6')]},'children':[{'text':_0x56838b}]},{'tag':_0x31d2('0xf'),'attributes':{'class':['ck',_0x31d2('0x11')]},'children':this[_0x31d2('0x1')]}]});}[_0x31d2('0xc')](_0x61f619){const _0x2cf7c9=new _0x1fcaf7(this[_0x31d2('0x7')],_0x61f619,this['_revisionActions']);this[_0x31d2('0x1')][_0x31d2('0xe')](_0x2cf7c9);}[_0x31d2('0x2')](_0x2fae1d){const _0x152a4e=this[_0x31d2('0x1')][_0x31d2('0x5')](_0x459124=>_0x459124['id']===_0x2fae1d['id']);this['revisionViews'][_0x31d2('0x8')](_0x152a4e);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x42cd=['_revisionActions','_addRevision','highlightRevisions','fire','revisionSelected','ck-revision-history-sidebar','startDate','createdAt','highlight','remove','add','ck-reset','setTemplate','addRevision','_revisions','removeRevision','set','revisionViews','deselect','selectRevision','map','timePeriodViews','isEnabled','find','uiLanguage','createCollection','bindTemplate','revisionSetName','_getTimePeriodViewByStartDate','render','setName','get','locale','getTime','delegate','div','select','_removeRevision'];(function(_0x545401,_0x42cdd1){const _0xedeb64=function(_0x315fd2){while(--_0x315fd2){_0x545401['push'](_0x545401['shift']());}};_0xedeb64(++_0x42cdd1);}(_0x42cd,0x1c6));const _0xedeb=function(_0x545401,_0x42cdd1){_0x545401=_0x545401-0x0;let _0xedeb64=_0x42cd[_0x545401];return _0xedeb64;};import{View as _0x284ea0}from'ckeditor5/src/ui';import _0x4d8e54 from'./revisionssidebartimeperiodview';import _0x3baa99 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x479115}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x284ea0{constructor(_0x595b6b,_0x46d07a,_0x1c8555){super(_0x595b6b);const _0xcac78a=this[_0xedeb('0x1c')];this['timePeriodViews']=this[_0xedeb('0x1b')](),this[_0xedeb('0x17')]['delegate']('select')['to'](this),this[_0xedeb('0x17')][_0xedeb('0x24')]('setName')['to'](this),this[_0xedeb('0x10')]=_0x46d07a,this[_0xedeb('0x2')]=_0x1c8555,this['on'](_0xedeb('0x0'),(_0x4f1ae8,_0x2f20f8)=>{this[_0xedeb('0x5')](_0xedeb('0x6'),_0x2f20f8);}),this['on'](_0xedeb('0x20'),(_0x50d671,_0x1e8b05)=>{this['fire'](_0xedeb('0x1d'),_0x1e8b05);}),this[_0xedeb('0x12')](_0xedeb('0x18'),!0x1),this[_0xedeb('0xe')]({'tag':_0xedeb('0x25'),'attributes':{'class':['ck',_0xedeb('0xd'),'ck-rounded-corners',_0xedeb('0x7')]},'children':[new _0x3baa99(_0x595b6b),{'tag':_0xedeb('0x25'),'attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0xcac78a['if']('isEnabled','ck-disabled',_0x46c391=>!_0x46c391)]},'children':this[_0xedeb('0x17')]}]});}['render'](){super[_0xedeb('0x1f')]();for(const _0x10acbd of this[_0xedeb('0x10')])this[_0xedeb('0x3')](_0x10acbd);this[_0xedeb('0x10')]['on']('add',(_0xdab414,_0x10d4c1)=>{this[_0xedeb('0x3')](_0x10d4c1);}),this[_0xedeb('0x10')]['on'](_0xedeb('0xb'),(_0x4237fc,_0xfed17b)=>{this['_removeRevision'](_0xfed17b);});}get[_0xedeb('0x13')](){return this[_0xedeb('0x17')][_0xedeb('0x16')](_0x501ab7=>_0x501ab7['revisionViews'][_0xedeb('0x16')](_0x235449=>_0x235449))['flat']();}[_0xedeb('0x15')](_0x129dc){for(const _0x1a0bf2 of this[_0xedeb('0x13')])_0x129dc&&_0x129dc['id']===_0x1a0bf2['id']?_0x1a0bf2[_0xedeb('0x0')]():_0x1a0bf2[_0xedeb('0x14')]();}[_0xedeb('0x4')](_0x552a85){for(const _0x46c595 of this[_0xedeb('0x13')])_0x552a85['some'](({id:_0x43e85b})=>_0x43e85b===_0x46c595['id'])?_0x46c595[_0xedeb('0xa')]():_0x46c595['unhighlight']();}[_0xedeb('0x3')](_0x39b296){const _0x513361=_0x479115(_0x39b296[_0xedeb('0x9')],this[_0xedeb('0x22')]['uiLanguage'])[_0xedeb('0x8')];let _0x2f002f=this[_0xedeb('0x17')][_0xedeb('0x21')](0x0);_0x2f002f&&_0x2f002f['startDate'][_0xedeb('0x23')]()===_0x513361[_0xedeb('0x23')]()||(_0x2f002f=new _0x4d8e54(this[_0xedeb('0x22')],_0x513361,this[_0xedeb('0x2')]),this[_0xedeb('0x17')][_0xedeb('0xc')](_0x2f002f)),_0x2f002f[_0xedeb('0xf')](_0x39b296);}[_0xedeb('0x1')](_0x302d02){const _0x3a78f6=_0x479115(_0x302d02[_0xedeb('0x9')],this[_0xedeb('0x22')][_0xedeb('0x1a')])[_0xedeb('0x8')];this[_0xedeb('0x1e')](_0x3a78f6)[_0xedeb('0x11')](_0x302d02);}['_getTimePeriodViewByStartDate'](_0x5c48c1){return this[_0xedeb('0x17')][_0xedeb('0x19')](_0x49d32e=>_0x49d32e[_0xedeb('0x8')][_0xedeb('0x23')]()===_0x5c48c1[_0xedeb('0x23')]());}}
23
+ const _0x2f40=['find','some','revisionSetName','ck-rounded-corners','isEnabled','addRevision','_revisions','delegate','get','unhighlight','highlightRevisions','createdAt','bindTemplate','_addRevision','getTime','fire','map','selectRevision','_revisionActions','_removeRevision','ck-revision-history-sidebar','_getTimePeriodViewByStartDate','select','createCollection','revisionSelected','div','setTemplate','add','setName','startDate','render','revisionViews','ck-revision-history-sidebar__timeline','timePeriodViews','locale','removeRevision','uiLanguage','ck-disabled'];(function(_0x1d87d6,_0x2f40b8){const _0x17f5dc=function(_0x592691){while(--_0x592691){_0x1d87d6['push'](_0x1d87d6['shift']());}};_0x17f5dc(++_0x2f40b8);}(_0x2f40,0xe0));const _0x17f5=function(_0x1d87d6,_0x2f40b8){_0x1d87d6=_0x1d87d6-0x0;let _0x17f5dc=_0x2f40[_0x1d87d6];return _0x17f5dc;};import{View as _0x37109d}from'ckeditor5/src/ui';import _0x57e642 from'./revisionssidebartimeperiodview';import _0x385969 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x47e8ab}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x37109d{constructor(_0x5ce95c,_0x4b1ce8,_0x24a975){super(_0x5ce95c);const _0x59392e=this[_0x17f5('0x10')];this['timePeriodViews']=this[_0x17f5('0x1b')](),this['timePeriodViews'][_0x17f5('0xb')](_0x17f5('0x1a'))['to'](this),this[_0x17f5('0x25')]['delegate']('setName')['to'](this),this[_0x17f5('0xa')]=_0x4b1ce8,this[_0x17f5('0x16')]=_0x24a975,this['on'](_0x17f5('0x1a'),(_0x561c9c,_0xf2201)=>{this[_0x17f5('0x13')](_0x17f5('0x1c'),_0xf2201);}),this['on'](_0x17f5('0x20'),(_0x260695,_0x34b396)=>{this['fire'](_0x17f5('0x6'),_0x34b396);}),this['set'](_0x17f5('0x8'),!0x1),this[_0x17f5('0x1e')]({'tag':_0x17f5('0x1d'),'attributes':{'class':['ck','ck-reset',_0x17f5('0x7'),_0x17f5('0x18')]},'children':[new _0x385969(_0x5ce95c),{'tag':_0x17f5('0x1d'),'attributes':{'class':['ck',_0x17f5('0x24'),_0x59392e['if'](_0x17f5('0x8'),_0x17f5('0x3'),_0x2ec245=>!_0x2ec245)]},'children':this['timePeriodViews']}]});}[_0x17f5('0x22')](){super[_0x17f5('0x22')]();for(const _0x5becb2 of this[_0x17f5('0xa')])this[_0x17f5('0x11')](_0x5becb2);this[_0x17f5('0xa')]['on'](_0x17f5('0x1f'),(_0x159961,_0x3c78f5)=>{this[_0x17f5('0x11')](_0x3c78f5);}),this[_0x17f5('0xa')]['on']('remove',(_0x3c5618,_0x4617f4)=>{this[_0x17f5('0x17')](_0x4617f4);});}get[_0x17f5('0x23')](){return this['timePeriodViews'][_0x17f5('0x14')](_0x111965=>_0x111965[_0x17f5('0x23')]['map'](_0x2e52e8=>_0x2e52e8))['flat']();}[_0x17f5('0x15')](_0x260283){for(const _0x19444e of this['revisionViews'])_0x260283&&_0x260283['id']===_0x19444e['id']?_0x19444e[_0x17f5('0x1a')]():_0x19444e['deselect']();}[_0x17f5('0xe')](_0x235d2c){for(const _0x5c9fc1 of this['revisionViews'])_0x235d2c[_0x17f5('0x5')](({id:_0x1920e9})=>_0x1920e9===_0x5c9fc1['id'])?_0x5c9fc1['highlight']():_0x5c9fc1[_0x17f5('0xd')]();}[_0x17f5('0x11')](_0x49c5ae){const _0x4fd52d=_0x47e8ab(_0x49c5ae[_0x17f5('0xf')],this[_0x17f5('0x0')][_0x17f5('0x2')])[_0x17f5('0x21')];let _0x4ebe4a=this['timePeriodViews'][_0x17f5('0xc')](0x0);_0x4ebe4a&&_0x4ebe4a[_0x17f5('0x21')][_0x17f5('0x12')]()===_0x4fd52d[_0x17f5('0x12')]()||(_0x4ebe4a=new _0x57e642(this[_0x17f5('0x0')],_0x4fd52d,this[_0x17f5('0x16')]),this[_0x17f5('0x25')][_0x17f5('0x1f')](_0x4ebe4a)),_0x4ebe4a[_0x17f5('0x9')](_0x49c5ae);}[_0x17f5('0x17')](_0x1b5b6b){const _0xbd2cf1=_0x47e8ab(_0x1b5b6b[_0x17f5('0xf')],this[_0x17f5('0x0')]['uiLanguage'])['startDate'];this[_0x17f5('0x19')](_0xbd2cf1)[_0x17f5('0x1')](_0x1b5b6b);}[_0x17f5('0x19')](_0x14ac46){return this[_0x17f5('0x25')][_0x17f5('0x4')](_0x17d72a=>_0x17d72a[_0x17f5('0x21')][_0x17f5('0x12')]()===_0x14ac46[_0x17f5('0x12')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4b8b=['local','startOf','month','year','minus','day','hasSame','monthLong','week','fromJSDate','toJSDate','weekdayLong','toRelativeCalendar'];(function(_0x266325,_0x4b8be4){const _0x40bad2=function(_0x1f00f1){while(--_0x1f00f1){_0x266325['push'](_0x266325['shift']());}};_0x40bad2(++_0x4b8be4);}(_0x4b8b,0x105));const _0x40ba=function(_0x266325,_0x4b8be4){_0x266325=_0x266325-0x0;let _0x40bad2=_0x4b8b[_0x266325];return _0x40bad2;};import{DateTime as _0x43ac09}from'luxon';export function getDateTimePeriodInfo(_0x4d0abd,_0x2b1884){const _0x325f55=_0x43ac09[_0x40ba('0x8')](_0x4d0abd)['setLocale'](_0x2b1884),_0x136a3=_0x43ac09[_0x40ba('0xc')](),_0x566550=_0x136a3[_0x40ba('0x3')]({'days':0x1})[_0x40ba('0x0')](_0x40ba('0x4'));let _0x497330,_0x485857;return _0x325f55[_0x40ba('0x5')](_0x136a3,_0x40ba('0x4'))?(_0x497330=_0x325f55['startOf']('day')[_0x40ba('0x9')](),_0x485857=_0x325f55['toRelativeCalendar']()):_0x325f55[_0x40ba('0x5')](_0x566550,_0x40ba('0x4'))?(_0x497330=_0x566550['toJSDate'](),_0x485857=_0x325f55[_0x40ba('0xb')]()):_0x325f55[_0x40ba('0x5')](_0x136a3,_0x40ba('0x7'))?(_0x497330=_0x325f55[_0x40ba('0x0')](_0x40ba('0x7'))['toJSDate'](),_0x485857=_0x325f55[_0x40ba('0xa')]||''):_0x325f55[_0x40ba('0x5')](_0x136a3,'year')?(_0x497330=_0x325f55['startOf'](_0x40ba('0x1'))[_0x40ba('0x9')](),_0x485857=_0x325f55[_0x40ba('0x6')]||''):(_0x497330=_0x325f55[_0x40ba('0x0')](_0x40ba('0x2'))[_0x40ba('0x9')](),_0x485857=String(_0x325f55[_0x40ba('0x2')])),{'startDate':_0x497330,'localizedPeriodName':_0x485857};}
23
+ const _0x59cd=['startOf','monthLong','weekdayLong','toRelativeCalendar','day','week','month','fromJSDate','local','year','hasSame','toJSDate','minus'];(function(_0x483adc,_0x59cd15){const _0x2ee6f8=function(_0x1534bc){while(--_0x1534bc){_0x483adc['push'](_0x483adc['shift']());}};_0x2ee6f8(++_0x59cd15);}(_0x59cd,0x193));const _0x2ee6=function(_0x483adc,_0x59cd15){_0x483adc=_0x483adc-0x0;let _0x2ee6f8=_0x59cd[_0x483adc];return _0x2ee6f8;};import{DateTime as _0x465445}from'luxon';export function getDateTimePeriodInfo(_0x57a1ae,_0x5eac52){const _0x2d37db=_0x465445[_0x2ee6('0x7')](_0x57a1ae)['setLocale'](_0x5eac52),_0x1a35a8=_0x465445[_0x2ee6('0x8')](),_0x2107cd=_0x1a35a8[_0x2ee6('0xc')]({'days':0x1})['startOf'](_0x2ee6('0x4'));let _0x117ee2,_0x5ebf66;return _0x2d37db[_0x2ee6('0xa')](_0x1a35a8,_0x2ee6('0x4'))?(_0x117ee2=_0x2d37db[_0x2ee6('0x0')]('day')[_0x2ee6('0xb')](),_0x5ebf66=_0x2d37db[_0x2ee6('0x3')]()):_0x2d37db[_0x2ee6('0xa')](_0x2107cd,_0x2ee6('0x4'))?(_0x117ee2=_0x2107cd[_0x2ee6('0xb')](),_0x5ebf66=_0x2d37db[_0x2ee6('0x3')]()):_0x2d37db['hasSame'](_0x1a35a8,_0x2ee6('0x5'))?(_0x117ee2=_0x2d37db[_0x2ee6('0x0')]('week')['toJSDate'](),_0x5ebf66=_0x2d37db[_0x2ee6('0x2')]||''):_0x2d37db[_0x2ee6('0xa')](_0x1a35a8,_0x2ee6('0x9'))?(_0x117ee2=_0x2d37db[_0x2ee6('0x0')](_0x2ee6('0x6'))['toJSDate'](),_0x5ebf66=_0x2d37db[_0x2ee6('0x1')]||''):(_0x117ee2=_0x2d37db[_0x2ee6('0x0')](_0x2ee6('0x9'))['toJSDate'](),_0x5ebf66=String(_0x2d37db[_0x2ee6('0x9')])),{'startDate':_0x117ee2,'localizedPeriodName':_0x5ebf66};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1e16=['setTemplate','data','changeId','_model','element','Removed\x20by','span','bindTemplate','set','focus','ck-annotation','Added\x20by','Suggested\x20by','ck-revision-change','name','ck-revision-change__label','ck-revision-change__','add','type','isSuggestion'];(function(_0x17d66d,_0x1e168c){const _0x4c3d46=function(_0x531ad8){while(--_0x531ad8){_0x17d66d['push'](_0x17d66d['shift']());}};_0x4c3d46(++_0x1e168c);}(_0x1e16,0xc8));const _0x4c3d=function(_0x17d66d,_0x1e168c){_0x17d66d=_0x17d66d-0x0;let _0x4c3d46=_0x1e16[_0x17d66d];return _0x4c3d46;};import{View as _0x38437a}from'ckeditor5/src/ui';import{getTranslation as _0xea9e80}from'../../utils/common-translations';export default class Z extends _0x38437a{constructor(_0x4bfd82,_0xf1a6bd){super(_0x4bfd82),this[_0x4c3d('0x3')]=_0xf1a6bd,this[_0x4c3d('0x2')]=_0xf1a6bd['id'];const _0x426f95=this[_0x4c3d('0x7')],_0x4908ce=_0xea9e80(_0x4bfd82,_0xf1a6bd[_0x4c3d('0x1')][_0x4c3d('0x13')]?_0x4c3d('0xc'):_0x4c3d('0x11')==_0xf1a6bd[_0x4c3d('0x12')]?_0x4c3d('0xb'):_0x4c3d('0x5'));this[_0x4c3d('0x8')](_0x4c3d('0x12'),_0xf1a6bd[_0x4c3d('0x12')]),this[_0x4c3d('0x0')]({'tag':'div','attributes':{'class':[_0x4c3d('0xa'),_0x4c3d('0xd'),_0x426f95['to'](_0x4c3d('0x12'),_0x47715f=>_0x4c3d('0x10')+_0x47715f)],'tabindex':-0x1},'children':[{'tag':_0x4c3d('0x6'),'children':[{'tag':'span','attributes':{'class':[_0x4c3d('0xf')]},'children':[{'text':_0x4908ce}]},{'text':'\x20'+_0xf1a6bd['author'][_0x4c3d('0xe')]}]}]});}['focus'](){this[_0x4c3d('0x4')][_0x4c3d('0x9')]();}}
23
+ const _0x5b7a=['Removed\x20by','add','div','name','isSuggestion','set','Suggested\x20by','bindTemplate','changeId','ck-revision-change__','focus','setTemplate','ck-annotation','span','data','_model','type','ck-revision-change','ck-revision-change__label'];(function(_0x250abe,_0x5b7a1e){const _0x41c01a=function(_0x3faec9){while(--_0x3faec9){_0x250abe['push'](_0x250abe['shift']());}};_0x41c01a(++_0x5b7a1e);}(_0x5b7a,0xff));const _0x41c0=function(_0x250abe,_0x5b7a1e){_0x250abe=_0x250abe-0x0;let _0x41c01a=_0x5b7a[_0x250abe];return _0x41c01a;};import{View as _0x314d64}from'ckeditor5/src/ui';import{getTranslation as _0x51af0c}from'../../utils/common-translations';export default class Z extends _0x314d64{constructor(_0x3ac01b,_0x1302e7){super(_0x3ac01b),this[_0x41c0('0x7')]=_0x1302e7,this[_0x41c0('0x0')]=_0x1302e7['id'];const _0x30e74a=this[_0x41c0('0x12')],_0x293191=_0x51af0c(_0x3ac01b,_0x1302e7[_0x41c0('0x6')][_0x41c0('0xf')]?_0x41c0('0x11'):_0x41c0('0xc')==_0x1302e7[_0x41c0('0x8')]?'Added\x20by':_0x41c0('0xb'));this[_0x41c0('0x10')](_0x41c0('0x8'),_0x1302e7[_0x41c0('0x8')]),this[_0x41c0('0x3')]({'tag':_0x41c0('0xd'),'attributes':{'class':[_0x41c0('0x4'),_0x41c0('0x9'),_0x30e74a['to']('type',_0x5156dc=>_0x41c0('0x1')+_0x5156dc)],'tabindex':-0x1},'children':[{'tag':_0x41c0('0x5'),'children':[{'tag':_0x41c0('0x5'),'attributes':{'class':[_0x41c0('0xa')]},'children':[{'text':_0x293191}]},{'text':'\x20'+_0x1302e7['author'][_0x41c0('0xe')]}]}]});}[_0x41c0('0x2')](){this['element'][_0x41c0('0x2')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3ccd=['numberOfChanges','Total','isEnabled','forward','Show\x20next\x20change','span','isBackwardNavigationEnabled','isReady','div','ck-revision-history-ui__changes-navigation__label','execute','ck-revision-history-ui__changes-navigation__navigation','Loading...','set','_isStatusLabelVisible','backward','NUMBER_OF_CHANGES','currentChangeNumber','No\x20changes','fire','bindTemplate','ck-revision-history-ui__changes-navigation__wrapper','X_OF_Y_CHANGES','bind','isForwardNavigationEnabled','ck-revision-history-ui__changes-navigation','ck-hidden','isNavigationMode','_statusText'];(function(_0x3abaa5,_0x3ccd45){const _0x5b00cb=function(_0x3a433a){while(--_0x3a433a){_0x3abaa5['push'](_0x3abaa5['shift']());}};_0x5b00cb(++_0x3ccd45);}(_0x3ccd,0x15a));const _0x5b00=function(_0x3abaa5,_0x3ccd45){_0x3abaa5=_0x3abaa5-0x0;let _0x5b00cb=_0x3ccd[_0x3abaa5];return _0x5b00cb;};import{View as _0x36afb1,ButtonView as _0x232a34,ToolbarSeparatorView as _0x533fd9}from'ckeditor5/src/ui';import{getTranslation as _0x30cda3}from'../../utils/common-translations';import _0x41d25b from'../../../theme/icons/arrow-up.svg';import _0x35db15 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x36afb1{constructor(_0x3e781f){super(_0x3e781f);const _0x3c5fe1=this[_0x5b00('0x16')],_0x191330=new _0x232a34(_0x3e781f),_0x2279a4=new _0x232a34(_0x3e781f);this[_0x5b00('0xf')](_0x5b00('0x0'),!0x1),this[_0x5b00('0xf')]('isReady',!0x1),this[_0x5b00('0xf')](_0x5b00('0x13'),0x0),this[_0x5b00('0xf')](_0x5b00('0x2'),0x0),this[_0x5b00('0xf')](_0x5b00('0x1a'),!0x1),this[_0x5b00('0xf')](_0x5b00('0x8'),!0x1),this[_0x5b00('0x19')](_0x5b00('0x10'))['to'](this,'isReady',this,_0x5b00('0x2'),(_0x575aa9,_0x3d771c)=>_0x575aa9&&_0x3d771c>0x0),this[_0x5b00('0x19')](_0x5b00('0x1'))['to'](this,_0x5b00('0x9'),this,_0x5b00('0x13'),this,_0x5b00('0x2'),this,'isNavigationMode',(_0x1d8063,_0xc8b18f,_0x2c6797,_0x18eabc)=>{if(!_0x1d8063)return _0x30cda3(_0x3e781f,_0x5b00('0xe'));if(!_0x2c6797)return _0x30cda3(_0x3e781f,_0x5b00('0x14'));const _0x92770d=_0x30cda3(_0x3e781f,_0x5b00('0x12'),_0x2c6797);return _0x18eabc?_0x30cda3(_0x3e781f,_0x5b00('0x18'),[_0xc8b18f+0x1,_0x2c6797]):_0x92770d;}),_0x191330[_0x5b00('0xf')]({'label':_0x30cda3(_0x3e781f,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x41d25b}),_0x2279a4[_0x5b00('0xf')]({'label':_0x30cda3(_0x3e781f,_0x5b00('0x6')),'tooltip':!0x0,'icon':_0x35db15}),_0x191330[_0x5b00('0x19')](_0x5b00('0x4'))['to'](this,_0x5b00('0x8')),_0x2279a4['bind'](_0x5b00('0x4'))['to'](this,'isForwardNavigationEnabled'),_0x191330['on'](_0x5b00('0xc'),()=>this[_0x5b00('0x15')]('execute',_0x5b00('0x11'))),_0x2279a4['on'](_0x5b00('0xc'),()=>this[_0x5b00('0x15')](_0x5b00('0xc'),_0x5b00('0x5'))),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-ui',_0x5b00('0x1b')]},'children':[{'tag':_0x5b00('0x7'),'attributes':{'class':[_0x5b00('0x17')]},'children':[{'tag':_0x5b00('0x7'),'attributes':{'class':[_0x5b00('0xb'),_0x3c5fe1['if']('_isStatusLabelVisible',_0x5b00('0x1c'),_0x56288c=>!_0x56288c)]},'children':[{'text':_0x3c5fe1['to']('isNavigationMode',_0x2b2c00=>_0x2b2c00?_0x30cda3(_0x3e781f,'EDIT_X_OF_Y_REVISIONS')+':\x20':_0x30cda3(_0x3e781f,_0x5b00('0x3'))+':\x20')}]},{'text':_0x3c5fe1['to'](_0x5b00('0x1'))}]},new _0x533fd9(),{'tag':_0x5b00('0xa'),'attributes':{'class':[_0x5b00('0xd')]},'children':[_0x191330,_0x2279a4]}]});}}
23
+ const _0x1456=['Loading...','bindTemplate','fire','No\x20changes','_statusText','ck-revision-history-ui__changes-navigation','EDIT_X_OF_Y_REVISIONS','currentChangeNumber','execute','isForwardNavigationEnabled','Show\x20previous\x20change','set','span','isEnabled','Total','bind','ck-revision-history-ui','isReady','ck-revision-history-ui__changes-navigation__navigation','_isStatusLabelVisible','Show\x20next\x20change','isNavigationMode','div','X_OF_Y_CHANGES','numberOfChanges','forward','backward','setTemplate','NUMBER_OF_CHANGES','isBackwardNavigationEnabled'];(function(_0x400c0c,_0x14562f){const _0x1a1c22=function(_0x1f5572){while(--_0x1f5572){_0x400c0c['push'](_0x400c0c['shift']());}};_0x1a1c22(++_0x14562f);}(_0x1456,0x171));const _0x1a1c=function(_0x400c0c,_0x14562f){_0x400c0c=_0x400c0c-0x0;let _0x1a1c22=_0x1456[_0x400c0c];return _0x1a1c22;};import{View as _0x15d8d9,ButtonView as _0x98fca5,ToolbarSeparatorView as _0x3966fa}from'ckeditor5/src/ui';import{getTranslation as _0x2d8a6c}from'../../utils/common-translations';import _0x400fef from'../../../theme/icons/arrow-up.svg';import _0x2b6344 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x15d8d9{constructor(_0x2c14f2){super(_0x2c14f2);const _0x2b6997=this[_0x1a1c('0x16')],_0x14f12b=new _0x98fca5(_0x2c14f2),_0x13bf9a=new _0x98fca5(_0x2c14f2);this[_0x1a1c('0x2')]('isNavigationMode',!0x1),this['set'](_0x1a1c('0x8'),!0x1),this[_0x1a1c('0x2')](_0x1a1c('0x1c'),0x0),this['set'](_0x1a1c('0xf'),0x0),this[_0x1a1c('0x2')](_0x1a1c('0x0'),!0x1),this['set'](_0x1a1c('0x14'),!0x1),this[_0x1a1c('0x6')](_0x1a1c('0xa'))['to'](this,_0x1a1c('0x8'),this,_0x1a1c('0xf'),(_0x2e6128,_0x1ebca2)=>_0x2e6128&&_0x1ebca2>0x0),this[_0x1a1c('0x6')]('_statusText')['to'](this,_0x1a1c('0x8'),this,'currentChangeNumber',this,_0x1a1c('0xf'),this,'isNavigationMode',(_0x387e40,_0x428321,_0x20ee23,_0x9d1257)=>{if(!_0x387e40)return _0x2d8a6c(_0x2c14f2,_0x1a1c('0x15'));if(!_0x20ee23)return _0x2d8a6c(_0x2c14f2,_0x1a1c('0x18'));const _0x5e62e7=_0x2d8a6c(_0x2c14f2,_0x1a1c('0x13'),_0x20ee23);return _0x9d1257?_0x2d8a6c(_0x2c14f2,_0x1a1c('0xe'),[_0x428321+0x1,_0x20ee23]):_0x5e62e7;}),_0x14f12b[_0x1a1c('0x2')]({'label':_0x2d8a6c(_0x2c14f2,_0x1a1c('0x1')),'tooltip':!0x0,'icon':_0x400fef}),_0x13bf9a[_0x1a1c('0x2')]({'label':_0x2d8a6c(_0x2c14f2,_0x1a1c('0xb')),'tooltip':!0x0,'icon':_0x2b6344}),_0x14f12b[_0x1a1c('0x6')]('isEnabled')['to'](this,_0x1a1c('0x14')),_0x13bf9a[_0x1a1c('0x6')](_0x1a1c('0x4'))['to'](this,_0x1a1c('0x0')),_0x14f12b['on'](_0x1a1c('0x1d'),()=>this[_0x1a1c('0x17')](_0x1a1c('0x1d'),_0x1a1c('0x11'))),_0x13bf9a['on'](_0x1a1c('0x1d'),()=>this[_0x1a1c('0x17')](_0x1a1c('0x1d'),_0x1a1c('0x10'))),this[_0x1a1c('0x12')]({'tag':_0x1a1c('0xd'),'attributes':{'class':['ck',_0x1a1c('0x7'),_0x1a1c('0x1a')]},'children':[{'tag':_0x1a1c('0x3'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':_0x1a1c('0x3'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x2b6997['if'](_0x1a1c('0xa'),'ck-hidden',_0x3cc5cc=>!_0x3cc5cc)]},'children':[{'text':_0x2b6997['to'](_0x1a1c('0xc'),_0x31682=>_0x31682?_0x2d8a6c(_0x2c14f2,_0x1a1c('0x1b'))+':\x20':_0x2d8a6c(_0x2c14f2,_0x1a1c('0x5'))+':\x20')}]},{'text':_0x2b6997['to'](_0x1a1c('0x19'))}]},new _0x3966fa(),{'tag':_0x1a1c('0xd'),'attributes':{'class':[_0x1a1c('0x9')]},'children':[_0x14f12b,_0x13bf9a]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x56dc=['editing','addClass','roots','document','ck-editor__editable__loading-overlay','show','hide','RevisionViewerLoadingOverlay','change','view'];(function(_0x1fa0be,_0x56dcbe){const _0x49b84e=function(_0x4dbe77){while(--_0x4dbe77){_0x1fa0be['push'](_0x1fa0be['shift']());}};_0x49b84e(++_0x56dcbe);}(_0x56dc,0xe8));const _0x49b8=function(_0x1fa0be,_0x56dcbe){_0x1fa0be=_0x1fa0be-0x0;let _0x49b84e=_0x56dc[_0x1fa0be];return _0x49b84e;};import{Plugin as _0x2b03dc}from'ckeditor5/src/core';const oe=_0x49b8('0x2');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x2b03dc{static get['pluginName'](){return _0x49b8('0x5');}[_0x49b8('0x3')](){const _0x1c6c3b=this['editor'][_0x49b8('0x8')][_0x49b8('0x7')];_0x1c6c3b[_0x49b8('0x6')](_0x26c949=>{for(const _0x238abc of _0x1c6c3b['document'][_0x49b8('0x0')])_0x26c949[_0x49b8('0x9')](oe,_0x238abc);});}[_0x49b8('0x4')](){const _0x45a4b1=this['editor'][_0x49b8('0x8')]['view'];_0x45a4b1[_0x49b8('0x6')](_0x141759=>{for(const _0x3670a3 of _0x45a4b1[_0x49b8('0x1')][_0x49b8('0x0')])_0x141759['removeClass'](oe,_0x3670a3);});}}
23
+ const _0x522d=['change','editing','document','hide','roots','editor','ck-editor__editable__loading-overlay','show','view','RevisionViewerLoadingOverlay'];(function(_0x1b67af,_0x522d75){const _0x59c41f=function(_0x55aa34){while(--_0x55aa34){_0x1b67af['push'](_0x1b67af['shift']());}};_0x59c41f(++_0x522d75);}(_0x522d,0xd7));const _0x59c4=function(_0x1b67af,_0x522d75){_0x1b67af=_0x1b67af-0x0;let _0x59c41f=_0x522d[_0x1b67af];return _0x59c41f;};import{Plugin as _0xc310f9}from'ckeditor5/src/core';const oe=_0x59c4('0x1');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0xc310f9{static get['pluginName'](){return _0x59c4('0x4');}[_0x59c4('0x2')](){const _0x4cd41b=this[_0x59c4('0x0')][_0x59c4('0x6')]['view'];_0x4cd41b[_0x59c4('0x5')](_0x3a2cfb=>{for(const _0x473f3d of _0x4cd41b[_0x59c4('0x7')][_0x59c4('0x9')])_0x3a2cfb['addClass'](oe,_0x473f3d);});}[_0x59c4('0x8')](){const _0x5d2f10=this[_0x59c4('0x0')][_0x59c4('0x6')][_0x59c4('0x3')];_0x5d2f10[_0x59c4('0x5')](_0x2ec667=>{for(const _0x3b4046 of _0x5d2f10[_0x59c4('0x7')][_0x59c4('0x9')])_0x2ec667['removeClass'](oe,_0x3b4046);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x46d6=['showNextChange','isReady','set','plugins','init','change:isReady','ck-revision-history-ui__back-to-editing','RevisionViewerUI','numberOfChanges','get','isEnabled','changesNavigation','bind','add','revisionHistory','execute','componentFactory','forward','showPreviousChange','config','currentChangeNumber','commands','pluginName','show','isBackwardNavigationEnabled','hide','Back\x20to\x20editing','exitToEditing','listenTo','Restore\x20this\x20revision','requires'];(function(_0x4d86a3,_0x46d622){const _0x935cab=function(_0x1b3dd0){while(--_0x1b3dd0){_0x4d86a3['push'](_0x4d86a3['shift']());}};_0x935cab(++_0x46d622);}(_0x46d6,0x78));const _0x935c=function(_0x4d86a3,_0x46d622){_0x4d86a3=_0x4d86a3-0x0;let _0x935cab=_0x46d6[_0x4d86a3];return _0x935cab;};import{Plugin as _0x5d64a2}from'ckeditor5/src/core';import{ButtonView as _0x4e6e89}from'ckeditor5/src/ui';import _0x665dd from'./changesnavigationview';import _0xcaa0 from'./../../revisionviewer';import _0x49a43d from'./revisionviewerloadingoverlay';import{getTranslation as _0x1d9937}from'../../utils/common-translations';import _0x2236b3 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x5d64a2{static get[_0x935c('0x1a')](){return _0x935c('0xb');}static get[_0x935c('0x3')](){return[_0xcaa0,_0x49a43d];}[_0x935c('0x8')](){const _0x2f81e5=this['editor'],_0x59e366=_0x2f81e5[_0x935c('0x7')][_0x935c('0xd')](_0xcaa0),_0x212818=_0x2f81e5[_0x935c('0x7')]['get'](_0x49a43d);_0x2f81e5['ui'][_0x935c('0x14')][_0x935c('0x11')](_0x935c('0x0'),_0x2540d0=>{const _0x2647e6=new _0x4e6e89(_0x2540d0);return _0x2647e6['set']({'label':_0x1d9937(_0x2540d0,_0x935c('0x1e')),'icon':_0x2236b3,'withText':!0x0,'tooltip':!0x0,'class':_0x935c('0xa')}),this[_0x935c('0x1')](_0x2647e6,_0x935c('0x13'),()=>{_0x2f81e5[_0x935c('0x17')][_0x935c('0xd')](_0x935c('0x12'))['closeRevisionViewerCallback']();}),_0x2647e6;}),_0x2f81e5['ui'][_0x935c('0x14')]['add']('restoreRevision',_0x1eb26f=>{const _0x4ef167=new _0x4e6e89(_0x1eb26f);return _0x4ef167[_0x935c('0x6')]({'label':_0x1d9937(_0x1eb26f,_0x935c('0x2')),'withText':!0x0,'tooltip':!0x0}),_0x4ef167[_0x935c('0x10')]('isEnabled')['to'](_0x2f81e5['commands']['get']('restoreRevision')),this[_0x935c('0x1')](_0x4ef167,'execute',()=>_0x2f81e5[_0x935c('0x13')]('restoreRevision')),_0x4ef167;}),_0x2f81e5['ui']['componentFactory']['add'](_0x935c('0xf'),_0x3d968f=>{const _0x78b36=new _0x665dd(_0x3d968f),_0x58f5e0=_0x2f81e5[_0x935c('0x19')][_0x935c('0xd')](_0x935c('0x16')),_0x47fff1=_0x2f81e5['commands'][_0x935c('0xd')](_0x935c('0x4'));return _0x78b36['bind'](_0x935c('0x1c'))['to'](_0x58f5e0,_0x935c('0xe')),_0x78b36['bind']('isForwardNavigationEnabled')['to'](_0x47fff1,_0x935c('0xe')),_0x78b36[_0x935c('0x10')](_0x935c('0x5'),_0x935c('0x18'),_0x935c('0xc'),'isNavigationMode')['to'](_0x59e366),this['listenTo'](_0x78b36,_0x935c('0x13'),(_0x3cc280,_0x5cd8a5)=>{_0x2f81e5[_0x935c('0x13')](_0x935c('0x15')===_0x5cd8a5?_0x935c('0x4'):_0x935c('0x16'));}),_0x78b36;}),_0x212818[_0x935c('0x1b')](),_0x59e366['on'](_0x935c('0x9'),(_0x181334,_0x44ac2b,_0x65cb68)=>{_0x65cb68?_0x212818[_0x935c('0x1d')]():_0x212818['show']();});}}
23
+ const _0x2964=['showNextChange','isEnabled','exitToEditing','init','config','forward','isBackwardNavigationEnabled','showPreviousChange','pluginName','set','componentFactory','requires','get','Restore\x20this\x20revision','commands','hide','listenTo','show','RevisionViewerUI','execute','closeRevisionViewerCallback','restoreRevision','bind','change:isReady','plugins','add'];(function(_0xad365,_0x2964ca){const _0x543244=function(_0x1a5ae2){while(--_0x1a5ae2){_0xad365['push'](_0xad365['shift']());}};_0x543244(++_0x2964ca);}(_0x2964,0x66));const _0x5432=function(_0xad365,_0x2964ca){_0xad365=_0xad365-0x0;let _0x543244=_0x2964[_0xad365];return _0x543244;};import{Plugin as _0x39f341}from'ckeditor5/src/core';import{ButtonView as _0x8d6a0f}from'ckeditor5/src/ui';import _0x139753 from'./changesnavigationview';import _0x41e82f from'./../../revisionviewer';import _0x5a4e25 from'./revisionviewerloadingoverlay';import{getTranslation as _0x1041c0}from'../../utils/common-translations';import _0x42a1e4 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x39f341{static get[_0x5432('0xa')](){return _0x5432('0x14');}static get[_0x5432('0xd')](){return[_0x41e82f,_0x5a4e25];}[_0x5432('0x5')](){const _0x588b8c=this['editor'],_0x55927b=_0x588b8c['plugins'][_0x5432('0xe')](_0x41e82f),_0x59d2b2=_0x588b8c[_0x5432('0x0')][_0x5432('0xe')](_0x5a4e25);_0x588b8c['ui'][_0x5432('0xc')][_0x5432('0x1')](_0x5432('0x4'),_0x4a59aa=>{const _0x3cd477=new _0x8d6a0f(_0x4a59aa);return _0x3cd477[_0x5432('0xb')]({'label':_0x1041c0(_0x4a59aa,'Back\x20to\x20editing'),'icon':_0x42a1e4,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this[_0x5432('0x12')](_0x3cd477,_0x5432('0x15'),()=>{_0x588b8c[_0x5432('0x6')][_0x5432('0xe')]('revisionHistory')[_0x5432('0x16')]();}),_0x3cd477;}),_0x588b8c['ui'][_0x5432('0xc')][_0x5432('0x1')](_0x5432('0x17'),_0x2b161e=>{const _0x1d72d4=new _0x8d6a0f(_0x2b161e);return _0x1d72d4[_0x5432('0xb')]({'label':_0x1041c0(_0x2b161e,_0x5432('0xf')),'withText':!0x0,'tooltip':!0x0}),_0x1d72d4[_0x5432('0x18')](_0x5432('0x3'))['to'](_0x588b8c[_0x5432('0x10')][_0x5432('0xe')]('restoreRevision')),this[_0x5432('0x12')](_0x1d72d4,_0x5432('0x15'),()=>_0x588b8c[_0x5432('0x15')](_0x5432('0x17'))),_0x1d72d4;}),_0x588b8c['ui'][_0x5432('0xc')][_0x5432('0x1')]('changesNavigation',_0xf1e2bf=>{const _0x20cbf4=new _0x139753(_0xf1e2bf),_0xcaacb0=_0x588b8c[_0x5432('0x10')][_0x5432('0xe')](_0x5432('0x9')),_0x22b714=_0x588b8c['commands'][_0x5432('0xe')](_0x5432('0x2'));return _0x20cbf4[_0x5432('0x18')](_0x5432('0x8'))['to'](_0xcaacb0,_0x5432('0x3')),_0x20cbf4[_0x5432('0x18')]('isForwardNavigationEnabled')['to'](_0x22b714,'isEnabled'),_0x20cbf4[_0x5432('0x18')]('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x55927b),this[_0x5432('0x12')](_0x20cbf4,_0x5432('0x15'),(_0xcd9d89,_0x56d71c)=>{_0x588b8c['execute'](_0x5432('0x7')===_0x56d71c?_0x5432('0x2'):_0x5432('0x9'));}),_0x20cbf4;}),_0x59d2b2['show'](),_0x55927b['on'](_0x5432('0x19'),(_0x43795e,_0x5ba6cc,_0x5f5080)=>{_0x5f5080?_0x59d2b2[_0x5432('0x11')]():_0x59d2b2[_0x5432('0x13')]();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0xf257e,_0x3ee131,_0x451e28){const t=_0xf257e['t'];switch(_0x3ee131){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'},_0x451e28);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x451e28);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 _0x3ee131;}}
23
+ export function getTranslation(_0x37213b,_0x4153fb,_0x390fa4){const t=_0x37213b['t'];switch(_0x4153fb){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'},_0x390fa4);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x390fa4);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 _0x4153fb;}}