UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 5.46 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. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ function _0x343e(_0xc11ece,_0x7f645f){const _0x13b891=_0x13b8();return _0x343e=function(_0x343e1c,_0xb0c626){_0x343e1c=_0x343e1c-0xfd;let _0x24d881=_0x13b891[_0x343e1c];return _0x24d881;},_0x343e(_0xc11ece,_0x7f645f);}const _0x1aaa26=_0x343e;(function(_0x4da487,_0x13894a){const _0x11318f=_0x343e,_0x2f9888=_0x4da487();while(!![]){try{const _0x3102e3=parseInt(_0x11318f(0x118))/0x1*(parseInt(_0x11318f(0xfe))/0x2)+parseInt(_0x11318f(0x10c))/0x3*(parseInt(_0x11318f(0x115))/0x4)+parseInt(_0x11318f(0x10f))/0x5*(parseInt(_0x11318f(0x102))/0x6)+-parseInt(_0x11318f(0x107))/0x7*(parseInt(_0x11318f(0x116))/0x8)+parseInt(_0x11318f(0x10b))/0x9+parseInt(_0x11318f(0x120))/0xa+-parseInt(_0x11318f(0x128))/0xb;if(_0x3102e3===_0x13894a)break;else _0x2f9888['push'](_0x2f9888['shift']());}catch(_0x5c183f){_0x2f9888['push'](_0x2f9888['shift']());}}}(_0x13b8,0x8f444));import{Plugin as _0x6dc2db}from'ckeditor5/src/core.js';import{getTranslation as _0x235c54}from'../utils/common-translations.js';function _0x13b8(){const _0x2ffdd3=['styleName','format','commandName','type','StyleUtils','plugins','commandParams','11288046INZSgp','*Set\x20format:*\x20%0','get','element','getGhsAttributeNameForElement','DataSchema','has','config','editor','34614alhYaD','definitions','block','_registerLegacyDescription','114NVQrJN','enableDefaultAttributesIntegration','style','add','FORMAT_STYLE','7gRGaKJ','toLowerCase','descriptionFactory','registerAttributeLabel','130689zrqHoV','2676hrGMXn','GeneralHtmlSupport','Style','229435knbfzW','formatInline','TrackChangesEditing','registerInlineAttribute','*Remove\x20format:*\x20%0','formatBlock','380qvYcXY','6885576gsfErg','inline','21AQwytC','ghsAttributes','locale','registerBlockAttribute','normalizeConfig','forceValue','registerDescriptionCallback','afterInit','11391420kgSllF'];_0x13b8=function(){return _0x2ffdd3;};return _0x13b8();}export class TrackChangesStylesDropdown extends _0x6dc2db{[_0x1aaa26(0x11f)](){const _0x413fe4=_0x1aaa26,_0x550050=this[_0x413fe4(0xfd)];if(!_0x550050[_0x413fe4(0x126)][_0x413fe4(0x12e)](_0x413fe4(0x10e))||!_0x550050[_0x413fe4(0x126)][_0x413fe4(0x12e)](_0x413fe4(0x12d)))return;const _0x18c288=_0x550050[_0x413fe4(0x126)][_0x413fe4(0x12a)](_0x413fe4(0x111)),_0xbf0f0a=_0x550050[_0x413fe4(0x11a)],_0x2e8671=_0x550050[_0x413fe4(0x12f)][_0x413fe4(0x12a)](_0x413fe4(0x104))||{},_0x2d99df=_0x550050[_0x413fe4(0x126)][_0x413fe4(0x12a)](_0x413fe4(0x10d)),_0x3b7926=_0x550050[_0x413fe4(0x126)][_0x413fe4(0x12a)](_0x413fe4(0x125))[_0x413fe4(0x11c)](_0x550050[_0x413fe4(0x126)][_0x413fe4(0x12a)](_0x413fe4(0x12d)),_0x2e8671[_0x413fe4(0xff)]);_0x18c288[_0x413fe4(0x103)](_0x413fe4(0x104));const _0xda3536=new Set();for(const _0x1e30f2 of _0x3b7926[_0x413fe4(0x100)]){const _0x272e38=_0x2d99df[_0x413fe4(0x12c)](_0x1e30f2[_0x413fe4(0x12b)]);_0xda3536[_0x413fe4(0x105)](_0x272e38);}const _0x251678=new Set();for(const _0x3c838b of _0x3b7926[_0x413fe4(0x117)]){const _0x16dc58=_0x2d99df[_0x413fe4(0x12c)](_0x3c838b[_0x413fe4(0x12b)]);_0x251678[_0x413fe4(0x105)](_0x16dc58);for(const _0x1d3f50 of _0x3c838b[_0x413fe4(0x119)])_0x251678[_0x413fe4(0x105)](_0x1d3f50);}for(const _0x346601 of _0xda3536)_0x18c288[_0x413fe4(0x11b)](_0x346601),_0x18c288[_0x413fe4(0x109)][_0x413fe4(0x10a)](_0x346601,_0x235c54(_0xbf0f0a,_0x413fe4(0x106)));for(const _0x4494c4 of _0x251678)_0x18c288[_0x413fe4(0x112)](_0x4494c4),_0x18c288[_0x413fe4(0x109)][_0x413fe4(0x10a)](_0x4494c4,_0x235c54(_0xbf0f0a,_0x413fe4(0x106)));this[_0x413fe4(0x101)]();}[_0x1aaa26(0x101)](){const _0x2b67f2=_0x1aaa26,_0x275c0e=this[_0x2b67f2(0xfd)],_0x136bb9=_0x275c0e[_0x2b67f2(0x11a)];_0x275c0e[_0x2b67f2(0x126)][_0x2b67f2(0x12a)](_0x2b67f2(0x111))[_0x2b67f2(0x109)][_0x2b67f2(0x11e)](_0x4fc4d3=>{const _0xc6c0cf=_0x2b67f2;if(_0xc6c0cf(0x114)!=_0x4fc4d3[_0xc6c0cf(0x124)]&&_0xc6c0cf(0x110)!=_0x4fc4d3[_0xc6c0cf(0x124)])return;const {data:_0x37ed46}=_0x4fc4d3;return _0x37ed46&&_0xc6c0cf(0x104)===_0x37ed46[_0xc6c0cf(0x123)]?_0x37ed46[_0xc6c0cf(0x127)][0x0][_0xc6c0cf(0x11d)]?{'type':_0xc6c0cf(0x122),'content':_0x235c54(_0x136bb9,_0xc6c0cf(0x129),_0x37ed46[_0xc6c0cf(0x127)][0x0][_0xc6c0cf(0x121)][_0xc6c0cf(0x108)]())}:{'type':_0xc6c0cf(0x122),'content':_0x235c54(_0x136bb9,_0xc6c0cf(0x113),_0x37ed46[_0xc6c0cf(0x127)][0x0][_0xc6c0cf(0x121)][_0xc6c0cf(0x108)]())}:void 0x0;});}}