@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230803.0 → 0.0.0-nightly-20230805.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 -10
  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 _0x9dad=['requires','RevisionTracker','isOpen','change:isOpen','Revision\x20history','editor','bind','RevisionHistoryUI','children','remove','view','componentFactory','focus','panelView','revisionHistory','submit','reset','isReady','buttonView','set','add','editing','isReadOnly','plugins','addMany','isEnabled','get','execute','render','length','revisionName'];(function(_0x1efce4,_0x9dadfd){const _0x111b4e=function(_0x6df32d){while(--_0x6df32d){_0x1efce4['push'](_0x1efce4['shift']());}};_0x111b4e(++_0x9dadfd);}(_0x9dad,0xe6));const _0x111b=function(_0x1efce4,_0x9dadfd){_0x1efce4=_0x1efce4-0x0;let _0x111b4e=_0x9dad[_0x1efce4];return _0x111b4e;};import{Plugin as _0x38401d}from'ckeditor5/src/core';import{ListView as _0x4ee064,ListItemView as _0x2b87c0,ButtonView as _0x331da4,createDropdown as _0x46b325}from'ckeditor5/src/ui';import _0x3c8509 from'../../revisiontracker';import _0x1e5a63 from'./revisionhistorysaverevisionformview';import _0x185322 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x137622}from'../../utils/common-translations';export default class u extends _0x38401d{static get['pluginName'](){return _0x111b('0x19');}static get[_0x111b('0x12')](){return[_0x3c8509];}['init'](){const _0x147f24=this[_0x111b('0x17')],_0x51cdff=_0x147f24[_0x111b('0xa')][_0x111b('0xd')](_0x111b('0x13'));_0x147f24['ui'][_0x111b('0x1d')]['add'](_0x111b('0x1'),_0x2e7d33=>{const _0x29d9b8=_0x46b325(_0x2e7d33),_0x20cd16=_0x29d9b8[_0x111b('0x0')][_0x111b('0x1a')],_0x580476=new _0x4ee064(_0x2e7d33),_0x49f262=new _0x2b87c0(_0x2e7d33),_0x23cf7a=new _0x331da4(_0x2e7d33),_0x1b2b11=new _0x2b87c0(_0x2e7d33),_0x3baf24=new _0x331da4(_0x2e7d33),_0x266de8=new _0x1e5a63(_0x2e7d33);function _0x3c2049(){_0x20cd16[_0x111b('0x10')]&&_0x20cd16[_0x111b('0x1b')](0x0),_0x20cd16['add'](_0x580476);}function _0x3e0160(){_0x29d9b8[_0x111b('0x14')]=!0x1,_0x147f24[_0x111b('0x8')][_0x111b('0x1c')][_0x111b('0x1e')]();}return _0x29d9b8[_0x111b('0x18')](_0x111b('0xc'))['to'](_0x51cdff,_0x111b('0x4'),_0x51cdff,'isEnabled',_0x147f24,'isReadOnly',(_0x13719a,_0x4d1d4c,_0x514c4b)=>_0x13719a&&_0x4d1d4c&&!_0x514c4b),_0x29d9b8[_0x111b('0x5')][_0x111b('0x6')]({'icon':_0x185322,'label':_0x137622(_0x2e7d33,_0x111b('0x16')),'tooltip':!0x0}),_0x23cf7a[_0x111b('0x6')]({'label':_0x137622(_0x2e7d33,'Save\x20current\x20revision'),'withText':!0x0}),_0x23cf7a[_0x111b('0x18')](_0x111b('0xc'))['to'](_0x51cdff,_0x111b('0x4'),_0x51cdff,'isEnabled',_0x147f24,'isReadOnly',(_0x57dc8b,_0xc531d1,_0x3ac062)=>_0x57dc8b&&_0xc531d1&&!_0x3ac062),_0x23cf7a['on'](_0x111b('0xe'),()=>function(){_0x20cd16[_0x111b('0x10')]&&_0x20cd16['remove'](0x0),(_0x266de8[_0x111b('0x3')](),_0x20cd16[_0x111b('0x7')](_0x266de8),_0x266de8['focus']());}()),_0x3baf24[_0x111b('0x6')]({'label':_0x137622(_0x2e7d33,'Open\x20revision\x20history'),'withText':!0x0}),_0x3baf24['bind'](_0x111b('0xc'))['to'](_0x51cdff,'isReady',_0x147f24,_0x111b('0x9'),(_0x4a1de8,_0x5b6973)=>_0x4a1de8&&!_0x5b6973),_0x3baf24['on'](_0x111b('0xe'),()=>{_0x147f24['config'][_0x111b('0xd')](_0x111b('0x1'))['showRevisionViewerCallback'](),_0x3e0160();}),_0x49f262['children'][_0x111b('0x7')](_0x23cf7a),_0x1b2b11[_0x111b('0x1a')]['add'](_0x3baf24),_0x580476['items'][_0x111b('0xb')]([_0x49f262,_0x1b2b11]),_0x29d9b8['on'](_0x111b('0x15'),()=>_0x3c2049()),_0x266de8['saveButtonView'][_0x111b('0x18')]('isEnabled')['to'](_0x51cdff,'isReady',_0x51cdff,_0x111b('0xc'),_0x147f24,'isReadOnly',(_0x422384,_0x503875,_0x55a00d)=>_0x422384&&_0x503875&&!_0x55a00d),_0x266de8['on'](_0x111b('0x2'),()=>(_0x147f24['plugins'][_0x111b('0xd')](_0x3c8509)['saveRevision']({'name':_0x266de8[_0x111b('0x11')]}),void _0x3e0160())),_0x266de8['on']('cancel',()=>_0x3c2049()),_0x266de8[_0x111b('0xf')](),_0x3c2049(),_0x29d9b8;});}}
@@ -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 _0x5641=['init','add','render','remove','plugins','_handleRevisionSetName','repository','action','compare','_handleEditorDataReady','availableRevisionActions','diff','defaultRevisionActions','getRevisionsInDiff','length','focus','locale','getRevision','isSelected','nameRevision','editor','change:diff','_createRevisionActions','data','name','_revisionViewer','getIndex','bind','getEarlierVisibleRevision','Compare\x20against\x20selected','revisionViews','get','requires','Name\x20this\x20revision','highlightRevisions','isReady','assign','element','listenTo','newRevisionId','isEnabled','_handleDiffChange','_revisions','Restore\x20this\x20revision','_sidebarView','getLaterVisibleRevision','compareAgainstSelected','_revisionsRepository','revisionHistory.viewerSidebarContainer','RevisionsSidebar','timePeriodViews','config','select','isVisible','_handleRevisionSelected','revisionHistory','restoreRevision','appendChild','ready','selectRevision'];(function(_0x27ab25,_0x5641db){const _0x744c49=function(_0x24f3ce){while(--_0x24f3ce){_0x27ab25['push'](_0x27ab25['shift']());}};_0x744c49(++_0x5641db);}(_0x5641,0x10a));const _0x744c=function(_0x27ab25,_0x5641db){_0x27ab25=_0x27ab25-0x0;let _0x744c49=_0x5641[_0x27ab25];return _0x744c49;};import{Plugin as _0x27e533}from'ckeditor5/src/core';import _0x56f6d2 from'./revisionssidebarview';import _0x5df026 from'../../revisionviewer';export default class w extends _0x27e533{static get['pluginName'](){return _0x744c('0x17');}static get[_0x744c('0x6')](){return[_0x5df026];}constructor(_0x53cb36){super(_0x53cb36),this['_revisionViewer']=_0x53cb36[_0x744c('0x26')][_0x744c('0x5')](_0x5df026),this[_0x744c('0x15')]=this[_0x744c('0x3b')][_0x744c('0x28')],this['_sidebarView']=null;}[_0x744c('0x22')](){const _0x400ccf=this[_0x744c('0x15')][_0x744c('0x10')],_0x11b6a1=this[_0x744c('0x38')](),_0x131226=this[_0x744c('0x36')][_0x744c('0x19')][_0x744c('0x5')](_0x744c('0x16'));this[_0x744c('0x12')]=new _0x56f6d2(this[_0x744c('0x36')][_0x744c('0x32')],_0x400ccf,_0x11b6a1),this[_0x744c('0x12')]['on']('revisionSelected',this[_0x744c('0x1c')][_0x744c('0x1')](this)),this[_0x744c('0x12')]['on']('revisionSetName',this[_0x744c('0x27')]['bind'](this)),this['_sidebarView'][_0x744c('0x1')](_0x744c('0xe'))['to'](this['_revisionViewer']),this[_0x744c('0x12')][_0x744c('0x18')]['on']('add',(_0x1aa7fa,_0x226529)=>{_0x226529[_0x744c('0x4')]['on'](_0x744c('0x23'),(_0x1685bc,_0x318b69)=>{_0x318b69[_0x744c('0x1')](_0x744c('0xe'),_0x744c('0x9'))['to'](this['_revisionViewer']);});}),this['_sidebarView'][_0x744c('0x24')](),this['listenTo'](this['editor'][_0x744c('0x39')],_0x744c('0x20'),this[_0x744c('0x2b')][_0x744c('0x1')](this)),this[_0x744c('0xc')](this[_0x744c('0x3b')],_0x744c('0x37'),this['_handleDiffChange']['bind'](this)),_0x131226[_0x744c('0x1f')](this['_sidebarView'][_0x744c('0xb')]);}['destroy'](){this['_sidebarView'][_0x744c('0xb')][_0x744c('0x25')](),this['_sidebarView']['destroy']();}[_0x744c('0x2b')](){const _0x19e743=this[_0x744c('0x15')][_0x744c('0x33')](0x0);if(_0x19e743){const _0x35fe0c=this[_0x744c('0x15')][_0x744c('0x2')](_0x19e743['id']);this['_revisionViewer'][_0x744c('0x2a')](_0x19e743,_0x35fe0c);}}[_0x744c('0x1c')](_0x44efe8,_0x4d6191){const _0x2581b1=this['_revisionsRepository'][_0x744c('0x33')](_0x4d6191['id']),_0x307b58=this[_0x744c('0x15')][_0x744c('0x2')](_0x2581b1['id']);this['_revisionViewer']['compare'](_0x2581b1,_0x307b58);}[_0x744c('0x27')](_0x509036,_0x4a05dd){this[_0x744c('0x15')]['getRevision'](_0x4a05dd['id'])['setName'](_0x4a05dd[_0x744c('0x3a')]);}[_0x744c('0xf')](_0x50d955,_0x2ade2c,_0x623ac6){const _0x279bd7=this[_0x744c('0x15')]['getRevisionsInDiff'](_0x623ac6);_0x279bd7[_0x744c('0x30')]>0x2?(this[_0x744c('0x12')][_0x744c('0x8')](_0x279bd7),this['_sidebarView'][_0x744c('0x21')](null)):(this['_sidebarView']['highlightRevisions']([]),this[_0x744c('0x12')][_0x744c('0x21')](_0x279bd7[0x0]));}[_0x744c('0x38')](){const _0x24c403=this['editor'],_0x2dedf9=w[_0x744c('0x2c')],_0x3cda85=_0x24c403[_0x744c('0x19')]['get']('revisionHistory.revisionActions')||w[_0x744c('0x2e')];if(_0x3cda85['length'])return _0x3cda85['map'](_0x353774=>{const _0x28073e='string'==typeof _0x353774?Object[_0x744c('0xa')]({},_0x2dedf9[_0x353774]):_0x353774;return _0x28073e[_0x744c('0x29')]=_0x28073e[_0x744c('0x29')][_0x744c('0x1')](this,_0x24c403),_0x28073e[_0x744c('0x1b')]&&(_0x28073e[_0x744c('0x1b')]=_0x28073e[_0x744c('0x1b')]['bind'](this,_0x24c403)),_0x28073e;});}}w[_0x744c('0x2c')]={'compareAgainstSelected':{'name':_0x744c('0x3'),'action':({plugins:_0x495ad4},_0x31ecaa)=>{const _0x1701b3=_0x495ad4[_0x744c('0x5')](_0x5df026),_0x57dbd7=_0x1701b3[_0x744c('0x28')];let _0x43dbc0=_0x1701b3[_0x744c('0x2d')][_0x744c('0xd')],_0x3ad056=_0x31ecaa['id'];_0x57dbd7['getIndex'](_0x43dbc0)>_0x57dbd7[_0x744c('0x0')](_0x3ad056)&&([_0x43dbc0,_0x3ad056]=[_0x3ad056,_0x43dbc0]),_0x1701b3[_0x744c('0x2a')](_0x43dbc0,_0x3ad056);},'isVisible':({plugins:_0x4f8854},_0x189db0)=>{const _0x199e8d=_0x4f8854['get'](_0x5df026);return!(_0x199e8d[_0x744c('0x28')][_0x744c('0x2f')](_0x199e8d['diff'])[_0x744c('0x30')]>0x2)&&!_0x189db0[_0x744c('0x34')];}},'restoreRevision':{'name':_0x744c('0x11'),'action':(_0x538664,{id:_0x4e9c02})=>{_0x538664['config'][_0x744c('0x5')](_0x744c('0x1d'))['restoreRevisionCallback'](_0x4e9c02);},'isVisible':({plugins:_0x47ce8a},_0x3d7a26)=>!!_0x47ce8a['get'](_0x5df026)[_0x744c('0x28')][_0x744c('0x13')](_0x3d7a26['id'])},'nameRevision':{'name':_0x744c('0x7'),'action':({plugins:_0x1fb9be},{id:_0x26c9b9,revisionNameView:_0x1bb67c})=>{const _0x69c683=_0x1fb9be[_0x744c('0x5')](_0x5df026),_0x396d08=_0x69c683[_0x744c('0x28')][_0x744c('0x2')](_0x26c9b9);_0x69c683['compare'](_0x26c9b9,_0x396d08),_0x1bb67c[_0x744c('0x31')](),_0x1bb67c['fieldView'][_0x744c('0x1a')]();}}},w[_0x744c('0x2e')]=[_0x744c('0x14'),_0x744c('0x1e'),_0x744c('0x35')];
@@ -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 _0xd3fc=['span','ck-revision-history-sidebar__header__label','div','setTemplate','ck-reset_all','ck-revision-history-sidebar__header'];(function(_0x3de906,_0xd3fc46){const _0x2e9088=function(_0x5944e2){while(--_0x5944e2){_0x3de906['push'](_0x3de906['shift']());}};_0x2e9088(++_0xd3fc46);}(_0xd3fc,0x168));const _0x2e90=function(_0x3de906,_0xd3fc46){_0x3de906=_0x3de906-0x0;let _0x2e9088=_0xd3fc[_0x3de906];return _0x2e9088;};import{View as _0x4a8a6f,IconView as _0x296ffb}from'ckeditor5/src/ui';import{getTranslation as _0x5a97e4}from'../../utils/common-translations';import _0x23c149 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x4a8a6f{constructor(_0x10d0cd){super(_0x10d0cd);const _0x51aecd=new _0x296ffb();_0x51aecd['content']=_0x23c149,this[_0x2e90('0x3')]({'tag':_0x2e90('0x2'),'attributes':{'class':['ck',_0x2e90('0x4'),_0x2e90('0x5')]},'children':[_0x51aecd,{'tag':_0x2e90('0x0'),'attributes':{'class':['ck',_0x2e90('0x1')]},'children':[_0x5a97e4(_0x10d0cd,'Revision\x20history')]}]});}}
@@ -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 _0x35f4=['ck-revision-history-sidebar__time-period__label','setTemplate','remove','removeRevision','delegate','locale','ck-revision-history-sidebar__time-period','startDate','localizedPeriodName','_revisionActions','setName','select','find','revisionViews','div','add','createCollection','addRevision'];(function(_0x24da77,_0x35f40b){const _0x35210c=function(_0x2493fe){while(--_0x2493fe){_0x24da77['push'](_0x24da77['shift']());}};_0x35210c(++_0x35f40b);}(_0x35f4,0xfe));const _0x3521=function(_0x24da77,_0x35f40b){_0x24da77=_0x24da77-0x0;let _0x35210c=_0x35f4[_0x24da77];return _0x35210c;};import{View as _0x478d46}from'ckeditor5/src/ui';import _0x3ce8ce from'../revision/revisionview';import{getDateTimePeriodInfo as _0x10502c}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x478d46{constructor(_0x57e1da,_0x4a1d9b,_0x528bf0){super(_0x57e1da);const _0x1199b9=_0x10502c(_0x4a1d9b,this[_0x3521('0x3')]['uiLanguage'])[_0x3521('0x6')];this[_0x3521('0x5')]=_0x4a1d9b,this[_0x3521('0xb')]=this[_0x3521('0xe')](),this[_0x3521('0x7')]=_0x528bf0,this['revisionViews']['delegate'](_0x3521('0x9'))['to'](this),this[_0x3521('0xb')][_0x3521('0x2')](_0x3521('0x8'))['to'](this),this[_0x3521('0x11')]({'tag':'div','attributes':{'class':['ck',_0x3521('0x4')]},'children':[{'tag':'span','attributes':{'class':['ck',_0x3521('0x10')]},'children':[{'text':_0x1199b9}]},{'tag':_0x3521('0xc'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this[_0x3521('0xb')]}]});}[_0x3521('0xf')](_0x65ab88){const _0x7a424c=new _0x3ce8ce(this[_0x3521('0x3')],_0x65ab88,this[_0x3521('0x7')]);this['revisionViews'][_0x3521('0xd')](_0x7a424c);}[_0x3521('0x1')](_0x357c66){const _0xae0a4b=this['revisionViews'][_0x3521('0xa')](_0x256089=>_0x256089['id']===_0x357c66['id']);this[_0x3521('0xb')][_0x3521('0x0')](_0xae0a4b);}}
@@ -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 _0x16f7=['_removeRevision','_addRevision','unhighlight','ck-revision-history-sidebar__timeline','get','_getTimePeriodViewByStartDate','render','addRevision','locale','fire','createdAt','revisionSelected','highlightRevisions','delegate','uiLanguage','some','find','_revisions','setName','highlight','ck-disabled','map','ck-reset','startDate','deselect','_revisionActions','div','timePeriodViews','bindTemplate','createCollection','revisionViews','ck-revision-history-sidebar','isEnabled','add','getTime','select'];(function(_0x4a553f,_0x16f785){const _0x26c98b=function(_0x3b7bde){while(--_0x3b7bde){_0x4a553f['push'](_0x4a553f['shift']());}};_0x26c98b(++_0x16f785);}(_0x16f7,0x19c));const _0x26c9=function(_0x4a553f,_0x16f785){_0x4a553f=_0x4a553f-0x0;let _0x26c98b=_0x16f7[_0x4a553f];return _0x26c98b;};import{View as _0x35d56a}from'ckeditor5/src/ui';import _0x5d5033 from'./revisionssidebartimeperiodview';import _0x435da7 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x59a6a8}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x35d56a{constructor(_0x2b0f07,_0x2bdd48,_0x36fc41){super(_0x2b0f07);const _0x1cdb68=this[_0x26c9('0xc')];this['timePeriodViews']=this[_0x26c9('0xd')](),this[_0x26c9('0xb')]['delegate'](_0x26c9('0x13'))['to'](this),this[_0x26c9('0xb')][_0x26c9('0x21')](_0x26c9('0x2'))['to'](this),this['_revisions']=_0x2bdd48,this[_0x26c9('0x9')]=_0x36fc41,this['on']('select',(_0x409a0f,_0x2ba574)=>{this[_0x26c9('0x1d')](_0x26c9('0x1f'),_0x2ba574);}),this['on'](_0x26c9('0x2'),(_0x1c7519,_0x8a912e)=>{this[_0x26c9('0x1d')]('revisionSetName',_0x8a912e);}),this['set'](_0x26c9('0x10'),!0x1),this['setTemplate']({'tag':_0x26c9('0xa'),'attributes':{'class':['ck',_0x26c9('0x6'),'ck-rounded-corners',_0x26c9('0xf')]},'children':[new _0x435da7(_0x2b0f07),{'tag':_0x26c9('0xa'),'attributes':{'class':['ck',_0x26c9('0x17'),_0x1cdb68['if'](_0x26c9('0x10'),_0x26c9('0x4'),_0x4da8b6=>!_0x4da8b6)]},'children':this[_0x26c9('0xb')]}]});}[_0x26c9('0x1a')](){super[_0x26c9('0x1a')]();for(const _0x222e96 of this[_0x26c9('0x1')])this[_0x26c9('0x15')](_0x222e96);this['_revisions']['on'](_0x26c9('0x11'),(_0x253935,_0x476919)=>{this[_0x26c9('0x15')](_0x476919);}),this['_revisions']['on']('remove',(_0x1fb579,_0x138647)=>{this[_0x26c9('0x14')](_0x138647);});}get[_0x26c9('0xe')](){return this[_0x26c9('0xb')][_0x26c9('0x5')](_0x34398e=>_0x34398e[_0x26c9('0xe')][_0x26c9('0x5')](_0x3740c3=>_0x3740c3))['flat']();}['selectRevision'](_0x41f898){for(const _0x1aabca of this[_0x26c9('0xe')])_0x41f898&&_0x41f898['id']===_0x1aabca['id']?_0x1aabca['select']():_0x1aabca[_0x26c9('0x8')]();}[_0x26c9('0x20')](_0xf38ff5){for(const _0x21f3b8 of this['revisionViews'])_0xf38ff5[_0x26c9('0x23')](({id:_0x5e5d89})=>_0x5e5d89===_0x21f3b8['id'])?_0x21f3b8[_0x26c9('0x3')]():_0x21f3b8[_0x26c9('0x16')]();}[_0x26c9('0x15')](_0x5b4a11){const _0x55272d=_0x59a6a8(_0x5b4a11[_0x26c9('0x1e')],this['locale'][_0x26c9('0x22')])['startDate'];let _0x122a2c=this[_0x26c9('0xb')][_0x26c9('0x18')](0x0);_0x122a2c&&_0x122a2c['startDate'][_0x26c9('0x12')]()===_0x55272d['getTime']()||(_0x122a2c=new _0x5d5033(this[_0x26c9('0x1c')],_0x55272d,this[_0x26c9('0x9')]),this[_0x26c9('0xb')][_0x26c9('0x11')](_0x122a2c)),_0x122a2c[_0x26c9('0x1b')](_0x5b4a11);}[_0x26c9('0x14')](_0x48bc15){const _0x257e8c=_0x59a6a8(_0x48bc15[_0x26c9('0x1e')],this[_0x26c9('0x1c')][_0x26c9('0x22')])[_0x26c9('0x7')];this[_0x26c9('0x19')](_0x257e8c)['removeRevision'](_0x48bc15);}[_0x26c9('0x19')](_0x4e60aa){return this[_0x26c9('0xb')][_0x26c9('0x0')](_0x566541=>_0x566541['startDate'][_0x26c9('0x12')]()===_0x4e60aa[_0x26c9('0x12')]());}}
@@ -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 _0x2cdf=['day','minus','monthLong','year','week','toRelativeCalendar','toJSDate','startOf','weekdayLong','hasSame','local'];(function(_0x1164e0,_0x2cdf1c){const _0x14096c=function(_0x484cd){while(--_0x484cd){_0x1164e0['push'](_0x1164e0['shift']());}};_0x14096c(++_0x2cdf1c);}(_0x2cdf,0x68));const _0x1409=function(_0x1164e0,_0x2cdf1c){_0x1164e0=_0x1164e0-0x0;let _0x14096c=_0x2cdf[_0x1164e0];return _0x14096c;};import{DateTime as _0x3f5cd2}from'luxon';export function getDateTimePeriodInfo(_0x5be8d0,_0x109c43){const _0x1da732=_0x3f5cd2['fromJSDate'](_0x5be8d0)['setLocale'](_0x109c43),_0x1d9451=_0x3f5cd2[_0x1409('0x5')](),_0x321a4f=_0x1d9451[_0x1409('0x7')]({'days':0x1})[_0x1409('0x2')](_0x1409('0x6'));let _0x16cc39,_0x4e57e5;return _0x1da732['hasSame'](_0x1d9451,_0x1409('0x6'))?(_0x16cc39=_0x1da732[_0x1409('0x2')](_0x1409('0x6'))[_0x1409('0x1')](),_0x4e57e5=_0x1da732[_0x1409('0x0')]()):_0x1da732[_0x1409('0x4')](_0x321a4f,'day')?(_0x16cc39=_0x321a4f['toJSDate'](),_0x4e57e5=_0x1da732[_0x1409('0x0')]()):_0x1da732[_0x1409('0x4')](_0x1d9451,_0x1409('0xa'))?(_0x16cc39=_0x1da732[_0x1409('0x2')](_0x1409('0xa'))[_0x1409('0x1')](),_0x4e57e5=_0x1da732[_0x1409('0x3')]||''):_0x1da732[_0x1409('0x4')](_0x1d9451,_0x1409('0x9'))?(_0x16cc39=_0x1da732['startOf']('month')['toJSDate'](),_0x4e57e5=_0x1da732[_0x1409('0x8')]||''):(_0x16cc39=_0x1da732[_0x1409('0x2')](_0x1409('0x9'))[_0x1409('0x1')](),_0x4e57e5=String(_0x1da732[_0x1409('0x9')])),{'startDate':_0x16cc39,'localizedPeriodName':_0x4e57e5};}
@@ -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 _0x3206=['Added\x20by','ck-revision-change','Removed\x20by','set','span','add','isSuggestion','name','type','ck-annotation','setTemplate','bindTemplate','author','ck-revision-change__','div','_model','focus','Suggested\x20by','ck-revision-change__label'];(function(_0x23325b,_0x320602){const _0x1d3138=function(_0x36746f){while(--_0x36746f){_0x23325b['push'](_0x23325b['shift']());}};_0x1d3138(++_0x320602);}(_0x3206,0xf7));const _0x1d31=function(_0x23325b,_0x320602){_0x23325b=_0x23325b-0x0;let _0x1d3138=_0x3206[_0x23325b];return _0x1d3138;};import{View as _0x4604b4}from'ckeditor5/src/ui';import{getTranslation as _0x551b1a}from'../../utils/common-translations';export default class Z extends _0x4604b4{constructor(_0x318373,_0x1fe7d1){super(_0x318373),this[_0x1d31('0xf')]=_0x1fe7d1,this['changeId']=_0x1fe7d1['id'];const _0x2129ac=this[_0x1d31('0xb')],_0x278aa0=_0x551b1a(_0x318373,_0x1fe7d1['data'][_0x1d31('0x6')]?_0x1d31('0x11'):_0x1d31('0x5')==_0x1fe7d1[_0x1d31('0x8')]?_0x1d31('0x0'):_0x1d31('0x2'));this[_0x1d31('0x3')](_0x1d31('0x8'),_0x1fe7d1['type']),this[_0x1d31('0xa')]({'tag':_0x1d31('0xe'),'attributes':{'class':[_0x1d31('0x9'),_0x1d31('0x1'),_0x2129ac['to'](_0x1d31('0x8'),_0x2390ec=>_0x1d31('0xd')+_0x2390ec)],'tabindex':-0x1},'children':[{'tag':_0x1d31('0x4'),'children':[{'tag':'span','attributes':{'class':[_0x1d31('0x12')]},'children':[{'text':_0x278aa0}]},{'text':'\x20'+_0x1fe7d1[_0x1d31('0xc')][_0x1d31('0x7')]}]}]});}[_0x1d31('0x10')](){this['element'][_0x1d31('0x10')]();}}
@@ -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 _0xf47e=['forward','ck-revision-history-ui__changes-navigation__label','set','bind','EDIT_X_OF_Y_REVISIONS','Loading...','isForwardNavigationEnabled','No\x20changes','backward','Total','setTemplate','X_OF_Y_CHANGES','_isStatusLabelVisible','ck-revision-history-ui__changes-navigation__navigation','ck-revision-history-ui__changes-navigation__wrapper','div','bindTemplate','span','isNavigationMode','fire','NUMBER_OF_CHANGES','Show\x20previous\x20change','ck-hidden','numberOfChanges','execute','_statusText','ck-revision-history-ui'];(function(_0x367ede,_0xf47eb5){const _0x3e2eef=function(_0x4a488a){while(--_0x4a488a){_0x367ede['push'](_0x367ede['shift']());}};_0x3e2eef(++_0xf47eb5);}(_0xf47e,0x149));const _0x3e2e=function(_0x367ede,_0xf47eb5){_0x367ede=_0x367ede-0x0;let _0x3e2eef=_0xf47e[_0x367ede];return _0x3e2eef;};import{View as _0x166607,ButtonView as _0x107a4f,ToolbarSeparatorView as _0x27b563}from'ckeditor5/src/ui';import{getTranslation as _0x42537b}from'../../utils/common-translations';import _0x166c47 from'../../../theme/icons/arrow-up.svg';import _0x4985a7 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x166607{constructor(_0x40ad7d){super(_0x40ad7d);const _0x1eac93=this[_0x3e2e('0xb')],_0x12c2e5=new _0x107a4f(_0x40ad7d),_0x5d7541=new _0x107a4f(_0x40ad7d);this['set']('isNavigationMode',!0x1),this[_0x3e2e('0x18')]('isReady',!0x1),this['set']('currentChangeNumber',0x0),this[_0x3e2e('0x18')](_0x3e2e('0x12'),0x0),this[_0x3e2e('0x18')](_0x3e2e('0x1'),!0x1),this[_0x3e2e('0x18')]('isBackwardNavigationEnabled',!0x1),this[_0x3e2e('0x19')](_0x3e2e('0x7'))['to'](this,'isReady',this,_0x3e2e('0x12'),(_0x5a9be1,_0x5933f1)=>_0x5a9be1&&_0x5933f1>0x0),this['bind'](_0x3e2e('0x14'))['to'](this,'isReady',this,'currentChangeNumber',this,_0x3e2e('0x12'),this,_0x3e2e('0xd'),(_0x5cbe9c,_0x30f26f,_0x47cc2f,_0x44a650)=>{if(!_0x5cbe9c)return _0x42537b(_0x40ad7d,_0x3e2e('0x0'));if(!_0x47cc2f)return _0x42537b(_0x40ad7d,_0x3e2e('0x2'));const _0x7aeed4=_0x42537b(_0x40ad7d,_0x3e2e('0xf'),_0x47cc2f);return _0x44a650?_0x42537b(_0x40ad7d,_0x3e2e('0x6'),[_0x30f26f+0x1,_0x47cc2f]):_0x7aeed4;}),_0x12c2e5[_0x3e2e('0x18')]({'label':_0x42537b(_0x40ad7d,_0x3e2e('0x10')),'tooltip':!0x0,'icon':_0x166c47}),_0x5d7541['set']({'label':_0x42537b(_0x40ad7d,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x4985a7}),_0x12c2e5[_0x3e2e('0x19')]('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5d7541['bind']('isEnabled')['to'](this,_0x3e2e('0x1')),_0x12c2e5['on']('execute',()=>this[_0x3e2e('0xe')](_0x3e2e('0x13'),_0x3e2e('0x3'))),_0x5d7541['on'](_0x3e2e('0x13'),()=>this[_0x3e2e('0xe')](_0x3e2e('0x13'),_0x3e2e('0x16'))),this[_0x3e2e('0x5')]({'tag':_0x3e2e('0xa'),'attributes':{'class':['ck',_0x3e2e('0x15'),'ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':[_0x3e2e('0x9')]},'children':[{'tag':_0x3e2e('0xc'),'attributes':{'class':[_0x3e2e('0x17'),_0x1eac93['if']('_isStatusLabelVisible',_0x3e2e('0x11'),_0x5b4d5f=>!_0x5b4d5f)]},'children':[{'text':_0x1eac93['to']('isNavigationMode',_0x30a1c9=>_0x30a1c9?_0x42537b(_0x40ad7d,_0x3e2e('0x1a'))+':\x20':_0x42537b(_0x40ad7d,_0x3e2e('0x4'))+':\x20')}]},{'text':_0x1eac93['to']('_statusText')}]},new _0x27b563(),{'tag':_0x3e2e('0xa'),'attributes':{'class':[_0x3e2e('0x8')]},'children':[_0x12c2e5,_0x5d7541]}]});}}
@@ -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 _0x54de=['RevisionViewerLoadingOverlay','change','editor','hide','removeClass','roots','pluginName','editing','document','show','view'];(function(_0x5d9954,_0x54de17){const _0x685a95=function(_0x16b2fd){while(--_0x16b2fd){_0x5d9954['push'](_0x5d9954['shift']());}};_0x685a95(++_0x54de17);}(_0x54de,0x7c));const _0x685a=function(_0x5d9954,_0x54de17){_0x5d9954=_0x5d9954-0x0;let _0x685a95=_0x54de[_0x5d9954];return _0x685a95;};import{Plugin as _0x991c67}from'ckeditor5/src/core';const oe='ck-editor__editable__loading-overlay';import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x991c67{static get[_0x685a('0x3')](){return _0x685a('0x8');}[_0x685a('0x6')](){const _0x6f729a=this[_0x685a('0xa')][_0x685a('0x4')][_0x685a('0x7')];_0x6f729a[_0x685a('0x9')](_0x198d00=>{for(const _0x5ba657 of _0x6f729a[_0x685a('0x5')]['roots'])_0x198d00['addClass'](oe,_0x5ba657);});}[_0x685a('0x0')](){const _0x1af7e7=this['editor']['editing'][_0x685a('0x7')];_0x1af7e7[_0x685a('0x9')](_0x1dfc83=>{for(const _0x2ebfb5 of _0x1af7e7[_0x685a('0x5')][_0x685a('0x2')])_0x1dfc83[_0x685a('0x1')](oe,_0x2ebfb5);});}}
@@ -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 _0x5db6=['isBackwardNavigationEnabled','plugins','isEnabled','isForwardNavigationEnabled','listenTo','revisionHistory','isNavigationMode','set','hide','componentFactory','currentChangeNumber','requires','isReady','Back\x20to\x20editing','show','commands','Restore\x20this\x20revision','showNextChange','pluginName','closeRevisionViewerCallback','restoreRevision','bind','config','exitToEditing','init','showPreviousChange','forward','execute','change:isReady','get','add'];(function(_0x2cd64e,_0x5db6d2){const _0x5c4f6e=function(_0x53b8b3){while(--_0x53b8b3){_0x2cd64e['push'](_0x2cd64e['shift']());}};_0x5c4f6e(++_0x5db6d2);}(_0x5db6,0x120));const _0x5c4f=function(_0x2cd64e,_0x5db6d2){_0x2cd64e=_0x2cd64e-0x0;let _0x5c4f6e=_0x5db6[_0x2cd64e];return _0x5c4f6e;};import{Plugin as _0x4b40c2}from'ckeditor5/src/core';import{ButtonView as _0x1fe8a9}from'ckeditor5/src/ui';import _0x14bb57 from'./changesnavigationview';import _0x56b751 from'./../../revisionviewer';import _0x38d42b from'./revisionviewerloadingoverlay';import{getTranslation as _0x7bd281}from'../../utils/common-translations';import _0x53fde6 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x4b40c2{static get[_0x5c4f('0x9')](){return'RevisionViewerUI';}static get[_0x5c4f('0x2')](){return[_0x56b751,_0x38d42b];}[_0x5c4f('0xf')](){const _0x452a81=this['editor'],_0x5420d6=_0x452a81[_0x5c4f('0x17')][_0x5c4f('0x14')](_0x56b751),_0x4c0036=_0x452a81[_0x5c4f('0x17')]['get'](_0x38d42b);_0x452a81['ui'][_0x5c4f('0x0')][_0x5c4f('0x15')](_0x5c4f('0xe'),_0x5c74c9=>{const _0x51adb8=new _0x1fe8a9(_0x5c74c9);return _0x51adb8[_0x5c4f('0x1d')]({'label':_0x7bd281(_0x5c74c9,_0x5c4f('0x4')),'icon':_0x53fde6,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this[_0x5c4f('0x1a')](_0x51adb8,'execute',()=>{_0x452a81[_0x5c4f('0xd')][_0x5c4f('0x14')](_0x5c4f('0x1b'))[_0x5c4f('0xa')]();}),_0x51adb8;}),_0x452a81['ui']['componentFactory'][_0x5c4f('0x15')](_0x5c4f('0xb'),_0x21d889=>{const _0xb2a910=new _0x1fe8a9(_0x21d889);return _0xb2a910[_0x5c4f('0x1d')]({'label':_0x7bd281(_0x21d889,_0x5c4f('0x7')),'withText':!0x0,'tooltip':!0x0}),_0xb2a910['bind'](_0x5c4f('0x18'))['to'](_0x452a81[_0x5c4f('0x6')][_0x5c4f('0x14')](_0x5c4f('0xb'))),this[_0x5c4f('0x1a')](_0xb2a910,_0x5c4f('0x12'),()=>_0x452a81[_0x5c4f('0x12')](_0x5c4f('0xb'))),_0xb2a910;}),_0x452a81['ui'][_0x5c4f('0x0')][_0x5c4f('0x15')]('changesNavigation',_0x2fe9f1=>{const _0x1e49c3=new _0x14bb57(_0x2fe9f1),_0x3df0a4=_0x452a81[_0x5c4f('0x6')][_0x5c4f('0x14')](_0x5c4f('0x10')),_0x27d947=_0x452a81[_0x5c4f('0x6')][_0x5c4f('0x14')](_0x5c4f('0x8'));return _0x1e49c3[_0x5c4f('0xc')](_0x5c4f('0x16'))['to'](_0x3df0a4,_0x5c4f('0x18')),_0x1e49c3[_0x5c4f('0xc')](_0x5c4f('0x19'))['to'](_0x27d947,_0x5c4f('0x18')),_0x1e49c3[_0x5c4f('0xc')](_0x5c4f('0x3'),_0x5c4f('0x1'),'numberOfChanges',_0x5c4f('0x1c'))['to'](_0x5420d6),this['listenTo'](_0x1e49c3,'execute',(_0x3d0a20,_0x43634a)=>{_0x452a81[_0x5c4f('0x12')](_0x5c4f('0x11')===_0x43634a?_0x5c4f('0x8'):_0x5c4f('0x10'));}),_0x1e49c3;}),_0x4c0036[_0x5c4f('0x5')](),_0x5420d6['on'](_0x5c4f('0x13'),(_0xc464f3,_0xd7417e,_0x271e4d)=>{_0x271e4d?_0x4c0036[_0x5c4f('0x1e')]():_0x4c0036['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(_0x58ad4f,_0x180e91,_0x1c6d93){const t=_0x58ad4f['t'];switch(_0x180e91){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'},_0x1c6d93);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1c6d93);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 _0x180e91;}}