@ckeditor/ckeditor5-revision-history
Version:
Document revision history feature for CKEditor 5.
23 lines • 4.05 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 _0x4d6c14=_0x38b4;function _0x4827(){const _0x20b2cc=['clientWidth','Revision\x20name','_tooltipString','4466572LmvJdm','input','44533qliKSa','scrollWidth','6529167cRFVOD','placeholder','Enter\x20the\x20revision\x20name','render','destroy','span','bindTemplate','fieldView','18068380DoDULO','209460dBcdME','element','ck-tooltip_multi-line','value','extendTemplate','listenTo','3AKdePa','802064TZWezF','24JAYvQe','4201385sRlPwV','set','ck-revision-history-sidebar__revision-name','105MfqgDR','_updateTooltipText','_resizeObserver'];_0x4827=function(){return _0x20b2cc;};return _0x4827();}(function(_0x21df53,_0x4e7c6a){const _0x3ce26a=_0x38b4,_0x18106b=_0x21df53();while(!![]){try{const _0x7e2c1a=parseInt(_0x3ce26a(0x19d))/0x1*(-parseInt(_0x3ce26a(0x191))/0x2)+parseInt(_0x3ce26a(0x18f))/0x3*(-parseInt(_0x3ce26a(0x19b))/0x4)+parseInt(_0x3ce26a(0x192))/0x5+-parseInt(_0x3ce26a(0x189))/0x6*(-parseInt(_0x3ce26a(0x195))/0x7)+-parseInt(_0x3ce26a(0x190))/0x8+-parseInt(_0x3ce26a(0x180))/0x9+parseInt(_0x3ce26a(0x188))/0xa;if(_0x7e2c1a===_0x4e7c6a)break;else _0x18106b['push'](_0x18106b['shift']());}catch(_0x29fb72){_0x18106b['push'](_0x18106b['shift']());}}}(_0x4827,0xa96f5));import{LabeledFieldView as _0x32cfb0}from'ckeditor5/src/ui.js';import{ResizeObserver as _0x5d2aa8}from'ckeditor5/src/utils.js';import{getTranslation as _0x1c2275}from'../../utils/common-translations.js';import'../../../theme/revision/revisionname.css';function _0x38b4(_0x78a7de,_0x4a8992){const _0x4827cc=_0x4827();return _0x38b4=function(_0x38b412,_0x2a69ef){_0x38b412=_0x38b412-0x17f;let _0x51a8dd=_0x4827cc[_0x38b412];return _0x51a8dd;},_0x38b4(_0x78a7de,_0x4a8992);}export class RevisionNameView extends _0x32cfb0{[_0x4d6c14(0x197)]=null;constructor(_0x430167,_0x5a7b0a){const _0x1ef41a=_0x4d6c14;super(_0x430167,_0x5a7b0a);const _0x529292=this[_0x1ef41a(0x186)];this[_0x1ef41a(0x193)]({'label':_0x1c2275(_0x430167,_0x1ef41a(0x199)),'_tooltipString':''}),this[_0x1ef41a(0x187)][_0x1ef41a(0x181)]=_0x1c2275(_0x430167,_0x1ef41a(0x182)),this[_0x1ef41a(0x18d)]({'tag':_0x1ef41a(0x185),'attributes':{'class':[_0x1ef41a(0x194)],'data-cke-tooltip-text':_0x529292['to'](_0x1ef41a(0x19a)),'data-cke-tooltip-position':'s','data-cke-tooltip-class':_0x1ef41a(0x18b)}});}[_0x4d6c14(0x183)](){const _0x1a9a65=_0x4d6c14;super[_0x1a9a65(0x183)](),this[_0x1a9a65(0x197)]=new _0x5d2aa8(this[_0x1a9a65(0x187)][_0x1a9a65(0x18a)],()=>this[_0x1a9a65(0x196)]()),this[_0x1a9a65(0x18e)](this[_0x1a9a65(0x187)],_0x1a9a65(0x19c),()=>this[_0x1a9a65(0x196)]());}[_0x4d6c14(0x184)](){const _0x939990=_0x4d6c14;super[_0x939990(0x184)](),this[_0x939990(0x197)]&&this[_0x939990(0x197)][_0x939990(0x184)]();}[_0x4d6c14(0x196)](){const _0x2bcbe7=_0x4d6c14,_0x3e9928=this[_0x2bcbe7(0x187)][_0x2bcbe7(0x18a)];this[_0x2bcbe7(0x19a)]=_0x3e9928[_0x2bcbe7(0x17f)]>_0x3e9928[_0x2bcbe7(0x198)]&&_0x3e9928[_0x2bcbe7(0x18c)]||'';}}