UNPKG

@ckeditor/ckeditor5-revision-history

Version:

Document revision history feature for CKEditor 5.

23 lines 4.04 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 _0x334af2=_0x3af1;function _0x5f08(){const _0x57be36=['1581558rFNojl','_updateTooltipText','ck-revision-history-sidebar__revision-name','listenTo','2242908fMFZWr','490TSAygW','extendTemplate','render','span','value','input','fieldView','21ivLgPl','326914ATBEYb','_tooltipString','143385wObgfL','5raeOsk','Enter\x20the\x20revision\x20name','_resizeObserver','Revision\x20name','destroy','8609272PGSgBc','bindTemplate','clientWidth','placeholder','ck-tooltip_multi-line','scrollWidth','347562Dpbiir','set','element','5015308qXETIH'];_0x5f08=function(){return _0x57be36;};return _0x5f08();}(function(_0x4b9338,_0xfe422c){const _0x3bdc39=_0x3af1,_0x4a67ee=_0x4b9338();while(!![]){try{const _0x4f4b36=-parseInt(_0x3bdc39(0x1fa))/0x1+-parseInt(_0x3bdc39(0x1f8))/0x2+parseInt(_0x3bdc39(0x1eb))/0x3+parseInt(_0x3bdc39(0x1ea))/0x4*(-parseInt(_0x3bdc39(0x1fb))/0x5)+-parseInt(_0x3bdc39(0x1ef))/0x6*(parseInt(_0x3bdc39(0x1f7))/0x7)+parseInt(_0x3bdc39(0x200))/0x8+-parseInt(_0x3bdc39(0x1e7))/0x9*(-parseInt(_0x3bdc39(0x1f0))/0xa);if(_0x4f4b36===_0xfe422c)break;else _0x4a67ee['push'](_0x4a67ee['shift']());}catch(_0x24d6d6){_0x4a67ee['push'](_0x4a67ee['shift']());}}}(_0x5f08,0xc69c0));import{LabeledFieldView as _0x55b92b}from'ckeditor5/src/ui.js';import{ResizeObserver as _0x4f896b}from'ckeditor5/src/utils.js';function _0x3af1(_0x29945c,_0x583b9f){const _0x5f0894=_0x5f08();return _0x3af1=function(_0x3af1c4,_0x3a4f1e){_0x3af1c4=_0x3af1c4-0x1e7;let _0x2f2cc3=_0x5f0894[_0x3af1c4];return _0x2f2cc3;},_0x3af1(_0x29945c,_0x583b9f);}import{getTranslation as _0x505373}from'../../utils/common-translations.js';import'../../../theme/revision/revisionname.css';export default class lt extends _0x55b92b{[_0x334af2(0x1fd)]=null;constructor(_0x47c1bf,_0x58d308){const _0x222fff=_0x334af2;super(_0x47c1bf,_0x58d308);const _0x5e0a39=this[_0x222fff(0x201)];this[_0x222fff(0x1e8)]({'label':_0x505373(_0x47c1bf,_0x222fff(0x1fe)),'_tooltipString':''}),this[_0x222fff(0x1f6)][_0x222fff(0x203)]=_0x505373(_0x47c1bf,_0x222fff(0x1fc)),this[_0x222fff(0x1f1)]({'tag':_0x222fff(0x1f3),'attributes':{'class':[_0x222fff(0x1ed)],'data-cke-tooltip-text':_0x5e0a39['to'](_0x222fff(0x1f9)),'data-cke-tooltip-position':'s','data-cke-tooltip-class':_0x222fff(0x204)}});}[_0x334af2(0x1f2)](){const _0xe557a2=_0x334af2;super[_0xe557a2(0x1f2)](),this[_0xe557a2(0x1fd)]=new _0x4f896b(this[_0xe557a2(0x1f6)][_0xe557a2(0x1e9)],()=>this[_0xe557a2(0x1ec)]()),this[_0xe557a2(0x1ee)](this[_0xe557a2(0x1f6)],_0xe557a2(0x1f5),()=>this[_0xe557a2(0x1ec)]());}[_0x334af2(0x1ff)](){const _0x3b0887=_0x334af2;super[_0x3b0887(0x1ff)](),this[_0x3b0887(0x1fd)]&&this[_0x3b0887(0x1fd)][_0x3b0887(0x1ff)]();}[_0x334af2(0x1ec)](){const _0x26515b=_0x334af2,_0x317a08=this[_0x26515b(0x1f6)][_0x26515b(0x1e9)];this[_0x26515b(0x1f9)]=_0x317a08[_0x26515b(0x205)]>_0x317a08[_0x26515b(0x202)]&&_0x317a08[_0x26515b(0x1f4)]||'';}}