@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231215.0 → 0.0.0-nightly-20231216.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 (58) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +7 -6
  3. package/src/augmentation.d.ts +1 -1
  4. package/src/changeitem.d.ts +3 -3
  5. package/src/changeitem.js +1 -1
  6. package/src/editor/revisionviewereditor.d.ts +3 -3
  7. package/src/editor/revisionviewereditor.js +1 -1
  8. package/src/editor/revisionviewereditorui.d.ts +3 -3
  9. package/src/editor/revisionviewereditorui.js +1 -1
  10. package/src/editor/revisionviewereditoruiview.d.ts +3 -3
  11. package/src/editor/revisionviewereditoruiview.js +1 -1
  12. package/src/index.d.ts +11 -11
  13. package/src/index.js +1 -1
  14. package/src/revision.d.ts +3 -3
  15. package/src/revision.js +1 -1
  16. package/src/revisiondiff.d.ts +3 -3
  17. package/src/revisiondiff.js +1 -1
  18. package/src/revisionhistory.d.ts +6 -6
  19. package/src/revisionhistory.js +1 -1
  20. package/src/revisionhistoryadapter.d.ts +1 -1
  21. package/src/revisionsrepository.d.ts +3 -3
  22. package/src/revisionsrepository.js +1 -1
  23. package/src/revisiontracker.d.ts +5 -5
  24. package/src/revisiontracker.js +1 -1
  25. package/src/revisionviewer.js +1 -1
  26. package/src/ui/revision/createrevisionactionsdropdown.d.ts +1 -1
  27. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  28. package/src/ui/revision/revisionauthorview.js +1 -1
  29. package/src/ui/revision/revisionnameview.js +1 -1
  30. package/src/ui/revision/revisionview.d.ts +6 -6
  31. package/src/ui/revision/revisionview.js +1 -1
  32. package/src/ui/revision/subrevisioncollapserview.d.ts +2 -2
  33. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  34. package/src/ui/revision/subrevisionview.d.ts +3 -3
  35. package/src/ui/revision/subrevisionview.js +1 -1
  36. package/src/ui/revision/utils.js +1 -1
  37. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +2 -2
  38. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  39. package/src/ui/revisionhistory/revisionhistoryui.d.ts +2 -2
  40. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  41. package/src/ui/revisionssidebar/revisionssidebar.d.ts +3 -3
  42. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  43. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  44. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +5 -5
  45. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  46. package/src/ui/revisionssidebar/revisionssidebarview.d.ts +6 -6
  47. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  48. package/src/ui/revisionssidebar/utils.js +1 -1
  49. package/src/ui/revisionviewer/changedetailsview.d.ts +3 -3
  50. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  51. package/src/ui/revisionviewer/changesnavigationview.d.ts +2 -2
  52. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  53. package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +1 -1
  54. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  55. package/src/ui/revisionviewer/revisionviewerui.d.ts +3 -3
  56. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  57. package/src/utils/common-translations.d.ts +1 -1
  58. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x13d2=['toLocaleTimeString','numeric'];(function(_0x316171,_0x13d204){var _0xc0da16=function(_0x513e79){while(--_0x513e79){_0x316171['push'](_0x316171['shift']());}};_0xc0da16(++_0x13d204);}(_0x13d2,0x133));var _0xc0da=function(_0x316171,_0x13d204){_0x316171=_0x316171-0x0;var _0xc0da16=_0x13d2[_0x316171];return _0xc0da16;};export function dateToPrettyFormat(_0x514b93,_0x40ec31){return _0x40ec31['toLocaleDateString'](_0x514b93,{'month':'long','day':_0xc0da('0x0')})+',\x20'+_0x40ec31[_0xc0da('0x1')](_0x514b93,{'hour':_0xc0da('0x0'),'minute':_0xc0da('0x0')});}
23
+ var _0x5b9e=['toLocaleTimeString','numeric','toLocaleDateString'];(function(_0x3c6f82,_0x5b9ed6){var _0x489a5e=function(_0x314eb3){while(--_0x314eb3){_0x3c6f82['push'](_0x3c6f82['shift']());}};_0x489a5e(++_0x5b9ed6);}(_0x5b9e,0x162));var _0x489a=function(_0x3c6f82,_0x5b9ed6){_0x3c6f82=_0x3c6f82-0x0;var _0x489a5e=_0x5b9e[_0x3c6f82];return _0x489a5e;};export function dateToPrettyFormat(_0x2cc3b0,_0x1a87d8){return _0x1a87d8[_0x489a('0x2')](_0x2cc3b0,{'month':'long','day':_0x489a('0x1')})+',\x20'+_0x1a87d8[_0x489a('0x0')](_0x2cc3b0,{'hour':'numeric','minute':_0x489a('0x1')});}
@@ -2,8 +2,8 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import { ButtonView, LabeledFieldView, View, type InputTextView } from 'ckeditor5/src/ui';
6
- import { type BaseEvent, FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils';
5
+ import { ButtonView, LabeledFieldView, View, type InputTextView } from 'ckeditor5/src/ui.js';
6
+ import { type BaseEvent, FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
7
7
  import '../../../theme/revisionhistorysaverevisionform.css';
8
8
  import '@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';
9
9
  /**
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4564=['render','ck-button-save','fieldView','type','keystrokes','tab','stopPropagation','Save','check','set','_focusCycler','saveButtonView','ck-revision-history-save-revision-form','forEach','label','focusFirst','execute','Cancel','focusTracker','trim','reset','extendTemplate','_createButton','submit','element','_createRevisionNameInput','revisionNameInputView','Name\x20of\x20the\x20revision\x20(optional)','cancelButtonView','ck-button-cancel','arrowleft','revisionName','revisionNameInputValue','locale','add','cancel','input','_focusables','value','delegate'];(function(_0x8a7dc7,_0x456428){const _0x35a4be=function(_0x583e65){while(--_0x583e65){_0x8a7dc7['push'](_0x8a7dc7['shift']());}};_0x35a4be(++_0x456428);}(_0x4564,0x88));const _0x35a4=function(_0x8a7dc7,_0x456428){_0x8a7dc7=_0x8a7dc7-0x0;let _0x35a4be=_0x4564[_0x8a7dc7];return _0x35a4be;};import{icons as _0x120f65}from'ckeditor5/src/core';import{ButtonView as _0x1f181a,FocusCycler as _0x2732d9,LabeledFieldView as _0x22e875,View as _0x3213ac,ViewCollection as _0x40dce7,createLabeledInputText as _0x39c260,injectCssTransitionDisabler as _0x380e84,submitHandler as _0x2f385e}from'ckeditor5/src/ui';import{FocusTracker as _0x2f03a4,KeystrokeHandler as _0x5527d5}from'ckeditor5/src/utils';import{getTranslation as _0x53127a}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x3213ac{constructor(_0x48cc47){super(_0x48cc47),this['focusTracker']=new _0x2f03a4(),this['keystrokes']=new _0x5527d5(),this[_0x35a4('0x21')](_0x35a4('0x10'),''),this['revisionNameInputView']=this['_createRevisionNameInput'](),this[_0x35a4('0x23')]=this[_0x35a4('0x6')](_0x53127a(_0x48cc47,_0x35a4('0x1f')),_0x120f65[_0x35a4('0x20')],_0x35a4('0x19')),this[_0x35a4('0x23')][_0x35a4('0x1b')]=_0x35a4('0x7'),this['cancelButtonView']=this[_0x35a4('0x6')](_0x53127a(_0x48cc47,_0x35a4('0x1')),_0x120f65[_0x35a4('0x13')],_0x35a4('0xd'),_0x35a4('0x13')),this[_0x35a4('0x15')]=new _0x40dce7(),this[_0x35a4('0x22')]=new _0x2732d9({'focusables':this[_0x35a4('0x15')],'focusTracker':this['focusTracker'],'keystrokeHandler':this[_0x35a4('0x1c')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0x35a4('0x1d')}}),this['setTemplate']({'tag':'form','attributes':{'class':['ck',_0x35a4('0x24'),'ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView'],this['saveButtonView'],this['cancelButtonView']]}),_0x380e84(this);}[_0x35a4('0x18')](){super[_0x35a4('0x18')](),_0x2f385e({'view':this}),([this['revisionNameInputView'],this[_0x35a4('0x23')],this[_0x35a4('0xc')]][_0x35a4('0x25')](_0x3bd32c=>{this['_focusables'][_0x35a4('0x12')](_0x3bd32c),this[_0x35a4('0x2')]['add'](_0x3bd32c[_0x35a4('0x8')]);}),this[_0x35a4('0x1c')]['listenTo'](this['element']));const _0x3aa7f5=_0xce2db7=>_0xce2db7[_0x35a4('0x1e')]();this[_0x35a4('0x1c')][_0x35a4('0x21')]('arrowright',_0x3aa7f5),this[_0x35a4('0x1c')]['set'](_0x35a4('0xe'),_0x3aa7f5),this['keystrokes'][_0x35a4('0x21')]('arrowup',_0x3aa7f5),this['keystrokes'][_0x35a4('0x21')]('arrowdown',_0x3aa7f5);}['focus'](){this[_0x35a4('0x22')][_0x35a4('0x27')]();}get[_0x35a4('0xf')](){return this[_0x35a4('0xa')][_0x35a4('0x1a')][_0x35a4('0x8')][_0x35a4('0x16')][_0x35a4('0x3')]();}set[_0x35a4('0xf')](_0x5d5498){this[_0x35a4('0xa')]['fieldView']['element']['value']=_0x5d5498[_0x35a4('0x3')]();}[_0x35a4('0x4')](){this[_0x35a4('0xa')][_0x35a4('0x1a')][_0x35a4('0x8')]['value']='';}[_0x35a4('0x9')](){const _0x12f0c8=new _0x22e875(this[_0x35a4('0x11')],_0x39c260),_0x2bc66b=_0x12f0c8[_0x35a4('0x1a')];return _0x2bc66b[_0x35a4('0x5')]({'attributes':{'maxlength':'220'}}),_0x12f0c8[_0x35a4('0x26')]=_0x53127a(this[_0x35a4('0x11')],_0x35a4('0xb')),_0x2bc66b['on'](_0x35a4('0x14'),()=>{this[_0x35a4('0x10')]=_0x2bc66b[_0x35a4('0x8')][_0x35a4('0x16')][_0x35a4('0x3')]();}),_0x12f0c8;}[_0x35a4('0x6')](_0x28c977,_0x5df990,_0x3f311e,_0x565c84){const _0x357a18=new _0x1f181a(this[_0x35a4('0x11')]);return _0x357a18[_0x35a4('0x21')]({'label':_0x28c977,'icon':_0x5df990,'tooltip':!0x0}),_0x357a18[_0x35a4('0x5')]({'attributes':{'class':_0x3f311e}}),_0x565c84&&_0x357a18[_0x35a4('0x17')](_0x35a4('0x0'))['to'](this,_0x565c84),_0x357a18;}}
23
+ const _0x2f77=['extendTemplate','revisionNameInputView','trim','ck-revision-history-save-revision-form','submit','value','_focusCycler','ck-button-cancel','focus','ck-button-save','saveButtonView','render','Name\x20of\x20the\x20revision\x20(optional)','fieldView','220','element','setTemplate','type','locale','ck-responsive-form','Save','arrowleft','revisionNameInputValue','_createRevisionNameInput','listenTo','arrowup','delegate','_createButton','arrowright','stopPropagation','focusTracker','add','focusFirst','_focusables','form','set','label','cancelButtonView','input','keystrokes','forEach'];(function(_0x1a5681,_0x2f7765){const _0x402f0c=function(_0x32afc0){while(--_0x32afc0){_0x1a5681['push'](_0x1a5681['shift']());}};_0x402f0c(++_0x2f7765);}(_0x2f77,0xd2));const _0x402f=function(_0x1a5681,_0x2f7765){_0x1a5681=_0x1a5681-0x0;let _0x402f0c=_0x2f77[_0x1a5681];return _0x402f0c;};import{icons as _0x4fc28d}from'ckeditor5/src/core.js';import{ButtonView as _0x20f604,FocusCycler as _0x5371e4,LabeledFieldView as _0x1bba57,View as _0x326f1a,ViewCollection as _0x39e372,createLabeledInputText as _0x1cf127,injectCssTransitionDisabler as _0x3f97cd,submitHandler as _0x2eefbc}from'ckeditor5/src/ui.js';import{FocusTracker as _0x192b44,KeystrokeHandler as _0x2e6a46}from'ckeditor5/src/utils.js';import{getTranslation as _0x2ac4bd}from'../../utils/common-translations.js';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x326f1a{constructor(_0x219b9b){super(_0x219b9b),this[_0x402f('0x19')]=new _0x192b44(),this[_0x402f('0x22')]=new _0x2e6a46(),this[_0x402f('0x1e')](_0x402f('0x11'),''),this[_0x402f('0x25')]=this[_0x402f('0x12')](),this[_0x402f('0x5')]=this[_0x402f('0x16')](_0x2ac4bd(_0x219b9b,_0x402f('0xf')),_0x4fc28d['check'],_0x402f('0x4')),this['saveButtonView'][_0x402f('0xc')]=_0x402f('0x28'),this[_0x402f('0x20')]=this[_0x402f('0x16')](_0x2ac4bd(_0x219b9b,'Cancel'),_0x4fc28d['cancel'],_0x402f('0x2'),'cancel'),this[_0x402f('0x1c')]=new _0x39e372(),this[_0x402f('0x1')]=new _0x5371e4({'focusables':this[_0x402f('0x1c')],'focusTracker':this[_0x402f('0x19')],'keystrokeHandler':this[_0x402f('0x22')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this[_0x402f('0xb')]({'tag':_0x402f('0x1d'),'attributes':{'class':['ck',_0x402f('0x27'),_0x402f('0xe')],'tabindex':'-1'},'children':[this['revisionNameInputView'],this[_0x402f('0x5')],this[_0x402f('0x20')]]}),_0x3f97cd(this);}[_0x402f('0x6')](){super[_0x402f('0x6')](),_0x2eefbc({'view':this}),([this['revisionNameInputView'],this[_0x402f('0x5')],this[_0x402f('0x20')]][_0x402f('0x23')](_0x5227c6=>{this[_0x402f('0x1c')][_0x402f('0x1a')](_0x5227c6),this[_0x402f('0x19')][_0x402f('0x1a')](_0x5227c6['element']);}),this[_0x402f('0x22')][_0x402f('0x13')](this[_0x402f('0xa')]));const _0x3cf574=_0xa59117=>_0xa59117[_0x402f('0x18')]();this[_0x402f('0x22')][_0x402f('0x1e')](_0x402f('0x17'),_0x3cf574),this[_0x402f('0x22')][_0x402f('0x1e')](_0x402f('0x10'),_0x3cf574),this[_0x402f('0x22')][_0x402f('0x1e')](_0x402f('0x14'),_0x3cf574),this[_0x402f('0x22')][_0x402f('0x1e')]('arrowdown',_0x3cf574);}[_0x402f('0x3')](){this['_focusCycler'][_0x402f('0x1b')]();}get['revisionName'](){return this[_0x402f('0x25')]['fieldView'][_0x402f('0xa')][_0x402f('0x0')][_0x402f('0x26')]();}set['revisionName'](_0x1cd167){this[_0x402f('0x25')][_0x402f('0x8')][_0x402f('0xa')][_0x402f('0x0')]=_0x1cd167[_0x402f('0x26')]();}['reset'](){this[_0x402f('0x25')][_0x402f('0x8')][_0x402f('0xa')][_0x402f('0x0')]='';}['_createRevisionNameInput'](){const _0x3ba858=new _0x1bba57(this[_0x402f('0xd')],_0x1cf127),_0x38851e=_0x3ba858[_0x402f('0x8')];return _0x38851e[_0x402f('0x24')]({'attributes':{'maxlength':_0x402f('0x9')}}),_0x3ba858[_0x402f('0x1f')]=_0x2ac4bd(this[_0x402f('0xd')],_0x402f('0x7')),_0x38851e['on'](_0x402f('0x21'),()=>{this[_0x402f('0x11')]=_0x38851e[_0x402f('0xa')][_0x402f('0x0')][_0x402f('0x26')]();}),_0x3ba858;}[_0x402f('0x16')](_0x3e5ba0,_0x382eab,_0x5a8c7d,_0xf52ffb){const _0x461e35=new _0x20f604(this[_0x402f('0xd')]);return _0x461e35['set']({'label':_0x3e5ba0,'icon':_0x382eab,'tooltip':!0x0}),_0x461e35[_0x402f('0x24')]({'attributes':{'class':_0x5a8c7d}}),_0xf52ffb&&_0x461e35[_0x402f('0x15')]('execute')['to'](this,_0xf52ffb),_0x461e35;}}
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module revision-history/ui/revisionhistory/revisionhistoryui
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import RevisionTracker from '../../revisiontracker';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import RevisionTracker from '../../revisiontracker.js';
10
10
  /**
11
11
  * TODO
12
12
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5270=['submit','view','items','Revision\x20history','history','get','revisionHistory','revisionName','isReadOnly','RevisionTracker','Save\x20current\x20revision','remove','cancel','plugins','reset','change:isOpen','requires','RevisionHistoryUI','render','showRevisionViewerCallback','isOpen','isEnabled','isReady','config','pluginName','focus','saveButtonView','execute','children','set','add','editing','bind','panelView'];(function(_0x4a9c8e,_0x52700b){const _0x35fabb=function(_0x320439){while(--_0x320439){_0x4a9c8e['push'](_0x4a9c8e['shift']());}};_0x35fabb(++_0x52700b);}(_0x5270,0x19d));const _0x35fa=function(_0x4a9c8e,_0x52700b){_0x4a9c8e=_0x4a9c8e-0x0;let _0x35fabb=_0x5270[_0x4a9c8e];return _0x35fabb;};import{Plugin as _0x1194f7,icons as _0x2e203d}from'ckeditor5/src/core';import{ListView as _0x40b32a,ListItemView as _0x3979f3,ButtonView as _0x56b28d,createDropdown as _0x4d6b7a}from'ckeditor5/src/ui';import _0x5ba1d7 from'../../revisiontracker';import _0x58b0c7 from'./revisionhistorysaverevisionformview';import{getTranslation as _0x25e89d}from'../../utils/common-translations';export default class u extends _0x1194f7{static get[_0x35fa('0x13')](){return _0x35fa('0xc');}static get[_0x35fa('0xb')](){return[_0x5ba1d7];}['init'](){const _0x23b44d=this['editor'],_0x446fc3=_0x23b44d[_0x35fa('0x8')][_0x35fa('0x0')](_0x35fa('0x4'));_0x23b44d['ui']['componentFactory'][_0x35fa('0x19')](_0x35fa('0x1'),_0x584995=>{const _0x2dbb1f=_0x4d6b7a(_0x584995),_0x5bfeb6=_0x2dbb1f[_0x35fa('0x1c')][_0x35fa('0x17')],_0x4a8dfc=new _0x40b32a(_0x584995),_0x483ea8=new _0x3979f3(_0x584995),_0x3afa6f=new _0x56b28d(_0x584995),_0x4a45b6=new _0x3979f3(_0x584995),_0x3bd5c4=new _0x56b28d(_0x584995),_0x2c7233=new _0x58b0c7(_0x584995);function _0x573bb5(){_0x5bfeb6['length']&&_0x5bfeb6['remove'](0x0),_0x5bfeb6[_0x35fa('0x19')](_0x4a8dfc);}function _0x105756(){_0x2dbb1f[_0x35fa('0xf')]=!0x1,_0x23b44d[_0x35fa('0x1a')][_0x35fa('0x1e')][_0x35fa('0x14')]();}return _0x2dbb1f['bind']('isEnabled')['to'](_0x446fc3,_0x35fa('0x11'),_0x446fc3,_0x35fa('0x10'),_0x23b44d,_0x35fa('0x3'),(_0x1ee493,_0x4d9079,_0x20e7f4)=>_0x1ee493&&_0x4d9079&&!_0x20e7f4),_0x2dbb1f['buttonView'][_0x35fa('0x18')]({'icon':_0x2e203d[_0x35fa('0x21')],'label':_0x25e89d(_0x584995,_0x35fa('0x20')),'tooltip':!0x0}),_0x3afa6f['set']({'label':_0x25e89d(_0x584995,_0x35fa('0x5')),'withText':!0x0}),_0x3afa6f[_0x35fa('0x1b')](_0x35fa('0x10'))['to'](_0x446fc3,_0x35fa('0x11'),_0x446fc3,_0x35fa('0x10'),_0x23b44d,_0x35fa('0x3'),(_0x2346fc,_0x42cb55,_0x19c914)=>_0x2346fc&&_0x42cb55&&!_0x19c914),_0x3afa6f['on'](_0x35fa('0x16'),()=>function(){_0x5bfeb6['length']&&_0x5bfeb6[_0x35fa('0x6')](0x0),(_0x2c7233[_0x35fa('0x9')](),_0x5bfeb6[_0x35fa('0x19')](_0x2c7233),_0x2c7233[_0x35fa('0x14')]());}()),_0x3bd5c4[_0x35fa('0x18')]({'label':_0x25e89d(_0x584995,'Open\x20revision\x20history'),'withText':!0x0}),_0x3bd5c4['bind'](_0x35fa('0x10'))['to'](_0x446fc3,'isReady',_0x23b44d,_0x35fa('0x3'),(_0x245f9e,_0x4edd49)=>_0x245f9e&&!_0x4edd49),_0x3bd5c4['on']('execute',()=>{_0x23b44d[_0x35fa('0x12')]['get']('revisionHistory')[_0x35fa('0xe')](),_0x105756();}),_0x483ea8['children']['add'](_0x3afa6f),_0x4a45b6[_0x35fa('0x17')][_0x35fa('0x19')](_0x3bd5c4),_0x4a8dfc[_0x35fa('0x1f')]['addMany']([_0x483ea8,_0x4a45b6]),_0x2dbb1f['on'](_0x35fa('0xa'),()=>_0x573bb5()),_0x2c7233[_0x35fa('0x15')][_0x35fa('0x1b')](_0x35fa('0x10'))['to'](_0x446fc3,_0x35fa('0x11'),_0x446fc3,_0x35fa('0x10'),_0x23b44d,_0x35fa('0x3'),(_0x8d35a0,_0x1f8d78,_0x2f2c3d)=>_0x8d35a0&&_0x1f8d78&&!_0x2f2c3d),_0x2c7233['on'](_0x35fa('0x1d'),()=>(_0x23b44d[_0x35fa('0x8')]['get'](_0x5ba1d7)['saveRevision']({'name':_0x2c7233[_0x35fa('0x2')]}),void _0x105756())),_0x2c7233['on'](_0x35fa('0x7'),()=>_0x573bb5()),_0x2c7233[_0x35fa('0xd')](),_0x573bb5(),_0x2dbb1f;});}}
23
+ const _0x6a89=['add','editing','componentFactory','execute','RevisionHistoryUI','config','requires','panelView','init','isReadOnly','Open\x20revision\x20history','length','cancel','isReady','submit','saveButtonView','isEnabled','bind','revisionHistory','reset','get','set','RevisionTracker','items','editor','render','children','saveRevision','remove','change:isOpen','plugins'];(function(_0x3895e1,_0x6a89cc){const _0x3d088d=function(_0x375555){while(--_0x375555){_0x3895e1['push'](_0x3895e1['shift']());}};_0x3d088d(++_0x6a89cc);}(_0x6a89,0x151));const _0x3d08=function(_0x3895e1,_0x6a89cc){_0x3895e1=_0x3895e1-0x0;let _0x3d088d=_0x6a89[_0x3895e1];return _0x3d088d;};import{Plugin as _0x2b2fef,icons as _0x11b208}from'ckeditor5/src/core.js';import{ListView as _0x362448,ListItemView as _0x438a71,ButtonView as _0x562f57,createDropdown as _0x2265aa}from'ckeditor5/src/ui.js';import _0x13987a from'../../revisiontracker.js';import _0x5c0f67 from'./revisionhistorysaverevisionformview.js';import{getTranslation as _0x730b02}from'../../utils/common-translations.js';export default class u extends _0x2b2fef{static get['pluginName'](){return _0x3d08('0x8');}static get[_0x3d08('0xa')](){return[_0x13987a];}[_0x3d08('0xc')](){const _0x40cc77=this[_0x3d08('0x1c')],_0x199154=_0x40cc77['plugins'][_0x3d08('0x18')](_0x3d08('0x1a'));_0x40cc77['ui'][_0x3d08('0x6')]['add']('revisionHistory',_0x458247=>{const _0x4c5596=_0x2265aa(_0x458247),_0x44121f=_0x4c5596[_0x3d08('0xb')][_0x3d08('0x1e')],_0x40ad9a=new _0x362448(_0x458247),_0x3138ba=new _0x438a71(_0x458247),_0x5f235c=new _0x562f57(_0x458247),_0x533dfa=new _0x438a71(_0x458247),_0x292b42=new _0x562f57(_0x458247),_0x3c0e32=new _0x5c0f67(_0x458247);function _0x327681(){_0x44121f[_0x3d08('0xf')]&&_0x44121f[_0x3d08('0x1')](0x0),_0x44121f[_0x3d08('0x4')](_0x40ad9a);}function _0x8d63d(){_0x4c5596['isOpen']=!0x1,_0x40cc77[_0x3d08('0x5')]['view']['focus']();}return _0x4c5596[_0x3d08('0x15')](_0x3d08('0x14'))['to'](_0x199154,_0x3d08('0x11'),_0x199154,_0x3d08('0x14'),_0x40cc77,'isReadOnly',(_0x291bf1,_0x1cdc9d,_0x21d97c)=>_0x291bf1&&_0x1cdc9d&&!_0x21d97c),_0x4c5596['buttonView'][_0x3d08('0x19')]({'icon':_0x11b208['history'],'label':_0x730b02(_0x458247,'Revision\x20history'),'tooltip':!0x0}),_0x5f235c[_0x3d08('0x19')]({'label':_0x730b02(_0x458247,'Save\x20current\x20revision'),'withText':!0x0}),_0x5f235c[_0x3d08('0x15')](_0x3d08('0x14'))['to'](_0x199154,'isReady',_0x199154,'isEnabled',_0x40cc77,_0x3d08('0xd'),(_0x4239dc,_0xc65805,_0x684c81)=>_0x4239dc&&_0xc65805&&!_0x684c81),_0x5f235c['on'](_0x3d08('0x7'),()=>function(){_0x44121f[_0x3d08('0xf')]&&_0x44121f['remove'](0x0),(_0x3c0e32[_0x3d08('0x17')](),_0x44121f[_0x3d08('0x4')](_0x3c0e32),_0x3c0e32['focus']());}()),_0x292b42[_0x3d08('0x19')]({'label':_0x730b02(_0x458247,_0x3d08('0xe')),'withText':!0x0}),_0x292b42[_0x3d08('0x15')](_0x3d08('0x14'))['to'](_0x199154,_0x3d08('0x11'),_0x40cc77,'isReadOnly',(_0x5d362c,_0x35eb78)=>_0x5d362c&&!_0x35eb78),_0x292b42['on']('execute',()=>{_0x40cc77[_0x3d08('0x9')][_0x3d08('0x18')](_0x3d08('0x16'))['showRevisionViewerCallback'](),_0x8d63d();}),_0x3138ba[_0x3d08('0x1e')]['add'](_0x5f235c),_0x533dfa[_0x3d08('0x1e')][_0x3d08('0x4')](_0x292b42),_0x40ad9a[_0x3d08('0x1b')]['addMany']([_0x3138ba,_0x533dfa]),_0x4c5596['on'](_0x3d08('0x2'),()=>_0x327681()),_0x3c0e32[_0x3d08('0x13')]['bind'](_0x3d08('0x14'))['to'](_0x199154,_0x3d08('0x11'),_0x199154,_0x3d08('0x14'),_0x40cc77,_0x3d08('0xd'),(_0x373791,_0x2cfb52,_0x8c18b5)=>_0x373791&&_0x2cfb52&&!_0x8c18b5),_0x3c0e32['on'](_0x3d08('0x12'),()=>(_0x40cc77[_0x3d08('0x3')][_0x3d08('0x18')](_0x13987a)[_0x3d08('0x0')]({'name':_0x3c0e32['revisionName']}),void _0x8d63d())),_0x3c0e32['on'](_0x3d08('0x10'),()=>_0x327681()),_0x3c0e32[_0x3d08('0x1d')](),_0x327681(),_0x4c5596;});}}
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module revision-history/ui/revisionsidebar/revisionsidebar
7
7
  */
8
- import { Plugin, type Editor } from 'ckeditor5/src/core';
9
- import RevisionViewer from '../../revisionviewer';
10
- import type { default as RevisionView } from '../revision/revisionview';
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
9
+ import RevisionViewer from '../../revisionviewer.js';
10
+ import type { default as RevisionView } from '../revision/revisionview.js';
11
11
  /**
12
12
  * TODO
13
13
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5e1d=['_sidebarView','repository','get','config','_revisionViewer','compare','isEnabled','revisionHistory','string','isVisible','select','getRevisionsInDiff','setName','fieldView','name','getLaterVisibleRevision','assign','appendChild','_handleRevisionSelected','pluginName','_createRevisionActions','action','element','Compare\x20against\x20selected','remove','_handleEditorDataReady','defaultRevisionActions','nameRevision','bind','selectRevision','diff','plugins','getRevision','_revisions','change:diff','revisionHistory.revisionActions','init','_handleRevisionSetName','restoreRevisionCallback','_handleDiffChange','revisionSetName','newRevisionId','focus','getEarlierVisibleRevision','restoreRevision','compareAgainstSelected','getIndex','add','length','isReady','availableRevisionActions','locale','destroy','editor','Name\x20this\x20revision','_revisionsRepository','listenTo'];(function(_0x4e340d,_0x5e1d92){const _0x5b8cb9=function(_0x3acbe7){while(--_0x3acbe7){_0x4e340d['push'](_0x4e340d['shift']());}};_0x5b8cb9(++_0x5e1d92);}(_0x5e1d,0x1ac));const _0x5b8c=function(_0x4e340d,_0x5e1d92){_0x4e340d=_0x4e340d-0x0;let _0x5b8cb9=_0x5e1d[_0x4e340d];return _0x5b8cb9;};import{Plugin as _0x3c00c4}from'ckeditor5/src/core';import _0x48a605 from'./revisionssidebarview';import _0x240aa7 from'../../revisionviewer';export default class w extends _0x3c00c4{static get[_0x5b8c('0x2f')](){return'RevisionsSidebar';}static get['requires'](){return[_0x240aa7];}constructor(_0x55fbe1){super(_0x55fbe1),this['_revisionViewer']=_0x55fbe1[_0x5b8c('0x2')][_0x5b8c('0x1e')](_0x240aa7),this[_0x5b8c('0x1a')]=this['_revisionViewer']['repository'],this[_0x5b8c('0x1c')]=null;}[_0x5b8c('0x7')](){const _0x13ed5b=this[_0x5b8c('0x1a')][_0x5b8c('0x4')],_0x52e6e3=this[_0x5b8c('0x30')](),_0x23d528=this[_0x5b8c('0x18')][_0x5b8c('0x1f')][_0x5b8c('0x1e')]('revisionHistory.viewerSidebarContainer');this[_0x5b8c('0x1c')]=new _0x48a605(this[_0x5b8c('0x18')][_0x5b8c('0x16')],_0x13ed5b,_0x52e6e3),this[_0x5b8c('0x1c')]['on']('revisionSelected',this[_0x5b8c('0x2e')]['bind'](this)),this[_0x5b8c('0x1c')]['on'](_0x5b8c('0xb'),this[_0x5b8c('0x8')][_0x5b8c('0x38')](this)),this[_0x5b8c('0x1c')][_0x5b8c('0x38')]('isEnabled')['to'](this['_revisionViewer']),this['_sidebarView']['timePeriodViews']['on'](_0x5b8c('0x12'),(_0x1bc8ef,_0x1d9081)=>{_0x1d9081['revisionViews']['on'](_0x5b8c('0x12'),(_0x5ede56,_0x227f9c)=>{_0x227f9c[_0x5b8c('0x38')](_0x5b8c('0x22'),_0x5b8c('0x14'))['to'](this[_0x5b8c('0x20')]);});}),this[_0x5b8c('0x1c')]['render'](),this[_0x5b8c('0x1b')](this[_0x5b8c('0x18')]['data'],'ready',this[_0x5b8c('0x35')][_0x5b8c('0x38')](this)),this[_0x5b8c('0x1b')](this[_0x5b8c('0x20')],_0x5b8c('0x5'),this[_0x5b8c('0xa')][_0x5b8c('0x38')](this)),_0x23d528[_0x5b8c('0x2d')](this[_0x5b8c('0x1c')]['element']);}['destroy'](){this[_0x5b8c('0x1c')][_0x5b8c('0x32')][_0x5b8c('0x34')](),this[_0x5b8c('0x1c')][_0x5b8c('0x17')]();}[_0x5b8c('0x35')](){const _0x34af49=this[_0x5b8c('0x1a')][_0x5b8c('0x3')](0x0);if(_0x34af49){const _0x36e927=this[_0x5b8c('0x1a')]['getEarlierVisibleRevision'](_0x34af49['id']);this[_0x5b8c('0x20')][_0x5b8c('0x21')](_0x34af49,_0x36e927);}}[_0x5b8c('0x2e')](_0x2d9e9c,_0x5464af){const _0x1b1c3c=this[_0x5b8c('0x1a')][_0x5b8c('0x3')](_0x5464af['id']),_0x40b79b=this[_0x5b8c('0x1a')][_0x5b8c('0xe')](_0x1b1c3c['id']);this[_0x5b8c('0x20')][_0x5b8c('0x21')](_0x1b1c3c,_0x40b79b);}[_0x5b8c('0x8')](_0x1c763a,_0x481c3e){this[_0x5b8c('0x1a')][_0x5b8c('0x3')](_0x481c3e['id'])[_0x5b8c('0x28')](_0x481c3e[_0x5b8c('0x2a')]);}[_0x5b8c('0xa')](_0x4eb6b3,_0x5cfde5,_0x3e94f7){const _0x301b20=this['_revisionsRepository'][_0x5b8c('0x27')](_0x3e94f7);_0x301b20[_0x5b8c('0x13')]>0x2?(this['_sidebarView']['highlightRevisions'](_0x301b20),this['_sidebarView'][_0x5b8c('0x0')](null)):(this[_0x5b8c('0x1c')]['highlightRevisions']([]),this['_sidebarView'][_0x5b8c('0x0')](_0x301b20[0x0]));}[_0x5b8c('0x30')](){const _0x2c9125=this['editor'],_0x518485=w[_0x5b8c('0x15')],_0x8274eb=_0x2c9125[_0x5b8c('0x1f')][_0x5b8c('0x1e')](_0x5b8c('0x6'))||w[_0x5b8c('0x36')];if(_0x8274eb['length'])return _0x8274eb['map'](_0x56e9b0=>{const _0x2c00fe=_0x5b8c('0x24')==typeof _0x56e9b0?Object[_0x5b8c('0x2c')]({},_0x518485[_0x56e9b0]):_0x56e9b0;return _0x2c00fe[_0x5b8c('0x31')]=_0x2c00fe['action'][_0x5b8c('0x38')](this,_0x2c9125),_0x2c00fe[_0x5b8c('0x25')]&&(_0x2c00fe[_0x5b8c('0x25')]=_0x2c00fe[_0x5b8c('0x25')][_0x5b8c('0x38')](this,_0x2c9125)),_0x2c00fe;});}}w['availableRevisionActions']={'compareAgainstSelected':{'name':_0x5b8c('0x33'),'action':({plugins:_0x5217b5},_0x5efc18)=>{const _0x311ae2=_0x5217b5[_0x5b8c('0x1e')](_0x240aa7),_0x34264e=_0x311ae2['repository'];let _0x1489d6=_0x311ae2['diff'][_0x5b8c('0xc')],_0x3b6746=_0x5efc18['id'];_0x34264e[_0x5b8c('0x11')](_0x1489d6)>_0x34264e['getIndex'](_0x3b6746)&&([_0x1489d6,_0x3b6746]=[_0x3b6746,_0x1489d6]),_0x311ae2[_0x5b8c('0x21')](_0x1489d6,_0x3b6746);},'isVisible':({plugins:_0x5ec760},_0xe48625)=>{const _0x597f33=_0x5ec760[_0x5b8c('0x1e')](_0x240aa7);return!(_0x597f33[_0x5b8c('0x1d')]['getRevisionsInDiff'](_0x597f33[_0x5b8c('0x1')])['length']>0x2)&&!_0xe48625['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0xc769f5,{id:_0x2cc66a})=>{_0xc769f5['config']['get'](_0x5b8c('0x23'))[_0x5b8c('0x9')](_0x2cc66a);},'isVisible':({plugins:_0xf65aee},_0x59fb23)=>!!_0xf65aee['get'](_0x240aa7)[_0x5b8c('0x1d')][_0x5b8c('0x2b')](_0x59fb23['id'])},'nameRevision':{'name':_0x5b8c('0x19'),'action':({plugins:_0x2b5ddd},{id:_0x30b6db,revisionNameView:_0x367405})=>{const _0xa62c6d=_0x2b5ddd[_0x5b8c('0x1e')](_0x240aa7),_0x1bcb68=_0xa62c6d[_0x5b8c('0x1d')][_0x5b8c('0xe')](_0x30b6db);_0xa62c6d[_0x5b8c('0x21')](_0x30b6db,_0x1bcb68),_0x367405[_0x5b8c('0xd')](),_0x367405[_0x5b8c('0x29')][_0x5b8c('0x26')]();}}},w['defaultRevisionActions']=[_0x5b8c('0x10'),_0x5b8c('0xf'),_0x5b8c('0x37')];
23
+ const _0x1b9d=['defaultRevisionActions','editor','revisionViews','revisionHistory','plugins','get','_handleEditorDataReady','_sidebarView','element','compareAgainstSelected','remove','pluginName','_handleRevisionSetName','render','timePeriodViews','selectRevision','_revisions','change:diff','nameRevision','restoreRevision','Compare\x20against\x20selected','revisionSetName','bind','getLaterVisibleRevision','destroy','highlightRevisions','RevisionsSidebar','string','appendChild','_revisionViewer','select','revisionHistory.viewerSidebarContainer','getIndex','compare','isReady','_revisionsRepository','Restore\x20this\x20revision','map','assign','setName','length','getEarlierVisibleRevision','_handleRevisionSelected','ready','action','_createRevisionActions','config','data','isVisible','listenTo','repository','diff','revisionSelected','isSelected','add','getRevision','getRevisionsInDiff'];(function(_0x9de659,_0x1b9d22){const _0x50d133=function(_0x509241){while(--_0x509241){_0x9de659['push'](_0x9de659['shift']());}};_0x50d133(++_0x1b9d22);}(_0x1b9d,0x8d));const _0x50d1=function(_0x9de659,_0x1b9d22){_0x9de659=_0x9de659-0x0;let _0x50d133=_0x1b9d[_0x9de659];return _0x50d133;};import{Plugin as _0x4f79b8}from'ckeditor5/src/core.js';import _0x3772d9 from'./revisionssidebarview.js';import _0x2a82ec from'../../revisionviewer.js';export default class w extends _0x4f79b8{static get[_0x50d1('0x29')](){return _0x50d1('0x38');}static get['requires'](){return[_0x2a82ec];}constructor(_0x1c9c21){super(_0x1c9c21),this[_0x50d1('0x2')]=_0x1c9c21[_0x50d1('0x22')]['get'](_0x2a82ec),this['_revisionsRepository']=this[_0x50d1('0x2')][_0x50d1('0x17')],this[_0x50d1('0x25')]=null;}['init'](){const _0x5a5759=this[_0x50d1('0x8')][_0x50d1('0x2e')],_0x499c72=this[_0x50d1('0x12')](),_0x267d3a=this[_0x50d1('0x1f')][_0x50d1('0x13')][_0x50d1('0x23')](_0x50d1('0x4'));this[_0x50d1('0x25')]=new _0x3772d9(this[_0x50d1('0x1f')]['locale'],_0x5a5759,_0x499c72),this['_sidebarView']['on'](_0x50d1('0x19'),this[_0x50d1('0xf')][_0x50d1('0x34')](this)),this['_sidebarView']['on'](_0x50d1('0x33'),this[_0x50d1('0x2a')][_0x50d1('0x34')](this)),this[_0x50d1('0x25')]['bind']('isEnabled')['to'](this[_0x50d1('0x2')]),this[_0x50d1('0x25')][_0x50d1('0x2c')]['on']('add',(_0x2363ef,_0xe55fbb)=>{_0xe55fbb[_0x50d1('0x20')]['on'](_0x50d1('0x1b'),(_0x5c634b,_0x50f9ed)=>{_0x50f9ed[_0x50d1('0x34')]('isEnabled',_0x50d1('0x7'))['to'](this[_0x50d1('0x2')]);});}),this[_0x50d1('0x25')][_0x50d1('0x2b')](),this[_0x50d1('0x16')](this[_0x50d1('0x1f')][_0x50d1('0x14')],_0x50d1('0x10'),this['_handleEditorDataReady'][_0x50d1('0x34')](this)),this['listenTo'](this[_0x50d1('0x2')],_0x50d1('0x2f'),this['_handleDiffChange'][_0x50d1('0x34')](this)),_0x267d3a[_0x50d1('0x1')](this[_0x50d1('0x25')][_0x50d1('0x26')]);}['destroy'](){this[_0x50d1('0x25')][_0x50d1('0x26')][_0x50d1('0x28')](),this[_0x50d1('0x25')][_0x50d1('0x36')]();}[_0x50d1('0x24')](){const _0x310066=this[_0x50d1('0x8')][_0x50d1('0x1c')](0x0);if(_0x310066){const _0x298635=this[_0x50d1('0x8')][_0x50d1('0xe')](_0x310066['id']);this['_revisionViewer']['compare'](_0x310066,_0x298635);}}[_0x50d1('0xf')](_0x5d88e4,_0x4b7966){const _0x21aceb=this[_0x50d1('0x8')][_0x50d1('0x1c')](_0x4b7966['id']),_0x34cdad=this[_0x50d1('0x8')][_0x50d1('0xe')](_0x21aceb['id']);this[_0x50d1('0x2')][_0x50d1('0x6')](_0x21aceb,_0x34cdad);}[_0x50d1('0x2a')](_0x102df6,_0x55fa2b){this[_0x50d1('0x8')][_0x50d1('0x1c')](_0x55fa2b['id'])[_0x50d1('0xc')](_0x55fa2b['name']);}['_handleDiffChange'](_0x3f8764,_0x4ff3f7,_0x197bbe){const _0x15530f=this[_0x50d1('0x8')][_0x50d1('0x1d')](_0x197bbe);_0x15530f['length']>0x2?(this[_0x50d1('0x25')][_0x50d1('0x37')](_0x15530f),this[_0x50d1('0x25')][_0x50d1('0x2d')](null)):(this[_0x50d1('0x25')]['highlightRevisions']([]),this[_0x50d1('0x25')][_0x50d1('0x2d')](_0x15530f[0x0]));}[_0x50d1('0x12')](){const _0x5abe9b=this['editor'],_0x441be4=w['availableRevisionActions'],_0x339f88=_0x5abe9b[_0x50d1('0x13')][_0x50d1('0x23')]('revisionHistory.revisionActions')||w[_0x50d1('0x1e')];if(_0x339f88[_0x50d1('0xd')])return _0x339f88[_0x50d1('0xa')](_0x2115ec=>{const _0x371037=_0x50d1('0x0')==typeof _0x2115ec?Object[_0x50d1('0xb')]({},_0x441be4[_0x2115ec]):_0x2115ec;return _0x371037[_0x50d1('0x11')]=_0x371037[_0x50d1('0x11')][_0x50d1('0x34')](this,_0x5abe9b),_0x371037[_0x50d1('0x15')]&&(_0x371037['isVisible']=_0x371037[_0x50d1('0x15')][_0x50d1('0x34')](this,_0x5abe9b)),_0x371037;});}}w['availableRevisionActions']={'compareAgainstSelected':{'name':_0x50d1('0x32'),'action':({plugins:_0x5254ed},_0xfd3af1)=>{const _0x322fb0=_0x5254ed[_0x50d1('0x23')](_0x2a82ec),_0x1301a9=_0x322fb0[_0x50d1('0x17')];let _0x556470=_0x322fb0[_0x50d1('0x18')]['newRevisionId'],_0x46a853=_0xfd3af1['id'];_0x1301a9[_0x50d1('0x5')](_0x556470)>_0x1301a9[_0x50d1('0x5')](_0x46a853)&&([_0x556470,_0x46a853]=[_0x46a853,_0x556470]),_0x322fb0[_0x50d1('0x6')](_0x556470,_0x46a853);},'isVisible':({plugins:_0x173c92},_0x1b3bda)=>{const _0x31c422=_0x173c92[_0x50d1('0x23')](_0x2a82ec);return!(_0x31c422[_0x50d1('0x17')]['getRevisionsInDiff'](_0x31c422['diff'])[_0x50d1('0xd')]>0x2)&&!_0x1b3bda[_0x50d1('0x1a')];}},'restoreRevision':{'name':_0x50d1('0x9'),'action':(_0x45e58f,{id:_0x2d25e5})=>{_0x45e58f[_0x50d1('0x13')][_0x50d1('0x23')](_0x50d1('0x21'))['restoreRevisionCallback'](_0x2d25e5);},'isVisible':({plugins:_0x567893},_0x20ad11)=>!!_0x567893['get'](_0x2a82ec)[_0x50d1('0x17')][_0x50d1('0x35')](_0x20ad11['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x41ed62},{id:_0x3e1625,revisionNameView:_0x5f56c6})=>{const _0x8786c4=_0x41ed62['get'](_0x2a82ec),_0x5ec6d7=_0x8786c4[_0x50d1('0x17')][_0x50d1('0xe')](_0x3e1625);_0x8786c4[_0x50d1('0x6')](_0x3e1625,_0x5ec6d7),_0x5f56c6['focus'](),_0x5f56c6['fieldView'][_0x50d1('0x3')]();}}},w[_0x50d1('0x1e')]=[_0x50d1('0x27'),_0x50d1('0x31'),_0x50d1('0x30')];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x53e8=['Revision\x20history','setTemplate','ck-revision-history-sidebar__header__label','span','div','ck-reset_all','history','content'];(function(_0x1103f0,_0x53e86a){const _0x59ebdf=function(_0x235837){while(--_0x235837){_0x1103f0['push'](_0x1103f0['shift']());}};_0x59ebdf(++_0x53e86a);}(_0x53e8,0xab));const _0x59eb=function(_0x1103f0,_0x53e86a){_0x1103f0=_0x1103f0-0x0;let _0x59ebdf=_0x53e8[_0x1103f0];return _0x59ebdf;};import{View as _0x49622e,IconView as _0x5c1868}from'ckeditor5/src/ui';import{getTranslation as _0x49b226}from'../../utils/common-translations';import{icons as _0x5e292f}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rr extends _0x49622e{constructor(_0x43c5b4){super(_0x43c5b4);const _0x5d6404=new _0x5c1868();_0x5d6404[_0x59eb('0x4')]=_0x5e292f[_0x59eb('0x3')],this[_0x59eb('0x6')]({'tag':_0x59eb('0x1'),'attributes':{'class':['ck',_0x59eb('0x2'),'ck-revision-history-sidebar__header']},'children':[_0x5d6404,{'tag':_0x59eb('0x0'),'attributes':{'class':['ck',_0x59eb('0x7')]},'children':[_0x49b226(_0x43c5b4,_0x59eb('0x5'))]}]});}}
23
+ const _0x875d=['div','Revision\x20history','ck-revision-history-sidebar__header','history','setTemplate','span'];(function(_0xf98c95,_0x875dee){const _0x21b90a=function(_0x24caa8){while(--_0x24caa8){_0xf98c95['push'](_0xf98c95['shift']());}};_0x21b90a(++_0x875dee);}(_0x875d,0xa5));const _0x21b9=function(_0xf98c95,_0x875dee){_0xf98c95=_0xf98c95-0x0;let _0x21b90a=_0x875d[_0xf98c95];return _0x21b90a;};import{View as _0x28d2a1,IconView as _0xe16313}from'ckeditor5/src/ui.js';import{getTranslation as _0x3dbf10}from'../../utils/common-translations.js';import{icons as _0x39cb9c}from'ckeditor5/src/core.js';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rs extends _0x28d2a1{constructor(_0x1464a5){super(_0x1464a5);const _0x2b5c48=new _0xe16313();_0x2b5c48['content']=_0x39cb9c[_0x21b9('0x0')],this[_0x21b9('0x1')]({'tag':_0x21b9('0x3'),'attributes':{'class':['ck','ck-reset_all',_0x21b9('0x5')]},'children':[_0x2b5c48,{'tag':_0x21b9('0x2'),'attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[_0x3dbf10(_0x1464a5,_0x21b9('0x4'))]}]});}}
@@ -5,12 +5,12 @@
5
5
  /**
6
6
  * @module revision-history/ui/revisionsidebar/revisionsidebartimeperiodview
7
7
  */
8
- import { View, type ViewCollection } from 'ckeditor5/src/ui';
9
- import type { Locale } from 'ckeditor5/src/utils';
10
- import RevisionView from '../revision/revisionview';
8
+ import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
9
+ import type { Locale } from 'ckeditor5/src/utils.js';
10
+ import RevisionView from '../revision/revisionview.js';
11
11
  import '../../../theme/revisionssidebar/revisionssidebartimeperiod.css';
12
- import type { RevisionAction } from './revisionssidebar';
13
- import type Revision from '../../revision';
12
+ import type { RevisionAction } from './revisionssidebar.js';
13
+ import type Revision from '../../revision.js';
14
14
  /**
15
15
  * TODO
16
16
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1717=['revisionViews','div','addRevision','delegate','select','locale','removeRevision','add','setTemplate','createCollection','_revisionActions','find','remove','ck-revision-history-sidebar__time-period__revisions'];(function(_0x857d2f,_0x171713){const _0x4dfe01=function(_0x3848dd){while(--_0x3848dd){_0x857d2f['push'](_0x857d2f['shift']());}};_0x4dfe01(++_0x171713);}(_0x1717,0x87));const _0x4dfe=function(_0x857d2f,_0x171713){_0x857d2f=_0x857d2f-0x0;let _0x4dfe01=_0x1717[_0x857d2f];return _0x4dfe01;};import{View as _0x531958}from'ckeditor5/src/ui';import _0x1a3b81 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x4d60a2}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x531958{constructor(_0x20d38f,_0x570008,_0x1cfcff){super(_0x20d38f);const _0x5be0e0=_0x4d60a2(_0x570008,this[_0x4dfe('0xa')]['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x570008,this[_0x4dfe('0x5')]=this[_0x4dfe('0x0')](),this['_revisionActions']=_0x1cfcff,this[_0x4dfe('0x5')][_0x4dfe('0x8')](_0x4dfe('0x9'))['to'](this),this[_0x4dfe('0x5')][_0x4dfe('0x8')]('setName')['to'](this),this[_0x4dfe('0xd')]({'tag':_0x4dfe('0x6'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x5be0e0}]},{'tag':'div','attributes':{'class':['ck',_0x4dfe('0x4')]},'children':this['revisionViews']}]});}[_0x4dfe('0x7')](_0x198509){const _0x401062=new _0x1a3b81(this['locale'],_0x198509,this[_0x4dfe('0x1')]);this['revisionViews'][_0x4dfe('0xc')](_0x401062);}[_0x4dfe('0xb')](_0x39efd6){const _0x2930a4=this[_0x4dfe('0x5')][_0x4dfe('0x2')](_0x3f2ad4=>_0x3f2ad4['id']===_0x39efd6['id']);this[_0x4dfe('0x5')][_0x4dfe('0x3')](_0x2930a4);}}
23
+ const _0x2497=['localizedPeriodName','span','startDate','delegate','locale','select','add','find','div','revisionViews','remove','ck-revision-history-sidebar__time-period__revisions','uiLanguage','_revisionActions','ck-revision-history-sidebar__time-period','setTemplate','setName','removeRevision'];(function(_0x1b90df,_0x2497f1){const _0x5a8190=function(_0x282831){while(--_0x282831){_0x1b90df['push'](_0x1b90df['shift']());}};_0x5a8190(++_0x2497f1);}(_0x2497,0xd7));const _0x5a81=function(_0x1b90df,_0x2497f1){_0x1b90df=_0x1b90df-0x0;let _0x5a8190=_0x2497[_0x1b90df];return _0x5a8190;};import{View as _0x227722}from'ckeditor5/src/ui.js';import _0x4fcec4 from'../revision/revisionview.js';import{getDateTimePeriodInfo as _0x462e8d}from'./utils.js';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class vi extends _0x227722{constructor(_0x46e371,_0x47f573,_0x5c6040){super(_0x46e371);const _0x945bf3=_0x462e8d(_0x47f573,this[_0x5a81('0x5')][_0x5a81('0xd')])[_0x5a81('0x1')];this[_0x5a81('0x3')]=_0x47f573,this['revisionViews']=this['createCollection'](),this[_0x5a81('0xe')]=_0x5c6040,this['revisionViews']['delegate'](_0x5a81('0x6'))['to'](this),this['revisionViews'][_0x5a81('0x4')](_0x5a81('0x11'))['to'](this),this[_0x5a81('0x10')]({'tag':'div','attributes':{'class':['ck',_0x5a81('0xf')]},'children':[{'tag':_0x5a81('0x2'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x945bf3}]},{'tag':_0x5a81('0x9'),'attributes':{'class':['ck',_0x5a81('0xc')]},'children':this[_0x5a81('0xa')]}]});}['addRevision'](_0x356037){const _0x27a5b4=new _0x4fcec4(this[_0x5a81('0x5')],_0x356037,this[_0x5a81('0xe')]);this[_0x5a81('0xa')][_0x5a81('0x7')](_0x27a5b4);}[_0x5a81('0x0')](_0x4a637d){const _0x47fb59=this[_0x5a81('0xa')][_0x5a81('0x8')](_0x472427=>_0x472427['id']===_0x4a637d['id']);this[_0x5a81('0xa')][_0x5a81('0xb')](_0x47fb59);}}
@@ -5,13 +5,13 @@
5
5
  /**
6
6
  * @module revision-history/ui/revisionsidebar/revisionsidebarview
7
7
  */
8
- import { View, type ViewCollection } from 'ckeditor5/src/ui';
9
- import type { Locale, Collection } from 'ckeditor5/src/utils';
10
- import RevisionsSidebarTimePeriodView from './revisionssidebartimeperiodview';
8
+ import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
9
+ import type { Locale, Collection } from 'ckeditor5/src/utils.js';
10
+ import RevisionsSidebarTimePeriodView from './revisionssidebartimeperiodview.js';
11
11
  import '../../../theme/revisionssidebar/revisionssidebar.css';
12
- import type { default as RevisionView } from '../revision/revisionview';
13
- import type { RevisionAction } from './revisionssidebar';
14
- import type Revision from '../../revision';
12
+ import type { default as RevisionView } from '../revision/revisionview.js';
13
+ import type { RevisionAction } from './revisionssidebar.js';
14
+ import type Revision from '../../revision.js';
15
15
  /**
16
16
  * TODO
17
17
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x42c4=['ck-revision-history-sidebar__timeline','addRevision','uiLanguage','unhighlight','setName','remove','createCollection','add','timePeriodViews','highlightRevisions','some','startDate','set','_revisionActions','fire','ck-rounded-corners','deselect','flat','select','_revisions','get','_getTimePeriodViewByStartDate','removeRevision','ck-reset','map','bindTemplate','revisionSelected','createdAt','highlight','_addRevision','_removeRevision','render','delegate','revisionViews','find','setTemplate','locale','getTime','isEnabled','div'];(function(_0x2705aa,_0x42c4f6){const _0x322861=function(_0xdd3c7e){while(--_0xdd3c7e){_0x2705aa['push'](_0x2705aa['shift']());}};_0x322861(++_0x42c4f6);}(_0x42c4,0x108));const _0x3228=function(_0x2705aa,_0x42c4f6){_0x2705aa=_0x2705aa-0x0;let _0x322861=_0x42c4[_0x2705aa];return _0x322861;};import{View as _0x1e4a4a}from'ckeditor5/src/ui';import _0x4ba961 from'./revisionssidebartimeperiodview';import _0xed48d3 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x3a65c7}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x1e4a4a{constructor(_0x27c0c9,_0x4e6926,_0x22af70){super(_0x27c0c9);const _0x4d922f=this[_0x3228('0x1')];this[_0x3228('0x18')]=this[_0x3228('0x16')](),this['timePeriodViews'][_0x3228('0x8')](_0x3228('0x22'))['to'](this),this['timePeriodViews'][_0x3228('0x8')](_0x3228('0x14'))['to'](this),this[_0x3228('0x23')]=_0x4e6926,this[_0x3228('0x1d')]=_0x22af70,this['on'](_0x3228('0x22'),(_0x7e5c6e,_0x4567e2)=>{this['fire'](_0x3228('0x2'),_0x4567e2);}),this['on'](_0x3228('0x14'),(_0x27fc77,_0x559828)=>{this[_0x3228('0x1e')]('revisionSetName',_0x559828);}),this[_0x3228('0x1c')](_0x3228('0xe'),!0x1),this[_0x3228('0xb')]({'tag':_0x3228('0xf'),'attributes':{'class':['ck',_0x3228('0x27'),_0x3228('0x1f'),'ck-revision-history-sidebar']},'children':[new _0xed48d3(_0x27c0c9),{'tag':'div','attributes':{'class':['ck',_0x3228('0x10'),_0x4d922f['if'](_0x3228('0xe'),'ck-disabled',_0x4cf9c3=>!_0x4cf9c3)]},'children':this[_0x3228('0x18')]}]});}[_0x3228('0x7')](){super[_0x3228('0x7')]();for(const _0xaba35d of this[_0x3228('0x23')])this[_0x3228('0x5')](_0xaba35d);this[_0x3228('0x23')]['on']('add',(_0x2d7062,_0x213010)=>{this['_addRevision'](_0x213010);}),this['_revisions']['on'](_0x3228('0x15'),(_0x2a7b40,_0x31ed25)=>{this[_0x3228('0x6')](_0x31ed25);});}get[_0x3228('0x9')](){return this['timePeriodViews'][_0x3228('0x0')](_0x18a476=>_0x18a476[_0x3228('0x9')][_0x3228('0x0')](_0x1af0b2=>_0x1af0b2))[_0x3228('0x21')]();}['selectRevision'](_0x66cad7){for(const _0x2de483 of this['revisionViews'])_0x66cad7&&_0x66cad7['id']===_0x2de483['id']?_0x2de483['select']():_0x2de483[_0x3228('0x20')]();}[_0x3228('0x19')](_0x5128cd){for(const _0xd080d1 of this[_0x3228('0x9')])_0x5128cd[_0x3228('0x1a')](({id:_0x5c3eec})=>_0x5c3eec===_0xd080d1['id'])?_0xd080d1[_0x3228('0x4')]():_0xd080d1[_0x3228('0x13')]();}[_0x3228('0x5')](_0x3f19c8){const _0x38466a=_0x3a65c7(_0x3f19c8[_0x3228('0x3')],this[_0x3228('0xc')]['uiLanguage'])[_0x3228('0x1b')];let _0x69e287=this[_0x3228('0x18')][_0x3228('0x24')](0x0);_0x69e287&&_0x69e287[_0x3228('0x1b')]['getTime']()===_0x38466a['getTime']()||(_0x69e287=new _0x4ba961(this[_0x3228('0xc')],_0x38466a,this[_0x3228('0x1d')]),this['timePeriodViews'][_0x3228('0x17')](_0x69e287)),_0x69e287[_0x3228('0x11')](_0x3f19c8);}[_0x3228('0x6')](_0x27ef6c){const _0x3bc065=_0x3a65c7(_0x27ef6c[_0x3228('0x3')],this[_0x3228('0xc')][_0x3228('0x12')])[_0x3228('0x1b')];this[_0x3228('0x25')](_0x3bc065)[_0x3228('0x26')](_0x27ef6c);}[_0x3228('0x25')](_0x3d3e81){return this['timePeriodViews'][_0x3228('0xa')](_0x508aad=>_0x508aad['startDate']['getTime']()===_0x3d3e81[_0x3228('0xd')]());}}
23
+ const _0x16f6=['ck-reset','select','flat','ck-disabled','startDate','timePeriodViews','_revisions','selectRevision','deselect','get','uiLanguage','render','ck-revision-history-sidebar__timeline','locale','ck-rounded-corners','_revisionActions','_getTimePeriodViewByStartDate','revisionSetName','addRevision','some','revisionViews','createdAt','isEnabled','removeRevision','highlight','fire','setName','unhighlight','div','highlightRevisions','add','getTime','_addRevision','setTemplate','map','delegate','remove','set'];(function(_0xf1bffb,_0x16f6eb){const _0x178a97=function(_0xad4049){while(--_0xad4049){_0xf1bffb['push'](_0xf1bffb['shift']());}};_0x178a97(++_0x16f6eb);}(_0x16f6,0xa3));const _0x178a=function(_0xf1bffb,_0x16f6eb){_0xf1bffb=_0xf1bffb-0x0;let _0x178a97=_0x16f6[_0xf1bffb];return _0x178a97;};import{View as _0x44d820}from'ckeditor5/src/ui.js';import _0x45312c from'./revisionssidebartimeperiodview.js';import _0x14a6da from'./revisionssidebarheaderview.js';import{getDateTimePeriodInfo as _0x181526}from'./utils.js';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class di extends _0x44d820{constructor(_0x10d783,_0x443511,_0x3179ec){super(_0x10d783);const _0x566d51=this['bindTemplate'];this[_0x178a('0x20')]=this['createCollection'](),this[_0x178a('0x20')][_0x178a('0x18')]('select')['to'](this),this[_0x178a('0x20')][_0x178a('0x18')]('setName')['to'](this),this[_0x178a('0x21')]=_0x443511,this[_0x178a('0x4')]=_0x3179ec,this['on'](_0x178a('0x1c'),(_0x3c1cd5,_0x3e21ee)=>{this[_0x178a('0xe')]('revisionSelected',_0x3e21ee);}),this['on'](_0x178a('0xf'),(_0x4c1fea,_0x699de5)=>{this[_0x178a('0xe')](_0x178a('0x6'),_0x699de5);}),this[_0x178a('0x1a')](_0x178a('0xb'),!0x1),this[_0x178a('0x16')]({'tag':_0x178a('0x11'),'attributes':{'class':['ck',_0x178a('0x1b'),_0x178a('0x3'),'ck-revision-history-sidebar']},'children':[new _0x14a6da(_0x10d783),{'tag':'div','attributes':{'class':['ck',_0x178a('0x1'),_0x566d51['if'](_0x178a('0xb'),_0x178a('0x1e'),_0x15246b=>!_0x15246b)]},'children':this[_0x178a('0x20')]}]});}[_0x178a('0x0')](){super['render']();for(const _0x3a7c0d of this[_0x178a('0x21')])this[_0x178a('0x15')](_0x3a7c0d);this[_0x178a('0x21')]['on']('add',(_0x57292d,_0x48e837)=>{this[_0x178a('0x15')](_0x48e837);}),this['_revisions']['on'](_0x178a('0x19'),(_0x3ba4b8,_0x4c7fa1)=>{this['_removeRevision'](_0x4c7fa1);});}get[_0x178a('0x9')](){return this[_0x178a('0x20')][_0x178a('0x17')](_0x2ed9c8=>_0x2ed9c8[_0x178a('0x9')][_0x178a('0x17')](_0x2bbce2=>_0x2bbce2))[_0x178a('0x1d')]();}[_0x178a('0x22')](_0x239868){for(const _0x2f62eb of this[_0x178a('0x9')])_0x239868&&_0x239868['id']===_0x2f62eb['id']?_0x2f62eb[_0x178a('0x1c')]():_0x2f62eb[_0x178a('0x23')]();}[_0x178a('0x12')](_0xbfc30b){for(const _0xfbabfa of this[_0x178a('0x9')])_0xbfc30b[_0x178a('0x8')](({id:_0x1b7fbc})=>_0x1b7fbc===_0xfbabfa['id'])?_0xfbabfa[_0x178a('0xd')]():_0xfbabfa[_0x178a('0x10')]();}[_0x178a('0x15')](_0x2adfa1){const _0x2e5c65=_0x181526(_0x2adfa1['createdAt'],this['locale'][_0x178a('0x25')])['startDate'];let _0x5d0e25=this['timePeriodViews'][_0x178a('0x24')](0x0);_0x5d0e25&&_0x5d0e25[_0x178a('0x1f')][_0x178a('0x14')]()===_0x2e5c65['getTime']()||(_0x5d0e25=new _0x45312c(this[_0x178a('0x2')],_0x2e5c65,this[_0x178a('0x4')]),this['timePeriodViews'][_0x178a('0x13')](_0x5d0e25)),_0x5d0e25[_0x178a('0x7')](_0x2adfa1);}['_removeRevision'](_0x405a69){const _0x73084a=_0x181526(_0x405a69[_0x178a('0xa')],this[_0x178a('0x2')][_0x178a('0x25')])[_0x178a('0x1f')];this['_getTimePeriodViewByStartDate'](_0x73084a)[_0x178a('0xc')](_0x405a69);}[_0x178a('0x5')](_0x209f42){return this['timePeriodViews']['find'](_0x635e2=>_0x635e2[_0x178a('0x1f')][_0x178a('0x14')]()===_0x209f42[_0x178a('0x14')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x7fcc=['week','weekdayLong','day','hasSame','local','year','monthLong','startOf','minus','toJSDate','fromJSDate','toRelativeCalendar'];(function(_0x22f11a,_0x7fcc24){const _0x330c55=function(_0x2b5416){while(--_0x2b5416){_0x22f11a['push'](_0x22f11a['shift']());}};_0x330c55(++_0x7fcc24);}(_0x7fcc,0xf6));const _0x330c=function(_0x22f11a,_0x7fcc24){_0x22f11a=_0x22f11a-0x0;let _0x330c55=_0x7fcc[_0x22f11a];return _0x330c55;};import{DateTime as _0x5a037d}from'luxon';export function getDateTimePeriodInfo(_0x3b7523,_0x3d87e7){const _0x86ce21=_0x5a037d[_0x330c('0x4')](_0x3b7523)['setLocale'](_0x3d87e7),_0x4a047d=_0x5a037d[_0x330c('0xa')](),_0x1b7a32=_0x4a047d[_0x330c('0x2')]({'days':0x1})['startOf']('day');let _0x20ac51,_0x5073d8;return _0x86ce21[_0x330c('0x9')](_0x4a047d,_0x330c('0x8'))?(_0x20ac51=_0x86ce21[_0x330c('0x1')]('day')[_0x330c('0x3')](),_0x5073d8=_0x86ce21[_0x330c('0x5')]()):_0x86ce21['hasSame'](_0x1b7a32,_0x330c('0x8'))?(_0x20ac51=_0x1b7a32[_0x330c('0x3')](),_0x5073d8=_0x86ce21['toRelativeCalendar']()):_0x86ce21[_0x330c('0x9')](_0x4a047d,_0x330c('0x6'))?(_0x20ac51=_0x86ce21[_0x330c('0x1')](_0x330c('0x6'))[_0x330c('0x3')](),_0x5073d8=_0x86ce21[_0x330c('0x7')]||''):_0x86ce21['hasSame'](_0x4a047d,_0x330c('0xb'))?(_0x20ac51=_0x86ce21['startOf']('month')['toJSDate'](),_0x5073d8=_0x86ce21[_0x330c('0x0')]||''):(_0x20ac51=_0x86ce21['startOf']('year')[_0x330c('0x3')](),_0x5073d8=String(_0x86ce21[_0x330c('0xb')])),{'startDate':_0x20ac51,'localizedPeriodName':_0x5073d8};}
23
+ const _0x316d=['day','setLocale','toJSDate','year','local','fromJSDate','week','hasSame','month','toRelativeCalendar','startOf','minus'];(function(_0x4b90e5,_0x316dd2){const _0x18096e=function(_0x517fba){while(--_0x517fba){_0x4b90e5['push'](_0x4b90e5['shift']());}};_0x18096e(++_0x316dd2);}(_0x316d,0x1a1));const _0x1809=function(_0x4b90e5,_0x316dd2){_0x4b90e5=_0x4b90e5-0x0;let _0x18096e=_0x316d[_0x4b90e5];return _0x18096e;};import{DateTime as _0x2b3b73}from'luxon';export function getDateTimePeriodInfo(_0x10b7ed,_0x549a03){const _0x294657=_0x2b3b73[_0x1809('0x8')](_0x10b7ed)[_0x1809('0x4')](_0x549a03),_0x3380b5=_0x2b3b73[_0x1809('0x7')](),_0x3db551=_0x3380b5[_0x1809('0x2')]({'days':0x1})['startOf']('day');let _0x52fcf8,_0x58ca15;return _0x294657[_0x1809('0xa')](_0x3380b5,_0x1809('0x3'))?(_0x52fcf8=_0x294657['startOf'](_0x1809('0x3'))['toJSDate'](),_0x58ca15=_0x294657[_0x1809('0x0')]()):_0x294657[_0x1809('0xa')](_0x3db551,_0x1809('0x3'))?(_0x52fcf8=_0x3db551[_0x1809('0x5')](),_0x58ca15=_0x294657[_0x1809('0x0')]()):_0x294657[_0x1809('0xa')](_0x3380b5,'week')?(_0x52fcf8=_0x294657[_0x1809('0x1')](_0x1809('0x9'))[_0x1809('0x5')](),_0x58ca15=_0x294657['weekdayLong']||''):_0x294657['hasSame'](_0x3380b5,_0x1809('0x6'))?(_0x52fcf8=_0x294657[_0x1809('0x1')](_0x1809('0xb'))[_0x1809('0x5')](),_0x58ca15=_0x294657['monthLong']||''):(_0x52fcf8=_0x294657[_0x1809('0x1')](_0x1809('0x6'))[_0x1809('0x5')](),_0x58ca15=String(_0x294657['year'])),{'startDate':_0x52fcf8,'localizedPeriodName':_0x58ca15};}
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module revision-history/ui/revisionviewer/changedetailsview
7
7
  */
8
- import { View } from 'ckeditor5/src/ui';
9
- import type { Locale } from 'ckeditor5/src/utils';
10
- import type ChangeItem from '../../changeitem';
8
+ import { View } from 'ckeditor5/src/ui.js';
9
+ import type { Locale } from 'ckeditor5/src/utils.js';
10
+ import type ChangeItem from '../../changeitem.js';
11
11
  export default class ChangeDetailsView extends View {
12
12
  changeId: string;
13
13
  /**
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x59c9=['author','div','Removed\x20by','focus','type','changeId','set','_model','Added\x20by','element','isSuggestion','name','ck-revision-change','bindTemplate','span','ck-revision-change__label'];(function(_0x590c54,_0x59c9e8){const _0x4fce7e=function(_0x256a72){while(--_0x256a72){_0x590c54['push'](_0x590c54['shift']());}};_0x4fce7e(++_0x59c9e8);}(_0x59c9,0x1da));const _0x4fce=function(_0x590c54,_0x59c9e8){_0x590c54=_0x590c54-0x0;let _0x4fce7e=_0x59c9[_0x590c54];return _0x4fce7e;};import{View as _0xa73f14}from'ckeditor5/src/ui';import{getTranslation as _0x57545f}from'../../utils/common-translations';export default class Z extends _0xa73f14{constructor(_0x140148,_0x1e8e92){super(_0x140148),this[_0x4fce('0xd')]=_0x1e8e92,this[_0x4fce('0xb')]=_0x1e8e92['id'];const _0x6383cc=this[_0x4fce('0x3')],_0x37daea=_0x57545f(_0x140148,_0x1e8e92['data'][_0x4fce('0x0')]?'Suggested\x20by':'add'==_0x1e8e92[_0x4fce('0xa')]?_0x4fce('0xe'):_0x4fce('0x8'));this[_0x4fce('0xc')](_0x4fce('0xa'),_0x1e8e92[_0x4fce('0xa')]),this['setTemplate']({'tag':_0x4fce('0x7'),'attributes':{'class':['ck-annotation',_0x4fce('0x2'),_0x6383cc['to'](_0x4fce('0xa'),_0xd398c7=>'ck-revision-change__'+_0xd398c7)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':_0x4fce('0x4'),'attributes':{'class':[_0x4fce('0x5')]},'children':[{'text':_0x37daea}]},{'text':'\x20'+_0x1e8e92[_0x4fce('0x6')][_0x4fce('0x1')]}]}]});}[_0x4fce('0x9')](){this[_0x4fce('0xf')][_0x4fce('0x9')]();}}
23
+ const _0x3fc7=['author','Suggested\x20by','setTemplate','ck-annotation','focus','type','element','ck-revision-change','ck-revision-change__label','changeId','bindTemplate','name','isSuggestion','data','Removed\x20by','ck-revision-change__','div','span'];(function(_0x4bd0ce,_0x3fc797){const _0x3c3c=function(_0x53eddd){while(--_0x53eddd){_0x4bd0ce['push'](_0x4bd0ce['shift']());}};_0x3c3c(++_0x3fc797);}(_0x3fc7,0x1a2));const _0x3c3c=function(_0x4bd0ce,_0x3fc797){_0x4bd0ce=_0x4bd0ce-0x0;let _0x53eddd=_0x3fc7[_0x4bd0ce];return _0x53eddd;};import{View as _0x1a2fe7}from'ckeditor5/src/ui.js';import{getTranslation as _0x17f325}from'../../utils/common-translations.js';export default class Z extends _0x1a2fe7{constructor(_0xda7346,_0x34fe85){super(_0xda7346),this['_model']=_0x34fe85,this[_0x3c3c('0x5')]=_0x34fe85['id'];const _0x156c5a=this[_0x3c3c('0x6')],_0x140456=_0x17f325(_0xda7346,_0x34fe85[_0x3c3c('0x9')][_0x3c3c('0x8')]?_0x3c3c('0xf'):'add'==_0x34fe85['type']?'Added\x20by':_0x3c3c('0xa'));this['set'](_0x3c3c('0x1'),_0x34fe85[_0x3c3c('0x1')]),this[_0x3c3c('0x10')]({'tag':_0x3c3c('0xc'),'attributes':{'class':[_0x3c3c('0x11'),_0x3c3c('0x3'),_0x156c5a['to'](_0x3c3c('0x1'),_0x7a43cb=>_0x3c3c('0xb')+_0x7a43cb)],'tabindex':-0x1},'children':[{'tag':_0x3c3c('0xd'),'children':[{'tag':_0x3c3c('0xd'),'attributes':{'class':[_0x3c3c('0x4')]},'children':[{'text':_0x140456}]},{'text':'\x20'+_0x34fe85[_0x3c3c('0xe')][_0x3c3c('0x7')]}]}]});}[_0x3c3c('0x0')](){this[_0x3c3c('0x2')][_0x3c3c('0x0')]();}}
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module revision-history/ui/revisionviewer/changenaviagationview
7
7
  */
8
- import { View } from 'ckeditor5/src/ui';
9
- import type { Locale } from 'ckeditor5/src/utils';
8
+ import { View } from 'ckeditor5/src/ui.js';
9
+ import type { Locale } from 'ckeditor5/src/utils.js';
10
10
  import '../../../theme/changesnavigation.css';
11
11
  /**
12
12
  * TODO
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1bf0=['isBackwardNavigationEnabled','numberOfChanges','Show\x20previous\x20change','isNavigationMode','ck-revision-history-ui__changes-navigation__label','X_OF_Y_CHANGES','bind','execute','bindTemplate','div','span','_isStatusLabelVisible','backward','No\x20changes','Show\x20next\x20change','NUMBER_OF_CHANGES','isEnabled','ck-revision-history-ui__changes-navigation__navigation','EDIT_X_OF_Y_REVISIONS','isForwardNavigationEnabled','currentChangeNumber','isReady','set','forward','_statusText','ck-revision-history-ui','fire'];(function(_0x437b52,_0x1bf08c){const _0x1e015c=function(_0x121bf3){while(--_0x121bf3){_0x437b52['push'](_0x437b52['shift']());}};_0x1e015c(++_0x1bf08c);}(_0x1bf0,0x75));const _0x1e01=function(_0x437b52,_0x1bf08c){_0x437b52=_0x437b52-0x0;let _0x1e015c=_0x1bf0[_0x437b52];return _0x1e015c;};import{View as _0xee8fa9,ButtonView as _0x45f0c8,ToolbarSeparatorView as _0xc26994}from'ckeditor5/src/ui';import{getTranslation as _0x97d643}from'../../utils/common-translations';import _0x140631 from'../../../theme/icons/arrow-up.svg';import _0x258fd0 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0xee8fa9{constructor(_0x38e231){super(_0x38e231);const _0x4703bb=this[_0x1e01('0x1a')],_0xa0354=new _0x45f0c8(_0x38e231),_0x5123c8=new _0x45f0c8(_0x38e231);this[_0x1e01('0xd')](_0x1e01('0x15'),!0x1),this[_0x1e01('0xd')](_0x1e01('0xc'),!0x1),this[_0x1e01('0xd')](_0x1e01('0xb'),0x0),this[_0x1e01('0xd')](_0x1e01('0x13'),0x0),this[_0x1e01('0xd')](_0x1e01('0xa'),!0x1),this[_0x1e01('0xd')]('isBackwardNavigationEnabled',!0x1),this[_0x1e01('0x18')]('_isStatusLabelVisible')['to'](this,_0x1e01('0xc'),this,'numberOfChanges',(_0x5aef61,_0x2ee651)=>_0x5aef61&&_0x2ee651>0x0),this[_0x1e01('0x18')](_0x1e01('0xf'))['to'](this,'isReady',this,_0x1e01('0xb'),this,'numberOfChanges',this,_0x1e01('0x15'),(_0x355b7e,_0x286aa2,_0x86ece6,_0x5c8581)=>{if(!_0x355b7e)return _0x97d643(_0x38e231,'Loading...');if(!_0x86ece6)return _0x97d643(_0x38e231,_0x1e01('0x4'));const _0x57f07b=_0x97d643(_0x38e231,_0x1e01('0x6'),_0x86ece6);return _0x5c8581?_0x97d643(_0x38e231,_0x1e01('0x17'),[_0x286aa2+0x1,_0x86ece6]):_0x57f07b;}),_0xa0354['set']({'label':_0x97d643(_0x38e231,_0x1e01('0x14')),'tooltip':!0x0,'icon':_0x140631}),_0x5123c8['set']({'label':_0x97d643(_0x38e231,_0x1e01('0x5')),'tooltip':!0x0,'icon':_0x258fd0}),_0xa0354['bind']('isEnabled')['to'](this,_0x1e01('0x12')),_0x5123c8['bind'](_0x1e01('0x7'))['to'](this,_0x1e01('0xa')),_0xa0354['on']('execute',()=>this[_0x1e01('0x11')](_0x1e01('0x19'),_0x1e01('0x3'))),_0x5123c8['on'](_0x1e01('0x19'),()=>this[_0x1e01('0x11')]('execute',_0x1e01('0xe'))),this['setTemplate']({'tag':_0x1e01('0x0'),'attributes':{'class':['ck',_0x1e01('0x10'),'ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':_0x1e01('0x1'),'attributes':{'class':[_0x1e01('0x16'),_0x4703bb['if'](_0x1e01('0x2'),'ck-hidden',_0x316e46=>!_0x316e46)]},'children':[{'text':_0x4703bb['to'](_0x1e01('0x15'),_0x5637b6=>_0x5637b6?_0x97d643(_0x38e231,_0x1e01('0x9'))+':\x20':_0x97d643(_0x38e231,'Total')+':\x20')}]},{'text':_0x4703bb['to'](_0x1e01('0xf'))}]},new _0xc26994(),{'tag':_0x1e01('0x0'),'attributes':{'class':[_0x1e01('0x8')]},'children':[_0xa0354,_0x5123c8]}]});}}
23
+ const _0xd1c9=['Show\x20previous\x20change','set','ck-hidden','Total','bindTemplate','ck-revision-history-ui__changes-navigation__wrapper','isBackwardNavigationEnabled','execute','isForwardNavigationEnabled','forward','_isStatusLabelVisible','span','isEnabled','div','Show\x20next\x20change','Loading...','isNavigationMode','_statusText','ck-revision-history-ui__changes-navigation','X_OF_Y_CHANGES','ck-revision-history-ui__changes-navigation__label','fire','EDIT_X_OF_Y_REVISIONS','numberOfChanges','isReady','bind','backward','NUMBER_OF_CHANGES','No\x20changes','ck-revision-history-ui__changes-navigation__navigation','currentChangeNumber'];(function(_0x15e30e,_0xd1c944){const _0x5f2bf8=function(_0x4b7466){while(--_0x4b7466){_0x15e30e['push'](_0x15e30e['shift']());}};_0x5f2bf8(++_0xd1c944);}(_0xd1c9,0xbf));const _0x5f2b=function(_0x15e30e,_0xd1c944){_0x15e30e=_0x15e30e-0x0;let _0x5f2bf8=_0xd1c9[_0x15e30e];return _0x5f2bf8;};import{View as _0x3bb608,ButtonView as _0x45cfd3,ToolbarSeparatorView as _0x18e704}from'ckeditor5/src/ui.js';import{getTranslation as _0x52ddb3}from'../../utils/common-translations.js';import _0x12c812 from'../../../theme/icons/arrow-up.svg';import _0xc7fa3d from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x3bb608{constructor(_0x45cb8e){super(_0x45cb8e);const _0xb6afd0=this[_0x5f2b('0x1e')],_0x5aef41=new _0x45cfd3(_0x45cb8e),_0x4b8e41=new _0x45cfd3(_0x45cb8e);this[_0x5f2b('0x1b')](_0x5f2b('0xb'),!0x1),this[_0x5f2b('0x1b')](_0x5f2b('0x13'),!0x1),this[_0x5f2b('0x1b')]('currentChangeNumber',0x0),this[_0x5f2b('0x1b')](_0x5f2b('0x12'),0x0),this[_0x5f2b('0x1b')](_0x5f2b('0x3'),!0x1),this['set'](_0x5f2b('0x1'),!0x1),this['bind'](_0x5f2b('0x5'))['to'](this,_0x5f2b('0x13'),this,_0x5f2b('0x12'),(_0x4435d7,_0xc44f8f)=>_0x4435d7&&_0xc44f8f>0x0),this['bind'](_0x5f2b('0xc'))['to'](this,_0x5f2b('0x13'),this,_0x5f2b('0x19'),this,_0x5f2b('0x12'),this,_0x5f2b('0xb'),(_0x205d32,_0x193457,_0x5489e9,_0x5a50d0)=>{if(!_0x205d32)return _0x52ddb3(_0x45cb8e,_0x5f2b('0xa'));if(!_0x5489e9)return _0x52ddb3(_0x45cb8e,_0x5f2b('0x17'));const _0x258c41=_0x52ddb3(_0x45cb8e,_0x5f2b('0x16'),_0x5489e9);return _0x5a50d0?_0x52ddb3(_0x45cb8e,_0x5f2b('0xe'),[_0x193457+0x1,_0x5489e9]):_0x258c41;}),_0x5aef41[_0x5f2b('0x1b')]({'label':_0x52ddb3(_0x45cb8e,_0x5f2b('0x1a')),'tooltip':!0x0,'icon':_0x12c812}),_0x4b8e41[_0x5f2b('0x1b')]({'label':_0x52ddb3(_0x45cb8e,_0x5f2b('0x9')),'tooltip':!0x0,'icon':_0xc7fa3d}),_0x5aef41[_0x5f2b('0x14')]('isEnabled')['to'](this,_0x5f2b('0x1')),_0x4b8e41['bind'](_0x5f2b('0x7'))['to'](this,_0x5f2b('0x3')),_0x5aef41['on']('execute',()=>this[_0x5f2b('0x10')](_0x5f2b('0x2'),_0x5f2b('0x15'))),_0x4b8e41['on'](_0x5f2b('0x2'),()=>this[_0x5f2b('0x10')]('execute',_0x5f2b('0x4'))),this['setTemplate']({'tag':_0x5f2b('0x8'),'attributes':{'class':['ck','ck-revision-history-ui',_0x5f2b('0xd')]},'children':[{'tag':_0x5f2b('0x6'),'attributes':{'class':[_0x5f2b('0x0')]},'children':[{'tag':_0x5f2b('0x6'),'attributes':{'class':[_0x5f2b('0xf'),_0xb6afd0['if'](_0x5f2b('0x5'),_0x5f2b('0x1c'),_0x33b3cd=>!_0x33b3cd)]},'children':[{'text':_0xb6afd0['to'](_0x5f2b('0xb'),_0x2a61b2=>_0x2a61b2?_0x52ddb3(_0x45cb8e,_0x5f2b('0x11'))+':\x20':_0x52ddb3(_0x45cb8e,_0x5f2b('0x1d'))+':\x20')}]},{'text':_0xb6afd0['to'](_0x5f2b('0xc'))}]},new _0x18e704(),{'tag':_0x5f2b('0x8'),'attributes':{'class':[_0x5f2b('0x18')]},'children':[_0x5aef41,_0x4b8e41]}]});}}
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module revision-history/ui/revisionviewer/revisionviewerloadingoverlay
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
9
  import '../../../theme/revisionviewerloadingoverlay.css';
10
10
  /**
11
11
  * TODO
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2980=['change','pluginName','roots','show','editing','RevisionViewerLoadingOverlay','hide','removeClass','editor','ck-editor__editable__loading-overlay','document','view'];(function(_0x52cbd1,_0x2980db){const _0x88090a=function(_0x2b44cc){while(--_0x2b44cc){_0x52cbd1['push'](_0x52cbd1['shift']());}};_0x88090a(++_0x2980db);}(_0x2980,0x1c0));const _0x8809=function(_0x52cbd1,_0x2980db){_0x52cbd1=_0x52cbd1-0x0;let _0x88090a=_0x2980[_0x52cbd1];return _0x88090a;};import{Plugin as _0x4c66c2}from'ckeditor5/src/core';const oe=_0x8809('0x5');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x4c66c2{static get[_0x8809('0x9')](){return _0x8809('0x1');}[_0x8809('0xb')](){const _0x59b5f1=this[_0x8809('0x4')][_0x8809('0x0')][_0x8809('0x7')];_0x59b5f1['change'](_0x517362=>{for(const _0x226afd of _0x59b5f1[_0x8809('0x6')][_0x8809('0xa')])_0x517362['addClass'](oe,_0x226afd);});}[_0x8809('0x2')](){const _0x1b9739=this['editor'][_0x8809('0x0')][_0x8809('0x7')];_0x1b9739[_0x8809('0x8')](_0xa7ce7d=>{for(const _0xa6fb3f of _0x1b9739['document'][_0x8809('0xa')])_0xa7ce7d[_0x8809('0x3')](oe,_0xa6fb3f);});}}
23
+ const _0x5b61=['pluginName','editing','addClass','RevisionViewerLoadingOverlay','roots','document','change','editor','hide','view','removeClass'];(function(_0x39ae0a,_0x5b615e){const _0x34a753=function(_0x2533e8){while(--_0x2533e8){_0x39ae0a['push'](_0x39ae0a['shift']());}};_0x34a753(++_0x5b615e);}(_0x5b61,0x156));const _0x34a7=function(_0x39ae0a,_0x5b615e){_0x39ae0a=_0x39ae0a-0x0;let _0x34a753=_0x5b61[_0x39ae0a];return _0x34a753;};import{Plugin as _0x3fffdb}from'ckeditor5/src/core.js';const oe='ck-editor__editable__loading-overlay';import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x3fffdb{static get[_0x34a7('0xa')](){return _0x34a7('0x2');}['show'](){const _0x22ee4e=this[_0x34a7('0x6')][_0x34a7('0x0')][_0x34a7('0x8')];_0x22ee4e[_0x34a7('0x5')](_0x59c99a=>{for(const _0x49bdf2 of _0x22ee4e[_0x34a7('0x4')][_0x34a7('0x3')])_0x59c99a[_0x34a7('0x1')](oe,_0x49bdf2);});}[_0x34a7('0x7')](){const _0x198803=this['editor'][_0x34a7('0x0')][_0x34a7('0x8')];_0x198803['change'](_0x3c01a5=>{for(const _0x15edb8 of _0x198803[_0x34a7('0x4')][_0x34a7('0x3')])_0x3c01a5[_0x34a7('0x9')](oe,_0x15edb8);});}}
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module revision-history/ui/revisionviewer/revisionviewerui
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import RevisionViewer from './../../revisionviewer';
10
- import RevisionViewerLoadingOverlay from './revisionviewerloadingoverlay';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import RevisionViewer from './../../revisionviewer.js';
10
+ import RevisionViewerLoadingOverlay from './revisionviewerloadingoverlay.js';
11
11
  import '../../../theme/revisionviewer.css';
12
12
  /**
13
13
  * TODO
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3a6d=['commands','exitToEditing','showPreviousChange','ck-revision-history-ui__back-to-editing','forward','Restore\x20this\x20revision','add','requires','closeRevisionViewerCallback','change:isReady','restoreRevision','execute','RevisionViewerUI','isReady','isForwardNavigationEnabled','changesNavigation','Back\x20to\x20editing','currentChangeNumber','config','plugins','listenTo','revisionHistory','showNextChange','pluginName','hide','get','numberOfChanges','componentFactory','isBackwardNavigationEnabled','isEnabled','show','editor','bind','set','isNavigationMode'];(function(_0x290b05,_0x3a6d8e){const _0x311f81=function(_0x287acf){while(--_0x287acf){_0x290b05['push'](_0x290b05['shift']());}};_0x311f81(++_0x3a6d8e);}(_0x3a6d,0x110));const _0x311f=function(_0x290b05,_0x3a6d8e){_0x290b05=_0x290b05-0x0;let _0x311f81=_0x3a6d[_0x290b05];return _0x311f81;};import{Plugin as _0x2d8fab}from'ckeditor5/src/core';import{ButtonView as _0x1b1e83}from'ckeditor5/src/ui';import _0x59a585 from'./changesnavigationview';import _0x3d103f from'./../../revisionviewer';import _0x70fbcc from'./revisionviewerloadingoverlay';import{getTranslation as _0xc314f1}from'../../utils/common-translations';import _0x16de3a from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x2d8fab{static get[_0x311f('0x1f')](){return _0x311f('0x14');}static get[_0x311f('0xf')](){return[_0x3d103f,_0x70fbcc];}['init'](){const _0x1c112f=this[_0x311f('0x4')],_0x1d5ed3=_0x1c112f[_0x311f('0x1b')][_0x311f('0x21')](_0x3d103f),_0x32c7d8=_0x1c112f['plugins'][_0x311f('0x21')](_0x70fbcc);_0x1c112f['ui'][_0x311f('0x0')][_0x311f('0xe')](_0x311f('0x9'),_0x969529=>{const _0x30d88a=new _0x1b1e83(_0x969529);return _0x30d88a[_0x311f('0x6')]({'label':_0xc314f1(_0x969529,_0x311f('0x18')),'icon':_0x16de3a,'withText':!0x0,'tooltip':!0x0,'class':_0x311f('0xb')}),this['listenTo'](_0x30d88a,_0x311f('0x13'),()=>{_0x1c112f[_0x311f('0x1a')][_0x311f('0x21')](_0x311f('0x1d'))[_0x311f('0x10')]();}),_0x30d88a;}),_0x1c112f['ui'][_0x311f('0x0')][_0x311f('0xe')]('restoreRevision',_0x4a8a7c=>{const _0x3cd6c4=new _0x1b1e83(_0x4a8a7c);return _0x3cd6c4[_0x311f('0x6')]({'label':_0xc314f1(_0x4a8a7c,_0x311f('0xd')),'withText':!0x0,'tooltip':!0x0}),_0x3cd6c4[_0x311f('0x5')](_0x311f('0x2'))['to'](_0x1c112f['commands'][_0x311f('0x21')](_0x311f('0x12'))),this[_0x311f('0x1c')](_0x3cd6c4,_0x311f('0x13'),()=>_0x1c112f[_0x311f('0x13')](_0x311f('0x12'))),_0x3cd6c4;}),_0x1c112f['ui'][_0x311f('0x0')][_0x311f('0xe')](_0x311f('0x17'),_0x1a0e8b=>{const _0x2b6abe=new _0x59a585(_0x1a0e8b),_0x399ebc=_0x1c112f[_0x311f('0x8')]['get'](_0x311f('0xa')),_0xea4f3f=_0x1c112f[_0x311f('0x8')]['get'](_0x311f('0x1e'));return _0x2b6abe[_0x311f('0x5')](_0x311f('0x1'))['to'](_0x399ebc,'isEnabled'),_0x2b6abe[_0x311f('0x5')](_0x311f('0x16'))['to'](_0xea4f3f,_0x311f('0x2')),_0x2b6abe[_0x311f('0x5')](_0x311f('0x15'),_0x311f('0x19'),_0x311f('0x22'),_0x311f('0x7'))['to'](_0x1d5ed3),this['listenTo'](_0x2b6abe,_0x311f('0x13'),(_0x31464a,_0x3be175)=>{_0x1c112f['execute'](_0x311f('0xc')===_0x3be175?_0x311f('0x1e'):_0x311f('0xa'));}),_0x2b6abe;}),_0x32c7d8[_0x311f('0x3')](),_0x1d5ed3['on'](_0x311f('0x11'),(_0x186f24,_0x269d64,_0x387185)=>{_0x387185?_0x32c7d8[_0x311f('0x20')]():_0x32c7d8[_0x311f('0x3')]();});}}
23
+ const _0x3328=['isReady','show','showPreviousChange','Back\x20to\x20editing','requires','revisionHistory','change:isReady','ck-revision-history-ui__back-to-editing','isBackwardNavigationEnabled','init','exitToEditing','config','restoreRevision','isNavigationMode','plugins','changesNavigation','add','isEnabled','get','isForwardNavigationEnabled','commands','editor','pluginName','execute','showNextChange','numberOfChanges','componentFactory','closeRevisionViewerCallback','bind','listenTo'];(function(_0x16c7ff,_0x33285b){const _0x5ad521=function(_0x3e3652){while(--_0x3e3652){_0x16c7ff['push'](_0x16c7ff['shift']());}};_0x5ad521(++_0x33285b);}(_0x3328,0xc3));const _0x5ad5=function(_0x16c7ff,_0x33285b){_0x16c7ff=_0x16c7ff-0x0;let _0x5ad521=_0x3328[_0x16c7ff];return _0x5ad521;};import{Plugin as _0x528468}from'ckeditor5/src/core.js';import{ButtonView as _0x351385}from'ckeditor5/src/ui.js';import _0x25028 from'./changesnavigationview.js';import _0x32aedc from'./../../revisionviewer.js';import _0x373678 from'./revisionviewerloadingoverlay.js';import{getTranslation as _0x1e4b51}from'../../utils/common-translations.js';import _0x7a5555 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x528468{static get[_0x5ad5('0x7')](){return'RevisionViewerUI';}static get[_0x5ad5('0x13')](){return[_0x32aedc,_0x373678];}[_0x5ad5('0x18')](){const _0x34af91=this[_0x5ad5('0x6')],_0x17891c=_0x34af91[_0x5ad5('0x1d')]['get'](_0x32aedc),_0x5b979d=_0x34af91[_0x5ad5('0x1d')]['get'](_0x373678);_0x34af91['ui']['componentFactory']['add'](_0x5ad5('0x19'),_0x4ee2f0=>{const _0x4d10ff=new _0x351385(_0x4ee2f0);return _0x4d10ff['set']({'label':_0x1e4b51(_0x4ee2f0,_0x5ad5('0x12')),'icon':_0x7a5555,'withText':!0x0,'tooltip':!0x0,'class':_0x5ad5('0x16')}),this[_0x5ad5('0xe')](_0x4d10ff,_0x5ad5('0x8'),()=>{_0x34af91[_0x5ad5('0x1a')]['get'](_0x5ad5('0x14'))[_0x5ad5('0xc')]();}),_0x4d10ff;}),_0x34af91['ui'][_0x5ad5('0xb')][_0x5ad5('0x1')](_0x5ad5('0x1b'),_0x5985ea=>{const _0x2ea84a=new _0x351385(_0x5985ea);return _0x2ea84a['set']({'label':_0x1e4b51(_0x5985ea,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2ea84a['bind'](_0x5ad5('0x2'))['to'](_0x34af91[_0x5ad5('0x5')][_0x5ad5('0x3')](_0x5ad5('0x1b'))),this[_0x5ad5('0xe')](_0x2ea84a,_0x5ad5('0x8'),()=>_0x34af91[_0x5ad5('0x8')]('restoreRevision')),_0x2ea84a;}),_0x34af91['ui']['componentFactory'][_0x5ad5('0x1')](_0x5ad5('0x0'),_0x180edb=>{const _0x1c8ab2=new _0x25028(_0x180edb),_0x450086=_0x34af91[_0x5ad5('0x5')]['get'](_0x5ad5('0x11')),_0x210b07=_0x34af91[_0x5ad5('0x5')][_0x5ad5('0x3')](_0x5ad5('0x9'));return _0x1c8ab2[_0x5ad5('0xd')](_0x5ad5('0x17'))['to'](_0x450086,_0x5ad5('0x2')),_0x1c8ab2[_0x5ad5('0xd')](_0x5ad5('0x4'))['to'](_0x210b07,_0x5ad5('0x2')),_0x1c8ab2[_0x5ad5('0xd')](_0x5ad5('0xf'),'currentChangeNumber',_0x5ad5('0xa'),_0x5ad5('0x1c'))['to'](_0x17891c),this[_0x5ad5('0xe')](_0x1c8ab2,_0x5ad5('0x8'),(_0x5b155c,_0x1e7537)=>{_0x34af91[_0x5ad5('0x8')]('forward'===_0x1e7537?_0x5ad5('0x9'):'showPreviousChange');}),_0x1c8ab2;}),_0x5b979d[_0x5ad5('0x10')](),_0x17891c['on'](_0x5ad5('0x15'),(_0x1a7b24,_0x4a1bde,_0x47fea3)=>{_0x47fea3?_0x5b979d['hide']():_0x5b979d[_0x5ad5('0x10')]();});}}
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module revision-history/utils/common-translations
7
7
  */
8
- import { type Locale } from 'ckeditor5/src/utils';
8
+ import { type Locale } from 'ckeditor5/src/utils.js';
9
9
  export declare function getTranslation(locale: Locale, id: string, values?: TranslationValues): string;
10
10
  type TranslationValues = number | string | ReadonlyArray<number | string>;
11
11
  export {};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x167f0b,_0x4a3bc8,_0x4ff4b8){const t=_0x167f0b['t'];switch(_0x4a3bc8){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'},_0x4ff4b8);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4ff4b8);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 _0x4a3bc8;}}
23
+ export function getTranslation(_0x33e4c1,_0xdfec9a,_0x370e41){const t=_0x33e4c1['t'];switch(_0xdfec9a){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'},_0x370e41);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x370e41);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 _0xdfec9a;}}