@ckeditor/ckeditor5-revision-history
Version:
Document revision history feature for CKEditor 5.
24 lines • 4.96 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 _0x3e6a90=_0x16b8;function _0x16b8(_0x26f34b,_0x597a4f){const _0x31b18a=_0x31b1();return _0x16b8=function(_0x16b8c1,_0xe00262){_0x16b8c1=_0x16b8c1-0x86;let _0xeb71a5=_0x31b18a[_0x16b8c1];return _0xeb71a5;},_0x16b8(_0x26f34b,_0x597a4f);}(function(_0x366458,_0x42c259){const _0x580131=_0x16b8,_0x5d71a2=_0x366458();while(!![]){try{const _0x26073f=-parseInt(_0x580131(0x92))/0x1+parseInt(_0x580131(0x99))/0x2+-parseInt(_0x580131(0x93))/0x3+-parseInt(_0x580131(0x91))/0x4*(parseInt(_0x580131(0xa2))/0x5)+-parseInt(_0x580131(0x87))/0x6+-parseInt(_0x580131(0x8a))/0x7*(parseInt(_0x580131(0x8b))/0x8)+parseInt(_0x580131(0x98))/0x9*(parseInt(_0x580131(0x88))/0xa);if(_0x26073f===_0x42c259)break;else _0x5d71a2['push'](_0x5d71a2['shift']());}catch(_0x1680d4){_0x5d71a2['push'](_0x5d71a2['shift']());}}}(_0x31b1,0x29229));import{ObservableMixin as _0xbc82ff,uid as _0x54d7cc}from'ckeditor5/src/utils.js';import{cloneDeep as _0x4f106d,set as _0x4417ee,unset as _0x1ed5f4}from'es-toolkit/compat';function _0x31b1(){const _0x4f26a5=['authorsIds','setName','authors','14315KtIcDE','fromVersion','1608534xfxjrW','7693630UICGvC','fire','14wIotOr','1073288QasaQF','_update','map','removeAttribute','creator','createdAt','28rjdwTg','215983FzZcUV','398487fkqKrL','creatorId','name','setAttribute','model','9KDznIV','608780nOpXse','set','diffData','toJSON','toVersion','attributes'];_0x31b1=function(){return _0x4f26a5;};return _0x31b1();}export default class h extends/* #__PURE__ -- */
_0xbc82ff(){['id'];[_0x3e6a90(0x8f)];[_0x3e6a90(0xa1)];[_0x3e6a90(0x9b)];[_0x3e6a90(0x9d)];[_0x3e6a90(0x86)];[_0x3e6a90(0x97)];constructor(_0x2be2e5){const _0x55e8a8=_0x3e6a90;super(),this['id']=_0x2be2e5['id']||_0x54d7cc(),this[_0x55e8a8(0x8f)]=_0x2be2e5[_0x55e8a8(0x8f)]||null,this[_0x55e8a8(0xa1)]=_0x2be2e5[_0x55e8a8(0xa1)]||[],this[_0x55e8a8(0x9b)]=_0x2be2e5[_0x55e8a8(0x9b)]||null,this[_0x55e8a8(0x9d)]=_0x2be2e5[_0x55e8a8(0x9d)]||0x0,this[_0x55e8a8(0x86)]=_0x2be2e5[_0x55e8a8(0x86)]||0x0,this[_0x55e8a8(0x9a)](_0x55e8a8(0x95),_0x2be2e5[_0x55e8a8(0x95)]||''),this[_0x55e8a8(0x9a)](_0x55e8a8(0x90),_0x2be2e5[_0x55e8a8(0x90)]||new Date()),this[_0x55e8a8(0x9a)](_0x55e8a8(0x9e),_0x2be2e5[_0x55e8a8(0x9e)]||{});}[_0x3e6a90(0xa0)](_0x38403e){const _0x1eb9e4=_0x3e6a90;this[_0x1eb9e4(0x8c)]({'name':_0x38403e});}[_0x3e6a90(0x96)](_0x560cc3,_0x5d4d32){const _0x2199a2=_0x3e6a90,_0x19e2a6=_0x4f106d(this[_0x2199a2(0x9e)]);_0x4417ee(_0x19e2a6,_0x560cc3,_0x5d4d32),this[_0x2199a2(0x8c)]({'attributes':_0x19e2a6});}[_0x3e6a90(0x8e)](_0x2f7e25){const _0x142a14=_0x3e6a90,_0xe8fd9b=_0x4f106d(this[_0x142a14(0x9e)]);_0x1ed5f4(_0xe8fd9b,_0x2f7e25),this[_0x142a14(0x8c)]({'attributes':_0xe8fd9b});}[_0x3e6a90(0x8c)](_0x32be59,_0x144294=!0x1){const _0x4a1b4f=_0x3e6a90;let _0x14fe21=!0x1;const _0x2547ee={'id':this['id']},_0x184d67=[_0x4a1b4f(0x95),_0x4a1b4f(0x90),_0x4a1b4f(0x9b),_0x4a1b4f(0xa1),_0x4a1b4f(0x9e),_0x4a1b4f(0x9d),_0x4a1b4f(0x86),_0x4a1b4f(0x94)];for(const _0x48f052 of _0x184d67){const _0x4f6879=_0x32be59[_0x48f052];void 0x0!==_0x4f6879&&_0x4f6879!==this[_0x48f052]&&(this[_0x48f052]=_0x4f6879,_0x2547ee[_0x48f052]=_0x4f6879,_0x14fe21=!0x0);}_0x14fe21&&(_0x2547ee[_0x4a1b4f(0xa1)]&&(_0x2547ee[_0x4a1b4f(0x9f)]=_0x2547ee[_0x4a1b4f(0xa1)][_0x4a1b4f(0x8d)](_0x5c624c=>_0x5c624c['id']),delete _0x2547ee[_0x4a1b4f(0xa1)]),this[_0x4a1b4f(0x89)](_0x4a1b4f(0x8c),_0x2547ee,_0x144294));}[_0x3e6a90(0x9c)](){const _0x48cc71=_0x3e6a90;return{'id':this['id'],'name':this[_0x48cc71(0x95)],'creatorId':this[_0x48cc71(0x8f)]?this[_0x48cc71(0x8f)]['id']:null,'authorsIds':this[_0x48cc71(0xa1)][_0x48cc71(0x8d)](_0x12bfe2=>_0x12bfe2['id']),'diffData':this[_0x48cc71(0x9b)],'createdAt':this[_0x48cc71(0x90)],'attributes':this[_0x48cc71(0x9e)],'fromVersion':this[_0x48cc71(0x86)],'toVersion':this[_0x48cc71(0x9d)]};}}