@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231204.0 → 0.0.0-nightly-20231206.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 _0x3704=['Revision\x20history','reset','cancel','length','plugins','requires','init','submit','revisionHistory','editing','isReadOnly','Open\x20revision\x20history','get','items','Save\x20current\x20revision','panelView','RevisionHistoryUI','set','bind','buttonView','isEnabled','children','add','componentFactory','remove','change:isOpen','RevisionTracker','history','focus','render','config','execute','saveRevision','isReady','editor','view'];(function(_0x45c7d3,_0x37044e){const _0x16e32f=function(_0x34c9aa){while(--_0x34c9aa){_0x45c7d3['push'](_0x45c7d3['shift']());}};_0x16e32f(++_0x37044e);}(_0x3704,0x189));const _0x16e3=function(_0x45c7d3,_0x37044e){_0x45c7d3=_0x45c7d3-0x0;let _0x16e32f=_0x3704[_0x45c7d3];return _0x16e32f;};import{Plugin as _0x455ed5,icons as _0x1d9136}from'ckeditor5/src/core';import{ListView as _0x4bc6df,ListItemView as _0xd9c43b,ButtonView as _0x56643e,createDropdown as _0x4c46ff}from'ckeditor5/src/ui';import _0x4b1ef8 from'../../revisiontracker';import _0x400c58 from'./revisionhistorysaverevisionformview';import{getTranslation as _0x46a97e}from'../../utils/common-translations';export default class u extends _0x455ed5{static get['pluginName'](){return _0x16e3('0x13');}static get[_0x16e3('0x8')](){return[_0x4b1ef8];}[_0x16e3('0x9')](){const _0x568344=this[_0x16e3('0x1')],_0x124e62=_0x568344['plugins'][_0x16e3('0xf')](_0x16e3('0x1d'));_0x568344['ui'][_0x16e3('0x1a')][_0x16e3('0x19')](_0x16e3('0xb'),_0x36be96=>{const _0x5b85c9=_0x4c46ff(_0x36be96),_0x28601f=_0x5b85c9[_0x16e3('0x12')][_0x16e3('0x18')],_0x2f898e=new _0x4bc6df(_0x36be96),_0x3547cb=new _0xd9c43b(_0x36be96),_0x343ade=new _0x56643e(_0x36be96),_0x30082e=new _0xd9c43b(_0x36be96),_0x49aff2=new _0x56643e(_0x36be96),_0x286eaf=new _0x400c58(_0x36be96);function _0x3ab890(){_0x28601f[_0x16e3('0x6')]&&_0x28601f[_0x16e3('0x1b')](0x0),_0x28601f['add'](_0x2f898e);}function _0x3d7d52(){_0x5b85c9['isOpen']=!0x1,_0x568344[_0x16e3('0xc')][_0x16e3('0x2')]['focus']();}return _0x5b85c9[_0x16e3('0x15')](_0x16e3('0x17'))['to'](_0x124e62,_0x16e3('0x0'),_0x124e62,_0x16e3('0x17'),_0x568344,_0x16e3('0xd'),(_0x5dbff4,_0x5c52b0,_0x1876b2)=>_0x5dbff4&&_0x5c52b0&&!_0x1876b2),_0x5b85c9[_0x16e3('0x16')][_0x16e3('0x14')]({'icon':_0x1d9136[_0x16e3('0x1e')],'label':_0x46a97e(_0x36be96,_0x16e3('0x3')),'tooltip':!0x0}),_0x343ade[_0x16e3('0x14')]({'label':_0x46a97e(_0x36be96,_0x16e3('0x11')),'withText':!0x0}),_0x343ade[_0x16e3('0x15')](_0x16e3('0x17'))['to'](_0x124e62,_0x16e3('0x0'),_0x124e62,_0x16e3('0x17'),_0x568344,_0x16e3('0xd'),(_0x1345e5,_0x46607d,_0xb23158)=>_0x1345e5&&_0x46607d&&!_0xb23158),_0x343ade['on'](_0x16e3('0x22'),()=>function(){_0x28601f[_0x16e3('0x6')]&&_0x28601f[_0x16e3('0x1b')](0x0),(_0x286eaf[_0x16e3('0x4')](),_0x28601f[_0x16e3('0x19')](_0x286eaf),_0x286eaf[_0x16e3('0x1f')]());}()),_0x49aff2[_0x16e3('0x14')]({'label':_0x46a97e(_0x36be96,_0x16e3('0xe')),'withText':!0x0}),_0x49aff2[_0x16e3('0x15')]('isEnabled')['to'](_0x124e62,'isReady',_0x568344,_0x16e3('0xd'),(_0x7611f5,_0x337ad7)=>_0x7611f5&&!_0x337ad7),_0x49aff2['on'](_0x16e3('0x22'),()=>{_0x568344[_0x16e3('0x21')][_0x16e3('0xf')](_0x16e3('0xb'))['showRevisionViewerCallback'](),_0x3d7d52();}),_0x3547cb['children'][_0x16e3('0x19')](_0x343ade),_0x30082e['children'][_0x16e3('0x19')](_0x49aff2),_0x2f898e[_0x16e3('0x10')]['addMany']([_0x3547cb,_0x30082e]),_0x5b85c9['on'](_0x16e3('0x1c'),()=>_0x3ab890()),_0x286eaf['saveButtonView']['bind'](_0x16e3('0x17'))['to'](_0x124e62,'isReady',_0x124e62,'isEnabled',_0x568344,'isReadOnly',(_0x165788,_0x1596ab,_0x3aef57)=>_0x165788&&_0x1596ab&&!_0x3aef57),_0x286eaf['on'](_0x16e3('0xa'),()=>(_0x568344[_0x16e3('0x7')][_0x16e3('0xf')](_0x4b1ef8)[_0x16e3('0x23')]({'name':_0x286eaf['revisionName']}),void _0x3d7d52())),_0x286eaf['on'](_0x16e3('0x5'),()=>_0x3ab890()),_0x286eaf[_0x16e3('0x20')](),_0x3ab890(),_0x5b85c9;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ada=['select','getRevisionsInDiff','restoreRevision','defaultRevisionActions','Restore\x20this\x20revision','newRevisionId','get','revisionViews','revisionHistory','string','add','diff','editor','availableRevisionActions','compareAgainstSelected','_handleDiffChange','element','isVisible','_revisionsRepository','destroy','repository','bind','revisionSetName','revisionHistory.viewerSidebarContainer','isEnabled','selectRevision','_sidebarView','init','isSelected','Name\x20this\x20revision','getRevision','compare','_handleRevisionSelected','requires','appendChild','_handleEditorDataReady','getIndex','timePeriodViews','name','render','_handleRevisionSetName','config','nameRevision','length','listenTo','remove','_revisionViewer','map','fieldView','Compare\x20against\x20selected','restoreRevisionCallback','getLaterVisibleRevision','highlightRevisions','pluginName','data','assign','getEarlierVisibleRevision','locale'];(function(_0x4ca492,_0x2ada60){const _0x54c6d7=function(_0x108f9b){while(--_0x108f9b){_0x4ca492['push'](_0x4ca492['shift']());}};_0x54c6d7(++_0x2ada60);}(_0x2ada,0x78));const _0x54c6=function(_0x4ca492,_0x2ada60){_0x4ca492=_0x4ca492-0x0;let _0x54c6d7=_0x2ada[_0x4ca492];return _0x54c6d7;};import{Plugin as _0x3d825a}from'ckeditor5/src/core';import _0x893cdc from'./revisionssidebarview';import _0x5bf23a from'../../revisionviewer';export default class w extends _0x3d825a{static get[_0x54c6('0x31')](){return'RevisionsSidebar';}static get[_0x54c6('0x1d')](){return[_0x5bf23a];}constructor(_0xf993ac){super(_0xf993ac),this[_0x54c6('0x2a')]=_0xf993ac['plugins'][_0x54c6('0x2')](_0x5bf23a),this[_0x54c6('0xe')]=this[_0x54c6('0x2a')]['repository'],this[_0x54c6('0x16')]=null;}[_0x54c6('0x17')](){const _0x4fa5f1=this[_0x54c6('0xe')]['_revisions'],_0x156d9e=this['_createRevisionActions'](),_0x17ac64=this['editor'][_0x54c6('0x25')][_0x54c6('0x2')](_0x54c6('0x13'));this['_sidebarView']=new _0x893cdc(this[_0x54c6('0x8')][_0x54c6('0x35')],_0x4fa5f1,_0x156d9e),this[_0x54c6('0x16')]['on']('revisionSelected',this[_0x54c6('0x1c')]['bind'](this)),this[_0x54c6('0x16')]['on'](_0x54c6('0x12'),this[_0x54c6('0x24')][_0x54c6('0x11')](this)),this[_0x54c6('0x16')][_0x54c6('0x11')](_0x54c6('0x14'))['to'](this['_revisionViewer']),this['_sidebarView'][_0x54c6('0x21')]['on']('add',(_0x2806b0,_0x46c943)=>{_0x46c943[_0x54c6('0x3')]['on'](_0x54c6('0x6'),(_0x20174e,_0x200f5b)=>{_0x200f5b[_0x54c6('0x11')](_0x54c6('0x14'),'isReady')['to'](this[_0x54c6('0x2a')]);});}),this['_sidebarView'][_0x54c6('0x23')](),this[_0x54c6('0x28')](this['editor'][_0x54c6('0x32')],'ready',this[_0x54c6('0x1f')][_0x54c6('0x11')](this)),this['listenTo'](this['_revisionViewer'],'change:diff',this[_0x54c6('0xb')][_0x54c6('0x11')](this)),_0x17ac64[_0x54c6('0x1e')](this[_0x54c6('0x16')][_0x54c6('0xc')]);}[_0x54c6('0xf')](){this[_0x54c6('0x16')][_0x54c6('0xc')][_0x54c6('0x29')](),this[_0x54c6('0x16')][_0x54c6('0xf')]();}[_0x54c6('0x1f')](){const _0x5404d1=this[_0x54c6('0xe')][_0x54c6('0x1a')](0x0);if(_0x5404d1){const _0x44494d=this[_0x54c6('0xe')][_0x54c6('0x34')](_0x5404d1['id']);this[_0x54c6('0x2a')][_0x54c6('0x1b')](_0x5404d1,_0x44494d);}}[_0x54c6('0x1c')](_0x5a3421,_0x16e49d){const _0x5dd819=this[_0x54c6('0xe')][_0x54c6('0x1a')](_0x16e49d['id']),_0x46086e=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x5dd819['id']);this[_0x54c6('0x2a')][_0x54c6('0x1b')](_0x5dd819,_0x46086e);}[_0x54c6('0x24')](_0x59178b,_0x142373){this[_0x54c6('0xe')][_0x54c6('0x1a')](_0x142373['id'])['setName'](_0x142373[_0x54c6('0x22')]);}[_0x54c6('0xb')](_0x41530f,_0x490ab6,_0x49e694){const _0x55ba32=this[_0x54c6('0xe')][_0x54c6('0x37')](_0x49e694);_0x55ba32[_0x54c6('0x27')]>0x2?(this['_sidebarView']['highlightRevisions'](_0x55ba32),this[_0x54c6('0x16')][_0x54c6('0x15')](null)):(this[_0x54c6('0x16')][_0x54c6('0x30')]([]),this[_0x54c6('0x16')][_0x54c6('0x15')](_0x55ba32[0x0]));}['_createRevisionActions'](){const _0x2bdca1=this[_0x54c6('0x8')],_0x43f1c3=w[_0x54c6('0x9')],_0x27620e=_0x2bdca1[_0x54c6('0x25')][_0x54c6('0x2')]('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x27620e[_0x54c6('0x27')])return _0x27620e[_0x54c6('0x2b')](_0x352227=>{const _0x4c9f7a=_0x54c6('0x5')==typeof _0x352227?Object[_0x54c6('0x33')]({},_0x43f1c3[_0x352227]):_0x352227;return _0x4c9f7a['action']=_0x4c9f7a['action'][_0x54c6('0x11')](this,_0x2bdca1),_0x4c9f7a[_0x54c6('0xd')]&&(_0x4c9f7a[_0x54c6('0xd')]=_0x4c9f7a['isVisible'][_0x54c6('0x11')](this,_0x2bdca1)),_0x4c9f7a;});}}w['availableRevisionActions']={'compareAgainstSelected':{'name':_0x54c6('0x2d'),'action':({plugins:_0x516420},_0x1b0572)=>{const _0x24f0ee=_0x516420[_0x54c6('0x2')](_0x5bf23a),_0x201ef2=_0x24f0ee[_0x54c6('0x10')];let _0x4271d8=_0x24f0ee[_0x54c6('0x7')][_0x54c6('0x1')],_0x831873=_0x1b0572['id'];_0x201ef2[_0x54c6('0x20')](_0x4271d8)>_0x201ef2['getIndex'](_0x831873)&&([_0x4271d8,_0x831873]=[_0x831873,_0x4271d8]),_0x24f0ee[_0x54c6('0x1b')](_0x4271d8,_0x831873);},'isVisible':({plugins:_0x30ff6a},_0x2ae7a2)=>{const _0x32827a=_0x30ff6a[_0x54c6('0x2')](_0x5bf23a);return!(_0x32827a[_0x54c6('0x10')][_0x54c6('0x37')](_0x32827a['diff'])[_0x54c6('0x27')]>0x2)&&!_0x2ae7a2[_0x54c6('0x18')];}},'restoreRevision':{'name':_0x54c6('0x0'),'action':(_0x2845af,{id:_0x3b3118})=>{_0x2845af[_0x54c6('0x25')][_0x54c6('0x2')](_0x54c6('0x4'))[_0x54c6('0x2e')](_0x3b3118);},'isVisible':({plugins:_0xb06bd7},_0x3e9898)=>!!_0xb06bd7[_0x54c6('0x2')](_0x5bf23a)[_0x54c6('0x10')][_0x54c6('0x2f')](_0x3e9898['id'])},'nameRevision':{'name':_0x54c6('0x19'),'action':({plugins:_0x5f4613},{id:_0x5131ef,revisionNameView:_0x33f1a6})=>{const _0xa4ed7=_0x5f4613[_0x54c6('0x2')](_0x5bf23a),_0x2563e7=_0xa4ed7[_0x54c6('0x10')][_0x54c6('0x34')](_0x5131ef);_0xa4ed7[_0x54c6('0x1b')](_0x5131ef,_0x2563e7),_0x33f1a6['focus'](),_0x33f1a6[_0x54c6('0x2c')][_0x54c6('0x36')]();}}},w[_0x54c6('0x39')]=[_0x54c6('0xa'),_0x54c6('0x38'),_0x54c6('0x26')];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x47d1=['Revision\x20history','ck-revision-history-sidebar__header__label','span','setTemplate','history','content','div','ck-reset_all','ck-revision-history-sidebar__header'];(function(_0x2448d7,_0x47d135){const _0x3c1ca8=function(_0x4efa6c){while(--_0x4efa6c){_0x2448d7['push'](_0x2448d7['shift']());}};_0x3c1ca8(++_0x47d135);}(_0x47d1,0xfc));const _0x3c1c=function(_0x2448d7,_0x47d135){_0x2448d7=_0x2448d7-0x0;let _0x3c1ca8=_0x47d1[_0x2448d7];return _0x3c1ca8;};import{View as _0x3e968a,IconView as _0x5ca038}from'ckeditor5/src/ui';import{getTranslation as _0xdf06ac}from'../../utils/common-translations';import{icons as _0xd2f0db}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rr extends _0x3e968a{constructor(_0x5670e4){super(_0x5670e4);const _0x9372f0=new _0x5ca038();_0x9372f0[_0x3c1c('0x5')]=_0xd2f0db[_0x3c1c('0x4')],this[_0x3c1c('0x3')]({'tag':_0x3c1c('0x6'),'attributes':{'class':['ck',_0x3c1c('0x7'),_0x3c1c('0x8')]},'children':[_0x9372f0,{'tag':_0x3c1c('0x2'),'attributes':{'class':['ck',_0x3c1c('0x1')]},'children':[_0xdf06ac(_0x5670e4,_0x3c1c('0x0'))]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5746=['div','span','addRevision','ck-revision-history-sidebar__time-period__revisions','createCollection','revisionViews','add','ck-revision-history-sidebar__time-period__label','locale','remove','setTemplate','delegate','removeRevision','select'];(function(_0x3a1834,_0x574636){const _0x201d5b=function(_0x45bb87){while(--_0x45bb87){_0x3a1834['push'](_0x3a1834['shift']());}};_0x201d5b(++_0x574636);}(_0x5746,0x158));const _0x201d=function(_0x3a1834,_0x574636){_0x3a1834=_0x3a1834-0x0;let _0x201d5b=_0x5746[_0x3a1834];return _0x201d5b;};import{View as _0x408b25}from'ckeditor5/src/ui';import _0x4c3de2 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x4973a1}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x408b25{constructor(_0x169584,_0x5a8897,_0x4d9678){super(_0x169584);const _0x1adebe=_0x4973a1(_0x5a8897,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x5a8897,this['revisionViews']=this[_0x201d('0xa')](),this['_revisionActions']=_0x4d9678,this['revisionViews'][_0x201d('0x3')](_0x201d('0x5'))['to'](this),this[_0x201d('0xb')]['delegate']('setName')['to'](this),this[_0x201d('0x2')]({'tag':_0x201d('0x6'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':_0x201d('0x7'),'attributes':{'class':['ck',_0x201d('0xd')]},'children':[{'text':_0x1adebe}]},{'tag':_0x201d('0x6'),'attributes':{'class':['ck',_0x201d('0x9')]},'children':this['revisionViews']}]});}[_0x201d('0x8')](_0x33d01f){const _0x5aa961=new _0x4c3de2(this[_0x201d('0x0')],_0x33d01f,this['_revisionActions']);this[_0x201d('0xb')][_0x201d('0xc')](_0x5aa961);}[_0x201d('0x4')](_0x3a5b1b){const _0x3fb14b=this[_0x201d('0xb')]['find'](_0x3530c4=>_0x3530c4['id']===_0x3a5b1b['id']);this[_0x201d('0xb')][_0x201d('0x1')](_0x3fb14b);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b63=['_removeRevision','add','setTemplate','map','ck-revision-history-sidebar__timeline','removeRevision','uiLanguage','highlightRevisions','find','createCollection','isEnabled','revisionViews','selectRevision','remove','_getTimePeriodViewByStartDate','ck-reset','_revisions','_addRevision','flat','startDate','getTime','timePeriodViews','delegate','get','locale','bindTemplate','addRevision','fire','createdAt','ck-rounded-corners','revisionSelected','ck-revision-history-sidebar','revisionSetName','select','deselect','setName','set','highlight','_revisionActions','div'];(function(_0x5d1aab,_0x4b6305){const _0x18c53a=function(_0xef6c9f){while(--_0xef6c9f){_0x5d1aab['push'](_0x5d1aab['shift']());}};_0x18c53a(++_0x4b6305);}(_0x4b63,0x1eb));const _0x18c5=function(_0x5d1aab,_0x4b6305){_0x5d1aab=_0x5d1aab-0x0;let _0x18c53a=_0x4b63[_0x5d1aab];return _0x18c53a;};import{View as _0x40e539}from'ckeditor5/src/ui';import _0x5a079a from'./revisionssidebartimeperiodview';import _0x1459ac from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x2b7a88}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x40e539{constructor(_0x2ed911,_0x1f210c,_0x57afac){super(_0x2ed911);const _0x642037=this[_0x18c5('0xe')];this[_0x18c5('0xa')]=this[_0x18c5('0x26')](),this['timePeriodViews'][_0x18c5('0xb')](_0x18c5('0x16'))['to'](this),this[_0x18c5('0xa')][_0x18c5('0xb')](_0x18c5('0x18'))['to'](this),this[_0x18c5('0x5')]=_0x1f210c,this[_0x18c5('0x1b')]=_0x57afac,this['on'](_0x18c5('0x16'),(_0x3b6bb3,_0x33e3c5)=>{this[_0x18c5('0x10')](_0x18c5('0x13'),_0x33e3c5);}),this['on'](_0x18c5('0x18'),(_0x4ffd8d,_0x5e264b)=>{this[_0x18c5('0x10')](_0x18c5('0x15'),_0x5e264b);}),this[_0x18c5('0x19')](_0x18c5('0x27'),!0x1),this[_0x18c5('0x1f')]({'tag':'div','attributes':{'class':['ck',_0x18c5('0x4'),_0x18c5('0x12'),_0x18c5('0x14')]},'children':[new _0x1459ac(_0x2ed911),{'tag':_0x18c5('0x1c'),'attributes':{'class':['ck',_0x18c5('0x21'),_0x642037['if'](_0x18c5('0x27'),'ck-disabled',_0x2a015a=>!_0x2a015a)]},'children':this[_0x18c5('0xa')]}]});}['render'](){super['render']();for(const _0x4fdbb3 of this['_revisions'])this[_0x18c5('0x6')](_0x4fdbb3);this[_0x18c5('0x5')]['on'](_0x18c5('0x1e'),(_0x4c65d0,_0x3a69d8)=>{this[_0x18c5('0x6')](_0x3a69d8);}),this[_0x18c5('0x5')]['on'](_0x18c5('0x2'),(_0x4fee72,_0x537366)=>{this[_0x18c5('0x1d')](_0x537366);});}get[_0x18c5('0x0')](){return this[_0x18c5('0xa')][_0x18c5('0x20')](_0x467560=>_0x467560[_0x18c5('0x0')]['map'](_0x1b9409=>_0x1b9409))[_0x18c5('0x7')]();}[_0x18c5('0x1')](_0x5f0fca){for(const _0x58da23 of this[_0x18c5('0x0')])_0x5f0fca&&_0x5f0fca['id']===_0x58da23['id']?_0x58da23[_0x18c5('0x16')]():_0x58da23[_0x18c5('0x17')]();}[_0x18c5('0x24')](_0x396f13){for(const _0x159903 of this[_0x18c5('0x0')])_0x396f13['some'](({id:_0x273014})=>_0x273014===_0x159903['id'])?_0x159903[_0x18c5('0x1a')]():_0x159903['unhighlight']();}[_0x18c5('0x6')](_0x195f2e){const _0x12f011=_0x2b7a88(_0x195f2e['createdAt'],this[_0x18c5('0xd')][_0x18c5('0x23')])['startDate'];let _0x101281=this[_0x18c5('0xa')][_0x18c5('0xc')](0x0);_0x101281&&_0x101281[_0x18c5('0x8')][_0x18c5('0x9')]()===_0x12f011['getTime']()||(_0x101281=new _0x5a079a(this[_0x18c5('0xd')],_0x12f011,this[_0x18c5('0x1b')]),this[_0x18c5('0xa')][_0x18c5('0x1e')](_0x101281)),_0x101281[_0x18c5('0xf')](_0x195f2e);}[_0x18c5('0x1d')](_0x1ed8bf){const _0xdf7e8f=_0x2b7a88(_0x1ed8bf[_0x18c5('0x11')],this[_0x18c5('0xd')][_0x18c5('0x23')])[_0x18c5('0x8')];this['_getTimePeriodViewByStartDate'](_0xdf7e8f)[_0x18c5('0x22')](_0x1ed8bf);}[_0x18c5('0x3')](_0x619495){return this['timePeriodViews'][_0x18c5('0x25')](_0x141d5b=>_0x141d5b[_0x18c5('0x8')][_0x18c5('0x9')]()===_0x619495[_0x18c5('0x9')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a5e=['week','year','day','toJSDate','local','minus','hasSame','month','toRelativeCalendar','startOf','setLocale','monthLong','fromJSDate','weekdayLong'];(function(_0x9636ff,_0x5a5e54){const _0x39b1a6=function(_0x74098e){while(--_0x74098e){_0x9636ff['push'](_0x9636ff['shift']());}};_0x39b1a6(++_0x5a5e54);}(_0x5a5e,0x8b));const _0x39b1=function(_0x9636ff,_0x5a5e54){_0x9636ff=_0x9636ff-0x0;let _0x39b1a6=_0x5a5e[_0x9636ff];return _0x39b1a6;};import{DateTime as _0x2bb1eb}from'luxon';export function getDateTimePeriodInfo(_0x3ce453,_0x5bb413){const _0x47f515=_0x2bb1eb[_0x39b1('0xd')](_0x3ce453)[_0x39b1('0xb')](_0x5bb413),_0xa9d01a=_0x2bb1eb[_0x39b1('0x5')](),_0x5397f1=_0xa9d01a[_0x39b1('0x6')]({'days':0x1})[_0x39b1('0xa')]('day');let _0x552e06,_0x2171a;return _0x47f515[_0x39b1('0x7')](_0xa9d01a,_0x39b1('0x3'))?(_0x552e06=_0x47f515[_0x39b1('0xa')](_0x39b1('0x3'))[_0x39b1('0x4')](),_0x2171a=_0x47f515[_0x39b1('0x9')]()):_0x47f515[_0x39b1('0x7')](_0x5397f1,_0x39b1('0x3'))?(_0x552e06=_0x5397f1[_0x39b1('0x4')](),_0x2171a=_0x47f515['toRelativeCalendar']()):_0x47f515[_0x39b1('0x7')](_0xa9d01a,_0x39b1('0x1'))?(_0x552e06=_0x47f515['startOf']('week')[_0x39b1('0x4')](),_0x2171a=_0x47f515[_0x39b1('0x0')]||''):_0x47f515[_0x39b1('0x7')](_0xa9d01a,_0x39b1('0x2'))?(_0x552e06=_0x47f515[_0x39b1('0xa')](_0x39b1('0x8'))['toJSDate'](),_0x2171a=_0x47f515[_0x39b1('0xc')]||''):(_0x552e06=_0x47f515[_0x39b1('0xa')]('year')[_0x39b1('0x4')](),_0x2171a=String(_0x47f515[_0x39b1('0x2')])),{'startDate':_0x552e06,'localizedPeriodName':_0x2171a};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x406b=['_model','focus','Removed\x20by','div','Suggested\x20by','author','bindTemplate','changeId','ck-revision-change__label','set','span','add','type','name','ck-annotation','ck-revision-change__','isSuggestion','ck-revision-change','Added\x20by'];(function(_0x2e02fb,_0x406baa){const _0x352314=function(_0x567bf0){while(--_0x567bf0){_0x2e02fb['push'](_0x2e02fb['shift']());}};_0x352314(++_0x406baa);}(_0x406b,0x125));const _0x3523=function(_0x2e02fb,_0x406baa){_0x2e02fb=_0x2e02fb-0x0;let _0x352314=_0x406b[_0x2e02fb];return _0x352314;};import{View as _0x583bcc}from'ckeditor5/src/ui';import{getTranslation as _0xb1535d}from'../../utils/common-translations';export default class Z extends _0x583bcc{constructor(_0x27a6c9,_0x13fdfb){super(_0x27a6c9),this[_0x3523('0xb')]=_0x13fdfb,this[_0x3523('0x12')]=_0x13fdfb['id'];const _0x3eeb27=this[_0x3523('0x11')],_0x123405=_0xb1535d(_0x27a6c9,_0x13fdfb['data'][_0x3523('0x8')]?_0x3523('0xf'):_0x3523('0x3')==_0x13fdfb['type']?_0x3523('0xa'):_0x3523('0xd'));this[_0x3523('0x1')](_0x3523('0x4'),_0x13fdfb[_0x3523('0x4')]),this['setTemplate']({'tag':_0x3523('0xe'),'attributes':{'class':[_0x3523('0x6'),_0x3523('0x9'),_0x3eeb27['to'](_0x3523('0x4'),_0x338a2e=>_0x3523('0x7')+_0x338a2e)],'tabindex':-0x1},'children':[{'tag':_0x3523('0x2'),'children':[{'tag':'span','attributes':{'class':[_0x3523('0x0')]},'children':[{'text':_0x123405}]},{'text':'\x20'+_0x13fdfb[_0x3523('0x10')][_0x3523('0x5')]}]}]});}[_0x3523('0xc')](){this['element'][_0x3523('0xc')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b45=['ck-revision-history-ui__changes-navigation__label','isBackwardNavigationEnabled','div','isForwardNavigationEnabled','isReady','Show\x20previous\x20change','NUMBER_OF_CHANGES','currentChangeNumber','setTemplate','isNavigationMode','set','Total','ck-hidden','ck-revision-history-ui__changes-navigation__wrapper','Show\x20next\x20change','forward','ck-revision-history-ui__changes-navigation__navigation','_statusText','bindTemplate','span','backward','No\x20changes','_isStatusLabelVisible','execute','bind','X_OF_Y_CHANGES','fire','isEnabled'];(function(_0x352353,_0x1b45e5){const _0x240787=function(_0x3e94d1){while(--_0x3e94d1){_0x352353['push'](_0x352353['shift']());}};_0x240787(++_0x1b45e5);}(_0x1b45,0x143));const _0x2407=function(_0x352353,_0x1b45e5){_0x352353=_0x352353-0x0;let _0x240787=_0x1b45[_0x352353];return _0x240787;};import{View as _0x904c69,ButtonView as _0x1b024c,ToolbarSeparatorView as _0x3d2d43}from'ckeditor5/src/ui';import{getTranslation as _0xca525a}from'../../utils/common-translations';import _0x54c215 from'../../../theme/icons/arrow-up.svg';import _0x4266be from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x904c69{constructor(_0x39fe51){super(_0x39fe51);const _0x25f75c=this[_0x2407('0x3')],_0x33a88f=new _0x1b024c(_0x39fe51),_0x4ab668=new _0x1b024c(_0x39fe51);this['set']('isNavigationMode',!0x1),this[_0x2407('0x17')](_0x2407('0x11'),!0x1),this[_0x2407('0x17')](_0x2407('0x14'),0x0),this['set']('numberOfChanges',0x0),this[_0x2407('0x17')]('isForwardNavigationEnabled',!0x1),this['set'](_0x2407('0xe'),!0x1),this[_0x2407('0x9')](_0x2407('0x7'))['to'](this,'isReady',this,'numberOfChanges',(_0x30924b,_0x22a945)=>_0x30924b&&_0x22a945>0x0),this[_0x2407('0x9')](_0x2407('0x2'))['to'](this,_0x2407('0x11'),this,_0x2407('0x14'),this,'numberOfChanges',this,'isNavigationMode',(_0xf4e464,_0x1f2909,_0x5ee497,_0x27ab5e)=>{if(!_0xf4e464)return _0xca525a(_0x39fe51,'Loading...');if(!_0x5ee497)return _0xca525a(_0x39fe51,_0x2407('0x6'));const _0x26ae43=_0xca525a(_0x39fe51,_0x2407('0x13'),_0x5ee497);return _0x27ab5e?_0xca525a(_0x39fe51,_0x2407('0xa'),[_0x1f2909+0x1,_0x5ee497]):_0x26ae43;}),_0x33a88f[_0x2407('0x17')]({'label':_0xca525a(_0x39fe51,_0x2407('0x12')),'tooltip':!0x0,'icon':_0x54c215}),_0x4ab668[_0x2407('0x17')]({'label':_0xca525a(_0x39fe51,_0x2407('0x1b')),'tooltip':!0x0,'icon':_0x4266be}),_0x33a88f[_0x2407('0x9')](_0x2407('0xc'))['to'](this,_0x2407('0xe')),_0x4ab668['bind']('isEnabled')['to'](this,_0x2407('0x10')),_0x33a88f['on'](_0x2407('0x8'),()=>this['fire'](_0x2407('0x8'),_0x2407('0x5'))),_0x4ab668['on'](_0x2407('0x8'),()=>this[_0x2407('0xb')](_0x2407('0x8'),_0x2407('0x0'))),this[_0x2407('0x15')]({'tag':_0x2407('0xf'),'attributes':{'class':['ck','ck-revision-history-ui','ck-revision-history-ui__changes-navigation']},'children':[{'tag':_0x2407('0x4'),'attributes':{'class':[_0x2407('0x1a')]},'children':[{'tag':_0x2407('0x4'),'attributes':{'class':[_0x2407('0xd'),_0x25f75c['if'](_0x2407('0x7'),_0x2407('0x19'),_0xe986a2=>!_0xe986a2)]},'children':[{'text':_0x25f75c['to'](_0x2407('0x16'),_0x26f4a1=>_0x26f4a1?_0xca525a(_0x39fe51,'EDIT_X_OF_Y_REVISIONS')+':\x20':_0xca525a(_0x39fe51,_0x2407('0x18'))+':\x20')}]},{'text':_0x25f75c['to']('_statusText')}]},new _0x3d2d43(),{'tag':_0x2407('0xf'),'attributes':{'class':[_0x2407('0x1')]},'children':[_0x33a88f,_0x4ab668]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xd989=['document','editing','ck-editor__editable__loading-overlay','editor','change','addClass','hide','roots','show','RevisionViewerLoadingOverlay','view','pluginName'];(function(_0x39a45a,_0xd98947){const _0x4e1425=function(_0x2050ed){while(--_0x2050ed){_0x39a45a['push'](_0x39a45a['shift']());}};_0x4e1425(++_0xd98947);}(_0xd989,0x156));const _0x4e14=function(_0x39a45a,_0xd98947){_0x39a45a=_0x39a45a-0x0;let _0x4e1425=_0xd989[_0x39a45a];return _0x4e1425;};import{Plugin as _0x2cbba7}from'ckeditor5/src/core';const oe=_0x4e14('0x8');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x2cbba7{static get[_0x4e14('0x5')](){return _0x4e14('0x3');}[_0x4e14('0x2')](){const _0xac88c4=this[_0x4e14('0x9')][_0x4e14('0x7')][_0x4e14('0x4')];_0xac88c4[_0x4e14('0xa')](_0xb38e79=>{for(const _0x22225b of _0xac88c4['document'][_0x4e14('0x1')])_0xb38e79[_0x4e14('0xb')](oe,_0x22225b);});}[_0x4e14('0x0')](){const _0x5c1e36=this[_0x4e14('0x9')][_0x4e14('0x7')]['view'];_0x5c1e36[_0x4e14('0xa')](_0x4cccb0=>{for(const _0x3c2100 of _0x5c1e36[_0x4e14('0x6')][_0x4e14('0x1')])_0x4cccb0['removeClass'](oe,_0x3c2100);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x37f9=['execute','RevisionViewerUI','closeRevisionViewerCallback','listenTo','add','set','exitToEditing','componentFactory','show','forward','showPreviousChange','showNextChange','change:isReady','get','plugins','pluginName','commands','changesNavigation','requires','isForwardNavigationEnabled','Restore\x20this\x20revision','isBackwardNavigationEnabled','isNavigationMode','Back\x20to\x20editing','config','bind','currentChangeNumber','isEnabled','hide','numberOfChanges','editor','restoreRevision'];(function(_0x9978a6,_0x37f9a5){const _0x790f23=function(_0x1a9bfe){while(--_0x1a9bfe){_0x9978a6['push'](_0x9978a6['shift']());}};_0x790f23(++_0x37f9a5);}(_0x37f9,0x8c));const _0x790f=function(_0x9978a6,_0x37f9a5){_0x9978a6=_0x9978a6-0x0;let _0x790f23=_0x37f9[_0x9978a6];return _0x790f23;};import{Plugin as _0x30e699}from'ckeditor5/src/core';import{ButtonView as _0x34530b}from'ckeditor5/src/ui';import _0x2274b5 from'./changesnavigationview';import _0x3ca46d from'./../../revisionviewer';import _0x4547ff from'./revisionviewerloadingoverlay';import{getTranslation as _0x382e05}from'../../utils/common-translations';import _0x3dc727 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x30e699{static get[_0x790f('0x3')](){return _0x790f('0x15');}static get[_0x790f('0x6')](){return[_0x3ca46d,_0x4547ff];}['init'](){const _0x2aec14=this[_0x790f('0x12')],_0x2d1d8b=_0x2aec14[_0x790f('0x2')]['get'](_0x3ca46d),_0x5cb13b=_0x2aec14['plugins']['get'](_0x4547ff);_0x2aec14['ui']['componentFactory']['add'](_0x790f('0x1a'),_0x32d59d=>{const _0xfebac1=new _0x34530b(_0x32d59d);return _0xfebac1[_0x790f('0x19')]({'label':_0x382e05(_0x32d59d,_0x790f('0xb')),'icon':_0x3dc727,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this[_0x790f('0x17')](_0xfebac1,_0x790f('0x14'),()=>{_0x2aec14[_0x790f('0xc')][_0x790f('0x1')]('revisionHistory')[_0x790f('0x16')]();}),_0xfebac1;}),_0x2aec14['ui'][_0x790f('0x1b')]['add'](_0x790f('0x13'),_0x408632=>{const _0x50bf1e=new _0x34530b(_0x408632);return _0x50bf1e[_0x790f('0x19')]({'label':_0x382e05(_0x408632,_0x790f('0x8')),'withText':!0x0,'tooltip':!0x0}),_0x50bf1e[_0x790f('0xd')](_0x790f('0xf'))['to'](_0x2aec14[_0x790f('0x4')][_0x790f('0x1')](_0x790f('0x13'))),this[_0x790f('0x17')](_0x50bf1e,_0x790f('0x14'),()=>_0x2aec14[_0x790f('0x14')](_0x790f('0x13'))),_0x50bf1e;}),_0x2aec14['ui']['componentFactory'][_0x790f('0x18')](_0x790f('0x5'),_0x4ec9cf=>{const _0x5bc9=new _0x2274b5(_0x4ec9cf),_0x3e6bea=_0x2aec14[_0x790f('0x4')][_0x790f('0x1')](_0x790f('0x1e')),_0x1de04f=_0x2aec14[_0x790f('0x4')][_0x790f('0x1')](_0x790f('0x1f'));return _0x5bc9[_0x790f('0xd')](_0x790f('0x9'))['to'](_0x3e6bea,'isEnabled'),_0x5bc9[_0x790f('0xd')](_0x790f('0x7'))['to'](_0x1de04f,_0x790f('0xf')),_0x5bc9['bind']('isReady',_0x790f('0xe'),_0x790f('0x11'),_0x790f('0xa'))['to'](_0x2d1d8b),this['listenTo'](_0x5bc9,_0x790f('0x14'),(_0x2d071a,_0x4ba8c2)=>{_0x2aec14[_0x790f('0x14')](_0x790f('0x1d')===_0x4ba8c2?_0x790f('0x1f'):'showPreviousChange');}),_0x5bc9;}),_0x5cb13b[_0x790f('0x1c')](),_0x2d1d8b['on'](_0x790f('0x0'),(_0x11258f,_0x4a06df,_0x4ba8e9)=>{_0x4ba8e9?_0x5cb13b[_0x790f('0x10')]():_0x5cb13b[_0x790f('0x1c')]();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x63b886,_0xeb0023,_0xe7e4c0){const t=_0x63b886['t'];switch(_0xeb0023){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'},_0xe7e4c0);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xe7e4c0);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 _0xeb0023;}}
|