@ckeditor/ckeditor5-revision-history 35.4.0 → 36.0.1

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 (90) hide show
  1. package/build/revision-history.js +2 -2
  2. package/build/translations/ug.js +1 -1
  3. package/lang/translations/af.po +1 -1
  4. package/lang/translations/ar.po +1 -1
  5. package/lang/translations/az.po +1 -1
  6. package/lang/translations/bg.po +1 -1
  7. package/lang/translations/bn.po +1 -1
  8. package/lang/translations/bs.po +1 -1
  9. package/lang/translations/ca.po +1 -1
  10. package/lang/translations/cs.po +1 -1
  11. package/lang/translations/da.po +1 -1
  12. package/lang/translations/de-ch.po +1 -1
  13. package/lang/translations/de.po +1 -1
  14. package/lang/translations/el.po +1 -1
  15. package/lang/translations/en-au.po +1 -1
  16. package/lang/translations/en-gb.po +1 -1
  17. package/lang/translations/en.po +1 -1
  18. package/lang/translations/es-co.po +1 -1
  19. package/lang/translations/es.po +1 -1
  20. package/lang/translations/et.po +1 -1
  21. package/lang/translations/fa.po +1 -1
  22. package/lang/translations/fi.po +1 -1
  23. package/lang/translations/fr.po +1 -1
  24. package/lang/translations/gl.po +1 -1
  25. package/lang/translations/he.po +1 -1
  26. package/lang/translations/hi.po +1 -1
  27. package/lang/translations/hr.po +1 -1
  28. package/lang/translations/hu.po +1 -1
  29. package/lang/translations/id.po +1 -1
  30. package/lang/translations/it.po +1 -1
  31. package/lang/translations/ja.po +1 -1
  32. package/lang/translations/jv.po +1 -1
  33. package/lang/translations/ko.po +1 -1
  34. package/lang/translations/ku.po +1 -1
  35. package/lang/translations/lt.po +1 -1
  36. package/lang/translations/lv.po +1 -1
  37. package/lang/translations/ms.po +1 -1
  38. package/lang/translations/ne.po +1 -1
  39. package/lang/translations/nl.po +1 -1
  40. package/lang/translations/no.po +1 -1
  41. package/lang/translations/pl.po +1 -1
  42. package/lang/translations/pt-br.po +1 -1
  43. package/lang/translations/pt.po +1 -1
  44. package/lang/translations/ro.po +1 -1
  45. package/lang/translations/ru.po +1 -1
  46. package/lang/translations/sk.po +1 -1
  47. package/lang/translations/sr-latn.po +1 -1
  48. package/lang/translations/sr.po +1 -1
  49. package/lang/translations/sv.po +1 -1
  50. package/lang/translations/th.po +1 -1
  51. package/lang/translations/tk.po +1 -1
  52. package/lang/translations/tr.po +1 -1
  53. package/lang/translations/tt.po +1 -1
  54. package/lang/translations/ug.po +2 -2
  55. package/lang/translations/uk.po +1 -1
  56. package/lang/translations/ur.po +1 -1
  57. package/lang/translations/vi.po +1 -1
  58. package/lang/translations/zh-cn.po +1 -1
  59. package/lang/translations/zh.po +1 -1
  60. package/package.json +7 -7
  61. package/src/changeitem.js +2 -2
  62. package/src/editor/revisionviewereditor.js +2 -2
  63. package/src/editor/revisionviewereditorui.js +2 -2
  64. package/src/editor/revisionviewereditoruiview.js +2 -2
  65. package/src/index.js +1 -1
  66. package/src/revision.js +2 -2
  67. package/src/revisiondiff.js +2 -2
  68. package/src/revisionhistory.js +2 -2
  69. package/src/revisionsrepository.js +2 -2
  70. package/src/revisiontracker.js +2 -2
  71. package/src/revisionviewer.js +2 -2
  72. package/src/ui/revision/createrevisionactionsdropdown.js +2 -2
  73. package/src/ui/revision/revisionauthorview.js +2 -2
  74. package/src/ui/revision/revisionnameview.js +2 -2
  75. package/src/ui/revision/revisionview.js +2 -2
  76. package/src/ui/revision/subrevisioncollapserview.js +2 -2
  77. package/src/ui/revision/subrevisionview.js +2 -2
  78. package/src/ui/revision/utils.js +2 -2
  79. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
  80. package/src/ui/revisionhistory/revisionhistoryui.js +2 -2
  81. package/src/ui/revisionssidebar/revisionssidebar.js +2 -2
  82. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +2 -2
  83. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +2 -2
  84. package/src/ui/revisionssidebar/revisionssidebarview.js +2 -2
  85. package/src/ui/revisionssidebar/utils.js +2 -2
  86. package/src/ui/revisionviewer/changedetailsview.js +2 -2
  87. package/src/ui/revisionviewer/changesnavigationview.js +2 -2
  88. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +2 -2
  89. package/src/ui/revisionviewer/revisionviewerui.js +2 -2
  90. package/src/utils/common-translations.js +2 -2
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xfc3a=['_focusCycler','execute','stopPropagation','listenTo','submit','cancelButtonView','focusFirst','locale','label','tab','ck-responsive-form','Save','input','revisionNameInputView','extendTemplate','220','type','render','value','setTemplate','_createRevisionNameInput','fieldView','shift\x20+\x20tab','saveButtonView','element','add','focus','trim','arrowleft','forEach','ck-revision-history-save-revision-form','form','selectstart','_focusables','ck-button-cancel','revisionNameInputValue','revisionName','focusTracker','set','keystrokes'];(function(_0xf75003,_0xfc3a6b){const _0x4d06c9=function(_0x485e8c){while(--_0x485e8c){_0xf75003['push'](_0xf75003['shift']());}};_0x4d06c9(++_0xfc3a6b);}(_0xfc3a,0xa4));const _0x4d06=function(_0xf75003,_0xfc3a6b){_0xf75003=_0xf75003-0x0;let _0x4d06c9=_0xfc3a[_0xf75003];return _0x4d06c9;};import{ButtonView as _0xb06645,FocusCycler as _0x207bd2,LabeledFieldView as _0x333a8a,View as _0x4d4d29,ViewCollection as _0x3a80e8,createLabeledInputText as _0x5cbc87,injectCssTransitionDisabler as _0x30789b,submitHandler as _0x47a7e2}from'ckeditor5/src/ui';import{FocusTracker as _0x178ebf,KeystrokeHandler as _0x53b9fa}from'ckeditor5/src/utils';import{getTranslation as _0x836dd7}from'../../utils/common-translations';import _0x3465e3 from'@ckeditor/ckeditor5-core/theme/icons/check.svg';import _0x10dd41 from'@ckeditor/ckeditor5-core/theme/icons/cancel.svg';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class dt extends _0x4d4d29{constructor(_0x2f93d2){super(_0x2f93d2),this['focusTracker']=new _0x178ebf(),this['keystrokes']=new _0x53b9fa(),this['set'](_0x4d06('0x1f'),''),this[_0x4d06('0x9')]=this[_0x4d06('0x10')](),this[_0x4d06('0x13')]=this['_createButton'](_0x836dd7(_0x2f93d2,_0x4d06('0x7')),_0x3465e3,'ck-button-save'),this[_0x4d06('0x13')][_0x4d06('0xc')]=_0x4d06('0x0'),this['cancelButtonView']=this['_createButton'](_0x836dd7(_0x2f93d2,'Cancel'),_0x10dd41,_0x4d06('0x1e'),'cancel'),this[_0x4d06('0x1d')]=new _0x3a80e8(),this[_0x4d06('0x24')]=new _0x207bd2({'focusables':this[_0x4d06('0x1d')],'focusTracker':this[_0x4d06('0x21')],'keystrokeHandler':this[_0x4d06('0x23')],'actions':{'focusPrevious':_0x4d06('0x12'),'focusNext':_0x4d06('0x5')}}),this[_0x4d06('0xf')]({'tag':_0x4d06('0x1b'),'attributes':{'class':['ck',_0x4d06('0x1a'),_0x4d06('0x6')],'tabindex':'-1'},'children':[this[_0x4d06('0x9')],this[_0x4d06('0x13')],this[_0x4d06('0x1')]]}),_0x30789b(this);}[_0x4d06('0xd')](){super[_0x4d06('0xd')](),_0x47a7e2({'view':this}),([this['revisionNameInputView'],this[_0x4d06('0x13')],this['cancelButtonView']][_0x4d06('0x19')](_0x2e0c45=>{this['_focusables']['add'](_0x2e0c45),this[_0x4d06('0x21')][_0x4d06('0x15')](_0x2e0c45[_0x4d06('0x14')]);}),this[_0x4d06('0x23')][_0x4d06('0x27')](this[_0x4d06('0x14')]));const _0xe9a4e1=_0x52e199=>_0x52e199[_0x4d06('0x26')]();this[_0x4d06('0x23')][_0x4d06('0x22')]('arrowright',_0xe9a4e1),this[_0x4d06('0x23')]['set'](_0x4d06('0x18'),_0xe9a4e1),this[_0x4d06('0x23')][_0x4d06('0x22')]('arrowup',_0xe9a4e1),this[_0x4d06('0x23')]['set']('arrowdown',_0xe9a4e1),this['listenTo'](this['revisionNameInputView'][_0x4d06('0x14')],_0x4d06('0x1c'),(_0x161c83,_0x28c497)=>{_0x28c497['stopPropagation']();},{'priority':'high'});}[_0x4d06('0x16')](){this[_0x4d06('0x24')][_0x4d06('0x2')]();}get[_0x4d06('0x20')](){return this['revisionNameInputView'][_0x4d06('0x11')][_0x4d06('0x14')][_0x4d06('0xe')][_0x4d06('0x17')]();}set[_0x4d06('0x20')](_0x31409d){this['revisionNameInputView'][_0x4d06('0x11')]['element']['value']=_0x31409d[_0x4d06('0x17')]();}['reset'](){this[_0x4d06('0x9')][_0x4d06('0x11')][_0x4d06('0x14')][_0x4d06('0xe')]='';}[_0x4d06('0x10')](){const _0x4bd293=new _0x333a8a(this[_0x4d06('0x3')],_0x5cbc87),_0x3ab47a=_0x4bd293[_0x4d06('0x11')];return _0x3ab47a[_0x4d06('0xa')]({'attributes':{'maxlength':_0x4d06('0xb')}}),_0x4bd293[_0x4d06('0x4')]=_0x836dd7(this[_0x4d06('0x3')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x3ab47a['on'](_0x4d06('0x8'),()=>{this[_0x4d06('0x1f')]=_0x3ab47a['element'][_0x4d06('0xe')]['trim']();}),_0x4bd293;}['_createButton'](_0x3f179e,_0x563dd8,_0x1f3674,_0xe3425b){const _0x5bb3b8=new _0xb06645(this[_0x4d06('0x3')]);return _0x5bb3b8[_0x4d06('0x22')]({'label':_0x3f179e,'icon':_0x563dd8,'tooltip':!0x0}),_0x5bb3b8['extendTemplate']({'attributes':{'class':_0x1f3674}}),_0xe3425b&&_0x5bb3b8['delegate'](_0x4d06('0x25'))['to'](this,_0xe3425b),_0x5bb3b8;}}
23
+ const _0x55df=['submit','arrowdown','cancel','revisionNameInputValue','selectstart','fieldView','arrowright','_createButton','ck-button-cancel','add','render','locale','Save','ck-responsive-form','type','shift\x20+\x20tab','listenTo','_createRevisionNameInput','stopPropagation','set','high','Cancel','revisionName','arrowleft','ck-button-save','extendTemplate','input','saveButtonView','delegate','element','_focusCycler','label','tab','form','trim','focusFirst','_focusables','Name\x20of\x20the\x20revision\x20(optional)','focusTracker','ck-revision-history-save-revision-form','execute','forEach','keystrokes','cancelButtonView','220','value','revisionNameInputView'];(function(_0x3b4616,_0x55df97){const _0x2cc5f5=function(_0x2680d6){while(--_0x2680d6){_0x3b4616['push'](_0x3b4616['shift']());}};_0x2cc5f5(++_0x55df97);}(_0x55df,0x15d));const _0x2cc5=function(_0x3b4616,_0x55df97){_0x3b4616=_0x3b4616-0x0;let _0x2cc5f5=_0x55df[_0x3b4616];return _0x2cc5f5;};import{ButtonView as _0x33d52d,FocusCycler as _0x129a5a,LabeledFieldView as _0x2fb456,View as _0x30ffdf,ViewCollection as _0xb69772,createLabeledInputText as _0x2b43ea,injectCssTransitionDisabler as _0x353a7c,submitHandler as _0x2750b1}from'ckeditor5/src/ui';import{FocusTracker as _0x44c242,KeystrokeHandler as _0x4140f4}from'ckeditor5/src/utils';import{getTranslation as _0x32ef61}from'../../utils/common-translations';import _0x56fe21 from'@ckeditor/ckeditor5-core/theme/icons/check.svg';import _0x590950 from'@ckeditor/ckeditor5-core/theme/icons/cancel.svg';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class dt extends _0x30ffdf{constructor(_0x3ac449){super(_0x3ac449),this[_0x2cc5('0x12')]=new _0x44c242(),this['keystrokes']=new _0x4140f4(),this[_0x2cc5('0x2e')]('revisionNameInputValue',''),this['revisionNameInputView']=this[_0x2cc5('0x2c')](),this[_0x2cc5('0x7')]=this['_createButton'](_0x32ef61(_0x3ac449,_0x2cc5('0x27')),_0x56fe21,_0x2cc5('0x4')),this[_0x2cc5('0x7')][_0x2cc5('0x29')]=_0x2cc5('0x1b'),this[_0x2cc5('0x17')]=this[_0x2cc5('0x22')](_0x32ef61(_0x3ac449,_0x2cc5('0x1')),_0x590950,_0x2cc5('0x23'),_0x2cc5('0x1d')),this[_0x2cc5('0x10')]=new _0xb69772(),this[_0x2cc5('0xa')]=new _0x129a5a({'focusables':this['_focusables'],'focusTracker':this[_0x2cc5('0x12')],'keystrokeHandler':this[_0x2cc5('0x16')],'actions':{'focusPrevious':_0x2cc5('0x2a'),'focusNext':_0x2cc5('0xc')}}),this['setTemplate']({'tag':_0x2cc5('0xd'),'attributes':{'class':['ck',_0x2cc5('0x13'),_0x2cc5('0x28')],'tabindex':'-1'},'children':[this[_0x2cc5('0x1a')],this[_0x2cc5('0x7')],this[_0x2cc5('0x17')]]}),_0x353a7c(this);}[_0x2cc5('0x25')](){super[_0x2cc5('0x25')](),_0x2750b1({'view':this}),([this[_0x2cc5('0x1a')],this[_0x2cc5('0x7')],this['cancelButtonView']][_0x2cc5('0x15')](_0x2278af=>{this[_0x2cc5('0x10')][_0x2cc5('0x24')](_0x2278af),this[_0x2cc5('0x12')]['add'](_0x2278af[_0x2cc5('0x9')]);}),this[_0x2cc5('0x16')][_0x2cc5('0x2b')](this[_0x2cc5('0x9')]));const _0x7cf628=_0x1f704c=>_0x1f704c[_0x2cc5('0x2d')]();this[_0x2cc5('0x16')][_0x2cc5('0x2e')](_0x2cc5('0x21'),_0x7cf628),this['keystrokes'][_0x2cc5('0x2e')](_0x2cc5('0x3'),_0x7cf628),this[_0x2cc5('0x16')]['set']('arrowup',_0x7cf628),this[_0x2cc5('0x16')][_0x2cc5('0x2e')](_0x2cc5('0x1c'),_0x7cf628),this[_0x2cc5('0x2b')](this[_0x2cc5('0x1a')]['element'],_0x2cc5('0x1f'),(_0x271e31,_0x565b6c)=>{_0x565b6c[_0x2cc5('0x2d')]();},{'priority':_0x2cc5('0x0')});}['focus'](){this[_0x2cc5('0xa')][_0x2cc5('0xf')]();}get[_0x2cc5('0x2')](){return this[_0x2cc5('0x1a')]['fieldView']['element'][_0x2cc5('0x19')][_0x2cc5('0xe')]();}set[_0x2cc5('0x2')](_0x57a816){this[_0x2cc5('0x1a')][_0x2cc5('0x20')][_0x2cc5('0x9')]['value']=_0x57a816[_0x2cc5('0xe')]();}['reset'](){this[_0x2cc5('0x1a')][_0x2cc5('0x20')][_0x2cc5('0x9')][_0x2cc5('0x19')]='';}[_0x2cc5('0x2c')](){const _0x3abd60=new _0x2fb456(this[_0x2cc5('0x26')],_0x2b43ea),_0x15f68d=_0x3abd60[_0x2cc5('0x20')];return _0x15f68d[_0x2cc5('0x5')]({'attributes':{'maxlength':_0x2cc5('0x18')}}),_0x3abd60[_0x2cc5('0xb')]=_0x32ef61(this[_0x2cc5('0x26')],_0x2cc5('0x11')),_0x15f68d['on'](_0x2cc5('0x6'),()=>{this[_0x2cc5('0x1e')]=_0x15f68d[_0x2cc5('0x9')][_0x2cc5('0x19')][_0x2cc5('0xe')]();}),_0x3abd60;}[_0x2cc5('0x22')](_0x10eaea,_0x26974c,_0x5ce8c1,_0x2af1c4){const _0x216383=new _0x33d52d(this[_0x2cc5('0x26')]);return _0x216383[_0x2cc5('0x2e')]({'label':_0x10eaea,'icon':_0x26974c,'tooltip':!0x0}),_0x216383[_0x2cc5('0x5')]({'attributes':{'class':_0x5ce8c1}}),_0x2af1c4&&_0x216383[_0x2cc5('0x8')](_0x2cc5('0x14'))['to'](this,_0x2af1c4),_0x216383;}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3dfb=['change:isOpen','focus','length','editing','isReadOnly','saveRevision','Open\x20revision\x20history','requires','submit','revisionHistory','revisionName','addMany','isReady','showRevisionViewerCallback','RevisionHistoryUI','buttonView','componentFactory','pluginName','plugins','execute','set','isEnabled','add','bind','get','children','view'];(function(_0x418ced,_0x3dfbac){const _0x1fb735=function(_0xcc4e8){while(--_0xcc4e8){_0x418ced['push'](_0x418ced['shift']());}};_0x1fb735(++_0x3dfbac);}(_0x3dfb,0x177));const _0x1fb7=function(_0x418ced,_0x3dfbac){_0x418ced=_0x418ced-0x0;let _0x1fb735=_0x3dfb[_0x418ced];return _0x1fb735;};import{Plugin as _0x1dd7b5}from'ckeditor5/src/core';import{ListView as _0x3c25e2,ListItemView as _0x4e0109,ButtonView as _0x439f8f,createDropdown as _0x31e68b}from'ckeditor5/src/ui';import _0x4cda33 from'../../revisiontracker';import _0x3ac657 from'./revisionhistorysaverevisionformview';import _0x10c55e from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x3e0dfe}from'../../utils/common-translations';export default class y extends _0x1dd7b5{static get[_0x1fb7('0x14')](){return _0x1fb7('0x11');}static get[_0x1fb7('0xa')](){return[_0x4cda33];}['init'](){const _0x371f67=this['editor'],_0x16a6b8=_0x371f67[_0x1fb7('0x15')][_0x1fb7('0x0')]('RevisionTracker');_0x371f67['ui'][_0x1fb7('0x13')][_0x1fb7('0x19')](_0x1fb7('0xc'),_0x3f7235=>{const _0x3a8adb=_0x31e68b(_0x3f7235),_0x4fc400=_0x3a8adb['panelView'][_0x1fb7('0x1')],_0xbfeaea=new _0x3c25e2(_0x3f7235),_0x581441=new _0x4e0109(_0x3f7235),_0x2a86b2=new _0x439f8f(_0x3f7235),_0x29c200=new _0x4e0109(_0x3f7235),_0x5c43eb=new _0x439f8f(_0x3f7235),_0x3bdc61=new _0x3ac657(_0x3f7235);function _0x169b63(){_0x4fc400[_0x1fb7('0x5')]&&_0x4fc400['remove'](0x0),_0x4fc400['add'](_0xbfeaea);}function _0x346c19(){_0x3a8adb['isOpen']=!0x1,_0x371f67[_0x1fb7('0x6')][_0x1fb7('0x2')][_0x1fb7('0x4')]();}return _0x3a8adb[_0x1fb7('0x1a')](_0x1fb7('0x18'))['to'](_0x16a6b8,_0x1fb7('0xf'),_0x16a6b8,_0x1fb7('0x18'),_0x371f67,_0x1fb7('0x7'),(_0x5edc90,_0x523d94,_0x4c331b)=>_0x5edc90&&_0x523d94&&!_0x4c331b),_0x3a8adb[_0x1fb7('0x12')][_0x1fb7('0x17')]({'icon':_0x10c55e,'label':_0x3e0dfe(_0x3f7235,'Revision\x20history'),'tooltip':!0x0}),_0x2a86b2[_0x1fb7('0x17')]({'label':_0x3e0dfe(_0x3f7235,'Save\x20current\x20revision'),'withText':!0x0}),_0x2a86b2[_0x1fb7('0x1a')](_0x1fb7('0x18'))['to'](_0x16a6b8,'isReady',_0x16a6b8,_0x1fb7('0x18'),_0x371f67,_0x1fb7('0x7'),(_0xf4cbff,_0x4e713b,_0x20bf81)=>_0xf4cbff&&_0x4e713b&&!_0x20bf81),_0x2a86b2['on'](_0x1fb7('0x16'),()=>function(){_0x4fc400['length']&&_0x4fc400['remove'](0x0),(_0x3bdc61['reset'](),_0x4fc400['add'](_0x3bdc61),_0x3bdc61[_0x1fb7('0x4')]());}()),_0x5c43eb['set']({'label':_0x3e0dfe(_0x3f7235,_0x1fb7('0x9')),'withText':!0x0}),_0x5c43eb[_0x1fb7('0x1a')](_0x1fb7('0x18'))['to'](_0x16a6b8,'isReady',_0x371f67,_0x1fb7('0x7'),(_0x2870aa,_0x514f81)=>_0x2870aa&&!_0x514f81),_0x5c43eb['on'](_0x1fb7('0x16'),()=>{_0x371f67['config'][_0x1fb7('0x0')](_0x1fb7('0xc'))[_0x1fb7('0x10')](),_0x346c19();}),_0x581441[_0x1fb7('0x1')]['add'](_0x2a86b2),_0x29c200[_0x1fb7('0x1')][_0x1fb7('0x19')](_0x5c43eb),_0xbfeaea['items'][_0x1fb7('0xe')]([_0x581441,_0x29c200]),_0x3a8adb['on'](_0x1fb7('0x3'),()=>_0x169b63()),_0x3bdc61['saveButtonView'][_0x1fb7('0x1a')](_0x1fb7('0x18'))['to'](_0x16a6b8,_0x1fb7('0xf'),_0x16a6b8,_0x1fb7('0x18'),_0x371f67,_0x1fb7('0x7'),(_0x3e3d2f,_0x560779,_0x20643a)=>_0x3e3d2f&&_0x560779&&!_0x20643a),_0x3bdc61['on'](_0x1fb7('0xb'),()=>(_0x371f67[_0x1fb7('0x15')][_0x1fb7('0x0')](_0x4cda33)[_0x1fb7('0x8')]({'name':_0x3bdc61[_0x1fb7('0xd')]}),void _0x346c19())),_0x3bdc61['on']('cancel',()=>_0x169b63()),_0x3bdc61['render'](),_0x169b63(),_0x3a8adb;});}}
23
+ const _0x58e3=['isReadOnly','get','saveRevision','Open\x20revision\x20history','saveButtonView','remove','execute','render','editor','buttonView','addMany','isReady','set','revisionName','RevisionHistoryUI','RevisionTracker','pluginName','Revision\x20history','editing','isEnabled','bind','focus','length','add','showRevisionViewerCallback','Save\x20current\x20revision','revisionHistory','reset','config','children','change:isOpen','cancel','panelView','plugins','requires'];(function(_0x540f77,_0x58e339){const _0x26e883=function(_0x5a47e3){while(--_0x5a47e3){_0x540f77['push'](_0x540f77['shift']());}};_0x26e883(++_0x58e339);}(_0x58e3,0x1c5));const _0x26e8=function(_0x540f77,_0x58e339){_0x540f77=_0x540f77-0x0;let _0x26e883=_0x58e3[_0x540f77];return _0x26e883;};import{Plugin as _0x42cdf7}from'ckeditor5/src/core';import{ListView as _0x3cb7a4,ListItemView as _0x2f9164,ButtonView as _0x69f620,createDropdown as _0x17a338}from'ckeditor5/src/ui';import _0x39d076 from'../../revisiontracker';import _0x199ae9 from'./revisionhistorysaverevisionformview';import _0x187752 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x5a63c6}from'../../utils/common-translations';export default class y extends _0x42cdf7{static get[_0x26e8('0x12')](){return _0x26e8('0x10');}static get[_0x26e8('0x1')](){return[_0x39d076];}['init'](){const _0x5c2ef8=this[_0x26e8('0xa')],_0x131222=_0x5c2ef8['plugins'][_0x26e8('0x3')](_0x26e8('0x11'));_0x5c2ef8['ui']['componentFactory'][_0x26e8('0x19')]('revisionHistory',_0x461e59=>{const _0x4bf5bd=_0x17a338(_0x461e59),_0x5e0471=_0x4bf5bd[_0x26e8('0x22')][_0x26e8('0x1f')],_0x15f9cf=new _0x3cb7a4(_0x461e59),_0x384e87=new _0x2f9164(_0x461e59),_0x172dd3=new _0x69f620(_0x461e59),_0x28f315=new _0x2f9164(_0x461e59),_0x1af138=new _0x69f620(_0x461e59),_0x30e742=new _0x199ae9(_0x461e59);function _0x31d83e(){_0x5e0471['length']&&_0x5e0471[_0x26e8('0x7')](0x0),_0x5e0471[_0x26e8('0x19')](_0x15f9cf);}function _0x36dab1(){_0x4bf5bd['isOpen']=!0x1,_0x5c2ef8[_0x26e8('0x14')]['view'][_0x26e8('0x17')]();}return _0x4bf5bd[_0x26e8('0x16')](_0x26e8('0x15'))['to'](_0x131222,_0x26e8('0xd'),_0x131222,_0x26e8('0x15'),_0x5c2ef8,_0x26e8('0x2'),(_0xc9cfdf,_0x4e8aed,_0x2e3718)=>_0xc9cfdf&&_0x4e8aed&&!_0x2e3718),_0x4bf5bd[_0x26e8('0xb')][_0x26e8('0xe')]({'icon':_0x187752,'label':_0x5a63c6(_0x461e59,_0x26e8('0x13')),'tooltip':!0x0}),_0x172dd3[_0x26e8('0xe')]({'label':_0x5a63c6(_0x461e59,_0x26e8('0x1b')),'withText':!0x0}),_0x172dd3[_0x26e8('0x16')](_0x26e8('0x15'))['to'](_0x131222,_0x26e8('0xd'),_0x131222,_0x26e8('0x15'),_0x5c2ef8,_0x26e8('0x2'),(_0x2a8be0,_0x11169f,_0x594fa8)=>_0x2a8be0&&_0x11169f&&!_0x594fa8),_0x172dd3['on'](_0x26e8('0x8'),()=>function(){_0x5e0471[_0x26e8('0x18')]&&_0x5e0471[_0x26e8('0x7')](0x0),(_0x30e742[_0x26e8('0x1d')](),_0x5e0471['add'](_0x30e742),_0x30e742[_0x26e8('0x17')]());}()),_0x1af138[_0x26e8('0xe')]({'label':_0x5a63c6(_0x461e59,_0x26e8('0x5')),'withText':!0x0}),_0x1af138[_0x26e8('0x16')](_0x26e8('0x15'))['to'](_0x131222,_0x26e8('0xd'),_0x5c2ef8,_0x26e8('0x2'),(_0x26c16b,_0x1174bb)=>_0x26c16b&&!_0x1174bb),_0x1af138['on']('execute',()=>{_0x5c2ef8[_0x26e8('0x1e')]['get'](_0x26e8('0x1c'))[_0x26e8('0x1a')](),_0x36dab1();}),_0x384e87['children'][_0x26e8('0x19')](_0x172dd3),_0x28f315[_0x26e8('0x1f')]['add'](_0x1af138),_0x15f9cf['items'][_0x26e8('0xc')]([_0x384e87,_0x28f315]),_0x4bf5bd['on'](_0x26e8('0x20'),()=>_0x31d83e()),_0x30e742[_0x26e8('0x6')][_0x26e8('0x16')](_0x26e8('0x15'))['to'](_0x131222,_0x26e8('0xd'),_0x131222,'isEnabled',_0x5c2ef8,'isReadOnly',(_0x1bd80a,_0x394df6,_0xef6066)=>_0x1bd80a&&_0x394df6&&!_0xef6066),_0x30e742['on']('submit',()=>(_0x5c2ef8[_0x26e8('0x0')][_0x26e8('0x3')](_0x39d076)[_0x26e8('0x4')]({'name':_0x30e742[_0x26e8('0xf')]}),void _0x36dab1())),_0x30e742['on'](_0x26e8('0x21'),()=>_0x31d83e()),_0x30e742[_0x26e8('0x9')](),_0x31d83e(),_0x4bf5bd;});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x10e0=['isSelected','requires','defaultRevisionActions','assign','Restore\x20this\x20revision','length','fieldView','revisionHistory.viewerSidebarContainer','_revisions','listenTo','getRevisionsInDiff','select','_handleEditorDataReady','getLaterVisibleRevision','isVisible','_revisionsRepository','getEarlierVisibleRevision','init','change:diff','availableRevisionActions','pluginName','ready','config','repository','selectRevision','data','isReady','action','get','bind','getIndex','Compare\x20against\x20selected','RevisionsSidebar','destroy','newRevisionId','_sidebarView','_revisionViewer','_handleDiffChange','highlightRevisions','element','getRevision','compareAgainstSelected','revisionHistory.revisionActions','isEnabled','_createRevisionActions','add','appendChild','plugins','diff','revisionViews','setName','focus','_handleRevisionSelected','editor','revisionSelected','_handleRevisionSetName','nameRevision','restoreRevision','compare','string','Name\x20this\x20revision'];(function(_0x4595fb,_0x10e006){const _0x1a28ea=function(_0x3e12d0){while(--_0x3e12d0){_0x4595fb['push'](_0x4595fb['shift']());}};_0x1a28ea(++_0x10e006);}(_0x10e0,0x188));const _0x1a28=function(_0x4595fb,_0x10e006){_0x4595fb=_0x4595fb-0x0;let _0x1a28ea=_0x10e0[_0x4595fb];return _0x1a28ea;};import{Plugin as _0x18efbd}from'ckeditor5/src/core';import _0x4a4854 from'./revisionssidebarview';import _0x383911 from'../../revisionviewer';export default class d extends _0x18efbd{static get[_0x1a28('0x37')](){return _0x1a28('0x6');}static get[_0x1a28('0x24')](){return[_0x383911];}constructor(_0x1f88c3){super(_0x1f88c3),this['_revisionViewer']=_0x1f88c3[_0x1a28('0x15')][_0x1a28('0x2')](_0x383911),this['_revisionsRepository']=this[_0x1a28('0xa')][_0x1a28('0x3a')],this[_0x1a28('0x9')]=null;}[_0x1a28('0x34')](){const _0x12a350=this[_0x1a28('0x32')][_0x1a28('0x2b')],_0xd429ba=this[_0x1a28('0x12')](),_0x53be47=this[_0x1a28('0x1b')][_0x1a28('0x39')][_0x1a28('0x2')](_0x1a28('0x2a'));this[_0x1a28('0x9')]=new _0x4a4854(this[_0x1a28('0x1b')]['locale'],_0x12a350,_0xd429ba),this[_0x1a28('0x9')]['on'](_0x1a28('0x1c'),this[_0x1a28('0x1a')][_0x1a28('0x3')](this)),this['_sidebarView']['on']('revisionSetName',this[_0x1a28('0x1d')][_0x1a28('0x3')](this)),this['_sidebarView']['bind'](_0x1a28('0x11'))['to'](this[_0x1a28('0xa')]),this['_sidebarView']['timePeriodViews']['on'](_0x1a28('0x13'),(_0x5f5459,_0x466816)=>{_0x466816[_0x1a28('0x17')]['on'](_0x1a28('0x13'),(_0x19826b,_0xc08584)=>{_0xc08584['bind'](_0x1a28('0x11'),_0x1a28('0x0'))['to'](this[_0x1a28('0xa')]);});}),this[_0x1a28('0x9')]['render'](),this[_0x1a28('0x2c')](this[_0x1a28('0x1b')][_0x1a28('0x3c')],_0x1a28('0x38'),this[_0x1a28('0x2f')]['bind'](this)),this[_0x1a28('0x2c')](this[_0x1a28('0xa')],_0x1a28('0x35'),this[_0x1a28('0xb')]['bind'](this)),_0x53be47[_0x1a28('0x14')](this[_0x1a28('0x9')][_0x1a28('0xd')]);}[_0x1a28('0x7')](){this[_0x1a28('0x9')]['element']['remove'](),this['_sidebarView']['destroy']();}[_0x1a28('0x2f')](){const _0x139e0c=this[_0x1a28('0x32')][_0x1a28('0xe')](0x0);if(_0x139e0c){const _0x4f85ee=this['_revisionsRepository'][_0x1a28('0x33')](_0x139e0c['id']);this[_0x1a28('0xa')]['compare'](_0x139e0c,_0x4f85ee);}}[_0x1a28('0x1a')](_0x10bc3c,_0x5a3983){const _0x42e9d1=this[_0x1a28('0x32')][_0x1a28('0xe')](_0x5a3983['id']),_0x4f4209=this[_0x1a28('0x32')][_0x1a28('0x33')](_0x42e9d1['id']);this[_0x1a28('0xa')][_0x1a28('0x20')](_0x42e9d1,_0x4f4209);}['_handleRevisionSetName'](_0x1bebcf,_0x45ffe0){this['_revisionsRepository'][_0x1a28('0xe')](_0x45ffe0['id'])[_0x1a28('0x18')](_0x45ffe0['name']);}[_0x1a28('0xb')](_0x3e72ff,_0x4f112b,_0x5f5952){const _0x2b05b5=this[_0x1a28('0x32')][_0x1a28('0x2d')](_0x5f5952);_0x2b05b5[_0x1a28('0x28')]>0x2?(this['_sidebarView'][_0x1a28('0xc')](_0x2b05b5),this[_0x1a28('0x9')][_0x1a28('0x3b')](null)):(this[_0x1a28('0x9')][_0x1a28('0xc')]([]),this[_0x1a28('0x9')][_0x1a28('0x3b')](_0x2b05b5[0x0]));}[_0x1a28('0x12')](){const _0x2f9975=this[_0x1a28('0x1b')],_0x1da507=d[_0x1a28('0x36')],_0x5708cb=_0x2f9975[_0x1a28('0x39')][_0x1a28('0x2')](_0x1a28('0x10'))||d[_0x1a28('0x25')];if(_0x5708cb[_0x1a28('0x28')])return _0x5708cb['map'](_0x243bf3=>{const _0xaf31b3=_0x1a28('0x21')==typeof _0x243bf3?Object[_0x1a28('0x26')]({},_0x1da507[_0x243bf3]):_0x243bf3;return _0xaf31b3[_0x1a28('0x1')]=_0xaf31b3[_0x1a28('0x1')][_0x1a28('0x3')](this,_0x2f9975),_0xaf31b3[_0x1a28('0x31')]&&(_0xaf31b3[_0x1a28('0x31')]=_0xaf31b3[_0x1a28('0x31')][_0x1a28('0x3')](this,_0x2f9975)),_0xaf31b3;});}}d[_0x1a28('0x36')]={'compareAgainstSelected':{'name':_0x1a28('0x5'),'action':({plugins:_0x1e55cc},_0xcd0e88)=>{const _0x1cdc7e=_0x1e55cc[_0x1a28('0x2')](_0x383911),_0x4b09be=_0x1cdc7e['repository'];let _0x11ad2f=_0x1cdc7e[_0x1a28('0x16')][_0x1a28('0x8')],_0x5db413=_0xcd0e88['id'];_0x4b09be[_0x1a28('0x4')](_0x11ad2f)>_0x4b09be['getIndex'](_0x5db413)&&([_0x11ad2f,_0x5db413]=[_0x5db413,_0x11ad2f]),_0x1cdc7e[_0x1a28('0x20')](_0x11ad2f,_0x5db413);},'isVisible':({plugins:_0x1b3aab},_0x14dcbf)=>{const _0x537cd3=_0x1b3aab[_0x1a28('0x2')](_0x383911);return!(_0x537cd3[_0x1a28('0x3a')][_0x1a28('0x2d')](_0x537cd3['diff'])['length']>0x2)&&!_0x14dcbf[_0x1a28('0x23')];}},'restoreRevision':{'name':_0x1a28('0x27'),'action':(_0x419e72,{id:_0x42d239})=>{_0x419e72[_0x1a28('0x39')][_0x1a28('0x2')]('revisionHistory')['restoreRevisionCallback'](_0x42d239);},'isVisible':({plugins:_0x2210ee},_0x48f847)=>!!_0x2210ee['get'](_0x383911)[_0x1a28('0x3a')][_0x1a28('0x30')](_0x48f847['id'])},'nameRevision':{'name':_0x1a28('0x22'),'action':({plugins:_0x3c6b69},{id:_0x1739ba,revisionNameView:_0x1ad86d})=>{const _0x5456a3=_0x3c6b69[_0x1a28('0x2')](_0x383911),_0x4a1410=_0x5456a3['repository'][_0x1a28('0x33')](_0x1739ba);_0x5456a3[_0x1a28('0x20')](_0x1739ba,_0x4a1410),_0x1ad86d[_0x1a28('0x19')](),_0x1ad86d[_0x1a28('0x29')][_0x1a28('0x2e')]();}}},d['defaultRevisionActions']=[_0x1a28('0xf'),_0x1a28('0x1f'),_0x1a28('0x1e')];
23
+ const _0x34ee=['revisionHistory','availableRevisionActions','newRevisionId','_revisionViewer','destroy','add','string','_handleRevisionSetName','change:diff','bind','_revisions','restoreRevision','Compare\x20against\x20selected','getRevisionsInDiff','name','listenTo','revisionSelected','_handleEditorDataReady','repository','getRevision','plugins','length','revisionHistory.viewerSidebarContainer','nameRevision','editor','restoreRevisionCallback','render','getEarlierVisibleRevision','config','diff','locale','timePeriodViews','compare','compareAgainstSelected','select','map','highlightRevisions','focus','remove','RevisionsSidebar','_handleRevisionSelected','getIndex','appendChild','ready','revisionViews','getLaterVisibleRevision','Name\x20this\x20revision','_revisionsRepository','_sidebarView','pluginName','element','requires','selectRevision','defaultRevisionActions','assign','action','get','isVisible','_handleDiffChange','revisionHistory.revisionActions','data'];(function(_0x4eb51c,_0x34eeef){const _0x4d8238=function(_0x26a4dc){while(--_0x26a4dc){_0x4eb51c['push'](_0x4eb51c['shift']());}};_0x4d8238(++_0x34eeef);}(_0x34ee,0x1ae));const _0x4d82=function(_0x4eb51c,_0x34eeef){_0x4eb51c=_0x4eb51c-0x0;let _0x4d8238=_0x34ee[_0x4eb51c];return _0x4d8238;};import{Plugin as _0x5d069d}from'ckeditor5/src/core';import _0x55a433 from'./revisionssidebarview';import _0x4eb6fd from'../../revisionviewer';export default class d extends _0x5d069d{static get[_0x4d82('0x2e')](){return _0x4d82('0x24');}static get[_0x4d82('0x30')](){return[_0x4eb6fd];}constructor(_0x15a5fc){super(_0x15a5fc),this[_0x4d82('0x0')]=_0x15a5fc[_0x4d82('0x11')][_0x4d82('0x35')](_0x4eb6fd),this['_revisionsRepository']=this[_0x4d82('0x0')][_0x4d82('0xf')],this[_0x4d82('0x2d')]=null;}['init'](){const _0x308dd1=this[_0x4d82('0x2c')][_0x4d82('0x7')],_0x459123=this['_createRevisionActions'](),_0x1d25e0=this[_0x4d82('0x15')][_0x4d82('0x19')]['get'](_0x4d82('0x13'));this[_0x4d82('0x2d')]=new _0x55a433(this['editor'][_0x4d82('0x1b')],_0x308dd1,_0x459123),this[_0x4d82('0x2d')]['on'](_0x4d82('0xd'),this[_0x4d82('0x25')][_0x4d82('0x6')](this)),this[_0x4d82('0x2d')]['on']('revisionSetName',this[_0x4d82('0x4')]['bind'](this)),this[_0x4d82('0x2d')][_0x4d82('0x6')]('isEnabled')['to'](this['_revisionViewer']),this[_0x4d82('0x2d')][_0x4d82('0x1c')]['on'](_0x4d82('0x2'),(_0x14d7f5,_0x112e0d)=>{_0x112e0d[_0x4d82('0x29')]['on'](_0x4d82('0x2'),(_0x2d3ae6,_0x2fb77e)=>{_0x2fb77e[_0x4d82('0x6')]('isEnabled','isReady')['to'](this[_0x4d82('0x0')]);});}),this[_0x4d82('0x2d')][_0x4d82('0x17')](),this[_0x4d82('0xc')](this['editor'][_0x4d82('0x39')],_0x4d82('0x28'),this[_0x4d82('0xe')]['bind'](this)),this[_0x4d82('0xc')](this[_0x4d82('0x0')],_0x4d82('0x5'),this[_0x4d82('0x37')][_0x4d82('0x6')](this)),_0x1d25e0[_0x4d82('0x27')](this['_sidebarView'][_0x4d82('0x2f')]);}[_0x4d82('0x1')](){this[_0x4d82('0x2d')][_0x4d82('0x2f')][_0x4d82('0x23')](),this['_sidebarView'][_0x4d82('0x1')]();}['_handleEditorDataReady'](){const _0x1e3ca1=this[_0x4d82('0x2c')][_0x4d82('0x10')](0x0);if(_0x1e3ca1){const _0x5653eb=this[_0x4d82('0x2c')]['getEarlierVisibleRevision'](_0x1e3ca1['id']);this[_0x4d82('0x0')]['compare'](_0x1e3ca1,_0x5653eb);}}[_0x4d82('0x25')](_0x58f9b7,_0x1c51ce){const _0x24e4be=this['_revisionsRepository']['getRevision'](_0x1c51ce['id']),_0x24f87c=this[_0x4d82('0x2c')][_0x4d82('0x18')](_0x24e4be['id']);this[_0x4d82('0x0')]['compare'](_0x24e4be,_0x24f87c);}[_0x4d82('0x4')](_0x45726b,_0x13d859){this['_revisionsRepository'][_0x4d82('0x10')](_0x13d859['id'])['setName'](_0x13d859[_0x4d82('0xb')]);}['_handleDiffChange'](_0x2482ae,_0x1bc312,_0x4cc72a){const _0x18c378=this['_revisionsRepository'][_0x4d82('0xa')](_0x4cc72a);_0x18c378[_0x4d82('0x12')]>0x2?(this['_sidebarView'][_0x4d82('0x21')](_0x18c378),this[_0x4d82('0x2d')][_0x4d82('0x31')](null)):(this[_0x4d82('0x2d')][_0x4d82('0x21')]([]),this[_0x4d82('0x2d')][_0x4d82('0x31')](_0x18c378[0x0]));}['_createRevisionActions'](){const _0xb9370d=this[_0x4d82('0x15')],_0x184f34=d['availableRevisionActions'],_0xaa6093=_0xb9370d[_0x4d82('0x19')]['get'](_0x4d82('0x38'))||d[_0x4d82('0x32')];if(_0xaa6093[_0x4d82('0x12')])return _0xaa6093[_0x4d82('0x20')](_0x3fe76a=>{const _0x57ff31=_0x4d82('0x3')==typeof _0x3fe76a?Object[_0x4d82('0x33')]({},_0x184f34[_0x3fe76a]):_0x3fe76a;return _0x57ff31['action']=_0x57ff31[_0x4d82('0x34')][_0x4d82('0x6')](this,_0xb9370d),_0x57ff31[_0x4d82('0x36')]&&(_0x57ff31[_0x4d82('0x36')]=_0x57ff31[_0x4d82('0x36')][_0x4d82('0x6')](this,_0xb9370d)),_0x57ff31;});}}d[_0x4d82('0x3b')]={'compareAgainstSelected':{'name':_0x4d82('0x9'),'action':({plugins:_0x5708f4},_0x315301)=>{const _0x3fed28=_0x5708f4[_0x4d82('0x35')](_0x4eb6fd),_0x5cc641=_0x3fed28[_0x4d82('0xf')];let _0x14df0d=_0x3fed28[_0x4d82('0x1a')][_0x4d82('0x3c')],_0x701d50=_0x315301['id'];_0x5cc641[_0x4d82('0x26')](_0x14df0d)>_0x5cc641[_0x4d82('0x26')](_0x701d50)&&([_0x14df0d,_0x701d50]=[_0x701d50,_0x14df0d]),_0x3fed28[_0x4d82('0x1d')](_0x14df0d,_0x701d50);},'isVisible':({plugins:_0x1143a7},_0x388513)=>{const _0x28bc14=_0x1143a7[_0x4d82('0x35')](_0x4eb6fd);return!(_0x28bc14['repository'][_0x4d82('0xa')](_0x28bc14[_0x4d82('0x1a')])['length']>0x2)&&!_0x388513['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x4fc4d3,{id:_0x194988})=>{_0x4fc4d3[_0x4d82('0x19')][_0x4d82('0x35')](_0x4d82('0x3a'))[_0x4d82('0x16')](_0x194988);},'isVisible':({plugins:_0x1205bf},_0x2270b8)=>!!_0x1205bf['get'](_0x4eb6fd)[_0x4d82('0xf')][_0x4d82('0x2a')](_0x2270b8['id'])},'nameRevision':{'name':_0x4d82('0x2b'),'action':({plugins:_0x177d69},{id:_0x5f1b76,revisionNameView:_0x3af150})=>{const _0xbce4de=_0x177d69['get'](_0x4eb6fd),_0x5d1750=_0xbce4de[_0x4d82('0xf')]['getEarlierVisibleRevision'](_0x5f1b76);_0xbce4de[_0x4d82('0x1d')](_0x5f1b76,_0x5d1750),_0x3af150[_0x4d82('0x22')](),_0x3af150['fieldView'][_0x4d82('0x1f')]();}}},d[_0x4d82('0x32')]=[_0x4d82('0x1e'),_0x4d82('0x8'),_0x4d82('0x14')];
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x48eb=['ck-reset_all','ck-revision-history-sidebar__header__label','ck-revision-history-sidebar__header','span','setTemplate'];(function(_0x4ab5f8,_0x48eb0d){const _0x457aa6=function(_0x4b7dde){while(--_0x4b7dde){_0x4ab5f8['push'](_0x4ab5f8['shift']());}};_0x457aa6(++_0x48eb0d);}(_0x48eb,0x19e));const _0x457a=function(_0x4ab5f8,_0x48eb0d){_0x4ab5f8=_0x4ab5f8-0x0;let _0x457aa6=_0x48eb[_0x4ab5f8];return _0x457aa6;};import{View as _0x150e4f,IconView as _0x1c7a87}from'ckeditor5/src/ui';import{getTranslation as _0x21868d}from'../../utils/common-translations';import _0x530e5f from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class cs extends _0x150e4f{constructor(_0xb9c1d3){super(_0xb9c1d3);const _0x3253e7=new _0x1c7a87(_0xb9c1d3);_0x3253e7['content']=_0x530e5f,this[_0x457a('0x0')]({'tag':'div','attributes':{'class':['ck',_0x457a('0x1'),_0x457a('0x3')]},'children':[_0x3253e7,{'tag':_0x457a('0x4'),'attributes':{'class':['ck',_0x457a('0x2')]},'children':[_0x21868d(_0xb9c1d3,'Revision\x20history')]}]});}}
23
+ const _0x5216=['ck-revision-history-sidebar__header','span','Revision\x20history','div','setTemplate','content'];(function(_0x49e62a,_0x521642){const _0x547f61=function(_0x1eca82){while(--_0x1eca82){_0x49e62a['push'](_0x49e62a['shift']());}};_0x547f61(++_0x521642);}(_0x5216,0x19a));const _0x547f=function(_0x49e62a,_0x521642){_0x49e62a=_0x49e62a-0x0;let _0x547f61=_0x5216[_0x49e62a];return _0x547f61;};import{View as _0x3de0e7,IconView as _0x48e6ae}from'ckeditor5/src/ui';import{getTranslation as _0x1972b4}from'../../utils/common-translations';import _0x35a293 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class cs extends _0x3de0e7{constructor(_0x4d0df0){super(_0x4d0df0);const _0x23daaf=new _0x48e6ae(_0x4d0df0);_0x23daaf[_0x547f('0x3')]=_0x35a293,this[_0x547f('0x2')]({'tag':_0x547f('0x1'),'attributes':{'class':['ck','ck-reset_all',_0x547f('0x4')]},'children':[_0x23daaf,{'tag':_0x547f('0x5'),'attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[_0x1972b4(_0x4d0df0,_0x547f('0x0'))]}]});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2f11=['removeRevision','locale','_revisionActions','add','ck-revision-history-sidebar__time-period__label','ck-revision-history-sidebar__time-period__revisions','addRevision','remove','setTemplate','delegate','localizedPeriodName','select','revisionViews','createCollection','div','setName','ck-revision-history-sidebar__time-period','span','startDate'];(function(_0x3a3a95,_0x2f114a){const _0x5bdef8=function(_0x50e761){while(--_0x50e761){_0x3a3a95['push'](_0x3a3a95['shift']());}};_0x5bdef8(++_0x2f114a);}(_0x2f11,0x158));const _0x5bde=function(_0x3a3a95,_0x2f114a){_0x3a3a95=_0x3a3a95-0x0;let _0x5bdef8=_0x2f11[_0x3a3a95];return _0x5bdef8;};import{View as _0xb4b661}from'ckeditor5/src/ui';import _0x3f3b5d from'../revision/revisionview';import{getDateTimePeriodInfo as _0xf8838f}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0xb4b661{constructor(_0x3be035,_0x47940a,_0x51422c){super(_0x3be035);const _0x44db3d=_0xf8838f(_0x47940a,this['locale']['uiLanguage'])[_0x5bde('0x8')];this[_0x5bde('0x10')]=_0x47940a,this[_0x5bde('0x0')]=_0x51422c,this[_0x5bde('0xa')]=this[_0x5bde('0xb')](),this[_0x5bde('0xa')][_0x5bde('0x7')](_0x5bde('0x9'))['to'](this),this['revisionViews'][_0x5bde('0x7')](_0x5bde('0xd'))['to'](this),this[_0x5bde('0x6')]({'tag':'div','attributes':{'class':['ck',_0x5bde('0xe')]},'children':[{'tag':_0x5bde('0xf'),'attributes':{'class':['ck',_0x5bde('0x2')]},'children':[{'text':_0x44db3d}]},{'tag':_0x5bde('0xc'),'attributes':{'class':['ck',_0x5bde('0x3')]},'children':this['revisionViews']}]});}[_0x5bde('0x4')](_0x578468){const _0x5d3b50=new _0x3f3b5d(this[_0x5bde('0x12')],_0x578468,this[_0x5bde('0x0')]);this[_0x5bde('0xa')][_0x5bde('0x1')](_0x5d3b50);}[_0x5bde('0x11')](_0x127267){const _0x3be456=this[_0x5bde('0xa')]['find'](_0x30b29e=>_0x30b29e['id']===_0x127267['id']);this[_0x5bde('0xa')][_0x5bde('0x5')](_0x3be456);}}
23
+ const _0xdd87=['localizedPeriodName','startDate','removeRevision','div','setName','createCollection','locale','select','ck-revision-history-sidebar__time-period','add','ck-revision-history-sidebar__time-period__label','_revisionActions','revisionViews','delegate','span','addRevision','setTemplate'];(function(_0x1953b3,_0xdd87a2){const _0x470c53=function(_0x36f2e6){while(--_0x36f2e6){_0x1953b3['push'](_0x1953b3['shift']());}};_0x470c53(++_0xdd87a2);}(_0xdd87,0xce));const _0x470c=function(_0x1953b3,_0xdd87a2){_0x1953b3=_0x1953b3-0x0;let _0x470c53=_0xdd87[_0x1953b3];return _0x470c53;};import{View as _0x471899}from'ckeditor5/src/ui';import _0x56387c from'../revision/revisionview';import{getDateTimePeriodInfo as _0x35f93d}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x471899{constructor(_0x59ef97,_0x683934,_0x4d92ad){super(_0x59ef97);const _0x1faaff=_0x35f93d(_0x683934,this['locale']['uiLanguage'])[_0x470c('0xf')];this[_0x470c('0x10')]=_0x683934,this[_0x470c('0x9')]=_0x4d92ad,this[_0x470c('0xa')]=this[_0x470c('0x3')](),this[_0x470c('0xa')][_0x470c('0xb')](_0x470c('0x5'))['to'](this),this[_0x470c('0xa')][_0x470c('0xb')](_0x470c('0x2'))['to'](this),this[_0x470c('0xe')]({'tag':_0x470c('0x1'),'attributes':{'class':['ck',_0x470c('0x6')]},'children':[{'tag':_0x470c('0xc'),'attributes':{'class':['ck',_0x470c('0x8')]},'children':[{'text':_0x1faaff}]},{'tag':_0x470c('0x1'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this[_0x470c('0xa')]}]});}[_0x470c('0xd')](_0x42aa5e){const _0x48efa8=new _0x56387c(this[_0x470c('0x4')],_0x42aa5e,this[_0x470c('0x9')]);this[_0x470c('0xa')][_0x470c('0x7')](_0x48efa8);}[_0x470c('0x0')](_0x48f7bc){const _0x3ebd65=this['revisionViews']['find'](_0x539570=>_0x539570['id']===_0x48f7bc['id']);this[_0x470c('0xa')]['remove'](_0x3ebd65);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x51db=['ck-reset','render','_revisionActions','timePeriodViews','addRevision','remove','add','createdAt','some','_getTimePeriodViewByStartDate','selectRevision','ck-disabled','select','createCollection','highlight','startDate','setTemplate','fire','flat','_revisions','get','map','delegate','revisionViews','highlightRevisions','find','getTime','deselect','ck-rounded-corners','_addRevision','setName','_removeRevision','div','unhighlight','isEnabled','bindTemplate','ck-revision-history-sidebar'];(function(_0x1240f1,_0x51db4c){const _0x3e1199=function(_0x3a059f){while(--_0x3a059f){_0x1240f1['push'](_0x1240f1['shift']());}};_0x3e1199(++_0x51db4c);}(_0x51db,0xb0));const _0x3e11=function(_0x1240f1,_0x51db4c){_0x1240f1=_0x1240f1-0x0;let _0x3e1199=_0x51db[_0x1240f1];return _0x3e1199;};import{View as _0x2108b0}from'ckeditor5/src/ui';import _0x70d4a5 from'./revisionssidebartimeperiodview';import _0x2b4969 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x1e693c}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x2108b0{constructor(_0x1de9f6,_0x3b3fa1,_0x5cb135){super(_0x1de9f6);const _0x22cd1f=this[_0x3e11('0x7')];this['timePeriodViews']=this[_0x3e11('0x16')](),this[_0x3e11('0xc')][_0x3e11('0x1f')](_0x3e11('0x15'))['to'](this),this['timePeriodViews'][_0x3e11('0x1f')](_0x3e11('0x2'))['to'](this),this[_0x3e11('0x1c')]=_0x3b3fa1,this['_revisionActions']=_0x5cb135,this['on'](_0x3e11('0x15'),(_0x187031,_0x5ed45d)=>{this[_0x3e11('0x1a')]('revisionSelected',_0x5ed45d);}),this['on'](_0x3e11('0x2'),(_0x2dd3bc,_0xc7f2ea)=>{this['fire']('revisionSetName',_0xc7f2ea);}),this['set'](_0x3e11('0x6'),!0x1),this[_0x3e11('0x19')]({'tag':_0x3e11('0x4'),'attributes':{'class':['ck',_0x3e11('0x9'),_0x3e11('0x0'),_0x3e11('0x8')]},'children':[new _0x2b4969(_0x1de9f6),{'tag':_0x3e11('0x4'),'attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x22cd1f['if'](_0x3e11('0x6'),_0x3e11('0x14'),_0x24a0e6=>!_0x24a0e6)]},'children':this['timePeriodViews']}]});}[_0x3e11('0xa')](){super[_0x3e11('0xa')]();for(const _0x57fce9 of this[_0x3e11('0x1c')])this['_addRevision'](_0x57fce9);this[_0x3e11('0x1c')]['on']('add',(_0x2539f2,_0xf3d6b9)=>{this[_0x3e11('0x1')](_0xf3d6b9);}),this[_0x3e11('0x1c')]['on'](_0x3e11('0xe'),(_0x1f3751,_0x5855a4)=>{this[_0x3e11('0x3')](_0x5855a4);});}get[_0x3e11('0x20')](){return this[_0x3e11('0xc')][_0x3e11('0x1e')](_0x627b3=>_0x627b3['revisionViews'][_0x3e11('0x1e')](_0x9c4069=>_0x9c4069))[_0x3e11('0x1b')]();}[_0x3e11('0x13')](_0x1e3af3){for(const _0x1fd9c6 of this[_0x3e11('0x20')])_0x1e3af3&&_0x1e3af3['id']===_0x1fd9c6['id']?_0x1fd9c6[_0x3e11('0x15')]():_0x1fd9c6[_0x3e11('0x24')]();}[_0x3e11('0x21')](_0xec385e){for(const _0x31d1db of this['revisionViews'])_0xec385e[_0x3e11('0x11')](({id:_0x16acb3})=>_0x16acb3===_0x31d1db['id'])?_0x31d1db[_0x3e11('0x17')]():_0x31d1db[_0x3e11('0x5')]();}[_0x3e11('0x1')](_0x32a08f){const _0x4ace12=_0x1e693c(_0x32a08f[_0x3e11('0x10')])[_0x3e11('0x18')];let _0x492824=this[_0x3e11('0xc')][_0x3e11('0x1d')](0x0);_0x492824&&_0x492824[_0x3e11('0x18')]['getTime']()===_0x4ace12[_0x3e11('0x23')]()||(_0x492824=new _0x70d4a5(this['locale'],_0x4ace12,this[_0x3e11('0xb')]),this[_0x3e11('0xc')][_0x3e11('0xf')](_0x492824)),_0x492824[_0x3e11('0xd')](_0x32a08f);}[_0x3e11('0x3')](_0x1400f9){const _0x559509=_0x1e693c(_0x1400f9[_0x3e11('0x10')])[_0x3e11('0x18')];this['_getTimePeriodViewByStartDate'](_0x559509)['removeRevision'](_0x1400f9);}[_0x3e11('0x12')](_0x30b1df){return this[_0x3e11('0xc')][_0x3e11('0x22')](_0x4b8a9b=>_0x4b8a9b['startDate'][_0x3e11('0x23')]()===_0x30b1df[_0x3e11('0x23')]());}}
23
+ const _0x5f37=['createCollection','add','revisionSelected','unhighlight','some','revisionSetName','remove','delegate','_revisions','_revisionActions','deselect','select','set','fire','render','startDate','bindTemplate','isEnabled','get','setName','ck-revision-history-sidebar__timeline','setTemplate','_removeRevision','_getTimePeriodViewByStartDate','ck-revision-history-sidebar','timePeriodViews','removeRevision','createdAt','getTime','div','revisionViews','ck-disabled','_addRevision','map'];(function(_0x4b5acd,_0x5f37b4){const _0x2de4ea=function(_0xc1329a){while(--_0xc1329a){_0x4b5acd['push'](_0x4b5acd['shift']());}};_0x2de4ea(++_0x5f37b4);}(_0x5f37,0x1a0));const _0x2de4=function(_0x4b5acd,_0x5f37b4){_0x4b5acd=_0x4b5acd-0x0;let _0x2de4ea=_0x5f37[_0x4b5acd];return _0x2de4ea;};import{View as _0x432b3d}from'ckeditor5/src/ui';import _0x2957de from'./revisionssidebartimeperiodview';import _0x4de5bb from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x2ce42f}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x432b3d{constructor(_0x2b3dff,_0x16bc74,_0x8743d1){super(_0x2b3dff);const _0x390c68=this[_0x2de4('0x8')];this[_0x2de4('0x11')]=this[_0x2de4('0x1a')](),this[_0x2de4('0x11')][_0x2de4('0x21')](_0x2de4('0x3'))['to'](this),this[_0x2de4('0x11')]['delegate']('setName')['to'](this),this['_revisions']=_0x16bc74,this['_revisionActions']=_0x8743d1,this['on'](_0x2de4('0x3'),(_0x358784,_0x1773e2)=>{this[_0x2de4('0x5')](_0x2de4('0x1c'),_0x1773e2);}),this['on'](_0x2de4('0xb'),(_0x33d041,_0x1cd940)=>{this[_0x2de4('0x5')](_0x2de4('0x1f'),_0x1cd940);}),this[_0x2de4('0x4')](_0x2de4('0x9'),!0x1),this[_0x2de4('0xd')]({'tag':_0x2de4('0x15'),'attributes':{'class':['ck','ck-reset','ck-rounded-corners',_0x2de4('0x10')]},'children':[new _0x4de5bb(_0x2b3dff),{'tag':_0x2de4('0x15'),'attributes':{'class':['ck',_0x2de4('0xc'),_0x390c68['if'](_0x2de4('0x9'),_0x2de4('0x17'),_0x5acc9a=>!_0x5acc9a)]},'children':this['timePeriodViews']}]});}[_0x2de4('0x6')](){super[_0x2de4('0x6')]();for(const _0x28114d of this[_0x2de4('0x0')])this[_0x2de4('0x18')](_0x28114d);this[_0x2de4('0x0')]['on'](_0x2de4('0x1b'),(_0x10b486,_0x109b60)=>{this['_addRevision'](_0x109b60);}),this[_0x2de4('0x0')]['on'](_0x2de4('0x20'),(_0x403115,_0xcdec17)=>{this['_removeRevision'](_0xcdec17);});}get[_0x2de4('0x16')](){return this[_0x2de4('0x11')]['map'](_0x305f72=>_0x305f72[_0x2de4('0x16')][_0x2de4('0x19')](_0x36c109=>_0x36c109))['flat']();}['selectRevision'](_0x31bf4e){for(const _0x57de4d of this['revisionViews'])_0x31bf4e&&_0x31bf4e['id']===_0x57de4d['id']?_0x57de4d[_0x2de4('0x3')]():_0x57de4d[_0x2de4('0x2')]();}['highlightRevisions'](_0x374f41){for(const _0x2ac8d9 of this['revisionViews'])_0x374f41[_0x2de4('0x1e')](({id:_0x5771da})=>_0x5771da===_0x2ac8d9['id'])?_0x2ac8d9['highlight']():_0x2ac8d9[_0x2de4('0x1d')]();}[_0x2de4('0x18')](_0x21a521){const _0x5a8e52=_0x2ce42f(_0x21a521[_0x2de4('0x13')])[_0x2de4('0x7')];let _0x2a14fb=this[_0x2de4('0x11')][_0x2de4('0xa')](0x0);_0x2a14fb&&_0x2a14fb[_0x2de4('0x7')][_0x2de4('0x14')]()===_0x5a8e52[_0x2de4('0x14')]()||(_0x2a14fb=new _0x2957de(this['locale'],_0x5a8e52,this[_0x2de4('0x1')]),this['timePeriodViews'][_0x2de4('0x1b')](_0x2a14fb)),_0x2a14fb['addRevision'](_0x21a521);}[_0x2de4('0xe')](_0x5da8c8){const _0x377091=_0x2ce42f(_0x5da8c8[_0x2de4('0x13')])[_0x2de4('0x7')];this['_getTimePeriodViewByStartDate'](_0x377091)[_0x2de4('0x12')](_0x5da8c8);}[_0x2de4('0xf')](_0x5902e8){return this[_0x2de4('0x11')]['find'](_0x147aad=>_0x147aad[_0x2de4('0x7')][_0x2de4('0x14')]()===_0x5902e8[_0x2de4('0x14')]());}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x35f9=['hasSame','month','fromJSDate','year','toJSDate','setLocale','week','monthLong','minus','startOf','day','toRelativeCalendar'];(function(_0x26d02b,_0x35f9ee){const _0x4682bd=function(_0x108cef){while(--_0x108cef){_0x26d02b['push'](_0x26d02b['shift']());}};_0x4682bd(++_0x35f9ee);}(_0x35f9,0x107));const _0x4682=function(_0x26d02b,_0x35f9ee){_0x26d02b=_0x26d02b-0x0;let _0x4682bd=_0x35f9[_0x26d02b];return _0x4682bd;};import{DateTime as _0x568003}from'luxon';export function getDateTimePeriodInfo(_0x140e3e,_0x3b2c1e){_0x140e3e=_0x568003[_0x4682('0x3')](_0x140e3e)[_0x4682('0x6')](_0x3b2c1e);const _0x56ed67=_0x568003['local'](),_0x3fee43=_0x56ed67[_0x4682('0x9')]({'days':0x1})[_0x4682('0xa')](_0x4682('0xb'));let _0x3f6443,_0x345a3e;return _0x140e3e[_0x4682('0x1')](_0x56ed67,_0x4682('0xb'))?(_0x3f6443=_0x140e3e[_0x4682('0xa')](_0x4682('0xb'))[_0x4682('0x5')](),_0x345a3e=_0x140e3e[_0x4682('0x0')]()):_0x140e3e[_0x4682('0x1')](_0x3fee43,_0x4682('0xb'))?(_0x3f6443=_0x3fee43[_0x4682('0x5')](),_0x345a3e=_0x140e3e[_0x4682('0x0')]()):_0x140e3e['hasSame'](_0x56ed67,_0x4682('0x7'))?(_0x3f6443=_0x140e3e[_0x4682('0xa')](_0x4682('0x7'))[_0x4682('0x5')](),_0x345a3e=_0x140e3e['weekdayLong']):_0x140e3e['hasSame'](_0x56ed67,_0x4682('0x4'))?(_0x3f6443=_0x140e3e[_0x4682('0xa')](_0x4682('0x2'))['toJSDate'](),_0x345a3e=_0x140e3e[_0x4682('0x8')]):(_0x3f6443=_0x140e3e[_0x4682('0xa')](_0x4682('0x4'))[_0x4682('0x5')](),_0x345a3e=_0x140e3e['year']),{'startDate':_0x3f6443,'localizedPeriodName':_0x345a3e};}
23
+ const _0x19da=['week','local','toJSDate','startOf','day','year','weekdayLong','toRelativeCalendar','monthLong','hasSame'];(function(_0x50487f,_0x19dad6){const _0x49c888=function(_0x33d965){while(--_0x33d965){_0x50487f['push'](_0x50487f['shift']());}};_0x49c888(++_0x19dad6);}(_0x19da,0x1b5));const _0x49c8=function(_0x50487f,_0x19dad6){_0x50487f=_0x50487f-0x0;let _0x49c888=_0x19da[_0x50487f];return _0x49c888;};import{DateTime as _0x599d4e}from'luxon';export function getDateTimePeriodInfo(_0x447eef,_0x19f3a0){_0x447eef=_0x599d4e['fromJSDate'](_0x447eef)['setLocale'](_0x19f3a0);const _0x558ed4=_0x599d4e[_0x49c8('0x4')](),_0x48837a=_0x558ed4['minus']({'days':0x1})[_0x49c8('0x6')](_0x49c8('0x7'));let _0x48ba51,_0x7e7a12;return _0x447eef[_0x49c8('0x2')](_0x558ed4,_0x49c8('0x7'))?(_0x48ba51=_0x447eef[_0x49c8('0x6')](_0x49c8('0x7'))[_0x49c8('0x5')](),_0x7e7a12=_0x447eef['toRelativeCalendar']()):_0x447eef[_0x49c8('0x2')](_0x48837a,_0x49c8('0x7'))?(_0x48ba51=_0x48837a[_0x49c8('0x5')](),_0x7e7a12=_0x447eef[_0x49c8('0x0')]()):_0x447eef[_0x49c8('0x2')](_0x558ed4,_0x49c8('0x3'))?(_0x48ba51=_0x447eef['startOf']('week')[_0x49c8('0x5')](),_0x7e7a12=_0x447eef[_0x49c8('0x9')]):_0x447eef[_0x49c8('0x2')](_0x558ed4,'year')?(_0x48ba51=_0x447eef['startOf']('month')[_0x49c8('0x5')](),_0x7e7a12=_0x447eef[_0x49c8('0x1')]):(_0x48ba51=_0x447eef[_0x49c8('0x6')](_0x49c8('0x8'))[_0x49c8('0x5')](),_0x7e7a12=_0x447eef[_0x49c8('0x8')]),{'startDate':_0x48ba51,'localizedPeriodName':_0x7e7a12};}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5b1b=['author','span','name','type','isSuggestion','data','Added\x20by','add','_model','div','setTemplate','focus','ck-revision-change','set'];(function(_0x414274,_0x5b1b2c){const _0x278c28=function(_0x57fcbf){while(--_0x57fcbf){_0x414274['push'](_0x414274['shift']());}};_0x278c28(++_0x5b1b2c);}(_0x5b1b,0x176));const _0x278c=function(_0x414274,_0x5b1b2c){_0x414274=_0x414274-0x0;let _0x278c28=_0x5b1b[_0x414274];return _0x278c28;};import{View as _0x5e8cbe}from'ckeditor5/src/ui';import{getTranslation as _0x3fabd2}from'../../utils/common-translations';export default class G extends _0x5e8cbe{constructor(_0x15f96d,_0x231a7d){super(_0x15f96d),this[_0x278c('0xc')]=_0x231a7d;const _0x2496fb=this['bindTemplate'],_0x508b19=_0x3fabd2(_0x15f96d,_0x231a7d[_0x278c('0x9')][_0x278c('0x8')]?'Suggested\x20by':_0x278c('0xb')==_0x231a7d['type']?_0x278c('0xa'):'Removed\x20by');this[_0x278c('0x3')](_0x278c('0x7'),_0x231a7d[_0x278c('0x7')]),this[_0x278c('0x0')]({'tag':_0x278c('0xd'),'attributes':{'class':['ck-annotation',_0x278c('0x2'),_0x2496fb['to']('type',_0x46e42b=>'ck-revision-change__'+_0x46e42b)],'tabindex':-0x1},'children':[{'tag':_0x278c('0x5'),'children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x508b19}]},{'text':'\x20'+_0x231a7d[_0x278c('0x4')][_0x278c('0x6')]}]}]});}['focus'](){this['element'][_0x278c('0x1')]();}}
23
+ const _0x1fc0=['name','author','add','isSuggestion','set','span','changeId','ck-annotation','type','focus','ck-revision-change','element','data','ck-revision-change__label','Added\x20by','setTemplate'];(function(_0x16df4a,_0x1fc077){const _0x37286c=function(_0x3af0a2){while(--_0x3af0a2){_0x16df4a['push'](_0x16df4a['shift']());}};_0x37286c(++_0x1fc077);}(_0x1fc0,0xc4));const _0x3728=function(_0x16df4a,_0x1fc077){_0x16df4a=_0x16df4a-0x0;let _0x37286c=_0x1fc0[_0x16df4a];return _0x37286c;};import{View as _0x3916fe}from'ckeditor5/src/ui';import{getTranslation as _0x1c4bec}from'../../utils/common-translations';export default class G extends _0x3916fe{constructor(_0xe549d6,_0x4109c0){super(_0xe549d6),this['_model']=_0x4109c0,this[_0x3728('0x2')]=_0x4109c0['id'];const _0x4b96fe=this['bindTemplate'],_0x1f94e8=_0x1c4bec(_0xe549d6,_0x4109c0[_0x3728('0x8')][_0x3728('0xf')]?'Suggested\x20by':_0x3728('0xe')==_0x4109c0[_0x3728('0x4')]?_0x3728('0xa'):'Removed\x20by');this[_0x3728('0x0')]('type',_0x4109c0['type']),this[_0x3728('0xb')]({'tag':'div','attributes':{'class':[_0x3728('0x3'),_0x3728('0x6'),_0x4b96fe['to'](_0x3728('0x4'),_0x321661=>'ck-revision-change__'+_0x321661)],'tabindex':-0x1},'children':[{'tag':_0x3728('0x1'),'children':[{'tag':_0x3728('0x1'),'attributes':{'class':[_0x3728('0x9')]},'children':[{'text':_0x1f94e8}]},{'text':'\x20'+_0x4109c0[_0x3728('0xd')][_0x3728('0xc')]}]}]});}[_0x3728('0x5')](){this[_0x3728('0x7')]['focus']();}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb1d0=['setTemplate','div','_statusText','ck-revision-history-ui__changes-navigation__navigation','ck-revision-history-ui__changes-navigation','backward','Show\x20previous\x20change','set','X_OF_Y_CHANGES','fire','execute','span','isNavigationMode','isForwardNavigationEnabled','isBackwardNavigationEnabled','_isStatusLabelVisible','ck-revision-history-ui','isEnabled','numberOfChanges','NUMBER_OF_CHANGES','bind','bindTemplate','isReady','currentChangeNumber','Loading...'];(function(_0x532003,_0xb1d09e){const _0x2792dc=function(_0xf2631a){while(--_0xf2631a){_0x532003['push'](_0x532003['shift']());}};_0x2792dc(++_0xb1d09e);}(_0xb1d0,0x1c1));const _0x2792=function(_0x532003,_0xb1d09e){_0x532003=_0x532003-0x0;let _0x2792dc=_0xb1d0[_0x532003];return _0x2792dc;};import{View as _0x154fa5,ButtonView as _0x16c042,ToolbarSeparatorView as _0x8c6862}from'ckeditor5/src/ui';import{getTranslation as _0x1f0691}from'../../utils/common-translations';import _0x1b8a11 from'../../../theme/icons/arrow-up.svg';import _0x33028f from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x154fa5{constructor(_0x23198d){super(_0x23198d);const _0x50b98d=this[_0x2792('0x16')],_0x23bf75=new _0x16c042(_0x23198d),_0x3d8a5f=new _0x16c042(_0x23198d);this['set']('isNavigationMode',!0x1),this['set'](_0x2792('0x17'),!0x1),this['set']('currentChangeNumber',0x0),this[_0x2792('0x8')](_0x2792('0x13'),0x0),this[_0x2792('0x8')](_0x2792('0xe'),!0x1),this[_0x2792('0x8')](_0x2792('0xf'),!0x1),this[_0x2792('0x15')](_0x2792('0x10'))['to'](this,_0x2792('0x17'),this,'numberOfChanges',(_0xe58574,_0x52bc0b)=>_0xe58574&&_0x52bc0b>0x0),this[_0x2792('0x15')](_0x2792('0x3'))['to'](this,'isReady',this,_0x2792('0x18'),this,'numberOfChanges',this,_0x2792('0xd'),(_0x4a8d64,_0x4dccc5,_0x18448f,_0x38b327)=>{if(!_0x4a8d64)return _0x1f0691(_0x23198d,_0x2792('0x0'));if(!_0x18448f)return _0x1f0691(_0x23198d,'No\x20changes');const _0x15d49d=_0x1f0691(_0x23198d,_0x2792('0x14'),_0x18448f);return _0x38b327?_0x1f0691(_0x23198d,_0x2792('0x9'),[_0x4dccc5+0x1,_0x18448f]):_0x15d49d;}),_0x23bf75[_0x2792('0x8')]({'label':_0x1f0691(_0x23198d,_0x2792('0x7')),'tooltip':!0x0,'icon':_0x1b8a11}),_0x3d8a5f[_0x2792('0x8')]({'label':_0x1f0691(_0x23198d,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x33028f}),_0x23bf75['bind'](_0x2792('0x12'))['to'](this,_0x2792('0xf')),_0x3d8a5f[_0x2792('0x15')](_0x2792('0x12'))['to'](this,_0x2792('0xe')),_0x23bf75['on']('execute',()=>this[_0x2792('0xa')](_0x2792('0xb'),_0x2792('0x6'))),_0x3d8a5f['on'](_0x2792('0xb'),()=>this['fire'](_0x2792('0xb'),'forward')),this[_0x2792('0x1')]({'tag':_0x2792('0x2'),'attributes':{'class':['ck',_0x2792('0x11'),_0x2792('0x5')]},'children':[{'tag':_0x2792('0xc'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x50b98d['if']('_isStatusLabelVisible','ck-hidden',_0x29f67f=>!_0x29f67f)]},'children':[{'text':_0x50b98d['to'](_0x2792('0xd'),_0x3861ad=>_0x3861ad?_0x1f0691(_0x23198d,'EDIT_X_OF_Y_REVISIONS')+':\x20':_0x1f0691(_0x23198d,'Total')+':\x20')}]},{'text':_0x50b98d['to']('_statusText')}]},new _0x8c6862(),{'tag':_0x2792('0x2'),'attributes':{'class':[_0x2792('0x4')]},'children':[_0x23bf75,_0x3d8a5f]}]});}}
23
+ const _0x5117=['ck-revision-history-ui__changes-navigation__label','div','EDIT_X_OF_Y_REVISIONS','_statusText','ck-revision-history-ui__changes-navigation__wrapper','ck-revision-history-ui__changes-navigation','setTemplate','Loading...','Show\x20previous\x20change','isReady','set','bind','Total','ck-revision-history-ui__changes-navigation__navigation','fire','isNavigationMode','isForwardNavigationEnabled','numberOfChanges','bindTemplate','backward','execute','forward','_isStatusLabelVisible','ck-hidden','No\x20changes','currentChangeNumber','isBackwardNavigationEnabled'];(function(_0x21c611,_0x5117ee){const _0xea834f=function(_0x37def7){while(--_0x37def7){_0x21c611['push'](_0x21c611['shift']());}};_0xea834f(++_0x5117ee);}(_0x5117,0xf1));const _0xea83=function(_0x21c611,_0x5117ee){_0x21c611=_0x21c611-0x0;let _0xea834f=_0x5117[_0x21c611];return _0xea834f;};import{View as _0x26223a,ButtonView as _0x44456d,ToolbarSeparatorView as _0x2bc40f}from'ckeditor5/src/ui';import{getTranslation as _0x25a41c}from'../../utils/common-translations';import _0x1a860d from'../../../theme/icons/arrow-up.svg';import _0x859697 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x26223a{constructor(_0x4b0354){super(_0x4b0354);const _0x2d5337=this[_0xea83('0x14')],_0x309f5b=new _0x44456d(_0x4b0354),_0x2edd3b=new _0x44456d(_0x4b0354);this[_0xea83('0xc')]('isNavigationMode',!0x1),this[_0xea83('0xc')](_0xea83('0xb'),!0x1),this[_0xea83('0xc')](_0xea83('0x0'),0x0),this[_0xea83('0xc')](_0xea83('0x13'),0x0),this[_0xea83('0xc')]('isForwardNavigationEnabled',!0x1),this[_0xea83('0xc')]('isBackwardNavigationEnabled',!0x1),this[_0xea83('0xd')](_0xea83('0x18'))['to'](this,_0xea83('0xb'),this,_0xea83('0x13'),(_0x2950e0,_0x494a8b)=>_0x2950e0&&_0x494a8b>0x0),this[_0xea83('0xd')]('_statusText')['to'](this,_0xea83('0xb'),this,_0xea83('0x0'),this,_0xea83('0x13'),this,_0xea83('0x11'),(_0x3e32fc,_0x48edd7,_0xf3ebe,_0x42ae2d)=>{if(!_0x3e32fc)return _0x25a41c(_0x4b0354,_0xea83('0x9'));if(!_0xf3ebe)return _0x25a41c(_0x4b0354,_0xea83('0x1a'));const _0x521de6=_0x25a41c(_0x4b0354,'NUMBER_OF_CHANGES',_0xf3ebe);return _0x42ae2d?_0x25a41c(_0x4b0354,'X_OF_Y_CHANGES',[_0x48edd7+0x1,_0xf3ebe]):_0x521de6;}),_0x309f5b['set']({'label':_0x25a41c(_0x4b0354,_0xea83('0xa')),'tooltip':!0x0,'icon':_0x1a860d}),_0x2edd3b['set']({'label':_0x25a41c(_0x4b0354,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x859697}),_0x309f5b[_0xea83('0xd')]('isEnabled')['to'](this,_0xea83('0x1')),_0x2edd3b['bind']('isEnabled')['to'](this,_0xea83('0x12')),_0x309f5b['on']('execute',()=>this[_0xea83('0x10')](_0xea83('0x16'),_0xea83('0x15'))),_0x2edd3b['on'](_0xea83('0x16'),()=>this[_0xea83('0x10')]('execute',_0xea83('0x17'))),this[_0xea83('0x8')]({'tag':_0xea83('0x3'),'attributes':{'class':['ck','ck-revision-history-ui',_0xea83('0x7')]},'children':[{'tag':'span','attributes':{'class':[_0xea83('0x6')]},'children':[{'tag':'span','attributes':{'class':[_0xea83('0x2'),_0x2d5337['if']('_isStatusLabelVisible',_0xea83('0x19'),_0x1e0adb=>!_0x1e0adb)]},'children':[{'text':_0x2d5337['to']('isNavigationMode',_0x50be41=>_0x50be41?_0x25a41c(_0x4b0354,_0xea83('0x4'))+':\x20':_0x25a41c(_0x4b0354,_0xea83('0xe'))+':\x20')}]},{'text':_0x2d5337['to'](_0xea83('0x5'))}]},new _0x2bc40f(),{'tag':'div','attributes':{'class':[_0xea83('0xf')]},'children':[_0x309f5b,_0x2edd3b]}]});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3aee=['show','pluginName','addClass','RevisionViewerLoadingOverlay','change','document','editor','hide','roots','editing','view'];(function(_0x4a23e7,_0x3aee5b){const _0x220af5=function(_0x3bdf2f){while(--_0x3bdf2f){_0x4a23e7['push'](_0x4a23e7['shift']());}};_0x220af5(++_0x3aee5b);}(_0x3aee,0x19b));const _0x220a=function(_0x4a23e7,_0x3aee5b){_0x4a23e7=_0x4a23e7-0x0;let _0x220af5=_0x3aee[_0x4a23e7];return _0x220af5;};import{Plugin as _0x57f7e0}from'ckeditor5/src/core';const ee='ck-editor__editable__loading-overlay';import'../../../theme/revisionviewerloadingoverlay.css';export default class oe extends _0x57f7e0{static get[_0x220a('0x8')](){return _0x220a('0xa');}[_0x220a('0x7')](){const _0x393a22=this[_0x220a('0x2')][_0x220a('0x5')][_0x220a('0x6')];_0x393a22[_0x220a('0x0')](_0xd28051=>{for(const _0x2db3c3 of _0x393a22[_0x220a('0x1')][_0x220a('0x4')])_0xd28051[_0x220a('0x9')](ee,_0x2db3c3);});}[_0x220a('0x3')](){const _0x46f8fc=this[_0x220a('0x2')][_0x220a('0x5')][_0x220a('0x6')];_0x46f8fc[_0x220a('0x0')](_0x54699e=>{for(const _0x19cbc9 of _0x46f8fc[_0x220a('0x1')][_0x220a('0x4')])_0x54699e['removeClass'](ee,_0x19cbc9);});}}
23
+ const _0xaa59=['removeClass','change','view','ck-editor__editable__loading-overlay','pluginName','document','roots','editing','show','editor'];(function(_0x96fca2,_0xaa59c2){const _0x5850ab=function(_0x2e5e0c){while(--_0x2e5e0c){_0x96fca2['push'](_0x96fca2['shift']());}};_0x5850ab(++_0xaa59c2);}(_0xaa59,0x8b));const _0x5850=function(_0x96fca2,_0xaa59c2){_0x96fca2=_0x96fca2-0x0;let _0x5850ab=_0xaa59[_0x96fca2];return _0x5850ab;};import{Plugin as _0x5d99c7}from'ckeditor5/src/core';const oe=_0x5850('0x4');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x5d99c7{static get[_0x5850('0x5')](){return'RevisionViewerLoadingOverlay';}[_0x5850('0x9')](){const _0x2fd7d2=this['editor'][_0x5850('0x8')]['view'];_0x2fd7d2[_0x5850('0x2')](_0x5e9a8b=>{for(const _0x3e353f of _0x2fd7d2[_0x5850('0x6')]['roots'])_0x5e9a8b['addClass'](oe,_0x3e353f);});}['hide'](){const _0x4066fe=this[_0x5850('0x0')][_0x5850('0x8')][_0x5850('0x3')];_0x4066fe[_0x5850('0x2')](_0x452874=>{for(const _0x20a3de of _0x4066fe[_0x5850('0x6')][_0x5850('0x7')])_0x452874[_0x5850('0x1')](oe,_0x20a3de);});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4750=['showNextChange','currentChangeNumber','isForwardNavigationEnabled','restoreRevision','RevisionViewerUI','requires','show','init','closeRevisionViewerCallback','numberOfChanges','bind','isEnabled','exitToEditing','get','isReady','execute','showPreviousChange','listenTo','set','revisionHistory','Restore\x20this\x20revision','commands','config','componentFactory','plugins','changesNavigation','hide','isBackwardNavigationEnabled','editor','add'];(function(_0x18105c,_0x47501a){const _0x11066d=function(_0x197f7d){while(--_0x197f7d){_0x18105c['push'](_0x18105c['shift']());}};_0x11066d(++_0x47501a);}(_0x4750,0xc9));const _0x1106=function(_0x18105c,_0x47501a){_0x18105c=_0x18105c-0x0;let _0x11066d=_0x4750[_0x18105c];return _0x11066d;};import{Plugin as _0xb54339}from'ckeditor5/src/core';import{ButtonView as _0x3457e5}from'ckeditor5/src/ui';import _0x2d6306 from'./changesnavigationview';import _0xf53b66 from'./../../revisionviewer';import _0x1ca3f5 from'./revisionviewerloadingoverlay';import{getTranslation as _0x20ed02}from'../../utils/common-translations';import _0x48cf9e from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0xb54339{static get['pluginName'](){return _0x1106('0xd');}static get[_0x1106('0xe')](){return[_0xf53b66,_0x1ca3f5];}[_0x1106('0x10')](){const _0x245e23=this[_0x1106('0x7')],_0x4df554=_0x245e23[_0x1106('0x3')][_0x1106('0x16')](_0xf53b66),_0x422ade=_0x245e23[_0x1106('0x3')][_0x1106('0x16')](_0x1ca3f5);_0x245e23['ui'][_0x1106('0x2')][_0x1106('0x8')](_0x1106('0x15'),_0x24feee=>{const _0x378df0=new _0x3457e5(_0x24feee);return _0x378df0[_0x1106('0x1b')]({'label':_0x20ed02(_0x24feee,'Back\x20to\x20editing'),'icon':_0x48cf9e,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this[_0x1106('0x1a')](_0x378df0,'execute',()=>{_0x245e23[_0x1106('0x1')][_0x1106('0x16')](_0x1106('0x1c'))[_0x1106('0x11')]();}),_0x378df0;}),_0x245e23['ui'][_0x1106('0x2')][_0x1106('0x8')]('restoreRevision',_0x461259=>{const _0x5dc51a=new _0x3457e5(_0x461259);return _0x5dc51a[_0x1106('0x1b')]({'label':_0x20ed02(_0x461259,_0x1106('0x1d')),'withText':!0x0,'tooltip':!0x0}),_0x5dc51a[_0x1106('0x13')](_0x1106('0x14'))['to'](_0x245e23[_0x1106('0x0')][_0x1106('0x16')]('restoreRevision')),this['listenTo'](_0x5dc51a,'execute',()=>_0x245e23[_0x1106('0x18')](_0x1106('0xc'))),_0x5dc51a;}),_0x245e23['ui'][_0x1106('0x2')]['add'](_0x1106('0x4'),_0x7cb558=>{const _0x2d14e3=new _0x2d6306(_0x7cb558),_0x22a4f0=_0x245e23[_0x1106('0x0')][_0x1106('0x16')](_0x1106('0x19')),_0x5d3a19=_0x245e23['commands'][_0x1106('0x16')](_0x1106('0x9'));return _0x2d14e3['bind'](_0x1106('0x6'))['to'](_0x22a4f0,_0x1106('0x14')),_0x2d14e3[_0x1106('0x13')](_0x1106('0xb'))['to'](_0x5d3a19,_0x1106('0x14')),_0x2d14e3[_0x1106('0x13')](_0x1106('0x17'),_0x1106('0xa'),_0x1106('0x12'),'isNavigationMode')['to'](_0x4df554),this[_0x1106('0x1a')](_0x2d14e3,'execute',(_0x2729d5,_0x2ddb46)=>{_0x245e23['execute']('forward'===_0x2ddb46?_0x1106('0x9'):_0x1106('0x19'));}),_0x2d14e3;}),_0x422ade[_0x1106('0xf')](),_0x4df554['on']('change:isReady',(_0x24bbb6,_0x2e9fc7,_0x3bda1f)=>{_0x3bda1f?_0x422ade[_0x1106('0x5')]():_0x422ade[_0x1106('0xf')]();});}}
23
+ const _0x411b=['isEnabled','bind','isForwardNavigationEnabled','revisionHistory','Restore\x20this\x20revision','restoreRevision','isBackwardNavigationEnabled','Back\x20to\x20editing','hide','currentChangeNumber','commands','forward','listenTo','isReady','execute','showPreviousChange','showNextChange','changesNavigation','numberOfChanges','componentFactory','editor','isNavigationMode','requires','ck-revision-history-ui__back-to-editing','get','config','exitToEditing','show','set','change:isReady','plugins','add'];(function(_0x510d63,_0x411bc1){const _0x278192=function(_0x446e76){while(--_0x446e76){_0x510d63['push'](_0x510d63['shift']());}};_0x278192(++_0x411bc1);}(_0x411b,0x1b8));const _0x2781=function(_0x510d63,_0x411bc1){_0x510d63=_0x510d63-0x0;let _0x278192=_0x411b[_0x510d63];return _0x278192;};import{Plugin as _0x5344e4}from'ckeditor5/src/core';import{ButtonView as _0x89a2c5}from'ckeditor5/src/ui';import _0x32fb38 from'./changesnavigationview';import _0x412715 from'./../../revisionviewer';import _0x142443 from'./revisionviewerloadingoverlay';import{getTranslation as _0x299ec0}from'../../utils/common-translations';import _0x32cf0e from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x5344e4{static get['pluginName'](){return'RevisionViewerUI';}static get[_0x2781('0x1e')](){return[_0x412715,_0x142443];}['init'](){const _0x5eb9dd=this[_0x2781('0x1c')],_0x386798=_0x5eb9dd[_0x2781('0x6')][_0x2781('0x0')](_0x412715),_0x257173=_0x5eb9dd[_0x2781('0x6')][_0x2781('0x0')](_0x142443);_0x5eb9dd['ui']['componentFactory'][_0x2781('0x7')](_0x2781('0x2'),_0x40e7f3=>{const _0x4a6298=new _0x89a2c5(_0x40e7f3);return _0x4a6298[_0x2781('0x4')]({'label':_0x299ec0(_0x40e7f3,_0x2781('0xf')),'icon':_0x32cf0e,'withText':!0x0,'tooltip':!0x0,'class':_0x2781('0x1f')}),this[_0x2781('0x14')](_0x4a6298,_0x2781('0x16'),()=>{_0x5eb9dd[_0x2781('0x1')][_0x2781('0x0')](_0x2781('0xb'))['closeRevisionViewerCallback']();}),_0x4a6298;}),_0x5eb9dd['ui'][_0x2781('0x1b')][_0x2781('0x7')](_0x2781('0xd'),_0x3599ac=>{const _0xa2b8f5=new _0x89a2c5(_0x3599ac);return _0xa2b8f5[_0x2781('0x4')]({'label':_0x299ec0(_0x3599ac,_0x2781('0xc')),'withText':!0x0,'tooltip':!0x0}),_0xa2b8f5[_0x2781('0x9')](_0x2781('0x8'))['to'](_0x5eb9dd[_0x2781('0x12')]['get'](_0x2781('0xd'))),this[_0x2781('0x14')](_0xa2b8f5,_0x2781('0x16'),()=>_0x5eb9dd[_0x2781('0x16')](_0x2781('0xd'))),_0xa2b8f5;}),_0x5eb9dd['ui'][_0x2781('0x1b')][_0x2781('0x7')](_0x2781('0x19'),_0xdb738e=>{const _0xfcc12b=new _0x32fb38(_0xdb738e),_0xbc3f0=_0x5eb9dd[_0x2781('0x12')]['get']('showPreviousChange'),_0x9add4f=_0x5eb9dd[_0x2781('0x12')]['get'](_0x2781('0x18'));return _0xfcc12b['bind'](_0x2781('0xe'))['to'](_0xbc3f0,_0x2781('0x8')),_0xfcc12b[_0x2781('0x9')](_0x2781('0xa'))['to'](_0x9add4f,'isEnabled'),_0xfcc12b[_0x2781('0x9')](_0x2781('0x15'),_0x2781('0x11'),_0x2781('0x1a'),_0x2781('0x1d'))['to'](_0x386798),this[_0x2781('0x14')](_0xfcc12b,_0x2781('0x16'),(_0x4b931e,_0x3245bc)=>{_0x5eb9dd[_0x2781('0x16')](_0x2781('0x13')===_0x3245bc?_0x2781('0x18'):_0x2781('0x17'));}),_0xfcc12b;}),_0x257173[_0x2781('0x3')](),_0x386798['on'](_0x2781('0x5'),(_0x225d37,_0x2167bb,_0x219668)=>{_0x219668?_0x257173[_0x2781('0x10')]():_0x257173[_0x2781('0x3')]();});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x3400b2,_0x19a744,_0x9f382b){const t=_0x3400b2['t'];switch(_0x19a744){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'},_0x9f382b);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x9f382b);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'});}}
23
+ export function getTranslation(_0x467d97,_0x1dd209,_0x348290){const t=_0x467d97['t'];switch(_0x1dd209){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'},_0x348290);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x348290);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'});}}