@ckeditor/ckeditor5-revision-history 37.0.1 → 37.1.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 (36) hide show
  1. package/build/revision-history.js +1 -1
  2. package/build/translations/sr.js +1 -1
  3. package/lang/translations/sr.po +1 -1
  4. package/package.json +6 -6
  5. package/src/changeitem.d.ts +5 -0
  6. package/src/changeitem.js +1 -1
  7. package/src/editor/revisionviewereditor.js +1 -1
  8. package/src/editor/revisionviewereditorui.js +1 -1
  9. package/src/editor/revisionviewereditoruiview.js +1 -1
  10. package/src/revision.js +1 -1
  11. package/src/revisiondiff.d.ts +1 -0
  12. package/src/revisiondiff.js +1 -1
  13. package/src/revisionhistory.js +1 -1
  14. package/src/revisionsrepository.js +1 -1
  15. package/src/revisiontracker.js +1 -1
  16. package/src/revisionviewer.js +1 -1
  17. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  18. package/src/ui/revision/revisionauthorview.js +1 -1
  19. package/src/ui/revision/revisionnameview.js +1 -1
  20. package/src/ui/revision/revisionview.js +1 -1
  21. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  22. package/src/ui/revision/subrevisionview.js +1 -1
  23. package/src/ui/revision/utils.js +1 -1
  24. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  25. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  26. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  27. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  28. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  29. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  30. package/src/ui/revisionssidebar/utils.js +1 -1
  31. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  32. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  33. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  34. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  35. package/src/utils/common-translations.js +1 -1
  36. package/theme/revisionviewer.css +16 -0
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xe680=['saveButtonView','panelView','isEnabled','children','bind','pluginName','addMany','add','RevisionTracker','remove','Open\x20revision\x20history','render','execute','editing','revisionHistory','isOpen','requires','get','items','submit','length','saveRevision','revisionName','reset','set','isReadOnly','plugins','buttonView','isReady','view','change:isOpen','config','init','focus'];(function(_0xd0bac,_0xe6809d){const _0x2ad366=function(_0x3b1b23){while(--_0x3b1b23){_0xd0bac['push'](_0xd0bac['shift']());}};_0x2ad366(++_0xe6809d);}(_0xe680,0x67));const _0x2ad3=function(_0xd0bac,_0xe6809d){_0xd0bac=_0xd0bac-0x0;let _0x2ad366=_0xe680[_0xd0bac];return _0x2ad366;};import{Plugin as _0x1f09f9}from'ckeditor5/src/core';import{ListView as _0x416ef1,ListItemView as _0x320c71,ButtonView as _0x131229,createDropdown as _0x1d454b}from'ckeditor5/src/ui';import _0x502aec from'../../revisiontracker';import _0x299599 from'./revisionhistorysaverevisionformview';import _0x4eebc8 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x1531f2}from'../../utils/common-translations';export default class u extends _0x1f09f9{static get[_0x2ad3('0x4')](){return'RevisionHistoryUI';}static get[_0x2ad3('0xf')](){return[_0x502aec];}[_0x2ad3('0x1f')](){const _0x54aa17=this['editor'],_0x2b1443=_0x54aa17[_0x2ad3('0x19')][_0x2ad3('0x10')](_0x2ad3('0x7'));_0x54aa17['ui']['componentFactory'][_0x2ad3('0x6')]('revisionHistory',_0x8e5dca=>{const _0x4cdf47=_0x1d454b(_0x8e5dca),_0x4e8335=_0x4cdf47[_0x2ad3('0x0')][_0x2ad3('0x2')],_0x5a887f=new _0x416ef1(_0x8e5dca),_0x232d8e=new _0x320c71(_0x8e5dca),_0x1016c5=new _0x131229(_0x8e5dca),_0x1897fe=new _0x320c71(_0x8e5dca),_0xaa0217=new _0x131229(_0x8e5dca),_0x786419=new _0x299599(_0x8e5dca);function _0x328db9(){_0x4e8335[_0x2ad3('0x13')]&&_0x4e8335[_0x2ad3('0x8')](0x0),_0x4e8335[_0x2ad3('0x6')](_0x5a887f);}function _0x2c8629(){_0x4cdf47[_0x2ad3('0xe')]=!0x1,_0x54aa17[_0x2ad3('0xc')][_0x2ad3('0x1c')][_0x2ad3('0x20')]();}return _0x4cdf47[_0x2ad3('0x3')](_0x2ad3('0x1'))['to'](_0x2b1443,_0x2ad3('0x1b'),_0x2b1443,_0x2ad3('0x1'),_0x54aa17,_0x2ad3('0x18'),(_0x152bee,_0x2affd1,_0x444283)=>_0x152bee&&_0x2affd1&&!_0x444283),_0x4cdf47[_0x2ad3('0x1a')][_0x2ad3('0x17')]({'icon':_0x4eebc8,'label':_0x1531f2(_0x8e5dca,'Revision\x20history'),'tooltip':!0x0}),_0x1016c5[_0x2ad3('0x17')]({'label':_0x1531f2(_0x8e5dca,'Save\x20current\x20revision'),'withText':!0x0}),_0x1016c5[_0x2ad3('0x3')](_0x2ad3('0x1'))['to'](_0x2b1443,_0x2ad3('0x1b'),_0x2b1443,_0x2ad3('0x1'),_0x54aa17,_0x2ad3('0x18'),(_0x3e857e,_0x4a7add,_0x1da4c1)=>_0x3e857e&&_0x4a7add&&!_0x1da4c1),_0x1016c5['on'](_0x2ad3('0xb'),()=>function(){_0x4e8335[_0x2ad3('0x13')]&&_0x4e8335['remove'](0x0),(_0x786419[_0x2ad3('0x16')](),_0x4e8335[_0x2ad3('0x6')](_0x786419),_0x786419[_0x2ad3('0x20')]());}()),_0xaa0217[_0x2ad3('0x17')]({'label':_0x1531f2(_0x8e5dca,_0x2ad3('0x9')),'withText':!0x0}),_0xaa0217['bind'](_0x2ad3('0x1'))['to'](_0x2b1443,_0x2ad3('0x1b'),_0x54aa17,'isReadOnly',(_0x44bfcc,_0x2399f4)=>_0x44bfcc&&!_0x2399f4),_0xaa0217['on']('execute',()=>{_0x54aa17[_0x2ad3('0x1e')][_0x2ad3('0x10')](_0x2ad3('0xd'))['showRevisionViewerCallback'](),_0x2c8629();}),_0x232d8e[_0x2ad3('0x2')][_0x2ad3('0x6')](_0x1016c5),_0x1897fe[_0x2ad3('0x2')][_0x2ad3('0x6')](_0xaa0217),_0x5a887f[_0x2ad3('0x11')][_0x2ad3('0x5')]([_0x232d8e,_0x1897fe]),_0x4cdf47['on'](_0x2ad3('0x1d'),()=>_0x328db9()),_0x786419[_0x2ad3('0x21')][_0x2ad3('0x3')](_0x2ad3('0x1'))['to'](_0x2b1443,_0x2ad3('0x1b'),_0x2b1443,'isEnabled',_0x54aa17,_0x2ad3('0x18'),(_0x7bc38e,_0x28f01f,_0x48e914)=>_0x7bc38e&&_0x28f01f&&!_0x48e914),_0x786419['on'](_0x2ad3('0x12'),()=>(_0x54aa17['plugins']['get'](_0x502aec)[_0x2ad3('0x14')]({'name':_0x786419[_0x2ad3('0x15')]}),void _0x2c8629())),_0x786419['on']('cancel',()=>_0x328db9()),_0x786419[_0x2ad3('0xa')](),_0x328db9(),_0x4cdf47;});}}
23
+ const _0x16c8=['isEnabled','render','pluginName','showRevisionViewerCallback','Revision\x20history','set','revisionHistory','change:isOpen','length','requires','Open\x20revision\x20history','cancel','view','componentFactory','get','isReady','buttonView','focus','add','isOpen','init','panelView','plugins','execute','config','isReadOnly','bind','RevisionHistoryUI','submit','addMany','saveButtonView','items','reset','children','remove'];(function(_0x557848,_0x16c875){const _0x183125=function(_0x59c5b6){while(--_0x59c5b6){_0x557848['push'](_0x557848['shift']());}};_0x183125(++_0x16c875);}(_0x16c8,0x1cb));const _0x1831=function(_0x557848,_0x16c875){_0x557848=_0x557848-0x0;let _0x183125=_0x16c8[_0x557848];return _0x183125;};import{Plugin as _0x2f8305}from'ckeditor5/src/core';import{ListView as _0x2209cd,ListItemView as _0x310b50,ButtonView as _0x2121a1,createDropdown as _0x366f81}from'ckeditor5/src/ui';import _0x5665ec from'../../revisiontracker';import _0x40b471 from'./revisionhistorysaverevisionformview';import _0x4dfd0f from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x468117}from'../../utils/common-translations';export default class u extends _0x2f8305{static get[_0x1831('0x21')](){return _0x1831('0x17');}static get[_0x1831('0x5')](){return[_0x5665ec];}[_0x1831('0x10')](){const _0x385c68=this['editor'],_0x2d558c=_0x385c68[_0x1831('0x12')]['get']('RevisionTracker');_0x385c68['ui'][_0x1831('0x9')][_0x1831('0xe')](_0x1831('0x2'),_0x24db32=>{const _0x21c090=_0x366f81(_0x24db32),_0x534e67=_0x21c090[_0x1831('0x11')]['children'],_0x62853b=new _0x2209cd(_0x24db32),_0x4d3a62=new _0x310b50(_0x24db32),_0x4a51fc=new _0x2121a1(_0x24db32),_0x4dd684=new _0x310b50(_0x24db32),_0x24f5ba=new _0x2121a1(_0x24db32),_0x30207c=new _0x40b471(_0x24db32);function _0x333eec(){_0x534e67[_0x1831('0x4')]&&_0x534e67[_0x1831('0x1e')](0x0),_0x534e67[_0x1831('0xe')](_0x62853b);}function _0x1a5d85(){_0x21c090[_0x1831('0xf')]=!0x1,_0x385c68['editing'][_0x1831('0x8')][_0x1831('0xd')]();}return _0x21c090[_0x1831('0x16')](_0x1831('0x1f'))['to'](_0x2d558c,_0x1831('0xb'),_0x2d558c,_0x1831('0x1f'),_0x385c68,_0x1831('0x15'),(_0x22981a,_0x37cdf8,_0x5e2471)=>_0x22981a&&_0x37cdf8&&!_0x5e2471),_0x21c090[_0x1831('0xc')]['set']({'icon':_0x4dfd0f,'label':_0x468117(_0x24db32,_0x1831('0x0')),'tooltip':!0x0}),_0x4a51fc[_0x1831('0x1')]({'label':_0x468117(_0x24db32,'Save\x20current\x20revision'),'withText':!0x0}),_0x4a51fc['bind'](_0x1831('0x1f'))['to'](_0x2d558c,'isReady',_0x2d558c,'isEnabled',_0x385c68,_0x1831('0x15'),(_0x209e16,_0x37c15d,_0x81a351)=>_0x209e16&&_0x37c15d&&!_0x81a351),_0x4a51fc['on']('execute',()=>function(){_0x534e67[_0x1831('0x4')]&&_0x534e67[_0x1831('0x1e')](0x0),(_0x30207c[_0x1831('0x1c')](),_0x534e67[_0x1831('0xe')](_0x30207c),_0x30207c[_0x1831('0xd')]());}()),_0x24f5ba[_0x1831('0x1')]({'label':_0x468117(_0x24db32,_0x1831('0x6')),'withText':!0x0}),_0x24f5ba[_0x1831('0x16')](_0x1831('0x1f'))['to'](_0x2d558c,'isReady',_0x385c68,'isReadOnly',(_0x175824,_0xeee686)=>_0x175824&&!_0xeee686),_0x24f5ba['on'](_0x1831('0x13'),()=>{_0x385c68[_0x1831('0x14')][_0x1831('0xa')](_0x1831('0x2'))[_0x1831('0x22')](),_0x1a5d85();}),_0x4d3a62['children'][_0x1831('0xe')](_0x4a51fc),_0x4dd684[_0x1831('0x1d')]['add'](_0x24f5ba),_0x62853b[_0x1831('0x1b')][_0x1831('0x19')]([_0x4d3a62,_0x4dd684]),_0x21c090['on'](_0x1831('0x3'),()=>_0x333eec()),_0x30207c[_0x1831('0x1a')][_0x1831('0x16')]('isEnabled')['to'](_0x2d558c,'isReady',_0x2d558c,_0x1831('0x1f'),_0x385c68,_0x1831('0x15'),(_0x73ee37,_0x57eb01,_0x529012)=>_0x73ee37&&_0x57eb01&&!_0x529012),_0x30207c['on'](_0x1831('0x18'),()=>(_0x385c68[_0x1831('0x12')][_0x1831('0xa')](_0x5665ec)['saveRevision']({'name':_0x30207c['revisionName']}),void _0x1a5d85())),_0x30207c['on'](_0x1831('0x7'),()=>_0x333eec()),_0x30207c[_0x1831('0x20')](),_0x333eec(),_0x21c090;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4931=['appendChild','diff','isEnabled','getIndex','length','add','plugins','_revisions','setName','revisionViews','listenTo','_revisionsRepository','nameRevision','revisionSelected','isReady','string','locale','ready','change:diff','revisionHistory.revisionActions','fieldView','isVisible','repository','isSelected','restoreRevisionCallback','focus','editor','config','getRevisionsInDiff','availableRevisionActions','compare','_handleEditorDataReady','timePeriodViews','_revisionViewer','getLaterVisibleRevision','getEarlierVisibleRevision','_createRevisionActions','_handleDiffChange','selectRevision','Compare\x20against\x20selected','remove','_handleRevisionSetName','element','RevisionsSidebar','action','get','requires','defaultRevisionActions','highlightRevisions','restoreRevision','destroy','getRevision','bind','revisionHistory','_sidebarView','pluginName','newRevisionId','init','revisionSetName','_handleRevisionSelected','select'];(function(_0x294051,_0x4931a3){const _0x37312e=function(_0x467f33){while(--_0x467f33){_0x294051['push'](_0x294051['shift']());}};_0x37312e(++_0x4931a3);}(_0x4931,0x111));const _0x3731=function(_0x294051,_0x4931a3){_0x294051=_0x294051-0x0;let _0x37312e=_0x4931[_0x294051];return _0x37312e;};import{Plugin as _0x2fb44e}from'ckeditor5/src/core';import _0x1bb5c5 from'./revisionssidebarview';import _0x36dc72 from'../../revisionviewer';export default class R extends _0x2fb44e{static get[_0x3731('0x1a')](){return _0x3731('0xe');}static get[_0x3731('0x11')](){return[_0x36dc72];}constructor(_0x476d75){super(_0x476d75),this[_0x3731('0x4')]=_0x476d75[_0x3731('0x26')]['get'](_0x36dc72),this[_0x3731('0x2b')]=this[_0x3731('0x4')]['repository'],this[_0x3731('0x19')]=null;}[_0x3731('0x1c')](){const _0x19088b=this['_revisionsRepository'][_0x3731('0x27')],_0x13a52e=this[_0x3731('0x7')](),_0x2a0b65=this[_0x3731('0x3a')][_0x3731('0x3b')]['get']('revisionHistory.viewerSidebarContainer');this[_0x3731('0x19')]=new _0x1bb5c5(this[_0x3731('0x3a')][_0x3731('0x30')],_0x19088b,_0x13a52e),this['_sidebarView']['on'](_0x3731('0x2d'),this[_0x3731('0x1e')]['bind'](this)),this[_0x3731('0x19')]['on'](_0x3731('0x1d'),this[_0x3731('0xc')]['bind'](this)),this['_sidebarView']['bind'](_0x3731('0x22'))['to'](this['_revisionViewer']),this[_0x3731('0x19')][_0x3731('0x3')]['on'](_0x3731('0x25'),(_0x150f5f,_0x52e0ac)=>{_0x52e0ac[_0x3731('0x29')]['on']('add',(_0x37454b,_0x311ad8)=>{_0x311ad8[_0x3731('0x17')]('isEnabled',_0x3731('0x2e'))['to'](this[_0x3731('0x4')]);});}),this[_0x3731('0x19')]['render'](),this[_0x3731('0x2a')](this['editor']['data'],_0x3731('0x31'),this[_0x3731('0x2')][_0x3731('0x17')](this)),this['listenTo'](this[_0x3731('0x4')],_0x3731('0x32'),this[_0x3731('0x8')]['bind'](this)),_0x2a0b65[_0x3731('0x20')](this[_0x3731('0x19')][_0x3731('0xd')]);}[_0x3731('0x15')](){this['_sidebarView']['element'][_0x3731('0xb')](),this[_0x3731('0x19')]['destroy']();}[_0x3731('0x2')](){const _0x4a434a=this[_0x3731('0x2b')][_0x3731('0x16')](0x0);if(_0x4a434a){const _0x39f31b=this[_0x3731('0x2b')][_0x3731('0x6')](_0x4a434a['id']);this[_0x3731('0x4')][_0x3731('0x1')](_0x4a434a,_0x39f31b);}}[_0x3731('0x1e')](_0x3259ba,_0x367d53){const _0x16fd08=this[_0x3731('0x2b')][_0x3731('0x16')](_0x367d53['id']),_0x473079=this['_revisionsRepository'][_0x3731('0x6')](_0x16fd08['id']);this[_0x3731('0x4')][_0x3731('0x1')](_0x16fd08,_0x473079);}[_0x3731('0xc')](_0x3462f3,_0x4de41b){this[_0x3731('0x2b')][_0x3731('0x16')](_0x4de41b['id'])[_0x3731('0x28')](_0x4de41b['name']);}[_0x3731('0x8')](_0x323747,_0x5338b1,_0x1f2362){const _0x1ff697=this[_0x3731('0x2b')][_0x3731('0x3c')](_0x1f2362);_0x1ff697[_0x3731('0x24')]>0x2?(this[_0x3731('0x19')][_0x3731('0x13')](_0x1ff697),this['_sidebarView']['selectRevision'](null)):(this[_0x3731('0x19')][_0x3731('0x13')]([]),this[_0x3731('0x19')][_0x3731('0x9')](_0x1ff697[0x0]));}[_0x3731('0x7')](){const _0x463c96=this[_0x3731('0x3a')],_0x3650f6=R[_0x3731('0x0')],_0x5f2169=_0x463c96[_0x3731('0x3b')][_0x3731('0x10')](_0x3731('0x33'))||R['defaultRevisionActions'];if(_0x5f2169[_0x3731('0x24')])return _0x5f2169['map'](_0x331789=>{const _0x5275ab=_0x3731('0x2f')==typeof _0x331789?Object['assign']({},_0x3650f6[_0x331789]):_0x331789;return _0x5275ab[_0x3731('0xf')]=_0x5275ab[_0x3731('0xf')][_0x3731('0x17')](this,_0x463c96),_0x5275ab[_0x3731('0x35')]&&(_0x5275ab['isVisible']=_0x5275ab[_0x3731('0x35')][_0x3731('0x17')](this,_0x463c96)),_0x5275ab;});}}R[_0x3731('0x0')]={'compareAgainstSelected':{'name':_0x3731('0xa'),'action':({plugins:_0x57f986},_0x47b72b)=>{const _0x39c60f=_0x57f986[_0x3731('0x10')](_0x36dc72),_0x2224c8=_0x39c60f['repository'];let _0x487e6d=_0x39c60f['diff'][_0x3731('0x1b')],_0x38b86c=_0x47b72b['id'];_0x2224c8[_0x3731('0x23')](_0x487e6d)>_0x2224c8[_0x3731('0x23')](_0x38b86c)&&([_0x487e6d,_0x38b86c]=[_0x38b86c,_0x487e6d]),_0x39c60f[_0x3731('0x1')](_0x487e6d,_0x38b86c);},'isVisible':({plugins:_0x4f7903},_0x3f2b6a)=>{const _0x10b2fa=_0x4f7903[_0x3731('0x10')](_0x36dc72);return!(_0x10b2fa[_0x3731('0x36')][_0x3731('0x3c')](_0x10b2fa[_0x3731('0x21')])['length']>0x2)&&!_0x3f2b6a[_0x3731('0x37')];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x153d6f,{id:_0x1d7f4d})=>{_0x153d6f[_0x3731('0x3b')]['get'](_0x3731('0x18'))[_0x3731('0x38')](_0x1d7f4d);},'isVisible':({plugins:_0x32a04d},_0x2f2dab)=>!!_0x32a04d['get'](_0x36dc72)['repository'][_0x3731('0x5')](_0x2f2dab['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x1faffa},{id:_0x207cc1,revisionNameView:_0x2e448e})=>{const _0x2ffdf7=_0x1faffa[_0x3731('0x10')](_0x36dc72),_0x15a3b4=_0x2ffdf7['repository'][_0x3731('0x6')](_0x207cc1);_0x2ffdf7['compare'](_0x207cc1,_0x15a3b4),_0x2e448e[_0x3731('0x39')](),_0x2e448e[_0x3731('0x34')][_0x3731('0x1f')]();}}},R[_0x3731('0x12')]=['compareAgainstSelected',_0x3731('0x14'),_0x3731('0x2c')];
23
+ const _0x3687=['getLaterVisibleRevision','defaultRevisionActions','fieldView','compare','pluginName','restoreRevision','revisionSetName','highlightRevisions','Compare\x20against\x20selected','repository','revisionHistory.viewerSidebarContainer','compareAgainstSelected','_handleRevisionSelected','restoreRevisionCallback','requires','isVisible','editor','availableRevisionActions','RevisionsSidebar','getEarlierVisibleRevision','setName','change:diff','isSelected','ready','_revisionViewer','_revisions','init','_handleDiffChange','_handleRevisionSetName','isEnabled','config','data','newRevisionId','element','diff','_sidebarView','render','length','getIndex','plugins','Name\x20this\x20revision','select','add','nameRevision','focus','action','bind','remove','Restore\x20this\x20revision','_createRevisionActions','getRevisionsInDiff','getRevision','_revisionsRepository','locale','get','_handleEditorDataReady','destroy'];(function(_0x45ddbb,_0x368734){const _0x15b804=function(_0x164760){while(--_0x164760){_0x45ddbb['push'](_0x45ddbb['shift']());}};_0x15b804(++_0x368734);}(_0x3687,0x189));const _0x15b8=function(_0x45ddbb,_0x368734){_0x45ddbb=_0x45ddbb-0x0;let _0x15b804=_0x3687[_0x45ddbb];return _0x15b804;};import{Plugin as _0xb6f079}from'ckeditor5/src/core';import _0x5edb21 from'./revisionssidebarview';import _0x2dfa87 from'../../revisionviewer';export default class d extends _0xb6f079{static get[_0x15b8('0xa')](){return _0x15b8('0x18');}static get[_0x15b8('0x14')](){return[_0x2dfa87];}constructor(_0x4ef3a0){super(_0x4ef3a0),this[_0x15b8('0x1e')]=_0x4ef3a0[_0x15b8('0x2d')]['get'](_0x2dfa87),this[_0x15b8('0x1')]=this[_0x15b8('0x1e')][_0x15b8('0xf')],this[_0x15b8('0x29')]=null;}[_0x15b8('0x20')](){const _0x288959=this[_0x15b8('0x1')][_0x15b8('0x1f')],_0x28b7b2=this[_0x15b8('0x37')](),_0x34040d=this[_0x15b8('0x16')][_0x15b8('0x24')][_0x15b8('0x3')](_0x15b8('0x10'));this[_0x15b8('0x29')]=new _0x5edb21(this[_0x15b8('0x16')][_0x15b8('0x2')],_0x288959,_0x28b7b2),this[_0x15b8('0x29')]['on']('revisionSelected',this[_0x15b8('0x12')]['bind'](this)),this[_0x15b8('0x29')]['on'](_0x15b8('0xc'),this[_0x15b8('0x22')][_0x15b8('0x34')](this)),this[_0x15b8('0x29')][_0x15b8('0x34')]('isEnabled')['to'](this[_0x15b8('0x1e')]),this[_0x15b8('0x29')]['timePeriodViews']['on']('add',(_0x960f4,_0x46689e)=>{_0x46689e['revisionViews']['on'](_0x15b8('0x30'),(_0x4a1bfc,_0x39a56e)=>{_0x39a56e[_0x15b8('0x34')](_0x15b8('0x23'),'isReady')['to'](this['_revisionViewer']);});}),this[_0x15b8('0x29')][_0x15b8('0x2a')](),this['listenTo'](this[_0x15b8('0x16')][_0x15b8('0x25')],_0x15b8('0x1d'),this[_0x15b8('0x4')]['bind'](this)),this['listenTo'](this[_0x15b8('0x1e')],_0x15b8('0x1b'),this[_0x15b8('0x21')]['bind'](this)),_0x34040d['appendChild'](this[_0x15b8('0x29')][_0x15b8('0x27')]);}[_0x15b8('0x5')](){this[_0x15b8('0x29')][_0x15b8('0x27')][_0x15b8('0x35')](),this['_sidebarView'][_0x15b8('0x5')]();}[_0x15b8('0x4')](){const _0x595533=this[_0x15b8('0x1')][_0x15b8('0x0')](0x0);if(_0x595533){const _0x1a7c28=this[_0x15b8('0x1')]['getEarlierVisibleRevision'](_0x595533['id']);this[_0x15b8('0x1e')][_0x15b8('0x9')](_0x595533,_0x1a7c28);}}['_handleRevisionSelected'](_0x5efa3a,_0xe35f6f){const _0x2baa1a=this['_revisionsRepository'][_0x15b8('0x0')](_0xe35f6f['id']),_0x3900a2=this[_0x15b8('0x1')][_0x15b8('0x19')](_0x2baa1a['id']);this[_0x15b8('0x1e')][_0x15b8('0x9')](_0x2baa1a,_0x3900a2);}['_handleRevisionSetName'](_0x42fb28,_0x49c4a0){this[_0x15b8('0x1')]['getRevision'](_0x49c4a0['id'])[_0x15b8('0x1a')](_0x49c4a0['name']);}[_0x15b8('0x21')](_0x284d7f,_0x1931d4,_0x4c2450){const _0x3190d9=this[_0x15b8('0x1')][_0x15b8('0x38')](_0x4c2450);_0x3190d9['length']>0x2?(this[_0x15b8('0x29')][_0x15b8('0xd')](_0x3190d9),this['_sidebarView']['selectRevision'](null)):(this[_0x15b8('0x29')][_0x15b8('0xd')]([]),this[_0x15b8('0x29')]['selectRevision'](_0x3190d9[0x0]));}[_0x15b8('0x37')](){const _0x8f3a5c=this[_0x15b8('0x16')],_0x13a475=d[_0x15b8('0x17')],_0x3713bc=_0x8f3a5c['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x3713bc[_0x15b8('0x2b')])return _0x3713bc['map'](_0x4dc29a=>{const _0x14460e='string'==typeof _0x4dc29a?Object['assign']({},_0x13a475[_0x4dc29a]):_0x4dc29a;return _0x14460e[_0x15b8('0x33')]=_0x14460e[_0x15b8('0x33')][_0x15b8('0x34')](this,_0x8f3a5c),_0x14460e[_0x15b8('0x15')]&&(_0x14460e[_0x15b8('0x15')]=_0x14460e[_0x15b8('0x15')][_0x15b8('0x34')](this,_0x8f3a5c)),_0x14460e;});}}d[_0x15b8('0x17')]={'compareAgainstSelected':{'name':_0x15b8('0xe'),'action':({plugins:_0x54727b},_0x40aa8d)=>{const _0x817950=_0x54727b['get'](_0x2dfa87),_0x4cbce9=_0x817950[_0x15b8('0xf')];let _0x319fdd=_0x817950[_0x15b8('0x28')][_0x15b8('0x26')],_0x5e9259=_0x40aa8d['id'];_0x4cbce9[_0x15b8('0x2c')](_0x319fdd)>_0x4cbce9['getIndex'](_0x5e9259)&&([_0x319fdd,_0x5e9259]=[_0x5e9259,_0x319fdd]),_0x817950[_0x15b8('0x9')](_0x319fdd,_0x5e9259);},'isVisible':({plugins:_0x46718c},_0x4aa888)=>{const _0x5707bf=_0x46718c['get'](_0x2dfa87);return!(_0x5707bf[_0x15b8('0xf')][_0x15b8('0x38')](_0x5707bf['diff'])[_0x15b8('0x2b')]>0x2)&&!_0x4aa888[_0x15b8('0x1c')];}},'restoreRevision':{'name':_0x15b8('0x36'),'action':(_0x2a7b4e,{id:_0x4a5770})=>{_0x2a7b4e[_0x15b8('0x24')][_0x15b8('0x3')]('revisionHistory')[_0x15b8('0x13')](_0x4a5770);},'isVisible':({plugins:_0x4004d8},_0x4811cc)=>!!_0x4004d8[_0x15b8('0x3')](_0x2dfa87)[_0x15b8('0xf')][_0x15b8('0x6')](_0x4811cc['id'])},'nameRevision':{'name':_0x15b8('0x2e'),'action':({plugins:_0x4a8f06},{id:_0x448600,revisionNameView:_0x43dc0f})=>{const _0x46b674=_0x4a8f06[_0x15b8('0x3')](_0x2dfa87),_0x51f6c1=_0x46b674[_0x15b8('0xf')][_0x15b8('0x19')](_0x448600);_0x46b674[_0x15b8('0x9')](_0x448600,_0x51f6c1),_0x43dc0f[_0x15b8('0x32')](),_0x43dc0f[_0x15b8('0x8')][_0x15b8('0x2f')]();}}},d[_0x15b8('0x7')]=[_0x15b8('0x11'),_0x15b8('0xb'),_0x15b8('0x31')];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1ea9=['ck-revision-history-sidebar__header__label','span','ck-revision-history-sidebar__header','ck-reset_all','Revision\x20history','setTemplate','content'];(function(_0x4dc427,_0x1ea969){const _0x302c6d=function(_0x54510f){while(--_0x54510f){_0x4dc427['push'](_0x4dc427['shift']());}};_0x302c6d(++_0x1ea969);}(_0x1ea9,0x1aa));const _0x302c=function(_0x4dc427,_0x1ea969){_0x4dc427=_0x4dc427-0x0;let _0x302c6d=_0x1ea9[_0x4dc427];return _0x302c6d;};import{View as _0x1977bc,IconView as _0x47fcbe}from'ckeditor5/src/ui';import{getTranslation as _0x84da1f}from'../../utils/common-translations';import _0x341007 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x1977bc{constructor(_0x27eee2){super(_0x27eee2);const _0x403f8a=new _0x47fcbe();_0x403f8a[_0x302c('0x0')]=_0x341007,this[_0x302c('0x6')]({'tag':'div','attributes':{'class':['ck',_0x302c('0x4'),_0x302c('0x3')]},'children':[_0x403f8a,{'tag':_0x302c('0x2'),'attributes':{'class':['ck',_0x302c('0x1')]},'children':[_0x84da1f(_0x27eee2,_0x302c('0x5'))]}]});}}
23
+ const _0x579e=['div','ck-reset_all','ck-revision-history-sidebar__header__label','span','content','Revision\x20history'];(function(_0x185c43,_0x579eaf){const _0x20577b=function(_0x17032b){while(--_0x17032b){_0x185c43['push'](_0x185c43['shift']());}};_0x20577b(++_0x579eaf);}(_0x579e,0xca));const _0x2057=function(_0x185c43,_0x579eaf){_0x185c43=_0x185c43-0x0;let _0x20577b=_0x579e[_0x185c43];return _0x20577b;};import{View as _0x3af641,IconView as _0x2c844f}from'ckeditor5/src/ui';import{getTranslation as _0x239c37}from'../../utils/common-translations';import _0x583a03 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x3af641{constructor(_0x415ae6){super(_0x415ae6);const _0x559825=new _0x2c844f();_0x559825[_0x2057('0x0')]=_0x583a03,this['setTemplate']({'tag':_0x2057('0x2'),'attributes':{'class':['ck',_0x2057('0x3'),'ck-revision-history-sidebar__header']},'children':[_0x559825,{'tag':_0x2057('0x5'),'attributes':{'class':['ck',_0x2057('0x4')]},'children':[_0x239c37(_0x415ae6,_0x2057('0x1'))]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5232=['uiLanguage','createCollection','revisionViews','removeRevision','delegate','localizedPeriodName','select','setName','_revisionActions','addRevision','span','find','locale','div','ck-revision-history-sidebar__time-period__revisions','ck-revision-history-sidebar__time-period__label','setTemplate'];(function(_0x94ac25,_0x5232fc){const _0x1696be=function(_0x14a144){while(--_0x14a144){_0x94ac25['push'](_0x94ac25['shift']());}};_0x1696be(++_0x5232fc);}(_0x5232,0x8b));const _0x1696=function(_0x94ac25,_0x5232fc){_0x94ac25=_0x94ac25-0x0;let _0x1696be=_0x5232[_0x94ac25];return _0x1696be;};import{View as _0x1a3d10}from'ckeditor5/src/ui';import _0x36b773 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x170031}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x1a3d10{constructor(_0x28b99c,_0x544e19,_0x5d8083){super(_0x28b99c);const _0x4ea3ca=_0x170031(_0x544e19,this[_0x1696('0x9')][_0x1696('0xe')])[_0x1696('0x2')];this['startDate']=_0x544e19,this[_0x1696('0x10')]=this[_0x1696('0xf')](),this[_0x1696('0x5')]=_0x5d8083,this[_0x1696('0x10')][_0x1696('0x1')](_0x1696('0x3'))['to'](this),this[_0x1696('0x10')]['delegate'](_0x1696('0x4'))['to'](this),this[_0x1696('0xd')]({'tag':_0x1696('0xa'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':_0x1696('0x7'),'attributes':{'class':['ck',_0x1696('0xc')]},'children':[{'text':_0x4ea3ca}]},{'tag':_0x1696('0xa'),'attributes':{'class':['ck',_0x1696('0xb')]},'children':this[_0x1696('0x10')]}]});}[_0x1696('0x6')](_0x488113){const _0xf3a196=new _0x36b773(this[_0x1696('0x9')],_0x488113,this['_revisionActions']);this['revisionViews']['add'](_0xf3a196);}[_0x1696('0x0')](_0x274d42){const _0xace63b=this[_0x1696('0x10')][_0x1696('0x8')](_0x52a164=>_0x52a164['id']===_0x274d42['id']);this['revisionViews']['remove'](_0xace63b);}}
23
+ const _0x6a3f=['localizedPeriodName','remove','_revisionActions','add','createCollection','ck-revision-history-sidebar__time-period__revisions','find','locale','ck-revision-history-sidebar__time-period','revisionViews','select','delegate','setName','div','span'];(function(_0x36aa20,_0x6a3fca){const _0x39853e=function(_0x5adf9d){while(--_0x5adf9d){_0x36aa20['push'](_0x36aa20['shift']());}};_0x39853e(++_0x6a3fca);}(_0x6a3f,0x149));const _0x3985=function(_0x36aa20,_0x6a3fca){_0x36aa20=_0x36aa20-0x0;let _0x39853e=_0x6a3f[_0x36aa20];return _0x39853e;};import{View as _0x26befa}from'ckeditor5/src/ui';import _0x5d20b1 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x844d0e}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class ki extends _0x26befa{constructor(_0xaac78f,_0x5e0c74,_0x24374a){super(_0xaac78f);const _0x3216c4=_0x844d0e(_0x5e0c74,this[_0x3985('0x8')]['uiLanguage'])[_0x3985('0x1')];this['startDate']=_0x5e0c74,this[_0x3985('0xa')]=this[_0x3985('0x5')](),this[_0x3985('0x3')]=_0x24374a,this[_0x3985('0xa')][_0x3985('0xc')](_0x3985('0xb'))['to'](this),this[_0x3985('0xa')][_0x3985('0xc')](_0x3985('0xd'))['to'](this),this['setTemplate']({'tag':_0x3985('0xe'),'attributes':{'class':['ck',_0x3985('0x9')]},'children':[{'tag':_0x3985('0x0'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x3216c4}]},{'tag':_0x3985('0xe'),'attributes':{'class':['ck',_0x3985('0x6')]},'children':this['revisionViews']}]});}['addRevision'](_0xf136f5){const _0x426a09=new _0x5d20b1(this['locale'],_0xf136f5,this[_0x3985('0x3')]);this[_0x3985('0xa')][_0x3985('0x4')](_0x426a09);}['removeRevision'](_0x24f560){const _0x3cc899=this['revisionViews'][_0x3985('0x7')](_0x56508c=>_0x56508c['id']===_0x24f560['id']);this[_0x3985('0xa')][_0x3985('0x2')](_0x3cc899);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x176b=['removeRevision','fire','find','timePeriodViews','add','render','set','ck-rounded-corners','createdAt','div','uiLanguage','getTime','startDate','delegate','_removeRevision','isEnabled','ck-disabled','ck-revision-history-sidebar','_getTimePeriodViewByStartDate','select','some','setTemplate','revisionSelected','highlight','bindTemplate','get','createCollection','_revisionActions','locale','_revisions','remove','map','_addRevision','revisionViews'];(function(_0x18c44c,_0x176bf2){const _0x77c2c9=function(_0xb20315){while(--_0xb20315){_0x18c44c['push'](_0x18c44c['shift']());}};_0x77c2c9(++_0x176bf2);}(_0x176b,0xcc));const _0x77c2=function(_0x18c44c,_0x176bf2){_0x18c44c=_0x18c44c-0x0;let _0x77c2c9=_0x176b[_0x18c44c];return _0x77c2c9;};import{View as _0x369c7d}from'ckeditor5/src/ui';import _0x5b5789 from'./revisionssidebartimeperiodview';import _0x16bb4a from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x19fb08}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x369c7d{constructor(_0x3bcd5b,_0x1c0ff6,_0x55cbc5){super(_0x3bcd5b);const _0x58d576=this[_0x77c2('0x18')];this[_0x77c2('0x3')]=this[_0x77c2('0x1a')](),this[_0x77c2('0x3')][_0x77c2('0xd')]('select')['to'](this),this[_0x77c2('0x3')]['delegate']('setName')['to'](this),this[_0x77c2('0x1d')]=_0x1c0ff6,this['_revisionActions']=_0x55cbc5,this['on'](_0x77c2('0x13'),(_0x393a59,_0x14010f)=>{this[_0x77c2('0x1')](_0x77c2('0x16'),_0x14010f);}),this['on']('setName',(_0x32dcd3,_0x3005b4)=>{this[_0x77c2('0x1')]('revisionSetName',_0x3005b4);}),this[_0x77c2('0x6')](_0x77c2('0xf'),!0x1),this[_0x77c2('0x15')]({'tag':_0x77c2('0x9'),'attributes':{'class':['ck','ck-reset',_0x77c2('0x7'),_0x77c2('0x11')]},'children':[new _0x16bb4a(_0x3bcd5b),{'tag':_0x77c2('0x9'),'attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x58d576['if']('isEnabled',_0x77c2('0x10'),_0x4a8546=>!_0x4a8546)]},'children':this[_0x77c2('0x3')]}]});}[_0x77c2('0x5')](){super[_0x77c2('0x5')]();for(const _0x238ec2 of this[_0x77c2('0x1d')])this[_0x77c2('0x20')](_0x238ec2);this[_0x77c2('0x1d')]['on'](_0x77c2('0x4'),(_0x5dfebd,_0x53ab89)=>{this[_0x77c2('0x20')](_0x53ab89);}),this[_0x77c2('0x1d')]['on'](_0x77c2('0x1e'),(_0x210a7e,_0x366e81)=>{this[_0x77c2('0xe')](_0x366e81);});}get['revisionViews'](){return this[_0x77c2('0x3')][_0x77c2('0x1f')](_0x5e868c=>_0x5e868c['revisionViews'][_0x77c2('0x1f')](_0x54d708=>_0x54d708))['flat']();}['selectRevision'](_0x29604a){for(const _0x159eda of this[_0x77c2('0x21')])_0x29604a&&_0x29604a['id']===_0x159eda['id']?_0x159eda['select']():_0x159eda['deselect']();}['highlightRevisions'](_0x231bfd){for(const _0x50ce3d of this[_0x77c2('0x21')])_0x231bfd[_0x77c2('0x14')](({id:_0x4b19b4})=>_0x4b19b4===_0x50ce3d['id'])?_0x50ce3d[_0x77c2('0x17')]():_0x50ce3d['unhighlight']();}[_0x77c2('0x20')](_0x17318e){const _0x1831ef=_0x19fb08(_0x17318e[_0x77c2('0x8')],this['locale'][_0x77c2('0xa')])[_0x77c2('0xc')];let _0xbe110c=this[_0x77c2('0x3')][_0x77c2('0x19')](0x0);_0xbe110c&&_0xbe110c[_0x77c2('0xc')][_0x77c2('0xb')]()===_0x1831ef[_0x77c2('0xb')]()||(_0xbe110c=new _0x5b5789(this[_0x77c2('0x1c')],_0x1831ef,this[_0x77c2('0x1b')]),this[_0x77c2('0x3')][_0x77c2('0x4')](_0xbe110c)),_0xbe110c['addRevision'](_0x17318e);}[_0x77c2('0xe')](_0x42120f){const _0x8a4216=_0x19fb08(_0x42120f[_0x77c2('0x8')],this[_0x77c2('0x1c')][_0x77c2('0xa')])[_0x77c2('0xc')];this[_0x77c2('0x12')](_0x8a4216)[_0x77c2('0x0')](_0x42120f);}[_0x77c2('0x12')](_0x5eaa5b){return this[_0x77c2('0x3')][_0x77c2('0x2')](_0x1d0d8a=>_0x1d0d8a[_0x77c2('0xc')][_0x77c2('0xb')]()===_0x5eaa5b[_0x77c2('0xb')]());}}
23
+ const _0x3cfd=['delegate','startDate','getTime','setName','fire','highlightRevisions','some','addRevision','ck-revision-history-sidebar__timeline','timePeriodViews','createdAt','highlight','revisionSetName','div','render','isEnabled','map','ck-reset','locale','_addRevision','ck-disabled','createCollection','_revisions','uiLanguage','removeRevision','_getTimePeriodViewByStartDate','select','flat','revisionViews','_revisionActions','selectRevision','ck-rounded-corners','deselect','add','revisionSelected','unhighlight'];(function(_0x834123,_0x3cfdd0){const _0x337403=function(_0x483adc){while(--_0x483adc){_0x834123['push'](_0x834123['shift']());}};_0x337403(++_0x3cfdd0);}(_0x3cfd,0x86));const _0x3374=function(_0x834123,_0x3cfdd0){_0x834123=_0x834123-0x0;let _0x337403=_0x3cfd[_0x834123];return _0x337403;};import{View as _0x8f369}from'ckeditor5/src/ui';import _0x1839dc from'./revisionssidebartimeperiodview';import _0x3dab71 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x3703f4}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x8f369{constructor(_0x4a5dea,_0x37a1d2,_0x41374c){super(_0x4a5dea);const _0x373446=this['bindTemplate'];this[_0x3374('0x13')]=this[_0x3374('0x1f')](),this[_0x3374('0x13')][_0x3374('0xa')](_0x3374('0x0'))['to'](this),this['timePeriodViews'][_0x3374('0xa')]('setName')['to'](this),this['_revisions']=_0x37a1d2,this[_0x3374('0x3')]=_0x41374c,this['on'](_0x3374('0x0'),(_0x114894,_0x48f6bb)=>{this['fire'](_0x3374('0x8'),_0x48f6bb);}),this['on'](_0x3374('0xd'),(_0x456483,_0xe5f072)=>{this[_0x3374('0xe')](_0x3374('0x16'),_0xe5f072);}),this['set'](_0x3374('0x19'),!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x3374('0x1b'),_0x3374('0x5'),'ck-revision-history-sidebar']},'children':[new _0x3dab71(_0x4a5dea),{'tag':_0x3374('0x17'),'attributes':{'class':['ck',_0x3374('0x12'),_0x373446['if'](_0x3374('0x19'),_0x3374('0x1e'),_0x487b7a=>!_0x487b7a)]},'children':this['timePeriodViews']}]});}['render'](){super[_0x3374('0x18')]();for(const _0x2f0b29 of this[_0x3374('0x20')])this[_0x3374('0x1d')](_0x2f0b29);this[_0x3374('0x20')]['on'](_0x3374('0x7'),(_0x18a162,_0x3953b6)=>{this['_addRevision'](_0x3953b6);}),this[_0x3374('0x20')]['on']('remove',(_0x17d300,_0x2f3c4e)=>{this['_removeRevision'](_0x2f3c4e);});}get['revisionViews'](){return this[_0x3374('0x13')][_0x3374('0x1a')](_0x4699b5=>_0x4699b5['revisionViews'][_0x3374('0x1a')](_0x4052a8=>_0x4052a8))[_0x3374('0x1')]();}[_0x3374('0x4')](_0x3f31de){for(const _0x2e770c of this[_0x3374('0x2')])_0x3f31de&&_0x3f31de['id']===_0x2e770c['id']?_0x2e770c['select']():_0x2e770c[_0x3374('0x6')]();}[_0x3374('0xf')](_0x56437b){for(const _0x4babd5 of this[_0x3374('0x2')])_0x56437b[_0x3374('0x10')](({id:_0x52cf22})=>_0x52cf22===_0x4babd5['id'])?_0x4babd5[_0x3374('0x15')]():_0x4babd5[_0x3374('0x9')]();}[_0x3374('0x1d')](_0x134805){const _0x28ef80=_0x3703f4(_0x134805[_0x3374('0x14')],this[_0x3374('0x1c')][_0x3374('0x21')])[_0x3374('0xb')];let _0x9a8694=this['timePeriodViews']['get'](0x0);_0x9a8694&&_0x9a8694[_0x3374('0xb')][_0x3374('0xc')]()===_0x28ef80['getTime']()||(_0x9a8694=new _0x1839dc(this[_0x3374('0x1c')],_0x28ef80,this['_revisionActions']),this['timePeriodViews'][_0x3374('0x7')](_0x9a8694)),_0x9a8694[_0x3374('0x11')](_0x134805);}['_removeRevision'](_0x581ff3){const _0x281d86=_0x3703f4(_0x581ff3['createdAt'],this['locale'][_0x3374('0x21')])[_0x3374('0xb')];this['_getTimePeriodViewByStartDate'](_0x281d86)[_0x3374('0x22')](_0x581ff3);}[_0x3374('0x23')](_0x41829d){return this[_0x3374('0x13')]['find'](_0x4b545a=>_0x4b545a[_0x3374('0xb')]['getTime']()===_0x41829d[_0x3374('0xc')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x760f=['monthLong','day','minus','week','setLocale','local','year','toJSDate','toRelativeCalendar','hasSame','weekdayLong','startOf','month'];(function(_0x3d061f,_0x760f22){const _0x1b02b3=function(_0x28d53c){while(--_0x28d53c){_0x3d061f['push'](_0x3d061f['shift']());}};_0x1b02b3(++_0x760f22);}(_0x760f,0x164));const _0x1b02=function(_0x3d061f,_0x760f22){_0x3d061f=_0x3d061f-0x0;let _0x1b02b3=_0x760f[_0x3d061f];return _0x1b02b3;};import{DateTime as _0x3447ca}from'luxon';export function getDateTimePeriodInfo(_0x3e5779,_0x357a9d){const _0x367a11=_0x3447ca['fromJSDate'](_0x3e5779)[_0x1b02('0xc')](_0x357a9d),_0x3efe3e=_0x3447ca[_0x1b02('0x0')](),_0x54c1e6=_0x3efe3e[_0x1b02('0xa')]({'days':0x1})[_0x1b02('0x6')]('day');let _0xa2deb6,_0x3f5773;return _0x367a11[_0x1b02('0x4')](_0x3efe3e,_0x1b02('0x9'))?(_0xa2deb6=_0x367a11['startOf'](_0x1b02('0x9'))[_0x1b02('0x2')](),_0x3f5773=_0x367a11[_0x1b02('0x3')]()):_0x367a11[_0x1b02('0x4')](_0x54c1e6,'day')?(_0xa2deb6=_0x54c1e6['toJSDate'](),_0x3f5773=_0x367a11[_0x1b02('0x3')]()):_0x367a11[_0x1b02('0x4')](_0x3efe3e,_0x1b02('0xb'))?(_0xa2deb6=_0x367a11[_0x1b02('0x6')](_0x1b02('0xb'))[_0x1b02('0x2')](),_0x3f5773=_0x367a11[_0x1b02('0x5')]||''):_0x367a11['hasSame'](_0x3efe3e,_0x1b02('0x1'))?(_0xa2deb6=_0x367a11[_0x1b02('0x6')](_0x1b02('0x7'))['toJSDate'](),_0x3f5773=_0x367a11[_0x1b02('0x8')]||''):(_0xa2deb6=_0x367a11[_0x1b02('0x6')](_0x1b02('0x1'))[_0x1b02('0x2')](),_0x3f5773=String(_0x367a11[_0x1b02('0x1')])),{'startDate':_0xa2deb6,'localizedPeriodName':_0x3f5773};}
23
+ const _0x98bb=['setLocale','hasSame','day','weekdayLong','local','startOf','week','toJSDate','fromJSDate','minus','year'];(function(_0x14a55f,_0x98bb96){const _0x533cdd=function(_0x2fee08){while(--_0x2fee08){_0x14a55f['push'](_0x14a55f['shift']());}};_0x533cdd(++_0x98bb96);}(_0x98bb,0xba));const _0x533c=function(_0x14a55f,_0x98bb96){_0x14a55f=_0x14a55f-0x0;let _0x533cdd=_0x98bb[_0x14a55f];return _0x533cdd;};import{DateTime as _0xde285}from'luxon';export function getDateTimePeriodInfo(_0x3e398c,_0x2d0743){const _0x45b92b=_0xde285[_0x533c('0x9')](_0x3e398c)[_0x533c('0x1')](_0x2d0743),_0x2ebd00=_0xde285[_0x533c('0x5')](),_0x588ad8=_0x2ebd00[_0x533c('0xa')]({'days':0x1})[_0x533c('0x6')](_0x533c('0x3'));let _0x5c07cd,_0x4e25df;return _0x45b92b[_0x533c('0x2')](_0x2ebd00,_0x533c('0x3'))?(_0x5c07cd=_0x45b92b[_0x533c('0x6')](_0x533c('0x3'))[_0x533c('0x8')](),_0x4e25df=_0x45b92b['toRelativeCalendar']()):_0x45b92b['hasSame'](_0x588ad8,'day')?(_0x5c07cd=_0x588ad8[_0x533c('0x8')](),_0x4e25df=_0x45b92b['toRelativeCalendar']()):_0x45b92b[_0x533c('0x2')](_0x2ebd00,_0x533c('0x7'))?(_0x5c07cd=_0x45b92b[_0x533c('0x6')](_0x533c('0x7'))['toJSDate'](),_0x4e25df=_0x45b92b[_0x533c('0x4')]||''):_0x45b92b[_0x533c('0x2')](_0x2ebd00,_0x533c('0x0'))?(_0x5c07cd=_0x45b92b[_0x533c('0x6')]('month')[_0x533c('0x8')](),_0x4e25df=_0x45b92b['monthLong']||''):(_0x5c07cd=_0x45b92b['startOf'](_0x533c('0x0'))[_0x533c('0x8')](),_0x4e25df=String(_0x45b92b[_0x533c('0x0')])),{'startDate':_0x5c07cd,'localizedPeriodName':_0x4e25df};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3bd6=['focus','span','element','data','add','bindTemplate','type','Removed\x20by','ck-revision-change__','name','set','ck-revision-change__label','ck-revision-change','isSuggestion','changeId'];(function(_0x1c5209,_0x3bd6e0){const _0x2fe48e=function(_0x22688b){while(--_0x22688b){_0x1c5209['push'](_0x1c5209['shift']());}};_0x2fe48e(++_0x3bd6e0);}(_0x3bd6,0xdb));const _0x2fe4=function(_0x1c5209,_0x3bd6e0){_0x1c5209=_0x1c5209-0x0;let _0x2fe48e=_0x3bd6[_0x1c5209];return _0x2fe48e;};import{View as _0x240e8a}from'ckeditor5/src/ui';import{getTranslation as _0x385902}from'../../utils/common-translations';export default class G extends _0x240e8a{constructor(_0x4bad85,_0x1cac09){super(_0x4bad85),this['_model']=_0x1cac09,this[_0x2fe4('0x5')]=_0x1cac09['id'];const _0x5200fb=this[_0x2fe4('0xb')],_0x50fa43=_0x385902(_0x4bad85,_0x1cac09[_0x2fe4('0x9')][_0x2fe4('0x4')]?'Suggested\x20by':_0x2fe4('0xa')==_0x1cac09[_0x2fe4('0xc')]?'Added\x20by':_0x2fe4('0xd'));this[_0x2fe4('0x1')](_0x2fe4('0xc'),_0x1cac09[_0x2fe4('0xc')]),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation',_0x2fe4('0x3'),_0x5200fb['to']('type',_0x512f23=>_0x2fe4('0xe')+_0x512f23)],'tabindex':-0x1},'children':[{'tag':_0x2fe4('0x7'),'children':[{'tag':'span','attributes':{'class':[_0x2fe4('0x2')]},'children':[{'text':_0x50fa43}]},{'text':'\x20'+_0x1cac09['author'][_0x2fe4('0x0')]}]}]});}[_0x2fe4('0x6')](){this[_0x2fe4('0x8')][_0x2fe4('0x6')]();}}
23
+ const _0x431c=['ck-revision-change__label','ck-revision-change__','element','ck-revision-change','Removed\x20by','data','isSuggestion','span','Added\x20by','set','author','type','ck-annotation','Suggested\x20by','bindTemplate','setTemplate','_model','div','focus','name'];(function(_0x4177b1,_0x431c6b){const _0x18c0e6=function(_0x3b1f57){while(--_0x3b1f57){_0x4177b1['push'](_0x4177b1['shift']());}};_0x18c0e6(++_0x431c6b);}(_0x431c,0x177));const _0x18c0=function(_0x4177b1,_0x431c6b){_0x4177b1=_0x4177b1-0x0;let _0x18c0e6=_0x431c[_0x4177b1];return _0x18c0e6;};import{View as _0x5da830}from'ckeditor5/src/ui';import{getTranslation as _0x3c2cd2}from'../../utils/common-translations';export default class Q extends _0x5da830{constructor(_0x974f7,_0x39582b){super(_0x974f7),this[_0x18c0('0x1')]=_0x39582b,this['changeId']=_0x39582b['id'];const _0x5b7fc1=this[_0x18c0('0x13')],_0x3d4c16=_0x3c2cd2(_0x974f7,_0x39582b[_0x18c0('0xa')][_0x18c0('0xb')]?_0x18c0('0x12'):'add'==_0x39582b[_0x18c0('0x10')]?_0x18c0('0xd'):_0x18c0('0x9'));this[_0x18c0('0xe')](_0x18c0('0x10'),_0x39582b[_0x18c0('0x10')]),this[_0x18c0('0x0')]({'tag':_0x18c0('0x2'),'attributes':{'class':[_0x18c0('0x11'),_0x18c0('0x8'),_0x5b7fc1['to'](_0x18c0('0x10'),_0x2c5c38=>_0x18c0('0x6')+_0x2c5c38)],'tabindex':-0x1},'children':[{'tag':_0x18c0('0xc'),'children':[{'tag':_0x18c0('0xc'),'attributes':{'class':[_0x18c0('0x5')]},'children':[{'text':_0x3d4c16}]},{'text':'\x20'+_0x39582b[_0x18c0('0xf')][_0x18c0('0x4')]}]}]});}[_0x18c0('0x3')](){this[_0x18c0('0x7')][_0x18c0('0x3')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x208f=['currentChangeNumber','execute','Loading...','bindTemplate','ck-revision-history-ui','Show\x20next\x20change','numberOfChanges','div','_isStatusLabelVisible','ck-revision-history-ui__changes-navigation__navigation','ck-revision-history-ui__changes-navigation__label','isReady','NUMBER_OF_CHANGES','Show\x20previous\x20change','Total','isForwardNavigationEnabled','isBackwardNavigationEnabled','backward','_statusText','fire','bind','set','forward','span','isNavigationMode','setTemplate','ck-revision-history-ui__changes-navigation__wrapper'];(function(_0x428281,_0x208f2f){const _0x4a9b26=function(_0x1f3301){while(--_0x1f3301){_0x428281['push'](_0x428281['shift']());}};_0x4a9b26(++_0x208f2f);}(_0x208f,0x17b));const _0x4a9b=function(_0x428281,_0x208f2f){_0x428281=_0x428281-0x0;let _0x4a9b26=_0x208f[_0x428281];return _0x4a9b26;};import{View as _0x5befde,ButtonView as _0x1e5561,ToolbarSeparatorView as _0x15e7ed}from'ckeditor5/src/ui';import{getTranslation as _0x2fcdc5}from'../../utils/common-translations';import _0x4e29aa from'../../../theme/icons/arrow-up.svg';import _0x27b2da from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x5befde{constructor(_0x58be4a){super(_0x58be4a);const _0xa87b71=this[_0x4a9b('0x2')],_0x50469d=new _0x1e5561(_0x58be4a),_0x1198fc=new _0x1e5561(_0x58be4a);this['set'](_0x4a9b('0x17'),!0x1),this['set'](_0x4a9b('0xa'),!0x1),this[_0x4a9b('0x14')](_0x4a9b('0x1a'),0x0),this['set'](_0x4a9b('0x5'),0x0),this[_0x4a9b('0x14')](_0x4a9b('0xe'),!0x1),this['set'](_0x4a9b('0xf'),!0x1),this[_0x4a9b('0x13')](_0x4a9b('0x7'))['to'](this,_0x4a9b('0xa'),this,_0x4a9b('0x5'),(_0x236c77,_0x477cd2)=>_0x236c77&&_0x477cd2>0x0),this[_0x4a9b('0x13')]('_statusText')['to'](this,_0x4a9b('0xa'),this,_0x4a9b('0x1a'),this,_0x4a9b('0x5'),this,'isNavigationMode',(_0x3fa218,_0x30c3ea,_0x2d5ddd,_0x1b7a60)=>{if(!_0x3fa218)return _0x2fcdc5(_0x58be4a,_0x4a9b('0x1'));if(!_0x2d5ddd)return _0x2fcdc5(_0x58be4a,'No\x20changes');const _0x4bec35=_0x2fcdc5(_0x58be4a,_0x4a9b('0xb'),_0x2d5ddd);return _0x1b7a60?_0x2fcdc5(_0x58be4a,'X_OF_Y_CHANGES',[_0x30c3ea+0x1,_0x2d5ddd]):_0x4bec35;}),_0x50469d['set']({'label':_0x2fcdc5(_0x58be4a,_0x4a9b('0xc')),'tooltip':!0x0,'icon':_0x4e29aa}),_0x1198fc[_0x4a9b('0x14')]({'label':_0x2fcdc5(_0x58be4a,_0x4a9b('0x4')),'tooltip':!0x0,'icon':_0x27b2da}),_0x50469d[_0x4a9b('0x13')]('isEnabled')['to'](this,_0x4a9b('0xf')),_0x1198fc[_0x4a9b('0x13')]('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x50469d['on'](_0x4a9b('0x0'),()=>this[_0x4a9b('0x12')](_0x4a9b('0x0'),_0x4a9b('0x10'))),_0x1198fc['on'](_0x4a9b('0x0'),()=>this[_0x4a9b('0x12')](_0x4a9b('0x0'),_0x4a9b('0x15'))),this[_0x4a9b('0x18')]({'tag':_0x4a9b('0x6'),'attributes':{'class':['ck',_0x4a9b('0x3'),'ck-revision-history-ui__changes-navigation']},'children':[{'tag':_0x4a9b('0x16'),'attributes':{'class':[_0x4a9b('0x19')]},'children':[{'tag':_0x4a9b('0x16'),'attributes':{'class':[_0x4a9b('0x9'),_0xa87b71['if'](_0x4a9b('0x7'),'ck-hidden',_0x597ace=>!_0x597ace)]},'children':[{'text':_0xa87b71['to'](_0x4a9b('0x17'),_0x3de1e7=>_0x3de1e7?_0x2fcdc5(_0x58be4a,'EDIT_X_OF_Y_REVISIONS')+':\x20':_0x2fcdc5(_0x58be4a,_0x4a9b('0xd'))+':\x20')}]},{'text':_0xa87b71['to'](_0x4a9b('0x11'))}]},new _0x15e7ed(),{'tag':'div','attributes':{'class':[_0x4a9b('0x8')]},'children':[_0x50469d,_0x1198fc]}]});}}
23
+ const _0x416d=['X_OF_Y_CHANGES','numberOfChanges','setTemplate','ck-revision-history-ui__changes-navigation__wrapper','No\x20changes','EDIT_X_OF_Y_REVISIONS','NUMBER_OF_CHANGES','isReady','isForwardNavigationEnabled','Show\x20previous\x20change','fire','isEnabled','_isStatusLabelVisible','backward','ck-revision-history-ui__changes-navigation','bindTemplate','_statusText','Show\x20next\x20change','bind','isNavigationMode','ck-hidden','span','ck-revision-history-ui__changes-navigation__navigation','forward','currentChangeNumber','set','div','isBackwardNavigationEnabled','execute'];(function(_0x1d373b,_0x416d89){const _0x3ca8b1=function(_0x4975fb){while(--_0x4975fb){_0x1d373b['push'](_0x1d373b['shift']());}};_0x3ca8b1(++_0x416d89);}(_0x416d,0xde));const _0x3ca8=function(_0x1d373b,_0x416d89){_0x1d373b=_0x1d373b-0x0;let _0x3ca8b1=_0x416d[_0x1d373b];return _0x3ca8b1;};import{View as _0x8f17b9,ButtonView as _0x286c7e,ToolbarSeparatorView as _0x57a3a5}from'ckeditor5/src/ui';import{getTranslation as _0x4b269e}from'../../utils/common-translations';import _0x3d3b89 from'../../../theme/icons/arrow-up.svg';import _0x43d16a from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x8f17b9{constructor(_0x2c643b){super(_0x2c643b);const _0x31b775=this[_0x3ca8('0x19')],_0x2bae66=new _0x286c7e(_0x2c643b),_0x14529f=new _0x286c7e(_0x2c643b);this[_0x3ca8('0x6')](_0x3ca8('0x0'),!0x1),this[_0x3ca8('0x6')](_0x3ca8('0x11'),!0x1),this[_0x3ca8('0x6')](_0x3ca8('0x5'),0x0),this[_0x3ca8('0x6')](_0x3ca8('0xb'),0x0),this[_0x3ca8('0x6')]('isForwardNavigationEnabled',!0x1),this[_0x3ca8('0x6')]('isBackwardNavigationEnabled',!0x1),this['bind']('_isStatusLabelVisible')['to'](this,_0x3ca8('0x11'),this,'numberOfChanges',(_0x2e624e,_0x245d93)=>_0x2e624e&&_0x245d93>0x0),this[_0x3ca8('0x1c')](_0x3ca8('0x1a'))['to'](this,_0x3ca8('0x11'),this,'currentChangeNumber',this,_0x3ca8('0xb'),this,_0x3ca8('0x0'),(_0x5e8af7,_0x466576,_0x426c9a,_0x1d879a)=>{if(!_0x5e8af7)return _0x4b269e(_0x2c643b,'Loading...');if(!_0x426c9a)return _0x4b269e(_0x2c643b,_0x3ca8('0xe'));const _0x8104e5=_0x4b269e(_0x2c643b,_0x3ca8('0x10'),_0x426c9a);return _0x1d879a?_0x4b269e(_0x2c643b,_0x3ca8('0xa'),[_0x466576+0x1,_0x426c9a]):_0x8104e5;}),_0x2bae66[_0x3ca8('0x6')]({'label':_0x4b269e(_0x2c643b,_0x3ca8('0x13')),'tooltip':!0x0,'icon':_0x3d3b89}),_0x14529f[_0x3ca8('0x6')]({'label':_0x4b269e(_0x2c643b,_0x3ca8('0x1b')),'tooltip':!0x0,'icon':_0x43d16a}),_0x2bae66['bind'](_0x3ca8('0x15'))['to'](this,_0x3ca8('0x8')),_0x14529f[_0x3ca8('0x1c')](_0x3ca8('0x15'))['to'](this,_0x3ca8('0x12')),_0x2bae66['on'](_0x3ca8('0x9'),()=>this[_0x3ca8('0x14')](_0x3ca8('0x9'),_0x3ca8('0x17'))),_0x14529f['on'](_0x3ca8('0x9'),()=>this[_0x3ca8('0x14')](_0x3ca8('0x9'),_0x3ca8('0x4'))),this[_0x3ca8('0xc')]({'tag':'div','attributes':{'class':['ck','ck-revision-history-ui',_0x3ca8('0x18')]},'children':[{'tag':'span','attributes':{'class':[_0x3ca8('0xd')]},'children':[{'tag':_0x3ca8('0x2'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x31b775['if'](_0x3ca8('0x16'),_0x3ca8('0x1'),_0x3e97d0=>!_0x3e97d0)]},'children':[{'text':_0x31b775['to'](_0x3ca8('0x0'),_0x2a32ac=>_0x2a32ac?_0x4b269e(_0x2c643b,_0x3ca8('0xf'))+':\x20':_0x4b269e(_0x2c643b,'Total')+':\x20')}]},{'text':_0x31b775['to'](_0x3ca8('0x1a'))}]},new _0x57a3a5(),{'tag':_0x3ca8('0x7'),'attributes':{'class':[_0x3ca8('0x3')]},'children':[_0x2bae66,_0x14529f]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2079=['editor','view','roots','document','pluginName','addClass','ck-editor__editable__loading-overlay','RevisionViewerLoadingOverlay','change'];(function(_0x3a6f40,_0x20791c){const _0x13c056=function(_0x32b456){while(--_0x32b456){_0x3a6f40['push'](_0x3a6f40['shift']());}};_0x13c056(++_0x20791c);}(_0x2079,0x159));const _0x13c0=function(_0x3a6f40,_0x20791c){_0x3a6f40=_0x3a6f40-0x0;let _0x13c056=_0x2079[_0x3a6f40];return _0x13c056;};import{Plugin as _0x21677a}from'ckeditor5/src/core';const oe=_0x13c0('0x3');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x21677a{static get[_0x13c0('0x1')](){return _0x13c0('0x4');}['show'](){const _0x12f3c7=this[_0x13c0('0x6')]['editing'][_0x13c0('0x7')];_0x12f3c7[_0x13c0('0x5')](_0x1a6f06=>{for(const _0x5dc34b of _0x12f3c7[_0x13c0('0x0')][_0x13c0('0x8')])_0x1a6f06[_0x13c0('0x2')](oe,_0x5dc34b);});}['hide'](){const _0x2e3770=this[_0x13c0('0x6')]['editing'][_0x13c0('0x7')];_0x2e3770[_0x13c0('0x5')](_0x57e180=>{for(const _0x255d33 of _0x2e3770[_0x13c0('0x0')]['roots'])_0x57e180['removeClass'](oe,_0x255d33);});}}
23
+ const _0x1df2=['view','removeClass','roots','hide','document','editing','RevisionViewerLoadingOverlay','pluginName','ck-editor__editable__loading-overlay','change','editor'];(function(_0x5871ef,_0x1df2b4){const _0x506c0a=function(_0x55e787){while(--_0x55e787){_0x5871ef['push'](_0x5871ef['shift']());}};_0x506c0a(++_0x1df2b4);}(_0x1df2,0x1d7));const _0x506c=function(_0x5871ef,_0x1df2b4){_0x5871ef=_0x5871ef-0x0;let _0x506c0a=_0x1df2[_0x5871ef];return _0x506c0a;};import{Plugin as _0x38c65e}from'ckeditor5/src/core';const ee=_0x506c('0xa');import'../../../theme/revisionviewerloadingoverlay.css';export default class oe extends _0x38c65e{static get[_0x506c('0x9')](){return _0x506c('0x8');}['show'](){const _0x813ef8=this[_0x506c('0x1')][_0x506c('0x7')]['view'];_0x813ef8[_0x506c('0x0')](_0x54628a=>{for(const _0x53578e of _0x813ef8[_0x506c('0x6')][_0x506c('0x4')])_0x54628a['addClass'](ee,_0x53578e);});}[_0x506c('0x5')](){const _0x46fa92=this[_0x506c('0x1')][_0x506c('0x7')][_0x506c('0x2')];_0x46fa92['change'](_0x47c647=>{for(const _0x402675 of _0x46fa92[_0x506c('0x6')][_0x506c('0x4')])_0x47c647[_0x506c('0x3')](ee,_0x402675);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x325e=['isReady','changesNavigation','requires','showNextChange','show','pluginName','set','hide','editor','config','exitToEditing','change:isReady','componentFactory','listenTo','restoreRevision','add','forward','bind','commands','showPreviousChange','isForwardNavigationEnabled','Back\x20to\x20editing','isEnabled','RevisionViewerUI','numberOfChanges','ck-revision-history-ui__back-to-editing','isBackwardNavigationEnabled','init','plugins','currentChangeNumber','Restore\x20this\x20revision','execute','get'];(function(_0x3e3e57,_0x325e95){const _0x2f194a=function(_0x15bdea){while(--_0x15bdea){_0x3e3e57['push'](_0x3e3e57['shift']());}};_0x2f194a(++_0x325e95);}(_0x325e,0x169));const _0x2f19=function(_0x3e3e57,_0x325e95){_0x3e3e57=_0x3e3e57-0x0;let _0x2f194a=_0x325e[_0x3e3e57];return _0x2f194a;};import{Plugin as _0x1f3935}from'ckeditor5/src/core';import{ButtonView as _0x2be07c}from'ckeditor5/src/ui';import _0xe08e37 from'./changesnavigationview';import _0xe86a11 from'./../../revisionviewer';import _0x19af58 from'./revisionviewerloadingoverlay';import{getTranslation as _0x3b80b5}from'../../utils/common-translations';import _0xd5d423 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class w extends _0x1f3935{static get[_0x2f19('0x7')](){return _0x2f19('0x19');}static get[_0x2f19('0x4')](){return[_0xe86a11,_0x19af58];}[_0x2f19('0x1d')](){const _0x501a67=this[_0x2f19('0xa')],_0x4a33a7=_0x501a67[_0x2f19('0x1e')][_0x2f19('0x1')](_0xe86a11),_0x1da4a5=_0x501a67['plugins']['get'](_0x19af58);_0x501a67['ui'][_0x2f19('0xe')][_0x2f19('0x11')](_0x2f19('0xc'),_0x3d4bf7=>{const _0x548719=new _0x2be07c(_0x3d4bf7);return _0x548719[_0x2f19('0x8')]({'label':_0x3b80b5(_0x3d4bf7,_0x2f19('0x17')),'icon':_0xd5d423,'withText':!0x0,'tooltip':!0x0,'class':_0x2f19('0x1b')}),this[_0x2f19('0xf')](_0x548719,'execute',()=>{_0x501a67[_0x2f19('0xb')]['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x548719;}),_0x501a67['ui']['componentFactory'][_0x2f19('0x11')]('restoreRevision',_0x28ea74=>{const _0x108f70=new _0x2be07c(_0x28ea74);return _0x108f70[_0x2f19('0x8')]({'label':_0x3b80b5(_0x28ea74,_0x2f19('0x20')),'withText':!0x0,'tooltip':!0x0}),_0x108f70['bind'](_0x2f19('0x18'))['to'](_0x501a67[_0x2f19('0x14')]['get'](_0x2f19('0x10'))),this[_0x2f19('0xf')](_0x108f70,_0x2f19('0x0'),()=>_0x501a67['execute'](_0x2f19('0x10'))),_0x108f70;}),_0x501a67['ui'][_0x2f19('0xe')][_0x2f19('0x11')](_0x2f19('0x3'),_0x5dccab=>{const _0x2835c1=new _0xe08e37(_0x5dccab),_0x190d99=_0x501a67[_0x2f19('0x14')][_0x2f19('0x1')](_0x2f19('0x15')),_0x31d3be=_0x501a67[_0x2f19('0x14')]['get'](_0x2f19('0x5'));return _0x2835c1[_0x2f19('0x13')](_0x2f19('0x1c'))['to'](_0x190d99,_0x2f19('0x18')),_0x2835c1[_0x2f19('0x13')](_0x2f19('0x16'))['to'](_0x31d3be,_0x2f19('0x18')),_0x2835c1['bind'](_0x2f19('0x2'),_0x2f19('0x1f'),_0x2f19('0x1a'),'isNavigationMode')['to'](_0x4a33a7),this[_0x2f19('0xf')](_0x2835c1,_0x2f19('0x0'),(_0x5bd7e3,_0x46dff8)=>{_0x501a67[_0x2f19('0x0')](_0x2f19('0x12')===_0x46dff8?_0x2f19('0x5'):_0x2f19('0x15'));}),_0x2835c1;}),_0x1da4a5['show'](),_0x4a33a7['on'](_0x2f19('0xd'),(_0x10afc9,_0x3322ff,_0x66adbc)=>{_0x66adbc?_0x1da4a5[_0x2f19('0x9')]():_0x1da4a5[_0x2f19('0x6')]();});}}
23
+ const _0x237e=['show','get','currentChangeNumber','restoreRevision','isReady','exitToEditing','add','pluginName','set','listenTo','init','componentFactory','showNextChange','execute','requires','isForwardNavigationEnabled','isBackwardNavigationEnabled','change:isReady','showPreviousChange','isEnabled','ck-revision-history-ui__back-to-editing','Back\x20to\x20editing','isNavigationMode','commands','forward','plugins'];(function(_0x1880c9,_0x237ece){const _0xfe9e25=function(_0x337b8d){while(--_0x337b8d){_0x1880c9['push'](_0x1880c9['shift']());}};_0xfe9e25(++_0x237ece);}(_0x237e,0xcb));const _0xfe9e=function(_0x1880c9,_0x237ece){_0x1880c9=_0x1880c9-0x0;let _0xfe9e25=_0x237e[_0x1880c9];return _0xfe9e25;};import{Plugin as _0x343e8c}from'ckeditor5/src/core';import{ButtonView as _0x578ff3}from'ckeditor5/src/ui';import _0x28eb69 from'./changesnavigationview';import _0x422c7a from'./../../revisionviewer';import _0x456bf0 from'./revisionviewerloadingoverlay';import{getTranslation as _0x2f3935}from'../../utils/common-translations';import _0x5b12b6 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class y extends _0x343e8c{static get[_0xfe9e('0xc')](){return'RevisionViewerUI';}static get[_0xfe9e('0x13')](){return[_0x422c7a,_0x456bf0];}[_0xfe9e('0xf')](){const _0x82c424=this['editor'],_0x40c641=_0x82c424['plugins'][_0xfe9e('0x6')](_0x422c7a),_0x101d1e=_0x82c424[_0xfe9e('0x4')]['get'](_0x456bf0);_0x82c424['ui'][_0xfe9e('0x10')][_0xfe9e('0xb')](_0xfe9e('0xa'),_0x264636=>{const _0x57f7c9=new _0x578ff3(_0x264636);return _0x57f7c9[_0xfe9e('0xd')]({'label':_0x2f3935(_0x264636,_0xfe9e('0x0')),'icon':_0x5b12b6,'withText':!0x0,'tooltip':!0x0,'class':_0xfe9e('0x19')}),this[_0xfe9e('0xe')](_0x57f7c9,'execute',()=>{_0x82c424['config'][_0xfe9e('0x6')]('revisionHistory')['closeRevisionViewerCallback']();}),_0x57f7c9;}),_0x82c424['ui'][_0xfe9e('0x10')][_0xfe9e('0xb')](_0xfe9e('0x8'),_0x2d6169=>{const _0x8139ca=new _0x578ff3(_0x2d6169);return _0x8139ca['set']({'label':_0x2f3935(_0x2d6169,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x8139ca['bind']('isEnabled')['to'](_0x82c424[_0xfe9e('0x2')][_0xfe9e('0x6')](_0xfe9e('0x8'))),this['listenTo'](_0x8139ca,_0xfe9e('0x12'),()=>_0x82c424[_0xfe9e('0x12')](_0xfe9e('0x8'))),_0x8139ca;}),_0x82c424['ui']['componentFactory'][_0xfe9e('0xb')]('changesNavigation',_0x313565=>{const _0xd44642=new _0x28eb69(_0x313565),_0x93d4f0=_0x82c424['commands'][_0xfe9e('0x6')](_0xfe9e('0x17')),_0xc7532a=_0x82c424[_0xfe9e('0x2')][_0xfe9e('0x6')]('showNextChange');return _0xd44642['bind'](_0xfe9e('0x15'))['to'](_0x93d4f0,_0xfe9e('0x18')),_0xd44642['bind'](_0xfe9e('0x14'))['to'](_0xc7532a,_0xfe9e('0x18')),_0xd44642['bind'](_0xfe9e('0x9'),_0xfe9e('0x7'),'numberOfChanges',_0xfe9e('0x1'))['to'](_0x40c641),this[_0xfe9e('0xe')](_0xd44642,_0xfe9e('0x12'),(_0xddf1e6,_0x2b67fc)=>{_0x82c424['execute'](_0xfe9e('0x3')===_0x2b67fc?_0xfe9e('0x11'):'showPreviousChange');}),_0xd44642;}),_0x101d1e['show'](),_0x40c641['on'](_0xfe9e('0x16'),(_0x1903b7,_0x1c44b3,_0x362066)=>{_0x362066?_0x101d1e['hide']():_0x101d1e[_0xfe9e('0x5')]();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x178336,_0x2f69d7,_0x2c5014){const t=_0x178336['t'];switch(_0x2f69d7){case'Revision\x20history':return t('Revision\x20history');case'Open\x20revision\x20history':return t('Open\x20revision\x20history');case'Restored':return t('Restored');case'Empty\x20document':return t('Empty\x20document');case'Initial\x20revision':return t('Initial\x20revision');case'Suggested\x20by':return t('Suggested\x20by');case'Added\x20by':return t('Added\x20by');case'Removed\x20by':return t('Removed\x20by');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Compare\x20against\x20selected':return t('Compare\x20against\x20selected');case'Name\x20this\x20revision':return t('Name\x20this\x20revision');case'Restore\x20this\x20revision':return t('Restore\x20this\x20revision');case'Back\x20to\x20editing':return t('Back\x20to\x20editing');case'Loading...':return t('Loading...');case'No\x20changes':return t('No\x20changes');case'NUMBER_OF_CHANGES':return t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0x2c5014);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2c5014);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision\x20(optional)':return t('Name\x20of\x20the\x20revision\x20(optional)');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});default:return _0x2f69d7;}}
23
+ export function getTranslation(_0x3d6086,_0x206058,_0x588f82){const t=_0x3d6086['t'];switch(_0x206058){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'},_0x588f82);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x588f82);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 _0x206058;}}
@@ -76,3 +76,19 @@
76
76
  opacity: 1;
77
77
  }
78
78
  }
79
+
80
+ .ck.ck-editor__editable_inline.ck-revision-history-root-add {
81
+ border: 3px solid var(--ck-color-suggestion-marker-insertion-border);
82
+
83
+ &.ck-revision-history-root--active {
84
+ border-color: var(--ck-color-suggestion-marker-insertion-border-active);
85
+ }
86
+ }
87
+
88
+ .ck.ck-editor__editable_inline.ck-revision-history-root-remove {
89
+ border: 3px solid var(--ck-color-suggestion-marker-deletion-border);
90
+
91
+ &.ck-revision-history-root--active {
92
+ border-color: var(--ck-color-suggestion-marker-deletion-border-active);
93
+ }
94
+ }