@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231229.0 → 0.0.0-nightly-20231230.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 +5 -5
  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 _0x5369=['submit','items','saveButtonView','view','plugins','isReady','get','showRevisionViewerCallback','revisionHistory','execute','length','config','reset','remove','addMany','children','revisionName','isEnabled','isReadOnly','panelView','isOpen','cancel','add','Open\x20revision\x20history','pluginName','bind','focus','Save\x20current\x20revision','Revision\x20history','editor','requires','set','init'];(function(_0x2f45b8,_0x5369a4){const _0x1f18fa=function(_0x1a2a0e){while(--_0x1a2a0e){_0x2f45b8['push'](_0x2f45b8['shift']());}};_0x1f18fa(++_0x5369a4);}(_0x5369,0x12a));const _0x1f18=function(_0x2f45b8,_0x5369a4){_0x2f45b8=_0x2f45b8-0x0;let _0x1f18fa=_0x5369[_0x2f45b8];return _0x1f18fa;};import{Plugin as _0x17babe,icons as _0x393b14}from'ckeditor5/src/core.js';import{ListView as _0x10b965,ListItemView as _0x38d958,ButtonView as _0x4b17bb,createDropdown as _0x5a6669}from'ckeditor5/src/ui.js';import _0x16e71a from'../../revisiontracker.js';import _0x4ccf55 from'./revisionhistorysaverevisionformview.js';import{getTranslation as _0x285f2d}from'../../utils/common-translations.js';export default class u extends _0x17babe{static get[_0x1f18('0x17')](){return'RevisionHistoryUI';}static get[_0x1f18('0x1d')](){return[_0x16e71a];}[_0x1f18('0x1f')](){const _0x4f008b=this[_0x1f18('0x1c')],_0x15bfbe=_0x4f008b['plugins'][_0x1f18('0x5')]('RevisionTracker');_0x4f008b['ui']['componentFactory'][_0x1f18('0x15')](_0x1f18('0x7'),_0x23f5df=>{const _0x181ab1=_0x5a6669(_0x23f5df),_0x195b15=_0x181ab1[_0x1f18('0x12')]['children'],_0x50b599=new _0x10b965(_0x23f5df),_0x2a3eec=new _0x38d958(_0x23f5df),_0x4357f6=new _0x4b17bb(_0x23f5df),_0x412150=new _0x38d958(_0x23f5df),_0x200145=new _0x4b17bb(_0x23f5df),_0x397797=new _0x4ccf55(_0x23f5df);function _0x433792(){_0x195b15[_0x1f18('0x9')]&&_0x195b15[_0x1f18('0xc')](0x0),_0x195b15[_0x1f18('0x15')](_0x50b599);}function _0x567ca7(){_0x181ab1[_0x1f18('0x13')]=!0x1,_0x4f008b['editing'][_0x1f18('0x2')][_0x1f18('0x19')]();}return _0x181ab1['bind'](_0x1f18('0x10'))['to'](_0x15bfbe,'isReady',_0x15bfbe,_0x1f18('0x10'),_0x4f008b,'isReadOnly',(_0xd1f5b3,_0x34a5c0,_0x26040f)=>_0xd1f5b3&&_0x34a5c0&&!_0x26040f),_0x181ab1['buttonView'][_0x1f18('0x1e')]({'icon':_0x393b14['history'],'label':_0x285f2d(_0x23f5df,_0x1f18('0x1b')),'tooltip':!0x0}),_0x4357f6[_0x1f18('0x1e')]({'label':_0x285f2d(_0x23f5df,_0x1f18('0x1a')),'withText':!0x0}),_0x4357f6[_0x1f18('0x18')]('isEnabled')['to'](_0x15bfbe,'isReady',_0x15bfbe,_0x1f18('0x10'),_0x4f008b,_0x1f18('0x11'),(_0x14fdc8,_0x39213e,_0xa7a4a)=>_0x14fdc8&&_0x39213e&&!_0xa7a4a),_0x4357f6['on'](_0x1f18('0x8'),()=>function(){_0x195b15[_0x1f18('0x9')]&&_0x195b15[_0x1f18('0xc')](0x0),(_0x397797[_0x1f18('0xb')](),_0x195b15[_0x1f18('0x15')](_0x397797),_0x397797[_0x1f18('0x19')]());}()),_0x200145['set']({'label':_0x285f2d(_0x23f5df,_0x1f18('0x16')),'withText':!0x0}),_0x200145[_0x1f18('0x18')](_0x1f18('0x10'))['to'](_0x15bfbe,_0x1f18('0x4'),_0x4f008b,_0x1f18('0x11'),(_0x1ee897,_0x238220)=>_0x1ee897&&!_0x238220),_0x200145['on'](_0x1f18('0x8'),()=>{_0x4f008b[_0x1f18('0xa')][_0x1f18('0x5')](_0x1f18('0x7'))[_0x1f18('0x6')](),_0x567ca7();}),_0x2a3eec[_0x1f18('0xe')][_0x1f18('0x15')](_0x4357f6),_0x412150[_0x1f18('0xe')]['add'](_0x200145),_0x50b599[_0x1f18('0x0')][_0x1f18('0xd')]([_0x2a3eec,_0x412150]),_0x181ab1['on']('change:isOpen',()=>_0x433792()),_0x397797[_0x1f18('0x1')][_0x1f18('0x18')](_0x1f18('0x10'))['to'](_0x15bfbe,_0x1f18('0x4'),_0x15bfbe,_0x1f18('0x10'),_0x4f008b,_0x1f18('0x11'),(_0x1a89d3,_0x5823c1,_0x48f7a4)=>_0x1a89d3&&_0x5823c1&&!_0x48f7a4),_0x397797['on'](_0x1f18('0x20'),()=>(_0x4f008b[_0x1f18('0x3')][_0x1f18('0x5')](_0x16e71a)['saveRevision']({'name':_0x397797[_0x1f18('0xf')]}),void _0x567ca7())),_0x397797['on'](_0x1f18('0x14'),()=>_0x433792()),_0x397797['render'](),_0x433792(),_0x181ab1;});}}
23
+ const _0x44d2=['isEnabled','pluginName','Save\x20current\x20revision','isReadOnly','revisionHistory','plugins','isReady','editor','execute','saveButtonView','get','panelView','config','init','items','submit','set','isOpen','view','saveRevision','Revision\x20history','Open\x20revision\x20history','showRevisionViewerCallback','children','focus','add','addMany','remove','bind','history','requires','length','RevisionTracker','componentFactory','render'];(function(_0x1152f5,_0x44d228){const _0x305410=function(_0x3ff017){while(--_0x3ff017){_0x1152f5['push'](_0x1152f5['shift']());}};_0x305410(++_0x44d228);}(_0x44d2,0xac));const _0x3054=function(_0x1152f5,_0x44d228){_0x1152f5=_0x1152f5-0x0;let _0x305410=_0x44d2[_0x1152f5];return _0x305410;};import{Plugin as _0xced498,icons as _0x20f140}from'ckeditor5/src/core.js';import{ListView as _0x2e7e2d,ListItemView as _0x2e1f0a,ButtonView as _0x4c812f,createDropdown as _0x3da664}from'ckeditor5/src/ui.js';import _0x112364 from'../../revisiontracker.js';import _0x3b81b2 from'./revisionhistorysaverevisionformview.js';import{getTranslation as _0x565f1e}from'../../utils/common-translations.js';export default class u extends _0xced498{static get[_0x3054('0x4')](){return'RevisionHistoryUI';}static get[_0x3054('0x21')](){return[_0x112364];}[_0x3054('0x10')](){const _0x2e63fa=this[_0x3054('0xa')],_0x550618=_0x2e63fa[_0x3054('0x8')][_0x3054('0xd')](_0x3054('0x0'));_0x2e63fa['ui'][_0x3054('0x1')][_0x3054('0x1c')](_0x3054('0x7'),_0x3b8fee=>{const _0x4dda9d=_0x3da664(_0x3b8fee),_0x266554=_0x4dda9d[_0x3054('0xe')][_0x3054('0x1a')],_0x42314d=new _0x2e7e2d(_0x3b8fee),_0x344183=new _0x2e1f0a(_0x3b8fee),_0x340896=new _0x4c812f(_0x3b8fee),_0x1ab6e9=new _0x2e1f0a(_0x3b8fee),_0x1111a0=new _0x4c812f(_0x3b8fee),_0x32e765=new _0x3b81b2(_0x3b8fee);function _0x1739a8(){_0x266554[_0x3054('0x22')]&&_0x266554[_0x3054('0x1e')](0x0),_0x266554[_0x3054('0x1c')](_0x42314d);}function _0x147862(){_0x4dda9d[_0x3054('0x14')]=!0x1,_0x2e63fa['editing'][_0x3054('0x15')]['focus']();}return _0x4dda9d[_0x3054('0x1f')]('isEnabled')['to'](_0x550618,_0x3054('0x9'),_0x550618,_0x3054('0x3'),_0x2e63fa,_0x3054('0x6'),(_0x588df2,_0x136c8d,_0xba2fba)=>_0x588df2&&_0x136c8d&&!_0xba2fba),_0x4dda9d['buttonView'][_0x3054('0x13')]({'icon':_0x20f140[_0x3054('0x20')],'label':_0x565f1e(_0x3b8fee,_0x3054('0x17')),'tooltip':!0x0}),_0x340896[_0x3054('0x13')]({'label':_0x565f1e(_0x3b8fee,_0x3054('0x5')),'withText':!0x0}),_0x340896[_0x3054('0x1f')](_0x3054('0x3'))['to'](_0x550618,_0x3054('0x9'),_0x550618,_0x3054('0x3'),_0x2e63fa,_0x3054('0x6'),(_0x307be1,_0x1800c2,_0xbe50d9)=>_0x307be1&&_0x1800c2&&!_0xbe50d9),_0x340896['on'](_0x3054('0xb'),()=>function(){_0x266554[_0x3054('0x22')]&&_0x266554[_0x3054('0x1e')](0x0),(_0x32e765['reset'](),_0x266554[_0x3054('0x1c')](_0x32e765),_0x32e765[_0x3054('0x1b')]());}()),_0x1111a0[_0x3054('0x13')]({'label':_0x565f1e(_0x3b8fee,_0x3054('0x18')),'withText':!0x0}),_0x1111a0[_0x3054('0x1f')]('isEnabled')['to'](_0x550618,_0x3054('0x9'),_0x2e63fa,'isReadOnly',(_0x58d1b2,_0x29c6da)=>_0x58d1b2&&!_0x29c6da),_0x1111a0['on'](_0x3054('0xb'),()=>{_0x2e63fa[_0x3054('0xf')]['get'](_0x3054('0x7'))[_0x3054('0x19')](),_0x147862();}),_0x344183[_0x3054('0x1a')][_0x3054('0x1c')](_0x340896),_0x1ab6e9[_0x3054('0x1a')][_0x3054('0x1c')](_0x1111a0),_0x42314d[_0x3054('0x11')][_0x3054('0x1d')]([_0x344183,_0x1ab6e9]),_0x4dda9d['on']('change:isOpen',()=>_0x1739a8()),_0x32e765[_0x3054('0xc')][_0x3054('0x1f')]('isEnabled')['to'](_0x550618,_0x3054('0x9'),_0x550618,_0x3054('0x3'),_0x2e63fa,_0x3054('0x6'),(_0x407cb4,_0x5da72a,_0x401f5f)=>_0x407cb4&&_0x5da72a&&!_0x401f5f),_0x32e765['on'](_0x3054('0x12'),()=>(_0x2e63fa[_0x3054('0x8')][_0x3054('0xd')](_0x112364)[_0x3054('0x16')]({'name':_0x32e765['revisionName']}),void _0x147862())),_0x32e765['on']('cancel',()=>_0x1739a8()),_0x32e765[_0x3054('0x2')](),_0x1739a8(),_0x4dda9d;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1939=['_sidebarView','isReady','string','isEnabled','compare','action','pluginName','isVisible','get','restoreRevision','fieldView','defaultRevisionActions','editor','highlightRevisions','_handleDiffChange','appendChild','_handleRevisionSetName','getIndex','nameRevision','length','remove','restoreRevisionCallback','data','revisionHistory','Name\x20this\x20revision','ready','RevisionsSidebar','revisionViews','isSelected','Compare\x20against\x20selected','_createRevisionActions','_handleEditorDataReady','bind','plugins','_handleRevisionSelected','element','selectRevision','listenTo','change:diff','Restore\x20this\x20revision','revisionSelected','setName','diff','add','getRevision','config','_revisionsRepository','getRevisionsInDiff','repository','destroy','map','availableRevisionActions','getLaterVisibleRevision','render','timePeriodViews','assign','_revisionViewer','init','getEarlierVisibleRevision','revisionHistory.revisionActions'];(function(_0x25414b,_0x193906){const _0x2c69ae=function(_0x1540d1){while(--_0x1540d1){_0x25414b['push'](_0x25414b['shift']());}};_0x2c69ae(++_0x193906);}(_0x1939,0x100));const _0x2c69=function(_0x25414b,_0x193906){_0x25414b=_0x25414b-0x0;let _0x2c69ae=_0x1939[_0x25414b];return _0x2c69ae;};import{Plugin as _0xd129f4}from'ckeditor5/src/core.js';import _0x184647 from'./revisionssidebarview.js';import _0x377d06 from'../../revisionviewer.js';export default class w extends _0xd129f4{static get[_0x2c69('0x32')](){return _0x2c69('0xa');}static get['requires'](){return[_0x377d06];}constructor(_0x4ee8a8){super(_0x4ee8a8),this[_0x2c69('0x28')]=_0x4ee8a8[_0x2c69('0x11')][_0x2c69('0x34')](_0x377d06),this[_0x2c69('0x1e')]=this[_0x2c69('0x28')][_0x2c69('0x20')],this['_sidebarView']=null;}[_0x2c69('0x29')](){const _0x25ff78=this[_0x2c69('0x1e')]['_revisions'],_0x24db0d=this['_createRevisionActions'](),_0x2119b6=this[_0x2c69('0x38')]['config'][_0x2c69('0x34')]('revisionHistory.viewerSidebarContainer');this[_0x2c69('0x2c')]=new _0x184647(this[_0x2c69('0x38')]['locale'],_0x25ff78,_0x24db0d),this[_0x2c69('0x2c')]['on'](_0x2c69('0x18'),this[_0x2c69('0x12')][_0x2c69('0x10')](this)),this[_0x2c69('0x2c')]['on']('revisionSetName',this[_0x2c69('0x0')][_0x2c69('0x10')](this)),this[_0x2c69('0x2c')][_0x2c69('0x10')](_0x2c69('0x2f'))['to'](this['_revisionViewer']),this[_0x2c69('0x2c')][_0x2c69('0x26')]['on'](_0x2c69('0x1b'),(_0x1cb079,_0xcac08e)=>{_0xcac08e[_0x2c69('0xb')]['on'](_0x2c69('0x1b'),(_0x1d2613,_0x265f55)=>{_0x265f55[_0x2c69('0x10')]('isEnabled',_0x2c69('0x2d'))['to'](this[_0x2c69('0x28')]);});}),this['_sidebarView'][_0x2c69('0x25')](),this[_0x2c69('0x15')](this['editor'][_0x2c69('0x6')],_0x2c69('0x9'),this['_handleEditorDataReady'][_0x2c69('0x10')](this)),this[_0x2c69('0x15')](this[_0x2c69('0x28')],_0x2c69('0x16'),this[_0x2c69('0x3a')][_0x2c69('0x10')](this)),_0x2119b6[_0x2c69('0x3b')](this[_0x2c69('0x2c')][_0x2c69('0x13')]);}[_0x2c69('0x21')](){this['_sidebarView']['element'][_0x2c69('0x4')](),this[_0x2c69('0x2c')][_0x2c69('0x21')]();}[_0x2c69('0xf')](){const _0x368934=this[_0x2c69('0x1e')][_0x2c69('0x1c')](0x0);if(_0x368934){const _0x302499=this[_0x2c69('0x1e')][_0x2c69('0x2a')](_0x368934['id']);this['_revisionViewer']['compare'](_0x368934,_0x302499);}}[_0x2c69('0x12')](_0x287692,_0x288804){const _0x1dc228=this['_revisionsRepository'][_0x2c69('0x1c')](_0x288804['id']),_0x1716bb=this[_0x2c69('0x1e')][_0x2c69('0x2a')](_0x1dc228['id']);this[_0x2c69('0x28')]['compare'](_0x1dc228,_0x1716bb);}[_0x2c69('0x0')](_0x134015,_0x312ef9){this[_0x2c69('0x1e')][_0x2c69('0x1c')](_0x312ef9['id'])[_0x2c69('0x19')](_0x312ef9['name']);}[_0x2c69('0x3a')](_0x163303,_0x4d74cb,_0x55abf5){const _0x329e61=this['_revisionsRepository'][_0x2c69('0x1f')](_0x55abf5);_0x329e61[_0x2c69('0x3')]>0x2?(this[_0x2c69('0x2c')][_0x2c69('0x39')](_0x329e61),this[_0x2c69('0x2c')][_0x2c69('0x14')](null)):(this[_0x2c69('0x2c')][_0x2c69('0x39')]([]),this[_0x2c69('0x2c')][_0x2c69('0x14')](_0x329e61[0x0]));}[_0x2c69('0xe')](){const _0x35eefc=this[_0x2c69('0x38')],_0x5edb1c=w[_0x2c69('0x23')],_0x19d5d5=_0x35eefc[_0x2c69('0x1d')][_0x2c69('0x34')](_0x2c69('0x2b'))||w[_0x2c69('0x37')];if(_0x19d5d5[_0x2c69('0x3')])return _0x19d5d5[_0x2c69('0x22')](_0x265777=>{const _0x33a8a4=_0x2c69('0x2e')==typeof _0x265777?Object[_0x2c69('0x27')]({},_0x5edb1c[_0x265777]):_0x265777;return _0x33a8a4[_0x2c69('0x31')]=_0x33a8a4[_0x2c69('0x31')][_0x2c69('0x10')](this,_0x35eefc),_0x33a8a4[_0x2c69('0x33')]&&(_0x33a8a4['isVisible']=_0x33a8a4[_0x2c69('0x33')][_0x2c69('0x10')](this,_0x35eefc)),_0x33a8a4;});}}w[_0x2c69('0x23')]={'compareAgainstSelected':{'name':_0x2c69('0xd'),'action':({plugins:_0x445a68},_0x351964)=>{const _0x479348=_0x445a68[_0x2c69('0x34')](_0x377d06),_0x1b2483=_0x479348[_0x2c69('0x20')];let _0x2b5ba8=_0x479348[_0x2c69('0x1a')]['newRevisionId'],_0x30e5b3=_0x351964['id'];_0x1b2483[_0x2c69('0x1')](_0x2b5ba8)>_0x1b2483['getIndex'](_0x30e5b3)&&([_0x2b5ba8,_0x30e5b3]=[_0x30e5b3,_0x2b5ba8]),_0x479348[_0x2c69('0x30')](_0x2b5ba8,_0x30e5b3);},'isVisible':({plugins:_0x4f7775},_0x4eb48a)=>{const _0x4932cf=_0x4f7775['get'](_0x377d06);return!(_0x4932cf[_0x2c69('0x20')][_0x2c69('0x1f')](_0x4932cf[_0x2c69('0x1a')])['length']>0x2)&&!_0x4eb48a[_0x2c69('0xc')];}},'restoreRevision':{'name':_0x2c69('0x17'),'action':(_0x3ca5d9,{id:_0x4d42f8})=>{_0x3ca5d9['config']['get'](_0x2c69('0x7'))[_0x2c69('0x5')](_0x4d42f8);},'isVisible':({plugins:_0x429ab2},_0x3d8b1f)=>!!_0x429ab2[_0x2c69('0x34')](_0x377d06)['repository'][_0x2c69('0x24')](_0x3d8b1f['id'])},'nameRevision':{'name':_0x2c69('0x8'),'action':({plugins:_0x1b9226},{id:_0x2c802c,revisionNameView:_0x39a709})=>{const _0xf5637e=_0x1b9226[_0x2c69('0x34')](_0x377d06),_0x5c6093=_0xf5637e[_0x2c69('0x20')][_0x2c69('0x2a')](_0x2c802c);_0xf5637e[_0x2c69('0x30')](_0x2c802c,_0x5c6093),_0x39a709['focus'](),_0x39a709[_0x2c69('0x36')]['select']();}}},w['defaultRevisionActions']=['compareAgainstSelected',_0x2c69('0x35'),_0x2c69('0x2')];
23
+ const _0x575c=['name','compare','init','getRevisionsInDiff','length','getRevision','action','appendChild','getIndex','Compare\x20against\x20selected','focus','restoreRevisionCallback','requires','nameRevision','defaultRevisionActions','_revisions','plugins','destroy','render','editor','isSelected','Restore\x20this\x20revision','add','Name\x20this\x20revision','isReady','_createRevisionActions','pluginName','_revisionViewer','element','_revisionsRepository','listenTo','string','getEarlierVisibleRevision','newRevisionId','isEnabled','_handleRevisionSetName','getLaterVisibleRevision','_handleRevisionSelected','repository','revisionSelected','bind','assign','timePeriodViews','_sidebarView','revisionSetName','ready','revisionHistory.viewerSidebarContainer','compareAgainstSelected','highlightRevisions','selectRevision','_handleEditorDataReady','diff','isVisible','_handleDiffChange','RevisionsSidebar','get','config','restoreRevision'];(function(_0x50a69c,_0x575cab){const _0x393e07=function(_0x686315){while(--_0x686315){_0x50a69c['push'](_0x50a69c['shift']());}};_0x393e07(++_0x575cab);}(_0x575c,0x1b7));const _0x393e=function(_0x50a69c,_0x575cab){_0x50a69c=_0x50a69c-0x0;let _0x393e07=_0x575c[_0x50a69c];return _0x393e07;};import{Plugin as _0x305a21}from'ckeditor5/src/core.js';import _0x175f57 from'./revisionssidebarview.js';import _0x542b1c from'../../revisionviewer.js';export default class w extends _0x305a21{static get[_0x393e('0x33')](){return _0x393e('0x15');}static get[_0x393e('0x25')](){return[_0x542b1c];}constructor(_0x5385dc){super(_0x5385dc),this[_0x393e('0x34')]=_0x5385dc[_0x393e('0x29')][_0x393e('0x16')](_0x542b1c),this[_0x393e('0x36')]=this['_revisionViewer'][_0x393e('0x5')],this[_0x393e('0xa')]=null;}[_0x393e('0x1b')](){const _0x3dc575=this[_0x393e('0x36')][_0x393e('0x28')],_0x2d7eaf=this[_0x393e('0x32')](),_0x5a2729=this['editor']['config'][_0x393e('0x16')](_0x393e('0xd'));this['_sidebarView']=new _0x175f57(this[_0x393e('0x2c')]['locale'],_0x3dc575,_0x2d7eaf),this[_0x393e('0xa')]['on'](_0x393e('0x6'),this['_handleRevisionSelected']['bind'](this)),this[_0x393e('0xa')]['on'](_0x393e('0xb'),this[_0x393e('0x2')]['bind'](this)),this[_0x393e('0xa')][_0x393e('0x7')](_0x393e('0x1'))['to'](this[_0x393e('0x34')]),this[_0x393e('0xa')][_0x393e('0x9')]['on'](_0x393e('0x2f'),(_0x6f8b21,_0x49d810)=>{_0x49d810['revisionViews']['on'](_0x393e('0x2f'),(_0x3fe3ce,_0x44c60b)=>{_0x44c60b[_0x393e('0x7')](_0x393e('0x1'),_0x393e('0x31'))['to'](this[_0x393e('0x34')]);});}),this[_0x393e('0xa')][_0x393e('0x2b')](),this[_0x393e('0x37')](this['editor']['data'],_0x393e('0xc'),this['_handleEditorDataReady'][_0x393e('0x7')](this)),this[_0x393e('0x37')](this['_revisionViewer'],'change:diff',this[_0x393e('0x14')][_0x393e('0x7')](this)),_0x5a2729[_0x393e('0x20')](this[_0x393e('0xa')][_0x393e('0x35')]);}[_0x393e('0x2a')](){this['_sidebarView'][_0x393e('0x35')]['remove'](),this['_sidebarView'][_0x393e('0x2a')]();}[_0x393e('0x11')](){const _0x2e5c42=this['_revisionsRepository'][_0x393e('0x1e')](0x0);if(_0x2e5c42){const _0x27174e=this['_revisionsRepository'][_0x393e('0x39')](_0x2e5c42['id']);this[_0x393e('0x34')][_0x393e('0x1a')](_0x2e5c42,_0x27174e);}}[_0x393e('0x4')](_0xd09dd6,_0x26ea22){const _0x2e1e98=this[_0x393e('0x36')]['getRevision'](_0x26ea22['id']),_0x37c1cd=this[_0x393e('0x36')][_0x393e('0x39')](_0x2e1e98['id']);this['_revisionViewer'][_0x393e('0x1a')](_0x2e1e98,_0x37c1cd);}[_0x393e('0x2')](_0x564a42,_0x378ba1){this['_revisionsRepository']['getRevision'](_0x378ba1['id'])['setName'](_0x378ba1[_0x393e('0x19')]);}['_handleDiffChange'](_0x324964,_0x5629d4,_0x4eb710){const _0x52ec26=this[_0x393e('0x36')][_0x393e('0x1c')](_0x4eb710);_0x52ec26['length']>0x2?(this[_0x393e('0xa')][_0x393e('0xf')](_0x52ec26),this[_0x393e('0xa')][_0x393e('0x10')](null)):(this[_0x393e('0xa')][_0x393e('0xf')]([]),this[_0x393e('0xa')][_0x393e('0x10')](_0x52ec26[0x0]));}['_createRevisionActions'](){const _0xfedbdd=this[_0x393e('0x2c')],_0x463241=w['availableRevisionActions'],_0x54028c=_0xfedbdd['config'][_0x393e('0x16')]('revisionHistory.revisionActions')||w[_0x393e('0x27')];if(_0x54028c[_0x393e('0x1d')])return _0x54028c['map'](_0x29e034=>{const _0xf65c3e=_0x393e('0x38')==typeof _0x29e034?Object[_0x393e('0x8')]({},_0x463241[_0x29e034]):_0x29e034;return _0xf65c3e['action']=_0xf65c3e[_0x393e('0x1f')][_0x393e('0x7')](this,_0xfedbdd),_0xf65c3e['isVisible']&&(_0xf65c3e[_0x393e('0x13')]=_0xf65c3e[_0x393e('0x13')][_0x393e('0x7')](this,_0xfedbdd)),_0xf65c3e;});}}w['availableRevisionActions']={'compareAgainstSelected':{'name':_0x393e('0x22'),'action':({plugins:_0x2495d9},_0x40d452)=>{const _0x63335e=_0x2495d9[_0x393e('0x16')](_0x542b1c),_0x160aa5=_0x63335e[_0x393e('0x5')];let _0x48ea5b=_0x63335e[_0x393e('0x12')][_0x393e('0x0')],_0x22b390=_0x40d452['id'];_0x160aa5[_0x393e('0x21')](_0x48ea5b)>_0x160aa5[_0x393e('0x21')](_0x22b390)&&([_0x48ea5b,_0x22b390]=[_0x22b390,_0x48ea5b]),_0x63335e['compare'](_0x48ea5b,_0x22b390);},'isVisible':({plugins:_0xcfd500},_0x368b93)=>{const _0x375ff7=_0xcfd500[_0x393e('0x16')](_0x542b1c);return!(_0x375ff7[_0x393e('0x5')]['getRevisionsInDiff'](_0x375ff7[_0x393e('0x12')])[_0x393e('0x1d')]>0x2)&&!_0x368b93[_0x393e('0x2d')];}},'restoreRevision':{'name':_0x393e('0x2e'),'action':(_0x411d92,{id:_0x4d8c9f})=>{_0x411d92[_0x393e('0x17')][_0x393e('0x16')]('revisionHistory')[_0x393e('0x24')](_0x4d8c9f);},'isVisible':({plugins:_0x19600e},_0x1f214d)=>!!_0x19600e['get'](_0x542b1c)['repository'][_0x393e('0x3')](_0x1f214d['id'])},'nameRevision':{'name':_0x393e('0x30'),'action':({plugins:_0x43568a},{id:_0x3f4e7f,revisionNameView:_0x4547c3})=>{const _0x5829c0=_0x43568a[_0x393e('0x16')](_0x542b1c),_0xb3db0e=_0x5829c0['repository'][_0x393e('0x39')](_0x3f4e7f);_0x5829c0[_0x393e('0x1a')](_0x3f4e7f,_0xb3db0e),_0x4547c3[_0x393e('0x23')](),_0x4547c3['fieldView']['select']();}}},w[_0x393e('0x27')]=[_0x393e('0xe'),_0x393e('0x18'),_0x393e('0x26')];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a6b=['ck-revision-history-sidebar__header','ck-revision-history-sidebar__header__label','span','history','setTemplate'];(function(_0xe93d0a,_0x1a6bfe){const _0x559588=function(_0x28ea09){while(--_0x28ea09){_0xe93d0a['push'](_0xe93d0a['shift']());}};_0x559588(++_0x1a6bfe);}(_0x1a6b,0xa1));const _0x5595=function(_0xe93d0a,_0x1a6bfe){_0xe93d0a=_0xe93d0a-0x0;let _0x559588=_0x1a6b[_0xe93d0a];return _0x559588;};import{View as _0x3541ad,IconView as _0x4d3a8a}from'ckeditor5/src/ui.js';import{getTranslation as _0x845213}from'../../utils/common-translations.js';import{icons as _0x24ff3d}from'ckeditor5/src/core.js';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rs extends _0x3541ad{constructor(_0x442bf2){super(_0x442bf2);const _0xfb1adf=new _0x4d3a8a();_0xfb1adf['content']=_0x24ff3d[_0x5595('0x2')],this[_0x5595('0x3')]({'tag':'div','attributes':{'class':['ck','ck-reset_all',_0x5595('0x4')]},'children':[_0xfb1adf,{'tag':_0x5595('0x1'),'attributes':{'class':['ck',_0x5595('0x0')]},'children':[_0x845213(_0x442bf2,'Revision\x20history')]}]});}}
23
+ const _0x226d=['div','history','span','Revision\x20history','setTemplate','ck-revision-history-sidebar__header__label'];(function(_0x23631d,_0x226d49){const _0x480f29=function(_0xf0714){while(--_0xf0714){_0x23631d['push'](_0x23631d['shift']());}};_0x480f29(++_0x226d49);}(_0x226d,0xf8));const _0x480f=function(_0x23631d,_0x226d49){_0x23631d=_0x23631d-0x0;let _0x480f29=_0x226d[_0x23631d];return _0x480f29;};import{View as _0x34696c,IconView as _0x2db3eb}from'ckeditor5/src/ui.js';import{getTranslation as _0x3aa39c}from'../../utils/common-translations.js';import{icons as _0x29007f}from'ckeditor5/src/core.js';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rs extends _0x34696c{constructor(_0x232092){super(_0x232092);const _0x250a04=new _0x2db3eb();_0x250a04['content']=_0x29007f[_0x480f('0x5')],this[_0x480f('0x2')]({'tag':_0x480f('0x4'),'attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x250a04,{'tag':_0x480f('0x0'),'attributes':{'class':['ck',_0x480f('0x3')]},'children':[_0x3aa39c(_0x232092,_0x480f('0x1'))]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x57f5=['find','setName','revisionViews','setTemplate','_revisionActions','removeRevision','localizedPeriodName','div','ck-revision-history-sidebar__time-period','locale','add','delegate','remove','startDate','uiLanguage','ck-revision-history-sidebar__time-period__revisions','createCollection'];(function(_0x1ff982,_0x57f522){const _0x4a5414=function(_0x449f10){while(--_0x449f10){_0x1ff982['push'](_0x1ff982['shift']());}};_0x4a5414(++_0x57f522);}(_0x57f5,0xea));const _0x4a54=function(_0x1ff982,_0x57f522){_0x1ff982=_0x1ff982-0x0;let _0x4a5414=_0x57f5[_0x1ff982];return _0x4a5414;};import{View as _0x3cec11}from'ckeditor5/src/ui.js';import _0xb8b7ff from'../revision/revisionview.js';import{getDateTimePeriodInfo as _0x1ef025}from'./utils.js';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class vi extends _0x3cec11{constructor(_0x352393,_0x4e19e7,_0x59a141){super(_0x352393);const _0x72be87=_0x1ef025(_0x4e19e7,this[_0x4a54('0xd')][_0x4a54('0x1')])[_0x4a54('0xa')];this[_0x4a54('0x0')]=_0x4e19e7,this[_0x4a54('0x6')]=this[_0x4a54('0x3')](),this[_0x4a54('0x8')]=_0x59a141,this[_0x4a54('0x6')]['delegate']('select')['to'](this),this['revisionViews'][_0x4a54('0xf')](_0x4a54('0x5'))['to'](this),this[_0x4a54('0x7')]({'tag':_0x4a54('0xb'),'attributes':{'class':['ck',_0x4a54('0xc')]},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x72be87}]},{'tag':_0x4a54('0xb'),'attributes':{'class':['ck',_0x4a54('0x2')]},'children':this['revisionViews']}]});}['addRevision'](_0x573c54){const _0x5a15f0=new _0xb8b7ff(this[_0x4a54('0xd')],_0x573c54,this['_revisionActions']);this[_0x4a54('0x6')][_0x4a54('0xe')](_0x5a15f0);}[_0x4a54('0x9')](_0x1cf719){const _0x48d840=this[_0x4a54('0x6')][_0x4a54('0x4')](_0x3d2dc1=>_0x3d2dc1['id']===_0x1cf719['id']);this[_0x4a54('0x6')][_0x4a54('0x10')](_0x48d840);}}
23
+ const _0x335e=['removeRevision','setTemplate','_revisionActions','ck-revision-history-sidebar__time-period__label','delegate','add','uiLanguage','locale','select','revisionViews','createCollection','setName','find','localizedPeriodName','startDate','div','ck-revision-history-sidebar__time-period__revisions','addRevision'];(function(_0x99a09d,_0x335e54){const _0x17c326=function(_0x1718c9){while(--_0x1718c9){_0x99a09d['push'](_0x99a09d['shift']());}};_0x17c326(++_0x335e54);}(_0x335e,0x8c));const _0x17c3=function(_0x99a09d,_0x335e54){_0x99a09d=_0x99a09d-0x0;let _0x17c326=_0x335e[_0x99a09d];return _0x17c326;};import{View as _0x3f7320}from'ckeditor5/src/ui.js';import _0x3aa2c7 from'../revision/revisionview.js';import{getDateTimePeriodInfo as _0x3f4c47}from'./utils.js';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class vi extends _0x3f7320{constructor(_0x54009d,_0x53fc7e,_0x12bf17){super(_0x54009d);const _0x27a77c=_0x3f4c47(_0x53fc7e,this[_0x17c3('0xb')][_0x17c3('0xa')])[_0x17c3('0x11')];this[_0x17c3('0x0')]=_0x53fc7e,this[_0x17c3('0xd')]=this[_0x17c3('0xe')](),this[_0x17c3('0x6')]=_0x12bf17,this['revisionViews'][_0x17c3('0x8')](_0x17c3('0xc'))['to'](this),this[_0x17c3('0xd')][_0x17c3('0x8')](_0x17c3('0xf'))['to'](this),this[_0x17c3('0x5')]({'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':'span','attributes':{'class':['ck',_0x17c3('0x7')]},'children':[{'text':_0x27a77c}]},{'tag':_0x17c3('0x1'),'attributes':{'class':['ck',_0x17c3('0x2')]},'children':this[_0x17c3('0xd')]}]});}[_0x17c3('0x3')](_0x2a8b42){const _0x37947a=new _0x3aa2c7(this[_0x17c3('0xb')],_0x2a8b42,this['_revisionActions']);this['revisionViews'][_0x17c3('0x9')](_0x37947a);}[_0x17c3('0x4')](_0x4471c4){const _0x534956=this[_0x17c3('0xd')][_0x17c3('0x10')](_0x1fe6b5=>_0x1fe6b5['id']===_0x4471c4['id']);this[_0x17c3('0xd')]['remove'](_0x534956);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x8819=['_addRevision','getTime','isEnabled','find','map','uiLanguage','revisionSetName','get','removeRevision','setTemplate','unhighlight','flat','revisionSelected','_removeRevision','fire','delegate','locale','highlightRevisions','select','timePeriodViews','_getTimePeriodViewByStartDate','ck-reset','some','setName','set','bindTemplate','remove','render','createCollection','_revisionActions','deselect','selectRevision','ck-disabled','div','startDate','_revisions','ck-revision-history-sidebar','revisionViews'];(function(_0x274db1,_0x881947){const _0x494ab0=function(_0x3de1ea){while(--_0x3de1ea){_0x274db1['push'](_0x274db1['shift']());}};_0x494ab0(++_0x881947);}(_0x8819,0x109));const _0x494a=function(_0x274db1,_0x881947){_0x274db1=_0x274db1-0x0;let _0x494ab0=_0x8819[_0x274db1];return _0x494ab0;};import{View as _0x3dd2e2}from'ckeditor5/src/ui.js';import _0x56ddc9 from'./revisionssidebartimeperiodview.js';import _0x2ca6f from'./revisionssidebarheaderview.js';import{getDateTimePeriodInfo as _0x1ebd0d}from'./utils.js';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class di extends _0x3dd2e2{constructor(_0x38110f,_0x6f3c5e,_0x123eb7){super(_0x38110f);const _0x4fc84b=this[_0x494a('0x1a')];this[_0x494a('0x14')]=this[_0x494a('0x1d')](),this['timePeriodViews'][_0x494a('0x10')](_0x494a('0x13'))['to'](this),this[_0x494a('0x14')]['delegate'](_0x494a('0x18'))['to'](this),this[_0x494a('0x24')]=_0x6f3c5e,this[_0x494a('0x1e')]=_0x123eb7,this['on']('select',(_0x34932a,_0x2f295f)=>{this[_0x494a('0xf')](_0x494a('0xd'),_0x2f295f);}),this['on'](_0x494a('0x18'),(_0x15f25c,_0x475c99)=>{this[_0x494a('0xf')](_0x494a('0x7'),_0x475c99);}),this[_0x494a('0x19')]('isEnabled',!0x1),this[_0x494a('0xa')]({'tag':'div','attributes':{'class':['ck',_0x494a('0x16'),'ck-rounded-corners',_0x494a('0x25')]},'children':[new _0x2ca6f(_0x38110f),{'tag':_0x494a('0x22'),'attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x4fc84b['if'](_0x494a('0x3'),_0x494a('0x21'),_0x370cea=>!_0x370cea)]},'children':this[_0x494a('0x14')]}]});}['render'](){super[_0x494a('0x1c')]();for(const _0x39b56f of this[_0x494a('0x24')])this[_0x494a('0x1')](_0x39b56f);this['_revisions']['on']('add',(_0x560098,_0x1e2995)=>{this[_0x494a('0x1')](_0x1e2995);}),this['_revisions']['on'](_0x494a('0x1b'),(_0x22bcfe,_0x4a4eb0)=>{this[_0x494a('0xe')](_0x4a4eb0);});}get['revisionViews'](){return this[_0x494a('0x14')][_0x494a('0x5')](_0x860634=>_0x860634['revisionViews']['map'](_0x21d682=>_0x21d682))[_0x494a('0xc')]();}[_0x494a('0x20')](_0x50ded0){for(const _0x203ba1 of this[_0x494a('0x0')])_0x50ded0&&_0x50ded0['id']===_0x203ba1['id']?_0x203ba1[_0x494a('0x13')]():_0x203ba1[_0x494a('0x1f')]();}[_0x494a('0x12')](_0x148330){for(const _0x573e2c of this[_0x494a('0x0')])_0x148330[_0x494a('0x17')](({id:_0x3de8a0})=>_0x3de8a0===_0x573e2c['id'])?_0x573e2c['highlight']():_0x573e2c[_0x494a('0xb')]();}[_0x494a('0x1')](_0x4ae8e6){const _0x289fc9=_0x1ebd0d(_0x4ae8e6['createdAt'],this[_0x494a('0x11')]['uiLanguage'])['startDate'];let _0x22a2da=this['timePeriodViews'][_0x494a('0x8')](0x0);_0x22a2da&&_0x22a2da[_0x494a('0x23')][_0x494a('0x2')]()===_0x289fc9['getTime']()||(_0x22a2da=new _0x56ddc9(this['locale'],_0x289fc9,this['_revisionActions']),this[_0x494a('0x14')]['add'](_0x22a2da)),_0x22a2da['addRevision'](_0x4ae8e6);}['_removeRevision'](_0x579654){const _0x3e2f7b=_0x1ebd0d(_0x579654['createdAt'],this[_0x494a('0x11')][_0x494a('0x6')])[_0x494a('0x23')];this[_0x494a('0x15')](_0x3e2f7b)[_0x494a('0x9')](_0x579654);}[_0x494a('0x15')](_0x7d268b){return this['timePeriodViews'][_0x494a('0x4')](_0x4c1599=>_0x4c1599['startDate'][_0x494a('0x2')]()===_0x7d268b[_0x494a('0x2')]());}}
23
+ const _0x5da0=['delegate','selectRevision','unhighlight','createCollection','revisionViews','fire','createdAt','uiLanguage','map','setName','startDate','select','some','removeRevision','_addRevision','setTemplate','_revisionActions','remove','highlightRevisions','_revisions','isEnabled','get','timePeriodViews','revisionSetName','locale','find','getTime','revisionSelected','deselect','ck-disabled','bindTemplate','ck-revision-history-sidebar__timeline','add','set','ck-reset','div','highlight','render','_getTimePeriodViewByStartDate','ck-revision-history-sidebar','flat'];(function(_0x23c630,_0x5da0a6){const _0x2f9dac=function(_0x41a656){while(--_0x41a656){_0x23c630['push'](_0x23c630['shift']());}};_0x2f9dac(++_0x5da0a6);}(_0x5da0,0xfa));const _0x2f9d=function(_0x23c630,_0x5da0a6){_0x23c630=_0x23c630-0x0;let _0x2f9dac=_0x5da0[_0x23c630];return _0x2f9dac;};import{View as _0x1c1798}from'ckeditor5/src/ui.js';import _0x17b8ac from'./revisionssidebartimeperiodview.js';import _0x3084a3 from'./revisionssidebarheaderview.js';import{getDateTimePeriodInfo as _0x356060}from'./utils.js';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class di extends _0x1c1798{constructor(_0x15b2c1,_0x498e7a,_0x589d3c){super(_0x15b2c1);const _0x590c1d=this[_0x2f9d('0x1a')];this['timePeriodViews']=this[_0x2f9d('0x28')](),this[_0x2f9d('0x12')]['delegate'](_0x2f9d('0x7'))['to'](this),this[_0x2f9d('0x12')][_0x2f9d('0x25')](_0x2f9d('0x5'))['to'](this),this[_0x2f9d('0xf')]=_0x498e7a,this[_0x2f9d('0xc')]=_0x589d3c,this['on'](_0x2f9d('0x7'),(_0x3937a3,_0x5b0d8e)=>{this[_0x2f9d('0x1')](_0x2f9d('0x17'),_0x5b0d8e);}),this['on'](_0x2f9d('0x5'),(_0x59eda9,_0x11898b)=>{this[_0x2f9d('0x1')](_0x2f9d('0x13'),_0x11898b);}),this[_0x2f9d('0x1d')](_0x2f9d('0x10'),!0x1),this[_0x2f9d('0xb')]({'tag':'div','attributes':{'class':['ck',_0x2f9d('0x1e'),'ck-rounded-corners',_0x2f9d('0x23')]},'children':[new _0x3084a3(_0x15b2c1),{'tag':_0x2f9d('0x1f'),'attributes':{'class':['ck',_0x2f9d('0x1b'),_0x590c1d['if'](_0x2f9d('0x10'),_0x2f9d('0x19'),_0x31bf85=>!_0x31bf85)]},'children':this[_0x2f9d('0x12')]}]});}[_0x2f9d('0x21')](){super[_0x2f9d('0x21')]();for(const _0x57843c of this[_0x2f9d('0xf')])this[_0x2f9d('0xa')](_0x57843c);this['_revisions']['on'](_0x2f9d('0x1c'),(_0x4de33a,_0x156ca4)=>{this[_0x2f9d('0xa')](_0x156ca4);}),this[_0x2f9d('0xf')]['on'](_0x2f9d('0xd'),(_0x4c0e1f,_0x84e2f1)=>{this['_removeRevision'](_0x84e2f1);});}get[_0x2f9d('0x0')](){return this[_0x2f9d('0x12')][_0x2f9d('0x4')](_0x553741=>_0x553741['revisionViews']['map'](_0x2d42b5=>_0x2d42b5))[_0x2f9d('0x24')]();}[_0x2f9d('0x26')](_0x3854ff){for(const _0xb471ef of this[_0x2f9d('0x0')])_0x3854ff&&_0x3854ff['id']===_0xb471ef['id']?_0xb471ef['select']():_0xb471ef[_0x2f9d('0x18')]();}[_0x2f9d('0xe')](_0x1f7e98){for(const _0x171c6e of this[_0x2f9d('0x0')])_0x1f7e98[_0x2f9d('0x8')](({id:_0x280a52})=>_0x280a52===_0x171c6e['id'])?_0x171c6e[_0x2f9d('0x20')]():_0x171c6e[_0x2f9d('0x27')]();}[_0x2f9d('0xa')](_0x41a27f){const _0x1eb5dc=_0x356060(_0x41a27f[_0x2f9d('0x2')],this[_0x2f9d('0x14')][_0x2f9d('0x3')])[_0x2f9d('0x6')];let _0x87db0d=this['timePeriodViews'][_0x2f9d('0x11')](0x0);_0x87db0d&&_0x87db0d[_0x2f9d('0x6')][_0x2f9d('0x16')]()===_0x1eb5dc[_0x2f9d('0x16')]()||(_0x87db0d=new _0x17b8ac(this['locale'],_0x1eb5dc,this[_0x2f9d('0xc')]),this[_0x2f9d('0x12')]['add'](_0x87db0d)),_0x87db0d['addRevision'](_0x41a27f);}['_removeRevision'](_0x2b21c0){const _0x14d976=_0x356060(_0x2b21c0[_0x2f9d('0x2')],this[_0x2f9d('0x14')][_0x2f9d('0x3')])[_0x2f9d('0x6')];this[_0x2f9d('0x22')](_0x14d976)[_0x2f9d('0x9')](_0x2b21c0);}[_0x2f9d('0x22')](_0x45da06){return this[_0x2f9d('0x12')][_0x2f9d('0x15')](_0x3b0022=>_0x3b0022['startDate'][_0x2f9d('0x16')]()===_0x45da06[_0x2f9d('0x16')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x24eb=['year','weekdayLong','minus','day','month','hasSame','startOf','toJSDate','week','monthLong','toRelativeCalendar','setLocale','fromJSDate'];(function(_0x212b9e,_0x24ebd9){const _0x4f317f=function(_0x5b9484){while(--_0x5b9484){_0x212b9e['push'](_0x212b9e['shift']());}};_0x4f317f(++_0x24ebd9);}(_0x24eb,0xef));const _0x4f31=function(_0x212b9e,_0x24ebd9){_0x212b9e=_0x212b9e-0x0;let _0x4f317f=_0x24eb[_0x212b9e];return _0x4f317f;};import{DateTime as _0xc7e6a8}from'luxon';export function getDateTimePeriodInfo(_0x3418d5,_0x31ab02){const _0x5a14ca=_0xc7e6a8[_0x4f31('0x7')](_0x3418d5)[_0x4f31('0x6')](_0x31ab02),_0x495589=_0xc7e6a8['local'](),_0x2425d7=_0x495589[_0x4f31('0xa')]({'days':0x1})[_0x4f31('0x1')](_0x4f31('0xb'));let _0x1fb2fe,_0x374936;return _0x5a14ca[_0x4f31('0x0')](_0x495589,_0x4f31('0xb'))?(_0x1fb2fe=_0x5a14ca['startOf'](_0x4f31('0xb'))['toJSDate'](),_0x374936=_0x5a14ca[_0x4f31('0x5')]()):_0x5a14ca[_0x4f31('0x0')](_0x2425d7,_0x4f31('0xb'))?(_0x1fb2fe=_0x2425d7['toJSDate'](),_0x374936=_0x5a14ca[_0x4f31('0x5')]()):_0x5a14ca[_0x4f31('0x0')](_0x495589,_0x4f31('0x3'))?(_0x1fb2fe=_0x5a14ca[_0x4f31('0x1')](_0x4f31('0x3'))[_0x4f31('0x2')](),_0x374936=_0x5a14ca[_0x4f31('0x9')]||''):_0x5a14ca['hasSame'](_0x495589,_0x4f31('0x8'))?(_0x1fb2fe=_0x5a14ca[_0x4f31('0x1')](_0x4f31('0xc'))[_0x4f31('0x2')](),_0x374936=_0x5a14ca[_0x4f31('0x4')]||''):(_0x1fb2fe=_0x5a14ca[_0x4f31('0x1')](_0x4f31('0x8'))[_0x4f31('0x2')](),_0x374936=String(_0x5a14ca['year'])),{'startDate':_0x1fb2fe,'localizedPeriodName':_0x374936};}
23
+ const _0x972d=['hasSame','fromJSDate','year','setLocale','day','local','startOf','weekdayLong','toJSDate','week','toRelativeCalendar','month','minus'];(function(_0x613bf7,_0x972d86){const _0xae03e5=function(_0x4250be){while(--_0x4250be){_0x613bf7['push'](_0x613bf7['shift']());}};_0xae03e5(++_0x972d86);}(_0x972d,0x7d));const _0xae03=function(_0x613bf7,_0x972d86){_0x613bf7=_0x613bf7-0x0;let _0xae03e5=_0x972d[_0x613bf7];return _0xae03e5;};import{DateTime as _0x137449}from'luxon';export function getDateTimePeriodInfo(_0x220ff1,_0x5be8b6){const _0xc76b1e=_0x137449[_0xae03('0x6')](_0x220ff1)[_0xae03('0x8')](_0x5be8b6),_0x105c23=_0x137449[_0xae03('0xa')](),_0x52cc4c=_0x105c23[_0xae03('0x4')]({'days':0x1})[_0xae03('0xb')]('day');let _0x58d237,_0xded60d;return _0xc76b1e['hasSame'](_0x105c23,_0xae03('0x9'))?(_0x58d237=_0xc76b1e[_0xae03('0xb')](_0xae03('0x9'))['toJSDate'](),_0xded60d=_0xc76b1e[_0xae03('0x2')]()):_0xc76b1e[_0xae03('0x5')](_0x52cc4c,_0xae03('0x9'))?(_0x58d237=_0x52cc4c[_0xae03('0x0')](),_0xded60d=_0xc76b1e['toRelativeCalendar']()):_0xc76b1e[_0xae03('0x5')](_0x105c23,_0xae03('0x1'))?(_0x58d237=_0xc76b1e['startOf'](_0xae03('0x1'))[_0xae03('0x0')](),_0xded60d=_0xc76b1e[_0xae03('0xc')]||''):_0xc76b1e[_0xae03('0x5')](_0x105c23,_0xae03('0x7'))?(_0x58d237=_0xc76b1e[_0xae03('0xb')](_0xae03('0x3'))[_0xae03('0x0')](),_0xded60d=_0xc76b1e['monthLong']||''):(_0x58d237=_0xc76b1e['startOf'](_0xae03('0x7'))[_0xae03('0x0')](),_0xded60d=String(_0xc76b1e[_0xae03('0x7')])),{'startDate':_0x58d237,'localizedPeriodName':_0xded60d};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4d9b=['ck-revision-change','isSuggestion','_model','type','ck-revision-change__','element','div','set','span','ck-revision-change__label','ck-annotation','Removed\x20by','changeId','focus','Suggested\x20by','name','author','Added\x20by'];(function(_0x20b63c,_0x4d9b8a){const _0x42efa6=function(_0x40e6e8){while(--_0x40e6e8){_0x20b63c['push'](_0x20b63c['shift']());}};_0x42efa6(++_0x4d9b8a);}(_0x4d9b,0xed));const _0x42ef=function(_0x20b63c,_0x4d9b8a){_0x20b63c=_0x20b63c-0x0;let _0x42efa6=_0x4d9b[_0x20b63c];return _0x42efa6;};import{View as _0xe40cc6}from'ckeditor5/src/ui.js';import{getTranslation as _0x5959b4}from'../../utils/common-translations.js';export default class Z extends _0xe40cc6{constructor(_0x1410b1,_0x47a8b2){super(_0x1410b1),this[_0x42ef('0x11')]=_0x47a8b2,this[_0x42ef('0x9')]=_0x47a8b2['id'];const _0x2c35a2=this['bindTemplate'],_0x1c065a=_0x5959b4(_0x1410b1,_0x47a8b2['data'][_0x42ef('0x10')]?_0x42ef('0xb'):'add'==_0x47a8b2[_0x42ef('0x0')]?_0x42ef('0xe'):_0x42ef('0x8'));this[_0x42ef('0x4')](_0x42ef('0x0'),_0x47a8b2[_0x42ef('0x0')]),this['setTemplate']({'tag':_0x42ef('0x3'),'attributes':{'class':[_0x42ef('0x7'),_0x42ef('0xf'),_0x2c35a2['to'](_0x42ef('0x0'),_0x1971ff=>_0x42ef('0x1')+_0x1971ff)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':_0x42ef('0x5'),'attributes':{'class':[_0x42ef('0x6')]},'children':[{'text':_0x1c065a}]},{'text':'\x20'+_0x47a8b2[_0x42ef('0xd')][_0x42ef('0xc')]}]}]});}[_0x42ef('0xa')](){this[_0x42ef('0x2')][_0x42ef('0xa')]();}}
23
+ const _0x314b=['setTemplate','ck-annotation','name','_model','bindTemplate','span','data','set','focus','ck-revision-change','add','div','Removed\x20by','type','isSuggestion','element','ck-revision-change__','Suggested\x20by','changeId'];(function(_0x367ca5,_0x314b91){const _0x51ff13=function(_0x253281){while(--_0x253281){_0x367ca5['push'](_0x367ca5['shift']());}};_0x51ff13(++_0x314b91);}(_0x314b,0x149));const _0x51ff=function(_0x367ca5,_0x314b91){_0x367ca5=_0x367ca5-0x0;let _0x51ff13=_0x314b[_0x367ca5];return _0x51ff13;};import{View as _0x31a8da}from'ckeditor5/src/ui.js';import{getTranslation as _0x3336a8}from'../../utils/common-translations.js';export default class Z extends _0x31a8da{constructor(_0x19f548,_0x4e9c18){super(_0x19f548),this[_0x51ff('0x10')]=_0x4e9c18,this[_0x51ff('0xc')]=_0x4e9c18['id'];const _0x41c646=this[_0x51ff('0x11')],_0x579059=_0x3336a8(_0x19f548,_0x4e9c18[_0x51ff('0x0')][_0x51ff('0x8')]?_0x51ff('0xb'):_0x51ff('0x4')==_0x4e9c18[_0x51ff('0x7')]?'Added\x20by':_0x51ff('0x6'));this[_0x51ff('0x1')](_0x51ff('0x7'),_0x4e9c18[_0x51ff('0x7')]),this[_0x51ff('0xd')]({'tag':_0x51ff('0x5'),'attributes':{'class':[_0x51ff('0xe'),_0x51ff('0x3'),_0x41c646['to'](_0x51ff('0x7'),_0x368675=>_0x51ff('0xa')+_0x368675)],'tabindex':-0x1},'children':[{'tag':_0x51ff('0x12'),'children':[{'tag':_0x51ff('0x12'),'attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x579059}]},{'text':'\x20'+_0x4e9c18['author'][_0x51ff('0xf')]}]}]});}[_0x51ff('0x2')](){this[_0x51ff('0x9')][_0x51ff('0x2')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xadcb=['forward','_isStatusLabelVisible','isEnabled','currentChangeNumber','ck-hidden','backward','span','bind','ck-revision-history-ui__changes-navigation__wrapper','isBackwardNavigationEnabled','set','div','setTemplate','isReady','execute','isNavigationMode','ck-revision-history-ui','ck-revision-history-ui__changes-navigation__navigation','ck-revision-history-ui__changes-navigation__label','isForwardNavigationEnabled','fire','Show\x20previous\x20change','EDIT_X_OF_Y_REVISIONS'];(function(_0x1b94dd,_0xadcb39){const _0x2a1f77=function(_0x1803ea){while(--_0x1803ea){_0x1b94dd['push'](_0x1b94dd['shift']());}};_0x2a1f77(++_0xadcb39);}(_0xadcb,0xd7));const _0x2a1f=function(_0x1b94dd,_0xadcb39){_0x1b94dd=_0x1b94dd-0x0;let _0x2a1f77=_0xadcb[_0x1b94dd];return _0x2a1f77;};import{View as _0x71319f,ButtonView as _0x3e9663,ToolbarSeparatorView as _0x3a1097}from'ckeditor5/src/ui.js';import{getTranslation as _0x55c23b}from'../../utils/common-translations.js';import _0x1600ad from'../../../theme/icons/arrow-up.svg';import _0x13f4df from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x71319f{constructor(_0x5b6480){super(_0x5b6480);const _0x24e026=this['bindTemplate'],_0x3e21ca=new _0x3e9663(_0x5b6480),_0xa91792=new _0x3e9663(_0x5b6480);this[_0x2a1f('0x2')]('isNavigationMode',!0x1),this[_0x2a1f('0x2')](_0x2a1f('0x5'),!0x1),this[_0x2a1f('0x2')](_0x2a1f('0x12'),0x0),this[_0x2a1f('0x2')]('numberOfChanges',0x0),this['set'](_0x2a1f('0xb'),!0x1),this[_0x2a1f('0x2')](_0x2a1f('0x1'),!0x1),this[_0x2a1f('0x16')](_0x2a1f('0x10'))['to'](this,'isReady',this,'numberOfChanges',(_0x2db326,_0x1e4296)=>_0x2db326&&_0x1e4296>0x0),this[_0x2a1f('0x16')]('_statusText')['to'](this,_0x2a1f('0x5'),this,_0x2a1f('0x12'),this,'numberOfChanges',this,_0x2a1f('0x7'),(_0x1bb6e0,_0x5a7cc3,_0x2489bb,_0x1c142c)=>{if(!_0x1bb6e0)return _0x55c23b(_0x5b6480,'Loading...');if(!_0x2489bb)return _0x55c23b(_0x5b6480,'No\x20changes');const _0xfc4916=_0x55c23b(_0x5b6480,'NUMBER_OF_CHANGES',_0x2489bb);return _0x1c142c?_0x55c23b(_0x5b6480,'X_OF_Y_CHANGES',[_0x5a7cc3+0x1,_0x2489bb]):_0xfc4916;}),_0x3e21ca[_0x2a1f('0x2')]({'label':_0x55c23b(_0x5b6480,_0x2a1f('0xd')),'tooltip':!0x0,'icon':_0x1600ad}),_0xa91792['set']({'label':_0x55c23b(_0x5b6480,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x13f4df}),_0x3e21ca[_0x2a1f('0x16')](_0x2a1f('0x11'))['to'](this,_0x2a1f('0x1')),_0xa91792['bind'](_0x2a1f('0x11'))['to'](this,_0x2a1f('0xb')),_0x3e21ca['on'](_0x2a1f('0x6'),()=>this[_0x2a1f('0xc')]('execute',_0x2a1f('0x14'))),_0xa91792['on'](_0x2a1f('0x6'),()=>this[_0x2a1f('0xc')](_0x2a1f('0x6'),_0x2a1f('0xf'))),this[_0x2a1f('0x4')]({'tag':_0x2a1f('0x3'),'attributes':{'class':['ck',_0x2a1f('0x8'),'ck-revision-history-ui__changes-navigation']},'children':[{'tag':_0x2a1f('0x15'),'attributes':{'class':[_0x2a1f('0x0')]},'children':[{'tag':_0x2a1f('0x15'),'attributes':{'class':[_0x2a1f('0xa'),_0x24e026['if']('_isStatusLabelVisible',_0x2a1f('0x13'),_0x5ee9a5=>!_0x5ee9a5)]},'children':[{'text':_0x24e026['to']('isNavigationMode',_0x362ac4=>_0x362ac4?_0x55c23b(_0x5b6480,_0x2a1f('0xe'))+':\x20':_0x55c23b(_0x5b6480,'Total')+':\x20')}]},{'text':_0x24e026['to']('_statusText')}]},new _0x3a1097(),{'tag':_0x2a1f('0x3'),'attributes':{'class':[_0x2a1f('0x9')]},'children':[_0x3e21ca,_0xa91792]}]});}}
23
+ const _0x2017=['No\x20changes','_isStatusLabelVisible','ck-revision-history-ui__changes-navigation','ck-hidden','isEnabled','div','Loading...','X_OF_Y_CHANGES','ck-revision-history-ui__changes-navigation__label','set','isBackwardNavigationEnabled','numberOfChanges','span','Total','execute','backward','_statusText','bind','ck-revision-history-ui__changes-navigation__navigation','setTemplate','isReady','fire','EDIT_X_OF_Y_REVISIONS','currentChangeNumber','isNavigationMode'];(function(_0x4165de,_0x201774){const _0x180a79=function(_0x23597f){while(--_0x23597f){_0x4165de['push'](_0x4165de['shift']());}};_0x180a79(++_0x201774);}(_0x2017,0x176));const _0x180a=function(_0x4165de,_0x201774){_0x4165de=_0x4165de-0x0;let _0x180a79=_0x2017[_0x4165de];return _0x180a79;};import{View as _0x447a88,ButtonView as _0x4a1f5b,ToolbarSeparatorView as _0x4c6464}from'ckeditor5/src/ui.js';import{getTranslation as _0x2c7b8f}from'../../utils/common-translations.js';import _0x23a0f6 from'../../../theme/icons/arrow-up.svg';import _0x467b49 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x447a88{constructor(_0x2d0253){super(_0x2d0253);const _0x17b0a9=this['bindTemplate'],_0x8aecb4=new _0x4a1f5b(_0x2d0253),_0x232245=new _0x4a1f5b(_0x2d0253);this[_0x180a('0xa')](_0x180a('0x0'),!0x1),this[_0x180a('0xa')](_0x180a('0x15'),!0x1),this[_0x180a('0xa')](_0x180a('0x18'),0x0),this[_0x180a('0xa')](_0x180a('0xc'),0x0),this[_0x180a('0xa')]('isForwardNavigationEnabled',!0x1),this['set'](_0x180a('0xb'),!0x1),this[_0x180a('0x12')](_0x180a('0x2'))['to'](this,'isReady',this,_0x180a('0xc'),(_0x5bcabd,_0x507f36)=>_0x5bcabd&&_0x507f36>0x0),this[_0x180a('0x12')](_0x180a('0x11'))['to'](this,'isReady',this,'currentChangeNumber',this,_0x180a('0xc'),this,_0x180a('0x0'),(_0x15653a,_0x1b3c46,_0x1aa0df,_0x2d41f1)=>{if(!_0x15653a)return _0x2c7b8f(_0x2d0253,_0x180a('0x7'));if(!_0x1aa0df)return _0x2c7b8f(_0x2d0253,_0x180a('0x1'));const _0x22dc74=_0x2c7b8f(_0x2d0253,'NUMBER_OF_CHANGES',_0x1aa0df);return _0x2d41f1?_0x2c7b8f(_0x2d0253,_0x180a('0x8'),[_0x1b3c46+0x1,_0x1aa0df]):_0x22dc74;}),_0x8aecb4['set']({'label':_0x2c7b8f(_0x2d0253,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x23a0f6}),_0x232245['set']({'label':_0x2c7b8f(_0x2d0253,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x467b49}),_0x8aecb4[_0x180a('0x12')](_0x180a('0x5'))['to'](this,_0x180a('0xb')),_0x232245['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x8aecb4['on'](_0x180a('0xf'),()=>this[_0x180a('0x16')](_0x180a('0xf'),_0x180a('0x10'))),_0x232245['on'](_0x180a('0xf'),()=>this[_0x180a('0x16')](_0x180a('0xf'),'forward')),this[_0x180a('0x14')]({'tag':_0x180a('0x6'),'attributes':{'class':['ck','ck-revision-history-ui',_0x180a('0x3')]},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':_0x180a('0xd'),'attributes':{'class':[_0x180a('0x9'),_0x17b0a9['if'](_0x180a('0x2'),_0x180a('0x4'),_0x1bc24c=>!_0x1bc24c)]},'children':[{'text':_0x17b0a9['to'](_0x180a('0x0'),_0x4a3bf0=>_0x4a3bf0?_0x2c7b8f(_0x2d0253,_0x180a('0x17'))+':\x20':_0x2c7b8f(_0x2d0253,_0x180a('0xe'))+':\x20')}]},{'text':_0x17b0a9['to'](_0x180a('0x11'))}]},new _0x4c6464(),{'tag':_0x180a('0x6'),'attributes':{'class':[_0x180a('0x13')]},'children':[_0x8aecb4,_0x232245]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x15cb=['show','view','addClass','roots','hide','pluginName','editing','editor','RevisionViewerLoadingOverlay','ck-editor__editable__loading-overlay','document'];(function(_0x285456,_0x15cb88){const _0x46548b=function(_0x4ecbad){while(--_0x4ecbad){_0x285456['push'](_0x285456['shift']());}};_0x46548b(++_0x15cb88);}(_0x15cb,0x10d));const _0x4654=function(_0x285456,_0x15cb88){_0x285456=_0x285456-0x0;let _0x46548b=_0x15cb[_0x285456];return _0x46548b;};import{Plugin as _0x4aaf27}from'ckeditor5/src/core.js';const oe=_0x4654('0x4');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x4aaf27{static get[_0x4654('0x0')](){return _0x4654('0x3');}[_0x4654('0x6')](){const _0x2b0d31=this['editor'][_0x4654('0x1')][_0x4654('0x7')];_0x2b0d31['change'](_0x209eb1=>{for(const _0x180845 of _0x2b0d31['document'][_0x4654('0x9')])_0x209eb1[_0x4654('0x8')](oe,_0x180845);});}[_0x4654('0xa')](){const _0xc000b4=this[_0x4654('0x2')][_0x4654('0x1')][_0x4654('0x7')];_0xc000b4['change'](_0x34318e=>{for(const _0xe57eb2 of _0xc000b4[_0x4654('0x5')]['roots'])_0x34318e['removeClass'](oe,_0xe57eb2);});}}
23
+ const _0x4325=['document','editor','removeClass','show','roots','RevisionViewerLoadingOverlay','ck-editor__editable__loading-overlay','addClass','pluginName','editing','view','change','hide'];(function(_0x5f2ec5,_0x43252a){const _0x5b7ca6=function(_0x2a04ba){while(--_0x2a04ba){_0x5f2ec5['push'](_0x5f2ec5['shift']());}};_0x5b7ca6(++_0x43252a);}(_0x4325,0x1f4));const _0x5b7c=function(_0x5f2ec5,_0x43252a){_0x5f2ec5=_0x5f2ec5-0x0;let _0x5b7ca6=_0x4325[_0x5f2ec5];return _0x5b7ca6;};import{Plugin as _0x48b296}from'ckeditor5/src/core.js';const oe=_0x5b7c('0x0');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x48b296{static get[_0x5b7c('0x2')](){return _0x5b7c('0xc');}[_0x5b7c('0xa')](){const _0x164ce6=this[_0x5b7c('0x8')][_0x5b7c('0x3')][_0x5b7c('0x4')];_0x164ce6[_0x5b7c('0x5')](_0x17ca08=>{for(const _0x4f4f38 of _0x164ce6[_0x5b7c('0x7')][_0x5b7c('0xb')])_0x17ca08[_0x5b7c('0x1')](oe,_0x4f4f38);});}[_0x5b7c('0x6')](){const _0x474913=this[_0x5b7c('0x8')][_0x5b7c('0x3')][_0x5b7c('0x4')];_0x474913['change'](_0xd657f2=>{for(const _0x2b9175 of _0x474913[_0x5b7c('0x7')][_0x5b7c('0xb')])_0xd657f2[_0x5b7c('0x9')](oe,_0x2b9175);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4079=['changesNavigation','plugins','restoreRevision','hide','undo','isEnabled','componentFactory','listenTo','showNextChange','Back\x20to\x20editing','add','forward','isBackwardNavigationEnabled','commands','RevisionViewerUI','init','set','currentChangeNumber','execute','showPreviousChange','bind','config','closeRevisionViewerCallback','numberOfChanges','isForwardNavigationEnabled','get','Restore\x20this\x20revision'];(function(_0x3b17a3,_0x40793c){const _0x367fef=function(_0x30bbf3){while(--_0x30bbf3){_0x3b17a3['push'](_0x3b17a3['shift']());}};_0x367fef(++_0x40793c);}(_0x4079,0x15c));const _0x367f=function(_0x3b17a3,_0x40793c){_0x3b17a3=_0x3b17a3-0x0;let _0x367fef=_0x4079[_0x3b17a3];return _0x367fef;};import{icons as _0x39ad5d,Plugin as _0x4ad97e}from'ckeditor5/src/core.js';import{ButtonView as _0x3d7899}from'ckeditor5/src/ui.js';import _0x58ece3 from'./changesnavigationview.js';import _0x31f2e6 from'./../../revisionviewer.js';import _0x3caf16 from'./revisionviewerloadingoverlay.js';import{getTranslation as _0x38f02f}from'../../utils/common-translations.js';import'../../../theme/revisionviewer.css';export default class R extends _0x4ad97e{static get['pluginName'](){return _0x367f('0x11');}static get['requires'](){return[_0x31f2e6,_0x3caf16];}[_0x367f('0x12')](){const _0x5d46d6=this['editor'],_0x3c2972=_0x5d46d6[_0x367f('0x4')][_0x367f('0x1')](_0x31f2e6),_0x293ecf=_0x5d46d6['plugins'][_0x367f('0x1')](_0x3caf16);_0x5d46d6['ui'][_0x367f('0x9')][_0x367f('0xd')]('exitToEditing',_0x357486=>{const _0x168719=new _0x3d7899(_0x357486);return _0x168719[_0x367f('0x13')]({'label':_0x38f02f(_0x357486,_0x367f('0xc')),'icon':_0x39ad5d[_0x367f('0x7')],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this[_0x367f('0xa')](_0x168719,_0x367f('0x15'),()=>{_0x5d46d6[_0x367f('0x18')][_0x367f('0x1')]('revisionHistory')[_0x367f('0x19')]();}),_0x168719;}),_0x5d46d6['ui'][_0x367f('0x9')]['add']('restoreRevision',_0x457aed=>{const _0x286267=new _0x3d7899(_0x457aed);return _0x286267['set']({'label':_0x38f02f(_0x457aed,_0x367f('0x2')),'withText':!0x0,'tooltip':!0x0}),_0x286267['bind'](_0x367f('0x8'))['to'](_0x5d46d6[_0x367f('0x10')]['get']('restoreRevision')),this['listenTo'](_0x286267,_0x367f('0x15'),()=>_0x5d46d6[_0x367f('0x15')](_0x367f('0x5'))),_0x286267;}),_0x5d46d6['ui'][_0x367f('0x9')][_0x367f('0xd')](_0x367f('0x3'),_0x12ae00=>{const _0x31729b=new _0x58ece3(_0x12ae00),_0x33f165=_0x5d46d6[_0x367f('0x10')][_0x367f('0x1')](_0x367f('0x16')),_0x2836e6=_0x5d46d6[_0x367f('0x10')][_0x367f('0x1')](_0x367f('0xb'));return _0x31729b[_0x367f('0x17')](_0x367f('0xf'))['to'](_0x33f165,_0x367f('0x8')),_0x31729b[_0x367f('0x17')](_0x367f('0x0'))['to'](_0x2836e6,_0x367f('0x8')),_0x31729b['bind']('isReady',_0x367f('0x14'),_0x367f('0x1a'),'isNavigationMode')['to'](_0x3c2972),this['listenTo'](_0x31729b,_0x367f('0x15'),(_0x5bec5b,_0x20c389)=>{_0x5d46d6[_0x367f('0x15')](_0x367f('0xe')===_0x20c389?_0x367f('0xb'):'showPreviousChange');}),_0x31729b;}),_0x293ecf['show'](),_0x3c2972['on']('change:isReady',(_0x1461a5,_0x14fb7b,_0x46f4ce)=>{_0x46f4ce?_0x293ecf[_0x367f('0x6')]():_0x293ecf['show']();});}}
23
+ const _0x3e0b=['exitToEditing','plugins','componentFactory','requires','show','init','bind','add','currentChangeNumber','showNextChange','commands','execute','undo','forward','isReady','restoreRevision','revisionHistory','closeRevisionViewerCallback','pluginName','isForwardNavigationEnabled','hide','change:isReady','Restore\x20this\x20revision','showPreviousChange','isEnabled','get','ck-revision-history-ui__back-to-editing','editor','Back\x20to\x20editing','listenTo','config'];(function(_0x405311,_0x3e0b1b){const _0x121267=function(_0x3cdc17){while(--_0x3cdc17){_0x405311['push'](_0x405311['shift']());}};_0x121267(++_0x3e0b1b);}(_0x3e0b,0x172));const _0x1212=function(_0x405311,_0x3e0b1b){_0x405311=_0x405311-0x0;let _0x121267=_0x3e0b[_0x405311];return _0x121267;};import{icons as _0x4b84b1,Plugin as _0x494349}from'ckeditor5/src/core.js';import{ButtonView as _0x333fdc}from'ckeditor5/src/ui.js';import _0xcb5a3b from'./changesnavigationview.js';import _0x180d63 from'./../../revisionviewer.js';import _0x447be3 from'./revisionviewerloadingoverlay.js';import{getTranslation as _0x131a8a}from'../../utils/common-translations.js';import'../../../theme/revisionviewer.css';export default class R extends _0x494349{static get[_0x1212('0x14')](){return'RevisionViewerUI';}static get[_0x1212('0x5')](){return[_0x180d63,_0x447be3];}[_0x1212('0x7')](){const _0x6ac8ee=this[_0x1212('0x1d')],_0x3b91fa=_0x6ac8ee[_0x1212('0x3')]['get'](_0x180d63),_0x3afad5=_0x6ac8ee[_0x1212('0x3')][_0x1212('0x1b')](_0x447be3);_0x6ac8ee['ui']['componentFactory'][_0x1212('0x9')](_0x1212('0x2'),_0x36deec=>{const _0x1b3810=new _0x333fdc(_0x36deec);return _0x1b3810['set']({'label':_0x131a8a(_0x36deec,_0x1212('0x1e')),'icon':_0x4b84b1[_0x1212('0xe')],'withText':!0x0,'tooltip':!0x0,'class':_0x1212('0x1c')}),this['listenTo'](_0x1b3810,_0x1212('0xd'),()=>{_0x6ac8ee[_0x1212('0x1')][_0x1212('0x1b')](_0x1212('0x12'))[_0x1212('0x13')]();}),_0x1b3810;}),_0x6ac8ee['ui'][_0x1212('0x4')]['add']('restoreRevision',_0x59b5d0=>{const _0x38cf7b=new _0x333fdc(_0x59b5d0);return _0x38cf7b['set']({'label':_0x131a8a(_0x59b5d0,_0x1212('0x18')),'withText':!0x0,'tooltip':!0x0}),_0x38cf7b['bind']('isEnabled')['to'](_0x6ac8ee[_0x1212('0xc')][_0x1212('0x1b')](_0x1212('0x11'))),this[_0x1212('0x0')](_0x38cf7b,_0x1212('0xd'),()=>_0x6ac8ee[_0x1212('0xd')](_0x1212('0x11'))),_0x38cf7b;}),_0x6ac8ee['ui'][_0x1212('0x4')][_0x1212('0x9')]('changesNavigation',_0x2a989b=>{const _0x3c0bf5=new _0xcb5a3b(_0x2a989b),_0x99b767=_0x6ac8ee['commands'][_0x1212('0x1b')](_0x1212('0x19')),_0x24e154=_0x6ac8ee['commands'][_0x1212('0x1b')](_0x1212('0xb'));return _0x3c0bf5[_0x1212('0x8')]('isBackwardNavigationEnabled')['to'](_0x99b767,'isEnabled'),_0x3c0bf5[_0x1212('0x8')](_0x1212('0x15'))['to'](_0x24e154,_0x1212('0x1a')),_0x3c0bf5[_0x1212('0x8')](_0x1212('0x10'),_0x1212('0xa'),'numberOfChanges','isNavigationMode')['to'](_0x3b91fa),this['listenTo'](_0x3c0bf5,_0x1212('0xd'),(_0x27c76d,_0x1245db)=>{_0x6ac8ee[_0x1212('0xd')](_0x1212('0xf')===_0x1245db?_0x1212('0xb'):'showPreviousChange');}),_0x3c0bf5;}),_0x3afad5['show'](),_0x3b91fa['on'](_0x1212('0x17'),(_0x59f210,_0x58202a,_0x42658a)=>{_0x42658a?_0x3afad5[_0x1212('0x16')]():_0x3afad5[_0x1212('0x6')]();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x7499d2,_0x48e136,_0x1ed50b){const t=_0x7499d2['t'];switch(_0x48e136){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'},_0x1ed50b);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1ed50b);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 _0x48e136;}}
23
+ export function getTranslation(_0x4372b9,_0x19072f,_0x4906da){const t=_0x4372b9['t'];switch(_0x19072f){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'},_0x4906da);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4906da);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 _0x19072f;}}