@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230718.0 → 0.0.0-nightly-20230720.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 (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +8 -8
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x170c=['children','isEnabled','execute','isReadOnly','view','RevisionTracker','requires','Save\x20current\x20revision','Revision\x20history','focus','panelView','render','editing','change:isOpen','set','pluginName','items','reset','plugins','RevisionHistoryUI','editor','revisionName','config','addMany','length','buttonView','revisionHistory','remove','bind','add','isReady','saveButtonView','get','saveRevision','Open\x20revision\x20history','submit','isOpen'];(function(_0x47bbf0,_0x170c8a){const _0x1a778d=function(_0xeef829){while(--_0xeef829){_0x47bbf0['push'](_0x47bbf0['shift']());}};_0x1a778d(++_0x170c8a);}(_0x170c,0x191));const _0x1a77=function(_0x47bbf0,_0x170c8a){_0x47bbf0=_0x47bbf0-0x0;let _0x1a778d=_0x170c[_0x47bbf0];return _0x1a778d;};import{Plugin as _0x3c205c}from'ckeditor5/src/core';import{ListView as _0x153f37,ListItemView as _0x1c3df8,ButtonView as _0x180779,createDropdown as _0xfbfe80}from'ckeditor5/src/ui';import _0x44f0cf from'../../revisiontracker';import _0x44b1a7 from'./revisionhistorysaverevisionformview';import _0x545a20 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x2cd706}from'../../utils/common-translations';export default class u extends _0x3c205c{static get[_0x1a77('0x15')](){return _0x1a77('0x19');}static get[_0x1a77('0xc')](){return[_0x44f0cf];}['init'](){const _0x753d21=this[_0x1a77('0x1a')],_0x316e91=_0x753d21[_0x1a77('0x18')][_0x1a77('0x1')](_0x1a77('0xb'));_0x753d21['ui']['componentFactory']['add'](_0x1a77('0x20'),_0x4a4233=>{const _0x5d362b=_0xfbfe80(_0x4a4233),_0x4202f0=_0x5d362b[_0x1a77('0x10')]['children'],_0x1321be=new _0x153f37(_0x4a4233),_0x3a373f=new _0x1c3df8(_0x4a4233),_0x3f9806=new _0x180779(_0x4a4233),_0x4f5627=new _0x1c3df8(_0x4a4233),_0x44e0db=new _0x180779(_0x4a4233),_0x39ef7e=new _0x44b1a7(_0x4a4233);function _0x544b26(){_0x4202f0['length']&&_0x4202f0['remove'](0x0),_0x4202f0[_0x1a77('0x23')](_0x1321be);}function _0x53ad44(){_0x5d362b[_0x1a77('0x5')]=!0x1,_0x753d21[_0x1a77('0x12')][_0x1a77('0xa')][_0x1a77('0xf')]();}return _0x5d362b[_0x1a77('0x22')](_0x1a77('0x7'))['to'](_0x316e91,_0x1a77('0x24'),_0x316e91,_0x1a77('0x7'),_0x753d21,_0x1a77('0x9'),(_0x20d393,_0x836523,_0x299dc7)=>_0x20d393&&_0x836523&&!_0x299dc7),_0x5d362b[_0x1a77('0x1f')][_0x1a77('0x14')]({'icon':_0x545a20,'label':_0x2cd706(_0x4a4233,_0x1a77('0xe')),'tooltip':!0x0}),_0x3f9806[_0x1a77('0x14')]({'label':_0x2cd706(_0x4a4233,_0x1a77('0xd')),'withText':!0x0}),_0x3f9806[_0x1a77('0x22')](_0x1a77('0x7'))['to'](_0x316e91,_0x1a77('0x24'),_0x316e91,_0x1a77('0x7'),_0x753d21,_0x1a77('0x9'),(_0x1ea0be,_0x4333e5,_0x37e800)=>_0x1ea0be&&_0x4333e5&&!_0x37e800),_0x3f9806['on'](_0x1a77('0x8'),()=>function(){_0x4202f0[_0x1a77('0x1e')]&&_0x4202f0[_0x1a77('0x21')](0x0),(_0x39ef7e[_0x1a77('0x17')](),_0x4202f0[_0x1a77('0x23')](_0x39ef7e),_0x39ef7e[_0x1a77('0xf')]());}()),_0x44e0db[_0x1a77('0x14')]({'label':_0x2cd706(_0x4a4233,_0x1a77('0x3')),'withText':!0x0}),_0x44e0db[_0x1a77('0x22')](_0x1a77('0x7'))['to'](_0x316e91,_0x1a77('0x24'),_0x753d21,'isReadOnly',(_0x2f5c54,_0x2fa353)=>_0x2f5c54&&!_0x2fa353),_0x44e0db['on'](_0x1a77('0x8'),()=>{_0x753d21[_0x1a77('0x1c')][_0x1a77('0x1')](_0x1a77('0x20'))['showRevisionViewerCallback'](),_0x53ad44();}),_0x3a373f[_0x1a77('0x6')][_0x1a77('0x23')](_0x3f9806),_0x4f5627[_0x1a77('0x6')][_0x1a77('0x23')](_0x44e0db),_0x1321be[_0x1a77('0x16')][_0x1a77('0x1d')]([_0x3a373f,_0x4f5627]),_0x5d362b['on'](_0x1a77('0x13'),()=>_0x544b26()),_0x39ef7e[_0x1a77('0x0')][_0x1a77('0x22')](_0x1a77('0x7'))['to'](_0x316e91,_0x1a77('0x24'),_0x316e91,_0x1a77('0x7'),_0x753d21,_0x1a77('0x9'),(_0x278017,_0x4ef3af,_0xa89be0)=>_0x278017&&_0x4ef3af&&!_0xa89be0),_0x39ef7e['on'](_0x1a77('0x4'),()=>(_0x753d21['plugins']['get'](_0x44f0cf)[_0x1a77('0x2')]({'name':_0x39ef7e[_0x1a77('0x1b')]}),void _0x53ad44())),_0x39ef7e['on']('cancel',()=>_0x544b26()),_0x39ef7e[_0x1a77('0x11')](),_0x544b26(),_0x5d362b;});}}
23
+ const _0x34b0=['isEnabled','focus','view','get','isReadOnly','pluginName','requires','buttonView','reset','isOpen','children','Revision\x20history','set','change:isOpen','plugins','revisionName','init','saveRevision','componentFactory','isReady','Open\x20revision\x20history','addMany','panelView','bind','render','submit','length','saveButtonView','RevisionHistoryUI','Save\x20current\x20revision','cancel','editor','editing','remove','add','execute','revisionHistory','items','RevisionTracker'];(function(_0x3325d9,_0x34b0ac){const _0x131bb2=function(_0x3e87f6){while(--_0x3e87f6){_0x3325d9['push'](_0x3325d9['shift']());}};_0x131bb2(++_0x34b0ac);}(_0x34b0,0x13b));const _0x131b=function(_0x3325d9,_0x34b0ac){_0x3325d9=_0x3325d9-0x0;let _0x131bb2=_0x34b0[_0x3325d9];return _0x131bb2;};import{Plugin as _0xdefcac}from'ckeditor5/src/core';import{ListView as _0x413ef8,ListItemView as _0x2ddb92,ButtonView as _0x1cb7fb,createDropdown as _0x2aaa84}from'ckeditor5/src/ui';import _0x265e0a from'../../revisiontracker';import _0x239dfe from'./revisionhistorysaverevisionformview';import _0x55f0d8 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x512403}from'../../utils/common-translations';export default class u extends _0xdefcac{static get[_0x131b('0x2')](){return _0x131b('0x19');}static get[_0x131b('0x3')](){return[_0x265e0a];}[_0x131b('0xd')](){const _0x45a83b=this[_0x131b('0x1c')],_0x5ada6a=_0x45a83b['plugins'][_0x131b('0x0')](_0x131b('0x23'));_0x45a83b['ui'][_0x131b('0xf')][_0x131b('0x1f')](_0x131b('0x21'),_0x56b34d=>{const _0x115c4c=_0x2aaa84(_0x56b34d),_0x44fae8=_0x115c4c[_0x131b('0x13')][_0x131b('0x7')],_0x214e8d=new _0x413ef8(_0x56b34d),_0x32f8ad=new _0x2ddb92(_0x56b34d),_0x48be14=new _0x1cb7fb(_0x56b34d),_0x361827=new _0x2ddb92(_0x56b34d),_0x183857=new _0x1cb7fb(_0x56b34d),_0x5f1de9=new _0x239dfe(_0x56b34d);function _0x98f37c(){_0x44fae8[_0x131b('0x17')]&&_0x44fae8['remove'](0x0),_0x44fae8[_0x131b('0x1f')](_0x214e8d);}function _0x11c4ac(){_0x115c4c[_0x131b('0x6')]=!0x1,_0x45a83b[_0x131b('0x1d')][_0x131b('0x26')][_0x131b('0x25')]();}return _0x115c4c[_0x131b('0x14')](_0x131b('0x24'))['to'](_0x5ada6a,'isReady',_0x5ada6a,_0x131b('0x24'),_0x45a83b,'isReadOnly',(_0x1ace9f,_0x6bb43b,_0x205442)=>_0x1ace9f&&_0x6bb43b&&!_0x205442),_0x115c4c[_0x131b('0x4')][_0x131b('0x9')]({'icon':_0x55f0d8,'label':_0x512403(_0x56b34d,_0x131b('0x8')),'tooltip':!0x0}),_0x48be14['set']({'label':_0x512403(_0x56b34d,_0x131b('0x1a')),'withText':!0x0}),_0x48be14[_0x131b('0x14')]('isEnabled')['to'](_0x5ada6a,_0x131b('0x10'),_0x5ada6a,_0x131b('0x24'),_0x45a83b,_0x131b('0x1'),(_0x4ad402,_0x1de9f1,_0x39c7a2)=>_0x4ad402&&_0x1de9f1&&!_0x39c7a2),_0x48be14['on']('execute',()=>function(){_0x44fae8[_0x131b('0x17')]&&_0x44fae8[_0x131b('0x1e')](0x0),(_0x5f1de9[_0x131b('0x5')](),_0x44fae8['add'](_0x5f1de9),_0x5f1de9[_0x131b('0x25')]());}()),_0x183857[_0x131b('0x9')]({'label':_0x512403(_0x56b34d,_0x131b('0x11')),'withText':!0x0}),_0x183857[_0x131b('0x14')](_0x131b('0x24'))['to'](_0x5ada6a,_0x131b('0x10'),_0x45a83b,'isReadOnly',(_0x201efc,_0x3edfcc)=>_0x201efc&&!_0x3edfcc),_0x183857['on'](_0x131b('0x20'),()=>{_0x45a83b['config'][_0x131b('0x0')](_0x131b('0x21'))['showRevisionViewerCallback'](),_0x11c4ac();}),_0x32f8ad[_0x131b('0x7')][_0x131b('0x1f')](_0x48be14),_0x361827[_0x131b('0x7')]['add'](_0x183857),_0x214e8d[_0x131b('0x22')][_0x131b('0x12')]([_0x32f8ad,_0x361827]),_0x115c4c['on'](_0x131b('0xa'),()=>_0x98f37c()),_0x5f1de9[_0x131b('0x18')]['bind'](_0x131b('0x24'))['to'](_0x5ada6a,'isReady',_0x5ada6a,_0x131b('0x24'),_0x45a83b,_0x131b('0x1'),(_0x425634,_0x526173,_0x3c01ad)=>_0x425634&&_0x526173&&!_0x3c01ad),_0x5f1de9['on'](_0x131b('0x16'),()=>(_0x45a83b[_0x131b('0xb')][_0x131b('0x0')](_0x265e0a)[_0x131b('0xe')]({'name':_0x5f1de9[_0x131b('0xc')]}),void _0x11c4ac())),_0x5f1de9['on'](_0x131b('0x1b'),()=>_0x98f37c()),_0x5f1de9[_0x131b('0x15')](),_0x98f37c(),_0x115c4c;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1aa3=['locale','isEnabled','getLaterVisibleRevision','appendChild','isVisible','_handleRevisionSelected','focus','selectRevision','isSelected','highlightRevisions','revisionHistory','revisionSelected','_sidebarView','pluginName','_revisions','bind','repository','fieldView','change:diff','getRevision','assign','Name\x20this\x20revision','nameRevision','defaultRevisionActions','element','_revisionViewer','name','restoreRevision','revisionHistory.viewerSidebarContainer','select','Restore\x20this\x20revision','ready','availableRevisionActions','action','compare','newRevisionId','add','editor','getRevisionsInDiff','_createRevisionActions','_handleRevisionSetName','isReady','length','_handleEditorDataReady','get','diff','init','render','Compare\x20against\x20selected','destroy','restoreRevisionCallback','getIndex','requires','remove','compareAgainstSelected','getEarlierVisibleRevision','_revisionsRepository','string','timePeriodViews','map','config','_handleDiffChange','listenTo'];(function(_0x74d06,_0x1aa3e4){const _0xabcfed=function(_0x8db0a5){while(--_0x8db0a5){_0x74d06['push'](_0x74d06['shift']());}};_0xabcfed(++_0x1aa3e4);}(_0x1aa3,0x65));const _0xabcf=function(_0x74d06,_0x1aa3e4){_0x74d06=_0x74d06-0x0;let _0xabcfed=_0x1aa3[_0x74d06];return _0xabcfed;};import{Plugin as _0x1198cd}from'ckeditor5/src/core';import _0x14feff from'./revisionssidebarview';import _0x234862 from'../../revisionviewer';export default class w extends _0x1198cd{static get[_0xabcf('0x26')](){return'RevisionsSidebar';}static get[_0xabcf('0xe')](){return[_0x234862];}constructor(_0x3d6282){super(_0x3d6282),this['_revisionViewer']=_0x3d6282['plugins'][_0xabcf('0x6')](_0x234862),this[_0xabcf('0x12')]=this[_0xabcf('0x32')][_0xabcf('0x29')],this[_0xabcf('0x25')]=null;}[_0xabcf('0x8')](){const _0x2f16e8=this[_0xabcf('0x12')][_0xabcf('0x27')],_0x5df1fb=this['_createRevisionActions'](),_0x261c0f=this[_0xabcf('0x3e')][_0xabcf('0x16')][_0xabcf('0x6')](_0xabcf('0x35'));this['_sidebarView']=new _0x14feff(this['editor'][_0xabcf('0x19')],_0x2f16e8,_0x5df1fb),this[_0xabcf('0x25')]['on'](_0xabcf('0x24'),this[_0xabcf('0x1e')][_0xabcf('0x28')](this)),this[_0xabcf('0x25')]['on']('revisionSetName',this[_0xabcf('0x2')]['bind'](this)),this[_0xabcf('0x25')]['bind'](_0xabcf('0x1a'))['to'](this[_0xabcf('0x32')]),this[_0xabcf('0x25')][_0xabcf('0x14')]['on'](_0xabcf('0x3d'),(_0x200b7c,_0x2cb3ac)=>{_0x2cb3ac['revisionViews']['on']('add',(_0x10187a,_0x32f2d3)=>{_0x32f2d3[_0xabcf('0x28')]('isEnabled',_0xabcf('0x3'))['to'](this[_0xabcf('0x32')]);});}),this[_0xabcf('0x25')][_0xabcf('0x9')](),this[_0xabcf('0x18')](this['editor']['data'],_0xabcf('0x38'),this['_handleEditorDataReady'][_0xabcf('0x28')](this)),this[_0xabcf('0x18')](this[_0xabcf('0x32')],_0xabcf('0x2b'),this[_0xabcf('0x17')][_0xabcf('0x28')](this)),_0x261c0f[_0xabcf('0x1c')](this[_0xabcf('0x25')][_0xabcf('0x31')]);}[_0xabcf('0xb')](){this[_0xabcf('0x25')][_0xabcf('0x31')][_0xabcf('0xf')](),this[_0xabcf('0x25')]['destroy']();}[_0xabcf('0x5')](){const _0x95e0ea=this['_revisionsRepository'][_0xabcf('0x2c')](0x0);if(_0x95e0ea){const _0x2e8915=this[_0xabcf('0x12')][_0xabcf('0x11')](_0x95e0ea['id']);this['_revisionViewer'][_0xabcf('0x3b')](_0x95e0ea,_0x2e8915);}}[_0xabcf('0x1e')](_0x3661a5,_0x30bebb){const _0x4b4518=this[_0xabcf('0x12')][_0xabcf('0x2c')](_0x30bebb['id']),_0xad3175=this['_revisionsRepository'][_0xabcf('0x11')](_0x4b4518['id']);this[_0xabcf('0x32')][_0xabcf('0x3b')](_0x4b4518,_0xad3175);}[_0xabcf('0x2')](_0x37bec4,_0x8754f5){this[_0xabcf('0x12')]['getRevision'](_0x8754f5['id'])['setName'](_0x8754f5[_0xabcf('0x33')]);}[_0xabcf('0x17')](_0x482b90,_0x4ba7f7,_0x4b6de6){const _0x5b7fd9=this[_0xabcf('0x12')][_0xabcf('0x0')](_0x4b6de6);_0x5b7fd9[_0xabcf('0x4')]>0x2?(this[_0xabcf('0x25')]['highlightRevisions'](_0x5b7fd9),this[_0xabcf('0x25')][_0xabcf('0x20')](null)):(this[_0xabcf('0x25')][_0xabcf('0x22')]([]),this[_0xabcf('0x25')][_0xabcf('0x20')](_0x5b7fd9[0x0]));}[_0xabcf('0x1')](){const _0x3c9cb1=this[_0xabcf('0x3e')],_0xf0bce7=w[_0xabcf('0x39')],_0x58379a=_0x3c9cb1[_0xabcf('0x16')][_0xabcf('0x6')]('revisionHistory.revisionActions')||w[_0xabcf('0x30')];if(_0x58379a[_0xabcf('0x4')])return _0x58379a[_0xabcf('0x15')](_0x24cf17=>{const _0x5a53db=_0xabcf('0x13')==typeof _0x24cf17?Object[_0xabcf('0x2d')]({},_0xf0bce7[_0x24cf17]):_0x24cf17;return _0x5a53db[_0xabcf('0x3a')]=_0x5a53db['action'][_0xabcf('0x28')](this,_0x3c9cb1),_0x5a53db[_0xabcf('0x1d')]&&(_0x5a53db[_0xabcf('0x1d')]=_0x5a53db['isVisible'][_0xabcf('0x28')](this,_0x3c9cb1)),_0x5a53db;});}}w[_0xabcf('0x39')]={'compareAgainstSelected':{'name':_0xabcf('0xa'),'action':({plugins:_0xb393c3},_0x221e47)=>{const _0x4620c0=_0xb393c3[_0xabcf('0x6')](_0x234862),_0x594271=_0x4620c0[_0xabcf('0x29')];let _0x559403=_0x4620c0['diff'][_0xabcf('0x3c')],_0x41ca4c=_0x221e47['id'];_0x594271['getIndex'](_0x559403)>_0x594271[_0xabcf('0xd')](_0x41ca4c)&&([_0x559403,_0x41ca4c]=[_0x41ca4c,_0x559403]),_0x4620c0[_0xabcf('0x3b')](_0x559403,_0x41ca4c);},'isVisible':({plugins:_0x219dcd},_0x225b37)=>{const _0x30eca9=_0x219dcd[_0xabcf('0x6')](_0x234862);return!(_0x30eca9[_0xabcf('0x29')][_0xabcf('0x0')](_0x30eca9[_0xabcf('0x7')])[_0xabcf('0x4')]>0x2)&&!_0x225b37[_0xabcf('0x21')];}},'restoreRevision':{'name':_0xabcf('0x37'),'action':(_0x230fd5,{id:_0x55e300})=>{_0x230fd5[_0xabcf('0x16')][_0xabcf('0x6')](_0xabcf('0x23'))[_0xabcf('0xc')](_0x55e300);},'isVisible':({plugins:_0x2dcc97},_0x3dfe2a)=>!!_0x2dcc97[_0xabcf('0x6')](_0x234862)['repository'][_0xabcf('0x1b')](_0x3dfe2a['id'])},'nameRevision':{'name':_0xabcf('0x2e'),'action':({plugins:_0x1392e6},{id:_0x5101e2,revisionNameView:_0xcf7250})=>{const _0xd61871=_0x1392e6['get'](_0x234862),_0x3559f5=_0xd61871[_0xabcf('0x29')][_0xabcf('0x11')](_0x5101e2);_0xd61871[_0xabcf('0x3b')](_0x5101e2,_0x3559f5),_0xcf7250[_0xabcf('0x1f')](),_0xcf7250[_0xabcf('0x2a')][_0xabcf('0x36')]();}}},w[_0xabcf('0x30')]=[_0xabcf('0x10'),_0xabcf('0x34'),_0xabcf('0x2f')];
23
+ const _0x46f7=['config','getLaterVisibleRevision','change:diff','_handleEditorDataReady','remove','action','getRevisionsInDiff','availableRevisionActions','_handleRevisionSelected','revisionViews','_sidebarView','diff','bind','data','_handleRevisionSetName','_revisionViewer','isReady','appendChild','restoreRevision','element','Name\x20this\x20revision','destroy','focus','revisionHistory.revisionActions','revisionHistory.viewerSidebarContainer','revisionSelected','highlightRevisions','_revisionsRepository','plugins','_createRevisionActions','setName','length','fieldView','select','isSelected','compare','init','locale','get','nameRevision','isVisible','add','defaultRevisionActions','listenTo','Restore\x20this\x20revision','map','render','RevisionsSidebar','getIndex','assign','requires','string','restoreRevisionCallback','getEarlierVisibleRevision','repository','ready','editor','_handleDiffChange','getRevision','selectRevision'];(function(_0x8e8b23,_0x46f758){const _0x1f7a6a=function(_0x52cc25){while(--_0x52cc25){_0x8e8b23['push'](_0x8e8b23['shift']());}};_0x1f7a6a(++_0x46f758);}(_0x46f7,0x89));const _0x1f7a=function(_0x8e8b23,_0x46f758){_0x8e8b23=_0x8e8b23-0x0;let _0x1f7a6a=_0x46f7[_0x8e8b23];return _0x1f7a6a;};import{Plugin as _0x4f9d60}from'ckeditor5/src/core';import _0x54575d from'./revisionssidebarview';import _0x37301f from'../../revisionviewer';export default class w extends _0x4f9d60{static get['pluginName'](){return _0x1f7a('0x1e');}static get[_0x1f7a('0x21')](){return[_0x37301f];}constructor(_0x2cb891){super(_0x2cb891),this[_0x1f7a('0x3a')]=_0x2cb891[_0x1f7a('0xb')][_0x1f7a('0x15')](_0x37301f),this[_0x1f7a('0xa')]=this[_0x1f7a('0x3a')][_0x1f7a('0x25')],this[_0x1f7a('0x35')]=null;}[_0x1f7a('0x13')](){const _0x186bb7=this[_0x1f7a('0xa')]['_revisions'],_0x5711e3=this[_0x1f7a('0xc')](),_0x1afb89=this[_0x1f7a('0x27')][_0x1f7a('0x2b')][_0x1f7a('0x15')](_0x1f7a('0x7'));this[_0x1f7a('0x35')]=new _0x54575d(this['editor'][_0x1f7a('0x14')],_0x186bb7,_0x5711e3),this[_0x1f7a('0x35')]['on'](_0x1f7a('0x8'),this[_0x1f7a('0x33')][_0x1f7a('0x37')](this)),this[_0x1f7a('0x35')]['on']('revisionSetName',this['_handleRevisionSetName']['bind'](this)),this['_sidebarView']['bind']('isEnabled')['to'](this[_0x1f7a('0x3a')]),this['_sidebarView']['timePeriodViews']['on'](_0x1f7a('0x18'),(_0x276744,_0x2c76e0)=>{_0x2c76e0[_0x1f7a('0x34')]['on'](_0x1f7a('0x18'),(_0x2b48d2,_0x2f1618)=>{_0x2f1618[_0x1f7a('0x37')]('isEnabled',_0x1f7a('0x3b'))['to'](this[_0x1f7a('0x3a')]);});}),this[_0x1f7a('0x35')][_0x1f7a('0x1d')](),this[_0x1f7a('0x1a')](this[_0x1f7a('0x27')][_0x1f7a('0x38')],_0x1f7a('0x26'),this[_0x1f7a('0x2e')][_0x1f7a('0x37')](this)),this[_0x1f7a('0x1a')](this['_revisionViewer'],_0x1f7a('0x2d'),this[_0x1f7a('0x28')]['bind'](this)),_0x1afb89[_0x1f7a('0x0')](this['_sidebarView'][_0x1f7a('0x2')]);}[_0x1f7a('0x4')](){this['_sidebarView']['element'][_0x1f7a('0x2f')](),this[_0x1f7a('0x35')][_0x1f7a('0x4')]();}[_0x1f7a('0x2e')](){const _0x4f8179=this['_revisionsRepository'][_0x1f7a('0x29')](0x0);if(_0x4f8179){const _0x33d250=this[_0x1f7a('0xa')]['getEarlierVisibleRevision'](_0x4f8179['id']);this['_revisionViewer'][_0x1f7a('0x12')](_0x4f8179,_0x33d250);}}['_handleRevisionSelected'](_0x2e48d9,_0x3bfaab){const _0x52ff59=this[_0x1f7a('0xa')][_0x1f7a('0x29')](_0x3bfaab['id']),_0x2ebbe7=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x52ff59['id']);this[_0x1f7a('0x3a')][_0x1f7a('0x12')](_0x52ff59,_0x2ebbe7);}[_0x1f7a('0x39')](_0x33242b,_0x335b79){this[_0x1f7a('0xa')][_0x1f7a('0x29')](_0x335b79['id'])[_0x1f7a('0xd')](_0x335b79['name']);}[_0x1f7a('0x28')](_0x47b850,_0x3108cd,_0x3a7f95){const _0x430ef6=this[_0x1f7a('0xa')][_0x1f7a('0x31')](_0x3a7f95);_0x430ef6[_0x1f7a('0xe')]>0x2?(this[_0x1f7a('0x35')]['highlightRevisions'](_0x430ef6),this[_0x1f7a('0x35')][_0x1f7a('0x2a')](null)):(this[_0x1f7a('0x35')][_0x1f7a('0x9')]([]),this[_0x1f7a('0x35')][_0x1f7a('0x2a')](_0x430ef6[0x0]));}[_0x1f7a('0xc')](){const _0x216900=this['editor'],_0x2df061=w[_0x1f7a('0x32')],_0x39c072=_0x216900[_0x1f7a('0x2b')][_0x1f7a('0x15')](_0x1f7a('0x6'))||w['defaultRevisionActions'];if(_0x39c072[_0x1f7a('0xe')])return _0x39c072[_0x1f7a('0x1c')](_0x1c82da=>{const _0x5a309f=_0x1f7a('0x22')==typeof _0x1c82da?Object[_0x1f7a('0x20')]({},_0x2df061[_0x1c82da]):_0x1c82da;return _0x5a309f[_0x1f7a('0x30')]=_0x5a309f[_0x1f7a('0x30')][_0x1f7a('0x37')](this,_0x216900),_0x5a309f['isVisible']&&(_0x5a309f[_0x1f7a('0x17')]=_0x5a309f[_0x1f7a('0x17')][_0x1f7a('0x37')](this,_0x216900)),_0x5a309f;});}}w['availableRevisionActions']={'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x373a0f},_0x1a8793)=>{const _0x51e486=_0x373a0f[_0x1f7a('0x15')](_0x37301f),_0x29d599=_0x51e486[_0x1f7a('0x25')];let _0x36d947=_0x51e486[_0x1f7a('0x36')]['newRevisionId'],_0x5c46f3=_0x1a8793['id'];_0x29d599[_0x1f7a('0x1f')](_0x36d947)>_0x29d599['getIndex'](_0x5c46f3)&&([_0x36d947,_0x5c46f3]=[_0x5c46f3,_0x36d947]),_0x51e486[_0x1f7a('0x12')](_0x36d947,_0x5c46f3);},'isVisible':({plugins:_0x80b833},_0x3cb7b3)=>{const _0x318fba=_0x80b833[_0x1f7a('0x15')](_0x37301f);return!(_0x318fba['repository'][_0x1f7a('0x31')](_0x318fba[_0x1f7a('0x36')])[_0x1f7a('0xe')]>0x2)&&!_0x3cb7b3[_0x1f7a('0x11')];}},'restoreRevision':{'name':_0x1f7a('0x1b'),'action':(_0x1b5a00,{id:_0x58b1cf})=>{_0x1b5a00[_0x1f7a('0x2b')][_0x1f7a('0x15')]('revisionHistory')[_0x1f7a('0x23')](_0x58b1cf);},'isVisible':({plugins:_0x17c531},_0x4c302b)=>!!_0x17c531[_0x1f7a('0x15')](_0x37301f)['repository'][_0x1f7a('0x2c')](_0x4c302b['id'])},'nameRevision':{'name':_0x1f7a('0x3'),'action':({plugins:_0xc875cf},{id:_0x5408ca,revisionNameView:_0x2ad88a})=>{const _0x4e7d22=_0xc875cf[_0x1f7a('0x15')](_0x37301f),_0x40b483=_0x4e7d22[_0x1f7a('0x25')][_0x1f7a('0x24')](_0x5408ca);_0x4e7d22[_0x1f7a('0x12')](_0x5408ca,_0x40b483),_0x2ad88a[_0x1f7a('0x5')](),_0x2ad88a[_0x1f7a('0xf')][_0x1f7a('0x10')]();}}},w[_0x1f7a('0x19')]=['compareAgainstSelected',_0x1f7a('0x1'),_0x1f7a('0x16')];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x18c3=['ck-revision-history-sidebar__header__label','ck-revision-history-sidebar__header','Revision\x20history','ck-reset_all','span','content','setTemplate'];(function(_0x4dfc96,_0x18c3f6){const _0x51d13c=function(_0x2c2694){while(--_0x2c2694){_0x4dfc96['push'](_0x4dfc96['shift']());}};_0x51d13c(++_0x18c3f6);}(_0x18c3,0x1ab));const _0x51d1=function(_0x4dfc96,_0x18c3f6){_0x4dfc96=_0x4dfc96-0x0;let _0x51d13c=_0x18c3[_0x4dfc96];return _0x51d13c;};import{View as _0x3be342,IconView as _0x2d0c80}from'ckeditor5/src/ui';import{getTranslation as _0x34c16a}from'../../utils/common-translations';import _0x328633 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x3be342{constructor(_0x4dda87){super(_0x4dda87);const _0x3e0a5a=new _0x2d0c80();_0x3e0a5a[_0x51d1('0x5')]=_0x328633,this[_0x51d1('0x6')]({'tag':'div','attributes':{'class':['ck',_0x51d1('0x3'),_0x51d1('0x1')]},'children':[_0x3e0a5a,{'tag':_0x51d1('0x4'),'attributes':{'class':['ck',_0x51d1('0x0')]},'children':[_0x34c16a(_0x4dda87,_0x51d1('0x2'))]}]});}}
23
+ const _0x2c93=['ck-revision-history-sidebar__header__label','ck-reset_all','span','Revision\x20history','setTemplate'];(function(_0x1d38eb,_0x2c93e4){const _0x233780=function(_0x358d75){while(--_0x358d75){_0x1d38eb['push'](_0x1d38eb['shift']());}};_0x233780(++_0x2c93e4);}(_0x2c93,0xde));const _0x2337=function(_0x1d38eb,_0x2c93e4){_0x1d38eb=_0x1d38eb-0x0;let _0x233780=_0x2c93[_0x1d38eb];return _0x233780;};import{View as _0x594d39,IconView as _0x5e27b4}from'ckeditor5/src/ui';import{getTranslation as _0x30a519}from'../../utils/common-translations';import _0x31b331 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x594d39{constructor(_0x269987){super(_0x269987);const _0x420e69=new _0x5e27b4();_0x420e69['content']=_0x31b331,this[_0x2337('0x2')]({'tag':'div','attributes':{'class':['ck',_0x2337('0x4'),'ck-revision-history-sidebar__header']},'children':[_0x420e69,{'tag':_0x2337('0x0'),'attributes':{'class':['ck',_0x2337('0x3')]},'children':[_0x30a519(_0x269987,_0x2337('0x1'))]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4187=['ck-revision-history-sidebar__time-period__label','find','createCollection','select','addRevision','revisionViews','remove','add','_revisionActions','startDate','removeRevision','ck-revision-history-sidebar__time-period','span','uiLanguage','div','locale'];(function(_0x4fcadf,_0x418738){const _0x1170b0=function(_0x4acfa1){while(--_0x4acfa1){_0x4fcadf['push'](_0x4fcadf['shift']());}};_0x1170b0(++_0x418738);}(_0x4187,0x1b3));const _0x1170=function(_0x4fcadf,_0x418738){_0x4fcadf=_0x4fcadf-0x0;let _0x1170b0=_0x4187[_0x4fcadf];return _0x1170b0;};import{View as _0x5c6ccb}from'ckeditor5/src/ui';import _0x1f233b from'../revision/revisionview';import{getDateTimePeriodInfo as _0xe5aa1e}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x5c6ccb{constructor(_0x5bf632,_0x25da8d,_0x23b2f5){super(_0x5bf632);const _0x102e9e=_0xe5aa1e(_0x25da8d,this[_0x1170('0xc')][_0x1170('0xa')])['localizedPeriodName'];this[_0x1170('0x6')]=_0x25da8d,this[_0x1170('0x2')]=this[_0x1170('0xf')](),this['_revisionActions']=_0x23b2f5,this[_0x1170('0x2')]['delegate'](_0x1170('0x0'))['to'](this),this[_0x1170('0x2')]['delegate']('setName')['to'](this),this['setTemplate']({'tag':_0x1170('0xb'),'attributes':{'class':['ck',_0x1170('0x8')]},'children':[{'tag':_0x1170('0x9'),'attributes':{'class':['ck',_0x1170('0xd')]},'children':[{'text':_0x102e9e}]},{'tag':_0x1170('0xb'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this[_0x1170('0x2')]}]});}[_0x1170('0x1')](_0xebc652){const _0x24da3f=new _0x1f233b(this[_0x1170('0xc')],_0xebc652,this[_0x1170('0x5')]);this[_0x1170('0x2')][_0x1170('0x4')](_0x24da3f);}[_0x1170('0x7')](_0x2793b8){const _0x2f4b71=this[_0x1170('0x2')][_0x1170('0xe')](_0x1c011c=>_0x1c011c['id']===_0x2793b8['id']);this[_0x1170('0x2')][_0x1170('0x3')](_0x2f4b71);}}
23
+ const _0x77e1=['ck-revision-history-sidebar__time-period','ck-revision-history-sidebar__time-period__label','revisionViews','ck-revision-history-sidebar__time-period__revisions','setTemplate','_revisionActions','find','add','locale','delegate','removeRevision','div','setName','span'];(function(_0x1bfed5,_0x77e11e){const _0x4a29e7=function(_0x389d39){while(--_0x389d39){_0x1bfed5['push'](_0x1bfed5['shift']());}};_0x4a29e7(++_0x77e11e);}(_0x77e1,0xd9));const _0x4a29=function(_0x1bfed5,_0x77e11e){_0x1bfed5=_0x1bfed5-0x0;let _0x4a29e7=_0x77e1[_0x1bfed5];return _0x4a29e7;};import{View as _0x150ea8}from'ckeditor5/src/ui';import _0x2bc78 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x4f4ea1}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x150ea8{constructor(_0x3617e9,_0x14a467,_0x3aa87a){super(_0x3617e9);const _0x331374=_0x4f4ea1(_0x14a467,this[_0x4a29('0x1')]['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x14a467,this[_0x4a29('0x9')]=this['createCollection'](),this[_0x4a29('0xc')]=_0x3aa87a,this[_0x4a29('0x9')]['delegate']('select')['to'](this),this[_0x4a29('0x9')][_0x4a29('0x2')](_0x4a29('0x5'))['to'](this),this[_0x4a29('0xb')]({'tag':_0x4a29('0x4'),'attributes':{'class':['ck',_0x4a29('0x7')]},'children':[{'tag':_0x4a29('0x6'),'attributes':{'class':['ck',_0x4a29('0x8')]},'children':[{'text':_0x331374}]},{'tag':'div','attributes':{'class':['ck',_0x4a29('0xa')]},'children':this[_0x4a29('0x9')]}]});}['addRevision'](_0x3be52e){const _0x25c8a8=new _0x2bc78(this['locale'],_0x3be52e,this['_revisionActions']);this[_0x4a29('0x9')][_0x4a29('0x0')](_0x25c8a8);}[_0x4a29('0x3')](_0x3d09f5){const _0x2794cc=this[_0x4a29('0x9')][_0x4a29('0xd')](_0x332ab7=>_0x332ab7['id']===_0x3d09f5['id']);this[_0x4a29('0x9')]['remove'](_0x2794cc);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x8e41=['ck-revision-history-sidebar__timeline','_getTimePeriodViewByStartDate','uiLanguage','render','ck-reset','find','highlightRevisions','set','ck-disabled','_addRevision','createCollection','locale','deselect','_revisions','removeRevision','revisionViews','fire','isEnabled','some','revisionSelected','delegate','startDate','getTime','selectRevision','timePeriodViews','get','bindTemplate','select','setName','highlight','div','map','flat','_revisionActions','remove','_removeRevision','ck-revision-history-sidebar','unhighlight'];(function(_0x58816a,_0x8e41d){const _0x122ed3=function(_0x49d747){while(--_0x49d747){_0x58816a['push'](_0x58816a['shift']());}};_0x122ed3(++_0x8e41d);}(_0x8e41,0x1d8));const _0x122e=function(_0x58816a,_0x8e41d){_0x58816a=_0x58816a-0x0;let _0x122ed3=_0x8e41[_0x58816a];return _0x122ed3;};import{View as _0x2acb30}from'ckeditor5/src/ui';import _0x4d4208 from'./revisionssidebartimeperiodview';import _0x38d3c3 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x168430}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x2acb30{constructor(_0x320f3b,_0x379977,_0x28b5cd){super(_0x320f3b);const _0x16b3f9=this[_0x122e('0xa')];this[_0x122e('0x8')]=this[_0x122e('0x20')](),this[_0x122e('0x8')][_0x122e('0x4')]('select')['to'](this),this[_0x122e('0x8')][_0x122e('0x4')](_0x122e('0xc'))['to'](this),this[_0x122e('0x23')]=_0x379977,this[_0x122e('0x11')]=_0x28b5cd,this['on'](_0x122e('0xb'),(_0x134d93,_0x1ad5d8)=>{this[_0x122e('0x0')](_0x122e('0x3'),_0x1ad5d8);}),this['on'](_0x122e('0xc'),(_0x31c329,_0x3c0f63)=>{this[_0x122e('0x0')]('revisionSetName',_0x3c0f63);}),this[_0x122e('0x1d')]('isEnabled',!0x1),this['setTemplate']({'tag':_0x122e('0xe'),'attributes':{'class':['ck',_0x122e('0x1a'),'ck-rounded-corners',_0x122e('0x14')]},'children':[new _0x38d3c3(_0x320f3b),{'tag':_0x122e('0xe'),'attributes':{'class':['ck',_0x122e('0x16'),_0x16b3f9['if'](_0x122e('0x1'),_0x122e('0x1e'),_0x2b4b44=>!_0x2b4b44)]},'children':this[_0x122e('0x8')]}]});}[_0x122e('0x19')](){super[_0x122e('0x19')]();for(const _0x22c53a of this[_0x122e('0x23')])this[_0x122e('0x1f')](_0x22c53a);this['_revisions']['on']('add',(_0x5bd72e,_0x32bd32)=>{this['_addRevision'](_0x32bd32);}),this[_0x122e('0x23')]['on'](_0x122e('0x12'),(_0x3ca3d9,_0x328dc6)=>{this[_0x122e('0x13')](_0x328dc6);});}get[_0x122e('0x25')](){return this['timePeriodViews']['map'](_0x389b2a=>_0x389b2a['revisionViews'][_0x122e('0xf')](_0x40d6fd=>_0x40d6fd))[_0x122e('0x10')]();}[_0x122e('0x7')](_0x4299a6){for(const _0x454d71 of this[_0x122e('0x25')])_0x4299a6&&_0x4299a6['id']===_0x454d71['id']?_0x454d71[_0x122e('0xb')]():_0x454d71[_0x122e('0x22')]();}[_0x122e('0x1c')](_0xd04256){for(const _0x4e21da of this[_0x122e('0x25')])_0xd04256[_0x122e('0x2')](({id:_0x41307a})=>_0x41307a===_0x4e21da['id'])?_0x4e21da[_0x122e('0xd')]():_0x4e21da[_0x122e('0x15')]();}[_0x122e('0x1f')](_0x35d1cc){const _0x8a9f22=_0x168430(_0x35d1cc['createdAt'],this['locale'][_0x122e('0x18')])[_0x122e('0x5')];let _0x14a0b4=this[_0x122e('0x8')][_0x122e('0x9')](0x0);_0x14a0b4&&_0x14a0b4[_0x122e('0x5')][_0x122e('0x6')]()===_0x8a9f22['getTime']()||(_0x14a0b4=new _0x4d4208(this[_0x122e('0x21')],_0x8a9f22,this[_0x122e('0x11')]),this[_0x122e('0x8')]['add'](_0x14a0b4)),_0x14a0b4['addRevision'](_0x35d1cc);}[_0x122e('0x13')](_0x572d18){const _0x5a3805=_0x168430(_0x572d18['createdAt'],this[_0x122e('0x21')][_0x122e('0x18')])[_0x122e('0x5')];this[_0x122e('0x17')](_0x5a3805)[_0x122e('0x24')](_0x572d18);}[_0x122e('0x17')](_0x4b94bc){return this[_0x122e('0x8')][_0x122e('0x1b')](_0x410c84=>_0x410c84[_0x122e('0x5')][_0x122e('0x6')]()===_0x4b94bc['getTime']());}}
23
+ const _0xdf2c=['render','find','_removeRevision','get','div','_addRevision','some','ck-rounded-corners','delegate','ck-revision-history-sidebar__timeline','setTemplate','selectRevision','flat','_revisionActions','bindTemplate','addRevision','highlight','add','fire','uiLanguage','ck-disabled','getTime','isEnabled','createdAt','select','map','set','timePeriodViews','locale','ck-reset','deselect','startDate','highlightRevisions','ck-revision-history-sidebar','setName','_revisions','remove','_getTimePeriodViewByStartDate','revisionViews'];(function(_0x48b96c,_0xdf2c8e){const _0x4a81f0=function(_0x207f53){while(--_0x207f53){_0x48b96c['push'](_0x48b96c['shift']());}};_0x4a81f0(++_0xdf2c8e);}(_0xdf2c,0x195));const _0x4a81=function(_0x48b96c,_0xdf2c8e){_0x48b96c=_0x48b96c-0x0;let _0x4a81f0=_0xdf2c[_0x48b96c];return _0x4a81f0;};import{View as _0x2c29d6}from'ckeditor5/src/ui';import _0x51f9a7 from'./revisionssidebartimeperiodview';import _0x12b7c3 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x268fb3}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x2c29d6{constructor(_0x593178,_0xe4cb26,_0xf83762){super(_0x593178);const _0x1f307c=this[_0x4a81('0x26')];this[_0x4a81('0xc')]=this['createCollection'](),this[_0x4a81('0xc')][_0x4a81('0x20')](_0x4a81('0x9'))['to'](this),this[_0x4a81('0xc')][_0x4a81('0x20')]('setName')['to'](this),this[_0x4a81('0x14')]=_0xe4cb26,this[_0x4a81('0x25')]=_0xf83762,this['on'](_0x4a81('0x9'),(_0x56e577,_0x813a86)=>{this[_0x4a81('0x3')]('revisionSelected',_0x813a86);}),this['on'](_0x4a81('0x13'),(_0x10b815,_0x11e594)=>{this[_0x4a81('0x3')]('revisionSetName',_0x11e594);}),this[_0x4a81('0xb')]('isEnabled',!0x1),this[_0x4a81('0x22')]({'tag':_0x4a81('0x1c'),'attributes':{'class':['ck',_0x4a81('0xe'),_0x4a81('0x1f'),_0x4a81('0x12')]},'children':[new _0x12b7c3(_0x593178),{'tag':_0x4a81('0x1c'),'attributes':{'class':['ck',_0x4a81('0x21'),_0x1f307c['if'](_0x4a81('0x7'),_0x4a81('0x5'),_0x3b91e6=>!_0x3b91e6)]},'children':this[_0x4a81('0xc')]}]});}[_0x4a81('0x18')](){super[_0x4a81('0x18')]();for(const _0x52cf74 of this[_0x4a81('0x14')])this['_addRevision'](_0x52cf74);this[_0x4a81('0x14')]['on'](_0x4a81('0x2'),(_0x29a095,_0xa1d006)=>{this['_addRevision'](_0xa1d006);}),this['_revisions']['on'](_0x4a81('0x15'),(_0x1da3fc,_0x4a8353)=>{this[_0x4a81('0x1a')](_0x4a8353);});}get['revisionViews'](){return this[_0x4a81('0xc')][_0x4a81('0xa')](_0x24a77a=>_0x24a77a['revisionViews'][_0x4a81('0xa')](_0x281bc9=>_0x281bc9))[_0x4a81('0x24')]();}[_0x4a81('0x23')](_0x7206dc){for(const _0x48398c of this[_0x4a81('0x17')])_0x7206dc&&_0x7206dc['id']===_0x48398c['id']?_0x48398c['select']():_0x48398c[_0x4a81('0xf')]();}[_0x4a81('0x11')](_0x237e2a){for(const _0x2f401d of this[_0x4a81('0x17')])_0x237e2a[_0x4a81('0x1e')](({id:_0x32453b})=>_0x32453b===_0x2f401d['id'])?_0x2f401d[_0x4a81('0x1')]():_0x2f401d['unhighlight']();}[_0x4a81('0x1d')](_0x8932fc){const _0xb4c51e=_0x268fb3(_0x8932fc[_0x4a81('0x8')],this['locale'][_0x4a81('0x4')])[_0x4a81('0x10')];let _0x64020f=this[_0x4a81('0xc')][_0x4a81('0x1b')](0x0);_0x64020f&&_0x64020f['startDate'][_0x4a81('0x6')]()===_0xb4c51e[_0x4a81('0x6')]()||(_0x64020f=new _0x51f9a7(this[_0x4a81('0xd')],_0xb4c51e,this['_revisionActions']),this[_0x4a81('0xc')]['add'](_0x64020f)),_0x64020f[_0x4a81('0x0')](_0x8932fc);}[_0x4a81('0x1a')](_0x3c08e0){const _0x5f41dc=_0x268fb3(_0x3c08e0[_0x4a81('0x8')],this[_0x4a81('0xd')]['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x5f41dc)['removeRevision'](_0x3c08e0);}[_0x4a81('0x16')](_0x57594e){return this[_0x4a81('0xc')][_0x4a81('0x19')](_0xa3f6bb=>_0xa3f6bb['startDate'][_0x4a81('0x6')]()===_0x57594e[_0x4a81('0x6')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x51f4=['monthLong','startOf','weekdayLong','local','week','month','hasSame','fromJSDate','toJSDate','setLocale','minus','year','day'];(function(_0x301408,_0x51f428){const _0x291c93=function(_0x56f344){while(--_0x56f344){_0x301408['push'](_0x301408['shift']());}};_0x291c93(++_0x51f428);}(_0x51f4,0x12e));const _0x291c=function(_0x301408,_0x51f428){_0x301408=_0x301408-0x0;let _0x291c93=_0x51f4[_0x301408];return _0x291c93;};import{DateTime as _0x3c0104}from'luxon';export function getDateTimePeriodInfo(_0x5d4212,_0x9d3d67){const _0x4100b9=_0x3c0104[_0x291c('0x4')](_0x5d4212)[_0x291c('0x6')](_0x9d3d67),_0x33d71c=_0x3c0104[_0x291c('0x0')](),_0x9edf37=_0x33d71c[_0x291c('0x7')]({'days':0x1})['startOf'](_0x291c('0x9'));let _0x5b87cb,_0x29ff2d;return _0x4100b9['hasSame'](_0x33d71c,_0x291c('0x9'))?(_0x5b87cb=_0x4100b9['startOf']('day')[_0x291c('0x5')](),_0x29ff2d=_0x4100b9['toRelativeCalendar']()):_0x4100b9[_0x291c('0x3')](_0x9edf37,_0x291c('0x9'))?(_0x5b87cb=_0x9edf37['toJSDate'](),_0x29ff2d=_0x4100b9['toRelativeCalendar']()):_0x4100b9[_0x291c('0x3')](_0x33d71c,_0x291c('0x1'))?(_0x5b87cb=_0x4100b9[_0x291c('0xb')]('week')[_0x291c('0x5')](),_0x29ff2d=_0x4100b9[_0x291c('0xc')]||''):_0x4100b9['hasSame'](_0x33d71c,_0x291c('0x8'))?(_0x5b87cb=_0x4100b9[_0x291c('0xb')](_0x291c('0x2'))[_0x291c('0x5')](),_0x29ff2d=_0x4100b9[_0x291c('0xa')]||''):(_0x5b87cb=_0x4100b9[_0x291c('0xb')](_0x291c('0x8'))['toJSDate'](),_0x29ff2d=String(_0x4100b9[_0x291c('0x8')])),{'startDate':_0x5b87cb,'localizedPeriodName':_0x29ff2d};}
23
+ const _0x1816=['year','hasSame','week','local','fromJSDate','toRelativeCalendar','startOf','monthLong','month','toJSDate','day','minus'];(function(_0x2defb6,_0x18167d){const _0x4d1b1f=function(_0x404fc0){while(--_0x404fc0){_0x2defb6['push'](_0x2defb6['shift']());}};_0x4d1b1f(++_0x18167d);}(_0x1816,0x125));const _0x4d1b=function(_0x2defb6,_0x18167d){_0x2defb6=_0x2defb6-0x0;let _0x4d1b1f=_0x1816[_0x2defb6];return _0x4d1b1f;};import{DateTime as _0x4007d8}from'luxon';export function getDateTimePeriodInfo(_0x5c78c6,_0x31d50f){const _0x578954=_0x4007d8[_0x4d1b('0xb')](_0x5c78c6)['setLocale'](_0x31d50f),_0xb18eb4=_0x4007d8[_0x4d1b('0xa')](),_0x44242a=_0xb18eb4[_0x4d1b('0x6')]({'days':0x1})[_0x4d1b('0x1')](_0x4d1b('0x5'));let _0x5062d2,_0x4c49a8;return _0x578954[_0x4d1b('0x8')](_0xb18eb4,_0x4d1b('0x5'))?(_0x5062d2=_0x578954['startOf'](_0x4d1b('0x5'))[_0x4d1b('0x4')](),_0x4c49a8=_0x578954[_0x4d1b('0x0')]()):_0x578954[_0x4d1b('0x8')](_0x44242a,'day')?(_0x5062d2=_0x44242a[_0x4d1b('0x4')](),_0x4c49a8=_0x578954[_0x4d1b('0x0')]()):_0x578954[_0x4d1b('0x8')](_0xb18eb4,'week')?(_0x5062d2=_0x578954[_0x4d1b('0x1')](_0x4d1b('0x9'))[_0x4d1b('0x4')](),_0x4c49a8=_0x578954['weekdayLong']||''):_0x578954[_0x4d1b('0x8')](_0xb18eb4,_0x4d1b('0x7'))?(_0x5062d2=_0x578954[_0x4d1b('0x1')](_0x4d1b('0x3'))['toJSDate'](),_0x4c49a8=_0x578954[_0x4d1b('0x2')]||''):(_0x5062d2=_0x578954['startOf']('year')[_0x4d1b('0x4')](),_0x4c49a8=String(_0x578954[_0x4d1b('0x7')])),{'startDate':_0x5062d2,'localizedPeriodName':_0x4c49a8};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xd288=['ck-revision-change__label','focus','set','bindTemplate','isSuggestion','changeId','author','setTemplate','div','type','name','_model','Suggested\x20by','span'];(function(_0x543b44,_0xd2882c){const _0x53de8a=function(_0x56dfb2){while(--_0x56dfb2){_0x543b44['push'](_0x543b44['shift']());}};_0x53de8a(++_0xd2882c);}(_0xd288,0x1c6));const _0x53de=function(_0x543b44,_0xd2882c){_0x543b44=_0x543b44-0x0;let _0x53de8a=_0xd288[_0x543b44];return _0x53de8a;};import{View as _0x24c2bc}from'ckeditor5/src/ui';import{getTranslation as _0xf41cd2}from'../../utils/common-translations';export default class Z extends _0x24c2bc{constructor(_0x3c6ea0,_0x5d4b30){super(_0x3c6ea0),this[_0x53de('0x5')]=_0x5d4b30,this[_0x53de('0xd')]=_0x5d4b30['id'];const _0x5b4f70=this[_0x53de('0xb')],_0x196ba5=_0xf41cd2(_0x3c6ea0,_0x5d4b30['data'][_0x53de('0xc')]?_0x53de('0x6'):'add'==_0x5d4b30[_0x53de('0x3')]?'Added\x20by':'Removed\x20by');this[_0x53de('0xa')](_0x53de('0x3'),_0x5d4b30['type']),this[_0x53de('0x1')]({'tag':_0x53de('0x2'),'attributes':{'class':['ck-annotation','ck-revision-change',_0x5b4f70['to'](_0x53de('0x3'),_0x295bdf=>'ck-revision-change__'+_0x295bdf)],'tabindex':-0x1},'children':[{'tag':_0x53de('0x7'),'children':[{'tag':'span','attributes':{'class':[_0x53de('0x8')]},'children':[{'text':_0x196ba5}]},{'text':'\x20'+_0x5d4b30[_0x53de('0x0')][_0x53de('0x4')]}]}]});}[_0x53de('0x9')](){this['element']['focus']();}}
23
+ const _0x1820=['Removed\x20by','ck-revision-change__','span','set','element','ck-revision-change__label','Added\x20by','name','ck-annotation','data','bindTemplate','add','setTemplate','isSuggestion','focus','_model','div','type'];(function(_0x11f994,_0x1820ae){const _0x3ca8d1=function(_0x2f24bd){while(--_0x2f24bd){_0x11f994['push'](_0x11f994['shift']());}};_0x3ca8d1(++_0x1820ae);}(_0x1820,0xaf));const _0x3ca8=function(_0x11f994,_0x1820ae){_0x11f994=_0x11f994-0x0;let _0x3ca8d1=_0x1820[_0x11f994];return _0x3ca8d1;};import{View as _0x3bf6cf}from'ckeditor5/src/ui';import{getTranslation as _0x6acd27}from'../../utils/common-translations';export default class Z extends _0x3bf6cf{constructor(_0x3ca8bb,_0x15b945){super(_0x3ca8bb),this[_0x3ca8('0x2')]=_0x15b945,this['changeId']=_0x15b945['id'];const _0x50504a=this[_0x3ca8('0xf')],_0x9ae048=_0x6acd27(_0x3ca8bb,_0x15b945[_0x3ca8('0xe')][_0x3ca8('0x0')]?'Suggested\x20by':_0x3ca8('0x10')==_0x15b945['type']?_0x3ca8('0xb'):_0x3ca8('0x5'));this[_0x3ca8('0x8')](_0x3ca8('0x4'),_0x15b945[_0x3ca8('0x4')]),this[_0x3ca8('0x11')]({'tag':_0x3ca8('0x3'),'attributes':{'class':[_0x3ca8('0xd'),'ck-revision-change',_0x50504a['to'](_0x3ca8('0x4'),_0xdda105=>_0x3ca8('0x6')+_0xdda105)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':_0x3ca8('0x7'),'attributes':{'class':[_0x3ca8('0xa')]},'children':[{'text':_0x9ae048}]},{'text':'\x20'+_0x15b945['author'][_0x3ca8('0xc')]}]}]});}['focus'](){this[_0x3ca8('0x9')][_0x3ca8('0x1')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5294=['execute','setTemplate','div','set','backward','fire','ck-revision-history-ui__changes-navigation__label','isBackwardNavigationEnabled','Show\x20next\x20change','isForwardNavigationEnabled','X_OF_Y_CHANGES','isReady','_statusText','forward','_isStatusLabelVisible','isEnabled','Total','NUMBER_OF_CHANGES','ck-revision-history-ui','isNavigationMode','bindTemplate','bind','currentChangeNumber','No\x20changes','Show\x20previous\x20change','ck-hidden','span','numberOfChanges','Loading...'];(function(_0x113dda,_0x529496){const _0x5496cf=function(_0x531067){while(--_0x531067){_0x113dda['push'](_0x113dda['shift']());}};_0x5496cf(++_0x529496);}(_0x5294,0xac));const _0x5496=function(_0x113dda,_0x529496){_0x113dda=_0x113dda-0x0;let _0x5496cf=_0x5294[_0x113dda];return _0x5496cf;};import{View as _0x3ce3bc,ButtonView as _0x5e8e90,ToolbarSeparatorView as _0x38ae91}from'ckeditor5/src/ui';import{getTranslation as _0x20dccf}from'../../utils/common-translations';import _0xd56ba2 from'../../../theme/icons/arrow-up.svg';import _0x59c284 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x3ce3bc{constructor(_0x18f142){super(_0x18f142);const _0x175aab=this[_0x5496('0x16')],_0x28e383=new _0x5e8e90(_0x18f142),_0x1e7dc5=new _0x5e8e90(_0x18f142);this[_0x5496('0x5')](_0x5496('0x15'),!0x1),this['set'](_0x5496('0xd'),!0x1),this[_0x5496('0x5')](_0x5496('0x18'),0x0),this['set'](_0x5496('0x0'),0x0),this[_0x5496('0x5')]('isForwardNavigationEnabled',!0x1),this[_0x5496('0x5')]('isBackwardNavigationEnabled',!0x1),this[_0x5496('0x17')](_0x5496('0x10'))['to'](this,_0x5496('0xd'),this,'numberOfChanges',(_0x5182d5,_0x5f4872)=>_0x5182d5&&_0x5f4872>0x0),this[_0x5496('0x17')](_0x5496('0xe'))['to'](this,'isReady',this,_0x5496('0x18'),this,_0x5496('0x0'),this,_0x5496('0x15'),(_0xc6b704,_0x414336,_0x5ca442,_0x285108)=>{if(!_0xc6b704)return _0x20dccf(_0x18f142,_0x5496('0x1'));if(!_0x5ca442)return _0x20dccf(_0x18f142,_0x5496('0x19'));const _0x13de63=_0x20dccf(_0x18f142,_0x5496('0x13'),_0x5ca442);return _0x285108?_0x20dccf(_0x18f142,_0x5496('0xc'),[_0x414336+0x1,_0x5ca442]):_0x13de63;}),_0x28e383[_0x5496('0x5')]({'label':_0x20dccf(_0x18f142,_0x5496('0x1a')),'tooltip':!0x0,'icon':_0xd56ba2}),_0x1e7dc5[_0x5496('0x5')]({'label':_0x20dccf(_0x18f142,_0x5496('0xa')),'tooltip':!0x0,'icon':_0x59c284}),_0x28e383['bind']('isEnabled')['to'](this,_0x5496('0x9')),_0x1e7dc5['bind'](_0x5496('0x11'))['to'](this,_0x5496('0xb')),_0x28e383['on'](_0x5496('0x2'),()=>this['fire'](_0x5496('0x2'),_0x5496('0x6'))),_0x1e7dc5['on']('execute',()=>this[_0x5496('0x7')](_0x5496('0x2'),_0x5496('0xf'))),this[_0x5496('0x3')]({'tag':'div','attributes':{'class':['ck',_0x5496('0x14'),'ck-revision-history-ui__changes-navigation']},'children':[{'tag':_0x5496('0x1c'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':_0x5496('0x1c'),'attributes':{'class':[_0x5496('0x8'),_0x175aab['if'](_0x5496('0x10'),_0x5496('0x1b'),_0x455ed4=>!_0x455ed4)]},'children':[{'text':_0x175aab['to']('isNavigationMode',_0x59105e=>_0x59105e?_0x20dccf(_0x18f142,'EDIT_X_OF_Y_REVISIONS')+':\x20':_0x20dccf(_0x18f142,_0x5496('0x12'))+':\x20')}]},{'text':_0x175aab['to']('_statusText')}]},new _0x38ae91(),{'tag':_0x5496('0x4'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x28e383,_0x1e7dc5]}]});}}
23
+ const _0x44a6=['currentChangeNumber','fire','_statusText','isEnabled','ck-revision-history-ui__changes-navigation__label','Loading...','No\x20changes','bind','isBackwardNavigationEnabled','isForwardNavigationEnabled','ck-revision-history-ui__changes-navigation__navigation','execute','ck-hidden','forward','numberOfChanges','NUMBER_OF_CHANGES','ck-revision-history-ui__changes-navigation','set','isReady','div','setTemplate','EDIT_X_OF_Y_REVISIONS','Show\x20next\x20change','Show\x20previous\x20change','span','isNavigationMode','ck-revision-history-ui','ck-revision-history-ui__changes-navigation__wrapper'];(function(_0x596db7,_0x44a64e){const _0x101803=function(_0x371afd){while(--_0x371afd){_0x596db7['push'](_0x596db7['shift']());}};_0x101803(++_0x44a64e);}(_0x44a6,0x7b));const _0x1018=function(_0x596db7,_0x44a64e){_0x596db7=_0x596db7-0x0;let _0x101803=_0x44a6[_0x596db7];return _0x101803;};import{View as _0x56793b,ButtonView as _0x4edc31,ToolbarSeparatorView as _0x5a3dca}from'ckeditor5/src/ui';import{getTranslation as _0x3e7ada}from'../../utils/common-translations';import _0x51856c from'../../../theme/icons/arrow-up.svg';import _0x585466 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x56793b{constructor(_0x50c8f8){super(_0x50c8f8);const _0xd8e3b=this['bindTemplate'],_0x36781e=new _0x4edc31(_0x50c8f8),_0x472c1a=new _0x4edc31(_0x50c8f8);this[_0x1018('0x6')](_0x1018('0xe'),!0x1),this[_0x1018('0x6')](_0x1018('0x7'),!0x1),this['set'](_0x1018('0x11'),0x0),this[_0x1018('0x6')](_0x1018('0x3'),0x0),this[_0x1018('0x6')](_0x1018('0x1a'),!0x1),this['set'](_0x1018('0x19'),!0x1),this[_0x1018('0x18')]('_isStatusLabelVisible')['to'](this,_0x1018('0x7'),this,_0x1018('0x3'),(_0x1ca50d,_0x266e07)=>_0x1ca50d&&_0x266e07>0x0),this[_0x1018('0x18')](_0x1018('0x13'))['to'](this,_0x1018('0x7'),this,_0x1018('0x11'),this,'numberOfChanges',this,'isNavigationMode',(_0x473519,_0x44e1ce,_0x1512e3,_0x1a4587)=>{if(!_0x473519)return _0x3e7ada(_0x50c8f8,_0x1018('0x16'));if(!_0x1512e3)return _0x3e7ada(_0x50c8f8,_0x1018('0x17'));const _0x487e95=_0x3e7ada(_0x50c8f8,_0x1018('0x4'),_0x1512e3);return _0x1a4587?_0x3e7ada(_0x50c8f8,'X_OF_Y_CHANGES',[_0x44e1ce+0x1,_0x1512e3]):_0x487e95;}),_0x36781e[_0x1018('0x6')]({'label':_0x3e7ada(_0x50c8f8,_0x1018('0xc')),'tooltip':!0x0,'icon':_0x51856c}),_0x472c1a['set']({'label':_0x3e7ada(_0x50c8f8,_0x1018('0xb')),'tooltip':!0x0,'icon':_0x585466}),_0x36781e[_0x1018('0x18')](_0x1018('0x14'))['to'](this,'isBackwardNavigationEnabled'),_0x472c1a[_0x1018('0x18')](_0x1018('0x14'))['to'](this,'isForwardNavigationEnabled'),_0x36781e['on'](_0x1018('0x0'),()=>this[_0x1018('0x12')](_0x1018('0x0'),'backward')),_0x472c1a['on'](_0x1018('0x0'),()=>this[_0x1018('0x12')](_0x1018('0x0'),_0x1018('0x2'))),this[_0x1018('0x9')]({'tag':_0x1018('0x8'),'attributes':{'class':['ck',_0x1018('0xf'),_0x1018('0x5')]},'children':[{'tag':'span','attributes':{'class':[_0x1018('0x10')]},'children':[{'tag':_0x1018('0xd'),'attributes':{'class':[_0x1018('0x15'),_0xd8e3b['if']('_isStatusLabelVisible',_0x1018('0x1'),_0x84e261=>!_0x84e261)]},'children':[{'text':_0xd8e3b['to'](_0x1018('0xe'),_0x3ad718=>_0x3ad718?_0x3e7ada(_0x50c8f8,_0x1018('0xa'))+':\x20':_0x3e7ada(_0x50c8f8,'Total')+':\x20')}]},{'text':_0xd8e3b['to'](_0x1018('0x13'))}]},new _0x5a3dca(),{'tag':_0x1018('0x8'),'attributes':{'class':[_0x1018('0x1b')]},'children':[_0x36781e,_0x472c1a]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xfa66=['roots','show','removeClass','change','view','editor','editing','document','ck-editor__editable__loading-overlay','addClass','hide','pluginName','RevisionViewerLoadingOverlay'];(function(_0x577ada,_0xfa66fd){const _0xa61b=function(_0x4ae433){while(--_0x4ae433){_0x577ada['push'](_0x577ada['shift']());}};_0xa61b(++_0xfa66fd);}(_0xfa66,0x1d3));const _0xa61b=function(_0x577ada,_0xfa66fd){_0x577ada=_0x577ada-0x0;let _0x4ae433=_0xfa66[_0x577ada];return _0x4ae433;};import{Plugin as _0x5b0ac0}from'ckeditor5/src/core';const oe=_0xa61b('0x9');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x5b0ac0{static get[_0xa61b('0xc')](){return _0xa61b('0x0');}[_0xa61b('0x2')](){const _0x481ad7=this[_0xa61b('0x6')][_0xa61b('0x7')][_0xa61b('0x5')];_0x481ad7[_0xa61b('0x4')](_0x51c04e=>{for(const _0x32c94d of _0x481ad7[_0xa61b('0x8')][_0xa61b('0x1')])_0x51c04e[_0xa61b('0xa')](oe,_0x32c94d);});}[_0xa61b('0xb')](){const _0x4a63cf=this[_0xa61b('0x6')][_0xa61b('0x7')][_0xa61b('0x5')];_0x4a63cf[_0xa61b('0x4')](_0x3bdf57=>{for(const _0x580323 of _0x4a63cf[_0xa61b('0x8')][_0xa61b('0x1')])_0x3bdf57[_0xa61b('0x3')](oe,_0x580323);});}}
23
+ const _0xc9ae=['editor','show','removeClass','hide','view','change','pluginName','roots','document','editing','RevisionViewerLoadingOverlay'];(function(_0x576bbf,_0xc9ae8c){const _0x26c3b3=function(_0x5487ba){while(--_0x5487ba){_0x576bbf['push'](_0x576bbf['shift']());}};_0x26c3b3(++_0xc9ae8c);}(_0xc9ae,0x1d3));const _0x26c3=function(_0x576bbf,_0xc9ae8c){_0x576bbf=_0x576bbf-0x0;let _0x26c3b3=_0xc9ae[_0x576bbf];return _0x26c3b3;};import{Plugin as _0x280e22}from'ckeditor5/src/core';const oe='ck-editor__editable__loading-overlay';import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x280e22{static get[_0x26c3('0x1')](){return _0x26c3('0x5');}[_0x26c3('0x7')](){const _0x5600f3=this[_0x26c3('0x6')][_0x26c3('0x4')]['view'];_0x5600f3[_0x26c3('0x0')](_0x4d2d6b=>{for(const _0x408c4d of _0x5600f3[_0x26c3('0x3')]['roots'])_0x4d2d6b['addClass'](oe,_0x408c4d);});}[_0x26c3('0x9')](){const _0x53e7c4=this[_0x26c3('0x6')][_0x26c3('0x4')][_0x26c3('0xa')];_0x53e7c4[_0x26c3('0x0')](_0x509c48=>{for(const _0xb01bf8 of _0x53e7c4[_0x26c3('0x3')][_0x26c3('0x2')])_0x509c48[_0x26c3('0x8')](oe,_0xb01bf8);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2511=['currentChangeNumber','hide','isEnabled','plugins','get','Back\x20to\x20editing','commands','add','bind','revisionHistory','config','init','numberOfChanges','forward','editor','execute','componentFactory','showNextChange','show','isReady','pluginName','RevisionViewerUI','closeRevisionViewerCallback','ck-revision-history-ui__back-to-editing','requires','isForwardNavigationEnabled','restoreRevision','set','listenTo','Restore\x20this\x20revision','showPreviousChange','change:isReady'];(function(_0x50ee33,_0x25118c){const _0x1d075d=function(_0x31a346){while(--_0x31a346){_0x50ee33['push'](_0x50ee33['shift']());}};_0x1d075d(++_0x25118c);}(_0x2511,0x1b8));const _0x1d07=function(_0x50ee33,_0x25118c){_0x50ee33=_0x50ee33-0x0;let _0x1d075d=_0x2511[_0x50ee33];return _0x1d075d;};import{Plugin as _0x93afe8}from'ckeditor5/src/core';import{ButtonView as _0x11d39a}from'ckeditor5/src/ui';import _0x49fc80 from'./changesnavigationview';import _0xbeb607 from'./../../revisionviewer';import _0x40efaa from'./revisionviewerloadingoverlay';import{getTranslation as _0x523815}from'../../utils/common-translations';import _0x5b44b0 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x93afe8{static get[_0x1d07('0x1c')](){return _0x1d07('0x1d');}static get[_0x1d07('0x0')](){return[_0xbeb607,_0x40efaa];}[_0x1d07('0x13')](){const _0x5d9c38=this[_0x1d07('0x16')],_0xf9f5bf=_0x5d9c38[_0x1d07('0xb')][_0x1d07('0xc')](_0xbeb607),_0xc2a8a3=_0x5d9c38[_0x1d07('0xb')][_0x1d07('0xc')](_0x40efaa);_0x5d9c38['ui']['componentFactory'][_0x1d07('0xf')]('exitToEditing',_0x78c8db=>{const _0x5af8f6=new _0x11d39a(_0x78c8db);return _0x5af8f6[_0x1d07('0x3')]({'label':_0x523815(_0x78c8db,_0x1d07('0xd')),'icon':_0x5b44b0,'withText':!0x0,'tooltip':!0x0,'class':_0x1d07('0x1f')}),this[_0x1d07('0x4')](_0x5af8f6,_0x1d07('0x17'),()=>{_0x5d9c38[_0x1d07('0x12')][_0x1d07('0xc')](_0x1d07('0x11'))[_0x1d07('0x1e')]();}),_0x5af8f6;}),_0x5d9c38['ui'][_0x1d07('0x18')][_0x1d07('0xf')](_0x1d07('0x2'),_0x20f420=>{const _0x39b1bb=new _0x11d39a(_0x20f420);return _0x39b1bb[_0x1d07('0x3')]({'label':_0x523815(_0x20f420,_0x1d07('0x5')),'withText':!0x0,'tooltip':!0x0}),_0x39b1bb[_0x1d07('0x10')](_0x1d07('0xa'))['to'](_0x5d9c38['commands']['get'](_0x1d07('0x2'))),this['listenTo'](_0x39b1bb,_0x1d07('0x17'),()=>_0x5d9c38[_0x1d07('0x17')](_0x1d07('0x2'))),_0x39b1bb;}),_0x5d9c38['ui'][_0x1d07('0x18')][_0x1d07('0xf')]('changesNavigation',_0x5b4efb=>{const _0x122c9d=new _0x49fc80(_0x5b4efb),_0x56057c=_0x5d9c38['commands'][_0x1d07('0xc')]('showPreviousChange'),_0x14d9e9=_0x5d9c38[_0x1d07('0xe')][_0x1d07('0xc')](_0x1d07('0x19'));return _0x122c9d[_0x1d07('0x10')]('isBackwardNavigationEnabled')['to'](_0x56057c,_0x1d07('0xa')),_0x122c9d[_0x1d07('0x10')](_0x1d07('0x1'))['to'](_0x14d9e9,_0x1d07('0xa')),_0x122c9d[_0x1d07('0x10')](_0x1d07('0x1b'),_0x1d07('0x8'),_0x1d07('0x14'),'isNavigationMode')['to'](_0xf9f5bf),this[_0x1d07('0x4')](_0x122c9d,'execute',(_0x118922,_0x55387a)=>{_0x5d9c38[_0x1d07('0x17')](_0x1d07('0x15')===_0x55387a?_0x1d07('0x19'):_0x1d07('0x6'));}),_0x122c9d;}),_0xc2a8a3[_0x1d07('0x1a')](),_0xf9f5bf['on'](_0x1d07('0x7'),(_0x43499d,_0x2f1a0a,_0x466179)=>{_0x466179?_0xc2a8a3[_0x1d07('0x9')]():_0xc2a8a3[_0x1d07('0x1a')]();});}}
23
+ const _0x189d=['Back\x20to\x20editing','change:isReady','componentFactory','pluginName','config','isForwardNavigationEnabled','editor','set','closeRevisionViewerCallback','execute','isEnabled','ck-revision-history-ui__back-to-editing','requires','isBackwardNavigationEnabled','isReady','RevisionViewerUI','bind','currentChangeNumber','showNextChange','restoreRevision','show','showPreviousChange','forward','listenTo','add','exitToEditing','init','isNavigationMode','plugins','changesNavigation','get','commands'];(function(_0x117113,_0x189d54){const _0x27ff89=function(_0x2b9b49){while(--_0x2b9b49){_0x117113['push'](_0x117113['shift']());}};_0x27ff89(++_0x189d54);}(_0x189d,0x68));const _0x27ff=function(_0x117113,_0x189d54){_0x117113=_0x117113-0x0;let _0x27ff89=_0x189d[_0x117113];return _0x27ff89;};import{Plugin as _0x10ad0d}from'ckeditor5/src/core';import{ButtonView as _0x3ef7e6}from'ckeditor5/src/ui';import _0x36e3a5 from'./changesnavigationview';import _0x1d61f6 from'./../../revisionviewer';import _0x3834bc from'./revisionviewerloadingoverlay';import{getTranslation as _0x58b1fd}from'../../utils/common-translations';import _0x48c945 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x10ad0d{static get[_0x27ff('0x1b')](){return _0x27ff('0x7');}static get[_0x27ff('0x4')](){return[_0x1d61f6,_0x3834bc];}[_0x27ff('0x12')](){const _0xcdc40d=this[_0x27ff('0x1e')],_0x1af142=_0xcdc40d[_0x27ff('0x14')]['get'](_0x1d61f6),_0x2eb972=_0xcdc40d[_0x27ff('0x14')]['get'](_0x3834bc);_0xcdc40d['ui'][_0x27ff('0x1a')][_0x27ff('0x10')](_0x27ff('0x11'),_0x22460c=>{const _0x42e76f=new _0x3ef7e6(_0x22460c);return _0x42e76f[_0x27ff('0x1f')]({'label':_0x58b1fd(_0x22460c,_0x27ff('0x18')),'icon':_0x48c945,'withText':!0x0,'tooltip':!0x0,'class':_0x27ff('0x3')}),this[_0x27ff('0xf')](_0x42e76f,_0x27ff('0x1'),()=>{_0xcdc40d[_0x27ff('0x1c')][_0x27ff('0x16')]('revisionHistory')[_0x27ff('0x0')]();}),_0x42e76f;}),_0xcdc40d['ui'][_0x27ff('0x1a')][_0x27ff('0x10')](_0x27ff('0xb'),_0x5e11cf=>{const _0x1be155=new _0x3ef7e6(_0x5e11cf);return _0x1be155[_0x27ff('0x1f')]({'label':_0x58b1fd(_0x5e11cf,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x1be155[_0x27ff('0x8')](_0x27ff('0x2'))['to'](_0xcdc40d[_0x27ff('0x17')][_0x27ff('0x16')](_0x27ff('0xb'))),this[_0x27ff('0xf')](_0x1be155,_0x27ff('0x1'),()=>_0xcdc40d[_0x27ff('0x1')](_0x27ff('0xb'))),_0x1be155;}),_0xcdc40d['ui'][_0x27ff('0x1a')][_0x27ff('0x10')](_0x27ff('0x15'),_0x2437f6=>{const _0x108c2c=new _0x36e3a5(_0x2437f6),_0x15c751=_0xcdc40d[_0x27ff('0x17')][_0x27ff('0x16')](_0x27ff('0xd')),_0x118bca=_0xcdc40d['commands'][_0x27ff('0x16')](_0x27ff('0xa'));return _0x108c2c[_0x27ff('0x8')](_0x27ff('0x5'))['to'](_0x15c751,_0x27ff('0x2')),_0x108c2c[_0x27ff('0x8')](_0x27ff('0x1d'))['to'](_0x118bca,_0x27ff('0x2')),_0x108c2c[_0x27ff('0x8')](_0x27ff('0x6'),_0x27ff('0x9'),'numberOfChanges',_0x27ff('0x13'))['to'](_0x1af142),this[_0x27ff('0xf')](_0x108c2c,'execute',(_0x26e685,_0x2cf39f)=>{_0xcdc40d['execute'](_0x27ff('0xe')===_0x2cf39f?_0x27ff('0xa'):_0x27ff('0xd'));}),_0x108c2c;}),_0x2eb972[_0x27ff('0xc')](),_0x1af142['on'](_0x27ff('0x19'),(_0xa5ad84,_0x350594,_0x1ea6f0)=>{_0x1ea6f0?_0x2eb972['hide']():_0x2eb972['show']();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x57f39c,_0x379cc0,_0x18f442){const t=_0x57f39c['t'];switch(_0x379cc0){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'},_0x18f442);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x18f442);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'});default:return _0x379cc0;}}
23
+ export function getTranslation(_0x8847ba,_0x587220,_0x904b8a){const t=_0x8847ba['t'];switch(_0x587220){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'},_0x904b8a);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x904b8a);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'});default:return _0x587220;}}