@ckeditor/ckeditor5-revision-history
Version:
Document revision history feature for CKEditor 5.
23 lines • 5.8 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 _0x108545=_0x6186;(function(_0x33478f,_0x3c67fa){const _0x54b0ae=_0x6186,_0x4b4bd3=_0x33478f();while(!![]){try{const _0x347f39=-parseInt(_0x54b0ae(0x17e))/0x1+parseInt(_0x54b0ae(0x18c))/0x2+parseInt(_0x54b0ae(0x17f))/0x3+-parseInt(_0x54b0ae(0x188))/0x4*(-parseInt(_0x54b0ae(0x195))/0x5)+parseInt(_0x54b0ae(0x16d))/0x6*(parseInt(_0x54b0ae(0x181))/0x7)+-parseInt(_0x54b0ae(0x19b))/0x8+parseInt(_0x54b0ae(0x16f))/0x9*(parseInt(_0x54b0ae(0x171))/0xa);if(_0x347f39===_0x3c67fa)break;else _0x4b4bd3['push'](_0x4b4bd3['shift']());}catch(_0xf38e03){_0x4b4bd3['push'](_0x4b4bd3['shift']());}}}(_0x2d6a,0xa6c1b));import{Plugin as _0x4648e2}from'ckeditor5/src/core.js';import{ButtonView as _0x5a3245}from'ckeditor5/src/ui.js';function _0x2d6a(){const _0x16c6fb=['RevisionViewerUI','pluginName','794640RfzXPp','isPremiumPlugin','requires','Restore\x20this\x20revision','isNavigationMode','currentChangeNumber','commands','listenTo','isForwardNavigationEnabled','125iILbHU','config','set','isEnabled','plugins','hide','9852360tlTxsr','showNextChange','30426oxezHG','revisionHistory','5067atvIFu','ck-revision-history-ui__back-to-editing','7070ZdaJDT','closeRevisionViewerCallback','componentFactory','bind','restoreRevision','add','execute','isReady','change:isReady','showPreviousChange','editor','changesNavigation','forward','1247808KvLTzI','4007841UEVdpn','Back\x20to\x20editing','1085wMoVke','isBackwardNavigationEnabled','show','get','isOfficialPlugin','init','exitToEditing','39212erOsUn','numberOfChanges'];_0x2d6a=function(){return _0x16c6fb;};return _0x2d6a();}import{IconUndo as _0x44565a}from'ckeditor5/src/icons.js';function _0x6186(_0x5cfc47,_0xb80d72){const _0x2d6aa6=_0x2d6a();return _0x6186=function(_0x6186c9,_0x450fff){_0x6186c9=_0x6186c9-0x16c;let _0x1a36e4=_0x2d6aa6[_0x6186c9];return _0x1a36e4;},_0x6186(_0x5cfc47,_0xb80d72);}import{ChangesNavigationView as _0x1f5bd7}from'./changesnavigationview.js';import{RevisionViewer as _0x344af2}from'./../../revisionviewer.js';import{RevisionViewerLoadingOverlay as _0x1cc9f3}from'./revisionviewerloadingoverlay.js';import{getTranslation as _0x3b46ee}from'../../utils/common-translations.js';import'../../../theme/revisionviewer.css';export class RevisionViewerUI extends _0x4648e2{static get[_0x108545(0x18b)](){const _0x25ca25=_0x108545;return _0x25ca25(0x18a);}static get[_0x108545(0x185)](){return!0x0;}static get[_0x108545(0x18d)](){return!0x0;}static get[_0x108545(0x18e)](){return[_0x344af2,_0x1cc9f3];}[_0x108545(0x186)](){const _0x19ebd3=_0x108545,_0x23817d=this[_0x19ebd3(0x17b)],_0x4cb1e4=_0x23817d[_0x19ebd3(0x199)][_0x19ebd3(0x184)](_0x344af2),_0x1a8d2d=_0x23817d[_0x19ebd3(0x199)][_0x19ebd3(0x184)](_0x1cc9f3);_0x23817d['ui'][_0x19ebd3(0x173)][_0x19ebd3(0x176)](_0x19ebd3(0x187),_0x3a2079=>{const _0x1e846f=_0x19ebd3,_0x363168=new _0x5a3245(_0x3a2079);return _0x363168[_0x1e846f(0x197)]({'label':_0x3b46ee(_0x3a2079,_0x1e846f(0x180)),'icon':_0x44565a,'withText':!0x0,'tooltip':!0x0,'class':_0x1e846f(0x170)}),this[_0x1e846f(0x193)](_0x363168,_0x1e846f(0x177),()=>{const _0x57ed29=_0x1e846f;_0x23817d[_0x57ed29(0x196)][_0x57ed29(0x184)](_0x57ed29(0x16e))[_0x57ed29(0x172)]();}),_0x363168;}),_0x23817d['ui'][_0x19ebd3(0x173)][_0x19ebd3(0x176)](_0x19ebd3(0x175),_0x2b9660=>{const _0x1c4683=_0x19ebd3,_0x32ca43=new _0x5a3245(_0x2b9660);return _0x32ca43[_0x1c4683(0x197)]({'label':_0x3b46ee(_0x2b9660,_0x1c4683(0x18f)),'withText':!0x0,'tooltip':!0x0}),_0x32ca43[_0x1c4683(0x174)](_0x1c4683(0x198))['to'](_0x23817d[_0x1c4683(0x192)][_0x1c4683(0x184)](_0x1c4683(0x175))),this[_0x1c4683(0x193)](_0x32ca43,_0x1c4683(0x177),()=>_0x23817d[_0x1c4683(0x177)](_0x1c4683(0x175))),_0x32ca43;}),_0x23817d['ui'][_0x19ebd3(0x173)][_0x19ebd3(0x176)](_0x19ebd3(0x17c),_0x49b2aa=>{const _0x4dcf42=_0x19ebd3,_0x397fe8=new _0x1f5bd7(_0x49b2aa),_0x2f6cb2=_0x23817d[_0x4dcf42(0x192)][_0x4dcf42(0x184)](_0x4dcf42(0x17a)),_0x23ed63=_0x23817d[_0x4dcf42(0x192)][_0x4dcf42(0x184)](_0x4dcf42(0x16c));return _0x397fe8[_0x4dcf42(0x174)](_0x4dcf42(0x182))['to'](_0x2f6cb2,_0x4dcf42(0x198)),_0x397fe8[_0x4dcf42(0x174)](_0x4dcf42(0x194))['to'](_0x23ed63,_0x4dcf42(0x198)),_0x397fe8[_0x4dcf42(0x174)](_0x4dcf42(0x178),_0x4dcf42(0x191),_0x4dcf42(0x189),_0x4dcf42(0x190))['to'](_0x4cb1e4),this[_0x4dcf42(0x193)](_0x397fe8,_0x4dcf42(0x177),(_0x1eccf2,_0x24a74e)=>{const _0x55e466=_0x4dcf42;_0x23817d[_0x55e466(0x177)](_0x55e466(0x17d)===_0x24a74e?_0x55e466(0x16c):_0x55e466(0x17a));}),_0x397fe8;}),_0x1a8d2d[_0x19ebd3(0x183)](),_0x4cb1e4['on'](_0x19ebd3(0x179),(_0x31f4dc,_0x503f3e,_0xb07497)=>{const _0x26142e=_0x19ebd3;_0xb07497?_0x1a8d2d[_0x26142e(0x19a)]():_0x1a8d2d[_0x26142e(0x183)]();});}}