@ckeditor/ckeditor5-revision-history 35.3.2 → 36.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 (145) hide show
  1. package/build/revision-history.js +3 -2
  2. package/build/translations/af.js +1 -0
  3. package/build/translations/ar.js +1 -0
  4. package/build/translations/az.js +1 -0
  5. package/build/translations/bg.js +1 -0
  6. package/build/translations/bn.js +1 -0
  7. package/build/translations/bs.js +1 -0
  8. package/build/translations/ca.js +1 -0
  9. package/build/translations/cs.js +1 -0
  10. package/build/translations/da.js +1 -0
  11. package/build/translations/de-ch.js +1 -0
  12. package/build/translations/de.js +1 -0
  13. package/build/translations/el.js +1 -0
  14. package/build/translations/en-au.js +1 -0
  15. package/build/translations/en-gb.js +1 -0
  16. package/build/translations/es-co.js +1 -0
  17. package/build/translations/es.js +1 -0
  18. package/build/translations/et.js +1 -0
  19. package/build/translations/fa.js +1 -0
  20. package/build/translations/fi.js +1 -0
  21. package/build/translations/fr.js +1 -0
  22. package/build/translations/gl.js +1 -0
  23. package/build/translations/he.js +1 -0
  24. package/build/translations/hi.js +1 -0
  25. package/build/translations/hr.js +1 -0
  26. package/build/translations/hu.js +1 -0
  27. package/build/translations/id.js +1 -0
  28. package/build/translations/it.js +1 -0
  29. package/build/translations/ja.js +1 -0
  30. package/build/translations/jv.js +1 -0
  31. package/build/translations/ko.js +1 -0
  32. package/build/translations/ku.js +1 -0
  33. package/build/translations/lt.js +1 -0
  34. package/build/translations/lv.js +1 -0
  35. package/build/translations/ms.js +1 -0
  36. package/build/translations/ne.js +1 -0
  37. package/build/translations/nl.js +1 -0
  38. package/build/translations/no.js +1 -0
  39. package/build/translations/pl.js +1 -0
  40. package/build/translations/pt-br.js +1 -0
  41. package/build/translations/pt.js +1 -0
  42. package/build/translations/ro.js +1 -0
  43. package/build/translations/ru.js +1 -0
  44. package/build/translations/sk.js +1 -0
  45. package/build/translations/sr-latn.js +1 -0
  46. package/build/translations/sr.js +1 -0
  47. package/build/translations/sv.js +1 -0
  48. package/build/translations/th.js +1 -0
  49. package/build/translations/tk.js +1 -0
  50. package/build/translations/tr.js +1 -0
  51. package/build/translations/tt.js +1 -0
  52. package/build/translations/ug.js +1 -0
  53. package/build/translations/uk.js +1 -0
  54. package/build/translations/ur.js +1 -0
  55. package/build/translations/vi.js +1 -0
  56. package/build/translations/zh-cn.js +1 -0
  57. package/build/translations/zh.js +1 -0
  58. package/lang/translations/af.po +1 -1
  59. package/lang/translations/ar.po +1 -1
  60. package/lang/translations/az.po +1 -1
  61. package/lang/translations/bg.po +1 -1
  62. package/lang/translations/bn.po +1 -1
  63. package/lang/translations/bs.po +1 -1
  64. package/lang/translations/ca.po +1 -1
  65. package/lang/translations/cs.po +1 -1
  66. package/lang/translations/da.po +1 -1
  67. package/lang/translations/de-ch.po +1 -1
  68. package/lang/translations/de.po +1 -1
  69. package/lang/translations/el.po +1 -1
  70. package/lang/translations/en-au.po +1 -1
  71. package/lang/translations/en-gb.po +1 -1
  72. package/lang/translations/en.po +1 -1
  73. package/lang/translations/es-co.po +1 -1
  74. package/lang/translations/es.po +1 -1
  75. package/lang/translations/et.po +1 -1
  76. package/lang/translations/fa.po +1 -1
  77. package/lang/translations/fi.po +1 -1
  78. package/lang/translations/fr.po +1 -1
  79. package/lang/translations/gl.po +1 -1
  80. package/lang/translations/he.po +1 -1
  81. package/lang/translations/hi.po +1 -1
  82. package/lang/translations/hr.po +1 -1
  83. package/lang/translations/hu.po +1 -1
  84. package/lang/translations/id.po +1 -1
  85. package/lang/translations/it.po +1 -1
  86. package/lang/translations/ja.po +1 -1
  87. package/lang/translations/jv.po +1 -1
  88. package/lang/translations/ko.po +1 -1
  89. package/lang/translations/ku.po +1 -1
  90. package/lang/translations/lt.po +1 -1
  91. package/lang/translations/lv.po +1 -1
  92. package/lang/translations/ms.po +1 -1
  93. package/lang/translations/ne.po +1 -1
  94. package/lang/translations/nl.po +1 -1
  95. package/lang/translations/no.po +1 -1
  96. package/lang/translations/pl.po +1 -1
  97. package/lang/translations/pt-br.po +1 -1
  98. package/lang/translations/pt.po +1 -1
  99. package/lang/translations/ro.po +1 -1
  100. package/lang/translations/ru.po +1 -1
  101. package/lang/translations/sk.po +1 -1
  102. package/lang/translations/sr-latn.po +1 -1
  103. package/lang/translations/sr.po +1 -1
  104. package/lang/translations/sv.po +1 -1
  105. package/lang/translations/th.po +1 -1
  106. package/lang/translations/tk.po +1 -1
  107. package/lang/translations/tr.po +1 -1
  108. package/lang/translations/tt.po +1 -1
  109. package/lang/translations/ug.po +2 -2
  110. package/lang/translations/uk.po +1 -1
  111. package/lang/translations/ur.po +1 -1
  112. package/lang/translations/vi.po +1 -1
  113. package/lang/translations/zh-cn.po +1 -1
  114. package/lang/translations/zh.po +1 -1
  115. package/package.json +7 -7
  116. package/src/changeitem.js +2 -2
  117. package/src/editor/revisionviewereditor.js +2 -2
  118. package/src/editor/revisionviewereditorui.js +2 -2
  119. package/src/editor/revisionviewereditoruiview.js +2 -2
  120. package/src/index.js +1 -1
  121. package/src/revision.js +2 -2
  122. package/src/revisiondiff.js +2 -2
  123. package/src/revisionhistory.js +2 -2
  124. package/src/revisionsrepository.js +2 -2
  125. package/src/revisiontracker.js +2 -2
  126. package/src/revisionviewer.js +2 -2
  127. package/src/ui/revision/createrevisionactionsdropdown.js +2 -2
  128. package/src/ui/revision/revisionauthorview.js +2 -2
  129. package/src/ui/revision/revisionnameview.js +2 -2
  130. package/src/ui/revision/revisionview.js +2 -2
  131. package/src/ui/revision/subrevisioncollapserview.js +2 -2
  132. package/src/ui/revision/subrevisionview.js +2 -2
  133. package/src/ui/revision/utils.js +2 -2
  134. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
  135. package/src/ui/revisionhistory/revisionhistoryui.js +2 -2
  136. package/src/ui/revisionssidebar/revisionssidebar.js +2 -2
  137. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +2 -2
  138. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +2 -2
  139. package/src/ui/revisionssidebar/revisionssidebarview.js +2 -2
  140. package/src/ui/revisionssidebar/utils.js +2 -2
  141. package/src/ui/revisionviewer/changedetailsview.js +2 -2
  142. package/src/ui/revisionviewer/changesnavigationview.js +2 -2
  143. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +2 -2
  144. package/src/ui/revisionviewer/revisionviewerui.js +2 -2
  145. 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 _0x420a=['input','revisionNameInputValue','listenTo','revisionNameInputView','setTemplate','cancelButtonView','ck-responsive-form','focusFirst','forEach','focusTracker','delegate','Name\x20of\x20the\x20revision\x20(optional)','execute','_focusCycler','arrowdown','render','submit','keystrokes','ck-button-save','add','_createButton','arrowleft','set','high','element','ck-button-cancel','value','saveButtonView','type','trim','reset','220','arrowright','locale','_focusables','revisionName','tab','arrowup','form','fieldView','ck-revision-history-save-revision-form','label','shift\x20+\x20tab','extendTemplate','_createRevisionNameInput','stopPropagation'];(function(_0x3acfec,_0x420a2e){const _0x3faa43=function(_0x2f6a0b){while(--_0x2f6a0b){_0x3acfec['push'](_0x3acfec['shift']());}};_0x3faa43(++_0x420a2e);}(_0x420a,0x15b));const _0x3faa=function(_0x3acfec,_0x420a2e){_0x3acfec=_0x3acfec-0x0;let _0x3faa43=_0x420a[_0x3acfec];return _0x3faa43;};import{ButtonView as _0x515e05,FocusCycler as _0x4a6705,LabeledFieldView as _0x1ded3f,View as _0x59efbe,ViewCollection as _0x5e07ee,createLabeledInputText as _0x1fa8b2,injectCssTransitionDisabler as _0x55ab86,submitHandler as _0x37cc4e}from'ckeditor5/src/ui';import{FocusTracker as _0x44edb0,KeystrokeHandler as _0x11c6b0}from'ckeditor5/src/utils';import{getTranslation as _0x18314b}from'../../utils/common-translations';import _0x1a7975 from'@ckeditor/ckeditor5-core/theme/icons/check.svg';import _0x393c16 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 gt extends _0x59efbe{constructor(_0x363f74){super(_0x363f74),this[_0x3faa('0x1e')]=new _0x44edb0(),this['keystrokes']=new _0x11c6b0(),this['set'](_0x3faa('0x16'),''),this[_0x3faa('0x18')]=this['_createRevisionNameInput'](),this[_0x3faa('0x2')]=this[_0x3faa('0x29')](_0x18314b(_0x363f74,'Save'),_0x1a7975,_0x3faa('0x27')),this[_0x3faa('0x2')][_0x3faa('0x3')]=_0x3faa('0x25'),this[_0x3faa('0x1a')]=this[_0x3faa('0x29')](_0x18314b(_0x363f74,'Cancel'),_0x393c16,_0x3faa('0x0'),'cancel'),this[_0x3faa('0x9')]=new _0x5e07ee(),this['_focusCycler']=new _0x4a6705({'focusables':this['_focusables'],'focusTracker':this[_0x3faa('0x1e')],'keystrokeHandler':this[_0x3faa('0x26')],'actions':{'focusPrevious':_0x3faa('0x11'),'focusNext':_0x3faa('0xb')}}),this[_0x3faa('0x19')]({'tag':_0x3faa('0xd'),'attributes':{'class':['ck',_0x3faa('0xf'),_0x3faa('0x1b')],'tabindex':'-1'},'children':[this[_0x3faa('0x18')],this['saveButtonView'],this[_0x3faa('0x1a')]]}),_0x55ab86(this);}[_0x3faa('0x24')](){super['render'](),_0x37cc4e({'view':this}),([this[_0x3faa('0x18')],this[_0x3faa('0x2')],this['cancelButtonView']][_0x3faa('0x1d')](_0x229337=>{this[_0x3faa('0x9')][_0x3faa('0x28')](_0x229337),this['focusTracker'][_0x3faa('0x28')](_0x229337[_0x3faa('0x2d')]);}),this['keystrokes'][_0x3faa('0x17')](this[_0x3faa('0x2d')]));const _0x25819f=_0x1b7d1c=>_0x1b7d1c[_0x3faa('0x14')]();this['keystrokes']['set'](_0x3faa('0x7'),_0x25819f),this[_0x3faa('0x26')]['set'](_0x3faa('0x2a'),_0x25819f),this[_0x3faa('0x26')][_0x3faa('0x2b')](_0x3faa('0xc'),_0x25819f),this[_0x3faa('0x26')][_0x3faa('0x2b')](_0x3faa('0x23'),_0x25819f),this[_0x3faa('0x17')](this[_0x3faa('0x18')][_0x3faa('0x2d')],'selectstart',(_0x13ee20,_0x37377b)=>{_0x37377b[_0x3faa('0x14')]();},{'priority':_0x3faa('0x2c')});}['focus'](){this[_0x3faa('0x22')][_0x3faa('0x1c')]();}get[_0x3faa('0xa')](){return this[_0x3faa('0x18')][_0x3faa('0xe')][_0x3faa('0x2d')][_0x3faa('0x1')][_0x3faa('0x4')]();}set[_0x3faa('0xa')](_0x54614){this[_0x3faa('0x18')][_0x3faa('0xe')][_0x3faa('0x2d')][_0x3faa('0x1')]=_0x54614['trim']();}[_0x3faa('0x5')](){this['revisionNameInputView'][_0x3faa('0xe')][_0x3faa('0x2d')][_0x3faa('0x1')]='';}[_0x3faa('0x13')](){const _0x51cba9=new _0x1ded3f(this[_0x3faa('0x8')],_0x1fa8b2),_0x5bbcc2=_0x51cba9['fieldView'];return _0x5bbcc2[_0x3faa('0x12')]({'attributes':{'maxlength':_0x3faa('0x6')}}),_0x51cba9[_0x3faa('0x10')]=_0x18314b(this[_0x3faa('0x8')],_0x3faa('0x20')),_0x5bbcc2['on'](_0x3faa('0x15'),()=>{this[_0x3faa('0x16')]=_0x5bbcc2['element'][_0x3faa('0x1')]['trim']();}),_0x51cba9;}[_0x3faa('0x29')](_0x1f5cd7,_0x2b67fa,_0x3355d6,_0x39466f){const _0x4df720=new _0x515e05(this[_0x3faa('0x8')]);return _0x4df720[_0x3faa('0x2b')]({'label':_0x1f5cd7,'icon':_0x2b67fa,'tooltip':!0x0}),_0x4df720['extendTemplate']({'attributes':{'class':_0x3355d6}}),_0x39466f&&_0x4df720[_0x3faa('0x1f')](_0x3faa('0x21'))['to'](this,_0x39466f),_0x4df720;}}
23
+ const _0x1a68=['keystrokes','element','tab','extendTemplate','submit','reset','value','Name\x20of\x20the\x20revision\x20(optional)','form','_createRevisionNameInput','arrowright','cancelButtonView','revisionName','label','Save','ck-responsive-form','arrowdown','delegate','revisionNameInputView','arrowup','saveButtonView','fieldView','_createButton','focus','execute','stopPropagation','focusFirst','trim','ck-button-save','selectstart','Cancel','set','locale','forEach','focusTracker','_focusables','render','220','_focusCycler','type','input','listenTo'];(function(_0x24f1af,_0x1a6801){const _0xe0eebb=function(_0x34af82){while(--_0x34af82){_0x24f1af['push'](_0x24f1af['shift']());}};_0xe0eebb(++_0x1a6801);}(_0x1a68,0xff));const _0xe0ee=function(_0x24f1af,_0x1a6801){_0x24f1af=_0x24f1af-0x0;let _0xe0eebb=_0x1a68[_0x24f1af];return _0xe0eebb;};import{ButtonView as _0x8a588e,FocusCycler as _0x44a773,LabeledFieldView as _0x537090,View as _0x80df63,ViewCollection as _0x281445,createLabeledInputText as _0x35180a,injectCssTransitionDisabler as _0x189cdc,submitHandler as _0x376837}from'ckeditor5/src/ui';import{FocusTracker as _0x2931db,KeystrokeHandler as _0x176155}from'ckeditor5/src/utils';import{getTranslation as _0xf36fd3}from'../../utils/common-translations';import _0x59522a from'@ckeditor/ckeditor5-core/theme/icons/check.svg';import _0x2913d4 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 _0x80df63{constructor(_0x42e800){super(_0x42e800),this['focusTracker']=new _0x2931db(),this[_0xe0ee('0x27')]=new _0x176155(),this[_0xe0ee('0x1c')]('revisionNameInputValue',''),this[_0xe0ee('0xf')]=this[_0xe0ee('0x6')](),this[_0xe0ee('0x11')]=this['_createButton'](_0xf36fd3(_0x42e800,_0xe0ee('0xb')),_0x59522a,_0xe0ee('0x19')),this[_0xe0ee('0x11')][_0xe0ee('0x24')]=_0xe0ee('0x1'),this[_0xe0ee('0x8')]=this[_0xe0ee('0x13')](_0xf36fd3(_0x42e800,_0xe0ee('0x1b')),_0x2913d4,'ck-button-cancel','cancel'),this[_0xe0ee('0x20')]=new _0x281445(),this['_focusCycler']=new _0x44a773({'focusables':this['_focusables'],'focusTracker':this[_0xe0ee('0x1f')],'keystrokeHandler':this[_0xe0ee('0x27')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0xe0ee('0x29')}}),this['setTemplate']({'tag':_0xe0ee('0x5'),'attributes':{'class':['ck','ck-revision-history-save-revision-form',_0xe0ee('0xc')],'tabindex':'-1'},'children':[this[_0xe0ee('0xf')],this[_0xe0ee('0x11')],this[_0xe0ee('0x8')]]}),_0x189cdc(this);}[_0xe0ee('0x21')](){super['render'](),_0x376837({'view':this}),([this[_0xe0ee('0xf')],this[_0xe0ee('0x11')],this[_0xe0ee('0x8')]][_0xe0ee('0x1e')](_0x3e18af=>{this[_0xe0ee('0x20')]['add'](_0x3e18af),this[_0xe0ee('0x1f')]['add'](_0x3e18af['element']);}),this[_0xe0ee('0x27')][_0xe0ee('0x26')](this['element']));const _0x49b4be=_0x45ef36=>_0x45ef36[_0xe0ee('0x16')]();this[_0xe0ee('0x27')]['set'](_0xe0ee('0x7'),_0x49b4be),this[_0xe0ee('0x27')][_0xe0ee('0x1c')]('arrowleft',_0x49b4be),this[_0xe0ee('0x27')][_0xe0ee('0x1c')](_0xe0ee('0x10'),_0x49b4be),this[_0xe0ee('0x27')][_0xe0ee('0x1c')](_0xe0ee('0xd'),_0x49b4be),this[_0xe0ee('0x26')](this[_0xe0ee('0xf')][_0xe0ee('0x28')],_0xe0ee('0x1a'),(_0x2a4d46,_0x2d3ebd)=>{_0x2d3ebd[_0xe0ee('0x16')]();},{'priority':'high'});}[_0xe0ee('0x14')](){this[_0xe0ee('0x23')][_0xe0ee('0x17')]();}get['revisionName'](){return this[_0xe0ee('0xf')][_0xe0ee('0x12')]['element']['value'][_0xe0ee('0x18')]();}set[_0xe0ee('0x9')](_0x367aee){this[_0xe0ee('0xf')][_0xe0ee('0x12')][_0xe0ee('0x28')][_0xe0ee('0x3')]=_0x367aee[_0xe0ee('0x18')]();}[_0xe0ee('0x2')](){this[_0xe0ee('0xf')][_0xe0ee('0x12')][_0xe0ee('0x28')][_0xe0ee('0x3')]='';}[_0xe0ee('0x6')](){const _0x1ec93c=new _0x537090(this['locale'],_0x35180a),_0x4089e0=_0x1ec93c[_0xe0ee('0x12')];return _0x4089e0[_0xe0ee('0x0')]({'attributes':{'maxlength':_0xe0ee('0x22')}}),_0x1ec93c[_0xe0ee('0xa')]=_0xf36fd3(this['locale'],_0xe0ee('0x4')),_0x4089e0['on'](_0xe0ee('0x25'),()=>{this['revisionNameInputValue']=_0x4089e0[_0xe0ee('0x28')][_0xe0ee('0x3')][_0xe0ee('0x18')]();}),_0x1ec93c;}['_createButton'](_0x554ee1,_0x465fec,_0x44cea5,_0x28808e){const _0x4db3c1=new _0x8a588e(this[_0xe0ee('0x1d')]);return _0x4db3c1['set']({'label':_0x554ee1,'icon':_0x465fec,'tooltip':!0x0}),_0x4db3c1[_0xe0ee('0x0')]({'attributes':{'class':_0x44cea5}}),_0x28808e&&_0x4db3c1[_0xe0ee('0xe')](_0xe0ee('0x15'))['to'](this,_0x28808e),_0x4db3c1;}}
@@ -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 _0x5c51=['init','cancel','isOpen','editing','bind','revisionHistory','execute','focus','get','plugins','add','remove','editor','Save\x20current\x20revision','buttonView','isReady','config','requires','view','reset','Open\x20revision\x20history','showRevisionViewerCallback','panelView','children','revisionName','saveButtonView','Revision\x20history','pluginName','RevisionHistoryUI','set','items','isEnabled','RevisionTracker','isReadOnly','addMany','submit','componentFactory','length'];(function(_0x1bfd82,_0x5c5164){const _0x1721d6=function(_0xbaf334){while(--_0xbaf334){_0x1bfd82['push'](_0x1bfd82['shift']());}};_0x1721d6(++_0x5c5164);}(_0x5c51,0xd9));const _0x1721=function(_0x1bfd82,_0x5c5164){_0x1bfd82=_0x1bfd82-0x0;let _0x1721d6=_0x5c51[_0x1bfd82];return _0x1721d6;};import{Plugin as _0x33f5af}from'ckeditor5/src/core';import{ListView as _0x3237fb,ListItemView as _0x5f4bde,ButtonView as _0x27efac,createDropdown as _0x893ce3}from'ckeditor5/src/ui';import _0x4d26e0 from'../../revisiontracker';import _0xbc094f from'./revisionhistorysaverevisionformview';import _0x4b018a from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x2fde6c}from'../../utils/common-translations';export default class R extends _0x33f5af{static get[_0x1721('0x0')](){return _0x1721('0x1');}static get[_0x1721('0x1c')](){return[_0x4d26e0];}[_0x1721('0xb')](){const _0x4ea8ef=this[_0x1721('0x17')],_0xd3502e=_0x4ea8ef['plugins'][_0x1721('0x13')](_0x1721('0x5'));_0x4ea8ef['ui'][_0x1721('0x9')][_0x1721('0x15')]('revisionHistory',_0xea7994=>{const _0x3e1e2e=_0x893ce3(_0xea7994),_0x363d2c=_0x3e1e2e[_0x1721('0x21')][_0x1721('0x22')],_0x5c817f=new _0x3237fb(_0xea7994),_0x110901=new _0x5f4bde(_0xea7994),_0x40524f=new _0x27efac(_0xea7994),_0x589cfe=new _0x5f4bde(_0xea7994),_0x54367f=new _0x27efac(_0xea7994),_0x470281=new _0xbc094f(_0xea7994);function _0x8e1c92(){_0x363d2c[_0x1721('0xa')]&&_0x363d2c[_0x1721('0x16')](0x0),_0x363d2c[_0x1721('0x15')](_0x5c817f);}function _0x1de3a5(){_0x3e1e2e[_0x1721('0xd')]=!0x1,_0x4ea8ef[_0x1721('0xe')][_0x1721('0x1d')][_0x1721('0x12')]();}return _0x3e1e2e[_0x1721('0xf')](_0x1721('0x4'))['to'](_0xd3502e,_0x1721('0x1a'),_0xd3502e,_0x1721('0x4'),_0x4ea8ef,'isReadOnly',(_0x108da9,_0x4eda8d,_0x157b5b)=>_0x108da9&&_0x4eda8d&&!_0x157b5b),_0x3e1e2e[_0x1721('0x19')][_0x1721('0x2')]({'icon':_0x4b018a,'label':_0x2fde6c(_0xea7994,_0x1721('0x25')),'tooltip':!0x0}),_0x40524f[_0x1721('0x2')]({'label':_0x2fde6c(_0xea7994,_0x1721('0x18')),'withText':!0x0}),_0x40524f['bind'](_0x1721('0x4'))['to'](_0xd3502e,'isReady',_0xd3502e,_0x1721('0x4'),_0x4ea8ef,_0x1721('0x6'),(_0x52f30f,_0xc3b7c0,_0x3c8eed)=>_0x52f30f&&_0xc3b7c0&&!_0x3c8eed),_0x40524f['on'](_0x1721('0x11'),()=>function(){_0x363d2c[_0x1721('0xa')]&&_0x363d2c[_0x1721('0x16')](0x0),(_0x470281[_0x1721('0x1e')](),_0x363d2c[_0x1721('0x15')](_0x470281),_0x470281[_0x1721('0x12')]());}()),_0x54367f['set']({'label':_0x2fde6c(_0xea7994,_0x1721('0x1f')),'withText':!0x0}),_0x54367f[_0x1721('0xf')](_0x1721('0x4'))['to'](_0xd3502e,_0x1721('0x1a'),_0x4ea8ef,'isReadOnly',(_0x1b4943,_0x2017e9)=>_0x1b4943&&!_0x2017e9),_0x54367f['on']('execute',()=>{_0x4ea8ef[_0x1721('0x1b')]['get'](_0x1721('0x10'))[_0x1721('0x20')](),_0x1de3a5();}),_0x110901[_0x1721('0x22')][_0x1721('0x15')](_0x40524f),_0x589cfe['children'][_0x1721('0x15')](_0x54367f),_0x5c817f[_0x1721('0x3')][_0x1721('0x7')]([_0x110901,_0x589cfe]),_0x3e1e2e['on']('change:isOpen',()=>_0x8e1c92()),_0x470281[_0x1721('0x24')][_0x1721('0xf')](_0x1721('0x4'))['to'](_0xd3502e,'isReady',_0xd3502e,_0x1721('0x4'),_0x4ea8ef,_0x1721('0x6'),(_0x44478a,_0x533454,_0x56d08a)=>_0x44478a&&_0x533454&&!_0x56d08a),_0x470281['on'](_0x1721('0x8'),()=>(_0x4ea8ef[_0x1721('0x14')][_0x1721('0x13')](_0x4d26e0)['saveRevision']({'name':_0x470281[_0x1721('0x23')]}),void _0x1de3a5())),_0x470281['on'](_0x1721('0xc'),()=>_0x8e1c92()),_0x470281['render'](),_0x8e1c92(),_0x3e1e2e;});}}
23
+ const _0x61a7=['revisionName','editor','Save\x20current\x20revision','bind','Open\x20revision\x20history','change:isOpen','pluginName','isReady','isOpen','isEnabled','showRevisionViewerCallback','execute','addMany','set','remove','items','panelView','RevisionHistoryUI','plugins','view','add','init','requires','Revision\x20history','get','submit','saveButtonView','buttonView','cancel','length','revisionHistory','saveRevision','children','config','RevisionTracker','componentFactory','focus','isReadOnly'];(function(_0x281050,_0x61a71e){const _0x497907=function(_0x436a30){while(--_0x436a30){_0x281050['push'](_0x281050['shift']());}};_0x497907(++_0x61a71e);}(_0x61a7,0x10c));const _0x4979=function(_0x281050,_0x61a71e){_0x281050=_0x281050-0x0;let _0x497907=_0x61a7[_0x281050];return _0x497907;};import{Plugin as _0x42c4e2}from'ckeditor5/src/core';import{ListView as _0x1b16e2,ListItemView as _0x518f9d,ButtonView as _0x2d04d0,createDropdown as _0x40ba6a}from'ckeditor5/src/ui';import _0x31b1a0 from'../../revisiontracker';import _0x135c50 from'./revisionhistorysaverevisionformview';import _0x2d7a08 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x5314cd}from'../../utils/common-translations';export default class y extends _0x42c4e2{static get[_0x4979('0x4')](){return _0x4979('0xf');}static get[_0x4979('0x14')](){return[_0x31b1a0];}[_0x4979('0x13')](){const _0x4e7ef5=this[_0x4979('0x25')],_0x4d87db=_0x4e7ef5['plugins'][_0x4979('0x16')](_0x4979('0x20'));_0x4e7ef5['ui'][_0x4979('0x21')][_0x4979('0x12')](_0x4979('0x1c'),_0x3e274f=>{const _0x731d32=_0x40ba6a(_0x3e274f),_0x3db248=_0x731d32[_0x4979('0xe')][_0x4979('0x1e')],_0x217110=new _0x1b16e2(_0x3e274f),_0x3ece05=new _0x518f9d(_0x3e274f),_0x38b519=new _0x2d04d0(_0x3e274f),_0x37a95a=new _0x518f9d(_0x3e274f),_0x4be8fc=new _0x2d04d0(_0x3e274f),_0x3cfffe=new _0x135c50(_0x3e274f);function _0x459361(){_0x3db248[_0x4979('0x1b')]&&_0x3db248[_0x4979('0xc')](0x0),_0x3db248[_0x4979('0x12')](_0x217110);}function _0x1f25b8(){_0x731d32[_0x4979('0x6')]=!0x1,_0x4e7ef5['editing'][_0x4979('0x11')]['focus']();}return _0x731d32[_0x4979('0x1')](_0x4979('0x7'))['to'](_0x4d87db,_0x4979('0x5'),_0x4d87db,_0x4979('0x7'),_0x4e7ef5,_0x4979('0x23'),(_0x1fdc84,_0x175809,_0x16c5b3)=>_0x1fdc84&&_0x175809&&!_0x16c5b3),_0x731d32[_0x4979('0x19')]['set']({'icon':_0x2d7a08,'label':_0x5314cd(_0x3e274f,_0x4979('0x15')),'tooltip':!0x0}),_0x38b519[_0x4979('0xb')]({'label':_0x5314cd(_0x3e274f,_0x4979('0x0')),'withText':!0x0}),_0x38b519[_0x4979('0x1')](_0x4979('0x7'))['to'](_0x4d87db,_0x4979('0x5'),_0x4d87db,_0x4979('0x7'),_0x4e7ef5,_0x4979('0x23'),(_0x59fc61,_0x2fd115,_0x80f720)=>_0x59fc61&&_0x2fd115&&!_0x80f720),_0x38b519['on'](_0x4979('0x9'),()=>function(){_0x3db248[_0x4979('0x1b')]&&_0x3db248[_0x4979('0xc')](0x0),(_0x3cfffe['reset'](),_0x3db248[_0x4979('0x12')](_0x3cfffe),_0x3cfffe[_0x4979('0x22')]());}()),_0x4be8fc[_0x4979('0xb')]({'label':_0x5314cd(_0x3e274f,_0x4979('0x2')),'withText':!0x0}),_0x4be8fc[_0x4979('0x1')](_0x4979('0x7'))['to'](_0x4d87db,_0x4979('0x5'),_0x4e7ef5,_0x4979('0x23'),(_0x3e49ed,_0xdd0de0)=>_0x3e49ed&&!_0xdd0de0),_0x4be8fc['on']('execute',()=>{_0x4e7ef5[_0x4979('0x1f')][_0x4979('0x16')](_0x4979('0x1c'))[_0x4979('0x8')](),_0x1f25b8();}),_0x3ece05[_0x4979('0x1e')][_0x4979('0x12')](_0x38b519),_0x37a95a['children'][_0x4979('0x12')](_0x4be8fc),_0x217110[_0x4979('0xd')][_0x4979('0xa')]([_0x3ece05,_0x37a95a]),_0x731d32['on'](_0x4979('0x3'),()=>_0x459361()),_0x3cfffe[_0x4979('0x18')][_0x4979('0x1')](_0x4979('0x7'))['to'](_0x4d87db,_0x4979('0x5'),_0x4d87db,_0x4979('0x7'),_0x4e7ef5,_0x4979('0x23'),(_0x3111f6,_0x4374c1,_0x552061)=>_0x3111f6&&_0x4374c1&&!_0x552061),_0x3cfffe['on'](_0x4979('0x17'),()=>(_0x4e7ef5[_0x4979('0x10')][_0x4979('0x16')](_0x31b1a0)[_0x4979('0x1d')]({'name':_0x3cfffe[_0x4979('0x24')]}),void _0x1f25b8())),_0x3cfffe['on'](_0x4979('0x1a'),()=>_0x459361()),_0x3cfffe['render'](),_0x459361(),_0x731d32;});}}
@@ -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 _0x1a4e=['config','diff','isReady','compare','isVisible','_handleRevisionSetName','revisionHistory.viewerSidebarContainer','bind','plugins','render','getLaterVisibleRevision','editor','_handleRevisionSelected','availableRevisionActions','_handleEditorDataReady','pluginName','getRevision','length','compareAgainstSelected','name','_revisionViewer','revisionSelected','revisionHistory.revisionActions','listenTo','_handleDiffChange','timePeriodViews','action','defaultRevisionActions','assign','isEnabled','getRevisionsInDiff','getEarlierVisibleRevision','setName','revisionHistory','data','_sidebarView','appendChild','repository','destroy','locale','selectRevision','restoreRevisionCallback','restoreRevision','RevisionsSidebar','requires','_revisionsRepository','fieldView','highlightRevisions','_createRevisionActions','init','Compare\x20against\x20selected','ready','revisionSetName','add','select','element','get'];(function(_0x4a80d7,_0x1a4eee){const _0x255e84=function(_0x19bcbe){while(--_0x19bcbe){_0x4a80d7['push'](_0x4a80d7['shift']());}};_0x255e84(++_0x1a4eee);}(_0x1a4e,0x19d));const _0x255e=function(_0x4a80d7,_0x1a4eee){_0x4a80d7=_0x4a80d7-0x0;let _0x255e84=_0x1a4e[_0x4a80d7];return _0x255e84;};import{Plugin as _0x216dd4}from'ckeditor5/src/core';import _0x3a1c4e from'./revisionssidebarview';import _0x295f5e from'../../revisionviewer';export default class y extends _0x216dd4{static get[_0x255e('0x1')](){return _0x255e('0x1d');}static get[_0x255e('0x1e')](){return[_0x295f5e];}constructor(_0x396518){super(_0x396518),this[_0x255e('0x6')]=_0x396518[_0x255e('0x33')]['get'](_0x295f5e),this[_0x255e('0x1f')]=this[_0x255e('0x6')][_0x255e('0x17')],this['_sidebarView']=null;}[_0x255e('0x23')](){const _0x2b67b1=this[_0x255e('0x1f')]['_revisions'],_0x6a1558=this[_0x255e('0x22')](),_0x163ffa=this[_0x255e('0x36')][_0x255e('0x2b')][_0x255e('0x2a')](_0x255e('0x31'));this[_0x255e('0x15')]=new _0x3a1c4e(this[_0x255e('0x36')][_0x255e('0x19')],_0x2b67b1,_0x6a1558),this['_sidebarView']['on'](_0x255e('0x7'),this[_0x255e('0x37')][_0x255e('0x32')](this)),this[_0x255e('0x15')]['on'](_0x255e('0x26'),this[_0x255e('0x30')][_0x255e('0x32')](this)),this[_0x255e('0x15')]['bind'](_0x255e('0xf'))['to'](this[_0x255e('0x6')]),this[_0x255e('0x15')][_0x255e('0xb')]['on']('add',(_0x5c0ccd,_0x3cbb67)=>{_0x3cbb67['revisionViews']['on'](_0x255e('0x27'),(_0x59f81b,_0x4a9755)=>{_0x4a9755[_0x255e('0x32')](_0x255e('0xf'),_0x255e('0x2d'))['to'](this[_0x255e('0x6')]);});}),this[_0x255e('0x15')][_0x255e('0x34')](),this[_0x255e('0x9')](this[_0x255e('0x36')][_0x255e('0x14')],_0x255e('0x25'),this[_0x255e('0x0')][_0x255e('0x32')](this)),this[_0x255e('0x9')](this[_0x255e('0x6')],'change:diff',this[_0x255e('0xa')]['bind'](this)),_0x163ffa[_0x255e('0x16')](this[_0x255e('0x15')][_0x255e('0x29')]);}['destroy'](){this[_0x255e('0x15')]['element']['remove'](),this['_sidebarView'][_0x255e('0x18')]();}[_0x255e('0x0')](){const _0x50159c=this[_0x255e('0x1f')][_0x255e('0x2')](0x0);if(_0x50159c){const _0x5a6e2b=this['_revisionsRepository'][_0x255e('0x11')](_0x50159c['id']);this[_0x255e('0x6')]['compare'](_0x50159c,_0x5a6e2b);}}[_0x255e('0x37')](_0x3fca7a,_0x5394f1){const _0x5f0567=this[_0x255e('0x1f')][_0x255e('0x2')](_0x5394f1['id']),_0x54af5e=this[_0x255e('0x1f')][_0x255e('0x11')](_0x5f0567['id']);this[_0x255e('0x6')]['compare'](_0x5f0567,_0x54af5e);}[_0x255e('0x30')](_0x2f9047,_0x4d8db6){this[_0x255e('0x1f')]['getRevision'](_0x4d8db6['id'])[_0x255e('0x12')](_0x4d8db6[_0x255e('0x5')]);}[_0x255e('0xa')](_0x15b9f6,_0x6cbb1d,_0x2eb7a3){const _0x542a17=this[_0x255e('0x1f')][_0x255e('0x10')](_0x2eb7a3);_0x542a17[_0x255e('0x3')]>0x2?(this[_0x255e('0x15')][_0x255e('0x21')](_0x542a17),this[_0x255e('0x15')]['selectRevision'](null)):(this[_0x255e('0x15')][_0x255e('0x21')]([]),this[_0x255e('0x15')][_0x255e('0x1a')](_0x542a17[0x0]));}[_0x255e('0x22')](){const _0x2991db=this['editor'],_0xd75b1b=y[_0x255e('0x38')],_0x3655bc=_0x2991db['config']['get'](_0x255e('0x8'))||y[_0x255e('0xd')];if(_0x3655bc[_0x255e('0x3')])return _0x3655bc['map'](_0x393bbf=>{const _0xaf984a='string'==typeof _0x393bbf?Object[_0x255e('0xe')]({},_0xd75b1b[_0x393bbf]):_0x393bbf;return _0xaf984a[_0x255e('0xc')]=_0xaf984a[_0x255e('0xc')][_0x255e('0x32')](this,_0x2991db),_0xaf984a['isVisible']&&(_0xaf984a[_0x255e('0x2f')]=_0xaf984a['isVisible'][_0x255e('0x32')](this,_0x2991db)),_0xaf984a;});}}y[_0x255e('0x38')]={'compareAgainstSelected':{'name':_0x255e('0x24'),'action':({plugins:_0x49355c},_0x1c178b)=>{const _0x9418af=_0x49355c[_0x255e('0x2a')](_0x295f5e),_0x13a7e7=_0x9418af['repository'];let _0x289d61=_0x9418af['diff']['newRevisionId'],_0x1ed3af=_0x1c178b['id'];_0x13a7e7['getIndex'](_0x289d61)>_0x13a7e7['getIndex'](_0x1ed3af)&&([_0x289d61,_0x1ed3af]=[_0x1ed3af,_0x289d61]),_0x9418af[_0x255e('0x2e')](_0x289d61,_0x1ed3af);},'isVisible':({plugins:_0x4bba7c},_0x3f5dd3)=>{const _0x1648ca=_0x4bba7c['get'](_0x295f5e);return!(_0x1648ca[_0x255e('0x17')][_0x255e('0x10')](_0x1648ca[_0x255e('0x2c')])[_0x255e('0x3')]>0x2)&&!_0x3f5dd3['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x437a53,{id:_0x2427db})=>{_0x437a53[_0x255e('0x2b')]['get'](_0x255e('0x13'))[_0x255e('0x1b')](_0x2427db);},'isVisible':({plugins:_0x817a7f},_0x40cd99)=>!!_0x817a7f[_0x255e('0x2a')](_0x295f5e)[_0x255e('0x17')][_0x255e('0x35')](_0x40cd99['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x38a0dd},{id:_0x329d19,revisionNameView:_0x1e14df})=>{const _0x4e96d1=_0x38a0dd[_0x255e('0x2a')](_0x295f5e),_0x560e80=_0x4e96d1[_0x255e('0x17')][_0x255e('0x11')](_0x329d19);_0x4e96d1['compare'](_0x329d19,_0x560e80),_0x1e14df['focus'](),_0x1e14df[_0x255e('0x20')][_0x255e('0x28')]();}}},y[_0x255e('0xd')]=[_0x255e('0x4'),_0x255e('0x1c'),'nameRevision'];
23
+ const _0x49c0=['getRevisionsInDiff','revisionHistory.revisionActions','getIndex','ready','highlightRevisions','locale','_handleEditorDataReady','getLaterVisibleRevision','revisionHistory.viewerSidebarContainer','_sidebarView','defaultRevisionActions','editor','_revisionsRepository','_createRevisionActions','timePeriodViews','assign','compareAgainstSelected','action','plugins','change:diff','element','add','isEnabled','data','_handleRevisionSelected','length','config','_handleRevisionSetName','destroy','_revisions','diff','selectRevision','revisionSelected','get','_handleDiffChange','remove','nameRevision','requires','getEarlierVisibleRevision','revisionSetName','isVisible','select','init','isSelected','setName','Restore\x20this\x20revision','restoreRevision','name','_revisionViewer','repository','availableRevisionActions','string','isReady','compare','listenTo','appendChild','render','revisionHistory','fieldView','bind'];(function(_0x524273,_0x49c0e0){const _0x57b5f8=function(_0x5f1a6f){while(--_0x5f1a6f){_0x524273['push'](_0x524273['shift']());}};_0x57b5f8(++_0x49c0e0);}(_0x49c0,0x1bd));const _0x57b5=function(_0x524273,_0x49c0e0){_0x524273=_0x524273-0x0;let _0x57b5f8=_0x49c0[_0x524273];return _0x57b5f8;};import{Plugin as _0x328886}from'ckeditor5/src/core';import _0x3ff878 from'./revisionssidebarview';import _0x3ee80a from'../../revisionviewer';export default class d extends _0x328886{static get['pluginName'](){return'RevisionsSidebar';}static get[_0x57b5('0xc')](){return[_0x3ee80a];}constructor(_0x91d2da){super(_0x91d2da),this[_0x57b5('0x17')]=_0x91d2da[_0x57b5('0x35')][_0x57b5('0x8')](_0x3ee80a),this['_revisionsRepository']=this[_0x57b5('0x17')][_0x57b5('0x18')],this['_sidebarView']=null;}[_0x57b5('0x11')](){const _0x14efe7=this[_0x57b5('0x2f')][_0x57b5('0x4')],_0x29d606=this[_0x57b5('0x30')](),_0x1f59d3=this['editor'][_0x57b5('0x1')][_0x57b5('0x8')](_0x57b5('0x2b'));this[_0x57b5('0x2c')]=new _0x3ff878(this[_0x57b5('0x2e')][_0x57b5('0x28')],_0x14efe7,_0x29d606),this[_0x57b5('0x2c')]['on'](_0x57b5('0x7'),this[_0x57b5('0x3b')][_0x57b5('0x22')](this)),this[_0x57b5('0x2c')]['on'](_0x57b5('0xe'),this[_0x57b5('0x2')][_0x57b5('0x22')](this)),this[_0x57b5('0x2c')]['bind'](_0x57b5('0x39'))['to'](this['_revisionViewer']),this[_0x57b5('0x2c')][_0x57b5('0x31')]['on']('add',(_0x3e9871,_0x8f8b0e)=>{_0x8f8b0e['revisionViews']['on'](_0x57b5('0x38'),(_0x4b98fb,_0x55fced)=>{_0x55fced['bind'](_0x57b5('0x39'),_0x57b5('0x1b'))['to'](this['_revisionViewer']);});}),this['_sidebarView'][_0x57b5('0x1f')](),this[_0x57b5('0x1d')](this[_0x57b5('0x2e')][_0x57b5('0x3a')],_0x57b5('0x26'),this['_handleEditorDataReady'][_0x57b5('0x22')](this)),this[_0x57b5('0x1d')](this[_0x57b5('0x17')],_0x57b5('0x36'),this['_handleDiffChange'][_0x57b5('0x22')](this)),_0x1f59d3[_0x57b5('0x1e')](this[_0x57b5('0x2c')]['element']);}[_0x57b5('0x3')](){this[_0x57b5('0x2c')][_0x57b5('0x37')][_0x57b5('0xa')](),this['_sidebarView']['destroy']();}[_0x57b5('0x29')](){const _0xd3c90b=this[_0x57b5('0x2f')]['getRevision'](0x0);if(_0xd3c90b){const _0x154377=this['_revisionsRepository'][_0x57b5('0xd')](_0xd3c90b['id']);this['_revisionViewer'][_0x57b5('0x1c')](_0xd3c90b,_0x154377);}}[_0x57b5('0x3b')](_0x3b4fef,_0x3f3da0){const _0x441979=this[_0x57b5('0x2f')]['getRevision'](_0x3f3da0['id']),_0x34d16f=this[_0x57b5('0x2f')][_0x57b5('0xd')](_0x441979['id']);this[_0x57b5('0x17')][_0x57b5('0x1c')](_0x441979,_0x34d16f);}[_0x57b5('0x2')](_0x4730d0,_0x5c05ca){this[_0x57b5('0x2f')]['getRevision'](_0x5c05ca['id'])[_0x57b5('0x13')](_0x5c05ca[_0x57b5('0x16')]);}[_0x57b5('0x9')](_0x588932,_0x110ff2,_0x4a28ca){const _0x3d372f=this[_0x57b5('0x2f')][_0x57b5('0x23')](_0x4a28ca);_0x3d372f[_0x57b5('0x0')]>0x2?(this[_0x57b5('0x2c')][_0x57b5('0x27')](_0x3d372f),this['_sidebarView'][_0x57b5('0x6')](null)):(this[_0x57b5('0x2c')][_0x57b5('0x27')]([]),this['_sidebarView'][_0x57b5('0x6')](_0x3d372f[0x0]));}[_0x57b5('0x30')](){const _0x3bbb50=this['editor'],_0x3657e0=d[_0x57b5('0x19')],_0x4ff599=_0x3bbb50[_0x57b5('0x1')]['get'](_0x57b5('0x24'))||d['defaultRevisionActions'];if(_0x4ff599[_0x57b5('0x0')])return _0x4ff599['map'](_0x8a77fb=>{const _0x3377c5=_0x57b5('0x1a')==typeof _0x8a77fb?Object[_0x57b5('0x32')]({},_0x3657e0[_0x8a77fb]):_0x8a77fb;return _0x3377c5[_0x57b5('0x34')]=_0x3377c5[_0x57b5('0x34')][_0x57b5('0x22')](this,_0x3bbb50),_0x3377c5['isVisible']&&(_0x3377c5[_0x57b5('0xf')]=_0x3377c5[_0x57b5('0xf')]['bind'](this,_0x3bbb50)),_0x3377c5;});}}d[_0x57b5('0x19')]={'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x10d628},_0x345015)=>{const _0x7292ae=_0x10d628[_0x57b5('0x8')](_0x3ee80a),_0x250358=_0x7292ae['repository'];let _0x271e43=_0x7292ae[_0x57b5('0x5')]['newRevisionId'],_0x2b2d64=_0x345015['id'];_0x250358[_0x57b5('0x25')](_0x271e43)>_0x250358[_0x57b5('0x25')](_0x2b2d64)&&([_0x271e43,_0x2b2d64]=[_0x2b2d64,_0x271e43]),_0x7292ae[_0x57b5('0x1c')](_0x271e43,_0x2b2d64);},'isVisible':({plugins:_0xdf5639},_0x414c85)=>{const _0x370072=_0xdf5639[_0x57b5('0x8')](_0x3ee80a);return!(_0x370072[_0x57b5('0x18')]['getRevisionsInDiff'](_0x370072[_0x57b5('0x5')])[_0x57b5('0x0')]>0x2)&&!_0x414c85[_0x57b5('0x12')];}},'restoreRevision':{'name':_0x57b5('0x14'),'action':(_0x40821b,{id:_0x132711})=>{_0x40821b[_0x57b5('0x1')][_0x57b5('0x8')](_0x57b5('0x20'))['restoreRevisionCallback'](_0x132711);},'isVisible':({plugins:_0x301e9b},_0x42fcd6)=>!!_0x301e9b['get'](_0x3ee80a)[_0x57b5('0x18')][_0x57b5('0x2a')](_0x42fcd6['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x4c4778},{id:_0xf95f0d,revisionNameView:_0x871be5})=>{const _0x59edfd=_0x4c4778[_0x57b5('0x8')](_0x3ee80a),_0x4db154=_0x59edfd[_0x57b5('0x18')]['getEarlierVisibleRevision'](_0xf95f0d);_0x59edfd[_0x57b5('0x1c')](_0xf95f0d,_0x4db154),_0x871be5['focus'](),_0x871be5[_0x57b5('0x21')][_0x57b5('0x10')]();}}},d[_0x57b5('0x2d')]=[_0x57b5('0x33'),_0x57b5('0x15'),_0x57b5('0xb')];
@@ -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 _0x5ceb=['ck-revision-history-sidebar__header','setTemplate','ck-reset_all','span'];(function(_0x2e23c9,_0x5cebad){const _0x3479da=function(_0x37c7e3){while(--_0x37c7e3){_0x2e23c9['push'](_0x2e23c9['shift']());}};_0x3479da(++_0x5cebad);}(_0x5ceb,0x125));const _0x3479=function(_0x2e23c9,_0x5cebad){_0x2e23c9=_0x2e23c9-0x0;let _0x3479da=_0x5ceb[_0x2e23c9];return _0x3479da;};import{View as _0x2ebbf5,IconView as _0x572a5a}from'ckeditor5/src/ui';import{getTranslation as _0x5b9cde}from'../../utils/common-translations';import _0x43eaee from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class cs extends _0x2ebbf5{constructor(_0x448765){super(_0x448765);const _0x3d8dab=new _0x572a5a(_0x448765);_0x3d8dab['content']=_0x43eaee,this[_0x3479('0x0')]({'tag':'div','attributes':{'class':['ck',_0x3479('0x1'),_0x3479('0x3')]},'children':[_0x3d8dab,{'tag':_0x3479('0x2'),'attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[_0x5b9cde(_0x448765,'Revision\x20history')]}]});}}
23
+ const _0x3ae0=['ck-revision-history-sidebar__header','Revision\x20history','span','setTemplate','div','content','ck-reset_all'];(function(_0x34b79f,_0x3ae050){const _0x164636=function(_0x2df827){while(--_0x2df827){_0x34b79f['push'](_0x34b79f['shift']());}};_0x164636(++_0x3ae050);}(_0x3ae0,0x141));const _0x1646=function(_0x34b79f,_0x3ae050){_0x34b79f=_0x34b79f-0x0;let _0x164636=_0x3ae0[_0x34b79f];return _0x164636;};import{View as _0x3dfe86,IconView as _0x2ebd07}from'ckeditor5/src/ui';import{getTranslation as _0xc0f920}from'../../utils/common-translations';import _0x289ce4 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class cs extends _0x3dfe86{constructor(_0x10906b){super(_0x10906b);const _0x303fb4=new _0x2ebd07(_0x10906b);_0x303fb4[_0x1646('0x6')]=_0x289ce4,this[_0x1646('0x4')]({'tag':_0x1646('0x5'),'attributes':{'class':['ck',_0x1646('0x0'),_0x1646('0x1')]},'children':[_0x303fb4,{'tag':_0x1646('0x3'),'attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[_0xc0f920(_0x10906b,_0x1646('0x2'))]}]});}}
@@ -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 _0x5d7c=['ck-revision-history-sidebar__time-period__revisions','ck-revision-history-sidebar__time-period__label','_revisionActions','addRevision','startDate','localizedPeriodName','add','revisionViews','delegate','div','createCollection','select','uiLanguage','span','locale','find','removeRevision','setName','ck-revision-history-sidebar__time-period'];(function(_0x210c4e,_0x5d7ca2){const _0x584fd9=function(_0x3a8c19){while(--_0x3a8c19){_0x210c4e['push'](_0x210c4e['shift']());}};_0x584fd9(++_0x5d7ca2);}(_0x5d7c,0xee));const _0x584f=function(_0x210c4e,_0x5d7ca2){_0x210c4e=_0x210c4e-0x0;let _0x584fd9=_0x5d7c[_0x210c4e];return _0x584fd9;};import{View as _0x53b567}from'ckeditor5/src/ui';import _0x19579e from'../revision/revisionview';import{getDateTimePeriodInfo as _0x15d5fb}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x53b567{constructor(_0x142c98,_0x1031db,_0x205b52){super(_0x142c98);const _0x49d37a=_0x15d5fb(_0x1031db,this['locale'][_0x584f('0x2')])[_0x584f('0xe')];this[_0x584f('0xd')]=_0x1031db,this[_0x584f('0xb')]=_0x205b52,this[_0x584f('0x10')]=this[_0x584f('0x0')](),this[_0x584f('0x10')][_0x584f('0x11')](_0x584f('0x1'))['to'](this),this[_0x584f('0x10')]['delegate'](_0x584f('0x7'))['to'](this),this['setTemplate']({'tag':_0x584f('0x12'),'attributes':{'class':['ck',_0x584f('0x8')]},'children':[{'tag':_0x584f('0x3'),'attributes':{'class':['ck',_0x584f('0xa')]},'children':[{'text':_0x49d37a}]},{'tag':_0x584f('0x12'),'attributes':{'class':['ck',_0x584f('0x9')]},'children':this[_0x584f('0x10')]}]});}[_0x584f('0xc')](_0x2a1f1c){const _0x43fea3=new _0x19579e(this[_0x584f('0x4')],_0x2a1f1c,this[_0x584f('0xb')]);this[_0x584f('0x10')][_0x584f('0xf')](_0x43fea3);}[_0x584f('0x6')](_0x24b8ed){const _0x324038=this[_0x584f('0x10')][_0x584f('0x5')](_0x152965=>_0x152965['id']===_0x24b8ed['id']);this[_0x584f('0x10')]['remove'](_0x324038);}}
23
+ const _0x4e1e=['addRevision','locale','find','remove','revisionViews','removeRevision','createCollection','ck-revision-history-sidebar__time-period','_revisionActions','ck-revision-history-sidebar__time-period__revisions','div','span','ck-revision-history-sidebar__time-period__label','uiLanguage','delegate','setTemplate','select'];(function(_0x434ddf,_0x4e1e6c){const _0x179d62=function(_0x2fff1b){while(--_0x2fff1b){_0x434ddf['push'](_0x434ddf['shift']());}};_0x179d62(++_0x4e1e6c);}(_0x4e1e,0x17e));const _0x179d=function(_0x434ddf,_0x4e1e6c){_0x434ddf=_0x434ddf-0x0;let _0x179d62=_0x4e1e[_0x434ddf];return _0x179d62;};import{View as _0x3271e0}from'ckeditor5/src/ui';import _0x432955 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x567ca8}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x3271e0{constructor(_0x338d01,_0x2c3359,_0x4fa9b7){super(_0x338d01);const _0x2a6d1c=_0x567ca8(_0x2c3359,this[_0x179d('0xa')][_0x179d('0x5')])['localizedPeriodName'];this['startDate']=_0x2c3359,this['_revisionActions']=_0x4fa9b7,this[_0x179d('0xd')]=this[_0x179d('0xf')](),this[_0x179d('0xd')][_0x179d('0x6')](_0x179d('0x8'))['to'](this),this[_0x179d('0xd')][_0x179d('0x6')]('setName')['to'](this),this[_0x179d('0x7')]({'tag':_0x179d('0x2'),'attributes':{'class':['ck',_0x179d('0x10')]},'children':[{'tag':_0x179d('0x3'),'attributes':{'class':['ck',_0x179d('0x4')]},'children':[{'text':_0x2a6d1c}]},{'tag':_0x179d('0x2'),'attributes':{'class':['ck',_0x179d('0x1')]},'children':this[_0x179d('0xd')]}]});}[_0x179d('0x9')](_0x36d245){const _0xae2cf3=new _0x432955(this[_0x179d('0xa')],_0x36d245,this[_0x179d('0x0')]);this[_0x179d('0xd')]['add'](_0xae2cf3);}[_0x179d('0xe')](_0x1f640a){const _0x1d8bce=this[_0x179d('0xd')][_0x179d('0xb')](_0x5d18d7=>_0x5d18d7['id']===_0x1f640a['id']);this[_0x179d('0xd')][_0x179d('0xc')](_0x1d8bce);}}
@@ -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 _0x1df7=['add','_addRevision','createdAt','revisionSelected','remove','timePeriodViews','delegate','highlightRevisions','_revisionActions','fire','locale','getTime','highlight','bindTemplate','unhighlight','setName','revisionViews','ck-rounded-corners','setTemplate','isEnabled','map','_getTimePeriodViewByStartDate','_revisions','ck-revision-history-sidebar__timeline','ck-disabled','ck-revision-history-sidebar','div','startDate','render','_removeRevision','addRevision','deselect','select','ck-reset'];(function(_0x545ef6,_0x1df736){const _0x196a25=function(_0x213d43){while(--_0x213d43){_0x545ef6['push'](_0x545ef6['shift']());}};_0x196a25(++_0x1df736);}(_0x1df7,0x1c6));const _0x196a=function(_0x545ef6,_0x1df736){_0x545ef6=_0x545ef6-0x0;let _0x196a25=_0x1df7[_0x545ef6];return _0x196a25;};import{View as _0x137a89}from'ckeditor5/src/ui';import _0xbae6d5 from'./revisionssidebartimeperiodview';import _0x5f08d4 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x37b505}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x137a89{constructor(_0x5386bc,_0x37d716,_0x4b0aa4){super(_0x5386bc);const _0x30da8e=this[_0x196a('0x1')];this[_0x196a('0x1b')]=this['createCollection'](),this['timePeriodViews'][_0x196a('0x1c')](_0x196a('0x14'))['to'](this),this[_0x196a('0x1b')][_0x196a('0x1c')](_0x196a('0x3'))['to'](this),this[_0x196a('0xa')]=_0x37d716,this[_0x196a('0x1e')]=_0x4b0aa4,this['on']('select',(_0x25ff14,_0x284f38)=>{this[_0x196a('0x1f')](_0x196a('0x19'),_0x284f38);}),this['on'](_0x196a('0x3'),(_0x4c1b04,_0x58e7b2)=>{this[_0x196a('0x1f')]('revisionSetName',_0x58e7b2);}),this['set'](_0x196a('0x7'),!0x1),this[_0x196a('0x6')]({'tag':_0x196a('0xe'),'attributes':{'class':['ck',_0x196a('0x15'),_0x196a('0x5'),_0x196a('0xd')]},'children':[new _0x5f08d4(_0x5386bc),{'tag':'div','attributes':{'class':['ck',_0x196a('0xb'),_0x30da8e['if'](_0x196a('0x7'),_0x196a('0xc'),_0x2952d7=>!_0x2952d7)]},'children':this[_0x196a('0x1b')]}]});}[_0x196a('0x10')](){super[_0x196a('0x10')]();for(const _0x2e8553 of this['_revisions'])this[_0x196a('0x17')](_0x2e8553);this[_0x196a('0xa')]['on'](_0x196a('0x16'),(_0x94417d,_0x1a2488)=>{this[_0x196a('0x17')](_0x1a2488);}),this[_0x196a('0xa')]['on'](_0x196a('0x1a'),(_0x5c36f1,_0x4e4ccd)=>{this[_0x196a('0x11')](_0x4e4ccd);});}get[_0x196a('0x4')](){return this[_0x196a('0x1b')][_0x196a('0x8')](_0x484c0c=>_0x484c0c[_0x196a('0x4')][_0x196a('0x8')](_0x2fad10=>_0x2fad10))['flat']();}['selectRevision'](_0x4be79c){for(const _0xa74e6c of this[_0x196a('0x4')])_0x4be79c&&_0x4be79c['id']===_0xa74e6c['id']?_0xa74e6c[_0x196a('0x14')]():_0xa74e6c[_0x196a('0x13')]();}[_0x196a('0x1d')](_0x1d9ccc){for(const _0x2513a1 of this[_0x196a('0x4')])_0x1d9ccc['some'](({id:_0x484d6d})=>_0x484d6d===_0x2513a1['id'])?_0x2513a1[_0x196a('0x0')]():_0x2513a1[_0x196a('0x2')]();}['_addRevision'](_0x1f65f2){const _0x77d266=_0x37b505(_0x1f65f2[_0x196a('0x18')])[_0x196a('0xf')];let _0x39e3d1=this[_0x196a('0x1b')]['get'](0x0);_0x39e3d1&&_0x39e3d1[_0x196a('0xf')][_0x196a('0x21')]()===_0x77d266['getTime']()||(_0x39e3d1=new _0xbae6d5(this[_0x196a('0x20')],_0x77d266,this[_0x196a('0x1e')]),this[_0x196a('0x1b')][_0x196a('0x16')](_0x39e3d1)),_0x39e3d1[_0x196a('0x12')](_0x1f65f2);}[_0x196a('0x11')](_0x164bf5){const _0x2288a2=_0x37b505(_0x164bf5[_0x196a('0x18')])[_0x196a('0xf')];this[_0x196a('0x9')](_0x2288a2)['removeRevision'](_0x164bf5);}[_0x196a('0x9')](_0x4f737b){return this[_0x196a('0x1b')]['find'](_0x46cc2c=>_0x46cc2c[_0x196a('0xf')][_0x196a('0x21')]()===_0x4f737b[_0x196a('0x21')]());}}
23
+ const _0x22b9=['startDate','locale','revisionViews','ck-rounded-corners','select','_addRevision','render','revisionSetName','removeRevision','ck-disabled','selectRevision','flat','bindTemplate','_removeRevision','remove','setTemplate','deselect','add','some','_revisions','fire','timePeriodViews','_revisionActions','addRevision','highlightRevisions','unhighlight','_getTimePeriodViewByStartDate','div','getTime','ck-revision-history-sidebar','setName','isEnabled','map','delegate','createCollection','ck-reset','set','createdAt'];(function(_0x3360c8,_0x22b92e){const _0x531793=function(_0x3bd170){while(--_0x3bd170){_0x3360c8['push'](_0x3360c8['shift']());}};_0x531793(++_0x22b92e);}(_0x22b9,0x13c));const _0x5317=function(_0x3360c8,_0x22b92e){_0x3360c8=_0x3360c8-0x0;let _0x531793=_0x22b9[_0x3360c8];return _0x531793;};import{View as _0x30a123}from'ckeditor5/src/ui';import _0xe75317 from'./revisionssidebartimeperiodview';import _0x91e054 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x54015f}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x30a123{constructor(_0x3fca52,_0x494726,_0x37e996){super(_0x3fca52);const _0x28ca76=this[_0x5317('0x0')];this[_0x5317('0x9')]=this[_0x5317('0x16')](),this[_0x5317('0x9')]['delegate'](_0x5317('0x1e'))['to'](this),this[_0x5317('0x9')][_0x5317('0x15')]('setName')['to'](this),this[_0x5317('0x7')]=_0x494726,this[_0x5317('0xa')]=_0x37e996,this['on'](_0x5317('0x1e'),(_0x4e178b,_0x5485b2)=>{this[_0x5317('0x8')]('revisionSelected',_0x5485b2);}),this['on'](_0x5317('0x12'),(_0x8cc1b,_0x362bd7)=>{this['fire'](_0x5317('0x21'),_0x362bd7);}),this[_0x5317('0x18')]('isEnabled',!0x1),this[_0x5317('0x3')]({'tag':_0x5317('0xf'),'attributes':{'class':['ck',_0x5317('0x17'),_0x5317('0x1d'),_0x5317('0x11')]},'children':[new _0x91e054(_0x3fca52),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x28ca76['if'](_0x5317('0x13'),_0x5317('0x23'),_0x2a24ae=>!_0x2a24ae)]},'children':this[_0x5317('0x9')]}]});}[_0x5317('0x20')](){super[_0x5317('0x20')]();for(const _0x3e8533 of this['_revisions'])this['_addRevision'](_0x3e8533);this[_0x5317('0x7')]['on'](_0x5317('0x5'),(_0x5e5015,_0x378938)=>{this[_0x5317('0x1f')](_0x378938);}),this[_0x5317('0x7')]['on'](_0x5317('0x2'),(_0x5df38c,_0x23f38a)=>{this[_0x5317('0x1')](_0x23f38a);});}get[_0x5317('0x1c')](){return this['timePeriodViews'][_0x5317('0x14')](_0x75226=>_0x75226[_0x5317('0x1c')][_0x5317('0x14')](_0x4cdd41=>_0x4cdd41))[_0x5317('0x25')]();}[_0x5317('0x24')](_0x338e12){for(const _0x5a5f60 of this[_0x5317('0x1c')])_0x338e12&&_0x338e12['id']===_0x5a5f60['id']?_0x5a5f60[_0x5317('0x1e')]():_0x5a5f60[_0x5317('0x4')]();}[_0x5317('0xc')](_0x177e7e){for(const _0xb586a5 of this[_0x5317('0x1c')])_0x177e7e[_0x5317('0x6')](({id:_0x4ed641})=>_0x4ed641===_0xb586a5['id'])?_0xb586a5['highlight']():_0xb586a5[_0x5317('0xd')]();}[_0x5317('0x1f')](_0x4a1852){const _0x3cbdef=_0x54015f(_0x4a1852[_0x5317('0x19')])['startDate'];let _0x4c74c3=this[_0x5317('0x9')]['get'](0x0);_0x4c74c3&&_0x4c74c3[_0x5317('0x1a')]['getTime']()===_0x3cbdef[_0x5317('0x10')]()||(_0x4c74c3=new _0xe75317(this[_0x5317('0x1b')],_0x3cbdef,this['_revisionActions']),this[_0x5317('0x9')]['add'](_0x4c74c3)),_0x4c74c3[_0x5317('0xb')](_0x4a1852);}[_0x5317('0x1')](_0x3a5599){const _0x2d94fa=_0x54015f(_0x3a5599[_0x5317('0x19')])[_0x5317('0x1a')];this[_0x5317('0xe')](_0x2d94fa)[_0x5317('0x22')](_0x3a5599);}['_getTimePeriodViewByStartDate'](_0x222585){return this['timePeriodViews']['find'](_0x1b4b72=>_0x1b4b72[_0x5317('0x1a')][_0x5317('0x10')]()===_0x222585[_0x5317('0x10')]());}}
@@ -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 _0x3e81=['toRelativeCalendar','minus','startOf','hasSame','day','toJSDate','month','fromJSDate','year','local','week','monthLong'];(function(_0x663356,_0x3e815d){const _0x1dc449=function(_0x4dba69){while(--_0x4dba69){_0x663356['push'](_0x663356['shift']());}};_0x1dc449(++_0x3e815d);}(_0x3e81,0x7e));const _0x1dc4=function(_0x663356,_0x3e815d){_0x663356=_0x663356-0x0;let _0x1dc449=_0x3e81[_0x663356];return _0x1dc449;};import{DateTime as _0x4e915a}from'luxon';export function getDateTimePeriodInfo(_0x37cb7d,_0x28b0ae){_0x37cb7d=_0x4e915a[_0x1dc4('0x1')](_0x37cb7d)['setLocale'](_0x28b0ae);const _0x86a493=_0x4e915a[_0x1dc4('0x3')](),_0x1b8d84=_0x86a493[_0x1dc4('0x7')]({'days':0x1})[_0x1dc4('0x8')](_0x1dc4('0xa'));let _0x3cc86d,_0x373ac0;return _0x37cb7d[_0x1dc4('0x9')](_0x86a493,_0x1dc4('0xa'))?(_0x3cc86d=_0x37cb7d[_0x1dc4('0x8')](_0x1dc4('0xa'))[_0x1dc4('0xb')](),_0x373ac0=_0x37cb7d[_0x1dc4('0x6')]()):_0x37cb7d[_0x1dc4('0x9')](_0x1b8d84,_0x1dc4('0xa'))?(_0x3cc86d=_0x1b8d84['toJSDate'](),_0x373ac0=_0x37cb7d[_0x1dc4('0x6')]()):_0x37cb7d[_0x1dc4('0x9')](_0x86a493,'week')?(_0x3cc86d=_0x37cb7d[_0x1dc4('0x8')](_0x1dc4('0x4'))['toJSDate'](),_0x373ac0=_0x37cb7d['weekdayLong']):_0x37cb7d['hasSame'](_0x86a493,'year')?(_0x3cc86d=_0x37cb7d[_0x1dc4('0x8')](_0x1dc4('0x0'))[_0x1dc4('0xb')](),_0x373ac0=_0x37cb7d[_0x1dc4('0x5')]):(_0x3cc86d=_0x37cb7d[_0x1dc4('0x8')]('year')[_0x1dc4('0xb')](),_0x373ac0=_0x37cb7d[_0x1dc4('0x2')]),{'startDate':_0x3cc86d,'localizedPeriodName':_0x373ac0};}
23
+ const _0x4acc=['day','weekdayLong','fromJSDate','toRelativeCalendar','startOf','hasSame','week','month','local','toJSDate','year'];(function(_0x158520,_0x4acc7d){const _0x889da9=function(_0x56ae1a){while(--_0x56ae1a){_0x158520['push'](_0x158520['shift']());}};_0x889da9(++_0x4acc7d);}(_0x4acc,0x69));const _0x889d=function(_0x158520,_0x4acc7d){_0x158520=_0x158520-0x0;let _0x889da9=_0x4acc[_0x158520];return _0x889da9;};import{DateTime as _0x54e98f}from'luxon';export function getDateTimePeriodInfo(_0x97db15,_0x238e0a){_0x97db15=_0x54e98f[_0x889d('0x7')](_0x97db15)['setLocale'](_0x238e0a);const _0x3594e5=_0x54e98f[_0x889d('0x2')](),_0x2c7f6b=_0x3594e5['minus']({'days':0x1})[_0x889d('0x9')](_0x889d('0x5'));let _0x216bfa,_0x21b819;return _0x97db15['hasSame'](_0x3594e5,_0x889d('0x5'))?(_0x216bfa=_0x97db15[_0x889d('0x9')](_0x889d('0x5'))[_0x889d('0x3')](),_0x21b819=_0x97db15[_0x889d('0x8')]()):_0x97db15[_0x889d('0xa')](_0x2c7f6b,_0x889d('0x5'))?(_0x216bfa=_0x2c7f6b[_0x889d('0x3')](),_0x21b819=_0x97db15[_0x889d('0x8')]()):_0x97db15[_0x889d('0xa')](_0x3594e5,_0x889d('0x0'))?(_0x216bfa=_0x97db15['startOf'](_0x889d('0x0'))[_0x889d('0x3')](),_0x21b819=_0x97db15[_0x889d('0x6')]):_0x97db15['hasSame'](_0x3594e5,_0x889d('0x4'))?(_0x216bfa=_0x97db15[_0x889d('0x9')](_0x889d('0x1'))[_0x889d('0x3')](),_0x21b819=_0x97db15['monthLong']):(_0x216bfa=_0x97db15[_0x889d('0x9')](_0x889d('0x4'))['toJSDate'](),_0x21b819=_0x97db15[_0x889d('0x4')]),{'startDate':_0x216bfa,'localizedPeriodName':_0x21b819};}
@@ -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 _0x33cf=['set','setTemplate','Removed\x20by','type','div','ck-revision-change__label','element','isSuggestion','bindTemplate','Suggested\x20by','focus','span','author','ck-annotation','ck-revision-change','ck-revision-change__'];(function(_0x1fab74,_0x33cf6a){const _0x31ba5b=function(_0x5bdfcb){while(--_0x5bdfcb){_0x1fab74['push'](_0x1fab74['shift']());}};_0x31ba5b(++_0x33cf6a);}(_0x33cf,0xe9));const _0x31ba=function(_0x1fab74,_0x33cf6a){_0x1fab74=_0x1fab74-0x0;let _0x31ba5b=_0x33cf[_0x1fab74];return _0x31ba5b;};import{View as _0x4b92a8}from'ckeditor5/src/ui';import{getTranslation as _0x2b93ee}from'../../utils/common-translations';export default class X extends _0x4b92a8{constructor(_0x134734,_0x4f0906){super(_0x134734),this['_model']=_0x4f0906;const _0x236278=this[_0x31ba('0xf')],_0x53b6c7=_0x2b93ee(_0x134734,_0x4f0906['data'][_0x31ba('0xe')]?_0x31ba('0x0'):'add'==_0x4f0906['type']?'Added\x20by':_0x31ba('0x9'));this[_0x31ba('0x7')](_0x31ba('0xa'),_0x4f0906[_0x31ba('0xa')]),this[_0x31ba('0x8')]({'tag':_0x31ba('0xb'),'attributes':{'class':[_0x31ba('0x4'),_0x31ba('0x5'),_0x236278['to'](_0x31ba('0xa'),_0x566c80=>_0x31ba('0x6')+_0x566c80)],'tabindex':-0x1},'children':[{'tag':_0x31ba('0x2'),'children':[{'tag':'span','attributes':{'class':[_0x31ba('0xc')]},'children':[{'text':_0x53b6c7}]},{'text':'\x20'+_0x4f0906[_0x31ba('0x3')]['name']}]}]});}[_0x31ba('0x1')](){this[_0x31ba('0xd')][_0x31ba('0x1')]();}}
23
+ const _0x4df0=['Suggested\x20by','focus','type','span','name','ck-revision-change__label','data','element','add','bindTemplate','ck-revision-change__','changeId','Added\x20by'];(function(_0x1dbbdc,_0x4df0f9){const _0x34ff04=function(_0x2b4978){while(--_0x2b4978){_0x1dbbdc['push'](_0x1dbbdc['shift']());}};_0x34ff04(++_0x4df0f9);}(_0x4df0,0xe0));const _0x34ff=function(_0x1dbbdc,_0x4df0f9){_0x1dbbdc=_0x1dbbdc-0x0;let _0x34ff04=_0x4df0[_0x1dbbdc];return _0x34ff04;};import{View as _0x56df40}from'ckeditor5/src/ui';import{getTranslation as _0x481c23}from'../../utils/common-translations';export default class G extends _0x56df40{constructor(_0xd5eda1,_0x18ec0b){super(_0xd5eda1),this['_model']=_0x18ec0b,this[_0x34ff('0x8')]=_0x18ec0b['id'];const _0x289708=this[_0x34ff('0x6')],_0x4c3419=_0x481c23(_0xd5eda1,_0x18ec0b[_0x34ff('0x3')]['isSuggestion']?_0x34ff('0xa'):_0x34ff('0x5')==_0x18ec0b[_0x34ff('0xc')]?_0x34ff('0x9'):'Removed\x20by');this['set'](_0x34ff('0xc'),_0x18ec0b[_0x34ff('0xc')]),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x289708['to'](_0x34ff('0xc'),_0x20c291=>_0x34ff('0x7')+_0x20c291)],'tabindex':-0x1},'children':[{'tag':_0x34ff('0x0'),'children':[{'tag':'span','attributes':{'class':[_0x34ff('0x2')]},'children':[{'text':_0x4c3419}]},{'text':'\x20'+_0x18ec0b['author'][_0x34ff('0x1')]}]}]});}[_0x34ff('0xb')](){this[_0x34ff('0x4')][_0x34ff('0xb')]();}}
@@ -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 _0x47c0=['isReady','X_OF_Y_CHANGES','ck-revision-history-ui__changes-navigation__navigation','bindTemplate','bind','isBackwardNavigationEnabled','EDIT_X_OF_Y_REVISIONS','set','div','isForwardNavigationEnabled','ck-revision-history-ui__changes-navigation','_isStatusLabelVisible','currentChangeNumber','fire','isEnabled','Show\x20next\x20change','_statusText','numberOfChanges','Total','isNavigationMode','Show\x20previous\x20change','execute','No\x20changes'];(function(_0x2cbeb9,_0x47c0d6){const _0x1efbdf=function(_0x1e28b3){while(--_0x1e28b3){_0x2cbeb9['push'](_0x2cbeb9['shift']());}};_0x1efbdf(++_0x47c0d6);}(_0x47c0,0x120));const _0x1efb=function(_0x2cbeb9,_0x47c0d6){_0x2cbeb9=_0x2cbeb9-0x0;let _0x1efbdf=_0x47c0[_0x2cbeb9];return _0x1efbdf;};import{View as _0x2df33b,ButtonView as _0x34ca8e,ToolbarSeparatorView as _0x123144}from'ckeditor5/src/ui';import{getTranslation as _0x441726}from'../../utils/common-translations';import _0x39f40b from'../../../theme/icons/arrow-up.svg';import _0x17e674 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x2df33b{constructor(_0x43fa60){super(_0x43fa60);const _0x351083=this[_0x1efb('0xe')],_0x12d125=new _0x34ca8e(_0x43fa60),_0x15eaf8=new _0x34ca8e(_0x43fa60);this[_0x1efb('0x12')](_0x1efb('0x7'),!0x1),this['set'](_0x1efb('0xb'),!0x1),this['set'](_0x1efb('0x0'),0x0),this[_0x1efb('0x12')](_0x1efb('0x5'),0x0),this[_0x1efb('0x12')]('isForwardNavigationEnabled',!0x1),this[_0x1efb('0x12')](_0x1efb('0x10'),!0x1),this[_0x1efb('0xf')](_0x1efb('0x16'))['to'](this,'isReady',this,_0x1efb('0x5'),(_0x35ae69,_0x2d1176)=>_0x35ae69&&_0x2d1176>0x0),this[_0x1efb('0xf')](_0x1efb('0x4'))['to'](this,_0x1efb('0xb'),this,_0x1efb('0x0'),this,_0x1efb('0x5'),this,_0x1efb('0x7'),(_0x249986,_0x1824ad,_0x261f77,_0x5d36b0)=>{if(!_0x249986)return _0x441726(_0x43fa60,'Loading...');if(!_0x261f77)return _0x441726(_0x43fa60,_0x1efb('0xa'));const _0x521c3f=_0x441726(_0x43fa60,'NUMBER_OF_CHANGES',_0x261f77);return _0x5d36b0?_0x441726(_0x43fa60,_0x1efb('0xc'),[_0x1824ad+0x1,_0x261f77]):_0x521c3f;}),_0x12d125['set']({'label':_0x441726(_0x43fa60,_0x1efb('0x8')),'tooltip':!0x0,'icon':_0x39f40b}),_0x15eaf8[_0x1efb('0x12')]({'label':_0x441726(_0x43fa60,_0x1efb('0x3')),'tooltip':!0x0,'icon':_0x17e674}),_0x12d125[_0x1efb('0xf')](_0x1efb('0x2'))['to'](this,_0x1efb('0x10')),_0x15eaf8[_0x1efb('0xf')](_0x1efb('0x2'))['to'](this,_0x1efb('0x14')),_0x12d125['on'](_0x1efb('0x9'),()=>this[_0x1efb('0x1')](_0x1efb('0x9'),'backward')),_0x15eaf8['on']('execute',()=>this['fire']('execute','forward')),this['setTemplate']({'tag':_0x1efb('0x13'),'attributes':{'class':['ck','ck-revision-history-ui',_0x1efb('0x15')]},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x351083['if'](_0x1efb('0x16'),'ck-hidden',_0x5060c9=>!_0x5060c9)]},'children':[{'text':_0x351083['to']('isNavigationMode',_0x32c961=>_0x32c961?_0x441726(_0x43fa60,_0x1efb('0x11'))+':\x20':_0x441726(_0x43fa60,_0x1efb('0x6'))+':\x20')}]},{'text':_0x351083['to'](_0x1efb('0x4'))}]},new _0x123144(),{'tag':_0x1efb('0x13'),'attributes':{'class':[_0x1efb('0xd')]},'children':[_0x12d125,_0x15eaf8]}]});}}
23
+ const _0xfd52=['div','bindTemplate','ck-revision-history-ui__changes-navigation__navigation','fire','numberOfChanges','bind','isNavigationMode','isBackwardNavigationEnabled','_statusText','Show\x20next\x20change','X_OF_Y_CHANGES','ck-revision-history-ui__changes-navigation__label','Show\x20previous\x20change','EDIT_X_OF_Y_REVISIONS','isReady','setTemplate','set','ck-hidden','ck-revision-history-ui__changes-navigation','span','execute','backward','forward','NUMBER_OF_CHANGES','isEnabled','No\x20changes','isForwardNavigationEnabled','ck-revision-history-ui','currentChangeNumber'];(function(_0x15ba49,_0xfd52f9){const _0x3c4855=function(_0x3679cf){while(--_0x3679cf){_0x15ba49['push'](_0x15ba49['shift']());}};_0x3c4855(++_0xfd52f9);}(_0xfd52,0x69));const _0x3c48=function(_0x15ba49,_0xfd52f9){_0x15ba49=_0x15ba49-0x0;let _0x3c4855=_0xfd52[_0x15ba49];return _0x3c4855;};import{View as _0x370867,ButtonView as _0x45b0af,ToolbarSeparatorView as _0x49de37}from'ckeditor5/src/ui';import{getTranslation as _0x28729e}from'../../utils/common-translations';import _0x40b71a from'../../../theme/icons/arrow-up.svg';import _0x311a80 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x370867{constructor(_0x3bb577){super(_0x3bb577);const _0x2d642c=this[_0x3c48('0xc')],_0x36c131=new _0x45b0af(_0x3bb577),_0x5b1483=new _0x45b0af(_0x3bb577);this[_0x3c48('0x1b')]('isNavigationMode',!0x1),this[_0x3c48('0x1b')]('isReady',!0x1),this[_0x3c48('0x1b')](_0x3c48('0xa'),0x0),this['set'](_0x3c48('0xf'),0x0),this[_0x3c48('0x1b')](_0x3c48('0x8'),!0x1),this[_0x3c48('0x1b')](_0x3c48('0x12'),!0x1),this[_0x3c48('0x10')]('_isStatusLabelVisible')['to'](this,_0x3c48('0x19'),this,_0x3c48('0xf'),(_0x2a9b46,_0x542a59)=>_0x2a9b46&&_0x542a59>0x0),this[_0x3c48('0x10')](_0x3c48('0x13'))['to'](this,_0x3c48('0x19'),this,_0x3c48('0xa'),this,'numberOfChanges',this,'isNavigationMode',(_0x177fc0,_0x4b5d52,_0x1520bc,_0x4c742f)=>{if(!_0x177fc0)return _0x28729e(_0x3bb577,'Loading...');if(!_0x1520bc)return _0x28729e(_0x3bb577,_0x3c48('0x7'));const _0x550476=_0x28729e(_0x3bb577,_0x3c48('0x5'),_0x1520bc);return _0x4c742f?_0x28729e(_0x3bb577,_0x3c48('0x15'),[_0x4b5d52+0x1,_0x1520bc]):_0x550476;}),_0x36c131['set']({'label':_0x28729e(_0x3bb577,_0x3c48('0x17')),'tooltip':!0x0,'icon':_0x40b71a}),_0x5b1483[_0x3c48('0x1b')]({'label':_0x28729e(_0x3bb577,_0x3c48('0x14')),'tooltip':!0x0,'icon':_0x311a80}),_0x36c131[_0x3c48('0x10')](_0x3c48('0x6'))['to'](this,'isBackwardNavigationEnabled'),_0x5b1483['bind'](_0x3c48('0x6'))['to'](this,_0x3c48('0x8')),_0x36c131['on'](_0x3c48('0x2'),()=>this[_0x3c48('0xe')](_0x3c48('0x2'),_0x3c48('0x3'))),_0x5b1483['on'](_0x3c48('0x2'),()=>this[_0x3c48('0xe')](_0x3c48('0x2'),_0x3c48('0x4'))),this[_0x3c48('0x1a')]({'tag':_0x3c48('0xb'),'attributes':{'class':['ck',_0x3c48('0x9'),_0x3c48('0x0')]},'children':[{'tag':_0x3c48('0x1'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':[_0x3c48('0x16'),_0x2d642c['if']('_isStatusLabelVisible',_0x3c48('0x1c'),_0x315359=>!_0x315359)]},'children':[{'text':_0x2d642c['to'](_0x3c48('0x11'),_0x236743=>_0x236743?_0x28729e(_0x3bb577,_0x3c48('0x18'))+':\x20':_0x28729e(_0x3bb577,'Total')+':\x20')}]},{'text':_0x2d642c['to'](_0x3c48('0x13'))}]},new _0x49de37(),{'tag':_0x3c48('0xb'),'attributes':{'class':[_0x3c48('0xd')]},'children':[_0x36c131,_0x5b1483]}]});}}
@@ -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 _0x24fb=['pluginName','view','editor','show','roots','hide','removeClass','RevisionViewerLoadingOverlay','ck-editor__editable__loading-overlay','addClass','document','change','editing'];(function(_0x148908,_0x24fb9b){const _0x3cb78f=function(_0x286261){while(--_0x286261){_0x148908['push'](_0x148908['shift']());}};_0x3cb78f(++_0x24fb9b);}(_0x24fb,0xba));const _0x3cb7=function(_0x148908,_0x24fb9b){_0x148908=_0x148908-0x0;let _0x3cb78f=_0x24fb[_0x148908];return _0x3cb78f;};import{Plugin as _0x3bc774}from'ckeditor5/src/core';import'../../../theme/revisionviewerloadingoverlay.css';export default class oe extends _0x3bc774{static get[_0x3cb7('0x9')](){return _0x3cb7('0x3');}[_0x3cb7('0xc')](){const _0x16f96b=this['editor'][_0x3cb7('0x8')][_0x3cb7('0xa')];_0x16f96b[_0x3cb7('0x7')](_0x136213=>{for(const _0x3e3b9f of _0x16f96b[_0x3cb7('0x6')][_0x3cb7('0x0')])_0x136213[_0x3cb7('0x5')](_0x3cb7('0x4'),_0x3e3b9f);});}[_0x3cb7('0x1')](){const _0x42ab19=this[_0x3cb7('0xb')][_0x3cb7('0x8')][_0x3cb7('0xa')];_0x42ab19[_0x3cb7('0x7')](_0x22a9fc=>{for(const _0x4dba35 of _0x42ab19['document'][_0x3cb7('0x0')])_0x22a9fc[_0x3cb7('0x2')](_0x3cb7('0x4'),_0x4dba35);});}}
23
+ const _0x1756=['pluginName','show','hide','editing','roots','document','addClass','ck-editor__editable__loading-overlay','change','editor','removeClass'];(function(_0x2aa487,_0x175697){const _0x1aabb7=function(_0x33020b){while(--_0x33020b){_0x2aa487['push'](_0x2aa487['shift']());}};_0x1aabb7(++_0x175697);}(_0x1756,0x117));const _0x1aab=function(_0x2aa487,_0x175697){_0x2aa487=_0x2aa487-0x0;let _0x1aabb7=_0x1756[_0x2aa487];return _0x1aabb7;};import{Plugin as _0x585314}from'ckeditor5/src/core';const ee=_0x1aab('0x3');import'../../../theme/revisionviewerloadingoverlay.css';export default class oe extends _0x585314{static get[_0x1aab('0x7')](){return'RevisionViewerLoadingOverlay';}[_0x1aab('0x8')](){const _0x23c976=this['editor'][_0x1aab('0xa')]['view'];_0x23c976['change'](_0x36c98d=>{for(const _0x27d479 of _0x23c976[_0x1aab('0x1')][_0x1aab('0x0')])_0x36c98d[_0x1aab('0x2')](ee,_0x27d479);});}[_0x1aab('0x9')](){const _0xab50af=this[_0x1aab('0x5')]['editing']['view'];_0xab50af[_0x1aab('0x4')](_0x184511=>{for(const _0x519c05 of _0xab50af[_0x1aab('0x1')][_0x1aab('0x0')])_0x184511[_0x1aab('0x6')](ee,_0x519c05);});}}
@@ -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 _0x3673=['plugins','showPreviousChange','isReady','componentFactory','isForwardNavigationEnabled','revisionHistory','isNavigationMode','add','changesNavigation','config','isBackwardNavigationEnabled','get','RevisionViewerUI','isEnabled','set','numberOfChanges','change:isReady','editor','hide','exitToEditing','Restore\x20this\x20revision','listenTo','commands','execute','forward','restoreRevision','closeRevisionViewerCallback','show','pluginName','bind','Back\x20to\x20editing'];(function(_0x2c7ae8,_0x367391){const _0x54bb72=function(_0xa57bd1){while(--_0xa57bd1){_0x2c7ae8['push'](_0x2c7ae8['shift']());}};_0x54bb72(++_0x367391);}(_0x3673,0x11f));const _0x54bb=function(_0x2c7ae8,_0x367391){_0x2c7ae8=_0x2c7ae8-0x0;let _0x54bb72=_0x3673[_0x2c7ae8];return _0x54bb72;};import{Plugin as _0x5b4ed3}from'ckeditor5/src/core';import{ButtonView as _0x17f636}from'ckeditor5/src/ui';import _0x525aac from'./changesnavigationview';import _0x54982a from'./../../revisionviewer';import _0x2393ca from'./revisionviewerloadingoverlay';import{getTranslation as _0x45d8d2}from'../../utils/common-translations';import _0x3418ff from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class m extends _0x5b4ed3{static get[_0x54bb('0x14')](){return _0x54bb('0x4');}static get['requires'](){return[_0x54982a,_0x2393ca];}['init'](){const _0x255bb0=this[_0x54bb('0x9')],_0x3024b4=_0x255bb0[_0x54bb('0x17')][_0x54bb('0x3')](_0x54982a),_0x228841=_0x255bb0[_0x54bb('0x17')][_0x54bb('0x3')](_0x2393ca);_0x255bb0['ui'][_0x54bb('0x1a')][_0x54bb('0x1e')](_0x54bb('0xb'),_0x4510d5=>{const _0x14922e=new _0x17f636(_0x4510d5);return _0x14922e[_0x54bb('0x6')]({'label':_0x45d8d2(_0x4510d5,_0x54bb('0x16')),'icon':_0x3418ff,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this[_0x54bb('0xd')](_0x14922e,_0x54bb('0xf'),()=>{_0x255bb0[_0x54bb('0x1')][_0x54bb('0x3')](_0x54bb('0x1c'))[_0x54bb('0x12')]();}),_0x14922e;}),_0x255bb0['ui']['componentFactory'][_0x54bb('0x1e')](_0x54bb('0x11'),_0x40c858=>{const _0x15293c=new _0x17f636(_0x40c858);return _0x15293c[_0x54bb('0x6')]({'label':_0x45d8d2(_0x40c858,_0x54bb('0xc')),'withText':!0x0,'tooltip':!0x0}),_0x15293c['bind'](_0x54bb('0x5'))['to'](_0x255bb0[_0x54bb('0xe')][_0x54bb('0x3')](_0x54bb('0x11'))),this[_0x54bb('0xd')](_0x15293c,'execute',()=>_0x255bb0[_0x54bb('0xf')]('restoreRevision')),_0x15293c;}),_0x255bb0['ui'][_0x54bb('0x1a')][_0x54bb('0x1e')](_0x54bb('0x0'),_0x142129=>{const _0x48220c=new _0x525aac(_0x142129),_0x6a440=_0x255bb0[_0x54bb('0xe')][_0x54bb('0x3')](_0x54bb('0x18')),_0x36be3d=_0x255bb0[_0x54bb('0xe')]['get']('showNextChange');return _0x48220c[_0x54bb('0x15')](_0x54bb('0x2'))['to'](_0x6a440,_0x54bb('0x5')),_0x48220c[_0x54bb('0x15')](_0x54bb('0x1b'))['to'](_0x36be3d,_0x54bb('0x5')),_0x48220c['bind'](_0x54bb('0x19'),'currentChangeNumber',_0x54bb('0x7'),_0x54bb('0x1d'))['to'](_0x3024b4),this[_0x54bb('0xd')](_0x48220c,_0x54bb('0xf'),(_0xecf949,_0x51be44)=>{_0x255bb0['execute'](_0x54bb('0x10')===_0x51be44?'showNextChange':_0x54bb('0x18'));}),_0x48220c;}),_0x228841[_0x54bb('0x13')](),_0x3024b4['on'](_0x54bb('0x8'),(_0x5f36e3,_0xefa86c,_0x10e5e6)=>{_0x10e5e6?_0x228841[_0x54bb('0xa')]():_0x228841['show']();});}}
23
+ const _0x3090=['pluginName','show','restoreRevision','execute','showPreviousChange','bind','numberOfChanges','Restore\x20this\x20revision','componentFactory','init','isEnabled','hide','plugins','isBackwardNavigationEnabled','change:isReady','Back\x20to\x20editing','RevisionViewerUI','editor','showNextChange','ck-revision-history-ui__back-to-editing','changesNavigation','requires','commands','listenTo','exitToEditing','closeRevisionViewerCallback','isReady','add','currentChangeNumber','get'];(function(_0x3daeb6,_0x30908e){const _0x1aaa90=function(_0x3fb784){while(--_0x3fb784){_0x3daeb6['push'](_0x3daeb6['shift']());}};_0x1aaa90(++_0x30908e);}(_0x3090,0x167));const _0x1aaa=function(_0x3daeb6,_0x30908e){_0x3daeb6=_0x3daeb6-0x0;let _0x1aaa90=_0x3090[_0x3daeb6];return _0x1aaa90;};import{Plugin as _0x5b66d6}from'ckeditor5/src/core';import{ButtonView as _0xf5b440}from'ckeditor5/src/ui';import _0x2610c6 from'./changesnavigationview';import _0x16d724 from'./../../revisionviewer';import _0xbf248e from'./revisionviewerloadingoverlay';import{getTranslation as _0x5e43cd}from'../../utils/common-translations';import _0x549d74 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x5b66d6{static get[_0x1aaa('0x1')](){return _0x1aaa('0x11');}static get[_0x1aaa('0x16')](){return[_0x16d724,_0xbf248e];}[_0x1aaa('0xa')](){const _0x264ad2=this[_0x1aaa('0x12')],_0x3abb19=_0x264ad2['plugins'][_0x1aaa('0x0')](_0x16d724),_0x378a9d=_0x264ad2[_0x1aaa('0xd')][_0x1aaa('0x0')](_0xbf248e);_0x264ad2['ui'][_0x1aaa('0x9')][_0x1aaa('0x1c')](_0x1aaa('0x19'),_0x537ad5=>{const _0x508119=new _0xf5b440(_0x537ad5);return _0x508119['set']({'label':_0x5e43cd(_0x537ad5,_0x1aaa('0x10')),'icon':_0x549d74,'withText':!0x0,'tooltip':!0x0,'class':_0x1aaa('0x14')}),this[_0x1aaa('0x18')](_0x508119,_0x1aaa('0x4'),()=>{_0x264ad2['config'][_0x1aaa('0x0')]('revisionHistory')[_0x1aaa('0x1a')]();}),_0x508119;}),_0x264ad2['ui']['componentFactory'][_0x1aaa('0x1c')](_0x1aaa('0x3'),_0x23d1ba=>{const _0x5b09b5=new _0xf5b440(_0x23d1ba);return _0x5b09b5['set']({'label':_0x5e43cd(_0x23d1ba,_0x1aaa('0x8')),'withText':!0x0,'tooltip':!0x0}),_0x5b09b5[_0x1aaa('0x6')](_0x1aaa('0xb'))['to'](_0x264ad2[_0x1aaa('0x17')][_0x1aaa('0x0')](_0x1aaa('0x3'))),this[_0x1aaa('0x18')](_0x5b09b5,_0x1aaa('0x4'),()=>_0x264ad2[_0x1aaa('0x4')](_0x1aaa('0x3'))),_0x5b09b5;}),_0x264ad2['ui']['componentFactory'][_0x1aaa('0x1c')](_0x1aaa('0x15'),_0x589113=>{const _0x5a4e5e=new _0x2610c6(_0x589113),_0x1d8674=_0x264ad2['commands'][_0x1aaa('0x0')](_0x1aaa('0x5')),_0xd4776a=_0x264ad2[_0x1aaa('0x17')][_0x1aaa('0x0')](_0x1aaa('0x13'));return _0x5a4e5e[_0x1aaa('0x6')](_0x1aaa('0xe'))['to'](_0x1d8674,_0x1aaa('0xb')),_0x5a4e5e[_0x1aaa('0x6')]('isForwardNavigationEnabled')['to'](_0xd4776a,_0x1aaa('0xb')),_0x5a4e5e[_0x1aaa('0x6')](_0x1aaa('0x1b'),_0x1aaa('0x1d'),_0x1aaa('0x7'),'isNavigationMode')['to'](_0x3abb19),this[_0x1aaa('0x18')](_0x5a4e5e,_0x1aaa('0x4'),(_0x28f098,_0x2a16c5)=>{_0x264ad2[_0x1aaa('0x4')]('forward'===_0x2a16c5?_0x1aaa('0x13'):_0x1aaa('0x5'));}),_0x5a4e5e;}),_0x378a9d[_0x1aaa('0x2')](),_0x3abb19['on'](_0x1aaa('0xf'),(_0x3e0f2f,_0xd4a612,_0x6018ea)=>{_0x6018ea?_0x378a9d[_0x1aaa('0xc')]():_0x378a9d[_0x1aaa('0x2')]();});}}
@@ -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(_0x1d6491,_0x3cfb21,_0x3dba83){const t=_0x1d6491['t'];switch(_0x3cfb21){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'},_0x3dba83);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3dba83);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(_0x100f0c,_0x7e2396,_0x1d7ec7){const t=_0x100f0c['t'];switch(_0x7e2396){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'},_0x1d7ec7);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1d7ec7);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'});}}