@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230814.0 → 0.0.0-nightly-20230816.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 _0x290d=['isOpen','view','isReady','add','set','get','addMany','pluginName','remove','cancel','saveRevision','panelView','length','buttonView','revisionHistory','bind','saveButtonView','isReadOnly','execute','RevisionTracker','config','componentFactory','change:isOpen','children','plugins','focus','isEnabled','showRevisionViewerCallback'];(function(_0x65f520,_0x290d98){const _0x2ea347=function(_0x58aaff){while(--_0x58aaff){_0x65f520['push'](_0x65f520['shift']());}};_0x2ea347(++_0x290d98);}(_0x290d,0x7e));const _0x2ea3=function(_0x65f520,_0x290d98){_0x65f520=_0x65f520-0x0;let _0x2ea347=_0x290d[_0x65f520];return _0x2ea347;};import{Plugin as _0x26274c}from'ckeditor5/src/core';import{ListView as _0x2f0927,ListItemView as _0x517b17,ButtonView as _0x2cefef,createDropdown as _0x2a6ecc}from'ckeditor5/src/ui';import _0x565edc from'../../revisiontracker';import _0x37dc1f from'./revisionhistorysaverevisionformview';import _0x424f12 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x55b92e}from'../../utils/common-translations';export default class u extends _0x26274c{static get[_0x2ea3('0x15')](){return'RevisionHistoryUI';}static get['requires'](){return[_0x565edc];}['init'](){const _0x24bce9=this['editor'],_0x38db1c=_0x24bce9[_0x2ea3('0xa')][_0x2ea3('0x13')](_0x2ea3('0x5'));_0x24bce9['ui'][_0x2ea3('0x7')][_0x2ea3('0x11')](_0x2ea3('0x0'),_0x34c20a=>{const _0xb26c56=_0x2a6ecc(_0x34c20a),_0x248af2=_0xb26c56[_0x2ea3('0x19')][_0x2ea3('0x9')],_0x1261e9=new _0x2f0927(_0x34c20a),_0x1cb0f9=new _0x517b17(_0x34c20a),_0x4fc8a6=new _0x2cefef(_0x34c20a),_0x52bd8f=new _0x517b17(_0x34c20a),_0x3820d6=new _0x2cefef(_0x34c20a),_0x2e92be=new _0x37dc1f(_0x34c20a);function _0x24a443(){_0x248af2[_0x2ea3('0x1a')]&&_0x248af2[_0x2ea3('0x16')](0x0),_0x248af2[_0x2ea3('0x11')](_0x1261e9);}function _0xa5b8ea(){_0xb26c56[_0x2ea3('0xe')]=!0x1,_0x24bce9['editing'][_0x2ea3('0xf')][_0x2ea3('0xb')]();}return _0xb26c56['bind']('isEnabled')['to'](_0x38db1c,_0x2ea3('0x10'),_0x38db1c,_0x2ea3('0xc'),_0x24bce9,_0x2ea3('0x3'),(_0x3e24d2,_0x47d3db,_0x105634)=>_0x3e24d2&&_0x47d3db&&!_0x105634),_0xb26c56[_0x2ea3('0x1b')][_0x2ea3('0x12')]({'icon':_0x424f12,'label':_0x55b92e(_0x34c20a,'Revision\x20history'),'tooltip':!0x0}),_0x4fc8a6['set']({'label':_0x55b92e(_0x34c20a,'Save\x20current\x20revision'),'withText':!0x0}),_0x4fc8a6[_0x2ea3('0x1')]('isEnabled')['to'](_0x38db1c,'isReady',_0x38db1c,'isEnabled',_0x24bce9,'isReadOnly',(_0x229788,_0x51d533,_0x179ee7)=>_0x229788&&_0x51d533&&!_0x179ee7),_0x4fc8a6['on'](_0x2ea3('0x4'),()=>function(){_0x248af2[_0x2ea3('0x1a')]&&_0x248af2[_0x2ea3('0x16')](0x0),(_0x2e92be['reset'](),_0x248af2[_0x2ea3('0x11')](_0x2e92be),_0x2e92be[_0x2ea3('0xb')]());}()),_0x3820d6['set']({'label':_0x55b92e(_0x34c20a,'Open\x20revision\x20history'),'withText':!0x0}),_0x3820d6['bind'](_0x2ea3('0xc'))['to'](_0x38db1c,_0x2ea3('0x10'),_0x24bce9,_0x2ea3('0x3'),(_0x23be89,_0x2bdc4d)=>_0x23be89&&!_0x2bdc4d),_0x3820d6['on'](_0x2ea3('0x4'),()=>{_0x24bce9[_0x2ea3('0x6')][_0x2ea3('0x13')](_0x2ea3('0x0'))[_0x2ea3('0xd')](),_0xa5b8ea();}),_0x1cb0f9[_0x2ea3('0x9')]['add'](_0x4fc8a6),_0x52bd8f[_0x2ea3('0x9')][_0x2ea3('0x11')](_0x3820d6),_0x1261e9['items'][_0x2ea3('0x14')]([_0x1cb0f9,_0x52bd8f]),_0xb26c56['on'](_0x2ea3('0x8'),()=>_0x24a443()),_0x2e92be[_0x2ea3('0x2')][_0x2ea3('0x1')](_0x2ea3('0xc'))['to'](_0x38db1c,_0x2ea3('0x10'),_0x38db1c,_0x2ea3('0xc'),_0x24bce9,'isReadOnly',(_0x282da7,_0x2ffce3,_0x25b275)=>_0x282da7&&_0x2ffce3&&!_0x25b275),_0x2e92be['on']('submit',()=>(_0x24bce9['plugins'][_0x2ea3('0x13')](_0x565edc)[_0x2ea3('0x18')]({'name':_0x2e92be['revisionName']}),void _0xa5b8ea())),_0x2e92be['on'](_0x2ea3('0x17'),()=>_0x24a443()),_0x2e92be['render'](),_0x24a443(),_0xb26c56;});}}
23
+ const _0xe8bf=['set','revisionName','componentFactory','remove','get','Open\x20revision\x20history','init','addMany','plugins','children','editor','isReady','saveRevision','items','focus','RevisionTracker','config','view','add','change:isOpen','RevisionHistoryUI','cancel','isEnabled','buttonView','revisionHistory','saveButtonView','editing','Revision\x20history','render','reset','execute','length','isOpen','bind','requires','panelView','showRevisionViewerCallback','isReadOnly','pluginName'];(function(_0x35dd9e,_0xe8bf6a){const _0x5eea09=function(_0x20849d){while(--_0x20849d){_0x35dd9e['push'](_0x35dd9e['shift']());}};_0x5eea09(++_0xe8bf6a);}(_0xe8bf,0x146));const _0x5eea=function(_0x35dd9e,_0xe8bf6a){_0x35dd9e=_0x35dd9e-0x0;let _0x5eea09=_0xe8bf[_0x35dd9e];return _0x5eea09;};import{Plugin as _0x4cc61f}from'ckeditor5/src/core';import{ListView as _0x14e244,ListItemView as _0x452b16,ButtonView as _0x1c60d0,createDropdown as _0x1446d0}from'ckeditor5/src/ui';import _0x55e354 from'../../revisiontracker';import _0x3621ce from'./revisionhistorysaverevisionformview';import _0x4fbcce from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x740f14}from'../../utils/common-translations';export default class u extends _0x4cc61f{static get[_0x5eea('0x18')](){return _0x5eea('0x6');}static get[_0x5eea('0x14')](){return[_0x55e354];}[_0x5eea('0x1f')](){const _0x176d5e=this[_0x5eea('0x23')],_0x50675d=_0x176d5e[_0x5eea('0x21')][_0x5eea('0x1d')](_0x5eea('0x1'));_0x176d5e['ui'][_0x5eea('0x1b')]['add'](_0x5eea('0xa'),_0x1db8fc=>{const _0x497779=_0x1446d0(_0x1db8fc),_0x5aebde=_0x497779[_0x5eea('0x15')][_0x5eea('0x22')],_0x1a69ec=new _0x14e244(_0x1db8fc),_0xcd90c9=new _0x452b16(_0x1db8fc),_0x529933=new _0x1c60d0(_0x1db8fc),_0x3902c2=new _0x452b16(_0x1db8fc),_0xaef26b=new _0x1c60d0(_0x1db8fc),_0x8557b0=new _0x3621ce(_0x1db8fc);function _0x1dbafd(){_0x5aebde[_0x5eea('0x11')]&&_0x5aebde[_0x5eea('0x1c')](0x0),_0x5aebde['add'](_0x1a69ec);}function _0x3007b7(){_0x497779[_0x5eea('0x12')]=!0x1,_0x176d5e[_0x5eea('0xc')][_0x5eea('0x3')][_0x5eea('0x0')]();}return _0x497779['bind']('isEnabled')['to'](_0x50675d,_0x5eea('0x24'),_0x50675d,_0x5eea('0x8'),_0x176d5e,'isReadOnly',(_0x74e768,_0x2dffad,_0xcc644c)=>_0x74e768&&_0x2dffad&&!_0xcc644c),_0x497779[_0x5eea('0x9')][_0x5eea('0x19')]({'icon':_0x4fbcce,'label':_0x740f14(_0x1db8fc,_0x5eea('0xd')),'tooltip':!0x0}),_0x529933[_0x5eea('0x19')]({'label':_0x740f14(_0x1db8fc,'Save\x20current\x20revision'),'withText':!0x0}),_0x529933[_0x5eea('0x13')](_0x5eea('0x8'))['to'](_0x50675d,_0x5eea('0x24'),_0x50675d,_0x5eea('0x8'),_0x176d5e,_0x5eea('0x17'),(_0x433ac7,_0x43a4c8,_0x1b3c85)=>_0x433ac7&&_0x43a4c8&&!_0x1b3c85),_0x529933['on'](_0x5eea('0x10'),()=>function(){_0x5aebde[_0x5eea('0x11')]&&_0x5aebde['remove'](0x0),(_0x8557b0[_0x5eea('0xf')](),_0x5aebde[_0x5eea('0x4')](_0x8557b0),_0x8557b0[_0x5eea('0x0')]());}()),_0xaef26b[_0x5eea('0x19')]({'label':_0x740f14(_0x1db8fc,_0x5eea('0x1e')),'withText':!0x0}),_0xaef26b[_0x5eea('0x13')](_0x5eea('0x8'))['to'](_0x50675d,'isReady',_0x176d5e,_0x5eea('0x17'),(_0x408d8a,_0x15a857)=>_0x408d8a&&!_0x15a857),_0xaef26b['on']('execute',()=>{_0x176d5e[_0x5eea('0x2')][_0x5eea('0x1d')]('revisionHistory')[_0x5eea('0x16')](),_0x3007b7();}),_0xcd90c9['children']['add'](_0x529933),_0x3902c2['children'][_0x5eea('0x4')](_0xaef26b),_0x1a69ec[_0x5eea('0x26')][_0x5eea('0x20')]([_0xcd90c9,_0x3902c2]),_0x497779['on'](_0x5eea('0x5'),()=>_0x1dbafd()),_0x8557b0[_0x5eea('0xb')][_0x5eea('0x13')](_0x5eea('0x8'))['to'](_0x50675d,'isReady',_0x50675d,_0x5eea('0x8'),_0x176d5e,_0x5eea('0x17'),(_0x102e3b,_0x53d7f4,_0x91d0e4)=>_0x102e3b&&_0x53d7f4&&!_0x91d0e4),_0x8557b0['on']('submit',()=>(_0x176d5e[_0x5eea('0x21')][_0x5eea('0x1d')](_0x55e354)[_0x5eea('0x25')]({'name':_0x8557b0[_0x5eea('0x1a')]}),void _0x3007b7())),_0x8557b0['on'](_0x5eea('0x7'),()=>_0x1dbafd()),_0x8557b0[_0x5eea('0xe')](),_0x1dbafd(),_0x497779;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xfb15=['pluginName','revisionViews','data','map','fieldView','restoreRevisionCallback','getEarlierVisibleRevision','isEnabled','_revisions','repository','editor','_sidebarView','revisionHistory.revisionActions','element','_revisionsRepository','_handleDiffChange','render','locale','add','isReady','diff','compareAgainstSelected','availableRevisionActions','highlightRevisions','defaultRevisionActions','getRevision','ready','config','newRevisionId','action','requires','nameRevision','revisionHistory.viewerSidebarContainer','setName','_revisionViewer','compare','_handleEditorDataReady','name','destroy','getLaterVisibleRevision','getIndex','_createRevisionActions','assign','get','_handleRevisionSetName','change:diff','selectRevision','bind','isVisible','_handleRevisionSelected','plugins','Compare\x20against\x20selected','timePeriodViews','appendChild','remove','Name\x20this\x20revision','getRevisionsInDiff','RevisionsSidebar','init','length','revisionSelected','restoreRevision','string','select'];(function(_0x59356c,_0xfb156b){const _0x1a95b9=function(_0x43e5a6){while(--_0x43e5a6){_0x59356c['push'](_0x59356c['shift']());}};_0x1a95b9(++_0xfb156b);}(_0xfb15,0x1db));const _0x1a95=function(_0x59356c,_0xfb156b){_0x59356c=_0x59356c-0x0;let _0x1a95b9=_0xfb15[_0x59356c];return _0x1a95b9;};import{Plugin as _0x597f75}from'ckeditor5/src/core';import _0x23ef1e from'./revisionssidebarview';import _0x94bac7 from'../../revisionviewer';export default class w extends _0x597f75{static get[_0x1a95('0x25')](){return _0x1a95('0x1e');}static get[_0x1a95('0x3')](){return[_0x94bac7];}constructor(_0x1ace8c){super(_0x1ace8c),this[_0x1a95('0x7')]=_0x1ace8c[_0x1a95('0x17')][_0x1a95('0x10')](_0x94bac7),this['_revisionsRepository']=this[_0x1a95('0x7')]['repository'],this[_0x1a95('0x30')]=null;}[_0x1a95('0x1f')](){const _0x3cc675=this[_0x1a95('0x33')][_0x1a95('0x2d')],_0x3cdcda=this[_0x1a95('0xe')](),_0x706434=this[_0x1a95('0x2f')][_0x1a95('0x0')][_0x1a95('0x10')](_0x1a95('0x5'));this[_0x1a95('0x30')]=new _0x23ef1e(this[_0x1a95('0x2f')][_0x1a95('0x36')],_0x3cc675,_0x3cdcda),this[_0x1a95('0x30')]['on'](_0x1a95('0x21'),this[_0x1a95('0x16')][_0x1a95('0x14')](this)),this[_0x1a95('0x30')]['on']('revisionSetName',this[_0x1a95('0x11')][_0x1a95('0x14')](this)),this[_0x1a95('0x30')][_0x1a95('0x14')](_0x1a95('0x2c'))['to'](this['_revisionViewer']),this[_0x1a95('0x30')][_0x1a95('0x19')]['on'](_0x1a95('0x37'),(_0x8e7792,_0x32cfc1)=>{_0x32cfc1[_0x1a95('0x26')]['on'](_0x1a95('0x37'),(_0x2b70f6,_0x54517f)=>{_0x54517f[_0x1a95('0x14')]('isEnabled',_0x1a95('0x38'))['to'](this[_0x1a95('0x7')]);});}),this[_0x1a95('0x30')][_0x1a95('0x35')](),this['listenTo'](this[_0x1a95('0x2f')][_0x1a95('0x27')],_0x1a95('0x3f'),this[_0x1a95('0x9')][_0x1a95('0x14')](this)),this['listenTo'](this[_0x1a95('0x7')],_0x1a95('0x12'),this[_0x1a95('0x34')]['bind'](this)),_0x706434[_0x1a95('0x1a')](this['_sidebarView'][_0x1a95('0x32')]);}[_0x1a95('0xb')](){this[_0x1a95('0x30')][_0x1a95('0x32')][_0x1a95('0x1b')](),this[_0x1a95('0x30')][_0x1a95('0xb')]();}[_0x1a95('0x9')](){const _0x10c2ad=this[_0x1a95('0x33')][_0x1a95('0x3e')](0x0);if(_0x10c2ad){const _0x12fb59=this['_revisionsRepository'][_0x1a95('0x2b')](_0x10c2ad['id']);this[_0x1a95('0x7')]['compare'](_0x10c2ad,_0x12fb59);}}[_0x1a95('0x16')](_0x3861e4,_0x249d2a){const _0x1be70b=this[_0x1a95('0x33')][_0x1a95('0x3e')](_0x249d2a['id']),_0x363da9=this[_0x1a95('0x33')][_0x1a95('0x2b')](_0x1be70b['id']);this[_0x1a95('0x7')][_0x1a95('0x8')](_0x1be70b,_0x363da9);}['_handleRevisionSetName'](_0x1f5a6c,_0x1c31cf){this[_0x1a95('0x33')]['getRevision'](_0x1c31cf['id'])[_0x1a95('0x6')](_0x1c31cf[_0x1a95('0xa')]);}[_0x1a95('0x34')](_0x59f2b4,_0x3d825a,_0x3c91c6){const _0x857cdf=this['_revisionsRepository'][_0x1a95('0x1d')](_0x3c91c6);_0x857cdf[_0x1a95('0x20')]>0x2?(this['_sidebarView'][_0x1a95('0x3c')](_0x857cdf),this[_0x1a95('0x30')][_0x1a95('0x13')](null)):(this[_0x1a95('0x30')][_0x1a95('0x3c')]([]),this[_0x1a95('0x30')][_0x1a95('0x13')](_0x857cdf[0x0]));}[_0x1a95('0xe')](){const _0x33205b=this[_0x1a95('0x2f')],_0x18a598=w['availableRevisionActions'],_0x69f338=_0x33205b[_0x1a95('0x0')][_0x1a95('0x10')](_0x1a95('0x31'))||w[_0x1a95('0x3d')];if(_0x69f338[_0x1a95('0x20')])return _0x69f338[_0x1a95('0x28')](_0x2bf57d=>{const _0x105d5b=_0x1a95('0x23')==typeof _0x2bf57d?Object[_0x1a95('0xf')]({},_0x18a598[_0x2bf57d]):_0x2bf57d;return _0x105d5b[_0x1a95('0x2')]=_0x105d5b['action'][_0x1a95('0x14')](this,_0x33205b),_0x105d5b[_0x1a95('0x15')]&&(_0x105d5b[_0x1a95('0x15')]=_0x105d5b[_0x1a95('0x15')]['bind'](this,_0x33205b)),_0x105d5b;});}}w[_0x1a95('0x3b')]={'compareAgainstSelected':{'name':_0x1a95('0x18'),'action':({plugins:_0x57dac1},_0xa80085)=>{const _0x1c4dc9=_0x57dac1[_0x1a95('0x10')](_0x94bac7),_0x59713c=_0x1c4dc9['repository'];let _0x8b4ad0=_0x1c4dc9[_0x1a95('0x39')][_0x1a95('0x1')],_0x1ed35a=_0xa80085['id'];_0x59713c[_0x1a95('0xd')](_0x8b4ad0)>_0x59713c[_0x1a95('0xd')](_0x1ed35a)&&([_0x8b4ad0,_0x1ed35a]=[_0x1ed35a,_0x8b4ad0]),_0x1c4dc9[_0x1a95('0x8')](_0x8b4ad0,_0x1ed35a);},'isVisible':({plugins:_0x596e67},_0x2a3ec3)=>{const _0x54f619=_0x596e67['get'](_0x94bac7);return!(_0x54f619[_0x1a95('0x2e')][_0x1a95('0x1d')](_0x54f619[_0x1a95('0x39')])[_0x1a95('0x20')]>0x2)&&!_0x2a3ec3['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x46a555,{id:_0x3bcf44})=>{_0x46a555[_0x1a95('0x0')][_0x1a95('0x10')]('revisionHistory')[_0x1a95('0x2a')](_0x3bcf44);},'isVisible':({plugins:_0x1860d0},_0x1c47bf)=>!!_0x1860d0[_0x1a95('0x10')](_0x94bac7)['repository'][_0x1a95('0xc')](_0x1c47bf['id'])},'nameRevision':{'name':_0x1a95('0x1c'),'action':({plugins:_0x353c50},{id:_0x3d3348,revisionNameView:_0xd2424b})=>{const _0x2a6bd6=_0x353c50['get'](_0x94bac7),_0x1ca726=_0x2a6bd6[_0x1a95('0x2e')]['getEarlierVisibleRevision'](_0x3d3348);_0x2a6bd6[_0x1a95('0x8')](_0x3d3348,_0x1ca726),_0xd2424b['focus'](),_0xd2424b[_0x1a95('0x29')][_0x1a95('0x24')]();}}},w['defaultRevisionActions']=[_0x1a95('0x3a'),_0x1a95('0x22'),_0x1a95('0x4')];
23
+ const _0x3263=['editor','action','defaultRevisionActions','_handleRevisionSelected','length','appendChild','Compare\x20against\x20selected','remove','string','_revisionsRepository','requires','isVisible','destroy','_createRevisionActions','init','_sidebarView','getRevisionsInDiff','Name\x20this\x20revision','plugins','isReady','getRevision','_handleEditorDataReady','nameRevision','element','getLaterVisibleRevision','_revisions','assign','repository','_revisionViewer','focus','revisionHistory.revisionActions','diff','ready','isEnabled','data','getIndex','timePeriodViews','bind','get','compare','availableRevisionActions','name','compareAgainstSelected','config','RevisionsSidebar','getEarlierVisibleRevision','highlightRevisions','newRevisionId','select','add','revisionSelected','map','listenTo','_handleRevisionSetName','selectRevision','revisionHistory.viewerSidebarContainer','_handleDiffChange','render','pluginName'];(function(_0x35d140,_0x32638f){const _0x5c9529=function(_0x33f8d2){while(--_0x33f8d2){_0x35d140['push'](_0x35d140['shift']());}};_0x5c9529(++_0x32638f);}(_0x3263,0x146));const _0x5c95=function(_0x35d140,_0x32638f){_0x35d140=_0x35d140-0x0;let _0x5c9529=_0x3263[_0x35d140];return _0x5c9529;};import{Plugin as _0x2e565f}from'ckeditor5/src/core';import _0x3b5ea1 from'./revisionssidebarview';import _0x49b496 from'../../revisionviewer';export default class w extends _0x2e565f{static get[_0x5c95('0x1b')](){return _0x5c95('0xd');}static get[_0x5c95('0x26')](){return[_0x49b496];}constructor(_0xc64a26){super(_0xc64a26),this[_0x5c95('0x38')]=_0xc64a26[_0x5c95('0x2e')][_0x5c95('0x7')](_0x49b496),this['_revisionsRepository']=this[_0x5c95('0x38')]['repository'],this[_0x5c95('0x2b')]=null;}[_0x5c95('0x2a')](){const _0x1aa9ab=this[_0x5c95('0x25')][_0x5c95('0x35')],_0x2dd65b=this[_0x5c95('0x29')](),_0x2e3850=this[_0x5c95('0x1c')]['config'][_0x5c95('0x7')](_0x5c95('0x18'));this[_0x5c95('0x2b')]=new _0x3b5ea1(this['editor']['locale'],_0x1aa9ab,_0x2dd65b),this['_sidebarView']['on'](_0x5c95('0x13'),this[_0x5c95('0x1f')][_0x5c95('0x6')](this)),this[_0x5c95('0x2b')]['on']('revisionSetName',this[_0x5c95('0x16')][_0x5c95('0x6')](this)),this['_sidebarView']['bind'](_0x5c95('0x2'))['to'](this[_0x5c95('0x38')]),this[_0x5c95('0x2b')][_0x5c95('0x5')]['on'](_0x5c95('0x12'),(_0xefa4b,_0x522ef8)=>{_0x522ef8['revisionViews']['on'](_0x5c95('0x12'),(_0x43a208,_0x2e9a1d)=>{_0x2e9a1d[_0x5c95('0x6')](_0x5c95('0x2'),_0x5c95('0x2f'))['to'](this[_0x5c95('0x38')]);});}),this[_0x5c95('0x2b')][_0x5c95('0x1a')](),this[_0x5c95('0x15')](this[_0x5c95('0x1c')][_0x5c95('0x3')],_0x5c95('0x1'),this[_0x5c95('0x31')]['bind'](this)),this['listenTo'](this[_0x5c95('0x38')],'change:diff',this['_handleDiffChange'][_0x5c95('0x6')](this)),_0x2e3850[_0x5c95('0x21')](this[_0x5c95('0x2b')][_0x5c95('0x33')]);}[_0x5c95('0x28')](){this['_sidebarView']['element'][_0x5c95('0x23')](),this['_sidebarView'][_0x5c95('0x28')]();}['_handleEditorDataReady'](){const _0x4f4152=this[_0x5c95('0x25')][_0x5c95('0x30')](0x0);if(_0x4f4152){const _0x26f90b=this[_0x5c95('0x25')][_0x5c95('0xe')](_0x4f4152['id']);this[_0x5c95('0x38')][_0x5c95('0x8')](_0x4f4152,_0x26f90b);}}['_handleRevisionSelected'](_0x1ddaef,_0x3fb7f7){const _0x18e627=this[_0x5c95('0x25')][_0x5c95('0x30')](_0x3fb7f7['id']),_0x29ecbf=this[_0x5c95('0x25')][_0x5c95('0xe')](_0x18e627['id']);this[_0x5c95('0x38')][_0x5c95('0x8')](_0x18e627,_0x29ecbf);}['_handleRevisionSetName'](_0x4eb881,_0x984593){this[_0x5c95('0x25')][_0x5c95('0x30')](_0x984593['id'])['setName'](_0x984593[_0x5c95('0xa')]);}[_0x5c95('0x19')](_0x2943d9,_0xcc19ff,_0x28a681){const _0xd8e070=this['_revisionsRepository'][_0x5c95('0x2c')](_0x28a681);_0xd8e070[_0x5c95('0x20')]>0x2?(this[_0x5c95('0x2b')][_0x5c95('0xf')](_0xd8e070),this[_0x5c95('0x2b')][_0x5c95('0x17')](null)):(this[_0x5c95('0x2b')]['highlightRevisions']([]),this['_sidebarView'][_0x5c95('0x17')](_0xd8e070[0x0]));}[_0x5c95('0x29')](){const _0x5cbf39=this[_0x5c95('0x1c')],_0x4e17e9=w[_0x5c95('0x9')],_0x27f4cb=_0x5cbf39[_0x5c95('0xc')]['get'](_0x5c95('0x3a'))||w['defaultRevisionActions'];if(_0x27f4cb[_0x5c95('0x20')])return _0x27f4cb[_0x5c95('0x14')](_0x45bd59=>{const _0x352035=_0x5c95('0x24')==typeof _0x45bd59?Object[_0x5c95('0x36')]({},_0x4e17e9[_0x45bd59]):_0x45bd59;return _0x352035[_0x5c95('0x1d')]=_0x352035[_0x5c95('0x1d')][_0x5c95('0x6')](this,_0x5cbf39),_0x352035['isVisible']&&(_0x352035[_0x5c95('0x27')]=_0x352035[_0x5c95('0x27')][_0x5c95('0x6')](this,_0x5cbf39)),_0x352035;});}}w['availableRevisionActions']={'compareAgainstSelected':{'name':_0x5c95('0x22'),'action':({plugins:_0x506a72},_0x54dfe4)=>{const _0x28909c=_0x506a72['get'](_0x49b496),_0x280234=_0x28909c['repository'];let _0x162960=_0x28909c[_0x5c95('0x0')][_0x5c95('0x10')],_0x340efe=_0x54dfe4['id'];_0x280234[_0x5c95('0x4')](_0x162960)>_0x280234[_0x5c95('0x4')](_0x340efe)&&([_0x162960,_0x340efe]=[_0x340efe,_0x162960]),_0x28909c[_0x5c95('0x8')](_0x162960,_0x340efe);},'isVisible':({plugins:_0x45234c},_0x5240ce)=>{const _0x30be74=_0x45234c[_0x5c95('0x7')](_0x49b496);return!(_0x30be74[_0x5c95('0x37')][_0x5c95('0x2c')](_0x30be74[_0x5c95('0x0')])['length']>0x2)&&!_0x5240ce['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x367f31,{id:_0x10251e})=>{_0x367f31[_0x5c95('0xc')][_0x5c95('0x7')]('revisionHistory')['restoreRevisionCallback'](_0x10251e);},'isVisible':({plugins:_0x33319d},_0x13fe7a)=>!!_0x33319d[_0x5c95('0x7')](_0x49b496)[_0x5c95('0x37')][_0x5c95('0x34')](_0x13fe7a['id'])},'nameRevision':{'name':_0x5c95('0x2d'),'action':({plugins:_0x523ccd},{id:_0x3d25c2,revisionNameView:_0x370c5e})=>{const _0x46644e=_0x523ccd[_0x5c95('0x7')](_0x49b496),_0x17f957=_0x46644e['repository'][_0x5c95('0xe')](_0x3d25c2);_0x46644e[_0x5c95('0x8')](_0x3d25c2,_0x17f957),_0x370c5e[_0x5c95('0x39')](),_0x370c5e['fieldView'][_0x5c95('0x11')]();}}},w[_0x5c95('0x1e')]=[_0x5c95('0xb'),'restoreRevision',_0x5c95('0x32')];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x392e=['setTemplate','ck-reset_all','ck-revision-history-sidebar__header__label','span','div','Revision\x20history'];(function(_0xebb37d,_0x392e47){const _0x57beae=function(_0x46fd21){while(--_0x46fd21){_0xebb37d['push'](_0xebb37d['shift']());}};_0x57beae(++_0x392e47);}(_0x392e,0xa1));const _0x57be=function(_0xebb37d,_0x392e47){_0xebb37d=_0xebb37d-0x0;let _0x57beae=_0x392e[_0xebb37d];return _0x57beae;};import{View as _0x2e6d83,IconView as _0x6492ef}from'ckeditor5/src/ui';import{getTranslation as _0x5e6bd6}from'../../utils/common-translations';import _0x362e1c from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x2e6d83{constructor(_0xa4d342){super(_0xa4d342);const _0x487735=new _0x6492ef();_0x487735['content']=_0x362e1c,this[_0x57be('0x1')]({'tag':_0x57be('0x5'),'attributes':{'class':['ck',_0x57be('0x2'),'ck-revision-history-sidebar__header']},'children':[_0x487735,{'tag':_0x57be('0x4'),'attributes':{'class':['ck',_0x57be('0x3')]},'children':[_0x5e6bd6(_0xa4d342,_0x57be('0x0'))]}]});}}
23
+ const _0x465d=['setTemplate','span','ck-reset_all','content','div','ck-revision-history-sidebar__header__label','Revision\x20history'];(function(_0x287b4c,_0x465de5){const _0x34738d=function(_0x805425){while(--_0x805425){_0x287b4c['push'](_0x287b4c['shift']());}};_0x34738d(++_0x465de5);}(_0x465d,0x10e));const _0x3473=function(_0x287b4c,_0x465de5){_0x287b4c=_0x287b4c-0x0;let _0x34738d=_0x465d[_0x287b4c];return _0x34738d;};import{View as _0x1cb1ec,IconView as _0x486071}from'ckeditor5/src/ui';import{getTranslation as _0x13d343}from'../../utils/common-translations';import _0x56f7d1 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x1cb1ec{constructor(_0xc5ac28){super(_0xc5ac28);const _0xdc0fe4=new _0x486071();_0xdc0fe4[_0x3473('0x6')]=_0x56f7d1,this[_0x3473('0x3')]({'tag':_0x3473('0x0'),'attributes':{'class':['ck',_0x3473('0x5'),'ck-revision-history-sidebar__header']},'children':[_0xdc0fe4,{'tag':_0x3473('0x4'),'attributes':{'class':['ck',_0x3473('0x1')]},'children':[_0x13d343(_0xc5ac28,_0x3473('0x2'))]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x244f=['span','_revisionActions','uiLanguage','ck-revision-history-sidebar__time-period__revisions','removeRevision','localizedPeriodName','setTemplate','revisionViews','addRevision','startDate','setName','ck-revision-history-sidebar__time-period__label','delegate','div','ck-revision-history-sidebar__time-period'];(function(_0x2183e4,_0x244fa8){const _0x36168a=function(_0x13c1c5){while(--_0x13c1c5){_0x2183e4['push'](_0x2183e4['shift']());}};_0x36168a(++_0x244fa8);}(_0x244f,0xf0));const _0x3616=function(_0x2183e4,_0x244fa8){_0x2183e4=_0x2183e4-0x0;let _0x36168a=_0x244f[_0x2183e4];return _0x36168a;};import{View as _0x4e862f}from'ckeditor5/src/ui';import _0x344c19 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x3312e3}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x4e862f{constructor(_0xa57e6,_0x54a3da,_0xe5fa25){super(_0xa57e6);const _0x299354=_0x3312e3(_0x54a3da,this['locale'][_0x3616('0x2')])[_0x3616('0x5')];this[_0x3616('0x9')]=_0x54a3da,this[_0x3616('0x7')]=this['createCollection'](),this[_0x3616('0x1')]=_0xe5fa25,this[_0x3616('0x7')]['delegate']('select')['to'](this),this[_0x3616('0x7')][_0x3616('0xc')](_0x3616('0xa'))['to'](this),this[_0x3616('0x6')]({'tag':'div','attributes':{'class':['ck',_0x3616('0xe')]},'children':[{'tag':_0x3616('0x0'),'attributes':{'class':['ck',_0x3616('0xb')]},'children':[{'text':_0x299354}]},{'tag':_0x3616('0xd'),'attributes':{'class':['ck',_0x3616('0x3')]},'children':this[_0x3616('0x7')]}]});}[_0x3616('0x8')](_0x9a001){const _0x2f81a3=new _0x344c19(this['locale'],_0x9a001,this[_0x3616('0x1')]);this[_0x3616('0x7')]['add'](_0x2f81a3);}[_0x3616('0x4')](_0x51663c){const _0x5b65a9=this[_0x3616('0x7')]['find'](_0x2286a6=>_0x2286a6['id']===_0x51663c['id']);this[_0x3616('0x7')]['remove'](_0x5b65a9);}}
23
+ const _0x5e73=['addRevision','div','select','remove','revisionViews','find','add','delegate','startDate','_revisionActions','removeRevision','locale','setName','ck-revision-history-sidebar__time-period','setTemplate'];(function(_0x5a166c,_0x5e733c){const _0x31408f=function(_0x4bc87e){while(--_0x4bc87e){_0x5a166c['push'](_0x5a166c['shift']());}};_0x31408f(++_0x5e733c);}(_0x5e73,0x1de));const _0x3140=function(_0x5a166c,_0x5e733c){_0x5a166c=_0x5a166c-0x0;let _0x31408f=_0x5e73[_0x5a166c];return _0x31408f;};import{View as _0x37dd69}from'ckeditor5/src/ui';import _0x52267a from'../revision/revisionview';import{getDateTimePeriodInfo as _0xd40a8a}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x37dd69{constructor(_0x33d792,_0x5ace0f,_0x2147fe){super(_0x33d792);const _0x92d9c5=_0xd40a8a(_0x5ace0f,this['locale']['uiLanguage'])['localizedPeriodName'];this[_0x3140('0xa')]=_0x5ace0f,this[_0x3140('0x6')]=this['createCollection'](),this[_0x3140('0xb')]=_0x2147fe,this['revisionViews'][_0x3140('0x9')](_0x3140('0x4'))['to'](this),this[_0x3140('0x6')][_0x3140('0x9')](_0x3140('0xe'))['to'](this),this[_0x3140('0x1')]({'tag':_0x3140('0x3'),'attributes':{'class':['ck',_0x3140('0x0')]},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x92d9c5}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this[_0x3140('0x6')]}]});}[_0x3140('0x2')](_0x4df490){const _0x2ff5cb=new _0x52267a(this[_0x3140('0xd')],_0x4df490,this[_0x3140('0xb')]);this[_0x3140('0x6')][_0x3140('0x8')](_0x2ff5cb);}[_0x3140('0xc')](_0x7da0ef){const _0x423fb5=this[_0x3140('0x6')][_0x3140('0x7')](_0x11227d=>_0x11227d['id']===_0x7da0ef['id']);this['revisionViews'][_0x3140('0x5')](_0x423fb5);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x586b=['map','revisionViews','_getTimePeriodViewByStartDate','render','selectRevision','uiLanguage','timePeriodViews','set','delegate','_addRevision','ck-revision-history-sidebar','highlight','ck-disabled','createdAt','select','getTime','addRevision','ck-reset','_revisions','some','flat','locale','find','bindTemplate','unhighlight','isEnabled','startDate','ck-rounded-corners','_removeRevision','removeRevision','ck-revision-history-sidebar__timeline','_revisionActions','setName','add','div','revisionSetName','remove'];(function(_0x35bb13,_0x586b48){const _0x51bc2a=function(_0x2881b3){while(--_0x2881b3){_0x35bb13['push'](_0x35bb13['shift']());}};_0x51bc2a(++_0x586b48);}(_0x586b,0x145));const _0x51bc=function(_0x35bb13,_0x586b48){_0x35bb13=_0x35bb13-0x0;let _0x51bc2a=_0x586b[_0x35bb13];return _0x51bc2a;};import{View as _0x1c5a70}from'ckeditor5/src/ui';import _0xc9761f from'./revisionssidebartimeperiodview';import _0xd7d189 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x579bb9}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x1c5a70{constructor(_0x3176eb,_0x553d0e,_0x153e3c){super(_0x3176eb);const _0x122e3e=this[_0x51bc('0x1f')];this[_0x51bc('0xe')]=this['createCollection'](),this[_0x51bc('0xe')][_0x51bc('0x10')](_0x51bc('0x16'))['to'](this),this[_0x51bc('0xe')][_0x51bc('0x10')](_0x51bc('0x3'))['to'](this),this[_0x51bc('0x1a')]=_0x553d0e,this[_0x51bc('0x2')]=_0x153e3c,this['on']('select',(_0x2584ae,_0x3b012d)=>{this['fire']('revisionSelected',_0x3b012d);}),this['on'](_0x51bc('0x3'),(_0x5e9b28,_0x459849)=>{this['fire'](_0x51bc('0x6'),_0x459849);}),this[_0x51bc('0xf')](_0x51bc('0x21'),!0x1),this['setTemplate']({'tag':_0x51bc('0x5'),'attributes':{'class':['ck',_0x51bc('0x19'),_0x51bc('0x23'),_0x51bc('0x12')]},'children':[new _0xd7d189(_0x3176eb),{'tag':_0x51bc('0x5'),'attributes':{'class':['ck',_0x51bc('0x1'),_0x122e3e['if'](_0x51bc('0x21'),_0x51bc('0x14'),_0x2ba244=>!_0x2ba244)]},'children':this[_0x51bc('0xe')]}]});}[_0x51bc('0xb')](){super[_0x51bc('0xb')]();for(const _0x16d99d of this['_revisions'])this['_addRevision'](_0x16d99d);this[_0x51bc('0x1a')]['on'](_0x51bc('0x4'),(_0x33de03,_0x3d0f32)=>{this['_addRevision'](_0x3d0f32);}),this[_0x51bc('0x1a')]['on'](_0x51bc('0x7'),(_0x2323b3,_0x417e3c)=>{this[_0x51bc('0x24')](_0x417e3c);});}get[_0x51bc('0x9')](){return this['timePeriodViews']['map'](_0x308c97=>_0x308c97['revisionViews'][_0x51bc('0x8')](_0xce2094=>_0xce2094))[_0x51bc('0x1c')]();}[_0x51bc('0xc')](_0xe3053e){for(const _0x173cf1 of this[_0x51bc('0x9')])_0xe3053e&&_0xe3053e['id']===_0x173cf1['id']?_0x173cf1['select']():_0x173cf1['deselect']();}['highlightRevisions'](_0x5d951){for(const _0x5ddb8c of this[_0x51bc('0x9')])_0x5d951[_0x51bc('0x1b')](({id:_0x3496f9})=>_0x3496f9===_0x5ddb8c['id'])?_0x5ddb8c[_0x51bc('0x13')]():_0x5ddb8c[_0x51bc('0x20')]();}[_0x51bc('0x11')](_0x4dc656){const _0x47de9f=_0x579bb9(_0x4dc656[_0x51bc('0x15')],this[_0x51bc('0x1d')]['uiLanguage'])[_0x51bc('0x22')];let _0x559caf=this[_0x51bc('0xe')]['get'](0x0);_0x559caf&&_0x559caf[_0x51bc('0x22')][_0x51bc('0x17')]()===_0x47de9f['getTime']()||(_0x559caf=new _0xc9761f(this['locale'],_0x47de9f,this[_0x51bc('0x2')]),this[_0x51bc('0xe')][_0x51bc('0x4')](_0x559caf)),_0x559caf[_0x51bc('0x18')](_0x4dc656);}['_removeRevision'](_0x290d2e){const _0x54aee6=_0x579bb9(_0x290d2e[_0x51bc('0x15')],this[_0x51bc('0x1d')][_0x51bc('0xd')])['startDate'];this[_0x51bc('0xa')](_0x54aee6)[_0x51bc('0x0')](_0x290d2e);}[_0x51bc('0xa')](_0x1a614e){return this[_0x51bc('0xe')][_0x51bc('0x1e')](_0x2b2ed3=>_0x2b2ed3[_0x51bc('0x22')][_0x51bc('0x17')]()===_0x1a614e[_0x51bc('0x17')]());}}
23
+ const _0x2cca=['div','flat','timePeriodViews','startDate','selectRevision','addRevision','setTemplate','add','ck-revision-history-sidebar','locale','ck-rounded-corners','uiLanguage','_removeRevision','_revisions','isEnabled','deselect','unhighlight','select','find','createdAt','render','get','highlightRevisions','revisionSelected','_revisionActions','set','ck-disabled','setName','delegate','some','getTime','fire','_addRevision','revisionViews','ck-revision-history-sidebar__timeline','map','createCollection'];(function(_0x1488d0,_0x2cca50){const _0x22d5b4=function(_0x104f11){while(--_0x104f11){_0x1488d0['push'](_0x1488d0['shift']());}};_0x22d5b4(++_0x2cca50);}(_0x2cca,0xba));const _0x22d5=function(_0x1488d0,_0x2cca50){_0x1488d0=_0x1488d0-0x0;let _0x22d5b4=_0x2cca[_0x1488d0];return _0x22d5b4;};import{View as _0x526fc8}from'ckeditor5/src/ui';import _0xc22cad from'./revisionssidebartimeperiodview';import _0x5788be from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x4fe5f}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x526fc8{constructor(_0x13df63,_0x3222ce,_0x7bdc56){super(_0x13df63);const _0x58b624=this['bindTemplate'];this[_0x22d5('0x1')]=this[_0x22d5('0x23')](),this[_0x22d5('0x1')][_0x22d5('0x1b')](_0x22d5('0x10'))['to'](this),this['timePeriodViews'][_0x22d5('0x1b')](_0x22d5('0x1a'))['to'](this),this['_revisions']=_0x3222ce,this[_0x22d5('0x17')]=_0x7bdc56,this['on'](_0x22d5('0x10'),(_0x22eaad,_0x2e1167)=>{this[_0x22d5('0x1e')](_0x22d5('0x16'),_0x2e1167);}),this['on']('setName',(_0x4d9084,_0x43ee50)=>{this['fire']('revisionSetName',_0x43ee50);}),this[_0x22d5('0x18')](_0x22d5('0xd'),!0x1),this[_0x22d5('0x5')]({'tag':_0x22d5('0x24'),'attributes':{'class':['ck','ck-reset',_0x22d5('0x9'),_0x22d5('0x7')]},'children':[new _0x5788be(_0x13df63),{'tag':_0x22d5('0x24'),'attributes':{'class':['ck',_0x22d5('0x21'),_0x58b624['if'](_0x22d5('0xd'),_0x22d5('0x19'),_0x44630d=>!_0x44630d)]},'children':this[_0x22d5('0x1')]}]});}['render'](){super[_0x22d5('0x13')]();for(const _0x3b51f2 of this[_0x22d5('0xc')])this[_0x22d5('0x1f')](_0x3b51f2);this[_0x22d5('0xc')]['on']('add',(_0x2492c3,_0x27daa7)=>{this[_0x22d5('0x1f')](_0x27daa7);}),this['_revisions']['on']('remove',(_0x491082,_0x4d8b01)=>{this[_0x22d5('0xb')](_0x4d8b01);});}get[_0x22d5('0x20')](){return this[_0x22d5('0x1')][_0x22d5('0x22')](_0x36e6af=>_0x36e6af[_0x22d5('0x20')][_0x22d5('0x22')](_0x1dee8a=>_0x1dee8a))[_0x22d5('0x0')]();}[_0x22d5('0x3')](_0x40fe3e){for(const _0x1f464c of this[_0x22d5('0x20')])_0x40fe3e&&_0x40fe3e['id']===_0x1f464c['id']?_0x1f464c[_0x22d5('0x10')]():_0x1f464c[_0x22d5('0xe')]();}[_0x22d5('0x15')](_0x3b5f29){for(const _0xbbf741 of this['revisionViews'])_0x3b5f29[_0x22d5('0x1c')](({id:_0x2756c5})=>_0x2756c5===_0xbbf741['id'])?_0xbbf741['highlight']():_0xbbf741[_0x22d5('0xf')]();}['_addRevision'](_0x43a1c9){const _0x3f71d=_0x4fe5f(_0x43a1c9['createdAt'],this[_0x22d5('0x8')]['uiLanguage'])[_0x22d5('0x2')];let _0x13a749=this['timePeriodViews'][_0x22d5('0x14')](0x0);_0x13a749&&_0x13a749[_0x22d5('0x2')][_0x22d5('0x1d')]()===_0x3f71d[_0x22d5('0x1d')]()||(_0x13a749=new _0xc22cad(this[_0x22d5('0x8')],_0x3f71d,this[_0x22d5('0x17')]),this[_0x22d5('0x1')][_0x22d5('0x6')](_0x13a749)),_0x13a749[_0x22d5('0x4')](_0x43a1c9);}[_0x22d5('0xb')](_0xd23e78){const _0x3e9b0b=_0x4fe5f(_0xd23e78[_0x22d5('0x12')],this[_0x22d5('0x8')][_0x22d5('0xa')])['startDate'];this['_getTimePeriodViewByStartDate'](_0x3e9b0b)['removeRevision'](_0xd23e78);}['_getTimePeriodViewByStartDate'](_0x144c47){return this[_0x22d5('0x1')][_0x22d5('0x11')](_0x1a60b4=>_0x1a60b4[_0x22d5('0x2')]['getTime']()===_0x144c47['getTime']());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a1e=['fromJSDate','year','weekdayLong','toRelativeCalendar','minus','hasSame','month','week','toJSDate','startOf','monthLong','day'];(function(_0x145ae3,_0x1a1e17){const _0x998166=function(_0x32bb02){while(--_0x32bb02){_0x145ae3['push'](_0x145ae3['shift']());}};_0x998166(++_0x1a1e17);}(_0x1a1e,0xb9));const _0x9981=function(_0x145ae3,_0x1a1e17){_0x145ae3=_0x145ae3-0x0;let _0x998166=_0x1a1e[_0x145ae3];return _0x998166;};import{DateTime as _0x319669}from'luxon';export function getDateTimePeriodInfo(_0x358852,_0x1ab93c){const _0x5a8ff4=_0x319669[_0x9981('0x7')](_0x358852)['setLocale'](_0x1ab93c),_0x4e7cf1=_0x319669['local'](),_0x47d6c7=_0x4e7cf1[_0x9981('0xb')]({'days':0x1})[_0x9981('0x4')]('day');let _0x3b2c44,_0x453a50;return _0x5a8ff4[_0x9981('0x0')](_0x4e7cf1,'day')?(_0x3b2c44=_0x5a8ff4[_0x9981('0x4')](_0x9981('0x6'))[_0x9981('0x3')](),_0x453a50=_0x5a8ff4[_0x9981('0xa')]()):_0x5a8ff4[_0x9981('0x0')](_0x47d6c7,_0x9981('0x6'))?(_0x3b2c44=_0x47d6c7[_0x9981('0x3')](),_0x453a50=_0x5a8ff4[_0x9981('0xa')]()):_0x5a8ff4[_0x9981('0x0')](_0x4e7cf1,'week')?(_0x3b2c44=_0x5a8ff4[_0x9981('0x4')](_0x9981('0x2'))['toJSDate'](),_0x453a50=_0x5a8ff4[_0x9981('0x9')]||''):_0x5a8ff4[_0x9981('0x0')](_0x4e7cf1,'year')?(_0x3b2c44=_0x5a8ff4[_0x9981('0x4')](_0x9981('0x1'))[_0x9981('0x3')](),_0x453a50=_0x5a8ff4[_0x9981('0x5')]||''):(_0x3b2c44=_0x5a8ff4[_0x9981('0x4')](_0x9981('0x8'))['toJSDate'](),_0x453a50=String(_0x5a8ff4[_0x9981('0x8')])),{'startDate':_0x3b2c44,'localizedPeriodName':_0x453a50};}
23
+ const _0x10c6=['fromJSDate','day','setLocale','year','toJSDate','toRelativeCalendar','startOf','hasSame','week','monthLong','weekdayLong'];(function(_0x23838,_0x10c69d){const _0x15c6aa=function(_0x5e2c3b){while(--_0x5e2c3b){_0x23838['push'](_0x23838['shift']());}};_0x15c6aa(++_0x10c69d);}(_0x10c6,0x64));const _0x15c6=function(_0x23838,_0x10c69d){_0x23838=_0x23838-0x0;let _0x15c6aa=_0x10c6[_0x23838];return _0x15c6aa;};import{DateTime as _0x495fd0}from'luxon';export function getDateTimePeriodInfo(_0xf82576,_0x8233b0){const _0xa3d5a6=_0x495fd0[_0x15c6('0xa')](_0xf82576)[_0x15c6('0x1')](_0x8233b0),_0xb488ef=_0x495fd0['local'](),_0xca12ff=_0xb488ef['minus']({'days':0x1})[_0x15c6('0x5')](_0x15c6('0x0'));let _0x112d7a,_0x40253f;return _0xa3d5a6[_0x15c6('0x6')](_0xb488ef,'day')?(_0x112d7a=_0xa3d5a6['startOf']('day')[_0x15c6('0x3')](),_0x40253f=_0xa3d5a6[_0x15c6('0x4')]()):_0xa3d5a6[_0x15c6('0x6')](_0xca12ff,'day')?(_0x112d7a=_0xca12ff[_0x15c6('0x3')](),_0x40253f=_0xa3d5a6[_0x15c6('0x4')]()):_0xa3d5a6[_0x15c6('0x6')](_0xb488ef,_0x15c6('0x7'))?(_0x112d7a=_0xa3d5a6['startOf'](_0x15c6('0x7'))[_0x15c6('0x3')](),_0x40253f=_0xa3d5a6[_0x15c6('0x9')]||''):_0xa3d5a6[_0x15c6('0x6')](_0xb488ef,_0x15c6('0x2'))?(_0x112d7a=_0xa3d5a6[_0x15c6('0x5')]('month')[_0x15c6('0x3')](),_0x40253f=_0xa3d5a6[_0x15c6('0x8')]||''):(_0x112d7a=_0xa3d5a6[_0x15c6('0x5')](_0x15c6('0x2'))[_0x15c6('0x3')](),_0x40253f=String(_0xa3d5a6[_0x15c6('0x2')])),{'startDate':_0x112d7a,'localizedPeriodName':_0x40253f};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x99d6=['ck-revision-change__','focus','ck-revision-change','changeId','set','span','div','ck-revision-change__label','element','Removed\x20by','Added\x20by','Suggested\x20by','type'];(function(_0x46176e,_0x99d610){const _0x3c7a58=function(_0x5aab32){while(--_0x5aab32){_0x46176e['push'](_0x46176e['shift']());}};_0x3c7a58(++_0x99d610);}(_0x99d6,0x18a));const _0x3c7a=function(_0x46176e,_0x99d610){_0x46176e=_0x46176e-0x0;let _0x3c7a58=_0x99d6[_0x46176e];return _0x3c7a58;};import{View as _0x584a26}from'ckeditor5/src/ui';import{getTranslation as _0x1ab7e7}from'../../utils/common-translations';export default class Z extends _0x584a26{constructor(_0x4ce32f,_0x5196b9){super(_0x4ce32f),this['_model']=_0x5196b9,this[_0x3c7a('0xc')]=_0x5196b9['id'];const _0x1c68c8=this['bindTemplate'],_0x2daf5b=_0x1ab7e7(_0x4ce32f,_0x5196b9['data']['isSuggestion']?_0x3c7a('0x7'):'add'==_0x5196b9['type']?_0x3c7a('0x6'):_0x3c7a('0x5'));this[_0x3c7a('0x0')](_0x3c7a('0x8'),_0x5196b9[_0x3c7a('0x8')]),this['setTemplate']({'tag':_0x3c7a('0x2'),'attributes':{'class':['ck-annotation',_0x3c7a('0xb'),_0x1c68c8['to']('type',_0x7410b5=>_0x3c7a('0x9')+_0x7410b5)],'tabindex':-0x1},'children':[{'tag':_0x3c7a('0x1'),'children':[{'tag':_0x3c7a('0x1'),'attributes':{'class':[_0x3c7a('0x3')]},'children':[{'text':_0x2daf5b}]},{'text':'\x20'+_0x5196b9['author']['name']}]}]});}[_0x3c7a('0xa')](){this[_0x3c7a('0x4')][_0x3c7a('0xa')]();}}
23
+ const _0x5dc9=['focus','bindTemplate','set','author','changeId','element','div','Suggested\x20by','setTemplate','Added\x20by','add','span','_model','data','Removed\x20by','ck-annotation','ck-revision-change__','ck-revision-change','type'];(function(_0x4e51ab,_0x5dc922){const _0x5b05b3=function(_0x170485){while(--_0x170485){_0x4e51ab['push'](_0x4e51ab['shift']());}};_0x5b05b3(++_0x5dc922);}(_0x5dc9,0x1ad));const _0x5b05=function(_0x4e51ab,_0x5dc922){_0x4e51ab=_0x4e51ab-0x0;let _0x5b05b3=_0x5dc9[_0x4e51ab];return _0x5b05b3;};import{View as _0x463914}from'ckeditor5/src/ui';import{getTranslation as _0x2d4f73}from'../../utils/common-translations';export default class Z extends _0x463914{constructor(_0x314a81,_0x4c6d9d){super(_0x314a81),this[_0x5b05('0x1')]=_0x4c6d9d,this[_0x5b05('0xc')]=_0x4c6d9d['id'];const _0x5c93c9=this[_0x5b05('0x9')],_0x5810ec=_0x2d4f73(_0x314a81,_0x4c6d9d[_0x5b05('0x2')]['isSuggestion']?_0x5b05('0xf'):_0x5b05('0x12')==_0x4c6d9d['type']?_0x5b05('0x11'):_0x5b05('0x3'));this[_0x5b05('0xa')](_0x5b05('0x7'),_0x4c6d9d[_0x5b05('0x7')]),this[_0x5b05('0x10')]({'tag':_0x5b05('0xe'),'attributes':{'class':[_0x5b05('0x4'),_0x5b05('0x6'),_0x5c93c9['to'](_0x5b05('0x7'),_0x2f39d5=>_0x5b05('0x5')+_0x2f39d5)],'tabindex':-0x1},'children':[{'tag':_0x5b05('0x0'),'children':[{'tag':_0x5b05('0x0'),'attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x5810ec}]},{'text':'\x20'+_0x4c6d9d[_0x5b05('0xb')]['name']}]}]});}[_0x5b05('0x8')](){this[_0x5b05('0xd')][_0x5b05('0x8')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3922=['bind','isNavigationMode','Loading...','ck-revision-history-ui__changes-navigation__navigation','isBackwardNavigationEnabled','currentChangeNumber','bindTemplate','_statusText','forward','set','isForwardNavigationEnabled','ck-revision-history-ui__changes-navigation','setTemplate','isReady','div','isEnabled','execute','ck-hidden','ck-revision-history-ui__changes-navigation__wrapper','_isStatusLabelVisible','ck-revision-history-ui','fire','X_OF_Y_CHANGES','Total','No\x20changes','backward','numberOfChanges','span','EDIT_X_OF_Y_REVISIONS','Show\x20previous\x20change'];(function(_0xd4b1b2,_0x392284){const _0x1350e0=function(_0x4f2a85){while(--_0x4f2a85){_0xd4b1b2['push'](_0xd4b1b2['shift']());}};_0x1350e0(++_0x392284);}(_0x3922,0x9b));const _0x1350=function(_0xd4b1b2,_0x392284){_0xd4b1b2=_0xd4b1b2-0x0;let _0x1350e0=_0x3922[_0xd4b1b2];return _0x1350e0;};import{View as _0x204192,ButtonView as _0x5e44a0,ToolbarSeparatorView as _0x5bbcfa}from'ckeditor5/src/ui';import{getTranslation as _0x5732dc}from'../../utils/common-translations';import _0x2e144d from'../../../theme/icons/arrow-up.svg';import _0x2819ce from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x204192{constructor(_0x2c6ccc){super(_0x2c6ccc);const _0x2cd4a1=this[_0x1350('0x1')],_0x3fb85a=new _0x5e44a0(_0x2c6ccc),_0x99e081=new _0x5e44a0(_0x2c6ccc);this[_0x1350('0x4')](_0x1350('0x1a'),!0x1),this[_0x1350('0x4')](_0x1350('0x8'),!0x1),this[_0x1350('0x4')]('currentChangeNumber',0x0),this['set'](_0x1350('0x15'),0x0),this['set'](_0x1350('0x5'),!0x1),this[_0x1350('0x4')](_0x1350('0x1d'),!0x1),this[_0x1350('0x19')]('_isStatusLabelVisible')['to'](this,_0x1350('0x8'),this,'numberOfChanges',(_0x41cdd0,_0x2f94db)=>_0x41cdd0&&_0x2f94db>0x0),this['bind'](_0x1350('0x2'))['to'](this,_0x1350('0x8'),this,_0x1350('0x0'),this,_0x1350('0x15'),this,_0x1350('0x1a'),(_0x4de2d1,_0x57696a,_0x1b2c51,_0x547e19)=>{if(!_0x4de2d1)return _0x5732dc(_0x2c6ccc,_0x1350('0x1b'));if(!_0x1b2c51)return _0x5732dc(_0x2c6ccc,_0x1350('0x13'));const _0x4b409a=_0x5732dc(_0x2c6ccc,'NUMBER_OF_CHANGES',_0x1b2c51);return _0x547e19?_0x5732dc(_0x2c6ccc,_0x1350('0x11'),[_0x57696a+0x1,_0x1b2c51]):_0x4b409a;}),_0x3fb85a[_0x1350('0x4')]({'label':_0x5732dc(_0x2c6ccc,_0x1350('0x18')),'tooltip':!0x0,'icon':_0x2e144d}),_0x99e081[_0x1350('0x4')]({'label':_0x5732dc(_0x2c6ccc,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2819ce}),_0x3fb85a['bind'](_0x1350('0xa'))['to'](this,_0x1350('0x1d')),_0x99e081['bind']('isEnabled')['to'](this,_0x1350('0x5')),_0x3fb85a['on'](_0x1350('0xb'),()=>this[_0x1350('0x10')]('execute',_0x1350('0x14'))),_0x99e081['on'](_0x1350('0xb'),()=>this[_0x1350('0x10')]('execute',_0x1350('0x3'))),this[_0x1350('0x7')]({'tag':_0x1350('0x9'),'attributes':{'class':['ck',_0x1350('0xf'),_0x1350('0x6')]},'children':[{'tag':_0x1350('0x16'),'attributes':{'class':[_0x1350('0xd')]},'children':[{'tag':_0x1350('0x16'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x2cd4a1['if'](_0x1350('0xe'),_0x1350('0xc'),_0x19b39a=>!_0x19b39a)]},'children':[{'text':_0x2cd4a1['to']('isNavigationMode',_0x2daf14=>_0x2daf14?_0x5732dc(_0x2c6ccc,_0x1350('0x17'))+':\x20':_0x5732dc(_0x2c6ccc,_0x1350('0x12'))+':\x20')}]},{'text':_0x2cd4a1['to']('_statusText')}]},new _0x5bbcfa(),{'tag':_0x1350('0x9'),'attributes':{'class':[_0x1350('0x1c')]},'children':[_0x3fb85a,_0x99e081]}]});}}
23
+ const _0x42ce=['isNavigationMode','Loading...','bind','ck-revision-history-ui__changes-navigation','numberOfChanges','Show\x20previous\x20change','isEnabled','isReady','span','No\x20changes','isForwardNavigationEnabled','currentChangeNumber','_isStatusLabelVisible','ck-revision-history-ui__changes-navigation__label','X_OF_Y_CHANGES','fire','execute','forward','_statusText','ck-revision-history-ui__changes-navigation__navigation','ck-revision-history-ui__changes-navigation__wrapper','backward','bindTemplate','ck-hidden','set','setTemplate','Total','isBackwardNavigationEnabled','div'];(function(_0x5c0c23,_0x42ceae){const _0x42c945=function(_0x25367a){while(--_0x25367a){_0x5c0c23['push'](_0x5c0c23['shift']());}};_0x42c945(++_0x42ceae);}(_0x42ce,0x1e7));const _0x42c9=function(_0x5c0c23,_0x42ceae){_0x5c0c23=_0x5c0c23-0x0;let _0x42c945=_0x42ce[_0x5c0c23];return _0x42c945;};import{View as _0x4f4ea5,ButtonView as _0x39cc65,ToolbarSeparatorView as _0x3f62d5}from'ckeditor5/src/ui';import{getTranslation as _0x212399}from'../../utils/common-translations';import _0x9dae86 from'../../../theme/icons/arrow-up.svg';import _0x8aacc8 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x4f4ea5{constructor(_0xa1bacd){super(_0xa1bacd);const _0xd237a5=this[_0x42c9('0x1c')],_0x422370=new _0x39cc65(_0xa1bacd),_0x3e6871=new _0x39cc65(_0xa1bacd);this['set'](_0x42c9('0x6'),!0x1),this['set'](_0x42c9('0xd'),!0x1),this[_0x42c9('0x1')]('currentChangeNumber',0x0),this['set'](_0x42c9('0xa'),0x0),this[_0x42c9('0x1')](_0x42c9('0x10'),!0x1),this[_0x42c9('0x1')](_0x42c9('0x4'),!0x1),this[_0x42c9('0x8')](_0x42c9('0x12'))['to'](this,_0x42c9('0xd'),this,_0x42c9('0xa'),(_0x480819,_0x3f86f9)=>_0x480819&&_0x3f86f9>0x0),this[_0x42c9('0x8')]('_statusText')['to'](this,_0x42c9('0xd'),this,_0x42c9('0x11'),this,_0x42c9('0xa'),this,_0x42c9('0x6'),(_0x1b3e62,_0x5f012d,_0x3ec410,_0x52913c)=>{if(!_0x1b3e62)return _0x212399(_0xa1bacd,_0x42c9('0x7'));if(!_0x3ec410)return _0x212399(_0xa1bacd,_0x42c9('0xf'));const _0x17e284=_0x212399(_0xa1bacd,'NUMBER_OF_CHANGES',_0x3ec410);return _0x52913c?_0x212399(_0xa1bacd,_0x42c9('0x14'),[_0x5f012d+0x1,_0x3ec410]):_0x17e284;}),_0x422370[_0x42c9('0x1')]({'label':_0x212399(_0xa1bacd,_0x42c9('0xb')),'tooltip':!0x0,'icon':_0x9dae86}),_0x3e6871[_0x42c9('0x1')]({'label':_0x212399(_0xa1bacd,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x8aacc8}),_0x422370[_0x42c9('0x8')](_0x42c9('0xc'))['to'](this,_0x42c9('0x4')),_0x3e6871[_0x42c9('0x8')](_0x42c9('0xc'))['to'](this,_0x42c9('0x10')),_0x422370['on']('execute',()=>this[_0x42c9('0x15')]('execute',_0x42c9('0x1b'))),_0x3e6871['on'](_0x42c9('0x16'),()=>this[_0x42c9('0x15')](_0x42c9('0x16'),_0x42c9('0x17'))),this[_0x42c9('0x2')]({'tag':_0x42c9('0x5'),'attributes':{'class':['ck','ck-revision-history-ui',_0x42c9('0x9')]},'children':[{'tag':'span','attributes':{'class':[_0x42c9('0x1a')]},'children':[{'tag':_0x42c9('0xe'),'attributes':{'class':[_0x42c9('0x13'),_0xd237a5['if'](_0x42c9('0x12'),_0x42c9('0x0'),_0x5c900a=>!_0x5c900a)]},'children':[{'text':_0xd237a5['to']('isNavigationMode',_0x2a4668=>_0x2a4668?_0x212399(_0xa1bacd,'EDIT_X_OF_Y_REVISIONS')+':\x20':_0x212399(_0xa1bacd,_0x42c9('0x3'))+':\x20')}]},{'text':_0xd237a5['to'](_0x42c9('0x18'))}]},new _0x3f62d5(),{'tag':'div','attributes':{'class':[_0x42c9('0x19')]},'children':[_0x422370,_0x3e6871]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x58fa=['view','pluginName','RevisionViewerLoadingOverlay','editing','change','roots','editor'];(function(_0x1a3a9a,_0x58fac1){const _0x29496d=function(_0x47dc2b){while(--_0x47dc2b){_0x1a3a9a['push'](_0x1a3a9a['shift']());}};_0x29496d(++_0x58fac1);}(_0x58fa,0xd2));const _0x2949=function(_0x1a3a9a,_0x58fac1){_0x1a3a9a=_0x1a3a9a-0x0;let _0x29496d=_0x58fa[_0x1a3a9a];return _0x29496d;};import{Plugin as _0x433970}from'ckeditor5/src/core';const oe='ck-editor__editable__loading-overlay';import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x433970{static get[_0x2949('0x1')](){return _0x2949('0x2');}['show'](){const _0x2f49e4=this[_0x2949('0x6')][_0x2949('0x3')][_0x2949('0x0')];_0x2f49e4['change'](_0x38f44e=>{for(const _0x4e2e0b of _0x2f49e4['document'][_0x2949('0x5')])_0x38f44e['addClass'](oe,_0x4e2e0b);});}['hide'](){const _0x2561b0=this[_0x2949('0x6')][_0x2949('0x3')][_0x2949('0x0')];_0x2561b0[_0x2949('0x4')](_0x3be5ac=>{for(const _0x511a3d of _0x2561b0['document']['roots'])_0x3be5ac['removeClass'](oe,_0x511a3d);});}}
23
+ const _0x20fb=['document','editor','addClass','editing','show','hide','change','roots','RevisionViewerLoadingOverlay','pluginName','ck-editor__editable__loading-overlay','removeClass'];(function(_0x2a66c2,_0x20fb68){const _0x3ad25b=function(_0x563972){while(--_0x563972){_0x2a66c2['push'](_0x2a66c2['shift']());}};_0x3ad25b(++_0x20fb68);}(_0x20fb,0x116));const _0x3ad2=function(_0x2a66c2,_0x20fb68){_0x2a66c2=_0x2a66c2-0x0;let _0x3ad25b=_0x20fb[_0x2a66c2];return _0x3ad25b;};import{Plugin as _0x470122}from'ckeditor5/src/core';const oe=_0x3ad2('0x8');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x470122{static get[_0x3ad2('0x7')](){return _0x3ad2('0x6');}[_0x3ad2('0x2')](){const _0x5cbc5a=this[_0x3ad2('0xb')]['editing']['view'];_0x5cbc5a[_0x3ad2('0x4')](_0x444170=>{for(const _0x157604 of _0x5cbc5a[_0x3ad2('0xa')][_0x3ad2('0x5')])_0x444170[_0x3ad2('0x0')](oe,_0x157604);});}[_0x3ad2('0x3')](){const _0x1e40b7=this[_0x3ad2('0xb')][_0x3ad2('0x1')]['view'];_0x1e40b7[_0x3ad2('0x4')](_0x1374b0=>{for(const _0x47bfd6 of _0x1e40b7['document'][_0x3ad2('0x5')])_0x1374b0[_0x3ad2('0x9')](oe,_0x47bfd6);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xd300=['showPreviousChange','currentChangeNumber','plugins','bind','componentFactory','showNextChange','Restore\x20this\x20revision','get','numberOfChanges','config','changesNavigation','closeRevisionViewerCallback','commands','show','execute','pluginName','forward','listenTo','requires','isEnabled','set','isReady','restoreRevision','Back\x20to\x20editing','isNavigationMode','editor','exitToEditing','hide','ck-revision-history-ui__back-to-editing'];(function(_0x4be421,_0xd300c0){const _0x195b52=function(_0x1953d5){while(--_0x1953d5){_0x4be421['push'](_0x4be421['shift']());}};_0x195b52(++_0xd300c0);}(_0xd300,0x1a3));const _0x195b=function(_0x4be421,_0xd300c0){_0x4be421=_0x4be421-0x0;let _0x195b52=_0xd300[_0x4be421];return _0x195b52;};import{Plugin as _0x44425d}from'ckeditor5/src/core';import{ButtonView as _0x3f2c44}from'ckeditor5/src/ui';import _0x3be9b0 from'./changesnavigationview';import _0x7879cf from'./../../revisionviewer';import _0x3240e8 from'./revisionviewerloadingoverlay';import{getTranslation as _0x325923}from'../../utils/common-translations';import _0x4d2615 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x44425d{static get[_0x195b('0x2')](){return'RevisionViewerUI';}static get[_0x195b('0x5')](){return[_0x7879cf,_0x3240e8];}['init'](){const _0x323273=this[_0x195b('0xc')],_0x5c3ab8=_0x323273[_0x195b('0x12')]['get'](_0x7879cf),_0x41f58d=_0x323273['plugins'][_0x195b('0x17')](_0x3240e8);_0x323273['ui'][_0x195b('0x14')]['add'](_0x195b('0xd'),_0x222d44=>{const _0x2e73ad=new _0x3f2c44(_0x222d44);return _0x2e73ad[_0x195b('0x7')]({'label':_0x325923(_0x222d44,_0x195b('0xa')),'icon':_0x4d2615,'withText':!0x0,'tooltip':!0x0,'class':_0x195b('0xf')}),this[_0x195b('0x4')](_0x2e73ad,_0x195b('0x1'),()=>{_0x323273[_0x195b('0x19')][_0x195b('0x17')]('revisionHistory')[_0x195b('0x1b')]();}),_0x2e73ad;}),_0x323273['ui'][_0x195b('0x14')]['add'](_0x195b('0x9'),_0x4c3eb5=>{const _0x13d723=new _0x3f2c44(_0x4c3eb5);return _0x13d723[_0x195b('0x7')]({'label':_0x325923(_0x4c3eb5,_0x195b('0x16')),'withText':!0x0,'tooltip':!0x0}),_0x13d723[_0x195b('0x13')]('isEnabled')['to'](_0x323273['commands'][_0x195b('0x17')](_0x195b('0x9'))),this[_0x195b('0x4')](_0x13d723,'execute',()=>_0x323273['execute'](_0x195b('0x9'))),_0x13d723;}),_0x323273['ui'][_0x195b('0x14')]['add'](_0x195b('0x1a'),_0x54ff81=>{const _0x3e7800=new _0x3be9b0(_0x54ff81),_0x1799db=_0x323273[_0x195b('0x1c')][_0x195b('0x17')](_0x195b('0x10')),_0x45f630=_0x323273[_0x195b('0x1c')][_0x195b('0x17')](_0x195b('0x15'));return _0x3e7800['bind']('isBackwardNavigationEnabled')['to'](_0x1799db,_0x195b('0x6')),_0x3e7800[_0x195b('0x13')]('isForwardNavigationEnabled')['to'](_0x45f630,_0x195b('0x6')),_0x3e7800['bind'](_0x195b('0x8'),_0x195b('0x11'),_0x195b('0x18'),_0x195b('0xb'))['to'](_0x5c3ab8),this[_0x195b('0x4')](_0x3e7800,_0x195b('0x1'),(_0x47af4e,_0x1567a3)=>{_0x323273[_0x195b('0x1')](_0x195b('0x3')===_0x1567a3?_0x195b('0x15'):'showPreviousChange');}),_0x3e7800;}),_0x41f58d[_0x195b('0x0')](),_0x5c3ab8['on']('change:isReady',(_0x1f959b,_0x393f91,_0x442a03)=>{_0x442a03?_0x41f58d[_0x195b('0xe')]():_0x41f58d[_0x195b('0x0')]();});}}
23
+ const _0x4b2e=['showPreviousChange','editor','changesNavigation','exitToEditing','revisionHistory','hide','isEnabled','restoreRevision','RevisionViewerUI','ck-revision-history-ui__back-to-editing','isNavigationMode','config','bind','closeRevisionViewerCallback','listenTo','pluginName','set','commands','Back\x20to\x20editing','add','init','componentFactory','currentChangeNumber','isBackwardNavigationEnabled','numberOfChanges','execute','get','forward','requires','showNextChange','plugins','isReady','show'];(function(_0x5677c0,_0x4b2ee6){const _0xe69093=function(_0x9c1bad){while(--_0x9c1bad){_0x5677c0['push'](_0x5677c0['shift']());}};_0xe69093(++_0x4b2ee6);}(_0x4b2e,0x1cf));const _0xe690=function(_0x5677c0,_0x4b2ee6){_0x5677c0=_0x5677c0-0x0;let _0xe69093=_0x4b2e[_0x5677c0];return _0xe69093;};import{Plugin as _0x56f990}from'ckeditor5/src/core';import{ButtonView as _0xb0e97f}from'ckeditor5/src/ui';import _0x77205d from'./changesnavigationview';import _0x1d4311 from'./../../revisionviewer';import _0x1f30fc from'./revisionviewerloadingoverlay';import{getTranslation as _0x206c93}from'../../utils/common-translations';import _0x2c31ad from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x56f990{static get[_0xe690('0xe')](){return _0xe690('0x7');}static get[_0xe690('0x1b')](){return[_0x1d4311,_0x1f30fc];}[_0xe690('0x13')](){const _0x29c6d0=this[_0xe690('0x0')],_0x569e8e=_0x29c6d0[_0xe690('0x1d')][_0xe690('0x19')](_0x1d4311),_0x200912=_0x29c6d0[_0xe690('0x1d')][_0xe690('0x19')](_0x1f30fc);_0x29c6d0['ui'][_0xe690('0x14')][_0xe690('0x12')](_0xe690('0x2'),_0x4eb422=>{const _0x158e8e=new _0xb0e97f(_0x4eb422);return _0x158e8e['set']({'label':_0x206c93(_0x4eb422,_0xe690('0x11')),'icon':_0x2c31ad,'withText':!0x0,'tooltip':!0x0,'class':_0xe690('0x8')}),this[_0xe690('0xd')](_0x158e8e,_0xe690('0x18'),()=>{_0x29c6d0[_0xe690('0xa')][_0xe690('0x19')](_0xe690('0x3'))[_0xe690('0xc')]();}),_0x158e8e;}),_0x29c6d0['ui'][_0xe690('0x14')][_0xe690('0x12')]('restoreRevision',_0x4444d1=>{const _0x537b36=new _0xb0e97f(_0x4444d1);return _0x537b36[_0xe690('0xf')]({'label':_0x206c93(_0x4444d1,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x537b36[_0xe690('0xb')](_0xe690('0x5'))['to'](_0x29c6d0[_0xe690('0x10')][_0xe690('0x19')](_0xe690('0x6'))),this[_0xe690('0xd')](_0x537b36,'execute',()=>_0x29c6d0[_0xe690('0x18')](_0xe690('0x6'))),_0x537b36;}),_0x29c6d0['ui']['componentFactory'][_0xe690('0x12')](_0xe690('0x1'),_0x14958f=>{const _0x1745a8=new _0x77205d(_0x14958f),_0x107a0f=_0x29c6d0[_0xe690('0x10')][_0xe690('0x19')](_0xe690('0x20')),_0x2aba64=_0x29c6d0[_0xe690('0x10')][_0xe690('0x19')](_0xe690('0x1c'));return _0x1745a8[_0xe690('0xb')](_0xe690('0x16'))['to'](_0x107a0f,_0xe690('0x5')),_0x1745a8[_0xe690('0xb')]('isForwardNavigationEnabled')['to'](_0x2aba64,'isEnabled'),_0x1745a8[_0xe690('0xb')](_0xe690('0x1e'),_0xe690('0x15'),_0xe690('0x17'),_0xe690('0x9'))['to'](_0x569e8e),this[_0xe690('0xd')](_0x1745a8,_0xe690('0x18'),(_0x483c2d,_0x26229d)=>{_0x29c6d0['execute'](_0xe690('0x1a')===_0x26229d?'showNextChange':_0xe690('0x20'));}),_0x1745a8;}),_0x200912[_0xe690('0x1f')](),_0x569e8e['on']('change:isReady',(_0x566786,_0x4bb6ef,_0x4b84c0)=>{_0x4b84c0?_0x200912[_0xe690('0x4')]():_0x200912['show']();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x675498,_0x20fdb6,_0x9d9d75){const t=_0x675498['t'];switch(_0x20fdb6){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'},_0x9d9d75);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x9d9d75);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 _0x20fdb6;}}
23
+ export function getTranslation(_0x4e8cdc,_0x1d59bf,_0x2d145c){const t=_0x4e8cdc['t'];switch(_0x1d59bf){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'},_0x2d145c);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2d145c);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 _0x1d59bf;}}