UNPKG

@ckeditor/ckeditor5-revision-history

Version:

Document revision history feature for CKEditor 5.

23 lines 3.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. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ const _0x3efa51=_0x19b7;function _0x1765(){const _0x3afed2=['ck-revision-history-sidebar__subrevision-collapser__inner','button','429968NFwlkY','14UsIamM','ck-hidden','toggle','96UDYbic','ck-revision-history-sidebar__subrevision-collapser_collapsed','set','false','1390776KYjSrC','1514601aURGvT','697140nrvANk','_isCollapsed','true','bindTemplate','117989FrFeVc','setTemplate','click','30tZZGoW','208505DikDOD','21nvpWzr','span','2437608GOjUWY','isVisible','ck-revision-history-sidebar__subrevision-collapser'];_0x1765=function(){return _0x3afed2;};return _0x1765();}function _0x19b7(_0xc0c510,_0x12cfdc){const _0x17654e=_0x1765();return _0x19b7=function(_0x19b788,_0x310278){_0x19b788=_0x19b788-0x1b7;let _0x73e06f=_0x17654e[_0x19b788];return _0x73e06f;},_0x19b7(_0xc0c510,_0x12cfdc);}(function(_0x21ffa9,_0x29bae6){const _0x40bee4=_0x19b7,_0x2a8704=_0x21ffa9();while(!![]){try{const _0x1993e2=parseInt(_0x40bee4(0x1c4))/0x1*(-parseInt(_0x40bee4(0x1b7))/0x2)+parseInt(_0x40bee4(0x1cb))/0x3+-parseInt(_0x40bee4(0x1c0))/0x4+-parseInt(_0x40bee4(0x1c8))/0x5*(-parseInt(_0x40bee4(0x1ba))/0x6)+-parseInt(_0x40bee4(0x1c9))/0x7*(parseInt(_0x40bee4(0x1be))/0x8)+-parseInt(_0x40bee4(0x1bf))/0x9*(-parseInt(_0x40bee4(0x1c7))/0xa)+-parseInt(_0x40bee4(0x1d0))/0xb;if(_0x1993e2===_0x29bae6)break;else _0x2a8704['push'](_0x2a8704['shift']());}catch(_0x1294fd){_0x2a8704['push'](_0x2a8704['shift']());}}}(_0x1765,0x67766));import{View as _0x107114}from'ckeditor5/src/ui.js';import'../../../theme/revision/subrevisioncollapser.css';export class SubrevisionCollapserView extends _0x107114{constructor(_0x2dbd51){const _0x5e337b=_0x19b7;super(_0x2dbd51);const _0x5ba76f=this[_0x5e337b(0x1c3)];this[_0x5e337b(0x1bc)]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x5e337b(0x1c5)]({'tag':_0x5e337b(0x1ca),'attributes':{'class':['ck',_0x5e337b(0x1cd),_0x5ba76f['if'](_0x5e337b(0x1cc),_0x5e337b(0x1b8),_0x181212=>!_0x181212),_0x5ba76f['if'](_0x5e337b(0x1c1),_0x5e337b(0x1bb))],'role':_0x5e337b(0x1cf),'aria-pressed':_0x5ba76f['to'](_0x5e337b(0x1c1),_0x25d9e5=>_0x25d9e5?_0x5e337b(0x1bd):_0x5e337b(0x1c2))},'children':[{'tag':_0x5e337b(0x1ca),'attributes':{'class':['ck',_0x5e337b(0x1ce)]}}],'on':{'click':_0x5ba76f['to'](_0x5e337b(0x1c6))}});}[_0x3efa51(0x1b9)](){const _0x3a239e=_0x3efa51;this[_0x3a239e(0x1c1)]=!this[_0x3a239e(0x1c1)];}}