@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230817.0 → 0.0.0-nightly-20230818.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 _0x5459=['saveRevision','isOpen','get','pluginName','isReady','isReadOnly','init','set','requires','bind','Revision\x20history','componentFactory','Open\x20revision\x20history','focus','RevisionHistoryUI','editing','children','showRevisionViewerCallback','revisionHistory','view','saveButtonView','add','execute','config','editor','plugins','reset','cancel','isEnabled','addMany','remove'];(function(_0x194fe3,_0x54595a){const _0x8c1a7=function(_0x24fc6c){while(--_0x24fc6c){_0x194fe3['push'](_0x194fe3['shift']());}};_0x8c1a7(++_0x54595a);}(_0x5459,0xce));const _0x8c1a=function(_0x194fe3,_0x54595a){_0x194fe3=_0x194fe3-0x0;let _0x8c1a7=_0x5459[_0x194fe3];return _0x8c1a7;};import{Plugin as _0x510fc8}from'ckeditor5/src/core';import{ListView as _0x302eb4,ListItemView as _0x2c461f,ButtonView as _0x32d63c,createDropdown as _0x4a6510}from'ckeditor5/src/ui';import _0x4e8b5f from'../../revisiontracker';import _0x46f68f from'./revisionhistorysaverevisionformview';import _0xe797ba from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x4a15e7}from'../../utils/common-translations';export default class u extends _0x510fc8{static get[_0x8c1a('0xe')](){return _0x8c1a('0x19');}static get[_0x8c1a('0x13')](){return[_0x4e8b5f];}[_0x8c1a('0x11')](){const _0x2d6016=this[_0x8c1a('0x4')],_0x474abb=_0x2d6016[_0x8c1a('0x5')][_0x8c1a('0xd')]('RevisionTracker');_0x2d6016['ui'][_0x8c1a('0x16')][_0x8c1a('0x1')](_0x8c1a('0x1d'),_0x5297cb=>{const _0xbcfa2b=_0x4a6510(_0x5297cb),_0x4138ec=_0xbcfa2b['panelView'][_0x8c1a('0x1b')],_0x1a8204=new _0x302eb4(_0x5297cb),_0x5ae7dc=new _0x2c461f(_0x5297cb),_0x45bd74=new _0x32d63c(_0x5297cb),_0x3a654c=new _0x2c461f(_0x5297cb),_0x43a740=new _0x32d63c(_0x5297cb),_0x382d85=new _0x46f68f(_0x5297cb);function _0x411813(){_0x4138ec['length']&&_0x4138ec[_0x8c1a('0xa')](0x0),_0x4138ec[_0x8c1a('0x1')](_0x1a8204);}function _0x5aeafe(){_0xbcfa2b[_0x8c1a('0xc')]=!0x1,_0x2d6016[_0x8c1a('0x1a')][_0x8c1a('0x1e')][_0x8c1a('0x18')]();}return _0xbcfa2b[_0x8c1a('0x14')](_0x8c1a('0x8'))['to'](_0x474abb,'isReady',_0x474abb,'isEnabled',_0x2d6016,_0x8c1a('0x10'),(_0x18905a,_0x36a35b,_0x58c324)=>_0x18905a&&_0x36a35b&&!_0x58c324),_0xbcfa2b['buttonView']['set']({'icon':_0xe797ba,'label':_0x4a15e7(_0x5297cb,_0x8c1a('0x15')),'tooltip':!0x0}),_0x45bd74[_0x8c1a('0x12')]({'label':_0x4a15e7(_0x5297cb,'Save\x20current\x20revision'),'withText':!0x0}),_0x45bd74[_0x8c1a('0x14')]('isEnabled')['to'](_0x474abb,_0x8c1a('0xf'),_0x474abb,_0x8c1a('0x8'),_0x2d6016,'isReadOnly',(_0x231500,_0xfa66ae,_0x5a7e25)=>_0x231500&&_0xfa66ae&&!_0x5a7e25),_0x45bd74['on'](_0x8c1a('0x2'),()=>function(){_0x4138ec['length']&&_0x4138ec[_0x8c1a('0xa')](0x0),(_0x382d85[_0x8c1a('0x6')](),_0x4138ec['add'](_0x382d85),_0x382d85[_0x8c1a('0x18')]());}()),_0x43a740[_0x8c1a('0x12')]({'label':_0x4a15e7(_0x5297cb,_0x8c1a('0x17')),'withText':!0x0}),_0x43a740['bind'](_0x8c1a('0x8'))['to'](_0x474abb,_0x8c1a('0xf'),_0x2d6016,_0x8c1a('0x10'),(_0x187c5b,_0x4c20ac)=>_0x187c5b&&!_0x4c20ac),_0x43a740['on'](_0x8c1a('0x2'),()=>{_0x2d6016[_0x8c1a('0x3')][_0x8c1a('0xd')](_0x8c1a('0x1d'))[_0x8c1a('0x1c')](),_0x5aeafe();}),_0x5ae7dc[_0x8c1a('0x1b')]['add'](_0x45bd74),_0x3a654c['children'][_0x8c1a('0x1')](_0x43a740),_0x1a8204['items'][_0x8c1a('0x9')]([_0x5ae7dc,_0x3a654c]),_0xbcfa2b['on']('change:isOpen',()=>_0x411813()),_0x382d85[_0x8c1a('0x0')][_0x8c1a('0x14')](_0x8c1a('0x8'))['to'](_0x474abb,_0x8c1a('0xf'),_0x474abb,'isEnabled',_0x2d6016,'isReadOnly',(_0x3771a5,_0xfe177b,_0x3d44a7)=>_0x3771a5&&_0xfe177b&&!_0x3d44a7),_0x382d85['on']('submit',()=>(_0x2d6016[_0x8c1a('0x5')][_0x8c1a('0xd')](_0x4e8b5f)[_0x8c1a('0xb')]({'name':_0x382d85['revisionName']}),void _0x5aeafe())),_0x382d85['on'](_0x8c1a('0x7'),()=>_0x411813()),_0x382d85['render'](),_0x411813(),_0xbcfa2b;});}}
23
+ const _0x144c=['items','Save\x20current\x20revision','addMany','saveButtonView','RevisionTracker','isEnabled','init','saveRevision','children','buttonView','focus','Revision\x20history','cancel','length','get','revisionHistory','revisionName','add','panelView','execute','editor','bind','componentFactory','Open\x20revision\x20history','view','showRevisionViewerCallback','reset','submit','isReady','set','isReadOnly','remove','render','config','plugins'];(function(_0x20e26d,_0x144c28){const _0x245151=function(_0x3274d0){while(--_0x3274d0){_0x20e26d['push'](_0x20e26d['shift']());}};_0x245151(++_0x144c28);}(_0x144c,0xee));const _0x2451=function(_0x20e26d,_0x144c28){_0x20e26d=_0x20e26d-0x0;let _0x245151=_0x144c[_0x20e26d];return _0x245151;};import{Plugin as _0x516c08}from'ckeditor5/src/core';import{ListView as _0x20cf3c,ListItemView as _0x1745db,ButtonView as _0x32c134,createDropdown as _0x2a6db5}from'ckeditor5/src/ui';import _0x1864d2 from'../../revisiontracker';import _0x129c1f from'./revisionhistorysaverevisionformview';import _0x5387e5 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x2515e6}from'../../utils/common-translations';export default class u extends _0x516c08{static get['pluginName'](){return'RevisionHistoryUI';}static get['requires'](){return[_0x1864d2];}[_0x2451('0xd')](){const _0x4f823f=this[_0x2451('0x1b')],_0x502e72=_0x4f823f[_0x2451('0x6')][_0x2451('0x15')](_0x2451('0xb'));_0x4f823f['ui'][_0x2451('0x1d')]['add']('revisionHistory',_0x145d33=>{const _0x39efe5=_0x2a6db5(_0x145d33),_0x526897=_0x39efe5[_0x2451('0x19')][_0x2451('0xf')],_0x5bcfcb=new _0x20cf3c(_0x145d33),_0x52228=new _0x1745db(_0x145d33),_0x31e007=new _0x32c134(_0x145d33),_0x3ea7f5=new _0x1745db(_0x145d33),_0x256d37=new _0x32c134(_0x145d33),_0x4017f6=new _0x129c1f(_0x145d33);function _0x4ff6a8(){_0x526897[_0x2451('0x14')]&&_0x526897[_0x2451('0x3')](0x0),_0x526897['add'](_0x5bcfcb);}function _0x22c255(){_0x39efe5['isOpen']=!0x1,_0x4f823f['editing'][_0x2451('0x1f')][_0x2451('0x11')]();}return _0x39efe5[_0x2451('0x1c')](_0x2451('0xc'))['to'](_0x502e72,_0x2451('0x0'),_0x502e72,_0x2451('0xc'),_0x4f823f,_0x2451('0x2'),(_0x1087b0,_0x90419a,_0x14d2c5)=>_0x1087b0&&_0x90419a&&!_0x14d2c5),_0x39efe5[_0x2451('0x10')][_0x2451('0x1')]({'icon':_0x5387e5,'label':_0x2515e6(_0x145d33,_0x2451('0x12')),'tooltip':!0x0}),_0x31e007[_0x2451('0x1')]({'label':_0x2515e6(_0x145d33,_0x2451('0x8')),'withText':!0x0}),_0x31e007[_0x2451('0x1c')]('isEnabled')['to'](_0x502e72,_0x2451('0x0'),_0x502e72,_0x2451('0xc'),_0x4f823f,'isReadOnly',(_0x5f2ac6,_0x2496c5,_0x3fcbe3)=>_0x5f2ac6&&_0x2496c5&&!_0x3fcbe3),_0x31e007['on'](_0x2451('0x1a'),()=>function(){_0x526897['length']&&_0x526897['remove'](0x0),(_0x4017f6[_0x2451('0x21')](),_0x526897['add'](_0x4017f6),_0x4017f6[_0x2451('0x11')]());}()),_0x256d37[_0x2451('0x1')]({'label':_0x2515e6(_0x145d33,_0x2451('0x1e')),'withText':!0x0}),_0x256d37[_0x2451('0x1c')](_0x2451('0xc'))['to'](_0x502e72,_0x2451('0x0'),_0x4f823f,'isReadOnly',(_0x2d3bcd,_0x5edab1)=>_0x2d3bcd&&!_0x5edab1),_0x256d37['on'](_0x2451('0x1a'),()=>{_0x4f823f[_0x2451('0x5')][_0x2451('0x15')](_0x2451('0x16'))[_0x2451('0x20')](),_0x22c255();}),_0x52228[_0x2451('0xf')][_0x2451('0x18')](_0x31e007),_0x3ea7f5['children'][_0x2451('0x18')](_0x256d37),_0x5bcfcb[_0x2451('0x7')][_0x2451('0x9')]([_0x52228,_0x3ea7f5]),_0x39efe5['on']('change:isOpen',()=>_0x4ff6a8()),_0x4017f6[_0x2451('0xa')][_0x2451('0x1c')]('isEnabled')['to'](_0x502e72,_0x2451('0x0'),_0x502e72,_0x2451('0xc'),_0x4f823f,'isReadOnly',(_0x54d96c,_0x34b9d3,_0x14fc4b)=>_0x54d96c&&_0x34b9d3&&!_0x14fc4b),_0x4017f6['on'](_0x2451('0x22'),()=>(_0x4f823f[_0x2451('0x6')][_0x2451('0x15')](_0x1864d2)[_0x2451('0xe')]({'name':_0x4017f6[_0x2451('0x17')]}),void _0x22c255())),_0x4017f6['on'](_0x2451('0x13'),()=>_0x4ff6a8()),_0x4017f6[_0x2451('0x4')](),_0x4ff6a8(),_0x39efe5;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xde60=['getRevision','_handleDiffChange','locale','diff','get','compareAgainstSelected','revisionHistory.viewerSidebarContainer','_handleEditorDataReady','getEarlierVisibleRevision','isEnabled','availableRevisionActions','isSelected','getRevisionsInDiff','newRevisionId','add','editor','timePeriodViews','RevisionsSidebar','isReady','Name\x20this\x20revision','getIndex','Restore\x20this\x20revision','bind','defaultRevisionActions','repository','name','_revisions','length','revisionSetName','config','getLaterVisibleRevision','plugins','action','_revisionViewer','Compare\x20against\x20selected','compare','requires','setName','remove','isVisible','revisionViews','_sidebarView','_handleRevisionSelected','change:diff','listenTo','_handleRevisionSetName','_revisionsRepository','element','highlightRevisions','restoreRevisionCallback'];(function(_0xd2f4a3,_0xde60db){const _0x3dfc9a=function(_0x5e881e){while(--_0x5e881e){_0xd2f4a3['push'](_0xd2f4a3['shift']());}};_0x3dfc9a(++_0xde60db);}(_0xde60,0x9b));const _0x3dfc=function(_0xd2f4a3,_0xde60db){_0xd2f4a3=_0xd2f4a3-0x0;let _0x3dfc9a=_0xde60[_0xd2f4a3];return _0x3dfc9a;};import{Plugin as _0x4ba570}from'ckeditor5/src/core';import _0x13ac89 from'./revisionssidebarview';import _0x3abb9d from'../../revisionviewer';export default class w extends _0x4ba570{static get['pluginName'](){return _0x3dfc('0xc');}static get[_0x3dfc('0x1f')](){return[_0x3abb9d];}constructor(_0x3d989e){super(_0x3d989e),this[_0x3dfc('0x1c')]=_0x3d989e[_0x3dfc('0x1a')][_0x3dfc('0x31')](_0x3abb9d),this[_0x3dfc('0x29')]=this['_revisionViewer'][_0x3dfc('0x13')],this[_0x3dfc('0x24')]=null;}['init'](){const _0x52e270=this[_0x3dfc('0x29')][_0x3dfc('0x15')],_0x39bec1=this['_createRevisionActions'](),_0x7ff4b6=this['editor'][_0x3dfc('0x18')]['get'](_0x3dfc('0x1'));this[_0x3dfc('0x24')]=new _0x13ac89(this[_0x3dfc('0xa')][_0x3dfc('0x2f')],_0x52e270,_0x39bec1),this[_0x3dfc('0x24')]['on']('revisionSelected',this[_0x3dfc('0x25')][_0x3dfc('0x11')](this)),this[_0x3dfc('0x24')]['on'](_0x3dfc('0x17'),this[_0x3dfc('0x28')][_0x3dfc('0x11')](this)),this['_sidebarView'][_0x3dfc('0x11')](_0x3dfc('0x4'))['to'](this['_revisionViewer']),this[_0x3dfc('0x24')][_0x3dfc('0xb')]['on'](_0x3dfc('0x9'),(_0xe3793c,_0x34bd77)=>{_0x34bd77[_0x3dfc('0x23')]['on'](_0x3dfc('0x9'),(_0x536132,_0x114449)=>{_0x114449[_0x3dfc('0x11')](_0x3dfc('0x4'),_0x3dfc('0xd'))['to'](this[_0x3dfc('0x1c')]);});}),this['_sidebarView']['render'](),this[_0x3dfc('0x27')](this[_0x3dfc('0xa')]['data'],'ready',this[_0x3dfc('0x2')]['bind'](this)),this[_0x3dfc('0x27')](this[_0x3dfc('0x1c')],_0x3dfc('0x26'),this['_handleDiffChange']['bind'](this)),_0x7ff4b6['appendChild'](this[_0x3dfc('0x24')][_0x3dfc('0x2a')]);}['destroy'](){this[_0x3dfc('0x24')][_0x3dfc('0x2a')][_0x3dfc('0x21')](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x571a04=this[_0x3dfc('0x29')][_0x3dfc('0x2d')](0x0);if(_0x571a04){const _0xedd4d=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x571a04['id']);this[_0x3dfc('0x1c')]['compare'](_0x571a04,_0xedd4d);}}[_0x3dfc('0x25')](_0x4ca28c,_0xdd913){const _0x43602b=this[_0x3dfc('0x29')][_0x3dfc('0x2d')](_0xdd913['id']),_0x520fa0=this[_0x3dfc('0x29')][_0x3dfc('0x3')](_0x43602b['id']);this[_0x3dfc('0x1c')][_0x3dfc('0x1e')](_0x43602b,_0x520fa0);}[_0x3dfc('0x28')](_0x4a5386,_0x46b117){this[_0x3dfc('0x29')][_0x3dfc('0x2d')](_0x46b117['id'])[_0x3dfc('0x20')](_0x46b117[_0x3dfc('0x14')]);}[_0x3dfc('0x2e')](_0x57e826,_0x115a77,_0x5c55cf){const _0x12c5da=this[_0x3dfc('0x29')][_0x3dfc('0x7')](_0x5c55cf);_0x12c5da['length']>0x2?(this['_sidebarView'][_0x3dfc('0x2b')](_0x12c5da),this[_0x3dfc('0x24')]['selectRevision'](null)):(this['_sidebarView'][_0x3dfc('0x2b')]([]),this[_0x3dfc('0x24')]['selectRevision'](_0x12c5da[0x0]));}['_createRevisionActions'](){const _0x1b47b2=this[_0x3dfc('0xa')],_0x333a00=w[_0x3dfc('0x5')],_0x599118=_0x1b47b2[_0x3dfc('0x18')]['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x599118['length'])return _0x599118['map'](_0x260c72=>{const _0x596280='string'==typeof _0x260c72?Object['assign']({},_0x333a00[_0x260c72]):_0x260c72;return _0x596280['action']=_0x596280[_0x3dfc('0x1b')]['bind'](this,_0x1b47b2),_0x596280[_0x3dfc('0x22')]&&(_0x596280[_0x3dfc('0x22')]=_0x596280[_0x3dfc('0x22')][_0x3dfc('0x11')](this,_0x1b47b2)),_0x596280;});}}w['availableRevisionActions']={'compareAgainstSelected':{'name':_0x3dfc('0x1d'),'action':({plugins:_0x17fa32},_0x43ab2d)=>{const _0xe2bccc=_0x17fa32[_0x3dfc('0x31')](_0x3abb9d),_0x4f0f2e=_0xe2bccc[_0x3dfc('0x13')];let _0x5afc56=_0xe2bccc[_0x3dfc('0x30')][_0x3dfc('0x8')],_0x59be66=_0x43ab2d['id'];_0x4f0f2e[_0x3dfc('0xf')](_0x5afc56)>_0x4f0f2e[_0x3dfc('0xf')](_0x59be66)&&([_0x5afc56,_0x59be66]=[_0x59be66,_0x5afc56]),_0xe2bccc['compare'](_0x5afc56,_0x59be66);},'isVisible':({plugins:_0x3efd57},_0x2a4859)=>{const _0x2d870c=_0x3efd57['get'](_0x3abb9d);return!(_0x2d870c[_0x3dfc('0x13')][_0x3dfc('0x7')](_0x2d870c['diff'])[_0x3dfc('0x16')]>0x2)&&!_0x2a4859[_0x3dfc('0x6')];}},'restoreRevision':{'name':_0x3dfc('0x10'),'action':(_0x422b23,{id:_0x1b7306})=>{_0x422b23[_0x3dfc('0x18')]['get']('revisionHistory')[_0x3dfc('0x2c')](_0x1b7306);},'isVisible':({plugins:_0x129e2b},_0x313fd7)=>!!_0x129e2b[_0x3dfc('0x31')](_0x3abb9d)[_0x3dfc('0x13')][_0x3dfc('0x19')](_0x313fd7['id'])},'nameRevision':{'name':_0x3dfc('0xe'),'action':({plugins:_0x2c4746},{id:_0x1c6c68,revisionNameView:_0x2f5ec3})=>{const _0x487aff=_0x2c4746[_0x3dfc('0x31')](_0x3abb9d),_0x50e9b9=_0x487aff[_0x3dfc('0x13')][_0x3dfc('0x3')](_0x1c6c68);_0x487aff[_0x3dfc('0x1e')](_0x1c6c68,_0x50e9b9),_0x2f5ec3['focus'](),_0x2f5ec3['fieldView']['select']();}}},w[_0x3dfc('0x12')]=[_0x3dfc('0x0'),'restoreRevision','nameRevision'];
23
+ const _0x319d=['element','_handleEditorDataReady','fieldView','isReady','locale','getLaterVisibleRevision','compare','RevisionsSidebar','bind','isEnabled','repository','revisionHistory.revisionActions','listenTo','revisionSetName','length','select','Restore\x20this\x20revision','_createRevisionActions','isVisible','selectRevision','appendChild','_revisionViewer','getEarlierVisibleRevision','add','get','getRevisionsInDiff','getRevision','compareAgainstSelected','diff','revisionHistory','getIndex','config','defaultRevisionActions','_revisions','newRevisionId','revisionHistory.viewerSidebarContainer','name','_handleDiffChange','highlightRevisions','_handleRevisionSetName','string','editor','focus','pluginName','init','Compare\x20against\x20selected','_revisionsRepository','availableRevisionActions','plugins','data','restoreRevisionCallback','change:diff','assign','_handleRevisionSelected','requires','revisionViews','_sidebarView','setName','map'];(function(_0x32c446,_0x319d4f){const _0x83812d=function(_0x3bd954){while(--_0x3bd954){_0x32c446['push'](_0x32c446['shift']());}};_0x83812d(++_0x319d4f);}(_0x319d,0x139));const _0x8381=function(_0x32c446,_0x319d4f){_0x32c446=_0x32c446-0x0;let _0x83812d=_0x319d[_0x32c446];return _0x83812d;};import{Plugin as _0x394d16}from'ckeditor5/src/core';import _0x5bb834 from'./revisionssidebarview';import _0x2c681a from'../../revisionviewer';export default class w extends _0x394d16{static get[_0x8381('0x19')](){return _0x8381('0x30');}static get[_0x8381('0x24')](){return[_0x2c681a];}constructor(_0x1de85a){super(_0x1de85a),this[_0x8381('0x3')]=_0x1de85a[_0x8381('0x1e')]['get'](_0x2c681a),this[_0x8381('0x1c')]=this[_0x8381('0x3')][_0x8381('0x33')],this[_0x8381('0x26')]=null;}[_0x8381('0x1a')](){const _0x5e6db2=this[_0x8381('0x1c')][_0x8381('0xf')],_0x1ac359=this[_0x8381('0x3a')](),_0x423b82=this[_0x8381('0x17')]['config']['get'](_0x8381('0x11'));this[_0x8381('0x26')]=new _0x5bb834(this[_0x8381('0x17')][_0x8381('0x2d')],_0x5e6db2,_0x1ac359),this[_0x8381('0x26')]['on']('revisionSelected',this[_0x8381('0x23')][_0x8381('0x31')](this)),this[_0x8381('0x26')]['on'](_0x8381('0x36'),this['_handleRevisionSetName'][_0x8381('0x31')](this)),this[_0x8381('0x26')][_0x8381('0x31')](_0x8381('0x32'))['to'](this[_0x8381('0x3')]),this[_0x8381('0x26')]['timePeriodViews']['on'](_0x8381('0x5'),(_0x5e5eb7,_0x2d6bd6)=>{_0x2d6bd6[_0x8381('0x25')]['on']('add',(_0x2f28ba,_0x805218)=>{_0x805218[_0x8381('0x31')](_0x8381('0x32'),_0x8381('0x2c'))['to'](this[_0x8381('0x3')]);});}),this[_0x8381('0x26')]['render'](),this[_0x8381('0x35')](this[_0x8381('0x17')][_0x8381('0x1f')],'ready',this[_0x8381('0x2a')]['bind'](this)),this[_0x8381('0x35')](this[_0x8381('0x3')],_0x8381('0x21'),this[_0x8381('0x13')][_0x8381('0x31')](this)),_0x423b82[_0x8381('0x2')](this[_0x8381('0x26')][_0x8381('0x29')]);}['destroy'](){this['_sidebarView'][_0x8381('0x29')]['remove'](),this[_0x8381('0x26')]['destroy']();}[_0x8381('0x2a')](){const _0x56546b=this['_revisionsRepository'][_0x8381('0x8')](0x0);if(_0x56546b){const _0x3ee4c4=this[_0x8381('0x1c')][_0x8381('0x4')](_0x56546b['id']);this[_0x8381('0x3')][_0x8381('0x2f')](_0x56546b,_0x3ee4c4);}}[_0x8381('0x23')](_0x37b5bf,_0x1c4704){const _0x32c095=this['_revisionsRepository'][_0x8381('0x8')](_0x1c4704['id']),_0x11e5dc=this[_0x8381('0x1c')]['getEarlierVisibleRevision'](_0x32c095['id']);this[_0x8381('0x3')][_0x8381('0x2f')](_0x32c095,_0x11e5dc);}[_0x8381('0x15')](_0xecf7e3,_0x1b4a3c){this[_0x8381('0x1c')]['getRevision'](_0x1b4a3c['id'])[_0x8381('0x27')](_0x1b4a3c[_0x8381('0x12')]);}[_0x8381('0x13')](_0x346a5c,_0x177f87,_0x48c9ba){const _0x319271=this[_0x8381('0x1c')][_0x8381('0x7')](_0x48c9ba);_0x319271['length']>0x2?(this[_0x8381('0x26')][_0x8381('0x14')](_0x319271),this[_0x8381('0x26')]['selectRevision'](null)):(this[_0x8381('0x26')]['highlightRevisions']([]),this[_0x8381('0x26')][_0x8381('0x1')](_0x319271[0x0]));}[_0x8381('0x3a')](){const _0x4abcb5=this['editor'],_0x5a74e0=w['availableRevisionActions'],_0xd481d6=_0x4abcb5[_0x8381('0xd')]['get'](_0x8381('0x34'))||w[_0x8381('0xe')];if(_0xd481d6[_0x8381('0x37')])return _0xd481d6[_0x8381('0x28')](_0x415380=>{const _0x527057=_0x8381('0x16')==typeof _0x415380?Object[_0x8381('0x22')]({},_0x5a74e0[_0x415380]):_0x415380;return _0x527057['action']=_0x527057['action'][_0x8381('0x31')](this,_0x4abcb5),_0x527057[_0x8381('0x0')]&&(_0x527057[_0x8381('0x0')]=_0x527057[_0x8381('0x0')][_0x8381('0x31')](this,_0x4abcb5)),_0x527057;});}}w[_0x8381('0x1d')]={'compareAgainstSelected':{'name':_0x8381('0x1b'),'action':({plugins:_0x3a540d},_0x471e64)=>{const _0x37cd14=_0x3a540d['get'](_0x2c681a),_0x57c5ed=_0x37cd14[_0x8381('0x33')];let _0x4332e8=_0x37cd14[_0x8381('0xa')][_0x8381('0x10')],_0x21c10f=_0x471e64['id'];_0x57c5ed[_0x8381('0xc')](_0x4332e8)>_0x57c5ed[_0x8381('0xc')](_0x21c10f)&&([_0x4332e8,_0x21c10f]=[_0x21c10f,_0x4332e8]),_0x37cd14['compare'](_0x4332e8,_0x21c10f);},'isVisible':({plugins:_0x2118a8},_0x333251)=>{const _0x33e6c2=_0x2118a8[_0x8381('0x6')](_0x2c681a);return!(_0x33e6c2[_0x8381('0x33')][_0x8381('0x7')](_0x33e6c2['diff'])[_0x8381('0x37')]>0x2)&&!_0x333251['isSelected'];}},'restoreRevision':{'name':_0x8381('0x39'),'action':(_0x3cc18d,{id:_0x3e3fb1})=>{_0x3cc18d['config'][_0x8381('0x6')](_0x8381('0xb'))[_0x8381('0x20')](_0x3e3fb1);},'isVisible':({plugins:_0x283b17},_0x3d573b)=>!!_0x283b17[_0x8381('0x6')](_0x2c681a)[_0x8381('0x33')][_0x8381('0x2e')](_0x3d573b['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x3d4d20},{id:_0x4f6a4f,revisionNameView:_0x4ebc91})=>{const _0x5cb67b=_0x3d4d20[_0x8381('0x6')](_0x2c681a),_0x4aea24=_0x5cb67b['repository'][_0x8381('0x4')](_0x4f6a4f);_0x5cb67b[_0x8381('0x2f')](_0x4f6a4f,_0x4aea24),_0x4ebc91[_0x8381('0x18')](),_0x4ebc91[_0x8381('0x2b')][_0x8381('0x38')]();}}},w[_0x8381('0xe')]=[_0x8381('0x9'),'restoreRevision','nameRevision'];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x21d2=['Revision\x20history','content','setTemplate','ck-revision-history-sidebar__header','span','div'];(function(_0x4764ff,_0x21d2d9){const _0x236f05=function(_0x246a39){while(--_0x246a39){_0x4764ff['push'](_0x4764ff['shift']());}};_0x236f05(++_0x21d2d9);}(_0x21d2,0x190));const _0x236f=function(_0x4764ff,_0x21d2d9){_0x4764ff=_0x4764ff-0x0;let _0x236f05=_0x21d2[_0x4764ff];return _0x236f05;};import{View as _0x5137f7,IconView as _0x2de247}from'ckeditor5/src/ui';import{getTranslation as _0x3e1290}from'../../utils/common-translations';import _0x17c13b from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x5137f7{constructor(_0x362620){super(_0x362620);const _0x5cb1be=new _0x2de247();_0x5cb1be[_0x236f('0x3')]=_0x17c13b,this[_0x236f('0x4')]({'tag':_0x236f('0x1'),'attributes':{'class':['ck','ck-reset_all',_0x236f('0x5')]},'children':[_0x5cb1be,{'tag':_0x236f('0x0'),'attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[_0x3e1290(_0x362620,_0x236f('0x2'))]}]});}}
23
+ const _0x4249=['ck-revision-history-sidebar__header','content','setTemplate','ck-revision-history-sidebar__header__label','span'];(function(_0x2dcd77,_0x4249af){const _0x41cfd7=function(_0xeff5db){while(--_0xeff5db){_0x2dcd77['push'](_0x2dcd77['shift']());}};_0x41cfd7(++_0x4249af);}(_0x4249,0x124));const _0x41cf=function(_0x2dcd77,_0x4249af){_0x2dcd77=_0x2dcd77-0x0;let _0x41cfd7=_0x4249[_0x2dcd77];return _0x41cfd7;};import{View as _0x36e386,IconView as _0x101900}from'ckeditor5/src/ui';import{getTranslation as _0x18e342}from'../../utils/common-translations';import _0x200c33 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x36e386{constructor(_0x2ffe01){super(_0x2ffe01);const _0x12ed25=new _0x101900();_0x12ed25[_0x41cf('0x4')]=_0x200c33,this[_0x41cf('0x0')]({'tag':'div','attributes':{'class':['ck','ck-reset_all',_0x41cf('0x3')]},'children':[_0x12ed25,{'tag':_0x41cf('0x2'),'attributes':{'class':['ck',_0x41cf('0x1')]},'children':[_0x18e342(_0x2ffe01,'Revision\x20history')]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1182=['removeRevision','createCollection','setName','div','startDate','delegate','locale','setTemplate','ck-revision-history-sidebar__time-period','localizedPeriodName','_revisionActions','find','remove','add','ck-revision-history-sidebar__time-period__revisions','span','addRevision','revisionViews'];(function(_0x459fa1,_0x1182a0){const _0x479316=function(_0x318410){while(--_0x318410){_0x459fa1['push'](_0x459fa1['shift']());}};_0x479316(++_0x1182a0);}(_0x1182,0x188));const _0x4793=function(_0x459fa1,_0x1182a0){_0x459fa1=_0x459fa1-0x0;let _0x479316=_0x1182[_0x459fa1];return _0x479316;};import{View as _0x186cb5}from'ckeditor5/src/ui';import _0x1b176d from'../revision/revisionview';import{getDateTimePeriodInfo as _0xe53b06}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x186cb5{constructor(_0x17c666,_0x1bf772,_0x2cc150){super(_0x17c666);const _0x3b5847=_0xe53b06(_0x1bf772,this[_0x4793('0xa')]['uiLanguage'])[_0x4793('0xd')];this[_0x4793('0x8')]=_0x1bf772,this[_0x4793('0x3')]=this[_0x4793('0x5')](),this[_0x4793('0xe')]=_0x2cc150,this[_0x4793('0x3')][_0x4793('0x9')]('select')['to'](this),this[_0x4793('0x3')]['delegate'](_0x4793('0x6'))['to'](this),this[_0x4793('0xb')]({'tag':_0x4793('0x7'),'attributes':{'class':['ck',_0x4793('0xc')]},'children':[{'tag':_0x4793('0x1'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x3b5847}]},{'tag':_0x4793('0x7'),'attributes':{'class':['ck',_0x4793('0x0')]},'children':this[_0x4793('0x3')]}]});}[_0x4793('0x2')](_0xa37149){const _0x9b989f=new _0x1b176d(this[_0x4793('0xa')],_0xa37149,this['_revisionActions']);this[_0x4793('0x3')][_0x4793('0x11')](_0x9b989f);}[_0x4793('0x4')](_0x26a577){const _0x1eab5d=this[_0x4793('0x3')][_0x4793('0xf')](_0x13642e=>_0x13642e['id']===_0x26a577['id']);this['revisionViews'][_0x4793('0x10')](_0x1eab5d);}}
23
+ const _0x49fc=['_revisionActions','div','select','remove','add','locale','setTemplate','span','ck-revision-history-sidebar__time-period__label','setName','ck-revision-history-sidebar__time-period','addRevision','uiLanguage','ck-revision-history-sidebar__time-period__revisions','startDate','revisionViews','find'];(function(_0x591d18,_0x49fc26){const _0x2dacab=function(_0xf3a845){while(--_0xf3a845){_0x591d18['push'](_0x591d18['shift']());}};_0x2dacab(++_0x49fc26);}(_0x49fc,0x1da));const _0x2dac=function(_0x591d18,_0x49fc26){_0x591d18=_0x591d18-0x0;let _0x2dacab=_0x49fc[_0x591d18];return _0x2dacab;};import{View as _0x58e9b8}from'ckeditor5/src/ui';import _0x8ef81c from'../revision/revisionview';import{getDateTimePeriodInfo as _0x1c10f2}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x58e9b8{constructor(_0x390c4a,_0x473dee,_0x193680){super(_0x390c4a);const _0xc21854=_0x1c10f2(_0x473dee,this[_0x2dac('0x7')][_0x2dac('0xe')])['localizedPeriodName'];this[_0x2dac('0x10')]=_0x473dee,this['revisionViews']=this['createCollection'](),this[_0x2dac('0x2')]=_0x193680,this[_0x2dac('0x0')]['delegate'](_0x2dac('0x4'))['to'](this),this[_0x2dac('0x0')]['delegate'](_0x2dac('0xb'))['to'](this),this[_0x2dac('0x8')]({'tag':_0x2dac('0x3'),'attributes':{'class':['ck',_0x2dac('0xc')]},'children':[{'tag':_0x2dac('0x9'),'attributes':{'class':['ck',_0x2dac('0xa')]},'children':[{'text':_0xc21854}]},{'tag':_0x2dac('0x3'),'attributes':{'class':['ck',_0x2dac('0xf')]},'children':this['revisionViews']}]});}[_0x2dac('0xd')](_0x25d0a1){const _0x2e11ce=new _0x8ef81c(this[_0x2dac('0x7')],_0x25d0a1,this[_0x2dac('0x2')]);this[_0x2dac('0x0')][_0x2dac('0x6')](_0x2e11ce);}['removeRevision'](_0xb4fcf6){const _0x339732=this[_0x2dac('0x0')][_0x2dac('0x1')](_0x3bc166=>_0x3bc166['id']===_0xb4fcf6['id']);this['revisionViews'][_0x2dac('0x5')](_0x339732);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x555e=['getTime','_getTimePeriodViewByStartDate','uiLanguage','delegate','_addRevision','some','setName','find','ck-revision-history-sidebar__timeline','render','_revisions','select','removeRevision','revisionSelected','highlight','createCollection','timePeriodViews','addRevision','locale','createdAt','remove','bindTemplate','highlightRevisions','unhighlight','map','ck-disabled','add','_removeRevision','revisionViews','div','fire','selectRevision','setTemplate','flat','startDate','set'];(function(_0x368e91,_0x555e5b){const _0x3b5301=function(_0x18290c){while(--_0x18290c){_0x368e91['push'](_0x368e91['shift']());}};_0x3b5301(++_0x555e5b);}(_0x555e,0x149));const _0x3b53=function(_0x368e91,_0x555e5b){_0x368e91=_0x368e91-0x0;let _0x3b5301=_0x555e[_0x368e91];return _0x3b5301;};import{View as _0x973040}from'ckeditor5/src/ui';import _0x54ffdc from'./revisionssidebartimeperiodview';import _0x2af638 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x4ec7ab}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x973040{constructor(_0x52483a,_0x43358d,_0x381bdc){super(_0x52483a);const _0x1acb3a=this[_0x3b53('0x10')];this[_0x3b53('0xb')]=this[_0x3b53('0xa')](),this['timePeriodViews']['delegate'](_0x3b53('0x6'))['to'](this),this[_0x3b53('0xb')][_0x3b53('0x22')](_0x3b53('0x1'))['to'](this),this[_0x3b53('0x5')]=_0x43358d,this['_revisionActions']=_0x381bdc,this['on'](_0x3b53('0x6'),(_0x58d366,_0x3dc8a9)=>{this[_0x3b53('0x19')](_0x3b53('0x8'),_0x3dc8a9);}),this['on'](_0x3b53('0x1'),(_0xd81bec,_0x1b8710)=>{this[_0x3b53('0x19')]('revisionSetName',_0x1b8710);}),this[_0x3b53('0x1e')]('isEnabled',!0x1),this[_0x3b53('0x1b')]({'tag':_0x3b53('0x18'),'attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new _0x2af638(_0x52483a),{'tag':'div','attributes':{'class':['ck',_0x3b53('0x3'),_0x1acb3a['if']('isEnabled',_0x3b53('0x14'),_0x230625=>!_0x230625)]},'children':this['timePeriodViews']}]});}[_0x3b53('0x4')](){super['render']();for(const _0x556ccb of this[_0x3b53('0x5')])this['_addRevision'](_0x556ccb);this[_0x3b53('0x5')]['on'](_0x3b53('0x15'),(_0x204619,_0x1dc1cd)=>{this[_0x3b53('0x23')](_0x1dc1cd);}),this[_0x3b53('0x5')]['on'](_0x3b53('0xf'),(_0x401b48,_0x4b8600)=>{this[_0x3b53('0x16')](_0x4b8600);});}get[_0x3b53('0x17')](){return this[_0x3b53('0xb')][_0x3b53('0x13')](_0x410738=>_0x410738['revisionViews'][_0x3b53('0x13')](_0x1d6178=>_0x1d6178))[_0x3b53('0x1c')]();}[_0x3b53('0x1a')](_0x8095cf){for(const _0x41a782 of this['revisionViews'])_0x8095cf&&_0x8095cf['id']===_0x41a782['id']?_0x41a782[_0x3b53('0x6')]():_0x41a782['deselect']();}[_0x3b53('0x11')](_0x4523de){for(const _0xf6106e of this[_0x3b53('0x17')])_0x4523de[_0x3b53('0x0')](({id:_0x752dac})=>_0x752dac===_0xf6106e['id'])?_0xf6106e[_0x3b53('0x9')]():_0xf6106e[_0x3b53('0x12')]();}['_addRevision'](_0x5cc8e4){const _0x463b54=_0x4ec7ab(_0x5cc8e4[_0x3b53('0xe')],this[_0x3b53('0xd')][_0x3b53('0x21')])['startDate'];let _0x19d953=this['timePeriodViews']['get'](0x0);_0x19d953&&_0x19d953['startDate'][_0x3b53('0x1f')]()===_0x463b54['getTime']()||(_0x19d953=new _0x54ffdc(this['locale'],_0x463b54,this['_revisionActions']),this[_0x3b53('0xb')][_0x3b53('0x15')](_0x19d953)),_0x19d953[_0x3b53('0xc')](_0x5cc8e4);}[_0x3b53('0x16')](_0x40a38f){const _0x5155ac=_0x4ec7ab(_0x40a38f['createdAt'],this[_0x3b53('0xd')][_0x3b53('0x21')])[_0x3b53('0x1d')];this[_0x3b53('0x20')](_0x5155ac)[_0x3b53('0x7')](_0x40a38f);}[_0x3b53('0x20')](_0x1d6cb1){return this[_0x3b53('0xb')][_0x3b53('0x2')](_0x5db1a1=>_0x5db1a1['startDate']['getTime']()===_0x1d6cb1[_0x3b53('0x1f')]());}}
23
+ const _0x455a=['map','ck-reset','isEnabled','remove','flat','unhighlight','ck-revision-history-sidebar','render','find','startDate','bindTemplate','add','_addRevision','setTemplate','div','select','_removeRevision','uiLanguage','set','createCollection','locale','getTime','_revisionActions','get','revisionViews','removeRevision','deselect','setName','ck-rounded-corners','_revisions','revisionSetName','createdAt','timePeriodViews','some','ck-revision-history-sidebar__timeline','addRevision'];(function(_0x917cdf,_0x455a28){const _0x300f96=function(_0x1fef3e){while(--_0x1fef3e){_0x917cdf['push'](_0x917cdf['shift']());}};_0x300f96(++_0x455a28);}(_0x455a,0x8a));const _0x300f=function(_0x917cdf,_0x455a28){_0x917cdf=_0x917cdf-0x0;let _0x300f96=_0x455a[_0x917cdf];return _0x300f96;};import{View as _0x330296}from'ckeditor5/src/ui';import _0x5d3406 from'./revisionssidebartimeperiodview';import _0x312521 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x5d149c}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x330296{constructor(_0x23efed,_0x4c0599,_0x4f68fa){super(_0x23efed);const _0x2d8ef9=this[_0x300f('0x10')];this[_0x300f('0x2')]=this[_0x300f('0x19')](),this[_0x300f('0x2')]['delegate'](_0x300f('0x15'))['to'](this),this[_0x300f('0x2')]['delegate'](_0x300f('0x21'))['to'](this),this[_0x300f('0x23')]=_0x4c0599,this[_0x300f('0x1c')]=_0x4f68fa,this['on'](_0x300f('0x15'),(_0x16dc36,_0x26a140)=>{this['fire']('revisionSelected',_0x26a140);}),this['on'](_0x300f('0x21'),(_0x315547,_0x3cbcc3)=>{this['fire'](_0x300f('0x0'),_0x3cbcc3);}),this[_0x300f('0x18')](_0x300f('0x8'),!0x1),this[_0x300f('0x13')]({'tag':_0x300f('0x14'),'attributes':{'class':['ck',_0x300f('0x7'),_0x300f('0x22'),_0x300f('0xc')]},'children':[new _0x312521(_0x23efed),{'tag':_0x300f('0x14'),'attributes':{'class':['ck',_0x300f('0x4'),_0x2d8ef9['if'](_0x300f('0x8'),'ck-disabled',_0x30490e=>!_0x30490e)]},'children':this['timePeriodViews']}]});}[_0x300f('0xd')](){super[_0x300f('0xd')]();for(const _0xa54058 of this[_0x300f('0x23')])this[_0x300f('0x12')](_0xa54058);this[_0x300f('0x23')]['on'](_0x300f('0x11'),(_0x1b9484,_0x221b1c)=>{this[_0x300f('0x12')](_0x221b1c);}),this[_0x300f('0x23')]['on'](_0x300f('0x9'),(_0x3ed6e9,_0x78b20f)=>{this[_0x300f('0x16')](_0x78b20f);});}get[_0x300f('0x1e')](){return this[_0x300f('0x2')]['map'](_0x2b7ced=>_0x2b7ced['revisionViews'][_0x300f('0x6')](_0x1eaadf=>_0x1eaadf))[_0x300f('0xa')]();}['selectRevision'](_0x5157e5){for(const _0x4f19e3 of this[_0x300f('0x1e')])_0x5157e5&&_0x5157e5['id']===_0x4f19e3['id']?_0x4f19e3[_0x300f('0x15')]():_0x4f19e3[_0x300f('0x20')]();}['highlightRevisions'](_0x3f0b29){for(const _0x166286 of this[_0x300f('0x1e')])_0x3f0b29[_0x300f('0x3')](({id:_0x1e769f})=>_0x1e769f===_0x166286['id'])?_0x166286['highlight']():_0x166286[_0x300f('0xb')]();}[_0x300f('0x12')](_0x300dcb){const _0x4e89f4=_0x5d149c(_0x300dcb[_0x300f('0x1')],this[_0x300f('0x1a')][_0x300f('0x17')])[_0x300f('0xf')];let _0x57be0c=this[_0x300f('0x2')][_0x300f('0x1d')](0x0);_0x57be0c&&_0x57be0c[_0x300f('0xf')][_0x300f('0x1b')]()===_0x4e89f4[_0x300f('0x1b')]()||(_0x57be0c=new _0x5d3406(this[_0x300f('0x1a')],_0x4e89f4,this[_0x300f('0x1c')]),this['timePeriodViews'][_0x300f('0x11')](_0x57be0c)),_0x57be0c[_0x300f('0x5')](_0x300dcb);}['_removeRevision'](_0x3489e5){const _0x4b4514=_0x5d149c(_0x3489e5[_0x300f('0x1')],this[_0x300f('0x1a')][_0x300f('0x17')])[_0x300f('0xf')];this['_getTimePeriodViewByStartDate'](_0x4b4514)[_0x300f('0x1f')](_0x3489e5);}['_getTimePeriodViewByStartDate'](_0x33f004){return this['timePeriodViews'][_0x300f('0xe')](_0x4d1520=>_0x4d1520['startDate'][_0x300f('0x1b')]()===_0x33f004[_0x300f('0x1b')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x33d6=['toRelativeCalendar','month','day','week','year','startOf','weekdayLong','hasSame','toJSDate','minus','fromJSDate','local'];(function(_0x39e7d0,_0x33d60d){const _0xad4886=function(_0x254da1){while(--_0x254da1){_0x39e7d0['push'](_0x39e7d0['shift']());}};_0xad4886(++_0x33d60d);}(_0x33d6,0x157));const _0xad48=function(_0x39e7d0,_0x33d60d){_0x39e7d0=_0x39e7d0-0x0;let _0xad4886=_0x33d6[_0x39e7d0];return _0xad4886;};import{DateTime as _0x2b2723}from'luxon';export function getDateTimePeriodInfo(_0x3e9d16,_0x32c974){const _0x3bd21d=_0x2b2723[_0xad48('0x3')](_0x3e9d16)['setLocale'](_0x32c974),_0x47ef0d=_0x2b2723[_0xad48('0x4')](),_0x13a011=_0x47ef0d[_0xad48('0x2')]({'days':0x1})[_0xad48('0xa')]('day');let _0x362d1b,_0x51402c;return _0x3bd21d[_0xad48('0x0')](_0x47ef0d,_0xad48('0x7'))?(_0x362d1b=_0x3bd21d[_0xad48('0xa')](_0xad48('0x7'))[_0xad48('0x1')](),_0x51402c=_0x3bd21d[_0xad48('0x5')]()):_0x3bd21d[_0xad48('0x0')](_0x13a011,_0xad48('0x7'))?(_0x362d1b=_0x13a011[_0xad48('0x1')](),_0x51402c=_0x3bd21d['toRelativeCalendar']()):_0x3bd21d[_0xad48('0x0')](_0x47ef0d,'week')?(_0x362d1b=_0x3bd21d[_0xad48('0xa')](_0xad48('0x8'))[_0xad48('0x1')](),_0x51402c=_0x3bd21d[_0xad48('0xb')]||''):_0x3bd21d['hasSame'](_0x47ef0d,_0xad48('0x9'))?(_0x362d1b=_0x3bd21d['startOf'](_0xad48('0x6'))['toJSDate'](),_0x51402c=_0x3bd21d['monthLong']||''):(_0x362d1b=_0x3bd21d[_0xad48('0xa')]('year')['toJSDate'](),_0x51402c=String(_0x3bd21d[_0xad48('0x9')])),{'startDate':_0x362d1b,'localizedPeriodName':_0x51402c};}
23
+ const _0x906d=['local','monthLong','toRelativeCalendar','year','month','toJSDate','hasSame','week','startOf','day','setLocale'];(function(_0x5f06f8,_0x906d0b){const _0xb2c6c6=function(_0x15984b){while(--_0x15984b){_0x5f06f8['push'](_0x5f06f8['shift']());}};_0xb2c6c6(++_0x906d0b);}(_0x906d,0x1f3));const _0xb2c6=function(_0x5f06f8,_0x906d0b){_0x5f06f8=_0x5f06f8-0x0;let _0xb2c6c6=_0x906d[_0x5f06f8];return _0xb2c6c6;};import{DateTime as _0x5e5d64}from'luxon';export function getDateTimePeriodInfo(_0x45095b,_0x4600a3){const _0x289887=_0x5e5d64['fromJSDate'](_0x45095b)[_0xb2c6('0x6')](_0x4600a3),_0x1d6ad4=_0x5e5d64[_0xb2c6('0x7')](),_0x29d991=_0x1d6ad4['minus']({'days':0x1})[_0xb2c6('0x4')]('day');let _0xb21344,_0x945140;return _0x289887['hasSame'](_0x1d6ad4,_0xb2c6('0x5'))?(_0xb21344=_0x289887['startOf'](_0xb2c6('0x5'))[_0xb2c6('0x1')](),_0x945140=_0x289887[_0xb2c6('0x9')]()):_0x289887[_0xb2c6('0x2')](_0x29d991,'day')?(_0xb21344=_0x29d991[_0xb2c6('0x1')](),_0x945140=_0x289887[_0xb2c6('0x9')]()):_0x289887[_0xb2c6('0x2')](_0x1d6ad4,_0xb2c6('0x3'))?(_0xb21344=_0x289887['startOf'](_0xb2c6('0x3'))[_0xb2c6('0x1')](),_0x945140=_0x289887['weekdayLong']||''):_0x289887['hasSame'](_0x1d6ad4,_0xb2c6('0xa'))?(_0xb21344=_0x289887[_0xb2c6('0x4')](_0xb2c6('0x0'))[_0xb2c6('0x1')](),_0x945140=_0x289887[_0xb2c6('0x8')]||''):(_0xb21344=_0x289887[_0xb2c6('0x4')](_0xb2c6('0xa'))[_0xb2c6('0x1')](),_0x945140=String(_0x289887[_0xb2c6('0xa')])),{'startDate':_0xb21344,'localizedPeriodName':_0x945140};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x580e=['isSuggestion','add','setTemplate','ck-revision-change__label','type','element','set','div','Removed\x20by','ck-annotation','data','ck-revision-change__'];(function(_0x283138,_0x580e4d){const _0x409975=function(_0x43065b){while(--_0x43065b){_0x283138['push'](_0x283138['shift']());}};_0x409975(++_0x580e4d);}(_0x580e,0x10c));const _0x4099=function(_0x283138,_0x580e4d){_0x283138=_0x283138-0x0;let _0x409975=_0x580e[_0x283138];return _0x409975;};import{View as _0x21bef0}from'ckeditor5/src/ui';import{getTranslation as _0x2c9994}from'../../utils/common-translations';export default class Z extends _0x21bef0{constructor(_0x31162c,_0x3c435b){super(_0x31162c),this['_model']=_0x3c435b,this['changeId']=_0x3c435b['id'];const _0x13fa45=this['bindTemplate'],_0x5d72d8=_0x2c9994(_0x31162c,_0x3c435b[_0x4099('0x6')][_0x4099('0x8')]?'Suggested\x20by':_0x4099('0x9')==_0x3c435b[_0x4099('0x0')]?'Added\x20by':_0x4099('0x4'));this[_0x4099('0x2')](_0x4099('0x0'),_0x3c435b[_0x4099('0x0')]),this[_0x4099('0xa')]({'tag':_0x4099('0x3'),'attributes':{'class':[_0x4099('0x5'),'ck-revision-change',_0x13fa45['to']('type',_0x34ed68=>_0x4099('0x7')+_0x34ed68)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':[_0x4099('0xb')]},'children':[{'text':_0x5d72d8}]},{'text':'\x20'+_0x3c435b['author']['name']}]}]});}['focus'](){this[_0x4099('0x1')]['focus']();}}
23
+ const _0x4ab6=['focus','set','_model','ck-revision-change__label','Added\x20by','Removed\x20by','ck-revision-change','div','author','type','data','isSuggestion','name','ck-revision-change__','add','changeId','bindTemplate','span','Suggested\x20by'];(function(_0x13dd2d,_0x4ab6ad){const _0x4b2f52=function(_0x5a79d2){while(--_0x5a79d2){_0x13dd2d['push'](_0x13dd2d['shift']());}};_0x4b2f52(++_0x4ab6ad);}(_0x4ab6,0xb7));const _0x4b2f=function(_0x13dd2d,_0x4ab6ad){_0x13dd2d=_0x13dd2d-0x0;let _0x4b2f52=_0x4ab6[_0x13dd2d];return _0x4b2f52;};import{View as _0x1bcc71}from'ckeditor5/src/ui';import{getTranslation as _0xe7dd55}from'../../utils/common-translations';export default class Z extends _0x1bcc71{constructor(_0x5186a5,_0x4b2d93){super(_0x5186a5),this[_0x4b2f('0x9')]=_0x4b2d93,this[_0x4b2f('0x3')]=_0x4b2d93['id'];const _0x3edfdf=this[_0x4b2f('0x4')],_0x58a8fd=_0xe7dd55(_0x5186a5,_0x4b2d93[_0x4b2f('0x11')][_0x4b2f('0x12')]?_0x4b2f('0x6'):_0x4b2f('0x2')==_0x4b2d93[_0x4b2f('0x10')]?_0x4b2f('0xb'):_0x4b2f('0xc'));this[_0x4b2f('0x8')](_0x4b2f('0x10'),_0x4b2d93[_0x4b2f('0x10')]),this['setTemplate']({'tag':_0x4b2f('0xe'),'attributes':{'class':['ck-annotation',_0x4b2f('0xd'),_0x3edfdf['to']('type',_0x28332f=>_0x4b2f('0x1')+_0x28332f)],'tabindex':-0x1},'children':[{'tag':_0x4b2f('0x5'),'children':[{'tag':_0x4b2f('0x5'),'attributes':{'class':[_0x4b2f('0xa')]},'children':[{'text':_0x58a8fd}]},{'text':'\x20'+_0x4b2d93[_0x4b2f('0xf')][_0x4b2f('0x0')]}]}]});}['focus'](){this['element'][_0x4b2f('0x7')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x207d=['numberOfChanges','_isStatusLabelVisible','currentChangeNumber','Show\x20previous\x20change','No\x20changes','isBackwardNavigationEnabled','ck-revision-history-ui__changes-navigation__navigation','_statusText','EDIT_X_OF_Y_REVISIONS','bindTemplate','forward','span','NUMBER_OF_CHANGES','Loading...','isEnabled','set','isReady','bind','fire','execute','Show\x20next\x20change','Total','setTemplate','ck-revision-history-ui','isNavigationMode','ck-revision-history-ui__changes-navigation'];(function(_0x2cc58f,_0x207d5b){const _0x21c671=function(_0x41937c){while(--_0x41937c){_0x2cc58f['push'](_0x2cc58f['shift']());}};_0x21c671(++_0x207d5b);}(_0x207d,0x120));const _0x21c6=function(_0x2cc58f,_0x207d5b){_0x2cc58f=_0x2cc58f-0x0;let _0x21c671=_0x207d[_0x2cc58f];return _0x21c671;};import{View as _0x3239ac,ButtonView as _0x11cdae,ToolbarSeparatorView as _0x154ddd}from'ckeditor5/src/ui';import{getTranslation as _0x3a0141}from'../../utils/common-translations';import _0x1a672b from'../../../theme/icons/arrow-up.svg';import _0x38d92f from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x3239ac{constructor(_0x1de011){super(_0x1de011);const _0x1eb3e9=this[_0x21c6('0x7')],_0x1ac240=new _0x11cdae(_0x1de011),_0x18a02e=new _0x11cdae(_0x1de011);this[_0x21c6('0xd')](_0x21c6('0x16'),!0x1),this[_0x21c6('0xd')](_0x21c6('0xe'),!0x1),this[_0x21c6('0xd')]('currentChangeNumber',0x0),this[_0x21c6('0xd')](_0x21c6('0x18'),0x0),this[_0x21c6('0xd')]('isForwardNavigationEnabled',!0x1),this[_0x21c6('0xd')](_0x21c6('0x3'),!0x1),this['bind'](_0x21c6('0x19'))['to'](this,'isReady',this,_0x21c6('0x18'),(_0x49a2b9,_0x56c07a)=>_0x49a2b9&&_0x56c07a>0x0),this[_0x21c6('0xf')](_0x21c6('0x5'))['to'](this,_0x21c6('0xe'),this,_0x21c6('0x0'),this,'numberOfChanges',this,'isNavigationMode',(_0x59faa4,_0x43f2f4,_0x577168,_0x29e1f1)=>{if(!_0x59faa4)return _0x3a0141(_0x1de011,_0x21c6('0xb'));if(!_0x577168)return _0x3a0141(_0x1de011,_0x21c6('0x2'));const _0x839653=_0x3a0141(_0x1de011,_0x21c6('0xa'),_0x577168);return _0x29e1f1?_0x3a0141(_0x1de011,'X_OF_Y_CHANGES',[_0x43f2f4+0x1,_0x577168]):_0x839653;}),_0x1ac240['set']({'label':_0x3a0141(_0x1de011,_0x21c6('0x1')),'tooltip':!0x0,'icon':_0x1a672b}),_0x18a02e[_0x21c6('0xd')]({'label':_0x3a0141(_0x1de011,_0x21c6('0x12')),'tooltip':!0x0,'icon':_0x38d92f}),_0x1ac240[_0x21c6('0xf')]('isEnabled')['to'](this,_0x21c6('0x3')),_0x18a02e[_0x21c6('0xf')](_0x21c6('0xc'))['to'](this,'isForwardNavigationEnabled'),_0x1ac240['on'](_0x21c6('0x11'),()=>this[_0x21c6('0x10')](_0x21c6('0x11'),'backward')),_0x18a02e['on']('execute',()=>this[_0x21c6('0x10')]('execute',_0x21c6('0x8'))),this[_0x21c6('0x14')]({'tag':'div','attributes':{'class':['ck',_0x21c6('0x15'),_0x21c6('0x17')]},'children':[{'tag':_0x21c6('0x9'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':_0x21c6('0x9'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x1eb3e9['if'](_0x21c6('0x19'),'ck-hidden',_0x7ab0e6=>!_0x7ab0e6)]},'children':[{'text':_0x1eb3e9['to'](_0x21c6('0x16'),_0x5372b1=>_0x5372b1?_0x3a0141(_0x1de011,_0x21c6('0x6'))+':\x20':_0x3a0141(_0x1de011,_0x21c6('0x13'))+':\x20')}]},{'text':_0x1eb3e9['to'](_0x21c6('0x5'))}]},new _0x154ddd(),{'tag':'div','attributes':{'class':[_0x21c6('0x4')]},'children':[_0x1ac240,_0x18a02e]}]});}}
23
+ const _0x53aa=['Show\x20next\x20change','ck-revision-history-ui__changes-navigation__navigation','isForwardNavigationEnabled','EDIT_X_OF_Y_REVISIONS','fire','div','Show\x20previous\x20change','Total','span','isReady','forward','currentChangeNumber','X_OF_Y_CHANGES','No\x20changes','_isStatusLabelVisible','bind','isNavigationMode','NUMBER_OF_CHANGES','ck-revision-history-ui__changes-navigation','backward','bindTemplate','isEnabled','ck-revision-history-ui__changes-navigation__wrapper','ck-revision-history-ui','ck-revision-history-ui__changes-navigation__label','numberOfChanges','isBackwardNavigationEnabled','execute','set','setTemplate','ck-hidden'];(function(_0x2be280,_0x53aad3){const _0x133c9d=function(_0x3af836){while(--_0x3af836){_0x2be280['push'](_0x2be280['shift']());}};_0x133c9d(++_0x53aad3);}(_0x53aa,0x11c));const _0x133c=function(_0x2be280,_0x53aad3){_0x2be280=_0x2be280-0x0;let _0x133c9d=_0x53aa[_0x2be280];return _0x133c9d;};import{View as _0x59874e,ButtonView as _0x51f7fa,ToolbarSeparatorView as _0x1d4bfc}from'ckeditor5/src/ui';import{getTranslation as _0x3d16af}from'../../utils/common-translations';import _0x294d8f from'../../../theme/icons/arrow-up.svg';import _0x1bd057 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x59874e{constructor(_0x4ead65){super(_0x4ead65);const _0x377edc=this[_0x133c('0xf')],_0x3ba03a=new _0x51f7fa(_0x4ead65),_0x50aece=new _0x51f7fa(_0x4ead65);this[_0x133c('0x17')]('isNavigationMode',!0x1),this[_0x133c('0x17')](_0x133c('0x4'),!0x1),this['set'](_0x133c('0x6'),0x0),this[_0x133c('0x17')](_0x133c('0x14'),0x0),this[_0x133c('0x17')]('isForwardNavigationEnabled',!0x1),this[_0x133c('0x17')](_0x133c('0x15'),!0x1),this[_0x133c('0xa')](_0x133c('0x9'))['to'](this,_0x133c('0x4'),this,_0x133c('0x14'),(_0x5e58da,_0x2a0696)=>_0x5e58da&&_0x2a0696>0x0),this[_0x133c('0xa')]('_statusText')['to'](this,_0x133c('0x4'),this,_0x133c('0x6'),this,_0x133c('0x14'),this,_0x133c('0xb'),(_0x51e041,_0x2f03cf,_0x58eb1a,_0x4e0f02)=>{if(!_0x51e041)return _0x3d16af(_0x4ead65,'Loading...');if(!_0x58eb1a)return _0x3d16af(_0x4ead65,_0x133c('0x8'));const _0x6aa967=_0x3d16af(_0x4ead65,_0x133c('0xc'),_0x58eb1a);return _0x4e0f02?_0x3d16af(_0x4ead65,_0x133c('0x7'),[_0x2f03cf+0x1,_0x58eb1a]):_0x6aa967;}),_0x3ba03a[_0x133c('0x17')]({'label':_0x3d16af(_0x4ead65,_0x133c('0x1')),'tooltip':!0x0,'icon':_0x294d8f}),_0x50aece[_0x133c('0x17')]({'label':_0x3d16af(_0x4ead65,_0x133c('0x1a')),'tooltip':!0x0,'icon':_0x1bd057}),_0x3ba03a[_0x133c('0xa')]('isEnabled')['to'](this,_0x133c('0x15')),_0x50aece['bind'](_0x133c('0x10'))['to'](this,_0x133c('0x1c')),_0x3ba03a['on'](_0x133c('0x16'),()=>this[_0x133c('0x1e')](_0x133c('0x16'),_0x133c('0xe'))),_0x50aece['on'](_0x133c('0x16'),()=>this[_0x133c('0x1e')]('execute',_0x133c('0x5'))),this[_0x133c('0x18')]({'tag':'div','attributes':{'class':['ck',_0x133c('0x12'),_0x133c('0xd')]},'children':[{'tag':'span','attributes':{'class':[_0x133c('0x11')]},'children':[{'tag':_0x133c('0x3'),'attributes':{'class':[_0x133c('0x13'),_0x377edc['if'](_0x133c('0x9'),_0x133c('0x19'),_0x4a9c31=>!_0x4a9c31)]},'children':[{'text':_0x377edc['to'](_0x133c('0xb'),_0x599180=>_0x599180?_0x3d16af(_0x4ead65,_0x133c('0x1d'))+':\x20':_0x3d16af(_0x4ead65,_0x133c('0x2'))+':\x20')}]},{'text':_0x377edc['to']('_statusText')}]},new _0x1d4bfc(),{'tag':_0x133c('0x0'),'attributes':{'class':[_0x133c('0x1b')]},'children':[_0x3ba03a,_0x50aece]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x13d7=['editor','document','ck-editor__editable__loading-overlay','addClass','removeClass','change','pluginName','RevisionViewerLoadingOverlay','roots','show'];(function(_0x4fc3e1,_0x13d797){const _0x7c2262=function(_0x5dc3ba){while(--_0x5dc3ba){_0x4fc3e1['push'](_0x4fc3e1['shift']());}};_0x7c2262(++_0x13d797);}(_0x13d7,0x1b3));const _0x7c22=function(_0x4fc3e1,_0x13d797){_0x4fc3e1=_0x4fc3e1-0x0;let _0x7c2262=_0x13d7[_0x4fc3e1];return _0x7c2262;};import{Plugin as _0x390f7e}from'ckeditor5/src/core';const oe=_0x7c22('0x7');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x390f7e{static get[_0x7c22('0x1')](){return _0x7c22('0x2');}[_0x7c22('0x4')](){const _0x29c565=this['editor']['editing']['view'];_0x29c565['change'](_0xece33a=>{for(const _0x3d9d99 of _0x29c565[_0x7c22('0x6')]['roots'])_0xece33a[_0x7c22('0x8')](oe,_0x3d9d99);});}['hide'](){const _0x762a5f=this[_0x7c22('0x5')]['editing']['view'];_0x762a5f[_0x7c22('0x0')](_0x2af427=>{for(const _0x609cc9 of _0x762a5f['document'][_0x7c22('0x3')])_0x2af427[_0x7c22('0x9')](oe,_0x609cc9);});}}
23
+ const _0x25c0=['hide','show','roots','RevisionViewerLoadingOverlay','pluginName','change','removeClass','view','ck-editor__editable__loading-overlay','document','editor'];(function(_0x25be87,_0x25c048){const _0x2ac4e3=function(_0x3741a6){while(--_0x3741a6){_0x25be87['push'](_0x25be87['shift']());}};_0x2ac4e3(++_0x25c048);}(_0x25c0,0x102));const _0x2ac4=function(_0x25be87,_0x25c048){_0x25be87=_0x25be87-0x0;let _0x2ac4e3=_0x25c0[_0x25be87];return _0x2ac4e3;};import{Plugin as _0x603142}from'ckeditor5/src/core';const oe=_0x2ac4('0x3');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x603142{static get[_0x2ac4('0xa')](){return _0x2ac4('0x9');}[_0x2ac4('0x7')](){const _0x29667f=this[_0x2ac4('0x5')]['editing'][_0x2ac4('0x2')];_0x29667f[_0x2ac4('0x0')](_0x56d629=>{for(const _0x36599a of _0x29667f[_0x2ac4('0x4')]['roots'])_0x56d629['addClass'](oe,_0x36599a);});}[_0x2ac4('0x6')](){const _0x59fb44=this['editor']['editing'][_0x2ac4('0x2')];_0x59fb44['change'](_0x5c58c8=>{for(const _0x494747 of _0x59fb44[_0x2ac4('0x4')][_0x2ac4('0x8')])_0x5c58c8[_0x2ac4('0x1')](oe,_0x494747);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x15dc=['numberOfChanges','isForwardNavigationEnabled','componentFactory','config','showPreviousChange','requires','plugins','closeRevisionViewerCallback','pluginName','changesNavigation','isBackwardNavigationEnabled','showNextChange','execute','isNavigationMode','change:isReady','revisionHistory','exitToEditing','set','isEnabled','show','commands','listenTo','get','restoreRevision','add','Back\x20to\x20editing','bind'];(function(_0x3c7cd5,_0x15dc25){const _0x3023d8=function(_0x8fd313){while(--_0x8fd313){_0x3c7cd5['push'](_0x3c7cd5['shift']());}};_0x3023d8(++_0x15dc25);}(_0x15dc,0x162));const _0x3023=function(_0x3c7cd5,_0x15dc25){_0x3c7cd5=_0x3c7cd5-0x0;let _0x3023d8=_0x15dc[_0x3c7cd5];return _0x3023d8;};import{Plugin as _0x4251c4}from'ckeditor5/src/core';import{ButtonView as _0x3795d4}from'ckeditor5/src/ui';import _0x1d0cea from'./changesnavigationview';import _0x12a67d from'./../../revisionviewer';import _0x5e2680 from'./revisionviewerloadingoverlay';import{getTranslation as _0x4c3417}from'../../utils/common-translations';import _0x4c442a from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x4251c4{static get[_0x3023('0x5')](){return'RevisionViewerUI';}static get[_0x3023('0x2')](){return[_0x12a67d,_0x5e2680];}['init'](){const _0x22bea6=this['editor'],_0x32ea6b=_0x22bea6[_0x3023('0x3')][_0x3023('0x13')](_0x12a67d),_0x53a240=_0x22bea6[_0x3023('0x3')][_0x3023('0x13')](_0x5e2680);_0x22bea6['ui'][_0x3023('0x1a')]['add'](_0x3023('0xd'),_0x8bb2ad=>{const _0x386241=new _0x3795d4(_0x8bb2ad);return _0x386241[_0x3023('0xe')]({'label':_0x4c3417(_0x8bb2ad,_0x3023('0x16')),'icon':_0x4c442a,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this[_0x3023('0x12')](_0x386241,_0x3023('0x9'),()=>{_0x22bea6[_0x3023('0x0')][_0x3023('0x13')](_0x3023('0xc'))[_0x3023('0x4')]();}),_0x386241;}),_0x22bea6['ui'][_0x3023('0x1a')][_0x3023('0x15')](_0x3023('0x14'),_0x198944=>{const _0x4623bb=new _0x3795d4(_0x198944);return _0x4623bb[_0x3023('0xe')]({'label':_0x4c3417(_0x198944,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4623bb[_0x3023('0x17')](_0x3023('0xf'))['to'](_0x22bea6['commands'][_0x3023('0x13')]('restoreRevision')),this[_0x3023('0x12')](_0x4623bb,_0x3023('0x9'),()=>_0x22bea6['execute'](_0x3023('0x14'))),_0x4623bb;}),_0x22bea6['ui']['componentFactory']['add'](_0x3023('0x6'),_0x5ae11b=>{const _0x2c4b1a=new _0x1d0cea(_0x5ae11b),_0x124157=_0x22bea6[_0x3023('0x11')][_0x3023('0x13')](_0x3023('0x1')),_0x27afa2=_0x22bea6[_0x3023('0x11')]['get'](_0x3023('0x8'));return _0x2c4b1a[_0x3023('0x17')](_0x3023('0x7'))['to'](_0x124157,_0x3023('0xf')),_0x2c4b1a[_0x3023('0x17')](_0x3023('0x19'))['to'](_0x27afa2,'isEnabled'),_0x2c4b1a[_0x3023('0x17')]('isReady','currentChangeNumber',_0x3023('0x18'),_0x3023('0xa'))['to'](_0x32ea6b),this['listenTo'](_0x2c4b1a,_0x3023('0x9'),(_0x2e6a27,_0x21b195)=>{_0x22bea6[_0x3023('0x9')]('forward'===_0x21b195?_0x3023('0x8'):'showPreviousChange');}),_0x2c4b1a;}),_0x53a240[_0x3023('0x10')](),_0x32ea6b['on'](_0x3023('0xb'),(_0x5b993f,_0x28d345,_0x58bc2f)=>{_0x58bc2f?_0x53a240['hide']():_0x53a240[_0x3023('0x10')]();});}}
23
+ const _0x35d8=['isForwardNavigationEnabled','componentFactory','bind','execute','restoreRevision','add','requires','Back\x20to\x20editing','plugins','ck-revision-history-ui__back-to-editing','numberOfChanges','RevisionViewerUI','showNextChange','set','isEnabled','showPreviousChange','hide','config','commands','get','show','Restore\x20this\x20revision','changesNavigation','closeRevisionViewerCallback','editor','listenTo','init'];(function(_0x2a301a,_0x35d889){const _0x162732=function(_0x1dafc8){while(--_0x1dafc8){_0x2a301a['push'](_0x2a301a['shift']());}};_0x162732(++_0x35d889);}(_0x35d8,0x6f));const _0x1627=function(_0x2a301a,_0x35d889){_0x2a301a=_0x2a301a-0x0;let _0x162732=_0x35d8[_0x2a301a];return _0x162732;};import{Plugin as _0x2eb4c3}from'ckeditor5/src/core';import{ButtonView as _0x357169}from'ckeditor5/src/ui';import _0x409814 from'./changesnavigationview';import _0x5bffb7 from'./../../revisionviewer';import _0x4ae95a from'./revisionviewerloadingoverlay';import{getTranslation as _0x4022ab}from'../../utils/common-translations';import _0x1b4b31 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x2eb4c3{static get['pluginName'](){return _0x1627('0x8');}static get[_0x1627('0x3')](){return[_0x5bffb7,_0x4ae95a];}[_0x1627('0x17')](){const _0x40f759=this[_0x1627('0x15')],_0x3a4b56=_0x40f759[_0x1627('0x5')][_0x1627('0x10')](_0x5bffb7),_0x47dd4b=_0x40f759[_0x1627('0x5')][_0x1627('0x10')](_0x4ae95a);_0x40f759['ui'][_0x1627('0x19')][_0x1627('0x2')]('exitToEditing',_0x96375b=>{const _0x3da98e=new _0x357169(_0x96375b);return _0x3da98e[_0x1627('0xa')]({'label':_0x4022ab(_0x96375b,_0x1627('0x4')),'icon':_0x1b4b31,'withText':!0x0,'tooltip':!0x0,'class':_0x1627('0x6')}),this[_0x1627('0x16')](_0x3da98e,_0x1627('0x0'),()=>{_0x40f759[_0x1627('0xe')][_0x1627('0x10')]('revisionHistory')[_0x1627('0x14')]();}),_0x3da98e;}),_0x40f759['ui'][_0x1627('0x19')][_0x1627('0x2')](_0x1627('0x1'),_0x312d2d=>{const _0x1d9670=new _0x357169(_0x312d2d);return _0x1d9670['set']({'label':_0x4022ab(_0x312d2d,_0x1627('0x12')),'withText':!0x0,'tooltip':!0x0}),_0x1d9670[_0x1627('0x1a')]('isEnabled')['to'](_0x40f759['commands']['get']('restoreRevision')),this['listenTo'](_0x1d9670,_0x1627('0x0'),()=>_0x40f759[_0x1627('0x0')](_0x1627('0x1'))),_0x1d9670;}),_0x40f759['ui'][_0x1627('0x19')][_0x1627('0x2')](_0x1627('0x13'),_0x491e82=>{const _0x672fed=new _0x409814(_0x491e82),_0x33be16=_0x40f759[_0x1627('0xf')][_0x1627('0x10')](_0x1627('0xc')),_0x322aaa=_0x40f759[_0x1627('0xf')][_0x1627('0x10')](_0x1627('0x9'));return _0x672fed[_0x1627('0x1a')]('isBackwardNavigationEnabled')['to'](_0x33be16,_0x1627('0xb')),_0x672fed['bind'](_0x1627('0x18'))['to'](_0x322aaa,'isEnabled'),_0x672fed[_0x1627('0x1a')]('isReady','currentChangeNumber',_0x1627('0x7'),'isNavigationMode')['to'](_0x3a4b56),this[_0x1627('0x16')](_0x672fed,_0x1627('0x0'),(_0xe62f27,_0x36d1fe)=>{_0x40f759[_0x1627('0x0')]('forward'===_0x36d1fe?'showNextChange':_0x1627('0xc'));}),_0x672fed;}),_0x47dd4b[_0x1627('0x11')](),_0x3a4b56['on']('change:isReady',(_0xfd9ca1,_0x322641,_0x48ed7e)=>{_0x48ed7e?_0x47dd4b[_0x1627('0xd')]():_0x47dd4b[_0x1627('0x11')]();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x4d378f,_0x14c87f,_0x38dc49){const t=_0x4d378f['t'];switch(_0x14c87f){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'},_0x38dc49);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x38dc49);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 _0x14c87f;}}
23
+ export function getTranslation(_0x3468a3,_0x25f824,_0x26b47b){const t=_0x3468a3['t'];switch(_0x25f824){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'},_0x26b47b);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x26b47b);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 _0x25f824;}}