@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230803.0 → 0.0.0-nightly-20230804.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 _0x453a=['RevisionTracker','add','showRevisionViewerCallback','reset','Open\x20revision\x20history','editor','pluginName','Revision\x20history','isReady','isEnabled','children','bind','requires','execute','componentFactory','view','panelView','focus','revisionName','length','remove','set','revisionHistory','get','config','buttonView','isReadOnly','Save\x20current\x20revision','init','change:isOpen','editing','items','addMany'];(function(_0x3cea54,_0x453adc){const _0x584409=function(_0x5296a3){while(--_0x5296a3){_0x3cea54['push'](_0x3cea54['shift']());}};_0x584409(++_0x453adc);}(_0x453a,0x164));const _0x5844=function(_0x3cea54,_0x453adc){_0x3cea54=_0x3cea54-0x0;let _0x584409=_0x453a[_0x3cea54];return _0x584409;};import{Plugin as _0x5a062b}from'ckeditor5/src/core';import{ListView as _0x51caca,ListItemView as _0x46767a,ButtonView as _0x339f8f,createDropdown as _0x3f4125}from'ckeditor5/src/ui';import _0x383a8d from'../../revisiontracker';import _0xcfe3e9 from'./revisionhistorysaverevisionformview';import _0x3ff5bc from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x4278e9}from'../../utils/common-translations';export default class u extends _0x5a062b{static get[_0x5844('0xd')](){return'RevisionHistoryUI';}static get[_0x5844('0x13')](){return[_0x383a8d];}[_0x5844('0x2')](){const _0x38b3dd=this[_0x5844('0xc')],_0x2ddca0=_0x38b3dd['plugins'][_0x5844('0x1e')](_0x5844('0x7'));_0x38b3dd['ui'][_0x5844('0x15')][_0x5844('0x8')]('revisionHistory',_0x28c447=>{const _0x1669d6=_0x3f4125(_0x28c447),_0x18d866=_0x1669d6[_0x5844('0x17')][_0x5844('0x11')],_0xc7fe4a=new _0x51caca(_0x28c447),_0x4ee8c5=new _0x46767a(_0x28c447),_0x3e4351=new _0x339f8f(_0x28c447),_0x3b0354=new _0x46767a(_0x28c447),_0x4f5bc4=new _0x339f8f(_0x28c447),_0x270461=new _0xcfe3e9(_0x28c447);function _0xc8b857(){_0x18d866[_0x5844('0x1a')]&&_0x18d866[_0x5844('0x1b')](0x0),_0x18d866[_0x5844('0x8')](_0xc7fe4a);}function _0x444e93(){_0x1669d6['isOpen']=!0x1,_0x38b3dd[_0x5844('0x4')][_0x5844('0x16')][_0x5844('0x18')]();}return _0x1669d6[_0x5844('0x12')](_0x5844('0x10'))['to'](_0x2ddca0,'isReady',_0x2ddca0,_0x5844('0x10'),_0x38b3dd,_0x5844('0x0'),(_0x1386a0,_0x71602a,_0x3f754)=>_0x1386a0&&_0x71602a&&!_0x3f754),_0x1669d6[_0x5844('0x20')]['set']({'icon':_0x3ff5bc,'label':_0x4278e9(_0x28c447,_0x5844('0xe')),'tooltip':!0x0}),_0x3e4351[_0x5844('0x1c')]({'label':_0x4278e9(_0x28c447,_0x5844('0x1')),'withText':!0x0}),_0x3e4351[_0x5844('0x12')]('isEnabled')['to'](_0x2ddca0,_0x5844('0xf'),_0x2ddca0,_0x5844('0x10'),_0x38b3dd,_0x5844('0x0'),(_0x262345,_0x1acd36,_0x2aaa00)=>_0x262345&&_0x1acd36&&!_0x2aaa00),_0x3e4351['on'](_0x5844('0x14'),()=>function(){_0x18d866[_0x5844('0x1a')]&&_0x18d866[_0x5844('0x1b')](0x0),(_0x270461[_0x5844('0xa')](),_0x18d866[_0x5844('0x8')](_0x270461),_0x270461[_0x5844('0x18')]());}()),_0x4f5bc4[_0x5844('0x1c')]({'label':_0x4278e9(_0x28c447,_0x5844('0xb')),'withText':!0x0}),_0x4f5bc4['bind'](_0x5844('0x10'))['to'](_0x2ddca0,_0x5844('0xf'),_0x38b3dd,_0x5844('0x0'),(_0x2f8473,_0x12fe00)=>_0x2f8473&&!_0x12fe00),_0x4f5bc4['on'](_0x5844('0x14'),()=>{_0x38b3dd[_0x5844('0x1f')][_0x5844('0x1e')](_0x5844('0x1d'))[_0x5844('0x9')](),_0x444e93();}),_0x4ee8c5[_0x5844('0x11')][_0x5844('0x8')](_0x3e4351),_0x3b0354[_0x5844('0x11')][_0x5844('0x8')](_0x4f5bc4),_0xc7fe4a[_0x5844('0x5')][_0x5844('0x6')]([_0x4ee8c5,_0x3b0354]),_0x1669d6['on'](_0x5844('0x3'),()=>_0xc8b857()),_0x270461['saveButtonView'][_0x5844('0x12')]('isEnabled')['to'](_0x2ddca0,'isReady',_0x2ddca0,'isEnabled',_0x38b3dd,'isReadOnly',(_0x3126ad,_0x2462cf,_0x3d7bb3)=>_0x3126ad&&_0x2462cf&&!_0x3d7bb3),_0x270461['on']('submit',()=>(_0x38b3dd['plugins'][_0x5844('0x1e')](_0x383a8d)['saveRevision']({'name':_0x270461[_0x5844('0x19')]}),void _0x444e93())),_0x270461['on']('cancel',()=>_0xc8b857()),_0x270461['render'](),_0xc8b857(),_0x1669d6;});}}
23
+ const _0x4c8f=['execute','editor','add','view','requires','Save\x20current\x20revision','saveButtonView','revisionHistory','children','cancel','panelView','reset','remove','Revision\x20history','init','showRevisionViewerCallback','pluginName','get','isEnabled','RevisionHistoryUI','items','plugins','buttonView','set','componentFactory','length','isReadOnly','editing','focus','config','render','isReady','isOpen','bind'];(function(_0x59c85d,_0x4c8f44){const _0x68da08=function(_0x37ab73){while(--_0x37ab73){_0x59c85d['push'](_0x59c85d['shift']());}};_0x68da08(++_0x4c8f44);}(_0x4c8f,0x1dd));const _0x68da=function(_0x59c85d,_0x4c8f44){_0x59c85d=_0x59c85d-0x0;let _0x68da08=_0x4c8f[_0x59c85d];return _0x68da08;};import{Plugin as _0x2bc8b1}from'ckeditor5/src/core';import{ListView as _0x35b389,ListItemView as _0x4ab809,ButtonView as _0x2cdde4,createDropdown as _0x237344}from'ckeditor5/src/ui';import _0x2d4590 from'../../revisiontracker';import _0x5aaf96 from'./revisionhistorysaverevisionformview';import _0x1899a1 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x419f75}from'../../utils/common-translations';export default class u extends _0x2bc8b1{static get[_0x68da('0xf')](){return _0x68da('0x12');}static get[_0x68da('0x3')](){return[_0x2d4590];}[_0x68da('0xd')](){const _0x2b0214=this[_0x68da('0x0')],_0x28756a=_0x2b0214[_0x68da('0x14')]['get']('RevisionTracker');_0x2b0214['ui'][_0x68da('0x17')]['add'](_0x68da('0x6'),_0x789e6c=>{const _0x3f1ab0=_0x237344(_0x789e6c),_0x2e12e4=_0x3f1ab0[_0x68da('0x9')][_0x68da('0x7')],_0x3ebb65=new _0x35b389(_0x789e6c),_0xf54f39=new _0x4ab809(_0x789e6c),_0x53972c=new _0x2cdde4(_0x789e6c),_0x1799d9=new _0x4ab809(_0x789e6c),_0x52384c=new _0x2cdde4(_0x789e6c),_0x31e56a=new _0x5aaf96(_0x789e6c);function _0xfbd0c4(){_0x2e12e4[_0x68da('0x18')]&&_0x2e12e4[_0x68da('0xb')](0x0),_0x2e12e4[_0x68da('0x1')](_0x3ebb65);}function _0x222f14(){_0x3f1ab0[_0x68da('0x1f')]=!0x1,_0x2b0214[_0x68da('0x1a')][_0x68da('0x2')]['focus']();}return _0x3f1ab0[_0x68da('0x20')](_0x68da('0x11'))['to'](_0x28756a,_0x68da('0x1e'),_0x28756a,_0x68da('0x11'),_0x2b0214,_0x68da('0x19'),(_0x3b7969,_0x23db57,_0x5f382)=>_0x3b7969&&_0x23db57&&!_0x5f382),_0x3f1ab0[_0x68da('0x15')][_0x68da('0x16')]({'icon':_0x1899a1,'label':_0x419f75(_0x789e6c,_0x68da('0xc')),'tooltip':!0x0}),_0x53972c['set']({'label':_0x419f75(_0x789e6c,_0x68da('0x4')),'withText':!0x0}),_0x53972c[_0x68da('0x20')]('isEnabled')['to'](_0x28756a,_0x68da('0x1e'),_0x28756a,_0x68da('0x11'),_0x2b0214,_0x68da('0x19'),(_0xed2df6,_0x246e32,_0x5402f1)=>_0xed2df6&&_0x246e32&&!_0x5402f1),_0x53972c['on'](_0x68da('0x21'),()=>function(){_0x2e12e4[_0x68da('0x18')]&&_0x2e12e4['remove'](0x0),(_0x31e56a[_0x68da('0xa')](),_0x2e12e4[_0x68da('0x1')](_0x31e56a),_0x31e56a[_0x68da('0x1b')]());}()),_0x52384c[_0x68da('0x16')]({'label':_0x419f75(_0x789e6c,'Open\x20revision\x20history'),'withText':!0x0}),_0x52384c[_0x68da('0x20')]('isEnabled')['to'](_0x28756a,'isReady',_0x2b0214,_0x68da('0x19'),(_0x4f1021,_0x50c0d0)=>_0x4f1021&&!_0x50c0d0),_0x52384c['on'](_0x68da('0x21'),()=>{_0x2b0214[_0x68da('0x1c')]['get'](_0x68da('0x6'))[_0x68da('0xe')](),_0x222f14();}),_0xf54f39[_0x68da('0x7')][_0x68da('0x1')](_0x53972c),_0x1799d9['children']['add'](_0x52384c),_0x3ebb65[_0x68da('0x13')]['addMany']([_0xf54f39,_0x1799d9]),_0x3f1ab0['on']('change:isOpen',()=>_0xfbd0c4()),_0x31e56a[_0x68da('0x5')][_0x68da('0x20')]('isEnabled')['to'](_0x28756a,_0x68da('0x1e'),_0x28756a,_0x68da('0x11'),_0x2b0214,_0x68da('0x19'),(_0x44d8c1,_0x415958,_0x108f08)=>_0x44d8c1&&_0x415958&&!_0x108f08),_0x31e56a['on']('submit',()=>(_0x2b0214[_0x68da('0x14')][_0x68da('0x10')](_0x2d4590)['saveRevision']({'name':_0x31e56a['revisionName']}),void _0x222f14())),_0x31e56a['on'](_0x68da('0x8'),()=>_0xfbd0c4()),_0x31e56a[_0x68da('0x1d')](),_0xfbd0c4(),_0x3f1ab0;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2c87=['revisionSelected','map','Compare\x20against\x20selected','destroy','getIndex','revisionSetName','change:diff','_revisionsRepository','focus','_handleEditorDataReady','_handleRevisionSelected','getLaterVisibleRevision','isVisible','length','_handleDiffChange','remove','_revisions','getRevision','defaultRevisionActions','appendChild','name','bind','locale','ready','repository','init','Name\x20this\x20revision','requires','availableRevisionActions','revisionHistory.viewerSidebarContainer','action','_sidebarView','nameRevision','getRevisionsInDiff','config','fieldView','_revisionViewer','revisionHistory.revisionActions','editor','diff','render','isSelected','isEnabled','_handleRevisionSetName','data','listenTo','add','element','pluginName','Restore\x20this\x20revision','setName','revisionHistory','_createRevisionActions','selectRevision','restoreRevision','newRevisionId','timePeriodViews','getEarlierVisibleRevision','compare','get','isReady','string'];(function(_0x5c8fa1,_0x2c8799){const _0x48b314=function(_0x184d60){while(--_0x184d60){_0x5c8fa1['push'](_0x5c8fa1['shift']());}};_0x48b314(++_0x2c8799);}(_0x2c87,0x1e9));const _0x48b3=function(_0x5c8fa1,_0x2c8799){_0x5c8fa1=_0x5c8fa1-0x0;let _0x48b314=_0x2c87[_0x5c8fa1];return _0x48b314;};import{Plugin as _0x3c3941}from'ckeditor5/src/core';import _0x42949f from'./revisionssidebarview';import _0x5eeaff from'../../revisionviewer';export default class w extends _0x3c3941{static get[_0x48b3('0x37')](){return'RevisionsSidebar';}static get[_0x48b3('0x22')](){return[_0x5eeaff];}constructor(_0x4f5506){super(_0x4f5506),this['_revisionViewer']=_0x4f5506['plugins'][_0x48b3('0x4')](_0x5eeaff),this['_revisionsRepository']=this[_0x48b3('0x2b')][_0x48b3('0x1f')],this['_sidebarView']=null;}[_0x48b3('0x20')](){const _0x39fa8f=this['_revisionsRepository'][_0x48b3('0x17')],_0x3c78cb=this[_0x48b3('0x3b')](),_0xa46dd5=this[_0x48b3('0x2d')]['config'][_0x48b3('0x4')](_0x48b3('0x24'));this[_0x48b3('0x26')]=new _0x42949f(this['editor'][_0x48b3('0x1d')],_0x39fa8f,_0x3c78cb),this[_0x48b3('0x26')]['on'](_0x48b3('0x7'),this['_handleRevisionSelected'][_0x48b3('0x1c')](this)),this[_0x48b3('0x26')]['on'](_0x48b3('0xc'),this['_handleRevisionSetName'][_0x48b3('0x1c')](this)),this['_sidebarView']['bind'](_0x48b3('0x31'))['to'](this[_0x48b3('0x2b')]),this['_sidebarView'][_0x48b3('0x1')]['on'](_0x48b3('0x35'),(_0x2331f8,_0x5c4d71)=>{_0x5c4d71['revisionViews']['on'](_0x48b3('0x35'),(_0x579fea,_0x62eae6)=>{_0x62eae6[_0x48b3('0x1c')](_0x48b3('0x31'),_0x48b3('0x5'))['to'](this['_revisionViewer']);});}),this[_0x48b3('0x26')][_0x48b3('0x2f')](),this[_0x48b3('0x34')](this[_0x48b3('0x2d')][_0x48b3('0x33')],_0x48b3('0x1e'),this[_0x48b3('0x10')][_0x48b3('0x1c')](this)),this['listenTo'](this[_0x48b3('0x2b')],_0x48b3('0xd'),this['_handleDiffChange'][_0x48b3('0x1c')](this)),_0xa46dd5[_0x48b3('0x1a')](this[_0x48b3('0x26')][_0x48b3('0x36')]);}[_0x48b3('0xa')](){this[_0x48b3('0x26')]['element'][_0x48b3('0x16')](),this[_0x48b3('0x26')]['destroy']();}[_0x48b3('0x10')](){const _0x35fc00=this['_revisionsRepository'][_0x48b3('0x18')](0x0);if(_0x35fc00){const _0x5c9d94=this[_0x48b3('0xe')][_0x48b3('0x2')](_0x35fc00['id']);this[_0x48b3('0x2b')][_0x48b3('0x3')](_0x35fc00,_0x5c9d94);}}[_0x48b3('0x11')](_0x20b5e7,_0x35b5fa){const _0x26f6b9=this[_0x48b3('0xe')][_0x48b3('0x18')](_0x35b5fa['id']),_0x3af58a=this['_revisionsRepository'][_0x48b3('0x2')](_0x26f6b9['id']);this[_0x48b3('0x2b')][_0x48b3('0x3')](_0x26f6b9,_0x3af58a);}[_0x48b3('0x32')](_0x1f9da5,_0x6d7eae){this['_revisionsRepository']['getRevision'](_0x6d7eae['id'])[_0x48b3('0x39')](_0x6d7eae[_0x48b3('0x1b')]);}[_0x48b3('0x15')](_0x22dff8,_0x1db1eb,_0x2f3c46){const _0x2874e8=this[_0x48b3('0xe')][_0x48b3('0x28')](_0x2f3c46);_0x2874e8[_0x48b3('0x14')]>0x2?(this[_0x48b3('0x26')]['highlightRevisions'](_0x2874e8),this['_sidebarView'][_0x48b3('0x3c')](null)):(this[_0x48b3('0x26')]['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x2874e8[0x0]));}[_0x48b3('0x3b')](){const _0x54ab99=this[_0x48b3('0x2d')],_0x2738c8=w['availableRevisionActions'],_0x57e0eb=_0x54ab99['config'][_0x48b3('0x4')](_0x48b3('0x2c'))||w[_0x48b3('0x19')];if(_0x57e0eb[_0x48b3('0x14')])return _0x57e0eb[_0x48b3('0x8')](_0x23add1=>{const _0x449015=_0x48b3('0x6')==typeof _0x23add1?Object['assign']({},_0x2738c8[_0x23add1]):_0x23add1;return _0x449015[_0x48b3('0x25')]=_0x449015[_0x48b3('0x25')][_0x48b3('0x1c')](this,_0x54ab99),_0x449015[_0x48b3('0x13')]&&(_0x449015[_0x48b3('0x13')]=_0x449015[_0x48b3('0x13')][_0x48b3('0x1c')](this,_0x54ab99)),_0x449015;});}}w[_0x48b3('0x23')]={'compareAgainstSelected':{'name':_0x48b3('0x9'),'action':({plugins:_0x399fbc},_0x49cea2)=>{const _0x5882df=_0x399fbc[_0x48b3('0x4')](_0x5eeaff),_0x2c9f3a=_0x5882df['repository'];let _0x2a2d9e=_0x5882df[_0x48b3('0x2e')][_0x48b3('0x0')],_0x2d0be6=_0x49cea2['id'];_0x2c9f3a[_0x48b3('0xb')](_0x2a2d9e)>_0x2c9f3a[_0x48b3('0xb')](_0x2d0be6)&&([_0x2a2d9e,_0x2d0be6]=[_0x2d0be6,_0x2a2d9e]),_0x5882df[_0x48b3('0x3')](_0x2a2d9e,_0x2d0be6);},'isVisible':({plugins:_0x31862e},_0x2f0956)=>{const _0x5e591a=_0x31862e['get'](_0x5eeaff);return!(_0x5e591a[_0x48b3('0x1f')][_0x48b3('0x28')](_0x5e591a[_0x48b3('0x2e')])[_0x48b3('0x14')]>0x2)&&!_0x2f0956[_0x48b3('0x30')];}},'restoreRevision':{'name':_0x48b3('0x38'),'action':(_0x5b781f,{id:_0x105260})=>{_0x5b781f[_0x48b3('0x29')][_0x48b3('0x4')](_0x48b3('0x3a'))['restoreRevisionCallback'](_0x105260);},'isVisible':({plugins:_0x3d00a1},_0x1159fd)=>!!_0x3d00a1['get'](_0x5eeaff)[_0x48b3('0x1f')][_0x48b3('0x12')](_0x1159fd['id'])},'nameRevision':{'name':_0x48b3('0x21'),'action':({plugins:_0x2e35ac},{id:_0x522f2f,revisionNameView:_0x2022e6})=>{const _0x15259c=_0x2e35ac[_0x48b3('0x4')](_0x5eeaff),_0x5f5021=_0x15259c['repository']['getEarlierVisibleRevision'](_0x522f2f);_0x15259c['compare'](_0x522f2f,_0x5f5021),_0x2022e6[_0x48b3('0xf')](),_0x2022e6[_0x48b3('0x2a')]['select']();}}},w['defaultRevisionActions']=['compareAgainstSelected',_0x48b3('0x3d'),_0x48b3('0x27')];
23
+ const _0x3276=['pluginName','restoreRevisionCallback','destroy','select','revisionHistory','getLaterVisibleRevision','getEarlierVisibleRevision','compareAgainstSelected','_createRevisionActions','newRevisionId','render','get','ready','init','fieldView','locale','compare','_handleDiffChange','editor','getIndex','action','data','isEnabled','selectRevision','_revisionsRepository','getRevisionsInDiff','setName','add','defaultRevisionActions','_revisionViewer','_handleEditorDataReady','highlightRevisions','nameRevision','revisionSelected','getRevision','_handleRevisionSetName','availableRevisionActions','change:diff','repository','config','assign','_handleRevisionSelected','map','bind','focus','revisionHistory.revisionActions','Name\x20this\x20revision','name','restoreRevision','Restore\x20this\x20revision','string','length','RevisionsSidebar','listenTo','_revisions','revisionSetName','appendChild','isSelected','isVisible','_sidebarView','element'];(function(_0x1bfe76,_0x32769c){const _0x4d69a1=function(_0x41a1f0){while(--_0x41a1f0){_0x1bfe76['push'](_0x1bfe76['shift']());}};_0x4d69a1(++_0x32769c);}(_0x3276,0x6b));const _0x4d69=function(_0x1bfe76,_0x32769c){_0x1bfe76=_0x1bfe76-0x0;let _0x4d69a1=_0x3276[_0x1bfe76];return _0x4d69a1;};import{Plugin as _0x57b296}from'ckeditor5/src/core';import _0x4b55b7 from'./revisionssidebarview';import _0x58653b from'../../revisionviewer';export default class w extends _0x57b296{static get[_0x4d69('0xf')](){return _0x4d69('0x6');}static get['requires'](){return[_0x58653b];}constructor(_0x23a5c4){super(_0x23a5c4),this[_0x4d69('0x2c')]=_0x23a5c4['plugins'][_0x4d69('0x1a')](_0x58653b),this[_0x4d69('0x27')]=this[_0x4d69('0x2c')][_0x4d69('0x35')],this[_0x4d69('0xd')]=null;}[_0x4d69('0x1c')](){const _0x3f375b=this[_0x4d69('0x27')][_0x4d69('0x8')],_0x2c83f6=this[_0x4d69('0x17')](),_0x2e4718=this[_0x4d69('0x21')][_0x4d69('0x36')][_0x4d69('0x1a')]('revisionHistory.viewerSidebarContainer');this[_0x4d69('0xd')]=new _0x4b55b7(this[_0x4d69('0x21')][_0x4d69('0x1e')],_0x3f375b,_0x2c83f6),this['_sidebarView']['on'](_0x4d69('0x30'),this[_0x4d69('0x38')][_0x4d69('0x3a')](this)),this[_0x4d69('0xd')]['on'](_0x4d69('0x9'),this[_0x4d69('0x32')]['bind'](this)),this[_0x4d69('0xd')][_0x4d69('0x3a')]('isEnabled')['to'](this[_0x4d69('0x2c')]),this['_sidebarView']['timePeriodViews']['on'](_0x4d69('0x2a'),(_0x525879,_0x2e4abb)=>{_0x2e4abb['revisionViews']['on']('add',(_0x4f026d,_0x245e28)=>{_0x245e28[_0x4d69('0x3a')](_0x4d69('0x25'),'isReady')['to'](this[_0x4d69('0x2c')]);});}),this['_sidebarView'][_0x4d69('0x19')](),this[_0x4d69('0x7')](this['editor'][_0x4d69('0x24')],_0x4d69('0x1b'),this['_handleEditorDataReady'][_0x4d69('0x3a')](this)),this[_0x4d69('0x7')](this[_0x4d69('0x2c')],_0x4d69('0x34'),this[_0x4d69('0x20')][_0x4d69('0x3a')](this)),_0x2e4718[_0x4d69('0xa')](this[_0x4d69('0xd')][_0x4d69('0xe')]);}[_0x4d69('0x11')](){this['_sidebarView'][_0x4d69('0xe')]['remove'](),this[_0x4d69('0xd')]['destroy']();}[_0x4d69('0x2d')](){const _0x9ddd7=this[_0x4d69('0x27')]['getRevision'](0x0);if(_0x9ddd7){const _0x59ce5e=this[_0x4d69('0x27')][_0x4d69('0x15')](_0x9ddd7['id']);this[_0x4d69('0x2c')][_0x4d69('0x1f')](_0x9ddd7,_0x59ce5e);}}[_0x4d69('0x38')](_0x4996eb,_0x15c24c){const _0x26608e=this[_0x4d69('0x27')]['getRevision'](_0x15c24c['id']),_0x454401=this[_0x4d69('0x27')][_0x4d69('0x15')](_0x26608e['id']);this[_0x4d69('0x2c')][_0x4d69('0x1f')](_0x26608e,_0x454401);}[_0x4d69('0x32')](_0x167593,_0x2a5bf5){this[_0x4d69('0x27')][_0x4d69('0x31')](_0x2a5bf5['id'])[_0x4d69('0x29')](_0x2a5bf5[_0x4d69('0x1')]);}[_0x4d69('0x20')](_0x2ab236,_0x4a5c0f,_0x338bef){const _0x3923d4=this[_0x4d69('0x27')][_0x4d69('0x28')](_0x338bef);_0x3923d4[_0x4d69('0x5')]>0x2?(this[_0x4d69('0xd')][_0x4d69('0x2e')](_0x3923d4),this[_0x4d69('0xd')][_0x4d69('0x26')](null)):(this[_0x4d69('0xd')][_0x4d69('0x2e')]([]),this['_sidebarView'][_0x4d69('0x26')](_0x3923d4[0x0]));}[_0x4d69('0x17')](){const _0x14c281=this[_0x4d69('0x21')],_0x2b490a=w[_0x4d69('0x33')],_0x1a5db1=_0x14c281[_0x4d69('0x36')][_0x4d69('0x1a')](_0x4d69('0x3c'))||w[_0x4d69('0x2b')];if(_0x1a5db1[_0x4d69('0x5')])return _0x1a5db1[_0x4d69('0x39')](_0x3c244a=>{const _0x23a6f2=_0x4d69('0x4')==typeof _0x3c244a?Object[_0x4d69('0x37')]({},_0x2b490a[_0x3c244a]):_0x3c244a;return _0x23a6f2['action']=_0x23a6f2[_0x4d69('0x23')]['bind'](this,_0x14c281),_0x23a6f2[_0x4d69('0xc')]&&(_0x23a6f2[_0x4d69('0xc')]=_0x23a6f2[_0x4d69('0xc')]['bind'](this,_0x14c281)),_0x23a6f2;});}}w[_0x4d69('0x33')]={'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x54d0ab},_0x416dd2)=>{const _0x97ca9a=_0x54d0ab[_0x4d69('0x1a')](_0x58653b),_0x2895da=_0x97ca9a[_0x4d69('0x35')];let _0x50a797=_0x97ca9a['diff'][_0x4d69('0x18')],_0x12840b=_0x416dd2['id'];_0x2895da[_0x4d69('0x22')](_0x50a797)>_0x2895da[_0x4d69('0x22')](_0x12840b)&&([_0x50a797,_0x12840b]=[_0x12840b,_0x50a797]),_0x97ca9a[_0x4d69('0x1f')](_0x50a797,_0x12840b);},'isVisible':({plugins:_0x280977},_0x2eaea1)=>{const _0x120301=_0x280977[_0x4d69('0x1a')](_0x58653b);return!(_0x120301[_0x4d69('0x35')]['getRevisionsInDiff'](_0x120301['diff'])[_0x4d69('0x5')]>0x2)&&!_0x2eaea1[_0x4d69('0xb')];}},'restoreRevision':{'name':_0x4d69('0x3'),'action':(_0x104a0f,{id:_0x370fa7})=>{_0x104a0f[_0x4d69('0x36')]['get'](_0x4d69('0x13'))[_0x4d69('0x10')](_0x370fa7);},'isVisible':({plugins:_0x1cb587},_0x12da11)=>!!_0x1cb587[_0x4d69('0x1a')](_0x58653b)[_0x4d69('0x35')][_0x4d69('0x14')](_0x12da11['id'])},'nameRevision':{'name':_0x4d69('0x0'),'action':({plugins:_0x366658},{id:_0x406747,revisionNameView:_0x4008b3})=>{const _0x3620c8=_0x366658['get'](_0x58653b),_0x14eee4=_0x3620c8[_0x4d69('0x35')][_0x4d69('0x15')](_0x406747);_0x3620c8[_0x4d69('0x1f')](_0x406747,_0x14eee4),_0x4008b3[_0x4d69('0x3b')](),_0x4008b3[_0x4d69('0x1d')][_0x4d69('0x12')]();}}},w['defaultRevisionActions']=[_0x4d69('0x16'),_0x4d69('0x2'),_0x4d69('0x2f')];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1529=['content','ck-reset_all','span','div','ck-revision-history-sidebar__header__label','ck-revision-history-sidebar__header'];(function(_0x2a7dfa,_0x152949){const _0x15167a=function(_0x12b0a8){while(--_0x12b0a8){_0x2a7dfa['push'](_0x2a7dfa['shift']());}};_0x15167a(++_0x152949);}(_0x1529,0x116));const _0x1516=function(_0x2a7dfa,_0x152949){_0x2a7dfa=_0x2a7dfa-0x0;let _0x15167a=_0x1529[_0x2a7dfa];return _0x15167a;};import{View as _0xb4cbc7,IconView as _0x12e06a}from'ckeditor5/src/ui';import{getTranslation as _0x527b28}from'../../utils/common-translations';import _0x4c1444 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0xb4cbc7{constructor(_0x210b06){super(_0x210b06);const _0x5e4479=new _0x12e06a();_0x5e4479[_0x1516('0x4')]=_0x4c1444,this['setTemplate']({'tag':_0x1516('0x1'),'attributes':{'class':['ck',_0x1516('0x5'),_0x1516('0x3')]},'children':[_0x5e4479,{'tag':_0x1516('0x0'),'attributes':{'class':['ck',_0x1516('0x2')]},'children':[_0x527b28(_0x210b06,'Revision\x20history')]}]});}}
23
+ const _0x4f5f=['Revision\x20history','span','ck-revision-history-sidebar__header','ck-revision-history-sidebar__header__label'];(function(_0xb2bdd9,_0x4f5f31){const _0x3b5a36=function(_0x3c4a83){while(--_0x3c4a83){_0xb2bdd9['push'](_0xb2bdd9['shift']());}};_0x3b5a36(++_0x4f5f31);}(_0x4f5f,0x92));const _0x3b5a=function(_0xb2bdd9,_0x4f5f31){_0xb2bdd9=_0xb2bdd9-0x0;let _0x3b5a36=_0x4f5f[_0xb2bdd9];return _0x3b5a36;};import{View as _0x1de9bc,IconView as _0xe60dd7}from'ckeditor5/src/ui';import{getTranslation as _0x4f3639}from'../../utils/common-translations';import _0x3d3932 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x1de9bc{constructor(_0x561642){super(_0x561642);const _0x5d20d=new _0xe60dd7();_0x5d20d['content']=_0x3d3932,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all',_0x3b5a('0x0')]},'children':[_0x5d20d,{'tag':_0x3b5a('0x3'),'attributes':{'class':['ck',_0x3b5a('0x1')]},'children':[_0x4f3639(_0x561642,_0x3b5a('0x2'))]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x463a=['_revisionActions','locale','add','delegate','ck-revision-history-sidebar__time-period__label','localizedPeriodName','createCollection','uiLanguage','removeRevision','remove','addRevision','ck-revision-history-sidebar__time-period','setName','div','select','find','startDate','revisionViews'];(function(_0x3a2798,_0x463a16){const _0x19c736=function(_0x264fe3){while(--_0x264fe3){_0x3a2798['push'](_0x3a2798['shift']());}};_0x19c736(++_0x463a16);}(_0x463a,0x158));const _0x19c7=function(_0x3a2798,_0x463a16){_0x3a2798=_0x3a2798-0x0;let _0x19c736=_0x463a[_0x3a2798];return _0x19c736;};import{View as _0x1596f2}from'ckeditor5/src/ui';import _0x45e674 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x5436ef}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x1596f2{constructor(_0x1529c7,_0x2d4ab6,_0x4e8a56){super(_0x1529c7);const _0x3223a2=_0x5436ef(_0x2d4ab6,this[_0x19c7('0x11')][_0x19c7('0x5')])[_0x19c7('0x3')];this[_0x19c7('0xe')]=_0x2d4ab6,this[_0x19c7('0xf')]=this[_0x19c7('0x4')](),this[_0x19c7('0x10')]=_0x4e8a56,this[_0x19c7('0xf')][_0x19c7('0x1')](_0x19c7('0xc'))['to'](this),this[_0x19c7('0xf')][_0x19c7('0x1')](_0x19c7('0xa'))['to'](this),this['setTemplate']({'tag':_0x19c7('0xb'),'attributes':{'class':['ck',_0x19c7('0x9')]},'children':[{'tag':'span','attributes':{'class':['ck',_0x19c7('0x2')]},'children':[{'text':_0x3223a2}]},{'tag':_0x19c7('0xb'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this[_0x19c7('0xf')]}]});}[_0x19c7('0x8')](_0x10fe4a){const _0x5ad8bf=new _0x45e674(this[_0x19c7('0x11')],_0x10fe4a,this['_revisionActions']);this[_0x19c7('0xf')][_0x19c7('0x0')](_0x5ad8bf);}[_0x19c7('0x6')](_0x23d20c){const _0x48f5fc=this[_0x19c7('0xf')][_0x19c7('0xd')](_0x1c2812=>_0x1c2812['id']===_0x23d20c['id']);this[_0x19c7('0xf')][_0x19c7('0x7')](_0x48f5fc);}}
23
+ const _0x1b3d=['locale','div','setName','delegate','ck-revision-history-sidebar__time-period__revisions','add','find','_revisionActions','span','localizedPeriodName','removeRevision','uiLanguage','revisionViews','addRevision','ck-revision-history-sidebar__time-period','setTemplate','createCollection','select'];(function(_0x56becb,_0x1b3da9){const _0x545994=function(_0xf2581e){while(--_0xf2581e){_0x56becb['push'](_0x56becb['shift']());}};_0x545994(++_0x1b3da9);}(_0x1b3d,0x1d0));const _0x5459=function(_0x56becb,_0x1b3da9){_0x56becb=_0x56becb-0x0;let _0x545994=_0x1b3d[_0x56becb];return _0x545994;};import{View as _0x53cd61}from'ckeditor5/src/ui';import _0x254914 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x5a02fa}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x53cd61{constructor(_0x3132e0,_0x5524ec,_0x5e616a){super(_0x3132e0);const _0x5d9f01=_0x5a02fa(_0x5524ec,this[_0x5459('0x4')][_0x5459('0xf')])[_0x5459('0xd')];this['startDate']=_0x5524ec,this[_0x5459('0x10')]=this[_0x5459('0x2')](),this[_0x5459('0xb')]=_0x5e616a,this[_0x5459('0x10')][_0x5459('0x7')](_0x5459('0x3'))['to'](this),this[_0x5459('0x10')][_0x5459('0x7')](_0x5459('0x6'))['to'](this),this[_0x5459('0x1')]({'tag':_0x5459('0x5'),'attributes':{'class':['ck',_0x5459('0x0')]},'children':[{'tag':_0x5459('0xc'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x5d9f01}]},{'tag':_0x5459('0x5'),'attributes':{'class':['ck',_0x5459('0x8')]},'children':this[_0x5459('0x10')]}]});}[_0x5459('0x11')](_0x1edc60){const _0x30c28c=new _0x254914(this[_0x5459('0x4')],_0x1edc60,this[_0x5459('0xb')]);this['revisionViews'][_0x5459('0x9')](_0x30c28c);}[_0x5459('0xe')](_0x48cfac){const _0x842582=this[_0x5459('0x10')][_0x5459('0xa')](_0x22eba2=>_0x22eba2['id']===_0x48cfac['id']);this['revisionViews']['remove'](_0x842582);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4134=['map','uiLanguage','highlight','ck-disabled','_revisions','highlightRevisions','getTime','isEnabled','startDate','ck-revision-history-sidebar','set','_removeRevision','createCollection','fire','deselect','remove','unhighlight','addRevision','revisionSelected','render','createdAt','setName','locale','select','selectRevision','timePeriodViews','delegate','bindTemplate','_getTimePeriodViewByStartDate','_revisionActions','some','revisionViews','removeRevision','_addRevision','ck-revision-history-sidebar__timeline','find','revisionSetName'];(function(_0xd6bc26,_0x4134dd){const _0x2d9c64=function(_0x4b7c29){while(--_0x4b7c29){_0xd6bc26['push'](_0xd6bc26['shift']());}};_0x2d9c64(++_0x4134dd);}(_0x4134,0x9c));const _0x2d9c=function(_0xd6bc26,_0x4134dd){_0xd6bc26=_0xd6bc26-0x0;let _0x2d9c64=_0x4134[_0xd6bc26];return _0x2d9c64;};import{View as _0x2b1a1f}from'ckeditor5/src/ui';import _0xba7c2b from'./revisionssidebartimeperiodview';import _0x42e353 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x6bb0a0}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x2b1a1f{constructor(_0x4f77cc,_0x31f4b1,_0x25420d){super(_0x4f77cc);const _0x4555b5=this[_0x2d9c('0x13')];this[_0x2d9c('0x11')]=this[_0x2d9c('0x4')](),this[_0x2d9c('0x11')][_0x2d9c('0x12')]('select')['to'](this),this[_0x2d9c('0x11')]['delegate'](_0x2d9c('0xd'))['to'](this),this['_revisions']=_0x31f4b1,this[_0x2d9c('0x15')]=_0x25420d,this['on'](_0x2d9c('0xf'),(_0x1f3afe,_0x56c0c8)=>{this[_0x2d9c('0x5')](_0x2d9c('0xa'),_0x56c0c8);}),this['on'](_0x2d9c('0xd'),(_0xeedee4,_0x35b5af)=>{this[_0x2d9c('0x5')](_0x2d9c('0x1c'),_0x35b5af);}),this[_0x2d9c('0x2')]('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners',_0x2d9c('0x1')]},'children':[new _0x42e353(_0x4f77cc),{'tag':'div','attributes':{'class':['ck',_0x2d9c('0x1a'),_0x4555b5['if'](_0x2d9c('0x24'),_0x2d9c('0x20'),_0xdcb692=>!_0xdcb692)]},'children':this[_0x2d9c('0x11')]}]});}[_0x2d9c('0xb')](){super[_0x2d9c('0xb')]();for(const _0x59c0b0 of this['_revisions'])this[_0x2d9c('0x19')](_0x59c0b0);this[_0x2d9c('0x21')]['on']('add',(_0xe8ed21,_0x1b7fef)=>{this['_addRevision'](_0x1b7fef);}),this['_revisions']['on'](_0x2d9c('0x7'),(_0x3998c1,_0x5a2242)=>{this[_0x2d9c('0x3')](_0x5a2242);});}get['revisionViews'](){return this[_0x2d9c('0x11')]['map'](_0x1ecab7=>_0x1ecab7[_0x2d9c('0x17')][_0x2d9c('0x1d')](_0x1fcda0=>_0x1fcda0))['flat']();}[_0x2d9c('0x10')](_0x236a7b){for(const _0xff9608 of this[_0x2d9c('0x17')])_0x236a7b&&_0x236a7b['id']===_0xff9608['id']?_0xff9608[_0x2d9c('0xf')]():_0xff9608[_0x2d9c('0x6')]();}[_0x2d9c('0x22')](_0x44ba32){for(const _0xbd16c8 of this[_0x2d9c('0x17')])_0x44ba32[_0x2d9c('0x16')](({id:_0x2479be})=>_0x2479be===_0xbd16c8['id'])?_0xbd16c8[_0x2d9c('0x1f')]():_0xbd16c8[_0x2d9c('0x8')]();}['_addRevision'](_0x4de85f){const _0x1699ad=_0x6bb0a0(_0x4de85f[_0x2d9c('0xc')],this[_0x2d9c('0xe')][_0x2d9c('0x1e')])['startDate'];let _0x1dd6f1=this[_0x2d9c('0x11')]['get'](0x0);_0x1dd6f1&&_0x1dd6f1[_0x2d9c('0x0')][_0x2d9c('0x23')]()===_0x1699ad[_0x2d9c('0x23')]()||(_0x1dd6f1=new _0xba7c2b(this[_0x2d9c('0xe')],_0x1699ad,this[_0x2d9c('0x15')]),this[_0x2d9c('0x11')]['add'](_0x1dd6f1)),_0x1dd6f1[_0x2d9c('0x9')](_0x4de85f);}[_0x2d9c('0x3')](_0x50bef2){const _0x1a7803=_0x6bb0a0(_0x50bef2['createdAt'],this[_0x2d9c('0xe')]['uiLanguage'])[_0x2d9c('0x0')];this[_0x2d9c('0x14')](_0x1a7803)[_0x2d9c('0x18')](_0x50bef2);}[_0x2d9c('0x14')](_0x22bcd9){return this[_0x2d9c('0x11')][_0x2d9c('0x1b')](_0x21aeec=>_0x21aeec[_0x2d9c('0x0')][_0x2d9c('0x23')]()===_0x22bcd9[_0x2d9c('0x23')]());}}
23
+ const _0x2d8e=['locale','select','add','some','map','_revisions','setName','startDate','revisionViews','ck-rounded-corners','get','highlightRevisions','find','fire','removeRevision','set','flat','uiLanguage','_revisionActions','timePeriodViews','addRevision','delegate','_getTimePeriodViewByStartDate','ck-revision-history-sidebar__timeline','isEnabled','_addRevision','setTemplate','deselect','ck-disabled','unhighlight','revisionSetName','bindTemplate','div','getTime','_removeRevision','createdAt'];(function(_0x190915,_0x2d8eac){const _0x481437=function(_0x13a1a8){while(--_0x13a1a8){_0x190915['push'](_0x190915['shift']());}};_0x481437(++_0x2d8eac);}(_0x2d8e,0x6a));const _0x4814=function(_0x190915,_0x2d8eac){_0x190915=_0x190915-0x0;let _0x481437=_0x2d8e[_0x190915];return _0x481437;};import{View as _0x49fc86}from'ckeditor5/src/ui';import _0xc91592 from'./revisionssidebartimeperiodview';import _0x51fa40 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x494f74}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x49fc86{constructor(_0x582cdd,_0x1d19b0,_0x43719e){super(_0x582cdd);const _0x10b0e7=this[_0x4814('0x21')];this[_0x4814('0x15')]=this['createCollection'](),this[_0x4814('0x15')]['delegate'](_0x4814('0x3'))['to'](this),this['timePeriodViews'][_0x4814('0x17')](_0x4814('0x8'))['to'](this),this[_0x4814('0x7')]=_0x1d19b0,this[_0x4814('0x14')]=_0x43719e,this['on'](_0x4814('0x3'),(_0x1e1b2d,_0x4efb9c)=>{this[_0x4814('0xf')]('revisionSelected',_0x4efb9c);}),this['on'](_0x4814('0x8'),(_0x750819,_0x653b43)=>{this[_0x4814('0xf')](_0x4814('0x20'),_0x653b43);}),this[_0x4814('0x11')]('isEnabled',!0x1),this[_0x4814('0x1c')]({'tag':_0x4814('0x22'),'attributes':{'class':['ck','ck-reset',_0x4814('0xb'),'ck-revision-history-sidebar']},'children':[new _0x51fa40(_0x582cdd),{'tag':_0x4814('0x22'),'attributes':{'class':['ck',_0x4814('0x19'),_0x10b0e7['if'](_0x4814('0x1a'),_0x4814('0x1e'),_0x5147d4=>!_0x5147d4)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x4f3348 of this['_revisions'])this[_0x4814('0x1b')](_0x4f3348);this['_revisions']['on'](_0x4814('0x4'),(_0x3b4541,_0x3b5411)=>{this['_addRevision'](_0x3b5411);}),this[_0x4814('0x7')]['on']('remove',(_0x142306,_0x3bf866)=>{this[_0x4814('0x0')](_0x3bf866);});}get[_0x4814('0xa')](){return this[_0x4814('0x15')][_0x4814('0x6')](_0x3f125e=>_0x3f125e[_0x4814('0xa')][_0x4814('0x6')](_0x52fdde=>_0x52fdde))[_0x4814('0x12')]();}['selectRevision'](_0x12d8be){for(const _0x1da9df of this[_0x4814('0xa')])_0x12d8be&&_0x12d8be['id']===_0x1da9df['id']?_0x1da9df['select']():_0x1da9df[_0x4814('0x1d')]();}[_0x4814('0xd')](_0x4b2791){for(const _0x39db19 of this[_0x4814('0xa')])_0x4b2791[_0x4814('0x5')](({id:_0x24bb80})=>_0x24bb80===_0x39db19['id'])?_0x39db19['highlight']():_0x39db19[_0x4814('0x1f')]();}[_0x4814('0x1b')](_0x59eeab){const _0x107097=_0x494f74(_0x59eeab['createdAt'],this['locale'][_0x4814('0x13')])[_0x4814('0x9')];let _0x21b91a=this['timePeriodViews'][_0x4814('0xc')](0x0);_0x21b91a&&_0x21b91a[_0x4814('0x9')][_0x4814('0x23')]()===_0x107097['getTime']()||(_0x21b91a=new _0xc91592(this[_0x4814('0x2')],_0x107097,this['_revisionActions']),this['timePeriodViews'][_0x4814('0x4')](_0x21b91a)),_0x21b91a[_0x4814('0x16')](_0x59eeab);}['_removeRevision'](_0x49c941){const _0x9ed70e=_0x494f74(_0x49c941[_0x4814('0x1')],this['locale'][_0x4814('0x13')])['startDate'];this[_0x4814('0x18')](_0x9ed70e)[_0x4814('0x10')](_0x49c941);}[_0x4814('0x18')](_0x173bd0){return this[_0x4814('0x15')][_0x4814('0xe')](_0x5d690a=>_0x5d690a[_0x4814('0x9')]['getTime']()===_0x173bd0['getTime']());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x6b36=['setLocale','startOf','toRelativeCalendar','day','month','hasSame','year','toJSDate','fromJSDate','minus','local','monthLong'];(function(_0x5533e8,_0x6b365){const _0x1eaae2=function(_0xa008c8){while(--_0xa008c8){_0x5533e8['push'](_0x5533e8['shift']());}};_0x1eaae2(++_0x6b365);}(_0x6b36,0x1ca));const _0x1eaa=function(_0x5533e8,_0x6b365){_0x5533e8=_0x5533e8-0x0;let _0x1eaae2=_0x6b36[_0x5533e8];return _0x1eaae2;};import{DateTime as _0x3cbe76}from'luxon';export function getDateTimePeriodInfo(_0x55fd46,_0x47b6d9){const _0x5cc7e0=_0x3cbe76[_0x1eaa('0x6')](_0x55fd46)[_0x1eaa('0xa')](_0x47b6d9),_0x4da392=_0x3cbe76[_0x1eaa('0x8')](),_0x242b2c=_0x4da392[_0x1eaa('0x7')]({'days':0x1})[_0x1eaa('0xb')](_0x1eaa('0x1'));let _0x3211ce,_0x511ce8;return _0x5cc7e0[_0x1eaa('0x3')](_0x4da392,_0x1eaa('0x1'))?(_0x3211ce=_0x5cc7e0[_0x1eaa('0xb')](_0x1eaa('0x1'))[_0x1eaa('0x5')](),_0x511ce8=_0x5cc7e0[_0x1eaa('0x0')]()):_0x5cc7e0[_0x1eaa('0x3')](_0x242b2c,_0x1eaa('0x1'))?(_0x3211ce=_0x242b2c[_0x1eaa('0x5')](),_0x511ce8=_0x5cc7e0[_0x1eaa('0x0')]()):_0x5cc7e0[_0x1eaa('0x3')](_0x4da392,'week')?(_0x3211ce=_0x5cc7e0[_0x1eaa('0xb')]('week')['toJSDate'](),_0x511ce8=_0x5cc7e0['weekdayLong']||''):_0x5cc7e0[_0x1eaa('0x3')](_0x4da392,_0x1eaa('0x4'))?(_0x3211ce=_0x5cc7e0['startOf'](_0x1eaa('0x2'))[_0x1eaa('0x5')](),_0x511ce8=_0x5cc7e0[_0x1eaa('0x9')]||''):(_0x3211ce=_0x5cc7e0[_0x1eaa('0xb')](_0x1eaa('0x4'))[_0x1eaa('0x5')](),_0x511ce8=String(_0x5cc7e0[_0x1eaa('0x4')])),{'startDate':_0x3211ce,'localizedPeriodName':_0x511ce8};}
23
+ const _0x1ab1=['minus','week','hasSame','monthLong','toJSDate','local','toRelativeCalendar','year','month','fromJSDate','day','startOf'];(function(_0x2fe5ff,_0x1ab1e4){const _0x5a063a=function(_0x4d2e25){while(--_0x4d2e25){_0x2fe5ff['push'](_0x2fe5ff['shift']());}};_0x5a063a(++_0x1ab1e4);}(_0x1ab1,0x12d));const _0x5a06=function(_0x2fe5ff,_0x1ab1e4){_0x2fe5ff=_0x2fe5ff-0x0;let _0x5a063a=_0x1ab1[_0x2fe5ff];return _0x5a063a;};import{DateTime as _0xa75287}from'luxon';export function getDateTimePeriodInfo(_0x3cc72c,_0x5f0ca2){const _0x12ee65=_0xa75287[_0x5a06('0x8')](_0x3cc72c)['setLocale'](_0x5f0ca2),_0x44678e=_0xa75287[_0x5a06('0x4')](),_0x4d6c67=_0x44678e[_0x5a06('0xb')]({'days':0x1})[_0x5a06('0xa')](_0x5a06('0x9'));let _0x17475a,_0x41bc14;return _0x12ee65[_0x5a06('0x1')](_0x44678e,'day')?(_0x17475a=_0x12ee65[_0x5a06('0xa')]('day')['toJSDate'](),_0x41bc14=_0x12ee65['toRelativeCalendar']()):_0x12ee65[_0x5a06('0x1')](_0x4d6c67,'day')?(_0x17475a=_0x4d6c67[_0x5a06('0x3')](),_0x41bc14=_0x12ee65[_0x5a06('0x5')]()):_0x12ee65['hasSame'](_0x44678e,'week')?(_0x17475a=_0x12ee65['startOf'](_0x5a06('0x0'))[_0x5a06('0x3')](),_0x41bc14=_0x12ee65['weekdayLong']||''):_0x12ee65[_0x5a06('0x1')](_0x44678e,_0x5a06('0x6'))?(_0x17475a=_0x12ee65[_0x5a06('0xa')](_0x5a06('0x7'))[_0x5a06('0x3')](),_0x41bc14=_0x12ee65[_0x5a06('0x2')]||''):(_0x17475a=_0x12ee65[_0x5a06('0xa')](_0x5a06('0x6'))['toJSDate'](),_0x41bc14=String(_0x12ee65['year'])),{'startDate':_0x17475a,'localizedPeriodName':_0x41bc14};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xcf84=['bindTemplate','ck-revision-change__label','element','setTemplate','Suggested\x20by','ck-annotation','span','div','changeId','ck-revision-change','Removed\x20by','name','set','isSuggestion','type','focus'];(function(_0x868983,_0xcf8487){const _0x5655c5=function(_0x3413dd){while(--_0x3413dd){_0x868983['push'](_0x868983['shift']());}};_0x5655c5(++_0xcf8487);}(_0xcf84,0x87));const _0x5655=function(_0x868983,_0xcf8487){_0x868983=_0x868983-0x0;let _0x5655c5=_0xcf84[_0x868983];return _0x5655c5;};import{View as _0x1ee509}from'ckeditor5/src/ui';import{getTranslation as _0x56e775}from'../../utils/common-translations';export default class Z extends _0x1ee509{constructor(_0x340640,_0x5d2320){super(_0x340640),this['_model']=_0x5d2320,this[_0x5655('0x1')]=_0x5d2320['id'];const _0x284d6b=this[_0x5655('0x9')],_0x443f31=_0x56e775(_0x340640,_0x5d2320['data'][_0x5655('0x6')]?_0x5655('0xd'):'add'==_0x5d2320[_0x5655('0x7')]?'Added\x20by':_0x5655('0x3'));this[_0x5655('0x5')](_0x5655('0x7'),_0x5d2320['type']),this[_0x5655('0xc')]({'tag':_0x5655('0x0'),'attributes':{'class':[_0x5655('0xe'),_0x5655('0x2'),_0x284d6b['to']('type',_0x16266d=>'ck-revision-change__'+_0x16266d)],'tabindex':-0x1},'children':[{'tag':_0x5655('0xf'),'children':[{'tag':_0x5655('0xf'),'attributes':{'class':[_0x5655('0xa')]},'children':[{'text':_0x443f31}]},{'text':'\x20'+_0x5d2320['author'][_0x5655('0x4')]}]}]});}[_0x5655('0x8')](){this[_0x5655('0xb')]['focus']();}}
23
+ const _0x4032=['span','setTemplate','type','ck-revision-change__label','Suggested\x20by','name','add','bindTemplate','changeId','author','focus','Removed\x20by','isSuggestion','data','element','_model','ck-revision-change__'];(function(_0x2566e5,_0x403234){const _0x465902=function(_0x21ea79){while(--_0x21ea79){_0x2566e5['push'](_0x2566e5['shift']());}};_0x465902(++_0x403234);}(_0x4032,0x101));const _0x4659=function(_0x2566e5,_0x403234){_0x2566e5=_0x2566e5-0x0;let _0x465902=_0x4032[_0x2566e5];return _0x465902;};import{View as _0x13439a}from'ckeditor5/src/ui';import{getTranslation as _0x3d469b}from'../../utils/common-translations';export default class Z extends _0x13439a{constructor(_0x2dd295,_0x5e8c2a){super(_0x2dd295),this[_0x4659('0xd')]=_0x5e8c2a,this[_0x4659('0x6')]=_0x5e8c2a['id'];const _0x520b64=this[_0x4659('0x5')],_0x2a1181=_0x3d469b(_0x2dd295,_0x5e8c2a[_0x4659('0xb')][_0x4659('0xa')]?_0x4659('0x2'):_0x4659('0x4')==_0x5e8c2a[_0x4659('0x0')]?'Added\x20by':_0x4659('0x9'));this['set']('type',_0x5e8c2a[_0x4659('0x0')]),this[_0x4659('0x10')]({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x520b64['to'](_0x4659('0x0'),_0x2a372c=>_0x4659('0xe')+_0x2a372c)],'tabindex':-0x1},'children':[{'tag':_0x4659('0xf'),'children':[{'tag':_0x4659('0xf'),'attributes':{'class':[_0x4659('0x1')]},'children':[{'text':_0x2a1181}]},{'text':'\x20'+_0x5e8c2a[_0x4659('0x7')][_0x4659('0x3')]}]}]});}[_0x4659('0x8')](){this[_0x4659('0xc')][_0x4659('0x8')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1f11=['div','isReady','isEnabled','bind','_isStatusLabelVisible','set','Total','fire','forward','isNavigationMode','EDIT_X_OF_Y_REVISIONS','ck-revision-history-ui__changes-navigation','ck-revision-history-ui__changes-navigation__wrapper','execute','isForwardNavigationEnabled','bindTemplate','numberOfChanges','isBackwardNavigationEnabled','NUMBER_OF_CHANGES','span','currentChangeNumber','ck-hidden','ck-revision-history-ui','Loading...','setTemplate','ck-revision-history-ui__changes-navigation__label','Show\x20previous\x20change','X_OF_Y_CHANGES'];(function(_0x445ca7,_0x1f1124){const _0x5f087d=function(_0x5d6baf){while(--_0x5d6baf){_0x445ca7['push'](_0x445ca7['shift']());}};_0x5f087d(++_0x1f1124);}(_0x1f11,0x183));const _0x5f08=function(_0x445ca7,_0x1f1124){_0x445ca7=_0x445ca7-0x0;let _0x5f087d=_0x1f11[_0x445ca7];return _0x5f087d;};import{View as _0x51dd3b,ButtonView as _0x2a41fc,ToolbarSeparatorView as _0x3343d3}from'ckeditor5/src/ui';import{getTranslation as _0x3e314b}from'../../utils/common-translations';import _0x5d7f7a from'../../../theme/icons/arrow-up.svg';import _0x3f83ba from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x51dd3b{constructor(_0x540b45){super(_0x540b45);const _0x4ab8f7=this[_0x5f08('0x14')],_0x435ee4=new _0x2a41fc(_0x540b45),_0x45d569=new _0x2a41fc(_0x540b45);this[_0x5f08('0xa')](_0x5f08('0xe'),!0x1),this['set'](_0x5f08('0x6'),!0x1),this[_0x5f08('0xa')](_0x5f08('0x19'),0x0),this[_0x5f08('0xa')](_0x5f08('0x15'),0x0),this['set']('isForwardNavigationEnabled',!0x1),this[_0x5f08('0xa')](_0x5f08('0x16'),!0x1),this[_0x5f08('0x8')](_0x5f08('0x9'))['to'](this,_0x5f08('0x6'),this,'numberOfChanges',(_0x25d51b,_0x3d953c)=>_0x25d51b&&_0x3d953c>0x0),this[_0x5f08('0x8')]('_statusText')['to'](this,'isReady',this,_0x5f08('0x19'),this,'numberOfChanges',this,_0x5f08('0xe'),(_0x49bdc9,_0x191aa6,_0x153c8c,_0x5d0d9a)=>{if(!_0x49bdc9)return _0x3e314b(_0x540b45,_0x5f08('0x0'));if(!_0x153c8c)return _0x3e314b(_0x540b45,'No\x20changes');const _0x2361b9=_0x3e314b(_0x540b45,_0x5f08('0x17'),_0x153c8c);return _0x5d0d9a?_0x3e314b(_0x540b45,_0x5f08('0x4'),[_0x191aa6+0x1,_0x153c8c]):_0x2361b9;}),_0x435ee4[_0x5f08('0xa')]({'label':_0x3e314b(_0x540b45,_0x5f08('0x3')),'tooltip':!0x0,'icon':_0x5d7f7a}),_0x45d569['set']({'label':_0x3e314b(_0x540b45,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x3f83ba}),_0x435ee4[_0x5f08('0x8')](_0x5f08('0x7'))['to'](this,'isBackwardNavigationEnabled'),_0x45d569['bind'](_0x5f08('0x7'))['to'](this,_0x5f08('0x13')),_0x435ee4['on'](_0x5f08('0x12'),()=>this[_0x5f08('0xc')](_0x5f08('0x12'),'backward')),_0x45d569['on'](_0x5f08('0x12'),()=>this[_0x5f08('0xc')](_0x5f08('0x12'),_0x5f08('0xd'))),this[_0x5f08('0x1')]({'tag':_0x5f08('0x5'),'attributes':{'class':['ck',_0x5f08('0x1b'),_0x5f08('0x10')]},'children':[{'tag':_0x5f08('0x18'),'attributes':{'class':[_0x5f08('0x11')]},'children':[{'tag':'span','attributes':{'class':[_0x5f08('0x2'),_0x4ab8f7['if'](_0x5f08('0x9'),_0x5f08('0x1a'),_0x1a5b86=>!_0x1a5b86)]},'children':[{'text':_0x4ab8f7['to'](_0x5f08('0xe'),_0x4c6bda=>_0x4c6bda?_0x3e314b(_0x540b45,_0x5f08('0xf'))+':\x20':_0x3e314b(_0x540b45,_0x5f08('0xb'))+':\x20')}]},{'text':_0x4ab8f7['to']('_statusText')}]},new _0x3343d3(),{'tag':_0x5f08('0x5'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x435ee4,_0x45d569]}]});}}
23
+ const _0x40a3=['Total','bindTemplate','setTemplate','ck-hidden','ck-revision-history-ui','ck-revision-history-ui__changes-navigation__wrapper','isReady','bind','currentChangeNumber','ck-revision-history-ui__changes-navigation','No\x20changes','Loading...','Show\x20next\x20change','span','ck-revision-history-ui__changes-navigation__navigation','_isStatusLabelVisible','div','Show\x20previous\x20change','isNavigationMode','isForwardNavigationEnabled','fire','isBackwardNavigationEnabled','set','ck-revision-history-ui__changes-navigation__label','numberOfChanges','isEnabled','NUMBER_OF_CHANGES','backward','_statusText','execute','forward'];(function(_0x423759,_0x40a3c8){const _0x318fcb=function(_0x12546a){while(--_0x12546a){_0x423759['push'](_0x423759['shift']());}};_0x318fcb(++_0x40a3c8);}(_0x40a3,0x75));const _0x318f=function(_0x423759,_0x40a3c8){_0x423759=_0x423759-0x0;let _0x318fcb=_0x40a3[_0x423759];return _0x318fcb;};import{View as _0x445218,ButtonView as _0x4a9a38,ToolbarSeparatorView as _0x252de6}from'ckeditor5/src/ui';import{getTranslation as _0x416c39}from'../../utils/common-translations';import _0x54667d from'../../../theme/icons/arrow-up.svg';import _0x278af9 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x445218{constructor(_0x1862c9){super(_0x1862c9);const _0x1dc214=this[_0x318f('0x8')],_0x164747=new _0x4a9a38(_0x1862c9),_0x8e0e4d=new _0x4a9a38(_0x1862c9);this[_0x318f('0x1d')](_0x318f('0x19'),!0x1),this[_0x318f('0x1d')](_0x318f('0xd'),!0x1),this[_0x318f('0x1d')](_0x318f('0xf'),0x0),this[_0x318f('0x1d')]('numberOfChanges',0x0),this[_0x318f('0x1d')](_0x318f('0x1a'),!0x1),this['set'](_0x318f('0x1c'),!0x1),this[_0x318f('0xe')]('_isStatusLabelVisible')['to'](this,_0x318f('0xd'),this,_0x318f('0x0'),(_0x2030b1,_0xcd8679)=>_0x2030b1&&_0xcd8679>0x0),this[_0x318f('0xe')](_0x318f('0x4'))['to'](this,_0x318f('0xd'),this,_0x318f('0xf'),this,_0x318f('0x0'),this,_0x318f('0x19'),(_0x59c56d,_0x4a71a1,_0x14fe80,_0x455325)=>{if(!_0x59c56d)return _0x416c39(_0x1862c9,_0x318f('0x12'));if(!_0x14fe80)return _0x416c39(_0x1862c9,_0x318f('0x11'));const _0x51890b=_0x416c39(_0x1862c9,_0x318f('0x2'),_0x14fe80);return _0x455325?_0x416c39(_0x1862c9,'X_OF_Y_CHANGES',[_0x4a71a1+0x1,_0x14fe80]):_0x51890b;}),_0x164747['set']({'label':_0x416c39(_0x1862c9,_0x318f('0x18')),'tooltip':!0x0,'icon':_0x54667d}),_0x8e0e4d['set']({'label':_0x416c39(_0x1862c9,_0x318f('0x13')),'tooltip':!0x0,'icon':_0x278af9}),_0x164747[_0x318f('0xe')](_0x318f('0x1'))['to'](this,_0x318f('0x1c')),_0x8e0e4d[_0x318f('0xe')]('isEnabled')['to'](this,_0x318f('0x1a')),_0x164747['on'](_0x318f('0x5'),()=>this[_0x318f('0x1b')](_0x318f('0x5'),_0x318f('0x3'))),_0x8e0e4d['on'](_0x318f('0x5'),()=>this[_0x318f('0x1b')](_0x318f('0x5'),_0x318f('0x6'))),this[_0x318f('0x9')]({'tag':_0x318f('0x17'),'attributes':{'class':['ck',_0x318f('0xb'),_0x318f('0x10')]},'children':[{'tag':_0x318f('0x14'),'attributes':{'class':[_0x318f('0xc')]},'children':[{'tag':_0x318f('0x14'),'attributes':{'class':[_0x318f('0x1e'),_0x1dc214['if'](_0x318f('0x16'),_0x318f('0xa'),_0x14b25f=>!_0x14b25f)]},'children':[{'text':_0x1dc214['to']('isNavigationMode',_0x16a1f9=>_0x16a1f9?_0x416c39(_0x1862c9,'EDIT_X_OF_Y_REVISIONS')+':\x20':_0x416c39(_0x1862c9,_0x318f('0x7'))+':\x20')}]},{'text':_0x1dc214['to']('_statusText')}]},new _0x252de6(),{'tag':_0x318f('0x17'),'attributes':{'class':[_0x318f('0x15')]},'children':[_0x164747,_0x8e0e4d]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x314d=['change','ck-editor__editable__loading-overlay','show','RevisionViewerLoadingOverlay','view','addClass','editor','editing','document'];(function(_0x52429c,_0x314d53){const _0x4e7a57=function(_0x34c018){while(--_0x34c018){_0x52429c['push'](_0x52429c['shift']());}};_0x4e7a57(++_0x314d53);}(_0x314d,0x1bd));const _0x4e7a=function(_0x52429c,_0x314d53){_0x52429c=_0x52429c-0x0;let _0x4e7a57=_0x314d[_0x52429c];return _0x4e7a57;};import{Plugin as _0x2028d9}from'ckeditor5/src/core';const oe=_0x4e7a('0x6');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x2028d9{static get['pluginName'](){return _0x4e7a('0x8');}[_0x4e7a('0x7')](){const _0x45c8f5=this[_0x4e7a('0x2')][_0x4e7a('0x3')][_0x4e7a('0x0')];_0x45c8f5[_0x4e7a('0x5')](_0x3633e0=>{for(const _0x1d197f of _0x45c8f5['document']['roots'])_0x3633e0[_0x4e7a('0x1')](oe,_0x1d197f);});}['hide'](){const _0x5c796b=this[_0x4e7a('0x2')]['editing']['view'];_0x5c796b[_0x4e7a('0x5')](_0x44ccea=>{for(const _0x33fac7 of _0x5c796b[_0x4e7a('0x4')]['roots'])_0x44ccea['removeClass'](oe,_0x33fac7);});}}
23
+ const _0x4207=['hide','show','view','ck-editor__editable__loading-overlay','editing','document','roots','addClass','pluginName','change','editor','removeClass'];(function(_0x157b9a,_0x420788){const _0x270f22=function(_0x33e606){while(--_0x33e606){_0x157b9a['push'](_0x157b9a['shift']());}};_0x270f22(++_0x420788);}(_0x4207,0xbe));const _0x270f=function(_0x157b9a,_0x420788){_0x157b9a=_0x157b9a-0x0;let _0x270f22=_0x4207[_0x157b9a];return _0x270f22;};import{Plugin as _0x247cc3}from'ckeditor5/src/core';const oe=_0x270f('0x5');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x247cc3{static get[_0x270f('0xa')](){return'RevisionViewerLoadingOverlay';}[_0x270f('0x3')](){const _0x22e87e=this[_0x270f('0x0')][_0x270f('0x6')]['view'];_0x22e87e['change'](_0x4d2454=>{for(const _0xf1207e of _0x22e87e['document']['roots'])_0x4d2454[_0x270f('0x9')](oe,_0xf1207e);});}[_0x270f('0x2')](){const _0x3ce230=this['editor']['editing'][_0x270f('0x4')];_0x3ce230[_0x270f('0xb')](_0x4906d7=>{for(const _0x3895fe of _0x3ce230[_0x270f('0x7')][_0x270f('0x8')])_0x4906d7[_0x270f('0x1')](oe,_0x3895fe);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1891=['Restore\x20this\x20revision','bind','add','get','changesNavigation','forward','execute','isReady','revisionHistory','init','editor','commands','ck-revision-history-ui__back-to-editing','numberOfChanges','plugins','Back\x20to\x20editing','showNextChange','RevisionViewerUI','isNavigationMode','listenTo','isForwardNavigationEnabled','show','restoreRevision','showPreviousChange','componentFactory','closeRevisionViewerCallback','isBackwardNavigationEnabled','exitToEditing','isEnabled','pluginName'];(function(_0x576b52,_0x1891cc){const _0x29144f=function(_0x2432f4){while(--_0x2432f4){_0x576b52['push'](_0x576b52['shift']());}};_0x29144f(++_0x1891cc);}(_0x1891,0x1d3));const _0x2914=function(_0x576b52,_0x1891cc){_0x576b52=_0x576b52-0x0;let _0x29144f=_0x1891[_0x576b52];return _0x29144f;};import{Plugin as _0x3c53b4}from'ckeditor5/src/core';import{ButtonView as _0x16d566}from'ckeditor5/src/ui';import _0x35f6a4 from'./changesnavigationview';import _0x57ccbc from'./../../revisionviewer';import _0x58ba39 from'./revisionviewerloadingoverlay';import{getTranslation as _0x818292}from'../../utils/common-translations';import _0x465f06 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x3c53b4{static get[_0x2914('0xc')](){return _0x2914('0x0');}static get['requires'](){return[_0x57ccbc,_0x58ba39];}[_0x2914('0x16')](){const _0x251095=this[_0x2914('0x17')],_0x16e4d0=_0x251095[_0x2914('0x1b')]['get'](_0x57ccbc),_0x5912bc=_0x251095['plugins']['get'](_0x58ba39);_0x251095['ui'][_0x2914('0x7')][_0x2914('0xf')](_0x2914('0xa'),_0x2a7bf5=>{const _0x25c03d=new _0x16d566(_0x2a7bf5);return _0x25c03d['set']({'label':_0x818292(_0x2a7bf5,_0x2914('0x1c')),'icon':_0x465f06,'withText':!0x0,'tooltip':!0x0,'class':_0x2914('0x19')}),this[_0x2914('0x2')](_0x25c03d,_0x2914('0x13'),()=>{_0x251095['config']['get'](_0x2914('0x15'))[_0x2914('0x8')]();}),_0x25c03d;}),_0x251095['ui'][_0x2914('0x7')]['add'](_0x2914('0x5'),_0x15c0b9=>{const _0x55629f=new _0x16d566(_0x15c0b9);return _0x55629f['set']({'label':_0x818292(_0x15c0b9,_0x2914('0xd')),'withText':!0x0,'tooltip':!0x0}),_0x55629f[_0x2914('0xe')]('isEnabled')['to'](_0x251095[_0x2914('0x18')][_0x2914('0x10')]('restoreRevision')),this[_0x2914('0x2')](_0x55629f,_0x2914('0x13'),()=>_0x251095[_0x2914('0x13')](_0x2914('0x5'))),_0x55629f;}),_0x251095['ui']['componentFactory'][_0x2914('0xf')](_0x2914('0x11'),_0x486f97=>{const _0x390086=new _0x35f6a4(_0x486f97),_0x32bbb9=_0x251095[_0x2914('0x18')][_0x2914('0x10')](_0x2914('0x6')),_0x46144d=_0x251095[_0x2914('0x18')][_0x2914('0x10')]('showNextChange');return _0x390086['bind'](_0x2914('0x9'))['to'](_0x32bbb9,_0x2914('0xb')),_0x390086['bind'](_0x2914('0x3'))['to'](_0x46144d,_0x2914('0xb')),_0x390086[_0x2914('0xe')](_0x2914('0x14'),'currentChangeNumber',_0x2914('0x1a'),_0x2914('0x1'))['to'](_0x16e4d0),this[_0x2914('0x2')](_0x390086,_0x2914('0x13'),(_0x1916c6,_0x3ee904)=>{_0x251095[_0x2914('0x13')](_0x2914('0x12')===_0x3ee904?_0x2914('0x1d'):_0x2914('0x6'));}),_0x390086;}),_0x5912bc[_0x2914('0x4')](),_0x16e4d0['on']('change:isReady',(_0xc09875,_0x4c2b99,_0x2399c5)=>{_0x2399c5?_0x5912bc['hide']():_0x5912bc['show']();});}}
23
+ const _0x3991=['config','hide','execute','commands','componentFactory','revisionHistory','listenTo','init','isNavigationMode','isForwardNavigationEnabled','plugins','Restore\x20this\x20revision','bind','ck-revision-history-ui__back-to-editing','currentChangeNumber','showPreviousChange','editor','add','set','showNextChange','get','RevisionViewerUI','pluginName','restoreRevision','isReady','closeRevisionViewerCallback','isEnabled','Back\x20to\x20editing'];(function(_0x3b5e15,_0x399104){const _0x1d917b=function(_0xdd46e1){while(--_0xdd46e1){_0x3b5e15['push'](_0x3b5e15['shift']());}};_0x1d917b(++_0x399104);}(_0x3991,0x15d));const _0x1d91=function(_0x3b5e15,_0x399104){_0x3b5e15=_0x3b5e15-0x0;let _0x1d917b=_0x3991[_0x3b5e15];return _0x1d917b;};import{Plugin as _0x6fded5}from'ckeditor5/src/core';import{ButtonView as _0x1f7fda}from'ckeditor5/src/ui';import _0x21a3cd from'./changesnavigationview';import _0x144dac from'./../../revisionviewer';import _0x288ad4 from'./revisionviewerloadingoverlay';import{getTranslation as _0x1171bb}from'../../utils/common-translations';import _0x22a51b from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x6fded5{static get[_0x1d91('0x9')](){return _0x1d91('0x8');}static get['requires'](){return[_0x144dac,_0x288ad4];}[_0x1d91('0x16')](){const _0x3c8b1a=this[_0x1d91('0x3')],_0x863da7=_0x3c8b1a[_0x1d91('0x19')][_0x1d91('0x7')](_0x144dac),_0x475db4=_0x3c8b1a['plugins'][_0x1d91('0x7')](_0x288ad4);_0x3c8b1a['ui']['componentFactory'][_0x1d91('0x4')]('exitToEditing',_0x38634a=>{const _0x5ec917=new _0x1f7fda(_0x38634a);return _0x5ec917[_0x1d91('0x5')]({'label':_0x1171bb(_0x38634a,_0x1d91('0xe')),'icon':_0x22a51b,'withText':!0x0,'tooltip':!0x0,'class':_0x1d91('0x0')}),this[_0x1d91('0x15')](_0x5ec917,_0x1d91('0x11'),()=>{_0x3c8b1a[_0x1d91('0xf')]['get'](_0x1d91('0x14'))[_0x1d91('0xc')]();}),_0x5ec917;}),_0x3c8b1a['ui']['componentFactory'][_0x1d91('0x4')](_0x1d91('0xa'),_0x490da3=>{const _0x5f1a82=new _0x1f7fda(_0x490da3);return _0x5f1a82[_0x1d91('0x5')]({'label':_0x1171bb(_0x490da3,_0x1d91('0x1a')),'withText':!0x0,'tooltip':!0x0}),_0x5f1a82[_0x1d91('0x1b')](_0x1d91('0xd'))['to'](_0x3c8b1a[_0x1d91('0x12')][_0x1d91('0x7')](_0x1d91('0xa'))),this[_0x1d91('0x15')](_0x5f1a82,_0x1d91('0x11'),()=>_0x3c8b1a[_0x1d91('0x11')](_0x1d91('0xa'))),_0x5f1a82;}),_0x3c8b1a['ui'][_0x1d91('0x13')]['add']('changesNavigation',_0x53ed15=>{const _0x1bf027=new _0x21a3cd(_0x53ed15),_0x577c51=_0x3c8b1a[_0x1d91('0x12')]['get'](_0x1d91('0x2')),_0x17b9e6=_0x3c8b1a[_0x1d91('0x12')]['get'](_0x1d91('0x6'));return _0x1bf027[_0x1d91('0x1b')]('isBackwardNavigationEnabled')['to'](_0x577c51,_0x1d91('0xd')),_0x1bf027[_0x1d91('0x1b')](_0x1d91('0x18'))['to'](_0x17b9e6,_0x1d91('0xd')),_0x1bf027[_0x1d91('0x1b')](_0x1d91('0xb'),_0x1d91('0x1'),'numberOfChanges',_0x1d91('0x17'))['to'](_0x863da7),this['listenTo'](_0x1bf027,_0x1d91('0x11'),(_0x523d62,_0x38a93a)=>{_0x3c8b1a[_0x1d91('0x11')]('forward'===_0x38a93a?_0x1d91('0x6'):'showPreviousChange');}),_0x1bf027;}),_0x475db4['show'](),_0x863da7['on']('change:isReady',(_0x5b64f6,_0x1baf92,_0x48bb0f)=>{_0x48bb0f?_0x475db4[_0x1d91('0x10')]():_0x475db4['show']();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x1909a7,_0x7ec87,_0x409537){const t=_0x1909a7['t'];switch(_0x7ec87){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'},_0x409537);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x409537);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 _0x7ec87;}}
23
+ export function getTranslation(_0x4db37c,_0x5bf7a6,_0x416994){const t=_0x4db37c['t'];switch(_0x5bf7a6){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'},_0x416994);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x416994);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 _0x5bf7a6;}}