@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230810.0 → 0.0.0-nightly-20230812.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 _0x29aa=['Save','arrowdown','input','form','ck-revision-history-save-revision-form','_createButton','focus','add','_focusables','delegate','forEach','trim','type','arrowleft','set','render','revisionNameInputView','ck-button-cancel','ck-button-save','stopPropagation','saveButtonView','label','extendTemplate','cancel','fieldView','setTemplate','shift\x20+\x20tab','element','_createRevisionNameInput','value','Name\x20of\x20the\x20revision\x20(optional)','ck-responsive-form','reset','focusTracker','revisionNameInputValue','_focusCycler','focusFirst','cancelButtonView','tab','keystrokes','submit','listenTo'];(function(_0x354447,_0x29aa81){const _0x302f85=function(_0x4e8764){while(--_0x4e8764){_0x354447['push'](_0x354447['shift']());}};_0x302f85(++_0x29aa81);}(_0x29aa,0x143));const _0x302f=function(_0x354447,_0x29aa81){_0x354447=_0x354447-0x0;let _0x302f85=_0x29aa[_0x354447];return _0x302f85;};import{icons as _0x573e31}from'ckeditor5/src/core';import{ButtonView as _0x48670f,FocusCycler as _0x5020bf,LabeledFieldView as _0x413760,View as _0xc19c0d,ViewCollection as _0x41ba38,createLabeledInputText as _0x46978f,injectCssTransitionDisabler as _0x1a6639,submitHandler as _0x3fad62}from'ckeditor5/src/ui';import{FocusTracker as _0x5648e1,KeystrokeHandler as _0x116d18}from'ckeditor5/src/utils';import{getTranslation as _0x888144}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0xc19c0d{constructor(_0x242e13){super(_0x242e13),this[_0x302f('0x4')]=new _0x5648e1(),this[_0x302f('0xa')]=new _0x116d18(),this['set'](_0x302f('0x5'),''),this['revisionNameInputView']=this[_0x302f('0x29')](),this[_0x302f('0x21')]=this[_0x302f('0x12')](_0x888144(_0x242e13,_0x302f('0xd')),_0x573e31['check'],_0x302f('0x1f')),this[_0x302f('0x21')][_0x302f('0x19')]=_0x302f('0xb'),this[_0x302f('0x8')]=this[_0x302f('0x12')](_0x888144(_0x242e13,'Cancel'),_0x573e31[_0x302f('0x24')],_0x302f('0x1e'),_0x302f('0x24')),this[_0x302f('0x15')]=new _0x41ba38(),this[_0x302f('0x6')]=new _0x5020bf({'focusables':this['_focusables'],'focusTracker':this[_0x302f('0x4')],'keystrokeHandler':this[_0x302f('0xa')],'actions':{'focusPrevious':_0x302f('0x27'),'focusNext':_0x302f('0x9')}}),this[_0x302f('0x26')]({'tag':_0x302f('0x10'),'attributes':{'class':['ck',_0x302f('0x11'),_0x302f('0x2')],'tabindex':'-1'},'children':[this[_0x302f('0x1d')],this['saveButtonView'],this[_0x302f('0x8')]]}),_0x1a6639(this);}['render'](){super[_0x302f('0x1c')](),_0x3fad62({'view':this}),([this[_0x302f('0x1d')],this['saveButtonView'],this[_0x302f('0x8')]][_0x302f('0x17')](_0x3ebf7a=>{this[_0x302f('0x15')][_0x302f('0x14')](_0x3ebf7a),this[_0x302f('0x4')][_0x302f('0x14')](_0x3ebf7a[_0x302f('0x28')]);}),this[_0x302f('0xa')][_0x302f('0xc')](this[_0x302f('0x28')]));const _0x14a8ce=_0x1fc535=>_0x1fc535[_0x302f('0x20')]();this[_0x302f('0xa')][_0x302f('0x1b')]('arrowright',_0x14a8ce),this[_0x302f('0xa')][_0x302f('0x1b')](_0x302f('0x1a'),_0x14a8ce),this['keystrokes'][_0x302f('0x1b')]('arrowup',_0x14a8ce),this['keystrokes']['set'](_0x302f('0xe'),_0x14a8ce);}[_0x302f('0x13')](){this[_0x302f('0x6')][_0x302f('0x7')]();}get['revisionName'](){return this[_0x302f('0x1d')]['fieldView'][_0x302f('0x28')][_0x302f('0x0')][_0x302f('0x18')]();}set['revisionName'](_0x2e5c17){this['revisionNameInputView'][_0x302f('0x25')][_0x302f('0x28')][_0x302f('0x0')]=_0x2e5c17[_0x302f('0x18')]();}[_0x302f('0x3')](){this[_0x302f('0x1d')][_0x302f('0x25')][_0x302f('0x28')]['value']='';}[_0x302f('0x29')](){const _0x342f40=new _0x413760(this['locale'],_0x46978f),_0x5f3f96=_0x342f40[_0x302f('0x25')];return _0x5f3f96[_0x302f('0x23')]({'attributes':{'maxlength':'220'}}),_0x342f40[_0x302f('0x22')]=_0x888144(this['locale'],_0x302f('0x1')),_0x5f3f96['on'](_0x302f('0xf'),()=>{this['revisionNameInputValue']=_0x5f3f96[_0x302f('0x28')][_0x302f('0x0')][_0x302f('0x18')]();}),_0x342f40;}[_0x302f('0x12')](_0x983eaa,_0x1bb05a,_0x4ad3b5,_0x1cca5b){const _0x312a83=new _0x48670f(this['locale']);return _0x312a83['set']({'label':_0x983eaa,'icon':_0x1bb05a,'tooltip':!0x0}),_0x312a83[_0x302f('0x23')]({'attributes':{'class':_0x4ad3b5}}),_0x1cca5b&&_0x312a83[_0x302f('0x16')]('execute')['to'](this,_0x1cca5b),_0x312a83;}}
23
+ const _0x48a1=['ck-revision-history-save-revision-form','keystrokes','value','trim','delegate','fieldView','render','ck-button-save','Save','_createButton','cancel','_createRevisionNameInput','forEach','revisionName','revisionNameInputView','reset','form','element','locale','220','setTemplate','set','extendTemplate','cancelButtonView','submit','ck-button-cancel','Name\x20of\x20the\x20revision\x20(optional)','shift\x20+\x20tab','_focusables','focusTracker','type','saveButtonView','listenTo','revisionNameInputValue','add','arrowup','arrowright','check','focus','focusFirst','ck-responsive-form','_focusCycler','arrowdown','arrowleft'];(function(_0x20262c,_0x48a17d){const _0x466083=function(_0x283188){while(--_0x283188){_0x20262c['push'](_0x20262c['shift']());}};_0x466083(++_0x48a17d);}(_0x48a1,0xeb));const _0x4660=function(_0x20262c,_0x48a17d){_0x20262c=_0x20262c-0x0;let _0x466083=_0x48a1[_0x20262c];return _0x466083;};import{icons as _0x4e70e1}from'ckeditor5/src/core';import{ButtonView as _0x579a48,FocusCycler as _0x21a49b,LabeledFieldView as _0x1294d0,View as _0x2d6ac8,ViewCollection as _0x1995d4,createLabeledInputText as _0x5ebbf5,injectCssTransitionDisabler as _0x2e406d,submitHandler as _0x36c171}from'ckeditor5/src/ui';import{FocusTracker as _0x2ea00b,KeystrokeHandler as _0x97b223}from'ckeditor5/src/utils';import{getTranslation as _0x2a7f05}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x2d6ac8{constructor(_0x18fb12){super(_0x18fb12),this[_0x4660('0xe')]=new _0x2ea00b(),this[_0x4660('0x1e')]=new _0x97b223(),this[_0x4660('0x6')]('revisionNameInputValue',''),this[_0x4660('0x2b')]=this[_0x4660('0x28')](),this[_0x4660('0x10')]=this[_0x4660('0x26')](_0x2a7f05(_0x18fb12,_0x4660('0x25')),_0x4e70e1[_0x4660('0x16')],_0x4660('0x24')),this['saveButtonView'][_0x4660('0xf')]=_0x4660('0x9'),this['cancelButtonView']=this[_0x4660('0x26')](_0x2a7f05(_0x18fb12,'Cancel'),_0x4e70e1['cancel'],_0x4660('0xa'),_0x4660('0x27')),this[_0x4660('0xd')]=new _0x1995d4(),this[_0x4660('0x1a')]=new _0x21a49b({'focusables':this[_0x4660('0xd')],'focusTracker':this[_0x4660('0xe')],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':_0x4660('0xc'),'focusNext':'tab'}}),this[_0x4660('0x5')]({'tag':_0x4660('0x1'),'attributes':{'class':['ck',_0x4660('0x1d'),_0x4660('0x19')],'tabindex':'-1'},'children':[this['revisionNameInputView'],this[_0x4660('0x10')],this[_0x4660('0x8')]]}),_0x2e406d(this);}[_0x4660('0x23')](){super[_0x4660('0x23')](),_0x36c171({'view':this}),([this['revisionNameInputView'],this[_0x4660('0x10')],this['cancelButtonView']][_0x4660('0x29')](_0x46b5ba=>{this[_0x4660('0xd')]['add'](_0x46b5ba),this[_0x4660('0xe')][_0x4660('0x13')](_0x46b5ba[_0x4660('0x2')]);}),this[_0x4660('0x1e')][_0x4660('0x11')](this['element']));const _0x483228=_0x18cab9=>_0x18cab9['stopPropagation']();this[_0x4660('0x1e')]['set'](_0x4660('0x15'),_0x483228),this[_0x4660('0x1e')][_0x4660('0x6')](_0x4660('0x1c'),_0x483228),this[_0x4660('0x1e')][_0x4660('0x6')](_0x4660('0x14'),_0x483228),this[_0x4660('0x1e')]['set'](_0x4660('0x1b'),_0x483228);}[_0x4660('0x17')](){this[_0x4660('0x1a')][_0x4660('0x18')]();}get['revisionName'](){return this[_0x4660('0x2b')][_0x4660('0x22')][_0x4660('0x2')][_0x4660('0x1f')]['trim']();}set[_0x4660('0x2a')](_0x4c3a12){this[_0x4660('0x2b')][_0x4660('0x22')][_0x4660('0x2')][_0x4660('0x1f')]=_0x4c3a12[_0x4660('0x20')]();}[_0x4660('0x0')](){this['revisionNameInputView'][_0x4660('0x22')][_0x4660('0x2')]['value']='';}[_0x4660('0x28')](){const _0x1b4b4b=new _0x1294d0(this[_0x4660('0x3')],_0x5ebbf5),_0xf7dcc7=_0x1b4b4b[_0x4660('0x22')];return _0xf7dcc7[_0x4660('0x7')]({'attributes':{'maxlength':_0x4660('0x4')}}),_0x1b4b4b['label']=_0x2a7f05(this[_0x4660('0x3')],_0x4660('0xb')),_0xf7dcc7['on']('input',()=>{this[_0x4660('0x12')]=_0xf7dcc7[_0x4660('0x2')][_0x4660('0x1f')][_0x4660('0x20')]();}),_0x1b4b4b;}['_createButton'](_0xff08fb,_0x2bbf61,_0x1e84e3,_0x33e143){const _0x306506=new _0x579a48(this['locale']);return _0x306506['set']({'label':_0xff08fb,'icon':_0x2bbf61,'tooltip':!0x0}),_0x306506['extendTemplate']({'attributes':{'class':_0x1e84e3}}),_0x33e143&&_0x306506[_0x4660('0x21')]('execute')['to'](this,_0x33e143),_0x306506;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2b2d=['set','saveRevision','cancel','editor','panelView','submit','pluginName','items','get','length','RevisionHistoryUI','revisionHistory','focus','isReadOnly','remove','children','isEnabled','execute','plugins','add','buttonView','isReady','editing','isOpen','bind','requires','RevisionTracker','render','change:isOpen','showRevisionViewerCallback'];(function(_0x38d816,_0x2b2ddc){const _0x221345=function(_0x2f7b8f){while(--_0x2f7b8f){_0x38d816['push'](_0x38d816['shift']());}};_0x221345(++_0x2b2ddc);}(_0x2b2d,0x72));const _0x2213=function(_0x38d816,_0x2b2ddc){_0x38d816=_0x38d816-0x0;let _0x221345=_0x2b2d[_0x38d816];return _0x221345;};import{Plugin as _0x238357}from'ckeditor5/src/core';import{ListView as _0xf1a374,ListItemView as _0x285ea4,ButtonView as _0x5dce5d,createDropdown as _0x30e745}from'ckeditor5/src/ui';import _0x6ddf5e from'../../revisiontracker';import _0x1b0b7f from'./revisionhistorysaverevisionformview';import _0x39203a from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x3c0124}from'../../utils/common-translations';export default class u extends _0x238357{static get[_0x2213('0xc')](){return _0x2213('0x10');}static get[_0x2213('0x1')](){return[_0x6ddf5e];}['init'](){const _0x3c8c7b=this[_0x2213('0x9')],_0x8037e=_0x3c8c7b['plugins'][_0x2213('0xe')](_0x2213('0x2'));_0x3c8c7b['ui']['componentFactory'][_0x2213('0x19')](_0x2213('0x11'),_0x1732f7=>{const _0x6e6bb3=_0x30e745(_0x1732f7),_0x2ad1da=_0x6e6bb3[_0x2213('0xa')][_0x2213('0x15')],_0x57d614=new _0xf1a374(_0x1732f7),_0x297d9b=new _0x285ea4(_0x1732f7),_0x54c811=new _0x5dce5d(_0x1732f7),_0x39c9d6=new _0x285ea4(_0x1732f7),_0x44c47b=new _0x5dce5d(_0x1732f7),_0x7f5727=new _0x1b0b7f(_0x1732f7);function _0x35fece(){_0x2ad1da[_0x2213('0xf')]&&_0x2ad1da['remove'](0x0),_0x2ad1da['add'](_0x57d614);}function _0x4c7361(){_0x6e6bb3[_0x2213('0x1d')]=!0x1,_0x3c8c7b[_0x2213('0x1c')]['view'][_0x2213('0x12')]();}return _0x6e6bb3['bind'](_0x2213('0x16'))['to'](_0x8037e,_0x2213('0x1b'),_0x8037e,'isEnabled',_0x3c8c7b,_0x2213('0x13'),(_0x57ba5f,_0x14c01c,_0x3771c2)=>_0x57ba5f&&_0x14c01c&&!_0x3771c2),_0x6e6bb3[_0x2213('0x1a')][_0x2213('0x6')]({'icon':_0x39203a,'label':_0x3c0124(_0x1732f7,'Revision\x20history'),'tooltip':!0x0}),_0x54c811[_0x2213('0x6')]({'label':_0x3c0124(_0x1732f7,'Save\x20current\x20revision'),'withText':!0x0}),_0x54c811[_0x2213('0x0')](_0x2213('0x16'))['to'](_0x8037e,_0x2213('0x1b'),_0x8037e,_0x2213('0x16'),_0x3c8c7b,_0x2213('0x13'),(_0x589d07,_0x41ee53,_0x31596f)=>_0x589d07&&_0x41ee53&&!_0x31596f),_0x54c811['on'](_0x2213('0x17'),()=>function(){_0x2ad1da[_0x2213('0xf')]&&_0x2ad1da[_0x2213('0x14')](0x0),(_0x7f5727['reset'](),_0x2ad1da[_0x2213('0x19')](_0x7f5727),_0x7f5727[_0x2213('0x12')]());}()),_0x44c47b[_0x2213('0x6')]({'label':_0x3c0124(_0x1732f7,'Open\x20revision\x20history'),'withText':!0x0}),_0x44c47b['bind']('isEnabled')['to'](_0x8037e,_0x2213('0x1b'),_0x3c8c7b,_0x2213('0x13'),(_0x975594,_0x19908)=>_0x975594&&!_0x19908),_0x44c47b['on']('execute',()=>{_0x3c8c7b['config'][_0x2213('0xe')](_0x2213('0x11'))[_0x2213('0x5')](),_0x4c7361();}),_0x297d9b[_0x2213('0x15')][_0x2213('0x19')](_0x54c811),_0x39c9d6[_0x2213('0x15')][_0x2213('0x19')](_0x44c47b),_0x57d614[_0x2213('0xd')]['addMany']([_0x297d9b,_0x39c9d6]),_0x6e6bb3['on'](_0x2213('0x4'),()=>_0x35fece()),_0x7f5727['saveButtonView'][_0x2213('0x0')](_0x2213('0x16'))['to'](_0x8037e,_0x2213('0x1b'),_0x8037e,_0x2213('0x16'),_0x3c8c7b,_0x2213('0x13'),(_0xb48289,_0x1c46d7,_0x5d3d73)=>_0xb48289&&_0x1c46d7&&!_0x5d3d73),_0x7f5727['on'](_0x2213('0xb'),()=>(_0x3c8c7b[_0x2213('0x18')][_0x2213('0xe')](_0x6ddf5e)[_0x2213('0x7')]({'name':_0x7f5727['revisionName']}),void _0x4c7361())),_0x7f5727['on'](_0x2213('0x8'),()=>_0x35fece()),_0x7f5727[_0x2213('0x3')](),_0x35fece(),_0x6e6bb3;});}}
23
+ const _0x290d=['isOpen','view','isReady','add','set','get','addMany','pluginName','remove','cancel','saveRevision','panelView','length','buttonView','revisionHistory','bind','saveButtonView','isReadOnly','execute','RevisionTracker','config','componentFactory','change:isOpen','children','plugins','focus','isEnabled','showRevisionViewerCallback'];(function(_0x65f520,_0x290d98){const _0x2ea347=function(_0x58aaff){while(--_0x58aaff){_0x65f520['push'](_0x65f520['shift']());}};_0x2ea347(++_0x290d98);}(_0x290d,0x7e));const _0x2ea3=function(_0x65f520,_0x290d98){_0x65f520=_0x65f520-0x0;let _0x2ea347=_0x290d[_0x65f520];return _0x2ea347;};import{Plugin as _0x26274c}from'ckeditor5/src/core';import{ListView as _0x2f0927,ListItemView as _0x517b17,ButtonView as _0x2cefef,createDropdown as _0x2a6ecc}from'ckeditor5/src/ui';import _0x565edc from'../../revisiontracker';import _0x37dc1f from'./revisionhistorysaverevisionformview';import _0x424f12 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x55b92e}from'../../utils/common-translations';export default class u extends _0x26274c{static get[_0x2ea3('0x15')](){return'RevisionHistoryUI';}static get['requires'](){return[_0x565edc];}['init'](){const _0x24bce9=this['editor'],_0x38db1c=_0x24bce9[_0x2ea3('0xa')][_0x2ea3('0x13')](_0x2ea3('0x5'));_0x24bce9['ui'][_0x2ea3('0x7')][_0x2ea3('0x11')](_0x2ea3('0x0'),_0x34c20a=>{const _0xb26c56=_0x2a6ecc(_0x34c20a),_0x248af2=_0xb26c56[_0x2ea3('0x19')][_0x2ea3('0x9')],_0x1261e9=new _0x2f0927(_0x34c20a),_0x1cb0f9=new _0x517b17(_0x34c20a),_0x4fc8a6=new _0x2cefef(_0x34c20a),_0x52bd8f=new _0x517b17(_0x34c20a),_0x3820d6=new _0x2cefef(_0x34c20a),_0x2e92be=new _0x37dc1f(_0x34c20a);function _0x24a443(){_0x248af2[_0x2ea3('0x1a')]&&_0x248af2[_0x2ea3('0x16')](0x0),_0x248af2[_0x2ea3('0x11')](_0x1261e9);}function _0xa5b8ea(){_0xb26c56[_0x2ea3('0xe')]=!0x1,_0x24bce9['editing'][_0x2ea3('0xf')][_0x2ea3('0xb')]();}return _0xb26c56['bind']('isEnabled')['to'](_0x38db1c,_0x2ea3('0x10'),_0x38db1c,_0x2ea3('0xc'),_0x24bce9,_0x2ea3('0x3'),(_0x3e24d2,_0x47d3db,_0x105634)=>_0x3e24d2&&_0x47d3db&&!_0x105634),_0xb26c56[_0x2ea3('0x1b')][_0x2ea3('0x12')]({'icon':_0x424f12,'label':_0x55b92e(_0x34c20a,'Revision\x20history'),'tooltip':!0x0}),_0x4fc8a6['set']({'label':_0x55b92e(_0x34c20a,'Save\x20current\x20revision'),'withText':!0x0}),_0x4fc8a6[_0x2ea3('0x1')]('isEnabled')['to'](_0x38db1c,'isReady',_0x38db1c,'isEnabled',_0x24bce9,'isReadOnly',(_0x229788,_0x51d533,_0x179ee7)=>_0x229788&&_0x51d533&&!_0x179ee7),_0x4fc8a6['on'](_0x2ea3('0x4'),()=>function(){_0x248af2[_0x2ea3('0x1a')]&&_0x248af2[_0x2ea3('0x16')](0x0),(_0x2e92be['reset'](),_0x248af2[_0x2ea3('0x11')](_0x2e92be),_0x2e92be[_0x2ea3('0xb')]());}()),_0x3820d6['set']({'label':_0x55b92e(_0x34c20a,'Open\x20revision\x20history'),'withText':!0x0}),_0x3820d6['bind'](_0x2ea3('0xc'))['to'](_0x38db1c,_0x2ea3('0x10'),_0x24bce9,_0x2ea3('0x3'),(_0x23be89,_0x2bdc4d)=>_0x23be89&&!_0x2bdc4d),_0x3820d6['on'](_0x2ea3('0x4'),()=>{_0x24bce9[_0x2ea3('0x6')][_0x2ea3('0x13')](_0x2ea3('0x0'))[_0x2ea3('0xd')](),_0xa5b8ea();}),_0x1cb0f9[_0x2ea3('0x9')]['add'](_0x4fc8a6),_0x52bd8f[_0x2ea3('0x9')][_0x2ea3('0x11')](_0x3820d6),_0x1261e9['items'][_0x2ea3('0x14')]([_0x1cb0f9,_0x52bd8f]),_0xb26c56['on'](_0x2ea3('0x8'),()=>_0x24a443()),_0x2e92be[_0x2ea3('0x2')][_0x2ea3('0x1')](_0x2ea3('0xc'))['to'](_0x38db1c,_0x2ea3('0x10'),_0x38db1c,_0x2ea3('0xc'),_0x24bce9,'isReadOnly',(_0x282da7,_0x2ffce3,_0x25b275)=>_0x282da7&&_0x2ffce3&&!_0x25b275),_0x2e92be['on']('submit',()=>(_0x24bce9['plugins'][_0x2ea3('0x13')](_0x565edc)[_0x2ea3('0x18')]({'name':_0x2e92be['revisionName']}),void _0xa5b8ea())),_0x2e92be['on'](_0x2ea3('0x17'),()=>_0x24a443()),_0x2e92be['render'](),_0x24a443(),_0xb26c56;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4d64=['element','pluginName','plugins','selectRevision','bind','revisionViews','_handleRevisionSelected','destroy','repository','revisionSetName','_handleEditorDataReady','_revisions','Name\x20this\x20revision','timePeriodViews','_handleDiffChange','fieldView','remove','appendChild','action','editor','assign','render','init','focus','string','Compare\x20against\x20selected','name','Restore\x20this\x20revision','isReady','diff','_handleRevisionSetName','listenTo','_sidebarView','nameRevision','getEarlierVisibleRevision','compareAgainstSelected','highlightRevisions','isVisible','_revisionViewer','get','isEnabled','config','restoreRevisionCallback','getRevisionsInDiff','getIndex','ready','select','availableRevisionActions','getRevision','revisionSelected','_createRevisionActions','compare','restoreRevision','setName','defaultRevisionActions','getLaterVisibleRevision','add','_revisionsRepository'];(function(_0x595562,_0x4d64aa){const _0xa044f4=function(_0x843ef8){while(--_0x843ef8){_0x595562['push'](_0x595562['shift']());}};_0xa044f4(++_0x4d64aa);}(_0x4d64,0x1db));const _0xa044=function(_0x595562,_0x4d64aa){_0x595562=_0x595562-0x0;let _0xa044f4=_0x4d64[_0x595562];return _0xa044f4;};import{Plugin as _0x23b58b}from'ckeditor5/src/core';import _0x1b40da from'./revisionssidebarview';import _0x1340ae from'../../revisionviewer';export default class w extends _0x23b58b{static get[_0xa044('0x30')](){return'RevisionsSidebar';}static get['requires'](){return[_0x1340ae];}constructor(_0x344650){super(_0x344650),this[_0xa044('0x1b')]=_0x344650[_0xa044('0x31')][_0xa044('0x1c')](_0x1340ae),this[_0xa044('0x2e')]=this[_0xa044('0x1b')][_0xa044('0x37')],this['_sidebarView']=null;}[_0xa044('0xb')](){const _0x393f13=this['_revisionsRepository'][_0xa044('0x0')],_0x4ab59f=this[_0xa044('0x27')](),_0x508553=this[_0xa044('0x8')][_0xa044('0x1e')][_0xa044('0x1c')]('revisionHistory.viewerSidebarContainer');this[_0xa044('0x15')]=new _0x1b40da(this[_0xa044('0x8')]['locale'],_0x393f13,_0x4ab59f),this['_sidebarView']['on'](_0xa044('0x26'),this[_0xa044('0x35')][_0xa044('0x33')](this)),this[_0xa044('0x15')]['on'](_0xa044('0x38'),this[_0xa044('0x13')][_0xa044('0x33')](this)),this[_0xa044('0x15')][_0xa044('0x33')](_0xa044('0x1d'))['to'](this[_0xa044('0x1b')]),this[_0xa044('0x15')][_0xa044('0x2')]['on'](_0xa044('0x2d'),(_0x2a6397,_0x2560c5)=>{_0x2560c5[_0xa044('0x34')]['on']('add',(_0x6366ab,_0x45b20d)=>{_0x45b20d[_0xa044('0x33')](_0xa044('0x1d'),_0xa044('0x11'))['to'](this[_0xa044('0x1b')]);});}),this[_0xa044('0x15')][_0xa044('0xa')](),this[_0xa044('0x14')](this['editor']['data'],_0xa044('0x22'),this[_0xa044('0x39')][_0xa044('0x33')](this)),this[_0xa044('0x14')](this['_revisionViewer'],'change:diff',this[_0xa044('0x3')][_0xa044('0x33')](this)),_0x508553[_0xa044('0x6')](this['_sidebarView'][_0xa044('0x2f')]);}[_0xa044('0x36')](){this[_0xa044('0x15')]['element'][_0xa044('0x5')](),this[_0xa044('0x15')][_0xa044('0x36')]();}[_0xa044('0x39')](){const _0x3cd8ca=this['_revisionsRepository']['getRevision'](0x0);if(_0x3cd8ca){const _0x3e5eda=this[_0xa044('0x2e')][_0xa044('0x17')](_0x3cd8ca['id']);this[_0xa044('0x1b')][_0xa044('0x28')](_0x3cd8ca,_0x3e5eda);}}[_0xa044('0x35')](_0x134880,_0x34eaa4){const _0x546da3=this['_revisionsRepository'][_0xa044('0x25')](_0x34eaa4['id']),_0xb0dfcb=this[_0xa044('0x2e')][_0xa044('0x17')](_0x546da3['id']);this[_0xa044('0x1b')][_0xa044('0x28')](_0x546da3,_0xb0dfcb);}[_0xa044('0x13')](_0x5f46bb,_0x5ab154){this[_0xa044('0x2e')][_0xa044('0x25')](_0x5ab154['id'])[_0xa044('0x2a')](_0x5ab154[_0xa044('0xf')]);}['_handleDiffChange'](_0x875d2c,_0x4e5c7d,_0x186af7){const _0x1c3b49=this[_0xa044('0x2e')][_0xa044('0x20')](_0x186af7);_0x1c3b49['length']>0x2?(this['_sidebarView'][_0xa044('0x19')](_0x1c3b49),this[_0xa044('0x15')][_0xa044('0x32')](null)):(this[_0xa044('0x15')][_0xa044('0x19')]([]),this[_0xa044('0x15')]['selectRevision'](_0x1c3b49[0x0]));}[_0xa044('0x27')](){const _0x3868fc=this['editor'],_0x42733d=w[_0xa044('0x24')],_0x35fda4=_0x3868fc[_0xa044('0x1e')][_0xa044('0x1c')]('revisionHistory.revisionActions')||w[_0xa044('0x2b')];if(_0x35fda4['length'])return _0x35fda4['map'](_0x53aca4=>{const _0x1e06a7=_0xa044('0xd')==typeof _0x53aca4?Object[_0xa044('0x9')]({},_0x42733d[_0x53aca4]):_0x53aca4;return _0x1e06a7[_0xa044('0x7')]=_0x1e06a7['action'][_0xa044('0x33')](this,_0x3868fc),_0x1e06a7[_0xa044('0x1a')]&&(_0x1e06a7[_0xa044('0x1a')]=_0x1e06a7[_0xa044('0x1a')]['bind'](this,_0x3868fc)),_0x1e06a7;});}}w['availableRevisionActions']={'compareAgainstSelected':{'name':_0xa044('0xe'),'action':({plugins:_0xec81c3},_0x5f306e)=>{const _0x586fc5=_0xec81c3[_0xa044('0x1c')](_0x1340ae),_0x20b1a7=_0x586fc5[_0xa044('0x37')];let _0x24621f=_0x586fc5['diff']['newRevisionId'],_0x112cf7=_0x5f306e['id'];_0x20b1a7[_0xa044('0x21')](_0x24621f)>_0x20b1a7[_0xa044('0x21')](_0x112cf7)&&([_0x24621f,_0x112cf7]=[_0x112cf7,_0x24621f]),_0x586fc5[_0xa044('0x28')](_0x24621f,_0x112cf7);},'isVisible':({plugins:_0xa27ae9},_0x53f4b6)=>{const _0x28e228=_0xa27ae9[_0xa044('0x1c')](_0x1340ae);return!(_0x28e228[_0xa044('0x37')][_0xa044('0x20')](_0x28e228[_0xa044('0x12')])['length']>0x2)&&!_0x53f4b6['isSelected'];}},'restoreRevision':{'name':_0xa044('0x10'),'action':(_0x3e1acc,{id:_0x77e728})=>{_0x3e1acc[_0xa044('0x1e')][_0xa044('0x1c')]('revisionHistory')[_0xa044('0x1f')](_0x77e728);},'isVisible':({plugins:_0x4e3849},_0x5e77c5)=>!!_0x4e3849[_0xa044('0x1c')](_0x1340ae)[_0xa044('0x37')][_0xa044('0x2c')](_0x5e77c5['id'])},'nameRevision':{'name':_0xa044('0x1'),'action':({plugins:_0xeef950},{id:_0x1c7885,revisionNameView:_0x2c36c3})=>{const _0x251c0e=_0xeef950['get'](_0x1340ae),_0x4c8efd=_0x251c0e[_0xa044('0x37')][_0xa044('0x17')](_0x1c7885);_0x251c0e['compare'](_0x1c7885,_0x4c8efd),_0x2c36c3[_0xa044('0xc')](),_0x2c36c3[_0xa044('0x4')][_0xa044('0x23')]();}}},w[_0xa044('0x2b')]=[_0xa044('0x18'),_0xa044('0x29'),_0xa044('0x16')];
23
+ const _0xfb15=['pluginName','revisionViews','data','map','fieldView','restoreRevisionCallback','getEarlierVisibleRevision','isEnabled','_revisions','repository','editor','_sidebarView','revisionHistory.revisionActions','element','_revisionsRepository','_handleDiffChange','render','locale','add','isReady','diff','compareAgainstSelected','availableRevisionActions','highlightRevisions','defaultRevisionActions','getRevision','ready','config','newRevisionId','action','requires','nameRevision','revisionHistory.viewerSidebarContainer','setName','_revisionViewer','compare','_handleEditorDataReady','name','destroy','getLaterVisibleRevision','getIndex','_createRevisionActions','assign','get','_handleRevisionSetName','change:diff','selectRevision','bind','isVisible','_handleRevisionSelected','plugins','Compare\x20against\x20selected','timePeriodViews','appendChild','remove','Name\x20this\x20revision','getRevisionsInDiff','RevisionsSidebar','init','length','revisionSelected','restoreRevision','string','select'];(function(_0x59356c,_0xfb156b){const _0x1a95b9=function(_0x43e5a6){while(--_0x43e5a6){_0x59356c['push'](_0x59356c['shift']());}};_0x1a95b9(++_0xfb156b);}(_0xfb15,0x1db));const _0x1a95=function(_0x59356c,_0xfb156b){_0x59356c=_0x59356c-0x0;let _0x1a95b9=_0xfb15[_0x59356c];return _0x1a95b9;};import{Plugin as _0x597f75}from'ckeditor5/src/core';import _0x23ef1e from'./revisionssidebarview';import _0x94bac7 from'../../revisionviewer';export default class w extends _0x597f75{static get[_0x1a95('0x25')](){return _0x1a95('0x1e');}static get[_0x1a95('0x3')](){return[_0x94bac7];}constructor(_0x1ace8c){super(_0x1ace8c),this[_0x1a95('0x7')]=_0x1ace8c[_0x1a95('0x17')][_0x1a95('0x10')](_0x94bac7),this['_revisionsRepository']=this[_0x1a95('0x7')]['repository'],this[_0x1a95('0x30')]=null;}[_0x1a95('0x1f')](){const _0x3cc675=this[_0x1a95('0x33')][_0x1a95('0x2d')],_0x3cdcda=this[_0x1a95('0xe')](),_0x706434=this[_0x1a95('0x2f')][_0x1a95('0x0')][_0x1a95('0x10')](_0x1a95('0x5'));this[_0x1a95('0x30')]=new _0x23ef1e(this[_0x1a95('0x2f')][_0x1a95('0x36')],_0x3cc675,_0x3cdcda),this[_0x1a95('0x30')]['on'](_0x1a95('0x21'),this[_0x1a95('0x16')][_0x1a95('0x14')](this)),this[_0x1a95('0x30')]['on']('revisionSetName',this[_0x1a95('0x11')][_0x1a95('0x14')](this)),this[_0x1a95('0x30')][_0x1a95('0x14')](_0x1a95('0x2c'))['to'](this['_revisionViewer']),this[_0x1a95('0x30')][_0x1a95('0x19')]['on'](_0x1a95('0x37'),(_0x8e7792,_0x32cfc1)=>{_0x32cfc1[_0x1a95('0x26')]['on'](_0x1a95('0x37'),(_0x2b70f6,_0x54517f)=>{_0x54517f[_0x1a95('0x14')]('isEnabled',_0x1a95('0x38'))['to'](this[_0x1a95('0x7')]);});}),this[_0x1a95('0x30')][_0x1a95('0x35')](),this['listenTo'](this[_0x1a95('0x2f')][_0x1a95('0x27')],_0x1a95('0x3f'),this[_0x1a95('0x9')][_0x1a95('0x14')](this)),this['listenTo'](this[_0x1a95('0x7')],_0x1a95('0x12'),this[_0x1a95('0x34')]['bind'](this)),_0x706434[_0x1a95('0x1a')](this['_sidebarView'][_0x1a95('0x32')]);}[_0x1a95('0xb')](){this[_0x1a95('0x30')][_0x1a95('0x32')][_0x1a95('0x1b')](),this[_0x1a95('0x30')][_0x1a95('0xb')]();}[_0x1a95('0x9')](){const _0x10c2ad=this[_0x1a95('0x33')][_0x1a95('0x3e')](0x0);if(_0x10c2ad){const _0x12fb59=this['_revisionsRepository'][_0x1a95('0x2b')](_0x10c2ad['id']);this[_0x1a95('0x7')]['compare'](_0x10c2ad,_0x12fb59);}}[_0x1a95('0x16')](_0x3861e4,_0x249d2a){const _0x1be70b=this[_0x1a95('0x33')][_0x1a95('0x3e')](_0x249d2a['id']),_0x363da9=this[_0x1a95('0x33')][_0x1a95('0x2b')](_0x1be70b['id']);this[_0x1a95('0x7')][_0x1a95('0x8')](_0x1be70b,_0x363da9);}['_handleRevisionSetName'](_0x1f5a6c,_0x1c31cf){this[_0x1a95('0x33')]['getRevision'](_0x1c31cf['id'])[_0x1a95('0x6')](_0x1c31cf[_0x1a95('0xa')]);}[_0x1a95('0x34')](_0x59f2b4,_0x3d825a,_0x3c91c6){const _0x857cdf=this['_revisionsRepository'][_0x1a95('0x1d')](_0x3c91c6);_0x857cdf[_0x1a95('0x20')]>0x2?(this['_sidebarView'][_0x1a95('0x3c')](_0x857cdf),this[_0x1a95('0x30')][_0x1a95('0x13')](null)):(this[_0x1a95('0x30')][_0x1a95('0x3c')]([]),this[_0x1a95('0x30')][_0x1a95('0x13')](_0x857cdf[0x0]));}[_0x1a95('0xe')](){const _0x33205b=this[_0x1a95('0x2f')],_0x18a598=w['availableRevisionActions'],_0x69f338=_0x33205b[_0x1a95('0x0')][_0x1a95('0x10')](_0x1a95('0x31'))||w[_0x1a95('0x3d')];if(_0x69f338[_0x1a95('0x20')])return _0x69f338[_0x1a95('0x28')](_0x2bf57d=>{const _0x105d5b=_0x1a95('0x23')==typeof _0x2bf57d?Object[_0x1a95('0xf')]({},_0x18a598[_0x2bf57d]):_0x2bf57d;return _0x105d5b[_0x1a95('0x2')]=_0x105d5b['action'][_0x1a95('0x14')](this,_0x33205b),_0x105d5b[_0x1a95('0x15')]&&(_0x105d5b[_0x1a95('0x15')]=_0x105d5b[_0x1a95('0x15')]['bind'](this,_0x33205b)),_0x105d5b;});}}w[_0x1a95('0x3b')]={'compareAgainstSelected':{'name':_0x1a95('0x18'),'action':({plugins:_0x57dac1},_0xa80085)=>{const _0x1c4dc9=_0x57dac1[_0x1a95('0x10')](_0x94bac7),_0x59713c=_0x1c4dc9['repository'];let _0x8b4ad0=_0x1c4dc9[_0x1a95('0x39')][_0x1a95('0x1')],_0x1ed35a=_0xa80085['id'];_0x59713c[_0x1a95('0xd')](_0x8b4ad0)>_0x59713c[_0x1a95('0xd')](_0x1ed35a)&&([_0x8b4ad0,_0x1ed35a]=[_0x1ed35a,_0x8b4ad0]),_0x1c4dc9[_0x1a95('0x8')](_0x8b4ad0,_0x1ed35a);},'isVisible':({plugins:_0x596e67},_0x2a3ec3)=>{const _0x54f619=_0x596e67['get'](_0x94bac7);return!(_0x54f619[_0x1a95('0x2e')][_0x1a95('0x1d')](_0x54f619[_0x1a95('0x39')])[_0x1a95('0x20')]>0x2)&&!_0x2a3ec3['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x46a555,{id:_0x3bcf44})=>{_0x46a555[_0x1a95('0x0')][_0x1a95('0x10')]('revisionHistory')[_0x1a95('0x2a')](_0x3bcf44);},'isVisible':({plugins:_0x1860d0},_0x1c47bf)=>!!_0x1860d0[_0x1a95('0x10')](_0x94bac7)['repository'][_0x1a95('0xc')](_0x1c47bf['id'])},'nameRevision':{'name':_0x1a95('0x1c'),'action':({plugins:_0x353c50},{id:_0x3d3348,revisionNameView:_0xd2424b})=>{const _0x2a6bd6=_0x353c50['get'](_0x94bac7),_0x1ca726=_0x2a6bd6[_0x1a95('0x2e')]['getEarlierVisibleRevision'](_0x3d3348);_0x2a6bd6[_0x1a95('0x8')](_0x3d3348,_0x1ca726),_0xd2424b['focus'](),_0xd2424b[_0x1a95('0x29')][_0x1a95('0x24')]();}}},w['defaultRevisionActions']=[_0x1a95('0x3a'),_0x1a95('0x22'),_0x1a95('0x4')];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ce2=['ck-reset_all','ck-revision-history-sidebar__header__label','span','div','ck-revision-history-sidebar__header','content','Revision\x20history','setTemplate'];(function(_0x28dca3,_0x5ce226){const _0x553812=function(_0x2f414b){while(--_0x2f414b){_0x28dca3['push'](_0x28dca3['shift']());}};_0x553812(++_0x5ce226);}(_0x5ce2,0x10f));const _0x5538=function(_0x28dca3,_0x5ce226){_0x28dca3=_0x28dca3-0x0;let _0x553812=_0x5ce2[_0x28dca3];return _0x553812;};import{View as _0x26218c,IconView as _0x27febd}from'ckeditor5/src/ui';import{getTranslation as _0x242e36}from'../../utils/common-translations';import _0x465cf3 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x26218c{constructor(_0x235237){super(_0x235237);const _0x152211=new _0x27febd();_0x152211[_0x5538('0x6')]=_0x465cf3,this[_0x5538('0x0')]({'tag':_0x5538('0x4'),'attributes':{'class':['ck',_0x5538('0x1'),_0x5538('0x5')]},'children':[_0x152211,{'tag':_0x5538('0x3'),'attributes':{'class':['ck',_0x5538('0x2')]},'children':[_0x242e36(_0x235237,_0x5538('0x7'))]}]});}}
23
+ const _0x392e=['setTemplate','ck-reset_all','ck-revision-history-sidebar__header__label','span','div','Revision\x20history'];(function(_0xebb37d,_0x392e47){const _0x57beae=function(_0x46fd21){while(--_0x46fd21){_0xebb37d['push'](_0xebb37d['shift']());}};_0x57beae(++_0x392e47);}(_0x392e,0xa1));const _0x57be=function(_0xebb37d,_0x392e47){_0xebb37d=_0xebb37d-0x0;let _0x57beae=_0x392e[_0xebb37d];return _0x57beae;};import{View as _0x2e6d83,IconView as _0x6492ef}from'ckeditor5/src/ui';import{getTranslation as _0x5e6bd6}from'../../utils/common-translations';import _0x362e1c from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x2e6d83{constructor(_0xa4d342){super(_0xa4d342);const _0x487735=new _0x6492ef();_0x487735['content']=_0x362e1c,this[_0x57be('0x1')]({'tag':_0x57be('0x5'),'attributes':{'class':['ck',_0x57be('0x2'),'ck-revision-history-sidebar__header']},'children':[_0x487735,{'tag':_0x57be('0x4'),'attributes':{'class':['ck',_0x57be('0x3')]},'children':[_0x5e6bd6(_0xa4d342,_0x57be('0x0'))]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3ea6=['select','locale','setTemplate','div','ck-revision-history-sidebar__time-period','addRevision','startDate','delegate','span','_revisionActions','ck-revision-history-sidebar__time-period__revisions','createCollection','setName','add','revisionViews'];(function(_0xd46419,_0x3ea622){const _0x24f35b=function(_0x1ae6cd){while(--_0x1ae6cd){_0xd46419['push'](_0xd46419['shift']());}};_0x24f35b(++_0x3ea622);}(_0x3ea6,0x9b));const _0x24f3=function(_0xd46419,_0x3ea622){_0xd46419=_0xd46419-0x0;let _0x24f35b=_0x3ea6[_0xd46419];return _0x24f35b;};import{View as _0x2e3ecf}from'ckeditor5/src/ui';import _0x4e65d9 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x53dfef}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x2e3ecf{constructor(_0x3a9ebb,_0x91b55d,_0x284917){super(_0x3a9ebb);const _0x298434=_0x53dfef(_0x91b55d,this[_0x24f3('0xb')]['uiLanguage'])['localizedPeriodName'];this[_0x24f3('0x1')]=_0x91b55d,this[_0x24f3('0x9')]=this[_0x24f3('0x6')](),this[_0x24f3('0x4')]=_0x284917,this[_0x24f3('0x9')][_0x24f3('0x2')](_0x24f3('0xa'))['to'](this),this['revisionViews']['delegate'](_0x24f3('0x7'))['to'](this),this[_0x24f3('0xc')]({'tag':_0x24f3('0xd'),'attributes':{'class':['ck',_0x24f3('0xe')]},'children':[{'tag':_0x24f3('0x3'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x298434}]},{'tag':'div','attributes':{'class':['ck',_0x24f3('0x5')]},'children':this[_0x24f3('0x9')]}]});}[_0x24f3('0x0')](_0x53a2e7){const _0x3663ce=new _0x4e65d9(this[_0x24f3('0xb')],_0x53a2e7,this['_revisionActions']);this[_0x24f3('0x9')][_0x24f3('0x8')](_0x3663ce);}['removeRevision'](_0x2f1526){const _0x597c37=this[_0x24f3('0x9')]['find'](_0xbe1aac=>_0xbe1aac['id']===_0x2f1526['id']);this[_0x24f3('0x9')]['remove'](_0x597c37);}}
23
+ const _0x244f=['span','_revisionActions','uiLanguage','ck-revision-history-sidebar__time-period__revisions','removeRevision','localizedPeriodName','setTemplate','revisionViews','addRevision','startDate','setName','ck-revision-history-sidebar__time-period__label','delegate','div','ck-revision-history-sidebar__time-period'];(function(_0x2183e4,_0x244fa8){const _0x36168a=function(_0x13c1c5){while(--_0x13c1c5){_0x2183e4['push'](_0x2183e4['shift']());}};_0x36168a(++_0x244fa8);}(_0x244f,0xf0));const _0x3616=function(_0x2183e4,_0x244fa8){_0x2183e4=_0x2183e4-0x0;let _0x36168a=_0x244f[_0x2183e4];return _0x36168a;};import{View as _0x4e862f}from'ckeditor5/src/ui';import _0x344c19 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x3312e3}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x4e862f{constructor(_0xa57e6,_0x54a3da,_0xe5fa25){super(_0xa57e6);const _0x299354=_0x3312e3(_0x54a3da,this['locale'][_0x3616('0x2')])[_0x3616('0x5')];this[_0x3616('0x9')]=_0x54a3da,this[_0x3616('0x7')]=this['createCollection'](),this[_0x3616('0x1')]=_0xe5fa25,this[_0x3616('0x7')]['delegate']('select')['to'](this),this[_0x3616('0x7')][_0x3616('0xc')](_0x3616('0xa'))['to'](this),this[_0x3616('0x6')]({'tag':'div','attributes':{'class':['ck',_0x3616('0xe')]},'children':[{'tag':_0x3616('0x0'),'attributes':{'class':['ck',_0x3616('0xb')]},'children':[{'text':_0x299354}]},{'tag':_0x3616('0xd'),'attributes':{'class':['ck',_0x3616('0x3')]},'children':this[_0x3616('0x7')]}]});}[_0x3616('0x8')](_0x9a001){const _0x2f81a3=new _0x344c19(this['locale'],_0x9a001,this[_0x3616('0x1')]);this[_0x3616('0x7')]['add'](_0x2f81a3);}[_0x3616('0x4')](_0x51663c){const _0x5b65a9=this[_0x3616('0x7')]['find'](_0x2286a6=>_0x2286a6['id']===_0x51663c['id']);this[_0x3616('0x7')]['remove'](_0x5b65a9);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1cab=['bindTemplate','deselect','unhighlight','_revisionActions','delegate','div','ck-rounded-corners','_revisions','some','ck-revision-history-sidebar','getTime','setName','add','map','createdAt','_removeRevision','locale','ck-revision-history-sidebar__timeline','createCollection','_addRevision','selectRevision','uiLanguage','removeRevision','get','startDate','_getTimePeriodViewByStartDate','revisionViews','timePeriodViews','highlightRevisions','revisionSelected','select','flat','ck-disabled','render','set','highlight'];(function(_0x2d6f65,_0x1cab98){const _0x529d1e=function(_0x2a5216){while(--_0x2a5216){_0x2d6f65['push'](_0x2d6f65['shift']());}};_0x529d1e(++_0x1cab98);}(_0x1cab,0x123));const _0x529d=function(_0x2d6f65,_0x1cab98){_0x2d6f65=_0x2d6f65-0x0;let _0x529d1e=_0x1cab[_0x2d6f65];return _0x529d1e;};import{View as _0x51cd40}from'ckeditor5/src/ui';import _0x4a73b5 from'./revisionssidebartimeperiodview';import _0x46639f from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x5c760a}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x51cd40{constructor(_0xf69bb7,_0xcd1d1f,_0x5c3f90){super(_0xf69bb7);const _0x7a146d=this[_0x529d('0x21')];this[_0x529d('0x18')]=this[_0x529d('0xf')](),this[_0x529d('0x18')]['delegate'](_0x529d('0x1b'))['to'](this),this[_0x529d('0x18')][_0x529d('0x1')]('setName')['to'](this),this[_0x529d('0x4')]=_0xcd1d1f,this['_revisionActions']=_0x5c3f90,this['on']('select',(_0x5ebee8,_0x83bd10)=>{this['fire'](_0x529d('0x1a'),_0x83bd10);}),this['on'](_0x529d('0x8'),(_0x1b70d3,_0x40bf2b)=>{this['fire']('revisionSetName',_0x40bf2b);}),this[_0x529d('0x1f')]('isEnabled',!0x1),this['setTemplate']({'tag':_0x529d('0x2'),'attributes':{'class':['ck','ck-reset',_0x529d('0x3'),_0x529d('0x6')]},'children':[new _0x46639f(_0xf69bb7),{'tag':'div','attributes':{'class':['ck',_0x529d('0xe'),_0x7a146d['if']('isEnabled',_0x529d('0x1d'),_0x4cbf95=>!_0x4cbf95)]},'children':this[_0x529d('0x18')]}]});}[_0x529d('0x1e')](){super[_0x529d('0x1e')]();for(const _0x4775a7 of this[_0x529d('0x4')])this[_0x529d('0x10')](_0x4775a7);this[_0x529d('0x4')]['on'](_0x529d('0x9'),(_0x19220e,_0x23513c)=>{this[_0x529d('0x10')](_0x23513c);}),this[_0x529d('0x4')]['on']('remove',(_0x3e6566,_0x439527)=>{this['_removeRevision'](_0x439527);});}get['revisionViews'](){return this[_0x529d('0x18')][_0x529d('0xa')](_0x672552=>_0x672552['revisionViews'][_0x529d('0xa')](_0x1606aa=>_0x1606aa))[_0x529d('0x1c')]();}[_0x529d('0x11')](_0x3ce56d){for(const _0x5e3ab1 of this[_0x529d('0x17')])_0x3ce56d&&_0x3ce56d['id']===_0x5e3ab1['id']?_0x5e3ab1[_0x529d('0x1b')]():_0x5e3ab1[_0x529d('0x22')]();}[_0x529d('0x19')](_0xc5eff2){for(const _0x2f6951 of this[_0x529d('0x17')])_0xc5eff2[_0x529d('0x5')](({id:_0x54fed8})=>_0x54fed8===_0x2f6951['id'])?_0x2f6951[_0x529d('0x20')]():_0x2f6951[_0x529d('0x23')]();}['_addRevision'](_0x2172f9){const _0x2c29c=_0x5c760a(_0x2172f9[_0x529d('0xb')],this[_0x529d('0xd')][_0x529d('0x12')])[_0x529d('0x15')];let _0x5b5132=this[_0x529d('0x18')][_0x529d('0x14')](0x0);_0x5b5132&&_0x5b5132[_0x529d('0x15')][_0x529d('0x7')]()===_0x2c29c[_0x529d('0x7')]()||(_0x5b5132=new _0x4a73b5(this['locale'],_0x2c29c,this[_0x529d('0x0')]),this['timePeriodViews'][_0x529d('0x9')](_0x5b5132)),_0x5b5132['addRevision'](_0x2172f9);}[_0x529d('0xc')](_0x3c0f08){const _0x1df8a8=_0x5c760a(_0x3c0f08[_0x529d('0xb')],this[_0x529d('0xd')][_0x529d('0x12')])[_0x529d('0x15')];this[_0x529d('0x16')](_0x1df8a8)[_0x529d('0x13')](_0x3c0f08);}[_0x529d('0x16')](_0x37a6cf){return this[_0x529d('0x18')]['find'](_0x35c763=>_0x35c763[_0x529d('0x15')][_0x529d('0x7')]()===_0x37a6cf[_0x529d('0x7')]());}}
23
+ const _0x586b=['map','revisionViews','_getTimePeriodViewByStartDate','render','selectRevision','uiLanguage','timePeriodViews','set','delegate','_addRevision','ck-revision-history-sidebar','highlight','ck-disabled','createdAt','select','getTime','addRevision','ck-reset','_revisions','some','flat','locale','find','bindTemplate','unhighlight','isEnabled','startDate','ck-rounded-corners','_removeRevision','removeRevision','ck-revision-history-sidebar__timeline','_revisionActions','setName','add','div','revisionSetName','remove'];(function(_0x35bb13,_0x586b48){const _0x51bc2a=function(_0x2881b3){while(--_0x2881b3){_0x35bb13['push'](_0x35bb13['shift']());}};_0x51bc2a(++_0x586b48);}(_0x586b,0x145));const _0x51bc=function(_0x35bb13,_0x586b48){_0x35bb13=_0x35bb13-0x0;let _0x51bc2a=_0x586b[_0x35bb13];return _0x51bc2a;};import{View as _0x1c5a70}from'ckeditor5/src/ui';import _0xc9761f from'./revisionssidebartimeperiodview';import _0xd7d189 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x579bb9}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x1c5a70{constructor(_0x3176eb,_0x553d0e,_0x153e3c){super(_0x3176eb);const _0x122e3e=this[_0x51bc('0x1f')];this[_0x51bc('0xe')]=this['createCollection'](),this[_0x51bc('0xe')][_0x51bc('0x10')](_0x51bc('0x16'))['to'](this),this[_0x51bc('0xe')][_0x51bc('0x10')](_0x51bc('0x3'))['to'](this),this[_0x51bc('0x1a')]=_0x553d0e,this[_0x51bc('0x2')]=_0x153e3c,this['on']('select',(_0x2584ae,_0x3b012d)=>{this['fire']('revisionSelected',_0x3b012d);}),this['on'](_0x51bc('0x3'),(_0x5e9b28,_0x459849)=>{this['fire'](_0x51bc('0x6'),_0x459849);}),this[_0x51bc('0xf')](_0x51bc('0x21'),!0x1),this['setTemplate']({'tag':_0x51bc('0x5'),'attributes':{'class':['ck',_0x51bc('0x19'),_0x51bc('0x23'),_0x51bc('0x12')]},'children':[new _0xd7d189(_0x3176eb),{'tag':_0x51bc('0x5'),'attributes':{'class':['ck',_0x51bc('0x1'),_0x122e3e['if'](_0x51bc('0x21'),_0x51bc('0x14'),_0x2ba244=>!_0x2ba244)]},'children':this[_0x51bc('0xe')]}]});}[_0x51bc('0xb')](){super[_0x51bc('0xb')]();for(const _0x16d99d of this['_revisions'])this['_addRevision'](_0x16d99d);this[_0x51bc('0x1a')]['on'](_0x51bc('0x4'),(_0x33de03,_0x3d0f32)=>{this['_addRevision'](_0x3d0f32);}),this[_0x51bc('0x1a')]['on'](_0x51bc('0x7'),(_0x2323b3,_0x417e3c)=>{this[_0x51bc('0x24')](_0x417e3c);});}get[_0x51bc('0x9')](){return this['timePeriodViews']['map'](_0x308c97=>_0x308c97['revisionViews'][_0x51bc('0x8')](_0xce2094=>_0xce2094))[_0x51bc('0x1c')]();}[_0x51bc('0xc')](_0xe3053e){for(const _0x173cf1 of this[_0x51bc('0x9')])_0xe3053e&&_0xe3053e['id']===_0x173cf1['id']?_0x173cf1['select']():_0x173cf1['deselect']();}['highlightRevisions'](_0x5d951){for(const _0x5ddb8c of this[_0x51bc('0x9')])_0x5d951[_0x51bc('0x1b')](({id:_0x3496f9})=>_0x3496f9===_0x5ddb8c['id'])?_0x5ddb8c[_0x51bc('0x13')]():_0x5ddb8c[_0x51bc('0x20')]();}[_0x51bc('0x11')](_0x4dc656){const _0x47de9f=_0x579bb9(_0x4dc656[_0x51bc('0x15')],this[_0x51bc('0x1d')]['uiLanguage'])[_0x51bc('0x22')];let _0x559caf=this[_0x51bc('0xe')]['get'](0x0);_0x559caf&&_0x559caf[_0x51bc('0x22')][_0x51bc('0x17')]()===_0x47de9f['getTime']()||(_0x559caf=new _0xc9761f(this['locale'],_0x47de9f,this[_0x51bc('0x2')]),this[_0x51bc('0xe')][_0x51bc('0x4')](_0x559caf)),_0x559caf[_0x51bc('0x18')](_0x4dc656);}['_removeRevision'](_0x290d2e){const _0x54aee6=_0x579bb9(_0x290d2e[_0x51bc('0x15')],this[_0x51bc('0x1d')][_0x51bc('0xd')])['startDate'];this[_0x51bc('0xa')](_0x54aee6)[_0x51bc('0x0')](_0x290d2e);}[_0x51bc('0xa')](_0x1a614e){return this[_0x51bc('0xe')][_0x51bc('0x1e')](_0x2b2ed3=>_0x2b2ed3[_0x51bc('0x22')][_0x51bc('0x17')]()===_0x1a614e[_0x51bc('0x17')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x885c=['startOf','toJSDate','year','weekdayLong','setLocale','local','minus','monthLong','fromJSDate','month','week','toRelativeCalendar','hasSame','day'];(function(_0x26e00c,_0x885c93){const _0x38bbf6=function(_0x2c6c67){while(--_0x2c6c67){_0x26e00c['push'](_0x26e00c['shift']());}};_0x38bbf6(++_0x885c93);}(_0x885c,0x107));const _0x38bb=function(_0x26e00c,_0x885c93){_0x26e00c=_0x26e00c-0x0;let _0x38bbf6=_0x885c[_0x26e00c];return _0x38bbf6;};import{DateTime as _0x5cf121}from'luxon';export function getDateTimePeriodInfo(_0x559954,_0x1ac4df){const _0x435ced=_0x5cf121[_0x38bb('0xb')](_0x559954)[_0x38bb('0x7')](_0x1ac4df),_0x50fec6=_0x5cf121[_0x38bb('0x8')](),_0x103cd9=_0x50fec6[_0x38bb('0x9')]({'days':0x1})[_0x38bb('0x3')](_0x38bb('0x2'));let _0x174228,_0x2c6559;return _0x435ced[_0x38bb('0x1')](_0x50fec6,_0x38bb('0x2'))?(_0x174228=_0x435ced['startOf'](_0x38bb('0x2'))[_0x38bb('0x4')](),_0x2c6559=_0x435ced['toRelativeCalendar']()):_0x435ced['hasSame'](_0x103cd9,'day')?(_0x174228=_0x103cd9[_0x38bb('0x4')](),_0x2c6559=_0x435ced[_0x38bb('0x0')]()):_0x435ced[_0x38bb('0x1')](_0x50fec6,_0x38bb('0xd'))?(_0x174228=_0x435ced[_0x38bb('0x3')](_0x38bb('0xd'))[_0x38bb('0x4')](),_0x2c6559=_0x435ced[_0x38bb('0x6')]||''):_0x435ced['hasSame'](_0x50fec6,_0x38bb('0x5'))?(_0x174228=_0x435ced[_0x38bb('0x3')](_0x38bb('0xc'))[_0x38bb('0x4')](),_0x2c6559=_0x435ced[_0x38bb('0xa')]||''):(_0x174228=_0x435ced[_0x38bb('0x3')]('year')[_0x38bb('0x4')](),_0x2c6559=String(_0x435ced[_0x38bb('0x5')])),{'startDate':_0x174228,'localizedPeriodName':_0x2c6559};}
23
+ const _0x1a1e=['fromJSDate','year','weekdayLong','toRelativeCalendar','minus','hasSame','month','week','toJSDate','startOf','monthLong','day'];(function(_0x145ae3,_0x1a1e17){const _0x998166=function(_0x32bb02){while(--_0x32bb02){_0x145ae3['push'](_0x145ae3['shift']());}};_0x998166(++_0x1a1e17);}(_0x1a1e,0xb9));const _0x9981=function(_0x145ae3,_0x1a1e17){_0x145ae3=_0x145ae3-0x0;let _0x998166=_0x1a1e[_0x145ae3];return _0x998166;};import{DateTime as _0x319669}from'luxon';export function getDateTimePeriodInfo(_0x358852,_0x1ab93c){const _0x5a8ff4=_0x319669[_0x9981('0x7')](_0x358852)['setLocale'](_0x1ab93c),_0x4e7cf1=_0x319669['local'](),_0x47d6c7=_0x4e7cf1[_0x9981('0xb')]({'days':0x1})[_0x9981('0x4')]('day');let _0x3b2c44,_0x453a50;return _0x5a8ff4[_0x9981('0x0')](_0x4e7cf1,'day')?(_0x3b2c44=_0x5a8ff4[_0x9981('0x4')](_0x9981('0x6'))[_0x9981('0x3')](),_0x453a50=_0x5a8ff4[_0x9981('0xa')]()):_0x5a8ff4[_0x9981('0x0')](_0x47d6c7,_0x9981('0x6'))?(_0x3b2c44=_0x47d6c7[_0x9981('0x3')](),_0x453a50=_0x5a8ff4[_0x9981('0xa')]()):_0x5a8ff4[_0x9981('0x0')](_0x4e7cf1,'week')?(_0x3b2c44=_0x5a8ff4[_0x9981('0x4')](_0x9981('0x2'))['toJSDate'](),_0x453a50=_0x5a8ff4[_0x9981('0x9')]||''):_0x5a8ff4[_0x9981('0x0')](_0x4e7cf1,'year')?(_0x3b2c44=_0x5a8ff4[_0x9981('0x4')](_0x9981('0x1'))[_0x9981('0x3')](),_0x453a50=_0x5a8ff4[_0x9981('0x5')]||''):(_0x3b2c44=_0x5a8ff4[_0x9981('0x4')](_0x9981('0x8'))['toJSDate'](),_0x453a50=String(_0x5a8ff4[_0x9981('0x8')])),{'startDate':_0x3b2c44,'localizedPeriodName':_0x453a50};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x326b=['ck-annotation','span','ck-revision-change__','focus','changeId','add','_model','data','type','Suggested\x20by','author','name','ck-revision-change','element','Added\x20by','div'];(function(_0x560091,_0x326b7f){const _0x10fb9a=function(_0x2fd420){while(--_0x2fd420){_0x560091['push'](_0x560091['shift']());}};_0x10fb9a(++_0x326b7f);}(_0x326b,0x1cd));const _0x10fb=function(_0x560091,_0x326b7f){_0x560091=_0x560091-0x0;let _0x10fb9a=_0x326b[_0x560091];return _0x10fb9a;};import{View as _0xa678b9}from'ckeditor5/src/ui';import{getTranslation as _0x4db455}from'../../utils/common-translations';export default class Z extends _0xa678b9{constructor(_0x29efb6,_0x5e561b){super(_0x29efb6),this[_0x10fb('0x9')]=_0x5e561b,this[_0x10fb('0x7')]=_0x5e561b['id'];const _0x16fe05=this['bindTemplate'],_0x3baedb=_0x4db455(_0x29efb6,_0x5e561b[_0x10fb('0xa')]['isSuggestion']?_0x10fb('0xc'):_0x10fb('0x8')==_0x5e561b['type']?_0x10fb('0x1'):'Removed\x20by');this['set'](_0x10fb('0xb'),_0x5e561b[_0x10fb('0xb')]),this['setTemplate']({'tag':_0x10fb('0x2'),'attributes':{'class':[_0x10fb('0x3'),_0x10fb('0xf'),_0x16fe05['to'](_0x10fb('0xb'),_0x3b4670=>_0x10fb('0x5')+_0x3b4670)],'tabindex':-0x1},'children':[{'tag':_0x10fb('0x4'),'children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3baedb}]},{'text':'\x20'+_0x5e561b[_0x10fb('0xd')][_0x10fb('0xe')]}]}]});}[_0x10fb('0x6')](){this[_0x10fb('0x0')]['focus']();}}
23
+ const _0x99d6=['ck-revision-change__','focus','ck-revision-change','changeId','set','span','div','ck-revision-change__label','element','Removed\x20by','Added\x20by','Suggested\x20by','type'];(function(_0x46176e,_0x99d610){const _0x3c7a58=function(_0x5aab32){while(--_0x5aab32){_0x46176e['push'](_0x46176e['shift']());}};_0x3c7a58(++_0x99d610);}(_0x99d6,0x18a));const _0x3c7a=function(_0x46176e,_0x99d610){_0x46176e=_0x46176e-0x0;let _0x3c7a58=_0x99d6[_0x46176e];return _0x3c7a58;};import{View as _0x584a26}from'ckeditor5/src/ui';import{getTranslation as _0x1ab7e7}from'../../utils/common-translations';export default class Z extends _0x584a26{constructor(_0x4ce32f,_0x5196b9){super(_0x4ce32f),this['_model']=_0x5196b9,this[_0x3c7a('0xc')]=_0x5196b9['id'];const _0x1c68c8=this['bindTemplate'],_0x2daf5b=_0x1ab7e7(_0x4ce32f,_0x5196b9['data']['isSuggestion']?_0x3c7a('0x7'):'add'==_0x5196b9['type']?_0x3c7a('0x6'):_0x3c7a('0x5'));this[_0x3c7a('0x0')](_0x3c7a('0x8'),_0x5196b9[_0x3c7a('0x8')]),this['setTemplate']({'tag':_0x3c7a('0x2'),'attributes':{'class':['ck-annotation',_0x3c7a('0xb'),_0x1c68c8['to']('type',_0x7410b5=>_0x3c7a('0x9')+_0x7410b5)],'tabindex':-0x1},'children':[{'tag':_0x3c7a('0x1'),'children':[{'tag':_0x3c7a('0x1'),'attributes':{'class':[_0x3c7a('0x3')]},'children':[{'text':_0x2daf5b}]},{'text':'\x20'+_0x5196b9['author']['name']}]}]});}[_0x3c7a('0xa')](){this[_0x3c7a('0x4')][_0x3c7a('0xa')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2d44=['NUMBER_OF_CHANGES','isBackwardNavigationEnabled','ck-revision-history-ui','Loading...','bind','isForwardNavigationEnabled','isEnabled','Total','execute','setTemplate','span','Show\x20previous\x20change','ck-revision-history-ui__changes-navigation','X_OF_Y_CHANGES','isReady','isNavigationMode','EDIT_X_OF_Y_REVISIONS','_isStatusLabelVisible','forward','set','_statusText','numberOfChanges','ck-revision-history-ui__changes-navigation__navigation','fire','bindTemplate','div','currentChangeNumber','Show\x20next\x20change','No\x20changes'];(function(_0x1a1f8b,_0x2d44cd){const _0x1cab69=function(_0x2c4590){while(--_0x2c4590){_0x1a1f8b['push'](_0x1a1f8b['shift']());}};_0x1cab69(++_0x2d44cd);}(_0x2d44,0x6a));const _0x1cab=function(_0x1a1f8b,_0x2d44cd){_0x1a1f8b=_0x1a1f8b-0x0;let _0x1cab69=_0x2d44[_0x1a1f8b];return _0x1cab69;};import{View as _0x292b2a,ButtonView as _0x5b1278,ToolbarSeparatorView as _0x3d9b66}from'ckeditor5/src/ui';import{getTranslation as _0x113fa8}from'../../utils/common-translations';import _0x228d69 from'../../../theme/icons/arrow-up.svg';import _0x43456e from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x292b2a{constructor(_0x14e8b2){super(_0x14e8b2);const _0x597430=this[_0x1cab('0x5')],_0x5996e6=new _0x5b1278(_0x14e8b2),_0x19535d=new _0x5b1278(_0x14e8b2);this[_0x1cab('0x0')](_0x1cab('0x19'),!0x1),this['set'](_0x1cab('0x18'),!0x1),this[_0x1cab('0x0')](_0x1cab('0x7'),0x0),this[_0x1cab('0x0')](_0x1cab('0x2'),0x0),this[_0x1cab('0x0')](_0x1cab('0xf'),!0x1),this[_0x1cab('0x0')]('isBackwardNavigationEnabled',!0x1),this['bind']('_isStatusLabelVisible')['to'](this,'isReady',this,'numberOfChanges',(_0xea63e0,_0x2bafbd)=>_0xea63e0&&_0x2bafbd>0x0),this[_0x1cab('0xe')]('_statusText')['to'](this,_0x1cab('0x18'),this,'currentChangeNumber',this,_0x1cab('0x2'),this,'isNavigationMode',(_0x47c0b3,_0x470c1f,_0x4f3912,_0x468dbf)=>{if(!_0x47c0b3)return _0x113fa8(_0x14e8b2,_0x1cab('0xd'));if(!_0x4f3912)return _0x113fa8(_0x14e8b2,_0x1cab('0x9'));const _0x19f19a=_0x113fa8(_0x14e8b2,_0x1cab('0xa'),_0x4f3912);return _0x468dbf?_0x113fa8(_0x14e8b2,_0x1cab('0x17'),[_0x470c1f+0x1,_0x4f3912]):_0x19f19a;}),_0x5996e6[_0x1cab('0x0')]({'label':_0x113fa8(_0x14e8b2,_0x1cab('0x15')),'tooltip':!0x0,'icon':_0x228d69}),_0x19535d['set']({'label':_0x113fa8(_0x14e8b2,_0x1cab('0x8')),'tooltip':!0x0,'icon':_0x43456e}),_0x5996e6[_0x1cab('0xe')](_0x1cab('0x10'))['to'](this,_0x1cab('0xb')),_0x19535d['bind'](_0x1cab('0x10'))['to'](this,_0x1cab('0xf')),_0x5996e6['on'](_0x1cab('0x12'),()=>this[_0x1cab('0x4')](_0x1cab('0x12'),'backward')),_0x19535d['on'](_0x1cab('0x12'),()=>this[_0x1cab('0x4')]('execute',_0x1cab('0x1c'))),this[_0x1cab('0x13')]({'tag':_0x1cab('0x6'),'attributes':{'class':['ck',_0x1cab('0xc'),_0x1cab('0x16')]},'children':[{'tag':_0x1cab('0x14'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':_0x1cab('0x14'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x597430['if'](_0x1cab('0x1b'),'ck-hidden',_0x1a009c=>!_0x1a009c)]},'children':[{'text':_0x597430['to'](_0x1cab('0x19'),_0x34da2d=>_0x34da2d?_0x113fa8(_0x14e8b2,_0x1cab('0x1a'))+':\x20':_0x113fa8(_0x14e8b2,_0x1cab('0x11'))+':\x20')}]},{'text':_0x597430['to'](_0x1cab('0x1'))}]},new _0x3d9b66(),{'tag':_0x1cab('0x6'),'attributes':{'class':[_0x1cab('0x3')]},'children':[_0x5996e6,_0x19535d]}]});}}
23
+ const _0x3922=['bind','isNavigationMode','Loading...','ck-revision-history-ui__changes-navigation__navigation','isBackwardNavigationEnabled','currentChangeNumber','bindTemplate','_statusText','forward','set','isForwardNavigationEnabled','ck-revision-history-ui__changes-navigation','setTemplate','isReady','div','isEnabled','execute','ck-hidden','ck-revision-history-ui__changes-navigation__wrapper','_isStatusLabelVisible','ck-revision-history-ui','fire','X_OF_Y_CHANGES','Total','No\x20changes','backward','numberOfChanges','span','EDIT_X_OF_Y_REVISIONS','Show\x20previous\x20change'];(function(_0xd4b1b2,_0x392284){const _0x1350e0=function(_0x4f2a85){while(--_0x4f2a85){_0xd4b1b2['push'](_0xd4b1b2['shift']());}};_0x1350e0(++_0x392284);}(_0x3922,0x9b));const _0x1350=function(_0xd4b1b2,_0x392284){_0xd4b1b2=_0xd4b1b2-0x0;let _0x1350e0=_0x3922[_0xd4b1b2];return _0x1350e0;};import{View as _0x204192,ButtonView as _0x5e44a0,ToolbarSeparatorView as _0x5bbcfa}from'ckeditor5/src/ui';import{getTranslation as _0x5732dc}from'../../utils/common-translations';import _0x2e144d from'../../../theme/icons/arrow-up.svg';import _0x2819ce from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x204192{constructor(_0x2c6ccc){super(_0x2c6ccc);const _0x2cd4a1=this[_0x1350('0x1')],_0x3fb85a=new _0x5e44a0(_0x2c6ccc),_0x99e081=new _0x5e44a0(_0x2c6ccc);this[_0x1350('0x4')](_0x1350('0x1a'),!0x1),this[_0x1350('0x4')](_0x1350('0x8'),!0x1),this[_0x1350('0x4')]('currentChangeNumber',0x0),this['set'](_0x1350('0x15'),0x0),this['set'](_0x1350('0x5'),!0x1),this[_0x1350('0x4')](_0x1350('0x1d'),!0x1),this[_0x1350('0x19')]('_isStatusLabelVisible')['to'](this,_0x1350('0x8'),this,'numberOfChanges',(_0x41cdd0,_0x2f94db)=>_0x41cdd0&&_0x2f94db>0x0),this['bind'](_0x1350('0x2'))['to'](this,_0x1350('0x8'),this,_0x1350('0x0'),this,_0x1350('0x15'),this,_0x1350('0x1a'),(_0x4de2d1,_0x57696a,_0x1b2c51,_0x547e19)=>{if(!_0x4de2d1)return _0x5732dc(_0x2c6ccc,_0x1350('0x1b'));if(!_0x1b2c51)return _0x5732dc(_0x2c6ccc,_0x1350('0x13'));const _0x4b409a=_0x5732dc(_0x2c6ccc,'NUMBER_OF_CHANGES',_0x1b2c51);return _0x547e19?_0x5732dc(_0x2c6ccc,_0x1350('0x11'),[_0x57696a+0x1,_0x1b2c51]):_0x4b409a;}),_0x3fb85a[_0x1350('0x4')]({'label':_0x5732dc(_0x2c6ccc,_0x1350('0x18')),'tooltip':!0x0,'icon':_0x2e144d}),_0x99e081[_0x1350('0x4')]({'label':_0x5732dc(_0x2c6ccc,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2819ce}),_0x3fb85a['bind'](_0x1350('0xa'))['to'](this,_0x1350('0x1d')),_0x99e081['bind']('isEnabled')['to'](this,_0x1350('0x5')),_0x3fb85a['on'](_0x1350('0xb'),()=>this[_0x1350('0x10')]('execute',_0x1350('0x14'))),_0x99e081['on'](_0x1350('0xb'),()=>this[_0x1350('0x10')]('execute',_0x1350('0x3'))),this[_0x1350('0x7')]({'tag':_0x1350('0x9'),'attributes':{'class':['ck',_0x1350('0xf'),_0x1350('0x6')]},'children':[{'tag':_0x1350('0x16'),'attributes':{'class':[_0x1350('0xd')]},'children':[{'tag':_0x1350('0x16'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x2cd4a1['if'](_0x1350('0xe'),_0x1350('0xc'),_0x19b39a=>!_0x19b39a)]},'children':[{'text':_0x2cd4a1['to']('isNavigationMode',_0x2daf14=>_0x2daf14?_0x5732dc(_0x2c6ccc,_0x1350('0x17'))+':\x20':_0x5732dc(_0x2c6ccc,_0x1350('0x12'))+':\x20')}]},{'text':_0x2cd4a1['to']('_statusText')}]},new _0x5bbcfa(),{'tag':_0x1350('0x9'),'attributes':{'class':[_0x1350('0x1c')]},'children':[_0x3fb85a,_0x99e081]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x402f=['editor','view','document','show','editing','change','roots','RevisionViewerLoadingOverlay','pluginName','addClass'];(function(_0x4fcf53,_0x402f4c){const _0x20421c=function(_0x87cf48){while(--_0x87cf48){_0x4fcf53['push'](_0x4fcf53['shift']());}};_0x20421c(++_0x402f4c);}(_0x402f,0x78));const _0x2042=function(_0x4fcf53,_0x402f4c){_0x4fcf53=_0x4fcf53-0x0;let _0x20421c=_0x402f[_0x4fcf53];return _0x20421c;};import{Plugin as _0x38b65e}from'ckeditor5/src/core';const oe='ck-editor__editable__loading-overlay';import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x38b65e{static get[_0x2042('0x8')](){return _0x2042('0x7');}[_0x2042('0x3')](){const _0x4b76f0=this[_0x2042('0x0')][_0x2042('0x4')][_0x2042('0x1')];_0x4b76f0['change'](_0x111bf1=>{for(const _0x426617 of _0x4b76f0[_0x2042('0x2')]['roots'])_0x111bf1[_0x2042('0x9')](oe,_0x426617);});}['hide'](){const _0x356417=this[_0x2042('0x0')][_0x2042('0x4')][_0x2042('0x1')];_0x356417[_0x2042('0x5')](_0x36a7d9=>{for(const _0x4c67c0 of _0x356417[_0x2042('0x2')][_0x2042('0x6')])_0x36a7d9['removeClass'](oe,_0x4c67c0);});}}
23
+ const _0x58fa=['view','pluginName','RevisionViewerLoadingOverlay','editing','change','roots','editor'];(function(_0x1a3a9a,_0x58fac1){const _0x29496d=function(_0x47dc2b){while(--_0x47dc2b){_0x1a3a9a['push'](_0x1a3a9a['shift']());}};_0x29496d(++_0x58fac1);}(_0x58fa,0xd2));const _0x2949=function(_0x1a3a9a,_0x58fac1){_0x1a3a9a=_0x1a3a9a-0x0;let _0x29496d=_0x58fa[_0x1a3a9a];return _0x29496d;};import{Plugin as _0x433970}from'ckeditor5/src/core';const oe='ck-editor__editable__loading-overlay';import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x433970{static get[_0x2949('0x1')](){return _0x2949('0x2');}['show'](){const _0x2f49e4=this[_0x2949('0x6')][_0x2949('0x3')][_0x2949('0x0')];_0x2f49e4['change'](_0x38f44e=>{for(const _0x4e2e0b of _0x2f49e4['document'][_0x2949('0x5')])_0x38f44e['addClass'](oe,_0x4e2e0b);});}['hide'](){const _0x2561b0=this[_0x2949('0x6')][_0x2949('0x3')][_0x2949('0x0')];_0x2561b0[_0x2949('0x4')](_0x3be5ac=>{for(const _0x511a3d of _0x2561b0['document']['roots'])_0x3be5ac['removeClass'](oe,_0x511a3d);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1e1c=['editor','bind','Back\x20to\x20editing','changesNavigation','currentChangeNumber','Restore\x20this\x20revision','ck-revision-history-ui__back-to-editing','show','commands','plugins','execute','hide','requires','showPreviousChange','change:isReady','RevisionViewerUI','numberOfChanges','exitToEditing','init','revisionHistory','forward','closeRevisionViewerCallback','get','set','isEnabled','listenTo','restoreRevision','add','componentFactory','pluginName'];(function(_0x4ef0a8,_0x1e1cf9){const _0x1bf637=function(_0xaa803b){while(--_0xaa803b){_0x4ef0a8['push'](_0x4ef0a8['shift']());}};_0x1bf637(++_0x1e1cf9);}(_0x1e1c,0x1af));const _0x1bf6=function(_0x4ef0a8,_0x1e1cf9){_0x4ef0a8=_0x4ef0a8-0x0;let _0x1bf637=_0x1e1c[_0x4ef0a8];return _0x1bf637;};import{Plugin as _0x5732d4}from'ckeditor5/src/core';import{ButtonView as _0x37fbbb}from'ckeditor5/src/ui';import _0x53ee from'./changesnavigationview';import _0x6cf869 from'./../../revisionviewer';import _0x2e22b9 from'./revisionviewerloadingoverlay';import{getTranslation as _0x4e2ada}from'../../utils/common-translations';import _0x421ab1 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x5732d4{static get[_0x1bf6('0x12')](){return _0x1bf6('0x4');}static get[_0x1bf6('0x1')](){return[_0x6cf869,_0x2e22b9];}[_0x1bf6('0x7')](){const _0x12de6b=this[_0x1bf6('0x13')],_0x416b2e=_0x12de6b[_0x1bf6('0x1c')][_0x1bf6('0xb')](_0x6cf869),_0x5326b7=_0x12de6b[_0x1bf6('0x1c')][_0x1bf6('0xb')](_0x2e22b9);_0x12de6b['ui'][_0x1bf6('0x11')][_0x1bf6('0x10')](_0x1bf6('0x6'),_0x4e275a=>{const _0x5f087e=new _0x37fbbb(_0x4e275a);return _0x5f087e[_0x1bf6('0xc')]({'label':_0x4e2ada(_0x4e275a,_0x1bf6('0x15')),'icon':_0x421ab1,'withText':!0x0,'tooltip':!0x0,'class':_0x1bf6('0x19')}),this[_0x1bf6('0xe')](_0x5f087e,_0x1bf6('0x1d'),()=>{_0x12de6b['config'][_0x1bf6('0xb')](_0x1bf6('0x8'))[_0x1bf6('0xa')]();}),_0x5f087e;}),_0x12de6b['ui'][_0x1bf6('0x11')][_0x1bf6('0x10')](_0x1bf6('0xf'),_0x4c51a9=>{const _0x8d2694=new _0x37fbbb(_0x4c51a9);return _0x8d2694['set']({'label':_0x4e2ada(_0x4c51a9,_0x1bf6('0x18')),'withText':!0x0,'tooltip':!0x0}),_0x8d2694[_0x1bf6('0x14')](_0x1bf6('0xd'))['to'](_0x12de6b[_0x1bf6('0x1b')][_0x1bf6('0xb')](_0x1bf6('0xf'))),this['listenTo'](_0x8d2694,'execute',()=>_0x12de6b['execute'](_0x1bf6('0xf'))),_0x8d2694;}),_0x12de6b['ui'][_0x1bf6('0x11')][_0x1bf6('0x10')](_0x1bf6('0x16'),_0x47471f=>{const _0x4b088b=new _0x53ee(_0x47471f),_0x2a825a=_0x12de6b['commands'][_0x1bf6('0xb')](_0x1bf6('0x2')),_0x513f58=_0x12de6b[_0x1bf6('0x1b')][_0x1bf6('0xb')]('showNextChange');return _0x4b088b['bind']('isBackwardNavigationEnabled')['to'](_0x2a825a,_0x1bf6('0xd')),_0x4b088b[_0x1bf6('0x14')]('isForwardNavigationEnabled')['to'](_0x513f58,_0x1bf6('0xd')),_0x4b088b[_0x1bf6('0x14')]('isReady',_0x1bf6('0x17'),_0x1bf6('0x5'),'isNavigationMode')['to'](_0x416b2e),this[_0x1bf6('0xe')](_0x4b088b,_0x1bf6('0x1d'),(_0x1fbeaa,_0x1f7ae2)=>{_0x12de6b[_0x1bf6('0x1d')](_0x1bf6('0x9')===_0x1f7ae2?'showNextChange':'showPreviousChange');}),_0x4b088b;}),_0x5326b7[_0x1bf6('0x1a')](),_0x416b2e['on'](_0x1bf6('0x3'),(_0x1e33e0,_0x347672,_0x6688aa)=>{_0x6688aa?_0x5326b7[_0x1bf6('0x0')]():_0x5326b7['show']();});}}
23
+ const _0xd300=['showPreviousChange','currentChangeNumber','plugins','bind','componentFactory','showNextChange','Restore\x20this\x20revision','get','numberOfChanges','config','changesNavigation','closeRevisionViewerCallback','commands','show','execute','pluginName','forward','listenTo','requires','isEnabled','set','isReady','restoreRevision','Back\x20to\x20editing','isNavigationMode','editor','exitToEditing','hide','ck-revision-history-ui__back-to-editing'];(function(_0x4be421,_0xd300c0){const _0x195b52=function(_0x1953d5){while(--_0x1953d5){_0x4be421['push'](_0x4be421['shift']());}};_0x195b52(++_0xd300c0);}(_0xd300,0x1a3));const _0x195b=function(_0x4be421,_0xd300c0){_0x4be421=_0x4be421-0x0;let _0x195b52=_0xd300[_0x4be421];return _0x195b52;};import{Plugin as _0x44425d}from'ckeditor5/src/core';import{ButtonView as _0x3f2c44}from'ckeditor5/src/ui';import _0x3be9b0 from'./changesnavigationview';import _0x7879cf from'./../../revisionviewer';import _0x3240e8 from'./revisionviewerloadingoverlay';import{getTranslation as _0x325923}from'../../utils/common-translations';import _0x4d2615 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x44425d{static get[_0x195b('0x2')](){return'RevisionViewerUI';}static get[_0x195b('0x5')](){return[_0x7879cf,_0x3240e8];}['init'](){const _0x323273=this[_0x195b('0xc')],_0x5c3ab8=_0x323273[_0x195b('0x12')]['get'](_0x7879cf),_0x41f58d=_0x323273['plugins'][_0x195b('0x17')](_0x3240e8);_0x323273['ui'][_0x195b('0x14')]['add'](_0x195b('0xd'),_0x222d44=>{const _0x2e73ad=new _0x3f2c44(_0x222d44);return _0x2e73ad[_0x195b('0x7')]({'label':_0x325923(_0x222d44,_0x195b('0xa')),'icon':_0x4d2615,'withText':!0x0,'tooltip':!0x0,'class':_0x195b('0xf')}),this[_0x195b('0x4')](_0x2e73ad,_0x195b('0x1'),()=>{_0x323273[_0x195b('0x19')][_0x195b('0x17')]('revisionHistory')[_0x195b('0x1b')]();}),_0x2e73ad;}),_0x323273['ui'][_0x195b('0x14')]['add'](_0x195b('0x9'),_0x4c3eb5=>{const _0x13d723=new _0x3f2c44(_0x4c3eb5);return _0x13d723[_0x195b('0x7')]({'label':_0x325923(_0x4c3eb5,_0x195b('0x16')),'withText':!0x0,'tooltip':!0x0}),_0x13d723[_0x195b('0x13')]('isEnabled')['to'](_0x323273['commands'][_0x195b('0x17')](_0x195b('0x9'))),this[_0x195b('0x4')](_0x13d723,'execute',()=>_0x323273['execute'](_0x195b('0x9'))),_0x13d723;}),_0x323273['ui'][_0x195b('0x14')]['add'](_0x195b('0x1a'),_0x54ff81=>{const _0x3e7800=new _0x3be9b0(_0x54ff81),_0x1799db=_0x323273[_0x195b('0x1c')][_0x195b('0x17')](_0x195b('0x10')),_0x45f630=_0x323273[_0x195b('0x1c')][_0x195b('0x17')](_0x195b('0x15'));return _0x3e7800['bind']('isBackwardNavigationEnabled')['to'](_0x1799db,_0x195b('0x6')),_0x3e7800[_0x195b('0x13')]('isForwardNavigationEnabled')['to'](_0x45f630,_0x195b('0x6')),_0x3e7800['bind'](_0x195b('0x8'),_0x195b('0x11'),_0x195b('0x18'),_0x195b('0xb'))['to'](_0x5c3ab8),this[_0x195b('0x4')](_0x3e7800,_0x195b('0x1'),(_0x47af4e,_0x1567a3)=>{_0x323273[_0x195b('0x1')](_0x195b('0x3')===_0x1567a3?_0x195b('0x15'):'showPreviousChange');}),_0x3e7800;}),_0x41f58d[_0x195b('0x0')](),_0x5c3ab8['on']('change:isReady',(_0x1f959b,_0x393f91,_0x442a03)=>{_0x442a03?_0x41f58d[_0x195b('0xe')]():_0x41f58d[_0x195b('0x0')]();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x3ab0c8,_0x25e3eb,_0x1e981d){const t=_0x3ab0c8['t'];switch(_0x25e3eb){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'},_0x1e981d);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1e981d);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 _0x25e3eb;}}
23
+ export function getTranslation(_0x675498,_0x20fdb6,_0x9d9d75){const t=_0x675498['t'];switch(_0x20fdb6){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'},_0x9d9d75);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x9d9d75);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 _0x20fdb6;}}