@ckeditor/ckeditor5-revision-history 39.0.2 → 40.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/build/revision-history.js +1 -1
  4. package/ckeditor5-metadata.json +1 -1
  5. package/package.json +6 -6
  6. package/src/augmentation.d.ts +29 -29
  7. package/src/changeitem.d.ts +58 -58
  8. package/src/changeitem.js +1 -1
  9. package/src/editor/revisionviewereditor.d.ts +27 -27
  10. package/src/editor/revisionviewereditor.js +1 -1
  11. package/src/editor/revisionviewereditorui.d.ts +28 -28
  12. package/src/editor/revisionviewereditorui.js +1 -1
  13. package/src/editor/revisionviewereditoruiview.d.ts +43 -43
  14. package/src/editor/revisionviewereditoruiview.js +1 -1
  15. package/src/index.d.ts +15 -15
  16. package/src/revision.d.ts +153 -153
  17. package/src/revision.js +1 -1
  18. package/src/revisiondiff.d.ts +24 -24
  19. package/src/revisiondiff.js +1 -1
  20. package/src/revisionhistory.d.ts +99 -99
  21. package/src/revisionhistory.js +1 -1
  22. package/src/revisionhistoryadapter.d.ts +64 -64
  23. package/src/revisionhistoryconfig.d.ts +60 -60
  24. package/src/revisionsrepository.d.ts +52 -52
  25. package/src/revisionsrepository.js +1 -1
  26. package/src/revisiontracker.d.ts +81 -81
  27. package/src/revisiontracker.js +1 -1
  28. package/src/revisionviewer.d.ts +25 -25
  29. package/src/revisionviewer.js +1 -1
  30. package/src/ui/revision/createrevisionactionsdropdown.d.ts +10 -10
  31. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  32. package/src/ui/revision/revisionauthorview.d.ts +5 -5
  33. package/src/ui/revision/revisionauthorview.js +1 -1
  34. package/src/ui/revision/revisionnameview.d.ts +5 -5
  35. package/src/ui/revision/revisionnameview.js +1 -1
  36. package/src/ui/revision/revisionview.d.ts +95 -95
  37. package/src/ui/revision/revisionview.js +1 -1
  38. package/src/ui/revision/subrevisioncollapserview.d.ts +21 -21
  39. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  40. package/src/ui/revision/subrevisionview.d.ts +34 -34
  41. package/src/ui/revision/subrevisionview.js +1 -1
  42. package/src/ui/revision/utils.d.ts +5 -5
  43. package/src/ui/revision/utils.js +1 -1
  44. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +81 -81
  45. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  46. package/src/ui/revisionhistory/revisionhistoryui.d.ts +26 -26
  47. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  48. package/src/ui/revisionssidebar/revisionssidebar.d.ts +44 -44
  49. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  50. package/src/ui/revisionssidebar/revisionssidebarheaderview.d.ts +5 -5
  51. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  52. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +29 -29
  53. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  54. package/src/ui/revisionssidebar/revisionssidebarview.d.ts +44 -44
  55. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  56. package/src/ui/revisionssidebar/utils.d.ts +9 -9
  57. package/src/ui/revisionssidebar/utils.js +1 -1
  58. package/src/ui/revisionviewer/changedetailsview.d.ts +22 -22
  59. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  60. package/src/ui/revisionviewer/changesnavigationview.d.ts +40 -40
  61. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  62. package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +26 -26
  63. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  64. package/src/ui/revisionviewer/revisionviewerui.d.ts +28 -28
  65. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  66. package/src/utils/common-translations.d.ts +11 -11
  67. package/src/utils/common-translations.js +1 -1
  68. package/theme/changesnavigation.css +9 -0
  69. package/theme/revision/revision.css +9 -0
  70. package/theme/revision/revisionactions.css +9 -0
  71. package/theme/revision/revisionauthor.css +9 -0
  72. package/theme/revision/revisionname.css +9 -0
  73. package/theme/revision/subrevision.css +9 -0
  74. package/theme/revision/subrevisioncollapser.css +9 -0
  75. package/theme/revisionhistorysaverevisionform.css +5 -1
  76. package/theme/revisionssidebar/revisionssidebar.css +9 -0
  77. package/theme/revisionssidebar/revisionssidebarheader.css +9 -0
  78. package/theme/revisionssidebar/revisionssidebartimeperiod.css +9 -0
  79. package/theme/revisionviewer.css +9 -0
  80. package/theme/revisionviewerloadingoverlay.css +9 -0
@@ -1,26 +1,26 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module revision-history/ui/revisionhistory/revisionhistoryui
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import RevisionTracker from '../../revisiontracker';
10
- /**
11
- * TODO
12
- */
13
- export default class RevisionHistoryUI extends Plugin {
14
- /**
15
- * @inheritDoc
16
- */
17
- static get pluginName(): "RevisionHistoryUI";
18
- /**
19
- * @inheritDoc
20
- */
21
- static get requires(): readonly [typeof RevisionTracker];
22
- /**
23
- * @inheritDoc
24
- */
25
- init(): void;
26
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module revision-history/ui/revisionhistory/revisionhistoryui
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import RevisionTracker from '../../revisiontracker';
10
+ /**
11
+ * TODO
12
+ */
13
+ export default class RevisionHistoryUI extends Plugin {
14
+ /**
15
+ * @inheritDoc
16
+ */
17
+ static get pluginName(): "RevisionHistoryUI";
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ static get requires(): readonly [typeof RevisionTracker];
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ init(): void;
26
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4e72=['Open\x20revision\x20history','revisionName','requires','saveRevision','showRevisionViewerCallback','config','componentFactory','isOpen','add','items','plugins','bind','Revision\x20history','pluginName','set','init','length','children','execute','panelView','buttonView','render','view','RevisionTracker','remove','isReady','change:isOpen','addMany','RevisionHistoryUI','editor','get','focus','revisionHistory','Save\x20current\x20revision','reset','isReadOnly','isEnabled'];(function(_0x21abf0,_0x4e72f1){const _0x1f8c2f=function(_0x56f784){while(--_0x56f784){_0x21abf0['push'](_0x21abf0['shift']());}};_0x1f8c2f(++_0x4e72f1);}(_0x4e72,0xf1));const _0x1f8c=function(_0x21abf0,_0x4e72f1){_0x21abf0=_0x21abf0-0x0;let _0x1f8c2f=_0x4e72[_0x21abf0];return _0x1f8c2f;};import{Plugin as _0x31a7f2}from'ckeditor5/src/core';import{ListView as _0xf8f43c,ListItemView as _0x5d261d,ButtonView as _0xf86e22,createDropdown as _0x5baf35}from'ckeditor5/src/ui';import _0x5f4c0a from'../../revisiontracker';import _0xdd5897 from'./revisionhistorysaverevisionformview';import _0x29b050 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x577ced}from'../../utils/common-translations';export default class u extends _0x31a7f2{static get[_0x1f8c('0x1f')](){return _0x1f8c('0x9');}static get[_0x1f8c('0x14')](){return[_0x5f4c0a];}[_0x1f8c('0x21')](){const _0x566ff0=this[_0x1f8c('0xa')],_0x37d8ba=_0x566ff0[_0x1f8c('0x1c')]['get'](_0x1f8c('0x4'));_0x566ff0['ui'][_0x1f8c('0x18')]['add'](_0x1f8c('0xd'),_0x565003=>{const _0x234cab=_0x5baf35(_0x565003),_0x33bd9c=_0x234cab[_0x1f8c('0x0')][_0x1f8c('0x23')],_0x490305=new _0xf8f43c(_0x565003),_0x2388d7=new _0x5d261d(_0x565003),_0x2f1522=new _0xf86e22(_0x565003),_0x51a36e=new _0x5d261d(_0x565003),_0x2c7d82=new _0xf86e22(_0x565003),_0x25bfd2=new _0xdd5897(_0x565003);function _0x4761e9(){_0x33bd9c[_0x1f8c('0x22')]&&_0x33bd9c['remove'](0x0),_0x33bd9c[_0x1f8c('0x1a')](_0x490305);}function _0x4ab0a4(){_0x234cab[_0x1f8c('0x19')]=!0x1,_0x566ff0['editing'][_0x1f8c('0x3')][_0x1f8c('0xc')]();}return _0x234cab[_0x1f8c('0x1d')]('isEnabled')['to'](_0x37d8ba,_0x1f8c('0x6'),_0x37d8ba,_0x1f8c('0x11'),_0x566ff0,'isReadOnly',(_0x1a1575,_0x593456,_0x402e30)=>_0x1a1575&&_0x593456&&!_0x402e30),_0x234cab[_0x1f8c('0x1')][_0x1f8c('0x20')]({'icon':_0x29b050,'label':_0x577ced(_0x565003,_0x1f8c('0x1e')),'tooltip':!0x0}),_0x2f1522[_0x1f8c('0x20')]({'label':_0x577ced(_0x565003,_0x1f8c('0xe')),'withText':!0x0}),_0x2f1522[_0x1f8c('0x1d')]('isEnabled')['to'](_0x37d8ba,_0x1f8c('0x6'),_0x37d8ba,_0x1f8c('0x11'),_0x566ff0,_0x1f8c('0x10'),(_0xf47c6c,_0x470c9f,_0x4efd7c)=>_0xf47c6c&&_0x470c9f&&!_0x4efd7c),_0x2f1522['on'](_0x1f8c('0x24'),()=>function(){_0x33bd9c['length']&&_0x33bd9c[_0x1f8c('0x5')](0x0),(_0x25bfd2[_0x1f8c('0xf')](),_0x33bd9c['add'](_0x25bfd2),_0x25bfd2['focus']());}()),_0x2c7d82[_0x1f8c('0x20')]({'label':_0x577ced(_0x565003,_0x1f8c('0x12')),'withText':!0x0}),_0x2c7d82[_0x1f8c('0x1d')]('isEnabled')['to'](_0x37d8ba,'isReady',_0x566ff0,_0x1f8c('0x10'),(_0x114bc9,_0x42d191)=>_0x114bc9&&!_0x42d191),_0x2c7d82['on'](_0x1f8c('0x24'),()=>{_0x566ff0[_0x1f8c('0x17')][_0x1f8c('0xb')](_0x1f8c('0xd'))[_0x1f8c('0x16')](),_0x4ab0a4();}),_0x2388d7[_0x1f8c('0x23')][_0x1f8c('0x1a')](_0x2f1522),_0x51a36e[_0x1f8c('0x23')][_0x1f8c('0x1a')](_0x2c7d82),_0x490305[_0x1f8c('0x1b')][_0x1f8c('0x8')]([_0x2388d7,_0x51a36e]),_0x234cab['on'](_0x1f8c('0x7'),()=>_0x4761e9()),_0x25bfd2['saveButtonView']['bind'](_0x1f8c('0x11'))['to'](_0x37d8ba,'isReady',_0x37d8ba,_0x1f8c('0x11'),_0x566ff0,_0x1f8c('0x10'),(_0x4fe136,_0x39bd74,_0x16f21d)=>_0x4fe136&&_0x39bd74&&!_0x16f21d),_0x25bfd2['on']('submit',()=>(_0x566ff0['plugins'][_0x1f8c('0xb')](_0x5f4c0a)[_0x1f8c('0x15')]({'name':_0x25bfd2[_0x1f8c('0x13')]}),void _0x4ab0a4())),_0x25bfd2['on']('cancel',()=>_0x4761e9()),_0x25bfd2[_0x1f8c('0x2')](),_0x4761e9(),_0x234cab;});}}
23
+ const _0x2d82=['revisionHistory','execute','config','focus','isReady','items','plugins','Open\x20revision\x20history','cancel','pluginName','init','Save\x20current\x20revision','saveRevision','editing','requires','history','submit','get','set','reset','buttonView','showRevisionViewerCallback','isReadOnly','revisionName','editor','children','remove','saveButtonView','componentFactory','bind','isEnabled','add','RevisionHistoryUI'];(function(_0x299e29,_0x2d8290){const _0x4d67e5=function(_0x51c0b6){while(--_0x51c0b6){_0x299e29['push'](_0x299e29['shift']());}};_0x4d67e5(++_0x2d8290);}(_0x2d82,0x112));const _0x4d67=function(_0x299e29,_0x2d8290){_0x299e29=_0x299e29-0x0;let _0x4d67e5=_0x2d82[_0x299e29];return _0x4d67e5;};import{Plugin as _0x56d854,icons as _0x5676a9}from'ckeditor5/src/core';import{ListView as _0x2a1402,ListItemView as _0x568ad6,ButtonView as _0x414283,createDropdown as _0x4857ce}from'ckeditor5/src/ui';import _0x48d3fd from'../../revisiontracker';import _0x1721ca from'./revisionhistorysaverevisionformview';import{getTranslation as _0xbcf14a}from'../../utils/common-translations';export default class u extends _0x56d854{static get[_0x4d67('0x20')](){return _0x4d67('0x16');}static get[_0x4d67('0x4')](){return[_0x48d3fd];}[_0x4d67('0x0')](){const _0x13c01c=this[_0x4d67('0xe')],_0x5d47cd=_0x13c01c['plugins'][_0x4d67('0x7')]('RevisionTracker');_0x13c01c['ui'][_0x4d67('0x12')]['add'](_0x4d67('0x17'),_0x1fc2ea=>{const _0x36ef91=_0x4857ce(_0x1fc2ea),_0x1347c9=_0x36ef91['panelView'][_0x4d67('0xf')],_0x5ba6ab=new _0x2a1402(_0x1fc2ea),_0x983938=new _0x568ad6(_0x1fc2ea),_0x1c0302=new _0x414283(_0x1fc2ea),_0x2b839f=new _0x568ad6(_0x1fc2ea),_0x1e9170=new _0x414283(_0x1fc2ea),_0x184629=new _0x1721ca(_0x1fc2ea);function _0x2b589f(){_0x1347c9['length']&&_0x1347c9[_0x4d67('0x10')](0x0),_0x1347c9[_0x4d67('0x15')](_0x5ba6ab);}function _0x2369af(){_0x36ef91['isOpen']=!0x1,_0x13c01c[_0x4d67('0x3')]['view']['focus']();}return _0x36ef91[_0x4d67('0x13')](_0x4d67('0x14'))['to'](_0x5d47cd,_0x4d67('0x1b'),_0x5d47cd,_0x4d67('0x14'),_0x13c01c,'isReadOnly',(_0x4d3aa5,_0x179e6d,_0x3e2443)=>_0x4d3aa5&&_0x179e6d&&!_0x3e2443),_0x36ef91[_0x4d67('0xa')][_0x4d67('0x8')]({'icon':_0x5676a9[_0x4d67('0x5')],'label':_0xbcf14a(_0x1fc2ea,'Revision\x20history'),'tooltip':!0x0}),_0x1c0302[_0x4d67('0x8')]({'label':_0xbcf14a(_0x1fc2ea,_0x4d67('0x1')),'withText':!0x0}),_0x1c0302['bind'](_0x4d67('0x14'))['to'](_0x5d47cd,_0x4d67('0x1b'),_0x5d47cd,_0x4d67('0x14'),_0x13c01c,_0x4d67('0xc'),(_0x4329c0,_0x1f0097,_0x21ea1c)=>_0x4329c0&&_0x1f0097&&!_0x21ea1c),_0x1c0302['on'](_0x4d67('0x18'),()=>function(){_0x1347c9['length']&&_0x1347c9[_0x4d67('0x10')](0x0),(_0x184629[_0x4d67('0x9')](),_0x1347c9[_0x4d67('0x15')](_0x184629),_0x184629[_0x4d67('0x1a')]());}()),_0x1e9170[_0x4d67('0x8')]({'label':_0xbcf14a(_0x1fc2ea,_0x4d67('0x1e')),'withText':!0x0}),_0x1e9170[_0x4d67('0x13')]('isEnabled')['to'](_0x5d47cd,_0x4d67('0x1b'),_0x13c01c,_0x4d67('0xc'),(_0x3fc1ed,_0x32d3e7)=>_0x3fc1ed&&!_0x32d3e7),_0x1e9170['on'](_0x4d67('0x18'),()=>{_0x13c01c[_0x4d67('0x19')][_0x4d67('0x7')](_0x4d67('0x17'))[_0x4d67('0xb')](),_0x2369af();}),_0x983938[_0x4d67('0xf')]['add'](_0x1c0302),_0x2b839f[_0x4d67('0xf')][_0x4d67('0x15')](_0x1e9170),_0x5ba6ab[_0x4d67('0x1c')]['addMany']([_0x983938,_0x2b839f]),_0x36ef91['on']('change:isOpen',()=>_0x2b589f()),_0x184629[_0x4d67('0x11')]['bind'](_0x4d67('0x14'))['to'](_0x5d47cd,_0x4d67('0x1b'),_0x5d47cd,'isEnabled',_0x13c01c,_0x4d67('0xc'),(_0x217d57,_0x50a060,_0x506e8d)=>_0x217d57&&_0x50a060&&!_0x506e8d),_0x184629['on'](_0x4d67('0x6'),()=>(_0x13c01c[_0x4d67('0x1d')][_0x4d67('0x7')](_0x48d3fd)[_0x4d67('0x2')]({'name':_0x184629[_0x4d67('0xd')]}),void _0x2369af())),_0x184629['on'](_0x4d67('0x1f'),()=>_0x2b589f()),_0x184629['render'](),_0x2b589f(),_0x36ef91;});}}
@@ -1,44 +1,44 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module revision-history/ui/revisionsidebar/revisionsidebar
7
- */
8
- import { Plugin, type Editor } from 'ckeditor5/src/core';
9
- import RevisionViewer from '../../revisionviewer';
10
- import type { default as RevisionView } from '../revision/revisionview';
11
- /**
12
- * TODO
13
- */
14
- export default class RevisionsSidebar extends Plugin {
15
- static defaultRevisionActions: Array<string>;
16
- static availableRevisionActions: Record<string, RevisionAction>;
17
- /**
18
- * @inheritDoc
19
- */
20
- static get pluginName(): "RevisionsSidebar";
21
- /**
22
- * @inheritDoc
23
- */
24
- static get requires(): readonly [typeof RevisionViewer];
25
- /**
26
- * @inheritDoc
27
- */
28
- constructor(editor: Editor);
29
- /**
30
- * @inheritDoc
31
- */
32
- init(): void;
33
- /**
34
- * @inheritDoc
35
- */
36
- destroy(): void;
37
- }
38
- export interface RevisionAction {
39
- name: string;
40
- class?: string;
41
- action: (editor: Editor, revisionView: RevisionView) => void;
42
- isVisible?: (editor: Editor, revisionView: RevisionView) => boolean;
43
- isEnabled?: (editor: Editor, revisionView: RevisionView) => boolean;
44
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module revision-history/ui/revisionsidebar/revisionsidebar
7
+ */
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core';
9
+ import RevisionViewer from '../../revisionviewer';
10
+ import type { default as RevisionView } from '../revision/revisionview';
11
+ /**
12
+ * TODO
13
+ */
14
+ export default class RevisionsSidebar extends Plugin {
15
+ static defaultRevisionActions: Array<string>;
16
+ static availableRevisionActions: Record<string, RevisionAction>;
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ static get pluginName(): "RevisionsSidebar";
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ static get requires(): readonly [typeof RevisionViewer];
25
+ /**
26
+ * @inheritDoc
27
+ */
28
+ constructor(editor: Editor);
29
+ /**
30
+ * @inheritDoc
31
+ */
32
+ init(): void;
33
+ /**
34
+ * @inheritDoc
35
+ */
36
+ destroy(): void;
37
+ }
38
+ export interface RevisionAction {
39
+ name: string;
40
+ class?: string;
41
+ action: (editor: Editor, revisionView: RevisionView) => void;
42
+ isVisible?: (editor: Editor, revisionView: RevisionView) => boolean;
43
+ isEnabled?: (editor: Editor, revisionView: RevisionView) => boolean;
44
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x21e5=['plugins','fieldView','selectRevision','repository','name','add','appendChild','RevisionsSidebar','ready','destroy','select','_sidebarView','revisionHistory.viewerSidebarContainer','timePeriodViews','getLaterVisibleRevision','_revisionViewer','remove','getRevisionsInDiff','newRevisionId','data','revisionHistory','editor','nameRevision','highlightRevisions','Compare\x20against\x20selected','_createRevisionActions','render','getEarlierVisibleRevision','revisionSelected','length','map','pluginName','isEnabled','getRevision','assign','availableRevisionActions','config','_handleEditorDataReady','focus','getIndex','revisionSetName','isReady','defaultRevisionActions','action','_handleDiffChange','requires','bind','diff','_revisionsRepository','_handleRevisionSetName','revisionHistory.revisionActions','_handleRevisionSelected','compare','locale','_revisions','isVisible','get','listenTo','restoreRevision'];(function(_0x3b7b7e,_0x21e588){const _0x249a92=function(_0x2e2f60){while(--_0x2e2f60){_0x3b7b7e['push'](_0x3b7b7e['shift']());}};_0x249a92(++_0x21e588);}(_0x21e5,0x15e));const _0x249a=function(_0x3b7b7e,_0x21e588){_0x3b7b7e=_0x3b7b7e-0x0;let _0x249a92=_0x21e5[_0x3b7b7e];return _0x249a92;};import{Plugin as _0x58ff05}from'ckeditor5/src/core';import _0x5a5579 from'./revisionssidebarview';import _0x4a14ac from'../../revisionviewer';export default class w extends _0x58ff05{static get[_0x249a('0x23')](){return _0x249a('0xb');}static get[_0x249a('0x31')](){return[_0x4a14ac];}constructor(_0x56fdde){super(_0x56fdde),this['_revisionViewer']=_0x56fdde[_0x249a('0x4')][_0x249a('0x1')](_0x4a14ac),this[_0x249a('0x34')]=this[_0x249a('0x13')][_0x249a('0x7')],this['_sidebarView']=null;}['init'](){const _0x245ff7=this[_0x249a('0x34')][_0x249a('0x3a')],_0x490e87=this['_createRevisionActions'](),_0x40ae60=this[_0x249a('0x19')]['config'][_0x249a('0x1')](_0x249a('0x10'));this[_0x249a('0xf')]=new _0x5a5579(this[_0x249a('0x19')][_0x249a('0x39')],_0x245ff7,_0x490e87),this[_0x249a('0xf')]['on'](_0x249a('0x20'),this[_0x249a('0x37')][_0x249a('0x32')](this)),this[_0x249a('0xf')]['on'](_0x249a('0x2c'),this['_handleRevisionSetName'][_0x249a('0x32')](this)),this[_0x249a('0xf')][_0x249a('0x32')]('isEnabled')['to'](this[_0x249a('0x13')]),this[_0x249a('0xf')][_0x249a('0x11')]['on']('add',(_0x218e6c,_0x47ec84)=>{_0x47ec84['revisionViews']['on'](_0x249a('0x9'),(_0x1919de,_0xc357ce)=>{_0xc357ce[_0x249a('0x32')](_0x249a('0x24'),_0x249a('0x2d'))['to'](this[_0x249a('0x13')]);});}),this[_0x249a('0xf')][_0x249a('0x1e')](),this[_0x249a('0x2')](this[_0x249a('0x19')][_0x249a('0x17')],_0x249a('0xc'),this['_handleEditorDataReady'][_0x249a('0x32')](this)),this[_0x249a('0x2')](this[_0x249a('0x13')],'change:diff',this[_0x249a('0x30')][_0x249a('0x32')](this)),_0x40ae60[_0x249a('0xa')](this[_0x249a('0xf')]['element']);}[_0x249a('0xd')](){this[_0x249a('0xf')]['element'][_0x249a('0x14')](),this[_0x249a('0xf')][_0x249a('0xd')]();}[_0x249a('0x29')](){const _0x22f0db=this['_revisionsRepository'][_0x249a('0x25')](0x0);if(_0x22f0db){const _0x152919=this[_0x249a('0x34')][_0x249a('0x1f')](_0x22f0db['id']);this[_0x249a('0x13')][_0x249a('0x38')](_0x22f0db,_0x152919);}}['_handleRevisionSelected'](_0x3fe627,_0xb16a21){const _0x143154=this[_0x249a('0x34')]['getRevision'](_0xb16a21['id']),_0x4788f8=this[_0x249a('0x34')][_0x249a('0x1f')](_0x143154['id']);this[_0x249a('0x13')][_0x249a('0x38')](_0x143154,_0x4788f8);}[_0x249a('0x35')](_0x45a3c6,_0x3bd4d9){this[_0x249a('0x34')]['getRevision'](_0x3bd4d9['id'])['setName'](_0x3bd4d9[_0x249a('0x8')]);}[_0x249a('0x30')](_0x1813b5,_0x715e86,_0x63af0a){const _0x43597a=this[_0x249a('0x34')][_0x249a('0x15')](_0x63af0a);_0x43597a[_0x249a('0x21')]>0x2?(this['_sidebarView'][_0x249a('0x1b')](_0x43597a),this[_0x249a('0xf')][_0x249a('0x6')](null)):(this[_0x249a('0xf')]['highlightRevisions']([]),this['_sidebarView'][_0x249a('0x6')](_0x43597a[0x0]));}[_0x249a('0x1d')](){const _0x22183c=this[_0x249a('0x19')],_0x262365=w[_0x249a('0x27')],_0x43f2df=_0x22183c[_0x249a('0x28')][_0x249a('0x1')](_0x249a('0x36'))||w['defaultRevisionActions'];if(_0x43f2df[_0x249a('0x21')])return _0x43f2df[_0x249a('0x22')](_0x5c309b=>{const _0xd268c6='string'==typeof _0x5c309b?Object[_0x249a('0x26')]({},_0x262365[_0x5c309b]):_0x5c309b;return _0xd268c6[_0x249a('0x2f')]=_0xd268c6[_0x249a('0x2f')]['bind'](this,_0x22183c),_0xd268c6['isVisible']&&(_0xd268c6[_0x249a('0x0')]=_0xd268c6[_0x249a('0x0')][_0x249a('0x32')](this,_0x22183c)),_0xd268c6;});}}w[_0x249a('0x27')]={'compareAgainstSelected':{'name':_0x249a('0x1c'),'action':({plugins:_0x3f9919},_0x2de166)=>{const _0x2f8fa3=_0x3f9919[_0x249a('0x1')](_0x4a14ac),_0x67d55f=_0x2f8fa3[_0x249a('0x7')];let _0x94f3f=_0x2f8fa3[_0x249a('0x33')][_0x249a('0x16')],_0x1b2249=_0x2de166['id'];_0x67d55f[_0x249a('0x2b')](_0x94f3f)>_0x67d55f[_0x249a('0x2b')](_0x1b2249)&&([_0x94f3f,_0x1b2249]=[_0x1b2249,_0x94f3f]),_0x2f8fa3[_0x249a('0x38')](_0x94f3f,_0x1b2249);},'isVisible':({plugins:_0x178a79},_0x2126f9)=>{const _0x4b1933=_0x178a79[_0x249a('0x1')](_0x4a14ac);return!(_0x4b1933[_0x249a('0x7')][_0x249a('0x15')](_0x4b1933['diff'])[_0x249a('0x21')]>0x2)&&!_0x2126f9['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x27c1ed,{id:_0x5eb0b5})=>{_0x27c1ed['config']['get'](_0x249a('0x18'))['restoreRevisionCallback'](_0x5eb0b5);},'isVisible':({plugins:_0x2beaf8},_0x52dd99)=>!!_0x2beaf8[_0x249a('0x1')](_0x4a14ac)[_0x249a('0x7')][_0x249a('0x12')](_0x52dd99['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x363ac2},{id:_0xc5000d,revisionNameView:_0x3a3f36})=>{const _0x12a352=_0x363ac2[_0x249a('0x1')](_0x4a14ac),_0x42770a=_0x12a352[_0x249a('0x7')][_0x249a('0x1f')](_0xc5000d);_0x12a352[_0x249a('0x38')](_0xc5000d,_0x42770a),_0x3a3f36[_0x249a('0x2a')](),_0x3a3f36[_0x249a('0x5')][_0x249a('0xe')]();}}},w[_0x249a('0x2e')]=['compareAgainstSelected',_0x249a('0x3'),_0x249a('0x1a')];
23
+ const _0x45a1=['locale','getLaterVisibleRevision','_createRevisionActions','isVisible','compare','Restore\x20this\x20revision','getRevision','focus','pluginName','bind','_handleRevisionSetName','map','repository','init','timePeriodViews','_revisionViewer','revisionHistory','RevisionsSidebar','isEnabled','plugins','assign','_handleEditorDataReady','element','render','destroy','get','select','change:diff','_revisions','Compare\x20against\x20selected','editor','length','isReady','nameRevision','add','Name\x20this\x20revision','getEarlierVisibleRevision','highlightRevisions','revisionSelected','appendChild','data','requires','remove','_handleRevisionSelected','revisionViews','name','_handleDiffChange','selectRevision','_revisionsRepository','compareAgainstSelected','getIndex','config','availableRevisionActions','restoreRevisionCallback','revisionSetName','newRevisionId','action','defaultRevisionActions','getRevisionsInDiff','diff','_sidebarView'];(function(_0x4d6521,_0x45a17c){const _0x400439=function(_0x4466c6){while(--_0x4466c6){_0x4d6521['push'](_0x4d6521['shift']());}};_0x400439(++_0x45a17c);}(_0x45a1,0x1a9));const _0x4004=function(_0x4d6521,_0x45a17c){_0x4d6521=_0x4d6521-0x0;let _0x400439=_0x45a1[_0x4d6521];return _0x400439;};import{Plugin as _0x4d5889}from'ckeditor5/src/core';import _0x4827d0 from'./revisionssidebarview';import _0x2a6779 from'../../revisionviewer';export default class w extends _0x4d5889{static get[_0x4004('0xa')](){return _0x4004('0x13');}static get[_0x4004('0x2b')](){return[_0x2a6779];}constructor(_0x53e3b8){super(_0x53e3b8),this['_revisionViewer']=_0x53e3b8[_0x4004('0x15')][_0x4004('0x1b')](_0x2a6779),this[_0x4004('0x32')]=this['_revisionViewer']['repository'],this[_0x4004('0x1')]=null;}[_0x4004('0xf')](){const _0x3e308e=this[_0x4004('0x32')][_0x4004('0x1e')],_0xe9c757=this[_0x4004('0x4')](),_0x3843af=this[_0x4004('0x20')][_0x4004('0x35')][_0x4004('0x1b')]('revisionHistory.viewerSidebarContainer');this[_0x4004('0x1')]=new _0x4827d0(this[_0x4004('0x20')][_0x4004('0x2')],_0x3e308e,_0xe9c757),this[_0x4004('0x1')]['on'](_0x4004('0x28'),this[_0x4004('0x2d')][_0x4004('0xb')](this)),this['_sidebarView']['on'](_0x4004('0x38'),this[_0x4004('0xc')][_0x4004('0xb')](this)),this[_0x4004('0x1')][_0x4004('0xb')]('isEnabled')['to'](this['_revisionViewer']),this['_sidebarView'][_0x4004('0x10')]['on'](_0x4004('0x24'),(_0x3131ce,_0x470d70)=>{_0x470d70[_0x4004('0x2e')]['on']('add',(_0x36785a,_0x4b0b06)=>{_0x4b0b06[_0x4004('0xb')](_0x4004('0x14'),_0x4004('0x22'))['to'](this[_0x4004('0x11')]);});}),this['_sidebarView'][_0x4004('0x19')](),this['listenTo'](this[_0x4004('0x20')][_0x4004('0x2a')],'ready',this[_0x4004('0x17')][_0x4004('0xb')](this)),this['listenTo'](this[_0x4004('0x11')],_0x4004('0x1d'),this[_0x4004('0x30')]['bind'](this)),_0x3843af[_0x4004('0x29')](this[_0x4004('0x1')]['element']);}['destroy'](){this['_sidebarView'][_0x4004('0x18')][_0x4004('0x2c')](),this[_0x4004('0x1')][_0x4004('0x1a')]();}[_0x4004('0x17')](){const _0x10d1e5=this['_revisionsRepository'][_0x4004('0x8')](0x0);if(_0x10d1e5){const _0x2871a3=this[_0x4004('0x32')][_0x4004('0x26')](_0x10d1e5['id']);this[_0x4004('0x11')][_0x4004('0x6')](_0x10d1e5,_0x2871a3);}}[_0x4004('0x2d')](_0x5aacac,_0x4cf397){const _0x9711ee=this['_revisionsRepository'][_0x4004('0x8')](_0x4cf397['id']),_0x4abe35=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x9711ee['id']);this[_0x4004('0x11')]['compare'](_0x9711ee,_0x4abe35);}[_0x4004('0xc')](_0x18a979,_0xdf1c1){this[_0x4004('0x32')][_0x4004('0x8')](_0xdf1c1['id'])['setName'](_0xdf1c1[_0x4004('0x2f')]);}[_0x4004('0x30')](_0x3372b1,_0x479d00,_0x2286fc){const _0x3ee6e8=this['_revisionsRepository'][_0x4004('0x3c')](_0x2286fc);_0x3ee6e8[_0x4004('0x21')]>0x2?(this[_0x4004('0x1')][_0x4004('0x27')](_0x3ee6e8),this['_sidebarView'][_0x4004('0x31')](null)):(this[_0x4004('0x1')][_0x4004('0x27')]([]),this[_0x4004('0x1')][_0x4004('0x31')](_0x3ee6e8[0x0]));}[_0x4004('0x4')](){const _0x3b8b56=this[_0x4004('0x20')],_0x5d4b89=w[_0x4004('0x36')],_0x50319a=_0x3b8b56[_0x4004('0x35')][_0x4004('0x1b')]('revisionHistory.revisionActions')||w[_0x4004('0x3b')];if(_0x50319a[_0x4004('0x21')])return _0x50319a[_0x4004('0xd')](_0x51d0f1=>{const _0x165b26='string'==typeof _0x51d0f1?Object[_0x4004('0x16')]({},_0x5d4b89[_0x51d0f1]):_0x51d0f1;return _0x165b26[_0x4004('0x3a')]=_0x165b26[_0x4004('0x3a')][_0x4004('0xb')](this,_0x3b8b56),_0x165b26[_0x4004('0x5')]&&(_0x165b26[_0x4004('0x5')]=_0x165b26[_0x4004('0x5')][_0x4004('0xb')](this,_0x3b8b56)),_0x165b26;});}}w[_0x4004('0x36')]={'compareAgainstSelected':{'name':_0x4004('0x1f'),'action':({plugins:_0x34aed9},_0x1cb78b)=>{const _0x1cb35e=_0x34aed9['get'](_0x2a6779),_0x2a450c=_0x1cb35e[_0x4004('0xe')];let _0xaa3e31=_0x1cb35e[_0x4004('0x0')][_0x4004('0x39')],_0xc6adc3=_0x1cb78b['id'];_0x2a450c[_0x4004('0x34')](_0xaa3e31)>_0x2a450c['getIndex'](_0xc6adc3)&&([_0xaa3e31,_0xc6adc3]=[_0xc6adc3,_0xaa3e31]),_0x1cb35e[_0x4004('0x6')](_0xaa3e31,_0xc6adc3);},'isVisible':({plugins:_0x36b440},_0x370b1b)=>{const _0x4ed8d5=_0x36b440[_0x4004('0x1b')](_0x2a6779);return!(_0x4ed8d5[_0x4004('0xe')]['getRevisionsInDiff'](_0x4ed8d5[_0x4004('0x0')])[_0x4004('0x21')]>0x2)&&!_0x370b1b['isSelected'];}},'restoreRevision':{'name':_0x4004('0x7'),'action':(_0x3947d8,{id:_0x51ec51})=>{_0x3947d8['config']['get'](_0x4004('0x12'))[_0x4004('0x37')](_0x51ec51);},'isVisible':({plugins:_0x2d8a84},_0x1373de)=>!!_0x2d8a84['get'](_0x2a6779)[_0x4004('0xe')][_0x4004('0x3')](_0x1373de['id'])},'nameRevision':{'name':_0x4004('0x25'),'action':({plugins:_0x6eca2d},{id:_0x48b4e4,revisionNameView:_0x3445d6})=>{const _0x52dd4e=_0x6eca2d[_0x4004('0x1b')](_0x2a6779),_0x5ab1d5=_0x52dd4e['repository'][_0x4004('0x26')](_0x48b4e4);_0x52dd4e[_0x4004('0x6')](_0x48b4e4,_0x5ab1d5),_0x3445d6[_0x4004('0x9')](),_0x3445d6['fieldView'][_0x4004('0x1c')]();}}},w[_0x4004('0x3b')]=[_0x4004('0x33'),'restoreRevision',_0x4004('0x23')];
@@ -1,5 +1,5 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- import '../../../theme/revisionssidebar/revisionssidebarheader.css';
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ import '../../../theme/revisionssidebar/revisionssidebarheader.css';
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4481=['setTemplate','div','ck-revision-history-sidebar__header__label','content','span','ck-reset_all'];(function(_0x26d719,_0x4481d4){const _0x4bacd3=function(_0x287631){while(--_0x287631){_0x26d719['push'](_0x26d719['shift']());}};_0x4bacd3(++_0x4481d4);}(_0x4481,0x107));const _0x4bac=function(_0x26d719,_0x4481d4){_0x26d719=_0x26d719-0x0;let _0x4bacd3=_0x4481[_0x26d719];return _0x4bacd3;};import{View as _0x5a8555,IconView as _0x1d480e}from'ckeditor5/src/ui';import{getTranslation as _0x3c3517}from'../../utils/common-translations';import _0x1a631a from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x5a8555{constructor(_0x45b1bd){super(_0x45b1bd);const _0xed6efb=new _0x1d480e();_0xed6efb[_0x4bac('0x4')]=_0x1a631a,this[_0x4bac('0x1')]({'tag':_0x4bac('0x2'),'attributes':{'class':['ck',_0x4bac('0x0'),'ck-revision-history-sidebar__header']},'children':[_0xed6efb,{'tag':_0x4bac('0x5'),'attributes':{'class':['ck',_0x4bac('0x3')]},'children':[_0x3c3517(_0x45b1bd,'Revision\x20history')]}]});}}
23
+ const _0x38c0=['div','content','span','setTemplate','ck-revision-history-sidebar__header','ck-revision-history-sidebar__header__label','ck-reset_all'];(function(_0x10bd87,_0x38c0fc){const _0x21d5c9=function(_0x416229){while(--_0x416229){_0x10bd87['push'](_0x10bd87['shift']());}};_0x21d5c9(++_0x38c0fc);}(_0x38c0,0xaa));const _0x21d5=function(_0x10bd87,_0x38c0fc){_0x10bd87=_0x10bd87-0x0;let _0x21d5c9=_0x38c0[_0x10bd87];return _0x21d5c9;};import{View as _0x4586fe,IconView as _0x406699}from'ckeditor5/src/ui';import{getTranslation as _0xfa1a3b}from'../../utils/common-translations';import{icons as _0x2b836f}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class sr extends _0x4586fe{constructor(_0x5d70fe){super(_0x5d70fe);const _0x48b7a2=new _0x406699();_0x48b7a2[_0x21d5('0x6')]=_0x2b836f['history'],this[_0x21d5('0x1')]({'tag':_0x21d5('0x5'),'attributes':{'class':['ck',_0x21d5('0x4'),_0x21d5('0x2')]},'children':[_0x48b7a2,{'tag':_0x21d5('0x0'),'attributes':{'class':['ck',_0x21d5('0x3')]},'children':[_0xfa1a3b(_0x5d70fe,'Revision\x20history')]}]});}}
@@ -1,29 +1,29 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module revision-history/ui/revisionsidebar/revisionsidebartimeperiodview
7
- */
8
- import { View, type ViewCollection } from 'ckeditor5/src/ui';
9
- import type { Locale } from 'ckeditor5/src/utils';
10
- import RevisionView from '../revision/revisionview';
11
- import '../../../theme/revisionssidebar/revisionssidebartimeperiod.css';
12
- import type { RevisionAction } from './revisionssidebar';
13
- import type Revision from '../../revision';
14
- /**
15
- * TODO
16
- */
17
- export default class RevisionsSidebarTimePeriodView extends View {
18
- startDate: Date;
19
- revisionViews: ViewCollection<RevisionView>;
20
- constructor(locale: Locale, startDate: Date, revisionActions: Array<RevisionAction>);
21
- /**
22
- * TODO
23
- */
24
- addRevision(newRevision: Revision): void;
25
- /**
26
- * TODO
27
- */
28
- removeRevision(revision: Revision): void;
29
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module revision-history/ui/revisionsidebar/revisionsidebartimeperiodview
7
+ */
8
+ import { View, type ViewCollection } from 'ckeditor5/src/ui';
9
+ import type { Locale } from 'ckeditor5/src/utils';
10
+ import RevisionView from '../revision/revisionview';
11
+ import '../../../theme/revisionssidebar/revisionssidebartimeperiod.css';
12
+ import type { RevisionAction } from './revisionssidebar';
13
+ import type Revision from '../../revision';
14
+ /**
15
+ * TODO
16
+ */
17
+ export default class RevisionsSidebarTimePeriodView extends View {
18
+ startDate: Date;
19
+ revisionViews: ViewCollection<RevisionView>;
20
+ constructor(locale: Locale, startDate: Date, revisionActions: Array<RevisionAction>);
21
+ /**
22
+ * TODO
23
+ */
24
+ addRevision(newRevision: Revision): void;
25
+ /**
26
+ * TODO
27
+ */
28
+ removeRevision(revision: Revision): void;
29
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2d81=['uiLanguage','removeRevision','startDate','revisionViews','locale','localizedPeriodName','select','delegate','ck-revision-history-sidebar__time-period__label','remove','find','span','div','setTemplate','_revisionActions','ck-revision-history-sidebar__time-period','setName','addRevision','ck-revision-history-sidebar__time-period__revisions'];(function(_0x438f2b,_0x2d814b){const _0x494352=function(_0x3bf0f1){while(--_0x3bf0f1){_0x438f2b['push'](_0x438f2b['shift']());}};_0x494352(++_0x2d814b);}(_0x2d81,0x180));const _0x4943=function(_0x438f2b,_0x2d814b){_0x438f2b=_0x438f2b-0x0;let _0x494352=_0x2d81[_0x438f2b];return _0x494352;};import{View as _0x4d02a6}from'ckeditor5/src/ui';import _0x21bf97 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x185760}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x4d02a6{constructor(_0x488c16,_0x3a594d,_0x1af6b4){super(_0x488c16);const _0x516548=_0x185760(_0x3a594d,this[_0x4943('0x0')][_0x4943('0xf')])[_0x4943('0x1')];this[_0x4943('0x11')]=_0x3a594d,this[_0x4943('0x12')]=this['createCollection'](),this[_0x4943('0xa')]=_0x1af6b4,this[_0x4943('0x12')]['delegate'](_0x4943('0x2'))['to'](this),this['revisionViews'][_0x4943('0x3')](_0x4943('0xc'))['to'](this),this[_0x4943('0x9')]({'tag':_0x4943('0x8'),'attributes':{'class':['ck',_0x4943('0xb')]},'children':[{'tag':_0x4943('0x7'),'attributes':{'class':['ck',_0x4943('0x4')]},'children':[{'text':_0x516548}]},{'tag':_0x4943('0x8'),'attributes':{'class':['ck',_0x4943('0xe')]},'children':this['revisionViews']}]});}[_0x4943('0xd')](_0xa67063){const _0x3d7f7d=new _0x21bf97(this['locale'],_0xa67063,this[_0x4943('0xa')]);this[_0x4943('0x12')]['add'](_0x3d7f7d);}[_0x4943('0x10')](_0xac1be6){const _0x5b518a=this[_0x4943('0x12')][_0x4943('0x6')](_0x57dd22=>_0x57dd22['id']===_0xac1be6['id']);this[_0x4943('0x12')][_0x4943('0x5')](_0x5b518a);}}
23
+ const _0xfc52=['revisionViews','add','removeRevision','startDate','localizedPeriodName','createCollection','uiLanguage','delegate','locale','ck-revision-history-sidebar__time-period','div','ck-revision-history-sidebar__time-period__label','span','addRevision','ck-revision-history-sidebar__time-period__revisions'];(function(_0x15cb64,_0xfc5275){const _0x54f76c=function(_0x4eada5){while(--_0x4eada5){_0x15cb64['push'](_0x15cb64['shift']());}};_0x54f76c(++_0xfc5275);}(_0xfc52,0xbf));const _0x54f7=function(_0x15cb64,_0xfc5275){_0x15cb64=_0x15cb64-0x0;let _0x54f76c=_0xfc52[_0x15cb64];return _0x54f76c;};import{View as _0x1b0c29}from'ckeditor5/src/ui';import _0x4c93b1 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x324a48}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class di extends _0x1b0c29{constructor(_0x1c6e59,_0x4cf268,_0x55a452){super(_0x1c6e59);const _0x3d1c6e=_0x324a48(_0x4cf268,this['locale'][_0x54f7('0xa')])[_0x54f7('0x8')];this[_0x54f7('0x7')]=_0x4cf268,this[_0x54f7('0x4')]=this[_0x54f7('0x9')](),this['_revisionActions']=_0x55a452,this[_0x54f7('0x4')][_0x54f7('0xb')]('select')['to'](this),this[_0x54f7('0x4')][_0x54f7('0xb')]('setName')['to'](this),this['setTemplate']({'tag':_0x54f7('0xe'),'attributes':{'class':['ck',_0x54f7('0xd')]},'children':[{'tag':_0x54f7('0x1'),'attributes':{'class':['ck',_0x54f7('0x0')]},'children':[{'text':_0x3d1c6e}]},{'tag':_0x54f7('0xe'),'attributes':{'class':['ck',_0x54f7('0x3')]},'children':this[_0x54f7('0x4')]}]});}[_0x54f7('0x2')](_0x401cd2){const _0x5b6adb=new _0x4c93b1(this[_0x54f7('0xc')],_0x401cd2,this['_revisionActions']);this['revisionViews'][_0x54f7('0x5')](_0x5b6adb);}[_0x54f7('0x6')](_0x2a8041){const _0xe10c41=this[_0x54f7('0x4')]['find'](_0x3d5376=>_0x3d5376['id']===_0x2a8041['id']);this[_0x54f7('0x4')]['remove'](_0xe10c41);}}
@@ -1,44 +1,44 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module revision-history/ui/revisionsidebar/revisionsidebarview
7
- */
8
- import { View, type ViewCollection } from 'ckeditor5/src/ui';
9
- import type { Locale, Collection } from 'ckeditor5/src/utils';
10
- import RevisionsSidebarTimePeriodView from './revisionssidebartimeperiodview';
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';
15
- /**
16
- * TODO
17
- */
18
- export default class RevisionsSidebarView extends View {
19
- timePeriodViews: ViewCollection<RevisionsSidebarTimePeriodView>;
20
- /**
21
- * @observable
22
- */
23
- isEnabled: boolean;
24
- /**
25
- * @inheritDoc
26
- */
27
- constructor(locale: Locale, revisions: Collection<Revision>, revisionActions: Array<RevisionAction>);
28
- /**
29
- * @inheritDoc
30
- */
31
- render(): void;
32
- /**
33
- * TODO
34
- */
35
- get revisionViews(): Array<RevisionView>;
36
- /**
37
- * TODO
38
- */
39
- selectRevision(revisionToSelect: Revision | null): void;
40
- /**
41
- * TODO
42
- */
43
- highlightRevisions(revisionsToHighlight: Array<Revision>): void;
44
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module revision-history/ui/revisionsidebar/revisionsidebarview
7
+ */
8
+ import { View, type ViewCollection } from 'ckeditor5/src/ui';
9
+ import type { Locale, Collection } from 'ckeditor5/src/utils';
10
+ import RevisionsSidebarTimePeriodView from './revisionssidebartimeperiodview';
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';
15
+ /**
16
+ * TODO
17
+ */
18
+ export default class RevisionsSidebarView extends View {
19
+ timePeriodViews: ViewCollection<RevisionsSidebarTimePeriodView>;
20
+ /**
21
+ * @observable
22
+ */
23
+ isEnabled: boolean;
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ constructor(locale: Locale, revisions: Collection<Revision>, revisionActions: Array<RevisionAction>);
28
+ /**
29
+ * @inheritDoc
30
+ */
31
+ render(): void;
32
+ /**
33
+ * TODO
34
+ */
35
+ get revisionViews(): Array<RevisionView>;
36
+ /**
37
+ * TODO
38
+ */
39
+ selectRevision(revisionToSelect: Revision | null): void;
40
+ /**
41
+ * TODO
42
+ */
43
+ highlightRevisions(revisionsToHighlight: Array<Revision>): void;
44
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xa1b3=['ck-reset','get','add','timePeriodViews','ck-disabled','highlight','addRevision','select','getTime','map','uiLanguage','_addRevision','bindTemplate','div','delegate','ck-rounded-corners','locale','_getTimePeriodViewByStartDate','find','revisionSelected','fire','ck-revision-history-sidebar','setName','startDate','createdAt','set','_removeRevision','deselect','_revisions','revisionViews','_revisionActions','createCollection','render','setTemplate','isEnabled','unhighlight'];(function(_0x43c11a,_0xa1b3e6){const _0x424003=function(_0x3f222d){while(--_0x3f222d){_0x43c11a['push'](_0x43c11a['shift']());}};_0x424003(++_0xa1b3e6);}(_0xa1b3,0x180));const _0x4240=function(_0x43c11a,_0xa1b3e6){_0x43c11a=_0x43c11a-0x0;let _0x424003=_0xa1b3[_0x43c11a];return _0x424003;};import{View as _0x508840}from'ckeditor5/src/ui';import _0x3628d2 from'./revisionssidebartimeperiodview';import _0x5a7b19 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x19f214}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x508840{constructor(_0x677403,_0x3005d8,_0x488c47){super(_0x677403);const _0x340224=this[_0x4240('0x18')];this[_0x4240('0xf')]=this[_0x4240('0x7')](),this[_0x4240('0xf')][_0x4240('0x1a')](_0x4240('0x13'))['to'](this),this['timePeriodViews'][_0x4240('0x1a')](_0x4240('0x22'))['to'](this),this['_revisions']=_0x3005d8,this[_0x4240('0x6')]=_0x488c47,this['on'](_0x4240('0x13'),(_0x1bb75a,_0xd0f1c2)=>{this[_0x4240('0x20')](_0x4240('0x1f'),_0xd0f1c2);}),this['on']('setName',(_0x3f7921,_0x56b495)=>{this['fire']('revisionSetName',_0x56b495);}),this[_0x4240('0x1')]('isEnabled',!0x1),this[_0x4240('0x9')]({'tag':_0x4240('0x19'),'attributes':{'class':['ck',_0x4240('0xc'),_0x4240('0x1b'),_0x4240('0x21')]},'children':[new _0x5a7b19(_0x677403),{'tag':_0x4240('0x19'),'attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x340224['if'](_0x4240('0xa'),_0x4240('0x10'),_0x3d4d35=>!_0x3d4d35)]},'children':this[_0x4240('0xf')]}]});}[_0x4240('0x8')](){super[_0x4240('0x8')]();for(const _0x498abf of this[_0x4240('0x4')])this[_0x4240('0x17')](_0x498abf);this[_0x4240('0x4')]['on'](_0x4240('0xe'),(_0x4bc326,_0x1565a7)=>{this[_0x4240('0x17')](_0x1565a7);}),this[_0x4240('0x4')]['on']('remove',(_0x4187c7,_0xe0f05a)=>{this[_0x4240('0x2')](_0xe0f05a);});}get[_0x4240('0x5')](){return this['timePeriodViews']['map'](_0x53f88d=>_0x53f88d[_0x4240('0x5')][_0x4240('0x15')](_0x2d65b4=>_0x2d65b4))['flat']();}['selectRevision'](_0x202a04){for(const _0x6d17f6 of this[_0x4240('0x5')])_0x202a04&&_0x202a04['id']===_0x6d17f6['id']?_0x6d17f6[_0x4240('0x13')]():_0x6d17f6[_0x4240('0x3')]();}['highlightRevisions'](_0x1ee12e){for(const _0x39d063 of this[_0x4240('0x5')])_0x1ee12e['some'](({id:_0x5b8b32})=>_0x5b8b32===_0x39d063['id'])?_0x39d063[_0x4240('0x11')]():_0x39d063[_0x4240('0xb')]();}[_0x4240('0x17')](_0x5b9ea5){const _0x3071ef=_0x19f214(_0x5b9ea5[_0x4240('0x0')],this[_0x4240('0x1c')]['uiLanguage'])[_0x4240('0x23')];let _0x40766c=this['timePeriodViews'][_0x4240('0xd')](0x0);_0x40766c&&_0x40766c[_0x4240('0x23')][_0x4240('0x14')]()===_0x3071ef[_0x4240('0x14')]()||(_0x40766c=new _0x3628d2(this[_0x4240('0x1c')],_0x3071ef,this[_0x4240('0x6')]),this[_0x4240('0xf')][_0x4240('0xe')](_0x40766c)),_0x40766c[_0x4240('0x12')](_0x5b9ea5);}['_removeRevision'](_0x2d0b71){const _0x366d87=_0x19f214(_0x2d0b71[_0x4240('0x0')],this[_0x4240('0x1c')][_0x4240('0x16')])[_0x4240('0x23')];this[_0x4240('0x1d')](_0x366d87)['removeRevision'](_0x2d0b71);}[_0x4240('0x1d')](_0x8aebe1){return this[_0x4240('0xf')][_0x4240('0x1e')](_0x2942e5=>_0x2942e5[_0x4240('0x23')]['getTime']()===_0x8aebe1[_0x4240('0x14')]());}}
23
+ const _0x498f=['uiLanguage','render','select','ck-reset','getTime','locale','selectRevision','remove','_addRevision','isEnabled','_revisions','add','createdAt','unhighlight','bindTemplate','_removeRevision','revisionViews','timePeriodViews','ck-revision-history-sidebar__timeline','set','delegate','revisionSelected','setName','addRevision','get','revisionSetName','ck-rounded-corners','highlightRevisions','removeRevision','map','ck-disabled','find','createCollection','flat','some','_revisionActions','_getTimePeriodViewByStartDate','startDate'];(function(_0x44cf46,_0x498fb4){const _0xc13a7f=function(_0x1d3b31){while(--_0x1d3b31){_0x44cf46['push'](_0x44cf46['shift']());}};_0xc13a7f(++_0x498fb4);}(_0x498f,0x185));const _0xc13a=function(_0x44cf46,_0x498fb4){_0x44cf46=_0x44cf46-0x0;let _0xc13a7f=_0x498f[_0x44cf46];return _0xc13a7f;};import{View as _0x209b65}from'ckeditor5/src/ui';import _0x4591c0 from'./revisionssidebartimeperiodview';import _0x58e717 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x208127}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class oi extends _0x209b65{constructor(_0x2fe5c4,_0x19ddb0,_0x22fb05){super(_0x2fe5c4);const _0x44ec62=this[_0xc13a('0x5')];this[_0xc13a('0x8')]=this[_0xc13a('0x17')](),this['timePeriodViews'][_0xc13a('0xb')](_0xc13a('0x1f'))['to'](this),this[_0xc13a('0x8')][_0xc13a('0xb')](_0xc13a('0xd'))['to'](this),this[_0xc13a('0x1')]=_0x19ddb0,this[_0xc13a('0x1a')]=_0x22fb05,this['on'](_0xc13a('0x1f'),(_0x504c9b,_0x293c7f)=>{this['fire'](_0xc13a('0xc'),_0x293c7f);}),this['on'](_0xc13a('0xd'),(_0x26e945,_0x2455cd)=>{this['fire'](_0xc13a('0x10'),_0x2455cd);}),this[_0xc13a('0xa')](_0xc13a('0x0'),!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0xc13a('0x20'),_0xc13a('0x11'),'ck-revision-history-sidebar']},'children':[new _0x58e717(_0x2fe5c4),{'tag':'div','attributes':{'class':['ck',_0xc13a('0x9'),_0x44ec62['if'](_0xc13a('0x0'),_0xc13a('0x15'),_0x5ade11=>!_0x5ade11)]},'children':this['timePeriodViews']}]});}[_0xc13a('0x1e')](){super[_0xc13a('0x1e')]();for(const _0x3fdca2 of this[_0xc13a('0x1')])this[_0xc13a('0x25')](_0x3fdca2);this[_0xc13a('0x1')]['on'](_0xc13a('0x2'),(_0x20516e,_0xf4c815)=>{this['_addRevision'](_0xf4c815);}),this['_revisions']['on'](_0xc13a('0x24'),(_0x3bd7ab,_0x2cc7a5)=>{this[_0xc13a('0x6')](_0x2cc7a5);});}get[_0xc13a('0x7')](){return this[_0xc13a('0x8')][_0xc13a('0x14')](_0x3434a3=>_0x3434a3[_0xc13a('0x7')]['map'](_0x12b101=>_0x12b101))[_0xc13a('0x18')]();}[_0xc13a('0x23')](_0x417788){for(const _0x1a4dc5 of this[_0xc13a('0x7')])_0x417788&&_0x417788['id']===_0x1a4dc5['id']?_0x1a4dc5[_0xc13a('0x1f')]():_0x1a4dc5['deselect']();}[_0xc13a('0x12')](_0x414e29){for(const _0x565b63 of this[_0xc13a('0x7')])_0x414e29[_0xc13a('0x19')](({id:_0x56ff04})=>_0x56ff04===_0x565b63['id'])?_0x565b63['highlight']():_0x565b63[_0xc13a('0x4')]();}[_0xc13a('0x25')](_0x3d0242){const _0x495c56=_0x208127(_0x3d0242[_0xc13a('0x3')],this[_0xc13a('0x22')][_0xc13a('0x1d')])[_0xc13a('0x1c')];let _0x53710a=this[_0xc13a('0x8')][_0xc13a('0xf')](0x0);_0x53710a&&_0x53710a[_0xc13a('0x1c')][_0xc13a('0x21')]()===_0x495c56[_0xc13a('0x21')]()||(_0x53710a=new _0x4591c0(this[_0xc13a('0x22')],_0x495c56,this[_0xc13a('0x1a')]),this[_0xc13a('0x8')]['add'](_0x53710a)),_0x53710a[_0xc13a('0xe')](_0x3d0242);}[_0xc13a('0x6')](_0x5d1ed6){const _0x3a5514=_0x208127(_0x5d1ed6['createdAt'],this[_0xc13a('0x22')][_0xc13a('0x1d')])[_0xc13a('0x1c')];this['_getTimePeriodViewByStartDate'](_0x3a5514)[_0xc13a('0x13')](_0x5d1ed6);}[_0xc13a('0x1b')](_0x3e0ef7){return this[_0xc13a('0x8')][_0xc13a('0x16')](_0x48b5c5=>_0x48b5c5[_0xc13a('0x1c')][_0xc13a('0x21')]()===_0x3e0ef7[_0xc13a('0x21')]());}}
@@ -1,9 +1,9 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- export declare function getDateTimePeriodInfo(jsDate: Date, locale: string): DateTimePeriod;
6
- export interface DateTimePeriod {
7
- startDate: Date;
8
- localizedPeriodName: string;
9
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ export declare function getDateTimePeriodInfo(jsDate: Date, locale: string): DateTimePeriod;
6
+ export interface DateTimePeriod {
7
+ startDate: Date;
8
+ localizedPeriodName: string;
9
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x19e3=['minus','monthLong','hasSame','year','toJSDate','local','week','toRelativeCalendar','startOf','day'];(function(_0x3afb2b,_0x19e3f9){const _0x18b908=function(_0xb116fb){while(--_0xb116fb){_0x3afb2b['push'](_0x3afb2b['shift']());}};_0x18b908(++_0x19e3f9);}(_0x19e3,0x15b));const _0x18b9=function(_0x3afb2b,_0x19e3f9){_0x3afb2b=_0x3afb2b-0x0;let _0x18b908=_0x19e3[_0x3afb2b];return _0x18b908;};import{DateTime as _0xeb12a1}from'luxon';export function getDateTimePeriodInfo(_0x1226fd,_0x1ecbf7){const _0x5d75f6=_0xeb12a1['fromJSDate'](_0x1226fd)['setLocale'](_0x1ecbf7),_0x3a2c17=_0xeb12a1[_0x18b9('0x8')](),_0x8bc2bd=_0x3a2c17[_0x18b9('0x3')]({'days':0x1})[_0x18b9('0x1')](_0x18b9('0x2'));let _0x241b6a,_0x14c02e;return _0x5d75f6['hasSame'](_0x3a2c17,_0x18b9('0x2'))?(_0x241b6a=_0x5d75f6[_0x18b9('0x1')](_0x18b9('0x2'))[_0x18b9('0x7')](),_0x14c02e=_0x5d75f6[_0x18b9('0x0')]()):_0x5d75f6[_0x18b9('0x5')](_0x8bc2bd,_0x18b9('0x2'))?(_0x241b6a=_0x8bc2bd[_0x18b9('0x7')](),_0x14c02e=_0x5d75f6[_0x18b9('0x0')]()):_0x5d75f6[_0x18b9('0x5')](_0x3a2c17,_0x18b9('0x9'))?(_0x241b6a=_0x5d75f6['startOf']('week')[_0x18b9('0x7')](),_0x14c02e=_0x5d75f6['weekdayLong']||''):_0x5d75f6[_0x18b9('0x5')](_0x3a2c17,_0x18b9('0x6'))?(_0x241b6a=_0x5d75f6['startOf']('month')['toJSDate'](),_0x14c02e=_0x5d75f6[_0x18b9('0x4')]||''):(_0x241b6a=_0x5d75f6[_0x18b9('0x1')](_0x18b9('0x6'))[_0x18b9('0x7')](),_0x14c02e=String(_0x5d75f6[_0x18b9('0x6')])),{'startDate':_0x241b6a,'localizedPeriodName':_0x14c02e};}
23
+ const _0x4cb7=['week','startOf','setLocale','weekdayLong','hasSame','day','minus','toRelativeCalendar','toJSDate','year','fromJSDate','month'];(function(_0x55e3f7,_0x4cb70e){const _0x86178d=function(_0x4ceccd){while(--_0x4ceccd){_0x55e3f7['push'](_0x55e3f7['shift']());}};_0x86178d(++_0x4cb70e);}(_0x4cb7,0x1cd));const _0x8617=function(_0x55e3f7,_0x4cb70e){_0x55e3f7=_0x55e3f7-0x0;let _0x86178d=_0x4cb7[_0x55e3f7];return _0x86178d;};import{DateTime as _0x16093e}from'luxon';export function getDateTimePeriodInfo(_0x69ff06,_0x45a36f){const _0x350bc4=_0x16093e[_0x8617('0x5')](_0x69ff06)[_0x8617('0x9')](_0x45a36f),_0x1fab8a=_0x16093e['local'](),_0x52975b=_0x1fab8a[_0x8617('0x1')]({'days':0x1})[_0x8617('0x8')](_0x8617('0x0'));let _0xdbc655,_0x54b5e6;return _0x350bc4[_0x8617('0xb')](_0x1fab8a,'day')?(_0xdbc655=_0x350bc4[_0x8617('0x8')](_0x8617('0x0'))[_0x8617('0x3')](),_0x54b5e6=_0x350bc4[_0x8617('0x2')]()):_0x350bc4[_0x8617('0xb')](_0x52975b,_0x8617('0x0'))?(_0xdbc655=_0x52975b[_0x8617('0x3')](),_0x54b5e6=_0x350bc4[_0x8617('0x2')]()):_0x350bc4['hasSame'](_0x1fab8a,_0x8617('0x7'))?(_0xdbc655=_0x350bc4['startOf']('week')['toJSDate'](),_0x54b5e6=_0x350bc4[_0x8617('0xa')]||''):_0x350bc4[_0x8617('0xb')](_0x1fab8a,_0x8617('0x4'))?(_0xdbc655=_0x350bc4[_0x8617('0x8')](_0x8617('0x6'))['toJSDate'](),_0x54b5e6=_0x350bc4['monthLong']||''):(_0xdbc655=_0x350bc4[_0x8617('0x8')](_0x8617('0x4'))[_0x8617('0x3')](),_0x54b5e6=String(_0x350bc4[_0x8617('0x4')])),{'startDate':_0xdbc655,'localizedPeriodName':_0x54b5e6};}
@@ -1,22 +1,22 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module revision-history/ui/revisionviewer/changedetailsview
7
- */
8
- import { View } from 'ckeditor5/src/ui';
9
- import type { Locale } from 'ckeditor5/src/utils';
10
- import type ChangeItem from '../../changeitem';
11
- export default class ChangeDetailsView extends View {
12
- changeId: string;
13
- /**
14
- * @observable
15
- */
16
- type: string;
17
- constructor(locale: Locale, model: ChangeItem);
18
- /**
19
- * Focuses the view.
20
- */
21
- focus(): void;
22
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module revision-history/ui/revisionviewer/changedetailsview
7
+ */
8
+ import { View } from 'ckeditor5/src/ui';
9
+ import type { Locale } from 'ckeditor5/src/utils';
10
+ import type ChangeItem from '../../changeitem';
11
+ export default class ChangeDetailsView extends View {
12
+ changeId: string;
13
+ /**
14
+ * @observable
15
+ */
16
+ type: string;
17
+ constructor(locale: Locale, model: ChangeItem);
18
+ /**
19
+ * Focuses the view.
20
+ */
21
+ focus(): void;
22
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3c87=['setTemplate','isSuggestion','Suggested\x20by','element','data','set','bindTemplate','type','focus','changeId','ck-annotation','span','name','Removed\x20by','Added\x20by','ck-revision-change__label','author','ck-revision-change__','ck-revision-change'];(function(_0x3ce02a,_0x3c8753){const _0xacadc4=function(_0x950ea3){while(--_0x950ea3){_0x3ce02a['push'](_0x3ce02a['shift']());}};_0xacadc4(++_0x3c8753);}(_0x3c87,0x163));const _0xacad=function(_0x3ce02a,_0x3c8753){_0x3ce02a=_0x3ce02a-0x0;let _0xacadc4=_0x3c87[_0x3ce02a];return _0xacadc4;};import{View as _0x23bb61}from'ckeditor5/src/ui';import{getTranslation as _0x4a45b3}from'../../utils/common-translations';export default class Z extends _0x23bb61{constructor(_0x3c96b4,_0x5af349){super(_0x3c96b4),this['_model']=_0x5af349,this[_0xacad('0xf')]=_0x5af349['id'];const _0x19fb3c=this[_0xacad('0xc')],_0x41eefe=_0x4a45b3(_0x3c96b4,_0x5af349[_0xacad('0xa')][_0xacad('0x7')]?_0xacad('0x8'):'add'==_0x5af349['type']?_0xacad('0x1'):_0xacad('0x0'));this[_0xacad('0xb')](_0xacad('0xd'),_0x5af349[_0xacad('0xd')]),this[_0xacad('0x6')]({'tag':'div','attributes':{'class':[_0xacad('0x10'),_0xacad('0x5'),_0x19fb3c['to'](_0xacad('0xd'),_0x4bf39f=>_0xacad('0x4')+_0x4bf39f)],'tabindex':-0x1},'children':[{'tag':_0xacad('0x11'),'children':[{'tag':'span','attributes':{'class':[_0xacad('0x2')]},'children':[{'text':_0x41eefe}]},{'text':'\x20'+_0x5af349[_0xacad('0x3')][_0xacad('0x12')]}]}]});}[_0xacad('0xe')](){this[_0xacad('0x9')][_0xacad('0xe')]();}}
23
+ const _0x5ae2=['ck-revision-change__label','Suggested\x20by','element','author','set','type','isSuggestion','ck-revision-change__','Added\x20by','add','changeId','ck-revision-change','span','setTemplate','Removed\x20by','ck-annotation','focus'];(function(_0x5a4c9a,_0x5ae20e){const _0x2abbe0=function(_0x544764){while(--_0x544764){_0x5a4c9a['push'](_0x5a4c9a['shift']());}};_0x2abbe0(++_0x5ae20e);}(_0x5ae2,0x7b));const _0x2abb=function(_0x5a4c9a,_0x5ae20e){_0x5a4c9a=_0x5a4c9a-0x0;let _0x2abbe0=_0x5ae2[_0x5a4c9a];return _0x2abbe0;};import{View as _0x29447d}from'ckeditor5/src/ui';import{getTranslation as _0x348459}from'../../utils/common-translations';export default class Z extends _0x29447d{constructor(_0x2e6064,_0x7700e3){super(_0x2e6064),this['_model']=_0x7700e3,this[_0x2abb('0x6')]=_0x7700e3['id'];const _0x2967a2=this['bindTemplate'],_0x253c4c=_0x348459(_0x2e6064,_0x7700e3['data'][_0x2abb('0x2')]?_0x2abb('0xe'):_0x2abb('0x5')==_0x7700e3[_0x2abb('0x1')]?_0x2abb('0x4'):_0x2abb('0xa'));this[_0x2abb('0x0')](_0x2abb('0x1'),_0x7700e3[_0x2abb('0x1')]),this[_0x2abb('0x9')]({'tag':'div','attributes':{'class':[_0x2abb('0xb'),_0x2abb('0x7'),_0x2967a2['to'](_0x2abb('0x1'),_0xde0e44=>_0x2abb('0x3')+_0xde0e44)],'tabindex':-0x1},'children':[{'tag':_0x2abb('0x8'),'children':[{'tag':_0x2abb('0x8'),'attributes':{'class':[_0x2abb('0xd')]},'children':[{'text':_0x253c4c}]},{'text':'\x20'+_0x7700e3[_0x2abb('0x10')]['name']}]}]});}[_0x2abb('0xc')](){this[_0x2abb('0xf')][_0x2abb('0xc')]();}}