@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230825.0 → 0.0.0-nightly-20230827.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 _0x5cfd=['config','children','cancel','addMany','bind','RevisionHistoryUI','isEnabled','get','submit','saveRevision','saveButtonView','isReady','execute','length','change:isOpen','revisionHistory','revisionName','editing','buttonView','items','reset','editor','showRevisionViewerCallback','init','Revision\x20history','panelView','add','remove','focus','requires','plugins','render','set','isReadOnly'];(function(_0x32dbd9,_0x5cfd68){const _0x1848f0=function(_0x1d7eab){while(--_0x1d7eab){_0x32dbd9['push'](_0x32dbd9['shift']());}};_0x1848f0(++_0x5cfd68);}(_0x5cfd,0x139));const _0x1848=function(_0x32dbd9,_0x5cfd68){_0x32dbd9=_0x32dbd9-0x0;let _0x1848f0=_0x5cfd[_0x32dbd9];return _0x1848f0;};import{Plugin as _0x7b4bef}from'ckeditor5/src/core';import{ListView as _0x441ee2,ListItemView as _0x5d10bf,ButtonView as _0x264004,createDropdown as _0x3cabad}from'ckeditor5/src/ui';import _0x194e13 from'../../revisiontracker';import _0x315f11 from'./revisionhistorysaverevisionformview';import _0x4711c7 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0xc312f7}from'../../utils/common-translations';export default class u extends _0x7b4bef{static get['pluginName'](){return _0x1848('0x20');}static get[_0x1848('0x16')](){return[_0x194e13];}[_0x1848('0x10')](){const _0x2776d4=this[_0x1848('0xe')],_0x4048d4=_0x2776d4[_0x1848('0x17')][_0x1848('0x0')]('RevisionTracker');_0x2776d4['ui']['componentFactory'][_0x1848('0x13')](_0x1848('0x8'),_0x2255ce=>{const _0xdf1f72=_0x3cabad(_0x2255ce),_0xfc0cd8=_0xdf1f72[_0x1848('0x12')][_0x1848('0x1c')],_0x47fba0=new _0x441ee2(_0x2255ce),_0x29d94e=new _0x5d10bf(_0x2255ce),_0x54b033=new _0x264004(_0x2255ce),_0x49484c=new _0x5d10bf(_0x2255ce),_0x18d230=new _0x264004(_0x2255ce),_0x54654f=new _0x315f11(_0x2255ce);function _0x432775(){_0xfc0cd8['length']&&_0xfc0cd8[_0x1848('0x14')](0x0),_0xfc0cd8[_0x1848('0x13')](_0x47fba0);}function _0x55b3e7(){_0xdf1f72['isOpen']=!0x1,_0x2776d4[_0x1848('0xa')]['view'][_0x1848('0x15')]();}return _0xdf1f72['bind'](_0x1848('0x21'))['to'](_0x4048d4,_0x1848('0x4'),_0x4048d4,_0x1848('0x21'),_0x2776d4,_0x1848('0x1a'),(_0x4439c3,_0x10db00,_0x5bc63b)=>_0x4439c3&&_0x10db00&&!_0x5bc63b),_0xdf1f72[_0x1848('0xb')]['set']({'icon':_0x4711c7,'label':_0xc312f7(_0x2255ce,_0x1848('0x11')),'tooltip':!0x0}),_0x54b033[_0x1848('0x19')]({'label':_0xc312f7(_0x2255ce,'Save\x20current\x20revision'),'withText':!0x0}),_0x54b033['bind'](_0x1848('0x21'))['to'](_0x4048d4,'isReady',_0x4048d4,_0x1848('0x21'),_0x2776d4,_0x1848('0x1a'),(_0x47064e,_0x556d6b,_0x4f9cd2)=>_0x47064e&&_0x556d6b&&!_0x4f9cd2),_0x54b033['on'](_0x1848('0x5'),()=>function(){_0xfc0cd8[_0x1848('0x6')]&&_0xfc0cd8[_0x1848('0x14')](0x0),(_0x54654f[_0x1848('0xd')](),_0xfc0cd8[_0x1848('0x13')](_0x54654f),_0x54654f['focus']());}()),_0x18d230[_0x1848('0x19')]({'label':_0xc312f7(_0x2255ce,'Open\x20revision\x20history'),'withText':!0x0}),_0x18d230[_0x1848('0x1f')](_0x1848('0x21'))['to'](_0x4048d4,'isReady',_0x2776d4,'isReadOnly',(_0x1fb616,_0x58bba4)=>_0x1fb616&&!_0x58bba4),_0x18d230['on'](_0x1848('0x5'),()=>{_0x2776d4[_0x1848('0x1b')]['get'](_0x1848('0x8'))[_0x1848('0xf')](),_0x55b3e7();}),_0x29d94e['children'][_0x1848('0x13')](_0x54b033),_0x49484c[_0x1848('0x1c')]['add'](_0x18d230),_0x47fba0[_0x1848('0xc')][_0x1848('0x1e')]([_0x29d94e,_0x49484c]),_0xdf1f72['on'](_0x1848('0x7'),()=>_0x432775()),_0x54654f[_0x1848('0x3')][_0x1848('0x1f')](_0x1848('0x21'))['to'](_0x4048d4,'isReady',_0x4048d4,_0x1848('0x21'),_0x2776d4,_0x1848('0x1a'),(_0x2c66af,_0x169dd8,_0x405a74)=>_0x2c66af&&_0x169dd8&&!_0x405a74),_0x54654f['on'](_0x1848('0x1'),()=>(_0x2776d4[_0x1848('0x17')]['get'](_0x194e13)[_0x1848('0x2')]({'name':_0x54654f[_0x1848('0x9')]}),void _0x55b3e7())),_0x54654f['on'](_0x1848('0x1d'),()=>_0x432775()),_0x54654f[_0x1848('0x18')](),_0x432775(),_0xdf1f72;});}}
23
+ const _0x3780=['get','add','panelView','init','execute','requires','remove','reset','isOpen','isEnabled','isReady','componentFactory','focus','set','showRevisionViewerCallback','bind','saveButtonView','length','revisionHistory','render','config','RevisionHistoryUI','buttonView','change:isOpen','addMany','editor','items','isReadOnly','cancel','Save\x20current\x20revision','children','plugins','RevisionTracker'];(function(_0x358354,_0x378035){const _0x492baf=function(_0x4928bd){while(--_0x4928bd){_0x358354['push'](_0x358354['shift']());}};_0x492baf(++_0x378035);}(_0x3780,0x144));const _0x492b=function(_0x358354,_0x378035){_0x358354=_0x358354-0x0;let _0x492baf=_0x3780[_0x358354];return _0x492baf;};import{Plugin as _0x20bb87}from'ckeditor5/src/core';import{ListView as _0x5e2b2c,ListItemView as _0x298b02,ButtonView as _0x3d2b9c,createDropdown as _0x19d827}from'ckeditor5/src/ui';import _0x36de58 from'../../revisiontracker';import _0x5742a4 from'./revisionhistorysaverevisionformview';import _0x54fc06 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x263056}from'../../utils/common-translations';export default class u extends _0x20bb87{static get['pluginName'](){return _0x492b('0x1b');}static get[_0x492b('0xb')](){return[_0x36de58];}[_0x492b('0x9')](){const _0x363907=this[_0x492b('0x1f')],_0x55a595=_0x363907[_0x492b('0x4')]['get'](_0x492b('0x5'));_0x363907['ui'][_0x492b('0x11')][_0x492b('0x7')](_0x492b('0x18'),_0x1b5ea2=>{const _0x1a2481=_0x19d827(_0x1b5ea2),_0x4e189c=_0x1a2481[_0x492b('0x8')][_0x492b('0x3')],_0x5a2216=new _0x5e2b2c(_0x1b5ea2),_0x856555=new _0x298b02(_0x1b5ea2),_0x13631e=new _0x3d2b9c(_0x1b5ea2),_0x1dfa8f=new _0x298b02(_0x1b5ea2),_0x402e47=new _0x3d2b9c(_0x1b5ea2),_0x95f075=new _0x5742a4(_0x1b5ea2);function _0x5f466c(){_0x4e189c[_0x492b('0x17')]&&_0x4e189c['remove'](0x0),_0x4e189c[_0x492b('0x7')](_0x5a2216);}function _0x527b43(){_0x1a2481[_0x492b('0xe')]=!0x1,_0x363907['editing']['view']['focus']();}return _0x1a2481[_0x492b('0x15')]('isEnabled')['to'](_0x55a595,_0x492b('0x10'),_0x55a595,_0x492b('0xf'),_0x363907,_0x492b('0x0'),(_0xda8bf7,_0x35e206,_0xb1b866)=>_0xda8bf7&&_0x35e206&&!_0xb1b866),_0x1a2481[_0x492b('0x1c')][_0x492b('0x13')]({'icon':_0x54fc06,'label':_0x263056(_0x1b5ea2,'Revision\x20history'),'tooltip':!0x0}),_0x13631e['set']({'label':_0x263056(_0x1b5ea2,_0x492b('0x2')),'withText':!0x0}),_0x13631e[_0x492b('0x15')]('isEnabled')['to'](_0x55a595,'isReady',_0x55a595,_0x492b('0xf'),_0x363907,'isReadOnly',(_0x40c80f,_0x4ed247,_0x21c429)=>_0x40c80f&&_0x4ed247&&!_0x21c429),_0x13631e['on'](_0x492b('0xa'),()=>function(){_0x4e189c[_0x492b('0x17')]&&_0x4e189c[_0x492b('0xc')](0x0),(_0x95f075[_0x492b('0xd')](),_0x4e189c[_0x492b('0x7')](_0x95f075),_0x95f075[_0x492b('0x12')]());}()),_0x402e47[_0x492b('0x13')]({'label':_0x263056(_0x1b5ea2,'Open\x20revision\x20history'),'withText':!0x0}),_0x402e47['bind'](_0x492b('0xf'))['to'](_0x55a595,_0x492b('0x10'),_0x363907,_0x492b('0x0'),(_0x118562,_0x225921)=>_0x118562&&!_0x225921),_0x402e47['on'](_0x492b('0xa'),()=>{_0x363907[_0x492b('0x1a')][_0x492b('0x6')](_0x492b('0x18'))[_0x492b('0x14')](),_0x527b43();}),_0x856555[_0x492b('0x3')][_0x492b('0x7')](_0x13631e),_0x1dfa8f[_0x492b('0x3')][_0x492b('0x7')](_0x402e47),_0x5a2216[_0x492b('0x20')][_0x492b('0x1e')]([_0x856555,_0x1dfa8f]),_0x1a2481['on'](_0x492b('0x1d'),()=>_0x5f466c()),_0x95f075[_0x492b('0x16')]['bind'](_0x492b('0xf'))['to'](_0x55a595,'isReady',_0x55a595,_0x492b('0xf'),_0x363907,_0x492b('0x0'),(_0x3a74fc,_0x57f555,_0x209975)=>_0x3a74fc&&_0x57f555&&!_0x209975),_0x95f075['on']('submit',()=>(_0x363907['plugins']['get'](_0x36de58)['saveRevision']({'name':_0x95f075['revisionName']}),void _0x527b43())),_0x95f075['on'](_0x492b('0x1'),()=>_0x5f466c()),_0x95f075[_0x492b('0x19')](),_0x5f466c(),_0x1a2481;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3714=['getEarlierVisibleRevision','listenTo','data','getIndex','ready','destroy','appendChild','_revisionsRepository','getRevision','remove','diff','_revisionViewer','revisionHistory.viewerSidebarContainer','config','nameRevision','element','newRevisionId','selectRevision','highlightRevisions','requires','isVisible','timePeriodViews','revisionSelected','Compare\x20against\x20selected','locale','plugins','compare','isSelected','render','_createRevisionActions','name','defaultRevisionActions','assign','_sidebarView','length','getLaterVisibleRevision','fieldView','editor','revisionHistory.revisionActions','_handleEditorDataReady','restoreRevisionCallback','repository','bind','setName','get','_handleRevisionSetName','revisionSetName','revisionHistory','add','_handleDiffChange','getRevisionsInDiff','change:diff','isReady','init','Name\x20this\x20revision','availableRevisionActions','restoreRevision','string','_revisions','isEnabled','map','revisionViews'];(function(_0x40fdb6,_0x371416){const _0x2693b4=function(_0x193f4b){while(--_0x193f4b){_0x40fdb6['push'](_0x40fdb6['shift']());}};_0x2693b4(++_0x371416);}(_0x3714,0x175));const _0x2693=function(_0x40fdb6,_0x371416){_0x40fdb6=_0x40fdb6-0x0;let _0x2693b4=_0x3714[_0x40fdb6];return _0x2693b4;};import{Plugin as _0x5c51ec}from'ckeditor5/src/core';import _0x1c23f6 from'./revisionssidebarview';import _0x4317af from'../../revisionviewer';export default class w extends _0x5c51ec{static get['pluginName'](){return'RevisionsSidebar';}static get[_0x2693('0x12')](){return[_0x4317af];}constructor(_0x451632){super(_0x451632),this[_0x2693('0xa')]=_0x451632[_0x2693('0x18')][_0x2693('0x2b')](_0x4317af),this[_0x2693('0x6')]=this[_0x2693('0xa')][_0x2693('0x28')],this[_0x2693('0x20')]=null;}[_0x2693('0x34')](){const _0x5595f3=this[_0x2693('0x6')][_0x2693('0x39')],_0x327243=this[_0x2693('0x1c')](),_0x56244b=this[_0x2693('0x24')][_0x2693('0xc')][_0x2693('0x2b')](_0x2693('0xb'));this['_sidebarView']=new _0x1c23f6(this[_0x2693('0x24')][_0x2693('0x17')],_0x5595f3,_0x327243),this[_0x2693('0x20')]['on'](_0x2693('0x15'),this['_handleRevisionSelected']['bind'](this)),this['_sidebarView']['on'](_0x2693('0x2d'),this[_0x2693('0x2c')][_0x2693('0x29')](this)),this[_0x2693('0x20')]['bind'](_0x2693('0x3a'))['to'](this['_revisionViewer']),this[_0x2693('0x20')][_0x2693('0x14')]['on']('add',(_0x14db09,_0x5cbfb7)=>{_0x5cbfb7[_0x2693('0x3c')]['on'](_0x2693('0x2f'),(_0x3e0b97,_0x633ee)=>{_0x633ee[_0x2693('0x29')](_0x2693('0x3a'),_0x2693('0x33'))['to'](this['_revisionViewer']);});}),this[_0x2693('0x20')][_0x2693('0x1b')](),this[_0x2693('0x0')](this['editor'][_0x2693('0x1')],_0x2693('0x3'),this[_0x2693('0x26')][_0x2693('0x29')](this)),this[_0x2693('0x0')](this['_revisionViewer'],_0x2693('0x32'),this[_0x2693('0x30')][_0x2693('0x29')](this)),_0x56244b[_0x2693('0x5')](this[_0x2693('0x20')][_0x2693('0xe')]);}[_0x2693('0x4')](){this['_sidebarView']['element'][_0x2693('0x8')](),this['_sidebarView'][_0x2693('0x4')]();}[_0x2693('0x26')](){const _0x249cc5=this[_0x2693('0x6')][_0x2693('0x7')](0x0);if(_0x249cc5){const _0x57ca9e=this[_0x2693('0x6')][_0x2693('0x3d')](_0x249cc5['id']);this[_0x2693('0xa')][_0x2693('0x19')](_0x249cc5,_0x57ca9e);}}['_handleRevisionSelected'](_0x13eb3b,_0x75099f){const _0x125c8f=this[_0x2693('0x6')][_0x2693('0x7')](_0x75099f['id']),_0x2a0158=this['_revisionsRepository'][_0x2693('0x3d')](_0x125c8f['id']);this[_0x2693('0xa')]['compare'](_0x125c8f,_0x2a0158);}[_0x2693('0x2c')](_0x5a358f,_0x158637){this[_0x2693('0x6')][_0x2693('0x7')](_0x158637['id'])[_0x2693('0x2a')](_0x158637[_0x2693('0x1d')]);}[_0x2693('0x30')](_0x59aa9d,_0x397f7c,_0x53c990){const _0x548187=this[_0x2693('0x6')][_0x2693('0x31')](_0x53c990);_0x548187[_0x2693('0x21')]>0x2?(this['_sidebarView'][_0x2693('0x11')](_0x548187),this['_sidebarView']['selectRevision'](null)):(this[_0x2693('0x20')][_0x2693('0x11')]([]),this[_0x2693('0x20')][_0x2693('0x10')](_0x548187[0x0]));}[_0x2693('0x1c')](){const _0x4cf934=this[_0x2693('0x24')],_0x6db5b6=w['availableRevisionActions'],_0x5dedff=_0x4cf934['config'][_0x2693('0x2b')](_0x2693('0x25'))||w[_0x2693('0x1e')];if(_0x5dedff['length'])return _0x5dedff[_0x2693('0x3b')](_0x10ee19=>{const _0xfcf64d=_0x2693('0x38')==typeof _0x10ee19?Object[_0x2693('0x1f')]({},_0x6db5b6[_0x10ee19]):_0x10ee19;return _0xfcf64d['action']=_0xfcf64d['action'][_0x2693('0x29')](this,_0x4cf934),_0xfcf64d[_0x2693('0x13')]&&(_0xfcf64d[_0x2693('0x13')]=_0xfcf64d['isVisible'][_0x2693('0x29')](this,_0x4cf934)),_0xfcf64d;});}}w[_0x2693('0x36')]={'compareAgainstSelected':{'name':_0x2693('0x16'),'action':({plugins:_0x4628ee},_0x4ccb4a)=>{const _0x5be7fb=_0x4628ee[_0x2693('0x2b')](_0x4317af),_0x18a1b5=_0x5be7fb['repository'];let _0x43edd9=_0x5be7fb[_0x2693('0x9')][_0x2693('0xf')],_0x35eb47=_0x4ccb4a['id'];_0x18a1b5[_0x2693('0x2')](_0x43edd9)>_0x18a1b5[_0x2693('0x2')](_0x35eb47)&&([_0x43edd9,_0x35eb47]=[_0x35eb47,_0x43edd9]),_0x5be7fb[_0x2693('0x19')](_0x43edd9,_0x35eb47);},'isVisible':({plugins:_0x299a54},_0x27389c)=>{const _0x5a4000=_0x299a54['get'](_0x4317af);return!(_0x5a4000['repository'][_0x2693('0x31')](_0x5a4000[_0x2693('0x9')])['length']>0x2)&&!_0x27389c[_0x2693('0x1a')];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x2f691c,{id:_0x15c715})=>{_0x2f691c[_0x2693('0xc')][_0x2693('0x2b')](_0x2693('0x2e'))[_0x2693('0x27')](_0x15c715);},'isVisible':({plugins:_0x864c57},_0x31b415)=>!!_0x864c57[_0x2693('0x2b')](_0x4317af)['repository'][_0x2693('0x22')](_0x31b415['id'])},'nameRevision':{'name':_0x2693('0x35'),'action':({plugins:_0x32cce8},{id:_0x47e7c5,revisionNameView:_0x34ebed})=>{const _0x2726bd=_0x32cce8[_0x2693('0x2b')](_0x4317af),_0x4f1e31=_0x2726bd[_0x2693('0x28')][_0x2693('0x3d')](_0x47e7c5);_0x2726bd[_0x2693('0x19')](_0x47e7c5,_0x4f1e31),_0x34ebed['focus'](),_0x34ebed[_0x2693('0x23')]['select']();}}},w[_0x2693('0x1e')]=['compareAgainstSelected',_0x2693('0x37'),_0x2693('0xd')];
23
+ const _0x17a2=['getIndex','init','destroy','getLaterVisibleRevision','get','getRevisionsInDiff','map','appendChild','editor','Restore\x20this\x20revision','_revisions','focus','getRevision','add','element','_revisionViewer','revisionHistory.revisionActions','availableRevisionActions','repository','_handleEditorDataReady','highlightRevisions','setName','_sidebarView','action','requires','string','revisionHistory','length','diff','remove','listenTo','isSelected','restoreRevision','compareAgainstSelected','isEnabled','selectRevision','timePeriodViews','pluginName','config','_handleRevisionSelected','newRevisionId','isReady','_createRevisionActions','name','bind','revisionSelected','RevisionsSidebar','locale','nameRevision','_revisionsRepository','ready','plugins','revisionSetName','_handleRevisionSetName','defaultRevisionActions','getEarlierVisibleRevision','restoreRevisionCallback','isVisible','compare'];(function(_0xcd775a,_0x17a22f){const _0x2c2519=function(_0x2bad01){while(--_0x2bad01){_0xcd775a['push'](_0xcd775a['shift']());}};_0x2c2519(++_0x17a22f);}(_0x17a2,0x99));const _0x2c25=function(_0xcd775a,_0x17a22f){_0xcd775a=_0xcd775a-0x0;let _0x2c2519=_0x17a2[_0xcd775a];return _0x2c2519;};import{Plugin as _0x2f61d2}from'ckeditor5/src/core';import _0x1c56d6 from'./revisionssidebarview';import _0x2aac1e from'../../revisionviewer';export default class w extends _0x2f61d2{static get[_0x2c25('0x2')](){return _0x2c25('0xb');}static get[_0x2c25('0x30')](){return[_0x2aac1e];}constructor(_0x485a54){super(_0x485a54),this['_revisionViewer']=_0x485a54[_0x2c25('0x10')][_0x2c25('0x1c')](_0x2aac1e),this[_0x2c25('0xe')]=this['_revisionViewer'][_0x2c25('0x2a')],this[_0x2c25('0x2e')]=null;}[_0x2c25('0x19')](){const _0x20fcc7=this['_revisionsRepository'][_0x2c25('0x22')],_0x3bf18f=this[_0x2c25('0x7')](),_0xb8c21d=this[_0x2c25('0x20')][_0x2c25('0x3')][_0x2c25('0x1c')]('revisionHistory.viewerSidebarContainer');this[_0x2c25('0x2e')]=new _0x1c56d6(this[_0x2c25('0x20')][_0x2c25('0xc')],_0x20fcc7,_0x3bf18f),this[_0x2c25('0x2e')]['on'](_0x2c25('0xa'),this[_0x2c25('0x4')]['bind'](this)),this[_0x2c25('0x2e')]['on'](_0x2c25('0x11'),this[_0x2c25('0x12')]['bind'](this)),this[_0x2c25('0x2e')][_0x2c25('0x9')](_0x2c25('0x3a'))['to'](this[_0x2c25('0x27')]),this['_sidebarView'][_0x2c25('0x1')]['on']('add',(_0x40863a,_0x4f789e)=>{_0x4f789e['revisionViews']['on'](_0x2c25('0x25'),(_0x590203,_0x407592)=>{_0x407592[_0x2c25('0x9')](_0x2c25('0x3a'),_0x2c25('0x6'))['to'](this[_0x2c25('0x27')]);});}),this['_sidebarView']['render'](),this['listenTo'](this[_0x2c25('0x20')]['data'],_0x2c25('0xf'),this[_0x2c25('0x2b')][_0x2c25('0x9')](this)),this[_0x2c25('0x36')](this[_0x2c25('0x27')],'change:diff',this['_handleDiffChange'][_0x2c25('0x9')](this)),_0xb8c21d[_0x2c25('0x1f')](this[_0x2c25('0x2e')][_0x2c25('0x26')]);}[_0x2c25('0x1a')](){this['_sidebarView'][_0x2c25('0x26')][_0x2c25('0x35')](),this[_0x2c25('0x2e')][_0x2c25('0x1a')]();}[_0x2c25('0x2b')](){const _0x1ed800=this['_revisionsRepository'][_0x2c25('0x24')](0x0);if(_0x1ed800){const _0x4813ae=this[_0x2c25('0xe')]['getEarlierVisibleRevision'](_0x1ed800['id']);this[_0x2c25('0x27')][_0x2c25('0x17')](_0x1ed800,_0x4813ae);}}['_handleRevisionSelected'](_0x338f2f,_0x3a3508){const _0x46bddb=this[_0x2c25('0xe')][_0x2c25('0x24')](_0x3a3508['id']),_0x44be19=this[_0x2c25('0xe')]['getEarlierVisibleRevision'](_0x46bddb['id']);this['_revisionViewer']['compare'](_0x46bddb,_0x44be19);}[_0x2c25('0x12')](_0x1d7488,_0x3c39aa){this[_0x2c25('0xe')][_0x2c25('0x24')](_0x3c39aa['id'])[_0x2c25('0x2d')](_0x3c39aa[_0x2c25('0x8')]);}['_handleDiffChange'](_0x1e88ee,_0x2e26b7,_0x404968){const _0xf3961c=this[_0x2c25('0xe')][_0x2c25('0x1d')](_0x404968);_0xf3961c[_0x2c25('0x33')]>0x2?(this[_0x2c25('0x2e')][_0x2c25('0x2c')](_0xf3961c),this[_0x2c25('0x2e')][_0x2c25('0x0')](null)):(this[_0x2c25('0x2e')][_0x2c25('0x2c')]([]),this[_0x2c25('0x2e')]['selectRevision'](_0xf3961c[0x0]));}[_0x2c25('0x7')](){const _0x1d3433=this[_0x2c25('0x20')],_0x5ac645=w[_0x2c25('0x29')],_0x41a315=_0x1d3433[_0x2c25('0x3')][_0x2c25('0x1c')](_0x2c25('0x28'))||w[_0x2c25('0x13')];if(_0x41a315[_0x2c25('0x33')])return _0x41a315[_0x2c25('0x1e')](_0x1d7087=>{const _0x304c58=_0x2c25('0x31')==typeof _0x1d7087?Object['assign']({},_0x5ac645[_0x1d7087]):_0x1d7087;return _0x304c58[_0x2c25('0x2f')]=_0x304c58[_0x2c25('0x2f')]['bind'](this,_0x1d3433),_0x304c58[_0x2c25('0x16')]&&(_0x304c58[_0x2c25('0x16')]=_0x304c58[_0x2c25('0x16')]['bind'](this,_0x1d3433)),_0x304c58;});}}w[_0x2c25('0x29')]={'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x37c2a0},_0x1138bd)=>{const _0x51ee31=_0x37c2a0['get'](_0x2aac1e),_0x502501=_0x51ee31[_0x2c25('0x2a')];let _0x519dcd=_0x51ee31[_0x2c25('0x34')][_0x2c25('0x5')],_0x44dd2d=_0x1138bd['id'];_0x502501['getIndex'](_0x519dcd)>_0x502501[_0x2c25('0x18')](_0x44dd2d)&&([_0x519dcd,_0x44dd2d]=[_0x44dd2d,_0x519dcd]),_0x51ee31[_0x2c25('0x17')](_0x519dcd,_0x44dd2d);},'isVisible':({plugins:_0x56aaae},_0x20fab0)=>{const _0x414076=_0x56aaae[_0x2c25('0x1c')](_0x2aac1e);return!(_0x414076[_0x2c25('0x2a')][_0x2c25('0x1d')](_0x414076[_0x2c25('0x34')])[_0x2c25('0x33')]>0x2)&&!_0x20fab0[_0x2c25('0x37')];}},'restoreRevision':{'name':_0x2c25('0x21'),'action':(_0x242260,{id:_0x7ba904})=>{_0x242260[_0x2c25('0x3')]['get'](_0x2c25('0x32'))[_0x2c25('0x15')](_0x7ba904);},'isVisible':({plugins:_0x10570f},_0x25d869)=>!!_0x10570f[_0x2c25('0x1c')](_0x2aac1e)['repository'][_0x2c25('0x1b')](_0x25d869['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x46e890},{id:_0x4011eb,revisionNameView:_0x21b937})=>{const _0x16e9aa=_0x46e890[_0x2c25('0x1c')](_0x2aac1e),_0x3b18e3=_0x16e9aa[_0x2c25('0x2a')][_0x2c25('0x14')](_0x4011eb);_0x16e9aa[_0x2c25('0x17')](_0x4011eb,_0x3b18e3),_0x21b937[_0x2c25('0x23')](),_0x21b937['fieldView']['select']();}}},w[_0x2c25('0x13')]=[_0x2c25('0x39'),_0x2c25('0x38'),_0x2c25('0xd')];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3bba=['setTemplate','content','ck-revision-history-sidebar__header__label','ck-reset_all','Revision\x20history'];(function(_0x317c22,_0x3bbaf7){const _0x38aeb3=function(_0x485ae4){while(--_0x485ae4){_0x317c22['push'](_0x317c22['shift']());}};_0x38aeb3(++_0x3bbaf7);}(_0x3bba,0x134));const _0x38ae=function(_0x317c22,_0x3bbaf7){_0x317c22=_0x317c22-0x0;let _0x38aeb3=_0x3bba[_0x317c22];return _0x38aeb3;};import{View as _0x5b6e18,IconView as _0x31a3e6}from'ckeditor5/src/ui';import{getTranslation as _0x5414b5}from'../../utils/common-translations';import _0x22f1c6 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x5b6e18{constructor(_0x52c4e3){super(_0x52c4e3);const _0x3f50dc=new _0x31a3e6();_0x3f50dc[_0x38ae('0x3')]=_0x22f1c6,this[_0x38ae('0x2')]({'tag':'div','attributes':{'class':['ck',_0x38ae('0x0'),'ck-revision-history-sidebar__header']},'children':[_0x3f50dc,{'tag':'span','attributes':{'class':['ck',_0x38ae('0x4')]},'children':[_0x5414b5(_0x52c4e3,_0x38ae('0x1'))]}]});}}
23
+ const _0xaed6=['ck-revision-history-sidebar__header','div','span','setTemplate','content','ck-reset_all','ck-revision-history-sidebar__header__label','Revision\x20history'];(function(_0x441221,_0xaed6af){const _0x344825=function(_0x462ff4){while(--_0x462ff4){_0x441221['push'](_0x441221['shift']());}};_0x344825(++_0xaed6af);}(_0xaed6,0x182));const _0x3448=function(_0x441221,_0xaed6af){_0x441221=_0x441221-0x0;let _0x344825=_0xaed6[_0x441221];return _0x344825;};import{View as _0x67eda3,IconView as _0x1b209c}from'ckeditor5/src/ui';import{getTranslation as _0x21744a}from'../../utils/common-translations';import _0x507492 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x67eda3{constructor(_0x8676cd){super(_0x8676cd);const _0x54eea1=new _0x1b209c();_0x54eea1[_0x3448('0x2')]=_0x507492,this[_0x3448('0x1')]({'tag':_0x3448('0x7'),'attributes':{'class':['ck',_0x3448('0x3'),_0x3448('0x6')]},'children':[_0x54eea1,{'tag':_0x3448('0x0'),'attributes':{'class':['ck',_0x3448('0x4')]},'children':[_0x21744a(_0x8676cd,_0x3448('0x5'))]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x390c=['ck-revision-history-sidebar__time-period__label','createCollection','setName','delegate','localizedPeriodName','div','ck-revision-history-sidebar__time-period','setTemplate','ck-revision-history-sidebar__time-period__revisions','remove','select','_revisionActions','revisionViews','startDate','span','find','addRevision','add','removeRevision'];(function(_0x13fedb,_0x390ca9){const _0x330e79=function(_0x38a8bf){while(--_0x38a8bf){_0x13fedb['push'](_0x13fedb['shift']());}};_0x330e79(++_0x390ca9);}(_0x390c,0xb8));const _0x330e=function(_0x13fedb,_0x390ca9){_0x13fedb=_0x13fedb-0x0;let _0x330e79=_0x390c[_0x13fedb];return _0x330e79;};import{View as _0x417f30}from'ckeditor5/src/ui';import _0x3b607d from'../revision/revisionview';import{getDateTimePeriodInfo as _0x226ab8}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x417f30{constructor(_0x38ed46,_0x106bef,_0x450732){super(_0x38ed46);const _0x51bdea=_0x226ab8(_0x106bef,this['locale']['uiLanguage'])[_0x330e('0xa')];this[_0x330e('0x0')]=_0x106bef,this[_0x330e('0x12')]=this[_0x330e('0x7')](),this['_revisionActions']=_0x450732,this[_0x330e('0x12')][_0x330e('0x9')](_0x330e('0x10'))['to'](this),this[_0x330e('0x12')][_0x330e('0x9')](_0x330e('0x8'))['to'](this),this[_0x330e('0xd')]({'tag':_0x330e('0xb'),'attributes':{'class':['ck',_0x330e('0xc')]},'children':[{'tag':_0x330e('0x1'),'attributes':{'class':['ck',_0x330e('0x6')]},'children':[{'text':_0x51bdea}]},{'tag':_0x330e('0xb'),'attributes':{'class':['ck',_0x330e('0xe')]},'children':this[_0x330e('0x12')]}]});}[_0x330e('0x3')](_0x3499a0){const _0x3ca693=new _0x3b607d(this['locale'],_0x3499a0,this[_0x330e('0x11')]);this[_0x330e('0x12')][_0x330e('0x4')](_0x3ca693);}[_0x330e('0x5')](_0x228af7){const _0x24e88d=this[_0x330e('0x12')][_0x330e('0x2')](_0x348457=>_0x348457['id']===_0x228af7['id']);this['revisionViews'][_0x330e('0xf')](_0x24e88d);}}
23
+ const _0x416f=['removeRevision','uiLanguage','delegate','_revisionActions','locale','select','addRevision','startDate','ck-revision-history-sidebar__time-period__label','ck-revision-history-sidebar__time-period','createCollection','setName','revisionViews','div','setTemplate','ck-revision-history-sidebar__time-period__revisions','localizedPeriodName'];(function(_0x405242,_0x416fb2){const _0x47f579=function(_0x2f3856){while(--_0x2f3856){_0x405242['push'](_0x405242['shift']());}};_0x47f579(++_0x416fb2);}(_0x416f,0x172));const _0x47f5=function(_0x405242,_0x416fb2){_0x405242=_0x405242-0x0;let _0x47f579=_0x416f[_0x405242];return _0x47f579;};import{View as _0x3f210b}from'ckeditor5/src/ui';import _0x3abeb1 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x48ecfb}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x3f210b{constructor(_0x5589f2,_0x5081cb,_0x2c3933){super(_0x5589f2);const _0x5453cb=_0x48ecfb(_0x5081cb,this[_0x47f5('0x8')][_0x47f5('0x5')])[_0x47f5('0x3')];this[_0x47f5('0xb')]=_0x5081cb,this['revisionViews']=this[_0x47f5('0xe')](),this[_0x47f5('0x7')]=_0x2c3933,this['revisionViews'][_0x47f5('0x6')](_0x47f5('0x9'))['to'](this),this['revisionViews'][_0x47f5('0x6')](_0x47f5('0xf'))['to'](this),this[_0x47f5('0x1')]({'tag':_0x47f5('0x0'),'attributes':{'class':['ck',_0x47f5('0xd')]},'children':[{'tag':'span','attributes':{'class':['ck',_0x47f5('0xc')]},'children':[{'text':_0x5453cb}]},{'tag':_0x47f5('0x0'),'attributes':{'class':['ck',_0x47f5('0x2')]},'children':this['revisionViews']}]});}[_0x47f5('0xa')](_0x46dfd3){const _0x545bef=new _0x3abeb1(this[_0x47f5('0x8')],_0x46dfd3,this['_revisionActions']);this['revisionViews']['add'](_0x545bef);}[_0x47f5('0x4')](_0x4c76f6){const _0x53b808=this['revisionViews']['find'](_0x4f14fb=>_0x4f14fb['id']===_0x4c76f6['id']);this[_0x47f5('0x10')]['remove'](_0x53b808);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3947=['uiLanguage','timePeriodViews','getTime','setTemplate','add','get','select','_getTimePeriodViewByStartDate','setName','ck-reset','_revisions','_revisionActions','some','fire','_removeRevision','ck-disabled','locale','ck-revision-history-sidebar','isEnabled','createCollection','render','addRevision','revisionSelected','map','bindTemplate','removeRevision','set','delegate','_addRevision','ck-revision-history-sidebar__timeline','startDate','revisionSetName','revisionViews','createdAt','flat','selectRevision','div'];(function(_0x19b6dc,_0x39470d){const _0x70212a=function(_0x9d232b){while(--_0x9d232b){_0x19b6dc['push'](_0x19b6dc['shift']());}};_0x70212a(++_0x39470d);}(_0x3947,0xd0));const _0x7021=function(_0x19b6dc,_0x39470d){_0x19b6dc=_0x19b6dc-0x0;let _0x70212a=_0x3947[_0x19b6dc];return _0x70212a;};import{View as _0x564669}from'ckeditor5/src/ui';import _0x32daba from'./revisionssidebartimeperiodview';import _0x2e9f41 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x82904f}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x564669{constructor(_0x5e7e7c,_0x10f6fd,_0x351bed){super(_0x5e7e7c);const _0x56c770=this[_0x7021('0x1')];this[_0x7021('0xf')]=this[_0x7021('0x21')](),this[_0x7021('0xf')][_0x7021('0x4')](_0x7021('0x14'))['to'](this),this[_0x7021('0xf')][_0x7021('0x4')](_0x7021('0x16'))['to'](this),this[_0x7021('0x18')]=_0x10f6fd,this[_0x7021('0x19')]=_0x351bed,this['on'](_0x7021('0x14'),(_0xcca718,_0x505e70)=>{this['fire'](_0x7021('0x24'),_0x505e70);}),this['on']('setName',(_0x4bf02d,_0x51ae64)=>{this[_0x7021('0x1b')](_0x7021('0x8'),_0x51ae64);}),this[_0x7021('0x3')]('isEnabled',!0x1),this[_0x7021('0x11')]({'tag':_0x7021('0xd'),'attributes':{'class':['ck',_0x7021('0x17'),'ck-rounded-corners',_0x7021('0x1f')]},'children':[new _0x2e9f41(_0x5e7e7c),{'tag':_0x7021('0xd'),'attributes':{'class':['ck',_0x7021('0x6'),_0x56c770['if'](_0x7021('0x20'),_0x7021('0x1d'),_0x1aa50e=>!_0x1aa50e)]},'children':this[_0x7021('0xf')]}]});}[_0x7021('0x22')](){super['render']();for(const _0x36986f of this['_revisions'])this[_0x7021('0x5')](_0x36986f);this[_0x7021('0x18')]['on'](_0x7021('0x12'),(_0x4fbed7,_0x457450)=>{this['_addRevision'](_0x457450);}),this[_0x7021('0x18')]['on']('remove',(_0x33e0be,_0x542ca2)=>{this[_0x7021('0x1c')](_0x542ca2);});}get['revisionViews'](){return this[_0x7021('0xf')][_0x7021('0x0')](_0x30d29d=>_0x30d29d[_0x7021('0x9')][_0x7021('0x0')](_0x160c0d=>_0x160c0d))[_0x7021('0xb')]();}[_0x7021('0xc')](_0x5639f1){for(const _0x42417f of this[_0x7021('0x9')])_0x5639f1&&_0x5639f1['id']===_0x42417f['id']?_0x42417f[_0x7021('0x14')]():_0x42417f['deselect']();}['highlightRevisions'](_0x3abbbf){for(const _0x5e50c6 of this[_0x7021('0x9')])_0x3abbbf[_0x7021('0x1a')](({id:_0x14c8f4})=>_0x14c8f4===_0x5e50c6['id'])?_0x5e50c6['highlight']():_0x5e50c6['unhighlight']();}[_0x7021('0x5')](_0x18cd76){const _0x3309a3=_0x82904f(_0x18cd76[_0x7021('0xa')],this[_0x7021('0x1e')][_0x7021('0xe')])[_0x7021('0x7')];let _0x4a1a29=this['timePeriodViews'][_0x7021('0x13')](0x0);_0x4a1a29&&_0x4a1a29[_0x7021('0x7')][_0x7021('0x10')]()===_0x3309a3['getTime']()||(_0x4a1a29=new _0x32daba(this[_0x7021('0x1e')],_0x3309a3,this[_0x7021('0x19')]),this['timePeriodViews']['add'](_0x4a1a29)),_0x4a1a29[_0x7021('0x23')](_0x18cd76);}['_removeRevision'](_0x4f9c40){const _0x2d8e04=_0x82904f(_0x4f9c40[_0x7021('0xa')],this[_0x7021('0x1e')][_0x7021('0xe')])[_0x7021('0x7')];this[_0x7021('0x15')](_0x2d8e04)[_0x7021('0x2')](_0x4f9c40);}[_0x7021('0x15')](_0x3ab4d9){return this[_0x7021('0xf')]['find'](_0x5acc3b=>_0x5acc3b[_0x7021('0x7')][_0x7021('0x10')]()===_0x3ab4d9['getTime']());}}
23
+ const _0x3ae6=['addRevision','some','isEnabled','ck-revision-history-sidebar__timeline','_removeRevision','highlight','unhighlight','ck-rounded-corners','delegate','render','map','locale','revisionSetName','ck-revision-history-sidebar','createCollection','timePeriodViews','fire','_addRevision','find','get','flat','div','select','getTime','_revisions','remove','revisionViews','set','setName','deselect','_revisionActions','revisionSelected','uiLanguage','startDate'];(function(_0x16cc69,_0x3ae612){const _0x13faed=function(_0x2068da){while(--_0x2068da){_0x16cc69['push'](_0x16cc69['shift']());}};_0x13faed(++_0x3ae612);}(_0x3ae6,0xc3));const _0x13fa=function(_0x16cc69,_0x3ae612){_0x16cc69=_0x16cc69-0x0;let _0x13faed=_0x3ae6[_0x16cc69];return _0x13faed;};import{View as _0x5ddf6e}from'ckeditor5/src/ui';import _0x5688a7 from'./revisionssidebartimeperiodview';import _0x264bae from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x423802}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x5ddf6e{constructor(_0x2ef0d6,_0x93f5f7,_0x33cb35){super(_0x2ef0d6);const _0x3bcbea=this['bindTemplate'];this[_0x13fa('0x18')]=this[_0x13fa('0x17')](),this[_0x13fa('0x18')][_0x13fa('0x11')](_0x13fa('0x1f'))['to'](this),this[_0x13fa('0x18')][_0x13fa('0x11')]('setName')['to'](this),this[_0x13fa('0x21')]=_0x93f5f7,this[_0x13fa('0x5')]=_0x33cb35,this['on'](_0x13fa('0x1f'),(_0xac37c1,_0x26937e)=>{this[_0x13fa('0x19')](_0x13fa('0x6'),_0x26937e);}),this['on'](_0x13fa('0x3'),(_0x12375e,_0x464208)=>{this['fire'](_0x13fa('0x15'),_0x464208);}),this[_0x13fa('0x2')](_0x13fa('0xb'),!0x1),this['setTemplate']({'tag':_0x13fa('0x1e'),'attributes':{'class':['ck','ck-reset',_0x13fa('0x10'),_0x13fa('0x16')]},'children':[new _0x264bae(_0x2ef0d6),{'tag':'div','attributes':{'class':['ck',_0x13fa('0xc'),_0x3bcbea['if'](_0x13fa('0xb'),'ck-disabled',_0xaeed51=>!_0xaeed51)]},'children':this['timePeriodViews']}]});}[_0x13fa('0x12')](){super[_0x13fa('0x12')]();for(const _0xf7bf56 of this[_0x13fa('0x21')])this[_0x13fa('0x1a')](_0xf7bf56);this['_revisions']['on']('add',(_0x52226c,_0x5bc586)=>{this['_addRevision'](_0x5bc586);}),this['_revisions']['on'](_0x13fa('0x0'),(_0x2b765e,_0x28f04a)=>{this[_0x13fa('0xd')](_0x28f04a);});}get[_0x13fa('0x1')](){return this[_0x13fa('0x18')][_0x13fa('0x13')](_0x10c00d=>_0x10c00d[_0x13fa('0x1')][_0x13fa('0x13')](_0x3f51d1=>_0x3f51d1))[_0x13fa('0x1d')]();}['selectRevision'](_0x1a999b){for(const _0x43dde6 of this[_0x13fa('0x1')])_0x1a999b&&_0x1a999b['id']===_0x43dde6['id']?_0x43dde6['select']():_0x43dde6[_0x13fa('0x4')]();}['highlightRevisions'](_0x97adc3){for(const _0x5452d5 of this[_0x13fa('0x1')])_0x97adc3[_0x13fa('0xa')](({id:_0x49270f})=>_0x49270f===_0x5452d5['id'])?_0x5452d5[_0x13fa('0xe')]():_0x5452d5[_0x13fa('0xf')]();}[_0x13fa('0x1a')](_0x2b8110){const _0x3caa06=_0x423802(_0x2b8110['createdAt'],this['locale'][_0x13fa('0x7')])[_0x13fa('0x8')];let _0x471e14=this[_0x13fa('0x18')][_0x13fa('0x1c')](0x0);_0x471e14&&_0x471e14[_0x13fa('0x8')][_0x13fa('0x20')]()===_0x3caa06[_0x13fa('0x20')]()||(_0x471e14=new _0x5688a7(this[_0x13fa('0x14')],_0x3caa06,this[_0x13fa('0x5')]),this[_0x13fa('0x18')]['add'](_0x471e14)),_0x471e14[_0x13fa('0x9')](_0x2b8110);}[_0x13fa('0xd')](_0x30cf6d){const _0x4b6788=_0x423802(_0x30cf6d['createdAt'],this[_0x13fa('0x14')]['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x4b6788)['removeRevision'](_0x30cf6d);}['_getTimePeriodViewByStartDate'](_0xb597b2){return this[_0x13fa('0x18')][_0x13fa('0x1b')](_0x320454=>_0x320454[_0x13fa('0x8')][_0x13fa('0x20')]()===_0xb597b2['getTime']());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x166f=['day','monthLong','year','minus','week','startOf','toRelativeCalendar','hasSame','local','month','toJSDate'];(function(_0x32e8a3,_0x166f21){const _0x25ba8e=function(_0x4f4b43){while(--_0x4f4b43){_0x32e8a3['push'](_0x32e8a3['shift']());}};_0x25ba8e(++_0x166f21);}(_0x166f,0x13a));const _0x25ba=function(_0x32e8a3,_0x166f21){_0x32e8a3=_0x32e8a3-0x0;let _0x25ba8e=_0x166f[_0x32e8a3];return _0x25ba8e;};import{DateTime as _0x408f49}from'luxon';export function getDateTimePeriodInfo(_0x224f1d,_0x447767){const _0x11ac9d=_0x408f49['fromJSDate'](_0x224f1d)['setLocale'](_0x447767),_0x56602=_0x408f49[_0x25ba('0x2')](),_0x4350aa=_0x56602[_0x25ba('0x8')]({'days':0x1})[_0x25ba('0xa')](_0x25ba('0x5'));let _0x3e5683,_0x2f7e0a;return _0x11ac9d[_0x25ba('0x1')](_0x56602,_0x25ba('0x5'))?(_0x3e5683=_0x11ac9d['startOf'](_0x25ba('0x5'))[_0x25ba('0x4')](),_0x2f7e0a=_0x11ac9d[_0x25ba('0x0')]()):_0x11ac9d[_0x25ba('0x1')](_0x4350aa,_0x25ba('0x5'))?(_0x3e5683=_0x4350aa[_0x25ba('0x4')](),_0x2f7e0a=_0x11ac9d[_0x25ba('0x0')]()):_0x11ac9d[_0x25ba('0x1')](_0x56602,'week')?(_0x3e5683=_0x11ac9d[_0x25ba('0xa')](_0x25ba('0x9'))[_0x25ba('0x4')](),_0x2f7e0a=_0x11ac9d['weekdayLong']||''):_0x11ac9d['hasSame'](_0x56602,'year')?(_0x3e5683=_0x11ac9d[_0x25ba('0xa')](_0x25ba('0x3'))[_0x25ba('0x4')](),_0x2f7e0a=_0x11ac9d[_0x25ba('0x6')]||''):(_0x3e5683=_0x11ac9d[_0x25ba('0xa')](_0x25ba('0x7'))[_0x25ba('0x4')](),_0x2f7e0a=String(_0x11ac9d['year'])),{'startDate':_0x3e5683,'localizedPeriodName':_0x2f7e0a};}
23
+ const _0x4fca=['week','minus','month','fromJSDate','day','startOf','local','monthLong','toJSDate','weekdayLong','toRelativeCalendar','setLocale','hasSame','year'];(function(_0x3e0e72,_0x4fca1d){const _0x17e7c0=function(_0x28796a){while(--_0x28796a){_0x3e0e72['push'](_0x3e0e72['shift']());}};_0x17e7c0(++_0x4fca1d);}(_0x4fca,0x168));const _0x17e7=function(_0x3e0e72,_0x4fca1d){_0x3e0e72=_0x3e0e72-0x0;let _0x17e7c0=_0x4fca[_0x3e0e72];return _0x17e7c0;};import{DateTime as _0xceed4b}from'luxon';export function getDateTimePeriodInfo(_0x2b7825,_0x4d834c){const _0x5d78e3=_0xceed4b[_0x17e7('0x7')](_0x2b7825)[_0x17e7('0x1')](_0x4d834c),_0x4c3895=_0xceed4b[_0x17e7('0xa')](),_0x3a7123=_0x4c3895[_0x17e7('0x5')]({'days':0x1})['startOf'](_0x17e7('0x8'));let _0x266b2a,_0x5ef727;return _0x5d78e3[_0x17e7('0x2')](_0x4c3895,'day')?(_0x266b2a=_0x5d78e3['startOf'](_0x17e7('0x8'))[_0x17e7('0xc')](),_0x5ef727=_0x5d78e3[_0x17e7('0x0')]()):_0x5d78e3[_0x17e7('0x2')](_0x3a7123,_0x17e7('0x8'))?(_0x266b2a=_0x3a7123[_0x17e7('0xc')](),_0x5ef727=_0x5d78e3[_0x17e7('0x0')]()):_0x5d78e3[_0x17e7('0x2')](_0x4c3895,_0x17e7('0x4'))?(_0x266b2a=_0x5d78e3['startOf'](_0x17e7('0x4'))[_0x17e7('0xc')](),_0x5ef727=_0x5d78e3[_0x17e7('0xd')]||''):_0x5d78e3[_0x17e7('0x2')](_0x4c3895,_0x17e7('0x3'))?(_0x266b2a=_0x5d78e3[_0x17e7('0x9')](_0x17e7('0x6'))[_0x17e7('0xc')](),_0x5ef727=_0x5d78e3[_0x17e7('0xb')]||''):(_0x266b2a=_0x5d78e3[_0x17e7('0x9')](_0x17e7('0x3'))[_0x17e7('0xc')](),_0x5ef727=String(_0x5d78e3[_0x17e7('0x3')])),{'startDate':_0x266b2a,'localizedPeriodName':_0x5ef727};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x31a6=['ck-revision-change__label','div','focus','name','type','set','ck-revision-change__','ck-annotation','Removed\x20by','changeId','add','_model','span','author'];(function(_0x41ab47,_0x31a6c1){const _0x8be7ec=function(_0x9a50bf){while(--_0x9a50bf){_0x41ab47['push'](_0x41ab47['shift']());}};_0x8be7ec(++_0x31a6c1);}(_0x31a6,0x178));const _0x8be7=function(_0x41ab47,_0x31a6c1){_0x41ab47=_0x41ab47-0x0;let _0x8be7ec=_0x31a6[_0x41ab47];return _0x8be7ec;};import{View as _0x4e0a24}from'ckeditor5/src/ui';import{getTranslation as _0x14b3a1}from'../../utils/common-translations';export default class Z extends _0x4e0a24{constructor(_0x33fc15,_0x224931){super(_0x33fc15),this[_0x8be7('0xd')]=_0x224931,this[_0x8be7('0xb')]=_0x224931['id'];const _0x3b3a31=this['bindTemplate'],_0x309f1a=_0x14b3a1(_0x33fc15,_0x224931['data']['isSuggestion']?'Suggested\x20by':_0x8be7('0xc')==_0x224931[_0x8be7('0x6')]?'Added\x20by':_0x8be7('0xa'));this[_0x8be7('0x7')](_0x8be7('0x6'),_0x224931['type']),this['setTemplate']({'tag':_0x8be7('0x3'),'attributes':{'class':[_0x8be7('0x9'),'ck-revision-change',_0x3b3a31['to']('type',_0x53be5e=>_0x8be7('0x8')+_0x53be5e)],'tabindex':-0x1},'children':[{'tag':_0x8be7('0x0'),'children':[{'tag':_0x8be7('0x0'),'attributes':{'class':[_0x8be7('0x2')]},'children':[{'text':_0x309f1a}]},{'text':'\x20'+_0x224931[_0x8be7('0x1')][_0x8be7('0x5')]}]}]});}['focus'](){this['element'][_0x8be7('0x4')]();}}
23
+ const _0x17a1=['isSuggestion','element','div','Removed\x20by','span','type','focus','set','ck-revision-change__','_model','author','bindTemplate','name','data','ck-revision-change'];(function(_0x491bb0,_0x17a13c){const _0x5285b0=function(_0x17c6db){while(--_0x17c6db){_0x491bb0['push'](_0x491bb0['shift']());}};_0x5285b0(++_0x17a13c);}(_0x17a1,0x197));const _0x5285=function(_0x491bb0,_0x17a13c){_0x491bb0=_0x491bb0-0x0;let _0x5285b0=_0x17a1[_0x491bb0];return _0x5285b0;};import{View as _0x4faf15}from'ckeditor5/src/ui';import{getTranslation as _0x51320e}from'../../utils/common-translations';export default class Z extends _0x4faf15{constructor(_0x583848,_0x540778){super(_0x583848),this[_0x5285('0x7')]=_0x540778,this['changeId']=_0x540778['id'];const _0x11daba=this[_0x5285('0x9')],_0x49906f=_0x51320e(_0x583848,_0x540778[_0x5285('0xb')][_0x5285('0xd')]?'Suggested\x20by':'add'==_0x540778[_0x5285('0x3')]?'Added\x20by':_0x5285('0x1'));this[_0x5285('0x5')](_0x5285('0x3'),_0x540778['type']),this['setTemplate']({'tag':_0x5285('0x0'),'attributes':{'class':['ck-annotation',_0x5285('0xc'),_0x11daba['to'](_0x5285('0x3'),_0x502001=>_0x5285('0x6')+_0x502001)],'tabindex':-0x1},'children':[{'tag':_0x5285('0x2'),'children':[{'tag':_0x5285('0x2'),'attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x49906f}]},{'text':'\x20'+_0x540778[_0x5285('0x8')][_0x5285('0xa')]}]}]});}[_0x5285('0x4')](){this[_0x5285('0xe')][_0x5285('0x4')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x12c9=['set','span','_isStatusLabelVisible','bindTemplate','X_OF_Y_CHANGES','isReady','ck-revision-history-ui','currentChangeNumber','bind','forward','fire','isBackwardNavigationEnabled','isEnabled','_statusText','execute','NUMBER_OF_CHANGES','numberOfChanges','Total','isForwardNavigationEnabled','isNavigationMode','No\x20changes','div','ck-revision-history-ui__changes-navigation__label','backward','Loading...'];(function(_0x2ba5e9,_0x12c9a0){const _0x476f7f=function(_0x8fae6f){while(--_0x8fae6f){_0x2ba5e9['push'](_0x2ba5e9['shift']());}};_0x476f7f(++_0x12c9a0);}(_0x12c9,0x11b));const _0x476f=function(_0x2ba5e9,_0x12c9a0){_0x2ba5e9=_0x2ba5e9-0x0;let _0x476f7f=_0x12c9[_0x2ba5e9];return _0x476f7f;};import{View as _0x3f6321,ButtonView as _0x29a4dc,ToolbarSeparatorView as _0x2a138e}from'ckeditor5/src/ui';import{getTranslation as _0x56b388}from'../../utils/common-translations';import _0x48203c from'../../../theme/icons/arrow-up.svg';import _0x4ea168 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x3f6321{constructor(_0x49c893){super(_0x49c893);const _0x153ada=this[_0x476f('0x14')],_0x186f68=new _0x29a4dc(_0x49c893),_0x27a8e7=new _0x29a4dc(_0x49c893);this[_0x476f('0x11')]('isNavigationMode',!0x1),this['set'](_0x476f('0x16'),!0x1),this['set'](_0x476f('0x18'),0x0),this['set']('numberOfChanges',0x0),this['set'](_0x476f('0xa'),!0x1),this[_0x476f('0x11')](_0x476f('0x3'),!0x1),this[_0x476f('0x0')](_0x476f('0x13'))['to'](this,_0x476f('0x16'),this,_0x476f('0x8'),(_0x35fbd,_0x51d85c)=>_0x35fbd&&_0x51d85c>0x0),this[_0x476f('0x0')](_0x476f('0x5'))['to'](this,_0x476f('0x16'),this,_0x476f('0x18'),this,_0x476f('0x8'),this,_0x476f('0xb'),(_0x10c05f,_0x51d3e6,_0x1c99d4,_0x27564f)=>{if(!_0x10c05f)return _0x56b388(_0x49c893,_0x476f('0x10'));if(!_0x1c99d4)return _0x56b388(_0x49c893,_0x476f('0xc'));const _0x3f7c7d=_0x56b388(_0x49c893,_0x476f('0x7'),_0x1c99d4);return _0x27564f?_0x56b388(_0x49c893,_0x476f('0x15'),[_0x51d3e6+0x1,_0x1c99d4]):_0x3f7c7d;}),_0x186f68[_0x476f('0x11')]({'label':_0x56b388(_0x49c893,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x48203c}),_0x27a8e7['set']({'label':_0x56b388(_0x49c893,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x4ea168}),_0x186f68[_0x476f('0x0')](_0x476f('0x4'))['to'](this,'isBackwardNavigationEnabled'),_0x27a8e7[_0x476f('0x0')](_0x476f('0x4'))['to'](this,_0x476f('0xa')),_0x186f68['on'](_0x476f('0x6'),()=>this[_0x476f('0x2')](_0x476f('0x6'),_0x476f('0xf'))),_0x27a8e7['on'](_0x476f('0x6'),()=>this['fire'](_0x476f('0x6'),_0x476f('0x1'))),this['setTemplate']({'tag':_0x476f('0xd'),'attributes':{'class':['ck',_0x476f('0x17'),'ck-revision-history-ui__changes-navigation']},'children':[{'tag':_0x476f('0x12'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':_0x476f('0x12'),'attributes':{'class':[_0x476f('0xe'),_0x153ada['if'](_0x476f('0x13'),'ck-hidden',_0x2bdd3a=>!_0x2bdd3a)]},'children':[{'text':_0x153ada['to']('isNavigationMode',_0x3abf8f=>_0x3abf8f?_0x56b388(_0x49c893,'EDIT_X_OF_Y_REVISIONS')+':\x20':_0x56b388(_0x49c893,_0x476f('0x9'))+':\x20')}]},{'text':_0x153ada['to']('_statusText')}]},new _0x2a138e(),{'tag':_0x476f('0xd'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x186f68,_0x27a8e7]}]});}}
23
+ const _0x7fb3=['Show\x20previous\x20change','fire','numberOfChanges','set','isNavigationMode','Show\x20next\x20change','isEnabled','NUMBER_OF_CHANGES','setTemplate','span','ck-hidden','forward','bindTemplate','execute','bind','ck-revision-history-ui__changes-navigation__label','isForwardNavigationEnabled','ck-revision-history-ui__changes-navigation__navigation','isReady','_isStatusLabelVisible','_statusText','currentChangeNumber','Total','backward','div','isBackwardNavigationEnabled','Loading...'];(function(_0x278634,_0x7fb3c6){const _0x5154b8=function(_0x1d746d){while(--_0x1d746d){_0x278634['push'](_0x278634['shift']());}};_0x5154b8(++_0x7fb3c6);}(_0x7fb3,0x10a));const _0x5154=function(_0x278634,_0x7fb3c6){_0x278634=_0x278634-0x0;let _0x5154b8=_0x7fb3[_0x278634];return _0x5154b8;};import{View as _0x4602c2,ButtonView as _0x2a8872,ToolbarSeparatorView as _0x3e0fe9}from'ckeditor5/src/ui';import{getTranslation as _0x2f1ff5}from'../../utils/common-translations';import _0x1865a4 from'../../../theme/icons/arrow-up.svg';import _0x14f936 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x4602c2{constructor(_0x2faaf8){super(_0x2faaf8);const _0x5348aa=this[_0x5154('0x10')],_0x4b6e7a=new _0x2a8872(_0x2faaf8),_0x3516ed=new _0x2a8872(_0x2faaf8);this[_0x5154('0x7')](_0x5154('0x8'),!0x1),this['set'](_0x5154('0x16'),!0x1),this[_0x5154('0x7')](_0x5154('0x19'),0x0),this[_0x5154('0x7')](_0x5154('0x6'),0x0),this['set'](_0x5154('0x14'),!0x1),this[_0x5154('0x7')](_0x5154('0x2'),!0x1),this['bind'](_0x5154('0x17'))['to'](this,_0x5154('0x16'),this,_0x5154('0x6'),(_0x33f8a8,_0x2317f4)=>_0x33f8a8&&_0x2317f4>0x0),this[_0x5154('0x12')](_0x5154('0x18'))['to'](this,'isReady',this,_0x5154('0x19'),this,_0x5154('0x6'),this,'isNavigationMode',(_0x137a5c,_0x4da20d,_0x580dfb,_0x43c0a8)=>{if(!_0x137a5c)return _0x2f1ff5(_0x2faaf8,_0x5154('0x3'));if(!_0x580dfb)return _0x2f1ff5(_0x2faaf8,'No\x20changes');const _0x101301=_0x2f1ff5(_0x2faaf8,_0x5154('0xb'),_0x580dfb);return _0x43c0a8?_0x2f1ff5(_0x2faaf8,'X_OF_Y_CHANGES',[_0x4da20d+0x1,_0x580dfb]):_0x101301;}),_0x4b6e7a['set']({'label':_0x2f1ff5(_0x2faaf8,_0x5154('0x4')),'tooltip':!0x0,'icon':_0x1865a4}),_0x3516ed['set']({'label':_0x2f1ff5(_0x2faaf8,_0x5154('0x9')),'tooltip':!0x0,'icon':_0x14f936}),_0x4b6e7a[_0x5154('0x12')](_0x5154('0xa'))['to'](this,_0x5154('0x2')),_0x3516ed[_0x5154('0x12')]('isEnabled')['to'](this,_0x5154('0x14')),_0x4b6e7a['on'](_0x5154('0x11'),()=>this[_0x5154('0x5')](_0x5154('0x11'),_0x5154('0x0'))),_0x3516ed['on'](_0x5154('0x11'),()=>this[_0x5154('0x5')](_0x5154('0x11'),_0x5154('0xf'))),this[_0x5154('0xc')]({'tag':_0x5154('0x1'),'attributes':{'class':['ck','ck-revision-history-ui','ck-revision-history-ui__changes-navigation']},'children':[{'tag':_0x5154('0xd'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':[_0x5154('0x13'),_0x5348aa['if'](_0x5154('0x17'),_0x5154('0xe'),_0x5bf287=>!_0x5bf287)]},'children':[{'text':_0x5348aa['to'](_0x5154('0x8'),_0x568fd7=>_0x568fd7?_0x2f1ff5(_0x2faaf8,'EDIT_X_OF_Y_REVISIONS')+':\x20':_0x2f1ff5(_0x2faaf8,_0x5154('0x1a'))+':\x20')}]},{'text':_0x5348aa['to'](_0x5154('0x18'))}]},new _0x3e0fe9(),{'tag':_0x5154('0x1'),'attributes':{'class':[_0x5154('0x15')]},'children':[_0x4b6e7a,_0x3516ed]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3774=['editing','document','hide','RevisionViewerLoadingOverlay','roots','pluginName','ck-editor__editable__loading-overlay','editor','removeClass','view'];(function(_0x4b6fef,_0x377474){const _0x478421=function(_0x589dfb){while(--_0x589dfb){_0x4b6fef['push'](_0x4b6fef['shift']());}};_0x478421(++_0x377474);}(_0x3774,0x1a1));const _0x4784=function(_0x4b6fef,_0x377474){_0x4b6fef=_0x4b6fef-0x0;let _0x478421=_0x3774[_0x4b6fef];return _0x478421;};import{Plugin as _0x1dfa8a}from'ckeditor5/src/core';const oe=_0x4784('0x9');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x1dfa8a{static get[_0x4784('0x8')](){return _0x4784('0x6');}['show'](){const _0xcdf940=this['editor'][_0x4784('0x3')]['view'];_0xcdf940['change'](_0x774bc9=>{for(const _0x2346c8 of _0xcdf940[_0x4784('0x4')][_0x4784('0x7')])_0x774bc9['addClass'](oe,_0x2346c8);});}[_0x4784('0x5')](){const _0x297717=this[_0x4784('0x0')][_0x4784('0x3')][_0x4784('0x2')];_0x297717['change'](_0x1f486f=>{for(const _0x4cb1eb of _0x297717[_0x4784('0x4')][_0x4784('0x7')])_0x1f486f[_0x4784('0x1')](oe,_0x4cb1eb);});}}
23
+ const _0x2bdb=['ck-editor__editable__loading-overlay','pluginName','roots','change','editing','addClass','editor','RevisionViewerLoadingOverlay','removeClass','document','hide','view','show'];(function(_0x1064fd,_0x2bdbbb){const _0x194786=function(_0x2d7a32){while(--_0x2d7a32){_0x1064fd['push'](_0x1064fd['shift']());}};_0x194786(++_0x2bdbbb);}(_0x2bdb,0xa8));const _0x1947=function(_0x1064fd,_0x2bdbbb){_0x1064fd=_0x1064fd-0x0;let _0x194786=_0x2bdb[_0x1064fd];return _0x194786;};import{Plugin as _0x1a1232}from'ckeditor5/src/core';const oe=_0x1947('0x1');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x1a1232{static get[_0x1947('0x2')](){return _0x1947('0x8');}[_0x1947('0x0')](){const _0x2ba261=this[_0x1947('0x7')]['editing'][_0x1947('0xc')];_0x2ba261[_0x1947('0x4')](_0x17ff98=>{for(const _0x29234e of _0x2ba261[_0x1947('0xa')][_0x1947('0x3')])_0x17ff98[_0x1947('0x6')](oe,_0x29234e);});}[_0x1947('0xb')](){const _0x3266a4=this[_0x1947('0x7')][_0x1947('0x5')][_0x1947('0xc')];_0x3266a4['change'](_0x773db7=>{for(const _0x4a786d of _0x3266a4[_0x1947('0xa')][_0x1947('0x3')])_0x773db7[_0x1947('0x9')](oe,_0x4a786d);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x174d=['change:isReady','RevisionViewerUI','pluginName','closeRevisionViewerCallback','isBackwardNavigationEnabled','config','restoreRevision','forward','showPreviousChange','isReady','set','listenTo','exitToEditing','init','componentFactory','add','show','hide','get','showNextChange','isEnabled','requires','execute','commands','isForwardNavigationEnabled','bind','currentChangeNumber','isNavigationMode','plugins'];(function(_0x3516f2,_0x174d08){const _0x2eb3e5=function(_0x5111ed){while(--_0x5111ed){_0x3516f2['push'](_0x3516f2['shift']());}};_0x2eb3e5(++_0x174d08);}(_0x174d,0x143));const _0x2eb3=function(_0x3516f2,_0x174d08){_0x3516f2=_0x3516f2-0x0;let _0x2eb3e5=_0x174d[_0x3516f2];return _0x2eb3e5;};import{Plugin as _0x3c43bd}from'ckeditor5/src/core';import{ButtonView as _0x390ffb}from'ckeditor5/src/ui';import _0x1414a3 from'./changesnavigationview';import _0x478bba from'./../../revisionviewer';import _0x4218e1 from'./revisionviewerloadingoverlay';import{getTranslation as _0x185ecb}from'../../utils/common-translations';import _0x90baaf from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x3c43bd{static get[_0x2eb3('0x1b')](){return _0x2eb3('0x1a');}static get[_0x2eb3('0x11')](){return[_0x478bba,_0x4218e1];}[_0x2eb3('0x9')](){const _0x1f92b8=this['editor'],_0x1fa169=_0x1f92b8[_0x2eb3('0x18')]['get'](_0x478bba),_0x45c4ba=_0x1f92b8[_0x2eb3('0x18')][_0x2eb3('0xe')](_0x4218e1);_0x1f92b8['ui']['componentFactory']['add'](_0x2eb3('0x8'),_0x34a227=>{const _0x1c26ef=new _0x390ffb(_0x34a227);return _0x1c26ef[_0x2eb3('0x6')]({'label':_0x185ecb(_0x34a227,'Back\x20to\x20editing'),'icon':_0x90baaf,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this[_0x2eb3('0x7')](_0x1c26ef,_0x2eb3('0x12'),()=>{_0x1f92b8[_0x2eb3('0x1')][_0x2eb3('0xe')]('revisionHistory')[_0x2eb3('0x1c')]();}),_0x1c26ef;}),_0x1f92b8['ui']['componentFactory']['add'](_0x2eb3('0x2'),_0x3d757c=>{const _0x2e5bd5=new _0x390ffb(_0x3d757c);return _0x2e5bd5[_0x2eb3('0x6')]({'label':_0x185ecb(_0x3d757c,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2e5bd5[_0x2eb3('0x15')](_0x2eb3('0x10'))['to'](_0x1f92b8['commands'][_0x2eb3('0xe')](_0x2eb3('0x2'))),this[_0x2eb3('0x7')](_0x2e5bd5,'execute',()=>_0x1f92b8[_0x2eb3('0x12')](_0x2eb3('0x2'))),_0x2e5bd5;}),_0x1f92b8['ui'][_0x2eb3('0xa')][_0x2eb3('0xb')]('changesNavigation',_0x2ccba1=>{const _0x4dd2a0=new _0x1414a3(_0x2ccba1),_0x2c7573=_0x1f92b8[_0x2eb3('0x13')][_0x2eb3('0xe')](_0x2eb3('0x4')),_0x8da7d1=_0x1f92b8[_0x2eb3('0x13')][_0x2eb3('0xe')](_0x2eb3('0xf'));return _0x4dd2a0[_0x2eb3('0x15')](_0x2eb3('0x0'))['to'](_0x2c7573,'isEnabled'),_0x4dd2a0[_0x2eb3('0x15')](_0x2eb3('0x14'))['to'](_0x8da7d1,'isEnabled'),_0x4dd2a0[_0x2eb3('0x15')](_0x2eb3('0x5'),_0x2eb3('0x16'),'numberOfChanges',_0x2eb3('0x17'))['to'](_0x1fa169),this[_0x2eb3('0x7')](_0x4dd2a0,_0x2eb3('0x12'),(_0x14e966,_0x56f39b)=>{_0x1f92b8[_0x2eb3('0x12')](_0x2eb3('0x3')===_0x56f39b?_0x2eb3('0xf'):_0x2eb3('0x4'));}),_0x4dd2a0;}),_0x45c4ba[_0x2eb3('0xc')](),_0x1fa169['on'](_0x2eb3('0x19'),(_0x35c3f9,_0x12afaa,_0x3ce81b)=>{_0x3ce81b?_0x45c4ba[_0x2eb3('0xd')]():_0x45c4ba[_0x2eb3('0xc')]();});}}
23
+ const _0x4cba=['RevisionViewerUI','add','show','forward','restoreRevision','currentChangeNumber','hide','set','init','isReady','bind','isBackwardNavigationEnabled','Back\x20to\x20editing','plugins','listenTo','showPreviousChange','config','revisionHistory','showNextChange','change:isReady','get','isNavigationMode','isEnabled','ck-revision-history-ui__back-to-editing','commands','numberOfChanges','closeRevisionViewerCallback','execute','editor','Restore\x20this\x20revision'];(function(_0x4814a9,_0x4cbae6){const _0xe148f2=function(_0x359cdc){while(--_0x359cdc){_0x4814a9['push'](_0x4814a9['shift']());}};_0xe148f2(++_0x4cbae6);}(_0x4cba,0x193));const _0xe148=function(_0x4814a9,_0x4cbae6){_0x4814a9=_0x4814a9-0x0;let _0xe148f2=_0x4cba[_0x4814a9];return _0xe148f2;};import{Plugin as _0x51b0be}from'ckeditor5/src/core';import{ButtonView as _0x318446}from'ckeditor5/src/ui';import _0x3f8284 from'./changesnavigationview';import _0x334011 from'./../../revisionviewer';import _0x21d716 from'./revisionviewerloadingoverlay';import{getTranslation as _0x391ded}from'../../utils/common-translations';import _0x5c5fc7 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x51b0be{static get['pluginName'](){return _0xe148('0x11');}static get['requires'](){return[_0x334011,_0x21d716];}[_0xe148('0x19')](){const _0x2f76f1=this[_0xe148('0xf')],_0x238b46=_0x2f76f1[_0xe148('0x0')][_0xe148('0x7')](_0x334011),_0x409ac0=_0x2f76f1[_0xe148('0x0')][_0xe148('0x7')](_0x21d716);_0x2f76f1['ui']['componentFactory'][_0xe148('0x12')]('exitToEditing',_0x365aab=>{const _0x287595=new _0x318446(_0x365aab);return _0x287595[_0xe148('0x18')]({'label':_0x391ded(_0x365aab,_0xe148('0x1d')),'icon':_0x5c5fc7,'withText':!0x0,'tooltip':!0x0,'class':_0xe148('0xa')}),this[_0xe148('0x1')](_0x287595,_0xe148('0xe'),()=>{_0x2f76f1[_0xe148('0x3')][_0xe148('0x7')](_0xe148('0x4'))[_0xe148('0xd')]();}),_0x287595;}),_0x2f76f1['ui']['componentFactory'][_0xe148('0x12')]('restoreRevision',_0x599c9b=>{const _0xc54407=new _0x318446(_0x599c9b);return _0xc54407['set']({'label':_0x391ded(_0x599c9b,_0xe148('0x10')),'withText':!0x0,'tooltip':!0x0}),_0xc54407[_0xe148('0x1b')](_0xe148('0x9'))['to'](_0x2f76f1[_0xe148('0xb')][_0xe148('0x7')](_0xe148('0x15'))),this[_0xe148('0x1')](_0xc54407,_0xe148('0xe'),()=>_0x2f76f1[_0xe148('0xe')](_0xe148('0x15'))),_0xc54407;}),_0x2f76f1['ui']['componentFactory'][_0xe148('0x12')]('changesNavigation',_0x21bd43=>{const _0x2a5ceb=new _0x3f8284(_0x21bd43),_0xeecb05=_0x2f76f1[_0xe148('0xb')][_0xe148('0x7')](_0xe148('0x2')),_0xb6a59e=_0x2f76f1[_0xe148('0xb')][_0xe148('0x7')](_0xe148('0x5'));return _0x2a5ceb[_0xe148('0x1b')](_0xe148('0x1c'))['to'](_0xeecb05,_0xe148('0x9')),_0x2a5ceb[_0xe148('0x1b')]('isForwardNavigationEnabled')['to'](_0xb6a59e,_0xe148('0x9')),_0x2a5ceb[_0xe148('0x1b')](_0xe148('0x1a'),_0xe148('0x16'),_0xe148('0xc'),_0xe148('0x8'))['to'](_0x238b46),this[_0xe148('0x1')](_0x2a5ceb,'execute',(_0x378504,_0x3effe3)=>{_0x2f76f1[_0xe148('0xe')](_0xe148('0x14')===_0x3effe3?_0xe148('0x5'):_0xe148('0x2'));}),_0x2a5ceb;}),_0x409ac0[_0xe148('0x13')](),_0x238b46['on'](_0xe148('0x6'),(_0x3c02fb,_0x3c6d16,_0x48f9b1)=>{_0x48f9b1?_0x409ac0[_0xe148('0x17')]():_0x409ac0['show']();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x45b9fa,_0x525b2f,_0x1ff141){const t=_0x45b9fa['t'];switch(_0x525b2f){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'},_0x1ff141);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1ff141);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 _0x525b2f;}}
23
+ export function getTranslation(_0x37966c,_0x32f4df,_0x53b437){const t=_0x37966c['t'];switch(_0x32f4df){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'},_0x53b437);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x53b437);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 _0x32f4df;}}