@ckeditor/ckeditor5-revision-history 34.1.0 → 34.2.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/build/translations/es.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/lang/translations/es.po +2 -1
- package/lang/translations/fr.po +2 -1
- package/lang/translations/it.po +2 -1
- package/lang/translations/pt-br.po +2 -1
- package/package.json +7 -7
- 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 _0x43ff=['action','name','isVisible','function','map','panelPosition','Compare\x20against\x20selected','buttonView','button','set','source','locale','Restore\x20this\x20revision','stopPropagation','isEnabled','ck-revision-history-sidebar__revision__actions','class','isOpen','isActionsDropdownOpen','add','bind','model','extendTemplate','Name\x20this\x20revision','bindTemplate'];(function(_0x294fd2,_0x43ff8f){const _0x1faf48=function(_0x33e9c0){while(--_0x33e9c0){_0x294fd2['push'](_0x294fd2['shift']());}};_0x1faf48(++_0x43ff8f);}(_0x43ff,0x111));const _0x1faf=function(_0x294fd2,_0x43ff8f){_0x294fd2=_0x294fd2-0x0;let _0x1faf48=_0x43ff[_0x294fd2];return _0x1faf48;};import{Collection as _0x448c8e}from'ckeditor5/src/utils';import{Model as _0x418c89,addListToDropdown as _0x3e1506,createDropdown as _0x1a6e32}from'ckeditor5/src/ui';import{getTranslation as _0x50c2c0}from'../../utils/common-translations';import _0x5b2dc8 from'@ckeditor/ckeditor5-core/theme/icons/three-vertical-dots.svg';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x28ab80,_0x4a97f4){const _0x47c60d=_0x28ab80[_0x1faf('0x1')],_0x456ca6=_0x28ab80[_0x1faf('0xd')],_0x35b54e=_0x1a6e32(_0x456ca6);_0x35b54e[_0x1faf('0x7')]='sw';const _0x561f06=function(_0x22760c,_0x1aac6b){const _0x25f2cd=function(_0x509028,_0x58b232){const _0x41ecaf=_0x509028['locale'],_0x598e5c={'Compare\x20against\x20selected':_0x50c2c0(_0x41ecaf,_0x1faf('0x8')),'Name\x20this\x20revision':_0x50c2c0(_0x41ecaf,_0x1faf('0x0')),'Restore\x20this\x20revision':_0x50c2c0(_0x41ecaf,_0x1faf('0xe'))};return _0x58b232[_0x1faf('0x6')](_0x259e57=>{const _0x116e0b=_0x598e5c[_0x259e57[_0x1faf('0x3')]];return _0x116e0b&&_0x116e0b!==_0x259e57[_0x1faf('0x3')]&&(_0x259e57[_0x1faf('0x3')]=_0x116e0b),_0x259e57;});}(_0x22760c,_0x1aac6b),_0x5682b9=new _0x448c8e();for(const _0x38b977 of _0x25f2cd){const _0x161a45={'type':_0x1faf('0xa'),'model':new _0x418c89({'label':_0x38b977[_0x1faf('0x3')],'class':_0x38b977[_0x1faf('0x12')],'withText':!0x0,'_action':_0x38b977[_0x1faf('0x2')]})};_0x161a45[_0x1faf('0x17')][_0x1faf('0x16')](_0x1faf('0x4'))['to'](_0x22760c,'isActionsDropdownOpen',_0x17608d=>_0x1faf('0x5')!=typeof _0x38b977[_0x1faf('0x4')]||(!_0x17608d||_0x38b977['isVisible'](_0x22760c))),_0x161a45[_0x1faf('0x17')][_0x1faf('0x16')](_0x1faf('0x10'))['to'](_0x22760c,_0x1faf('0x14'),_0x17eee8=>_0x1faf('0x5')!=typeof _0x38b977['isEnabled']||(!_0x17eee8||_0x38b977['isEnabled'](_0x22760c))),_0x5682b9[_0x1faf('0x15')](_0x161a45);}return _0x5682b9;}(_0x28ab80,_0x4a97f4);return _0x28ab80[_0x1faf('0x16')](_0x1faf('0x14'))['to'](_0x35b54e,_0x1faf('0x13')),_0x35b54e[_0x1faf('0x9')][_0x1faf('0xb')]({'label':_0x50c2c0(_0x456ca6,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x5b2dc8}),_0x35b54e[_0x1faf('0x18')]({'attributes':{'class':[_0x1faf('0x11'),_0x47c60d['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x47c60d['to'](_0x2d1d07=>_0x2d1d07[_0x1faf('0xf')]())}}),_0x35b54e['on']('execute',_0x2e9179=>{_0x28ab80['isReady']&&'function'==typeof _0x2e9179['source']['_action']&&_0x2e9179[_0x1faf('0xc')]['_action'](_0x28ab80);}),_0x3e1506(_0x35b54e,_0x561f06),_0x35b54e;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1bdc=['name','push','set','0\x200\x2011\x2010','Revision\x20author','ck-revision-history-sidebar__revision-author_creator'];(function(_0x4847a7,_0x1bdcc4){const _0x1cd011=function(_0x4424a0){while(--_0x4424a0){_0x4847a7['push'](_0x4847a7['shift']());}};_0x1cd011(++_0x1bdcc4);}(_0x1bdc,0x193));const _0x1cd0=function(_0x4847a7,_0x1bdcc4){_0x4847a7=_0x4847a7-0x0;let _0x1cd011=_0x1bdc[_0x4847a7];return _0x1cd011;};import{View as _0x279763,IconView as _0x299155}from'ckeditor5/src/ui';import{getTranslation as _0x5c24ac}from'../../utils/common-translations';import _0x24e95f from'../../../theme/icons/user.svg';import'../../../theme/revision/revisionauthor.css';export default class ti extends _0x279763{constructor(_0x3146c5,_0x212af8,_0x5889b4){super(_0x3146c5);const _0x4b8f72=new _0x299155(_0x3146c5);_0x4b8f72[_0x1cd0('0x1')]({'content':_0x24e95f,'viewBox':_0x1cd0('0x2')});const _0x4d00d0=['ck','ck-revision-history-sidebar__revision-author'];_0x5889b4&&_0x4d00d0[_0x1cd0('0x0')](_0x1cd0('0x4'));const _0x504923=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':_0x5c24ac(_0x3146c5,_0x5889b4?'Revision\x20creator':_0x1cd0('0x3'))},'children':[_0x4b8f72,_0x212af8[_0x1cd0('0x5')]]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4d00d0},'children':_0x504923});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5247=['ck-revision-history-sidebar__revision-name','extendTemplate','Revision\x20name','span'];(function(_0x47cd7e,_0x52478c){var _0x3d1b1d=function(_0x188904){while(--_0x188904){_0x47cd7e['push'](_0x47cd7e['shift']());}};_0x3d1b1d(++_0x52478c);}(_0x5247,0x191));var _0x3d1b=function(_0x47cd7e,_0x52478c){_0x47cd7e=_0x47cd7e-0x0;var _0x3d1b1d=_0x5247[_0x47cd7e];return _0x3d1b1d;};import{LabeledFieldView as _0x2c5059}from'ckeditor5/src/ui';import{getTranslation as _0x4345}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class os extends _0x2c5059{constructor(_0x50a665,..._0x2e045f){super(_0x50a665,..._0x2e045f),this['set']({'label':_0x4345(_0x50a665,_0x3d1b('0x1'))}),this[_0x3d1b('0x0')]({'tag':_0x3d1b('0x2'),'attributes':{'class':[_0x3d1b('0x3')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1653=['element','isActionsDropdownOpen','length','ck-revision-history-sidebar__actions_dropdown_open','closest','isEnabled','ck-revision-history-sidebar__revision__controls-wrapper','setName','isReady','change','fieldView','unshift','set','listenTo','isSelected','select','ck-disabled','isConfirm','uiLanguage','220','ck-revision-history-sidebar__revision-wrapper','name','bind','bindTemplate','revisionActionsView','value','ck-revision-history-sidebar__revision__date','ck-reset','createdAt','ck-revision-history-sidebar__revision','render','map','unhighlight','isHighlighted','div','setTemplate','revisionNameView','_createdAtFormatted','from','ck-revision-history-sidebar__revision_selected','filter','placeholder','creator'];(function(_0x28760c,_0x165382){const _0xabcb66=function(_0x1b301f){while(--_0x1b301f){_0x28760c['push'](_0x28760c['shift']());}};_0xabcb66(++_0x165382);}(_0x1653,0x10e));const _0xabcb=function(_0x28760c,_0x165382){_0x28760c=_0x28760c-0x0;let _0xabcb66=_0x1653[_0x28760c];return _0xabcb66;};import{View as _0x4d5af6,createLabeledInputText as _0xa338c2}from'ckeditor5/src/ui';import{mix as _0x448c9d}from'ckeditor5/src/utils';import{ConfirmMixin as _0x2f1517}from'ckeditor5-collaboration/src/collaboration-core';import _0x4dcc32 from'./revisionnameview';import _0xcdb0ff from'./revisionauthorview';import{dateToPrettyFormat as _0x590f04}from'./utils';import{createActionsDropdownView as _0x5ae718}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ci extends _0x4d5af6{constructor(_0x31a77f,_0xe04423,_0x55af8f){super(_0x31a77f);const _0x5e1930=this[_0xabcb('0xb')],_0x4b0c65=function(_0x3a37ff,_0x2ca10a){const _0x16e0e7=Array[_0xabcb('0x1a')](_0x2ca10a['authors'])[_0xabcb('0x1c')](_0x48df9a=>_0x48df9a!=_0x2ca10a['creator']);return _0x2ca10a[_0xabcb('0x1e')]&&_0x16e0e7[_0xabcb('0x2a')](_0x2ca10a[_0xabcb('0x1e')]),_0x16e0e7[_0xabcb('0x13')](_0x1a82b3=>new _0xcdb0ff(_0x3a37ff,_0x1a82b3,_0x1a82b3==_0x2ca10a['creator']));}(_0x31a77f,_0xe04423);this['_revision']=_0xe04423,this['id']=_0xe04423['id'],this['bind']('name',_0xabcb('0x10'))['to'](_0xe04423),this['set'](_0xabcb('0x2'),!0x1),this[_0xabcb('0x0')](_0xabcb('0x15'),!0x1),this['set'](_0xabcb('0x20'),!0x1),this['set'](_0xabcb('0x27'),!0x1),this[_0xabcb('0xa')](_0xabcb('0x19'))['to'](this,_0xabcb('0x10'),_0x148b7c=>_0x148b7c?_0x590f04(_0x31a77f[_0xabcb('0x6')],_0x148b7c):null),this['set']('isEnabled',!0x1),this['revisionNameView']=new _0x4dcc32(_0x31a77f,_0xa338c2),this[_0xabcb('0x18')][_0xabcb('0x29')]['extendTemplate']({'attributes':{'maxlength':_0xabcb('0x7')}}),this['revisionNameView']['fieldView'][_0xabcb('0xa')](_0xabcb('0xd'),_0xabcb('0x1d'))['to'](this,_0xabcb('0x9'),'_createdAtFormatted'),this[_0xabcb('0x18')]['bind'](_0xabcb('0x24'))['to'](this,_0xabcb('0x2'),this,'isEnabled',(_0x57b082,_0x22b41a)=>_0x57b082&&_0x22b41a),this[_0xabcb('0xc')]=_0x55af8f&&_0x55af8f[_0xabcb('0x21')]?_0x5ae718(this,_0x55af8f):'',this[_0xabcb('0xc')]['bind'](_0xabcb('0x24'))['to'](this),this[_0xabcb('0x17')]({'tag':_0xabcb('0x16'),'attributes':{'class':['ck',_0xabcb('0xf'),_0xabcb('0x8'),_0x5e1930['if'](_0xabcb('0x5'),'ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck',_0xabcb('0xf'),_0xabcb('0x11'),_0x5e1930['if'](_0xabcb('0x24'),_0xabcb('0x4'),_0x451226=>!_0x451226),_0x5e1930['if'](_0xabcb('0x2'),_0xabcb('0x1b')),_0x5e1930['if'](_0xabcb('0x15'),'ck-revision-history-sidebar__revision_highlighted'),_0x5e1930['if'](_0xabcb('0x20'),_0xabcb('0x22'))]},'children':[this['revisionNameView'],{'tag':'span','attributes':{'class':['ck',_0xabcb('0xe')]},'children':[{'text':_0x5e1930['to']('_createdAtFormatted')}]},{'tag':'div','attributes':{'class':['ck',_0xabcb('0x25')]},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x4b0c65}]},this[_0xabcb('0xc')]],'on':{'click':_0x5e1930['to'](_0x36ab9e=>{_0x36ab9e['srcElement'][_0xabcb('0x23')]('.ck-thread__remove-confirm')||this[_0xabcb('0x27')]&&this[_0xabcb('0x24')]&&this['fire'](_0xabcb('0x3'),{'id':this['id']});})}}]});}[_0xabcb('0x12')](){super[_0xabcb('0x12')]();const _0x3e6da2=this['revisionNameView']['fieldView'][_0xabcb('0x1f')];this[_0xabcb('0x1')](_0x3e6da2,_0xabcb('0x28'),()=>{this['fire'](_0xabcb('0x26'),{'id':this['id'],'name':_0x3e6da2[_0xabcb('0xd')]});});}[_0xabcb('0x3')](){this[_0xabcb('0x2')]=!0x0;}['deselect'](){this[_0xabcb('0x2')]=!0x1;}['highlight'](){this[_0xabcb('0x15')]=!0x0;}[_0xabcb('0x14')](){this['isHighlighted']=!0x1;}}_0x448c9d(ci,_0x2f1517);
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ca1=['span','set','ck-revision-history-sidebar__subrevision-collapser__inner','false','toggle','setTemplate','true','ck-revision-history-sidebar__subrevision-collapser','_isCollapsed','isVisible','click','ck-revision-history-sidebar__subrevision-collapser_collapsed','ck-hidden','bindTemplate'];(function(_0x5dea1f,_0x1ca1c8){const _0x584136=function(_0x2c2cf0){while(--_0x2c2cf0){_0x5dea1f['push'](_0x5dea1f['shift']());}};_0x584136(++_0x1ca1c8);}(_0x1ca1,0x1ee));const _0x5841=function(_0x5dea1f,_0x1ca1c8){_0x5dea1f=_0x5dea1f-0x0;let _0x584136=_0x1ca1[_0x5dea1f];return _0x584136;};import{View as _0x1f55e0}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class ls extends _0x1f55e0{constructor(_0x342d67){super(_0x342d67);const _0x3d7f50=this[_0x5841('0x9')];this[_0x5841('0xb')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x5841('0x1')]({'tag':'span','attributes':{'class':['ck',_0x5841('0x3'),_0x3d7f50['if'](_0x5841('0x5'),_0x5841('0x8'),_0x78cabc=>!_0x78cabc),_0x3d7f50['if'](_0x5841('0x4'),_0x5841('0x7'))],'role':'button','aria-pressed':_0x3d7f50['to']('_isCollapsed',_0x77958c=>_0x77958c?_0x5841('0xd'):_0x5841('0x2'))},'children':[{'tag':_0x5841('0xa'),'attributes':{'class':['ck',_0x5841('0xc')]}}],'on':{'click':_0x3d7f50['to'](_0x5841('0x6'))}});}[_0x5841('0x0')](){this[_0x5841('0x4')]=!this['_isCollapsed'];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4819=['fire','select','_createdAtFormatted','createdAt','ck-revision-history-sidebar__revision__date','uiLanguage','ck-reset','set','isSelected','_parentRevisionId','ck-revision-history-sidebar__revision_selected','author','ck-revision-history-sidebar__subrevision','ck-revision-history-sidebar__revision-authors','bind'];(function(_0x31075d,_0x48191b){const _0x579b58=function(_0xf4bc8){while(--_0xf4bc8){_0x31075d['push'](_0x31075d['shift']());}};_0x579b58(++_0x48191b);}(_0x4819,0x132));const _0x579b=function(_0x31075d,_0x48191b){_0x31075d=_0x31075d-0x0;let _0x579b58=_0x4819[_0x31075d];return _0x579b58;};import{View as _0x4958b6}from'ckeditor5/src/ui';import _0x2c62cf from'./revisionauthorview';import{dateToPrettyFormat as _0x2f7c11}from'./utils';import'../../../theme/revision/subrevision.css';export default class lt extends _0x4958b6{constructor(_0x56a990,_0x509ffb,_0x24f152){super(_0x56a990);const _0x4b2acd=this['bindTemplate'];this['id']=_0x509ffb['id'],this['bind'](_0x579b('0xc'))['to'](_0x509ffb),this[_0x579b('0x1')](_0x579b('0x2'),!0x1),this[_0x579b('0x8')](_0x579b('0xb'))['to'](this,_0x579b('0xc'),_0x2b533f=>_0x2b533f?_0x2f7c11(_0x56a990[_0x579b('0xe')],_0x2b533f):null),this['_parentRevisionId']=_0x24f152,this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x579b('0x0'),'ck-revision-history-sidebar__revision',_0x579b('0x6'),_0x4b2acd['if']('isSelected',_0x579b('0x4'))]},'children':[{'tag':'span','attributes':{'class':['ck',_0x579b('0xd')]},'children':[{'text':_0x4b2acd['to'](_0x579b('0xb'))}]},{'tag':'ul','attributes':{'class':['ck',_0x579b('0x7')]},'children':[new _0x2c62cf(_0x56a990,_0x509ffb[_0x579b('0x5')],!0x0)]}],'on':{'click':_0x4b2acd['to'](this[_0x579b('0xa')][_0x579b('0x8')](this))}});}[_0x579b('0xa')](){this[_0x579b('0x2')]=!0x0,this[_0x579b('0x9')](_0x579b('0xa'),{'parentId':this[_0x579b('0x3')]});}['deselect'](){this[_0x579b('0x2')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1fa1=['long','numeric'];(function(_0x1c02fb,_0x1fa1fa){var _0x3243a8=function(_0x9efad0){while(--_0x9efad0){_0x1c02fb['push'](_0x1c02fb['shift']());}};_0x3243a8(++_0x1fa1fa);}(_0x1fa1,0xd9));var _0x3243=function(_0x1c02fb,_0x1fa1fa){_0x1c02fb=_0x1c02fb-0x0;var _0x3243a8=_0x1fa1[_0x1c02fb];return _0x3243a8;};export function dateToPrettyFormat(_0x3c1dde,_0x448070){return _0x448070['toLocaleDateString'](_0x3c1dde,{'month':_0x3243('0x1'),'day':_0x3243('0x0')})+',\x20'+_0x448070['toLocaleTimeString'](_0x3c1dde,{'hour':'numeric','minute':_0x3243('0x0')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xd8f6=['execute','reset','ck-revision-history-save-revision-form','shift\x20+\x20tab','setTemplate','selectstart','_focusables','submit','_createRevisionNameInput','revisionNameInputValue','focus','keystrokes','revisionName','focusFirst','arrowright','set','Cancel','form','extendTemplate','type','forEach','input','locale','stopPropagation','ck-responsive-form','value','listenTo','delegate','cancelButtonView','arrowleft','fieldView','focusTracker','cancel','add','arrowdown','element','saveButtonView','_focusCycler','high','render','tab','revisionNameInputView','ck-button-cancel','_createButton'];(function(_0x350f72,_0xd8f64d){const _0x213a79=function(_0x3185d0){while(--_0x3185d0){_0x350f72['push'](_0x350f72['shift']());}};_0x213a79(++_0xd8f64d);}(_0xd8f6,0x143));const _0x213a=function(_0x350f72,_0xd8f64d){_0x350f72=_0x350f72-0x0;let _0x213a79=_0xd8f6[_0x350f72];return _0x213a79;};import{ButtonView as _0x20c589,FocusCycler as _0x2de2b1,LabeledFieldView as _0x1a07f5,View as _0x54a7fc,ViewCollection as _0x391521,createLabeledInputText as _0x25f6d2,injectCssTransitionDisabler as _0x270e50,submitHandler as _0x4a7343}from'ckeditor5/src/ui';import{FocusTracker as _0x36f052,KeystrokeHandler as _0x3d18ab}from'ckeditor5/src/utils';import{getTranslation as _0x162478}from'../../utils/common-translations';import _0x4b06c0 from'@ckeditor/ckeditor5-core/theme/icons/check.svg';import _0x1dad8b from'@ckeditor/ckeditor5-core/theme/icons/cancel.svg';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class xt extends _0x54a7fc{constructor(_0x5e37a5){super(_0x5e37a5),this[_0x213a('0x10')]=new _0x36f052(),this['keystrokes']=new _0x3d18ab(),this[_0x213a('0x0')](_0x213a('0x26'),''),this[_0x213a('0x1a')]=this[_0x213a('0x25')](),this[_0x213a('0x15')]=this[_0x213a('0x1c')](_0x162478(_0x5e37a5,'Save'),_0x4b06c0,'ck-button-save'),this['saveButtonView'][_0x213a('0x4')]=_0x213a('0x24'),this[_0x213a('0xd')]=this[_0x213a('0x1c')](_0x162478(_0x5e37a5,_0x213a('0x1')),_0x1dad8b,_0x213a('0x1b'),_0x213a('0x11')),this[_0x213a('0x23')]=new _0x391521(),this[_0x213a('0x16')]=new _0x2de2b1({'focusables':this[_0x213a('0x23')],'focusTracker':this['focusTracker'],'keystrokeHandler':this[_0x213a('0x28')],'actions':{'focusPrevious':_0x213a('0x20'),'focusNext':_0x213a('0x19')}}),this[_0x213a('0x21')]({'tag':_0x213a('0x2'),'attributes':{'class':['ck',_0x213a('0x1f'),_0x213a('0x9')],'tabindex':'-1'},'children':[this[_0x213a('0x1a')],this[_0x213a('0x15')],this['cancelButtonView']]}),_0x270e50(this);}[_0x213a('0x18')](){super[_0x213a('0x18')](),_0x4a7343({'view':this}),([this['revisionNameInputView'],this[_0x213a('0x15')],this[_0x213a('0xd')]][_0x213a('0x5')](_0x5b0c05=>{this['_focusables'][_0x213a('0x12')](_0x5b0c05),this[_0x213a('0x10')][_0x213a('0x12')](_0x5b0c05[_0x213a('0x14')]);}),this[_0x213a('0x28')][_0x213a('0xb')](this['element']));const _0x5b7a09=_0x15e645=>_0x15e645['stopPropagation']();this['keystrokes'][_0x213a('0x0')](_0x213a('0x2b'),_0x5b7a09),this[_0x213a('0x28')][_0x213a('0x0')](_0x213a('0xe'),_0x5b7a09),this[_0x213a('0x28')][_0x213a('0x0')]('arrowup',_0x5b7a09),this[_0x213a('0x28')][_0x213a('0x0')](_0x213a('0x13'),_0x5b7a09),this[_0x213a('0xb')](this[_0x213a('0x1a')][_0x213a('0x14')],_0x213a('0x22'),(_0x51c689,_0x392633)=>{_0x392633[_0x213a('0x8')]();},{'priority':_0x213a('0x17')});}[_0x213a('0x27')](){this[_0x213a('0x16')][_0x213a('0x2a')]();}get['revisionName'](){return this[_0x213a('0x1a')][_0x213a('0xf')][_0x213a('0x14')][_0x213a('0xa')]['trim']();}set[_0x213a('0x29')](_0x24d2e6){this['revisionNameInputView'][_0x213a('0xf')][_0x213a('0x14')][_0x213a('0xa')]=_0x24d2e6['trim']();}[_0x213a('0x1e')](){this[_0x213a('0x1a')][_0x213a('0xf')]['element'][_0x213a('0xa')]='';}[_0x213a('0x25')](){const _0x96d215=new _0x1a07f5(this['locale'],_0x25f6d2),_0x4b6326=_0x96d215[_0x213a('0xf')];return _0x4b6326[_0x213a('0x3')]({'attributes':{'maxlength':'220'}}),_0x96d215['label']=_0x162478(this[_0x213a('0x7')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x4b6326['on'](_0x213a('0x6'),()=>{this[_0x213a('0x26')]=_0x4b6326[_0x213a('0x14')]['value']['trim']();}),_0x96d215;}['_createButton'](_0xd6da05,_0x2bc5b4,_0x32dc77,_0x206c07){const _0x484f7b=new _0x20c589(this[_0x213a('0x7')]);return _0x484f7b[_0x213a('0x0')]({'label':_0xd6da05,'icon':_0x2bc5b4,'tooltip':!0x0}),_0x484f7b[_0x213a('0x3')]({'attributes':{'class':_0x32dc77}}),_0x206c07&&_0x484f7b[_0x213a('0xc')](_0x213a('0x1d'))['to'](this,_0x206c07),_0x484f7b;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x383c=['change:isOpen','isEnabled','set','saveButtonView','Revision\x20history','RevisionTracker','plugins','init','add','requires','length','children','isOpen','revisionName','focus','isReady','bind','panelView','remove','execute','isReadOnly','get','revisionHistory','config','submit','componentFactory','cancel','Open\x20revision\x20history','RevisionHistoryUI','pluginName','reset','showRevisionViewerCallback'];(function(_0x4d8ba3,_0x383c92){const _0x12fec4=function(_0x2de07d){while(--_0x2de07d){_0x4d8ba3['push'](_0x4d8ba3['shift']());}};_0x12fec4(++_0x383c92);}(_0x383c,0x1aa));const _0x12fe=function(_0x4d8ba3,_0x383c92){_0x4d8ba3=_0x4d8ba3-0x0;let _0x12fec4=_0x383c[_0x4d8ba3];return _0x12fec4;};import{Plugin as _0x1a3240}from'ckeditor5/src/core';import{ListView as _0x2ef004,ListItemView as _0x28aa03,ButtonView as _0x1911c9,createDropdown as _0x3c1042}from'ckeditor5/src/ui';import _0xf09417 from'../../revisiontracker';import _0x3504e0 from'./revisionhistorysaverevisionformview';import _0x3cd290 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x2950ec}from'../../utils/common-translations';export default class y extends _0x1a3240{static get[_0x12fe('0x13')](){return _0x12fe('0x12');}static get[_0x12fe('0x1f')](){return[_0xf09417];}[_0x12fe('0x1d')](){const _0x979b53=this['editor'],_0x36f399=_0x979b53[_0x12fe('0x1c')][_0x12fe('0xb')](_0x12fe('0x1b'));_0x979b53['ui'][_0x12fe('0xf')][_0x12fe('0x1e')](_0x12fe('0xc'),_0x4ada74=>{const _0xbe0f7d=_0x3c1042(_0x4ada74),_0x9965d=_0xbe0f7d[_0x12fe('0x7')][_0x12fe('0x1')],_0x2db05c=new _0x2ef004(_0x4ada74),_0x6e4a12=new _0x28aa03(_0x4ada74),_0x396adb=new _0x1911c9(_0x4ada74),_0x316ee9=new _0x28aa03(_0x4ada74),_0x35cd02=new _0x1911c9(_0x4ada74),_0x173194=new _0x3504e0(_0x4ada74);function _0x5cfbfa(){_0x9965d[_0x12fe('0x0')]&&_0x9965d[_0x12fe('0x8')](0x0),_0x9965d[_0x12fe('0x1e')](_0x2db05c);}function _0x484680(){_0xbe0f7d[_0x12fe('0x2')]=!0x1,_0x979b53['editing']['view'][_0x12fe('0x4')]();}return _0xbe0f7d[_0x12fe('0x6')](_0x12fe('0x17'))['to'](_0x36f399,_0x12fe('0x5'),_0x36f399,_0x12fe('0x17'),_0x979b53,_0x12fe('0xa'),(_0x166e5a,_0x18aaf0,_0x179290)=>_0x166e5a&&_0x18aaf0&&!_0x179290),_0xbe0f7d['buttonView']['set']({'icon':_0x3cd290,'label':_0x2950ec(_0x4ada74,_0x12fe('0x1a')),'tooltip':!0x0}),_0x396adb[_0x12fe('0x18')]({'label':_0x2950ec(_0x4ada74,'Save\x20current\x20revision'),'withText':!0x0}),_0x396adb[_0x12fe('0x6')](_0x12fe('0x17'))['to'](_0x36f399,_0x12fe('0x5'),_0x36f399,_0x12fe('0x17'),_0x979b53,_0x12fe('0xa'),(_0x1afe2e,_0x443dc1,_0x54c9f7)=>_0x1afe2e&&_0x443dc1&&!_0x54c9f7),_0x396adb['on'](_0x12fe('0x9'),()=>function(){_0x9965d['length']&&_0x9965d[_0x12fe('0x8')](0x0),(_0x173194[_0x12fe('0x14')](),_0x9965d[_0x12fe('0x1e')](_0x173194),_0x173194['focus']());}()),_0x35cd02[_0x12fe('0x18')]({'label':_0x2950ec(_0x4ada74,_0x12fe('0x11')),'withText':!0x0}),_0x35cd02['bind']('isEnabled')['to'](_0x36f399,_0x12fe('0x5'),_0x979b53,_0x12fe('0xa'),(_0x385dbc,_0x4aade2)=>_0x385dbc&&!_0x4aade2),_0x35cd02['on']('execute',()=>{_0x979b53[_0x12fe('0xd')][_0x12fe('0xb')]('revisionHistory')[_0x12fe('0x15')](),_0x484680();}),_0x6e4a12[_0x12fe('0x1')]['add'](_0x396adb),_0x316ee9[_0x12fe('0x1')]['add'](_0x35cd02),_0x2db05c['items']['addMany']([_0x6e4a12,_0x316ee9]),_0xbe0f7d['on'](_0x12fe('0x16'),()=>_0x5cfbfa()),_0x173194[_0x12fe('0x19')]['bind'](_0x12fe('0x17'))['to'](_0x36f399,'isReady',_0x36f399,_0x12fe('0x17'),_0x979b53,_0x12fe('0xa'),(_0x3b5c43,_0x17291f,_0x9b6168)=>_0x3b5c43&&_0x17291f&&!_0x9b6168),_0x173194['on'](_0x12fe('0xe'),()=>(_0x979b53[_0x12fe('0x1c')][_0x12fe('0xb')](_0xf09417)['saveRevision']({'name':_0x173194[_0x12fe('0x3')]}),void _0x484680())),_0x173194['on'](_0x12fe('0x10'),()=>_0x5cfbfa()),_0x173194['render'](),_0x5cfbfa(),_0xbe0f7d;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3189=['_revisionViewer','ready','fieldView','compareAgainstSelected','select','isReady','_handleEditorDataReady','selectRevision','pluginName','change:diff','get','name','length','compare','map','newRevisionId','diff','timePeriodViews','revisionHistory.revisionActions','revisionSetName','getEarlierVisibleRevision','getRevision','string','isEnabled','render','listenTo','_sidebarView','remove','focus','restoreRevision','highlightRevisions','setName','getRevisionsInDiff','locale','element','bind','data','_handleRevisionSelected','action','add','isVisible','repository','availableRevisionActions','RevisionsSidebar','init','isSelected','_handleRevisionSetName','editor','destroy','appendChild','config','requires','revisionHistory.viewerSidebarContainer','_createRevisionActions','getIndex','defaultRevisionActions','Restore\x20this\x20revision','_revisions','_handleDiffChange','_revisionsRepository'];(function(_0x309302,_0x3189cc){const _0x189b86=function(_0x1a05a4){while(--_0x1a05a4){_0x309302['push'](_0x309302['shift']());}};_0x189b86(++_0x3189cc);}(_0x3189,0x130));const _0x189b=function(_0x309302,_0x3189cc){_0x309302=_0x309302-0x0;let _0x189b86=_0x3189[_0x309302];return _0x189b86;};import{Plugin as _0x22934e}from'ckeditor5/src/core';import _0x485c36 from'./revisionssidebarview';import _0x581f08 from'../../revisionviewer';export default class w extends _0x22934e{static get[_0x189b('0x4')](){return _0x189b('0x27');}static get[_0x189b('0x2f')](){return[_0x581f08];}constructor(_0xf9f6f6){super(_0xf9f6f6),this[_0x189b('0x38')]=_0xf9f6f6['plugins'][_0x189b('0x6')](_0x581f08),this[_0x189b('0x37')]=this[_0x189b('0x38')][_0x189b('0x25')],this[_0x189b('0x16')]=null;}[_0x189b('0x28')](){const _0x59953a=this[_0x189b('0x37')][_0x189b('0x35')],_0x25913a=this[_0x189b('0x31')](),_0xecad9b=this[_0x189b('0x2b')]['config']['get'](_0x189b('0x30'));this[_0x189b('0x16')]=new _0x485c36(this[_0x189b('0x2b')][_0x189b('0x1d')],_0x59953a,_0x25913a),this['_sidebarView']['on']('revisionSelected',this[_0x189b('0x21')]['bind'](this)),this[_0x189b('0x16')]['on'](_0x189b('0xf'),this[_0x189b('0x2a')][_0x189b('0x1f')](this)),this[_0x189b('0x16')][_0x189b('0x1f')](_0x189b('0x13'))['to'](this[_0x189b('0x38')]),this[_0x189b('0x16')][_0x189b('0xd')]['on'](_0x189b('0x23'),(_0x2813bc,_0x104fc2)=>{_0x104fc2['revisionViews']['on'](_0x189b('0x23'),(_0x2be25c,_0x225a1e)=>{_0x225a1e[_0x189b('0x1f')]('isEnabled',_0x189b('0x1'))['to'](this['_revisionViewer']);});}),this[_0x189b('0x16')][_0x189b('0x14')](),this[_0x189b('0x15')](this[_0x189b('0x2b')][_0x189b('0x20')],_0x189b('0x39'),this[_0x189b('0x2')][_0x189b('0x1f')](this)),this[_0x189b('0x15')](this[_0x189b('0x38')],_0x189b('0x5'),this[_0x189b('0x36')][_0x189b('0x1f')](this)),_0xecad9b[_0x189b('0x2d')](this[_0x189b('0x16')][_0x189b('0x1e')]);}['destroy'](){this[_0x189b('0x16')][_0x189b('0x1e')][_0x189b('0x17')](),this[_0x189b('0x16')][_0x189b('0x2c')]();}[_0x189b('0x2')](){const _0x251891=this[_0x189b('0x37')][_0x189b('0x11')](0x0);if(_0x251891){const _0x527d5c=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x251891['id']);this['_revisionViewer'][_0x189b('0x9')](_0x251891,_0x527d5c);}}[_0x189b('0x21')](_0x506aad,_0x593a4f){const _0x1b885c=this[_0x189b('0x37')][_0x189b('0x11')](_0x593a4f['id']),_0x280855=this[_0x189b('0x37')][_0x189b('0x10')](_0x1b885c['id']);this[_0x189b('0x38')][_0x189b('0x9')](_0x1b885c,_0x280855);}[_0x189b('0x2a')](_0xa5dfff,_0x406d41){this[_0x189b('0x37')][_0x189b('0x11')](_0x406d41['id'])[_0x189b('0x1b')](_0x406d41[_0x189b('0x7')]);}[_0x189b('0x36')](_0x10297,_0x2b8def,_0x1e33c4){const _0x2abafb=this['_revisionsRepository'][_0x189b('0x1c')](_0x1e33c4);_0x2abafb[_0x189b('0x8')]>0x2?(this[_0x189b('0x16')][_0x189b('0x1a')](_0x2abafb),this[_0x189b('0x16')][_0x189b('0x3')](null)):(this[_0x189b('0x16')][_0x189b('0x1a')]([]),this[_0x189b('0x16')][_0x189b('0x3')](_0x2abafb[0x0]));}[_0x189b('0x31')](){const _0x107fc4=this[_0x189b('0x2b')],_0x573b59=w[_0x189b('0x26')],_0x370013=_0x107fc4[_0x189b('0x2e')]['get'](_0x189b('0xe'))||w[_0x189b('0x33')];if(_0x370013[_0x189b('0x8')])return _0x370013[_0x189b('0xa')](_0x58cc6a=>{const _0x5713b7=_0x189b('0x12')==typeof _0x58cc6a?Object['assign']({},_0x573b59[_0x58cc6a]):_0x58cc6a;return _0x5713b7[_0x189b('0x22')]=_0x5713b7[_0x189b('0x22')][_0x189b('0x1f')](this,_0x107fc4),_0x5713b7[_0x189b('0x24')]&&(_0x5713b7['isVisible']=_0x5713b7[_0x189b('0x24')][_0x189b('0x1f')](this,_0x107fc4)),_0x5713b7;});}}w[_0x189b('0x26')]={'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x6c02cc},_0xbd039c)=>{const _0x2d1105=_0x6c02cc['get'](_0x581f08),_0x448fe4=_0x2d1105[_0x189b('0x25')];let _0x3cf5bc=_0x2d1105[_0x189b('0xc')][_0x189b('0xb')],_0x57b1a2=_0xbd039c['id'];_0x448fe4['getIndex'](_0x3cf5bc)>_0x448fe4[_0x189b('0x32')](_0x57b1a2)&&([_0x3cf5bc,_0x57b1a2]=[_0x57b1a2,_0x3cf5bc]),_0x2d1105[_0x189b('0x9')](_0x3cf5bc,_0x57b1a2);},'isVisible':({plugins:_0x5d22e1},_0x54609d)=>{const _0x27e539=_0x5d22e1[_0x189b('0x6')](_0x581f08);return!(_0x27e539[_0x189b('0x25')]['getRevisionsInDiff'](_0x27e539[_0x189b('0xc')])[_0x189b('0x8')]>0x2)&&!_0x54609d[_0x189b('0x29')];}},'restoreRevision':{'name':_0x189b('0x34'),'action':(_0x4207f8,{id:_0x123e10})=>{_0x4207f8['config'][_0x189b('0x6')]('revisionHistory')['restoreRevisionCallback'](_0x123e10);},'isVisible':({plugins:_0x365ce7},_0x4bb1ba)=>!!_0x365ce7[_0x189b('0x6')](_0x581f08)[_0x189b('0x25')]['getLaterVisibleRevision'](_0x4bb1ba['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x3c8094},{id:_0x573849,revisionNameView:_0x336fc4})=>{const _0xf70879=_0x3c8094['get'](_0x581f08),_0x42aa36=_0xf70879[_0x189b('0x25')][_0x189b('0x10')](_0x573849);_0xf70879['compare'](_0x573849,_0x42aa36),_0x336fc4[_0x189b('0x18')](),_0x336fc4[_0x189b('0x3a')][_0x189b('0x0')]();}}},w[_0x189b('0x33')]=[_0x189b('0x3b'),_0x189b('0x19'),'nameRevision'];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3a24=['setTemplate','ck-revision-history-sidebar__header__label','ck-revision-history-sidebar__header','content'];(function(_0x1c59a6,_0x3a2408){const _0x34c735=function(_0x486b21){while(--_0x486b21){_0x1c59a6['push'](_0x1c59a6['shift']());}};_0x34c735(++_0x3a2408);}(_0x3a24,0xdb));const _0x34c7=function(_0x1c59a6,_0x3a2408){_0x1c59a6=_0x1c59a6-0x0;let _0x34c735=_0x3a24[_0x1c59a6];return _0x34c735;};import{View as _0x44cce9,IconView as _0x1aa77b}from'ckeditor5/src/ui';import{getTranslation as _0x5a4d4a}from'../../utils/common-translations';import _0x4e4efa from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class cs extends _0x44cce9{constructor(_0x5d9817){super(_0x5d9817);const _0x15a11d=new _0x1aa77b(_0x5d9817);_0x15a11d[_0x34c7('0x0')]=_0x4e4efa,this[_0x34c7('0x1')]({'tag':'div','attributes':{'class':['ck','ck-reset_all',_0x34c7('0x3')]},'children':[_0x15a11d,{'tag':'span','attributes':{'class':['ck',_0x34c7('0x2')]},'children':[_0x5a4d4a(_0x5d9817,'Revision\x20history')]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x195b=['span','addRevision','setName','div','revisionViews','add','_revisionActions','locale','delegate','startDate','ck-revision-history-sidebar__time-period__revisions','uiLanguage','remove','ck-revision-history-sidebar__time-period','ck-revision-history-sidebar__time-period__label'];(function(_0x456400,_0x195b8a){const _0x1334d0=function(_0x432161){while(--_0x432161){_0x456400['push'](_0x456400['shift']());}};_0x1334d0(++_0x195b8a);}(_0x195b,0x187));const _0x1334=function(_0x456400,_0x195b8a){_0x456400=_0x456400-0x0;let _0x1334d0=_0x195b[_0x456400];return _0x1334d0;};import{View as _0x3ffc89}from'ckeditor5/src/ui';import _0x1c2611 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x1d0746}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x3ffc89{constructor(_0x4cf354,_0x1825ff,_0x5552e9){super(_0x4cf354);const _0x2d4ba3=_0x1d0746(_0x1825ff,this[_0x1334('0x6')][_0x1334('0xa')])['localizedPeriodName'];this[_0x1334('0x8')]=_0x1825ff,this[_0x1334('0x5')]=_0x5552e9,this[_0x1334('0x3')]=this['createCollection'](),this[_0x1334('0x3')]['delegate']('select')['to'](this),this[_0x1334('0x3')][_0x1334('0x7')](_0x1334('0x1'))['to'](this),this['setTemplate']({'tag':_0x1334('0x2'),'attributes':{'class':['ck',_0x1334('0xc')]},'children':[{'tag':_0x1334('0xe'),'attributes':{'class':['ck',_0x1334('0xd')]},'children':[{'text':_0x2d4ba3}]},{'tag':_0x1334('0x2'),'attributes':{'class':['ck',_0x1334('0x9')]},'children':this[_0x1334('0x3')]}]});}[_0x1334('0x0')](_0x563969){const _0x52b23e=new _0x1c2611(this[_0x1334('0x6')],_0x563969,this['_revisionActions']);this[_0x1334('0x3')][_0x1334('0x4')](_0x52b23e);}['removeRevision'](_0x2adf32){const _0x172421=this[_0x1334('0x3')]['find'](_0x1e84c8=>_0x1e84c8['id']===_0x2adf32['id']);this[_0x1334('0x3')][_0x1334('0xb')](_0x172421);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xee15=['locale','selectRevision','delegate','remove','map','revisionSelected','unhighlight','_addRevision','removeRevision','ck-revision-history-sidebar','some','set','select','revisionViews','fire','createCollection','render','startDate','find','add','_revisionActions','setName','deselect','flat','bindTemplate','_revisions','revisionSetName','timePeriodViews','ck-reset','_removeRevision','_getTimePeriodViewByStartDate','div','getTime','get','ck-disabled','createdAt','isEnabled','addRevision'];(function(_0x22b212,_0xee15cf){const _0x6cf61f=function(_0x7e53df){while(--_0x7e53df){_0x22b212['push'](_0x22b212['shift']());}};_0x6cf61f(++_0xee15cf);}(_0xee15,0xf5));const _0x6cf6=function(_0x22b212,_0xee15cf){_0x22b212=_0x22b212-0x0;let _0x6cf61f=_0xee15[_0x22b212];return _0x6cf61f;};import{View as _0x5b57ad}from'ckeditor5/src/ui';import _0x450be1 from'./revisionssidebartimeperiodview';import _0xd6ff4d from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x2c8037}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x5b57ad{constructor(_0xe06c0f,_0x578ccd,_0x3725b6){super(_0xe06c0f);const _0x3bf61f=this[_0x6cf6('0x7')];this['timePeriodViews']=this[_0x6cf6('0x24')](),this[_0x6cf6('0xa')][_0x6cf6('0x17')](_0x6cf6('0x21'))['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this[_0x6cf6('0x8')]=_0x578ccd,this[_0x6cf6('0x3')]=_0x3725b6,this['on'](_0x6cf6('0x21'),(_0xaab61c,_0x3f394d)=>{this['fire'](_0x6cf6('0x1a'),_0x3f394d);}),this['on'](_0x6cf6('0x4'),(_0x2f8c78,_0x3b62c4)=>{this[_0x6cf6('0x23')](_0x6cf6('0x9'),_0x3b62c4);}),this[_0x6cf6('0x20')](_0x6cf6('0x13'),!0x1),this['setTemplate']({'tag':_0x6cf6('0xe'),'attributes':{'class':['ck',_0x6cf6('0xb'),'ck-rounded-corners',_0x6cf6('0x1e')]},'children':[new _0xd6ff4d(_0xe06c0f),{'tag':_0x6cf6('0xe'),'attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x3bf61f['if'](_0x6cf6('0x13'),_0x6cf6('0x11'),_0x482757=>!_0x482757)]},'children':this[_0x6cf6('0xa')]}]});}[_0x6cf6('0x25')](){super[_0x6cf6('0x25')]();for(const _0x38b714 of this[_0x6cf6('0x8')])this[_0x6cf6('0x1c')](_0x38b714);this[_0x6cf6('0x8')]['on'](_0x6cf6('0x2'),(_0x5dfd5e,_0x19171f)=>{this[_0x6cf6('0x1c')](_0x19171f);}),this[_0x6cf6('0x8')]['on'](_0x6cf6('0x18'),(_0x570168,_0x34dd00)=>{this[_0x6cf6('0xc')](_0x34dd00);});}get[_0x6cf6('0x22')](){return this[_0x6cf6('0xa')]['map'](_0xb63a88=>_0xb63a88[_0x6cf6('0x22')][_0x6cf6('0x19')](_0x1e8d46=>_0x1e8d46))[_0x6cf6('0x6')]();}[_0x6cf6('0x16')](_0x450283){for(const _0x5a5178 of this[_0x6cf6('0x22')])_0x450283&&_0x450283['id']===_0x5a5178['id']?_0x5a5178[_0x6cf6('0x21')]():_0x5a5178[_0x6cf6('0x5')]();}['highlightRevisions'](_0x44d54e){for(const _0x22e0ef of this[_0x6cf6('0x22')])_0x44d54e[_0x6cf6('0x1f')](({id:_0x40ef2d})=>_0x40ef2d===_0x22e0ef['id'])?_0x22e0ef['highlight']():_0x22e0ef[_0x6cf6('0x1b')]();}[_0x6cf6('0x1c')](_0x453a34){const _0x421c2c=_0x2c8037(_0x453a34[_0x6cf6('0x12')])[_0x6cf6('0x0')];let _0x2824b2=this[_0x6cf6('0xa')][_0x6cf6('0x10')](0x0);_0x2824b2&&_0x2824b2['startDate'][_0x6cf6('0xf')]()===_0x421c2c[_0x6cf6('0xf')]()||(_0x2824b2=new _0x450be1(this[_0x6cf6('0x15')],_0x421c2c,this[_0x6cf6('0x3')]),this[_0x6cf6('0xa')]['add'](_0x2824b2)),_0x2824b2[_0x6cf6('0x14')](_0x453a34);}['_removeRevision'](_0x16ab45){const _0x20f3a9=_0x2c8037(_0x16ab45['createdAt'])['startDate'];this[_0x6cf6('0xd')](_0x20f3a9)[_0x6cf6('0x1d')](_0x16ab45);}[_0x6cf6('0xd')](_0x20d9ab){return this[_0x6cf6('0xa')][_0x6cf6('0x1')](_0x40cba4=>_0x40cba4[_0x6cf6('0x0')][_0x6cf6('0xf')]()===_0x20d9ab[_0x6cf6('0xf')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3af1=['startOf','toJSDate','fromJSDate','toRelativeCalendar','day','month','week','year','local','hasSame','setLocale','monthLong','minus'];(function(_0x17c52e,_0x3af162){const _0x392d09=function(_0x3c735a){while(--_0x3c735a){_0x17c52e['push'](_0x17c52e['shift']());}};_0x392d09(++_0x3af162);}(_0x3af1,0xc7));const _0x392d=function(_0x17c52e,_0x3af162){_0x17c52e=_0x17c52e-0x0;let _0x392d09=_0x3af1[_0x17c52e];return _0x392d09;};import{DateTime as _0x3a38bc}from'luxon';export function getDateTimePeriodInfo(_0x5507cb,_0x315fae){_0x5507cb=_0x3a38bc[_0x392d('0xb')](_0x5507cb)[_0x392d('0x6')](_0x315fae);const _0x3a088f=_0x3a38bc[_0x392d('0x4')](),_0x38c5b4=_0x3a088f[_0x392d('0x8')]({'days':0x1})[_0x392d('0x9')]('day');let _0x1836ef,_0x923603;return _0x5507cb[_0x392d('0x5')](_0x3a088f,_0x392d('0x0'))?(_0x1836ef=_0x5507cb[_0x392d('0x9')](_0x392d('0x0'))['toJSDate'](),_0x923603=_0x5507cb[_0x392d('0xc')]()):_0x5507cb[_0x392d('0x5')](_0x38c5b4,_0x392d('0x0'))?(_0x1836ef=_0x38c5b4[_0x392d('0xa')](),_0x923603=_0x5507cb[_0x392d('0xc')]()):_0x5507cb[_0x392d('0x5')](_0x3a088f,_0x392d('0x2'))?(_0x1836ef=_0x5507cb['startOf'](_0x392d('0x2'))['toJSDate'](),_0x923603=_0x5507cb['weekdayLong']):_0x5507cb[_0x392d('0x5')](_0x3a088f,_0x392d('0x3'))?(_0x1836ef=_0x5507cb[_0x392d('0x9')](_0x392d('0x1'))[_0x392d('0xa')](),_0x923603=_0x5507cb[_0x392d('0x7')]):(_0x1836ef=_0x5507cb[_0x392d('0x9')](_0x392d('0x3'))[_0x392d('0xa')](),_0x923603=_0x5507cb[_0x392d('0x3')]),{'startDate':_0x1836ef,'localizedPeriodName':_0x923603};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7252=['ck-revision-change__label','name','div','ck-revision-change__','focus','type','ck-revision-change','Added\x20by','author','bindTemplate','add','setTemplate','element','isSuggestion','span','data'];(function(_0x2eec8b,_0x7252af){const _0x370bd1=function(_0x4a7fb8){while(--_0x4a7fb8){_0x2eec8b['push'](_0x2eec8b['shift']());}};_0x370bd1(++_0x7252af);}(_0x7252,0x129));const _0x370b=function(_0x2eec8b,_0x7252af){_0x2eec8b=_0x2eec8b-0x0;let _0x370bd1=_0x7252[_0x2eec8b];return _0x370bd1;};import{View as _0x1183e5}from'ckeditor5/src/ui';import{getTranslation as _0x5763b2}from'../../utils/common-translations';export default class X extends _0x1183e5{constructor(_0x5153cf,_0x493075){super(_0x5153cf),this['_model']=_0x493075;const _0x5e095c=this[_0x370b('0x0')],_0xf0a843=_0x5763b2(_0x5153cf,_0x493075[_0x370b('0x6')][_0x370b('0x4')]?'Suggested\x20by':_0x370b('0x1')==_0x493075[_0x370b('0xc')]?_0x370b('0xe'):'Removed\x20by');this['set']('type',_0x493075[_0x370b('0xc')]),this[_0x370b('0x2')]({'tag':_0x370b('0x9'),'attributes':{'class':['ck-annotation',_0x370b('0xd'),_0x5e095c['to'](_0x370b('0xc'),_0x1b669d=>_0x370b('0xa')+_0x1b669d)],'tabindex':-0x1},'children':[{'tag':_0x370b('0x5'),'children':[{'tag':_0x370b('0x5'),'attributes':{'class':[_0x370b('0x7')]},'children':[{'text':_0xf0a843}]},{'text':'\x20'+_0x493075[_0x370b('0xf')][_0x370b('0x8')]}]}]});}[_0x370b('0xb')](){this[_0x370b('0x3')][_0x370b('0xb')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x33e1=['isForwardNavigationEnabled','numberOfChanges','EDIT_X_OF_Y_REVISIONS','isEnabled','isBackwardNavigationEnabled','ck-revision-history-ui','execute','ck-revision-history-ui__changes-navigation','bindTemplate','currentChangeNumber','_isStatusLabelVisible','backward','ck-revision-history-ui__changes-navigation__wrapper','set','span','isReady','forward','NUMBER_OF_CHANGES','isNavigationMode','fire','No\x20changes','Total','X_OF_Y_CHANGES','bind','setTemplate','_statusText'];(function(_0x22e66d,_0x33e1d8){const _0x2da030=function(_0x3c06c4){while(--_0x3c06c4){_0x22e66d['push'](_0x22e66d['shift']());}};_0x2da030(++_0x33e1d8);}(_0x33e1,0xf6));const _0x2da0=function(_0x22e66d,_0x33e1d8){_0x22e66d=_0x22e66d-0x0;let _0x2da030=_0x33e1[_0x22e66d];return _0x2da030;};import{View as _0x415ed0,ButtonView as _0x3a9aa9,ToolbarSeparatorView as _0x469d4d}from'ckeditor5/src/ui';import{getTranslation as _0x5c1b4}from'../../utils/common-translations';import _0x520f60 from'../../../theme/icons/arrow-up.svg';import _0xf9ef69 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x415ed0{constructor(_0x1c31fc){super(_0x1c31fc);const _0x50f39a=this[_0x2da0('0x16')],_0x7b5c1a=new _0x3a9aa9(_0x1c31fc),_0x2d3abd=new _0x3a9aa9(_0x1c31fc);this[_0x2da0('0x1')]('isNavigationMode',!0x1),this[_0x2da0('0x1')](_0x2da0('0x3'),!0x1),this[_0x2da0('0x1')](_0x2da0('0x17'),0x0),this[_0x2da0('0x1')](_0x2da0('0xf'),0x0),this[_0x2da0('0x1')]('isForwardNavigationEnabled',!0x1),this[_0x2da0('0x1')](_0x2da0('0x12'),!0x1),this['bind']('_isStatusLabelVisible')['to'](this,_0x2da0('0x3'),this,_0x2da0('0xf'),(_0x396e7b,_0x31f582)=>_0x396e7b&&_0x31f582>0x0),this[_0x2da0('0xb')](_0x2da0('0xd'))['to'](this,_0x2da0('0x3'),this,_0x2da0('0x17'),this,_0x2da0('0xf'),this,'isNavigationMode',(_0xc104f,_0x2285dd,_0x499827,_0x335c4b)=>{if(!_0xc104f)return _0x5c1b4(_0x1c31fc,'Loading...');if(!_0x499827)return _0x5c1b4(_0x1c31fc,_0x2da0('0x8'));const _0x445828=_0x5c1b4(_0x1c31fc,_0x2da0('0x5'),_0x499827);return _0x335c4b?_0x5c1b4(_0x1c31fc,_0x2da0('0xa'),[_0x2285dd+0x1,_0x499827]):_0x445828;}),_0x7b5c1a[_0x2da0('0x1')]({'label':_0x5c1b4(_0x1c31fc,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x520f60}),_0x2d3abd[_0x2da0('0x1')]({'label':_0x5c1b4(_0x1c31fc,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0xf9ef69}),_0x7b5c1a[_0x2da0('0xb')](_0x2da0('0x11'))['to'](this,_0x2da0('0x12')),_0x2d3abd[_0x2da0('0xb')](_0x2da0('0x11'))['to'](this,_0x2da0('0xe')),_0x7b5c1a['on'](_0x2da0('0x14'),()=>this[_0x2da0('0x7')]('execute',_0x2da0('0x19'))),_0x2d3abd['on'](_0x2da0('0x14'),()=>this[_0x2da0('0x7')](_0x2da0('0x14'),_0x2da0('0x4'))),this[_0x2da0('0xc')]({'tag':'div','attributes':{'class':['ck',_0x2da0('0x13'),_0x2da0('0x15')]},'children':[{'tag':_0x2da0('0x2'),'attributes':{'class':[_0x2da0('0x0')]},'children':[{'tag':_0x2da0('0x2'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x50f39a['if'](_0x2da0('0x18'),'ck-hidden',_0x487c57=>!_0x487c57)]},'children':[{'text':_0x50f39a['to'](_0x2da0('0x6'),_0x5374c0=>_0x5374c0?_0x5c1b4(_0x1c31fc,_0x2da0('0x10'))+':\x20':_0x5c1b4(_0x1c31fc,_0x2da0('0x9'))+':\x20')}]},{'text':_0x50f39a['to'](_0x2da0('0xd'))}]},new _0x469d4d(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x7b5c1a,_0x2d3abd]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x20ac=['removeClass','document','addClass','view','change','roots','pluginName','editor','RevisionViewerLoadingOverlay','editing','show'];(function(_0x45c45e,_0x20ac23){const _0x129008=function(_0x556044){while(--_0x556044){_0x45c45e['push'](_0x45c45e['shift']());}};_0x129008(++_0x20ac23);}(_0x20ac,0x189));const _0x1290=function(_0x45c45e,_0x20ac23){_0x45c45e=_0x45c45e-0x0;let _0x129008=_0x20ac[_0x45c45e];return _0x129008;};import{Plugin as _0x12813d}from'ckeditor5/src/core';import'../../../theme/revisionviewerloadingoverlay.css';export default class ee extends _0x12813d{static get[_0x1290('0x9')](){return _0x1290('0x0');}[_0x1290('0x2')](){const _0x55b8fd=this[_0x1290('0xa')][_0x1290('0x1')][_0x1290('0x6')];_0x55b8fd[_0x1290('0x7')](_0x8a2595=>{for(const _0x1bd8bd of _0x55b8fd[_0x1290('0x4')][_0x1290('0x8')])_0x8a2595[_0x1290('0x5')]('ck-editor__editable__loading-overlay',_0x1bd8bd);});}['hide'](){const _0x38284f=this[_0x1290('0xa')]['editing'][_0x1290('0x6')];_0x38284f[_0x1290('0x7')](_0x92c026=>{for(const _0x2d80b9 of _0x38284f[_0x1290('0x4')][_0x1290('0x8')])_0x92c026[_0x1290('0x3')]('ck-editor__editable__loading-overlay',_0x2d80b9);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5041=['restoreRevision','pluginName','closeRevisionViewerCallback','isEnabled','changesNavigation','commands','hide','showNextChange','add','Restore\x20this\x20revision','isBackwardNavigationEnabled','get','ck-revision-history-ui__back-to-editing','execute','listenTo','revisionHistory','bind','plugins','init','currentChangeNumber','componentFactory','config','forward','editor','change:isReady','show','isNavigationMode','showPreviousChange','Back\x20to\x20editing','exitToEditing','RevisionViewerUI'];(function(_0x449f4b,_0x5041d9){const _0xcb353a=function(_0x9519ba){while(--_0x9519ba){_0x449f4b['push'](_0x449f4b['shift']());}};_0xcb353a(++_0x5041d9);}(_0x5041,0x184));const _0xcb35=function(_0x449f4b,_0x5041d9){_0x449f4b=_0x449f4b-0x0;let _0xcb353a=_0x5041[_0x449f4b];return _0xcb353a;};import{Plugin as _0x596f85}from'ckeditor5/src/core';import{ButtonView as _0x31241d}from'ckeditor5/src/ui';import _0x3eafc9 from'./changesnavigationview';import _0x3bc27a from'./../../revisionviewer';import _0x45d005 from'./revisionviewerloadingoverlay';import{getTranslation as _0x4f0e0a}from'../../utils/common-translations';import _0x3e344e from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class d extends _0x596f85{static get[_0xcb35('0x10')](){return _0xcb35('0xe');}static get['requires'](){return[_0x3bc27a,_0x45d005];}[_0xcb35('0x2')](){const _0x42da46=this[_0xcb35('0x7')],_0x2daea3=_0x42da46[_0xcb35('0x1')][_0xcb35('0x1a')](_0x3bc27a),_0x2a06a6=_0x42da46[_0xcb35('0x1')][_0xcb35('0x1a')](_0x45d005);_0x42da46['ui'][_0xcb35('0x4')][_0xcb35('0x17')](_0xcb35('0xd'),_0x53cd17=>{const _0x37b404=new _0x31241d(_0x53cd17);return _0x37b404['set']({'label':_0x4f0e0a(_0x53cd17,_0xcb35('0xc')),'icon':_0x3e344e,'withText':!0x0,'tooltip':!0x0,'class':_0xcb35('0x1b')}),this[_0xcb35('0x1d')](_0x37b404,'execute',()=>{_0x42da46[_0xcb35('0x5')][_0xcb35('0x1a')](_0xcb35('0x1e'))[_0xcb35('0x11')]();}),_0x37b404;}),_0x42da46['ui']['componentFactory'][_0xcb35('0x17')]('restoreRevision',_0x215b0b=>{const _0x78df5f=new _0x31241d(_0x215b0b);return _0x78df5f['set']({'label':_0x4f0e0a(_0x215b0b,_0xcb35('0x18')),'withText':!0x0,'tooltip':!0x0}),_0x78df5f['bind']('isEnabled')['to'](_0x42da46['commands'][_0xcb35('0x1a')](_0xcb35('0xf'))),this[_0xcb35('0x1d')](_0x78df5f,'execute',()=>_0x42da46[_0xcb35('0x1c')](_0xcb35('0xf'))),_0x78df5f;}),_0x42da46['ui'][_0xcb35('0x4')]['add'](_0xcb35('0x13'),_0xa9bdbd=>{const _0x56bd78=new _0x3eafc9(_0xa9bdbd),_0x488ebe=_0x42da46[_0xcb35('0x14')][_0xcb35('0x1a')](_0xcb35('0xb')),_0x498f55=_0x42da46['commands'][_0xcb35('0x1a')](_0xcb35('0x16'));return _0x56bd78['bind'](_0xcb35('0x19'))['to'](_0x488ebe,_0xcb35('0x12')),_0x56bd78[_0xcb35('0x0')]('isForwardNavigationEnabled')['to'](_0x498f55,_0xcb35('0x12')),_0x56bd78[_0xcb35('0x0')]('isReady',_0xcb35('0x3'),'numberOfChanges',_0xcb35('0xa'))['to'](_0x2daea3),this[_0xcb35('0x1d')](_0x56bd78,_0xcb35('0x1c'),(_0x2a772f,_0x4e25ca)=>{_0x42da46[_0xcb35('0x1c')](_0xcb35('0x6')===_0x4e25ca?'showNextChange':_0xcb35('0xb'));}),_0x56bd78;}),_0x2a06a6[_0xcb35('0x9')](),_0x2daea3['on'](_0xcb35('0x8'),(_0x3c26c2,_0x1be00c,_0x4c05f6)=>{_0x4c05f6?_0x2a06a6[_0xcb35('0x15')]():_0x2a06a6[_0xcb35('0x9')]();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x1593cb,_0x575d3d,_0x14e919){const t=_0x1593cb['t'];switch(_0x575d3d){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'},_0x14e919);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x14e919);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'});}}
|