@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230820.0 → 0.0.0-nightly-20230821.1
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 _0x2df3=['cancel','remove','Revision\x20history','bind','saveButtonView','addMany','requires','pluginName','focus','isEnabled','buttonView','config','execute','change:isOpen','get','revisionName','Save\x20current\x20revision','set','children','submit','saveRevision','panelView','RevisionHistoryUI','isReady','view','add','items','revisionHistory','isReadOnly','isOpen','componentFactory','render','plugins'];(function(_0x5361b2,_0x2df39b){const _0x4b7c15=function(_0x5206c4){while(--_0x5206c4){_0x5361b2['push'](_0x5361b2['shift']());}};_0x4b7c15(++_0x2df39b);}(_0x2df3,0x1c2));const _0x4b7c=function(_0x5361b2,_0x2df39b){_0x5361b2=_0x5361b2-0x0;let _0x4b7c15=_0x2df3[_0x5361b2];return _0x4b7c15;};import{Plugin as _0x229c64}from'ckeditor5/src/core';import{ListView as _0x3c3a0c,ListItemView as _0x372a55,ButtonView as _0x4bf57f,createDropdown as _0x10744f}from'ckeditor5/src/ui';import _0xd19844 from'../../revisiontracker';import _0x3c6655 from'./revisionhistorysaverevisionformview';import _0x8d2988 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x5ceea1}from'../../utils/common-translations';export default class u extends _0x229c64{static get[_0x4b7c('0x13')](){return _0x4b7c('0x1');}static get[_0x4b7c('0x12')](){return[_0xd19844];}['init'](){const _0x38d386=this['editor'],_0x47f845=_0x38d386[_0x4b7c('0xb')][_0x4b7c('0x1a')]('RevisionTracker');_0x38d386['ui'][_0x4b7c('0x9')]['add'](_0x4b7c('0x6'),_0x55b3ba=>{const _0x2f9785=_0x10744f(_0x55b3ba),_0x1bd7cb=_0x2f9785[_0x4b7c('0x0')]['children'],_0x592de7=new _0x3c3a0c(_0x55b3ba),_0x4b841e=new _0x372a55(_0x55b3ba),_0x43c079=new _0x4bf57f(_0x55b3ba),_0x2ff272=new _0x372a55(_0x55b3ba),_0x5404af=new _0x4bf57f(_0x55b3ba),_0x1b17a1=new _0x3c6655(_0x55b3ba);function _0x360138(){_0x1bd7cb['length']&&_0x1bd7cb['remove'](0x0),_0x1bd7cb[_0x4b7c('0x4')](_0x592de7);}function _0xc358e4(){_0x2f9785[_0x4b7c('0x8')]=!0x1,_0x38d386['editing'][_0x4b7c('0x3')]['focus']();}return _0x2f9785[_0x4b7c('0xf')](_0x4b7c('0x15'))['to'](_0x47f845,_0x4b7c('0x2'),_0x47f845,_0x4b7c('0x15'),_0x38d386,_0x4b7c('0x7'),(_0x5c950e,_0x19d8e1,_0x590b56)=>_0x5c950e&&_0x19d8e1&&!_0x590b56),_0x2f9785[_0x4b7c('0x16')][_0x4b7c('0x1d')]({'icon':_0x8d2988,'label':_0x5ceea1(_0x55b3ba,_0x4b7c('0xe')),'tooltip':!0x0}),_0x43c079[_0x4b7c('0x1d')]({'label':_0x5ceea1(_0x55b3ba,_0x4b7c('0x1c')),'withText':!0x0}),_0x43c079['bind'](_0x4b7c('0x15'))['to'](_0x47f845,'isReady',_0x47f845,_0x4b7c('0x15'),_0x38d386,_0x4b7c('0x7'),(_0x21851c,_0x1173ae,_0x376734)=>_0x21851c&&_0x1173ae&&!_0x376734),_0x43c079['on']('execute',()=>function(){_0x1bd7cb['length']&&_0x1bd7cb[_0x4b7c('0xd')](0x0),(_0x1b17a1['reset'](),_0x1bd7cb[_0x4b7c('0x4')](_0x1b17a1),_0x1b17a1[_0x4b7c('0x14')]());}()),_0x5404af[_0x4b7c('0x1d')]({'label':_0x5ceea1(_0x55b3ba,'Open\x20revision\x20history'),'withText':!0x0}),_0x5404af[_0x4b7c('0xf')](_0x4b7c('0x15'))['to'](_0x47f845,_0x4b7c('0x2'),_0x38d386,_0x4b7c('0x7'),(_0x13cb26,_0x313fb3)=>_0x13cb26&&!_0x313fb3),_0x5404af['on'](_0x4b7c('0x18'),()=>{_0x38d386[_0x4b7c('0x17')]['get']('revisionHistory')['showRevisionViewerCallback'](),_0xc358e4();}),_0x4b841e[_0x4b7c('0x1e')][_0x4b7c('0x4')](_0x43c079),_0x2ff272[_0x4b7c('0x1e')][_0x4b7c('0x4')](_0x5404af),_0x592de7[_0x4b7c('0x5')][_0x4b7c('0x11')]([_0x4b841e,_0x2ff272]),_0x2f9785['on'](_0x4b7c('0x19'),()=>_0x360138()),_0x1b17a1[_0x4b7c('0x10')][_0x4b7c('0xf')]('isEnabled')['to'](_0x47f845,_0x4b7c('0x2'),_0x47f845,_0x4b7c('0x15'),_0x38d386,'isReadOnly',(_0x338201,_0x1e93d6,_0x131cbd)=>_0x338201&&_0x1e93d6&&!_0x131cbd),_0x1b17a1['on'](_0x4b7c('0x1f'),()=>(_0x38d386['plugins'][_0x4b7c('0x1a')](_0xd19844)[_0x4b7c('0x20')]({'name':_0x1b17a1[_0x4b7c('0x1b')]}),void _0xc358e4())),_0x1b17a1['on'](_0x4b7c('0xc'),()=>_0x360138()),_0x1b17a1[_0x4b7c('0xa')](),_0x360138(),_0x2f9785;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e73=['string','_revisionViewer','_sidebarView','newRevisionId','getRevision','init','restoreRevision','select','_handleDiffChange','bind','restoreRevisionCallback','_handleRevisionSelected','diff','getEarlierVisibleRevision','repository','compare','selectRevision','render','data','name','availableRevisionActions','Name\x20this\x20revision','listenTo','RevisionsSidebar','ready','getRevisionsInDiff','locale','highlightRevisions','editor','appendChild','revisionHistory','fieldView','add','revisionHistory.viewerSidebarContainer','isVisible','isSelected','destroy','config','Compare\x20against\x20selected','nameRevision','assign','revisionHistory.revisionActions','plugins','_revisionsRepository','change:diff','defaultRevisionActions','action','focus','length','get','element','_handleRevisionSetName','getLaterVisibleRevision','pluginName','isReady','map','_revisions','timePeriodViews','_handleEditorDataReady','remove','_createRevisionActions','Restore\x20this\x20revision'];(function(_0x1bf641,_0x5e7303){const _0x3c2c5b=function(_0x3858f1){while(--_0x3858f1){_0x1bf641['push'](_0x1bf641['shift']());}};_0x3c2c5b(++_0x5e7303);}(_0x5e73,0xd9));const _0x3c2c=function(_0x1bf641,_0x5e7303){_0x1bf641=_0x1bf641-0x0;let _0x3c2c5b=_0x5e73[_0x1bf641];return _0x3c2c5b;};import{Plugin as _0x232e9c}from'ckeditor5/src/core';import _0x51530d from'./revisionssidebarview';import _0x55da18 from'../../revisionviewer';export default class w extends _0x232e9c{static get[_0x3c2c('0x16')](){return _0x3c2c('0x36');}static get['requires'](){return[_0x55da18];}constructor(_0x477294){super(_0x477294),this[_0x3c2c('0x20')]=_0x477294[_0x3c2c('0xb')][_0x3c2c('0x12')](_0x55da18),this[_0x3c2c('0xc')]=this[_0x3c2c('0x20')][_0x3c2c('0x2d')],this[_0x3c2c('0x21')]=null;}[_0x3c2c('0x24')](){const _0x542a83=this[_0x3c2c('0xc')][_0x3c2c('0x19')],_0x1811b3=this['_createRevisionActions'](),_0x30d919=this[_0x3c2c('0x3b')]['config'][_0x3c2c('0x12')](_0x3c2c('0x2'));this[_0x3c2c('0x21')]=new _0x51530d(this[_0x3c2c('0x3b')][_0x3c2c('0x39')],_0x542a83,_0x1811b3),this[_0x3c2c('0x21')]['on']('revisionSelected',this[_0x3c2c('0x2a')][_0x3c2c('0x28')](this)),this[_0x3c2c('0x21')]['on']('revisionSetName',this[_0x3c2c('0x14')][_0x3c2c('0x28')](this)),this[_0x3c2c('0x21')][_0x3c2c('0x28')]('isEnabled')['to'](this[_0x3c2c('0x20')]),this[_0x3c2c('0x21')][_0x3c2c('0x1a')]['on'](_0x3c2c('0x1'),(_0x4b3a9,_0x5b7316)=>{_0x5b7316['revisionViews']['on'](_0x3c2c('0x1'),(_0x17df5b,_0x18c3d9)=>{_0x18c3d9['bind']('isEnabled',_0x3c2c('0x17'))['to'](this[_0x3c2c('0x20')]);});}),this['_sidebarView'][_0x3c2c('0x30')](),this[_0x3c2c('0x35')](this['editor'][_0x3c2c('0x31')],_0x3c2c('0x37'),this[_0x3c2c('0x1b')]['bind'](this)),this[_0x3c2c('0x35')](this[_0x3c2c('0x20')],_0x3c2c('0xd'),this['_handleDiffChange'][_0x3c2c('0x28')](this)),_0x30d919[_0x3c2c('0x3c')](this[_0x3c2c('0x21')]['element']);}[_0x3c2c('0x5')](){this[_0x3c2c('0x21')][_0x3c2c('0x13')][_0x3c2c('0x1c')](),this['_sidebarView'][_0x3c2c('0x5')]();}[_0x3c2c('0x1b')](){const _0x1aa950=this[_0x3c2c('0xc')][_0x3c2c('0x23')](0x0);if(_0x1aa950){const _0x15bc2a=this[_0x3c2c('0xc')][_0x3c2c('0x2c')](_0x1aa950['id']);this['_revisionViewer'][_0x3c2c('0x2e')](_0x1aa950,_0x15bc2a);}}[_0x3c2c('0x2a')](_0x5dc8d7,_0x1bc4d8){const _0x3124bf=this[_0x3c2c('0xc')]['getRevision'](_0x1bc4d8['id']),_0x165acc=this[_0x3c2c('0xc')]['getEarlierVisibleRevision'](_0x3124bf['id']);this[_0x3c2c('0x20')][_0x3c2c('0x2e')](_0x3124bf,_0x165acc);}[_0x3c2c('0x14')](_0x53efa5,_0x2d8519){this[_0x3c2c('0xc')][_0x3c2c('0x23')](_0x2d8519['id'])['setName'](_0x2d8519[_0x3c2c('0x32')]);}[_0x3c2c('0x27')](_0x2269e5,_0x59464c,_0x8c2956){const _0x36a769=this[_0x3c2c('0xc')][_0x3c2c('0x38')](_0x8c2956);_0x36a769[_0x3c2c('0x11')]>0x2?(this[_0x3c2c('0x21')][_0x3c2c('0x3a')](_0x36a769),this[_0x3c2c('0x21')][_0x3c2c('0x2f')](null)):(this[_0x3c2c('0x21')][_0x3c2c('0x3a')]([]),this[_0x3c2c('0x21')]['selectRevision'](_0x36a769[0x0]));}[_0x3c2c('0x1d')](){const _0x44ebfa=this['editor'],_0x1e8ede=w[_0x3c2c('0x33')],_0x46cb82=_0x44ebfa['config'][_0x3c2c('0x12')](_0x3c2c('0xa'))||w[_0x3c2c('0xe')];if(_0x46cb82['length'])return _0x46cb82[_0x3c2c('0x18')](_0x400f03=>{const _0x1c49d3=_0x3c2c('0x1f')==typeof _0x400f03?Object[_0x3c2c('0x9')]({},_0x1e8ede[_0x400f03]):_0x400f03;return _0x1c49d3[_0x3c2c('0xf')]=_0x1c49d3[_0x3c2c('0xf')]['bind'](this,_0x44ebfa),_0x1c49d3[_0x3c2c('0x3')]&&(_0x1c49d3['isVisible']=_0x1c49d3[_0x3c2c('0x3')]['bind'](this,_0x44ebfa)),_0x1c49d3;});}}w[_0x3c2c('0x33')]={'compareAgainstSelected':{'name':_0x3c2c('0x7'),'action':({plugins:_0xe6f9fb},_0x1e1589)=>{const _0x1d759f=_0xe6f9fb[_0x3c2c('0x12')](_0x55da18),_0x1572df=_0x1d759f[_0x3c2c('0x2d')];let _0x416348=_0x1d759f[_0x3c2c('0x2b')][_0x3c2c('0x22')],_0x2f3c12=_0x1e1589['id'];_0x1572df['getIndex'](_0x416348)>_0x1572df['getIndex'](_0x2f3c12)&&([_0x416348,_0x2f3c12]=[_0x2f3c12,_0x416348]),_0x1d759f[_0x3c2c('0x2e')](_0x416348,_0x2f3c12);},'isVisible':({plugins:_0x4458a6},_0x147351)=>{const _0x119bba=_0x4458a6['get'](_0x55da18);return!(_0x119bba[_0x3c2c('0x2d')][_0x3c2c('0x38')](_0x119bba[_0x3c2c('0x2b')])['length']>0x2)&&!_0x147351[_0x3c2c('0x4')];}},'restoreRevision':{'name':_0x3c2c('0x1e'),'action':(_0xc6ab1f,{id:_0x157209})=>{_0xc6ab1f[_0x3c2c('0x6')][_0x3c2c('0x12')](_0x3c2c('0x3d'))[_0x3c2c('0x29')](_0x157209);},'isVisible':({plugins:_0x2b07dc},_0x4cb16f)=>!!_0x2b07dc[_0x3c2c('0x12')](_0x55da18)[_0x3c2c('0x2d')][_0x3c2c('0x15')](_0x4cb16f['id'])},'nameRevision':{'name':_0x3c2c('0x34'),'action':({plugins:_0x367556},{id:_0x2b1f15,revisionNameView:_0x5ab863})=>{const _0x55593a=_0x367556['get'](_0x55da18),_0xa23d59=_0x55593a['repository'][_0x3c2c('0x2c')](_0x2b1f15);_0x55593a['compare'](_0x2b1f15,_0xa23d59),_0x5ab863[_0x3c2c('0x10')](),_0x5ab863[_0x3c2c('0x0')][_0x3c2c('0x26')]();}}},w['defaultRevisionActions']=['compareAgainstSelected',_0x3c2c('0x25'),_0x3c2c('0x8')];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5dfb=['content','ck-revision-history-sidebar__header','span','ck-reset_all'];(function(_0x2b54d6,_0x5dfb96){const _0x5b0c01=function(_0x9f8031){while(--_0x9f8031){_0x2b54d6['push'](_0x2b54d6['shift']());}};_0x5b0c01(++_0x5dfb96);}(_0x5dfb,0x11a));const _0x5b0c=function(_0x2b54d6,_0x5dfb96){_0x2b54d6=_0x2b54d6-0x0;let _0x5b0c01=_0x5dfb[_0x2b54d6];return _0x5b0c01;};import{View as _0x4b5360,IconView as _0xa2f3c1}from'ckeditor5/src/ui';import{getTranslation as _0x4db964}from'../../utils/common-translations';import _0xbc5d78 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x4b5360{constructor(_0x452d27){super(_0x452d27);const _0x40d408=new _0xa2f3c1();_0x40d408[_0x5b0c('0x2')]=_0xbc5d78,this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x5b0c('0x1'),_0x5b0c('0x3')]},'children':[_0x40d408,{'tag':_0x5b0c('0x0'),'attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[_0x4db964(_0x452d27,'Revision\x20history')]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e02=['createCollection','delegate','find','revisionViews','startDate','setTemplate','addRevision','_revisionActions','ck-revision-history-sidebar__time-period__label','ck-revision-history-sidebar__time-period','add','select','locale','localizedPeriodName','div','remove','setName'];(function(_0x59a1f3,_0x5e020c){const _0x5abc4d=function(_0x3b24fd){while(--_0x3b24fd){_0x59a1f3['push'](_0x59a1f3['shift']());}};_0x5abc4d(++_0x5e020c);}(_0x5e02,0x1dc));const _0x5abc=function(_0x59a1f3,_0x5e020c){_0x59a1f3=_0x59a1f3-0x0;let _0x5abc4d=_0x5e02[_0x59a1f3];return _0x5abc4d;};import{View as _0x292fab}from'ckeditor5/src/ui';import _0x4038ae from'../revision/revisionview';import{getDateTimePeriodInfo as _0xb3700d}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x292fab{constructor(_0x34615e,_0x5867bb,_0x5da6c3){super(_0x34615e);const _0x14cd44=_0xb3700d(_0x5867bb,this[_0x5abc('0xc')]['uiLanguage'])[_0x5abc('0xd')];this[_0x5abc('0x4')]=_0x5867bb,this['revisionViews']=this[_0x5abc('0x0')](),this[_0x5abc('0x7')]=_0x5da6c3,this['revisionViews'][_0x5abc('0x1')](_0x5abc('0xb'))['to'](this),this[_0x5abc('0x3')][_0x5abc('0x1')](_0x5abc('0x10'))['to'](this),this[_0x5abc('0x5')]({'tag':_0x5abc('0xe'),'attributes':{'class':['ck',_0x5abc('0x9')]},'children':[{'tag':'span','attributes':{'class':['ck',_0x5abc('0x8')]},'children':[{'text':_0x14cd44}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this[_0x5abc('0x3')]}]});}[_0x5abc('0x6')](_0x299165){const _0x12bef7=new _0x4038ae(this[_0x5abc('0xc')],_0x299165,this[_0x5abc('0x7')]);this[_0x5abc('0x3')][_0x5abc('0xa')](_0x12bef7);}['removeRevision'](_0x353691){const _0x568421=this[_0x5abc('0x3')][_0x5abc('0x2')](_0x27a21a=>_0x27a21a['id']===_0x353691['id']);this[_0x5abc('0x3')][_0x5abc('0xf')](_0x568421);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf347=['delegate','getTime','_revisions','render','add','bindTemplate','_getTimePeriodViewByStartDate','locale','timePeriodViews','some','_removeRevision','unhighlight','map','ck-revision-history-sidebar','revisionSelected','revisionViews','revisionSetName','_addRevision','ck-revision-history-sidebar__timeline','startDate','get','highlightRevisions','uiLanguage','select','ck-disabled','setName','highlight','removeRevision','_revisionActions','remove','createdAt','set','deselect','ck-reset','isEnabled','fire','div'];(function(_0x1c0783,_0xf34794){const _0x339e39=function(_0x4ba78c){while(--_0x4ba78c){_0x1c0783['push'](_0x1c0783['shift']());}};_0x339e39(++_0xf34794);}(_0xf347,0xd9));const _0x339e=function(_0x1c0783,_0xf34794){_0x1c0783=_0x1c0783-0x0;let _0x339e39=_0xf347[_0x1c0783];return _0x339e39;};import{View as _0x14351a}from'ckeditor5/src/ui';import _0x148480 from'./revisionssidebartimeperiodview';import _0x110c92 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x1fc4a3}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x14351a{constructor(_0x56de3e,_0x39ced9,_0x15a668){super(_0x56de3e);const _0x5c11de=this[_0x339e('0xa')];this[_0x339e('0xd')]=this['createCollection'](),this[_0x339e('0xd')][_0x339e('0x5')](_0x339e('0x1c'))['to'](this),this['timePeriodViews'][_0x339e('0x5')](_0x339e('0x1e'))['to'](this),this[_0x339e('0x7')]=_0x39ced9,this[_0x339e('0x21')]=_0x15a668,this['on']('select',(_0x337e68,_0x4c0d6f)=>{this['fire'](_0x339e('0x13'),_0x4c0d6f);}),this['on'](_0x339e('0x1e'),(_0x2b98d9,_0x7caed8)=>{this[_0x339e('0x3')](_0x339e('0x15'),_0x7caed8);}),this[_0x339e('0x24')](_0x339e('0x2'),!0x1),this['setTemplate']({'tag':_0x339e('0x4'),'attributes':{'class':['ck',_0x339e('0x1'),'ck-rounded-corners',_0x339e('0x12')]},'children':[new _0x110c92(_0x56de3e),{'tag':_0x339e('0x4'),'attributes':{'class':['ck',_0x339e('0x17'),_0x5c11de['if'](_0x339e('0x2'),_0x339e('0x1d'),_0x4ba890=>!_0x4ba890)]},'children':this[_0x339e('0xd')]}]});}[_0x339e('0x8')](){super[_0x339e('0x8')]();for(const _0x159cd7 of this[_0x339e('0x7')])this[_0x339e('0x16')](_0x159cd7);this[_0x339e('0x7')]['on'](_0x339e('0x9'),(_0x5c8a9e,_0xe2a66a)=>{this['_addRevision'](_0xe2a66a);}),this[_0x339e('0x7')]['on'](_0x339e('0x22'),(_0x4695d5,_0x245cce)=>{this[_0x339e('0xf')](_0x245cce);});}get[_0x339e('0x14')](){return this[_0x339e('0xd')]['map'](_0x54f6fc=>_0x54f6fc[_0x339e('0x14')][_0x339e('0x11')](_0x1ce4d8=>_0x1ce4d8))['flat']();}['selectRevision'](_0x4f5fa5){for(const _0xe0af04 of this[_0x339e('0x14')])_0x4f5fa5&&_0x4f5fa5['id']===_0xe0af04['id']?_0xe0af04['select']():_0xe0af04[_0x339e('0x0')]();}[_0x339e('0x1a')](_0x142580){for(const _0x37c8d3 of this['revisionViews'])_0x142580[_0x339e('0xe')](({id:_0x28d31c})=>_0x28d31c===_0x37c8d3['id'])?_0x37c8d3[_0x339e('0x1f')]():_0x37c8d3[_0x339e('0x10')]();}[_0x339e('0x16')](_0x1dd888){const _0x5a8c05=_0x1fc4a3(_0x1dd888[_0x339e('0x23')],this[_0x339e('0xc')][_0x339e('0x1b')])['startDate'];let _0x29661e=this[_0x339e('0xd')][_0x339e('0x19')](0x0);_0x29661e&&_0x29661e[_0x339e('0x18')][_0x339e('0x6')]()===_0x5a8c05[_0x339e('0x6')]()||(_0x29661e=new _0x148480(this[_0x339e('0xc')],_0x5a8c05,this['_revisionActions']),this['timePeriodViews'][_0x339e('0x9')](_0x29661e)),_0x29661e['addRevision'](_0x1dd888);}[_0x339e('0xf')](_0x4d1a54){const _0x59dd4e=_0x1fc4a3(_0x4d1a54[_0x339e('0x23')],this[_0x339e('0xc')]['uiLanguage'])[_0x339e('0x18')];this[_0x339e('0xb')](_0x59dd4e)[_0x339e('0x20')](_0x4d1a54);}[_0x339e('0xb')](_0x6c7589){return this[_0x339e('0xd')]['find'](_0x1bd641=>_0x1bd641[_0x339e('0x18')][_0x339e('0x6')]()===_0x6c7589[_0x339e('0x6')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x593d=['toRelativeCalendar','monthLong','hasSame','toJSDate','startOf','year','week','local','minus','setLocale','day','weekdayLong'];(function(_0x4ef1d6,_0x593d24){const _0x2d49dc=function(_0x595759){while(--_0x595759){_0x4ef1d6['push'](_0x4ef1d6['shift']());}};_0x2d49dc(++_0x593d24);}(_0x593d,0x1af));const _0x2d49=function(_0x4ef1d6,_0x593d24){_0x4ef1d6=_0x4ef1d6-0x0;let _0x2d49dc=_0x593d[_0x4ef1d6];return _0x2d49dc;};import{DateTime as _0x122358}from'luxon';export function getDateTimePeriodInfo(_0x3a28fb,_0x34a027){const _0x25eb2d=_0x122358['fromJSDate'](_0x3a28fb)[_0x2d49('0xa')](_0x34a027),_0x2f46c8=_0x122358[_0x2d49('0x8')](),_0x3761e5=_0x2f46c8[_0x2d49('0x9')]({'days':0x1})[_0x2d49('0x5')](_0x2d49('0xb'));let _0x178c50,_0xb51f70;return _0x25eb2d[_0x2d49('0x3')](_0x2f46c8,'day')?(_0x178c50=_0x25eb2d[_0x2d49('0x5')](_0x2d49('0xb'))[_0x2d49('0x4')](),_0xb51f70=_0x25eb2d[_0x2d49('0x1')]()):_0x25eb2d[_0x2d49('0x3')](_0x3761e5,_0x2d49('0xb'))?(_0x178c50=_0x3761e5[_0x2d49('0x4')](),_0xb51f70=_0x25eb2d[_0x2d49('0x1')]()):_0x25eb2d[_0x2d49('0x3')](_0x2f46c8,_0x2d49('0x7'))?(_0x178c50=_0x25eb2d[_0x2d49('0x5')](_0x2d49('0x7'))[_0x2d49('0x4')](),_0xb51f70=_0x25eb2d[_0x2d49('0x0')]||''):_0x25eb2d[_0x2d49('0x3')](_0x2f46c8,_0x2d49('0x6'))?(_0x178c50=_0x25eb2d[_0x2d49('0x5')]('month')[_0x2d49('0x4')](),_0xb51f70=_0x25eb2d[_0x2d49('0x2')]||''):(_0x178c50=_0x25eb2d[_0x2d49('0x5')](_0x2d49('0x6'))['toJSDate'](),_0xb51f70=String(_0x25eb2d[_0x2d49('0x6')])),{'startDate':_0x178c50,'localizedPeriodName':_0xb51f70};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b32=['element','add','author','Suggested\x20by','ck-annotation','_model','type','isSuggestion','Removed\x20by','ck-revision-change__','data','focus','span','set','ck-revision-change__label','Added\x20by','changeId','div','ck-revision-change'];(function(_0x5a8cf4,_0x3b32ac){const _0x1b5695=function(_0x9f9920){while(--_0x9f9920){_0x5a8cf4['push'](_0x5a8cf4['shift']());}};_0x1b5695(++_0x3b32ac);}(_0x3b32,0x1e0));const _0x1b56=function(_0x5a8cf4,_0x3b32ac){_0x5a8cf4=_0x5a8cf4-0x0;let _0x1b5695=_0x3b32[_0x5a8cf4];return _0x1b5695;};import{View as _0x49e493}from'ckeditor5/src/ui';import{getTranslation as _0x41708a}from'../../utils/common-translations';export default class Z extends _0x49e493{constructor(_0x48e36b,_0x1592a4){super(_0x48e36b),this[_0x1b56('0x0')]=_0x1592a4,this[_0x1b56('0xb')]=_0x1592a4['id'];const _0x137c41=this['bindTemplate'],_0xb135ba=_0x41708a(_0x48e36b,_0x1592a4[_0x1b56('0x5')][_0x1b56('0x2')]?_0x1b56('0x11'):_0x1b56('0xf')==_0x1592a4[_0x1b56('0x1')]?_0x1b56('0xa'):_0x1b56('0x3'));this[_0x1b56('0x8')]('type',_0x1592a4[_0x1b56('0x1')]),this['setTemplate']({'tag':_0x1b56('0xc'),'attributes':{'class':[_0x1b56('0x12'),_0x1b56('0xd'),_0x137c41['to'](_0x1b56('0x1'),_0x1d88d8=>_0x1b56('0x4')+_0x1d88d8)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':_0x1b56('0x7'),'attributes':{'class':[_0x1b56('0x9')]},'children':[{'text':_0xb135ba}]},{'text':'\x20'+_0x1592a4[_0x1b56('0x10')]['name']}]}]});}[_0x1b56('0x6')](){this[_0x1b56('0xe')][_0x1b56('0x6')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x569e=['fire','forward','Loading...','_statusText','X_OF_Y_CHANGES','isBackwardNavigationEnabled','currentChangeNumber','backward','bind','ck-revision-history-ui__changes-navigation','EDIT_X_OF_Y_REVISIONS','set','isForwardNavigationEnabled','isNavigationMode','isEnabled','setTemplate','div','isReady','numberOfChanges','NUMBER_OF_CHANGES','_isStatusLabelVisible','span','Total','ck-revision-history-ui','ck-revision-history-ui__changes-navigation__wrapper','Show\x20next\x20change','execute','ck-revision-history-ui__changes-navigation__label'];(function(_0x4e3ec5,_0x569eae){const _0x69e100=function(_0x57dd6f){while(--_0x57dd6f){_0x4e3ec5['push'](_0x4e3ec5['shift']());}};_0x69e100(++_0x569eae);}(_0x569e,0x1ac));const _0x69e1=function(_0x4e3ec5,_0x569eae){_0x4e3ec5=_0x4e3ec5-0x0;let _0x69e100=_0x569e[_0x4e3ec5];return _0x69e100;};import{View as _0xf16475,ButtonView as _0xbddfc5,ToolbarSeparatorView as _0x7a8811}from'ckeditor5/src/ui';import{getTranslation as _0x11a9a8}from'../../utils/common-translations';import _0x590696 from'../../../theme/icons/arrow-up.svg';import _0x930b6f from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0xf16475{constructor(_0x2be29f){super(_0x2be29f);const _0x14ff9a=this['bindTemplate'],_0x59d7d8=new _0xbddfc5(_0x2be29f),_0x4c7716=new _0xbddfc5(_0x2be29f);this[_0x69e1('0x3')](_0x69e1('0x5'),!0x1),this[_0x69e1('0x3')](_0x69e1('0x9'),!0x1),this[_0x69e1('0x3')](_0x69e1('0x1a'),0x0),this[_0x69e1('0x3')]('numberOfChanges',0x0),this[_0x69e1('0x3')](_0x69e1('0x4'),!0x1),this[_0x69e1('0x3')](_0x69e1('0x19'),!0x1),this[_0x69e1('0x0')](_0x69e1('0xc'))['to'](this,'isReady',this,_0x69e1('0xa'),(_0x560552,_0xf1d50a)=>_0x560552&&_0xf1d50a>0x0),this[_0x69e1('0x0')](_0x69e1('0x17'))['to'](this,_0x69e1('0x9'),this,_0x69e1('0x1a'),this,_0x69e1('0xa'),this,_0x69e1('0x5'),(_0x4a3197,_0x35e2be,_0x47d833,_0x4acaa6)=>{if(!_0x4a3197)return _0x11a9a8(_0x2be29f,_0x69e1('0x16'));if(!_0x47d833)return _0x11a9a8(_0x2be29f,'No\x20changes');const _0x54d27a=_0x11a9a8(_0x2be29f,_0x69e1('0xb'),_0x47d833);return _0x4acaa6?_0x11a9a8(_0x2be29f,_0x69e1('0x18'),[_0x35e2be+0x1,_0x47d833]):_0x54d27a;}),_0x59d7d8['set']({'label':_0x11a9a8(_0x2be29f,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x590696}),_0x4c7716[_0x69e1('0x3')]({'label':_0x11a9a8(_0x2be29f,_0x69e1('0x11')),'tooltip':!0x0,'icon':_0x930b6f}),_0x59d7d8['bind'](_0x69e1('0x6'))['to'](this,_0x69e1('0x19')),_0x4c7716[_0x69e1('0x0')]('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x59d7d8['on']('execute',()=>this['fire'](_0x69e1('0x12'),_0x69e1('0x1b'))),_0x4c7716['on'](_0x69e1('0x12'),()=>this[_0x69e1('0x14')](_0x69e1('0x12'),_0x69e1('0x15'))),this[_0x69e1('0x7')]({'tag':_0x69e1('0x8'),'attributes':{'class':['ck',_0x69e1('0xf'),_0x69e1('0x1')]},'children':[{'tag':_0x69e1('0xd'),'attributes':{'class':[_0x69e1('0x10')]},'children':[{'tag':_0x69e1('0xd'),'attributes':{'class':[_0x69e1('0x13'),_0x14ff9a['if'](_0x69e1('0xc'),'ck-hidden',_0x459ce2=>!_0x459ce2)]},'children':[{'text':_0x14ff9a['to'](_0x69e1('0x5'),_0x3d4fda=>_0x3d4fda?_0x11a9a8(_0x2be29f,_0x69e1('0x2'))+':\x20':_0x11a9a8(_0x2be29f,_0x69e1('0xe'))+':\x20')}]},{'text':_0x14ff9a['to'](_0x69e1('0x17'))}]},new _0x7a8811(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x59d7d8,_0x4c7716]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2585=['view','editing','document','pluginName','RevisionViewerLoadingOverlay','editor','hide','change','removeClass','addClass','ck-editor__editable__loading-overlay'];(function(_0x370f7b,_0x2585d0){const _0x4f733f=function(_0x5bee9f){while(--_0x5bee9f){_0x370f7b['push'](_0x370f7b['shift']());}};_0x4f733f(++_0x2585d0);}(_0x2585,0x72));const _0x4f73=function(_0x370f7b,_0x2585d0){_0x370f7b=_0x370f7b-0x0;let _0x4f733f=_0x2585[_0x370f7b];return _0x4f733f;};import{Plugin as _0x5af0d9}from'ckeditor5/src/core';const oe=_0x4f73('0x6');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x5af0d9{static get[_0x4f73('0xa')](){return _0x4f73('0x0');}['show'](){const _0x34cacb=this[_0x4f73('0x1')][_0x4f73('0x8')][_0x4f73('0x7')];_0x34cacb['change'](_0x54ce38=>{for(const _0x53e8d7 of _0x34cacb[_0x4f73('0x9')]['roots'])_0x54ce38[_0x4f73('0x5')](oe,_0x53e8d7);});}[_0x4f73('0x2')](){const _0x1e0fe7=this['editor'][_0x4f73('0x8')][_0x4f73('0x7')];_0x1e0fe7[_0x4f73('0x3')](_0xf7518d=>{for(const _0x24915f of _0x1e0fe7[_0x4f73('0x9')]['roots'])_0xf7518d[_0x4f73('0x4')](oe,_0x24915f);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3463=['execute','add','changesNavigation','show','isForwardNavigationEnabled','hide','forward','editor','revisionHistory','pluginName','ck-revision-history-ui__back-to-editing','get','closeRevisionViewerCallback','Restore\x20this\x20revision','Back\x20to\x20editing','commands','set','numberOfChanges','plugins','isBackwardNavigationEnabled','restoreRevision','isReady','showPreviousChange','bind','listenTo','showNextChange','componentFactory','init','isEnabled','RevisionViewerUI','isNavigationMode','config'];(function(_0x599ad2,_0x346365){const _0x4689b1=function(_0x52dbe9){while(--_0x52dbe9){_0x599ad2['push'](_0x599ad2['shift']());}};_0x4689b1(++_0x346365);}(_0x3463,0x1dc));const _0x4689=function(_0x599ad2,_0x346365){_0x599ad2=_0x599ad2-0x0;let _0x4689b1=_0x3463[_0x599ad2];return _0x4689b1;};import{Plugin as _0x256df7}from'ckeditor5/src/core';import{ButtonView as _0x407c56}from'ckeditor5/src/ui';import _0x283167 from'./changesnavigationview';import _0x5a7da5 from'./../../revisionviewer';import _0x6ee674 from'./revisionviewerloadingoverlay';import{getTranslation as _0x335e69}from'../../utils/common-translations';import _0x1ad6c7 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x256df7{static get[_0x4689('0xd')](){return _0x4689('0x1');}static get['requires'](){return[_0x5a7da5,_0x6ee674];}[_0x4689('0x1f')](){const _0x3c2d95=this[_0x4689('0xb')],_0x22d03d=_0x3c2d95[_0x4689('0x16')]['get'](_0x5a7da5),_0x2aaf6b=_0x3c2d95[_0x4689('0x16')][_0x4689('0xf')](_0x6ee674);_0x3c2d95['ui'][_0x4689('0x1e')][_0x4689('0x5')]('exitToEditing',_0x769191=>{const _0x555de4=new _0x407c56(_0x769191);return _0x555de4['set']({'label':_0x335e69(_0x769191,_0x4689('0x12')),'icon':_0x1ad6c7,'withText':!0x0,'tooltip':!0x0,'class':_0x4689('0xe')}),this['listenTo'](_0x555de4,_0x4689('0x4'),()=>{_0x3c2d95[_0x4689('0x3')][_0x4689('0xf')](_0x4689('0xc'))[_0x4689('0x10')]();}),_0x555de4;}),_0x3c2d95['ui'][_0x4689('0x1e')]['add'](_0x4689('0x18'),_0x55fba3=>{const _0x28dbe9=new _0x407c56(_0x55fba3);return _0x28dbe9[_0x4689('0x14')]({'label':_0x335e69(_0x55fba3,_0x4689('0x11')),'withText':!0x0,'tooltip':!0x0}),_0x28dbe9['bind'](_0x4689('0x0'))['to'](_0x3c2d95[_0x4689('0x13')][_0x4689('0xf')](_0x4689('0x18'))),this[_0x4689('0x1c')](_0x28dbe9,_0x4689('0x4'),()=>_0x3c2d95['execute'](_0x4689('0x18'))),_0x28dbe9;}),_0x3c2d95['ui']['componentFactory'][_0x4689('0x5')](_0x4689('0x6'),_0x277a17=>{const _0x3e80bc=new _0x283167(_0x277a17),_0x562de0=_0x3c2d95['commands'][_0x4689('0xf')](_0x4689('0x1a')),_0x1db014=_0x3c2d95['commands'][_0x4689('0xf')](_0x4689('0x1d'));return _0x3e80bc[_0x4689('0x1b')](_0x4689('0x17'))['to'](_0x562de0,_0x4689('0x0')),_0x3e80bc[_0x4689('0x1b')](_0x4689('0x8'))['to'](_0x1db014,_0x4689('0x0')),_0x3e80bc['bind'](_0x4689('0x19'),'currentChangeNumber',_0x4689('0x15'),_0x4689('0x2'))['to'](_0x22d03d),this[_0x4689('0x1c')](_0x3e80bc,_0x4689('0x4'),(_0x279e2a,_0x1ebb15)=>{_0x3c2d95[_0x4689('0x4')](_0x4689('0xa')===_0x1ebb15?'showNextChange':'showPreviousChange');}),_0x3e80bc;}),_0x2aaf6b['show'](),_0x22d03d['on']('change:isReady',(_0x5c92e1,_0x4f04a6,_0x376022)=>{_0x376022?_0x2aaf6b[_0x4689('0x9')]():_0x2aaf6b[_0x4689('0x7')]();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x122d8a,_0x2b7e08,_0x17719c){const t=_0x122d8a['t'];switch(_0x2b7e08){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'},_0x17719c);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x17719c);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 _0x2b7e08;}}
|