@ckeditor/ckeditor5-revision-history 35.3.0 → 35.3.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 (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +7 -7
  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 _0xcfe0=['length','remove','revisionHistory','plugins','reset','Open\x20revision\x20history','focus','children','init','add','editing','componentFactory','bind','buttonView','Revision\x20history','Save\x20current\x20revision','cancel','saveButtonView','RevisionHistoryUI','requires','revisionName','set','render','execute','get','isReadOnly','showRevisionViewerCallback','isEnabled','view','change:isOpen','submit','items','RevisionTracker','editor','isReady'];(function(_0x1cb252,_0xcfe096){const _0x1ee089=function(_0x37d257){while(--_0x37d257){_0x1cb252['push'](_0x1cb252['shift']());}};_0x1ee089(++_0xcfe096);}(_0xcfe0,0xdc));const _0x1ee0=function(_0x1cb252,_0xcfe096){_0x1cb252=_0x1cb252-0x0;let _0x1ee089=_0xcfe0[_0x1cb252];return _0x1ee089;};import{Plugin as _0x22ab48}from'ckeditor5/src/core';import{ListView as _0x3b7327,ListItemView as _0x4ba65c,ButtonView as _0x25ccf0,createDropdown as _0x235bfe}from'ckeditor5/src/ui';import _0x5d5cbe from'../../revisiontracker';import _0x4b9c86 from'./revisionhistorysaverevisionformview';import _0x32fa24 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x576e48}from'../../utils/common-translations';export default class R extends _0x22ab48{static get['pluginName'](){return _0x1ee0('0x8');}static get[_0x1ee0('0x9')](){return[_0x5d5cbe];}[_0x1ee0('0x21')](){const _0xbf6523=this[_0x1ee0('0x17')],_0x583f8f=_0xbf6523[_0x1ee0('0x1c')][_0x1ee0('0xe')](_0x1ee0('0x16'));_0xbf6523['ui'][_0x1ee0('0x1')][_0x1ee0('0x22')](_0x1ee0('0x1b'),_0x5198d8=>{const _0xd7f452=_0x235bfe(_0x5198d8),_0x2fead5=_0xd7f452['panelView'][_0x1ee0('0x20')],_0x599b8a=new _0x3b7327(_0x5198d8),_0x41dc25=new _0x4ba65c(_0x5198d8),_0x3bf071=new _0x25ccf0(_0x5198d8),_0x5213ce=new _0x4ba65c(_0x5198d8),_0x5469a3=new _0x25ccf0(_0x5198d8),_0x6abe91=new _0x4b9c86(_0x5198d8);function _0x4b3d20(){_0x2fead5[_0x1ee0('0x19')]&&_0x2fead5[_0x1ee0('0x1a')](0x0),_0x2fead5[_0x1ee0('0x22')](_0x599b8a);}function _0x52de75(){_0xd7f452['isOpen']=!0x1,_0xbf6523[_0x1ee0('0x0')][_0x1ee0('0x12')][_0x1ee0('0x1f')]();}return _0xd7f452[_0x1ee0('0x2')](_0x1ee0('0x11'))['to'](_0x583f8f,_0x1ee0('0x18'),_0x583f8f,_0x1ee0('0x11'),_0xbf6523,_0x1ee0('0xf'),(_0x351318,_0x11bb10,_0x51780a)=>_0x351318&&_0x11bb10&&!_0x51780a),_0xd7f452[_0x1ee0('0x3')][_0x1ee0('0xb')]({'icon':_0x32fa24,'label':_0x576e48(_0x5198d8,_0x1ee0('0x4')),'tooltip':!0x0}),_0x3bf071[_0x1ee0('0xb')]({'label':_0x576e48(_0x5198d8,_0x1ee0('0x5')),'withText':!0x0}),_0x3bf071['bind'](_0x1ee0('0x11'))['to'](_0x583f8f,_0x1ee0('0x18'),_0x583f8f,_0x1ee0('0x11'),_0xbf6523,'isReadOnly',(_0x4cc689,_0x560d0b,_0xf1da6f)=>_0x4cc689&&_0x560d0b&&!_0xf1da6f),_0x3bf071['on'](_0x1ee0('0xd'),()=>function(){_0x2fead5['length']&&_0x2fead5[_0x1ee0('0x1a')](0x0),(_0x6abe91[_0x1ee0('0x1d')](),_0x2fead5['add'](_0x6abe91),_0x6abe91[_0x1ee0('0x1f')]());}()),_0x5469a3['set']({'label':_0x576e48(_0x5198d8,_0x1ee0('0x1e')),'withText':!0x0}),_0x5469a3[_0x1ee0('0x2')](_0x1ee0('0x11'))['to'](_0x583f8f,'isReady',_0xbf6523,_0x1ee0('0xf'),(_0xba11e3,_0x554378)=>_0xba11e3&&!_0x554378),_0x5469a3['on'](_0x1ee0('0xd'),()=>{_0xbf6523['config'][_0x1ee0('0xe')]('revisionHistory')[_0x1ee0('0x10')](),_0x52de75();}),_0x41dc25[_0x1ee0('0x20')][_0x1ee0('0x22')](_0x3bf071),_0x5213ce[_0x1ee0('0x20')][_0x1ee0('0x22')](_0x5469a3),_0x599b8a[_0x1ee0('0x15')]['addMany']([_0x41dc25,_0x5213ce]),_0xd7f452['on'](_0x1ee0('0x13'),()=>_0x4b3d20()),_0x6abe91[_0x1ee0('0x7')]['bind']('isEnabled')['to'](_0x583f8f,_0x1ee0('0x18'),_0x583f8f,_0x1ee0('0x11'),_0xbf6523,_0x1ee0('0xf'),(_0x38e1d1,_0x4befad,_0x46f27f)=>_0x38e1d1&&_0x4befad&&!_0x46f27f),_0x6abe91['on'](_0x1ee0('0x14'),()=>(_0xbf6523['plugins']['get'](_0x5d5cbe)['saveRevision']({'name':_0x6abe91[_0x1ee0('0xa')]}),void _0x52de75())),_0x6abe91['on'](_0x1ee0('0x6'),()=>_0x4b3d20()),_0x6abe91[_0x1ee0('0xc')](),_0x4b3d20(),_0xd7f452;});}}
23
+ const _0x2ab2=['cancel','add','RevisionTracker','Save\x20current\x20revision','componentFactory','plugins','get','RevisionHistoryUI','init','isEnabled','length','bind','isReadOnly','buttonView','isReady','view','pluginName','remove','editor','focus','render','panelView','editing','submit','Open\x20revision\x20history','revisionHistory','config','showRevisionViewerCallback','children','requires','execute','set'];(function(_0x3cedd6,_0x2ab2f6){const _0x2f022e=function(_0x3d9597){while(--_0x3d9597){_0x3cedd6['push'](_0x3cedd6['shift']());}};_0x2f022e(++_0x2ab2f6);}(_0x2ab2,0x164));const _0x2f02=function(_0x3cedd6,_0x2ab2f6){_0x3cedd6=_0x3cedd6-0x0;let _0x2f022e=_0x2ab2[_0x3cedd6];return _0x2f022e;};import{Plugin as _0x4d1335}from'ckeditor5/src/core';import{ListView as _0x7ef3a2,ListItemView as _0x5e537c,ButtonView as _0x19648e,createDropdown as _0x255fb0}from'ckeditor5/src/ui';import _0x1df127 from'../../revisiontracker';import _0x5538cb from'./revisionhistorysaverevisionformview';import _0x167d35 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x2f20cb}from'../../utils/common-translations';export default class R extends _0x4d1335{static get[_0x2f02('0xc')](){return _0x2f02('0x3');}static get[_0x2f02('0x19')](){return[_0x1df127];}[_0x2f02('0x4')](){const _0x51f416=this[_0x2f02('0xe')],_0x4d0d19=_0x51f416[_0x2f02('0x1')][_0x2f02('0x2')](_0x2f02('0x1e'));_0x51f416['ui'][_0x2f02('0x0')]['add']('revisionHistory',_0x105554=>{const _0x7a05eb=_0x255fb0(_0x105554),_0x1ee792=_0x7a05eb[_0x2f02('0x11')][_0x2f02('0x18')],_0x201d4e=new _0x7ef3a2(_0x105554),_0xa73f54=new _0x5e537c(_0x105554),_0x5e8b58=new _0x19648e(_0x105554),_0x27d070=new _0x5e537c(_0x105554),_0x1e567a=new _0x19648e(_0x105554),_0x1444c=new _0x5538cb(_0x105554);function _0x2950ad(){_0x1ee792[_0x2f02('0x6')]&&_0x1ee792[_0x2f02('0xd')](0x0),_0x1ee792[_0x2f02('0x1d')](_0x201d4e);}function _0xe3afbc(){_0x7a05eb['isOpen']=!0x1,_0x51f416[_0x2f02('0x12')][_0x2f02('0xb')][_0x2f02('0xf')]();}return _0x7a05eb[_0x2f02('0x7')](_0x2f02('0x5'))['to'](_0x4d0d19,_0x2f02('0xa'),_0x4d0d19,_0x2f02('0x5'),_0x51f416,_0x2f02('0x8'),(_0x323c94,_0x5af138,_0x5c22b0)=>_0x323c94&&_0x5af138&&!_0x5c22b0),_0x7a05eb[_0x2f02('0x9')][_0x2f02('0x1b')]({'icon':_0x167d35,'label':_0x2f20cb(_0x105554,'Revision\x20history'),'tooltip':!0x0}),_0x5e8b58[_0x2f02('0x1b')]({'label':_0x2f20cb(_0x105554,_0x2f02('0x1f')),'withText':!0x0}),_0x5e8b58[_0x2f02('0x7')](_0x2f02('0x5'))['to'](_0x4d0d19,_0x2f02('0xa'),_0x4d0d19,_0x2f02('0x5'),_0x51f416,_0x2f02('0x8'),(_0x7fff9,_0x1b4756,_0x5668f4)=>_0x7fff9&&_0x1b4756&&!_0x5668f4),_0x5e8b58['on'](_0x2f02('0x1a'),()=>function(){_0x1ee792[_0x2f02('0x6')]&&_0x1ee792['remove'](0x0),(_0x1444c['reset'](),_0x1ee792['add'](_0x1444c),_0x1444c['focus']());}()),_0x1e567a[_0x2f02('0x1b')]({'label':_0x2f20cb(_0x105554,_0x2f02('0x14')),'withText':!0x0}),_0x1e567a['bind'](_0x2f02('0x5'))['to'](_0x4d0d19,'isReady',_0x51f416,_0x2f02('0x8'),(_0xb82a28,_0x9b9213)=>_0xb82a28&&!_0x9b9213),_0x1e567a['on'](_0x2f02('0x1a'),()=>{_0x51f416[_0x2f02('0x16')]['get'](_0x2f02('0x15'))[_0x2f02('0x17')](),_0xe3afbc();}),_0xa73f54['children'][_0x2f02('0x1d')](_0x5e8b58),_0x27d070[_0x2f02('0x18')]['add'](_0x1e567a),_0x201d4e['items']['addMany']([_0xa73f54,_0x27d070]),_0x7a05eb['on']('change:isOpen',()=>_0x2950ad()),_0x1444c['saveButtonView'][_0x2f02('0x7')](_0x2f02('0x5'))['to'](_0x4d0d19,'isReady',_0x4d0d19,'isEnabled',_0x51f416,'isReadOnly',(_0x568e63,_0xc04abb,_0x14dfa5)=>_0x568e63&&_0xc04abb&&!_0x14dfa5),_0x1444c['on'](_0x2f02('0x13'),()=>(_0x51f416[_0x2f02('0x1')]['get'](_0x1df127)['saveRevision']({'name':_0x1444c['revisionName']}),void _0xe3afbc())),_0x1444c['on'](_0x2f02('0x1c'),()=>_0x2950ad()),_0x1444c[_0x2f02('0x10')](),_0x2950ad(),_0x7a05eb;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2c98=['setName','requires','action','isReady','revisionSetName','Compare\x20against\x20selected','add','fieldView','isEnabled','highlightRevisions','_revisionViewer','_revisions','plugins','_handleRevisionSelected','listenTo','compare','_handleEditorDataReady','isVisible','getRevision','ready','diff','nameRevision','editor','selectRevision','focus','RevisionsSidebar','init','remove','revisionHistory.revisionActions','pluginName','destroy','map','repository','_createRevisionActions','get','Restore\x20this\x20revision','render','_sidebarView','getEarlierVisibleRevision','isSelected','availableRevisionActions','config','newRevisionId','restoreRevision','getLaterVisibleRevision','Name\x20this\x20revision','getRevisionsInDiff','name','revisionSelected','_handleRevisionSetName','getIndex','_revisionsRepository','revisionHistory.viewerSidebarContainer','change:diff','defaultRevisionActions','revisionViews','compareAgainstSelected','element','data','bind','length'];(function(_0x2b3dbe,_0x2c9800){const _0x4c0a55=function(_0x3aae97){while(--_0x3aae97){_0x2b3dbe['push'](_0x2b3dbe['shift']());}};_0x4c0a55(++_0x2c9800);}(_0x2c98,0x119));const _0x4c0a=function(_0x2b3dbe,_0x2c9800){_0x2b3dbe=_0x2b3dbe-0x0;let _0x4c0a55=_0x2c98[_0x2b3dbe];return _0x4c0a55;};import{Plugin as _0x43dc0b}from'ckeditor5/src/core';import _0x49fc1c from'./revisionssidebarview';import _0x100bdb from'../../revisionviewer';export default class y extends _0x43dc0b{static get[_0x4c0a('0x35')](){return _0x4c0a('0x31');}static get[_0x4c0a('0x19')](){return[_0x100bdb];}constructor(_0x3202e2){super(_0x3202e2),this[_0x4c0a('0x22')]=_0x3202e2[_0x4c0a('0x24')][_0x4c0a('0x3a')](_0x100bdb),this[_0x4c0a('0xe')]=this['_revisionViewer'][_0x4c0a('0x38')],this[_0x4c0a('0x0')]=null;}[_0x4c0a('0x32')](){const _0x27ee75=this[_0x4c0a('0xe')][_0x4c0a('0x23')],_0x55aac9=this[_0x4c0a('0x39')](),_0x5ca830=this[_0x4c0a('0x2e')][_0x4c0a('0x4')][_0x4c0a('0x3a')](_0x4c0a('0xf'));this[_0x4c0a('0x0')]=new _0x49fc1c(this['editor']['locale'],_0x27ee75,_0x55aac9),this[_0x4c0a('0x0')]['on'](_0x4c0a('0xb'),this[_0x4c0a('0x25')][_0x4c0a('0x16')](this)),this['_sidebarView']['on'](_0x4c0a('0x1c'),this['_handleRevisionSetName'][_0x4c0a('0x16')](this)),this[_0x4c0a('0x0')][_0x4c0a('0x16')](_0x4c0a('0x20'))['to'](this[_0x4c0a('0x22')]),this[_0x4c0a('0x0')]['timePeriodViews']['on'](_0x4c0a('0x1e'),(_0x2239bc,_0x598bcd)=>{_0x598bcd[_0x4c0a('0x12')]['on']('add',(_0x4e993c,_0x4c91c6)=>{_0x4c91c6['bind']('isEnabled',_0x4c0a('0x1b'))['to'](this[_0x4c0a('0x22')]);});}),this[_0x4c0a('0x0')][_0x4c0a('0x3c')](),this[_0x4c0a('0x26')](this[_0x4c0a('0x2e')][_0x4c0a('0x15')],_0x4c0a('0x2b'),this[_0x4c0a('0x28')]['bind'](this)),this[_0x4c0a('0x26')](this[_0x4c0a('0x22')],_0x4c0a('0x10'),this['_handleDiffChange'][_0x4c0a('0x16')](this)),_0x5ca830['appendChild'](this[_0x4c0a('0x0')][_0x4c0a('0x14')]);}[_0x4c0a('0x36')](){this[_0x4c0a('0x0')][_0x4c0a('0x14')][_0x4c0a('0x33')](),this[_0x4c0a('0x0')][_0x4c0a('0x36')]();}[_0x4c0a('0x28')](){const _0x4103b3=this[_0x4c0a('0xe')]['getRevision'](0x0);if(_0x4103b3){const _0x568567=this[_0x4c0a('0xe')]['getEarlierVisibleRevision'](_0x4103b3['id']);this['_revisionViewer'][_0x4c0a('0x27')](_0x4103b3,_0x568567);}}[_0x4c0a('0x25')](_0x3395b5,_0x33d4be){const _0x59fd48=this[_0x4c0a('0xe')][_0x4c0a('0x2a')](_0x33d4be['id']),_0x5b3d99=this[_0x4c0a('0xe')][_0x4c0a('0x1')](_0x59fd48['id']);this[_0x4c0a('0x22')][_0x4c0a('0x27')](_0x59fd48,_0x5b3d99);}[_0x4c0a('0xc')](_0x1f1bc6,_0x5956ad){this[_0x4c0a('0xe')][_0x4c0a('0x2a')](_0x5956ad['id'])[_0x4c0a('0x18')](_0x5956ad[_0x4c0a('0xa')]);}['_handleDiffChange'](_0xfc6b2c,_0x4a7275,_0x4d4006){const _0x4db791=this['_revisionsRepository'][_0x4c0a('0x9')](_0x4d4006);_0x4db791['length']>0x2?(this[_0x4c0a('0x0')]['highlightRevisions'](_0x4db791),this[_0x4c0a('0x0')][_0x4c0a('0x2f')](null)):(this['_sidebarView'][_0x4c0a('0x21')]([]),this[_0x4c0a('0x0')]['selectRevision'](_0x4db791[0x0]));}[_0x4c0a('0x39')](){const _0x10c430=this['editor'],_0x431477=y[_0x4c0a('0x3')],_0x9f4b35=_0x10c430['config']['get'](_0x4c0a('0x34'))||y[_0x4c0a('0x11')];if(_0x9f4b35[_0x4c0a('0x17')])return _0x9f4b35[_0x4c0a('0x37')](_0x30e3c0=>{const _0x1af7b8='string'==typeof _0x30e3c0?Object['assign']({},_0x431477[_0x30e3c0]):_0x30e3c0;return _0x1af7b8[_0x4c0a('0x1a')]=_0x1af7b8[_0x4c0a('0x1a')][_0x4c0a('0x16')](this,_0x10c430),_0x1af7b8[_0x4c0a('0x29')]&&(_0x1af7b8[_0x4c0a('0x29')]=_0x1af7b8[_0x4c0a('0x29')][_0x4c0a('0x16')](this,_0x10c430)),_0x1af7b8;});}}y['availableRevisionActions']={'compareAgainstSelected':{'name':_0x4c0a('0x1d'),'action':({plugins:_0x265eb5},_0x5a2790)=>{const _0x17c40b=_0x265eb5[_0x4c0a('0x3a')](_0x100bdb),_0x445418=_0x17c40b['repository'];let _0x4785d4=_0x17c40b[_0x4c0a('0x2c')][_0x4c0a('0x5')],_0x39125a=_0x5a2790['id'];_0x445418[_0x4c0a('0xd')](_0x4785d4)>_0x445418[_0x4c0a('0xd')](_0x39125a)&&([_0x4785d4,_0x39125a]=[_0x39125a,_0x4785d4]),_0x17c40b[_0x4c0a('0x27')](_0x4785d4,_0x39125a);},'isVisible':({plugins:_0x4a0319},_0x4ab9f7)=>{const _0x481302=_0x4a0319['get'](_0x100bdb);return!(_0x481302['repository'][_0x4c0a('0x9')](_0x481302[_0x4c0a('0x2c')])[_0x4c0a('0x17')]>0x2)&&!_0x4ab9f7[_0x4c0a('0x2')];}},'restoreRevision':{'name':_0x4c0a('0x3b'),'action':(_0x2e550e,{id:_0x2f6064})=>{_0x2e550e[_0x4c0a('0x4')][_0x4c0a('0x3a')]('revisionHistory')['restoreRevisionCallback'](_0x2f6064);},'isVisible':({plugins:_0x5b770a},_0x402b9a)=>!!_0x5b770a[_0x4c0a('0x3a')](_0x100bdb)[_0x4c0a('0x38')][_0x4c0a('0x7')](_0x402b9a['id'])},'nameRevision':{'name':_0x4c0a('0x8'),'action':({plugins:_0x3812be},{id:_0x18b6ae,revisionNameView:_0x2191cf})=>{const _0x5a0200=_0x3812be[_0x4c0a('0x3a')](_0x100bdb),_0x4e0acd=_0x5a0200[_0x4c0a('0x38')][_0x4c0a('0x1')](_0x18b6ae);_0x5a0200[_0x4c0a('0x27')](_0x18b6ae,_0x4e0acd),_0x2191cf[_0x4c0a('0x30')](),_0x2191cf[_0x4c0a('0x1f')]['select']();}}},y[_0x4c0a('0x11')]=[_0x4c0a('0x13'),_0x4c0a('0x6'),_0x4c0a('0x2d')];
23
+ const _0x1a70=['change:diff','_handleEditorDataReady','defaultRevisionActions','selectRevision','diff','restoreRevision','config','getRevisionsInDiff','revisionHistory.viewerSidebarContainer','pluginName','repository','highlightRevisions','revisionSetName','nameRevision','editor','revisionHistory.revisionActions','isReady','focus','ready','_revisionsRepository','bind','Name\x20this\x20revision','revisionViews','_handleDiffChange','_handleRevisionSetName','isVisible','_revisionViewer','length','data','map','requires','element','locale','getLaterVisibleRevision','assign','restoreRevisionCallback','setName','plugins','action','newRevisionId','getEarlierVisibleRevision','compareAgainstSelected','get','add','string','init','destroy','_sidebarView','isEnabled','_handleRevisionSelected','compare','_revisions','getRevision','listenTo','appendChild','render','RevisionsSidebar','Restore\x20this\x20revision','_createRevisionActions','timePeriodViews','getIndex','revisionSelected','select'];(function(_0x4e4873,_0x1a707f){const _0x4c0626=function(_0x2cd08a){while(--_0x2cd08a){_0x4e4873['push'](_0x4e4873['shift']());}};_0x4c0626(++_0x1a707f);}(_0x1a70,0x1ad));const _0x4c06=function(_0x4e4873,_0x1a707f){_0x4e4873=_0x4e4873-0x0;let _0x4c0626=_0x1a70[_0x4e4873];return _0x4c0626;};import{Plugin as _0x406b1f}from'ckeditor5/src/core';import _0x38c602 from'./revisionssidebarview';import _0x335493 from'../../revisionviewer';export default class y extends _0x406b1f{static get[_0x4c06('0x15')](){return _0x4c06('0x5');}static get[_0x4c06('0x2a')](){return[_0x335493];}constructor(_0x4312e2){super(_0x4312e2),this[_0x4c06('0x26')]=_0x4312e2[_0x4c06('0x31')]['get'](_0x335493),this[_0x4c06('0x1f')]=this[_0x4c06('0x26')][_0x4c06('0x16')],this[_0x4c06('0x3b')]=null;}[_0x4c06('0x39')](){const _0x85d7a4=this[_0x4c06('0x1f')][_0x4c06('0x0')],_0x3df907=this[_0x4c06('0x7')](),_0x26f843=this[_0x4c06('0x1a')][_0x4c06('0x12')]['get'](_0x4c06('0x14'));this[_0x4c06('0x3b')]=new _0x38c602(this[_0x4c06('0x1a')][_0x4c06('0x2c')],_0x85d7a4,_0x3df907),this['_sidebarView']['on'](_0x4c06('0xa'),this[_0x4c06('0x3d')][_0x4c06('0x20')](this)),this[_0x4c06('0x3b')]['on'](_0x4c06('0x18'),this[_0x4c06('0x24')]['bind'](this)),this[_0x4c06('0x3b')][_0x4c06('0x20')](_0x4c06('0x3c'))['to'](this[_0x4c06('0x26')]),this[_0x4c06('0x3b')][_0x4c06('0x8')]['on'](_0x4c06('0x37'),(_0x2b44b9,_0xd07be3)=>{_0xd07be3[_0x4c06('0x22')]['on'](_0x4c06('0x37'),(_0x33e38c,_0x237704)=>{_0x237704['bind'](_0x4c06('0x3c'),_0x4c06('0x1c'))['to'](this['_revisionViewer']);});}),this[_0x4c06('0x3b')][_0x4c06('0x4')](),this[_0x4c06('0x2')](this[_0x4c06('0x1a')][_0x4c06('0x28')],_0x4c06('0x1e'),this[_0x4c06('0xd')][_0x4c06('0x20')](this)),this['listenTo'](this[_0x4c06('0x26')],_0x4c06('0xc'),this[_0x4c06('0x23')][_0x4c06('0x20')](this)),_0x26f843[_0x4c06('0x3')](this['_sidebarView'][_0x4c06('0x2b')]);}['destroy'](){this[_0x4c06('0x3b')][_0x4c06('0x2b')]['remove'](),this[_0x4c06('0x3b')][_0x4c06('0x3a')]();}[_0x4c06('0xd')](){const _0x5a9b38=this[_0x4c06('0x1f')][_0x4c06('0x1')](0x0);if(_0x5a9b38){const _0x153731=this[_0x4c06('0x1f')][_0x4c06('0x34')](_0x5a9b38['id']);this[_0x4c06('0x26')][_0x4c06('0x3e')](_0x5a9b38,_0x153731);}}[_0x4c06('0x3d')](_0x21183e,_0x3d7478){const _0x5155c9=this[_0x4c06('0x1f')][_0x4c06('0x1')](_0x3d7478['id']),_0x5ac79c=this[_0x4c06('0x1f')][_0x4c06('0x34')](_0x5155c9['id']);this[_0x4c06('0x26')][_0x4c06('0x3e')](_0x5155c9,_0x5ac79c);}[_0x4c06('0x24')](_0x111923,_0x1d3f97){this[_0x4c06('0x1f')][_0x4c06('0x1')](_0x1d3f97['id'])[_0x4c06('0x30')](_0x1d3f97['name']);}['_handleDiffChange'](_0x391b66,_0x36413c,_0x917956){const _0x19b059=this['_revisionsRepository'][_0x4c06('0x13')](_0x917956);_0x19b059['length']>0x2?(this[_0x4c06('0x3b')][_0x4c06('0x17')](_0x19b059),this[_0x4c06('0x3b')][_0x4c06('0xf')](null)):(this[_0x4c06('0x3b')][_0x4c06('0x17')]([]),this['_sidebarView']['selectRevision'](_0x19b059[0x0]));}[_0x4c06('0x7')](){const _0xe63238=this[_0x4c06('0x1a')],_0x4149cf=y['availableRevisionActions'],_0x34ad76=_0xe63238[_0x4c06('0x12')][_0x4c06('0x36')](_0x4c06('0x1b'))||y[_0x4c06('0xe')];if(_0x34ad76[_0x4c06('0x27')])return _0x34ad76[_0x4c06('0x29')](_0x1fe8ca=>{const _0x213ffb=_0x4c06('0x38')==typeof _0x1fe8ca?Object[_0x4c06('0x2e')]({},_0x4149cf[_0x1fe8ca]):_0x1fe8ca;return _0x213ffb[_0x4c06('0x32')]=_0x213ffb[_0x4c06('0x32')][_0x4c06('0x20')](this,_0xe63238),_0x213ffb[_0x4c06('0x25')]&&(_0x213ffb['isVisible']=_0x213ffb[_0x4c06('0x25')][_0x4c06('0x20')](this,_0xe63238)),_0x213ffb;});}}y['availableRevisionActions']={'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x563705},_0x36de1b)=>{const _0x58121a=_0x563705[_0x4c06('0x36')](_0x335493),_0x50b82d=_0x58121a[_0x4c06('0x16')];let _0x1409c7=_0x58121a['diff'][_0x4c06('0x33')],_0x4e3d8e=_0x36de1b['id'];_0x50b82d[_0x4c06('0x9')](_0x1409c7)>_0x50b82d[_0x4c06('0x9')](_0x4e3d8e)&&([_0x1409c7,_0x4e3d8e]=[_0x4e3d8e,_0x1409c7]),_0x58121a[_0x4c06('0x3e')](_0x1409c7,_0x4e3d8e);},'isVisible':({plugins:_0x4152a7},_0x1f9379)=>{const _0x167522=_0x4152a7[_0x4c06('0x36')](_0x335493);return!(_0x167522[_0x4c06('0x16')][_0x4c06('0x13')](_0x167522[_0x4c06('0x10')])['length']>0x2)&&!_0x1f9379['isSelected'];}},'restoreRevision':{'name':_0x4c06('0x6'),'action':(_0x3ac28c,{id:_0x5a24b2})=>{_0x3ac28c[_0x4c06('0x12')]['get']('revisionHistory')[_0x4c06('0x2f')](_0x5a24b2);},'isVisible':({plugins:_0x3c61d3},_0x5a002e)=>!!_0x3c61d3[_0x4c06('0x36')](_0x335493)[_0x4c06('0x16')][_0x4c06('0x2d')](_0x5a002e['id'])},'nameRevision':{'name':_0x4c06('0x21'),'action':({plugins:_0x77c1a1},{id:_0x568599,revisionNameView:_0x460b2f})=>{const _0xf133e1=_0x77c1a1['get'](_0x335493),_0xc5ef6a=_0xf133e1[_0x4c06('0x16')]['getEarlierVisibleRevision'](_0x568599);_0xf133e1['compare'](_0x568599,_0xc5ef6a),_0x460b2f[_0x4c06('0x1d')](),_0x460b2f['fieldView'][_0x4c06('0xb')]();}}},y[_0x4c06('0xe')]=[_0x4c06('0x35'),_0x4c06('0x11'),_0x4c06('0x19')];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x218f=['ck-revision-history-sidebar__header','content','setTemplate','ck-revision-history-sidebar__header__label'];(function(_0x1b6456,_0x218f5a){const _0x4d5cc5=function(_0x50abdc){while(--_0x50abdc){_0x1b6456['push'](_0x1b6456['shift']());}};_0x4d5cc5(++_0x218f5a);}(_0x218f,0xd7));const _0x4d5c=function(_0x1b6456,_0x218f5a){_0x1b6456=_0x1b6456-0x0;let _0x4d5cc5=_0x218f[_0x1b6456];return _0x4d5cc5;};import{View as _0x3942d9,IconView as _0x34c657}from'ckeditor5/src/ui';import{getTranslation as _0x1556f1}from'../../utils/common-translations';import _0x29c39c from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class cs extends _0x3942d9{constructor(_0x361e82){super(_0x361e82);const _0x4e6978=new _0x34c657(_0x361e82);_0x4e6978[_0x4d5c('0x2')]=_0x29c39c,this[_0x4d5c('0x3')]({'tag':'div','attributes':{'class':['ck','ck-reset_all',_0x4d5c('0x1')]},'children':[_0x4e6978,{'tag':'span','attributes':{'class':['ck',_0x4d5c('0x0')]},'children':[_0x1556f1(_0x361e82,'Revision\x20history')]}]});}}
23
+ const _0x9eea=['span','ck-reset_all','ck-revision-history-sidebar__header__label','div','content','Revision\x20history','setTemplate'];(function(_0x4a47b4,_0x9eea25){const _0x40e4fd=function(_0x358a9a){while(--_0x358a9a){_0x4a47b4['push'](_0x4a47b4['shift']());}};_0x40e4fd(++_0x9eea25);}(_0x9eea,0x19c));const _0x40e4=function(_0x4a47b4,_0x9eea25){_0x4a47b4=_0x4a47b4-0x0;let _0x40e4fd=_0x9eea[_0x4a47b4];return _0x40e4fd;};import{View as _0x1d7513,IconView as _0x3fb1a9}from'ckeditor5/src/ui';import{getTranslation as _0x47a635}from'../../utils/common-translations';import _0x208a29 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class cs extends _0x1d7513{constructor(_0x48924c){super(_0x48924c);const _0x4b7424=new _0x3fb1a9(_0x48924c);_0x4b7424[_0x40e4('0x5')]=_0x208a29,this[_0x40e4('0x0')]({'tag':_0x40e4('0x4'),'attributes':{'class':['ck',_0x40e4('0x2'),'ck-revision-history-sidebar__header']},'children':[_0x4b7424,{'tag':_0x40e4('0x1'),'attributes':{'class':['ck',_0x40e4('0x3')]},'children':[_0x47a635(_0x48924c,_0x40e4('0x6'))]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x27d1=['revisionViews','remove','ck-revision-history-sidebar__time-period','add','setTemplate','createCollection','addRevision','ck-revision-history-sidebar__time-period__label','locale','startDate','setName','ck-revision-history-sidebar__time-period__revisions','delegate','_revisionActions','find','select','span'];(function(_0x36b50c,_0x27d156){const _0x2f813f=function(_0x5b461e){while(--_0x5b461e){_0x36b50c['push'](_0x36b50c['shift']());}};_0x2f813f(++_0x27d156);}(_0x27d1,0x14a));const _0x2f81=function(_0x36b50c,_0x27d156){_0x36b50c=_0x36b50c-0x0;let _0x2f813f=_0x27d1[_0x36b50c];return _0x2f813f;};import{View as _0x547658}from'ckeditor5/src/ui';import _0x52c934 from'../revision/revisionview';import{getDateTimePeriodInfo as _0xae882}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x547658{constructor(_0x4b1322,_0x471d88,_0x444fb4){super(_0x4b1322);const _0xfc9530=_0xae882(_0x471d88,this[_0x2f81('0x1')]['uiLanguage'])['localizedPeriodName'];this[_0x2f81('0x2')]=_0x471d88,this[_0x2f81('0x6')]=_0x444fb4,this[_0x2f81('0xa')]=this[_0x2f81('0xf')](),this[_0x2f81('0xa')][_0x2f81('0x5')](_0x2f81('0x8'))['to'](this),this['revisionViews'][_0x2f81('0x5')](_0x2f81('0x3'))['to'](this),this[_0x2f81('0xe')]({'tag':'div','attributes':{'class':['ck',_0x2f81('0xc')]},'children':[{'tag':_0x2f81('0x9'),'attributes':{'class':['ck',_0x2f81('0x0')]},'children':[{'text':_0xfc9530}]},{'tag':'div','attributes':{'class':['ck',_0x2f81('0x4')]},'children':this[_0x2f81('0xa')]}]});}[_0x2f81('0x10')](_0x44a67c){const _0x149c76=new _0x52c934(this[_0x2f81('0x1')],_0x44a67c,this['_revisionActions']);this[_0x2f81('0xa')][_0x2f81('0xd')](_0x149c76);}['removeRevision'](_0x3efdf1){const _0x9f851=this[_0x2f81('0xa')][_0x2f81('0x7')](_0x51f941=>_0x51f941['id']===_0x3efdf1['id']);this[_0x2f81('0xa')][_0x2f81('0xb')](_0x9f851);}}
23
+ const _0x1cee=['ck-revision-history-sidebar__time-period','_revisionActions','find','createCollection','remove','startDate','setName','delegate','ck-revision-history-sidebar__time-period__label','locale','div','setTemplate','localizedPeriodName','add','addRevision','revisionViews','uiLanguage','span'];(function(_0x131d1c,_0x1cee04){const _0x489474=function(_0x35a99b){while(--_0x35a99b){_0x131d1c['push'](_0x131d1c['shift']());}};_0x489474(++_0x1cee04);}(_0x1cee,0xb4));const _0x4894=function(_0x131d1c,_0x1cee04){_0x131d1c=_0x131d1c-0x0;let _0x489474=_0x1cee[_0x131d1c];return _0x489474;};import{View as _0x3b036f}from'ckeditor5/src/ui';import _0x41d1cb from'../revision/revisionview';import{getDateTimePeriodInfo as _0x572c52}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x3b036f{constructor(_0x274154,_0x270a4a,_0x59237a){super(_0x274154);const _0x2821bd=_0x572c52(_0x270a4a,this[_0x4894('0x9')][_0x4894('0x10')])[_0x4894('0xc')];this[_0x4894('0x5')]=_0x270a4a,this[_0x4894('0x1')]=_0x59237a,this['revisionViews']=this[_0x4894('0x3')](),this['revisionViews'][_0x4894('0x7')]('select')['to'](this),this['revisionViews'][_0x4894('0x7')](_0x4894('0x6'))['to'](this),this[_0x4894('0xb')]({'tag':_0x4894('0xa'),'attributes':{'class':['ck',_0x4894('0x0')]},'children':[{'tag':_0x4894('0x11'),'attributes':{'class':['ck',_0x4894('0x8')]},'children':[{'text':_0x2821bd}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this[_0x4894('0xf')]}]});}[_0x4894('0xe')](_0xd577e3){const _0x119463=new _0x41d1cb(this[_0x4894('0x9')],_0xd577e3,this[_0x4894('0x1')]);this[_0x4894('0xf')][_0x4894('0xd')](_0x119463);}['removeRevision'](_0x526123){const _0x47041c=this[_0x4894('0xf')][_0x4894('0x2')](_0xb71ae9=>_0xb71ae9['id']===_0x526123['id']);this[_0x4894('0xf')][_0x4894('0x4')](_0x47041c);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1475=['set','getTime','div','selectRevision','timePeriodViews','ck-revision-history-sidebar','revisionViews','createCollection','unhighlight','_revisionActions','highlightRevisions','_removeRevision','ck-reset','ck-rounded-corners','removeRevision','ck-revision-history-sidebar__timeline','deselect','revisionSetName','bindTemplate','remove','revisionSelected','map','flat','_addRevision','add','startDate','addRevision','isEnabled','ck-disabled','select','_revisions','get','setName','render','fire','locale','_getTimePeriodViewByStartDate','delegate','setTemplate'];(function(_0x21da36,_0x1475ff){const _0x2d5734=function(_0x10bc83){while(--_0x10bc83){_0x21da36['push'](_0x21da36['shift']());}};_0x2d5734(++_0x1475ff);}(_0x1475,0x6c));const _0x2d57=function(_0x21da36,_0x1475ff){_0x21da36=_0x21da36-0x0;let _0x2d5734=_0x1475[_0x21da36];return _0x2d5734;};import{View as _0x4da7d7}from'ckeditor5/src/ui';import _0x3b199b from'./revisionssidebartimeperiodview';import _0x1fbaf9 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x366df5}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x4da7d7{constructor(_0x2dde29,_0x56c2e5,_0x3de1d7){super(_0x2dde29);const _0x45e640=this[_0x2d57('0x1b')];this[_0x2d57('0xd')]=this[_0x2d57('0x10')](),this['timePeriodViews'][_0x2d57('0x7')](_0x2d57('0x26'))['to'](this),this[_0x2d57('0xd')][_0x2d57('0x7')](_0x2d57('0x2'))['to'](this),this['_revisions']=_0x56c2e5,this[_0x2d57('0x12')]=_0x3de1d7,this['on'](_0x2d57('0x26'),(_0x34f302,_0x596445)=>{this[_0x2d57('0x4')](_0x2d57('0x1d'),_0x596445);}),this['on'](_0x2d57('0x2'),(_0x3f1807,_0x3d775a)=>{this[_0x2d57('0x4')](_0x2d57('0x1a'),_0x3d775a);}),this[_0x2d57('0x9')]('isEnabled',!0x1),this[_0x2d57('0x8')]({'tag':_0x2d57('0xb'),'attributes':{'class':['ck',_0x2d57('0x15'),_0x2d57('0x16'),_0x2d57('0xe')]},'children':[new _0x1fbaf9(_0x2dde29),{'tag':_0x2d57('0xb'),'attributes':{'class':['ck',_0x2d57('0x18'),_0x45e640['if'](_0x2d57('0x24'),_0x2d57('0x25'),_0x5a8e5c=>!_0x5a8e5c)]},'children':this[_0x2d57('0xd')]}]});}[_0x2d57('0x3')](){super[_0x2d57('0x3')]();for(const _0x5b7127 of this[_0x2d57('0x0')])this['_addRevision'](_0x5b7127);this[_0x2d57('0x0')]['on']('add',(_0x4ad68f,_0x3074f2)=>{this[_0x2d57('0x20')](_0x3074f2);}),this[_0x2d57('0x0')]['on'](_0x2d57('0x1c'),(_0x2e91f5,_0x2d9709)=>{this[_0x2d57('0x14')](_0x2d9709);});}get[_0x2d57('0xf')](){return this[_0x2d57('0xd')][_0x2d57('0x1e')](_0x4fbf67=>_0x4fbf67[_0x2d57('0xf')][_0x2d57('0x1e')](_0x20643d=>_0x20643d))[_0x2d57('0x1f')]();}[_0x2d57('0xc')](_0x50debc){for(const _0xb6c86d of this[_0x2d57('0xf')])_0x50debc&&_0x50debc['id']===_0xb6c86d['id']?_0xb6c86d['select']():_0xb6c86d[_0x2d57('0x19')]();}[_0x2d57('0x13')](_0x5d6d11){for(const _0x414dfa of this[_0x2d57('0xf')])_0x5d6d11['some'](({id:_0x437f0d})=>_0x437f0d===_0x414dfa['id'])?_0x414dfa['highlight']():_0x414dfa[_0x2d57('0x11')]();}[_0x2d57('0x20')](_0x26b0dd){const _0x45bf9b=_0x366df5(_0x26b0dd['createdAt'])[_0x2d57('0x22')];let _0x5828b8=this[_0x2d57('0xd')][_0x2d57('0x1')](0x0);_0x5828b8&&_0x5828b8[_0x2d57('0x22')][_0x2d57('0xa')]()===_0x45bf9b[_0x2d57('0xa')]()||(_0x5828b8=new _0x3b199b(this[_0x2d57('0x5')],_0x45bf9b,this['_revisionActions']),this[_0x2d57('0xd')][_0x2d57('0x21')](_0x5828b8)),_0x5828b8[_0x2d57('0x23')](_0x26b0dd);}[_0x2d57('0x14')](_0x1c50f2){const _0x4b2c55=_0x366df5(_0x1c50f2['createdAt'])[_0x2d57('0x22')];this[_0x2d57('0x6')](_0x4b2c55)[_0x2d57('0x17')](_0x1c50f2);}[_0x2d57('0x6')](_0x336833){return this[_0x2d57('0xd')]['find'](_0x4f0203=>_0x4f0203[_0x2d57('0x22')][_0x2d57('0xa')]()===_0x336833['getTime']());}}
23
+ const _0x4061=['isEnabled','removeRevision','revisionViews','render','div','deselect','fire','startDate','add','_revisions','timePeriodViews','find','map','addRevision','setTemplate','ck-revision-history-sidebar','setName','createdAt','createCollection','highlight','getTime','some','highlightRevisions','ck-revision-history-sidebar__timeline','ck-disabled','set','flat','locale','_addRevision','_getTimePeriodViewByStartDate','revisionSelected','bindTemplate','ck-reset','select','revisionSetName','delegate'];(function(_0x1feb29,_0x406153){const _0x16ec94=function(_0x2dfd88){while(--_0x2dfd88){_0x1feb29['push'](_0x1feb29['shift']());}};_0x16ec94(++_0x406153);}(_0x4061,0xea));const _0x16ec=function(_0x1feb29,_0x406153){_0x1feb29=_0x1feb29-0x0;let _0x16ec94=_0x4061[_0x1feb29];return _0x16ec94;};import{View as _0x24de18}from'ckeditor5/src/ui';import _0x43be3c from'./revisionssidebartimeperiodview';import _0x3ff523 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x3ca774}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x24de18{constructor(_0x1b29ff,_0x4b0af7,_0x303279){super(_0x1b29ff);const _0x5c9528=this[_0x16ec('0xd')];this[_0x16ec('0x1c')]=this[_0x16ec('0x0')](),this[_0x16ec('0x1c')][_0x16ec('0x11')]('select')['to'](this),this[_0x16ec('0x1c')]['delegate'](_0x16ec('0x22'))['to'](this),this['_revisions']=_0x4b0af7,this['_revisionActions']=_0x303279,this['on']('select',(_0x4ee50d,_0x307de6)=>{this['fire'](_0x16ec('0xc'),_0x307de6);}),this['on'](_0x16ec('0x22'),(_0x47a8a1,_0x32313f)=>{this[_0x16ec('0x18')](_0x16ec('0x10'),_0x32313f);}),this[_0x16ec('0x7')]('isEnabled',!0x1),this[_0x16ec('0x20')]({'tag':_0x16ec('0x16'),'attributes':{'class':['ck',_0x16ec('0xe'),'ck-rounded-corners',_0x16ec('0x21')]},'children':[new _0x3ff523(_0x1b29ff),{'tag':_0x16ec('0x16'),'attributes':{'class':['ck',_0x16ec('0x5'),_0x5c9528['if'](_0x16ec('0x12'),_0x16ec('0x6'),_0x4b6cca=>!_0x4b6cca)]},'children':this[_0x16ec('0x1c')]}]});}[_0x16ec('0x15')](){super[_0x16ec('0x15')]();for(const _0x40f40f of this[_0x16ec('0x1b')])this['_addRevision'](_0x40f40f);this[_0x16ec('0x1b')]['on'](_0x16ec('0x1a'),(_0x45c2cc,_0x4341fe)=>{this[_0x16ec('0xa')](_0x4341fe);}),this['_revisions']['on']('remove',(_0x37f61f,_0x3b5066)=>{this['_removeRevision'](_0x3b5066);});}get[_0x16ec('0x14')](){return this[_0x16ec('0x1c')][_0x16ec('0x1e')](_0x3e9a9d=>_0x3e9a9d['revisionViews'][_0x16ec('0x1e')](_0x178b5d=>_0x178b5d))[_0x16ec('0x8')]();}['selectRevision'](_0x593a84){for(const _0x4b27ff of this['revisionViews'])_0x593a84&&_0x593a84['id']===_0x4b27ff['id']?_0x4b27ff[_0x16ec('0xf')]():_0x4b27ff[_0x16ec('0x17')]();}[_0x16ec('0x4')](_0x1eeaba){for(const _0x382057 of this[_0x16ec('0x14')])_0x1eeaba[_0x16ec('0x3')](({id:_0x2fbc4f})=>_0x2fbc4f===_0x382057['id'])?_0x382057[_0x16ec('0x1')]():_0x382057['unhighlight']();}[_0x16ec('0xa')](_0x3f9faa){const _0x28cbfc=_0x3ca774(_0x3f9faa[_0x16ec('0x23')])[_0x16ec('0x19')];let _0x451124=this[_0x16ec('0x1c')]['get'](0x0);_0x451124&&_0x451124['startDate']['getTime']()===_0x28cbfc[_0x16ec('0x2')]()||(_0x451124=new _0x43be3c(this[_0x16ec('0x9')],_0x28cbfc,this['_revisionActions']),this[_0x16ec('0x1c')][_0x16ec('0x1a')](_0x451124)),_0x451124[_0x16ec('0x1f')](_0x3f9faa);}['_removeRevision'](_0x4964c7){const _0x172681=_0x3ca774(_0x4964c7['createdAt'])[_0x16ec('0x19')];this[_0x16ec('0xb')](_0x172681)[_0x16ec('0x13')](_0x4964c7);}[_0x16ec('0xb')](_0x29ae25){return this[_0x16ec('0x1c')][_0x16ec('0x1d')](_0x3666e6=>_0x3666e6['startDate'][_0x16ec('0x2')]()===_0x29ae25[_0x16ec('0x2')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x397c=['minus','local','fromJSDate','day','startOf','month','hasSame','week','toJSDate','toRelativeCalendar','year','weekdayLong','setLocale'];(function(_0xb6552c,_0x397cac){const _0x3e006c=function(_0x2afd66){while(--_0x2afd66){_0xb6552c['push'](_0xb6552c['shift']());}};_0x3e006c(++_0x397cac);}(_0x397c,0x93));const _0x3e00=function(_0xb6552c,_0x397cac){_0xb6552c=_0xb6552c-0x0;let _0x3e006c=_0x397c[_0xb6552c];return _0x3e006c;};import{DateTime as _0x222eff}from'luxon';export function getDateTimePeriodInfo(_0x5dc6fd,_0x46b0ba){_0x5dc6fd=_0x222eff[_0x3e00('0xb')](_0x5dc6fd)[_0x3e00('0x8')](_0x46b0ba);const _0x429543=_0x222eff[_0x3e00('0xa')](),_0x1c778d=_0x429543[_0x3e00('0x9')]({'days':0x1})[_0x3e00('0x0')](_0x3e00('0xc'));let _0x5ebfd9,_0x39404c;return _0x5dc6fd[_0x3e00('0x2')](_0x429543,'day')?(_0x5ebfd9=_0x5dc6fd[_0x3e00('0x0')](_0x3e00('0xc'))[_0x3e00('0x4')](),_0x39404c=_0x5dc6fd[_0x3e00('0x5')]()):_0x5dc6fd['hasSame'](_0x1c778d,_0x3e00('0xc'))?(_0x5ebfd9=_0x1c778d[_0x3e00('0x4')](),_0x39404c=_0x5dc6fd[_0x3e00('0x5')]()):_0x5dc6fd['hasSame'](_0x429543,_0x3e00('0x3'))?(_0x5ebfd9=_0x5dc6fd[_0x3e00('0x0')]('week')['toJSDate'](),_0x39404c=_0x5dc6fd[_0x3e00('0x7')]):_0x5dc6fd[_0x3e00('0x2')](_0x429543,_0x3e00('0x6'))?(_0x5ebfd9=_0x5dc6fd[_0x3e00('0x0')](_0x3e00('0x1'))['toJSDate'](),_0x39404c=_0x5dc6fd['monthLong']):(_0x5ebfd9=_0x5dc6fd[_0x3e00('0x0')]('year')[_0x3e00('0x4')](),_0x39404c=_0x5dc6fd[_0x3e00('0x6')]),{'startDate':_0x5ebfd9,'localizedPeriodName':_0x39404c};}
23
+ const _0x2bc3=['local','minus','month','toJSDate','weekdayLong','hasSame','day','year','startOf','toRelativeCalendar','week'];(function(_0x2433d5,_0x2bc35f){const _0x596e40=function(_0x3b2d8c){while(--_0x3b2d8c){_0x2433d5['push'](_0x2433d5['shift']());}};_0x596e40(++_0x2bc35f);}(_0x2bc3,0xfc));const _0x596e=function(_0x2433d5,_0x2bc35f){_0x2433d5=_0x2433d5-0x0;let _0x596e40=_0x2bc3[_0x2433d5];return _0x596e40;};import{DateTime as _0x366f2d}from'luxon';export function getDateTimePeriodInfo(_0x339ab1,_0x26bdc9){_0x339ab1=_0x366f2d['fromJSDate'](_0x339ab1)['setLocale'](_0x26bdc9);const _0x2f0ad9=_0x366f2d[_0x596e('0x1')](),_0x2d20f7=_0x2f0ad9[_0x596e('0x2')]({'days':0x1})[_0x596e('0x9')](_0x596e('0x7'));let _0x5661e7,_0x195c16;return _0x339ab1[_0x596e('0x6')](_0x2f0ad9,_0x596e('0x7'))?(_0x5661e7=_0x339ab1[_0x596e('0x9')](_0x596e('0x7'))[_0x596e('0x4')](),_0x195c16=_0x339ab1['toRelativeCalendar']()):_0x339ab1[_0x596e('0x6')](_0x2d20f7,_0x596e('0x7'))?(_0x5661e7=_0x2d20f7[_0x596e('0x4')](),_0x195c16=_0x339ab1[_0x596e('0xa')]()):_0x339ab1[_0x596e('0x6')](_0x2f0ad9,_0x596e('0x0'))?(_0x5661e7=_0x339ab1[_0x596e('0x9')](_0x596e('0x0'))['toJSDate'](),_0x195c16=_0x339ab1[_0x596e('0x5')]):_0x339ab1[_0x596e('0x6')](_0x2f0ad9,_0x596e('0x8'))?(_0x5661e7=_0x339ab1['startOf'](_0x596e('0x3'))[_0x596e('0x4')](),_0x195c16=_0x339ab1['monthLong']):(_0x5661e7=_0x339ab1[_0x596e('0x9')](_0x596e('0x8'))['toJSDate'](),_0x195c16=_0x339ab1['year']),{'startDate':_0x5661e7,'localizedPeriodName':_0x195c16};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xe46b=['ck-revision-change__label','setTemplate','name','add','data','author','set','div','ck-revision-change__','span','ck-revision-change','Removed\x20by','type','Suggested\x20by','focus','element','ck-annotation','_model','isSuggestion'];(function(_0x2e4694,_0xe46b60){const _0x361f2e=function(_0x25beea){while(--_0x25beea){_0x2e4694['push'](_0x2e4694['shift']());}};_0x361f2e(++_0xe46b60);}(_0xe46b,0x126));const _0x361f=function(_0x2e4694,_0xe46b60){_0x2e4694=_0x2e4694-0x0;let _0x361f2e=_0xe46b[_0x2e4694];return _0x361f2e;};import{View as _0x30a747}from'ckeditor5/src/ui';import{getTranslation as _0x2ef7d0}from'../../utils/common-translations';export default class X extends _0x30a747{constructor(_0x4c4a3d,_0x529ceb){super(_0x4c4a3d),this[_0x361f('0x8')]=_0x529ceb;const _0x1cc16c=this['bindTemplate'],_0x4b279d=_0x2ef7d0(_0x4c4a3d,_0x529ceb[_0x361f('0xe')][_0x361f('0x9')]?_0x361f('0x4'):_0x361f('0xd')==_0x529ceb['type']?'Added\x20by':_0x361f('0x2'));this[_0x361f('0x10')](_0x361f('0x3'),_0x529ceb[_0x361f('0x3')]),this[_0x361f('0xb')]({'tag':_0x361f('0x11'),'attributes':{'class':[_0x361f('0x7'),_0x361f('0x1'),_0x1cc16c['to'](_0x361f('0x3'),_0x4a24a2=>_0x361f('0x12')+_0x4a24a2)],'tabindex':-0x1},'children':[{'tag':_0x361f('0x0'),'children':[{'tag':_0x361f('0x0'),'attributes':{'class':[_0x361f('0xa')]},'children':[{'text':_0x4b279d}]},{'text':'\x20'+_0x529ceb[_0x361f('0xf')][_0x361f('0xc')]}]}]});}[_0x361f('0x5')](){this[_0x361f('0x6')][_0x361f('0x5')]();}}
23
+ const _0x1276=['ck-revision-change','Suggested\x20by','ck-annotation','author','set','add','isSuggestion','Added\x20by','bindTemplate','name','_model','Removed\x20by','span','type','element','focus','div','setTemplate','ck-revision-change__label'];(function(_0xe77bad,_0x127614){const _0x447c89=function(_0x20d4a0){while(--_0x20d4a0){_0xe77bad['push'](_0xe77bad['shift']());}};_0x447c89(++_0x127614);}(_0x1276,0xa0));const _0x447c=function(_0xe77bad,_0x127614){_0xe77bad=_0xe77bad-0x0;let _0x447c89=_0x1276[_0xe77bad];return _0x447c89;};import{View as _0x5878ca}from'ckeditor5/src/ui';import{getTranslation as _0x517611}from'../../utils/common-translations';export default class X extends _0x5878ca{constructor(_0x213186,_0x5816e9){super(_0x213186),this[_0x447c('0x2')]=_0x5816e9;const _0x49553e=this[_0x447c('0x0')],_0x53544a=_0x517611(_0x213186,_0x5816e9['data'][_0x447c('0x11')]?_0x447c('0xc'):_0x447c('0x10')==_0x5816e9['type']?_0x447c('0x12'):_0x447c('0x3'));this[_0x447c('0xf')]('type',_0x5816e9[_0x447c('0x5')]),this[_0x447c('0x9')]({'tag':_0x447c('0x8'),'attributes':{'class':[_0x447c('0xd'),_0x447c('0xb'),_0x49553e['to'](_0x447c('0x5'),_0x59e473=>'ck-revision-change__'+_0x59e473)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':_0x447c('0x4'),'attributes':{'class':[_0x447c('0xa')]},'children':[{'text':_0x53544a}]},{'text':'\x20'+_0x5816e9[_0x447c('0xe')][_0x447c('0x1')]}]}]});}[_0x447c('0x7')](){this[_0x447c('0x6')][_0x447c('0x7')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x36ef=['isForwardNavigationEnabled','isNavigationMode','NUMBER_OF_CHANGES','set','ck-revision-history-ui__changes-navigation__navigation','execute','setTemplate','ck-revision-history-ui','fire','Show\x20previous\x20change','numberOfChanges','isReady','backward','div','span','Loading...','bind','bindTemplate','isBackwardNavigationEnabled','_isStatusLabelVisible','currentChangeNumber','ck-hidden','_statusText','forward','ck-revision-history-ui__changes-navigation'];(function(_0x57e396,_0x36ef1f){const _0x1501df=function(_0x228be3){while(--_0x228be3){_0x57e396['push'](_0x57e396['shift']());}};_0x1501df(++_0x36ef1f);}(_0x36ef,0x7b));const _0x1501=function(_0x57e396,_0x36ef1f){_0x57e396=_0x57e396-0x0;let _0x1501df=_0x36ef[_0x57e396];return _0x1501df;};import{View as _0x15cd6b,ButtonView as _0x255baa,ToolbarSeparatorView as _0x3e610e}from'ckeditor5/src/ui';import{getTranslation as _0x363859}from'../../utils/common-translations';import _0x5dd33c from'../../../theme/icons/arrow-up.svg';import _0x596973 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x15cd6b{constructor(_0x25ff58){super(_0x25ff58);const _0x485a88=this[_0x1501('0x13')],_0x7e589d=new _0x255baa(_0x25ff58),_0x45ce42=new _0x255baa(_0x25ff58);this[_0x1501('0x5')](_0x1501('0x3'),!0x1),this[_0x1501('0x5')](_0x1501('0xd'),!0x1),this[_0x1501('0x5')](_0x1501('0x16'),0x0),this[_0x1501('0x5')](_0x1501('0xc'),0x0),this[_0x1501('0x5')](_0x1501('0x2'),!0x1),this[_0x1501('0x5')]('isBackwardNavigationEnabled',!0x1),this[_0x1501('0x12')](_0x1501('0x15'))['to'](this,_0x1501('0xd'),this,_0x1501('0xc'),(_0xe11e29,_0x52c982)=>_0xe11e29&&_0x52c982>0x0),this[_0x1501('0x12')]('_statusText')['to'](this,_0x1501('0xd'),this,_0x1501('0x16'),this,_0x1501('0xc'),this,_0x1501('0x3'),(_0x29b7ab,_0x3cdca7,_0x3e6f48,_0x1c2d1c)=>{if(!_0x29b7ab)return _0x363859(_0x25ff58,_0x1501('0x11'));if(!_0x3e6f48)return _0x363859(_0x25ff58,'No\x20changes');const _0x135d39=_0x363859(_0x25ff58,_0x1501('0x4'),_0x3e6f48);return _0x1c2d1c?_0x363859(_0x25ff58,'X_OF_Y_CHANGES',[_0x3cdca7+0x1,_0x3e6f48]):_0x135d39;}),_0x7e589d[_0x1501('0x5')]({'label':_0x363859(_0x25ff58,_0x1501('0xb')),'tooltip':!0x0,'icon':_0x5dd33c}),_0x45ce42[_0x1501('0x5')]({'label':_0x363859(_0x25ff58,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x596973}),_0x7e589d[_0x1501('0x12')]('isEnabled')['to'](this,_0x1501('0x14')),_0x45ce42[_0x1501('0x12')]('isEnabled')['to'](this,_0x1501('0x2')),_0x7e589d['on'](_0x1501('0x7'),()=>this[_0x1501('0xa')](_0x1501('0x7'),_0x1501('0xe'))),_0x45ce42['on']('execute',()=>this[_0x1501('0xa')]('execute',_0x1501('0x0'))),this[_0x1501('0x8')]({'tag':'div','attributes':{'class':['ck',_0x1501('0x9'),_0x1501('0x1')]},'children':[{'tag':_0x1501('0x10'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':_0x1501('0x10'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x485a88['if']('_isStatusLabelVisible',_0x1501('0x17'),_0x1286cd=>!_0x1286cd)]},'children':[{'text':_0x485a88['to'](_0x1501('0x3'),_0x113eea=>_0x113eea?_0x363859(_0x25ff58,'EDIT_X_OF_Y_REVISIONS')+':\x20':_0x363859(_0x25ff58,'Total')+':\x20')}]},{'text':_0x485a88['to'](_0x1501('0x18'))}]},new _0x3e610e(),{'tag':_0x1501('0xf'),'attributes':{'class':[_0x1501('0x6')]},'children':[_0x7e589d,_0x45ce42]}]});}}
23
+ const _0x5939=['_isStatusLabelVisible','No\x20changes','isForwardNavigationEnabled','set','ck-revision-history-ui','Total','fire','ck-revision-history-ui__changes-navigation','isEnabled','Loading...','execute','isBackwardNavigationEnabled','Show\x20next\x20change','numberOfChanges','NUMBER_OF_CHANGES','ck-hidden','X_OF_Y_CHANGES','setTemplate','ck-revision-history-ui__changes-navigation__navigation','ck-revision-history-ui__changes-navigation__label','isNavigationMode','_statusText','span','isReady','bindTemplate','bind','div'];(function(_0x1a7ca9,_0x5939f9){const _0x4737d6=function(_0x5312cc){while(--_0x5312cc){_0x1a7ca9['push'](_0x1a7ca9['shift']());}};_0x4737d6(++_0x5939f9);}(_0x5939,0xd3));const _0x4737=function(_0x1a7ca9,_0x5939f9){_0x1a7ca9=_0x1a7ca9-0x0;let _0x4737d6=_0x5939[_0x1a7ca9];return _0x4737d6;};import{View as _0x2f5f17,ButtonView as _0x2fdef8,ToolbarSeparatorView as _0x111d8f}from'ckeditor5/src/ui';import{getTranslation as _0x14ca2f}from'../../utils/common-translations';import _0xafbe5d from'../../../theme/icons/arrow-up.svg';import _0x5130ec from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x2f5f17{constructor(_0xe30649){super(_0xe30649);const _0x222bb9=this[_0x4737('0x2')],_0x5a0d13=new _0x2fdef8(_0xe30649),_0x29e13b=new _0x2fdef8(_0xe30649);this[_0x4737('0x8')]('isNavigationMode',!0x1),this[_0x4737('0x8')](_0x4737('0x1'),!0x1),this['set']('currentChangeNumber',0x0),this[_0x4737('0x8')](_0x4737('0x12'),0x0),this[_0x4737('0x8')]('isForwardNavigationEnabled',!0x1),this[_0x4737('0x8')](_0x4737('0x10'),!0x1),this[_0x4737('0x3')](_0x4737('0x5'))['to'](this,_0x4737('0x1'),this,_0x4737('0x12'),(_0x77f258,_0x26513d)=>_0x77f258&&_0x26513d>0x0),this[_0x4737('0x3')](_0x4737('0x1a'))['to'](this,_0x4737('0x1'),this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x48ad42,_0x221fde,_0x4b2b65,_0x51021f)=>{if(!_0x48ad42)return _0x14ca2f(_0xe30649,_0x4737('0xe'));if(!_0x4b2b65)return _0x14ca2f(_0xe30649,_0x4737('0x6'));const _0x9c1bb3=_0x14ca2f(_0xe30649,_0x4737('0x13'),_0x4b2b65);return _0x51021f?_0x14ca2f(_0xe30649,_0x4737('0x15'),[_0x221fde+0x1,_0x4b2b65]):_0x9c1bb3;}),_0x5a0d13[_0x4737('0x8')]({'label':_0x14ca2f(_0xe30649,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0xafbe5d}),_0x29e13b[_0x4737('0x8')]({'label':_0x14ca2f(_0xe30649,_0x4737('0x11')),'tooltip':!0x0,'icon':_0x5130ec}),_0x5a0d13['bind'](_0x4737('0xd'))['to'](this,_0x4737('0x10')),_0x29e13b[_0x4737('0x3')](_0x4737('0xd'))['to'](this,_0x4737('0x7')),_0x5a0d13['on'](_0x4737('0xf'),()=>this[_0x4737('0xb')]('execute','backward')),_0x29e13b['on'](_0x4737('0xf'),()=>this[_0x4737('0xb')](_0x4737('0xf'),'forward')),this[_0x4737('0x16')]({'tag':_0x4737('0x4'),'attributes':{'class':['ck',_0x4737('0x9'),_0x4737('0xc')]},'children':[{'tag':_0x4737('0x0'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':_0x4737('0x0'),'attributes':{'class':[_0x4737('0x18'),_0x222bb9['if'](_0x4737('0x5'),_0x4737('0x14'),_0x5cbfad=>!_0x5cbfad)]},'children':[{'text':_0x222bb9['to'](_0x4737('0x19'),_0x52a8dd=>_0x52a8dd?_0x14ca2f(_0xe30649,'EDIT_X_OF_Y_REVISIONS')+':\x20':_0x14ca2f(_0xe30649,_0x4737('0xa'))+':\x20')}]},{'text':_0x222bb9['to'](_0x4737('0x1a'))}]},new _0x111d8f(),{'tag':_0x4737('0x4'),'attributes':{'class':[_0x4737('0x17')]},'children':[_0x5a0d13,_0x29e13b]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2e6c=['ck-editor__editable__loading-overlay','change','editor','RevisionViewerLoadingOverlay','roots','addClass','view','show','document','editing'];(function(_0x428799,_0x2e6cbb){const _0xf77788=function(_0x55be87){while(--_0x55be87){_0x428799['push'](_0x428799['shift']());}};_0xf77788(++_0x2e6cbb);}(_0x2e6c,0x17b));const _0xf777=function(_0x428799,_0x2e6cbb){_0x428799=_0x428799-0x0;let _0xf77788=_0x2e6c[_0x428799];return _0xf77788;};import{Plugin as _0x7f0b51}from'ckeditor5/src/core';import'../../../theme/revisionviewerloadingoverlay.css';export default class oe extends _0x7f0b51{static get['pluginName'](){return _0xf777('0x4');}[_0xf777('0x8')](){const _0x2c8815=this[_0xf777('0x3')]['editing']['view'];_0x2c8815[_0xf777('0x2')](_0x398d2d=>{for(const _0x3eb36f of _0x2c8815[_0xf777('0x9')][_0xf777('0x5')])_0x398d2d[_0xf777('0x6')](_0xf777('0x1'),_0x3eb36f);});}['hide'](){const _0x18b86b=this['editor'][_0xf777('0x0')][_0xf777('0x7')];_0x18b86b[_0xf777('0x2')](_0x5410f6=>{for(const _0x5ef949 of _0x18b86b[_0xf777('0x9')]['roots'])_0x5410f6['removeClass'](_0xf777('0x1'),_0x5ef949);});}}
23
+ const _0x376e=['removeClass','editor','hide','view','show','ck-editor__editable__loading-overlay','change','roots','document'];(function(_0x47d6bf,_0x376e6f){const _0x2fcedf=function(_0x467531){while(--_0x467531){_0x47d6bf['push'](_0x47d6bf['shift']());}};_0x2fcedf(++_0x376e6f);}(_0x376e,0x192));const _0x2fce=function(_0x47d6bf,_0x376e6f){_0x47d6bf=_0x47d6bf-0x0;let _0x2fcedf=_0x376e[_0x47d6bf];return _0x2fcedf;};import{Plugin as _0xf486f7}from'ckeditor5/src/core';import'../../../theme/revisionviewerloadingoverlay.css';export default class oe extends _0xf486f7{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}[_0x2fce('0x7')](){const _0x4de4c5=this[_0x2fce('0x4')]['editing'][_0x2fce('0x6')];_0x4de4c5['change'](_0x337c41=>{for(const _0x39952d of _0x4de4c5[_0x2fce('0x2')][_0x2fce('0x1')])_0x337c41['addClass'](_0x2fce('0x8'),_0x39952d);});}[_0x2fce('0x5')](){const _0x4d9e9c=this['editor']['editing']['view'];_0x4d9e9c[_0x2fce('0x0')](_0x3a618e=>{for(const _0x563974 of _0x4d9e9c[_0x2fce('0x2')][_0x2fce('0x1')])_0x3a618e[_0x2fce('0x3')](_0x2fce('0x8'),_0x563974);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1d1f=['isEnabled','pluginName','bind','config','componentFactory','commands','show','isForwardNavigationEnabled','set','exitToEditing','currentChangeNumber','change:isReady','forward','numberOfChanges','showPreviousChange','isNavigationMode','ck-revision-history-ui__back-to-editing','add','restoreRevision','revisionHistory','init','Restore\x20this\x20revision','Back\x20to\x20editing','changesNavigation','execute','listenTo','get','requires','plugins'];(function(_0x251ac3,_0x1d1f80){const _0x590bcc=function(_0x541f0d){while(--_0x541f0d){_0x251ac3['push'](_0x251ac3['shift']());}};_0x590bcc(++_0x1d1f80);}(_0x1d1f,0xff));const _0x590b=function(_0x251ac3,_0x1d1f80){_0x251ac3=_0x251ac3-0x0;let _0x590bcc=_0x1d1f[_0x251ac3];return _0x590bcc;};import{Plugin as _0x4a7c16}from'ckeditor5/src/core';import{ButtonView as _0x23c4ff}from'ckeditor5/src/ui';import _0x2080e6 from'./changesnavigationview';import _0x44c632 from'./../../revisionviewer';import _0x547bc0 from'./revisionviewerloadingoverlay';import{getTranslation as _0x2fd6fa}from'../../utils/common-translations';import _0x1c06bc from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class m extends _0x4a7c16{static get[_0x590b('0x7')](){return'RevisionViewerUI';}static get[_0x590b('0x4')](){return[_0x44c632,_0x547bc0];}[_0x590b('0x1a')](){const _0x499ce2=this['editor'],_0x106f7a=_0x499ce2[_0x590b('0x5')][_0x590b('0x3')](_0x44c632),_0x40ab5d=_0x499ce2['plugins'][_0x590b('0x3')](_0x547bc0);_0x499ce2['ui'][_0x590b('0xa')][_0x590b('0x17')](_0x590b('0xf'),_0x3c5886=>{const _0x229b9c=new _0x23c4ff(_0x3c5886);return _0x229b9c['set']({'label':_0x2fd6fa(_0x3c5886,_0x590b('0x1c')),'icon':_0x1c06bc,'withText':!0x0,'tooltip':!0x0,'class':_0x590b('0x16')}),this[_0x590b('0x2')](_0x229b9c,_0x590b('0x1'),()=>{_0x499ce2[_0x590b('0x9')][_0x590b('0x3')](_0x590b('0x19'))['closeRevisionViewerCallback']();}),_0x229b9c;}),_0x499ce2['ui'][_0x590b('0xa')][_0x590b('0x17')](_0x590b('0x18'),_0x1be56e=>{const _0x50aa9c=new _0x23c4ff(_0x1be56e);return _0x50aa9c[_0x590b('0xe')]({'label':_0x2fd6fa(_0x1be56e,_0x590b('0x1b')),'withText':!0x0,'tooltip':!0x0}),_0x50aa9c[_0x590b('0x8')](_0x590b('0x6'))['to'](_0x499ce2[_0x590b('0xb')][_0x590b('0x3')](_0x590b('0x18'))),this[_0x590b('0x2')](_0x50aa9c,'execute',()=>_0x499ce2[_0x590b('0x1')](_0x590b('0x18'))),_0x50aa9c;}),_0x499ce2['ui'][_0x590b('0xa')][_0x590b('0x17')](_0x590b('0x0'),_0x55c7c5=>{const _0x20f97a=new _0x2080e6(_0x55c7c5),_0x5b1cc8=_0x499ce2[_0x590b('0xb')][_0x590b('0x3')](_0x590b('0x14')),_0x2a41fd=_0x499ce2[_0x590b('0xb')][_0x590b('0x3')]('showNextChange');return _0x20f97a[_0x590b('0x8')]('isBackwardNavigationEnabled')['to'](_0x5b1cc8,_0x590b('0x6')),_0x20f97a[_0x590b('0x8')](_0x590b('0xd'))['to'](_0x2a41fd,_0x590b('0x6')),_0x20f97a[_0x590b('0x8')]('isReady',_0x590b('0x10'),_0x590b('0x13'),_0x590b('0x15'))['to'](_0x106f7a),this[_0x590b('0x2')](_0x20f97a,_0x590b('0x1'),(_0x18d4ce,_0x49accc)=>{_0x499ce2['execute'](_0x590b('0x12')===_0x49accc?'showNextChange':_0x590b('0x14'));}),_0x20f97a;}),_0x40ab5d['show'](),_0x106f7a['on'](_0x590b('0x11'),(_0x439961,_0x158d36,_0x5055c2)=>{_0x5055c2?_0x40ab5d['hide']():_0x40ab5d[_0x590b('0xc')]();});}}
23
+ const _0x319e=['componentFactory','changesNavigation','hide','commands','get','add','currentChangeNumber','Back\x20to\x20editing','restoreRevision','showPreviousChange','Restore\x20this\x20revision','ck-revision-history-ui__back-to-editing','bind','RevisionViewerUI','plugins','init','listenTo','execute','isEnabled','editor','forward','set','show','closeRevisionViewerCallback','config','showNextChange'];(function(_0x29aee8,_0x319eaf){const _0x12281d=function(_0x4350e4){while(--_0x4350e4){_0x29aee8['push'](_0x29aee8['shift']());}};_0x12281d(++_0x319eaf);}(_0x319e,0x113));const _0x1228=function(_0x29aee8,_0x319eaf){_0x29aee8=_0x29aee8-0x0;let _0x12281d=_0x319e[_0x29aee8];return _0x12281d;};import{Plugin as _0x34ce03}from'ckeditor5/src/core';import{ButtonView as _0x487b76}from'ckeditor5/src/ui';import _0x2c2ccf from'./changesnavigationview';import _0x5c1ec1 from'./../../revisionviewer';import _0x5004c8 from'./revisionviewerloadingoverlay';import{getTranslation as _0x1df90c}from'../../utils/common-translations';import _0xd110a9 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class m extends _0x34ce03{static get['pluginName'](){return _0x1228('0x18');}static get['requires'](){return[_0x5c1ec1,_0x5004c8];}[_0x1228('0x0')](){const _0x4ade09=this[_0x1228('0x4')],_0x2b3385=_0x4ade09[_0x1228('0x19')]['get'](_0x5c1ec1),_0xc23e31=_0x4ade09[_0x1228('0x19')][_0x1228('0xf')](_0x5004c8);_0x4ade09['ui'][_0x1228('0xb')][_0x1228('0x10')]('exitToEditing',_0x17db3f=>{const _0x134209=new _0x487b76(_0x17db3f);return _0x134209[_0x1228('0x6')]({'label':_0x1df90c(_0x17db3f,_0x1228('0x12')),'icon':_0xd110a9,'withText':!0x0,'tooltip':!0x0,'class':_0x1228('0x16')}),this['listenTo'](_0x134209,_0x1228('0x2'),()=>{_0x4ade09[_0x1228('0x9')][_0x1228('0xf')]('revisionHistory')[_0x1228('0x8')]();}),_0x134209;}),_0x4ade09['ui']['componentFactory']['add'](_0x1228('0x13'),_0x4de25e=>{const _0x3e9713=new _0x487b76(_0x4de25e);return _0x3e9713[_0x1228('0x6')]({'label':_0x1df90c(_0x4de25e,_0x1228('0x15')),'withText':!0x0,'tooltip':!0x0}),_0x3e9713[_0x1228('0x17')](_0x1228('0x3'))['to'](_0x4ade09['commands'][_0x1228('0xf')](_0x1228('0x13'))),this[_0x1228('0x1')](_0x3e9713,_0x1228('0x2'),()=>_0x4ade09[_0x1228('0x2')]('restoreRevision')),_0x3e9713;}),_0x4ade09['ui'][_0x1228('0xb')][_0x1228('0x10')](_0x1228('0xc'),_0x52a819=>{const _0x2b002a=new _0x2c2ccf(_0x52a819),_0x385037=_0x4ade09[_0x1228('0xe')][_0x1228('0xf')](_0x1228('0x14')),_0x4bf256=_0x4ade09['commands'][_0x1228('0xf')]('showNextChange');return _0x2b002a[_0x1228('0x17')]('isBackwardNavigationEnabled')['to'](_0x385037,_0x1228('0x3')),_0x2b002a[_0x1228('0x17')]('isForwardNavigationEnabled')['to'](_0x4bf256,_0x1228('0x3')),_0x2b002a[_0x1228('0x17')]('isReady',_0x1228('0x11'),'numberOfChanges','isNavigationMode')['to'](_0x2b3385),this[_0x1228('0x1')](_0x2b002a,_0x1228('0x2'),(_0x47fa1b,_0x18e3be)=>{_0x4ade09['execute'](_0x1228('0x5')===_0x18e3be?_0x1228('0xa'):_0x1228('0x14'));}),_0x2b002a;}),_0xc23e31[_0x1228('0x7')](),_0x2b3385['on']('change:isReady',(_0x202d77,_0x16ae86,_0x358804)=>{_0x358804?_0xc23e31[_0x1228('0xd')]():_0xc23e31[_0x1228('0x7')]();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x1b264f,_0x57fd9b,_0x5da8c5){const t=_0x1b264f['t'];switch(_0x57fd9b){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'},_0x5da8c5);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5da8c5);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(_0x4b5d81,_0x507a0f,_0x599c2c){const t=_0x4b5d81['t'];switch(_0x507a0f){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'},_0x599c2c);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x599c2c);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'});}}