@ckeditor/ckeditor5-revision-history 34.1.0 → 34.2.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 (39) hide show
  1. package/build/revision-history.js +1 -1
  2. package/build/translations/es.js +1 -1
  3. package/build/translations/fr.js +1 -1
  4. package/build/translations/it.js +1 -1
  5. package/build/translations/pt-br.js +1 -1
  6. package/lang/translations/es.po +2 -1
  7. package/lang/translations/fr.po +2 -1
  8. package/lang/translations/it.po +2 -1
  9. package/lang/translations/pt-br.po +2 -1
  10. package/package.json +7 -7
  11. package/src/changeitem.js +1 -1
  12. package/src/editor/revisionviewereditor.js +1 -1
  13. package/src/editor/revisionviewereditorui.js +1 -1
  14. package/src/editor/revisionviewereditoruiview.js +1 -1
  15. package/src/revision.js +1 -1
  16. package/src/revisiondiff.js +1 -1
  17. package/src/revisionhistory.js +1 -1
  18. package/src/revisionsrepository.js +1 -1
  19. package/src/revisiontracker.js +1 -1
  20. package/src/revisionviewer.js +1 -1
  21. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  22. package/src/ui/revision/revisionauthorview.js +1 -1
  23. package/src/ui/revision/revisionnameview.js +1 -1
  24. package/src/ui/revision/revisionview.js +1 -1
  25. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  26. package/src/ui/revision/subrevisionview.js +1 -1
  27. package/src/ui/revision/utils.js +1 -1
  28. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  29. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  30. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  31. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  32. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  33. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  34. package/src/ui/revisionssidebar/utils.js +1 -1
  35. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  36. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  37. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  38. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  39. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x10c1=['ck-revision-history-sidebar__revision__actions','_action','isVisible','source','isActionsDropdownOpen','isEnabled','name','class','isReady','Show\x20more\x20items','isOpen','bind','stopPropagation','set','Restore\x20this\x20revision','map','Name\x20this\x20revision','model','ck-on','locale','button','function'];(function(_0x566bb0,_0x10c18a){const _0x1a76bd=function(_0x46ebaf){while(--_0x46ebaf){_0x566bb0['push'](_0x566bb0['shift']());}};_0x1a76bd(++_0x10c18a);}(_0x10c1,0x1cf));const _0x1a76=function(_0x566bb0,_0x10c18a){_0x566bb0=_0x566bb0-0x0;let _0x1a76bd=_0x10c1[_0x566bb0];return _0x1a76bd;};import{Collection as _0x4cbe89}from'ckeditor5/src/utils';import{Model as _0x3d24c4,addListToDropdown as _0x5d0791,createDropdown as _0x4db876}from'ckeditor5/src/ui';import{getTranslation as _0x1f1610}from'../../utils/common-translations';import _0x174df2 from'@ckeditor/ckeditor5-core/theme/icons/three-vertical-dots.svg';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x55897f,_0x46eb2e){const _0x46e303=_0x55897f['bindTemplate'],_0x782ac5=_0x55897f['locale'],_0xae4237=_0x4db876(_0x782ac5);_0xae4237['panelPosition']='sw';const _0x11740c=function(_0x1e99a8,_0x5ec687){const _0x1f1032=function(_0x303e9a,_0x2b3b6f){const _0xedb3a7=_0x303e9a[_0x1a76('0x12')],_0x1f3de2={'Compare\x20against\x20selected':_0x1f1610(_0xedb3a7,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x1f1610(_0xedb3a7,_0x1a76('0xf')),'Restore\x20this\x20revision':_0x1f1610(_0xedb3a7,_0x1a76('0xd'))};return _0x2b3b6f[_0x1a76('0xe')](_0x4e2ebc=>{const _0x13b224=_0x1f3de2[_0x4e2ebc[_0x1a76('0x5')]];return _0x13b224&&_0x13b224!==_0x4e2ebc['name']&&(_0x4e2ebc['name']=_0x13b224),_0x4e2ebc;});}(_0x1e99a8,_0x5ec687),_0x89a828=new _0x4cbe89();for(const _0x5dcfa8 of _0x1f1032){const _0x236bc8={'type':_0x1a76('0x13'),'model':new _0x3d24c4({'label':_0x5dcfa8[_0x1a76('0x5')],'class':_0x5dcfa8[_0x1a76('0x6')],'withText':!0x0,'_action':_0x5dcfa8['action']})};_0x236bc8[_0x1a76('0x10')][_0x1a76('0xa')](_0x1a76('0x1'))['to'](_0x1e99a8,_0x1a76('0x3'),_0x1ea797=>_0x1a76('0x14')!=typeof _0x5dcfa8[_0x1a76('0x1')]||(!_0x1ea797||_0x5dcfa8[_0x1a76('0x1')](_0x1e99a8))),_0x236bc8[_0x1a76('0x10')][_0x1a76('0xa')](_0x1a76('0x4'))['to'](_0x1e99a8,_0x1a76('0x3'),_0x1fe634=>_0x1a76('0x14')!=typeof _0x5dcfa8[_0x1a76('0x4')]||(!_0x1fe634||_0x5dcfa8[_0x1a76('0x4')](_0x1e99a8))),_0x89a828['add'](_0x236bc8);}return _0x89a828;}(_0x55897f,_0x46eb2e);return _0x55897f[_0x1a76('0xa')]('isActionsDropdownOpen')['to'](_0xae4237,_0x1a76('0x9')),_0xae4237['buttonView'][_0x1a76('0xc')]({'label':_0x1f1610(_0x782ac5,_0x1a76('0x8')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x174df2}),_0xae4237['extendTemplate']({'attributes':{'class':[_0x1a76('0x15'),_0x46e303['if']('isActionsDropdownOpen',_0x1a76('0x11'))]},'on':{'click':_0x46e303['to'](_0x2f0d41=>_0x2f0d41[_0x1a76('0xb')]())}}),_0xae4237['on']('execute',_0x5517aa=>{_0x55897f[_0x1a76('0x7')]&&_0x1a76('0x14')==typeof _0x5517aa[_0x1a76('0x2')][_0x1a76('0x0')]&&_0x5517aa[_0x1a76('0x2')][_0x1a76('0x0')](_0x55897f);}),_0x5d0791(_0xae4237,_0x11740c),_0xae4237;}
23
+ const _0x43ff=['action','name','isVisible','function','map','panelPosition','Compare\x20against\x20selected','buttonView','button','set','source','locale','Restore\x20this\x20revision','stopPropagation','isEnabled','ck-revision-history-sidebar__revision__actions','class','isOpen','isActionsDropdownOpen','add','bind','model','extendTemplate','Name\x20this\x20revision','bindTemplate'];(function(_0x294fd2,_0x43ff8f){const _0x1faf48=function(_0x33e9c0){while(--_0x33e9c0){_0x294fd2['push'](_0x294fd2['shift']());}};_0x1faf48(++_0x43ff8f);}(_0x43ff,0x111));const _0x1faf=function(_0x294fd2,_0x43ff8f){_0x294fd2=_0x294fd2-0x0;let _0x1faf48=_0x43ff[_0x294fd2];return _0x1faf48;};import{Collection as _0x448c8e}from'ckeditor5/src/utils';import{Model as _0x418c89,addListToDropdown as _0x3e1506,createDropdown as _0x1a6e32}from'ckeditor5/src/ui';import{getTranslation as _0x50c2c0}from'../../utils/common-translations';import _0x5b2dc8 from'@ckeditor/ckeditor5-core/theme/icons/three-vertical-dots.svg';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x28ab80,_0x4a97f4){const _0x47c60d=_0x28ab80[_0x1faf('0x1')],_0x456ca6=_0x28ab80[_0x1faf('0xd')],_0x35b54e=_0x1a6e32(_0x456ca6);_0x35b54e[_0x1faf('0x7')]='sw';const _0x561f06=function(_0x22760c,_0x1aac6b){const _0x25f2cd=function(_0x509028,_0x58b232){const _0x41ecaf=_0x509028['locale'],_0x598e5c={'Compare\x20against\x20selected':_0x50c2c0(_0x41ecaf,_0x1faf('0x8')),'Name\x20this\x20revision':_0x50c2c0(_0x41ecaf,_0x1faf('0x0')),'Restore\x20this\x20revision':_0x50c2c0(_0x41ecaf,_0x1faf('0xe'))};return _0x58b232[_0x1faf('0x6')](_0x259e57=>{const _0x116e0b=_0x598e5c[_0x259e57[_0x1faf('0x3')]];return _0x116e0b&&_0x116e0b!==_0x259e57[_0x1faf('0x3')]&&(_0x259e57[_0x1faf('0x3')]=_0x116e0b),_0x259e57;});}(_0x22760c,_0x1aac6b),_0x5682b9=new _0x448c8e();for(const _0x38b977 of _0x25f2cd){const _0x161a45={'type':_0x1faf('0xa'),'model':new _0x418c89({'label':_0x38b977[_0x1faf('0x3')],'class':_0x38b977[_0x1faf('0x12')],'withText':!0x0,'_action':_0x38b977[_0x1faf('0x2')]})};_0x161a45[_0x1faf('0x17')][_0x1faf('0x16')](_0x1faf('0x4'))['to'](_0x22760c,'isActionsDropdownOpen',_0x17608d=>_0x1faf('0x5')!=typeof _0x38b977[_0x1faf('0x4')]||(!_0x17608d||_0x38b977['isVisible'](_0x22760c))),_0x161a45[_0x1faf('0x17')][_0x1faf('0x16')](_0x1faf('0x10'))['to'](_0x22760c,_0x1faf('0x14'),_0x17eee8=>_0x1faf('0x5')!=typeof _0x38b977['isEnabled']||(!_0x17eee8||_0x38b977['isEnabled'](_0x22760c))),_0x5682b9[_0x1faf('0x15')](_0x161a45);}return _0x5682b9;}(_0x28ab80,_0x4a97f4);return _0x28ab80[_0x1faf('0x16')](_0x1faf('0x14'))['to'](_0x35b54e,_0x1faf('0x13')),_0x35b54e[_0x1faf('0x9')][_0x1faf('0xb')]({'label':_0x50c2c0(_0x456ca6,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x5b2dc8}),_0x35b54e[_0x1faf('0x18')]({'attributes':{'class':[_0x1faf('0x11'),_0x47c60d['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x47c60d['to'](_0x2d1d07=>_0x2d1d07[_0x1faf('0xf')]())}}),_0x35b54e['on']('execute',_0x2e9179=>{_0x28ab80['isReady']&&'function'==typeof _0x2e9179['source']['_action']&&_0x2e9179[_0x1faf('0xc')]['_action'](_0x28ab80);}),_0x3e1506(_0x35b54e,_0x561f06),_0x35b54e;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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});}}
23
+ const _0x1bdc=['name','push','set','0\x200\x2011\x2010','Revision\x20author','ck-revision-history-sidebar__revision-author_creator'];(function(_0x4847a7,_0x1bdcc4){const _0x1cd011=function(_0x4424a0){while(--_0x4424a0){_0x4847a7['push'](_0x4847a7['shift']());}};_0x1cd011(++_0x1bdcc4);}(_0x1bdc,0x193));const _0x1cd0=function(_0x4847a7,_0x1bdcc4){_0x4847a7=_0x4847a7-0x0;let _0x1cd011=_0x1bdc[_0x4847a7];return _0x1cd011;};import{View as _0x279763,IconView as _0x299155}from'ckeditor5/src/ui';import{getTranslation as _0x5c24ac}from'../../utils/common-translations';import _0x24e95f from'../../../theme/icons/user.svg';import'../../../theme/revision/revisionauthor.css';export default class ti extends _0x279763{constructor(_0x3146c5,_0x212af8,_0x5889b4){super(_0x3146c5);const _0x4b8f72=new _0x299155(_0x3146c5);_0x4b8f72[_0x1cd0('0x1')]({'content':_0x24e95f,'viewBox':_0x1cd0('0x2')});const _0x4d00d0=['ck','ck-revision-history-sidebar__revision-author'];_0x5889b4&&_0x4d00d0[_0x1cd0('0x0')](_0x1cd0('0x4'));const _0x504923=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':_0x5c24ac(_0x3146c5,_0x5889b4?'Revision\x20creator':_0x1cd0('0x3'))},'children':[_0x4b8f72,_0x212af8[_0x1cd0('0x5')]]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4d00d0},'children':_0x504923});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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')]}});}}
23
+ var _0x5247=['ck-revision-history-sidebar__revision-name','extendTemplate','Revision\x20name','span'];(function(_0x47cd7e,_0x52478c){var _0x3d1b1d=function(_0x188904){while(--_0x188904){_0x47cd7e['push'](_0x47cd7e['shift']());}};_0x3d1b1d(++_0x52478c);}(_0x5247,0x191));var _0x3d1b=function(_0x47cd7e,_0x52478c){_0x47cd7e=_0x47cd7e-0x0;var _0x3d1b1d=_0x5247[_0x47cd7e];return _0x3d1b1d;};import{LabeledFieldView as _0x2c5059}from'ckeditor5/src/ui';import{getTranslation as _0x4345}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class os extends _0x2c5059{constructor(_0x50a665,..._0x2e045f){super(_0x50a665,..._0x2e045f),this['set']({'label':_0x4345(_0x50a665,_0x3d1b('0x1'))}),this[_0x3d1b('0x0')]({'tag':_0x3d1b('0x2'),'attributes':{'class':[_0x3d1b('0x3')]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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);
23
+ const _0x1653=['element','isActionsDropdownOpen','length','ck-revision-history-sidebar__actions_dropdown_open','closest','isEnabled','ck-revision-history-sidebar__revision__controls-wrapper','setName','isReady','change','fieldView','unshift','set','listenTo','isSelected','select','ck-disabled','isConfirm','uiLanguage','220','ck-revision-history-sidebar__revision-wrapper','name','bind','bindTemplate','revisionActionsView','value','ck-revision-history-sidebar__revision__date','ck-reset','createdAt','ck-revision-history-sidebar__revision','render','map','unhighlight','isHighlighted','div','setTemplate','revisionNameView','_createdAtFormatted','from','ck-revision-history-sidebar__revision_selected','filter','placeholder','creator'];(function(_0x28760c,_0x165382){const _0xabcb66=function(_0x1b301f){while(--_0x1b301f){_0x28760c['push'](_0x28760c['shift']());}};_0xabcb66(++_0x165382);}(_0x1653,0x10e));const _0xabcb=function(_0x28760c,_0x165382){_0x28760c=_0x28760c-0x0;let _0xabcb66=_0x1653[_0x28760c];return _0xabcb66;};import{View as _0x4d5af6,createLabeledInputText as _0xa338c2}from'ckeditor5/src/ui';import{mix as _0x448c9d}from'ckeditor5/src/utils';import{ConfirmMixin as _0x2f1517}from'ckeditor5-collaboration/src/collaboration-core';import _0x4dcc32 from'./revisionnameview';import _0xcdb0ff from'./revisionauthorview';import{dateToPrettyFormat as _0x590f04}from'./utils';import{createActionsDropdownView as _0x5ae718}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ci extends _0x4d5af6{constructor(_0x31a77f,_0xe04423,_0x55af8f){super(_0x31a77f);const _0x5e1930=this[_0xabcb('0xb')],_0x4b0c65=function(_0x3a37ff,_0x2ca10a){const _0x16e0e7=Array[_0xabcb('0x1a')](_0x2ca10a['authors'])[_0xabcb('0x1c')](_0x48df9a=>_0x48df9a!=_0x2ca10a['creator']);return _0x2ca10a[_0xabcb('0x1e')]&&_0x16e0e7[_0xabcb('0x2a')](_0x2ca10a[_0xabcb('0x1e')]),_0x16e0e7[_0xabcb('0x13')](_0x1a82b3=>new _0xcdb0ff(_0x3a37ff,_0x1a82b3,_0x1a82b3==_0x2ca10a['creator']));}(_0x31a77f,_0xe04423);this['_revision']=_0xe04423,this['id']=_0xe04423['id'],this['bind']('name',_0xabcb('0x10'))['to'](_0xe04423),this['set'](_0xabcb('0x2'),!0x1),this[_0xabcb('0x0')](_0xabcb('0x15'),!0x1),this['set'](_0xabcb('0x20'),!0x1),this['set'](_0xabcb('0x27'),!0x1),this[_0xabcb('0xa')](_0xabcb('0x19'))['to'](this,_0xabcb('0x10'),_0x148b7c=>_0x148b7c?_0x590f04(_0x31a77f[_0xabcb('0x6')],_0x148b7c):null),this['set']('isEnabled',!0x1),this['revisionNameView']=new _0x4dcc32(_0x31a77f,_0xa338c2),this[_0xabcb('0x18')][_0xabcb('0x29')]['extendTemplate']({'attributes':{'maxlength':_0xabcb('0x7')}}),this['revisionNameView']['fieldView'][_0xabcb('0xa')](_0xabcb('0xd'),_0xabcb('0x1d'))['to'](this,_0xabcb('0x9'),'_createdAtFormatted'),this[_0xabcb('0x18')]['bind'](_0xabcb('0x24'))['to'](this,_0xabcb('0x2'),this,'isEnabled',(_0x57b082,_0x22b41a)=>_0x57b082&&_0x22b41a),this[_0xabcb('0xc')]=_0x55af8f&&_0x55af8f[_0xabcb('0x21')]?_0x5ae718(this,_0x55af8f):'',this[_0xabcb('0xc')]['bind'](_0xabcb('0x24'))['to'](this),this[_0xabcb('0x17')]({'tag':_0xabcb('0x16'),'attributes':{'class':['ck',_0xabcb('0xf'),_0xabcb('0x8'),_0x5e1930['if'](_0xabcb('0x5'),'ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck',_0xabcb('0xf'),_0xabcb('0x11'),_0x5e1930['if'](_0xabcb('0x24'),_0xabcb('0x4'),_0x451226=>!_0x451226),_0x5e1930['if'](_0xabcb('0x2'),_0xabcb('0x1b')),_0x5e1930['if'](_0xabcb('0x15'),'ck-revision-history-sidebar__revision_highlighted'),_0x5e1930['if'](_0xabcb('0x20'),_0xabcb('0x22'))]},'children':[this['revisionNameView'],{'tag':'span','attributes':{'class':['ck',_0xabcb('0xe')]},'children':[{'text':_0x5e1930['to']('_createdAtFormatted')}]},{'tag':'div','attributes':{'class':['ck',_0xabcb('0x25')]},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x4b0c65}]},this[_0xabcb('0xc')]],'on':{'click':_0x5e1930['to'](_0x36ab9e=>{_0x36ab9e['srcElement'][_0xabcb('0x23')]('.ck-thread__remove-confirm')||this[_0xabcb('0x27')]&&this[_0xabcb('0x24')]&&this['fire'](_0xabcb('0x3'),{'id':this['id']});})}}]});}[_0xabcb('0x12')](){super[_0xabcb('0x12')]();const _0x3e6da2=this['revisionNameView']['fieldView'][_0xabcb('0x1f')];this[_0xabcb('0x1')](_0x3e6da2,_0xabcb('0x28'),()=>{this['fire'](_0xabcb('0x26'),{'id':this['id'],'name':_0x3e6da2[_0xabcb('0xd')]});});}[_0xabcb('0x3')](){this[_0xabcb('0x2')]=!0x0;}['deselect'](){this[_0xabcb('0x2')]=!0x1;}['highlight'](){this[_0xabcb('0x15')]=!0x0;}[_0xabcb('0x14')](){this['isHighlighted']=!0x1;}}_0x448c9d(ci,_0x2f1517);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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')];}}
23
+ const _0x1ca1=['span','set','ck-revision-history-sidebar__subrevision-collapser__inner','false','toggle','setTemplate','true','ck-revision-history-sidebar__subrevision-collapser','_isCollapsed','isVisible','click','ck-revision-history-sidebar__subrevision-collapser_collapsed','ck-hidden','bindTemplate'];(function(_0x5dea1f,_0x1ca1c8){const _0x584136=function(_0x2c2cf0){while(--_0x2c2cf0){_0x5dea1f['push'](_0x5dea1f['shift']());}};_0x584136(++_0x1ca1c8);}(_0x1ca1,0x1ee));const _0x5841=function(_0x5dea1f,_0x1ca1c8){_0x5dea1f=_0x5dea1f-0x0;let _0x584136=_0x1ca1[_0x5dea1f];return _0x584136;};import{View as _0x1f55e0}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class ls extends _0x1f55e0{constructor(_0x342d67){super(_0x342d67);const _0x3d7f50=this[_0x5841('0x9')];this[_0x5841('0xb')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x5841('0x1')]({'tag':'span','attributes':{'class':['ck',_0x5841('0x3'),_0x3d7f50['if'](_0x5841('0x5'),_0x5841('0x8'),_0x78cabc=>!_0x78cabc),_0x3d7f50['if'](_0x5841('0x4'),_0x5841('0x7'))],'role':'button','aria-pressed':_0x3d7f50['to']('_isCollapsed',_0x77958c=>_0x77958c?_0x5841('0xd'):_0x5841('0x2'))},'children':[{'tag':_0x5841('0xa'),'attributes':{'class':['ck',_0x5841('0xc')]}}],'on':{'click':_0x3d7f50['to'](_0x5841('0x6'))}});}[_0x5841('0x0')](){this[_0x5841('0x4')]=!this['_isCollapsed'];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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;}}
23
+ const _0x4819=['fire','select','_createdAtFormatted','createdAt','ck-revision-history-sidebar__revision__date','uiLanguage','ck-reset','set','isSelected','_parentRevisionId','ck-revision-history-sidebar__revision_selected','author','ck-revision-history-sidebar__subrevision','ck-revision-history-sidebar__revision-authors','bind'];(function(_0x31075d,_0x48191b){const _0x579b58=function(_0xf4bc8){while(--_0xf4bc8){_0x31075d['push'](_0x31075d['shift']());}};_0x579b58(++_0x48191b);}(_0x4819,0x132));const _0x579b=function(_0x31075d,_0x48191b){_0x31075d=_0x31075d-0x0;let _0x579b58=_0x4819[_0x31075d];return _0x579b58;};import{View as _0x4958b6}from'ckeditor5/src/ui';import _0x2c62cf from'./revisionauthorview';import{dateToPrettyFormat as _0x2f7c11}from'./utils';import'../../../theme/revision/subrevision.css';export default class lt extends _0x4958b6{constructor(_0x56a990,_0x509ffb,_0x24f152){super(_0x56a990);const _0x4b2acd=this['bindTemplate'];this['id']=_0x509ffb['id'],this['bind'](_0x579b('0xc'))['to'](_0x509ffb),this[_0x579b('0x1')](_0x579b('0x2'),!0x1),this[_0x579b('0x8')](_0x579b('0xb'))['to'](this,_0x579b('0xc'),_0x2b533f=>_0x2b533f?_0x2f7c11(_0x56a990[_0x579b('0xe')],_0x2b533f):null),this['_parentRevisionId']=_0x24f152,this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x579b('0x0'),'ck-revision-history-sidebar__revision',_0x579b('0x6'),_0x4b2acd['if']('isSelected',_0x579b('0x4'))]},'children':[{'tag':'span','attributes':{'class':['ck',_0x579b('0xd')]},'children':[{'text':_0x4b2acd['to'](_0x579b('0xb'))}]},{'tag':'ul','attributes':{'class':['ck',_0x579b('0x7')]},'children':[new _0x2c62cf(_0x56a990,_0x509ffb[_0x579b('0x5')],!0x0)]}],'on':{'click':_0x4b2acd['to'](this[_0x579b('0xa')][_0x579b('0x8')](this))}});}[_0x579b('0xa')](){this[_0x579b('0x2')]=!0x0,this[_0x579b('0x9')](_0x579b('0xa'),{'parentId':this[_0x579b('0x3')]});}['deselect'](){this[_0x579b('0x2')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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'});}
23
+ var _0x1fa1=['long','numeric'];(function(_0x1c02fb,_0x1fa1fa){var _0x3243a8=function(_0x9efad0){while(--_0x9efad0){_0x1c02fb['push'](_0x1c02fb['shift']());}};_0x3243a8(++_0x1fa1fa);}(_0x1fa1,0xd9));var _0x3243=function(_0x1c02fb,_0x1fa1fa){_0x1c02fb=_0x1c02fb-0x0;var _0x3243a8=_0x1fa1[_0x1c02fb];return _0x3243a8;};export function dateToPrettyFormat(_0x3c1dde,_0x448070){return _0x448070['toLocaleDateString'](_0x3c1dde,{'month':_0x3243('0x1'),'day':_0x3243('0x0')})+',\x20'+_0x448070['toLocaleTimeString'](_0x3c1dde,{'hour':'numeric','minute':_0x3243('0x0')});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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;}}
23
+ const _0xd8f6=['execute','reset','ck-revision-history-save-revision-form','shift\x20+\x20tab','setTemplate','selectstart','_focusables','submit','_createRevisionNameInput','revisionNameInputValue','focus','keystrokes','revisionName','focusFirst','arrowright','set','Cancel','form','extendTemplate','type','forEach','input','locale','stopPropagation','ck-responsive-form','value','listenTo','delegate','cancelButtonView','arrowleft','fieldView','focusTracker','cancel','add','arrowdown','element','saveButtonView','_focusCycler','high','render','tab','revisionNameInputView','ck-button-cancel','_createButton'];(function(_0x350f72,_0xd8f64d){const _0x213a79=function(_0x3185d0){while(--_0x3185d0){_0x350f72['push'](_0x350f72['shift']());}};_0x213a79(++_0xd8f64d);}(_0xd8f6,0x143));const _0x213a=function(_0x350f72,_0xd8f64d){_0x350f72=_0x350f72-0x0;let _0x213a79=_0xd8f6[_0x350f72];return _0x213a79;};import{ButtonView as _0x20c589,FocusCycler as _0x2de2b1,LabeledFieldView as _0x1a07f5,View as _0x54a7fc,ViewCollection as _0x391521,createLabeledInputText as _0x25f6d2,injectCssTransitionDisabler as _0x270e50,submitHandler as _0x4a7343}from'ckeditor5/src/ui';import{FocusTracker as _0x36f052,KeystrokeHandler as _0x3d18ab}from'ckeditor5/src/utils';import{getTranslation as _0x162478}from'../../utils/common-translations';import _0x4b06c0 from'@ckeditor/ckeditor5-core/theme/icons/check.svg';import _0x1dad8b 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 xt extends _0x54a7fc{constructor(_0x5e37a5){super(_0x5e37a5),this[_0x213a('0x10')]=new _0x36f052(),this['keystrokes']=new _0x3d18ab(),this[_0x213a('0x0')](_0x213a('0x26'),''),this[_0x213a('0x1a')]=this[_0x213a('0x25')](),this[_0x213a('0x15')]=this[_0x213a('0x1c')](_0x162478(_0x5e37a5,'Save'),_0x4b06c0,'ck-button-save'),this['saveButtonView'][_0x213a('0x4')]=_0x213a('0x24'),this[_0x213a('0xd')]=this[_0x213a('0x1c')](_0x162478(_0x5e37a5,_0x213a('0x1')),_0x1dad8b,_0x213a('0x1b'),_0x213a('0x11')),this[_0x213a('0x23')]=new _0x391521(),this[_0x213a('0x16')]=new _0x2de2b1({'focusables':this[_0x213a('0x23')],'focusTracker':this['focusTracker'],'keystrokeHandler':this[_0x213a('0x28')],'actions':{'focusPrevious':_0x213a('0x20'),'focusNext':_0x213a('0x19')}}),this[_0x213a('0x21')]({'tag':_0x213a('0x2'),'attributes':{'class':['ck',_0x213a('0x1f'),_0x213a('0x9')],'tabindex':'-1'},'children':[this[_0x213a('0x1a')],this[_0x213a('0x15')],this['cancelButtonView']]}),_0x270e50(this);}[_0x213a('0x18')](){super[_0x213a('0x18')](),_0x4a7343({'view':this}),([this['revisionNameInputView'],this[_0x213a('0x15')],this[_0x213a('0xd')]][_0x213a('0x5')](_0x5b0c05=>{this['_focusables'][_0x213a('0x12')](_0x5b0c05),this[_0x213a('0x10')][_0x213a('0x12')](_0x5b0c05[_0x213a('0x14')]);}),this[_0x213a('0x28')][_0x213a('0xb')](this['element']));const _0x5b7a09=_0x15e645=>_0x15e645['stopPropagation']();this['keystrokes'][_0x213a('0x0')](_0x213a('0x2b'),_0x5b7a09),this[_0x213a('0x28')][_0x213a('0x0')](_0x213a('0xe'),_0x5b7a09),this[_0x213a('0x28')][_0x213a('0x0')]('arrowup',_0x5b7a09),this[_0x213a('0x28')][_0x213a('0x0')](_0x213a('0x13'),_0x5b7a09),this[_0x213a('0xb')](this[_0x213a('0x1a')][_0x213a('0x14')],_0x213a('0x22'),(_0x51c689,_0x392633)=>{_0x392633[_0x213a('0x8')]();},{'priority':_0x213a('0x17')});}[_0x213a('0x27')](){this[_0x213a('0x16')][_0x213a('0x2a')]();}get['revisionName'](){return this[_0x213a('0x1a')][_0x213a('0xf')][_0x213a('0x14')][_0x213a('0xa')]['trim']();}set[_0x213a('0x29')](_0x24d2e6){this['revisionNameInputView'][_0x213a('0xf')][_0x213a('0x14')][_0x213a('0xa')]=_0x24d2e6['trim']();}[_0x213a('0x1e')](){this[_0x213a('0x1a')][_0x213a('0xf')]['element'][_0x213a('0xa')]='';}[_0x213a('0x25')](){const _0x96d215=new _0x1a07f5(this['locale'],_0x25f6d2),_0x4b6326=_0x96d215[_0x213a('0xf')];return _0x4b6326[_0x213a('0x3')]({'attributes':{'maxlength':'220'}}),_0x96d215['label']=_0x162478(this[_0x213a('0x7')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x4b6326['on'](_0x213a('0x6'),()=>{this[_0x213a('0x26')]=_0x4b6326[_0x213a('0x14')]['value']['trim']();}),_0x96d215;}['_createButton'](_0xd6da05,_0x2bc5b4,_0x32dc77,_0x206c07){const _0x484f7b=new _0x20c589(this[_0x213a('0x7')]);return _0x484f7b[_0x213a('0x0')]({'label':_0xd6da05,'icon':_0x2bc5b4,'tooltip':!0x0}),_0x484f7b[_0x213a('0x3')]({'attributes':{'class':_0x32dc77}}),_0x206c07&&_0x484f7b[_0x213a('0xc')](_0x213a('0x1d'))['to'](this,_0x206c07),_0x484f7b;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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;});}}
23
+ const _0x383c=['change:isOpen','isEnabled','set','saveButtonView','Revision\x20history','RevisionTracker','plugins','init','add','requires','length','children','isOpen','revisionName','focus','isReady','bind','panelView','remove','execute','isReadOnly','get','revisionHistory','config','submit','componentFactory','cancel','Open\x20revision\x20history','RevisionHistoryUI','pluginName','reset','showRevisionViewerCallback'];(function(_0x4d8ba3,_0x383c92){const _0x12fec4=function(_0x2de07d){while(--_0x2de07d){_0x4d8ba3['push'](_0x4d8ba3['shift']());}};_0x12fec4(++_0x383c92);}(_0x383c,0x1aa));const _0x12fe=function(_0x4d8ba3,_0x383c92){_0x4d8ba3=_0x4d8ba3-0x0;let _0x12fec4=_0x383c[_0x4d8ba3];return _0x12fec4;};import{Plugin as _0x1a3240}from'ckeditor5/src/core';import{ListView as _0x2ef004,ListItemView as _0x28aa03,ButtonView as _0x1911c9,createDropdown as _0x3c1042}from'ckeditor5/src/ui';import _0xf09417 from'../../revisiontracker';import _0x3504e0 from'./revisionhistorysaverevisionformview';import _0x3cd290 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x2950ec}from'../../utils/common-translations';export default class y extends _0x1a3240{static get[_0x12fe('0x13')](){return _0x12fe('0x12');}static get[_0x12fe('0x1f')](){return[_0xf09417];}[_0x12fe('0x1d')](){const _0x979b53=this['editor'],_0x36f399=_0x979b53[_0x12fe('0x1c')][_0x12fe('0xb')](_0x12fe('0x1b'));_0x979b53['ui'][_0x12fe('0xf')][_0x12fe('0x1e')](_0x12fe('0xc'),_0x4ada74=>{const _0xbe0f7d=_0x3c1042(_0x4ada74),_0x9965d=_0xbe0f7d[_0x12fe('0x7')][_0x12fe('0x1')],_0x2db05c=new _0x2ef004(_0x4ada74),_0x6e4a12=new _0x28aa03(_0x4ada74),_0x396adb=new _0x1911c9(_0x4ada74),_0x316ee9=new _0x28aa03(_0x4ada74),_0x35cd02=new _0x1911c9(_0x4ada74),_0x173194=new _0x3504e0(_0x4ada74);function _0x5cfbfa(){_0x9965d[_0x12fe('0x0')]&&_0x9965d[_0x12fe('0x8')](0x0),_0x9965d[_0x12fe('0x1e')](_0x2db05c);}function _0x484680(){_0xbe0f7d[_0x12fe('0x2')]=!0x1,_0x979b53['editing']['view'][_0x12fe('0x4')]();}return _0xbe0f7d[_0x12fe('0x6')](_0x12fe('0x17'))['to'](_0x36f399,_0x12fe('0x5'),_0x36f399,_0x12fe('0x17'),_0x979b53,_0x12fe('0xa'),(_0x166e5a,_0x18aaf0,_0x179290)=>_0x166e5a&&_0x18aaf0&&!_0x179290),_0xbe0f7d['buttonView']['set']({'icon':_0x3cd290,'label':_0x2950ec(_0x4ada74,_0x12fe('0x1a')),'tooltip':!0x0}),_0x396adb[_0x12fe('0x18')]({'label':_0x2950ec(_0x4ada74,'Save\x20current\x20revision'),'withText':!0x0}),_0x396adb[_0x12fe('0x6')](_0x12fe('0x17'))['to'](_0x36f399,_0x12fe('0x5'),_0x36f399,_0x12fe('0x17'),_0x979b53,_0x12fe('0xa'),(_0x1afe2e,_0x443dc1,_0x54c9f7)=>_0x1afe2e&&_0x443dc1&&!_0x54c9f7),_0x396adb['on'](_0x12fe('0x9'),()=>function(){_0x9965d['length']&&_0x9965d[_0x12fe('0x8')](0x0),(_0x173194[_0x12fe('0x14')](),_0x9965d[_0x12fe('0x1e')](_0x173194),_0x173194['focus']());}()),_0x35cd02[_0x12fe('0x18')]({'label':_0x2950ec(_0x4ada74,_0x12fe('0x11')),'withText':!0x0}),_0x35cd02['bind']('isEnabled')['to'](_0x36f399,_0x12fe('0x5'),_0x979b53,_0x12fe('0xa'),(_0x385dbc,_0x4aade2)=>_0x385dbc&&!_0x4aade2),_0x35cd02['on']('execute',()=>{_0x979b53[_0x12fe('0xd')][_0x12fe('0xb')]('revisionHistory')[_0x12fe('0x15')](),_0x484680();}),_0x6e4a12[_0x12fe('0x1')]['add'](_0x396adb),_0x316ee9[_0x12fe('0x1')]['add'](_0x35cd02),_0x2db05c['items']['addMany']([_0x6e4a12,_0x316ee9]),_0xbe0f7d['on'](_0x12fe('0x16'),()=>_0x5cfbfa()),_0x173194[_0x12fe('0x19')]['bind'](_0x12fe('0x17'))['to'](_0x36f399,'isReady',_0x36f399,_0x12fe('0x17'),_0x979b53,_0x12fe('0xa'),(_0x3b5c43,_0x17291f,_0x9b6168)=>_0x3b5c43&&_0x17291f&&!_0x9b6168),_0x173194['on'](_0x12fe('0xe'),()=>(_0x979b53[_0x12fe('0x1c')][_0x12fe('0xb')](_0xf09417)['saveRevision']({'name':_0x173194[_0x12fe('0x3')]}),void _0x484680())),_0x173194['on'](_0x12fe('0x10'),()=>_0x5cfbfa()),_0x173194['render'](),_0x5cfbfa(),_0xbe0f7d;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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')];
23
+ const _0x3189=['_revisionViewer','ready','fieldView','compareAgainstSelected','select','isReady','_handleEditorDataReady','selectRevision','pluginName','change:diff','get','name','length','compare','map','newRevisionId','diff','timePeriodViews','revisionHistory.revisionActions','revisionSetName','getEarlierVisibleRevision','getRevision','string','isEnabled','render','listenTo','_sidebarView','remove','focus','restoreRevision','highlightRevisions','setName','getRevisionsInDiff','locale','element','bind','data','_handleRevisionSelected','action','add','isVisible','repository','availableRevisionActions','RevisionsSidebar','init','isSelected','_handleRevisionSetName','editor','destroy','appendChild','config','requires','revisionHistory.viewerSidebarContainer','_createRevisionActions','getIndex','defaultRevisionActions','Restore\x20this\x20revision','_revisions','_handleDiffChange','_revisionsRepository'];(function(_0x309302,_0x3189cc){const _0x189b86=function(_0x1a05a4){while(--_0x1a05a4){_0x309302['push'](_0x309302['shift']());}};_0x189b86(++_0x3189cc);}(_0x3189,0x130));const _0x189b=function(_0x309302,_0x3189cc){_0x309302=_0x309302-0x0;let _0x189b86=_0x3189[_0x309302];return _0x189b86;};import{Plugin as _0x22934e}from'ckeditor5/src/core';import _0x485c36 from'./revisionssidebarview';import _0x581f08 from'../../revisionviewer';export default class w extends _0x22934e{static get[_0x189b('0x4')](){return _0x189b('0x27');}static get[_0x189b('0x2f')](){return[_0x581f08];}constructor(_0xf9f6f6){super(_0xf9f6f6),this[_0x189b('0x38')]=_0xf9f6f6['plugins'][_0x189b('0x6')](_0x581f08),this[_0x189b('0x37')]=this[_0x189b('0x38')][_0x189b('0x25')],this[_0x189b('0x16')]=null;}[_0x189b('0x28')](){const _0x59953a=this[_0x189b('0x37')][_0x189b('0x35')],_0x25913a=this[_0x189b('0x31')](),_0xecad9b=this[_0x189b('0x2b')]['config']['get'](_0x189b('0x30'));this[_0x189b('0x16')]=new _0x485c36(this[_0x189b('0x2b')][_0x189b('0x1d')],_0x59953a,_0x25913a),this['_sidebarView']['on']('revisionSelected',this[_0x189b('0x21')]['bind'](this)),this[_0x189b('0x16')]['on'](_0x189b('0xf'),this[_0x189b('0x2a')][_0x189b('0x1f')](this)),this[_0x189b('0x16')][_0x189b('0x1f')](_0x189b('0x13'))['to'](this[_0x189b('0x38')]),this[_0x189b('0x16')][_0x189b('0xd')]['on'](_0x189b('0x23'),(_0x2813bc,_0x104fc2)=>{_0x104fc2['revisionViews']['on'](_0x189b('0x23'),(_0x2be25c,_0x225a1e)=>{_0x225a1e[_0x189b('0x1f')]('isEnabled',_0x189b('0x1'))['to'](this['_revisionViewer']);});}),this[_0x189b('0x16')][_0x189b('0x14')](),this[_0x189b('0x15')](this[_0x189b('0x2b')][_0x189b('0x20')],_0x189b('0x39'),this[_0x189b('0x2')][_0x189b('0x1f')](this)),this[_0x189b('0x15')](this[_0x189b('0x38')],_0x189b('0x5'),this[_0x189b('0x36')][_0x189b('0x1f')](this)),_0xecad9b[_0x189b('0x2d')](this[_0x189b('0x16')][_0x189b('0x1e')]);}['destroy'](){this[_0x189b('0x16')][_0x189b('0x1e')][_0x189b('0x17')](),this[_0x189b('0x16')][_0x189b('0x2c')]();}[_0x189b('0x2')](){const _0x251891=this[_0x189b('0x37')][_0x189b('0x11')](0x0);if(_0x251891){const _0x527d5c=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x251891['id']);this['_revisionViewer'][_0x189b('0x9')](_0x251891,_0x527d5c);}}[_0x189b('0x21')](_0x506aad,_0x593a4f){const _0x1b885c=this[_0x189b('0x37')][_0x189b('0x11')](_0x593a4f['id']),_0x280855=this[_0x189b('0x37')][_0x189b('0x10')](_0x1b885c['id']);this[_0x189b('0x38')][_0x189b('0x9')](_0x1b885c,_0x280855);}[_0x189b('0x2a')](_0xa5dfff,_0x406d41){this[_0x189b('0x37')][_0x189b('0x11')](_0x406d41['id'])[_0x189b('0x1b')](_0x406d41[_0x189b('0x7')]);}[_0x189b('0x36')](_0x10297,_0x2b8def,_0x1e33c4){const _0x2abafb=this['_revisionsRepository'][_0x189b('0x1c')](_0x1e33c4);_0x2abafb[_0x189b('0x8')]>0x2?(this[_0x189b('0x16')][_0x189b('0x1a')](_0x2abafb),this[_0x189b('0x16')][_0x189b('0x3')](null)):(this[_0x189b('0x16')][_0x189b('0x1a')]([]),this[_0x189b('0x16')][_0x189b('0x3')](_0x2abafb[0x0]));}[_0x189b('0x31')](){const _0x107fc4=this[_0x189b('0x2b')],_0x573b59=w[_0x189b('0x26')],_0x370013=_0x107fc4[_0x189b('0x2e')]['get'](_0x189b('0xe'))||w[_0x189b('0x33')];if(_0x370013[_0x189b('0x8')])return _0x370013[_0x189b('0xa')](_0x58cc6a=>{const _0x5713b7=_0x189b('0x12')==typeof _0x58cc6a?Object['assign']({},_0x573b59[_0x58cc6a]):_0x58cc6a;return _0x5713b7[_0x189b('0x22')]=_0x5713b7[_0x189b('0x22')][_0x189b('0x1f')](this,_0x107fc4),_0x5713b7[_0x189b('0x24')]&&(_0x5713b7['isVisible']=_0x5713b7[_0x189b('0x24')][_0x189b('0x1f')](this,_0x107fc4)),_0x5713b7;});}}w[_0x189b('0x26')]={'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x6c02cc},_0xbd039c)=>{const _0x2d1105=_0x6c02cc['get'](_0x581f08),_0x448fe4=_0x2d1105[_0x189b('0x25')];let _0x3cf5bc=_0x2d1105[_0x189b('0xc')][_0x189b('0xb')],_0x57b1a2=_0xbd039c['id'];_0x448fe4['getIndex'](_0x3cf5bc)>_0x448fe4[_0x189b('0x32')](_0x57b1a2)&&([_0x3cf5bc,_0x57b1a2]=[_0x57b1a2,_0x3cf5bc]),_0x2d1105[_0x189b('0x9')](_0x3cf5bc,_0x57b1a2);},'isVisible':({plugins:_0x5d22e1},_0x54609d)=>{const _0x27e539=_0x5d22e1[_0x189b('0x6')](_0x581f08);return!(_0x27e539[_0x189b('0x25')]['getRevisionsInDiff'](_0x27e539[_0x189b('0xc')])[_0x189b('0x8')]>0x2)&&!_0x54609d[_0x189b('0x29')];}},'restoreRevision':{'name':_0x189b('0x34'),'action':(_0x4207f8,{id:_0x123e10})=>{_0x4207f8['config'][_0x189b('0x6')]('revisionHistory')['restoreRevisionCallback'](_0x123e10);},'isVisible':({plugins:_0x365ce7},_0x4bb1ba)=>!!_0x365ce7[_0x189b('0x6')](_0x581f08)[_0x189b('0x25')]['getLaterVisibleRevision'](_0x4bb1ba['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x3c8094},{id:_0x573849,revisionNameView:_0x336fc4})=>{const _0xf70879=_0x3c8094['get'](_0x581f08),_0x42aa36=_0xf70879[_0x189b('0x25')][_0x189b('0x10')](_0x573849);_0xf70879['compare'](_0x573849,_0x42aa36),_0x336fc4[_0x189b('0x18')](),_0x336fc4[_0x189b('0x3a')][_0x189b('0x0')]();}}},w[_0x189b('0x33')]=[_0x189b('0x3b'),_0x189b('0x19'),'nameRevision'];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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'))]}]});}}
23
+ const _0x3a24=['setTemplate','ck-revision-history-sidebar__header__label','ck-revision-history-sidebar__header','content'];(function(_0x1c59a6,_0x3a2408){const _0x34c735=function(_0x486b21){while(--_0x486b21){_0x1c59a6['push'](_0x1c59a6['shift']());}};_0x34c735(++_0x3a2408);}(_0x3a24,0xdb));const _0x34c7=function(_0x1c59a6,_0x3a2408){_0x1c59a6=_0x1c59a6-0x0;let _0x34c735=_0x3a24[_0x1c59a6];return _0x34c735;};import{View as _0x44cce9,IconView as _0x1aa77b}from'ckeditor5/src/ui';import{getTranslation as _0x5a4d4a}from'../../utils/common-translations';import _0x4e4efa from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class cs extends _0x44cce9{constructor(_0x5d9817){super(_0x5d9817);const _0x15a11d=new _0x1aa77b(_0x5d9817);_0x15a11d[_0x34c7('0x0')]=_0x4e4efa,this[_0x34c7('0x1')]({'tag':'div','attributes':{'class':['ck','ck-reset_all',_0x34c7('0x3')]},'children':[_0x15a11d,{'tag':'span','attributes':{'class':['ck',_0x34c7('0x2')]},'children':[_0x5a4d4a(_0x5d9817,'Revision\x20history')]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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);}}
23
+ const _0x195b=['span','addRevision','setName','div','revisionViews','add','_revisionActions','locale','delegate','startDate','ck-revision-history-sidebar__time-period__revisions','uiLanguage','remove','ck-revision-history-sidebar__time-period','ck-revision-history-sidebar__time-period__label'];(function(_0x456400,_0x195b8a){const _0x1334d0=function(_0x432161){while(--_0x432161){_0x456400['push'](_0x456400['shift']());}};_0x1334d0(++_0x195b8a);}(_0x195b,0x187));const _0x1334=function(_0x456400,_0x195b8a){_0x456400=_0x456400-0x0;let _0x1334d0=_0x195b[_0x456400];return _0x1334d0;};import{View as _0x3ffc89}from'ckeditor5/src/ui';import _0x1c2611 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x1d0746}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x3ffc89{constructor(_0x4cf354,_0x1825ff,_0x5552e9){super(_0x4cf354);const _0x2d4ba3=_0x1d0746(_0x1825ff,this[_0x1334('0x6')][_0x1334('0xa')])['localizedPeriodName'];this[_0x1334('0x8')]=_0x1825ff,this[_0x1334('0x5')]=_0x5552e9,this[_0x1334('0x3')]=this['createCollection'](),this[_0x1334('0x3')]['delegate']('select')['to'](this),this[_0x1334('0x3')][_0x1334('0x7')](_0x1334('0x1'))['to'](this),this['setTemplate']({'tag':_0x1334('0x2'),'attributes':{'class':['ck',_0x1334('0xc')]},'children':[{'tag':_0x1334('0xe'),'attributes':{'class':['ck',_0x1334('0xd')]},'children':[{'text':_0x2d4ba3}]},{'tag':_0x1334('0x2'),'attributes':{'class':['ck',_0x1334('0x9')]},'children':this[_0x1334('0x3')]}]});}[_0x1334('0x0')](_0x563969){const _0x52b23e=new _0x1c2611(this[_0x1334('0x6')],_0x563969,this['_revisionActions']);this[_0x1334('0x3')][_0x1334('0x4')](_0x52b23e);}['removeRevision'](_0x2adf32){const _0x172421=this[_0x1334('0x3')]['find'](_0x1e84c8=>_0x1e84c8['id']===_0x2adf32['id']);this[_0x1334('0x3')][_0x1334('0xb')](_0x172421);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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')]());}}
23
+ const _0xee15=['locale','selectRevision','delegate','remove','map','revisionSelected','unhighlight','_addRevision','removeRevision','ck-revision-history-sidebar','some','set','select','revisionViews','fire','createCollection','render','startDate','find','add','_revisionActions','setName','deselect','flat','bindTemplate','_revisions','revisionSetName','timePeriodViews','ck-reset','_removeRevision','_getTimePeriodViewByStartDate','div','getTime','get','ck-disabled','createdAt','isEnabled','addRevision'];(function(_0x22b212,_0xee15cf){const _0x6cf61f=function(_0x7e53df){while(--_0x7e53df){_0x22b212['push'](_0x22b212['shift']());}};_0x6cf61f(++_0xee15cf);}(_0xee15,0xf5));const _0x6cf6=function(_0x22b212,_0xee15cf){_0x22b212=_0x22b212-0x0;let _0x6cf61f=_0xee15[_0x22b212];return _0x6cf61f;};import{View as _0x5b57ad}from'ckeditor5/src/ui';import _0x450be1 from'./revisionssidebartimeperiodview';import _0xd6ff4d from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x2c8037}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x5b57ad{constructor(_0xe06c0f,_0x578ccd,_0x3725b6){super(_0xe06c0f);const _0x3bf61f=this[_0x6cf6('0x7')];this['timePeriodViews']=this[_0x6cf6('0x24')](),this[_0x6cf6('0xa')][_0x6cf6('0x17')](_0x6cf6('0x21'))['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this[_0x6cf6('0x8')]=_0x578ccd,this[_0x6cf6('0x3')]=_0x3725b6,this['on'](_0x6cf6('0x21'),(_0xaab61c,_0x3f394d)=>{this['fire'](_0x6cf6('0x1a'),_0x3f394d);}),this['on'](_0x6cf6('0x4'),(_0x2f8c78,_0x3b62c4)=>{this[_0x6cf6('0x23')](_0x6cf6('0x9'),_0x3b62c4);}),this[_0x6cf6('0x20')](_0x6cf6('0x13'),!0x1),this['setTemplate']({'tag':_0x6cf6('0xe'),'attributes':{'class':['ck',_0x6cf6('0xb'),'ck-rounded-corners',_0x6cf6('0x1e')]},'children':[new _0xd6ff4d(_0xe06c0f),{'tag':_0x6cf6('0xe'),'attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x3bf61f['if'](_0x6cf6('0x13'),_0x6cf6('0x11'),_0x482757=>!_0x482757)]},'children':this[_0x6cf6('0xa')]}]});}[_0x6cf6('0x25')](){super[_0x6cf6('0x25')]();for(const _0x38b714 of this[_0x6cf6('0x8')])this[_0x6cf6('0x1c')](_0x38b714);this[_0x6cf6('0x8')]['on'](_0x6cf6('0x2'),(_0x5dfd5e,_0x19171f)=>{this[_0x6cf6('0x1c')](_0x19171f);}),this[_0x6cf6('0x8')]['on'](_0x6cf6('0x18'),(_0x570168,_0x34dd00)=>{this[_0x6cf6('0xc')](_0x34dd00);});}get[_0x6cf6('0x22')](){return this[_0x6cf6('0xa')]['map'](_0xb63a88=>_0xb63a88[_0x6cf6('0x22')][_0x6cf6('0x19')](_0x1e8d46=>_0x1e8d46))[_0x6cf6('0x6')]();}[_0x6cf6('0x16')](_0x450283){for(const _0x5a5178 of this[_0x6cf6('0x22')])_0x450283&&_0x450283['id']===_0x5a5178['id']?_0x5a5178[_0x6cf6('0x21')]():_0x5a5178[_0x6cf6('0x5')]();}['highlightRevisions'](_0x44d54e){for(const _0x22e0ef of this[_0x6cf6('0x22')])_0x44d54e[_0x6cf6('0x1f')](({id:_0x40ef2d})=>_0x40ef2d===_0x22e0ef['id'])?_0x22e0ef['highlight']():_0x22e0ef[_0x6cf6('0x1b')]();}[_0x6cf6('0x1c')](_0x453a34){const _0x421c2c=_0x2c8037(_0x453a34[_0x6cf6('0x12')])[_0x6cf6('0x0')];let _0x2824b2=this[_0x6cf6('0xa')][_0x6cf6('0x10')](0x0);_0x2824b2&&_0x2824b2['startDate'][_0x6cf6('0xf')]()===_0x421c2c[_0x6cf6('0xf')]()||(_0x2824b2=new _0x450be1(this[_0x6cf6('0x15')],_0x421c2c,this[_0x6cf6('0x3')]),this[_0x6cf6('0xa')]['add'](_0x2824b2)),_0x2824b2[_0x6cf6('0x14')](_0x453a34);}['_removeRevision'](_0x16ab45){const _0x20f3a9=_0x2c8037(_0x16ab45['createdAt'])['startDate'];this[_0x6cf6('0xd')](_0x20f3a9)[_0x6cf6('0x1d')](_0x16ab45);}[_0x6cf6('0xd')](_0x20d9ab){return this[_0x6cf6('0xa')][_0x6cf6('0x1')](_0x40cba4=>_0x40cba4[_0x6cf6('0x0')][_0x6cf6('0xf')]()===_0x20d9ab[_0x6cf6('0xf')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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};}
23
+ const _0x3af1=['startOf','toJSDate','fromJSDate','toRelativeCalendar','day','month','week','year','local','hasSame','setLocale','monthLong','minus'];(function(_0x17c52e,_0x3af162){const _0x392d09=function(_0x3c735a){while(--_0x3c735a){_0x17c52e['push'](_0x17c52e['shift']());}};_0x392d09(++_0x3af162);}(_0x3af1,0xc7));const _0x392d=function(_0x17c52e,_0x3af162){_0x17c52e=_0x17c52e-0x0;let _0x392d09=_0x3af1[_0x17c52e];return _0x392d09;};import{DateTime as _0x3a38bc}from'luxon';export function getDateTimePeriodInfo(_0x5507cb,_0x315fae){_0x5507cb=_0x3a38bc[_0x392d('0xb')](_0x5507cb)[_0x392d('0x6')](_0x315fae);const _0x3a088f=_0x3a38bc[_0x392d('0x4')](),_0x38c5b4=_0x3a088f[_0x392d('0x8')]({'days':0x1})[_0x392d('0x9')]('day');let _0x1836ef,_0x923603;return _0x5507cb[_0x392d('0x5')](_0x3a088f,_0x392d('0x0'))?(_0x1836ef=_0x5507cb[_0x392d('0x9')](_0x392d('0x0'))['toJSDate'](),_0x923603=_0x5507cb[_0x392d('0xc')]()):_0x5507cb[_0x392d('0x5')](_0x38c5b4,_0x392d('0x0'))?(_0x1836ef=_0x38c5b4[_0x392d('0xa')](),_0x923603=_0x5507cb[_0x392d('0xc')]()):_0x5507cb[_0x392d('0x5')](_0x3a088f,_0x392d('0x2'))?(_0x1836ef=_0x5507cb['startOf'](_0x392d('0x2'))['toJSDate'](),_0x923603=_0x5507cb['weekdayLong']):_0x5507cb[_0x392d('0x5')](_0x3a088f,_0x392d('0x3'))?(_0x1836ef=_0x5507cb[_0x392d('0x9')](_0x392d('0x1'))[_0x392d('0xa')](),_0x923603=_0x5507cb[_0x392d('0x7')]):(_0x1836ef=_0x5507cb[_0x392d('0x9')](_0x392d('0x3'))[_0x392d('0xa')](),_0x923603=_0x5507cb[_0x392d('0x3')]),{'startDate':_0x1836ef,'localizedPeriodName':_0x923603};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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')]();}}
23
+ const _0x7252=['ck-revision-change__label','name','div','ck-revision-change__','focus','type','ck-revision-change','Added\x20by','author','bindTemplate','add','setTemplate','element','isSuggestion','span','data'];(function(_0x2eec8b,_0x7252af){const _0x370bd1=function(_0x4a7fb8){while(--_0x4a7fb8){_0x2eec8b['push'](_0x2eec8b['shift']());}};_0x370bd1(++_0x7252af);}(_0x7252,0x129));const _0x370b=function(_0x2eec8b,_0x7252af){_0x2eec8b=_0x2eec8b-0x0;let _0x370bd1=_0x7252[_0x2eec8b];return _0x370bd1;};import{View as _0x1183e5}from'ckeditor5/src/ui';import{getTranslation as _0x5763b2}from'../../utils/common-translations';export default class X extends _0x1183e5{constructor(_0x5153cf,_0x493075){super(_0x5153cf),this['_model']=_0x493075;const _0x5e095c=this[_0x370b('0x0')],_0xf0a843=_0x5763b2(_0x5153cf,_0x493075[_0x370b('0x6')][_0x370b('0x4')]?'Suggested\x20by':_0x370b('0x1')==_0x493075[_0x370b('0xc')]?_0x370b('0xe'):'Removed\x20by');this['set']('type',_0x493075[_0x370b('0xc')]),this[_0x370b('0x2')]({'tag':_0x370b('0x9'),'attributes':{'class':['ck-annotation',_0x370b('0xd'),_0x5e095c['to'](_0x370b('0xc'),_0x1b669d=>_0x370b('0xa')+_0x1b669d)],'tabindex':-0x1},'children':[{'tag':_0x370b('0x5'),'children':[{'tag':_0x370b('0x5'),'attributes':{'class':[_0x370b('0x7')]},'children':[{'text':_0xf0a843}]},{'text':'\x20'+_0x493075[_0x370b('0xf')][_0x370b('0x8')]}]}]});}[_0x370b('0xb')](){this[_0x370b('0x3')][_0x370b('0xb')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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]}]});}}
23
+ const _0x33e1=['isForwardNavigationEnabled','numberOfChanges','EDIT_X_OF_Y_REVISIONS','isEnabled','isBackwardNavigationEnabled','ck-revision-history-ui','execute','ck-revision-history-ui__changes-navigation','bindTemplate','currentChangeNumber','_isStatusLabelVisible','backward','ck-revision-history-ui__changes-navigation__wrapper','set','span','isReady','forward','NUMBER_OF_CHANGES','isNavigationMode','fire','No\x20changes','Total','X_OF_Y_CHANGES','bind','setTemplate','_statusText'];(function(_0x22e66d,_0x33e1d8){const _0x2da030=function(_0x3c06c4){while(--_0x3c06c4){_0x22e66d['push'](_0x22e66d['shift']());}};_0x2da030(++_0x33e1d8);}(_0x33e1,0xf6));const _0x2da0=function(_0x22e66d,_0x33e1d8){_0x22e66d=_0x22e66d-0x0;let _0x2da030=_0x33e1[_0x22e66d];return _0x2da030;};import{View as _0x415ed0,ButtonView as _0x3a9aa9,ToolbarSeparatorView as _0x469d4d}from'ckeditor5/src/ui';import{getTranslation as _0x5c1b4}from'../../utils/common-translations';import _0x520f60 from'../../../theme/icons/arrow-up.svg';import _0xf9ef69 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x415ed0{constructor(_0x1c31fc){super(_0x1c31fc);const _0x50f39a=this[_0x2da0('0x16')],_0x7b5c1a=new _0x3a9aa9(_0x1c31fc),_0x2d3abd=new _0x3a9aa9(_0x1c31fc);this[_0x2da0('0x1')]('isNavigationMode',!0x1),this[_0x2da0('0x1')](_0x2da0('0x3'),!0x1),this[_0x2da0('0x1')](_0x2da0('0x17'),0x0),this[_0x2da0('0x1')](_0x2da0('0xf'),0x0),this[_0x2da0('0x1')]('isForwardNavigationEnabled',!0x1),this[_0x2da0('0x1')](_0x2da0('0x12'),!0x1),this['bind']('_isStatusLabelVisible')['to'](this,_0x2da0('0x3'),this,_0x2da0('0xf'),(_0x396e7b,_0x31f582)=>_0x396e7b&&_0x31f582>0x0),this[_0x2da0('0xb')](_0x2da0('0xd'))['to'](this,_0x2da0('0x3'),this,_0x2da0('0x17'),this,_0x2da0('0xf'),this,'isNavigationMode',(_0xc104f,_0x2285dd,_0x499827,_0x335c4b)=>{if(!_0xc104f)return _0x5c1b4(_0x1c31fc,'Loading...');if(!_0x499827)return _0x5c1b4(_0x1c31fc,_0x2da0('0x8'));const _0x445828=_0x5c1b4(_0x1c31fc,_0x2da0('0x5'),_0x499827);return _0x335c4b?_0x5c1b4(_0x1c31fc,_0x2da0('0xa'),[_0x2285dd+0x1,_0x499827]):_0x445828;}),_0x7b5c1a[_0x2da0('0x1')]({'label':_0x5c1b4(_0x1c31fc,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x520f60}),_0x2d3abd[_0x2da0('0x1')]({'label':_0x5c1b4(_0x1c31fc,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0xf9ef69}),_0x7b5c1a[_0x2da0('0xb')](_0x2da0('0x11'))['to'](this,_0x2da0('0x12')),_0x2d3abd[_0x2da0('0xb')](_0x2da0('0x11'))['to'](this,_0x2da0('0xe')),_0x7b5c1a['on'](_0x2da0('0x14'),()=>this[_0x2da0('0x7')]('execute',_0x2da0('0x19'))),_0x2d3abd['on'](_0x2da0('0x14'),()=>this[_0x2da0('0x7')](_0x2da0('0x14'),_0x2da0('0x4'))),this[_0x2da0('0xc')]({'tag':'div','attributes':{'class':['ck',_0x2da0('0x13'),_0x2da0('0x15')]},'children':[{'tag':_0x2da0('0x2'),'attributes':{'class':[_0x2da0('0x0')]},'children':[{'tag':_0x2da0('0x2'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x50f39a['if'](_0x2da0('0x18'),'ck-hidden',_0x487c57=>!_0x487c57)]},'children':[{'text':_0x50f39a['to'](_0x2da0('0x6'),_0x5374c0=>_0x5374c0?_0x5c1b4(_0x1c31fc,_0x2da0('0x10'))+':\x20':_0x5c1b4(_0x1c31fc,_0x2da0('0x9'))+':\x20')}]},{'text':_0x50f39a['to'](_0x2da0('0xd'))}]},new _0x469d4d(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x7b5c1a,_0x2d3abd]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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);});}}
23
+ const _0x20ac=['removeClass','document','addClass','view','change','roots','pluginName','editor','RevisionViewerLoadingOverlay','editing','show'];(function(_0x45c45e,_0x20ac23){const _0x129008=function(_0x556044){while(--_0x556044){_0x45c45e['push'](_0x45c45e['shift']());}};_0x129008(++_0x20ac23);}(_0x20ac,0x189));const _0x1290=function(_0x45c45e,_0x20ac23){_0x45c45e=_0x45c45e-0x0;let _0x129008=_0x20ac[_0x45c45e];return _0x129008;};import{Plugin as _0x12813d}from'ckeditor5/src/core';import'../../../theme/revisionviewerloadingoverlay.css';export default class ee extends _0x12813d{static get[_0x1290('0x9')](){return _0x1290('0x0');}[_0x1290('0x2')](){const _0x55b8fd=this[_0x1290('0xa')][_0x1290('0x1')][_0x1290('0x6')];_0x55b8fd[_0x1290('0x7')](_0x8a2595=>{for(const _0x1bd8bd of _0x55b8fd[_0x1290('0x4')][_0x1290('0x8')])_0x8a2595[_0x1290('0x5')]('ck-editor__editable__loading-overlay',_0x1bd8bd);});}['hide'](){const _0x38284f=this[_0x1290('0xa')]['editing'][_0x1290('0x6')];_0x38284f[_0x1290('0x7')](_0x92c026=>{for(const _0x2d80b9 of _0x38284f[_0x1290('0x4')][_0x1290('0x8')])_0x92c026[_0x1290('0x3')]('ck-editor__editable__loading-overlay',_0x2d80b9);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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')]();});}}
23
+ const _0x5041=['restoreRevision','pluginName','closeRevisionViewerCallback','isEnabled','changesNavigation','commands','hide','showNextChange','add','Restore\x20this\x20revision','isBackwardNavigationEnabled','get','ck-revision-history-ui__back-to-editing','execute','listenTo','revisionHistory','bind','plugins','init','currentChangeNumber','componentFactory','config','forward','editor','change:isReady','show','isNavigationMode','showPreviousChange','Back\x20to\x20editing','exitToEditing','RevisionViewerUI'];(function(_0x449f4b,_0x5041d9){const _0xcb353a=function(_0x9519ba){while(--_0x9519ba){_0x449f4b['push'](_0x449f4b['shift']());}};_0xcb353a(++_0x5041d9);}(_0x5041,0x184));const _0xcb35=function(_0x449f4b,_0x5041d9){_0x449f4b=_0x449f4b-0x0;let _0xcb353a=_0x5041[_0x449f4b];return _0xcb353a;};import{Plugin as _0x596f85}from'ckeditor5/src/core';import{ButtonView as _0x31241d}from'ckeditor5/src/ui';import _0x3eafc9 from'./changesnavigationview';import _0x3bc27a from'./../../revisionviewer';import _0x45d005 from'./revisionviewerloadingoverlay';import{getTranslation as _0x4f0e0a}from'../../utils/common-translations';import _0x3e344e from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class d extends _0x596f85{static get[_0xcb35('0x10')](){return _0xcb35('0xe');}static get['requires'](){return[_0x3bc27a,_0x45d005];}[_0xcb35('0x2')](){const _0x42da46=this[_0xcb35('0x7')],_0x2daea3=_0x42da46[_0xcb35('0x1')][_0xcb35('0x1a')](_0x3bc27a),_0x2a06a6=_0x42da46[_0xcb35('0x1')][_0xcb35('0x1a')](_0x45d005);_0x42da46['ui'][_0xcb35('0x4')][_0xcb35('0x17')](_0xcb35('0xd'),_0x53cd17=>{const _0x37b404=new _0x31241d(_0x53cd17);return _0x37b404['set']({'label':_0x4f0e0a(_0x53cd17,_0xcb35('0xc')),'icon':_0x3e344e,'withText':!0x0,'tooltip':!0x0,'class':_0xcb35('0x1b')}),this[_0xcb35('0x1d')](_0x37b404,'execute',()=>{_0x42da46[_0xcb35('0x5')][_0xcb35('0x1a')](_0xcb35('0x1e'))[_0xcb35('0x11')]();}),_0x37b404;}),_0x42da46['ui']['componentFactory'][_0xcb35('0x17')]('restoreRevision',_0x215b0b=>{const _0x78df5f=new _0x31241d(_0x215b0b);return _0x78df5f['set']({'label':_0x4f0e0a(_0x215b0b,_0xcb35('0x18')),'withText':!0x0,'tooltip':!0x0}),_0x78df5f['bind']('isEnabled')['to'](_0x42da46['commands'][_0xcb35('0x1a')](_0xcb35('0xf'))),this[_0xcb35('0x1d')](_0x78df5f,'execute',()=>_0x42da46[_0xcb35('0x1c')](_0xcb35('0xf'))),_0x78df5f;}),_0x42da46['ui'][_0xcb35('0x4')]['add'](_0xcb35('0x13'),_0xa9bdbd=>{const _0x56bd78=new _0x3eafc9(_0xa9bdbd),_0x488ebe=_0x42da46[_0xcb35('0x14')][_0xcb35('0x1a')](_0xcb35('0xb')),_0x498f55=_0x42da46['commands'][_0xcb35('0x1a')](_0xcb35('0x16'));return _0x56bd78['bind'](_0xcb35('0x19'))['to'](_0x488ebe,_0xcb35('0x12')),_0x56bd78[_0xcb35('0x0')]('isForwardNavigationEnabled')['to'](_0x498f55,_0xcb35('0x12')),_0x56bd78[_0xcb35('0x0')]('isReady',_0xcb35('0x3'),'numberOfChanges',_0xcb35('0xa'))['to'](_0x2daea3),this[_0xcb35('0x1d')](_0x56bd78,_0xcb35('0x1c'),(_0x2a772f,_0x4e25ca)=>{_0x42da46[_0xcb35('0x1c')](_0xcb35('0x6')===_0x4e25ca?'showNextChange':_0xcb35('0xb'));}),_0x56bd78;}),_0x2a06a6[_0xcb35('0x9')](),_0x2daea3['on'](_0xcb35('0x8'),(_0x3c26c2,_0x1be00c,_0x4c05f6)=>{_0x4c05f6?_0x2a06a6[_0xcb35('0x15')]():_0x2a06a6[_0xcb35('0x9')]();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
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'});}}
23
+ export function getTranslation(_0x1593cb,_0x575d3d,_0x14e919){const t=_0x1593cb['t'];switch(_0x575d3d){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'},_0x14e919);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x14e919);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'});}}