UNPKG

@ckeditor/ckeditor5-revision-history

Version:

Document revision history feature for CKEditor 5.

23 lines 5.78 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 _0x3e0ce5=_0x30f1;(function(_0x1389f7,_0x3bf68f){const _0x2c332f=_0x30f1,_0x1de0cd=_0x1389f7();while(!![]){try{const _0x4e993e=parseInt(_0x2c332f(0xe1))/0x1*(parseInt(_0x2c332f(0xfa))/0x2)+parseInt(_0x2c332f(0xe7))/0x3*(parseInt(_0x2c332f(0xdf))/0x4)+parseInt(_0x2c332f(0xed))/0x5*(parseInt(_0x2c332f(0xd4))/0x6)+parseInt(_0x2c332f(0xdb))/0x7*(-parseInt(_0x2c332f(0xe4))/0x8)+parseInt(_0x2c332f(0xe0))/0x9+parseInt(_0x2c332f(0x104))/0xa*(parseInt(_0x2c332f(0x105))/0xb)+-parseInt(_0x2c332f(0xec))/0xc*(parseInt(_0x2c332f(0xdd))/0xd);if(_0x4e993e===_0x3bf68f)break;else _0x1de0cd['push'](_0x1de0cd['shift']());}catch(_0x110f3d){_0x1de0cd['push'](_0x1de0cd['shift']());}}}(_0x20c9,0x59f1e));function _0x20c9(){const _0x15b260=['813046IOsznB','config','2695348wpbTgc','2453814JTdgOB','139FGPVRP','isPremiumPlugin','RevisionViewerUI','152NzjziV','Back\x20to\x20editing','isOfficialPlugin','3LKQVpw','exitToEditing','init','bind','plugins','408NJXDwj','15vEonlF','Restore\x20this\x20revision','change:isReady','currentChangeNumber','get','set','isEnabled','restoreRevision','showPreviousChange','revisionHistory','ck-revision-history-ui__back-to-editing','execute','isForwardNavigationEnabled','7172EdAQOF','closeRevisionViewerCallback','pluginName','listenTo','show','numberOfChanges','showNextChange','add','commands','requires','70aVDOqm','1126477xWCbow','editor','1438386lVKCLt','forward','isBackwardNavigationEnabled','changesNavigation','hide','isNavigationMode','componentFactory','142261MshFZX','isReady'];_0x20c9=function(){return _0x15b260;};return _0x20c9();}import{Plugin as _0x38f12f}from'ckeditor5/src/core.js';import{ButtonView as _0x30ea52}from'ckeditor5/src/ui.js';import{IconUndo as _0x6694ed}from'ckeditor5/src/icons.js';import _0x13cc44 from'./changesnavigationview.js';import _0x504999 from'./../../revisionviewer.js';import _0xeab2b2 from'./revisionviewerloadingoverlay.js';function _0x30f1(_0x5be375,_0xf61448){const _0x20c9a0=_0x20c9();return _0x30f1=function(_0x30f12a,_0x160b27){_0x30f12a=_0x30f12a-0xd3;let _0x572793=_0x20c9a0[_0x30f12a];return _0x572793;},_0x30f1(_0x5be375,_0xf61448);}import{getTranslation as _0xb26e52}from'../../utils/common-translations.js';import'../../../theme/revisionviewer.css';export default class R extends _0x38f12f{static get[_0x3e0ce5(0xfc)](){const _0x14dd44=_0x3e0ce5;return _0x14dd44(0xe3);}static get[_0x3e0ce5(0xe6)](){return!0x0;}static get[_0x3e0ce5(0xe2)](){return!0x0;}static get[_0x3e0ce5(0x103)](){return[_0x504999,_0xeab2b2];}[_0x3e0ce5(0xe9)](){const _0x7a80f0=_0x3e0ce5,_0x1a6932=this[_0x7a80f0(0xd3)],_0x594bb1=_0x1a6932[_0x7a80f0(0xeb)][_0x7a80f0(0xf1)](_0x504999),_0x65aab5=_0x1a6932[_0x7a80f0(0xeb)][_0x7a80f0(0xf1)](_0xeab2b2);_0x1a6932['ui'][_0x7a80f0(0xda)][_0x7a80f0(0x101)](_0x7a80f0(0xe8),_0x1b45a1=>{const _0x381f20=_0x7a80f0,_0x24253b=new _0x30ea52(_0x1b45a1);return _0x24253b[_0x381f20(0xf2)]({'label':_0xb26e52(_0x1b45a1,_0x381f20(0xe5)),'icon':_0x6694ed,'withText':!0x0,'tooltip':!0x0,'class':_0x381f20(0xf7)}),this[_0x381f20(0xfd)](_0x24253b,_0x381f20(0xf8),()=>{const _0xf6e4ea=_0x381f20;_0x1a6932[_0xf6e4ea(0xde)][_0xf6e4ea(0xf1)](_0xf6e4ea(0xf6))[_0xf6e4ea(0xfb)]();}),_0x24253b;}),_0x1a6932['ui'][_0x7a80f0(0xda)][_0x7a80f0(0x101)](_0x7a80f0(0xf4),_0x4254af=>{const _0x4e544f=_0x7a80f0,_0x4f47f8=new _0x30ea52(_0x4254af);return _0x4f47f8[_0x4e544f(0xf2)]({'label':_0xb26e52(_0x4254af,_0x4e544f(0xee)),'withText':!0x0,'tooltip':!0x0}),_0x4f47f8[_0x4e544f(0xea)](_0x4e544f(0xf3))['to'](_0x1a6932[_0x4e544f(0x102)][_0x4e544f(0xf1)](_0x4e544f(0xf4))),this[_0x4e544f(0xfd)](_0x4f47f8,_0x4e544f(0xf8),()=>_0x1a6932[_0x4e544f(0xf8)](_0x4e544f(0xf4))),_0x4f47f8;}),_0x1a6932['ui'][_0x7a80f0(0xda)][_0x7a80f0(0x101)](_0x7a80f0(0xd7),_0xdcbbaf=>{const _0x50f97f=_0x7a80f0,_0x3aa02e=new _0x13cc44(_0xdcbbaf),_0x553f36=_0x1a6932[_0x50f97f(0x102)][_0x50f97f(0xf1)](_0x50f97f(0xf5)),_0x4741d7=_0x1a6932[_0x50f97f(0x102)][_0x50f97f(0xf1)](_0x50f97f(0x100));return _0x3aa02e[_0x50f97f(0xea)](_0x50f97f(0xd6))['to'](_0x553f36,_0x50f97f(0xf3)),_0x3aa02e[_0x50f97f(0xea)](_0x50f97f(0xf9))['to'](_0x4741d7,_0x50f97f(0xf3)),_0x3aa02e[_0x50f97f(0xea)](_0x50f97f(0xdc),_0x50f97f(0xf0),_0x50f97f(0xff),_0x50f97f(0xd9))['to'](_0x594bb1),this[_0x50f97f(0xfd)](_0x3aa02e,_0x50f97f(0xf8),(_0x3fdfe9,_0x17e3bd)=>{const _0x5953cb=_0x50f97f;_0x1a6932[_0x5953cb(0xf8)](_0x5953cb(0xd5)===_0x17e3bd?_0x5953cb(0x100):_0x5953cb(0xf5));}),_0x3aa02e;}),_0x65aab5[_0x7a80f0(0xfe)](),_0x594bb1['on'](_0x7a80f0(0xef),(_0x44edb5,_0x3632fd,_0x214f7e)=>{const _0x5692d4=_0x7a80f0;_0x214f7e?_0x65aab5[_0x5692d4(0xd8)]():_0x65aab5[_0x5692d4(0xfe)]();});}}