UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 5.62 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 _0x1dec3f=_0x37ba;(function(_0x23a867,_0x44420a){const _0x3518a1=_0x37ba,_0x21354e=_0x23a867();while(!![]){try{const _0x4544e3=-parseInt(_0x3518a1(0x1b8))/0x1+-parseInt(_0x3518a1(0x1a3))/0x2*(-parseInt(_0x3518a1(0x1ae))/0x3)+-parseInt(_0x3518a1(0x18d))/0x4*(-parseInt(_0x3518a1(0x19d))/0x5)+parseInt(_0x3518a1(0x198))/0x6+-parseInt(_0x3518a1(0x1a6))/0x7*(-parseInt(_0x3518a1(0x195))/0x8)+parseInt(_0x3518a1(0x1ad))/0x9+-parseInt(_0x3518a1(0x192))/0xa*(parseInt(_0x3518a1(0x18e))/0xb);if(_0x4544e3===_0x44420a)break;else _0x21354e['push'](_0x21354e['shift']());}catch(_0x1037eb){_0x21354e['push'](_0x21354e['shift']());}}}(_0x1132,0x23f54));function _0x37ba(_0x289970,_0x52a82f){const _0x1132d9=_0x1132();return _0x37ba=function(_0x37ba45,_0x445cfd){_0x37ba45=_0x37ba45-0x18d;let _0x579339=_0x1132d9[_0x37ba45];return _0x579339;},_0x37ba(_0x289970,_0x52a82f);}import{Plugin as _0x33b676}from'ckeditor5/src/core.js';function _0x1132(){const _0x23b5d9=['469YduRJk','view','editor','formatBlock','heading.options','ELEMENT_HEADING','name','108495RIqZga','549903JshONS','ELEMENT_HEADING_CUSTOM','descriptionFactory','get','plugins','value','*Change\x20to:*\x20%0','commandParams','locale','config','192482PcNeQC','match','139904zuGINN','1394327RUOGnj','model','_headingOptions','TrackChangesEditing','30ZTXLTU','_registerLegacyDescription','enableDefaultAttributesIntegration','30928nsxVuj','has','type','544674JXbJtV','registerDescriptionCallback','afterInit','format','HeadingEditing','25QAorSa','commandName','heading','find','registerElementLabel','title','2zbmBQq','_getHeadingLevel','paragraph'];_0x1132=function(){return _0x23b5d9;};return _0x1132();}import{getTranslation as _0x44cd6e}from'../utils/common-translations.js';export default class nt extends _0x33b676{[_0x1dec3f(0x190)];[_0x1dec3f(0x19a)](){const _0x2629a5=_0x1dec3f,_0x28d887=this[_0x2629a5(0x1a8)];if(!_0x28d887[_0x2629a5(0x1b2)][_0x2629a5(0x196)](_0x2629a5(0x19c)))return;this[_0x2629a5(0x190)]=_0x28d887[_0x2629a5(0x1b7)][_0x2629a5(0x1b1)](_0x2629a5(0x1aa));const _0x379775=_0x28d887[_0x2629a5(0x1b6)],_0x13439c=_0x28d887[_0x2629a5(0x1b2)][_0x2629a5(0x1b1)](_0x2629a5(0x191));_0x13439c[_0x2629a5(0x194)](_0x2629a5(0x19f));for(const _0x3300b0 of this[_0x2629a5(0x190)])_0x2629a5(0x1a5)!=_0x3300b0[_0x2629a5(0x18f)]&&_0x13439c[_0x2629a5(0x1b0)][_0x2629a5(0x1a1)](_0x3300b0[_0x2629a5(0x18f)],_0x2d63ae=>{const _0xedec54=_0x2629a5,_0x22618c=this[_0xedec54(0x1a4)](_0x3300b0[_0xedec54(0x18f)]);return null!==_0x22618c?_0x542293(_0x2d63ae,_0x22618c):_0x197734(_0x2d63ae,_0x3300b0[_0xedec54(0x1a2)]);});function _0x542293(_0x57bd9b,_0xdbcf43){const _0x36f660=_0x2629a5;return _0x44cd6e(_0x379775,_0x36f660(0x1ab),[_0x57bd9b,_0xdbcf43]);}function _0x197734(_0x2551e0,_0x5176e0){const _0x50d871=_0x2629a5;return _0x44cd6e(_0x379775,_0x50d871(0x1af),[_0x2551e0,_0x5176e0]);}this[_0x2629a5(0x193)]();}[_0x1dec3f(0x193)](){const _0x256dff=_0x1dec3f,_0x47563a=this[_0x256dff(0x1a8)],_0x292bd3=_0x47563a[_0x256dff(0x1b6)];function _0x144f42(_0x4bf6fc,_0x4612ee){const _0x3ff45f=_0x256dff;return _0x44cd6e(_0x292bd3,_0x3ff45f(0x1af),[_0x4bf6fc,_0x4612ee]);}_0x47563a[_0x256dff(0x1b2)][_0x256dff(0x1b1)](_0x256dff(0x191))[_0x256dff(0x1b0)][_0x256dff(0x199)](_0x3aa1d2=>{const _0x232ab4=_0x256dff;if(_0x232ab4(0x1a9)!=_0x3aa1d2[_0x232ab4(0x197)])return;const {data:_0x455574}=_0x3aa1d2;if(_0x455574&&_0x232ab4(0x19f)==_0x455574[_0x232ab4(0x19e)]){const _0x46c506=_0x455574[_0x232ab4(0x1b5)][0x0][_0x232ab4(0x1b3)],_0x3aeb9c=this[_0x232ab4(0x1a4)](_0x46c506);if(null!==_0x3aeb9c)return{'type':_0x232ab4(0x19b),'content':_0x44cd6e(_0x292bd3,_0x232ab4(0x1b4),(_0x2c0cb0=0x1,_0x2a0f7b=_0x3aeb9c,_0x44cd6e(_0x292bd3,_0x232ab4(0x1ab),[_0x2c0cb0,_0x2a0f7b])))};const _0x416cfe=this[_0x232ab4(0x190)][_0x232ab4(0x1a0)](_0x492507=>_0x492507[_0x232ab4(0x18f)]===_0x46c506)[_0x232ab4(0x1a2)];return{'type':_0x232ab4(0x19b),'content':_0x44cd6e(_0x292bd3,_0x232ab4(0x1b4),_0x144f42(0x1,_0x416cfe))};}var _0x2c0cb0,_0x2a0f7b;});}[_0x1dec3f(0x1a4)](_0x4c4436){const _0x5ce224=_0x1dec3f,_0x372444=_0x4c4436[_0x5ce224(0x1b9)](/^heading(\d+)/);if(_0x372444)return _0x372444[0x1];const _0x34f0ab=this[_0x5ce224(0x190)]?.[_0x5ce224(0x1a0)](_0x3bf082=>_0x3bf082[_0x5ce224(0x18f)]==_0x4c4436);if(_0x34f0ab&&_0x34f0ab[_0x5ce224(0x1a7)]){const _0x5bd185=_0x34f0ab[_0x5ce224(0x1a7)],_0x55b17b=(_0x5bd185[_0x5ce224(0x1ac)]??_0x5bd185)[_0x5ce224(0x1b9)](/^h(\d+)/);if(_0x55b17b)return _0x55b17b[0x1];}return null;}}