UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 5.05 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 _0x2cf07f=_0x4d9c;function _0x4d9c(_0x5a4100,_0x48747c){const _0x2cc9a6=_0x2cc9();return _0x4d9c=function(_0x4d9ca2,_0x25f586){_0x4d9ca2=_0x4d9ca2-0xad;let _0xe5a5fb=_0x2cc9a6[_0x4d9ca2];return _0xe5a5fb;},_0x4d9c(_0x5a4100,_0x48747c);}(function(_0x29e32d,_0x3692af){const _0x116870=_0x4d9c,_0x3a9b8b=_0x29e32d();while(!![]){try{const _0x139f92=parseInt(_0x116870(0xcc))/0x1+-parseInt(_0x116870(0xd6))/0x2*(-parseInt(_0x116870(0xc7))/0x3)+parseInt(_0x116870(0xd1))/0x4+parseInt(_0x116870(0xc5))/0x5*(-parseInt(_0x116870(0xaf))/0x6)+-parseInt(_0x116870(0xb8))/0x7+parseInt(_0x116870(0xd0))/0x8+-parseInt(_0x116870(0xbe))/0x9*(parseInt(_0x116870(0xc2))/0xa);if(_0x139f92===_0x3692af)break;else _0x3a9b8b['push'](_0x3a9b8b['shift']());}catch(_0x4ed7ea){_0x3a9b8b['push'](_0x3a9b8b['shift']());}}}(_0x2cc9,0xd4638));import{Plugin as _0x1a3609}from'ckeditor5/src/core.js';function _0x2cc9(){const _0x5f88da=['value','change','10704816UkmZpI','135192CfkzsW','model','afterInit','markBlockFormat','BlockQuoteEditing','24302ojPoKh','get','filter','has','registerDescriptionCallback','6316878EeiNxg','*Remove\x20format:*\x20%0','format','name','blockQuote','forceValue','parent','commandName','ELEMENT_BLOCK_QUOTE','290934HCrase','document','locale','*Set\x20format:*\x20%0','commandParams','enableCommand','1134EvcEdF','$root','plugins','schema','151150yuqthw','getSelectedBlocks','from','5rmnxIQ','checkChild','330HvgaqA','selection','descriptionFactory','TrackChangesEditing','editor','1160299qkLDpQ','commands'];_0x2cc9=function(){return _0x5f88da;};return _0x2cc9();}import{getTranslation as _0x39e28c}from'../utils/common-translations.js';import{getRangesOfBlockGroups as _0x42ee9f}from'../utils/utils.js';export default class G extends _0x1a3609{[_0x2cf07f(0xd3)](){const _0x14d963=_0x2cf07f,_0x264057=this[_0x14d963(0xcb)],_0x4bb47a=_0x264057[_0x14d963(0xba)];if(!_0x264057[_0x14d963(0xc0)][_0x14d963(0xad)](_0x14d963(0xd5)))return;const _0x78054a=_0x264057[_0x14d963(0xc0)][_0x14d963(0xd7)](_0x14d963(0xca)),_0x125ba2=this[_0x14d963(0xcb)][_0x14d963(0xcd)][_0x14d963(0xd7)](_0x14d963(0xb3));_0x78054a[_0x14d963(0xbd)](_0x14d963(0xb3),(_0x4e9c14,_0x8c3f06={})=>{const _0x3d5bfb=_0x14d963,_0x1f7b24=this[_0x3d5bfb(0xcb)][_0x3d5bfb(0xd2)][_0x3d5bfb(0xb9)][_0x3d5bfb(0xc8)],_0x12e660=_0x8c3f06&&void 0x0!==_0x8c3f06[_0x3d5bfb(0xb4)]?_0x8c3f06[_0x3d5bfb(0xb4)]:!_0x125ba2[_0x3d5bfb(0xce)];let _0x4ddd87=[];if(_0x12e660){const _0x22b5cc=Array[_0x3d5bfb(0xc4)](_0x1f7b24[_0x3d5bfb(0xc3)]())[_0x3d5bfb(0xd8)](_0x33f44f=>oo(_0x33f44f)||function(_0x414255,_0x3f52ef){const _0x2859f4=_0x3d5bfb,_0x2dda87=_0x3f52ef[_0x2859f4(0xc6)](_0x414255[_0x2859f4(0xb5)],_0x2859f4(0xb3)),_0x1c61e6=_0x3f52ef[_0x2859f4(0xc6)]([_0x2859f4(0xbf),_0x2859f4(0xb3)],_0x414255);return _0x2dda87&&_0x1c61e6;}(_0x33f44f,this[_0x3d5bfb(0xcb)][_0x3d5bfb(0xd2)][_0x3d5bfb(0xc1)]));_0x4ddd87=_0x42ee9f(_0x22b5cc,_0x264057[_0x3d5bfb(0xd2)]);}else{const _0x29be30=Array[_0x3d5bfb(0xc4)](_0x1f7b24[_0x3d5bfb(0xc3)]())[_0x3d5bfb(0xd8)](_0x38e563=>oo(_0x38e563));_0x4ddd87=_0x42ee9f(_0x29be30,_0x264057[_0x3d5bfb(0xd2)]);}_0x264057[_0x3d5bfb(0xd2)][_0x3d5bfb(0xcf)](()=>{const _0x4a9a24=_0x3d5bfb;for(const _0xcdb592 of _0x4ddd87)_0x78054a[_0x4a9a24(0xd4)](_0xcdb592,{'commandName':_0x4a9a24(0xb3),'commandParams':[{'forceValue':_0x12e660}]});});}),_0x78054a[_0x14d963(0xc9)][_0x14d963(0xae)](_0x5ce9af=>{const _0x43448a=_0x14d963,{data:_0x11197d}=_0x5ce9af;if(_0x11197d&&_0x43448a(0xb3)==_0x11197d[_0x43448a(0xb6)]){const _0x286eb2=_0x39e28c(_0x4bb47a,_0x43448a(0xb7));return _0x11197d[_0x43448a(0xbc)][0x0][_0x43448a(0xb4)]?{'type':_0x43448a(0xb1),'content':_0x39e28c(_0x4bb47a,_0x43448a(0xbb),_0x286eb2)}:{'type':_0x43448a(0xb1),'content':_0x39e28c(_0x4bb47a,_0x43448a(0xb0),_0x286eb2)};}});}}function oo(_0x2d7572){const _0x47868b=_0x2cf07f;return _0x47868b(0xb3)==_0x2d7572[_0x47868b(0xb5)][_0x47868b(0xb2)];}