@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20240202.0 → 0.0.0-nightly-20240203.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 (32) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +5 -5
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.d.ts +1 -1
  5. package/src/editor/revisionviewereditor.js +1 -1
  6. package/src/editor/revisionviewereditorui.js +1 -1
  7. package/src/editor/revisionviewereditoruiview.js +1 -1
  8. package/src/revision.js +1 -1
  9. package/src/revisiondiff.js +1 -1
  10. package/src/revisionhistory.js +1 -1
  11. package/src/revisionsrepository.js +1 -1
  12. package/src/revisiontracker.js +1 -1
  13. package/src/revisionviewer.js +1 -1
  14. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  15. package/src/ui/revision/revisionauthorview.js +1 -1
  16. package/src/ui/revision/revisionnameview.js +1 -1
  17. package/src/ui/revision/revisionview.js +1 -1
  18. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  19. package/src/ui/revision/subrevisionview.js +1 -1
  20. package/src/ui/revision/utils.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  22. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  26. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  27. package/src/ui/revisionssidebar/utils.js +1 -1
  28. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  29. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  31. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  32. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3ef8=['Save\x20current\x20revision','history','RevisionHistoryUI','buttonView','add','Revision\x20history','children','remove','change:isOpen','revisionName','isOpen','submit','showRevisionViewerCallback','execute','editor','Open\x20revision\x20history','get','revisionHistory','RevisionTracker','saveRevision','componentFactory','set','length','config','saveButtonView','cancel','bind','isReady','plugins','isReadOnly','requires','addMany','editing','view','isEnabled','render'];(function(_0x3d99a2,_0x3ef819){const _0x50cf15=function(_0x13f8b2){while(--_0x13f8b2){_0x3d99a2['push'](_0x3d99a2['shift']());}};_0x50cf15(++_0x3ef819);}(_0x3ef8,0x167));const _0x50cf=function(_0x3d99a2,_0x3ef819){_0x3d99a2=_0x3d99a2-0x0;let _0x50cf15=_0x3ef8[_0x3d99a2];return _0x50cf15;};import{Plugin as _0x52d1b8,icons as _0x4c245c}from'ckeditor5/src/core.js';import{ListView as _0x175b2b,ListItemView as _0x2edc69,ButtonView as _0x4359ec,createDropdown as _0x3f50e7}from'ckeditor5/src/ui.js';import _0x7d84c7 from'../../revisiontracker.js';import _0x347d97 from'./revisionhistorysaverevisionformview.js';import{getTranslation as _0x38018a}from'../../utils/common-translations.js';export default class u extends _0x52d1b8{static get['pluginName'](){return _0x50cf('0x3');}static get[_0x50cf('0x1f')](){return[_0x7d84c7];}['init'](){const _0x23682c=this[_0x50cf('0xf')],_0x182e5d=_0x23682c['plugins'][_0x50cf('0x11')](_0x50cf('0x13'));_0x23682c['ui'][_0x50cf('0x15')][_0x50cf('0x5')]('revisionHistory',_0x1a8333=>{const _0x562279=_0x3f50e7(_0x1a8333),_0x397b2e=_0x562279['panelView'][_0x50cf('0x7')],_0x11dcea=new _0x175b2b(_0x1a8333),_0x3b4c0b=new _0x2edc69(_0x1a8333),_0x579f2c=new _0x4359ec(_0x1a8333),_0x4614d5=new _0x2edc69(_0x1a8333),_0x30d1bf=new _0x4359ec(_0x1a8333),_0xd24f24=new _0x347d97(_0x1a8333);function _0x484a68(){_0x397b2e['length']&&_0x397b2e[_0x50cf('0x8')](0x0),_0x397b2e['add'](_0x11dcea);}function _0x2eb3d0(){_0x562279[_0x50cf('0xb')]=!0x1,_0x23682c[_0x50cf('0x21')][_0x50cf('0x22')]['focus']();}return _0x562279[_0x50cf('0x1b')](_0x50cf('0x23'))['to'](_0x182e5d,_0x50cf('0x1c'),_0x182e5d,_0x50cf('0x23'),_0x23682c,_0x50cf('0x1e'),(_0x5b0826,_0x15df76,_0x544d6e)=>_0x5b0826&&_0x15df76&&!_0x544d6e),_0x562279[_0x50cf('0x4')][_0x50cf('0x16')]({'icon':_0x4c245c[_0x50cf('0x2')],'label':_0x38018a(_0x1a8333,_0x50cf('0x6')),'tooltip':!0x0}),_0x579f2c['set']({'label':_0x38018a(_0x1a8333,_0x50cf('0x1')),'withText':!0x0}),_0x579f2c[_0x50cf('0x1b')](_0x50cf('0x23'))['to'](_0x182e5d,_0x50cf('0x1c'),_0x182e5d,'isEnabled',_0x23682c,_0x50cf('0x1e'),(_0x54d254,_0xb086f1,_0x3b690d)=>_0x54d254&&_0xb086f1&&!_0x3b690d),_0x579f2c['on'](_0x50cf('0xe'),()=>function(){_0x397b2e[_0x50cf('0x17')]&&_0x397b2e[_0x50cf('0x8')](0x0),(_0xd24f24['reset'](),_0x397b2e[_0x50cf('0x5')](_0xd24f24),_0xd24f24['focus']());}()),_0x30d1bf[_0x50cf('0x16')]({'label':_0x38018a(_0x1a8333,_0x50cf('0x10')),'withText':!0x0}),_0x30d1bf[_0x50cf('0x1b')](_0x50cf('0x23'))['to'](_0x182e5d,'isReady',_0x23682c,_0x50cf('0x1e'),(_0x33cc62,_0x9b7d8c)=>_0x33cc62&&!_0x9b7d8c),_0x30d1bf['on']('execute',()=>{_0x23682c[_0x50cf('0x18')]['get'](_0x50cf('0x12'))[_0x50cf('0xd')](),_0x2eb3d0();}),_0x3b4c0b[_0x50cf('0x7')][_0x50cf('0x5')](_0x579f2c),_0x4614d5[_0x50cf('0x7')]['add'](_0x30d1bf),_0x11dcea['items'][_0x50cf('0x20')]([_0x3b4c0b,_0x4614d5]),_0x562279['on'](_0x50cf('0x9'),()=>_0x484a68()),_0xd24f24[_0x50cf('0x19')][_0x50cf('0x1b')](_0x50cf('0x23'))['to'](_0x182e5d,_0x50cf('0x1c'),_0x182e5d,_0x50cf('0x23'),_0x23682c,'isReadOnly',(_0x428f4e,_0xcbd575,_0x340efe)=>_0x428f4e&&_0xcbd575&&!_0x340efe),_0xd24f24['on'](_0x50cf('0xc'),()=>(_0x23682c[_0x50cf('0x1d')][_0x50cf('0x11')](_0x7d84c7)[_0x50cf('0x14')]({'name':_0xd24f24[_0x50cf('0xa')]}),void _0x2eb3d0())),_0xd24f24['on'](_0x50cf('0x1a'),()=>_0x484a68()),_0xd24f24[_0x50cf('0x0')](),_0x484a68(),_0x562279;});}}
23
+ const _0x6d62=['isReady','focus','RevisionTracker','editing','view','execute','children','editor','reset','history','submit','bind','saveRevision','revisionHistory','init','showRevisionViewerCallback','remove','Save\x20current\x20revision','add','Open\x20revision\x20history','saveButtonView','isReadOnly','change:isOpen','pluginName','revisionName','isEnabled','RevisionHistoryUI','componentFactory','get','length','requires','items','addMany','Revision\x20history','plugins','set'];(function(_0x25c24e,_0x6d62d8){const _0x161b7f=function(_0x2db30b){while(--_0x2db30b){_0x25c24e['push'](_0x25c24e['shift']());}};_0x161b7f(++_0x6d62d8);}(_0x6d62,0x102));const _0x161b=function(_0x25c24e,_0x6d62d8){_0x25c24e=_0x25c24e-0x0;let _0x161b7f=_0x6d62[_0x25c24e];return _0x161b7f;};import{Plugin as _0xe438d4,icons as _0x1bf7a2}from'ckeditor5/src/core.js';import{ListView as _0x5a0757,ListItemView as _0x72fa1e,ButtonView as _0x46e081,createDropdown as _0x4b7790}from'ckeditor5/src/ui.js';import _0x3ebccb from'../../revisiontracker.js';import _0x29d116 from'./revisionhistorysaverevisionformview.js';import{getTranslation as _0x3fbba2}from'../../utils/common-translations.js';export default class u extends _0xe438d4{static get[_0x161b('0x11')](){return _0x161b('0x14');}static get[_0x161b('0x18')](){return[_0x3ebccb];}[_0x161b('0x8')](){const _0x2e9a22=this[_0x161b('0x1')],_0xfc45bf=_0x2e9a22[_0x161b('0x1c')][_0x161b('0x16')](_0x161b('0x20'));_0x2e9a22['ui'][_0x161b('0x15')][_0x161b('0xc')](_0x161b('0x7'),_0x5a4784=>{const _0x59923a=_0x4b7790(_0x5a4784),_0xfa9b6=_0x59923a['panelView']['children'],_0x4dfd1f=new _0x5a0757(_0x5a4784),_0x543989=new _0x72fa1e(_0x5a4784),_0x234cf2=new _0x46e081(_0x5a4784),_0x1f32c9=new _0x72fa1e(_0x5a4784),_0x3dd3e0=new _0x46e081(_0x5a4784),_0x1ef836=new _0x29d116(_0x5a4784);function _0x9ada1d(){_0xfa9b6[_0x161b('0x17')]&&_0xfa9b6[_0x161b('0xa')](0x0),_0xfa9b6[_0x161b('0xc')](_0x4dfd1f);}function _0x5ab0e2(){_0x59923a['isOpen']=!0x1,_0x2e9a22[_0x161b('0x21')][_0x161b('0x22')][_0x161b('0x1f')]();}return _0x59923a['bind'](_0x161b('0x13'))['to'](_0xfc45bf,_0x161b('0x1e'),_0xfc45bf,'isEnabled',_0x2e9a22,'isReadOnly',(_0x324e1d,_0x428de8,_0x10f537)=>_0x324e1d&&_0x428de8&&!_0x10f537),_0x59923a['buttonView'][_0x161b('0x1d')]({'icon':_0x1bf7a2[_0x161b('0x3')],'label':_0x3fbba2(_0x5a4784,_0x161b('0x1b')),'tooltip':!0x0}),_0x234cf2['set']({'label':_0x3fbba2(_0x5a4784,_0x161b('0xb')),'withText':!0x0}),_0x234cf2[_0x161b('0x5')](_0x161b('0x13'))['to'](_0xfc45bf,_0x161b('0x1e'),_0xfc45bf,_0x161b('0x13'),_0x2e9a22,_0x161b('0xf'),(_0x4a48a6,_0x20900a,_0x329b3d)=>_0x4a48a6&&_0x20900a&&!_0x329b3d),_0x234cf2['on'](_0x161b('0x23'),()=>function(){_0xfa9b6[_0x161b('0x17')]&&_0xfa9b6[_0x161b('0xa')](0x0),(_0x1ef836[_0x161b('0x2')](),_0xfa9b6[_0x161b('0xc')](_0x1ef836),_0x1ef836[_0x161b('0x1f')]());}()),_0x3dd3e0[_0x161b('0x1d')]({'label':_0x3fbba2(_0x5a4784,_0x161b('0xd')),'withText':!0x0}),_0x3dd3e0['bind']('isEnabled')['to'](_0xfc45bf,_0x161b('0x1e'),_0x2e9a22,_0x161b('0xf'),(_0x1baf87,_0x590419)=>_0x1baf87&&!_0x590419),_0x3dd3e0['on'](_0x161b('0x23'),()=>{_0x2e9a22['config'][_0x161b('0x16')](_0x161b('0x7'))[_0x161b('0x9')](),_0x5ab0e2();}),_0x543989['children'][_0x161b('0xc')](_0x234cf2),_0x1f32c9[_0x161b('0x0')]['add'](_0x3dd3e0),_0x4dfd1f[_0x161b('0x19')][_0x161b('0x1a')]([_0x543989,_0x1f32c9]),_0x59923a['on'](_0x161b('0x10'),()=>_0x9ada1d()),_0x1ef836[_0x161b('0xe')][_0x161b('0x5')](_0x161b('0x13'))['to'](_0xfc45bf,_0x161b('0x1e'),_0xfc45bf,_0x161b('0x13'),_0x2e9a22,_0x161b('0xf'),(_0x5da59d,_0x57ad11,_0x2d690f)=>_0x5da59d&&_0x57ad11&&!_0x2d690f),_0x1ef836['on'](_0x161b('0x4'),()=>(_0x2e9a22[_0x161b('0x1c')]['get'](_0x3ebccb)[_0x161b('0x6')]({'name':_0x1ef836[_0x161b('0x12')]}),void _0x5ab0e2())),_0x1ef836['on']('cancel',()=>_0x9ada1d()),_0x1ef836['render'](),_0x9ada1d(),_0x59923a;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1294=['_handleRevisionSetName','config','listenTo','editor','compareAgainstSelected','_handleDiffChange','diff','destroy','name','length','add','ready','getRevisionsInDiff','repository','Name\x20this\x20revision','render','action','defaultRevisionActions','selectRevision','revisionHistory.viewerSidebarContainer','compare','_createRevisionActions','select','pluginName','requires','bind','RevisionsSidebar','revisionViews','get','appendChild','_handleEditorDataReady','string','data','revisionHistory.revisionActions','fieldView','isEnabled','map','plugins','_revisionsRepository','getEarlierVisibleRevision','remove','getRevision','_revisionViewer','element','_handleRevisionSelected','_sidebarView','isVisible','availableRevisionActions','isReady','_revisions','newRevisionId','locale','Restore\x20this\x20revision','getIndex','revisionHistory'];(function(_0x16cc32,_0x1294e4){const _0x4dc26e=function(_0x20040e){while(--_0x20040e){_0x16cc32['push'](_0x16cc32['shift']());}};_0x4dc26e(++_0x1294e4);}(_0x1294,0xc3));const _0x4dc2=function(_0x16cc32,_0x1294e4){_0x16cc32=_0x16cc32-0x0;let _0x4dc26e=_0x1294[_0x16cc32];return _0x4dc26e;};import{Plugin as _0x49bf94}from'ckeditor5/src/core.js';import _0xe4ccda from'./revisionssidebarview.js';import _0x453d3f from'../../revisionviewer.js';export default class w extends _0x49bf94{static get[_0x4dc2('0x30')](){return _0x4dc2('0x33');}static get[_0x4dc2('0x31')](){return[_0x453d3f];}constructor(_0x55b92f){super(_0x55b92f),this[_0x4dc2('0xc')]=_0x55b92f[_0x4dc2('0x7')]['get'](_0x453d3f),this[_0x4dc2('0x8')]=this[_0x4dc2('0xc')][_0x4dc2('0x26')],this[_0x4dc2('0xf')]=null;}['init'](){const _0x5ee32d=this['_revisionsRepository'][_0x4dc2('0x13')],_0x30bda4=this[_0x4dc2('0x2e')](),_0x103462=this['editor'][_0x4dc2('0x1a')][_0x4dc2('0x35')](_0x4dc2('0x2c'));this['_sidebarView']=new _0xe4ccda(this[_0x4dc2('0x1c')][_0x4dc2('0x15')],_0x5ee32d,_0x30bda4),this[_0x4dc2('0xf')]['on']('revisionSelected',this[_0x4dc2('0xe')]['bind'](this)),this[_0x4dc2('0xf')]['on']('revisionSetName',this[_0x4dc2('0x19')][_0x4dc2('0x32')](this)),this[_0x4dc2('0xf')][_0x4dc2('0x32')]('isEnabled')['to'](this['_revisionViewer']),this[_0x4dc2('0xf')]['timePeriodViews']['on'](_0x4dc2('0x23'),(_0x15ecc9,_0x5797b2)=>{_0x5797b2[_0x4dc2('0x34')]['on'](_0x4dc2('0x23'),(_0x36fbbb,_0x14246d)=>{_0x14246d[_0x4dc2('0x32')](_0x4dc2('0x5'),_0x4dc2('0x12'))['to'](this[_0x4dc2('0xc')]);});}),this[_0x4dc2('0xf')][_0x4dc2('0x28')](),this[_0x4dc2('0x1b')](this[_0x4dc2('0x1c')][_0x4dc2('0x2')],_0x4dc2('0x24'),this[_0x4dc2('0x0')]['bind'](this)),this['listenTo'](this[_0x4dc2('0xc')],'change:diff',this[_0x4dc2('0x1e')]['bind'](this)),_0x103462[_0x4dc2('0x36')](this[_0x4dc2('0xf')][_0x4dc2('0xd')]);}[_0x4dc2('0x20')](){this[_0x4dc2('0xf')][_0x4dc2('0xd')][_0x4dc2('0xa')](),this['_sidebarView'][_0x4dc2('0x20')]();}['_handleEditorDataReady'](){const _0x254b87=this['_revisionsRepository'][_0x4dc2('0xb')](0x0);if(_0x254b87){const _0x365f57=this['_revisionsRepository'][_0x4dc2('0x9')](_0x254b87['id']);this[_0x4dc2('0xc')][_0x4dc2('0x2d')](_0x254b87,_0x365f57);}}[_0x4dc2('0xe')](_0x53d1ea,_0x11b5f5){const _0x12c871=this[_0x4dc2('0x8')][_0x4dc2('0xb')](_0x11b5f5['id']),_0x464641=this[_0x4dc2('0x8')][_0x4dc2('0x9')](_0x12c871['id']);this[_0x4dc2('0xc')]['compare'](_0x12c871,_0x464641);}[_0x4dc2('0x19')](_0x1d54a9,_0x473f87){this[_0x4dc2('0x8')][_0x4dc2('0xb')](_0x473f87['id'])['setName'](_0x473f87[_0x4dc2('0x21')]);}[_0x4dc2('0x1e')](_0x3ea801,_0x28a4dc,_0x26d572){const _0x1df9fd=this[_0x4dc2('0x8')][_0x4dc2('0x25')](_0x26d572);_0x1df9fd[_0x4dc2('0x22')]>0x2?(this['_sidebarView']['highlightRevisions'](_0x1df9fd),this[_0x4dc2('0xf')][_0x4dc2('0x2b')](null)):(this[_0x4dc2('0xf')]['highlightRevisions']([]),this[_0x4dc2('0xf')][_0x4dc2('0x2b')](_0x1df9fd[0x0]));}['_createRevisionActions'](){const _0x111af4=this['editor'],_0x2c59ac=w[_0x4dc2('0x11')],_0x40dd41=_0x111af4[_0x4dc2('0x1a')]['get'](_0x4dc2('0x3'))||w[_0x4dc2('0x2a')];if(_0x40dd41[_0x4dc2('0x22')])return _0x40dd41[_0x4dc2('0x6')](_0x5388d1=>{const _0x1cb886=_0x4dc2('0x1')==typeof _0x5388d1?Object['assign']({},_0x2c59ac[_0x5388d1]):_0x5388d1;return _0x1cb886[_0x4dc2('0x29')]=_0x1cb886['action'][_0x4dc2('0x32')](this,_0x111af4),_0x1cb886[_0x4dc2('0x10')]&&(_0x1cb886[_0x4dc2('0x10')]=_0x1cb886[_0x4dc2('0x10')][_0x4dc2('0x32')](this,_0x111af4)),_0x1cb886;});}}w[_0x4dc2('0x11')]={'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x36cc8e},_0x3b7bfc)=>{const _0x54cefa=_0x36cc8e[_0x4dc2('0x35')](_0x453d3f),_0x2da2a3=_0x54cefa[_0x4dc2('0x26')];let _0x229a5c=_0x54cefa[_0x4dc2('0x1f')][_0x4dc2('0x14')],_0x1ff73c=_0x3b7bfc['id'];_0x2da2a3[_0x4dc2('0x17')](_0x229a5c)>_0x2da2a3['getIndex'](_0x1ff73c)&&([_0x229a5c,_0x1ff73c]=[_0x1ff73c,_0x229a5c]),_0x54cefa[_0x4dc2('0x2d')](_0x229a5c,_0x1ff73c);},'isVisible':({plugins:_0x1eca0d},_0x15df8f)=>{const _0x509f7f=_0x1eca0d['get'](_0x453d3f);return!(_0x509f7f['repository']['getRevisionsInDiff'](_0x509f7f[_0x4dc2('0x1f')])[_0x4dc2('0x22')]>0x2)&&!_0x15df8f['isSelected'];}},'restoreRevision':{'name':_0x4dc2('0x16'),'action':(_0x49998c,{id:_0x32b7a3})=>{_0x49998c[_0x4dc2('0x1a')][_0x4dc2('0x35')](_0x4dc2('0x18'))['restoreRevisionCallback'](_0x32b7a3);},'isVisible':({plugins:_0x172999},_0x1c14c1)=>!!_0x172999[_0x4dc2('0x35')](_0x453d3f)[_0x4dc2('0x26')]['getLaterVisibleRevision'](_0x1c14c1['id'])},'nameRevision':{'name':_0x4dc2('0x27'),'action':({plugins:_0x12338a},{id:_0x2d6087,revisionNameView:_0x181e77})=>{const _0x4dfe1d=_0x12338a[_0x4dc2('0x35')](_0x453d3f),_0x544f08=_0x4dfe1d[_0x4dc2('0x26')][_0x4dc2('0x9')](_0x2d6087);_0x4dfe1d[_0x4dc2('0x2d')](_0x2d6087,_0x544f08),_0x181e77['focus'](),_0x181e77[_0x4dc2('0x4')][_0x4dc2('0x2f')]();}}},w['defaultRevisionActions']=[_0x4dc2('0x1d'),'restoreRevision','nameRevision'];
23
+ const _0xdff4=['_handleRevisionSelected','getRevision','revisionSetName','isVisible','RevisionsSidebar','locale','getLaterVisibleRevision','config','diff','repository','_revisionViewer','add','_handleRevisionSetName','Compare\x20against\x20selected','change:diff','length','Restore\x20this\x20revision','plugins','appendChild','map','select','restoreRevision','element','string','availableRevisionActions','defaultRevisionActions','_revisionsRepository','bind','fieldView','action','isSelected','compare','revisionHistory.viewerSidebarContainer','revisionSelected','revisionHistory.revisionActions','editor','getRevisionsInDiff','_revisions','init','revisionViews','pluginName','_createRevisionActions','render','compareAgainstSelected','timePeriodViews','get','highlightRevisions','_handleEditorDataReady','Name\x20this\x20revision','_sidebarView','getEarlierVisibleRevision','isReady','destroy','restoreRevisionCallback','listenTo','selectRevision','remove'];(function(_0x4fda47,_0xdff4ec){const _0x26b933=function(_0x23605f){while(--_0x23605f){_0x4fda47['push'](_0x4fda47['shift']());}};_0x26b933(++_0xdff4ec);}(_0xdff4,0x1b3));const _0x26b9=function(_0x4fda47,_0xdff4ec){_0x4fda47=_0x4fda47-0x0;let _0x26b933=_0xdff4[_0x4fda47];return _0x26b933;};import{Plugin as _0x14636f}from'ckeditor5/src/core.js';import _0x8febfc from'./revisionssidebarview.js';import _0x25d3ce from'../../revisionviewer.js';export default class w extends _0x14636f{static get[_0x26b9('0x4')](){return _0x26b9('0x19');}static get['requires'](){return[_0x25d3ce];}constructor(_0x4828d5){super(_0x4828d5),this[_0x26b9('0x1f')]=_0x4828d5[_0x26b9('0x26')]['get'](_0x25d3ce),this[_0x26b9('0x2f')]=this[_0x26b9('0x1f')][_0x26b9('0x1e')],this[_0x26b9('0xd')]=null;}[_0x26b9('0x2')](){const _0x291532=this['_revisionsRepository'][_0x26b9('0x1')],_0x41aee2=this[_0x26b9('0x5')](),_0x3b2a59=this[_0x26b9('0x38')]['config'][_0x26b9('0x9')](_0x26b9('0x35'));this[_0x26b9('0xd')]=new _0x8febfc(this[_0x26b9('0x38')][_0x26b9('0x1a')],_0x291532,_0x41aee2),this[_0x26b9('0xd')]['on'](_0x26b9('0x36'),this[_0x26b9('0x15')][_0x26b9('0x30')](this)),this[_0x26b9('0xd')]['on'](_0x26b9('0x17'),this[_0x26b9('0x21')][_0x26b9('0x30')](this)),this[_0x26b9('0xd')][_0x26b9('0x30')]('isEnabled')['to'](this[_0x26b9('0x1f')]),this[_0x26b9('0xd')][_0x26b9('0x8')]['on'](_0x26b9('0x20'),(_0x523f18,_0x379e43)=>{_0x379e43[_0x26b9('0x3')]['on'](_0x26b9('0x20'),(_0x2d1a56,_0xf394e6)=>{_0xf394e6[_0x26b9('0x30')]('isEnabled',_0x26b9('0xf'))['to'](this[_0x26b9('0x1f')]);});}),this[_0x26b9('0xd')][_0x26b9('0x6')](),this['listenTo'](this[_0x26b9('0x38')]['data'],'ready',this[_0x26b9('0xb')][_0x26b9('0x30')](this)),this[_0x26b9('0x12')](this[_0x26b9('0x1f')],_0x26b9('0x23'),this['_handleDiffChange'][_0x26b9('0x30')](this)),_0x3b2a59[_0x26b9('0x27')](this[_0x26b9('0xd')][_0x26b9('0x2b')]);}[_0x26b9('0x10')](){this[_0x26b9('0xd')][_0x26b9('0x2b')][_0x26b9('0x14')](),this[_0x26b9('0xd')][_0x26b9('0x10')]();}[_0x26b9('0xb')](){const _0x9f7255=this[_0x26b9('0x2f')][_0x26b9('0x16')](0x0);if(_0x9f7255){const _0x4d320f=this['_revisionsRepository'][_0x26b9('0xe')](_0x9f7255['id']);this[_0x26b9('0x1f')][_0x26b9('0x34')](_0x9f7255,_0x4d320f);}}[_0x26b9('0x15')](_0x21ca78,_0x1d33be){const _0x326ad3=this[_0x26b9('0x2f')]['getRevision'](_0x1d33be['id']),_0xb4ab3e=this['_revisionsRepository'][_0x26b9('0xe')](_0x326ad3['id']);this[_0x26b9('0x1f')]['compare'](_0x326ad3,_0xb4ab3e);}[_0x26b9('0x21')](_0x350f73,_0x590ae7){this[_0x26b9('0x2f')][_0x26b9('0x16')](_0x590ae7['id'])['setName'](_0x590ae7['name']);}['_handleDiffChange'](_0x52d42d,_0x59cc0a,_0x8681c2){const _0x3f3d26=this[_0x26b9('0x2f')][_0x26b9('0x0')](_0x8681c2);_0x3f3d26[_0x26b9('0x24')]>0x2?(this[_0x26b9('0xd')][_0x26b9('0xa')](_0x3f3d26),this[_0x26b9('0xd')][_0x26b9('0x13')](null)):(this[_0x26b9('0xd')]['highlightRevisions']([]),this[_0x26b9('0xd')][_0x26b9('0x13')](_0x3f3d26[0x0]));}[_0x26b9('0x5')](){const _0x56177c=this[_0x26b9('0x38')],_0x4932fa=w[_0x26b9('0x2d')],_0x52b1e2=_0x56177c['config'][_0x26b9('0x9')](_0x26b9('0x37'))||w['defaultRevisionActions'];if(_0x52b1e2[_0x26b9('0x24')])return _0x52b1e2[_0x26b9('0x28')](_0x76c055=>{const _0x38979a=_0x26b9('0x2c')==typeof _0x76c055?Object['assign']({},_0x4932fa[_0x76c055]):_0x76c055;return _0x38979a[_0x26b9('0x32')]=_0x38979a[_0x26b9('0x32')]['bind'](this,_0x56177c),_0x38979a['isVisible']&&(_0x38979a[_0x26b9('0x18')]=_0x38979a[_0x26b9('0x18')][_0x26b9('0x30')](this,_0x56177c)),_0x38979a;});}}w[_0x26b9('0x2d')]={'compareAgainstSelected':{'name':_0x26b9('0x22'),'action':({plugins:_0x58bce8},_0x1b7806)=>{const _0x1e0d6d=_0x58bce8[_0x26b9('0x9')](_0x25d3ce),_0x45fbe1=_0x1e0d6d[_0x26b9('0x1e')];let _0x597e0e=_0x1e0d6d[_0x26b9('0x1d')]['newRevisionId'],_0x5f1da2=_0x1b7806['id'];_0x45fbe1['getIndex'](_0x597e0e)>_0x45fbe1['getIndex'](_0x5f1da2)&&([_0x597e0e,_0x5f1da2]=[_0x5f1da2,_0x597e0e]),_0x1e0d6d['compare'](_0x597e0e,_0x5f1da2);},'isVisible':({plugins:_0x224873},_0x5cdbbc)=>{const _0x2b93bf=_0x224873['get'](_0x25d3ce);return!(_0x2b93bf[_0x26b9('0x1e')]['getRevisionsInDiff'](_0x2b93bf[_0x26b9('0x1d')])[_0x26b9('0x24')]>0x2)&&!_0x5cdbbc[_0x26b9('0x33')];}},'restoreRevision':{'name':_0x26b9('0x25'),'action':(_0xcac8b,{id:_0x2d2e59})=>{_0xcac8b[_0x26b9('0x1c')][_0x26b9('0x9')]('revisionHistory')[_0x26b9('0x11')](_0x2d2e59);},'isVisible':({plugins:_0x420b0a},_0x348539)=>!!_0x420b0a[_0x26b9('0x9')](_0x25d3ce)['repository'][_0x26b9('0x1b')](_0x348539['id'])},'nameRevision':{'name':_0x26b9('0xc'),'action':({plugins:_0x513654},{id:_0x1cd639,revisionNameView:_0x7263f6})=>{const _0x599670=_0x513654[_0x26b9('0x9')](_0x25d3ce),_0x21f585=_0x599670['repository'][_0x26b9('0xe')](_0x1cd639);_0x599670[_0x26b9('0x34')](_0x1cd639,_0x21f585),_0x7263f6['focus'](),_0x7263f6[_0x26b9('0x31')][_0x26b9('0x29')]();}}},w[_0x26b9('0x2e')]=[_0x26b9('0x7'),_0x26b9('0x2a'),'nameRevision'];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ae8=['ck-revision-history-sidebar__header__label','Revision\x20history','ck-reset_all','ck-revision-history-sidebar__header','setTemplate','div'];(function(_0x4b27ee,_0x4ae820){const _0x40afb4=function(_0x5e3c2a){while(--_0x5e3c2a){_0x4b27ee['push'](_0x4b27ee['shift']());}};_0x40afb4(++_0x4ae820);}(_0x4ae8,0x1a0));const _0x40af=function(_0x4b27ee,_0x4ae820){_0x4b27ee=_0x4b27ee-0x0;let _0x40afb4=_0x4ae8[_0x4b27ee];return _0x40afb4;};import{View as _0x4ee7b3,IconView as _0x8bfda1}from'ckeditor5/src/ui.js';import{getTranslation as _0x42c507}from'../../utils/common-translations.js';import{icons as _0x36ea63}from'ckeditor5/src/core.js';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rs extends _0x4ee7b3{constructor(_0x959e09){super(_0x959e09);const _0x2ebb0c=new _0x8bfda1();_0x2ebb0c['content']=_0x36ea63['history'],this[_0x40af('0x2')]({'tag':_0x40af('0x3'),'attributes':{'class':['ck',_0x40af('0x0'),_0x40af('0x1')]},'children':[_0x2ebb0c,{'tag':'span','attributes':{'class':['ck',_0x40af('0x4')]},'children':[_0x42c507(_0x959e09,_0x40af('0x5'))]}]});}}
23
+ const _0x5e09=['ck-reset_all','ck-revision-history-sidebar__header__label','setTemplate','history','span','div','content'];(function(_0x178edd,_0x5e09ce){const _0x7e08a2=function(_0x3674c4){while(--_0x3674c4){_0x178edd['push'](_0x178edd['shift']());}};_0x7e08a2(++_0x5e09ce);}(_0x5e09,0xc7));const _0x7e08=function(_0x178edd,_0x5e09ce){_0x178edd=_0x178edd-0x0;let _0x7e08a2=_0x5e09[_0x178edd];return _0x7e08a2;};import{View as _0x44dd59,IconView as _0x31c2f3}from'ckeditor5/src/ui.js';import{getTranslation as _0x43a5a4}from'../../utils/common-translations.js';import{icons as _0x2e9d71}from'ckeditor5/src/core.js';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rs extends _0x44dd59{constructor(_0x1949b6){super(_0x1949b6);const _0x747456=new _0x31c2f3();_0x747456[_0x7e08('0x3')]=_0x2e9d71[_0x7e08('0x0')],this[_0x7e08('0x6')]({'tag':_0x7e08('0x2'),'attributes':{'class':['ck',_0x7e08('0x4'),'ck-revision-history-sidebar__header']},'children':[_0x747456,{'tag':_0x7e08('0x1'),'attributes':{'class':['ck',_0x7e08('0x5')]},'children':[_0x43a5a4(_0x1949b6,'Revision\x20history')]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x112b=['div','setTemplate','ck-revision-history-sidebar__time-period__label','addRevision','startDate','setName','createCollection','localizedPeriodName','locale','span','_revisionActions','add','revisionViews','removeRevision','ck-revision-history-sidebar__time-period','uiLanguage','remove','delegate'];(function(_0x5aa0dc,_0x112bc4){const _0x17df00=function(_0x35b545){while(--_0x35b545){_0x5aa0dc['push'](_0x5aa0dc['shift']());}};_0x17df00(++_0x112bc4);}(_0x112b,0x1e1));const _0x17df=function(_0x5aa0dc,_0x112bc4){_0x5aa0dc=_0x5aa0dc-0x0;let _0x17df00=_0x112b[_0x5aa0dc];return _0x17df00;};import{View as _0xbeb1b}from'ckeditor5/src/ui.js';import _0x321f59 from'../revision/revisionview.js';import{getDateTimePeriodInfo as _0x3fe9af}from'./utils.js';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class vi extends _0xbeb1b{constructor(_0x1aa19f,_0x27ddc9,_0xe4d346){super(_0x1aa19f);const _0xbe2990=_0x3fe9af(_0x27ddc9,this[_0x17df('0xd')][_0x17df('0x2')])[_0x17df('0xc')];this[_0x17df('0x9')]=_0x27ddc9,this[_0x17df('0x11')]=this[_0x17df('0xb')](),this[_0x17df('0xf')]=_0xe4d346,this['revisionViews']['delegate']('select')['to'](this),this[_0x17df('0x11')][_0x17df('0x4')](_0x17df('0xa'))['to'](this),this[_0x17df('0x6')]({'tag':'div','attributes':{'class':['ck',_0x17df('0x1')]},'children':[{'tag':_0x17df('0xe'),'attributes':{'class':['ck',_0x17df('0x7')]},'children':[{'text':_0xbe2990}]},{'tag':_0x17df('0x5'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this[_0x17df('0x11')]}]});}[_0x17df('0x8')](_0x10ceb){const _0x4683cd=new _0x321f59(this[_0x17df('0xd')],_0x10ceb,this[_0x17df('0xf')]);this[_0x17df('0x11')][_0x17df('0x10')](_0x4683cd);}[_0x17df('0x0')](_0x243ec1){const _0x134882=this[_0x17df('0x11')]['find'](_0x2bbcdc=>_0x2bbcdc['id']===_0x243ec1['id']);this[_0x17df('0x11')][_0x17df('0x3')](_0x134882);}}
23
+ const _0x42bb=['ck-revision-history-sidebar__time-period','delegate','revisionViews','localizedPeriodName','addRevision','ck-revision-history-sidebar__time-period__revisions','removeRevision','div','createCollection','uiLanguage','span','find','startDate','select','locale','_revisionActions','setTemplate','ck-revision-history-sidebar__time-period__label'];(function(_0x5499ce,_0x42bb5c){const _0xa44eae=function(_0x292d43){while(--_0x292d43){_0x5499ce['push'](_0x5499ce['shift']());}};_0xa44eae(++_0x42bb5c);}(_0x42bb,0x1c7));const _0xa44e=function(_0x5499ce,_0x42bb5c){_0x5499ce=_0x5499ce-0x0;let _0xa44eae=_0x42bb[_0x5499ce];return _0xa44eae;};import{View as _0x2e423a}from'ckeditor5/src/ui.js';import _0x59beb5 from'../revision/revisionview.js';import{getDateTimePeriodInfo as _0xcb5f9e}from'./utils.js';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class vi extends _0x2e423a{constructor(_0x459755,_0x17b7c8,_0xdf7830){super(_0x459755);const _0xb1dee8=_0xcb5f9e(_0x17b7c8,this['locale'][_0xa44e('0x4')])[_0xa44e('0x10')];this[_0xa44e('0x7')]=_0x17b7c8,this[_0xa44e('0xf')]=this[_0xa44e('0x3')](),this[_0xa44e('0xa')]=_0xdf7830,this[_0xa44e('0xf')]['delegate'](_0xa44e('0x8'))['to'](this),this[_0xa44e('0xf')][_0xa44e('0xe')]('setName')['to'](this),this[_0xa44e('0xb')]({'tag':_0xa44e('0x2'),'attributes':{'class':['ck',_0xa44e('0xd')]},'children':[{'tag':_0xa44e('0x5'),'attributes':{'class':['ck',_0xa44e('0xc')]},'children':[{'text':_0xb1dee8}]},{'tag':'div','attributes':{'class':['ck',_0xa44e('0x0')]},'children':this[_0xa44e('0xf')]}]});}[_0xa44e('0x11')](_0x4d4d8e){const _0x27c7d1=new _0x59beb5(this[_0xa44e('0x9')],_0x4d4d8e,this[_0xa44e('0xa')]);this[_0xa44e('0xf')]['add'](_0x27c7d1);}[_0xa44e('0x1')](_0x5f2f56){const _0xf86aab=this[_0xa44e('0xf')][_0xa44e('0x6')](_0x376363=>_0x376363['id']===_0x5f2f56['id']);this[_0xa44e('0xf')]['remove'](_0xf86aab);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4c09=['bindTemplate','add','_revisions','unhighlight','remove','startDate','ck-rounded-corners','getTime','ck-revision-history-sidebar','createdAt','map','ck-revision-history-sidebar__timeline','flat','uiLanguage','ck-disabled','highlight','timePeriodViews','isEnabled','setName','revisionViews','revisionSelected','deselect','locale','_revisionActions','selectRevision','fire','delegate','select','removeRevision','div','_addRevision','some','_getTimePeriodViewByStartDate','set','render'];(function(_0x5b683c,_0x4c0912){const _0x312de4=function(_0x3f34d8){while(--_0x3f34d8){_0x5b683c['push'](_0x5b683c['shift']());}};_0x312de4(++_0x4c0912);}(_0x4c09,0x1e4));const _0x312d=function(_0x5b683c,_0x4c0912){_0x5b683c=_0x5b683c-0x0;let _0x312de4=_0x4c09[_0x5b683c];return _0x312de4;};import{View as _0x18e73b}from'ckeditor5/src/ui.js';import _0x49243d from'./revisionssidebartimeperiodview.js';import _0x58920b from'./revisionssidebarheaderview.js';import{getDateTimePeriodInfo as _0x56057f}from'./utils.js';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class di extends _0x18e73b{constructor(_0x199656,_0x5347ad,_0x53542a){super(_0x199656);const _0x4d79aa=this[_0x312d('0x6')];this[_0x312d('0x16')]=this['createCollection'](),this[_0x312d('0x16')][_0x312d('0x20')](_0x312d('0x21'))['to'](this),this[_0x312d('0x16')][_0x312d('0x20')]('setName')['to'](this),this[_0x312d('0x8')]=_0x5347ad,this[_0x312d('0x1d')]=_0x53542a,this['on']('select',(_0x745d86,_0x1feb75)=>{this[_0x312d('0x1f')](_0x312d('0x1a'),_0x1feb75);}),this['on'](_0x312d('0x18'),(_0x4fb4c0,_0x1928a2)=>{this[_0x312d('0x1f')]('revisionSetName',_0x1928a2);}),this[_0x312d('0x4')](_0x312d('0x17'),!0x1),this['setTemplate']({'tag':_0x312d('0x0'),'attributes':{'class':['ck','ck-reset',_0x312d('0xc'),_0x312d('0xe')]},'children':[new _0x58920b(_0x199656),{'tag':'div','attributes':{'class':['ck',_0x312d('0x11'),_0x4d79aa['if'](_0x312d('0x17'),_0x312d('0x14'),_0x50070f=>!_0x50070f)]},'children':this[_0x312d('0x16')]}]});}['render'](){super[_0x312d('0x5')]();for(const _0x41cda4 of this[_0x312d('0x8')])this[_0x312d('0x1')](_0x41cda4);this[_0x312d('0x8')]['on'](_0x312d('0x7'),(_0x3d3fd0,_0xecca1)=>{this['_addRevision'](_0xecca1);}),this[_0x312d('0x8')]['on'](_0x312d('0xa'),(_0x51d848,_0x5af699)=>{this['_removeRevision'](_0x5af699);});}get[_0x312d('0x19')](){return this['timePeriodViews'][_0x312d('0x10')](_0x5bf386=>_0x5bf386[_0x312d('0x19')][_0x312d('0x10')](_0xa55825=>_0xa55825))[_0x312d('0x12')]();}[_0x312d('0x1e')](_0x1c45f7){for(const _0x4d4a14 of this[_0x312d('0x19')])_0x1c45f7&&_0x1c45f7['id']===_0x4d4a14['id']?_0x4d4a14[_0x312d('0x21')]():_0x4d4a14[_0x312d('0x1b')]();}['highlightRevisions'](_0x4c488a){for(const _0x4cd7ba of this['revisionViews'])_0x4c488a[_0x312d('0x2')](({id:_0x1e0c82})=>_0x1e0c82===_0x4cd7ba['id'])?_0x4cd7ba[_0x312d('0x15')]():_0x4cd7ba[_0x312d('0x9')]();}[_0x312d('0x1')](_0x295dde){const _0x17588c=_0x56057f(_0x295dde[_0x312d('0xf')],this[_0x312d('0x1c')][_0x312d('0x13')])[_0x312d('0xb')];let _0x4fec46=this['timePeriodViews']['get'](0x0);_0x4fec46&&_0x4fec46[_0x312d('0xb')]['getTime']()===_0x17588c['getTime']()||(_0x4fec46=new _0x49243d(this['locale'],_0x17588c,this[_0x312d('0x1d')]),this['timePeriodViews'][_0x312d('0x7')](_0x4fec46)),_0x4fec46['addRevision'](_0x295dde);}['_removeRevision'](_0x34df08){const _0x3dbf1f=_0x56057f(_0x34df08[_0x312d('0xf')],this[_0x312d('0x1c')]['uiLanguage'])[_0x312d('0xb')];this[_0x312d('0x3')](_0x3dbf1f)[_0x312d('0x22')](_0x34df08);}[_0x312d('0x3')](_0xc132e6){return this[_0x312d('0x16')]['find'](_0x2c5f84=>_0x2c5f84[_0x312d('0xb')]['getTime']()===_0xc132e6[_0x312d('0xd')]());}}
23
+ const _0x137d=['removeRevision','ck-reset','startDate','_removeRevision','locale','_revisionActions','unhighlight','render','highlight','deselect','getTime','div','delegate','ck-revision-history-sidebar','createdAt','uiLanguage','remove','revisionSetName','addRevision','_addRevision','map','set','_revisions','some','revisionViews','bindTemplate','fire','timePeriodViews','_getTimePeriodViewByStartDate','setTemplate','add','isEnabled','find','select','createCollection','revisionSelected','setName'];(function(_0x496d59,_0x137d75){const _0x472f6a=function(_0x2b8557){while(--_0x2b8557){_0x496d59['push'](_0x496d59['shift']());}};_0x472f6a(++_0x137d75);}(_0x137d,0x198));const _0x472f=function(_0x496d59,_0x137d75){_0x496d59=_0x496d59-0x0;let _0x472f6a=_0x137d[_0x496d59];return _0x472f6a;};import{View as _0x3c42d6}from'ckeditor5/src/ui.js';import _0x8acecb from'./revisionssidebartimeperiodview.js';import _0x254025 from'./revisionssidebarheaderview.js';import{getDateTimePeriodInfo as _0x38de19}from'./utils.js';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class di extends _0x3c42d6{constructor(_0xb8edaf,_0x30e28f,_0x4c253d){super(_0xb8edaf);const _0x342c44=this[_0x472f('0x18')];this[_0x472f('0x1a')]=this[_0x472f('0x21')](),this[_0x472f('0x1a')][_0x472f('0xb')](_0x472f('0x20'))['to'](this),this[_0x472f('0x1a')]['delegate']('setName')['to'](this),this[_0x472f('0x15')]=_0x30e28f,this[_0x472f('0x4')]=_0x4c253d,this['on'](_0x472f('0x20'),(_0x2d7ece,_0x1f35d0)=>{this[_0x472f('0x19')](_0x472f('0x22'),_0x1f35d0);}),this['on'](_0x472f('0x23'),(_0x4f0277,_0x12b73d)=>{this[_0x472f('0x19')](_0x472f('0x10'),_0x12b73d);}),this[_0x472f('0x14')](_0x472f('0x1e'),!0x1),this[_0x472f('0x1c')]({'tag':_0x472f('0xa'),'attributes':{'class':['ck',_0x472f('0x0'),'ck-rounded-corners',_0x472f('0xc')]},'children':[new _0x254025(_0xb8edaf),{'tag':_0x472f('0xa'),'attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x342c44['if']('isEnabled','ck-disabled',_0xeab39a=>!_0xeab39a)]},'children':this[_0x472f('0x1a')]}]});}[_0x472f('0x6')](){super[_0x472f('0x6')]();for(const _0x5200f4 of this[_0x472f('0x15')])this[_0x472f('0x12')](_0x5200f4);this[_0x472f('0x15')]['on'](_0x472f('0x1d'),(_0x4591b7,_0x5d5270)=>{this[_0x472f('0x12')](_0x5d5270);}),this[_0x472f('0x15')]['on'](_0x472f('0xf'),(_0x35279c,_0x27967e)=>{this[_0x472f('0x2')](_0x27967e);});}get[_0x472f('0x17')](){return this[_0x472f('0x1a')]['map'](_0x5acfb8=>_0x5acfb8['revisionViews'][_0x472f('0x13')](_0x1785c0=>_0x1785c0))['flat']();}['selectRevision'](_0x3ede3d){for(const _0x3786e3 of this['revisionViews'])_0x3ede3d&&_0x3ede3d['id']===_0x3786e3['id']?_0x3786e3[_0x472f('0x20')]():_0x3786e3[_0x472f('0x8')]();}['highlightRevisions'](_0x3db1b8){for(const _0x32e9d0 of this[_0x472f('0x17')])_0x3db1b8[_0x472f('0x16')](({id:_0x3ec0a5})=>_0x3ec0a5===_0x32e9d0['id'])?_0x32e9d0[_0x472f('0x7')]():_0x32e9d0[_0x472f('0x5')]();}['_addRevision'](_0x1895fa){const _0x3df466=_0x38de19(_0x1895fa[_0x472f('0xd')],this[_0x472f('0x3')][_0x472f('0xe')])['startDate'];let _0x3eaab0=this[_0x472f('0x1a')]['get'](0x0);_0x3eaab0&&_0x3eaab0[_0x472f('0x1')]['getTime']()===_0x3df466['getTime']()||(_0x3eaab0=new _0x8acecb(this[_0x472f('0x3')],_0x3df466,this['_revisionActions']),this[_0x472f('0x1a')][_0x472f('0x1d')](_0x3eaab0)),_0x3eaab0[_0x472f('0x11')](_0x1895fa);}[_0x472f('0x2')](_0x183e54){const _0x54a044=_0x38de19(_0x183e54[_0x472f('0xd')],this[_0x472f('0x3')]['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x54a044)[_0x472f('0x24')](_0x183e54);}[_0x472f('0x1b')](_0x23624b){return this[_0x472f('0x1a')][_0x472f('0x1f')](_0x1143d1=>_0x1143d1['startDate'][_0x472f('0x9')]()===_0x23624b[_0x472f('0x9')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4864=['monthLong','year','weekdayLong','toJSDate','week','setLocale','hasSame','startOf','month','toRelativeCalendar','minus','day','fromJSDate','local'];(function(_0x2e7065,_0x48646e){const _0x1d02d5=function(_0x14afb6){while(--_0x14afb6){_0x2e7065['push'](_0x2e7065['shift']());}};_0x1d02d5(++_0x48646e);}(_0x4864,0x127));const _0x1d02=function(_0x2e7065,_0x48646e){_0x2e7065=_0x2e7065-0x0;let _0x1d02d5=_0x4864[_0x2e7065];return _0x1d02d5;};import{DateTime as _0x1a0cdb}from'luxon';export function getDateTimePeriodInfo(_0x3443df,_0x435a2d){const _0x1f4025=_0x1a0cdb[_0x1d02('0xb')](_0x3443df)[_0x1d02('0x4')](_0x435a2d),_0xd326af=_0x1a0cdb[_0x1d02('0xc')](),_0x3b97a8=_0xd326af[_0x1d02('0x9')]({'days':0x1})[_0x1d02('0x6')]('day');let _0x1226a2,_0x1d05b7;return _0x1f4025[_0x1d02('0x5')](_0xd326af,_0x1d02('0xa'))?(_0x1226a2=_0x1f4025[_0x1d02('0x6')](_0x1d02('0xa'))[_0x1d02('0x2')](),_0x1d05b7=_0x1f4025[_0x1d02('0x8')]()):_0x1f4025[_0x1d02('0x5')](_0x3b97a8,_0x1d02('0xa'))?(_0x1226a2=_0x3b97a8[_0x1d02('0x2')](),_0x1d05b7=_0x1f4025[_0x1d02('0x8')]()):_0x1f4025[_0x1d02('0x5')](_0xd326af,'week')?(_0x1226a2=_0x1f4025['startOf'](_0x1d02('0x3'))['toJSDate'](),_0x1d05b7=_0x1f4025[_0x1d02('0x1')]||''):_0x1f4025[_0x1d02('0x5')](_0xd326af,_0x1d02('0x0'))?(_0x1226a2=_0x1f4025[_0x1d02('0x6')](_0x1d02('0x7'))[_0x1d02('0x2')](),_0x1d05b7=_0x1f4025[_0x1d02('0xd')]||''):(_0x1226a2=_0x1f4025[_0x1d02('0x6')](_0x1d02('0x0'))['toJSDate'](),_0x1d05b7=String(_0x1f4025[_0x1d02('0x0')])),{'startDate':_0x1226a2,'localizedPeriodName':_0x1d05b7};}
23
+ const _0x17bd=['week','local','minus','toRelativeCalendar','day','toJSDate','hasSame','monthLong','setLocale','weekdayLong','month','startOf','fromJSDate','year'];(function(_0x32bae4,_0x17bd77){const _0x369e56=function(_0x1f162e){while(--_0x1f162e){_0x32bae4['push'](_0x32bae4['shift']());}};_0x369e56(++_0x17bd77);}(_0x17bd,0x139));const _0x369e=function(_0x32bae4,_0x17bd77){_0x32bae4=_0x32bae4-0x0;let _0x369e56=_0x17bd[_0x32bae4];return _0x369e56;};import{DateTime as _0x229857}from'luxon';export function getDateTimePeriodInfo(_0x56fafd,_0x11162b){const _0x13a963=_0x229857[_0x369e('0x7')](_0x56fafd)[_0x369e('0x3')](_0x11162b),_0x4e60de=_0x229857[_0x369e('0xa')](),_0x4bc2ac=_0x4e60de[_0x369e('0xb')]({'days':0x1})[_0x369e('0x6')](_0x369e('0xd'));let _0x4af08e,_0x13e50c;return _0x13a963[_0x369e('0x1')](_0x4e60de,_0x369e('0xd'))?(_0x4af08e=_0x13a963[_0x369e('0x6')](_0x369e('0xd'))[_0x369e('0x0')](),_0x13e50c=_0x13a963[_0x369e('0xc')]()):_0x13a963[_0x369e('0x1')](_0x4bc2ac,_0x369e('0xd'))?(_0x4af08e=_0x4bc2ac['toJSDate'](),_0x13e50c=_0x13a963[_0x369e('0xc')]()):_0x13a963[_0x369e('0x1')](_0x4e60de,'week')?(_0x4af08e=_0x13a963[_0x369e('0x6')](_0x369e('0x9'))[_0x369e('0x0')](),_0x13e50c=_0x13a963[_0x369e('0x4')]||''):_0x13a963[_0x369e('0x1')](_0x4e60de,_0x369e('0x8'))?(_0x4af08e=_0x13a963[_0x369e('0x6')](_0x369e('0x5'))[_0x369e('0x0')](),_0x13e50c=_0x13a963[_0x369e('0x2')]||''):(_0x4af08e=_0x13a963[_0x369e('0x6')](_0x369e('0x8'))[_0x369e('0x0')](),_0x13e50c=String(_0x13a963[_0x369e('0x8')])),{'startDate':_0x4af08e,'localizedPeriodName':_0x13e50c};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3522=['ck-revision-change__','ck-revision-change','ck-annotation','Removed\x20by','bindTemplate','div','ck-revision-change__label','Added\x20by','Suggested\x20by','type','setTemplate','add','isSuggestion','set','focus'];(function(_0x378a66,_0x352207){const _0x1664fb=function(_0x24a4be){while(--_0x24a4be){_0x378a66['push'](_0x378a66['shift']());}};_0x1664fb(++_0x352207);}(_0x3522,0x14d));const _0x1664=function(_0x378a66,_0x352207){_0x378a66=_0x378a66-0x0;let _0x1664fb=_0x3522[_0x378a66];return _0x1664fb;};import{View as _0x15af5e}from'ckeditor5/src/ui.js';import{getTranslation as _0x262064}from'../../utils/common-translations.js';export default class Z extends _0x15af5e{constructor(_0x3f63ce,_0x59eecc){super(_0x3f63ce),this['_model']=_0x59eecc,this['changeId']=_0x59eecc['id'];const _0x363bc3=this[_0x1664('0x1')],_0xc14e4b=_0x262064(_0x3f63ce,_0x59eecc['data'][_0x1664('0x9')]?_0x1664('0x5'):_0x1664('0x8')==_0x59eecc[_0x1664('0x6')]?_0x1664('0x4'):_0x1664('0x0'));this[_0x1664('0xa')](_0x1664('0x6'),_0x59eecc[_0x1664('0x6')]),this[_0x1664('0x7')]({'tag':_0x1664('0x2'),'attributes':{'class':[_0x1664('0xe'),_0x1664('0xd'),_0x363bc3['to'](_0x1664('0x6'),_0xb48f82=>_0x1664('0xc')+_0xb48f82)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':[_0x1664('0x3')]},'children':[{'text':_0xc14e4b}]},{'text':'\x20'+_0x59eecc['author']['name']}]}]});}[_0x1664('0xb')](){this['element'][_0x1664('0xb')]();}}
23
+ const _0x2d87=['Removed\x20by','focus','element','data','isSuggestion','ck-revision-change','changeId','Added\x20by','Suggested\x20by','setTemplate','div','ck-revision-change__label','type','span','name','ck-revision-change__','add'];(function(_0x21d977,_0x2d8719){const _0x35deee=function(_0x4d5719){while(--_0x4d5719){_0x21d977['push'](_0x21d977['shift']());}};_0x35deee(++_0x2d8719);}(_0x2d87,0xf2));const _0x35de=function(_0x21d977,_0x2d8719){_0x21d977=_0x21d977-0x0;let _0x35deee=_0x2d87[_0x21d977];return _0x35deee;};import{View as _0x1b96ef}from'ckeditor5/src/ui.js';import{getTranslation as _0x164d6e}from'../../utils/common-translations.js';export default class Z extends _0x1b96ef{constructor(_0x3761cc,_0xce4b1f){super(_0x3761cc),this['_model']=_0xce4b1f,this[_0x35de('0x2')]=_0xce4b1f['id'];const _0x16d67a=this['bindTemplate'],_0x22d173=_0x164d6e(_0x3761cc,_0xce4b1f[_0x35de('0x10')][_0x35de('0x0')]?_0x35de('0x4'):_0x35de('0xc')==_0xce4b1f[_0x35de('0x8')]?_0x35de('0x3'):_0x35de('0xd'));this['set'](_0x35de('0x8'),_0xce4b1f[_0x35de('0x8')]),this[_0x35de('0x5')]({'tag':_0x35de('0x6'),'attributes':{'class':['ck-annotation',_0x35de('0x1'),_0x16d67a['to']('type',_0x5a4d11=>_0x35de('0xb')+_0x5a4d11)],'tabindex':-0x1},'children':[{'tag':_0x35de('0x9'),'children':[{'tag':_0x35de('0x9'),'attributes':{'class':[_0x35de('0x7')]},'children':[{'text':_0x22d173}]},{'text':'\x20'+_0xce4b1f['author'][_0x35de('0xa')]}]}]});}[_0x35de('0xe')](){this[_0x35de('0xf')][_0x35de('0xe')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x382a=['fire','execute','ck-revision-history-ui__changes-navigation__label','Total','ck-revision-history-ui__changes-navigation__navigation','currentChangeNumber','NUMBER_OF_CHANGES','isReady','ck-revision-history-ui__changes-navigation__wrapper','ck-revision-history-ui__changes-navigation','EDIT_X_OF_Y_REVISIONS','isNavigationMode','bind','No\x20changes','Loading...','setTemplate','div','numberOfChanges','isForwardNavigationEnabled','bindTemplate','isBackwardNavigationEnabled','set','isEnabled','ck-revision-history-ui','_statusText','_isStatusLabelVisible','span'];(function(_0x8b5c9,_0x382a5a){const _0x5ccb68=function(_0x3e2538){while(--_0x3e2538){_0x8b5c9['push'](_0x8b5c9['shift']());}};_0x5ccb68(++_0x382a5a);}(_0x382a,0x66));const _0x5ccb=function(_0x8b5c9,_0x382a5a){_0x8b5c9=_0x8b5c9-0x0;let _0x5ccb68=_0x382a[_0x8b5c9];return _0x5ccb68;};import{View as _0x3c6072,ButtonView as _0x4d7c77,ToolbarSeparatorView as _0x27319e}from'ckeditor5/src/ui.js';import{getTranslation as _0x57a0ea}from'../../utils/common-translations.js';import _0x41640d from'../../../theme/icons/arrow-up.svg';import _0x39fdc0 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x3c6072{constructor(_0xf4791d){super(_0xf4791d);const _0x23a6a6=this[_0x5ccb('0x19')],_0x2786d9=new _0x4d7c77(_0xf4791d),_0x547045=new _0x4d7c77(_0xf4791d);this[_0x5ccb('0x0')](_0x5ccb('0x11'),!0x1),this[_0x5ccb('0x0')](_0x5ccb('0xd'),!0x1),this[_0x5ccb('0x0')](_0x5ccb('0xb'),0x0),this['set'](_0x5ccb('0x17'),0x0),this[_0x5ccb('0x0')](_0x5ccb('0x18'),!0x1),this['set'](_0x5ccb('0x1a'),!0x1),this[_0x5ccb('0x12')](_0x5ccb('0x4'))['to'](this,_0x5ccb('0xd'),this,'numberOfChanges',(_0x4cb702,_0x53fb25)=>_0x4cb702&&_0x53fb25>0x0),this[_0x5ccb('0x12')](_0x5ccb('0x3'))['to'](this,'isReady',this,_0x5ccb('0xb'),this,'numberOfChanges',this,_0x5ccb('0x11'),(_0x1fe641,_0x2c5a15,_0x313102,_0x14156a)=>{if(!_0x1fe641)return _0x57a0ea(_0xf4791d,_0x5ccb('0x14'));if(!_0x313102)return _0x57a0ea(_0xf4791d,_0x5ccb('0x13'));const _0x4464d9=_0x57a0ea(_0xf4791d,_0x5ccb('0xc'),_0x313102);return _0x14156a?_0x57a0ea(_0xf4791d,'X_OF_Y_CHANGES',[_0x2c5a15+0x1,_0x313102]):_0x4464d9;}),_0x2786d9['set']({'label':_0x57a0ea(_0xf4791d,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x41640d}),_0x547045[_0x5ccb('0x0')]({'label':_0x57a0ea(_0xf4791d,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x39fdc0}),_0x2786d9[_0x5ccb('0x12')](_0x5ccb('0x1'))['to'](this,_0x5ccb('0x1a')),_0x547045[_0x5ccb('0x12')](_0x5ccb('0x1'))['to'](this,_0x5ccb('0x18')),_0x2786d9['on'](_0x5ccb('0x7'),()=>this['fire'](_0x5ccb('0x7'),'backward')),_0x547045['on']('execute',()=>this[_0x5ccb('0x6')]('execute','forward')),this[_0x5ccb('0x15')]({'tag':'div','attributes':{'class':['ck',_0x5ccb('0x2'),_0x5ccb('0xf')]},'children':[{'tag':_0x5ccb('0x5'),'attributes':{'class':[_0x5ccb('0xe')]},'children':[{'tag':_0x5ccb('0x5'),'attributes':{'class':[_0x5ccb('0x8'),_0x23a6a6['if']('_isStatusLabelVisible','ck-hidden',_0x4b30e5=>!_0x4b30e5)]},'children':[{'text':_0x23a6a6['to'](_0x5ccb('0x11'),_0x4aca4e=>_0x4aca4e?_0x57a0ea(_0xf4791d,_0x5ccb('0x10'))+':\x20':_0x57a0ea(_0xf4791d,_0x5ccb('0x9'))+':\x20')}]},{'text':_0x23a6a6['to'](_0x5ccb('0x3'))}]},new _0x27319e(),{'tag':_0x5ccb('0x16'),'attributes':{'class':[_0x5ccb('0xa')]},'children':[_0x2786d9,_0x547045]}]});}}
23
+ const _0x1605=['_statusText','backward','Show\x20previous\x20change','isReady','_isStatusLabelVisible','fire','No\x20changes','set','bind','NUMBER_OF_CHANGES','isEnabled','EDIT_X_OF_Y_REVISIONS','ck-revision-history-ui','ck-revision-history-ui__changes-navigation','setTemplate','execute','currentChangeNumber','div','ck-hidden','span','bindTemplate','Total','Loading...','ck-revision-history-ui__changes-navigation__label','isNavigationMode','isBackwardNavigationEnabled','isForwardNavigationEnabled','numberOfChanges','Show\x20next\x20change'];(function(_0x546cbe,_0x160579){const _0x1844e3=function(_0x1b5d5f){while(--_0x1b5d5f){_0x546cbe['push'](_0x546cbe['shift']());}};_0x1844e3(++_0x160579);}(_0x1605,0x1c6));const _0x1844=function(_0x546cbe,_0x160579){_0x546cbe=_0x546cbe-0x0;let _0x1844e3=_0x1605[_0x546cbe];return _0x1844e3;};import{View as _0x4a1261,ButtonView as _0x3b2bce,ToolbarSeparatorView as _0x555952}from'ckeditor5/src/ui.js';import{getTranslation as _0x39a426}from'../../utils/common-translations.js';import _0x366125 from'../../../theme/icons/arrow-up.svg';import _0x3e08b0 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x4a1261{constructor(_0x524949){super(_0x524949);const _0x4c9733=this[_0x1844('0x1')],_0x45756c=new _0x3b2bce(_0x524949),_0x28ff81=new _0x3b2bce(_0x524949);this[_0x1844('0x11')]('isNavigationMode',!0x1),this[_0x1844('0x11')](_0x1844('0xd'),!0x1),this['set'](_0x1844('0x1a'),0x0),this['set'](_0x1844('0x8'),0x0),this[_0x1844('0x11')](_0x1844('0x7'),!0x1),this[_0x1844('0x11')](_0x1844('0x6'),!0x1),this['bind']('_isStatusLabelVisible')['to'](this,_0x1844('0xd'),this,_0x1844('0x8'),(_0x388233,_0x16a285)=>_0x388233&&_0x16a285>0x0),this['bind'](_0x1844('0xa'))['to'](this,_0x1844('0xd'),this,_0x1844('0x1a'),this,_0x1844('0x8'),this,'isNavigationMode',(_0xceb4f7,_0x1a9c32,_0x5deaad,_0x21d064)=>{if(!_0xceb4f7)return _0x39a426(_0x524949,_0x1844('0x3'));if(!_0x5deaad)return _0x39a426(_0x524949,_0x1844('0x10'));const _0x46eab7=_0x39a426(_0x524949,_0x1844('0x13'),_0x5deaad);return _0x21d064?_0x39a426(_0x524949,'X_OF_Y_CHANGES',[_0x1a9c32+0x1,_0x5deaad]):_0x46eab7;}),_0x45756c[_0x1844('0x11')]({'label':_0x39a426(_0x524949,_0x1844('0xc')),'tooltip':!0x0,'icon':_0x366125}),_0x28ff81[_0x1844('0x11')]({'label':_0x39a426(_0x524949,_0x1844('0x9')),'tooltip':!0x0,'icon':_0x3e08b0}),_0x45756c[_0x1844('0x12')](_0x1844('0x14'))['to'](this,_0x1844('0x6')),_0x28ff81[_0x1844('0x12')](_0x1844('0x14'))['to'](this,_0x1844('0x7')),_0x45756c['on'](_0x1844('0x19'),()=>this[_0x1844('0xf')](_0x1844('0x19'),_0x1844('0xb'))),_0x28ff81['on'](_0x1844('0x19'),()=>this['fire'](_0x1844('0x19'),'forward')),this[_0x1844('0x18')]({'tag':_0x1844('0x1b'),'attributes':{'class':['ck',_0x1844('0x16'),_0x1844('0x17')]},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':_0x1844('0x0'),'attributes':{'class':[_0x1844('0x4'),_0x4c9733['if'](_0x1844('0xe'),_0x1844('0x1c'),_0x2f03ac=>!_0x2f03ac)]},'children':[{'text':_0x4c9733['to'](_0x1844('0x5'),_0x5e37b0=>_0x5e37b0?_0x39a426(_0x524949,_0x1844('0x15'))+':\x20':_0x39a426(_0x524949,_0x1844('0x2'))+':\x20')}]},{'text':_0x4c9733['to']('_statusText')}]},new _0x555952(),{'tag':_0x1844('0x1b'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x45756c,_0x28ff81]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x39c2=['show','ck-editor__editable__loading-overlay','editor','editing','addClass','hide','pluginName','document','roots','change','view','removeClass'];(function(_0x1fb91d,_0x39c241){const _0xb0d9aa=function(_0x4962a4){while(--_0x4962a4){_0x1fb91d['push'](_0x1fb91d['shift']());}};_0xb0d9aa(++_0x39c241);}(_0x39c2,0xe9));const _0xb0d9=function(_0x1fb91d,_0x39c241){_0x1fb91d=_0x1fb91d-0x0;let _0xb0d9aa=_0x39c2[_0x1fb91d];return _0xb0d9aa;};import{Plugin as _0x1038fb}from'ckeditor5/src/core.js';const oe=_0xb0d9('0x8');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x1038fb{static get[_0xb0d9('0x1')](){return'RevisionViewerLoadingOverlay';}[_0xb0d9('0x7')](){const _0x5102c3=this[_0xb0d9('0x9')][_0xb0d9('0xa')][_0xb0d9('0x5')];_0x5102c3['change'](_0x2ce8d6=>{for(const _0x14581e of _0x5102c3[_0xb0d9('0x2')][_0xb0d9('0x3')])_0x2ce8d6[_0xb0d9('0xb')](oe,_0x14581e);});}[_0xb0d9('0x0')](){const _0x337b8d=this['editor'][_0xb0d9('0xa')][_0xb0d9('0x5')];_0x337b8d[_0xb0d9('0x4')](_0xb6c708=>{for(const _0xe26f48 of _0x337b8d['document']['roots'])_0xb6c708[_0xb0d9('0x6')](oe,_0xe26f48);});}}
23
+ const _0x1a84=['removeClass','editor','document','addClass','change','pluginName','hide','editing','roots','view'];(function(_0x5b1e0f,_0x1a8490){const _0x45fcb3=function(_0x1d92ea){while(--_0x1d92ea){_0x5b1e0f['push'](_0x5b1e0f['shift']());}};_0x45fcb3(++_0x1a8490);}(_0x1a84,0x1e3));const _0x45fc=function(_0x5b1e0f,_0x1a8490){_0x5b1e0f=_0x5b1e0f-0x0;let _0x45fcb3=_0x1a84[_0x5b1e0f];return _0x45fcb3;};import{Plugin as _0x1e98cd}from'ckeditor5/src/core.js';const oe='ck-editor__editable__loading-overlay';import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x1e98cd{static get[_0x45fc('0x2')](){return'RevisionViewerLoadingOverlay';}['show'](){const _0x43fabb=this[_0x45fc('0x8')][_0x45fc('0x4')][_0x45fc('0x6')];_0x43fabb[_0x45fc('0x1')](_0x17f87a=>{for(const _0x5cb574 of _0x43fabb[_0x45fc('0x9')]['roots'])_0x17f87a[_0x45fc('0x0')](oe,_0x5cb574);});}[_0x45fc('0x3')](){const _0x16eb77=this[_0x45fc('0x8')][_0x45fc('0x4')][_0x45fc('0x6')];_0x16eb77[_0x45fc('0x1')](_0x1f2b24=>{for(const _0x8d7e15 of _0x16eb77['document'][_0x45fc('0x5')])_0x1f2b24[_0x45fc('0x7')](oe,_0x8d7e15);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3d9c=['changesNavigation','hide','plugins','commands','isBackwardNavigationEnabled','add','editor','ck-revision-history-ui__back-to-editing','set','show','closeRevisionViewerCallback','componentFactory','listenTo','get','execute','restoreRevision','currentChangeNumber','init','config','exitToEditing','Restore\x20this\x20revision','showNextChange','showPreviousChange','forward','bind','RevisionViewerUI','isEnabled'];(function(_0x44ab65,_0x3d9cb0){const _0x115631=function(_0x34c574){while(--_0x34c574){_0x44ab65['push'](_0x44ab65['shift']());}};_0x115631(++_0x3d9cb0);}(_0x3d9c,0x184));const _0x1156=function(_0x44ab65,_0x3d9cb0){_0x44ab65=_0x44ab65-0x0;let _0x115631=_0x3d9c[_0x44ab65];return _0x115631;};import{icons as _0x3869df,Plugin as _0x1ff886}from'ckeditor5/src/core.js';import{ButtonView as _0x576d30}from'ckeditor5/src/ui.js';import _0x2ad031 from'./changesnavigationview.js';import _0x65631b from'./../../revisionviewer.js';import _0x51f102 from'./revisionviewerloadingoverlay.js';import{getTranslation as _0x29f453}from'../../utils/common-translations.js';import'../../../theme/revisionviewer.css';export default class R extends _0x1ff886{static get['pluginName'](){return _0x1156('0xf');}static get['requires'](){return[_0x65631b,_0x51f102];}[_0x1156('0x7')](){const _0x3cf037=this[_0x1156('0x17')],_0xdb7dda=_0x3cf037['plugins'][_0x1156('0x3')](_0x65631b),_0x2fe6ce=_0x3cf037[_0x1156('0x13')][_0x1156('0x3')](_0x51f102);_0x3cf037['ui']['componentFactory']['add'](_0x1156('0x9'),_0x432ae8=>{const _0x45a2d6=new _0x576d30(_0x432ae8);return _0x45a2d6[_0x1156('0x19')]({'label':_0x29f453(_0x432ae8,'Back\x20to\x20editing'),'icon':_0x3869df['undo'],'withText':!0x0,'tooltip':!0x0,'class':_0x1156('0x18')}),this[_0x1156('0x2')](_0x45a2d6,_0x1156('0x4'),()=>{_0x3cf037[_0x1156('0x8')][_0x1156('0x3')]('revisionHistory')[_0x1156('0x0')]();}),_0x45a2d6;}),_0x3cf037['ui']['componentFactory']['add']('restoreRevision',_0x396609=>{const _0x430f6d=new _0x576d30(_0x396609);return _0x430f6d[_0x1156('0x19')]({'label':_0x29f453(_0x396609,_0x1156('0xa')),'withText':!0x0,'tooltip':!0x0}),_0x430f6d[_0x1156('0xe')](_0x1156('0x10'))['to'](_0x3cf037[_0x1156('0x14')][_0x1156('0x3')](_0x1156('0x5'))),this[_0x1156('0x2')](_0x430f6d,'execute',()=>_0x3cf037['execute'](_0x1156('0x5'))),_0x430f6d;}),_0x3cf037['ui'][_0x1156('0x1')][_0x1156('0x16')](_0x1156('0x11'),_0x35c172=>{const _0x1e6e3b=new _0x2ad031(_0x35c172),_0x1a84c3=_0x3cf037[_0x1156('0x14')][_0x1156('0x3')](_0x1156('0xc')),_0x1a9bd5=_0x3cf037[_0x1156('0x14')][_0x1156('0x3')](_0x1156('0xb'));return _0x1e6e3b['bind'](_0x1156('0x15'))['to'](_0x1a84c3,_0x1156('0x10')),_0x1e6e3b[_0x1156('0xe')]('isForwardNavigationEnabled')['to'](_0x1a9bd5,'isEnabled'),_0x1e6e3b[_0x1156('0xe')]('isReady',_0x1156('0x6'),'numberOfChanges','isNavigationMode')['to'](_0xdb7dda),this['listenTo'](_0x1e6e3b,_0x1156('0x4'),(_0x3ca1b4,_0x427185)=>{_0x3cf037['execute'](_0x1156('0xd')===_0x427185?_0x1156('0xb'):_0x1156('0xc'));}),_0x1e6e3b;}),_0x2fe6ce[_0x1156('0x1a')](),_0xdb7dda['on']('change:isReady',(_0x472ca1,_0x510ca4,_0x2d55d3)=>{_0x2d55d3?_0x2fe6ce[_0x1156('0x12')]():_0x2fe6ce[_0x1156('0x1a')]();});}}
23
+ const _0x41f4=['init','get','isNavigationMode','ck-revision-history-ui__back-to-editing','Back\x20to\x20editing','isReady','execute','plugins','set','bind','currentChangeNumber','restoreRevision','config','closeRevisionViewerCallback','RevisionViewerUI','show','changesNavigation','add','componentFactory','exitToEditing','editor','undo','isEnabled','showPreviousChange','isForwardNavigationEnabled','isBackwardNavigationEnabled','commands','listenTo','hide','showNextChange','pluginName'];(function(_0x15783c,_0x41f454){const _0x199838=function(_0x369bf0){while(--_0x369bf0){_0x15783c['push'](_0x15783c['shift']());}};_0x199838(++_0x41f454);}(_0x41f4,0xbe));const _0x1998=function(_0x15783c,_0x41f454){_0x15783c=_0x15783c-0x0;let _0x199838=_0x41f4[_0x15783c];return _0x199838;};import{icons as _0x3da154,Plugin as _0x28414b}from'ckeditor5/src/core.js';import{ButtonView as _0x1b86c1}from'ckeditor5/src/ui.js';import _0x7ba6a6 from'./changesnavigationview.js';import _0x24720d from'./../../revisionviewer.js';import _0x228a47 from'./revisionviewerloadingoverlay.js';import{getTranslation as _0x46169b}from'../../utils/common-translations.js';import'../../../theme/revisionviewer.css';export default class R extends _0x28414b{static get[_0x1998('0x1a')](){return _0x1998('0xa');}static get['requires'](){return[_0x24720d,_0x228a47];}[_0x1998('0x1b')](){const _0xc906f=this[_0x1998('0x10')],_0xa1c729=_0xc906f[_0x1998('0x3')]['get'](_0x24720d),_0xdb2dc6=_0xc906f['plugins']['get'](_0x228a47);_0xc906f['ui']['componentFactory']['add'](_0x1998('0xf'),_0x3e88aa=>{const _0x4e1f0a=new _0x1b86c1(_0x3e88aa);return _0x4e1f0a[_0x1998('0x4')]({'label':_0x46169b(_0x3e88aa,_0x1998('0x0')),'icon':_0x3da154[_0x1998('0x11')],'withText':!0x0,'tooltip':!0x0,'class':_0x1998('0x1e')}),this[_0x1998('0x17')](_0x4e1f0a,_0x1998('0x2'),()=>{_0xc906f[_0x1998('0x8')][_0x1998('0x1c')]('revisionHistory')[_0x1998('0x9')]();}),_0x4e1f0a;}),_0xc906f['ui'][_0x1998('0xe')]['add'](_0x1998('0x7'),_0x4d68b1=>{const _0x3f4ff5=new _0x1b86c1(_0x4d68b1);return _0x3f4ff5['set']({'label':_0x46169b(_0x4d68b1,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3f4ff5['bind'](_0x1998('0x12'))['to'](_0xc906f[_0x1998('0x16')][_0x1998('0x1c')](_0x1998('0x7'))),this[_0x1998('0x17')](_0x3f4ff5,_0x1998('0x2'),()=>_0xc906f[_0x1998('0x2')](_0x1998('0x7'))),_0x3f4ff5;}),_0xc906f['ui'][_0x1998('0xe')][_0x1998('0xd')](_0x1998('0xc'),_0x27c20e=>{const _0x3f88c0=new _0x7ba6a6(_0x27c20e),_0x329671=_0xc906f[_0x1998('0x16')][_0x1998('0x1c')](_0x1998('0x13')),_0x3bf763=_0xc906f[_0x1998('0x16')][_0x1998('0x1c')]('showNextChange');return _0x3f88c0[_0x1998('0x5')](_0x1998('0x15'))['to'](_0x329671,_0x1998('0x12')),_0x3f88c0['bind'](_0x1998('0x14'))['to'](_0x3bf763,_0x1998('0x12')),_0x3f88c0[_0x1998('0x5')](_0x1998('0x1'),_0x1998('0x6'),'numberOfChanges',_0x1998('0x1d'))['to'](_0xa1c729),this[_0x1998('0x17')](_0x3f88c0,'execute',(_0x37227d,_0x1b49b7)=>{_0xc906f[_0x1998('0x2')]('forward'===_0x1b49b7?_0x1998('0x19'):_0x1998('0x13'));}),_0x3f88c0;}),_0xdb2dc6[_0x1998('0xb')](),_0xa1c729['on']('change:isReady',(_0x22dcc5,_0x27e983,_0x58daaa)=>{_0x58daaa?_0xdb2dc6[_0x1998('0x18')]():_0xdb2dc6[_0x1998('0xb')]();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x43d289,_0x34349b,_0x5a5d8f){const t=_0x43d289['t'];switch(_0x34349b){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'},_0x5a5d8f);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5a5d8f);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 _0x34349b;}}
23
+ export function getTranslation(_0xb34f96,_0x54f5f0,_0x1a49ff){const t=_0xb34f96['t'];switch(_0x54f5f0){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'},_0x1a49ff);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1a49ff);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 _0x54f5f0;}}