@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20240125.0 → 0.0.0-nightly-20240127.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +5 -5
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a91=['remove','RevisionTracker','focus','reset','requires','Save\x20current\x20revision','execute','plugins','change:isOpen','children','RevisionHistoryUI','bind','set','addMany','render','isEnabled','view','saveRevision','isOpen','history','revisionHistory','pluginName','isReady','get','init','Revision\x20history','Open\x20revision\x20history','submit','editing','isReadOnly','componentFactory','length','add','buttonView','config','showRevisionViewerCallback','panelView'];(function(_0xef0b48,_0x2a918a){const _0x251f08=function(_0xd20b1){while(--_0xd20b1){_0xef0b48['push'](_0xef0b48['shift']());}};_0x251f08(++_0x2a918a);}(_0x2a91,0xa2));const _0x251f=function(_0xef0b48,_0x2a918a){_0xef0b48=_0xef0b48-0x0;let _0x251f08=_0x2a91[_0xef0b48];return _0x251f08;};import{Plugin as _0x510b59,icons as _0x4ed6df}from'ckeditor5/src/core.js';import{ListView as _0x108c98,ListItemView as _0x30f076,ButtonView as _0x3319a2,createDropdown as _0x2022d6}from'ckeditor5/src/ui.js';import _0x4a2fb4 from'../../revisiontracker.js';import _0xc28970 from'./revisionhistorysaverevisionformview.js';import{getTranslation as _0x2e46cf}from'../../utils/common-translations.js';export default class u extends _0x510b59{static get[_0x251f('0x7')](){return _0x251f('0x21');}static get[_0x251f('0x1b')](){return[_0x4a2fb4];}[_0x251f('0xa')](){const _0x1d9c9f=this['editor'],_0x3028d6=_0x1d9c9f[_0x251f('0x1e')][_0x251f('0x9')](_0x251f('0x18'));_0x1d9c9f['ui'][_0x251f('0x10')]['add'](_0x251f('0x6'),_0x489624=>{const _0x270ee4=_0x2022d6(_0x489624),_0x28c680=_0x270ee4[_0x251f('0x16')][_0x251f('0x20')],_0xe82975=new _0x108c98(_0x489624),_0x10f411=new _0x30f076(_0x489624),_0x2212e5=new _0x3319a2(_0x489624),_0x3f45ee=new _0x30f076(_0x489624),_0xb904=new _0x3319a2(_0x489624),_0x4a5d22=new _0xc28970(_0x489624);function _0x45815f(){_0x28c680['length']&&_0x28c680[_0x251f('0x17')](0x0),_0x28c680[_0x251f('0x12')](_0xe82975);}function _0x1e0851(){_0x270ee4[_0x251f('0x4')]=!0x1,_0x1d9c9f[_0x251f('0xe')][_0x251f('0x2')][_0x251f('0x19')]();}return _0x270ee4['bind']('isEnabled')['to'](_0x3028d6,_0x251f('0x8'),_0x3028d6,_0x251f('0x1'),_0x1d9c9f,_0x251f('0xf'),(_0x28ad63,_0x572f3f,_0x578643)=>_0x28ad63&&_0x572f3f&&!_0x578643),_0x270ee4[_0x251f('0x13')][_0x251f('0x23')]({'icon':_0x4ed6df[_0x251f('0x5')],'label':_0x2e46cf(_0x489624,_0x251f('0xb')),'tooltip':!0x0}),_0x2212e5[_0x251f('0x23')]({'label':_0x2e46cf(_0x489624,_0x251f('0x1c')),'withText':!0x0}),_0x2212e5[_0x251f('0x22')]('isEnabled')['to'](_0x3028d6,_0x251f('0x8'),_0x3028d6,_0x251f('0x1'),_0x1d9c9f,_0x251f('0xf'),(_0x4cebdc,_0x5c0e2a,_0x45b92e)=>_0x4cebdc&&_0x5c0e2a&&!_0x45b92e),_0x2212e5['on'](_0x251f('0x1d'),()=>function(){_0x28c680[_0x251f('0x11')]&&_0x28c680[_0x251f('0x17')](0x0),(_0x4a5d22[_0x251f('0x1a')](),_0x28c680[_0x251f('0x12')](_0x4a5d22),_0x4a5d22[_0x251f('0x19')]());}()),_0xb904[_0x251f('0x23')]({'label':_0x2e46cf(_0x489624,_0x251f('0xc')),'withText':!0x0}),_0xb904[_0x251f('0x22')](_0x251f('0x1'))['to'](_0x3028d6,_0x251f('0x8'),_0x1d9c9f,_0x251f('0xf'),(_0x4fdef0,_0x5a754f)=>_0x4fdef0&&!_0x5a754f),_0xb904['on'](_0x251f('0x1d'),()=>{_0x1d9c9f[_0x251f('0x14')]['get'](_0x251f('0x6'))[_0x251f('0x15')](),_0x1e0851();}),_0x10f411[_0x251f('0x20')][_0x251f('0x12')](_0x2212e5),_0x3f45ee['children']['add'](_0xb904),_0xe82975['items'][_0x251f('0x24')]([_0x10f411,_0x3f45ee]),_0x270ee4['on'](_0x251f('0x1f'),()=>_0x45815f()),_0x4a5d22['saveButtonView'][_0x251f('0x22')](_0x251f('0x1'))['to'](_0x3028d6,_0x251f('0x8'),_0x3028d6,_0x251f('0x1'),_0x1d9c9f,_0x251f('0xf'),(_0xb4d32c,_0x448b85,_0x1fcdf1)=>_0xb4d32c&&_0x448b85&&!_0x1fcdf1),_0x4a5d22['on'](_0x251f('0xd'),()=>(_0x1d9c9f[_0x251f('0x1e')][_0x251f('0x9')](_0x4a2fb4)[_0x251f('0x3')]({'name':_0x4a5d22['revisionName']}),void _0x1e0851())),_0x4a5d22['on']('cancel',()=>_0x45815f()),_0x4a5d22[_0x251f('0x0')](),_0x45815f(),_0x270ee4;});}}
23
+ const _0xf86d=['isEnabled','view','editing','pluginName','render','saveRevision','set','change:isOpen','panelView','plugins','requires','children','isReadOnly','reset','submit','get','init','Save\x20current\x20revision','revisionHistory','length','remove','saveButtonView','addMany','Revision\x20history','bind','isReady','focus','revisionName','execute','add','isOpen','items'];(function(_0xa97bec,_0xf86dc2){const _0x4aeaae=function(_0x13030a){while(--_0x13030a){_0xa97bec['push'](_0xa97bec['shift']());}};_0x4aeaae(++_0xf86dc2);}(_0xf86d,0x90));const _0x4aea=function(_0xa97bec,_0xf86dc2){_0xa97bec=_0xa97bec-0x0;let _0x4aeaae=_0xf86d[_0xa97bec];return _0x4aeaae;};import{Plugin as _0x5dcaaf,icons as _0x2bc78d}from'ckeditor5/src/core.js';import{ListView as _0x57e61f,ListItemView as _0xb32dee,ButtonView as _0x244700,createDropdown as _0x13fff4}from'ckeditor5/src/ui.js';import _0x352ad1 from'../../revisiontracker.js';import _0x4a03f7 from'./revisionhistorysaverevisionformview.js';import{getTranslation as _0x56b1bb}from'../../utils/common-translations.js';export default class u extends _0x5dcaaf{static get[_0x4aea('0x13')](){return'RevisionHistoryUI';}static get[_0x4aea('0x1a')](){return[_0x352ad1];}[_0x4aea('0x0')](){const _0x25a568=this['editor'],_0x42fff1=_0x25a568[_0x4aea('0x19')][_0x4aea('0x1f')]('RevisionTracker');_0x25a568['ui']['componentFactory'][_0x4aea('0xd')](_0x4aea('0x2'),_0x8911f1=>{const _0x21d67e=_0x13fff4(_0x8911f1),_0x36006e=_0x21d67e[_0x4aea('0x18')][_0x4aea('0x1b')],_0xf451ea=new _0x57e61f(_0x8911f1),_0x5871c8=new _0xb32dee(_0x8911f1),_0x2eecdd=new _0x244700(_0x8911f1),_0x570828=new _0xb32dee(_0x8911f1),_0x4ced06=new _0x244700(_0x8911f1),_0x42b0e=new _0x4a03f7(_0x8911f1);function _0x384e04(){_0x36006e[_0x4aea('0x3')]&&_0x36006e[_0x4aea('0x4')](0x0),_0x36006e[_0x4aea('0xd')](_0xf451ea);}function _0x2b4976(){_0x21d67e[_0x4aea('0xe')]=!0x1,_0x25a568[_0x4aea('0x12')][_0x4aea('0x11')][_0x4aea('0xa')]();}return _0x21d67e[_0x4aea('0x8')]('isEnabled')['to'](_0x42fff1,_0x4aea('0x9'),_0x42fff1,_0x4aea('0x10'),_0x25a568,_0x4aea('0x1c'),(_0x3cc559,_0xf2b4a2,_0x3f2d4e)=>_0x3cc559&&_0xf2b4a2&&!_0x3f2d4e),_0x21d67e['buttonView']['set']({'icon':_0x2bc78d['history'],'label':_0x56b1bb(_0x8911f1,_0x4aea('0x7')),'tooltip':!0x0}),_0x2eecdd[_0x4aea('0x16')]({'label':_0x56b1bb(_0x8911f1,_0x4aea('0x1')),'withText':!0x0}),_0x2eecdd[_0x4aea('0x8')](_0x4aea('0x10'))['to'](_0x42fff1,_0x4aea('0x9'),_0x42fff1,_0x4aea('0x10'),_0x25a568,'isReadOnly',(_0x44c3e7,_0x2a5ccb,_0x58e96d)=>_0x44c3e7&&_0x2a5ccb&&!_0x58e96d),_0x2eecdd['on'](_0x4aea('0xc'),()=>function(){_0x36006e[_0x4aea('0x3')]&&_0x36006e[_0x4aea('0x4')](0x0),(_0x42b0e[_0x4aea('0x1d')](),_0x36006e['add'](_0x42b0e),_0x42b0e[_0x4aea('0xa')]());}()),_0x4ced06[_0x4aea('0x16')]({'label':_0x56b1bb(_0x8911f1,'Open\x20revision\x20history'),'withText':!0x0}),_0x4ced06[_0x4aea('0x8')](_0x4aea('0x10'))['to'](_0x42fff1,_0x4aea('0x9'),_0x25a568,_0x4aea('0x1c'),(_0x44fd42,_0x36646a)=>_0x44fd42&&!_0x36646a),_0x4ced06['on'](_0x4aea('0xc'),()=>{_0x25a568['config']['get'](_0x4aea('0x2'))['showRevisionViewerCallback'](),_0x2b4976();}),_0x5871c8[_0x4aea('0x1b')][_0x4aea('0xd')](_0x2eecdd),_0x570828[_0x4aea('0x1b')][_0x4aea('0xd')](_0x4ced06),_0xf451ea[_0x4aea('0xf')][_0x4aea('0x6')]([_0x5871c8,_0x570828]),_0x21d67e['on'](_0x4aea('0x17'),()=>_0x384e04()),_0x42b0e[_0x4aea('0x5')][_0x4aea('0x8')](_0x4aea('0x10'))['to'](_0x42fff1,_0x4aea('0x9'),_0x42fff1,_0x4aea('0x10'),_0x25a568,_0x4aea('0x1c'),(_0x1ebc8e,_0x5babfd,_0x5d4609)=>_0x1ebc8e&&_0x5babfd&&!_0x5d4609),_0x42b0e['on'](_0x4aea('0x1e'),()=>(_0x25a568[_0x4aea('0x19')][_0x4aea('0x1f')](_0x352ad1)[_0x4aea('0x15')]({'name':_0x42b0e[_0x4aea('0xb')]}),void _0x2b4976())),_0x42b0e['on']('cancel',()=>_0x384e04()),_0x42b0e[_0x4aea('0x14')](),_0x384e04(),_0x21d67e;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2c75=['_handleRevisionSetName','diff','restoreRevision','revisionHistory.revisionActions','getIndex','focus','action','nameRevision','_revisions','element','getEarlierVisibleRevision','remove','listenTo','locale','length','Compare\x20against\x20selected','_revisionViewer','isSelected','editor','_createRevisionActions','destroy','appendChild','restoreRevisionCallback','setName','name','availableRevisionActions','highlightRevisions','repository','isEnabled','isVisible','select','_handleRevisionSelected','assign','getLaterVisibleRevision','newRevisionId','ready','map','config','getRevision','fieldView','Name\x20this\x20revision','_sidebarView','compare','revisionHistory','revisionSetName','defaultRevisionActions','init','revisionHistory.viewerSidebarContainer','pluginName','add','selectRevision','revisionViews','_revisionsRepository','requires','compareAgainstSelected','_handleEditorDataReady','data','get','getRevisionsInDiff','plugins','bind'];(function(_0x45b246,_0x2c75d2){const _0xf203f2=function(_0x5798b0){while(--_0x5798b0){_0x45b246['push'](_0x45b246['shift']());}};_0xf203f2(++_0x2c75d2);}(_0x2c75,0x189));const _0xf203=function(_0x45b246,_0x2c75d2){_0x45b246=_0x45b246-0x0;let _0xf203f2=_0x2c75[_0x45b246];return _0xf203f2;};import{Plugin as _0x3fc290}from'ckeditor5/src/core.js';import _0x286b1c from'./revisionssidebarview.js';import _0x15eed0 from'../../revisionviewer.js';export default class w extends _0x3fc290{static get[_0xf203('0x15')](){return'RevisionsSidebar';}static get[_0xf203('0x1a')](){return[_0x15eed0];}constructor(_0x1599d2){super(_0x1599d2),this[_0xf203('0x32')]=_0x1599d2[_0xf203('0x20')][_0xf203('0x1e')](_0x15eed0),this[_0xf203('0x19')]=this[_0xf203('0x32')][_0xf203('0x0')],this[_0xf203('0xe')]=null;}[_0xf203('0x13')](){const _0x4f6926=this[_0xf203('0x19')][_0xf203('0x2a')],_0x5380cb=this[_0xf203('0x35')](),_0x1b7139=this[_0xf203('0x34')][_0xf203('0xa')][_0xf203('0x1e')](_0xf203('0x14'));this[_0xf203('0xe')]=new _0x286b1c(this['editor'][_0xf203('0x2f')],_0x4f6926,_0x5380cb),this[_0xf203('0xe')]['on']('revisionSelected',this[_0xf203('0x4')][_0xf203('0x21')](this)),this[_0xf203('0xe')]['on'](_0xf203('0x11'),this['_handleRevisionSetName']['bind'](this)),this['_sidebarView'][_0xf203('0x21')]('isEnabled')['to'](this[_0xf203('0x32')]),this[_0xf203('0xe')]['timePeriodViews']['on']('add',(_0x190794,_0x1b4019)=>{_0x1b4019[_0xf203('0x18')]['on'](_0xf203('0x16'),(_0x3f3a65,_0x57ac08)=>{_0x57ac08[_0xf203('0x21')](_0xf203('0x1'),'isReady')['to'](this[_0xf203('0x32')]);});}),this[_0xf203('0xe')]['render'](),this[_0xf203('0x2e')](this[_0xf203('0x34')][_0xf203('0x1d')],_0xf203('0x8'),this[_0xf203('0x1c')][_0xf203('0x21')](this)),this['listenTo'](this[_0xf203('0x32')],'change:diff',this['_handleDiffChange']['bind'](this)),_0x1b7139[_0xf203('0x37')](this[_0xf203('0xe')]['element']);}[_0xf203('0x36')](){this['_sidebarView'][_0xf203('0x2b')][_0xf203('0x2d')](),this['_sidebarView'][_0xf203('0x36')]();}[_0xf203('0x1c')](){const _0x2c9da4=this[_0xf203('0x19')][_0xf203('0xb')](0x0);if(_0x2c9da4){const _0x561fee=this[_0xf203('0x19')][_0xf203('0x2c')](_0x2c9da4['id']);this[_0xf203('0x32')]['compare'](_0x2c9da4,_0x561fee);}}[_0xf203('0x4')](_0x44ffc0,_0x3c3d5b){const _0x2d1c09=this['_revisionsRepository']['getRevision'](_0x3c3d5b['id']),_0x4b1ec7=this['_revisionsRepository'][_0xf203('0x2c')](_0x2d1c09['id']);this[_0xf203('0x32')]['compare'](_0x2d1c09,_0x4b1ec7);}[_0xf203('0x22')](_0x452f9f,_0x24a512){this[_0xf203('0x19')]['getRevision'](_0x24a512['id'])[_0xf203('0x39')](_0x24a512[_0xf203('0x3a')]);}['_handleDiffChange'](_0x55fbf2,_0x180392,_0x55bec4){const _0x380011=this[_0xf203('0x19')][_0xf203('0x1f')](_0x55bec4);_0x380011[_0xf203('0x30')]>0x2?(this[_0xf203('0xe')]['highlightRevisions'](_0x380011),this[_0xf203('0xe')][_0xf203('0x17')](null)):(this[_0xf203('0xe')][_0xf203('0x3c')]([]),this[_0xf203('0xe')][_0xf203('0x17')](_0x380011[0x0]));}[_0xf203('0x35')](){const _0x4819cd=this['editor'],_0x48c1e1=w[_0xf203('0x3b')],_0x27f553=_0x4819cd['config'][_0xf203('0x1e')](_0xf203('0x25'))||w[_0xf203('0x12')];if(_0x27f553[_0xf203('0x30')])return _0x27f553[_0xf203('0x9')](_0xe99365=>{const _0x124ac8='string'==typeof _0xe99365?Object[_0xf203('0x5')]({},_0x48c1e1[_0xe99365]):_0xe99365;return _0x124ac8[_0xf203('0x28')]=_0x124ac8[_0xf203('0x28')][_0xf203('0x21')](this,_0x4819cd),_0x124ac8[_0xf203('0x2')]&&(_0x124ac8['isVisible']=_0x124ac8[_0xf203('0x2')][_0xf203('0x21')](this,_0x4819cd)),_0x124ac8;});}}w[_0xf203('0x3b')]={'compareAgainstSelected':{'name':_0xf203('0x31'),'action':({plugins:_0x4a707c},_0x351eb8)=>{const _0x210835=_0x4a707c[_0xf203('0x1e')](_0x15eed0),_0x2b56c1=_0x210835['repository'];let _0x41ea54=_0x210835['diff'][_0xf203('0x7')],_0x1d5fe4=_0x351eb8['id'];_0x2b56c1[_0xf203('0x26')](_0x41ea54)>_0x2b56c1[_0xf203('0x26')](_0x1d5fe4)&&([_0x41ea54,_0x1d5fe4]=[_0x1d5fe4,_0x41ea54]),_0x210835[_0xf203('0xf')](_0x41ea54,_0x1d5fe4);},'isVisible':({plugins:_0x4af065},_0x5ad8e6)=>{const _0x2e2665=_0x4af065[_0xf203('0x1e')](_0x15eed0);return!(_0x2e2665[_0xf203('0x0')]['getRevisionsInDiff'](_0x2e2665[_0xf203('0x23')])[_0xf203('0x30')]>0x2)&&!_0x5ad8e6[_0xf203('0x33')];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x2bbdf4,{id:_0x2e49b2})=>{_0x2bbdf4[_0xf203('0xa')]['get'](_0xf203('0x10'))[_0xf203('0x38')](_0x2e49b2);},'isVisible':({plugins:_0x2188a3},_0x4e60c7)=>!!_0x2188a3[_0xf203('0x1e')](_0x15eed0)[_0xf203('0x0')][_0xf203('0x6')](_0x4e60c7['id'])},'nameRevision':{'name':_0xf203('0xd'),'action':({plugins:_0x16e9a9},{id:_0x4340e6,revisionNameView:_0x2cecd3})=>{const _0x248a1f=_0x16e9a9[_0xf203('0x1e')](_0x15eed0),_0xb257f7=_0x248a1f[_0xf203('0x0')]['getEarlierVisibleRevision'](_0x4340e6);_0x248a1f[_0xf203('0xf')](_0x4340e6,_0xb257f7),_0x2cecd3[_0xf203('0x27')](),_0x2cecd3[_0xf203('0xc')][_0xf203('0x3')]();}}},w['defaultRevisionActions']=[_0xf203('0x1b'),_0xf203('0x24'),_0xf203('0x29')];
23
+ const _0x5487=['isReady','nameRevision','repository','revisionHistory','setName','revisionHistory.viewerSidebarContainer','Compare\x20against\x20selected','action','restoreRevision','_revisionsRepository','config','string','map','getLaterVisibleRevision','getIndex','listenTo','destroy','remove','timePeriodViews','defaultRevisionActions','pluginName','revisionViews','fieldView','compareAgainstSelected','selectRevision','locale','revisionSelected','_handleRevisionSelected','name','element','isVisible','getRevision','_handleRevisionSetName','isEnabled','compare','get','requires','ready','getEarlierVisibleRevision','add','diff','data','_sidebarView','change:diff','Name\x20this\x20revision','restoreRevisionCallback','init','RevisionsSidebar','revisionSetName','isSelected','availableRevisionActions','Restore\x20this\x20revision','highlightRevisions','bind','_handleDiffChange','getRevisionsInDiff','editor','_revisions','newRevisionId','_handleEditorDataReady','length','_revisionViewer'];(function(_0x112ad3,_0x548720){const _0x2767bc=function(_0x2c9c1e){while(--_0x2c9c1e){_0x112ad3['push'](_0x112ad3['shift']());}};_0x2767bc(++_0x548720);}(_0x5487,0xac));const _0x2767=function(_0x112ad3,_0x548720){_0x112ad3=_0x112ad3-0x0;let _0x2767bc=_0x5487[_0x112ad3];return _0x2767bc;};import{Plugin as _0x1f791f}from'ckeditor5/src/core.js';import _0x2cfccf from'./revisionssidebarview.js';import _0x59411d from'../../revisionviewer.js';export default class w extends _0x1f791f{static get[_0x2767('0x22')](){return _0x2767('0x3d');}static get[_0x2767('0x32')](){return[_0x59411d];}constructor(_0x2925fa){super(_0x2925fa),this[_0x2767('0xd')]=_0x2925fa['plugins'][_0x2767('0x31')](_0x59411d),this[_0x2767('0x17')]=this[_0x2767('0xd')]['repository'],this[_0x2767('0x38')]=null;}[_0x2767('0x3c')](){const _0x43e8e6=this['_revisionsRepository'][_0x2767('0x9')],_0x449023=this['_createRevisionActions'](),_0x1bc1db=this[_0x2767('0x8')][_0x2767('0x18')][_0x2767('0x31')](_0x2767('0x13'));this[_0x2767('0x38')]=new _0x2cfccf(this[_0x2767('0x8')][_0x2767('0x27')],_0x43e8e6,_0x449023),this[_0x2767('0x38')]['on'](_0x2767('0x28'),this['_handleRevisionSelected'][_0x2767('0x5')](this)),this['_sidebarView']['on'](_0x2767('0x0'),this[_0x2767('0x2e')][_0x2767('0x5')](this)),this['_sidebarView'][_0x2767('0x5')]('isEnabled')['to'](this[_0x2767('0xd')]),this[_0x2767('0x38')][_0x2767('0x20')]['on']('add',(_0x3f263b,_0x5542a9)=>{_0x5542a9[_0x2767('0x23')]['on'](_0x2767('0x35'),(_0x3b1376,_0x104521)=>{_0x104521['bind'](_0x2767('0x2f'),_0x2767('0xe'))['to'](this[_0x2767('0xd')]);});}),this['_sidebarView']['render'](),this[_0x2767('0x1d')](this['editor'][_0x2767('0x37')],_0x2767('0x33'),this[_0x2767('0xb')][_0x2767('0x5')](this)),this[_0x2767('0x1d')](this[_0x2767('0xd')],_0x2767('0x39'),this[_0x2767('0x6')][_0x2767('0x5')](this)),_0x1bc1db['appendChild'](this[_0x2767('0x38')][_0x2767('0x2b')]);}[_0x2767('0x1e')](){this[_0x2767('0x38')]['element'][_0x2767('0x1f')](),this[_0x2767('0x38')][_0x2767('0x1e')]();}[_0x2767('0xb')](){const _0x4261fd=this[_0x2767('0x17')][_0x2767('0x2d')](0x0);if(_0x4261fd){const _0x520e86=this[_0x2767('0x17')]['getEarlierVisibleRevision'](_0x4261fd['id']);this['_revisionViewer']['compare'](_0x4261fd,_0x520e86);}}[_0x2767('0x29')](_0x1b0eca,_0x5daae7){const _0x11ba61=this[_0x2767('0x17')][_0x2767('0x2d')](_0x5daae7['id']),_0x408c36=this[_0x2767('0x17')][_0x2767('0x34')](_0x11ba61['id']);this['_revisionViewer'][_0x2767('0x30')](_0x11ba61,_0x408c36);}[_0x2767('0x2e')](_0x47476d,_0x1ef2e3){this[_0x2767('0x17')][_0x2767('0x2d')](_0x1ef2e3['id'])[_0x2767('0x12')](_0x1ef2e3[_0x2767('0x2a')]);}[_0x2767('0x6')](_0x48f853,_0x222779,_0x4d2249){const _0x3da2a0=this[_0x2767('0x17')][_0x2767('0x7')](_0x4d2249);_0x3da2a0[_0x2767('0xc')]>0x2?(this[_0x2767('0x38')][_0x2767('0x4')](_0x3da2a0),this[_0x2767('0x38')][_0x2767('0x26')](null)):(this[_0x2767('0x38')][_0x2767('0x4')]([]),this[_0x2767('0x38')][_0x2767('0x26')](_0x3da2a0[0x0]));}['_createRevisionActions'](){const _0x424207=this[_0x2767('0x8')],_0x442e7f=w['availableRevisionActions'],_0x58bc01=_0x424207['config'][_0x2767('0x31')]('revisionHistory.revisionActions')||w[_0x2767('0x21')];if(_0x58bc01['length'])return _0x58bc01[_0x2767('0x1a')](_0x432408=>{const _0x2f678f=_0x2767('0x19')==typeof _0x432408?Object['assign']({},_0x442e7f[_0x432408]):_0x432408;return _0x2f678f['action']=_0x2f678f[_0x2767('0x15')][_0x2767('0x5')](this,_0x424207),_0x2f678f[_0x2767('0x2c')]&&(_0x2f678f[_0x2767('0x2c')]=_0x2f678f[_0x2767('0x2c')][_0x2767('0x5')](this,_0x424207)),_0x2f678f;});}}w[_0x2767('0x2')]={'compareAgainstSelected':{'name':_0x2767('0x14'),'action':({plugins:_0xabea79},_0x569f4a)=>{const _0x3929d9=_0xabea79[_0x2767('0x31')](_0x59411d),_0x4643b3=_0x3929d9[_0x2767('0x10')];let _0x2a67bf=_0x3929d9[_0x2767('0x36')][_0x2767('0xa')],_0x34a055=_0x569f4a['id'];_0x4643b3[_0x2767('0x1c')](_0x2a67bf)>_0x4643b3[_0x2767('0x1c')](_0x34a055)&&([_0x2a67bf,_0x34a055]=[_0x34a055,_0x2a67bf]),_0x3929d9[_0x2767('0x30')](_0x2a67bf,_0x34a055);},'isVisible':({plugins:_0x2e47e5},_0x21ef59)=>{const _0x54960f=_0x2e47e5[_0x2767('0x31')](_0x59411d);return!(_0x54960f['repository'][_0x2767('0x7')](_0x54960f['diff'])[_0x2767('0xc')]>0x2)&&!_0x21ef59[_0x2767('0x1')];}},'restoreRevision':{'name':_0x2767('0x3'),'action':(_0x1d270e,{id:_0x310747})=>{_0x1d270e[_0x2767('0x18')][_0x2767('0x31')](_0x2767('0x11'))[_0x2767('0x3b')](_0x310747);},'isVisible':({plugins:_0x2c923a},_0x5aa8b0)=>!!_0x2c923a[_0x2767('0x31')](_0x59411d)[_0x2767('0x10')][_0x2767('0x1b')](_0x5aa8b0['id'])},'nameRevision':{'name':_0x2767('0x3a'),'action':({plugins:_0x6ef9b},{id:_0x1557a6,revisionNameView:_0x279900})=>{const _0x3edaea=_0x6ef9b['get'](_0x59411d),_0x5c0582=_0x3edaea['repository'][_0x2767('0x34')](_0x1557a6);_0x3edaea[_0x2767('0x30')](_0x1557a6,_0x5c0582),_0x279900['focus'](),_0x279900[_0x2767('0x24')]['select']();}}},w[_0x2767('0x21')]=[_0x2767('0x25'),_0x2767('0x16'),_0x2767('0xf')];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x25f4=['ck-revision-history-sidebar__header','Revision\x20history','ck-reset_all','ck-revision-history-sidebar__header__label','content','history','setTemplate','div'];(function(_0x1ef592,_0x25f48b){const _0x51b788=function(_0x4f7bf3){while(--_0x4f7bf3){_0x1ef592['push'](_0x1ef592['shift']());}};_0x51b788(++_0x25f48b);}(_0x25f4,0xe6));const _0x51b7=function(_0x1ef592,_0x25f48b){_0x1ef592=_0x1ef592-0x0;let _0x51b788=_0x25f4[_0x1ef592];return _0x51b788;};import{View as _0x6574f3,IconView as _0x5233d2}from'ckeditor5/src/ui.js';import{getTranslation as _0x2f0e59}from'../../utils/common-translations.js';import{icons as _0x1dd441}from'ckeditor5/src/core.js';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rs extends _0x6574f3{constructor(_0x2598d4){super(_0x2598d4);const _0x5ac39b=new _0x5233d2();_0x5ac39b[_0x51b7('0x6')]=_0x1dd441[_0x51b7('0x7')],this[_0x51b7('0x0')]({'tag':_0x51b7('0x1'),'attributes':{'class':['ck',_0x51b7('0x4'),_0x51b7('0x2')]},'children':[_0x5ac39b,{'tag':'span','attributes':{'class':['ck',_0x51b7('0x5')]},'children':[_0x2f0e59(_0x2598d4,_0x51b7('0x3'))]}]});}}
23
+ const _0x1495=['setTemplate','ck-reset_all','history','ck-revision-history-sidebar__header','ck-revision-history-sidebar__header__label'];(function(_0x1e58ed,_0x14951d){const _0x523bdb=function(_0x5dc6a4){while(--_0x5dc6a4){_0x1e58ed['push'](_0x1e58ed['shift']());}};_0x523bdb(++_0x14951d);}(_0x1495,0xe3));const _0x523b=function(_0x1e58ed,_0x14951d){_0x1e58ed=_0x1e58ed-0x0;let _0x523bdb=_0x1495[_0x1e58ed];return _0x523bdb;};import{View as _0x5a49f8,IconView as _0x4192eb}from'ckeditor5/src/ui.js';import{getTranslation as _0x1913e0}from'../../utils/common-translations.js';import{icons as _0x468ff8}from'ckeditor5/src/core.js';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rs extends _0x5a49f8{constructor(_0x5d1535){super(_0x5d1535);const _0x5172ca=new _0x4192eb();_0x5172ca['content']=_0x468ff8[_0x523b('0x0')],this[_0x523b('0x3')]({'tag':'div','attributes':{'class':['ck',_0x523b('0x4'),_0x523b('0x1')]},'children':[_0x5172ca,{'tag':'span','attributes':{'class':['ck',_0x523b('0x2')]},'children':[_0x1913e0(_0x5d1535,'Revision\x20history')]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ed9=['select','revisionViews','div','addRevision','createCollection','startDate','_revisionActions','setName','setTemplate','find','remove','delegate','localizedPeriodName','span','locale','removeRevision','add','uiLanguage'];(function(_0x161680,_0x4ed931){const _0x3d260a=function(_0x47db7c){while(--_0x47db7c){_0x161680['push'](_0x161680['shift']());}};_0x3d260a(++_0x4ed931);}(_0x4ed9,0xc0));const _0x3d26=function(_0x161680,_0x4ed931){_0x161680=_0x161680-0x0;let _0x3d260a=_0x4ed9[_0x161680];return _0x3d260a;};import{View as _0x228d5b}from'ckeditor5/src/ui.js';import _0x5e0e57 from'../revision/revisionview.js';import{getDateTimePeriodInfo as _0x4bd11b}from'./utils.js';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class vi extends _0x228d5b{constructor(_0x130859,_0x63ec3d,_0x40510f){super(_0x130859);const _0x579acc=_0x4bd11b(_0x63ec3d,this[_0x3d26('0x2')][_0x3d26('0x5')])[_0x3d26('0x0')];this[_0x3d26('0xb')]=_0x63ec3d,this[_0x3d26('0x7')]=this[_0x3d26('0xa')](),this[_0x3d26('0xc')]=_0x40510f,this['revisionViews'][_0x3d26('0x11')](_0x3d26('0x6'))['to'](this),this['revisionViews']['delegate'](_0x3d26('0xd'))['to'](this),this[_0x3d26('0xe')]({'tag':_0x3d26('0x8'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':_0x3d26('0x1'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x579acc}]},{'tag':_0x3d26('0x8'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this[_0x3d26('0x7')]}]});}[_0x3d26('0x9')](_0xa3f228){const _0x1774fb=new _0x5e0e57(this['locale'],_0xa3f228,this['_revisionActions']);this[_0x3d26('0x7')][_0x3d26('0x4')](_0x1774fb);}[_0x3d26('0x3')](_0x15d430){const _0x4442e6=this['revisionViews'][_0x3d26('0xf')](_0x5b7f48=>_0x5b7f48['id']===_0x15d430['id']);this['revisionViews'][_0x3d26('0x10')](_0x4442e6);}}
23
+ const _0x2445=['add','div','ck-revision-history-sidebar__time-period__revisions','localizedPeriodName','delegate','removeRevision','remove','startDate','revisionViews','createCollection','setName','locale','ck-revision-history-sidebar__time-period__label','span','uiLanguage','_revisionActions','ck-revision-history-sidebar__time-period'];(function(_0x2484e8,_0x2445b4){const _0x145646=function(_0x181d2d){while(--_0x181d2d){_0x2484e8['push'](_0x2484e8['shift']());}};_0x145646(++_0x2445b4);}(_0x2445,0xfd));const _0x1456=function(_0x2484e8,_0x2445b4){_0x2484e8=_0x2484e8-0x0;let _0x145646=_0x2445[_0x2484e8];return _0x145646;};import{View as _0x577ccc}from'ckeditor5/src/ui.js';import _0x3c596c from'../revision/revisionview.js';import{getDateTimePeriodInfo as _0x278e06}from'./utils.js';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class vi extends _0x577ccc{constructor(_0x503d28,_0x3cba27,_0x2f0abb){super(_0x503d28);const _0x475839=_0x278e06(_0x3cba27,this[_0x1456('0xd')][_0x1456('0x10')])[_0x1456('0x5')];this[_0x1456('0x9')]=_0x3cba27,this[_0x1456('0xa')]=this[_0x1456('0xb')](),this[_0x1456('0x0')]=_0x2f0abb,this[_0x1456('0xa')][_0x1456('0x6')]('select')['to'](this),this[_0x1456('0xa')][_0x1456('0x6')](_0x1456('0xc'))['to'](this),this['setTemplate']({'tag':_0x1456('0x3'),'attributes':{'class':['ck',_0x1456('0x1')]},'children':[{'tag':_0x1456('0xf'),'attributes':{'class':['ck',_0x1456('0xe')]},'children':[{'text':_0x475839}]},{'tag':'div','attributes':{'class':['ck',_0x1456('0x4')]},'children':this[_0x1456('0xa')]}]});}['addRevision'](_0x254d68){const _0xdc7909=new _0x3c596c(this[_0x1456('0xd')],_0x254d68,this[_0x1456('0x0')]);this[_0x1456('0xa')][_0x1456('0x2')](_0xdc7909);}[_0x1456('0x7')](_0x141942){const _0x5b91dc=this[_0x1456('0xa')]['find'](_0x1bec0a=>_0x1bec0a['id']===_0x141942['id']);this['revisionViews'][_0x1456('0x8')](_0x5b91dc);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1730=['_revisions','select','deselect','_addRevision','_revisionActions','startDate','_getTimePeriodViewByStartDate','highlight','add','locale','uiLanguage','setName','some','ck-disabled','revisionSelected','getTime','timePeriodViews','ck-reset','delegate','ck-revision-history-sidebar__timeline','ck-rounded-corners','set','createCollection','unhighlight','div','map','createdAt','revisionViews','removeRevision','find','flat','get','selectRevision','fire','revisionSetName','bindTemplate','addRevision','setTemplate'];(function(_0x5504c2,_0x173074){const _0x34ddc7=function(_0xac8f85){while(--_0xac8f85){_0x5504c2['push'](_0x5504c2['shift']());}};_0x34ddc7(++_0x173074);}(_0x1730,0x1c9));const _0x34dd=function(_0x5504c2,_0x173074){_0x5504c2=_0x5504c2-0x0;let _0x34ddc7=_0x1730[_0x5504c2];return _0x34ddc7;};import{View as _0x457396}from'ckeditor5/src/ui.js';import _0x2bd033 from'./revisionssidebartimeperiodview.js';import _0xf104fe from'./revisionssidebarheaderview.js';import{getDateTimePeriodInfo as _0x4110d9}from'./utils.js';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class di extends _0x457396{constructor(_0x2cbb40,_0x5a2e18,_0xcbfb6f){super(_0x2cbb40);const _0x5a60ee=this[_0x34dd('0x22')];this['timePeriodViews']=this[_0x34dd('0x15')](),this[_0x34dd('0xf')][_0x34dd('0x11')]('select')['to'](this),this[_0x34dd('0xf')][_0x34dd('0x11')]('setName')['to'](this),this[_0x34dd('0x25')]=_0x5a2e18,this[_0x34dd('0x3')]=_0xcbfb6f,this['on'](_0x34dd('0x0'),(_0x109e01,_0x39a7b6)=>{this[_0x34dd('0x20')](_0x34dd('0xd'),_0x39a7b6);}),this['on'](_0x34dd('0xa'),(_0x185a03,_0x3f5ab6)=>{this['fire'](_0x34dd('0x21'),_0x3f5ab6);}),this[_0x34dd('0x14')]('isEnabled',!0x1),this[_0x34dd('0x24')]({'tag':_0x34dd('0x17'),'attributes':{'class':['ck',_0x34dd('0x10'),_0x34dd('0x13'),'ck-revision-history-sidebar']},'children':[new _0xf104fe(_0x2cbb40),{'tag':_0x34dd('0x17'),'attributes':{'class':['ck',_0x34dd('0x12'),_0x5a60ee['if']('isEnabled',_0x34dd('0xc'),_0x46576f=>!_0x46576f)]},'children':this[_0x34dd('0xf')]}]});}['render'](){super['render']();for(const _0x22b050 of this['_revisions'])this[_0x34dd('0x2')](_0x22b050);this[_0x34dd('0x25')]['on'](_0x34dd('0x7'),(_0x53fd5,_0x36571d)=>{this[_0x34dd('0x2')](_0x36571d);}),this[_0x34dd('0x25')]['on']('remove',(_0x5bda2f,_0x32cca4)=>{this['_removeRevision'](_0x32cca4);});}get['revisionViews'](){return this[_0x34dd('0xf')][_0x34dd('0x18')](_0x1743e8=>_0x1743e8[_0x34dd('0x1a')][_0x34dd('0x18')](_0x33ac8a=>_0x33ac8a))[_0x34dd('0x1d')]();}[_0x34dd('0x1f')](_0x100dca){for(const _0x312220 of this[_0x34dd('0x1a')])_0x100dca&&_0x100dca['id']===_0x312220['id']?_0x312220['select']():_0x312220[_0x34dd('0x1')]();}['highlightRevisions'](_0x182de6){for(const _0x578fd5 of this[_0x34dd('0x1a')])_0x182de6[_0x34dd('0xb')](({id:_0x234795})=>_0x234795===_0x578fd5['id'])?_0x578fd5[_0x34dd('0x6')]():_0x578fd5[_0x34dd('0x16')]();}['_addRevision'](_0x160c14){const _0x217e22=_0x4110d9(_0x160c14[_0x34dd('0x19')],this['locale'][_0x34dd('0x9')])[_0x34dd('0x4')];let _0x53eba0=this[_0x34dd('0xf')][_0x34dd('0x1e')](0x0);_0x53eba0&&_0x53eba0[_0x34dd('0x4')][_0x34dd('0xe')]()===_0x217e22[_0x34dd('0xe')]()||(_0x53eba0=new _0x2bd033(this['locale'],_0x217e22,this[_0x34dd('0x3')]),this[_0x34dd('0xf')][_0x34dd('0x7')](_0x53eba0)),_0x53eba0[_0x34dd('0x23')](_0x160c14);}['_removeRevision'](_0x3b31fa){const _0x336fa6=_0x4110d9(_0x3b31fa['createdAt'],this[_0x34dd('0x8')]['uiLanguage'])['startDate'];this[_0x34dd('0x5')](_0x336fa6)[_0x34dd('0x1b')](_0x3b31fa);}[_0x34dd('0x5')](_0x10b496){return this['timePeriodViews'][_0x34dd('0x1c')](_0x4c2eef=>_0x4c2eef[_0x34dd('0x4')][_0x34dd('0xe')]()===_0x10b496['getTime']());}}
23
+ const _0xbd82=['bindTemplate','_revisionActions','_addRevision','revisionSelected','remove','setTemplate','ck-rounded-corners','deselect','find','createdAt','_removeRevision','div','revisionSetName','startDate','delegate','ck-disabled','add','setName','removeRevision','revisionViews','_getTimePeriodViewByStartDate','ck-revision-history-sidebar','get','selectRevision','flat','locale','render','set','isEnabled','createCollection','map','timePeriodViews','unhighlight','uiLanguage','_revisions','getTime','select','ck-revision-history-sidebar__timeline','fire','some','highlight'];(function(_0x4a79af,_0xbd82d3){const _0x31a7f9=function(_0x2a437e){while(--_0x2a437e){_0x4a79af['push'](_0x4a79af['shift']());}};_0x31a7f9(++_0xbd82d3);}(_0xbd82,0x19d));const _0x31a7=function(_0x4a79af,_0xbd82d3){_0x4a79af=_0x4a79af-0x0;let _0x31a7f9=_0xbd82[_0x4a79af];return _0x31a7f9;};import{View as _0x35a062}from'ckeditor5/src/ui.js';import _0x8fa1d6 from'./revisionssidebartimeperiodview.js';import _0x2756fa from'./revisionssidebarheaderview.js';import{getDateTimePeriodInfo as _0x4f923b}from'./utils.js';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class di extends _0x35a062{constructor(_0x6ac1cb,_0x42a3dd,_0x337981){super(_0x6ac1cb);const _0x556619=this[_0x31a7('0x26')];this[_0x31a7('0x1c')]=this[_0x31a7('0x1a')](),this[_0x31a7('0x1c')][_0x31a7('0xb')](_0x31a7('0x21'))['to'](this),this[_0x31a7('0x1c')][_0x31a7('0xb')](_0x31a7('0xe'))['to'](this),this['_revisions']=_0x42a3dd,this[_0x31a7('0x27')]=_0x337981,this['on'](_0x31a7('0x21'),(_0x3932e1,_0x479905)=>{this[_0x31a7('0x23')](_0x31a7('0x0'),_0x479905);}),this['on'](_0x31a7('0xe'),(_0xab73b0,_0x2514da)=>{this[_0x31a7('0x23')](_0x31a7('0x9'),_0x2514da);}),this[_0x31a7('0x18')](_0x31a7('0x19'),!0x1),this[_0x31a7('0x2')]({'tag':_0x31a7('0x8'),'attributes':{'class':['ck','ck-reset',_0x31a7('0x3'),_0x31a7('0x12')]},'children':[new _0x2756fa(_0x6ac1cb),{'tag':_0x31a7('0x8'),'attributes':{'class':['ck',_0x31a7('0x22'),_0x556619['if']('isEnabled',_0x31a7('0xc'),_0x143dcc=>!_0x143dcc)]},'children':this[_0x31a7('0x1c')]}]});}[_0x31a7('0x17')](){super[_0x31a7('0x17')]();for(const _0x338a3e of this[_0x31a7('0x1f')])this[_0x31a7('0x28')](_0x338a3e);this[_0x31a7('0x1f')]['on'](_0x31a7('0xd'),(_0x133f5b,_0x2f0b10)=>{this[_0x31a7('0x28')](_0x2f0b10);}),this[_0x31a7('0x1f')]['on'](_0x31a7('0x1'),(_0x279385,_0x99cf4)=>{this[_0x31a7('0x7')](_0x99cf4);});}get['revisionViews'](){return this[_0x31a7('0x1c')]['map'](_0x4e52dd=>_0x4e52dd[_0x31a7('0x10')][_0x31a7('0x1b')](_0x2c85ba=>_0x2c85ba))[_0x31a7('0x15')]();}[_0x31a7('0x14')](_0x5da69a){for(const _0x414653 of this[_0x31a7('0x10')])_0x5da69a&&_0x5da69a['id']===_0x414653['id']?_0x414653['select']():_0x414653[_0x31a7('0x4')]();}['highlightRevisions'](_0x191698){for(const _0x5ede01 of this[_0x31a7('0x10')])_0x191698[_0x31a7('0x24')](({id:_0x5d4d6a})=>_0x5d4d6a===_0x5ede01['id'])?_0x5ede01[_0x31a7('0x25')]():_0x5ede01[_0x31a7('0x1d')]();}[_0x31a7('0x28')](_0x293013){const _0x58b4de=_0x4f923b(_0x293013['createdAt'],this[_0x31a7('0x16')][_0x31a7('0x1e')])[_0x31a7('0xa')];let _0x45244b=this['timePeriodViews'][_0x31a7('0x13')](0x0);_0x45244b&&_0x45244b[_0x31a7('0xa')]['getTime']()===_0x58b4de[_0x31a7('0x20')]()||(_0x45244b=new _0x8fa1d6(this['locale'],_0x58b4de,this[_0x31a7('0x27')]),this['timePeriodViews']['add'](_0x45244b)),_0x45244b['addRevision'](_0x293013);}[_0x31a7('0x7')](_0x56dfc6){const _0x5a5bd=_0x4f923b(_0x56dfc6[_0x31a7('0x6')],this[_0x31a7('0x16')][_0x31a7('0x1e')])['startDate'];this[_0x31a7('0x11')](_0x5a5bd)[_0x31a7('0xf')](_0x56dfc6);}['_getTimePeriodViewByStartDate'](_0x174386){return this['timePeriodViews'][_0x31a7('0x5')](_0x948dcf=>_0x948dcf[_0x31a7('0xa')]['getTime']()===_0x174386[_0x31a7('0x20')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1ced=['toJSDate','startOf','toRelativeCalendar','minus','week','fromJSDate','setLocale','local','weekdayLong','day','year','hasSame'];(function(_0x10cbe6,_0x1ced3a){const _0x5f3f54=function(_0x3528db){while(--_0x3528db){_0x10cbe6['push'](_0x10cbe6['shift']());}};_0x5f3f54(++_0x1ced3a);}(_0x1ced,0xaa));const _0x5f3f=function(_0x10cbe6,_0x1ced3a){_0x10cbe6=_0x10cbe6-0x0;let _0x5f3f54=_0x1ced[_0x10cbe6];return _0x5f3f54;};import{DateTime as _0x384aca}from'luxon';export function getDateTimePeriodInfo(_0x28d1fc,_0x135ce8){const _0x642d8c=_0x384aca[_0x5f3f('0x3')](_0x28d1fc)[_0x5f3f('0x4')](_0x135ce8),_0x4b8227=_0x384aca[_0x5f3f('0x5')](),_0x42266c=_0x4b8227[_0x5f3f('0x1')]({'days':0x1})[_0x5f3f('0xb')](_0x5f3f('0x7'));let _0x30c7b0,_0x20af42;return _0x642d8c[_0x5f3f('0x9')](_0x4b8227,'day')?(_0x30c7b0=_0x642d8c[_0x5f3f('0xb')]('day')[_0x5f3f('0xa')](),_0x20af42=_0x642d8c[_0x5f3f('0x0')]()):_0x642d8c[_0x5f3f('0x9')](_0x42266c,_0x5f3f('0x7'))?(_0x30c7b0=_0x42266c[_0x5f3f('0xa')](),_0x20af42=_0x642d8c[_0x5f3f('0x0')]()):_0x642d8c['hasSame'](_0x4b8227,_0x5f3f('0x2'))?(_0x30c7b0=_0x642d8c[_0x5f3f('0xb')](_0x5f3f('0x2'))['toJSDate'](),_0x20af42=_0x642d8c[_0x5f3f('0x6')]||''):_0x642d8c[_0x5f3f('0x9')](_0x4b8227,_0x5f3f('0x8'))?(_0x30c7b0=_0x642d8c['startOf']('month')[_0x5f3f('0xa')](),_0x20af42=_0x642d8c['monthLong']||''):(_0x30c7b0=_0x642d8c[_0x5f3f('0xb')](_0x5f3f('0x8'))[_0x5f3f('0xa')](),_0x20af42=String(_0x642d8c[_0x5f3f('0x8')])),{'startDate':_0x30c7b0,'localizedPeriodName':_0x20af42};}
23
+ const _0x2565=['local','week','hasSame','startOf','year','fromJSDate','day','toJSDate','setLocale','toRelativeCalendar','weekdayLong','month'];(function(_0x11e0e5,_0x2565f9){const _0xd8dc11=function(_0x268543){while(--_0x268543){_0x11e0e5['push'](_0x11e0e5['shift']());}};_0xd8dc11(++_0x2565f9);}(_0x2565,0xaf));const _0xd8dc=function(_0x11e0e5,_0x2565f9){_0x11e0e5=_0x11e0e5-0x0;let _0xd8dc11=_0x2565[_0x11e0e5];return _0xd8dc11;};import{DateTime as _0x4fc0ba}from'luxon';export function getDateTimePeriodInfo(_0x4c750b,_0x278c40){const _0x25b016=_0x4fc0ba[_0xd8dc('0xa')](_0x4c750b)[_0xd8dc('0x1')](_0x278c40),_0xffb998=_0x4fc0ba[_0xd8dc('0x5')](),_0x30f32c=_0xffb998['minus']({'days':0x1})[_0xd8dc('0x8')]('day');let _0x252f60,_0x5ce954;return _0x25b016[_0xd8dc('0x7')](_0xffb998,'day')?(_0x252f60=_0x25b016[_0xd8dc('0x8')](_0xd8dc('0xb'))['toJSDate'](),_0x5ce954=_0x25b016[_0xd8dc('0x2')]()):_0x25b016[_0xd8dc('0x7')](_0x30f32c,_0xd8dc('0xb'))?(_0x252f60=_0x30f32c[_0xd8dc('0x0')](),_0x5ce954=_0x25b016[_0xd8dc('0x2')]()):_0x25b016[_0xd8dc('0x7')](_0xffb998,'week')?(_0x252f60=_0x25b016[_0xd8dc('0x8')](_0xd8dc('0x6'))[_0xd8dc('0x0')](),_0x5ce954=_0x25b016[_0xd8dc('0x3')]||''):_0x25b016['hasSame'](_0xffb998,_0xd8dc('0x9'))?(_0x252f60=_0x25b016['startOf'](_0xd8dc('0x4'))['toJSDate'](),_0x5ce954=_0x25b016['monthLong']||''):(_0x252f60=_0x25b016['startOf'](_0xd8dc('0x9'))['toJSDate'](),_0x5ce954=String(_0x25b016[_0xd8dc('0x9')])),{'startDate':_0x252f60,'localizedPeriodName':_0x5ce954};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x244a=['Suggested\x20by','name','data','set','element','Added\x20by','ck-annotation','type','author','ck-revision-change','Removed\x20by','span','add','ck-revision-change__','bindTemplate','div'];(function(_0x2c6e1f,_0x244a6d){const _0xb3b102=function(_0xb68b89){while(--_0xb68b89){_0x2c6e1f['push'](_0x2c6e1f['shift']());}};_0xb3b102(++_0x244a6d);}(_0x244a,0x6f));const _0xb3b1=function(_0x2c6e1f,_0x244a6d){_0x2c6e1f=_0x2c6e1f-0x0;let _0xb3b102=_0x244a[_0x2c6e1f];return _0xb3b102;};import{View as _0x288297}from'ckeditor5/src/ui.js';import{getTranslation as _0x211597}from'../../utils/common-translations.js';export default class Z extends _0x288297{constructor(_0x32ea21,_0xfac47c){super(_0x32ea21),this['_model']=_0xfac47c,this['changeId']=_0xfac47c['id'];const _0x1683a9=this[_0xb3b1('0xf')],_0x1b7f40=_0x211597(_0x32ea21,_0xfac47c[_0xb3b1('0x3')]['isSuggestion']?_0xb3b1('0x1'):_0xb3b1('0xd')==_0xfac47c[_0xb3b1('0x8')]?_0xb3b1('0x6'):_0xb3b1('0xb'));this[_0xb3b1('0x4')](_0xb3b1('0x8'),_0xfac47c[_0xb3b1('0x8')]),this['setTemplate']({'tag':_0xb3b1('0x0'),'attributes':{'class':[_0xb3b1('0x7'),_0xb3b1('0xa'),_0x1683a9['to'](_0xb3b1('0x8'),_0x4984ba=>_0xb3b1('0xe')+_0x4984ba)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':_0xb3b1('0xc'),'attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x1b7f40}]},{'text':'\x20'+_0xfac47c[_0xb3b1('0x9')][_0xb3b1('0x2')]}]}]});}['focus'](){this[_0xb3b1('0x5')]['focus']();}}
23
+ const _0x259c=['setTemplate','ck-revision-change__','author','span','isSuggestion','name','changeId','Added\x20by','data','ck-revision-change__label','ck-revision-change','focus','element','ck-annotation','add','Removed\x20by','type','_model'];(function(_0x2b1cde,_0x259c87){const _0x5db702=function(_0x417c8f){while(--_0x417c8f){_0x2b1cde['push'](_0x2b1cde['shift']());}};_0x5db702(++_0x259c87);}(_0x259c,0x119));const _0x5db7=function(_0x2b1cde,_0x259c87){_0x2b1cde=_0x2b1cde-0x0;let _0x5db702=_0x259c[_0x2b1cde];return _0x5db702;};import{View as _0x74aeaa}from'ckeditor5/src/ui.js';import{getTranslation as _0x36d3a2}from'../../utils/common-translations.js';export default class Z extends _0x74aeaa{constructor(_0x3a4de0,_0x3377ab){super(_0x3a4de0),this[_0x5db7('0x6')]=_0x3377ab,this[_0x5db7('0xd')]=_0x3377ab['id'];const _0x1a820b=this['bindTemplate'],_0x211eb5=_0x36d3a2(_0x3a4de0,_0x3377ab[_0x5db7('0xf')][_0x5db7('0xb')]?'Suggested\x20by':_0x5db7('0x3')==_0x3377ab[_0x5db7('0x5')]?_0x5db7('0xe'):_0x5db7('0x4'));this['set'](_0x5db7('0x5'),_0x3377ab[_0x5db7('0x5')]),this[_0x5db7('0x7')]({'tag':'div','attributes':{'class':[_0x5db7('0x2'),_0x5db7('0x11'),_0x1a820b['to'](_0x5db7('0x5'),_0x46cca2=>_0x5db7('0x8')+_0x46cca2)],'tabindex':-0x1},'children':[{'tag':_0x5db7('0xa'),'children':[{'tag':_0x5db7('0xa'),'attributes':{'class':[_0x5db7('0x10')]},'children':[{'text':_0x211eb5}]},{'text':'\x20'+_0x3377ab[_0x5db7('0x9')][_0x5db7('0xc')]}]}]});}[_0x5db7('0x0')](){this[_0x5db7('0x1')][_0x5db7('0x0')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb7e1=['isReady','ck-revision-history-ui__changes-navigation__wrapper','X_OF_Y_CHANGES','Total','_isStatusLabelVisible','forward','bind','Loading...','span','numberOfChanges','isNavigationMode','isBackwardNavigationEnabled','Show\x20next\x20change','_statusText','ck-revision-history-ui','execute','Show\x20previous\x20change','fire','No\x20changes','currentChangeNumber','bindTemplate','set','ck-revision-history-ui__changes-navigation__label','isEnabled','ck-revision-history-ui__changes-navigation__navigation','div','EDIT_X_OF_Y_REVISIONS','backward'];(function(_0x5bf59a,_0xb7e18e){const _0x409853=function(_0x5c9515){while(--_0x5c9515){_0x5bf59a['push'](_0x5bf59a['shift']());}};_0x409853(++_0xb7e18e);}(_0xb7e1,0x1e6));const _0x4098=function(_0x5bf59a,_0xb7e18e){_0x5bf59a=_0x5bf59a-0x0;let _0x409853=_0xb7e1[_0x5bf59a];return _0x409853;};import{View as _0x1c0703,ButtonView as _0x58af4b,ToolbarSeparatorView as _0xcf0128}from'ckeditor5/src/ui.js';import{getTranslation as _0x40724c}from'../../utils/common-translations.js';import _0x31839d from'../../../theme/icons/arrow-up.svg';import _0x5b2483 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x1c0703{constructor(_0x5697b2){super(_0x5697b2);const _0x99f369=this[_0x4098('0xa')],_0x30f610=new _0x58af4b(_0x5697b2),_0x1a8009=new _0x58af4b(_0x5697b2);this[_0x4098('0xb')]('isNavigationMode',!0x1),this[_0x4098('0xb')](_0x4098('0x12'),!0x1),this[_0x4098('0xb')](_0x4098('0x9'),0x0),this[_0x4098('0xb')]('numberOfChanges',0x0),this[_0x4098('0xb')]('isForwardNavigationEnabled',!0x1),this[_0x4098('0xb')](_0x4098('0x1'),!0x1),this[_0x4098('0x18')](_0x4098('0x16'))['to'](this,_0x4098('0x12'),this,_0x4098('0x1b'),(_0x12e02d,_0x4162dd)=>_0x12e02d&&_0x4162dd>0x0),this[_0x4098('0x18')](_0x4098('0x3'))['to'](this,'isReady',this,'currentChangeNumber',this,_0x4098('0x1b'),this,_0x4098('0x0'),(_0x2877b4,_0x57aa48,_0x29150c,_0x9fe3c2)=>{if(!_0x2877b4)return _0x40724c(_0x5697b2,_0x4098('0x19'));if(!_0x29150c)return _0x40724c(_0x5697b2,_0x4098('0x8'));const _0x40e232=_0x40724c(_0x5697b2,'NUMBER_OF_CHANGES',_0x29150c);return _0x9fe3c2?_0x40724c(_0x5697b2,_0x4098('0x14'),[_0x57aa48+0x1,_0x29150c]):_0x40e232;}),_0x30f610[_0x4098('0xb')]({'label':_0x40724c(_0x5697b2,_0x4098('0x6')),'tooltip':!0x0,'icon':_0x31839d}),_0x1a8009[_0x4098('0xb')]({'label':_0x40724c(_0x5697b2,_0x4098('0x2')),'tooltip':!0x0,'icon':_0x5b2483}),_0x30f610['bind'](_0x4098('0xd'))['to'](this,_0x4098('0x1')),_0x1a8009[_0x4098('0x18')](_0x4098('0xd'))['to'](this,'isForwardNavigationEnabled'),_0x30f610['on'](_0x4098('0x5'),()=>this[_0x4098('0x7')](_0x4098('0x5'),_0x4098('0x11'))),_0x1a8009['on'](_0x4098('0x5'),()=>this[_0x4098('0x7')](_0x4098('0x5'),_0x4098('0x17'))),this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x4098('0x4'),'ck-revision-history-ui__changes-navigation']},'children':[{'tag':_0x4098('0x1a'),'attributes':{'class':[_0x4098('0x13')]},'children':[{'tag':_0x4098('0x1a'),'attributes':{'class':[_0x4098('0xc'),_0x99f369['if'](_0x4098('0x16'),'ck-hidden',_0x451b71=>!_0x451b71)]},'children':[{'text':_0x99f369['to'](_0x4098('0x0'),_0xcaffa2=>_0xcaffa2?_0x40724c(_0x5697b2,_0x4098('0x10'))+':\x20':_0x40724c(_0x5697b2,_0x4098('0x15'))+':\x20')}]},{'text':_0x99f369['to'](_0x4098('0x3'))}]},new _0xcf0128(),{'tag':_0x4098('0xf'),'attributes':{'class':[_0x4098('0xe')]},'children':[_0x30f610,_0x1a8009]}]});}}
23
+ const _0x2d6d=['execute','setTemplate','bind','X_OF_Y_CHANGES','isNavigationMode','No\x20changes','_isStatusLabelVisible','backward','ck-revision-history-ui__changes-navigation__navigation','EDIT_X_OF_Y_REVISIONS','div','numberOfChanges','Show\x20next\x20change','Loading...','fire','isBackwardNavigationEnabled','ck-revision-history-ui__changes-navigation__label','isEnabled','bindTemplate','_statusText','set','currentChangeNumber','span','ck-revision-history-ui__changes-navigation__wrapper','isReady','ck-revision-history-ui','isForwardNavigationEnabled'];(function(_0xe4cb5,_0x2d6d26){const _0x21de7e=function(_0x4a8747){while(--_0x4a8747){_0xe4cb5['push'](_0xe4cb5['shift']());}};_0x21de7e(++_0x2d6d26);}(_0x2d6d,0x67));const _0x21de=function(_0xe4cb5,_0x2d6d26){_0xe4cb5=_0xe4cb5-0x0;let _0x21de7e=_0x2d6d[_0xe4cb5];return _0x21de7e;};import{View as _0x512742,ButtonView as _0x406550,ToolbarSeparatorView as _0x481d2a}from'ckeditor5/src/ui.js';import{getTranslation as _0x1754ae}from'../../utils/common-translations.js';import _0xd2bd15 from'../../../theme/icons/arrow-up.svg';import _0x4ec76a from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x512742{constructor(_0x4d5c19){super(_0x4d5c19);const _0x5027a9=this[_0x21de('0x17')],_0x26956c=new _0x406550(_0x4d5c19),_0x4271d0=new _0x406550(_0x4d5c19);this[_0x21de('0x19')](_0x21de('0x9'),!0x1),this[_0x21de('0x19')]('isReady',!0x1),this[_0x21de('0x19')]('currentChangeNumber',0x0),this[_0x21de('0x19')](_0x21de('0x10'),0x0),this[_0x21de('0x19')](_0x21de('0x4'),!0x1),this[_0x21de('0x19')]('isBackwardNavigationEnabled',!0x1),this[_0x21de('0x7')](_0x21de('0xb'))['to'](this,_0x21de('0x2'),this,_0x21de('0x10'),(_0x42d1d2,_0x836cb3)=>_0x42d1d2&&_0x836cb3>0x0),this[_0x21de('0x7')](_0x21de('0x18'))['to'](this,_0x21de('0x2'),this,_0x21de('0x1a'),this,_0x21de('0x10'),this,_0x21de('0x9'),(_0x5d6043,_0x5f513b,_0xde11c,_0x29f23b)=>{if(!_0x5d6043)return _0x1754ae(_0x4d5c19,_0x21de('0x12'));if(!_0xde11c)return _0x1754ae(_0x4d5c19,_0x21de('0xa'));const _0x36f4b8=_0x1754ae(_0x4d5c19,'NUMBER_OF_CHANGES',_0xde11c);return _0x29f23b?_0x1754ae(_0x4d5c19,_0x21de('0x8'),[_0x5f513b+0x1,_0xde11c]):_0x36f4b8;}),_0x26956c['set']({'label':_0x1754ae(_0x4d5c19,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0xd2bd15}),_0x4271d0[_0x21de('0x19')]({'label':_0x1754ae(_0x4d5c19,_0x21de('0x11')),'tooltip':!0x0,'icon':_0x4ec76a}),_0x26956c[_0x21de('0x7')](_0x21de('0x16'))['to'](this,_0x21de('0x14')),_0x4271d0['bind'](_0x21de('0x16'))['to'](this,'isForwardNavigationEnabled'),_0x26956c['on']('execute',()=>this[_0x21de('0x13')](_0x21de('0x5'),_0x21de('0xc'))),_0x4271d0['on'](_0x21de('0x5'),()=>this[_0x21de('0x13')](_0x21de('0x5'),'forward')),this[_0x21de('0x6')]({'tag':_0x21de('0xf'),'attributes':{'class':['ck',_0x21de('0x3'),'ck-revision-history-ui__changes-navigation']},'children':[{'tag':_0x21de('0x0'),'attributes':{'class':[_0x21de('0x1')]},'children':[{'tag':'span','attributes':{'class':[_0x21de('0x15'),_0x5027a9['if'](_0x21de('0xb'),'ck-hidden',_0x392064=>!_0x392064)]},'children':[{'text':_0x5027a9['to']('isNavigationMode',_0x777cad=>_0x777cad?_0x1754ae(_0x4d5c19,_0x21de('0xe'))+':\x20':_0x1754ae(_0x4d5c19,'Total')+':\x20')}]},{'text':_0x5027a9['to'](_0x21de('0x18'))}]},new _0x481d2a(),{'tag':_0x21de('0xf'),'attributes':{'class':[_0x21de('0xd')]},'children':[_0x26956c,_0x4271d0]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x998f=['view','editor','removeClass','roots','hide','show','change','addClass','editing'];(function(_0x522386,_0x998ff4){const _0x401474=function(_0x5ea5c1){while(--_0x5ea5c1){_0x522386['push'](_0x522386['shift']());}};_0x401474(++_0x998ff4);}(_0x998f,0x1bd));const _0x4014=function(_0x522386,_0x998ff4){_0x522386=_0x522386-0x0;let _0x401474=_0x998f[_0x522386];return _0x401474;};import{Plugin as _0x449508}from'ckeditor5/src/core.js';const oe='ck-editor__editable__loading-overlay';import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x449508{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}[_0x4014('0x1')](){const _0x4b8403=this[_0x4014('0x6')][_0x4014('0x4')][_0x4014('0x5')];_0x4b8403[_0x4014('0x2')](_0x14ea00=>{for(const _0x568ab5 of _0x4b8403['document'][_0x4014('0x8')])_0x14ea00[_0x4014('0x3')](oe,_0x568ab5);});}[_0x4014('0x0')](){const _0x2d4d45=this['editor'][_0x4014('0x4')][_0x4014('0x5')];_0x2d4d45[_0x4014('0x2')](_0x4f86bd=>{for(const _0x5e735e of _0x2d4d45['document'][_0x4014('0x8')])_0x4f86bd[_0x4014('0x7')](oe,_0x5e735e);});}}
23
+ const _0x2222=['editing','ck-editor__editable__loading-overlay','change','show','editor','view','addClass','hide','removeClass','roots','document','pluginName'];(function(_0x544154,_0x222273){const _0x1c9029=function(_0x216ada){while(--_0x216ada){_0x544154['push'](_0x544154['shift']());}};_0x1c9029(++_0x222273);}(_0x2222,0x1c6));const _0x1c90=function(_0x544154,_0x222273){_0x544154=_0x544154-0x0;let _0x1c9029=_0x2222[_0x544154];return _0x1c9029;};import{Plugin as _0x26bd25}from'ckeditor5/src/core.js';const oe=_0x1c90('0x3');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x26bd25{static get[_0x1c90('0x1')](){return'RevisionViewerLoadingOverlay';}[_0x1c90('0x5')](){const _0x5c14e4=this[_0x1c90('0x6')][_0x1c90('0x2')]['view'];_0x5c14e4[_0x1c90('0x4')](_0x10bffd=>{for(const _0x5d0760 of _0x5c14e4['document'][_0x1c90('0xb')])_0x10bffd[_0x1c90('0x8')](oe,_0x5d0760);});}[_0x1c90('0x9')](){const _0x3d872f=this[_0x1c90('0x6')][_0x1c90('0x2')][_0x1c90('0x7')];_0x3d872f['change'](_0x415c07=>{for(const _0x4f09f2 of _0x3d872f[_0x1c90('0x0')][_0x1c90('0xb')])_0x415c07[_0x1c90('0xa')](oe,_0x4f09f2);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5d82=['isEnabled','bind','numberOfChanges','forward','exitToEditing','showPreviousChange','componentFactory','change:isReady','editor','show','undo','isReady','get','isNavigationMode','isBackwardNavigationEnabled','init','hide','RevisionViewerUI','restoreRevision','plugins','execute','requires','add','isForwardNavigationEnabled','Back\x20to\x20editing','pluginName','listenTo','revisionHistory','set','commands','showNextChange','ck-revision-history-ui__back-to-editing'];(function(_0x54cda9,_0x5d8210){const _0x29620d=function(_0x5ae3b0){while(--_0x5ae3b0){_0x54cda9['push'](_0x54cda9['shift']());}};_0x29620d(++_0x5d8210);}(_0x5d82,0x1c8));const _0x2962=function(_0x54cda9,_0x5d8210){_0x54cda9=_0x54cda9-0x0;let _0x29620d=_0x5d82[_0x54cda9];return _0x29620d;};import{icons as _0xc890cb,Plugin as _0x1b3819}from'ckeditor5/src/core.js';import{ButtonView as _0x58c94a}from'ckeditor5/src/ui.js';import _0x5c832d from'./changesnavigationview.js';import _0x3fc99f from'./../../revisionviewer.js';import _0x146bc4 from'./revisionviewerloadingoverlay.js';import{getTranslation as _0x5678fb}from'../../utils/common-translations.js';import'../../../theme/revisionviewer.css';export default class R extends _0x1b3819{static get[_0x2962('0x11')](){return _0x2962('0x9');}static get[_0x2962('0xd')](){return[_0x3fc99f,_0x146bc4];}[_0x2962('0x7')](){const _0x3a7e8f=this[_0x2962('0x0')],_0x40a1b3=_0x3a7e8f['plugins']['get'](_0x3fc99f),_0x15a48a=_0x3a7e8f[_0x2962('0xb')]['get'](_0x146bc4);_0x3a7e8f['ui'][_0x2962('0x1e')][_0x2962('0xe')](_0x2962('0x1c'),_0x4502b4=>{const _0x3f8d50=new _0x58c94a(_0x4502b4);return _0x3f8d50[_0x2962('0x14')]({'label':_0x5678fb(_0x4502b4,_0x2962('0x10')),'icon':_0xc890cb[_0x2962('0x2')],'withText':!0x0,'tooltip':!0x0,'class':_0x2962('0x17')}),this[_0x2962('0x12')](_0x3f8d50,_0x2962('0xc'),()=>{_0x3a7e8f['config'][_0x2962('0x4')](_0x2962('0x13'))['closeRevisionViewerCallback']();}),_0x3f8d50;}),_0x3a7e8f['ui']['componentFactory'][_0x2962('0xe')](_0x2962('0xa'),_0x408c14=>{const _0x2c79f3=new _0x58c94a(_0x408c14);return _0x2c79f3[_0x2962('0x14')]({'label':_0x5678fb(_0x408c14,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2c79f3['bind'](_0x2962('0x18'))['to'](_0x3a7e8f[_0x2962('0x15')][_0x2962('0x4')]('restoreRevision')),this[_0x2962('0x12')](_0x2c79f3,_0x2962('0xc'),()=>_0x3a7e8f['execute'](_0x2962('0xa'))),_0x2c79f3;}),_0x3a7e8f['ui'][_0x2962('0x1e')][_0x2962('0xe')]('changesNavigation',_0x28969e=>{const _0x322434=new _0x5c832d(_0x28969e),_0x2b9351=_0x3a7e8f[_0x2962('0x15')][_0x2962('0x4')](_0x2962('0x1d')),_0x347f7f=_0x3a7e8f[_0x2962('0x15')][_0x2962('0x4')](_0x2962('0x16'));return _0x322434[_0x2962('0x19')](_0x2962('0x6'))['to'](_0x2b9351,_0x2962('0x18')),_0x322434[_0x2962('0x19')](_0x2962('0xf'))['to'](_0x347f7f,_0x2962('0x18')),_0x322434[_0x2962('0x19')](_0x2962('0x3'),'currentChangeNumber',_0x2962('0x1a'),_0x2962('0x5'))['to'](_0x40a1b3),this[_0x2962('0x12')](_0x322434,_0x2962('0xc'),(_0x11c6b9,_0x32e88c)=>{_0x3a7e8f[_0x2962('0xc')](_0x2962('0x1b')===_0x32e88c?_0x2962('0x16'):_0x2962('0x1d'));}),_0x322434;}),_0x15a48a['show'](),_0x40a1b3['on'](_0x2962('0x1f'),(_0x2237b3,_0x1bf0e4,_0x53ce78)=>{_0x53ce78?_0x15a48a[_0x2962('0x8')]():_0x15a48a[_0x2962('0x1')]();});}}
23
+ const _0x5919=['restoreRevision','pluginName','editor','Back\x20to\x20editing','showPreviousChange','forward','set','execute','bind','commands','init','config','plugins','isForwardNavigationEnabled','listenTo','ck-revision-history-ui__back-to-editing','exitToEditing','closeRevisionViewerCallback','change:isReady','numberOfChanges','Restore\x20this\x20revision','changesNavigation','undo','isBackwardNavigationEnabled','add','get','componentFactory','isEnabled','isReady','requires','RevisionViewerUI','isNavigationMode','showNextChange','hide','revisionHistory'];(function(_0x46b4b2,_0x5919d6){const _0x40d515=function(_0x53867d){while(--_0x53867d){_0x46b4b2['push'](_0x46b4b2['shift']());}};_0x40d515(++_0x5919d6);}(_0x5919,0x76));const _0x40d5=function(_0x46b4b2,_0x5919d6){_0x46b4b2=_0x46b4b2-0x0;let _0x40d515=_0x5919[_0x46b4b2];return _0x40d515;};import{icons as _0x2211df,Plugin as _0x235268}from'ckeditor5/src/core.js';import{ButtonView as _0x3e09e3}from'ckeditor5/src/ui.js';import _0x54e965 from'./changesnavigationview.js';import _0x47a908 from'./../../revisionviewer.js';import _0x94eec3 from'./revisionviewerloadingoverlay.js';import{getTranslation as _0xb2aecd}from'../../utils/common-translations.js';import'../../../theme/revisionviewer.css';export default class R extends _0x235268{static get[_0x40d5('0x17')](){return _0x40d5('0x11');}static get[_0x40d5('0x10')](){return[_0x47a908,_0x94eec3];}[_0x40d5('0x20')](){const _0x4847e6=this[_0x40d5('0x18')],_0x1f0be2=_0x4847e6[_0x40d5('0x22')][_0x40d5('0xc')](_0x47a908),_0x47ea1d=_0x4847e6['plugins']['get'](_0x94eec3);_0x4847e6['ui'][_0x40d5('0xd')][_0x40d5('0xb')](_0x40d5('0x3'),_0x5cdbb9=>{const _0x130a83=new _0x3e09e3(_0x5cdbb9);return _0x130a83[_0x40d5('0x1c')]({'label':_0xb2aecd(_0x5cdbb9,_0x40d5('0x19')),'icon':_0x2211df[_0x40d5('0x9')],'withText':!0x0,'tooltip':!0x0,'class':_0x40d5('0x2')}),this[_0x40d5('0x1')](_0x130a83,'execute',()=>{_0x4847e6[_0x40d5('0x21')]['get'](_0x40d5('0x15'))[_0x40d5('0x4')]();}),_0x130a83;}),_0x4847e6['ui']['componentFactory'][_0x40d5('0xb')](_0x40d5('0x16'),_0x295e50=>{const _0x3a89d6=new _0x3e09e3(_0x295e50);return _0x3a89d6[_0x40d5('0x1c')]({'label':_0xb2aecd(_0x295e50,_0x40d5('0x7')),'withText':!0x0,'tooltip':!0x0}),_0x3a89d6[_0x40d5('0x1e')](_0x40d5('0xe'))['to'](_0x4847e6['commands'][_0x40d5('0xc')]('restoreRevision')),this['listenTo'](_0x3a89d6,'execute',()=>_0x4847e6['execute'](_0x40d5('0x16'))),_0x3a89d6;}),_0x4847e6['ui']['componentFactory']['add'](_0x40d5('0x8'),_0x59276e=>{const _0x40c86e=new _0x54e965(_0x59276e),_0x172ae7=_0x4847e6['commands'][_0x40d5('0xc')](_0x40d5('0x1a')),_0x3ff378=_0x4847e6[_0x40d5('0x1f')]['get']('showNextChange');return _0x40c86e[_0x40d5('0x1e')](_0x40d5('0xa'))['to'](_0x172ae7,'isEnabled'),_0x40c86e[_0x40d5('0x1e')](_0x40d5('0x0'))['to'](_0x3ff378,_0x40d5('0xe')),_0x40c86e[_0x40d5('0x1e')](_0x40d5('0xf'),'currentChangeNumber',_0x40d5('0x6'),_0x40d5('0x12'))['to'](_0x1f0be2),this['listenTo'](_0x40c86e,_0x40d5('0x1d'),(_0x5f15ee,_0x45aa27)=>{_0x4847e6[_0x40d5('0x1d')](_0x40d5('0x1b')===_0x45aa27?_0x40d5('0x13'):_0x40d5('0x1a'));}),_0x40c86e;}),_0x47ea1d['show'](),_0x1f0be2['on'](_0x40d5('0x5'),(_0x9da908,_0x221813,_0x4622c5)=>{_0x4622c5?_0x47ea1d[_0x40d5('0x14')]():_0x47ea1d['show']();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x4b7aab,_0x1dfafc,_0x57259f){const t=_0x4b7aab['t'];switch(_0x1dfafc){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'},_0x57259f);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x57259f);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 _0x1dfafc;}}
23
+ export function getTranslation(_0x266adb,_0x777aad,_0x5539ad){const t=_0x266adb['t'];switch(_0x777aad){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'},_0x5539ad);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5539ad);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 _0x777aad;}}