@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230724.0 → 0.0.0-nightly-20230725.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 (62) hide show
  1. package/README.md +0 -1
  2. package/build/revision-history.js +1 -1
  3. package/package.json +6 -6
  4. package/src/augmentation.d.ts +4 -0
  5. package/src/changeitem.d.ts +2 -1
  6. package/src/changeitem.js +1 -1
  7. package/src/editor/revisionviewereditor.js +1 -1
  8. package/src/editor/revisionviewereditorui.js +1 -1
  9. package/src/editor/revisionviewereditoruiview.js +1 -1
  10. package/src/index.d.ts +4 -0
  11. package/src/revision.d.ts +2 -2
  12. package/src/revision.js +1 -1
  13. package/src/revisiondiff.d.ts +4 -0
  14. package/src/revisiondiff.js +1 -1
  15. package/src/revisionhistory.d.ts +4 -0
  16. package/src/revisionhistory.js +1 -1
  17. package/src/revisionhistoryadapter.d.ts +4 -0
  18. package/src/revisionhistoryconfig.d.ts +2 -2
  19. package/src/revisionsrepository.d.ts +4 -0
  20. package/src/revisionsrepository.js +1 -1
  21. package/src/revisiontracker.d.ts +4 -0
  22. package/src/revisiontracker.js +1 -1
  23. package/src/revisionviewer.d.ts +4 -0
  24. package/src/revisionviewer.js +1 -1
  25. package/src/ui/revision/createrevisionactionsdropdown.d.ts +2 -1
  26. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  27. package/src/ui/revision/revisionauthorview.d.ts +2 -1
  28. package/src/ui/revision/revisionauthorview.js +1 -1
  29. package/src/ui/revision/revisionnameview.d.ts +2 -1
  30. package/src/ui/revision/revisionnameview.js +1 -1
  31. package/src/ui/revision/revisionview.d.ts +4 -0
  32. package/src/ui/revision/revisionview.js +1 -1
  33. package/src/ui/revision/subrevisioncollapserview.d.ts +4 -0
  34. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  35. package/src/ui/revision/subrevisionview.d.ts +4 -0
  36. package/src/ui/revision/subrevisionview.js +1 -1
  37. package/src/ui/revision/utils.d.ts +2 -1
  38. package/src/ui/revision/utils.js +1 -1
  39. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +2 -1
  40. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  41. package/src/ui/revisionhistory/revisionhistoryui.d.ts +4 -0
  42. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  43. package/src/ui/revisionssidebar/revisionssidebar.d.ts +4 -0
  44. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  45. package/src/ui/revisionssidebar/revisionssidebarheaderview.d.ts +2 -1
  46. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  47. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +4 -0
  48. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  49. package/src/ui/revisionssidebar/revisionssidebarview.d.ts +4 -0
  50. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  51. package/src/ui/revisionssidebar/utils.d.ts +2 -1
  52. package/src/ui/revisionssidebar/utils.js +1 -1
  53. package/src/ui/revisionviewer/changedetailsview.d.ts +4 -0
  54. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  55. package/src/ui/revisionviewer/changesnavigationview.d.ts +4 -0
  56. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  57. package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +4 -0
  58. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  59. package/src/ui/revisionviewer/revisionviewerui.d.ts +4 -0
  60. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  61. package/src/utils/common-translations.d.ts +4 -0
  62. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5caf=['numeric','long','toLocaleDateString','toLocaleTimeString'];(function(_0x4bb129,_0x5caf91){var _0x1727d2=function(_0x4fc6e1){while(--_0x4fc6e1){_0x4bb129['push'](_0x4bb129['shift']());}};_0x1727d2(++_0x5caf91);}(_0x5caf,0x1a2));var _0x1727=function(_0x4bb129,_0x5caf91){_0x4bb129=_0x4bb129-0x0;var _0x1727d2=_0x5caf[_0x4bb129];return _0x1727d2;};export function dateToPrettyFormat(_0x49cad3,_0x5bd53e){return _0x5bd53e[_0x1727('0x0')](_0x49cad3,{'month':_0x1727('0x3'),'day':_0x1727('0x2')})+',\x20'+_0x5bd53e[_0x1727('0x1')](_0x49cad3,{'hour':_0x1727('0x2'),'minute':_0x1727('0x2')});}
23
+ var _0x1251=['toLocaleTimeString','numeric','toLocaleDateString'];(function(_0x173fd1,_0x1251ab){var _0x4d10cc=function(_0x11c609){while(--_0x11c609){_0x173fd1['push'](_0x173fd1['shift']());}};_0x4d10cc(++_0x1251ab);}(_0x1251,0xc5));var _0x4d10=function(_0x173fd1,_0x1251ab){_0x173fd1=_0x173fd1-0x0;var _0x4d10cc=_0x1251[_0x173fd1];return _0x4d10cc;};export function dateToPrettyFormat(_0x3e6359,_0x32530b){return _0x32530b[_0x4d10('0x0')](_0x3e6359,{'month':'long','day':_0x4d10('0x2')})+',\x20'+_0x32530b[_0x4d10('0x1')](_0x3e6359,{'hour':_0x4d10('0x2'),'minute':_0x4d10('0x2')});}
@@ -1,5 +1,6 @@
1
1
  /**
2
- * @module revision-history/ui/revisionhistory/revisionhistorysaverevisionformview
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
3
4
  */
4
5
  import { ButtonView, LabeledFieldView, View, type InputTextView } from 'ckeditor5/src/ui';
5
6
  import { type BaseEvent, FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils';
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1e65=['revisionNameInputValue','delegate','trim','arrowdown','keystrokes','element','render','type','ck-button-save','set','stopPropagation','Save','focusFirst','Name\x20of\x20the\x20revision\x20(optional)','_focusCycler','execute','saveButtonView','ck-button-cancel','cancel','add','label','extendTemplate','form','_createRevisionNameInput','focusTracker','Cancel','tab','arrowup','check','revisionNameInputView','shift\x20+\x20tab','cancelButtonView','fieldView','value','submit','revisionName','_focusables','setTemplate','focus','arrowleft','ck-revision-history-save-revision-form','locale','reset'];(function(_0x3420eb,_0x1e65b7){const _0x1e63a5=function(_0x1cdb66){while(--_0x1cdb66){_0x3420eb['push'](_0x3420eb['shift']());}};_0x1e63a5(++_0x1e65b7);}(_0x1e65,0x13f));const _0x1e63=function(_0x3420eb,_0x1e65b7){_0x3420eb=_0x3420eb-0x0;let _0x1e63a5=_0x1e65[_0x3420eb];return _0x1e63a5;};import{icons as _0x4c0e8f}from'ckeditor5/src/core';import{ButtonView as _0x3b2b5f,FocusCycler as _0x4ba422,LabeledFieldView as _0x447f46,View as _0xaa03b7,ViewCollection as _0x471550,createLabeledInputText as _0x3596d9,injectCssTransitionDisabler as _0x32a811,submitHandler as _0x3a92c3}from'ckeditor5/src/ui';import{FocusTracker as _0xc70a7e,KeystrokeHandler as _0x5d22fb}from'ckeditor5/src/utils';import{getTranslation as _0x3c3428}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0xaa03b7{constructor(_0x33f0f7){super(_0x33f0f7),this[_0x1e63('0x6')]=new _0xc70a7e(),this[_0x1e63('0x1d')]=new _0x5d22fb(),this[_0x1e63('0x22')](_0x1e63('0x19'),''),this[_0x1e63('0xb')]=this[_0x1e63('0x5')](),this[_0x1e63('0x29')]=this['_createButton'](_0x3c3428(_0x33f0f7,_0x1e63('0x24')),_0x4c0e8f[_0x1e63('0xa')],_0x1e63('0x21')),this[_0x1e63('0x29')][_0x1e63('0x20')]=_0x1e63('0x10'),this[_0x1e63('0xd')]=this['_createButton'](_0x3c3428(_0x33f0f7,_0x1e63('0x7')),_0x4c0e8f[_0x1e63('0x0')],_0x1e63('0x2a'),_0x1e63('0x0')),this[_0x1e63('0x12')]=new _0x471550(),this[_0x1e63('0x27')]=new _0x4ba422({'focusables':this['_focusables'],'focusTracker':this[_0x1e63('0x6')],'keystrokeHandler':this[_0x1e63('0x1d')],'actions':{'focusPrevious':_0x1e63('0xc'),'focusNext':_0x1e63('0x8')}}),this[_0x1e63('0x13')]({'tag':_0x1e63('0x4'),'attributes':{'class':['ck',_0x1e63('0x16'),'ck-responsive-form'],'tabindex':'-1'},'children':[this[_0x1e63('0xb')],this[_0x1e63('0x29')],this[_0x1e63('0xd')]]}),_0x32a811(this);}[_0x1e63('0x1f')](){super[_0x1e63('0x1f')](),_0x3a92c3({'view':this}),([this[_0x1e63('0xb')],this[_0x1e63('0x29')],this[_0x1e63('0xd')]]['forEach'](_0x21df5f=>{this[_0x1e63('0x12')][_0x1e63('0x1')](_0x21df5f),this[_0x1e63('0x6')][_0x1e63('0x1')](_0x21df5f['element']);}),this[_0x1e63('0x1d')]['listenTo'](this[_0x1e63('0x1e')]));const _0x4515c3=_0x2b0b85=>_0x2b0b85[_0x1e63('0x23')]();this[_0x1e63('0x1d')][_0x1e63('0x22')]('arrowright',_0x4515c3),this[_0x1e63('0x1d')][_0x1e63('0x22')](_0x1e63('0x15'),_0x4515c3),this[_0x1e63('0x1d')]['set'](_0x1e63('0x9'),_0x4515c3),this[_0x1e63('0x1d')][_0x1e63('0x22')](_0x1e63('0x1c'),_0x4515c3);}[_0x1e63('0x14')](){this[_0x1e63('0x27')][_0x1e63('0x25')]();}get['revisionName'](){return this[_0x1e63('0xb')][_0x1e63('0xe')][_0x1e63('0x1e')][_0x1e63('0xf')][_0x1e63('0x1b')]();}set[_0x1e63('0x11')](_0x1dcef8){this[_0x1e63('0xb')][_0x1e63('0xe')][_0x1e63('0x1e')]['value']=_0x1dcef8[_0x1e63('0x1b')]();}[_0x1e63('0x18')](){this[_0x1e63('0xb')][_0x1e63('0xe')][_0x1e63('0x1e')][_0x1e63('0xf')]='';}['_createRevisionNameInput'](){const _0x580d36=new _0x447f46(this['locale'],_0x3596d9),_0x16775c=_0x580d36[_0x1e63('0xe')];return _0x16775c[_0x1e63('0x3')]({'attributes':{'maxlength':'220'}}),_0x580d36[_0x1e63('0x2')]=_0x3c3428(this[_0x1e63('0x17')],_0x1e63('0x26')),_0x16775c['on']('input',()=>{this[_0x1e63('0x19')]=_0x16775c['element'][_0x1e63('0xf')][_0x1e63('0x1b')]();}),_0x580d36;}['_createButton'](_0x469b98,_0x482d74,_0x5b481b,_0x20f1bf){const _0x1d7380=new _0x3b2b5f(this[_0x1e63('0x17')]);return _0x1d7380[_0x1e63('0x22')]({'label':_0x469b98,'icon':_0x482d74,'tooltip':!0x0}),_0x1d7380[_0x1e63('0x3')]({'attributes':{'class':_0x5b481b}}),_0x20f1bf&&_0x1d7380[_0x1e63('0x1a')](_0x1e63('0x28'))['to'](this,_0x20f1bf),_0x1d7380;}}
23
+ const _0xf78b=['keystrokes','form','tab','fieldView','revisionNameInputValue','_createButton','setTemplate','shift\x20+\x20tab','Name\x20of\x20the\x20revision\x20(optional)','execute','ck-revision-history-save-revision-form','submit','render','value','stopPropagation','220','ck-button-save','set','saveButtonView','label','revisionName','delegate','locale','_focusables','arrowright','revisionNameInputView','listenTo','Save','check','trim','add','arrowdown','ck-responsive-form','focusFirst','arrowleft','_focusCycler','element','cancel','ck-button-cancel','focusTracker','reset','input','_createRevisionNameInput'];(function(_0x2d3bf3,_0xf78b42){const _0x35a7e1=function(_0x3dfb59){while(--_0x3dfb59){_0x2d3bf3['push'](_0x2d3bf3['shift']());}};_0x35a7e1(++_0xf78b42);}(_0xf78b,0x122));const _0x35a7=function(_0x2d3bf3,_0xf78b42){_0x2d3bf3=_0x2d3bf3-0x0;let _0x35a7e1=_0xf78b[_0x2d3bf3];return _0x35a7e1;};import{icons as _0x59180}from'ckeditor5/src/core';import{ButtonView as _0x2d6636,FocusCycler as _0x1f037a,LabeledFieldView as _0x512b83,View as _0x5e33e0,ViewCollection as _0x10dce5,createLabeledInputText as _0x738aa8,injectCssTransitionDisabler as _0x16c9f8,submitHandler as _0x475062}from'ckeditor5/src/ui';import{FocusTracker as _0x140aaf,KeystrokeHandler as _0x515ed0}from'ckeditor5/src/utils';import{getTranslation as _0x45f2c7}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class _t extends _0x5e33e0{constructor(_0x316d46){super(_0x316d46),this[_0x35a7('0x7')]=new _0x140aaf(),this[_0x35a7('0xb')]=new _0x515ed0(),this['set'](_0x35a7('0xf'),''),this[_0x35a7('0x24')]=this[_0x35a7('0xa')](),this['saveButtonView']=this[_0x35a7('0x10')](_0x45f2c7(_0x316d46,_0x35a7('0x26')),_0x59180[_0x35a7('0x27')],_0x35a7('0x1b')),this[_0x35a7('0x1d')]['type']=_0x35a7('0x16'),this['cancelButtonView']=this['_createButton'](_0x45f2c7(_0x316d46,'Cancel'),_0x59180[_0x35a7('0x5')],_0x35a7('0x6'),_0x35a7('0x5')),this['_focusables']=new _0x10dce5(),this['_focusCycler']=new _0x1f037a({'focusables':this[_0x35a7('0x22')],'focusTracker':this[_0x35a7('0x7')],'keystrokeHandler':this[_0x35a7('0xb')],'actions':{'focusPrevious':_0x35a7('0x12'),'focusNext':_0x35a7('0xd')}}),this[_0x35a7('0x11')]({'tag':_0x35a7('0xc'),'attributes':{'class':['ck',_0x35a7('0x15'),_0x35a7('0x0')],'tabindex':'-1'},'children':[this[_0x35a7('0x24')],this['saveButtonView'],this['cancelButtonView']]}),_0x16c9f8(this);}['render'](){super[_0x35a7('0x17')](),_0x475062({'view':this}),([this[_0x35a7('0x24')],this[_0x35a7('0x1d')],this['cancelButtonView']]['forEach'](_0x39885=>{this[_0x35a7('0x22')][_0x35a7('0x29')](_0x39885),this[_0x35a7('0x7')][_0x35a7('0x29')](_0x39885[_0x35a7('0x4')]);}),this[_0x35a7('0xb')][_0x35a7('0x25')](this[_0x35a7('0x4')]));const _0x5735e3=_0x46b71d=>_0x46b71d[_0x35a7('0x19')]();this['keystrokes'][_0x35a7('0x1c')](_0x35a7('0x23'),_0x5735e3),this[_0x35a7('0xb')][_0x35a7('0x1c')](_0x35a7('0x2'),_0x5735e3),this[_0x35a7('0xb')][_0x35a7('0x1c')]('arrowup',_0x5735e3),this[_0x35a7('0xb')][_0x35a7('0x1c')](_0x35a7('0x2a'),_0x5735e3);}['focus'](){this[_0x35a7('0x3')][_0x35a7('0x1')]();}get[_0x35a7('0x1f')](){return this[_0x35a7('0x24')][_0x35a7('0xe')][_0x35a7('0x4')][_0x35a7('0x18')][_0x35a7('0x28')]();}set[_0x35a7('0x1f')](_0xd6af48){this['revisionNameInputView']['fieldView']['element'][_0x35a7('0x18')]=_0xd6af48[_0x35a7('0x28')]();}[_0x35a7('0x8')](){this['revisionNameInputView'][_0x35a7('0xe')]['element']['value']='';}[_0x35a7('0xa')](){const _0x566444=new _0x512b83(this[_0x35a7('0x21')],_0x738aa8),_0x3362ff=_0x566444[_0x35a7('0xe')];return _0x3362ff['extendTemplate']({'attributes':{'maxlength':_0x35a7('0x1a')}}),_0x566444[_0x35a7('0x1e')]=_0x45f2c7(this['locale'],_0x35a7('0x13')),_0x3362ff['on'](_0x35a7('0x9'),()=>{this[_0x35a7('0xf')]=_0x3362ff['element'][_0x35a7('0x18')][_0x35a7('0x28')]();}),_0x566444;}[_0x35a7('0x10')](_0x26933c,_0x3430a2,_0x24bfac,_0x28e5b9){const _0x547f78=new _0x2d6636(this[_0x35a7('0x21')]);return _0x547f78[_0x35a7('0x1c')]({'label':_0x26933c,'icon':_0x3430a2,'tooltip':!0x0}),_0x547f78['extendTemplate']({'attributes':{'class':_0x24bfac}}),_0x28e5b9&&_0x547f78[_0x35a7('0x20')](_0x35a7('0x14'))['to'](this,_0x28e5b9),_0x547f78;}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module revision-history/ui/revisionhistory/revisionhistoryui
3
7
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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;});}}
23
+ const _0x5a03=['view','remove','config','buttonView','isReadOnly','reset','length','revisionHistory','pluginName','render','saveRevision','get','RevisionTracker','panelView','addMany','Revision\x20history','editor','revisionName','RevisionHistoryUI','isEnabled','plugins','execute','Save\x20current\x20revision','add','change:isOpen','focus','set','cancel','isReady','bind','saveButtonView'];(function(_0x4ad47c,_0x5a0386){const _0x18dd4b=function(_0x5e3308){while(--_0x5e3308){_0x4ad47c['push'](_0x4ad47c['shift']());}};_0x18dd4b(++_0x5a0386);}(_0x5a03,0x19e));const _0x18dd=function(_0x4ad47c,_0x5a0386){_0x4ad47c=_0x4ad47c-0x0;let _0x18dd4b=_0x5a03[_0x4ad47c];return _0x18dd4b;};import{Plugin as _0x4cf1cc}from'ckeditor5/src/core';import{ListView as _0x4d4b51,ListItemView as _0x5c47b9,ButtonView as _0x2b8fbb,createDropdown as _0x10f034}from'ckeditor5/src/ui';import _0x380341 from'../../revisiontracker';import _0x333c1e from'./revisionhistorysaverevisionformview';import _0x3dc9f5 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x4fd966}from'../../utils/common-translations';export default class u extends _0x4cf1cc{static get[_0x18dd('0x1c')](){return _0x18dd('0x7');}static get['requires'](){return[_0x380341];}['init'](){const _0x49fe5a=this[_0x18dd('0x5')],_0x101679=_0x49fe5a[_0x18dd('0x9')]['get'](_0x18dd('0x1'));_0x49fe5a['ui']['componentFactory'][_0x18dd('0xc')](_0x18dd('0x1b'),_0x6de3df=>{const _0x473bfe=_0x10f034(_0x6de3df),_0x3063f0=_0x473bfe[_0x18dd('0x2')]['children'],_0xccb0ca=new _0x4d4b51(_0x6de3df),_0x1e01b9=new _0x5c47b9(_0x6de3df),_0x4d5553=new _0x2b8fbb(_0x6de3df),_0x3d68e8=new _0x5c47b9(_0x6de3df),_0x5c4c37=new _0x2b8fbb(_0x6de3df),_0x2b1424=new _0x333c1e(_0x6de3df);function _0x35a457(){_0x3063f0[_0x18dd('0x1a')]&&_0x3063f0[_0x18dd('0x15')](0x0),_0x3063f0[_0x18dd('0xc')](_0xccb0ca);}function _0x5f394f(){_0x473bfe['isOpen']=!0x1,_0x49fe5a['editing'][_0x18dd('0x14')][_0x18dd('0xe')]();}return _0x473bfe[_0x18dd('0x12')]('isEnabled')['to'](_0x101679,_0x18dd('0x11'),_0x101679,_0x18dd('0x8'),_0x49fe5a,_0x18dd('0x18'),(_0x1bf4ee,_0x4a34da,_0x209b1d)=>_0x1bf4ee&&_0x4a34da&&!_0x209b1d),_0x473bfe[_0x18dd('0x17')]['set']({'icon':_0x3dc9f5,'label':_0x4fd966(_0x6de3df,_0x18dd('0x4')),'tooltip':!0x0}),_0x4d5553[_0x18dd('0xf')]({'label':_0x4fd966(_0x6de3df,_0x18dd('0xb')),'withText':!0x0}),_0x4d5553['bind'](_0x18dd('0x8'))['to'](_0x101679,_0x18dd('0x11'),_0x101679,_0x18dd('0x8'),_0x49fe5a,_0x18dd('0x18'),(_0xbfb57d,_0x308b5c,_0x1e6fb7)=>_0xbfb57d&&_0x308b5c&&!_0x1e6fb7),_0x4d5553['on'](_0x18dd('0xa'),()=>function(){_0x3063f0[_0x18dd('0x1a')]&&_0x3063f0[_0x18dd('0x15')](0x0),(_0x2b1424[_0x18dd('0x19')](),_0x3063f0[_0x18dd('0xc')](_0x2b1424),_0x2b1424['focus']());}()),_0x5c4c37[_0x18dd('0xf')]({'label':_0x4fd966(_0x6de3df,'Open\x20revision\x20history'),'withText':!0x0}),_0x5c4c37[_0x18dd('0x12')]('isEnabled')['to'](_0x101679,'isReady',_0x49fe5a,_0x18dd('0x18'),(_0x340274,_0x1d3129)=>_0x340274&&!_0x1d3129),_0x5c4c37['on'](_0x18dd('0xa'),()=>{_0x49fe5a[_0x18dd('0x16')][_0x18dd('0x0')](_0x18dd('0x1b'))['showRevisionViewerCallback'](),_0x5f394f();}),_0x1e01b9['children']['add'](_0x4d5553),_0x3d68e8['children'][_0x18dd('0xc')](_0x5c4c37),_0xccb0ca['items'][_0x18dd('0x3')]([_0x1e01b9,_0x3d68e8]),_0x473bfe['on'](_0x18dd('0xd'),()=>_0x35a457()),_0x2b1424[_0x18dd('0x13')]['bind'](_0x18dd('0x8'))['to'](_0x101679,'isReady',_0x101679,_0x18dd('0x8'),_0x49fe5a,_0x18dd('0x18'),(_0x109f4c,_0x455bab,_0x22dc9a)=>_0x109f4c&&_0x455bab&&!_0x22dc9a),_0x2b1424['on']('submit',()=>(_0x49fe5a[_0x18dd('0x9')][_0x18dd('0x0')](_0x380341)[_0x18dd('0x1e')]({'name':_0x2b1424[_0x18dd('0x6')]}),void _0x5f394f())),_0x2b1424['on'](_0x18dd('0x10'),()=>_0x35a457()),_0x2b1424[_0x18dd('0x1d')](),_0x35a457(),_0x473bfe;});}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module revision-history/ui/revisionsidebar/revisionsidebar
3
7
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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')];
23
+ const _0x522b=['revisionSetName','getRevision','revisionSelected','compareAgainstSelected','isEnabled','compare','Compare\x20against\x20selected','action','repository','revisionHistory.viewerSidebarContainer','isVisible','pluginName','element','config','isSelected','revisionViews','setName','bind','render','defaultRevisionActions','ready','map','getRevisionsInDiff','restoreRevision','plugins','Name\x20this\x20revision','_sidebarView','revisionHistory','isReady','_handleRevisionSetName','length','string','getEarlierVisibleRevision','_revisions','destroy','get','_revisionsRepository','RevisionsSidebar','_revisionViewer','_createRevisionActions','getIndex','remove','timePeriodViews','nameRevision','focus','revisionHistory.revisionActions','listenTo','availableRevisionActions','editor','selectRevision','_handleRevisionSelected','_handleDiffChange','diff','init','getLaterVisibleRevision','add','requires','highlightRevisions','change:diff','fieldView'];(function(_0x2f54f1,_0x522b2b){const _0x3511f5=function(_0x370110){while(--_0x370110){_0x2f54f1['push'](_0x2f54f1['shift']());}};_0x3511f5(++_0x522b2b);}(_0x522b,0x12b));const _0x3511=function(_0x2f54f1,_0x522b2b){_0x2f54f1=_0x2f54f1-0x0;let _0x3511f5=_0x522b[_0x2f54f1];return _0x3511f5;};import{Plugin as _0xbb8b03}from'ckeditor5/src/core';import _0x139ce9 from'./revisionssidebarview';import _0x5968c4 from'../../revisionviewer';export default class w extends _0xbb8b03{static get[_0x3511('0xc')](){return _0x3511('0x26');}static get[_0x3511('0x39')](){return[_0x5968c4];}constructor(_0x58aadf){super(_0x58aadf),this['_revisionViewer']=_0x58aadf[_0x3511('0x19')][_0x3511('0x24')](_0x5968c4),this['_revisionsRepository']=this[_0x3511('0x27')][_0x3511('0x9')],this[_0x3511('0x1b')]=null;}[_0x3511('0x36')](){const _0x48ff8f=this[_0x3511('0x25')][_0x3511('0x22')],_0x336732=this[_0x3511('0x28')](),_0x11caf1=this[_0x3511('0x31')][_0x3511('0xe')][_0x3511('0x24')](_0x3511('0xa'));this[_0x3511('0x1b')]=new _0x139ce9(this[_0x3511('0x31')]['locale'],_0x48ff8f,_0x336732),this[_0x3511('0x1b')]['on'](_0x3511('0x3'),this[_0x3511('0x33')]['bind'](this)),this['_sidebarView']['on'](_0x3511('0x1'),this['_handleRevisionSetName']['bind'](this)),this[_0x3511('0x1b')]['bind'](_0x3511('0x5'))['to'](this[_0x3511('0x27')]),this['_sidebarView'][_0x3511('0x2b')]['on'](_0x3511('0x38'),(_0x33f168,_0x1cfdb1)=>{_0x1cfdb1[_0x3511('0x10')]['on'](_0x3511('0x38'),(_0x256c29,_0x1de0ab)=>{_0x1de0ab[_0x3511('0x12')](_0x3511('0x5'),_0x3511('0x1d'))['to'](this[_0x3511('0x27')]);});}),this[_0x3511('0x1b')][_0x3511('0x13')](),this[_0x3511('0x2f')](this[_0x3511('0x31')]['data'],_0x3511('0x15'),this['_handleEditorDataReady'][_0x3511('0x12')](this)),this[_0x3511('0x2f')](this['_revisionViewer'],_0x3511('0x3b'),this[_0x3511('0x34')][_0x3511('0x12')](this)),_0x11caf1['appendChild'](this[_0x3511('0x1b')]['element']);}[_0x3511('0x23')](){this[_0x3511('0x1b')][_0x3511('0xd')][_0x3511('0x2a')](),this[_0x3511('0x1b')][_0x3511('0x23')]();}['_handleEditorDataReady'](){const _0x39739c=this[_0x3511('0x25')]['getRevision'](0x0);if(_0x39739c){const _0x3439f6=this[_0x3511('0x25')]['getEarlierVisibleRevision'](_0x39739c['id']);this[_0x3511('0x27')]['compare'](_0x39739c,_0x3439f6);}}['_handleRevisionSelected'](_0x4ef8c5,_0x408fdb){const _0x2722af=this[_0x3511('0x25')]['getRevision'](_0x408fdb['id']),_0x245e64=this['_revisionsRepository'][_0x3511('0x21')](_0x2722af['id']);this[_0x3511('0x27')][_0x3511('0x6')](_0x2722af,_0x245e64);}[_0x3511('0x1e')](_0x5d42a2,_0x4710bb){this[_0x3511('0x25')][_0x3511('0x2')](_0x4710bb['id'])[_0x3511('0x11')](_0x4710bb['name']);}['_handleDiffChange'](_0x1da9d7,_0xf5ea14,_0x454c8b){const _0x5a9a8a=this['_revisionsRepository'][_0x3511('0x17')](_0x454c8b);_0x5a9a8a[_0x3511('0x1f')]>0x2?(this[_0x3511('0x1b')][_0x3511('0x3a')](_0x5a9a8a),this[_0x3511('0x1b')][_0x3511('0x32')](null)):(this['_sidebarView'][_0x3511('0x3a')]([]),this[_0x3511('0x1b')][_0x3511('0x32')](_0x5a9a8a[0x0]));}[_0x3511('0x28')](){const _0x33d123=this[_0x3511('0x31')],_0x1bc140=w[_0x3511('0x30')],_0x4fc155=_0x33d123['config'][_0x3511('0x24')](_0x3511('0x2e'))||w[_0x3511('0x14')];if(_0x4fc155[_0x3511('0x1f')])return _0x4fc155[_0x3511('0x16')](_0x59513f=>{const _0x203088=_0x3511('0x20')==typeof _0x59513f?Object['assign']({},_0x1bc140[_0x59513f]):_0x59513f;return _0x203088[_0x3511('0x8')]=_0x203088['action'][_0x3511('0x12')](this,_0x33d123),_0x203088[_0x3511('0xb')]&&(_0x203088[_0x3511('0xb')]=_0x203088[_0x3511('0xb')][_0x3511('0x12')](this,_0x33d123)),_0x203088;});}}w['availableRevisionActions']={'compareAgainstSelected':{'name':_0x3511('0x7'),'action':({plugins:_0x10d373},_0x2d29d1)=>{const _0x31735a=_0x10d373[_0x3511('0x24')](_0x5968c4),_0x41c2dc=_0x31735a[_0x3511('0x9')];let _0x3c8641=_0x31735a['diff']['newRevisionId'],_0x1bd0b2=_0x2d29d1['id'];_0x41c2dc['getIndex'](_0x3c8641)>_0x41c2dc[_0x3511('0x29')](_0x1bd0b2)&&([_0x3c8641,_0x1bd0b2]=[_0x1bd0b2,_0x3c8641]),_0x31735a[_0x3511('0x6')](_0x3c8641,_0x1bd0b2);},'isVisible':({plugins:_0x89a0fb},_0x439705)=>{const _0x57a27e=_0x89a0fb[_0x3511('0x24')](_0x5968c4);return!(_0x57a27e['repository'][_0x3511('0x17')](_0x57a27e[_0x3511('0x35')])['length']>0x2)&&!_0x439705[_0x3511('0xf')];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x5320d5,{id:_0xd093fc})=>{_0x5320d5[_0x3511('0xe')]['get'](_0x3511('0x1c'))['restoreRevisionCallback'](_0xd093fc);},'isVisible':({plugins:_0x42ccbb},_0x4faed8)=>!!_0x42ccbb[_0x3511('0x24')](_0x5968c4)['repository'][_0x3511('0x37')](_0x4faed8['id'])},'nameRevision':{'name':_0x3511('0x1a'),'action':({plugins:_0x172c4f},{id:_0x45b99d,revisionNameView:_0x2efc9})=>{const _0x20605d=_0x172c4f[_0x3511('0x24')](_0x5968c4),_0x4cfd94=_0x20605d[_0x3511('0x9')][_0x3511('0x21')](_0x45b99d);_0x20605d['compare'](_0x45b99d,_0x4cfd94),_0x2efc9[_0x3511('0x2d')](),_0x2efc9[_0x3511('0x0')]['select']();}}},w[_0x3511('0x14')]=[_0x3511('0x4'),_0x3511('0x18'),_0x3511('0x2c')];
@@ -1,4 +1,5 @@
1
1
  /**
2
- * @module revision-history/ui/revisionsidebar/revisionsidebarheaderview
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
3
4
  */
4
5
  import '../../../theme/revisionssidebar/revisionssidebarheader.css';
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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'))]}]});}}
23
+ const _0x3152=['div','ck-revision-history-sidebar__header__label','content','ck-revision-history-sidebar__header','ck-reset_all','Revision\x20history'];(function(_0x340b31,_0x315219){const _0x50c706=function(_0x31a34a){while(--_0x31a34a){_0x340b31['push'](_0x340b31['shift']());}};_0x50c706(++_0x315219);}(_0x3152,0x13e));const _0x50c7=function(_0x340b31,_0x315219){_0x340b31=_0x340b31-0x0;let _0x50c706=_0x3152[_0x340b31];return _0x50c706;};import{View as _0x46b056,IconView as _0x25ec21}from'ckeditor5/src/ui';import{getTranslation as _0x3c5c94}from'../../utils/common-translations';import _0x5dcc11 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class es extends _0x46b056{constructor(_0x293fb0){super(_0x293fb0);const _0x50fb05=new _0x25ec21();_0x50fb05[_0x50c7('0x2')]=_0x5dcc11,this['setTemplate']({'tag':_0x50c7('0x0'),'attributes':{'class':['ck',_0x50c7('0x4'),_0x50c7('0x3')]},'children':[_0x50fb05,{'tag':'span','attributes':{'class':['ck',_0x50c7('0x1')]},'children':[_0x3c5c94(_0x293fb0,_0x50c7('0x5'))]}]});}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module revision-history/ui/revisionsidebar/revisionsidebartimeperiodview
3
7
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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);}}
23
+ const _0x4644=['addRevision','revisionViews','startDate','locale','find','div','uiLanguage','span','createCollection','ck-revision-history-sidebar__time-period__revisions','_revisionActions','delegate'];(function(_0x5cb996,_0x4644a8){const _0x414eac=function(_0x14329b){while(--_0x14329b){_0x5cb996['push'](_0x5cb996['shift']());}};_0x414eac(++_0x4644a8);}(_0x4644,0x1e9));const _0x414e=function(_0x5cb996,_0x4644a8){_0x5cb996=_0x5cb996-0x0;let _0x414eac=_0x4644[_0x5cb996];return _0x414eac;};import{View as _0x589e3c}from'ckeditor5/src/ui';import _0x261944 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x1da0ff}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x589e3c{constructor(_0x5bb509,_0x1d87ee,_0x555744){super(_0x5bb509);const _0x3ed240=_0x1da0ff(_0x1d87ee,this['locale'][_0x414e('0x9')])['localizedPeriodName'];this[_0x414e('0x5')]=_0x1d87ee,this[_0x414e('0x4')]=this[_0x414e('0xb')](),this[_0x414e('0x1')]=_0x555744,this['revisionViews'][_0x414e('0x2')]('select')['to'](this),this[_0x414e('0x4')][_0x414e('0x2')]('setName')['to'](this),this['setTemplate']({'tag':_0x414e('0x8'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':_0x414e('0xa'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x3ed240}]},{'tag':_0x414e('0x8'),'attributes':{'class':['ck',_0x414e('0x0')]},'children':this['revisionViews']}]});}[_0x414e('0x3')](_0x5d9b4f){const _0x370371=new _0x261944(this[_0x414e('0x6')],_0x5d9b4f,this[_0x414e('0x1')]);this[_0x414e('0x4')]['add'](_0x370371);}['removeRevision'](_0x2247f1){const _0x4c4c0b=this['revisionViews'][_0x414e('0x7')](_0x37ee21=>_0x37ee21['id']===_0x2247f1['id']);this[_0x414e('0x4')]['remove'](_0x4c4c0b);}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module revision-history/ui/revisionsidebar/revisionsidebarview
3
7
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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')]());}}
23
+ const _0x433c=['createCollection','render','revisionSelected','add','revisionSetName','flat','setName','div','ck-disabled','removeRevision','ck-revision-history-sidebar','delegate','timePeriodViews','_addRevision','bindTemplate','find','addRevision','createdAt','set','_revisionActions','_revisions','_getTimePeriodViewByStartDate','some','startDate','locale','get','ck-revision-history-sidebar__timeline','map','_removeRevision','getTime','highlightRevisions','isEnabled','select','revisionViews','setTemplate','selectRevision','highlight','fire','remove'];(function(_0x2d66b7,_0x433cde){const _0xea2bda=function(_0x14182a){while(--_0x14182a){_0x2d66b7['push'](_0x2d66b7['shift']());}};_0xea2bda(++_0x433cde);}(_0x433c,0x122));const _0xea2b=function(_0x2d66b7,_0x433cde){_0x2d66b7=_0x2d66b7-0x0;let _0xea2bda=_0x433c[_0x2d66b7];return _0xea2bda;};import{View as _0x2c0621}from'ckeditor5/src/ui';import _0x42e308 from'./revisionssidebartimeperiodview';import _0x497ce8 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x17286e}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x2c0621{constructor(_0x23aff3,_0x500a63,_0x976658){super(_0x23aff3);const _0x38f9a7=this[_0xea2b('0x24')];this[_0xea2b('0x22')]=this[_0xea2b('0x16')](),this[_0xea2b('0x22')][_0xea2b('0x21')](_0xea2b('0xf'))['to'](this),this[_0xea2b('0x22')][_0xea2b('0x21')]('setName')['to'](this),this['_revisions']=_0x500a63,this[_0xea2b('0x2')]=_0x976658,this['on'](_0xea2b('0xf'),(_0x34cab8,_0x1b9569)=>{this[_0xea2b('0x14')](_0xea2b('0x18'),_0x1b9569);}),this['on'](_0xea2b('0x1c'),(_0x215384,_0x4de9ba)=>{this[_0xea2b('0x14')](_0xea2b('0x1a'),_0x4de9ba);}),this[_0xea2b('0x1')](_0xea2b('0xe'),!0x1),this[_0xea2b('0x11')]({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners',_0xea2b('0x20')]},'children':[new _0x497ce8(_0x23aff3),{'tag':_0xea2b('0x1d'),'attributes':{'class':['ck',_0xea2b('0x9'),_0x38f9a7['if'](_0xea2b('0xe'),_0xea2b('0x1e'),_0x5a6aee=>!_0x5a6aee)]},'children':this['timePeriodViews']}]});}[_0xea2b('0x17')](){super[_0xea2b('0x17')]();for(const _0x3f4e73 of this[_0xea2b('0x3')])this[_0xea2b('0x23')](_0x3f4e73);this[_0xea2b('0x3')]['on'](_0xea2b('0x19'),(_0x20d616,_0x8ac985)=>{this[_0xea2b('0x23')](_0x8ac985);}),this[_0xea2b('0x3')]['on'](_0xea2b('0x15'),(_0x42a4c0,_0x17daf9)=>{this['_removeRevision'](_0x17daf9);});}get[_0xea2b('0x10')](){return this[_0xea2b('0x22')][_0xea2b('0xa')](_0x128ba7=>_0x128ba7['revisionViews']['map'](_0x5d985d=>_0x5d985d))[_0xea2b('0x1b')]();}[_0xea2b('0x12')](_0x4c64bb){for(const _0x3d06cf of this[_0xea2b('0x10')])_0x4c64bb&&_0x4c64bb['id']===_0x3d06cf['id']?_0x3d06cf[_0xea2b('0xf')]():_0x3d06cf['deselect']();}[_0xea2b('0xd')](_0x59be59){for(const _0x2f2abd of this['revisionViews'])_0x59be59[_0xea2b('0x5')](({id:_0x2acc40})=>_0x2acc40===_0x2f2abd['id'])?_0x2f2abd[_0xea2b('0x13')]():_0x2f2abd['unhighlight']();}[_0xea2b('0x23')](_0xfdbee7){const _0x3bafbd=_0x17286e(_0xfdbee7[_0xea2b('0x0')],this[_0xea2b('0x7')]['uiLanguage'])[_0xea2b('0x6')];let _0x2dc7fb=this[_0xea2b('0x22')][_0xea2b('0x8')](0x0);_0x2dc7fb&&_0x2dc7fb[_0xea2b('0x6')][_0xea2b('0xc')]()===_0x3bafbd[_0xea2b('0xc')]()||(_0x2dc7fb=new _0x42e308(this['locale'],_0x3bafbd,this['_revisionActions']),this['timePeriodViews'][_0xea2b('0x19')](_0x2dc7fb)),_0x2dc7fb[_0xea2b('0x26')](_0xfdbee7);}[_0xea2b('0xb')](_0x408142){const _0x3b6c14=_0x17286e(_0x408142[_0xea2b('0x0')],this[_0xea2b('0x7')]['uiLanguage'])[_0xea2b('0x6')];this[_0xea2b('0x4')](_0x3b6c14)[_0xea2b('0x1f')](_0x408142);}[_0xea2b('0x4')](_0x587bba){return this[_0xea2b('0x22')][_0xea2b('0x25')](_0x5df023=>_0x5df023[_0xea2b('0x6')][_0xea2b('0xc')]()===_0x587bba[_0xea2b('0xc')]());}}
@@ -1,5 +1,6 @@
1
1
  /**
2
- * @module revision-history/ui/revisionsidebar/utils
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
3
4
  */
4
5
  export declare function getDateTimePeriodInfo(jsDate: Date, locale: string): DateTimePeriod;
5
6
  export interface DateTimePeriod {
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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};}
23
+ const _0x2dc0=['minus','local','hasSame','monthLong','toJSDate','week','startOf','year','day','toRelativeCalendar'];(function(_0x2ac12c,_0x2dc04c){const _0xd8e32e=function(_0x40e39d){while(--_0x40e39d){_0x2ac12c['push'](_0x2ac12c['shift']());}};_0xd8e32e(++_0x2dc04c);}(_0x2dc0,0x117));const _0xd8e3=function(_0x2ac12c,_0x2dc04c){_0x2ac12c=_0x2ac12c-0x0;let _0xd8e32e=_0x2dc0[_0x2ac12c];return _0xd8e32e;};import{DateTime as _0x470c2c}from'luxon';export function getDateTimePeriodInfo(_0x468632,_0x191b19){const _0x3c64f5=_0x470c2c['fromJSDate'](_0x468632)['setLocale'](_0x191b19),_0x1238f7=_0x470c2c[_0xd8e3('0x2')](),_0x456d61=_0x1238f7[_0xd8e3('0x1')]({'days':0x1})[_0xd8e3('0x7')](_0xd8e3('0x9'));let _0x55b2a6,_0xbfa8ec;return _0x3c64f5[_0xd8e3('0x3')](_0x1238f7,'day')?(_0x55b2a6=_0x3c64f5['startOf']('day')[_0xd8e3('0x5')](),_0xbfa8ec=_0x3c64f5[_0xd8e3('0x0')]()):_0x3c64f5[_0xd8e3('0x3')](_0x456d61,_0xd8e3('0x9'))?(_0x55b2a6=_0x456d61[_0xd8e3('0x5')](),_0xbfa8ec=_0x3c64f5['toRelativeCalendar']()):_0x3c64f5[_0xd8e3('0x3')](_0x1238f7,_0xd8e3('0x6'))?(_0x55b2a6=_0x3c64f5[_0xd8e3('0x7')]('week')[_0xd8e3('0x5')](),_0xbfa8ec=_0x3c64f5['weekdayLong']||''):_0x3c64f5[_0xd8e3('0x3')](_0x1238f7,_0xd8e3('0x8'))?(_0x55b2a6=_0x3c64f5['startOf']('month')[_0xd8e3('0x5')](),_0xbfa8ec=_0x3c64f5[_0xd8e3('0x4')]||''):(_0x55b2a6=_0x3c64f5['startOf']('year')['toJSDate'](),_0xbfa8ec=String(_0x3c64f5[_0xd8e3('0x8')])),{'startDate':_0x55b2a6,'localizedPeriodName':_0xbfa8ec};}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module revision-history/ui/revisionviewer/changedetailsview
3
7
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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')]();}}
23
+ const _0x1980=['isSuggestion','type','Suggested\x20by','name','changeId','author','data','setTemplate','Added\x20by','element','ck-revision-change__','focus','set','ck-revision-change__label','_model','span','div','ck-revision-change','Removed\x20by'];(function(_0x43a4b3,_0x1980cd){const _0x37c8fb=function(_0x571455){while(--_0x571455){_0x43a4b3['push'](_0x43a4b3['shift']());}};_0x37c8fb(++_0x1980cd);}(_0x1980,0x180));const _0x37c8=function(_0x43a4b3,_0x1980cd){_0x43a4b3=_0x43a4b3-0x0;let _0x37c8fb=_0x1980[_0x43a4b3];return _0x37c8fb;};import{View as _0x110696}from'ckeditor5/src/ui';import{getTranslation as _0x1d5548}from'../../utils/common-translations';export default class Z extends _0x110696{constructor(_0x20994c,_0x2ed2d4){super(_0x20994c),this[_0x37c8('0xa')]=_0x2ed2d4,this[_0x37c8('0x0')]=_0x2ed2d4['id'];const _0x597771=this['bindTemplate'],_0xa5e3a1=_0x1d5548(_0x20994c,_0x2ed2d4[_0x37c8('0x2')][_0x37c8('0xf')]?_0x37c8('0x11'):'add'==_0x2ed2d4[_0x37c8('0x10')]?_0x37c8('0x4'):_0x37c8('0xe'));this[_0x37c8('0x8')](_0x37c8('0x10'),_0x2ed2d4[_0x37c8('0x10')]),this[_0x37c8('0x3')]({'tag':_0x37c8('0xc'),'attributes':{'class':['ck-annotation',_0x37c8('0xd'),_0x597771['to'](_0x37c8('0x10'),_0x1eda51=>_0x37c8('0x6')+_0x1eda51)],'tabindex':-0x1},'children':[{'tag':_0x37c8('0xb'),'children':[{'tag':'span','attributes':{'class':[_0x37c8('0x9')]},'children':[{'text':_0xa5e3a1}]},{'text':'\x20'+_0x2ed2d4[_0x37c8('0x1')][_0x37c8('0x12')]}]}]});}[_0x37c8('0x7')](){this[_0x37c8('0x5')]['focus']();}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module revision-history/ui/revisionviewer/changenaviagationview
3
7
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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]}]});}}
23
+ const _0x511a=['backward','setTemplate','fire','ck-revision-history-ui__changes-navigation__label','span','NUMBER_OF_CHANGES','Show\x20next\x20change','ck-hidden','No\x20changes','forward','numberOfChanges','ck-revision-history-ui__changes-navigation__navigation','Total','set','isReady','Loading...','Show\x20previous\x20change','bindTemplate','bind','currentChangeNumber','isEnabled','_statusText','ck-revision-history-ui__changes-navigation__wrapper','isNavigationMode','X_OF_Y_CHANGES','isForwardNavigationEnabled','_isStatusLabelVisible','ck-revision-history-ui','execute'];(function(_0x539506,_0x511a40){const _0x1aca11=function(_0x2dabf4){while(--_0x2dabf4){_0x539506['push'](_0x539506['shift']());}};_0x1aca11(++_0x511a40);}(_0x511a,0x1c3));const _0x1aca=function(_0x539506,_0x511a40){_0x539506=_0x539506-0x0;let _0x1aca11=_0x511a[_0x539506];return _0x1aca11;};import{View as _0x414c98,ButtonView as _0x1af685,ToolbarSeparatorView as _0x442954}from'ckeditor5/src/ui';import{getTranslation as _0x58e9ce}from'../../utils/common-translations';import _0x1dd503 from'../../../theme/icons/arrow-up.svg';import _0x449dd8 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x414c98{constructor(_0x3d8c02){super(_0x3d8c02);const _0x165924=this[_0x1aca('0x1')],_0x44fb5b=new _0x1af685(_0x3d8c02),_0x454e15=new _0x1af685(_0x3d8c02);this[_0x1aca('0x1a')](_0x1aca('0x7'),!0x1),this[_0x1aca('0x1a')](_0x1aca('0x1b'),!0x1),this[_0x1aca('0x1a')](_0x1aca('0x3'),0x0),this[_0x1aca('0x1a')](_0x1aca('0x17'),0x0),this[_0x1aca('0x1a')](_0x1aca('0x9'),!0x1),this[_0x1aca('0x1a')]('isBackwardNavigationEnabled',!0x1),this[_0x1aca('0x2')]('_isStatusLabelVisible')['to'](this,_0x1aca('0x1b'),this,_0x1aca('0x17'),(_0x4f8172,_0x2d3d5f)=>_0x4f8172&&_0x2d3d5f>0x0),this[_0x1aca('0x2')](_0x1aca('0x5'))['to'](this,_0x1aca('0x1b'),this,_0x1aca('0x3'),this,_0x1aca('0x17'),this,_0x1aca('0x7'),(_0x5d6f5,_0x3456eb,_0x2aeeee,_0x1e3afd)=>{if(!_0x5d6f5)return _0x58e9ce(_0x3d8c02,_0x1aca('0x1c'));if(!_0x2aeeee)return _0x58e9ce(_0x3d8c02,_0x1aca('0x15'));const _0x443f3f=_0x58e9ce(_0x3d8c02,_0x1aca('0x12'),_0x2aeeee);return _0x1e3afd?_0x58e9ce(_0x3d8c02,_0x1aca('0x8'),[_0x3456eb+0x1,_0x2aeeee]):_0x443f3f;}),_0x44fb5b[_0x1aca('0x1a')]({'label':_0x58e9ce(_0x3d8c02,_0x1aca('0x0')),'tooltip':!0x0,'icon':_0x1dd503}),_0x454e15['set']({'label':_0x58e9ce(_0x3d8c02,_0x1aca('0x13')),'tooltip':!0x0,'icon':_0x449dd8}),_0x44fb5b[_0x1aca('0x2')](_0x1aca('0x4'))['to'](this,'isBackwardNavigationEnabled'),_0x454e15[_0x1aca('0x2')]('isEnabled')['to'](this,_0x1aca('0x9')),_0x44fb5b['on']('execute',()=>this[_0x1aca('0xf')](_0x1aca('0xc'),_0x1aca('0xd'))),_0x454e15['on'](_0x1aca('0xc'),()=>this[_0x1aca('0xf')]('execute',_0x1aca('0x16'))),this[_0x1aca('0xe')]({'tag':'div','attributes':{'class':['ck',_0x1aca('0xb'),'ck-revision-history-ui__changes-navigation']},'children':[{'tag':_0x1aca('0x11'),'attributes':{'class':[_0x1aca('0x6')]},'children':[{'tag':_0x1aca('0x11'),'attributes':{'class':[_0x1aca('0x10'),_0x165924['if'](_0x1aca('0xa'),_0x1aca('0x14'),_0x261d4b=>!_0x261d4b)]},'children':[{'text':_0x165924['to']('isNavigationMode',_0x4a9ff1=>_0x4a9ff1?_0x58e9ce(_0x3d8c02,'EDIT_X_OF_Y_REVISIONS')+':\x20':_0x58e9ce(_0x3d8c02,_0x1aca('0x19'))+':\x20')}]},{'text':_0x165924['to']('_statusText')}]},new _0x442954(),{'tag':'div','attributes':{'class':[_0x1aca('0x18')]},'children':[_0x44fb5b,_0x454e15]}]});}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module revision-history/ui/revisionviewer/revisionviewerloadingoverlay
3
7
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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);});}}
23
+ const _0xef53=['show','editing','addClass','hide','roots','RevisionViewerLoadingOverlay','view','ck-editor__editable__loading-overlay','pluginName','document','change'];(function(_0x258394,_0xef53e9){const _0x224c03=function(_0x421ff4){while(--_0x421ff4){_0x258394['push'](_0x258394['shift']());}};_0x224c03(++_0xef53e9);}(_0xef53,0x101));const _0x224c=function(_0x258394,_0xef53e9){_0x258394=_0x258394-0x0;let _0x224c03=_0xef53[_0x258394];return _0x224c03;};import{Plugin as _0x3dbe8b}from'ckeditor5/src/core';const oe=_0x224c('0x3');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x3dbe8b{static get[_0x224c('0x4')](){return _0x224c('0x1');}[_0x224c('0x7')](){const _0x4d8daa=this['editor'][_0x224c('0x8')][_0x224c('0x2')];_0x4d8daa[_0x224c('0x6')](_0x303a12=>{for(const _0x33fab6 of _0x4d8daa[_0x224c('0x5')]['roots'])_0x303a12[_0x224c('0x9')](oe,_0x33fab6);});}[_0x224c('0xa')](){const _0x520016=this['editor'][_0x224c('0x8')][_0x224c('0x2')];_0x520016['change'](_0x4dd4f3=>{for(const _0x273171 of _0x520016[_0x224c('0x5')][_0x224c('0x0')])_0x4dd4f3['removeClass'](oe,_0x273171);});}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module revision-history/ui/revisionviewer/revisionviewerui
3
7
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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')]();});}}
23
+ const _0x3e7f=['numberOfChanges','pluginName','exitToEditing','editor','isBackwardNavigationEnabled','showNextChange','changesNavigation','requires','restoreRevision','get','isReady','forward','isNavigationMode','commands','closeRevisionViewerCallback','componentFactory','Back\x20to\x20editing','isForwardNavigationEnabled','isEnabled','hide','showPreviousChange','bind','show','currentChangeNumber','ck-revision-history-ui__back-to-editing','execute','config','plugins','add','revisionHistory','listenTo'];(function(_0x465feb,_0x3e7f49){const _0x3a2523=function(_0x178f04){while(--_0x178f04){_0x465feb['push'](_0x465feb['shift']());}};_0x3a2523(++_0x3e7f49);}(_0x3e7f,0x18b));const _0x3a25=function(_0x465feb,_0x3e7f49){_0x465feb=_0x465feb-0x0;let _0x3a2523=_0x3e7f[_0x465feb];return _0x3a2523;};import{Plugin as _0x105fa5}from'ckeditor5/src/core';import{ButtonView as _0x221b7d}from'ckeditor5/src/ui';import _0x57a443 from'./changesnavigationview';import _0x1b1663 from'./../../revisionviewer';import _0x2a3caf from'./revisionviewerloadingoverlay';import{getTranslation as _0xaffdfb}from'../../utils/common-translations';import _0x412cab from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x105fa5{static get[_0x3a25('0x9')](){return'RevisionViewerUI';}static get[_0x3a25('0xf')](){return[_0x1b1663,_0x2a3caf];}['init'](){const _0x2916bc=this[_0x3a25('0xb')],_0x2dc9f8=_0x2916bc[_0x3a25('0x4')][_0x3a25('0x11')](_0x1b1663),_0x69df52=_0x2916bc[_0x3a25('0x4')][_0x3a25('0x11')](_0x2a3caf);_0x2916bc['ui']['componentFactory'][_0x3a25('0x5')](_0x3a25('0xa'),_0x205758=>{const _0xd228c8=new _0x221b7d(_0x205758);return _0xd228c8['set']({'label':_0xaffdfb(_0x205758,_0x3a25('0x18')),'icon':_0x412cab,'withText':!0x0,'tooltip':!0x0,'class':_0x3a25('0x1')}),this[_0x3a25('0x7')](_0xd228c8,_0x3a25('0x2'),()=>{_0x2916bc[_0x3a25('0x3')][_0x3a25('0x11')](_0x3a25('0x6'))[_0x3a25('0x16')]();}),_0xd228c8;}),_0x2916bc['ui'][_0x3a25('0x17')][_0x3a25('0x5')]('restoreRevision',_0x2a42b8=>{const _0x2b5004=new _0x221b7d(_0x2a42b8);return _0x2b5004['set']({'label':_0xaffdfb(_0x2a42b8,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2b5004[_0x3a25('0x1d')](_0x3a25('0x1a'))['to'](_0x2916bc[_0x3a25('0x15')]['get']('restoreRevision')),this[_0x3a25('0x7')](_0x2b5004,_0x3a25('0x2'),()=>_0x2916bc['execute'](_0x3a25('0x10'))),_0x2b5004;}),_0x2916bc['ui']['componentFactory']['add'](_0x3a25('0xe'),_0x573554=>{const _0xa81a50=new _0x57a443(_0x573554),_0x420b11=_0x2916bc[_0x3a25('0x15')][_0x3a25('0x11')](_0x3a25('0x1c')),_0x37df35=_0x2916bc[_0x3a25('0x15')][_0x3a25('0x11')](_0x3a25('0xd'));return _0xa81a50['bind'](_0x3a25('0xc'))['to'](_0x420b11,'isEnabled'),_0xa81a50[_0x3a25('0x1d')](_0x3a25('0x19'))['to'](_0x37df35,_0x3a25('0x1a')),_0xa81a50['bind'](_0x3a25('0x12'),_0x3a25('0x0'),_0x3a25('0x8'),_0x3a25('0x14'))['to'](_0x2dc9f8),this['listenTo'](_0xa81a50,_0x3a25('0x2'),(_0x401bff,_0x1805c4)=>{_0x2916bc[_0x3a25('0x2')](_0x3a25('0x13')===_0x1805c4?'showNextChange':_0x3a25('0x1c'));}),_0xa81a50;}),_0x69df52['show'](),_0x2dc9f8['on']('change:isReady',(_0x3ea2ad,_0x356ce8,_0x517b56)=>{_0x517b56?_0x69df52[_0x3a25('0x1b')]():_0x69df52[_0x3a25('0x1e')]();});}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module revision-history/utils/common-translations
3
7
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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;}}
23
+ export function getTranslation(_0x2af1c7,_0xcb78c1,_0x48c517){const t=_0x2af1c7['t'];switch(_0xcb78c1){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'},_0x48c517);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x48c517);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 _0xcb78c1;}}