@ckeditor/ckeditor5-revision-history 37.0.0 → 37.0.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 +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 _0x5953=['bind','Open\x20revision\x20history','plugins','change:isOpen','add','isOpen','execute','revisionHistory','reset','saveButtonView','saveRevision','componentFactory','isEnabled','focus','set','editing','config','revisionName','editor','render','submit','pluginName','RevisionHistoryUI','remove','isReady','children','cancel','get','isReadOnly','panelView','RevisionTracker','requires','items','showRevisionViewerCallback'];(function(_0x3225ce,_0x595328){const _0x50dc93=function(_0x4e65e6){while(--_0x4e65e6){_0x3225ce['push'](_0x3225ce['shift']());}};_0x50dc93(++_0x595328);}(_0x5953,0x136));const _0x50dc=function(_0x3225ce,_0x595328){_0x3225ce=_0x3225ce-0x0;let _0x50dc93=_0x5953[_0x3225ce];return _0x50dc93;};import{Plugin as _0x3f3b18}from'ckeditor5/src/core';import{ListView as _0xf9a68d,ListItemView as _0x2445d6,ButtonView as _0x5a96e8,createDropdown as _0x5d13b2}from'ckeditor5/src/ui';import _0x31a0bd from'../../revisiontracker';import _0x12c83b from'./revisionhistorysaverevisionformview';import _0x345250 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x58e7e5}from'../../utils/common-translations';export default class u extends _0x3f3b18{static get[_0x50dc('0x11')](){return _0x50dc('0x12');}static get[_0x50dc('0x1b')](){return[_0x31a0bd];}['init'](){const _0x5aa359=this[_0x50dc('0xe')],_0x585b44=_0x5aa359['plugins'][_0x50dc('0x17')](_0x50dc('0x1a'));_0x5aa359['ui'][_0x50dc('0x7')][_0x50dc('0x0')](_0x50dc('0x3'),_0x55b1e7=>{const _0xd3f9e=_0x5d13b2(_0x55b1e7),_0x286697=_0xd3f9e[_0x50dc('0x19')][_0x50dc('0x15')],_0x359db8=new _0xf9a68d(_0x55b1e7),_0x54a8a2=new _0x2445d6(_0x55b1e7),_0x4db130=new _0x5a96e8(_0x55b1e7),_0xb24db0=new _0x2445d6(_0x55b1e7),_0x26a970=new _0x5a96e8(_0x55b1e7),_0x5c54f5=new _0x12c83b(_0x55b1e7);function _0x20d53f(){_0x286697['length']&&_0x286697[_0x50dc('0x13')](0x0),_0x286697[_0x50dc('0x0')](_0x359db8);}function _0x536966(){_0xd3f9e[_0x50dc('0x1')]=!0x1,_0x5aa359[_0x50dc('0xb')]['view'][_0x50dc('0x9')]();}return _0xd3f9e[_0x50dc('0x1e')]('isEnabled')['to'](_0x585b44,_0x50dc('0x14'),_0x585b44,'isEnabled',_0x5aa359,_0x50dc('0x18'),(_0x57f2e2,_0x4909c3,_0x15eec7)=>_0x57f2e2&&_0x4909c3&&!_0x15eec7),_0xd3f9e['buttonView']['set']({'icon':_0x345250,'label':_0x58e7e5(_0x55b1e7,'Revision\x20history'),'tooltip':!0x0}),_0x4db130[_0x50dc('0xa')]({'label':_0x58e7e5(_0x55b1e7,'Save\x20current\x20revision'),'withText':!0x0}),_0x4db130[_0x50dc('0x1e')]('isEnabled')['to'](_0x585b44,_0x50dc('0x14'),_0x585b44,_0x50dc('0x8'),_0x5aa359,_0x50dc('0x18'),(_0x1a1748,_0x2bf92e,_0x1fb703)=>_0x1a1748&&_0x2bf92e&&!_0x1fb703),_0x4db130['on'](_0x50dc('0x2'),()=>function(){_0x286697['length']&&_0x286697[_0x50dc('0x13')](0x0),(_0x5c54f5[_0x50dc('0x4')](),_0x286697[_0x50dc('0x0')](_0x5c54f5),_0x5c54f5['focus']());}()),_0x26a970[_0x50dc('0xa')]({'label':_0x58e7e5(_0x55b1e7,_0x50dc('0x1f')),'withText':!0x0}),_0x26a970[_0x50dc('0x1e')]('isEnabled')['to'](_0x585b44,_0x50dc('0x14'),_0x5aa359,_0x50dc('0x18'),(_0x44c288,_0x10e9af)=>_0x44c288&&!_0x10e9af),_0x26a970['on']('execute',()=>{_0x5aa359[_0x50dc('0xc')][_0x50dc('0x17')](_0x50dc('0x3'))[_0x50dc('0x1d')](),_0x536966();}),_0x54a8a2[_0x50dc('0x15')]['add'](_0x4db130),_0xb24db0[_0x50dc('0x15')]['add'](_0x26a970),_0x359db8[_0x50dc('0x1c')]['addMany']([_0x54a8a2,_0xb24db0]),_0xd3f9e['on'](_0x50dc('0x21'),()=>_0x20d53f()),_0x5c54f5[_0x50dc('0x5')][_0x50dc('0x1e')](_0x50dc('0x8'))['to'](_0x585b44,'isReady',_0x585b44,_0x50dc('0x8'),_0x5aa359,'isReadOnly',(_0x43809f,_0xd09671,_0x1a24e9)=>_0x43809f&&_0xd09671&&!_0x1a24e9),_0x5c54f5['on'](_0x50dc('0x10'),()=>(_0x5aa359[_0x50dc('0x20')][_0x50dc('0x17')](_0x31a0bd)[_0x50dc('0x6')]({'name':_0x5c54f5[_0x50dc('0xd')]}),void _0x536966())),_0x5c54f5['on'](_0x50dc('0x16'),()=>_0x20d53f()),_0x5c54f5[_0x50dc('0xf')](),_0x20d53f(),_0xd3f9e;});}}
23
+ const _0xe680=['saveButtonView','panelView','isEnabled','children','bind','pluginName','addMany','add','RevisionTracker','remove','Open\x20revision\x20history','render','execute','editing','revisionHistory','isOpen','requires','get','items','submit','length','saveRevision','revisionName','reset','set','isReadOnly','plugins','buttonView','isReady','view','change:isOpen','config','init','focus'];(function(_0xd0bac,_0xe6809d){const _0x2ad366=function(_0x3b1b23){while(--_0x3b1b23){_0xd0bac['push'](_0xd0bac['shift']());}};_0x2ad366(++_0xe6809d);}(_0xe680,0x67));const _0x2ad3=function(_0xd0bac,_0xe6809d){_0xd0bac=_0xd0bac-0x0;let _0x2ad366=_0xe680[_0xd0bac];return _0x2ad366;};import{Plugin as _0x1f09f9}from'ckeditor5/src/core';import{ListView as _0x416ef1,ListItemView as _0x320c71,ButtonView as _0x131229,createDropdown as _0x1d454b}from'ckeditor5/src/ui';import _0x502aec from'../../revisiontracker';import _0x299599 from'./revisionhistorysaverevisionformview';import _0x4eebc8 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x1531f2}from'../../utils/common-translations';export default class u extends _0x1f09f9{static get[_0x2ad3('0x4')](){return'RevisionHistoryUI';}static get[_0x2ad3('0xf')](){return[_0x502aec];}[_0x2ad3('0x1f')](){const _0x54aa17=this['editor'],_0x2b1443=_0x54aa17[_0x2ad3('0x19')][_0x2ad3('0x10')](_0x2ad3('0x7'));_0x54aa17['ui']['componentFactory'][_0x2ad3('0x6')]('revisionHistory',_0x8e5dca=>{const _0x4cdf47=_0x1d454b(_0x8e5dca),_0x4e8335=_0x4cdf47[_0x2ad3('0x0')][_0x2ad3('0x2')],_0x5a887f=new _0x416ef1(_0x8e5dca),_0x232d8e=new _0x320c71(_0x8e5dca),_0x1016c5=new _0x131229(_0x8e5dca),_0x1897fe=new _0x320c71(_0x8e5dca),_0xaa0217=new _0x131229(_0x8e5dca),_0x786419=new _0x299599(_0x8e5dca);function _0x328db9(){_0x4e8335[_0x2ad3('0x13')]&&_0x4e8335[_0x2ad3('0x8')](0x0),_0x4e8335[_0x2ad3('0x6')](_0x5a887f);}function _0x2c8629(){_0x4cdf47[_0x2ad3('0xe')]=!0x1,_0x54aa17[_0x2ad3('0xc')][_0x2ad3('0x1c')][_0x2ad3('0x20')]();}return _0x4cdf47[_0x2ad3('0x3')](_0x2ad3('0x1'))['to'](_0x2b1443,_0x2ad3('0x1b'),_0x2b1443,_0x2ad3('0x1'),_0x54aa17,_0x2ad3('0x18'),(_0x152bee,_0x2affd1,_0x444283)=>_0x152bee&&_0x2affd1&&!_0x444283),_0x4cdf47[_0x2ad3('0x1a')][_0x2ad3('0x17')]({'icon':_0x4eebc8,'label':_0x1531f2(_0x8e5dca,'Revision\x20history'),'tooltip':!0x0}),_0x1016c5[_0x2ad3('0x17')]({'label':_0x1531f2(_0x8e5dca,'Save\x20current\x20revision'),'withText':!0x0}),_0x1016c5[_0x2ad3('0x3')](_0x2ad3('0x1'))['to'](_0x2b1443,_0x2ad3('0x1b'),_0x2b1443,_0x2ad3('0x1'),_0x54aa17,_0x2ad3('0x18'),(_0x3e857e,_0x4a7add,_0x1da4c1)=>_0x3e857e&&_0x4a7add&&!_0x1da4c1),_0x1016c5['on'](_0x2ad3('0xb'),()=>function(){_0x4e8335[_0x2ad3('0x13')]&&_0x4e8335['remove'](0x0),(_0x786419[_0x2ad3('0x16')](),_0x4e8335[_0x2ad3('0x6')](_0x786419),_0x786419[_0x2ad3('0x20')]());}()),_0xaa0217[_0x2ad3('0x17')]({'label':_0x1531f2(_0x8e5dca,_0x2ad3('0x9')),'withText':!0x0}),_0xaa0217['bind'](_0x2ad3('0x1'))['to'](_0x2b1443,_0x2ad3('0x1b'),_0x54aa17,'isReadOnly',(_0x44bfcc,_0x2399f4)=>_0x44bfcc&&!_0x2399f4),_0xaa0217['on']('execute',()=>{_0x54aa17[_0x2ad3('0x1e')][_0x2ad3('0x10')](_0x2ad3('0xd'))['showRevisionViewerCallback'](),_0x2c8629();}),_0x232d8e[_0x2ad3('0x2')][_0x2ad3('0x6')](_0x1016c5),_0x1897fe[_0x2ad3('0x2')][_0x2ad3('0x6')](_0xaa0217),_0x5a887f[_0x2ad3('0x11')][_0x2ad3('0x5')]([_0x232d8e,_0x1897fe]),_0x4cdf47['on'](_0x2ad3('0x1d'),()=>_0x328db9()),_0x786419[_0x2ad3('0x21')][_0x2ad3('0x3')](_0x2ad3('0x1'))['to'](_0x2b1443,_0x2ad3('0x1b'),_0x2b1443,'isEnabled',_0x54aa17,_0x2ad3('0x18'),(_0x7bc38e,_0x28f01f,_0x48e914)=>_0x7bc38e&&_0x28f01f&&!_0x48e914),_0x786419['on'](_0x2ad3('0x12'),()=>(_0x54aa17['plugins']['get'](_0x502aec)[_0x2ad3('0x14')]({'name':_0x786419[_0x2ad3('0x15')]}),void _0x2c8629())),_0x786419['on']('cancel',()=>_0x328db9()),_0x786419[_0x2ad3('0xa')](),_0x328db9(),_0x4cdf47;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x13f2=['_createRevisionActions','isReady','highlightRevisions','selectRevision','listenTo','diff','add','remove','getRevision','_sidebarView','Name\x20this\x20revision','action','_revisionsRepository','isVisible','bind','availableRevisionActions','isEnabled','revisionSelected','map','_revisions','length','editor','_handleEditorDataReady','string','getLaterVisibleRevision','revisionViews','revisionHistory.viewerSidebarContainer','getIndex','isSelected','getRevisionsInDiff','repository','defaultRevisionActions','getEarlierVisibleRevision','revisionSetName','assign','destroy','_revisionViewer','appendChild','Restore\x20this\x20revision','restoreRevision','render','compare','timePeriodViews','name','pluginName','config','get','ready','_handleDiffChange','_handleRevisionSetName','focus','plugins','select','setName','_handleRevisionSelected'];(function(_0x116d6d,_0x13f22f){const _0x211c72=function(_0x40b849){while(--_0x40b849){_0x116d6d['push'](_0x116d6d['shift']());}};_0x211c72(++_0x13f22f);}(_0x13f2,0xad));const _0x211c=function(_0x116d6d,_0x13f22f){_0x116d6d=_0x116d6d-0x0;let _0x211c72=_0x13f2[_0x116d6d];return _0x211c72;};import{Plugin as _0x167edb}from'ckeditor5/src/core';import _0x44bded from'./revisionssidebarview';import _0x18d6e7 from'../../revisionviewer';export default class R extends _0x167edb{static get[_0x211c('0x24')](){return'RevisionsSidebar';}static get['requires'](){return[_0x18d6e7];}constructor(_0x235725){super(_0x235725),this['_revisionViewer']=_0x235725[_0x211c('0x2b')][_0x211c('0x26')](_0x18d6e7),this['_revisionsRepository']=this[_0x211c('0x1c')][_0x211c('0x16')],this[_0x211c('0x1')]=null;}['init'](){const _0x233b96=this[_0x211c('0x4')][_0x211c('0xb')],_0x517ef1=this[_0x211c('0x2f')](),_0x48d490=this[_0x211c('0xd')][_0x211c('0x25')][_0x211c('0x26')](_0x211c('0x12'));this[_0x211c('0x1')]=new _0x44bded(this['editor']['locale'],_0x233b96,_0x517ef1),this[_0x211c('0x1')]['on'](_0x211c('0x9'),this[_0x211c('0x2e')][_0x211c('0x6')](this)),this[_0x211c('0x1')]['on'](_0x211c('0x19'),this[_0x211c('0x29')][_0x211c('0x6')](this)),this[_0x211c('0x1')][_0x211c('0x6')](_0x211c('0x8'))['to'](this[_0x211c('0x1c')]),this[_0x211c('0x1')][_0x211c('0x22')]['on']('add',(_0x5bd5c2,_0x580243)=>{_0x580243[_0x211c('0x11')]['on'](_0x211c('0x35'),(_0x40ab39,_0x31a6f3)=>{_0x31a6f3[_0x211c('0x6')]('isEnabled',_0x211c('0x30'))['to'](this[_0x211c('0x1c')]);});}),this[_0x211c('0x1')][_0x211c('0x20')](),this[_0x211c('0x33')](this[_0x211c('0xd')]['data'],_0x211c('0x27'),this['_handleEditorDataReady']['bind'](this)),this[_0x211c('0x33')](this[_0x211c('0x1c')],'change:diff',this['_handleDiffChange'][_0x211c('0x6')](this)),_0x48d490[_0x211c('0x1d')](this[_0x211c('0x1')]['element']);}[_0x211c('0x1b')](){this['_sidebarView']['element'][_0x211c('0x36')](),this[_0x211c('0x1')][_0x211c('0x1b')]();}[_0x211c('0xe')](){const _0x24daa8=this[_0x211c('0x4')]['getRevision'](0x0);if(_0x24daa8){const _0x3e1a7c=this[_0x211c('0x4')][_0x211c('0x18')](_0x24daa8['id']);this[_0x211c('0x1c')][_0x211c('0x21')](_0x24daa8,_0x3e1a7c);}}[_0x211c('0x2e')](_0x555fa3,_0xc09c1b){const _0xc7bc40=this[_0x211c('0x4')][_0x211c('0x0')](_0xc09c1b['id']),_0x228b96=this[_0x211c('0x4')][_0x211c('0x18')](_0xc7bc40['id']);this[_0x211c('0x1c')][_0x211c('0x21')](_0xc7bc40,_0x228b96);}['_handleRevisionSetName'](_0x533c6b,_0x2929ac){this['_revisionsRepository'][_0x211c('0x0')](_0x2929ac['id'])[_0x211c('0x2d')](_0x2929ac[_0x211c('0x23')]);}[_0x211c('0x28')](_0xf4ab89,_0x268202,_0x20ac6b){const _0x261dd5=this[_0x211c('0x4')][_0x211c('0x15')](_0x20ac6b);_0x261dd5[_0x211c('0xc')]>0x2?(this['_sidebarView'][_0x211c('0x31')](_0x261dd5),this[_0x211c('0x1')][_0x211c('0x32')](null)):(this[_0x211c('0x1')][_0x211c('0x31')]([]),this[_0x211c('0x1')][_0x211c('0x32')](_0x261dd5[0x0]));}[_0x211c('0x2f')](){const _0x46bfff=this[_0x211c('0xd')],_0x5ae4c9=R[_0x211c('0x7')],_0x14fa31=_0x46bfff['config'][_0x211c('0x26')]('revisionHistory.revisionActions')||R[_0x211c('0x17')];if(_0x14fa31[_0x211c('0xc')])return _0x14fa31[_0x211c('0xa')](_0x440675=>{const _0x16f48c=_0x211c('0xf')==typeof _0x440675?Object[_0x211c('0x1a')]({},_0x5ae4c9[_0x440675]):_0x440675;return _0x16f48c['action']=_0x16f48c[_0x211c('0x3')][_0x211c('0x6')](this,_0x46bfff),_0x16f48c[_0x211c('0x5')]&&(_0x16f48c[_0x211c('0x5')]=_0x16f48c[_0x211c('0x5')][_0x211c('0x6')](this,_0x46bfff)),_0x16f48c;});}}R[_0x211c('0x7')]={'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x5503dc},_0x3a3db1)=>{const _0x52c18d=_0x5503dc[_0x211c('0x26')](_0x18d6e7),_0xf3081c=_0x52c18d[_0x211c('0x16')];let _0x5c701a=_0x52c18d[_0x211c('0x34')]['newRevisionId'],_0x488f5a=_0x3a3db1['id'];_0xf3081c[_0x211c('0x13')](_0x5c701a)>_0xf3081c['getIndex'](_0x488f5a)&&([_0x5c701a,_0x488f5a]=[_0x488f5a,_0x5c701a]),_0x52c18d['compare'](_0x5c701a,_0x488f5a);},'isVisible':({plugins:_0x2953a8},_0x4adece)=>{const _0x5eeea6=_0x2953a8[_0x211c('0x26')](_0x18d6e7);return!(_0x5eeea6['repository'][_0x211c('0x15')](_0x5eeea6[_0x211c('0x34')])[_0x211c('0xc')]>0x2)&&!_0x4adece[_0x211c('0x14')];}},'restoreRevision':{'name':_0x211c('0x1e'),'action':(_0x5f0f79,{id:_0x44cf08})=>{_0x5f0f79[_0x211c('0x25')][_0x211c('0x26')]('revisionHistory')['restoreRevisionCallback'](_0x44cf08);},'isVisible':({plugins:_0x5d3604},_0xb78ec0)=>!!_0x5d3604[_0x211c('0x26')](_0x18d6e7)[_0x211c('0x16')][_0x211c('0x10')](_0xb78ec0['id'])},'nameRevision':{'name':_0x211c('0x2'),'action':({plugins:_0x25b66a},{id:_0x1b79b1,revisionNameView:_0x38d756})=>{const _0x31fe84=_0x25b66a['get'](_0x18d6e7),_0x570619=_0x31fe84['repository']['getEarlierVisibleRevision'](_0x1b79b1);_0x31fe84[_0x211c('0x21')](_0x1b79b1,_0x570619),_0x38d756[_0x211c('0x2a')](),_0x38d756['fieldView'][_0x211c('0x2c')]();}}},R[_0x211c('0x17')]=['compareAgainstSelected',_0x211c('0x1f'),'nameRevision'];
23
+ const _0x4931=['appendChild','diff','isEnabled','getIndex','length','add','plugins','_revisions','setName','revisionViews','listenTo','_revisionsRepository','nameRevision','revisionSelected','isReady','string','locale','ready','change:diff','revisionHistory.revisionActions','fieldView','isVisible','repository','isSelected','restoreRevisionCallback','focus','editor','config','getRevisionsInDiff','availableRevisionActions','compare','_handleEditorDataReady','timePeriodViews','_revisionViewer','getLaterVisibleRevision','getEarlierVisibleRevision','_createRevisionActions','_handleDiffChange','selectRevision','Compare\x20against\x20selected','remove','_handleRevisionSetName','element','RevisionsSidebar','action','get','requires','defaultRevisionActions','highlightRevisions','restoreRevision','destroy','getRevision','bind','revisionHistory','_sidebarView','pluginName','newRevisionId','init','revisionSetName','_handleRevisionSelected','select'];(function(_0x294051,_0x4931a3){const _0x37312e=function(_0x467f33){while(--_0x467f33){_0x294051['push'](_0x294051['shift']());}};_0x37312e(++_0x4931a3);}(_0x4931,0x111));const _0x3731=function(_0x294051,_0x4931a3){_0x294051=_0x294051-0x0;let _0x37312e=_0x4931[_0x294051];return _0x37312e;};import{Plugin as _0x2fb44e}from'ckeditor5/src/core';import _0x1bb5c5 from'./revisionssidebarview';import _0x36dc72 from'../../revisionviewer';export default class R extends _0x2fb44e{static get[_0x3731('0x1a')](){return _0x3731('0xe');}static get[_0x3731('0x11')](){return[_0x36dc72];}constructor(_0x476d75){super(_0x476d75),this[_0x3731('0x4')]=_0x476d75[_0x3731('0x26')]['get'](_0x36dc72),this[_0x3731('0x2b')]=this[_0x3731('0x4')]['repository'],this[_0x3731('0x19')]=null;}[_0x3731('0x1c')](){const _0x19088b=this['_revisionsRepository'][_0x3731('0x27')],_0x13a52e=this[_0x3731('0x7')](),_0x2a0b65=this[_0x3731('0x3a')][_0x3731('0x3b')]['get']('revisionHistory.viewerSidebarContainer');this[_0x3731('0x19')]=new _0x1bb5c5(this[_0x3731('0x3a')][_0x3731('0x30')],_0x19088b,_0x13a52e),this['_sidebarView']['on'](_0x3731('0x2d'),this[_0x3731('0x1e')]['bind'](this)),this[_0x3731('0x19')]['on'](_0x3731('0x1d'),this[_0x3731('0xc')]['bind'](this)),this['_sidebarView']['bind'](_0x3731('0x22'))['to'](this['_revisionViewer']),this[_0x3731('0x19')][_0x3731('0x3')]['on'](_0x3731('0x25'),(_0x150f5f,_0x52e0ac)=>{_0x52e0ac[_0x3731('0x29')]['on']('add',(_0x37454b,_0x311ad8)=>{_0x311ad8[_0x3731('0x17')]('isEnabled',_0x3731('0x2e'))['to'](this[_0x3731('0x4')]);});}),this[_0x3731('0x19')]['render'](),this[_0x3731('0x2a')](this['editor']['data'],_0x3731('0x31'),this[_0x3731('0x2')][_0x3731('0x17')](this)),this['listenTo'](this[_0x3731('0x4')],_0x3731('0x32'),this[_0x3731('0x8')]['bind'](this)),_0x2a0b65[_0x3731('0x20')](this[_0x3731('0x19')][_0x3731('0xd')]);}[_0x3731('0x15')](){this['_sidebarView']['element'][_0x3731('0xb')](),this[_0x3731('0x19')]['destroy']();}[_0x3731('0x2')](){const _0x4a434a=this[_0x3731('0x2b')][_0x3731('0x16')](0x0);if(_0x4a434a){const _0x39f31b=this[_0x3731('0x2b')][_0x3731('0x6')](_0x4a434a['id']);this[_0x3731('0x4')][_0x3731('0x1')](_0x4a434a,_0x39f31b);}}[_0x3731('0x1e')](_0x3259ba,_0x367d53){const _0x16fd08=this[_0x3731('0x2b')][_0x3731('0x16')](_0x367d53['id']),_0x473079=this['_revisionsRepository'][_0x3731('0x6')](_0x16fd08['id']);this[_0x3731('0x4')][_0x3731('0x1')](_0x16fd08,_0x473079);}[_0x3731('0xc')](_0x3462f3,_0x4de41b){this[_0x3731('0x2b')][_0x3731('0x16')](_0x4de41b['id'])[_0x3731('0x28')](_0x4de41b['name']);}[_0x3731('0x8')](_0x323747,_0x5338b1,_0x1f2362){const _0x1ff697=this[_0x3731('0x2b')][_0x3731('0x3c')](_0x1f2362);_0x1ff697[_0x3731('0x24')]>0x2?(this[_0x3731('0x19')][_0x3731('0x13')](_0x1ff697),this['_sidebarView']['selectRevision'](null)):(this[_0x3731('0x19')][_0x3731('0x13')]([]),this[_0x3731('0x19')][_0x3731('0x9')](_0x1ff697[0x0]));}[_0x3731('0x7')](){const _0x463c96=this[_0x3731('0x3a')],_0x3650f6=R[_0x3731('0x0')],_0x5f2169=_0x463c96[_0x3731('0x3b')][_0x3731('0x10')](_0x3731('0x33'))||R['defaultRevisionActions'];if(_0x5f2169[_0x3731('0x24')])return _0x5f2169['map'](_0x331789=>{const _0x5275ab=_0x3731('0x2f')==typeof _0x331789?Object['assign']({},_0x3650f6[_0x331789]):_0x331789;return _0x5275ab[_0x3731('0xf')]=_0x5275ab[_0x3731('0xf')][_0x3731('0x17')](this,_0x463c96),_0x5275ab[_0x3731('0x35')]&&(_0x5275ab['isVisible']=_0x5275ab[_0x3731('0x35')][_0x3731('0x17')](this,_0x463c96)),_0x5275ab;});}}R[_0x3731('0x0')]={'compareAgainstSelected':{'name':_0x3731('0xa'),'action':({plugins:_0x57f986},_0x47b72b)=>{const _0x39c60f=_0x57f986[_0x3731('0x10')](_0x36dc72),_0x2224c8=_0x39c60f['repository'];let _0x487e6d=_0x39c60f['diff'][_0x3731('0x1b')],_0x38b86c=_0x47b72b['id'];_0x2224c8[_0x3731('0x23')](_0x487e6d)>_0x2224c8[_0x3731('0x23')](_0x38b86c)&&([_0x487e6d,_0x38b86c]=[_0x38b86c,_0x487e6d]),_0x39c60f[_0x3731('0x1')](_0x487e6d,_0x38b86c);},'isVisible':({plugins:_0x4f7903},_0x3f2b6a)=>{const _0x10b2fa=_0x4f7903[_0x3731('0x10')](_0x36dc72);return!(_0x10b2fa[_0x3731('0x36')][_0x3731('0x3c')](_0x10b2fa[_0x3731('0x21')])['length']>0x2)&&!_0x3f2b6a[_0x3731('0x37')];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x153d6f,{id:_0x1d7f4d})=>{_0x153d6f[_0x3731('0x3b')]['get'](_0x3731('0x18'))[_0x3731('0x38')](_0x1d7f4d);},'isVisible':({plugins:_0x32a04d},_0x2f2dab)=>!!_0x32a04d['get'](_0x36dc72)['repository'][_0x3731('0x5')](_0x2f2dab['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x1faffa},{id:_0x207cc1,revisionNameView:_0x2e448e})=>{const _0x2ffdf7=_0x1faffa[_0x3731('0x10')](_0x36dc72),_0x15a3b4=_0x2ffdf7['repository'][_0x3731('0x6')](_0x207cc1);_0x2ffdf7['compare'](_0x207cc1,_0x15a3b4),_0x2e448e[_0x3731('0x39')](),_0x2e448e[_0x3731('0x34')][_0x3731('0x1f')]();}}},R[_0x3731('0x12')]=['compareAgainstSelected',_0x3731('0x14'),_0x3731('0x2c')];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x137a=['span','ck-reset_all','Revision\x20history','div','ck-revision-history-sidebar__header','setTemplate'];(function(_0x7fc206,_0x137ae0){const _0x1937f1=function(_0xc3c3f6){while(--_0xc3c3f6){_0x7fc206['push'](_0x7fc206['shift']());}};_0x1937f1(++_0x137ae0);}(_0x137a,0x85));const _0x1937=function(_0x7fc206,_0x137ae0){_0x7fc206=_0x7fc206-0x0;let _0x1937f1=_0x137a[_0x7fc206];return _0x1937f1;};import{View as _0x90e564,IconView as _0x3a1406}from'ckeditor5/src/ui';import{getTranslation as _0x24cb20}from'../../utils/common-translations';import _0xf08b1f from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x90e564{constructor(_0x1e6265){super(_0x1e6265);const _0x330fae=new _0x3a1406();_0x330fae['content']=_0xf08b1f,this[_0x1937('0x4')]({'tag':_0x1937('0x2'),'attributes':{'class':['ck',_0x1937('0x0'),_0x1937('0x3')]},'children':[_0x330fae,{'tag':_0x1937('0x5'),'attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[_0x24cb20(_0x1e6265,_0x1937('0x1'))]}]});}}
23
+ const _0x1ea9=['ck-revision-history-sidebar__header__label','span','ck-revision-history-sidebar__header','ck-reset_all','Revision\x20history','setTemplate','content'];(function(_0x4dc427,_0x1ea969){const _0x302c6d=function(_0x54510f){while(--_0x54510f){_0x4dc427['push'](_0x4dc427['shift']());}};_0x302c6d(++_0x1ea969);}(_0x1ea9,0x1aa));const _0x302c=function(_0x4dc427,_0x1ea969){_0x4dc427=_0x4dc427-0x0;let _0x302c6d=_0x1ea9[_0x4dc427];return _0x302c6d;};import{View as _0x1977bc,IconView as _0x47fcbe}from'ckeditor5/src/ui';import{getTranslation as _0x84da1f}from'../../utils/common-translations';import _0x341007 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x1977bc{constructor(_0x27eee2){super(_0x27eee2);const _0x403f8a=new _0x47fcbe();_0x403f8a[_0x302c('0x0')]=_0x341007,this[_0x302c('0x6')]({'tag':'div','attributes':{'class':['ck',_0x302c('0x4'),_0x302c('0x3')]},'children':[_0x403f8a,{'tag':_0x302c('0x2'),'attributes':{'class':['ck',_0x302c('0x1')]},'children':[_0x84da1f(_0x27eee2,_0x302c('0x5'))]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4f2f=['add','remove','delegate','select','setTemplate','localizedPeriodName','setName','startDate','addRevision','revisionViews','uiLanguage','createCollection','_revisionActions','ck-revision-history-sidebar__time-period__label','ck-revision-history-sidebar__time-period','ck-revision-history-sidebar__time-period__revisions','locale','div'];(function(_0x19d0dd,_0x4f2f6e){const _0xbd01fc=function(_0xa7954a){while(--_0xa7954a){_0x19d0dd['push'](_0x19d0dd['shift']());}};_0xbd01fc(++_0x4f2f6e);}(_0x4f2f,0xd0));const _0xbd01=function(_0x19d0dd,_0x4f2f6e){_0x19d0dd=_0x19d0dd-0x0;let _0xbd01fc=_0x4f2f[_0x19d0dd];return _0xbd01fc;};import{View as _0x247924}from'ckeditor5/src/ui';import _0x1b3b40 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x167278}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class ki extends _0x247924{constructor(_0x5ea9c2,_0x1820fa,_0xf1fea7){super(_0x5ea9c2);const _0x53aac1=_0x167278(_0x1820fa,this[_0xbd01('0x6')][_0xbd01('0x0')])[_0xbd01('0xd')];this[_0xbd01('0xf')]=_0x1820fa,this['revisionViews']=this[_0xbd01('0x1')](),this['_revisionActions']=_0xf1fea7,this[_0xbd01('0x11')][_0xbd01('0xa')](_0xbd01('0xb'))['to'](this),this[_0xbd01('0x11')][_0xbd01('0xa')](_0xbd01('0xe'))['to'](this),this[_0xbd01('0xc')]({'tag':_0xbd01('0x7'),'attributes':{'class':['ck',_0xbd01('0x4')]},'children':[{'tag':'span','attributes':{'class':['ck',_0xbd01('0x3')]},'children':[{'text':_0x53aac1}]},{'tag':'div','attributes':{'class':['ck',_0xbd01('0x5')]},'children':this[_0xbd01('0x11')]}]});}[_0xbd01('0x10')](_0x32a243){const _0x132dbd=new _0x1b3b40(this[_0xbd01('0x6')],_0x32a243,this[_0xbd01('0x2')]);this[_0xbd01('0x11')][_0xbd01('0x8')](_0x132dbd);}['removeRevision'](_0x442c77){const _0x5c8b1c=this['revisionViews']['find'](_0x397d47=>_0x397d47['id']===_0x442c77['id']);this['revisionViews'][_0xbd01('0x9')](_0x5c8b1c);}}
23
+ const _0x5232=['uiLanguage','createCollection','revisionViews','removeRevision','delegate','localizedPeriodName','select','setName','_revisionActions','addRevision','span','find','locale','div','ck-revision-history-sidebar__time-period__revisions','ck-revision-history-sidebar__time-period__label','setTemplate'];(function(_0x94ac25,_0x5232fc){const _0x1696be=function(_0x14a144){while(--_0x14a144){_0x94ac25['push'](_0x94ac25['shift']());}};_0x1696be(++_0x5232fc);}(_0x5232,0x8b));const _0x1696=function(_0x94ac25,_0x5232fc){_0x94ac25=_0x94ac25-0x0;let _0x1696be=_0x5232[_0x94ac25];return _0x1696be;};import{View as _0x1a3d10}from'ckeditor5/src/ui';import _0x36b773 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x170031}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x1a3d10{constructor(_0x28b99c,_0x544e19,_0x5d8083){super(_0x28b99c);const _0x4ea3ca=_0x170031(_0x544e19,this[_0x1696('0x9')][_0x1696('0xe')])[_0x1696('0x2')];this['startDate']=_0x544e19,this[_0x1696('0x10')]=this[_0x1696('0xf')](),this[_0x1696('0x5')]=_0x5d8083,this[_0x1696('0x10')][_0x1696('0x1')](_0x1696('0x3'))['to'](this),this[_0x1696('0x10')]['delegate'](_0x1696('0x4'))['to'](this),this[_0x1696('0xd')]({'tag':_0x1696('0xa'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':_0x1696('0x7'),'attributes':{'class':['ck',_0x1696('0xc')]},'children':[{'text':_0x4ea3ca}]},{'tag':_0x1696('0xa'),'attributes':{'class':['ck',_0x1696('0xb')]},'children':this[_0x1696('0x10')]}]});}[_0x1696('0x6')](_0x488113){const _0xf3a196=new _0x36b773(this[_0x1696('0x9')],_0x488113,this['_revisionActions']);this['revisionViews']['add'](_0xf3a196);}[_0x1696('0x0')](_0x274d42){const _0xace63b=this[_0x1696('0x10')][_0x1696('0x8')](_0x52a164=>_0x52a164['id']===_0x274d42['id']);this['revisionViews']['remove'](_0xace63b);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1936=['map','createCollection','_getTimePeriodViewByStartDate','addRevision','div','ck-rounded-corners','uiLanguage','setTemplate','deselect','select','revisionViews','setName','unhighlight','fire','add','ck-disabled','find','delegate','startDate','getTime','_removeRevision','locale','get','isEnabled','removeRevision','ck-reset','ck-revision-history-sidebar__timeline','remove','timePeriodViews','revisionSetName','_addRevision','selectRevision','_revisionActions','highlightRevisions','render','createdAt','_revisions'];(function(_0x5a248a,_0x1936ef){const _0x3b7303=function(_0x32ff73){while(--_0x32ff73){_0x5a248a['push'](_0x5a248a['shift']());}};_0x3b7303(++_0x1936ef);}(_0x1936,0x1df));const _0x3b73=function(_0x5a248a,_0x1936ef){_0x5a248a=_0x5a248a-0x0;let _0x3b7303=_0x1936[_0x5a248a];return _0x3b7303;};import{View as _0x434d25}from'ckeditor5/src/ui';import _0x48a3c4 from'./revisionssidebartimeperiodview';import _0x481479 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x322154}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x434d25{constructor(_0x57cba1,_0xa189e7,_0xd739c7){super(_0x57cba1);const _0x3bc606=this['bindTemplate'];this['timePeriodViews']=this[_0x3b73('0x3')](),this[_0x3b73('0x1e')]['delegate'](_0x3b73('0xb'))['to'](this),this[_0x3b73('0x1e')][_0x3b73('0x13')](_0x3b73('0xd'))['to'](this),this[_0x3b73('0x1')]=_0xa189e7,this[_0x3b73('0x22')]=_0xd739c7,this['on'](_0x3b73('0xb'),(_0xe655c2,_0x50c45e)=>{this[_0x3b73('0xf')]('revisionSelected',_0x50c45e);}),this['on']('setName',(_0x26bdfc,_0x3f549e)=>{this[_0x3b73('0xf')](_0x3b73('0x1f'),_0x3f549e);}),this['set'](_0x3b73('0x19'),!0x1),this[_0x3b73('0x9')]({'tag':_0x3b73('0x6'),'attributes':{'class':['ck',_0x3b73('0x1b'),_0x3b73('0x7'),'ck-revision-history-sidebar']},'children':[new _0x481479(_0x57cba1),{'tag':_0x3b73('0x6'),'attributes':{'class':['ck',_0x3b73('0x1c'),_0x3bc606['if'](_0x3b73('0x19'),_0x3b73('0x11'),_0x408fc0=>!_0x408fc0)]},'children':this[_0x3b73('0x1e')]}]});}[_0x3b73('0x24')](){super['render']();for(const _0x599718 of this['_revisions'])this[_0x3b73('0x20')](_0x599718);this[_0x3b73('0x1')]['on'](_0x3b73('0x10'),(_0x5c1ecd,_0x5f41d0)=>{this[_0x3b73('0x20')](_0x5f41d0);}),this[_0x3b73('0x1')]['on'](_0x3b73('0x1d'),(_0x405fc6,_0x3e1055)=>{this[_0x3b73('0x16')](_0x3e1055);});}get['revisionViews'](){return this[_0x3b73('0x1e')]['map'](_0x123ed0=>_0x123ed0['revisionViews'][_0x3b73('0x2')](_0x369ccc=>_0x369ccc))['flat']();}[_0x3b73('0x21')](_0xa6a69c){for(const _0x31dc99 of this[_0x3b73('0xc')])_0xa6a69c&&_0xa6a69c['id']===_0x31dc99['id']?_0x31dc99[_0x3b73('0xb')]():_0x31dc99[_0x3b73('0xa')]();}[_0x3b73('0x23')](_0x3e4aa2){for(const _0x2692e4 of this[_0x3b73('0xc')])_0x3e4aa2['some'](({id:_0x543e19})=>_0x543e19===_0x2692e4['id'])?_0x2692e4['highlight']():_0x2692e4[_0x3b73('0xe')]();}[_0x3b73('0x20')](_0x6f8f19){const _0x583dfd=_0x322154(_0x6f8f19[_0x3b73('0x0')],this['locale'][_0x3b73('0x8')])[_0x3b73('0x14')];let _0x11e0a0=this[_0x3b73('0x1e')][_0x3b73('0x18')](0x0);_0x11e0a0&&_0x11e0a0[_0x3b73('0x14')]['getTime']()===_0x583dfd['getTime']()||(_0x11e0a0=new _0x48a3c4(this[_0x3b73('0x17')],_0x583dfd,this[_0x3b73('0x22')]),this[_0x3b73('0x1e')][_0x3b73('0x10')](_0x11e0a0)),_0x11e0a0[_0x3b73('0x5')](_0x6f8f19);}['_removeRevision'](_0x460e15){const _0x2e6cb6=_0x322154(_0x460e15['createdAt'],this[_0x3b73('0x17')][_0x3b73('0x8')])[_0x3b73('0x14')];this[_0x3b73('0x4')](_0x2e6cb6)[_0x3b73('0x1a')](_0x460e15);}['_getTimePeriodViewByStartDate'](_0x13853){return this[_0x3b73('0x1e')][_0x3b73('0x12')](_0x5e8089=>_0x5e8089['startDate'][_0x3b73('0x15')]()===_0x13853['getTime']());}}
23
+ const _0x176b=['removeRevision','fire','find','timePeriodViews','add','render','set','ck-rounded-corners','createdAt','div','uiLanguage','getTime','startDate','delegate','_removeRevision','isEnabled','ck-disabled','ck-revision-history-sidebar','_getTimePeriodViewByStartDate','select','some','setTemplate','revisionSelected','highlight','bindTemplate','get','createCollection','_revisionActions','locale','_revisions','remove','map','_addRevision','revisionViews'];(function(_0x18c44c,_0x176bf2){const _0x77c2c9=function(_0xb20315){while(--_0xb20315){_0x18c44c['push'](_0x18c44c['shift']());}};_0x77c2c9(++_0x176bf2);}(_0x176b,0xcc));const _0x77c2=function(_0x18c44c,_0x176bf2){_0x18c44c=_0x18c44c-0x0;let _0x77c2c9=_0x176b[_0x18c44c];return _0x77c2c9;};import{View as _0x369c7d}from'ckeditor5/src/ui';import _0x5b5789 from'./revisionssidebartimeperiodview';import _0x16bb4a from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x19fb08}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x369c7d{constructor(_0x3bcd5b,_0x1c0ff6,_0x55cbc5){super(_0x3bcd5b);const _0x58d576=this[_0x77c2('0x18')];this[_0x77c2('0x3')]=this[_0x77c2('0x1a')](),this[_0x77c2('0x3')][_0x77c2('0xd')]('select')['to'](this),this[_0x77c2('0x3')]['delegate']('setName')['to'](this),this[_0x77c2('0x1d')]=_0x1c0ff6,this['_revisionActions']=_0x55cbc5,this['on'](_0x77c2('0x13'),(_0x393a59,_0x14010f)=>{this[_0x77c2('0x1')](_0x77c2('0x16'),_0x14010f);}),this['on']('setName',(_0x32dcd3,_0x3005b4)=>{this[_0x77c2('0x1')]('revisionSetName',_0x3005b4);}),this[_0x77c2('0x6')](_0x77c2('0xf'),!0x1),this[_0x77c2('0x15')]({'tag':_0x77c2('0x9'),'attributes':{'class':['ck','ck-reset',_0x77c2('0x7'),_0x77c2('0x11')]},'children':[new _0x16bb4a(_0x3bcd5b),{'tag':_0x77c2('0x9'),'attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x58d576['if']('isEnabled',_0x77c2('0x10'),_0x4a8546=>!_0x4a8546)]},'children':this[_0x77c2('0x3')]}]});}[_0x77c2('0x5')](){super[_0x77c2('0x5')]();for(const _0x238ec2 of this[_0x77c2('0x1d')])this[_0x77c2('0x20')](_0x238ec2);this[_0x77c2('0x1d')]['on'](_0x77c2('0x4'),(_0x5dfebd,_0x53ab89)=>{this[_0x77c2('0x20')](_0x53ab89);}),this[_0x77c2('0x1d')]['on'](_0x77c2('0x1e'),(_0x210a7e,_0x366e81)=>{this[_0x77c2('0xe')](_0x366e81);});}get['revisionViews'](){return this[_0x77c2('0x3')][_0x77c2('0x1f')](_0x5e868c=>_0x5e868c['revisionViews'][_0x77c2('0x1f')](_0x54d708=>_0x54d708))['flat']();}['selectRevision'](_0x29604a){for(const _0x159eda of this[_0x77c2('0x21')])_0x29604a&&_0x29604a['id']===_0x159eda['id']?_0x159eda['select']():_0x159eda['deselect']();}['highlightRevisions'](_0x231bfd){for(const _0x50ce3d of this[_0x77c2('0x21')])_0x231bfd[_0x77c2('0x14')](({id:_0x4b19b4})=>_0x4b19b4===_0x50ce3d['id'])?_0x50ce3d[_0x77c2('0x17')]():_0x50ce3d['unhighlight']();}[_0x77c2('0x20')](_0x17318e){const _0x1831ef=_0x19fb08(_0x17318e[_0x77c2('0x8')],this['locale'][_0x77c2('0xa')])[_0x77c2('0xc')];let _0xbe110c=this[_0x77c2('0x3')][_0x77c2('0x19')](0x0);_0xbe110c&&_0xbe110c[_0x77c2('0xc')][_0x77c2('0xb')]()===_0x1831ef[_0x77c2('0xb')]()||(_0xbe110c=new _0x5b5789(this[_0x77c2('0x1c')],_0x1831ef,this[_0x77c2('0x1b')]),this[_0x77c2('0x3')][_0x77c2('0x4')](_0xbe110c)),_0xbe110c['addRevision'](_0x17318e);}[_0x77c2('0xe')](_0x42120f){const _0x8a4216=_0x19fb08(_0x42120f[_0x77c2('0x8')],this[_0x77c2('0x1c')][_0x77c2('0xa')])[_0x77c2('0xc')];this[_0x77c2('0x12')](_0x8a4216)[_0x77c2('0x0')](_0x42120f);}[_0x77c2('0x12')](_0x5eaa5b){return this[_0x77c2('0x3')][_0x77c2('0x2')](_0x1d0d8a=>_0x1d0d8a[_0x77c2('0xc')][_0x77c2('0xb')]()===_0x5eaa5b[_0x77c2('0xb')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x328e=['day','fromJSDate','setLocale','toRelativeCalendar','year','startOf','monthLong','week','hasSame','month','weekdayLong','toJSDate','local','minus'];(function(_0x51b9d7,_0x328e77){const _0xab8ec5=function(_0x4427b3){while(--_0x4427b3){_0x51b9d7['push'](_0x51b9d7['shift']());}};_0xab8ec5(++_0x328e77);}(_0x328e,0x1bb));const _0xab8e=function(_0x51b9d7,_0x328e77){_0x51b9d7=_0x51b9d7-0x0;let _0xab8ec5=_0x328e[_0x51b9d7];return _0xab8ec5;};import{DateTime as _0x20d4fe}from'luxon';export function getDateTimePeriodInfo(_0x19d9ef,_0x513645){const _0x110213=_0x20d4fe[_0xab8e('0x6')](_0x19d9ef)[_0xab8e('0x7')](_0x513645),_0x64c172=_0x20d4fe[_0xab8e('0x3')](),_0x325185=_0x64c172[_0xab8e('0x4')]({'days':0x1})[_0xab8e('0xa')](_0xab8e('0x5'));let _0xdcd184,_0x3cdb3b;return _0x110213[_0xab8e('0xd')](_0x64c172,_0xab8e('0x5'))?(_0xdcd184=_0x110213[_0xab8e('0xa')](_0xab8e('0x5'))[_0xab8e('0x2')](),_0x3cdb3b=_0x110213[_0xab8e('0x8')]()):_0x110213[_0xab8e('0xd')](_0x325185,_0xab8e('0x5'))?(_0xdcd184=_0x325185[_0xab8e('0x2')](),_0x3cdb3b=_0x110213[_0xab8e('0x8')]()):_0x110213[_0xab8e('0xd')](_0x64c172,_0xab8e('0xc'))?(_0xdcd184=_0x110213[_0xab8e('0xa')](_0xab8e('0xc'))[_0xab8e('0x2')](),_0x3cdb3b=_0x110213[_0xab8e('0x1')]||''):_0x110213[_0xab8e('0xd')](_0x64c172,_0xab8e('0x9'))?(_0xdcd184=_0x110213['startOf'](_0xab8e('0x0'))[_0xab8e('0x2')](),_0x3cdb3b=_0x110213[_0xab8e('0xb')]||''):(_0xdcd184=_0x110213[_0xab8e('0xa')](_0xab8e('0x9'))[_0xab8e('0x2')](),_0x3cdb3b=String(_0x110213['year'])),{'startDate':_0xdcd184,'localizedPeriodName':_0x3cdb3b};}
23
+ const _0x760f=['monthLong','day','minus','week','setLocale','local','year','toJSDate','toRelativeCalendar','hasSame','weekdayLong','startOf','month'];(function(_0x3d061f,_0x760f22){const _0x1b02b3=function(_0x28d53c){while(--_0x28d53c){_0x3d061f['push'](_0x3d061f['shift']());}};_0x1b02b3(++_0x760f22);}(_0x760f,0x164));const _0x1b02=function(_0x3d061f,_0x760f22){_0x3d061f=_0x3d061f-0x0;let _0x1b02b3=_0x760f[_0x3d061f];return _0x1b02b3;};import{DateTime as _0x3447ca}from'luxon';export function getDateTimePeriodInfo(_0x3e5779,_0x357a9d){const _0x367a11=_0x3447ca['fromJSDate'](_0x3e5779)[_0x1b02('0xc')](_0x357a9d),_0x3efe3e=_0x3447ca[_0x1b02('0x0')](),_0x54c1e6=_0x3efe3e[_0x1b02('0xa')]({'days':0x1})[_0x1b02('0x6')]('day');let _0xa2deb6,_0x3f5773;return _0x367a11[_0x1b02('0x4')](_0x3efe3e,_0x1b02('0x9'))?(_0xa2deb6=_0x367a11['startOf'](_0x1b02('0x9'))[_0x1b02('0x2')](),_0x3f5773=_0x367a11[_0x1b02('0x3')]()):_0x367a11[_0x1b02('0x4')](_0x54c1e6,'day')?(_0xa2deb6=_0x54c1e6['toJSDate'](),_0x3f5773=_0x367a11[_0x1b02('0x3')]()):_0x367a11[_0x1b02('0x4')](_0x3efe3e,_0x1b02('0xb'))?(_0xa2deb6=_0x367a11[_0x1b02('0x6')](_0x1b02('0xb'))[_0x1b02('0x2')](),_0x3f5773=_0x367a11[_0x1b02('0x5')]||''):_0x367a11['hasSame'](_0x3efe3e,_0x1b02('0x1'))?(_0xa2deb6=_0x367a11[_0x1b02('0x6')](_0x1b02('0x7'))['toJSDate'](),_0x3f5773=_0x367a11[_0x1b02('0x8')]||''):(_0xa2deb6=_0x367a11[_0x1b02('0x6')](_0x1b02('0x1'))[_0x1b02('0x2')](),_0x3f5773=String(_0x367a11[_0x1b02('0x1')])),{'startDate':_0xa2deb6,'localizedPeriodName':_0x3f5773};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5604=['add','setTemplate','Suggested\x20by','set','ck-revision-change__label','_model','changeId','isSuggestion','Added\x20by','span','Removed\x20by','type','ck-revision-change','focus'];(function(_0x99d189,_0x560444){const _0x1651dd=function(_0x27fe56){while(--_0x27fe56){_0x99d189['push'](_0x99d189['shift']());}};_0x1651dd(++_0x560444);}(_0x5604,0x8c));const _0x1651=function(_0x99d189,_0x560444){_0x99d189=_0x99d189-0x0;let _0x1651dd=_0x5604[_0x99d189];return _0x1651dd;};import{View as _0x1b457e}from'ckeditor5/src/ui';import{getTranslation as _0x326bb2}from'../../utils/common-translations';export default class G extends _0x1b457e{constructor(_0x5b9063,_0x5ace01){super(_0x5b9063),this[_0x1651('0x5')]=_0x5ace01,this[_0x1651('0x6')]=_0x5ace01['id'];const _0x5edb82=this['bindTemplate'],_0x3e758b=_0x326bb2(_0x5b9063,_0x5ace01['data'][_0x1651('0x7')]?_0x1651('0x2'):_0x1651('0x0')==_0x5ace01[_0x1651('0xb')]?_0x1651('0x8'):_0x1651('0xa'));this[_0x1651('0x3')](_0x1651('0xb'),_0x5ace01[_0x1651('0xb')]),this[_0x1651('0x1')]({'tag':'div','attributes':{'class':['ck-annotation',_0x1651('0xc'),_0x5edb82['to'](_0x1651('0xb'),_0x30ae4c=>'ck-revision-change__'+_0x30ae4c)],'tabindex':-0x1},'children':[{'tag':_0x1651('0x9'),'children':[{'tag':_0x1651('0x9'),'attributes':{'class':[_0x1651('0x4')]},'children':[{'text':_0x3e758b}]},{'text':'\x20'+_0x5ace01['author']['name']}]}]});}[_0x1651('0xd')](){this['element'][_0x1651('0xd')]();}}
23
+ const _0x3bd6=['focus','span','element','data','add','bindTemplate','type','Removed\x20by','ck-revision-change__','name','set','ck-revision-change__label','ck-revision-change','isSuggestion','changeId'];(function(_0x1c5209,_0x3bd6e0){const _0x2fe48e=function(_0x22688b){while(--_0x22688b){_0x1c5209['push'](_0x1c5209['shift']());}};_0x2fe48e(++_0x3bd6e0);}(_0x3bd6,0xdb));const _0x2fe4=function(_0x1c5209,_0x3bd6e0){_0x1c5209=_0x1c5209-0x0;let _0x2fe48e=_0x3bd6[_0x1c5209];return _0x2fe48e;};import{View as _0x240e8a}from'ckeditor5/src/ui';import{getTranslation as _0x385902}from'../../utils/common-translations';export default class G extends _0x240e8a{constructor(_0x4bad85,_0x1cac09){super(_0x4bad85),this['_model']=_0x1cac09,this[_0x2fe4('0x5')]=_0x1cac09['id'];const _0x5200fb=this[_0x2fe4('0xb')],_0x50fa43=_0x385902(_0x4bad85,_0x1cac09[_0x2fe4('0x9')][_0x2fe4('0x4')]?'Suggested\x20by':_0x2fe4('0xa')==_0x1cac09[_0x2fe4('0xc')]?'Added\x20by':_0x2fe4('0xd'));this[_0x2fe4('0x1')](_0x2fe4('0xc'),_0x1cac09[_0x2fe4('0xc')]),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation',_0x2fe4('0x3'),_0x5200fb['to']('type',_0x512f23=>_0x2fe4('0xe')+_0x512f23)],'tabindex':-0x1},'children':[{'tag':_0x2fe4('0x7'),'children':[{'tag':'span','attributes':{'class':[_0x2fe4('0x2')]},'children':[{'text':_0x50fa43}]},{'text':'\x20'+_0x1cac09['author'][_0x2fe4('0x0')]}]}]});}[_0x2fe4('0x6')](){this[_0x2fe4('0x8')][_0x2fe4('0x6')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x228a=['isBackwardNavigationEnabled','currentChangeNumber','div','span','ck-revision-history-ui__changes-navigation__navigation','ck-revision-history-ui__changes-navigation__wrapper','isNavigationMode','ck-revision-history-ui','fire','ck-revision-history-ui__changes-navigation','Show\x20next\x20change','X_OF_Y_CHANGES','Loading...','ck-hidden','ck-revision-history-ui__changes-navigation__label','execute','bind','_statusText','numberOfChanges','_isStatusLabelVisible','set','backward','isEnabled','Show\x20previous\x20change','isReady','isForwardNavigationEnabled','setTemplate','Total'];(function(_0x122b22,_0x228a36){const _0x1714b7=function(_0x50356b){while(--_0x50356b){_0x122b22['push'](_0x122b22['shift']());}};_0x1714b7(++_0x228a36);}(_0x228a,0xb0));const _0x1714=function(_0x122b22,_0x228a36){_0x122b22=_0x122b22-0x0;let _0x1714b7=_0x228a[_0x122b22];return _0x1714b7;};import{View as _0x27bce9,ButtonView as _0x6f6fa8,ToolbarSeparatorView as _0x24c9f7}from'ckeditor5/src/ui';import{getTranslation as _0x5c9e3a}from'../../utils/common-translations';import _0x2e49f2 from'../../../theme/icons/arrow-up.svg';import _0x50dc73 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x27bce9{constructor(_0x2f4e4d){super(_0x2f4e4d);const _0x482741=this['bindTemplate'],_0x3af5b4=new _0x6f6fa8(_0x2f4e4d),_0x49c8cb=new _0x6f6fa8(_0x2f4e4d);this[_0x1714('0xc')](_0x1714('0x1a'),!0x1),this[_0x1714('0xc')](_0x1714('0x10'),!0x1),this[_0x1714('0xc')](_0x1714('0x15'),0x0),this[_0x1714('0xc')](_0x1714('0xa'),0x0),this[_0x1714('0xc')](_0x1714('0x11'),!0x1),this[_0x1714('0xc')]('isBackwardNavigationEnabled',!0x1),this['bind']('_isStatusLabelVisible')['to'](this,_0x1714('0x10'),this,_0x1714('0xa'),(_0x1b1ca3,_0x5e02da)=>_0x1b1ca3&&_0x5e02da>0x0),this[_0x1714('0x8')](_0x1714('0x9'))['to'](this,_0x1714('0x10'),this,_0x1714('0x15'),this,_0x1714('0xa'),this,_0x1714('0x1a'),(_0x40d58b,_0x442d49,_0x13d65d,_0x441aef)=>{if(!_0x40d58b)return _0x5c9e3a(_0x2f4e4d,_0x1714('0x4'));if(!_0x13d65d)return _0x5c9e3a(_0x2f4e4d,'No\x20changes');const _0x21c0d4=_0x5c9e3a(_0x2f4e4d,'NUMBER_OF_CHANGES',_0x13d65d);return _0x441aef?_0x5c9e3a(_0x2f4e4d,_0x1714('0x3'),[_0x442d49+0x1,_0x13d65d]):_0x21c0d4;}),_0x3af5b4[_0x1714('0xc')]({'label':_0x5c9e3a(_0x2f4e4d,_0x1714('0xf')),'tooltip':!0x0,'icon':_0x2e49f2}),_0x49c8cb[_0x1714('0xc')]({'label':_0x5c9e3a(_0x2f4e4d,_0x1714('0x2')),'tooltip':!0x0,'icon':_0x50dc73}),_0x3af5b4[_0x1714('0x8')]('isEnabled')['to'](this,_0x1714('0x14')),_0x49c8cb[_0x1714('0x8')](_0x1714('0xe'))['to'](this,_0x1714('0x11')),_0x3af5b4['on']('execute',()=>this[_0x1714('0x0')]('execute',_0x1714('0xd'))),_0x49c8cb['on'](_0x1714('0x7'),()=>this[_0x1714('0x0')](_0x1714('0x7'),'forward')),this[_0x1714('0x12')]({'tag':_0x1714('0x16'),'attributes':{'class':['ck',_0x1714('0x1b'),_0x1714('0x1')]},'children':[{'tag':_0x1714('0x17'),'attributes':{'class':[_0x1714('0x19')]},'children':[{'tag':_0x1714('0x17'),'attributes':{'class':[_0x1714('0x6'),_0x482741['if'](_0x1714('0xb'),_0x1714('0x5'),_0x5e4020=>!_0x5e4020)]},'children':[{'text':_0x482741['to'](_0x1714('0x1a'),_0x2a615e=>_0x2a615e?_0x5c9e3a(_0x2f4e4d,'EDIT_X_OF_Y_REVISIONS')+':\x20':_0x5c9e3a(_0x2f4e4d,_0x1714('0x13'))+':\x20')}]},{'text':_0x482741['to']('_statusText')}]},new _0x24c9f7(),{'tag':_0x1714('0x16'),'attributes':{'class':[_0x1714('0x18')]},'children':[_0x3af5b4,_0x49c8cb]}]});}}
23
+ const _0x208f=['currentChangeNumber','execute','Loading...','bindTemplate','ck-revision-history-ui','Show\x20next\x20change','numberOfChanges','div','_isStatusLabelVisible','ck-revision-history-ui__changes-navigation__navigation','ck-revision-history-ui__changes-navigation__label','isReady','NUMBER_OF_CHANGES','Show\x20previous\x20change','Total','isForwardNavigationEnabled','isBackwardNavigationEnabled','backward','_statusText','fire','bind','set','forward','span','isNavigationMode','setTemplate','ck-revision-history-ui__changes-navigation__wrapper'];(function(_0x428281,_0x208f2f){const _0x4a9b26=function(_0x1f3301){while(--_0x1f3301){_0x428281['push'](_0x428281['shift']());}};_0x4a9b26(++_0x208f2f);}(_0x208f,0x17b));const _0x4a9b=function(_0x428281,_0x208f2f){_0x428281=_0x428281-0x0;let _0x4a9b26=_0x208f[_0x428281];return _0x4a9b26;};import{View as _0x5befde,ButtonView as _0x1e5561,ToolbarSeparatorView as _0x15e7ed}from'ckeditor5/src/ui';import{getTranslation as _0x2fcdc5}from'../../utils/common-translations';import _0x4e29aa from'../../../theme/icons/arrow-up.svg';import _0x27b2da from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x5befde{constructor(_0x58be4a){super(_0x58be4a);const _0xa87b71=this[_0x4a9b('0x2')],_0x50469d=new _0x1e5561(_0x58be4a),_0x1198fc=new _0x1e5561(_0x58be4a);this['set'](_0x4a9b('0x17'),!0x1),this['set'](_0x4a9b('0xa'),!0x1),this[_0x4a9b('0x14')](_0x4a9b('0x1a'),0x0),this['set'](_0x4a9b('0x5'),0x0),this[_0x4a9b('0x14')](_0x4a9b('0xe'),!0x1),this['set'](_0x4a9b('0xf'),!0x1),this[_0x4a9b('0x13')](_0x4a9b('0x7'))['to'](this,_0x4a9b('0xa'),this,_0x4a9b('0x5'),(_0x236c77,_0x477cd2)=>_0x236c77&&_0x477cd2>0x0),this[_0x4a9b('0x13')]('_statusText')['to'](this,_0x4a9b('0xa'),this,_0x4a9b('0x1a'),this,_0x4a9b('0x5'),this,'isNavigationMode',(_0x3fa218,_0x30c3ea,_0x2d5ddd,_0x1b7a60)=>{if(!_0x3fa218)return _0x2fcdc5(_0x58be4a,_0x4a9b('0x1'));if(!_0x2d5ddd)return _0x2fcdc5(_0x58be4a,'No\x20changes');const _0x4bec35=_0x2fcdc5(_0x58be4a,_0x4a9b('0xb'),_0x2d5ddd);return _0x1b7a60?_0x2fcdc5(_0x58be4a,'X_OF_Y_CHANGES',[_0x30c3ea+0x1,_0x2d5ddd]):_0x4bec35;}),_0x50469d['set']({'label':_0x2fcdc5(_0x58be4a,_0x4a9b('0xc')),'tooltip':!0x0,'icon':_0x4e29aa}),_0x1198fc[_0x4a9b('0x14')]({'label':_0x2fcdc5(_0x58be4a,_0x4a9b('0x4')),'tooltip':!0x0,'icon':_0x27b2da}),_0x50469d[_0x4a9b('0x13')]('isEnabled')['to'](this,_0x4a9b('0xf')),_0x1198fc[_0x4a9b('0x13')]('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x50469d['on'](_0x4a9b('0x0'),()=>this[_0x4a9b('0x12')](_0x4a9b('0x0'),_0x4a9b('0x10'))),_0x1198fc['on'](_0x4a9b('0x0'),()=>this[_0x4a9b('0x12')](_0x4a9b('0x0'),_0x4a9b('0x15'))),this[_0x4a9b('0x18')]({'tag':_0x4a9b('0x6'),'attributes':{'class':['ck',_0x4a9b('0x3'),'ck-revision-history-ui__changes-navigation']},'children':[{'tag':_0x4a9b('0x16'),'attributes':{'class':[_0x4a9b('0x19')]},'children':[{'tag':_0x4a9b('0x16'),'attributes':{'class':[_0x4a9b('0x9'),_0xa87b71['if'](_0x4a9b('0x7'),'ck-hidden',_0x597ace=>!_0x597ace)]},'children':[{'text':_0xa87b71['to'](_0x4a9b('0x17'),_0x3de1e7=>_0x3de1e7?_0x2fcdc5(_0x58be4a,'EDIT_X_OF_Y_REVISIONS')+':\x20':_0x2fcdc5(_0x58be4a,_0x4a9b('0xd'))+':\x20')}]},{'text':_0xa87b71['to'](_0x4a9b('0x11'))}]},new _0x15e7ed(),{'tag':'div','attributes':{'class':[_0x4a9b('0x8')]},'children':[_0x50469d,_0x1198fc]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xa712=['hide','editor','ck-editor__editable__loading-overlay','removeClass','RevisionViewerLoadingOverlay','addClass','show','editing','roots','document','view'];(function(_0x51bb67,_0xa7124){const _0x3d4c90=function(_0x45ccdc){while(--_0x45ccdc){_0x51bb67['push'](_0x51bb67['shift']());}};_0x3d4c90(++_0xa7124);}(_0xa712,0x1bb));const _0x3d4c=function(_0x51bb67,_0xa7124){_0x51bb67=_0x51bb67-0x0;let _0x3d4c90=_0xa712[_0x51bb67];return _0x3d4c90;};import{Plugin as _0x365698}from'ckeditor5/src/core';const ee=_0x3d4c('0xa');import'../../../theme/revisionviewerloadingoverlay.css';export default class oe extends _0x365698{static get['pluginName'](){return _0x3d4c('0x1');}[_0x3d4c('0x3')](){const _0x597858=this[_0x3d4c('0x9')][_0x3d4c('0x4')][_0x3d4c('0x7')];_0x597858['change'](_0x584379=>{for(const _0xb8dfb2 of _0x597858[_0x3d4c('0x6')][_0x3d4c('0x5')])_0x584379[_0x3d4c('0x2')](ee,_0xb8dfb2);});}[_0x3d4c('0x8')](){const _0x4c25bd=this[_0x3d4c('0x9')][_0x3d4c('0x4')]['view'];_0x4c25bd['change'](_0x3671b9=>{for(const _0x19993d of _0x4c25bd['document'][_0x3d4c('0x5')])_0x3671b9[_0x3d4c('0x0')](ee,_0x19993d);});}}
23
+ const _0x2079=['editor','view','roots','document','pluginName','addClass','ck-editor__editable__loading-overlay','RevisionViewerLoadingOverlay','change'];(function(_0x3a6f40,_0x20791c){const _0x13c056=function(_0x32b456){while(--_0x32b456){_0x3a6f40['push'](_0x3a6f40['shift']());}};_0x13c056(++_0x20791c);}(_0x2079,0x159));const _0x13c0=function(_0x3a6f40,_0x20791c){_0x3a6f40=_0x3a6f40-0x0;let _0x13c056=_0x2079[_0x3a6f40];return _0x13c056;};import{Plugin as _0x21677a}from'ckeditor5/src/core';const oe=_0x13c0('0x3');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x21677a{static get[_0x13c0('0x1')](){return _0x13c0('0x4');}['show'](){const _0x12f3c7=this[_0x13c0('0x6')]['editing'][_0x13c0('0x7')];_0x12f3c7[_0x13c0('0x5')](_0x1a6f06=>{for(const _0x5dc34b of _0x12f3c7[_0x13c0('0x0')][_0x13c0('0x8')])_0x1a6f06[_0x13c0('0x2')](oe,_0x5dc34b);});}['hide'](){const _0x2e3770=this[_0x13c0('0x6')]['editing'][_0x13c0('0x7')];_0x2e3770[_0x13c0('0x5')](_0x57e180=>{for(const _0x255d33 of _0x2e3770[_0x13c0('0x0')]['roots'])_0x57e180['removeClass'](oe,_0x255d33);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3ea0=['show','isNavigationMode','Restore\x20this\x20revision','listenTo','change:isReady','hide','get','editor','isEnabled','pluginName','revisionHistory','changesNavigation','componentFactory','closeRevisionViewerCallback','plugins','isForwardNavigationEnabled','showPreviousChange','numberOfChanges','Back\x20to\x20editing','showNextChange','exitToEditing','execute','bind','ck-revision-history-ui__back-to-editing','forward','isBackwardNavigationEnabled','restoreRevision','add','RevisionViewerUI','set'];(function(_0x4ffad1,_0x3ea05e){const _0xf6caa0=function(_0x270f2d){while(--_0x270f2d){_0x4ffad1['push'](_0x4ffad1['shift']());}};_0xf6caa0(++_0x3ea05e);}(_0x3ea0,0x1b4));const _0xf6ca=function(_0x4ffad1,_0x3ea05e){_0x4ffad1=_0x4ffad1-0x0;let _0xf6caa0=_0x3ea0[_0x4ffad1];return _0xf6caa0;};import{Plugin as _0x2b4d7}from'ckeditor5/src/core';import{ButtonView as _0x29c6a2}from'ckeditor5/src/ui';import _0x498f2f from'./changesnavigationview';import _0x58af95 from'./../../revisionviewer';import _0x27c6ef from'./revisionviewerloadingoverlay';import{getTranslation as _0x3095fc}from'../../utils/common-translations';import _0x5475bc from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class w extends _0x2b4d7{static get[_0xf6ca('0x17')](){return _0xf6ca('0xc');}static get['requires'](){return[_0x58af95,_0x27c6ef];}['init'](){const _0x30a478=this[_0xf6ca('0x15')],_0x4a12c4=_0x30a478[_0xf6ca('0x1c')]['get'](_0x58af95),_0x21808e=_0x30a478[_0xf6ca('0x1c')][_0xf6ca('0x14')](_0x27c6ef);_0x30a478['ui'][_0xf6ca('0x1a')]['add'](_0xf6ca('0x4'),_0x5326e9=>{const _0xf5aab2=new _0x29c6a2(_0x5326e9);return _0xf5aab2[_0xf6ca('0xd')]({'label':_0x3095fc(_0x5326e9,_0xf6ca('0x2')),'icon':_0x5475bc,'withText':!0x0,'tooltip':!0x0,'class':_0xf6ca('0x7')}),this[_0xf6ca('0x11')](_0xf5aab2,_0xf6ca('0x5'),()=>{_0x30a478['config']['get'](_0xf6ca('0x18'))[_0xf6ca('0x1b')]();}),_0xf5aab2;}),_0x30a478['ui'][_0xf6ca('0x1a')][_0xf6ca('0xb')](_0xf6ca('0xa'),_0x3937b9=>{const _0x257fe6=new _0x29c6a2(_0x3937b9);return _0x257fe6['set']({'label':_0x3095fc(_0x3937b9,_0xf6ca('0x10')),'withText':!0x0,'tooltip':!0x0}),_0x257fe6[_0xf6ca('0x6')](_0xf6ca('0x16'))['to'](_0x30a478['commands']['get'](_0xf6ca('0xa'))),this[_0xf6ca('0x11')](_0x257fe6,_0xf6ca('0x5'),()=>_0x30a478[_0xf6ca('0x5')](_0xf6ca('0xa'))),_0x257fe6;}),_0x30a478['ui'][_0xf6ca('0x1a')][_0xf6ca('0xb')](_0xf6ca('0x19'),_0x4d8d26=>{const _0x751a5d=new _0x498f2f(_0x4d8d26),_0x3c90da=_0x30a478['commands'][_0xf6ca('0x14')]('showPreviousChange'),_0x51fcf6=_0x30a478['commands']['get']('showNextChange');return _0x751a5d['bind'](_0xf6ca('0x9'))['to'](_0x3c90da,_0xf6ca('0x16')),_0x751a5d[_0xf6ca('0x6')](_0xf6ca('0x1d'))['to'](_0x51fcf6,'isEnabled'),_0x751a5d['bind']('isReady','currentChangeNumber',_0xf6ca('0x1'),_0xf6ca('0xf'))['to'](_0x4a12c4),this['listenTo'](_0x751a5d,_0xf6ca('0x5'),(_0x4e8e18,_0x586cd7)=>{_0x30a478[_0xf6ca('0x5')](_0xf6ca('0x8')===_0x586cd7?_0xf6ca('0x3'):_0xf6ca('0x0'));}),_0x751a5d;}),_0x21808e['show'](),_0x4a12c4['on'](_0xf6ca('0x12'),(_0x5615fe,_0x45c47e,_0x22075e)=>{_0x22075e?_0x21808e[_0xf6ca('0x13')]():_0x21808e[_0xf6ca('0xe')]();});}}
23
+ const _0x325e=['isReady','changesNavigation','requires','showNextChange','show','pluginName','set','hide','editor','config','exitToEditing','change:isReady','componentFactory','listenTo','restoreRevision','add','forward','bind','commands','showPreviousChange','isForwardNavigationEnabled','Back\x20to\x20editing','isEnabled','RevisionViewerUI','numberOfChanges','ck-revision-history-ui__back-to-editing','isBackwardNavigationEnabled','init','plugins','currentChangeNumber','Restore\x20this\x20revision','execute','get'];(function(_0x3e3e57,_0x325e95){const _0x2f194a=function(_0x15bdea){while(--_0x15bdea){_0x3e3e57['push'](_0x3e3e57['shift']());}};_0x2f194a(++_0x325e95);}(_0x325e,0x169));const _0x2f19=function(_0x3e3e57,_0x325e95){_0x3e3e57=_0x3e3e57-0x0;let _0x2f194a=_0x325e[_0x3e3e57];return _0x2f194a;};import{Plugin as _0x1f3935}from'ckeditor5/src/core';import{ButtonView as _0x2be07c}from'ckeditor5/src/ui';import _0xe08e37 from'./changesnavigationview';import _0xe86a11 from'./../../revisionviewer';import _0x19af58 from'./revisionviewerloadingoverlay';import{getTranslation as _0x3b80b5}from'../../utils/common-translations';import _0xd5d423 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class w extends _0x1f3935{static get[_0x2f19('0x7')](){return _0x2f19('0x19');}static get[_0x2f19('0x4')](){return[_0xe86a11,_0x19af58];}[_0x2f19('0x1d')](){const _0x501a67=this[_0x2f19('0xa')],_0x4a33a7=_0x501a67[_0x2f19('0x1e')][_0x2f19('0x1')](_0xe86a11),_0x1da4a5=_0x501a67['plugins']['get'](_0x19af58);_0x501a67['ui'][_0x2f19('0xe')][_0x2f19('0x11')](_0x2f19('0xc'),_0x3d4bf7=>{const _0x548719=new _0x2be07c(_0x3d4bf7);return _0x548719[_0x2f19('0x8')]({'label':_0x3b80b5(_0x3d4bf7,_0x2f19('0x17')),'icon':_0xd5d423,'withText':!0x0,'tooltip':!0x0,'class':_0x2f19('0x1b')}),this[_0x2f19('0xf')](_0x548719,'execute',()=>{_0x501a67[_0x2f19('0xb')]['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x548719;}),_0x501a67['ui']['componentFactory'][_0x2f19('0x11')]('restoreRevision',_0x28ea74=>{const _0x108f70=new _0x2be07c(_0x28ea74);return _0x108f70[_0x2f19('0x8')]({'label':_0x3b80b5(_0x28ea74,_0x2f19('0x20')),'withText':!0x0,'tooltip':!0x0}),_0x108f70['bind'](_0x2f19('0x18'))['to'](_0x501a67[_0x2f19('0x14')]['get'](_0x2f19('0x10'))),this[_0x2f19('0xf')](_0x108f70,_0x2f19('0x0'),()=>_0x501a67['execute'](_0x2f19('0x10'))),_0x108f70;}),_0x501a67['ui'][_0x2f19('0xe')][_0x2f19('0x11')](_0x2f19('0x3'),_0x5dccab=>{const _0x2835c1=new _0xe08e37(_0x5dccab),_0x190d99=_0x501a67[_0x2f19('0x14')][_0x2f19('0x1')](_0x2f19('0x15')),_0x31d3be=_0x501a67[_0x2f19('0x14')]['get'](_0x2f19('0x5'));return _0x2835c1[_0x2f19('0x13')](_0x2f19('0x1c'))['to'](_0x190d99,_0x2f19('0x18')),_0x2835c1[_0x2f19('0x13')](_0x2f19('0x16'))['to'](_0x31d3be,_0x2f19('0x18')),_0x2835c1['bind'](_0x2f19('0x2'),_0x2f19('0x1f'),_0x2f19('0x1a'),'isNavigationMode')['to'](_0x4a33a7),this[_0x2f19('0xf')](_0x2835c1,_0x2f19('0x0'),(_0x5bd7e3,_0x46dff8)=>{_0x501a67[_0x2f19('0x0')](_0x2f19('0x12')===_0x46dff8?_0x2f19('0x5'):_0x2f19('0x15'));}),_0x2835c1;}),_0x1da4a5['show'](),_0x4a33a7['on'](_0x2f19('0xd'),(_0x10afc9,_0x3322ff,_0x66adbc)=>{_0x66adbc?_0x1da4a5[_0x2f19('0x9')]():_0x1da4a5[_0x2f19('0x6')]();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x1e65ad,_0x67d919,_0x21b20a){const t=_0x1e65ad['t'];switch(_0x67d919){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'},_0x21b20a);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x21b20a);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 _0x67d919;}}
23
+ export function getTranslation(_0x178336,_0x2f69d7,_0x2c5014){const t=_0x178336['t'];switch(_0x2f69d7){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'},_0x2c5014);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2c5014);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 _0x2f69d7;}}