@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230904.0 → 0.0.0-nightly-20230905.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +6 -6
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x54cf=['buttonView','execute','cancel','isOpen','submit','Save\x20current\x20revision','requires','editor','remove','items','isReadOnly','focus','isReady','set','editing','add','panelView','showRevisionViewerCallback','saveButtonView','change:isOpen','revisionHistory','config','length','render','children','Open\x20revision\x20history','addMany','bind','get','isEnabled','componentFactory','plugins'];(function(_0x26a422,_0x54cffc){const _0x224106=function(_0x5ac77e){while(--_0x5ac77e){_0x26a422['push'](_0x26a422['shift']());}};_0x224106(++_0x54cffc);}(_0x54cf,0x106));const _0x2241=function(_0x26a422,_0x54cffc){_0x26a422=_0x26a422-0x0;let _0x224106=_0x54cf[_0x26a422];return _0x224106;};import{Plugin as _0x3b00d8}from'ckeditor5/src/core';import{ListView as _0x513e64,ListItemView as _0x5e634f,ButtonView as _0x42288b,createDropdown as _0x4ecacd}from'ckeditor5/src/ui';import _0x28e5e1 from'../../revisiontracker';import _0x41d31c from'./revisionhistorysaverevisionformview';import _0x20eaa2 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x4c9f73}from'../../utils/common-translations';export default class u extends _0x3b00d8{static get['pluginName'](){return'RevisionHistoryUI';}static get[_0x2241('0x0')](){return[_0x28e5e1];}['init'](){const _0x4a7fe6=this[_0x2241('0x1')],_0x278ad6=_0x4a7fe6[_0x2241('0x19')][_0x2241('0x16')]('RevisionTracker');_0x4a7fe6['ui'][_0x2241('0x18')]['add'](_0x2241('0xe'),_0x2c7024=>{const _0x223b74=_0x4ecacd(_0x2c7024),_0x51d657=_0x223b74[_0x2241('0xa')][_0x2241('0x12')],_0x27dbdd=new _0x513e64(_0x2c7024),_0x4bdb2d=new _0x5e634f(_0x2c7024),_0x1cfa09=new _0x42288b(_0x2c7024),_0x224e72=new _0x5e634f(_0x2c7024),_0x56b1e2=new _0x42288b(_0x2c7024),_0x11f2d3=new _0x41d31c(_0x2c7024);function _0x16bdd5(){_0x51d657[_0x2241('0x10')]&&_0x51d657[_0x2241('0x2')](0x0),_0x51d657[_0x2241('0x9')](_0x27dbdd);}function _0x30beac(){_0x223b74[_0x2241('0x1d')]=!0x1,_0x4a7fe6[_0x2241('0x8')]['view'][_0x2241('0x5')]();}return _0x223b74[_0x2241('0x15')](_0x2241('0x17'))['to'](_0x278ad6,_0x2241('0x6'),_0x278ad6,'isEnabled',_0x4a7fe6,_0x2241('0x4'),(_0x1a26fe,_0x4a9991,_0x906fd9)=>_0x1a26fe&&_0x4a9991&&!_0x906fd9),_0x223b74[_0x2241('0x1a')]['set']({'icon':_0x20eaa2,'label':_0x4c9f73(_0x2c7024,'Revision\x20history'),'tooltip':!0x0}),_0x1cfa09[_0x2241('0x7')]({'label':_0x4c9f73(_0x2c7024,_0x2241('0x1f')),'withText':!0x0}),_0x1cfa09[_0x2241('0x15')](_0x2241('0x17'))['to'](_0x278ad6,_0x2241('0x6'),_0x278ad6,_0x2241('0x17'),_0x4a7fe6,_0x2241('0x4'),(_0x1e4e76,_0x450cdb,_0x1a78dd)=>_0x1e4e76&&_0x450cdb&&!_0x1a78dd),_0x1cfa09['on'](_0x2241('0x1b'),()=>function(){_0x51d657[_0x2241('0x10')]&&_0x51d657[_0x2241('0x2')](0x0),(_0x11f2d3['reset'](),_0x51d657[_0x2241('0x9')](_0x11f2d3),_0x11f2d3[_0x2241('0x5')]());}()),_0x56b1e2[_0x2241('0x7')]({'label':_0x4c9f73(_0x2c7024,_0x2241('0x13')),'withText':!0x0}),_0x56b1e2[_0x2241('0x15')](_0x2241('0x17'))['to'](_0x278ad6,_0x2241('0x6'),_0x4a7fe6,_0x2241('0x4'),(_0x11aa6d,_0x5cd2d7)=>_0x11aa6d&&!_0x5cd2d7),_0x56b1e2['on'](_0x2241('0x1b'),()=>{_0x4a7fe6[_0x2241('0xf')]['get'](_0x2241('0xe'))[_0x2241('0xb')](),_0x30beac();}),_0x4bdb2d['children'][_0x2241('0x9')](_0x1cfa09),_0x224e72['children'][_0x2241('0x9')](_0x56b1e2),_0x27dbdd[_0x2241('0x3')][_0x2241('0x14')]([_0x4bdb2d,_0x224e72]),_0x223b74['on'](_0x2241('0xd'),()=>_0x16bdd5()),_0x11f2d3[_0x2241('0xc')][_0x2241('0x15')](_0x2241('0x17'))['to'](_0x278ad6,'isReady',_0x278ad6,_0x2241('0x17'),_0x4a7fe6,_0x2241('0x4'),(_0x2fbd1e,_0x45f89d,_0x1a302e)=>_0x2fbd1e&&_0x45f89d&&!_0x1a302e),_0x11f2d3['on'](_0x2241('0x1e'),()=>(_0x4a7fe6[_0x2241('0x19')][_0x2241('0x16')](_0x28e5e1)['saveRevision']({'name':_0x11f2d3['revisionName']}),void _0x30beac())),_0x11f2d3['on'](_0x2241('0x1c'),()=>_0x16bdd5()),_0x11f2d3[_0x2241('0x11')](),_0x16bdd5(),_0x223b74;});}}
23
+ const _0x53e7=['view','editor','isOpen','pluginName','isReadOnly','reset','cancel','bind','buttonView','Save\x20current\x20revision','remove','plugins','isEnabled','get','add','saveRevision','revisionName','focus','children','items','showRevisionViewerCallback','componentFactory','submit','revisionHistory','execute','length','render','addMany','saveButtonView','Open\x20revision\x20history','RevisionHistoryUI','isReady','set','editing'];(function(_0x2e4bed,_0x53e7fd){const _0x5285fb=function(_0x130001){while(--_0x130001){_0x2e4bed['push'](_0x2e4bed['shift']());}};_0x5285fb(++_0x53e7fd);}(_0x53e7,0x126));const _0x5285=function(_0x2e4bed,_0x53e7fd){_0x2e4bed=_0x2e4bed-0x0;let _0x5285fb=_0x53e7[_0x2e4bed];return _0x5285fb;};import{Plugin as _0x397f69}from'ckeditor5/src/core';import{ListView as _0x1e6041,ListItemView as _0x4ca447,ButtonView as _0x54ebdf,createDropdown as _0x53def1}from'ckeditor5/src/ui';import _0x4b8c9f from'../../revisiontracker';import _0x4d1830 from'./revisionhistorysaverevisionformview';import _0x548b54 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x1072f7}from'../../utils/common-translations';export default class u extends _0x397f69{static get[_0x5285('0xf')](){return _0x5285('0x8');}static get['requires'](){return[_0x4b8c9f];}['init'](){const _0x64c4b2=this[_0x5285('0xd')],_0x2d78fd=_0x64c4b2[_0x5285('0x17')][_0x5285('0x19')]('RevisionTracker');_0x64c4b2['ui'][_0x5285('0x21')][_0x5285('0x1a')](_0x5285('0x1'),_0x4efbc9=>{const _0x1ae1b4=_0x53def1(_0x4efbc9),_0x236136=_0x1ae1b4['panelView'][_0x5285('0x1e')],_0x985966=new _0x1e6041(_0x4efbc9),_0x115c7f=new _0x4ca447(_0x4efbc9),_0x43615d=new _0x54ebdf(_0x4efbc9),_0x3b03fe=new _0x4ca447(_0x4efbc9),_0xcc72ba=new _0x54ebdf(_0x4efbc9),_0x5ac6b7=new _0x4d1830(_0x4efbc9);function _0x5ad7ec(){_0x236136[_0x5285('0x3')]&&_0x236136[_0x5285('0x16')](0x0),_0x236136[_0x5285('0x1a')](_0x985966);}function _0x37af0b(){_0x1ae1b4[_0x5285('0xe')]=!0x1,_0x64c4b2[_0x5285('0xb')][_0x5285('0xc')][_0x5285('0x1d')]();}return _0x1ae1b4[_0x5285('0x13')](_0x5285('0x18'))['to'](_0x2d78fd,_0x5285('0x9'),_0x2d78fd,'isEnabled',_0x64c4b2,_0x5285('0x10'),(_0x1e4f41,_0x3ea48a,_0x24a44a)=>_0x1e4f41&&_0x3ea48a&&!_0x24a44a),_0x1ae1b4[_0x5285('0x14')][_0x5285('0xa')]({'icon':_0x548b54,'label':_0x1072f7(_0x4efbc9,'Revision\x20history'),'tooltip':!0x0}),_0x43615d[_0x5285('0xa')]({'label':_0x1072f7(_0x4efbc9,_0x5285('0x15')),'withText':!0x0}),_0x43615d[_0x5285('0x13')](_0x5285('0x18'))['to'](_0x2d78fd,_0x5285('0x9'),_0x2d78fd,_0x5285('0x18'),_0x64c4b2,_0x5285('0x10'),(_0x255fc6,_0x12a212,_0x184a4b)=>_0x255fc6&&_0x12a212&&!_0x184a4b),_0x43615d['on']('execute',()=>function(){_0x236136[_0x5285('0x3')]&&_0x236136[_0x5285('0x16')](0x0),(_0x5ac6b7[_0x5285('0x11')](),_0x236136[_0x5285('0x1a')](_0x5ac6b7),_0x5ac6b7[_0x5285('0x1d')]());}()),_0xcc72ba['set']({'label':_0x1072f7(_0x4efbc9,_0x5285('0x7')),'withText':!0x0}),_0xcc72ba[_0x5285('0x13')]('isEnabled')['to'](_0x2d78fd,_0x5285('0x9'),_0x64c4b2,_0x5285('0x10'),(_0x259d27,_0x84c7c1)=>_0x259d27&&!_0x84c7c1),_0xcc72ba['on'](_0x5285('0x2'),()=>{_0x64c4b2['config'][_0x5285('0x19')](_0x5285('0x1'))[_0x5285('0x20')](),_0x37af0b();}),_0x115c7f[_0x5285('0x1e')][_0x5285('0x1a')](_0x43615d),_0x3b03fe[_0x5285('0x1e')]['add'](_0xcc72ba),_0x985966[_0x5285('0x1f')][_0x5285('0x5')]([_0x115c7f,_0x3b03fe]),_0x1ae1b4['on']('change:isOpen',()=>_0x5ad7ec()),_0x5ac6b7[_0x5285('0x6')][_0x5285('0x13')](_0x5285('0x18'))['to'](_0x2d78fd,'isReady',_0x2d78fd,_0x5285('0x18'),_0x64c4b2,_0x5285('0x10'),(_0x3c8d52,_0x98dd6d,_0x5a8954)=>_0x3c8d52&&_0x98dd6d&&!_0x5a8954),_0x5ac6b7['on'](_0x5285('0x0'),()=>(_0x64c4b2[_0x5285('0x17')][_0x5285('0x19')](_0x4b8c9f)[_0x5285('0x1b')]({'name':_0x5ac6b7[_0x5285('0x1c')]}),void _0x37af0b())),_0x5ac6b7['on'](_0x5285('0x12'),()=>_0x5ad7ec()),_0x5ac6b7[_0x5285('0x4')](),_0x5ad7ec(),_0x1ae1b4;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5bd4=['restoreRevision','requires','selectRevision','Name\x20this\x20revision','compareAgainstSelected','editor','_createRevisionActions','_revisionsRepository','Restore\x20this\x20revision','getRevisionsInDiff','config','appendChild','repository','_sidebarView','revisionSelected','isSelected','getEarlierVisibleRevision','length','diff','focus','RevisionsSidebar','revisionHistory.viewerSidebarContainer','compare','destroy','Compare\x20against\x20selected','action','select','add','init','change:diff','locale','highlightRevisions','isReady','bind','get','_handleRevisionSetName','_revisionViewer','defaultRevisionActions','_revisions','_handleRevisionSelected','getIndex','revisionHistory.revisionActions','element','setName','assign','revisionHistory','getLaterVisibleRevision','newRevisionId','remove','_handleDiffChange','availableRevisionActions','getRevision','string','isVisible','revisionSetName','nameRevision','_handleEditorDataReady'];(function(_0x1cd106,_0x5bd431){const _0x40837b=function(_0x1bcd0d){while(--_0x1bcd0d){_0x1cd106['push'](_0x1cd106['shift']());}};_0x40837b(++_0x5bd431);}(_0x5bd4,0xdd));const _0x4083=function(_0x1cd106,_0x5bd431){_0x1cd106=_0x1cd106-0x0;let _0x40837b=_0x5bd4[_0x1cd106];return _0x40837b;};import{Plugin as _0x169fcb}from'ckeditor5/src/core';import _0x5c87dc from'./revisionssidebarview';import _0x7341fa from'../../revisionviewer';export default class w extends _0x169fcb{static get['pluginName'](){return _0x4083('0x1b');}static get[_0x4083('0x8')](){return[_0x7341fa];}constructor(_0xde99f5){super(_0xde99f5),this['_revisionViewer']=_0xde99f5['plugins']['get'](_0x7341fa),this[_0x4083('0xe')]=this[_0x4083('0x2b')][_0x4083('0x13')],this[_0x4083('0x14')]=null;}[_0x4083('0x23')](){const _0x2aadfb=this[_0x4083('0xe')][_0x4083('0x2d')],_0x352418=this[_0x4083('0xd')](),_0x4dab01=this[_0x4083('0xc')][_0x4083('0x11')][_0x4083('0x29')](_0x4083('0x1c'));this[_0x4083('0x14')]=new _0x5c87dc(this[_0x4083('0xc')][_0x4083('0x25')],_0x2aadfb,_0x352418),this['_sidebarView']['on'](_0x4083('0x15'),this[_0x4083('0x2e')][_0x4083('0x28')](this)),this['_sidebarView']['on'](_0x4083('0x4'),this[_0x4083('0x2a')][_0x4083('0x28')](this)),this[_0x4083('0x14')][_0x4083('0x28')]('isEnabled')['to'](this[_0x4083('0x2b')]),this['_sidebarView']['timePeriodViews']['on']('add',(_0x45306d,_0x378ea7)=>{_0x378ea7['revisionViews']['on'](_0x4083('0x22'),(_0x4aa72f,_0x1ae394)=>{_0x1ae394['bind']('isEnabled',_0x4083('0x27'))['to'](this[_0x4083('0x2b')]);});}),this['_sidebarView']['render'](),this['listenTo'](this['editor']['data'],'ready',this[_0x4083('0x6')]['bind'](this)),this['listenTo'](this['_revisionViewer'],_0x4083('0x24'),this['_handleDiffChange'][_0x4083('0x28')](this)),_0x4dab01[_0x4083('0x12')](this[_0x4083('0x14')][_0x4083('0x31')]);}[_0x4083('0x1e')](){this['_sidebarView'][_0x4083('0x31')][_0x4083('0x37')](),this[_0x4083('0x14')]['destroy']();}[_0x4083('0x6')](){const _0x31f61b=this[_0x4083('0xe')]['getRevision'](0x0);if(_0x31f61b){const _0x5d1778=this[_0x4083('0xe')][_0x4083('0x17')](_0x31f61b['id']);this[_0x4083('0x2b')][_0x4083('0x1d')](_0x31f61b,_0x5d1778);}}[_0x4083('0x2e')](_0x2c550e,_0x58193c){const _0x404903=this['_revisionsRepository'][_0x4083('0x1')](_0x58193c['id']),_0x29006b=this[_0x4083('0xe')][_0x4083('0x17')](_0x404903['id']);this[_0x4083('0x2b')][_0x4083('0x1d')](_0x404903,_0x29006b);}[_0x4083('0x2a')](_0x38ce5e,_0x8288a3){this['_revisionsRepository'][_0x4083('0x1')](_0x8288a3['id'])[_0x4083('0x32')](_0x8288a3['name']);}[_0x4083('0x38')](_0x17bfe5,_0x5548aa,_0x1d314c){const _0x565cfc=this[_0x4083('0xe')][_0x4083('0x10')](_0x1d314c);_0x565cfc[_0x4083('0x18')]>0x2?(this[_0x4083('0x14')][_0x4083('0x26')](_0x565cfc),this[_0x4083('0x14')][_0x4083('0x9')](null)):(this[_0x4083('0x14')]['highlightRevisions']([]),this[_0x4083('0x14')][_0x4083('0x9')](_0x565cfc[0x0]));}[_0x4083('0xd')](){const _0x3b450b=this[_0x4083('0xc')],_0x35e4c3=w[_0x4083('0x0')],_0x53feac=_0x3b450b[_0x4083('0x11')]['get'](_0x4083('0x30'))||w[_0x4083('0x2c')];if(_0x53feac[_0x4083('0x18')])return _0x53feac['map'](_0x385962=>{const _0x5b3183=_0x4083('0x2')==typeof _0x385962?Object[_0x4083('0x33')]({},_0x35e4c3[_0x385962]):_0x385962;return _0x5b3183['action']=_0x5b3183[_0x4083('0x20')][_0x4083('0x28')](this,_0x3b450b),_0x5b3183[_0x4083('0x3')]&&(_0x5b3183[_0x4083('0x3')]=_0x5b3183[_0x4083('0x3')][_0x4083('0x28')](this,_0x3b450b)),_0x5b3183;});}}w['availableRevisionActions']={'compareAgainstSelected':{'name':_0x4083('0x1f'),'action':({plugins:_0x4f1620},_0x1f1590)=>{const _0x18cda1=_0x4f1620[_0x4083('0x29')](_0x7341fa),_0x4ee44f=_0x18cda1[_0x4083('0x13')];let _0x54527f=_0x18cda1[_0x4083('0x19')][_0x4083('0x36')],_0x931889=_0x1f1590['id'];_0x4ee44f[_0x4083('0x2f')](_0x54527f)>_0x4ee44f[_0x4083('0x2f')](_0x931889)&&([_0x54527f,_0x931889]=[_0x931889,_0x54527f]),_0x18cda1['compare'](_0x54527f,_0x931889);},'isVisible':({plugins:_0x20ad86},_0x3c2439)=>{const _0x54c52e=_0x20ad86['get'](_0x7341fa);return!(_0x54c52e[_0x4083('0x13')]['getRevisionsInDiff'](_0x54c52e[_0x4083('0x19')])[_0x4083('0x18')]>0x2)&&!_0x3c2439[_0x4083('0x16')];}},'restoreRevision':{'name':_0x4083('0xf'),'action':(_0x5efc67,{id:_0x351063})=>{_0x5efc67[_0x4083('0x11')][_0x4083('0x29')](_0x4083('0x34'))['restoreRevisionCallback'](_0x351063);},'isVisible':({plugins:_0x4c2402},_0x14e428)=>!!_0x4c2402['get'](_0x7341fa)[_0x4083('0x13')][_0x4083('0x35')](_0x14e428['id'])},'nameRevision':{'name':_0x4083('0xa'),'action':({plugins:_0x48f858},{id:_0x3fb6aa,revisionNameView:_0x39ca73})=>{const _0x48f1f8=_0x48f858['get'](_0x7341fa),_0x5dd351=_0x48f1f8[_0x4083('0x13')][_0x4083('0x17')](_0x3fb6aa);_0x48f1f8['compare'](_0x3fb6aa,_0x5dd351),_0x39ca73[_0x4083('0x1a')](),_0x39ca73['fieldView'][_0x4083('0x21')]();}}},w[_0x4083('0x2c')]=[_0x4083('0xb'),_0x4083('0x7'),_0x4083('0x5')];
23
+ const _0x16c7=['data','select','restoreRevisionCallback','ready','_handleRevisionSelected','Restore\x20this\x20revision','repository','remove','getLaterVisibleRevision','string','editor','_handleEditorDataReady','add','revisionHistory.revisionActions','revisionHistory.viewerSidebarContainer','revisionSelected','requires','highlightRevisions','element','render','nameRevision','fieldView','Name\x20this\x20revision','listenTo','isEnabled','init','getRevision','compare','appendChild','selectRevision','getEarlierVisibleRevision','_revisionViewer','defaultRevisionActions','config','_createRevisionActions','getIndex','availableRevisionActions','get','_handleDiffChange','locale','setName','_handleRevisionSetName','change:diff','destroy','compareAgainstSelected','length','getRevisionsInDiff','_sidebarView','isSelected','RevisionsSidebar','restoreRevision','_revisionsRepository','pluginName','isVisible','map','focus','bind','diff'];(function(_0x2cd354,_0x16c7f4){const _0x2f7a44=function(_0x4c1d0e){while(--_0x4c1d0e){_0x2cd354['push'](_0x2cd354['shift']());}};_0x2f7a44(++_0x16c7f4);}(_0x16c7,0x6f));const _0x2f7a=function(_0x2cd354,_0x16c7f4){_0x2cd354=_0x2cd354-0x0;let _0x2f7a44=_0x16c7[_0x2cd354];return _0x2f7a44;};import{Plugin as _0x2e205f}from'ckeditor5/src/core';import _0x53b028 from'./revisionssidebarview';import _0x52e209 from'../../revisionviewer';export default class w extends _0x2e205f{static get[_0x2f7a('0x39')](){return _0x2f7a('0x36');}static get[_0x2f7a('0x15')](){return[_0x52e209];}constructor(_0xd0142a){super(_0xd0142a),this[_0x2f7a('0x24')]=_0xd0142a['plugins']['get'](_0x52e209),this[_0x2f7a('0x38')]=this[_0x2f7a('0x24')][_0x2f7a('0xb')],this[_0x2f7a('0x34')]=null;}[_0x2f7a('0x1e')](){const _0x201f59=this[_0x2f7a('0x38')]['_revisions'],_0x275586=this[_0x2f7a('0x27')](),_0x5ea8d6=this[_0x2f7a('0xf')][_0x2f7a('0x26')][_0x2f7a('0x2a')](_0x2f7a('0x13'));this[_0x2f7a('0x34')]=new _0x53b028(this['editor'][_0x2f7a('0x2c')],_0x201f59,_0x275586),this['_sidebarView']['on'](_0x2f7a('0x14'),this[_0x2f7a('0x9')][_0x2f7a('0x3')](this)),this[_0x2f7a('0x34')]['on']('revisionSetName',this['_handleRevisionSetName']['bind'](this)),this[_0x2f7a('0x34')][_0x2f7a('0x3')]('isEnabled')['to'](this['_revisionViewer']),this['_sidebarView']['timePeriodViews']['on'](_0x2f7a('0x11'),(_0x5b1637,_0x156588)=>{_0x156588['revisionViews']['on'](_0x2f7a('0x11'),(_0x2577d8,_0x1f247a)=>{_0x1f247a[_0x2f7a('0x3')](_0x2f7a('0x1d'),'isReady')['to'](this['_revisionViewer']);});}),this['_sidebarView'][_0x2f7a('0x18')](),this[_0x2f7a('0x1c')](this[_0x2f7a('0xf')][_0x2f7a('0x5')],_0x2f7a('0x8'),this[_0x2f7a('0x10')][_0x2f7a('0x3')](this)),this[_0x2f7a('0x1c')](this['_revisionViewer'],_0x2f7a('0x2f'),this['_handleDiffChange'][_0x2f7a('0x3')](this)),_0x5ea8d6[_0x2f7a('0x21')](this[_0x2f7a('0x34')][_0x2f7a('0x17')]);}[_0x2f7a('0x30')](){this[_0x2f7a('0x34')][_0x2f7a('0x17')][_0x2f7a('0xc')](),this['_sidebarView']['destroy']();}[_0x2f7a('0x10')](){const _0x4fdd9a=this[_0x2f7a('0x38')]['getRevision'](0x0);if(_0x4fdd9a){const _0x3c169b=this['_revisionsRepository'][_0x2f7a('0x23')](_0x4fdd9a['id']);this[_0x2f7a('0x24')][_0x2f7a('0x20')](_0x4fdd9a,_0x3c169b);}}[_0x2f7a('0x9')](_0x114b3d,_0x5a5b57){const _0x43d5d5=this['_revisionsRepository'][_0x2f7a('0x1f')](_0x5a5b57['id']),_0x57bf9a=this['_revisionsRepository'][_0x2f7a('0x23')](_0x43d5d5['id']);this[_0x2f7a('0x24')][_0x2f7a('0x20')](_0x43d5d5,_0x57bf9a);}[_0x2f7a('0x2e')](_0xaebf5,_0x89ce77){this[_0x2f7a('0x38')]['getRevision'](_0x89ce77['id'])[_0x2f7a('0x2d')](_0x89ce77['name']);}[_0x2f7a('0x2b')](_0x5b8b7e,_0x23ffc8,_0x2d6a23){const _0x54a1f3=this[_0x2f7a('0x38')]['getRevisionsInDiff'](_0x2d6a23);_0x54a1f3['length']>0x2?(this[_0x2f7a('0x34')]['highlightRevisions'](_0x54a1f3),this['_sidebarView'][_0x2f7a('0x22')](null)):(this[_0x2f7a('0x34')][_0x2f7a('0x16')]([]),this[_0x2f7a('0x34')][_0x2f7a('0x22')](_0x54a1f3[0x0]));}[_0x2f7a('0x27')](){const _0x3bc237=this[_0x2f7a('0xf')],_0xc26db3=w[_0x2f7a('0x29')],_0x43cb88=_0x3bc237[_0x2f7a('0x26')]['get'](_0x2f7a('0x12'))||w[_0x2f7a('0x25')];if(_0x43cb88[_0x2f7a('0x32')])return _0x43cb88[_0x2f7a('0x1')](_0x59f0bd=>{const _0x3df6d6=_0x2f7a('0xe')==typeof _0x59f0bd?Object['assign']({},_0xc26db3[_0x59f0bd]):_0x59f0bd;return _0x3df6d6['action']=_0x3df6d6['action'][_0x2f7a('0x3')](this,_0x3bc237),_0x3df6d6[_0x2f7a('0x0')]&&(_0x3df6d6[_0x2f7a('0x0')]=_0x3df6d6[_0x2f7a('0x0')][_0x2f7a('0x3')](this,_0x3bc237)),_0x3df6d6;});}}w[_0x2f7a('0x29')]={'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x23cdac},_0x4bc72c)=>{const _0x236d53=_0x23cdac[_0x2f7a('0x2a')](_0x52e209),_0x1435f2=_0x236d53[_0x2f7a('0xb')];let _0x2f44d1=_0x236d53[_0x2f7a('0x4')]['newRevisionId'],_0x5ef640=_0x4bc72c['id'];_0x1435f2[_0x2f7a('0x28')](_0x2f44d1)>_0x1435f2[_0x2f7a('0x28')](_0x5ef640)&&([_0x2f44d1,_0x5ef640]=[_0x5ef640,_0x2f44d1]),_0x236d53['compare'](_0x2f44d1,_0x5ef640);},'isVisible':({plugins:_0x1c38d2},_0x2431b9)=>{const _0x30b309=_0x1c38d2['get'](_0x52e209);return!(_0x30b309[_0x2f7a('0xb')][_0x2f7a('0x33')](_0x30b309[_0x2f7a('0x4')])[_0x2f7a('0x32')]>0x2)&&!_0x2431b9[_0x2f7a('0x35')];}},'restoreRevision':{'name':_0x2f7a('0xa'),'action':(_0x35001c,{id:_0x27e53f})=>{_0x35001c['config']['get']('revisionHistory')[_0x2f7a('0x7')](_0x27e53f);},'isVisible':({plugins:_0x4bcf2a},_0xff9942)=>!!_0x4bcf2a[_0x2f7a('0x2a')](_0x52e209)[_0x2f7a('0xb')][_0x2f7a('0xd')](_0xff9942['id'])},'nameRevision':{'name':_0x2f7a('0x1b'),'action':({plugins:_0x1b2c9e},{id:_0x404747,revisionNameView:_0x1ad17b})=>{const _0x3ff707=_0x1b2c9e[_0x2f7a('0x2a')](_0x52e209),_0x496932=_0x3ff707[_0x2f7a('0xb')][_0x2f7a('0x23')](_0x404747);_0x3ff707[_0x2f7a('0x20')](_0x404747,_0x496932),_0x1ad17b[_0x2f7a('0x2')](),_0x1ad17b[_0x2f7a('0x1a')][_0x2f7a('0x6')]();}}},w[_0x2f7a('0x25')]=[_0x2f7a('0x31'),_0x2f7a('0x37'),_0x2f7a('0x19')];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3e3d=['setTemplate','Revision\x20history','div','ck-revision-history-sidebar__header__label','ck-revision-history-sidebar__header'];(function(_0x1e5040,_0x3e3d43){const _0x459b66=function(_0x215058){while(--_0x215058){_0x1e5040['push'](_0x1e5040['shift']());}};_0x459b66(++_0x3e3d43);}(_0x3e3d,0x6b));const _0x459b=function(_0x1e5040,_0x3e3d43){_0x1e5040=_0x1e5040-0x0;let _0x459b66=_0x3e3d[_0x1e5040];return _0x459b66;};import{View as _0x44f58b,IconView as _0x5433d5}from'ckeditor5/src/ui';import{getTranslation as _0x3b9688}from'../../utils/common-translations';import _0x271012 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x44f58b{constructor(_0x4b40f9){super(_0x4b40f9);const _0x42d646=new _0x5433d5();_0x42d646['content']=_0x271012,this[_0x459b('0x3')]({'tag':_0x459b('0x0'),'attributes':{'class':['ck','ck-reset_all',_0x459b('0x2')]},'children':[_0x42d646,{'tag':'span','attributes':{'class':['ck',_0x459b('0x1')]},'children':[_0x3b9688(_0x4b40f9,_0x459b('0x4'))]}]});}}
23
+ const _0x2543=['ck-revision-history-sidebar__header__label','content','div','ck-reset_all','span'];(function(_0x55786e,_0x25435e){const _0x5f0d6a=function(_0x28403a){while(--_0x28403a){_0x55786e['push'](_0x55786e['shift']());}};_0x5f0d6a(++_0x25435e);}(_0x2543,0x1cb));const _0x5f0d=function(_0x55786e,_0x25435e){_0x55786e=_0x55786e-0x0;let _0x5f0d6a=_0x2543[_0x55786e];return _0x5f0d6a;};import{View as _0x57c4bb,IconView as _0x15a86d}from'ckeditor5/src/ui';import{getTranslation as _0x2e1457}from'../../utils/common-translations';import _0x2a619e from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x57c4bb{constructor(_0x3fa984){super(_0x3fa984);const _0x462d23=new _0x15a86d();_0x462d23[_0x5f0d('0x2')]=_0x2a619e,this['setTemplate']({'tag':_0x5f0d('0x3'),'attributes':{'class':['ck',_0x5f0d('0x4'),'ck-revision-history-sidebar__header']},'children':[_0x462d23,{'tag':_0x5f0d('0x0'),'attributes':{'class':['ck',_0x5f0d('0x1')]},'children':[_0x2e1457(_0x3fa984,'Revision\x20history')]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3a01=['delegate','span','ck-revision-history-sidebar__time-period','locale','uiLanguage','createCollection','setTemplate','localizedPeriodName','find','remove','addRevision','removeRevision','revisionViews','ck-revision-history-sidebar__time-period__revisions','_revisionActions','ck-revision-history-sidebar__time-period__label','startDate'];(function(_0x2a9a19,_0x3a015b){const _0x213102=function(_0x5470b7){while(--_0x5470b7){_0x2a9a19['push'](_0x2a9a19['shift']());}};_0x213102(++_0x3a015b);}(_0x3a01,0x117));const _0x2131=function(_0x2a9a19,_0x3a015b){_0x2a9a19=_0x2a9a19-0x0;let _0x213102=_0x3a01[_0x2a9a19];return _0x213102;};import{View as _0x5a7e71}from'ckeditor5/src/ui';import _0x2fe51f from'../revision/revisionview';import{getDateTimePeriodInfo as _0x377812}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x5a7e71{constructor(_0x41ec68,_0x1130de,_0x3625bb){super(_0x41ec68);const _0x22189e=_0x377812(_0x1130de,this[_0x2131('0xd')][_0x2131('0xe')])[_0x2131('0x0')];this[_0x2131('0x9')]=_0x1130de,this[_0x2131('0x5')]=this[_0x2131('0xf')](),this['_revisionActions']=_0x3625bb,this[_0x2131('0x5')][_0x2131('0xa')]('select')['to'](this),this[_0x2131('0x5')][_0x2131('0xa')]('setName')['to'](this),this[_0x2131('0x10')]({'tag':'div','attributes':{'class':['ck',_0x2131('0xc')]},'children':[{'tag':_0x2131('0xb'),'attributes':{'class':['ck',_0x2131('0x8')]},'children':[{'text':_0x22189e}]},{'tag':'div','attributes':{'class':['ck',_0x2131('0x6')]},'children':this['revisionViews']}]});}[_0x2131('0x3')](_0x53b3fb){const _0x575a71=new _0x2fe51f(this[_0x2131('0xd')],_0x53b3fb,this[_0x2131('0x7')]);this['revisionViews']['add'](_0x575a71);}[_0x2131('0x4')](_0x20120d){const _0x50bef=this[_0x2131('0x5')][_0x2131('0x1')](_0x20bedb=>_0x20bedb['id']===_0x20120d['id']);this[_0x2131('0x5')][_0x2131('0x2')](_0x50bef);}}
23
+ const _0x4ed3=['delegate','startDate','_revisionActions','removeRevision','revisionViews','select','addRevision','span','setName','find','createCollection','ck-revision-history-sidebar__time-period','uiLanguage','locale','div','ck-revision-history-sidebar__time-period__revisions','remove'];(function(_0x32030b,_0x4ed3b9){const _0x1fb153=function(_0x4d09f9){while(--_0x4d09f9){_0x32030b['push'](_0x32030b['shift']());}};_0x1fb153(++_0x4ed3b9);}(_0x4ed3,0x136));const _0x1fb1=function(_0x32030b,_0x4ed3b9){_0x32030b=_0x32030b-0x0;let _0x1fb153=_0x4ed3[_0x32030b];return _0x1fb153;};import{View as _0xea27c7}from'ckeditor5/src/ui';import _0x5d5ac2 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x21d850}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0xea27c7{constructor(_0x1c2184,_0x58ab29,_0x7bd12a){super(_0x1c2184);const _0xb7ca18=_0x21d850(_0x58ab29,this[_0x1fb1('0x9')][_0x1fb1('0x8')])['localizedPeriodName'];this[_0x1fb1('0xe')]=_0x58ab29,this['revisionViews']=this[_0x1fb1('0x6')](),this[_0x1fb1('0xf')]=_0x7bd12a,this[_0x1fb1('0x0')][_0x1fb1('0xd')](_0x1fb1('0x1'))['to'](this),this[_0x1fb1('0x0')][_0x1fb1('0xd')](_0x1fb1('0x4'))['to'](this),this['setTemplate']({'tag':_0x1fb1('0xa'),'attributes':{'class':['ck',_0x1fb1('0x7')]},'children':[{'tag':_0x1fb1('0x3'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0xb7ca18}]},{'tag':_0x1fb1('0xa'),'attributes':{'class':['ck',_0x1fb1('0xb')]},'children':this[_0x1fb1('0x0')]}]});}[_0x1fb1('0x2')](_0xce509b){const _0x460543=new _0x5d5ac2(this['locale'],_0xce509b,this[_0x1fb1('0xf')]);this['revisionViews']['add'](_0x460543);}[_0x1fb1('0x10')](_0x113104){const _0x575a7d=this[_0x1fb1('0x0')][_0x1fb1('0x5')](_0x352ca0=>_0x352ca0['id']===_0x113104['id']);this[_0x1fb1('0x0')][_0x1fb1('0xc')](_0x575a7d);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1dd1=['bindTemplate','select','ck-reset','removeRevision','highlightRevisions','ck-rounded-corners','_removeRevision','deselect','div','map','timePeriodViews','_addRevision','some','revisionViews','_getTimePeriodViewByStartDate','isEnabled','createdAt','locale','_revisionActions','render','fire','getTime','flat','set','setName','add','delegate','revisionSelected','startDate','createCollection','find','_revisions'];(function(_0x17d7db,_0x1dd10f){const _0x5f1e08=function(_0x1261af){while(--_0x1261af){_0x17d7db['push'](_0x17d7db['shift']());}};_0x5f1e08(++_0x1dd10f);}(_0x1dd1,0xc8));const _0x5f1e=function(_0x17d7db,_0x1dd10f){_0x17d7db=_0x17d7db-0x0;let _0x5f1e08=_0x1dd1[_0x17d7db];return _0x5f1e08;};import{View as _0x2ef970}from'ckeditor5/src/ui';import _0x4e6bf3 from'./revisionssidebartimeperiodview';import _0x45da35 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x25c677}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x2ef970{constructor(_0x29ef11,_0x1e4e50,_0x153bcb){super(_0x29ef11);const _0x4024be=this[_0x5f1e('0x18')];this[_0x5f1e('0x2')]=this[_0x5f1e('0x15')](),this[_0x5f1e('0x2')][_0x5f1e('0x12')]('select')['to'](this),this['timePeriodViews'][_0x5f1e('0x12')](_0x5f1e('0x10'))['to'](this),this[_0x5f1e('0x17')]=_0x1e4e50,this['_revisionActions']=_0x153bcb,this['on'](_0x5f1e('0x19'),(_0x4bcc7e,_0xdf2c60)=>{this[_0x5f1e('0xc')](_0x5f1e('0x13'),_0xdf2c60);}),this['on']('setName',(_0x1c953a,_0x275fea)=>{this[_0x5f1e('0xc')]('revisionSetName',_0x275fea);}),this[_0x5f1e('0xf')](_0x5f1e('0x7'),!0x1),this['setTemplate']({'tag':_0x5f1e('0x0'),'attributes':{'class':['ck',_0x5f1e('0x1a'),_0x5f1e('0x1d'),'ck-revision-history-sidebar']},'children':[new _0x45da35(_0x29ef11),{'tag':_0x5f1e('0x0'),'attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x4024be['if'](_0x5f1e('0x7'),'ck-disabled',_0x343847=>!_0x343847)]},'children':this[_0x5f1e('0x2')]}]});}[_0x5f1e('0xb')](){super[_0x5f1e('0xb')]();for(const _0x2cc490 of this[_0x5f1e('0x17')])this[_0x5f1e('0x3')](_0x2cc490);this[_0x5f1e('0x17')]['on'](_0x5f1e('0x11'),(_0x2d562d,_0x4be241)=>{this['_addRevision'](_0x4be241);}),this[_0x5f1e('0x17')]['on']('remove',(_0x438246,_0x59e7ab)=>{this[_0x5f1e('0x1e')](_0x59e7ab);});}get[_0x5f1e('0x5')](){return this[_0x5f1e('0x2')][_0x5f1e('0x1')](_0x4d3644=>_0x4d3644[_0x5f1e('0x5')]['map'](_0x21ee5d=>_0x21ee5d))[_0x5f1e('0xe')]();}['selectRevision'](_0x59e8e6){for(const _0x191acc of this[_0x5f1e('0x5')])_0x59e8e6&&_0x59e8e6['id']===_0x191acc['id']?_0x191acc[_0x5f1e('0x19')]():_0x191acc[_0x5f1e('0x1f')]();}[_0x5f1e('0x1c')](_0x520fb9){for(const _0x14dc3a of this[_0x5f1e('0x5')])_0x520fb9[_0x5f1e('0x4')](({id:_0x527c0c})=>_0x527c0c===_0x14dc3a['id'])?_0x14dc3a['highlight']():_0x14dc3a['unhighlight']();}[_0x5f1e('0x3')](_0x2478ff){const _0x15fc28=_0x25c677(_0x2478ff[_0x5f1e('0x8')],this[_0x5f1e('0x9')]['uiLanguage'])[_0x5f1e('0x14')];let _0x265c29=this['timePeriodViews']['get'](0x0);_0x265c29&&_0x265c29[_0x5f1e('0x14')][_0x5f1e('0xd')]()===_0x15fc28[_0x5f1e('0xd')]()||(_0x265c29=new _0x4e6bf3(this[_0x5f1e('0x9')],_0x15fc28,this[_0x5f1e('0xa')]),this['timePeriodViews']['add'](_0x265c29)),_0x265c29['addRevision'](_0x2478ff);}['_removeRevision'](_0x1cd0ce){const _0x45c485=_0x25c677(_0x1cd0ce[_0x5f1e('0x8')],this[_0x5f1e('0x9')]['uiLanguage'])['startDate'];this[_0x5f1e('0x6')](_0x45c485)[_0x5f1e('0x1b')](_0x1cd0ce);}[_0x5f1e('0x6')](_0x61cbf4){return this[_0x5f1e('0x2')][_0x5f1e('0x16')](_0x111d41=>_0x111d41[_0x5f1e('0x14')][_0x5f1e('0xd')]()===_0x61cbf4[_0x5f1e('0xd')]());}}
23
+ const _0x42cd=['_revisionActions','_addRevision','highlightRevisions','fire','revisionSelected','ck-revision-history-sidebar','startDate','createdAt','highlight','remove','add','ck-reset','setTemplate','addRevision','_revisions','removeRevision','set','revisionViews','deselect','selectRevision','map','timePeriodViews','isEnabled','find','uiLanguage','createCollection','bindTemplate','revisionSetName','_getTimePeriodViewByStartDate','render','setName','get','locale','getTime','delegate','div','select','_removeRevision'];(function(_0x545401,_0x42cdd1){const _0xedeb64=function(_0x315fd2){while(--_0x315fd2){_0x545401['push'](_0x545401['shift']());}};_0xedeb64(++_0x42cdd1);}(_0x42cd,0x1c6));const _0xedeb=function(_0x545401,_0x42cdd1){_0x545401=_0x545401-0x0;let _0xedeb64=_0x42cd[_0x545401];return _0xedeb64;};import{View as _0x284ea0}from'ckeditor5/src/ui';import _0x4d8e54 from'./revisionssidebartimeperiodview';import _0x3baa99 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x479115}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x284ea0{constructor(_0x595b6b,_0x46d07a,_0x1c8555){super(_0x595b6b);const _0xcac78a=this[_0xedeb('0x1c')];this['timePeriodViews']=this[_0xedeb('0x1b')](),this[_0xedeb('0x17')]['delegate']('select')['to'](this),this[_0xedeb('0x17')][_0xedeb('0x24')]('setName')['to'](this),this[_0xedeb('0x10')]=_0x46d07a,this[_0xedeb('0x2')]=_0x1c8555,this['on'](_0xedeb('0x0'),(_0x4f1ae8,_0x2f20f8)=>{this[_0xedeb('0x5')](_0xedeb('0x6'),_0x2f20f8);}),this['on'](_0xedeb('0x20'),(_0x50d671,_0x1e8b05)=>{this['fire'](_0xedeb('0x1d'),_0x1e8b05);}),this[_0xedeb('0x12')](_0xedeb('0x18'),!0x1),this[_0xedeb('0xe')]({'tag':_0xedeb('0x25'),'attributes':{'class':['ck',_0xedeb('0xd'),'ck-rounded-corners',_0xedeb('0x7')]},'children':[new _0x3baa99(_0x595b6b),{'tag':_0xedeb('0x25'),'attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0xcac78a['if']('isEnabled','ck-disabled',_0x46c391=>!_0x46c391)]},'children':this[_0xedeb('0x17')]}]});}['render'](){super[_0xedeb('0x1f')]();for(const _0x10acbd of this[_0xedeb('0x10')])this[_0xedeb('0x3')](_0x10acbd);this[_0xedeb('0x10')]['on']('add',(_0xdab414,_0x10d4c1)=>{this[_0xedeb('0x3')](_0x10d4c1);}),this[_0xedeb('0x10')]['on'](_0xedeb('0xb'),(_0x4237fc,_0xfed17b)=>{this['_removeRevision'](_0xfed17b);});}get[_0xedeb('0x13')](){return this[_0xedeb('0x17')][_0xedeb('0x16')](_0x501ab7=>_0x501ab7['revisionViews'][_0xedeb('0x16')](_0x235449=>_0x235449))['flat']();}[_0xedeb('0x15')](_0x129dc){for(const _0x1a0bf2 of this[_0xedeb('0x13')])_0x129dc&&_0x129dc['id']===_0x1a0bf2['id']?_0x1a0bf2[_0xedeb('0x0')]():_0x1a0bf2[_0xedeb('0x14')]();}[_0xedeb('0x4')](_0x552a85){for(const _0x46c595 of this[_0xedeb('0x13')])_0x552a85['some'](({id:_0x43e85b})=>_0x43e85b===_0x46c595['id'])?_0x46c595[_0xedeb('0xa')]():_0x46c595['unhighlight']();}[_0xedeb('0x3')](_0x39b296){const _0x513361=_0x479115(_0x39b296[_0xedeb('0x9')],this[_0xedeb('0x22')]['uiLanguage'])[_0xedeb('0x8')];let _0x2f002f=this[_0xedeb('0x17')][_0xedeb('0x21')](0x0);_0x2f002f&&_0x2f002f['startDate'][_0xedeb('0x23')]()===_0x513361[_0xedeb('0x23')]()||(_0x2f002f=new _0x4d8e54(this[_0xedeb('0x22')],_0x513361,this[_0xedeb('0x2')]),this[_0xedeb('0x17')][_0xedeb('0xc')](_0x2f002f)),_0x2f002f[_0xedeb('0xf')](_0x39b296);}[_0xedeb('0x1')](_0x302d02){const _0x3a78f6=_0x479115(_0x302d02[_0xedeb('0x9')],this[_0xedeb('0x22')][_0xedeb('0x1a')])[_0xedeb('0x8')];this[_0xedeb('0x1e')](_0x3a78f6)[_0xedeb('0x11')](_0x302d02);}['_getTimePeriodViewByStartDate'](_0x5c48c1){return this[_0xedeb('0x17')][_0xedeb('0x19')](_0x49d32e=>_0x49d32e[_0xedeb('0x8')][_0xedeb('0x23')]()===_0x5c48c1[_0xedeb('0x23')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a6a=['startOf','day','year','weekdayLong','toJSDate','monthLong','local','hasSame','minus','fromJSDate','setLocale','toRelativeCalendar','week'];(function(_0xf70450,_0x4a6a67){const _0x5bfc7b=function(_0xfb2519){while(--_0xfb2519){_0xf70450['push'](_0xf70450['shift']());}};_0x5bfc7b(++_0x4a6a67);}(_0x4a6a,0xa4));const _0x5bfc=function(_0xf70450,_0x4a6a67){_0xf70450=_0xf70450-0x0;let _0x5bfc7b=_0x4a6a[_0xf70450];return _0x5bfc7b;};import{DateTime as _0x1b2b35}from'luxon';export function getDateTimePeriodInfo(_0x46a82d,_0x299e9f){const _0x954c25=_0x1b2b35[_0x5bfc('0x1')](_0x46a82d)[_0x5bfc('0x2')](_0x299e9f),_0x3bf3da=_0x1b2b35[_0x5bfc('0xb')](),_0x6b8352=_0x3bf3da[_0x5bfc('0x0')]({'days':0x1})[_0x5bfc('0x5')](_0x5bfc('0x6'));let _0x4543a6,_0x2578e1;return _0x954c25[_0x5bfc('0xc')](_0x3bf3da,_0x5bfc('0x6'))?(_0x4543a6=_0x954c25[_0x5bfc('0x5')]('day')['toJSDate'](),_0x2578e1=_0x954c25[_0x5bfc('0x3')]()):_0x954c25[_0x5bfc('0xc')](_0x6b8352,_0x5bfc('0x6'))?(_0x4543a6=_0x6b8352[_0x5bfc('0x9')](),_0x2578e1=_0x954c25[_0x5bfc('0x3')]()):_0x954c25['hasSame'](_0x3bf3da,_0x5bfc('0x4'))?(_0x4543a6=_0x954c25[_0x5bfc('0x5')](_0x5bfc('0x4'))['toJSDate'](),_0x2578e1=_0x954c25[_0x5bfc('0x8')]||''):_0x954c25[_0x5bfc('0xc')](_0x3bf3da,_0x5bfc('0x7'))?(_0x4543a6=_0x954c25[_0x5bfc('0x5')]('month')[_0x5bfc('0x9')](),_0x2578e1=_0x954c25[_0x5bfc('0xa')]||''):(_0x4543a6=_0x954c25['startOf'](_0x5bfc('0x7'))[_0x5bfc('0x9')](),_0x2578e1=String(_0x954c25['year'])),{'startDate':_0x4543a6,'localizedPeriodName':_0x2578e1};}
23
+ const _0x4b8b=['local','startOf','month','year','minus','day','hasSame','monthLong','week','fromJSDate','toJSDate','weekdayLong','toRelativeCalendar'];(function(_0x266325,_0x4b8be4){const _0x40bad2=function(_0x1f00f1){while(--_0x1f00f1){_0x266325['push'](_0x266325['shift']());}};_0x40bad2(++_0x4b8be4);}(_0x4b8b,0x105));const _0x40ba=function(_0x266325,_0x4b8be4){_0x266325=_0x266325-0x0;let _0x40bad2=_0x4b8b[_0x266325];return _0x40bad2;};import{DateTime as _0x43ac09}from'luxon';export function getDateTimePeriodInfo(_0x4d0abd,_0x2b1884){const _0x325f55=_0x43ac09[_0x40ba('0x8')](_0x4d0abd)['setLocale'](_0x2b1884),_0x136a3=_0x43ac09[_0x40ba('0xc')](),_0x566550=_0x136a3[_0x40ba('0x3')]({'days':0x1})[_0x40ba('0x0')](_0x40ba('0x4'));let _0x497330,_0x485857;return _0x325f55[_0x40ba('0x5')](_0x136a3,_0x40ba('0x4'))?(_0x497330=_0x325f55['startOf']('day')[_0x40ba('0x9')](),_0x485857=_0x325f55['toRelativeCalendar']()):_0x325f55[_0x40ba('0x5')](_0x566550,_0x40ba('0x4'))?(_0x497330=_0x566550['toJSDate'](),_0x485857=_0x325f55[_0x40ba('0xb')]()):_0x325f55[_0x40ba('0x5')](_0x136a3,_0x40ba('0x7'))?(_0x497330=_0x325f55[_0x40ba('0x0')](_0x40ba('0x7'))['toJSDate'](),_0x485857=_0x325f55[_0x40ba('0xa')]||''):_0x325f55[_0x40ba('0x5')](_0x136a3,'year')?(_0x497330=_0x325f55['startOf'](_0x40ba('0x1'))[_0x40ba('0x9')](),_0x485857=_0x325f55[_0x40ba('0x6')]||''):(_0x497330=_0x325f55[_0x40ba('0x0')](_0x40ba('0x2'))[_0x40ba('0x9')](),_0x485857=String(_0x325f55[_0x40ba('0x2')])),{'startDate':_0x497330,'localizedPeriodName':_0x485857};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x47a9=['set','span','ck-annotation','author','Added\x20by','ck-revision-change__label','changeId','add','Suggested\x20by','type','ck-revision-change__','bindTemplate','setTemplate','Removed\x20by'];(function(_0x192a34,_0x47a949){const _0x4501c5=function(_0x40b854){while(--_0x40b854){_0x192a34['push'](_0x192a34['shift']());}};_0x4501c5(++_0x47a949);}(_0x47a9,0xcd));const _0x4501=function(_0x192a34,_0x47a949){_0x192a34=_0x192a34-0x0;let _0x4501c5=_0x47a9[_0x192a34];return _0x4501c5;};import{View as _0x42a599}from'ckeditor5/src/ui';import{getTranslation as _0x4991ba}from'../../utils/common-translations';export default class Z extends _0x42a599{constructor(_0x2e4200,_0x3cf8f4){super(_0x2e4200),this['_model']=_0x3cf8f4,this[_0x4501('0xb')]=_0x3cf8f4['id'];const _0x24ee65=this[_0x4501('0x2')],_0x32ffcc=_0x4991ba(_0x2e4200,_0x3cf8f4['data']['isSuggestion']?_0x4501('0xd'):_0x4501('0xc')==_0x3cf8f4[_0x4501('0x0')]?_0x4501('0x9'):_0x4501('0x4'));this[_0x4501('0x5')](_0x4501('0x0'),_0x3cf8f4['type']),this[_0x4501('0x3')]({'tag':'div','attributes':{'class':[_0x4501('0x7'),'ck-revision-change',_0x24ee65['to'](_0x4501('0x0'),_0x40f8b8=>_0x4501('0x1')+_0x40f8b8)],'tabindex':-0x1},'children':[{'tag':_0x4501('0x6'),'children':[{'tag':'span','attributes':{'class':[_0x4501('0xa')]},'children':[{'text':_0x32ffcc}]},{'text':'\x20'+_0x3cf8f4[_0x4501('0x8')]['name']}]}]});}['focus'](){this['element']['focus']();}}
23
+ const _0x1e16=['setTemplate','data','changeId','_model','element','Removed\x20by','span','bindTemplate','set','focus','ck-annotation','Added\x20by','Suggested\x20by','ck-revision-change','name','ck-revision-change__label','ck-revision-change__','add','type','isSuggestion'];(function(_0x17d66d,_0x1e168c){const _0x4c3d46=function(_0x531ad8){while(--_0x531ad8){_0x17d66d['push'](_0x17d66d['shift']());}};_0x4c3d46(++_0x1e168c);}(_0x1e16,0xc8));const _0x4c3d=function(_0x17d66d,_0x1e168c){_0x17d66d=_0x17d66d-0x0;let _0x4c3d46=_0x1e16[_0x17d66d];return _0x4c3d46;};import{View as _0x38437a}from'ckeditor5/src/ui';import{getTranslation as _0xea9e80}from'../../utils/common-translations';export default class Z extends _0x38437a{constructor(_0x4bfd82,_0xf1a6bd){super(_0x4bfd82),this[_0x4c3d('0x3')]=_0xf1a6bd,this[_0x4c3d('0x2')]=_0xf1a6bd['id'];const _0x426f95=this[_0x4c3d('0x7')],_0x4908ce=_0xea9e80(_0x4bfd82,_0xf1a6bd[_0x4c3d('0x1')][_0x4c3d('0x13')]?_0x4c3d('0xc'):_0x4c3d('0x11')==_0xf1a6bd[_0x4c3d('0x12')]?_0x4c3d('0xb'):_0x4c3d('0x5'));this[_0x4c3d('0x8')](_0x4c3d('0x12'),_0xf1a6bd[_0x4c3d('0x12')]),this[_0x4c3d('0x0')]({'tag':'div','attributes':{'class':[_0x4c3d('0xa'),_0x4c3d('0xd'),_0x426f95['to'](_0x4c3d('0x12'),_0x47715f=>_0x4c3d('0x10')+_0x47715f)],'tabindex':-0x1},'children':[{'tag':_0x4c3d('0x6'),'children':[{'tag':'span','attributes':{'class':[_0x4c3d('0xf')]},'children':[{'text':_0x4908ce}]},{'text':'\x20'+_0xf1a6bd['author'][_0x4c3d('0xe')]}]}]});}['focus'](){this[_0x4c3d('0x4')][_0x4c3d('0x9')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1b20=['ck-revision-history-ui__changes-navigation__navigation','bind','_statusText','fire','EDIT_X_OF_Y_REVISIONS','No\x20changes','currentChangeNumber','span','backward','isBackwardNavigationEnabled','X_OF_Y_CHANGES','Total','isForwardNavigationEnabled','set','ck-hidden','Show\x20previous\x20change','div','isEnabled','numberOfChanges','ck-revision-history-ui','execute','ck-revision-history-ui__changes-navigation','Loading...','isNavigationMode','ck-revision-history-ui__changes-navigation__label','forward','_isStatusLabelVisible','isReady'];(function(_0x15ac58,_0x1b20ee){const _0x51bbd8=function(_0x305827){while(--_0x305827){_0x15ac58['push'](_0x15ac58['shift']());}};_0x51bbd8(++_0x1b20ee);}(_0x1b20,0xbf));const _0x51bb=function(_0x15ac58,_0x1b20ee){_0x15ac58=_0x15ac58-0x0;let _0x51bbd8=_0x1b20[_0x15ac58];return _0x51bbd8;};import{View as _0x4cb901,ButtonView as _0x1fd098,ToolbarSeparatorView as _0x181f29}from'ckeditor5/src/ui';import{getTranslation as _0xdaeb4e}from'../../utils/common-translations';import _0x47ac7a from'../../../theme/icons/arrow-up.svg';import _0x181e4a from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x4cb901{constructor(_0x520a26){super(_0x520a26);const _0x4e9db5=this['bindTemplate'],_0x111519=new _0x1fd098(_0x520a26),_0x30e54b=new _0x1fd098(_0x520a26);this[_0x51bb('0x12')](_0x51bb('0x0'),!0x1),this['set']('isReady',!0x1),this[_0x51bb('0x12')](_0x51bb('0xb'),0x0),this[_0x51bb('0x12')](_0x51bb('0x17'),0x0),this[_0x51bb('0x12')]('isForwardNavigationEnabled',!0x1),this['set'](_0x51bb('0xe'),!0x1),this[_0x51bb('0x6')](_0x51bb('0x3'))['to'](this,_0x51bb('0x4'),this,_0x51bb('0x17'),(_0xc4174c,_0x11736e)=>_0xc4174c&&_0x11736e>0x0),this[_0x51bb('0x6')](_0x51bb('0x7'))['to'](this,_0x51bb('0x4'),this,_0x51bb('0xb'),this,_0x51bb('0x17'),this,_0x51bb('0x0'),(_0x59b1c4,_0x49aa6a,_0x2e430a,_0x545959)=>{if(!_0x59b1c4)return _0xdaeb4e(_0x520a26,_0x51bb('0x1b'));if(!_0x2e430a)return _0xdaeb4e(_0x520a26,_0x51bb('0xa'));const _0xbb9fb7=_0xdaeb4e(_0x520a26,'NUMBER_OF_CHANGES',_0x2e430a);return _0x545959?_0xdaeb4e(_0x520a26,_0x51bb('0xf'),[_0x49aa6a+0x1,_0x2e430a]):_0xbb9fb7;}),_0x111519[_0x51bb('0x12')]({'label':_0xdaeb4e(_0x520a26,_0x51bb('0x14')),'tooltip':!0x0,'icon':_0x47ac7a}),_0x30e54b[_0x51bb('0x12')]({'label':_0xdaeb4e(_0x520a26,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x181e4a}),_0x111519[_0x51bb('0x6')](_0x51bb('0x16'))['to'](this,_0x51bb('0xe')),_0x30e54b['bind'](_0x51bb('0x16'))['to'](this,_0x51bb('0x11')),_0x111519['on'](_0x51bb('0x19'),()=>this[_0x51bb('0x8')](_0x51bb('0x19'),_0x51bb('0xd'))),_0x30e54b['on'](_0x51bb('0x19'),()=>this[_0x51bb('0x8')](_0x51bb('0x19'),_0x51bb('0x2'))),this['setTemplate']({'tag':_0x51bb('0x15'),'attributes':{'class':['ck',_0x51bb('0x18'),_0x51bb('0x1a')]},'children':[{'tag':_0x51bb('0xc'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':_0x51bb('0xc'),'attributes':{'class':[_0x51bb('0x1'),_0x4e9db5['if'](_0x51bb('0x3'),_0x51bb('0x13'),_0x3362f5=>!_0x3362f5)]},'children':[{'text':_0x4e9db5['to'](_0x51bb('0x0'),_0x3afc3f=>_0x3afc3f?_0xdaeb4e(_0x520a26,_0x51bb('0x9'))+':\x20':_0xdaeb4e(_0x520a26,_0x51bb('0x10'))+':\x20')}]},{'text':_0x4e9db5['to'](_0x51bb('0x7'))}]},new _0x181f29(),{'tag':_0x51bb('0x15'),'attributes':{'class':[_0x51bb('0x5')]},'children':[_0x111519,_0x30e54b]}]});}}
23
+ const _0x3ccd=['numberOfChanges','Total','isEnabled','forward','Show\x20next\x20change','span','isBackwardNavigationEnabled','isReady','div','ck-revision-history-ui__changes-navigation__label','execute','ck-revision-history-ui__changes-navigation__navigation','Loading...','set','_isStatusLabelVisible','backward','NUMBER_OF_CHANGES','currentChangeNumber','No\x20changes','fire','bindTemplate','ck-revision-history-ui__changes-navigation__wrapper','X_OF_Y_CHANGES','bind','isForwardNavigationEnabled','ck-revision-history-ui__changes-navigation','ck-hidden','isNavigationMode','_statusText'];(function(_0x3abaa5,_0x3ccd45){const _0x5b00cb=function(_0x3a433a){while(--_0x3a433a){_0x3abaa5['push'](_0x3abaa5['shift']());}};_0x5b00cb(++_0x3ccd45);}(_0x3ccd,0x15a));const _0x5b00=function(_0x3abaa5,_0x3ccd45){_0x3abaa5=_0x3abaa5-0x0;let _0x5b00cb=_0x3ccd[_0x3abaa5];return _0x5b00cb;};import{View as _0x36afb1,ButtonView as _0x232a34,ToolbarSeparatorView as _0x533fd9}from'ckeditor5/src/ui';import{getTranslation as _0x30cda3}from'../../utils/common-translations';import _0x41d25b from'../../../theme/icons/arrow-up.svg';import _0x35db15 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x36afb1{constructor(_0x3e781f){super(_0x3e781f);const _0x3c5fe1=this[_0x5b00('0x16')],_0x191330=new _0x232a34(_0x3e781f),_0x2279a4=new _0x232a34(_0x3e781f);this[_0x5b00('0xf')](_0x5b00('0x0'),!0x1),this[_0x5b00('0xf')]('isReady',!0x1),this[_0x5b00('0xf')](_0x5b00('0x13'),0x0),this[_0x5b00('0xf')](_0x5b00('0x2'),0x0),this[_0x5b00('0xf')](_0x5b00('0x1a'),!0x1),this[_0x5b00('0xf')](_0x5b00('0x8'),!0x1),this[_0x5b00('0x19')](_0x5b00('0x10'))['to'](this,'isReady',this,_0x5b00('0x2'),(_0x575aa9,_0x3d771c)=>_0x575aa9&&_0x3d771c>0x0),this[_0x5b00('0x19')](_0x5b00('0x1'))['to'](this,_0x5b00('0x9'),this,_0x5b00('0x13'),this,_0x5b00('0x2'),this,'isNavigationMode',(_0x1d8063,_0xc8b18f,_0x2c6797,_0x18eabc)=>{if(!_0x1d8063)return _0x30cda3(_0x3e781f,_0x5b00('0xe'));if(!_0x2c6797)return _0x30cda3(_0x3e781f,_0x5b00('0x14'));const _0x92770d=_0x30cda3(_0x3e781f,_0x5b00('0x12'),_0x2c6797);return _0x18eabc?_0x30cda3(_0x3e781f,_0x5b00('0x18'),[_0xc8b18f+0x1,_0x2c6797]):_0x92770d;}),_0x191330[_0x5b00('0xf')]({'label':_0x30cda3(_0x3e781f,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x41d25b}),_0x2279a4[_0x5b00('0xf')]({'label':_0x30cda3(_0x3e781f,_0x5b00('0x6')),'tooltip':!0x0,'icon':_0x35db15}),_0x191330[_0x5b00('0x19')](_0x5b00('0x4'))['to'](this,_0x5b00('0x8')),_0x2279a4['bind'](_0x5b00('0x4'))['to'](this,'isForwardNavigationEnabled'),_0x191330['on'](_0x5b00('0xc'),()=>this[_0x5b00('0x15')]('execute',_0x5b00('0x11'))),_0x2279a4['on'](_0x5b00('0xc'),()=>this[_0x5b00('0x15')](_0x5b00('0xc'),_0x5b00('0x5'))),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-ui',_0x5b00('0x1b')]},'children':[{'tag':_0x5b00('0x7'),'attributes':{'class':[_0x5b00('0x17')]},'children':[{'tag':_0x5b00('0x7'),'attributes':{'class':[_0x5b00('0xb'),_0x3c5fe1['if']('_isStatusLabelVisible',_0x5b00('0x1c'),_0x56288c=>!_0x56288c)]},'children':[{'text':_0x3c5fe1['to']('isNavigationMode',_0x2b2c00=>_0x2b2c00?_0x30cda3(_0x3e781f,'EDIT_X_OF_Y_REVISIONS')+':\x20':_0x30cda3(_0x3e781f,_0x5b00('0x3'))+':\x20')}]},{'text':_0x3c5fe1['to'](_0x5b00('0x1'))}]},new _0x533fd9(),{'tag':_0x5b00('0xa'),'attributes':{'class':[_0x5b00('0xd')]},'children':[_0x191330,_0x2279a4]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x58ec=['hide','editor','show','roots','document','removeClass','editing','ck-editor__editable__loading-overlay','pluginName','view','RevisionViewerLoadingOverlay','addClass'];(function(_0x36a862,_0x58ec58){const _0x565956=function(_0x2ad367){while(--_0x2ad367){_0x36a862['push'](_0x36a862['shift']());}};_0x565956(++_0x58ec58);}(_0x58ec,0x149));const _0x5659=function(_0x36a862,_0x58ec58){_0x36a862=_0x36a862-0x0;let _0x565956=_0x58ec[_0x36a862];return _0x565956;};import{Plugin as _0x53653a}from'ckeditor5/src/core';const oe=_0x5659('0x2');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x53653a{static get[_0x5659('0x3')](){return _0x5659('0x5');}[_0x5659('0x9')](){const _0x5c7704=this[_0x5659('0x8')][_0x5659('0x1')]['view'];_0x5c7704['change'](_0x17a10d=>{for(const _0x17e638 of _0x5c7704[_0x5659('0xb')][_0x5659('0xa')])_0x17a10d[_0x5659('0x6')](oe,_0x17e638);});}[_0x5659('0x7')](){const _0x1fe65a=this[_0x5659('0x8')][_0x5659('0x1')][_0x5659('0x4')];_0x1fe65a['change'](_0x3dd629=>{for(const _0x313981 of _0x1fe65a['document'][_0x5659('0xa')])_0x3dd629[_0x5659('0x0')](oe,_0x313981);});}}
23
+ const _0x56dc=['editing','addClass','roots','document','ck-editor__editable__loading-overlay','show','hide','RevisionViewerLoadingOverlay','change','view'];(function(_0x1fa0be,_0x56dcbe){const _0x49b84e=function(_0x4dbe77){while(--_0x4dbe77){_0x1fa0be['push'](_0x1fa0be['shift']());}};_0x49b84e(++_0x56dcbe);}(_0x56dc,0xe8));const _0x49b8=function(_0x1fa0be,_0x56dcbe){_0x1fa0be=_0x1fa0be-0x0;let _0x49b84e=_0x56dc[_0x1fa0be];return _0x49b84e;};import{Plugin as _0x2b03dc}from'ckeditor5/src/core';const oe=_0x49b8('0x2');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x2b03dc{static get['pluginName'](){return _0x49b8('0x5');}[_0x49b8('0x3')](){const _0x1c6c3b=this['editor'][_0x49b8('0x8')][_0x49b8('0x7')];_0x1c6c3b[_0x49b8('0x6')](_0x26c949=>{for(const _0x238abc of _0x1c6c3b['document'][_0x49b8('0x0')])_0x26c949[_0x49b8('0x9')](oe,_0x238abc);});}[_0x49b8('0x4')](){const _0x45a4b1=this['editor'][_0x49b8('0x8')]['view'];_0x45a4b1[_0x49b8('0x6')](_0x141759=>{for(const _0x3670a3 of _0x45a4b1[_0x49b8('0x1')][_0x49b8('0x0')])_0x141759['removeClass'](oe,_0x3670a3);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xd04d=['showPreviousChange','ck-revision-history-ui__back-to-editing','componentFactory','bind','forward','plugins','RevisionViewerUI','isBackwardNavigationEnabled','restoreRevision','numberOfChanges','Back\x20to\x20editing','get','add','editor','commands','currentChangeNumber','hide','isReady','config','execute','showNextChange','exitToEditing','listenTo','show','set','closeRevisionViewerCallback','isEnabled','revisionHistory'];(function(_0x40ea97,_0xd04d7a){const _0x2923ed=function(_0x42a592){while(--_0x42a592){_0x40ea97['push'](_0x40ea97['shift']());}};_0x2923ed(++_0xd04d7a);}(_0xd04d,0x174));const _0x2923=function(_0x40ea97,_0xd04d7a){_0x40ea97=_0x40ea97-0x0;let _0x2923ed=_0xd04d[_0x40ea97];return _0x2923ed;};import{Plugin as _0x53ec4c}from'ckeditor5/src/core';import{ButtonView as _0x3ede96}from'ckeditor5/src/ui';import _0x2cdcef from'./changesnavigationview';import _0x37c007 from'./../../revisionviewer';import _0x2a418b from'./revisionviewerloadingoverlay';import{getTranslation as _0x1ba715}from'../../utils/common-translations';import _0x257aa1 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x53ec4c{static get['pluginName'](){return _0x2923('0x1a');}static get['requires'](){return[_0x37c007,_0x2a418b];}['init'](){const _0x2320ac=this[_0x2923('0x5')],_0x3c599d=_0x2320ac[_0x2923('0x19')][_0x2923('0x3')](_0x37c007),_0x279c2a=_0x2320ac[_0x2923('0x19')][_0x2923('0x3')](_0x2a418b);_0x2320ac['ui'][_0x2923('0x16')][_0x2923('0x4')](_0x2923('0xd'),_0x2b39fa=>{const _0x40d39a=new _0x3ede96(_0x2b39fa);return _0x40d39a['set']({'label':_0x1ba715(_0x2b39fa,_0x2923('0x2')),'icon':_0x257aa1,'withText':!0x0,'tooltip':!0x0,'class':_0x2923('0x15')}),this['listenTo'](_0x40d39a,'execute',()=>{_0x2320ac[_0x2923('0xa')][_0x2923('0x3')](_0x2923('0x13'))[_0x2923('0x11')]();}),_0x40d39a;}),_0x2320ac['ui']['componentFactory']['add']('restoreRevision',_0x295105=>{const _0x299116=new _0x3ede96(_0x295105);return _0x299116[_0x2923('0x10')]({'label':_0x1ba715(_0x295105,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x299116[_0x2923('0x17')](_0x2923('0x12'))['to'](_0x2320ac[_0x2923('0x6')][_0x2923('0x3')](_0x2923('0x0'))),this[_0x2923('0xe')](_0x299116,'execute',()=>_0x2320ac[_0x2923('0xb')](_0x2923('0x0'))),_0x299116;}),_0x2320ac['ui'][_0x2923('0x16')][_0x2923('0x4')]('changesNavigation',_0x45089b=>{const _0x1d975c=new _0x2cdcef(_0x45089b),_0x185bde=_0x2320ac[_0x2923('0x6')][_0x2923('0x3')](_0x2923('0x14')),_0x2e00a0=_0x2320ac[_0x2923('0x6')][_0x2923('0x3')](_0x2923('0xc'));return _0x1d975c[_0x2923('0x17')](_0x2923('0x1b'))['to'](_0x185bde,_0x2923('0x12')),_0x1d975c[_0x2923('0x17')]('isForwardNavigationEnabled')['to'](_0x2e00a0,'isEnabled'),_0x1d975c['bind'](_0x2923('0x9'),_0x2923('0x7'),_0x2923('0x1'),'isNavigationMode')['to'](_0x3c599d),this[_0x2923('0xe')](_0x1d975c,'execute',(_0x465f5a,_0x577610)=>{_0x2320ac[_0x2923('0xb')](_0x2923('0x18')===_0x577610?_0x2923('0xc'):_0x2923('0x14'));}),_0x1d975c;}),_0x279c2a[_0x2923('0xf')](),_0x3c599d['on']('change:isReady',(_0x4bc27e,_0xba386b,_0x1cc9b6)=>{_0x1cc9b6?_0x279c2a[_0x2923('0x8')]():_0x279c2a[_0x2923('0xf')]();});}}
23
+ const _0x46d6=['showNextChange','isReady','set','plugins','init','change:isReady','ck-revision-history-ui__back-to-editing','RevisionViewerUI','numberOfChanges','get','isEnabled','changesNavigation','bind','add','revisionHistory','execute','componentFactory','forward','showPreviousChange','config','currentChangeNumber','commands','pluginName','show','isBackwardNavigationEnabled','hide','Back\x20to\x20editing','exitToEditing','listenTo','Restore\x20this\x20revision','requires'];(function(_0x4d86a3,_0x46d622){const _0x935cab=function(_0x1b3dd0){while(--_0x1b3dd0){_0x4d86a3['push'](_0x4d86a3['shift']());}};_0x935cab(++_0x46d622);}(_0x46d6,0x78));const _0x935c=function(_0x4d86a3,_0x46d622){_0x4d86a3=_0x4d86a3-0x0;let _0x935cab=_0x46d6[_0x4d86a3];return _0x935cab;};import{Plugin as _0x5d64a2}from'ckeditor5/src/core';import{ButtonView as _0x4e6e89}from'ckeditor5/src/ui';import _0x665dd from'./changesnavigationview';import _0xcaa0 from'./../../revisionviewer';import _0x49a43d from'./revisionviewerloadingoverlay';import{getTranslation as _0x1d9937}from'../../utils/common-translations';import _0x2236b3 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x5d64a2{static get[_0x935c('0x1a')](){return _0x935c('0xb');}static get[_0x935c('0x3')](){return[_0xcaa0,_0x49a43d];}[_0x935c('0x8')](){const _0x2f81e5=this['editor'],_0x59e366=_0x2f81e5[_0x935c('0x7')][_0x935c('0xd')](_0xcaa0),_0x212818=_0x2f81e5[_0x935c('0x7')]['get'](_0x49a43d);_0x2f81e5['ui'][_0x935c('0x14')][_0x935c('0x11')](_0x935c('0x0'),_0x2540d0=>{const _0x2647e6=new _0x4e6e89(_0x2540d0);return _0x2647e6['set']({'label':_0x1d9937(_0x2540d0,_0x935c('0x1e')),'icon':_0x2236b3,'withText':!0x0,'tooltip':!0x0,'class':_0x935c('0xa')}),this[_0x935c('0x1')](_0x2647e6,_0x935c('0x13'),()=>{_0x2f81e5[_0x935c('0x17')][_0x935c('0xd')](_0x935c('0x12'))['closeRevisionViewerCallback']();}),_0x2647e6;}),_0x2f81e5['ui'][_0x935c('0x14')]['add']('restoreRevision',_0x1eb26f=>{const _0x4ef167=new _0x4e6e89(_0x1eb26f);return _0x4ef167[_0x935c('0x6')]({'label':_0x1d9937(_0x1eb26f,_0x935c('0x2')),'withText':!0x0,'tooltip':!0x0}),_0x4ef167[_0x935c('0x10')]('isEnabled')['to'](_0x2f81e5['commands']['get']('restoreRevision')),this[_0x935c('0x1')](_0x4ef167,'execute',()=>_0x2f81e5[_0x935c('0x13')]('restoreRevision')),_0x4ef167;}),_0x2f81e5['ui']['componentFactory']['add'](_0x935c('0xf'),_0x3d968f=>{const _0x78b36=new _0x665dd(_0x3d968f),_0x58f5e0=_0x2f81e5[_0x935c('0x19')][_0x935c('0xd')](_0x935c('0x16')),_0x47fff1=_0x2f81e5['commands'][_0x935c('0xd')](_0x935c('0x4'));return _0x78b36['bind'](_0x935c('0x1c'))['to'](_0x58f5e0,_0x935c('0xe')),_0x78b36['bind']('isForwardNavigationEnabled')['to'](_0x47fff1,_0x935c('0xe')),_0x78b36[_0x935c('0x10')](_0x935c('0x5'),_0x935c('0x18'),_0x935c('0xc'),'isNavigationMode')['to'](_0x59e366),this['listenTo'](_0x78b36,_0x935c('0x13'),(_0x3cc280,_0x5cd8a5)=>{_0x2f81e5[_0x935c('0x13')](_0x935c('0x15')===_0x5cd8a5?_0x935c('0x4'):_0x935c('0x16'));}),_0x78b36;}),_0x212818[_0x935c('0x1b')](),_0x59e366['on'](_0x935c('0x9'),(_0x181334,_0x44ac2b,_0x65cb68)=>{_0x65cb68?_0x212818[_0x935c('0x1d')]():_0x212818['show']();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x526c35,_0x5d9511,_0x30b538){const t=_0x526c35['t'];switch(_0x5d9511){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'},_0x30b538);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x30b538);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision\x20(optional)':return t('Name\x20of\x20the\x20revision\x20(optional)');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});default:return _0x5d9511;}}
23
+ export function getTranslation(_0xf257e,_0x3ee131,_0x451e28){const t=_0xf257e['t'];switch(_0x3ee131){case'Revision\x20history':return t('Revision\x20history');case'Open\x20revision\x20history':return t('Open\x20revision\x20history');case'Restored':return t('Restored');case'Empty\x20document':return t('Empty\x20document');case'Initial\x20revision':return t('Initial\x20revision');case'Suggested\x20by':return t('Suggested\x20by');case'Added\x20by':return t('Added\x20by');case'Removed\x20by':return t('Removed\x20by');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Compare\x20against\x20selected':return t('Compare\x20against\x20selected');case'Name\x20this\x20revision':return t('Name\x20this\x20revision');case'Restore\x20this\x20revision':return t('Restore\x20this\x20revision');case'Back\x20to\x20editing':return t('Back\x20to\x20editing');case'Loading...':return t('Loading...');case'No\x20changes':return t('No\x20changes');case'NUMBER_OF_CHANGES':return t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0x451e28);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x451e28);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision\x20(optional)':return t('Name\x20of\x20the\x20revision\x20(optional)');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});default:return _0x3ee131;}}