@ckeditor/ckeditor5-revision-history 35.1.0 → 35.2.1

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 (37) hide show
  1. package/build/revision-history.js +1 -1
  2. package/build/translations/es-co.js +1 -0
  3. package/build/translations/fa.js +1 -1
  4. package/build/translations/tt.js +1 -0
  5. package/lang/translations/es-co.po +124 -0
  6. package/lang/translations/fa.po +1 -1
  7. package/lang/translations/tt.po +122 -0
  8. package/package.json +7 -7
  9. package/src/changeitem.js +1 -1
  10. package/src/editor/revisionviewereditor.js +1 -1
  11. package/src/editor/revisionviewereditorui.js +1 -1
  12. package/src/editor/revisionviewereditoruiview.js +1 -1
  13. package/src/revision.js +1 -1
  14. package/src/revisiondiff.js +1 -1
  15. package/src/revisionhistory.js +1 -1
  16. package/src/revisionsrepository.js +1 -1
  17. package/src/revisiontracker.js +1 -1
  18. package/src/revisionviewer.js +1 -1
  19. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  20. package/src/ui/revision/revisionauthorview.js +1 -1
  21. package/src/ui/revision/revisionnameview.js +1 -1
  22. package/src/ui/revision/revisionview.js +1 -1
  23. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  24. package/src/ui/revision/subrevisionview.js +1 -1
  25. package/src/ui/revision/utils.js +1 -1
  26. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  27. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  28. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  29. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  30. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  31. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  32. package/src/ui/revisionssidebar/utils.js +1 -1
  33. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  34. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  35. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  36. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  37. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3c19=['submit','set','remove','revisionHistory','items','length','execute','panelView','isEnabled','init','view','cancel','change:isOpen','get','config','isOpen','RevisionHistoryUI','saveRevision','addMany','render','requires','focus','RevisionTracker','isReadOnly','componentFactory','children','isReady','buttonView','bind','add'];(function(_0x2a10f9,_0x3c1909){const _0x1c48ef=function(_0x237c47){while(--_0x237c47){_0x2a10f9['push'](_0x2a10f9['shift']());}};_0x1c48ef(++_0x3c1909);}(_0x3c19,0x114));const _0x1c48=function(_0x2a10f9,_0x3c1909){_0x2a10f9=_0x2a10f9-0x0;let _0x1c48ef=_0x3c19[_0x2a10f9];return _0x1c48ef;};import{Plugin as _0x27290b}from'ckeditor5/src/core';import{ListView as _0x425400,ListItemView as _0x3c3c61,ButtonView as _0x8f9a5e,createDropdown as _0x2cddde}from'ckeditor5/src/ui';import _0x257c79 from'../../revisiontracker';import _0x58420f from'./revisionhistorysaverevisionformview';import _0x2ed183 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x3f1668}from'../../utils/common-translations';export default class R extends _0x27290b{static get['pluginName'](){return _0x1c48('0xa');}static get[_0x1c48('0xe')](){return[_0x257c79];}[_0x1c48('0x3')](){const _0x5116f3=this['editor'],_0x5c2b8c=_0x5116f3['plugins'][_0x1c48('0x7')](_0x1c48('0x10'));_0x5116f3['ui'][_0x1c48('0x12')][_0x1c48('0x17')]('revisionHistory',_0x309554=>{const _0x3d4c28=_0x2cddde(_0x309554),_0xe6d804=_0x3d4c28[_0x1c48('0x1')][_0x1c48('0x13')],_0x353d96=new _0x425400(_0x309554),_0x26d663=new _0x3c3c61(_0x309554),_0x56e216=new _0x8f9a5e(_0x309554),_0x1020df=new _0x3c3c61(_0x309554),_0x1543a6=new _0x8f9a5e(_0x309554),_0x55ea24=new _0x58420f(_0x309554);function _0x22c9df(){_0xe6d804[_0x1c48('0x1d')]&&_0xe6d804[_0x1c48('0x1a')](0x0),_0xe6d804['add'](_0x353d96);}function _0x1eda39(){_0x3d4c28[_0x1c48('0x9')]=!0x1,_0x5116f3['editing'][_0x1c48('0x4')][_0x1c48('0xf')]();}return _0x3d4c28[_0x1c48('0x16')](_0x1c48('0x2'))['to'](_0x5c2b8c,_0x1c48('0x14'),_0x5c2b8c,_0x1c48('0x2'),_0x5116f3,_0x1c48('0x11'),(_0x2f3533,_0x3c79b2,_0x49d7bf)=>_0x2f3533&&_0x3c79b2&&!_0x49d7bf),_0x3d4c28[_0x1c48('0x15')][_0x1c48('0x19')]({'icon':_0x2ed183,'label':_0x3f1668(_0x309554,'Revision\x20history'),'tooltip':!0x0}),_0x56e216['set']({'label':_0x3f1668(_0x309554,'Save\x20current\x20revision'),'withText':!0x0}),_0x56e216['bind']('isEnabled')['to'](_0x5c2b8c,_0x1c48('0x14'),_0x5c2b8c,_0x1c48('0x2'),_0x5116f3,_0x1c48('0x11'),(_0x1eb495,_0x6d7e06,_0x2f0dbb)=>_0x1eb495&&_0x6d7e06&&!_0x2f0dbb),_0x56e216['on'](_0x1c48('0x0'),()=>function(){_0xe6d804['length']&&_0xe6d804[_0x1c48('0x1a')](0x0),(_0x55ea24['reset'](),_0xe6d804[_0x1c48('0x17')](_0x55ea24),_0x55ea24[_0x1c48('0xf')]());}()),_0x1543a6['set']({'label':_0x3f1668(_0x309554,'Open\x20revision\x20history'),'withText':!0x0}),_0x1543a6['bind'](_0x1c48('0x2'))['to'](_0x5c2b8c,_0x1c48('0x14'),_0x5116f3,_0x1c48('0x11'),(_0x4b0d1e,_0x4281fb)=>_0x4b0d1e&&!_0x4281fb),_0x1543a6['on'](_0x1c48('0x0'),()=>{_0x5116f3[_0x1c48('0x8')][_0x1c48('0x7')](_0x1c48('0x1b'))['showRevisionViewerCallback'](),_0x1eda39();}),_0x26d663[_0x1c48('0x13')][_0x1c48('0x17')](_0x56e216),_0x1020df[_0x1c48('0x13')][_0x1c48('0x17')](_0x1543a6),_0x353d96[_0x1c48('0x1c')][_0x1c48('0xc')]([_0x26d663,_0x1020df]),_0x3d4c28['on'](_0x1c48('0x6'),()=>_0x22c9df()),_0x55ea24['saveButtonView'][_0x1c48('0x16')](_0x1c48('0x2'))['to'](_0x5c2b8c,_0x1c48('0x14'),_0x5c2b8c,'isEnabled',_0x5116f3,_0x1c48('0x11'),(_0x191a78,_0x3899e5,_0x1b159a)=>_0x191a78&&_0x3899e5&&!_0x1b159a),_0x55ea24['on'](_0x1c48('0x18'),()=>(_0x5116f3['plugins'][_0x1c48('0x7')](_0x257c79)[_0x1c48('0xb')]({'name':_0x55ea24['revisionName']}),void _0x1eda39())),_0x55ea24['on'](_0x1c48('0x5'),()=>_0x22c9df()),_0x55ea24[_0x1c48('0xd')](),_0x22c9df(),_0x3d4c28;});}}
23
+ const _0x14f7=['add','buttonView','items','isEnabled','submit','Revision\x20history','revisionHistory','isReadOnly','addMany','Open\x20revision\x20history','render','view','config','Save\x20current\x20revision','cancel','isOpen','saveButtonView','isReady','execute','componentFactory','set','get','saveRevision','children','editor','length','focus','bind','change:isOpen'];(function(_0x248fc8,_0x14f735){const _0x48c0a0=function(_0x4d6ec8){while(--_0x4d6ec8){_0x248fc8['push'](_0x248fc8['shift']());}};_0x48c0a0(++_0x14f735);}(_0x14f7,0x6d));const _0x48c0=function(_0x248fc8,_0x14f735){_0x248fc8=_0x248fc8-0x0;let _0x48c0a0=_0x14f7[_0x248fc8];return _0x48c0a0;};import{Plugin as _0x59fb3a}from'ckeditor5/src/core';import{ListView as _0x2a74d8,ListItemView as _0x3871fd,ButtonView as _0x4228c6,createDropdown as _0x555d40}from'ckeditor5/src/ui';import _0x53e5b8 from'../../revisiontracker';import _0x4898d0 from'./revisionhistorysaverevisionformview';import _0x44b161 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x4dd7de}from'../../utils/common-translations';export default class R extends _0x59fb3a{static get['pluginName'](){return'RevisionHistoryUI';}static get['requires'](){return[_0x53e5b8];}['init'](){const _0x8b2f97=this[_0x48c0('0x2')],_0x4630b9=_0x8b2f97['plugins'][_0x48c0('0x1c')]('RevisionTracker');_0x8b2f97['ui'][_0x48c0('0x1a')][_0x48c0('0x7')](_0x48c0('0xd'),_0x261de4=>{const _0x44946c=_0x555d40(_0x261de4),_0x561982=_0x44946c['panelView']['children'],_0x1e19cd=new _0x2a74d8(_0x261de4),_0x230176=new _0x3871fd(_0x261de4),_0x5bf18c=new _0x4228c6(_0x261de4),_0x2fe08b=new _0x3871fd(_0x261de4),_0x511ccd=new _0x4228c6(_0x261de4),_0x631036=new _0x4898d0(_0x261de4);function _0x3c04c6(){_0x561982[_0x48c0('0x3')]&&_0x561982['remove'](0x0),_0x561982[_0x48c0('0x7')](_0x1e19cd);}function _0x5c2c7e(){_0x44946c[_0x48c0('0x16')]=!0x1,_0x8b2f97['editing'][_0x48c0('0x12')][_0x48c0('0x4')]();}return _0x44946c['bind'](_0x48c0('0xa'))['to'](_0x4630b9,'isReady',_0x4630b9,_0x48c0('0xa'),_0x8b2f97,_0x48c0('0xe'),(_0x4a6682,_0x153bc6,_0x13ce38)=>_0x4a6682&&_0x153bc6&&!_0x13ce38),_0x44946c[_0x48c0('0x8')][_0x48c0('0x1b')]({'icon':_0x44b161,'label':_0x4dd7de(_0x261de4,_0x48c0('0xc')),'tooltip':!0x0}),_0x5bf18c[_0x48c0('0x1b')]({'label':_0x4dd7de(_0x261de4,_0x48c0('0x14')),'withText':!0x0}),_0x5bf18c['bind'](_0x48c0('0xa'))['to'](_0x4630b9,_0x48c0('0x18'),_0x4630b9,_0x48c0('0xa'),_0x8b2f97,_0x48c0('0xe'),(_0xb3765,_0x28e569,_0x4705b4)=>_0xb3765&&_0x28e569&&!_0x4705b4),_0x5bf18c['on'](_0x48c0('0x19'),()=>function(){_0x561982[_0x48c0('0x3')]&&_0x561982['remove'](0x0),(_0x631036['reset'](),_0x561982[_0x48c0('0x7')](_0x631036),_0x631036[_0x48c0('0x4')]());}()),_0x511ccd[_0x48c0('0x1b')]({'label':_0x4dd7de(_0x261de4,_0x48c0('0x10')),'withText':!0x0}),_0x511ccd[_0x48c0('0x5')](_0x48c0('0xa'))['to'](_0x4630b9,_0x48c0('0x18'),_0x8b2f97,_0x48c0('0xe'),(_0x2d89eb,_0x2ac9d1)=>_0x2d89eb&&!_0x2ac9d1),_0x511ccd['on']('execute',()=>{_0x8b2f97[_0x48c0('0x13')]['get'](_0x48c0('0xd'))['showRevisionViewerCallback'](),_0x5c2c7e();}),_0x230176['children'][_0x48c0('0x7')](_0x5bf18c),_0x2fe08b[_0x48c0('0x1')][_0x48c0('0x7')](_0x511ccd),_0x1e19cd[_0x48c0('0x9')][_0x48c0('0xf')]([_0x230176,_0x2fe08b]),_0x44946c['on'](_0x48c0('0x6'),()=>_0x3c04c6()),_0x631036[_0x48c0('0x17')]['bind'](_0x48c0('0xa'))['to'](_0x4630b9,_0x48c0('0x18'),_0x4630b9,'isEnabled',_0x8b2f97,_0x48c0('0xe'),(_0x463764,_0x10fbf6,_0xb7969c)=>_0x463764&&_0x10fbf6&&!_0xb7969c),_0x631036['on'](_0x48c0('0xb'),()=>(_0x8b2f97['plugins'][_0x48c0('0x1c')](_0x53e5b8)[_0x48c0('0x0')]({'name':_0x631036['revisionName']}),void _0x5c2c7e())),_0x631036['on'](_0x48c0('0x15'),()=>_0x3c04c6()),_0x631036[_0x48c0('0x11')](),_0x3c04c6(),_0x44946c;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3c5c=['revisionHistory','get','_handleDiffChange','editor','getIndex','add','map','revisionViews','destroy','bind','remove','element','getRevisionsInDiff','restoreRevision','isSelected','revisionHistory.revisionActions','revisionSelected','assign','name','selectRevision','listenTo','_handleEditorDataReady','revisionHistory.viewerSidebarContainer','appendChild','_sidebarView','getLaterVisibleRevision','diff','render','revisionSetName','isVisible','compareAgainstSelected','_revisions','Name\x20this\x20revision','data','defaultRevisionActions','compare','getRevision','getEarlierVisibleRevision','length','_revisionViewer','config','_handleRevisionSelected','_revisionsRepository','highlightRevisions','action','setName','newRevisionId','nameRevision','focus','_handleRevisionSetName','repository','Restore\x20this\x20revision','ready','Compare\x20against\x20selected','init','availableRevisionActions'];(function(_0x1413f4,_0x3c5cce){const _0x56cf64=function(_0xd3af0e){while(--_0xd3af0e){_0x1413f4['push'](_0x1413f4['shift']());}};_0x56cf64(++_0x3c5cce);}(_0x3c5c,0xb8));const _0x56cf=function(_0x1413f4,_0x3c5cce){_0x1413f4=_0x1413f4-0x0;let _0x56cf64=_0x3c5c[_0x1413f4];return _0x56cf64;};import{Plugin as _0x1a0f31}from'ckeditor5/src/core';import _0x303ca9 from'./revisionssidebarview';import _0x496640 from'../../revisionviewer';export default class y extends _0x1a0f31{static get['pluginName'](){return'RevisionsSidebar';}static get['requires'](){return[_0x496640];}constructor(_0x2bfa51){super(_0x2bfa51),this[_0x56cf('0x17')]=_0x2bfa51['plugins'][_0x56cf('0x29')](_0x496640),this[_0x56cf('0x1a')]=this[_0x56cf('0x17')][_0x56cf('0x22')],this[_0x56cf('0x8')]=null;}[_0x56cf('0x26')](){const _0x47405e=this['_revisionsRepository'][_0x56cf('0xf')],_0x5583e3=this['_createRevisionActions'](),_0x18490a=this[_0x56cf('0x2b')][_0x56cf('0x18')][_0x56cf('0x29')](_0x56cf('0x6'));this[_0x56cf('0x8')]=new _0x303ca9(this[_0x56cf('0x2b')]['locale'],_0x47405e,_0x5583e3),this[_0x56cf('0x8')]['on'](_0x56cf('0x0'),this['_handleRevisionSelected'][_0x56cf('0x31')](this)),this[_0x56cf('0x8')]['on'](_0x56cf('0xc'),this[_0x56cf('0x21')][_0x56cf('0x31')](this)),this[_0x56cf('0x8')][_0x56cf('0x31')]('isEnabled')['to'](this[_0x56cf('0x17')]),this[_0x56cf('0x8')]['timePeriodViews']['on'](_0x56cf('0x2d'),(_0x1cfbb4,_0x50771a)=>{_0x50771a[_0x56cf('0x2f')]['on'](_0x56cf('0x2d'),(_0x4e08c5,_0x3c2251)=>{_0x3c2251[_0x56cf('0x31')]('isEnabled','isReady')['to'](this[_0x56cf('0x17')]);});}),this['_sidebarView'][_0x56cf('0xb')](),this[_0x56cf('0x4')](this['editor'][_0x56cf('0x11')],_0x56cf('0x24'),this[_0x56cf('0x5')][_0x56cf('0x31')](this)),this[_0x56cf('0x4')](this[_0x56cf('0x17')],'change:diff',this[_0x56cf('0x2a')]['bind'](this)),_0x18490a[_0x56cf('0x7')](this[_0x56cf('0x8')][_0x56cf('0x33')]);}['destroy'](){this[_0x56cf('0x8')][_0x56cf('0x33')][_0x56cf('0x32')](),this[_0x56cf('0x8')][_0x56cf('0x30')]();}[_0x56cf('0x5')](){const _0x1a7b34=this[_0x56cf('0x1a')]['getRevision'](0x0);if(_0x1a7b34){const _0x55b040=this[_0x56cf('0x1a')]['getEarlierVisibleRevision'](_0x1a7b34['id']);this[_0x56cf('0x17')]['compare'](_0x1a7b34,_0x55b040);}}[_0x56cf('0x19')](_0x4f3648,_0x478d25){const _0x291d88=this[_0x56cf('0x1a')][_0x56cf('0x14')](_0x478d25['id']),_0x334d93=this[_0x56cf('0x1a')][_0x56cf('0x15')](_0x291d88['id']);this['_revisionViewer'][_0x56cf('0x13')](_0x291d88,_0x334d93);}[_0x56cf('0x21')](_0x2116bf,_0x42d131){this[_0x56cf('0x1a')][_0x56cf('0x14')](_0x42d131['id'])[_0x56cf('0x1d')](_0x42d131[_0x56cf('0x2')]);}[_0x56cf('0x2a')](_0x50e850,_0x4a3182,_0x2fcbfc){const _0x3d7c6f=this[_0x56cf('0x1a')][_0x56cf('0x34')](_0x2fcbfc);_0x3d7c6f[_0x56cf('0x16')]>0x2?(this['_sidebarView'][_0x56cf('0x1b')](_0x3d7c6f),this['_sidebarView'][_0x56cf('0x3')](null)):(this[_0x56cf('0x8')][_0x56cf('0x1b')]([]),this[_0x56cf('0x8')][_0x56cf('0x3')](_0x3d7c6f[0x0]));}['_createRevisionActions'](){const _0xdbb2c4=this[_0x56cf('0x2b')],_0x455e3e=y[_0x56cf('0x27')],_0x1f17ba=_0xdbb2c4['config'][_0x56cf('0x29')](_0x56cf('0x37'))||y['defaultRevisionActions'];if(_0x1f17ba[_0x56cf('0x16')])return _0x1f17ba[_0x56cf('0x2e')](_0x21e7bf=>{const _0x13e0a0='string'==typeof _0x21e7bf?Object[_0x56cf('0x1')]({},_0x455e3e[_0x21e7bf]):_0x21e7bf;return _0x13e0a0[_0x56cf('0x1c')]=_0x13e0a0[_0x56cf('0x1c')][_0x56cf('0x31')](this,_0xdbb2c4),_0x13e0a0[_0x56cf('0xd')]&&(_0x13e0a0[_0x56cf('0xd')]=_0x13e0a0[_0x56cf('0xd')][_0x56cf('0x31')](this,_0xdbb2c4)),_0x13e0a0;});}}y['availableRevisionActions']={'compareAgainstSelected':{'name':_0x56cf('0x25'),'action':({plugins:_0x222215},_0x3d2a54)=>{const _0x3952ae=_0x222215[_0x56cf('0x29')](_0x496640),_0x442893=_0x3952ae['repository'];let _0x445526=_0x3952ae[_0x56cf('0xa')][_0x56cf('0x1e')],_0x263a0d=_0x3d2a54['id'];_0x442893['getIndex'](_0x445526)>_0x442893[_0x56cf('0x2c')](_0x263a0d)&&([_0x445526,_0x263a0d]=[_0x263a0d,_0x445526]),_0x3952ae[_0x56cf('0x13')](_0x445526,_0x263a0d);},'isVisible':({plugins:_0x510468},_0x15932b)=>{const _0x380bbb=_0x510468['get'](_0x496640);return!(_0x380bbb[_0x56cf('0x22')][_0x56cf('0x34')](_0x380bbb['diff'])['length']>0x2)&&!_0x15932b[_0x56cf('0x36')];}},'restoreRevision':{'name':_0x56cf('0x23'),'action':(_0x651c4d,{id:_0x1d61af})=>{_0x651c4d[_0x56cf('0x18')]['get'](_0x56cf('0x28'))['restoreRevisionCallback'](_0x1d61af);},'isVisible':({plugins:_0x5ee92e},_0x20ebd8)=>!!_0x5ee92e[_0x56cf('0x29')](_0x496640)[_0x56cf('0x22')][_0x56cf('0x9')](_0x20ebd8['id'])},'nameRevision':{'name':_0x56cf('0x10'),'action':({plugins:_0x37b298},{id:_0x1f88b1,revisionNameView:_0x5e63ae})=>{const _0x3a07da=_0x37b298[_0x56cf('0x29')](_0x496640),_0x182bf0=_0x3a07da['repository'][_0x56cf('0x15')](_0x1f88b1);_0x3a07da[_0x56cf('0x13')](_0x1f88b1,_0x182bf0),_0x5e63ae[_0x56cf('0x20')](),_0x5e63ae['fieldView']['select']();}}},y[_0x56cf('0x12')]=[_0x56cf('0xe'),_0x56cf('0x35'),_0x56cf('0x1f')];
23
+ const _0x3526=['selectRevision','isVisible','appendChild','compareAgainstSelected','requires','newRevisionId','listenTo','defaultRevisionActions','restoreRevisionCallback','revisionViews','length','repository','select','getRevision','timePeriodViews','_revisionsRepository','add','setName','_revisionViewer','restoreRevision','compare','Name\x20this\x20revision','getIndex','RevisionsSidebar','isEnabled','getEarlierVisibleRevision','element','action','isSelected','availableRevisionActions','getRevisionsInDiff','revisionSetName','render','highlightRevisions','editor','_createRevisionActions','locale','change:diff','_handleDiffChange','Restore\x20this\x20revision','remove','bind','string','destroy','init','config','revisionHistory.viewerSidebarContainer','nameRevision','plugins','_handleRevisionSelected','_sidebarView','assign','name','get','fieldView','revisionHistory.revisionActions','diff'];(function(_0x40d8f4,_0x352671){const _0x3d46fb=function(_0xfc63e){while(--_0xfc63e){_0x40d8f4['push'](_0x40d8f4['shift']());}};_0x3d46fb(++_0x352671);}(_0x3526,0x174));const _0x3d46=function(_0x40d8f4,_0x352671){_0x40d8f4=_0x40d8f4-0x0;let _0x3d46fb=_0x3526[_0x40d8f4];return _0x3d46fb;};import{Plugin as _0x2e1e03}from'ckeditor5/src/core';import _0x33a9e3 from'./revisionssidebarview';import _0x13f369 from'../../revisionviewer';export default class y extends _0x2e1e03{static get['pluginName'](){return _0x3d46('0x32');}static get[_0x3d46('0x1f')](){return[_0x13f369];}constructor(_0x43407a){super(_0x43407a),this[_0x3d46('0x2d')]=_0x43407a[_0x3d46('0x12')][_0x3d46('0x17')](_0x13f369),this[_0x3d46('0x2a')]=this[_0x3d46('0x2d')]['repository'],this[_0x3d46('0x14')]=null;}[_0x3d46('0xe')](){const _0x4d84b3=this[_0x3d46('0x2a')]['_revisions'],_0x29241b=this['_createRevisionActions'](),_0x4dc70a=this[_0x3d46('0x4')][_0x3d46('0xf')][_0x3d46('0x17')](_0x3d46('0x10'));this[_0x3d46('0x14')]=new _0x33a9e3(this['editor'][_0x3d46('0x6')],_0x4d84b3,_0x29241b),this[_0x3d46('0x14')]['on']('revisionSelected',this[_0x3d46('0x13')][_0x3d46('0xb')](this)),this[_0x3d46('0x14')]['on'](_0x3d46('0x1'),this['_handleRevisionSetName']['bind'](this)),this[_0x3d46('0x14')]['bind'](_0x3d46('0x33'))['to'](this[_0x3d46('0x2d')]),this[_0x3d46('0x14')][_0x3d46('0x29')]['on']('add',(_0x4728be,_0x5dbd58)=>{_0x5dbd58[_0x3d46('0x24')]['on'](_0x3d46('0x2b'),(_0x247f03,_0x538807)=>{_0x538807[_0x3d46('0xb')](_0x3d46('0x33'),'isReady')['to'](this[_0x3d46('0x2d')]);});}),this[_0x3d46('0x14')][_0x3d46('0x2')](),this['listenTo'](this[_0x3d46('0x4')]['data'],'ready',this['_handleEditorDataReady'][_0x3d46('0xb')](this)),this[_0x3d46('0x21')](this[_0x3d46('0x2d')],_0x3d46('0x7'),this[_0x3d46('0x8')][_0x3d46('0xb')](this)),_0x4dc70a[_0x3d46('0x1d')](this[_0x3d46('0x14')][_0x3d46('0x35')]);}[_0x3d46('0xd')](){this[_0x3d46('0x14')][_0x3d46('0x35')][_0x3d46('0xa')](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x3ed6cf=this[_0x3d46('0x2a')][_0x3d46('0x28')](0x0);if(_0x3ed6cf){const _0x24bc97=this[_0x3d46('0x2a')][_0x3d46('0x34')](_0x3ed6cf['id']);this[_0x3d46('0x2d')][_0x3d46('0x2f')](_0x3ed6cf,_0x24bc97);}}[_0x3d46('0x13')](_0x4a04e,_0x5d53da){const _0x2608f4=this['_revisionsRepository']['getRevision'](_0x5d53da['id']),_0x40f77c=this['_revisionsRepository'][_0x3d46('0x34')](_0x2608f4['id']);this[_0x3d46('0x2d')][_0x3d46('0x2f')](_0x2608f4,_0x40f77c);}['_handleRevisionSetName'](_0x2ade43,_0x1009f0){this[_0x3d46('0x2a')][_0x3d46('0x28')](_0x1009f0['id'])[_0x3d46('0x2c')](_0x1009f0[_0x3d46('0x16')]);}['_handleDiffChange'](_0x6fdf06,_0x4d72b7,_0x66def0){const _0x2df561=this[_0x3d46('0x2a')][_0x3d46('0x0')](_0x66def0);_0x2df561[_0x3d46('0x25')]>0x2?(this[_0x3d46('0x14')]['highlightRevisions'](_0x2df561),this[_0x3d46('0x14')][_0x3d46('0x1b')](null)):(this[_0x3d46('0x14')][_0x3d46('0x3')]([]),this[_0x3d46('0x14')][_0x3d46('0x1b')](_0x2df561[0x0]));}[_0x3d46('0x5')](){const _0x92913f=this[_0x3d46('0x4')],_0x49b971=y[_0x3d46('0x38')],_0x4bd849=_0x92913f[_0x3d46('0xf')]['get'](_0x3d46('0x19'))||y['defaultRevisionActions'];if(_0x4bd849['length'])return _0x4bd849['map'](_0x41fad5=>{const _0x358c86=_0x3d46('0xc')==typeof _0x41fad5?Object[_0x3d46('0x15')]({},_0x49b971[_0x41fad5]):_0x41fad5;return _0x358c86[_0x3d46('0x36')]=_0x358c86[_0x3d46('0x36')][_0x3d46('0xb')](this,_0x92913f),_0x358c86[_0x3d46('0x1c')]&&(_0x358c86['isVisible']=_0x358c86[_0x3d46('0x1c')][_0x3d46('0xb')](this,_0x92913f)),_0x358c86;});}}y[_0x3d46('0x38')]={'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x52353b},_0x505f3f)=>{const _0x23403c=_0x52353b[_0x3d46('0x17')](_0x13f369),_0x40b9b2=_0x23403c[_0x3d46('0x26')];let _0x1903cd=_0x23403c[_0x3d46('0x1a')][_0x3d46('0x20')],_0x6f8c80=_0x505f3f['id'];_0x40b9b2[_0x3d46('0x31')](_0x1903cd)>_0x40b9b2[_0x3d46('0x31')](_0x6f8c80)&&([_0x1903cd,_0x6f8c80]=[_0x6f8c80,_0x1903cd]),_0x23403c['compare'](_0x1903cd,_0x6f8c80);},'isVisible':({plugins:_0x5cf074},_0x52bbb4)=>{const _0x3dbbae=_0x5cf074[_0x3d46('0x17')](_0x13f369);return!(_0x3dbbae[_0x3d46('0x26')][_0x3d46('0x0')](_0x3dbbae[_0x3d46('0x1a')])['length']>0x2)&&!_0x52bbb4[_0x3d46('0x37')];}},'restoreRevision':{'name':_0x3d46('0x9'),'action':(_0x51c74b,{id:_0x1a45a2})=>{_0x51c74b['config']['get']('revisionHistory')[_0x3d46('0x23')](_0x1a45a2);},'isVisible':({plugins:_0x59689e},_0x404150)=>!!_0x59689e[_0x3d46('0x17')](_0x13f369)[_0x3d46('0x26')]['getLaterVisibleRevision'](_0x404150['id'])},'nameRevision':{'name':_0x3d46('0x30'),'action':({plugins:_0x4dbaac},{id:_0x2797d8,revisionNameView:_0x36c349})=>{const _0x207185=_0x4dbaac[_0x3d46('0x17')](_0x13f369),_0x50494a=_0x207185[_0x3d46('0x26')][_0x3d46('0x34')](_0x2797d8);_0x207185[_0x3d46('0x2f')](_0x2797d8,_0x50494a),_0x36c349['focus'](),_0x36c349[_0x3d46('0x18')][_0x3d46('0x27')]();}}},y[_0x3d46('0x22')]=[_0x3d46('0x1e'),_0x3d46('0x2e'),_0x3d46('0x11')];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3e98=['Revision\x20history','ck-revision-history-sidebar__header','setTemplate','ck-reset_all','div','content','ck-revision-history-sidebar__header__label'];(function(_0xdbdf08,_0x3e980a){const _0x57d32c=function(_0x41da6f){while(--_0x41da6f){_0xdbdf08['push'](_0xdbdf08['shift']());}};_0x57d32c(++_0x3e980a);}(_0x3e98,0x9d));const _0x57d3=function(_0xdbdf08,_0x3e980a){_0xdbdf08=_0xdbdf08-0x0;let _0x57d32c=_0x3e98[_0xdbdf08];return _0x57d32c;};import{View as _0x308ad8,IconView as _0x246d3d}from'ckeditor5/src/ui';import{getTranslation as _0x506b6c}from'../../utils/common-translations';import _0x3bd86b from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class cs extends _0x308ad8{constructor(_0xaabac0){super(_0xaabac0);const _0x591db0=new _0x246d3d(_0xaabac0);_0x591db0[_0x57d3('0x2')]=_0x3bd86b,this[_0x57d3('0x6')]({'tag':_0x57d3('0x1'),'attributes':{'class':['ck',_0x57d3('0x0'),_0x57d3('0x5')]},'children':[_0x591db0,{'tag':'span','attributes':{'class':['ck',_0x57d3('0x3')]},'children':[_0x506b6c(_0xaabac0,_0x57d3('0x4'))]}]});}}
23
+ const _0x4b0b=['Revision\x20history','content','span'];(function(_0x56df19,_0x4b0b00){const _0x180a7c=function(_0x312a85){while(--_0x312a85){_0x56df19['push'](_0x56df19['shift']());}};_0x180a7c(++_0x4b0b00);}(_0x4b0b,0x1d1));const _0x180a=function(_0x56df19,_0x4b0b00){_0x56df19=_0x56df19-0x0;let _0x180a7c=_0x4b0b[_0x56df19];return _0x180a7c;};import{View as _0x3b6ff3,IconView as _0x385b80}from'ckeditor5/src/ui';import{getTranslation as _0x2b052c}from'../../utils/common-translations';import _0x57548b from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class cs extends _0x3b6ff3{constructor(_0x442c86){super(_0x442c86);const _0x2bfda4=new _0x385b80(_0x442c86);_0x2bfda4[_0x180a('0x1')]=_0x57548b,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x2bfda4,{'tag':_0x180a('0x2'),'attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[_0x2b052c(_0x442c86,_0x180a('0x0'))]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x43b9=['_revisionActions','setTemplate','addRevision','setName','uiLanguage','createCollection','ck-revision-history-sidebar__time-period','startDate','localizedPeriodName','div','select','revisionViews','ck-revision-history-sidebar__time-period__revisions','find','locale','delegate','remove','ck-revision-history-sidebar__time-period__label'];(function(_0x2314f8,_0x43b95e){const _0x4cae26=function(_0x5ba87d){while(--_0x5ba87d){_0x2314f8['push'](_0x2314f8['shift']());}};_0x4cae26(++_0x43b95e);}(_0x43b9,0xf7));const _0x4cae=function(_0x2314f8,_0x43b95e){_0x2314f8=_0x2314f8-0x0;let _0x4cae26=_0x43b9[_0x2314f8];return _0x4cae26;};import{View as _0x578bb8}from'ckeditor5/src/ui';import _0x21c032 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x2879ea}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x578bb8{constructor(_0xf5ea11,_0x4f908c,_0x27b7f3){super(_0xf5ea11);const _0x2413ab=_0x2879ea(_0x4f908c,this[_0x4cae('0x1')][_0x4cae('0x9')])[_0x4cae('0xd')];this[_0x4cae('0xc')]=_0x4f908c,this['_revisionActions']=_0x27b7f3,this[_0x4cae('0x10')]=this[_0x4cae('0xa')](),this['revisionViews'][_0x4cae('0x2')](_0x4cae('0xf'))['to'](this),this['revisionViews']['delegate'](_0x4cae('0x8'))['to'](this),this[_0x4cae('0x6')]({'tag':_0x4cae('0xe'),'attributes':{'class':['ck',_0x4cae('0xb')]},'children':[{'tag':'span','attributes':{'class':['ck',_0x4cae('0x4')]},'children':[{'text':_0x2413ab}]},{'tag':_0x4cae('0xe'),'attributes':{'class':['ck',_0x4cae('0x11')]},'children':this[_0x4cae('0x10')]}]});}[_0x4cae('0x7')](_0x597c1d){const _0x4b0a0b=new _0x21c032(this[_0x4cae('0x1')],_0x597c1d,this[_0x4cae('0x5')]);this['revisionViews']['add'](_0x4b0a0b);}['removeRevision'](_0x18df6e){const _0x50defc=this[_0x4cae('0x10')][_0x4cae('0x0')](_0x57b2c9=>_0x57b2c9['id']===_0x18df6e['id']);this['revisionViews'][_0x4cae('0x3')](_0x50defc);}}
23
+ const _0x4af4=['setName','_revisionActions','locale','span','add','delegate','createCollection','ck-revision-history-sidebar__time-period','localizedPeriodName','uiLanguage','remove','find','startDate','div','revisionViews','removeRevision','addRevision','setTemplate','ck-revision-history-sidebar__time-period__label','select'];(function(_0x47976e,_0x4af42c){const _0x4d6392=function(_0x6a7f96){while(--_0x6a7f96){_0x47976e['push'](_0x47976e['shift']());}};_0x4d6392(++_0x4af42c);}(_0x4af4,0x191));const _0x4d63=function(_0x47976e,_0x4af42c){_0x47976e=_0x47976e-0x0;let _0x4d6392=_0x4af4[_0x47976e];return _0x4d6392;};import{View as _0x51a79f}from'ckeditor5/src/ui';import _0x13eb2b from'../revision/revisionview';import{getDateTimePeriodInfo as _0x1a7792}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x51a79f{constructor(_0x5e5365,_0x5c8863,_0x3548bc){super(_0x5e5365);const _0x60481f=_0x1a7792(_0x5c8863,this[_0x4d63('0x1')][_0x4d63('0x8')])[_0x4d63('0x7')];this[_0x4d63('0xb')]=_0x5c8863,this[_0x4d63('0x0')]=_0x3548bc,this[_0x4d63('0xd')]=this[_0x4d63('0x5')](),this['revisionViews'][_0x4d63('0x4')](_0x4d63('0x12'))['to'](this),this[_0x4d63('0xd')][_0x4d63('0x4')](_0x4d63('0x13'))['to'](this),this[_0x4d63('0x10')]({'tag':_0x4d63('0xc'),'attributes':{'class':['ck',_0x4d63('0x6')]},'children':[{'tag':_0x4d63('0x2'),'attributes':{'class':['ck',_0x4d63('0x11')]},'children':[{'text':_0x60481f}]},{'tag':_0x4d63('0xc'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this[_0x4d63('0xd')]}]});}[_0x4d63('0xf')](_0x4bb25b){const _0x3f5d25=new _0x13eb2b(this[_0x4d63('0x1')],_0x4bb25b,this[_0x4d63('0x0')]);this['revisionViews'][_0x4d63('0x3')](_0x3f5d25);}[_0x4d63('0xe')](_0x509447){const _0x4d6c5f=this[_0x4d63('0xd')][_0x4d63('0xa')](_0x5ce29c=>_0x5ce29c['id']===_0x509447['id']);this[_0x4d63('0xd')][_0x4d63('0x9')](_0x4d6c5f);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xe645=['flat','highlightRevisions','some','createdAt','timePeriodViews','select','add','_addRevision','unhighlight','selectRevision','addRevision','locale','ck-reset','isEnabled','ck-rounded-corners','setName','getTime','_revisions','ck-disabled','revisionSetName','map','ck-revision-history-sidebar','div','deselect','removeRevision','revisionViews','highlight','_removeRevision','render','_getTimePeriodViewByStartDate','fire','ck-revision-history-sidebar__timeline','startDate','createCollection','_revisionActions'];(function(_0x519c7e,_0xe6457c){const _0x272a20=function(_0xee63ed){while(--_0xee63ed){_0x519c7e['push'](_0x519c7e['shift']());}};_0x272a20(++_0xe6457c);}(_0xe645,0x1bb));const _0x272a=function(_0x519c7e,_0xe6457c){_0x519c7e=_0x519c7e-0x0;let _0x272a20=_0xe645[_0x519c7e];return _0x272a20;};import{View as _0x4a11fb}from'ckeditor5/src/ui';import _0x1ce06c from'./revisionssidebartimeperiodview';import _0x3c06f2 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x5e0064}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x4a11fb{constructor(_0x8e6037,_0x44c65f,_0xafe8f2){super(_0x8e6037);const _0x320f47=this['bindTemplate'];this[_0x272a('0x10')]=this[_0x272a('0xa')](),this['timePeriodViews']['delegate']('select')['to'](this),this[_0x272a('0x10')]['delegate']('setName')['to'](this),this[_0x272a('0x1d')]=_0x44c65f,this[_0x272a('0xb')]=_0xafe8f2,this['on'](_0x272a('0x11'),(_0x169199,_0x430648)=>{this[_0x272a('0x7')]('revisionSelected',_0x430648);}),this['on'](_0x272a('0x1b'),(_0x21f74e,_0x2b9e12)=>{this[_0x272a('0x7')](_0x272a('0x1f'),_0x2b9e12);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':_0x272a('0x22'),'attributes':{'class':['ck',_0x272a('0x18'),_0x272a('0x1a'),_0x272a('0x21')]},'children':[new _0x3c06f2(_0x8e6037),{'tag':'div','attributes':{'class':['ck',_0x272a('0x8'),_0x320f47['if'](_0x272a('0x19'),_0x272a('0x1e'),_0x172d3a=>!_0x172d3a)]},'children':this['timePeriodViews']}]});}[_0x272a('0x5')](){super[_0x272a('0x5')]();for(const _0x3fcda9 of this[_0x272a('0x1d')])this[_0x272a('0x13')](_0x3fcda9);this[_0x272a('0x1d')]['on']('add',(_0x27c47d,_0x180dfd)=>{this[_0x272a('0x13')](_0x180dfd);}),this[_0x272a('0x1d')]['on']('remove',(_0x1fad9b,_0x1928ce)=>{this[_0x272a('0x4')](_0x1928ce);});}get[_0x272a('0x2')](){return this['timePeriodViews']['map'](_0x416919=>_0x416919[_0x272a('0x2')][_0x272a('0x20')](_0x2f75ac=>_0x2f75ac))[_0x272a('0xc')]();}[_0x272a('0x15')](_0x49b95a){for(const _0xd1ce5 of this['revisionViews'])_0x49b95a&&_0x49b95a['id']===_0xd1ce5['id']?_0xd1ce5[_0x272a('0x11')]():_0xd1ce5[_0x272a('0x0')]();}[_0x272a('0xd')](_0x14300f){for(const _0x578bbe of this[_0x272a('0x2')])_0x14300f[_0x272a('0xe')](({id:_0x12a93d})=>_0x12a93d===_0x578bbe['id'])?_0x578bbe[_0x272a('0x3')]():_0x578bbe[_0x272a('0x14')]();}['_addRevision'](_0x351095){const _0x3b7272=_0x5e0064(_0x351095['createdAt'])[_0x272a('0x9')];let _0x51c3f7=this['timePeriodViews']['get'](0x0);_0x51c3f7&&_0x51c3f7[_0x272a('0x9')][_0x272a('0x1c')]()===_0x3b7272[_0x272a('0x1c')]()||(_0x51c3f7=new _0x1ce06c(this[_0x272a('0x17')],_0x3b7272,this[_0x272a('0xb')]),this['timePeriodViews'][_0x272a('0x12')](_0x51c3f7)),_0x51c3f7[_0x272a('0x16')](_0x351095);}[_0x272a('0x4')](_0x3b813a){const _0x4d0a58=_0x5e0064(_0x3b813a[_0x272a('0xf')])['startDate'];this['_getTimePeriodViewByStartDate'](_0x4d0a58)[_0x272a('0x1')](_0x3b813a);}[_0x272a('0x6')](_0x220eaf){return this['timePeriodViews']['find'](_0x1a2490=>_0x1a2490['startDate'][_0x272a('0x1c')]()===_0x220eaf[_0x272a('0x1c')]());}}
23
+ const _0x2cac=['selectRevision','ck-disabled','_addRevision','flat','locale','revisionSelected','get','map','addRevision','createCollection','highlight','render','set','ck-revision-history-sidebar__timeline','_revisionActions','highlightRevisions','some','revisionSetName','delegate','_getTimePeriodViewByStartDate','_removeRevision','timePeriodViews','isEnabled','getTime','createdAt','setTemplate','fire','startDate','_revisions','unhighlight','div','add','setName','select','revisionViews'];(function(_0x58fffd,_0x2cac6b){const _0x5c239e=function(_0x35ca30){while(--_0x35ca30){_0x58fffd['push'](_0x58fffd['shift']());}};_0x5c239e(++_0x2cac6b);}(_0x2cac,0x1da));const _0x5c23=function(_0x58fffd,_0x2cac6b){_0x58fffd=_0x58fffd-0x0;let _0x5c239e=_0x2cac[_0x58fffd];return _0x5c239e;};import{View as _0x10edda}from'ckeditor5/src/ui';import _0x454608 from'./revisionssidebartimeperiodview';import _0x1f438c from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x48ad68}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x10edda{constructor(_0x4667a5,_0xa0fe08,_0x99a9a5){super(_0x4667a5);const _0x33ec44=this['bindTemplate'];this['timePeriodViews']=this[_0x5c23('0x19')](),this[_0x5c23('0x2')][_0x5c23('0x22')](_0x5c23('0xe'))['to'](this),this[_0x5c23('0x2')][_0x5c23('0x22')](_0x5c23('0xd'))['to'](this),this[_0x5c23('0x9')]=_0xa0fe08,this[_0x5c23('0x1e')]=_0x99a9a5,this['on'](_0x5c23('0xe'),(_0x318297,_0x56cd65)=>{this[_0x5c23('0x7')](_0x5c23('0x15'),_0x56cd65);}),this['on']('setName',(_0x3733bf,_0x5744e4)=>{this[_0x5c23('0x7')](_0x5c23('0x21'),_0x5744e4);}),this[_0x5c23('0x1c')](_0x5c23('0x3'),!0x1),this[_0x5c23('0x6')]({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new _0x1f438c(_0x4667a5),{'tag':_0x5c23('0xb'),'attributes':{'class':['ck',_0x5c23('0x1d'),_0x33ec44['if'](_0x5c23('0x3'),_0x5c23('0x11'),_0x2747b2=>!_0x2747b2)]},'children':this[_0x5c23('0x2')]}]});}[_0x5c23('0x1b')](){super[_0x5c23('0x1b')]();for(const _0x42e0ec of this[_0x5c23('0x9')])this[_0x5c23('0x12')](_0x42e0ec);this[_0x5c23('0x9')]['on']('add',(_0x431ee3,_0x6257d8)=>{this['_addRevision'](_0x6257d8);}),this['_revisions']['on']('remove',(_0x5e757b,_0x3f46db)=>{this[_0x5c23('0x1')](_0x3f46db);});}get[_0x5c23('0xf')](){return this[_0x5c23('0x2')][_0x5c23('0x17')](_0xb44286=>_0xb44286[_0x5c23('0xf')][_0x5c23('0x17')](_0x505c5b=>_0x505c5b))[_0x5c23('0x13')]();}[_0x5c23('0x10')](_0x4c18c6){for(const _0x57261d of this[_0x5c23('0xf')])_0x4c18c6&&_0x4c18c6['id']===_0x57261d['id']?_0x57261d['select']():_0x57261d['deselect']();}[_0x5c23('0x1f')](_0x5c7da2){for(const _0x474d16 of this[_0x5c23('0xf')])_0x5c7da2[_0x5c23('0x20')](({id:_0x2f9735})=>_0x2f9735===_0x474d16['id'])?_0x474d16[_0x5c23('0x1a')]():_0x474d16[_0x5c23('0xa')]();}[_0x5c23('0x12')](_0x5c4b1b){const _0x28b3bf=_0x48ad68(_0x5c4b1b[_0x5c23('0x5')])[_0x5c23('0x8')];let _0x5e6911=this[_0x5c23('0x2')][_0x5c23('0x16')](0x0);_0x5e6911&&_0x5e6911[_0x5c23('0x8')][_0x5c23('0x4')]()===_0x28b3bf[_0x5c23('0x4')]()||(_0x5e6911=new _0x454608(this[_0x5c23('0x14')],_0x28b3bf,this[_0x5c23('0x1e')]),this[_0x5c23('0x2')][_0x5c23('0xc')](_0x5e6911)),_0x5e6911[_0x5c23('0x18')](_0x5c4b1b);}[_0x5c23('0x1')](_0x3f0a89){const _0x55d2a1=_0x48ad68(_0x3f0a89[_0x5c23('0x5')])[_0x5c23('0x8')];this[_0x5c23('0x0')](_0x55d2a1)['removeRevision'](_0x3f0a89);}['_getTimePeriodViewByStartDate'](_0x37f628){return this[_0x5c23('0x2')]['find'](_0x5b5322=>_0x5b5322[_0x5c23('0x8')][_0x5c23('0x4')]()===_0x37f628['getTime']());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x59e1=['toRelativeCalendar','startOf','week','toJSDate','setLocale','day','hasSame','year','local','monthLong','fromJSDate','weekdayLong','month'];(function(_0x5e9537,_0x59e188){const _0x8a9f1d=function(_0x4d7f14){while(--_0x4d7f14){_0x5e9537['push'](_0x5e9537['shift']());}};_0x8a9f1d(++_0x59e188);}(_0x59e1,0x1f1));const _0x8a9f=function(_0x5e9537,_0x59e188){_0x5e9537=_0x5e9537-0x0;let _0x8a9f1d=_0x59e1[_0x5e9537];return _0x8a9f1d;};import{DateTime as _0x180fe3}from'luxon';export function getDateTimePeriodInfo(_0xde5f8f,_0x2fa0d6){_0xde5f8f=_0x180fe3[_0x8a9f('0x7')](_0xde5f8f)[_0x8a9f('0x1')](_0x2fa0d6);const _0x46e2ef=_0x180fe3[_0x8a9f('0x5')](),_0x24a4e7=_0x46e2ef['minus']({'days':0x1})[_0x8a9f('0xb')]('day');let _0x4e9a93,_0x1eb60b;return _0xde5f8f['hasSame'](_0x46e2ef,'day')?(_0x4e9a93=_0xde5f8f[_0x8a9f('0xb')](_0x8a9f('0x2'))[_0x8a9f('0x0')](),_0x1eb60b=_0xde5f8f['toRelativeCalendar']()):_0xde5f8f[_0x8a9f('0x3')](_0x24a4e7,_0x8a9f('0x2'))?(_0x4e9a93=_0x24a4e7[_0x8a9f('0x0')](),_0x1eb60b=_0xde5f8f[_0x8a9f('0xa')]()):_0xde5f8f[_0x8a9f('0x3')](_0x46e2ef,'week')?(_0x4e9a93=_0xde5f8f['startOf'](_0x8a9f('0xc'))['toJSDate'](),_0x1eb60b=_0xde5f8f[_0x8a9f('0x8')]):_0xde5f8f['hasSame'](_0x46e2ef,_0x8a9f('0x4'))?(_0x4e9a93=_0xde5f8f['startOf'](_0x8a9f('0x9'))[_0x8a9f('0x0')](),_0x1eb60b=_0xde5f8f[_0x8a9f('0x6')]):(_0x4e9a93=_0xde5f8f[_0x8a9f('0xb')]('year')[_0x8a9f('0x0')](),_0x1eb60b=_0xde5f8f[_0x8a9f('0x4')]),{'startDate':_0x4e9a93,'localizedPeriodName':_0x1eb60b};}
23
+ const _0x14d9=['year','weekdayLong','minus','monthLong','week','toRelativeCalendar','setLocale','toJSDate','fromJSDate','startOf','hasSame','day'];(function(_0x156991,_0x14d9b8){const _0x16140d=function(_0x1debcd){while(--_0x1debcd){_0x156991['push'](_0x156991['shift']());}};_0x16140d(++_0x14d9b8);}(_0x14d9,0xbe));const _0x1614=function(_0x156991,_0x14d9b8){_0x156991=_0x156991-0x0;let _0x16140d=_0x14d9[_0x156991];return _0x16140d;};import{DateTime as _0x2cd124}from'luxon';export function getDateTimePeriodInfo(_0x327701,_0x2b93f5){_0x327701=_0x2cd124[_0x1614('0xa')](_0x327701)[_0x1614('0x8')](_0x2b93f5);const _0x17270d=_0x2cd124['local'](),_0xfc2334=_0x17270d[_0x1614('0x4')]({'days':0x1})['startOf'](_0x1614('0x1'));let _0x3c4e03,_0x59544a;return _0x327701[_0x1614('0x0')](_0x17270d,'day')?(_0x3c4e03=_0x327701[_0x1614('0xb')](_0x1614('0x1'))[_0x1614('0x9')](),_0x59544a=_0x327701[_0x1614('0x7')]()):_0x327701[_0x1614('0x0')](_0xfc2334,_0x1614('0x1'))?(_0x3c4e03=_0xfc2334[_0x1614('0x9')](),_0x59544a=_0x327701['toRelativeCalendar']()):_0x327701[_0x1614('0x0')](_0x17270d,'week')?(_0x3c4e03=_0x327701[_0x1614('0xb')](_0x1614('0x6'))[_0x1614('0x9')](),_0x59544a=_0x327701[_0x1614('0x3')]):_0x327701[_0x1614('0x0')](_0x17270d,_0x1614('0x2'))?(_0x3c4e03=_0x327701[_0x1614('0xb')]('month')[_0x1614('0x9')](),_0x59544a=_0x327701[_0x1614('0x5')]):(_0x3c4e03=_0x327701[_0x1614('0xb')](_0x1614('0x2'))['toJSDate'](),_0x59544a=_0x327701[_0x1614('0x2')]),{'startDate':_0x3c4e03,'localizedPeriodName':_0x59544a};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x537b=['setTemplate','author','Added\x20by','div','focus','Suggested\x20by','name','type','set','Removed\x20by','element','span','ck-revision-change__','ck-annotation'];(function(_0x1d6691,_0x537b94){const _0x167bdb=function(_0x12a013){while(--_0x12a013){_0x1d6691['push'](_0x1d6691['shift']());}};_0x167bdb(++_0x537b94);}(_0x537b,0xdf));const _0x167b=function(_0x1d6691,_0x537b94){_0x1d6691=_0x1d6691-0x0;let _0x167bdb=_0x537b[_0x1d6691];return _0x167bdb;};import{View as _0x7d766b}from'ckeditor5/src/ui';import{getTranslation as _0x2cb708}from'../../utils/common-translations';export default class X extends _0x7d766b{constructor(_0x159441,_0x3a3847){super(_0x159441),this['_model']=_0x3a3847;const _0x1dc09c=this['bindTemplate'],_0x315ace=_0x2cb708(_0x159441,_0x3a3847['data']['isSuggestion']?_0x167b('0x6'):'add'==_0x3a3847['type']?_0x167b('0x3'):_0x167b('0xa'));this[_0x167b('0x9')]('type',_0x3a3847[_0x167b('0x8')]),this[_0x167b('0x1')]({'tag':_0x167b('0x4'),'attributes':{'class':[_0x167b('0x0'),'ck-revision-change',_0x1dc09c['to'](_0x167b('0x8'),_0x467a12=>_0x167b('0xd')+_0x467a12)],'tabindex':-0x1},'children':[{'tag':_0x167b('0xc'),'children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x315ace}]},{'text':'\x20'+_0x3a3847[_0x167b('0x2')][_0x167b('0x7')]}]}]});}['focus'](){this[_0x167b('0xb')][_0x167b('0x5')]();}}
23
+ const _0xa16a=['Added\x20by','ck-revision-change','Removed\x20by','focus','add','setTemplate','name','div','ck-annotation','_model','isSuggestion','data','span','set','element','type','ck-revision-change__label'];(function(_0x50af9a,_0xa16aa1){const _0x398bbc=function(_0x4b815c){while(--_0x4b815c){_0x50af9a['push'](_0x50af9a['shift']());}};_0x398bbc(++_0xa16aa1);}(_0xa16a,0x1b7));const _0x398b=function(_0x50af9a,_0xa16aa1){_0x50af9a=_0x50af9a-0x0;let _0x398bbc=_0xa16a[_0x50af9a];return _0x398bbc;};import{View as _0x2139b9}from'ckeditor5/src/ui';import{getTranslation as _0x36f5e7}from'../../utils/common-translations';export default class X extends _0x2139b9{constructor(_0x482aaf,_0x583db6){super(_0x482aaf),this[_0x398b('0xc')]=_0x583db6;const _0x5478dc=this['bindTemplate'],_0x42b858=_0x36f5e7(_0x482aaf,_0x583db6[_0x398b('0xe')][_0x398b('0xd')]?'Suggested\x20by':_0x398b('0x7')==_0x583db6[_0x398b('0x1')]?_0x398b('0x3'):_0x398b('0x5'));this[_0x398b('0x10')](_0x398b('0x1'),_0x583db6['type']),this[_0x398b('0x8')]({'tag':_0x398b('0xa'),'attributes':{'class':[_0x398b('0xb'),_0x398b('0x4'),_0x5478dc['to'](_0x398b('0x1'),_0x172f01=>'ck-revision-change__'+_0x172f01)],'tabindex':-0x1},'children':[{'tag':_0x398b('0xf'),'children':[{'tag':'span','attributes':{'class':[_0x398b('0x2')]},'children':[{'text':_0x42b858}]},{'text':'\x20'+_0x583db6['author'][_0x398b('0x9')]}]}]});}[_0x398b('0x6')](){this[_0x398b('0x0')][_0x398b('0x6')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3d08=['isForwardNavigationEnabled','span','Total','ck-revision-history-ui__changes-navigation__navigation','ck-hidden','isNavigationMode','fire','isBackwardNavigationEnabled','ck-revision-history-ui__changes-navigation__label','X_OF_Y_CHANGES','Show\x20previous\x20change','setTemplate','forward','execute','ck-revision-history-ui__changes-navigation','Loading...','numberOfChanges','ck-revision-history-ui','backward','EDIT_X_OF_Y_REVISIONS','Show\x20next\x20change','isReady','_isStatusLabelVisible','set','currentChangeNumber','bind','ck-revision-history-ui__changes-navigation__wrapper','div','No\x20changes','NUMBER_OF_CHANGES'];(function(_0x136a6f,_0x3d0877){const _0x29c850=function(_0x22c8b0){while(--_0x22c8b0){_0x136a6f['push'](_0x136a6f['shift']());}};_0x29c850(++_0x3d0877);}(_0x3d08,0xb5));const _0x29c8=function(_0x136a6f,_0x3d0877){_0x136a6f=_0x136a6f-0x0;let _0x29c850=_0x3d08[_0x136a6f];return _0x29c850;};import{View as _0xc828c6,ButtonView as _0x9a764e,ToolbarSeparatorView as _0x35e139}from'ckeditor5/src/ui';import{getTranslation as _0x1f8168}from'../../utils/common-translations';import _0x34a7a7 from'../../../theme/icons/arrow-up.svg';import _0x39b322 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0xc828c6{constructor(_0x59c46b){super(_0x59c46b);const _0x51f19e=this['bindTemplate'],_0x45939e=new _0x9a764e(_0x59c46b),_0x1a5d52=new _0x9a764e(_0x59c46b);this[_0x29c8('0x16')]('isNavigationMode',!0x1),this[_0x29c8('0x16')](_0x29c8('0x14'),!0x1),this[_0x29c8('0x16')](_0x29c8('0x17'),0x0),this[_0x29c8('0x16')](_0x29c8('0xf'),0x0),this['set'](_0x29c8('0x1d'),!0x1),this[_0x29c8('0x16')](_0x29c8('0x6'),!0x1),this['bind']('_isStatusLabelVisible')['to'](this,_0x29c8('0x14'),this,_0x29c8('0xf'),(_0x3cd223,_0x3ecc6e)=>_0x3cd223&&_0x3ecc6e>0x0),this[_0x29c8('0x18')]('_statusText')['to'](this,_0x29c8('0x14'),this,_0x29c8('0x17'),this,_0x29c8('0xf'),this,_0x29c8('0x4'),(_0xc090cc,_0x54bef7,_0x362644,_0x406eae)=>{if(!_0xc090cc)return _0x1f8168(_0x59c46b,_0x29c8('0xe'));if(!_0x362644)return _0x1f8168(_0x59c46b,_0x29c8('0x1b'));const _0x56c2db=_0x1f8168(_0x59c46b,_0x29c8('0x1c'),_0x362644);return _0x406eae?_0x1f8168(_0x59c46b,_0x29c8('0x8'),[_0x54bef7+0x1,_0x362644]):_0x56c2db;}),_0x45939e['set']({'label':_0x1f8168(_0x59c46b,_0x29c8('0x9')),'tooltip':!0x0,'icon':_0x34a7a7}),_0x1a5d52[_0x29c8('0x16')]({'label':_0x1f8168(_0x59c46b,_0x29c8('0x13')),'tooltip':!0x0,'icon':_0x39b322}),_0x45939e[_0x29c8('0x18')]('isEnabled')['to'](this,_0x29c8('0x6')),_0x1a5d52['bind']('isEnabled')['to'](this,_0x29c8('0x1d')),_0x45939e['on'](_0x29c8('0xc'),()=>this[_0x29c8('0x5')](_0x29c8('0xc'),_0x29c8('0x11'))),_0x1a5d52['on'](_0x29c8('0xc'),()=>this['fire'](_0x29c8('0xc'),_0x29c8('0xb'))),this[_0x29c8('0xa')]({'tag':'div','attributes':{'class':['ck',_0x29c8('0x10'),_0x29c8('0xd')]},'children':[{'tag':'span','attributes':{'class':[_0x29c8('0x19')]},'children':[{'tag':_0x29c8('0x0'),'attributes':{'class':[_0x29c8('0x7'),_0x51f19e['if'](_0x29c8('0x15'),_0x29c8('0x3'),_0x5c8cc3=>!_0x5c8cc3)]},'children':[{'text':_0x51f19e['to'](_0x29c8('0x4'),_0x2ccc7f=>_0x2ccc7f?_0x1f8168(_0x59c46b,_0x29c8('0x12'))+':\x20':_0x1f8168(_0x59c46b,_0x29c8('0x1'))+':\x20')}]},{'text':_0x51f19e['to']('_statusText')}]},new _0x35e139(),{'tag':_0x29c8('0x1a'),'attributes':{'class':[_0x29c8('0x2')]},'children':[_0x45939e,_0x1a5d52]}]});}}
23
+ const _0x1bf9=['span','execute','_statusText','fire','_isStatusLabelVisible','Total','ck-revision-history-ui','bind','ck-revision-history-ui__changes-navigation__navigation','isNavigationMode','Show\x20previous\x20change','EDIT_X_OF_Y_REVISIONS','numberOfChanges','forward','NUMBER_OF_CHANGES','ck-hidden','set','No\x20changes','isBackwardNavigationEnabled','isEnabled','setTemplate','isReady','ck-revision-history-ui__changes-navigation__wrapper','bindTemplate','div'];(function(_0x55f2bc,_0x1bf91b){const _0x42285e=function(_0x66cef6){while(--_0x66cef6){_0x55f2bc['push'](_0x55f2bc['shift']());}};_0x42285e(++_0x1bf91b);}(_0x1bf9,0x1cd));const _0x4228=function(_0x55f2bc,_0x1bf91b){_0x55f2bc=_0x55f2bc-0x0;let _0x42285e=_0x1bf9[_0x55f2bc];return _0x42285e;};import{View as _0x85b7e0,ButtonView as _0x2e1456,ToolbarSeparatorView as _0x230e2f}from'ckeditor5/src/ui';import{getTranslation as _0x2db1a5}from'../../utils/common-translations';import _0x1ab7fe from'../../../theme/icons/arrow-up.svg';import _0x2ce6fd from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x85b7e0{constructor(_0x2a4efc){super(_0x2a4efc);const _0xba634f=this[_0x4228('0xc')],_0x1cbec6=new _0x2e1456(_0x2a4efc),_0x2d7e80=new _0x2e1456(_0x2a4efc);this[_0x4228('0x5')]('isNavigationMode',!0x1),this[_0x4228('0x5')](_0x4228('0xa'),!0x1),this[_0x4228('0x5')]('currentChangeNumber',0x0),this['set'](_0x4228('0x1'),0x0),this[_0x4228('0x5')]('isForwardNavigationEnabled',!0x1),this[_0x4228('0x5')](_0x4228('0x7'),!0x1),this['bind'](_0x4228('0x12'))['to'](this,_0x4228('0xa'),this,_0x4228('0x1'),(_0x11d992,_0x14ae25)=>_0x11d992&&_0x14ae25>0x0),this[_0x4228('0x15')]('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,_0x4228('0x1'),this,_0x4228('0x17'),(_0x5985d1,_0x446ed4,_0x320e26,_0x5c1da1)=>{if(!_0x5985d1)return _0x2db1a5(_0x2a4efc,'Loading...');if(!_0x320e26)return _0x2db1a5(_0x2a4efc,_0x4228('0x6'));const _0x3a82bd=_0x2db1a5(_0x2a4efc,_0x4228('0x3'),_0x320e26);return _0x5c1da1?_0x2db1a5(_0x2a4efc,'X_OF_Y_CHANGES',[_0x446ed4+0x1,_0x320e26]):_0x3a82bd;}),_0x1cbec6['set']({'label':_0x2db1a5(_0x2a4efc,_0x4228('0x18')),'tooltip':!0x0,'icon':_0x1ab7fe}),_0x2d7e80[_0x4228('0x5')]({'label':_0x2db1a5(_0x2a4efc,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2ce6fd}),_0x1cbec6[_0x4228('0x15')]('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2d7e80[_0x4228('0x15')](_0x4228('0x8'))['to'](this,'isForwardNavigationEnabled'),_0x1cbec6['on'](_0x4228('0xf'),()=>this['fire'](_0x4228('0xf'),'backward')),_0x2d7e80['on'](_0x4228('0xf'),()=>this[_0x4228('0x11')]('execute',_0x4228('0x2'))),this[_0x4228('0x9')]({'tag':_0x4228('0xd'),'attributes':{'class':['ck',_0x4228('0x14'),'ck-revision-history-ui__changes-navigation']},'children':[{'tag':_0x4228('0xe'),'attributes':{'class':[_0x4228('0xb')]},'children':[{'tag':_0x4228('0xe'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0xba634f['if'](_0x4228('0x12'),_0x4228('0x4'),_0x35b29d=>!_0x35b29d)]},'children':[{'text':_0xba634f['to'](_0x4228('0x17'),_0x1d3ea0=>_0x1d3ea0?_0x2db1a5(_0x2a4efc,_0x4228('0x0'))+':\x20':_0x2db1a5(_0x2a4efc,_0x4228('0x13'))+':\x20')}]},{'text':_0xba634f['to'](_0x4228('0x10'))}]},new _0x230e2f(),{'tag':_0x4228('0xd'),'attributes':{'class':[_0x4228('0x16')]},'children':[_0x1cbec6,_0x2d7e80]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xaba0=['view','removeClass','hide','pluginName','show','ck-editor__editable__loading-overlay','editor','change','document','RevisionViewerLoadingOverlay','addClass','roots'];(function(_0x5e5eb9,_0xaba09){const _0x3dd17f=function(_0x5bc382){while(--_0x5bc382){_0x5e5eb9['push'](_0x5e5eb9['shift']());}};_0x3dd17f(++_0xaba09);}(_0xaba0,0x1f0));const _0x3dd1=function(_0x5e5eb9,_0xaba09){_0x5e5eb9=_0x5e5eb9-0x0;let _0x3dd17f=_0xaba0[_0x5e5eb9];return _0x3dd17f;};import{Plugin as _0x1d44ff}from'ckeditor5/src/core';import'../../../theme/revisionviewerloadingoverlay.css';export default class ee extends _0x1d44ff{static get[_0x3dd1('0xb')](){return _0x3dd1('0x5');}[_0x3dd1('0x0')](){const _0x4f0f2e=this[_0x3dd1('0x2')]['editing'][_0x3dd1('0x8')];_0x4f0f2e['change'](_0x100396=>{for(const _0x44ef04 of _0x4f0f2e['document'][_0x3dd1('0x7')])_0x100396[_0x3dd1('0x6')]('ck-editor__editable__loading-overlay',_0x44ef04);});}[_0x3dd1('0xa')](){const _0x5875f0=this['editor']['editing'][_0x3dd1('0x8')];_0x5875f0[_0x3dd1('0x3')](_0xb2c837=>{for(const _0x44a6e0 of _0x5875f0[_0x3dd1('0x4')][_0x3dd1('0x7')])_0xb2c837[_0x3dd1('0x9')](_0x3dd1('0x1'),_0x44a6e0);});}}
23
+ const _0x5b8e=['editor','removeClass','editing','view','roots','ck-editor__editable__loading-overlay','RevisionViewerLoadingOverlay','document','show','change','pluginName'];(function(_0x2c841c,_0x5b8e11){const _0x58fa5e=function(_0x2e4551){while(--_0x2e4551){_0x2c841c['push'](_0x2c841c['shift']());}};_0x58fa5e(++_0x5b8e11);}(_0x5b8e,0x11f));const _0x58fa=function(_0x2c841c,_0x5b8e11){_0x2c841c=_0x2c841c-0x0;let _0x58fa5e=_0x5b8e[_0x2c841c];return _0x58fa5e;};import{Plugin as _0x2477f8}from'ckeditor5/src/core';import'../../../theme/revisionviewerloadingoverlay.css';export default class ee extends _0x2477f8{static get[_0x58fa('0x9')](){return _0x58fa('0x5');}[_0x58fa('0x7')](){const _0x5a2aed=this['editor'][_0x58fa('0x1')][_0x58fa('0x2')];_0x5a2aed['change'](_0x4d16ad=>{for(const _0x3f18ba of _0x5a2aed['document']['roots'])_0x4d16ad['addClass'](_0x58fa('0x4'),_0x3f18ba);});}['hide'](){const _0x2967d9=this[_0x58fa('0xa')]['editing']['view'];_0x2967d9[_0x58fa('0x8')](_0x6076b4=>{for(const _0x30f9ca of _0x2967d9[_0x58fa('0x6')][_0x58fa('0x3')])_0x6076b4[_0x58fa('0x0')](_0x58fa('0x4'),_0x30f9ca);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3695=['change:isReady','pluginName','numberOfChanges','set','ck-revision-history-ui__back-to-editing','editor','config','componentFactory','restoreRevision','currentChangeNumber','isForwardNavigationEnabled','isEnabled','isNavigationMode','get','closeRevisionViewerCallback','exitToEditing','show','Restore\x20this\x20revision','revisionHistory','bind','requires','init','listenTo','isReady','commands','hide','changesNavigation','showNextChange','execute','add','plugins','Back\x20to\x20editing','isBackwardNavigationEnabled','showPreviousChange'];(function(_0xdb3f76,_0x3695a1){const _0x402ade=function(_0x52577f){while(--_0x52577f){_0xdb3f76['push'](_0xdb3f76['shift']());}};_0x402ade(++_0x3695a1);}(_0x3695,0x9d));const _0x402a=function(_0xdb3f76,_0x3695a1){_0xdb3f76=_0xdb3f76-0x0;let _0x402ade=_0x3695[_0xdb3f76];return _0x402ade;};import{Plugin as _0x4ba7e4}from'ckeditor5/src/core';import{ButtonView as _0x472319}from'ckeditor5/src/ui';import _0x20898d from'./changesnavigationview';import _0x51dcc2 from'./../../revisionviewer';import _0x29f1da from'./revisionviewerloadingoverlay';import{getTranslation as _0xd296ba}from'../../utils/common-translations';import _0x443443 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class m extends _0x4ba7e4{static get[_0x402a('0xe')](){return'RevisionViewerUI';}static get[_0x402a('0x21')](){return[_0x51dcc2,_0x29f1da];}[_0x402a('0x0')](){const _0x2d1058=this[_0x402a('0x12')],_0xf0c2f1=_0x2d1058[_0x402a('0x9')][_0x402a('0x1a')](_0x51dcc2),_0x17d183=_0x2d1058[_0x402a('0x9')]['get'](_0x29f1da);_0x2d1058['ui'][_0x402a('0x14')][_0x402a('0x8')](_0x402a('0x1c'),_0x477bc8=>{const _0x25fd3d=new _0x472319(_0x477bc8);return _0x25fd3d[_0x402a('0x10')]({'label':_0xd296ba(_0x477bc8,_0x402a('0xa')),'icon':_0x443443,'withText':!0x0,'tooltip':!0x0,'class':_0x402a('0x11')}),this['listenTo'](_0x25fd3d,_0x402a('0x7'),()=>{_0x2d1058[_0x402a('0x13')][_0x402a('0x1a')](_0x402a('0x1f'))[_0x402a('0x1b')]();}),_0x25fd3d;}),_0x2d1058['ui']['componentFactory']['add'](_0x402a('0x15'),_0x242cf0=>{const _0x3958bd=new _0x472319(_0x242cf0);return _0x3958bd[_0x402a('0x10')]({'label':_0xd296ba(_0x242cf0,_0x402a('0x1e')),'withText':!0x0,'tooltip':!0x0}),_0x3958bd[_0x402a('0x20')](_0x402a('0x18'))['to'](_0x2d1058['commands'][_0x402a('0x1a')]('restoreRevision')),this[_0x402a('0x1')](_0x3958bd,_0x402a('0x7'),()=>_0x2d1058[_0x402a('0x7')]('restoreRevision')),_0x3958bd;}),_0x2d1058['ui']['componentFactory'][_0x402a('0x8')](_0x402a('0x5'),_0x7e07ae=>{const _0x160a00=new _0x20898d(_0x7e07ae),_0x2374fa=_0x2d1058[_0x402a('0x3')][_0x402a('0x1a')](_0x402a('0xc')),_0x5ee84b=_0x2d1058[_0x402a('0x3')][_0x402a('0x1a')](_0x402a('0x6'));return _0x160a00[_0x402a('0x20')](_0x402a('0xb'))['to'](_0x2374fa,_0x402a('0x18')),_0x160a00[_0x402a('0x20')](_0x402a('0x17'))['to'](_0x5ee84b,_0x402a('0x18')),_0x160a00['bind'](_0x402a('0x2'),_0x402a('0x16'),_0x402a('0xf'),_0x402a('0x19'))['to'](_0xf0c2f1),this[_0x402a('0x1')](_0x160a00,_0x402a('0x7'),(_0x3e2639,_0x57143c)=>{_0x2d1058['execute']('forward'===_0x57143c?_0x402a('0x6'):_0x402a('0xc'));}),_0x160a00;}),_0x17d183[_0x402a('0x1d')](),_0xf0c2f1['on'](_0x402a('0xd'),(_0x31b8f6,_0x7a7ec7,_0x3bcac4)=>{_0x3bcac4?_0x17d183[_0x402a('0x4')]():_0x17d183[_0x402a('0x1d')]();});}}
23
+ const _0x5cb7=['get','ck-revision-history-ui__back-to-editing','add','set','execute','restoreRevision','RevisionViewerUI','isReady','listenTo','commands','changesNavigation','componentFactory','isBackwardNavigationEnabled','showPreviousChange','requires','show','change:isReady','isNavigationMode','revisionHistory','hide','forward','isEnabled','plugins','Restore\x20this\x20revision','currentChangeNumber','Back\x20to\x20editing','bind','showNextChange','init'];(function(_0x32f8c4,_0x5cb72e){const _0x2f0abb=function(_0x53a41d){while(--_0x53a41d){_0x32f8c4['push'](_0x32f8c4['shift']());}};_0x2f0abb(++_0x5cb72e);}(_0x5cb7,0x71));const _0x2f0a=function(_0x32f8c4,_0x5cb72e){_0x32f8c4=_0x32f8c4-0x0;let _0x2f0abb=_0x5cb7[_0x32f8c4];return _0x2f0abb;};import{Plugin as _0x56bba5}from'ckeditor5/src/core';import{ButtonView as _0x1e29f6}from'ckeditor5/src/ui';import _0x4580f7 from'./changesnavigationview';import _0x31d9ee from'./../../revisionviewer';import _0x3ee198 from'./revisionviewerloadingoverlay';import{getTranslation as _0x46e72b}from'../../utils/common-translations';import _0x535c1f from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class m extends _0x56bba5{static get['pluginName'](){return _0x2f0a('0x9');}static get[_0x2f0a('0x11')](){return[_0x31d9ee,_0x3ee198];}[_0x2f0a('0x2')](){const _0x551ca8=this['editor'],_0x435b1a=_0x551ca8[_0x2f0a('0x19')][_0x2f0a('0x3')](_0x31d9ee),_0x55311e=_0x551ca8[_0x2f0a('0x19')][_0x2f0a('0x3')](_0x3ee198);_0x551ca8['ui'][_0x2f0a('0xe')]['add']('exitToEditing',_0x328d4e=>{const _0x2ed8e7=new _0x1e29f6(_0x328d4e);return _0x2ed8e7[_0x2f0a('0x6')]({'label':_0x46e72b(_0x328d4e,_0x2f0a('0x1c')),'icon':_0x535c1f,'withText':!0x0,'tooltip':!0x0,'class':_0x2f0a('0x4')}),this[_0x2f0a('0xb')](_0x2ed8e7,_0x2f0a('0x7'),()=>{_0x551ca8['config'][_0x2f0a('0x3')](_0x2f0a('0x15'))['closeRevisionViewerCallback']();}),_0x2ed8e7;}),_0x551ca8['ui']['componentFactory'][_0x2f0a('0x5')](_0x2f0a('0x8'),_0x516f21=>{const _0x25db6e=new _0x1e29f6(_0x516f21);return _0x25db6e[_0x2f0a('0x6')]({'label':_0x46e72b(_0x516f21,_0x2f0a('0x1a')),'withText':!0x0,'tooltip':!0x0}),_0x25db6e[_0x2f0a('0x0')](_0x2f0a('0x18'))['to'](_0x551ca8['commands'][_0x2f0a('0x3')](_0x2f0a('0x8'))),this['listenTo'](_0x25db6e,'execute',()=>_0x551ca8['execute'](_0x2f0a('0x8'))),_0x25db6e;}),_0x551ca8['ui'][_0x2f0a('0xe')][_0x2f0a('0x5')](_0x2f0a('0xd'),_0x442a13=>{const _0x41623a=new _0x4580f7(_0x442a13),_0x4e12ec=_0x551ca8[_0x2f0a('0xc')][_0x2f0a('0x3')](_0x2f0a('0x10')),_0x288959=_0x551ca8[_0x2f0a('0xc')]['get'](_0x2f0a('0x1'));return _0x41623a[_0x2f0a('0x0')](_0x2f0a('0xf'))['to'](_0x4e12ec,'isEnabled'),_0x41623a['bind']('isForwardNavigationEnabled')['to'](_0x288959,_0x2f0a('0x18')),_0x41623a['bind'](_0x2f0a('0xa'),_0x2f0a('0x1b'),'numberOfChanges',_0x2f0a('0x14'))['to'](_0x435b1a),this[_0x2f0a('0xb')](_0x41623a,_0x2f0a('0x7'),(_0xeb8f9b,_0x47696b)=>{_0x551ca8[_0x2f0a('0x7')](_0x2f0a('0x17')===_0x47696b?_0x2f0a('0x1'):_0x2f0a('0x10'));}),_0x41623a;}),_0x55311e[_0x2f0a('0x12')](),_0x435b1a['on'](_0x2f0a('0x13'),(_0x3055d0,_0x11f529,_0x5d5582)=>{_0x5d5582?_0x55311e[_0x2f0a('0x16')]():_0x55311e['show']();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x55ffac,_0x38a82b,_0x3aaab5){const t=_0x55ffac['t'];switch(_0x38a82b){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'},_0x3aaab5);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3aaab5);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'});}}
23
+ export function getTranslation(_0x3cdc94,_0x3c1e33,_0x55c5a4){const t=_0x3cdc94['t'];switch(_0x3c1e33){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'},_0x55c5a4);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x55c5a4);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'});}}