@ckeditor/ckeditor5-revision-history 34.0.0 → 34.1.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 (41) 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/lv.js +1 -1
  6. package/build/translations/ur.js +1 -0
  7. package/build/translations/zh-cn.js +1 -1
  8. package/lang/translations/af.po +123 -0
  9. package/lang/translations/lv.po +27 -27
  10. package/lang/translations/ur.po +123 -0
  11. package/lang/translations/zh-cn.po +24 -24
  12. package/package.json +7 -7
  13. package/src/changeitem.js +1 -1
  14. package/src/editor/revisionviewereditor.js +1 -1
  15. package/src/editor/revisionviewereditorui.js +1 -1
  16. package/src/editor/revisionviewereditoruiview.js +1 -1
  17. package/src/revision.js +1 -1
  18. package/src/revisiondiff.js +1 -1
  19. package/src/revisionhistory.js +1 -1
  20. package/src/revisionsrepository.js +1 -1
  21. package/src/revisiontracker.js +1 -1
  22. package/src/revisionviewer.js +1 -1
  23. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  24. package/src/ui/revision/revisionauthorview.js +1 -1
  25. package/src/ui/revision/revisionnameview.js +1 -1
  26. package/src/ui/revision/revisionview.js +1 -1
  27. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  28. package/src/ui/revision/subrevisionview.js +1 -1
  29. package/src/ui/revision/utils.js +1 -1
  30. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  31. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  32. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  33. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  34. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  35. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  36. package/src/ui/revisionssidebar/utils.js +1 -1
  37. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  38. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  39. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  40. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  41. 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 _0xbf22=['action','Name\x20this\x20revision','Restore\x20this\x20revision','add','repository','map','_handleEditorDataReady','getEarlierVisibleRevision','Compare\x20against\x20selected','getRevision','listenTo','availableRevisionActions','_handleRevisionSelected','getLaterVisibleRevision','remove','compareAgainstSelected','isVisible','string','revisionHistory.revisionActions','setName','_revisionViewer','assign','plugins','RevisionsSidebar','revisionSetName','_handleRevisionSetName','_handleDiffChange','isEnabled','timePeriodViews','revisionViews','highlightRevisions','get','diff','destroy','revisionHistory.viewerSidebarContainer','requires','_revisionsRepository','getRevisionsInDiff','nameRevision','select','appendChild','element','isSelected','_createRevisionActions','length','pluginName','config','ready','editor','selectRevision','newRevisionId','change:diff','getIndex','_sidebarView','bind','init','_revisions','data','restoreRevisionCallback','fieldView','revisionHistory','defaultRevisionActions','focus','compare','render','isReady'];(function(_0x3bf460,_0xbf22d9){const _0xc42cc4=function(_0x3507b0){while(--_0x3507b0){_0x3bf460['push'](_0x3bf460['shift']());}};_0xc42cc4(++_0xbf22d9);}(_0xbf22,0x160));const _0xc42c=function(_0x3bf460,_0xbf22d9){_0x3bf460=_0x3bf460-0x0;let _0xc42cc4=_0xbf22[_0x3bf460];return _0xc42cc4;};import{Plugin as _0x132311}from'ckeditor5/src/core';import _0x5cbe97 from'./revisionssidebarview';import _0x339c50 from'../../revisionviewer';export default class w extends _0x132311{static get[_0xc42c('0x17')](){return _0xc42c('0x1');}static get[_0xc42c('0xd')](){return[_0x339c50];}constructor(_0x5bcc0e){super(_0x5bcc0e),this[_0xc42c('0x40')]=_0x5bcc0e[_0xc42c('0x0')]['get'](_0x339c50),this[_0xc42c('0xe')]=this['_revisionViewer'][_0xc42c('0x30')],this[_0xc42c('0x1f')]=null;}[_0xc42c('0x21')](){const _0x1185a2=this['_revisionsRepository'][_0xc42c('0x22')],_0x33e5af=this[_0xc42c('0x15')](),_0x4fd24f=this[_0xc42c('0x1a')]['config']['get'](_0xc42c('0xc'));this[_0xc42c('0x1f')]=new _0x5cbe97(this[_0xc42c('0x1a')]['locale'],_0x1185a2,_0x33e5af),this[_0xc42c('0x1f')]['on']('revisionSelected',this[_0xc42c('0x38')][_0xc42c('0x20')](this)),this[_0xc42c('0x1f')]['on'](_0xc42c('0x2'),this[_0xc42c('0x3')][_0xc42c('0x20')](this)),this[_0xc42c('0x1f')][_0xc42c('0x20')](_0xc42c('0x5'))['to'](this[_0xc42c('0x40')]),this[_0xc42c('0x1f')][_0xc42c('0x6')]['on'](_0xc42c('0x2f'),(_0x32bc66,_0x209992)=>{_0x209992[_0xc42c('0x7')]['on'](_0xc42c('0x2f'),(_0x2547a1,_0x22d44b)=>{_0x22d44b[_0xc42c('0x20')](_0xc42c('0x5'),_0xc42c('0x2b'))['to'](this[_0xc42c('0x40')]);});}),this['_sidebarView'][_0xc42c('0x2a')](),this['listenTo'](this[_0xc42c('0x1a')][_0xc42c('0x23')],_0xc42c('0x19'),this[_0xc42c('0x32')][_0xc42c('0x20')](this)),this[_0xc42c('0x36')](this[_0xc42c('0x40')],_0xc42c('0x1d'),this[_0xc42c('0x4')][_0xc42c('0x20')](this)),_0x4fd24f[_0xc42c('0x12')](this['_sidebarView'][_0xc42c('0x13')]);}[_0xc42c('0xb')](){this['_sidebarView']['element'][_0xc42c('0x3a')](),this['_sidebarView'][_0xc42c('0xb')]();}['_handleEditorDataReady'](){const _0x296cde=this[_0xc42c('0xe')][_0xc42c('0x35')](0x0);if(_0x296cde){const _0x3c79ec=this[_0xc42c('0xe')][_0xc42c('0x33')](_0x296cde['id']);this[_0xc42c('0x40')][_0xc42c('0x29')](_0x296cde,_0x3c79ec);}}[_0xc42c('0x38')](_0x4043c6,_0x52820e){const _0x3dd651=this[_0xc42c('0xe')][_0xc42c('0x35')](_0x52820e['id']),_0x4eddc4=this['_revisionsRepository'][_0xc42c('0x33')](_0x3dd651['id']);this[_0xc42c('0x40')]['compare'](_0x3dd651,_0x4eddc4);}[_0xc42c('0x3')](_0x50df6c,_0x305182){this[_0xc42c('0xe')][_0xc42c('0x35')](_0x305182['id'])[_0xc42c('0x3f')](_0x305182['name']);}[_0xc42c('0x4')](_0x106939,_0x628487,_0x4495a6){const _0x1a7e7f=this[_0xc42c('0xe')][_0xc42c('0xf')](_0x4495a6);_0x1a7e7f[_0xc42c('0x16')]>0x2?(this[_0xc42c('0x1f')][_0xc42c('0x8')](_0x1a7e7f),this[_0xc42c('0x1f')]['selectRevision'](null)):(this['_sidebarView'][_0xc42c('0x8')]([]),this[_0xc42c('0x1f')][_0xc42c('0x1b')](_0x1a7e7f[0x0]));}[_0xc42c('0x15')](){const _0x4a0726=this[_0xc42c('0x1a')],_0x32301a=w[_0xc42c('0x37')],_0x293169=_0x4a0726[_0xc42c('0x18')][_0xc42c('0x9')](_0xc42c('0x3e'))||w[_0xc42c('0x27')];if(_0x293169[_0xc42c('0x16')])return _0x293169[_0xc42c('0x31')](_0x2cbbd4=>{const _0x35060e=_0xc42c('0x3d')==typeof _0x2cbbd4?Object[_0xc42c('0x41')]({},_0x32301a[_0x2cbbd4]):_0x2cbbd4;return _0x35060e[_0xc42c('0x2c')]=_0x35060e[_0xc42c('0x2c')][_0xc42c('0x20')](this,_0x4a0726),_0x35060e['isVisible']&&(_0x35060e[_0xc42c('0x3c')]=_0x35060e['isVisible'][_0xc42c('0x20')](this,_0x4a0726)),_0x35060e;});}}w['availableRevisionActions']={'compareAgainstSelected':{'name':_0xc42c('0x34'),'action':({plugins:_0x360e06},_0x311d57)=>{const _0x2d98a=_0x360e06[_0xc42c('0x9')](_0x339c50),_0xcd1e87=_0x2d98a[_0xc42c('0x30')];let _0x2f2520=_0x2d98a[_0xc42c('0xa')][_0xc42c('0x1c')],_0x2d9c7e=_0x311d57['id'];_0xcd1e87[_0xc42c('0x1e')](_0x2f2520)>_0xcd1e87[_0xc42c('0x1e')](_0x2d9c7e)&&([_0x2f2520,_0x2d9c7e]=[_0x2d9c7e,_0x2f2520]),_0x2d98a['compare'](_0x2f2520,_0x2d9c7e);},'isVisible':({plugins:_0x232f07},_0x21a900)=>{const _0x5b2d21=_0x232f07[_0xc42c('0x9')](_0x339c50);return!(_0x5b2d21[_0xc42c('0x30')]['getRevisionsInDiff'](_0x5b2d21[_0xc42c('0xa')])[_0xc42c('0x16')]>0x2)&&!_0x21a900[_0xc42c('0x14')];}},'restoreRevision':{'name':_0xc42c('0x2e'),'action':(_0x4c78cf,{id:_0x2b19c7})=>{_0x4c78cf[_0xc42c('0x18')]['get'](_0xc42c('0x26'))[_0xc42c('0x24')](_0x2b19c7);},'isVisible':({plugins:_0x2275c5},_0x3613cb)=>!!_0x2275c5[_0xc42c('0x9')](_0x339c50)[_0xc42c('0x30')][_0xc42c('0x39')](_0x3613cb['id'])},'nameRevision':{'name':_0xc42c('0x2d'),'action':({plugins:_0x53da4d},{id:_0x58edb3,revisionNameView:_0x5f5cb2})=>{const _0x4fe35f=_0x53da4d[_0xc42c('0x9')](_0x339c50),_0x1764f6=_0x4fe35f[_0xc42c('0x30')][_0xc42c('0x33')](_0x58edb3);_0x4fe35f[_0xc42c('0x29')](_0x58edb3,_0x1764f6),_0x5f5cb2[_0xc42c('0x28')](),_0x5f5cb2[_0xc42c('0x25')][_0xc42c('0x11')]();}}},w[_0xc42c('0x27')]=[_0xc42c('0x3b'),'restoreRevision',_0xc42c('0x10')];
@@ -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 _0x18f6=['div','Revision\x20history','setTemplate','ck-revision-history-sidebar__header__label','ck-reset_all'];(function(_0xd5744,_0x18f66c){const _0x147a3a=function(_0x186518){while(--_0x186518){_0xd5744['push'](_0xd5744['shift']());}};_0x147a3a(++_0x18f66c);}(_0x18f6,0x67));const _0x147a=function(_0xd5744,_0x18f66c){_0xd5744=_0xd5744-0x0;let _0x147a3a=_0x18f6[_0xd5744];return _0x147a3a;};import{View as _0x495b6b,IconView as _0x4848d8}from'ckeditor5/src/ui';import{getTranslation as _0x4684c5}from'../../utils/common-translations';import _0xbf52c8 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class cs extends _0x495b6b{constructor(_0x1fe872){super(_0x1fe872);const _0x5d1363=new _0x4848d8(_0x1fe872);_0x5d1363['content']=_0xbf52c8,this[_0x147a('0x4')]({'tag':_0x147a('0x2'),'attributes':{'class':['ck',_0x147a('0x1'),'ck-revision-history-sidebar__header']},'children':[_0x5d1363,{'tag':'span','attributes':{'class':['ck',_0x147a('0x0')]},'children':[_0x4684c5(_0x1fe872,_0x147a('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 _0x4e33=['addRevision','find','add','span','delegate','localizedPeriodName','removeRevision','ck-revision-history-sidebar__time-period__revisions','uiLanguage','startDate','remove','select','div','_revisionActions','setName','ck-revision-history-sidebar__time-period__label','revisionViews','createCollection'];(function(_0x555cf1,_0x4e3347){const _0x3b2678=function(_0x3684e9){while(--_0x3684e9){_0x555cf1['push'](_0x555cf1['shift']());}};_0x3b2678(++_0x4e3347);}(_0x4e33,0x1ca));const _0x3b26=function(_0x555cf1,_0x4e3347){_0x555cf1=_0x555cf1-0x0;let _0x3b2678=_0x4e33[_0x555cf1];return _0x3b2678;};import{View as _0x4134d8}from'ckeditor5/src/ui';import _0x3396a8 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x8b0296}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x4134d8{constructor(_0xa6cd5b,_0x2cb752,_0xb8d22f){super(_0xa6cd5b);const _0x4c420c=_0x8b0296(_0x2cb752,this['locale'][_0x3b26('0x0')])[_0x3b26('0xf')];this[_0x3b26('0x1')]=_0x2cb752,this[_0x3b26('0x5')]=_0xb8d22f,this[_0x3b26('0x8')]=this[_0x3b26('0x9')](),this[_0x3b26('0x8')][_0x3b26('0xe')](_0x3b26('0x3'))['to'](this),this['revisionViews'][_0x3b26('0xe')](_0x3b26('0x6'))['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':_0x3b26('0xd'),'attributes':{'class':['ck',_0x3b26('0x7')]},'children':[{'text':_0x4c420c}]},{'tag':_0x3b26('0x4'),'attributes':{'class':['ck',_0x3b26('0x11')]},'children':this[_0x3b26('0x8')]}]});}[_0x3b26('0xa')](_0x577c84){const _0x490bab=new _0x3396a8(this['locale'],_0x577c84,this[_0x3b26('0x5')]);this['revisionViews'][_0x3b26('0xc')](_0x490bab);}[_0x3b26('0x10')](_0xd3e8f){const _0x6f2c97=this['revisionViews'][_0x3b26('0xb')](_0x239836=>_0x239836['id']===_0xd3e8f['id']);this[_0x3b26('0x8')][_0x3b26('0x2')](_0x6f2c97);}}
@@ -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 _0x4c9d=['unhighlight','ck-revision-history-sidebar','some','revisionViews','getTime','_revisions','remove','bindTemplate','select','find','delegate','removeRevision','flat','ck-disabled','createCollection','add','locale','ck-revision-history-sidebar__timeline','highlight','_addRevision','timePeriodViews','render','_removeRevision','set','fire','setName','startDate','ck-rounded-corners','addRevision','revisionSetName','isEnabled','map','_revisionActions','selectRevision','_getTimePeriodViewByStartDate','get'];(function(_0x17abf8,_0x4c9dc6){const _0x2a4b98=function(_0xa9a417){while(--_0xa9a417){_0x17abf8['push'](_0x17abf8['shift']());}};_0x2a4b98(++_0x4c9dc6);}(_0x4c9d,0xc7));const _0x2a4b=function(_0x17abf8,_0x4c9dc6){_0x17abf8=_0x17abf8-0x0;let _0x2a4b98=_0x4c9d[_0x17abf8];return _0x2a4b98;};import{View as _0x337a7b}from'ckeditor5/src/ui';import _0x33da07 from'./revisionssidebartimeperiodview';import _0x5cc5f9 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x2de010}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x337a7b{constructor(_0x22cc06,_0x77d616,_0x595056){super(_0x22cc06);const _0x17c265=this[_0x2a4b('0x18')];this['timePeriodViews']=this[_0x2a4b('0x1f')](),this[_0x2a4b('0x1')][_0x2a4b('0x1b')](_0x2a4b('0x19'))['to'](this),this['timePeriodViews'][_0x2a4b('0x1b')](_0x2a4b('0x6'))['to'](this),this[_0x2a4b('0x16')]=_0x77d616,this['_revisionActions']=_0x595056,this['on'](_0x2a4b('0x19'),(_0x57eacb,_0x1d0f56)=>{this[_0x2a4b('0x5')]('revisionSelected',_0x1d0f56);}),this['on'](_0x2a4b('0x6'),(_0x2d32f5,_0x385367)=>{this[_0x2a4b('0x5')](_0x2a4b('0xa'),_0x385367);}),this[_0x2a4b('0x4')]('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset',_0x2a4b('0x8'),_0x2a4b('0x12')]},'children':[new _0x5cc5f9(_0x22cc06),{'tag':'div','attributes':{'class':['ck',_0x2a4b('0x22'),_0x17c265['if'](_0x2a4b('0xb'),_0x2a4b('0x1e'),_0x465d7c=>!_0x465d7c)]},'children':this['timePeriodViews']}]});}['render'](){super[_0x2a4b('0x2')]();for(const _0x3d5fdd of this[_0x2a4b('0x16')])this[_0x2a4b('0x0')](_0x3d5fdd);this[_0x2a4b('0x16')]['on'](_0x2a4b('0x20'),(_0x14aae7,_0xa06356)=>{this[_0x2a4b('0x0')](_0xa06356);}),this['_revisions']['on'](_0x2a4b('0x17'),(_0x5af3c7,_0x19c757)=>{this[_0x2a4b('0x3')](_0x19c757);});}get[_0x2a4b('0x14')](){return this[_0x2a4b('0x1')][_0x2a4b('0xc')](_0x1f69d3=>_0x1f69d3[_0x2a4b('0x14')]['map'](_0x7e65a7=>_0x7e65a7))[_0x2a4b('0x1d')]();}[_0x2a4b('0xe')](_0x5398d1){for(const _0x5affc3 of this[_0x2a4b('0x14')])_0x5398d1&&_0x5398d1['id']===_0x5affc3['id']?_0x5affc3[_0x2a4b('0x19')]():_0x5affc3['deselect']();}['highlightRevisions'](_0x4c1763){for(const _0x384fe9 of this[_0x2a4b('0x14')])_0x4c1763[_0x2a4b('0x13')](({id:_0x2a89e7})=>_0x2a89e7===_0x384fe9['id'])?_0x384fe9[_0x2a4b('0x23')]():_0x384fe9[_0x2a4b('0x11')]();}[_0x2a4b('0x0')](_0x24a330){const _0x1816da=_0x2de010(_0x24a330['createdAt'])[_0x2a4b('0x7')];let _0x31bf23=this[_0x2a4b('0x1')][_0x2a4b('0x10')](0x0);_0x31bf23&&_0x31bf23[_0x2a4b('0x7')][_0x2a4b('0x15')]()===_0x1816da[_0x2a4b('0x15')]()||(_0x31bf23=new _0x33da07(this[_0x2a4b('0x21')],_0x1816da,this[_0x2a4b('0xd')]),this['timePeriodViews'][_0x2a4b('0x20')](_0x31bf23)),_0x31bf23[_0x2a4b('0x9')](_0x24a330);}[_0x2a4b('0x3')](_0x1c8c58){const _0x4db51f=_0x2de010(_0x1c8c58['createdAt'])[_0x2a4b('0x7')];this['_getTimePeriodViewByStartDate'](_0x4db51f)[_0x2a4b('0x1c')](_0x1c8c58);}[_0x2a4b('0xf')](_0x1cfae3){return this[_0x2a4b('0x1')][_0x2a4b('0x1a')](_0x251bab=>_0x251bab[_0x2a4b('0x7')]['getTime']()===_0x1cfae3[_0x2a4b('0x15')]());}}
@@ -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 _0x3987=['week','minus','setLocale','year','hasSame','day','startOf','toRelativeCalendar','monthLong','local','weekdayLong','toJSDate','month'];(function(_0x3357db,_0x3987cd){const _0x38b9f2=function(_0x166f20){while(--_0x166f20){_0x3357db['push'](_0x3357db['shift']());}};_0x38b9f2(++_0x3987cd);}(_0x3987,0x13b));const _0x38b9=function(_0x3357db,_0x3987cd){_0x3357db=_0x3357db-0x0;let _0x38b9f2=_0x3987[_0x3357db];return _0x38b9f2;};import{DateTime as _0x36afc5}from'luxon';export function getDateTimePeriodInfo(_0x33830e,_0xdb79c9){_0x33830e=_0x36afc5['fromJSDate'](_0x33830e)[_0x38b9('0xc')](_0xdb79c9);const _0x33aa52=_0x36afc5[_0x38b9('0x6')](),_0x8be959=_0x33aa52[_0x38b9('0xb')]({'days':0x1})[_0x38b9('0x3')]('day');let _0x1c7c29,_0x4bfecb;return _0x33830e['hasSame'](_0x33aa52,_0x38b9('0x2'))?(_0x1c7c29=_0x33830e[_0x38b9('0x3')](_0x38b9('0x2'))['toJSDate'](),_0x4bfecb=_0x33830e[_0x38b9('0x4')]()):_0x33830e['hasSame'](_0x8be959,_0x38b9('0x2'))?(_0x1c7c29=_0x8be959[_0x38b9('0x8')](),_0x4bfecb=_0x33830e['toRelativeCalendar']()):_0x33830e[_0x38b9('0x1')](_0x33aa52,_0x38b9('0xa'))?(_0x1c7c29=_0x33830e[_0x38b9('0x3')]('week')[_0x38b9('0x8')](),_0x4bfecb=_0x33830e[_0x38b9('0x7')]):_0x33830e['hasSame'](_0x33aa52,_0x38b9('0x0'))?(_0x1c7c29=_0x33830e[_0x38b9('0x3')](_0x38b9('0x9'))[_0x38b9('0x8')](),_0x4bfecb=_0x33830e[_0x38b9('0x5')]):(_0x1c7c29=_0x33830e[_0x38b9('0x3')]('year')[_0x38b9('0x8')](),_0x4bfecb=_0x33830e[_0x38b9('0x0')]),{'startDate':_0x1c7c29,'localizedPeriodName':_0x4bfecb};}
@@ -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 _0x31b1=['setTemplate','isSuggestion','data','ck-revision-change__label','ck-annotation','ck-revision-change__','element','Removed\x20by','focus','_model','author','span','Suggested\x20by','type','bindTemplate','ck-revision-change','set','add'];(function(_0x1cec93,_0x31b1cc){const _0x138f57=function(_0x44d188){while(--_0x44d188){_0x1cec93['push'](_0x1cec93['shift']());}};_0x138f57(++_0x31b1cc);}(_0x31b1,0xdd));const _0x138f=function(_0x1cec93,_0x31b1cc){_0x1cec93=_0x1cec93-0x0;let _0x138f57=_0x31b1[_0x1cec93];return _0x138f57;};import{View as _0x3f8c60}from'ckeditor5/src/ui';import{getTranslation as _0x254182}from'../../utils/common-translations';export default class G extends _0x3f8c60{constructor(_0x465b3f,_0x4089f3){super(_0x465b3f),this[_0x138f('0x4')]=_0x4089f3;const _0x169f65=this[_0x138f('0x9')],_0x53889a=_0x254182(_0x465b3f,_0x4089f3[_0x138f('0xf')][_0x138f('0xe')]?_0x138f('0x7'):_0x138f('0xc')==_0x4089f3[_0x138f('0x8')]?'Added\x20by':_0x138f('0x2'));this[_0x138f('0xb')](_0x138f('0x8'),_0x4089f3[_0x138f('0x8')]),this[_0x138f('0xd')]({'tag':'div','attributes':{'class':[_0x138f('0x11'),_0x138f('0xa'),_0x169f65['to'](_0x138f('0x8'),_0x59959d=>_0x138f('0x0')+_0x59959d)],'tabindex':-0x1},'children':[{'tag':_0x138f('0x6'),'children':[{'tag':_0x138f('0x6'),'attributes':{'class':[_0x138f('0x10')]},'children':[{'text':_0x53889a}]},{'text':'\x20'+_0x4089f3[_0x138f('0x5')]['name']}]}]});}[_0x138f('0x3')](){this[_0x138f('0x1')][_0x138f('0x3')]();}}
@@ -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 _0x1f04=['currentChangeNumber','backward','forward','isBackwardNavigationEnabled','setTemplate','fire','span','ck-revision-history-ui','bind','ck-hidden','isReady','Total','numberOfChanges','_statusText','execute','div','X_OF_Y_CHANGES','ck-revision-history-ui__changes-navigation','bindTemplate','Show\x20previous\x20change','No\x20changes','set','isEnabled','Show\x20next\x20change','_isStatusLabelVisible','isNavigationMode','ck-revision-history-ui__changes-navigation__navigation'];(function(_0xa3c1eb,_0x1f0491){const _0x220469=function(_0x1831c9){while(--_0x1831c9){_0xa3c1eb['push'](_0xa3c1eb['shift']());}};_0x220469(++_0x1f0491);}(_0x1f04,0x8e));const _0x2204=function(_0xa3c1eb,_0x1f0491){_0xa3c1eb=_0xa3c1eb-0x0;let _0x220469=_0x1f04[_0xa3c1eb];return _0x220469;};import{View as _0x165b51,ButtonView as _0x5da276,ToolbarSeparatorView as _0x2b4d0a}from'ckeditor5/src/ui';import{getTranslation as _0xdbfe88}from'../../utils/common-translations';import _0x241840 from'../../../theme/icons/arrow-up.svg';import _0x2b81d7 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x165b51{constructor(_0x4867e0){super(_0x4867e0);const _0x9d9239=this[_0x2204('0xb')],_0x419a55=new _0x5da276(_0x4867e0),_0x403317=new _0x5da276(_0x4867e0);this['set'](_0x2204('0x12'),!0x1),this[_0x2204('0xe')]('isReady',!0x1),this[_0x2204('0xe')]('currentChangeNumber',0x0),this['set'](_0x2204('0x5'),0x0),this['set']('isForwardNavigationEnabled',!0x1),this[_0x2204('0xe')](_0x2204('0x17'),!0x1),this[_0x2204('0x1')](_0x2204('0x11'))['to'](this,_0x2204('0x3'),this,_0x2204('0x5'),(_0x3ad1d9,_0xa1f81)=>_0x3ad1d9&&_0xa1f81>0x0),this[_0x2204('0x1')](_0x2204('0x6'))['to'](this,_0x2204('0x3'),this,_0x2204('0x14'),this,_0x2204('0x5'),this,'isNavigationMode',(_0x1b5798,_0x3f9b82,_0x144fd7,_0x5dc6cc)=>{if(!_0x1b5798)return _0xdbfe88(_0x4867e0,'Loading...');if(!_0x144fd7)return _0xdbfe88(_0x4867e0,_0x2204('0xd'));const _0x5b9071=_0xdbfe88(_0x4867e0,'NUMBER_OF_CHANGES',_0x144fd7);return _0x5dc6cc?_0xdbfe88(_0x4867e0,_0x2204('0x9'),[_0x3f9b82+0x1,_0x144fd7]):_0x5b9071;}),_0x419a55[_0x2204('0xe')]({'label':_0xdbfe88(_0x4867e0,_0x2204('0xc')),'tooltip':!0x0,'icon':_0x241840}),_0x403317[_0x2204('0xe')]({'label':_0xdbfe88(_0x4867e0,_0x2204('0x10')),'tooltip':!0x0,'icon':_0x2b81d7}),_0x419a55[_0x2204('0x1')](_0x2204('0xf'))['to'](this,_0x2204('0x17')),_0x403317[_0x2204('0x1')]('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x419a55['on'](_0x2204('0x7'),()=>this[_0x2204('0x19')](_0x2204('0x7'),_0x2204('0x15'))),_0x403317['on'](_0x2204('0x7'),()=>this[_0x2204('0x19')](_0x2204('0x7'),_0x2204('0x16'))),this[_0x2204('0x18')]({'tag':_0x2204('0x8'),'attributes':{'class':['ck',_0x2204('0x0'),_0x2204('0xa')]},'children':[{'tag':_0x2204('0x1a'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':_0x2204('0x1a'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x9d9239['if']('_isStatusLabelVisible',_0x2204('0x2'),_0x1d2d48=>!_0x1d2d48)]},'children':[{'text':_0x9d9239['to'](_0x2204('0x12'),_0x8eb892=>_0x8eb892?_0xdbfe88(_0x4867e0,'EDIT_X_OF_Y_REVISIONS')+':\x20':_0xdbfe88(_0x4867e0,_0x2204('0x4'))+':\x20')}]},{'text':_0x9d9239['to']('_statusText')}]},new _0x2b4d0a(),{'tag':_0x2204('0x8'),'attributes':{'class':[_0x2204('0x13')]},'children':[_0x419a55,_0x403317]}]});}}
@@ -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 _0x5784=['document','roots','hide','change','removeClass','show','addClass','editor','ck-editor__editable__loading-overlay','RevisionViewerLoadingOverlay','editing','view'];(function(_0x4614d7,_0x578457){const _0x2f8e57=function(_0x3f0b8e){while(--_0x3f0b8e){_0x4614d7['push'](_0x4614d7['shift']());}};_0x2f8e57(++_0x578457);}(_0x5784,0x18a));const _0x2f8e=function(_0x4614d7,_0x578457){_0x4614d7=_0x4614d7-0x0;let _0x2f8e57=_0x5784[_0x4614d7];return _0x2f8e57;};import{Plugin as _0x20430e}from'ckeditor5/src/core';import'../../../theme/revisionviewerloadingoverlay.css';export default class ee extends _0x20430e{static get['pluginName'](){return _0x2f8e('0xb');}[_0x2f8e('0x7')](){const _0x39ece3=this['editor'][_0x2f8e('0x0')]['view'];_0x39ece3['change'](_0x4a5193=>{for(const _0x3133cd of _0x39ece3[_0x2f8e('0x2')][_0x2f8e('0x3')])_0x4a5193[_0x2f8e('0x8')](_0x2f8e('0xa'),_0x3133cd);});}[_0x2f8e('0x4')](){const _0x1b46b9=this[_0x2f8e('0x9')][_0x2f8e('0x0')][_0x2f8e('0x1')];_0x1b46b9[_0x2f8e('0x5')](_0x1adb26=>{for(const _0x179ce6 of _0x1b46b9[_0x2f8e('0x2')][_0x2f8e('0x3')])_0x1adb26[_0x2f8e('0x6')](_0x2f8e('0xa'),_0x179ce6);});}}
@@ -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 _0xccf2=['isReady','add','requires','hide','restoreRevision','show','showPreviousChange','bind','execute','isEnabled','commands','closeRevisionViewerCallback','Restore\x20this\x20revision','currentChangeNumber','pluginName','set','showNextChange','revisionHistory','isBackwardNavigationEnabled','numberOfChanges','isNavigationMode','ck-revision-history-ui__back-to-editing','listenTo','forward','exitToEditing','plugins','init','componentFactory','config','get','changesNavigation','RevisionViewerUI','editor'];(function(_0x4d6742,_0xccf279){const _0x2d91f7=function(_0x441421){while(--_0x441421){_0x4d6742['push'](_0x4d6742['shift']());}};_0x2d91f7(++_0xccf279);}(_0xccf2,0x1a9));const _0x2d91=function(_0x4d6742,_0xccf279){_0x4d6742=_0x4d6742-0x0;let _0x2d91f7=_0xccf2[_0x4d6742];return _0x2d91f7;};import{Plugin as _0x11e488}from'ckeditor5/src/core';import{ButtonView as _0x18cca8}from'ckeditor5/src/ui';import _0x394cc7 from'./changesnavigationview';import _0x12f414 from'./../../revisionviewer';import _0x31786a from'./revisionviewerloadingoverlay';import{getTranslation as _0x38855e}from'../../utils/common-translations';import _0xedc1b6 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x11e488{static get[_0x2d91('0x12')](){return _0x2d91('0x2');}static get[_0x2d91('0x6')](){return[_0x12f414,_0x31786a];}[_0x2d91('0x1e')](){const _0x458160=this[_0x2d91('0x3')],_0x4de31c=_0x458160[_0x2d91('0x1d')][_0x2d91('0x0')](_0x12f414),_0x1f60b8=_0x458160[_0x2d91('0x1d')][_0x2d91('0x0')](_0x31786a);_0x458160['ui']['componentFactory'][_0x2d91('0x5')](_0x2d91('0x1c'),_0x19375a=>{const _0x395f39=new _0x18cca8(_0x19375a);return _0x395f39[_0x2d91('0x13')]({'label':_0x38855e(_0x19375a,'Back\x20to\x20editing'),'icon':_0xedc1b6,'withText':!0x0,'tooltip':!0x0,'class':_0x2d91('0x19')}),this[_0x2d91('0x1a')](_0x395f39,_0x2d91('0xc'),()=>{_0x458160[_0x2d91('0x20')]['get'](_0x2d91('0x15'))[_0x2d91('0xf')]();}),_0x395f39;}),_0x458160['ui']['componentFactory'][_0x2d91('0x5')](_0x2d91('0x8'),_0x4c357a=>{const _0x48cbe0=new _0x18cca8(_0x4c357a);return _0x48cbe0['set']({'label':_0x38855e(_0x4c357a,_0x2d91('0x10')),'withText':!0x0,'tooltip':!0x0}),_0x48cbe0[_0x2d91('0xb')](_0x2d91('0xd'))['to'](_0x458160[_0x2d91('0xe')][_0x2d91('0x0')](_0x2d91('0x8'))),this[_0x2d91('0x1a')](_0x48cbe0,_0x2d91('0xc'),()=>_0x458160[_0x2d91('0xc')](_0x2d91('0x8'))),_0x48cbe0;}),_0x458160['ui'][_0x2d91('0x1f')][_0x2d91('0x5')](_0x2d91('0x1'),_0x37d112=>{const _0x838921=new _0x394cc7(_0x37d112),_0x2ec15e=_0x458160[_0x2d91('0xe')][_0x2d91('0x0')](_0x2d91('0xa')),_0x531302=_0x458160['commands'][_0x2d91('0x0')](_0x2d91('0x14'));return _0x838921['bind'](_0x2d91('0x16'))['to'](_0x2ec15e,_0x2d91('0xd')),_0x838921[_0x2d91('0xb')]('isForwardNavigationEnabled')['to'](_0x531302,_0x2d91('0xd')),_0x838921[_0x2d91('0xb')](_0x2d91('0x4'),_0x2d91('0x11'),_0x2d91('0x17'),_0x2d91('0x18'))['to'](_0x4de31c),this['listenTo'](_0x838921,_0x2d91('0xc'),(_0x430665,_0x519080)=>{_0x458160['execute'](_0x2d91('0x1b')===_0x519080?'showNextChange':_0x2d91('0xa'));}),_0x838921;}),_0x1f60b8['show'](),_0x4de31c['on']('change:isReady',(_0x3a6bde,_0x34afa1,_0x455dc9)=>{_0x455dc9?_0x1f60b8[_0x2d91('0x7')]():_0x1f60b8[_0x2d91('0x9')]();});}}
@@ -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(_0x376483,_0x37e706,_0x5a6500){const t=_0x376483['t'];switch(_0x37e706){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'},_0x5a6500);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5a6500);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'});}}