UNPKG

@ckeditor/ckeditor5-revision-history

Version:

Document revision history feature for CKEditor 5.

23 lines 5.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 _0x3a6890=_0x5230;function _0x2751(){const _0x4151ba=['stopPropagation','optional','trim','ck-revision-history-save-revision-form','ck-responsive-form','arrowup','4167800jBYnSe','162RRmwDa','label','keystrokes','revisionNameInputView','1833DNyqTO','render','41433WrnIIp','220','extendTemplate','Name\x20of\x20the\x20revision','arrowleft','arrowright','value','revisionName','setTemplate','focusTracker','_createRevisionNameInput','add','locale','listenTo','form','fieldView','input','372egGamD','533912nHRVbx','errorText','27068190uymqnP','1145930ydaUIv','set','arrowdown','2932MdVzxD','revisionNameInputValue','4180905HaODeh','focus','reset','element'];_0x2751=function(){return _0x4151ba;};return _0x2751();}(function(_0x30f095,_0x4d469b){const _0x39df88=_0x5230,_0x5b3388=_0x30f095();while(!![]){try{const _0x2ee9f3=-parseInt(_0x39df88(0x15d))/0x1+parseInt(_0x39df88(0x135))/0x2*(parseInt(_0x39df88(0x146))/0x3)+-parseInt(_0x39df88(0x141))/0x4+parseInt(_0x39df88(0x137))/0x5+-parseInt(_0x39df88(0x159))/0x6*(parseInt(_0x39df88(0x148))/0x7)+-parseInt(_0x39df88(0x15a))/0x8*(parseInt(_0x39df88(0x142))/0x9)+parseInt(_0x39df88(0x15c))/0xa;if(_0x2ee9f3===_0x4d469b)break;else _0x5b3388['push'](_0x5b3388['shift']());}catch(_0x1b6a87){_0x5b3388['push'](_0x5b3388['shift']());}}}(_0x2751,0xa6a46));import{LabeledFieldView as _0x11c38e,View as _0x4f41b5,createLabeledInputText as _0x2cfc10,injectCssTransitionDisabler as _0x2a79fe,submitHandler as _0x3766e1}from'ckeditor5/src/ui.js';function _0x5230(_0x3185e9,_0x1796b3){const _0x2751f3=_0x2751();return _0x5230=function(_0x5230c2,_0x18579a){_0x5230c2=_0x5230c2-0x133;let _0x388722=_0x2751f3[_0x5230c2];return _0x388722;},_0x5230(_0x3185e9,_0x1796b3);}import{FocusTracker as _0x29598d,KeystrokeHandler as _0x33e131}from'ckeditor5/src/utils.js';import{getTranslation as _0x2db11f}from'../../utils/common-translations.js';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class os extends _0x4f41b5{[_0x3a6890(0x151)];[_0x3a6890(0x144)];[_0x3a6890(0x145)];constructor(_0x402d88,_0x26bb47){const _0x481f84=_0x3a6890;super(_0x402d88),this[_0x481f84(0x151)]=new _0x29598d(),this[_0x481f84(0x144)]=new _0x33e131(),this[_0x481f84(0x133)](_0x481f84(0x136),''),this[_0x481f84(0x145)]=this[_0x481f84(0x152)](_0x26bb47),this[_0x481f84(0x150)]({'tag':_0x481f84(0x156),'attributes':{'class':['ck',_0x481f84(0x13e),_0x481f84(0x13f)],'tabindex':'-1'},'children':[this[_0x481f84(0x145)]]}),_0x2a79fe(this);}[_0x3a6890(0x147)](){const _0x56da56=_0x3a6890;super[_0x56da56(0x147)](),_0x3766e1({'view':this}),this[_0x56da56(0x151)][_0x56da56(0x153)](this[_0x56da56(0x145)][_0x56da56(0x13a)]),this[_0x56da56(0x144)][_0x56da56(0x155)](this[_0x56da56(0x13a)]);const _0x432276=_0x5da627=>_0x5da627[_0x56da56(0x13b)]();this[_0x56da56(0x144)][_0x56da56(0x133)](_0x56da56(0x14d),_0x432276),this[_0x56da56(0x144)][_0x56da56(0x133)](_0x56da56(0x14c),_0x432276),this[_0x56da56(0x144)][_0x56da56(0x133)](_0x56da56(0x140),_0x432276),this[_0x56da56(0x144)][_0x56da56(0x133)](_0x56da56(0x134),_0x432276);}[_0x3a6890(0x138)](){const _0x3ed64e=_0x3a6890;this[_0x3ed64e(0x145)][_0x3ed64e(0x138)]();}get[_0x3a6890(0x14f)](){const _0x163d24=_0x3a6890;return this[_0x163d24(0x145)][_0x163d24(0x157)][_0x163d24(0x13a)][_0x163d24(0x14e)][_0x163d24(0x13d)]();}set[_0x3a6890(0x14f)](_0x22c197){const _0x22ea6a=_0x3a6890;this[_0x22ea6a(0x145)][_0x22ea6a(0x157)][_0x22ea6a(0x13a)][_0x22ea6a(0x14e)]=_0x22c197[_0x22ea6a(0x13d)]();}[_0x3a6890(0x139)](){const _0x3deb83=_0x3a6890;this[_0x3deb83(0x145)][_0x3deb83(0x157)][_0x3deb83(0x13a)][_0x3deb83(0x14e)]='',this[_0x3deb83(0x145)][_0x3deb83(0x15b)]=null;}[_0x3a6890(0x152)](_0x123b33){const _0x46c0cd=_0x3a6890,_0x24da54=new _0x11c38e(this[_0x46c0cd(0x154)],_0x2cfc10),_0x1b8951=_0x24da54[_0x46c0cd(0x157)];_0x1b8951[_0x46c0cd(0x14a)]({'attributes':{'maxlength':_0x46c0cd(0x149)}});let _0x22b2f7=_0x2db11f(this[_0x46c0cd(0x154)],_0x46c0cd(0x14b));return!_0x123b33&&(_0x22b2f7+='\x20('+_0x2db11f(this[_0x46c0cd(0x154)],_0x46c0cd(0x13c))+')'),(_0x24da54[_0x46c0cd(0x143)]=_0x22b2f7,_0x1b8951['on'](_0x46c0cd(0x158),()=>{const _0x4adeb3=_0x46c0cd;this[_0x4adeb3(0x136)]=_0x1b8951[_0x4adeb3(0x13a)][_0x4adeb3(0x14e)][_0x4adeb3(0x13d)]();}),_0x24da54);}}