UNPKG

@ckeditor/ckeditor5-revision-history

Version:

Document revision history feature for CKEditor 5.

23 lines 5.41 kB
/* * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved. * * * * * +---------------------------------------------------------------------------------+ * | | * | Hello stranger! | * | | * | | * | What you're currently looking at is the source code of a legally protected, | * | proprietary software. Any attempts to deobfuscate / disassemble this code | * | are forbidden and will result in legal consequences. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ function _0x5947(_0x1ec736,_0x2d5318){const _0x58d9a7=_0x58d9();return _0x5947=function(_0x5947ab,_0x2bd39a){_0x5947ab=_0x5947ab-0x1e8;let _0x55adc3=_0x58d9a7[_0x5947ab];return _0x55adc3;},_0x5947(_0x1ec736,_0x2d5318);}(function(_0x3ad8fb,_0x30c679){const _0x2e144b=_0x5947,_0x4e5022=_0x3ad8fb();while(!![]){try{const _0x22ca5b=parseInt(_0x2e144b(0x20c))/0x1+-parseInt(_0x2e144b(0x1ea))/0x2+-parseInt(_0x2e144b(0x1ec))/0x3+parseInt(_0x2e144b(0x1fb))/0x4+-parseInt(_0x2e144b(0x1ff))/0x5+parseInt(_0x2e144b(0x208))/0x6+parseInt(_0x2e144b(0x20f))/0x7;if(_0x22ca5b===_0x30c679)break;else _0x4e5022['push'](_0x4e5022['shift']());}catch(_0x10efd9){_0x4e5022['push'](_0x4e5022['shift']());}}}(_0x58d9,0x2add8));import{View as _0x4d3758,ButtonView as _0x167e43,ToolbarSeparatorView as _0x120e10}from'ckeditor5/src/ui.js';import{IconChevronUp as _0x530b14,IconChevronDown as _0x4268b9}from'ckeditor5/src/icons.js';import{getTranslation as _0xe7c467}from'../../utils/common-translations.js';import'../../../theme/changesnavigation.css';export default class li extends _0x4d3758{constructor(_0x236eda){const _0x38c981=_0x5947;super(_0x236eda);const _0x57f90e=this[_0x38c981(0x1f2)],_0x28bf9e=new _0x167e43(_0x236eda),_0x11d476=new _0x167e43(_0x236eda);this[_0x38c981(0x20a)](_0x38c981(0x204),!0x1),this[_0x38c981(0x20a)](_0x38c981(0x1e9),!0x1),this[_0x38c981(0x20a)](_0x38c981(0x1f9),0x0),this[_0x38c981(0x20a)](_0x38c981(0x205),0x0),this[_0x38c981(0x20a)](_0x38c981(0x201),!0x1),this[_0x38c981(0x20a)](_0x38c981(0x207),!0x1),this[_0x38c981(0x1fc)](_0x38c981(0x206))['to'](this,_0x38c981(0x1e9),this,_0x38c981(0x205),(_0x32ad4f,_0x2943e8)=>_0x32ad4f&&_0x2943e8>0x0),this[_0x38c981(0x1fc)](_0x38c981(0x209))['to'](this,_0x38c981(0x1e9),this,_0x38c981(0x1f9),this,_0x38c981(0x205),this,_0x38c981(0x204),(_0x183cfa,_0x40d8e6,_0x37fb57,_0x82e224)=>{const _0x17c66e=_0x38c981;if(!_0x183cfa)return _0xe7c467(_0x236eda,_0x17c66e(0x1f4));if(!_0x37fb57)return _0xe7c467(_0x236eda,_0x17c66e(0x20d));const _0x75c45d=_0xe7c467(_0x236eda,_0x17c66e(0x20e),_0x37fb57);return _0x82e224?_0xe7c467(_0x236eda,_0x17c66e(0x1f8),[_0x40d8e6+0x1,_0x37fb57]):_0x75c45d;}),_0x28bf9e[_0x38c981(0x20a)]({'label':_0xe7c467(_0x236eda,_0x38c981(0x1ed)),'tooltip':!0x0,'icon':_0x530b14}),_0x11d476[_0x38c981(0x20a)]({'label':_0xe7c467(_0x236eda,_0x38c981(0x1f6)),'tooltip':!0x0,'icon':_0x4268b9}),_0x28bf9e[_0x38c981(0x1fc)](_0x38c981(0x1fd))['to'](this,_0x38c981(0x207)),_0x11d476[_0x38c981(0x1fc)](_0x38c981(0x1fd))['to'](this,_0x38c981(0x201)),_0x28bf9e['on'](_0x38c981(0x200),()=>this[_0x38c981(0x1ef)](_0x38c981(0x200),_0x38c981(0x1fe))),_0x11d476['on'](_0x38c981(0x200),()=>this[_0x38c981(0x1ef)](_0x38c981(0x200),_0x38c981(0x1f7))),this[_0x38c981(0x1f0)]({'tag':_0x38c981(0x202),'attributes':{'class':['ck',_0x38c981(0x1fa),_0x38c981(0x1f5)]},'children':[{'tag':_0x38c981(0x1e8),'attributes':{'class':[_0x38c981(0x1f3)]},'children':[{'tag':_0x38c981(0x1e8),'attributes':{'class':[_0x38c981(0x1f1),_0x57f90e['if'](_0x38c981(0x206),_0x38c981(0x1eb),_0x57aa01=>!_0x57aa01)]},'children':[{'text':_0x57f90e['to'](_0x38c981(0x204),_0x596f98=>_0x596f98?_0xe7c467(_0x236eda,_0x38c981(0x1ee))+':\x20':_0xe7c467(_0x236eda,_0x38c981(0x203))+':\x20')}]},{'text':_0x57f90e['to'](_0x38c981(0x209))}]},new _0x120e10(),{'tag':_0x38c981(0x202),'attributes':{'class':[_0x38c981(0x20b)]},'children':[_0x28bf9e,_0x11d476]}]});}}function _0x58d9(){const _0x57708a=['currentChangeNumber','ck-revision-history-ui','688656UcLVJz','bind','isEnabled','backward','369160iQMTHi','execute','isForwardNavigationEnabled','div','Total','isNavigationMode','numberOfChanges','_isStatusLabelVisible','isBackwardNavigationEnabled','31500yngbWe','_statusText','set','ck-revision-history-ui__changes-navigation__navigation','178924QaqZgu','No\x20changes','NUMBER_OF_CHANGES','1059352XOoqDr','span','isReady','440808FQVxKz','ck-hidden','113586nwJJRQ','Show\x20previous\x20change','EDIT_X_OF_Y_REVISIONS','fire','setTemplate','ck-revision-history-ui__changes-navigation__label','bindTemplate','ck-revision-history-ui__changes-navigation__wrapper','Loading...','ck-revision-history-ui__changes-navigation','Show\x20next\x20change','forward','X_OF_Y_CHANGES'];_0x58d9=function(){return _0x57708a;};return _0x58d9();}