@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230913.0 → 0.0.0-nightly-20230914.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 +6 -6
  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 _0x52cf=['children','execute','panelView','isEnabled','isReadOnly','buttonView','revisionName','focus','addMany','Revision\x20history','Save\x20current\x20revision','add','render','set','editor','isReady','get','revisionHistory','init','Open\x20revision\x20history','pluginName','length','plugins','editing','RevisionHistoryUI','submit','reset','requires','config','componentFactory','bind','remove'];(function(_0x389839,_0x52cfa5){const _0x4c3837=function(_0x16cc0f){while(--_0x16cc0f){_0x389839['push'](_0x389839['shift']());}};_0x4c3837(++_0x52cfa5);}(_0x52cf,0x151));const _0x4c38=function(_0x389839,_0x52cfa5){_0x389839=_0x389839-0x0;let _0x4c3837=_0x52cf[_0x389839];return _0x4c3837;};import{Plugin as _0x5e30c9}from'ckeditor5/src/core';import{ListView as _0x586e21,ListItemView as _0x4dd01b,ButtonView as _0x17e841,createDropdown as _0x4f2f01}from'ckeditor5/src/ui';import _0x4495fc from'../../revisiontracker';import _0x276f73 from'./revisionhistorysaverevisionformview';import _0x219326 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x29f5e6}from'../../utils/common-translations';export default class u extends _0x5e30c9{static get[_0x4c38('0x3')](){return _0x4c38('0x7');}static get[_0x4c38('0xa')](){return[_0x4495fc];}[_0x4c38('0x1')](){const _0x1f8c41=this[_0x4c38('0x1d')],_0x50f03f=_0x1f8c41[_0x4c38('0x5')][_0x4c38('0x1f')]('RevisionTracker');_0x1f8c41['ui'][_0x4c38('0xc')]['add']('revisionHistory',_0x3aef25=>{const _0x568366=_0x4f2f01(_0x3aef25),_0x4fedec=_0x568366[_0x4c38('0x11')][_0x4c38('0xf')],_0x55174f=new _0x586e21(_0x3aef25),_0x5a62c0=new _0x4dd01b(_0x3aef25),_0x2227c0=new _0x17e841(_0x3aef25),_0x5aeaf7=new _0x4dd01b(_0x3aef25),_0x178f19=new _0x17e841(_0x3aef25),_0x2c461b=new _0x276f73(_0x3aef25);function _0x3aa0e1(){_0x4fedec[_0x4c38('0x4')]&&_0x4fedec[_0x4c38('0xe')](0x0),_0x4fedec[_0x4c38('0x1a')](_0x55174f);}function _0x4c375f(){_0x568366['isOpen']=!0x1,_0x1f8c41[_0x4c38('0x6')]['view'][_0x4c38('0x16')]();}return _0x568366[_0x4c38('0xd')](_0x4c38('0x12'))['to'](_0x50f03f,_0x4c38('0x1e'),_0x50f03f,'isEnabled',_0x1f8c41,'isReadOnly',(_0x12aa6e,_0xc489d1,_0x355584)=>_0x12aa6e&&_0xc489d1&&!_0x355584),_0x568366[_0x4c38('0x14')][_0x4c38('0x1c')]({'icon':_0x219326,'label':_0x29f5e6(_0x3aef25,_0x4c38('0x18')),'tooltip':!0x0}),_0x2227c0[_0x4c38('0x1c')]({'label':_0x29f5e6(_0x3aef25,_0x4c38('0x19')),'withText':!0x0}),_0x2227c0[_0x4c38('0xd')](_0x4c38('0x12'))['to'](_0x50f03f,_0x4c38('0x1e'),_0x50f03f,'isEnabled',_0x1f8c41,_0x4c38('0x13'),(_0x5a2004,_0x227447,_0x2434ab)=>_0x5a2004&&_0x227447&&!_0x2434ab),_0x2227c0['on'](_0x4c38('0x10'),()=>function(){_0x4fedec[_0x4c38('0x4')]&&_0x4fedec['remove'](0x0),(_0x2c461b[_0x4c38('0x9')](),_0x4fedec[_0x4c38('0x1a')](_0x2c461b),_0x2c461b[_0x4c38('0x16')]());}()),_0x178f19['set']({'label':_0x29f5e6(_0x3aef25,_0x4c38('0x2')),'withText':!0x0}),_0x178f19[_0x4c38('0xd')](_0x4c38('0x12'))['to'](_0x50f03f,_0x4c38('0x1e'),_0x1f8c41,_0x4c38('0x13'),(_0x42e824,_0x40b75b)=>_0x42e824&&!_0x40b75b),_0x178f19['on'](_0x4c38('0x10'),()=>{_0x1f8c41[_0x4c38('0xb')][_0x4c38('0x1f')](_0x4c38('0x0'))['showRevisionViewerCallback'](),_0x4c375f();}),_0x5a62c0[_0x4c38('0xf')][_0x4c38('0x1a')](_0x2227c0),_0x5aeaf7[_0x4c38('0xf')][_0x4c38('0x1a')](_0x178f19),_0x55174f['items'][_0x4c38('0x17')]([_0x5a62c0,_0x5aeaf7]),_0x568366['on']('change:isOpen',()=>_0x3aa0e1()),_0x2c461b['saveButtonView']['bind']('isEnabled')['to'](_0x50f03f,'isReady',_0x50f03f,_0x4c38('0x12'),_0x1f8c41,'isReadOnly',(_0xf80a5e,_0x2a6873,_0x13da66)=>_0xf80a5e&&_0x2a6873&&!_0x13da66),_0x2c461b['on'](_0x4c38('0x8'),()=>(_0x1f8c41[_0x4c38('0x5')][_0x4c38('0x1f')](_0x4495fc)['saveRevision']({'name':_0x2c461b[_0x4c38('0x15')]}),void _0x4c375f())),_0x2c461b['on']('cancel',()=>_0x3aa0e1()),_0x2c461b[_0x4c38('0x1b')](),_0x3aa0e1(),_0x568366;});}}
23
+ const _0x1eec=['length','buttonView','get','addMany','isReady','componentFactory','submit','change:isOpen','bind','view','requires','editing','pluginName','isOpen','RevisionTracker','editor','items','RevisionHistoryUI','execute','plugins','children','Open\x20revision\x20history','saveRevision','focus','add','Save\x20current\x20revision','panelView','isReadOnly','render','remove','showRevisionViewerCallback','Revision\x20history','isEnabled','revisionHistory','set'];(function(_0x5a67ee,_0x1eec22){const _0x2eba37=function(_0x34016c){while(--_0x34016c){_0x5a67ee['push'](_0x5a67ee['shift']());}};_0x2eba37(++_0x1eec22);}(_0x1eec,0x1e0));const _0x2eba=function(_0x5a67ee,_0x1eec22){_0x5a67ee=_0x5a67ee-0x0;let _0x2eba37=_0x1eec[_0x5a67ee];return _0x2eba37;};import{Plugin as _0x1224c7}from'ckeditor5/src/core';import{ListView as _0x18cf4f,ListItemView as _0x26023b,ButtonView as _0x2f8964,createDropdown as _0x22fed5}from'ckeditor5/src/ui';import _0x420cdc from'../../revisiontracker';import _0x52c12a from'./revisionhistorysaverevisionformview';import _0x411b82 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x33308e}from'../../utils/common-translations';export default class u extends _0x1224c7{static get[_0x2eba('0x16')](){return _0x2eba('0x1b');}static get[_0x2eba('0x14')](){return[_0x420cdc];}['init'](){const _0x1be839=this[_0x2eba('0x19')],_0x2f9f85=_0x1be839[_0x2eba('0x1d')][_0x2eba('0xc')](_0x2eba('0x18'));_0x1be839['ui'][_0x2eba('0xf')]['add'](_0x2eba('0x8'),_0x2ab931=>{const _0x43edb3=_0x22fed5(_0x2ab931),_0x40b70f=_0x43edb3[_0x2eba('0x1')][_0x2eba('0x1e')],_0x356aed=new _0x18cf4f(_0x2ab931),_0x3739de=new _0x26023b(_0x2ab931),_0x14ed26=new _0x2f8964(_0x2ab931),_0x34278b=new _0x26023b(_0x2ab931),_0x1793bf=new _0x2f8964(_0x2ab931),_0x35020f=new _0x52c12a(_0x2ab931);function _0x38ef5b(){_0x40b70f[_0x2eba('0xa')]&&_0x40b70f[_0x2eba('0x4')](0x0),_0x40b70f[_0x2eba('0x22')](_0x356aed);}function _0x451dbb(){_0x43edb3[_0x2eba('0x17')]=!0x1,_0x1be839[_0x2eba('0x15')][_0x2eba('0x13')][_0x2eba('0x21')]();}return _0x43edb3['bind'](_0x2eba('0x7'))['to'](_0x2f9f85,_0x2eba('0xe'),_0x2f9f85,_0x2eba('0x7'),_0x1be839,_0x2eba('0x2'),(_0x536714,_0x331797,_0x3899a4)=>_0x536714&&_0x331797&&!_0x3899a4),_0x43edb3[_0x2eba('0xb')]['set']({'icon':_0x411b82,'label':_0x33308e(_0x2ab931,_0x2eba('0x6')),'tooltip':!0x0}),_0x14ed26[_0x2eba('0x9')]({'label':_0x33308e(_0x2ab931,_0x2eba('0x0')),'withText':!0x0}),_0x14ed26[_0x2eba('0x12')](_0x2eba('0x7'))['to'](_0x2f9f85,'isReady',_0x2f9f85,'isEnabled',_0x1be839,_0x2eba('0x2'),(_0xab853d,_0x53b3cd,_0x48d0cc)=>_0xab853d&&_0x53b3cd&&!_0x48d0cc),_0x14ed26['on'](_0x2eba('0x1c'),()=>function(){_0x40b70f[_0x2eba('0xa')]&&_0x40b70f[_0x2eba('0x4')](0x0),(_0x35020f['reset'](),_0x40b70f[_0x2eba('0x22')](_0x35020f),_0x35020f[_0x2eba('0x21')]());}()),_0x1793bf[_0x2eba('0x9')]({'label':_0x33308e(_0x2ab931,_0x2eba('0x1f')),'withText':!0x0}),_0x1793bf[_0x2eba('0x12')](_0x2eba('0x7'))['to'](_0x2f9f85,_0x2eba('0xe'),_0x1be839,_0x2eba('0x2'),(_0x156b30,_0x4e725a)=>_0x156b30&&!_0x4e725a),_0x1793bf['on'](_0x2eba('0x1c'),()=>{_0x1be839['config'][_0x2eba('0xc')](_0x2eba('0x8'))[_0x2eba('0x5')](),_0x451dbb();}),_0x3739de[_0x2eba('0x1e')]['add'](_0x14ed26),_0x34278b[_0x2eba('0x1e')][_0x2eba('0x22')](_0x1793bf),_0x356aed[_0x2eba('0x1a')][_0x2eba('0xd')]([_0x3739de,_0x34278b]),_0x43edb3['on'](_0x2eba('0x11'),()=>_0x38ef5b()),_0x35020f['saveButtonView']['bind'](_0x2eba('0x7'))['to'](_0x2f9f85,_0x2eba('0xe'),_0x2f9f85,_0x2eba('0x7'),_0x1be839,_0x2eba('0x2'),(_0x4a4891,_0x31ffca,_0x22b845)=>_0x4a4891&&_0x31ffca&&!_0x22b845),_0x35020f['on'](_0x2eba('0x10'),()=>(_0x1be839['plugins']['get'](_0x420cdc)[_0x2eba('0x20')]({'name':_0x35020f['revisionName']}),void _0x451dbb())),_0x35020f['on']('cancel',()=>_0x38ef5b()),_0x35020f[_0x2eba('0x3')](),_0x38ef5b(),_0x43edb3;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1e5c=['highlightRevisions','select','string','compare','map','_sidebarView','_createRevisionActions','defaultRevisionActions','_revisionsRepository','diff','getRevision','ready','config','selectRevision','focus','remove','revisionHistory','setName','revisionViews','restoreRevisionCallback','getEarlierVisibleRevision','revisionHistory.viewerSidebarContainer','init','change:diff','name','availableRevisionActions','bind','getRevisionsInDiff','plugins','_handleDiffChange','_handleRevisionSetName','_handleEditorDataReady','_revisions','destroy','RevisionsSidebar','length','isEnabled','locale','element','listenTo','revisionHistory.revisionActions','Restore\x20this\x20revision','getIndex','get','getLaterVisibleRevision','data','_revisionViewer','isSelected','action','editor','revisionSetName','repository','Compare\x20against\x20selected','add','requires','_handleRevisionSelected','assign','isReady','isVisible','Name\x20this\x20revision'];(function(_0x14a584,_0x1e5cc3){const _0x270589=function(_0x290265){while(--_0x290265){_0x14a584['push'](_0x14a584['shift']());}};_0x270589(++_0x1e5cc3);}(_0x1e5c,0xba));const _0x2705=function(_0x14a584,_0x1e5cc3){_0x14a584=_0x14a584-0x0;let _0x270589=_0x1e5c[_0x14a584];return _0x270589;};import{Plugin as _0x403275}from'ckeditor5/src/core';import _0x14a951 from'./revisionssidebarview';import _0x13c934 from'../../revisionviewer';export default class w extends _0x403275{static get['pluginName'](){return _0x2705('0x1c');}static get[_0x2705('0x30')](){return[_0x13c934];}constructor(_0x1f7021){super(_0x1f7021),this[_0x2705('0x28')]=_0x1f7021[_0x2705('0x16')][_0x2705('0x25')](_0x13c934),this['_revisionsRepository']=this[_0x2705('0x28')][_0x2705('0x2d')],this[_0x2705('0x3b')]=null;}[_0x2705('0x10')](){const _0x48116f=this['_revisionsRepository'][_0x2705('0x1a')],_0x3a9f02=this[_0x2705('0x0')](),_0x2dbe3e=this['editor']['config'][_0x2705('0x25')](_0x2705('0xf'));this[_0x2705('0x3b')]=new _0x14a951(this['editor'][_0x2705('0x1f')],_0x48116f,_0x3a9f02),this[_0x2705('0x3b')]['on']('revisionSelected',this[_0x2705('0x31')]['bind'](this)),this[_0x2705('0x3b')]['on'](_0x2705('0x2c'),this[_0x2705('0x18')][_0x2705('0x14')](this)),this[_0x2705('0x3b')]['bind'](_0x2705('0x1e'))['to'](this['_revisionViewer']),this[_0x2705('0x3b')]['timePeriodViews']['on'](_0x2705('0x2f'),(_0x1b6b40,_0x33fca7)=>{_0x33fca7[_0x2705('0xc')]['on']('add',(_0x42d4f5,_0x10758a)=>{_0x10758a[_0x2705('0x14')](_0x2705('0x1e'),_0x2705('0x33'))['to'](this[_0x2705('0x28')]);});}),this[_0x2705('0x3b')]['render'](),this[_0x2705('0x21')](this[_0x2705('0x2b')][_0x2705('0x27')],_0x2705('0x5'),this[_0x2705('0x19')][_0x2705('0x14')](this)),this['listenTo'](this[_0x2705('0x28')],_0x2705('0x11'),this[_0x2705('0x17')][_0x2705('0x14')](this)),_0x2dbe3e['appendChild'](this[_0x2705('0x3b')][_0x2705('0x20')]);}[_0x2705('0x1b')](){this[_0x2705('0x3b')][_0x2705('0x20')][_0x2705('0x9')](),this['_sidebarView'][_0x2705('0x1b')]();}[_0x2705('0x19')](){const _0x2d89eb=this[_0x2705('0x2')][_0x2705('0x4')](0x0);if(_0x2d89eb){const _0x476d07=this['_revisionsRepository'][_0x2705('0xe')](_0x2d89eb['id']);this[_0x2705('0x28')][_0x2705('0x39')](_0x2d89eb,_0x476d07);}}[_0x2705('0x31')](_0x146318,_0x5b9f59){const _0x12f07d=this[_0x2705('0x2')][_0x2705('0x4')](_0x5b9f59['id']),_0x5f03ff=this[_0x2705('0x2')]['getEarlierVisibleRevision'](_0x12f07d['id']);this['_revisionViewer'][_0x2705('0x39')](_0x12f07d,_0x5f03ff);}['_handleRevisionSetName'](_0x58eeac,_0x18e509){this[_0x2705('0x2')][_0x2705('0x4')](_0x18e509['id'])[_0x2705('0xb')](_0x18e509[_0x2705('0x12')]);}[_0x2705('0x17')](_0x564216,_0x1d78f1,_0xc7914a){const _0x377418=this[_0x2705('0x2')][_0x2705('0x15')](_0xc7914a);_0x377418[_0x2705('0x1d')]>0x2?(this[_0x2705('0x3b')][_0x2705('0x36')](_0x377418),this[_0x2705('0x3b')][_0x2705('0x7')](null)):(this[_0x2705('0x3b')][_0x2705('0x36')]([]),this[_0x2705('0x3b')][_0x2705('0x7')](_0x377418[0x0]));}['_createRevisionActions'](){const _0x338dcd=this[_0x2705('0x2b')],_0x2d7e4e=w[_0x2705('0x13')],_0x466ece=_0x338dcd[_0x2705('0x6')][_0x2705('0x25')](_0x2705('0x22'))||w[_0x2705('0x1')];if(_0x466ece['length'])return _0x466ece[_0x2705('0x3a')](_0x40ce61=>{const _0x5d81df=_0x2705('0x38')==typeof _0x40ce61?Object[_0x2705('0x32')]({},_0x2d7e4e[_0x40ce61]):_0x40ce61;return _0x5d81df['action']=_0x5d81df[_0x2705('0x2a')]['bind'](this,_0x338dcd),_0x5d81df['isVisible']&&(_0x5d81df['isVisible']=_0x5d81df[_0x2705('0x34')][_0x2705('0x14')](this,_0x338dcd)),_0x5d81df;});}}w[_0x2705('0x13')]={'compareAgainstSelected':{'name':_0x2705('0x2e'),'action':({plugins:_0x3ab5fa},_0x9f9d7b)=>{const _0x56f994=_0x3ab5fa[_0x2705('0x25')](_0x13c934),_0x59b7e1=_0x56f994['repository'];let _0x3ba2ae=_0x56f994['diff']['newRevisionId'],_0x229f2d=_0x9f9d7b['id'];_0x59b7e1[_0x2705('0x24')](_0x3ba2ae)>_0x59b7e1[_0x2705('0x24')](_0x229f2d)&&([_0x3ba2ae,_0x229f2d]=[_0x229f2d,_0x3ba2ae]),_0x56f994['compare'](_0x3ba2ae,_0x229f2d);},'isVisible':({plugins:_0x163dc2},_0x18a804)=>{const _0x3851fe=_0x163dc2[_0x2705('0x25')](_0x13c934);return!(_0x3851fe[_0x2705('0x2d')][_0x2705('0x15')](_0x3851fe[_0x2705('0x3')])['length']>0x2)&&!_0x18a804[_0x2705('0x29')];}},'restoreRevision':{'name':_0x2705('0x23'),'action':(_0x551884,{id:_0x2ac8bc})=>{_0x551884[_0x2705('0x6')][_0x2705('0x25')](_0x2705('0xa'))[_0x2705('0xd')](_0x2ac8bc);},'isVisible':({plugins:_0x29b35b},_0x2426e4)=>!!_0x29b35b[_0x2705('0x25')](_0x13c934)[_0x2705('0x2d')][_0x2705('0x26')](_0x2426e4['id'])},'nameRevision':{'name':_0x2705('0x35'),'action':({plugins:_0x5e25c4},{id:_0x34a2b2,revisionNameView:_0x324599})=>{const _0x303523=_0x5e25c4[_0x2705('0x25')](_0x13c934),_0x483674=_0x303523[_0x2705('0x2d')][_0x2705('0xe')](_0x34a2b2);_0x303523['compare'](_0x34a2b2,_0x483674),_0x324599[_0x2705('0x8')](),_0x324599['fieldView'][_0x2705('0x37')]();}}},w[_0x2705('0x1')]=['compareAgainstSelected','restoreRevision','nameRevision'];
23
+ const _0x2d0b=['get','action','revisionSelected','getRevisionsInDiff','restoreRevisionCallback','ready','string','getEarlierVisibleRevision','length','bind','timePeriodViews','newRevisionId','Restore\x20this\x20revision','config','revisionHistory.revisionActions','availableRevisionActions','getRevision','highlightRevisions','selectRevision','isEnabled','editor','name','_handleRevisionSetName','nameRevision','_revisions','revisionSetName','_revisionViewer','restoreRevision','select','destroy','listenTo','_handleDiffChange','RevisionsSidebar','revisionHistory','data','repository','_sidebarView','compare','init','revisionViews','isReady','change:diff','assign','Name\x20this\x20revision','revisionHistory.viewerSidebarContainer','add','_handleEditorDataReady','defaultRevisionActions','map','getIndex','isVisible','_createRevisionActions','isSelected','plugins','appendChild','diff','Compare\x20against\x20selected','focus','element','_handleRevisionSelected','_revisionsRepository'];(function(_0x2d1afd,_0x2d0b5f){const _0x609445=function(_0xcc48fe){while(--_0xcc48fe){_0x2d1afd['push'](_0x2d1afd['shift']());}};_0x609445(++_0x2d0b5f);}(_0x2d0b,0x121));const _0x6094=function(_0x2d1afd,_0x2d0b5f){_0x2d1afd=_0x2d1afd-0x0;let _0x609445=_0x2d0b[_0x2d1afd];return _0x609445;};import{Plugin as _0x39bb77}from'ckeditor5/src/core';import _0x55644d from'./revisionssidebarview';import _0x24d10c from'../../revisionviewer';export default class w extends _0x39bb77{static get['pluginName'](){return _0x6094('0x30');}static get['requires'](){return[_0x24d10c];}constructor(_0x552793){super(_0x552793),this['_revisionViewer']=_0x552793[_0x6094('0x8')]['get'](_0x24d10c),this[_0x6094('0xf')]=this[_0x6094('0x2a')][_0x6094('0x33')],this['_sidebarView']=null;}[_0x6094('0x36')](){const _0x16f752=this[_0x6094('0xf')][_0x6094('0x28')],_0x20bb80=this[_0x6094('0x6')](),_0xe397d8=this[_0x6094('0x24')][_0x6094('0x1d')]['get'](_0x6094('0x3c'));this['_sidebarView']=new _0x55644d(this[_0x6094('0x24')]['locale'],_0x16f752,_0x20bb80),this[_0x6094('0x34')]['on'](_0x6094('0x12'),this[_0x6094('0xe')]['bind'](this)),this[_0x6094('0x34')]['on'](_0x6094('0x29'),this['_handleRevisionSetName'][_0x6094('0x19')](this)),this['_sidebarView'][_0x6094('0x19')](_0x6094('0x23'))['to'](this[_0x6094('0x2a')]),this[_0x6094('0x34')][_0x6094('0x1a')]['on'](_0x6094('0x0'),(_0x5b4a7f,_0x4dc04e)=>{_0x4dc04e[_0x6094('0x37')]['on']('add',(_0x5e3116,_0x36a3d9)=>{_0x36a3d9[_0x6094('0x19')](_0x6094('0x23'),_0x6094('0x38'))['to'](this['_revisionViewer']);});}),this[_0x6094('0x34')]['render'](),this[_0x6094('0x2e')](this['editor'][_0x6094('0x32')],_0x6094('0x15'),this['_handleEditorDataReady'][_0x6094('0x19')](this)),this['listenTo'](this[_0x6094('0x2a')],_0x6094('0x39'),this[_0x6094('0x2f')]['bind'](this)),_0xe397d8[_0x6094('0x9')](this[_0x6094('0x34')][_0x6094('0xd')]);}[_0x6094('0x2d')](){this['_sidebarView'][_0x6094('0xd')]['remove'](),this[_0x6094('0x34')][_0x6094('0x2d')]();}[_0x6094('0x1')](){const _0x2d018a=this['_revisionsRepository']['getRevision'](0x0);if(_0x2d018a){const _0x1d103f=this[_0x6094('0xf')][_0x6094('0x17')](_0x2d018a['id']);this['_revisionViewer']['compare'](_0x2d018a,_0x1d103f);}}[_0x6094('0xe')](_0x4c92d7,_0x51a653){const _0x23ce07=this[_0x6094('0xf')][_0x6094('0x20')](_0x51a653['id']),_0x2bcd49=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x23ce07['id']);this[_0x6094('0x2a')][_0x6094('0x35')](_0x23ce07,_0x2bcd49);}[_0x6094('0x26')](_0x3af246,_0x2ddb82){this[_0x6094('0xf')][_0x6094('0x20')](_0x2ddb82['id'])['setName'](_0x2ddb82[_0x6094('0x25')]);}[_0x6094('0x2f')](_0x2c3adb,_0x231ff6,_0xaa69a0){const _0x30efaa=this[_0x6094('0xf')][_0x6094('0x13')](_0xaa69a0);_0x30efaa[_0x6094('0x18')]>0x2?(this['_sidebarView'][_0x6094('0x21')](_0x30efaa),this[_0x6094('0x34')][_0x6094('0x22')](null)):(this[_0x6094('0x34')][_0x6094('0x21')]([]),this['_sidebarView'][_0x6094('0x22')](_0x30efaa[0x0]));}[_0x6094('0x6')](){const _0x30c1a0=this[_0x6094('0x24')],_0x33a154=w[_0x6094('0x1f')],_0x38c33b=_0x30c1a0[_0x6094('0x1d')][_0x6094('0x10')](_0x6094('0x1e'))||w[_0x6094('0x2')];if(_0x38c33b[_0x6094('0x18')])return _0x38c33b[_0x6094('0x3')](_0x477a82=>{const _0x3e0935=_0x6094('0x16')==typeof _0x477a82?Object[_0x6094('0x3a')]({},_0x33a154[_0x477a82]):_0x477a82;return _0x3e0935[_0x6094('0x11')]=_0x3e0935[_0x6094('0x11')][_0x6094('0x19')](this,_0x30c1a0),_0x3e0935[_0x6094('0x5')]&&(_0x3e0935[_0x6094('0x5')]=_0x3e0935[_0x6094('0x5')][_0x6094('0x19')](this,_0x30c1a0)),_0x3e0935;});}}w['availableRevisionActions']={'compareAgainstSelected':{'name':_0x6094('0xb'),'action':({plugins:_0x4b7d7a},_0x58f027)=>{const _0x1e4d5e=_0x4b7d7a[_0x6094('0x10')](_0x24d10c),_0xc705b7=_0x1e4d5e['repository'];let _0x17b9d0=_0x1e4d5e[_0x6094('0xa')][_0x6094('0x1b')],_0x5ce1cd=_0x58f027['id'];_0xc705b7[_0x6094('0x4')](_0x17b9d0)>_0xc705b7[_0x6094('0x4')](_0x5ce1cd)&&([_0x17b9d0,_0x5ce1cd]=[_0x5ce1cd,_0x17b9d0]),_0x1e4d5e[_0x6094('0x35')](_0x17b9d0,_0x5ce1cd);},'isVisible':({plugins:_0x40b3de},_0xa77994)=>{const _0x3ac8d8=_0x40b3de[_0x6094('0x10')](_0x24d10c);return!(_0x3ac8d8[_0x6094('0x33')][_0x6094('0x13')](_0x3ac8d8[_0x6094('0xa')])['length']>0x2)&&!_0xa77994[_0x6094('0x7')];}},'restoreRevision':{'name':_0x6094('0x1c'),'action':(_0xdfb959,{id:_0x59b7c9})=>{_0xdfb959[_0x6094('0x1d')][_0x6094('0x10')](_0x6094('0x31'))[_0x6094('0x14')](_0x59b7c9);},'isVisible':({plugins:_0x318d28},_0x8cffc8)=>!!_0x318d28[_0x6094('0x10')](_0x24d10c)['repository']['getLaterVisibleRevision'](_0x8cffc8['id'])},'nameRevision':{'name':_0x6094('0x3b'),'action':({plugins:_0x3728cf},{id:_0x43fa4f,revisionNameView:_0x106c6b})=>{const _0x2d22d4=_0x3728cf[_0x6094('0x10')](_0x24d10c),_0x241531=_0x2d22d4[_0x6094('0x33')][_0x6094('0x17')](_0x43fa4f);_0x2d22d4[_0x6094('0x35')](_0x43fa4f,_0x241531),_0x106c6b[_0x6094('0xc')](),_0x106c6b['fieldView'][_0x6094('0x2c')]();}}},w[_0x6094('0x2')]=['compareAgainstSelected',_0x6094('0x2b'),_0x6094('0x27')];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x42a8=['Revision\x20history','div','ck-revision-history-sidebar__header__label','ck-revision-history-sidebar__header','span','ck-reset_all'];(function(_0x474ca9,_0x42a82d){const _0x3b590f=function(_0x39235c){while(--_0x39235c){_0x474ca9['push'](_0x474ca9['shift']());}};_0x3b590f(++_0x42a82d);}(_0x42a8,0x18f));const _0x3b59=function(_0x474ca9,_0x42a82d){_0x474ca9=_0x474ca9-0x0;let _0x3b590f=_0x42a8[_0x474ca9];return _0x3b590f;};import{View as _0x1071a7,IconView as _0xae57cd}from'ckeditor5/src/ui';import{getTranslation as _0x5c0bd0}from'../../utils/common-translations';import _0x471e51 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x1071a7{constructor(_0x50204f){super(_0x50204f);const _0x459280=new _0xae57cd();_0x459280['content']=_0x471e51,this['setTemplate']({'tag':_0x3b59('0x4'),'attributes':{'class':['ck',_0x3b59('0x2'),_0x3b59('0x0')]},'children':[_0x459280,{'tag':_0x3b59('0x1'),'attributes':{'class':['ck',_0x3b59('0x5')]},'children':[_0x5c0bd0(_0x50204f,_0x3b59('0x3'))]}]});}}
23
+ const _0x4f53=['div','ck-revision-history-sidebar__header__label','Revision\x20history','span','ck-reset_all','setTemplate','ck-revision-history-sidebar__header'];(function(_0x1fa44b,_0x4f534b){const _0x5109b0=function(_0x3dbe0c){while(--_0x3dbe0c){_0x1fa44b['push'](_0x1fa44b['shift']());}};_0x5109b0(++_0x4f534b);}(_0x4f53,0xe9));const _0x5109=function(_0x1fa44b,_0x4f534b){_0x1fa44b=_0x1fa44b-0x0;let _0x5109b0=_0x4f53[_0x1fa44b];return _0x5109b0;};import{View as _0x1dd9ee,IconView as _0x25f5e2}from'ckeditor5/src/ui';import{getTranslation as _0x402468}from'../../utils/common-translations';import _0x44b175 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x1dd9ee{constructor(_0x2c55f9){super(_0x2c55f9);const _0x173b56=new _0x25f5e2();_0x173b56['content']=_0x44b175,this[_0x5109('0x3')]({'tag':_0x5109('0x5'),'attributes':{'class':['ck',_0x5109('0x2'),_0x5109('0x4')]},'children':[_0x173b56,{'tag':_0x5109('0x1'),'attributes':{'class':['ck',_0x5109('0x6')]},'children':[_0x402468(_0x2c55f9,_0x5109('0x0'))]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x21af=['add','setName','ck-revision-history-sidebar__time-period__revisions','createCollection','startDate','addRevision','_revisionActions','delegate','div','uiLanguage','select','locale','revisionViews','find','removeRevision','span','ck-revision-history-sidebar__time-period__label'];(function(_0x4db4b6,_0x21af62){const _0x406d36=function(_0x52109e){while(--_0x52109e){_0x4db4b6['push'](_0x4db4b6['shift']());}};_0x406d36(++_0x21af62);}(_0x21af,0x1aa));const _0x406d=function(_0x4db4b6,_0x21af62){_0x4db4b6=_0x4db4b6-0x0;let _0x406d36=_0x21af[_0x4db4b6];return _0x406d36;};import{View as _0x33f75c}from'ckeditor5/src/ui';import _0x5ddf60 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x40e34a}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x33f75c{constructor(_0x3d621a,_0x14618b,_0x25d8b5){super(_0x3d621a);const _0x239a3c=_0x40e34a(_0x14618b,this[_0x406d('0xa')][_0x406d('0x8')])['localizedPeriodName'];this[_0x406d('0x3')]=_0x14618b,this[_0x406d('0xb')]=this[_0x406d('0x2')](),this[_0x406d('0x5')]=_0x25d8b5,this[_0x406d('0xb')][_0x406d('0x6')](_0x406d('0x9'))['to'](this),this['revisionViews'][_0x406d('0x6')](_0x406d('0x0'))['to'](this),this['setTemplate']({'tag':_0x406d('0x7'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':_0x406d('0xe'),'attributes':{'class':['ck',_0x406d('0xf')]},'children':[{'text':_0x239a3c}]},{'tag':_0x406d('0x7'),'attributes':{'class':['ck',_0x406d('0x1')]},'children':this[_0x406d('0xb')]}]});}[_0x406d('0x4')](_0x2e50f1){const _0x1d224c=new _0x5ddf60(this['locale'],_0x2e50f1,this[_0x406d('0x5')]);this[_0x406d('0xb')][_0x406d('0x10')](_0x1d224c);}[_0x406d('0xd')](_0x4f42cd){const _0x1a5b2a=this[_0x406d('0xb')][_0x406d('0xc')](_0x51723b=>_0x51723b['id']===_0x4f42cd['id']);this[_0x406d('0xb')]['remove'](_0x1a5b2a);}}
23
+ const _0x3a63=['localizedPeriodName','find','div','createCollection','span','addRevision','_revisionActions','ck-revision-history-sidebar__time-period__revisions','delegate','revisionViews','uiLanguage','setTemplate','remove','locale','ck-revision-history-sidebar__time-period','removeRevision','ck-revision-history-sidebar__time-period__label'];(function(_0x54c383,_0x3a6336){const _0x2f4f98=function(_0x5c261e){while(--_0x5c261e){_0x54c383['push'](_0x54c383['shift']());}};_0x2f4f98(++_0x3a6336);}(_0x3a63,0x1c8));const _0x2f4f=function(_0x54c383,_0x3a6336){_0x54c383=_0x54c383-0x0;let _0x2f4f98=_0x3a63[_0x54c383];return _0x2f4f98;};import{View as _0x1dfec3}from'ckeditor5/src/ui';import _0x453d9d from'../revision/revisionview';import{getDateTimePeriodInfo as _0x4ce4e4}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x1dfec3{constructor(_0x2439fa,_0x44cedf,_0x1f719c){super(_0x2439fa);const _0x364b47=_0x4ce4e4(_0x44cedf,this[_0x2f4f('0x10')][_0x2f4f('0xd')])[_0x2f4f('0x3')];this['startDate']=_0x44cedf,this[_0x2f4f('0xc')]=this[_0x2f4f('0x6')](),this[_0x2f4f('0x9')]=_0x1f719c,this[_0x2f4f('0xc')][_0x2f4f('0xb')]('select')['to'](this),this['revisionViews'][_0x2f4f('0xb')]('setName')['to'](this),this[_0x2f4f('0xe')]({'tag':_0x2f4f('0x5'),'attributes':{'class':['ck',_0x2f4f('0x0')]},'children':[{'tag':_0x2f4f('0x7'),'attributes':{'class':['ck',_0x2f4f('0x2')]},'children':[{'text':_0x364b47}]},{'tag':_0x2f4f('0x5'),'attributes':{'class':['ck',_0x2f4f('0xa')]},'children':this['revisionViews']}]});}[_0x2f4f('0x8')](_0x1e9faf){const _0x2aaf62=new _0x453d9d(this['locale'],_0x1e9faf,this[_0x2f4f('0x9')]);this[_0x2f4f('0xc')]['add'](_0x2aaf62);}[_0x2f4f('0x1')](_0x43a695){const _0x2a7b03=this[_0x2f4f('0xc')][_0x2f4f('0x4')](_0x35ee38=>_0x35ee38['id']===_0x43a695['id']);this[_0x2f4f('0xc')][_0x2f4f('0xf')](_0x2a7b03);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb7ea=['some','deselect','select','createdAt','get','div','fire','highlight','add','selectRevision','ck-revision-history-sidebar__timeline','highlightRevisions','ck-disabled','addRevision','uiLanguage','setTemplate','_removeRevision','locale','startDate','_revisionActions','delegate','bindTemplate','timePeriodViews','getTime','find','revisionSelected','revisionViews','remove','isEnabled','map','setName','revisionSetName','render','_getTimePeriodViewByStartDate','_revisions','unhighlight','ck-revision-history-sidebar'];(function(_0x5e1389,_0xb7ea99){const _0x305999=function(_0x1f48a0){while(--_0x1f48a0){_0x5e1389['push'](_0x5e1389['shift']());}};_0x305999(++_0xb7ea99);}(_0xb7ea,0x1ef));const _0x3059=function(_0x5e1389,_0xb7ea99){_0x5e1389=_0x5e1389-0x0;let _0x305999=_0xb7ea[_0x5e1389];return _0x305999;};import{View as _0x31ddc2}from'ckeditor5/src/ui';import _0x1a0402 from'./revisionssidebartimeperiodview';import _0x2a8892 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x594b97}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x31ddc2{constructor(_0xdda711,_0x41ffb7,_0x3ed398){super(_0xdda711);const _0x158dcf=this[_0x3059('0x7')];this[_0x3059('0x8')]=this['createCollection'](),this[_0x3059('0x8')][_0x3059('0x6')](_0x3059('0x19'))['to'](this),this['timePeriodViews'][_0x3059('0x6')](_0x3059('0x10'))['to'](this),this['_revisions']=_0x41ffb7,this[_0x3059('0x5')]=_0x3ed398,this['on'](_0x3059('0x19'),(_0x264f05,_0x542033)=>{this[_0x3059('0x1d')](_0x3059('0xb'),_0x542033);}),this['on']('setName',(_0x12cc71,_0x4a475b)=>{this[_0x3059('0x1d')](_0x3059('0x11'),_0x4a475b);}),this['set']('isEnabled',!0x1),this[_0x3059('0x1')]({'tag':_0x3059('0x1c'),'attributes':{'class':['ck','ck-reset','ck-rounded-corners',_0x3059('0x16')]},'children':[new _0x2a8892(_0xdda711),{'tag':_0x3059('0x1c'),'attributes':{'class':['ck',_0x3059('0x21'),_0x158dcf['if'](_0x3059('0xe'),_0x3059('0x23'),_0x3581f5=>!_0x3581f5)]},'children':this[_0x3059('0x8')]}]});}[_0x3059('0x12')](){super[_0x3059('0x12')]();for(const _0x5b91ea of this[_0x3059('0x14')])this['_addRevision'](_0x5b91ea);this[_0x3059('0x14')]['on'](_0x3059('0x1f'),(_0x2f3668,_0x1d2b26)=>{this['_addRevision'](_0x1d2b26);}),this[_0x3059('0x14')]['on'](_0x3059('0xd'),(_0x4e50c,_0x10bc20)=>{this[_0x3059('0x2')](_0x10bc20);});}get[_0x3059('0xc')](){return this['timePeriodViews'][_0x3059('0xf')](_0x4b7d48=>_0x4b7d48[_0x3059('0xc')]['map'](_0x22334a=>_0x22334a))['flat']();}[_0x3059('0x20')](_0x382f0b){for(const _0x4348a7 of this[_0x3059('0xc')])_0x382f0b&&_0x382f0b['id']===_0x4348a7['id']?_0x4348a7[_0x3059('0x19')]():_0x4348a7[_0x3059('0x18')]();}[_0x3059('0x22')](_0x269c5f){for(const _0x5f5973 of this[_0x3059('0xc')])_0x269c5f[_0x3059('0x17')](({id:_0x47610c})=>_0x47610c===_0x5f5973['id'])?_0x5f5973[_0x3059('0x1e')]():_0x5f5973[_0x3059('0x15')]();}['_addRevision'](_0x233ece){const _0x512e5d=_0x594b97(_0x233ece[_0x3059('0x1a')],this[_0x3059('0x3')][_0x3059('0x0')])['startDate'];let _0x2ab4c5=this[_0x3059('0x8')][_0x3059('0x1b')](0x0);_0x2ab4c5&&_0x2ab4c5[_0x3059('0x4')][_0x3059('0x9')]()===_0x512e5d['getTime']()||(_0x2ab4c5=new _0x1a0402(this[_0x3059('0x3')],_0x512e5d,this[_0x3059('0x5')]),this['timePeriodViews'][_0x3059('0x1f')](_0x2ab4c5)),_0x2ab4c5[_0x3059('0x24')](_0x233ece);}['_removeRevision'](_0xca83d0){const _0x332c92=_0x594b97(_0xca83d0[_0x3059('0x1a')],this[_0x3059('0x3')][_0x3059('0x0')])['startDate'];this[_0x3059('0x13')](_0x332c92)['removeRevision'](_0xca83d0);}['_getTimePeriodViewByStartDate'](_0x1f574e){return this['timePeriodViews'][_0x3059('0xa')](_0x4fa320=>_0x4fa320[_0x3059('0x4')][_0x3059('0x9')]()===_0x1f574e[_0x3059('0x9')]());}}
23
+ const _0x219c=['get','createCollection','removeRevision','render','ck-reset','setName','find','getTime','ck-revision-history-sidebar__timeline','highlightRevisions','_revisions','createdAt','uiLanguage','select','revisionSetName','delegate','map','locale','ck-disabled','startDate','div','add','timePeriodViews','revisionViews','_addRevision','set','flat','ck-rounded-corners','_removeRevision','bindTemplate','isEnabled','_getTimePeriodViewByStartDate','highlight','selectRevision'];(function(_0x351113,_0x219ce7){const _0x562129=function(_0x5cb27d){while(--_0x5cb27d){_0x351113['push'](_0x351113['shift']());}};_0x562129(++_0x219ce7);}(_0x219c,0x143));const _0x5621=function(_0x351113,_0x219ce7){_0x351113=_0x351113-0x0;let _0x562129=_0x219c[_0x351113];return _0x562129;};import{View as _0x2d5c05}from'ckeditor5/src/ui';import _0xe58b99 from'./revisionssidebartimeperiodview';import _0x5715dc from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x2e7a1b}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x2d5c05{constructor(_0x39b9b2,_0x283fb6,_0x14c294){super(_0x39b9b2);const _0x5363f6=this[_0x5621('0xc')];this[_0x5621('0x5')]=this[_0x5621('0x12')](),this[_0x5621('0x5')][_0x5621('0x20')]('select')['to'](this),this[_0x5621('0x5')]['delegate'](_0x5621('0x16'))['to'](this),this['_revisions']=_0x283fb6,this['_revisionActions']=_0x14c294,this['on'](_0x5621('0x1e'),(_0x258517,_0x2f4a51)=>{this['fire']('revisionSelected',_0x2f4a51);}),this['on']('setName',(_0x421bc8,_0xa10edf)=>{this['fire'](_0x5621('0x1f'),_0xa10edf);}),this[_0x5621('0x8')](_0x5621('0xd'),!0x1),this['setTemplate']({'tag':_0x5621('0x3'),'attributes':{'class':['ck',_0x5621('0x15'),_0x5621('0xa'),'ck-revision-history-sidebar']},'children':[new _0x5715dc(_0x39b9b2),{'tag':'div','attributes':{'class':['ck',_0x5621('0x19'),_0x5363f6['if']('isEnabled',_0x5621('0x1'),_0x2a2724=>!_0x2a2724)]},'children':this[_0x5621('0x5')]}]});}[_0x5621('0x14')](){super['render']();for(const _0x132406 of this[_0x5621('0x1b')])this[_0x5621('0x7')](_0x132406);this[_0x5621('0x1b')]['on'](_0x5621('0x4'),(_0x24d164,_0x5998f2)=>{this[_0x5621('0x7')](_0x5998f2);}),this[_0x5621('0x1b')]['on']('remove',(_0x2a2887,_0x37600b)=>{this[_0x5621('0xb')](_0x37600b);});}get['revisionViews'](){return this[_0x5621('0x5')][_0x5621('0x21')](_0x4683f6=>_0x4683f6[_0x5621('0x6')][_0x5621('0x21')](_0x147d64=>_0x147d64))[_0x5621('0x9')]();}[_0x5621('0x10')](_0x34a4fc){for(const _0x53e363 of this[_0x5621('0x6')])_0x34a4fc&&_0x34a4fc['id']===_0x53e363['id']?_0x53e363[_0x5621('0x1e')]():_0x53e363['deselect']();}[_0x5621('0x1a')](_0x3c0002){for(const _0x4de210 of this[_0x5621('0x6')])_0x3c0002['some'](({id:_0x382a79})=>_0x382a79===_0x4de210['id'])?_0x4de210[_0x5621('0xf')]():_0x4de210['unhighlight']();}[_0x5621('0x7')](_0x44071f){const _0x3044d5=_0x2e7a1b(_0x44071f[_0x5621('0x1c')],this[_0x5621('0x0')][_0x5621('0x1d')])[_0x5621('0x2')];let _0x5bbfff=this[_0x5621('0x5')][_0x5621('0x11')](0x0);_0x5bbfff&&_0x5bbfff['startDate'][_0x5621('0x18')]()===_0x3044d5[_0x5621('0x18')]()||(_0x5bbfff=new _0xe58b99(this[_0x5621('0x0')],_0x3044d5,this['_revisionActions']),this[_0x5621('0x5')][_0x5621('0x4')](_0x5bbfff)),_0x5bbfff['addRevision'](_0x44071f);}[_0x5621('0xb')](_0x3ead2b){const _0x42f3d2=_0x2e7a1b(_0x3ead2b[_0x5621('0x1c')],this[_0x5621('0x0')][_0x5621('0x1d')])[_0x5621('0x2')];this[_0x5621('0xe')](_0x42f3d2)[_0x5621('0x13')](_0x3ead2b);}[_0x5621('0xe')](_0x44f09a){return this[_0x5621('0x5')][_0x5621('0x17')](_0x4e9143=>_0x4e9143[_0x5621('0x2')][_0x5621('0x18')]()===_0x44f09a[_0x5621('0x18')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1c7d=['week','setLocale','month','toJSDate','year','fromJSDate','day','local','hasSame','monthLong','startOf','toRelativeCalendar','minus'];(function(_0x1d7edc,_0x1c7d23){const _0x4c59b7=function(_0xe5d56e){while(--_0xe5d56e){_0x1d7edc['push'](_0x1d7edc['shift']());}};_0x4c59b7(++_0x1c7d23);}(_0x1c7d,0xdf));const _0x4c59=function(_0x1d7edc,_0x1c7d23){_0x1d7edc=_0x1d7edc-0x0;let _0x4c59b7=_0x1c7d[_0x1d7edc];return _0x4c59b7;};import{DateTime as _0x38f584}from'luxon';export function getDateTimePeriodInfo(_0x56be24,_0xc4b47d){const _0x9ecebf=_0x38f584[_0x4c59('0x3')](_0x56be24)[_0x4c59('0xc')](_0xc4b47d),_0x515613=_0x38f584[_0x4c59('0x5')](),_0x2ef1ad=_0x515613[_0x4c59('0xa')]({'days':0x1})[_0x4c59('0x8')](_0x4c59('0x4'));let _0xafb669,_0x42ede0;return _0x9ecebf[_0x4c59('0x6')](_0x515613,_0x4c59('0x4'))?(_0xafb669=_0x9ecebf[_0x4c59('0x8')](_0x4c59('0x4'))['toJSDate'](),_0x42ede0=_0x9ecebf[_0x4c59('0x9')]()):_0x9ecebf[_0x4c59('0x6')](_0x2ef1ad,_0x4c59('0x4'))?(_0xafb669=_0x2ef1ad['toJSDate'](),_0x42ede0=_0x9ecebf['toRelativeCalendar']()):_0x9ecebf['hasSame'](_0x515613,_0x4c59('0xb'))?(_0xafb669=_0x9ecebf['startOf']('week')[_0x4c59('0x1')](),_0x42ede0=_0x9ecebf['weekdayLong']||''):_0x9ecebf[_0x4c59('0x6')](_0x515613,_0x4c59('0x2'))?(_0xafb669=_0x9ecebf[_0x4c59('0x8')](_0x4c59('0x0'))[_0x4c59('0x1')](),_0x42ede0=_0x9ecebf[_0x4c59('0x7')]||''):(_0xafb669=_0x9ecebf[_0x4c59('0x8')]('year')[_0x4c59('0x1')](),_0x42ede0=String(_0x9ecebf[_0x4c59('0x2')])),{'startDate':_0xafb669,'localizedPeriodName':_0x42ede0};}
23
+ const _0xcda7=['startOf','month','year','toJSDate','hasSame','minus','monthLong','week','fromJSDate','setLocale','local','weekdayLong','day','toRelativeCalendar'];(function(_0x42e49f,_0xcda72c){const _0x55cc7b=function(_0x10d108){while(--_0x10d108){_0x42e49f['push'](_0x42e49f['shift']());}};_0x55cc7b(++_0xcda72c);}(_0xcda7,0x17d));const _0x55cc=function(_0x42e49f,_0xcda72c){_0x42e49f=_0x42e49f-0x0;let _0x55cc7b=_0xcda7[_0x42e49f];return _0x55cc7b;};import{DateTime as _0x50dfe1}from'luxon';export function getDateTimePeriodInfo(_0x269925,_0x320333){const _0x5a97a6=_0x50dfe1[_0x55cc('0x5')](_0x269925)[_0x55cc('0x6')](_0x320333),_0x10e8cb=_0x50dfe1[_0x55cc('0x7')](),_0x19bc61=_0x10e8cb[_0x55cc('0x2')]({'days':0x1})[_0x55cc('0xb')](_0x55cc('0x9'));let _0x2192dc,_0x1534dc;return _0x5a97a6[_0x55cc('0x1')](_0x10e8cb,'day')?(_0x2192dc=_0x5a97a6[_0x55cc('0xb')](_0x55cc('0x9'))[_0x55cc('0x0')](),_0x1534dc=_0x5a97a6[_0x55cc('0xa')]()):_0x5a97a6['hasSame'](_0x19bc61,_0x55cc('0x9'))?(_0x2192dc=_0x19bc61[_0x55cc('0x0')](),_0x1534dc=_0x5a97a6[_0x55cc('0xa')]()):_0x5a97a6[_0x55cc('0x1')](_0x10e8cb,_0x55cc('0x4'))?(_0x2192dc=_0x5a97a6[_0x55cc('0xb')]('week')[_0x55cc('0x0')](),_0x1534dc=_0x5a97a6[_0x55cc('0x8')]||''):_0x5a97a6[_0x55cc('0x1')](_0x10e8cb,_0x55cc('0xd'))?(_0x2192dc=_0x5a97a6[_0x55cc('0xb')](_0x55cc('0xc'))[_0x55cc('0x0')](),_0x1534dc=_0x5a97a6[_0x55cc('0x3')]||''):(_0x2192dc=_0x5a97a6[_0x55cc('0xb')](_0x55cc('0xd'))[_0x55cc('0x0')](),_0x1534dc=String(_0x5a97a6['year'])),{'startDate':_0x2192dc,'localizedPeriodName':_0x1534dc};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a77=['Suggested\x20by','setTemplate','type','name','span','div','author','Removed\x20by','add','ck-revision-change__','isSuggestion','ck-revision-change','set','focus','ck-revision-change__label','ck-annotation','changeId'];(function(_0x42c4fc,_0x4a7708){const _0xc66ec4=function(_0x55a102){while(--_0x55a102){_0x42c4fc['push'](_0x42c4fc['shift']());}};_0xc66ec4(++_0x4a7708);}(_0x4a77,0x17c));const _0xc66e=function(_0x42c4fc,_0x4a7708){_0x42c4fc=_0x42c4fc-0x0;let _0xc66ec4=_0x4a77[_0x42c4fc];return _0xc66ec4;};import{View as _0x567335}from'ckeditor5/src/ui';import{getTranslation as _0x3acd25}from'../../utils/common-translations';export default class Z extends _0x567335{constructor(_0x48e5c0,_0x54509b){super(_0x48e5c0),this['_model']=_0x54509b,this[_0xc66e('0xa')]=_0x54509b['id'];const _0x5a2abe=this['bindTemplate'],_0x199396=_0x3acd25(_0x48e5c0,_0x54509b['data'][_0xc66e('0x4')]?_0xc66e('0xb'):_0xc66e('0x2')==_0x54509b[_0xc66e('0xd')]?'Added\x20by':_0xc66e('0x1'));this[_0xc66e('0x6')](_0xc66e('0xd'),_0x54509b[_0xc66e('0xd')]),this[_0xc66e('0xc')]({'tag':_0xc66e('0x10'),'attributes':{'class':[_0xc66e('0x9'),_0xc66e('0x5'),_0x5a2abe['to'](_0xc66e('0xd'),_0x425675=>_0xc66e('0x3')+_0x425675)],'tabindex':-0x1},'children':[{'tag':_0xc66e('0xf'),'children':[{'tag':_0xc66e('0xf'),'attributes':{'class':[_0xc66e('0x8')]},'children':[{'text':_0x199396}]},{'text':'\x20'+_0x54509b[_0xc66e('0x0')][_0xc66e('0xe')]}]}]});}[_0xc66e('0x7')](){this['element'][_0xc66e('0x7')]();}}
23
+ const _0x704e=['ck-annotation','data','_model','span','ck-revision-change','ck-revision-change__','isSuggestion','author','focus','bindTemplate','div','ck-revision-change__label','set','name','type'];(function(_0x49b8fa,_0x704e31){const _0x2bad1b=function(_0x1c5aa1){while(--_0x1c5aa1){_0x49b8fa['push'](_0x49b8fa['shift']());}};_0x2bad1b(++_0x704e31);}(_0x704e,0x199));const _0x2bad=function(_0x49b8fa,_0x704e31){_0x49b8fa=_0x49b8fa-0x0;let _0x2bad1b=_0x704e[_0x49b8fa];return _0x2bad1b;};import{View as _0x21c726}from'ckeditor5/src/ui';import{getTranslation as _0x3c7b46}from'../../utils/common-translations';export default class Z extends _0x21c726{constructor(_0x177cda,_0x3b9b7d){super(_0x177cda),this[_0x2bad('0xd')]=_0x3b9b7d,this['changeId']=_0x3b9b7d['id'];const _0x35fccb=this[_0x2bad('0x5')],_0x3ca33b=_0x3c7b46(_0x177cda,_0x3b9b7d[_0x2bad('0xc')][_0x2bad('0x2')]?'Suggested\x20by':'add'==_0x3b9b7d[_0x2bad('0xa')]?'Added\x20by':'Removed\x20by');this[_0x2bad('0x8')](_0x2bad('0xa'),_0x3b9b7d[_0x2bad('0xa')]),this['setTemplate']({'tag':_0x2bad('0x6'),'attributes':{'class':[_0x2bad('0xb'),_0x2bad('0x0'),_0x35fccb['to'](_0x2bad('0xa'),_0x7512ff=>_0x2bad('0x1')+_0x7512ff)],'tabindex':-0x1},'children':[{'tag':_0x2bad('0xe'),'children':[{'tag':_0x2bad('0xe'),'attributes':{'class':[_0x2bad('0x7')]},'children':[{'text':_0x3ca33b}]},{'text':'\x20'+_0x3b9b7d[_0x2bad('0x3')][_0x2bad('0x9')]}]}]});}[_0x2bad('0x4')](){this['element'][_0x2bad('0x4')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5cc4=['bind','_isStatusLabelVisible','isBackwardNavigationEnabled','set','EDIT_X_OF_Y_REVISIONS','currentChangeNumber','ck-revision-history-ui__changes-navigation__navigation','div','isReady','execute','Show\x20next\x20change','isEnabled','setTemplate','_statusText','backward','Total','ck-hidden','No\x20changes','forward','ck-revision-history-ui','Loading...','isNavigationMode','isForwardNavigationEnabled','numberOfChanges','fire'];(function(_0x8bb340,_0x5cc45e){const _0x34e26a=function(_0x102778){while(--_0x102778){_0x8bb340['push'](_0x8bb340['shift']());}};_0x34e26a(++_0x5cc45e);}(_0x5cc4,0x88));const _0x34e2=function(_0x8bb340,_0x5cc45e){_0x8bb340=_0x8bb340-0x0;let _0x34e26a=_0x5cc4[_0x8bb340];return _0x34e26a;};import{View as _0x3e4d31,ButtonView as _0x12d650,ToolbarSeparatorView as _0x44a107}from'ckeditor5/src/ui';import{getTranslation as _0x1f9eaf}from'../../utils/common-translations';import _0x120596 from'../../../theme/icons/arrow-up.svg';import _0x408d16 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x3e4d31{constructor(_0x25f3fc){super(_0x25f3fc);const _0x36c5b6=this['bindTemplate'],_0x3357e0=new _0x12d650(_0x25f3fc),_0x49ded9=new _0x12d650(_0x25f3fc);this[_0x34e2('0x11')](_0x34e2('0xa'),!0x1),this[_0x34e2('0x11')](_0x34e2('0x16'),!0x1),this[_0x34e2('0x11')](_0x34e2('0x13'),0x0),this[_0x34e2('0x11')]('numberOfChanges',0x0),this['set'](_0x34e2('0xb'),!0x1),this[_0x34e2('0x11')](_0x34e2('0x10'),!0x1),this[_0x34e2('0xe')](_0x34e2('0xf'))['to'](this,_0x34e2('0x16'),this,_0x34e2('0xc'),(_0x34fc7e,_0x4987d0)=>_0x34fc7e&&_0x4987d0>0x0),this[_0x34e2('0xe')](_0x34e2('0x2'))['to'](this,_0x34e2('0x16'),this,'currentChangeNumber',this,_0x34e2('0xc'),this,_0x34e2('0xa'),(_0x3f3bb2,_0x365862,_0x3bd44c,_0x1aa166)=>{if(!_0x3f3bb2)return _0x1f9eaf(_0x25f3fc,_0x34e2('0x9'));if(!_0x3bd44c)return _0x1f9eaf(_0x25f3fc,_0x34e2('0x6'));const _0x428b60=_0x1f9eaf(_0x25f3fc,'NUMBER_OF_CHANGES',_0x3bd44c);return _0x1aa166?_0x1f9eaf(_0x25f3fc,'X_OF_Y_CHANGES',[_0x365862+0x1,_0x3bd44c]):_0x428b60;}),_0x3357e0['set']({'label':_0x1f9eaf(_0x25f3fc,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x120596}),_0x49ded9[_0x34e2('0x11')]({'label':_0x1f9eaf(_0x25f3fc,_0x34e2('0x18')),'tooltip':!0x0,'icon':_0x408d16}),_0x3357e0['bind']('isEnabled')['to'](this,_0x34e2('0x10')),_0x49ded9[_0x34e2('0xe')](_0x34e2('0x0'))['to'](this,'isForwardNavigationEnabled'),_0x3357e0['on']('execute',()=>this['fire'](_0x34e2('0x17'),_0x34e2('0x3'))),_0x49ded9['on'](_0x34e2('0x17'),()=>this[_0x34e2('0xd')](_0x34e2('0x17'),_0x34e2('0x7'))),this[_0x34e2('0x1')]({'tag':_0x34e2('0x15'),'attributes':{'class':['ck',_0x34e2('0x8'),'ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x36c5b6['if'](_0x34e2('0xf'),_0x34e2('0x5'),_0x2e298b=>!_0x2e298b)]},'children':[{'text':_0x36c5b6['to'](_0x34e2('0xa'),_0x2a1bf9=>_0x2a1bf9?_0x1f9eaf(_0x25f3fc,_0x34e2('0x12'))+':\x20':_0x1f9eaf(_0x25f3fc,_0x34e2('0x4'))+':\x20')}]},{'text':_0x36c5b6['to'](_0x34e2('0x2'))}]},new _0x44a107(),{'tag':_0x34e2('0x15'),'attributes':{'class':[_0x34e2('0x14')]},'children':[_0x3357e0,_0x49ded9]}]});}}
23
+ const _0x6ed0=['isForwardNavigationEnabled','bindTemplate','div','_isStatusLabelVisible','backward','span','EDIT_X_OF_Y_REVISIONS','Show\x20previous\x20change','setTemplate','ck-revision-history-ui','set','isEnabled','execute','fire','bind','Total','isReady','ck-hidden','forward','isBackwardNavigationEnabled','ck-revision-history-ui__changes-navigation','currentChangeNumber','isNavigationMode','ck-revision-history-ui__changes-navigation__wrapper','Show\x20next\x20change','X_OF_Y_CHANGES'];(function(_0x5426eb,_0x6ed08a){const _0xff0339=function(_0xe817c3){while(--_0xe817c3){_0x5426eb['push'](_0x5426eb['shift']());}};_0xff0339(++_0x6ed08a);}(_0x6ed0,0x1c5));const _0xff03=function(_0x5426eb,_0x6ed08a){_0x5426eb=_0x5426eb-0x0;let _0xff0339=_0x6ed0[_0x5426eb];return _0xff0339;};import{View as _0x2b7c39,ButtonView as _0x166df1,ToolbarSeparatorView as _0x39774a}from'ckeditor5/src/ui';import{getTranslation as _0x34677f}from'../../utils/common-translations';import _0x5defaa from'../../../theme/icons/arrow-up.svg';import _0x160eb4 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x2b7c39{constructor(_0xca317a){super(_0xca317a);const _0x3bfb64=this[_0xff03('0x10')],_0x530534=new _0x166df1(_0xca317a),_0x134aee=new _0x166df1(_0xca317a);this[_0xff03('0x19')](_0xff03('0xb'),!0x1),this[_0xff03('0x19')](_0xff03('0x5'),!0x1),this['set'](_0xff03('0xa'),0x0),this[_0xff03('0x19')]('numberOfChanges',0x0),this['set']('isForwardNavigationEnabled',!0x1),this[_0xff03('0x19')](_0xff03('0x8'),!0x1),this[_0xff03('0x3')]('_isStatusLabelVisible')['to'](this,_0xff03('0x5'),this,'numberOfChanges',(_0x4d869a,_0x46ea36)=>_0x4d869a&&_0x46ea36>0x0),this[_0xff03('0x3')]('_statusText')['to'](this,_0xff03('0x5'),this,_0xff03('0xa'),this,'numberOfChanges',this,'isNavigationMode',(_0x2aaf8a,_0x3a4144,_0x15c4b4,_0x325151)=>{if(!_0x2aaf8a)return _0x34677f(_0xca317a,'Loading...');if(!_0x15c4b4)return _0x34677f(_0xca317a,'No\x20changes');const _0x2ee2c2=_0x34677f(_0xca317a,'NUMBER_OF_CHANGES',_0x15c4b4);return _0x325151?_0x34677f(_0xca317a,_0xff03('0xe'),[_0x3a4144+0x1,_0x15c4b4]):_0x2ee2c2;}),_0x530534[_0xff03('0x19')]({'label':_0x34677f(_0xca317a,_0xff03('0x16')),'tooltip':!0x0,'icon':_0x5defaa}),_0x134aee[_0xff03('0x19')]({'label':_0x34677f(_0xca317a,_0xff03('0xd')),'tooltip':!0x0,'icon':_0x160eb4}),_0x530534['bind'](_0xff03('0x0'))['to'](this,_0xff03('0x8')),_0x134aee[_0xff03('0x3')](_0xff03('0x0'))['to'](this,_0xff03('0xf')),_0x530534['on'](_0xff03('0x1'),()=>this[_0xff03('0x2')](_0xff03('0x1'),_0xff03('0x13'))),_0x134aee['on']('execute',()=>this[_0xff03('0x2')](_0xff03('0x1'),_0xff03('0x7'))),this[_0xff03('0x17')]({'tag':_0xff03('0x11'),'attributes':{'class':['ck',_0xff03('0x18'),_0xff03('0x9')]},'children':[{'tag':'span','attributes':{'class':[_0xff03('0xc')]},'children':[{'tag':_0xff03('0x14'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x3bfb64['if'](_0xff03('0x12'),_0xff03('0x6'),_0x5f40d7=>!_0x5f40d7)]},'children':[{'text':_0x3bfb64['to'](_0xff03('0xb'),_0x32800c=>_0x32800c?_0x34677f(_0xca317a,_0xff03('0x15'))+':\x20':_0x34677f(_0xca317a,_0xff03('0x4'))+':\x20')}]},{'text':_0x3bfb64['to']('_statusText')}]},new _0x39774a(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x530534,_0x134aee]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x30d9=['editing','removeClass','ck-editor__editable__loading-overlay','view','change','pluginName','document','roots','RevisionViewerLoadingOverlay','addClass'];(function(_0x226aa7,_0x30d976){const _0x22a80c=function(_0x4ef04a){while(--_0x4ef04a){_0x226aa7['push'](_0x226aa7['shift']());}};_0x22a80c(++_0x30d976);}(_0x30d9,0xf4));const _0x22a8=function(_0x226aa7,_0x30d976){_0x226aa7=_0x226aa7-0x0;let _0x22a80c=_0x30d9[_0x226aa7];return _0x22a80c;};import{Plugin as _0x1ada82}from'ckeditor5/src/core';const oe=_0x22a8('0x8');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x1ada82{static get[_0x22a8('0x1')](){return _0x22a8('0x4');}['show'](){const _0x4cc2fb=this['editor'][_0x22a8('0x6')][_0x22a8('0x9')];_0x4cc2fb['change'](_0x3cc85a=>{for(const _0x4687bb of _0x4cc2fb[_0x22a8('0x2')][_0x22a8('0x3')])_0x3cc85a[_0x22a8('0x5')](oe,_0x4687bb);});}['hide'](){const _0x2e7be4=this['editor'][_0x22a8('0x6')][_0x22a8('0x9')];_0x2e7be4[_0x22a8('0x0')](_0x47a20c=>{for(const _0x18aa6c of _0x2e7be4[_0x22a8('0x2')]['roots'])_0x47a20c[_0x22a8('0x7')](oe,_0x18aa6c);});}}
23
+ const _0x83d5=['editing','hide','removeClass','roots','document','change','editor','ck-editor__editable__loading-overlay','view'];(function(_0x395d89,_0x83d51){const _0x3a5a4f=function(_0x274b4a){while(--_0x274b4a){_0x395d89['push'](_0x395d89['shift']());}};_0x3a5a4f(++_0x83d51);}(_0x83d5,0x155));const _0x3a5a=function(_0x395d89,_0x83d51){_0x395d89=_0x395d89-0x0;let _0x3a5a4f=_0x83d5[_0x395d89];return _0x3a5a4f;};import{Plugin as _0x160c33}from'ckeditor5/src/core';const oe=_0x3a5a('0x8');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x160c33{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}['show'](){const _0x3e8877=this[_0x3a5a('0x7')][_0x3a5a('0x1')][_0x3a5a('0x0')];_0x3e8877[_0x3a5a('0x6')](_0x2fabc0=>{for(const _0x4b2488 of _0x3e8877[_0x3a5a('0x5')][_0x3a5a('0x4')])_0x2fabc0['addClass'](oe,_0x4b2488);});}[_0x3a5a('0x2')](){const _0x35218d=this[_0x3a5a('0x7')][_0x3a5a('0x1')][_0x3a5a('0x0')];_0x35218d[_0x3a5a('0x6')](_0x542789=>{for(const _0x12279f of _0x35218d[_0x3a5a('0x5')]['roots'])_0x542789[_0x3a5a('0x3')](oe,_0x12279f);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x73d5=['listenTo','restoreRevision','changesNavigation','revisionHistory','isNavigationMode','currentChangeNumber','hide','pluginName','isReady','isEnabled','execute','show','plugins','componentFactory','add','RevisionViewerUI','exitToEditing','closeRevisionViewerCallback','Back\x20to\x20editing','set','init','get','config','showPreviousChange','editor','isForwardNavigationEnabled','numberOfChanges','bind','isBackwardNavigationEnabled','commands','showNextChange','Restore\x20this\x20revision'];(function(_0x14b6fc,_0x73d57){const _0x18012f=function(_0x4f6398){while(--_0x4f6398){_0x14b6fc['push'](_0x14b6fc['shift']());}};_0x18012f(++_0x73d57);}(_0x73d5,0xbb));const _0x1801=function(_0x14b6fc,_0x73d57){_0x14b6fc=_0x14b6fc-0x0;let _0x18012f=_0x73d5[_0x14b6fc];return _0x18012f;};import{Plugin as _0x2a1e6e}from'ckeditor5/src/core';import{ButtonView as _0x294b22}from'ckeditor5/src/ui';import _0xaa5575 from'./changesnavigationview';import _0x4cb062 from'./../../revisionviewer';import _0x52712e from'./revisionviewerloadingoverlay';import{getTranslation as _0x53cbaf}from'../../utils/common-translations';import _0xdff5ab from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x2a1e6e{static get[_0x1801('0xc')](){return _0x1801('0x14');}static get['requires'](){return[_0x4cb062,_0x52712e];}[_0x1801('0x19')](){const _0x1544b2=this[_0x1801('0x1d')],_0x245091=_0x1544b2[_0x1801('0x11')][_0x1801('0x1a')](_0x4cb062),_0x3e7227=_0x1544b2[_0x1801('0x11')][_0x1801('0x1a')](_0x52712e);_0x1544b2['ui'][_0x1801('0x12')]['add'](_0x1801('0x15'),_0x1ddb60=>{const _0x5628a4=new _0x294b22(_0x1ddb60);return _0x5628a4[_0x1801('0x18')]({'label':_0x53cbaf(_0x1ddb60,_0x1801('0x17')),'icon':_0xdff5ab,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this[_0x1801('0x5')](_0x5628a4,_0x1801('0xf'),()=>{_0x1544b2[_0x1801('0x1b')][_0x1801('0x1a')](_0x1801('0x8'))[_0x1801('0x16')]();}),_0x5628a4;}),_0x1544b2['ui'][_0x1801('0x12')][_0x1801('0x13')](_0x1801('0x6'),_0x5860ea=>{const _0x3fb804=new _0x294b22(_0x5860ea);return _0x3fb804[_0x1801('0x18')]({'label':_0x53cbaf(_0x5860ea,_0x1801('0x4')),'withText':!0x0,'tooltip':!0x0}),_0x3fb804['bind'](_0x1801('0xe'))['to'](_0x1544b2[_0x1801('0x2')][_0x1801('0x1a')](_0x1801('0x6'))),this[_0x1801('0x5')](_0x3fb804,_0x1801('0xf'),()=>_0x1544b2[_0x1801('0xf')](_0x1801('0x6'))),_0x3fb804;}),_0x1544b2['ui'][_0x1801('0x12')][_0x1801('0x13')](_0x1801('0x7'),_0x5c0dbc=>{const _0x1f2e24=new _0xaa5575(_0x5c0dbc),_0x47837c=_0x1544b2[_0x1801('0x2')][_0x1801('0x1a')]('showPreviousChange'),_0x4d31a0=_0x1544b2['commands'][_0x1801('0x1a')](_0x1801('0x3'));return _0x1f2e24[_0x1801('0x0')](_0x1801('0x1'))['to'](_0x47837c,_0x1801('0xe')),_0x1f2e24[_0x1801('0x0')](_0x1801('0x1e'))['to'](_0x4d31a0,_0x1801('0xe')),_0x1f2e24[_0x1801('0x0')](_0x1801('0xd'),_0x1801('0xa'),_0x1801('0x1f'),_0x1801('0x9'))['to'](_0x245091),this['listenTo'](_0x1f2e24,'execute',(_0x296475,_0x3f2057)=>{_0x1544b2['execute']('forward'===_0x3f2057?'showNextChange':_0x1801('0x1c'));}),_0x1f2e24;}),_0x3e7227[_0x1801('0x10')](),_0x245091['on']('change:isReady',(_0x27b157,_0x3c6e64,_0x4448a1)=>{_0x4448a1?_0x3e7227[_0x1801('0xb')]():_0x3e7227[_0x1801('0x10')]();});}}
23
+ const _0x5370=['numberOfChanges','init','isBackwardNavigationEnabled','isNavigationMode','closeRevisionViewerCallback','pluginName','showPreviousChange','add','forward','RevisionViewerUI','showNextChange','Back\x20to\x20editing','exitToEditing','isEnabled','show','revisionHistory','get','change:isReady','config','requires','Restore\x20this\x20revision','plugins','componentFactory','commands','restoreRevision','isForwardNavigationEnabled','ck-revision-history-ui__back-to-editing','execute','editor','set','bind','hide'];(function(_0x215d75,_0x537049){const _0x263521=function(_0x4dabf3){while(--_0x4dabf3){_0x215d75['push'](_0x215d75['shift']());}};_0x263521(++_0x537049);}(_0x5370,0xf0));const _0x2635=function(_0x215d75,_0x537049){_0x215d75=_0x215d75-0x0;let _0x263521=_0x5370[_0x215d75];return _0x263521;};import{Plugin as _0x4b0f6b}from'ckeditor5/src/core';import{ButtonView as _0x391b2b}from'ckeditor5/src/ui';import _0x444ff6 from'./changesnavigationview';import _0x1afdbb from'./../../revisionviewer';import _0x1669de from'./revisionviewerloadingoverlay';import{getTranslation as _0x1b1912}from'../../utils/common-translations';import _0x1309e0 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x4b0f6b{static get[_0x2635('0x15')](){return _0x2635('0x19');}static get[_0x2635('0x3')](){return[_0x1afdbb,_0x1669de];}[_0x2635('0x11')](){const _0x7d55b=this[_0x2635('0xc')],_0x45ae57=_0x7d55b[_0x2635('0x5')][_0x2635('0x0')](_0x1afdbb),_0x46a1c5=_0x7d55b[_0x2635('0x5')][_0x2635('0x0')](_0x1669de);_0x7d55b['ui'][_0x2635('0x6')][_0x2635('0x17')](_0x2635('0x1c'),_0x34e905=>{const _0x407da2=new _0x391b2b(_0x34e905);return _0x407da2[_0x2635('0xd')]({'label':_0x1b1912(_0x34e905,_0x2635('0x1b')),'icon':_0x1309e0,'withText':!0x0,'tooltip':!0x0,'class':_0x2635('0xa')}),this['listenTo'](_0x407da2,_0x2635('0xb'),()=>{_0x7d55b[_0x2635('0x2')][_0x2635('0x0')](_0x2635('0x1f'))[_0x2635('0x14')]();}),_0x407da2;}),_0x7d55b['ui']['componentFactory'][_0x2635('0x17')](_0x2635('0x8'),_0x2f4a99=>{const _0x498b0f=new _0x391b2b(_0x2f4a99);return _0x498b0f[_0x2635('0xd')]({'label':_0x1b1912(_0x2f4a99,_0x2635('0x4')),'withText':!0x0,'tooltip':!0x0}),_0x498b0f[_0x2635('0xe')]('isEnabled')['to'](_0x7d55b['commands'][_0x2635('0x0')](_0x2635('0x8'))),this['listenTo'](_0x498b0f,_0x2635('0xb'),()=>_0x7d55b[_0x2635('0xb')](_0x2635('0x8'))),_0x498b0f;}),_0x7d55b['ui'][_0x2635('0x6')][_0x2635('0x17')]('changesNavigation',_0x14e501=>{const _0x314cdf=new _0x444ff6(_0x14e501),_0x17bb31=_0x7d55b['commands'][_0x2635('0x0')](_0x2635('0x16')),_0x4568a0=_0x7d55b[_0x2635('0x7')][_0x2635('0x0')](_0x2635('0x1a'));return _0x314cdf['bind'](_0x2635('0x12'))['to'](_0x17bb31,_0x2635('0x1d')),_0x314cdf[_0x2635('0xe')](_0x2635('0x9'))['to'](_0x4568a0,_0x2635('0x1d')),_0x314cdf['bind']('isReady','currentChangeNumber',_0x2635('0x10'),_0x2635('0x13'))['to'](_0x45ae57),this['listenTo'](_0x314cdf,_0x2635('0xb'),(_0x4f6904,_0x56da1f)=>{_0x7d55b['execute'](_0x2635('0x18')===_0x56da1f?_0x2635('0x1a'):'showPreviousChange');}),_0x314cdf;}),_0x46a1c5[_0x2635('0x1e')](),_0x45ae57['on'](_0x2635('0x1'),(_0xa2afb8,_0x91f0c7,_0x5bf213)=>{_0x5bf213?_0x46a1c5[_0x2635('0xf')]():_0x46a1c5[_0x2635('0x1e')]();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x2c6685,_0x20412b,_0x373cf6){const t=_0x2c6685['t'];switch(_0x20412b){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'},_0x373cf6);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x373cf6);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 _0x20412b;}}
23
+ export function getTranslation(_0x3d0b89,_0x375ccc,_0x1d0d5e){const t=_0x3d0b89['t'];switch(_0x375ccc){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'},_0x1d0d5e);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1d0d5e);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 _0x375ccc;}}