@ckeditor/ckeditor5-revision-history 29.2.0 → 32.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 (71) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +2 -2
  3. package/lang/contexts.json +23 -22
  4. package/lang/translations/az.po +27 -23
  5. package/lang/translations/bs.po +124 -0
  6. package/lang/translations/cs.po +27 -23
  7. package/lang/translations/da.po +28 -24
  8. package/lang/translations/de-ch.po +27 -23
  9. package/lang/translations/de.po +50 -46
  10. package/lang/translations/en-au.po +27 -23
  11. package/lang/translations/en-gb.po +27 -23
  12. package/lang/translations/en.po +27 -23
  13. package/lang/translations/es.po +29 -25
  14. package/lang/translations/et.po +27 -23
  15. package/lang/translations/fa.po +27 -23
  16. package/lang/translations/fr.po +31 -27
  17. package/lang/translations/gl.po +50 -46
  18. package/lang/translations/he.po +27 -23
  19. package/lang/translations/hi.po +27 -23
  20. package/lang/translations/hr.po +49 -45
  21. package/lang/translations/hu.po +33 -29
  22. package/lang/translations/id.po +29 -25
  23. package/lang/translations/it.po +50 -46
  24. package/lang/translations/ja.po +27 -23
  25. package/lang/translations/ko.po +27 -23
  26. package/lang/translations/ku.po +27 -23
  27. package/lang/translations/lv.po +27 -23
  28. package/lang/translations/ne.po +27 -23
  29. package/lang/translations/nl.po +28 -24
  30. package/lang/translations/no.po +27 -23
  31. package/lang/translations/pl.po +29 -25
  32. package/lang/translations/pt-br.po +28 -24
  33. package/lang/translations/ro.po +49 -45
  34. package/lang/translations/ru.po +27 -23
  35. package/lang/translations/sk.po +27 -23
  36. package/lang/translations/sr-latn.po +28 -24
  37. package/lang/translations/sr.po +28 -24
  38. package/lang/translations/tk.po +27 -23
  39. package/lang/translations/tr.po +45 -41
  40. package/lang/translations/ug.po +27 -23
  41. package/lang/translations/uk.po +27 -23
  42. package/lang/translations/vi.po +27 -23
  43. package/lang/translations/zh-cn.po +27 -23
  44. package/lang/translations/zh.po +28 -24
  45. package/package.json +11 -11
  46. package/src/changeitem.js +2 -2
  47. package/src/revision.js +2 -2
  48. package/src/revisiondiff.js +2 -2
  49. package/src/revisionhistory.js +2 -2
  50. package/src/revisionsrepository.js +2 -2
  51. package/src/revisiontracker.js +2 -2
  52. package/src/revisionviewer.js +2 -2
  53. package/src/ui/revision/createrevisionactionsdropdown.js +2 -2
  54. package/src/ui/revision/revisionauthorview.js +2 -2
  55. package/src/ui/revision/revisionnameview.js +2 -2
  56. package/src/ui/revision/revisionview.js +2 -2
  57. package/src/ui/revision/subrevisioncollapserview.js +2 -2
  58. package/src/ui/revision/subrevisionview.js +2 -2
  59. package/src/ui/revision/utils.js +2 -2
  60. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
  61. package/src/ui/revisionhistory/revisionhistoryui.js +2 -2
  62. package/src/ui/revisionssidebar/revisionssidebar.js +2 -2
  63. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +2 -2
  64. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +2 -2
  65. package/src/ui/revisionssidebar/revisionssidebarview.js +2 -2
  66. package/src/ui/revisionssidebar/utils.js +2 -2
  67. package/src/ui/revisionviewer/changedetailsview.js +2 -2
  68. package/src/ui/revisionviewer/changesnavigationview.js +2 -2
  69. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +2 -2
  70. package/src/ui/revisionviewer/revisionviewerui.js +2 -2
  71. package/theme/revisionhistorysaverevisionform.css +1 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1c1f=['editor','RevisionsSidebar','_handleRevisionSelected','Compare\x20against\x20selected','nameRevision','config','pluginName','locale','revisionHistory.viewerSidebarContainer','Name\x20this\x20revision','listenTo','_revisionsRepository','focus','diff','isEnabled','select','availableRevisionActions','length','remove','selectRevision','_handleDiffChange','defaultRevisionActions','revisionHistory.revisionActions','repository','bind','compareAgainstSelected','fieldView','action','highlightRevisions','restoreRevision','_sidebarView','appendChild','revisionHistory','_createRevisionActions','add','getEarlierVisibleRevision','change:diff','_handleEditorDataReady','get','init','element','revisionViews','_revisions','getRevision','isReady','getIndex','restoreRevisionCallback','compare','_revisionViewer','isSelected','Restore\x20this\x20revision','destroy','map','getLaterVisibleRevision','isVisible'];(function(_0x1f482a,_0x1c1f8a){const _0x1587a4=function(_0x5011be){while(--_0x5011be){_0x1f482a['push'](_0x1f482a['shift']());}};_0x1587a4(++_0x1c1f8a);}(_0x1c1f,0xe7));const _0x1587=function(_0x1f482a,_0x1c1f8a){_0x1f482a=_0x1f482a-0x0;let _0x1587a4=_0x1c1f[_0x1f482a];return _0x1587a4;};import{Plugin as _0x1b24f6}from'ckeditor5/src/core';import _0x4cb010 from'./revisionssidebarview';import _0x5c27a9 from'../../revisionviewer';export default class k extends _0x1b24f6{static get[_0x1587('0x32')](){return _0x1587('0x2d');}static get['requires'](){return[_0x5c27a9];}constructor(_0x1ecee2){super(_0x1ecee2),this[_0x1587('0x25')]=_0x1ecee2['plugins'][_0x1587('0x1b')](_0x5c27a9),this[_0x1587('0x0')]=this[_0x1587('0x25')][_0x1587('0xc')],this[_0x1587('0x13')]=null;}[_0x1587('0x1c')](){const _0x4daa21=this[_0x1587('0x0')][_0x1587('0x1f')],_0x1929c3=this[_0x1587('0x16')](),_0xfe47ce=this[_0x1587('0x2c')][_0x1587('0x31')][_0x1587('0x1b')](_0x1587('0x34'));this[_0x1587('0x13')]=new _0x4cb010(this[_0x1587('0x2c')][_0x1587('0x33')],_0x4daa21,_0x1929c3),this[_0x1587('0x13')]['on']('revisionSelected',this['_handleRevisionSelected'][_0x1587('0xd')](this)),this[_0x1587('0x13')][_0x1587('0xd')]('isEnabled')['to'](this[_0x1587('0x25')]),this['_sidebarView']['timePeriodViews']['on'](_0x1587('0x17'),(_0x14a262,_0x31a787)=>{_0x31a787[_0x1587('0x1e')]['on'](_0x1587('0x17'),(_0x5ec4c5,_0x5460ad)=>{_0x5460ad[_0x1587('0xd')](_0x1587('0x3'),_0x1587('0x21'))['to'](this[_0x1587('0x25')]);});}),this[_0x1587('0x13')]['render'](),this['listenTo'](this[_0x1587('0x2c')]['data'],'ready',this['_handleEditorDataReady'][_0x1587('0xd')](this)),this[_0x1587('0x36')](this[_0x1587('0x25')],_0x1587('0x19'),this[_0x1587('0x9')][_0x1587('0xd')](this)),_0xfe47ce[_0x1587('0x14')](this[_0x1587('0x13')][_0x1587('0x1d')]);}[_0x1587('0x28')](){this['_sidebarView'][_0x1587('0x1d')][_0x1587('0x7')](),this[_0x1587('0x13')][_0x1587('0x28')]();}[_0x1587('0x1a')](){const _0xbfb451=this[_0x1587('0x0')][_0x1587('0x20')](0x0);if(_0xbfb451){const _0x425bee=this[_0x1587('0x0')][_0x1587('0x18')](_0xbfb451['id']);this['_revisionViewer'][_0x1587('0x24')](_0xbfb451,_0x425bee);}}[_0x1587('0x2e')](_0x5ae89a,_0x2e6513){const _0x391dcc=this[_0x1587('0x0')][_0x1587('0x20')](_0x2e6513['id']),_0x4dd11f=this[_0x1587('0x0')][_0x1587('0x18')](_0x391dcc['id']);this['_revisionViewer'][_0x1587('0x24')](_0x391dcc,_0x4dd11f);}[_0x1587('0x9')](_0x5e4f62,_0x9b76f4,_0x199a53){const _0x25c79e=this[_0x1587('0x0')]['getRevisionsInDiff'](_0x199a53);_0x25c79e[_0x1587('0x6')]>0x2?(this['_sidebarView'][_0x1587('0x11')](_0x25c79e),this[_0x1587('0x13')][_0x1587('0x8')](null)):(this[_0x1587('0x13')][_0x1587('0x11')]([]),this['_sidebarView'][_0x1587('0x8')](_0x25c79e[0x0]));}['_createRevisionActions'](){const _0x30af4d=this[_0x1587('0x2c')],_0x21ada6=k[_0x1587('0x5')],_0x2e7238=_0x30af4d[_0x1587('0x31')]['get'](_0x1587('0xb'))||k['defaultRevisionActions'];if(_0x2e7238[_0x1587('0x6')])return _0x2e7238[_0x1587('0x29')](_0x44eeae=>{const _0x26d200='string'==typeof _0x44eeae?Object['assign']({},_0x21ada6[_0x44eeae]):_0x44eeae;return _0x26d200[_0x1587('0x10')]=_0x26d200['action'][_0x1587('0xd')](this,_0x30af4d),_0x26d200[_0x1587('0x2b')]&&(_0x26d200[_0x1587('0x2b')]=_0x26d200['isVisible'][_0x1587('0xd')](this,_0x30af4d)),_0x26d200;});}}k[_0x1587('0x5')]={'compareAgainstSelected':{'name':_0x1587('0x2f'),'action':({plugins:_0x58d259},_0x46b6bb)=>{const _0x4045ea=_0x58d259[_0x1587('0x1b')](_0x5c27a9),_0x464af9=_0x4045ea[_0x1587('0xc')];let _0x1e4a5b=_0x4045ea[_0x1587('0x2')]['newRevisionId'],_0xc37758=_0x46b6bb['id'];_0x464af9[_0x1587('0x22')](_0x1e4a5b)>_0x464af9['getIndex'](_0xc37758)&&([_0x1e4a5b,_0xc37758]=[_0xc37758,_0x1e4a5b]),_0x4045ea[_0x1587('0x24')](_0x1e4a5b,_0xc37758);},'isVisible':({plugins:_0x9dcc85},_0x4317e9)=>{const _0x5375d7=_0x9dcc85[_0x1587('0x1b')](_0x5c27a9);return!(_0x5375d7[_0x1587('0xc')]['getRevisionsInDiff'](_0x5375d7[_0x1587('0x2')])[_0x1587('0x6')]>0x2)&&!_0x4317e9[_0x1587('0x26')];}},'restoreRevision':{'name':_0x1587('0x27'),'action':(_0x218f5d,{id:_0x4374d5})=>{_0x218f5d[_0x1587('0x31')][_0x1587('0x1b')](_0x1587('0x15'))[_0x1587('0x23')](_0x4374d5);},'isVisible':({plugins:_0x32faef},_0x24c500)=>!!_0x32faef[_0x1587('0x1b')](_0x5c27a9)[_0x1587('0xc')][_0x1587('0x2a')](_0x24c500['id'])},'nameRevision':{'name':_0x1587('0x35'),'action':({plugins:_0x423571},{id:_0x13f813,revisionNameView:_0x5123cb})=>{const _0x227097=_0x423571[_0x1587('0x1b')](_0x5c27a9),_0x3a9ddd=_0x227097[_0x1587('0xc')][_0x1587('0x18')](_0x13f813);_0x227097[_0x1587('0x24')](_0x13f813,_0x3a9ddd),_0x5123cb[_0x1587('0x1')](),_0x5123cb[_0x1587('0xf')][_0x1587('0x4')]();}}},k[_0x1587('0xa')]=[_0x1587('0xe'),_0x1587('0x12'),_0x1587('0x30')];
23
+ const _0x1494=['assign','nameRevision','_revisionViewer','bind','Compare\x20against\x20selected','get','data','Name\x20this\x20revision','revisionHistory','_revisionsRepository','_revisions','init','config','getEarlierVisibleRevision','listenTo','getLaterVisibleRevision','setName','availableRevisionActions','getIndex','requires','repository','_createRevisionActions','Restore\x20this\x20revision','name','isReady','locale','action','change:diff','_handleRevisionSelected','_sidebarView','newRevisionId','appendChild','timePeriodViews','isEnabled','selectRevision','editor','getRevision','ready','revisionSetName','remove','destroy','isSelected','defaultRevisionActions','diff','pluginName','_handleRevisionSetName','compare','string','isVisible','element','compareAgainstSelected','length','restoreRevisionCallback','getRevisionsInDiff','revisionHistory.revisionActions','_handleDiffChange','add','plugins','_handleEditorDataReady','select','map'];(function(_0xc49a86,_0x149469){const _0x3f6caf=function(_0xdede0d){while(--_0xdede0d){_0xc49a86['push'](_0xc49a86['shift']());}};_0x3f6caf(++_0x149469);}(_0x1494,0x97));const _0x3f6c=function(_0xc49a86,_0x149469){_0xc49a86=_0xc49a86-0x0;let _0x3f6caf=_0x1494[_0xc49a86];return _0x3f6caf;};import{Plugin as _0x45686a}from'ckeditor5/src/core';import _0x5aed88 from'./revisionssidebarview';import _0x52ea04 from'../../revisionviewer';export default class y extends _0x45686a{static get[_0x3f6c('0xf')](){return'RevisionsSidebar';}static get[_0x3f6c('0x33')](){return[_0x52ea04];}constructor(_0x24f9ea){super(_0x24f9ea),this['_revisionViewer']=_0x24f9ea[_0x3f6c('0x1c')][_0x3f6c('0x25')](_0x52ea04),this['_revisionsRepository']=this[_0x3f6c('0x22')][_0x3f6c('0x34')],this[_0x3f6c('0x0')]=null;}[_0x3f6c('0x2b')](){const _0xda47c8=this[_0x3f6c('0x29')][_0x3f6c('0x2a')],_0x170cb1=this[_0x3f6c('0x35')](),_0x55e8f6=this['editor'][_0x3f6c('0x2c')]['get']('revisionHistory.viewerSidebarContainer');this[_0x3f6c('0x0')]=new _0x5aed88(this[_0x3f6c('0x6')][_0x3f6c('0x39')],_0xda47c8,_0x170cb1),this[_0x3f6c('0x0')]['on']('revisionSelected',this[_0x3f6c('0x3c')][_0x3f6c('0x23')](this)),this[_0x3f6c('0x0')]['on'](_0x3f6c('0x9'),this[_0x3f6c('0x10')][_0x3f6c('0x23')](this)),this[_0x3f6c('0x0')]['bind']('isEnabled')['to'](this['_revisionViewer']),this[_0x3f6c('0x0')][_0x3f6c('0x3')]['on'](_0x3f6c('0x1b'),(_0x1e80d1,_0x4a715d)=>{_0x4a715d['revisionViews']['on'](_0x3f6c('0x1b'),(_0x3662d2,_0x3d2f30)=>{_0x3d2f30[_0x3f6c('0x23')](_0x3f6c('0x4'),_0x3f6c('0x38'))['to'](this[_0x3f6c('0x22')]);});}),this['_sidebarView']['render'](),this[_0x3f6c('0x2e')](this[_0x3f6c('0x6')][_0x3f6c('0x26')],_0x3f6c('0x8'),this[_0x3f6c('0x1d')]['bind'](this)),this[_0x3f6c('0x2e')](this['_revisionViewer'],_0x3f6c('0x3b'),this[_0x3f6c('0x1a')][_0x3f6c('0x23')](this)),_0x55e8f6[_0x3f6c('0x2')](this[_0x3f6c('0x0')][_0x3f6c('0x14')]);}[_0x3f6c('0xb')](){this[_0x3f6c('0x0')]['element'][_0x3f6c('0xa')](),this['_sidebarView'][_0x3f6c('0xb')]();}[_0x3f6c('0x1d')](){const _0x1c5c97=this[_0x3f6c('0x29')][_0x3f6c('0x7')](0x0);if(_0x1c5c97){const _0x38ed94=this[_0x3f6c('0x29')]['getEarlierVisibleRevision'](_0x1c5c97['id']);this[_0x3f6c('0x22')][_0x3f6c('0x11')](_0x1c5c97,_0x38ed94);}}[_0x3f6c('0x3c')](_0x48fdd5,_0x14e74f){const _0x37c5eb=this[_0x3f6c('0x29')][_0x3f6c('0x7')](_0x14e74f['id']),_0x561463=this[_0x3f6c('0x29')][_0x3f6c('0x2d')](_0x37c5eb['id']);this[_0x3f6c('0x22')]['compare'](_0x37c5eb,_0x561463);}['_handleRevisionSetName'](_0x1b7702,_0x62a4c0){this[_0x3f6c('0x29')][_0x3f6c('0x7')](_0x62a4c0['id'])[_0x3f6c('0x30')](_0x62a4c0[_0x3f6c('0x37')]);}[_0x3f6c('0x1a')](_0xc7eb20,_0x20509b,_0x5f04f2){const _0x5903a5=this[_0x3f6c('0x29')]['getRevisionsInDiff'](_0x5f04f2);_0x5903a5['length']>0x2?(this[_0x3f6c('0x0')]['highlightRevisions'](_0x5903a5),this['_sidebarView']['selectRevision'](null)):(this[_0x3f6c('0x0')]['highlightRevisions']([]),this[_0x3f6c('0x0')][_0x3f6c('0x5')](_0x5903a5[0x0]));}['_createRevisionActions'](){const _0x3412b5=this['editor'],_0x30cb92=y[_0x3f6c('0x31')],_0x41aa36=_0x3412b5[_0x3f6c('0x2c')]['get'](_0x3f6c('0x19'))||y[_0x3f6c('0xd')];if(_0x41aa36['length'])return _0x41aa36[_0x3f6c('0x1f')](_0x25d778=>{const _0x113a29=_0x3f6c('0x12')==typeof _0x25d778?Object[_0x3f6c('0x20')]({},_0x30cb92[_0x25d778]):_0x25d778;return _0x113a29[_0x3f6c('0x3a')]=_0x113a29[_0x3f6c('0x3a')][_0x3f6c('0x23')](this,_0x3412b5),_0x113a29['isVisible']&&(_0x113a29['isVisible']=_0x113a29[_0x3f6c('0x13')][_0x3f6c('0x23')](this,_0x3412b5)),_0x113a29;});}}y['availableRevisionActions']={'compareAgainstSelected':{'name':_0x3f6c('0x24'),'action':({plugins:_0x323989},_0x4a3a3d)=>{const _0x4819c6=_0x323989[_0x3f6c('0x25')](_0x52ea04),_0x5aba76=_0x4819c6[_0x3f6c('0x34')];let _0x133310=_0x4819c6['diff'][_0x3f6c('0x1')],_0x79bd46=_0x4a3a3d['id'];_0x5aba76[_0x3f6c('0x32')](_0x133310)>_0x5aba76[_0x3f6c('0x32')](_0x79bd46)&&([_0x133310,_0x79bd46]=[_0x79bd46,_0x133310]),_0x4819c6[_0x3f6c('0x11')](_0x133310,_0x79bd46);},'isVisible':({plugins:_0x2fae18},_0x198bb0)=>{const _0x115182=_0x2fae18[_0x3f6c('0x25')](_0x52ea04);return!(_0x115182[_0x3f6c('0x34')][_0x3f6c('0x18')](_0x115182[_0x3f6c('0xe')])[_0x3f6c('0x16')]>0x2)&&!_0x198bb0[_0x3f6c('0xc')];}},'restoreRevision':{'name':_0x3f6c('0x36'),'action':(_0x115a7f,{id:_0x18c0ca})=>{_0x115a7f[_0x3f6c('0x2c')]['get'](_0x3f6c('0x28'))[_0x3f6c('0x17')](_0x18c0ca);},'isVisible':({plugins:_0x100698},_0x1c0768)=>!!_0x100698['get'](_0x52ea04)[_0x3f6c('0x34')][_0x3f6c('0x2f')](_0x1c0768['id'])},'nameRevision':{'name':_0x3f6c('0x27'),'action':({plugins:_0x41f44},{id:_0x5dd539,revisionNameView:_0x3da5e2})=>{const _0x5e9426=_0x41f44[_0x3f6c('0x25')](_0x52ea04),_0x4bd05c=_0x5e9426[_0x3f6c('0x34')][_0x3f6c('0x2d')](_0x5dd539);_0x5e9426[_0x3f6c('0x11')](_0x5dd539,_0x4bd05c),_0x3da5e2['focus'](),_0x3da5e2['fieldView'][_0x3f6c('0x1e')]();}}},y[_0x3f6c('0xd')]=[_0x3f6c('0x15'),'restoreRevision',_0x3f6c('0x21')];
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{View as _0x5d36a8,IconView as _0xd80b4c}from'ckeditor5/src/ui';import _0x50b3bd from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rs extends _0x5d36a8{constructor(_0x3dd31d){super(_0x3dd31d);const t=_0x3dd31d['t'],_0x2241b1=new _0xd80b4c(_0x3dd31d);_0x2241b1['content']=_0x50b3bd,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x2241b1,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[t('Revision\x20history')]}]});}}
23
+ import{View as _0x338fe6,IconView as _0x3fcc6b}from'ckeditor5/src/ui';import _0x236e33 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class is extends _0x338fe6{constructor(_0x1b95b5){super(_0x1b95b5);const t=_0x1b95b5['t'],_0x47689a=new _0x3fcc6b(_0x1b95b5);_0x47689a['content']=_0x236e33,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x47689a,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[t('Revision\x20history')]}]});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4028=['getTime','startDate','localizedPeriodName','ck-revision-history-sidebar__time-period__revisions','find','uiLanguage','revisionViews','createdAt','removeRevision','add','select','_revisionActions','ck-revision-history-sidebar__time-period__label','locale','delegate','div','remove'];(function(_0x4c4b90,_0x402895){const _0x49d2b4=function(_0x2c696c){while(--_0x2c696c){_0x4c4b90['push'](_0x4c4b90['shift']());}};_0x49d2b4(++_0x402895);}(_0x4028,0x1a4));const _0x49d2=function(_0x4c4b90,_0x402895){_0x4c4b90=_0x4c4b90-0x0;let _0x49d2b4=_0x4028[_0x4c4b90];return _0x49d2b4;};import{View as _0x2c885a}from'ckeditor5/src/ui';import _0x1e3713 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x369240}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class hi extends _0x2c885a{constructor(_0x2c1db7,_0x45f1ec,_0x561612){super(_0x2c1db7);const _0x321fce=_0x369240(_0x45f1ec,this['locale'][_0x49d2('0xa')])[_0x49d2('0x7')];this[_0x49d2('0x6')]=_0x45f1ec,this[_0x49d2('0x10')]=_0x561612,this[_0x49d2('0xb')]=this['createCollection'](),this[_0x49d2('0xb')][_0x49d2('0x2')](_0x49d2('0xf'))['to'](this),this['setTemplate']({'tag':_0x49d2('0x3'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':'span','attributes':{'class':['ck',_0x49d2('0x0')]},'children':[{'text':_0x321fce}]},{'tag':_0x49d2('0x3'),'attributes':{'class':['ck',_0x49d2('0x8')]},'children':this[_0x49d2('0xb')]}]});}['addRevision'](_0xbec218){const _0x1d53be=new _0x1e3713(this[_0x49d2('0x1')],_0xbec218,this[_0x49d2('0x10')]),_0x26d397=this[_0x49d2('0xb')][_0x49d2('0x9')](_0x83dda5=>_0x83dda5['createdAt'][_0x49d2('0x5')]()<_0x1d53be[_0x49d2('0xc')]['getTime']());_0x26d397?this[_0x49d2('0xb')][_0x49d2('0xe')](_0x1d53be,this[_0x49d2('0xb')]['getIndex'](_0x26d397)):this[_0x49d2('0xb')][_0x49d2('0xe')](_0x1d53be);}[_0x49d2('0xd')](_0x42299e){const _0x2e392d=this[_0x49d2('0xb')][_0x49d2('0x9')](_0x3e63cb=>_0x3e63cb['id']===_0x42299e['id']);this[_0x49d2('0xb')][_0x49d2('0x4')](_0x2e392d);}}
23
+ const _0x5961=['ck-revision-history-sidebar__time-period','addRevision','select','setTemplate','revisionViews','startDate','add','remove','uiLanguage','find','createCollection','div','_revisionActions','locale','localizedPeriodName','setName'];(function(_0x551929,_0x596124){const _0xa82373=function(_0x4f1c33){while(--_0x4f1c33){_0x551929['push'](_0x551929['shift']());}};_0xa82373(++_0x596124);}(_0x5961,0x1c9));const _0xa823=function(_0x551929,_0x596124){_0x551929=_0x551929-0x0;let _0xa82373=_0x5961[_0x551929];return _0xa82373;};import{View as _0x5f407e}from'ckeditor5/src/ui';import _0x16169e from'../revision/revisionview';import{getDateTimePeriodInfo as _0x11b69e}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class hi extends _0x5f407e{constructor(_0x4a15a6,_0x18e2ed,_0x58f430){super(_0x4a15a6);const _0x98a15d=_0x11b69e(_0x18e2ed,this[_0xa823('0x4')][_0xa823('0xf')])[_0xa823('0x5')];this[_0xa823('0xc')]=_0x18e2ed,this['_revisionActions']=_0x58f430,this[_0xa823('0xb')]=this[_0xa823('0x1')](),this[_0xa823('0xb')]['delegate'](_0xa823('0x9'))['to'](this),this[_0xa823('0xb')]['delegate'](_0xa823('0x6'))['to'](this),this[_0xa823('0xa')]({'tag':_0xa823('0x2'),'attributes':{'class':['ck',_0xa823('0x7')]},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x98a15d}]},{'tag':_0xa823('0x2'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this[_0xa823('0xb')]}]});}[_0xa823('0x8')](_0xee832a){const _0x22f699=new _0x16169e(this[_0xa823('0x4')],_0xee832a,this[_0xa823('0x3')]);this['revisionViews'][_0xa823('0xd')](_0x22f699);}['removeRevision'](_0x1e043a){const _0x44031b=this['revisionViews'][_0xa823('0x0')](_0x202e56=>_0x202e56['id']===_0x1e043a['id']);this['revisionViews'][_0xa823('0xe')](_0x44031b);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x359e=['render','highlight','ck-rounded-corners','_getTimePeriodViewByStartDate','map','ck-revision-history-sidebar','removeRevision','div','unhighlight','add','ck-reset','_revisions','selectRevision','some','_removeRevision','timePeriodViews','delegate','_revisionActions','createdAt','find','bindTemplate','getIndex','ck-disabled','highlightRevisions','createCollection','select','source','ck-revision-history-sidebar__timeline','revisionSelected','_addRevision','addRevision','remove','getTime','revisionViews','setTemplate','set','startDate'];(function(_0x1340e9,_0x359ec9){const _0x1bbf3f=function(_0x3187d5){while(--_0x3187d5){_0x1340e9['push'](_0x1340e9['shift']());}};_0x1bbf3f(++_0x359ec9);}(_0x359e,0xb4));const _0x1bbf=function(_0x1340e9,_0x359ec9){_0x1340e9=_0x1340e9-0x0;let _0x1bbf3f=_0x359e[_0x1340e9];return _0x1bbf3f;};import{View as _0x57c105}from'ckeditor5/src/ui';import _0x2223e7 from'./revisionssidebartimeperiodview';import _0x3dd7e0 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x46e0fc}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class ni extends _0x57c105{constructor(_0x362208,_0x13d371,_0x1f4b88){super(_0x362208);const _0x3be2bf=this[_0x1bbf('0x19')];this[_0x1bbf('0x14')]=this[_0x1bbf('0x1d')](),this[_0x1bbf('0x14')][_0x1bbf('0x15')](_0x1bbf('0x1e'))['to'](this),this['_revisions']=_0x13d371,this[_0x1bbf('0x16')]=_0x1f4b88,this['on'](_0x1bbf('0x1e'),_0x7975a8=>{this['fire'](_0x1bbf('0x21'),{'id':_0x7975a8[_0x1bbf('0x1f')]['id']});}),this[_0x1bbf('0x3')]('isEnabled',!0x1),this[_0x1bbf('0x2')]({'tag':'div','attributes':{'class':['ck',_0x1bbf('0xf'),_0x1bbf('0x7'),_0x1bbf('0xa')]},'children':[new _0x3dd7e0(_0x362208),{'tag':_0x1bbf('0xc'),'attributes':{'class':['ck',_0x1bbf('0x20'),_0x3be2bf['if']('isEnabled',_0x1bbf('0x1b'),_0x307024=>!_0x307024)]},'children':this[_0x1bbf('0x14')]}]});}[_0x1bbf('0x5')](){super[_0x1bbf('0x5')]();for(const _0x135454 of this[_0x1bbf('0x10')])this[_0x1bbf('0x22')](_0x135454);this[_0x1bbf('0x10')]['on'](_0x1bbf('0xe'),(_0x394318,_0x393c54)=>{this[_0x1bbf('0x22')](_0x393c54);}),this[_0x1bbf('0x10')]['on'](_0x1bbf('0x24'),(_0x827f2e,_0x881976)=>{this[_0x1bbf('0x13')](_0x881976);});}get[_0x1bbf('0x1')](){return this[_0x1bbf('0x14')][_0x1bbf('0x9')](_0x4be3fb=>_0x4be3fb[_0x1bbf('0x1')]['map'](_0x3fe0e6=>_0x3fe0e6))['flat']();}[_0x1bbf('0x11')](_0x1e59ab){for(const _0x583f8d of this['revisionViews'])_0x1e59ab&&_0x1e59ab['id']===_0x583f8d['id']?_0x583f8d[_0x1bbf('0x1e')]():_0x583f8d['deselect']();}[_0x1bbf('0x1c')](_0x257013){for(const _0x161a06 of this[_0x1bbf('0x1')])_0x257013[_0x1bbf('0x12')](({id:_0x272a35})=>_0x272a35===_0x161a06['id'])?_0x161a06[_0x1bbf('0x6')]():_0x161a06[_0x1bbf('0xd')]();}[_0x1bbf('0x22')](_0x5a6a0d){const _0x5a9edb=_0x46e0fc(_0x5a6a0d[_0x1bbf('0x17')])['startDate'];let _0x44c348=this[_0x1bbf('0x8')](_0x5a9edb);if(!_0x44c348){_0x44c348=new _0x2223e7(this['locale'],_0x5a9edb,this[_0x1bbf('0x16')]);const _0x60a4a1=this[_0x1bbf('0x14')]['find'](_0x162e9e=>_0x162e9e['startDate'][_0x1bbf('0x0')]()<_0x5a9edb['getTime']());_0x60a4a1?this[_0x1bbf('0x14')][_0x1bbf('0xe')](_0x44c348,this[_0x1bbf('0x14')][_0x1bbf('0x1a')](_0x60a4a1)):this['timePeriodViews'][_0x1bbf('0xe')](_0x44c348);}_0x44c348[_0x1bbf('0x23')](_0x5a6a0d);}[_0x1bbf('0x13')](_0x26be51){const _0x37b214=_0x46e0fc(_0x26be51[_0x1bbf('0x17')])[_0x1bbf('0x4')];this[_0x1bbf('0x8')](_0x37b214)[_0x1bbf('0xb')](_0x26be51);}[_0x1bbf('0x8')](_0x4dd444){return this[_0x1bbf('0x14')][_0x1bbf('0x18')](_0x506a63=>_0x506a63[_0x1bbf('0x4')]['getTime']()===_0x4dd444[_0x1bbf('0x0')]());}}
23
+ const _0x4ca3=['render','bindTemplate','removeRevision','delegate','highlightRevisions','selectRevision','ck-revision-history-sidebar','highlight','ck-revision-history-sidebar__timeline','map','_revisionActions','timePeriodViews','setName','add','isEnabled','_removeRevision','set','revisionSetName','addRevision','createdAt','some','select','revisionSelected','div','remove','find','_revisions','startDate','_addRevision','ck-disabled','deselect','createCollection','revisionViews','getTime','ck-rounded-corners','locale','_getTimePeriodViewByStartDate'];(function(_0x39b24f,_0x4ca3c3){const _0x14e76a=function(_0x6644be){while(--_0x6644be){_0x39b24f['push'](_0x39b24f['shift']());}};_0x14e76a(++_0x4ca3c3);}(_0x4ca3,0x73));const _0x14e7=function(_0x39b24f,_0x4ca3c3){_0x39b24f=_0x39b24f-0x0;let _0x14e76a=_0x4ca3[_0x39b24f];return _0x14e76a;};import{View as _0x4352e7}from'ckeditor5/src/ui';import _0x15d399 from'./revisionssidebartimeperiodview';import _0x49afb2 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x3199b8}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class ni extends _0x4352e7{constructor(_0x411ea3,_0x42059d,_0x1d1fa3){super(_0x411ea3);const _0x47e0b5=this[_0x14e7('0x22')];this['timePeriodViews']=this[_0x14e7('0x1b')](),this[_0x14e7('0x7')][_0x14e7('0x24')]('select')['to'](this),this[_0x14e7('0x7')][_0x14e7('0x24')](_0x14e7('0x8'))['to'](this),this['_revisions']=_0x42059d,this[_0x14e7('0x6')]=_0x1d1fa3,this['on'](_0x14e7('0x11'),(_0x4278ca,_0x44c9aa)=>{this['fire'](_0x14e7('0x12'),_0x44c9aa);}),this['on']('setName',(_0x4c5d2d,_0x1a3d13)=>{this['fire'](_0x14e7('0xd'),_0x1a3d13);}),this[_0x14e7('0xc')](_0x14e7('0xa'),!0x1),this['setTemplate']({'tag':_0x14e7('0x13'),'attributes':{'class':['ck','ck-reset',_0x14e7('0x1e'),_0x14e7('0x2')]},'children':[new _0x49afb2(_0x411ea3),{'tag':'div','attributes':{'class':['ck',_0x14e7('0x4'),_0x47e0b5['if'](_0x14e7('0xa'),_0x14e7('0x19'),_0x29235b=>!_0x29235b)]},'children':this[_0x14e7('0x7')]}]});}[_0x14e7('0x21')](){super['render']();for(const _0x18f69a of this[_0x14e7('0x16')])this[_0x14e7('0x18')](_0x18f69a);this[_0x14e7('0x16')]['on'](_0x14e7('0x9'),(_0x21b869,_0x2012b7)=>{this[_0x14e7('0x18')](_0x2012b7);}),this['_revisions']['on'](_0x14e7('0x14'),(_0x1f296b,_0x54fd0f)=>{this['_removeRevision'](_0x54fd0f);});}get[_0x14e7('0x1c')](){return this[_0x14e7('0x7')]['map'](_0x5aad6f=>_0x5aad6f[_0x14e7('0x1c')][_0x14e7('0x5')](_0xebe3bc=>_0xebe3bc))['flat']();}[_0x14e7('0x1')](_0x1ffc70){for(const _0x33f194 of this[_0x14e7('0x1c')])_0x1ffc70&&_0x1ffc70['id']===_0x33f194['id']?_0x33f194[_0x14e7('0x11')]():_0x33f194[_0x14e7('0x1a')]();}[_0x14e7('0x0')](_0x55be12){for(const _0x286675 of this['revisionViews'])_0x55be12[_0x14e7('0x10')](({id:_0x1ad92a})=>_0x1ad92a===_0x286675['id'])?_0x286675[_0x14e7('0x3')]():_0x286675['unhighlight']();}[_0x14e7('0x18')](_0x4b1ddf){const _0x57b14b=_0x3199b8(_0x4b1ddf[_0x14e7('0xf')])['startDate'];let _0x4547a8=this[_0x14e7('0x7')]['get'](0x0);_0x4547a8&&_0x4547a8['startDate']['getTime']()===_0x57b14b[_0x14e7('0x1d')]()||(_0x4547a8=new _0x15d399(this[_0x14e7('0x1f')],_0x57b14b,this['_revisionActions']),this['timePeriodViews'][_0x14e7('0x9')](_0x4547a8)),_0x4547a8[_0x14e7('0xe')](_0x4b1ddf);}[_0x14e7('0xb')](_0x21f6f0){const _0xe71f3c=_0x3199b8(_0x21f6f0[_0x14e7('0xf')])[_0x14e7('0x17')];this[_0x14e7('0x20')](_0xe71f3c)[_0x14e7('0x23')](_0x21f6f0);}['_getTimePeriodViewByStartDate'](_0x3ccc20){return this[_0x14e7('0x7')][_0x14e7('0x15')](_0x339016=>_0x339016[_0x14e7('0x17')]['getTime']()===_0x3ccc20[_0x14e7('0x1d')]());}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x66ea=['startOf','setLocale','hasSame','toJSDate','day','weekdayLong','local','fromJSDate','month','minus','week','year','toRelativeCalendar','monthLong'];(function(_0x4d8df2,_0x66eafb){const _0x255ec7=function(_0x18e125){while(--_0x18e125){_0x4d8df2['push'](_0x4d8df2['shift']());}};_0x255ec7(++_0x66eafb);}(_0x66ea,0x1aa));const _0x255e=function(_0x4d8df2,_0x66eafb){_0x4d8df2=_0x4d8df2-0x0;let _0x255ec7=_0x66ea[_0x4d8df2];return _0x255ec7;};import{DateTime as _0x305c1d}from'luxon';export function getDateTimePeriodInfo(_0x86838a,_0x485d44){_0x86838a=_0x305c1d[_0x255e('0x1')](_0x86838a)[_0x255e('0x9')](_0x485d44);const _0x1d7f03=_0x305c1d[_0x255e('0x0')](),_0x407a40=_0x1d7f03[_0x255e('0x3')]({'days':0x1})['startOf'](_0x255e('0xc'));let _0x3009b6,_0x700a24;return _0x86838a['hasSame'](_0x1d7f03,'day')?(_0x3009b6=_0x86838a['startOf'](_0x255e('0xc'))[_0x255e('0xb')](),_0x700a24=_0x86838a[_0x255e('0x6')]()):_0x86838a['hasSame'](_0x407a40,'day')?(_0x3009b6=_0x407a40[_0x255e('0xb')](),_0x700a24=_0x86838a[_0x255e('0x6')]()):_0x86838a[_0x255e('0xa')](_0x1d7f03,_0x255e('0x4'))?(_0x3009b6=_0x86838a[_0x255e('0x8')](_0x255e('0x4'))[_0x255e('0xb')](),_0x700a24=_0x86838a[_0x255e('0xd')]):_0x86838a['hasSame'](_0x1d7f03,_0x255e('0x5'))?(_0x3009b6=_0x86838a['startOf'](_0x255e('0x2'))[_0x255e('0xb')](),_0x700a24=_0x86838a[_0x255e('0x7')]):(_0x3009b6=_0x86838a[_0x255e('0x8')]('year')[_0x255e('0xb')](),_0x700a24=_0x86838a[_0x255e('0x5')]),{'startDate':_0x3009b6,'localizedPeriodName':_0x700a24};}
23
+ const _0x1658=['week','toRelativeCalendar','hasSame','local','month','minus','day','weekdayLong','startOf','monthLong','toJSDate','year'];(function(_0x4f36bf,_0x1658fa){const _0x3ca710=function(_0x1dff97){while(--_0x1dff97){_0x4f36bf['push'](_0x4f36bf['shift']());}};_0x3ca710(++_0x1658fa);}(_0x1658,0x1b1));const _0x3ca7=function(_0x4f36bf,_0x1658fa){_0x4f36bf=_0x4f36bf-0x0;let _0x3ca710=_0x1658[_0x4f36bf];return _0x3ca710;};import{DateTime as _0x589ba0}from'luxon';export function getDateTimePeriodInfo(_0x56c22c,_0x529c20){_0x56c22c=_0x589ba0['fromJSDate'](_0x56c22c)['setLocale'](_0x529c20);const _0x23aa9d=_0x589ba0[_0x3ca7('0x2')](),_0x2f9b6c=_0x23aa9d[_0x3ca7('0x4')]({'days':0x1})[_0x3ca7('0x7')](_0x3ca7('0x5'));let _0x5acb96,_0x49bbac;return _0x56c22c[_0x3ca7('0x1')](_0x23aa9d,'day')?(_0x5acb96=_0x56c22c[_0x3ca7('0x7')](_0x3ca7('0x5'))[_0x3ca7('0x9')](),_0x49bbac=_0x56c22c[_0x3ca7('0x0')]()):_0x56c22c[_0x3ca7('0x1')](_0x2f9b6c,_0x3ca7('0x5'))?(_0x5acb96=_0x2f9b6c[_0x3ca7('0x9')](),_0x49bbac=_0x56c22c[_0x3ca7('0x0')]()):_0x56c22c[_0x3ca7('0x1')](_0x23aa9d,_0x3ca7('0xb'))?(_0x5acb96=_0x56c22c[_0x3ca7('0x7')](_0x3ca7('0xb'))[_0x3ca7('0x9')](),_0x49bbac=_0x56c22c[_0x3ca7('0x6')]):_0x56c22c[_0x3ca7('0x1')](_0x23aa9d,'year')?(_0x5acb96=_0x56c22c[_0x3ca7('0x7')](_0x3ca7('0x3'))[_0x3ca7('0x9')](),_0x49bbac=_0x56c22c[_0x3ca7('0x8')]):(_0x5acb96=_0x56c22c[_0x3ca7('0x7')](_0x3ca7('0xa'))['toJSDate'](),_0x49bbac=_0x56c22c[_0x3ca7('0xa')]),{'startDate':_0x5acb96,'localizedPeriodName':_0x49bbac};}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{View as _0x138265}from'ckeditor5/src/ui';export default class P extends _0x138265{constructor(_0x5e2104,_0x52e62a){super(_0x5e2104);const t=_0x5e2104['t'];this['_model']=_0x52e62a;const _0x6d0c68=this['bindTemplate'],_0x49cece=_0x52e62a['data']['isSuggestion']?t('Suggested\x20by'):'add'==_0x52e62a['type']?t('Added\x20by'):t('Removed\x20by');this['set']('type',_0x52e62a['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x6d0c68['to']('type',_0xda1217=>'ck-revision-change__'+_0xda1217)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x49cece}]},{'text':'\x20'+_0x52e62a['author']['name']}]}]});}['focus'](){this['element']['focus']();}}
23
+ import{View as _0x4f8087}from'ckeditor5/src/ui';export default class H extends _0x4f8087{constructor(_0x1c8603,_0x439fc6){super(_0x1c8603);const t=_0x1c8603['t'];this['_model']=_0x439fc6;const _0x572a4e=this['bindTemplate'],_0x1b9126=_0x439fc6['data']['isSuggestion']?t('Suggested\x20by'):'add'==_0x439fc6['type']?t('Added\x20by'):t('Removed\x20by');this['set']('type',_0x439fc6['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x572a4e['to']('type',_0xc4b23=>'ck-revision-change__'+_0xc4b23)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x1b9126}]},{'text':'\x20'+_0x439fc6['author']['name']}]}]});}['focus'](){this['element']['focus']();}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{View as _0x6b361,ButtonView as it,ToolbarSeparatorView as _0x477e99}from'ckeditor5/src/ui';import _0x1c8bf2 from'../../../theme/icons/arrow-up.svg';import _0x583ef2 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class ui extends _0x6b361{constructor(_0x547b53){super(_0x547b53);const t=_0x547b53['t'],_0x542dc9=this['bindTemplate'],_0xce13e=new it(_0x547b53),_0x46d4ce=new it(_0x547b53);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',(_0x7bc984,_0x233da2)=>_0x7bc984&&_0x233da2>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x31ed66,_0x551616,_0x4f5093,_0x3026e3)=>{if(!_0x31ed66)return t('Loading...');if(!_0x4f5093)return t('No\x20changes');const _0x4d6416=t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0x4f5093);return _0x3026e3?t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},[_0x551616+0x1,_0x4f5093]):_0x4d6416;}),_0xce13e['set']({'label':t('Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x1c8bf2}),_0x46d4ce['set']({'label':t('Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x583ef2}),_0xce13e['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x46d4ce['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0xce13e['on']('execute',()=>this['fire']('execute','backward')),_0x46d4ce['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',_0x542dc9['if']('_isStatusLabelVisible','ck-hidden',_0x134819=>!_0x134819)]},'children':[{'text':_0x542dc9['to']('isNavigationMode',_0x196afa=>_0x196afa?t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'})+':\x20':t('Total')+':\x20')}]},{'text':_0x542dc9['to']('_statusText')}]},new _0x477e99(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0xce13e,_0x46d4ce]}]});}}
23
+ import{View as _0x120a7d,ButtonView as _0x36049c,ToolbarSeparatorView as _0x2809db}from'ckeditor5/src/ui';import ti from'../../../theme/icons/arrow-up.svg';import _0xc34c3f from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class ei extends _0x120a7d{constructor(_0x56b64a){super(_0x56b64a);const t=_0x56b64a['t'],_0x3c6200=this['bindTemplate'],_0x19b225=new _0x36049c(_0x56b64a),_0x4a3ef3=new _0x36049c(_0x56b64a);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',(_0x3c212f,_0x59a3e0)=>_0x3c212f&&_0x59a3e0>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5b959a,_0x452ab3,_0x10e05b,_0x222b3c)=>{if(!_0x5b959a)return t('Loading...');if(!_0x10e05b)return t('No\x20changes');const _0x204003=t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0x10e05b);return _0x222b3c?t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},[_0x452ab3+0x1,_0x10e05b]):_0x204003;}),_0x19b225['set']({'label':t('Show\x20previous\x20change'),'tooltip':!0x0,'icon':ti}),_0x4a3ef3['set']({'label':t('Show\x20next\x20change'),'tooltip':!0x0,'icon':_0xc34c3f}),_0x19b225['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x4a3ef3['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x19b225['on']('execute',()=>this['fire']('execute','backward')),_0x4a3ef3['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',_0x3c6200['if']('_isStatusLabelVisible','ck-hidden',_0x5abe54=>!_0x5abe54)]},'children':[{'text':_0x3c6200['to']('isNavigationMode',_0x14841b=>_0x14841b?t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'})+':\x20':t('Total')+':\x20')}]},{'text':_0x3c6200['to']('_statusText')}]},new _0x2809db(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x19b225,_0x4a3ef3]}]});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ae7=['pluginName','document','ck-editor__editable__loading-overlay','hide','change','removeClass','roots','editor','editing','addClass','RevisionViewerLoadingOverlay'];(function(_0x211fa5,_0x5ae777){const _0x4b5fa4=function(_0x17b62e){while(--_0x17b62e){_0x211fa5['push'](_0x211fa5['shift']());}};_0x4b5fa4(++_0x5ae777);}(_0x5ae7,0xef));const _0x4b5f=function(_0x211fa5,_0x5ae777){_0x211fa5=_0x211fa5-0x0;let _0x4b5fa4=_0x5ae7[_0x211fa5];return _0x4b5fa4;};import{Plugin as _0xb157b5}from'ckeditor5/src/core';import'../../../theme/revisionviewerloadingoverlay.css';export default class oe extends _0xb157b5{static get[_0x4b5f('0x3')](){return _0x4b5f('0x2');}['show'](){const _0x6e08bf=this['editor'][_0x4b5f('0x0')]['view'];_0x6e08bf[_0x4b5f('0x7')](_0x1c602e=>{for(const _0x284994 of _0x6e08bf[_0x4b5f('0x4')][_0x4b5f('0x9')])_0x1c602e[_0x4b5f('0x1')](_0x4b5f('0x5'),_0x284994);});}[_0x4b5f('0x6')](){const _0x466a2d=this[_0x4b5f('0xa')]['editing']['view'];_0x466a2d[_0x4b5f('0x7')](_0x1bc254=>{for(const _0x5517ee of _0x466a2d[_0x4b5f('0x4')][_0x4b5f('0x9')])_0x1bc254[_0x4b5f('0x8')](_0x4b5f('0x5'),_0x5517ee);});}}
23
+ const _0xa272=['addClass','document','ck-editor__editable__loading-overlay','view','pluginName','editing','show','editor','change','removeClass'];(function(_0x34f39d,_0xa272df){const _0x2bbbf6=function(_0x2246eb){while(--_0x2246eb){_0x34f39d['push'](_0x34f39d['shift']());}};_0x2bbbf6(++_0xa272df);}(_0xa272,0x142));const _0x2bbb=function(_0x34f39d,_0xa272df){_0x34f39d=_0x34f39d-0x0;let _0x2bbbf6=_0xa272[_0x34f39d];return _0x2bbbf6;};import{Plugin as _0x480096}from'ckeditor5/src/core';import'../../../theme/revisionviewerloadingoverlay.css';export default class oe extends _0x480096{static get[_0x2bbb('0x2')](){return'RevisionViewerLoadingOverlay';}[_0x2bbb('0x4')](){const _0x23dedd=this[_0x2bbb('0x5')][_0x2bbb('0x3')]['view'];_0x23dedd[_0x2bbb('0x6')](_0x4525c1=>{for(const _0x3050f1 of _0x23dedd[_0x2bbb('0x9')]['roots'])_0x4525c1[_0x2bbb('0x8')]('ck-editor__editable__loading-overlay',_0x3050f1);});}['hide'](){const _0x305104=this[_0x2bbb('0x5')]['editing'][_0x2bbb('0x1')];_0x305104[_0x2bbb('0x6')](_0xbc8884=>{for(const _0x530093 of _0x305104[_0x2bbb('0x9')]['roots'])_0xbc8884[_0x2bbb('0x7')](_0x2bbb('0x0'),_0x530093);});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x108f5d}from'ckeditor5/src/core';import{ButtonView as it}from'ckeditor5/src/ui';import _0x3ae04f from'./changesnavigationview';import _0x1156d8 from'./../../revisionviewer';import _0x35ce16 from'./revisionviewerloadingoverlay';import te from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class y extends _0x108f5d{static get['pluginName'](){return'RevisionViewerUI';}static get['requires'](){return[_0x1156d8,_0x35ce16];}['init'](){const _0x4c203d=this['editor'],_0xb4c7df=_0x4c203d['plugins']['get'](_0x1156d8),_0x3c2d23=_0x4c203d['plugins']['get'](_0x35ce16),t=_0x4c203d['t'];_0x4c203d['ui']['componentFactory']['add']('exitToEditing',_0x39be5e=>{const _0xfa31c7=new it(_0x39be5e);return _0xfa31c7['set']({'label':t('Back\x20to\x20editing'),'icon':te,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0xfa31c7,'execute',()=>{_0x4c203d['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0xfa31c7;}),_0x4c203d['ui']['componentFactory']['add']('restoreRevision',_0x47a9ac=>{const _0x291c66=new it(_0x47a9ac);return _0x291c66['set']({'label':t('Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x291c66['bind']('isEnabled')['to'](_0x4c203d['commands']['get']('restoreRevision')),this['listenTo'](_0x291c66,'execute',()=>_0x4c203d['execute']('restoreRevision')),_0x291c66;}),_0x4c203d['ui']['componentFactory']['add']('changesNavigation',_0x11dbdf=>{const _0x3d6940=new _0x3ae04f(_0x11dbdf),_0x54e725=_0x4c203d['commands']['get']('showPreviousChange'),_0x455bbe=_0x4c203d['commands']['get']('showNextChange');return _0x3d6940['bind']('isBackwardNavigationEnabled')['to'](_0x54e725,'isEnabled'),_0x3d6940['bind']('isForwardNavigationEnabled')['to'](_0x455bbe,'isEnabled'),_0x3d6940['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0xb4c7df),this['listenTo'](_0x3d6940,'execute',(_0x5b96d8,_0x4d3b41)=>{_0x4c203d['execute']('forward'===_0x4d3b41?'showNextChange':'showPreviousChange');}),_0x3d6940;}),_0x3c2d23['show'](),_0xb4c7df['on']('change:isReady',(_0x3b8f57,_0x49a268,_0x2025a3)=>{_0x2025a3?_0x3c2d23['hide']():_0x3c2d23['show']();});}}
23
+ import{Plugin as _0x650dcd}from'ckeditor5/src/core';import{ButtonView as _0x33dfbf}from'ckeditor5/src/ui';import _0x5c1fcc from'./changesnavigationview';import _0x1c343e from'./../../revisionviewer';import _0x25feaa from'./revisionviewerloadingoverlay';import te from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class d extends _0x650dcd{static get['pluginName'](){return'RevisionViewerUI';}static get['requires'](){return[_0x1c343e,_0x25feaa];}['init'](){const _0x1ff1c8=this['editor'],_0x5176d4=_0x1ff1c8['plugins']['get'](_0x1c343e),_0x3348ff=_0x1ff1c8['plugins']['get'](_0x25feaa),t=_0x1ff1c8['t'];_0x1ff1c8['ui']['componentFactory']['add']('exitToEditing',_0x25ceb1=>{const _0x8b5fbe=new _0x33dfbf(_0x25ceb1);return _0x8b5fbe['set']({'label':t('Back\x20to\x20editing'),'icon':te,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x8b5fbe,'execute',()=>{_0x1ff1c8['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x8b5fbe;}),_0x1ff1c8['ui']['componentFactory']['add']('restoreRevision',_0x19c791=>{const _0x1bd240=new _0x33dfbf(_0x19c791);return _0x1bd240['set']({'label':t('Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x1bd240['bind']('isEnabled')['to'](_0x1ff1c8['commands']['get']('restoreRevision')),this['listenTo'](_0x1bd240,'execute',()=>_0x1ff1c8['execute']('restoreRevision')),_0x1bd240;}),_0x1ff1c8['ui']['componentFactory']['add']('changesNavigation',_0xbfedbf=>{const _0x7fc23c=new _0x5c1fcc(_0xbfedbf),_0x2ee7f3=_0x1ff1c8['commands']['get']('showPreviousChange'),_0xdbe3d6=_0x1ff1c8['commands']['get']('showNextChange');return _0x7fc23c['bind']('isBackwardNavigationEnabled')['to'](_0x2ee7f3,'isEnabled'),_0x7fc23c['bind']('isForwardNavigationEnabled')['to'](_0xdbe3d6,'isEnabled'),_0x7fc23c['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5176d4),this['listenTo'](_0x7fc23c,'execute',(_0x168d65,_0x4b5e96)=>{_0x1ff1c8['execute']('forward'===_0x4b5e96?'showNextChange':'showPreviousChange');}),_0x7fc23c;}),_0x3348ff['show'](),_0x5176d4['on']('change:isReady',(_0x28dab5,_0x1820c9,_0x1ada9c)=>{_0x1ada9c?_0x3348ff['hide']():_0x3348ff['show']();});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2003-2020, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5