@ckeditor/ckeditor5-revision-history 32.0.0 → 34.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +5 -2
  3. package/build/revision-history.js +5 -0
  4. package/build/translations/af.js +1 -0
  5. package/build/translations/az.js +1 -0
  6. package/build/translations/bs.js +1 -0
  7. package/build/translations/cs.js +1 -0
  8. package/build/translations/da.js +1 -0
  9. package/build/translations/de-ch.js +1 -0
  10. package/build/translations/de.js +1 -0
  11. package/build/translations/el.js +1 -0
  12. package/build/translations/en-au.js +1 -0
  13. package/build/translations/en-gb.js +1 -0
  14. package/build/translations/es.js +1 -0
  15. package/build/translations/et.js +1 -0
  16. package/build/translations/fa.js +1 -0
  17. package/build/translations/fr.js +1 -0
  18. package/build/translations/gl.js +1 -0
  19. package/build/translations/he.js +1 -0
  20. package/build/translations/hi.js +1 -0
  21. package/build/translations/hr.js +1 -0
  22. package/build/translations/hu.js +1 -0
  23. package/build/translations/id.js +1 -0
  24. package/build/translations/it.js +1 -0
  25. package/build/translations/ja.js +1 -0
  26. package/build/translations/jv.js +1 -0
  27. package/build/translations/ko.js +1 -0
  28. package/build/translations/ku.js +1 -0
  29. package/build/translations/lv.js +1 -0
  30. package/build/translations/ne.js +1 -0
  31. package/build/translations/nl.js +1 -0
  32. package/build/translations/no.js +1 -0
  33. package/build/translations/pl.js +1 -0
  34. package/build/translations/pt-br.js +1 -0
  35. package/build/translations/ro.js +1 -0
  36. package/build/translations/ru.js +1 -0
  37. package/build/translations/sk.js +1 -0
  38. package/build/translations/sr-latn.js +1 -0
  39. package/build/translations/sr.js +1 -0
  40. package/build/translations/tk.js +1 -0
  41. package/build/translations/tr.js +1 -0
  42. package/build/translations/ug.js +1 -0
  43. package/build/translations/uk.js +1 -0
  44. package/build/translations/ur.js +1 -0
  45. package/build/translations/vi.js +1 -0
  46. package/build/translations/zh-cn.js +1 -0
  47. package/build/translations/zh.js +1 -0
  48. package/lang/translations/af.po +123 -0
  49. package/lang/translations/cs.po +27 -27
  50. package/lang/translations/de.po +21 -21
  51. package/lang/translations/el.po +123 -0
  52. package/lang/translations/en-au.po +25 -25
  53. package/lang/translations/es.po +24 -24
  54. package/lang/translations/fr.po +2 -2
  55. package/lang/translations/gl.po +24 -24
  56. package/lang/translations/hr.po +25 -25
  57. package/lang/translations/hu.po +6 -6
  58. package/lang/translations/id.po +10 -10
  59. package/lang/translations/it.po +24 -24
  60. package/lang/translations/jv.po +122 -0
  61. package/lang/translations/lv.po +27 -27
  62. package/lang/translations/nl.po +21 -21
  63. package/lang/translations/pl.po +21 -21
  64. package/lang/translations/pt-br.po +24 -24
  65. package/lang/translations/ro.po +19 -19
  66. package/lang/translations/sk.po +27 -27
  67. package/lang/translations/sr-latn.po +22 -22
  68. package/lang/translations/sr.po +22 -22
  69. package/lang/translations/tr.po +18 -18
  70. package/lang/translations/ur.po +123 -0
  71. package/lang/translations/zh-cn.po +24 -24
  72. package/lang/translations/zh.po +1 -1
  73. package/package.json +8 -11
  74. package/src/changeitem.js +1 -1
  75. package/src/editor/revisionviewereditor.js +23 -0
  76. package/src/editor/revisionviewereditorui.js +23 -0
  77. package/src/editor/revisionviewereditoruiview.js +23 -0
  78. package/src/index.js +23 -0
  79. package/src/revision.js +1 -1
  80. package/src/revisiondiff.js +1 -1
  81. package/src/revisionhistory.js +1 -1
  82. package/src/revisionsrepository.js +1 -1
  83. package/src/revisiontracker.js +1 -1
  84. package/src/revisionviewer.js +1 -1
  85. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  86. package/src/ui/revision/revisionauthorview.js +1 -1
  87. package/src/ui/revision/revisionnameview.js +1 -1
  88. package/src/ui/revision/revisionview.js +1 -1
  89. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  90. package/src/ui/revision/subrevisionview.js +1 -1
  91. package/src/ui/revision/utils.js +1 -1
  92. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  93. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  94. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  95. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  96. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  97. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  98. package/src/ui/revisionssidebar/utils.js +1 -1
  99. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  100. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  101. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  102. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  103. package/src/utils/common-translations.js +23 -0
  104. package/theme/revisionviewer.css +0 -6
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{View as _0x5a6906,IconView as _0x2145cf}from'ckeditor5/src/ui';import _0x581fae from'../../../theme/icons/user.svg';import'../../../theme/revision/revisionauthor.css';export default class ai extends _0x5a6906{constructor(_0x3a3859,_0x1f5b3d,_0x267bcd){super(_0x3a3859);const t=_0x3a3859['t'],_0x1832e4=new _0x2145cf(_0x3a3859);_0x1832e4['set']({'content':_0x581fae,'viewBox':'0\x200\x2011\x2010'});const _0x27e5dd=['ck','ck-revision-history-sidebar__revision-author'];_0x267bcd&&_0x27e5dd['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4cb0d9=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':t(_0x267bcd?'Revision\x20creator':'Revision\x20author')},'children':[_0x1832e4,_0x1f5b3d['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x27e5dd},'children':_0x4cb0d9});}}
23
+ const _0x131f=['ck-revision-history-sidebar__revision-author__name','setTemplate','0\x200\x2011\x2010','push','span','Revision\x20author','ck-revision-history-sidebar__revision-author','name'];(function(_0x16888b,_0x131fe9){const _0x59f1a8=function(_0x59147e){while(--_0x59147e){_0x16888b['push'](_0x16888b['shift']());}};_0x59f1a8(++_0x131fe9);}(_0x131f,0xc2));const _0x59f1=function(_0x16888b,_0x131fe9){_0x16888b=_0x16888b-0x0;let _0x59f1a8=_0x131f[_0x16888b];return _0x59f1a8;};import{View as _0x32c4d5,IconView as _0x20ac50}from'ckeditor5/src/ui';import{getTranslation as _0xa8cb9c}from'../../utils/common-translations';import _0xd1b324 from'../../../theme/icons/user.svg';import'../../../theme/revision/revisionauthor.css';export default class ti extends _0x32c4d5{constructor(_0x4bfc2f,_0x372a36,_0x5e9575){super(_0x4bfc2f);const _0x5d9974=new _0x20ac50(_0x4bfc2f);_0x5d9974['set']({'content':_0xd1b324,'viewBox':_0x59f1('0x0')});const _0x97212c=['ck',_0x59f1('0x4')];_0x5e9575&&_0x97212c[_0x59f1('0x1')]('ck-revision-history-sidebar__revision-author_creator');const _0x25b408=[{'tag':_0x59f1('0x2'),'attributes':{'class':['ck',_0x59f1('0x6')],'title':_0xa8cb9c(_0x4bfc2f,_0x5e9575?'Revision\x20creator':_0x59f1('0x3'))},'children':[_0x5d9974,_0x372a36[_0x59f1('0x5')]]}];this[_0x59f1('0x7')]({'tag':'li','attributes':{'class':_0x97212c},'children':_0x25b408});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{LabeledFieldView as _0x441f93}from'ckeditor5/src/ui';import'../../../theme/revision/revisionname.css';export default class ts extends _0x441f93{constructor(..._0x15450d){super(..._0x15450d);const t=this['t'];this['set']({'label':t('Revision\x20name')}),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
23
+ var _0x1b26=['span','set','ck-revision-history-sidebar__revision-name','extendTemplate','Revision\x20name'];(function(_0x2c119a,_0x1b2607){var _0x5b74c9=function(_0x21f624){while(--_0x21f624){_0x2c119a['push'](_0x2c119a['shift']());}};_0x5b74c9(++_0x1b2607);}(_0x1b26,0x11d));var _0x5b74=function(_0x2c119a,_0x1b2607){_0x2c119a=_0x2c119a-0x0;var _0x5b74c9=_0x1b26[_0x2c119a];return _0x5b74c9;};import{LabeledFieldView as _0x1dd370}from'ckeditor5/src/ui';import{getTranslation as _0x2f3cfd}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class os extends _0x1dd370{constructor(_0xc92925,..._0x3bdefa){super(_0xc92925,..._0x3bdefa),this[_0x5b74('0x1')]({'label':_0x2f3cfd(_0xc92925,_0x5b74('0x4'))}),this[_0x5b74('0x3')]({'tag':_0x5b74('0x0'),'attributes':{'class':[_0x5b74('0x2')]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2788=['ck-revision-history-sidebar__revision-wrapper_confirmation_visible','isActionsDropdownOpen','revisionNameView','ck-reset','value','from','isEnabled','fieldView','srcElement','_revision','isReady','_createdAtFormatted','ck-revision-history-sidebar__revision-wrapper','ck-revision-history-sidebar__revision_selected','render','deselect','placeholder','change','div','bindTemplate','setName','select','createdAt','isConfirm','fire','ck-revision-history-sidebar__revision__controls-wrapper','uiLanguage','map','ck-revision-history-sidebar__revision','ck-disabled','isSelected','bind','unshift','listenTo','setTemplate','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__revision-authors','span','highlight','isHighlighted','element','.ck-thread__remove-confirm','name','length','creator','revisionActionsView','set','extendTemplate','filter'];(function(_0x982866,_0x27882f){const _0x4c2deb=function(_0x4f4bd1){while(--_0x4f4bd1){_0x982866['push'](_0x982866['shift']());}};_0x4c2deb(++_0x27882f);}(_0x2788,0x8b));const _0x4c2d=function(_0x982866,_0x27882f){_0x982866=_0x982866-0x0;let _0x4c2deb=_0x2788[_0x982866];return _0x4c2deb;};import _0xd4afc8 from'./revisionnameview';import _0x126e46 from'./revisionauthorview';import{View as _0x12f744,createLabeledInputText as _0x4a2c01}from'ckeditor5/src/ui';import{dateToPrettyFormat as _0x44504f}from'./utils';import{createActionsDropdownView as _0x5418ba}from'./createrevisionactionsdropdown';import _0x28b2f6 from'@ckeditor/ckeditor5-comments/src/comments/ui/view/confirmmixin';import{mix as _0x4222c6}from'ckeditor5/src/utils';import'../../../theme/revision/revision.css';export default class ri extends _0x12f744{constructor(_0x3ed1e0,_0x364fa3,_0x505b39){super(_0x3ed1e0);const _0x5c305a=this[_0x4c2d('0x1b')],_0x440084=function(_0x5a30b8,_0x142860){const _0x40b827=Array[_0x4c2d('0xd')](_0x142860['authors'])[_0x4c2d('0x7')](_0x2d0ac1=>_0x2d0ac1!=_0x142860[_0x4c2d('0x3')]);return _0x142860[_0x4c2d('0x3')]&&_0x40b827[_0x4c2d('0x28')](_0x142860[_0x4c2d('0x3')]),_0x40b827[_0x4c2d('0x23')](_0x2b3fa4=>new _0x126e46(_0x5a30b8,_0x2b3fa4,_0x2b3fa4==_0x142860['creator']));}(_0x3ed1e0,_0x364fa3);this[_0x4c2d('0x11')]=_0x364fa3,this['id']=_0x364fa3['id'],this[_0x4c2d('0x27')]('name',_0x4c2d('0x1e'))['to'](_0x364fa3),this[_0x4c2d('0x5')](_0x4c2d('0x26'),!0x1),this['set']('isHighlighted',!0x1),this[_0x4c2d('0x5')](_0x4c2d('0x9'),!0x1),this['set'](_0x4c2d('0x12'),!0x1),this[_0x4c2d('0x27')](_0x4c2d('0x13'))['to'](this,_0x4c2d('0x1e'),_0x5d5665=>_0x5d5665?_0x44504f(_0x3ed1e0[_0x4c2d('0x22')],_0x5d5665):null),this[_0x4c2d('0x5')](_0x4c2d('0xe'),!0x1),this['revisionNameView']=new _0xd4afc8(_0x3ed1e0,_0x4a2c01),this[_0x4c2d('0xa')][_0x4c2d('0xf')][_0x4c2d('0x6')]({'attributes':{'maxlength':'220'}}),this[_0x4c2d('0xa')]['fieldView'][_0x4c2d('0x27')](_0x4c2d('0xc'),_0x4c2d('0x18'))['to'](this,_0x4c2d('0x1'),_0x4c2d('0x13')),this[_0x4c2d('0xa')][_0x4c2d('0x27')](_0x4c2d('0xe'))['to'](this,_0x4c2d('0x26'),this,'isEnabled',(_0x4f3092,_0xe1f48d)=>_0x4f3092&&_0xe1f48d),this['revisionActionsView']=_0x505b39&&_0x505b39[_0x4c2d('0x2')]?_0x5418ba(this,_0x505b39):'',this[_0x4c2d('0x4')][_0x4c2d('0x27')](_0x4c2d('0xe'))['to'](this),this[_0x4c2d('0x2a')]({'tag':'div','attributes':{'class':['ck',_0x4c2d('0xb'),_0x4c2d('0x14'),_0x5c305a['if'](_0x4c2d('0x1f'),_0x4c2d('0x8'))]},'children':[{'tag':_0x4c2d('0x1a'),'attributes':{'class':['ck',_0x4c2d('0xb'),_0x4c2d('0x24'),_0x5c305a['if'](_0x4c2d('0xe'),_0x4c2d('0x25'),_0x34f8be=>!_0x34f8be),_0x5c305a['if'](_0x4c2d('0x26'),_0x4c2d('0x15')),_0x5c305a['if'](_0x4c2d('0x2f'),'ck-revision-history-sidebar__revision_highlighted'),_0x5c305a['if'](_0x4c2d('0x9'),'ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this[_0x4c2d('0xa')],{'tag':_0x4c2d('0x2d'),'attributes':{'class':['ck',_0x4c2d('0x2b')]},'children':[{'text':_0x5c305a['to'](_0x4c2d('0x13'))}]},{'tag':'div','attributes':{'class':['ck',_0x4c2d('0x21')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x4c2d('0x2c')]},'children':_0x440084}]},this[_0x4c2d('0x4')]],'on':{'click':_0x5c305a['to'](_0xc4cde7=>{_0xc4cde7[_0x4c2d('0x10')]['closest'](_0x4c2d('0x0'))||this[_0x4c2d('0x12')]&&this['isEnabled']&&this[_0x4c2d('0x20')](_0x4c2d('0x1d'),{'id':this['id']});})}}]});}[_0x4c2d('0x16')](){super['render']();const _0x139055=this[_0x4c2d('0xa')][_0x4c2d('0xf')][_0x4c2d('0x30')];this[_0x4c2d('0x29')](_0x139055,_0x4c2d('0x19'),()=>{this['fire'](_0x4c2d('0x1c'),{'id':this['id'],'name':_0x139055[_0x4c2d('0xc')]});});}[_0x4c2d('0x1d')](){this['isSelected']=!0x0;}[_0x4c2d('0x17')](){this[_0x4c2d('0x26')]=!0x1;}[_0x4c2d('0x2e')](){this[_0x4c2d('0x2f')]=!0x0;}['unhighlight'](){this[_0x4c2d('0x2f')]=!0x1;}}_0x4222c6(ri,_0x28b2f6);
23
+ const _0x5798=['creator','.ck-thread__remove-confirm','filter','ck-revision-history-sidebar__revision-wrapper','srcElement','uiLanguage','_revision','fieldView','createdAt','ck-revision-history-sidebar__revision-authors','isSelected','from','render','change','ck-revision-history-sidebar__revision__date','placeholder','isHighlighted','_createdAtFormatted','isEnabled','ck-revision-history-sidebar__revision__controls-wrapper','bindTemplate','isActionsDropdownOpen','ck-disabled','div','unshift','fire','setTemplate','set','span','select','revisionActionsView','ck-revision-history-sidebar__actions_dropdown_open','ck-revision-history-sidebar__revision','isReady','220','extendTemplate','length','value','element','ck-reset','highlight','bind','name','revisionNameView','map'];(function(_0x232a0c,_0x579820){const _0x630e0f=function(_0x446704){while(--_0x446704){_0x232a0c['push'](_0x232a0c['shift']());}};_0x630e0f(++_0x579820);}(_0x5798,0xf7));const _0x630e=function(_0x232a0c,_0x579820){_0x232a0c=_0x232a0c-0x0;let _0x630e0f=_0x5798[_0x232a0c];return _0x630e0f;};import{View as _0x11cca2,createLabeledInputText as _0xb48ca8}from'ckeditor5/src/ui';import{mix as _0x396efa}from'ckeditor5/src/utils';import{ConfirmMixin as _0x1f157b}from'ckeditor5-collaboration/src/collaboration-core';import _0x21b20d from'./revisionnameview';import _0x7089d9 from'./revisionauthorview';import{dateToPrettyFormat as _0x338c9e}from'./utils';import{createActionsDropdownView as _0x57c40b}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ci extends _0x11cca2{constructor(_0x457b0d,_0x1e355d,_0x500b2e){super(_0x457b0d);const _0x400fb3=this[_0x630e('0x2b')],_0x2ae210=function(_0x144712,_0x38fbd1){const _0x47fd7a=Array[_0x630e('0x22')](_0x38fbd1['authors'])[_0x630e('0x19')](_0x45a9a3=>_0x45a9a3!=_0x38fbd1[_0x630e('0x17')]);return _0x38fbd1[_0x630e('0x17')]&&_0x47fd7a[_0x630e('0x2')](_0x38fbd1[_0x630e('0x17')]),_0x47fd7a[_0x630e('0x16')](_0x38ea48=>new _0x7089d9(_0x144712,_0x38ea48,_0x38ea48==_0x38fbd1[_0x630e('0x17')]));}(_0x457b0d,_0x1e355d);this[_0x630e('0x1d')]=_0x1e355d,this['id']=_0x1e355d['id'],this['bind'](_0x630e('0x14'),_0x630e('0x1f'))['to'](_0x1e355d),this[_0x630e('0x5')](_0x630e('0x21'),!0x1),this[_0x630e('0x5')](_0x630e('0x27'),!0x1),this[_0x630e('0x5')](_0x630e('0x2c'),!0x1),this[_0x630e('0x5')](_0x630e('0xb'),!0x1),this['bind'](_0x630e('0x28'))['to'](this,'createdAt',_0x4e4001=>_0x4e4001?_0x338c9e(_0x457b0d[_0x630e('0x1c')],_0x4e4001):null),this['set']('isEnabled',!0x1),this[_0x630e('0x15')]=new _0x21b20d(_0x457b0d,_0xb48ca8),this['revisionNameView'][_0x630e('0x1e')][_0x630e('0xd')]({'attributes':{'maxlength':_0x630e('0xc')}}),this['revisionNameView']['fieldView'][_0x630e('0x13')]('value',_0x630e('0x26'))['to'](this,'name',_0x630e('0x28')),this[_0x630e('0x15')]['bind'](_0x630e('0x29'))['to'](this,_0x630e('0x21'),this,'isEnabled',(_0x2209a7,_0x559169)=>_0x2209a7&&_0x559169),this['revisionActionsView']=_0x500b2e&&_0x500b2e[_0x630e('0xe')]?_0x57c40b(this,_0x500b2e):'',this[_0x630e('0x8')]['bind'](_0x630e('0x29'))['to'](this),this[_0x630e('0x4')]({'tag':_0x630e('0x1'),'attributes':{'class':['ck',_0x630e('0x11'),_0x630e('0x1a'),_0x400fb3['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset',_0x630e('0xa'),_0x400fb3['if']('isEnabled',_0x630e('0x0'),_0x313d91=>!_0x313d91),_0x400fb3['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x400fb3['if'](_0x630e('0x27'),'ck-revision-history-sidebar__revision_highlighted'),_0x400fb3['if']('isActionsDropdownOpen',_0x630e('0x9'))]},'children':[this[_0x630e('0x15')],{'tag':_0x630e('0x6'),'attributes':{'class':['ck',_0x630e('0x25')]},'children':[{'text':_0x400fb3['to'](_0x630e('0x28'))}]},{'tag':'div','attributes':{'class':['ck',_0x630e('0x2a')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x630e('0x20')]},'children':_0x2ae210}]},this[_0x630e('0x8')]],'on':{'click':_0x400fb3['to'](_0x1c2a52=>{_0x1c2a52[_0x630e('0x1b')]['closest'](_0x630e('0x18'))||this[_0x630e('0xb')]&&this[_0x630e('0x29')]&&this['fire'](_0x630e('0x7'),{'id':this['id']});})}}]});}[_0x630e('0x23')](){super[_0x630e('0x23')]();const _0x524f90=this['revisionNameView'][_0x630e('0x1e')][_0x630e('0x10')];this['listenTo'](_0x524f90,_0x630e('0x24'),()=>{this[_0x630e('0x3')]('setName',{'id':this['id'],'name':_0x524f90[_0x630e('0xf')]});});}[_0x630e('0x7')](){this[_0x630e('0x21')]=!0x0;}['deselect'](){this[_0x630e('0x21')]=!0x1;}[_0x630e('0x12')](){this[_0x630e('0x27')]=!0x0;}['unhighlight'](){this[_0x630e('0x27')]=!0x1;}}_0x396efa(ci,_0x1f157b);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x57e3=['_isCollapsed','isVisible','click','setTemplate','ck-revision-history-sidebar__subrevision-collapser__inner','set','toggle','false','span','bindTemplate','ck-hidden'];(function(_0x57b4e5,_0x57e3e4){const _0x39ceda=function(_0x40eeb2){while(--_0x40eeb2){_0x57b4e5['push'](_0x57b4e5['shift']());}};_0x39ceda(++_0x57e3e4);}(_0x57e3,0x1d4));const _0x39ce=function(_0x57b4e5,_0x57e3e4){_0x57b4e5=_0x57b4e5-0x0;let _0x39ceda=_0x57e3[_0x57b4e5];return _0x39ceda;};import{View as _0x5444e6}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class rs extends _0x5444e6{constructor(_0x1cbf84){super(_0x1cbf84);const _0x245f85=this[_0x39ce('0x3')];this[_0x39ce('0xa')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x39ce('0x8')]({'tag':_0x39ce('0x2'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser',_0x245f85['if'](_0x39ce('0x6'),_0x39ce('0x4'),_0x1a6853=>!_0x1a6853),_0x245f85['if'](_0x39ce('0x5'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':'button','aria-pressed':_0x245f85['to'](_0x39ce('0x5'),_0x1951fa=>_0x1951fa?_0x39ce('0x1'):'true')},'children':[{'tag':_0x39ce('0x2'),'attributes':{'class':['ck',_0x39ce('0x9')]}}],'on':{'click':_0x245f85['to'](_0x39ce('0x7'))}});}[_0x39ce('0x0')](){this[_0x39ce('0x5')]=!this['_isCollapsed'];}}
23
+ const _0x52e1=['toggle','set','bindTemplate','ck-revision-history-sidebar__subrevision-collapser','_isCollapsed','span','ck-hidden','button','click','isVisible'];(function(_0x2034f2,_0x52e1ff){const _0x4ffc5c=function(_0x46720a){while(--_0x46720a){_0x2034f2['push'](_0x2034f2['shift']());}};_0x4ffc5c(++_0x52e1ff);}(_0x52e1,0xeb));const _0x4ffc=function(_0x2034f2,_0x52e1ff){_0x2034f2=_0x2034f2-0x0;let _0x4ffc5c=_0x52e1[_0x2034f2];return _0x4ffc5c;};import{View as _0x1d493f}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class ls extends _0x1d493f{constructor(_0x103f6d){super(_0x103f6d);const _0x2e6bff=this[_0x4ffc('0x7')];this[_0x4ffc('0x6')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':'span','attributes':{'class':['ck',_0x4ffc('0x8'),_0x2e6bff['if'](_0x4ffc('0x4'),_0x4ffc('0x1'),_0x1492cc=>!_0x1492cc),_0x2e6bff['if']('_isCollapsed','ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x4ffc('0x2'),'aria-pressed':_0x2e6bff['to'](_0x4ffc('0x9'),_0x75453=>_0x75453?'false':'true')},'children':[{'tag':_0x4ffc('0x0'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x2e6bff['to'](_0x4ffc('0x3'))}});}[_0x4ffc('0x5')](){this[_0x4ffc('0x9')]=!this[_0x4ffc('0x9')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5304=['span','ck-revision-history-sidebar__revision','bind','ck-reset','createdAt','bindTemplate','ck-revision-history-sidebar__revision-authors','set','div','isSelected','_createdAtFormatted','ck-revision-history-sidebar__revision_selected','_parentRevisionId','setTemplate','select'];(function(_0x3fa593,_0x53044f){const _0x27d007=function(_0x2e9399){while(--_0x2e9399){_0x3fa593['push'](_0x3fa593['shift']());}};_0x27d007(++_0x53044f);}(_0x5304,0x16f));const _0x27d0=function(_0x3fa593,_0x53044f){_0x3fa593=_0x3fa593-0x0;let _0x27d007=_0x5304[_0x3fa593];return _0x27d007;};import{View as _0x50d5af}from'ckeditor5/src/ui';import _0x2bdf94 from'./revisionauthorview';import{dateToPrettyFormat as _0x1590a9}from'./utils';import'../../../theme/revision/subrevision.css';export default class ct extends _0x50d5af{constructor(_0x537998,_0x33a6a7,_0x3da4d3){super(_0x537998);const _0x163555=this[_0x27d0('0xd')];this['id']=_0x33a6a7['id'],this[_0x27d0('0xa')](_0x27d0('0xc'))['to'](_0x33a6a7),this[_0x27d0('0x0')](_0x27d0('0x2'),!0x1),this['bind'](_0x27d0('0x3'))['to'](this,_0x27d0('0xc'),_0x3d388b=>_0x3d388b?_0x1590a9(_0x537998['uiLanguage'],_0x3d388b):null),this[_0x27d0('0x5')]=_0x3da4d3,this[_0x27d0('0x6')]({'tag':_0x27d0('0x1'),'attributes':{'class':['ck',_0x27d0('0xb'),_0x27d0('0x9'),'ck-revision-history-sidebar__subrevision',_0x163555['if'](_0x27d0('0x2'),_0x27d0('0x4'))]},'children':[{'tag':_0x27d0('0x8'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x163555['to'](_0x27d0('0x3'))}]},{'tag':'ul','attributes':{'class':['ck',_0x27d0('0xe')]},'children':[new _0x2bdf94(_0x537998,_0x33a6a7['author'],!0x0)]}],'on':{'click':_0x163555['to'](this[_0x27d0('0x7')][_0x27d0('0xa')](this))}});}['select'](){this[_0x27d0('0x2')]=!0x0,this['fire'](_0x27d0('0x7'),{'parentId':this['_parentRevisionId']});}['deselect'](){this[_0x27d0('0x2')]=!0x1;}}
23
+ const _0x440a=['isSelected','bindTemplate','_parentRevisionId','fire','author','ck-revision-history-sidebar__revision_selected','setTemplate','_createdAtFormatted','span','ck-revision-history-sidebar__revision-authors','bind','createdAt','select','deselect','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__revision','div','uiLanguage'];(function(_0x105bb3,_0x440a79){const _0x4e82b5=function(_0x3cdf16){while(--_0x3cdf16){_0x105bb3['push'](_0x105bb3['shift']());}};_0x4e82b5(++_0x440a79);}(_0x440a,0xa8));const _0x4e82=function(_0x105bb3,_0x440a79){_0x105bb3=_0x105bb3-0x0;let _0x4e82b5=_0x440a[_0x105bb3];return _0x4e82b5;};import{View as _0xe57a43}from'ckeditor5/src/ui';import _0x1a4f48 from'./revisionauthorview';import{dateToPrettyFormat as _0x4dd172}from'./utils';import'../../../theme/revision/subrevision.css';export default class ct extends _0xe57a43{constructor(_0x4e75ea,_0x1e470e,_0x3755b4){super(_0x4e75ea);const _0xa86fc6=this[_0x4e82('0xd')];this['id']=_0x1e470e['id'],this[_0x4e82('0x4')](_0x4e82('0x5'))['to'](_0x1e470e),this['set'](_0x4e82('0xc'),!0x1),this[_0x4e82('0x4')](_0x4e82('0x1'))['to'](this,_0x4e82('0x5'),_0x527cea=>_0x527cea?_0x4dd172(_0x4e75ea[_0x4e82('0xb')],_0x527cea):null),this[_0x4e82('0xe')]=_0x3755b4,this[_0x4e82('0x0')]({'tag':_0x4e82('0xa'),'attributes':{'class':['ck','ck-reset',_0x4e82('0x9'),'ck-revision-history-sidebar__subrevision',_0xa86fc6['if']('isSelected',_0x4e82('0x11'))]},'children':[{'tag':_0x4e82('0x2'),'attributes':{'class':['ck',_0x4e82('0x8')]},'children':[{'text':_0xa86fc6['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x4e82('0x3')]},'children':[new _0x1a4f48(_0x4e75ea,_0x1e470e[_0x4e82('0x10')],!0x0)]}],'on':{'click':_0xa86fc6['to'](this[_0x4e82('0x6')]['bind'](this))}});}[_0x4e82('0x6')](){this[_0x4e82('0xc')]=!0x0,this[_0x4e82('0xf')](_0x4e82('0x6'),{'parentId':this[_0x4e82('0xe')]});}[_0x4e82('0x7')](){this['isSelected']=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4901=['toLocaleTimeString','numeric'];(function(_0xd3fb13,_0x4901c2){var _0x31f4b3=function(_0x579041){while(--_0x579041){_0xd3fb13['push'](_0xd3fb13['shift']());}};_0x31f4b3(++_0x4901c2);}(_0x4901,0x9b));var _0x31f4=function(_0xd3fb13,_0x4901c2){_0xd3fb13=_0xd3fb13-0x0;var _0x31f4b3=_0x4901[_0xd3fb13];return _0x31f4b3;};export function dateToPrettyFormat(_0x1ab5e4,_0x115e68){return _0x115e68['toLocaleDateString'](_0x1ab5e4,{'month':'long','day':_0x31f4('0x0')})+',\x20'+_0x115e68[_0x31f4('0x1')](_0x1ab5e4,{'hour':_0x31f4('0x0'),'minute':_0x31f4('0x0')});}
23
+ var _0x1c0f=['long','numeric','toLocaleDateString'];(function(_0x483a0d,_0x1c0fe8){var _0x2302de=function(_0x5ec5a3){while(--_0x5ec5a3){_0x483a0d['push'](_0x483a0d['shift']());}};_0x2302de(++_0x1c0fe8);}(_0x1c0f,0x193));var _0x2302=function(_0x483a0d,_0x1c0fe8){_0x483a0d=_0x483a0d-0x0;var _0x2302de=_0x1c0f[_0x483a0d];return _0x2302de;};export function dateToPrettyFormat(_0x2de536,_0x3f4882){return _0x3f4882[_0x2302('0x1')](_0x2de536,{'month':_0x2302('0x2'),'day':'numeric'})+',\x20'+_0x3f4882['toLocaleTimeString'](_0x2de536,{'hour':_0x2302('0x0'),'minute':'numeric'});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{View as _0x584e7a,ViewCollection as _0x1cac4f,ButtonView as _0x1378f3,LabeledFieldView as _0x2d652f,createLabeledInputText as _0x1549b8,submitHandler as _0xe2a02c,FocusCycler as _0x23dff8,injectCssTransitionDisabler as tt}from'ckeditor5/src/ui';import{FocusTracker as st,KeystrokeHandler as it}from'ckeditor5/src/utils';import et from'@ckeditor/ckeditor5-core/theme/icons/check.svg';import rt 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 ot extends _0x584e7a{constructor(_0x536dbc){super(_0x536dbc);const t=_0x536dbc['t'];this['focusTracker']=new st(),this['keystrokes']=new it(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](),this['saveButtonView']=this['_createButton'](t('Save'),et,'ck-button-save'),this['saveButtonView']['type']='submit',this['cancelButtonView']=this['_createButton'](t('Cancel'),rt,'ck-button-cancel','cancel'),this['_focusables']=new _0x1cac4f(),this['_focusCycler']=new _0x23dff8({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView'],this['saveButtonView'],this['cancelButtonView']]}),tt(this);}['render'](){super['render'](),_0xe2a02c({'view':this}),([this['revisionNameInputView'],this['saveButtonView'],this['cancelButtonView']]['forEach'](_0xc37c26=>{this['_focusables']['add'](_0xc37c26),this['focusTracker']['add'](_0xc37c26['element']);}),this['keystrokes']['listenTo'](this['element']));const _0x155688=_0x2c9c39=>_0x2c9c39['stopPropagation']();this['keystrokes']['set']('arrowright',_0x155688),this['keystrokes']['set']('arrowleft',_0x155688),this['keystrokes']['set']('arrowup',_0x155688),this['keystrokes']['set']('arrowdown',_0x155688),this['listenTo'](this['revisionNameInputView']['element'],'selectstart',(_0x58af6f,_0x2980b3)=>{_0x2980b3['stopPropagation']();},{'priority':'high'});}['focus'](){this['_focusCycler']['focusFirst']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x18affa){this['revisionNameInputView']['fieldView']['element']['value']=_0x18affa['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='';}['_createRevisionNameInput'](){const t=this['locale']['t'],_0x251363=new _0x2d652f(this['locale'],_0x1549b8),_0x159a8e=_0x251363['fieldView'];return _0x159a8e['extendTemplate']({'attributes':{'maxlength':'220'}}),_0x251363['label']=t('Name\x20of\x20the\x20revision\x20(optional)'),_0x159a8e['on']('input',()=>{this['revisionNameInputValue']=_0x159a8e['element']['value']['trim']();}),_0x251363;}['_createButton'](_0x5e0fdb,_0x85beb,_0x49e66f,_0x27308c){const _0x366560=new _0x1378f3(this['locale']);return _0x366560['set']({'label':_0x5e0fdb,'icon':_0x85beb,'tooltip':!0x0}),_0x366560['extendTemplate']({'attributes':{'class':_0x49e66f}}),_0x27308c&&_0x366560['delegate']('execute')['to'](this,_0x27308c),_0x366560;}}
23
+ const _0x2764=['type','setTemplate','cancel','revisionNameInputValue','element','ck-revision-history-save-revision-form','shift\x20+\x20tab','arrowdown','Save','stopPropagation','focus','listenTo','trim','_createRevisionNameInput','delegate','set','fieldView','submit','selectstart','ck-button-save','high','_focusables','forEach','keystrokes','label','form','cancelButtonView','locale','focusFirst','render','ck-button-cancel','add','220','tab','revisionNameInputView','arrowright','input','focusTracker','extendTemplate','_createButton','value','reset','saveButtonView','_focusCycler'];(function(_0x111793,_0x276434){const _0x2dcaec=function(_0x3dfc03){while(--_0x3dfc03){_0x111793['push'](_0x111793['shift']());}};_0x2dcaec(++_0x276434);}(_0x2764,0xab));const _0x2dca=function(_0x111793,_0x276434){_0x111793=_0x111793-0x0;let _0x2dcaec=_0x2764[_0x111793];return _0x2dcaec;};import{ButtonView as _0x24959b,FocusCycler as _0x20b32a,LabeledFieldView as _0xcfc52a,View as _0x315c2a,ViewCollection as _0x5cf537,createLabeledInputText as _0x25293e,injectCssTransitionDisabler as _0x5a9b50,submitHandler as _0x42b489}from'ckeditor5/src/ui';import{FocusTracker as _0x5b7ec8,KeystrokeHandler as _0x14a04b}from'ckeditor5/src/utils';import{getTranslation as _0x51a603}from'../../utils/common-translations';import _0x2c8cd0 from'@ckeditor/ckeditor5-core/theme/icons/check.svg';import _0x1bb5e2 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 _0x315c2a{constructor(_0x279f38){super(_0x279f38),this[_0x2dca('0x2a')]=new _0x5b7ec8(),this[_0x2dca('0x1c')]=new _0x14a04b(),this[_0x2dca('0x14')](_0x2dca('0x8'),''),this[_0x2dca('0x27')]=this[_0x2dca('0x12')](),this['saveButtonView']=this['_createButton'](_0x51a603(_0x279f38,_0x2dca('0xd')),_0x2c8cd0,_0x2dca('0x18')),this['saveButtonView'][_0x2dca('0x5')]=_0x2dca('0x16'),this[_0x2dca('0x1f')]=this[_0x2dca('0x0')](_0x51a603(_0x279f38,'Cancel'),_0x1bb5e2,_0x2dca('0x23'),_0x2dca('0x7')),this[_0x2dca('0x1a')]=new _0x5cf537(),this['_focusCycler']=new _0x20b32a({'focusables':this[_0x2dca('0x1a')],'focusTracker':this[_0x2dca('0x2a')],'keystrokeHandler':this[_0x2dca('0x1c')],'actions':{'focusPrevious':_0x2dca('0xb'),'focusNext':_0x2dca('0x26')}}),this[_0x2dca('0x6')]({'tag':_0x2dca('0x1e'),'attributes':{'class':['ck',_0x2dca('0xa'),'ck-responsive-form'],'tabindex':'-1'},'children':[this[_0x2dca('0x27')],this[_0x2dca('0x3')],this[_0x2dca('0x1f')]]}),_0x5a9b50(this);}[_0x2dca('0x22')](){super[_0x2dca('0x22')](),_0x42b489({'view':this}),([this['revisionNameInputView'],this[_0x2dca('0x3')],this[_0x2dca('0x1f')]][_0x2dca('0x1b')](_0x14a442=>{this[_0x2dca('0x1a')][_0x2dca('0x24')](_0x14a442),this[_0x2dca('0x2a')][_0x2dca('0x24')](_0x14a442[_0x2dca('0x9')]);}),this[_0x2dca('0x1c')][_0x2dca('0x10')](this[_0x2dca('0x9')]));const _0x1bf1c0=_0x154a3c=>_0x154a3c[_0x2dca('0xe')]();this[_0x2dca('0x1c')]['set'](_0x2dca('0x28'),_0x1bf1c0),this[_0x2dca('0x1c')][_0x2dca('0x14')]('arrowleft',_0x1bf1c0),this[_0x2dca('0x1c')][_0x2dca('0x14')]('arrowup',_0x1bf1c0),this['keystrokes']['set'](_0x2dca('0xc'),_0x1bf1c0),this[_0x2dca('0x10')](this[_0x2dca('0x27')][_0x2dca('0x9')],_0x2dca('0x17'),(_0x3a615e,_0x58badc)=>{_0x58badc[_0x2dca('0xe')]();},{'priority':_0x2dca('0x19')});}[_0x2dca('0xf')](){this[_0x2dca('0x4')][_0x2dca('0x21')]();}get['revisionName'](){return this['revisionNameInputView'][_0x2dca('0x15')]['element'][_0x2dca('0x1')][_0x2dca('0x11')]();}set['revisionName'](_0x2e129a){this['revisionNameInputView'][_0x2dca('0x15')][_0x2dca('0x9')]['value']=_0x2e129a[_0x2dca('0x11')]();}[_0x2dca('0x2')](){this[_0x2dca('0x27')][_0x2dca('0x15')][_0x2dca('0x9')]['value']='';}['_createRevisionNameInput'](){const _0x3f4cc8=new _0xcfc52a(this[_0x2dca('0x20')],_0x25293e),_0x4ef45a=_0x3f4cc8['fieldView'];return _0x4ef45a[_0x2dca('0x2b')]({'attributes':{'maxlength':_0x2dca('0x25')}}),_0x3f4cc8[_0x2dca('0x1d')]=_0x51a603(this[_0x2dca('0x20')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x4ef45a['on'](_0x2dca('0x29'),()=>{this[_0x2dca('0x8')]=_0x4ef45a['element'][_0x2dca('0x1')]['trim']();}),_0x3f4cc8;}[_0x2dca('0x0')](_0x345d1d,_0x5c6fa8,_0xfa01d0,_0x458bde){const _0x3e0ce6=new _0x24959b(this['locale']);return _0x3e0ce6[_0x2dca('0x14')]({'label':_0x345d1d,'icon':_0x5c6fa8,'tooltip':!0x0}),_0x3e0ce6[_0x2dca('0x2b')]({'attributes':{'class':_0xfa01d0}}),_0x458bde&&_0x3e0ce6[_0x2dca('0x13')]('execute')['to'](this,_0x458bde),_0x3e0ce6;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x262bf4}from'ckeditor5/src/core';import{ListView as _0x386f61,ListItemView as _0x2df6db,ButtonView as _0x22188f,createDropdown as _0x445656}from'ckeditor5/src/ui';import _0xe1a78e from'../../revisiontracker';import ot from'./revisionhistorysaverevisionformview';import _0x5ecd6b from'../../../theme/icons/revision-history.svg';export default class l extends _0x262bf4{static get['pluginName'](){return'RevisionHistoryUI';}static get['requires'](){return[_0xe1a78e];}['init'](){const _0x1c5640=this['editor'],t=_0x1c5640['t'],_0x1bf492=_0x1c5640['plugins']['get']('RevisionTracker');_0x1c5640['ui']['componentFactory']['add']('revisionHistory',_0x31eca0=>{const _0x2acdbb=_0x445656(_0x31eca0),_0x401f91=_0x2acdbb['panelView']['children'],_0x348502=new _0x386f61(_0x31eca0),_0x922abf=new _0x2df6db(_0x31eca0),_0xe91fa7=new _0x22188f(_0x31eca0),_0x845341=new _0x2df6db(_0x31eca0),_0x56b0e4=new _0x22188f(_0x31eca0),_0x45d6ce=new ot(_0x31eca0);function _0x4a5dd9(){_0x401f91['length']&&_0x401f91['remove'](0x0),_0x401f91['add'](_0x348502);}function _0x540ab5(){_0x2acdbb['isOpen']=!0x1,_0x1c5640['editing']['view']['focus']();}return _0x2acdbb['bind']('isEnabled')['to'](_0x1bf492,'isReady',_0x1bf492,'isEnabled',_0x1c5640,'isReadOnly',(_0x4c8811,_0x2b8770,_0x3e9fc8)=>_0x4c8811&&_0x2b8770&&!_0x3e9fc8),_0x2acdbb['buttonView']['set']({'icon':_0x5ecd6b,'label':t('Revision\x20history'),'tooltip':!0x0}),_0xe91fa7['set']({'label':t('Save\x20current\x20revision'),'withText':!0x0}),_0xe91fa7['bind']('isEnabled')['to'](_0x1bf492,'isReady',_0x1bf492,'isEnabled',_0x1c5640,'isReadOnly',(_0x29b5e7,_0x47f3dc,_0x1cd559)=>_0x29b5e7&&_0x47f3dc&&!_0x1cd559),_0xe91fa7['on']('execute',()=>function(){_0x401f91['length']&&_0x401f91['remove'](0x0),(_0x45d6ce['reset'](),_0x401f91['add'](_0x45d6ce),_0x45d6ce['focus']());}()),_0x56b0e4['set']({'label':t('Open\x20revision\x20history'),'withText':!0x0}),_0x56b0e4['bind']('isEnabled')['to'](_0x1bf492,'isReady',_0x1c5640,'isReadOnly',(_0x22f363,_0x3407ec)=>_0x22f363&&!_0x3407ec),_0x56b0e4['on']('execute',()=>{_0x1c5640['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x540ab5();}),_0x922abf['children']['add'](_0xe91fa7),_0x845341['children']['add'](_0x56b0e4),_0x348502['items']['addMany']([_0x922abf,_0x845341]),_0x2acdbb['on']('change:isOpen',()=>_0x4a5dd9()),_0x45d6ce['saveButtonView']['bind']('isEnabled')['to'](_0x1bf492,'isReady',_0x1bf492,'isEnabled',_0x1c5640,'isReadOnly',(_0x2bba30,_0x178b85,_0x3bbc33)=>_0x2bba30&&_0x178b85&&!_0x3bbc33),_0x45d6ce['on']('submit',()=>(_0x1c5640['plugins']['get'](_0xe1a78e)['saveRevision']({'name':_0x45d6ce['revisionName']}),void _0x540ab5())),_0x45d6ce['on']('cancel',()=>_0x4a5dd9()),_0x45d6ce['render'](),_0x4a5dd9(),_0x2acdbb;});}}
23
+ const _0x4b59=['RevisionTracker','pluginName','Open\x20revision\x20history','buttonView','plugins','init','panelView','submit','cancel','remove','length','config','Revision\x20history','render','execute','set','isReadOnly','isReady','Save\x20current\x20revision','add','addMany','saveButtonView','children','revisionHistory','editing','bind','RevisionHistoryUI','isOpen','focus','isEnabled','saveRevision','get','reset','requires'];(function(_0x2db5d6,_0x4b59e9){const _0x339a9f=function(_0x1feab9){while(--_0x1feab9){_0x2db5d6['push'](_0x2db5d6['shift']());}};_0x339a9f(++_0x4b59e9);}(_0x4b59,0x124));const _0x339a=function(_0x2db5d6,_0x4b59e9){_0x2db5d6=_0x2db5d6-0x0;let _0x339a9f=_0x4b59[_0x2db5d6];return _0x339a9f;};import{Plugin as _0x3ac4a7}from'ckeditor5/src/core';import{ListView as _0xdfd444,ListItemView as _0x39f459,ButtonView as _0x2622e2,createDropdown as _0x5a3378}from'ckeditor5/src/ui';import _0x125a6f from'../../revisiontracker';import _0x2a9ac2 from'./revisionhistorysaverevisionformview';import _0x129150 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x201c09}from'../../utils/common-translations';export default class y extends _0x3ac4a7{static get[_0x339a('0xf')](){return _0x339a('0x6');}static get[_0x339a('0xd')](){return[_0x125a6f];}[_0x339a('0x13')](){const _0xc9c24c=this['editor'],_0x576593=_0xc9c24c['plugins'][_0x339a('0xb')](_0x339a('0xe'));_0xc9c24c['ui']['componentFactory'][_0x339a('0x21')](_0x339a('0x3'),_0x3936dc=>{const _0x1b4532=_0x5a3378(_0x3936dc),_0x301a8b=_0x1b4532[_0x339a('0x14')][_0x339a('0x2')],_0x15c651=new _0xdfd444(_0x3936dc),_0x4789ac=new _0x39f459(_0x3936dc),_0x57f3c3=new _0x2622e2(_0x3936dc),_0x9b8383=new _0x39f459(_0x3936dc),_0x403a0c=new _0x2622e2(_0x3936dc),_0x4be664=new _0x2a9ac2(_0x3936dc);function _0x47e923(){_0x301a8b[_0x339a('0x18')]&&_0x301a8b[_0x339a('0x17')](0x0),_0x301a8b[_0x339a('0x21')](_0x15c651);}function _0x18ed23(){_0x1b4532[_0x339a('0x7')]=!0x1,_0xc9c24c[_0x339a('0x4')]['view'][_0x339a('0x8')]();}return _0x1b4532[_0x339a('0x5')](_0x339a('0x9'))['to'](_0x576593,_0x339a('0x1f'),_0x576593,'isEnabled',_0xc9c24c,_0x339a('0x1e'),(_0x5d043b,_0x1103d2,_0x4d62c2)=>_0x5d043b&&_0x1103d2&&!_0x4d62c2),_0x1b4532[_0x339a('0x11')][_0x339a('0x1d')]({'icon':_0x129150,'label':_0x201c09(_0x3936dc,_0x339a('0x1a')),'tooltip':!0x0}),_0x57f3c3[_0x339a('0x1d')]({'label':_0x201c09(_0x3936dc,_0x339a('0x20')),'withText':!0x0}),_0x57f3c3[_0x339a('0x5')](_0x339a('0x9'))['to'](_0x576593,_0x339a('0x1f'),_0x576593,_0x339a('0x9'),_0xc9c24c,_0x339a('0x1e'),(_0xf9856e,_0x425ebe,_0x4e27d7)=>_0xf9856e&&_0x425ebe&&!_0x4e27d7),_0x57f3c3['on'](_0x339a('0x1c'),()=>function(){_0x301a8b[_0x339a('0x18')]&&_0x301a8b['remove'](0x0),(_0x4be664[_0x339a('0xc')](),_0x301a8b[_0x339a('0x21')](_0x4be664),_0x4be664['focus']());}()),_0x403a0c[_0x339a('0x1d')]({'label':_0x201c09(_0x3936dc,_0x339a('0x10')),'withText':!0x0}),_0x403a0c['bind'](_0x339a('0x9'))['to'](_0x576593,_0x339a('0x1f'),_0xc9c24c,_0x339a('0x1e'),(_0x4636a4,_0x57229c)=>_0x4636a4&&!_0x57229c),_0x403a0c['on']('execute',()=>{_0xc9c24c[_0x339a('0x19')][_0x339a('0xb')](_0x339a('0x3'))['showRevisionViewerCallback'](),_0x18ed23();}),_0x4789ac[_0x339a('0x2')][_0x339a('0x21')](_0x57f3c3),_0x9b8383[_0x339a('0x2')][_0x339a('0x21')](_0x403a0c),_0x15c651['items'][_0x339a('0x0')]([_0x4789ac,_0x9b8383]),_0x1b4532['on']('change:isOpen',()=>_0x47e923()),_0x4be664[_0x339a('0x1')][_0x339a('0x5')](_0x339a('0x9'))['to'](_0x576593,_0x339a('0x1f'),_0x576593,_0x339a('0x9'),_0xc9c24c,_0x339a('0x1e'),(_0xd9beae,_0x341bea,_0x13b1f4)=>_0xd9beae&&_0x341bea&&!_0x13b1f4),_0x4be664['on'](_0x339a('0x15'),()=>(_0xc9c24c[_0x339a('0x12')][_0x339a('0xb')](_0x125a6f)[_0x339a('0xa')]({'name':_0x4be664['revisionName']}),void _0x18ed23())),_0x4be664['on'](_0x339a('0x16'),()=>_0x47e923()),_0x4be664[_0x339a('0x1b')](),_0x47e923(),_0x1b4532;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1494=['assign','nameRevision','_revisionViewer','bind','Compare\x20against\x20selected','get','data','Name\x20this\x20revision','revisionHistory','_revisionsRepository','_revisions','init','config','getEarlierVisibleRevision','listenTo','getLaterVisibleRevision','setName','availableRevisionActions','getIndex','requires','repository','_createRevisionActions','Restore\x20this\x20revision','name','isReady','locale','action','change:diff','_handleRevisionSelected','_sidebarView','newRevisionId','appendChild','timePeriodViews','isEnabled','selectRevision','editor','getRevision','ready','revisionSetName','remove','destroy','isSelected','defaultRevisionActions','diff','pluginName','_handleRevisionSetName','compare','string','isVisible','element','compareAgainstSelected','length','restoreRevisionCallback','getRevisionsInDiff','revisionHistory.revisionActions','_handleDiffChange','add','plugins','_handleEditorDataReady','select','map'];(function(_0xc49a86,_0x149469){const _0x3f6caf=function(_0xdede0d){while(--_0xdede0d){_0xc49a86['push'](_0xc49a86['shift']());}};_0x3f6caf(++_0x149469);}(_0x1494,0x97));const _0x3f6c=function(_0xc49a86,_0x149469){_0xc49a86=_0xc49a86-0x0;let _0x3f6caf=_0x1494[_0xc49a86];return _0x3f6caf;};import{Plugin as _0x45686a}from'ckeditor5/src/core';import _0x5aed88 from'./revisionssidebarview';import _0x52ea04 from'../../revisionviewer';export default class y extends _0x45686a{static get[_0x3f6c('0xf')](){return'RevisionsSidebar';}static get[_0x3f6c('0x33')](){return[_0x52ea04];}constructor(_0x24f9ea){super(_0x24f9ea),this['_revisionViewer']=_0x24f9ea[_0x3f6c('0x1c')][_0x3f6c('0x25')](_0x52ea04),this['_revisionsRepository']=this[_0x3f6c('0x22')][_0x3f6c('0x34')],this[_0x3f6c('0x0')]=null;}[_0x3f6c('0x2b')](){const _0xda47c8=this[_0x3f6c('0x29')][_0x3f6c('0x2a')],_0x170cb1=this[_0x3f6c('0x35')](),_0x55e8f6=this['editor'][_0x3f6c('0x2c')]['get']('revisionHistory.viewerSidebarContainer');this[_0x3f6c('0x0')]=new _0x5aed88(this[_0x3f6c('0x6')][_0x3f6c('0x39')],_0xda47c8,_0x170cb1),this[_0x3f6c('0x0')]['on']('revisionSelected',this[_0x3f6c('0x3c')][_0x3f6c('0x23')](this)),this[_0x3f6c('0x0')]['on'](_0x3f6c('0x9'),this[_0x3f6c('0x10')][_0x3f6c('0x23')](this)),this[_0x3f6c('0x0')]['bind']('isEnabled')['to'](this['_revisionViewer']),this[_0x3f6c('0x0')][_0x3f6c('0x3')]['on'](_0x3f6c('0x1b'),(_0x1e80d1,_0x4a715d)=>{_0x4a715d['revisionViews']['on'](_0x3f6c('0x1b'),(_0x3662d2,_0x3d2f30)=>{_0x3d2f30[_0x3f6c('0x23')](_0x3f6c('0x4'),_0x3f6c('0x38'))['to'](this[_0x3f6c('0x22')]);});}),this['_sidebarView']['render'](),this[_0x3f6c('0x2e')](this[_0x3f6c('0x6')][_0x3f6c('0x26')],_0x3f6c('0x8'),this[_0x3f6c('0x1d')]['bind'](this)),this[_0x3f6c('0x2e')](this['_revisionViewer'],_0x3f6c('0x3b'),this[_0x3f6c('0x1a')][_0x3f6c('0x23')](this)),_0x55e8f6[_0x3f6c('0x2')](this[_0x3f6c('0x0')][_0x3f6c('0x14')]);}[_0x3f6c('0xb')](){this[_0x3f6c('0x0')]['element'][_0x3f6c('0xa')](),this['_sidebarView'][_0x3f6c('0xb')]();}[_0x3f6c('0x1d')](){const _0x1c5c97=this[_0x3f6c('0x29')][_0x3f6c('0x7')](0x0);if(_0x1c5c97){const _0x38ed94=this[_0x3f6c('0x29')]['getEarlierVisibleRevision'](_0x1c5c97['id']);this[_0x3f6c('0x22')][_0x3f6c('0x11')](_0x1c5c97,_0x38ed94);}}[_0x3f6c('0x3c')](_0x48fdd5,_0x14e74f){const _0x37c5eb=this[_0x3f6c('0x29')][_0x3f6c('0x7')](_0x14e74f['id']),_0x561463=this[_0x3f6c('0x29')][_0x3f6c('0x2d')](_0x37c5eb['id']);this[_0x3f6c('0x22')]['compare'](_0x37c5eb,_0x561463);}['_handleRevisionSetName'](_0x1b7702,_0x62a4c0){this[_0x3f6c('0x29')][_0x3f6c('0x7')](_0x62a4c0['id'])[_0x3f6c('0x30')](_0x62a4c0[_0x3f6c('0x37')]);}[_0x3f6c('0x1a')](_0xc7eb20,_0x20509b,_0x5f04f2){const _0x5903a5=this[_0x3f6c('0x29')]['getRevisionsInDiff'](_0x5f04f2);_0x5903a5['length']>0x2?(this[_0x3f6c('0x0')]['highlightRevisions'](_0x5903a5),this['_sidebarView']['selectRevision'](null)):(this[_0x3f6c('0x0')]['highlightRevisions']([]),this[_0x3f6c('0x0')][_0x3f6c('0x5')](_0x5903a5[0x0]));}['_createRevisionActions'](){const _0x3412b5=this['editor'],_0x30cb92=y[_0x3f6c('0x31')],_0x41aa36=_0x3412b5[_0x3f6c('0x2c')]['get'](_0x3f6c('0x19'))||y[_0x3f6c('0xd')];if(_0x41aa36['length'])return _0x41aa36[_0x3f6c('0x1f')](_0x25d778=>{const _0x113a29=_0x3f6c('0x12')==typeof _0x25d778?Object[_0x3f6c('0x20')]({},_0x30cb92[_0x25d778]):_0x25d778;return _0x113a29[_0x3f6c('0x3a')]=_0x113a29[_0x3f6c('0x3a')][_0x3f6c('0x23')](this,_0x3412b5),_0x113a29['isVisible']&&(_0x113a29['isVisible']=_0x113a29[_0x3f6c('0x13')][_0x3f6c('0x23')](this,_0x3412b5)),_0x113a29;});}}y['availableRevisionActions']={'compareAgainstSelected':{'name':_0x3f6c('0x24'),'action':({plugins:_0x323989},_0x4a3a3d)=>{const _0x4819c6=_0x323989[_0x3f6c('0x25')](_0x52ea04),_0x5aba76=_0x4819c6[_0x3f6c('0x34')];let _0x133310=_0x4819c6['diff'][_0x3f6c('0x1')],_0x79bd46=_0x4a3a3d['id'];_0x5aba76[_0x3f6c('0x32')](_0x133310)>_0x5aba76[_0x3f6c('0x32')](_0x79bd46)&&([_0x133310,_0x79bd46]=[_0x79bd46,_0x133310]),_0x4819c6[_0x3f6c('0x11')](_0x133310,_0x79bd46);},'isVisible':({plugins:_0x2fae18},_0x198bb0)=>{const _0x115182=_0x2fae18[_0x3f6c('0x25')](_0x52ea04);return!(_0x115182[_0x3f6c('0x34')][_0x3f6c('0x18')](_0x115182[_0x3f6c('0xe')])[_0x3f6c('0x16')]>0x2)&&!_0x198bb0[_0x3f6c('0xc')];}},'restoreRevision':{'name':_0x3f6c('0x36'),'action':(_0x115a7f,{id:_0x18c0ca})=>{_0x115a7f[_0x3f6c('0x2c')]['get'](_0x3f6c('0x28'))[_0x3f6c('0x17')](_0x18c0ca);},'isVisible':({plugins:_0x100698},_0x1c0768)=>!!_0x100698['get'](_0x52ea04)[_0x3f6c('0x34')][_0x3f6c('0x2f')](_0x1c0768['id'])},'nameRevision':{'name':_0x3f6c('0x27'),'action':({plugins:_0x41f44},{id:_0x5dd539,revisionNameView:_0x3da5e2})=>{const _0x5e9426=_0x41f44[_0x3f6c('0x25')](_0x52ea04),_0x4bd05c=_0x5e9426[_0x3f6c('0x34')][_0x3f6c('0x2d')](_0x5dd539);_0x5e9426[_0x3f6c('0x11')](_0x5dd539,_0x4bd05c),_0x3da5e2['focus'](),_0x3da5e2['fieldView'][_0x3f6c('0x1e')]();}}},y[_0x3f6c('0xd')]=[_0x3f6c('0x15'),'restoreRevision',_0x3f6c('0x21')];
23
+ const _0xbf22=['action','Name\x20this\x20revision','Restore\x20this\x20revision','add','repository','map','_handleEditorDataReady','getEarlierVisibleRevision','Compare\x20against\x20selected','getRevision','listenTo','availableRevisionActions','_handleRevisionSelected','getLaterVisibleRevision','remove','compareAgainstSelected','isVisible','string','revisionHistory.revisionActions','setName','_revisionViewer','assign','plugins','RevisionsSidebar','revisionSetName','_handleRevisionSetName','_handleDiffChange','isEnabled','timePeriodViews','revisionViews','highlightRevisions','get','diff','destroy','revisionHistory.viewerSidebarContainer','requires','_revisionsRepository','getRevisionsInDiff','nameRevision','select','appendChild','element','isSelected','_createRevisionActions','length','pluginName','config','ready','editor','selectRevision','newRevisionId','change:diff','getIndex','_sidebarView','bind','init','_revisions','data','restoreRevisionCallback','fieldView','revisionHistory','defaultRevisionActions','focus','compare','render','isReady'];(function(_0x3bf460,_0xbf22d9){const _0xc42cc4=function(_0x3507b0){while(--_0x3507b0){_0x3bf460['push'](_0x3bf460['shift']());}};_0xc42cc4(++_0xbf22d9);}(_0xbf22,0x160));const _0xc42c=function(_0x3bf460,_0xbf22d9){_0x3bf460=_0x3bf460-0x0;let _0xc42cc4=_0xbf22[_0x3bf460];return _0xc42cc4;};import{Plugin as _0x132311}from'ckeditor5/src/core';import _0x5cbe97 from'./revisionssidebarview';import _0x339c50 from'../../revisionviewer';export default class w extends _0x132311{static get[_0xc42c('0x17')](){return _0xc42c('0x1');}static get[_0xc42c('0xd')](){return[_0x339c50];}constructor(_0x5bcc0e){super(_0x5bcc0e),this[_0xc42c('0x40')]=_0x5bcc0e[_0xc42c('0x0')]['get'](_0x339c50),this[_0xc42c('0xe')]=this['_revisionViewer'][_0xc42c('0x30')],this[_0xc42c('0x1f')]=null;}[_0xc42c('0x21')](){const _0x1185a2=this['_revisionsRepository'][_0xc42c('0x22')],_0x33e5af=this[_0xc42c('0x15')](),_0x4fd24f=this[_0xc42c('0x1a')]['config']['get'](_0xc42c('0xc'));this[_0xc42c('0x1f')]=new _0x5cbe97(this[_0xc42c('0x1a')]['locale'],_0x1185a2,_0x33e5af),this[_0xc42c('0x1f')]['on']('revisionSelected',this[_0xc42c('0x38')][_0xc42c('0x20')](this)),this[_0xc42c('0x1f')]['on'](_0xc42c('0x2'),this[_0xc42c('0x3')][_0xc42c('0x20')](this)),this[_0xc42c('0x1f')][_0xc42c('0x20')](_0xc42c('0x5'))['to'](this[_0xc42c('0x40')]),this[_0xc42c('0x1f')][_0xc42c('0x6')]['on'](_0xc42c('0x2f'),(_0x32bc66,_0x209992)=>{_0x209992[_0xc42c('0x7')]['on'](_0xc42c('0x2f'),(_0x2547a1,_0x22d44b)=>{_0x22d44b[_0xc42c('0x20')](_0xc42c('0x5'),_0xc42c('0x2b'))['to'](this[_0xc42c('0x40')]);});}),this['_sidebarView'][_0xc42c('0x2a')](),this['listenTo'](this[_0xc42c('0x1a')][_0xc42c('0x23')],_0xc42c('0x19'),this[_0xc42c('0x32')][_0xc42c('0x20')](this)),this[_0xc42c('0x36')](this[_0xc42c('0x40')],_0xc42c('0x1d'),this[_0xc42c('0x4')][_0xc42c('0x20')](this)),_0x4fd24f[_0xc42c('0x12')](this['_sidebarView'][_0xc42c('0x13')]);}[_0xc42c('0xb')](){this['_sidebarView']['element'][_0xc42c('0x3a')](),this['_sidebarView'][_0xc42c('0xb')]();}['_handleEditorDataReady'](){const _0x296cde=this[_0xc42c('0xe')][_0xc42c('0x35')](0x0);if(_0x296cde){const _0x3c79ec=this[_0xc42c('0xe')][_0xc42c('0x33')](_0x296cde['id']);this[_0xc42c('0x40')][_0xc42c('0x29')](_0x296cde,_0x3c79ec);}}[_0xc42c('0x38')](_0x4043c6,_0x52820e){const _0x3dd651=this[_0xc42c('0xe')][_0xc42c('0x35')](_0x52820e['id']),_0x4eddc4=this['_revisionsRepository'][_0xc42c('0x33')](_0x3dd651['id']);this[_0xc42c('0x40')]['compare'](_0x3dd651,_0x4eddc4);}[_0xc42c('0x3')](_0x50df6c,_0x305182){this[_0xc42c('0xe')][_0xc42c('0x35')](_0x305182['id'])[_0xc42c('0x3f')](_0x305182['name']);}[_0xc42c('0x4')](_0x106939,_0x628487,_0x4495a6){const _0x1a7e7f=this[_0xc42c('0xe')][_0xc42c('0xf')](_0x4495a6);_0x1a7e7f[_0xc42c('0x16')]>0x2?(this[_0xc42c('0x1f')][_0xc42c('0x8')](_0x1a7e7f),this[_0xc42c('0x1f')]['selectRevision'](null)):(this['_sidebarView'][_0xc42c('0x8')]([]),this[_0xc42c('0x1f')][_0xc42c('0x1b')](_0x1a7e7f[0x0]));}[_0xc42c('0x15')](){const _0x4a0726=this[_0xc42c('0x1a')],_0x32301a=w[_0xc42c('0x37')],_0x293169=_0x4a0726[_0xc42c('0x18')][_0xc42c('0x9')](_0xc42c('0x3e'))||w[_0xc42c('0x27')];if(_0x293169[_0xc42c('0x16')])return _0x293169[_0xc42c('0x31')](_0x2cbbd4=>{const _0x35060e=_0xc42c('0x3d')==typeof _0x2cbbd4?Object[_0xc42c('0x41')]({},_0x32301a[_0x2cbbd4]):_0x2cbbd4;return _0x35060e[_0xc42c('0x2c')]=_0x35060e[_0xc42c('0x2c')][_0xc42c('0x20')](this,_0x4a0726),_0x35060e['isVisible']&&(_0x35060e[_0xc42c('0x3c')]=_0x35060e['isVisible'][_0xc42c('0x20')](this,_0x4a0726)),_0x35060e;});}}w['availableRevisionActions']={'compareAgainstSelected':{'name':_0xc42c('0x34'),'action':({plugins:_0x360e06},_0x311d57)=>{const _0x2d98a=_0x360e06[_0xc42c('0x9')](_0x339c50),_0xcd1e87=_0x2d98a[_0xc42c('0x30')];let _0x2f2520=_0x2d98a[_0xc42c('0xa')][_0xc42c('0x1c')],_0x2d9c7e=_0x311d57['id'];_0xcd1e87[_0xc42c('0x1e')](_0x2f2520)>_0xcd1e87[_0xc42c('0x1e')](_0x2d9c7e)&&([_0x2f2520,_0x2d9c7e]=[_0x2d9c7e,_0x2f2520]),_0x2d98a['compare'](_0x2f2520,_0x2d9c7e);},'isVisible':({plugins:_0x232f07},_0x21a900)=>{const _0x5b2d21=_0x232f07[_0xc42c('0x9')](_0x339c50);return!(_0x5b2d21[_0xc42c('0x30')]['getRevisionsInDiff'](_0x5b2d21[_0xc42c('0xa')])[_0xc42c('0x16')]>0x2)&&!_0x21a900[_0xc42c('0x14')];}},'restoreRevision':{'name':_0xc42c('0x2e'),'action':(_0x4c78cf,{id:_0x2b19c7})=>{_0x4c78cf[_0xc42c('0x18')]['get'](_0xc42c('0x26'))[_0xc42c('0x24')](_0x2b19c7);},'isVisible':({plugins:_0x2275c5},_0x3613cb)=>!!_0x2275c5[_0xc42c('0x9')](_0x339c50)[_0xc42c('0x30')][_0xc42c('0x39')](_0x3613cb['id'])},'nameRevision':{'name':_0xc42c('0x2d'),'action':({plugins:_0x53da4d},{id:_0x58edb3,revisionNameView:_0x5f5cb2})=>{const _0x4fe35f=_0x53da4d[_0xc42c('0x9')](_0x339c50),_0x1764f6=_0x4fe35f[_0xc42c('0x30')][_0xc42c('0x33')](_0x58edb3);_0x4fe35f[_0xc42c('0x29')](_0x58edb3,_0x1764f6),_0x5f5cb2[_0xc42c('0x28')](),_0x5f5cb2[_0xc42c('0x25')][_0xc42c('0x11')]();}}},w[_0xc42c('0x27')]=[_0xc42c('0x3b'),'restoreRevision',_0xc42c('0x10')];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{View as _0x338fe6,IconView as _0x3fcc6b}from'ckeditor5/src/ui';import _0x236e33 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class is extends _0x338fe6{constructor(_0x1b95b5){super(_0x1b95b5);const t=_0x1b95b5['t'],_0x47689a=new _0x3fcc6b(_0x1b95b5);_0x47689a['content']=_0x236e33,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x47689a,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[t('Revision\x20history')]}]});}}
23
+ const _0x18f6=['div','Revision\x20history','setTemplate','ck-revision-history-sidebar__header__label','ck-reset_all'];(function(_0xd5744,_0x18f66c){const _0x147a3a=function(_0x186518){while(--_0x186518){_0xd5744['push'](_0xd5744['shift']());}};_0x147a3a(++_0x18f66c);}(_0x18f6,0x67));const _0x147a=function(_0xd5744,_0x18f66c){_0xd5744=_0xd5744-0x0;let _0x147a3a=_0x18f6[_0xd5744];return _0x147a3a;};import{View as _0x495b6b,IconView as _0x4848d8}from'ckeditor5/src/ui';import{getTranslation as _0x4684c5}from'../../utils/common-translations';import _0xbf52c8 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class cs extends _0x495b6b{constructor(_0x1fe872){super(_0x1fe872);const _0x5d1363=new _0x4848d8(_0x1fe872);_0x5d1363['content']=_0xbf52c8,this[_0x147a('0x4')]({'tag':_0x147a('0x2'),'attributes':{'class':['ck',_0x147a('0x1'),'ck-revision-history-sidebar__header']},'children':[_0x5d1363,{'tag':'span','attributes':{'class':['ck',_0x147a('0x0')]},'children':[_0x4684c5(_0x1fe872,_0x147a('0x3'))]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5961=['ck-revision-history-sidebar__time-period','addRevision','select','setTemplate','revisionViews','startDate','add','remove','uiLanguage','find','createCollection','div','_revisionActions','locale','localizedPeriodName','setName'];(function(_0x551929,_0x596124){const _0xa82373=function(_0x4f1c33){while(--_0x4f1c33){_0x551929['push'](_0x551929['shift']());}};_0xa82373(++_0x596124);}(_0x5961,0x1c9));const _0xa823=function(_0x551929,_0x596124){_0x551929=_0x551929-0x0;let _0xa82373=_0x5961[_0x551929];return _0xa82373;};import{View as _0x5f407e}from'ckeditor5/src/ui';import _0x16169e from'../revision/revisionview';import{getDateTimePeriodInfo as _0x11b69e}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class hi extends _0x5f407e{constructor(_0x4a15a6,_0x18e2ed,_0x58f430){super(_0x4a15a6);const _0x98a15d=_0x11b69e(_0x18e2ed,this[_0xa823('0x4')][_0xa823('0xf')])[_0xa823('0x5')];this[_0xa823('0xc')]=_0x18e2ed,this['_revisionActions']=_0x58f430,this[_0xa823('0xb')]=this[_0xa823('0x1')](),this[_0xa823('0xb')]['delegate'](_0xa823('0x9'))['to'](this),this[_0xa823('0xb')]['delegate'](_0xa823('0x6'))['to'](this),this[_0xa823('0xa')]({'tag':_0xa823('0x2'),'attributes':{'class':['ck',_0xa823('0x7')]},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x98a15d}]},{'tag':_0xa823('0x2'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this[_0xa823('0xb')]}]});}[_0xa823('0x8')](_0xee832a){const _0x22f699=new _0x16169e(this[_0xa823('0x4')],_0xee832a,this[_0xa823('0x3')]);this['revisionViews'][_0xa823('0xd')](_0x22f699);}['removeRevision'](_0x1e043a){const _0x44031b=this['revisionViews'][_0xa823('0x0')](_0x202e56=>_0x202e56['id']===_0x1e043a['id']);this['revisionViews'][_0xa823('0xe')](_0x44031b);}}
23
+ const _0x4e33=['addRevision','find','add','span','delegate','localizedPeriodName','removeRevision','ck-revision-history-sidebar__time-period__revisions','uiLanguage','startDate','remove','select','div','_revisionActions','setName','ck-revision-history-sidebar__time-period__label','revisionViews','createCollection'];(function(_0x555cf1,_0x4e3347){const _0x3b2678=function(_0x3684e9){while(--_0x3684e9){_0x555cf1['push'](_0x555cf1['shift']());}};_0x3b2678(++_0x4e3347);}(_0x4e33,0x1ca));const _0x3b26=function(_0x555cf1,_0x4e3347){_0x555cf1=_0x555cf1-0x0;let _0x3b2678=_0x4e33[_0x555cf1];return _0x3b2678;};import{View as _0x4134d8}from'ckeditor5/src/ui';import _0x3396a8 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x8b0296}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x4134d8{constructor(_0xa6cd5b,_0x2cb752,_0xb8d22f){super(_0xa6cd5b);const _0x4c420c=_0x8b0296(_0x2cb752,this['locale'][_0x3b26('0x0')])[_0x3b26('0xf')];this[_0x3b26('0x1')]=_0x2cb752,this[_0x3b26('0x5')]=_0xb8d22f,this[_0x3b26('0x8')]=this[_0x3b26('0x9')](),this[_0x3b26('0x8')][_0x3b26('0xe')](_0x3b26('0x3'))['to'](this),this['revisionViews'][_0x3b26('0xe')](_0x3b26('0x6'))['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':_0x3b26('0xd'),'attributes':{'class':['ck',_0x3b26('0x7')]},'children':[{'text':_0x4c420c}]},{'tag':_0x3b26('0x4'),'attributes':{'class':['ck',_0x3b26('0x11')]},'children':this[_0x3b26('0x8')]}]});}[_0x3b26('0xa')](_0x577c84){const _0x490bab=new _0x3396a8(this['locale'],_0x577c84,this[_0x3b26('0x5')]);this['revisionViews'][_0x3b26('0xc')](_0x490bab);}[_0x3b26('0x10')](_0xd3e8f){const _0x6f2c97=this['revisionViews'][_0x3b26('0xb')](_0x239836=>_0x239836['id']===_0xd3e8f['id']);this[_0x3b26('0x8')][_0x3b26('0x2')](_0x6f2c97);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ca3=['render','bindTemplate','removeRevision','delegate','highlightRevisions','selectRevision','ck-revision-history-sidebar','highlight','ck-revision-history-sidebar__timeline','map','_revisionActions','timePeriodViews','setName','add','isEnabled','_removeRevision','set','revisionSetName','addRevision','createdAt','some','select','revisionSelected','div','remove','find','_revisions','startDate','_addRevision','ck-disabled','deselect','createCollection','revisionViews','getTime','ck-rounded-corners','locale','_getTimePeriodViewByStartDate'];(function(_0x39b24f,_0x4ca3c3){const _0x14e76a=function(_0x6644be){while(--_0x6644be){_0x39b24f['push'](_0x39b24f['shift']());}};_0x14e76a(++_0x4ca3c3);}(_0x4ca3,0x73));const _0x14e7=function(_0x39b24f,_0x4ca3c3){_0x39b24f=_0x39b24f-0x0;let _0x14e76a=_0x4ca3[_0x39b24f];return _0x14e76a;};import{View as _0x4352e7}from'ckeditor5/src/ui';import _0x15d399 from'./revisionssidebartimeperiodview';import _0x49afb2 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x3199b8}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class ni extends _0x4352e7{constructor(_0x411ea3,_0x42059d,_0x1d1fa3){super(_0x411ea3);const _0x47e0b5=this[_0x14e7('0x22')];this['timePeriodViews']=this[_0x14e7('0x1b')](),this[_0x14e7('0x7')][_0x14e7('0x24')]('select')['to'](this),this[_0x14e7('0x7')][_0x14e7('0x24')](_0x14e7('0x8'))['to'](this),this['_revisions']=_0x42059d,this[_0x14e7('0x6')]=_0x1d1fa3,this['on'](_0x14e7('0x11'),(_0x4278ca,_0x44c9aa)=>{this['fire'](_0x14e7('0x12'),_0x44c9aa);}),this['on']('setName',(_0x4c5d2d,_0x1a3d13)=>{this['fire'](_0x14e7('0xd'),_0x1a3d13);}),this[_0x14e7('0xc')](_0x14e7('0xa'),!0x1),this['setTemplate']({'tag':_0x14e7('0x13'),'attributes':{'class':['ck','ck-reset',_0x14e7('0x1e'),_0x14e7('0x2')]},'children':[new _0x49afb2(_0x411ea3),{'tag':'div','attributes':{'class':['ck',_0x14e7('0x4'),_0x47e0b5['if'](_0x14e7('0xa'),_0x14e7('0x19'),_0x29235b=>!_0x29235b)]},'children':this[_0x14e7('0x7')]}]});}[_0x14e7('0x21')](){super['render']();for(const _0x18f69a of this[_0x14e7('0x16')])this[_0x14e7('0x18')](_0x18f69a);this[_0x14e7('0x16')]['on'](_0x14e7('0x9'),(_0x21b869,_0x2012b7)=>{this[_0x14e7('0x18')](_0x2012b7);}),this['_revisions']['on'](_0x14e7('0x14'),(_0x1f296b,_0x54fd0f)=>{this['_removeRevision'](_0x54fd0f);});}get[_0x14e7('0x1c')](){return this[_0x14e7('0x7')]['map'](_0x5aad6f=>_0x5aad6f[_0x14e7('0x1c')][_0x14e7('0x5')](_0xebe3bc=>_0xebe3bc))['flat']();}[_0x14e7('0x1')](_0x1ffc70){for(const _0x33f194 of this[_0x14e7('0x1c')])_0x1ffc70&&_0x1ffc70['id']===_0x33f194['id']?_0x33f194[_0x14e7('0x11')]():_0x33f194[_0x14e7('0x1a')]();}[_0x14e7('0x0')](_0x55be12){for(const _0x286675 of this['revisionViews'])_0x55be12[_0x14e7('0x10')](({id:_0x1ad92a})=>_0x1ad92a===_0x286675['id'])?_0x286675[_0x14e7('0x3')]():_0x286675['unhighlight']();}[_0x14e7('0x18')](_0x4b1ddf){const _0x57b14b=_0x3199b8(_0x4b1ddf[_0x14e7('0xf')])['startDate'];let _0x4547a8=this[_0x14e7('0x7')]['get'](0x0);_0x4547a8&&_0x4547a8['startDate']['getTime']()===_0x57b14b[_0x14e7('0x1d')]()||(_0x4547a8=new _0x15d399(this[_0x14e7('0x1f')],_0x57b14b,this['_revisionActions']),this['timePeriodViews'][_0x14e7('0x9')](_0x4547a8)),_0x4547a8[_0x14e7('0xe')](_0x4b1ddf);}[_0x14e7('0xb')](_0x21f6f0){const _0xe71f3c=_0x3199b8(_0x21f6f0[_0x14e7('0xf')])[_0x14e7('0x17')];this[_0x14e7('0x20')](_0xe71f3c)[_0x14e7('0x23')](_0x21f6f0);}['_getTimePeriodViewByStartDate'](_0x3ccc20){return this[_0x14e7('0x7')][_0x14e7('0x15')](_0x339016=>_0x339016[_0x14e7('0x17')]['getTime']()===_0x3ccc20[_0x14e7('0x1d')]());}}
23
+ const _0x4c9d=['unhighlight','ck-revision-history-sidebar','some','revisionViews','getTime','_revisions','remove','bindTemplate','select','find','delegate','removeRevision','flat','ck-disabled','createCollection','add','locale','ck-revision-history-sidebar__timeline','highlight','_addRevision','timePeriodViews','render','_removeRevision','set','fire','setName','startDate','ck-rounded-corners','addRevision','revisionSetName','isEnabled','map','_revisionActions','selectRevision','_getTimePeriodViewByStartDate','get'];(function(_0x17abf8,_0x4c9dc6){const _0x2a4b98=function(_0xa9a417){while(--_0xa9a417){_0x17abf8['push'](_0x17abf8['shift']());}};_0x2a4b98(++_0x4c9dc6);}(_0x4c9d,0xc7));const _0x2a4b=function(_0x17abf8,_0x4c9dc6){_0x17abf8=_0x17abf8-0x0;let _0x2a4b98=_0x4c9d[_0x17abf8];return _0x2a4b98;};import{View as _0x337a7b}from'ckeditor5/src/ui';import _0x33da07 from'./revisionssidebartimeperiodview';import _0x5cc5f9 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x2de010}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x337a7b{constructor(_0x22cc06,_0x77d616,_0x595056){super(_0x22cc06);const _0x17c265=this[_0x2a4b('0x18')];this['timePeriodViews']=this[_0x2a4b('0x1f')](),this[_0x2a4b('0x1')][_0x2a4b('0x1b')](_0x2a4b('0x19'))['to'](this),this['timePeriodViews'][_0x2a4b('0x1b')](_0x2a4b('0x6'))['to'](this),this[_0x2a4b('0x16')]=_0x77d616,this['_revisionActions']=_0x595056,this['on'](_0x2a4b('0x19'),(_0x57eacb,_0x1d0f56)=>{this[_0x2a4b('0x5')]('revisionSelected',_0x1d0f56);}),this['on'](_0x2a4b('0x6'),(_0x2d32f5,_0x385367)=>{this[_0x2a4b('0x5')](_0x2a4b('0xa'),_0x385367);}),this[_0x2a4b('0x4')]('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset',_0x2a4b('0x8'),_0x2a4b('0x12')]},'children':[new _0x5cc5f9(_0x22cc06),{'tag':'div','attributes':{'class':['ck',_0x2a4b('0x22'),_0x17c265['if'](_0x2a4b('0xb'),_0x2a4b('0x1e'),_0x465d7c=>!_0x465d7c)]},'children':this['timePeriodViews']}]});}['render'](){super[_0x2a4b('0x2')]();for(const _0x3d5fdd of this[_0x2a4b('0x16')])this[_0x2a4b('0x0')](_0x3d5fdd);this[_0x2a4b('0x16')]['on'](_0x2a4b('0x20'),(_0x14aae7,_0xa06356)=>{this[_0x2a4b('0x0')](_0xa06356);}),this['_revisions']['on'](_0x2a4b('0x17'),(_0x5af3c7,_0x19c757)=>{this[_0x2a4b('0x3')](_0x19c757);});}get[_0x2a4b('0x14')](){return this[_0x2a4b('0x1')][_0x2a4b('0xc')](_0x1f69d3=>_0x1f69d3[_0x2a4b('0x14')]['map'](_0x7e65a7=>_0x7e65a7))[_0x2a4b('0x1d')]();}[_0x2a4b('0xe')](_0x5398d1){for(const _0x5affc3 of this[_0x2a4b('0x14')])_0x5398d1&&_0x5398d1['id']===_0x5affc3['id']?_0x5affc3[_0x2a4b('0x19')]():_0x5affc3['deselect']();}['highlightRevisions'](_0x4c1763){for(const _0x384fe9 of this[_0x2a4b('0x14')])_0x4c1763[_0x2a4b('0x13')](({id:_0x2a89e7})=>_0x2a89e7===_0x384fe9['id'])?_0x384fe9[_0x2a4b('0x23')]():_0x384fe9[_0x2a4b('0x11')]();}[_0x2a4b('0x0')](_0x24a330){const _0x1816da=_0x2de010(_0x24a330['createdAt'])[_0x2a4b('0x7')];let _0x31bf23=this[_0x2a4b('0x1')][_0x2a4b('0x10')](0x0);_0x31bf23&&_0x31bf23[_0x2a4b('0x7')][_0x2a4b('0x15')]()===_0x1816da[_0x2a4b('0x15')]()||(_0x31bf23=new _0x33da07(this[_0x2a4b('0x21')],_0x1816da,this[_0x2a4b('0xd')]),this['timePeriodViews'][_0x2a4b('0x20')](_0x31bf23)),_0x31bf23[_0x2a4b('0x9')](_0x24a330);}[_0x2a4b('0x3')](_0x1c8c58){const _0x4db51f=_0x2de010(_0x1c8c58['createdAt'])[_0x2a4b('0x7')];this['_getTimePeriodViewByStartDate'](_0x4db51f)[_0x2a4b('0x1c')](_0x1c8c58);}[_0x2a4b('0xf')](_0x1cfae3){return this[_0x2a4b('0x1')][_0x2a4b('0x1a')](_0x251bab=>_0x251bab[_0x2a4b('0x7')]['getTime']()===_0x1cfae3[_0x2a4b('0x15')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1658=['week','toRelativeCalendar','hasSame','local','month','minus','day','weekdayLong','startOf','monthLong','toJSDate','year'];(function(_0x4f36bf,_0x1658fa){const _0x3ca710=function(_0x1dff97){while(--_0x1dff97){_0x4f36bf['push'](_0x4f36bf['shift']());}};_0x3ca710(++_0x1658fa);}(_0x1658,0x1b1));const _0x3ca7=function(_0x4f36bf,_0x1658fa){_0x4f36bf=_0x4f36bf-0x0;let _0x3ca710=_0x1658[_0x4f36bf];return _0x3ca710;};import{DateTime as _0x589ba0}from'luxon';export function getDateTimePeriodInfo(_0x56c22c,_0x529c20){_0x56c22c=_0x589ba0['fromJSDate'](_0x56c22c)['setLocale'](_0x529c20);const _0x23aa9d=_0x589ba0[_0x3ca7('0x2')](),_0x2f9b6c=_0x23aa9d[_0x3ca7('0x4')]({'days':0x1})[_0x3ca7('0x7')](_0x3ca7('0x5'));let _0x5acb96,_0x49bbac;return _0x56c22c[_0x3ca7('0x1')](_0x23aa9d,'day')?(_0x5acb96=_0x56c22c[_0x3ca7('0x7')](_0x3ca7('0x5'))[_0x3ca7('0x9')](),_0x49bbac=_0x56c22c[_0x3ca7('0x0')]()):_0x56c22c[_0x3ca7('0x1')](_0x2f9b6c,_0x3ca7('0x5'))?(_0x5acb96=_0x2f9b6c[_0x3ca7('0x9')](),_0x49bbac=_0x56c22c[_0x3ca7('0x0')]()):_0x56c22c[_0x3ca7('0x1')](_0x23aa9d,_0x3ca7('0xb'))?(_0x5acb96=_0x56c22c[_0x3ca7('0x7')](_0x3ca7('0xb'))[_0x3ca7('0x9')](),_0x49bbac=_0x56c22c[_0x3ca7('0x6')]):_0x56c22c[_0x3ca7('0x1')](_0x23aa9d,'year')?(_0x5acb96=_0x56c22c[_0x3ca7('0x7')](_0x3ca7('0x3'))[_0x3ca7('0x9')](),_0x49bbac=_0x56c22c[_0x3ca7('0x8')]):(_0x5acb96=_0x56c22c[_0x3ca7('0x7')](_0x3ca7('0xa'))['toJSDate'](),_0x49bbac=_0x56c22c[_0x3ca7('0xa')]),{'startDate':_0x5acb96,'localizedPeriodName':_0x49bbac};}
23
+ const _0x3987=['week','minus','setLocale','year','hasSame','day','startOf','toRelativeCalendar','monthLong','local','weekdayLong','toJSDate','month'];(function(_0x3357db,_0x3987cd){const _0x38b9f2=function(_0x166f20){while(--_0x166f20){_0x3357db['push'](_0x3357db['shift']());}};_0x38b9f2(++_0x3987cd);}(_0x3987,0x13b));const _0x38b9=function(_0x3357db,_0x3987cd){_0x3357db=_0x3357db-0x0;let _0x38b9f2=_0x3987[_0x3357db];return _0x38b9f2;};import{DateTime as _0x36afc5}from'luxon';export function getDateTimePeriodInfo(_0x33830e,_0xdb79c9){_0x33830e=_0x36afc5['fromJSDate'](_0x33830e)[_0x38b9('0xc')](_0xdb79c9);const _0x33aa52=_0x36afc5[_0x38b9('0x6')](),_0x8be959=_0x33aa52[_0x38b9('0xb')]({'days':0x1})[_0x38b9('0x3')]('day');let _0x1c7c29,_0x4bfecb;return _0x33830e['hasSame'](_0x33aa52,_0x38b9('0x2'))?(_0x1c7c29=_0x33830e[_0x38b9('0x3')](_0x38b9('0x2'))['toJSDate'](),_0x4bfecb=_0x33830e[_0x38b9('0x4')]()):_0x33830e['hasSame'](_0x8be959,_0x38b9('0x2'))?(_0x1c7c29=_0x8be959[_0x38b9('0x8')](),_0x4bfecb=_0x33830e['toRelativeCalendar']()):_0x33830e[_0x38b9('0x1')](_0x33aa52,_0x38b9('0xa'))?(_0x1c7c29=_0x33830e[_0x38b9('0x3')]('week')[_0x38b9('0x8')](),_0x4bfecb=_0x33830e[_0x38b9('0x7')]):_0x33830e['hasSame'](_0x33aa52,_0x38b9('0x0'))?(_0x1c7c29=_0x33830e[_0x38b9('0x3')](_0x38b9('0x9'))[_0x38b9('0x8')](),_0x4bfecb=_0x33830e[_0x38b9('0x5')]):(_0x1c7c29=_0x33830e[_0x38b9('0x3')]('year')[_0x38b9('0x8')](),_0x4bfecb=_0x33830e[_0x38b9('0x0')]),{'startDate':_0x1c7c29,'localizedPeriodName':_0x4bfecb};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{View as _0x4f8087}from'ckeditor5/src/ui';export default class H extends _0x4f8087{constructor(_0x1c8603,_0x439fc6){super(_0x1c8603);const t=_0x1c8603['t'];this['_model']=_0x439fc6;const _0x572a4e=this['bindTemplate'],_0x1b9126=_0x439fc6['data']['isSuggestion']?t('Suggested\x20by'):'add'==_0x439fc6['type']?t('Added\x20by'):t('Removed\x20by');this['set']('type',_0x439fc6['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x572a4e['to']('type',_0xc4b23=>'ck-revision-change__'+_0xc4b23)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x1b9126}]},{'text':'\x20'+_0x439fc6['author']['name']}]}]});}['focus'](){this['element']['focus']();}}
23
+ const _0x31b1=['setTemplate','isSuggestion','data','ck-revision-change__label','ck-annotation','ck-revision-change__','element','Removed\x20by','focus','_model','author','span','Suggested\x20by','type','bindTemplate','ck-revision-change','set','add'];(function(_0x1cec93,_0x31b1cc){const _0x138f57=function(_0x44d188){while(--_0x44d188){_0x1cec93['push'](_0x1cec93['shift']());}};_0x138f57(++_0x31b1cc);}(_0x31b1,0xdd));const _0x138f=function(_0x1cec93,_0x31b1cc){_0x1cec93=_0x1cec93-0x0;let _0x138f57=_0x31b1[_0x1cec93];return _0x138f57;};import{View as _0x3f8c60}from'ckeditor5/src/ui';import{getTranslation as _0x254182}from'../../utils/common-translations';export default class G extends _0x3f8c60{constructor(_0x465b3f,_0x4089f3){super(_0x465b3f),this[_0x138f('0x4')]=_0x4089f3;const _0x169f65=this[_0x138f('0x9')],_0x53889a=_0x254182(_0x465b3f,_0x4089f3[_0x138f('0xf')][_0x138f('0xe')]?_0x138f('0x7'):_0x138f('0xc')==_0x4089f3[_0x138f('0x8')]?'Added\x20by':_0x138f('0x2'));this[_0x138f('0xb')](_0x138f('0x8'),_0x4089f3[_0x138f('0x8')]),this[_0x138f('0xd')]({'tag':'div','attributes':{'class':[_0x138f('0x11'),_0x138f('0xa'),_0x169f65['to'](_0x138f('0x8'),_0x59959d=>_0x138f('0x0')+_0x59959d)],'tabindex':-0x1},'children':[{'tag':_0x138f('0x6'),'children':[{'tag':_0x138f('0x6'),'attributes':{'class':[_0x138f('0x10')]},'children':[{'text':_0x53889a}]},{'text':'\x20'+_0x4089f3[_0x138f('0x5')]['name']}]}]});}[_0x138f('0x3')](){this[_0x138f('0x1')][_0x138f('0x3')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{View as _0x120a7d,ButtonView as _0x36049c,ToolbarSeparatorView as _0x2809db}from'ckeditor5/src/ui';import ti from'../../../theme/icons/arrow-up.svg';import _0xc34c3f from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class ei extends _0x120a7d{constructor(_0x56b64a){super(_0x56b64a);const t=_0x56b64a['t'],_0x3c6200=this['bindTemplate'],_0x19b225=new _0x36049c(_0x56b64a),_0x4a3ef3=new _0x36049c(_0x56b64a);this['set']('isNavigationMode',!0x1),this['set']('isReady',!0x1),this['set']('currentChangeNumber',0x0),this['set']('numberOfChanges',0x0),this['set']('isForwardNavigationEnabled',!0x1),this['set']('isBackwardNavigationEnabled',!0x1),this['bind']('_isStatusLabelVisible')['to'](this,'isReady',this,'numberOfChanges',(_0x3c212f,_0x59a3e0)=>_0x3c212f&&_0x59a3e0>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5b959a,_0x452ab3,_0x10e05b,_0x222b3c)=>{if(!_0x5b959a)return t('Loading...');if(!_0x10e05b)return t('No\x20changes');const _0x204003=t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0x10e05b);return _0x222b3c?t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},[_0x452ab3+0x1,_0x10e05b]):_0x204003;}),_0x19b225['set']({'label':t('Show\x20previous\x20change'),'tooltip':!0x0,'icon':ti}),_0x4a3ef3['set']({'label':t('Show\x20next\x20change'),'tooltip':!0x0,'icon':_0xc34c3f}),_0x19b225['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x4a3ef3['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x19b225['on']('execute',()=>this['fire']('execute','backward')),_0x4a3ef3['on']('execute',()=>this['fire']('execute','forward')),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-ui','ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x3c6200['if']('_isStatusLabelVisible','ck-hidden',_0x5abe54=>!_0x5abe54)]},'children':[{'text':_0x3c6200['to']('isNavigationMode',_0x14841b=>_0x14841b?t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'})+':\x20':t('Total')+':\x20')}]},{'text':_0x3c6200['to']('_statusText')}]},new _0x2809db(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x19b225,_0x4a3ef3]}]});}}
23
+ const _0x1f04=['currentChangeNumber','backward','forward','isBackwardNavigationEnabled','setTemplate','fire','span','ck-revision-history-ui','bind','ck-hidden','isReady','Total','numberOfChanges','_statusText','execute','div','X_OF_Y_CHANGES','ck-revision-history-ui__changes-navigation','bindTemplate','Show\x20previous\x20change','No\x20changes','set','isEnabled','Show\x20next\x20change','_isStatusLabelVisible','isNavigationMode','ck-revision-history-ui__changes-navigation__navigation'];(function(_0xa3c1eb,_0x1f0491){const _0x220469=function(_0x1831c9){while(--_0x1831c9){_0xa3c1eb['push'](_0xa3c1eb['shift']());}};_0x220469(++_0x1f0491);}(_0x1f04,0x8e));const _0x2204=function(_0xa3c1eb,_0x1f0491){_0xa3c1eb=_0xa3c1eb-0x0;let _0x220469=_0x1f04[_0xa3c1eb];return _0x220469;};import{View as _0x165b51,ButtonView as _0x5da276,ToolbarSeparatorView as _0x2b4d0a}from'ckeditor5/src/ui';import{getTranslation as _0xdbfe88}from'../../utils/common-translations';import _0x241840 from'../../../theme/icons/arrow-up.svg';import _0x2b81d7 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x165b51{constructor(_0x4867e0){super(_0x4867e0);const _0x9d9239=this[_0x2204('0xb')],_0x419a55=new _0x5da276(_0x4867e0),_0x403317=new _0x5da276(_0x4867e0);this['set'](_0x2204('0x12'),!0x1),this[_0x2204('0xe')]('isReady',!0x1),this[_0x2204('0xe')]('currentChangeNumber',0x0),this['set'](_0x2204('0x5'),0x0),this['set']('isForwardNavigationEnabled',!0x1),this[_0x2204('0xe')](_0x2204('0x17'),!0x1),this[_0x2204('0x1')](_0x2204('0x11'))['to'](this,_0x2204('0x3'),this,_0x2204('0x5'),(_0x3ad1d9,_0xa1f81)=>_0x3ad1d9&&_0xa1f81>0x0),this[_0x2204('0x1')](_0x2204('0x6'))['to'](this,_0x2204('0x3'),this,_0x2204('0x14'),this,_0x2204('0x5'),this,'isNavigationMode',(_0x1b5798,_0x3f9b82,_0x144fd7,_0x5dc6cc)=>{if(!_0x1b5798)return _0xdbfe88(_0x4867e0,'Loading...');if(!_0x144fd7)return _0xdbfe88(_0x4867e0,_0x2204('0xd'));const _0x5b9071=_0xdbfe88(_0x4867e0,'NUMBER_OF_CHANGES',_0x144fd7);return _0x5dc6cc?_0xdbfe88(_0x4867e0,_0x2204('0x9'),[_0x3f9b82+0x1,_0x144fd7]):_0x5b9071;}),_0x419a55[_0x2204('0xe')]({'label':_0xdbfe88(_0x4867e0,_0x2204('0xc')),'tooltip':!0x0,'icon':_0x241840}),_0x403317[_0x2204('0xe')]({'label':_0xdbfe88(_0x4867e0,_0x2204('0x10')),'tooltip':!0x0,'icon':_0x2b81d7}),_0x419a55[_0x2204('0x1')](_0x2204('0xf'))['to'](this,_0x2204('0x17')),_0x403317[_0x2204('0x1')]('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x419a55['on'](_0x2204('0x7'),()=>this[_0x2204('0x19')](_0x2204('0x7'),_0x2204('0x15'))),_0x403317['on'](_0x2204('0x7'),()=>this[_0x2204('0x19')](_0x2204('0x7'),_0x2204('0x16'))),this[_0x2204('0x18')]({'tag':_0x2204('0x8'),'attributes':{'class':['ck',_0x2204('0x0'),_0x2204('0xa')]},'children':[{'tag':_0x2204('0x1a'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':_0x2204('0x1a'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x9d9239['if']('_isStatusLabelVisible',_0x2204('0x2'),_0x1d2d48=>!_0x1d2d48)]},'children':[{'text':_0x9d9239['to'](_0x2204('0x12'),_0x8eb892=>_0x8eb892?_0xdbfe88(_0x4867e0,'EDIT_X_OF_Y_REVISIONS')+':\x20':_0xdbfe88(_0x4867e0,_0x2204('0x4'))+':\x20')}]},{'text':_0x9d9239['to']('_statusText')}]},new _0x2b4d0a(),{'tag':_0x2204('0x8'),'attributes':{'class':[_0x2204('0x13')]},'children':[_0x419a55,_0x403317]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xa272=['addClass','document','ck-editor__editable__loading-overlay','view','pluginName','editing','show','editor','change','removeClass'];(function(_0x34f39d,_0xa272df){const _0x2bbbf6=function(_0x2246eb){while(--_0x2246eb){_0x34f39d['push'](_0x34f39d['shift']());}};_0x2bbbf6(++_0xa272df);}(_0xa272,0x142));const _0x2bbb=function(_0x34f39d,_0xa272df){_0x34f39d=_0x34f39d-0x0;let _0x2bbbf6=_0xa272[_0x34f39d];return _0x2bbbf6;};import{Plugin as _0x480096}from'ckeditor5/src/core';import'../../../theme/revisionviewerloadingoverlay.css';export default class oe extends _0x480096{static get[_0x2bbb('0x2')](){return'RevisionViewerLoadingOverlay';}[_0x2bbb('0x4')](){const _0x23dedd=this[_0x2bbb('0x5')][_0x2bbb('0x3')]['view'];_0x23dedd[_0x2bbb('0x6')](_0x4525c1=>{for(const _0x3050f1 of _0x23dedd[_0x2bbb('0x9')]['roots'])_0x4525c1[_0x2bbb('0x8')]('ck-editor__editable__loading-overlay',_0x3050f1);});}['hide'](){const _0x305104=this[_0x2bbb('0x5')]['editing'][_0x2bbb('0x1')];_0x305104[_0x2bbb('0x6')](_0xbc8884=>{for(const _0x530093 of _0x305104[_0x2bbb('0x9')]['roots'])_0xbc8884[_0x2bbb('0x7')](_0x2bbb('0x0'),_0x530093);});}}
23
+ const _0x5784=['document','roots','hide','change','removeClass','show','addClass','editor','ck-editor__editable__loading-overlay','RevisionViewerLoadingOverlay','editing','view'];(function(_0x4614d7,_0x578457){const _0x2f8e57=function(_0x3f0b8e){while(--_0x3f0b8e){_0x4614d7['push'](_0x4614d7['shift']());}};_0x2f8e57(++_0x578457);}(_0x5784,0x18a));const _0x2f8e=function(_0x4614d7,_0x578457){_0x4614d7=_0x4614d7-0x0;let _0x2f8e57=_0x5784[_0x4614d7];return _0x2f8e57;};import{Plugin as _0x20430e}from'ckeditor5/src/core';import'../../../theme/revisionviewerloadingoverlay.css';export default class ee extends _0x20430e{static get['pluginName'](){return _0x2f8e('0xb');}[_0x2f8e('0x7')](){const _0x39ece3=this['editor'][_0x2f8e('0x0')]['view'];_0x39ece3['change'](_0x4a5193=>{for(const _0x3133cd of _0x39ece3[_0x2f8e('0x2')][_0x2f8e('0x3')])_0x4a5193[_0x2f8e('0x8')](_0x2f8e('0xa'),_0x3133cd);});}[_0x2f8e('0x4')](){const _0x1b46b9=this[_0x2f8e('0x9')][_0x2f8e('0x0')][_0x2f8e('0x1')];_0x1b46b9[_0x2f8e('0x5')](_0x1adb26=>{for(const _0x179ce6 of _0x1b46b9[_0x2f8e('0x2')][_0x2f8e('0x3')])_0x1adb26[_0x2f8e('0x6')](_0x2f8e('0xa'),_0x179ce6);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x650dcd}from'ckeditor5/src/core';import{ButtonView as _0x33dfbf}from'ckeditor5/src/ui';import _0x5c1fcc from'./changesnavigationview';import _0x1c343e from'./../../revisionviewer';import _0x25feaa from'./revisionviewerloadingoverlay';import te from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class d extends _0x650dcd{static get['pluginName'](){return'RevisionViewerUI';}static get['requires'](){return[_0x1c343e,_0x25feaa];}['init'](){const _0x1ff1c8=this['editor'],_0x5176d4=_0x1ff1c8['plugins']['get'](_0x1c343e),_0x3348ff=_0x1ff1c8['plugins']['get'](_0x25feaa),t=_0x1ff1c8['t'];_0x1ff1c8['ui']['componentFactory']['add']('exitToEditing',_0x25ceb1=>{const _0x8b5fbe=new _0x33dfbf(_0x25ceb1);return _0x8b5fbe['set']({'label':t('Back\x20to\x20editing'),'icon':te,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x8b5fbe,'execute',()=>{_0x1ff1c8['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x8b5fbe;}),_0x1ff1c8['ui']['componentFactory']['add']('restoreRevision',_0x19c791=>{const _0x1bd240=new _0x33dfbf(_0x19c791);return _0x1bd240['set']({'label':t('Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x1bd240['bind']('isEnabled')['to'](_0x1ff1c8['commands']['get']('restoreRevision')),this['listenTo'](_0x1bd240,'execute',()=>_0x1ff1c8['execute']('restoreRevision')),_0x1bd240;}),_0x1ff1c8['ui']['componentFactory']['add']('changesNavigation',_0xbfedbf=>{const _0x7fc23c=new _0x5c1fcc(_0xbfedbf),_0x2ee7f3=_0x1ff1c8['commands']['get']('showPreviousChange'),_0xdbe3d6=_0x1ff1c8['commands']['get']('showNextChange');return _0x7fc23c['bind']('isBackwardNavigationEnabled')['to'](_0x2ee7f3,'isEnabled'),_0x7fc23c['bind']('isForwardNavigationEnabled')['to'](_0xdbe3d6,'isEnabled'),_0x7fc23c['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5176d4),this['listenTo'](_0x7fc23c,'execute',(_0x168d65,_0x4b5e96)=>{_0x1ff1c8['execute']('forward'===_0x4b5e96?'showNextChange':'showPreviousChange');}),_0x7fc23c;}),_0x3348ff['show'](),_0x5176d4['on']('change:isReady',(_0x28dab5,_0x1820c9,_0x1ada9c)=>{_0x1ada9c?_0x3348ff['hide']():_0x3348ff['show']();});}}
23
+ const _0xccf2=['isReady','add','requires','hide','restoreRevision','show','showPreviousChange','bind','execute','isEnabled','commands','closeRevisionViewerCallback','Restore\x20this\x20revision','currentChangeNumber','pluginName','set','showNextChange','revisionHistory','isBackwardNavigationEnabled','numberOfChanges','isNavigationMode','ck-revision-history-ui__back-to-editing','listenTo','forward','exitToEditing','plugins','init','componentFactory','config','get','changesNavigation','RevisionViewerUI','editor'];(function(_0x4d6742,_0xccf279){const _0x2d91f7=function(_0x441421){while(--_0x441421){_0x4d6742['push'](_0x4d6742['shift']());}};_0x2d91f7(++_0xccf279);}(_0xccf2,0x1a9));const _0x2d91=function(_0x4d6742,_0xccf279){_0x4d6742=_0x4d6742-0x0;let _0x2d91f7=_0xccf2[_0x4d6742];return _0x2d91f7;};import{Plugin as _0x11e488}from'ckeditor5/src/core';import{ButtonView as _0x18cca8}from'ckeditor5/src/ui';import _0x394cc7 from'./changesnavigationview';import _0x12f414 from'./../../revisionviewer';import _0x31786a from'./revisionviewerloadingoverlay';import{getTranslation as _0x38855e}from'../../utils/common-translations';import _0xedc1b6 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x11e488{static get[_0x2d91('0x12')](){return _0x2d91('0x2');}static get[_0x2d91('0x6')](){return[_0x12f414,_0x31786a];}[_0x2d91('0x1e')](){const _0x458160=this[_0x2d91('0x3')],_0x4de31c=_0x458160[_0x2d91('0x1d')][_0x2d91('0x0')](_0x12f414),_0x1f60b8=_0x458160[_0x2d91('0x1d')][_0x2d91('0x0')](_0x31786a);_0x458160['ui']['componentFactory'][_0x2d91('0x5')](_0x2d91('0x1c'),_0x19375a=>{const _0x395f39=new _0x18cca8(_0x19375a);return _0x395f39[_0x2d91('0x13')]({'label':_0x38855e(_0x19375a,'Back\x20to\x20editing'),'icon':_0xedc1b6,'withText':!0x0,'tooltip':!0x0,'class':_0x2d91('0x19')}),this[_0x2d91('0x1a')](_0x395f39,_0x2d91('0xc'),()=>{_0x458160[_0x2d91('0x20')]['get'](_0x2d91('0x15'))[_0x2d91('0xf')]();}),_0x395f39;}),_0x458160['ui']['componentFactory'][_0x2d91('0x5')](_0x2d91('0x8'),_0x4c357a=>{const _0x48cbe0=new _0x18cca8(_0x4c357a);return _0x48cbe0['set']({'label':_0x38855e(_0x4c357a,_0x2d91('0x10')),'withText':!0x0,'tooltip':!0x0}),_0x48cbe0[_0x2d91('0xb')](_0x2d91('0xd'))['to'](_0x458160[_0x2d91('0xe')][_0x2d91('0x0')](_0x2d91('0x8'))),this[_0x2d91('0x1a')](_0x48cbe0,_0x2d91('0xc'),()=>_0x458160[_0x2d91('0xc')](_0x2d91('0x8'))),_0x48cbe0;}),_0x458160['ui'][_0x2d91('0x1f')][_0x2d91('0x5')](_0x2d91('0x1'),_0x37d112=>{const _0x838921=new _0x394cc7(_0x37d112),_0x2ec15e=_0x458160[_0x2d91('0xe')][_0x2d91('0x0')](_0x2d91('0xa')),_0x531302=_0x458160['commands'][_0x2d91('0x0')](_0x2d91('0x14'));return _0x838921['bind'](_0x2d91('0x16'))['to'](_0x2ec15e,_0x2d91('0xd')),_0x838921[_0x2d91('0xb')]('isForwardNavigationEnabled')['to'](_0x531302,_0x2d91('0xd')),_0x838921[_0x2d91('0xb')](_0x2d91('0x4'),_0x2d91('0x11'),_0x2d91('0x17'),_0x2d91('0x18'))['to'](_0x4de31c),this['listenTo'](_0x838921,_0x2d91('0xc'),(_0x430665,_0x519080)=>{_0x458160['execute'](_0x2d91('0x1b')===_0x519080?'showNextChange':_0x2d91('0xa'));}),_0x838921;}),_0x1f60b8['show'](),_0x4de31c['on']('change:isReady',(_0x3a6bde,_0x34afa1,_0x455dc9)=>{_0x455dc9?_0x1f60b8[_0x2d91('0x7')]():_0x1f60b8[_0x2d91('0x9')]();});}}
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ export function getTranslation(_0x376483,_0x37e706,_0x5a6500){const t=_0x376483['t'];switch(_0x37e706){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'},_0x5a6500);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5a6500);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'});}}
@@ -1,9 +1,3 @@
1
- :root {
2
- --ck-color-suggestion-box-deletion-border: hsl(345, 62%, 60%);
3
- --ck-color-suggestion-box-insertion-border: hsl(128, 62%, 60%);
4
- --ck-inline-annotation-container-width: auto;
5
- }
6
-
7
1
  .ck .ck-revision-change {
8
2
  padding: var(--ck-spacing-small) var(--ck-spacing-large);
9
3
  border-top-left-radius: var(--ck-border-radius);