@ckeditor/ckeditor5-revision-history 38.0.1 → 38.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +13 -11
  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/index.d.ts +1 -0
  8. package/src/revision.js +1 -1
  9. package/src/revisiondiff.js +1 -1
  10. package/src/revisionhistory.d.ts +5 -3
  11. package/src/revisionhistory.js +1 -1
  12. package/src/revisionsrepository.d.ts +8 -3
  13. package/src/revisionsrepository.js +1 -1
  14. package/src/revisiontracker.d.ts +8 -3
  15. package/src/revisiontracker.js +1 -1
  16. package/src/revisionviewer.js +1 -1
  17. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  18. package/src/ui/revision/revisionauthorview.js +1 -1
  19. package/src/ui/revision/revisionnameview.js +1 -1
  20. package/src/ui/revision/revisionview.js +1 -1
  21. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  22. package/src/ui/revision/subrevisionview.js +1 -1
  23. package/src/ui/revision/utils.js +1 -1
  24. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  25. package/src/ui/revisionhistory/revisionhistoryui.d.ts +4 -3
  26. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  27. package/src/ui/revisionssidebar/revisionssidebar.d.ts +4 -3
  28. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  29. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  30. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  31. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  32. package/src/ui/revisionssidebar/utils.js +1 -1
  33. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  34. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  35. package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +1 -1
  36. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  37. package/src/ui/revisionviewer/revisionviewerui.d.ts +5 -3
  38. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  39. package/src/utils/common-translations.js +1 -1
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * @module revision-history/ui/revisionhistory/revisionhistoryui
3
3
  */
4
- import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ import RevisionTracker from '../../revisiontracker';
5
6
  /**
6
7
  * TODO
7
8
  */
@@ -9,11 +10,11 @@ export default class RevisionHistoryUI extends Plugin {
9
10
  /**
10
11
  * @inheritDoc
11
12
  */
12
- static get pluginName(): 'RevisionHistoryUI';
13
+ static get pluginName(): "RevisionHistoryUI";
13
14
  /**
14
15
  * @inheritDoc
15
16
  */
16
- static get requires(): PluginDependencies;
17
+ static get requires(): readonly [typeof RevisionTracker];
17
18
  /**
18
19
  * @inheritDoc
19
20
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3745=['reset','panelView','length','remove','isReadOnly','children','execute','plugins','pluginName','isOpen','get','saveRevision','config','render','items','editor','bind','focus','RevisionHistoryUI','add','change:isOpen','buttonView','Save\x20current\x20revision','isEnabled','cancel','componentFactory','isReady','set'];(function(_0x4eac47,_0x37452d){const _0x339d8d=function(_0x374931){while(--_0x374931){_0x4eac47['push'](_0x4eac47['shift']());}};_0x339d8d(++_0x37452d);}(_0x3745,0x1ae));const _0x339d=function(_0x4eac47,_0x37452d){_0x4eac47=_0x4eac47-0x0;let _0x339d8d=_0x3745[_0x4eac47];return _0x339d8d;};import{Plugin as _0xdd5764}from'ckeditor5/src/core';import{ListView as _0x2766e7,ListItemView as _0x424890,ButtonView as _0x2bd73d,createDropdown as _0x1494e3}from'ckeditor5/src/ui';import _0x190153 from'../../revisiontracker';import _0xdf11b4 from'./revisionhistorysaverevisionformview';import _0x21fc36 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x4fe23a}from'../../utils/common-translations';export default class u extends _0xdd5764{static get[_0x339d('0x1a')](){return _0x339d('0x8');}static get['requires'](){return[_0x190153];}['init'](){const _0x19c47b=this[_0x339d('0x5')],_0x3583f0=_0x19c47b[_0x339d('0x19')][_0x339d('0x0')]('RevisionTracker');_0x19c47b['ui'][_0x339d('0xf')]['add']('revisionHistory',_0x20e06e=>{const _0x5f1f86=_0x1494e3(_0x20e06e),_0x3142ac=_0x5f1f86[_0x339d('0x13')][_0x339d('0x17')],_0x21abee=new _0x2766e7(_0x20e06e),_0x5e7e86=new _0x424890(_0x20e06e),_0x1eac8f=new _0x2bd73d(_0x20e06e),_0x4cbf58=new _0x424890(_0x20e06e),_0x2eab58=new _0x2bd73d(_0x20e06e),_0x154faf=new _0xdf11b4(_0x20e06e);function _0x5026b3(){_0x3142ac[_0x339d('0x14')]&&_0x3142ac[_0x339d('0x15')](0x0),_0x3142ac[_0x339d('0x9')](_0x21abee);}function _0x4d1023(){_0x5f1f86[_0x339d('0x1b')]=!0x1,_0x19c47b['editing']['view'][_0x339d('0x7')]();}return _0x5f1f86[_0x339d('0x6')](_0x339d('0xd'))['to'](_0x3583f0,_0x339d('0x10'),_0x3583f0,_0x339d('0xd'),_0x19c47b,_0x339d('0x16'),(_0x5b97e4,_0x3aea53,_0x6fd477)=>_0x5b97e4&&_0x3aea53&&!_0x6fd477),_0x5f1f86[_0x339d('0xb')][_0x339d('0x11')]({'icon':_0x21fc36,'label':_0x4fe23a(_0x20e06e,'Revision\x20history'),'tooltip':!0x0}),_0x1eac8f[_0x339d('0x11')]({'label':_0x4fe23a(_0x20e06e,_0x339d('0xc')),'withText':!0x0}),_0x1eac8f[_0x339d('0x6')](_0x339d('0xd'))['to'](_0x3583f0,_0x339d('0x10'),_0x3583f0,_0x339d('0xd'),_0x19c47b,'isReadOnly',(_0x4831a8,_0x5d2e0f,_0x290f3f)=>_0x4831a8&&_0x5d2e0f&&!_0x290f3f),_0x1eac8f['on']('execute',()=>function(){_0x3142ac[_0x339d('0x14')]&&_0x3142ac['remove'](0x0),(_0x154faf[_0x339d('0x12')](),_0x3142ac['add'](_0x154faf),_0x154faf[_0x339d('0x7')]());}()),_0x2eab58[_0x339d('0x11')]({'label':_0x4fe23a(_0x20e06e,'Open\x20revision\x20history'),'withText':!0x0}),_0x2eab58['bind']('isEnabled')['to'](_0x3583f0,_0x339d('0x10'),_0x19c47b,'isReadOnly',(_0x2a17a0,_0x313689)=>_0x2a17a0&&!_0x313689),_0x2eab58['on'](_0x339d('0x18'),()=>{_0x19c47b[_0x339d('0x2')][_0x339d('0x0')]('revisionHistory')['showRevisionViewerCallback'](),_0x4d1023();}),_0x5e7e86[_0x339d('0x17')][_0x339d('0x9')](_0x1eac8f),_0x4cbf58[_0x339d('0x17')][_0x339d('0x9')](_0x2eab58),_0x21abee[_0x339d('0x4')]['addMany']([_0x5e7e86,_0x4cbf58]),_0x5f1f86['on'](_0x339d('0xa'),()=>_0x5026b3()),_0x154faf['saveButtonView'][_0x339d('0x6')](_0x339d('0xd'))['to'](_0x3583f0,'isReady',_0x3583f0,_0x339d('0xd'),_0x19c47b,_0x339d('0x16'),(_0x28ce0e,_0x332b7c,_0x59fc99)=>_0x28ce0e&&_0x332b7c&&!_0x59fc99),_0x154faf['on']('submit',()=>(_0x19c47b['plugins'][_0x339d('0x0')](_0x190153)[_0x339d('0x1')]({'name':_0x154faf['revisionName']}),void _0x4d1023())),_0x154faf['on'](_0x339d('0xe'),()=>_0x5026b3()),_0x154faf[_0x339d('0x3')](),_0x5026b3(),_0x5f1f86;});}}
23
+ const _0x54d6=['editor','submit','render','saveButtonView','revisionHistory','init','requires','add','saveRevision','remove','RevisionHistoryUI','focus','length','Revision\x20history','isReady','get','RevisionTracker','plugins','isEnabled','execute','componentFactory','panelView','change:isOpen','set','bind','buttonView','children','reset','config','isReadOnly','addMany'];(function(_0xc76e05,_0x54d6c7){const _0x261da0=function(_0x19c36f){while(--_0x19c36f){_0xc76e05['push'](_0xc76e05['shift']());}};_0x261da0(++_0x54d6c7);}(_0x54d6,0x98));const _0x261d=function(_0xc76e05,_0x54d6c7){_0xc76e05=_0xc76e05-0x0;let _0x261da0=_0x54d6[_0xc76e05];return _0x261da0;};import{Plugin as _0x4fa6aa}from'ckeditor5/src/core';import{ListView as _0xc394c2,ListItemView as _0x23de80,ButtonView as _0x23d673,createDropdown as _0x1f0136}from'ckeditor5/src/ui';import _0x3e5a21 from'../../revisiontracker';import _0x3afe87 from'./revisionhistorysaverevisionformview';import _0x28f47a from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x1bed2e}from'../../utils/common-translations';export default class l extends _0x4fa6aa{static get['pluginName'](){return _0x261d('0xd');}static get[_0x261d('0x9')](){return[_0x3e5a21];}[_0x261d('0x8')](){const _0x33a5c0=this[_0x261d('0x3')],_0x10021d=_0x33a5c0[_0x261d('0x14')]['get'](_0x261d('0x13'));_0x33a5c0['ui'][_0x261d('0x17')][_0x261d('0xa')](_0x261d('0x7'),_0xb950d8=>{const _0x860cff=_0x1f0136(_0xb950d8),_0x295274=_0x860cff[_0x261d('0x18')][_0x261d('0x1d')],_0x2e692d=new _0xc394c2(_0xb950d8),_0x1f508f=new _0x23de80(_0xb950d8),_0x5ecb1a=new _0x23d673(_0xb950d8),_0x334dfd=new _0x23de80(_0xb950d8),_0x50b48d=new _0x23d673(_0xb950d8),_0x4f0090=new _0x3afe87(_0xb950d8);function _0x5f0519(){_0x295274['length']&&_0x295274[_0x261d('0xc')](0x0),_0x295274['add'](_0x2e692d);}function _0x5156f7(){_0x860cff['isOpen']=!0x1,_0x33a5c0['editing']['view'][_0x261d('0xe')]();}return _0x860cff['bind']('isEnabled')['to'](_0x10021d,_0x261d('0x11'),_0x10021d,_0x261d('0x15'),_0x33a5c0,_0x261d('0x1'),(_0x2b6c22,_0x52da34,_0x66e2b0)=>_0x2b6c22&&_0x52da34&&!_0x66e2b0),_0x860cff[_0x261d('0x1c')][_0x261d('0x1a')]({'icon':_0x28f47a,'label':_0x1bed2e(_0xb950d8,_0x261d('0x10')),'tooltip':!0x0}),_0x5ecb1a['set']({'label':_0x1bed2e(_0xb950d8,'Save\x20current\x20revision'),'withText':!0x0}),_0x5ecb1a[_0x261d('0x1b')](_0x261d('0x15'))['to'](_0x10021d,_0x261d('0x11'),_0x10021d,_0x261d('0x15'),_0x33a5c0,'isReadOnly',(_0x10fcc1,_0x1f9497,_0x57b152)=>_0x10fcc1&&_0x1f9497&&!_0x57b152),_0x5ecb1a['on']('execute',()=>function(){_0x295274[_0x261d('0xf')]&&_0x295274[_0x261d('0xc')](0x0),(_0x4f0090[_0x261d('0x1e')](),_0x295274[_0x261d('0xa')](_0x4f0090),_0x4f0090['focus']());}()),_0x50b48d[_0x261d('0x1a')]({'label':_0x1bed2e(_0xb950d8,'Open\x20revision\x20history'),'withText':!0x0}),_0x50b48d[_0x261d('0x1b')](_0x261d('0x15'))['to'](_0x10021d,'isReady',_0x33a5c0,_0x261d('0x1'),(_0x556ba8,_0x2ffad5)=>_0x556ba8&&!_0x2ffad5),_0x50b48d['on'](_0x261d('0x16'),()=>{_0x33a5c0[_0x261d('0x0')][_0x261d('0x12')](_0x261d('0x7'))['showRevisionViewerCallback'](),_0x5156f7();}),_0x1f508f[_0x261d('0x1d')][_0x261d('0xa')](_0x5ecb1a),_0x334dfd[_0x261d('0x1d')]['add'](_0x50b48d),_0x2e692d['items'][_0x261d('0x2')]([_0x1f508f,_0x334dfd]),_0x860cff['on'](_0x261d('0x19'),()=>_0x5f0519()),_0x4f0090[_0x261d('0x6')][_0x261d('0x1b')](_0x261d('0x15'))['to'](_0x10021d,_0x261d('0x11'),_0x10021d,'isEnabled',_0x33a5c0,_0x261d('0x1'),(_0x10bdd2,_0x2a149d,_0x1bd24a)=>_0x10bdd2&&_0x2a149d&&!_0x1bd24a),_0x4f0090['on'](_0x261d('0x4'),()=>(_0x33a5c0[_0x261d('0x14')][_0x261d('0x12')](_0x3e5a21)[_0x261d('0xb')]({'name':_0x4f0090['revisionName']}),void _0x5156f7())),_0x4f0090['on']('cancel',()=>_0x5f0519()),_0x4f0090[_0x261d('0x5')](),_0x5f0519(),_0x860cff;});}}
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * @module revision-history/ui/revisionsidebar/revisionsidebar
3
3
  */
4
- import { Plugin, type PluginDependencies, type Editor } from 'ckeditor5/src/core';
4
+ import { Plugin, type Editor } from 'ckeditor5/src/core';
5
+ import RevisionViewer from '../../revisionviewer';
5
6
  import type { default as RevisionView } from '../revision/revisionview';
6
7
  /**
7
8
  * TODO
@@ -12,11 +13,11 @@ export default class RevisionsSidebar extends Plugin {
12
13
  /**
13
14
  * @inheritDoc
14
15
  */
15
- static get pluginName(): 'RevisionsSidebar';
16
+ static get pluginName(): "RevisionsSidebar";
16
17
  /**
17
18
  * @inheritDoc
18
19
  */
19
- static get requires(): PluginDependencies;
20
+ static get requires(): readonly [typeof RevisionViewer];
20
21
  /**
21
22
  * @inheritDoc
22
23
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x23e9=['nameRevision','getRevision','restoreRevisionCallback','revisionSelected','editor','add','render','isEnabled','change:diff','fieldView','isSelected','get','selectRevision','length','listenTo','_handleDiffChange','diff','revisionSetName','isVisible','compare','bind','assign','data','element','_handleEditorDataReady','init','requires','config','repository','revisionHistory','plugins','revisionViews','revisionHistory.viewerSidebarContainer','getEarlierVisibleRevision','revisionHistory.revisionActions','setName','_revisions','_revisionsRepository','getIndex','destroy','availableRevisionActions','appendChild','string','select','getRevisionsInDiff','Name\x20this\x20revision','remove','_handleRevisionSelected','newRevisionId','RevisionsSidebar','Compare\x20against\x20selected','highlightRevisions','getLaterVisibleRevision','compareAgainstSelected','name','defaultRevisionActions','pluginName','_createRevisionActions','_sidebarView','Restore\x20this\x20revision','_revisionViewer'];(function(_0x4b86b8,_0x23e9f3){const _0x51a54b=function(_0x56dd39){while(--_0x56dd39){_0x4b86b8['push'](_0x4b86b8['shift']());}};_0x51a54b(++_0x23e9f3);}(_0x23e9,0x1a1));const _0x51a5=function(_0x4b86b8,_0x23e9f3){_0x4b86b8=_0x4b86b8-0x0;let _0x51a54b=_0x23e9[_0x4b86b8];return _0x51a54b;};import{Plugin as _0x4a61ad}from'ckeditor5/src/core';import _0x581670 from'./revisionssidebarview';import _0x40cb07 from'../../revisionviewer';export default class d extends _0x4a61ad{static get[_0x51a5('0x5')](){return _0x51a5('0x3b');}static get[_0x51a5('0x24')](){return[_0x40cb07];}constructor(_0x53e9e0){super(_0x53e9e0),this['_revisionViewer']=_0x53e9e0[_0x51a5('0x28')][_0x51a5('0x15')](_0x40cb07),this['_revisionsRepository']=this['_revisionViewer'][_0x51a5('0x26')],this[_0x51a5('0x7')]=null;}[_0x51a5('0x23')](){const _0x3fef6f=this['_revisionsRepository'][_0x51a5('0x2e')],_0x1ec246=this[_0x51a5('0x6')](),_0x55e982=this[_0x51a5('0xe')][_0x51a5('0x25')]['get'](_0x51a5('0x2a'));this[_0x51a5('0x7')]=new _0x581670(this[_0x51a5('0xe')]['locale'],_0x3fef6f,_0x1ec246),this[_0x51a5('0x7')]['on'](_0x51a5('0xd'),this['_handleRevisionSelected'][_0x51a5('0x1e')](this)),this['_sidebarView']['on'](_0x51a5('0x1b'),this['_handleRevisionSetName']['bind'](this)),this[_0x51a5('0x7')][_0x51a5('0x1e')](_0x51a5('0x11'))['to'](this[_0x51a5('0x9')]),this['_sidebarView']['timePeriodViews']['on'](_0x51a5('0xf'),(_0x276fbb,_0x263d00)=>{_0x263d00[_0x51a5('0x29')]['on'](_0x51a5('0xf'),(_0x37be06,_0x39989b)=>{_0x39989b[_0x51a5('0x1e')]('isEnabled','isReady')['to'](this['_revisionViewer']);});}),this['_sidebarView'][_0x51a5('0x10')](),this['listenTo'](this[_0x51a5('0xe')][_0x51a5('0x20')],'ready',this['_handleEditorDataReady'][_0x51a5('0x1e')](this)),this[_0x51a5('0x18')](this['_revisionViewer'],_0x51a5('0x12'),this[_0x51a5('0x19')][_0x51a5('0x1e')](this)),_0x55e982[_0x51a5('0x33')](this['_sidebarView'][_0x51a5('0x21')]);}[_0x51a5('0x31')](){this[_0x51a5('0x7')]['element'][_0x51a5('0x38')](),this[_0x51a5('0x7')][_0x51a5('0x31')]();}[_0x51a5('0x22')](){const _0x323649=this[_0x51a5('0x2f')][_0x51a5('0xb')](0x0);if(_0x323649){const _0x2db0af=this['_revisionsRepository'][_0x51a5('0x2b')](_0x323649['id']);this['_revisionViewer'][_0x51a5('0x1d')](_0x323649,_0x2db0af);}}[_0x51a5('0x39')](_0x2dfe02,_0x19224d){const _0xe72e5=this[_0x51a5('0x2f')][_0x51a5('0xb')](_0x19224d['id']),_0xfa11da=this[_0x51a5('0x2f')][_0x51a5('0x2b')](_0xe72e5['id']);this['_revisionViewer']['compare'](_0xe72e5,_0xfa11da);}['_handleRevisionSetName'](_0x239c1b,_0xaac9d5){this[_0x51a5('0x2f')][_0x51a5('0xb')](_0xaac9d5['id'])[_0x51a5('0x2d')](_0xaac9d5[_0x51a5('0x3')]);}[_0x51a5('0x19')](_0xea7004,_0x1de4ca,_0x6433ca){const _0x2f4f8d=this[_0x51a5('0x2f')]['getRevisionsInDiff'](_0x6433ca);_0x2f4f8d[_0x51a5('0x17')]>0x2?(this[_0x51a5('0x7')][_0x51a5('0x0')](_0x2f4f8d),this[_0x51a5('0x7')][_0x51a5('0x16')](null)):(this[_0x51a5('0x7')][_0x51a5('0x0')]([]),this['_sidebarView'][_0x51a5('0x16')](_0x2f4f8d[0x0]));}['_createRevisionActions'](){const _0x4705f0=this['editor'],_0x82ff3b=d[_0x51a5('0x32')],_0x4afdea=_0x4705f0[_0x51a5('0x25')][_0x51a5('0x15')](_0x51a5('0x2c'))||d[_0x51a5('0x4')];if(_0x4afdea[_0x51a5('0x17')])return _0x4afdea['map'](_0x47d7db=>{const _0x5d7368=_0x51a5('0x34')==typeof _0x47d7db?Object[_0x51a5('0x1f')]({},_0x82ff3b[_0x47d7db]):_0x47d7db;return _0x5d7368['action']=_0x5d7368['action'][_0x51a5('0x1e')](this,_0x4705f0),_0x5d7368[_0x51a5('0x1c')]&&(_0x5d7368[_0x51a5('0x1c')]=_0x5d7368['isVisible'][_0x51a5('0x1e')](this,_0x4705f0)),_0x5d7368;});}}d[_0x51a5('0x32')]={'compareAgainstSelected':{'name':_0x51a5('0x3c'),'action':({plugins:_0x5e8dae},_0x238f4c)=>{const _0x3dd67a=_0x5e8dae['get'](_0x40cb07),_0x1cae2c=_0x3dd67a[_0x51a5('0x26')];let _0x1465f6=_0x3dd67a['diff'][_0x51a5('0x3a')],_0x451953=_0x238f4c['id'];_0x1cae2c[_0x51a5('0x30')](_0x1465f6)>_0x1cae2c['getIndex'](_0x451953)&&([_0x1465f6,_0x451953]=[_0x451953,_0x1465f6]),_0x3dd67a['compare'](_0x1465f6,_0x451953);},'isVisible':({plugins:_0x5c3d6b},_0x18ff59)=>{const _0x2c05f4=_0x5c3d6b[_0x51a5('0x15')](_0x40cb07);return!(_0x2c05f4[_0x51a5('0x26')][_0x51a5('0x36')](_0x2c05f4[_0x51a5('0x1a')])['length']>0x2)&&!_0x18ff59[_0x51a5('0x14')];}},'restoreRevision':{'name':_0x51a5('0x8'),'action':(_0x32c5ad,{id:_0x86e086})=>{_0x32c5ad[_0x51a5('0x25')][_0x51a5('0x15')](_0x51a5('0x27'))[_0x51a5('0xc')](_0x86e086);},'isVisible':({plugins:_0x21fc36},_0x356178)=>!!_0x21fc36[_0x51a5('0x15')](_0x40cb07)['repository'][_0x51a5('0x1')](_0x356178['id'])},'nameRevision':{'name':_0x51a5('0x37'),'action':({plugins:_0x309e62},{id:_0x5da514,revisionNameView:_0x1b4a3d})=>{const _0x5855d1=_0x309e62[_0x51a5('0x15')](_0x40cb07),_0x4d1292=_0x5855d1[_0x51a5('0x26')][_0x51a5('0x2b')](_0x5da514);_0x5855d1[_0x51a5('0x1d')](_0x5da514,_0x4d1292),_0x1b4a3d['focus'](),_0x1b4a3d[_0x51a5('0x13')][_0x51a5('0x35')]();}}},d[_0x51a5('0x4')]=[_0x51a5('0x2'),'restoreRevision',_0x51a5('0xa')];
23
+ const _0x7247=['config','ready','revisionViews','listenTo','length','editor','_revisionViewer','RevisionsSidebar','_sidebarView','destroy','defaultRevisionActions','_handleEditorDataReady','diff','revisionHistory.viewerSidebarContainer','Restore\x20this\x20revision','getEarlierVisibleRevision','bind','isVisible','add','_createRevisionActions','appendChild','render','isEnabled','compare','nameRevision','setName','getIndex','_handleDiffChange','get','fieldView','_revisionsRepository','assign','getLaterVisibleRevision','_handleRevisionSetName','highlightRevisions','plugins','Name\x20this\x20revision','isReady','repository','newRevisionId','name','element','pluginName','revisionHistory','_handleRevisionSelected','availableRevisionActions','revisionHistory.revisionActions','string','action','locale','Compare\x20against\x20selected','getRevisionsInDiff','getRevision'];(function(_0x45883b,_0x7247eb){const _0x350fbd=function(_0x21cb4e){while(--_0x21cb4e){_0x45883b['push'](_0x45883b['shift']());}};_0x350fbd(++_0x7247eb);}(_0x7247,0x188));const _0x350f=function(_0x45883b,_0x7247eb){_0x45883b=_0x45883b-0x0;let _0x350fbd=_0x7247[_0x45883b];return _0x350fbd;};import{Plugin as _0x4310b2}from'ckeditor5/src/core';import _0x221a9e from'./revisionssidebarview';import _0x3dc1b3 from'../../revisionviewer';export default class R extends _0x4310b2{static get[_0x350f('0x15')](){return _0x350f('0x27');}static get['requires'](){return[_0x3dc1b3];}constructor(_0x1c33e9){super(_0x1c33e9),this['_revisionViewer']=_0x1c33e9[_0x350f('0xe')][_0x350f('0x7')](_0x3dc1b3),this[_0x350f('0x9')]=this['_revisionViewer'][_0x350f('0x11')],this[_0x350f('0x28')]=null;}['init'](){const _0x3c7e4a=this[_0x350f('0x9')]['_revisions'],_0x26ac73=this[_0x350f('0x33')](),_0x43828f=this['editor'][_0x350f('0x20')]['get'](_0x350f('0x2d'));this[_0x350f('0x28')]=new _0x221a9e(this[_0x350f('0x25')][_0x350f('0x1c')],_0x3c7e4a,_0x26ac73),this[_0x350f('0x28')]['on']('revisionSelected',this[_0x350f('0x17')][_0x350f('0x30')](this)),this[_0x350f('0x28')]['on']('revisionSetName',this[_0x350f('0xc')]['bind'](this)),this[_0x350f('0x28')][_0x350f('0x30')](_0x350f('0x1'))['to'](this[_0x350f('0x26')]),this[_0x350f('0x28')]['timePeriodViews']['on'](_0x350f('0x32'),(_0x3513c6,_0x220f75)=>{_0x220f75[_0x350f('0x22')]['on'](_0x350f('0x32'),(_0x36c44b,_0x57b00f)=>{_0x57b00f[_0x350f('0x30')](_0x350f('0x1'),_0x350f('0x10'))['to'](this[_0x350f('0x26')]);});}),this[_0x350f('0x28')][_0x350f('0x0')](),this[_0x350f('0x23')](this[_0x350f('0x25')]['data'],_0x350f('0x21'),this[_0x350f('0x2b')][_0x350f('0x30')](this)),this['listenTo'](this[_0x350f('0x26')],'change:diff',this[_0x350f('0x6')][_0x350f('0x30')](this)),_0x43828f[_0x350f('0x34')](this[_0x350f('0x28')][_0x350f('0x14')]);}[_0x350f('0x29')](){this[_0x350f('0x28')]['element']['remove'](),this[_0x350f('0x28')][_0x350f('0x29')]();}[_0x350f('0x2b')](){const _0xd3e08b=this[_0x350f('0x9')][_0x350f('0x1f')](0x0);if(_0xd3e08b){const _0x35b944=this[_0x350f('0x9')][_0x350f('0x2f')](_0xd3e08b['id']);this[_0x350f('0x26')][_0x350f('0x2')](_0xd3e08b,_0x35b944);}}[_0x350f('0x17')](_0x911790,_0x39b8c9){const _0x521c22=this[_0x350f('0x9')][_0x350f('0x1f')](_0x39b8c9['id']),_0xbdec4a=this[_0x350f('0x9')][_0x350f('0x2f')](_0x521c22['id']);this[_0x350f('0x26')][_0x350f('0x2')](_0x521c22,_0xbdec4a);}[_0x350f('0xc')](_0x341fa0,_0x30abfd){this['_revisionsRepository']['getRevision'](_0x30abfd['id'])[_0x350f('0x4')](_0x30abfd[_0x350f('0x13')]);}['_handleDiffChange'](_0x2c2939,_0x2dc298,_0x232495){const _0x5e9261=this[_0x350f('0x9')]['getRevisionsInDiff'](_0x232495);_0x5e9261['length']>0x2?(this['_sidebarView'][_0x350f('0xd')](_0x5e9261),this['_sidebarView']['selectRevision'](null)):(this[_0x350f('0x28')][_0x350f('0xd')]([]),this[_0x350f('0x28')]['selectRevision'](_0x5e9261[0x0]));}[_0x350f('0x33')](){const _0xf54c1f=this[_0x350f('0x25')],_0x4e9bb1=R[_0x350f('0x18')],_0x293dbe=_0xf54c1f['config'][_0x350f('0x7')](_0x350f('0x19'))||R[_0x350f('0x2a')];if(_0x293dbe[_0x350f('0x24')])return _0x293dbe['map'](_0xb30b5b=>{const _0x4fbe04=_0x350f('0x1a')==typeof _0xb30b5b?Object[_0x350f('0xa')]({},_0x4e9bb1[_0xb30b5b]):_0xb30b5b;return _0x4fbe04['action']=_0x4fbe04[_0x350f('0x1b')][_0x350f('0x30')](this,_0xf54c1f),_0x4fbe04[_0x350f('0x31')]&&(_0x4fbe04[_0x350f('0x31')]=_0x4fbe04[_0x350f('0x31')][_0x350f('0x30')](this,_0xf54c1f)),_0x4fbe04;});}}R[_0x350f('0x18')]={'compareAgainstSelected':{'name':_0x350f('0x1d'),'action':({plugins:_0x3a7c04},_0x4ab320)=>{const _0x2a4ea5=_0x3a7c04[_0x350f('0x7')](_0x3dc1b3),_0x3a0776=_0x2a4ea5[_0x350f('0x11')];let _0x398f66=_0x2a4ea5[_0x350f('0x2c')][_0x350f('0x12')],_0x2408ac=_0x4ab320['id'];_0x3a0776[_0x350f('0x5')](_0x398f66)>_0x3a0776['getIndex'](_0x2408ac)&&([_0x398f66,_0x2408ac]=[_0x2408ac,_0x398f66]),_0x2a4ea5[_0x350f('0x2')](_0x398f66,_0x2408ac);},'isVisible':({plugins:_0x11fb8b},_0x3ada7a)=>{const _0x18911f=_0x11fb8b[_0x350f('0x7')](_0x3dc1b3);return!(_0x18911f['repository'][_0x350f('0x1e')](_0x18911f[_0x350f('0x2c')])[_0x350f('0x24')]>0x2)&&!_0x3ada7a['isSelected'];}},'restoreRevision':{'name':_0x350f('0x2e'),'action':(_0x534ad3,{id:_0x45d0e7})=>{_0x534ad3[_0x350f('0x20')][_0x350f('0x7')](_0x350f('0x16'))['restoreRevisionCallback'](_0x45d0e7);},'isVisible':({plugins:_0x5cc018},_0x31f008)=>!!_0x5cc018[_0x350f('0x7')](_0x3dc1b3)[_0x350f('0x11')][_0x350f('0xb')](_0x31f008['id'])},'nameRevision':{'name':_0x350f('0xf'),'action':({plugins:_0x1651a5},{id:_0x5e9aac,revisionNameView:_0x449164})=>{const _0x385375=_0x1651a5[_0x350f('0x7')](_0x3dc1b3),_0x25051d=_0x385375['repository']['getEarlierVisibleRevision'](_0x5e9aac);_0x385375[_0x350f('0x2')](_0x5e9aac,_0x25051d),_0x449164['focus'](),_0x449164[_0x350f('0x8')]['select']();}}},R['defaultRevisionActions']=['compareAgainstSelected','restoreRevision',_0x350f('0x3')];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5e78=['content','ck-revision-history-sidebar__header','ck-reset_all','ck-revision-history-sidebar__header__label','div'];(function(_0x35ec76,_0x5e78cb){const _0x514f9b=function(_0x536104){while(--_0x536104){_0x35ec76['push'](_0x35ec76['shift']());}};_0x514f9b(++_0x5e78cb);}(_0x5e78,0x146));const _0x514f=function(_0x35ec76,_0x5e78cb){_0x35ec76=_0x35ec76-0x0;let _0x514f9b=_0x5e78[_0x35ec76];return _0x514f9b;};import{View as _0x47e5df,IconView as _0x2a2a52}from'ckeditor5/src/ui';import{getTranslation as _0x550466}from'../../utils/common-translations';import _0x2f20d1 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x47e5df{constructor(_0x594e8b){super(_0x594e8b);const _0x218852=new _0x2a2a52();_0x218852[_0x514f('0x4')]=_0x2f20d1,this['setTemplate']({'tag':_0x514f('0x3'),'attributes':{'class':['ck',_0x514f('0x1'),_0x514f('0x0')]},'children':[_0x218852,{'tag':'span','attributes':{'class':['ck',_0x514f('0x2')]},'children':[_0x550466(_0x594e8b,'Revision\x20history')]}]});}}
23
+ const _0x208d=['ck-revision-history-sidebar__header','ck-revision-history-sidebar__header__label','Revision\x20history','content','ck-reset_all','span','setTemplate','div'];(function(_0xc0d81,_0x208dd9){const _0x50c7bc=function(_0x300c0a){while(--_0x300c0a){_0xc0d81['push'](_0xc0d81['shift']());}};_0x50c7bc(++_0x208dd9);}(_0x208d,0x67));const _0x50c7=function(_0xc0d81,_0x208dd9){_0xc0d81=_0xc0d81-0x0;let _0x50c7bc=_0x208d[_0xc0d81];return _0x50c7bc;};import{View as _0x3af6bd,IconView as _0x3df0fc}from'ckeditor5/src/ui';import{getTranslation as _0x3b5472}from'../../utils/common-translations';import _0x5400b3 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x3af6bd{constructor(_0x5e329e){super(_0x5e329e);const _0x426e02=new _0x3df0fc();_0x426e02[_0x50c7('0x4')]=_0x5400b3,this[_0x50c7('0x7')]({'tag':_0x50c7('0x0'),'attributes':{'class':['ck',_0x50c7('0x5'),_0x50c7('0x1')]},'children':[_0x426e02,{'tag':_0x50c7('0x6'),'attributes':{'class':['ck',_0x50c7('0x2')]},'children':[_0x3b5472(_0x5e329e,_0x50c7('0x3'))]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a48=['_revisionActions','div','remove','revisionViews','find','uiLanguage','ck-revision-history-sidebar__time-period__revisions','ck-revision-history-sidebar__time-period__label','startDate','createCollection','localizedPeriodName','setName','delegate','locale','span','removeRevision','addRevision'];(function(_0x42f893,_0x1a48ce){const _0x85ccdf=function(_0x126746){while(--_0x126746){_0x42f893['push'](_0x42f893['shift']());}};_0x85ccdf(++_0x1a48ce);}(_0x1a48,0x17d));const _0x85cc=function(_0x42f893,_0x1a48ce){_0x42f893=_0x42f893-0x0;let _0x85ccdf=_0x1a48[_0x42f893];return _0x85ccdf;};import{View as _0x1f3dac}from'ckeditor5/src/ui';import _0x568dee from'../revision/revisionview';import{getDateTimePeriodInfo as _0x2b0ec8}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x1f3dac{constructor(_0x44c645,_0xbe39fa,_0x4b6311){super(_0x44c645);const _0xb1d0af=_0x2b0ec8(_0xbe39fa,this[_0x85cc('0x6')][_0x85cc('0xf')])[_0x85cc('0x3')];this[_0x85cc('0x1')]=_0xbe39fa,this[_0x85cc('0xd')]=this[_0x85cc('0x2')](),this[_0x85cc('0xa')]=_0x4b6311,this[_0x85cc('0xd')][_0x85cc('0x5')]('select')['to'](this),this[_0x85cc('0xd')][_0x85cc('0x5')](_0x85cc('0x4'))['to'](this),this['setTemplate']({'tag':_0x85cc('0xb'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':_0x85cc('0x7'),'attributes':{'class':['ck',_0x85cc('0x0')]},'children':[{'text':_0xb1d0af}]},{'tag':_0x85cc('0xb'),'attributes':{'class':['ck',_0x85cc('0x10')]},'children':this[_0x85cc('0xd')]}]});}[_0x85cc('0x9')](_0x36ae7c){const _0x32075d=new _0x568dee(this[_0x85cc('0x6')],_0x36ae7c,this['_revisionActions']);this[_0x85cc('0xd')]['add'](_0x32075d);}[_0x85cc('0x8')](_0x2c4150){const _0x27fc90=this['revisionViews'][_0x85cc('0xe')](_0x4a9063=>_0x4a9063['id']===_0x2c4150['id']);this[_0x85cc('0xd')][_0x85cc('0xc')](_0x27fc90);}}
23
+ const _0x5045=['ck-revision-history-sidebar__time-period','revisionViews','span','locale','add','ck-revision-history-sidebar__time-period__label','localizedPeriodName','uiLanguage','removeRevision','addRevision','setName'];(function(_0x58c8a3,_0x5045df){const _0x1b25a6=function(_0x2effb3){while(--_0x2effb3){_0x58c8a3['push'](_0x58c8a3['shift']());}};_0x1b25a6(++_0x5045df);}(_0x5045,0x1d9));const _0x1b25=function(_0x58c8a3,_0x5045df){_0x58c8a3=_0x58c8a3-0x0;let _0x1b25a6=_0x5045[_0x58c8a3];return _0x1b25a6;};import{View as _0x332f98}from'ckeditor5/src/ui';import _0x1aeba3 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x3eafb1}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x332f98{constructor(_0x1ac675,_0x22d418,_0x2cd976){super(_0x1ac675);const _0x3e3339=_0x3eafb1(_0x22d418,this[_0x1b25('0x3')][_0x1b25('0x7')])[_0x1b25('0x6')];this['startDate']=_0x22d418,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x2cd976,this[_0x1b25('0x1')]['delegate']('select')['to'](this),this[_0x1b25('0x1')]['delegate'](_0x1b25('0xa'))['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x1b25('0x0')]},'children':[{'tag':_0x1b25('0x2'),'attributes':{'class':['ck',_0x1b25('0x5')]},'children':[{'text':_0x3e3339}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this[_0x1b25('0x1')]}]});}[_0x1b25('0x9')](_0x53e66a){const _0x5ce4f5=new _0x1aeba3(this[_0x1b25('0x3')],_0x53e66a,this['_revisionActions']);this[_0x1b25('0x1')][_0x1b25('0x4')](_0x5ce4f5);}[_0x1b25('0x8')](_0x290492){const _0x16bed0=this[_0x1b25('0x1')]['find'](_0x40a881=>_0x40a881['id']===_0x290492['id']);this[_0x1b25('0x1')]['remove'](_0x16bed0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4555=['ck-disabled','map','_revisions','locale','ck-revision-history-sidebar','_addRevision','highlightRevisions','some','unhighlight','addRevision','_revisionActions','uiLanguage','getTime','flat','ck-reset','revisionSelected','selectRevision','startDate','remove','render','ck-rounded-corners','add','select','revisionSetName','div','setName','createdAt','_removeRevision','fire','ck-revision-history-sidebar__timeline','set','revisionViews','get','timePeriodViews','isEnabled','delegate','deselect','setTemplate'];(function(_0x59dbbf,_0x45558f){const _0x52445f=function(_0x3182e4){while(--_0x3182e4){_0x59dbbf['push'](_0x59dbbf['shift']());}};_0x52445f(++_0x45558f);}(_0x4555,0x1dd));const _0x5244=function(_0x59dbbf,_0x45558f){_0x59dbbf=_0x59dbbf-0x0;let _0x52445f=_0x4555[_0x59dbbf];return _0x52445f;};import{View as _0x301575}from'ckeditor5/src/ui';import _0x5c6497 from'./revisionssidebartimeperiodview';import _0x99ed1 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x116c96}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x301575{constructor(_0x3018b4,_0x4aae0f,_0x1c994f){super(_0x3018b4);const _0x4a88a5=this['bindTemplate'];this[_0x5244('0xc')]=this['createCollection'](),this[_0x5244('0xc')][_0x5244('0xe')]('select')['to'](this),this[_0x5244('0xc')][_0x5244('0xe')](_0x5244('0x4'))['to'](this),this[_0x5244('0x13')]=_0x4aae0f,this[_0x5244('0x1b')]=_0x1c994f,this['on'](_0x5244('0x1'),(_0x1d10fa,_0xbdf4a5)=>{this[_0x5244('0x7')](_0x5244('0x20'),_0xbdf4a5);}),this['on'](_0x5244('0x4'),(_0x152aaf,_0x47f958)=>{this['fire'](_0x5244('0x2'),_0x47f958);}),this[_0x5244('0x9')](_0x5244('0xd'),!0x1),this[_0x5244('0x10')]({'tag':'div','attributes':{'class':['ck',_0x5244('0x1f'),_0x5244('0x25'),_0x5244('0x15')]},'children':[new _0x99ed1(_0x3018b4),{'tag':_0x5244('0x3'),'attributes':{'class':['ck',_0x5244('0x8'),_0x4a88a5['if'](_0x5244('0xd'),_0x5244('0x11'),_0x264ece=>!_0x264ece)]},'children':this[_0x5244('0xc')]}]});}[_0x5244('0x24')](){super[_0x5244('0x24')]();for(const _0x2ed5bf of this[_0x5244('0x13')])this[_0x5244('0x16')](_0x2ed5bf);this[_0x5244('0x13')]['on'](_0x5244('0x0'),(_0x1f8228,_0x57f30a)=>{this['_addRevision'](_0x57f30a);}),this[_0x5244('0x13')]['on'](_0x5244('0x23'),(_0x279951,_0x3c5090)=>{this[_0x5244('0x6')](_0x3c5090);});}get[_0x5244('0xa')](){return this[_0x5244('0xc')][_0x5244('0x12')](_0x749df9=>_0x749df9[_0x5244('0xa')][_0x5244('0x12')](_0x5bea4d=>_0x5bea4d))[_0x5244('0x1e')]();}[_0x5244('0x21')](_0x44ed43){for(const _0x1f94f0 of this[_0x5244('0xa')])_0x44ed43&&_0x44ed43['id']===_0x1f94f0['id']?_0x1f94f0[_0x5244('0x1')]():_0x1f94f0[_0x5244('0xf')]();}[_0x5244('0x17')](_0x7997de){for(const _0x4600ca of this[_0x5244('0xa')])_0x7997de[_0x5244('0x18')](({id:_0x38031d})=>_0x38031d===_0x4600ca['id'])?_0x4600ca['highlight']():_0x4600ca[_0x5244('0x19')]();}[_0x5244('0x16')](_0x2716a6){const _0x4d8be3=_0x116c96(_0x2716a6[_0x5244('0x5')],this[_0x5244('0x14')][_0x5244('0x1c')])[_0x5244('0x22')];let _0x53cd5e=this['timePeriodViews'][_0x5244('0xb')](0x0);_0x53cd5e&&_0x53cd5e[_0x5244('0x22')][_0x5244('0x1d')]()===_0x4d8be3['getTime']()||(_0x53cd5e=new _0x5c6497(this[_0x5244('0x14')],_0x4d8be3,this['_revisionActions']),this[_0x5244('0xc')][_0x5244('0x0')](_0x53cd5e)),_0x53cd5e[_0x5244('0x1a')](_0x2716a6);}['_removeRevision'](_0x322853){const _0x22ae18=_0x116c96(_0x322853['createdAt'],this[_0x5244('0x14')][_0x5244('0x1c')])[_0x5244('0x22')];this['_getTimePeriodViewByStartDate'](_0x22ae18)['removeRevision'](_0x322853);}['_getTimePeriodViewByStartDate'](_0x2189ad){return this['timePeriodViews']['find'](_0x131407=>_0x131407[_0x5244('0x22')][_0x5244('0x1d')]()===_0x2189ad[_0x5244('0x1d')]());}}
23
+ const _0x535a=['getTime','add','_getTimePeriodViewByStartDate','createdAt','timePeriodViews','map','render','ck-reset','revisionSelected','_revisionActions','uiLanguage','createCollection','isEnabled','setTemplate','selectRevision','select','ck-revision-history-sidebar','_revisions','addRevision','set','deselect','remove','highlightRevisions','some','removeRevision','startDate','fire','ck-rounded-corners','setName','_addRevision','locale','highlight','delegate','div','_removeRevision','revisionViews','find','ck-disabled'];(function(_0x1e8bd8,_0x535ae1){const _0x1514e2=function(_0x599aa9){while(--_0x599aa9){_0x1e8bd8['push'](_0x1e8bd8['shift']());}};_0x1514e2(++_0x535ae1);}(_0x535a,0xe4));const _0x1514=function(_0x1e8bd8,_0x535ae1){_0x1e8bd8=_0x1e8bd8-0x0;let _0x1514e2=_0x535a[_0x1e8bd8];return _0x1514e2;};import{View as _0x54df5c}from'ckeditor5/src/ui';import _0x5e24a7 from'./revisionssidebartimeperiodview';import _0x53f6d9 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x4ca8d5}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x54df5c{constructor(_0x508c36,_0xec9734,_0x228dc5){super(_0x508c36);const _0x58e6b5=this['bindTemplate'];this[_0x1514('0x4')]=this[_0x1514('0xb')](),this[_0x1514('0x4')]['delegate'](_0x1514('0xf'))['to'](this),this[_0x1514('0x4')][_0x1514('0x20')](_0x1514('0x1c'))['to'](this),this[_0x1514('0x11')]=_0xec9734,this[_0x1514('0x9')]=_0x228dc5,this['on'](_0x1514('0xf'),(_0x143015,_0x336b45)=>{this[_0x1514('0x1a')](_0x1514('0x8'),_0x336b45);}),this['on'](_0x1514('0x1c'),(_0xc838b3,_0x477014)=>{this['fire']('revisionSetName',_0x477014);}),this[_0x1514('0x13')](_0x1514('0xc'),!0x1),this[_0x1514('0xd')]({'tag':'div','attributes':{'class':['ck',_0x1514('0x7'),_0x1514('0x1b'),_0x1514('0x10')]},'children':[new _0x53f6d9(_0x508c36),{'tag':_0x1514('0x21'),'attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x58e6b5['if'](_0x1514('0xc'),_0x1514('0x25'),_0x6474e3=>!_0x6474e3)]},'children':this[_0x1514('0x4')]}]});}[_0x1514('0x6')](){super['render']();for(const _0x52593a of this['_revisions'])this[_0x1514('0x1d')](_0x52593a);this[_0x1514('0x11')]['on'](_0x1514('0x1'),(_0x1dac36,_0x36123b)=>{this[_0x1514('0x1d')](_0x36123b);}),this[_0x1514('0x11')]['on'](_0x1514('0x15'),(_0x1082ec,_0x517291)=>{this[_0x1514('0x22')](_0x517291);});}get[_0x1514('0x23')](){return this['timePeriodViews'][_0x1514('0x5')](_0x5707b8=>_0x5707b8[_0x1514('0x23')]['map'](_0x18a29e=>_0x18a29e))['flat']();}[_0x1514('0xe')](_0x5945f7){for(const _0x41ab67 of this[_0x1514('0x23')])_0x5945f7&&_0x5945f7['id']===_0x41ab67['id']?_0x41ab67[_0x1514('0xf')]():_0x41ab67[_0x1514('0x14')]();}[_0x1514('0x16')](_0x31e324){for(const _0xa97468 of this[_0x1514('0x23')])_0x31e324[_0x1514('0x17')](({id:_0x246a2d})=>_0x246a2d===_0xa97468['id'])?_0xa97468[_0x1514('0x1f')]():_0xa97468['unhighlight']();}['_addRevision'](_0x2313dc){const _0x3af31f=_0x4ca8d5(_0x2313dc[_0x1514('0x3')],this[_0x1514('0x1e')][_0x1514('0xa')])[_0x1514('0x19')];let _0x462ba9=this['timePeriodViews']['get'](0x0);_0x462ba9&&_0x462ba9[_0x1514('0x19')][_0x1514('0x0')]()===_0x3af31f[_0x1514('0x0')]()||(_0x462ba9=new _0x5e24a7(this[_0x1514('0x1e')],_0x3af31f,this[_0x1514('0x9')]),this[_0x1514('0x4')]['add'](_0x462ba9)),_0x462ba9[_0x1514('0x12')](_0x2313dc);}[_0x1514('0x22')](_0x19dbc1){const _0x1297e2=_0x4ca8d5(_0x19dbc1[_0x1514('0x3')],this[_0x1514('0x1e')][_0x1514('0xa')])[_0x1514('0x19')];this[_0x1514('0x2')](_0x1297e2)[_0x1514('0x18')](_0x19dbc1);}[_0x1514('0x2')](_0x5bce01){return this[_0x1514('0x4')][_0x1514('0x24')](_0x1c158f=>_0x1c158f['startDate'][_0x1514('0x0')]()===_0x5bce01[_0x1514('0x0')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1b22=['local','minus','weekdayLong','setLocale','startOf','fromJSDate','toRelativeCalendar','day','toJSDate','week','hasSame','year'];(function(_0x5f05c1,_0x1b2223){const _0x3ecb12=function(_0x456853){while(--_0x456853){_0x5f05c1['push'](_0x5f05c1['shift']());}};_0x3ecb12(++_0x1b2223);}(_0x1b22,0x1f3));const _0x3ecb=function(_0x5f05c1,_0x1b2223){_0x5f05c1=_0x5f05c1-0x0;let _0x3ecb12=_0x1b22[_0x5f05c1];return _0x3ecb12;};import{DateTime as _0x531bf9}from'luxon';export function getDateTimePeriodInfo(_0x3af288,_0x175b25){const _0x2d11b3=_0x531bf9[_0x3ecb('0xa')](_0x3af288)[_0x3ecb('0x8')](_0x175b25),_0x54e297=_0x531bf9[_0x3ecb('0x5')](),_0x3d657f=_0x54e297[_0x3ecb('0x6')]({'days':0x1})[_0x3ecb('0x9')](_0x3ecb('0x0'));let _0x1a42ec,_0x363a6a;return _0x2d11b3[_0x3ecb('0x3')](_0x54e297,_0x3ecb('0x0'))?(_0x1a42ec=_0x2d11b3[_0x3ecb('0x9')]('day')[_0x3ecb('0x1')](),_0x363a6a=_0x2d11b3[_0x3ecb('0xb')]()):_0x2d11b3[_0x3ecb('0x3')](_0x3d657f,_0x3ecb('0x0'))?(_0x1a42ec=_0x3d657f[_0x3ecb('0x1')](),_0x363a6a=_0x2d11b3[_0x3ecb('0xb')]()):_0x2d11b3['hasSame'](_0x54e297,'week')?(_0x1a42ec=_0x2d11b3[_0x3ecb('0x9')](_0x3ecb('0x2'))[_0x3ecb('0x1')](),_0x363a6a=_0x2d11b3[_0x3ecb('0x7')]||''):_0x2d11b3['hasSame'](_0x54e297,_0x3ecb('0x4'))?(_0x1a42ec=_0x2d11b3[_0x3ecb('0x9')]('month')[_0x3ecb('0x1')](),_0x363a6a=_0x2d11b3['monthLong']||''):(_0x1a42ec=_0x2d11b3['startOf'](_0x3ecb('0x4'))[_0x3ecb('0x1')](),_0x363a6a=String(_0x2d11b3['year'])),{'startDate':_0x1a42ec,'localizedPeriodName':_0x363a6a};}
23
+ const _0x1a80=['toJSDate','year','day','setLocale','fromJSDate','week','minus','month','local','startOf','monthLong','hasSame'];(function(_0x46b9b1,_0x1a8095){const _0x59afd5=function(_0x45dd96){while(--_0x45dd96){_0x46b9b1['push'](_0x46b9b1['shift']());}};_0x59afd5(++_0x1a8095);}(_0x1a80,0x18d));const _0x59af=function(_0x46b9b1,_0x1a8095){_0x46b9b1=_0x46b9b1-0x0;let _0x59afd5=_0x1a80[_0x46b9b1];return _0x59afd5;};import{DateTime as _0xc044b9}from'luxon';export function getDateTimePeriodInfo(_0x44b4c1,_0x5769ff){const _0x5b3992=_0xc044b9[_0x59af('0x3')](_0x44b4c1)[_0x59af('0x2')](_0x5769ff),_0x31f00d=_0xc044b9[_0x59af('0x7')](),_0x18209a=_0x31f00d[_0x59af('0x5')]({'days':0x1})[_0x59af('0x8')](_0x59af('0x1'));let _0x17ae0a,_0x3c53d1;return _0x5b3992[_0x59af('0xa')](_0x31f00d,_0x59af('0x1'))?(_0x17ae0a=_0x5b3992['startOf'](_0x59af('0x1'))['toJSDate'](),_0x3c53d1=_0x5b3992['toRelativeCalendar']()):_0x5b3992[_0x59af('0xa')](_0x18209a,_0x59af('0x1'))?(_0x17ae0a=_0x18209a[_0x59af('0xb')](),_0x3c53d1=_0x5b3992['toRelativeCalendar']()):_0x5b3992[_0x59af('0xa')](_0x31f00d,_0x59af('0x4'))?(_0x17ae0a=_0x5b3992[_0x59af('0x8')](_0x59af('0x4'))[_0x59af('0xb')](),_0x3c53d1=_0x5b3992['weekdayLong']||''):_0x5b3992[_0x59af('0xa')](_0x31f00d,_0x59af('0x0'))?(_0x17ae0a=_0x5b3992[_0x59af('0x8')](_0x59af('0x6'))[_0x59af('0xb')](),_0x3c53d1=_0x5b3992[_0x59af('0x9')]||''):(_0x17ae0a=_0x5b3992[_0x59af('0x8')]('year')['toJSDate'](),_0x3c53d1=String(_0x5b3992[_0x59af('0x0')])),{'startDate':_0x17ae0a,'localizedPeriodName':_0x3c53d1};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2909=['Removed\x20by','isSuggestion','span','ck-revision-change','type','Suggested\x20by','Added\x20by','add','focus','setTemplate','_model','ck-revision-change__','author','ck-annotation','data','div'];(function(_0x2a728e,_0x290951){const _0x5bd050=function(_0xfbae04){while(--_0xfbae04){_0x2a728e['push'](_0x2a728e['shift']());}};_0x5bd050(++_0x290951);}(_0x2909,0x116));const _0x5bd0=function(_0x2a728e,_0x290951){_0x2a728e=_0x2a728e-0x0;let _0x5bd050=_0x2909[_0x2a728e];return _0x5bd050;};import{View as _0x3d46e3}from'ckeditor5/src/ui';import{getTranslation as _0xf4e68c}from'../../utils/common-translations';export default class Q extends _0x3d46e3{constructor(_0x5bd31b,_0x31a3e4){super(_0x5bd31b),this[_0x5bd0('0x4')]=_0x31a3e4,this['changeId']=_0x31a3e4['id'];const _0x3784fd=this['bindTemplate'],_0x139600=_0xf4e68c(_0x5bd31b,_0x31a3e4[_0x5bd0('0x8')][_0x5bd0('0xb')]?_0x5bd0('0xf'):_0x5bd0('0x1')==_0x31a3e4['type']?_0x5bd0('0x0'):_0x5bd0('0xa'));this['set'](_0x5bd0('0xe'),_0x31a3e4[_0x5bd0('0xe')]),this[_0x5bd0('0x3')]({'tag':_0x5bd0('0x9'),'attributes':{'class':[_0x5bd0('0x7'),_0x5bd0('0xd'),_0x3784fd['to']('type',_0x2eb091=>_0x5bd0('0x5')+_0x2eb091)],'tabindex':-0x1},'children':[{'tag':_0x5bd0('0xc'),'children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x139600}]},{'text':'\x20'+_0x31a3e4[_0x5bd0('0x6')]['name']}]}]});}[_0x5bd0('0x2')](){this['element'][_0x5bd0('0x2')]();}}
23
+ const _0x164b=['ck-revision-change__label','span','type','name','add','bindTemplate','ck-annotation','author','isSuggestion','_model','element','changeId','Removed\x20by','ck-revision-change','set','Added\x20by','setTemplate','focus'];(function(_0xd9736c,_0x164b17){const _0x1cc723=function(_0x38d65b){while(--_0x38d65b){_0xd9736c['push'](_0xd9736c['shift']());}};_0x1cc723(++_0x164b17);}(_0x164b,0x9d));const _0x1cc7=function(_0xd9736c,_0x164b17){_0xd9736c=_0xd9736c-0x0;let _0x1cc723=_0x164b[_0xd9736c];return _0x1cc723;};import{View as _0x456cda}from'ckeditor5/src/ui';import{getTranslation as _0x59acb2}from'../../utils/common-translations';export default class X extends _0x456cda{constructor(_0x4a7daa,_0x1eb887){super(_0x4a7daa),this[_0x1cc7('0xe')]=_0x1eb887,this[_0x1cc7('0x10')]=_0x1eb887['id'];const _0x1f5fd7=this[_0x1cc7('0xa')],_0x4a06aa=_0x59acb2(_0x4a7daa,_0x1eb887['data'][_0x1cc7('0xd')]?'Suggested\x20by':_0x1cc7('0x9')==_0x1eb887[_0x1cc7('0x7')]?_0x1cc7('0x2'):_0x1cc7('0x11'));this[_0x1cc7('0x1')](_0x1cc7('0x7'),_0x1eb887[_0x1cc7('0x7')]),this[_0x1cc7('0x3')]({'tag':'div','attributes':{'class':[_0x1cc7('0xb'),_0x1cc7('0x0'),_0x1f5fd7['to'](_0x1cc7('0x7'),_0x20a919=>'ck-revision-change__'+_0x20a919)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':_0x1cc7('0x6'),'attributes':{'class':[_0x1cc7('0x5')]},'children':[{'text':_0x4a06aa}]},{'text':'\x20'+_0x1eb887[_0x1cc7('0xc')][_0x1cc7('0x8')]}]}]});}[_0x1cc7('0x4')](){this[_0x1cc7('0xf')][_0x1cc7('0x4')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x9eca=['numberOfChanges','NUMBER_OF_CHANGES','ck-hidden','currentChangeNumber','execute','set','ck-revision-history-ui','span','bind','isEnabled','ck-revision-history-ui__changes-navigation__wrapper','ck-revision-history-ui__changes-navigation__label','isForwardNavigationEnabled','_isStatusLabelVisible','_statusText','bindTemplate','Total','ck-revision-history-ui__changes-navigation','isReady','No\x20changes','X_OF_Y_CHANGES','EDIT_X_OF_Y_REVISIONS','forward','isBackwardNavigationEnabled','Loading...','div','Show\x20previous\x20change','isNavigationMode','fire','ck-revision-history-ui__changes-navigation__navigation'];(function(_0x2898ee,_0x9eca4b){const _0x54e464=function(_0x4ff870){while(--_0x4ff870){_0x2898ee['push'](_0x2898ee['shift']());}};_0x54e464(++_0x9eca4b);}(_0x9eca,0x10e));const _0x54e4=function(_0x2898ee,_0x9eca4b){_0x2898ee=_0x2898ee-0x0;let _0x54e464=_0x9eca[_0x2898ee];return _0x54e464;};import{View as _0x3a1350,ButtonView as _0x273738,ToolbarSeparatorView as _0xc4960b}from'ckeditor5/src/ui';import{getTranslation as _0xaf29f6}from'../../utils/common-translations';import _0x1f08db from'../../../theme/icons/arrow-up.svg';import _0x2d6724 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x3a1350{constructor(_0x34eacf){super(_0x34eacf);const _0x2a8ad1=this[_0x54e4('0xf')],_0x10bbcb=new _0x273738(_0x34eacf),_0x4eea43=new _0x273738(_0x34eacf);this[_0x54e4('0x5')](_0x54e4('0x1b'),!0x1),this[_0x54e4('0x5')](_0x54e4('0x12'),!0x1),this[_0x54e4('0x5')](_0x54e4('0x3'),0x0),this[_0x54e4('0x5')](_0x54e4('0x0'),0x0),this[_0x54e4('0x5')](_0x54e4('0xc'),!0x1),this['set'](_0x54e4('0x17'),!0x1),this[_0x54e4('0x8')](_0x54e4('0xd'))['to'](this,_0x54e4('0x12'),this,_0x54e4('0x0'),(_0x2c1208,_0x367ead)=>_0x2c1208&&_0x367ead>0x0),this[_0x54e4('0x8')](_0x54e4('0xe'))['to'](this,_0x54e4('0x12'),this,_0x54e4('0x3'),this,'numberOfChanges',this,_0x54e4('0x1b'),(_0x4388f1,_0x1daca2,_0x35101d,_0x2dabe0)=>{if(!_0x4388f1)return _0xaf29f6(_0x34eacf,_0x54e4('0x18'));if(!_0x35101d)return _0xaf29f6(_0x34eacf,_0x54e4('0x13'));const _0x586e8b=_0xaf29f6(_0x34eacf,_0x54e4('0x1'),_0x35101d);return _0x2dabe0?_0xaf29f6(_0x34eacf,_0x54e4('0x14'),[_0x1daca2+0x1,_0x35101d]):_0x586e8b;}),_0x10bbcb[_0x54e4('0x5')]({'label':_0xaf29f6(_0x34eacf,_0x54e4('0x1a')),'tooltip':!0x0,'icon':_0x1f08db}),_0x4eea43[_0x54e4('0x5')]({'label':_0xaf29f6(_0x34eacf,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2d6724}),_0x10bbcb[_0x54e4('0x8')](_0x54e4('0x9'))['to'](this,_0x54e4('0x17')),_0x4eea43['bind']('isEnabled')['to'](this,_0x54e4('0xc')),_0x10bbcb['on'](_0x54e4('0x4'),()=>this[_0x54e4('0x1c')](_0x54e4('0x4'),'backward')),_0x4eea43['on'](_0x54e4('0x4'),()=>this[_0x54e4('0x1c')]('execute',_0x54e4('0x16'))),this['setTemplate']({'tag':_0x54e4('0x19'),'attributes':{'class':['ck',_0x54e4('0x6'),_0x54e4('0x11')]},'children':[{'tag':'span','attributes':{'class':[_0x54e4('0xa')]},'children':[{'tag':_0x54e4('0x7'),'attributes':{'class':[_0x54e4('0xb'),_0x2a8ad1['if'](_0x54e4('0xd'),_0x54e4('0x2'),_0x4c1c53=>!_0x4c1c53)]},'children':[{'text':_0x2a8ad1['to'](_0x54e4('0x1b'),_0x3a3dca=>_0x3a3dca?_0xaf29f6(_0x34eacf,_0x54e4('0x15'))+':\x20':_0xaf29f6(_0x34eacf,_0x54e4('0x10'))+':\x20')}]},{'text':_0x2a8ad1['to']('_statusText')}]},new _0xc4960b(),{'tag':_0x54e4('0x19'),'attributes':{'class':[_0x54e4('0x1d')]},'children':[_0x10bbcb,_0x4eea43]}]});}}
23
+ const _0xd57a=['backward','No\x20changes','execute','fire','Show\x20next\x20change','set','EDIT_X_OF_Y_REVISIONS','numberOfChanges','_statusText','forward','isEnabled','ck-revision-history-ui__changes-navigation__label','ck-revision-history-ui__changes-navigation__navigation','ck-hidden','isBackwardNavigationEnabled','isNavigationMode','bind','isReady','X_OF_Y_CHANGES','div','Loading...','bindTemplate','currentChangeNumber','Show\x20previous\x20change','ck-revision-history-ui__changes-navigation','ck-revision-history-ui__changes-navigation__wrapper','setTemplate','ck-revision-history-ui','_isStatusLabelVisible','Total','isForwardNavigationEnabled'];(function(_0x1302b3,_0xd57a96){const _0x54c43b=function(_0x45d2ee){while(--_0x45d2ee){_0x1302b3['push'](_0x1302b3['shift']());}};_0x54c43b(++_0xd57a96);}(_0xd57a,0xb3));const _0x54c4=function(_0x1302b3,_0xd57a96){_0x1302b3=_0x1302b3-0x0;let _0x54c43b=_0xd57a[_0x1302b3];return _0x54c43b;};import{View as _0x27a5eb,ButtonView as _0x593187,ToolbarSeparatorView as _0x4d8492}from'ckeditor5/src/ui';import{getTranslation as _0xff10e}from'../../utils/common-translations';import _0x1585d from'../../../theme/icons/arrow-up.svg';import _0x1030b9 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x27a5eb{constructor(_0x5e9d8b){super(_0x5e9d8b);const _0xc13f05=this[_0x54c4('0x1c')],_0x3bb4af=new _0x593187(_0x5e9d8b),_0xac8ea1=new _0x593187(_0x5e9d8b);this[_0x54c4('0xc')](_0x54c4('0x16'),!0x1),this['set'](_0x54c4('0x18'),!0x1),this[_0x54c4('0xc')]('currentChangeNumber',0x0),this[_0x54c4('0xc')](_0x54c4('0xe'),0x0),this['set'](_0x54c4('0x6'),!0x1),this[_0x54c4('0xc')](_0x54c4('0x15'),!0x1),this['bind'](_0x54c4('0x4'))['to'](this,_0x54c4('0x18'),this,_0x54c4('0xe'),(_0x4f35c9,_0x5498f2)=>_0x4f35c9&&_0x5498f2>0x0),this['bind'](_0x54c4('0xf'))['to'](this,_0x54c4('0x18'),this,_0x54c4('0x1d'),this,'numberOfChanges',this,_0x54c4('0x16'),(_0x3f76fc,_0x318d42,_0x392da9,_0x12f7d0)=>{if(!_0x3f76fc)return _0xff10e(_0x5e9d8b,_0x54c4('0x1b'));if(!_0x392da9)return _0xff10e(_0x5e9d8b,_0x54c4('0x8'));const _0x57a244=_0xff10e(_0x5e9d8b,'NUMBER_OF_CHANGES',_0x392da9);return _0x12f7d0?_0xff10e(_0x5e9d8b,_0x54c4('0x19'),[_0x318d42+0x1,_0x392da9]):_0x57a244;}),_0x3bb4af[_0x54c4('0xc')]({'label':_0xff10e(_0x5e9d8b,_0x54c4('0x1e')),'tooltip':!0x0,'icon':_0x1585d}),_0xac8ea1[_0x54c4('0xc')]({'label':_0xff10e(_0x5e9d8b,_0x54c4('0xb')),'tooltip':!0x0,'icon':_0x1030b9}),_0x3bb4af[_0x54c4('0x17')](_0x54c4('0x11'))['to'](this,_0x54c4('0x15')),_0xac8ea1[_0x54c4('0x17')](_0x54c4('0x11'))['to'](this,_0x54c4('0x6')),_0x3bb4af['on'](_0x54c4('0x9'),()=>this[_0x54c4('0xa')](_0x54c4('0x9'),_0x54c4('0x7'))),_0xac8ea1['on'](_0x54c4('0x9'),()=>this['fire'](_0x54c4('0x9'),_0x54c4('0x10'))),this[_0x54c4('0x2')]({'tag':_0x54c4('0x1a'),'attributes':{'class':['ck',_0x54c4('0x3'),_0x54c4('0x0')]},'children':[{'tag':'span','attributes':{'class':[_0x54c4('0x1')]},'children':[{'tag':'span','attributes':{'class':[_0x54c4('0x12'),_0xc13f05['if'](_0x54c4('0x4'),_0x54c4('0x14'),_0x5b297b=>!_0x5b297b)]},'children':[{'text':_0xc13f05['to'](_0x54c4('0x16'),_0x5b3aa5=>_0x5b3aa5?_0xff10e(_0x5e9d8b,_0x54c4('0xd'))+':\x20':_0xff10e(_0x5e9d8b,_0x54c4('0x5'))+':\x20')}]},{'text':_0xc13f05['to']('_statusText')}]},new _0x4d8492(),{'tag':'div','attributes':{'class':[_0x54c4('0x13')]},'children':[_0x3bb4af,_0xac8ea1]}]});}}
@@ -10,7 +10,7 @@ export default class RevisionViewerLoadingOverlay extends Plugin {
10
10
  /**
11
11
  * @inheritDoc
12
12
  */
13
- static get pluginName(): 'RevisionViewerLoadingOverlay';
13
+ static get pluginName(): "RevisionViewerLoadingOverlay";
14
14
  /**
15
15
  * TODO
16
16
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4011=['document','editor','removeClass','view','editing','roots','change','show','addClass','RevisionViewerLoadingOverlay','ck-editor__editable__loading-overlay','pluginName'];(function(_0x112163,_0x40119b){const _0x45dddd=function(_0x560d71){while(--_0x560d71){_0x112163['push'](_0x112163['shift']());}};_0x45dddd(++_0x40119b);}(_0x4011,0xab));const _0x45dd=function(_0x112163,_0x40119b){_0x112163=_0x112163-0x0;let _0x45dddd=_0x4011[_0x112163];return _0x45dddd;};import{Plugin as _0x661059}from'ckeditor5/src/core';const oe=_0x45dd('0x7');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x661059{static get[_0x45dd('0x8')](){return _0x45dd('0x6');}[_0x45dd('0x4')](){const _0x447da4=this['editor'][_0x45dd('0x1')][_0x45dd('0x0')];_0x447da4[_0x45dd('0x3')](_0x4d7f64=>{for(const _0x5a8198 of _0x447da4[_0x45dd('0x9')][_0x45dd('0x2')])_0x4d7f64[_0x45dd('0x5')](oe,_0x5a8198);});}['hide'](){const _0x1132b3=this[_0x45dd('0xa')][_0x45dd('0x1')]['view'];_0x1132b3[_0x45dd('0x3')](_0x53434c=>{for(const _0x19ebcf of _0x1132b3['document'][_0x45dd('0x2')])_0x53434c[_0x45dd('0xb')](oe,_0x19ebcf);});}}
23
+ const _0x2c2d=['show','document','roots','change','editor','pluginName','removeClass','editing','ck-editor__editable__loading-overlay'];(function(_0x11c074,_0x2c2d61){const _0x2f76e0=function(_0x34c8e7){while(--_0x34c8e7){_0x11c074['push'](_0x11c074['shift']());}};_0x2f76e0(++_0x2c2d61);}(_0x2c2d,0xae));const _0x2f76=function(_0x11c074,_0x2c2d61){_0x11c074=_0x11c074-0x0;let _0x2f76e0=_0x2c2d[_0x11c074];return _0x2f76e0;};import{Plugin as _0xc666d8}from'ckeditor5/src/core';const oe=_0x2f76('0x5');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0xc666d8{static get[_0x2f76('0x2')](){return'RevisionViewerLoadingOverlay';}[_0x2f76('0x6')](){const _0x5b2b7c=this[_0x2f76('0x1')][_0x2f76('0x4')]['view'];_0x5b2b7c['change'](_0x4def67=>{for(const _0x486b50 of _0x5b2b7c[_0x2f76('0x7')][_0x2f76('0x8')])_0x4def67['addClass'](oe,_0x486b50);});}['hide'](){const _0xd69a26=this[_0x2f76('0x1')][_0x2f76('0x4')]['view'];_0xd69a26[_0x2f76('0x0')](_0x290767=>{for(const _0x12ad42 of _0xd69a26[_0x2f76('0x7')]['roots'])_0x290767[_0x2f76('0x3')](oe,_0x12ad42);});}}
@@ -1,7 +1,9 @@
1
1
  /**
2
2
  * @module revision-history/ui/revisionviewer/revisionviewerui
3
3
  */
4
- import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ import RevisionViewer from './../../revisionviewer';
6
+ import RevisionViewerLoadingOverlay from './revisionviewerloadingoverlay';
5
7
  import '../../../theme/revisionviewer.css';
6
8
  /**
7
9
  * TODO
@@ -10,11 +12,11 @@ export default class RevisionViewerUI extends Plugin {
10
12
  /**
11
13
  * @inheritDoc
12
14
  */
13
- static get pluginName(): 'RevisionViewerUI';
15
+ static get pluginName(): "RevisionViewerUI";
14
16
  /**
15
17
  * @inheritDoc
16
18
  */
17
- static get requires(): PluginDependencies;
19
+ static get requires(): readonly [typeof RevisionViewer, typeof RevisionViewerLoadingOverlay];
18
20
  /**
19
21
  * @inheritDoc
20
22
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x35e2=['currentChangeNumber','isReady','listenTo','commands','isForwardNavigationEnabled','closeRevisionViewerCallback','revisionHistory','set','restoreRevision','numberOfChanges','componentFactory','plugins','hide','showNextChange','Restore\x20this\x20revision','get','execute','changesNavigation','requires','show','forward','isNavigationMode','ck-revision-history-ui__back-to-editing','isEnabled','showPreviousChange','bind','add','exitToEditing'];(function(_0xaf2fae,_0x35e20e){const _0x3d828f=function(_0x2cf24b){while(--_0x2cf24b){_0xaf2fae['push'](_0xaf2fae['shift']());}};_0x3d828f(++_0x35e20e);}(_0x35e2,0x92));const _0x3d82=function(_0xaf2fae,_0x35e20e){_0xaf2fae=_0xaf2fae-0x0;let _0x3d828f=_0x35e2[_0xaf2fae];return _0x3d828f;};import{Plugin as _0xcc1cf8}from'ckeditor5/src/core';import{ButtonView as _0xe37a73}from'ckeditor5/src/ui';import _0x5148f3 from'./changesnavigationview';import _0xc04be5 from'./../../revisionviewer';import _0x472a8f from'./revisionviewerloadingoverlay';import{getTranslation as _0x28de80}from'../../utils/common-translations';import _0x4207bc from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class y extends _0xcc1cf8{static get['pluginName'](){return'RevisionViewerUI';}static get[_0x3d82('0xc')](){return[_0xc04be5,_0x472a8f];}['init'](){const _0x38aa8e=this['editor'],_0x2a0933=_0x38aa8e[_0x3d82('0x5')][_0x3d82('0x9')](_0xc04be5),_0x2927ba=_0x38aa8e[_0x3d82('0x5')][_0x3d82('0x9')](_0x472a8f);_0x38aa8e['ui'][_0x3d82('0x4')][_0x3d82('0x14')](_0x3d82('0x15'),_0x3ada84=>{const _0x147ddb=new _0xe37a73(_0x3ada84);return _0x147ddb[_0x3d82('0x1')]({'label':_0x28de80(_0x3ada84,'Back\x20to\x20editing'),'icon':_0x4207bc,'withText':!0x0,'tooltip':!0x0,'class':_0x3d82('0x10')}),this['listenTo'](_0x147ddb,_0x3d82('0xa'),()=>{_0x38aa8e['config']['get'](_0x3d82('0x0'))[_0x3d82('0x1b')]();}),_0x147ddb;}),_0x38aa8e['ui'][_0x3d82('0x4')][_0x3d82('0x14')](_0x3d82('0x2'),_0xe832a2=>{const _0x10ec56=new _0xe37a73(_0xe832a2);return _0x10ec56['set']({'label':_0x28de80(_0xe832a2,_0x3d82('0x8')),'withText':!0x0,'tooltip':!0x0}),_0x10ec56[_0x3d82('0x13')](_0x3d82('0x11'))['to'](_0x38aa8e[_0x3d82('0x19')][_0x3d82('0x9')](_0x3d82('0x2'))),this[_0x3d82('0x18')](_0x10ec56,_0x3d82('0xa'),()=>_0x38aa8e[_0x3d82('0xa')]('restoreRevision')),_0x10ec56;}),_0x38aa8e['ui'][_0x3d82('0x4')][_0x3d82('0x14')](_0x3d82('0xb'),_0x3c3581=>{const _0x2a2539=new _0x5148f3(_0x3c3581),_0x15e9ac=_0x38aa8e['commands'][_0x3d82('0x9')](_0x3d82('0x12')),_0x2cfbc1=_0x38aa8e['commands'][_0x3d82('0x9')](_0x3d82('0x7'));return _0x2a2539[_0x3d82('0x13')]('isBackwardNavigationEnabled')['to'](_0x15e9ac,_0x3d82('0x11')),_0x2a2539[_0x3d82('0x13')](_0x3d82('0x1a'))['to'](_0x2cfbc1,_0x3d82('0x11')),_0x2a2539[_0x3d82('0x13')](_0x3d82('0x17'),_0x3d82('0x16'),_0x3d82('0x3'),_0x3d82('0xf'))['to'](_0x2a0933),this[_0x3d82('0x18')](_0x2a2539,_0x3d82('0xa'),(_0x34970e,_0x400fa4)=>{_0x38aa8e[_0x3d82('0xa')](_0x3d82('0xe')===_0x400fa4?_0x3d82('0x7'):'showPreviousChange');}),_0x2a2539;}),_0x2927ba[_0x3d82('0xd')](),_0x2a0933['on']('change:isReady',(_0x805f83,_0x58349e,_0x363559)=>{_0x363559?_0x2927ba[_0x3d82('0x6')]():_0x2927ba['show']();});}}
23
+ const _0x338c=['isEnabled','closeRevisionViewerCallback','numberOfChanges','currentChangeNumber','execute','forward','listenTo','pluginName','config','restoreRevision','change:isReady','showPreviousChange','revisionHistory','plugins','isNavigationMode','show','add','ck-revision-history-ui__back-to-editing','bind','init','get','hide','componentFactory','requires','RevisionViewerUI','showNextChange','changesNavigation','Restore\x20this\x20revision','set','isForwardNavigationEnabled','isReady','exitToEditing','commands'];(function(_0x50f936,_0x338ce6){const _0x3938c3=function(_0x4b6aaa){while(--_0x4b6aaa){_0x50f936['push'](_0x50f936['shift']());}};_0x3938c3(++_0x338ce6);}(_0x338c,0x1b8));const _0x3938=function(_0x50f936,_0x338ce6){_0x50f936=_0x50f936-0x0;let _0x3938c3=_0x338c[_0x50f936];return _0x3938c3;};import{Plugin as _0x34aaef}from'ckeditor5/src/core';import{ButtonView as _0xcf447}from'ckeditor5/src/ui';import _0x4b7e73 from'./changesnavigationview';import _0x719f19 from'./../../revisionviewer';import _0x3560ed from'./revisionviewerloadingoverlay';import{getTranslation as _0x19c7a1}from'../../utils/common-translations';import _0x4ee20d from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class w extends _0x34aaef{static get[_0x3938('0x1d')](){return _0x3938('0xd');}static get[_0x3938('0xc')](){return[_0x719f19,_0x3560ed];}[_0x3938('0x8')](){const _0x2ce9a8=this['editor'],_0x3e8a45=_0x2ce9a8[_0x3938('0x2')][_0x3938('0x9')](_0x719f19),_0x1b0a1d=_0x2ce9a8['plugins']['get'](_0x3560ed);_0x2ce9a8['ui']['componentFactory'][_0x3938('0x5')](_0x3938('0x14'),_0x5e2e91=>{const _0x3ac564=new _0xcf447(_0x5e2e91);return _0x3ac564[_0x3938('0x11')]({'label':_0x19c7a1(_0x5e2e91,'Back\x20to\x20editing'),'icon':_0x4ee20d,'withText':!0x0,'tooltip':!0x0,'class':_0x3938('0x6')}),this[_0x3938('0x1c')](_0x3ac564,_0x3938('0x1a'),()=>{_0x2ce9a8[_0x3938('0x1e')][_0x3938('0x9')](_0x3938('0x1'))[_0x3938('0x17')]();}),_0x3ac564;}),_0x2ce9a8['ui'][_0x3938('0xb')][_0x3938('0x5')](_0x3938('0x1f'),_0x253804=>{const _0x18bbac=new _0xcf447(_0x253804);return _0x18bbac[_0x3938('0x11')]({'label':_0x19c7a1(_0x253804,_0x3938('0x10')),'withText':!0x0,'tooltip':!0x0}),_0x18bbac['bind']('isEnabled')['to'](_0x2ce9a8['commands'][_0x3938('0x9')]('restoreRevision')),this[_0x3938('0x1c')](_0x18bbac,_0x3938('0x1a'),()=>_0x2ce9a8[_0x3938('0x1a')]('restoreRevision')),_0x18bbac;}),_0x2ce9a8['ui'][_0x3938('0xb')][_0x3938('0x5')](_0x3938('0xf'),_0x593b30=>{const _0x467018=new _0x4b7e73(_0x593b30),_0x36f96e=_0x2ce9a8[_0x3938('0x15')][_0x3938('0x9')](_0x3938('0x0')),_0x376689=_0x2ce9a8['commands'][_0x3938('0x9')](_0x3938('0xe'));return _0x467018[_0x3938('0x7')]('isBackwardNavigationEnabled')['to'](_0x36f96e,_0x3938('0x16')),_0x467018[_0x3938('0x7')](_0x3938('0x12'))['to'](_0x376689,'isEnabled'),_0x467018[_0x3938('0x7')](_0x3938('0x13'),_0x3938('0x19'),_0x3938('0x18'),_0x3938('0x3'))['to'](_0x3e8a45),this[_0x3938('0x1c')](_0x467018,'execute',(_0x3adafc,_0x5d703b)=>{_0x2ce9a8['execute'](_0x3938('0x1b')===_0x5d703b?_0x3938('0xe'):_0x3938('0x0'));}),_0x467018;}),_0x1b0a1d[_0x3938('0x4')](),_0x3e8a45['on'](_0x3938('0x20'),(_0x3a7f3a,_0x154898,_0x1f8c6d)=>{_0x1f8c6d?_0x1b0a1d[_0x3938('0xa')]():_0x1b0a1d[_0x3938('0x4')]();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x5ea8cd,_0x414ae9,_0x206bba){const t=_0x5ea8cd['t'];switch(_0x414ae9){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'},_0x206bba);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x206bba);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 _0x414ae9;}}
23
+ export function getTranslation(_0x34c210,_0x4e6cb4,_0x14e6a6){const t=_0x34c210['t'];switch(_0x4e6cb4){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'},_0x14e6a6);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x14e6a6);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 _0x4e6cb4;}}