@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230811.0 → 0.0.0-nightly-20230812.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 _0x9c68=['add','saveRevision','RevisionTracker','execute','focus','editor','Save\x20current\x20revision','remove','change:isOpen','children','set','requires','Revision\x20history','isEnabled','componentFactory','items','revisionHistory','view','plugins','cancel','showRevisionViewerCallback','get','init','editing','bind','isReadOnly','isOpen','pluginName','config','isReady','reset','render','RevisionHistoryUI','addMany','Open\x20revision\x20history'];(function(_0x32bfa4,_0x9c6898){const _0x21c82e=function(_0x5cdba7){while(--_0x5cdba7){_0x32bfa4['push'](_0x32bfa4['shift']());}};_0x21c82e(++_0x9c6898);}(_0x9c68,0x139));const _0x21c8=function(_0x32bfa4,_0x9c6898){_0x32bfa4=_0x32bfa4-0x0;let _0x21c82e=_0x9c68[_0x32bfa4];return _0x21c82e;};import{Plugin as _0x3ed409}from'ckeditor5/src/core';import{ListView as _0xd8e4ad,ListItemView as _0xc8e1cc,ButtonView as _0x2905ad,createDropdown as _0x29ed60}from'ckeditor5/src/ui';import _0x327c72 from'../../revisiontracker';import _0x3d96b1 from'./revisionhistorysaverevisionformview';import _0x8c2b26 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x38ff72}from'../../utils/common-translations';export default class u extends _0x3ed409{static get[_0x21c8('0x1d')](){return _0x21c8('0x22');}static get[_0x21c8('0xd')](){return[_0x327c72];}[_0x21c8('0x18')](){const _0x10c49b=this[_0x21c8('0x7')],_0x50e164=_0x10c49b[_0x21c8('0x14')][_0x21c8('0x17')](_0x21c8('0x4'));_0x10c49b['ui'][_0x21c8('0x10')]['add'](_0x21c8('0x12'),_0x22a1d0=>{const _0x1b03bc=_0x29ed60(_0x22a1d0),_0x3385d6=_0x1b03bc['panelView'][_0x21c8('0xb')],_0x1832dd=new _0xd8e4ad(_0x22a1d0),_0x17dfd1=new _0xc8e1cc(_0x22a1d0),_0x5d8bd0=new _0x2905ad(_0x22a1d0),_0xb498c5=new _0xc8e1cc(_0x22a1d0),_0x13a9cb=new _0x2905ad(_0x22a1d0),_0x1f31eb=new _0x3d96b1(_0x22a1d0);function _0x5a33bc(){_0x3385d6['length']&&_0x3385d6[_0x21c8('0x9')](0x0),_0x3385d6['add'](_0x1832dd);}function _0x594892(){_0x1b03bc[_0x21c8('0x1c')]=!0x1,_0x10c49b[_0x21c8('0x19')][_0x21c8('0x13')][_0x21c8('0x6')]();}return _0x1b03bc[_0x21c8('0x1a')](_0x21c8('0xf'))['to'](_0x50e164,'isReady',_0x50e164,_0x21c8('0xf'),_0x10c49b,'isReadOnly',(_0x5b4870,_0xd117c7,_0x316dfc)=>_0x5b4870&&_0xd117c7&&!_0x316dfc),_0x1b03bc['buttonView'][_0x21c8('0xc')]({'icon':_0x8c2b26,'label':_0x38ff72(_0x22a1d0,_0x21c8('0xe')),'tooltip':!0x0}),_0x5d8bd0[_0x21c8('0xc')]({'label':_0x38ff72(_0x22a1d0,_0x21c8('0x8')),'withText':!0x0}),_0x5d8bd0[_0x21c8('0x1a')](_0x21c8('0xf'))['to'](_0x50e164,_0x21c8('0x1f'),_0x50e164,_0x21c8('0xf'),_0x10c49b,_0x21c8('0x1b'),(_0x26132e,_0x1589ca,_0x2f6705)=>_0x26132e&&_0x1589ca&&!_0x2f6705),_0x5d8bd0['on'](_0x21c8('0x5'),()=>function(){_0x3385d6['length']&&_0x3385d6[_0x21c8('0x9')](0x0),(_0x1f31eb[_0x21c8('0x20')](),_0x3385d6[_0x21c8('0x2')](_0x1f31eb),_0x1f31eb['focus']());}()),_0x13a9cb[_0x21c8('0xc')]({'label':_0x38ff72(_0x22a1d0,_0x21c8('0x1')),'withText':!0x0}),_0x13a9cb[_0x21c8('0x1a')]('isEnabled')['to'](_0x50e164,_0x21c8('0x1f'),_0x10c49b,_0x21c8('0x1b'),(_0x20dc09,_0x1e9178)=>_0x20dc09&&!_0x1e9178),_0x13a9cb['on'](_0x21c8('0x5'),()=>{_0x10c49b[_0x21c8('0x1e')][_0x21c8('0x17')](_0x21c8('0x12'))[_0x21c8('0x16')](),_0x594892();}),_0x17dfd1[_0x21c8('0xb')][_0x21c8('0x2')](_0x5d8bd0),_0xb498c5[_0x21c8('0xb')][_0x21c8('0x2')](_0x13a9cb),_0x1832dd[_0x21c8('0x11')][_0x21c8('0x0')]([_0x17dfd1,_0xb498c5]),_0x1b03bc['on'](_0x21c8('0xa'),()=>_0x5a33bc()),_0x1f31eb['saveButtonView'][_0x21c8('0x1a')](_0x21c8('0xf'))['to'](_0x50e164,_0x21c8('0x1f'),_0x50e164,_0x21c8('0xf'),_0x10c49b,_0x21c8('0x1b'),(_0x5b8d15,_0xd1771,_0x33a276)=>_0x5b8d15&&_0xd1771&&!_0x33a276),_0x1f31eb['on']('submit',()=>(_0x10c49b[_0x21c8('0x14')]['get'](_0x327c72)[_0x21c8('0x3')]({'name':_0x1f31eb['revisionName']}),void _0x594892())),_0x1f31eb['on'](_0x21c8('0x15'),()=>_0x5a33bc()),_0x1f31eb[_0x21c8('0x21')](),_0x5a33bc(),_0x1b03bc;});}}
23
+ const _0x290d=['isOpen','view','isReady','add','set','get','addMany','pluginName','remove','cancel','saveRevision','panelView','length','buttonView','revisionHistory','bind','saveButtonView','isReadOnly','execute','RevisionTracker','config','componentFactory','change:isOpen','children','plugins','focus','isEnabled','showRevisionViewerCallback'];(function(_0x65f520,_0x290d98){const _0x2ea347=function(_0x58aaff){while(--_0x58aaff){_0x65f520['push'](_0x65f520['shift']());}};_0x2ea347(++_0x290d98);}(_0x290d,0x7e));const _0x2ea3=function(_0x65f520,_0x290d98){_0x65f520=_0x65f520-0x0;let _0x2ea347=_0x290d[_0x65f520];return _0x2ea347;};import{Plugin as _0x26274c}from'ckeditor5/src/core';import{ListView as _0x2f0927,ListItemView as _0x517b17,ButtonView as _0x2cefef,createDropdown as _0x2a6ecc}from'ckeditor5/src/ui';import _0x565edc from'../../revisiontracker';import _0x37dc1f from'./revisionhistorysaverevisionformview';import _0x424f12 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x55b92e}from'../../utils/common-translations';export default class u extends _0x26274c{static get[_0x2ea3('0x15')](){return'RevisionHistoryUI';}static get['requires'](){return[_0x565edc];}['init'](){const _0x24bce9=this['editor'],_0x38db1c=_0x24bce9[_0x2ea3('0xa')][_0x2ea3('0x13')](_0x2ea3('0x5'));_0x24bce9['ui'][_0x2ea3('0x7')][_0x2ea3('0x11')](_0x2ea3('0x0'),_0x34c20a=>{const _0xb26c56=_0x2a6ecc(_0x34c20a),_0x248af2=_0xb26c56[_0x2ea3('0x19')][_0x2ea3('0x9')],_0x1261e9=new _0x2f0927(_0x34c20a),_0x1cb0f9=new _0x517b17(_0x34c20a),_0x4fc8a6=new _0x2cefef(_0x34c20a),_0x52bd8f=new _0x517b17(_0x34c20a),_0x3820d6=new _0x2cefef(_0x34c20a),_0x2e92be=new _0x37dc1f(_0x34c20a);function _0x24a443(){_0x248af2[_0x2ea3('0x1a')]&&_0x248af2[_0x2ea3('0x16')](0x0),_0x248af2[_0x2ea3('0x11')](_0x1261e9);}function _0xa5b8ea(){_0xb26c56[_0x2ea3('0xe')]=!0x1,_0x24bce9['editing'][_0x2ea3('0xf')][_0x2ea3('0xb')]();}return _0xb26c56['bind']('isEnabled')['to'](_0x38db1c,_0x2ea3('0x10'),_0x38db1c,_0x2ea3('0xc'),_0x24bce9,_0x2ea3('0x3'),(_0x3e24d2,_0x47d3db,_0x105634)=>_0x3e24d2&&_0x47d3db&&!_0x105634),_0xb26c56[_0x2ea3('0x1b')][_0x2ea3('0x12')]({'icon':_0x424f12,'label':_0x55b92e(_0x34c20a,'Revision\x20history'),'tooltip':!0x0}),_0x4fc8a6['set']({'label':_0x55b92e(_0x34c20a,'Save\x20current\x20revision'),'withText':!0x0}),_0x4fc8a6[_0x2ea3('0x1')]('isEnabled')['to'](_0x38db1c,'isReady',_0x38db1c,'isEnabled',_0x24bce9,'isReadOnly',(_0x229788,_0x51d533,_0x179ee7)=>_0x229788&&_0x51d533&&!_0x179ee7),_0x4fc8a6['on'](_0x2ea3('0x4'),()=>function(){_0x248af2[_0x2ea3('0x1a')]&&_0x248af2[_0x2ea3('0x16')](0x0),(_0x2e92be['reset'](),_0x248af2[_0x2ea3('0x11')](_0x2e92be),_0x2e92be[_0x2ea3('0xb')]());}()),_0x3820d6['set']({'label':_0x55b92e(_0x34c20a,'Open\x20revision\x20history'),'withText':!0x0}),_0x3820d6['bind'](_0x2ea3('0xc'))['to'](_0x38db1c,_0x2ea3('0x10'),_0x24bce9,_0x2ea3('0x3'),(_0x23be89,_0x2bdc4d)=>_0x23be89&&!_0x2bdc4d),_0x3820d6['on'](_0x2ea3('0x4'),()=>{_0x24bce9[_0x2ea3('0x6')][_0x2ea3('0x13')](_0x2ea3('0x0'))[_0x2ea3('0xd')](),_0xa5b8ea();}),_0x1cb0f9[_0x2ea3('0x9')]['add'](_0x4fc8a6),_0x52bd8f[_0x2ea3('0x9')][_0x2ea3('0x11')](_0x3820d6),_0x1261e9['items'][_0x2ea3('0x14')]([_0x1cb0f9,_0x52bd8f]),_0xb26c56['on'](_0x2ea3('0x8'),()=>_0x24a443()),_0x2e92be[_0x2ea3('0x2')][_0x2ea3('0x1')](_0x2ea3('0xc'))['to'](_0x38db1c,_0x2ea3('0x10'),_0x38db1c,_0x2ea3('0xc'),_0x24bce9,'isReadOnly',(_0x282da7,_0x2ffce3,_0x25b275)=>_0x282da7&&_0x2ffce3&&!_0x25b275),_0x2e92be['on']('submit',()=>(_0x24bce9['plugins'][_0x2ea3('0x13')](_0x565edc)[_0x2ea3('0x18')]({'name':_0x2e92be['revisionName']}),void _0xa5b8ea())),_0x2e92be['on'](_0x2ea3('0x17'),()=>_0x24a443()),_0x2e92be['render'](),_0x24a443(),_0xb26c56;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5294=['action','fieldView','element','add','_handleEditorDataReady','init','newRevisionId','highlightRevisions','selectRevision','defaultRevisionActions','compareAgainstSelected','isEnabled','_revisionViewer','_handleRevisionSelected','getRevisionsInDiff','revisionSetName','restoreRevision','revisionViews','revisionHistory.revisionActions','assign','_handleDiffChange','_revisionsRepository','name','select','map','editor','nameRevision','_createRevisionActions','compare','Name\x20this\x20revision','revisionHistory.viewerSidebarContainer','appendChild','repository','availableRevisionActions','destroy','Restore\x20this\x20revision','getEarlierVisibleRevision','length','_revisions','RevisionsSidebar','string','revisionHistory','diff','remove','pluginName','restoreRevisionCallback','_handleRevisionSetName','_sidebarView','config','get','getRevision','bind','getIndex','revisionSelected','isVisible','requires','locale','setName','plugins','focus'];(function(_0x50a845,_0x529489){const _0x19db8c=function(_0x1f0037){while(--_0x1f0037){_0x50a845['push'](_0x50a845['shift']());}};_0x19db8c(++_0x529489);}(_0x5294,0x1b7));const _0x19db=function(_0x50a845,_0x529489){_0x50a845=_0x50a845-0x0;let _0x19db8c=_0x5294[_0x50a845];return _0x19db8c;};import{Plugin as _0x26d475}from'ckeditor5/src/core';import _0x93fee0 from'./revisionssidebarview';import _0x4d2c0b from'../../revisionviewer';export default class w extends _0x26d475{static get[_0x19db('0x19')](){return _0x19db('0x14');}static get[_0x19db('0x24')](){return[_0x4d2c0b];}constructor(_0x22bbf8){super(_0x22bbf8),this['_revisionViewer']=_0x22bbf8[_0x19db('0x27')][_0x19db('0x1e')](_0x4d2c0b),this[_0x19db('0x2')]=this[_0x19db('0x35')][_0x19db('0xd')],this['_sidebarView']=null;}[_0x19db('0x2e')](){const _0x38d411=this[_0x19db('0x2')][_0x19db('0x13')],_0x507160=this[_0x19db('0x8')](),_0x43fe7d=this[_0x19db('0x6')]['config']['get'](_0x19db('0xb'));this['_sidebarView']=new _0x93fee0(this[_0x19db('0x6')][_0x19db('0x25')],_0x38d411,_0x507160),this['_sidebarView']['on'](_0x19db('0x22'),this[_0x19db('0x36')][_0x19db('0x20')](this)),this[_0x19db('0x1c')]['on'](_0x19db('0x38'),this[_0x19db('0x1b')]['bind'](this)),this[_0x19db('0x1c')][_0x19db('0x20')](_0x19db('0x34'))['to'](this['_revisionViewer']),this[_0x19db('0x1c')]['timePeriodViews']['on'](_0x19db('0x2c'),(_0x59840f,_0x2da804)=>{_0x2da804[_0x19db('0x3a')]['on'](_0x19db('0x2c'),(_0x30cf41,_0x491897)=>{_0x491897['bind'](_0x19db('0x34'),'isReady')['to'](this[_0x19db('0x35')]);});}),this[_0x19db('0x1c')]['render'](),this['listenTo'](this['editor']['data'],'ready',this['_handleEditorDataReady'][_0x19db('0x20')](this)),this['listenTo'](this[_0x19db('0x35')],'change:diff',this[_0x19db('0x1')]['bind'](this)),_0x43fe7d[_0x19db('0xc')](this[_0x19db('0x1c')][_0x19db('0x2b')]);}[_0x19db('0xf')](){this[_0x19db('0x1c')]['element'][_0x19db('0x18')](),this[_0x19db('0x1c')]['destroy']();}[_0x19db('0x2d')](){const _0x3099ab=this[_0x19db('0x2')][_0x19db('0x1f')](0x0);if(_0x3099ab){const _0xbf7103=this[_0x19db('0x2')]['getEarlierVisibleRevision'](_0x3099ab['id']);this[_0x19db('0x35')][_0x19db('0x9')](_0x3099ab,_0xbf7103);}}[_0x19db('0x36')](_0x2b961b,_0x1f431f){const _0x5246e1=this[_0x19db('0x2')][_0x19db('0x1f')](_0x1f431f['id']),_0x2ab339=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x5246e1['id']);this[_0x19db('0x35')][_0x19db('0x9')](_0x5246e1,_0x2ab339);}[_0x19db('0x1b')](_0x8ae698,_0x5a3b65){this['_revisionsRepository'][_0x19db('0x1f')](_0x5a3b65['id'])[_0x19db('0x26')](_0x5a3b65[_0x19db('0x3')]);}[_0x19db('0x1')](_0x3ed0fd,_0x475bba,_0x124054){const _0x1d0457=this['_revisionsRepository'][_0x19db('0x37')](_0x124054);_0x1d0457[_0x19db('0x12')]>0x2?(this[_0x19db('0x1c')][_0x19db('0x30')](_0x1d0457),this[_0x19db('0x1c')][_0x19db('0x31')](null)):(this[_0x19db('0x1c')][_0x19db('0x30')]([]),this['_sidebarView'][_0x19db('0x31')](_0x1d0457[0x0]));}[_0x19db('0x8')](){const _0x3409c1=this[_0x19db('0x6')],_0x8b0b0c=w[_0x19db('0xe')],_0x505b9c=_0x3409c1[_0x19db('0x1d')][_0x19db('0x1e')](_0x19db('0x3b'))||w[_0x19db('0x32')];if(_0x505b9c[_0x19db('0x12')])return _0x505b9c[_0x19db('0x5')](_0x345e4e=>{const _0x3911cf=_0x19db('0x15')==typeof _0x345e4e?Object[_0x19db('0x0')]({},_0x8b0b0c[_0x345e4e]):_0x345e4e;return _0x3911cf[_0x19db('0x29')]=_0x3911cf['action'][_0x19db('0x20')](this,_0x3409c1),_0x3911cf['isVisible']&&(_0x3911cf[_0x19db('0x23')]=_0x3911cf[_0x19db('0x23')]['bind'](this,_0x3409c1)),_0x3911cf;});}}w[_0x19db('0xe')]={'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x2388b2},_0x2c329d)=>{const _0x326b1a=_0x2388b2[_0x19db('0x1e')](_0x4d2c0b),_0x383b63=_0x326b1a[_0x19db('0xd')];let _0x43a9d=_0x326b1a['diff'][_0x19db('0x2f')],_0x314e9f=_0x2c329d['id'];_0x383b63[_0x19db('0x21')](_0x43a9d)>_0x383b63[_0x19db('0x21')](_0x314e9f)&&([_0x43a9d,_0x314e9f]=[_0x314e9f,_0x43a9d]),_0x326b1a[_0x19db('0x9')](_0x43a9d,_0x314e9f);},'isVisible':({plugins:_0x5ab7e1},_0x554e3e)=>{const _0x322c60=_0x5ab7e1[_0x19db('0x1e')](_0x4d2c0b);return!(_0x322c60['repository']['getRevisionsInDiff'](_0x322c60[_0x19db('0x17')])['length']>0x2)&&!_0x554e3e['isSelected'];}},'restoreRevision':{'name':_0x19db('0x10'),'action':(_0x3c2912,{id:_0x56c6f1})=>{_0x3c2912['config'][_0x19db('0x1e')](_0x19db('0x16'))[_0x19db('0x1a')](_0x56c6f1);},'isVisible':({plugins:_0x230398},_0x413d5a)=>!!_0x230398[_0x19db('0x1e')](_0x4d2c0b)[_0x19db('0xd')]['getLaterVisibleRevision'](_0x413d5a['id'])},'nameRevision':{'name':_0x19db('0xa'),'action':({plugins:_0x39ea95},{id:_0x34a38d,revisionNameView:_0xf3970})=>{const _0x3d75f7=_0x39ea95[_0x19db('0x1e')](_0x4d2c0b),_0x3a5d5c=_0x3d75f7['repository'][_0x19db('0x11')](_0x34a38d);_0x3d75f7[_0x19db('0x9')](_0x34a38d,_0x3a5d5c),_0xf3970[_0x19db('0x28')](),_0xf3970[_0x19db('0x2a')][_0x19db('0x4')]();}}},w[_0x19db('0x32')]=[_0x19db('0x33'),_0x19db('0x39'),_0x19db('0x7')];
23
+ const _0xfb15=['pluginName','revisionViews','data','map','fieldView','restoreRevisionCallback','getEarlierVisibleRevision','isEnabled','_revisions','repository','editor','_sidebarView','revisionHistory.revisionActions','element','_revisionsRepository','_handleDiffChange','render','locale','add','isReady','diff','compareAgainstSelected','availableRevisionActions','highlightRevisions','defaultRevisionActions','getRevision','ready','config','newRevisionId','action','requires','nameRevision','revisionHistory.viewerSidebarContainer','setName','_revisionViewer','compare','_handleEditorDataReady','name','destroy','getLaterVisibleRevision','getIndex','_createRevisionActions','assign','get','_handleRevisionSetName','change:diff','selectRevision','bind','isVisible','_handleRevisionSelected','plugins','Compare\x20against\x20selected','timePeriodViews','appendChild','remove','Name\x20this\x20revision','getRevisionsInDiff','RevisionsSidebar','init','length','revisionSelected','restoreRevision','string','select'];(function(_0x59356c,_0xfb156b){const _0x1a95b9=function(_0x43e5a6){while(--_0x43e5a6){_0x59356c['push'](_0x59356c['shift']());}};_0x1a95b9(++_0xfb156b);}(_0xfb15,0x1db));const _0x1a95=function(_0x59356c,_0xfb156b){_0x59356c=_0x59356c-0x0;let _0x1a95b9=_0xfb15[_0x59356c];return _0x1a95b9;};import{Plugin as _0x597f75}from'ckeditor5/src/core';import _0x23ef1e from'./revisionssidebarview';import _0x94bac7 from'../../revisionviewer';export default class w extends _0x597f75{static get[_0x1a95('0x25')](){return _0x1a95('0x1e');}static get[_0x1a95('0x3')](){return[_0x94bac7];}constructor(_0x1ace8c){super(_0x1ace8c),this[_0x1a95('0x7')]=_0x1ace8c[_0x1a95('0x17')][_0x1a95('0x10')](_0x94bac7),this['_revisionsRepository']=this[_0x1a95('0x7')]['repository'],this[_0x1a95('0x30')]=null;}[_0x1a95('0x1f')](){const _0x3cc675=this[_0x1a95('0x33')][_0x1a95('0x2d')],_0x3cdcda=this[_0x1a95('0xe')](),_0x706434=this[_0x1a95('0x2f')][_0x1a95('0x0')][_0x1a95('0x10')](_0x1a95('0x5'));this[_0x1a95('0x30')]=new _0x23ef1e(this[_0x1a95('0x2f')][_0x1a95('0x36')],_0x3cc675,_0x3cdcda),this[_0x1a95('0x30')]['on'](_0x1a95('0x21'),this[_0x1a95('0x16')][_0x1a95('0x14')](this)),this[_0x1a95('0x30')]['on']('revisionSetName',this[_0x1a95('0x11')][_0x1a95('0x14')](this)),this[_0x1a95('0x30')][_0x1a95('0x14')](_0x1a95('0x2c'))['to'](this['_revisionViewer']),this[_0x1a95('0x30')][_0x1a95('0x19')]['on'](_0x1a95('0x37'),(_0x8e7792,_0x32cfc1)=>{_0x32cfc1[_0x1a95('0x26')]['on'](_0x1a95('0x37'),(_0x2b70f6,_0x54517f)=>{_0x54517f[_0x1a95('0x14')]('isEnabled',_0x1a95('0x38'))['to'](this[_0x1a95('0x7')]);});}),this[_0x1a95('0x30')][_0x1a95('0x35')](),this['listenTo'](this[_0x1a95('0x2f')][_0x1a95('0x27')],_0x1a95('0x3f'),this[_0x1a95('0x9')][_0x1a95('0x14')](this)),this['listenTo'](this[_0x1a95('0x7')],_0x1a95('0x12'),this[_0x1a95('0x34')]['bind'](this)),_0x706434[_0x1a95('0x1a')](this['_sidebarView'][_0x1a95('0x32')]);}[_0x1a95('0xb')](){this[_0x1a95('0x30')][_0x1a95('0x32')][_0x1a95('0x1b')](),this[_0x1a95('0x30')][_0x1a95('0xb')]();}[_0x1a95('0x9')](){const _0x10c2ad=this[_0x1a95('0x33')][_0x1a95('0x3e')](0x0);if(_0x10c2ad){const _0x12fb59=this['_revisionsRepository'][_0x1a95('0x2b')](_0x10c2ad['id']);this[_0x1a95('0x7')]['compare'](_0x10c2ad,_0x12fb59);}}[_0x1a95('0x16')](_0x3861e4,_0x249d2a){const _0x1be70b=this[_0x1a95('0x33')][_0x1a95('0x3e')](_0x249d2a['id']),_0x363da9=this[_0x1a95('0x33')][_0x1a95('0x2b')](_0x1be70b['id']);this[_0x1a95('0x7')][_0x1a95('0x8')](_0x1be70b,_0x363da9);}['_handleRevisionSetName'](_0x1f5a6c,_0x1c31cf){this[_0x1a95('0x33')]['getRevision'](_0x1c31cf['id'])[_0x1a95('0x6')](_0x1c31cf[_0x1a95('0xa')]);}[_0x1a95('0x34')](_0x59f2b4,_0x3d825a,_0x3c91c6){const _0x857cdf=this['_revisionsRepository'][_0x1a95('0x1d')](_0x3c91c6);_0x857cdf[_0x1a95('0x20')]>0x2?(this['_sidebarView'][_0x1a95('0x3c')](_0x857cdf),this[_0x1a95('0x30')][_0x1a95('0x13')](null)):(this[_0x1a95('0x30')][_0x1a95('0x3c')]([]),this[_0x1a95('0x30')][_0x1a95('0x13')](_0x857cdf[0x0]));}[_0x1a95('0xe')](){const _0x33205b=this[_0x1a95('0x2f')],_0x18a598=w['availableRevisionActions'],_0x69f338=_0x33205b[_0x1a95('0x0')][_0x1a95('0x10')](_0x1a95('0x31'))||w[_0x1a95('0x3d')];if(_0x69f338[_0x1a95('0x20')])return _0x69f338[_0x1a95('0x28')](_0x2bf57d=>{const _0x105d5b=_0x1a95('0x23')==typeof _0x2bf57d?Object[_0x1a95('0xf')]({},_0x18a598[_0x2bf57d]):_0x2bf57d;return _0x105d5b[_0x1a95('0x2')]=_0x105d5b['action'][_0x1a95('0x14')](this,_0x33205b),_0x105d5b[_0x1a95('0x15')]&&(_0x105d5b[_0x1a95('0x15')]=_0x105d5b[_0x1a95('0x15')]['bind'](this,_0x33205b)),_0x105d5b;});}}w[_0x1a95('0x3b')]={'compareAgainstSelected':{'name':_0x1a95('0x18'),'action':({plugins:_0x57dac1},_0xa80085)=>{const _0x1c4dc9=_0x57dac1[_0x1a95('0x10')](_0x94bac7),_0x59713c=_0x1c4dc9['repository'];let _0x8b4ad0=_0x1c4dc9[_0x1a95('0x39')][_0x1a95('0x1')],_0x1ed35a=_0xa80085['id'];_0x59713c[_0x1a95('0xd')](_0x8b4ad0)>_0x59713c[_0x1a95('0xd')](_0x1ed35a)&&([_0x8b4ad0,_0x1ed35a]=[_0x1ed35a,_0x8b4ad0]),_0x1c4dc9[_0x1a95('0x8')](_0x8b4ad0,_0x1ed35a);},'isVisible':({plugins:_0x596e67},_0x2a3ec3)=>{const _0x54f619=_0x596e67['get'](_0x94bac7);return!(_0x54f619[_0x1a95('0x2e')][_0x1a95('0x1d')](_0x54f619[_0x1a95('0x39')])[_0x1a95('0x20')]>0x2)&&!_0x2a3ec3['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x46a555,{id:_0x3bcf44})=>{_0x46a555[_0x1a95('0x0')][_0x1a95('0x10')]('revisionHistory')[_0x1a95('0x2a')](_0x3bcf44);},'isVisible':({plugins:_0x1860d0},_0x1c47bf)=>!!_0x1860d0[_0x1a95('0x10')](_0x94bac7)['repository'][_0x1a95('0xc')](_0x1c47bf['id'])},'nameRevision':{'name':_0x1a95('0x1c'),'action':({plugins:_0x353c50},{id:_0x3d3348,revisionNameView:_0xd2424b})=>{const _0x2a6bd6=_0x353c50['get'](_0x94bac7),_0x1ca726=_0x2a6bd6[_0x1a95('0x2e')]['getEarlierVisibleRevision'](_0x3d3348);_0x2a6bd6[_0x1a95('0x8')](_0x3d3348,_0x1ca726),_0xd2424b['focus'](),_0xd2424b[_0x1a95('0x29')][_0x1a95('0x24')]();}}},w['defaultRevisionActions']=[_0x1a95('0x3a'),_0x1a95('0x22'),_0x1a95('0x4')];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3761=['Revision\x20history','ck-revision-history-sidebar__header__label','span','setTemplate','content','ck-reset_all','div'];(function(_0x12ee91,_0x3761e5){const _0x1a5929=function(_0xefcca4){while(--_0xefcca4){_0x12ee91['push'](_0x12ee91['shift']());}};_0x1a5929(++_0x3761e5);}(_0x3761,0xb3));const _0x1a59=function(_0x12ee91,_0x3761e5){_0x12ee91=_0x12ee91-0x0;let _0x1a5929=_0x3761[_0x12ee91];return _0x1a5929;};import{View as _0x3a14e4,IconView as _0x867af6}from'ckeditor5/src/ui';import{getTranslation as _0x2f7d19}from'../../utils/common-translations';import _0x49c7a6 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x3a14e4{constructor(_0x22017b){super(_0x22017b);const _0x39c57b=new _0x867af6();_0x39c57b[_0x1a59('0x0')]=_0x49c7a6,this[_0x1a59('0x6')]({'tag':_0x1a59('0x2'),'attributes':{'class':['ck',_0x1a59('0x1'),'ck-revision-history-sidebar__header']},'children':[_0x39c57b,{'tag':_0x1a59('0x5'),'attributes':{'class':['ck',_0x1a59('0x4')]},'children':[_0x2f7d19(_0x22017b,_0x1a59('0x3'))]}]});}}
23
+ const _0x392e=['setTemplate','ck-reset_all','ck-revision-history-sidebar__header__label','span','div','Revision\x20history'];(function(_0xebb37d,_0x392e47){const _0x57beae=function(_0x46fd21){while(--_0x46fd21){_0xebb37d['push'](_0xebb37d['shift']());}};_0x57beae(++_0x392e47);}(_0x392e,0xa1));const _0x57be=function(_0xebb37d,_0x392e47){_0xebb37d=_0xebb37d-0x0;let _0x57beae=_0x392e[_0xebb37d];return _0x57beae;};import{View as _0x2e6d83,IconView as _0x6492ef}from'ckeditor5/src/ui';import{getTranslation as _0x5e6bd6}from'../../utils/common-translations';import _0x362e1c from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x2e6d83{constructor(_0xa4d342){super(_0xa4d342);const _0x487735=new _0x6492ef();_0x487735['content']=_0x362e1c,this[_0x57be('0x1')]({'tag':_0x57be('0x5'),'attributes':{'class':['ck',_0x57be('0x2'),'ck-revision-history-sidebar__header']},'children':[_0x487735,{'tag':_0x57be('0x4'),'attributes':{'class':['ck',_0x57be('0x3')]},'children':[_0x5e6bd6(_0xa4d342,_0x57be('0x0'))]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2d2b=['select','find','delegate','revisionViews','remove','createCollection','add','ck-revision-history-sidebar__time-period__label','_revisionActions','ck-revision-history-sidebar__time-period','localizedPeriodName','div','uiLanguage','setTemplate','locale'];(function(_0x5e6519,_0x2d2ba0){const _0x48040e=function(_0x34b6b5){while(--_0x34b6b5){_0x5e6519['push'](_0x5e6519['shift']());}};_0x48040e(++_0x2d2ba0);}(_0x2d2b,0x1f0));const _0x4804=function(_0x5e6519,_0x2d2ba0){_0x5e6519=_0x5e6519-0x0;let _0x48040e=_0x2d2b[_0x5e6519];return _0x48040e;};import{View as _0x4ee0f4}from'ckeditor5/src/ui';import _0x277413 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x4e3987}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class vi extends _0x4ee0f4{constructor(_0x9f8dc7,_0x5c2c4a,_0x22382e){super(_0x9f8dc7);const _0x2a9d41=_0x4e3987(_0x5c2c4a,this[_0x4804('0xd')][_0x4804('0xb')])[_0x4804('0x9')];this['startDate']=_0x5c2c4a,this[_0x4804('0x2')]=this[_0x4804('0x4')](),this['_revisionActions']=_0x22382e,this[_0x4804('0x2')][_0x4804('0x1')](_0x4804('0xe'))['to'](this),this[_0x4804('0x2')][_0x4804('0x1')]('setName')['to'](this),this[_0x4804('0xc')]({'tag':_0x4804('0xa'),'attributes':{'class':['ck',_0x4804('0x8')]},'children':[{'tag':'span','attributes':{'class':['ck',_0x4804('0x6')]},'children':[{'text':_0x2a9d41}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this[_0x4804('0x2')]}]});}['addRevision'](_0x26ccee){const _0x44393f=new _0x277413(this['locale'],_0x26ccee,this[_0x4804('0x7')]);this[_0x4804('0x2')][_0x4804('0x5')](_0x44393f);}['removeRevision'](_0x51051f){const _0x3fdad3=this[_0x4804('0x2')][_0x4804('0x0')](_0x4b8774=>_0x4b8774['id']===_0x51051f['id']);this[_0x4804('0x2')][_0x4804('0x3')](_0x3fdad3);}}
23
+ const _0x244f=['span','_revisionActions','uiLanguage','ck-revision-history-sidebar__time-period__revisions','removeRevision','localizedPeriodName','setTemplate','revisionViews','addRevision','startDate','setName','ck-revision-history-sidebar__time-period__label','delegate','div','ck-revision-history-sidebar__time-period'];(function(_0x2183e4,_0x244fa8){const _0x36168a=function(_0x13c1c5){while(--_0x13c1c5){_0x2183e4['push'](_0x2183e4['shift']());}};_0x36168a(++_0x244fa8);}(_0x244f,0xf0));const _0x3616=function(_0x2183e4,_0x244fa8){_0x2183e4=_0x2183e4-0x0;let _0x36168a=_0x244f[_0x2183e4];return _0x36168a;};import{View as _0x4e862f}from'ckeditor5/src/ui';import _0x344c19 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x3312e3}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x4e862f{constructor(_0xa57e6,_0x54a3da,_0xe5fa25){super(_0xa57e6);const _0x299354=_0x3312e3(_0x54a3da,this['locale'][_0x3616('0x2')])[_0x3616('0x5')];this[_0x3616('0x9')]=_0x54a3da,this[_0x3616('0x7')]=this['createCollection'](),this[_0x3616('0x1')]=_0xe5fa25,this[_0x3616('0x7')]['delegate']('select')['to'](this),this[_0x3616('0x7')][_0x3616('0xc')](_0x3616('0xa'))['to'](this),this[_0x3616('0x6')]({'tag':'div','attributes':{'class':['ck',_0x3616('0xe')]},'children':[{'tag':_0x3616('0x0'),'attributes':{'class':['ck',_0x3616('0xb')]},'children':[{'text':_0x299354}]},{'tag':_0x3616('0xd'),'attributes':{'class':['ck',_0x3616('0x3')]},'children':this[_0x3616('0x7')]}]});}[_0x3616('0x8')](_0x9a001){const _0x2f81a3=new _0x344c19(this['locale'],_0x9a001,this[_0x3616('0x1')]);this[_0x3616('0x7')]['add'](_0x2f81a3);}[_0x3616('0x4')](_0x51663c){const _0x5b65a9=this[_0x3616('0x7')]['find'](_0x2286a6=>_0x2286a6['id']===_0x51663c['id']);this[_0x3616('0x7')]['remove'](_0x5b65a9);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x556e=['_revisionActions','createCollection','_removeRevision','highlightRevisions','unhighlight','some','removeRevision','createdAt','remove','set','bindTemplate','timePeriodViews','revisionSelected','_revisions','startDate','uiLanguage','_addRevision','find','div','getTime','get','select','ck-revision-history-sidebar','fire','setName','flat','delegate','ck-revision-history-sidebar__timeline','isEnabled','revisionViews','_getTimePeriodViewByStartDate','selectRevision','locale','deselect','ck-rounded-corners','revisionSetName','render'];(function(_0x11cd2f,_0x556eaa){const _0x568238=function(_0x534977){while(--_0x534977){_0x11cd2f['push'](_0x11cd2f['shift']());}};_0x568238(++_0x556eaa);}(_0x556e,0xae));const _0x5682=function(_0x11cd2f,_0x556eaa){_0x11cd2f=_0x11cd2f-0x0;let _0x568238=_0x556e[_0x11cd2f];return _0x568238;};import{View as _0x18405e}from'ckeditor5/src/ui';import _0x2e4c1a from'./revisionssidebartimeperiodview';import _0x507367 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x1fc129}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class di extends _0x18405e{constructor(_0x148d4d,_0x14abf7,_0x544c52){super(_0x148d4d);const _0x50da79=this[_0x5682('0x15')];this[_0x5682('0x16')]=this[_0x5682('0xc')](),this['timePeriodViews'][_0x5682('0x0')](_0x5682('0x20'))['to'](this),this[_0x5682('0x16')]['delegate']('setName')['to'](this),this[_0x5682('0x18')]=_0x14abf7,this[_0x5682('0xb')]=_0x544c52,this['on'](_0x5682('0x20'),(_0x4d2f2f,_0x5958d8)=>{this[_0x5682('0x22')](_0x5682('0x17'),_0x5958d8);}),this['on'](_0x5682('0x23'),(_0x41890e,_0x4e8307)=>{this['fire'](_0x5682('0x9'),_0x4e8307);}),this[_0x5682('0x14')](_0x5682('0x2'),!0x1),this['setTemplate']({'tag':_0x5682('0x1d'),'attributes':{'class':['ck','ck-reset',_0x5682('0x8'),_0x5682('0x21')]},'children':[new _0x507367(_0x148d4d),{'tag':'div','attributes':{'class':['ck',_0x5682('0x1'),_0x50da79['if']('isEnabled','ck-disabled',_0x3a6ac4=>!_0x3a6ac4)]},'children':this[_0x5682('0x16')]}]});}['render'](){super[_0x5682('0xa')]();for(const _0x22d995 of this[_0x5682('0x18')])this[_0x5682('0x1b')](_0x22d995);this[_0x5682('0x18')]['on']('add',(_0x5ec283,_0x4ec187)=>{this[_0x5682('0x1b')](_0x4ec187);}),this[_0x5682('0x18')]['on'](_0x5682('0x13'),(_0x4795b6,_0x240b7f)=>{this[_0x5682('0xd')](_0x240b7f);});}get[_0x5682('0x3')](){return this[_0x5682('0x16')]['map'](_0xab4420=>_0xab4420[_0x5682('0x3')]['map'](_0x1fe862=>_0x1fe862))[_0x5682('0x24')]();}[_0x5682('0x5')](_0x2058ac){for(const _0x59cc81 of this[_0x5682('0x3')])_0x2058ac&&_0x2058ac['id']===_0x59cc81['id']?_0x59cc81[_0x5682('0x20')]():_0x59cc81[_0x5682('0x7')]();}[_0x5682('0xe')](_0x1d17da){for(const _0x1b895e of this[_0x5682('0x3')])_0x1d17da[_0x5682('0x10')](({id:_0x4f24a9})=>_0x4f24a9===_0x1b895e['id'])?_0x1b895e['highlight']():_0x1b895e[_0x5682('0xf')]();}[_0x5682('0x1b')](_0x5138da){const _0x71d7f4=_0x1fc129(_0x5138da[_0x5682('0x12')],this['locale'][_0x5682('0x1a')])['startDate'];let _0x137a95=this[_0x5682('0x16')][_0x5682('0x1f')](0x0);_0x137a95&&_0x137a95[_0x5682('0x19')][_0x5682('0x1e')]()===_0x71d7f4[_0x5682('0x1e')]()||(_0x137a95=new _0x2e4c1a(this[_0x5682('0x6')],_0x71d7f4,this[_0x5682('0xb')]),this[_0x5682('0x16')]['add'](_0x137a95)),_0x137a95['addRevision'](_0x5138da);}[_0x5682('0xd')](_0x1d8f48){const _0x4608d4=_0x1fc129(_0x1d8f48[_0x5682('0x12')],this[_0x5682('0x6')][_0x5682('0x1a')])[_0x5682('0x19')];this['_getTimePeriodViewByStartDate'](_0x4608d4)[_0x5682('0x11')](_0x1d8f48);}[_0x5682('0x4')](_0x1cb8ac){return this[_0x5682('0x16')][_0x5682('0x1c')](_0x4eb2a8=>_0x4eb2a8[_0x5682('0x19')][_0x5682('0x1e')]()===_0x1cb8ac['getTime']());}}
23
+ const _0x586b=['map','revisionViews','_getTimePeriodViewByStartDate','render','selectRevision','uiLanguage','timePeriodViews','set','delegate','_addRevision','ck-revision-history-sidebar','highlight','ck-disabled','createdAt','select','getTime','addRevision','ck-reset','_revisions','some','flat','locale','find','bindTemplate','unhighlight','isEnabled','startDate','ck-rounded-corners','_removeRevision','removeRevision','ck-revision-history-sidebar__timeline','_revisionActions','setName','add','div','revisionSetName','remove'];(function(_0x35bb13,_0x586b48){const _0x51bc2a=function(_0x2881b3){while(--_0x2881b3){_0x35bb13['push'](_0x35bb13['shift']());}};_0x51bc2a(++_0x586b48);}(_0x586b,0x145));const _0x51bc=function(_0x35bb13,_0x586b48){_0x35bb13=_0x35bb13-0x0;let _0x51bc2a=_0x586b[_0x35bb13];return _0x51bc2a;};import{View as _0x1c5a70}from'ckeditor5/src/ui';import _0xc9761f from'./revisionssidebartimeperiodview';import _0xd7d189 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x579bb9}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x1c5a70{constructor(_0x3176eb,_0x553d0e,_0x153e3c){super(_0x3176eb);const _0x122e3e=this[_0x51bc('0x1f')];this[_0x51bc('0xe')]=this['createCollection'](),this[_0x51bc('0xe')][_0x51bc('0x10')](_0x51bc('0x16'))['to'](this),this[_0x51bc('0xe')][_0x51bc('0x10')](_0x51bc('0x3'))['to'](this),this[_0x51bc('0x1a')]=_0x553d0e,this[_0x51bc('0x2')]=_0x153e3c,this['on']('select',(_0x2584ae,_0x3b012d)=>{this['fire']('revisionSelected',_0x3b012d);}),this['on'](_0x51bc('0x3'),(_0x5e9b28,_0x459849)=>{this['fire'](_0x51bc('0x6'),_0x459849);}),this[_0x51bc('0xf')](_0x51bc('0x21'),!0x1),this['setTemplate']({'tag':_0x51bc('0x5'),'attributes':{'class':['ck',_0x51bc('0x19'),_0x51bc('0x23'),_0x51bc('0x12')]},'children':[new _0xd7d189(_0x3176eb),{'tag':_0x51bc('0x5'),'attributes':{'class':['ck',_0x51bc('0x1'),_0x122e3e['if'](_0x51bc('0x21'),_0x51bc('0x14'),_0x2ba244=>!_0x2ba244)]},'children':this[_0x51bc('0xe')]}]});}[_0x51bc('0xb')](){super[_0x51bc('0xb')]();for(const _0x16d99d of this['_revisions'])this['_addRevision'](_0x16d99d);this[_0x51bc('0x1a')]['on'](_0x51bc('0x4'),(_0x33de03,_0x3d0f32)=>{this['_addRevision'](_0x3d0f32);}),this[_0x51bc('0x1a')]['on'](_0x51bc('0x7'),(_0x2323b3,_0x417e3c)=>{this[_0x51bc('0x24')](_0x417e3c);});}get[_0x51bc('0x9')](){return this['timePeriodViews']['map'](_0x308c97=>_0x308c97['revisionViews'][_0x51bc('0x8')](_0xce2094=>_0xce2094))[_0x51bc('0x1c')]();}[_0x51bc('0xc')](_0xe3053e){for(const _0x173cf1 of this[_0x51bc('0x9')])_0xe3053e&&_0xe3053e['id']===_0x173cf1['id']?_0x173cf1['select']():_0x173cf1['deselect']();}['highlightRevisions'](_0x5d951){for(const _0x5ddb8c of this[_0x51bc('0x9')])_0x5d951[_0x51bc('0x1b')](({id:_0x3496f9})=>_0x3496f9===_0x5ddb8c['id'])?_0x5ddb8c[_0x51bc('0x13')]():_0x5ddb8c[_0x51bc('0x20')]();}[_0x51bc('0x11')](_0x4dc656){const _0x47de9f=_0x579bb9(_0x4dc656[_0x51bc('0x15')],this[_0x51bc('0x1d')]['uiLanguage'])[_0x51bc('0x22')];let _0x559caf=this[_0x51bc('0xe')]['get'](0x0);_0x559caf&&_0x559caf[_0x51bc('0x22')][_0x51bc('0x17')]()===_0x47de9f['getTime']()||(_0x559caf=new _0xc9761f(this['locale'],_0x47de9f,this[_0x51bc('0x2')]),this[_0x51bc('0xe')][_0x51bc('0x4')](_0x559caf)),_0x559caf[_0x51bc('0x18')](_0x4dc656);}['_removeRevision'](_0x290d2e){const _0x54aee6=_0x579bb9(_0x290d2e[_0x51bc('0x15')],this[_0x51bc('0x1d')][_0x51bc('0xd')])['startDate'];this[_0x51bc('0xa')](_0x54aee6)[_0x51bc('0x0')](_0x290d2e);}[_0x51bc('0xa')](_0x1a614e){return this[_0x51bc('0xe')][_0x51bc('0x1e')](_0x2b2ed3=>_0x2b2ed3[_0x51bc('0x22')][_0x51bc('0x17')]()===_0x1a614e[_0x51bc('0x17')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x473d=['month','week','startOf','toJSDate','setLocale','local','year','toRelativeCalendar','monthLong','fromJSDate','minus','hasSame','day'];(function(_0x36bf63,_0x473db3){const _0x53ec3b=function(_0x20e13e){while(--_0x20e13e){_0x36bf63['push'](_0x36bf63['shift']());}};_0x53ec3b(++_0x473db3);}(_0x473d,0x14a));const _0x53ec=function(_0x36bf63,_0x473db3){_0x36bf63=_0x36bf63-0x0;let _0x53ec3b=_0x473d[_0x36bf63];return _0x53ec3b;};import{DateTime as _0x4667bb}from'luxon';export function getDateTimePeriodInfo(_0x5cd9af,_0x468b96){const _0x32d062=_0x4667bb[_0x53ec('0x4')](_0x5cd9af)[_0x53ec('0xc')](_0x468b96),_0x33013a=_0x4667bb[_0x53ec('0x0')](),_0x30bfba=_0x33013a[_0x53ec('0x5')]({'days':0x1})[_0x53ec('0xa')](_0x53ec('0x7'));let _0x5610ce,_0x5e1430;return _0x32d062[_0x53ec('0x6')](_0x33013a,'day')?(_0x5610ce=_0x32d062['startOf'](_0x53ec('0x7'))['toJSDate'](),_0x5e1430=_0x32d062[_0x53ec('0x2')]()):_0x32d062[_0x53ec('0x6')](_0x30bfba,'day')?(_0x5610ce=_0x30bfba[_0x53ec('0xb')](),_0x5e1430=_0x32d062[_0x53ec('0x2')]()):_0x32d062[_0x53ec('0x6')](_0x33013a,_0x53ec('0x9'))?(_0x5610ce=_0x32d062[_0x53ec('0xa')](_0x53ec('0x9'))[_0x53ec('0xb')](),_0x5e1430=_0x32d062['weekdayLong']||''):_0x32d062['hasSame'](_0x33013a,'year')?(_0x5610ce=_0x32d062['startOf'](_0x53ec('0x8'))[_0x53ec('0xb')](),_0x5e1430=_0x32d062[_0x53ec('0x3')]||''):(_0x5610ce=_0x32d062['startOf'](_0x53ec('0x1'))[_0x53ec('0xb')](),_0x5e1430=String(_0x32d062['year'])),{'startDate':_0x5610ce,'localizedPeriodName':_0x5e1430};}
23
+ const _0x1a1e=['fromJSDate','year','weekdayLong','toRelativeCalendar','minus','hasSame','month','week','toJSDate','startOf','monthLong','day'];(function(_0x145ae3,_0x1a1e17){const _0x998166=function(_0x32bb02){while(--_0x32bb02){_0x145ae3['push'](_0x145ae3['shift']());}};_0x998166(++_0x1a1e17);}(_0x1a1e,0xb9));const _0x9981=function(_0x145ae3,_0x1a1e17){_0x145ae3=_0x145ae3-0x0;let _0x998166=_0x1a1e[_0x145ae3];return _0x998166;};import{DateTime as _0x319669}from'luxon';export function getDateTimePeriodInfo(_0x358852,_0x1ab93c){const _0x5a8ff4=_0x319669[_0x9981('0x7')](_0x358852)['setLocale'](_0x1ab93c),_0x4e7cf1=_0x319669['local'](),_0x47d6c7=_0x4e7cf1[_0x9981('0xb')]({'days':0x1})[_0x9981('0x4')]('day');let _0x3b2c44,_0x453a50;return _0x5a8ff4[_0x9981('0x0')](_0x4e7cf1,'day')?(_0x3b2c44=_0x5a8ff4[_0x9981('0x4')](_0x9981('0x6'))[_0x9981('0x3')](),_0x453a50=_0x5a8ff4[_0x9981('0xa')]()):_0x5a8ff4[_0x9981('0x0')](_0x47d6c7,_0x9981('0x6'))?(_0x3b2c44=_0x47d6c7[_0x9981('0x3')](),_0x453a50=_0x5a8ff4[_0x9981('0xa')]()):_0x5a8ff4[_0x9981('0x0')](_0x4e7cf1,'week')?(_0x3b2c44=_0x5a8ff4[_0x9981('0x4')](_0x9981('0x2'))['toJSDate'](),_0x453a50=_0x5a8ff4[_0x9981('0x9')]||''):_0x5a8ff4[_0x9981('0x0')](_0x4e7cf1,'year')?(_0x3b2c44=_0x5a8ff4[_0x9981('0x4')](_0x9981('0x1'))[_0x9981('0x3')](),_0x453a50=_0x5a8ff4[_0x9981('0x5')]||''):(_0x3b2c44=_0x5a8ff4[_0x9981('0x4')](_0x9981('0x8'))['toJSDate'](),_0x453a50=String(_0x5a8ff4[_0x9981('0x8')])),{'startDate':_0x3b2c44,'localizedPeriodName':_0x453a50};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3e00=['bindTemplate','author','ck-annotation','name','span','ck-revision-change__','isSuggestion','Removed\x20by','changeId','element','Suggested\x20by','add','type','ck-revision-change__label','data','set','focus','div','ck-revision-change'];(function(_0x3e1eab,_0x3e003f){const _0x58794f=function(_0x572a50){while(--_0x572a50){_0x3e1eab['push'](_0x3e1eab['shift']());}};_0x58794f(++_0x3e003f);}(_0x3e00,0x169));const _0x5879=function(_0x3e1eab,_0x3e003f){_0x3e1eab=_0x3e1eab-0x0;let _0x58794f=_0x3e00[_0x3e1eab];return _0x58794f;};import{View as _0x32c65c}from'ckeditor5/src/ui';import{getTranslation as _0x1b5375}from'../../utils/common-translations';export default class Z extends _0x32c65c{constructor(_0x38f744,_0xd39bdc){super(_0x38f744),this['_model']=_0xd39bdc,this[_0x5879('0x8')]=_0xd39bdc['id'];const _0x1e8347=this[_0x5879('0x0')],_0x3d2651=_0x1b5375(_0x38f744,_0xd39bdc[_0x5879('0xe')][_0x5879('0x6')]?_0x5879('0xa'):_0x5879('0xb')==_0xd39bdc['type']?'Added\x20by':_0x5879('0x7'));this[_0x5879('0xf')](_0x5879('0xc'),_0xd39bdc['type']),this['setTemplate']({'tag':_0x5879('0x11'),'attributes':{'class':[_0x5879('0x2'),_0x5879('0x12'),_0x1e8347['to']('type',_0x107304=>_0x5879('0x5')+_0x107304)],'tabindex':-0x1},'children':[{'tag':_0x5879('0x4'),'children':[{'tag':_0x5879('0x4'),'attributes':{'class':[_0x5879('0xd')]},'children':[{'text':_0x3d2651}]},{'text':'\x20'+_0xd39bdc[_0x5879('0x1')][_0x5879('0x3')]}]}]});}[_0x5879('0x10')](){this[_0x5879('0x9')][_0x5879('0x10')]();}}
23
+ const _0x99d6=['ck-revision-change__','focus','ck-revision-change','changeId','set','span','div','ck-revision-change__label','element','Removed\x20by','Added\x20by','Suggested\x20by','type'];(function(_0x46176e,_0x99d610){const _0x3c7a58=function(_0x5aab32){while(--_0x5aab32){_0x46176e['push'](_0x46176e['shift']());}};_0x3c7a58(++_0x99d610);}(_0x99d6,0x18a));const _0x3c7a=function(_0x46176e,_0x99d610){_0x46176e=_0x46176e-0x0;let _0x3c7a58=_0x99d6[_0x46176e];return _0x3c7a58;};import{View as _0x584a26}from'ckeditor5/src/ui';import{getTranslation as _0x1ab7e7}from'../../utils/common-translations';export default class Z extends _0x584a26{constructor(_0x4ce32f,_0x5196b9){super(_0x4ce32f),this['_model']=_0x5196b9,this[_0x3c7a('0xc')]=_0x5196b9['id'];const _0x1c68c8=this['bindTemplate'],_0x2daf5b=_0x1ab7e7(_0x4ce32f,_0x5196b9['data']['isSuggestion']?_0x3c7a('0x7'):'add'==_0x5196b9['type']?_0x3c7a('0x6'):_0x3c7a('0x5'));this[_0x3c7a('0x0')](_0x3c7a('0x8'),_0x5196b9[_0x3c7a('0x8')]),this['setTemplate']({'tag':_0x3c7a('0x2'),'attributes':{'class':['ck-annotation',_0x3c7a('0xb'),_0x1c68c8['to']('type',_0x7410b5=>_0x3c7a('0x9')+_0x7410b5)],'tabindex':-0x1},'children':[{'tag':_0x3c7a('0x1'),'children':[{'tag':_0x3c7a('0x1'),'attributes':{'class':[_0x3c7a('0x3')]},'children':[{'text':_0x2daf5b}]},{'text':'\x20'+_0x5196b9['author']['name']}]}]});}[_0x3c7a('0xa')](){this[_0x3c7a('0x4')][_0x3c7a('0xa')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2629=['span','isEnabled','backward','bind','execute','numberOfChanges','EDIT_X_OF_Y_REVISIONS','ck-revision-history-ui','isNavigationMode','_statusText','forward','div','isForwardNavigationEnabled','setTemplate','ck-hidden','_isStatusLabelVisible','set','currentChangeNumber','isBackwardNavigationEnabled','fire','isReady','X_OF_Y_CHANGES','Loading...','ck-revision-history-ui__changes-navigation__navigation','bindTemplate','Show\x20next\x20change'];(function(_0x4fdd13,_0x26290c){const _0x4eddd1=function(_0x5517f2){while(--_0x5517f2){_0x4fdd13['push'](_0x4fdd13['shift']());}};_0x4eddd1(++_0x26290c);}(_0x2629,0x1b3));const _0x4edd=function(_0x4fdd13,_0x26290c){_0x4fdd13=_0x4fdd13-0x0;let _0x4eddd1=_0x2629[_0x4fdd13];return _0x4eddd1;};import{View as _0x1c5ba9,ButtonView as _0x301edf,ToolbarSeparatorView as _0x3c71bd}from'ckeditor5/src/ui';import{getTranslation as _0x36c5e0}from'../../utils/common-translations';import _0x4139da from'../../../theme/icons/arrow-up.svg';import _0x3e9b62 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x1c5ba9{constructor(_0x400712){super(_0x400712);const _0x202e26=this[_0x4edd('0x5')],_0x5f242c=new _0x301edf(_0x400712),_0x39c677=new _0x301edf(_0x400712);this[_0x4edd('0x17')](_0x4edd('0xf'),!0x1),this[_0x4edd('0x17')](_0x4edd('0x1'),!0x1),this['set'](_0x4edd('0x18'),0x0),this['set'](_0x4edd('0xc'),0x0),this['set']('isForwardNavigationEnabled',!0x1),this['set'](_0x4edd('0x19'),!0x1),this[_0x4edd('0xa')](_0x4edd('0x16'))['to'](this,_0x4edd('0x1'),this,_0x4edd('0xc'),(_0x5b51a9,_0x2513bd)=>_0x5b51a9&&_0x2513bd>0x0),this[_0x4edd('0xa')](_0x4edd('0x10'))['to'](this,_0x4edd('0x1'),this,_0x4edd('0x18'),this,_0x4edd('0xc'),this,_0x4edd('0xf'),(_0x2072a7,_0x14a0d8,_0x16d2c4,_0x4b3e1e)=>{if(!_0x2072a7)return _0x36c5e0(_0x400712,_0x4edd('0x3'));if(!_0x16d2c4)return _0x36c5e0(_0x400712,'No\x20changes');const _0x12b1d3=_0x36c5e0(_0x400712,'NUMBER_OF_CHANGES',_0x16d2c4);return _0x4b3e1e?_0x36c5e0(_0x400712,_0x4edd('0x2'),[_0x14a0d8+0x1,_0x16d2c4]):_0x12b1d3;}),_0x5f242c['set']({'label':_0x36c5e0(_0x400712,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x4139da}),_0x39c677[_0x4edd('0x17')]({'label':_0x36c5e0(_0x400712,_0x4edd('0x6')),'tooltip':!0x0,'icon':_0x3e9b62}),_0x5f242c[_0x4edd('0xa')]('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x39c677[_0x4edd('0xa')](_0x4edd('0x8'))['to'](this,_0x4edd('0x13')),_0x5f242c['on'](_0x4edd('0xb'),()=>this[_0x4edd('0x0')](_0x4edd('0xb'),_0x4edd('0x9'))),_0x39c677['on']('execute',()=>this['fire'](_0x4edd('0xb'),_0x4edd('0x11'))),this[_0x4edd('0x14')]({'tag':_0x4edd('0x12'),'attributes':{'class':['ck',_0x4edd('0xe'),'ck-revision-history-ui__changes-navigation']},'children':[{'tag':_0x4edd('0x7'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':_0x4edd('0x7'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x202e26['if'](_0x4edd('0x16'),_0x4edd('0x15'),_0x387b6c=>!_0x387b6c)]},'children':[{'text':_0x202e26['to'](_0x4edd('0xf'),_0x3cfe0c=>_0x3cfe0c?_0x36c5e0(_0x400712,_0x4edd('0xd'))+':\x20':_0x36c5e0(_0x400712,'Total')+':\x20')}]},{'text':_0x202e26['to'](_0x4edd('0x10'))}]},new _0x3c71bd(),{'tag':_0x4edd('0x12'),'attributes':{'class':[_0x4edd('0x4')]},'children':[_0x5f242c,_0x39c677]}]});}}
23
+ const _0x3922=['bind','isNavigationMode','Loading...','ck-revision-history-ui__changes-navigation__navigation','isBackwardNavigationEnabled','currentChangeNumber','bindTemplate','_statusText','forward','set','isForwardNavigationEnabled','ck-revision-history-ui__changes-navigation','setTemplate','isReady','div','isEnabled','execute','ck-hidden','ck-revision-history-ui__changes-navigation__wrapper','_isStatusLabelVisible','ck-revision-history-ui','fire','X_OF_Y_CHANGES','Total','No\x20changes','backward','numberOfChanges','span','EDIT_X_OF_Y_REVISIONS','Show\x20previous\x20change'];(function(_0xd4b1b2,_0x392284){const _0x1350e0=function(_0x4f2a85){while(--_0x4f2a85){_0xd4b1b2['push'](_0xd4b1b2['shift']());}};_0x1350e0(++_0x392284);}(_0x3922,0x9b));const _0x1350=function(_0xd4b1b2,_0x392284){_0xd4b1b2=_0xd4b1b2-0x0;let _0x1350e0=_0x3922[_0xd4b1b2];return _0x1350e0;};import{View as _0x204192,ButtonView as _0x5e44a0,ToolbarSeparatorView as _0x5bbcfa}from'ckeditor5/src/ui';import{getTranslation as _0x5732dc}from'../../utils/common-translations';import _0x2e144d from'../../../theme/icons/arrow-up.svg';import _0x2819ce from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x204192{constructor(_0x2c6ccc){super(_0x2c6ccc);const _0x2cd4a1=this[_0x1350('0x1')],_0x3fb85a=new _0x5e44a0(_0x2c6ccc),_0x99e081=new _0x5e44a0(_0x2c6ccc);this[_0x1350('0x4')](_0x1350('0x1a'),!0x1),this[_0x1350('0x4')](_0x1350('0x8'),!0x1),this[_0x1350('0x4')]('currentChangeNumber',0x0),this['set'](_0x1350('0x15'),0x0),this['set'](_0x1350('0x5'),!0x1),this[_0x1350('0x4')](_0x1350('0x1d'),!0x1),this[_0x1350('0x19')]('_isStatusLabelVisible')['to'](this,_0x1350('0x8'),this,'numberOfChanges',(_0x41cdd0,_0x2f94db)=>_0x41cdd0&&_0x2f94db>0x0),this['bind'](_0x1350('0x2'))['to'](this,_0x1350('0x8'),this,_0x1350('0x0'),this,_0x1350('0x15'),this,_0x1350('0x1a'),(_0x4de2d1,_0x57696a,_0x1b2c51,_0x547e19)=>{if(!_0x4de2d1)return _0x5732dc(_0x2c6ccc,_0x1350('0x1b'));if(!_0x1b2c51)return _0x5732dc(_0x2c6ccc,_0x1350('0x13'));const _0x4b409a=_0x5732dc(_0x2c6ccc,'NUMBER_OF_CHANGES',_0x1b2c51);return _0x547e19?_0x5732dc(_0x2c6ccc,_0x1350('0x11'),[_0x57696a+0x1,_0x1b2c51]):_0x4b409a;}),_0x3fb85a[_0x1350('0x4')]({'label':_0x5732dc(_0x2c6ccc,_0x1350('0x18')),'tooltip':!0x0,'icon':_0x2e144d}),_0x99e081[_0x1350('0x4')]({'label':_0x5732dc(_0x2c6ccc,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2819ce}),_0x3fb85a['bind'](_0x1350('0xa'))['to'](this,_0x1350('0x1d')),_0x99e081['bind']('isEnabled')['to'](this,_0x1350('0x5')),_0x3fb85a['on'](_0x1350('0xb'),()=>this[_0x1350('0x10')]('execute',_0x1350('0x14'))),_0x99e081['on'](_0x1350('0xb'),()=>this[_0x1350('0x10')]('execute',_0x1350('0x3'))),this[_0x1350('0x7')]({'tag':_0x1350('0x9'),'attributes':{'class':['ck',_0x1350('0xf'),_0x1350('0x6')]},'children':[{'tag':_0x1350('0x16'),'attributes':{'class':[_0x1350('0xd')]},'children':[{'tag':_0x1350('0x16'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x2cd4a1['if'](_0x1350('0xe'),_0x1350('0xc'),_0x19b39a=>!_0x19b39a)]},'children':[{'text':_0x2cd4a1['to']('isNavigationMode',_0x2daf14=>_0x2daf14?_0x5732dc(_0x2c6ccc,_0x1350('0x17'))+':\x20':_0x5732dc(_0x2c6ccc,_0x1350('0x12'))+':\x20')}]},{'text':_0x2cd4a1['to']('_statusText')}]},new _0x5bbcfa(),{'tag':_0x1350('0x9'),'attributes':{'class':[_0x1350('0x1c')]},'children':[_0x3fb85a,_0x99e081]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x25ed=['document','removeClass','editor','editing','ck-editor__editable__loading-overlay','addClass','hide','change','view','roots'];(function(_0x3471a7,_0x25edc8){const _0x25fce5=function(_0x30e99a){while(--_0x30e99a){_0x3471a7['push'](_0x3471a7['shift']());}};_0x25fce5(++_0x25edc8);}(_0x25ed,0x140));const _0x25fc=function(_0x3471a7,_0x25edc8){_0x3471a7=_0x3471a7-0x0;let _0x25fce5=_0x25ed[_0x3471a7];return _0x25fce5;};import{Plugin as _0x3fa87b}from'ckeditor5/src/core';const oe=_0x25fc('0x4');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x3fa87b{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}['show'](){const _0x11ac6=this['editor'][_0x25fc('0x3')][_0x25fc('0x8')];_0x11ac6[_0x25fc('0x7')](_0x3ddb3d=>{for(const _0x3c0e7f of _0x11ac6[_0x25fc('0x0')][_0x25fc('0x9')])_0x3ddb3d[_0x25fc('0x5')](oe,_0x3c0e7f);});}[_0x25fc('0x6')](){const _0x50f19d=this[_0x25fc('0x2')][_0x25fc('0x3')][_0x25fc('0x8')];_0x50f19d[_0x25fc('0x7')](_0x34c97b=>{for(const _0x3a149d of _0x50f19d['document'][_0x25fc('0x9')])_0x34c97b[_0x25fc('0x1')](oe,_0x3a149d);});}}
23
+ const _0x58fa=['view','pluginName','RevisionViewerLoadingOverlay','editing','change','roots','editor'];(function(_0x1a3a9a,_0x58fac1){const _0x29496d=function(_0x47dc2b){while(--_0x47dc2b){_0x1a3a9a['push'](_0x1a3a9a['shift']());}};_0x29496d(++_0x58fac1);}(_0x58fa,0xd2));const _0x2949=function(_0x1a3a9a,_0x58fac1){_0x1a3a9a=_0x1a3a9a-0x0;let _0x29496d=_0x58fa[_0x1a3a9a];return _0x29496d;};import{Plugin as _0x433970}from'ckeditor5/src/core';const oe='ck-editor__editable__loading-overlay';import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x433970{static get[_0x2949('0x1')](){return _0x2949('0x2');}['show'](){const _0x2f49e4=this[_0x2949('0x6')][_0x2949('0x3')][_0x2949('0x0')];_0x2f49e4['change'](_0x38f44e=>{for(const _0x4e2e0b of _0x2f49e4['document'][_0x2949('0x5')])_0x38f44e['addClass'](oe,_0x4e2e0b);});}['hide'](){const _0x2561b0=this[_0x2949('0x6')][_0x2949('0x3')][_0x2949('0x0')];_0x2561b0[_0x2949('0x4')](_0x3be5ac=>{for(const _0x511a3d of _0x2561b0['document']['roots'])_0x3be5ac['removeClass'](oe,_0x511a3d);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x115f=['commands','set','changesNavigation','pluginName','show','forward','get','execute','isEnabled','revisionHistory','hide','plugins','restoreRevision','Restore\x20this\x20revision','numberOfChanges','showNextChange','isForwardNavigationEnabled','currentChangeNumber','requires','change:isReady','bind','editor','showPreviousChange','componentFactory','ck-revision-history-ui__back-to-editing','add','RevisionViewerUI','isNavigationMode','listenTo'];(function(_0x84acc,_0x115f4c){const _0x4b679b=function(_0x2ad71e){while(--_0x2ad71e){_0x84acc['push'](_0x84acc['shift']());}};_0x4b679b(++_0x115f4c);}(_0x115f,0x66));const _0x4b67=function(_0x84acc,_0x115f4c){_0x84acc=_0x84acc-0x0;let _0x4b679b=_0x115f[_0x84acc];return _0x4b679b;};import{Plugin as _0x34798b}from'ckeditor5/src/core';import{ButtonView as _0xccdc90}from'ckeditor5/src/ui';import _0x5b39c7 from'./changesnavigationview';import _0x41fe57 from'./../../revisionviewer';import _0x59d38c from'./revisionviewerloadingoverlay';import{getTranslation as _0x3c1fbf}from'../../utils/common-translations';import _0x64dc8e from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x34798b{static get[_0x4b67('0x11')](){return _0x4b67('0xb');}static get[_0x4b67('0x3')](){return[_0x41fe57,_0x59d38c];}['init'](){const _0x5047f2=this[_0x4b67('0x6')],_0x288b9a=_0x5047f2[_0x4b67('0x19')][_0x4b67('0x14')](_0x41fe57),_0x3a4c0e=_0x5047f2[_0x4b67('0x19')]['get'](_0x59d38c);_0x5047f2['ui'][_0x4b67('0x8')][_0x4b67('0xa')]('exitToEditing',_0x58aeb5=>{const _0x1b1ad1=new _0xccdc90(_0x58aeb5);return _0x1b1ad1[_0x4b67('0xf')]({'label':_0x3c1fbf(_0x58aeb5,'Back\x20to\x20editing'),'icon':_0x64dc8e,'withText':!0x0,'tooltip':!0x0,'class':_0x4b67('0x9')}),this[_0x4b67('0xd')](_0x1b1ad1,'execute',()=>{_0x5047f2['config']['get'](_0x4b67('0x17'))['closeRevisionViewerCallback']();}),_0x1b1ad1;}),_0x5047f2['ui'][_0x4b67('0x8')][_0x4b67('0xa')]('restoreRevision',_0x377ac1=>{const _0x39879a=new _0xccdc90(_0x377ac1);return _0x39879a[_0x4b67('0xf')]({'label':_0x3c1fbf(_0x377ac1,_0x4b67('0x1b')),'withText':!0x0,'tooltip':!0x0}),_0x39879a[_0x4b67('0x5')]('isEnabled')['to'](_0x5047f2[_0x4b67('0xe')][_0x4b67('0x14')](_0x4b67('0x1a'))),this[_0x4b67('0xd')](_0x39879a,_0x4b67('0x15'),()=>_0x5047f2[_0x4b67('0x15')](_0x4b67('0x1a'))),_0x39879a;}),_0x5047f2['ui'][_0x4b67('0x8')][_0x4b67('0xa')](_0x4b67('0x10'),_0x5288a2=>{const _0x393236=new _0x5b39c7(_0x5288a2),_0x510a3d=_0x5047f2['commands'][_0x4b67('0x14')](_0x4b67('0x7')),_0x1a118f=_0x5047f2['commands'][_0x4b67('0x14')](_0x4b67('0x0'));return _0x393236[_0x4b67('0x5')]('isBackwardNavigationEnabled')['to'](_0x510a3d,_0x4b67('0x16')),_0x393236[_0x4b67('0x5')](_0x4b67('0x1'))['to'](_0x1a118f,_0x4b67('0x16')),_0x393236['bind']('isReady',_0x4b67('0x2'),_0x4b67('0x1c'),_0x4b67('0xc'))['to'](_0x288b9a),this['listenTo'](_0x393236,_0x4b67('0x15'),(_0x10492e,_0x18d494)=>{_0x5047f2['execute'](_0x4b67('0x13')===_0x18d494?'showNextChange':_0x4b67('0x7'));}),_0x393236;}),_0x3a4c0e[_0x4b67('0x12')](),_0x288b9a['on'](_0x4b67('0x4'),(_0xcb293e,_0x503ce4,_0x26a21b)=>{_0x26a21b?_0x3a4c0e[_0x4b67('0x18')]():_0x3a4c0e[_0x4b67('0x12')]();});}}
23
+ const _0xd300=['showPreviousChange','currentChangeNumber','plugins','bind','componentFactory','showNextChange','Restore\x20this\x20revision','get','numberOfChanges','config','changesNavigation','closeRevisionViewerCallback','commands','show','execute','pluginName','forward','listenTo','requires','isEnabled','set','isReady','restoreRevision','Back\x20to\x20editing','isNavigationMode','editor','exitToEditing','hide','ck-revision-history-ui__back-to-editing'];(function(_0x4be421,_0xd300c0){const _0x195b52=function(_0x1953d5){while(--_0x1953d5){_0x4be421['push'](_0x4be421['shift']());}};_0x195b52(++_0xd300c0);}(_0xd300,0x1a3));const _0x195b=function(_0x4be421,_0xd300c0){_0x4be421=_0x4be421-0x0;let _0x195b52=_0xd300[_0x4be421];return _0x195b52;};import{Plugin as _0x44425d}from'ckeditor5/src/core';import{ButtonView as _0x3f2c44}from'ckeditor5/src/ui';import _0x3be9b0 from'./changesnavigationview';import _0x7879cf from'./../../revisionviewer';import _0x3240e8 from'./revisionviewerloadingoverlay';import{getTranslation as _0x325923}from'../../utils/common-translations';import _0x4d2615 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x44425d{static get[_0x195b('0x2')](){return'RevisionViewerUI';}static get[_0x195b('0x5')](){return[_0x7879cf,_0x3240e8];}['init'](){const _0x323273=this[_0x195b('0xc')],_0x5c3ab8=_0x323273[_0x195b('0x12')]['get'](_0x7879cf),_0x41f58d=_0x323273['plugins'][_0x195b('0x17')](_0x3240e8);_0x323273['ui'][_0x195b('0x14')]['add'](_0x195b('0xd'),_0x222d44=>{const _0x2e73ad=new _0x3f2c44(_0x222d44);return _0x2e73ad[_0x195b('0x7')]({'label':_0x325923(_0x222d44,_0x195b('0xa')),'icon':_0x4d2615,'withText':!0x0,'tooltip':!0x0,'class':_0x195b('0xf')}),this[_0x195b('0x4')](_0x2e73ad,_0x195b('0x1'),()=>{_0x323273[_0x195b('0x19')][_0x195b('0x17')]('revisionHistory')[_0x195b('0x1b')]();}),_0x2e73ad;}),_0x323273['ui'][_0x195b('0x14')]['add'](_0x195b('0x9'),_0x4c3eb5=>{const _0x13d723=new _0x3f2c44(_0x4c3eb5);return _0x13d723[_0x195b('0x7')]({'label':_0x325923(_0x4c3eb5,_0x195b('0x16')),'withText':!0x0,'tooltip':!0x0}),_0x13d723[_0x195b('0x13')]('isEnabled')['to'](_0x323273['commands'][_0x195b('0x17')](_0x195b('0x9'))),this[_0x195b('0x4')](_0x13d723,'execute',()=>_0x323273['execute'](_0x195b('0x9'))),_0x13d723;}),_0x323273['ui'][_0x195b('0x14')]['add'](_0x195b('0x1a'),_0x54ff81=>{const _0x3e7800=new _0x3be9b0(_0x54ff81),_0x1799db=_0x323273[_0x195b('0x1c')][_0x195b('0x17')](_0x195b('0x10')),_0x45f630=_0x323273[_0x195b('0x1c')][_0x195b('0x17')](_0x195b('0x15'));return _0x3e7800['bind']('isBackwardNavigationEnabled')['to'](_0x1799db,_0x195b('0x6')),_0x3e7800[_0x195b('0x13')]('isForwardNavigationEnabled')['to'](_0x45f630,_0x195b('0x6')),_0x3e7800['bind'](_0x195b('0x8'),_0x195b('0x11'),_0x195b('0x18'),_0x195b('0xb'))['to'](_0x5c3ab8),this[_0x195b('0x4')](_0x3e7800,_0x195b('0x1'),(_0x47af4e,_0x1567a3)=>{_0x323273[_0x195b('0x1')](_0x195b('0x3')===_0x1567a3?_0x195b('0x15'):'showPreviousChange');}),_0x3e7800;}),_0x41f58d[_0x195b('0x0')](),_0x5c3ab8['on']('change:isReady',(_0x1f959b,_0x393f91,_0x442a03)=>{_0x442a03?_0x41f58d[_0x195b('0xe')]():_0x41f58d[_0x195b('0x0')]();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x1a4f39,_0x8f6fb7,_0x4e72b8){const t=_0x1a4f39['t'];switch(_0x8f6fb7){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'},_0x4e72b8);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4e72b8);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 _0x8f6fb7;}}
23
+ export function getTranslation(_0x675498,_0x20fdb6,_0x9d9d75){const t=_0x675498['t'];switch(_0x20fdb6){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'},_0x9d9d75);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x9d9d75);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 _0x20fdb6;}}