UNPKG

@ckeditor/ckeditor5-revision-history

Version:

Document revision history feature for CKEditor 5.

23 lines 4.15 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 _0x3fa6(_0x3aadd2,_0x52c957){const _0x3d81fe=_0x3d81();return _0x3fa6=function(_0x3fa6fd,_0x287973){_0x3fa6fd=_0x3fa6fd-0x1c9;let _0xc61a4e=_0x3d81fe[_0x3fa6fd];return _0xc61a4e;},_0x3fa6(_0x3aadd2,_0x52c957);}const _0x15fc49=_0x3fa6;(function(_0x5261be,_0x9beadc){const _0x5b0021=_0x3fa6,_0x13a210=_0x5261be();while(!![]){try{const _0x5f9c79=parseInt(_0x5b0021(0x1df))/0x1*(parseInt(_0x5b0021(0x1d9))/0x2)+parseInt(_0x5b0021(0x1e0))/0x3*(-parseInt(_0x5b0021(0x1e7))/0x4)+parseInt(_0x5b0021(0x1ce))/0x5+parseInt(_0x5b0021(0x1ca))/0x6+parseInt(_0x5b0021(0x1e2))/0x7+-parseInt(_0x5b0021(0x1e5))/0x8*(-parseInt(_0x5b0021(0x1cd))/0x9)+-parseInt(_0x5b0021(0x1cb))/0xa;if(_0x5f9c79===_0x9beadc)break;else _0x13a210['push'](_0x13a210['shift']());}catch(_0x26cacd){_0x13a210['push'](_0x13a210['shift']());}}}(_0x3d81,0xa28ef));import{View as _0x2e44fd}from'ckeditor5/src/ui.js';import{RevisionAuthorView as _0x66f08f}from'./revisionauthorview.js';import{dateToPrettyFormat as _0x589533}from'./utils.js';import'../../../theme/revision/subrevision.css';export class SubrevisionView extends _0x2e44fd{['id'];[_0x15fc49(0x1d4)];constructor(_0x199b70,_0x57692d,_0x546d4c){const _0x2e2dc8=_0x15fc49;super(_0x199b70);const _0x35dd9e=this[_0x2e2dc8(0x1cc)];this['id']=_0x57692d['id'],this[_0x2e2dc8(0x1d0)](_0x2e2dc8(0x1e4))['to'](_0x57692d),this[_0x2e2dc8(0x1d3)](_0x2e2dc8(0x1d7),!0x1),this[_0x2e2dc8(0x1d0)](_0x2e2dc8(0x1e1))['to'](this,_0x2e2dc8(0x1e4),_0x4a4ea6=>_0x4a4ea6?_0x589533(_0x199b70[_0x2e2dc8(0x1d2)],_0x4a4ea6):void 0x0),this[_0x2e2dc8(0x1d4)]=_0x546d4c,this[_0x2e2dc8(0x1de)]({'tag':_0x2e2dc8(0x1db),'attributes':{'class':['ck',_0x2e2dc8(0x1dd),_0x2e2dc8(0x1dc),_0x2e2dc8(0x1d1),_0x35dd9e['if'](_0x2e2dc8(0x1d7),_0x2e2dc8(0x1da))]},'children':[{'tag':_0x2e2dc8(0x1e3),'attributes':{'class':['ck',_0x2e2dc8(0x1d5)]},'children':[{'text':_0x35dd9e['to'](_0x2e2dc8(0x1e1))}]},{'tag':'ul','attributes':{'class':['ck',_0x2e2dc8(0x1cf)]},'children':[new _0x66f08f(_0x199b70,_0x57692d[_0x2e2dc8(0x1c9)],!0x0)]}],'on':{'click':_0x35dd9e['to'](this[_0x2e2dc8(0x1d8)][_0x2e2dc8(0x1d0)](this))}});}[_0x15fc49(0x1d8)](){const _0x3db7e8=_0x15fc49;this[_0x3db7e8(0x1d7)]=!0x0,this[_0x3db7e8(0x1e6)](_0x3db7e8(0x1d8),{'parentId':this[_0x3db7e8(0x1d4)]});}[_0x15fc49(0x1d6)](){const _0x5a0860=_0x15fc49;this[_0x5a0860(0x1d7)]=!0x1;}}function _0x3d81(){const _0x443d75=['bindTemplate','9tZhHFl','398065zoZLoT','ck-revision-history-sidebar__revision-authors','bind','ck-revision-history-sidebar__subrevision','uiLanguage','set','_parentRevisionId','ck-revision-history-sidebar__revision__date','deselect','isSelected','select','2bOUPIL','ck-revision-history-sidebar__revision_selected','div','ck-revision-history-sidebar__revision','ck-reset','setTemplate','256613LkcxiE','3OEgBuE','_createdAtFormatted','6656734kMXCNG','span','createdAt','10312240VxksJD','fire','2938872EaxUEi','creator','1856064wTqPbm','14850050VSwlqD'];_0x3d81=function(){return _0x443d75;};return _0x3d81();}