UNPKG

@ckeditor/ckeditor5-revision-history

Version:

Document revision history feature for CKEditor 5.

23 lines 4.17 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. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ const _0x488204=_0x4bbd;function _0x4bbd(_0x303e31,_0x312b30){const _0x2f6919=_0x2f69();return _0x4bbd=function(_0x4bbd9e,_0x3659ff){_0x4bbd9e=_0x4bbd9e-0x108;let _0x3dd068=_0x2f6919[_0x4bbd9e];return _0x3dd068;},_0x4bbd(_0x303e31,_0x312b30);}(function(_0x4606a0,_0x3190c7){const _0x384e53=_0x4bbd,_0x329c5c=_0x4606a0();while(!![]){try{const _0x1adac9=-parseInt(_0x384e53(0x11e))/0x1*(-parseInt(_0x384e53(0x112))/0x2)+parseInt(_0x384e53(0x10f))/0x3*(parseInt(_0x384e53(0x126))/0x4)+-parseInt(_0x384e53(0x11d))/0x5+-parseInt(_0x384e53(0x10a))/0x6+-parseInt(_0x384e53(0x11a))/0x7+-parseInt(_0x384e53(0x116))/0x8*(parseInt(_0x384e53(0x110))/0x9)+-parseInt(_0x384e53(0x114))/0xa*(-parseInt(_0x384e53(0x117))/0xb);if(_0x1adac9===_0x3190c7)break;else _0x329c5c['push'](_0x329c5c['shift']());}catch(_0x10f4dc){_0x329c5c['push'](_0x329c5c['shift']());}}}(_0x2f69,0x89685));import{View as _0x6a9115}from'ckeditor5/src/ui.js';function _0x2f69(){const _0x53834d=['ck-reset','select','6WRcqnt','31923pFkiQo','uiLanguage','8yrjOck','bind','10sdQlSS','setTemplate','712VJkTxM','8766274fPxhAZ','ck-revision-history-sidebar__revision-authors','bindTemplate','6395865CRwzMb','_parentRevisionId','isSelected','1897010lpZvaE','111187ZNCvHO','_createdAtFormatted','set','deselect','creator','ck-revision-history-sidebar__subrevision','div','span','2129832eILzql','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision','fire','809982xRgmNj','ck-revision-history-sidebar__revision__date','createdAt'];_0x2f69=function(){return _0x53834d;};return _0x2f69();}import _0xf5f77c from'./revisionauthorview.js';import{dateToPrettyFormat as _0x412e81}from'./utils.js';import'../../../theme/revision/subrevision.css';export default class ci extends _0x6a9115{['id'];[_0x488204(0x11b)];constructor(_0x55a60c,_0xc8deab,_0x1c2fd2){const _0x4947e5=_0x488204;super(_0x55a60c);const _0x3e1986=this[_0x4947e5(0x119)];this['id']=_0xc8deab['id'],this[_0x4947e5(0x113)](_0x4947e5(0x10c))['to'](_0xc8deab),this[_0x4947e5(0x120)](_0x4947e5(0x11c),!0x1),this[_0x4947e5(0x113)](_0x4947e5(0x11f))['to'](this,_0x4947e5(0x10c),_0x22b691=>_0x22b691?_0x412e81(_0x55a60c[_0x4947e5(0x111)],_0x22b691):void 0x0),this[_0x4947e5(0x11b)]=_0x1c2fd2,this[_0x4947e5(0x115)]({'tag':_0x4947e5(0x124),'attributes':{'class':['ck',_0x4947e5(0x10d),_0x4947e5(0x108),_0x4947e5(0x123),_0x3e1986['if'](_0x4947e5(0x11c),_0x4947e5(0x127))]},'children':[{'tag':_0x4947e5(0x125),'attributes':{'class':['ck',_0x4947e5(0x10b)]},'children':[{'text':_0x3e1986['to'](_0x4947e5(0x11f))}]},{'tag':'ul','attributes':{'class':['ck',_0x4947e5(0x118)]},'children':[new _0xf5f77c(_0x55a60c,_0xc8deab[_0x4947e5(0x122)],!0x0)]}],'on':{'click':_0x3e1986['to'](this[_0x4947e5(0x10e)][_0x4947e5(0x113)](this))}});}[_0x488204(0x10e)](){const _0x4be15b=_0x488204;this[_0x4be15b(0x11c)]=!0x0,this[_0x4be15b(0x109)](_0x4be15b(0x10e),{'parentId':this[_0x4be15b(0x11b)]});}[_0x488204(0x121)](){const _0x59907d=_0x488204;this[_0x59907d(0x11c)]=!0x1;}}