@ckeditor/ckeditor5-revision-history 38.0.0-rc.0 → 38.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +6 -6
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3cb4=['remove','requires','isReady','isOpen','Open\x20revision\x20history','editing','reset','Save\x20current\x20revision','render','init','RevisionHistoryUI','isEnabled','config','pluginName','focus','set','RevisionTracker','saveRevision','length','isReadOnly','children','editor','revisionHistory','cancel','get','saveButtonView','add','plugins','revisionName','componentFactory','buttonView','bind','view','Revision\x20history','addMany','execute','panelView','submit','items'];(function(_0x6068a0,_0x3cb482){const _0x2da2d4=function(_0x9295c0){while(--_0x9295c0){_0x6068a0['push'](_0x6068a0['shift']());}};_0x2da2d4(++_0x3cb482);}(_0x3cb4,0x7d));const _0x2da2=function(_0x6068a0,_0x3cb482){_0x6068a0=_0x6068a0-0x0;let _0x2da2d4=_0x3cb4[_0x6068a0];return _0x2da2d4;};import{Plugin as _0x3f3a3a}from'ckeditor5/src/core';import{ListView as _0x10e471,ListItemView as _0x4e3569,ButtonView as _0x4356c5,createDropdown as _0x317021}from'ckeditor5/src/ui';import _0x1f40e5 from'../../revisiontracker';import _0x527285 from'./revisionhistorysaverevisionformview';import _0x2388b5 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x3953fa}from'../../utils/common-translations';export default class u extends _0x3f3a3a{static get[_0x2da2('0x5')](){return _0x2da2('0x2');}static get[_0x2da2('0x20')](){return[_0x1f40e5];}[_0x2da2('0x1')](){const _0x5bc9ad=this[_0x2da2('0xd')],_0x492483=_0x5bc9ad[_0x2da2('0x13')][_0x2da2('0x10')](_0x2da2('0x8'));_0x5bc9ad['ui'][_0x2da2('0x15')][_0x2da2('0x12')]('revisionHistory',_0x35e23e=>{const _0x44cf98=_0x317021(_0x35e23e),_0x556674=_0x44cf98[_0x2da2('0x1c')][_0x2da2('0xc')],_0x28aff2=new _0x10e471(_0x35e23e),_0x54acbc=new _0x4e3569(_0x35e23e),_0x74608c=new _0x4356c5(_0x35e23e),_0x224c8d=new _0x4e3569(_0x35e23e),_0x3a95fb=new _0x4356c5(_0x35e23e),_0x5dc04a=new _0x527285(_0x35e23e);function _0x13fee6(){_0x556674[_0x2da2('0xa')]&&_0x556674[_0x2da2('0x1f')](0x0),_0x556674[_0x2da2('0x12')](_0x28aff2);}function _0x552d01(){_0x44cf98[_0x2da2('0x22')]=!0x1,_0x5bc9ad[_0x2da2('0x24')][_0x2da2('0x18')][_0x2da2('0x6')]();}return _0x44cf98[_0x2da2('0x17')](_0x2da2('0x3'))['to'](_0x492483,_0x2da2('0x21'),_0x492483,_0x2da2('0x3'),_0x5bc9ad,_0x2da2('0xb'),(_0xe4d2c7,_0x169d0e,_0x1a1fe5)=>_0xe4d2c7&&_0x169d0e&&!_0x1a1fe5),_0x44cf98[_0x2da2('0x16')][_0x2da2('0x7')]({'icon':_0x2388b5,'label':_0x3953fa(_0x35e23e,_0x2da2('0x19')),'tooltip':!0x0}),_0x74608c['set']({'label':_0x3953fa(_0x35e23e,_0x2da2('0x26')),'withText':!0x0}),_0x74608c[_0x2da2('0x17')](_0x2da2('0x3'))['to'](_0x492483,_0x2da2('0x21'),_0x492483,_0x2da2('0x3'),_0x5bc9ad,_0x2da2('0xb'),(_0x2be0fd,_0x2ea599,_0x113b2e)=>_0x2be0fd&&_0x2ea599&&!_0x113b2e),_0x74608c['on']('execute',()=>function(){_0x556674[_0x2da2('0xa')]&&_0x556674[_0x2da2('0x1f')](0x0),(_0x5dc04a[_0x2da2('0x25')](),_0x556674[_0x2da2('0x12')](_0x5dc04a),_0x5dc04a[_0x2da2('0x6')]());}()),_0x3a95fb[_0x2da2('0x7')]({'label':_0x3953fa(_0x35e23e,_0x2da2('0x23')),'withText':!0x0}),_0x3a95fb['bind'](_0x2da2('0x3'))['to'](_0x492483,_0x2da2('0x21'),_0x5bc9ad,_0x2da2('0xb'),(_0x5b191e,_0x3b2851)=>_0x5b191e&&!_0x3b2851),_0x3a95fb['on'](_0x2da2('0x1b'),()=>{_0x5bc9ad[_0x2da2('0x4')][_0x2da2('0x10')](_0x2da2('0xe'))['showRevisionViewerCallback'](),_0x552d01();}),_0x54acbc[_0x2da2('0xc')][_0x2da2('0x12')](_0x74608c),_0x224c8d['children']['add'](_0x3a95fb),_0x28aff2[_0x2da2('0x1e')][_0x2da2('0x1a')]([_0x54acbc,_0x224c8d]),_0x44cf98['on']('change:isOpen',()=>_0x13fee6()),_0x5dc04a[_0x2da2('0x11')][_0x2da2('0x17')]('isEnabled')['to'](_0x492483,_0x2da2('0x21'),_0x492483,'isEnabled',_0x5bc9ad,'isReadOnly',(_0x476b66,_0xce2df5,_0x2200d3)=>_0x476b66&&_0xce2df5&&!_0x2200d3),_0x5dc04a['on'](_0x2da2('0x1d'),()=>(_0x5bc9ad[_0x2da2('0x13')][_0x2da2('0x10')](_0x1f40e5)[_0x2da2('0x9')]({'name':_0x5dc04a[_0x2da2('0x14')]}),void _0x552d01())),_0x5dc04a['on'](_0x2da2('0xf'),()=>_0x13fee6()),_0x5dc04a[_0x2da2('0x0')](),_0x13fee6(),_0x44cf98;});}}
23
+ const _0x3a23=['pluginName','Save\x20current\x20revision','set','RevisionTracker','add','Revision\x20history','buttonView','revisionHistory','change:isOpen','panelView','items','render','requires','RevisionHistoryUI','isOpen','isEnabled','isReadOnly','children','init','get','remove','length','isReady','bind','editor','execute','focus','reset','config','componentFactory','cancel','editing','saveButtonView','plugins','addMany'];(function(_0x47f0b3,_0x3a23e0){const _0x4d5ef3=function(_0x59e065){while(--_0x59e065){_0x47f0b3['push'](_0x47f0b3['shift']());}};_0x4d5ef3(++_0x3a23e0);}(_0x3a23,0x192));const _0x4d5e=function(_0x47f0b3,_0x3a23e0){_0x47f0b3=_0x47f0b3-0x0;let _0x4d5ef3=_0x3a23[_0x47f0b3];return _0x4d5ef3;};import{Plugin as _0x2e921f}from'ckeditor5/src/core';import{ListView as _0x1fa396,ListItemView as _0x266e1c,ButtonView as _0xdbf201,createDropdown as _0x4965b3}from'ckeditor5/src/ui';import _0x3a8d1a from'../../revisiontracker';import _0x514845 from'./revisionhistorysaverevisionformview';import _0x4f5628 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x2f888f}from'../../utils/common-translations';export default class u extends _0x2e921f{static get[_0x4d5e('0x12')](){return _0x4d5e('0x1f');}static get[_0x4d5e('0x1e')](){return[_0x3a8d1a];}[_0x4d5e('0x1')](){const _0x37faee=this[_0x4d5e('0x7')],_0x2d599c=_0x37faee[_0x4d5e('0x10')]['get'](_0x4d5e('0x15'));_0x37faee['ui'][_0x4d5e('0xc')][_0x4d5e('0x16')](_0x4d5e('0x19'),_0x312b36=>{const _0x26245a=_0x4965b3(_0x312b36),_0x15b8f7=_0x26245a[_0x4d5e('0x1b')][_0x4d5e('0x0')],_0x505cd2=new _0x1fa396(_0x312b36),_0x4ec79d=new _0x266e1c(_0x312b36),_0x3e2a48=new _0xdbf201(_0x312b36),_0x370eda=new _0x266e1c(_0x312b36),_0x54488d=new _0xdbf201(_0x312b36),_0x4a9dd4=new _0x514845(_0x312b36);function _0x5ab8(){_0x15b8f7[_0x4d5e('0x4')]&&_0x15b8f7['remove'](0x0),_0x15b8f7['add'](_0x505cd2);}function _0x4c0bdf(){_0x26245a[_0x4d5e('0x20')]=!0x1,_0x37faee[_0x4d5e('0xe')]['view']['focus']();}return _0x26245a['bind'](_0x4d5e('0x21'))['to'](_0x2d599c,_0x4d5e('0x5'),_0x2d599c,_0x4d5e('0x21'),_0x37faee,'isReadOnly',(_0x55741e,_0x2af47b,_0x120ce7)=>_0x55741e&&_0x2af47b&&!_0x120ce7),_0x26245a[_0x4d5e('0x18')]['set']({'icon':_0x4f5628,'label':_0x2f888f(_0x312b36,_0x4d5e('0x17')),'tooltip':!0x0}),_0x3e2a48[_0x4d5e('0x14')]({'label':_0x2f888f(_0x312b36,_0x4d5e('0x13')),'withText':!0x0}),_0x3e2a48[_0x4d5e('0x6')](_0x4d5e('0x21'))['to'](_0x2d599c,_0x4d5e('0x5'),_0x2d599c,_0x4d5e('0x21'),_0x37faee,_0x4d5e('0x22'),(_0x527842,_0x43dfea,_0xab4a92)=>_0x527842&&_0x43dfea&&!_0xab4a92),_0x3e2a48['on'](_0x4d5e('0x8'),()=>function(){_0x15b8f7[_0x4d5e('0x4')]&&_0x15b8f7[_0x4d5e('0x3')](0x0),(_0x4a9dd4[_0x4d5e('0xa')](),_0x15b8f7['add'](_0x4a9dd4),_0x4a9dd4[_0x4d5e('0x9')]());}()),_0x54488d[_0x4d5e('0x14')]({'label':_0x2f888f(_0x312b36,'Open\x20revision\x20history'),'withText':!0x0}),_0x54488d[_0x4d5e('0x6')](_0x4d5e('0x21'))['to'](_0x2d599c,_0x4d5e('0x5'),_0x37faee,_0x4d5e('0x22'),(_0x58ed1b,_0x13b0af)=>_0x58ed1b&&!_0x13b0af),_0x54488d['on'](_0x4d5e('0x8'),()=>{_0x37faee[_0x4d5e('0xb')][_0x4d5e('0x2')]('revisionHistory')['showRevisionViewerCallback'](),_0x4c0bdf();}),_0x4ec79d['children'][_0x4d5e('0x16')](_0x3e2a48),_0x370eda[_0x4d5e('0x0')][_0x4d5e('0x16')](_0x54488d),_0x505cd2[_0x4d5e('0x1c')][_0x4d5e('0x11')]([_0x4ec79d,_0x370eda]),_0x26245a['on'](_0x4d5e('0x1a'),()=>_0x5ab8()),_0x4a9dd4[_0x4d5e('0xf')][_0x4d5e('0x6')](_0x4d5e('0x21'))['to'](_0x2d599c,'isReady',_0x2d599c,_0x4d5e('0x21'),_0x37faee,_0x4d5e('0x22'),(_0x673cc6,_0x184339,_0xd9b2b5)=>_0x673cc6&&_0x184339&&!_0xd9b2b5),_0x4a9dd4['on']('submit',()=>(_0x37faee['plugins'][_0x4d5e('0x2')](_0x3a8d1a)['saveRevision']({'name':_0x4a9dd4['revisionName']}),void _0x4c0bdf())),_0x4a9dd4['on'](_0x4d5e('0xd'),()=>_0x5ab8()),_0x4a9dd4[_0x4d5e('0x1d')](),_0x5ab8(),_0x26245a;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x236c=['_revisionsRepository','setName','config','revisionSelected','getRevision','getIndex','locale','isReady','bind','_handleRevisionSetName','isEnabled','editor','_handleDiffChange','nameRevision','assign','length','init','data','revisionHistory','_revisions','render','availableRevisionActions','Restore\x20this\x20revision','action','remove','_createRevisionActions','repository','map','defaultRevisionActions','_sidebarView','select','fieldView','string','getRevisionsInDiff','_handleRevisionSelected','isSelected','selectRevision','element','timePeriodViews','revisionSetName','newRevisionId','_revisionViewer','isVisible','plugins','restoreRevision','listenTo','RevisionsSidebar','compare','ready','_handleEditorDataReady','compareAgainstSelected','add','Name\x20this\x20revision','getEarlierVisibleRevision','get','focus','destroy','highlightRevisions'];(function(_0x39d836,_0x236c6a){const _0x2909a2=function(_0x577c9d){while(--_0x577c9d){_0x39d836['push'](_0x39d836['shift']());}};_0x2909a2(++_0x236c6a);}(_0x236c,0x157));const _0x2909=function(_0x39d836,_0x236c6a){_0x39d836=_0x39d836-0x0;let _0x2909a2=_0x236c[_0x39d836];return _0x2909a2;};import{Plugin as _0x2e024e}from'ckeditor5/src/core';import _0x4370f8 from'./revisionssidebarview';import _0x17815b from'../../revisionviewer';export default class d extends _0x2e024e{static get['pluginName'](){return _0x2909('0x33');}static get['requires'](){return[_0x17815b];}constructor(_0x5ad69a){super(_0x5ad69a),this[_0x2909('0x2e')]=_0x5ad69a[_0x2909('0x30')][_0x2909('0x1')](_0x17815b),this[_0x2909('0x5')]=this[_0x2909('0x2e')][_0x2909('0x1f')],this[_0x2909('0x22')]=null;}[_0x2909('0x15')](){const _0x33b0eb=this[_0x2909('0x5')][_0x2909('0x18')],_0x2d44c6=this[_0x2909('0x1e')](),_0x436ec9=this[_0x2909('0x10')]['config'][_0x2909('0x1')]('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new _0x4370f8(this['editor'][_0x2909('0xb')],_0x33b0eb,_0x2d44c6),this[_0x2909('0x22')]['on'](_0x2909('0x8'),this[_0x2909('0x27')][_0x2909('0xd')](this)),this[_0x2909('0x22')]['on'](_0x2909('0x2c'),this[_0x2909('0xe')][_0x2909('0xd')](this)),this[_0x2909('0x22')]['bind'](_0x2909('0xf'))['to'](this[_0x2909('0x2e')]),this[_0x2909('0x22')][_0x2909('0x2b')]['on'](_0x2909('0x38'),(_0x3e2f94,_0x1ec228)=>{_0x1ec228['revisionViews']['on'](_0x2909('0x38'),(_0x5d6b3c,_0x1d4d5c)=>{_0x1d4d5c[_0x2909('0xd')](_0x2909('0xf'),_0x2909('0xc'))['to'](this[_0x2909('0x2e')]);});}),this[_0x2909('0x22')][_0x2909('0x19')](),this[_0x2909('0x32')](this['editor'][_0x2909('0x16')],_0x2909('0x35'),this[_0x2909('0x36')][_0x2909('0xd')](this)),this['listenTo'](this['_revisionViewer'],'change:diff',this[_0x2909('0x11')][_0x2909('0xd')](this)),_0x436ec9['appendChild'](this[_0x2909('0x22')][_0x2909('0x2a')]);}[_0x2909('0x3')](){this[_0x2909('0x22')]['element'][_0x2909('0x1d')](),this['_sidebarView'][_0x2909('0x3')]();}[_0x2909('0x36')](){const _0x147fa3=this[_0x2909('0x5')][_0x2909('0x9')](0x0);if(_0x147fa3){const _0x438924=this[_0x2909('0x5')]['getEarlierVisibleRevision'](_0x147fa3['id']);this[_0x2909('0x2e')][_0x2909('0x34')](_0x147fa3,_0x438924);}}[_0x2909('0x27')](_0x334bde,_0x131eac){const _0x2b60ce=this['_revisionsRepository'][_0x2909('0x9')](_0x131eac['id']),_0x259e11=this[_0x2909('0x5')]['getEarlierVisibleRevision'](_0x2b60ce['id']);this[_0x2909('0x2e')]['compare'](_0x2b60ce,_0x259e11);}[_0x2909('0xe')](_0x33d133,_0x2efd4f){this[_0x2909('0x5')][_0x2909('0x9')](_0x2efd4f['id'])[_0x2909('0x6')](_0x2efd4f['name']);}[_0x2909('0x11')](_0x5afae3,_0xf6df2,_0x5899ea){const _0x165663=this[_0x2909('0x5')][_0x2909('0x26')](_0x5899ea);_0x165663['length']>0x2?(this[_0x2909('0x22')][_0x2909('0x4')](_0x165663),this['_sidebarView'][_0x2909('0x29')](null)):(this[_0x2909('0x22')][_0x2909('0x4')]([]),this['_sidebarView']['selectRevision'](_0x165663[0x0]));}[_0x2909('0x1e')](){const _0x118d71=this['editor'],_0x46f429=d[_0x2909('0x1a')],_0x39aa18=_0x118d71[_0x2909('0x7')][_0x2909('0x1')]('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x39aa18[_0x2909('0x14')])return _0x39aa18[_0x2909('0x20')](_0x2ad471=>{const _0xd9d42f=_0x2909('0x25')==typeof _0x2ad471?Object[_0x2909('0x13')]({},_0x46f429[_0x2ad471]):_0x2ad471;return _0xd9d42f[_0x2909('0x1c')]=_0xd9d42f[_0x2909('0x1c')][_0x2909('0xd')](this,_0x118d71),_0xd9d42f[_0x2909('0x2f')]&&(_0xd9d42f[_0x2909('0x2f')]=_0xd9d42f['isVisible'][_0x2909('0xd')](this,_0x118d71)),_0xd9d42f;});}}d[_0x2909('0x1a')]={'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x4bc8cd},_0x2ef4db)=>{const _0x1a7d7f=_0x4bc8cd[_0x2909('0x1')](_0x17815b),_0x5cd217=_0x1a7d7f[_0x2909('0x1f')];let _0x204fdb=_0x1a7d7f['diff'][_0x2909('0x2d')],_0x18cd93=_0x2ef4db['id'];_0x5cd217['getIndex'](_0x204fdb)>_0x5cd217[_0x2909('0xa')](_0x18cd93)&&([_0x204fdb,_0x18cd93]=[_0x18cd93,_0x204fdb]),_0x1a7d7f[_0x2909('0x34')](_0x204fdb,_0x18cd93);},'isVisible':({plugins:_0xba89a7},_0x5bbbaa)=>{const _0x225fc6=_0xba89a7['get'](_0x17815b);return!(_0x225fc6[_0x2909('0x1f')][_0x2909('0x26')](_0x225fc6['diff'])[_0x2909('0x14')]>0x2)&&!_0x5bbbaa[_0x2909('0x28')];}},'restoreRevision':{'name':_0x2909('0x1b'),'action':(_0x5aa168,{id:_0x1c48df})=>{_0x5aa168[_0x2909('0x7')][_0x2909('0x1')](_0x2909('0x17'))['restoreRevisionCallback'](_0x1c48df);},'isVisible':({plugins:_0x355759},_0x4a7475)=>!!_0x355759[_0x2909('0x1')](_0x17815b)[_0x2909('0x1f')]['getLaterVisibleRevision'](_0x4a7475['id'])},'nameRevision':{'name':_0x2909('0x39'),'action':({plugins:_0x7a792c},{id:_0x40e96a,revisionNameView:_0x592b12})=>{const _0x5ac264=_0x7a792c['get'](_0x17815b),_0x2dfcc9=_0x5ac264[_0x2909('0x1f')][_0x2909('0x0')](_0x40e96a);_0x5ac264[_0x2909('0x34')](_0x40e96a,_0x2dfcc9),_0x592b12[_0x2909('0x2')](),_0x592b12[_0x2909('0x24')][_0x2909('0x23')]();}}},d[_0x2909('0x21')]=[_0x2909('0x37'),_0x2909('0x31'),_0x2909('0x12')];
23
+ const _0x1855=['revisionViews','_revisions','isReady','_revisionViewer','requires','compare','setName','Restore\x20this\x20revision','availableRevisionActions','restoreRevisionCallback','name','_handleRevisionSelected','get','editor','getRevisionsInDiff','bind','selectRevision','Name\x20this\x20revision','string','RevisionsSidebar','map','fieldView','getRevision','timePeriodViews','isVisible','action','destroy','focus','length','nameRevision','compareAgainstSelected','highlightRevisions','revisionSelected','add','remove','listenTo','assign','config','pluginName','_revisionsRepository','revisionSetName','getLaterVisibleRevision','_createRevisionActions','render','ready','_handleEditorDataReady','newRevisionId','locale','getEarlierVisibleRevision','init','repository','restoreRevision','revisionHistory.viewerSidebarContainer','defaultRevisionActions','diff','_handleRevisionSetName','_sidebarView','getIndex','plugins','_handleDiffChange'];(function(_0x5cc801,_0x185523){const _0x60a80a=function(_0x4de9fe){while(--_0x4de9fe){_0x5cc801['push'](_0x5cc801['shift']());}};_0x60a80a(++_0x185523);}(_0x1855,0x1ea));const _0x60a8=function(_0x5cc801,_0x185523){_0x5cc801=_0x5cc801-0x0;let _0x60a80a=_0x1855[_0x5cc801];return _0x60a80a;};import{Plugin as _0x336f83}from'ckeditor5/src/core';import _0x22f2a4 from'./revisionssidebarview';import _0x252772 from'../../revisionviewer';export default class d extends _0x336f83{static get[_0x60a8('0x1c')](){return _0x60a8('0x9');}static get[_0x60a8('0x36')](){return[_0x252772];}constructor(_0x32fff9){super(_0x32fff9),this['_revisionViewer']=_0x32fff9[_0x60a8('0x30')]['get'](_0x252772),this[_0x60a8('0x1d')]=this['_revisionViewer'][_0x60a8('0x28')],this['_sidebarView']=null;}[_0x60a8('0x27')](){const _0x3cbe02=this[_0x60a8('0x1d')][_0x60a8('0x33')],_0x4d73b0=this[_0x60a8('0x20')](),_0x3ae15e=this['editor'][_0x60a8('0x1b')][_0x60a8('0x2')](_0x60a8('0x2a'));this[_0x60a8('0x2e')]=new _0x22f2a4(this['editor'][_0x60a8('0x25')],_0x3cbe02,_0x4d73b0),this['_sidebarView']['on'](_0x60a8('0x16'),this[_0x60a8('0x1')][_0x60a8('0x5')](this)),this['_sidebarView']['on'](_0x60a8('0x1e'),this[_0x60a8('0x2d')][_0x60a8('0x5')](this)),this['_sidebarView'][_0x60a8('0x5')]('isEnabled')['to'](this[_0x60a8('0x35')]),this['_sidebarView'][_0x60a8('0xd')]['on']('add',(_0x3394c5,_0x470e8c)=>{_0x470e8c[_0x60a8('0x32')]['on'](_0x60a8('0x17'),(_0x456092,_0x1294d1)=>{_0x1294d1[_0x60a8('0x5')]('isEnabled',_0x60a8('0x34'))['to'](this[_0x60a8('0x35')]);});}),this[_0x60a8('0x2e')][_0x60a8('0x21')](),this[_0x60a8('0x19')](this['editor']['data'],_0x60a8('0x22'),this['_handleEditorDataReady'][_0x60a8('0x5')](this)),this[_0x60a8('0x19')](this[_0x60a8('0x35')],'change:diff',this[_0x60a8('0x31')][_0x60a8('0x5')](this)),_0x3ae15e['appendChild'](this[_0x60a8('0x2e')]['element']);}[_0x60a8('0x10')](){this[_0x60a8('0x2e')]['element'][_0x60a8('0x18')](),this['_sidebarView'][_0x60a8('0x10')]();}[_0x60a8('0x23')](){const _0x59b202=this[_0x60a8('0x1d')]['getRevision'](0x0);if(_0x59b202){const _0x33a192=this[_0x60a8('0x1d')][_0x60a8('0x26')](_0x59b202['id']);this[_0x60a8('0x35')][_0x60a8('0x37')](_0x59b202,_0x33a192);}}[_0x60a8('0x1')](_0x405501,_0x2750cc){const _0x59c4e6=this[_0x60a8('0x1d')][_0x60a8('0xc')](_0x2750cc['id']),_0x18908d=this[_0x60a8('0x1d')]['getEarlierVisibleRevision'](_0x59c4e6['id']);this['_revisionViewer'][_0x60a8('0x37')](_0x59c4e6,_0x18908d);}[_0x60a8('0x2d')](_0x33694,_0x5a67e6){this['_revisionsRepository'][_0x60a8('0xc')](_0x5a67e6['id'])[_0x60a8('0x38')](_0x5a67e6[_0x60a8('0x0')]);}[_0x60a8('0x31')](_0x302961,_0x4f674f,_0x1b3e15){const _0x558b3b=this[_0x60a8('0x1d')][_0x60a8('0x4')](_0x1b3e15);_0x558b3b['length']>0x2?(this[_0x60a8('0x2e')][_0x60a8('0x15')](_0x558b3b),this[_0x60a8('0x2e')][_0x60a8('0x6')](null)):(this[_0x60a8('0x2e')][_0x60a8('0x15')]([]),this[_0x60a8('0x2e')][_0x60a8('0x6')](_0x558b3b[0x0]));}[_0x60a8('0x20')](){const _0x275ee9=this[_0x60a8('0x3')],_0x423949=d[_0x60a8('0x3a')],_0x5ba2e0=_0x275ee9[_0x60a8('0x1b')]['get']('revisionHistory.revisionActions')||d[_0x60a8('0x2b')];if(_0x5ba2e0[_0x60a8('0x12')])return _0x5ba2e0[_0x60a8('0xa')](_0xf15082=>{const _0x56f6a5=_0x60a8('0x8')==typeof _0xf15082?Object[_0x60a8('0x1a')]({},_0x423949[_0xf15082]):_0xf15082;return _0x56f6a5[_0x60a8('0xf')]=_0x56f6a5['action'][_0x60a8('0x5')](this,_0x275ee9),_0x56f6a5[_0x60a8('0xe')]&&(_0x56f6a5['isVisible']=_0x56f6a5[_0x60a8('0xe')][_0x60a8('0x5')](this,_0x275ee9)),_0x56f6a5;});}}d[_0x60a8('0x3a')]={'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x4eaaf7},_0x16bc93)=>{const _0x18dd77=_0x4eaaf7['get'](_0x252772),_0x125461=_0x18dd77['repository'];let _0x40ab01=_0x18dd77[_0x60a8('0x2c')][_0x60a8('0x24')],_0x5ea896=_0x16bc93['id'];_0x125461[_0x60a8('0x2f')](_0x40ab01)>_0x125461[_0x60a8('0x2f')](_0x5ea896)&&([_0x40ab01,_0x5ea896]=[_0x5ea896,_0x40ab01]),_0x18dd77[_0x60a8('0x37')](_0x40ab01,_0x5ea896);},'isVisible':({plugins:_0x5c34de},_0x3e83d7)=>{const _0x1d27b5=_0x5c34de[_0x60a8('0x2')](_0x252772);return!(_0x1d27b5['repository'][_0x60a8('0x4')](_0x1d27b5[_0x60a8('0x2c')])[_0x60a8('0x12')]>0x2)&&!_0x3e83d7['isSelected'];}},'restoreRevision':{'name':_0x60a8('0x39'),'action':(_0x96ee15,{id:_0x5e9da3})=>{_0x96ee15['config']['get']('revisionHistory')[_0x60a8('0x3b')](_0x5e9da3);},'isVisible':({plugins:_0x432407},_0xef8946)=>!!_0x432407[_0x60a8('0x2')](_0x252772)['repository'][_0x60a8('0x1f')](_0xef8946['id'])},'nameRevision':{'name':_0x60a8('0x7'),'action':({plugins:_0x5ce784},{id:_0x405861,revisionNameView:_0x15f096})=>{const _0x25baa1=_0x5ce784[_0x60a8('0x2')](_0x252772),_0x5b89bd=_0x25baa1[_0x60a8('0x28')][_0x60a8('0x26')](_0x405861);_0x25baa1[_0x60a8('0x37')](_0x405861,_0x5b89bd),_0x15f096[_0x60a8('0x11')](),_0x15f096[_0x60a8('0xb')]['select']();}}},d[_0x60a8('0x2b')]=[_0x60a8('0x14'),_0x60a8('0x29'),_0x60a8('0x13')];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2fbe=['ck-revision-history-sidebar__header__label','div','ck-reset_all','ck-revision-history-sidebar__header','setTemplate','span'];(function(_0x48c707,_0x2fbe02){const _0xbd5894=function(_0x1c5c9d){while(--_0x1c5c9d){_0x48c707['push'](_0x48c707['shift']());}};_0xbd5894(++_0x2fbe02);}(_0x2fbe,0x196));const _0xbd58=function(_0x48c707,_0x2fbe02){_0x48c707=_0x48c707-0x0;let _0xbd5894=_0x2fbe[_0x48c707];return _0xbd5894;};import{View as _0xb72a41,IconView as _0x3237e4}from'ckeditor5/src/ui';import{getTranslation as _0x52fb36}from'../../utils/common-translations';import _0xcf5424 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0xb72a41{constructor(_0x496509){super(_0x496509);const _0x40c97b=new _0x3237e4();_0x40c97b['content']=_0xcf5424,this[_0xbd58('0x0')]({'tag':_0xbd58('0x3'),'attributes':{'class':['ck',_0xbd58('0x4'),_0xbd58('0x5')]},'children':[_0x40c97b,{'tag':_0xbd58('0x1'),'attributes':{'class':['ck',_0xbd58('0x2')]},'children':[_0x52fb36(_0x496509,'Revision\x20history')]}]});}}
23
+ const _0x4bf6=['div','content','Revision\x20history','setTemplate','ck-revision-history-sidebar__header'];(function(_0x2456a4,_0x4bf6e9){const _0x3952f1=function(_0x5c8356){while(--_0x5c8356){_0x2456a4['push'](_0x2456a4['shift']());}};_0x3952f1(++_0x4bf6e9);}(_0x4bf6,0xfc));const _0x3952=function(_0x2456a4,_0x4bf6e9){_0x2456a4=_0x2456a4-0x0;let _0x3952f1=_0x4bf6[_0x2456a4];return _0x3952f1;};import{View as _0x114d4b,IconView as _0x3b51d5}from'ckeditor5/src/ui';import{getTranslation as _0xea7aa6}from'../../utils/common-translations';import _0x3d45dd from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x114d4b{constructor(_0x19fd28){super(_0x19fd28);const _0x2c0f2e=new _0x3b51d5();_0x2c0f2e[_0x3952('0x4')]=_0x3d45dd,this[_0x3952('0x1')]({'tag':_0x3952('0x3'),'attributes':{'class':['ck','ck-reset_all',_0x3952('0x2')]},'children':[_0x2c0f2e,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[_0xea7aa6(_0x19fd28,_0x3952('0x0'))]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3840=['revisionViews','div','localizedPeriodName','_revisionActions','ck-revision-history-sidebar__time-period','select','createCollection','ck-revision-history-sidebar__time-period__revisions','delegate','startDate','uiLanguage','find','locale','setName'];(function(_0x16fc7d,_0x384092){const _0x406db8=function(_0x209a60){while(--_0x209a60){_0x16fc7d['push'](_0x16fc7d['shift']());}};_0x406db8(++_0x384092);}(_0x3840,0xc4));const _0x406d=function(_0x16fc7d,_0x384092){_0x16fc7d=_0x16fc7d-0x0;let _0x406db8=_0x3840[_0x16fc7d];return _0x406db8;};import{View as _0x55c668}from'ckeditor5/src/ui';import _0x1b37d1 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x27f007}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x55c668{constructor(_0x30d332,_0x477510,_0x29e5bc){super(_0x30d332);const _0x4097a1=_0x27f007(_0x477510,this[_0x406d('0xc')][_0x406d('0xa')])[_0x406d('0x2')];this[_0x406d('0x9')]=_0x477510,this[_0x406d('0x0')]=this[_0x406d('0x6')](),this[_0x406d('0x3')]=_0x29e5bc,this[_0x406d('0x0')]['delegate'](_0x406d('0x5'))['to'](this),this[_0x406d('0x0')][_0x406d('0x8')](_0x406d('0xd'))['to'](this),this['setTemplate']({'tag':_0x406d('0x1'),'attributes':{'class':['ck',_0x406d('0x4')]},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x4097a1}]},{'tag':_0x406d('0x1'),'attributes':{'class':['ck',_0x406d('0x7')]},'children':this['revisionViews']}]});}['addRevision'](_0x5e474a){const _0x13c4f7=new _0x1b37d1(this[_0x406d('0xc')],_0x5e474a,this['_revisionActions']);this['revisionViews']['add'](_0x13c4f7);}['removeRevision'](_0x5a78f4){const _0x181dc5=this[_0x406d('0x0')][_0x406d('0xb')](_0x4b0251=>_0x4b0251['id']===_0x5a78f4['id']);this[_0x406d('0x0')]['remove'](_0x181dc5);}}
23
+ const _0x827e=['addRevision','locale','add','remove','ck-revision-history-sidebar__time-period__revisions','removeRevision','setTemplate','ck-revision-history-sidebar__time-period__label','select','_revisionActions','startDate','uiLanguage','revisionViews','find','ck-revision-history-sidebar__time-period','delegate','div','localizedPeriodName','createCollection'];(function(_0x461dee,_0x827eac){const _0x3c4ed1=function(_0x4ec811){while(--_0x4ec811){_0x461dee['push'](_0x461dee['shift']());}};_0x3c4ed1(++_0x827eac);}(_0x827e,0x18a));const _0x3c4e=function(_0x461dee,_0x827eac){_0x461dee=_0x461dee-0x0;let _0x3c4ed1=_0x827e[_0x461dee];return _0x3c4ed1;};import{View as _0xe4e6d9}from'ckeditor5/src/ui';import _0x5b6bd5 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x26a6c0}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class vi extends _0xe4e6d9{constructor(_0x55925c,_0x4b4bfa,_0x1f7f6d){super(_0x55925c);const _0x4cfa99=_0x26a6c0(_0x4b4bfa,this[_0x3c4e('0x6')][_0x3c4e('0x10')])[_0x3c4e('0x3')];this[_0x3c4e('0xf')]=_0x4b4bfa,this[_0x3c4e('0x11')]=this[_0x3c4e('0x4')](),this[_0x3c4e('0xe')]=_0x1f7f6d,this[_0x3c4e('0x11')][_0x3c4e('0x1')](_0x3c4e('0xd'))['to'](this),this['revisionViews'][_0x3c4e('0x1')]('setName')['to'](this),this[_0x3c4e('0xb')]({'tag':'div','attributes':{'class':['ck',_0x3c4e('0x0')]},'children':[{'tag':'span','attributes':{'class':['ck',_0x3c4e('0xc')]},'children':[{'text':_0x4cfa99}]},{'tag':_0x3c4e('0x2'),'attributes':{'class':['ck',_0x3c4e('0x9')]},'children':this[_0x3c4e('0x11')]}]});}[_0x3c4e('0x5')](_0x5c493e){const _0x4c3430=new _0x5b6bd5(this[_0x3c4e('0x6')],_0x5c493e,this['_revisionActions']);this[_0x3c4e('0x11')][_0x3c4e('0x7')](_0x4c3430);}[_0x3c4e('0xa')](_0x4a9fc0){const _0x4f4dfa=this[_0x3c4e('0x11')][_0x3c4e('0x12')](_0x443360=>_0x443360['id']===_0x4a9fc0['id']);this[_0x3c4e('0x11')][_0x3c4e('0x8')](_0x4f4dfa);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a90=['ck-reset','_getTimePeriodViewByStartDate','add','bindTemplate','_revisions','setTemplate','_revisionActions','map','some','ck-rounded-corners','_removeRevision','getTime','set','highlight','locale','div','ck-disabled','revisionSelected','ck-revision-history-sidebar','deselect','unhighlight','select','revisionViews','highlightRevisions','find','uiLanguage','fire','ck-revision-history-sidebar__timeline','timePeriodViews','isEnabled','render','removeRevision','setName','flat','createdAt','createCollection','delegate','startDate','revisionSetName','addRevision'];(function(_0x42dcbb,_0x1a9027){const _0x3f41f6=function(_0x503cbc){while(--_0x503cbc){_0x42dcbb['push'](_0x42dcbb['shift']());}};_0x3f41f6(++_0x1a9027);}(_0x1a90,0x75));const _0x3f41=function(_0x42dcbb,_0x1a9027){_0x42dcbb=_0x42dcbb-0x0;let _0x3f41f6=_0x1a90[_0x42dcbb];return _0x3f41f6;};import{View as _0x1b4d38}from'ckeditor5/src/ui';import _0x4ec32e from'./revisionssidebartimeperiodview';import _0x2d7c74 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x177a25}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x1b4d38{constructor(_0x1ed262,_0x5041a9,_0x2e3c86){super(_0x1ed262);const _0x50b93c=this[_0x3f41('0x6')];this[_0x3f41('0x1f')]=this[_0x3f41('0x26')](),this[_0x3f41('0x1f')]['delegate'](_0x3f41('0x18'))['to'](this),this['timePeriodViews'][_0x3f41('0x27')](_0x3f41('0x23'))['to'](this),this[_0x3f41('0x7')]=_0x5041a9,this[_0x3f41('0x9')]=_0x2e3c86,this['on'](_0x3f41('0x18'),(_0x35b830,_0x552537)=>{this[_0x3f41('0x1d')](_0x3f41('0x14'),_0x552537);}),this['on'](_0x3f41('0x23'),(_0x21cf66,_0x57a854)=>{this[_0x3f41('0x1d')](_0x3f41('0x1'),_0x57a854);}),this[_0x3f41('0xf')](_0x3f41('0x20'),!0x1),this[_0x3f41('0x8')]({'tag':_0x3f41('0x12'),'attributes':{'class':['ck',_0x3f41('0x3'),_0x3f41('0xc'),_0x3f41('0x15')]},'children':[new _0x2d7c74(_0x1ed262),{'tag':_0x3f41('0x12'),'attributes':{'class':['ck',_0x3f41('0x1e'),_0x50b93c['if']('isEnabled',_0x3f41('0x13'),_0x36866c=>!_0x36866c)]},'children':this[_0x3f41('0x1f')]}]});}[_0x3f41('0x21')](){super[_0x3f41('0x21')]();for(const _0xff4f63 of this[_0x3f41('0x7')])this['_addRevision'](_0xff4f63);this[_0x3f41('0x7')]['on'](_0x3f41('0x5'),(_0x56d527,_0x3dd8e6)=>{this['_addRevision'](_0x3dd8e6);}),this['_revisions']['on']('remove',(_0x3f85bf,_0x366044)=>{this[_0x3f41('0xd')](_0x366044);});}get[_0x3f41('0x19')](){return this['timePeriodViews']['map'](_0x259c09=>_0x259c09[_0x3f41('0x19')][_0x3f41('0xa')](_0x5714ff=>_0x5714ff))[_0x3f41('0x24')]();}['selectRevision'](_0x5c2c7d){for(const _0x39885a of this[_0x3f41('0x19')])_0x5c2c7d&&_0x5c2c7d['id']===_0x39885a['id']?_0x39885a[_0x3f41('0x18')]():_0x39885a[_0x3f41('0x16')]();}[_0x3f41('0x1a')](_0x4d28d4){for(const _0x2a388a of this[_0x3f41('0x19')])_0x4d28d4[_0x3f41('0xb')](({id:_0x3c831e})=>_0x3c831e===_0x2a388a['id'])?_0x2a388a[_0x3f41('0x10')]():_0x2a388a[_0x3f41('0x17')]();}['_addRevision'](_0x4f003b){const _0x1dbcb9=_0x177a25(_0x4f003b['createdAt'],this['locale'][_0x3f41('0x1c')])[_0x3f41('0x0')];let _0x59eea3=this['timePeriodViews']['get'](0x0);_0x59eea3&&_0x59eea3['startDate']['getTime']()===_0x1dbcb9[_0x3f41('0xe')]()||(_0x59eea3=new _0x4ec32e(this[_0x3f41('0x11')],_0x1dbcb9,this[_0x3f41('0x9')]),this[_0x3f41('0x1f')][_0x3f41('0x5')](_0x59eea3)),_0x59eea3[_0x3f41('0x2')](_0x4f003b);}[_0x3f41('0xd')](_0x38296a){const _0x2fdc85=_0x177a25(_0x38296a[_0x3f41('0x25')],this['locale'][_0x3f41('0x1c')])[_0x3f41('0x0')];this['_getTimePeriodViewByStartDate'](_0x2fdc85)[_0x3f41('0x22')](_0x38296a);}[_0x3f41('0x4')](_0x4efc07){return this[_0x3f41('0x1f')][_0x3f41('0x1b')](_0x22f5b3=>_0x22f5b3[_0x3f41('0x0')][_0x3f41('0xe')]()===_0x4efc07[_0x3f41('0xe')]());}}
23
+ const _0x393f=['bindTemplate','render','add','div','startDate','_getTimePeriodViewByStartDate','_revisions','_removeRevision','ck-reset','revisionViews','select','map','deselect','ck-revision-history-sidebar','remove','_revisionActions','flat','_addRevision','unhighlight','highlight','timePeriodViews','isEnabled','ck-disabled','delegate','set','getTime','revisionSetName','setTemplate','fire','locale','find','createCollection','setName','get','ck-revision-history-sidebar__timeline','createdAt','removeRevision'];(function(_0x5eb1b5,_0x393f8b){const _0xad2d7b=function(_0x33184d){while(--_0x33184d){_0x5eb1b5['push'](_0x5eb1b5['shift']());}};_0xad2d7b(++_0x393f8b);}(_0x393f,0x1f2));const _0xad2d=function(_0x5eb1b5,_0x393f8b){_0x5eb1b5=_0x5eb1b5-0x0;let _0xad2d7b=_0x393f[_0x5eb1b5];return _0xad2d7b;};import{View as _0x53c6de}from'ckeditor5/src/ui';import _0x589421 from'./revisionssidebartimeperiodview';import _0x326b4d from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x5e7f64}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class di extends _0x53c6de{constructor(_0x4848af,_0x57548f,_0x4c91da){super(_0x4848af);const _0x1d12d1=this[_0xad2d('0x14')];this['timePeriodViews']=this[_0xad2d('0xe')](),this['timePeriodViews'][_0xad2d('0x6')]('select')['to'](this),this[_0xad2d('0x3')][_0xad2d('0x6')](_0xad2d('0xf'))['to'](this),this[_0xad2d('0x1a')]=_0x57548f,this['_revisionActions']=_0x4c91da,this['on'](_0xad2d('0x1e'),(_0x5ef325,_0xc65e2e)=>{this['fire']('revisionSelected',_0xc65e2e);}),this['on'](_0xad2d('0xf'),(_0x3e9c6e,_0x3a07e5)=>{this[_0xad2d('0xb')](_0xad2d('0x9'),_0x3a07e5);}),this[_0xad2d('0x7')](_0xad2d('0x4'),!0x1),this[_0xad2d('0xa')]({'tag':_0xad2d('0x17'),'attributes':{'class':['ck',_0xad2d('0x1c'),'ck-rounded-corners',_0xad2d('0x21')]},'children':[new _0x326b4d(_0x4848af),{'tag':_0xad2d('0x17'),'attributes':{'class':['ck',_0xad2d('0x11'),_0x1d12d1['if'](_0xad2d('0x4'),_0xad2d('0x5'),_0x4f55e3=>!_0x4f55e3)]},'children':this[_0xad2d('0x3')]}]});}['render'](){super[_0xad2d('0x15')]();for(const _0x73f3c4 of this[_0xad2d('0x1a')])this[_0xad2d('0x0')](_0x73f3c4);this[_0xad2d('0x1a')]['on'](_0xad2d('0x16'),(_0x44bb91,_0x7de3c5)=>{this[_0xad2d('0x0')](_0x7de3c5);}),this[_0xad2d('0x1a')]['on'](_0xad2d('0x22'),(_0xbfc041,_0x5ed306)=>{this[_0xad2d('0x1b')](_0x5ed306);});}get['revisionViews'](){return this[_0xad2d('0x3')][_0xad2d('0x1f')](_0x5ae0b8=>_0x5ae0b8[_0xad2d('0x1d')][_0xad2d('0x1f')](_0x5acf82=>_0x5acf82))[_0xad2d('0x24')]();}['selectRevision'](_0x2a08d1){for(const _0x3dc833 of this['revisionViews'])_0x2a08d1&&_0x2a08d1['id']===_0x3dc833['id']?_0x3dc833[_0xad2d('0x1e')]():_0x3dc833[_0xad2d('0x20')]();}['highlightRevisions'](_0x343b54){for(const _0x1c8073 of this[_0xad2d('0x1d')])_0x343b54['some'](({id:_0x485c53})=>_0x485c53===_0x1c8073['id'])?_0x1c8073[_0xad2d('0x2')]():_0x1c8073[_0xad2d('0x1')]();}[_0xad2d('0x0')](_0x164e80){const _0x6c3f39=_0x5e7f64(_0x164e80[_0xad2d('0x12')],this[_0xad2d('0xc')]['uiLanguage'])[_0xad2d('0x18')];let _0x474910=this[_0xad2d('0x3')][_0xad2d('0x10')](0x0);_0x474910&&_0x474910[_0xad2d('0x18')][_0xad2d('0x8')]()===_0x6c3f39[_0xad2d('0x8')]()||(_0x474910=new _0x589421(this[_0xad2d('0xc')],_0x6c3f39,this[_0xad2d('0x23')]),this['timePeriodViews'][_0xad2d('0x16')](_0x474910)),_0x474910['addRevision'](_0x164e80);}[_0xad2d('0x1b')](_0x209455){const _0x1ba75b=_0x5e7f64(_0x209455[_0xad2d('0x12')],this[_0xad2d('0xc')]['uiLanguage'])[_0xad2d('0x18')];this['_getTimePeriodViewByStartDate'](_0x1ba75b)[_0xad2d('0x13')](_0x209455);}[_0xad2d('0x19')](_0x5bd88c){return this['timePeriodViews'][_0xad2d('0xd')](_0x4c3385=>_0x4c3385[_0xad2d('0x18')][_0xad2d('0x8')]()===_0x5bd88c[_0xad2d('0x8')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3ea3=['monthLong','year','minus','toJSDate','month','toRelativeCalendar','weekdayLong','hasSame','startOf','local','week','fromJSDate','day'];(function(_0x157387,_0x3ea30f){const _0x4f3004=function(_0x5dbd3b){while(--_0x5dbd3b){_0x157387['push'](_0x157387['shift']());}};_0x4f3004(++_0x3ea30f);}(_0x3ea3,0xbe));const _0x4f30=function(_0x157387,_0x3ea30f){_0x157387=_0x157387-0x0;let _0x4f3004=_0x3ea3[_0x157387];return _0x4f3004;};import{DateTime as _0x1c003f}from'luxon';export function getDateTimePeriodInfo(_0x17248f,_0x4b6920){const _0x58d345=_0x1c003f[_0x4f30('0x3')](_0x17248f)['setLocale'](_0x4b6920),_0x386508=_0x1c003f[_0x4f30('0x1')](),_0x1db1f2=_0x386508[_0x4f30('0x7')]({'days':0x1})[_0x4f30('0x0')](_0x4f30('0x4'));let _0x221eae,_0x1b9aef;return _0x58d345[_0x4f30('0xc')](_0x386508,_0x4f30('0x4'))?(_0x221eae=_0x58d345[_0x4f30('0x0')](_0x4f30('0x4'))['toJSDate'](),_0x1b9aef=_0x58d345[_0x4f30('0xa')]()):_0x58d345[_0x4f30('0xc')](_0x1db1f2,_0x4f30('0x4'))?(_0x221eae=_0x1db1f2[_0x4f30('0x8')](),_0x1b9aef=_0x58d345[_0x4f30('0xa')]()):_0x58d345[_0x4f30('0xc')](_0x386508,_0x4f30('0x2'))?(_0x221eae=_0x58d345['startOf'](_0x4f30('0x2'))[_0x4f30('0x8')](),_0x1b9aef=_0x58d345[_0x4f30('0xb')]||''):_0x58d345[_0x4f30('0xc')](_0x386508,_0x4f30('0x6'))?(_0x221eae=_0x58d345['startOf'](_0x4f30('0x9'))[_0x4f30('0x8')](),_0x1b9aef=_0x58d345[_0x4f30('0x5')]||''):(_0x221eae=_0x58d345['startOf'](_0x4f30('0x6'))[_0x4f30('0x8')](),_0x1b9aef=String(_0x58d345[_0x4f30('0x6')])),{'startDate':_0x221eae,'localizedPeriodName':_0x1b9aef};}
23
+ const _0x4357=['hasSame','year','weekdayLong','month','setLocale','startOf','day','week','monthLong','local','toJSDate','fromJSDate','minus'];(function(_0x3f905f,_0x43571d){const _0x5d43e0=function(_0x16cefe){while(--_0x16cefe){_0x3f905f['push'](_0x3f905f['shift']());}};_0x5d43e0(++_0x43571d);}(_0x4357,0x16f));const _0x5d43=function(_0x3f905f,_0x43571d){_0x3f905f=_0x3f905f-0x0;let _0x5d43e0=_0x4357[_0x3f905f];return _0x5d43e0;};import{DateTime as _0x14c6db}from'luxon';export function getDateTimePeriodInfo(_0x1a3e32,_0x485a5d){const _0x218504=_0x14c6db[_0x5d43('0x8')](_0x1a3e32)[_0x5d43('0x1')](_0x485a5d),_0x392fa7=_0x14c6db[_0x5d43('0x6')](),_0x4143d5=_0x392fa7[_0x5d43('0x9')]({'days':0x1})['startOf'](_0x5d43('0x3'));let _0x46c515,_0x43c720;return _0x218504['hasSame'](_0x392fa7,_0x5d43('0x3'))?(_0x46c515=_0x218504['startOf']('day')[_0x5d43('0x7')](),_0x43c720=_0x218504['toRelativeCalendar']()):_0x218504[_0x5d43('0xa')](_0x4143d5,_0x5d43('0x3'))?(_0x46c515=_0x4143d5[_0x5d43('0x7')](),_0x43c720=_0x218504['toRelativeCalendar']()):_0x218504[_0x5d43('0xa')](_0x392fa7,_0x5d43('0x4'))?(_0x46c515=_0x218504['startOf'](_0x5d43('0x4'))['toJSDate'](),_0x43c720=_0x218504[_0x5d43('0xc')]||''):_0x218504[_0x5d43('0xa')](_0x392fa7,'year')?(_0x46c515=_0x218504['startOf'](_0x5d43('0x0'))[_0x5d43('0x7')](),_0x43c720=_0x218504[_0x5d43('0x5')]||''):(_0x46c515=_0x218504[_0x5d43('0x2')](_0x5d43('0xb'))[_0x5d43('0x7')](),_0x43c720=String(_0x218504['year'])),{'startDate':_0x46c515,'localizedPeriodName':_0x43c720};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x7dec=['ck-revision-change','author','set','add','changeId','Suggested\x20by','ck-revision-change__','span','ck-revision-change__label','type','focus','name','ck-annotation','isSuggestion','Removed\x20by'];(function(_0x2d4bac,_0x7dec14){const _0x20cfc9=function(_0xd1c584){while(--_0xd1c584){_0x2d4bac['push'](_0x2d4bac['shift']());}};_0x20cfc9(++_0x7dec14);}(_0x7dec,0x122));const _0x20cf=function(_0x2d4bac,_0x7dec14){_0x2d4bac=_0x2d4bac-0x0;let _0x20cfc9=_0x7dec[_0x2d4bac];return _0x20cfc9;};import{View as _0x35f4ac}from'ckeditor5/src/ui';import{getTranslation as _0x528a6c}from'../../utils/common-translations';export default class Q extends _0x35f4ac{constructor(_0x378479,_0x49fde0){super(_0x378479),this['_model']=_0x49fde0,this[_0x20cf('0xe')]=_0x49fde0['id'];const _0x28847f=this['bindTemplate'],_0x544de3=_0x528a6c(_0x378479,_0x49fde0['data'][_0x20cf('0x8')]?_0x20cf('0x0'):_0x20cf('0xd')==_0x49fde0[_0x20cf('0x4')]?'Added\x20by':_0x20cf('0x9'));this[_0x20cf('0xc')](_0x20cf('0x4'),_0x49fde0['type']),this['setTemplate']({'tag':'div','attributes':{'class':[_0x20cf('0x7'),_0x20cf('0xa'),_0x28847f['to'](_0x20cf('0x4'),_0x10fb29=>_0x20cf('0x1')+_0x10fb29)],'tabindex':-0x1},'children':[{'tag':_0x20cf('0x2'),'children':[{'tag':'span','attributes':{'class':[_0x20cf('0x3')]},'children':[{'text':_0x544de3}]},{'text':'\x20'+_0x49fde0[_0x20cf('0xb')][_0x20cf('0x6')]}]}]});}[_0x20cf('0x5')](){this['element'][_0x20cf('0x5')]();}}
23
+ const _0x4ebe=['focus','span','Added\x20by','ck-revision-change','changeId','div','Removed\x20by','_model','ck-revision-change__label','element','type','ck-revision-change__','isSuggestion','add','author','setTemplate','name','Suggested\x20by'];(function(_0x5370ac,_0x4ebea0){const _0x56312f=function(_0x4d459d){while(--_0x4d459d){_0x5370ac['push'](_0x5370ac['shift']());}};_0x56312f(++_0x4ebea0);}(_0x4ebe,0x1c2));const _0x5631=function(_0x5370ac,_0x4ebea0){_0x5370ac=_0x5370ac-0x0;let _0x56312f=_0x4ebe[_0x5370ac];return _0x56312f;};import{View as _0x4c5336}from'ckeditor5/src/ui';import{getTranslation as _0x45ac50}from'../../utils/common-translations';export default class Q extends _0x4c5336{constructor(_0x5d8653,_0x2d15b2){super(_0x5d8653),this[_0x5631('0x7')]=_0x2d15b2,this[_0x5631('0x4')]=_0x2d15b2['id'];const _0x2ed4b3=this['bindTemplate'],_0x4ba51b=_0x45ac50(_0x5d8653,_0x2d15b2['data'][_0x5631('0xc')]?_0x5631('0x11'):_0x5631('0xd')==_0x2d15b2['type']?_0x5631('0x2'):_0x5631('0x6'));this['set']('type',_0x2d15b2[_0x5631('0xa')]),this[_0x5631('0xf')]({'tag':_0x5631('0x5'),'attributes':{'class':['ck-annotation',_0x5631('0x3'),_0x2ed4b3['to']('type',_0x1d5d0c=>_0x5631('0xb')+_0x1d5d0c)],'tabindex':-0x1},'children':[{'tag':_0x5631('0x1'),'children':[{'tag':_0x5631('0x1'),'attributes':{'class':[_0x5631('0x8')]},'children':[{'text':_0x4ba51b}]},{'text':'\x20'+_0x2d15b2[_0x5631('0xe')][_0x5631('0x10')]}]}]});}[_0x5631('0x0')](){this[_0x5631('0x9')]['focus']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x11ac=['fire','ck-revision-history-ui','ck-revision-history-ui__changes-navigation__navigation','NUMBER_OF_CHANGES','backward','X_OF_Y_CHANGES','isReady','EDIT_X_OF_Y_REVISIONS','Show\x20previous\x20change','No\x20changes','ck-revision-history-ui__changes-navigation','Loading...','bindTemplate','_isStatusLabelVisible','ck-hidden','isNavigationMode','execute','ck-revision-history-ui__changes-navigation__wrapper','isBackwardNavigationEnabled','setTemplate','ck-revision-history-ui__changes-navigation__label','set','forward','isForwardNavigationEnabled','_statusText','bind','span','numberOfChanges','div','isEnabled'];(function(_0x448536,_0x11aca9){const _0x4300b7=function(_0x4731a7){while(--_0x4731a7){_0x448536['push'](_0x448536['shift']());}};_0x4300b7(++_0x11aca9);}(_0x11ac,0x184));const _0x4300=function(_0x448536,_0x11aca9){_0x448536=_0x448536-0x0;let _0x4300b7=_0x11ac[_0x448536];return _0x4300b7;};import{View as _0x33f3f5,ButtonView as _0x16d4d4,ToolbarSeparatorView as _0x21872f}from'ckeditor5/src/ui';import{getTranslation as _0x1507dc}from'../../utils/common-translations';import _0x29293b from'../../../theme/icons/arrow-up.svg';import _0x3e660c from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x33f3f5{constructor(_0x17eb15){super(_0x17eb15);const _0x2a2492=this[_0x4300('0xe')],_0x43f242=new _0x16d4d4(_0x17eb15),_0x28c678=new _0x16d4d4(_0x17eb15);this[_0x4300('0x17')](_0x4300('0x11'),!0x1),this[_0x4300('0x17')](_0x4300('0x8'),!0x1),this[_0x4300('0x17')]('currentChangeNumber',0x0),this[_0x4300('0x17')](_0x4300('0x1d'),0x0),this[_0x4300('0x17')](_0x4300('0x19'),!0x1),this[_0x4300('0x17')](_0x4300('0x14'),!0x1),this['bind'](_0x4300('0xf'))['to'](this,_0x4300('0x8'),this,_0x4300('0x1d'),(_0x1b7236,_0x49809f)=>_0x1b7236&&_0x49809f>0x0),this[_0x4300('0x1b')]('_statusText')['to'](this,_0x4300('0x8'),this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x153c90,_0x2f09b8,_0x4c3fc5,_0x59a763)=>{if(!_0x153c90)return _0x1507dc(_0x17eb15,_0x4300('0xd'));if(!_0x4c3fc5)return _0x1507dc(_0x17eb15,_0x4300('0xb'));const _0x197e5f=_0x1507dc(_0x17eb15,_0x4300('0x5'),_0x4c3fc5);return _0x59a763?_0x1507dc(_0x17eb15,_0x4300('0x7'),[_0x2f09b8+0x1,_0x4c3fc5]):_0x197e5f;}),_0x43f242[_0x4300('0x17')]({'label':_0x1507dc(_0x17eb15,_0x4300('0xa')),'tooltip':!0x0,'icon':_0x29293b}),_0x28c678[_0x4300('0x17')]({'label':_0x1507dc(_0x17eb15,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x3e660c}),_0x43f242[_0x4300('0x1b')](_0x4300('0x1'))['to'](this,_0x4300('0x14')),_0x28c678['bind'](_0x4300('0x1'))['to'](this,_0x4300('0x19')),_0x43f242['on'](_0x4300('0x12'),()=>this[_0x4300('0x2')](_0x4300('0x12'),_0x4300('0x6'))),_0x28c678['on']('execute',()=>this[_0x4300('0x2')](_0x4300('0x12'),_0x4300('0x18'))),this[_0x4300('0x15')]({'tag':_0x4300('0x0'),'attributes':{'class':['ck',_0x4300('0x3'),_0x4300('0xc')]},'children':[{'tag':_0x4300('0x1c'),'attributes':{'class':[_0x4300('0x13')]},'children':[{'tag':_0x4300('0x1c'),'attributes':{'class':[_0x4300('0x16'),_0x2a2492['if'](_0x4300('0xf'),_0x4300('0x10'),_0x2bb519=>!_0x2bb519)]},'children':[{'text':_0x2a2492['to'](_0x4300('0x11'),_0xb17cd1=>_0xb17cd1?_0x1507dc(_0x17eb15,_0x4300('0x9'))+':\x20':_0x1507dc(_0x17eb15,'Total')+':\x20')}]},{'text':_0x2a2492['to'](_0x4300('0x1a'))}]},new _0x21872f(),{'tag':_0x4300('0x0'),'attributes':{'class':[_0x4300('0x4')]},'children':[_0x43f242,_0x28c678]}]});}}
23
+ const _0x4022=['Show\x20previous\x20change','isNavigationMode','span','forward','Loading...','bindTemplate','isBackwardNavigationEnabled','ck-revision-history-ui__changes-navigation__label','EDIT_X_OF_Y_REVISIONS','ck-revision-history-ui__changes-navigation__wrapper','set','ck-revision-history-ui','numberOfChanges','fire','ck-revision-history-ui__changes-navigation__navigation','isForwardNavigationEnabled','_isStatusLabelVisible','div','ck-revision-history-ui__changes-navigation','isReady','isEnabled','execute','bind','NUMBER_OF_CHANGES'];(function(_0xb220e2,_0x4022f1){const _0x57160a=function(_0xf49039){while(--_0xf49039){_0xb220e2['push'](_0xb220e2['shift']());}};_0x57160a(++_0x4022f1);}(_0x4022,0x92));const _0x5716=function(_0xb220e2,_0x4022f1){_0xb220e2=_0xb220e2-0x0;let _0x57160a=_0x4022[_0xb220e2];return _0x57160a;};import{View as _0x35afce,ButtonView as _0x472569,ToolbarSeparatorView as _0xe57361}from'ckeditor5/src/ui';import{getTranslation as _0x146321}from'../../utils/common-translations';import _0x42568d from'../../../theme/icons/arrow-up.svg';import _0x32c5c5 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class pi extends _0x35afce{constructor(_0x737e3d){super(_0x737e3d);const _0x56d31b=this[_0x5716('0x3')],_0x4d65fd=new _0x472569(_0x737e3d),_0x5413c3=new _0x472569(_0x737e3d);this[_0x5716('0x8')](_0x5716('0x17'),!0x1),this['set']('isReady',!0x1),this[_0x5716('0x8')]('currentChangeNumber',0x0),this[_0x5716('0x8')](_0x5716('0xa'),0x0),this[_0x5716('0x8')](_0x5716('0xd'),!0x1),this[_0x5716('0x8')](_0x5716('0x4'),!0x1),this[_0x5716('0x14')](_0x5716('0xe'))['to'](this,'isReady',this,_0x5716('0xa'),(_0x16b546,_0x5d31b0)=>_0x16b546&&_0x5d31b0>0x0),this[_0x5716('0x14')]('_statusText')['to'](this,_0x5716('0x11'),this,'currentChangeNumber',this,_0x5716('0xa'),this,_0x5716('0x17'),(_0x2a170f,_0x273b49,_0x2721ae,_0x21f16b)=>{if(!_0x2a170f)return _0x146321(_0x737e3d,_0x5716('0x2'));if(!_0x2721ae)return _0x146321(_0x737e3d,'No\x20changes');const _0x46042c=_0x146321(_0x737e3d,_0x5716('0x15'),_0x2721ae);return _0x21f16b?_0x146321(_0x737e3d,'X_OF_Y_CHANGES',[_0x273b49+0x1,_0x2721ae]):_0x46042c;}),_0x4d65fd[_0x5716('0x8')]({'label':_0x146321(_0x737e3d,_0x5716('0x16')),'tooltip':!0x0,'icon':_0x42568d}),_0x5413c3[_0x5716('0x8')]({'label':_0x146321(_0x737e3d,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x32c5c5}),_0x4d65fd[_0x5716('0x14')](_0x5716('0x12'))['to'](this,_0x5716('0x4')),_0x5413c3[_0x5716('0x14')]('isEnabled')['to'](this,_0x5716('0xd')),_0x4d65fd['on'](_0x5716('0x13'),()=>this['fire'](_0x5716('0x13'),'backward')),_0x5413c3['on'](_0x5716('0x13'),()=>this[_0x5716('0xb')](_0x5716('0x13'),_0x5716('0x1'))),this['setTemplate']({'tag':_0x5716('0xf'),'attributes':{'class':['ck',_0x5716('0x9'),_0x5716('0x10')]},'children':[{'tag':'span','attributes':{'class':[_0x5716('0x7')]},'children':[{'tag':_0x5716('0x0'),'attributes':{'class':[_0x5716('0x5'),_0x56d31b['if'](_0x5716('0xe'),'ck-hidden',_0x58bc48=>!_0x58bc48)]},'children':[{'text':_0x56d31b['to'](_0x5716('0x17'),_0x19263e=>_0x19263e?_0x146321(_0x737e3d,_0x5716('0x6'))+':\x20':_0x146321(_0x737e3d,'Total')+':\x20')}]},{'text':_0x56d31b['to']('_statusText')}]},new _0xe57361(),{'tag':_0x5716('0xf'),'attributes':{'class':[_0x5716('0xc')]},'children':[_0x4d65fd,_0x5413c3]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x327f=['show','editing','document','ck-editor__editable__loading-overlay','removeClass','editor','change','pluginName','roots','addClass','view'];(function(_0x49c0f5,_0x327ff6){const _0x29dbc7=function(_0x2d9294){while(--_0x2d9294){_0x49c0f5['push'](_0x49c0f5['shift']());}};_0x29dbc7(++_0x327ff6);}(_0x327f,0x19a));const _0x29db=function(_0x49c0f5,_0x327ff6){_0x49c0f5=_0x49c0f5-0x0;let _0x29dbc7=_0x327f[_0x49c0f5];return _0x29dbc7;};import{Plugin as _0x134511}from'ckeditor5/src/core';const oe=_0x29db('0x0');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x134511{static get[_0x29db('0x4')](){return'RevisionViewerLoadingOverlay';}[_0x29db('0x8')](){const _0x3c7c1c=this['editor'][_0x29db('0x9')][_0x29db('0x7')];_0x3c7c1c['change'](_0x3be9b5=>{for(const _0x10e5b4 of _0x3c7c1c[_0x29db('0xa')][_0x29db('0x5')])_0x3be9b5[_0x29db('0x6')](oe,_0x10e5b4);});}['hide'](){const _0x2012e1=this[_0x29db('0x2')][_0x29db('0x9')][_0x29db('0x7')];_0x2012e1[_0x29db('0x3')](_0x514a58=>{for(const _0x29f4c5 of _0x2012e1[_0x29db('0xa')][_0x29db('0x5')])_0x514a58[_0x29db('0x1')](oe,_0x29f4c5);});}}
23
+ const _0x1342=['editor','editing','document','removeClass','roots','ck-editor__editable__loading-overlay','pluginName','hide','view','change'];(function(_0x44ff29,_0x13422c){const _0x42a20d=function(_0x526034){while(--_0x526034){_0x44ff29['push'](_0x44ff29['shift']());}};_0x42a20d(++_0x13422c);}(_0x1342,0x186));const _0x42a2=function(_0x44ff29,_0x13422c){_0x44ff29=_0x44ff29-0x0;let _0x42a20d=_0x1342[_0x44ff29];return _0x42a20d;};import{Plugin as _0x288da9}from'ckeditor5/src/core';const oe=_0x42a2('0x5');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x288da9{static get[_0x42a2('0x6')](){return'RevisionViewerLoadingOverlay';}['show'](){const _0x135a7e=this[_0x42a2('0x0')][_0x42a2('0x1')][_0x42a2('0x8')];_0x135a7e[_0x42a2('0x9')](_0x29788d=>{for(const _0x12e0ad of _0x135a7e[_0x42a2('0x2')][_0x42a2('0x4')])_0x29788d['addClass'](oe,_0x12e0ad);});}[_0x42a2('0x7')](){const _0x4e8405=this['editor']['editing'][_0x42a2('0x8')];_0x4e8405[_0x42a2('0x9')](_0x154f59=>{for(const _0x5574b8 of _0x4e8405[_0x42a2('0x2')]['roots'])_0x154f59[_0x42a2('0x3')](oe,_0x5574b8);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3fd5=['listenTo','Back\x20to\x20editing','isForwardNavigationEnabled','changesNavigation','set','commands','requires','show','restoreRevision','componentFactory','RevisionViewerUI','isEnabled','isNavigationMode','showNextChange','bind','add','currentChangeNumber','closeRevisionViewerCallback','exitToEditing','init','plugins','Restore\x20this\x20revision','revisionHistory','get','execute','pluginName','showPreviousChange','editor'];(function(_0x56aa38,_0x3fd556){const _0x19f191=function(_0xaac4d9){while(--_0xaac4d9){_0x56aa38['push'](_0x56aa38['shift']());}};_0x19f191(++_0x3fd556);}(_0x3fd5,0x1d0));const _0x19f1=function(_0x56aa38,_0x3fd556){_0x56aa38=_0x56aa38-0x0;let _0x19f191=_0x3fd5[_0x56aa38];return _0x19f191;};import{Plugin as _0x4ed885}from'ckeditor5/src/core';import{ButtonView as _0x3bce95}from'ckeditor5/src/ui';import _0x1aa97e from'./changesnavigationview';import _0x4e2cdc from'./../../revisionviewer';import _0x3e1e85 from'./revisionviewerloadingoverlay';import{getTranslation as _0x530b23}from'../../utils/common-translations';import _0x5927dd from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class y extends _0x4ed885{static get[_0x19f1('0x9')](){return _0x19f1('0x16');}static get[_0x19f1('0x12')](){return[_0x4e2cdc,_0x3e1e85];}[_0x19f1('0x3')](){const _0x5da547=this[_0x19f1('0xb')],_0x3cef06=_0x5da547[_0x19f1('0x4')][_0x19f1('0x7')](_0x4e2cdc),_0x17c4ec=_0x5da547[_0x19f1('0x4')][_0x19f1('0x7')](_0x3e1e85);_0x5da547['ui']['componentFactory'][_0x19f1('0x1b')](_0x19f1('0x2'),_0x45f9fb=>{const _0x411bef=new _0x3bce95(_0x45f9fb);return _0x411bef[_0x19f1('0x10')]({'label':_0x530b23(_0x45f9fb,_0x19f1('0xd')),'icon':_0x5927dd,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x411bef,_0x19f1('0x8'),()=>{_0x5da547['config'][_0x19f1('0x7')](_0x19f1('0x6'))[_0x19f1('0x1')]();}),_0x411bef;}),_0x5da547['ui'][_0x19f1('0x15')][_0x19f1('0x1b')](_0x19f1('0x14'),_0x2efb9b=>{const _0x1b4a4e=new _0x3bce95(_0x2efb9b);return _0x1b4a4e[_0x19f1('0x10')]({'label':_0x530b23(_0x2efb9b,_0x19f1('0x5')),'withText':!0x0,'tooltip':!0x0}),_0x1b4a4e[_0x19f1('0x1a')](_0x19f1('0x17'))['to'](_0x5da547[_0x19f1('0x11')][_0x19f1('0x7')](_0x19f1('0x14'))),this['listenTo'](_0x1b4a4e,'execute',()=>_0x5da547['execute'](_0x19f1('0x14'))),_0x1b4a4e;}),_0x5da547['ui'][_0x19f1('0x15')][_0x19f1('0x1b')](_0x19f1('0xf'),_0x54f81f=>{const _0xc4a65c=new _0x1aa97e(_0x54f81f),_0x598005=_0x5da547[_0x19f1('0x11')][_0x19f1('0x7')](_0x19f1('0xa')),_0x3317fa=_0x5da547[_0x19f1('0x11')]['get'](_0x19f1('0x19'));return _0xc4a65c[_0x19f1('0x1a')]('isBackwardNavigationEnabled')['to'](_0x598005,'isEnabled'),_0xc4a65c[_0x19f1('0x1a')](_0x19f1('0xe'))['to'](_0x3317fa,_0x19f1('0x17')),_0xc4a65c[_0x19f1('0x1a')]('isReady',_0x19f1('0x0'),'numberOfChanges',_0x19f1('0x18'))['to'](_0x3cef06),this[_0x19f1('0xc')](_0xc4a65c,_0x19f1('0x8'),(_0x6ecd34,_0x1161fd)=>{_0x5da547[_0x19f1('0x8')]('forward'===_0x1161fd?'showNextChange':_0x19f1('0xa'));}),_0xc4a65c;}),_0x17c4ec[_0x19f1('0x13')](),_0x3cef06['on']('change:isReady',(_0x26ca1e,_0x147de7,_0x474537)=>{_0x474537?_0x17c4ec['hide']():_0x17c4ec[_0x19f1('0x13')]();});}}
23
+ const _0x1bfa=['ck-revision-history-ui__back-to-editing','showPreviousChange','exitToEditing','showNextChange','get','isNavigationMode','add','componentFactory','set','editor','hide','bind','numberOfChanges','show','isBackwardNavigationEnabled','listenTo','isEnabled','plugins','execute','Back\x20to\x20editing','config','isReady','currentChangeNumber','commands','restoreRevision','pluginName','isForwardNavigationEnabled','changesNavigation'];(function(_0x5ca578,_0x1bfafa){const _0x41b93f=function(_0x2d3b48){while(--_0x2d3b48){_0x5ca578['push'](_0x5ca578['shift']());}};_0x41b93f(++_0x1bfafa);}(_0x1bfa,0x1e9));const _0x41b9=function(_0x5ca578,_0x1bfafa){_0x5ca578=_0x5ca578-0x0;let _0x41b93f=_0x1bfa[_0x5ca578];return _0x41b93f;};import{Plugin as _0x3b5a7a}from'ckeditor5/src/core';import{ButtonView as _0x55ec5f}from'ckeditor5/src/ui';import _0x366da3 from'./changesnavigationview';import _0x41602f from'./../../revisionviewer';import _0x303190 from'./revisionviewerloadingoverlay';import{getTranslation as _0x339d22}from'../../utils/common-translations';import _0x2b59ed from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class y extends _0x3b5a7a{static get[_0x41b9('0xc')](){return'RevisionViewerUI';}static get['requires'](){return[_0x41602f,_0x303190];}['init'](){const _0x65bf6f=this[_0x41b9('0x18')],_0x56b88b=_0x65bf6f[_0x41b9('0x4')][_0x41b9('0x13')](_0x41602f),_0x2c2072=_0x65bf6f['plugins'][_0x41b9('0x13')](_0x303190);_0x65bf6f['ui'][_0x41b9('0x16')][_0x41b9('0x15')](_0x41b9('0x11'),_0x2582ef=>{const _0x38029a=new _0x55ec5f(_0x2582ef);return _0x38029a[_0x41b9('0x17')]({'label':_0x339d22(_0x2582ef,_0x41b9('0x6')),'icon':_0x2b59ed,'withText':!0x0,'tooltip':!0x0,'class':_0x41b9('0xf')}),this[_0x41b9('0x2')](_0x38029a,_0x41b9('0x5'),()=>{_0x65bf6f[_0x41b9('0x7')]['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x38029a;}),_0x65bf6f['ui']['componentFactory'][_0x41b9('0x15')](_0x41b9('0xb'),_0x2efcba=>{const _0x4aed79=new _0x55ec5f(_0x2efcba);return _0x4aed79['set']({'label':_0x339d22(_0x2efcba,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4aed79[_0x41b9('0x1a')](_0x41b9('0x3'))['to'](_0x65bf6f[_0x41b9('0xa')][_0x41b9('0x13')]('restoreRevision')),this[_0x41b9('0x2')](_0x4aed79,_0x41b9('0x5'),()=>_0x65bf6f[_0x41b9('0x5')](_0x41b9('0xb'))),_0x4aed79;}),_0x65bf6f['ui'][_0x41b9('0x16')][_0x41b9('0x15')](_0x41b9('0xe'),_0x276106=>{const _0x2c2f3b=new _0x366da3(_0x276106),_0x249630=_0x65bf6f[_0x41b9('0xa')]['get'](_0x41b9('0x10')),_0x89652b=_0x65bf6f[_0x41b9('0xa')]['get']('showNextChange');return _0x2c2f3b['bind'](_0x41b9('0x1'))['to'](_0x249630,'isEnabled'),_0x2c2f3b[_0x41b9('0x1a')](_0x41b9('0xd'))['to'](_0x89652b,_0x41b9('0x3')),_0x2c2f3b[_0x41b9('0x1a')](_0x41b9('0x8'),_0x41b9('0x9'),_0x41b9('0x1b'),_0x41b9('0x14'))['to'](_0x56b88b),this[_0x41b9('0x2')](_0x2c2f3b,_0x41b9('0x5'),(_0x5846d2,_0x211b2a)=>{_0x65bf6f[_0x41b9('0x5')]('forward'===_0x211b2a?_0x41b9('0x12'):_0x41b9('0x10'));}),_0x2c2f3b;}),_0x2c2072[_0x41b9('0x0')](),_0x56b88b['on']('change:isReady',(_0x2bebcc,_0x3bad0d,_0x298b34)=>{_0x298b34?_0x2c2072[_0x41b9('0x19')]():_0x2c2072[_0x41b9('0x0')]();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x377cdb,_0x420537,_0x248785){const t=_0x377cdb['t'];switch(_0x420537){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'},_0x248785);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x248785);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 _0x420537;}}
23
+ export function getTranslation(_0x2709e3,_0xfb63f3,_0x41627b){const t=_0x2709e3['t'];switch(_0xfb63f3){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'},_0x41627b);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x41627b);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 _0xfb63f3;}}