UNPKG

@ckeditor/ckeditor5-revision-history

Version:

Document revision history feature for CKEditor 5.

24 lines 5.63 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 _0x1ec175=_0x2fd5;(function(_0x32db15,_0x56a6a8){const _0xc7c106=_0x2fd5,_0x439355=_0x32db15();while(!![]){try{const _0x3745fc=parseInt(_0xc7c106(0x194))/0x1+parseInt(_0xc7c106(0x19e))/0x2*(-parseInt(_0xc7c106(0x1a1))/0x3)+parseInt(_0xc7c106(0x19b))/0x4+-parseInt(_0xc7c106(0x195))/0x5+parseInt(_0xc7c106(0x19c))/0x6*(parseInt(_0xc7c106(0x18f))/0x7)+parseInt(_0xc7c106(0x1ad))/0x8*(-parseInt(_0xc7c106(0x187))/0x9)+-parseInt(_0xc7c106(0x1aa))/0xa*(-parseInt(_0xc7c106(0x199))/0xb);if(_0x3745fc===_0x56a6a8)break;else _0x439355['push'](_0x439355['shift']());}catch(_0x5dd8f1){_0x439355['push'](_0x439355['shift']());}}}(_0x5eaf,0x934f7));import{CssTransitionDisablerMixin as _0x27eb6f,LabeledFieldView as _0x9f6eb3,View as _0x5c00c5,createLabeledInputText as _0x2e655e,submitHandler as _0x2cef8c}from'ckeditor5/src/ui.js';import{FocusTracker as _0x5d654e,KeystrokeHandler as _0x3db860}from'ckeditor5/src/utils.js';function _0x5eaf(){const _0x2ced11=['66kRhlws','element','78nIBmnf','focusTracker','arrowdown','32685EGveXo','arrowright','revisionNameInputValue','arrowup','revisionName','stopPropagation','errorText','listenTo','ck-responsive-form','271020ZPBnwl','add','optional','3435776CGWDXM','ck-revision-history-save-revision-form','form','reset','render','locale','set','9bYAoKR','input','arrowleft','setTemplate','focus','label','value','220','64617XBgSkh','fieldView','trim','revisionNameInputView','Name\x20of\x20the\x20revision','1141119uFltlf','2393365AOpniL','keystrokes','initializeCssTransitionDisablerMixin','_createRevisionNameInput','99nYMKPM','extendTemplate','1799420BhvvOx'];_0x5eaf=function(){return _0x2ced11;};return _0x5eaf();}import{getTranslation as _0x20a828}from'../../utils/common-translations.js';function _0x2fd5(_0x480064,_0x56286e){const _0x5eaf63=_0x5eaf();return _0x2fd5=function(_0x2fd51c,_0x5a5c03){_0x2fd51c=_0x2fd51c-0x184;let _0x5362e3=_0x5eaf63[_0x2fd51c];return _0x5362e3;},_0x2fd5(_0x480064,_0x56286e);}import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export class RevisionHistorySaveRevisionFormView extends/* #__PURE__ -- @preserve */ _0x27eb6f(_0x5c00c5){[_0x1ec175(0x19f)];[_0x1ec175(0x196)];[_0x1ec175(0x192)];constructor(_0x431bd6,_0x1866d9){const _0x3afe66=_0x1ec175;super(_0x431bd6),this[_0x3afe66(0x19f)]=new _0x5d654e(),this[_0x3afe66(0x196)]=new _0x3db860(),this[_0x3afe66(0x186)](_0x3afe66(0x1a3),''),this[_0x3afe66(0x192)]=this[_0x3afe66(0x198)](_0x1866d9),this[_0x3afe66(0x18a)]({'tag':_0x3afe66(0x1af),'attributes':{'class':['ck',_0x3afe66(0x1ae),_0x3afe66(0x1a9)],'tabindex':'-1'},'children':[this[_0x3afe66(0x192)]]}),this[_0x3afe66(0x197)]();}[_0x1ec175(0x184)](){const _0x305618=_0x1ec175;super[_0x305618(0x184)](),_0x2cef8c({'view':this}),this[_0x305618(0x19f)][_0x305618(0x1ab)](this[_0x305618(0x192)][_0x305618(0x19d)]),this[_0x305618(0x196)][_0x305618(0x1a8)](this[_0x305618(0x19d)]);const _0x30cfee=_0x26a896=>_0x26a896[_0x305618(0x1a6)]();this[_0x305618(0x196)][_0x305618(0x186)](_0x305618(0x1a2),_0x30cfee),this[_0x305618(0x196)][_0x305618(0x186)](_0x305618(0x189),_0x30cfee),this[_0x305618(0x196)][_0x305618(0x186)](_0x305618(0x1a4),_0x30cfee),this[_0x305618(0x196)][_0x305618(0x186)](_0x305618(0x1a0),_0x30cfee);}[_0x1ec175(0x18b)](){const _0x5d3af4=_0x1ec175;this[_0x5d3af4(0x192)][_0x5d3af4(0x18b)]();}get[_0x1ec175(0x1a5)](){const _0x5a557d=_0x1ec175;return this[_0x5a557d(0x192)][_0x5a557d(0x190)][_0x5a557d(0x19d)][_0x5a557d(0x18d)][_0x5a557d(0x191)]();}set[_0x1ec175(0x1a5)](_0x57a296){const _0x993c6=_0x1ec175;this[_0x993c6(0x192)][_0x993c6(0x190)][_0x993c6(0x19d)][_0x993c6(0x18d)]=_0x57a296[_0x993c6(0x191)]();}[_0x1ec175(0x1b0)](){const _0x4ed410=_0x1ec175;this[_0x4ed410(0x192)][_0x4ed410(0x190)][_0x4ed410(0x19d)][_0x4ed410(0x18d)]='',this[_0x4ed410(0x192)][_0x4ed410(0x1a7)]=null;}[_0x1ec175(0x198)](_0x49e8af){const _0xa91254=_0x1ec175,_0x21d905=new _0x9f6eb3(this[_0xa91254(0x185)],_0x2e655e),_0x307ebd=_0x21d905[_0xa91254(0x190)];_0x307ebd[_0xa91254(0x19a)]({'attributes':{'maxlength':_0xa91254(0x18e)}});let _0x2f9334=_0x20a828(this[_0xa91254(0x185)],_0xa91254(0x193));return!_0x49e8af&&(_0x2f9334+='\x20('+_0x20a828(this[_0xa91254(0x185)],_0xa91254(0x1ac))+')'),(_0x21d905[_0xa91254(0x18c)]=_0x2f9334,_0x307ebd['on'](_0xa91254(0x188),()=>{const _0x360d7e=_0xa91254;this[_0x360d7e(0x1a3)]=_0x307ebd[_0x360d7e(0x19d)][_0x360d7e(0x18d)][_0x360d7e(0x191)]();}),_0x21d905);}}