@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230808.0 → 0.0.0-nightly-20230809.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 _0x25b5=['revisionName','revisionHistory','Revision\x20history','view','execute','cancel','isReady','Open\x20revision\x20history','plugins','bind','isReadOnly','length','render','saveRevision','add','config','requires','children','pluginName','editing','isEnabled','remove','saveButtonView','addMany','reset','buttonView','get','editor','submit','items','set','focus','showRevisionViewerCallback'];(function(_0x2eca35,_0x25b5bc){const _0x16f9f7=function(_0x293aee){while(--_0x293aee){_0x2eca35['push'](_0x2eca35['shift']());}};_0x16f9f7(++_0x25b5bc);}(_0x25b5,0x128));const _0x16f9=function(_0x2eca35,_0x25b5bc){_0x2eca35=_0x2eca35-0x0;let _0x16f9f7=_0x25b5[_0x2eca35];return _0x16f9f7;};import{Plugin as _0x14f657}from'ckeditor5/src/core';import{ListView as _0x1b45bb,ListItemView as _0x1601b2,ButtonView as _0xbdba12,createDropdown as _0x58edcf}from'ckeditor5/src/ui';import _0xa50388 from'../../revisiontracker';import _0x156d62 from'./revisionhistorysaverevisionformview';import _0x22f003 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x425b31}from'../../utils/common-translations';export default class u extends _0x14f657{static get[_0x16f9('0x13')](){return'RevisionHistoryUI';}static get[_0x16f9('0x11')](){return[_0xa50388];}['init'](){const _0x1bfdcc=this[_0x16f9('0x1c')],_0x449c30=_0x1bfdcc[_0x16f9('0x9')]['get']('RevisionTracker');_0x1bfdcc['ui']['componentFactory'][_0x16f9('0xf')]('revisionHistory',_0x207cf8=>{const _0x3e5286=_0x58edcf(_0x207cf8),_0x5cb4f5=_0x3e5286['panelView']['children'],_0x44c597=new _0x1b45bb(_0x207cf8),_0x493fda=new _0x1601b2(_0x207cf8),_0x163a8f=new _0xbdba12(_0x207cf8),_0x39a843=new _0x1601b2(_0x207cf8),_0x3e713f=new _0xbdba12(_0x207cf8),_0x38aab3=new _0x156d62(_0x207cf8);function _0x33c881(){_0x5cb4f5[_0x16f9('0xc')]&&_0x5cb4f5[_0x16f9('0x16')](0x0),_0x5cb4f5[_0x16f9('0xf')](_0x44c597);}function _0xda07c9(){_0x3e5286['isOpen']=!0x1,_0x1bfdcc[_0x16f9('0x14')][_0x16f9('0x4')][_0x16f9('0x20')]();}return _0x3e5286[_0x16f9('0xa')]('isEnabled')['to'](_0x449c30,'isReady',_0x449c30,_0x16f9('0x15'),_0x1bfdcc,_0x16f9('0xb'),(_0xc04982,_0x12c4dc,_0x2b0c52)=>_0xc04982&&_0x12c4dc&&!_0x2b0c52),_0x3e5286[_0x16f9('0x1a')][_0x16f9('0x1f')]({'icon':_0x22f003,'label':_0x425b31(_0x207cf8,_0x16f9('0x3')),'tooltip':!0x0}),_0x163a8f['set']({'label':_0x425b31(_0x207cf8,'Save\x20current\x20revision'),'withText':!0x0}),_0x163a8f[_0x16f9('0xa')]('isEnabled')['to'](_0x449c30,_0x16f9('0x7'),_0x449c30,'isEnabled',_0x1bfdcc,_0x16f9('0xb'),(_0x5b3251,_0x205434,_0x307404)=>_0x5b3251&&_0x205434&&!_0x307404),_0x163a8f['on'](_0x16f9('0x5'),()=>function(){_0x5cb4f5[_0x16f9('0xc')]&&_0x5cb4f5[_0x16f9('0x16')](0x0),(_0x38aab3[_0x16f9('0x19')](),_0x5cb4f5['add'](_0x38aab3),_0x38aab3[_0x16f9('0x20')]());}()),_0x3e713f[_0x16f9('0x1f')]({'label':_0x425b31(_0x207cf8,_0x16f9('0x8')),'withText':!0x0}),_0x3e713f[_0x16f9('0xa')]('isEnabled')['to'](_0x449c30,_0x16f9('0x7'),_0x1bfdcc,_0x16f9('0xb'),(_0x3df691,_0x212a41)=>_0x3df691&&!_0x212a41),_0x3e713f['on'](_0x16f9('0x5'),()=>{_0x1bfdcc[_0x16f9('0x10')][_0x16f9('0x1b')](_0x16f9('0x2'))[_0x16f9('0x0')](),_0xda07c9();}),_0x493fda[_0x16f9('0x12')][_0x16f9('0xf')](_0x163a8f),_0x39a843[_0x16f9('0x12')][_0x16f9('0xf')](_0x3e713f),_0x44c597[_0x16f9('0x1e')][_0x16f9('0x18')]([_0x493fda,_0x39a843]),_0x3e5286['on']('change:isOpen',()=>_0x33c881()),_0x38aab3[_0x16f9('0x17')][_0x16f9('0xa')](_0x16f9('0x15'))['to'](_0x449c30,'isReady',_0x449c30,'isEnabled',_0x1bfdcc,_0x16f9('0xb'),(_0x25ef88,_0x1fa01d,_0x285a06)=>_0x25ef88&&_0x1fa01d&&!_0x285a06),_0x38aab3['on'](_0x16f9('0x1d'),()=>(_0x1bfdcc['plugins'][_0x16f9('0x1b')](_0xa50388)[_0x16f9('0xe')]({'name':_0x38aab3[_0x16f9('0x1')]}),void _0xda07c9())),_0x38aab3['on'](_0x16f9('0x6'),()=>_0x33c881()),_0x38aab3[_0x16f9('0xd')](),_0x33c881(),_0x3e5286;});}}
23
+ const _0x83e1=['requires','RevisionHistoryUI','init','bind','RevisionTracker','get','isEnabled','length','pluginName','saveRevision','revisionHistory','revisionName','isReady','editing','render','change:isOpen','execute','items','view','saveButtonView','add','remove','focus','componentFactory','submit','isReadOnly','Revision\x20history','children','plugins','addMany','set','editor','Save\x20current\x20revision'];(function(_0xb6dba3,_0x83e14f){const _0x20554d=function(_0x4e38cf){while(--_0x4e38cf){_0xb6dba3['push'](_0xb6dba3['shift']());}};_0x20554d(++_0x83e14f);}(_0x83e1,0x94));const _0x2055=function(_0xb6dba3,_0x83e14f){_0xb6dba3=_0xb6dba3-0x0;let _0x20554d=_0x83e1[_0xb6dba3];return _0x20554d;};import{Plugin as _0x456d15}from'ckeditor5/src/core';import{ListView as _0x27a4af,ListItemView as _0x71322e,ButtonView as _0x12b7e4,createDropdown as _0x5943a8}from'ckeditor5/src/ui';import _0x2a340d from'../../revisiontracker';import _0x458864 from'./revisionhistorysaverevisionformview';import _0x4e7ce4 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x4acb21}from'../../utils/common-translations';export default class u extends _0x456d15{static get[_0x2055('0x19')](){return _0x2055('0x12');}static get[_0x2055('0x11')](){return[_0x2a340d];}[_0x2055('0x13')](){const _0x1d795d=this[_0x2055('0xf')],_0x5d5ba7=_0x1d795d[_0x2055('0xc')][_0x2055('0x16')](_0x2055('0x15'));_0x1d795d['ui'][_0x2055('0x7')]['add'](_0x2055('0x1b'),_0x3d48eb=>{const _0x150030=_0x5943a8(_0x3d48eb),_0x1a3af2=_0x150030['panelView'][_0x2055('0xb')],_0x46718c=new _0x27a4af(_0x3d48eb),_0x1c853e=new _0x71322e(_0x3d48eb),_0x4a9b14=new _0x12b7e4(_0x3d48eb),_0x4e04aa=new _0x71322e(_0x3d48eb),_0xa85596=new _0x12b7e4(_0x3d48eb),_0x28ca15=new _0x458864(_0x3d48eb);function _0x5f212b(){_0x1a3af2[_0x2055('0x18')]&&_0x1a3af2[_0x2055('0x5')](0x0),_0x1a3af2[_0x2055('0x4')](_0x46718c);}function _0xc6f006(){_0x150030['isOpen']=!0x1,_0x1d795d[_0x2055('0x1e')][_0x2055('0x2')]['focus']();}return _0x150030['bind']('isEnabled')['to'](_0x5d5ba7,'isReady',_0x5d5ba7,'isEnabled',_0x1d795d,_0x2055('0x9'),(_0x5218bf,_0x233301,_0x2403b9)=>_0x5218bf&&_0x233301&&!_0x2403b9),_0x150030['buttonView']['set']({'icon':_0x4e7ce4,'label':_0x4acb21(_0x3d48eb,_0x2055('0xa')),'tooltip':!0x0}),_0x4a9b14[_0x2055('0xe')]({'label':_0x4acb21(_0x3d48eb,_0x2055('0x10')),'withText':!0x0}),_0x4a9b14[_0x2055('0x14')](_0x2055('0x17'))['to'](_0x5d5ba7,_0x2055('0x1d'),_0x5d5ba7,_0x2055('0x17'),_0x1d795d,'isReadOnly',(_0x47155b,_0x301881,_0x4c74fe)=>_0x47155b&&_0x301881&&!_0x4c74fe),_0x4a9b14['on']('execute',()=>function(){_0x1a3af2[_0x2055('0x18')]&&_0x1a3af2[_0x2055('0x5')](0x0),(_0x28ca15['reset'](),_0x1a3af2[_0x2055('0x4')](_0x28ca15),_0x28ca15[_0x2055('0x6')]());}()),_0xa85596[_0x2055('0xe')]({'label':_0x4acb21(_0x3d48eb,'Open\x20revision\x20history'),'withText':!0x0}),_0xa85596['bind'](_0x2055('0x17'))['to'](_0x5d5ba7,_0x2055('0x1d'),_0x1d795d,'isReadOnly',(_0x2ed7b8,_0x59d4b2)=>_0x2ed7b8&&!_0x59d4b2),_0xa85596['on'](_0x2055('0x0'),()=>{_0x1d795d['config']['get'](_0x2055('0x1b'))['showRevisionViewerCallback'](),_0xc6f006();}),_0x1c853e[_0x2055('0xb')][_0x2055('0x4')](_0x4a9b14),_0x4e04aa['children'][_0x2055('0x4')](_0xa85596),_0x46718c[_0x2055('0x1')][_0x2055('0xd')]([_0x1c853e,_0x4e04aa]),_0x150030['on'](_0x2055('0x20'),()=>_0x5f212b()),_0x28ca15[_0x2055('0x3')][_0x2055('0x14')](_0x2055('0x17'))['to'](_0x5d5ba7,_0x2055('0x1d'),_0x5d5ba7,_0x2055('0x17'),_0x1d795d,'isReadOnly',(_0x49dd7f,_0x3e457f,_0x1e13f7)=>_0x49dd7f&&_0x3e457f&&!_0x1e13f7),_0x28ca15['on'](_0x2055('0x8'),()=>(_0x1d795d['plugins'][_0x2055('0x16')](_0x2a340d)[_0x2055('0x1a')]({'name':_0x28ca15[_0x2055('0x1c')]}),void _0xc6f006())),_0x28ca15['on']('cancel',()=>_0x5f212b()),_0x28ca15[_0x2055('0x1f')](),_0x5f212b(),_0x150030;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x55e1=['isReady','revisionViews','setName','action','bind','listenTo','ready','_handleRevisionSetName','isSelected','init','fieldView','_handleDiffChange','Restore\x20this\x20revision','diff','add','RevisionsSidebar','focus','requires','render','editor','string','plugins','highlightRevisions','repository','appendChild','restoreRevisionCallback','get','_sidebarView','_createRevisionActions','config','destroy','_revisions','change:diff','selectRevision','newRevisionId','remove','map','Compare\x20against\x20selected','_handleEditorDataReady','revisionHistory','getRevisionsInDiff','revisionHistory.viewerSidebarContainer','getEarlierVisibleRevision','isEnabled','revisionHistory.revisionActions','restoreRevision','getIndex','pluginName','element','_revisionViewer','locale','getLaterVisibleRevision','getRevision','availableRevisionActions','_revisionsRepository','defaultRevisionActions','assign','compare','_handleRevisionSelected'];(function(_0x1b5665,_0x55e14c){const _0x5a1598=function(_0x3ba99b){while(--_0x3ba99b){_0x1b5665['push'](_0x1b5665['shift']());}};_0x5a1598(++_0x55e14c);}(_0x55e1,0xd6));const _0x5a15=function(_0x1b5665,_0x55e14c){_0x1b5665=_0x1b5665-0x0;let _0x5a1598=_0x55e1[_0x1b5665];return _0x5a1598;};import{Plugin as _0x19242c}from'ckeditor5/src/core';import _0x333495 from'./revisionssidebarview';import _0x277990 from'../../revisionviewer';export default class w extends _0x19242c{static get[_0x5a15('0xa')](){return _0x5a15('0x25');}static get[_0x5a15('0x27')](){return[_0x277990];}constructor(_0x1f2881){super(_0x1f2881),this[_0x5a15('0xc')]=_0x1f2881[_0x5a15('0x2b')][_0x5a15('0x30')](_0x277990),this[_0x5a15('0x11')]=this[_0x5a15('0xc')][_0x5a15('0x2d')],this[_0x5a15('0x31')]=null;}[_0x5a15('0x1f')](){const _0x5ab1fc=this[_0x5a15('0x11')][_0x5a15('0x35')],_0x44a014=this[_0x5a15('0x32')](),_0x885bfa=this[_0x5a15('0x29')][_0x5a15('0x33')][_0x5a15('0x30')](_0x5a15('0x4'));this['_sidebarView']=new _0x333495(this[_0x5a15('0x29')][_0x5a15('0xd')],_0x5ab1fc,_0x44a014),this[_0x5a15('0x31')]['on']('revisionSelected',this[_0x5a15('0x15')][_0x5a15('0x1a')](this)),this[_0x5a15('0x31')]['on']('revisionSetName',this[_0x5a15('0x1d')][_0x5a15('0x1a')](this)),this['_sidebarView']['bind'](_0x5a15('0x6'))['to'](this[_0x5a15('0xc')]),this['_sidebarView']['timePeriodViews']['on'](_0x5a15('0x24'),(_0x296527,_0x14157f)=>{_0x14157f[_0x5a15('0x17')]['on'](_0x5a15('0x24'),(_0x5385b3,_0x2ddb83)=>{_0x2ddb83[_0x5a15('0x1a')](_0x5a15('0x6'),_0x5a15('0x16'))['to'](this[_0x5a15('0xc')]);});}),this[_0x5a15('0x31')][_0x5a15('0x28')](),this['listenTo'](this[_0x5a15('0x29')]['data'],_0x5a15('0x1c'),this[_0x5a15('0x1')][_0x5a15('0x1a')](this)),this[_0x5a15('0x1b')](this[_0x5a15('0xc')],_0x5a15('0x36'),this[_0x5a15('0x21')][_0x5a15('0x1a')](this)),_0x885bfa[_0x5a15('0x2e')](this[_0x5a15('0x31')][_0x5a15('0xb')]);}['destroy'](){this[_0x5a15('0x31')][_0x5a15('0xb')][_0x5a15('0x39')](),this[_0x5a15('0x31')][_0x5a15('0x34')]();}[_0x5a15('0x1')](){const _0x2fc359=this[_0x5a15('0x11')]['getRevision'](0x0);if(_0x2fc359){const _0x49238d=this[_0x5a15('0x11')][_0x5a15('0x5')](_0x2fc359['id']);this[_0x5a15('0xc')][_0x5a15('0x14')](_0x2fc359,_0x49238d);}}[_0x5a15('0x15')](_0x1eed7f,_0x25cca4){const _0x4cc2cd=this['_revisionsRepository'][_0x5a15('0xf')](_0x25cca4['id']),_0x244799=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4cc2cd['id']);this[_0x5a15('0xc')]['compare'](_0x4cc2cd,_0x244799);}[_0x5a15('0x1d')](_0x58a277,_0x5a8776){this[_0x5a15('0x11')][_0x5a15('0xf')](_0x5a8776['id'])[_0x5a15('0x18')](_0x5a8776['name']);}[_0x5a15('0x21')](_0x2b1250,_0x34c597,_0x41bf35){const _0x741b0b=this[_0x5a15('0x11')][_0x5a15('0x3')](_0x41bf35);_0x741b0b['length']>0x2?(this[_0x5a15('0x31')][_0x5a15('0x2c')](_0x741b0b),this[_0x5a15('0x31')][_0x5a15('0x37')](null)):(this[_0x5a15('0x31')]['highlightRevisions']([]),this[_0x5a15('0x31')][_0x5a15('0x37')](_0x741b0b[0x0]));}[_0x5a15('0x32')](){const _0x3d9a65=this[_0x5a15('0x29')],_0x5b9f93=w[_0x5a15('0x10')],_0x2a398e=_0x3d9a65[_0x5a15('0x33')]['get'](_0x5a15('0x7'))||w[_0x5a15('0x12')];if(_0x2a398e['length'])return _0x2a398e[_0x5a15('0x3a')](_0x5ef131=>{const _0x4e18f8=_0x5a15('0x2a')==typeof _0x5ef131?Object[_0x5a15('0x13')]({},_0x5b9f93[_0x5ef131]):_0x5ef131;return _0x4e18f8['action']=_0x4e18f8[_0x5a15('0x19')][_0x5a15('0x1a')](this,_0x3d9a65),_0x4e18f8['isVisible']&&(_0x4e18f8['isVisible']=_0x4e18f8['isVisible'][_0x5a15('0x1a')](this,_0x3d9a65)),_0x4e18f8;});}}w[_0x5a15('0x10')]={'compareAgainstSelected':{'name':_0x5a15('0x0'),'action':({plugins:_0x1b26f4},_0xf18ab3)=>{const _0x5b465c=_0x1b26f4[_0x5a15('0x30')](_0x277990),_0x1d567a=_0x5b465c[_0x5a15('0x2d')];let _0x59f91e=_0x5b465c[_0x5a15('0x23')][_0x5a15('0x38')],_0x2d492b=_0xf18ab3['id'];_0x1d567a[_0x5a15('0x9')](_0x59f91e)>_0x1d567a['getIndex'](_0x2d492b)&&([_0x59f91e,_0x2d492b]=[_0x2d492b,_0x59f91e]),_0x5b465c[_0x5a15('0x14')](_0x59f91e,_0x2d492b);},'isVisible':({plugins:_0x31061d},_0x2491e8)=>{const _0x12ef7e=_0x31061d[_0x5a15('0x30')](_0x277990);return!(_0x12ef7e['repository'][_0x5a15('0x3')](_0x12ef7e['diff'])['length']>0x2)&&!_0x2491e8[_0x5a15('0x1e')];}},'restoreRevision':{'name':_0x5a15('0x22'),'action':(_0x132b7b,{id:_0x44b83a})=>{_0x132b7b['config'][_0x5a15('0x30')](_0x5a15('0x2'))[_0x5a15('0x2f')](_0x44b83a);},'isVisible':({plugins:_0x7e4520},_0x3f2655)=>!!_0x7e4520[_0x5a15('0x30')](_0x277990)[_0x5a15('0x2d')][_0x5a15('0xe')](_0x3f2655['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x1e75ae},{id:_0x482898,revisionNameView:_0x23d581})=>{const _0x4d7175=_0x1e75ae[_0x5a15('0x30')](_0x277990),_0x4cf698=_0x4d7175[_0x5a15('0x2d')][_0x5a15('0x5')](_0x482898);_0x4d7175[_0x5a15('0x14')](_0x482898,_0x4cf698),_0x23d581[_0x5a15('0x26')](),_0x23d581[_0x5a15('0x20')]['select']();}}},w['defaultRevisionActions']=['compareAgainstSelected',_0x5a15('0x8'),'nameRevision'];
23
+ const _0x3187=['_revisionsRepository','defaultRevisionActions','add','revisionViews','compare','getRevision','availableRevisionActions','_revisionViewer','element','assign','_sidebarView','pluginName','plugins','revisionHistory.viewerSidebarContainer','isEnabled','_handleRevisionSelected','name','restoreRevision','getLaterVisibleRevision','repository','isReady','get','remove','ready','restoreRevisionCallback','Name\x20this\x20revision','destroy','getIndex','config','_revisions','revisionSelected','Restore\x20this\x20revision','newRevisionId','listenTo','focus','revisionSetName','revisionHistory.revisionActions','revisionHistory','isSelected','_handleDiffChange','bind','length','change:diff','setName','action','_handleRevisionSetName','render','_handleEditorDataReady','isVisible','init','editor','getEarlierVisibleRevision','locale','map','string','selectRevision','data','Compare\x20against\x20selected'];(function(_0x709c71,_0x31876d){const _0x5e0dfb=function(_0x43596c){while(--_0x43596c){_0x709c71['push'](_0x709c71['shift']());}};_0x5e0dfb(++_0x31876d);}(_0x3187,0x81));const _0x5e0d=function(_0x709c71,_0x31876d){_0x709c71=_0x709c71-0x0;let _0x5e0dfb=_0x3187[_0x709c71];return _0x5e0dfb;};import{Plugin as _0x5b188d}from'ckeditor5/src/core';import _0x2dc569 from'./revisionssidebarview';import _0x548618 from'../../revisionviewer';export default class w extends _0x5b188d{static get[_0x5e0d('0x38')](){return'RevisionsSidebar';}static get['requires'](){return[_0x548618];}constructor(_0x449b11){super(_0x449b11),this[_0x5e0d('0x34')]=_0x449b11[_0x5e0d('0x39')][_0x5e0d('0x8')](_0x548618),this[_0x5e0d('0x2d')]=this['_revisionViewer'][_0x5e0d('0x6')],this['_sidebarView']=null;}[_0x5e0d('0x24')](){const _0x51c5b8=this[_0x5e0d('0x2d')][_0x5e0d('0x10')],_0x2baf14=this['_createRevisionActions'](),_0x189801=this[_0x5e0d('0x25')][_0x5e0d('0xf')][_0x5e0d('0x8')](_0x5e0d('0x0'));this[_0x5e0d('0x37')]=new _0x2dc569(this[_0x5e0d('0x25')][_0x5e0d('0x27')],_0x51c5b8,_0x2baf14),this['_sidebarView']['on'](_0x5e0d('0x11'),this[_0x5e0d('0x2')][_0x5e0d('0x1b')](this)),this[_0x5e0d('0x37')]['on'](_0x5e0d('0x16'),this[_0x5e0d('0x20')][_0x5e0d('0x1b')](this)),this[_0x5e0d('0x37')]['bind'](_0x5e0d('0x1'))['to'](this['_revisionViewer']),this[_0x5e0d('0x37')]['timePeriodViews']['on'](_0x5e0d('0x2f'),(_0x1dbf15,_0x5640c6)=>{_0x5640c6[_0x5e0d('0x30')]['on']('add',(_0x25b2c8,_0x3c3027)=>{_0x3c3027[_0x5e0d('0x1b')](_0x5e0d('0x1'),_0x5e0d('0x7'))['to'](this['_revisionViewer']);});}),this[_0x5e0d('0x37')][_0x5e0d('0x21')](),this[_0x5e0d('0x14')](this[_0x5e0d('0x25')][_0x5e0d('0x2b')],_0x5e0d('0xa'),this[_0x5e0d('0x22')][_0x5e0d('0x1b')](this)),this['listenTo'](this['_revisionViewer'],_0x5e0d('0x1d'),this['_handleDiffChange'][_0x5e0d('0x1b')](this)),_0x189801['appendChild'](this[_0x5e0d('0x37')]['element']);}['destroy'](){this[_0x5e0d('0x37')][_0x5e0d('0x35')][_0x5e0d('0x9')](),this['_sidebarView'][_0x5e0d('0xd')]();}[_0x5e0d('0x22')](){const _0x4b2d87=this['_revisionsRepository'][_0x5e0d('0x32')](0x0);if(_0x4b2d87){const _0x3abaa2=this[_0x5e0d('0x2d')][_0x5e0d('0x26')](_0x4b2d87['id']);this['_revisionViewer']['compare'](_0x4b2d87,_0x3abaa2);}}['_handleRevisionSelected'](_0x418ef3,_0x27a01d){const _0x58dea2=this[_0x5e0d('0x2d')][_0x5e0d('0x32')](_0x27a01d['id']),_0x5d5ad6=this['_revisionsRepository'][_0x5e0d('0x26')](_0x58dea2['id']);this[_0x5e0d('0x34')][_0x5e0d('0x31')](_0x58dea2,_0x5d5ad6);}[_0x5e0d('0x20')](_0x411930,_0x55e3ac){this[_0x5e0d('0x2d')][_0x5e0d('0x32')](_0x55e3ac['id'])[_0x5e0d('0x1e')](_0x55e3ac[_0x5e0d('0x3')]);}[_0x5e0d('0x1a')](_0x4ef165,_0x817d4,_0x50cc94){const _0x26a471=this['_revisionsRepository']['getRevisionsInDiff'](_0x50cc94);_0x26a471[_0x5e0d('0x1c')]>0x2?(this['_sidebarView']['highlightRevisions'](_0x26a471),this[_0x5e0d('0x37')][_0x5e0d('0x2a')](null)):(this[_0x5e0d('0x37')]['highlightRevisions']([]),this[_0x5e0d('0x37')]['selectRevision'](_0x26a471[0x0]));}['_createRevisionActions'](){const _0x4ec5f2=this['editor'],_0x253843=w['availableRevisionActions'],_0x588881=_0x4ec5f2['config'][_0x5e0d('0x8')](_0x5e0d('0x17'))||w[_0x5e0d('0x2e')];if(_0x588881[_0x5e0d('0x1c')])return _0x588881[_0x5e0d('0x28')](_0x354f4d=>{const _0xe55082=_0x5e0d('0x29')==typeof _0x354f4d?Object[_0x5e0d('0x36')]({},_0x253843[_0x354f4d]):_0x354f4d;return _0xe55082[_0x5e0d('0x1f')]=_0xe55082[_0x5e0d('0x1f')][_0x5e0d('0x1b')](this,_0x4ec5f2),_0xe55082['isVisible']&&(_0xe55082[_0x5e0d('0x23')]=_0xe55082[_0x5e0d('0x23')][_0x5e0d('0x1b')](this,_0x4ec5f2)),_0xe55082;});}}w[_0x5e0d('0x33')]={'compareAgainstSelected':{'name':_0x5e0d('0x2c'),'action':({plugins:_0x22c567},_0x16c3e4)=>{const _0x4dfd93=_0x22c567[_0x5e0d('0x8')](_0x548618),_0x27cb8f=_0x4dfd93['repository'];let _0x2e34af=_0x4dfd93['diff'][_0x5e0d('0x13')],_0x1978b2=_0x16c3e4['id'];_0x27cb8f[_0x5e0d('0xe')](_0x2e34af)>_0x27cb8f[_0x5e0d('0xe')](_0x1978b2)&&([_0x2e34af,_0x1978b2]=[_0x1978b2,_0x2e34af]),_0x4dfd93[_0x5e0d('0x31')](_0x2e34af,_0x1978b2);},'isVisible':({plugins:_0x14f41a},_0x430244)=>{const _0x2fe0a9=_0x14f41a[_0x5e0d('0x8')](_0x548618);return!(_0x2fe0a9[_0x5e0d('0x6')]['getRevisionsInDiff'](_0x2fe0a9['diff'])['length']>0x2)&&!_0x430244[_0x5e0d('0x19')];}},'restoreRevision':{'name':_0x5e0d('0x12'),'action':(_0x24ef16,{id:_0x13c7e5})=>{_0x24ef16[_0x5e0d('0xf')][_0x5e0d('0x8')](_0x5e0d('0x18'))[_0x5e0d('0xb')](_0x13c7e5);},'isVisible':({plugins:_0x37397a},_0x29232a)=>!!_0x37397a[_0x5e0d('0x8')](_0x548618)[_0x5e0d('0x6')][_0x5e0d('0x5')](_0x29232a['id'])},'nameRevision':{'name':_0x5e0d('0xc'),'action':({plugins:_0x577fbd},{id:_0x45b267,revisionNameView:_0x22c628})=>{const _0x662e77=_0x577fbd[_0x5e0d('0x8')](_0x548618),_0x54c50e=_0x662e77[_0x5e0d('0x6')]['getEarlierVisibleRevision'](_0x45b267);_0x662e77['compare'](_0x45b267,_0x54c50e),_0x22c628[_0x5e0d('0x15')](),_0x22c628['fieldView']['select']();}}},w['defaultRevisionActions']=['compareAgainstSelected',_0x5e0d('0x4'),'nameRevision'];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1b2b=['ck-revision-history-sidebar__header__label','setTemplate','content','ck-revision-history-sidebar__header','span','ck-reset_all'];(function(_0x21d905,_0x1b2b69){const _0x42d5fd=function(_0x46122a){while(--_0x46122a){_0x21d905['push'](_0x21d905['shift']());}};_0x42d5fd(++_0x1b2b69);}(_0x1b2b,0xf2));const _0x42d5=function(_0x21d905,_0x1b2b69){_0x21d905=_0x21d905-0x0;let _0x42d5fd=_0x1b2b[_0x21d905];return _0x42d5fd;};import{View as _0x13cb5e,IconView as _0x187da6}from'ckeditor5/src/ui';import{getTranslation as _0x1bd455}from'../../utils/common-translations';import _0x1918f0 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x13cb5e{constructor(_0x590464){super(_0x590464);const _0x4a7194=new _0x187da6();_0x4a7194[_0x42d5('0x0')]=_0x1918f0,this[_0x42d5('0x5')]({'tag':'div','attributes':{'class':['ck',_0x42d5('0x3'),_0x42d5('0x1')]},'children':[_0x4a7194,{'tag':_0x42d5('0x2'),'attributes':{'class':['ck',_0x42d5('0x4')]},'children':[_0x1bd455(_0x590464,'Revision\x20history')]}]});}}
23
+ const _0x523f=['ck-reset_all','ck-revision-history-sidebar__header','div','setTemplate','content','span','ck-revision-history-sidebar__header__label'];(function(_0xea18a7,_0x523f12){const _0x223b7c=function(_0x55db25){while(--_0x55db25){_0xea18a7['push'](_0xea18a7['shift']());}};_0x223b7c(++_0x523f12);}(_0x523f,0xa1));const _0x223b=function(_0xea18a7,_0x523f12){_0xea18a7=_0xea18a7-0x0;let _0x223b7c=_0x523f[_0xea18a7];return _0x223b7c;};import{View as _0x2597a4,IconView as _0x16a3c8}from'ckeditor5/src/ui';import{getTranslation as _0x139107}from'../../utils/common-translations';import _0x3d974f from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x2597a4{constructor(_0xfba7ea){super(_0xfba7ea);const _0x10c5b1=new _0x16a3c8();_0x10c5b1[_0x223b('0x4')]=_0x3d974f,this[_0x223b('0x3')]({'tag':_0x223b('0x2'),'attributes':{'class':['ck',_0x223b('0x0'),_0x223b('0x1')]},'children':[_0x10c5b1,{'tag':_0x223b('0x5'),'attributes':{'class':['ck',_0x223b('0x6')]},'children':[_0x139107(_0xfba7ea,'Revision\x20history')]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x17e2=['localizedPeriodName','select','delegate','setTemplate','div','_revisionActions','removeRevision','locale','revisionViews','ck-revision-history-sidebar__time-period','add','uiLanguage','ck-revision-history-sidebar__time-period__revisions','startDate','find'];(function(_0x4984a3,_0x17e2b6){const _0x45ddae=function(_0x17f9dd){while(--_0x17f9dd){_0x4984a3['push'](_0x4984a3['shift']());}};_0x45ddae(++_0x17e2b6);}(_0x17e2,0x199));const _0x45dd=function(_0x4984a3,_0x17e2b6){_0x4984a3=_0x4984a3-0x0;let _0x45ddae=_0x17e2[_0x4984a3];return _0x45ddae;};import{View as _0x35768d}from'ckeditor5/src/ui';import _0x1586e9 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x199043}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x35768d{constructor(_0x1d847b,_0x562e51,_0x1fef45){super(_0x1d847b);const _0x5b2a6e=_0x199043(_0x562e51,this[_0x45dd('0x3')][_0x45dd('0x7')])[_0x45dd('0xb')];this[_0x45dd('0x9')]=_0x562e51,this[_0x45dd('0x4')]=this['createCollection'](),this[_0x45dd('0x1')]=_0x1fef45,this[_0x45dd('0x4')]['delegate'](_0x45dd('0xc'))['to'](this),this[_0x45dd('0x4')][_0x45dd('0xd')]('setName')['to'](this),this[_0x45dd('0xe')]({'tag':'div','attributes':{'class':['ck',_0x45dd('0x5')]},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x5b2a6e}]},{'tag':_0x45dd('0x0'),'attributes':{'class':['ck',_0x45dd('0x8')]},'children':this[_0x45dd('0x4')]}]});}['addRevision'](_0x294532){const _0x22119e=new _0x1586e9(this[_0x45dd('0x3')],_0x294532,this[_0x45dd('0x1')]);this[_0x45dd('0x4')][_0x45dd('0x6')](_0x22119e);}[_0x45dd('0x2')](_0x25b3a7){const _0x465bc3=this[_0x45dd('0x4')][_0x45dd('0xa')](_0x182fcf=>_0x182fcf['id']===_0x25b3a7['id']);this[_0x45dd('0x4')]['remove'](_0x465bc3);}}
23
+ const _0x3fc8=['locale','delegate','revisionViews','localizedPeriodName','div','setName','remove','setTemplate','ck-revision-history-sidebar__time-period','addRevision','ck-revision-history-sidebar__time-period__revisions','uiLanguage','_revisionActions','find','removeRevision','createCollection','add','ck-revision-history-sidebar__time-period__label'];(function(_0x2925f3,_0x3fc8a2){const _0x2ebf41=function(_0x32f772){while(--_0x32f772){_0x2925f3['push'](_0x2925f3['shift']());}};_0x2ebf41(++_0x3fc8a2);}(_0x3fc8,0x110));const _0x2ebf=function(_0x2925f3,_0x3fc8a2){_0x2925f3=_0x2925f3-0x0;let _0x2ebf41=_0x3fc8[_0x2925f3];return _0x2ebf41;};import{View as _0x34d609}from'ckeditor5/src/ui';import _0x22bc8e from'../revision/revisionview';import{getDateTimePeriodInfo as _0x3f2076}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x34d609{constructor(_0x178c98,_0x339bea,_0xc6f113){super(_0x178c98);const _0x33404a=_0x3f2076(_0x339bea,this['locale'][_0x2ebf('0x9')])[_0x2ebf('0x1')];this['startDate']=_0x339bea,this[_0x2ebf('0x0')]=this[_0x2ebf('0xd')](),this[_0x2ebf('0xa')]=_0xc6f113,this['revisionViews']['delegate']('select')['to'](this),this['revisionViews'][_0x2ebf('0x11')](_0x2ebf('0x3'))['to'](this),this[_0x2ebf('0x5')]({'tag':_0x2ebf('0x2'),'attributes':{'class':['ck',_0x2ebf('0x6')]},'children':[{'tag':'span','attributes':{'class':['ck',_0x2ebf('0xf')]},'children':[{'text':_0x33404a}]},{'tag':_0x2ebf('0x2'),'attributes':{'class':['ck',_0x2ebf('0x8')]},'children':this[_0x2ebf('0x0')]}]});}[_0x2ebf('0x7')](_0x4d2525){const _0x326cb2=new _0x22bc8e(this[_0x2ebf('0x10')],_0x4d2525,this[_0x2ebf('0xa')]);this[_0x2ebf('0x0')][_0x2ebf('0xe')](_0x326cb2);}[_0x2ebf('0xc')](_0x240874){const _0x455952=this[_0x2ebf('0x0')][_0x2ebf('0xb')](_0x2150b1=>_0x2150b1['id']===_0x240874['id']);this[_0x2ebf('0x0')][_0x2ebf('0x4')](_0x455952);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x108d=['revisionSetName','setName','createdAt','bindTemplate','getTime','render','locale','fire','highlight','_addRevision','createCollection','select','remove','some','map','div','setTemplate','timePeriodViews','flat','uiLanguage','delegate','get','deselect','add','isEnabled','_getTimePeriodViewByStartDate','_revisionActions','revisionViews','addRevision','highlightRevisions','find','set','_revisions','startDate'];(function(_0x3a8811,_0x108dd5){const _0x251c04=function(_0x5b6ed9){while(--_0x5b6ed9){_0x3a8811['push'](_0x3a8811['shift']());}};_0x251c04(++_0x108dd5);}(_0x108d,0x15a));const _0x251c=function(_0x3a8811,_0x108dd5){_0x3a8811=_0x3a8811-0x0;let _0x251c04=_0x108d[_0x3a8811];return _0x251c04;};import{View as _0x5d3d8a}from'ckeditor5/src/ui';import _0x22ff3f from'./revisionssidebartimeperiodview';import _0x977082 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x2d4922}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x5d3d8a{constructor(_0x48f5c3,_0x53f2cc,_0x257d7d){super(_0x48f5c3);const _0x3a8d97=this[_0x251c('0x1f')];this[_0x251c('0xb')]=this[_0x251c('0x4')](),this[_0x251c('0xb')][_0x251c('0xe')](_0x251c('0x5'))['to'](this),this[_0x251c('0xb')]['delegate'](_0x251c('0x1d'))['to'](this),this[_0x251c('0x1a')]=_0x53f2cc,this['_revisionActions']=_0x257d7d,this['on'](_0x251c('0x5'),(_0x2e9991,_0x2cca64)=>{this[_0x251c('0x1')]('revisionSelected',_0x2cca64);}),this['on']('setName',(_0x1956be,_0x539390)=>{this['fire'](_0x251c('0x1c'),_0x539390);}),this[_0x251c('0x19')](_0x251c('0x12'),!0x1),this[_0x251c('0xa')]({'tag':_0x251c('0x9'),'attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new _0x977082(_0x48f5c3),{'tag':_0x251c('0x9'),'attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x3a8d97['if']('isEnabled','ck-disabled',_0xef3b57=>!_0xef3b57)]},'children':this[_0x251c('0xb')]}]});}[_0x251c('0x21')](){super['render']();for(const _0x5770ea of this['_revisions'])this[_0x251c('0x3')](_0x5770ea);this['_revisions']['on'](_0x251c('0x11'),(_0x326f27,_0xd3f198)=>{this[_0x251c('0x3')](_0xd3f198);}),this[_0x251c('0x1a')]['on'](_0x251c('0x6'),(_0x119fd7,_0x4a50bb)=>{this['_removeRevision'](_0x4a50bb);});}get[_0x251c('0x15')](){return this[_0x251c('0xb')][_0x251c('0x8')](_0x3765bf=>_0x3765bf['revisionViews'][_0x251c('0x8')](_0x301c29=>_0x301c29))[_0x251c('0xc')]();}['selectRevision'](_0x51f223){for(const _0x49591f of this[_0x251c('0x15')])_0x51f223&&_0x51f223['id']===_0x49591f['id']?_0x49591f[_0x251c('0x5')]():_0x49591f[_0x251c('0x10')]();}[_0x251c('0x17')](_0x2ce9c9){for(const _0x92dfbe of this[_0x251c('0x15')])_0x2ce9c9[_0x251c('0x7')](({id:_0x5c1f66})=>_0x5c1f66===_0x92dfbe['id'])?_0x92dfbe[_0x251c('0x2')]():_0x92dfbe['unhighlight']();}['_addRevision'](_0x3a8533){const _0x2ddfce=_0x2d4922(_0x3a8533[_0x251c('0x1e')],this['locale'][_0x251c('0xd')])[_0x251c('0x1b')];let _0x5220b6=this['timePeriodViews'][_0x251c('0xf')](0x0);_0x5220b6&&_0x5220b6[_0x251c('0x1b')][_0x251c('0x20')]()===_0x2ddfce['getTime']()||(_0x5220b6=new _0x22ff3f(this['locale'],_0x2ddfce,this[_0x251c('0x14')]),this[_0x251c('0xb')]['add'](_0x5220b6)),_0x5220b6[_0x251c('0x16')](_0x3a8533);}['_removeRevision'](_0xc50e78){const _0x5ccb05=_0x2d4922(_0xc50e78[_0x251c('0x1e')],this[_0x251c('0x0')]['uiLanguage'])[_0x251c('0x1b')];this[_0x251c('0x13')](_0x5ccb05)['removeRevision'](_0xc50e78);}[_0x251c('0x13')](_0x3b6a5a){return this['timePeriodViews'][_0x251c('0x18')](_0x36c847=>_0x36c847['startDate'][_0x251c('0x20')]()===_0x3b6a5a[_0x251c('0x20')]());}}
23
+ const _0x50dd=['revisionSetName','get','_getTimePeriodViewByStartDate','bindTemplate','_removeRevision','revisionSelected','add','setTemplate','map','remove','find','locale','uiLanguage','fire','highlight','timePeriodViews','deselect','render','getTime','setName','startDate','revisionViews','div','isEnabled','_revisionActions','createdAt','createCollection','unhighlight','ck-revision-history-sidebar','some','selectRevision','_addRevision','removeRevision','delegate','select','_revisions','ck-rounded-corners'];(function(_0x46cd84,_0x50dd6d){const _0x36635f=function(_0x2d6f71){while(--_0x2d6f71){_0x46cd84['push'](_0x46cd84['shift']());}};_0x36635f(++_0x50dd6d);}(_0x50dd,0x18d));const _0x3663=function(_0x46cd84,_0x50dd6d){_0x46cd84=_0x46cd84-0x0;let _0x36635f=_0x50dd[_0x46cd84];return _0x36635f;};import{View as _0x8108b9}from'ckeditor5/src/ui';import _0x10ed48 from'./revisionssidebartimeperiodview';import _0x46ad1b from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x67df5f}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x8108b9{constructor(_0x2fb2e7,_0x4ffef0,_0x261455){super(_0x2fb2e7);const _0x580db9=this[_0x3663('0xd')];this[_0x3663('0x19')]=this[_0x3663('0x24')](),this[_0x3663('0x19')][_0x3663('0x6')](_0x3663('0x7'))['to'](this),this[_0x3663('0x19')][_0x3663('0x6')]('setName')['to'](this),this[_0x3663('0x8')]=_0x4ffef0,this[_0x3663('0x22')]=_0x261455,this['on'](_0x3663('0x7'),(_0x267e3c,_0x3e3602)=>{this[_0x3663('0x17')](_0x3663('0xf'),_0x3e3602);}),this['on'](_0x3663('0x1d'),(_0x4fc4c1,_0x3bad3c)=>{this['fire'](_0x3663('0xa'),_0x3bad3c);}),this['set']('isEnabled',!0x1),this[_0x3663('0x11')]({'tag':'div','attributes':{'class':['ck','ck-reset',_0x3663('0x9'),_0x3663('0x1')]},'children':[new _0x46ad1b(_0x2fb2e7),{'tag':_0x3663('0x20'),'attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x580db9['if'](_0x3663('0x21'),'ck-disabled',_0x500a11=>!_0x500a11)]},'children':this[_0x3663('0x19')]}]});}[_0x3663('0x1b')](){super[_0x3663('0x1b')]();for(const _0x43f697 of this[_0x3663('0x8')])this[_0x3663('0x4')](_0x43f697);this[_0x3663('0x8')]['on'](_0x3663('0x10'),(_0x57c397,_0x39a47e)=>{this[_0x3663('0x4')](_0x39a47e);}),this['_revisions']['on'](_0x3663('0x13'),(_0x2c8e19,_0x153000)=>{this[_0x3663('0xe')](_0x153000);});}get[_0x3663('0x1f')](){return this[_0x3663('0x19')][_0x3663('0x12')](_0x532663=>_0x532663['revisionViews'][_0x3663('0x12')](_0x4f1840=>_0x4f1840))['flat']();}[_0x3663('0x3')](_0x1682b8){for(const _0x249e3c of this['revisionViews'])_0x1682b8&&_0x1682b8['id']===_0x249e3c['id']?_0x249e3c[_0x3663('0x7')]():_0x249e3c[_0x3663('0x1a')]();}['highlightRevisions'](_0x30477a){for(const _0x4eabe3 of this[_0x3663('0x1f')])_0x30477a[_0x3663('0x2')](({id:_0x4f8e4b})=>_0x4f8e4b===_0x4eabe3['id'])?_0x4eabe3[_0x3663('0x18')]():_0x4eabe3[_0x3663('0x0')]();}[_0x3663('0x4')](_0x2c8864){const _0x76fc49=_0x67df5f(_0x2c8864['createdAt'],this[_0x3663('0x15')][_0x3663('0x16')])[_0x3663('0x1e')];let _0x21d1bd=this['timePeriodViews'][_0x3663('0xb')](0x0);_0x21d1bd&&_0x21d1bd[_0x3663('0x1e')]['getTime']()===_0x76fc49[_0x3663('0x1c')]()||(_0x21d1bd=new _0x10ed48(this[_0x3663('0x15')],_0x76fc49,this[_0x3663('0x22')]),this[_0x3663('0x19')][_0x3663('0x10')](_0x21d1bd)),_0x21d1bd['addRevision'](_0x2c8864);}[_0x3663('0xe')](_0x23bf17){const _0x29aa6c=_0x67df5f(_0x23bf17[_0x3663('0x23')],this[_0x3663('0x15')][_0x3663('0x16')])['startDate'];this[_0x3663('0xc')](_0x29aa6c)[_0x3663('0x5')](_0x23bf17);}[_0x3663('0xc')](_0x35eff2){return this[_0x3663('0x19')][_0x3663('0x14')](_0x559e6c=>_0x559e6c[_0x3663('0x1e')]['getTime']()===_0x35eff2[_0x3663('0x1c')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5275=['toRelativeCalendar','hasSame','monthLong','toJSDate','startOf','weekdayLong','year','fromJSDate','day','local','week','month'];(function(_0x8c6111,_0x527512){const _0x1a7e6c=function(_0x36c37c){while(--_0x36c37c){_0x8c6111['push'](_0x8c6111['shift']());}};_0x1a7e6c(++_0x527512);}(_0x5275,0x88));const _0x1a7e=function(_0x8c6111,_0x527512){_0x8c6111=_0x8c6111-0x0;let _0x1a7e6c=_0x5275[_0x8c6111];return _0x1a7e6c;};import{DateTime as _0x28f165}from'luxon';export function getDateTimePeriodInfo(_0x5a0be5,_0x3a99e0){const _0x295a5a=_0x28f165[_0x1a7e('0x3')](_0x5a0be5)['setLocale'](_0x3a99e0),_0x3aecc3=_0x28f165[_0x1a7e('0x5')](),_0x50e4d1=_0x3aecc3['minus']({'days':0x1})[_0x1a7e('0x0')](_0x1a7e('0x4'));let _0x2b5930,_0x108491;return _0x295a5a[_0x1a7e('0x9')](_0x3aecc3,_0x1a7e('0x4'))?(_0x2b5930=_0x295a5a[_0x1a7e('0x0')](_0x1a7e('0x4'))[_0x1a7e('0xb')](),_0x108491=_0x295a5a[_0x1a7e('0x8')]()):_0x295a5a[_0x1a7e('0x9')](_0x50e4d1,_0x1a7e('0x4'))?(_0x2b5930=_0x50e4d1[_0x1a7e('0xb')](),_0x108491=_0x295a5a[_0x1a7e('0x8')]()):_0x295a5a[_0x1a7e('0x9')](_0x3aecc3,_0x1a7e('0x6'))?(_0x2b5930=_0x295a5a[_0x1a7e('0x0')](_0x1a7e('0x6'))[_0x1a7e('0xb')](),_0x108491=_0x295a5a[_0x1a7e('0x1')]||''):_0x295a5a[_0x1a7e('0x9')](_0x3aecc3,'year')?(_0x2b5930=_0x295a5a[_0x1a7e('0x0')](_0x1a7e('0x7'))[_0x1a7e('0xb')](),_0x108491=_0x295a5a[_0x1a7e('0xa')]||''):(_0x2b5930=_0x295a5a['startOf'](_0x1a7e('0x2'))[_0x1a7e('0xb')](),_0x108491=String(_0x295a5a[_0x1a7e('0x2')])),{'startDate':_0x2b5930,'localizedPeriodName':_0x108491};}
23
+ const _0x5e6e=['local','toRelativeCalendar','week','month','minus','weekdayLong','toJSDate','hasSame','monthLong','day','fromJSDate','startOf','year','setLocale'];(function(_0x5417b5,_0x5e6ea0){const _0x212caa=function(_0x1cae34){while(--_0x1cae34){_0x5417b5['push'](_0x5417b5['shift']());}};_0x212caa(++_0x5e6ea0);}(_0x5e6e,0x1c5));const _0x212c=function(_0x5417b5,_0x5e6ea0){_0x5417b5=_0x5417b5-0x0;let _0x212caa=_0x5e6e[_0x5417b5];return _0x212caa;};import{DateTime as _0x5ad687}from'luxon';export function getDateTimePeriodInfo(_0xc5158b,_0x40cc31){const _0x1bfc80=_0x5ad687[_0x212c('0x5')](_0xc5158b)[_0x212c('0x8')](_0x40cc31),_0xa8112d=_0x5ad687[_0x212c('0x9')](),_0x454441=_0xa8112d[_0x212c('0xd')]({'days':0x1})[_0x212c('0x6')]('day');let _0x58a63b,_0x153ebb;return _0x1bfc80[_0x212c('0x2')](_0xa8112d,_0x212c('0x4'))?(_0x58a63b=_0x1bfc80[_0x212c('0x6')](_0x212c('0x4'))[_0x212c('0x1')](),_0x153ebb=_0x1bfc80[_0x212c('0xa')]()):_0x1bfc80[_0x212c('0x2')](_0x454441,_0x212c('0x4'))?(_0x58a63b=_0x454441['toJSDate'](),_0x153ebb=_0x1bfc80[_0x212c('0xa')]()):_0x1bfc80[_0x212c('0x2')](_0xa8112d,_0x212c('0xb'))?(_0x58a63b=_0x1bfc80[_0x212c('0x6')](_0x212c('0xb'))['toJSDate'](),_0x153ebb=_0x1bfc80[_0x212c('0x0')]||''):_0x1bfc80['hasSame'](_0xa8112d,_0x212c('0x7'))?(_0x58a63b=_0x1bfc80[_0x212c('0x6')](_0x212c('0xc'))['toJSDate'](),_0x153ebb=_0x1bfc80[_0x212c('0x3')]||''):(_0x58a63b=_0x1bfc80[_0x212c('0x6')](_0x212c('0x7'))[_0x212c('0x1')](),_0x153ebb=String(_0x1bfc80[_0x212c('0x7')])),{'startDate':_0x58a63b,'localizedPeriodName':_0x153ebb};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1d39=['Suggested\x20by','div','name','setTemplate','add','ck-revision-change__label','author','ck-revision-change__','bindTemplate','span','element','type','Removed\x20by','focus','ck-annotation','set','_model'];(function(_0x442f7a,_0x1d3997){const _0x1cc687=function(_0x2108ad){while(--_0x2108ad){_0x442f7a['push'](_0x442f7a['shift']());}};_0x1cc687(++_0x1d3997);}(_0x1d39,0x182));const _0x1cc6=function(_0x442f7a,_0x1d3997){_0x442f7a=_0x442f7a-0x0;let _0x1cc687=_0x1d39[_0x442f7a];return _0x1cc687;};import{View as _0x508bc6}from'ckeditor5/src/ui';import{getTranslation as _0x47adcc}from'../../utils/common-translations';export default class Z extends _0x508bc6{constructor(_0x5cac6b,_0x3a0d85){super(_0x5cac6b),this[_0x1cc6('0x4')]=_0x3a0d85,this['changeId']=_0x3a0d85['id'];const _0x1304c8=this[_0x1cc6('0xd')],_0x591e84=_0x47adcc(_0x5cac6b,_0x3a0d85['data']['isSuggestion']?_0x1cc6('0x5'):_0x1cc6('0x9')==_0x3a0d85['type']?'Added\x20by':_0x1cc6('0x0'));this[_0x1cc6('0x3')](_0x1cc6('0x10'),_0x3a0d85[_0x1cc6('0x10')]),this[_0x1cc6('0x8')]({'tag':_0x1cc6('0x6'),'attributes':{'class':[_0x1cc6('0x2'),'ck-revision-change',_0x1304c8['to'](_0x1cc6('0x10'),_0x393547=>_0x1cc6('0xc')+_0x393547)],'tabindex':-0x1},'children':[{'tag':_0x1cc6('0xe'),'children':[{'tag':'span','attributes':{'class':[_0x1cc6('0xa')]},'children':[{'text':_0x591e84}]},{'text':'\x20'+_0x3a0d85[_0x1cc6('0xb')][_0x1cc6('0x7')]}]}]});}[_0x1cc6('0x1')](){this[_0x1cc6('0xf')][_0x1cc6('0x1')]();}}
23
+ const _0x1084=['ck-revision-change__','set','add','element','Added\x20by','span','author','data','bindTemplate','_model','Suggested\x20by','ck-revision-change','focus','Removed\x20by','type','div','changeId','setTemplate','isSuggestion'];(function(_0x41aa5b,_0x1084cf){const _0x65c202=function(_0x3aed38){while(--_0x3aed38){_0x41aa5b['push'](_0x41aa5b['shift']());}};_0x65c202(++_0x1084cf);}(_0x1084,0x178));const _0x65c2=function(_0x41aa5b,_0x1084cf){_0x41aa5b=_0x41aa5b-0x0;let _0x65c202=_0x1084[_0x41aa5b];return _0x65c202;};import{View as _0x4c99a7}from'ckeditor5/src/ui';import{getTranslation as _0x326285}from'../../utils/common-translations';export default class Z extends _0x4c99a7{constructor(_0x12aed4,_0x1014f2){super(_0x12aed4),this[_0x65c2('0xd')]=_0x1014f2,this[_0x65c2('0x1')]=_0x1014f2['id'];const _0x37a9bc=this[_0x65c2('0xc')],_0x49b294=_0x326285(_0x12aed4,_0x1014f2[_0x65c2('0xb')][_0x65c2('0x3')]?_0x65c2('0xe'):_0x65c2('0x6')==_0x1014f2[_0x65c2('0x12')]?_0x65c2('0x8'):_0x65c2('0x11'));this[_0x65c2('0x5')](_0x65c2('0x12'),_0x1014f2['type']),this[_0x65c2('0x2')]({'tag':_0x65c2('0x0'),'attributes':{'class':['ck-annotation',_0x65c2('0xf'),_0x37a9bc['to']('type',_0xfa7473=>_0x65c2('0x4')+_0xfa7473)],'tabindex':-0x1},'children':[{'tag':_0x65c2('0x9'),'children':[{'tag':_0x65c2('0x9'),'attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x49b294}]},{'text':'\x20'+_0x1014f2[_0x65c2('0xa')]['name']}]}]});}[_0x65c2('0x10')](){this[_0x65c2('0x7')][_0x65c2('0x10')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4499=['ck-revision-history-ui','ck-revision-history-ui__changes-navigation__navigation','isReady','NUMBER_OF_CHANGES','isBackwardNavigationEnabled','setTemplate','_statusText','div','bind','isNavigationMode','bindTemplate','isEnabled','Total','Show\x20previous\x20change','isForwardNavigationEnabled','forward','ck-revision-history-ui__changes-navigation__label','X_OF_Y_CHANGES','currentChangeNumber','set','numberOfChanges','span','execute','fire','ck-revision-history-ui__changes-navigation','_isStatusLabelVisible','Loading...','EDIT_X_OF_Y_REVISIONS','backward','No\x20changes','ck-revision-history-ui__changes-navigation__wrapper'];(function(_0x1c70a6,_0x449920){const _0x501b3c=function(_0x2cd742){while(--_0x2cd742){_0x1c70a6['push'](_0x1c70a6['shift']());}};_0x501b3c(++_0x449920);}(_0x4499,0xdb));const _0x501b=function(_0x1c70a6,_0x449920){_0x1c70a6=_0x1c70a6-0x0;let _0x501b3c=_0x4499[_0x1c70a6];return _0x501b3c;};import{View as _0x42f496,ButtonView as _0xbb645f,ToolbarSeparatorView as _0x35d84e}from'ckeditor5/src/ui';import{getTranslation as _0x2edfb8}from'../../utils/common-translations';import _0x2a967b from'../../../theme/icons/arrow-up.svg';import _0x36ba16 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x42f496{constructor(_0x1bc044){super(_0x1bc044);const _0x346328=this[_0x501b('0x8')],_0x5448ce=new _0xbb645f(_0x1bc044),_0x2727df=new _0xbb645f(_0x1bc044);this[_0x501b('0x11')](_0x501b('0x7'),!0x1),this[_0x501b('0x11')](_0x501b('0x0'),!0x1),this[_0x501b('0x11')](_0x501b('0x10'),0x0),this['set'](_0x501b('0x12'),0x0),this['set'](_0x501b('0xc'),!0x1),this[_0x501b('0x11')](_0x501b('0x2'),!0x1),this['bind'](_0x501b('0x17'))['to'](this,_0x501b('0x0'),this,_0x501b('0x12'),(_0x523be9,_0x4574d5)=>_0x523be9&&_0x4574d5>0x0),this[_0x501b('0x6')](_0x501b('0x4'))['to'](this,_0x501b('0x0'),this,_0x501b('0x10'),this,_0x501b('0x12'),this,'isNavigationMode',(_0x2500e1,_0x4dfe98,_0x41dc24,_0x338103)=>{if(!_0x2500e1)return _0x2edfb8(_0x1bc044,_0x501b('0x18'));if(!_0x41dc24)return _0x2edfb8(_0x1bc044,_0x501b('0x1b'));const _0x43878f=_0x2edfb8(_0x1bc044,_0x501b('0x1'),_0x41dc24);return _0x338103?_0x2edfb8(_0x1bc044,_0x501b('0xf'),[_0x4dfe98+0x1,_0x41dc24]):_0x43878f;}),_0x5448ce[_0x501b('0x11')]({'label':_0x2edfb8(_0x1bc044,_0x501b('0xb')),'tooltip':!0x0,'icon':_0x2a967b}),_0x2727df[_0x501b('0x11')]({'label':_0x2edfb8(_0x1bc044,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x36ba16}),_0x5448ce[_0x501b('0x6')](_0x501b('0x9'))['to'](this,_0x501b('0x2')),_0x2727df[_0x501b('0x6')](_0x501b('0x9'))['to'](this,_0x501b('0xc')),_0x5448ce['on'](_0x501b('0x14'),()=>this[_0x501b('0x15')](_0x501b('0x14'),_0x501b('0x1a'))),_0x2727df['on'](_0x501b('0x14'),()=>this[_0x501b('0x15')]('execute',_0x501b('0xd'))),this[_0x501b('0x3')]({'tag':_0x501b('0x5'),'attributes':{'class':['ck',_0x501b('0x1d'),_0x501b('0x16')]},'children':[{'tag':_0x501b('0x13'),'attributes':{'class':[_0x501b('0x1c')]},'children':[{'tag':_0x501b('0x13'),'attributes':{'class':[_0x501b('0xe'),_0x346328['if'](_0x501b('0x17'),'ck-hidden',_0x343306=>!_0x343306)]},'children':[{'text':_0x346328['to'](_0x501b('0x7'),_0x9d6007=>_0x9d6007?_0x2edfb8(_0x1bc044,_0x501b('0x19'))+':\x20':_0x2edfb8(_0x1bc044,_0x501b('0xa'))+':\x20')}]},{'text':_0x346328['to'](_0x501b('0x4'))}]},new _0x35d84e(),{'tag':_0x501b('0x5'),'attributes':{'class':[_0x501b('0x1e')]},'children':[_0x5448ce,_0x2727df]}]});}}
23
+ const _0x38c6=['ck-revision-history-ui__changes-navigation','ck-hidden','No\x20changes','div','bindTemplate','currentChangeNumber','forward','X_OF_Y_CHANGES','ck-revision-history-ui__changes-navigation__navigation','Show\x20previous\x20change','isReady','isNavigationMode','NUMBER_OF_CHANGES','bind','ck-revision-history-ui__changes-navigation__wrapper','EDIT_X_OF_Y_REVISIONS','set','isEnabled','backward','execute','ck-revision-history-ui__changes-navigation__label','isForwardNavigationEnabled','fire','_statusText','Total','numberOfChanges','isBackwardNavigationEnabled','setTemplate'];(function(_0x5540c0,_0x38c61c){const _0x406022=function(_0x40a1ad){while(--_0x40a1ad){_0x5540c0['push'](_0x5540c0['shift']());}};_0x406022(++_0x38c61c);}(_0x38c6,0x1ca));const _0x4060=function(_0x5540c0,_0x38c61c){_0x5540c0=_0x5540c0-0x0;let _0x406022=_0x38c6[_0x5540c0];return _0x406022;};import{View as _0xdb1c82,ButtonView as _0x597267,ToolbarSeparatorView as _0x32242f}from'ckeditor5/src/ui';import{getTranslation as _0x91a4bb}from'../../utils/common-translations';import _0xe16ed5 from'../../../theme/icons/arrow-up.svg';import _0x8a551e from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0xdb1c82{constructor(_0x21513a){super(_0x21513a);const _0x51465c=this[_0x4060('0x16')],_0x2d5bf7=new _0x597267(_0x21513a),_0xf9ded3=new _0x597267(_0x21513a);this[_0x4060('0x6')]('isNavigationMode',!0x1),this[_0x4060('0x6')](_0x4060('0x0'),!0x1),this['set'](_0x4060('0x17'),0x0),this[_0x4060('0x6')](_0x4060('0xf'),0x0),this[_0x4060('0x6')](_0x4060('0xb'),!0x1),this['set'](_0x4060('0x10'),!0x1),this[_0x4060('0x3')]('_isStatusLabelVisible')['to'](this,_0x4060('0x0'),this,_0x4060('0xf'),(_0x2891bc,_0x1cfecc)=>_0x2891bc&&_0x1cfecc>0x0),this[_0x4060('0x3')](_0x4060('0xd'))['to'](this,'isReady',this,_0x4060('0x17'),this,'numberOfChanges',this,_0x4060('0x1'),(_0x4d3165,_0x29c17f,_0xfd7290,_0xac32f3)=>{if(!_0x4d3165)return _0x91a4bb(_0x21513a,'Loading...');if(!_0xfd7290)return _0x91a4bb(_0x21513a,_0x4060('0x14'));const _0x27ebec=_0x91a4bb(_0x21513a,_0x4060('0x2'),_0xfd7290);return _0xac32f3?_0x91a4bb(_0x21513a,_0x4060('0x19'),[_0x29c17f+0x1,_0xfd7290]):_0x27ebec;}),_0x2d5bf7[_0x4060('0x6')]({'label':_0x91a4bb(_0x21513a,_0x4060('0x1b')),'tooltip':!0x0,'icon':_0xe16ed5}),_0xf9ded3[_0x4060('0x6')]({'label':_0x91a4bb(_0x21513a,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x8a551e}),_0x2d5bf7['bind']('isEnabled')['to'](this,_0x4060('0x10')),_0xf9ded3['bind'](_0x4060('0x7'))['to'](this,'isForwardNavigationEnabled'),_0x2d5bf7['on']('execute',()=>this[_0x4060('0xc')]('execute',_0x4060('0x8'))),_0xf9ded3['on'](_0x4060('0x9'),()=>this[_0x4060('0xc')](_0x4060('0x9'),_0x4060('0x18'))),this[_0x4060('0x11')]({'tag':_0x4060('0x15'),'attributes':{'class':['ck','ck-revision-history-ui',_0x4060('0x12')]},'children':[{'tag':'span','attributes':{'class':[_0x4060('0x4')]},'children':[{'tag':'span','attributes':{'class':[_0x4060('0xa'),_0x51465c['if']('_isStatusLabelVisible',_0x4060('0x13'),_0x28f52b=>!_0x28f52b)]},'children':[{'text':_0x51465c['to']('isNavigationMode',_0x1e3566=>_0x1e3566?_0x91a4bb(_0x21513a,_0x4060('0x5'))+':\x20':_0x91a4bb(_0x21513a,_0x4060('0xe'))+':\x20')}]},{'text':_0x51465c['to'](_0x4060('0xd'))}]},new _0x32242f(),{'tag':_0x4060('0x15'),'attributes':{'class':[_0x4060('0x1a')]},'children':[_0x2d5bf7,_0xf9ded3]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3026=['RevisionViewerLoadingOverlay','roots','removeClass','pluginName','editor','show','addClass','change','document','view','editing'];(function(_0xfd8021,_0x302654){const _0x366f53=function(_0x4c8c42){while(--_0x4c8c42){_0xfd8021['push'](_0xfd8021['shift']());}};_0x366f53(++_0x302654);}(_0x3026,0xa6));const _0x366f=function(_0xfd8021,_0x302654){_0xfd8021=_0xfd8021-0x0;let _0x366f53=_0x3026[_0xfd8021];return _0x366f53;};import{Plugin as _0x86433b}from'ckeditor5/src/core';const oe='ck-editor__editable__loading-overlay';import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x86433b{static get[_0x366f('0x2')](){return _0x366f('0xa');}[_0x366f('0x4')](){const _0x5b097a=this[_0x366f('0x3')][_0x366f('0x9')][_0x366f('0x8')];_0x5b097a['change'](_0x45e774=>{for(const _0x35e291 of _0x5b097a[_0x366f('0x7')][_0x366f('0x0')])_0x45e774[_0x366f('0x5')](oe,_0x35e291);});}['hide'](){const _0x323cbb=this[_0x366f('0x3')][_0x366f('0x9')]['view'];_0x323cbb[_0x366f('0x6')](_0x205bf6=>{for(const _0x483759 of _0x323cbb[_0x366f('0x7')][_0x366f('0x0')])_0x205bf6[_0x366f('0x1')](oe,_0x483759);});}}
23
+ const _0x5aea=['ck-editor__editable__loading-overlay','view','roots','document','editing','pluginName','change','hide','editor'];(function(_0x388f8f,_0x5aea1c){const _0x48ba5f=function(_0x206e03){while(--_0x206e03){_0x388f8f['push'](_0x388f8f['shift']());}};_0x48ba5f(++_0x5aea1c);}(_0x5aea,0x151));const _0x48ba=function(_0x388f8f,_0x5aea1c){_0x388f8f=_0x388f8f-0x0;let _0x48ba5f=_0x5aea[_0x388f8f];return _0x48ba5f;};import{Plugin as _0x5ad4a8}from'ckeditor5/src/core';const oe=_0x48ba('0x5');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x5ad4a8{static get[_0x48ba('0x1')](){return'RevisionViewerLoadingOverlay';}['show'](){const _0x29e004=this[_0x48ba('0x4')][_0x48ba('0x0')][_0x48ba('0x6')];_0x29e004[_0x48ba('0x2')](_0x46fa35=>{for(const _0x4180e1 of _0x29e004[_0x48ba('0x8')][_0x48ba('0x7')])_0x46fa35['addClass'](oe,_0x4180e1);});}[_0x48ba('0x3')](){const _0x49a589=this[_0x48ba('0x4')][_0x48ba('0x0')][_0x48ba('0x6')];_0x49a589[_0x48ba('0x2')](_0x11bb1a=>{for(const _0x1cccce of _0x49a589[_0x48ba('0x8')]['roots'])_0x11bb1a['removeClass'](oe,_0x1cccce);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2907=['set','show','add','showNextChange','init','restoreRevision','revisionHistory','execute','commands','exitToEditing','plugins','isEnabled','config','isForwardNavigationEnabled','listenTo','forward','hide','Restore\x20this\x20revision','isReady','bind','numberOfChanges','componentFactory','changesNavigation','pluginName','get','Back\x20to\x20editing'];(function(_0x3b1652,_0x29075a){const _0x5e08c5=function(_0x35a70d){while(--_0x35a70d){_0x3b1652['push'](_0x3b1652['shift']());}};_0x5e08c5(++_0x29075a);}(_0x2907,0x15c));const _0x5e08=function(_0x3b1652,_0x29075a){_0x3b1652=_0x3b1652-0x0;let _0x5e08c5=_0x2907[_0x3b1652];return _0x5e08c5;};import{Plugin as _0x3cf914}from'ckeditor5/src/core';import{ButtonView as _0x20d993}from'ckeditor5/src/ui';import _0x538901 from'./changesnavigationview';import _0x513e7e from'./../../revisionviewer';import _0x2f8e77 from'./revisionviewerloadingoverlay';import{getTranslation as _0xbd42b4}from'../../utils/common-translations';import _0x2ab00a from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x3cf914{static get[_0x5e08('0xd')](){return'RevisionViewerUI';}static get['requires'](){return[_0x513e7e,_0x2f8e77];}[_0x5e08('0x14')](){const _0x1b224a=this['editor'],_0x549f5a=_0x1b224a[_0x5e08('0x0')]['get'](_0x513e7e),_0x5d60e2=_0x1b224a['plugins']['get'](_0x2f8e77);_0x1b224a['ui'][_0x5e08('0xb')][_0x5e08('0x12')](_0x5e08('0x19'),_0x9a5e42=>{const _0x1a2575=new _0x20d993(_0x9a5e42);return _0x1a2575[_0x5e08('0x10')]({'label':_0xbd42b4(_0x9a5e42,_0x5e08('0xf')),'icon':_0x2ab00a,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this[_0x5e08('0x4')](_0x1a2575,_0x5e08('0x17'),()=>{_0x1b224a[_0x5e08('0x2')][_0x5e08('0xe')](_0x5e08('0x16'))['closeRevisionViewerCallback']();}),_0x1a2575;}),_0x1b224a['ui'][_0x5e08('0xb')][_0x5e08('0x12')]('restoreRevision',_0x339b57=>{const _0x47b05c=new _0x20d993(_0x339b57);return _0x47b05c[_0x5e08('0x10')]({'label':_0xbd42b4(_0x339b57,_0x5e08('0x7')),'withText':!0x0,'tooltip':!0x0}),_0x47b05c['bind'](_0x5e08('0x1'))['to'](_0x1b224a[_0x5e08('0x18')][_0x5e08('0xe')](_0x5e08('0x15'))),this[_0x5e08('0x4')](_0x47b05c,_0x5e08('0x17'),()=>_0x1b224a['execute'](_0x5e08('0x15'))),_0x47b05c;}),_0x1b224a['ui'][_0x5e08('0xb')]['add'](_0x5e08('0xc'),_0x19df19=>{const _0x37c084=new _0x538901(_0x19df19),_0x1f0342=_0x1b224a['commands'][_0x5e08('0xe')]('showPreviousChange'),_0x50271b=_0x1b224a[_0x5e08('0x18')]['get'](_0x5e08('0x13'));return _0x37c084[_0x5e08('0x9')]('isBackwardNavigationEnabled')['to'](_0x1f0342,_0x5e08('0x1')),_0x37c084[_0x5e08('0x9')](_0x5e08('0x3'))['to'](_0x50271b,'isEnabled'),_0x37c084[_0x5e08('0x9')](_0x5e08('0x8'),'currentChangeNumber',_0x5e08('0xa'),'isNavigationMode')['to'](_0x549f5a),this['listenTo'](_0x37c084,_0x5e08('0x17'),(_0x1204ca,_0x462aac)=>{_0x1b224a[_0x5e08('0x17')](_0x5e08('0x5')===_0x462aac?_0x5e08('0x13'):'showPreviousChange');}),_0x37c084;}),_0x5d60e2[_0x5e08('0x11')](),_0x549f5a['on']('change:isReady',(_0x2e6a4f,_0x5e7fea,_0x577bdf)=>{_0x577bdf?_0x5d60e2[_0x5e08('0x6')]():_0x5d60e2[_0x5e08('0x11')]();});}}
23
+ const _0x5469=['set','init','execute','closeRevisionViewerCallback','isForwardNavigationEnabled','ck-revision-history-ui__back-to-editing','show','listenTo','change:isReady','get','isNavigationMode','pluginName','revisionHistory','commands','hide','add','changesNavigation','editor','Restore\x20this\x20revision','RevisionViewerUI','componentFactory','requires','isEnabled','plugins','restoreRevision','isReady','forward','bind','isBackwardNavigationEnabled','currentChangeNumber'];(function(_0xdc7b9a,_0x54690b){const _0x220249=function(_0x4898c3){while(--_0x4898c3){_0xdc7b9a['push'](_0xdc7b9a['shift']());}};_0x220249(++_0x54690b);}(_0x5469,0x9d));const _0x2202=function(_0xdc7b9a,_0x54690b){_0xdc7b9a=_0xdc7b9a-0x0;let _0x220249=_0x5469[_0xdc7b9a];return _0x220249;};import{Plugin as _0x5af6db}from'ckeditor5/src/core';import{ButtonView as _0x24668a}from'ckeditor5/src/ui';import _0x2d6621 from'./changesnavigationview';import _0x55b7b6 from'./../../revisionviewer';import _0x2c4264 from'./revisionviewerloadingoverlay';import{getTranslation as _0x44a296}from'../../utils/common-translations';import _0x2d9dbc from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x5af6db{static get[_0x2202('0x4')](){return _0x2202('0xc');}static get[_0x2202('0xe')](){return[_0x55b7b6,_0x2c4264];}[_0x2202('0x18')](){const _0x2c9225=this[_0x2202('0xa')],_0x59638f=_0x2c9225[_0x2202('0x10')][_0x2202('0x2')](_0x55b7b6),_0x2ebd57=_0x2c9225[_0x2202('0x10')][_0x2202('0x2')](_0x2c4264);_0x2c9225['ui'][_0x2202('0xd')][_0x2202('0x8')]('exitToEditing',_0x23875f=>{const _0x26f80c=new _0x24668a(_0x23875f);return _0x26f80c[_0x2202('0x17')]({'label':_0x44a296(_0x23875f,'Back\x20to\x20editing'),'icon':_0x2d9dbc,'withText':!0x0,'tooltip':!0x0,'class':_0x2202('0x1c')}),this[_0x2202('0x0')](_0x26f80c,'execute',()=>{_0x2c9225['config']['get'](_0x2202('0x5'))[_0x2202('0x1a')]();}),_0x26f80c;}),_0x2c9225['ui']['componentFactory'][_0x2202('0x8')](_0x2202('0x11'),_0x2c1425=>{const _0x299be0=new _0x24668a(_0x2c1425);return _0x299be0[_0x2202('0x17')]({'label':_0x44a296(_0x2c1425,_0x2202('0xb')),'withText':!0x0,'tooltip':!0x0}),_0x299be0[_0x2202('0x14')](_0x2202('0xf'))['to'](_0x2c9225[_0x2202('0x6')][_0x2202('0x2')](_0x2202('0x11'))),this[_0x2202('0x0')](_0x299be0,_0x2202('0x19'),()=>_0x2c9225['execute']('restoreRevision')),_0x299be0;}),_0x2c9225['ui'][_0x2202('0xd')]['add'](_0x2202('0x9'),_0x3681ad=>{const _0x16d1ba=new _0x2d6621(_0x3681ad),_0x294bcf=_0x2c9225['commands'][_0x2202('0x2')]('showPreviousChange'),_0x134ddc=_0x2c9225[_0x2202('0x6')][_0x2202('0x2')]('showNextChange');return _0x16d1ba[_0x2202('0x14')](_0x2202('0x15'))['to'](_0x294bcf,'isEnabled'),_0x16d1ba[_0x2202('0x14')](_0x2202('0x1b'))['to'](_0x134ddc,_0x2202('0xf')),_0x16d1ba['bind'](_0x2202('0x12'),_0x2202('0x16'),'numberOfChanges',_0x2202('0x3'))['to'](_0x59638f),this[_0x2202('0x0')](_0x16d1ba,_0x2202('0x19'),(_0x109348,_0x302b46)=>{_0x2c9225[_0x2202('0x19')](_0x2202('0x13')===_0x302b46?'showNextChange':'showPreviousChange');}),_0x16d1ba;}),_0x2ebd57[_0x2202('0x1d')](),_0x59638f['on'](_0x2202('0x1'),(_0xcdda28,_0x2c979d,_0x1bda7e)=>{_0x1bda7e?_0x2ebd57[_0x2202('0x7')]():_0x2ebd57[_0x2202('0x1d')]();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x53d573,_0x449ee3,_0x3890e2){const t=_0x53d573['t'];switch(_0x449ee3){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'},_0x3890e2);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3890e2);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 _0x449ee3;}}
23
+ export function getTranslation(_0x2ef246,_0x17a9ae,_0x19367a){const t=_0x2ef246['t'];switch(_0x17a9ae){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'},_0x19367a);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x19367a);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 _0x17a9ae;}}