@ckeditor/ckeditor5-revision-history 34.0.0 → 35.0.1

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 (107) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +2 -2
  3. package/build/revision-history.js +1 -1
  4. package/build/translations/af.js +1 -0
  5. package/build/translations/ar.js +1 -0
  6. package/build/translations/bg.js +1 -0
  7. package/build/translations/bn.js +1 -0
  8. package/build/translations/ca.js +1 -0
  9. package/build/translations/da.js +1 -1
  10. package/build/translations/de.js +1 -1
  11. package/build/translations/es.js +1 -1
  12. package/build/translations/et.js +1 -1
  13. package/build/translations/fi.js +1 -0
  14. package/build/translations/fr.js +1 -1
  15. package/build/translations/he.js +1 -1
  16. package/build/translations/hi.js +1 -1
  17. package/build/translations/hu.js +1 -1
  18. package/build/translations/id.js +1 -1
  19. package/build/translations/it.js +1 -1
  20. package/build/translations/ja.js +1 -1
  21. package/build/translations/ko.js +1 -1
  22. package/build/translations/lt.js +1 -0
  23. package/build/translations/lv.js +1 -1
  24. package/build/translations/ms.js +1 -0
  25. package/build/translations/nl.js +1 -1
  26. package/build/translations/no.js +1 -1
  27. package/build/translations/pl.js +1 -1
  28. package/build/translations/pt-br.js +1 -1
  29. package/build/translations/pt.js +1 -0
  30. package/build/translations/ro.js +1 -1
  31. package/build/translations/ru.js +1 -1
  32. package/build/translations/sr.js +1 -1
  33. package/build/translations/sv.js +1 -0
  34. package/build/translations/th.js +1 -0
  35. package/build/translations/tr.js +1 -1
  36. package/build/translations/uk.js +1 -1
  37. package/build/translations/ur.js +1 -0
  38. package/build/translations/vi.js +1 -1
  39. package/build/translations/zh-cn.js +1 -1
  40. package/build/translations/zh.js +1 -1
  41. package/lang/translations/af.po +123 -0
  42. package/lang/translations/ar.po +127 -0
  43. package/lang/translations/bg.po +123 -0
  44. package/lang/translations/bn.po +123 -0
  45. package/lang/translations/ca.po +123 -0
  46. package/lang/translations/da.po +25 -25
  47. package/lang/translations/de.po +3 -3
  48. package/lang/translations/es.po +2 -1
  49. package/lang/translations/et.po +25 -25
  50. package/lang/translations/fi.po +123 -0
  51. package/lang/translations/fr.po +25 -24
  52. package/lang/translations/he.po +28 -28
  53. package/lang/translations/hi.po +25 -25
  54. package/lang/translations/hu.po +19 -19
  55. package/lang/translations/id.po +13 -13
  56. package/lang/translations/it.po +2 -1
  57. package/lang/translations/ja.po +25 -25
  58. package/lang/translations/ko.po +24 -24
  59. package/lang/translations/lt.po +125 -0
  60. package/lang/translations/lv.po +27 -27
  61. package/lang/translations/ms.po +122 -0
  62. package/lang/translations/nl.po +3 -3
  63. package/lang/translations/no.po +25 -25
  64. package/lang/translations/pl.po +5 -5
  65. package/lang/translations/pt-br.po +2 -1
  66. package/lang/translations/pt.po +124 -0
  67. package/lang/translations/ro.po +6 -6
  68. package/lang/translations/ru.po +27 -27
  69. package/lang/translations/sr.po +3 -3
  70. package/lang/translations/sv.po +123 -0
  71. package/lang/translations/th.po +122 -0
  72. package/lang/translations/tr.po +6 -6
  73. package/lang/translations/uk.po +27 -27
  74. package/lang/translations/ur.po +123 -0
  75. package/lang/translations/vi.po +25 -25
  76. package/lang/translations/zh-cn.po +24 -24
  77. package/lang/translations/zh.po +23 -23
  78. package/package.json +7 -7
  79. package/src/changeitem.js +1 -1
  80. package/src/editor/revisionviewereditor.js +1 -1
  81. package/src/editor/revisionviewereditorui.js +1 -1
  82. package/src/editor/revisionviewereditoruiview.js +1 -1
  83. package/src/revision.js +1 -1
  84. package/src/revisiondiff.js +1 -1
  85. package/src/revisionhistory.js +1 -1
  86. package/src/revisionsrepository.js +1 -1
  87. package/src/revisiontracker.js +1 -1
  88. package/src/revisionviewer.js +1 -1
  89. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  90. package/src/ui/revision/revisionauthorview.js +1 -1
  91. package/src/ui/revision/revisionnameview.js +1 -1
  92. package/src/ui/revision/revisionview.js +1 -1
  93. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  94. package/src/ui/revision/subrevisionview.js +1 -1
  95. package/src/ui/revision/utils.js +1 -1
  96. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  97. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  98. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  99. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  100. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  101. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  102. package/src/ui/revisionssidebar/utils.js +1 -1
  103. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  104. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  105. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  106. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  107. package/src/utils/common-translations.js +23 -0
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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')];
23
+ const _0x56bd=['action','Restore\x20this\x20revision','revisionHistory','_handleRevisionSelected','render','appendChild','_handleDiffChange','data','focus','RevisionsSidebar','compare','_revisionsRepository','nameRevision','selectRevision','setName','diff','element','_handleEditorDataReady','isVisible','revisionHistory.viewerSidebarContainer','_revisions','fieldView','editor','isReady','get','restoreRevisionCallback','compareAgainstSelected','getEarlierVisibleRevision','getIndex','restoreRevision','map','defaultRevisionActions','assign','pluginName','name','highlightRevisions','repository','getRevision','timePeriodViews','plugins','isSelected','listenTo','length','Compare\x20against\x20selected','revisionSelected','add','_sidebarView','_handleRevisionSetName','change:diff','_createRevisionActions','locale','_revisionViewer','getRevisionsInDiff','Name\x20this\x20revision','availableRevisionActions','destroy','getLaterVisibleRevision','requires','isEnabled','config','revisionViews','bind'];(function(_0x189ab5,_0x56bd23){const _0x2eca4e=function(_0x4a803b){while(--_0x4a803b){_0x189ab5['push'](_0x189ab5['shift']());}};_0x2eca4e(++_0x56bd23);}(_0x56bd,0xcb));const _0x2eca=function(_0x189ab5,_0x56bd23){_0x189ab5=_0x189ab5-0x0;let _0x2eca4e=_0x56bd[_0x189ab5];return _0x2eca4e;};import{Plugin as _0x57b721}from'ckeditor5/src/core';import _0x123f28 from'./revisionssidebarview';import _0x12ac9e from'../../revisionviewer';export default class y extends _0x57b721{static get[_0x2eca('0x10')](){return _0x2eca('0x36');}static get[_0x2eca('0x28')](){return[_0x12ac9e];}constructor(_0x499411){super(_0x499411),this[_0x2eca('0x22')]=_0x499411[_0x2eca('0x16')][_0x2eca('0x7')](_0x12ac9e),this[_0x2eca('0x38')]=this[_0x2eca('0x22')][_0x2eca('0x13')],this[_0x2eca('0x1d')]=null;}['init'](){const _0x17fba1=this['_revisionsRepository'][_0x2eca('0x3')],_0x4e16ef=this[_0x2eca('0x20')](),_0x1e93b3=this['editor']['config']['get'](_0x2eca('0x2'));this[_0x2eca('0x1d')]=new _0x123f28(this['editor'][_0x2eca('0x21')],_0x17fba1,_0x4e16ef),this[_0x2eca('0x1d')]['on'](_0x2eca('0x1b'),this['_handleRevisionSelected'][_0x2eca('0x2c')](this)),this[_0x2eca('0x1d')]['on']('revisionSetName',this[_0x2eca('0x1e')]['bind'](this)),this[_0x2eca('0x1d')][_0x2eca('0x2c')](_0x2eca('0x29'))['to'](this['_revisionViewer']),this[_0x2eca('0x1d')][_0x2eca('0x15')]['on'](_0x2eca('0x1c'),(_0x31f68a,_0x3dd4a1)=>{_0x3dd4a1[_0x2eca('0x2b')]['on'](_0x2eca('0x1c'),(_0x5c7c91,_0x1e5581)=>{_0x1e5581[_0x2eca('0x2c')](_0x2eca('0x29'),_0x2eca('0x6'))['to'](this['_revisionViewer']);});}),this[_0x2eca('0x1d')][_0x2eca('0x31')](),this[_0x2eca('0x18')](this['editor'][_0x2eca('0x34')],'ready',this[_0x2eca('0x0')][_0x2eca('0x2c')](this)),this[_0x2eca('0x18')](this[_0x2eca('0x22')],_0x2eca('0x1f'),this[_0x2eca('0x33')]['bind'](this)),_0x1e93b3[_0x2eca('0x32')](this[_0x2eca('0x1d')][_0x2eca('0x3d')]);}['destroy'](){this[_0x2eca('0x1d')][_0x2eca('0x3d')]['remove'](),this['_sidebarView'][_0x2eca('0x26')]();}[_0x2eca('0x0')](){const _0x4cc81e=this[_0x2eca('0x38')][_0x2eca('0x14')](0x0);if(_0x4cc81e){const _0x3d045b=this[_0x2eca('0x38')][_0x2eca('0xa')](_0x4cc81e['id']);this[_0x2eca('0x22')][_0x2eca('0x37')](_0x4cc81e,_0x3d045b);}}[_0x2eca('0x30')](_0x1aa046,_0x4a19d5){const _0x5f052d=this['_revisionsRepository']['getRevision'](_0x4a19d5['id']),_0x1a1249=this[_0x2eca('0x38')][_0x2eca('0xa')](_0x5f052d['id']);this['_revisionViewer'][_0x2eca('0x37')](_0x5f052d,_0x1a1249);}['_handleRevisionSetName'](_0x349d96,_0x512f91){this[_0x2eca('0x38')][_0x2eca('0x14')](_0x512f91['id'])[_0x2eca('0x3b')](_0x512f91[_0x2eca('0x11')]);}[_0x2eca('0x33')](_0x44bf8d,_0x21b37c,_0x134d9d){const _0x5f2e9b=this['_revisionsRepository'][_0x2eca('0x23')](_0x134d9d);_0x5f2e9b['length']>0x2?(this[_0x2eca('0x1d')][_0x2eca('0x12')](_0x5f2e9b),this[_0x2eca('0x1d')][_0x2eca('0x3a')](null)):(this[_0x2eca('0x1d')]['highlightRevisions']([]),this['_sidebarView'][_0x2eca('0x3a')](_0x5f2e9b[0x0]));}[_0x2eca('0x20')](){const _0x435564=this[_0x2eca('0x5')],_0x41221d=y[_0x2eca('0x25')],_0x265a86=_0x435564[_0x2eca('0x2a')]['get']('revisionHistory.revisionActions')||y[_0x2eca('0xe')];if(_0x265a86[_0x2eca('0x19')])return _0x265a86[_0x2eca('0xd')](_0x3a48dc=>{const _0x17c5ac='string'==typeof _0x3a48dc?Object[_0x2eca('0xf')]({},_0x41221d[_0x3a48dc]):_0x3a48dc;return _0x17c5ac[_0x2eca('0x2d')]=_0x17c5ac[_0x2eca('0x2d')]['bind'](this,_0x435564),_0x17c5ac[_0x2eca('0x1')]&&(_0x17c5ac['isVisible']=_0x17c5ac[_0x2eca('0x1')][_0x2eca('0x2c')](this,_0x435564)),_0x17c5ac;});}}y['availableRevisionActions']={'compareAgainstSelected':{'name':_0x2eca('0x1a'),'action':({plugins:_0x60ed08},_0x33c1c2)=>{const _0x4e5967=_0x60ed08[_0x2eca('0x7')](_0x12ac9e),_0x49a489=_0x4e5967[_0x2eca('0x13')];let _0x335cf9=_0x4e5967['diff']['newRevisionId'],_0x2516ad=_0x33c1c2['id'];_0x49a489[_0x2eca('0xb')](_0x335cf9)>_0x49a489[_0x2eca('0xb')](_0x2516ad)&&([_0x335cf9,_0x2516ad]=[_0x2516ad,_0x335cf9]),_0x4e5967[_0x2eca('0x37')](_0x335cf9,_0x2516ad);},'isVisible':({plugins:_0x35d387},_0x20714a)=>{const _0xec0b3b=_0x35d387[_0x2eca('0x7')](_0x12ac9e);return!(_0xec0b3b[_0x2eca('0x13')][_0x2eca('0x23')](_0xec0b3b[_0x2eca('0x3c')])[_0x2eca('0x19')]>0x2)&&!_0x20714a[_0x2eca('0x17')];}},'restoreRevision':{'name':_0x2eca('0x2e'),'action':(_0x2f7480,{id:_0x29d7af})=>{_0x2f7480['config'][_0x2eca('0x7')](_0x2eca('0x2f'))[_0x2eca('0x8')](_0x29d7af);},'isVisible':({plugins:_0x5dc734},_0x33f6e1)=>!!_0x5dc734['get'](_0x12ac9e)['repository'][_0x2eca('0x27')](_0x33f6e1['id'])},'nameRevision':{'name':_0x2eca('0x24'),'action':({plugins:_0x31986e},{id:_0x1d2722,revisionNameView:_0x4ff6ef})=>{const _0x25d76b=_0x31986e[_0x2eca('0x7')](_0x12ac9e),_0x1572a5=_0x25d76b['repository']['getEarlierVisibleRevision'](_0x1d2722);_0x25d76b['compare'](_0x1d2722,_0x1572a5),_0x4ff6ef[_0x2eca('0x35')](),_0x4ff6ef[_0x2eca('0x4')]['select']();}}},y[_0x2eca('0xe')]=[_0x2eca('0x9'),_0x2eca('0xc'),_0x2eca('0x39')];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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')]}]});}}
23
+ const _0x53d6=['ck-revision-history-sidebar__header__label','ck-revision-history-sidebar__header','span','Revision\x20history','ck-reset_all','setTemplate','content'];(function(_0x48fdea,_0x53d628){const _0x524583=function(_0x461d88){while(--_0x461d88){_0x48fdea['push'](_0x48fdea['shift']());}};_0x524583(++_0x53d628);}(_0x53d6,0x196));const _0x5245=function(_0x48fdea,_0x53d628){_0x48fdea=_0x48fdea-0x0;let _0x524583=_0x53d6[_0x48fdea];return _0x524583;};import{View as _0x34bfc0,IconView as _0x1a61d1}from'ckeditor5/src/ui';import{getTranslation as _0x4573c8}from'../../utils/common-translations';import _0x8ae6d7 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class cs extends _0x34bfc0{constructor(_0x164b91){super(_0x164b91);const _0x459b56=new _0x1a61d1(_0x164b91);_0x459b56[_0x5245('0x6')]=_0x8ae6d7,this[_0x5245('0x5')]({'tag':'div','attributes':{'class':['ck',_0x5245('0x4'),_0x5245('0x1')]},'children':[_0x459b56,{'tag':_0x5245('0x2'),'attributes':{'class':['ck',_0x5245('0x0')]},'children':[_0x4573c8(_0x164b91,_0x5245('0x3'))]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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);}}
23
+ const _0x315f=['span','_revisionActions','ck-revision-history-sidebar__time-period__revisions','setTemplate','localizedPeriodName','delegate','createCollection','revisionViews','locale','remove','ck-revision-history-sidebar__time-period','select','addRevision','setName','div','add','removeRevision','ck-revision-history-sidebar__time-period__label','uiLanguage'];(function(_0x5336f3,_0x315fdc){const _0x514d36=function(_0x473fec){while(--_0x473fec){_0x5336f3['push'](_0x5336f3['shift']());}};_0x514d36(++_0x315fdc);}(_0x315f,0x79));const _0x514d=function(_0x5336f3,_0x315fdc){_0x5336f3=_0x5336f3-0x0;let _0x514d36=_0x315f[_0x5336f3];return _0x514d36;};import{View as _0x667630}from'ckeditor5/src/ui';import _0x885c6a from'../revision/revisionview';import{getDateTimePeriodInfo as _0x157076}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x667630{constructor(_0x51a0f0,_0x4bc392,_0x107bf3){super(_0x51a0f0);const _0xfc6440=_0x157076(_0x4bc392,this[_0x514d('0x1')][_0x514d('0xb')])[_0x514d('0x10')];this['startDate']=_0x4bc392,this[_0x514d('0xd')]=_0x107bf3,this[_0x514d('0x0')]=this[_0x514d('0x12')](),this[_0x514d('0x0')][_0x514d('0x11')](_0x514d('0x4'))['to'](this),this['revisionViews'][_0x514d('0x11')](_0x514d('0x6'))['to'](this),this[_0x514d('0xf')]({'tag':_0x514d('0x7'),'attributes':{'class':['ck',_0x514d('0x3')]},'children':[{'tag':_0x514d('0xc'),'attributes':{'class':['ck',_0x514d('0xa')]},'children':[{'text':_0xfc6440}]},{'tag':_0x514d('0x7'),'attributes':{'class':['ck',_0x514d('0xe')]},'children':this[_0x514d('0x0')]}]});}[_0x514d('0x5')](_0x11747f){const _0x2ec09c=new _0x885c6a(this[_0x514d('0x1')],_0x11747f,this['_revisionActions']);this[_0x514d('0x0')][_0x514d('0x8')](_0x2ec09c);}[_0x514d('0x9')](_0x47df69){const _0x50a323=this[_0x514d('0x0')]['find'](_0xc9eedc=>_0xc9eedc['id']===_0x47df69['id']);this[_0x514d('0x0')][_0x514d('0x2')](_0x50a323);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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']());}}
23
+ const _0x30b2=['set','_removeRevision','deselect','setName','render','find','timePeriodViews','fire','addRevision','delegate','div','remove','map','getTime','some','ck-revision-history-sidebar','flat','get','selectRevision','bindTemplate','revisionViews','select','startDate','createdAt','ck-revision-history-sidebar__timeline','ck-disabled','_getTimePeriodViewByStartDate','locale','add','highlight','isEnabled','highlightRevisions','_addRevision','_revisions'];(function(_0x598b4f,_0x30b255){const _0x72bb91=function(_0x361825){while(--_0x361825){_0x598b4f['push'](_0x598b4f['shift']());}};_0x72bb91(++_0x30b255);}(_0x30b2,0x7b));const _0x72bb=function(_0x598b4f,_0x30b255){_0x598b4f=_0x598b4f-0x0;let _0x72bb91=_0x30b2[_0x598b4f];return _0x72bb91;};import{View as _0x296b40}from'ckeditor5/src/ui';import _0x3e9390 from'./revisionssidebartimeperiodview';import _0x30ecae from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x5403f0}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x296b40{constructor(_0x495a85,_0x1548fa,_0x4d66f1){super(_0x495a85);const _0x3a6bcc=this[_0x72bb('0x20')];this[_0x72bb('0x13')]=this['createCollection'](),this[_0x72bb('0x13')][_0x72bb('0x16')]('select')['to'](this),this[_0x72bb('0x13')][_0x72bb('0x16')](_0x72bb('0x10'))['to'](this),this[_0x72bb('0xc')]=_0x1548fa,this['_revisionActions']=_0x4d66f1,this['on'](_0x72bb('0x0'),(_0x2e83aa,_0x34764f)=>{this['fire']('revisionSelected',_0x34764f);}),this['on']('setName',(_0x29a1dc,_0x2e1266)=>{this[_0x72bb('0x14')]('revisionSetName',_0x2e1266);}),this[_0x72bb('0xd')](_0x72bb('0x9'),!0x1),this['setTemplate']({'tag':_0x72bb('0x17'),'attributes':{'class':['ck','ck-reset','ck-rounded-corners',_0x72bb('0x1c')]},'children':[new _0x30ecae(_0x495a85),{'tag':_0x72bb('0x17'),'attributes':{'class':['ck',_0x72bb('0x3'),_0x3a6bcc['if'](_0x72bb('0x9'),_0x72bb('0x4'),_0x65491b=>!_0x65491b)]},'children':this[_0x72bb('0x13')]}]});}[_0x72bb('0x11')](){super[_0x72bb('0x11')]();for(const _0x42dcfe of this[_0x72bb('0xc')])this[_0x72bb('0xb')](_0x42dcfe);this['_revisions']['on']('add',(_0x433f69,_0xf4bc4)=>{this[_0x72bb('0xb')](_0xf4bc4);}),this[_0x72bb('0xc')]['on'](_0x72bb('0x18'),(_0x388628,_0x18bbbd)=>{this[_0x72bb('0xe')](_0x18bbbd);});}get[_0x72bb('0x21')](){return this[_0x72bb('0x13')][_0x72bb('0x19')](_0x327588=>_0x327588['revisionViews'][_0x72bb('0x19')](_0x16b4a4=>_0x16b4a4))[_0x72bb('0x1d')]();}[_0x72bb('0x1f')](_0x5cce0c){for(const _0x4ed2ef of this[_0x72bb('0x21')])_0x5cce0c&&_0x5cce0c['id']===_0x4ed2ef['id']?_0x4ed2ef[_0x72bb('0x0')]():_0x4ed2ef[_0x72bb('0xf')]();}[_0x72bb('0xa')](_0x21d074){for(const _0x5e48d1 of this[_0x72bb('0x21')])_0x21d074[_0x72bb('0x1b')](({id:_0x50f615})=>_0x50f615===_0x5e48d1['id'])?_0x5e48d1[_0x72bb('0x8')]():_0x5e48d1['unhighlight']();}[_0x72bb('0xb')](_0x3a1eaa){const _0xeec7f2=_0x5403f0(_0x3a1eaa['createdAt'])[_0x72bb('0x1')];let _0x125ea8=this[_0x72bb('0x13')][_0x72bb('0x1e')](0x0);_0x125ea8&&_0x125ea8['startDate'][_0x72bb('0x1a')]()===_0xeec7f2['getTime']()||(_0x125ea8=new _0x3e9390(this[_0x72bb('0x6')],_0xeec7f2,this['_revisionActions']),this['timePeriodViews'][_0x72bb('0x7')](_0x125ea8)),_0x125ea8[_0x72bb('0x15')](_0x3a1eaa);}[_0x72bb('0xe')](_0x4d6acd){const _0x428e60=_0x5403f0(_0x4d6acd[_0x72bb('0x2')])[_0x72bb('0x1')];this['_getTimePeriodViewByStartDate'](_0x428e60)['removeRevision'](_0x4d6acd);}[_0x72bb('0x5')](_0x1d656f){return this['timePeriodViews'][_0x72bb('0x12')](_0x517ce8=>_0x517ce8[_0x72bb('0x1')][_0x72bb('0x1a')]()===_0x1d656f[_0x72bb('0x1a')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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};}
23
+ const _0x59e7=['local','toRelativeCalendar','hasSame','day','year','toJSDate','week','monthLong','minus','weekdayLong','startOf','setLocale'];(function(_0x40da1a,_0x59e762){const _0x16ea75=function(_0x499f4b){while(--_0x499f4b){_0x40da1a['push'](_0x40da1a['shift']());}};_0x16ea75(++_0x59e762);}(_0x59e7,0x174));const _0x16ea=function(_0x40da1a,_0x59e762){_0x40da1a=_0x40da1a-0x0;let _0x16ea75=_0x59e7[_0x40da1a];return _0x16ea75;};import{DateTime as _0x4b088a}from'luxon';export function getDateTimePeriodInfo(_0x3494c8,_0x2818d0){_0x3494c8=_0x4b088a['fromJSDate'](_0x3494c8)[_0x16ea('0xb')](_0x2818d0);const _0x3bf78d=_0x4b088a[_0x16ea('0x0')](),_0x3daf62=_0x3bf78d[_0x16ea('0x8')]({'days':0x1})[_0x16ea('0xa')](_0x16ea('0x3'));let _0x3e6469,_0x1a31ca;return _0x3494c8[_0x16ea('0x2')](_0x3bf78d,_0x16ea('0x3'))?(_0x3e6469=_0x3494c8[_0x16ea('0xa')](_0x16ea('0x3'))[_0x16ea('0x5')](),_0x1a31ca=_0x3494c8[_0x16ea('0x1')]()):_0x3494c8[_0x16ea('0x2')](_0x3daf62,'day')?(_0x3e6469=_0x3daf62['toJSDate'](),_0x1a31ca=_0x3494c8[_0x16ea('0x1')]()):_0x3494c8[_0x16ea('0x2')](_0x3bf78d,_0x16ea('0x6'))?(_0x3e6469=_0x3494c8[_0x16ea('0xa')](_0x16ea('0x6'))[_0x16ea('0x5')](),_0x1a31ca=_0x3494c8[_0x16ea('0x9')]):_0x3494c8[_0x16ea('0x2')](_0x3bf78d,_0x16ea('0x4'))?(_0x3e6469=_0x3494c8[_0x16ea('0xa')]('month')[_0x16ea('0x5')](),_0x1a31ca=_0x3494c8[_0x16ea('0x7')]):(_0x3e6469=_0x3494c8[_0x16ea('0xa')]('year')[_0x16ea('0x5')](),_0x1a31ca=_0x3494c8[_0x16ea('0x4')]),{'startDate':_0x3e6469,'localizedPeriodName':_0x1a31ca};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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']();}}
23
+ const _0x5317=['set','ck-revision-change','setTemplate','author','bindTemplate','add','div','focus','ck-revision-change__','span','_model','data','ck-revision-change__label','Removed\x20by','isSuggestion','Added\x20by','ck-annotation','Suggested\x20by','name','type','element'];(function(_0x3ef641,_0x5317a3){const _0x1a59fc=function(_0x45b5d4){while(--_0x45b5d4){_0x3ef641['push'](_0x3ef641['shift']());}};_0x1a59fc(++_0x5317a3);}(_0x5317,0x16c));const _0x1a59=function(_0x3ef641,_0x5317a3){_0x3ef641=_0x3ef641-0x0;let _0x1a59fc=_0x5317[_0x3ef641];return _0x1a59fc;};import{View as _0x17cce7}from'ckeditor5/src/ui';import{getTranslation as _0x75d83c}from'../../utils/common-translations';export default class X extends _0x17cce7{constructor(_0x82e09b,_0x72b20){super(_0x82e09b),this[_0x1a59('0x3')]=_0x72b20;const _0x27c15e=this[_0x1a59('0x12')],_0x3e9642=_0x75d83c(_0x82e09b,_0x72b20[_0x1a59('0x4')][_0x1a59('0x7')]?_0x1a59('0xa'):_0x1a59('0x13')==_0x72b20['type']?_0x1a59('0x8'):_0x1a59('0x6'));this[_0x1a59('0xe')](_0x1a59('0xc'),_0x72b20[_0x1a59('0xc')]),this[_0x1a59('0x10')]({'tag':_0x1a59('0x14'),'attributes':{'class':[_0x1a59('0x9'),_0x1a59('0xf'),_0x27c15e['to'](_0x1a59('0xc'),_0x4c161e=>_0x1a59('0x1')+_0x4c161e)],'tabindex':-0x1},'children':[{'tag':_0x1a59('0x2'),'children':[{'tag':_0x1a59('0x2'),'attributes':{'class':[_0x1a59('0x5')]},'children':[{'text':_0x3e9642}]},{'text':'\x20'+_0x72b20[_0x1a59('0x11')][_0x1a59('0xb')]}]}]});}[_0x1a59('0x0')](){this[_0x1a59('0xd')][_0x1a59('0x0')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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]}]});}}
23
+ const _0x2957=['numberOfChanges','ck-revision-history-ui','ck-revision-history-ui__changes-navigation__label','ck-revision-history-ui__changes-navigation','isEnabled','currentChangeNumber','div','EDIT_X_OF_Y_REVISIONS','setTemplate','Loading...','span','ck-revision-history-ui__changes-navigation__navigation','ck-revision-history-ui__changes-navigation__wrapper','execute','X_OF_Y_CHANGES','bind','fire','isBackwardNavigationEnabled','No\x20changes','isReady','set','forward','backward','NUMBER_OF_CHANGES','_isStatusLabelVisible','Show\x20next\x20change','isForwardNavigationEnabled','isNavigationMode'];(function(_0x214cb4,_0x295770){const _0x169d1b=function(_0xd6059f){while(--_0xd6059f){_0x214cb4['push'](_0x214cb4['shift']());}};_0x169d1b(++_0x295770);}(_0x2957,0xef));const _0x169d=function(_0x214cb4,_0x295770){_0x214cb4=_0x214cb4-0x0;let _0x169d1b=_0x2957[_0x214cb4];return _0x169d1b;};import{View as _0x4d71b1,ButtonView as _0xad7cb4,ToolbarSeparatorView as _0x3282b4}from'ckeditor5/src/ui';import{getTranslation as _0x340ce4}from'../../utils/common-translations';import _0xe74e0e from'../../../theme/icons/arrow-up.svg';import _0x546986 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x4d71b1{constructor(_0x53cffc){super(_0x53cffc);const _0x5325bc=this['bindTemplate'],_0x3fd3c3=new _0xad7cb4(_0x53cffc),_0x2e3db8=new _0xad7cb4(_0x53cffc);this[_0x169d('0x5')](_0x169d('0xc'),!0x1),this[_0x169d('0x5')]('isReady',!0x1),this[_0x169d('0x5')]('currentChangeNumber',0x0),this[_0x169d('0x5')](_0x169d('0xd'),0x0),this[_0x169d('0x5')](_0x169d('0xb'),!0x1),this[_0x169d('0x5')](_0x169d('0x2'),!0x1),this[_0x169d('0x0')](_0x169d('0x9'))['to'](this,_0x169d('0x4'),this,'numberOfChanges',(_0x370bfa,_0x4b09f4)=>_0x370bfa&&_0x4b09f4>0x0),this[_0x169d('0x0')]('_statusText')['to'](this,_0x169d('0x4'),this,_0x169d('0x12'),this,_0x169d('0xd'),this,'isNavigationMode',(_0x362cb9,_0x3c4729,_0x53ffb8,_0x5d1438)=>{if(!_0x362cb9)return _0x340ce4(_0x53cffc,_0x169d('0x16'));if(!_0x53ffb8)return _0x340ce4(_0x53cffc,_0x169d('0x3'));const _0x23260b=_0x340ce4(_0x53cffc,_0x169d('0x8'),_0x53ffb8);return _0x5d1438?_0x340ce4(_0x53cffc,_0x169d('0x1b'),[_0x3c4729+0x1,_0x53ffb8]):_0x23260b;}),_0x3fd3c3[_0x169d('0x5')]({'label':_0x340ce4(_0x53cffc,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0xe74e0e}),_0x2e3db8['set']({'label':_0x340ce4(_0x53cffc,_0x169d('0xa')),'tooltip':!0x0,'icon':_0x546986}),_0x3fd3c3[_0x169d('0x0')](_0x169d('0x11'))['to'](this,_0x169d('0x2')),_0x2e3db8[_0x169d('0x0')](_0x169d('0x11'))['to'](this,_0x169d('0xb')),_0x3fd3c3['on']('execute',()=>this['fire']('execute',_0x169d('0x7'))),_0x2e3db8['on'](_0x169d('0x1a'),()=>this[_0x169d('0x1')](_0x169d('0x1a'),_0x169d('0x6'))),this[_0x169d('0x15')]({'tag':_0x169d('0x13'),'attributes':{'class':['ck',_0x169d('0xe'),_0x169d('0x10')]},'children':[{'tag':_0x169d('0x17'),'attributes':{'class':[_0x169d('0x19')]},'children':[{'tag':'span','attributes':{'class':[_0x169d('0xf'),_0x5325bc['if'](_0x169d('0x9'),'ck-hidden',_0x201a0f=>!_0x201a0f)]},'children':[{'text':_0x5325bc['to']('isNavigationMode',_0x1ab9f6=>_0x1ab9f6?_0x340ce4(_0x53cffc,_0x169d('0x14'))+':\x20':_0x340ce4(_0x53cffc,'Total')+':\x20')}]},{'text':_0x5325bc['to']('_statusText')}]},new _0x3282b4(),{'tag':'div','attributes':{'class':[_0x169d('0x18')]},'children':[_0x3fd3c3,_0x2e3db8]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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);});}}
23
+ const _0x6113=['addClass','RevisionViewerLoadingOverlay','hide','change','ck-editor__editable__loading-overlay','editing','roots','show','view','document','editor'];(function(_0x41e67b,_0x6113af){const _0x183bef=function(_0x37746b){while(--_0x37746b){_0x41e67b['push'](_0x41e67b['shift']());}};_0x183bef(++_0x6113af);}(_0x6113,0x179));const _0x183b=function(_0x41e67b,_0x6113af){_0x41e67b=_0x41e67b-0x0;let _0x183bef=_0x6113[_0x41e67b];return _0x183bef;};import{Plugin as _0x549e34}from'ckeditor5/src/core';import'../../../theme/revisionviewerloadingoverlay.css';export default class oe extends _0x549e34{static get['pluginName'](){return _0x183b('0x9');}[_0x183b('0x4')](){const _0x11748c=this[_0x183b('0x7')][_0x183b('0x2')][_0x183b('0x5')];_0x11748c[_0x183b('0x0')](_0x560b3f=>{for(const _0x44f665 of _0x11748c[_0x183b('0x6')]['roots'])_0x560b3f[_0x183b('0x8')](_0x183b('0x1'),_0x44f665);});}[_0x183b('0xa')](){const _0x242a68=this[_0x183b('0x7')][_0x183b('0x2')][_0x183b('0x5')];_0x242a68[_0x183b('0x0')](_0x2ef8e8=>{for(const _0x17bb38 of _0x242a68[_0x183b('0x6')][_0x183b('0x3')])_0x2ef8e8['removeClass'](_0x183b('0x1'),_0x17bb38);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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']();});}}
23
+ const _0x58a2=['editor','execute','ck-revision-history-ui__back-to-editing','hide','config','isEnabled','forward','RevisionViewerUI','exitToEditing','change:isReady','get','init','changesNavigation','plugins','closeRevisionViewerCallback','numberOfChanges','isReady','requires','revisionHistory','show','add','isForwardNavigationEnabled','bind','set','showNextChange','commands','listenTo','restoreRevision','Restore\x20this\x20revision','componentFactory'];(function(_0x5487de,_0x58a205){const _0x36d4d4=function(_0x1276a5){while(--_0x1276a5){_0x5487de['push'](_0x5487de['shift']());}};_0x36d4d4(++_0x58a205);}(_0x58a2,0x1c7));const _0x36d4=function(_0x5487de,_0x58a205){_0x5487de=_0x5487de-0x0;let _0x36d4d4=_0x58a2[_0x5487de];return _0x36d4d4;};import{Plugin as _0x172507}from'ckeditor5/src/core';import{ButtonView as _0x19ca3e}from'ckeditor5/src/ui';import _0x18c36 from'./changesnavigationview';import _0x1dc249 from'./../../revisionviewer';import _0x428536 from'./revisionviewerloadingoverlay';import{getTranslation as _0x536c9b}from'../../utils/common-translations';import _0xe9f6a9 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class m extends _0x172507{static get['pluginName'](){return _0x36d4('0x2');}static get[_0x36d4('0xc')](){return[_0x1dc249,_0x428536];}[_0x36d4('0x6')](){const _0xd45861=this[_0x36d4('0x19')],_0x3da007=_0xd45861[_0x36d4('0x8')][_0x36d4('0x5')](_0x1dc249),_0x2d6c0a=_0xd45861[_0x36d4('0x8')][_0x36d4('0x5')](_0x428536);_0xd45861['ui']['componentFactory'][_0x36d4('0xf')](_0x36d4('0x3'),_0x2255bc=>{const _0x250a23=new _0x19ca3e(_0x2255bc);return _0x250a23[_0x36d4('0x12')]({'label':_0x536c9b(_0x2255bc,'Back\x20to\x20editing'),'icon':_0xe9f6a9,'withText':!0x0,'tooltip':!0x0,'class':_0x36d4('0x1b')}),this[_0x36d4('0x15')](_0x250a23,'execute',()=>{_0xd45861[_0x36d4('0x1d')]['get'](_0x36d4('0xd'))[_0x36d4('0x9')]();}),_0x250a23;}),_0xd45861['ui']['componentFactory'][_0x36d4('0xf')](_0x36d4('0x16'),_0x2d3e34=>{const _0x2b0383=new _0x19ca3e(_0x2d3e34);return _0x2b0383[_0x36d4('0x12')]({'label':_0x536c9b(_0x2d3e34,_0x36d4('0x17')),'withText':!0x0,'tooltip':!0x0}),_0x2b0383[_0x36d4('0x11')](_0x36d4('0x0'))['to'](_0xd45861['commands'][_0x36d4('0x5')]('restoreRevision')),this['listenTo'](_0x2b0383,_0x36d4('0x1a'),()=>_0xd45861['execute'](_0x36d4('0x16'))),_0x2b0383;}),_0xd45861['ui'][_0x36d4('0x18')]['add'](_0x36d4('0x7'),_0x4abaa=>{const _0x12d752=new _0x18c36(_0x4abaa),_0x2c3341=_0xd45861[_0x36d4('0x14')][_0x36d4('0x5')]('showPreviousChange'),_0x222e02=_0xd45861['commands'][_0x36d4('0x5')](_0x36d4('0x13'));return _0x12d752[_0x36d4('0x11')]('isBackwardNavigationEnabled')['to'](_0x2c3341,_0x36d4('0x0')),_0x12d752[_0x36d4('0x11')](_0x36d4('0x10'))['to'](_0x222e02,_0x36d4('0x0')),_0x12d752[_0x36d4('0x11')](_0x36d4('0xb'),'currentChangeNumber',_0x36d4('0xa'),'isNavigationMode')['to'](_0x3da007),this['listenTo'](_0x12d752,_0x36d4('0x1a'),(_0x200e2d,_0x36bf42)=>{_0xd45861[_0x36d4('0x1a')](_0x36d4('0x1')===_0x36bf42?_0x36d4('0x13'):'showPreviousChange');}),_0x12d752;}),_0x2d6c0a[_0x36d4('0xe')](),_0x3da007['on'](_0x36d4('0x4'),(_0x429283,_0x11e50b,_0x386c25)=>{_0x386c25?_0x2d6c0a[_0x36d4('0x1c')]():_0x2d6c0a['show']();});}}
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ export function getTranslation(_0x37b823,_0xc44b91,_0x3b7fc1){const t=_0x37b823['t'];switch(_0xc44b91){case'Revision\x20history':return t('Revision\x20history');case'Open\x20revision\x20history':return t('Open\x20revision\x20history');case'Restored':return t('Restored');case'Empty\x20document':return t('Empty\x20document');case'Initial\x20revision':return t('Initial\x20revision');case'Suggested\x20by':return t('Suggested\x20by');case'Added\x20by':return t('Added\x20by');case'Removed\x20by':return t('Removed\x20by');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Compare\x20against\x20selected':return t('Compare\x20against\x20selected');case'Name\x20this\x20revision':return t('Name\x20this\x20revision');case'Restore\x20this\x20revision':return t('Restore\x20this\x20revision');case'Back\x20to\x20editing':return t('Back\x20to\x20editing');case'Loading...':return t('Loading...');case'No\x20changes':return t('No\x20changes');case'NUMBER_OF_CHANGES':return t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0x3b7fc1);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3b7fc1);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision\x20(optional)':return t('Name\x20of\x20the\x20revision\x20(optional)');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});}}