@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231222.0 → 0.0.0-nightly-20231223.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.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3ce0=['set','showRevisionViewerCallback','buttonView','revisionHistory','isReady','RevisionTracker','Revision\x20history','get','length','revisionName','remove','editing','RevisionHistoryUI','Open\x20revision\x20history','isReadOnly','focus','componentFactory','config','bind','editor','render','history','submit','children','plugins','panelView','isEnabled','reset','execute','items','view','saveRevision','add'];(function(_0x389b8d,_0x3ce041){const _0x1c88c3=function(_0x2db010){while(--_0x2db010){_0x389b8d['push'](_0x389b8d['shift']());}};_0x1c88c3(++_0x3ce041);}(_0x3ce0,0x152));const _0x1c88=function(_0x389b8d,_0x3ce041){_0x389b8d=_0x389b8d-0x0;let _0x1c88c3=_0x3ce0[_0x389b8d];return _0x1c88c3;};import{Plugin as _0x5084d5,icons as _0xb10efb}from'ckeditor5/src/core.js';import{ListView as _0x1b62bd,ListItemView as _0x225380,ButtonView as _0x16111f,createDropdown as _0x2b7e4b}from'ckeditor5/src/ui.js';import _0x25cb95 from'../../revisiontracker.js';import _0x590676 from'./revisionhistorysaverevisionformview.js';import{getTranslation as _0x2b08d5}from'../../utils/common-translations.js';export default class u extends _0x5084d5{static get['pluginName'](){return _0x1c88('0x4');}static get['requires'](){return[_0x25cb95];}['init'](){const _0x2fa47c=this[_0x1c88('0xb')],_0x535b78=_0x2fa47c['plugins'][_0x1c88('0x20')](_0x1c88('0x1e'));_0x2fa47c['ui'][_0x1c88('0x8')][_0x1c88('0x18')](_0x1c88('0x1c'),_0x203ecd=>{const _0x5d23de=_0x2b7e4b(_0x203ecd),_0x35e5e7=_0x5d23de[_0x1c88('0x11')][_0x1c88('0xf')],_0x177f71=new _0x1b62bd(_0x203ecd),_0x487a4b=new _0x225380(_0x203ecd),_0x534ac2=new _0x16111f(_0x203ecd),_0x353de3=new _0x225380(_0x203ecd),_0x5d7167=new _0x16111f(_0x203ecd),_0x370d90=new _0x590676(_0x203ecd);function _0x104470(){_0x35e5e7[_0x1c88('0x0')]&&_0x35e5e7[_0x1c88('0x2')](0x0),_0x35e5e7[_0x1c88('0x18')](_0x177f71);}function _0x14d57c(){_0x5d23de['isOpen']=!0x1,_0x2fa47c[_0x1c88('0x3')][_0x1c88('0x16')][_0x1c88('0x7')]();}return _0x5d23de[_0x1c88('0xa')](_0x1c88('0x12'))['to'](_0x535b78,'isReady',_0x535b78,_0x1c88('0x12'),_0x2fa47c,'isReadOnly',(_0x215582,_0x53ac93,_0x515a25)=>_0x215582&&_0x53ac93&&!_0x515a25),_0x5d23de[_0x1c88('0x1b')][_0x1c88('0x19')]({'icon':_0xb10efb[_0x1c88('0xd')],'label':_0x2b08d5(_0x203ecd,_0x1c88('0x1f')),'tooltip':!0x0}),_0x534ac2[_0x1c88('0x19')]({'label':_0x2b08d5(_0x203ecd,'Save\x20current\x20revision'),'withText':!0x0}),_0x534ac2[_0x1c88('0xa')](_0x1c88('0x12'))['to'](_0x535b78,_0x1c88('0x1d'),_0x535b78,_0x1c88('0x12'),_0x2fa47c,'isReadOnly',(_0xc099e6,_0x2205d4,_0x2eb40b)=>_0xc099e6&&_0x2205d4&&!_0x2eb40b),_0x534ac2['on'](_0x1c88('0x14'),()=>function(){_0x35e5e7[_0x1c88('0x0')]&&_0x35e5e7[_0x1c88('0x2')](0x0),(_0x370d90[_0x1c88('0x13')](),_0x35e5e7[_0x1c88('0x18')](_0x370d90),_0x370d90[_0x1c88('0x7')]());}()),_0x5d7167['set']({'label':_0x2b08d5(_0x203ecd,_0x1c88('0x5')),'withText':!0x0}),_0x5d7167[_0x1c88('0xa')](_0x1c88('0x12'))['to'](_0x535b78,_0x1c88('0x1d'),_0x2fa47c,_0x1c88('0x6'),(_0xa5b249,_0xa6bf13)=>_0xa5b249&&!_0xa6bf13),_0x5d7167['on']('execute',()=>{_0x2fa47c[_0x1c88('0x9')][_0x1c88('0x20')](_0x1c88('0x1c'))[_0x1c88('0x1a')](),_0x14d57c();}),_0x487a4b[_0x1c88('0xf')][_0x1c88('0x18')](_0x534ac2),_0x353de3[_0x1c88('0xf')][_0x1c88('0x18')](_0x5d7167),_0x177f71[_0x1c88('0x15')]['addMany']([_0x487a4b,_0x353de3]),_0x5d23de['on']('change:isOpen',()=>_0x104470()),_0x370d90['saveButtonView']['bind'](_0x1c88('0x12'))['to'](_0x535b78,_0x1c88('0x1d'),_0x535b78,_0x1c88('0x12'),_0x2fa47c,'isReadOnly',(_0x482cf4,_0x11ee98,_0xea8381)=>_0x482cf4&&_0x11ee98&&!_0xea8381),_0x370d90['on'](_0x1c88('0xe'),()=>(_0x2fa47c[_0x1c88('0x10')][_0x1c88('0x20')](_0x25cb95)[_0x1c88('0x17')]({'name':_0x370d90[_0x1c88('0x1')]}),void _0x14d57c())),_0x370d90['on']('cancel',()=>_0x104470()),_0x370d90[_0x1c88('0xc')](),_0x104470(),_0x5d23de;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e45=['name','repository','compare','getIndex','string','bind','diff','getRevision','config','defaultRevisionActions','_createRevisionActions','destroy','setName','getRevisionsInDiff','isSelected','get','timePeriodViews','_revisionViewer','getEarlierVisibleRevision','listenTo','Restore\x20this\x20revision','_handleRevisionSelected','revisionSelected','length','focus','element','_handleDiffChange','_revisionsRepository','restoreRevisionCallback','render','editor','remove','nameRevision','selectRevision','isVisible','revisionViews','getLaterVisibleRevision','_sidebarView','RevisionsSidebar','revisionHistory.revisionActions','_handleRevisionSetName','revisionSetName','_revisions','revisionHistory','add','map','isEnabled','appendChild','locale','data','_handleEditorDataReady','ready','availableRevisionActions','action','requires','isReady'];(function(_0x2202be,_0x1e4523){const _0x7c97d9=function(_0x5e9c2b){while(--_0x5e9c2b){_0x2202be['push'](_0x2202be['shift']());}};_0x7c97d9(++_0x1e4523);}(_0x1e45,0xf2));const _0x7c97=function(_0x2202be,_0x1e4523){_0x2202be=_0x2202be-0x0;let _0x7c97d9=_0x1e45[_0x2202be];return _0x7c97d9;};import{Plugin as _0x5c3bf3}from'ckeditor5/src/core.js';import _0x36fb2d from'./revisionssidebarview.js';import _0x250f46 from'../../revisionviewer.js';export default class w extends _0x5c3bf3{static get['pluginName'](){return _0x7c97('0x14');}static get[_0x7c97('0x24')](){return[_0x250f46];}constructor(_0xa9303e){super(_0xa9303e),this[_0x7c97('0x37')]=_0xa9303e['plugins'][_0x7c97('0x35')](_0x250f46),this['_revisionsRepository']=this[_0x7c97('0x37')][_0x7c97('0x27')],this[_0x7c97('0x13')]=null;}['init'](){const _0x490d23=this[_0x7c97('0x9')][_0x7c97('0x18')],_0x3eb425=this[_0x7c97('0x30')](),_0x540e49=this[_0x7c97('0xc')][_0x7c97('0x2e')]['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new _0x36fb2d(this[_0x7c97('0xc')][_0x7c97('0x1e')],_0x490d23,_0x3eb425),this['_sidebarView']['on'](_0x7c97('0x4'),this[_0x7c97('0x3')]['bind'](this)),this[_0x7c97('0x13')]['on'](_0x7c97('0x17'),this[_0x7c97('0x16')]['bind'](this)),this[_0x7c97('0x13')][_0x7c97('0x2b')]('isEnabled')['to'](this['_revisionViewer']),this[_0x7c97('0x13')][_0x7c97('0x36')]['on'](_0x7c97('0x1a'),(_0x43719a,_0x28fc8a)=>{_0x28fc8a[_0x7c97('0x11')]['on']('add',(_0x4ed845,_0x79997f)=>{_0x79997f['bind'](_0x7c97('0x1c'),_0x7c97('0x25'))['to'](this[_0x7c97('0x37')]);});}),this[_0x7c97('0x13')][_0x7c97('0xb')](),this[_0x7c97('0x1')](this[_0x7c97('0xc')][_0x7c97('0x1f')],_0x7c97('0x21'),this[_0x7c97('0x20')][_0x7c97('0x2b')](this)),this[_0x7c97('0x1')](this[_0x7c97('0x37')],'change:diff',this['_handleDiffChange'][_0x7c97('0x2b')](this)),_0x540e49[_0x7c97('0x1d')](this[_0x7c97('0x13')][_0x7c97('0x7')]);}['destroy'](){this[_0x7c97('0x13')][_0x7c97('0x7')][_0x7c97('0xd')](),this[_0x7c97('0x13')][_0x7c97('0x31')]();}[_0x7c97('0x20')](){const _0x53a43f=this[_0x7c97('0x9')][_0x7c97('0x2d')](0x0);if(_0x53a43f){const _0x21b1e0=this[_0x7c97('0x9')][_0x7c97('0x0')](_0x53a43f['id']);this['_revisionViewer'][_0x7c97('0x28')](_0x53a43f,_0x21b1e0);}}['_handleRevisionSelected'](_0x2b503c,_0x1894d8){const _0x1fc44b=this['_revisionsRepository'][_0x7c97('0x2d')](_0x1894d8['id']),_0x41ac07=this[_0x7c97('0x9')][_0x7c97('0x0')](_0x1fc44b['id']);this[_0x7c97('0x37')][_0x7c97('0x28')](_0x1fc44b,_0x41ac07);}['_handleRevisionSetName'](_0x4e5a2d,_0x4e4c97){this['_revisionsRepository']['getRevision'](_0x4e4c97['id'])[_0x7c97('0x32')](_0x4e4c97[_0x7c97('0x26')]);}[_0x7c97('0x8')](_0x351d21,_0x57fb7f,_0x4a1730){const _0xad3e18=this[_0x7c97('0x9')][_0x7c97('0x33')](_0x4a1730);_0xad3e18[_0x7c97('0x5')]>0x2?(this[_0x7c97('0x13')]['highlightRevisions'](_0xad3e18),this[_0x7c97('0x13')][_0x7c97('0xf')](null)):(this[_0x7c97('0x13')]['highlightRevisions']([]),this[_0x7c97('0x13')][_0x7c97('0xf')](_0xad3e18[0x0]));}[_0x7c97('0x30')](){const _0x241f98=this[_0x7c97('0xc')],_0x1e7379=w[_0x7c97('0x22')],_0x14ca0c=_0x241f98[_0x7c97('0x2e')][_0x7c97('0x35')](_0x7c97('0x15'))||w[_0x7c97('0x2f')];if(_0x14ca0c['length'])return _0x14ca0c[_0x7c97('0x1b')](_0x18b62c=>{const _0x2353df=_0x7c97('0x2a')==typeof _0x18b62c?Object['assign']({},_0x1e7379[_0x18b62c]):_0x18b62c;return _0x2353df[_0x7c97('0x23')]=_0x2353df[_0x7c97('0x23')]['bind'](this,_0x241f98),_0x2353df[_0x7c97('0x10')]&&(_0x2353df['isVisible']=_0x2353df[_0x7c97('0x10')][_0x7c97('0x2b')](this,_0x241f98)),_0x2353df;});}}w[_0x7c97('0x22')]={'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x52867f},_0x1ae184)=>{const _0x59630c=_0x52867f[_0x7c97('0x35')](_0x250f46),_0x35c0b3=_0x59630c['repository'];let _0x7bcfba=_0x59630c[_0x7c97('0x2c')]['newRevisionId'],_0x93afb3=_0x1ae184['id'];_0x35c0b3['getIndex'](_0x7bcfba)>_0x35c0b3[_0x7c97('0x29')](_0x93afb3)&&([_0x7bcfba,_0x93afb3]=[_0x93afb3,_0x7bcfba]),_0x59630c['compare'](_0x7bcfba,_0x93afb3);},'isVisible':({plugins:_0xaa3679},_0x5d34b7)=>{const _0x37143b=_0xaa3679[_0x7c97('0x35')](_0x250f46);return!(_0x37143b[_0x7c97('0x27')][_0x7c97('0x33')](_0x37143b[_0x7c97('0x2c')])[_0x7c97('0x5')]>0x2)&&!_0x5d34b7[_0x7c97('0x34')];}},'restoreRevision':{'name':_0x7c97('0x2'),'action':(_0x4be893,{id:_0x110dc4})=>{_0x4be893[_0x7c97('0x2e')][_0x7c97('0x35')](_0x7c97('0x19'))[_0x7c97('0xa')](_0x110dc4);},'isVisible':({plugins:_0x468ed2},_0x205cbd)=>!!_0x468ed2[_0x7c97('0x35')](_0x250f46)[_0x7c97('0x27')][_0x7c97('0x12')](_0x205cbd['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0xdaa946},{id:_0x446450,revisionNameView:_0x1dcefb})=>{const _0x13f176=_0xdaa946[_0x7c97('0x35')](_0x250f46),_0x2b1a18=_0x13f176[_0x7c97('0x27')][_0x7c97('0x0')](_0x446450);_0x13f176['compare'](_0x446450,_0x2b1a18),_0x1dcefb[_0x7c97('0x6')](),_0x1dcefb['fieldView']['select']();}}},w[_0x7c97('0x2f')]=['compareAgainstSelected','restoreRevision',_0x7c97('0xe')];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x557c=['ck-revision-history-sidebar__header','history','span','ck-revision-history-sidebar__header__label'];(function(_0x16996b,_0x557c0e){const _0x46bf70=function(_0x35ce28){while(--_0x35ce28){_0x16996b['push'](_0x16996b['shift']());}};_0x46bf70(++_0x557c0e);}(_0x557c,0xc2));const _0x46bf=function(_0x16996b,_0x557c0e){_0x16996b=_0x16996b-0x0;let _0x46bf70=_0x557c[_0x16996b];return _0x46bf70;};import{View as _0x16e3e3,IconView as _0x129070}from'ckeditor5/src/ui.js';import{getTranslation as _0x53e97a}from'../../utils/common-translations.js';import{icons as _0xe8a8ea}from'ckeditor5/src/core.js';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rs extends _0x16e3e3{constructor(_0x58fc57){super(_0x58fc57);const _0x530439=new _0x129070();_0x530439['content']=_0xe8a8ea[_0x46bf('0x3')],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all',_0x46bf('0x2')]},'children':[_0x530439,{'tag':_0x46bf('0x0'),'attributes':{'class':['ck',_0x46bf('0x1')]},'children':[_0x53e97a(_0x58fc57,'Revision\x20history')]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ab1=['revisionViews','div','remove','delegate','ck-revision-history-sidebar__time-period__revisions','removeRevision','setName','_revisionActions','span','setTemplate','ck-revision-history-sidebar__time-period__label','uiLanguage','addRevision','locale','add','ck-revision-history-sidebar__time-period','localizedPeriodName','select','startDate','createCollection'];(function(_0x54b803,_0x4ab1e0){const _0xae4df9=function(_0x51c96c){while(--_0x51c96c){_0x54b803['push'](_0x54b803['shift']());}};_0xae4df9(++_0x4ab1e0);}(_0x4ab1,0x1c8));const _0xae4d=function(_0x54b803,_0x4ab1e0){_0x54b803=_0x54b803-0x0;let _0xae4df9=_0x4ab1[_0x54b803];return _0xae4df9;};import{View as _0x2d9e02}from'ckeditor5/src/ui.js';import _0x4a0d49 from'../revision/revisionview.js';import{getDateTimePeriodInfo as _0x2e4f44}from'./utils.js';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class vi extends _0x2d9e02{constructor(_0xb1c9dd,_0x1f6cfe,_0x28902d){super(_0xb1c9dd);const _0x4eaac5=_0x2e4f44(_0x1f6cfe,this[_0xae4d('0x11')][_0xae4d('0xf')])[_0xae4d('0x0')];this[_0xae4d('0x2')]=_0x1f6cfe,this['revisionViews']=this[_0xae4d('0x3')](),this[_0xae4d('0xb')]=_0x28902d,this[_0xae4d('0x4')][_0xae4d('0x7')](_0xae4d('0x1'))['to'](this),this[_0xae4d('0x4')][_0xae4d('0x7')](_0xae4d('0xa'))['to'](this),this[_0xae4d('0xd')]({'tag':_0xae4d('0x5'),'attributes':{'class':['ck',_0xae4d('0x13')]},'children':[{'tag':_0xae4d('0xc'),'attributes':{'class':['ck',_0xae4d('0xe')]},'children':[{'text':_0x4eaac5}]},{'tag':_0xae4d('0x5'),'attributes':{'class':['ck',_0xae4d('0x8')]},'children':this[_0xae4d('0x4')]}]});}[_0xae4d('0x10')](_0x3c722e){const _0x2d1d7=new _0x4a0d49(this[_0xae4d('0x11')],_0x3c722e,this['_revisionActions']);this[_0xae4d('0x4')][_0xae4d('0x12')](_0x2d1d7);}[_0xae4d('0x9')](_0x264253){const _0x591984=this[_0xae4d('0x4')]['find'](_0x250c65=>_0x250c65['id']===_0x264253['id']);this[_0xae4d('0x4')][_0xae4d('0x6')](_0x591984);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x22a5=['flat','revisionSetName','select','ck-rounded-corners','get','set','remove','setName','locale','ck-revision-history-sidebar','revisionViews','removeRevision','createCollection','highlightRevisions','isEnabled','_getTimePeriodViewByStartDate','_revisionActions','deselect','createdAt','startDate','selectRevision','map','some','getTime','add','setTemplate','addRevision','div','uiLanguage','bindTemplate','highlight','_revisions','render','delegate','find','_removeRevision','ck-revision-history-sidebar__timeline','unhighlight','fire','timePeriodViews','_addRevision'];(function(_0x32430f,_0x22a53c){const _0xd8e16b=function(_0x3242e8){while(--_0x3242e8){_0x32430f['push'](_0x32430f['shift']());}};_0xd8e16b(++_0x22a53c);}(_0x22a5,0x137));const _0xd8e1=function(_0x32430f,_0x22a53c){_0x32430f=_0x32430f-0x0;let _0xd8e16b=_0x22a5[_0x32430f];return _0xd8e16b;};import{View as _0x586015}from'ckeditor5/src/ui.js';import _0x351726 from'./revisionssidebartimeperiodview.js';import _0x37e830 from'./revisionssidebarheaderview.js';import{getDateTimePeriodInfo as _0x49ec7c}from'./utils.js';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class di extends _0x586015{constructor(_0x346ccb,_0x52a241,_0x4053a4){super(_0x346ccb);const _0x2c9605=this[_0xd8e1('0x5')];this[_0xd8e1('0xf')]=this[_0xd8e1('0x1d')](),this['timePeriodViews'][_0xd8e1('0x9')](_0xd8e1('0x13'))['to'](this),this[_0xd8e1('0xf')][_0xd8e1('0x9')](_0xd8e1('0x18'))['to'](this),this[_0xd8e1('0x7')]=_0x52a241,this[_0xd8e1('0x21')]=_0x4053a4,this['on'](_0xd8e1('0x13'),(_0x4d22bb,_0x4d0212)=>{this['fire']('revisionSelected',_0x4d0212);}),this['on'](_0xd8e1('0x18'),(_0x2c031b,_0x5baf2a)=>{this[_0xd8e1('0xe')](_0xd8e1('0x12'),_0x5baf2a);}),this[_0xd8e1('0x16')](_0xd8e1('0x1f'),!0x1),this[_0xd8e1('0x1')]({'tag':_0xd8e1('0x3'),'attributes':{'class':['ck','ck-reset',_0xd8e1('0x14'),_0xd8e1('0x1a')]},'children':[new _0x37e830(_0x346ccb),{'tag':_0xd8e1('0x3'),'attributes':{'class':['ck',_0xd8e1('0xc'),_0x2c9605['if'](_0xd8e1('0x1f'),'ck-disabled',_0xda2614=>!_0xda2614)]},'children':this[_0xd8e1('0xf')]}]});}['render'](){super[_0xd8e1('0x8')]();for(const _0x294f21 of this[_0xd8e1('0x7')])this[_0xd8e1('0x10')](_0x294f21);this[_0xd8e1('0x7')]['on'](_0xd8e1('0x0'),(_0x2568c7,_0x3bcfc9)=>{this[_0xd8e1('0x10')](_0x3bcfc9);}),this['_revisions']['on'](_0xd8e1('0x17'),(_0x5b72b0,_0x5aa36f)=>{this['_removeRevision'](_0x5aa36f);});}get[_0xd8e1('0x1b')](){return this['timePeriodViews']['map'](_0x49b66d=>_0x49b66d[_0xd8e1('0x1b')][_0xd8e1('0x26')](_0x5ad475=>_0x5ad475))[_0xd8e1('0x11')]();}[_0xd8e1('0x25')](_0x284293){for(const _0x57623c of this[_0xd8e1('0x1b')])_0x284293&&_0x284293['id']===_0x57623c['id']?_0x57623c[_0xd8e1('0x13')]():_0x57623c[_0xd8e1('0x22')]();}[_0xd8e1('0x1e')](_0x5b9bcd){for(const _0x5862fb of this['revisionViews'])_0x5b9bcd[_0xd8e1('0x27')](({id:_0x507cd8})=>_0x507cd8===_0x5862fb['id'])?_0x5862fb[_0xd8e1('0x6')]():_0x5862fb[_0xd8e1('0xd')]();}['_addRevision'](_0x5238b2){const _0x33ecac=_0x49ec7c(_0x5238b2['createdAt'],this[_0xd8e1('0x19')]['uiLanguage'])['startDate'];let _0x3bab61=this['timePeriodViews'][_0xd8e1('0x15')](0x0);_0x3bab61&&_0x3bab61['startDate'][_0xd8e1('0x28')]()===_0x33ecac[_0xd8e1('0x28')]()||(_0x3bab61=new _0x351726(this[_0xd8e1('0x19')],_0x33ecac,this[_0xd8e1('0x21')]),this[_0xd8e1('0xf')][_0xd8e1('0x0')](_0x3bab61)),_0x3bab61[_0xd8e1('0x2')](_0x5238b2);}[_0xd8e1('0xb')](_0x48210f){const _0x28b65e=_0x49ec7c(_0x48210f[_0xd8e1('0x23')],this[_0xd8e1('0x19')][_0xd8e1('0x4')])['startDate'];this[_0xd8e1('0x20')](_0x28b65e)[_0xd8e1('0x1c')](_0x48210f);}[_0xd8e1('0x20')](_0xb004eb){return this['timePeriodViews'][_0xd8e1('0xa')](_0x497750=>_0x497750[_0xd8e1('0x24')]['getTime']()===_0xb004eb[_0xd8e1('0x28')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x43b6=['day','startOf','year','weekdayLong','week','toRelativeCalendar','hasSame','fromJSDate','toJSDate','monthLong'];(function(_0x1dbcce,_0x43b630){const _0x2bae84=function(_0x12942c){while(--_0x12942c){_0x1dbcce['push'](_0x1dbcce['shift']());}};_0x2bae84(++_0x43b630);}(_0x43b6,0xe1));const _0x2bae=function(_0x1dbcce,_0x43b630){_0x1dbcce=_0x1dbcce-0x0;let _0x2bae84=_0x43b6[_0x1dbcce];return _0x2bae84;};import{DateTime as _0x418770}from'luxon';export function getDateTimePeriodInfo(_0x2fdd18,_0x290160){const _0x51c9de=_0x418770[_0x2bae('0x2')](_0x2fdd18)['setLocale'](_0x290160),_0x5cc814=_0x418770['local'](),_0x5d2b8a=_0x5cc814['minus']({'days':0x1})[_0x2bae('0x6')](_0x2bae('0x5'));let _0x5ef676,_0x29fb2c;return _0x51c9de[_0x2bae('0x1')](_0x5cc814,'day')?(_0x5ef676=_0x51c9de[_0x2bae('0x6')](_0x2bae('0x5'))[_0x2bae('0x3')](),_0x29fb2c=_0x51c9de[_0x2bae('0x0')]()):_0x51c9de[_0x2bae('0x1')](_0x5d2b8a,'day')?(_0x5ef676=_0x5d2b8a[_0x2bae('0x3')](),_0x29fb2c=_0x51c9de[_0x2bae('0x0')]()):_0x51c9de[_0x2bae('0x1')](_0x5cc814,_0x2bae('0x9'))?(_0x5ef676=_0x51c9de['startOf']('week')[_0x2bae('0x3')](),_0x29fb2c=_0x51c9de[_0x2bae('0x8')]||''):_0x51c9de[_0x2bae('0x1')](_0x5cc814,_0x2bae('0x7'))?(_0x5ef676=_0x51c9de[_0x2bae('0x6')]('month')[_0x2bae('0x3')](),_0x29fb2c=_0x51c9de[_0x2bae('0x4')]||''):(_0x5ef676=_0x51c9de[_0x2bae('0x6')](_0x2bae('0x7'))[_0x2bae('0x3')](),_0x29fb2c=String(_0x51c9de[_0x2bae('0x7')])),{'startDate':_0x5ef676,'localizedPeriodName':_0x29fb2c};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5838=['div','span','bindTemplate','ck-revision-change','ck-annotation','setTemplate','Added\x20by','data','name','_model','changeId','add','type','focus','Suggested\x20by','author','element','isSuggestion'];(function(_0x4c3724,_0x583847){const _0x4083c0=function(_0xce88a9){while(--_0xce88a9){_0x4c3724['push'](_0x4c3724['shift']());}};_0x4083c0(++_0x583847);}(_0x5838,0x1a4));const _0x4083=function(_0x4c3724,_0x583847){_0x4c3724=_0x4c3724-0x0;let _0x4083c0=_0x5838[_0x4c3724];return _0x4083c0;};import{View as _0x362b76}from'ckeditor5/src/ui.js';import{getTranslation as _0x47d0a1}from'../../utils/common-translations.js';export default class Z extends _0x362b76{constructor(_0x3d263e,_0x1569aa){super(_0x3d263e),this[_0x4083('0x3')]=_0x1569aa,this[_0x4083('0x4')]=_0x1569aa['id'];const _0x1b4865=this[_0x4083('0xe')],_0x1cda4b=_0x47d0a1(_0x3d263e,_0x1569aa[_0x4083('0x1')][_0x4083('0xb')]?_0x4083('0x8'):_0x4083('0x5')==_0x1569aa[_0x4083('0x6')]?_0x4083('0x0'):'Removed\x20by');this['set']('type',_0x1569aa[_0x4083('0x6')]),this[_0x4083('0x11')]({'tag':_0x4083('0xc'),'attributes':{'class':[_0x4083('0x10'),_0x4083('0xf'),_0x1b4865['to']('type',_0x45c426=>'ck-revision-change__'+_0x45c426)],'tabindex':-0x1},'children':[{'tag':_0x4083('0xd'),'children':[{'tag':_0x4083('0xd'),'attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x1cda4b}]},{'text':'\x20'+_0x1569aa[_0x4083('0x9')][_0x4083('0x2')]}]}]});}[_0x4083('0x7')](){this[_0x4083('0xa')]['focus']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c19=['Total','EDIT_X_OF_Y_REVISIONS','ck-revision-history-ui','bindTemplate','execute','Show\x20next\x20change','_isStatusLabelVisible','X_OF_Y_CHANGES','ck-revision-history-ui__changes-navigation__wrapper','isEnabled','span','ck-hidden','ck-revision-history-ui__changes-navigation__navigation','currentChangeNumber','numberOfChanges','Loading...','ck-revision-history-ui__changes-navigation__label','isReady','_statusText','bind','isForwardNavigationEnabled','fire','backward','div','NUMBER_OF_CHANGES','set','ck-revision-history-ui__changes-navigation','isNavigationMode','forward','isBackwardNavigationEnabled'];(function(_0x141498,_0x5c1957){const _0x47bb09=function(_0x5592c5){while(--_0x5592c5){_0x141498['push'](_0x141498['shift']());}};_0x47bb09(++_0x5c1957);}(_0x5c19,0xb8));const _0x47bb=function(_0x141498,_0x5c1957){_0x141498=_0x141498-0x0;let _0x47bb09=_0x5c19[_0x141498];return _0x47bb09;};import{View as _0x13222b,ButtonView as _0x134255,ToolbarSeparatorView as _0x3631d1}from'ckeditor5/src/ui.js';import{getTranslation as _0x3e3980}from'../../utils/common-translations.js';import _0x15601d from'../../../theme/icons/arrow-up.svg';import _0xb9a990 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x13222b{constructor(_0x3d4888){super(_0x3d4888);const _0x4a4cae=this[_0x47bb('0x1d')],_0x28ae8c=new _0x134255(_0x3d4888),_0x1c9c10=new _0x134255(_0x3d4888);this[_0x47bb('0x15')](_0x47bb('0x17'),!0x1),this[_0x47bb('0x15')](_0x47bb('0xd'),!0x1),this['set']('currentChangeNumber',0x0),this['set'](_0x47bb('0xa'),0x0),this[_0x47bb('0x15')](_0x47bb('0x10'),!0x1),this[_0x47bb('0x15')](_0x47bb('0x19'),!0x1),this[_0x47bb('0xf')](_0x47bb('0x2'))['to'](this,_0x47bb('0xd'),this,_0x47bb('0xa'),(_0xc6a06,_0x5bb7c0)=>_0xc6a06&&_0x5bb7c0>0x0),this[_0x47bb('0xf')](_0x47bb('0xe'))['to'](this,'isReady',this,_0x47bb('0x9'),this,_0x47bb('0xa'),this,_0x47bb('0x17'),(_0x288fed,_0x253eea,_0x1c1ba2,_0x5b3a0a)=>{if(!_0x288fed)return _0x3e3980(_0x3d4888,_0x47bb('0xb'));if(!_0x1c1ba2)return _0x3e3980(_0x3d4888,'No\x20changes');const _0x2712be=_0x3e3980(_0x3d4888,_0x47bb('0x14'),_0x1c1ba2);return _0x5b3a0a?_0x3e3980(_0x3d4888,_0x47bb('0x3'),[_0x253eea+0x1,_0x1c1ba2]):_0x2712be;}),_0x28ae8c[_0x47bb('0x15')]({'label':_0x3e3980(_0x3d4888,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x15601d}),_0x1c9c10[_0x47bb('0x15')]({'label':_0x3e3980(_0x3d4888,_0x47bb('0x1')),'tooltip':!0x0,'icon':_0xb9a990}),_0x28ae8c[_0x47bb('0xf')](_0x47bb('0x5'))['to'](this,_0x47bb('0x19')),_0x1c9c10[_0x47bb('0xf')](_0x47bb('0x5'))['to'](this,'isForwardNavigationEnabled'),_0x28ae8c['on']('execute',()=>this[_0x47bb('0x11')]('execute',_0x47bb('0x12'))),_0x1c9c10['on'](_0x47bb('0x0'),()=>this[_0x47bb('0x11')]('execute',_0x47bb('0x18'))),this['setTemplate']({'tag':_0x47bb('0x13'),'attributes':{'class':['ck',_0x47bb('0x1c'),_0x47bb('0x16')]},'children':[{'tag':_0x47bb('0x6'),'attributes':{'class':[_0x47bb('0x4')]},'children':[{'tag':_0x47bb('0x6'),'attributes':{'class':[_0x47bb('0xc'),_0x4a4cae['if'](_0x47bb('0x2'),_0x47bb('0x7'),_0x22f3af=>!_0x22f3af)]},'children':[{'text':_0x4a4cae['to'](_0x47bb('0x17'),_0x4bad7f=>_0x4bad7f?_0x3e3980(_0x3d4888,_0x47bb('0x1b'))+':\x20':_0x3e3980(_0x3d4888,_0x47bb('0x1a'))+':\x20')}]},{'text':_0x4a4cae['to']('_statusText')}]},new _0x3631d1(),{'tag':_0x47bb('0x13'),'attributes':{'class':[_0x47bb('0x8')]},'children':[_0x28ae8c,_0x1c9c10]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a33=['editing','ck-editor__editable__loading-overlay','hide','addClass','pluginName','change','RevisionViewerLoadingOverlay','roots','removeClass','editor','view'];(function(_0x315d43,_0x2a3325){const _0x259f0f=function(_0x4cbf0c){while(--_0x4cbf0c){_0x315d43['push'](_0x315d43['shift']());}};_0x259f0f(++_0x2a3325);}(_0x2a33,0x133));const _0x259f=function(_0x315d43,_0x2a3325){_0x315d43=_0x315d43-0x0;let _0x259f0f=_0x2a33[_0x315d43];return _0x259f0f;};import{Plugin as _0x4fa3fa}from'ckeditor5/src/core.js';const oe=_0x259f('0x2');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x4fa3fa{static get[_0x259f('0x5')](){return _0x259f('0x7');}['show'](){const _0xd26b05=this[_0x259f('0xa')][_0x259f('0x1')][_0x259f('0x0')];_0xd26b05[_0x259f('0x6')](_0x261611=>{for(const _0x1ed9ad of _0xd26b05['document'][_0x259f('0x8')])_0x261611[_0x259f('0x4')](oe,_0x1ed9ad);});}[_0x259f('0x3')](){const _0x37dabd=this[_0x259f('0xa')]['editing'][_0x259f('0x0')];_0x37dabd['change'](_0x1b1cf3=>{for(const _0x210c67 of _0x37dabd['document'][_0x259f('0x8')])_0x1b1cf3[_0x259f('0x9')](oe,_0x210c67);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2be9=['exitToEditing','isForwardNavigationEnabled','hide','set','commands','execute','showPreviousChange','componentFactory','currentChangeNumber','isNavigationMode','add','ck-revision-history-ui__back-to-editing','Restore\x20this\x20revision','changesNavigation','get','revisionHistory','listenTo','editor','closeRevisionViewerCallback','show','pluginName','restoreRevision','isEnabled','RevisionViewerUI','numberOfChanges','plugins','bind','isBackwardNavigationEnabled','requires','Back\x20to\x20editing','change:isReady'];(function(_0x1c05b7,_0x2be985){const _0x5686ed=function(_0x29007e){while(--_0x29007e){_0x1c05b7['push'](_0x1c05b7['shift']());}};_0x5686ed(++_0x2be985);}(_0x2be9,0xd9));const _0x5686=function(_0x1c05b7,_0x2be985){_0x1c05b7=_0x1c05b7-0x0;let _0x5686ed=_0x2be9[_0x1c05b7];return _0x5686ed;};import{Plugin as _0x15372c}from'ckeditor5/src/core.js';import{ButtonView as _0x5120cb}from'ckeditor5/src/ui.js';import _0xfb3676 from'./changesnavigationview.js';import _0x597dab from'./../../revisionviewer.js';import _0x2f6e71 from'./revisionviewerloadingoverlay.js';import{getTranslation as _0x102e44}from'../../utils/common-translations.js';import _0x1514b6 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x15372c{static get[_0x5686('0x14')](){return _0x5686('0x17');}static get[_0x5686('0x1c')](){return[_0x597dab,_0x2f6e71];}['init'](){const _0x5b9be3=this[_0x5686('0x11')],_0x1142e6=_0x5b9be3[_0x5686('0x19')]['get'](_0x597dab),_0x4bcec8=_0x5b9be3[_0x5686('0x19')]['get'](_0x2f6e71);_0x5b9be3['ui'][_0x5686('0x7')][_0x5686('0xa')](_0x5686('0x0'),_0x257123=>{const _0xa01de3=new _0x5120cb(_0x257123);return _0xa01de3[_0x5686('0x3')]({'label':_0x102e44(_0x257123,_0x5686('0x1d')),'icon':_0x1514b6,'withText':!0x0,'tooltip':!0x0,'class':_0x5686('0xb')}),this[_0x5686('0x10')](_0xa01de3,'execute',()=>{_0x5b9be3['config'][_0x5686('0xe')](_0x5686('0xf'))[_0x5686('0x12')]();}),_0xa01de3;}),_0x5b9be3['ui']['componentFactory'][_0x5686('0xa')](_0x5686('0x15'),_0x9c63df=>{const _0x597291=new _0x5120cb(_0x9c63df);return _0x597291['set']({'label':_0x102e44(_0x9c63df,_0x5686('0xc')),'withText':!0x0,'tooltip':!0x0}),_0x597291[_0x5686('0x1a')](_0x5686('0x16'))['to'](_0x5b9be3['commands'][_0x5686('0xe')]('restoreRevision')),this['listenTo'](_0x597291,_0x5686('0x5'),()=>_0x5b9be3[_0x5686('0x5')](_0x5686('0x15'))),_0x597291;}),_0x5b9be3['ui'][_0x5686('0x7')][_0x5686('0xa')](_0x5686('0xd'),_0x417f11=>{const _0xde2970=new _0xfb3676(_0x417f11),_0x358888=_0x5b9be3[_0x5686('0x4')][_0x5686('0xe')](_0x5686('0x6')),_0xfc8e2b=_0x5b9be3['commands'][_0x5686('0xe')]('showNextChange');return _0xde2970[_0x5686('0x1a')](_0x5686('0x1b'))['to'](_0x358888,'isEnabled'),_0xde2970[_0x5686('0x1a')](_0x5686('0x1'))['to'](_0xfc8e2b,'isEnabled'),_0xde2970[_0x5686('0x1a')]('isReady',_0x5686('0x8'),_0x5686('0x18'),_0x5686('0x9'))['to'](_0x1142e6),this['listenTo'](_0xde2970,_0x5686('0x5'),(_0x6dcc22,_0x108a8a)=>{_0x5b9be3['execute']('forward'===_0x108a8a?'showNextChange':_0x5686('0x6'));}),_0xde2970;}),_0x4bcec8[_0x5686('0x13')](),_0x1142e6['on'](_0x5686('0x1e'),(_0x797290,_0x43d69b,_0x26f339)=>{_0x26f339?_0x4bcec8[_0x5686('0x2')]():_0x4bcec8[_0x5686('0x13')]();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x2f940a,_0x864a02,_0x73f141){const t=_0x2f940a['t'];switch(_0x864a02){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'},_0x73f141);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x73f141);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 _0x864a02;}}
|