UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 5.41 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 _0x31b042=_0x107d;(function(_0x54b2de,_0x46f2dc){const _0x6688d0=_0x107d,_0xf1084=_0x54b2de();while(!![]){try{const _0x556d22=-parseInt(_0x6688d0(0x177))/0x1*(parseInt(_0x6688d0(0x18e))/0x2)+-parseInt(_0x6688d0(0x19f))/0x3+parseInt(_0x6688d0(0x178))/0x4*(parseInt(_0x6688d0(0x185))/0x5)+parseInt(_0x6688d0(0x196))/0x6+parseInt(_0x6688d0(0x188))/0x7*(-parseInt(_0x6688d0(0x184))/0x8)+-parseInt(_0x6688d0(0x19e))/0x9+parseInt(_0x6688d0(0x1a1))/0xa;if(_0x556d22===_0x46f2dc)break;else _0xf1084['push'](_0xf1084['shift']());}catch(_0x384de8){_0xf1084['push'](_0xf1084['shift']());}}}(_0x2544,0x9e2d5));import{Plugin as _0x502b95}from'ckeditor5/src/core.js';function _0x107d(_0x21aee7,_0x4d6686){const _0x2544e8=_0x2544();return _0x107d=function(_0x107d09,_0x493bcb){_0x107d09=_0x107d09-0x177;let _0xdb14db=_0x2544e8[_0x107d09];return _0xdb14db;},_0x107d(_0x21aee7,_0x4d6686);}function _0x2544(){const _0x2c96be=['registerAttributeLabel','normalizeConfig','3LkhOBv','196zDpUsz','add','TrackChangesEditing','ghsAttributes','styleName','descriptionFactory','afterInit','_registerLegacyDescription','inline','config','registerInlineAttribute','format','168rTZOmG','117170XBJXDq','definitions','enableDefaultAttributesIntegration','139076yhOBKO','DataSchema','Style','commandParams','block','formatInline','518828PZuTzP','element','get','registerBlockAttribute','*Remove\x20format:*\x20%0','toLowerCase','type','formatBlock','3529824WCjpwx','*Set\x20format:*\x20%0','has','editor','forceValue','StyleUtils','FORMAT_STYLE','registerDescriptionCallback','11332368efGIft','3540717eGlNUY','locale','25461840JgzcRD','getGhsAttributeNameForElement','GeneralHtmlSupport','commandName','style','plugins'];_0x2544=function(){return _0x2c96be;};return _0x2544();}import{getTranslation as _0x1706ef}from'../utils/common-translations.js';export default class vt extends _0x502b95{[_0x31b042(0x17e)](){const _0x56c970=_0x31b042,_0x907100=this[_0x56c970(0x199)];if(!_0x907100[_0x56c970(0x1a6)][_0x56c970(0x198)](_0x56c970(0x18a))||!_0x907100[_0x56c970(0x1a6)][_0x56c970(0x198)](_0x56c970(0x189)))return;const _0x56f443=_0x907100[_0x56c970(0x1a6)][_0x56c970(0x190)](_0x56c970(0x17a)),_0x45357e=_0x907100[_0x56c970(0x1a0)],_0x46171c=_0x907100[_0x56c970(0x181)][_0x56c970(0x190)](_0x56c970(0x1a5))||{},_0x17cf60=_0x907100[_0x56c970(0x1a6)][_0x56c970(0x190)](_0x56c970(0x1a3)),_0x22db90=_0x907100[_0x56c970(0x1a6)][_0x56c970(0x190)](_0x56c970(0x19b))[_0x56c970(0x1a8)](_0x907100[_0x56c970(0x1a6)][_0x56c970(0x190)](_0x56c970(0x189)),_0x46171c[_0x56c970(0x186)]);_0x56f443[_0x56c970(0x187)](_0x56c970(0x1a5));const _0x4ebd97=new Set();for(const _0x576b2a of _0x22db90[_0x56c970(0x18c)]){const _0x5f1833=_0x17cf60[_0x56c970(0x1a2)](_0x576b2a[_0x56c970(0x18f)]);_0x4ebd97[_0x56c970(0x179)](_0x5f1833);}const _0x47e05d=new Set();for(const _0x2f91e7 of _0x22db90[_0x56c970(0x180)]){const _0x2bbfea=_0x17cf60[_0x56c970(0x1a2)](_0x2f91e7[_0x56c970(0x18f)]);_0x47e05d[_0x56c970(0x179)](_0x2bbfea);for(const _0x5bdc94 of _0x2f91e7[_0x56c970(0x17b)])_0x47e05d[_0x56c970(0x179)](_0x5bdc94);}for(const _0x44807a of _0x4ebd97)_0x56f443[_0x56c970(0x191)](_0x44807a),_0x56f443[_0x56c970(0x17d)][_0x56c970(0x1a7)](_0x44807a,_0x1706ef(_0x45357e,_0x56c970(0x19c)));for(const _0x211e25 of _0x47e05d)_0x56f443[_0x56c970(0x182)](_0x211e25),_0x56f443[_0x56c970(0x17d)][_0x56c970(0x1a7)](_0x211e25,_0x1706ef(_0x45357e,_0x56c970(0x19c)));this[_0x56c970(0x17f)]();}[_0x31b042(0x17f)](){const _0x2aa4c4=_0x31b042,_0x54ed29=this[_0x2aa4c4(0x199)],_0x52eac0=_0x54ed29[_0x2aa4c4(0x1a0)];_0x54ed29[_0x2aa4c4(0x1a6)][_0x2aa4c4(0x190)](_0x2aa4c4(0x17a))[_0x2aa4c4(0x17d)][_0x2aa4c4(0x19d)](_0x7b1115=>{const _0x5d66fb=_0x2aa4c4;if(_0x5d66fb(0x195)!=_0x7b1115[_0x5d66fb(0x194)]&&_0x5d66fb(0x18d)!=_0x7b1115[_0x5d66fb(0x194)])return;const {data:_0x2e7e7c}=_0x7b1115;return _0x2e7e7c&&_0x5d66fb(0x1a5)===_0x2e7e7c[_0x5d66fb(0x1a4)]?_0x2e7e7c[_0x5d66fb(0x18b)][0x0][_0x5d66fb(0x19a)]?{'type':_0x5d66fb(0x183),'content':_0x1706ef(_0x52eac0,_0x5d66fb(0x197),_0x2e7e7c[_0x5d66fb(0x18b)][0x0][_0x5d66fb(0x17c)][_0x5d66fb(0x193)]())}:{'type':_0x5d66fb(0x183),'content':_0x1706ef(_0x52eac0,_0x5d66fb(0x192),_0x2e7e7c[_0x5d66fb(0x18b)][0x0][_0x5d66fb(0x17c)][_0x5d66fb(0x193)]())}:void 0x0;});}}