UNPKG

@ckeditor/ckeditor5-revision-history

Version:

Document revision history feature for CKEditor 5.

24 lines 5.03 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 _0xaf762a=_0x3181;(function(_0x13771a,_0x335f14){const _0xcfb13f=_0x3181,_0x37def6=_0x13771a();while(!![]){try{const _0x26c122=parseInt(_0xcfb13f(0x1b5))/0x1+parseInt(_0xcfb13f(0x1bf))/0x2*(-parseInt(_0xcfb13f(0x1bd))/0x3)+parseInt(_0xcfb13f(0x1b6))/0x4+parseInt(_0xcfb13f(0x1a5))/0x5*(-parseInt(_0xcfb13f(0x1b0))/0x6)+-parseInt(_0xcfb13f(0x1ad))/0x7+-parseInt(_0xcfb13f(0x1aa))/0x8+-parseInt(_0xcfb13f(0x1a8))/0x9*(-parseInt(_0xcfb13f(0x1ab))/0xa);if(_0x26c122===_0x335f14)break;else _0x37def6['push'](_0x37def6['shift']());}catch(_0x406bcd){_0x37def6['push'](_0x37def6['shift']());}}}(_0x4ad8,0xbc5cd));import{ObservableMixin as _0x12d011,uid as _0x432d04}from'ckeditor5/src/utils.js';import{cloneDeep as _0x731c43,set as _0x4dfeb6,unset as _0x104d9f}from'es-toolkit/compat';function _0x3181(_0x5ad893,_0x3b8c15){const _0x4ad8de=_0x4ad8();return _0x3181=function(_0x318112,_0x5ed1f9){_0x318112=_0x318112-0x1a5;let _0x4e3d94=_0x4ad8de[_0x318112];return _0x4e3d94;},_0x3181(_0x5ad893,_0x3b8c15);}export class Revision extends/* #__PURE__ -- @preserve */ _0x12d011(){['id'];[_0xaf762a(0x1ba)];[_0xaf762a(0x1a6)];[_0xaf762a(0x1b3)];[_0xaf762a(0x1af)];[_0xaf762a(0x1b2)];[_0xaf762a(0x1bc)];constructor(_0x1f349b){const _0x12b5ae=_0xaf762a;super(),this['id']=_0x1f349b['id']||_0x432d04(),this[_0x12b5ae(0x1ba)]=_0x1f349b[_0x12b5ae(0x1ba)]||null,this[_0x12b5ae(0x1a6)]=_0x1f349b[_0x12b5ae(0x1a6)]||[],this[_0x12b5ae(0x1b3)]=_0x1f349b[_0x12b5ae(0x1b3)]||null,this[_0x12b5ae(0x1af)]=_0x1f349b[_0x12b5ae(0x1af)]||0x0,this[_0x12b5ae(0x1b2)]=_0x1f349b[_0x12b5ae(0x1b2)]||0x0,this[_0x12b5ae(0x1ae)](_0x12b5ae(0x1be),_0x1f349b[_0x12b5ae(0x1be)]||''),this[_0x12b5ae(0x1ae)](_0x12b5ae(0x1b7),_0x1f349b[_0x12b5ae(0x1b7)]||new Date()),this[_0x12b5ae(0x1ae)](_0x12b5ae(0x1b8),_0x1f349b[_0x12b5ae(0x1b8)]||{});}[_0xaf762a(0x1c0)](_0x44e79d){const _0x97b35c=_0xaf762a;this[_0x97b35c(0x1b9)]({'name':_0x44e79d});}[_0xaf762a(0x1a7)](_0x49f86e,_0x3fb24b){const _0x4a116d=_0xaf762a,_0x5f2c36=_0x731c43(this[_0x4a116d(0x1b8)]);_0x4dfeb6(_0x5f2c36,_0x49f86e,_0x3fb24b),this[_0x4a116d(0x1b9)]({'attributes':_0x5f2c36});}[_0xaf762a(0x1bb)](_0x180c88){const _0xd460c=_0xaf762a,_0x164c69=_0x731c43(this[_0xd460c(0x1b8)]);_0x104d9f(_0x164c69,_0x180c88),this[_0xd460c(0x1b9)]({'attributes':_0x164c69});}[_0xaf762a(0x1b9)](_0x1b83db,_0x702699=!0x1){const _0x42e599=_0xaf762a;let _0x25b08a=!0x1;const _0x1b902c={'id':this['id']},_0x2498e3=[_0x42e599(0x1be),_0x42e599(0x1b7),_0x42e599(0x1b3),_0x42e599(0x1a6),_0x42e599(0x1b8),_0x42e599(0x1af),_0x42e599(0x1b2),_0x42e599(0x1ac)];for(const _0x21575d of _0x2498e3){const _0xe09cb0=_0x1b83db[_0x21575d];void 0x0!==_0xe09cb0&&_0xe09cb0!==this[_0x21575d]&&(this[_0x21575d]=_0xe09cb0,_0x1b902c[_0x21575d]=_0xe09cb0,_0x25b08a=!0x0);}_0x25b08a&&(_0x1b902c[_0x42e599(0x1a6)]&&(_0x1b902c[_0x42e599(0x1b1)]=_0x1b902c[_0x42e599(0x1a6)][_0x42e599(0x1a9)](_0x489f44=>_0x489f44['id']),delete _0x1b902c[_0x42e599(0x1a6)]),this[_0x42e599(0x1c1)](_0x42e599(0x1b9),_0x1b902c,_0x702699));}[_0xaf762a(0x1b4)](){const _0x4a19cd=_0xaf762a;return{'id':this['id'],'name':this[_0x4a19cd(0x1be)],'creatorId':this[_0x4a19cd(0x1ba)]?this[_0x4a19cd(0x1ba)]['id']:null,'authorsIds':this[_0x4a19cd(0x1a6)][_0x4a19cd(0x1a9)](_0x100ad0=>_0x100ad0['id']),'diffData':this[_0x4a19cd(0x1b3)],'createdAt':this[_0x4a19cd(0x1b7)],'attributes':this[_0x4a19cd(0x1b8)],'fromVersion':this[_0x4a19cd(0x1b2)],'toVersion':this[_0x4a19cd(0x1af)]};}}function _0x4ad8(){const _0x27f4b1=['90400GldAUV','790068YQuDFs','createdAt','attributes','_update','creator','removeAttribute','model','3BGsoSc','name','1649974VDSLYy','setName','fire','30275YGMTnn','authors','setAttribute','144LOsFlp','map','566128WdjKzv','1200750ureXte','creatorId','2139802FAEeTX','set','toVersion','234mwzcov','authorsIds','fromVersion','diffData','toJSON'];_0x4ad8=function(){return _0x27f4b1;};return _0x4ad8();}