@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230721.0 → 0.0.0-nightly-20230722.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +6 -6
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1b89=['children','length','cancel','render','showRevisionViewerCallback','add','submit','componentFactory','plugins','Save\x20current\x20revision','execute','saveRevision','RevisionTracker','RevisionHistoryUI','saveButtonView','bind','pluginName','Open\x20revision\x20history','focus','buttonView','change:isOpen','panelView','addMany','isReadOnly','isReady','isEnabled','items','init','config','revisionName','set','remove','get'];(function(_0x322efe,_0x1b8954){const _0x464d23=function(_0x29b0db){while(--_0x29b0db){_0x322efe['push'](_0x322efe['shift']());}};_0x464d23(++_0x1b8954);}(_0x1b89,0x136));const _0x464d=function(_0x322efe,_0x1b8954){_0x322efe=_0x322efe-0x0;let _0x464d23=_0x1b89[_0x322efe];return _0x464d23;};import{Plugin as _0x55b7dd}from'ckeditor5/src/core';import{ListView as _0x48f907,ListItemView as _0x3ae714,ButtonView as _0x24c162,createDropdown as _0x328a07}from'ckeditor5/src/ui';import _0x47c6fa from'../../revisiontracker';import _0x395538 from'./revisionhistorysaverevisionformview';import _0xb9dd4f from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x7e2f38}from'../../utils/common-translations';export default class u extends _0x55b7dd{static get[_0x464d('0x3')](){return _0x464d('0x0');}static get['requires'](){return[_0x47c6fa];}[_0x464d('0xe')](){const _0x5026cd=this['editor'],_0x4c0944=_0x5026cd['plugins'][_0x464d('0x13')](_0x464d('0x20'));_0x5026cd['ui'][_0x464d('0x1b')]['add']('revisionHistory',_0x3636ee=>{const _0xe4a131=_0x328a07(_0x3636ee),_0x436316=_0xe4a131[_0x464d('0x8')][_0x464d('0x14')],_0x1dd1e8=new _0x48f907(_0x3636ee),_0x2398cf=new _0x3ae714(_0x3636ee),_0x1f4fad=new _0x24c162(_0x3636ee),_0x5e292d=new _0x3ae714(_0x3636ee),_0x3c43d7=new _0x24c162(_0x3636ee),_0x355541=new _0x395538(_0x3636ee);function _0x13da90(){_0x436316[_0x464d('0x15')]&&_0x436316['remove'](0x0),_0x436316[_0x464d('0x19')](_0x1dd1e8);}function _0xc431d1(){_0xe4a131['isOpen']=!0x1,_0x5026cd['editing']['view'][_0x464d('0x5')]();}return _0xe4a131[_0x464d('0x2')](_0x464d('0xc'))['to'](_0x4c0944,'isReady',_0x4c0944,'isEnabled',_0x5026cd,_0x464d('0xa'),(_0x3d8d7d,_0x410d56,_0x3b50b6)=>_0x3d8d7d&&_0x410d56&&!_0x3b50b6),_0xe4a131[_0x464d('0x6')]['set']({'icon':_0xb9dd4f,'label':_0x7e2f38(_0x3636ee,'Revision\x20history'),'tooltip':!0x0}),_0x1f4fad[_0x464d('0x11')]({'label':_0x7e2f38(_0x3636ee,_0x464d('0x1d')),'withText':!0x0}),_0x1f4fad[_0x464d('0x2')]('isEnabled')['to'](_0x4c0944,_0x464d('0xb'),_0x4c0944,_0x464d('0xc'),_0x5026cd,_0x464d('0xa'),(_0x38ef5c,_0x1a8924,_0x27c45f)=>_0x38ef5c&&_0x1a8924&&!_0x27c45f),_0x1f4fad['on'](_0x464d('0x1e'),()=>function(){_0x436316[_0x464d('0x15')]&&_0x436316[_0x464d('0x12')](0x0),(_0x355541['reset'](),_0x436316[_0x464d('0x19')](_0x355541),_0x355541['focus']());}()),_0x3c43d7['set']({'label':_0x7e2f38(_0x3636ee,_0x464d('0x4')),'withText':!0x0}),_0x3c43d7[_0x464d('0x2')](_0x464d('0xc'))['to'](_0x4c0944,_0x464d('0xb'),_0x5026cd,_0x464d('0xa'),(_0x5c9261,_0x1b7e59)=>_0x5c9261&&!_0x1b7e59),_0x3c43d7['on'](_0x464d('0x1e'),()=>{_0x5026cd[_0x464d('0xf')]['get']('revisionHistory')[_0x464d('0x18')](),_0xc431d1();}),_0x2398cf[_0x464d('0x14')][_0x464d('0x19')](_0x1f4fad),_0x5e292d['children'][_0x464d('0x19')](_0x3c43d7),_0x1dd1e8[_0x464d('0xd')][_0x464d('0x9')]([_0x2398cf,_0x5e292d]),_0xe4a131['on'](_0x464d('0x7'),()=>_0x13da90()),_0x355541[_0x464d('0x1')][_0x464d('0x2')](_0x464d('0xc'))['to'](_0x4c0944,_0x464d('0xb'),_0x4c0944,'isEnabled',_0x5026cd,_0x464d('0xa'),(_0x24590d,_0x539ce5,_0x1b0893)=>_0x24590d&&_0x539ce5&&!_0x1b0893),_0x355541['on'](_0x464d('0x1a'),()=>(_0x5026cd[_0x464d('0x1c')]['get'](_0x47c6fa)[_0x464d('0x1f')]({'name':_0x355541[_0x464d('0x10')]}),void _0xc431d1())),_0x355541['on'](_0x464d('0x16'),()=>_0x13da90()),_0x355541[_0x464d('0x17')](),_0x13da90(),_0xe4a131;});}}
23
+ const _0x3f80=['children','change:isOpen','addMany','isOpen','cancel','editing','isReady','revisionHistory','bind','Open\x20revision\x20history','length','isReadOnly','showRevisionViewerCallback','editor','add','requires','RevisionTracker','plugins','panelView','focus','pluginName','config','saveRevision','submit','Revision\x20history','render','saveButtonView','RevisionHistoryUI','reset','items','get','buttonView','set','init','isEnabled'];(function(_0x58ef3c,_0x3f8082){const _0x462c87=function(_0x5d815a){while(--_0x5d815a){_0x58ef3c['push'](_0x58ef3c['shift']());}};_0x462c87(++_0x3f8082);}(_0x3f80,0x1d9));const _0x462c=function(_0x58ef3c,_0x3f8082){_0x58ef3c=_0x58ef3c-0x0;let _0x462c87=_0x3f80[_0x58ef3c];return _0x462c87;};import{Plugin as _0x4a0b20}from'ckeditor5/src/core';import{ListView as _0x30027f,ListItemView as _0x599960,ButtonView as _0x50e375,createDropdown as _0x3fa509}from'ckeditor5/src/ui';import _0x457b06 from'../../revisiontracker';import _0x42a779 from'./revisionhistorysaverevisionformview';import _0x4f441d from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x411504}from'../../utils/common-translations';export default class u extends _0x4a0b20{static get[_0x462c('0x2')](){return _0x462c('0x9');}static get[_0x462c('0x20')](){return[_0x457b06];}[_0x462c('0xf')](){const _0x12921a=this[_0x462c('0x1e')],_0x523515=_0x12921a[_0x462c('0x22')][_0x462c('0xc')](_0x462c('0x21'));_0x12921a['ui']['componentFactory'][_0x462c('0x1f')](_0x462c('0x18'),_0x4e39b7=>{const _0x43042a=_0x3fa509(_0x4e39b7),_0x331926=_0x43042a[_0x462c('0x0')][_0x462c('0x11')],_0x33b990=new _0x30027f(_0x4e39b7),_0x3542b5=new _0x599960(_0x4e39b7),_0x4d7ad5=new _0x50e375(_0x4e39b7),_0x5d376d=new _0x599960(_0x4e39b7),_0x456f14=new _0x50e375(_0x4e39b7),_0x18bcfb=new _0x42a779(_0x4e39b7);function _0x169bca(){_0x331926[_0x462c('0x1b')]&&_0x331926['remove'](0x0),_0x331926[_0x462c('0x1f')](_0x33b990);}function _0x397b2f(){_0x43042a[_0x462c('0x14')]=!0x1,_0x12921a[_0x462c('0x16')]['view']['focus']();}return _0x43042a[_0x462c('0x19')]('isEnabled')['to'](_0x523515,_0x462c('0x17'),_0x523515,'isEnabled',_0x12921a,_0x462c('0x1c'),(_0x4d4308,_0x3ea59c,_0x24a4e9)=>_0x4d4308&&_0x3ea59c&&!_0x24a4e9),_0x43042a[_0x462c('0xd')][_0x462c('0xe')]({'icon':_0x4f441d,'label':_0x411504(_0x4e39b7,_0x462c('0x6')),'tooltip':!0x0}),_0x4d7ad5['set']({'label':_0x411504(_0x4e39b7,'Save\x20current\x20revision'),'withText':!0x0}),_0x4d7ad5[_0x462c('0x19')](_0x462c('0x10'))['to'](_0x523515,_0x462c('0x17'),_0x523515,_0x462c('0x10'),_0x12921a,'isReadOnly',(_0x15ef88,_0x16bb16,_0x405657)=>_0x15ef88&&_0x16bb16&&!_0x405657),_0x4d7ad5['on']('execute',()=>function(){_0x331926[_0x462c('0x1b')]&&_0x331926['remove'](0x0),(_0x18bcfb[_0x462c('0xa')](),_0x331926['add'](_0x18bcfb),_0x18bcfb[_0x462c('0x1')]());}()),_0x456f14['set']({'label':_0x411504(_0x4e39b7,_0x462c('0x1a')),'withText':!0x0}),_0x456f14[_0x462c('0x19')](_0x462c('0x10'))['to'](_0x523515,_0x462c('0x17'),_0x12921a,_0x462c('0x1c'),(_0x4865c6,_0x52afae)=>_0x4865c6&&!_0x52afae),_0x456f14['on']('execute',()=>{_0x12921a[_0x462c('0x3')][_0x462c('0xc')](_0x462c('0x18'))[_0x462c('0x1d')](),_0x397b2f();}),_0x3542b5[_0x462c('0x11')]['add'](_0x4d7ad5),_0x5d376d[_0x462c('0x11')]['add'](_0x456f14),_0x33b990[_0x462c('0xb')][_0x462c('0x13')]([_0x3542b5,_0x5d376d]),_0x43042a['on'](_0x462c('0x12'),()=>_0x169bca()),_0x18bcfb[_0x462c('0x8')]['bind'](_0x462c('0x10'))['to'](_0x523515,_0x462c('0x17'),_0x523515,_0x462c('0x10'),_0x12921a,_0x462c('0x1c'),(_0x297386,_0x24487d,_0xa7d8a7)=>_0x297386&&_0x24487d&&!_0xa7d8a7),_0x18bcfb['on'](_0x462c('0x5'),()=>(_0x12921a[_0x462c('0x22')][_0x462c('0xc')](_0x457b06)[_0x462c('0x4')]({'name':_0x18bcfb['revisionName']}),void _0x397b2f())),_0x18bcfb['on'](_0x462c('0x15'),()=>_0x169bca()),_0x18bcfb[_0x462c('0x7')](),_0x169bca(),_0x43042a;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ba6=['isVisible','compare','isSelected','remove','selectRevision','_createRevisionActions','select','_handleDiffChange','length','plugins','restoreRevisionCallback','map','isEnabled','getRevisionsInDiff','highlightRevisions','_handleRevisionSelected','getRevision','bind','_revisionsRepository','revisionSelected','fieldView','listenTo','change:diff','newRevisionId','_revisions','timePeriodViews','RevisionsSidebar','revisionHistory.revisionActions','revisionHistory','getLaterVisibleRevision','compareAgainstSelected','revisionHistory.viewerSidebarContainer','destroy','_handleEditorDataReady','render','_sidebarView','revisionSetName','editor','getIndex','locale','Restore\x20this\x20revision','ready','_revisionViewer','isReady','action','get','config','_handleRevisionSetName','add','availableRevisionActions','element','defaultRevisionActions','appendChild','init','string','restoreRevision','getEarlierVisibleRevision','pluginName','repository'];(function(_0x4840c5,_0x5ba692){const _0x1cafb4=function(_0x38f1a0){while(--_0x38f1a0){_0x4840c5['push'](_0x4840c5['shift']());}};_0x1cafb4(++_0x5ba692);}(_0x5ba6,0x193));const _0x1caf=function(_0x4840c5,_0x5ba692){_0x4840c5=_0x4840c5-0x0;let _0x1cafb4=_0x5ba6[_0x4840c5];return _0x1cafb4;};import{Plugin as _0x48c76b}from'ckeditor5/src/core';import _0x3d8f15 from'./revisionssidebarview';import _0x11ef28 from'../../revisionviewer';export default class w extends _0x48c76b{static get[_0x1caf('0x8')](){return _0x1caf('0x24');}static get['requires'](){return[_0x11ef28];}constructor(_0x468fe0){super(_0x468fe0),this[_0x1caf('0x34')]=_0x468fe0[_0x1caf('0x13')][_0x1caf('0x37')](_0x11ef28),this[_0x1caf('0x1c')]=this[_0x1caf('0x34')]['repository'],this[_0x1caf('0x2d')]=null;}[_0x1caf('0x4')](){const _0x273376=this[_0x1caf('0x1c')][_0x1caf('0x22')],_0x2843e1=this[_0x1caf('0xf')](),_0x3fed08=this[_0x1caf('0x2f')][_0x1caf('0x38')][_0x1caf('0x37')](_0x1caf('0x29'));this[_0x1caf('0x2d')]=new _0x3d8f15(this[_0x1caf('0x2f')][_0x1caf('0x31')],_0x273376,_0x2843e1),this[_0x1caf('0x2d')]['on'](_0x1caf('0x1d'),this[_0x1caf('0x19')][_0x1caf('0x1b')](this)),this[_0x1caf('0x2d')]['on'](_0x1caf('0x2e'),this[_0x1caf('0x39')][_0x1caf('0x1b')](this)),this['_sidebarView'][_0x1caf('0x1b')](_0x1caf('0x16'))['to'](this[_0x1caf('0x34')]),this[_0x1caf('0x2d')][_0x1caf('0x23')]['on'](_0x1caf('0x3a'),(_0x40cee5,_0x28cff2)=>{_0x28cff2['revisionViews']['on'](_0x1caf('0x3a'),(_0x59c1d1,_0x79dec3)=>{_0x79dec3[_0x1caf('0x1b')](_0x1caf('0x16'),_0x1caf('0x35'))['to'](this[_0x1caf('0x34')]);});}),this[_0x1caf('0x2d')][_0x1caf('0x2c')](),this[_0x1caf('0x1f')](this[_0x1caf('0x2f')]['data'],_0x1caf('0x33'),this['_handleEditorDataReady'][_0x1caf('0x1b')](this)),this[_0x1caf('0x1f')](this[_0x1caf('0x34')],_0x1caf('0x20'),this[_0x1caf('0x11')][_0x1caf('0x1b')](this)),_0x3fed08[_0x1caf('0x3')](this['_sidebarView'][_0x1caf('0x1')]);}[_0x1caf('0x2a')](){this['_sidebarView']['element'][_0x1caf('0xd')](),this[_0x1caf('0x2d')][_0x1caf('0x2a')]();}[_0x1caf('0x2b')](){const _0x287847=this[_0x1caf('0x1c')][_0x1caf('0x1a')](0x0);if(_0x287847){const _0x3d5ea3=this['_revisionsRepository'][_0x1caf('0x7')](_0x287847['id']);this[_0x1caf('0x34')]['compare'](_0x287847,_0x3d5ea3);}}['_handleRevisionSelected'](_0xe2ae7f,_0x4f1056){const _0x511e48=this['_revisionsRepository']['getRevision'](_0x4f1056['id']),_0xfa68f=this['_revisionsRepository'][_0x1caf('0x7')](_0x511e48['id']);this[_0x1caf('0x34')][_0x1caf('0xb')](_0x511e48,_0xfa68f);}[_0x1caf('0x39')](_0x443395,_0x4db3d1){this[_0x1caf('0x1c')][_0x1caf('0x1a')](_0x4db3d1['id'])['setName'](_0x4db3d1['name']);}[_0x1caf('0x11')](_0x3bc876,_0x395e7d,_0x379228){const _0x4ccda1=this[_0x1caf('0x1c')][_0x1caf('0x17')](_0x379228);_0x4ccda1['length']>0x2?(this['_sidebarView'][_0x1caf('0x18')](_0x4ccda1),this[_0x1caf('0x2d')][_0x1caf('0xe')](null)):(this['_sidebarView'][_0x1caf('0x18')]([]),this[_0x1caf('0x2d')][_0x1caf('0xe')](_0x4ccda1[0x0]));}[_0x1caf('0xf')](){const _0xe92e44=this[_0x1caf('0x2f')],_0x512283=w[_0x1caf('0x0')],_0x51d1a6=_0xe92e44[_0x1caf('0x38')]['get'](_0x1caf('0x25'))||w['defaultRevisionActions'];if(_0x51d1a6[_0x1caf('0x12')])return _0x51d1a6[_0x1caf('0x15')](_0x1490b6=>{const _0x13dc42=_0x1caf('0x5')==typeof _0x1490b6?Object['assign']({},_0x512283[_0x1490b6]):_0x1490b6;return _0x13dc42['action']=_0x13dc42[_0x1caf('0x36')][_0x1caf('0x1b')](this,_0xe92e44),_0x13dc42[_0x1caf('0xa')]&&(_0x13dc42['isVisible']=_0x13dc42[_0x1caf('0xa')][_0x1caf('0x1b')](this,_0xe92e44)),_0x13dc42;});}}w[_0x1caf('0x0')]={'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x5124d4},_0x1bc43a)=>{const _0x535d6a=_0x5124d4[_0x1caf('0x37')](_0x11ef28),_0xa6e412=_0x535d6a[_0x1caf('0x9')];let _0x5edcde=_0x535d6a['diff'][_0x1caf('0x21')],_0x11018e=_0x1bc43a['id'];_0xa6e412[_0x1caf('0x30')](_0x5edcde)>_0xa6e412[_0x1caf('0x30')](_0x11018e)&&([_0x5edcde,_0x11018e]=[_0x11018e,_0x5edcde]),_0x535d6a['compare'](_0x5edcde,_0x11018e);},'isVisible':({plugins:_0x4e7f23},_0x46b0b6)=>{const _0xcfcdaf=_0x4e7f23[_0x1caf('0x37')](_0x11ef28);return!(_0xcfcdaf[_0x1caf('0x9')][_0x1caf('0x17')](_0xcfcdaf['diff'])[_0x1caf('0x12')]>0x2)&&!_0x46b0b6[_0x1caf('0xc')];}},'restoreRevision':{'name':_0x1caf('0x32'),'action':(_0x5c4454,{id:_0x1364d7})=>{_0x5c4454[_0x1caf('0x38')]['get'](_0x1caf('0x26'))[_0x1caf('0x14')](_0x1364d7);},'isVisible':({plugins:_0x52ad04},_0x1a25ae)=>!!_0x52ad04['get'](_0x11ef28)[_0x1caf('0x9')][_0x1caf('0x27')](_0x1a25ae['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x598261},{id:_0x19a2f7,revisionNameView:_0x374d46})=>{const _0x14d8fe=_0x598261['get'](_0x11ef28),_0x4d06f1=_0x14d8fe['repository']['getEarlierVisibleRevision'](_0x19a2f7);_0x14d8fe[_0x1caf('0xb')](_0x19a2f7,_0x4d06f1),_0x374d46['focus'](),_0x374d46[_0x1caf('0x1e')][_0x1caf('0x10')]();}}},w[_0x1caf('0x2')]=[_0x1caf('0x28'),_0x1caf('0x6'),'nameRevision'];
23
+ const _0x2e61=['plugins','get','revisionViews','getIndex','_handleDiffChange','pluginName','length','destroy','requires','getEarlierVisibleRevision','defaultRevisionActions','name','setName','revisionSelected','editor','_createRevisionActions','change:diff','isVisible','_handleRevisionSetName','compareAgainstSelected','_revisions','remove','_sidebarView','Name\x20this\x20revision','isSelected','revisionHistory.viewerSidebarContainer','assign','_handleEditorDataReady','locale','isReady','config','Restore\x20this\x20revision','isEnabled','listenTo','revisionHistory.revisionActions','action','_revisionsRepository','fieldView','getLaterVisibleRevision','element','compare','string','selectRevision','repository','render','revisionHistory','map','bind','diff','restoreRevision','nameRevision','availableRevisionActions','appendChild','getRevision','highlightRevisions','add','init','data','select','_revisionViewer','newRevisionId'];(function(_0x194a3c,_0x2e611e){const _0x1f457f=function(_0x282d4c){while(--_0x282d4c){_0x194a3c['push'](_0x194a3c['shift']());}};_0x1f457f(++_0x2e611e);}(_0x2e61,0xce));const _0x1f45=function(_0x194a3c,_0x2e611e){_0x194a3c=_0x194a3c-0x0;let _0x1f457f=_0x2e61[_0x194a3c];return _0x1f457f;};import{Plugin as _0xf6db7b}from'ckeditor5/src/core';import _0x3907da from'./revisionssidebarview';import _0x375138 from'../../revisionviewer';export default class w extends _0xf6db7b{static get[_0x1f45('0x2b')](){return'RevisionsSidebar';}static get[_0x1f45('0x2e')](){return[_0x375138];}constructor(_0x4a7374){super(_0x4a7374),this[_0x1f45('0x24')]=_0x4a7374[_0x1f45('0x26')][_0x1f45('0x27')](_0x375138),this[_0x1f45('0xd')]=this[_0x1f45('0x24')]['repository'],this[_0x1f45('0x3c')]=null;}[_0x1f45('0x21')](){const _0x114294=this[_0x1f45('0xd')][_0x1f45('0x3a')],_0x1fddff=this[_0x1f45('0x35')](),_0x1a4cd0=this[_0x1f45('0x34')]['config'][_0x1f45('0x27')](_0x1f45('0x2'));this[_0x1f45('0x3c')]=new _0x3907da(this[_0x1f45('0x34')][_0x1f45('0x5')],_0x114294,_0x1fddff),this[_0x1f45('0x3c')]['on'](_0x1f45('0x33'),this['_handleRevisionSelected'][_0x1f45('0x18')](this)),this[_0x1f45('0x3c')]['on']('revisionSetName',this[_0x1f45('0x38')][_0x1f45('0x18')](this)),this[_0x1f45('0x3c')][_0x1f45('0x18')](_0x1f45('0x9'))['to'](this[_0x1f45('0x24')]),this[_0x1f45('0x3c')]['timePeriodViews']['on']('add',(_0x19c2db,_0x673384)=>{_0x673384[_0x1f45('0x28')]['on'](_0x1f45('0x20'),(_0x4df42c,_0x458ea6)=>{_0x458ea6['bind'](_0x1f45('0x9'),_0x1f45('0x6'))['to'](this[_0x1f45('0x24')]);});}),this[_0x1f45('0x3c')][_0x1f45('0x15')](),this[_0x1f45('0xa')](this['editor'][_0x1f45('0x22')],'ready',this[_0x1f45('0x4')][_0x1f45('0x18')](this)),this[_0x1f45('0xa')](this[_0x1f45('0x24')],_0x1f45('0x36'),this[_0x1f45('0x2a')][_0x1f45('0x18')](this)),_0x1a4cd0[_0x1f45('0x1d')](this[_0x1f45('0x3c')]['element']);}[_0x1f45('0x2d')](){this[_0x1f45('0x3c')][_0x1f45('0x10')][_0x1f45('0x3b')](),this[_0x1f45('0x3c')][_0x1f45('0x2d')]();}[_0x1f45('0x4')](){const _0x28a834=this[_0x1f45('0xd')][_0x1f45('0x1e')](0x0);if(_0x28a834){const _0x302221=this[_0x1f45('0xd')]['getEarlierVisibleRevision'](_0x28a834['id']);this['_revisionViewer'][_0x1f45('0x11')](_0x28a834,_0x302221);}}['_handleRevisionSelected'](_0x14d21a,_0x2268d4){const _0x5d2c59=this['_revisionsRepository'][_0x1f45('0x1e')](_0x2268d4['id']),_0x29d1e3=this['_revisionsRepository'][_0x1f45('0x2f')](_0x5d2c59['id']);this['_revisionViewer'][_0x1f45('0x11')](_0x5d2c59,_0x29d1e3);}['_handleRevisionSetName'](_0x3bdc8a,_0x1ee693){this[_0x1f45('0xd')][_0x1f45('0x1e')](_0x1ee693['id'])[_0x1f45('0x32')](_0x1ee693[_0x1f45('0x31')]);}[_0x1f45('0x2a')](_0x251670,_0x4b5b40,_0x124c0c){const _0x5d3ccf=this[_0x1f45('0xd')]['getRevisionsInDiff'](_0x124c0c);_0x5d3ccf[_0x1f45('0x2c')]>0x2?(this[_0x1f45('0x3c')][_0x1f45('0x1f')](_0x5d3ccf),this[_0x1f45('0x3c')][_0x1f45('0x13')](null)):(this[_0x1f45('0x3c')]['highlightRevisions']([]),this[_0x1f45('0x3c')]['selectRevision'](_0x5d3ccf[0x0]));}[_0x1f45('0x35')](){const _0x5dc023=this[_0x1f45('0x34')],_0x406e68=w[_0x1f45('0x1c')],_0xfceb5c=_0x5dc023[_0x1f45('0x7')][_0x1f45('0x27')](_0x1f45('0xb'))||w[_0x1f45('0x30')];if(_0xfceb5c[_0x1f45('0x2c')])return _0xfceb5c[_0x1f45('0x17')](_0x24362e=>{const _0x1df501=_0x1f45('0x12')==typeof _0x24362e?Object[_0x1f45('0x3')]({},_0x406e68[_0x24362e]):_0x24362e;return _0x1df501[_0x1f45('0xc')]=_0x1df501[_0x1f45('0xc')]['bind'](this,_0x5dc023),_0x1df501[_0x1f45('0x37')]&&(_0x1df501[_0x1f45('0x37')]=_0x1df501['isVisible']['bind'](this,_0x5dc023)),_0x1df501;});}}w[_0x1f45('0x1c')]={'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x5ccbe4},_0x3b73d5)=>{const _0x51a4aa=_0x5ccbe4['get'](_0x375138),_0x521e8c=_0x51a4aa[_0x1f45('0x14')];let _0x1e2ba9=_0x51a4aa[_0x1f45('0x19')][_0x1f45('0x25')],_0xf9fa86=_0x3b73d5['id'];_0x521e8c[_0x1f45('0x29')](_0x1e2ba9)>_0x521e8c['getIndex'](_0xf9fa86)&&([_0x1e2ba9,_0xf9fa86]=[_0xf9fa86,_0x1e2ba9]),_0x51a4aa[_0x1f45('0x11')](_0x1e2ba9,_0xf9fa86);},'isVisible':({plugins:_0x344287},_0x5055ae)=>{const _0x3a08a8=_0x344287[_0x1f45('0x27')](_0x375138);return!(_0x3a08a8[_0x1f45('0x14')]['getRevisionsInDiff'](_0x3a08a8[_0x1f45('0x19')])[_0x1f45('0x2c')]>0x2)&&!_0x5055ae[_0x1f45('0x1')];}},'restoreRevision':{'name':_0x1f45('0x8'),'action':(_0x5177b3,{id:_0x405d1d})=>{_0x5177b3[_0x1f45('0x7')]['get'](_0x1f45('0x16'))['restoreRevisionCallback'](_0x405d1d);},'isVisible':({plugins:_0x5c92d4},_0xf82195)=>!!_0x5c92d4['get'](_0x375138)[_0x1f45('0x14')][_0x1f45('0xf')](_0xf82195['id'])},'nameRevision':{'name':_0x1f45('0x0'),'action':({plugins:_0xbbbf55},{id:_0x52884a,revisionNameView:_0x204dfc})=>{const _0x468d01=_0xbbbf55[_0x1f45('0x27')](_0x375138),_0x3893b9=_0x468d01[_0x1f45('0x14')][_0x1f45('0x2f')](_0x52884a);_0x468d01[_0x1f45('0x11')](_0x52884a,_0x3893b9),_0x204dfc['focus'](),_0x204dfc[_0x1f45('0xe')][_0x1f45('0x23')]();}}},w[_0x1f45('0x30')]=[_0x1f45('0x39'),_0x1f45('0x1a'),_0x1f45('0x1b')];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2182=['ck-revision-history-sidebar__header','Revision\x20history','ck-revision-history-sidebar__header__label','span','div'];(function(_0x22a28d,_0x218201){const _0x3591f9=function(_0x685b4b){while(--_0x685b4b){_0x22a28d['push'](_0x22a28d['shift']());}};_0x3591f9(++_0x218201);}(_0x2182,0xf5));const _0x3591=function(_0x22a28d,_0x218201){_0x22a28d=_0x22a28d-0x0;let _0x3591f9=_0x2182[_0x22a28d];return _0x3591f9;};import{View as _0x55a0a3,IconView as _0x32250c}from'ckeditor5/src/ui';import{getTranslation as _0x534dfd}from'../../utils/common-translations';import _0x5205a1 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x55a0a3{constructor(_0x1f937d){super(_0x1f937d);const _0x3b8baa=new _0x32250c();_0x3b8baa['content']=_0x5205a1,this['setTemplate']({'tag':_0x3591('0x4'),'attributes':{'class':['ck','ck-reset_all',_0x3591('0x0')]},'children':[_0x3b8baa,{'tag':_0x3591('0x3'),'attributes':{'class':['ck',_0x3591('0x2')]},'children':[_0x534dfd(_0x1f937d,_0x3591('0x1'))]}]});}}
23
+ const _0x3a0d=['div','content','setTemplate','ck-reset_all','Revision\x20history','ck-revision-history-sidebar__header__label','ck-revision-history-sidebar__header','span'];(function(_0x330cd0,_0x3a0d74){const _0x7623b7=function(_0x469feb){while(--_0x469feb){_0x330cd0['push'](_0x330cd0['shift']());}};_0x7623b7(++_0x3a0d74);}(_0x3a0d,0x13a));const _0x7623=function(_0x330cd0,_0x3a0d74){_0x330cd0=_0x330cd0-0x0;let _0x7623b7=_0x3a0d[_0x330cd0];return _0x7623b7;};import{View as _0x1b5d5b,IconView as _0x2f0ef3}from'ckeditor5/src/ui';import{getTranslation as _0xd39ed6}from'../../utils/common-translations';import _0x337bbc from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x1b5d5b{constructor(_0xb3cc26){super(_0xb3cc26);const _0x470695=new _0x2f0ef3();_0x470695[_0x7623('0x7')]=_0x337bbc,this[_0x7623('0x0')]({'tag':_0x7623('0x6'),'attributes':{'class':['ck',_0x7623('0x1'),_0x7623('0x4')]},'children':[_0x470695,{'tag':_0x7623('0x5'),'attributes':{'class':['ck',_0x7623('0x3')]},'children':[_0xd39ed6(_0xb3cc26,_0x7623('0x2'))]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4807=['uiLanguage','ck-revision-history-sidebar__time-period__revisions','add','setName','select','delegate','revisionViews','find','addRevision','_revisionActions','ck-revision-history-sidebar__time-period__label','removeRevision','startDate','locale','createCollection','localizedPeriodName','setTemplate','ck-revision-history-sidebar__time-period','div','remove'];(function(_0x558c8f,_0x4807a8){const _0x40ec2c=function(_0x2ad4ae){while(--_0x2ad4ae){_0x558c8f['push'](_0x558c8f['shift']());}};_0x40ec2c(++_0x4807a8);}(_0x4807,0x1cb));const _0x40ec=function(_0x558c8f,_0x4807a8){_0x558c8f=_0x558c8f-0x0;let _0x40ec2c=_0x4807[_0x558c8f];return _0x40ec2c;};import{View as _0x4b1f3d}from'ckeditor5/src/ui';import _0x5c9700 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x2d438a}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x4b1f3d{constructor(_0x41904c,_0x460da3,_0x518cac){super(_0x41904c);const _0x17764a=_0x2d438a(_0x460da3,this['locale'][_0x40ec('0x1')])[_0x40ec('0x10')];this[_0x40ec('0xd')]=_0x460da3,this['revisionViews']=this[_0x40ec('0xf')](),this[_0x40ec('0xa')]=_0x518cac,this[_0x40ec('0x7')][_0x40ec('0x6')](_0x40ec('0x5'))['to'](this),this[_0x40ec('0x7')][_0x40ec('0x6')](_0x40ec('0x4'))['to'](this),this[_0x40ec('0x11')]({'tag':_0x40ec('0x13'),'attributes':{'class':['ck',_0x40ec('0x12')]},'children':[{'tag':'span','attributes':{'class':['ck',_0x40ec('0xb')]},'children':[{'text':_0x17764a}]},{'tag':_0x40ec('0x13'),'attributes':{'class':['ck',_0x40ec('0x2')]},'children':this[_0x40ec('0x7')]}]});}[_0x40ec('0x9')](_0x3e6b81){const _0x335687=new _0x5c9700(this[_0x40ec('0xe')],_0x3e6b81,this['_revisionActions']);this[_0x40ec('0x7')][_0x40ec('0x3')](_0x335687);}[_0x40ec('0xc')](_0x2a730c){const _0x5018b2=this[_0x40ec('0x7')][_0x40ec('0x8')](_0xa05d43=>_0xa05d43['id']===_0x2a730c['id']);this[_0x40ec('0x7')][_0x40ec('0x0')](_0x5018b2);}}
23
+ const _0x4565=['locale','ck-revision-history-sidebar__time-period__revisions','localizedPeriodName','find','div','removeRevision','startDate','addRevision','delegate','span','revisionViews','createCollection','setTemplate','_revisionActions','setName','remove','select'];(function(_0x34e72a,_0x456589){const _0x54a3b5=function(_0x12536a){while(--_0x12536a){_0x34e72a['push'](_0x34e72a['shift']());}};_0x54a3b5(++_0x456589);}(_0x4565,0x142));const _0x54a3=function(_0x34e72a,_0x456589){_0x34e72a=_0x34e72a-0x0;let _0x54a3b5=_0x4565[_0x34e72a];return _0x54a3b5;};import{View as _0x47c6e4}from'ckeditor5/src/ui';import _0x3340ba from'../revision/revisionview';import{getDateTimePeriodInfo as _0x2879f3}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x47c6e4{constructor(_0x10780f,_0x5971e6,_0x1d55e1){super(_0x10780f);const _0x3b3fb4=_0x2879f3(_0x5971e6,this[_0x54a3('0x1')]['uiLanguage'])[_0x54a3('0x3')];this[_0x54a3('0x7')]=_0x5971e6,this[_0x54a3('0xb')]=this[_0x54a3('0xc')](),this[_0x54a3('0xe')]=_0x1d55e1,this['revisionViews'][_0x54a3('0x9')](_0x54a3('0x0'))['to'](this),this[_0x54a3('0xb')][_0x54a3('0x9')](_0x54a3('0xf'))['to'](this),this[_0x54a3('0xd')]({'tag':_0x54a3('0x5'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':_0x54a3('0xa'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x3b3fb4}]},{'tag':_0x54a3('0x5'),'attributes':{'class':['ck',_0x54a3('0x2')]},'children':this[_0x54a3('0xb')]}]});}[_0x54a3('0x8')](_0x3c788f){const _0x544ee9=new _0x3340ba(this[_0x54a3('0x1')],_0x3c788f,this[_0x54a3('0xe')]);this[_0x54a3('0xb')]['add'](_0x544ee9);}[_0x54a3('0x6')](_0x1e793a){const _0x581573=this[_0x54a3('0xb')][_0x54a3('0x4')](_0xd1497e=>_0xd1497e['id']===_0x1e793a['id']);this[_0x54a3('0xb')][_0x54a3('0x10')](_0x581573);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4f5a=['add','render','select','remove','highlightRevisions','_addRevision','unhighlight','ck-rounded-corners','_revisions','timePeriodViews','locale','delegate','div','some','fire','revisionSetName','highlight','get','createdAt','ck-revision-history-sidebar','getTime','_revisionActions','isEnabled','revisionViews','_removeRevision','find','removeRevision','setName','addRevision','deselect','ck-revision-history-sidebar__timeline','set','startDate','_getTimePeriodViewByStartDate','ck-reset','map'];(function(_0x3432af,_0x4f5a9b){const _0x1fc954=function(_0x5a6301){while(--_0x5a6301){_0x3432af['push'](_0x3432af['shift']());}};_0x1fc954(++_0x4f5a9b);}(_0x4f5a,0x71));const _0x1fc9=function(_0x3432af,_0x4f5a9b){_0x3432af=_0x3432af-0x0;let _0x1fc954=_0x4f5a[_0x3432af];return _0x1fc954;};import{View as _0x446c78}from'ckeditor5/src/ui';import _0x191dbd from'./revisionssidebartimeperiodview';import _0x173f8e from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x5cd568}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x446c78{constructor(_0x3c8e7a,_0x27b87a,_0x1ec891){super(_0x3c8e7a);const _0x4f9ddf=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this[_0x1fc9('0x4')][_0x1fc9('0x6')](_0x1fc9('0x21'))['to'](this),this[_0x1fc9('0x4')]['delegate'](_0x1fc9('0x16'))['to'](this),this[_0x1fc9('0x3')]=_0x27b87a,this['_revisionActions']=_0x1ec891,this['on']('select',(_0x3786cd,_0x44eeab)=>{this[_0x1fc9('0x9')]('revisionSelected',_0x44eeab);}),this['on'](_0x1fc9('0x16'),(_0x3fabc1,_0x51c3db)=>{this['fire'](_0x1fc9('0xa'),_0x51c3db);}),this[_0x1fc9('0x1a')]('isEnabled',!0x1),this['setTemplate']({'tag':_0x1fc9('0x7'),'attributes':{'class':['ck',_0x1fc9('0x1d'),_0x1fc9('0x2'),_0x1fc9('0xe')]},'children':[new _0x173f8e(_0x3c8e7a),{'tag':_0x1fc9('0x7'),'attributes':{'class':['ck',_0x1fc9('0x19'),_0x4f9ddf['if'](_0x1fc9('0x11'),'ck-disabled',_0x2f2166=>!_0x2f2166)]},'children':this['timePeriodViews']}]});}[_0x1fc9('0x20')](){super[_0x1fc9('0x20')]();for(const _0x10e963 of this['_revisions'])this[_0x1fc9('0x0')](_0x10e963);this[_0x1fc9('0x3')]['on']('add',(_0x3904bd,_0x4a60ac)=>{this[_0x1fc9('0x0')](_0x4a60ac);}),this[_0x1fc9('0x3')]['on'](_0x1fc9('0x22'),(_0x256e81,_0x5907a3)=>{this[_0x1fc9('0x13')](_0x5907a3);});}get[_0x1fc9('0x12')](){return this['timePeriodViews'][_0x1fc9('0x1e')](_0x34661e=>_0x34661e[_0x1fc9('0x12')]['map'](_0x1791d4=>_0x1791d4))['flat']();}['selectRevision'](_0x25aca3){for(const _0x31c095 of this['revisionViews'])_0x25aca3&&_0x25aca3['id']===_0x31c095['id']?_0x31c095[_0x1fc9('0x21')]():_0x31c095[_0x1fc9('0x18')]();}[_0x1fc9('0x23')](_0xbc459c){for(const _0x2d35a6 of this['revisionViews'])_0xbc459c[_0x1fc9('0x8')](({id:_0xce8ac1})=>_0xce8ac1===_0x2d35a6['id'])?_0x2d35a6[_0x1fc9('0xb')]():_0x2d35a6[_0x1fc9('0x1')]();}[_0x1fc9('0x0')](_0x48448a){const _0x2402f7=_0x5cd568(_0x48448a[_0x1fc9('0xd')],this[_0x1fc9('0x5')]['uiLanguage'])[_0x1fc9('0x1b')];let _0xb69fc7=this[_0x1fc9('0x4')][_0x1fc9('0xc')](0x0);_0xb69fc7&&_0xb69fc7[_0x1fc9('0x1b')][_0x1fc9('0xf')]()===_0x2402f7[_0x1fc9('0xf')]()||(_0xb69fc7=new _0x191dbd(this[_0x1fc9('0x5')],_0x2402f7,this[_0x1fc9('0x10')]),this[_0x1fc9('0x4')][_0x1fc9('0x1f')](_0xb69fc7)),_0xb69fc7[_0x1fc9('0x17')](_0x48448a);}[_0x1fc9('0x13')](_0x400d11){const _0x2a6bb7=_0x5cd568(_0x400d11[_0x1fc9('0xd')],this[_0x1fc9('0x5')]['uiLanguage'])[_0x1fc9('0x1b')];this[_0x1fc9('0x1c')](_0x2a6bb7)[_0x1fc9('0x15')](_0x400d11);}['_getTimePeriodViewByStartDate'](_0x1975b1){return this[_0x1fc9('0x4')][_0x1fc9('0x14')](_0x4c9dc4=>_0x4c9dc4[_0x1fc9('0x1b')][_0x1fc9('0xf')]()===_0x1975b1[_0x1fc9('0xf')]());}}
23
+ const _0xb89f=['div','timePeriodViews','_getTimePeriodViewByStartDate','unhighlight','revisionSelected','getTime','select','ck-revision-history-sidebar__timeline','set','startDate','render','fire','delegate','some','find','setName','revisionSetName','selectRevision','createCollection','isEnabled','locale','map','ck-reset','highlightRevisions','_revisionActions','_removeRevision','revisionViews','setTemplate','highlight','add','_revisions','get','removeRevision','deselect','_addRevision','uiLanguage'];(function(_0x5dc70a,_0xb89f92){const _0x2acc68=function(_0x17283d){while(--_0x17283d){_0x5dc70a['push'](_0x5dc70a['shift']());}};_0x2acc68(++_0xb89f92);}(_0xb89f,0x1ee));const _0x2acc=function(_0x5dc70a,_0xb89f92){_0x5dc70a=_0x5dc70a-0x0;let _0x2acc68=_0xb89f[_0x5dc70a];return _0x2acc68;};import{View as _0x3e13ac}from'ckeditor5/src/ui';import _0x27091f from'./revisionssidebartimeperiodview';import _0x28ed87 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x29aa3c}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x3e13ac{constructor(_0x1c3113,_0x4243f8,_0x235216){super(_0x1c3113);const _0x7aeb8=this['bindTemplate'];this[_0x2acc('0xb')]=this[_0x2acc('0x1c')](),this[_0x2acc('0xb')][_0x2acc('0x16')](_0x2acc('0x10'))['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this[_0x2acc('0x4')]=_0x4243f8,this[_0x2acc('0x22')]=_0x235216,this['on'](_0x2acc('0x10'),(_0x27451e,_0x15e260)=>{this['fire'](_0x2acc('0xe'),_0x15e260);}),this['on'](_0x2acc('0x19'),(_0x3a1c94,_0x438c13)=>{this[_0x2acc('0x15')](_0x2acc('0x1a'),_0x438c13);}),this[_0x2acc('0x12')](_0x2acc('0x1d'),!0x1),this[_0x2acc('0x1')]({'tag':'div','attributes':{'class':['ck',_0x2acc('0x20'),'ck-rounded-corners','ck-revision-history-sidebar']},'children':[new _0x28ed87(_0x1c3113),{'tag':_0x2acc('0xa'),'attributes':{'class':['ck',_0x2acc('0x11'),_0x7aeb8['if'](_0x2acc('0x1d'),'ck-disabled',_0xc9e0db=>!_0xc9e0db)]},'children':this[_0x2acc('0xb')]}]});}[_0x2acc('0x14')](){super['render']();for(const _0x19c2be of this['_revisions'])this[_0x2acc('0x8')](_0x19c2be);this[_0x2acc('0x4')]['on'](_0x2acc('0x3'),(_0x561489,_0x4622d4)=>{this[_0x2acc('0x8')](_0x4622d4);}),this[_0x2acc('0x4')]['on']('remove',(_0x30ddce,_0x39092c)=>{this[_0x2acc('0x23')](_0x39092c);});}get['revisionViews'](){return this[_0x2acc('0xb')][_0x2acc('0x1f')](_0x26e76c=>_0x26e76c[_0x2acc('0x0')][_0x2acc('0x1f')](_0x12c233=>_0x12c233))['flat']();}[_0x2acc('0x1b')](_0x3f26ba){for(const _0x4bbe22 of this[_0x2acc('0x0')])_0x3f26ba&&_0x3f26ba['id']===_0x4bbe22['id']?_0x4bbe22[_0x2acc('0x10')]():_0x4bbe22[_0x2acc('0x7')]();}[_0x2acc('0x21')](_0x3e2821){for(const _0x1fe8fa of this[_0x2acc('0x0')])_0x3e2821[_0x2acc('0x17')](({id:_0x33fa7e})=>_0x33fa7e===_0x1fe8fa['id'])?_0x1fe8fa[_0x2acc('0x2')]():_0x1fe8fa[_0x2acc('0xd')]();}[_0x2acc('0x8')](_0x3e1ca8){const _0x18a1d5=_0x29aa3c(_0x3e1ca8['createdAt'],this['locale'][_0x2acc('0x9')])['startDate'];let _0x432918=this[_0x2acc('0xb')][_0x2acc('0x5')](0x0);_0x432918&&_0x432918[_0x2acc('0x13')][_0x2acc('0xf')]()===_0x18a1d5[_0x2acc('0xf')]()||(_0x432918=new _0x27091f(this[_0x2acc('0x1e')],_0x18a1d5,this[_0x2acc('0x22')]),this[_0x2acc('0xb')][_0x2acc('0x3')](_0x432918)),_0x432918['addRevision'](_0x3e1ca8);}['_removeRevision'](_0x1c7188){const _0x132ef9=_0x29aa3c(_0x1c7188['createdAt'],this[_0x2acc('0x1e')][_0x2acc('0x9')])[_0x2acc('0x13')];this['_getTimePeriodViewByStartDate'](_0x132ef9)[_0x2acc('0x6')](_0x1c7188);}[_0x2acc('0xc')](_0x1090d9){return this[_0x2acc('0xb')][_0x2acc('0x18')](_0x41e276=>_0x41e276[_0x2acc('0x13')][_0x2acc('0xf')]()===_0x1090d9[_0x2acc('0xf')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2e3f=['week','toRelativeCalendar','hasSame','year','month','toJSDate','day','monthLong','startOf','setLocale'];(function(_0x166557,_0x2e3ffd){const _0x180a22=function(_0x484c5d){while(--_0x484c5d){_0x166557['push'](_0x166557['shift']());}};_0x180a22(++_0x2e3ffd);}(_0x2e3f,0xc2));const _0x180a=function(_0x166557,_0x2e3ffd){_0x166557=_0x166557-0x0;let _0x180a22=_0x2e3f[_0x166557];return _0x180a22;};import{DateTime as _0x24bda2}from'luxon';export function getDateTimePeriodInfo(_0x46bf97,_0xe89374){const _0x5332fa=_0x24bda2['fromJSDate'](_0x46bf97)[_0x180a('0x5')](_0xe89374),_0x9992c4=_0x24bda2['local'](),_0x2d018d=_0x9992c4['minus']({'days':0x1})[_0x180a('0x4')](_0x180a('0x2'));let _0x55968e,_0x1a34ae;return _0x5332fa[_0x180a('0x8')](_0x9992c4,'day')?(_0x55968e=_0x5332fa[_0x180a('0x4')](_0x180a('0x2'))[_0x180a('0x1')](),_0x1a34ae=_0x5332fa[_0x180a('0x7')]()):_0x5332fa[_0x180a('0x8')](_0x2d018d,'day')?(_0x55968e=_0x2d018d[_0x180a('0x1')](),_0x1a34ae=_0x5332fa[_0x180a('0x7')]()):_0x5332fa[_0x180a('0x8')](_0x9992c4,_0x180a('0x6'))?(_0x55968e=_0x5332fa[_0x180a('0x4')](_0x180a('0x6'))[_0x180a('0x1')](),_0x1a34ae=_0x5332fa['weekdayLong']||''):_0x5332fa[_0x180a('0x8')](_0x9992c4,_0x180a('0x9'))?(_0x55968e=_0x5332fa[_0x180a('0x4')](_0x180a('0x0'))[_0x180a('0x1')](),_0x1a34ae=_0x5332fa[_0x180a('0x3')]||''):(_0x55968e=_0x5332fa[_0x180a('0x4')](_0x180a('0x9'))[_0x180a('0x1')](),_0x1a34ae=String(_0x5332fa[_0x180a('0x9')])),{'startDate':_0x55968e,'localizedPeriodName':_0x1a34ae};}
23
+ const _0x41c4=['monthLong','hasSame','startOf','minus','local','week','weekdayLong','setLocale','toJSDate','year','toRelativeCalendar','day'];(function(_0x50d4e5,_0x41c4f4){const _0x2c05d1=function(_0x47d62d){while(--_0x47d62d){_0x50d4e5['push'](_0x50d4e5['shift']());}};_0x2c05d1(++_0x41c4f4);}(_0x41c4,0x1b7));const _0x2c05=function(_0x50d4e5,_0x41c4f4){_0x50d4e5=_0x50d4e5-0x0;let _0x2c05d1=_0x41c4[_0x50d4e5];return _0x2c05d1;};import{DateTime as _0x5caa06}from'luxon';export function getDateTimePeriodInfo(_0x19d61e,_0x72b510){const _0xa6cda0=_0x5caa06['fromJSDate'](_0x19d61e)[_0x2c05('0x0')](_0x72b510),_0x4de704=_0x5caa06[_0x2c05('0x9')](),_0x359bdc=_0x4de704[_0x2c05('0x8')]({'days':0x1})[_0x2c05('0x7')](_0x2c05('0x4'));let _0x47fefd,_0x38038a;return _0xa6cda0[_0x2c05('0x6')](_0x4de704,_0x2c05('0x4'))?(_0x47fefd=_0xa6cda0[_0x2c05('0x7')](_0x2c05('0x4'))[_0x2c05('0x1')](),_0x38038a=_0xa6cda0['toRelativeCalendar']()):_0xa6cda0['hasSame'](_0x359bdc,_0x2c05('0x4'))?(_0x47fefd=_0x359bdc[_0x2c05('0x1')](),_0x38038a=_0xa6cda0[_0x2c05('0x3')]()):_0xa6cda0[_0x2c05('0x6')](_0x4de704,_0x2c05('0xa'))?(_0x47fefd=_0xa6cda0[_0x2c05('0x7')]('week')[_0x2c05('0x1')](),_0x38038a=_0xa6cda0[_0x2c05('0xb')]||''):_0xa6cda0[_0x2c05('0x6')](_0x4de704,_0x2c05('0x2'))?(_0x47fefd=_0xa6cda0['startOf']('month')['toJSDate'](),_0x38038a=_0xa6cda0[_0x2c05('0x5')]||''):(_0x47fefd=_0xa6cda0[_0x2c05('0x7')](_0x2c05('0x2'))[_0x2c05('0x1')](),_0x38038a=String(_0xa6cda0[_0x2c05('0x2')])),{'startDate':_0x47fefd,'localizedPeriodName':_0x38038a};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4159=['_model','bindTemplate','type','focus','Removed\x20by','Added\x20by','span','data','ck-revision-change','div','add','element','isSuggestion','ck-revision-change__label','set'];(function(_0x35e703,_0x4159ca){const _0x1d6deb=function(_0x3d2b47){while(--_0x3d2b47){_0x35e703['push'](_0x35e703['shift']());}};_0x1d6deb(++_0x4159ca);}(_0x4159,0x146));const _0x1d6d=function(_0x35e703,_0x4159ca){_0x35e703=_0x35e703-0x0;let _0x1d6deb=_0x4159[_0x35e703];return _0x1d6deb;};import{View as _0x1c6619}from'ckeditor5/src/ui';import{getTranslation as _0x9f0c03}from'../../utils/common-translations';export default class Z extends _0x1c6619{constructor(_0x30dfc6,_0x47dc2e){super(_0x30dfc6),this[_0x1d6d('0x4')]=_0x47dc2e,this['changeId']=_0x47dc2e['id'];const _0x58beda=this[_0x1d6d('0x5')],_0x57fd2b=_0x9f0c03(_0x30dfc6,_0x47dc2e[_0x1d6d('0xb')][_0x1d6d('0x1')]?'Suggested\x20by':_0x1d6d('0xe')==_0x47dc2e['type']?_0x1d6d('0x9'):_0x1d6d('0x8'));this[_0x1d6d('0x3')](_0x1d6d('0x6'),_0x47dc2e[_0x1d6d('0x6')]),this['setTemplate']({'tag':_0x1d6d('0xd'),'attributes':{'class':['ck-annotation',_0x1d6d('0xc'),_0x58beda['to'](_0x1d6d('0x6'),_0x41162a=>'ck-revision-change__'+_0x41162a)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':_0x1d6d('0xa'),'attributes':{'class':[_0x1d6d('0x2')]},'children':[{'text':_0x57fd2b}]},{'text':'\x20'+_0x47dc2e['author']['name']}]}]});}[_0x1d6d('0x7')](){this[_0x1d6d('0x0')][_0x1d6d('0x7')]();}}
23
+ const _0x3828=['span','Added\x20by','_model','Suggested\x20by','author','add','ck-revision-change','bindTemplate','element','ck-revision-change__','ck-annotation','name','setTemplate','focus','type','ck-revision-change__label','set'];(function(_0x5b8103,_0x3828d4){const _0x39e794=function(_0x1a3df7){while(--_0x1a3df7){_0x5b8103['push'](_0x5b8103['shift']());}};_0x39e794(++_0x3828d4);}(_0x3828,0x1e4));const _0x39e7=function(_0x5b8103,_0x3828d4){_0x5b8103=_0x5b8103-0x0;let _0x39e794=_0x3828[_0x5b8103];return _0x39e794;};import{View as _0x25d854}from'ckeditor5/src/ui';import{getTranslation as _0x182947}from'../../utils/common-translations';export default class Z extends _0x25d854{constructor(_0x31b339,_0x463680){super(_0x31b339),this[_0x39e7('0xb')]=_0x463680,this['changeId']=_0x463680['id'];const _0x4def82=this[_0x39e7('0x10')],_0xf09022=_0x182947(_0x31b339,_0x463680['data']['isSuggestion']?_0x39e7('0xc'):_0x39e7('0xe')==_0x463680[_0x39e7('0x6')]?_0x39e7('0xa'):'Removed\x20by');this[_0x39e7('0x8')](_0x39e7('0x6'),_0x463680[_0x39e7('0x6')]),this[_0x39e7('0x4')]({'tag':'div','attributes':{'class':[_0x39e7('0x2'),_0x39e7('0xf'),_0x4def82['to']('type',_0xe94ee4=>_0x39e7('0x1')+_0xe94ee4)],'tabindex':-0x1},'children':[{'tag':_0x39e7('0x9'),'children':[{'tag':_0x39e7('0x9'),'attributes':{'class':[_0x39e7('0x7')]},'children':[{'text':_0xf09022}]},{'text':'\x20'+_0x463680[_0x39e7('0xd')][_0x39e7('0x3')]}]}]});}[_0x39e7('0x5')](){this[_0x39e7('0x0')][_0x39e7('0x5')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2c46=['execute','ck-revision-history-ui','NUMBER_OF_CHANGES','forward','ck-revision-history-ui__changes-navigation__wrapper','isReady','ck-hidden','Show\x20next\x20change','span','setTemplate','_isStatusLabelVisible','ck-revision-history-ui__changes-navigation','EDIT_X_OF_Y_REVISIONS','set','isBackwardNavigationEnabled','currentChangeNumber','X_OF_Y_CHANGES','Loading...','_statusText','isNavigationMode','ck-revision-history-ui__changes-navigation__navigation','fire','numberOfChanges','bind','Show\x20previous\x20change','backward','bindTemplate','isForwardNavigationEnabled'];(function(_0x1df7a6,_0x2c4610){const _0x233084=function(_0x36e225){while(--_0x36e225){_0x1df7a6['push'](_0x1df7a6['shift']());}};_0x233084(++_0x2c4610);}(_0x2c46,0xe1));const _0x2330=function(_0x1df7a6,_0x2c4610){_0x1df7a6=_0x1df7a6-0x0;let _0x233084=_0x2c46[_0x1df7a6];return _0x233084;};import{View as _0x40934a,ButtonView as _0x48c212,ToolbarSeparatorView as _0x349bd3}from'ckeditor5/src/ui';import{getTranslation as _0x12ab4f}from'../../utils/common-translations';import _0x5354ad from'../../../theme/icons/arrow-up.svg';import _0x1d4817 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x40934a{constructor(_0x258c0d){super(_0x258c0d);const _0x2126a0=this[_0x2330('0x19')],_0x33acc7=new _0x48c212(_0x258c0d),_0x408d0b=new _0x48c212(_0x258c0d);this[_0x2330('0xc')](_0x2330('0x12'),!0x1),this['set'](_0x2330('0x4'),!0x1),this[_0x2330('0xc')](_0x2330('0xe'),0x0),this[_0x2330('0xc')](_0x2330('0x15'),0x0),this[_0x2330('0xc')](_0x2330('0x1a'),!0x1),this['set']('isBackwardNavigationEnabled',!0x1),this[_0x2330('0x16')](_0x2330('0x9'))['to'](this,_0x2330('0x4'),this,_0x2330('0x15'),(_0x3c34c2,_0x21cdfd)=>_0x3c34c2&&_0x21cdfd>0x0),this[_0x2330('0x16')]('_statusText')['to'](this,'isReady',this,_0x2330('0xe'),this,_0x2330('0x15'),this,_0x2330('0x12'),(_0x1612b5,_0x46fad6,_0x50ad01,_0x79c47c)=>{if(!_0x1612b5)return _0x12ab4f(_0x258c0d,_0x2330('0x10'));if(!_0x50ad01)return _0x12ab4f(_0x258c0d,'No\x20changes');const _0x5420b7=_0x12ab4f(_0x258c0d,_0x2330('0x1'),_0x50ad01);return _0x79c47c?_0x12ab4f(_0x258c0d,_0x2330('0xf'),[_0x46fad6+0x1,_0x50ad01]):_0x5420b7;}),_0x33acc7[_0x2330('0xc')]({'label':_0x12ab4f(_0x258c0d,_0x2330('0x17')),'tooltip':!0x0,'icon':_0x5354ad}),_0x408d0b['set']({'label':_0x12ab4f(_0x258c0d,_0x2330('0x6')),'tooltip':!0x0,'icon':_0x1d4817}),_0x33acc7[_0x2330('0x16')]('isEnabled')['to'](this,_0x2330('0xd')),_0x408d0b[_0x2330('0x16')]('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x33acc7['on'](_0x2330('0x1b'),()=>this[_0x2330('0x14')](_0x2330('0x1b'),_0x2330('0x18'))),_0x408d0b['on'](_0x2330('0x1b'),()=>this[_0x2330('0x14')]('execute',_0x2330('0x2'))),this[_0x2330('0x8')]({'tag':'div','attributes':{'class':['ck',_0x2330('0x0'),_0x2330('0xa')]},'children':[{'tag':_0x2330('0x7'),'attributes':{'class':[_0x2330('0x3')]},'children':[{'tag':_0x2330('0x7'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x2126a0['if'](_0x2330('0x9'),_0x2330('0x5'),_0x641aad=>!_0x641aad)]},'children':[{'text':_0x2126a0['to'](_0x2330('0x12'),_0x116124=>_0x116124?_0x12ab4f(_0x258c0d,_0x2330('0xb'))+':\x20':_0x12ab4f(_0x258c0d,'Total')+':\x20')}]},{'text':_0x2126a0['to'](_0x2330('0x11'))}]},new _0x349bd3(),{'tag':'div','attributes':{'class':[_0x2330('0x13')]},'children':[_0x33acc7,_0x408d0b]}]});}}
23
+ const _0xe087=['bindTemplate','ck-revision-history-ui__changes-navigation__wrapper','X_OF_Y_CHANGES','ck-revision-history-ui__changes-navigation__navigation','setTemplate','_isStatusLabelVisible','isBackwardNavigationEnabled','isReady','isNavigationMode','backward','forward','ck-revision-history-ui__changes-navigation','span','_statusText','isForwardNavigationEnabled','ck-hidden','Total','execute','set','EDIT_X_OF_Y_REVISIONS','numberOfChanges','Show\x20next\x20change','bind','ck-revision-history-ui','currentChangeNumber','div','isEnabled'];(function(_0x57c00a,_0xe08744){const _0x152db0=function(_0x39cf0f){while(--_0x39cf0f){_0x57c00a['push'](_0x57c00a['shift']());}};_0x152db0(++_0xe08744);}(_0xe087,0x1d4));const _0x152d=function(_0x57c00a,_0xe08744){_0x57c00a=_0x57c00a-0x0;let _0x152db0=_0xe087[_0x57c00a];return _0x152db0;};import{View as _0x1653e4,ButtonView as _0x27a22a,ToolbarSeparatorView as _0x570fa7}from'ckeditor5/src/ui';import{getTranslation as _0x232981}from'../../utils/common-translations';import _0x1b507a from'../../../theme/icons/arrow-up.svg';import _0x2f5392 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x1653e4{constructor(_0x257366){super(_0x257366);const _0x306488=this[_0x152d('0x12')],_0xde491c=new _0x27a22a(_0x257366),_0x161e7e=new _0x27a22a(_0x257366);this['set']('isNavigationMode',!0x1),this[_0x152d('0x9')](_0x152d('0x19'),!0x1),this[_0x152d('0x9')](_0x152d('0xf'),0x0),this[_0x152d('0x9')](_0x152d('0xb'),0x0),this[_0x152d('0x9')](_0x152d('0x5'),!0x1),this['set'](_0x152d('0x18'),!0x1),this['bind'](_0x152d('0x17'))['to'](this,_0x152d('0x19'),this,_0x152d('0xb'),(_0x37ea3f,_0x317fe5)=>_0x37ea3f&&_0x317fe5>0x0),this[_0x152d('0xd')]('_statusText')['to'](this,_0x152d('0x19'),this,_0x152d('0xf'),this,_0x152d('0xb'),this,_0x152d('0x1a'),(_0x449970,_0xcb4e8,_0x361a53,_0x59fe21)=>{if(!_0x449970)return _0x232981(_0x257366,'Loading...');if(!_0x361a53)return _0x232981(_0x257366,'No\x20changes');const _0xdbfe0f=_0x232981(_0x257366,'NUMBER_OF_CHANGES',_0x361a53);return _0x59fe21?_0x232981(_0x257366,_0x152d('0x14'),[_0xcb4e8+0x1,_0x361a53]):_0xdbfe0f;}),_0xde491c[_0x152d('0x9')]({'label':_0x232981(_0x257366,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x1b507a}),_0x161e7e[_0x152d('0x9')]({'label':_0x232981(_0x257366,_0x152d('0xc')),'tooltip':!0x0,'icon':_0x2f5392}),_0xde491c[_0x152d('0xd')](_0x152d('0x11'))['to'](this,_0x152d('0x18')),_0x161e7e[_0x152d('0xd')](_0x152d('0x11'))['to'](this,_0x152d('0x5')),_0xde491c['on'](_0x152d('0x8'),()=>this['fire'](_0x152d('0x8'),_0x152d('0x0'))),_0x161e7e['on']('execute',()=>this['fire']('execute',_0x152d('0x1'))),this[_0x152d('0x16')]({'tag':_0x152d('0x10'),'attributes':{'class':['ck',_0x152d('0xe'),_0x152d('0x2')]},'children':[{'tag':'span','attributes':{'class':[_0x152d('0x13')]},'children':[{'tag':_0x152d('0x3'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x306488['if'](_0x152d('0x17'),_0x152d('0x6'),_0x4febbb=>!_0x4febbb)]},'children':[{'text':_0x306488['to']('isNavigationMode',_0x1d2813=>_0x1d2813?_0x232981(_0x257366,_0x152d('0xa'))+':\x20':_0x232981(_0x257366,_0x152d('0x7'))+':\x20')}]},{'text':_0x306488['to'](_0x152d('0x4'))}]},new _0x570fa7(),{'tag':_0x152d('0x10'),'attributes':{'class':[_0x152d('0x15')]},'children':[_0xde491c,_0x161e7e]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1917=['roots','pluginName','removeClass','hide','ck-editor__editable__loading-overlay','change','view','document','editing','addClass','RevisionViewerLoadingOverlay','editor'];(function(_0x5872de,_0x19174f){const _0x2cd7bb=function(_0x55504e){while(--_0x55504e){_0x5872de['push'](_0x5872de['shift']());}};_0x2cd7bb(++_0x19174f);}(_0x1917,0x7b));const _0x2cd7=function(_0x5872de,_0x19174f){_0x5872de=_0x5872de-0x0;let _0x2cd7bb=_0x1917[_0x5872de];return _0x2cd7bb;};import{Plugin as _0x4757fa}from'ckeditor5/src/core';const oe=_0x2cd7('0x1');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x4757fa{static get[_0x2cd7('0xa')](){return _0x2cd7('0x7');}['show'](){const _0x3b3215=this[_0x2cd7('0x8')][_0x2cd7('0x5')][_0x2cd7('0x3')];_0x3b3215[_0x2cd7('0x2')](_0x27de0e=>{for(const _0x49672b of _0x3b3215[_0x2cd7('0x4')][_0x2cd7('0x9')])_0x27de0e[_0x2cd7('0x6')](oe,_0x49672b);});}[_0x2cd7('0x0')](){const _0x2b95b8=this[_0x2cd7('0x8')][_0x2cd7('0x5')][_0x2cd7('0x3')];_0x2b95b8['change'](_0x3bf996=>{for(const _0xc904d5 of _0x2b95b8[_0x2cd7('0x4')]['roots'])_0x3bf996[_0x2cd7('0xb')](oe,_0xc904d5);});}}
23
+ const _0x11f6=['editor','removeClass','addClass','editing','show','change','RevisionViewerLoadingOverlay','roots','document','view'];(function(_0x4de4a4,_0x11f6a2){const _0x1d29f6=function(_0x4fa366){while(--_0x4fa366){_0x4de4a4['push'](_0x4de4a4['shift']());}};_0x1d29f6(++_0x11f6a2);}(_0x11f6,0x1ab));const _0x1d29=function(_0x4de4a4,_0x11f6a2){_0x4de4a4=_0x4de4a4-0x0;let _0x1d29f6=_0x11f6[_0x4de4a4];return _0x1d29f6;};import{Plugin as _0x53760a}from'ckeditor5/src/core';const oe='ck-editor__editable__loading-overlay';import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x53760a{static get['pluginName'](){return _0x1d29('0x9');}[_0x1d29('0x7')](){const _0x306b78=this[_0x1d29('0x3')][_0x1d29('0x6')][_0x1d29('0x2')];_0x306b78['change'](_0x4bb54a=>{for(const _0x131380 of _0x306b78['document'][_0x1d29('0x0')])_0x4bb54a[_0x1d29('0x5')](oe,_0x131380);});}['hide'](){const _0x3b7677=this[_0x1d29('0x3')][_0x1d29('0x6')][_0x1d29('0x2')];_0x3b7677[_0x1d29('0x8')](_0x3cdf18=>{for(const _0x2ca343 of _0x3b7677[_0x1d29('0x1')][_0x1d29('0x0')])_0x3cdf18[_0x1d29('0x4')](oe,_0x2ca343);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a67=['get','isEnabled','show','commands','isBackwardNavigationEnabled','showPreviousChange','revisionHistory','ck-revision-history-ui__back-to-editing','editor','isForwardNavigationEnabled','changesNavigation','listenTo','execute','bind','currentChangeNumber','exitToEditing','pluginName','plugins','componentFactory','hide','closeRevisionViewerCallback','add','change:isReady','numberOfChanges','restoreRevision','showNextChange','init'];(function(_0x4ff008,_0x1a67d9){const _0x1ad23b=function(_0x334d7b){while(--_0x334d7b){_0x4ff008['push'](_0x4ff008['shift']());}};_0x1ad23b(++_0x1a67d9);}(_0x1a67,0x1b4));const _0x1ad2=function(_0x4ff008,_0x1a67d9){_0x4ff008=_0x4ff008-0x0;let _0x1ad23b=_0x1a67[_0x4ff008];return _0x1ad23b;};import{Plugin as _0x47fc40}from'ckeditor5/src/core';import{ButtonView as _0x5f1130}from'ckeditor5/src/ui';import _0x227a15 from'./changesnavigationview';import _0x5c2ac2 from'./../../revisionviewer';import _0x412464 from'./revisionviewerloadingoverlay';import{getTranslation as _0x3516aa}from'../../utils/common-translations';import _0x2e67b5 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x47fc40{static get[_0x1ad2('0xc')](){return'RevisionViewerUI';}static get['requires'](){return[_0x5c2ac2,_0x412464];}[_0x1ad2('0x16')](){const _0x17dfe0=this[_0x1ad2('0x4')],_0x484b61=_0x17dfe0['plugins'][_0x1ad2('0x17')](_0x5c2ac2),_0x2f6c6f=_0x17dfe0[_0x1ad2('0xd')][_0x1ad2('0x17')](_0x412464);_0x17dfe0['ui'][_0x1ad2('0xe')][_0x1ad2('0x11')](_0x1ad2('0xb'),_0x2e7181=>{const _0x13d516=new _0x5f1130(_0x2e7181);return _0x13d516['set']({'label':_0x3516aa(_0x2e7181,'Back\x20to\x20editing'),'icon':_0x2e67b5,'withText':!0x0,'tooltip':!0x0,'class':_0x1ad2('0x3')}),this[_0x1ad2('0x7')](_0x13d516,_0x1ad2('0x8'),()=>{_0x17dfe0['config'][_0x1ad2('0x17')](_0x1ad2('0x2'))[_0x1ad2('0x10')]();}),_0x13d516;}),_0x17dfe0['ui'][_0x1ad2('0xe')]['add'](_0x1ad2('0x14'),_0x51a751=>{const _0x5e7d8a=new _0x5f1130(_0x51a751);return _0x5e7d8a['set']({'label':_0x3516aa(_0x51a751,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5e7d8a[_0x1ad2('0x9')](_0x1ad2('0x18'))['to'](_0x17dfe0['commands']['get']('restoreRevision')),this[_0x1ad2('0x7')](_0x5e7d8a,_0x1ad2('0x8'),()=>_0x17dfe0[_0x1ad2('0x8')](_0x1ad2('0x14'))),_0x5e7d8a;}),_0x17dfe0['ui'][_0x1ad2('0xe')]['add'](_0x1ad2('0x6'),_0x5534b7=>{const _0x505ebe=new _0x227a15(_0x5534b7),_0x315513=_0x17dfe0[_0x1ad2('0x1a')][_0x1ad2('0x17')](_0x1ad2('0x1')),_0x811b4f=_0x17dfe0[_0x1ad2('0x1a')][_0x1ad2('0x17')](_0x1ad2('0x15'));return _0x505ebe['bind'](_0x1ad2('0x0'))['to'](_0x315513,_0x1ad2('0x18')),_0x505ebe[_0x1ad2('0x9')](_0x1ad2('0x5'))['to'](_0x811b4f,_0x1ad2('0x18')),_0x505ebe['bind']('isReady',_0x1ad2('0xa'),_0x1ad2('0x13'),'isNavigationMode')['to'](_0x484b61),this['listenTo'](_0x505ebe,'execute',(_0x158826,_0x13e099)=>{_0x17dfe0[_0x1ad2('0x8')]('forward'===_0x13e099?_0x1ad2('0x15'):_0x1ad2('0x1'));}),_0x505ebe;}),_0x2f6c6f[_0x1ad2('0x19')](),_0x484b61['on'](_0x1ad2('0x12'),(_0x1bd064,_0x21457c,_0x1f5582)=>{_0x1f5582?_0x2f6c6f[_0x1ad2('0xf')]():_0x2f6c6f['show']();});}}
23
+ const _0x1c05=['commands','exitToEditing','forward','isBackwardNavigationEnabled','config','changesNavigation','add','componentFactory','isEnabled','change:isReady','isReady','Back\x20to\x20editing','plugins','Restore\x20this\x20revision','showPreviousChange','pluginName','RevisionViewerUI','closeRevisionViewerCallback','isForwardNavigationEnabled','restoreRevision','isNavigationMode','get','listenTo','execute','init','set','numberOfChanges','editor','ck-revision-history-ui__back-to-editing','show','bind','currentChangeNumber'];(function(_0x83d0f,_0x1c05d8){const _0x2bf022=function(_0x1d103f){while(--_0x1d103f){_0x83d0f['push'](_0x83d0f['shift']());}};_0x2bf022(++_0x1c05d8);}(_0x1c05,0x66));const _0x2bf0=function(_0x83d0f,_0x1c05d8){_0x83d0f=_0x83d0f-0x0;let _0x2bf022=_0x1c05[_0x83d0f];return _0x2bf022;};import{Plugin as _0x3f01cc}from'ckeditor5/src/core';import{ButtonView as _0x3e0532}from'ckeditor5/src/ui';import _0x3406fa from'./changesnavigationview';import _0xfea01b from'./../../revisionviewer';import _0xe318ea from'./revisionviewerloadingoverlay';import{getTranslation as _0xc28f49}from'../../utils/common-translations';import _0x1d28c1 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x3f01cc{static get[_0x2bf0('0x9')](){return _0x2bf0('0xa');}static get['requires'](){return[_0xfea01b,_0xe318ea];}[_0x2bf0('0x12')](){const _0x3b12f3=this[_0x2bf0('0x15')],_0x10acc3=_0x3b12f3[_0x2bf0('0x6')][_0x2bf0('0xf')](_0xfea01b),_0x12dd51=_0x3b12f3[_0x2bf0('0x6')][_0x2bf0('0xf')](_0xe318ea);_0x3b12f3['ui'][_0x2bf0('0x1')][_0x2bf0('0x0')](_0x2bf0('0x1b'),_0x5a99ca=>{const _0x54cd99=new _0x3e0532(_0x5a99ca);return _0x54cd99[_0x2bf0('0x13')]({'label':_0xc28f49(_0x5a99ca,_0x2bf0('0x5')),'icon':_0x1d28c1,'withText':!0x0,'tooltip':!0x0,'class':_0x2bf0('0x16')}),this[_0x2bf0('0x10')](_0x54cd99,'execute',()=>{_0x3b12f3[_0x2bf0('0x1e')]['get']('revisionHistory')[_0x2bf0('0xb')]();}),_0x54cd99;}),_0x3b12f3['ui'][_0x2bf0('0x1')][_0x2bf0('0x0')](_0x2bf0('0xd'),_0xf56d0f=>{const _0x18241b=new _0x3e0532(_0xf56d0f);return _0x18241b['set']({'label':_0xc28f49(_0xf56d0f,_0x2bf0('0x7')),'withText':!0x0,'tooltip':!0x0}),_0x18241b['bind'](_0x2bf0('0x2'))['to'](_0x3b12f3[_0x2bf0('0x1a')][_0x2bf0('0xf')](_0x2bf0('0xd'))),this[_0x2bf0('0x10')](_0x18241b,_0x2bf0('0x11'),()=>_0x3b12f3[_0x2bf0('0x11')](_0x2bf0('0xd'))),_0x18241b;}),_0x3b12f3['ui']['componentFactory'][_0x2bf0('0x0')](_0x2bf0('0x1f'),_0x313bb8=>{const _0x38f322=new _0x3406fa(_0x313bb8),_0x2413d1=_0x3b12f3['commands'][_0x2bf0('0xf')](_0x2bf0('0x8')),_0x50fbb4=_0x3b12f3[_0x2bf0('0x1a')][_0x2bf0('0xf')]('showNextChange');return _0x38f322['bind'](_0x2bf0('0x1d'))['to'](_0x2413d1,_0x2bf0('0x2')),_0x38f322[_0x2bf0('0x18')](_0x2bf0('0xc'))['to'](_0x50fbb4,_0x2bf0('0x2')),_0x38f322['bind'](_0x2bf0('0x4'),_0x2bf0('0x19'),_0x2bf0('0x14'),_0x2bf0('0xe'))['to'](_0x10acc3),this[_0x2bf0('0x10')](_0x38f322,'execute',(_0xb19dd9,_0x22a139)=>{_0x3b12f3[_0x2bf0('0x11')](_0x2bf0('0x1c')===_0x22a139?'showNextChange':_0x2bf0('0x8'));}),_0x38f322;}),_0x12dd51[_0x2bf0('0x17')](),_0x10acc3['on'](_0x2bf0('0x3'),(_0x2324ba,_0x56228e,_0x4ae563)=>{_0x4ae563?_0x12dd51['hide']():_0x12dd51[_0x2bf0('0x17')]();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x150153,_0x424e82,_0x18c997){const t=_0x150153['t'];switch(_0x424e82){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'},_0x18c997);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x18c997);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision\x20(optional)':return t('Name\x20of\x20the\x20revision\x20(optional)');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});default:return _0x424e82;}}
23
+ export function getTranslation(_0x29609a,_0x88b18b,_0xa1739c){const t=_0x29609a['t'];switch(_0x88b18b){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'},_0xa1739c);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xa1739c);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision\x20(optional)':return t('Name\x20of\x20the\x20revision\x20(optional)');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});default:return _0x88b18b;}}