UNPKG

@ckeditor/ckeditor5-revision-history

Version:

Document revision history feature for CKEditor 5.

23 lines 5.49 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 _0x5b8f(){const _0x5d9581=['forward','5ZgqKoo','5721506EhVjTc','Total','Show\x20next\x20change','currentChangeNumber','set','6632000SKIVGp','ck-revision-history-ui__changes-navigation__label','No\x20changes','NUMBER_OF_CHANGES','4899672zSmxvT','_isStatusLabelVisible','div','136wPFqSX','fire','bind','span','Loading...','265743QQEkpL','isBackwardNavigationEnabled','ck-revision-history-ui','_statusText','ck-revision-history-ui__changes-navigation','9193080LAAPLX','Show\x20previous\x20change','EDIT_X_OF_Y_REVISIONS','X_OF_Y_CHANGES','21lfYUlm','execute','backward','420220llXmBL','setTemplate','isNavigationMode','ck-hidden','ck-revision-history-ui__changes-navigation__navigation','719074PzUOfq','bindTemplate','numberOfChanges','isForwardNavigationEnabled','ck-revision-history-ui__changes-navigation__wrapper','isEnabled','isReady'];_0x5b8f=function(){return _0x5d9581;};return _0x5b8f();}(function(_0x4267fd,_0x49da5e){const _0x19a2c1=_0x4d22,_0x354376=_0x4267fd();while(!![]){try{const _0x4cbbb7=-parseInt(_0x19a2c1(0xe2))/0x1+-parseInt(_0x19a2c1(0xdd))/0x2*(-parseInt(_0x19a2c1(0xda))/0x3)+parseInt(_0x19a2c1(0xc5))/0x4*(parseInt(_0x19a2c1(0xea))/0x5)+-parseInt(_0x19a2c1(0xc9))/0x6+parseInt(_0x19a2c1(0xeb))/0x7+parseInt(_0x19a2c1(0xcc))/0x8*(-parseInt(_0x19a2c1(0xd1))/0x9)+-parseInt(_0x19a2c1(0xd6))/0xa;if(_0x4cbbb7===_0x49da5e)break;else _0x354376['push'](_0x354376['shift']());}catch(_0x16fe0c){_0x354376['push'](_0x354376['shift']());}}}(_0x5b8f,0xf17f7));import{View as _0x522408,ButtonView as _0x1202b1,ToolbarSeparatorView as _0x5cb71c}from'ckeditor5/src/ui.js';import{IconChevronUp as _0x494440,IconChevronDown as _0x28c490}from'ckeditor5/src/icons.js';import{getTranslation as _0x5d4e3b}from'../../utils/common-translations.js';import'../../../theme/changesnavigation.css';function _0x4d22(_0x4c6cfc,_0x3c9b2d){const _0x5b8f0f=_0x5b8f();return _0x4d22=function(_0x4d2241,_0x22c175){_0x4d2241=_0x4d2241-0xc2;let _0x4ef888=_0x5b8f0f[_0x4d2241];return _0x4ef888;},_0x4d22(_0x4c6cfc,_0x3c9b2d);}export class ChangesNavigationView extends _0x522408{constructor(_0x49b1b8){const _0x3371de=_0x4d22;super(_0x49b1b8);const _0x4db1fc=this[_0x3371de(0xe3)],_0x2e27da=new _0x1202b1(_0x49b1b8),_0x523e69=new _0x1202b1(_0x49b1b8);this[_0x3371de(0xc4)](_0x3371de(0xdf),!0x1),this[_0x3371de(0xc4)](_0x3371de(0xe8),!0x1),this[_0x3371de(0xc4)](_0x3371de(0xc3),0x0),this[_0x3371de(0xc4)](_0x3371de(0xe4),0x0),this[_0x3371de(0xc4)](_0x3371de(0xe5),!0x1),this[_0x3371de(0xc4)](_0x3371de(0xd2),!0x1),this[_0x3371de(0xce)](_0x3371de(0xca))['to'](this,_0x3371de(0xe8),this,_0x3371de(0xe4),(_0x34cf2f,_0x1898e5)=>_0x34cf2f&&_0x1898e5>0x0),this[_0x3371de(0xce)](_0x3371de(0xd4))['to'](this,_0x3371de(0xe8),this,_0x3371de(0xc3),this,_0x3371de(0xe4),this,_0x3371de(0xdf),(_0x5e44b9,_0x3c1cd7,_0x2e7bd5,_0x5e5b20)=>{const _0x445c6d=_0x3371de;if(!_0x5e44b9)return _0x5d4e3b(_0x49b1b8,_0x445c6d(0xd0));if(!_0x2e7bd5)return _0x5d4e3b(_0x49b1b8,_0x445c6d(0xc7));const _0x5e152b=_0x5d4e3b(_0x49b1b8,_0x445c6d(0xc8),_0x2e7bd5);return _0x5e5b20?_0x5d4e3b(_0x49b1b8,_0x445c6d(0xd9),[_0x3c1cd7+0x1,_0x2e7bd5]):_0x5e152b;}),_0x2e27da[_0x3371de(0xc4)]({'label':_0x5d4e3b(_0x49b1b8,_0x3371de(0xd7)),'tooltip':!0x0,'icon':_0x494440}),_0x523e69[_0x3371de(0xc4)]({'label':_0x5d4e3b(_0x49b1b8,_0x3371de(0xc2)),'tooltip':!0x0,'icon':_0x28c490}),_0x2e27da[_0x3371de(0xce)](_0x3371de(0xe7))['to'](this,_0x3371de(0xd2)),_0x523e69[_0x3371de(0xce)](_0x3371de(0xe7))['to'](this,_0x3371de(0xe5)),_0x2e27da['on'](_0x3371de(0xdb),()=>this[_0x3371de(0xcd)](_0x3371de(0xdb),_0x3371de(0xdc))),_0x523e69['on'](_0x3371de(0xdb),()=>this[_0x3371de(0xcd)](_0x3371de(0xdb),_0x3371de(0xe9))),this[_0x3371de(0xde)]({'tag':_0x3371de(0xcb),'attributes':{'class':['ck',_0x3371de(0xd3),_0x3371de(0xd5)]},'children':[{'tag':_0x3371de(0xcf),'attributes':{'class':[_0x3371de(0xe6)]},'children':[{'tag':_0x3371de(0xcf),'attributes':{'class':[_0x3371de(0xc6),_0x4db1fc['if'](_0x3371de(0xca),_0x3371de(0xe0),_0x4c2c38=>!_0x4c2c38)]},'children':[{'text':_0x4db1fc['to'](_0x3371de(0xdf),_0x591a65=>_0x591a65?_0x5d4e3b(_0x49b1b8,_0x3371de(0xd8))+':\x20':_0x5d4e3b(_0x49b1b8,_0x3371de(0xec))+':\x20')}]},{'text':_0x4db1fc['to'](_0x3371de(0xd4))}]},new _0x5cb71c(),{'tag':_0x3371de(0xcb),'attributes':{'class':[_0x3371de(0xe1)]},'children':[_0x2e27da,_0x523e69]}]});}}