@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230725.0 → 0.0.0-nightly-20230726.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 _0x5a03=['view','remove','config','buttonView','isReadOnly','reset','length','revisionHistory','pluginName','render','saveRevision','get','RevisionTracker','panelView','addMany','Revision\x20history','editor','revisionName','RevisionHistoryUI','isEnabled','plugins','execute','Save\x20current\x20revision','add','change:isOpen','focus','set','cancel','isReady','bind','saveButtonView'];(function(_0x4ad47c,_0x5a0386){const _0x18dd4b=function(_0x5e3308){while(--_0x5e3308){_0x4ad47c['push'](_0x4ad47c['shift']());}};_0x18dd4b(++_0x5a0386);}(_0x5a03,0x19e));const _0x18dd=function(_0x4ad47c,_0x5a0386){_0x4ad47c=_0x4ad47c-0x0;let _0x18dd4b=_0x5a03[_0x4ad47c];return _0x18dd4b;};import{Plugin as _0x4cf1cc}from'ckeditor5/src/core';import{ListView as _0x4d4b51,ListItemView as _0x5c47b9,ButtonView as _0x2b8fbb,createDropdown as _0x10f034}from'ckeditor5/src/ui';import _0x380341 from'../../revisiontracker';import _0x333c1e from'./revisionhistorysaverevisionformview';import _0x3dc9f5 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x4fd966}from'../../utils/common-translations';export default class u extends _0x4cf1cc{static get[_0x18dd('0x1c')](){return _0x18dd('0x7');}static get['requires'](){return[_0x380341];}['init'](){const _0x49fe5a=this[_0x18dd('0x5')],_0x101679=_0x49fe5a[_0x18dd('0x9')]['get'](_0x18dd('0x1'));_0x49fe5a['ui']['componentFactory'][_0x18dd('0xc')](_0x18dd('0x1b'),_0x6de3df=>{const _0x473bfe=_0x10f034(_0x6de3df),_0x3063f0=_0x473bfe[_0x18dd('0x2')]['children'],_0xccb0ca=new _0x4d4b51(_0x6de3df),_0x1e01b9=new _0x5c47b9(_0x6de3df),_0x4d5553=new _0x2b8fbb(_0x6de3df),_0x3d68e8=new _0x5c47b9(_0x6de3df),_0x5c4c37=new _0x2b8fbb(_0x6de3df),_0x2b1424=new _0x333c1e(_0x6de3df);function _0x35a457(){_0x3063f0[_0x18dd('0x1a')]&&_0x3063f0[_0x18dd('0x15')](0x0),_0x3063f0[_0x18dd('0xc')](_0xccb0ca);}function _0x5f394f(){_0x473bfe['isOpen']=!0x1,_0x49fe5a['editing'][_0x18dd('0x14')][_0x18dd('0xe')]();}return _0x473bfe[_0x18dd('0x12')]('isEnabled')['to'](_0x101679,_0x18dd('0x11'),_0x101679,_0x18dd('0x8'),_0x49fe5a,_0x18dd('0x18'),(_0x1bf4ee,_0x4a34da,_0x209b1d)=>_0x1bf4ee&&_0x4a34da&&!_0x209b1d),_0x473bfe[_0x18dd('0x17')]['set']({'icon':_0x3dc9f5,'label':_0x4fd966(_0x6de3df,_0x18dd('0x4')),'tooltip':!0x0}),_0x4d5553[_0x18dd('0xf')]({'label':_0x4fd966(_0x6de3df,_0x18dd('0xb')),'withText':!0x0}),_0x4d5553['bind'](_0x18dd('0x8'))['to'](_0x101679,_0x18dd('0x11'),_0x101679,_0x18dd('0x8'),_0x49fe5a,_0x18dd('0x18'),(_0xbfb57d,_0x308b5c,_0x1e6fb7)=>_0xbfb57d&&_0x308b5c&&!_0x1e6fb7),_0x4d5553['on'](_0x18dd('0xa'),()=>function(){_0x3063f0[_0x18dd('0x1a')]&&_0x3063f0[_0x18dd('0x15')](0x0),(_0x2b1424[_0x18dd('0x19')](),_0x3063f0[_0x18dd('0xc')](_0x2b1424),_0x2b1424['focus']());}()),_0x5c4c37[_0x18dd('0xf')]({'label':_0x4fd966(_0x6de3df,'Open\x20revision\x20history'),'withText':!0x0}),_0x5c4c37[_0x18dd('0x12')]('isEnabled')['to'](_0x101679,'isReady',_0x49fe5a,_0x18dd('0x18'),(_0x340274,_0x1d3129)=>_0x340274&&!_0x1d3129),_0x5c4c37['on'](_0x18dd('0xa'),()=>{_0x49fe5a[_0x18dd('0x16')][_0x18dd('0x0')](_0x18dd('0x1b'))['showRevisionViewerCallback'](),_0x5f394f();}),_0x1e01b9['children']['add'](_0x4d5553),_0x3d68e8['children'][_0x18dd('0xc')](_0x5c4c37),_0xccb0ca['items'][_0x18dd('0x3')]([_0x1e01b9,_0x3d68e8]),_0x473bfe['on'](_0x18dd('0xd'),()=>_0x35a457()),_0x2b1424[_0x18dd('0x13')]['bind'](_0x18dd('0x8'))['to'](_0x101679,'isReady',_0x101679,_0x18dd('0x8'),_0x49fe5a,_0x18dd('0x18'),(_0x109f4c,_0x455bab,_0x22dc9a)=>_0x109f4c&&_0x455bab&&!_0x22dc9a),_0x2b1424['on']('submit',()=>(_0x49fe5a[_0x18dd('0x9')][_0x18dd('0x0')](_0x380341)[_0x18dd('0x1e')]({'name':_0x2b1424[_0x18dd('0x6')]}),void _0x5f394f())),_0x2b1424['on'](_0x18dd('0x10'),()=>_0x35a457()),_0x2b1424[_0x18dd('0x1d')](),_0x35a457(),_0x473bfe;});}}
23
+ const _0x2f07=['requires','panelView','get','RevisionHistoryUI','isReadOnly','revisionHistory','cancel','saveRevision','bind','remove','Open\x20revision\x20history','editor','saveButtonView','addMany','plugins','isEnabled','config','children','componentFactory','isReady','items','change:isOpen','revisionName','focus','Revision\x20history','pluginName','render','execute','add','showRevisionViewerCallback','Save\x20current\x20revision','init','length','submit','set'];(function(_0x5ca1be,_0x2f074c){const _0x1deb61=function(_0x2222ea){while(--_0x2222ea){_0x5ca1be['push'](_0x5ca1be['shift']());}};_0x1deb61(++_0x2f074c);}(_0x2f07,0x1e9));const _0x1deb=function(_0x5ca1be,_0x2f074c){_0x5ca1be=_0x5ca1be-0x0;let _0x1deb61=_0x2f07[_0x5ca1be];return _0x1deb61;};import{Plugin as _0x28dafe}from'ckeditor5/src/core';import{ListView as _0x1dae5a,ListItemView as _0x17758b,ButtonView as _0x4c9a7f,createDropdown as _0x2f5e26}from'ckeditor5/src/ui';import _0x452f2d from'../../revisiontracker';import _0x507521 from'./revisionhistorysaverevisionformview';import _0x7be430 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x357b8e}from'../../utils/common-translations';export default class u extends _0x28dafe{static get[_0x1deb('0x1a')](){return _0x1deb('0x4');}static get[_0x1deb('0x1')](){return[_0x452f2d];}[_0x1deb('0x20')](){const _0x91130c=this[_0x1deb('0xc')],_0x588409=_0x91130c[_0x1deb('0xf')][_0x1deb('0x3')]('RevisionTracker');_0x91130c['ui'][_0x1deb('0x13')][_0x1deb('0x1d')](_0x1deb('0x6'),_0x30925a=>{const _0xe9abec=_0x2f5e26(_0x30925a),_0x288e36=_0xe9abec[_0x1deb('0x2')]['children'],_0x5e932b=new _0x1dae5a(_0x30925a),_0x231697=new _0x17758b(_0x30925a),_0x346b1a=new _0x4c9a7f(_0x30925a),_0x33d980=new _0x17758b(_0x30925a),_0x5edbca=new _0x4c9a7f(_0x30925a),_0x45fd7c=new _0x507521(_0x30925a);function _0x35afa0(){_0x288e36[_0x1deb('0x21')]&&_0x288e36['remove'](0x0),_0x288e36[_0x1deb('0x1d')](_0x5e932b);}function _0x4685ec(){_0xe9abec['isOpen']=!0x1,_0x91130c['editing']['view'][_0x1deb('0x18')]();}return _0xe9abec['bind'](_0x1deb('0x10'))['to'](_0x588409,'isReady',_0x588409,_0x1deb('0x10'),_0x91130c,_0x1deb('0x5'),(_0x42fcc9,_0x1cddda,_0x1a99a8)=>_0x42fcc9&&_0x1cddda&&!_0x1a99a8),_0xe9abec['buttonView'][_0x1deb('0x0')]({'icon':_0x7be430,'label':_0x357b8e(_0x30925a,_0x1deb('0x19')),'tooltip':!0x0}),_0x346b1a[_0x1deb('0x0')]({'label':_0x357b8e(_0x30925a,_0x1deb('0x1f')),'withText':!0x0}),_0x346b1a[_0x1deb('0x9')](_0x1deb('0x10'))['to'](_0x588409,_0x1deb('0x14'),_0x588409,_0x1deb('0x10'),_0x91130c,_0x1deb('0x5'),(_0x25d9cf,_0xfe158b,_0x2a44e6)=>_0x25d9cf&&_0xfe158b&&!_0x2a44e6),_0x346b1a['on'](_0x1deb('0x1c'),()=>function(){_0x288e36[_0x1deb('0x21')]&&_0x288e36[_0x1deb('0xa')](0x0),(_0x45fd7c['reset'](),_0x288e36['add'](_0x45fd7c),_0x45fd7c['focus']());}()),_0x5edbca[_0x1deb('0x0')]({'label':_0x357b8e(_0x30925a,_0x1deb('0xb')),'withText':!0x0}),_0x5edbca[_0x1deb('0x9')]('isEnabled')['to'](_0x588409,_0x1deb('0x14'),_0x91130c,'isReadOnly',(_0x21b074,_0x4c1fe6)=>_0x21b074&&!_0x4c1fe6),_0x5edbca['on'](_0x1deb('0x1c'),()=>{_0x91130c[_0x1deb('0x11')][_0x1deb('0x3')](_0x1deb('0x6'))[_0x1deb('0x1e')](),_0x4685ec();}),_0x231697['children'][_0x1deb('0x1d')](_0x346b1a),_0x33d980[_0x1deb('0x12')]['add'](_0x5edbca),_0x5e932b[_0x1deb('0x15')][_0x1deb('0xe')]([_0x231697,_0x33d980]),_0xe9abec['on'](_0x1deb('0x16'),()=>_0x35afa0()),_0x45fd7c[_0x1deb('0xd')][_0x1deb('0x9')]('isEnabled')['to'](_0x588409,_0x1deb('0x14'),_0x588409,_0x1deb('0x10'),_0x91130c,_0x1deb('0x5'),(_0x1907d7,_0x41a7b6,_0x4a9e3b)=>_0x1907d7&&_0x41a7b6&&!_0x4a9e3b),_0x45fd7c['on'](_0x1deb('0x22'),()=>(_0x91130c[_0x1deb('0xf')]['get'](_0x452f2d)[_0x1deb('0x8')]({'name':_0x45fd7c[_0x1deb('0x17')]}),void _0x4685ec())),_0x45fd7c['on'](_0x1deb('0x7'),()=>_0x35afa0()),_0x45fd7c[_0x1deb('0x1b')](),_0x35afa0(),_0xe9abec;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x522b=['revisionSetName','getRevision','revisionSelected','compareAgainstSelected','isEnabled','compare','Compare\x20against\x20selected','action','repository','revisionHistory.viewerSidebarContainer','isVisible','pluginName','element','config','isSelected','revisionViews','setName','bind','render','defaultRevisionActions','ready','map','getRevisionsInDiff','restoreRevision','plugins','Name\x20this\x20revision','_sidebarView','revisionHistory','isReady','_handleRevisionSetName','length','string','getEarlierVisibleRevision','_revisions','destroy','get','_revisionsRepository','RevisionsSidebar','_revisionViewer','_createRevisionActions','getIndex','remove','timePeriodViews','nameRevision','focus','revisionHistory.revisionActions','listenTo','availableRevisionActions','editor','selectRevision','_handleRevisionSelected','_handleDiffChange','diff','init','getLaterVisibleRevision','add','requires','highlightRevisions','change:diff','fieldView'];(function(_0x2f54f1,_0x522b2b){const _0x3511f5=function(_0x370110){while(--_0x370110){_0x2f54f1['push'](_0x2f54f1['shift']());}};_0x3511f5(++_0x522b2b);}(_0x522b,0x12b));const _0x3511=function(_0x2f54f1,_0x522b2b){_0x2f54f1=_0x2f54f1-0x0;let _0x3511f5=_0x522b[_0x2f54f1];return _0x3511f5;};import{Plugin as _0xbb8b03}from'ckeditor5/src/core';import _0x139ce9 from'./revisionssidebarview';import _0x5968c4 from'../../revisionviewer';export default class w extends _0xbb8b03{static get[_0x3511('0xc')](){return _0x3511('0x26');}static get[_0x3511('0x39')](){return[_0x5968c4];}constructor(_0x58aadf){super(_0x58aadf),this['_revisionViewer']=_0x58aadf[_0x3511('0x19')][_0x3511('0x24')](_0x5968c4),this['_revisionsRepository']=this[_0x3511('0x27')][_0x3511('0x9')],this[_0x3511('0x1b')]=null;}[_0x3511('0x36')](){const _0x48ff8f=this[_0x3511('0x25')][_0x3511('0x22')],_0x336732=this[_0x3511('0x28')](),_0x11caf1=this[_0x3511('0x31')][_0x3511('0xe')][_0x3511('0x24')](_0x3511('0xa'));this[_0x3511('0x1b')]=new _0x139ce9(this[_0x3511('0x31')]['locale'],_0x48ff8f,_0x336732),this[_0x3511('0x1b')]['on'](_0x3511('0x3'),this[_0x3511('0x33')]['bind'](this)),this['_sidebarView']['on'](_0x3511('0x1'),this['_handleRevisionSetName']['bind'](this)),this[_0x3511('0x1b')]['bind'](_0x3511('0x5'))['to'](this[_0x3511('0x27')]),this['_sidebarView'][_0x3511('0x2b')]['on'](_0x3511('0x38'),(_0x33f168,_0x1cfdb1)=>{_0x1cfdb1[_0x3511('0x10')]['on'](_0x3511('0x38'),(_0x256c29,_0x1de0ab)=>{_0x1de0ab[_0x3511('0x12')](_0x3511('0x5'),_0x3511('0x1d'))['to'](this[_0x3511('0x27')]);});}),this[_0x3511('0x1b')][_0x3511('0x13')](),this[_0x3511('0x2f')](this[_0x3511('0x31')]['data'],_0x3511('0x15'),this['_handleEditorDataReady'][_0x3511('0x12')](this)),this[_0x3511('0x2f')](this['_revisionViewer'],_0x3511('0x3b'),this[_0x3511('0x34')][_0x3511('0x12')](this)),_0x11caf1['appendChild'](this[_0x3511('0x1b')]['element']);}[_0x3511('0x23')](){this[_0x3511('0x1b')][_0x3511('0xd')][_0x3511('0x2a')](),this[_0x3511('0x1b')][_0x3511('0x23')]();}['_handleEditorDataReady'](){const _0x39739c=this[_0x3511('0x25')]['getRevision'](0x0);if(_0x39739c){const _0x3439f6=this[_0x3511('0x25')]['getEarlierVisibleRevision'](_0x39739c['id']);this[_0x3511('0x27')]['compare'](_0x39739c,_0x3439f6);}}['_handleRevisionSelected'](_0x4ef8c5,_0x408fdb){const _0x2722af=this[_0x3511('0x25')]['getRevision'](_0x408fdb['id']),_0x245e64=this['_revisionsRepository'][_0x3511('0x21')](_0x2722af['id']);this[_0x3511('0x27')][_0x3511('0x6')](_0x2722af,_0x245e64);}[_0x3511('0x1e')](_0x5d42a2,_0x4710bb){this[_0x3511('0x25')][_0x3511('0x2')](_0x4710bb['id'])[_0x3511('0x11')](_0x4710bb['name']);}['_handleDiffChange'](_0x1da9d7,_0xf5ea14,_0x454c8b){const _0x5a9a8a=this['_revisionsRepository'][_0x3511('0x17')](_0x454c8b);_0x5a9a8a[_0x3511('0x1f')]>0x2?(this[_0x3511('0x1b')][_0x3511('0x3a')](_0x5a9a8a),this[_0x3511('0x1b')][_0x3511('0x32')](null)):(this['_sidebarView'][_0x3511('0x3a')]([]),this[_0x3511('0x1b')][_0x3511('0x32')](_0x5a9a8a[0x0]));}[_0x3511('0x28')](){const _0x33d123=this[_0x3511('0x31')],_0x1bc140=w[_0x3511('0x30')],_0x4fc155=_0x33d123['config'][_0x3511('0x24')](_0x3511('0x2e'))||w[_0x3511('0x14')];if(_0x4fc155[_0x3511('0x1f')])return _0x4fc155[_0x3511('0x16')](_0x59513f=>{const _0x203088=_0x3511('0x20')==typeof _0x59513f?Object['assign']({},_0x1bc140[_0x59513f]):_0x59513f;return _0x203088[_0x3511('0x8')]=_0x203088['action'][_0x3511('0x12')](this,_0x33d123),_0x203088[_0x3511('0xb')]&&(_0x203088[_0x3511('0xb')]=_0x203088[_0x3511('0xb')][_0x3511('0x12')](this,_0x33d123)),_0x203088;});}}w['availableRevisionActions']={'compareAgainstSelected':{'name':_0x3511('0x7'),'action':({plugins:_0x10d373},_0x2d29d1)=>{const _0x31735a=_0x10d373[_0x3511('0x24')](_0x5968c4),_0x41c2dc=_0x31735a[_0x3511('0x9')];let _0x3c8641=_0x31735a['diff']['newRevisionId'],_0x1bd0b2=_0x2d29d1['id'];_0x41c2dc['getIndex'](_0x3c8641)>_0x41c2dc[_0x3511('0x29')](_0x1bd0b2)&&([_0x3c8641,_0x1bd0b2]=[_0x1bd0b2,_0x3c8641]),_0x31735a[_0x3511('0x6')](_0x3c8641,_0x1bd0b2);},'isVisible':({plugins:_0x89a0fb},_0x439705)=>{const _0x57a27e=_0x89a0fb[_0x3511('0x24')](_0x5968c4);return!(_0x57a27e['repository'][_0x3511('0x17')](_0x57a27e[_0x3511('0x35')])['length']>0x2)&&!_0x439705[_0x3511('0xf')];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x5320d5,{id:_0xd093fc})=>{_0x5320d5[_0x3511('0xe')]['get'](_0x3511('0x1c'))['restoreRevisionCallback'](_0xd093fc);},'isVisible':({plugins:_0x42ccbb},_0x4faed8)=>!!_0x42ccbb[_0x3511('0x24')](_0x5968c4)['repository'][_0x3511('0x37')](_0x4faed8['id'])},'nameRevision':{'name':_0x3511('0x1a'),'action':({plugins:_0x172c4f},{id:_0x45b99d,revisionNameView:_0x2efc9})=>{const _0x20605d=_0x172c4f[_0x3511('0x24')](_0x5968c4),_0x4cfd94=_0x20605d[_0x3511('0x9')][_0x3511('0x21')](_0x45b99d);_0x20605d['compare'](_0x45b99d,_0x4cfd94),_0x2efc9[_0x3511('0x2d')](),_0x2efc9[_0x3511('0x0')]['select']();}}},w[_0x3511('0x14')]=[_0x3511('0x4'),_0x3511('0x18'),_0x3511('0x2c')];
23
+ const _0x529c=['defaultRevisionActions','_revisionViewer','config','isSelected','compare','pluginName','_handleDiffChange','restoreRevision','revisionSetName','string','editor','name','init','highlightRevisions','getIndex','setName','nameRevision','Restore\x20this\x20revision','fieldView','selectRevision','render','getEarlierVisibleRevision','revisionHistory.viewerSidebarContainer','revisionSelected','bind','getLaterVisibleRevision','isVisible','availableRevisionActions','remove','locale','element','add','get','_handleRevisionSelected','focus','_createRevisionActions','repository','_sidebarView','revisionHistory','_handleRevisionSetName','requires','length','Name\x20this\x20revision','revisionViews','Compare\x20against\x20selected','revisionHistory.revisionActions','_revisionsRepository','isEnabled','appendChild','data','destroy','timePeriodViews','restoreRevisionCallback','_handleEditorDataReady','getRevision','newRevisionId'];(function(_0x36e3be,_0x529c9f){const _0x183f8c=function(_0x3b4a68){while(--_0x3b4a68){_0x36e3be['push'](_0x36e3be['shift']());}};_0x183f8c(++_0x529c9f);}(_0x529c,0x14a));const _0x183f=function(_0x36e3be,_0x529c9f){_0x36e3be=_0x36e3be-0x0;let _0x183f8c=_0x529c[_0x36e3be];return _0x183f8c;};import{Plugin as _0x4e346f}from'ckeditor5/src/core';import _0x195417 from'./revisionssidebarview';import _0x49ca4a from'../../revisionviewer';export default class w extends _0x4e346f{static get[_0x183f('0xb')](){return'RevisionsSidebar';}static get[_0x183f('0x2e')](){return[_0x49ca4a];}constructor(_0x420359){super(_0x420359),this[_0x183f('0x7')]=_0x420359['plugins'][_0x183f('0x26')](_0x49ca4a),this[_0x183f('0x34')]=this[_0x183f('0x7')][_0x183f('0x2a')],this[_0x183f('0x2b')]=null;}[_0x183f('0x12')](){const _0x2ffded=this[_0x183f('0x34')]['_revisions'],_0x394f64=this[_0x183f('0x29')](),_0x5e6dfe=this[_0x183f('0x10')]['config'][_0x183f('0x26')](_0x183f('0x1c'));this['_sidebarView']=new _0x195417(this[_0x183f('0x10')][_0x183f('0x23')],_0x2ffded,_0x394f64),this[_0x183f('0x2b')]['on'](_0x183f('0x1d'),this[_0x183f('0x27')][_0x183f('0x1e')](this)),this['_sidebarView']['on'](_0x183f('0xe'),this['_handleRevisionSetName'][_0x183f('0x1e')](this)),this[_0x183f('0x2b')][_0x183f('0x1e')](_0x183f('0x35'))['to'](this['_revisionViewer']),this[_0x183f('0x2b')][_0x183f('0x1')]['on']('add',(_0x2cbc1e,_0x277d47)=>{_0x277d47[_0x183f('0x31')]['on'](_0x183f('0x25'),(_0xddc5ba,_0x255d8d)=>{_0x255d8d[_0x183f('0x1e')](_0x183f('0x35'),'isReady')['to'](this[_0x183f('0x7')]);});}),this['_sidebarView'][_0x183f('0x1a')](),this['listenTo'](this[_0x183f('0x10')][_0x183f('0x37')],'ready',this[_0x183f('0x3')][_0x183f('0x1e')](this)),this['listenTo'](this[_0x183f('0x7')],'change:diff',this[_0x183f('0xc')]['bind'](this)),_0x5e6dfe[_0x183f('0x36')](this[_0x183f('0x2b')][_0x183f('0x24')]);}[_0x183f('0x0')](){this['_sidebarView'][_0x183f('0x24')][_0x183f('0x22')](),this[_0x183f('0x2b')]['destroy']();}['_handleEditorDataReady'](){const _0x3de925=this[_0x183f('0x34')][_0x183f('0x4')](0x0);if(_0x3de925){const _0x541048=this[_0x183f('0x34')]['getEarlierVisibleRevision'](_0x3de925['id']);this[_0x183f('0x7')]['compare'](_0x3de925,_0x541048);}}['_handleRevisionSelected'](_0x1c00f8,_0x76786){const _0xc99b41=this[_0x183f('0x34')][_0x183f('0x4')](_0x76786['id']),_0x57f33d=this[_0x183f('0x34')]['getEarlierVisibleRevision'](_0xc99b41['id']);this['_revisionViewer'][_0x183f('0xa')](_0xc99b41,_0x57f33d);}[_0x183f('0x2d')](_0x12adce,_0x3a17b9){this[_0x183f('0x34')][_0x183f('0x4')](_0x3a17b9['id'])[_0x183f('0x15')](_0x3a17b9[_0x183f('0x11')]);}[_0x183f('0xc')](_0x2811d8,_0x3891ea,_0x60a27c){const _0x1f334e=this['_revisionsRepository']['getRevisionsInDiff'](_0x60a27c);_0x1f334e[_0x183f('0x2f')]>0x2?(this[_0x183f('0x2b')][_0x183f('0x13')](_0x1f334e),this[_0x183f('0x2b')][_0x183f('0x19')](null)):(this[_0x183f('0x2b')][_0x183f('0x13')]([]),this[_0x183f('0x2b')]['selectRevision'](_0x1f334e[0x0]));}[_0x183f('0x29')](){const _0x25cab1=this[_0x183f('0x10')],_0x2b69a6=w[_0x183f('0x21')],_0x541fa4=_0x25cab1[_0x183f('0x8')][_0x183f('0x26')](_0x183f('0x33'))||w[_0x183f('0x6')];if(_0x541fa4[_0x183f('0x2f')])return _0x541fa4['map'](_0x24f9c5=>{const _0x220f83=_0x183f('0xf')==typeof _0x24f9c5?Object['assign']({},_0x2b69a6[_0x24f9c5]):_0x24f9c5;return _0x220f83['action']=_0x220f83['action']['bind'](this,_0x25cab1),_0x220f83['isVisible']&&(_0x220f83[_0x183f('0x20')]=_0x220f83['isVisible'][_0x183f('0x1e')](this,_0x25cab1)),_0x220f83;});}}w[_0x183f('0x21')]={'compareAgainstSelected':{'name':_0x183f('0x32'),'action':({plugins:_0x3d3aca},_0x589ac4)=>{const _0xaa0352=_0x3d3aca[_0x183f('0x26')](_0x49ca4a),_0x4ac039=_0xaa0352[_0x183f('0x2a')];let _0x51488b=_0xaa0352['diff'][_0x183f('0x5')],_0x5e9da2=_0x589ac4['id'];_0x4ac039['getIndex'](_0x51488b)>_0x4ac039[_0x183f('0x14')](_0x5e9da2)&&([_0x51488b,_0x5e9da2]=[_0x5e9da2,_0x51488b]),_0xaa0352[_0x183f('0xa')](_0x51488b,_0x5e9da2);},'isVisible':({plugins:_0x15cfb3},_0xe03fd3)=>{const _0x37e1d2=_0x15cfb3[_0x183f('0x26')](_0x49ca4a);return!(_0x37e1d2[_0x183f('0x2a')]['getRevisionsInDiff'](_0x37e1d2['diff'])['length']>0x2)&&!_0xe03fd3[_0x183f('0x9')];}},'restoreRevision':{'name':_0x183f('0x17'),'action':(_0x56ef1c,{id:_0x308799})=>{_0x56ef1c['config'][_0x183f('0x26')](_0x183f('0x2c'))[_0x183f('0x2')](_0x308799);},'isVisible':({plugins:_0x1a95d1},_0x4172d7)=>!!_0x1a95d1[_0x183f('0x26')](_0x49ca4a)['repository'][_0x183f('0x1f')](_0x4172d7['id'])},'nameRevision':{'name':_0x183f('0x30'),'action':({plugins:_0xe722fb},{id:_0x443652,revisionNameView:_0x2660d4})=>{const _0x4c4201=_0xe722fb[_0x183f('0x26')](_0x49ca4a),_0x2dfe05=_0x4c4201['repository'][_0x183f('0x1b')](_0x443652);_0x4c4201[_0x183f('0xa')](_0x443652,_0x2dfe05),_0x2660d4[_0x183f('0x28')](),_0x2660d4[_0x183f('0x18')]['select']();}}},w[_0x183f('0x6')]=['compareAgainstSelected',_0x183f('0xd'),_0x183f('0x16')];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3152=['div','ck-revision-history-sidebar__header__label','content','ck-revision-history-sidebar__header','ck-reset_all','Revision\x20history'];(function(_0x340b31,_0x315219){const _0x50c706=function(_0x31a34a){while(--_0x31a34a){_0x340b31['push'](_0x340b31['shift']());}};_0x50c706(++_0x315219);}(_0x3152,0x13e));const _0x50c7=function(_0x340b31,_0x315219){_0x340b31=_0x340b31-0x0;let _0x50c706=_0x3152[_0x340b31];return _0x50c706;};import{View as _0x46b056,IconView as _0x25ec21}from'ckeditor5/src/ui';import{getTranslation as _0x3c5c94}from'../../utils/common-translations';import _0x5dcc11 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class es extends _0x46b056{constructor(_0x293fb0){super(_0x293fb0);const _0x50fb05=new _0x25ec21();_0x50fb05[_0x50c7('0x2')]=_0x5dcc11,this['setTemplate']({'tag':_0x50c7('0x0'),'attributes':{'class':['ck',_0x50c7('0x4'),_0x50c7('0x3')]},'children':[_0x50fb05,{'tag':'span','attributes':{'class':['ck',_0x50c7('0x1')]},'children':[_0x3c5c94(_0x293fb0,_0x50c7('0x5'))]}]});}}
23
+ const _0x1f09=['div','ck-revision-history-sidebar__header__label','content','ck-reset_all','Revision\x20history'];(function(_0x231604,_0x1f09d9){const _0x553be7=function(_0x236ad4){while(--_0x236ad4){_0x231604['push'](_0x231604['shift']());}};_0x553be7(++_0x1f09d9);}(_0x1f09,0x6d));const _0x553b=function(_0x231604,_0x1f09d9){_0x231604=_0x231604-0x0;let _0x553be7=_0x1f09[_0x231604];return _0x553be7;};import{View as _0xa24441,IconView as _0x102db0}from'ckeditor5/src/ui';import{getTranslation as _0x283fc0}from'../../utils/common-translations';import _0x53ec90 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0xa24441{constructor(_0xaea5ab){super(_0xaea5ab);const _0x17ab39=new _0x102db0();_0x17ab39[_0x553b('0x3')]=_0x53ec90,this['setTemplate']({'tag':_0x553b('0x1'),'attributes':{'class':['ck',_0x553b('0x4'),'ck-revision-history-sidebar__header']},'children':[_0x17ab39,{'tag':'span','attributes':{'class':['ck',_0x553b('0x2')]},'children':[_0x283fc0(_0xaea5ab,_0x553b('0x0'))]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4644=['addRevision','revisionViews','startDate','locale','find','div','uiLanguage','span','createCollection','ck-revision-history-sidebar__time-period__revisions','_revisionActions','delegate'];(function(_0x5cb996,_0x4644a8){const _0x414eac=function(_0x14329b){while(--_0x14329b){_0x5cb996['push'](_0x5cb996['shift']());}};_0x414eac(++_0x4644a8);}(_0x4644,0x1e9));const _0x414e=function(_0x5cb996,_0x4644a8){_0x5cb996=_0x5cb996-0x0;let _0x414eac=_0x4644[_0x5cb996];return _0x414eac;};import{View as _0x589e3c}from'ckeditor5/src/ui';import _0x261944 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x1da0ff}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x589e3c{constructor(_0x5bb509,_0x1d87ee,_0x555744){super(_0x5bb509);const _0x3ed240=_0x1da0ff(_0x1d87ee,this['locale'][_0x414e('0x9')])['localizedPeriodName'];this[_0x414e('0x5')]=_0x1d87ee,this[_0x414e('0x4')]=this[_0x414e('0xb')](),this[_0x414e('0x1')]=_0x555744,this['revisionViews'][_0x414e('0x2')]('select')['to'](this),this[_0x414e('0x4')][_0x414e('0x2')]('setName')['to'](this),this['setTemplate']({'tag':_0x414e('0x8'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':_0x414e('0xa'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x3ed240}]},{'tag':_0x414e('0x8'),'attributes':{'class':['ck',_0x414e('0x0')]},'children':this['revisionViews']}]});}[_0x414e('0x3')](_0x5d9b4f){const _0x370371=new _0x261944(this[_0x414e('0x6')],_0x5d9b4f,this[_0x414e('0x1')]);this[_0x414e('0x4')]['add'](_0x370371);}['removeRevision'](_0x2247f1){const _0x4c4c0b=this['revisionViews'][_0x414e('0x7')](_0x37ee21=>_0x37ee21['id']===_0x2247f1['id']);this[_0x414e('0x4')]['remove'](_0x4c4c0b);}}
23
+ const _0x3983=['removeRevision','locale','div','_revisionActions','uiLanguage','span','ck-revision-history-sidebar__time-period','add','setName','remove','startDate','delegate','revisionViews','ck-revision-history-sidebar__time-period__label','addRevision','setTemplate','ck-revision-history-sidebar__time-period__revisions'];(function(_0x3ba0e1,_0x39838d){const _0x39ccc2=function(_0x14b9c0){while(--_0x14b9c0){_0x3ba0e1['push'](_0x3ba0e1['shift']());}};_0x39ccc2(++_0x39838d);}(_0x3983,0x15e));const _0x39cc=function(_0x3ba0e1,_0x39838d){_0x3ba0e1=_0x3ba0e1-0x0;let _0x39ccc2=_0x3983[_0x3ba0e1];return _0x39ccc2;};import{View as _0x35f92b}from'ckeditor5/src/ui';import _0x3fd6c4 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x3a6915}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x35f92b{constructor(_0x24b556,_0x1d685a,_0x172b1a){super(_0x24b556);const _0x3a52c9=_0x3a6915(_0x1d685a,this[_0x39cc('0x8')][_0x39cc('0xb')])['localizedPeriodName'];this[_0x39cc('0x0')]=_0x1d685a,this[_0x39cc('0x2')]=this['createCollection'](),this[_0x39cc('0xa')]=_0x172b1a,this[_0x39cc('0x2')][_0x39cc('0x1')]('select')['to'](this),this[_0x39cc('0x2')][_0x39cc('0x1')](_0x39cc('0xf'))['to'](this),this[_0x39cc('0x5')]({'tag':_0x39cc('0x9'),'attributes':{'class':['ck',_0x39cc('0xd')]},'children':[{'tag':_0x39cc('0xc'),'attributes':{'class':['ck',_0x39cc('0x3')]},'children':[{'text':_0x3a52c9}]},{'tag':_0x39cc('0x9'),'attributes':{'class':['ck',_0x39cc('0x6')]},'children':this['revisionViews']}]});}[_0x39cc('0x4')](_0x594626){const _0x403245=new _0x3fd6c4(this['locale'],_0x594626,this['_revisionActions']);this['revisionViews'][_0x39cc('0xe')](_0x403245);}[_0x39cc('0x7')](_0x22284c){const _0x284436=this[_0x39cc('0x2')]['find'](_0x5590ed=>_0x5590ed['id']===_0x22284c['id']);this[_0x39cc('0x2')][_0x39cc('0x10')](_0x284436);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x433c=['createCollection','render','revisionSelected','add','revisionSetName','flat','setName','div','ck-disabled','removeRevision','ck-revision-history-sidebar','delegate','timePeriodViews','_addRevision','bindTemplate','find','addRevision','createdAt','set','_revisionActions','_revisions','_getTimePeriodViewByStartDate','some','startDate','locale','get','ck-revision-history-sidebar__timeline','map','_removeRevision','getTime','highlightRevisions','isEnabled','select','revisionViews','setTemplate','selectRevision','highlight','fire','remove'];(function(_0x2d66b7,_0x433cde){const _0xea2bda=function(_0x14182a){while(--_0x14182a){_0x2d66b7['push'](_0x2d66b7['shift']());}};_0xea2bda(++_0x433cde);}(_0x433c,0x122));const _0xea2b=function(_0x2d66b7,_0x433cde){_0x2d66b7=_0x2d66b7-0x0;let _0xea2bda=_0x433c[_0x2d66b7];return _0xea2bda;};import{View as _0x2c0621}from'ckeditor5/src/ui';import _0x42e308 from'./revisionssidebartimeperiodview';import _0x497ce8 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x17286e}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x2c0621{constructor(_0x23aff3,_0x500a63,_0x976658){super(_0x23aff3);const _0x38f9a7=this[_0xea2b('0x24')];this[_0xea2b('0x22')]=this[_0xea2b('0x16')](),this[_0xea2b('0x22')][_0xea2b('0x21')](_0xea2b('0xf'))['to'](this),this[_0xea2b('0x22')][_0xea2b('0x21')]('setName')['to'](this),this['_revisions']=_0x500a63,this[_0xea2b('0x2')]=_0x976658,this['on'](_0xea2b('0xf'),(_0x34cab8,_0x1b9569)=>{this[_0xea2b('0x14')](_0xea2b('0x18'),_0x1b9569);}),this['on'](_0xea2b('0x1c'),(_0x215384,_0x4de9ba)=>{this[_0xea2b('0x14')](_0xea2b('0x1a'),_0x4de9ba);}),this[_0xea2b('0x1')](_0xea2b('0xe'),!0x1),this[_0xea2b('0x11')]({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners',_0xea2b('0x20')]},'children':[new _0x497ce8(_0x23aff3),{'tag':_0xea2b('0x1d'),'attributes':{'class':['ck',_0xea2b('0x9'),_0x38f9a7['if'](_0xea2b('0xe'),_0xea2b('0x1e'),_0x5a6aee=>!_0x5a6aee)]},'children':this['timePeriodViews']}]});}[_0xea2b('0x17')](){super[_0xea2b('0x17')]();for(const _0x3f4e73 of this[_0xea2b('0x3')])this[_0xea2b('0x23')](_0x3f4e73);this[_0xea2b('0x3')]['on'](_0xea2b('0x19'),(_0x20d616,_0x8ac985)=>{this[_0xea2b('0x23')](_0x8ac985);}),this[_0xea2b('0x3')]['on'](_0xea2b('0x15'),(_0x42a4c0,_0x17daf9)=>{this['_removeRevision'](_0x17daf9);});}get[_0xea2b('0x10')](){return this[_0xea2b('0x22')][_0xea2b('0xa')](_0x128ba7=>_0x128ba7['revisionViews']['map'](_0x5d985d=>_0x5d985d))[_0xea2b('0x1b')]();}[_0xea2b('0x12')](_0x4c64bb){for(const _0x3d06cf of this[_0xea2b('0x10')])_0x4c64bb&&_0x4c64bb['id']===_0x3d06cf['id']?_0x3d06cf[_0xea2b('0xf')]():_0x3d06cf['deselect']();}[_0xea2b('0xd')](_0x59be59){for(const _0x2f2abd of this['revisionViews'])_0x59be59[_0xea2b('0x5')](({id:_0x2acc40})=>_0x2acc40===_0x2f2abd['id'])?_0x2f2abd[_0xea2b('0x13')]():_0x2f2abd['unhighlight']();}[_0xea2b('0x23')](_0xfdbee7){const _0x3bafbd=_0x17286e(_0xfdbee7[_0xea2b('0x0')],this[_0xea2b('0x7')]['uiLanguage'])[_0xea2b('0x6')];let _0x2dc7fb=this[_0xea2b('0x22')][_0xea2b('0x8')](0x0);_0x2dc7fb&&_0x2dc7fb[_0xea2b('0x6')][_0xea2b('0xc')]()===_0x3bafbd[_0xea2b('0xc')]()||(_0x2dc7fb=new _0x42e308(this['locale'],_0x3bafbd,this['_revisionActions']),this['timePeriodViews'][_0xea2b('0x19')](_0x2dc7fb)),_0x2dc7fb[_0xea2b('0x26')](_0xfdbee7);}[_0xea2b('0xb')](_0x408142){const _0x3b6c14=_0x17286e(_0x408142[_0xea2b('0x0')],this[_0xea2b('0x7')]['uiLanguage'])[_0xea2b('0x6')];this[_0xea2b('0x4')](_0x3b6c14)[_0xea2b('0x1f')](_0x408142);}[_0xea2b('0x4')](_0x587bba){return this[_0xea2b('0x22')][_0xea2b('0x25')](_0x5df023=>_0x5df023[_0xea2b('0x6')][_0xea2b('0xc')]()===_0x587bba[_0xea2b('0xc')]());}}
23
+ const _0x481f=['remove','timePeriodViews','uiLanguage','removeRevision','startDate','_addRevision','div','revisionViews','fire','_revisionActions','_getTimePeriodViewByStartDate','addRevision','setTemplate','selectRevision','find','some','_removeRevision','delegate','render','getTime','map','setName','ck-revision-history-sidebar','set','createdAt','select','highlight','flat','unhighlight','locale','revisionSelected','revisionSetName','ck-revision-history-sidebar__timeline','createCollection','add','isEnabled','_revisions','deselect'];(function(_0x1d8a88,_0x481fc3){const _0x3dbb16=function(_0x1dbcc7){while(--_0x1dbcc7){_0x1d8a88['push'](_0x1d8a88['shift']());}};_0x3dbb16(++_0x481fc3);}(_0x481f,0xe0));const _0x3dbb=function(_0x1d8a88,_0x481fc3){_0x1d8a88=_0x1d8a88-0x0;let _0x3dbb16=_0x481f[_0x1d8a88];return _0x3dbb16;};import{View as _0x4c3a92}from'ckeditor5/src/ui';import _0x48256b from'./revisionssidebartimeperiodview';import _0x1db9a0 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x3e54c1}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x4c3a92{constructor(_0x1e340a,_0x5ad7ea,_0x3ec6a){super(_0x1e340a);const _0x4dd53d=this['bindTemplate'];this[_0x3dbb('0x5')]=this[_0x3dbb('0x25')](),this['timePeriodViews'][_0x3dbb('0x15')](_0x3dbb('0x1d'))['to'](this),this[_0x3dbb('0x5')][_0x3dbb('0x15')]('setName')['to'](this),this[_0x3dbb('0x2')]=_0x5ad7ea,this['_revisionActions']=_0x3ec6a,this['on']('select',(_0x50261d,_0x6e7b56)=>{this[_0x3dbb('0xc')](_0x3dbb('0x22'),_0x6e7b56);}),this['on'](_0x3dbb('0x19'),(_0x3753df,_0x34935e)=>{this[_0x3dbb('0xc')](_0x3dbb('0x23'),_0x34935e);}),this[_0x3dbb('0x1b')](_0x3dbb('0x1'),!0x1),this[_0x3dbb('0x10')]({'tag':_0x3dbb('0xa'),'attributes':{'class':['ck','ck-reset','ck-rounded-corners',_0x3dbb('0x1a')]},'children':[new _0x1db9a0(_0x1e340a),{'tag':_0x3dbb('0xa'),'attributes':{'class':['ck',_0x3dbb('0x24'),_0x4dd53d['if']('isEnabled','ck-disabled',_0x4176f3=>!_0x4176f3)]},'children':this[_0x3dbb('0x5')]}]});}[_0x3dbb('0x16')](){super[_0x3dbb('0x16')]();for(const _0x38f587 of this[_0x3dbb('0x2')])this[_0x3dbb('0x9')](_0x38f587);this[_0x3dbb('0x2')]['on']('add',(_0x2add43,_0x5d7648)=>{this[_0x3dbb('0x9')](_0x5d7648);}),this[_0x3dbb('0x2')]['on'](_0x3dbb('0x4'),(_0x3a815c,_0x573c0a)=>{this[_0x3dbb('0x14')](_0x573c0a);});}get['revisionViews'](){return this['timePeriodViews'][_0x3dbb('0x18')](_0x19d5b2=>_0x19d5b2[_0x3dbb('0xb')]['map'](_0x585829=>_0x585829))[_0x3dbb('0x1f')]();}[_0x3dbb('0x11')](_0x4a4067){for(const _0x40830a of this[_0x3dbb('0xb')])_0x4a4067&&_0x4a4067['id']===_0x40830a['id']?_0x40830a[_0x3dbb('0x1d')]():_0x40830a[_0x3dbb('0x3')]();}['highlightRevisions'](_0x37c52d){for(const _0x34b972 of this[_0x3dbb('0xb')])_0x37c52d[_0x3dbb('0x13')](({id:_0x580da0})=>_0x580da0===_0x34b972['id'])?_0x34b972[_0x3dbb('0x1e')]():_0x34b972[_0x3dbb('0x20')]();}[_0x3dbb('0x9')](_0x39cc3e){const _0x248712=_0x3e54c1(_0x39cc3e[_0x3dbb('0x1c')],this[_0x3dbb('0x21')][_0x3dbb('0x6')])['startDate'];let _0x5e384f=this[_0x3dbb('0x5')]['get'](0x0);_0x5e384f&&_0x5e384f[_0x3dbb('0x8')][_0x3dbb('0x17')]()===_0x248712[_0x3dbb('0x17')]()||(_0x5e384f=new _0x48256b(this[_0x3dbb('0x21')],_0x248712,this[_0x3dbb('0xd')]),this[_0x3dbb('0x5')][_0x3dbb('0x0')](_0x5e384f)),_0x5e384f[_0x3dbb('0xf')](_0x39cc3e);}['_removeRevision'](_0x3fd14b){const _0x2b749b=_0x3e54c1(_0x3fd14b['createdAt'],this[_0x3dbb('0x21')][_0x3dbb('0x6')])['startDate'];this['_getTimePeriodViewByStartDate'](_0x2b749b)[_0x3dbb('0x7')](_0x3fd14b);}[_0x3dbb('0xe')](_0x564a5c){return this[_0x3dbb('0x5')][_0x3dbb('0x12')](_0x4151ad=>_0x4151ad['startDate']['getTime']()===_0x564a5c[_0x3dbb('0x17')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2dc0=['minus','local','hasSame','monthLong','toJSDate','week','startOf','year','day','toRelativeCalendar'];(function(_0x2ac12c,_0x2dc04c){const _0xd8e32e=function(_0x40e39d){while(--_0x40e39d){_0x2ac12c['push'](_0x2ac12c['shift']());}};_0xd8e32e(++_0x2dc04c);}(_0x2dc0,0x117));const _0xd8e3=function(_0x2ac12c,_0x2dc04c){_0x2ac12c=_0x2ac12c-0x0;let _0xd8e32e=_0x2dc0[_0x2ac12c];return _0xd8e32e;};import{DateTime as _0x470c2c}from'luxon';export function getDateTimePeriodInfo(_0x468632,_0x191b19){const _0x3c64f5=_0x470c2c['fromJSDate'](_0x468632)['setLocale'](_0x191b19),_0x1238f7=_0x470c2c[_0xd8e3('0x2')](),_0x456d61=_0x1238f7[_0xd8e3('0x1')]({'days':0x1})[_0xd8e3('0x7')](_0xd8e3('0x9'));let _0x55b2a6,_0xbfa8ec;return _0x3c64f5[_0xd8e3('0x3')](_0x1238f7,'day')?(_0x55b2a6=_0x3c64f5['startOf']('day')[_0xd8e3('0x5')](),_0xbfa8ec=_0x3c64f5[_0xd8e3('0x0')]()):_0x3c64f5[_0xd8e3('0x3')](_0x456d61,_0xd8e3('0x9'))?(_0x55b2a6=_0x456d61[_0xd8e3('0x5')](),_0xbfa8ec=_0x3c64f5['toRelativeCalendar']()):_0x3c64f5[_0xd8e3('0x3')](_0x1238f7,_0xd8e3('0x6'))?(_0x55b2a6=_0x3c64f5[_0xd8e3('0x7')]('week')[_0xd8e3('0x5')](),_0xbfa8ec=_0x3c64f5['weekdayLong']||''):_0x3c64f5[_0xd8e3('0x3')](_0x1238f7,_0xd8e3('0x8'))?(_0x55b2a6=_0x3c64f5['startOf']('month')[_0xd8e3('0x5')](),_0xbfa8ec=_0x3c64f5[_0xd8e3('0x4')]||''):(_0x55b2a6=_0x3c64f5['startOf']('year')['toJSDate'](),_0xbfa8ec=String(_0x3c64f5[_0xd8e3('0x8')])),{'startDate':_0x55b2a6,'localizedPeriodName':_0xbfa8ec};}
23
+ const _0x240d=['startOf','week','setLocale','toJSDate','hasSame','local','monthLong','day','toRelativeCalendar','minus','year','fromJSDate','weekdayLong'];(function(_0x4d3c52,_0x240d4e){const _0x1964f4=function(_0x14d33d){while(--_0x14d33d){_0x4d3c52['push'](_0x4d3c52['shift']());}};_0x1964f4(++_0x240d4e);}(_0x240d,0x1a8));const _0x1964=function(_0x4d3c52,_0x240d4e){_0x4d3c52=_0x4d3c52-0x0;let _0x1964f4=_0x240d[_0x4d3c52];return _0x1964f4;};import{DateTime as _0xd1ea3f}from'luxon';export function getDateTimePeriodInfo(_0x3d8e66,_0x3cf9a7){const _0x2c274e=_0xd1ea3f[_0x1964('0x3')](_0x3d8e66)[_0x1964('0x7')](_0x3cf9a7),_0x7579f3=_0xd1ea3f[_0x1964('0xa')](),_0x1cab34=_0x7579f3[_0x1964('0x1')]({'days':0x1})[_0x1964('0x5')](_0x1964('0xc'));let _0x9cf034,_0x468cda;return _0x2c274e[_0x1964('0x9')](_0x7579f3,_0x1964('0xc'))?(_0x9cf034=_0x2c274e['startOf']('day')['toJSDate'](),_0x468cda=_0x2c274e[_0x1964('0x0')]()):_0x2c274e[_0x1964('0x9')](_0x1cab34,'day')?(_0x9cf034=_0x1cab34[_0x1964('0x8')](),_0x468cda=_0x2c274e[_0x1964('0x0')]()):_0x2c274e['hasSame'](_0x7579f3,'week')?(_0x9cf034=_0x2c274e['startOf'](_0x1964('0x6'))[_0x1964('0x8')](),_0x468cda=_0x2c274e[_0x1964('0x4')]||''):_0x2c274e['hasSame'](_0x7579f3,'year')?(_0x9cf034=_0x2c274e[_0x1964('0x5')]('month')[_0x1964('0x8')](),_0x468cda=_0x2c274e[_0x1964('0xb')]||''):(_0x9cf034=_0x2c274e[_0x1964('0x5')](_0x1964('0x2'))['toJSDate'](),_0x468cda=String(_0x2c274e[_0x1964('0x2')])),{'startDate':_0x9cf034,'localizedPeriodName':_0x468cda};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1980=['isSuggestion','type','Suggested\x20by','name','changeId','author','data','setTemplate','Added\x20by','element','ck-revision-change__','focus','set','ck-revision-change__label','_model','span','div','ck-revision-change','Removed\x20by'];(function(_0x43a4b3,_0x1980cd){const _0x37c8fb=function(_0x571455){while(--_0x571455){_0x43a4b3['push'](_0x43a4b3['shift']());}};_0x37c8fb(++_0x1980cd);}(_0x1980,0x180));const _0x37c8=function(_0x43a4b3,_0x1980cd){_0x43a4b3=_0x43a4b3-0x0;let _0x37c8fb=_0x1980[_0x43a4b3];return _0x37c8fb;};import{View as _0x110696}from'ckeditor5/src/ui';import{getTranslation as _0x1d5548}from'../../utils/common-translations';export default class Z extends _0x110696{constructor(_0x20994c,_0x2ed2d4){super(_0x20994c),this[_0x37c8('0xa')]=_0x2ed2d4,this[_0x37c8('0x0')]=_0x2ed2d4['id'];const _0x597771=this['bindTemplate'],_0xa5e3a1=_0x1d5548(_0x20994c,_0x2ed2d4[_0x37c8('0x2')][_0x37c8('0xf')]?_0x37c8('0x11'):'add'==_0x2ed2d4[_0x37c8('0x10')]?_0x37c8('0x4'):_0x37c8('0xe'));this[_0x37c8('0x8')](_0x37c8('0x10'),_0x2ed2d4[_0x37c8('0x10')]),this[_0x37c8('0x3')]({'tag':_0x37c8('0xc'),'attributes':{'class':['ck-annotation',_0x37c8('0xd'),_0x597771['to'](_0x37c8('0x10'),_0x1eda51=>_0x37c8('0x6')+_0x1eda51)],'tabindex':-0x1},'children':[{'tag':_0x37c8('0xb'),'children':[{'tag':'span','attributes':{'class':[_0x37c8('0x9')]},'children':[{'text':_0xa5e3a1}]},{'text':'\x20'+_0x2ed2d4[_0x37c8('0x1')][_0x37c8('0x12')]}]}]});}[_0x37c8('0x7')](){this[_0x37c8('0x5')]['focus']();}}
23
+ const _0x6434=['Removed\x20by','span','bindTemplate','ck-revision-change__label','author','type','data','ck-annotation','Suggested\x20by','set','div','focus','setTemplate','Added\x20by'];(function(_0x38009d,_0x643472){const _0x49c4a3=function(_0x428071){while(--_0x428071){_0x38009d['push'](_0x38009d['shift']());}};_0x49c4a3(++_0x643472);}(_0x6434,0x14f));const _0x49c4=function(_0x38009d,_0x643472){_0x38009d=_0x38009d-0x0;let _0x49c4a3=_0x6434[_0x38009d];return _0x49c4a3;};import{View as _0x4f7071}from'ckeditor5/src/ui';import{getTranslation as _0x2b5fa2}from'../../utils/common-translations';export default class Z extends _0x4f7071{constructor(_0x33083e,_0xce0e4e){super(_0x33083e),this['_model']=_0xce0e4e,this['changeId']=_0xce0e4e['id'];const _0x141224=this[_0x49c4('0x3')],_0x1877ea=_0x2b5fa2(_0x33083e,_0xce0e4e[_0x49c4('0x7')]['isSuggestion']?_0x49c4('0x9'):'add'==_0xce0e4e[_0x49c4('0x6')]?_0x49c4('0x0'):_0x49c4('0x1'));this[_0x49c4('0xa')](_0x49c4('0x6'),_0xce0e4e['type']),this[_0x49c4('0xd')]({'tag':_0x49c4('0xb'),'attributes':{'class':[_0x49c4('0x8'),'ck-revision-change',_0x141224['to']('type',_0x52cfb7=>'ck-revision-change__'+_0x52cfb7)],'tabindex':-0x1},'children':[{'tag':_0x49c4('0x2'),'children':[{'tag':_0x49c4('0x2'),'attributes':{'class':[_0x49c4('0x4')]},'children':[{'text':_0x1877ea}]},{'text':'\x20'+_0xce0e4e[_0x49c4('0x5')]['name']}]}]});}[_0x49c4('0xc')](){this['element'][_0x49c4('0xc')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x511a=['backward','setTemplate','fire','ck-revision-history-ui__changes-navigation__label','span','NUMBER_OF_CHANGES','Show\x20next\x20change','ck-hidden','No\x20changes','forward','numberOfChanges','ck-revision-history-ui__changes-navigation__navigation','Total','set','isReady','Loading...','Show\x20previous\x20change','bindTemplate','bind','currentChangeNumber','isEnabled','_statusText','ck-revision-history-ui__changes-navigation__wrapper','isNavigationMode','X_OF_Y_CHANGES','isForwardNavigationEnabled','_isStatusLabelVisible','ck-revision-history-ui','execute'];(function(_0x539506,_0x511a40){const _0x1aca11=function(_0x2dabf4){while(--_0x2dabf4){_0x539506['push'](_0x539506['shift']());}};_0x1aca11(++_0x511a40);}(_0x511a,0x1c3));const _0x1aca=function(_0x539506,_0x511a40){_0x539506=_0x539506-0x0;let _0x1aca11=_0x511a[_0x539506];return _0x1aca11;};import{View as _0x414c98,ButtonView as _0x1af685,ToolbarSeparatorView as _0x442954}from'ckeditor5/src/ui';import{getTranslation as _0x58e9ce}from'../../utils/common-translations';import _0x1dd503 from'../../../theme/icons/arrow-up.svg';import _0x449dd8 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x414c98{constructor(_0x3d8c02){super(_0x3d8c02);const _0x165924=this[_0x1aca('0x1')],_0x44fb5b=new _0x1af685(_0x3d8c02),_0x454e15=new _0x1af685(_0x3d8c02);this[_0x1aca('0x1a')](_0x1aca('0x7'),!0x1),this[_0x1aca('0x1a')](_0x1aca('0x1b'),!0x1),this[_0x1aca('0x1a')](_0x1aca('0x3'),0x0),this[_0x1aca('0x1a')](_0x1aca('0x17'),0x0),this[_0x1aca('0x1a')](_0x1aca('0x9'),!0x1),this[_0x1aca('0x1a')]('isBackwardNavigationEnabled',!0x1),this[_0x1aca('0x2')]('_isStatusLabelVisible')['to'](this,_0x1aca('0x1b'),this,_0x1aca('0x17'),(_0x4f8172,_0x2d3d5f)=>_0x4f8172&&_0x2d3d5f>0x0),this[_0x1aca('0x2')](_0x1aca('0x5'))['to'](this,_0x1aca('0x1b'),this,_0x1aca('0x3'),this,_0x1aca('0x17'),this,_0x1aca('0x7'),(_0x5d6f5,_0x3456eb,_0x2aeeee,_0x1e3afd)=>{if(!_0x5d6f5)return _0x58e9ce(_0x3d8c02,_0x1aca('0x1c'));if(!_0x2aeeee)return _0x58e9ce(_0x3d8c02,_0x1aca('0x15'));const _0x443f3f=_0x58e9ce(_0x3d8c02,_0x1aca('0x12'),_0x2aeeee);return _0x1e3afd?_0x58e9ce(_0x3d8c02,_0x1aca('0x8'),[_0x3456eb+0x1,_0x2aeeee]):_0x443f3f;}),_0x44fb5b[_0x1aca('0x1a')]({'label':_0x58e9ce(_0x3d8c02,_0x1aca('0x0')),'tooltip':!0x0,'icon':_0x1dd503}),_0x454e15['set']({'label':_0x58e9ce(_0x3d8c02,_0x1aca('0x13')),'tooltip':!0x0,'icon':_0x449dd8}),_0x44fb5b[_0x1aca('0x2')](_0x1aca('0x4'))['to'](this,'isBackwardNavigationEnabled'),_0x454e15[_0x1aca('0x2')]('isEnabled')['to'](this,_0x1aca('0x9')),_0x44fb5b['on']('execute',()=>this[_0x1aca('0xf')](_0x1aca('0xc'),_0x1aca('0xd'))),_0x454e15['on'](_0x1aca('0xc'),()=>this[_0x1aca('0xf')]('execute',_0x1aca('0x16'))),this[_0x1aca('0xe')]({'tag':'div','attributes':{'class':['ck',_0x1aca('0xb'),'ck-revision-history-ui__changes-navigation']},'children':[{'tag':_0x1aca('0x11'),'attributes':{'class':[_0x1aca('0x6')]},'children':[{'tag':_0x1aca('0x11'),'attributes':{'class':[_0x1aca('0x10'),_0x165924['if'](_0x1aca('0xa'),_0x1aca('0x14'),_0x261d4b=>!_0x261d4b)]},'children':[{'text':_0x165924['to']('isNavigationMode',_0x4a9ff1=>_0x4a9ff1?_0x58e9ce(_0x3d8c02,'EDIT_X_OF_Y_REVISIONS')+':\x20':_0x58e9ce(_0x3d8c02,_0x1aca('0x19'))+':\x20')}]},{'text':_0x165924['to']('_statusText')}]},new _0x442954(),{'tag':'div','attributes':{'class':[_0x1aca('0x18')]},'children':[_0x44fb5b,_0x454e15]}]});}}
23
+ const _0x9b82=['isBackwardNavigationEnabled','backward','isEnabled','isNavigationMode','ck-revision-history-ui__changes-navigation','setTemplate','Loading...','span','NUMBER_OF_CHANGES','fire','ck-revision-history-ui__changes-navigation__wrapper','Total','_statusText','div','numberOfChanges','EDIT_X_OF_Y_REVISIONS','currentChangeNumber','set','_isStatusLabelVisible','ck-revision-history-ui','isReady','bindTemplate','ck-hidden','isForwardNavigationEnabled','bind','execute'];(function(_0x153264,_0x9b821){const _0x538c46=function(_0x15463b){while(--_0x15463b){_0x153264['push'](_0x153264['shift']());}};_0x538c46(++_0x9b821);}(_0x9b82,0xbd));const _0x538c=function(_0x153264,_0x9b821){_0x153264=_0x153264-0x0;let _0x538c46=_0x9b82[_0x153264];return _0x538c46;};import{View as _0x3e11f8,ButtonView as _0x14bc45,ToolbarSeparatorView as _0x32e2d1}from'ckeditor5/src/ui';import{getTranslation as _0x3d26d2}from'../../utils/common-translations';import _0x2b127f from'../../../theme/icons/arrow-up.svg';import _0x424518 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x3e11f8{constructor(_0x47badf){super(_0x47badf);const _0x464465=this[_0x538c('0xe')],_0x339a8c=new _0x14bc45(_0x47badf),_0x17cb29=new _0x14bc45(_0x47badf);this['set'](_0x538c('0x16'),!0x1),this[_0x538c('0xa')](_0x538c('0xd'),!0x1),this[_0x538c('0xa')]('currentChangeNumber',0x0),this[_0x538c('0xa')](_0x538c('0x7'),0x0),this[_0x538c('0xa')](_0x538c('0x10'),!0x1),this[_0x538c('0xa')](_0x538c('0x13'),!0x1),this[_0x538c('0x11')](_0x538c('0xb'))['to'](this,_0x538c('0xd'),this,_0x538c('0x7'),(_0x4ac9a6,_0x163581)=>_0x4ac9a6&&_0x163581>0x0),this[_0x538c('0x11')](_0x538c('0x5'))['to'](this,_0x538c('0xd'),this,_0x538c('0x9'),this,_0x538c('0x7'),this,_0x538c('0x16'),(_0x3d834c,_0x4325c3,_0x500367,_0x3ff06d)=>{if(!_0x3d834c)return _0x3d26d2(_0x47badf,_0x538c('0x19'));if(!_0x500367)return _0x3d26d2(_0x47badf,'No\x20changes');const _0x196562=_0x3d26d2(_0x47badf,_0x538c('0x1'),_0x500367);return _0x3ff06d?_0x3d26d2(_0x47badf,'X_OF_Y_CHANGES',[_0x4325c3+0x1,_0x500367]):_0x196562;}),_0x339a8c[_0x538c('0xa')]({'label':_0x3d26d2(_0x47badf,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x2b127f}),_0x17cb29[_0x538c('0xa')]({'label':_0x3d26d2(_0x47badf,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x424518}),_0x339a8c[_0x538c('0x11')](_0x538c('0x15'))['to'](this,_0x538c('0x13')),_0x17cb29[_0x538c('0x11')](_0x538c('0x15'))['to'](this,_0x538c('0x10')),_0x339a8c['on'](_0x538c('0x12'),()=>this[_0x538c('0x2')]('execute',_0x538c('0x14'))),_0x17cb29['on'](_0x538c('0x12'),()=>this[_0x538c('0x2')](_0x538c('0x12'),'forward')),this[_0x538c('0x18')]({'tag':_0x538c('0x6'),'attributes':{'class':['ck',_0x538c('0xc'),_0x538c('0x17')]},'children':[{'tag':_0x538c('0x0'),'attributes':{'class':[_0x538c('0x3')]},'children':[{'tag':_0x538c('0x0'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x464465['if'](_0x538c('0xb'),_0x538c('0xf'),_0x3f6c65=>!_0x3f6c65)]},'children':[{'text':_0x464465['to'](_0x538c('0x16'),_0x4894b6=>_0x4894b6?_0x3d26d2(_0x47badf,_0x538c('0x8'))+':\x20':_0x3d26d2(_0x47badf,_0x538c('0x4'))+':\x20')}]},{'text':_0x464465['to'](_0x538c('0x5'))}]},new _0x32e2d1(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x339a8c,_0x17cb29]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xef53=['show','editing','addClass','hide','roots','RevisionViewerLoadingOverlay','view','ck-editor__editable__loading-overlay','pluginName','document','change'];(function(_0x258394,_0xef53e9){const _0x224c03=function(_0x421ff4){while(--_0x421ff4){_0x258394['push'](_0x258394['shift']());}};_0x224c03(++_0xef53e9);}(_0xef53,0x101));const _0x224c=function(_0x258394,_0xef53e9){_0x258394=_0x258394-0x0;let _0x224c03=_0xef53[_0x258394];return _0x224c03;};import{Plugin as _0x3dbe8b}from'ckeditor5/src/core';const oe=_0x224c('0x3');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x3dbe8b{static get[_0x224c('0x4')](){return _0x224c('0x1');}[_0x224c('0x7')](){const _0x4d8daa=this['editor'][_0x224c('0x8')][_0x224c('0x2')];_0x4d8daa[_0x224c('0x6')](_0x303a12=>{for(const _0x33fab6 of _0x4d8daa[_0x224c('0x5')]['roots'])_0x303a12[_0x224c('0x9')](oe,_0x33fab6);});}[_0x224c('0xa')](){const _0x520016=this['editor'][_0x224c('0x8')][_0x224c('0x2')];_0x520016['change'](_0x4dd4f3=>{for(const _0x273171 of _0x520016[_0x224c('0x5')][_0x224c('0x0')])_0x4dd4f3['removeClass'](oe,_0x273171);});}}
23
+ const _0x1860=['ck-editor__editable__loading-overlay','document','editing','change','addClass','editor','removeClass','pluginName','roots'];(function(_0x405005,_0x18604a){const _0x2d4fe2=function(_0x2c8ad3){while(--_0x2c8ad3){_0x405005['push'](_0x405005['shift']());}};_0x2d4fe2(++_0x18604a);}(_0x1860,0x172));const _0x2d4f=function(_0x405005,_0x18604a){_0x405005=_0x405005-0x0;let _0x2d4fe2=_0x1860[_0x405005];return _0x2d4fe2;};import{Plugin as _0x479f17}from'ckeditor5/src/core';const oe=_0x2d4f('0x8');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x479f17{static get[_0x2d4f('0x6')](){return'RevisionViewerLoadingOverlay';}['show'](){const _0x21e9fe=this['editor'][_0x2d4f('0x1')]['view'];_0x21e9fe[_0x2d4f('0x2')](_0x47b14c=>{for(const _0x12de00 of _0x21e9fe[_0x2d4f('0x0')][_0x2d4f('0x7')])_0x47b14c[_0x2d4f('0x3')](oe,_0x12de00);});}['hide'](){const _0x3c7b02=this[_0x2d4f('0x4')][_0x2d4f('0x1')]['view'];_0x3c7b02[_0x2d4f('0x2')](_0x3c2acb=>{for(const _0x52ac11 of _0x3c7b02['document']['roots'])_0x3c2acb[_0x2d4f('0x5')](oe,_0x52ac11);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3e7f=['numberOfChanges','pluginName','exitToEditing','editor','isBackwardNavigationEnabled','showNextChange','changesNavigation','requires','restoreRevision','get','isReady','forward','isNavigationMode','commands','closeRevisionViewerCallback','componentFactory','Back\x20to\x20editing','isForwardNavigationEnabled','isEnabled','hide','showPreviousChange','bind','show','currentChangeNumber','ck-revision-history-ui__back-to-editing','execute','config','plugins','add','revisionHistory','listenTo'];(function(_0x465feb,_0x3e7f49){const _0x3a2523=function(_0x178f04){while(--_0x178f04){_0x465feb['push'](_0x465feb['shift']());}};_0x3a2523(++_0x3e7f49);}(_0x3e7f,0x18b));const _0x3a25=function(_0x465feb,_0x3e7f49){_0x465feb=_0x465feb-0x0;let _0x3a2523=_0x3e7f[_0x465feb];return _0x3a2523;};import{Plugin as _0x105fa5}from'ckeditor5/src/core';import{ButtonView as _0x221b7d}from'ckeditor5/src/ui';import _0x57a443 from'./changesnavigationview';import _0x1b1663 from'./../../revisionviewer';import _0x2a3caf from'./revisionviewerloadingoverlay';import{getTranslation as _0xaffdfb}from'../../utils/common-translations';import _0x412cab from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x105fa5{static get[_0x3a25('0x9')](){return'RevisionViewerUI';}static get[_0x3a25('0xf')](){return[_0x1b1663,_0x2a3caf];}['init'](){const _0x2916bc=this[_0x3a25('0xb')],_0x2dc9f8=_0x2916bc[_0x3a25('0x4')][_0x3a25('0x11')](_0x1b1663),_0x69df52=_0x2916bc[_0x3a25('0x4')][_0x3a25('0x11')](_0x2a3caf);_0x2916bc['ui']['componentFactory'][_0x3a25('0x5')](_0x3a25('0xa'),_0x205758=>{const _0xd228c8=new _0x221b7d(_0x205758);return _0xd228c8['set']({'label':_0xaffdfb(_0x205758,_0x3a25('0x18')),'icon':_0x412cab,'withText':!0x0,'tooltip':!0x0,'class':_0x3a25('0x1')}),this[_0x3a25('0x7')](_0xd228c8,_0x3a25('0x2'),()=>{_0x2916bc[_0x3a25('0x3')][_0x3a25('0x11')](_0x3a25('0x6'))[_0x3a25('0x16')]();}),_0xd228c8;}),_0x2916bc['ui'][_0x3a25('0x17')][_0x3a25('0x5')]('restoreRevision',_0x2a42b8=>{const _0x2b5004=new _0x221b7d(_0x2a42b8);return _0x2b5004['set']({'label':_0xaffdfb(_0x2a42b8,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2b5004[_0x3a25('0x1d')](_0x3a25('0x1a'))['to'](_0x2916bc[_0x3a25('0x15')]['get']('restoreRevision')),this[_0x3a25('0x7')](_0x2b5004,_0x3a25('0x2'),()=>_0x2916bc['execute'](_0x3a25('0x10'))),_0x2b5004;}),_0x2916bc['ui']['componentFactory']['add'](_0x3a25('0xe'),_0x573554=>{const _0xa81a50=new _0x57a443(_0x573554),_0x420b11=_0x2916bc[_0x3a25('0x15')][_0x3a25('0x11')](_0x3a25('0x1c')),_0x37df35=_0x2916bc[_0x3a25('0x15')][_0x3a25('0x11')](_0x3a25('0xd'));return _0xa81a50['bind'](_0x3a25('0xc'))['to'](_0x420b11,'isEnabled'),_0xa81a50[_0x3a25('0x1d')](_0x3a25('0x19'))['to'](_0x37df35,_0x3a25('0x1a')),_0xa81a50['bind'](_0x3a25('0x12'),_0x3a25('0x0'),_0x3a25('0x8'),_0x3a25('0x14'))['to'](_0x2dc9f8),this['listenTo'](_0xa81a50,_0x3a25('0x2'),(_0x401bff,_0x1805c4)=>{_0x2916bc[_0x3a25('0x2')](_0x3a25('0x13')===_0x1805c4?'showNextChange':_0x3a25('0x1c'));}),_0xa81a50;}),_0x69df52['show'](),_0x2dc9f8['on']('change:isReady',(_0x3ea2ad,_0x356ce8,_0x517b56)=>{_0x517b56?_0x69df52[_0x3a25('0x1b')]():_0x69df52[_0x3a25('0x1e')]();});}}
23
+ const _0x399b=['changesNavigation','closeRevisionViewerCallback','change:isReady','requires','init','isBackwardNavigationEnabled','listenTo','isEnabled','execute','showNextChange','pluginName','editor','set','plugins','currentChangeNumber','config','showPreviousChange','bind','isNavigationMode','add','get','show','RevisionViewerUI','Restore\x20this\x20revision','isReady','restoreRevision','commands','numberOfChanges','componentFactory','Back\x20to\x20editing'];(function(_0x4905b2,_0x399b43){const _0x17dfc1=function(_0x25e40c){while(--_0x25e40c){_0x4905b2['push'](_0x4905b2['shift']());}};_0x17dfc1(++_0x399b43);}(_0x399b,0x197));const _0x17df=function(_0x4905b2,_0x399b43){_0x4905b2=_0x4905b2-0x0;let _0x17dfc1=_0x399b[_0x4905b2];return _0x17dfc1;};import{Plugin as _0x2e6aad}from'ckeditor5/src/core';import{ButtonView as _0x21b18b}from'ckeditor5/src/ui';import _0x2732b6 from'./changesnavigationview';import _0x46a187 from'./../../revisionviewer';import _0x11bd4d from'./revisionviewerloadingoverlay';import{getTranslation as _0x40c783}from'../../utils/common-translations';import _0x33974c from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x2e6aad{static get[_0x17df('0x17')](){return _0x17df('0x5');}static get[_0x17df('0x10')](){return[_0x46a187,_0x11bd4d];}[_0x17df('0x11')](){const _0x19e6fb=this[_0x17df('0x18')],_0x274d15=_0x19e6fb['plugins'][_0x17df('0x3')](_0x46a187),_0x3cdfc6=_0x19e6fb[_0x17df('0x1a')][_0x17df('0x3')](_0x11bd4d);_0x19e6fb['ui'][_0x17df('0xb')][_0x17df('0x2')]('exitToEditing',_0x5c00aa=>{const _0x2f2f5e=new _0x21b18b(_0x5c00aa);return _0x2f2f5e[_0x17df('0x19')]({'label':_0x40c783(_0x5c00aa,_0x17df('0xc')),'icon':_0x33974c,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this[_0x17df('0x13')](_0x2f2f5e,_0x17df('0x15'),()=>{_0x19e6fb[_0x17df('0x1c')]['get']('revisionHistory')[_0x17df('0xe')]();}),_0x2f2f5e;}),_0x19e6fb['ui'][_0x17df('0xb')][_0x17df('0x2')](_0x17df('0x8'),_0x20c80b=>{const _0xaaac9b=new _0x21b18b(_0x20c80b);return _0xaaac9b[_0x17df('0x19')]({'label':_0x40c783(_0x20c80b,_0x17df('0x6')),'withText':!0x0,'tooltip':!0x0}),_0xaaac9b[_0x17df('0x0')](_0x17df('0x14'))['to'](_0x19e6fb[_0x17df('0x9')][_0x17df('0x3')]('restoreRevision')),this[_0x17df('0x13')](_0xaaac9b,_0x17df('0x15'),()=>_0x19e6fb[_0x17df('0x15')](_0x17df('0x8'))),_0xaaac9b;}),_0x19e6fb['ui'][_0x17df('0xb')][_0x17df('0x2')](_0x17df('0xd'),_0x3c1889=>{const _0x127900=new _0x2732b6(_0x3c1889),_0x4669ab=_0x19e6fb['commands'][_0x17df('0x3')]('showPreviousChange'),_0x178415=_0x19e6fb[_0x17df('0x9')][_0x17df('0x3')](_0x17df('0x16'));return _0x127900[_0x17df('0x0')](_0x17df('0x12'))['to'](_0x4669ab,_0x17df('0x14')),_0x127900[_0x17df('0x0')]('isForwardNavigationEnabled')['to'](_0x178415,_0x17df('0x14')),_0x127900[_0x17df('0x0')](_0x17df('0x7'),_0x17df('0x1b'),_0x17df('0xa'),_0x17df('0x1'))['to'](_0x274d15),this['listenTo'](_0x127900,'execute',(_0x291da6,_0x1cb209)=>{_0x19e6fb[_0x17df('0x15')]('forward'===_0x1cb209?'showNextChange':_0x17df('0x1d'));}),_0x127900;}),_0x3cdfc6[_0x17df('0x4')](),_0x274d15['on'](_0x17df('0xf'),(_0x44db66,_0x131368,_0x5c6623)=>{_0x5c6623?_0x3cdfc6['hide']():_0x3cdfc6['show']();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x2af1c7,_0xcb78c1,_0x48c517){const t=_0x2af1c7['t'];switch(_0xcb78c1){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'},_0x48c517);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x48c517);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 _0xcb78c1;}}
23
+ export function getTranslation(_0x31e3a6,_0x33ec82,_0x30565c){const t=_0x31e3a6['t'];switch(_0x33ec82){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'},_0x30565c);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x30565c);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 _0x33ec82;}}