@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231214.0 → 0.0.0-nightly-20231215.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 _0x5270=['submit','view','items','Revision\x20history','history','get','revisionHistory','revisionName','isReadOnly','RevisionTracker','Save\x20current\x20revision','remove','cancel','plugins','reset','change:isOpen','requires','RevisionHistoryUI','render','showRevisionViewerCallback','isOpen','isEnabled','isReady','config','pluginName','focus','saveButtonView','execute','children','set','add','editing','bind','panelView'];(function(_0x4a9c8e,_0x52700b){const _0x35fabb=function(_0x320439){while(--_0x320439){_0x4a9c8e['push'](_0x4a9c8e['shift']());}};_0x35fabb(++_0x52700b);}(_0x5270,0x19d));const _0x35fa=function(_0x4a9c8e,_0x52700b){_0x4a9c8e=_0x4a9c8e-0x0;let _0x35fabb=_0x5270[_0x4a9c8e];return _0x35fabb;};import{Plugin as _0x1194f7,icons as _0x2e203d}from'ckeditor5/src/core';import{ListView as _0x40b32a,ListItemView as _0x3979f3,ButtonView as _0x56b28d,createDropdown as _0x4d6b7a}from'ckeditor5/src/ui';import _0x5ba1d7 from'../../revisiontracker';import _0x58b0c7 from'./revisionhistorysaverevisionformview';import{getTranslation as _0x25e89d}from'../../utils/common-translations';export default class u extends _0x1194f7{static get[_0x35fa('0x13')](){return _0x35fa('0xc');}static get[_0x35fa('0xb')](){return[_0x5ba1d7];}['init'](){const _0x23b44d=this['editor'],_0x446fc3=_0x23b44d[_0x35fa('0x8')][_0x35fa('0x0')](_0x35fa('0x4'));_0x23b44d['ui']['componentFactory'][_0x35fa('0x19')](_0x35fa('0x1'),_0x584995=>{const _0x2dbb1f=_0x4d6b7a(_0x584995),_0x5bfeb6=_0x2dbb1f[_0x35fa('0x1c')][_0x35fa('0x17')],_0x4a8dfc=new _0x40b32a(_0x584995),_0x483ea8=new _0x3979f3(_0x584995),_0x3afa6f=new _0x56b28d(_0x584995),_0x4a45b6=new _0x3979f3(_0x584995),_0x3bd5c4=new _0x56b28d(_0x584995),_0x2c7233=new _0x58b0c7(_0x584995);function _0x573bb5(){_0x5bfeb6['length']&&_0x5bfeb6['remove'](0x0),_0x5bfeb6[_0x35fa('0x19')](_0x4a8dfc);}function _0x105756(){_0x2dbb1f[_0x35fa('0xf')]=!0x1,_0x23b44d[_0x35fa('0x1a')][_0x35fa('0x1e')][_0x35fa('0x14')]();}return _0x2dbb1f['bind']('isEnabled')['to'](_0x446fc3,_0x35fa('0x11'),_0x446fc3,_0x35fa('0x10'),_0x23b44d,_0x35fa('0x3'),(_0x1ee493,_0x4d9079,_0x20e7f4)=>_0x1ee493&&_0x4d9079&&!_0x20e7f4),_0x2dbb1f['buttonView'][_0x35fa('0x18')]({'icon':_0x2e203d[_0x35fa('0x21')],'label':_0x25e89d(_0x584995,_0x35fa('0x20')),'tooltip':!0x0}),_0x3afa6f['set']({'label':_0x25e89d(_0x584995,_0x35fa('0x5')),'withText':!0x0}),_0x3afa6f[_0x35fa('0x1b')](_0x35fa('0x10'))['to'](_0x446fc3,_0x35fa('0x11'),_0x446fc3,_0x35fa('0x10'),_0x23b44d,_0x35fa('0x3'),(_0x2346fc,_0x42cb55,_0x19c914)=>_0x2346fc&&_0x42cb55&&!_0x19c914),_0x3afa6f['on'](_0x35fa('0x16'),()=>function(){_0x5bfeb6['length']&&_0x5bfeb6[_0x35fa('0x6')](0x0),(_0x2c7233[_0x35fa('0x9')](),_0x5bfeb6[_0x35fa('0x19')](_0x2c7233),_0x2c7233[_0x35fa('0x14')]());}()),_0x3bd5c4[_0x35fa('0x18')]({'label':_0x25e89d(_0x584995,'Open\x20revision\x20history'),'withText':!0x0}),_0x3bd5c4['bind'](_0x35fa('0x10'))['to'](_0x446fc3,'isReady',_0x23b44d,_0x35fa('0x3'),(_0x245f9e,_0x4edd49)=>_0x245f9e&&!_0x4edd49),_0x3bd5c4['on']('execute',()=>{_0x23b44d[_0x35fa('0x12')]['get']('revisionHistory')[_0x35fa('0xe')](),_0x105756();}),_0x483ea8['children']['add'](_0x3afa6f),_0x4a45b6[_0x35fa('0x17')][_0x35fa('0x19')](_0x3bd5c4),_0x4a8dfc[_0x35fa('0x1f')]['addMany']([_0x483ea8,_0x4a45b6]),_0x2dbb1f['on'](_0x35fa('0xa'),()=>_0x573bb5()),_0x2c7233[_0x35fa('0x15')][_0x35fa('0x1b')](_0x35fa('0x10'))['to'](_0x446fc3,_0x35fa('0x11'),_0x446fc3,_0x35fa('0x10'),_0x23b44d,_0x35fa('0x3'),(_0x8d35a0,_0x1f8d78,_0x2f2c3d)=>_0x8d35a0&&_0x1f8d78&&!_0x2f2c3d),_0x2c7233['on'](_0x35fa('0x1d'),()=>(_0x23b44d[_0x35fa('0x8')]['get'](_0x5ba1d7)['saveRevision']({'name':_0x2c7233[_0x35fa('0x2')]}),void _0x105756())),_0x2c7233['on'](_0x35fa('0x7'),()=>_0x573bb5()),_0x2c7233[_0x35fa('0xd')](),_0x573bb5(),_0x2dbb1f;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e1d=['_sidebarView','repository','get','config','_revisionViewer','compare','isEnabled','revisionHistory','string','isVisible','select','getRevisionsInDiff','setName','fieldView','name','getLaterVisibleRevision','assign','appendChild','_handleRevisionSelected','pluginName','_createRevisionActions','action','element','Compare\x20against\x20selected','remove','_handleEditorDataReady','defaultRevisionActions','nameRevision','bind','selectRevision','diff','plugins','getRevision','_revisions','change:diff','revisionHistory.revisionActions','init','_handleRevisionSetName','restoreRevisionCallback','_handleDiffChange','revisionSetName','newRevisionId','focus','getEarlierVisibleRevision','restoreRevision','compareAgainstSelected','getIndex','add','length','isReady','availableRevisionActions','locale','destroy','editor','Name\x20this\x20revision','_revisionsRepository','listenTo'];(function(_0x4e340d,_0x5e1d92){const _0x5b8cb9=function(_0x3acbe7){while(--_0x3acbe7){_0x4e340d['push'](_0x4e340d['shift']());}};_0x5b8cb9(++_0x5e1d92);}(_0x5e1d,0x1ac));const _0x5b8c=function(_0x4e340d,_0x5e1d92){_0x4e340d=_0x4e340d-0x0;let _0x5b8cb9=_0x5e1d[_0x4e340d];return _0x5b8cb9;};import{Plugin as _0x3c00c4}from'ckeditor5/src/core';import _0x48a605 from'./revisionssidebarview';import _0x240aa7 from'../../revisionviewer';export default class w extends _0x3c00c4{static get[_0x5b8c('0x2f')](){return'RevisionsSidebar';}static get['requires'](){return[_0x240aa7];}constructor(_0x55fbe1){super(_0x55fbe1),this['_revisionViewer']=_0x55fbe1[_0x5b8c('0x2')][_0x5b8c('0x1e')](_0x240aa7),this[_0x5b8c('0x1a')]=this['_revisionViewer']['repository'],this[_0x5b8c('0x1c')]=null;}[_0x5b8c('0x7')](){const _0x13ed5b=this[_0x5b8c('0x1a')][_0x5b8c('0x4')],_0x52e6e3=this[_0x5b8c('0x30')](),_0x23d528=this[_0x5b8c('0x18')][_0x5b8c('0x1f')][_0x5b8c('0x1e')]('revisionHistory.viewerSidebarContainer');this[_0x5b8c('0x1c')]=new _0x48a605(this[_0x5b8c('0x18')][_0x5b8c('0x16')],_0x13ed5b,_0x52e6e3),this[_0x5b8c('0x1c')]['on']('revisionSelected',this[_0x5b8c('0x2e')]['bind'](this)),this[_0x5b8c('0x1c')]['on'](_0x5b8c('0xb'),this[_0x5b8c('0x8')][_0x5b8c('0x38')](this)),this[_0x5b8c('0x1c')][_0x5b8c('0x38')]('isEnabled')['to'](this['_revisionViewer']),this['_sidebarView']['timePeriodViews']['on'](_0x5b8c('0x12'),(_0x1bc8ef,_0x1d9081)=>{_0x1d9081['revisionViews']['on'](_0x5b8c('0x12'),(_0x5ede56,_0x227f9c)=>{_0x227f9c[_0x5b8c('0x38')](_0x5b8c('0x22'),_0x5b8c('0x14'))['to'](this[_0x5b8c('0x20')]);});}),this[_0x5b8c('0x1c')]['render'](),this[_0x5b8c('0x1b')](this[_0x5b8c('0x18')]['data'],'ready',this[_0x5b8c('0x35')][_0x5b8c('0x38')](this)),this[_0x5b8c('0x1b')](this[_0x5b8c('0x20')],_0x5b8c('0x5'),this[_0x5b8c('0xa')][_0x5b8c('0x38')](this)),_0x23d528[_0x5b8c('0x2d')](this[_0x5b8c('0x1c')]['element']);}['destroy'](){this[_0x5b8c('0x1c')][_0x5b8c('0x32')][_0x5b8c('0x34')](),this[_0x5b8c('0x1c')][_0x5b8c('0x17')]();}[_0x5b8c('0x35')](){const _0x34af49=this[_0x5b8c('0x1a')][_0x5b8c('0x3')](0x0);if(_0x34af49){const _0x36e927=this[_0x5b8c('0x1a')]['getEarlierVisibleRevision'](_0x34af49['id']);this[_0x5b8c('0x20')][_0x5b8c('0x21')](_0x34af49,_0x36e927);}}[_0x5b8c('0x2e')](_0x2d9e9c,_0x5464af){const _0x1b1c3c=this[_0x5b8c('0x1a')][_0x5b8c('0x3')](_0x5464af['id']),_0x40b79b=this[_0x5b8c('0x1a')][_0x5b8c('0xe')](_0x1b1c3c['id']);this[_0x5b8c('0x20')][_0x5b8c('0x21')](_0x1b1c3c,_0x40b79b);}[_0x5b8c('0x8')](_0x1c763a,_0x481c3e){this[_0x5b8c('0x1a')][_0x5b8c('0x3')](_0x481c3e['id'])[_0x5b8c('0x28')](_0x481c3e[_0x5b8c('0x2a')]);}[_0x5b8c('0xa')](_0x4eb6b3,_0x5cfde5,_0x3e94f7){const _0x301b20=this['_revisionsRepository'][_0x5b8c('0x27')](_0x3e94f7);_0x301b20[_0x5b8c('0x13')]>0x2?(this['_sidebarView']['highlightRevisions'](_0x301b20),this['_sidebarView'][_0x5b8c('0x0')](null)):(this[_0x5b8c('0x1c')]['highlightRevisions']([]),this['_sidebarView'][_0x5b8c('0x0')](_0x301b20[0x0]));}[_0x5b8c('0x30')](){const _0x2c9125=this['editor'],_0x518485=w[_0x5b8c('0x15')],_0x8274eb=_0x2c9125[_0x5b8c('0x1f')][_0x5b8c('0x1e')](_0x5b8c('0x6'))||w[_0x5b8c('0x36')];if(_0x8274eb['length'])return _0x8274eb['map'](_0x56e9b0=>{const _0x2c00fe=_0x5b8c('0x24')==typeof _0x56e9b0?Object[_0x5b8c('0x2c')]({},_0x518485[_0x56e9b0]):_0x56e9b0;return _0x2c00fe[_0x5b8c('0x31')]=_0x2c00fe['action'][_0x5b8c('0x38')](this,_0x2c9125),_0x2c00fe[_0x5b8c('0x25')]&&(_0x2c00fe[_0x5b8c('0x25')]=_0x2c00fe[_0x5b8c('0x25')][_0x5b8c('0x38')](this,_0x2c9125)),_0x2c00fe;});}}w['availableRevisionActions']={'compareAgainstSelected':{'name':_0x5b8c('0x33'),'action':({plugins:_0x5217b5},_0x5efc18)=>{const _0x311ae2=_0x5217b5[_0x5b8c('0x1e')](_0x240aa7),_0x34264e=_0x311ae2['repository'];let _0x1489d6=_0x311ae2['diff'][_0x5b8c('0xc')],_0x3b6746=_0x5efc18['id'];_0x34264e[_0x5b8c('0x11')](_0x1489d6)>_0x34264e['getIndex'](_0x3b6746)&&([_0x1489d6,_0x3b6746]=[_0x3b6746,_0x1489d6]),_0x311ae2[_0x5b8c('0x21')](_0x1489d6,_0x3b6746);},'isVisible':({plugins:_0x5ec760},_0xe48625)=>{const _0x597f33=_0x5ec760[_0x5b8c('0x1e')](_0x240aa7);return!(_0x597f33[_0x5b8c('0x1d')]['getRevisionsInDiff'](_0x597f33[_0x5b8c('0x1')])['length']>0x2)&&!_0xe48625['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0xc769f5,{id:_0x2cc66a})=>{_0xc769f5['config']['get'](_0x5b8c('0x23'))[_0x5b8c('0x9')](_0x2cc66a);},'isVisible':({plugins:_0xf65aee},_0x59fb23)=>!!_0xf65aee['get'](_0x240aa7)[_0x5b8c('0x1d')][_0x5b8c('0x2b')](_0x59fb23['id'])},'nameRevision':{'name':_0x5b8c('0x19'),'action':({plugins:_0x2b5ddd},{id:_0x30b6db,revisionNameView:_0x367405})=>{const _0xa62c6d=_0x2b5ddd[_0x5b8c('0x1e')](_0x240aa7),_0x1bcb68=_0xa62c6d[_0x5b8c('0x1d')][_0x5b8c('0xe')](_0x30b6db);_0xa62c6d[_0x5b8c('0x21')](_0x30b6db,_0x1bcb68),_0x367405[_0x5b8c('0xd')](),_0x367405[_0x5b8c('0x29')][_0x5b8c('0x26')]();}}},w['defaultRevisionActions']=[_0x5b8c('0x10'),_0x5b8c('0xf'),_0x5b8c('0x37')];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53e8=['Revision\x20history','setTemplate','ck-revision-history-sidebar__header__label','span','div','ck-reset_all','history','content'];(function(_0x1103f0,_0x53e86a){const _0x59ebdf=function(_0x235837){while(--_0x235837){_0x1103f0['push'](_0x1103f0['shift']());}};_0x59ebdf(++_0x53e86a);}(_0x53e8,0xab));const _0x59eb=function(_0x1103f0,_0x53e86a){_0x1103f0=_0x1103f0-0x0;let _0x59ebdf=_0x53e8[_0x1103f0];return _0x59ebdf;};import{View as _0x49622e,IconView as _0x5c1868}from'ckeditor5/src/ui';import{getTranslation as _0x49b226}from'../../utils/common-translations';import{icons as _0x5e292f}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rr extends _0x49622e{constructor(_0x43c5b4){super(_0x43c5b4);const _0x5d6404=new _0x5c1868();_0x5d6404[_0x59eb('0x4')]=_0x5e292f[_0x59eb('0x3')],this[_0x59eb('0x6')]({'tag':_0x59eb('0x1'),'attributes':{'class':['ck',_0x59eb('0x2'),'ck-revision-history-sidebar__header']},'children':[_0x5d6404,{'tag':_0x59eb('0x0'),'attributes':{'class':['ck',_0x59eb('0x7')]},'children':[_0x49b226(_0x43c5b4,_0x59eb('0x5'))]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1717=['revisionViews','div','addRevision','delegate','select','locale','removeRevision','add','setTemplate','createCollection','_revisionActions','find','remove','ck-revision-history-sidebar__time-period__revisions'];(function(_0x857d2f,_0x171713){const _0x4dfe01=function(_0x3848dd){while(--_0x3848dd){_0x857d2f['push'](_0x857d2f['shift']());}};_0x4dfe01(++_0x171713);}(_0x1717,0x87));const _0x4dfe=function(_0x857d2f,_0x171713){_0x857d2f=_0x857d2f-0x0;let _0x4dfe01=_0x1717[_0x857d2f];return _0x4dfe01;};import{View as _0x531958}from'ckeditor5/src/ui';import _0x1a3b81 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x4d60a2}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x531958{constructor(_0x20d38f,_0x570008,_0x1cfcff){super(_0x20d38f);const _0x5be0e0=_0x4d60a2(_0x570008,this[_0x4dfe('0xa')]['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x570008,this[_0x4dfe('0x5')]=this[_0x4dfe('0x0')](),this['_revisionActions']=_0x1cfcff,this[_0x4dfe('0x5')][_0x4dfe('0x8')](_0x4dfe('0x9'))['to'](this),this[_0x4dfe('0x5')][_0x4dfe('0x8')]('setName')['to'](this),this[_0x4dfe('0xd')]({'tag':_0x4dfe('0x6'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x5be0e0}]},{'tag':'div','attributes':{'class':['ck',_0x4dfe('0x4')]},'children':this['revisionViews']}]});}[_0x4dfe('0x7')](_0x198509){const _0x401062=new _0x1a3b81(this['locale'],_0x198509,this[_0x4dfe('0x1')]);this['revisionViews'][_0x4dfe('0xc')](_0x401062);}[_0x4dfe('0xb')](_0x39efd6){const _0x2930a4=this[_0x4dfe('0x5')][_0x4dfe('0x2')](_0x3f2ad4=>_0x3f2ad4['id']===_0x39efd6['id']);this[_0x4dfe('0x5')][_0x4dfe('0x3')](_0x2930a4);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x42c4=['ck-revision-history-sidebar__timeline','addRevision','uiLanguage','unhighlight','setName','remove','createCollection','add','timePeriodViews','highlightRevisions','some','startDate','set','_revisionActions','fire','ck-rounded-corners','deselect','flat','select','_revisions','get','_getTimePeriodViewByStartDate','removeRevision','ck-reset','map','bindTemplate','revisionSelected','createdAt','highlight','_addRevision','_removeRevision','render','delegate','revisionViews','find','setTemplate','locale','getTime','isEnabled','div'];(function(_0x2705aa,_0x42c4f6){const _0x322861=function(_0xdd3c7e){while(--_0xdd3c7e){_0x2705aa['push'](_0x2705aa['shift']());}};_0x322861(++_0x42c4f6);}(_0x42c4,0x108));const _0x3228=function(_0x2705aa,_0x42c4f6){_0x2705aa=_0x2705aa-0x0;let _0x322861=_0x42c4[_0x2705aa];return _0x322861;};import{View as _0x1e4a4a}from'ckeditor5/src/ui';import _0x4ba961 from'./revisionssidebartimeperiodview';import _0xed48d3 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x3a65c7}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x1e4a4a{constructor(_0x27c0c9,_0x4e6926,_0x22af70){super(_0x27c0c9);const _0x4d922f=this[_0x3228('0x1')];this[_0x3228('0x18')]=this[_0x3228('0x16')](),this['timePeriodViews'][_0x3228('0x8')](_0x3228('0x22'))['to'](this),this['timePeriodViews'][_0x3228('0x8')](_0x3228('0x14'))['to'](this),this[_0x3228('0x23')]=_0x4e6926,this[_0x3228('0x1d')]=_0x22af70,this['on'](_0x3228('0x22'),(_0x7e5c6e,_0x4567e2)=>{this['fire'](_0x3228('0x2'),_0x4567e2);}),this['on'](_0x3228('0x14'),(_0x27fc77,_0x559828)=>{this[_0x3228('0x1e')]('revisionSetName',_0x559828);}),this[_0x3228('0x1c')](_0x3228('0xe'),!0x1),this[_0x3228('0xb')]({'tag':_0x3228('0xf'),'attributes':{'class':['ck',_0x3228('0x27'),_0x3228('0x1f'),'ck-revision-history-sidebar']},'children':[new _0xed48d3(_0x27c0c9),{'tag':'div','attributes':{'class':['ck',_0x3228('0x10'),_0x4d922f['if'](_0x3228('0xe'),'ck-disabled',_0x4cf9c3=>!_0x4cf9c3)]},'children':this[_0x3228('0x18')]}]});}[_0x3228('0x7')](){super[_0x3228('0x7')]();for(const _0xaba35d of this[_0x3228('0x23')])this[_0x3228('0x5')](_0xaba35d);this[_0x3228('0x23')]['on']('add',(_0x2d7062,_0x213010)=>{this['_addRevision'](_0x213010);}),this['_revisions']['on'](_0x3228('0x15'),(_0x2a7b40,_0x31ed25)=>{this[_0x3228('0x6')](_0x31ed25);});}get[_0x3228('0x9')](){return this['timePeriodViews'][_0x3228('0x0')](_0x18a476=>_0x18a476[_0x3228('0x9')][_0x3228('0x0')](_0x1af0b2=>_0x1af0b2))[_0x3228('0x21')]();}['selectRevision'](_0x66cad7){for(const _0x2de483 of this['revisionViews'])_0x66cad7&&_0x66cad7['id']===_0x2de483['id']?_0x2de483['select']():_0x2de483[_0x3228('0x20')]();}[_0x3228('0x19')](_0x5128cd){for(const _0xd080d1 of this[_0x3228('0x9')])_0x5128cd[_0x3228('0x1a')](({id:_0x5c3eec})=>_0x5c3eec===_0xd080d1['id'])?_0xd080d1[_0x3228('0x4')]():_0xd080d1[_0x3228('0x13')]();}[_0x3228('0x5')](_0x3f19c8){const _0x38466a=_0x3a65c7(_0x3f19c8[_0x3228('0x3')],this[_0x3228('0xc')]['uiLanguage'])[_0x3228('0x1b')];let _0x69e287=this[_0x3228('0x18')][_0x3228('0x24')](0x0);_0x69e287&&_0x69e287[_0x3228('0x1b')]['getTime']()===_0x38466a['getTime']()||(_0x69e287=new _0x4ba961(this[_0x3228('0xc')],_0x38466a,this[_0x3228('0x1d')]),this['timePeriodViews'][_0x3228('0x17')](_0x69e287)),_0x69e287[_0x3228('0x11')](_0x3f19c8);}[_0x3228('0x6')](_0x27ef6c){const _0x3bc065=_0x3a65c7(_0x27ef6c[_0x3228('0x3')],this[_0x3228('0xc')][_0x3228('0x12')])[_0x3228('0x1b')];this[_0x3228('0x25')](_0x3bc065)[_0x3228('0x26')](_0x27ef6c);}[_0x3228('0x25')](_0x3d3e81){return this['timePeriodViews'][_0x3228('0xa')](_0x508aad=>_0x508aad['startDate']['getTime']()===_0x3d3e81[_0x3228('0xd')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7fcc=['week','weekdayLong','day','hasSame','local','year','monthLong','startOf','minus','toJSDate','fromJSDate','toRelativeCalendar'];(function(_0x22f11a,_0x7fcc24){const _0x330c55=function(_0x2b5416){while(--_0x2b5416){_0x22f11a['push'](_0x22f11a['shift']());}};_0x330c55(++_0x7fcc24);}(_0x7fcc,0xf6));const _0x330c=function(_0x22f11a,_0x7fcc24){_0x22f11a=_0x22f11a-0x0;let _0x330c55=_0x7fcc[_0x22f11a];return _0x330c55;};import{DateTime as _0x5a037d}from'luxon';export function getDateTimePeriodInfo(_0x3b7523,_0x3d87e7){const _0x86ce21=_0x5a037d[_0x330c('0x4')](_0x3b7523)['setLocale'](_0x3d87e7),_0x4a047d=_0x5a037d[_0x330c('0xa')](),_0x1b7a32=_0x4a047d[_0x330c('0x2')]({'days':0x1})['startOf']('day');let _0x20ac51,_0x5073d8;return _0x86ce21[_0x330c('0x9')](_0x4a047d,_0x330c('0x8'))?(_0x20ac51=_0x86ce21[_0x330c('0x1')]('day')[_0x330c('0x3')](),_0x5073d8=_0x86ce21[_0x330c('0x5')]()):_0x86ce21['hasSame'](_0x1b7a32,_0x330c('0x8'))?(_0x20ac51=_0x1b7a32[_0x330c('0x3')](),_0x5073d8=_0x86ce21['toRelativeCalendar']()):_0x86ce21[_0x330c('0x9')](_0x4a047d,_0x330c('0x6'))?(_0x20ac51=_0x86ce21[_0x330c('0x1')](_0x330c('0x6'))[_0x330c('0x3')](),_0x5073d8=_0x86ce21[_0x330c('0x7')]||''):_0x86ce21['hasSame'](_0x4a047d,_0x330c('0xb'))?(_0x20ac51=_0x86ce21['startOf']('month')['toJSDate'](),_0x5073d8=_0x86ce21[_0x330c('0x0')]||''):(_0x20ac51=_0x86ce21['startOf']('year')[_0x330c('0x3')](),_0x5073d8=String(_0x86ce21[_0x330c('0xb')])),{'startDate':_0x20ac51,'localizedPeriodName':_0x5073d8};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x59c9=['author','div','Removed\x20by','focus','type','changeId','set','_model','Added\x20by','element','isSuggestion','name','ck-revision-change','bindTemplate','span','ck-revision-change__label'];(function(_0x590c54,_0x59c9e8){const _0x4fce7e=function(_0x256a72){while(--_0x256a72){_0x590c54['push'](_0x590c54['shift']());}};_0x4fce7e(++_0x59c9e8);}(_0x59c9,0x1da));const _0x4fce=function(_0x590c54,_0x59c9e8){_0x590c54=_0x590c54-0x0;let _0x4fce7e=_0x59c9[_0x590c54];return _0x4fce7e;};import{View as _0xa73f14}from'ckeditor5/src/ui';import{getTranslation as _0x57545f}from'../../utils/common-translations';export default class Z extends _0xa73f14{constructor(_0x140148,_0x1e8e92){super(_0x140148),this[_0x4fce('0xd')]=_0x1e8e92,this[_0x4fce('0xb')]=_0x1e8e92['id'];const _0x6383cc=this[_0x4fce('0x3')],_0x37daea=_0x57545f(_0x140148,_0x1e8e92['data'][_0x4fce('0x0')]?'Suggested\x20by':'add'==_0x1e8e92[_0x4fce('0xa')]?_0x4fce('0xe'):_0x4fce('0x8'));this[_0x4fce('0xc')](_0x4fce('0xa'),_0x1e8e92[_0x4fce('0xa')]),this['setTemplate']({'tag':_0x4fce('0x7'),'attributes':{'class':['ck-annotation',_0x4fce('0x2'),_0x6383cc['to'](_0x4fce('0xa'),_0xd398c7=>'ck-revision-change__'+_0xd398c7)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':_0x4fce('0x4'),'attributes':{'class':[_0x4fce('0x5')]},'children':[{'text':_0x37daea}]},{'text':'\x20'+_0x1e8e92[_0x4fce('0x6')][_0x4fce('0x1')]}]}]});}[_0x4fce('0x9')](){this[_0x4fce('0xf')][_0x4fce('0x9')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1bf0=['isBackwardNavigationEnabled','numberOfChanges','Show\x20previous\x20change','isNavigationMode','ck-revision-history-ui__changes-navigation__label','X_OF_Y_CHANGES','bind','execute','bindTemplate','div','span','_isStatusLabelVisible','backward','No\x20changes','Show\x20next\x20change','NUMBER_OF_CHANGES','isEnabled','ck-revision-history-ui__changes-navigation__navigation','EDIT_X_OF_Y_REVISIONS','isForwardNavigationEnabled','currentChangeNumber','isReady','set','forward','_statusText','ck-revision-history-ui','fire'];(function(_0x437b52,_0x1bf08c){const _0x1e015c=function(_0x121bf3){while(--_0x121bf3){_0x437b52['push'](_0x437b52['shift']());}};_0x1e015c(++_0x1bf08c);}(_0x1bf0,0x75));const _0x1e01=function(_0x437b52,_0x1bf08c){_0x437b52=_0x437b52-0x0;let _0x1e015c=_0x1bf0[_0x437b52];return _0x1e015c;};import{View as _0xee8fa9,ButtonView as _0x45f0c8,ToolbarSeparatorView as _0xc26994}from'ckeditor5/src/ui';import{getTranslation as _0x97d643}from'../../utils/common-translations';import _0x140631 from'../../../theme/icons/arrow-up.svg';import _0x258fd0 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0xee8fa9{constructor(_0x38e231){super(_0x38e231);const _0x4703bb=this[_0x1e01('0x1a')],_0xa0354=new _0x45f0c8(_0x38e231),_0x5123c8=new _0x45f0c8(_0x38e231);this[_0x1e01('0xd')](_0x1e01('0x15'),!0x1),this[_0x1e01('0xd')](_0x1e01('0xc'),!0x1),this[_0x1e01('0xd')](_0x1e01('0xb'),0x0),this[_0x1e01('0xd')](_0x1e01('0x13'),0x0),this[_0x1e01('0xd')](_0x1e01('0xa'),!0x1),this[_0x1e01('0xd')]('isBackwardNavigationEnabled',!0x1),this[_0x1e01('0x18')]('_isStatusLabelVisible')['to'](this,_0x1e01('0xc'),this,'numberOfChanges',(_0x5aef61,_0x2ee651)=>_0x5aef61&&_0x2ee651>0x0),this[_0x1e01('0x18')](_0x1e01('0xf'))['to'](this,'isReady',this,_0x1e01('0xb'),this,'numberOfChanges',this,_0x1e01('0x15'),(_0x355b7e,_0x286aa2,_0x86ece6,_0x5c8581)=>{if(!_0x355b7e)return _0x97d643(_0x38e231,'Loading...');if(!_0x86ece6)return _0x97d643(_0x38e231,_0x1e01('0x4'));const _0x57f07b=_0x97d643(_0x38e231,_0x1e01('0x6'),_0x86ece6);return _0x5c8581?_0x97d643(_0x38e231,_0x1e01('0x17'),[_0x286aa2+0x1,_0x86ece6]):_0x57f07b;}),_0xa0354['set']({'label':_0x97d643(_0x38e231,_0x1e01('0x14')),'tooltip':!0x0,'icon':_0x140631}),_0x5123c8['set']({'label':_0x97d643(_0x38e231,_0x1e01('0x5')),'tooltip':!0x0,'icon':_0x258fd0}),_0xa0354['bind']('isEnabled')['to'](this,_0x1e01('0x12')),_0x5123c8['bind'](_0x1e01('0x7'))['to'](this,_0x1e01('0xa')),_0xa0354['on']('execute',()=>this[_0x1e01('0x11')](_0x1e01('0x19'),_0x1e01('0x3'))),_0x5123c8['on'](_0x1e01('0x19'),()=>this[_0x1e01('0x11')]('execute',_0x1e01('0xe'))),this['setTemplate']({'tag':_0x1e01('0x0'),'attributes':{'class':['ck',_0x1e01('0x10'),'ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':_0x1e01('0x1'),'attributes':{'class':[_0x1e01('0x16'),_0x4703bb['if'](_0x1e01('0x2'),'ck-hidden',_0x316e46=>!_0x316e46)]},'children':[{'text':_0x4703bb['to'](_0x1e01('0x15'),_0x5637b6=>_0x5637b6?_0x97d643(_0x38e231,_0x1e01('0x9'))+':\x20':_0x97d643(_0x38e231,'Total')+':\x20')}]},{'text':_0x4703bb['to'](_0x1e01('0xf'))}]},new _0xc26994(),{'tag':_0x1e01('0x0'),'attributes':{'class':[_0x1e01('0x8')]},'children':[_0xa0354,_0x5123c8]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2980=['change','pluginName','roots','show','editing','RevisionViewerLoadingOverlay','hide','removeClass','editor','ck-editor__editable__loading-overlay','document','view'];(function(_0x52cbd1,_0x2980db){const _0x88090a=function(_0x2b44cc){while(--_0x2b44cc){_0x52cbd1['push'](_0x52cbd1['shift']());}};_0x88090a(++_0x2980db);}(_0x2980,0x1c0));const _0x8809=function(_0x52cbd1,_0x2980db){_0x52cbd1=_0x52cbd1-0x0;let _0x88090a=_0x2980[_0x52cbd1];return _0x88090a;};import{Plugin as _0x4c66c2}from'ckeditor5/src/core';const oe=_0x8809('0x5');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x4c66c2{static get[_0x8809('0x9')](){return _0x8809('0x1');}[_0x8809('0xb')](){const _0x59b5f1=this[_0x8809('0x4')][_0x8809('0x0')][_0x8809('0x7')];_0x59b5f1['change'](_0x517362=>{for(const _0x226afd of _0x59b5f1[_0x8809('0x6')][_0x8809('0xa')])_0x517362['addClass'](oe,_0x226afd);});}[_0x8809('0x2')](){const _0x1b9739=this['editor'][_0x8809('0x0')][_0x8809('0x7')];_0x1b9739[_0x8809('0x8')](_0xa7ce7d=>{for(const _0xa6fb3f of _0x1b9739['document'][_0x8809('0xa')])_0xa7ce7d[_0x8809('0x3')](oe,_0xa6fb3f);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3a6d=['commands','exitToEditing','showPreviousChange','ck-revision-history-ui__back-to-editing','forward','Restore\x20this\x20revision','add','requires','closeRevisionViewerCallback','change:isReady','restoreRevision','execute','RevisionViewerUI','isReady','isForwardNavigationEnabled','changesNavigation','Back\x20to\x20editing','currentChangeNumber','config','plugins','listenTo','revisionHistory','showNextChange','pluginName','hide','get','numberOfChanges','componentFactory','isBackwardNavigationEnabled','isEnabled','show','editor','bind','set','isNavigationMode'];(function(_0x290b05,_0x3a6d8e){const _0x311f81=function(_0x287acf){while(--_0x287acf){_0x290b05['push'](_0x290b05['shift']());}};_0x311f81(++_0x3a6d8e);}(_0x3a6d,0x110));const _0x311f=function(_0x290b05,_0x3a6d8e){_0x290b05=_0x290b05-0x0;let _0x311f81=_0x3a6d[_0x290b05];return _0x311f81;};import{Plugin as _0x2d8fab}from'ckeditor5/src/core';import{ButtonView as _0x1b1e83}from'ckeditor5/src/ui';import _0x59a585 from'./changesnavigationview';import _0x3d103f from'./../../revisionviewer';import _0x70fbcc from'./revisionviewerloadingoverlay';import{getTranslation as _0xc314f1}from'../../utils/common-translations';import _0x16de3a from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x2d8fab{static get[_0x311f('0x1f')](){return _0x311f('0x14');}static get[_0x311f('0xf')](){return[_0x3d103f,_0x70fbcc];}['init'](){const _0x1c112f=this[_0x311f('0x4')],_0x1d5ed3=_0x1c112f[_0x311f('0x1b')][_0x311f('0x21')](_0x3d103f),_0x32c7d8=_0x1c112f['plugins'][_0x311f('0x21')](_0x70fbcc);_0x1c112f['ui'][_0x311f('0x0')][_0x311f('0xe')](_0x311f('0x9'),_0x969529=>{const _0x30d88a=new _0x1b1e83(_0x969529);return _0x30d88a[_0x311f('0x6')]({'label':_0xc314f1(_0x969529,_0x311f('0x18')),'icon':_0x16de3a,'withText':!0x0,'tooltip':!0x0,'class':_0x311f('0xb')}),this['listenTo'](_0x30d88a,_0x311f('0x13'),()=>{_0x1c112f[_0x311f('0x1a')][_0x311f('0x21')](_0x311f('0x1d'))[_0x311f('0x10')]();}),_0x30d88a;}),_0x1c112f['ui'][_0x311f('0x0')][_0x311f('0xe')]('restoreRevision',_0x4a8a7c=>{const _0x3cd6c4=new _0x1b1e83(_0x4a8a7c);return _0x3cd6c4[_0x311f('0x6')]({'label':_0xc314f1(_0x4a8a7c,_0x311f('0xd')),'withText':!0x0,'tooltip':!0x0}),_0x3cd6c4[_0x311f('0x5')](_0x311f('0x2'))['to'](_0x1c112f['commands'][_0x311f('0x21')](_0x311f('0x12'))),this[_0x311f('0x1c')](_0x3cd6c4,_0x311f('0x13'),()=>_0x1c112f[_0x311f('0x13')](_0x311f('0x12'))),_0x3cd6c4;}),_0x1c112f['ui'][_0x311f('0x0')][_0x311f('0xe')](_0x311f('0x17'),_0x1a0e8b=>{const _0x2b6abe=new _0x59a585(_0x1a0e8b),_0x399ebc=_0x1c112f[_0x311f('0x8')]['get'](_0x311f('0xa')),_0xea4f3f=_0x1c112f[_0x311f('0x8')]['get'](_0x311f('0x1e'));return _0x2b6abe[_0x311f('0x5')](_0x311f('0x1'))['to'](_0x399ebc,'isEnabled'),_0x2b6abe[_0x311f('0x5')](_0x311f('0x16'))['to'](_0xea4f3f,_0x311f('0x2')),_0x2b6abe[_0x311f('0x5')](_0x311f('0x15'),_0x311f('0x19'),_0x311f('0x22'),_0x311f('0x7'))['to'](_0x1d5ed3),this['listenTo'](_0x2b6abe,_0x311f('0x13'),(_0x31464a,_0x3be175)=>{_0x1c112f['execute'](_0x311f('0xc')===_0x3be175?_0x311f('0x1e'):_0x311f('0xa'));}),_0x2b6abe;}),_0x32c7d8[_0x311f('0x3')](),_0x1d5ed3['on'](_0x311f('0x11'),(_0x186f24,_0x269d64,_0x387185)=>{_0x387185?_0x32c7d8[_0x311f('0x20')]():_0x32c7d8[_0x311f('0x3')]();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x167f0b,_0x4a3bc8,_0x4ff4b8){const t=_0x167f0b['t'];switch(_0x4a3bc8){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'},_0x4ff4b8);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4ff4b8);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 _0x4a3bc8;}}
|