@ckeditor/ckeditor5-revision-history 33.0.0 → 34.0.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 (80) hide show
  1. package/README.md +3 -0
  2. package/build/revision-history.js +5 -0
  3. package/build/translations/az.js +1 -0
  4. package/build/translations/bs.js +1 -0
  5. package/build/translations/cs.js +1 -0
  6. package/build/translations/da.js +1 -0
  7. package/build/translations/de-ch.js +1 -0
  8. package/build/translations/de.js +1 -0
  9. package/build/translations/el.js +1 -0
  10. package/build/translations/en-au.js +1 -0
  11. package/build/translations/en-gb.js +1 -0
  12. package/build/translations/es.js +1 -0
  13. package/build/translations/et.js +1 -0
  14. package/build/translations/fa.js +1 -0
  15. package/build/translations/fr.js +1 -0
  16. package/build/translations/gl.js +1 -0
  17. package/build/translations/he.js +1 -0
  18. package/build/translations/hi.js +1 -0
  19. package/build/translations/hr.js +1 -0
  20. package/build/translations/hu.js +1 -0
  21. package/build/translations/id.js +1 -0
  22. package/build/translations/it.js +1 -0
  23. package/build/translations/ja.js +1 -0
  24. package/build/translations/jv.js +1 -0
  25. package/build/translations/ko.js +1 -0
  26. package/build/translations/ku.js +1 -0
  27. package/build/translations/lv.js +1 -0
  28. package/build/translations/ne.js +1 -0
  29. package/build/translations/nl.js +1 -0
  30. package/build/translations/no.js +1 -0
  31. package/build/translations/pl.js +1 -0
  32. package/build/translations/pt-br.js +1 -0
  33. package/build/translations/ro.js +1 -0
  34. package/build/translations/ru.js +1 -0
  35. package/build/translations/sk.js +1 -0
  36. package/build/translations/sr-latn.js +1 -0
  37. package/build/translations/sr.js +1 -0
  38. package/build/translations/tk.js +1 -0
  39. package/build/translations/tr.js +1 -0
  40. package/build/translations/ug.js +1 -0
  41. package/build/translations/uk.js +1 -0
  42. package/build/translations/vi.js +1 -0
  43. package/build/translations/zh-cn.js +1 -0
  44. package/build/translations/zh.js +1 -0
  45. package/lang/translations/en-au.po +25 -25
  46. package/lang/translations/gl.po +5 -5
  47. package/lang/translations/hr.po +6 -6
  48. package/lang/translations/jv.po +122 -0
  49. package/lang/translations/pt-br.po +3 -3
  50. package/lang/translations/sk.po +27 -27
  51. package/package.json +8 -11
  52. package/src/changeitem.js +1 -1
  53. package/src/editor/revisionviewereditor.js +23 -0
  54. package/src/editor/revisionviewereditorui.js +23 -0
  55. package/src/editor/revisionviewereditoruiview.js +23 -0
  56. package/src/index.js +23 -0
  57. package/src/revision.js +1 -1
  58. package/src/revisiondiff.js +1 -1
  59. package/src/revisionhistory.js +1 -1
  60. package/src/revisionsrepository.js +1 -1
  61. package/src/revisiontracker.js +1 -1
  62. package/src/revisionviewer.js +1 -1
  63. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  64. package/src/ui/revision/revisionauthorview.js +1 -1
  65. package/src/ui/revision/revisionnameview.js +1 -1
  66. package/src/ui/revision/revisionview.js +1 -1
  67. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  68. package/src/ui/revision/subrevisionview.js +1 -1
  69. package/src/ui/revision/utils.js +1 -1
  70. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  71. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  72. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  73. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  74. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  75. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  76. package/src/ui/revisionssidebar/utils.js +1 -1
  77. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  78. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  79. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  80. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2d78=['get','Compare\x20against\x20selected','defaultRevisionActions','highlightRevisions','bind','appendChild','getRevision','restoreRevision','remove','revisionHistory.viewerSidebarContainer','add','getRevisionsInDiff','Name\x20this\x20revision','action','compare','isVisible','setName','select','isEnabled','name','diff','newRevisionId','ready','revisionHistory.revisionActions','_sidebarView','revisionViews','revisionSelected','map','_revisions','_handleRevisionSelected','assign','selectRevision','_handleRevisionSetName','_handleDiffChange','_handleEditorDataReady','change:diff','string','getEarlierVisibleRevision','_revisionsRepository','destroy','editor','listenTo','element','timePeriodViews','_revisionViewer','nameRevision','pluginName','availableRevisionActions','Restore\x20this\x20revision','config','fieldView','length','focus','restoreRevisionCallback','revisionSetName','compareAgainstSelected'];(function(_0x3e223a,_0x2d78b4){const _0x260dab=function(_0x1de565){while(--_0x1de565){_0x3e223a['push'](_0x3e223a['shift']());}};_0x260dab(++_0x2d78b4);}(_0x2d78,0x169));const _0x260d=function(_0x3e223a,_0x2d78b4){_0x3e223a=_0x3e223a-0x0;let _0x260dab=_0x2d78[_0x3e223a];return _0x260dab;};import{Plugin as _0x29c01f}from'ckeditor5/src/core';import _0x7d9131 from'./revisionssidebarview';import _0x40374a from'../../revisionviewer';export default class y extends _0x29c01f{static get[_0x260d('0x15')](){return'RevisionsSidebar';}static get['requires'](){return[_0x40374a];}constructor(_0x22906f){super(_0x22906f),this[_0x260d('0x13')]=_0x22906f['plugins']['get'](_0x40374a),this[_0x260d('0xd')]=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x1cd03d=this[_0x260d('0xd')][_0x260d('0x3')],_0x1ea421=this['_createRevisionActions'](),_0x20da88=this[_0x260d('0xf')]['config'][_0x260d('0x1f')](_0x260d('0x28'));this[_0x260d('0x37')]=new _0x7d9131(this[_0x260d('0xf')]['locale'],_0x1cd03d,_0x1ea421),this[_0x260d('0x37')]['on'](_0x260d('0x1'),this[_0x260d('0x4')][_0x260d('0x23')](this)),this[_0x260d('0x37')]['on'](_0x260d('0x1d'),this[_0x260d('0x7')][_0x260d('0x23')](this)),this[_0x260d('0x37')][_0x260d('0x23')](_0x260d('0x31'))['to'](this[_0x260d('0x13')]),this[_0x260d('0x37')][_0x260d('0x12')]['on']('add',(_0x1c8716,_0x3468bc)=>{_0x3468bc[_0x260d('0x0')]['on'](_0x260d('0x29'),(_0x50c85e,_0x44d2a5)=>{_0x44d2a5[_0x260d('0x23')](_0x260d('0x31'),'isReady')['to'](this[_0x260d('0x13')]);});}),this[_0x260d('0x37')]['render'](),this[_0x260d('0x10')](this['editor']['data'],_0x260d('0x35'),this['_handleEditorDataReady'][_0x260d('0x23')](this)),this[_0x260d('0x10')](this[_0x260d('0x13')],_0x260d('0xa'),this[_0x260d('0x8')]['bind'](this)),_0x20da88[_0x260d('0x24')](this[_0x260d('0x37')]['element']);}[_0x260d('0xe')](){this[_0x260d('0x37')][_0x260d('0x11')][_0x260d('0x27')](),this['_sidebarView'][_0x260d('0xe')]();}[_0x260d('0x9')](){const _0xf8a6d2=this[_0x260d('0xd')][_0x260d('0x25')](0x0);if(_0xf8a6d2){const _0x5a2112=this[_0x260d('0xd')]['getEarlierVisibleRevision'](_0xf8a6d2['id']);this[_0x260d('0x13')]['compare'](_0xf8a6d2,_0x5a2112);}}[_0x260d('0x4')](_0x38e626,_0x4fa5e9){const _0x33f54a=this[_0x260d('0xd')][_0x260d('0x25')](_0x4fa5e9['id']),_0x1c5a73=this['_revisionsRepository'][_0x260d('0xc')](_0x33f54a['id']);this[_0x260d('0x13')][_0x260d('0x2d')](_0x33f54a,_0x1c5a73);}[_0x260d('0x7')](_0x1a4dd2,_0x1642bf){this[_0x260d('0xd')][_0x260d('0x25')](_0x1642bf['id'])[_0x260d('0x2f')](_0x1642bf[_0x260d('0x32')]);}[_0x260d('0x8')](_0x2bb368,_0x5135f1,_0x8063a9){const _0x262c32=this[_0x260d('0xd')][_0x260d('0x2a')](_0x8063a9);_0x262c32[_0x260d('0x1a')]>0x2?(this[_0x260d('0x37')][_0x260d('0x22')](_0x262c32),this['_sidebarView'][_0x260d('0x6')](null)):(this[_0x260d('0x37')][_0x260d('0x22')]([]),this['_sidebarView'][_0x260d('0x6')](_0x262c32[0x0]));}['_createRevisionActions'](){const _0x479217=this[_0x260d('0xf')],_0x22b693=y[_0x260d('0x16')],_0x4b42dd=_0x479217['config'][_0x260d('0x1f')](_0x260d('0x36'))||y[_0x260d('0x21')];if(_0x4b42dd[_0x260d('0x1a')])return _0x4b42dd[_0x260d('0x2')](_0x3e57f9=>{const _0xd15ed6=_0x260d('0xb')==typeof _0x3e57f9?Object[_0x260d('0x5')]({},_0x22b693[_0x3e57f9]):_0x3e57f9;return _0xd15ed6['action']=_0xd15ed6[_0x260d('0x2c')][_0x260d('0x23')](this,_0x479217),_0xd15ed6['isVisible']&&(_0xd15ed6[_0x260d('0x2e')]=_0xd15ed6[_0x260d('0x2e')]['bind'](this,_0x479217)),_0xd15ed6;});}}y[_0x260d('0x16')]={'compareAgainstSelected':{'name':_0x260d('0x20'),'action':({plugins:_0x47ddd3},_0x5726e7)=>{const _0x3c16db=_0x47ddd3['get'](_0x40374a),_0x2af0ef=_0x3c16db['repository'];let _0x134bc9=_0x3c16db[_0x260d('0x33')][_0x260d('0x34')],_0x109962=_0x5726e7['id'];_0x2af0ef['getIndex'](_0x134bc9)>_0x2af0ef['getIndex'](_0x109962)&&([_0x134bc9,_0x109962]=[_0x109962,_0x134bc9]),_0x3c16db[_0x260d('0x2d')](_0x134bc9,_0x109962);},'isVisible':({plugins:_0x38e539},_0x579156)=>{const _0x41c18f=_0x38e539['get'](_0x40374a);return!(_0x41c18f['repository'][_0x260d('0x2a')](_0x41c18f[_0x260d('0x33')])[_0x260d('0x1a')]>0x2)&&!_0x579156['isSelected'];}},'restoreRevision':{'name':_0x260d('0x17'),'action':(_0x4ab98d,{id:_0x67b5ac})=>{_0x4ab98d[_0x260d('0x18')][_0x260d('0x1f')]('revisionHistory')[_0x260d('0x1c')](_0x67b5ac);},'isVisible':({plugins:_0x4a32b7},_0x591cec)=>!!_0x4a32b7[_0x260d('0x1f')](_0x40374a)['repository']['getLaterVisibleRevision'](_0x591cec['id'])},'nameRevision':{'name':_0x260d('0x2b'),'action':({plugins:_0x4d21ea},{id:_0x307412,revisionNameView:_0x410c06})=>{const _0x1fea56=_0x4d21ea[_0x260d('0x1f')](_0x40374a),_0x2fec73=_0x1fea56['repository'][_0x260d('0xc')](_0x307412);_0x1fea56['compare'](_0x307412,_0x2fec73),_0x410c06[_0x260d('0x1b')](),_0x410c06[_0x260d('0x19')][_0x260d('0x30')]();}}},y[_0x260d('0x21')]=[_0x260d('0x1e'),_0x260d('0x26'),_0x260d('0x14')];
23
+ const _0x199b=['_sidebarView','config','Compare\x20against\x20selected','init','appendChild','isEnabled','_handleDiffChange','setName','isReady','getEarlierVisibleRevision','name','getRevision','diff','requires','nameRevision','RevisionsSidebar','repository','restoreRevision','change:diff','_handleRevisionSelected','restoreRevisionCallback','selectRevision','_createRevisionActions','action','plugins','bind','focus','highlightRevisions','availableRevisionActions','revisionHistory.revisionActions','get','ready','element','isSelected','isVisible','revisionHistory','_revisionsRepository','select','revisionSetName','_handleRevisionSetName','_revisionViewer','compare','remove','fieldView','locale','timePeriodViews','getIndex','Restore\x20this\x20revision','map','listenTo','add','revisionViews','newRevisionId','getRevisionsInDiff','editor','_handleEditorDataReady','render','Name\x20this\x20revision','compareAgainstSelected','defaultRevisionActions'];(function(_0x28de27,_0x199bf3){const _0x50e9d1=function(_0x3bd936){while(--_0x3bd936){_0x28de27['push'](_0x28de27['shift']());}};_0x50e9d1(++_0x199bf3);}(_0x199b,0x10f));const _0x50e9=function(_0x28de27,_0x199bf3){_0x28de27=_0x28de27-0x0;let _0x50e9d1=_0x199b[_0x28de27];return _0x50e9d1;};import{Plugin as _0x502586}from'ckeditor5/src/core';import _0x3dd665 from'./revisionssidebarview';import _0x2c53c8 from'../../revisionviewer';export default class w extends _0x502586{static get['pluginName'](){return _0x50e9('0x2c');}static get[_0x50e9('0x2a')](){return[_0x2c53c8];}constructor(_0x31c079){super(_0x31c079),this['_revisionViewer']=_0x31c079[_0x50e9('0x35')]['get'](_0x2c53c8),this[_0x50e9('0x5')]=this['_revisionViewer'][_0x50e9('0x2d')],this['_sidebarView']=null;}[_0x50e9('0x20')](){const _0x88bc60=this[_0x50e9('0x5')]['_revisions'],_0x328610=this['_createRevisionActions'](),_0x2cec41=this[_0x50e9('0x17')][_0x50e9('0x1e')][_0x50e9('0x3b')]('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new _0x3dd665(this[_0x50e9('0x17')][_0x50e9('0xd')],_0x88bc60,_0x328610),this[_0x50e9('0x1d')]['on']('revisionSelected',this[_0x50e9('0x30')]['bind'](this)),this[_0x50e9('0x1d')]['on'](_0x50e9('0x7'),this[_0x50e9('0x8')][_0x50e9('0x36')](this)),this[_0x50e9('0x1d')][_0x50e9('0x36')](_0x50e9('0x22'))['to'](this[_0x50e9('0x9')]),this['_sidebarView'][_0x50e9('0xe')]['on']('add',(_0x5730b6,_0xd4fb56)=>{_0xd4fb56[_0x50e9('0x14')]['on'](_0x50e9('0x13'),(_0x5848ed,_0x375ecc)=>{_0x375ecc['bind'](_0x50e9('0x22'),_0x50e9('0x25'))['to'](this[_0x50e9('0x9')]);});}),this['_sidebarView'][_0x50e9('0x19')](),this[_0x50e9('0x12')](this[_0x50e9('0x17')]['data'],_0x50e9('0x0'),this['_handleEditorDataReady'][_0x50e9('0x36')](this)),this['listenTo'](this[_0x50e9('0x9')],_0x50e9('0x2f'),this[_0x50e9('0x23')]['bind'](this)),_0x2cec41[_0x50e9('0x21')](this[_0x50e9('0x1d')][_0x50e9('0x1')]);}['destroy'](){this[_0x50e9('0x1d')]['element'][_0x50e9('0xb')](),this[_0x50e9('0x1d')]['destroy']();}[_0x50e9('0x18')](){const _0xc34bfb=this[_0x50e9('0x5')][_0x50e9('0x28')](0x0);if(_0xc34bfb){const _0x2e4f55=this[_0x50e9('0x5')][_0x50e9('0x26')](_0xc34bfb['id']);this['_revisionViewer']['compare'](_0xc34bfb,_0x2e4f55);}}['_handleRevisionSelected'](_0x403612,_0x56cb4b){const _0x317513=this[_0x50e9('0x5')][_0x50e9('0x28')](_0x56cb4b['id']),_0x2c3ea5=this[_0x50e9('0x5')][_0x50e9('0x26')](_0x317513['id']);this[_0x50e9('0x9')][_0x50e9('0xa')](_0x317513,_0x2c3ea5);}[_0x50e9('0x8')](_0xde1f90,_0x2fddef){this['_revisionsRepository'][_0x50e9('0x28')](_0x2fddef['id'])[_0x50e9('0x24')](_0x2fddef[_0x50e9('0x27')]);}[_0x50e9('0x23')](_0x24c2e4,_0x293408,_0x466d5d){const _0x259d98=this['_revisionsRepository'][_0x50e9('0x16')](_0x466d5d);_0x259d98['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x259d98),this['_sidebarView'][_0x50e9('0x32')](null)):(this['_sidebarView'][_0x50e9('0x38')]([]),this[_0x50e9('0x1d')][_0x50e9('0x32')](_0x259d98[0x0]));}[_0x50e9('0x33')](){const _0x2e4dd6=this['editor'],_0x48e8a0=w['availableRevisionActions'],_0x2bf80a=_0x2e4dd6[_0x50e9('0x1e')][_0x50e9('0x3b')](_0x50e9('0x3a'))||w[_0x50e9('0x1c')];if(_0x2bf80a['length'])return _0x2bf80a[_0x50e9('0x11')](_0x514656=>{const _0x162d9a='string'==typeof _0x514656?Object['assign']({},_0x48e8a0[_0x514656]):_0x514656;return _0x162d9a[_0x50e9('0x34')]=_0x162d9a[_0x50e9('0x34')][_0x50e9('0x36')](this,_0x2e4dd6),_0x162d9a[_0x50e9('0x3')]&&(_0x162d9a[_0x50e9('0x3')]=_0x162d9a['isVisible']['bind'](this,_0x2e4dd6)),_0x162d9a;});}}w[_0x50e9('0x39')]={'compareAgainstSelected':{'name':_0x50e9('0x1f'),'action':({plugins:_0x6ae438},_0x2c03bd)=>{const _0x4ecdcb=_0x6ae438['get'](_0x2c53c8),_0x855120=_0x4ecdcb[_0x50e9('0x2d')];let _0x4199a5=_0x4ecdcb[_0x50e9('0x29')][_0x50e9('0x15')],_0x1c1525=_0x2c03bd['id'];_0x855120[_0x50e9('0xf')](_0x4199a5)>_0x855120['getIndex'](_0x1c1525)&&([_0x4199a5,_0x1c1525]=[_0x1c1525,_0x4199a5]),_0x4ecdcb[_0x50e9('0xa')](_0x4199a5,_0x1c1525);},'isVisible':({plugins:_0x216d5a},_0x22e5b9)=>{const _0x2f38b4=_0x216d5a['get'](_0x2c53c8);return!(_0x2f38b4['repository'][_0x50e9('0x16')](_0x2f38b4[_0x50e9('0x29')])['length']>0x2)&&!_0x22e5b9[_0x50e9('0x2')];}},'restoreRevision':{'name':_0x50e9('0x10'),'action':(_0x3319db,{id:_0x584d9d})=>{_0x3319db[_0x50e9('0x1e')][_0x50e9('0x3b')](_0x50e9('0x4'))[_0x50e9('0x31')](_0x584d9d);},'isVisible':({plugins:_0x14b649},_0x4b3f32)=>!!_0x14b649[_0x50e9('0x3b')](_0x2c53c8)[_0x50e9('0x2d')]['getLaterVisibleRevision'](_0x4b3f32['id'])},'nameRevision':{'name':_0x50e9('0x1a'),'action':({plugins:_0x1f5747},{id:_0x1ec86d,revisionNameView:_0x59847d})=>{const _0x1453fa=_0x1f5747[_0x50e9('0x3b')](_0x2c53c8),_0x1f7429=_0x1453fa['repository'][_0x50e9('0x26')](_0x1ec86d);_0x1453fa[_0x50e9('0xa')](_0x1ec86d,_0x1f7429),_0x59847d[_0x50e9('0x37')](),_0x59847d[_0x50e9('0xc')][_0x50e9('0x6')]();}}},w[_0x50e9('0x1c')]=[_0x50e9('0x1b'),_0x50e9('0x2e'),_0x50e9('0x2b')];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{View as _0x1412ae,IconView as _0x91560b}from'ckeditor5/src/ui';import _0x21f55d from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x1412ae{constructor(_0x48001b){super(_0x48001b);const t=_0x48001b['t'],_0x5eb818=new _0x91560b(_0x48001b);_0x5eb818['content']=_0x21f55d,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x5eb818,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[t('Revision\x20history')]}]});}}
23
+ import{View as _0x54b6a9,IconView as _0x1dcbf6}from'ckeditor5/src/ui';import _0x2eea5b from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class cs extends _0x54b6a9{constructor(_0x4dc9c6){super(_0x4dc9c6);const t=_0x4dc9c6['t'],_0x1e8db8=new _0x1dcbf6(_0x4dc9c6);_0x1e8db8['content']=_0x2eea5b,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1e8db8,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[t('Revision\x20history')]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x34b3=['setName','revisionViews','ck-revision-history-sidebar__time-period__revisions','startDate','_revisionActions','remove','removeRevision','select','span','add','div','createCollection','delegate','ck-revision-history-sidebar__time-period__label','setTemplate','locale','find'];(function(_0x2ae9dd,_0x34b30e){const _0x3d3880=function(_0x291620){while(--_0x291620){_0x2ae9dd['push'](_0x2ae9dd['shift']());}};_0x3d3880(++_0x34b30e);}(_0x34b3,0x118));const _0x3d38=function(_0x2ae9dd,_0x34b30e){_0x2ae9dd=_0x2ae9dd-0x0;let _0x3d3880=_0x34b3[_0x2ae9dd];return _0x3d3880;};import{View as _0x16df2c}from'ckeditor5/src/ui';import _0xd58139 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x5b9bd9}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class vi extends _0x16df2c{constructor(_0x22eae9,_0x4851fe,_0x2fdb16){super(_0x22eae9);const _0x5954c0=_0x5b9bd9(_0x4851fe,this['locale']['uiLanguage'])['localizedPeriodName'];this[_0x3d38('0xc')]=_0x4851fe,this[_0x3d38('0xd')]=_0x2fdb16,this[_0x3d38('0xa')]=this[_0x3d38('0x3')](),this[_0x3d38('0xa')]['delegate'](_0x3d38('0x10'))['to'](this),this[_0x3d38('0xa')][_0x3d38('0x4')](_0x3d38('0x9'))['to'](this),this[_0x3d38('0x6')]({'tag':_0x3d38('0x2'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':_0x3d38('0x0'),'attributes':{'class':['ck',_0x3d38('0x5')]},'children':[{'text':_0x5954c0}]},{'tag':_0x3d38('0x2'),'attributes':{'class':['ck',_0x3d38('0xb')]},'children':this['revisionViews']}]});}['addRevision'](_0x52592d){const _0x12f347=new _0xd58139(this[_0x3d38('0x7')],_0x52592d,this[_0x3d38('0xd')]);this['revisionViews'][_0x3d38('0x1')](_0x12f347);}[_0x3d38('0xf')](_0x204e33){const _0x3a1387=this[_0x3d38('0xa')][_0x3d38('0x8')](_0x184199=>_0x184199['id']===_0x204e33['id']);this['revisionViews'][_0x3d38('0xe')](_0x3a1387);}}
23
+ const _0x26c7=['uiLanguage','div','ck-revision-history-sidebar__time-period','localizedPeriodName','find','locale','ck-revision-history-sidebar__time-period__label','addRevision','delegate','add','_revisionActions','setName','revisionViews','span'];(function(_0x5701b9,_0x26c740){const _0xae660b=function(_0x2e5d6b){while(--_0x2e5d6b){_0x5701b9['push'](_0x5701b9['shift']());}};_0xae660b(++_0x26c740);}(_0x26c7,0x1d1));const _0xae66=function(_0x5701b9,_0x26c740){_0x5701b9=_0x5701b9-0x0;let _0xae660b=_0x26c7[_0x5701b9];return _0xae660b;};import{View as _0x80e87f}from'ckeditor5/src/ui';import _0x3c7992 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x1816e7}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class mi extends _0x80e87f{constructor(_0x23a009,_0x21eb50,_0x3963d7){super(_0x23a009);const _0x20118c=_0x1816e7(_0x21eb50,this[_0xae66('0x2')][_0xae66('0xb')])[_0xae66('0x0')];this['startDate']=_0x21eb50,this[_0xae66('0x7')]=_0x3963d7,this[_0xae66('0x9')]=this['createCollection'](),this[_0xae66('0x9')][_0xae66('0x5')]('select')['to'](this),this[_0xae66('0x9')]['delegate'](_0xae66('0x8'))['to'](this),this['setTemplate']({'tag':_0xae66('0xc'),'attributes':{'class':['ck',_0xae66('0xd')]},'children':[{'tag':_0xae66('0xa'),'attributes':{'class':['ck',_0xae66('0x3')]},'children':[{'text':_0x20118c}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this[_0xae66('0x9')]}]});}[_0xae66('0x4')](_0x3bc82d){const _0x329e9b=new _0x3c7992(this[_0xae66('0x2')],_0x3bc82d,this[_0xae66('0x7')]);this['revisionViews'][_0xae66('0x6')](_0x329e9b);}['removeRevision'](_0x31fb16){const _0x3efff2=this['revisionViews'][_0xae66('0x1')](_0x15b88f=>_0x15b88f['id']===_0x31fb16['id']);this[_0xae66('0x9')]['remove'](_0x3efff2);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4181=['unhighlight','ck-revision-history-sidebar','revisionSelected','timePeriodViews','highlight','ck-reset','flat','_revisionActions','_getTimePeriodViewByStartDate','_addRevision','getTime','_removeRevision','div','bindTemplate','delegate','createCollection','render','selectRevision','add','_revisions','setName','highlightRevisions','find','fire','select','setTemplate','ck-rounded-corners','startDate','get','addRevision','revisionSetName','map','set','locale','revisionViews','remove'];(function(_0x57922d,_0x41812a){const _0x4e45ca=function(_0x48d105){while(--_0x48d105){_0x57922d['push'](_0x57922d['shift']());}};_0x4e45ca(++_0x41812a);}(_0x4181,0x1d4));const _0x4e45=function(_0x57922d,_0x41812a){_0x57922d=_0x57922d-0x0;let _0x4e45ca=_0x4181[_0x57922d];return _0x4e45ca;};import{View as _0x11a652}from'ckeditor5/src/ui';import _0x5f28e8 from'./revisionssidebartimeperiodview';import _0x31c611 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x127f87}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class di extends _0x11a652{constructor(_0x53c05f,_0x27333f,_0x5825ca){super(_0x53c05f);const _0x58737e=this[_0x4e45('0xd')];this['timePeriodViews']=this[_0x4e45('0xf')](),this['timePeriodViews'][_0x4e45('0xe')](_0x4e45('0x18'))['to'](this),this[_0x4e45('0x3')][_0x4e45('0xe')](_0x4e45('0x14'))['to'](this),this['_revisions']=_0x27333f,this[_0x4e45('0x7')]=_0x5825ca,this['on'](_0x4e45('0x18'),(_0x2cbb6b,_0x23a7a9)=>{this[_0x4e45('0x17')](_0x4e45('0x2'),_0x23a7a9);}),this['on'](_0x4e45('0x14'),(_0x4148af,_0x23d115)=>{this['fire'](_0x4e45('0x1e'),_0x23d115);}),this[_0x4e45('0x20')]('isEnabled',!0x1),this[_0x4e45('0x19')]({'tag':_0x4e45('0xc'),'attributes':{'class':['ck',_0x4e45('0x5'),_0x4e45('0x1a'),_0x4e45('0x1')]},'children':[new _0x31c611(_0x53c05f),{'tag':_0x4e45('0xc'),'attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x58737e['if']('isEnabled','ck-disabled',_0x37ee41=>!_0x37ee41)]},'children':this[_0x4e45('0x3')]}]});}[_0x4e45('0x10')](){super[_0x4e45('0x10')]();for(const _0x4e2e29 of this[_0x4e45('0x13')])this[_0x4e45('0x9')](_0x4e2e29);this[_0x4e45('0x13')]['on']('add',(_0x3fbf21,_0x17aebb)=>{this[_0x4e45('0x9')](_0x17aebb);}),this[_0x4e45('0x13')]['on'](_0x4e45('0x23'),(_0x3cdaca,_0x4fa26a)=>{this[_0x4e45('0xb')](_0x4fa26a);});}get[_0x4e45('0x22')](){return this[_0x4e45('0x3')][_0x4e45('0x1f')](_0x1f1273=>_0x1f1273[_0x4e45('0x22')]['map'](_0x1d4b01=>_0x1d4b01))[_0x4e45('0x6')]();}[_0x4e45('0x11')](_0xc46526){for(const _0x50921c of this['revisionViews'])_0xc46526&&_0xc46526['id']===_0x50921c['id']?_0x50921c[_0x4e45('0x18')]():_0x50921c['deselect']();}[_0x4e45('0x15')](_0x574a5c){for(const _0x1e733f of this[_0x4e45('0x22')])_0x574a5c['some'](({id:_0x4a6cd8})=>_0x4a6cd8===_0x1e733f['id'])?_0x1e733f[_0x4e45('0x4')]():_0x1e733f[_0x4e45('0x0')]();}[_0x4e45('0x9')](_0x2b15cf){const _0x477d3b=_0x127f87(_0x2b15cf['createdAt'])['startDate'];let _0x4b2753=this['timePeriodViews'][_0x4e45('0x1c')](0x0);_0x4b2753&&_0x4b2753[_0x4e45('0x1b')][_0x4e45('0xa')]()===_0x477d3b[_0x4e45('0xa')]()||(_0x4b2753=new _0x5f28e8(this[_0x4e45('0x21')],_0x477d3b,this['_revisionActions']),this[_0x4e45('0x3')][_0x4e45('0x12')](_0x4b2753)),_0x4b2753[_0x4e45('0x1d')](_0x2b15cf);}[_0x4e45('0xb')](_0x4ade1f){const _0x21e586=_0x127f87(_0x4ade1f['createdAt'])[_0x4e45('0x1b')];this[_0x4e45('0x8')](_0x21e586)['removeRevision'](_0x4ade1f);}[_0x4e45('0x8')](_0x4eb1c0){return this[_0x4e45('0x3')][_0x4e45('0x16')](_0x1841eb=>_0x1841eb[_0x4e45('0x1b')][_0x4e45('0xa')]()===_0x4eb1c0['getTime']());}}
23
+ const _0x5e97=['setName','removeRevision','isEnabled','createdAt','ck-disabled','get','div','getTime','bindTemplate','startDate','locale','addRevision','createCollection','revisionSelected','map','selectRevision','fire','_getTimePeriodViewByStartDate','setTemplate','some','timePeriodViews','_addRevision','ck-reset','ck-revision-history-sidebar__timeline','_removeRevision','_revisions','deselect','select','_revisionActions','add','highlight','ck-revision-history-sidebar','unhighlight','revisionViews'];(function(_0x2eb00d,_0x5e97f9){const _0x3c1998=function(_0xcf6a0b){while(--_0xcf6a0b){_0x2eb00d['push'](_0x2eb00d['shift']());}};_0x3c1998(++_0x5e97f9);}(_0x5e97,0x128));const _0x3c19=function(_0x2eb00d,_0x5e97f9){_0x2eb00d=_0x2eb00d-0x0;let _0x3c1998=_0x5e97[_0x2eb00d];return _0x3c1998;};import{View as _0x5e5f0e}from'ckeditor5/src/ui';import _0x5d1e3e from'./revisionssidebartimeperiodview';import _0x28fe90 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x592b80}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class ai extends _0x5e5f0e{constructor(_0x10a637,_0x572ece,_0x3fd707){super(_0x10a637);const _0x1d3896=this[_0x3c19('0x12')];this[_0x3c19('0x1e')]=this[_0x3c19('0x16')](),this[_0x3c19('0x1e')]['delegate'](_0x3c19('0x3'))['to'](this),this[_0x3c19('0x1e')]['delegate'](_0x3c19('0xa'))['to'](this),this[_0x3c19('0x1')]=_0x572ece,this[_0x3c19('0x4')]=_0x3fd707,this['on']('select',(_0x478d98,_0x281ba8)=>{this[_0x3c19('0x1a')](_0x3c19('0x17'),_0x281ba8);}),this['on'](_0x3c19('0xa'),(_0x47f874,_0x2f6c0f)=>{this[_0x3c19('0x1a')]('revisionSetName',_0x2f6c0f);}),this['set'](_0x3c19('0xc'),!0x1),this[_0x3c19('0x1c')]({'tag':_0x3c19('0x10'),'attributes':{'class':['ck',_0x3c19('0x20'),'ck-rounded-corners',_0x3c19('0x7')]},'children':[new _0x28fe90(_0x10a637),{'tag':_0x3c19('0x10'),'attributes':{'class':['ck',_0x3c19('0x21'),_0x1d3896['if'](_0x3c19('0xc'),_0x3c19('0xe'),_0x3c7497=>!_0x3c7497)]},'children':this[_0x3c19('0x1e')]}]});}['render'](){super['render']();for(const _0x341d2e of this[_0x3c19('0x1')])this[_0x3c19('0x1f')](_0x341d2e);this[_0x3c19('0x1')]['on'](_0x3c19('0x5'),(_0x2f0d10,_0x2437cf)=>{this[_0x3c19('0x1f')](_0x2437cf);}),this['_revisions']['on']('remove',(_0x36cbf8,_0x3c1241)=>{this[_0x3c19('0x0')](_0x3c1241);});}get['revisionViews'](){return this[_0x3c19('0x1e')][_0x3c19('0x18')](_0x525225=>_0x525225['revisionViews'][_0x3c19('0x18')](_0x4e0242=>_0x4e0242))['flat']();}[_0x3c19('0x19')](_0x5a800e){for(const _0x5814ac of this['revisionViews'])_0x5a800e&&_0x5a800e['id']===_0x5814ac['id']?_0x5814ac[_0x3c19('0x3')]():_0x5814ac[_0x3c19('0x2')]();}['highlightRevisions'](_0x66747){for(const _0x150297 of this[_0x3c19('0x9')])_0x66747[_0x3c19('0x1d')](({id:_0xae807e})=>_0xae807e===_0x150297['id'])?_0x150297[_0x3c19('0x6')]():_0x150297[_0x3c19('0x8')]();}['_addRevision'](_0x1cf457){const _0x574cd2=_0x592b80(_0x1cf457[_0x3c19('0xd')])['startDate'];let _0x9853b3=this[_0x3c19('0x1e')][_0x3c19('0xf')](0x0);_0x9853b3&&_0x9853b3['startDate'][_0x3c19('0x11')]()===_0x574cd2[_0x3c19('0x11')]()||(_0x9853b3=new _0x5d1e3e(this[_0x3c19('0x14')],_0x574cd2,this[_0x3c19('0x4')]),this[_0x3c19('0x1e')]['add'](_0x9853b3)),_0x9853b3[_0x3c19('0x15')](_0x1cf457);}['_removeRevision'](_0x46a1e3){const _0x470f67=_0x592b80(_0x46a1e3[_0x3c19('0xd')])[_0x3c19('0x13')];this[_0x3c19('0x1b')](_0x470f67)[_0x3c19('0xb')](_0x46a1e3);}[_0x3c19('0x1b')](_0x5abf27){return this['timePeriodViews']['find'](_0x38c9dd=>_0x38c9dd['startDate']['getTime']()===_0x5abf27['getTime']());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4733=['week','month','fromJSDate','hasSame','setLocale','startOf','weekdayLong','toJSDate','year','day','local','minus','toRelativeCalendar'];(function(_0x2a7b5c,_0x473322){const _0x19c26d=function(_0x209ab7){while(--_0x209ab7){_0x2a7b5c['push'](_0x2a7b5c['shift']());}};_0x19c26d(++_0x473322);}(_0x4733,0x116));const _0x19c2=function(_0x2a7b5c,_0x473322){_0x2a7b5c=_0x2a7b5c-0x0;let _0x19c26d=_0x4733[_0x2a7b5c];return _0x19c26d;};import{DateTime as _0x26cad4}from'luxon';export function getDateTimePeriodInfo(_0x1837c4,_0x363a8b){_0x1837c4=_0x26cad4[_0x19c2('0xa')](_0x1837c4)[_0x19c2('0xc')](_0x363a8b);const _0x2c5a4d=_0x26cad4[_0x19c2('0x5')](),_0x50eda2=_0x2c5a4d[_0x19c2('0x6')]({'days':0x1})['startOf']('day');let _0x5e60ad,_0x5841e6;return _0x1837c4[_0x19c2('0xb')](_0x2c5a4d,_0x19c2('0x4'))?(_0x5e60ad=_0x1837c4['startOf'](_0x19c2('0x4'))[_0x19c2('0x2')](),_0x5841e6=_0x1837c4['toRelativeCalendar']()):_0x1837c4[_0x19c2('0xb')](_0x50eda2,_0x19c2('0x4'))?(_0x5e60ad=_0x50eda2['toJSDate'](),_0x5841e6=_0x1837c4[_0x19c2('0x7')]()):_0x1837c4[_0x19c2('0xb')](_0x2c5a4d,_0x19c2('0x8'))?(_0x5e60ad=_0x1837c4[_0x19c2('0x0')](_0x19c2('0x8'))[_0x19c2('0x2')](),_0x5841e6=_0x1837c4[_0x19c2('0x1')]):_0x1837c4[_0x19c2('0xb')](_0x2c5a4d,'year')?(_0x5e60ad=_0x1837c4[_0x19c2('0x0')](_0x19c2('0x9'))['toJSDate'](),_0x5841e6=_0x1837c4['monthLong']):(_0x5e60ad=_0x1837c4[_0x19c2('0x0')](_0x19c2('0x3'))[_0x19c2('0x2')](),_0x5841e6=_0x1837c4[_0x19c2('0x3')]),{'startDate':_0x5e60ad,'localizedPeriodName':_0x5841e6};}
23
+ const _0x5c94=['toRelativeCalendar','local','hasSame','year','startOf','month','day','fromJSDate','week','toJSDate','minus'];(function(_0x26662e,_0x5c942b){const _0x516820=function(_0x24d39e){while(--_0x24d39e){_0x26662e['push'](_0x26662e['shift']());}};_0x516820(++_0x5c942b);}(_0x5c94,0x105));const _0x5168=function(_0x26662e,_0x5c942b){_0x26662e=_0x26662e-0x0;let _0x516820=_0x5c94[_0x26662e];return _0x516820;};import{DateTime as _0x5640b9}from'luxon';export function getDateTimePeriodInfo(_0x13930f,_0x310019){_0x13930f=_0x5640b9[_0x5168('0xa')](_0x13930f)['setLocale'](_0x310019);const _0x5af82d=_0x5640b9[_0x5168('0x4')](),_0x8f9985=_0x5af82d[_0x5168('0x2')]({'days':0x1})[_0x5168('0x7')](_0x5168('0x9'));let _0x3e2704,_0x424cb0;return _0x13930f['hasSame'](_0x5af82d,_0x5168('0x9'))?(_0x3e2704=_0x13930f[_0x5168('0x7')]('day')['toJSDate'](),_0x424cb0=_0x13930f[_0x5168('0x3')]()):_0x13930f['hasSame'](_0x8f9985,_0x5168('0x9'))?(_0x3e2704=_0x8f9985[_0x5168('0x1')](),_0x424cb0=_0x13930f[_0x5168('0x3')]()):_0x13930f['hasSame'](_0x5af82d,_0x5168('0x0'))?(_0x3e2704=_0x13930f['startOf'](_0x5168('0x0'))['toJSDate'](),_0x424cb0=_0x13930f['weekdayLong']):_0x13930f[_0x5168('0x5')](_0x5af82d,_0x5168('0x6'))?(_0x3e2704=_0x13930f[_0x5168('0x7')](_0x5168('0x8'))[_0x5168('0x1')](),_0x424cb0=_0x13930f['monthLong']):(_0x3e2704=_0x13930f[_0x5168('0x7')](_0x5168('0x6'))['toJSDate'](),_0x424cb0=_0x13930f[_0x5168('0x6')]),{'startDate':_0x3e2704,'localizedPeriodName':_0x424cb0};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{View as _0x41b149}from'ckeditor5/src/ui';export default class H extends _0x41b149{constructor(_0x2f656c,_0x3c7c98){super(_0x2f656c);const t=_0x2f656c['t'];this['_model']=_0x3c7c98;const _0x150c50=this['bindTemplate'],_0xcb33c6=_0x3c7c98['data']['isSuggestion']?t('Suggested\x20by'):'add'==_0x3c7c98['type']?t('Added\x20by'):t('Removed\x20by');this['set']('type',_0x3c7c98['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x150c50['to']('type',_0x17332a=>'ck-revision-change__'+_0x17332a)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0xcb33c6}]},{'text':'\x20'+_0x3c7c98['author']['name']}]}]});}['focus'](){this['element']['focus']();}}
23
+ import{View as _0x2f5856}from'ckeditor5/src/ui';export default class H extends _0x2f5856{constructor(_0x1c87d3,_0x7877f8){super(_0x1c87d3);const t=_0x1c87d3['t'];this['_model']=_0x7877f8;const _0x4078fd=this['bindTemplate'],_0x2ccb78=_0x7877f8['data']['isSuggestion']?t('Suggested\x20by'):'add'==_0x7877f8['type']?t('Added\x20by'):t('Removed\x20by');this['set']('type',_0x7877f8['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x4078fd['to']('type',_0x15215c=>'ck-revision-change__'+_0x15215c)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x2ccb78}]},{'text':'\x20'+_0x7877f8['author']['name']}]}]});}['focus'](){this['element']['focus']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{View as _0xe9a54f,ButtonView as _0xe82b53,ToolbarSeparatorView as _0x438fec}from'ckeditor5/src/ui';import _0x4a3465 from'../../../theme/icons/arrow-up.svg';import _0x4826df from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class gi extends _0xe9a54f{constructor(_0x47d265){super(_0x47d265);const t=_0x47d265['t'],_0x49e86e=this['bindTemplate'],_0x3ebe60=new _0xe82b53(_0x47d265),_0x4b48c3=new _0xe82b53(_0x47d265);this['set']('isNavigationMode',!0x1),this['set']('isReady',!0x1),this['set']('currentChangeNumber',0x0),this['set']('numberOfChanges',0x0),this['set']('isForwardNavigationEnabled',!0x1),this['set']('isBackwardNavigationEnabled',!0x1),this['bind']('_isStatusLabelVisible')['to'](this,'isReady',this,'numberOfChanges',(_0x20fb1a,_0x3dbe95)=>_0x20fb1a&&_0x3dbe95>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0xa98d03,_0x58f388,_0x1f8abb,_0x4b17e7)=>{if(!_0xa98d03)return t('Loading...');if(!_0x1f8abb)return t('No\x20changes');const _0x1e8e2b=t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0x1f8abb);return _0x4b17e7?t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},[_0x58f388+0x1,_0x1f8abb]):_0x1e8e2b;}),_0x3ebe60['set']({'label':t('Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x4a3465}),_0x4b48c3['set']({'label':t('Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x4826df}),_0x3ebe60['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x4b48c3['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3ebe60['on']('execute',()=>this['fire']('execute','backward')),_0x4b48c3['on']('execute',()=>this['fire']('execute','forward')),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-ui','ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x49e86e['if']('_isStatusLabelVisible','ck-hidden',_0x50f426=>!_0x50f426)]},'children':[{'text':_0x49e86e['to']('isNavigationMode',_0x44c5e0=>_0x44c5e0?t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'})+':\x20':t('Total')+':\x20')}]},{'text':_0x49e86e['to']('_statusText')}]},new _0x438fec(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3ebe60,_0x4b48c3]}]});}}
23
+ import{View as _0x22e984,ButtonView as st,ToolbarSeparatorView as _0x15dc71}from'ckeditor5/src/ui';import _0x2a8be9 from'../../../theme/icons/arrow-up.svg';import _0x568776 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class _i extends _0x22e984{constructor(_0x25a159){super(_0x25a159);const t=_0x25a159['t'],_0x4caad8=this['bindTemplate'],_0xd05600=new st(_0x25a159),_0x4dfc08=new st(_0x25a159);this['set']('isNavigationMode',!0x1),this['set']('isReady',!0x1),this['set']('currentChangeNumber',0x0),this['set']('numberOfChanges',0x0),this['set']('isForwardNavigationEnabled',!0x1),this['set']('isBackwardNavigationEnabled',!0x1),this['bind']('_isStatusLabelVisible')['to'](this,'isReady',this,'numberOfChanges',(_0x1c8a66,_0x2349d0)=>_0x1c8a66&&_0x2349d0>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x2b3600,_0x12c8ec,_0x332a81,_0x420466)=>{if(!_0x2b3600)return t('Loading...');if(!_0x332a81)return t('No\x20changes');const _0x2bdad8=t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0x332a81);return _0x420466?t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},[_0x12c8ec+0x1,_0x332a81]):_0x2bdad8;}),_0xd05600['set']({'label':t('Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x2a8be9}),_0x4dfc08['set']({'label':t('Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x568776}),_0xd05600['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x4dfc08['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0xd05600['on']('execute',()=>this['fire']('execute','backward')),_0x4dfc08['on']('execute',()=>this['fire']('execute','forward')),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-ui','ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x4caad8['if']('_isStatusLabelVisible','ck-hidden',_0x29629b=>!_0x29629b)]},'children':[{'text':_0x4caad8['to']('isNavigationMode',_0x2bb03a=>_0x2bb03a?t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'})+':\x20':t('Total')+':\x20')}]},{'text':_0x4caad8['to']('_statusText')}]},new _0x15dc71(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0xd05600,_0x4dfc08]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1f21=['document','editor','hide','RevisionViewerLoadingOverlay','roots','pluginName','addClass','change','removeClass','editing','view','show','ck-editor__editable__loading-overlay'];(function(_0x1d8efe,_0x1f217c){const _0x2672ea=function(_0x190438){while(--_0x190438){_0x1d8efe['push'](_0x1d8efe['shift']());}};_0x2672ea(++_0x1f217c);}(_0x1f21,0xe0));const _0x2672=function(_0x1d8efe,_0x1f217c){_0x1d8efe=_0x1d8efe-0x0;let _0x2672ea=_0x1f21[_0x1d8efe];return _0x2672ea;};import{Plugin as _0x7cc8af}from'ckeditor5/src/core';import'../../../theme/revisionviewerloadingoverlay.css';export default class ee extends _0x7cc8af{static get[_0x2672('0x2')](){return _0x2672('0x0');}[_0x2672('0x8')](){const _0x565cf1=this[_0x2672('0xb')][_0x2672('0x6')][_0x2672('0x7')];_0x565cf1[_0x2672('0x4')](_0x3ce487=>{for(const _0x219d79 of _0x565cf1[_0x2672('0xa')][_0x2672('0x1')])_0x3ce487[_0x2672('0x3')](_0x2672('0x9'),_0x219d79);});}[_0x2672('0xc')](){const _0xc15eab=this['editor']['editing'][_0x2672('0x7')];_0xc15eab[_0x2672('0x4')](_0x355182=>{for(const _0x2bb4fb of _0xc15eab[_0x2672('0xa')][_0x2672('0x1')])_0x355182[_0x2672('0x5')](_0x2672('0x9'),_0x2bb4fb);});}}
23
+ const _0x1175=['editor','view','pluginName','roots','removeClass','show','document','ck-editor__editable__loading-overlay','hide','editing','change'];(function(_0x1ae19f,_0x1175e5){const _0x26773e=function(_0x4d388c){while(--_0x4d388c){_0x1ae19f['push'](_0x1ae19f['shift']());}};_0x26773e(++_0x1175e5);}(_0x1175,0xd5));const _0x2677=function(_0x1ae19f,_0x1175e5){_0x1ae19f=_0x1ae19f-0x0;let _0x26773e=_0x1175[_0x1ae19f];return _0x26773e;};import{Plugin as _0x565b47}from'ckeditor5/src/core';import'../../../theme/revisionviewerloadingoverlay.css';export default class oe extends _0x565b47{static get[_0x2677('0x9')](){return'RevisionViewerLoadingOverlay';}[_0x2677('0x1')](){const _0x4b55ff=this[_0x2677('0x7')][_0x2677('0x5')][_0x2677('0x8')];_0x4b55ff['change'](_0x1d95d5=>{for(const _0x4b2dbc of _0x4b55ff['document'][_0x2677('0xa')])_0x1d95d5['addClass']('ck-editor__editable__loading-overlay',_0x4b2dbc);});}[_0x2677('0x4')](){const _0x579272=this[_0x2677('0x7')]['editing'][_0x2677('0x8')];_0x579272[_0x2677('0x6')](_0x55bd43=>{for(const _0x58647 of _0x579272[_0x2677('0x2')][_0x2677('0xa')])_0x55bd43[_0x2677('0x0')](_0x2677('0x3'),_0x58647);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x8b02ba}from'ckeditor5/src/core';import{ButtonView as _0x36bcd5}from'ckeditor5/src/ui';import _0x5804b3 from'./changesnavigationview';import _0x3c7a4f from'./../../revisionviewer';import _0x3a6f12 from'./revisionviewerloadingoverlay';import _0x384ee3 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class d extends _0x8b02ba{static get['pluginName'](){return'RevisionViewerUI';}static get['requires'](){return[_0x3c7a4f,_0x3a6f12];}['init'](){const _0x244f60=this['editor'],_0x3df7a4=_0x244f60['plugins']['get'](_0x3c7a4f),_0x3fd86e=_0x244f60['plugins']['get'](_0x3a6f12),t=_0x244f60['t'];_0x244f60['ui']['componentFactory']['add']('exitToEditing',_0xf6356=>{const _0x21355b=new _0x36bcd5(_0xf6356);return _0x21355b['set']({'label':t('Back\x20to\x20editing'),'icon':_0x384ee3,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x21355b,'execute',()=>{_0x244f60['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x21355b;}),_0x244f60['ui']['componentFactory']['add']('restoreRevision',_0x2ff740=>{const _0x5d44a8=new _0x36bcd5(_0x2ff740);return _0x5d44a8['set']({'label':t('Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5d44a8['bind']('isEnabled')['to'](_0x244f60['commands']['get']('restoreRevision')),this['listenTo'](_0x5d44a8,'execute',()=>_0x244f60['execute']('restoreRevision')),_0x5d44a8;}),_0x244f60['ui']['componentFactory']['add']('changesNavigation',_0x3032f3=>{const _0x504d5e=new _0x5804b3(_0x3032f3),_0x2f5726=_0x244f60['commands']['get']('showPreviousChange'),_0x143430=_0x244f60['commands']['get']('showNextChange');return _0x504d5e['bind']('isBackwardNavigationEnabled')['to'](_0x2f5726,'isEnabled'),_0x504d5e['bind']('isForwardNavigationEnabled')['to'](_0x143430,'isEnabled'),_0x504d5e['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3df7a4),this['listenTo'](_0x504d5e,'execute',(_0x175d19,_0x4d0642)=>{_0x244f60['execute']('forward'===_0x4d0642?'showNextChange':'showPreviousChange');}),_0x504d5e;}),_0x3fd86e['show'](),_0x3df7a4['on']('change:isReady',(_0x575958,_0xfa4742,_0x14dccb)=>{_0x14dccb?_0x3fd86e['hide']():_0x3fd86e['show']();});}}
23
+ import{Plugin as _0x3eae4f}from'ckeditor5/src/core';import{ButtonView as st}from'ckeditor5/src/ui';import _0x3590d2 from'./changesnavigationview';import _0x5f3569 from'./../../revisionviewer';import _0x43212c from'./revisionviewerloadingoverlay';import te from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class d extends _0x3eae4f{static get['pluginName'](){return'RevisionViewerUI';}static get['requires'](){return[_0x5f3569,_0x43212c];}['init'](){const _0x1852bb=this['editor'],_0x5bc84f=_0x1852bb['plugins']['get'](_0x5f3569),_0x229182=_0x1852bb['plugins']['get'](_0x43212c),t=_0x1852bb['t'];_0x1852bb['ui']['componentFactory']['add']('exitToEditing',_0x4aae97=>{const _0x13aa36=new st(_0x4aae97);return _0x13aa36['set']({'label':t('Back\x20to\x20editing'),'icon':te,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x13aa36,'execute',()=>{_0x1852bb['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x13aa36;}),_0x1852bb['ui']['componentFactory']['add']('restoreRevision',_0x56c50c=>{const _0x29339f=new st(_0x56c50c);return _0x29339f['set']({'label':t('Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x29339f['bind']('isEnabled')['to'](_0x1852bb['commands']['get']('restoreRevision')),this['listenTo'](_0x29339f,'execute',()=>_0x1852bb['execute']('restoreRevision')),_0x29339f;}),_0x1852bb['ui']['componentFactory']['add']('changesNavigation',_0x312d50=>{const _0x2cc884=new _0x3590d2(_0x312d50),_0x15e41f=_0x1852bb['commands']['get']('showPreviousChange'),_0x3bb691=_0x1852bb['commands']['get']('showNextChange');return _0x2cc884['bind']('isBackwardNavigationEnabled')['to'](_0x15e41f,'isEnabled'),_0x2cc884['bind']('isForwardNavigationEnabled')['to'](_0x3bb691,'isEnabled'),_0x2cc884['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5bc84f),this['listenTo'](_0x2cc884,'execute',(_0x4d1f9c,_0x3f053a)=>{_0x1852bb['execute']('forward'===_0x3f053a?'showNextChange':'showPreviousChange');}),_0x2cc884;}),_0x229182['show'](),_0x5bc84f['on']('change:isReady',(_0x540dde,_0x4c5533,_0x509e5c)=>{_0x509e5c?_0x229182['hide']():_0x229182['show']();});}}