UNPKG

@ckeditor/ckeditor5-revision-history

Version:

Document revision history feature for CKEditor 5.

23 lines 3.74 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 _0x1aa168=_0x4dd8;(function(_0x460b14,_0x1d711c){const _0x2843a6=_0x4dd8,_0x541d08=_0x460b14();while(!![]){try{const _0x4f98aa=-parseInt(_0x2843a6(0x15c))/0x1*(parseInt(_0x2843a6(0x166))/0x2)+-parseInt(_0x2843a6(0x172))/0x3+parseInt(_0x2843a6(0x169))/0x4*(-parseInt(_0x2843a6(0x170))/0x5)+-parseInt(_0x2843a6(0x173))/0x6*(-parseInt(_0x2843a6(0x174))/0x7)+-parseInt(_0x2843a6(0x175))/0x8*(-parseInt(_0x2843a6(0x157))/0x9)+parseInt(_0x2843a6(0x162))/0xa+parseInt(_0x2843a6(0x155))/0xb*(parseInt(_0x2843a6(0x15f))/0xc);if(_0x4f98aa===_0x1d711c)break;else _0x541d08['push'](_0x541d08['shift']());}catch(_0x873ab2){_0x541d08['push'](_0x541d08['shift']());}}}(_0x1e73,0x5e020));import{View as _0x1c86b7}from'ckeditor5/src/ui.js';import{getTranslation as _0x18cd25}from'../../utils/common-translations.js';function _0x4dd8(_0x6dae1d,_0xcb0fd2){const _0x1e73f9=_0x1e73();return _0x4dd8=function(_0x4dd84e,_0x806fdd){_0x4dd84e=_0x4dd84e-0x155;let _0xe4618a=_0x1e73f9[_0x4dd84e];return _0xe4618a;},_0x4dd8(_0x6dae1d,_0xcb0fd2);}export class ChangeDetailsView extends _0x1c86b7{[_0x1aa168(0x16a)];[_0x1aa168(0x16b)];constructor(_0x402952,_0xa45817){const _0xf75202=_0x1aa168;super(_0x402952),this[_0xf75202(0x16b)]=_0xa45817,this[_0xf75202(0x16a)]=_0xa45817['id'];const _0x5dc0c4=this[_0xf75202(0x158)],_0x21d0d6=_0x18cd25(_0x402952,_0xa45817[_0xf75202(0x15d)][_0xf75202(0x176)]?_0xf75202(0x163):_0xf75202(0x165)==_0xa45817[_0xf75202(0x15e)]?_0xf75202(0x156):_0xf75202(0x168));this[_0xf75202(0x16d)](_0xf75202(0x15e),_0xa45817[_0xf75202(0x15e)]),this[_0xf75202(0x164)]({'tag':_0xf75202(0x15b),'attributes':{'class':[_0xf75202(0x16e),_0xf75202(0x171),_0x5dc0c4['to'](_0xf75202(0x15e),_0x344fbc=>_0xf75202(0x161)+_0x344fbc)],'tabindex':-0x1},'children':[{'tag':_0xf75202(0x15a),'children':[{'tag':_0xf75202(0x15a),'attributes':{'class':[_0xf75202(0x167)]},'children':[{'text':_0x21d0d6}]},{'text':'\x20'+_0xa45817[_0xf75202(0x160)][_0xf75202(0x16c)]}]}]});}[_0x1aa168(0x159)](){const _0x9b95c=_0x1aa168;this[_0x9b95c(0x16f)][_0x9b95c(0x159)]();}}function _0x1e73(){const _0x3f8d4d=['7GRqADr','9240QRxaiE','isSuggestion','1067twjNnz','Added\x20by','387NcFUtr','bindTemplate','focus','span','div','79293UADitO','data','type','102756KXSsgH','author','ck-revision-change__','2676700CkGMvN','Suggested\x20by','setTemplate','add','14ZAxLLf','ck-revision-change__label','Removed\x20by','70088juMURq','changeId','_model','name','set','ck-annotation','element','20QsoCrc','ck-revision-change','1409166YmZYZL','1991826uAdsbt'];_0x1e73=function(){return _0x3f8d4d;};return _0x1e73();}