UNPKG

@ckeditor/ckeditor5-revision-history

Version:

Document revision history feature for CKEditor 5.

23 lines 3.69 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. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ function _0x1fe8(){const _0x5aae51=['56hJhDkP','794811OkkSmJ','type','element','focus','1659830QpzyWN','10EKGdFc','2155XKXyYf','799648JSAhcl','author','768834mGvqFJ','1zfZEfC','2822677YWfjpu','_model','set','ck-revision-change__label','ck-revision-change__','add','span','div','data','changeId','Removed\x20by','4772IyhHBN','name','ck-revision-change','4001424GhDHyN','Suggested\x20by','setTemplate','ck-annotation','bindTemplate','Added\x20by','isSuggestion'];_0x1fe8=function(){return _0x5aae51;};return _0x1fe8();}const _0x589732=_0x1692;function _0x1692(_0x526250,_0x3e7178){const _0x1fe859=_0x1fe8();return _0x1692=function(_0x1692e4,_0x3321ce){_0x1692e4=_0x1692e4-0x134;let _0x317745=_0x1fe859[_0x1692e4];return _0x317745;},_0x1692(_0x526250,_0x3e7178);}(function(_0x25e517,_0x1163e6){const _0x5b6d12=_0x1692,_0x29f110=_0x25e517();while(!![]){try{const _0x3564e9=parseInt(_0x5b6d12(0x13f))/0x1*(-parseInt(_0x5b6d12(0x139))/0x2)+-parseInt(_0x5b6d12(0x135))/0x3+parseInt(_0x5b6d12(0x14b))/0x4*(parseInt(_0x5b6d12(0x13b))/0x5)+parseInt(_0x5b6d12(0x14e))/0x6+-parseInt(_0x5b6d12(0x134))/0x7*(-parseInt(_0x5b6d12(0x13c))/0x8)+parseInt(_0x5b6d12(0x13e))/0x9+parseInt(_0x5b6d12(0x13a))/0xa*(-parseInt(_0x5b6d12(0x140))/0xb);if(_0x3564e9===_0x1163e6)break;else _0x29f110['push'](_0x29f110['shift']());}catch(_0x4e422c){_0x29f110['push'](_0x29f110['shift']());}}}(_0x1fe8,0xae7ce));import{View as _0x27df6c}from'ckeditor5/src/ui.js';import{getTranslation as _0x2b26be}from'../../utils/common-translations.js';export default class Q extends _0x27df6c{[_0x589732(0x149)];[_0x589732(0x141)];constructor(_0x4499c4,_0x223ecb){const _0x2f07c1=_0x589732;super(_0x4499c4),this[_0x2f07c1(0x141)]=_0x223ecb,this[_0x2f07c1(0x149)]=_0x223ecb['id'];const _0x20bf90=this[_0x2f07c1(0x152)],_0x37e5ee=_0x2b26be(_0x4499c4,_0x223ecb[_0x2f07c1(0x148)][_0x2f07c1(0x154)]?_0x2f07c1(0x14f):_0x2f07c1(0x145)==_0x223ecb[_0x2f07c1(0x136)]?_0x2f07c1(0x153):_0x2f07c1(0x14a));this[_0x2f07c1(0x142)](_0x2f07c1(0x136),_0x223ecb[_0x2f07c1(0x136)]),this[_0x2f07c1(0x150)]({'tag':_0x2f07c1(0x147),'attributes':{'class':[_0x2f07c1(0x151),_0x2f07c1(0x14d),_0x20bf90['to'](_0x2f07c1(0x136),_0xabd1d1=>_0x2f07c1(0x144)+_0xabd1d1)],'tabindex':-0x1},'children':[{'tag':_0x2f07c1(0x146),'children':[{'tag':_0x2f07c1(0x146),'attributes':{'class':[_0x2f07c1(0x143)]},'children':[{'text':_0x37e5ee}]},{'text':'\x20'+_0x223ecb[_0x2f07c1(0x13d)][_0x2f07c1(0x14c)]}]}]});}[_0x589732(0x138)](){const _0x4f1d74=_0x589732;this[_0x4f1d74(0x137)][_0x4f1d74(0x138)]();}}