@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231005.0 → 0.0.0-nightly-20231007.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 _0x5be8=['add','render','config','isReadOnly','children','submit','isOpen','Save\x20current\x20revision','Open\x20revision\x20history','remove','editing','revisionHistory','reset','revisionName','get','execute','bind','saveRevision','focus','view','init','addMany','pluginName','cancel','RevisionTracker','isEnabled','isReady','plugins','change:isOpen','buttonView','items','set'];(function(_0x242e23,_0x5be830){const _0x3ec8f6=function(_0xb1754f){while(--_0xb1754f){_0x242e23['push'](_0x242e23['shift']());}};_0x3ec8f6(++_0x5be830);}(_0x5be8,0xfc));const _0x3ec8=function(_0x242e23,_0x5be830){_0x242e23=_0x242e23-0x0;let _0x3ec8f6=_0x5be8[_0x242e23];return _0x3ec8f6;};import{Plugin as _0x6ff5e5,icons as _0x21ef75}from'ckeditor5/src/core';import{ListView as _0x52aae3,ListItemView as _0x5c647f,ButtonView as _0x3d3ec1,createDropdown as _0x473bf3}from'ckeditor5/src/ui';import _0x54b57d from'../../revisiontracker';import _0x5b1d65 from'./revisionhistorysaverevisionformview';import{getTranslation as _0x5e3151}from'../../utils/common-translations';export default class u extends _0x6ff5e5{static get[_0x3ec8('0x1a')](){return'RevisionHistoryUI';}static get['requires'](){return[_0x54b57d];}[_0x3ec8('0x18')](){const _0x188897=this['editor'],_0x1d0050=_0x188897[_0x3ec8('0x1f')]['get'](_0x3ec8('0x1c'));_0x188897['ui']['componentFactory'][_0x3ec8('0x4')]('revisionHistory',_0x2605dc=>{const _0xf55153=_0x473bf3(_0x2605dc),_0xd5bdd0=_0xf55153['panelView'][_0x3ec8('0x8')],_0x4baccf=new _0x52aae3(_0x2605dc),_0x13d20c=new _0x5c647f(_0x2605dc),_0x28fb33=new _0x3d3ec1(_0x2605dc),_0x3ffdc4=new _0x5c647f(_0x2605dc),_0x39f1bf=new _0x3d3ec1(_0x2605dc),_0x375e2a=new _0x5b1d65(_0x2605dc);function _0xb08095(){_0xd5bdd0['length']&&_0xd5bdd0[_0x3ec8('0xd')](0x0),_0xd5bdd0[_0x3ec8('0x4')](_0x4baccf);}function _0x25ff1f(){_0xf55153[_0x3ec8('0xa')]=!0x1,_0x188897[_0x3ec8('0xe')][_0x3ec8('0x17')][_0x3ec8('0x16')]();}return _0xf55153[_0x3ec8('0x14')](_0x3ec8('0x1d'))['to'](_0x1d0050,_0x3ec8('0x1e'),_0x1d0050,'isEnabled',_0x188897,_0x3ec8('0x7'),(_0x4819ea,_0x28abab,_0x64e3a3)=>_0x4819ea&&_0x28abab&&!_0x64e3a3),_0xf55153[_0x3ec8('0x1')]['set']({'icon':_0x21ef75['history'],'label':_0x5e3151(_0x2605dc,'Revision\x20history'),'tooltip':!0x0}),_0x28fb33[_0x3ec8('0x3')]({'label':_0x5e3151(_0x2605dc,_0x3ec8('0xb')),'withText':!0x0}),_0x28fb33[_0x3ec8('0x14')](_0x3ec8('0x1d'))['to'](_0x1d0050,_0x3ec8('0x1e'),_0x1d0050,_0x3ec8('0x1d'),_0x188897,_0x3ec8('0x7'),(_0x971e5d,_0x21f45c,_0x1a62cf)=>_0x971e5d&&_0x21f45c&&!_0x1a62cf),_0x28fb33['on']('execute',()=>function(){_0xd5bdd0['length']&&_0xd5bdd0[_0x3ec8('0xd')](0x0),(_0x375e2a[_0x3ec8('0x10')](),_0xd5bdd0[_0x3ec8('0x4')](_0x375e2a),_0x375e2a[_0x3ec8('0x16')]());}()),_0x39f1bf['set']({'label':_0x5e3151(_0x2605dc,_0x3ec8('0xc')),'withText':!0x0}),_0x39f1bf['bind'](_0x3ec8('0x1d'))['to'](_0x1d0050,'isReady',_0x188897,'isReadOnly',(_0xe89e53,_0x4eab02)=>_0xe89e53&&!_0x4eab02),_0x39f1bf['on'](_0x3ec8('0x13'),()=>{_0x188897[_0x3ec8('0x6')][_0x3ec8('0x12')](_0x3ec8('0xf'))['showRevisionViewerCallback'](),_0x25ff1f();}),_0x13d20c[_0x3ec8('0x8')]['add'](_0x28fb33),_0x3ffdc4[_0x3ec8('0x8')][_0x3ec8('0x4')](_0x39f1bf),_0x4baccf[_0x3ec8('0x2')][_0x3ec8('0x19')]([_0x13d20c,_0x3ffdc4]),_0xf55153['on'](_0x3ec8('0x0'),()=>_0xb08095()),_0x375e2a['saveButtonView'][_0x3ec8('0x14')](_0x3ec8('0x1d'))['to'](_0x1d0050,_0x3ec8('0x1e'),_0x1d0050,'isEnabled',_0x188897,'isReadOnly',(_0x2c44e5,_0x463cb9,_0x344045)=>_0x2c44e5&&_0x463cb9&&!_0x344045),_0x375e2a['on'](_0x3ec8('0x9'),()=>(_0x188897[_0x3ec8('0x1f')][_0x3ec8('0x12')](_0x54b57d)[_0x3ec8('0x15')]({'name':_0x375e2a[_0x3ec8('0x11')]}),void _0x25ff1f())),_0x375e2a['on'](_0x3ec8('0x1b'),()=>_0xb08095()),_0x375e2a[_0x3ec8('0x5')](),_0xb08095(),_0xf55153;});}}
23
+ const _0x3fb3=['editing','Open\x20revision\x20history','buttonView','saveButtonView','bind','submit','revisionName','get','requires','reset','init','componentFactory','add','panelView','focus','render','execute','remove','config','change:isOpen','revisionHistory','children','isEnabled','addMany','isReadOnly','isReady','history','items','cancel','plugins','length','set','showRevisionViewerCallback'];(function(_0x589c32,_0x3fb32c){const _0x84af2f=function(_0x4a4726){while(--_0x4a4726){_0x589c32['push'](_0x589c32['shift']());}};_0x84af2f(++_0x3fb32c);}(_0x3fb3,0x1d8));const _0x84af=function(_0x589c32,_0x3fb32c){_0x589c32=_0x589c32-0x0;let _0x84af2f=_0x3fb3[_0x589c32];return _0x84af2f;};import{Plugin as _0x341366,icons as _0xc5956c}from'ckeditor5/src/core';import{ListView as _0x226fad,ListItemView as _0x25785e,ButtonView as _0x1bddf4,createDropdown as _0x52d2a1}from'ckeditor5/src/ui';import _0x29f404 from'../../revisiontracker';import _0x44459f from'./revisionhistorysaverevisionformview';import{getTranslation as _0x306952}from'../../utils/common-translations';export default class u extends _0x341366{static get['pluginName'](){return'RevisionHistoryUI';}static get[_0x84af('0x1f')](){return[_0x29f404];}[_0x84af('0x0')](){const _0x1210d3=this['editor'],_0x1bef55=_0x1210d3[_0x84af('0x13')][_0x84af('0x1e')]('RevisionTracker');_0x1210d3['ui'][_0x84af('0x1')]['add']('revisionHistory',_0x52f22d=>{const _0x22bae3=_0x52d2a1(_0x52f22d),_0x5ab64c=_0x22bae3[_0x84af('0x3')][_0x84af('0xb')],_0xfb1ba7=new _0x226fad(_0x52f22d),_0x491eb9=new _0x25785e(_0x52f22d),_0x4fef01=new _0x1bddf4(_0x52f22d),_0x1976dd=new _0x25785e(_0x52f22d),_0x477796=new _0x1bddf4(_0x52f22d),_0x58fb76=new _0x44459f(_0x52f22d);function _0x3e14dc(){_0x5ab64c[_0x84af('0x14')]&&_0x5ab64c[_0x84af('0x7')](0x0),_0x5ab64c[_0x84af('0x2')](_0xfb1ba7);}function _0x41af1d(){_0x22bae3['isOpen']=!0x1,_0x1210d3[_0x84af('0x17')]['view'][_0x84af('0x4')]();}return _0x22bae3[_0x84af('0x1b')](_0x84af('0xc'))['to'](_0x1bef55,_0x84af('0xf'),_0x1bef55,_0x84af('0xc'),_0x1210d3,_0x84af('0xe'),(_0x21ab63,_0x3973ad,_0x49f792)=>_0x21ab63&&_0x3973ad&&!_0x49f792),_0x22bae3[_0x84af('0x19')]['set']({'icon':_0xc5956c[_0x84af('0x10')],'label':_0x306952(_0x52f22d,'Revision\x20history'),'tooltip':!0x0}),_0x4fef01[_0x84af('0x15')]({'label':_0x306952(_0x52f22d,'Save\x20current\x20revision'),'withText':!0x0}),_0x4fef01[_0x84af('0x1b')](_0x84af('0xc'))['to'](_0x1bef55,_0x84af('0xf'),_0x1bef55,_0x84af('0xc'),_0x1210d3,_0x84af('0xe'),(_0x329487,_0x3b4389,_0x4b8c86)=>_0x329487&&_0x3b4389&&!_0x4b8c86),_0x4fef01['on'](_0x84af('0x6'),()=>function(){_0x5ab64c[_0x84af('0x14')]&&_0x5ab64c[_0x84af('0x7')](0x0),(_0x58fb76[_0x84af('0x20')](),_0x5ab64c['add'](_0x58fb76),_0x58fb76[_0x84af('0x4')]());}()),_0x477796[_0x84af('0x15')]({'label':_0x306952(_0x52f22d,_0x84af('0x18')),'withText':!0x0}),_0x477796[_0x84af('0x1b')]('isEnabled')['to'](_0x1bef55,_0x84af('0xf'),_0x1210d3,_0x84af('0xe'),(_0xecea9b,_0x41b2d9)=>_0xecea9b&&!_0x41b2d9),_0x477796['on'](_0x84af('0x6'),()=>{_0x1210d3[_0x84af('0x8')][_0x84af('0x1e')](_0x84af('0xa'))[_0x84af('0x16')](),_0x41af1d();}),_0x491eb9[_0x84af('0xb')][_0x84af('0x2')](_0x4fef01),_0x1976dd['children'][_0x84af('0x2')](_0x477796),_0xfb1ba7[_0x84af('0x11')][_0x84af('0xd')]([_0x491eb9,_0x1976dd]),_0x22bae3['on'](_0x84af('0x9'),()=>_0x3e14dc()),_0x58fb76[_0x84af('0x1a')]['bind'](_0x84af('0xc'))['to'](_0x1bef55,'isReady',_0x1bef55,'isEnabled',_0x1210d3,_0x84af('0xe'),(_0x176585,_0x399af6,_0x3497bb)=>_0x176585&&_0x399af6&&!_0x3497bb),_0x58fb76['on'](_0x84af('0x1c'),()=>(_0x1210d3[_0x84af('0x13')][_0x84af('0x1e')](_0x29f404)['saveRevision']({'name':_0x58fb76[_0x84af('0x1d')]}),void _0x41af1d())),_0x58fb76['on'](_0x84af('0x12'),()=>_0x3e14dc()),_0x58fb76[_0x84af('0x5')](),_0x3e14dc(),_0x22bae3;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x52e5=['_sidebarView','get','_revisionsRepository','_handleRevisionSelected','revisionHistory.revisionActions','length','editor','selectRevision','highlightRevisions','action','add','restoreRevisionCallback','getRevisionsInDiff','newRevisionId','name','render','diff','revisionSetName','destroy','getRevision','_handleEditorDataReady','isSelected','isEnabled','getLaterVisibleRevision','compare','revisionSelected','getIndex','repository','config','_revisionViewer','listenTo','defaultRevisionActions','select','restoreRevision','element','isVisible','availableRevisionActions','_revisions','pluginName','isReady','init','timePeriodViews','change:diff','data','revisionHistory.viewerSidebarContainer','ready','revisionViews','bind','setName','assign','Compare\x20against\x20selected','_handleRevisionSetName','getEarlierVisibleRevision','_handleDiffChange'];(function(_0x2c85de,_0x52e528){const _0x544d1=function(_0xe2c6fa){while(--_0xe2c6fa){_0x2c85de['push'](_0x2c85de['shift']());}};_0x544d1(++_0x52e528);}(_0x52e5,0x11f));const _0x544d=function(_0x2c85de,_0x52e528){_0x2c85de=_0x2c85de-0x0;let _0x544d1=_0x52e5[_0x2c85de];return _0x544d1;};import{Plugin as _0x47b0a6}from'ckeditor5/src/core';import _0x1c2dc8 from'./revisionssidebarview';import _0x491908 from'../../revisionviewer';export default class w extends _0x47b0a6{static get[_0x544d('0x15')](){return'RevisionsSidebar';}static get['requires'](){return[_0x491908];}constructor(_0x12feb5){super(_0x12feb5),this[_0x544d('0xc')]=_0x12feb5['plugins']['get'](_0x491908),this['_revisionsRepository']=this[_0x544d('0xc')][_0x544d('0xa')],this['_sidebarView']=null;}[_0x544d('0x17')](){const _0x5929a7=this['_revisionsRepository'][_0x544d('0x14')],_0x25aa27=this['_createRevisionActions'](),_0x2feb6a=this[_0x544d('0x2b')]['config'][_0x544d('0x26')](_0x544d('0x1b'));this[_0x544d('0x25')]=new _0x1c2dc8(this[_0x544d('0x2b')]['locale'],_0x5929a7,_0x25aa27),this[_0x544d('0x25')]['on'](_0x544d('0x8'),this[_0x544d('0x28')][_0x544d('0x1e')](this)),this[_0x544d('0x25')]['on'](_0x544d('0x0'),this[_0x544d('0x22')][_0x544d('0x1e')](this)),this['_sidebarView'][_0x544d('0x1e')]('isEnabled')['to'](this[_0x544d('0xc')]),this[_0x544d('0x25')][_0x544d('0x18')]['on'](_0x544d('0x2f'),(_0x13a44c,_0x107340)=>{_0x107340[_0x544d('0x1d')]['on'](_0x544d('0x2f'),(_0x626659,_0x947b8)=>{_0x947b8[_0x544d('0x1e')](_0x544d('0x5'),_0x544d('0x16'))['to'](this['_revisionViewer']);});}),this[_0x544d('0x25')][_0x544d('0x34')](),this[_0x544d('0xd')](this[_0x544d('0x2b')][_0x544d('0x1a')],_0x544d('0x1c'),this[_0x544d('0x3')][_0x544d('0x1e')](this)),this[_0x544d('0xd')](this[_0x544d('0xc')],_0x544d('0x19'),this['_handleDiffChange'][_0x544d('0x1e')](this)),_0x2feb6a['appendChild'](this['_sidebarView'][_0x544d('0x11')]);}[_0x544d('0x1')](){this[_0x544d('0x25')]['element']['remove'](),this[_0x544d('0x25')][_0x544d('0x1')]();}[_0x544d('0x3')](){const _0x57f42b=this[_0x544d('0x27')][_0x544d('0x2')](0x0);if(_0x57f42b){const _0x5dc7f9=this[_0x544d('0x27')][_0x544d('0x23')](_0x57f42b['id']);this['_revisionViewer'][_0x544d('0x7')](_0x57f42b,_0x5dc7f9);}}[_0x544d('0x28')](_0x481d1e,_0x302a8b){const _0x5a419d=this['_revisionsRepository'][_0x544d('0x2')](_0x302a8b['id']),_0x2a1ca0=this[_0x544d('0x27')][_0x544d('0x23')](_0x5a419d['id']);this[_0x544d('0xc')]['compare'](_0x5a419d,_0x2a1ca0);}[_0x544d('0x22')](_0x1f8110,_0x3635a4){this[_0x544d('0x27')][_0x544d('0x2')](_0x3635a4['id'])[_0x544d('0x1f')](_0x3635a4[_0x544d('0x33')]);}[_0x544d('0x24')](_0x3ac8e8,_0x408f25,_0x48f30a){const _0x5cd4d3=this[_0x544d('0x27')][_0x544d('0x31')](_0x48f30a);_0x5cd4d3[_0x544d('0x2a')]>0x2?(this[_0x544d('0x25')]['highlightRevisions'](_0x5cd4d3),this[_0x544d('0x25')][_0x544d('0x2c')](null)):(this[_0x544d('0x25')][_0x544d('0x2d')]([]),this['_sidebarView']['selectRevision'](_0x5cd4d3[0x0]));}['_createRevisionActions'](){const _0x4058fa=this[_0x544d('0x2b')],_0x1c2f1f=w[_0x544d('0x13')],_0x19acd9=_0x4058fa[_0x544d('0xb')][_0x544d('0x26')](_0x544d('0x29'))||w[_0x544d('0xe')];if(_0x19acd9['length'])return _0x19acd9['map'](_0x501e7b=>{const _0x42e6be='string'==typeof _0x501e7b?Object[_0x544d('0x20')]({},_0x1c2f1f[_0x501e7b]):_0x501e7b;return _0x42e6be[_0x544d('0x2e')]=_0x42e6be['action'][_0x544d('0x1e')](this,_0x4058fa),_0x42e6be['isVisible']&&(_0x42e6be[_0x544d('0x12')]=_0x42e6be[_0x544d('0x12')][_0x544d('0x1e')](this,_0x4058fa)),_0x42e6be;});}}w[_0x544d('0x13')]={'compareAgainstSelected':{'name':_0x544d('0x21'),'action':({plugins:_0x54b4c8},_0x1f17a9)=>{const _0x46a323=_0x54b4c8['get'](_0x491908),_0x4a16ff=_0x46a323[_0x544d('0xa')];let _0x2eb62a=_0x46a323['diff'][_0x544d('0x32')],_0x5d2146=_0x1f17a9['id'];_0x4a16ff['getIndex'](_0x2eb62a)>_0x4a16ff[_0x544d('0x9')](_0x5d2146)&&([_0x2eb62a,_0x5d2146]=[_0x5d2146,_0x2eb62a]),_0x46a323[_0x544d('0x7')](_0x2eb62a,_0x5d2146);},'isVisible':({plugins:_0x2ff127},_0x283f6b)=>{const _0x12cfab=_0x2ff127[_0x544d('0x26')](_0x491908);return!(_0x12cfab['repository'][_0x544d('0x31')](_0x12cfab[_0x544d('0x35')])['length']>0x2)&&!_0x283f6b[_0x544d('0x4')];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x4c53b0,{id:_0x1cb133})=>{_0x4c53b0['config'][_0x544d('0x26')]('revisionHistory')[_0x544d('0x30')](_0x1cb133);},'isVisible':({plugins:_0x222289},_0x9f55cc)=>!!_0x222289['get'](_0x491908)[_0x544d('0xa')][_0x544d('0x6')](_0x9f55cc['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x3bbafd},{id:_0x3e5d64,revisionNameView:_0x1c5be1})=>{const _0x547a38=_0x3bbafd[_0x544d('0x26')](_0x491908),_0x370965=_0x547a38[_0x544d('0xa')][_0x544d('0x23')](_0x3e5d64);_0x547a38[_0x544d('0x7')](_0x3e5d64,_0x370965),_0x1c5be1['focus'](),_0x1c5be1['fieldView'][_0x544d('0xf')]();}}},w[_0x544d('0xe')]=['compareAgainstSelected',_0x544d('0x10'),'nameRevision'];
23
+ const _0x4909=['diff','ready','locale','focus','_revisionViewer','getRevision','action','revisionSelected','bind','revisionSetName','newRevisionId','revisionHistory','Compare\x20against\x20selected','_sidebarView','_handleRevisionSelected','config','getRevisionsInDiff','compare','requires','getIndex','element','_createRevisionActions','getEarlierVisibleRevision','init','isEnabled','revisionViews','nameRevision','Name\x20this\x20revision','_handleDiffChange','getLaterVisibleRevision','listenTo','highlightRevisions','isVisible','restoreRevisionCallback','restoreRevision','get','repository','fieldView','length','add','defaultRevisionActions','Restore\x20this\x20revision','_handleRevisionSetName','RevisionsSidebar','isSelected','appendChild','_handleEditorDataReady','data','plugins','_revisions','selectRevision','isReady','editor','availableRevisionActions','timePeriodViews','pluginName','change:diff','render','_revisionsRepository','revisionHistory.revisionActions','revisionHistory.viewerSidebarContainer'];(function(_0x1a80a7,_0x49092f){const _0x36bda2=function(_0x286d37){while(--_0x286d37){_0x1a80a7['push'](_0x1a80a7['shift']());}};_0x36bda2(++_0x49092f);}(_0x4909,0xd3));const _0x36bd=function(_0x1a80a7,_0x49092f){_0x1a80a7=_0x1a80a7-0x0;let _0x36bda2=_0x4909[_0x1a80a7];return _0x36bda2;};import{Plugin as _0x31d319}from'ckeditor5/src/core';import _0x5a04e6 from'./revisionssidebarview';import _0x5d6f00 from'../../revisionviewer';export default class w extends _0x31d319{static get[_0x36bd('0x1b')](){return _0x36bd('0xf');}static get[_0x36bd('0x33')](){return[_0x5d6f00];}constructor(_0xe8968a){super(_0xe8968a),this[_0x36bd('0x25')]=_0xe8968a[_0x36bd('0x14')][_0x36bd('0x7')](_0x5d6f00),this[_0x36bd('0x1e')]=this[_0x36bd('0x25')]['repository'],this[_0x36bd('0x2e')]=null;}[_0x36bd('0x38')](){const _0x11533b=this[_0x36bd('0x1e')][_0x36bd('0x15')],_0x412a0d=this[_0x36bd('0x36')](),_0x457aec=this[_0x36bd('0x18')][_0x36bd('0x30')][_0x36bd('0x7')](_0x36bd('0x20'));this[_0x36bd('0x2e')]=new _0x5a04e6(this[_0x36bd('0x18')][_0x36bd('0x23')],_0x11533b,_0x412a0d),this[_0x36bd('0x2e')]['on'](_0x36bd('0x28'),this[_0x36bd('0x2f')][_0x36bd('0x29')](this)),this[_0x36bd('0x2e')]['on'](_0x36bd('0x2a'),this[_0x36bd('0xe')][_0x36bd('0x29')](this)),this['_sidebarView']['bind'](_0x36bd('0x39'))['to'](this[_0x36bd('0x25')]),this[_0x36bd('0x2e')][_0x36bd('0x1a')]['on'](_0x36bd('0xb'),(_0x32c866,_0x5ee62e)=>{_0x5ee62e[_0x36bd('0x3a')]['on']('add',(_0x58a897,_0x2819e7)=>{_0x2819e7[_0x36bd('0x29')](_0x36bd('0x39'),_0x36bd('0x17'))['to'](this[_0x36bd('0x25')]);});}),this[_0x36bd('0x2e')][_0x36bd('0x1d')](),this[_0x36bd('0x2')](this['editor'][_0x36bd('0x13')],_0x36bd('0x22'),this[_0x36bd('0x12')][_0x36bd('0x29')](this)),this['listenTo'](this[_0x36bd('0x25')],_0x36bd('0x1c'),this[_0x36bd('0x0')][_0x36bd('0x29')](this)),_0x457aec[_0x36bd('0x11')](this[_0x36bd('0x2e')]['element']);}['destroy'](){this[_0x36bd('0x2e')][_0x36bd('0x35')]['remove'](),this[_0x36bd('0x2e')]['destroy']();}[_0x36bd('0x12')](){const _0x128126=this['_revisionsRepository'][_0x36bd('0x26')](0x0);if(_0x128126){const _0x41639a=this[_0x36bd('0x1e')][_0x36bd('0x37')](_0x128126['id']);this[_0x36bd('0x25')]['compare'](_0x128126,_0x41639a);}}[_0x36bd('0x2f')](_0x339c5d,_0x350451){const _0x4bae78=this[_0x36bd('0x1e')][_0x36bd('0x26')](_0x350451['id']),_0x3cb38f=this[_0x36bd('0x1e')][_0x36bd('0x37')](_0x4bae78['id']);this[_0x36bd('0x25')][_0x36bd('0x32')](_0x4bae78,_0x3cb38f);}[_0x36bd('0xe')](_0x3c600d,_0x57b145){this['_revisionsRepository'][_0x36bd('0x26')](_0x57b145['id'])['setName'](_0x57b145['name']);}[_0x36bd('0x0')](_0xb36e4b,_0x3b0642,_0x4eb09a){const _0x24151f=this[_0x36bd('0x1e')][_0x36bd('0x31')](_0x4eb09a);_0x24151f['length']>0x2?(this['_sidebarView'][_0x36bd('0x3')](_0x24151f),this[_0x36bd('0x2e')][_0x36bd('0x16')](null)):(this[_0x36bd('0x2e')][_0x36bd('0x3')]([]),this[_0x36bd('0x2e')][_0x36bd('0x16')](_0x24151f[0x0]));}[_0x36bd('0x36')](){const _0x48dd7a=this[_0x36bd('0x18')],_0x343eb1=w[_0x36bd('0x19')],_0x22d3ba=_0x48dd7a['config']['get'](_0x36bd('0x1f'))||w['defaultRevisionActions'];if(_0x22d3ba[_0x36bd('0xa')])return _0x22d3ba['map'](_0x3ff501=>{const _0x238cfb='string'==typeof _0x3ff501?Object['assign']({},_0x343eb1[_0x3ff501]):_0x3ff501;return _0x238cfb[_0x36bd('0x27')]=_0x238cfb[_0x36bd('0x27')][_0x36bd('0x29')](this,_0x48dd7a),_0x238cfb[_0x36bd('0x4')]&&(_0x238cfb[_0x36bd('0x4')]=_0x238cfb[_0x36bd('0x4')][_0x36bd('0x29')](this,_0x48dd7a)),_0x238cfb;});}}w[_0x36bd('0x19')]={'compareAgainstSelected':{'name':_0x36bd('0x2d'),'action':({plugins:_0x20613b},_0x1d6138)=>{const _0x5625ac=_0x20613b['get'](_0x5d6f00),_0x105d9d=_0x5625ac[_0x36bd('0x8')];let _0x481b52=_0x5625ac['diff'][_0x36bd('0x2b')],_0xb867a0=_0x1d6138['id'];_0x105d9d[_0x36bd('0x34')](_0x481b52)>_0x105d9d[_0x36bd('0x34')](_0xb867a0)&&([_0x481b52,_0xb867a0]=[_0xb867a0,_0x481b52]),_0x5625ac['compare'](_0x481b52,_0xb867a0);},'isVisible':({plugins:_0xba16ed},_0x133161)=>{const _0x449fa6=_0xba16ed[_0x36bd('0x7')](_0x5d6f00);return!(_0x449fa6[_0x36bd('0x8')][_0x36bd('0x31')](_0x449fa6[_0x36bd('0x21')])[_0x36bd('0xa')]>0x2)&&!_0x133161[_0x36bd('0x10')];}},'restoreRevision':{'name':_0x36bd('0xd'),'action':(_0x773446,{id:_0x20bbdf})=>{_0x773446[_0x36bd('0x30')][_0x36bd('0x7')](_0x36bd('0x2c'))[_0x36bd('0x5')](_0x20bbdf);},'isVisible':({plugins:_0x3eb6af},_0x4b359b)=>!!_0x3eb6af[_0x36bd('0x7')](_0x5d6f00)['repository'][_0x36bd('0x1')](_0x4b359b['id'])},'nameRevision':{'name':_0x36bd('0x3c'),'action':({plugins:_0xe03ad4},{id:_0x2235a3,revisionNameView:_0x4211da})=>{const _0x401785=_0xe03ad4[_0x36bd('0x7')](_0x5d6f00),_0x1c02b9=_0x401785[_0x36bd('0x8')][_0x36bd('0x37')](_0x2235a3);_0x401785[_0x36bd('0x32')](_0x2235a3,_0x1c02b9),_0x4211da[_0x36bd('0x24')](),_0x4211da[_0x36bd('0x9')]['select']();}}},w[_0x36bd('0xc')]=['compareAgainstSelected',_0x36bd('0x6'),_0x36bd('0x3b')];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2f1d=['span','ck-reset_all','content','div','ck-revision-history-sidebar__header__label','Revision\x20history'];(function(_0x24e24d,_0x2f1d82){const _0xfef0e6=function(_0x5008c5){while(--_0x5008c5){_0x24e24d['push'](_0x24e24d['shift']());}};_0xfef0e6(++_0x2f1d82);}(_0x2f1d,0xff));const _0xfef0=function(_0x24e24d,_0x2f1d82){_0x24e24d=_0x24e24d-0x0;let _0xfef0e6=_0x2f1d[_0x24e24d];return _0xfef0e6;};import{View as _0x56a614,IconView as _0x3c2d11}from'ckeditor5/src/ui';import{getTranslation as _0x2bb88c}from'../../utils/common-translations';import{icons as _0x9998be}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rr extends _0x56a614{constructor(_0x579337){super(_0x579337);const _0x2fac66=new _0x3c2d11();_0x2fac66[_0xfef0('0x5')]=_0x9998be['history'],this['setTemplate']({'tag':_0xfef0('0x0'),'attributes':{'class':['ck',_0xfef0('0x4'),'ck-revision-history-sidebar__header']},'children':[_0x2fac66,{'tag':_0xfef0('0x3'),'attributes':{'class':['ck',_0xfef0('0x1')]},'children':[_0x2bb88c(_0x579337,_0xfef0('0x2'))]}]});}}
23
+ const _0x4f27=['Revision\x20history','ck-reset_all','setTemplate','span','ck-revision-history-sidebar__header'];(function(_0x5cca4f,_0x4f2796){const _0x3d2f43=function(_0x39f804){while(--_0x39f804){_0x5cca4f['push'](_0x5cca4f['shift']());}};_0x3d2f43(++_0x4f2796);}(_0x4f27,0x1ea));const _0x3d2f=function(_0x5cca4f,_0x4f2796){_0x5cca4f=_0x5cca4f-0x0;let _0x3d2f43=_0x4f27[_0x5cca4f];return _0x3d2f43;};import{View as _0x402dd1,IconView as _0xa6a6a6}from'ckeditor5/src/ui';import{getTranslation as _0x2a5ed1}from'../../utils/common-translations';import{icons as _0x4be7fd}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rr extends _0x402dd1{constructor(_0x40be00){super(_0x40be00);const _0x53f5a0=new _0xa6a6a6();_0x53f5a0['content']=_0x4be7fd['history'],this[_0x3d2f('0x2')]({'tag':'div','attributes':{'class':['ck',_0x3d2f('0x1'),_0x3d2f('0x4')]},'children':[_0x53f5a0,{'tag':_0x3d2f('0x3'),'attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[_0x2a5ed1(_0x40be00,_0x3d2f('0x0'))]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2c34=['revisionViews','startDate','_revisionActions','remove','ck-revision-history-sidebar__time-period','div','locale','span','localizedPeriodName','ck-revision-history-sidebar__time-period__revisions','createCollection','addRevision','setName','uiLanguage','select','find','removeRevision','setTemplate'];(function(_0x2a501d,_0x2c3413){const _0x8e48ec=function(_0xa2c30c){while(--_0xa2c30c){_0x2a501d['push'](_0x2a501d['shift']());}};_0x8e48ec(++_0x2c3413);}(_0x2c34,0x115));const _0x8e48=function(_0x2a501d,_0x2c3413){_0x2a501d=_0x2a501d-0x0;let _0x8e48ec=_0x2c34[_0x2a501d];return _0x8e48ec;};import{View as _0x1fdc6c}from'ckeditor5/src/ui';import _0x245a13 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x5e2717}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x1fdc6c{constructor(_0x512992,_0x40c5e6,_0x2cc098){super(_0x512992);const _0x55ff73=_0x5e2717(_0x40c5e6,this[_0x8e48('0x11')][_0x8e48('0x6')])[_0x8e48('0x1')];this[_0x8e48('0xc')]=_0x40c5e6,this[_0x8e48('0xb')]=this[_0x8e48('0x3')](),this['_revisionActions']=_0x2cc098,this[_0x8e48('0xb')]['delegate'](_0x8e48('0x7'))['to'](this),this[_0x8e48('0xb')]['delegate'](_0x8e48('0x5'))['to'](this),this[_0x8e48('0xa')]({'tag':'div','attributes':{'class':['ck',_0x8e48('0xf')]},'children':[{'tag':_0x8e48('0x0'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x55ff73}]},{'tag':_0x8e48('0x10'),'attributes':{'class':['ck',_0x8e48('0x2')]},'children':this['revisionViews']}]});}[_0x8e48('0x4')](_0x2bdff5){const _0x4f7257=new _0x245a13(this[_0x8e48('0x11')],_0x2bdff5,this[_0x8e48('0xd')]);this[_0x8e48('0xb')]['add'](_0x4f7257);}[_0x8e48('0x9')](_0x532f37){const _0x5c6b6c=this[_0x8e48('0xb')][_0x8e48('0x8')](_0x38308b=>_0x38308b['id']===_0x532f37['id']);this[_0x8e48('0xb')][_0x8e48('0xe')](_0x5c6b6c);}}
23
+ const _0x1321=['ck-revision-history-sidebar__time-period__revisions','setTemplate','createCollection','span','remove','select','locale','setName','delegate','add','_revisionActions','localizedPeriodName','revisionViews','ck-revision-history-sidebar__time-period__label','ck-revision-history-sidebar__time-period'];(function(_0x354f82,_0x132100){const _0x3bb417=function(_0x385108){while(--_0x385108){_0x354f82['push'](_0x354f82['shift']());}};_0x3bb417(++_0x132100);}(_0x1321,0x71));const _0x3bb4=function(_0x354f82,_0x132100){_0x354f82=_0x354f82-0x0;let _0x3bb417=_0x1321[_0x354f82];return _0x3bb417;};import{View as _0x4519f1}from'ckeditor5/src/ui';import _0x32e182 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x20232c}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x4519f1{constructor(_0x548bd1,_0x488c5b,_0x27e6e5){super(_0x548bd1);const _0x2f3037=_0x20232c(_0x488c5b,this[_0x3bb4('0xd')]['uiLanguage'])[_0x3bb4('0x3')];this['startDate']=_0x488c5b,this[_0x3bb4('0x4')]=this[_0x3bb4('0x9')](),this[_0x3bb4('0x2')]=_0x27e6e5,this['revisionViews'][_0x3bb4('0x0')](_0x3bb4('0xc'))['to'](this),this[_0x3bb4('0x4')]['delegate'](_0x3bb4('0xe'))['to'](this),this[_0x3bb4('0x8')]({'tag':'div','attributes':{'class':['ck',_0x3bb4('0x6')]},'children':[{'tag':_0x3bb4('0xa'),'attributes':{'class':['ck',_0x3bb4('0x5')]},'children':[{'text':_0x2f3037}]},{'tag':'div','attributes':{'class':['ck',_0x3bb4('0x7')]},'children':this[_0x3bb4('0x4')]}]});}['addRevision'](_0x527716){const _0xdf17cc=new _0x32e182(this[_0x3bb4('0xd')],_0x527716,this['_revisionActions']);this[_0x3bb4('0x4')][_0x3bb4('0x1')](_0xdf17cc);}['removeRevision'](_0xc0f89f){const _0x931f1e=this[_0x3bb4('0x4')]['find'](_0x55a4ae=>_0x55a4ae['id']===_0xc0f89f['id']);this['revisionViews'][_0x3bb4('0xb')](_0x931f1e);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x46e2=['startDate','setTemplate','render','delegate','revisionSelected','timePeriodViews','ck-reset','revisionViews','_revisionActions','some','_removeRevision','locale','highlightRevisions','setName','add','highlight','div','getTime','select','removeRevision','_revisions','_getTimePeriodViewByStartDate','_addRevision','ck-revision-history-sidebar__timeline','find','fire','isEnabled','remove','map','createdAt','revisionSetName'];(function(_0x4b6237,_0x46e273){const _0x3707d2=function(_0x325733){while(--_0x325733){_0x4b6237['push'](_0x4b6237['shift']());}};_0x3707d2(++_0x46e273);}(_0x46e2,0x1a0));const _0x3707=function(_0x4b6237,_0x46e273){_0x4b6237=_0x4b6237-0x0;let _0x3707d2=_0x46e2[_0x4b6237];return _0x3707d2;};import{View as _0xa7fce}from'ckeditor5/src/ui';import _0x505aac from'./revisionssidebartimeperiodview';import _0x1d358a from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x1d6dd5}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0xa7fce{constructor(_0x5061f5,_0x31b951,_0x34da78){super(_0x5061f5);const _0x3c3df5=this['bindTemplate'];this[_0x3707('0x17')]=this['createCollection'](),this[_0x3707('0x17')][_0x3707('0x15')](_0x3707('0x5'))['to'](this),this['timePeriodViews']['delegate'](_0x3707('0x0'))['to'](this),this[_0x3707('0x7')]=_0x31b951,this[_0x3707('0x1a')]=_0x34da78,this['on'](_0x3707('0x5'),(_0x5ce1a0,_0x4e4746)=>{this['fire'](_0x3707('0x16'),_0x4e4746);}),this['on']('setName',(_0x3e3883,_0x401bca)=>{this[_0x3707('0xc')](_0x3707('0x11'),_0x401bca);}),this['set'](_0x3707('0xd'),!0x1),this[_0x3707('0x13')]({'tag':'div','attributes':{'class':['ck',_0x3707('0x18'),'ck-rounded-corners','ck-revision-history-sidebar']},'children':[new _0x1d358a(_0x5061f5),{'tag':_0x3707('0x3'),'attributes':{'class':['ck',_0x3707('0xa'),_0x3c3df5['if'](_0x3707('0xd'),'ck-disabled',_0x365583=>!_0x365583)]},'children':this[_0x3707('0x17')]}]});}['render'](){super[_0x3707('0x14')]();for(const _0x2d5570 of this[_0x3707('0x7')])this['_addRevision'](_0x2d5570);this['_revisions']['on']('add',(_0x53896d,_0x226ac8)=>{this['_addRevision'](_0x226ac8);}),this[_0x3707('0x7')]['on'](_0x3707('0xe'),(_0x477667,_0x2f344f)=>{this[_0x3707('0x1c')](_0x2f344f);});}get[_0x3707('0x19')](){return this[_0x3707('0x17')]['map'](_0x4955ae=>_0x4955ae[_0x3707('0x19')][_0x3707('0xf')](_0x16b324=>_0x16b324))['flat']();}['selectRevision'](_0x5c91d2){for(const _0x202d2c of this[_0x3707('0x19')])_0x5c91d2&&_0x5c91d2['id']===_0x202d2c['id']?_0x202d2c[_0x3707('0x5')]():_0x202d2c['deselect']();}[_0x3707('0x1e')](_0x26b935){for(const _0x1f6f23 of this[_0x3707('0x19')])_0x26b935[_0x3707('0x1b')](({id:_0x1d7ae4})=>_0x1d7ae4===_0x1f6f23['id'])?_0x1f6f23[_0x3707('0x2')]():_0x1f6f23['unhighlight']();}[_0x3707('0x9')](_0x535ae2){const _0x9c61ed=_0x1d6dd5(_0x535ae2[_0x3707('0x10')],this[_0x3707('0x1d')]['uiLanguage'])[_0x3707('0x12')];let _0x1cd584=this[_0x3707('0x17')]['get'](0x0);_0x1cd584&&_0x1cd584['startDate'][_0x3707('0x4')]()===_0x9c61ed[_0x3707('0x4')]()||(_0x1cd584=new _0x505aac(this[_0x3707('0x1d')],_0x9c61ed,this[_0x3707('0x1a')]),this['timePeriodViews'][_0x3707('0x1')](_0x1cd584)),_0x1cd584['addRevision'](_0x535ae2);}['_removeRevision'](_0x1ebd04){const _0x3ccb4b=_0x1d6dd5(_0x1ebd04['createdAt'],this[_0x3707('0x1d')]['uiLanguage'])[_0x3707('0x12')];this[_0x3707('0x8')](_0x3ccb4b)[_0x3707('0x6')](_0x1ebd04);}['_getTimePeriodViewByStartDate'](_0x19fbed){return this[_0x3707('0x17')][_0x3707('0xb')](_0x5cb959=>_0x5cb959[_0x3707('0x12')][_0x3707('0x4')]()===_0x19fbed['getTime']());}}
23
+ const _0x4fe3=['revisionSetName','locale','getTime','removeRevision','_addRevision','startDate','map','revisionSelected','revisionViews','ck-disabled','setTemplate','select','timePeriodViews','delegate','get','flat','_removeRevision','ck-rounded-corners','createdAt','bindTemplate','ck-revision-history-sidebar__timeline','unhighlight','uiLanguage','ck-revision-history-sidebar','_revisionActions','set','highlightRevisions','_revisions','isEnabled','add','_getTimePeriodViewByStartDate','addRevision','find','remove','selectRevision','fire','deselect','highlight','createCollection','setName','ck-reset'];(function(_0x3cae1b,_0x4fe3b8){const _0x58a3af=function(_0x2290e6){while(--_0x2290e6){_0x3cae1b['push'](_0x3cae1b['shift']());}};_0x58a3af(++_0x4fe3b8);}(_0x4fe3,0x163));const _0x58a3=function(_0x3cae1b,_0x4fe3b8){_0x3cae1b=_0x3cae1b-0x0;let _0x58a3af=_0x4fe3[_0x3cae1b];return _0x58a3af;};import{View as _0x52a243}from'ckeditor5/src/ui';import _0x3535a8 from'./revisionssidebartimeperiodview';import _0x4bc8e7 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x3057bc}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x52a243{constructor(_0x2427cb,_0x4c945f,_0x42fefb){super(_0x2427cb);const _0x2cfb41=this[_0x58a3('0x21')];this[_0x58a3('0x1a')]=this[_0x58a3('0xb')](),this['timePeriodViews'][_0x58a3('0x1b')](_0x58a3('0x19'))['to'](this),this['timePeriodViews'][_0x58a3('0x1b')](_0x58a3('0xc'))['to'](this),this['_revisions']=_0x4c945f,this[_0x58a3('0x26')]=_0x42fefb,this['on'](_0x58a3('0x19'),(_0x5cc6ab,_0x377abf)=>{this[_0x58a3('0x8')](_0x58a3('0x15'),_0x377abf);}),this['on'](_0x58a3('0xc'),(_0x367832,_0x4bb85e)=>{this[_0x58a3('0x8')](_0x58a3('0xe'),_0x4bb85e);}),this[_0x58a3('0x27')](_0x58a3('0x1'),!0x1),this[_0x58a3('0x18')]({'tag':'div','attributes':{'class':['ck',_0x58a3('0xd'),_0x58a3('0x1f'),_0x58a3('0x25')]},'children':[new _0x4bc8e7(_0x2427cb),{'tag':'div','attributes':{'class':['ck',_0x58a3('0x22'),_0x2cfb41['if'](_0x58a3('0x1'),_0x58a3('0x17'),_0x264830=>!_0x264830)]},'children':this[_0x58a3('0x1a')]}]});}['render'](){super['render']();for(const _0x92fda6 of this[_0x58a3('0x0')])this[_0x58a3('0x12')](_0x92fda6);this[_0x58a3('0x0')]['on'](_0x58a3('0x2'),(_0x4596e1,_0x482729)=>{this[_0x58a3('0x12')](_0x482729);}),this[_0x58a3('0x0')]['on'](_0x58a3('0x6'),(_0x1ba89d,_0x53069c)=>{this[_0x58a3('0x1e')](_0x53069c);});}get[_0x58a3('0x16')](){return this['timePeriodViews'][_0x58a3('0x14')](_0x49054b=>_0x49054b[_0x58a3('0x16')]['map'](_0x66734d=>_0x66734d))[_0x58a3('0x1d')]();}[_0x58a3('0x7')](_0xf11544){for(const _0x176b60 of this[_0x58a3('0x16')])_0xf11544&&_0xf11544['id']===_0x176b60['id']?_0x176b60['select']():_0x176b60[_0x58a3('0x9')]();}[_0x58a3('0x28')](_0x2f87f9){for(const _0x3f5f93 of this[_0x58a3('0x16')])_0x2f87f9['some'](({id:_0x536ade})=>_0x536ade===_0x3f5f93['id'])?_0x3f5f93[_0x58a3('0xa')]():_0x3f5f93[_0x58a3('0x23')]();}['_addRevision'](_0x160055){const _0xe88428=_0x3057bc(_0x160055[_0x58a3('0x20')],this['locale'][_0x58a3('0x24')])[_0x58a3('0x13')];let _0x8ac70d=this[_0x58a3('0x1a')][_0x58a3('0x1c')](0x0);_0x8ac70d&&_0x8ac70d['startDate'][_0x58a3('0x10')]()===_0xe88428[_0x58a3('0x10')]()||(_0x8ac70d=new _0x3535a8(this[_0x58a3('0xf')],_0xe88428,this[_0x58a3('0x26')]),this[_0x58a3('0x1a')][_0x58a3('0x2')](_0x8ac70d)),_0x8ac70d[_0x58a3('0x4')](_0x160055);}['_removeRevision'](_0x469be5){const _0x24cad5=_0x3057bc(_0x469be5['createdAt'],this[_0x58a3('0xf')][_0x58a3('0x24')])[_0x58a3('0x13')];this[_0x58a3('0x3')](_0x24cad5)[_0x58a3('0x11')](_0x469be5);}[_0x58a3('0x3')](_0x2da6d7){return this[_0x58a3('0x1a')][_0x58a3('0x5')](_0x517368=>_0x517368[_0x58a3('0x13')][_0x58a3('0x10')]()===_0x2da6d7['getTime']());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2457=['monthLong','weekdayLong','week','toJSDate','day','year','hasSame','local','minus','fromJSDate','startOf','month'];(function(_0x20d0f9,_0x245797){const _0x51184e=function(_0x5312f5){while(--_0x5312f5){_0x20d0f9['push'](_0x20d0f9['shift']());}};_0x51184e(++_0x245797);}(_0x2457,0xed));const _0x5118=function(_0x20d0f9,_0x245797){_0x20d0f9=_0x20d0f9-0x0;let _0x51184e=_0x2457[_0x20d0f9];return _0x51184e;};import{DateTime as _0x5123fb}from'luxon';export function getDateTimePeriodInfo(_0x5755cc,_0x571c19){const _0x5d9a19=_0x5123fb[_0x5118('0x0')](_0x5755cc)['setLocale'](_0x571c19),_0x145eb4=_0x5123fb[_0x5118('0xa')](),_0x51ce42=_0x145eb4[_0x5118('0xb')]({'days':0x1})[_0x5118('0x1')](_0x5118('0x7'));let _0x2cf43b,_0x47746a;return _0x5d9a19['hasSame'](_0x145eb4,_0x5118('0x7'))?(_0x2cf43b=_0x5d9a19[_0x5118('0x1')](_0x5118('0x7'))['toJSDate'](),_0x47746a=_0x5d9a19['toRelativeCalendar']()):_0x5d9a19[_0x5118('0x9')](_0x51ce42,_0x5118('0x7'))?(_0x2cf43b=_0x51ce42[_0x5118('0x6')](),_0x47746a=_0x5d9a19['toRelativeCalendar']()):_0x5d9a19[_0x5118('0x9')](_0x145eb4,_0x5118('0x5'))?(_0x2cf43b=_0x5d9a19[_0x5118('0x1')]('week')[_0x5118('0x6')](),_0x47746a=_0x5d9a19[_0x5118('0x4')]||''):_0x5d9a19['hasSame'](_0x145eb4,_0x5118('0x8'))?(_0x2cf43b=_0x5d9a19[_0x5118('0x1')](_0x5118('0x2'))[_0x5118('0x6')](),_0x47746a=_0x5d9a19[_0x5118('0x3')]||''):(_0x2cf43b=_0x5d9a19[_0x5118('0x1')](_0x5118('0x8'))[_0x5118('0x6')](),_0x47746a=String(_0x5d9a19[_0x5118('0x8')])),{'startDate':_0x2cf43b,'localizedPeriodName':_0x47746a};}
23
+ const _0x99d7=['year','day','local','minus','fromJSDate','toJSDate','toRelativeCalendar','week','hasSame','startOf'];(function(_0x182d3a,_0x99d79c){const _0x5c54ee=function(_0x4a2e0d){while(--_0x4a2e0d){_0x182d3a['push'](_0x182d3a['shift']());}};_0x5c54ee(++_0x99d79c);}(_0x99d7,0xc9));const _0x5c54=function(_0x182d3a,_0x99d79c){_0x182d3a=_0x182d3a-0x0;let _0x5c54ee=_0x99d7[_0x182d3a];return _0x5c54ee;};import{DateTime as _0x17cb42}from'luxon';export function getDateTimePeriodInfo(_0x2a4a19,_0x28c2fa){const _0x333235=_0x17cb42[_0x5c54('0x3')](_0x2a4a19)['setLocale'](_0x28c2fa),_0x29c6af=_0x17cb42[_0x5c54('0x1')](),_0x23103b=_0x29c6af[_0x5c54('0x2')]({'days':0x1})[_0x5c54('0x8')](_0x5c54('0x0'));let _0x5e2c22,_0x59f8be;return _0x333235['hasSame'](_0x29c6af,_0x5c54('0x0'))?(_0x5e2c22=_0x333235[_0x5c54('0x8')](_0x5c54('0x0'))[_0x5c54('0x4')](),_0x59f8be=_0x333235['toRelativeCalendar']()):_0x333235[_0x5c54('0x7')](_0x23103b,_0x5c54('0x0'))?(_0x5e2c22=_0x23103b[_0x5c54('0x4')](),_0x59f8be=_0x333235[_0x5c54('0x5')]()):_0x333235['hasSame'](_0x29c6af,_0x5c54('0x6'))?(_0x5e2c22=_0x333235[_0x5c54('0x8')](_0x5c54('0x6'))['toJSDate'](),_0x59f8be=_0x333235['weekdayLong']||''):_0x333235[_0x5c54('0x7')](_0x29c6af,_0x5c54('0x9'))?(_0x5e2c22=_0x333235[_0x5c54('0x8')]('month')['toJSDate'](),_0x59f8be=_0x333235['monthLong']||''):(_0x5e2c22=_0x333235[_0x5c54('0x8')](_0x5c54('0x9'))['toJSDate'](),_0x59f8be=String(_0x333235[_0x5c54('0x9')])),{'startDate':_0x5e2c22,'localizedPeriodName':_0x59f8be};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x10ec=['set','author','span','_model','ck-annotation','Suggested\x20by','changeId','setTemplate','ck-revision-change__label','div','isSuggestion','type','focus','ck-revision-change','name','Added\x20by','bindTemplate','data','add','Removed\x20by'];(function(_0x26a3f4,_0x10ecc8){const _0x420225=function(_0x276e21){while(--_0x276e21){_0x26a3f4['push'](_0x26a3f4['shift']());}};_0x420225(++_0x10ecc8);}(_0x10ec,0x106));const _0x4202=function(_0x26a3f4,_0x10ecc8){_0x26a3f4=_0x26a3f4-0x0;let _0x420225=_0x10ec[_0x26a3f4];return _0x420225;};import{View as _0x18ab2c}from'ckeditor5/src/ui';import{getTranslation as _0x2a2406}from'../../utils/common-translations';export default class Z extends _0x18ab2c{constructor(_0x4ebef1,_0x1a9efe){super(_0x4ebef1),this[_0x4202('0x1')]=_0x1a9efe,this[_0x4202('0x4')]=_0x1a9efe['id'];const _0x7579ec=this[_0x4202('0xe')],_0x4b22ab=_0x2a2406(_0x4ebef1,_0x1a9efe[_0x4202('0xf')][_0x4202('0x8')]?_0x4202('0x3'):_0x4202('0x10')==_0x1a9efe['type']?_0x4202('0xd'):_0x4202('0x11'));this[_0x4202('0x12')](_0x4202('0x9'),_0x1a9efe[_0x4202('0x9')]),this[_0x4202('0x5')]({'tag':_0x4202('0x7'),'attributes':{'class':[_0x4202('0x2'),_0x4202('0xb'),_0x7579ec['to'](_0x4202('0x9'),_0x489ed9=>'ck-revision-change__'+_0x489ed9)],'tabindex':-0x1},'children':[{'tag':_0x4202('0x0'),'children':[{'tag':'span','attributes':{'class':[_0x4202('0x6')]},'children':[{'text':_0x4b22ab}]},{'text':'\x20'+_0x1a9efe[_0x4202('0x13')][_0x4202('0xc')]}]}]});}[_0x4202('0xa')](){this['element'][_0x4202('0xa')]();}}
23
+ const _0x1865=['type','ck-annotation','_model','Suggested\x20by','data','name','focus','ck-revision-change','element','isSuggestion','span','author','ck-revision-change__','setTemplate','set','changeId'];(function(_0x299b27,_0x186568){const _0x56e845=function(_0x324b12){while(--_0x324b12){_0x299b27['push'](_0x299b27['shift']());}};_0x56e845(++_0x186568);}(_0x1865,0x112));const _0x56e8=function(_0x299b27,_0x186568){_0x299b27=_0x299b27-0x0;let _0x56e845=_0x1865[_0x299b27];return _0x56e845;};import{View as _0x347533}from'ckeditor5/src/ui';import{getTranslation as _0x49010e}from'../../utils/common-translations';export default class Z extends _0x347533{constructor(_0x206e31,_0x45cc0b){super(_0x206e31),this[_0x56e8('0x0')]=_0x45cc0b,this[_0x56e8('0xd')]=_0x45cc0b['id'];const _0x238736=this['bindTemplate'],_0x4dc445=_0x49010e(_0x206e31,_0x45cc0b[_0x56e8('0x2')][_0x56e8('0x7')]?_0x56e8('0x1'):'add'==_0x45cc0b[_0x56e8('0xe')]?'Added\x20by':'Removed\x20by');this[_0x56e8('0xc')](_0x56e8('0xe'),_0x45cc0b[_0x56e8('0xe')]),this[_0x56e8('0xb')]({'tag':'div','attributes':{'class':[_0x56e8('0xf'),_0x56e8('0x5'),_0x238736['to']('type',_0x2613af=>_0x56e8('0xa')+_0x2613af)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':_0x56e8('0x8'),'attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x4dc445}]},{'text':'\x20'+_0x45cc0b[_0x56e8('0x9')][_0x56e8('0x3')]}]}]});}[_0x56e8('0x4')](){this[_0x56e8('0x6')][_0x56e8('0x4')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xea8a=['numberOfChanges','fire','set','div','ck-revision-history-ui__changes-navigation','isReady','ck-revision-history-ui','setTemplate','_isStatusLabelVisible','bindTemplate','ck-revision-history-ui__changes-navigation__label','ck-revision-history-ui__changes-navigation__navigation','span','forward','isForwardNavigationEnabled','Loading...','X_OF_Y_CHANGES','_statusText','isEnabled','NUMBER_OF_CHANGES','ck-revision-history-ui__changes-navigation__wrapper','EDIT_X_OF_Y_REVISIONS','isBackwardNavigationEnabled','bind','backward','Total','execute','currentChangeNumber','isNavigationMode'];(function(_0x4c1d88,_0xea8aa2){const _0x251244=function(_0x1a88c5){while(--_0x1a88c5){_0x4c1d88['push'](_0x4c1d88['shift']());}};_0x251244(++_0xea8aa2);}(_0xea8a,0x1a4));const _0x2512=function(_0x4c1d88,_0xea8aa2){_0x4c1d88=_0x4c1d88-0x0;let _0x251244=_0xea8a[_0x4c1d88];return _0x251244;};import{View as _0x10b85c,ButtonView as _0x46fd54,ToolbarSeparatorView as _0x33c8c2}from'ckeditor5/src/ui';import{getTranslation as _0x406034}from'../../utils/common-translations';import _0x4d038a from'../../../theme/icons/arrow-up.svg';import _0x4c990e from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x10b85c{constructor(_0xc6860a){super(_0xc6860a);const _0x1f5066=this[_0x2512('0x18')],_0x5c36ab=new _0x46fd54(_0xc6860a),_0x1f9fd5=new _0x46fd54(_0xc6860a);this['set'](_0x2512('0xe'),!0x1),this[_0x2512('0x11')](_0x2512('0x14'),!0x1),this[_0x2512('0x11')](_0x2512('0xd'),0x0),this[_0x2512('0x11')]('numberOfChanges',0x0),this[_0x2512('0x11')](_0x2512('0x0'),!0x1),this['set'](_0x2512('0x8'),!0x1),this[_0x2512('0x9')](_0x2512('0x17'))['to'](this,'isReady',this,_0x2512('0xf'),(_0x2e4cb2,_0x169a18)=>_0x2e4cb2&&_0x169a18>0x0),this[_0x2512('0x9')](_0x2512('0x3'))['to'](this,_0x2512('0x14'),this,_0x2512('0xd'),this,_0x2512('0xf'),this,_0x2512('0xe'),(_0x4633d8,_0x598379,_0x250a17,_0x4a67bd)=>{if(!_0x4633d8)return _0x406034(_0xc6860a,_0x2512('0x1'));if(!_0x250a17)return _0x406034(_0xc6860a,'No\x20changes');const _0x2f9083=_0x406034(_0xc6860a,_0x2512('0x5'),_0x250a17);return _0x4a67bd?_0x406034(_0xc6860a,_0x2512('0x2'),[_0x598379+0x1,_0x250a17]):_0x2f9083;}),_0x5c36ab[_0x2512('0x11')]({'label':_0x406034(_0xc6860a,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x4d038a}),_0x1f9fd5['set']({'label':_0x406034(_0xc6860a,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x4c990e}),_0x5c36ab[_0x2512('0x9')](_0x2512('0x4'))['to'](this,_0x2512('0x8')),_0x1f9fd5['bind'](_0x2512('0x4'))['to'](this,'isForwardNavigationEnabled'),_0x5c36ab['on']('execute',()=>this[_0x2512('0x10')](_0x2512('0xc'),_0x2512('0xa'))),_0x1f9fd5['on']('execute',()=>this['fire'](_0x2512('0xc'),_0x2512('0x1c'))),this[_0x2512('0x16')]({'tag':_0x2512('0x12'),'attributes':{'class':['ck',_0x2512('0x15'),_0x2512('0x13')]},'children':[{'tag':_0x2512('0x1b'),'attributes':{'class':[_0x2512('0x6')]},'children':[{'tag':'span','attributes':{'class':[_0x2512('0x19'),_0x1f5066['if']('_isStatusLabelVisible','ck-hidden',_0x3294aa=>!_0x3294aa)]},'children':[{'text':_0x1f5066['to'](_0x2512('0xe'),_0x1fd7c0=>_0x1fd7c0?_0x406034(_0xc6860a,_0x2512('0x7'))+':\x20':_0x406034(_0xc6860a,_0x2512('0xb'))+':\x20')}]},{'text':_0x1f5066['to'](_0x2512('0x3'))}]},new _0x33c8c2(),{'tag':_0x2512('0x12'),'attributes':{'class':[_0x2512('0x1a')]},'children':[_0x5c36ab,_0x1f9fd5]}]});}}
23
+ const _0x3398=['setTemplate','set','Show\x20previous\x20change','currentChangeNumber','Total','isReady','span','_statusText','EDIT_X_OF_Y_REVISIONS','fire','X_OF_Y_CHANGES','isNavigationMode','numberOfChanges','bind','isForwardNavigationEnabled','Loading...','div','isBackwardNavigationEnabled','No\x20changes','isEnabled','bindTemplate','forward','execute','ck-revision-history-ui','Show\x20next\x20change'];(function(_0x2bf882,_0x339820){const _0x4084b4=function(_0x30cb02){while(--_0x30cb02){_0x2bf882['push'](_0x2bf882['shift']());}};_0x4084b4(++_0x339820);}(_0x3398,0x11c));const _0x4084=function(_0x2bf882,_0x339820){_0x2bf882=_0x2bf882-0x0;let _0x4084b4=_0x3398[_0x2bf882];return _0x4084b4;};import{View as _0x16f045,ButtonView as _0x27104d,ToolbarSeparatorView as _0x2b8287}from'ckeditor5/src/ui';import{getTranslation as _0x47f9e9}from'../../utils/common-translations';import _0xe3f8f2 from'../../../theme/icons/arrow-up.svg';import _0x49cadb from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x16f045{constructor(_0x32e238){super(_0x32e238);const _0x5766f5=this[_0x4084('0xb')],_0x95524b=new _0x27104d(_0x32e238),_0x5cbd3c=new _0x27104d(_0x32e238);this[_0x4084('0x11')](_0x4084('0x2'),!0x1),this['set'](_0x4084('0x15'),!0x1),this[_0x4084('0x11')](_0x4084('0x13'),0x0),this[_0x4084('0x11')](_0x4084('0x3'),0x0),this[_0x4084('0x11')](_0x4084('0x5'),!0x1),this[_0x4084('0x11')](_0x4084('0x8'),!0x1),this[_0x4084('0x4')]('_isStatusLabelVisible')['to'](this,_0x4084('0x15'),this,_0x4084('0x3'),(_0x2dfe55,_0x4f10a0)=>_0x2dfe55&&_0x4f10a0>0x0),this['bind'](_0x4084('0x17'))['to'](this,_0x4084('0x15'),this,_0x4084('0x13'),this,_0x4084('0x3'),this,_0x4084('0x2'),(_0x261de8,_0x3e5ecb,_0x2e345d,_0xd18027)=>{if(!_0x261de8)return _0x47f9e9(_0x32e238,_0x4084('0x6'));if(!_0x2e345d)return _0x47f9e9(_0x32e238,_0x4084('0x9'));const _0x3fd010=_0x47f9e9(_0x32e238,'NUMBER_OF_CHANGES',_0x2e345d);return _0xd18027?_0x47f9e9(_0x32e238,_0x4084('0x1'),[_0x3e5ecb+0x1,_0x2e345d]):_0x3fd010;}),_0x95524b[_0x4084('0x11')]({'label':_0x47f9e9(_0x32e238,_0x4084('0x12')),'tooltip':!0x0,'icon':_0xe3f8f2}),_0x5cbd3c['set']({'label':_0x47f9e9(_0x32e238,_0x4084('0xf')),'tooltip':!0x0,'icon':_0x49cadb}),_0x95524b['bind'](_0x4084('0xa'))['to'](this,_0x4084('0x8')),_0x5cbd3c['bind'](_0x4084('0xa'))['to'](this,_0x4084('0x5')),_0x95524b['on']('execute',()=>this[_0x4084('0x0')](_0x4084('0xd'),'backward')),_0x5cbd3c['on'](_0x4084('0xd'),()=>this[_0x4084('0x0')](_0x4084('0xd'),_0x4084('0xc'))),this[_0x4084('0x10')]({'tag':'div','attributes':{'class':['ck',_0x4084('0xe'),'ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':_0x4084('0x16'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x5766f5['if']('_isStatusLabelVisible','ck-hidden',_0x1a9322=>!_0x1a9322)]},'children':[{'text':_0x5766f5['to'](_0x4084('0x2'),_0x10457a=>_0x10457a?_0x47f9e9(_0x32e238,_0x4084('0x18'))+':\x20':_0x47f9e9(_0x32e238,_0x4084('0x14'))+':\x20')}]},{'text':_0x5766f5['to'](_0x4084('0x17'))}]},new _0x2b8287(),{'tag':_0x4084('0x7'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x95524b,_0x5cbd3c]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2934=['roots','view','addClass','pluginName','hide','show','removeClass','change','document','RevisionViewerLoadingOverlay'];(function(_0x98575a,_0x2934e6){const _0x7bbb70=function(_0x3ec1ee){while(--_0x3ec1ee){_0x98575a['push'](_0x98575a['shift']());}};_0x7bbb70(++_0x2934e6);}(_0x2934,0x8b));const _0x7bbb=function(_0x98575a,_0x2934e6){_0x98575a=_0x98575a-0x0;let _0x7bbb70=_0x2934[_0x98575a];return _0x7bbb70;};import{Plugin as _0x29e769}from'ckeditor5/src/core';const oe='ck-editor__editable__loading-overlay';import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x29e769{static get[_0x7bbb('0x4')](){return _0x7bbb('0x0');}[_0x7bbb('0x6')](){const _0x8353ca=this['editor']['editing'][_0x7bbb('0x2')];_0x8353ca[_0x7bbb('0x8')](_0x54b8e3=>{for(const _0x1dca69 of _0x8353ca[_0x7bbb('0x9')][_0x7bbb('0x1')])_0x54b8e3[_0x7bbb('0x3')](oe,_0x1dca69);});}[_0x7bbb('0x5')](){const _0xca78cc=this['editor']['editing']['view'];_0xca78cc[_0x7bbb('0x8')](_0x3dc3a6=>{for(const _0x336156 of _0xca78cc[_0x7bbb('0x9')][_0x7bbb('0x1')])_0x3dc3a6[_0x7bbb('0x7')](oe,_0x336156);});}}
23
+ const _0x1fba=['document','removeClass','roots','change','hide','editor','ck-editor__editable__loading-overlay','editing','view','addClass'];(function(_0x3c24d6,_0x1fbacb){const _0x3647e2=function(_0x4f74d0){while(--_0x4f74d0){_0x3c24d6['push'](_0x3c24d6['shift']());}};_0x3647e2(++_0x1fbacb);}(_0x1fba,0x160));const _0x3647=function(_0x3c24d6,_0x1fbacb){_0x3c24d6=_0x3c24d6-0x0;let _0x3647e2=_0x1fba[_0x3c24d6];return _0x3647e2;};import{Plugin as _0x13b174}from'ckeditor5/src/core';const oe=_0x3647('0x4');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x13b174{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}['show'](){const _0x52aa40=this[_0x3647('0x3')][_0x3647('0x5')][_0x3647('0x6')];_0x52aa40[_0x3647('0x1')](_0x3b62ed=>{for(const _0x5afd4a of _0x52aa40[_0x3647('0x8')]['roots'])_0x3b62ed[_0x3647('0x7')](oe,_0x5afd4a);});}[_0x3647('0x2')](){const _0x5b1e00=this['editor'][_0x3647('0x5')][_0x3647('0x6')];_0x5b1e00['change'](_0x3e7110=>{for(const _0x20d773 of _0x5b1e00[_0x3647('0x8')][_0x3647('0x0')])_0x3e7110[_0x3647('0x9')](oe,_0x20d773);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x25e6=['RevisionViewerUI','init','plugins','isBackwardNavigationEnabled','componentFactory','isReady','ck-revision-history-ui__back-to-editing','showNextChange','restoreRevision','currentChangeNumber','bind','listenTo','isNavigationMode','get','commands','exitToEditing','forward','execute','isEnabled','set','numberOfChanges','showPreviousChange','requires','config','show','changesNavigation','add','pluginName'];(function(_0x187a5d,_0x25e6f3){const _0x497686=function(_0xb44a5b){while(--_0xb44a5b){_0x187a5d['push'](_0x187a5d['shift']());}};_0x497686(++_0x25e6f3);}(_0x25e6,0xca));const _0x4976=function(_0x187a5d,_0x25e6f3){_0x187a5d=_0x187a5d-0x0;let _0x497686=_0x25e6[_0x187a5d];return _0x497686;};import{Plugin as _0x2b58ed}from'ckeditor5/src/core';import{ButtonView as _0x4752ec}from'ckeditor5/src/ui';import _0x464cf4 from'./changesnavigationview';import _0x2adbae from'./../../revisionviewer';import _0x2106d9 from'./revisionviewerloadingoverlay';import{getTranslation as _0x26b518}from'../../utils/common-translations';import _0x333747 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x2b58ed{static get[_0x4976('0x15')](){return _0x4976('0x16');}static get[_0x4976('0x10')](){return[_0x2adbae,_0x2106d9];}[_0x4976('0x17')](){const _0x178a89=this['editor'],_0x3abcaf=_0x178a89[_0x4976('0x18')][_0x4976('0x7')](_0x2adbae),_0x3d0e4a=_0x178a89['plugins'][_0x4976('0x7')](_0x2106d9);_0x178a89['ui'][_0x4976('0x1a')]['add'](_0x4976('0x9'),_0x57c3c7=>{const _0x54efc8=new _0x4752ec(_0x57c3c7);return _0x54efc8[_0x4976('0xd')]({'label':_0x26b518(_0x57c3c7,'Back\x20to\x20editing'),'icon':_0x333747,'withText':!0x0,'tooltip':!0x0,'class':_0x4976('0x0')}),this['listenTo'](_0x54efc8,'execute',()=>{_0x178a89[_0x4976('0x11')][_0x4976('0x7')]('revisionHistory')['closeRevisionViewerCallback']();}),_0x54efc8;}),_0x178a89['ui'][_0x4976('0x1a')][_0x4976('0x14')](_0x4976('0x2'),_0x156240=>{const _0x3586fc=new _0x4752ec(_0x156240);return _0x3586fc[_0x4976('0xd')]({'label':_0x26b518(_0x156240,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3586fc[_0x4976('0x4')](_0x4976('0xc'))['to'](_0x178a89['commands'][_0x4976('0x7')](_0x4976('0x2'))),this[_0x4976('0x5')](_0x3586fc,_0x4976('0xb'),()=>_0x178a89[_0x4976('0xb')]('restoreRevision')),_0x3586fc;}),_0x178a89['ui'][_0x4976('0x1a')]['add'](_0x4976('0x13'),_0xe4924c=>{const _0x5c9d82=new _0x464cf4(_0xe4924c),_0x3e55ce=_0x178a89[_0x4976('0x8')][_0x4976('0x7')](_0x4976('0xf')),_0x32b941=_0x178a89['commands'][_0x4976('0x7')]('showNextChange');return _0x5c9d82[_0x4976('0x4')](_0x4976('0x19'))['to'](_0x3e55ce,_0x4976('0xc')),_0x5c9d82[_0x4976('0x4')]('isForwardNavigationEnabled')['to'](_0x32b941,_0x4976('0xc')),_0x5c9d82[_0x4976('0x4')](_0x4976('0x1b'),_0x4976('0x3'),_0x4976('0xe'),_0x4976('0x6'))['to'](_0x3abcaf),this['listenTo'](_0x5c9d82,'execute',(_0x21069c,_0x489bba)=>{_0x178a89[_0x4976('0xb')](_0x4976('0xa')===_0x489bba?_0x4976('0x1'):_0x4976('0xf'));}),_0x5c9d82;}),_0x3d0e4a[_0x4976('0x12')](),_0x3abcaf['on']('change:isReady',(_0x30e14a,_0x481a99,_0x58660e)=>{_0x58660e?_0x3d0e4a['hide']():_0x3d0e4a[_0x4976('0x12')]();});}}
23
+ const _0x1f75=['Restore\x20this\x20revision','hide','currentChangeNumber','init','listenTo','isForwardNavigationEnabled','editor','get','showPreviousChange','isNavigationMode','closeRevisionViewerCallback','requires','ck-revision-history-ui__back-to-editing','isBackwardNavigationEnabled','plugins','execute','isReady','add','isEnabled','bind','pluginName','show','componentFactory','commands','set','change:isReady','restoreRevision','revisionHistory','showNextChange','config','exitToEditing','Back\x20to\x20editing','changesNavigation'];(function(_0x2a1153,_0x1f7552){const _0x4023c9=function(_0x33441a){while(--_0x33441a){_0x2a1153['push'](_0x2a1153['shift']());}};_0x4023c9(++_0x1f7552);}(_0x1f75,0x114));const _0x4023=function(_0x2a1153,_0x1f7552){_0x2a1153=_0x2a1153-0x0;let _0x4023c9=_0x1f75[_0x2a1153];return _0x4023c9;};import{Plugin as _0x3c0ecd}from'ckeditor5/src/core';import{ButtonView as _0xeaa63}from'ckeditor5/src/ui';import _0x221797 from'./changesnavigationview';import _0x59d8a7 from'./../../revisionviewer';import _0x64ea47 from'./revisionviewerloadingoverlay';import{getTranslation as _0x200251}from'../../utils/common-translations';import _0x3847c8 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x3c0ecd{static get[_0x4023('0x8')](){return'RevisionViewerUI';}static get[_0x4023('0x20')](){return[_0x59d8a7,_0x64ea47];}[_0x4023('0x18')](){const _0x23abfa=this[_0x4023('0x1b')],_0xe21891=_0x23abfa[_0x4023('0x2')][_0x4023('0x1c')](_0x59d8a7),_0x1945cc=_0x23abfa['plugins']['get'](_0x64ea47);_0x23abfa['ui'][_0x4023('0xa')][_0x4023('0x5')](_0x4023('0x12'),_0x13ea76=>{const _0x1532da=new _0xeaa63(_0x13ea76);return _0x1532da[_0x4023('0xc')]({'label':_0x200251(_0x13ea76,_0x4023('0x13')),'icon':_0x3847c8,'withText':!0x0,'tooltip':!0x0,'class':_0x4023('0x0')}),this['listenTo'](_0x1532da,'execute',()=>{_0x23abfa[_0x4023('0x11')][_0x4023('0x1c')](_0x4023('0xf'))[_0x4023('0x1f')]();}),_0x1532da;}),_0x23abfa['ui'][_0x4023('0xa')][_0x4023('0x5')](_0x4023('0xe'),_0x33b372=>{const _0x7e32ea=new _0xeaa63(_0x33b372);return _0x7e32ea[_0x4023('0xc')]({'label':_0x200251(_0x33b372,_0x4023('0x15')),'withText':!0x0,'tooltip':!0x0}),_0x7e32ea['bind'](_0x4023('0x6'))['to'](_0x23abfa['commands'][_0x4023('0x1c')](_0x4023('0xe'))),this[_0x4023('0x19')](_0x7e32ea,_0x4023('0x3'),()=>_0x23abfa[_0x4023('0x3')](_0x4023('0xe'))),_0x7e32ea;}),_0x23abfa['ui'][_0x4023('0xa')]['add'](_0x4023('0x14'),_0x101278=>{const _0x4a98ec=new _0x221797(_0x101278),_0x1ae2ca=_0x23abfa[_0x4023('0xb')][_0x4023('0x1c')]('showPreviousChange'),_0x2fc69a=_0x23abfa['commands'][_0x4023('0x1c')](_0x4023('0x10'));return _0x4a98ec[_0x4023('0x7')](_0x4023('0x1'))['to'](_0x1ae2ca,_0x4023('0x6')),_0x4a98ec[_0x4023('0x7')](_0x4023('0x1a'))['to'](_0x2fc69a,_0x4023('0x6')),_0x4a98ec[_0x4023('0x7')](_0x4023('0x4'),_0x4023('0x17'),'numberOfChanges',_0x4023('0x1e'))['to'](_0xe21891),this[_0x4023('0x19')](_0x4a98ec,'execute',(_0x31b5a0,_0x3d2722)=>{_0x23abfa[_0x4023('0x3')]('forward'===_0x3d2722?_0x4023('0x10'):_0x4023('0x1d'));}),_0x4a98ec;}),_0x1945cc[_0x4023('0x9')](),_0xe21891['on'](_0x4023('0xd'),(_0xf23125,_0x1f0064,_0x45966b)=>{_0x45966b?_0x1945cc[_0x4023('0x16')]():_0x1945cc[_0x4023('0x9')]();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x291bef,_0x2ff7ae,_0x2dbfcc){const t=_0x291bef['t'];switch(_0x2ff7ae){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'},_0x2dbfcc);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2dbfcc);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 _0x2ff7ae;}}
23
+ export function getTranslation(_0x55d5fa,_0x3b5fee,_0x4ad284){const t=_0x55d5fa['t'];switch(_0x3b5fee){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'},_0x4ad284);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4ad284);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 _0x3b5fee;}}