@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230710.0 → 0.0.0-nightly-20230711.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 _0x123d=['change:isOpen','children','focus','RevisionTracker','saveRevision','add','isOpen','showRevisionViewerCallback','isEnabled','render','init','get','execute','Open\x20revision\x20history','plugins','pluginName','set','Save\x20current\x20revision','submit','buttonView','revisionName','Revision\x20history','RevisionHistoryUI','isReadOnly','panelView','bind','view','items','isReady','length','remove','revisionHistory','editing','componentFactory'];(function(_0x120d07,_0x123d0a){const _0x573d55=function(_0x5eb7f8){while(--_0x5eb7f8){_0x120d07['push'](_0x120d07['shift']());}};_0x573d55(++_0x123d0a);}(_0x123d,0xaf));const _0x573d=function(_0x120d07,_0x123d0a){_0x120d07=_0x120d07-0x0;let _0x573d55=_0x123d[_0x120d07];return _0x573d55;};import{Plugin as _0x3b3974}from'ckeditor5/src/core';import{ListView as _0x377a11,ListItemView as _0x122ed3,ButtonView as _0x33ca2a,createDropdown as _0x5f30ea}from'ckeditor5/src/ui';import _0xbe58a2 from'../../revisiontracker';import _0xf68058 from'./revisionhistorysaverevisionformview';import _0x137ced from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x2fe43a}from'../../utils/common-translations';export default class l extends _0x3b3974{static get[_0x573d('0xa')](){return _0x573d('0x11');}static get['requires'](){return[_0xbe58a2];}[_0x573d('0x5')](){const _0x12ed29=this['editor'],_0x80ef4b=_0x12ed29['plugins'][_0x573d('0x6')](_0x573d('0x20'));_0x12ed29['ui'][_0x573d('0x1c')]['add'](_0x573d('0x1a'),_0x42b519=>{const _0x5a16b8=_0x5f30ea(_0x42b519),_0x51acf8=_0x5a16b8[_0x573d('0x13')][_0x573d('0x1e')],_0x8128a5=new _0x377a11(_0x42b519),_0x4adb80=new _0x122ed3(_0x42b519),_0x57454a=new _0x33ca2a(_0x42b519),_0x53a056=new _0x122ed3(_0x42b519),_0x41ea1e=new _0x33ca2a(_0x42b519),_0x4f993d=new _0xf68058(_0x42b519);function _0x315858(){_0x51acf8[_0x573d('0x18')]&&_0x51acf8[_0x573d('0x19')](0x0),_0x51acf8['add'](_0x8128a5);}function _0x5569d6(){_0x5a16b8[_0x573d('0x1')]=!0x1,_0x12ed29[_0x573d('0x1b')][_0x573d('0x15')]['focus']();}return _0x5a16b8[_0x573d('0x14')](_0x573d('0x3'))['to'](_0x80ef4b,_0x573d('0x17'),_0x80ef4b,_0x573d('0x3'),_0x12ed29,_0x573d('0x12'),(_0x21c179,_0xb79953,_0xd4a2e)=>_0x21c179&&_0xb79953&&!_0xd4a2e),_0x5a16b8[_0x573d('0xe')][_0x573d('0xb')]({'icon':_0x137ced,'label':_0x2fe43a(_0x42b519,_0x573d('0x10')),'tooltip':!0x0}),_0x57454a['set']({'label':_0x2fe43a(_0x42b519,_0x573d('0xc')),'withText':!0x0}),_0x57454a[_0x573d('0x14')](_0x573d('0x3'))['to'](_0x80ef4b,_0x573d('0x17'),_0x80ef4b,_0x573d('0x3'),_0x12ed29,'isReadOnly',(_0x4844d4,_0x228220,_0x369f76)=>_0x4844d4&&_0x228220&&!_0x369f76),_0x57454a['on'](_0x573d('0x7'),()=>function(){_0x51acf8['length']&&_0x51acf8['remove'](0x0),(_0x4f993d['reset'](),_0x51acf8[_0x573d('0x0')](_0x4f993d),_0x4f993d[_0x573d('0x1f')]());}()),_0x41ea1e['set']({'label':_0x2fe43a(_0x42b519,_0x573d('0x8')),'withText':!0x0}),_0x41ea1e[_0x573d('0x14')](_0x573d('0x3'))['to'](_0x80ef4b,'isReady',_0x12ed29,_0x573d('0x12'),(_0x3e286a,_0x3be050)=>_0x3e286a&&!_0x3be050),_0x41ea1e['on'](_0x573d('0x7'),()=>{_0x12ed29['config'][_0x573d('0x6')](_0x573d('0x1a'))[_0x573d('0x2')](),_0x5569d6();}),_0x4adb80[_0x573d('0x1e')][_0x573d('0x0')](_0x57454a),_0x53a056[_0x573d('0x1e')]['add'](_0x41ea1e),_0x8128a5[_0x573d('0x16')]['addMany']([_0x4adb80,_0x53a056]),_0x5a16b8['on'](_0x573d('0x1d'),()=>_0x315858()),_0x4f993d['saveButtonView'][_0x573d('0x14')]('isEnabled')['to'](_0x80ef4b,_0x573d('0x17'),_0x80ef4b,_0x573d('0x3'),_0x12ed29,_0x573d('0x12'),(_0x37949d,_0x274a41,_0x462b3a)=>_0x37949d&&_0x274a41&&!_0x462b3a),_0x4f993d['on'](_0x573d('0xd'),()=>(_0x12ed29[_0x573d('0x9')][_0x573d('0x6')](_0xbe58a2)[_0x573d('0x21')]({'name':_0x4f993d[_0x573d('0xf')]}),void _0x5569d6())),_0x4f993d['on']('cancel',()=>_0x315858()),_0x4f993d[_0x573d('0x4')](),_0x315858(),_0x5a16b8;});}}
23
+ const _0xd0ca=['change:isOpen','cancel','addMany','editor','submit','isReadOnly','RevisionTracker','reset','Revision\x20history','view','showRevisionViewerCallback','execute','set','isEnabled','init','Save\x20current\x20revision','revisionHistory','config','revisionName','buttonView','add','children','bind','isOpen','plugins','isReady','get','remove','saveButtonView','RevisionHistoryUI','focus'];(function(_0x316f13,_0xd0ca66){const _0x199c32=function(_0x5ad790){while(--_0x5ad790){_0x316f13['push'](_0x316f13['shift']());}};_0x199c32(++_0xd0ca66);}(_0xd0ca,0x133));const _0x199c=function(_0x316f13,_0xd0ca66){_0x316f13=_0x316f13-0x0;let _0x199c32=_0xd0ca[_0x316f13];return _0x199c32;};import{Plugin as _0x244b70}from'ckeditor5/src/core';import{ListView as _0x3d9679,ListItemView as _0x52324e,ButtonView as _0x3edd8a,createDropdown as _0x4cceb2}from'ckeditor5/src/ui';import _0x10c1a9 from'../../revisiontracker';import _0x403ed8 from'./revisionhistorysaverevisionformview';import _0x3e312e from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x2d4d8f}from'../../utils/common-translations';export default class u extends _0x244b70{static get['pluginName'](){return _0x199c('0x1');}static get['requires'](){return[_0x10c1a9];}[_0x199c('0x11')](){const _0x32fd8b=this[_0x199c('0x6')],_0x57bc7d=_0x32fd8b[_0x199c('0x1b')]['get'](_0x199c('0x9'));_0x32fd8b['ui']['componentFactory'][_0x199c('0x17')]('revisionHistory',_0x208ae6=>{const _0x524f2a=_0x4cceb2(_0x208ae6),_0x595daa=_0x524f2a['panelView'][_0x199c('0x18')],_0x430f30=new _0x3d9679(_0x208ae6),_0x338acc=new _0x52324e(_0x208ae6),_0x132936=new _0x3edd8a(_0x208ae6),_0x2ab807=new _0x52324e(_0x208ae6),_0x24c148=new _0x3edd8a(_0x208ae6),_0x33c17e=new _0x403ed8(_0x208ae6);function _0x22d347(){_0x595daa['length']&&_0x595daa['remove'](0x0),_0x595daa[_0x199c('0x17')](_0x430f30);}function _0x2dac95(){_0x524f2a[_0x199c('0x1a')]=!0x1,_0x32fd8b['editing'][_0x199c('0xc')][_0x199c('0x2')]();}return _0x524f2a[_0x199c('0x19')](_0x199c('0x10'))['to'](_0x57bc7d,'isReady',_0x57bc7d,_0x199c('0x10'),_0x32fd8b,'isReadOnly',(_0x53b65a,_0x2a86e1,_0x241b70)=>_0x53b65a&&_0x2a86e1&&!_0x241b70),_0x524f2a[_0x199c('0x16')]['set']({'icon':_0x3e312e,'label':_0x2d4d8f(_0x208ae6,_0x199c('0xb')),'tooltip':!0x0}),_0x132936[_0x199c('0xf')]({'label':_0x2d4d8f(_0x208ae6,_0x199c('0x12')),'withText':!0x0}),_0x132936[_0x199c('0x19')](_0x199c('0x10'))['to'](_0x57bc7d,_0x199c('0x1c'),_0x57bc7d,_0x199c('0x10'),_0x32fd8b,'isReadOnly',(_0x156f50,_0x457584,_0x47ec0c)=>_0x156f50&&_0x457584&&!_0x47ec0c),_0x132936['on']('execute',()=>function(){_0x595daa['length']&&_0x595daa[_0x199c('0x1e')](0x0),(_0x33c17e[_0x199c('0xa')](),_0x595daa['add'](_0x33c17e),_0x33c17e[_0x199c('0x2')]());}()),_0x24c148['set']({'label':_0x2d4d8f(_0x208ae6,'Open\x20revision\x20history'),'withText':!0x0}),_0x24c148['bind'](_0x199c('0x10'))['to'](_0x57bc7d,_0x199c('0x1c'),_0x32fd8b,_0x199c('0x8'),(_0x58d5f3,_0x3e87d3)=>_0x58d5f3&&!_0x3e87d3),_0x24c148['on'](_0x199c('0xe'),()=>{_0x32fd8b[_0x199c('0x14')][_0x199c('0x1d')](_0x199c('0x13'))[_0x199c('0xd')](),_0x2dac95();}),_0x338acc[_0x199c('0x18')][_0x199c('0x17')](_0x132936),_0x2ab807[_0x199c('0x18')][_0x199c('0x17')](_0x24c148),_0x430f30['items'][_0x199c('0x5')]([_0x338acc,_0x2ab807]),_0x524f2a['on'](_0x199c('0x3'),()=>_0x22d347()),_0x33c17e[_0x199c('0x0')]['bind'](_0x199c('0x10'))['to'](_0x57bc7d,_0x199c('0x1c'),_0x57bc7d,_0x199c('0x10'),_0x32fd8b,_0x199c('0x8'),(_0x18cb4d,_0x20d694,_0x23e33c)=>_0x18cb4d&&_0x20d694&&!_0x23e33c),_0x33c17e['on'](_0x199c('0x7'),()=>(_0x32fd8b['plugins']['get'](_0x10c1a9)['saveRevision']({'name':_0x33c17e[_0x199c('0x15')]}),void _0x2dac95())),_0x33c17e['on'](_0x199c('0x4'),()=>_0x22d347()),_0x33c17e['render'](),_0x22d347(),_0x524f2a;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4830=['selectRevision','ready','RevisionsSidebar','locale','isVisible','listenTo','restoreRevision','config','_sidebarView','restoreRevisionCallback','_handleEditorDataReady','map','string','getIndex','select','isEnabled','get','_handleDiffChange','remove','_revisions','_revisionsRepository','revisionHistory','bind','compareAgainstSelected','appendChild','action','nameRevision','repository','_revisionViewer','getEarlierVisibleRevision','isReady','editor','defaultRevisionActions','getRevisionsInDiff','render','_handleRevisionSelected','revisionViews','getRevision','length','destroy','data','compare','timePeriodViews','setName','pluginName','_createRevisionActions','focus','plugins','assign','availableRevisionActions','diff','_handleRevisionSetName','revisionHistory.viewerSidebarContainer','add','Restore\x20this\x20revision','getLaterVisibleRevision','newRevisionId','Compare\x20against\x20selected','requires','Name\x20this\x20revision','fieldView','init','revisionSelected','element','highlightRevisions'];(function(_0x22eb62,_0x483081){const _0x1a5d0c=function(_0x5422f8){while(--_0x5422f8){_0x22eb62['push'](_0x22eb62['shift']());}};_0x1a5d0c(++_0x483081);}(_0x4830,0xf6));const _0x1a5d=function(_0x22eb62,_0x483081){_0x22eb62=_0x22eb62-0x0;let _0x1a5d0c=_0x4830[_0x22eb62];return _0x1a5d0c;};import{Plugin as _0x2a28ec}from'ckeditor5/src/core';import _0x49ccaf from'./revisionssidebarview';import _0x3a00ca from'../../revisionviewer';export default class R extends _0x2a28ec{static get[_0x1a5d('0x3a')](){return _0x1a5d('0x10');}static get[_0x1a5d('0x7')](){return[_0x3a00ca];}constructor(_0x31ee59){super(_0x31ee59),this['_revisionViewer']=_0x31ee59[_0x1a5d('0x3d')][_0x1a5d('0x1e')](_0x3a00ca),this[_0x1a5d('0x22')]=this[_0x1a5d('0x2a')][_0x1a5d('0x29')],this[_0x1a5d('0x16')]=null;}[_0x1a5d('0xa')](){const _0x244c8b=this[_0x1a5d('0x22')][_0x1a5d('0x21')],_0x4a2ef8=this[_0x1a5d('0x3b')](),_0x237d7e=this['editor'][_0x1a5d('0x15')][_0x1a5d('0x1e')](_0x1a5d('0x1'));this['_sidebarView']=new _0x49ccaf(this[_0x1a5d('0x2d')][_0x1a5d('0x11')],_0x244c8b,_0x4a2ef8),this[_0x1a5d('0x16')]['on'](_0x1a5d('0xb'),this[_0x1a5d('0x31')][_0x1a5d('0x24')](this)),this[_0x1a5d('0x16')]['on']('revisionSetName',this[_0x1a5d('0x0')][_0x1a5d('0x24')](this)),this[_0x1a5d('0x16')][_0x1a5d('0x24')]('isEnabled')['to'](this['_revisionViewer']),this['_sidebarView'][_0x1a5d('0x38')]['on'](_0x1a5d('0x2'),(_0x44c209,_0x57ba0f)=>{_0x57ba0f[_0x1a5d('0x32')]['on'](_0x1a5d('0x2'),(_0x8f3f8f,_0x29c2d3)=>{_0x29c2d3[_0x1a5d('0x24')](_0x1a5d('0x1d'),_0x1a5d('0x2c'))['to'](this[_0x1a5d('0x2a')]);});}),this[_0x1a5d('0x16')][_0x1a5d('0x30')](),this[_0x1a5d('0x13')](this[_0x1a5d('0x2d')][_0x1a5d('0x36')],_0x1a5d('0xf'),this[_0x1a5d('0x18')][_0x1a5d('0x24')](this)),this['listenTo'](this[_0x1a5d('0x2a')],'change:diff',this[_0x1a5d('0x1f')]['bind'](this)),_0x237d7e[_0x1a5d('0x26')](this['_sidebarView']['element']);}[_0x1a5d('0x35')](){this['_sidebarView'][_0x1a5d('0xc')][_0x1a5d('0x20')](),this['_sidebarView']['destroy']();}[_0x1a5d('0x18')](){const _0x49a4d2=this[_0x1a5d('0x22')][_0x1a5d('0x33')](0x0);if(_0x49a4d2){const _0x23f31d=this[_0x1a5d('0x22')][_0x1a5d('0x2b')](_0x49a4d2['id']);this['_revisionViewer'][_0x1a5d('0x37')](_0x49a4d2,_0x23f31d);}}[_0x1a5d('0x31')](_0x2aa00e,_0x1f2db0){const _0x2a626e=this[_0x1a5d('0x22')][_0x1a5d('0x33')](_0x1f2db0['id']),_0x28051e=this['_revisionsRepository'][_0x1a5d('0x2b')](_0x2a626e['id']);this[_0x1a5d('0x2a')][_0x1a5d('0x37')](_0x2a626e,_0x28051e);}['_handleRevisionSetName'](_0x5afd81,_0x39b830){this[_0x1a5d('0x22')][_0x1a5d('0x33')](_0x39b830['id'])[_0x1a5d('0x39')](_0x39b830['name']);}[_0x1a5d('0x1f')](_0x23647a,_0x1f6e39,_0x137f38){const _0x9863d=this['_revisionsRepository'][_0x1a5d('0x2f')](_0x137f38);_0x9863d[_0x1a5d('0x34')]>0x2?(this[_0x1a5d('0x16')]['highlightRevisions'](_0x9863d),this[_0x1a5d('0x16')][_0x1a5d('0xe')](null)):(this[_0x1a5d('0x16')][_0x1a5d('0xd')]([]),this[_0x1a5d('0x16')][_0x1a5d('0xe')](_0x9863d[0x0]));}[_0x1a5d('0x3b')](){const _0x4d7d46=this['editor'],_0x2cd116=R[_0x1a5d('0x3f')],_0x52cbe5=_0x4d7d46[_0x1a5d('0x15')]['get']('revisionHistory.revisionActions')||R[_0x1a5d('0x2e')];if(_0x52cbe5[_0x1a5d('0x34')])return _0x52cbe5[_0x1a5d('0x19')](_0xa01c96=>{const _0x31ad32=_0x1a5d('0x1a')==typeof _0xa01c96?Object[_0x1a5d('0x3e')]({},_0x2cd116[_0xa01c96]):_0xa01c96;return _0x31ad32[_0x1a5d('0x27')]=_0x31ad32['action'][_0x1a5d('0x24')](this,_0x4d7d46),_0x31ad32['isVisible']&&(_0x31ad32['isVisible']=_0x31ad32[_0x1a5d('0x12')][_0x1a5d('0x24')](this,_0x4d7d46)),_0x31ad32;});}}R['availableRevisionActions']={'compareAgainstSelected':{'name':_0x1a5d('0x6'),'action':({plugins:_0x27d71c},_0x27430c)=>{const _0x34594c=_0x27d71c[_0x1a5d('0x1e')](_0x3a00ca),_0x2a976a=_0x34594c[_0x1a5d('0x29')];let _0x857888=_0x34594c[_0x1a5d('0x40')][_0x1a5d('0x5')],_0x4477c9=_0x27430c['id'];_0x2a976a[_0x1a5d('0x1b')](_0x857888)>_0x2a976a[_0x1a5d('0x1b')](_0x4477c9)&&([_0x857888,_0x4477c9]=[_0x4477c9,_0x857888]),_0x34594c[_0x1a5d('0x37')](_0x857888,_0x4477c9);},'isVisible':({plugins:_0x5e3cdc},_0x19406d)=>{const _0x23f10d=_0x5e3cdc[_0x1a5d('0x1e')](_0x3a00ca);return!(_0x23f10d[_0x1a5d('0x29')][_0x1a5d('0x2f')](_0x23f10d[_0x1a5d('0x40')])[_0x1a5d('0x34')]>0x2)&&!_0x19406d['isSelected'];}},'restoreRevision':{'name':_0x1a5d('0x3'),'action':(_0x5daa6f,{id:_0x314a1d})=>{_0x5daa6f['config'][_0x1a5d('0x1e')](_0x1a5d('0x23'))[_0x1a5d('0x17')](_0x314a1d);},'isVisible':({plugins:_0x5721f3},_0x3baf68)=>!!_0x5721f3[_0x1a5d('0x1e')](_0x3a00ca)[_0x1a5d('0x29')][_0x1a5d('0x4')](_0x3baf68['id'])},'nameRevision':{'name':_0x1a5d('0x8'),'action':({plugins:_0x3eab57},{id:_0x52c6af,revisionNameView:_0x3a8bc8})=>{const _0x288f57=_0x3eab57['get'](_0x3a00ca),_0x230e05=_0x288f57[_0x1a5d('0x29')][_0x1a5d('0x2b')](_0x52c6af);_0x288f57[_0x1a5d('0x37')](_0x52c6af,_0x230e05),_0x3a8bc8[_0x1a5d('0x3c')](),_0x3a8bc8[_0x1a5d('0x9')][_0x1a5d('0x1c')]();}}},R[_0x1a5d('0x2e')]=[_0x1a5d('0x25'),_0x1a5d('0x14'),_0x1a5d('0x28')];
23
+ const _0x28e8=['getEarlierVisibleRevision','_revisionsRepository','_handleRevisionSelected','render','restoreRevision','init','timePeriodViews','data','listenTo','ready','action','availableRevisionActions','isReady','assign','editor','isEnabled','change:diff','map','config','isVisible','selectRevision','revisionSetName','getRevisionsInDiff','remove','string','_createRevisionActions','revisionHistory.revisionActions','_handleDiffChange','revisionHistory','_revisionViewer','destroy','add','repository','length','highlightRevisions','name','element','compareAgainstSelected','_handleEditorDataReady','getIndex','appendChild','getLaterVisibleRevision','compare','newRevisionId','defaultRevisionActions','revisionSelected','select','locale','_sidebarView','fieldView','restoreRevisionCallback','Restore\x20this\x20revision','Name\x20this\x20revision','getRevision','diff','focus','RevisionsSidebar','bind','_handleRevisionSetName','get'];(function(_0x3b7ccf,_0x28e8bb){const _0x3d4986=function(_0xee7fd){while(--_0xee7fd){_0x3b7ccf['push'](_0x3b7ccf['shift']());}};_0x3d4986(++_0x28e8bb);}(_0x28e8,0x15e));const _0x3d49=function(_0x3b7ccf,_0x28e8bb){_0x3b7ccf=_0x3b7ccf-0x0;let _0x3d4986=_0x28e8[_0x3b7ccf];return _0x3d4986;};import{Plugin as _0x55a793}from'ckeditor5/src/core';import _0x1b6ec2 from'./revisionssidebarview';import _0x4118f4 from'../../revisionviewer';export default class w extends _0x55a793{static get['pluginName'](){return _0x3d49('0x6');}static get['requires'](){return[_0x4118f4];}constructor(_0x96913d){super(_0x96913d),this[_0x3d49('0x27')]=_0x96913d['plugins'][_0x3d49('0x9')](_0x4118f4),this['_revisionsRepository']=this[_0x3d49('0x27')][_0x3d49('0x2a')],this[_0x3d49('0x3a')]=null;}[_0x3d49('0xf')](){const _0xac95f2=this[_0x3d49('0xb')]['_revisions'],_0x4647b4=this[_0x3d49('0x23')](),_0x113aac=this[_0x3d49('0x18')]['config'][_0x3d49('0x9')]('revisionHistory.viewerSidebarContainer');this[_0x3d49('0x3a')]=new _0x1b6ec2(this[_0x3d49('0x18')][_0x3d49('0x39')],_0xac95f2,_0x4647b4),this['_sidebarView']['on'](_0x3d49('0x37'),this[_0x3d49('0xc')]['bind'](this)),this['_sidebarView']['on'](_0x3d49('0x1f'),this[_0x3d49('0x8')][_0x3d49('0x7')](this)),this[_0x3d49('0x3a')][_0x3d49('0x7')](_0x3d49('0x19'))['to'](this['_revisionViewer']),this['_sidebarView'][_0x3d49('0x10')]['on'](_0x3d49('0x29'),(_0xd84b29,_0x54ebbf)=>{_0x54ebbf['revisionViews']['on'](_0x3d49('0x29'),(_0x532f6e,_0x599e73)=>{_0x599e73[_0x3d49('0x7')]('isEnabled',_0x3d49('0x16'))['to'](this[_0x3d49('0x27')]);});}),this[_0x3d49('0x3a')][_0x3d49('0xd')](),this[_0x3d49('0x12')](this['editor'][_0x3d49('0x11')],_0x3d49('0x13'),this[_0x3d49('0x30')]['bind'](this)),this[_0x3d49('0x12')](this['_revisionViewer'],_0x3d49('0x1a'),this[_0x3d49('0x25')][_0x3d49('0x7')](this)),_0x113aac[_0x3d49('0x32')](this[_0x3d49('0x3a')]['element']);}[_0x3d49('0x28')](){this[_0x3d49('0x3a')][_0x3d49('0x2e')][_0x3d49('0x21')](),this[_0x3d49('0x3a')][_0x3d49('0x28')]();}[_0x3d49('0x30')](){const _0x8b57d1=this[_0x3d49('0xb')][_0x3d49('0x3')](0x0);if(_0x8b57d1){const _0x29a6b3=this['_revisionsRepository'][_0x3d49('0xa')](_0x8b57d1['id']);this[_0x3d49('0x27')][_0x3d49('0x34')](_0x8b57d1,_0x29a6b3);}}['_handleRevisionSelected'](_0x499221,_0x1843a7){const _0x148517=this['_revisionsRepository']['getRevision'](_0x1843a7['id']),_0x48e9c3=this[_0x3d49('0xb')][_0x3d49('0xa')](_0x148517['id']);this[_0x3d49('0x27')][_0x3d49('0x34')](_0x148517,_0x48e9c3);}[_0x3d49('0x8')](_0x3d5cbc,_0x576dd6){this['_revisionsRepository'][_0x3d49('0x3')](_0x576dd6['id'])['setName'](_0x576dd6[_0x3d49('0x2d')]);}[_0x3d49('0x25')](_0x4ab92c,_0x57c57f,_0x28f2ac){const _0x2ab7a8=this['_revisionsRepository'][_0x3d49('0x20')](_0x28f2ac);_0x2ab7a8['length']>0x2?(this[_0x3d49('0x3a')][_0x3d49('0x2c')](_0x2ab7a8),this[_0x3d49('0x3a')][_0x3d49('0x1e')](null)):(this[_0x3d49('0x3a')][_0x3d49('0x2c')]([]),this[_0x3d49('0x3a')]['selectRevision'](_0x2ab7a8[0x0]));}['_createRevisionActions'](){const _0x8eb829=this['editor'],_0x556f81=w[_0x3d49('0x15')],_0x2afc6f=_0x8eb829[_0x3d49('0x1c')]['get'](_0x3d49('0x24'))||w['defaultRevisionActions'];if(_0x2afc6f[_0x3d49('0x2b')])return _0x2afc6f[_0x3d49('0x1b')](_0x42381e=>{const _0x233638=_0x3d49('0x22')==typeof _0x42381e?Object[_0x3d49('0x17')]({},_0x556f81[_0x42381e]):_0x42381e;return _0x233638[_0x3d49('0x14')]=_0x233638[_0x3d49('0x14')]['bind'](this,_0x8eb829),_0x233638[_0x3d49('0x1d')]&&(_0x233638[_0x3d49('0x1d')]=_0x233638['isVisible']['bind'](this,_0x8eb829)),_0x233638;});}}w[_0x3d49('0x15')]={'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x31dc62},_0x330379)=>{const _0x1ed868=_0x31dc62['get'](_0x4118f4),_0x1e9c04=_0x1ed868[_0x3d49('0x2a')];let _0x47cc9e=_0x1ed868[_0x3d49('0x4')][_0x3d49('0x35')],_0x1ae859=_0x330379['id'];_0x1e9c04[_0x3d49('0x31')](_0x47cc9e)>_0x1e9c04[_0x3d49('0x31')](_0x1ae859)&&([_0x47cc9e,_0x1ae859]=[_0x1ae859,_0x47cc9e]),_0x1ed868['compare'](_0x47cc9e,_0x1ae859);},'isVisible':({plugins:_0x3bc9d2},_0x4f16ad)=>{const _0x2e71cf=_0x3bc9d2[_0x3d49('0x9')](_0x4118f4);return!(_0x2e71cf[_0x3d49('0x2a')]['getRevisionsInDiff'](_0x2e71cf[_0x3d49('0x4')])[_0x3d49('0x2b')]>0x2)&&!_0x4f16ad['isSelected'];}},'restoreRevision':{'name':_0x3d49('0x1'),'action':(_0x53ee20,{id:_0x2733e5})=>{_0x53ee20[_0x3d49('0x1c')][_0x3d49('0x9')](_0x3d49('0x26'))[_0x3d49('0x0')](_0x2733e5);},'isVisible':({plugins:_0x463b9c},_0x3a5acb)=>!!_0x463b9c[_0x3d49('0x9')](_0x4118f4)[_0x3d49('0x2a')][_0x3d49('0x33')](_0x3a5acb['id'])},'nameRevision':{'name':_0x3d49('0x2'),'action':({plugins:_0x201451},{id:_0x52e120,revisionNameView:_0x24aa85})=>{const _0x3bf610=_0x201451[_0x3d49('0x9')](_0x4118f4),_0x233f7c=_0x3bf610[_0x3d49('0x2a')][_0x3d49('0xa')](_0x52e120);_0x3bf610[_0x3d49('0x34')](_0x52e120,_0x233f7c),_0x24aa85[_0x3d49('0x5')](),_0x24aa85[_0x3d49('0x3b')][_0x3d49('0x38')]();}}},w[_0x3d49('0x36')]=[_0x3d49('0x2f'),_0x3d49('0xe'),'nameRevision'];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x10fb=['ck-revision-history-sidebar__header','span','setTemplate','Revision\x20history','ck-reset_all','div'];(function(_0x117963,_0x10fbe9){const _0x46a5a4=function(_0x12b6b7){while(--_0x12b6b7){_0x117963['push'](_0x117963['shift']());}};_0x46a5a4(++_0x10fbe9);}(_0x10fb,0xad));const _0x46a5=function(_0x117963,_0x10fbe9){_0x117963=_0x117963-0x0;let _0x46a5a4=_0x10fb[_0x117963];return _0x46a5a4;};import{View as _0x32cc3d,IconView as _0x4e8cd9}from'ckeditor5/src/ui';import{getTranslation as _0x3914c4}from'../../utils/common-translations';import _0x10c690 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x32cc3d{constructor(_0x4cf3f4){super(_0x4cf3f4);const _0x821abd=new _0x4e8cd9();_0x821abd['content']=_0x10c690,this[_0x46a5('0x3')]({'tag':_0x46a5('0x0'),'attributes':{'class':['ck',_0x46a5('0x5'),_0x46a5('0x1')]},'children':[_0x821abd,{'tag':_0x46a5('0x2'),'attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[_0x3914c4(_0x4cf3f4,_0x46a5('0x4'))]}]});}}
23
+ const _0x4a4c=['Revision\x20history','ck-revision-history-sidebar__header','ck-revision-history-sidebar__header__label','div','span','setTemplate','content'];(function(_0x2977a8,_0x4a4c1c){const _0x137ddf=function(_0x5d6d49){while(--_0x5d6d49){_0x2977a8['push'](_0x2977a8['shift']());}};_0x137ddf(++_0x4a4c1c);}(_0x4a4c,0x112));const _0x137d=function(_0x2977a8,_0x4a4c1c){_0x2977a8=_0x2977a8-0x0;let _0x137ddf=_0x4a4c[_0x2977a8];return _0x137ddf;};import{View as _0x4e4a76,IconView as _0x4c8b0c}from'ckeditor5/src/ui';import{getTranslation as _0x264260}from'../../utils/common-translations';import _0x57a83d from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x4e4a76{constructor(_0x4d05b0){super(_0x4d05b0);const _0x1102f8=new _0x4c8b0c();_0x1102f8[_0x137d('0x5')]=_0x57a83d,this[_0x137d('0x4')]({'tag':_0x137d('0x2'),'attributes':{'class':['ck','ck-reset_all',_0x137d('0x0')]},'children':[_0x1102f8,{'tag':_0x137d('0x3'),'attributes':{'class':['ck',_0x137d('0x1')]},'children':[_0x264260(_0x4d05b0,_0x137d('0x6'))]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a34=['select','locale','createCollection','removeRevision','ck-revision-history-sidebar__time-period__revisions','delegate','ck-revision-history-sidebar__time-period','add','span','localizedPeriodName','addRevision','find','remove','setTemplate','startDate','revisionViews'];(function(_0x47298c,_0x2a348d){const _0x5270cb=function(_0x423561){while(--_0x423561){_0x47298c['push'](_0x47298c['shift']());}};_0x5270cb(++_0x2a348d);}(_0x2a34,0x18f));const _0x5270=function(_0x47298c,_0x2a348d){_0x47298c=_0x47298c-0x0;let _0x5270cb=_0x2a34[_0x47298c];return _0x5270cb;};import{View as _0x1b224b}from'ckeditor5/src/ui';import _0x5286da from'../revision/revisionview';import{getDateTimePeriodInfo as _0x2cde4f}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x1b224b{constructor(_0x1076bf,_0x45dcb5,_0x38e461){super(_0x1076bf);const _0x527c42=_0x2cde4f(_0x45dcb5,this['locale']['uiLanguage'])[_0x5270('0xa')];this[_0x5270('0xf')]=_0x45dcb5,this['revisionViews']=this[_0x5270('0x3')](),this['_revisionActions']=_0x38e461,this[_0x5270('0x0')]['delegate'](_0x5270('0x1'))['to'](this),this[_0x5270('0x0')][_0x5270('0x6')]('setName')['to'](this),this[_0x5270('0xe')]({'tag':'div','attributes':{'class':['ck',_0x5270('0x7')]},'children':[{'tag':_0x5270('0x9'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x527c42}]},{'tag':'div','attributes':{'class':['ck',_0x5270('0x5')]},'children':this[_0x5270('0x0')]}]});}[_0x5270('0xb')](_0x59eb0e){const _0x335879=new _0x5286da(this[_0x5270('0x2')],_0x59eb0e,this['_revisionActions']);this[_0x5270('0x0')][_0x5270('0x8')](_0x335879);}[_0x5270('0x4')](_0x1ae193){const _0x2769be=this[_0x5270('0x0')][_0x5270('0xc')](_0x3ca63a=>_0x3ca63a['id']===_0x1ae193['id']);this[_0x5270('0x0')][_0x5270('0xd')](_0x2769be);}}
23
+ const _0x460f=['setName','revisionViews','localizedPeriodName','span','createCollection','removeRevision','setTemplate','locale','add','startDate','addRevision','delegate','ck-revision-history-sidebar__time-period__revisions','uiLanguage','div'];(function(_0x403215,_0x460f9b){const _0x336afc=function(_0x44d330){while(--_0x44d330){_0x403215['push'](_0x403215['shift']());}};_0x336afc(++_0x460f9b);}(_0x460f,0x171));const _0x336a=function(_0x403215,_0x460f9b){_0x403215=_0x403215-0x0;let _0x336afc=_0x460f[_0x403215];return _0x336afc;};import{View as _0x1fb54f}from'ckeditor5/src/ui';import _0xefbb14 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x39f635}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x1fb54f{constructor(_0xfb3609,_0x3f9c55,_0x456c20){super(_0xfb3609);const _0xe23d26=_0x39f635(_0x3f9c55,this[_0x336a('0xd')][_0x336a('0x4')])[_0x336a('0x8')];this[_0x336a('0x0')]=_0x3f9c55,this[_0x336a('0x7')]=this[_0x336a('0xa')](),this['_revisionActions']=_0x456c20,this[_0x336a('0x7')][_0x336a('0x2')]('select')['to'](this),this[_0x336a('0x7')]['delegate'](_0x336a('0x6'))['to'](this),this[_0x336a('0xc')]({'tag':_0x336a('0x5'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':_0x336a('0x9'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0xe23d26}]},{'tag':'div','attributes':{'class':['ck',_0x336a('0x3')]},'children':this[_0x336a('0x7')]}]});}[_0x336a('0x1')](_0x3f3a7c){const _0x1eedf6=new _0xefbb14(this[_0x336a('0xd')],_0x3f3a7c,this['_revisionActions']);this[_0x336a('0x7')][_0x336a('0xe')](_0x1eedf6);}[_0x336a('0xb')](_0x457ce1){const _0x55a936=this['revisionViews']['find'](_0x3465a0=>_0x3465a0['id']===_0x457ce1['id']);this['revisionViews']['remove'](_0x55a936);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3889=['flat','_addRevision','isEnabled','getTime','_getTimePeriodViewByStartDate','some','render','map','revisionSetName','setTemplate','_revisions','uiLanguage','startDate','_revisionActions','set','add','_removeRevision','locale','ck-reset','get','setName','createdAt','fire','createCollection','timePeriodViews','select','unhighlight','revisionViews','div','find','ck-revision-history-sidebar','delegate','addRevision','highlight','ck-revision-history-sidebar__timeline'];(function(_0x3fafe6,_0x38891d){const _0x565a48=function(_0x54c7ce){while(--_0x54c7ce){_0x3fafe6['push'](_0x3fafe6['shift']());}};_0x565a48(++_0x38891d);}(_0x3889,0x16f));const _0x565a=function(_0x3fafe6,_0x38891d){_0x3fafe6=_0x3fafe6-0x0;let _0x565a48=_0x3889[_0x3fafe6];return _0x565a48;};import{View as _0x37e9c5}from'ckeditor5/src/ui';import _0x59d56f from'./revisionssidebartimeperiodview';import _0x103062 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x5a1d31}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x37e9c5{constructor(_0x2ea337,_0x2a35bd,_0x123b75){super(_0x2ea337);const _0x522b27=this['bindTemplate'];this[_0x565a('0x7')]=this[_0x565a('0x6')](),this[_0x565a('0x7')][_0x565a('0xe')](_0x565a('0x8'))['to'](this),this[_0x565a('0x7')][_0x565a('0xe')](_0x565a('0x3'))['to'](this),this[_0x565a('0x1c')]=_0x2a35bd,this[_0x565a('0x1f')]=_0x123b75,this['on'](_0x565a('0x8'),(_0x141d1a,_0x3a998b)=>{this[_0x565a('0x5')]('revisionSelected',_0x3a998b);}),this['on'](_0x565a('0x3'),(_0x33265b,_0x1d0d07)=>{this[_0x565a('0x5')](_0x565a('0x1a'),_0x1d0d07);}),this[_0x565a('0x20')](_0x565a('0x14'),!0x1),this[_0x565a('0x1b')]({'tag':_0x565a('0xb'),'attributes':{'class':['ck',_0x565a('0x1'),'ck-rounded-corners',_0x565a('0xd')]},'children':[new _0x103062(_0x2ea337),{'tag':_0x565a('0xb'),'attributes':{'class':['ck',_0x565a('0x11'),_0x522b27['if'](_0x565a('0x14'),'ck-disabled',_0x2b9396=>!_0x2b9396)]},'children':this[_0x565a('0x7')]}]});}[_0x565a('0x18')](){super['render']();for(const _0x3524c6 of this[_0x565a('0x1c')])this['_addRevision'](_0x3524c6);this[_0x565a('0x1c')]['on'](_0x565a('0x21'),(_0xb5c852,_0x19a7ac)=>{this[_0x565a('0x13')](_0x19a7ac);}),this[_0x565a('0x1c')]['on']('remove',(_0x1d628b,_0x302da6)=>{this['_removeRevision'](_0x302da6);});}get[_0x565a('0xa')](){return this[_0x565a('0x7')][_0x565a('0x19')](_0x1cd838=>_0x1cd838['revisionViews'][_0x565a('0x19')](_0x5bd476=>_0x5bd476))[_0x565a('0x12')]();}['selectRevision'](_0x11b5c7){for(const _0x33c1d1 of this[_0x565a('0xa')])_0x11b5c7&&_0x11b5c7['id']===_0x33c1d1['id']?_0x33c1d1[_0x565a('0x8')]():_0x33c1d1['deselect']();}['highlightRevisions'](_0x512992){for(const _0x542aa9 of this['revisionViews'])_0x512992[_0x565a('0x17')](({id:_0x247c29})=>_0x247c29===_0x542aa9['id'])?_0x542aa9[_0x565a('0x10')]():_0x542aa9[_0x565a('0x9')]();}[_0x565a('0x13')](_0x4b8084){const _0x2619be=_0x5a1d31(_0x4b8084['createdAt'],this[_0x565a('0x0')][_0x565a('0x1d')])[_0x565a('0x1e')];let _0x46256b=this[_0x565a('0x7')][_0x565a('0x2')](0x0);_0x46256b&&_0x46256b[_0x565a('0x1e')][_0x565a('0x15')]()===_0x2619be['getTime']()||(_0x46256b=new _0x59d56f(this[_0x565a('0x0')],_0x2619be,this[_0x565a('0x1f')]),this[_0x565a('0x7')]['add'](_0x46256b)),_0x46256b[_0x565a('0xf')](_0x4b8084);}[_0x565a('0x22')](_0x3aa83f){const _0x45cd88=_0x5a1d31(_0x3aa83f[_0x565a('0x4')],this['locale'][_0x565a('0x1d')])[_0x565a('0x1e')];this[_0x565a('0x16')](_0x45cd88)['removeRevision'](_0x3aa83f);}[_0x565a('0x16')](_0x53857a){return this['timePeriodViews'][_0x565a('0xc')](_0x318d6c=>_0x318d6c[_0x565a('0x1e')][_0x565a('0x15')]()===_0x53857a['getTime']());}}
23
+ const _0x531a=['ck-rounded-corners','remove','startDate','some','createdAt','selectRevision','removeRevision','unhighlight','add','_revisions','div','find','locale','timePeriodViews','ck-revision-history-sidebar','_getTimePeriodViewByStartDate','_addRevision','setName','ck-reset','delegate','map','getTime','ck-disabled','fire','isEnabled','createCollection','_revisionActions','revisionViews','addRevision','render','revisionSetName','get','setTemplate','highlight','set','uiLanguage','select','deselect','_removeRevision','bindTemplate','ck-revision-history-sidebar__timeline','revisionSelected','highlightRevisions'];(function(_0x5c09ee,_0x531a50){const _0x3ca5d3=function(_0x1f64c4){while(--_0x1f64c4){_0x5c09ee['push'](_0x5c09ee['shift']());}};_0x3ca5d3(++_0x531a50);}(_0x531a,0x1e7));const _0x3ca5=function(_0x5c09ee,_0x531a50){_0x5c09ee=_0x5c09ee-0x0;let _0x3ca5d3=_0x531a[_0x5c09ee];return _0x3ca5d3;};import{View as _0x55d471}from'ckeditor5/src/ui';import _0x4d874d from'./revisionssidebartimeperiodview';import _0x57065e from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x49415e}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x55d471{constructor(_0xf6517,_0x21d42a,_0x5a3cae){super(_0xf6517);const _0x10c4e8=this[_0x3ca5('0x19')];this[_0x3ca5('0x2a')]=this[_0x3ca5('0xb')](),this[_0x3ca5('0x2a')][_0x3ca5('0x5')](_0x3ca5('0x16'))['to'](this),this[_0x3ca5('0x2a')][_0x3ca5('0x5')](_0x3ca5('0x3'))['to'](this),this[_0x3ca5('0x26')]=_0x21d42a,this[_0x3ca5('0xc')]=_0x5a3cae,this['on'](_0x3ca5('0x16'),(_0x271489,_0x5e086d)=>{this[_0x3ca5('0x9')](_0x3ca5('0x1b'),_0x5e086d);}),this['on'](_0x3ca5('0x3'),(_0x1df029,_0x7cf8a0)=>{this['fire'](_0x3ca5('0x10'),_0x7cf8a0);}),this[_0x3ca5('0x14')](_0x3ca5('0xa'),!0x1),this[_0x3ca5('0x12')]({'tag':_0x3ca5('0x27'),'attributes':{'class':['ck',_0x3ca5('0x4'),_0x3ca5('0x1d'),_0x3ca5('0x0')]},'children':[new _0x57065e(_0xf6517),{'tag':_0x3ca5('0x27'),'attributes':{'class':['ck',_0x3ca5('0x1a'),_0x10c4e8['if'](_0x3ca5('0xa'),_0x3ca5('0x8'),_0x47d326=>!_0x47d326)]},'children':this[_0x3ca5('0x2a')]}]});}[_0x3ca5('0xf')](){super[_0x3ca5('0xf')]();for(const _0x3c9036 of this[_0x3ca5('0x26')])this[_0x3ca5('0x2')](_0x3c9036);this[_0x3ca5('0x26')]['on'](_0x3ca5('0x25'),(_0x364f9a,_0x5855c0)=>{this[_0x3ca5('0x2')](_0x5855c0);}),this['_revisions']['on'](_0x3ca5('0x1e'),(_0x3d47a0,_0x504463)=>{this[_0x3ca5('0x18')](_0x504463);});}get[_0x3ca5('0xd')](){return this[_0x3ca5('0x2a')][_0x3ca5('0x6')](_0x5e7c22=>_0x5e7c22[_0x3ca5('0xd')][_0x3ca5('0x6')](_0x5c4f87=>_0x5c4f87))['flat']();}[_0x3ca5('0x22')](_0x3ad359){for(const _0x5d98d3 of this[_0x3ca5('0xd')])_0x3ad359&&_0x3ad359['id']===_0x5d98d3['id']?_0x5d98d3[_0x3ca5('0x16')]():_0x5d98d3[_0x3ca5('0x17')]();}[_0x3ca5('0x1c')](_0x3c616c){for(const _0x5e7e74 of this[_0x3ca5('0xd')])_0x3c616c[_0x3ca5('0x20')](({id:_0x1950e0})=>_0x1950e0===_0x5e7e74['id'])?_0x5e7e74[_0x3ca5('0x13')]():_0x5e7e74[_0x3ca5('0x24')]();}[_0x3ca5('0x2')](_0x272e0c){const _0x19fe66=_0x49415e(_0x272e0c[_0x3ca5('0x21')],this[_0x3ca5('0x29')]['uiLanguage'])[_0x3ca5('0x1f')];let _0x5691ae=this['timePeriodViews'][_0x3ca5('0x11')](0x0);_0x5691ae&&_0x5691ae[_0x3ca5('0x1f')][_0x3ca5('0x7')]()===_0x19fe66['getTime']()||(_0x5691ae=new _0x4d874d(this[_0x3ca5('0x29')],_0x19fe66,this['_revisionActions']),this[_0x3ca5('0x2a')]['add'](_0x5691ae)),_0x5691ae[_0x3ca5('0xe')](_0x272e0c);}[_0x3ca5('0x18')](_0x9e2f70){const _0x59f3a7=_0x49415e(_0x9e2f70[_0x3ca5('0x21')],this['locale'][_0x3ca5('0x15')])[_0x3ca5('0x1f')];this[_0x3ca5('0x1')](_0x59f3a7)[_0x3ca5('0x23')](_0x9e2f70);}[_0x3ca5('0x1')](_0xa4ca18){return this[_0x3ca5('0x2a')][_0x3ca5('0x28')](_0x45bfcd=>_0x45bfcd['startDate'][_0x3ca5('0x7')]()===_0xa4ca18[_0x3ca5('0x7')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4838=['week','fromJSDate','local','day','setLocale','toJSDate','year','weekdayLong','minus','startOf','toRelativeCalendar','hasSame'];(function(_0x3e6166,_0x4838e9){const _0x21a110=function(_0x13090c){while(--_0x13090c){_0x3e6166['push'](_0x3e6166['shift']());}};_0x21a110(++_0x4838e9);}(_0x4838,0x16a));const _0x21a1=function(_0x3e6166,_0x4838e9){_0x3e6166=_0x3e6166-0x0;let _0x21a110=_0x4838[_0x3e6166];return _0x21a110;};import{DateTime as _0x46a43f}from'luxon';export function getDateTimePeriodInfo(_0x4a2638,_0x91a9d7){const _0x5bc7fc=_0x46a43f[_0x21a1('0xb')](_0x4a2638)[_0x21a1('0x2')](_0x91a9d7),_0x281e9e=_0x46a43f[_0x21a1('0x0')](),_0xb46174=_0x281e9e[_0x21a1('0x6')]({'days':0x1})[_0x21a1('0x7')]('day');let _0x3f533d,_0x50ab14;return _0x5bc7fc[_0x21a1('0x9')](_0x281e9e,_0x21a1('0x1'))?(_0x3f533d=_0x5bc7fc[_0x21a1('0x7')](_0x21a1('0x1'))[_0x21a1('0x3')](),_0x50ab14=_0x5bc7fc[_0x21a1('0x8')]()):_0x5bc7fc[_0x21a1('0x9')](_0xb46174,_0x21a1('0x1'))?(_0x3f533d=_0xb46174[_0x21a1('0x3')](),_0x50ab14=_0x5bc7fc[_0x21a1('0x8')]()):_0x5bc7fc['hasSame'](_0x281e9e,_0x21a1('0xa'))?(_0x3f533d=_0x5bc7fc[_0x21a1('0x7')](_0x21a1('0xa'))[_0x21a1('0x3')](),_0x50ab14=_0x5bc7fc[_0x21a1('0x5')]||''):_0x5bc7fc[_0x21a1('0x9')](_0x281e9e,_0x21a1('0x4'))?(_0x3f533d=_0x5bc7fc['startOf']('month')[_0x21a1('0x3')](),_0x50ab14=_0x5bc7fc['monthLong']||''):(_0x3f533d=_0x5bc7fc[_0x21a1('0x7')](_0x21a1('0x4'))[_0x21a1('0x3')](),_0x50ab14=String(_0x5bc7fc[_0x21a1('0x4')])),{'startDate':_0x3f533d,'localizedPeriodName':_0x50ab14};}
23
+ const _0x4128=['hasSame','toJSDate','startOf','weekdayLong','week','month','day','year','minus','fromJSDate','toRelativeCalendar'];(function(_0x42e93b,_0x41287c){const _0x48ec14=function(_0x205a07){while(--_0x205a07){_0x42e93b['push'](_0x42e93b['shift']());}};_0x48ec14(++_0x41287c);}(_0x4128,0x17d));const _0x48ec=function(_0x42e93b,_0x41287c){_0x42e93b=_0x42e93b-0x0;let _0x48ec14=_0x4128[_0x42e93b];return _0x48ec14;};import{DateTime as _0x5966db}from'luxon';export function getDateTimePeriodInfo(_0x1e5692,_0x28f66d){const _0x4450c9=_0x5966db[_0x48ec('0x2')](_0x1e5692)['setLocale'](_0x28f66d),_0x6ce50d=_0x5966db['local'](),_0x38f1a1=_0x6ce50d[_0x48ec('0x1')]({'days':0x1})[_0x48ec('0x6')]('day');let _0x3b2642,_0x551222;return _0x4450c9[_0x48ec('0x4')](_0x6ce50d,_0x48ec('0xa'))?(_0x3b2642=_0x4450c9[_0x48ec('0x6')](_0x48ec('0xa'))[_0x48ec('0x5')](),_0x551222=_0x4450c9[_0x48ec('0x3')]()):_0x4450c9[_0x48ec('0x4')](_0x38f1a1,_0x48ec('0xa'))?(_0x3b2642=_0x38f1a1[_0x48ec('0x5')](),_0x551222=_0x4450c9[_0x48ec('0x3')]()):_0x4450c9[_0x48ec('0x4')](_0x6ce50d,_0x48ec('0x8'))?(_0x3b2642=_0x4450c9[_0x48ec('0x6')](_0x48ec('0x8'))['toJSDate'](),_0x551222=_0x4450c9[_0x48ec('0x7')]||''):_0x4450c9[_0x48ec('0x4')](_0x6ce50d,_0x48ec('0x0'))?(_0x3b2642=_0x4450c9[_0x48ec('0x6')](_0x48ec('0x9'))[_0x48ec('0x5')](),_0x551222=_0x4450c9['monthLong']||''):(_0x3b2642=_0x4450c9['startOf'](_0x48ec('0x0'))['toJSDate'](),_0x551222=String(_0x4450c9[_0x48ec('0x0')])),{'startDate':_0x3b2642,'localizedPeriodName':_0x551222};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xfd07=['div','ck-revision-change__','ck-revision-change','_model','type','Suggested\x20by','ck-revision-change__label','ck-annotation','add','setTemplate','span','name','changeId','isSuggestion','author','element','data','Added\x20by','focus'];(function(_0x992244,_0xfd0753){const _0x528e05=function(_0x41f73b){while(--_0x41f73b){_0x992244['push'](_0x992244['shift']());}};_0x528e05(++_0xfd0753);}(_0xfd07,0x8c));const _0x528e=function(_0x992244,_0xfd0753){_0x992244=_0x992244-0x0;let _0x528e05=_0xfd07[_0x992244];return _0x528e05;};import{View as _0x4a1c36}from'ckeditor5/src/ui';import{getTranslation as _0x452592}from'../../utils/common-translations';export default class X extends _0x4a1c36{constructor(_0x20572e,_0x101d92){super(_0x20572e),this[_0x528e('0xf')]=_0x101d92,this[_0x528e('0x5')]=_0x101d92['id'];const _0x2ba878=this['bindTemplate'],_0x2b3652=_0x452592(_0x20572e,_0x101d92[_0x528e('0x9')][_0x528e('0x6')]?_0x528e('0x11'):_0x528e('0x1')==_0x101d92[_0x528e('0x10')]?_0x528e('0xa'):'Removed\x20by');this['set']('type',_0x101d92[_0x528e('0x10')]),this[_0x528e('0x2')]({'tag':_0x528e('0xc'),'attributes':{'class':[_0x528e('0x0'),_0x528e('0xe'),_0x2ba878['to'](_0x528e('0x10'),_0x4cb099=>_0x528e('0xd')+_0x4cb099)],'tabindex':-0x1},'children':[{'tag':_0x528e('0x3'),'children':[{'tag':'span','attributes':{'class':[_0x528e('0x12')]},'children':[{'text':_0x2b3652}]},{'text':'\x20'+_0x101d92[_0x528e('0x7')][_0x528e('0x4')]}]}]});}[_0x528e('0xb')](){this[_0x528e('0x8')][_0x528e('0xb')]();}}
23
+ const _0x2123=['_model','isSuggestion','setTemplate','set','name','author','span','Removed\x20by','ck-revision-change','changeId','type','ck-revision-change__label','Suggested\x20by','ck-annotation','element','ck-revision-change__','Added\x20by','focus'];(function(_0x3fa36f,_0x2123ef){const _0x2743e0=function(_0xca5839){while(--_0xca5839){_0x3fa36f['push'](_0x3fa36f['shift']());}};_0x2743e0(++_0x2123ef);}(_0x2123,0x16f));const _0x2743=function(_0x3fa36f,_0x2123ef){_0x3fa36f=_0x3fa36f-0x0;let _0x2743e0=_0x2123[_0x3fa36f];return _0x2743e0;};import{View as _0x2804a2}from'ckeditor5/src/ui';import{getTranslation as _0x878055}from'../../utils/common-translations';export default class Z extends _0x2804a2{constructor(_0xba3260,_0x111bb3){super(_0xba3260),this[_0x2743('0xb')]=_0x111bb3,this[_0x2743('0x2')]=_0x111bb3['id'];const _0x1abca8=this['bindTemplate'],_0x719b35=_0x878055(_0xba3260,_0x111bb3['data'][_0x2743('0xc')]?_0x2743('0x5'):'add'==_0x111bb3[_0x2743('0x3')]?_0x2743('0x9'):_0x2743('0x0'));this[_0x2743('0xe')]('type',_0x111bb3['type']),this[_0x2743('0xd')]({'tag':'div','attributes':{'class':[_0x2743('0x6'),_0x2743('0x1'),_0x1abca8['to']('type',_0x32d5c7=>_0x2743('0x8')+_0x32d5c7)],'tabindex':-0x1},'children':[{'tag':_0x2743('0x11'),'children':[{'tag':_0x2743('0x11'),'attributes':{'class':[_0x2743('0x4')]},'children':[{'text':_0x719b35}]},{'text':'\x20'+_0x111bb3[_0x2743('0x10')][_0x2743('0xf')]}]}]});}['focus'](){this[_0x2743('0x7')][_0x2743('0xa')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5e72=['setTemplate','currentChangeNumber','ck-revision-history-ui__changes-navigation__navigation','numberOfChanges','isNavigationMode','set','ck-revision-history-ui__changes-navigation','isForwardNavigationEnabled','execute','bind','Show\x20previous\x20change','backward','ck-hidden','Show\x20next\x20change','NUMBER_OF_CHANGES','bindTemplate','isBackwardNavigationEnabled','X_OF_Y_CHANGES','forward','isEnabled','isReady','_isStatusLabelVisible','Total','Loading...','_statusText','div','span','No\x20changes','fire','ck-revision-history-ui','ck-revision-history-ui__changes-navigation__label'];(function(_0x266888,_0x5e7237){const _0x3bed87=function(_0x4a5a83){while(--_0x4a5a83){_0x266888['push'](_0x266888['shift']());}};_0x3bed87(++_0x5e7237);}(_0x5e72,0x105));const _0x3bed=function(_0x266888,_0x5e7237){_0x266888=_0x266888-0x0;let _0x3bed87=_0x5e72[_0x266888];return _0x3bed87;};import{View as _0x1a6253,ButtonView as _0x55fd34,ToolbarSeparatorView as _0x3d0898}from'ckeditor5/src/ui';import{getTranslation as _0x2db744}from'../../utils/common-translations';import _0x48b812 from'../../../theme/icons/arrow-up.svg';import _0x2e07bd from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x1a6253{constructor(_0x4440a9){super(_0x4440a9);const _0x11173f=this[_0x3bed('0x2')],_0x536097=new _0x55fd34(_0x4440a9),_0x5d2cd5=new _0x55fd34(_0x4440a9);this[_0x3bed('0x17')]('isNavigationMode',!0x1),this['set']('isReady',!0x1),this[_0x3bed('0x17')](_0x3bed('0x13'),0x0),this[_0x3bed('0x17')](_0x3bed('0x15'),0x0),this[_0x3bed('0x17')](_0x3bed('0x19'),!0x1),this[_0x3bed('0x17')](_0x3bed('0x3'),!0x1),this['bind'](_0x3bed('0x8'))['to'](this,'isReady',this,'numberOfChanges',(_0x3ad9b4,_0xa556a3)=>_0x3ad9b4&&_0xa556a3>0x0),this['bind'](_0x3bed('0xb'))['to'](this,_0x3bed('0x7'),this,_0x3bed('0x13'),this,_0x3bed('0x15'),this,_0x3bed('0x16'),(_0x3207f6,_0x35d3a3,_0x39e5d7,_0xeaa3f6)=>{if(!_0x3207f6)return _0x2db744(_0x4440a9,_0x3bed('0xa'));if(!_0x39e5d7)return _0x2db744(_0x4440a9,_0x3bed('0xe'));const _0x14172b=_0x2db744(_0x4440a9,_0x3bed('0x1'),_0x39e5d7);return _0xeaa3f6?_0x2db744(_0x4440a9,_0x3bed('0x4'),[_0x35d3a3+0x1,_0x39e5d7]):_0x14172b;}),_0x536097[_0x3bed('0x17')]({'label':_0x2db744(_0x4440a9,_0x3bed('0x1c')),'tooltip':!0x0,'icon':_0x48b812}),_0x5d2cd5['set']({'label':_0x2db744(_0x4440a9,_0x3bed('0x0')),'tooltip':!0x0,'icon':_0x2e07bd}),_0x536097[_0x3bed('0x1b')](_0x3bed('0x6'))['to'](this,_0x3bed('0x3')),_0x5d2cd5[_0x3bed('0x1b')](_0x3bed('0x6'))['to'](this,'isForwardNavigationEnabled'),_0x536097['on'](_0x3bed('0x1a'),()=>this[_0x3bed('0xf')](_0x3bed('0x1a'),_0x3bed('0x1d'))),_0x5d2cd5['on'](_0x3bed('0x1a'),()=>this[_0x3bed('0xf')](_0x3bed('0x1a'),_0x3bed('0x5'))),this[_0x3bed('0x12')]({'tag':'div','attributes':{'class':['ck',_0x3bed('0x10'),_0x3bed('0x18')]},'children':[{'tag':_0x3bed('0xd'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':_0x3bed('0xd'),'attributes':{'class':[_0x3bed('0x11'),_0x11173f['if'](_0x3bed('0x8'),_0x3bed('0x1e'),_0x18712b=>!_0x18712b)]},'children':[{'text':_0x11173f['to']('isNavigationMode',_0x5d1568=>_0x5d1568?_0x2db744(_0x4440a9,'EDIT_X_OF_Y_REVISIONS')+':\x20':_0x2db744(_0x4440a9,_0x3bed('0x9'))+':\x20')}]},{'text':_0x11173f['to'](_0x3bed('0xb'))}]},new _0x3d0898(),{'tag':_0x3bed('0xc'),'attributes':{'class':[_0x3bed('0x14')]},'children':[_0x536097,_0x5d2cd5]}]});}}
23
+ const _0x4407=['EDIT_X_OF_Y_REVISIONS','span','ck-revision-history-ui__changes-navigation__wrapper','NUMBER_OF_CHANGES','isReady','set','isNavigationMode','_statusText','numberOfChanges','backward','execute','div','ck-revision-history-ui__changes-navigation','_isStatusLabelVisible','Total','No\x20changes','Loading...','X_OF_Y_CHANGES','Show\x20previous\x20change','isEnabled','setTemplate','fire','ck-hidden','bind','forward','isForwardNavigationEnabled','ck-revision-history-ui__changes-navigation__navigation','Show\x20next\x20change','currentChangeNumber'];(function(_0x58fe7d,_0x4407af){const _0x28ec0f=function(_0xe62c15){while(--_0xe62c15){_0x58fe7d['push'](_0x58fe7d['shift']());}};_0x28ec0f(++_0x4407af);}(_0x4407,0x1da));const _0x28ec=function(_0x58fe7d,_0x4407af){_0x58fe7d=_0x58fe7d-0x0;let _0x28ec0f=_0x4407[_0x58fe7d];return _0x28ec0f;};import{View as _0x488bfb,ButtonView as _0x449e7a,ToolbarSeparatorView as _0x8cb588}from'ckeditor5/src/ui';import{getTranslation as _0x128c8d}from'../../utils/common-translations';import _0x414c10 from'../../../theme/icons/arrow-up.svg';import _0x97fca9 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x488bfb{constructor(_0x532ed0){super(_0x532ed0);const _0x48eb3a=this['bindTemplate'],_0x5323b1=new _0x449e7a(_0x532ed0),_0x1455ea=new _0x449e7a(_0x532ed0);this[_0x28ec('0x18')]('isNavigationMode',!0x1),this[_0x28ec('0x18')](_0x28ec('0x17'),!0x1),this[_0x28ec('0x18')](_0x28ec('0x12'),0x0),this[_0x28ec('0x18')]('numberOfChanges',0x0),this[_0x28ec('0x18')](_0x28ec('0xf'),!0x1),this[_0x28ec('0x18')]('isBackwardNavigationEnabled',!0x1),this[_0x28ec('0xd')]('_isStatusLabelVisible')['to'](this,_0x28ec('0x17'),this,_0x28ec('0x1b'),(_0x26b971,_0x21eea3)=>_0x26b971&&_0x21eea3>0x0),this[_0x28ec('0xd')]('_statusText')['to'](this,_0x28ec('0x17'),this,_0x28ec('0x12'),this,_0x28ec('0x1b'),this,'isNavigationMode',(_0x36b5de,_0x59ab44,_0x287bcd,_0x144d42)=>{if(!_0x36b5de)return _0x128c8d(_0x532ed0,_0x28ec('0x6'));if(!_0x287bcd)return _0x128c8d(_0x532ed0,_0x28ec('0x5'));const _0x14a6f8=_0x128c8d(_0x532ed0,_0x28ec('0x16'),_0x287bcd);return _0x144d42?_0x128c8d(_0x532ed0,_0x28ec('0x7'),[_0x59ab44+0x1,_0x287bcd]):_0x14a6f8;}),_0x5323b1['set']({'label':_0x128c8d(_0x532ed0,_0x28ec('0x8')),'tooltip':!0x0,'icon':_0x414c10}),_0x1455ea[_0x28ec('0x18')]({'label':_0x128c8d(_0x532ed0,_0x28ec('0x11')),'tooltip':!0x0,'icon':_0x97fca9}),_0x5323b1[_0x28ec('0xd')]('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x1455ea[_0x28ec('0xd')](_0x28ec('0x9'))['to'](this,_0x28ec('0xf')),_0x5323b1['on']('execute',()=>this[_0x28ec('0xb')](_0x28ec('0x0'),_0x28ec('0x1c'))),_0x1455ea['on'](_0x28ec('0x0'),()=>this[_0x28ec('0xb')]('execute',_0x28ec('0xe'))),this[_0x28ec('0xa')]({'tag':_0x28ec('0x1'),'attributes':{'class':['ck','ck-revision-history-ui',_0x28ec('0x2')]},'children':[{'tag':_0x28ec('0x14'),'attributes':{'class':[_0x28ec('0x15')]},'children':[{'tag':_0x28ec('0x14'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x48eb3a['if'](_0x28ec('0x3'),_0x28ec('0xc'),_0x13a158=>!_0x13a158)]},'children':[{'text':_0x48eb3a['to'](_0x28ec('0x19'),_0x10d444=>_0x10d444?_0x128c8d(_0x532ed0,_0x28ec('0x13'))+':\x20':_0x128c8d(_0x532ed0,_0x28ec('0x4'))+':\x20')}]},{'text':_0x48eb3a['to'](_0x28ec('0x1a'))}]},new _0x8cb588(),{'tag':_0x28ec('0x1'),'attributes':{'class':[_0x28ec('0x10')]},'children':[_0x5323b1,_0x1455ea]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2839=['view','roots','pluginName','ck-editor__editable__loading-overlay','addClass','hide','editing','change','document','editor','show'];(function(_0x106e29,_0x28397d){const _0x3b14d0=function(_0x18f32c){while(--_0x18f32c){_0x106e29['push'](_0x106e29['shift']());}};_0x3b14d0(++_0x28397d);}(_0x2839,0xa9));const _0x3b14=function(_0x106e29,_0x28397d){_0x106e29=_0x106e29-0x0;let _0x3b14d0=_0x2839[_0x106e29];return _0x3b14d0;};import{Plugin as _0x29fd3f}from'ckeditor5/src/core';const oe=_0x3b14('0xa');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x29fd3f{static get[_0x3b14('0x9')](){return'RevisionViewerLoadingOverlay';}[_0x3b14('0x6')](){const _0x31c111=this['editor'][_0x3b14('0x2')][_0x3b14('0x7')];_0x31c111[_0x3b14('0x3')](_0x4351f1=>{for(const _0x461ee2 of _0x31c111[_0x3b14('0x4')][_0x3b14('0x8')])_0x4351f1[_0x3b14('0x0')](oe,_0x461ee2);});}[_0x3b14('0x1')](){const _0x548ead=this[_0x3b14('0x5')][_0x3b14('0x2')][_0x3b14('0x7')];_0x548ead[_0x3b14('0x3')](_0x2d5cf2=>{for(const _0x493dab of _0x548ead[_0x3b14('0x4')][_0x3b14('0x8')])_0x2d5cf2['removeClass'](oe,_0x493dab);});}}
23
+ const _0x2fca=['RevisionViewerLoadingOverlay','show','ck-editor__editable__loading-overlay','roots','pluginName','editing','view','addClass','editor','change'];(function(_0x56fbe8,_0x2fca47){const _0x37cd3d=function(_0x219875){while(--_0x219875){_0x56fbe8['push'](_0x56fbe8['shift']());}};_0x37cd3d(++_0x2fca47);}(_0x2fca,0x1d1));const _0x37cd=function(_0x56fbe8,_0x2fca47){_0x56fbe8=_0x56fbe8-0x0;let _0x37cd3d=_0x2fca[_0x56fbe8];return _0x37cd3d;};import{Plugin as _0xae4616}from'ckeditor5/src/core';const oe=_0x37cd('0x7');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0xae4616{static get[_0x37cd('0x9')](){return _0x37cd('0x5');}[_0x37cd('0x6')](){const _0x234cf2=this[_0x37cd('0x3')][_0x37cd('0x0')][_0x37cd('0x1')];_0x234cf2[_0x37cd('0x4')](_0x2b5360=>{for(const _0x38c7f6 of _0x234cf2['document']['roots'])_0x2b5360[_0x37cd('0x2')](oe,_0x38c7f6);});}['hide'](){const _0xea8d43=this[_0x37cd('0x3')][_0x37cd('0x0')][_0x37cd('0x1')];_0xea8d43[_0x37cd('0x4')](_0x381007=>{for(const _0x2e72bc of _0xea8d43['document'][_0x37cd('0x8')])_0x381007['removeClass'](oe,_0x2e72bc);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x57a9=['showNextChange','closeRevisionViewerCallback','isForwardNavigationEnabled','execute','listenTo','config','hide','commands','isBackwardNavigationEnabled','showPreviousChange','change:isReady','exitToEditing','componentFactory','isEnabled','get','restoreRevision','show','changesNavigation','bind','Restore\x20this\x20revision','forward','plugins','add','numberOfChanges','Back\x20to\x20editing','set','RevisionViewerUI','requires'];(function(_0x2a7abf,_0x57a936){const _0xf1e47=function(_0x3f4c2b){while(--_0x3f4c2b){_0x2a7abf['push'](_0x2a7abf['shift']());}};_0xf1e47(++_0x57a936);}(_0x57a9,0x116));const _0xf1e4=function(_0x2a7abf,_0x57a936){_0x2a7abf=_0x2a7abf-0x0;let _0xf1e47=_0x57a9[_0x2a7abf];return _0xf1e47;};import{Plugin as _0x3d19c8}from'ckeditor5/src/core';import{ButtonView as _0x19f36b}from'ckeditor5/src/ui';import _0xfa52b3 from'./changesnavigationview';import _0x1aa734 from'./../../revisionviewer';import _0x16d1a4 from'./revisionviewerloadingoverlay';import{getTranslation as _0x212568}from'../../utils/common-translations';import _0x26747e from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class w extends _0x3d19c8{static get['pluginName'](){return _0xf1e4('0x0');}static get[_0xf1e4('0x1')](){return[_0x1aa734,_0x16d1a4];}['init'](){const _0x1f1dcc=this['editor'],_0x29936e=_0x1f1dcc['plugins'][_0xf1e4('0x10')](_0x1aa734),_0x4a4f72=_0x1f1dcc[_0xf1e4('0x17')][_0xf1e4('0x10')](_0x16d1a4);_0x1f1dcc['ui'][_0xf1e4('0xe')][_0xf1e4('0x18')](_0xf1e4('0xd'),_0x27c6b1=>{const _0x32dfbd=new _0x19f36b(_0x27c6b1);return _0x32dfbd[_0xf1e4('0x1b')]({'label':_0x212568(_0x27c6b1,_0xf1e4('0x1a')),'icon':_0x26747e,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this[_0xf1e4('0x6')](_0x32dfbd,_0xf1e4('0x5'),()=>{_0x1f1dcc[_0xf1e4('0x7')][_0xf1e4('0x10')]('revisionHistory')[_0xf1e4('0x3')]();}),_0x32dfbd;}),_0x1f1dcc['ui'][_0xf1e4('0xe')][_0xf1e4('0x18')](_0xf1e4('0x11'),_0x60e7ba=>{const _0x5c2b44=new _0x19f36b(_0x60e7ba);return _0x5c2b44[_0xf1e4('0x1b')]({'label':_0x212568(_0x60e7ba,_0xf1e4('0x15')),'withText':!0x0,'tooltip':!0x0}),_0x5c2b44[_0xf1e4('0x14')](_0xf1e4('0xf'))['to'](_0x1f1dcc[_0xf1e4('0x9')][_0xf1e4('0x10')](_0xf1e4('0x11'))),this['listenTo'](_0x5c2b44,_0xf1e4('0x5'),()=>_0x1f1dcc[_0xf1e4('0x5')](_0xf1e4('0x11'))),_0x5c2b44;}),_0x1f1dcc['ui'][_0xf1e4('0xe')][_0xf1e4('0x18')](_0xf1e4('0x13'),_0x1aba4e=>{const _0x3029f0=new _0xfa52b3(_0x1aba4e),_0x313efa=_0x1f1dcc[_0xf1e4('0x9')][_0xf1e4('0x10')](_0xf1e4('0xb')),_0x127813=_0x1f1dcc['commands'][_0xf1e4('0x10')](_0xf1e4('0x2'));return _0x3029f0[_0xf1e4('0x14')](_0xf1e4('0xa'))['to'](_0x313efa,_0xf1e4('0xf')),_0x3029f0[_0xf1e4('0x14')](_0xf1e4('0x4'))['to'](_0x127813,_0xf1e4('0xf')),_0x3029f0[_0xf1e4('0x14')]('isReady','currentChangeNumber',_0xf1e4('0x19'),'isNavigationMode')['to'](_0x29936e),this[_0xf1e4('0x6')](_0x3029f0,'execute',(_0x3494e0,_0x3d07af)=>{_0x1f1dcc['execute'](_0xf1e4('0x16')===_0x3d07af?'showNextChange':'showPreviousChange');}),_0x3029f0;}),_0x4a4f72[_0xf1e4('0x12')](),_0x29936e['on'](_0xf1e4('0xc'),(_0xca3529,_0x38cd35,_0x57704f)=>{_0x57704f?_0x4a4f72[_0xf1e4('0x8')]():_0x4a4f72[_0xf1e4('0x12')]();});}}
23
+ const _0x1675=['isBackwardNavigationEnabled','bind','showNextChange','change:isReady','Restore\x20this\x20revision','show','plugins','requires','get','numberOfChanges','init','revisionHistory','pluginName','Back\x20to\x20editing','hide','isReady','editor','isEnabled','add','exitToEditing','listenTo','restoreRevision','showPreviousChange','commands','componentFactory','isForwardNavigationEnabled','set','execute','currentChangeNumber'];(function(_0x45f139,_0x167578){const _0x175933=function(_0x599e28){while(--_0x599e28){_0x45f139['push'](_0x45f139['shift']());}};_0x175933(++_0x167578);}(_0x1675,0x18a));const _0x1759=function(_0x45f139,_0x167578){_0x45f139=_0x45f139-0x0;let _0x175933=_0x1675[_0x45f139];return _0x175933;};import{Plugin as _0x511803}from'ckeditor5/src/core';import{ButtonView as _0x47a555}from'ckeditor5/src/ui';import _0x41813d from'./changesnavigationview';import _0x50490a from'./../../revisionviewer';import _0x5770da from'./revisionviewerloadingoverlay';import{getTranslation as _0x31e04e}from'../../utils/common-translations';import _0x2a986 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x511803{static get[_0x1759('0x18')](){return'RevisionViewerUI';}static get[_0x1759('0x13')](){return[_0x50490a,_0x5770da];}[_0x1759('0x16')](){const _0xc338c6=this[_0x1759('0x1c')],_0x49d4da=_0xc338c6[_0x1759('0x12')][_0x1759('0x14')](_0x50490a),_0x10ebe6=_0xc338c6['plugins'][_0x1759('0x14')](_0x5770da);_0xc338c6['ui'][_0x1759('0x7')][_0x1759('0x1')](_0x1759('0x2'),_0x31a26=>{const _0x33a639=new _0x47a555(_0x31a26);return _0x33a639[_0x1759('0x9')]({'label':_0x31e04e(_0x31a26,_0x1759('0x19')),'icon':_0x2a986,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this[_0x1759('0x3')](_0x33a639,_0x1759('0xa'),()=>{_0xc338c6['config'][_0x1759('0x14')](_0x1759('0x17'))['closeRevisionViewerCallback']();}),_0x33a639;}),_0xc338c6['ui'][_0x1759('0x7')]['add']('restoreRevision',_0x44ca00=>{const _0xeca89a=new _0x47a555(_0x44ca00);return _0xeca89a[_0x1759('0x9')]({'label':_0x31e04e(_0x44ca00,_0x1759('0x10')),'withText':!0x0,'tooltip':!0x0}),_0xeca89a[_0x1759('0xd')]('isEnabled')['to'](_0xc338c6[_0x1759('0x6')][_0x1759('0x14')]('restoreRevision')),this[_0x1759('0x3')](_0xeca89a,'execute',()=>_0xc338c6[_0x1759('0xa')](_0x1759('0x4'))),_0xeca89a;}),_0xc338c6['ui']['componentFactory'][_0x1759('0x1')]('changesNavigation',_0x432b0c=>{const _0x27d33e=new _0x41813d(_0x432b0c),_0x10cf75=_0xc338c6[_0x1759('0x6')][_0x1759('0x14')](_0x1759('0x5')),_0x5828e0=_0xc338c6[_0x1759('0x6')][_0x1759('0x14')](_0x1759('0xe'));return _0x27d33e['bind'](_0x1759('0xc'))['to'](_0x10cf75,'isEnabled'),_0x27d33e['bind'](_0x1759('0x8'))['to'](_0x5828e0,_0x1759('0x0')),_0x27d33e[_0x1759('0xd')](_0x1759('0x1b'),_0x1759('0xb'),_0x1759('0x15'),'isNavigationMode')['to'](_0x49d4da),this[_0x1759('0x3')](_0x27d33e,_0x1759('0xa'),(_0x2b9aaa,_0x477dc9)=>{_0xc338c6[_0x1759('0xa')]('forward'===_0x477dc9?_0x1759('0xe'):_0x1759('0x5'));}),_0x27d33e;}),_0x10ebe6[_0x1759('0x11')](),_0x49d4da['on'](_0x1759('0xf'),(_0x794c73,_0x37f7fe,_0x277ff7)=>{_0x277ff7?_0x10ebe6[_0x1759('0x1a')]():_0x10ebe6[_0x1759('0x11')]();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x3dd14f,_0x17bc9d,_0x4043d8){const t=_0x3dd14f['t'];switch(_0x17bc9d){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'},_0x4043d8);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4043d8);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 _0x17bc9d;}}
23
+ export function getTranslation(_0x2f676d,_0x320522,_0x1b812b){const t=_0x2f676d['t'];switch(_0x320522){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'},_0x1b812b);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1b812b);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 _0x320522;}}