@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231008.0 → 0.0.0-nightly-20231010.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 _0x3fb3=['editing','Open\x20revision\x20history','buttonView','saveButtonView','bind','submit','revisionName','get','requires','reset','init','componentFactory','add','panelView','focus','render','execute','remove','config','change:isOpen','revisionHistory','children','isEnabled','addMany','isReadOnly','isReady','history','items','cancel','plugins','length','set','showRevisionViewerCallback'];(function(_0x589c32,_0x3fb32c){const _0x84af2f=function(_0x4a4726){while(--_0x4a4726){_0x589c32['push'](_0x589c32['shift']());}};_0x84af2f(++_0x3fb32c);}(_0x3fb3,0x1d8));const _0x84af=function(_0x589c32,_0x3fb32c){_0x589c32=_0x589c32-0x0;let _0x84af2f=_0x3fb3[_0x589c32];return _0x84af2f;};import{Plugin as _0x341366,icons as _0xc5956c}from'ckeditor5/src/core';import{ListView as _0x226fad,ListItemView as _0x25785e,ButtonView as _0x1bddf4,createDropdown as _0x52d2a1}from'ckeditor5/src/ui';import _0x29f404 from'../../revisiontracker';import _0x44459f from'./revisionhistorysaverevisionformview';import{getTranslation as _0x306952}from'../../utils/common-translations';export default class u extends _0x341366{static get['pluginName'](){return'RevisionHistoryUI';}static get[_0x84af('0x1f')](){return[_0x29f404];}[_0x84af('0x0')](){const _0x1210d3=this['editor'],_0x1bef55=_0x1210d3[_0x84af('0x13')][_0x84af('0x1e')]('RevisionTracker');_0x1210d3['ui'][_0x84af('0x1')]['add']('revisionHistory',_0x52f22d=>{const _0x22bae3=_0x52d2a1(_0x52f22d),_0x5ab64c=_0x22bae3[_0x84af('0x3')][_0x84af('0xb')],_0xfb1ba7=new _0x226fad(_0x52f22d),_0x491eb9=new _0x25785e(_0x52f22d),_0x4fef01=new _0x1bddf4(_0x52f22d),_0x1976dd=new _0x25785e(_0x52f22d),_0x477796=new _0x1bddf4(_0x52f22d),_0x58fb76=new _0x44459f(_0x52f22d);function _0x3e14dc(){_0x5ab64c[_0x84af('0x14')]&&_0x5ab64c[_0x84af('0x7')](0x0),_0x5ab64c[_0x84af('0x2')](_0xfb1ba7);}function _0x41af1d(){_0x22bae3['isOpen']=!0x1,_0x1210d3[_0x84af('0x17')]['view'][_0x84af('0x4')]();}return _0x22bae3[_0x84af('0x1b')](_0x84af('0xc'))['to'](_0x1bef55,_0x84af('0xf'),_0x1bef55,_0x84af('0xc'),_0x1210d3,_0x84af('0xe'),(_0x21ab63,_0x3973ad,_0x49f792)=>_0x21ab63&&_0x3973ad&&!_0x49f792),_0x22bae3[_0x84af('0x19')]['set']({'icon':_0xc5956c[_0x84af('0x10')],'label':_0x306952(_0x52f22d,'Revision\x20history'),'tooltip':!0x0}),_0x4fef01[_0x84af('0x15')]({'label':_0x306952(_0x52f22d,'Save\x20current\x20revision'),'withText':!0x0}),_0x4fef01[_0x84af('0x1b')](_0x84af('0xc'))['to'](_0x1bef55,_0x84af('0xf'),_0x1bef55,_0x84af('0xc'),_0x1210d3,_0x84af('0xe'),(_0x329487,_0x3b4389,_0x4b8c86)=>_0x329487&&_0x3b4389&&!_0x4b8c86),_0x4fef01['on'](_0x84af('0x6'),()=>function(){_0x5ab64c[_0x84af('0x14')]&&_0x5ab64c[_0x84af('0x7')](0x0),(_0x58fb76[_0x84af('0x20')](),_0x5ab64c['add'](_0x58fb76),_0x58fb76[_0x84af('0x4')]());}()),_0x477796[_0x84af('0x15')]({'label':_0x306952(_0x52f22d,_0x84af('0x18')),'withText':!0x0}),_0x477796[_0x84af('0x1b')]('isEnabled')['to'](_0x1bef55,_0x84af('0xf'),_0x1210d3,_0x84af('0xe'),(_0xecea9b,_0x41b2d9)=>_0xecea9b&&!_0x41b2d9),_0x477796['on'](_0x84af('0x6'),()=>{_0x1210d3[_0x84af('0x8')][_0x84af('0x1e')](_0x84af('0xa'))[_0x84af('0x16')](),_0x41af1d();}),_0x491eb9[_0x84af('0xb')][_0x84af('0x2')](_0x4fef01),_0x1976dd['children'][_0x84af('0x2')](_0x477796),_0xfb1ba7[_0x84af('0x11')][_0x84af('0xd')]([_0x491eb9,_0x1976dd]),_0x22bae3['on'](_0x84af('0x9'),()=>_0x3e14dc()),_0x58fb76[_0x84af('0x1a')]['bind'](_0x84af('0xc'))['to'](_0x1bef55,'isReady',_0x1bef55,'isEnabled',_0x1210d3,_0x84af('0xe'),(_0x176585,_0x399af6,_0x3497bb)=>_0x176585&&_0x399af6&&!_0x3497bb),_0x58fb76['on'](_0x84af('0x1c'),()=>(_0x1210d3[_0x84af('0x13')][_0x84af('0x1e')](_0x29f404)['saveRevision']({'name':_0x58fb76[_0x84af('0x1d')]}),void _0x41af1d())),_0x58fb76['on'](_0x84af('0x12'),()=>_0x3e14dc()),_0x58fb76[_0x84af('0x5')](),_0x3e14dc(),_0x22bae3;});}}
23
+ const _0x45ea=['Revision\x20history','submit','isReadOnly','buttonView','set','execute','pluginName','items','get','length','bind','Save\x20current\x20revision','change:isOpen','saveRevision','panelView','isEnabled','componentFactory','add','isReady','reset','saveButtonView','revisionName','focus','view','revisionHistory','children','addMany','plugins','init','remove','requires'];(function(_0x56a9df,_0x45ea67){const _0x490524=function(_0x5f05b2){while(--_0x5f05b2){_0x56a9df['push'](_0x56a9df['shift']());}};_0x490524(++_0x45ea67);}(_0x45ea,0x1d0));const _0x4905=function(_0x56a9df,_0x45ea67){_0x56a9df=_0x56a9df-0x0;let _0x490524=_0x45ea[_0x56a9df];return _0x490524;};import{Plugin as _0x1b5e80,icons as _0x3f8286}from'ckeditor5/src/core';import{ListView as _0x3522f7,ListItemView as _0x339fa9,ButtonView as _0x2e0324,createDropdown as _0x3926ec}from'ckeditor5/src/ui';import _0x1df703 from'../../revisiontracker';import _0x5748bc from'./revisionhistorysaverevisionformview';import{getTranslation as _0x4622cd}from'../../utils/common-translations';export default class u extends _0x1b5e80{static get[_0x4905('0x7')](){return'RevisionHistoryUI';}static get[_0x4905('0x0')](){return[_0x1df703];}[_0x4905('0x1d')](){const _0x147441=this['editor'],_0x1e9ccf=_0x147441['plugins'][_0x4905('0x9')]('RevisionTracker');_0x147441['ui'][_0x4905('0x11')][_0x4905('0x12')](_0x4905('0x19'),_0x364c01=>{const _0x1accf8=_0x3926ec(_0x364c01),_0x41d841=_0x1accf8[_0x4905('0xf')][_0x4905('0x1a')],_0x37bd92=new _0x3522f7(_0x364c01),_0xd7391f=new _0x339fa9(_0x364c01),_0x5b09c6=new _0x2e0324(_0x364c01),_0x5737ae=new _0x339fa9(_0x364c01),_0x22b555=new _0x2e0324(_0x364c01),_0x4e1274=new _0x5748bc(_0x364c01);function _0x3413d2(){_0x41d841[_0x4905('0xa')]&&_0x41d841[_0x4905('0x1e')](0x0),_0x41d841['add'](_0x37bd92);}function _0x10077b(){_0x1accf8['isOpen']=!0x1,_0x147441['editing'][_0x4905('0x18')][_0x4905('0x17')]();}return _0x1accf8['bind'](_0x4905('0x10'))['to'](_0x1e9ccf,_0x4905('0x13'),_0x1e9ccf,'isEnabled',_0x147441,'isReadOnly',(_0x48b312,_0x28efdb,_0x52502f)=>_0x48b312&&_0x28efdb&&!_0x52502f),_0x1accf8[_0x4905('0x4')][_0x4905('0x5')]({'icon':_0x3f8286['history'],'label':_0x4622cd(_0x364c01,_0x4905('0x1')),'tooltip':!0x0}),_0x5b09c6[_0x4905('0x5')]({'label':_0x4622cd(_0x364c01,_0x4905('0xc')),'withText':!0x0}),_0x5b09c6[_0x4905('0xb')]('isEnabled')['to'](_0x1e9ccf,_0x4905('0x13'),_0x1e9ccf,_0x4905('0x10'),_0x147441,'isReadOnly',(_0x2fa533,_0x15ba83,_0x2a42a6)=>_0x2fa533&&_0x15ba83&&!_0x2a42a6),_0x5b09c6['on'](_0x4905('0x6'),()=>function(){_0x41d841[_0x4905('0xa')]&&_0x41d841['remove'](0x0),(_0x4e1274[_0x4905('0x14')](),_0x41d841['add'](_0x4e1274),_0x4e1274['focus']());}()),_0x22b555[_0x4905('0x5')]({'label':_0x4622cd(_0x364c01,'Open\x20revision\x20history'),'withText':!0x0}),_0x22b555['bind'](_0x4905('0x10'))['to'](_0x1e9ccf,_0x4905('0x13'),_0x147441,_0x4905('0x3'),(_0x767f27,_0x400621)=>_0x767f27&&!_0x400621),_0x22b555['on'](_0x4905('0x6'),()=>{_0x147441['config']['get'](_0x4905('0x19'))['showRevisionViewerCallback'](),_0x10077b();}),_0xd7391f[_0x4905('0x1a')][_0x4905('0x12')](_0x5b09c6),_0x5737ae['children'][_0x4905('0x12')](_0x22b555),_0x37bd92[_0x4905('0x8')][_0x4905('0x1b')]([_0xd7391f,_0x5737ae]),_0x1accf8['on'](_0x4905('0xd'),()=>_0x3413d2()),_0x4e1274[_0x4905('0x15')][_0x4905('0xb')](_0x4905('0x10'))['to'](_0x1e9ccf,'isReady',_0x1e9ccf,_0x4905('0x10'),_0x147441,_0x4905('0x3'),(_0x441ce2,_0x167e0d,_0x41df2e)=>_0x441ce2&&_0x167e0d&&!_0x41df2e),_0x4e1274['on'](_0x4905('0x2'),()=>(_0x147441[_0x4905('0x1c')][_0x4905('0x9')](_0x1df703)[_0x4905('0xe')]({'name':_0x4e1274[_0x4905('0x16')]}),void _0x10077b())),_0x4e1274['on']('cancel',()=>_0x3413d2()),_0x4e1274['render'](),_0x3413d2(),_0x1accf8;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4909=['diff','ready','locale','focus','_revisionViewer','getRevision','action','revisionSelected','bind','revisionSetName','newRevisionId','revisionHistory','Compare\x20against\x20selected','_sidebarView','_handleRevisionSelected','config','getRevisionsInDiff','compare','requires','getIndex','element','_createRevisionActions','getEarlierVisibleRevision','init','isEnabled','revisionViews','nameRevision','Name\x20this\x20revision','_handleDiffChange','getLaterVisibleRevision','listenTo','highlightRevisions','isVisible','restoreRevisionCallback','restoreRevision','get','repository','fieldView','length','add','defaultRevisionActions','Restore\x20this\x20revision','_handleRevisionSetName','RevisionsSidebar','isSelected','appendChild','_handleEditorDataReady','data','plugins','_revisions','selectRevision','isReady','editor','availableRevisionActions','timePeriodViews','pluginName','change:diff','render','_revisionsRepository','revisionHistory.revisionActions','revisionHistory.viewerSidebarContainer'];(function(_0x1a80a7,_0x49092f){const _0x36bda2=function(_0x286d37){while(--_0x286d37){_0x1a80a7['push'](_0x1a80a7['shift']());}};_0x36bda2(++_0x49092f);}(_0x4909,0xd3));const _0x36bd=function(_0x1a80a7,_0x49092f){_0x1a80a7=_0x1a80a7-0x0;let _0x36bda2=_0x4909[_0x1a80a7];return _0x36bda2;};import{Plugin as _0x31d319}from'ckeditor5/src/core';import _0x5a04e6 from'./revisionssidebarview';import _0x5d6f00 from'../../revisionviewer';export default class w extends _0x31d319{static get[_0x36bd('0x1b')](){return _0x36bd('0xf');}static get[_0x36bd('0x33')](){return[_0x5d6f00];}constructor(_0xe8968a){super(_0xe8968a),this[_0x36bd('0x25')]=_0xe8968a[_0x36bd('0x14')][_0x36bd('0x7')](_0x5d6f00),this[_0x36bd('0x1e')]=this[_0x36bd('0x25')]['repository'],this[_0x36bd('0x2e')]=null;}[_0x36bd('0x38')](){const _0x11533b=this[_0x36bd('0x1e')][_0x36bd('0x15')],_0x412a0d=this[_0x36bd('0x36')](),_0x457aec=this[_0x36bd('0x18')][_0x36bd('0x30')][_0x36bd('0x7')](_0x36bd('0x20'));this[_0x36bd('0x2e')]=new _0x5a04e6(this[_0x36bd('0x18')][_0x36bd('0x23')],_0x11533b,_0x412a0d),this[_0x36bd('0x2e')]['on'](_0x36bd('0x28'),this[_0x36bd('0x2f')][_0x36bd('0x29')](this)),this[_0x36bd('0x2e')]['on'](_0x36bd('0x2a'),this[_0x36bd('0xe')][_0x36bd('0x29')](this)),this['_sidebarView']['bind'](_0x36bd('0x39'))['to'](this[_0x36bd('0x25')]),this[_0x36bd('0x2e')][_0x36bd('0x1a')]['on'](_0x36bd('0xb'),(_0x32c866,_0x5ee62e)=>{_0x5ee62e[_0x36bd('0x3a')]['on']('add',(_0x58a897,_0x2819e7)=>{_0x2819e7[_0x36bd('0x29')](_0x36bd('0x39'),_0x36bd('0x17'))['to'](this[_0x36bd('0x25')]);});}),this[_0x36bd('0x2e')][_0x36bd('0x1d')](),this[_0x36bd('0x2')](this['editor'][_0x36bd('0x13')],_0x36bd('0x22'),this[_0x36bd('0x12')][_0x36bd('0x29')](this)),this['listenTo'](this[_0x36bd('0x25')],_0x36bd('0x1c'),this[_0x36bd('0x0')][_0x36bd('0x29')](this)),_0x457aec[_0x36bd('0x11')](this[_0x36bd('0x2e')]['element']);}['destroy'](){this[_0x36bd('0x2e')][_0x36bd('0x35')]['remove'](),this[_0x36bd('0x2e')]['destroy']();}[_0x36bd('0x12')](){const _0x128126=this['_revisionsRepository'][_0x36bd('0x26')](0x0);if(_0x128126){const _0x41639a=this[_0x36bd('0x1e')][_0x36bd('0x37')](_0x128126['id']);this[_0x36bd('0x25')]['compare'](_0x128126,_0x41639a);}}[_0x36bd('0x2f')](_0x339c5d,_0x350451){const _0x4bae78=this[_0x36bd('0x1e')][_0x36bd('0x26')](_0x350451['id']),_0x3cb38f=this[_0x36bd('0x1e')][_0x36bd('0x37')](_0x4bae78['id']);this[_0x36bd('0x25')][_0x36bd('0x32')](_0x4bae78,_0x3cb38f);}[_0x36bd('0xe')](_0x3c600d,_0x57b145){this['_revisionsRepository'][_0x36bd('0x26')](_0x57b145['id'])['setName'](_0x57b145['name']);}[_0x36bd('0x0')](_0xb36e4b,_0x3b0642,_0x4eb09a){const _0x24151f=this[_0x36bd('0x1e')][_0x36bd('0x31')](_0x4eb09a);_0x24151f['length']>0x2?(this['_sidebarView'][_0x36bd('0x3')](_0x24151f),this[_0x36bd('0x2e')][_0x36bd('0x16')](null)):(this[_0x36bd('0x2e')][_0x36bd('0x3')]([]),this[_0x36bd('0x2e')][_0x36bd('0x16')](_0x24151f[0x0]));}[_0x36bd('0x36')](){const _0x48dd7a=this[_0x36bd('0x18')],_0x343eb1=w[_0x36bd('0x19')],_0x22d3ba=_0x48dd7a['config']['get'](_0x36bd('0x1f'))||w['defaultRevisionActions'];if(_0x22d3ba[_0x36bd('0xa')])return _0x22d3ba['map'](_0x3ff501=>{const _0x238cfb='string'==typeof _0x3ff501?Object['assign']({},_0x343eb1[_0x3ff501]):_0x3ff501;return _0x238cfb[_0x36bd('0x27')]=_0x238cfb[_0x36bd('0x27')][_0x36bd('0x29')](this,_0x48dd7a),_0x238cfb[_0x36bd('0x4')]&&(_0x238cfb[_0x36bd('0x4')]=_0x238cfb[_0x36bd('0x4')][_0x36bd('0x29')](this,_0x48dd7a)),_0x238cfb;});}}w[_0x36bd('0x19')]={'compareAgainstSelected':{'name':_0x36bd('0x2d'),'action':({plugins:_0x20613b},_0x1d6138)=>{const _0x5625ac=_0x20613b['get'](_0x5d6f00),_0x105d9d=_0x5625ac[_0x36bd('0x8')];let _0x481b52=_0x5625ac['diff'][_0x36bd('0x2b')],_0xb867a0=_0x1d6138['id'];_0x105d9d[_0x36bd('0x34')](_0x481b52)>_0x105d9d[_0x36bd('0x34')](_0xb867a0)&&([_0x481b52,_0xb867a0]=[_0xb867a0,_0x481b52]),_0x5625ac['compare'](_0x481b52,_0xb867a0);},'isVisible':({plugins:_0xba16ed},_0x133161)=>{const _0x449fa6=_0xba16ed[_0x36bd('0x7')](_0x5d6f00);return!(_0x449fa6[_0x36bd('0x8')][_0x36bd('0x31')](_0x449fa6[_0x36bd('0x21')])[_0x36bd('0xa')]>0x2)&&!_0x133161[_0x36bd('0x10')];}},'restoreRevision':{'name':_0x36bd('0xd'),'action':(_0x773446,{id:_0x20bbdf})=>{_0x773446[_0x36bd('0x30')][_0x36bd('0x7')](_0x36bd('0x2c'))[_0x36bd('0x5')](_0x20bbdf);},'isVisible':({plugins:_0x3eb6af},_0x4b359b)=>!!_0x3eb6af[_0x36bd('0x7')](_0x5d6f00)['repository'][_0x36bd('0x1')](_0x4b359b['id'])},'nameRevision':{'name':_0x36bd('0x3c'),'action':({plugins:_0xe03ad4},{id:_0x2235a3,revisionNameView:_0x4211da})=>{const _0x401785=_0xe03ad4[_0x36bd('0x7')](_0x5d6f00),_0x1c02b9=_0x401785[_0x36bd('0x8')][_0x36bd('0x37')](_0x2235a3);_0x401785[_0x36bd('0x32')](_0x2235a3,_0x1c02b9),_0x4211da[_0x36bd('0x24')](),_0x4211da[_0x36bd('0x9')]['select']();}}},w[_0x36bd('0xc')]=['compareAgainstSelected',_0x36bd('0x6'),_0x36bd('0x3b')];
23
+ const _0x16a2=['isVisible','getRevisionsInDiff','fieldView','_revisionViewer','isSelected','_handleRevisionSetName','Restore\x20this\x20revision','name','revisionViews','action','_revisionsRepository','isEnabled','string','appendChild','_sidebarView','init','repository','get','_handleRevisionSelected','bind','map','restoreRevisionCallback','nameRevision','getIndex','getEarlierVisibleRevision','isReady','restoreRevision','remove','revisionSelected','ready','getLaterVisibleRevision','timePeriodViews','defaultRevisionActions','pluginName','data','focus','highlightRevisions','Compare\x20against\x20selected','length','compareAgainstSelected','destroy','compare','revisionHistory.revisionActions','editor','element','_handleEditorDataReady','_createRevisionActions','config','plugins','setName','RevisionsSidebar','getRevision','select','_handleDiffChange','revisionHistory.viewerSidebarContainer','listenTo','availableRevisionActions'];(function(_0x4da081,_0x16a292){const _0x1abaa6=function(_0x1a73eb){while(--_0x1a73eb){_0x4da081['push'](_0x4da081['shift']());}};_0x1abaa6(++_0x16a292);}(_0x16a2,0x1aa));const _0x1aba=function(_0x4da081,_0x16a292){_0x4da081=_0x4da081-0x0;let _0x1abaa6=_0x16a2[_0x4da081];return _0x1abaa6;};import{Plugin as _0x59dea9}from'ckeditor5/src/core';import _0x5b2ea5 from'./revisionssidebarview';import _0x4274b5 from'../../revisionviewer';export default class w extends _0x59dea9{static get[_0x1aba('0x6')](){return _0x1aba('0x17');}static get['requires'](){return[_0x4274b5];}constructor(_0x2fb3b0){super(_0x2fb3b0),this[_0x1aba('0x21')]=_0x2fb3b0[_0x1aba('0x15')][_0x1aba('0x2f')](_0x4274b5),this[_0x1aba('0x28')]=this[_0x1aba('0x21')][_0x1aba('0x2e')],this['_sidebarView']=null;}[_0x1aba('0x2d')](){const _0x5cb85d=this['_revisionsRepository']['_revisions'],_0x3c3f91=this[_0x1aba('0x13')](),_0x524f85=this[_0x1aba('0x10')][_0x1aba('0x14')][_0x1aba('0x2f')](_0x1aba('0x1b'));this[_0x1aba('0x2c')]=new _0x5b2ea5(this['editor']['locale'],_0x5cb85d,_0x3c3f91),this[_0x1aba('0x2c')]['on'](_0x1aba('0x1'),this[_0x1aba('0x30')][_0x1aba('0x31')](this)),this[_0x1aba('0x2c')]['on']('revisionSetName',this[_0x1aba('0x23')][_0x1aba('0x31')](this)),this[_0x1aba('0x2c')][_0x1aba('0x31')](_0x1aba('0x29'))['to'](this[_0x1aba('0x21')]),this[_0x1aba('0x2c')][_0x1aba('0x4')]['on']('add',(_0x906994,_0xf1a03e)=>{_0xf1a03e[_0x1aba('0x26')]['on']('add',(_0xbc81ed,_0x4b48e2)=>{_0x4b48e2['bind']('isEnabled',_0x1aba('0x37'))['to'](this['_revisionViewer']);});}),this['_sidebarView']['render'](),this[_0x1aba('0x1c')](this[_0x1aba('0x10')][_0x1aba('0x7')],_0x1aba('0x2'),this[_0x1aba('0x12')][_0x1aba('0x31')](this)),this[_0x1aba('0x1c')](this[_0x1aba('0x21')],'change:diff',this['_handleDiffChange'][_0x1aba('0x31')](this)),_0x524f85[_0x1aba('0x2b')](this[_0x1aba('0x2c')][_0x1aba('0x11')]);}[_0x1aba('0xd')](){this[_0x1aba('0x2c')][_0x1aba('0x11')][_0x1aba('0x0')](),this['_sidebarView']['destroy']();}[_0x1aba('0x12')](){const _0x49f981=this[_0x1aba('0x28')][_0x1aba('0x18')](0x0);if(_0x49f981){const _0x246c76=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x49f981['id']);this[_0x1aba('0x21')][_0x1aba('0xe')](_0x49f981,_0x246c76);}}[_0x1aba('0x30')](_0x19e2eb,_0x557c3c){const _0x127b57=this[_0x1aba('0x28')]['getRevision'](_0x557c3c['id']),_0x202cf7=this[_0x1aba('0x28')]['getEarlierVisibleRevision'](_0x127b57['id']);this[_0x1aba('0x21')][_0x1aba('0xe')](_0x127b57,_0x202cf7);}[_0x1aba('0x23')](_0x4eba6a,_0x3bba07){this[_0x1aba('0x28')][_0x1aba('0x18')](_0x3bba07['id'])[_0x1aba('0x16')](_0x3bba07[_0x1aba('0x25')]);}[_0x1aba('0x1a')](_0x247c66,_0x30c887,_0x394e4b){const _0x3e8812=this[_0x1aba('0x28')]['getRevisionsInDiff'](_0x394e4b);_0x3e8812[_0x1aba('0xb')]>0x2?(this[_0x1aba('0x2c')][_0x1aba('0x9')](_0x3e8812),this['_sidebarView']['selectRevision'](null)):(this[_0x1aba('0x2c')][_0x1aba('0x9')]([]),this[_0x1aba('0x2c')]['selectRevision'](_0x3e8812[0x0]));}['_createRevisionActions'](){const _0x3e57b2=this[_0x1aba('0x10')],_0xdade4=w[_0x1aba('0x1d')],_0x451747=_0x3e57b2[_0x1aba('0x14')][_0x1aba('0x2f')](_0x1aba('0xf'))||w[_0x1aba('0x5')];if(_0x451747[_0x1aba('0xb')])return _0x451747[_0x1aba('0x32')](_0x50554f=>{const _0x40b855=_0x1aba('0x2a')==typeof _0x50554f?Object['assign']({},_0xdade4[_0x50554f]):_0x50554f;return _0x40b855['action']=_0x40b855[_0x1aba('0x27')][_0x1aba('0x31')](this,_0x3e57b2),_0x40b855[_0x1aba('0x1e')]&&(_0x40b855[_0x1aba('0x1e')]=_0x40b855[_0x1aba('0x1e')][_0x1aba('0x31')](this,_0x3e57b2)),_0x40b855;});}}w[_0x1aba('0x1d')]={'compareAgainstSelected':{'name':_0x1aba('0xa'),'action':({plugins:_0x2c68fd},_0x205cd1)=>{const _0x5cc2dd=_0x2c68fd[_0x1aba('0x2f')](_0x4274b5),_0x326574=_0x5cc2dd[_0x1aba('0x2e')];let _0x2b94e2=_0x5cc2dd['diff']['newRevisionId'],_0x15ef41=_0x205cd1['id'];_0x326574[_0x1aba('0x35')](_0x2b94e2)>_0x326574['getIndex'](_0x15ef41)&&([_0x2b94e2,_0x15ef41]=[_0x15ef41,_0x2b94e2]),_0x5cc2dd['compare'](_0x2b94e2,_0x15ef41);},'isVisible':({plugins:_0x47e523},_0x27a7ab)=>{const _0x5f4c4d=_0x47e523['get'](_0x4274b5);return!(_0x5f4c4d[_0x1aba('0x2e')][_0x1aba('0x1f')](_0x5f4c4d['diff'])[_0x1aba('0xb')]>0x2)&&!_0x27a7ab[_0x1aba('0x22')];}},'restoreRevision':{'name':_0x1aba('0x24'),'action':(_0x1e6b2e,{id:_0x4364df})=>{_0x1e6b2e[_0x1aba('0x14')]['get']('revisionHistory')[_0x1aba('0x33')](_0x4364df);},'isVisible':({plugins:_0x26d1d0},_0x31f44b)=>!!_0x26d1d0[_0x1aba('0x2f')](_0x4274b5)[_0x1aba('0x2e')][_0x1aba('0x3')](_0x31f44b['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x4a9569},{id:_0xfd4596,revisionNameView:_0x1ae284})=>{const _0x46c072=_0x4a9569['get'](_0x4274b5),_0x834df9=_0x46c072[_0x1aba('0x2e')][_0x1aba('0x36')](_0xfd4596);_0x46c072[_0x1aba('0xe')](_0xfd4596,_0x834df9),_0x1ae284[_0x1aba('0x8')](),_0x1ae284[_0x1aba('0x20')][_0x1aba('0x19')]();}}},w[_0x1aba('0x5')]=[_0x1aba('0xc'),_0x1aba('0x38'),_0x1aba('0x34')];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4f27=['Revision\x20history','ck-reset_all','setTemplate','span','ck-revision-history-sidebar__header'];(function(_0x5cca4f,_0x4f2796){const _0x3d2f43=function(_0x39f804){while(--_0x39f804){_0x5cca4f['push'](_0x5cca4f['shift']());}};_0x3d2f43(++_0x4f2796);}(_0x4f27,0x1ea));const _0x3d2f=function(_0x5cca4f,_0x4f2796){_0x5cca4f=_0x5cca4f-0x0;let _0x3d2f43=_0x4f27[_0x5cca4f];return _0x3d2f43;};import{View as _0x402dd1,IconView as _0xa6a6a6}from'ckeditor5/src/ui';import{getTranslation as _0x2a5ed1}from'../../utils/common-translations';import{icons as _0x4be7fd}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rr extends _0x402dd1{constructor(_0x40be00){super(_0x40be00);const _0x53f5a0=new _0xa6a6a6();_0x53f5a0['content']=_0x4be7fd['history'],this[_0x3d2f('0x2')]({'tag':'div','attributes':{'class':['ck',_0x3d2f('0x1'),_0x3d2f('0x4')]},'children':[_0x53f5a0,{'tag':_0x3d2f('0x3'),'attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[_0x2a5ed1(_0x40be00,_0x3d2f('0x0'))]}]});}}
23
+ const _0x6f8f=['ck-reset_all','ck-revision-history-sidebar__header','setTemplate','ck-revision-history-sidebar__header__label','span','Revision\x20history'];(function(_0x15b263,_0x6f8f0d){const _0x279877=function(_0x116ab8){while(--_0x116ab8){_0x15b263['push'](_0x15b263['shift']());}};_0x279877(++_0x6f8f0d);}(_0x6f8f,0xbf));const _0x2798=function(_0x15b263,_0x6f8f0d){_0x15b263=_0x15b263-0x0;let _0x279877=_0x6f8f[_0x15b263];return _0x279877;};import{View as _0x4dc4b6,IconView as _0x579f7c}from'ckeditor5/src/ui';import{getTranslation as _0x5ecf34}from'../../utils/common-translations';import{icons as _0x37fd5c}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rr extends _0x4dc4b6{constructor(_0x49a6c){super(_0x49a6c);const _0x763d16=new _0x579f7c();_0x763d16['content']=_0x37fd5c['history'],this[_0x2798('0x3')]({'tag':'div','attributes':{'class':['ck',_0x2798('0x1'),_0x2798('0x2')]},'children':[_0x763d16,{'tag':_0x2798('0x5'),'attributes':{'class':['ck',_0x2798('0x4')]},'children':[_0x5ecf34(_0x49a6c,_0x2798('0x0'))]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1321=['ck-revision-history-sidebar__time-period__revisions','setTemplate','createCollection','span','remove','select','locale','setName','delegate','add','_revisionActions','localizedPeriodName','revisionViews','ck-revision-history-sidebar__time-period__label','ck-revision-history-sidebar__time-period'];(function(_0x354f82,_0x132100){const _0x3bb417=function(_0x385108){while(--_0x385108){_0x354f82['push'](_0x354f82['shift']());}};_0x3bb417(++_0x132100);}(_0x1321,0x71));const _0x3bb4=function(_0x354f82,_0x132100){_0x354f82=_0x354f82-0x0;let _0x3bb417=_0x1321[_0x354f82];return _0x3bb417;};import{View as _0x4519f1}from'ckeditor5/src/ui';import _0x32e182 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x20232c}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x4519f1{constructor(_0x548bd1,_0x488c5b,_0x27e6e5){super(_0x548bd1);const _0x2f3037=_0x20232c(_0x488c5b,this[_0x3bb4('0xd')]['uiLanguage'])[_0x3bb4('0x3')];this['startDate']=_0x488c5b,this[_0x3bb4('0x4')]=this[_0x3bb4('0x9')](),this[_0x3bb4('0x2')]=_0x27e6e5,this['revisionViews'][_0x3bb4('0x0')](_0x3bb4('0xc'))['to'](this),this[_0x3bb4('0x4')]['delegate'](_0x3bb4('0xe'))['to'](this),this[_0x3bb4('0x8')]({'tag':'div','attributes':{'class':['ck',_0x3bb4('0x6')]},'children':[{'tag':_0x3bb4('0xa'),'attributes':{'class':['ck',_0x3bb4('0x5')]},'children':[{'text':_0x2f3037}]},{'tag':'div','attributes':{'class':['ck',_0x3bb4('0x7')]},'children':this[_0x3bb4('0x4')]}]});}['addRevision'](_0x527716){const _0xdf17cc=new _0x32e182(this[_0x3bb4('0xd')],_0x527716,this['_revisionActions']);this[_0x3bb4('0x4')][_0x3bb4('0x1')](_0xdf17cc);}['removeRevision'](_0xc0f89f){const _0x931f1e=this[_0x3bb4('0x4')]['find'](_0x55a4ae=>_0x55a4ae['id']===_0xc0f89f['id']);this['revisionViews'][_0x3bb4('0xb')](_0x931f1e);}}
23
+ const _0x261f=['removeRevision','div','createCollection','span','addRevision','setName','ck-revision-history-sidebar__time-period__label','add','delegate','ck-revision-history-sidebar__time-period__revisions','revisionViews','_revisionActions','locale','remove','startDate'];(function(_0x554af2,_0x261f45){const _0x5d3e79=function(_0x419e0d){while(--_0x419e0d){_0x554af2['push'](_0x554af2['shift']());}};_0x5d3e79(++_0x261f45);}(_0x261f,0x1ca));const _0x5d3e=function(_0x554af2,_0x261f45){_0x554af2=_0x554af2-0x0;let _0x5d3e79=_0x261f[_0x554af2];return _0x5d3e79;};import{View as _0x215a90}from'ckeditor5/src/ui';import _0x47293d from'../revision/revisionview';import{getDateTimePeriodInfo as _0x14edc6}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x215a90{constructor(_0x37f048,_0x4c1424,_0x279375){super(_0x37f048);const _0x1c31d4=_0x14edc6(_0x4c1424,this[_0x5d3e('0x4')]['uiLanguage'])['localizedPeriodName'];this[_0x5d3e('0x6')]=_0x4c1424,this[_0x5d3e('0x2')]=this[_0x5d3e('0x9')](),this[_0x5d3e('0x3')]=_0x279375,this[_0x5d3e('0x2')][_0x5d3e('0x0')]('select')['to'](this),this[_0x5d3e('0x2')][_0x5d3e('0x0')](_0x5d3e('0xc'))['to'](this),this['setTemplate']({'tag':_0x5d3e('0x8'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':_0x5d3e('0xa'),'attributes':{'class':['ck',_0x5d3e('0xd')]},'children':[{'text':_0x1c31d4}]},{'tag':_0x5d3e('0x8'),'attributes':{'class':['ck',_0x5d3e('0x1')]},'children':this[_0x5d3e('0x2')]}]});}[_0x5d3e('0xb')](_0x2d2c50){const _0x4be6f9=new _0x47293d(this[_0x5d3e('0x4')],_0x2d2c50,this['_revisionActions']);this[_0x5d3e('0x2')][_0x5d3e('0xe')](_0x4be6f9);}[_0x5d3e('0x7')](_0x4c5082){const _0x3d1c36=this[_0x5d3e('0x2')]['find'](_0x44419b=>_0x44419b['id']===_0x4c5082['id']);this[_0x5d3e('0x2')][_0x5d3e('0x5')](_0x3d1c36);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4fe3=['revisionSetName','locale','getTime','removeRevision','_addRevision','startDate','map','revisionSelected','revisionViews','ck-disabled','setTemplate','select','timePeriodViews','delegate','get','flat','_removeRevision','ck-rounded-corners','createdAt','bindTemplate','ck-revision-history-sidebar__timeline','unhighlight','uiLanguage','ck-revision-history-sidebar','_revisionActions','set','highlightRevisions','_revisions','isEnabled','add','_getTimePeriodViewByStartDate','addRevision','find','remove','selectRevision','fire','deselect','highlight','createCollection','setName','ck-reset'];(function(_0x3cae1b,_0x4fe3b8){const _0x58a3af=function(_0x2290e6){while(--_0x2290e6){_0x3cae1b['push'](_0x3cae1b['shift']());}};_0x58a3af(++_0x4fe3b8);}(_0x4fe3,0x163));const _0x58a3=function(_0x3cae1b,_0x4fe3b8){_0x3cae1b=_0x3cae1b-0x0;let _0x58a3af=_0x4fe3[_0x3cae1b];return _0x58a3af;};import{View as _0x52a243}from'ckeditor5/src/ui';import _0x3535a8 from'./revisionssidebartimeperiodview';import _0x4bc8e7 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x3057bc}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x52a243{constructor(_0x2427cb,_0x4c945f,_0x42fefb){super(_0x2427cb);const _0x2cfb41=this[_0x58a3('0x21')];this[_0x58a3('0x1a')]=this[_0x58a3('0xb')](),this['timePeriodViews'][_0x58a3('0x1b')](_0x58a3('0x19'))['to'](this),this['timePeriodViews'][_0x58a3('0x1b')](_0x58a3('0xc'))['to'](this),this['_revisions']=_0x4c945f,this[_0x58a3('0x26')]=_0x42fefb,this['on'](_0x58a3('0x19'),(_0x5cc6ab,_0x377abf)=>{this[_0x58a3('0x8')](_0x58a3('0x15'),_0x377abf);}),this['on'](_0x58a3('0xc'),(_0x367832,_0x4bb85e)=>{this[_0x58a3('0x8')](_0x58a3('0xe'),_0x4bb85e);}),this[_0x58a3('0x27')](_0x58a3('0x1'),!0x1),this[_0x58a3('0x18')]({'tag':'div','attributes':{'class':['ck',_0x58a3('0xd'),_0x58a3('0x1f'),_0x58a3('0x25')]},'children':[new _0x4bc8e7(_0x2427cb),{'tag':'div','attributes':{'class':['ck',_0x58a3('0x22'),_0x2cfb41['if'](_0x58a3('0x1'),_0x58a3('0x17'),_0x264830=>!_0x264830)]},'children':this[_0x58a3('0x1a')]}]});}['render'](){super['render']();for(const _0x92fda6 of this[_0x58a3('0x0')])this[_0x58a3('0x12')](_0x92fda6);this[_0x58a3('0x0')]['on'](_0x58a3('0x2'),(_0x4596e1,_0x482729)=>{this[_0x58a3('0x12')](_0x482729);}),this[_0x58a3('0x0')]['on'](_0x58a3('0x6'),(_0x1ba89d,_0x53069c)=>{this[_0x58a3('0x1e')](_0x53069c);});}get[_0x58a3('0x16')](){return this['timePeriodViews'][_0x58a3('0x14')](_0x49054b=>_0x49054b[_0x58a3('0x16')]['map'](_0x66734d=>_0x66734d))[_0x58a3('0x1d')]();}[_0x58a3('0x7')](_0xf11544){for(const _0x176b60 of this[_0x58a3('0x16')])_0xf11544&&_0xf11544['id']===_0x176b60['id']?_0x176b60['select']():_0x176b60[_0x58a3('0x9')]();}[_0x58a3('0x28')](_0x2f87f9){for(const _0x3f5f93 of this[_0x58a3('0x16')])_0x2f87f9['some'](({id:_0x536ade})=>_0x536ade===_0x3f5f93['id'])?_0x3f5f93[_0x58a3('0xa')]():_0x3f5f93[_0x58a3('0x23')]();}['_addRevision'](_0x160055){const _0xe88428=_0x3057bc(_0x160055[_0x58a3('0x20')],this['locale'][_0x58a3('0x24')])[_0x58a3('0x13')];let _0x8ac70d=this[_0x58a3('0x1a')][_0x58a3('0x1c')](0x0);_0x8ac70d&&_0x8ac70d['startDate'][_0x58a3('0x10')]()===_0xe88428[_0x58a3('0x10')]()||(_0x8ac70d=new _0x3535a8(this[_0x58a3('0xf')],_0xe88428,this[_0x58a3('0x26')]),this[_0x58a3('0x1a')][_0x58a3('0x2')](_0x8ac70d)),_0x8ac70d[_0x58a3('0x4')](_0x160055);}['_removeRevision'](_0x469be5){const _0x24cad5=_0x3057bc(_0x469be5['createdAt'],this[_0x58a3('0xf')][_0x58a3('0x24')])[_0x58a3('0x13')];this[_0x58a3('0x3')](_0x24cad5)[_0x58a3('0x11')](_0x469be5);}[_0x58a3('0x3')](_0x2da6d7){return this[_0x58a3('0x1a')][_0x58a3('0x5')](_0x517368=>_0x517368[_0x58a3('0x13')][_0x58a3('0x10')]()===_0x2da6d7['getTime']());}}
23
+ const _0x1ba1=['_getTimePeriodViewByStartDate','render','locale','startDate','uiLanguage','ck-revision-history-sidebar__timeline','unhighlight','getTime','removeRevision','some','_removeRevision','revisionViews','_addRevision','ck-reset','setName','revisionSetName','highlightRevisions','div','isEnabled','addRevision','select','flat','bindTemplate','createdAt','_revisionActions','ck-disabled','get','deselect','_revisions','timePeriodViews','map','highlight','fire','delegate','revisionSelected','add','createCollection'];(function(_0x1f142e,_0x1ba172){const _0x5e6508=function(_0x3082ac){while(--_0x3082ac){_0x1f142e['push'](_0x1f142e['shift']());}};_0x5e6508(++_0x1ba172);}(_0x1ba1,0xe6));const _0x5e65=function(_0x1f142e,_0x1ba172){_0x1f142e=_0x1f142e-0x0;let _0x5e6508=_0x1ba1[_0x1f142e];return _0x5e6508;};import{View as _0x348bdb}from'ckeditor5/src/ui';import _0x16c385 from'./revisionssidebartimeperiodview';import _0x2895d5 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x2b8576}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x348bdb{constructor(_0x263723,_0x2eac11,_0x33008f){super(_0x263723);const _0xf3ca7=this[_0x5e65('0xe')];this[_0x5e65('0x15')]=this[_0x5e65('0x1c')](),this['timePeriodViews'][_0x5e65('0x19')]('select')['to'](this),this[_0x5e65('0x15')][_0x5e65('0x19')](_0x5e65('0x6'))['to'](this),this['_revisions']=_0x2eac11,this[_0x5e65('0x10')]=_0x33008f,this['on']('select',(_0x279118,_0x1bdf26)=>{this[_0x5e65('0x18')](_0x5e65('0x1a'),_0x1bdf26);}),this['on']('setName',(_0x16aa74,_0x4f68bc)=>{this[_0x5e65('0x18')](_0x5e65('0x7'),_0x4f68bc);}),this['set'](_0x5e65('0xa'),!0x1),this['setTemplate']({'tag':_0x5e65('0x9'),'attributes':{'class':['ck',_0x5e65('0x5'),'ck-rounded-corners','ck-revision-history-sidebar']},'children':[new _0x2895d5(_0x263723),{'tag':'div','attributes':{'class':['ck',_0x5e65('0x22'),_0xf3ca7['if'](_0x5e65('0xa'),_0x5e65('0x11'),_0x27065e=>!_0x27065e)]},'children':this[_0x5e65('0x15')]}]});}[_0x5e65('0x1e')](){super[_0x5e65('0x1e')]();for(const _0x41a844 of this[_0x5e65('0x14')])this[_0x5e65('0x4')](_0x41a844);this[_0x5e65('0x14')]['on'](_0x5e65('0x1b'),(_0x58d07f,_0x6e24bf)=>{this['_addRevision'](_0x6e24bf);}),this[_0x5e65('0x14')]['on']('remove',(_0x500ade,_0x160eae)=>{this[_0x5e65('0x2')](_0x160eae);});}get[_0x5e65('0x3')](){return this[_0x5e65('0x15')][_0x5e65('0x16')](_0x5f3bfc=>_0x5f3bfc[_0x5e65('0x3')]['map'](_0x54903b=>_0x54903b))[_0x5e65('0xd')]();}['selectRevision'](_0x293691){for(const _0x5543c3 of this[_0x5e65('0x3')])_0x293691&&_0x293691['id']===_0x5543c3['id']?_0x5543c3[_0x5e65('0xc')]():_0x5543c3[_0x5e65('0x13')]();}[_0x5e65('0x8')](_0x5f4a5f){for(const _0x41463e of this['revisionViews'])_0x5f4a5f[_0x5e65('0x1')](({id:_0x1e5c78})=>_0x1e5c78===_0x41463e['id'])?_0x41463e[_0x5e65('0x17')]():_0x41463e[_0x5e65('0x23')]();}[_0x5e65('0x4')](_0x4d79d4){const _0x5f0f88=_0x2b8576(_0x4d79d4[_0x5e65('0xf')],this[_0x5e65('0x1f')][_0x5e65('0x21')])[_0x5e65('0x20')];let _0x21cce3=this[_0x5e65('0x15')][_0x5e65('0x12')](0x0);_0x21cce3&&_0x21cce3[_0x5e65('0x20')][_0x5e65('0x24')]()===_0x5f0f88[_0x5e65('0x24')]()||(_0x21cce3=new _0x16c385(this['locale'],_0x5f0f88,this[_0x5e65('0x10')]),this['timePeriodViews'][_0x5e65('0x1b')](_0x21cce3)),_0x21cce3[_0x5e65('0xb')](_0x4d79d4);}[_0x5e65('0x2')](_0x2283e6){const _0x4ba8d3=_0x2b8576(_0x2283e6[_0x5e65('0xf')],this[_0x5e65('0x1f')]['uiLanguage'])[_0x5e65('0x20')];this[_0x5e65('0x1d')](_0x4ba8d3)[_0x5e65('0x0')](_0x2283e6);}[_0x5e65('0x1d')](_0x36c913){return this[_0x5e65('0x15')]['find'](_0x6dd016=>_0x6dd016['startDate'][_0x5e65('0x24')]()===_0x36c913[_0x5e65('0x24')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x99d7=['year','day','local','minus','fromJSDate','toJSDate','toRelativeCalendar','week','hasSame','startOf'];(function(_0x182d3a,_0x99d79c){const _0x5c54ee=function(_0x4a2e0d){while(--_0x4a2e0d){_0x182d3a['push'](_0x182d3a['shift']());}};_0x5c54ee(++_0x99d79c);}(_0x99d7,0xc9));const _0x5c54=function(_0x182d3a,_0x99d79c){_0x182d3a=_0x182d3a-0x0;let _0x5c54ee=_0x99d7[_0x182d3a];return _0x5c54ee;};import{DateTime as _0x17cb42}from'luxon';export function getDateTimePeriodInfo(_0x2a4a19,_0x28c2fa){const _0x333235=_0x17cb42[_0x5c54('0x3')](_0x2a4a19)['setLocale'](_0x28c2fa),_0x29c6af=_0x17cb42[_0x5c54('0x1')](),_0x23103b=_0x29c6af[_0x5c54('0x2')]({'days':0x1})[_0x5c54('0x8')](_0x5c54('0x0'));let _0x5e2c22,_0x59f8be;return _0x333235['hasSame'](_0x29c6af,_0x5c54('0x0'))?(_0x5e2c22=_0x333235[_0x5c54('0x8')](_0x5c54('0x0'))[_0x5c54('0x4')](),_0x59f8be=_0x333235['toRelativeCalendar']()):_0x333235[_0x5c54('0x7')](_0x23103b,_0x5c54('0x0'))?(_0x5e2c22=_0x23103b[_0x5c54('0x4')](),_0x59f8be=_0x333235[_0x5c54('0x5')]()):_0x333235['hasSame'](_0x29c6af,_0x5c54('0x6'))?(_0x5e2c22=_0x333235[_0x5c54('0x8')](_0x5c54('0x6'))['toJSDate'](),_0x59f8be=_0x333235['weekdayLong']||''):_0x333235[_0x5c54('0x7')](_0x29c6af,_0x5c54('0x9'))?(_0x5e2c22=_0x333235[_0x5c54('0x8')]('month')['toJSDate'](),_0x59f8be=_0x333235['monthLong']||''):(_0x5e2c22=_0x333235[_0x5c54('0x8')](_0x5c54('0x9'))['toJSDate'](),_0x59f8be=String(_0x333235[_0x5c54('0x9')])),{'startDate':_0x5e2c22,'localizedPeriodName':_0x59f8be};}
23
+ const _0x4948=['fromJSDate','weekdayLong','local','month','hasSame','setLocale','day','week','monthLong','toRelativeCalendar','startOf','year','toJSDate'];(function(_0x5f040c,_0x4948a9){const _0x4d0a21=function(_0x2f05fd){while(--_0x2f05fd){_0x5f040c['push'](_0x5f040c['shift']());}};_0x4d0a21(++_0x4948a9);}(_0x4948,0x1f3));const _0x4d0a=function(_0x5f040c,_0x4948a9){_0x5f040c=_0x5f040c-0x0;let _0x4d0a21=_0x4948[_0x5f040c];return _0x4d0a21;};import{DateTime as _0x2c2bd6}from'luxon';export function getDateTimePeriodInfo(_0x1012cf,_0x4a594d){const _0x5a84a1=_0x2c2bd6[_0x4d0a('0x8')](_0x1012cf)[_0x4d0a('0x0')](_0x4a594d),_0x13d6de=_0x2c2bd6[_0x4d0a('0xa')](),_0x2aa91c=_0x13d6de['minus']({'days':0x1})['startOf'](_0x4d0a('0x1'));let _0x56f43e,_0x37d6ec;return _0x5a84a1['hasSame'](_0x13d6de,_0x4d0a('0x1'))?(_0x56f43e=_0x5a84a1[_0x4d0a('0x5')](_0x4d0a('0x1'))[_0x4d0a('0x7')](),_0x37d6ec=_0x5a84a1['toRelativeCalendar']()):_0x5a84a1['hasSame'](_0x2aa91c,'day')?(_0x56f43e=_0x2aa91c[_0x4d0a('0x7')](),_0x37d6ec=_0x5a84a1[_0x4d0a('0x4')]()):_0x5a84a1[_0x4d0a('0xc')](_0x13d6de,_0x4d0a('0x2'))?(_0x56f43e=_0x5a84a1['startOf'](_0x4d0a('0x2'))[_0x4d0a('0x7')](),_0x37d6ec=_0x5a84a1[_0x4d0a('0x9')]||''):_0x5a84a1[_0x4d0a('0xc')](_0x13d6de,_0x4d0a('0x6'))?(_0x56f43e=_0x5a84a1[_0x4d0a('0x5')](_0x4d0a('0xb'))[_0x4d0a('0x7')](),_0x37d6ec=_0x5a84a1[_0x4d0a('0x3')]||''):(_0x56f43e=_0x5a84a1['startOf'](_0x4d0a('0x6'))[_0x4d0a('0x7')](),_0x37d6ec=String(_0x5a84a1['year'])),{'startDate':_0x56f43e,'localizedPeriodName':_0x37d6ec};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1865=['type','ck-annotation','_model','Suggested\x20by','data','name','focus','ck-revision-change','element','isSuggestion','span','author','ck-revision-change__','setTemplate','set','changeId'];(function(_0x299b27,_0x186568){const _0x56e845=function(_0x324b12){while(--_0x324b12){_0x299b27['push'](_0x299b27['shift']());}};_0x56e845(++_0x186568);}(_0x1865,0x112));const _0x56e8=function(_0x299b27,_0x186568){_0x299b27=_0x299b27-0x0;let _0x56e845=_0x1865[_0x299b27];return _0x56e845;};import{View as _0x347533}from'ckeditor5/src/ui';import{getTranslation as _0x49010e}from'../../utils/common-translations';export default class Z extends _0x347533{constructor(_0x206e31,_0x45cc0b){super(_0x206e31),this[_0x56e8('0x0')]=_0x45cc0b,this[_0x56e8('0xd')]=_0x45cc0b['id'];const _0x238736=this['bindTemplate'],_0x4dc445=_0x49010e(_0x206e31,_0x45cc0b[_0x56e8('0x2')][_0x56e8('0x7')]?_0x56e8('0x1'):'add'==_0x45cc0b[_0x56e8('0xe')]?'Added\x20by':'Removed\x20by');this[_0x56e8('0xc')](_0x56e8('0xe'),_0x45cc0b[_0x56e8('0xe')]),this[_0x56e8('0xb')]({'tag':'div','attributes':{'class':[_0x56e8('0xf'),_0x56e8('0x5'),_0x238736['to']('type',_0x2613af=>_0x56e8('0xa')+_0x2613af)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':_0x56e8('0x8'),'attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x4dc445}]},{'text':'\x20'+_0x45cc0b[_0x56e8('0x9')][_0x56e8('0x3')]}]}]});}[_0x56e8('0x4')](){this[_0x56e8('0x6')][_0x56e8('0x4')]();}}
23
+ const _0x29da=['data','Removed\x20by','Suggested\x20by','name','Added\x20by','set','isSuggestion','ck-revision-change','add','bindTemplate','_model','span','focus','type','setTemplate','changeId','ck-revision-change__label'];(function(_0x5d65f4,_0x29da43){const _0xef7b77=function(_0x225980){while(--_0x225980){_0x5d65f4['push'](_0x5d65f4['shift']());}};_0xef7b77(++_0x29da43);}(_0x29da,0x1ec));const _0xef7b=function(_0x5d65f4,_0x29da43){_0x5d65f4=_0x5d65f4-0x0;let _0xef7b77=_0x29da[_0x5d65f4];return _0xef7b77;};import{View as _0xd36418}from'ckeditor5/src/ui';import{getTranslation as _0xdfc03}from'../../utils/common-translations';export default class Z extends _0xd36418{constructor(_0x439104,_0xd9034d){super(_0x439104),this[_0xef7b('0xb')]=_0xd9034d,this[_0xef7b('0x10')]=_0xd9034d['id'];const _0x4011eb=this[_0xef7b('0xa')],_0x1a4127=_0xdfc03(_0x439104,_0xd9034d[_0xef7b('0x1')][_0xef7b('0x7')]?_0xef7b('0x3'):_0xef7b('0x9')==_0xd9034d[_0xef7b('0xe')]?_0xef7b('0x5'):_0xef7b('0x2'));this[_0xef7b('0x6')](_0xef7b('0xe'),_0xd9034d[_0xef7b('0xe')]),this[_0xef7b('0xf')]({'tag':'div','attributes':{'class':['ck-annotation',_0xef7b('0x8'),_0x4011eb['to'](_0xef7b('0xe'),_0x1e5fbd=>'ck-revision-change__'+_0x1e5fbd)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':_0xef7b('0xc'),'attributes':{'class':[_0xef7b('0x0')]},'children':[{'text':_0x1a4127}]},{'text':'\x20'+_0xd9034d['author'][_0xef7b('0x4')]}]}]});}[_0xef7b('0xd')](){this['element']['focus']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3398=['setTemplate','set','Show\x20previous\x20change','currentChangeNumber','Total','isReady','span','_statusText','EDIT_X_OF_Y_REVISIONS','fire','X_OF_Y_CHANGES','isNavigationMode','numberOfChanges','bind','isForwardNavigationEnabled','Loading...','div','isBackwardNavigationEnabled','No\x20changes','isEnabled','bindTemplate','forward','execute','ck-revision-history-ui','Show\x20next\x20change'];(function(_0x2bf882,_0x339820){const _0x4084b4=function(_0x30cb02){while(--_0x30cb02){_0x2bf882['push'](_0x2bf882['shift']());}};_0x4084b4(++_0x339820);}(_0x3398,0x11c));const _0x4084=function(_0x2bf882,_0x339820){_0x2bf882=_0x2bf882-0x0;let _0x4084b4=_0x3398[_0x2bf882];return _0x4084b4;};import{View as _0x16f045,ButtonView as _0x27104d,ToolbarSeparatorView as _0x2b8287}from'ckeditor5/src/ui';import{getTranslation as _0x47f9e9}from'../../utils/common-translations';import _0xe3f8f2 from'../../../theme/icons/arrow-up.svg';import _0x49cadb from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x16f045{constructor(_0x32e238){super(_0x32e238);const _0x5766f5=this[_0x4084('0xb')],_0x95524b=new _0x27104d(_0x32e238),_0x5cbd3c=new _0x27104d(_0x32e238);this[_0x4084('0x11')](_0x4084('0x2'),!0x1),this['set'](_0x4084('0x15'),!0x1),this[_0x4084('0x11')](_0x4084('0x13'),0x0),this[_0x4084('0x11')](_0x4084('0x3'),0x0),this[_0x4084('0x11')](_0x4084('0x5'),!0x1),this[_0x4084('0x11')](_0x4084('0x8'),!0x1),this[_0x4084('0x4')]('_isStatusLabelVisible')['to'](this,_0x4084('0x15'),this,_0x4084('0x3'),(_0x2dfe55,_0x4f10a0)=>_0x2dfe55&&_0x4f10a0>0x0),this['bind'](_0x4084('0x17'))['to'](this,_0x4084('0x15'),this,_0x4084('0x13'),this,_0x4084('0x3'),this,_0x4084('0x2'),(_0x261de8,_0x3e5ecb,_0x2e345d,_0xd18027)=>{if(!_0x261de8)return _0x47f9e9(_0x32e238,_0x4084('0x6'));if(!_0x2e345d)return _0x47f9e9(_0x32e238,_0x4084('0x9'));const _0x3fd010=_0x47f9e9(_0x32e238,'NUMBER_OF_CHANGES',_0x2e345d);return _0xd18027?_0x47f9e9(_0x32e238,_0x4084('0x1'),[_0x3e5ecb+0x1,_0x2e345d]):_0x3fd010;}),_0x95524b[_0x4084('0x11')]({'label':_0x47f9e9(_0x32e238,_0x4084('0x12')),'tooltip':!0x0,'icon':_0xe3f8f2}),_0x5cbd3c['set']({'label':_0x47f9e9(_0x32e238,_0x4084('0xf')),'tooltip':!0x0,'icon':_0x49cadb}),_0x95524b['bind'](_0x4084('0xa'))['to'](this,_0x4084('0x8')),_0x5cbd3c['bind'](_0x4084('0xa'))['to'](this,_0x4084('0x5')),_0x95524b['on']('execute',()=>this[_0x4084('0x0')](_0x4084('0xd'),'backward')),_0x5cbd3c['on'](_0x4084('0xd'),()=>this[_0x4084('0x0')](_0x4084('0xd'),_0x4084('0xc'))),this[_0x4084('0x10')]({'tag':'div','attributes':{'class':['ck',_0x4084('0xe'),'ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':_0x4084('0x16'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x5766f5['if']('_isStatusLabelVisible','ck-hidden',_0x1a9322=>!_0x1a9322)]},'children':[{'text':_0x5766f5['to'](_0x4084('0x2'),_0x10457a=>_0x10457a?_0x47f9e9(_0x32e238,_0x4084('0x18'))+':\x20':_0x47f9e9(_0x32e238,_0x4084('0x14'))+':\x20')}]},{'text':_0x5766f5['to'](_0x4084('0x17'))}]},new _0x2b8287(),{'tag':_0x4084('0x7'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x95524b,_0x5cbd3c]}]});}}
23
+ const _0x4bd1=['Show\x20next\x20change','isNavigationMode','currentChangeNumber','span','fire','_statusText','_isStatusLabelVisible','isReady','set','bindTemplate','div','isForwardNavigationEnabled','NUMBER_OF_CHANGES','execute','numberOfChanges','No\x20changes','X_OF_Y_CHANGES','isBackwardNavigationEnabled','backward','ck-hidden','EDIT_X_OF_Y_REVISIONS','ck-revision-history-ui__changes-navigation__label','ck-revision-history-ui','bind','isEnabled','ck-revision-history-ui__changes-navigation__wrapper','ck-revision-history-ui__changes-navigation__navigation'];(function(_0x4e5f71,_0x4bd1bd){const _0x5e9d27=function(_0x1b7c0c){while(--_0x1b7c0c){_0x4e5f71['push'](_0x4e5f71['shift']());}};_0x5e9d27(++_0x4bd1bd);}(_0x4bd1,0x1ad));const _0x5e9d=function(_0x4e5f71,_0x4bd1bd){_0x4e5f71=_0x4e5f71-0x0;let _0x5e9d27=_0x4bd1[_0x4e5f71];return _0x5e9d27;};import{View as _0x4df04f,ButtonView as _0x36615e,ToolbarSeparatorView as _0x3a82c7}from'ckeditor5/src/ui';import{getTranslation as _0x5dedc4}from'../../utils/common-translations';import _0x157860 from'../../../theme/icons/arrow-up.svg';import _0x26c59a from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x4df04f{constructor(_0x2c9b8a){super(_0x2c9b8a);const _0x3dab0e=this[_0x5e9d('0xc')],_0x63054b=new _0x36615e(_0x2c9b8a),_0x48252c=new _0x36615e(_0x2c9b8a);this[_0x5e9d('0xb')](_0x5e9d('0x4'),!0x1),this[_0x5e9d('0xb')]('isReady',!0x1),this[_0x5e9d('0xb')](_0x5e9d('0x5'),0x0),this['set'](_0x5e9d('0x11'),0x0),this[_0x5e9d('0xb')](_0x5e9d('0xe'),!0x1),this[_0x5e9d('0xb')](_0x5e9d('0x14'),!0x1),this[_0x5e9d('0x1a')](_0x5e9d('0x9'))['to'](this,_0x5e9d('0xa'),this,_0x5e9d('0x11'),(_0x45b59f,_0x93bb8)=>_0x45b59f&&_0x93bb8>0x0),this[_0x5e9d('0x1a')](_0x5e9d('0x8'))['to'](this,_0x5e9d('0xa'),this,_0x5e9d('0x5'),this,'numberOfChanges',this,_0x5e9d('0x4'),(_0x21ce4a,_0x521101,_0x7123b5,_0x4aee65)=>{if(!_0x21ce4a)return _0x5dedc4(_0x2c9b8a,'Loading...');if(!_0x7123b5)return _0x5dedc4(_0x2c9b8a,_0x5e9d('0x12'));const _0x28075c=_0x5dedc4(_0x2c9b8a,_0x5e9d('0xf'),_0x7123b5);return _0x4aee65?_0x5dedc4(_0x2c9b8a,_0x5e9d('0x13'),[_0x521101+0x1,_0x7123b5]):_0x28075c;}),_0x63054b['set']({'label':_0x5dedc4(_0x2c9b8a,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x157860}),_0x48252c[_0x5e9d('0xb')]({'label':_0x5dedc4(_0x2c9b8a,_0x5e9d('0x3')),'tooltip':!0x0,'icon':_0x26c59a}),_0x63054b['bind'](_0x5e9d('0x0'))['to'](this,_0x5e9d('0x14')),_0x48252c[_0x5e9d('0x1a')](_0x5e9d('0x0'))['to'](this,_0x5e9d('0xe')),_0x63054b['on']('execute',()=>this[_0x5e9d('0x7')](_0x5e9d('0x10'),_0x5e9d('0x15'))),_0x48252c['on']('execute',()=>this[_0x5e9d('0x7')](_0x5e9d('0x10'),'forward')),this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x5e9d('0x19'),'ck-revision-history-ui__changes-navigation']},'children':[{'tag':_0x5e9d('0x6'),'attributes':{'class':[_0x5e9d('0x1')]},'children':[{'tag':_0x5e9d('0x6'),'attributes':{'class':[_0x5e9d('0x18'),_0x3dab0e['if']('_isStatusLabelVisible',_0x5e9d('0x16'),_0x23044a=>!_0x23044a)]},'children':[{'text':_0x3dab0e['to'](_0x5e9d('0x4'),_0x13fceb=>_0x13fceb?_0x5dedc4(_0x2c9b8a,_0x5e9d('0x17'))+':\x20':_0x5dedc4(_0x2c9b8a,'Total')+':\x20')}]},{'text':_0x3dab0e['to'](_0x5e9d('0x8'))}]},new _0x3a82c7(),{'tag':_0x5e9d('0xd'),'attributes':{'class':[_0x5e9d('0x2')]},'children':[_0x63054b,_0x48252c]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1fba=['document','removeClass','roots','change','hide','editor','ck-editor__editable__loading-overlay','editing','view','addClass'];(function(_0x3c24d6,_0x1fbacb){const _0x3647e2=function(_0x4f74d0){while(--_0x4f74d0){_0x3c24d6['push'](_0x3c24d6['shift']());}};_0x3647e2(++_0x1fbacb);}(_0x1fba,0x160));const _0x3647=function(_0x3c24d6,_0x1fbacb){_0x3c24d6=_0x3c24d6-0x0;let _0x3647e2=_0x1fba[_0x3c24d6];return _0x3647e2;};import{Plugin as _0x13b174}from'ckeditor5/src/core';const oe=_0x3647('0x4');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x13b174{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}['show'](){const _0x52aa40=this[_0x3647('0x3')][_0x3647('0x5')][_0x3647('0x6')];_0x52aa40[_0x3647('0x1')](_0x3b62ed=>{for(const _0x5afd4a of _0x52aa40[_0x3647('0x8')]['roots'])_0x3b62ed[_0x3647('0x7')](oe,_0x5afd4a);});}[_0x3647('0x2')](){const _0x5b1e00=this['editor'][_0x3647('0x5')][_0x3647('0x6')];_0x5b1e00['change'](_0x3e7110=>{for(const _0x20d773 of _0x5b1e00[_0x3647('0x8')][_0x3647('0x0')])_0x3e7110[_0x3647('0x9')](oe,_0x20d773);});}}
23
+ const _0x21a1=['view','document','ck-editor__editable__loading-overlay','addClass','roots','removeClass','RevisionViewerLoadingOverlay','change','show','hide','editing','editor'];(function(_0x380ccf,_0x21a142){const _0x223630=function(_0x128855){while(--_0x128855){_0x380ccf['push'](_0x380ccf['shift']());}};_0x223630(++_0x21a142);}(_0x21a1,0x14f));const _0x2236=function(_0x380ccf,_0x21a142){_0x380ccf=_0x380ccf-0x0;let _0x223630=_0x21a1[_0x380ccf];return _0x223630;};import{Plugin as _0x2432ea}from'ckeditor5/src/core';const oe=_0x2236('0x3');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x2432ea{static get['pluginName'](){return _0x2236('0x7');}[_0x2236('0x9')](){const _0x4121cd=this[_0x2236('0x0')][_0x2236('0xb')][_0x2236('0x1')];_0x4121cd[_0x2236('0x8')](_0x18961a=>{for(const _0x3d0c69 of _0x4121cd[_0x2236('0x2')]['roots'])_0x18961a[_0x2236('0x4')](oe,_0x3d0c69);});}[_0x2236('0xa')](){const _0x5ae603=this[_0x2236('0x0')][_0x2236('0xb')][_0x2236('0x1')];_0x5ae603[_0x2236('0x8')](_0x8cc353=>{for(const _0xd58057 of _0x5ae603[_0x2236('0x2')][_0x2236('0x5')])_0x8cc353[_0x2236('0x6')](oe,_0xd58057);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1f75=['Restore\x20this\x20revision','hide','currentChangeNumber','init','listenTo','isForwardNavigationEnabled','editor','get','showPreviousChange','isNavigationMode','closeRevisionViewerCallback','requires','ck-revision-history-ui__back-to-editing','isBackwardNavigationEnabled','plugins','execute','isReady','add','isEnabled','bind','pluginName','show','componentFactory','commands','set','change:isReady','restoreRevision','revisionHistory','showNextChange','config','exitToEditing','Back\x20to\x20editing','changesNavigation'];(function(_0x2a1153,_0x1f7552){const _0x4023c9=function(_0x33441a){while(--_0x33441a){_0x2a1153['push'](_0x2a1153['shift']());}};_0x4023c9(++_0x1f7552);}(_0x1f75,0x114));const _0x4023=function(_0x2a1153,_0x1f7552){_0x2a1153=_0x2a1153-0x0;let _0x4023c9=_0x1f75[_0x2a1153];return _0x4023c9;};import{Plugin as _0x3c0ecd}from'ckeditor5/src/core';import{ButtonView as _0xeaa63}from'ckeditor5/src/ui';import _0x221797 from'./changesnavigationview';import _0x59d8a7 from'./../../revisionviewer';import _0x64ea47 from'./revisionviewerloadingoverlay';import{getTranslation as _0x200251}from'../../utils/common-translations';import _0x3847c8 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x3c0ecd{static get[_0x4023('0x8')](){return'RevisionViewerUI';}static get[_0x4023('0x20')](){return[_0x59d8a7,_0x64ea47];}[_0x4023('0x18')](){const _0x23abfa=this[_0x4023('0x1b')],_0xe21891=_0x23abfa[_0x4023('0x2')][_0x4023('0x1c')](_0x59d8a7),_0x1945cc=_0x23abfa['plugins']['get'](_0x64ea47);_0x23abfa['ui'][_0x4023('0xa')][_0x4023('0x5')](_0x4023('0x12'),_0x13ea76=>{const _0x1532da=new _0xeaa63(_0x13ea76);return _0x1532da[_0x4023('0xc')]({'label':_0x200251(_0x13ea76,_0x4023('0x13')),'icon':_0x3847c8,'withText':!0x0,'tooltip':!0x0,'class':_0x4023('0x0')}),this['listenTo'](_0x1532da,'execute',()=>{_0x23abfa[_0x4023('0x11')][_0x4023('0x1c')](_0x4023('0xf'))[_0x4023('0x1f')]();}),_0x1532da;}),_0x23abfa['ui'][_0x4023('0xa')][_0x4023('0x5')](_0x4023('0xe'),_0x33b372=>{const _0x7e32ea=new _0xeaa63(_0x33b372);return _0x7e32ea[_0x4023('0xc')]({'label':_0x200251(_0x33b372,_0x4023('0x15')),'withText':!0x0,'tooltip':!0x0}),_0x7e32ea['bind'](_0x4023('0x6'))['to'](_0x23abfa['commands'][_0x4023('0x1c')](_0x4023('0xe'))),this[_0x4023('0x19')](_0x7e32ea,_0x4023('0x3'),()=>_0x23abfa[_0x4023('0x3')](_0x4023('0xe'))),_0x7e32ea;}),_0x23abfa['ui'][_0x4023('0xa')]['add'](_0x4023('0x14'),_0x101278=>{const _0x4a98ec=new _0x221797(_0x101278),_0x1ae2ca=_0x23abfa[_0x4023('0xb')][_0x4023('0x1c')]('showPreviousChange'),_0x2fc69a=_0x23abfa['commands'][_0x4023('0x1c')](_0x4023('0x10'));return _0x4a98ec[_0x4023('0x7')](_0x4023('0x1'))['to'](_0x1ae2ca,_0x4023('0x6')),_0x4a98ec[_0x4023('0x7')](_0x4023('0x1a'))['to'](_0x2fc69a,_0x4023('0x6')),_0x4a98ec[_0x4023('0x7')](_0x4023('0x4'),_0x4023('0x17'),'numberOfChanges',_0x4023('0x1e'))['to'](_0xe21891),this[_0x4023('0x19')](_0x4a98ec,'execute',(_0x31b5a0,_0x3d2722)=>{_0x23abfa[_0x4023('0x3')]('forward'===_0x3d2722?_0x4023('0x10'):_0x4023('0x1d'));}),_0x4a98ec;}),_0x1945cc[_0x4023('0x9')](),_0xe21891['on'](_0x4023('0xd'),(_0xf23125,_0x1f0064,_0x45966b)=>{_0x45966b?_0x1945cc[_0x4023('0x16')]():_0x1945cc[_0x4023('0x9')]();});}}
23
+ const _0x6eb6=['requires','isEnabled','RevisionViewerUI','hide','isForwardNavigationEnabled','show','currentChangeNumber','exitToEditing','bind','commands','execute','componentFactory','isReady','revisionHistory','ck-revision-history-ui__back-to-editing','Back\x20to\x20editing','add','plugins','listenTo','restoreRevision','isBackwardNavigationEnabled','closeRevisionViewerCallback','numberOfChanges','editor','init','showNextChange','set','change:isReady','get'];(function(_0x523690,_0x6eb610){const _0x740955=function(_0x2af553){while(--_0x2af553){_0x523690['push'](_0x523690['shift']());}};_0x740955(++_0x6eb610);}(_0x6eb6,0x1bd));const _0x7409=function(_0x523690,_0x6eb610){_0x523690=_0x523690-0x0;let _0x740955=_0x6eb6[_0x523690];return _0x740955;};import{Plugin as _0x199062}from'ckeditor5/src/core';import{ButtonView as _0x22e526}from'ckeditor5/src/ui';import _0x234c1d from'./changesnavigationview';import _0x43b210 from'./../../revisionviewer';import _0x393629 from'./revisionviewerloadingoverlay';import{getTranslation as _0x16da4b}from'../../utils/common-translations';import _0x249d35 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x199062{static get['pluginName'](){return _0x7409('0x15');}static get[_0x7409('0x13')](){return[_0x43b210,_0x393629];}[_0x7409('0xe')](){const _0xbb19a3=this[_0x7409('0xd')],_0x2fec70=_0xbb19a3[_0x7409('0x7')][_0x7409('0x12')](_0x43b210),_0x3f72be=_0xbb19a3[_0x7409('0x7')][_0x7409('0x12')](_0x393629);_0xbb19a3['ui']['componentFactory'][_0x7409('0x6')](_0x7409('0x1a'),_0x33b64d=>{const _0x5aa12e=new _0x22e526(_0x33b64d);return _0x5aa12e['set']({'label':_0x16da4b(_0x33b64d,_0x7409('0x5')),'icon':_0x249d35,'withText':!0x0,'tooltip':!0x0,'class':_0x7409('0x4')}),this[_0x7409('0x8')](_0x5aa12e,_0x7409('0x0'),()=>{_0xbb19a3['config']['get'](_0x7409('0x3'))[_0x7409('0xb')]();}),_0x5aa12e;}),_0xbb19a3['ui']['componentFactory'][_0x7409('0x6')](_0x7409('0x9'),_0x11c5ce=>{const _0x4ec53b=new _0x22e526(_0x11c5ce);return _0x4ec53b[_0x7409('0x10')]({'label':_0x16da4b(_0x11c5ce,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4ec53b[_0x7409('0x1b')](_0x7409('0x14'))['to'](_0xbb19a3[_0x7409('0x1c')][_0x7409('0x12')](_0x7409('0x9'))),this[_0x7409('0x8')](_0x4ec53b,_0x7409('0x0'),()=>_0xbb19a3['execute'](_0x7409('0x9'))),_0x4ec53b;}),_0xbb19a3['ui'][_0x7409('0x1')][_0x7409('0x6')]('changesNavigation',_0x4db7b6=>{const _0x5dc746=new _0x234c1d(_0x4db7b6),_0x3e5306=_0xbb19a3[_0x7409('0x1c')]['get']('showPreviousChange'),_0x326bfe=_0xbb19a3[_0x7409('0x1c')][_0x7409('0x12')]('showNextChange');return _0x5dc746[_0x7409('0x1b')](_0x7409('0xa'))['to'](_0x3e5306,_0x7409('0x14')),_0x5dc746[_0x7409('0x1b')](_0x7409('0x17'))['to'](_0x326bfe,'isEnabled'),_0x5dc746[_0x7409('0x1b')](_0x7409('0x2'),_0x7409('0x19'),_0x7409('0xc'),'isNavigationMode')['to'](_0x2fec70),this[_0x7409('0x8')](_0x5dc746,'execute',(_0x122962,_0x2f7b12)=>{_0xbb19a3[_0x7409('0x0')]('forward'===_0x2f7b12?_0x7409('0xf'):'showPreviousChange');}),_0x5dc746;}),_0x3f72be[_0x7409('0x18')](),_0x2fec70['on'](_0x7409('0x11'),(_0x10400c,_0x319719,_0x5e9bd4)=>{_0x5e9bd4?_0x3f72be[_0x7409('0x16')]():_0x3f72be['show']();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x55d5fa,_0x3b5fee,_0x4ad284){const t=_0x55d5fa['t'];switch(_0x3b5fee){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'},_0x4ad284);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4ad284);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 _0x3b5fee;}}
23
+ export function getTranslation(_0x262d6a,_0x9e3eda,_0x3cee2f){const t=_0x262d6a['t'];switch(_0x9e3eda){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'},_0x3cee2f);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3cee2f);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 _0x9e3eda;}}