@ckeditor/ckeditor5-revision-history
Version:
Document revision history feature for CKEditor 5.
23 lines • 4.19 kB
JavaScript
/*
* 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 _0x1372e5=_0x497e;(function(_0x34deea,_0x4a00ec){const _0x162bb0=_0x497e,_0x1d610a=_0x34deea();while(!![]){try{const _0x3aae2c=-parseInt(_0x162bb0(0xef))/0x1*(parseInt(_0x162bb0(0xf3))/0x2)+parseInt(_0x162bb0(0xdd))/0x3+-parseInt(_0x162bb0(0xdb))/0x4+-parseInt(_0x162bb0(0xe1))/0x5*(-parseInt(_0x162bb0(0xd6))/0x6)+parseInt(_0x162bb0(0xde))/0x7+parseInt(_0x162bb0(0xee))/0x8*(-parseInt(_0x162bb0(0xf1))/0x9)+-parseInt(_0x162bb0(0xe2))/0xa;if(_0x3aae2c===_0x4a00ec)break;else _0x1d610a['push'](_0x1d610a['shift']());}catch(_0xf44eca){_0x1d610a['push'](_0x1d610a['shift']());}}}(_0x38ba,0xbcfa2));function _0x497e(_0x205143,_0x11c15b){const _0x38ba4b=_0x38ba();return _0x497e=function(_0x497ed2,_0x50b459){_0x497ed2=_0x497ed2-0xd5;let _0x5aa8d1=_0x38ba4b[_0x497ed2];return _0x5aa8d1;},_0x497e(_0x205143,_0x11c15b);}import{View as _0x21f7c3}from'ckeditor5/src/ui.js';import{RevisionView as _0x11f507}from'../revision/revisionview.js';import{getDateTimePeriodInfo as _0x41ca41}from'./utils.js';function _0x38ba(){const _0x2795a0=['uiLanguage','ck-revision-history-sidebar__time-period__label','320168xUvLtt','5ousJfQ','select','9pXGwiQ','delegate','301006YIzRyO','setName','locale','525540gHzeGB','addRevision','_requireRevisionName','find','createCollection','3222852ciEFzx','ck-revision-history-sidebar__time-period__revisions','3193587AEPxmi','10012793oZmbla','startDate','localizedPeriodName','75TYRDvp','14364790TwOdWB','span','removeRevision','ck-revision-history-sidebar__time-period','_revisionActions','remove','setTemplate','revisionViews','div','add'];_0x38ba=function(){return _0x2795a0;};return _0x38ba();}import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export class RevisionsSidebarTimePeriodView extends _0x21f7c3{[_0x1372e5(0xdf)];[_0x1372e5(0xe9)];[_0x1372e5(0xe6)];[_0x1372e5(0xd8)];constructor(_0x13ec49,_0x37d38a,_0x16c559,_0x96a9ca){const _0x22c699=_0x1372e5;super(_0x13ec49);const _0x245ef1=_0x41ca41(_0x37d38a,this[_0x22c699(0xd5)][_0x22c699(0xec)])[_0x22c699(0xe0)];this[_0x22c699(0xdf)]=_0x37d38a,this[_0x22c699(0xe9)]=this[_0x22c699(0xda)](),this[_0x22c699(0xe6)]=_0x16c559,this[_0x22c699(0xd8)]=_0x96a9ca,this[_0x22c699(0xe9)][_0x22c699(0xf2)](_0x22c699(0xf0))['to'](this),this[_0x22c699(0xe9)][_0x22c699(0xf2)](_0x22c699(0xf4))['to'](this),this[_0x22c699(0xe8)]({'tag':_0x22c699(0xea),'attributes':{'class':['ck',_0x22c699(0xe5)]},'children':[{'tag':_0x22c699(0xe3),'attributes':{'class':['ck',_0x22c699(0xed)]},'children':[{'text':_0x245ef1}]},{'tag':_0x22c699(0xea),'attributes':{'class':['ck',_0x22c699(0xdc)]},'children':this[_0x22c699(0xe9)]}]});}[_0x1372e5(0xd7)](_0x111701){const _0x150fd0=_0x1372e5,_0x210dc9=new _0x11f507(this[_0x150fd0(0xd5)],_0x111701,this[_0x150fd0(0xe6)],this[_0x150fd0(0xd8)]);this[_0x150fd0(0xe9)][_0x150fd0(0xeb)](_0x210dc9);}[_0x1372e5(0xe4)](_0x3f8794){const _0x34c211=_0x1372e5,_0x1a6e11=this[_0x34c211(0xe9)][_0x34c211(0xd9)](_0x3bce85=>_0x3bce85['id']===_0x3f8794['id']);this[_0x34c211(0xe9)][_0x34c211(0xe7)](_0x1a6e11);}}