@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231023.0 → 0.0.0-nightly-20231025.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 _0x3b0b=['saveRevision','config','add','submit','get','Save\x20current\x20revision','reset','pluginName','execute','saveButtonView','items','remove','requires','editor','focus','isOpen','view','init','buttonView','revisionHistory','bind','showRevisionViewerCallback','addMany','children','isReady','change:isOpen','Revision\x20history','RevisionTracker','isEnabled','isReadOnly','revisionName','editing','componentFactory','length','RevisionHistoryUI','plugins','panelView','set'];(function(_0x1bef90,_0x3b0b3f){const _0x212550=function(_0x2e30c7){while(--_0x2e30c7){_0x1bef90['push'](_0x1bef90['shift']());}};_0x212550(++_0x3b0b3f);}(_0x3b0b,0xd9));const _0x2125=function(_0x1bef90,_0x3b0b3f){_0x1bef90=_0x1bef90-0x0;let _0x212550=_0x3b0b[_0x1bef90];return _0x212550;};import{Plugin as _0x2d5be0,icons as _0x5b5736}from'ckeditor5/src/core';import{ListView as _0x3b5a3d,ListItemView as _0x1da244,ButtonView as _0x1fdc55,createDropdown as _0x4d5c9e}from'ckeditor5/src/ui';import _0x2f7766 from'../../revisiontracker';import _0x15da61 from'./revisionhistorysaverevisionformview';import{getTranslation as _0x2ca81a}from'../../utils/common-translations';export default class u extends _0x2d5be0{static get[_0x2125('0x12')](){return _0x2125('0x7');}static get[_0x2125('0x17')](){return[_0x2f7766];}[_0x2125('0x1c')](){const _0x3070d3=this[_0x2125('0x18')],_0x56d7f6=_0x3070d3[_0x2125('0x8')][_0x2125('0xf')](_0x2125('0x0'));_0x3070d3['ui'][_0x2125('0x5')][_0x2125('0xd')](_0x2125('0x1e'),_0x4480e6=>{const _0x3c8b52=_0x4d5c9e(_0x4480e6),_0x2f07aa=_0x3c8b52[_0x2125('0x9')][_0x2125('0x22')],_0x46d3d2=new _0x3b5a3d(_0x4480e6),_0x28125d=new _0x1da244(_0x4480e6),_0x441a7d=new _0x1fdc55(_0x4480e6),_0x4267f5=new _0x1da244(_0x4480e6),_0x5d13b7=new _0x1fdc55(_0x4480e6),_0x5cca14=new _0x15da61(_0x4480e6);function _0x2b42e1(){_0x2f07aa[_0x2125('0x6')]&&_0x2f07aa['remove'](0x0),_0x2f07aa[_0x2125('0xd')](_0x46d3d2);}function _0x55a30d(){_0x3c8b52[_0x2125('0x1a')]=!0x1,_0x3070d3[_0x2125('0x4')][_0x2125('0x1b')][_0x2125('0x19')]();}return _0x3c8b52[_0x2125('0x1f')](_0x2125('0x1'))['to'](_0x56d7f6,_0x2125('0x23'),_0x56d7f6,_0x2125('0x1'),_0x3070d3,_0x2125('0x2'),(_0x5d9710,_0xd58bbb,_0x2ca8de)=>_0x5d9710&&_0xd58bbb&&!_0x2ca8de),_0x3c8b52[_0x2125('0x1d')][_0x2125('0xa')]({'icon':_0x5b5736['history'],'label':_0x2ca81a(_0x4480e6,_0x2125('0x25')),'tooltip':!0x0}),_0x441a7d[_0x2125('0xa')]({'label':_0x2ca81a(_0x4480e6,_0x2125('0x10')),'withText':!0x0}),_0x441a7d['bind'](_0x2125('0x1'))['to'](_0x56d7f6,_0x2125('0x23'),_0x56d7f6,'isEnabled',_0x3070d3,_0x2125('0x2'),(_0x130ff2,_0x46bc88,_0x5372bf)=>_0x130ff2&&_0x46bc88&&!_0x5372bf),_0x441a7d['on'](_0x2125('0x13'),()=>function(){_0x2f07aa[_0x2125('0x6')]&&_0x2f07aa[_0x2125('0x16')](0x0),(_0x5cca14[_0x2125('0x11')](),_0x2f07aa['add'](_0x5cca14),_0x5cca14[_0x2125('0x19')]());}()),_0x5d13b7['set']({'label':_0x2ca81a(_0x4480e6,'Open\x20revision\x20history'),'withText':!0x0}),_0x5d13b7['bind'](_0x2125('0x1'))['to'](_0x56d7f6,_0x2125('0x23'),_0x3070d3,_0x2125('0x2'),(_0x3c2056,_0x3cad03)=>_0x3c2056&&!_0x3cad03),_0x5d13b7['on'](_0x2125('0x13'),()=>{_0x3070d3[_0x2125('0xc')][_0x2125('0xf')](_0x2125('0x1e'))[_0x2125('0x20')](),_0x55a30d();}),_0x28125d[_0x2125('0x22')][_0x2125('0xd')](_0x441a7d),_0x4267f5[_0x2125('0x22')][_0x2125('0xd')](_0x5d13b7),_0x46d3d2[_0x2125('0x15')][_0x2125('0x21')]([_0x28125d,_0x4267f5]),_0x3c8b52['on'](_0x2125('0x24'),()=>_0x2b42e1()),_0x5cca14[_0x2125('0x14')][_0x2125('0x1f')](_0x2125('0x1'))['to'](_0x56d7f6,_0x2125('0x23'),_0x56d7f6,_0x2125('0x1'),_0x3070d3,'isReadOnly',(_0x204f9c,_0x431f5e,_0x34782b)=>_0x204f9c&&_0x431f5e&&!_0x34782b),_0x5cca14['on'](_0x2125('0xe'),()=>(_0x3070d3['plugins'][_0x2125('0xf')](_0x2f7766)[_0x2125('0xb')]({'name':_0x5cca14[_0x2125('0x3')]}),void _0x55a30d())),_0x5cca14['on']('cancel',()=>_0x2b42e1()),_0x5cca14['render'](),_0x2b42e1(),_0x3c8b52;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x49b1=['editor','RevisionsSidebar','setName','highlightRevisions','getLaterVisibleRevision','appendChild','action','map','timePeriodViews','Restore\x20this\x20revision','add','element','diff','select','getEarlierVisibleRevision','_createRevisionActions','ready','newRevisionId','_handleRevisionSelected','restoreRevisionCallback','Name\x20this\x20revision','isVisible','_handleRevisionSetName','revisionViews','_revisionsRepository','config','revisionSelected','init','getIndex','_revisions','locale','assign','revisionHistory.viewerSidebarContainer','getRevisionsInDiff','revisionHistory.revisionActions','bind','isReady','remove','change:diff','restoreRevision','compare','requires','fieldView','pluginName','repository','_revisionViewer','length','get','nameRevision','compareAgainstSelected','string','isEnabled','defaultRevisionActions','revisionHistory','Compare\x20against\x20selected','destroy','_sidebarView','render','availableRevisionActions','getRevision'];(function(_0xdf0397,_0x49b1e8){const _0x2962e1=function(_0x394f16){while(--_0x394f16){_0xdf0397['push'](_0xdf0397['shift']());}};_0x2962e1(++_0x49b1e8);}(_0x49b1,0x9e));const _0x2962=function(_0xdf0397,_0x49b1e8){_0xdf0397=_0xdf0397-0x0;let _0x2962e1=_0x49b1[_0xdf0397];return _0x2962e1;};import{Plugin as _0x4a6535}from'ckeditor5/src/core';import _0x4edf16 from'./revisionssidebarview';import _0x11e66f from'../../revisionviewer';export default class w extends _0x4a6535{static get[_0x2962('0x5')](){return _0x2962('0x17');}static get[_0x2962('0x3')](){return[_0x11e66f];}constructor(_0x447747){super(_0x447747),this[_0x2962('0x7')]=_0x447747['plugins'][_0x2962('0x9')](_0x11e66f),this[_0x2962('0x2e')]=this[_0x2962('0x7')][_0x2962('0x6')],this[_0x2962('0x12')]=null;}[_0x2962('0x31')](){const _0x21b5f8=this[_0x2962('0x2e')][_0x2962('0x33')],_0x28c0c7=this[_0x2962('0x25')](),_0x5ca1f9=this[_0x2962('0x16')][_0x2962('0x2f')][_0x2962('0x9')](_0x2962('0x36'));this[_0x2962('0x12')]=new _0x4edf16(this[_0x2962('0x16')][_0x2962('0x34')],_0x21b5f8,_0x28c0c7),this[_0x2962('0x12')]['on'](_0x2962('0x30'),this[_0x2962('0x28')][_0x2962('0x39')](this)),this[_0x2962('0x12')]['on']('revisionSetName',this[_0x2962('0x2c')][_0x2962('0x39')](this)),this['_sidebarView'][_0x2962('0x39')]('isEnabled')['to'](this[_0x2962('0x7')]),this['_sidebarView'][_0x2962('0x1e')]['on'](_0x2962('0x20'),(_0x1e2bcc,_0x551b53)=>{_0x551b53[_0x2962('0x2d')]['on']('add',(_0x47e168,_0x469bc5)=>{_0x469bc5[_0x2962('0x39')](_0x2962('0xd'),_0x2962('0x3a'))['to'](this[_0x2962('0x7')]);});}),this[_0x2962('0x12')][_0x2962('0x13')](),this['listenTo'](this['editor']['data'],_0x2962('0x26'),this['_handleEditorDataReady'][_0x2962('0x39')](this)),this['listenTo'](this[_0x2962('0x7')],_0x2962('0x0'),this['_handleDiffChange'][_0x2962('0x39')](this)),_0x5ca1f9[_0x2962('0x1b')](this[_0x2962('0x12')][_0x2962('0x21')]);}[_0x2962('0x11')](){this[_0x2962('0x12')]['element'][_0x2962('0x3b')](),this[_0x2962('0x12')]['destroy']();}['_handleEditorDataReady'](){const _0x1d52e5=this['_revisionsRepository'][_0x2962('0x15')](0x0);if(_0x1d52e5){const _0x14d3cd=this[_0x2962('0x2e')][_0x2962('0x24')](_0x1d52e5['id']);this['_revisionViewer'][_0x2962('0x2')](_0x1d52e5,_0x14d3cd);}}[_0x2962('0x28')](_0x1e6498,_0x5315de){const _0x1d75ac=this[_0x2962('0x2e')][_0x2962('0x15')](_0x5315de['id']),_0x5dcda5=this[_0x2962('0x2e')][_0x2962('0x24')](_0x1d75ac['id']);this['_revisionViewer'][_0x2962('0x2')](_0x1d75ac,_0x5dcda5);}[_0x2962('0x2c')](_0x2337ff,_0x1b0928){this['_revisionsRepository']['getRevision'](_0x1b0928['id'])[_0x2962('0x18')](_0x1b0928['name']);}['_handleDiffChange'](_0x5f1d13,_0x5bd5d2,_0x2fce90){const _0x522a19=this[_0x2962('0x2e')][_0x2962('0x37')](_0x2fce90);_0x522a19[_0x2962('0x8')]>0x2?(this[_0x2962('0x12')][_0x2962('0x19')](_0x522a19),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView'][_0x2962('0x19')]([]),this[_0x2962('0x12')]['selectRevision'](_0x522a19[0x0]));}[_0x2962('0x25')](){const _0x235802=this[_0x2962('0x16')],_0x562d45=w[_0x2962('0x14')],_0x7224be=_0x235802['config']['get'](_0x2962('0x38'))||w[_0x2962('0xe')];if(_0x7224be[_0x2962('0x8')])return _0x7224be[_0x2962('0x1d')](_0x22e6b2=>{const _0x272d2f=_0x2962('0xc')==typeof _0x22e6b2?Object[_0x2962('0x35')]({},_0x562d45[_0x22e6b2]):_0x22e6b2;return _0x272d2f['action']=_0x272d2f[_0x2962('0x1c')][_0x2962('0x39')](this,_0x235802),_0x272d2f[_0x2962('0x2b')]&&(_0x272d2f[_0x2962('0x2b')]=_0x272d2f[_0x2962('0x2b')][_0x2962('0x39')](this,_0x235802)),_0x272d2f;});}}w[_0x2962('0x14')]={'compareAgainstSelected':{'name':_0x2962('0x10'),'action':({plugins:_0x44f566},_0x7734f5)=>{const _0x4c242e=_0x44f566[_0x2962('0x9')](_0x11e66f),_0x3c2cb4=_0x4c242e[_0x2962('0x6')];let _0xcb0862=_0x4c242e[_0x2962('0x22')][_0x2962('0x27')],_0x2bc4d3=_0x7734f5['id'];_0x3c2cb4[_0x2962('0x32')](_0xcb0862)>_0x3c2cb4[_0x2962('0x32')](_0x2bc4d3)&&([_0xcb0862,_0x2bc4d3]=[_0x2bc4d3,_0xcb0862]),_0x4c242e['compare'](_0xcb0862,_0x2bc4d3);},'isVisible':({plugins:_0x46fc0a},_0x458e7c)=>{const _0x5de9d6=_0x46fc0a[_0x2962('0x9')](_0x11e66f);return!(_0x5de9d6[_0x2962('0x6')][_0x2962('0x37')](_0x5de9d6[_0x2962('0x22')])[_0x2962('0x8')]>0x2)&&!_0x458e7c['isSelected'];}},'restoreRevision':{'name':_0x2962('0x1f'),'action':(_0x280237,{id:_0x2756ca})=>{_0x280237[_0x2962('0x2f')][_0x2962('0x9')](_0x2962('0xf'))[_0x2962('0x29')](_0x2756ca);},'isVisible':({plugins:_0x286208},_0x54cda7)=>!!_0x286208[_0x2962('0x9')](_0x11e66f)[_0x2962('0x6')][_0x2962('0x1a')](_0x54cda7['id'])},'nameRevision':{'name':_0x2962('0x2a'),'action':({plugins:_0x5419dd},{id:_0x49ef9f,revisionNameView:_0x19f749})=>{const _0x41a4a4=_0x5419dd[_0x2962('0x9')](_0x11e66f),_0x34d82c=_0x41a4a4['repository'][_0x2962('0x24')](_0x49ef9f);_0x41a4a4[_0x2962('0x2')](_0x49ef9f,_0x34d82c),_0x19f749['focus'](),_0x19f749[_0x2962('0x4')][_0x2962('0x23')]();}}},w[_0x2962('0xe')]=[_0x2962('0xb'),_0x2962('0x1'),_0x2962('0xa')];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3bf2=['ck-revision-history-sidebar__header__label','ck-revision-history-sidebar__header','content','div','span','history','setTemplate'];(function(_0x3f08c2,_0x3bf206){const _0x57136b=function(_0x2c8ab8){while(--_0x2c8ab8){_0x3f08c2['push'](_0x3f08c2['shift']());}};_0x57136b(++_0x3bf206);}(_0x3bf2,0x16d));const _0x5713=function(_0x3f08c2,_0x3bf206){_0x3f08c2=_0x3f08c2-0x0;let _0x57136b=_0x3bf2[_0x3f08c2];return _0x57136b;};import{View as _0xb99d1d,IconView as _0x53e729}from'ckeditor5/src/ui';import{getTranslation as _0x35dac7}from'../../utils/common-translations';import{icons as _0x9871e4}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rr extends _0xb99d1d{constructor(_0x52f56b){super(_0x52f56b);const _0x4365a5=new _0x53e729();_0x4365a5[_0x5713('0x1')]=_0x9871e4[_0x5713('0x4')],this[_0x5713('0x5')]({'tag':_0x5713('0x2'),'attributes':{'class':['ck','ck-reset_all',_0x5713('0x0')]},'children':[_0x4365a5,{'tag':_0x5713('0x3'),'attributes':{'class':['ck',_0x5713('0x6')]},'children':[_0x35dac7(_0x52f56b,'Revision\x20history')]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3bc7=['ck-revision-history-sidebar__time-period__label','setName','setTemplate','delegate','revisionViews','locale','_revisionActions','remove','select','ck-revision-history-sidebar__time-period','div','find','addRevision','createCollection','ck-revision-history-sidebar__time-period__revisions','span','localizedPeriodName'];(function(_0xbf2eb5,_0x3bc70d){const _0x23ccca=function(_0x3d10e6){while(--_0x3d10e6){_0xbf2eb5['push'](_0xbf2eb5['shift']());}};_0x23ccca(++_0x3bc70d);}(_0x3bc7,0x96));const _0x23cc=function(_0xbf2eb5,_0x3bc70d){_0xbf2eb5=_0xbf2eb5-0x0;let _0x23ccca=_0x3bc7[_0xbf2eb5];return _0x23ccca;};import{View as _0x397078}from'ckeditor5/src/ui';import _0xb07c50 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x4b0e33}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x397078{constructor(_0x5737f4,_0x53b687,_0x3fc907){super(_0x5737f4);const _0x4516dc=_0x4b0e33(_0x53b687,this[_0x23cc('0x8')]['uiLanguage'])[_0x23cc('0x2')];this['startDate']=_0x53b687,this[_0x23cc('0x7')]=this[_0x23cc('0x10')](),this[_0x23cc('0x9')]=_0x3fc907,this[_0x23cc('0x7')][_0x23cc('0x6')](_0x23cc('0xb'))['to'](this),this[_0x23cc('0x7')]['delegate'](_0x23cc('0x4'))['to'](this),this[_0x23cc('0x5')]({'tag':_0x23cc('0xd'),'attributes':{'class':['ck',_0x23cc('0xc')]},'children':[{'tag':_0x23cc('0x1'),'attributes':{'class':['ck',_0x23cc('0x3')]},'children':[{'text':_0x4516dc}]},{'tag':_0x23cc('0xd'),'attributes':{'class':['ck',_0x23cc('0x0')]},'children':this['revisionViews']}]});}[_0x23cc('0xf')](_0x1841a6){const _0x4c37ff=new _0xb07c50(this[_0x23cc('0x8')],_0x1841a6,this[_0x23cc('0x9')]);this[_0x23cc('0x7')]['add'](_0x4c37ff);}['removeRevision'](_0x216de9){const _0x571a8f=this[_0x23cc('0x7')][_0x23cc('0xe')](_0x681661=>_0x681661['id']===_0x216de9['id']);this['revisionViews'][_0x23cc('0xa')](_0x571a8f);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x441d=['ck-revision-history-sidebar','isEnabled','delegate','revisionViews','setName','ck-disabled','_removeRevision','revisionSelected','_revisions','map','ck-rounded-corners','set','revisionSetName','createdAt','locale','getTime','addRevision','timePeriodViews','remove','deselect','uiLanguage','_revisionActions','_addRevision','ck-revision-history-sidebar__timeline','highlightRevisions','get','selectRevision','div','removeRevision','render','some','highlight','find','createCollection','select','add','fire','startDate','unhighlight','_getTimePeriodViewByStartDate'];(function(_0x40138c,_0x441dea){const _0x56085d=function(_0x5ac518){while(--_0x5ac518){_0x40138c['push'](_0x40138c['shift']());}};_0x56085d(++_0x441dea);}(_0x441d,0x171));const _0x5608=function(_0x40138c,_0x441dea){_0x40138c=_0x40138c-0x0;let _0x56085d=_0x441d[_0x40138c];return _0x56085d;};import{View as _0x26d85a}from'ckeditor5/src/ui';import _0xb9bb27 from'./revisionssidebartimeperiodview';import _0x12f10b from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x418fc5}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x26d85a{constructor(_0x5540d2,_0x4147c9,_0x313a9f){super(_0x5540d2);const _0x296f53=this['bindTemplate'];this[_0x5608('0x8')]=this[_0x5608('0x18')](),this[_0x5608('0x8')][_0x5608('0x21')](_0x5608('0x19'))['to'](this),this[_0x5608('0x8')][_0x5608('0x21')](_0x5608('0x23'))['to'](this),this[_0x5608('0x27')]=_0x4147c9,this[_0x5608('0xc')]=_0x313a9f,this['on'](_0x5608('0x19'),(_0x4ec6c3,_0x2b8d74)=>{this[_0x5608('0x1b')](_0x5608('0x26'),_0x2b8d74);}),this['on'](_0x5608('0x23'),(_0x2ba960,_0x389254)=>{this[_0x5608('0x1b')](_0x5608('0x3'),_0x389254);}),this[_0x5608('0x2')](_0x5608('0x20'),!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset',_0x5608('0x1'),_0x5608('0x1f')]},'children':[new _0x12f10b(_0x5540d2),{'tag':_0x5608('0x12'),'attributes':{'class':['ck',_0x5608('0xe'),_0x296f53['if'](_0x5608('0x20'),_0x5608('0x24'),_0x4cabcc=>!_0x4cabcc)]},'children':this[_0x5608('0x8')]}]});}[_0x5608('0x14')](){super[_0x5608('0x14')]();for(const _0xfe6e3f of this[_0x5608('0x27')])this['_addRevision'](_0xfe6e3f);this[_0x5608('0x27')]['on'](_0x5608('0x1a'),(_0x23b83d,_0x21eba1)=>{this[_0x5608('0xd')](_0x21eba1);}),this['_revisions']['on'](_0x5608('0x9'),(_0x43fa07,_0xc8e7d4)=>{this['_removeRevision'](_0xc8e7d4);});}get['revisionViews'](){return this[_0x5608('0x8')][_0x5608('0x0')](_0x247678=>_0x247678[_0x5608('0x22')][_0x5608('0x0')](_0x1eb6a6=>_0x1eb6a6))['flat']();}[_0x5608('0x11')](_0x2c6c9f){for(const _0x336aa8 of this[_0x5608('0x22')])_0x2c6c9f&&_0x2c6c9f['id']===_0x336aa8['id']?_0x336aa8['select']():_0x336aa8[_0x5608('0xa')]();}[_0x5608('0xf')](_0x5a6bb3){for(const _0x266d35 of this[_0x5608('0x22')])_0x5a6bb3[_0x5608('0x15')](({id:_0x23e22d})=>_0x23e22d===_0x266d35['id'])?_0x266d35[_0x5608('0x16')]():_0x266d35[_0x5608('0x1d')]();}[_0x5608('0xd')](_0x10dfe0){const _0x5e045=_0x418fc5(_0x10dfe0[_0x5608('0x4')],this['locale'][_0x5608('0xb')])[_0x5608('0x1c')];let _0x361ed6=this['timePeriodViews'][_0x5608('0x10')](0x0);_0x361ed6&&_0x361ed6[_0x5608('0x1c')]['getTime']()===_0x5e045[_0x5608('0x6')]()||(_0x361ed6=new _0xb9bb27(this['locale'],_0x5e045,this[_0x5608('0xc')]),this['timePeriodViews']['add'](_0x361ed6)),_0x361ed6[_0x5608('0x7')](_0x10dfe0);}[_0x5608('0x25')](_0x48ec04){const _0x1e065c=_0x418fc5(_0x48ec04['createdAt'],this[_0x5608('0x5')][_0x5608('0xb')])[_0x5608('0x1c')];this[_0x5608('0x1e')](_0x1e065c)[_0x5608('0x13')](_0x48ec04);}[_0x5608('0x1e')](_0x52be07){return this[_0x5608('0x8')][_0x5608('0x17')](_0x5f3242=>_0x5f3242['startDate'][_0x5608('0x6')]()===_0x52be07[_0x5608('0x6')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2b40=['minus','toRelativeCalendar','toJSDate','day','monthLong','startOf','month','week','year','fromJSDate','hasSame'];(function(_0x1da8dc,_0x2b4087){const _0x594655=function(_0x44e1ce){while(--_0x44e1ce){_0x1da8dc['push'](_0x1da8dc['shift']());}};_0x594655(++_0x2b4087);}(_0x2b40,0xe0));const _0x5946=function(_0x1da8dc,_0x2b4087){_0x1da8dc=_0x1da8dc-0x0;let _0x594655=_0x2b40[_0x1da8dc];return _0x594655;};import{DateTime as _0xe03645}from'luxon';export function getDateTimePeriodInfo(_0x58f6be,_0x8d6bec){const _0x567f10=_0xe03645[_0x5946('0x5')](_0x58f6be)['setLocale'](_0x8d6bec),_0x4db6ff=_0xe03645['local'](),_0xfebbdb=_0x4db6ff[_0x5946('0x7')]({'days':0x1})[_0x5946('0x1')](_0x5946('0xa'));let _0x32c7b6,_0x3ee3d1;return _0x567f10['hasSame'](_0x4db6ff,_0x5946('0xa'))?(_0x32c7b6=_0x567f10[_0x5946('0x1')]('day')['toJSDate'](),_0x3ee3d1=_0x567f10['toRelativeCalendar']()):_0x567f10[_0x5946('0x6')](_0xfebbdb,_0x5946('0xa'))?(_0x32c7b6=_0xfebbdb['toJSDate'](),_0x3ee3d1=_0x567f10[_0x5946('0x8')]()):_0x567f10[_0x5946('0x6')](_0x4db6ff,_0x5946('0x3'))?(_0x32c7b6=_0x567f10['startOf'](_0x5946('0x3'))[_0x5946('0x9')](),_0x3ee3d1=_0x567f10['weekdayLong']||''):_0x567f10[_0x5946('0x6')](_0x4db6ff,_0x5946('0x4'))?(_0x32c7b6=_0x567f10[_0x5946('0x1')](_0x5946('0x2'))['toJSDate'](),_0x3ee3d1=_0x567f10[_0x5946('0x0')]||''):(_0x32c7b6=_0x567f10[_0x5946('0x1')]('year')['toJSDate'](),_0x3ee3d1=String(_0x567f10['year'])),{'startDate':_0x32c7b6,'localizedPeriodName':_0x3ee3d1};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4554=['focus','span','data','type','div','_model','ck-revision-change__','bindTemplate','element','add','isSuggestion','author'];(function(_0xce06d6,_0x455436){const _0x390b85=function(_0xfd2136){while(--_0xfd2136){_0xce06d6['push'](_0xce06d6['shift']());}};_0x390b85(++_0x455436);}(_0x4554,0x9a));const _0x390b=function(_0xce06d6,_0x455436){_0xce06d6=_0xce06d6-0x0;let _0x390b85=_0x4554[_0xce06d6];return _0x390b85;};import{View as _0x5ca9bf}from'ckeditor5/src/ui';import{getTranslation as _0x24094f}from'../../utils/common-translations';export default class Z extends _0x5ca9bf{constructor(_0xc0e175,_0xa78a8e){super(_0xc0e175),this[_0x390b('0x7')]=_0xa78a8e,this['changeId']=_0xa78a8e['id'];const _0x1536d5=this[_0x390b('0x9')],_0x7a444=_0x24094f(_0xc0e175,_0xa78a8e[_0x390b('0x4')][_0x390b('0x0')]?'Suggested\x20by':_0x390b('0xb')==_0xa78a8e[_0x390b('0x5')]?'Added\x20by':'Removed\x20by');this['set'](_0x390b('0x5'),_0xa78a8e[_0x390b('0x5')]),this['setTemplate']({'tag':_0x390b('0x6'),'attributes':{'class':['ck-annotation','ck-revision-change',_0x1536d5['to'](_0x390b('0x5'),_0x1c66a5=>_0x390b('0x8')+_0x1c66a5)],'tabindex':-0x1},'children':[{'tag':_0x390b('0x3'),'children':[{'tag':_0x390b('0x3'),'attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x7a444}]},{'text':'\x20'+_0xa78a8e[_0x390b('0x1')]['name']}]}]});}[_0x390b('0x2')](){this[_0x390b('0xa')]['focus']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1af5=['ck-revision-history-ui','numberOfChanges','forward','Total','setTemplate','ck-revision-history-ui__changes-navigation','ck-hidden','fire','set','isReady','NUMBER_OF_CHANGES','isForwardNavigationEnabled','X_OF_Y_CHANGES','Show\x20next\x20change','Loading...','ck-revision-history-ui__changes-navigation__label','No\x20changes','span','bindTemplate','isEnabled','backward','_isStatusLabelVisible','ck-revision-history-ui__changes-navigation__navigation','_statusText','isBackwardNavigationEnabled','execute','bind','currentChangeNumber','isNavigationMode','EDIT_X_OF_Y_REVISIONS'];(function(_0x32fa69,_0x1af59b){const _0x5a4a69=function(_0x49011c){while(--_0x49011c){_0x32fa69['push'](_0x32fa69['shift']());}};_0x5a4a69(++_0x1af59b);}(_0x1af5,0x13a));const _0x5a4a=function(_0x32fa69,_0x1af59b){_0x32fa69=_0x32fa69-0x0;let _0x5a4a69=_0x1af5[_0x32fa69];return _0x5a4a69;};import{View as _0x289989,ButtonView as _0x2e027f,ToolbarSeparatorView as _0x584103}from'ckeditor5/src/ui';import{getTranslation as _0x122a58}from'../../utils/common-translations';import _0x160f42 from'../../../theme/icons/arrow-up.svg';import _0x550cad from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x289989{constructor(_0x414a99){super(_0x414a99);const _0xf76db3=this[_0x5a4a('0x4')],_0x144f5c=new _0x2e027f(_0x414a99),_0x475cb1=new _0x2e027f(_0x414a99);this['set']('isNavigationMode',!0x1),this['set']('isReady',!0x1),this[_0x5a4a('0x18')](_0x5a4a('0xd'),0x0),this[_0x5a4a('0x18')](_0x5a4a('0x11'),0x0),this[_0x5a4a('0x18')](_0x5a4a('0x1b'),!0x1),this[_0x5a4a('0x18')](_0x5a4a('0xa'),!0x1),this[_0x5a4a('0xc')](_0x5a4a('0x7'))['to'](this,_0x5a4a('0x19'),this,'numberOfChanges',(_0x3999c3,_0x54eb39)=>_0x3999c3&&_0x54eb39>0x0),this['bind'](_0x5a4a('0x9'))['to'](this,_0x5a4a('0x19'),this,_0x5a4a('0xd'),this,_0x5a4a('0x11'),this,_0x5a4a('0xe'),(_0x210113,_0x4c20f4,_0x5ea1c8,_0x1f0f77)=>{if(!_0x210113)return _0x122a58(_0x414a99,_0x5a4a('0x0'));if(!_0x5ea1c8)return _0x122a58(_0x414a99,_0x5a4a('0x2'));const _0x47d615=_0x122a58(_0x414a99,_0x5a4a('0x1a'),_0x5ea1c8);return _0x1f0f77?_0x122a58(_0x414a99,_0x5a4a('0x1c'),[_0x4c20f4+0x1,_0x5ea1c8]):_0x47d615;}),_0x144f5c[_0x5a4a('0x18')]({'label':_0x122a58(_0x414a99,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x160f42}),_0x475cb1[_0x5a4a('0x18')]({'label':_0x122a58(_0x414a99,_0x5a4a('0x1d')),'tooltip':!0x0,'icon':_0x550cad}),_0x144f5c[_0x5a4a('0xc')](_0x5a4a('0x5'))['to'](this,'isBackwardNavigationEnabled'),_0x475cb1['bind'](_0x5a4a('0x5'))['to'](this,_0x5a4a('0x1b')),_0x144f5c['on']('execute',()=>this[_0x5a4a('0x17')](_0x5a4a('0xb'),_0x5a4a('0x6'))),_0x475cb1['on']('execute',()=>this[_0x5a4a('0x17')](_0x5a4a('0xb'),_0x5a4a('0x12'))),this[_0x5a4a('0x14')]({'tag':'div','attributes':{'class':['ck',_0x5a4a('0x10'),_0x5a4a('0x15')]},'children':[{'tag':_0x5a4a('0x3'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':[_0x5a4a('0x1'),_0xf76db3['if'](_0x5a4a('0x7'),_0x5a4a('0x16'),_0x26df3b=>!_0x26df3b)]},'children':[{'text':_0xf76db3['to'](_0x5a4a('0xe'),_0x186e46=>_0x186e46?_0x122a58(_0x414a99,_0x5a4a('0xf'))+':\x20':_0x122a58(_0x414a99,_0x5a4a('0x13'))+':\x20')}]},{'text':_0xf76db3['to'](_0x5a4a('0x9'))}]},new _0x584103(),{'tag':'div','attributes':{'class':[_0x5a4a('0x8')]},'children':[_0x144f5c,_0x475cb1]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7f8e=['document','RevisionViewerLoadingOverlay','show','editing','ck-editor__editable__loading-overlay','roots','pluginName','removeClass','change','view','addClass','hide','editor'];(function(_0x53d916,_0x7f8eaa){const _0xbc9af6=function(_0x516eff){while(--_0x516eff){_0x53d916['push'](_0x53d916['shift']());}};_0xbc9af6(++_0x7f8eaa);}(_0x7f8e,0x1c4));const _0xbc9a=function(_0x53d916,_0x7f8eaa){_0x53d916=_0x53d916-0x0;let _0xbc9af6=_0x7f8e[_0x53d916];return _0xbc9af6;};import{Plugin as _0xff23ff}from'ckeditor5/src/core';const oe=_0xbc9a('0x7');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0xff23ff{static get[_0xbc9a('0x9')](){return _0xbc9a('0x4');}[_0xbc9a('0x5')](){const _0xbcc563=this['editor'][_0xbc9a('0x6')][_0xbc9a('0xc')];_0xbcc563[_0xbc9a('0xb')](_0x318bb8=>{for(const _0x5ac4b7 of _0xbcc563[_0xbc9a('0x3')]['roots'])_0x318bb8[_0xbc9a('0x0')](oe,_0x5ac4b7);});}[_0xbc9a('0x1')](){const _0xc301d8=this[_0xbc9a('0x2')][_0xbc9a('0x6')][_0xbc9a('0xc')];_0xc301d8[_0xbc9a('0xb')](_0x14c962=>{for(const _0xd913da of _0xc301d8[_0xbc9a('0x3')][_0xbc9a('0x8')])_0x14c962[_0xbc9a('0xa')](oe,_0xd913da);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2af6=['Back\x20to\x20editing','isReady','showPreviousChange','isEnabled','show','componentFactory','isNavigationMode','Restore\x20this\x20revision','editor','change:isReady','isBackwardNavigationEnabled','execute','listenTo','bind','commands','showNextChange','add','exitToEditing','set','requires','plugins','numberOfChanges','forward','RevisionViewerUI','get','restoreRevision'];(function(_0x1b9e2b,_0x2af618){const _0x51b413=function(_0x20767d){while(--_0x20767d){_0x1b9e2b['push'](_0x1b9e2b['shift']());}};_0x51b413(++_0x2af618);}(_0x2af6,0xd8));const _0x51b4=function(_0x1b9e2b,_0x2af618){_0x1b9e2b=_0x1b9e2b-0x0;let _0x51b413=_0x2af6[_0x1b9e2b];return _0x51b413;};import{Plugin as _0x4c3df9}from'ckeditor5/src/core';import{ButtonView as _0x33557d}from'ckeditor5/src/ui';import _0x50084a from'./changesnavigationview';import _0x5d5ef6 from'./../../revisionviewer';import _0x35b2b3 from'./revisionviewerloadingoverlay';import{getTranslation as _0x3f6bb3}from'../../utils/common-translations';import _0x5d9572 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x4c3df9{static get['pluginName'](){return _0x51b4('0xf');}static get[_0x51b4('0xb')](){return[_0x5d5ef6,_0x35b2b3];}['init'](){const _0x3481eb=this[_0x51b4('0x0')],_0x361284=_0x3481eb[_0x51b4('0xc')]['get'](_0x5d5ef6),_0x1afeef=_0x3481eb['plugins']['get'](_0x35b2b3);_0x3481eb['ui'][_0x51b4('0x17')][_0x51b4('0x8')](_0x51b4('0x9'),_0x407239=>{const _0x500ee3=new _0x33557d(_0x407239);return _0x500ee3[_0x51b4('0xa')]({'label':_0x3f6bb3(_0x407239,_0x51b4('0x12')),'icon':_0x5d9572,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x500ee3,_0x51b4('0x3'),()=>{_0x3481eb['config'][_0x51b4('0x10')]('revisionHistory')['closeRevisionViewerCallback']();}),_0x500ee3;}),_0x3481eb['ui'][_0x51b4('0x17')][_0x51b4('0x8')](_0x51b4('0x11'),_0xb7db62=>{const _0xec1c1a=new _0x33557d(_0xb7db62);return _0xec1c1a['set']({'label':_0x3f6bb3(_0xb7db62,_0x51b4('0x19')),'withText':!0x0,'tooltip':!0x0}),_0xec1c1a[_0x51b4('0x5')](_0x51b4('0x15'))['to'](_0x3481eb[_0x51b4('0x6')]['get'](_0x51b4('0x11'))),this[_0x51b4('0x4')](_0xec1c1a,_0x51b4('0x3'),()=>_0x3481eb[_0x51b4('0x3')]('restoreRevision')),_0xec1c1a;}),_0x3481eb['ui'][_0x51b4('0x17')][_0x51b4('0x8')]('changesNavigation',_0x3fc566=>{const _0x1d77b0=new _0x50084a(_0x3fc566),_0x277639=_0x3481eb[_0x51b4('0x6')]['get'](_0x51b4('0x14')),_0x59c4d9=_0x3481eb[_0x51b4('0x6')][_0x51b4('0x10')](_0x51b4('0x7'));return _0x1d77b0[_0x51b4('0x5')](_0x51b4('0x2'))['to'](_0x277639,_0x51b4('0x15')),_0x1d77b0[_0x51b4('0x5')]('isForwardNavigationEnabled')['to'](_0x59c4d9,_0x51b4('0x15')),_0x1d77b0[_0x51b4('0x5')](_0x51b4('0x13'),'currentChangeNumber',_0x51b4('0xd'),_0x51b4('0x18'))['to'](_0x361284),this['listenTo'](_0x1d77b0,_0x51b4('0x3'),(_0x1c09a3,_0x366c91)=>{_0x3481eb[_0x51b4('0x3')](_0x51b4('0xe')===_0x366c91?_0x51b4('0x7'):_0x51b4('0x14'));}),_0x1d77b0;}),_0x1afeef[_0x51b4('0x16')](),_0x361284['on'](_0x51b4('0x1'),(_0x4bd206,_0x1bfeb2,_0x1fe2b7)=>{_0x1fe2b7?_0x1afeef['hide']():_0x1afeef['show']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x59675a,_0x416da4,_0x3eb3f1){const t=_0x59675a['t'];switch(_0x416da4){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'},_0x3eb3f1);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3eb3f1);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 _0x416da4;}}
|