UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 4.5 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 _0x295c5f=_0x2f2f;(function(_0x46fb1d,_0x3b7c56){const _0x530ebe=_0x2f2f,_0x1155a1=_0x46fb1d();while(!![]){try{const _0x590b86=parseInt(_0x530ebe(0x11c))/0x1*(-parseInt(_0x530ebe(0x10c))/0x2)+-parseInt(_0x530ebe(0xf5))/0x3+-parseInt(_0x530ebe(0x112))/0x4*(-parseInt(_0x530ebe(0x114))/0x5)+-parseInt(_0x530ebe(0xf1))/0x6*(parseInt(_0x530ebe(0x108))/0x7)+parseInt(_0x530ebe(0x11e))/0x8*(parseInt(_0x530ebe(0x111))/0x9)+-parseInt(_0x530ebe(0x11a))/0xa*(parseInt(_0x530ebe(0x100))/0xb)+-parseInt(_0x530ebe(0x104))/0xc*(-parseInt(_0x530ebe(0x107))/0xd);if(_0x590b86===_0x3b7c56)break;else _0x1155a1['push'](_0x1155a1['shift']());}catch(_0x249d11){_0x1155a1['push'](_0x1155a1['shift']());}}}(_0x1af9,0x7be85));import{Plugin as _0x4b6dc4}from'ckeditor5/src/core.js';function _0x2f2f(_0x4d3ca4,_0x4d35b4){const _0x1af95a=_0x1af9();return _0x2f2f=function(_0x2f2f57,_0x1534f0){_0x2f2f57=_0x2f2f57-0xf1;let _0x2cac63=_0x1af95a[_0x2f2f57];return _0x2cac63;},_0x2f2f(_0x4d3ca4,_0x4d35b4);}function _0x1af9(){const _0x5f2ae6=['from','descriptionFactory','getChangedMarkers','25502hyEPoT','end','forward','isEqual','element','18GfbpzB','121964cdxIGW','newRange','50yXMWLB','Title','locale','schema','TrackChangesEditing','nodeBefore','2061800kCdvkC','start','11mMfraL','isCollapsed','512816avCCua','has','17430CLigxv','updateMarker','getNearestSelectionRange','get','911871lqSpjH','registerPostFixer','plugins','afterInit','removeMarker','differ','suggestion','ELEMENT_TITLE','_splitMarkerName','model','createRange','11yCpLij','title-content','isTouching','registerElementLabel','24QfgawX','editor','document','6769451KjkQAe','763JFYLel'];_0x1af9=function(){return _0x5f2ae6;};return _0x1af9();}import{getTranslation as _0x388f1a}from'../utils/common-translations.js';export default class Rt extends _0x4b6dc4{[_0x295c5f(0xf8)](){const _0x52c325=_0x295c5f,_0xf6eada=this[_0x52c325(0x105)];if(!_0xf6eada[_0x52c325(0xf7)][_0x52c325(0x11f)](_0x52c325(0x115)))return;const _0x13f908=_0xf6eada[_0x52c325(0xf7)][_0x52c325(0xf4)](_0x52c325(0x118));_0x13f908[_0x52c325(0x10a)][_0x52c325(0x103)](_0x52c325(0x101),()=>_0x388f1a(_0xf6eada[_0x52c325(0x116)],_0x52c325(0xfc))),_0xf6eada[_0x52c325(0xfe)][_0x52c325(0x106)][_0x52c325(0xf6)](_0x30bec7=>{const _0x25dff7=_0x52c325;let _0x26ee21=!0x1;const _0x161e49=Array[_0x25dff7(0x109)](_0xf6eada[_0x25dff7(0xfe)][_0x25dff7(0x106)][_0x25dff7(0xfa)][_0x25dff7(0x10b)]());for(const {name:_0x3cfd37,data:_0x860342}of _0x161e49){const {group:_0x34632c}=_0x13f908[_0x25dff7(0xfd)](_0x3cfd37);if(_0x25dff7(0xfb)!==_0x34632c||!_0x860342[_0x25dff7(0x113)])continue;const _0x32a8eb=_0x860342[_0x25dff7(0x113)],_0x3bd336=_0x32a8eb[_0x25dff7(0x10d)][_0x25dff7(0x119)];if(!_0x3bd336||!_0x3bd336['is'](_0x25dff7(0x110),_0x25dff7(0x101)))continue;if(!_0x32a8eb[_0x25dff7(0x11b)][_0x25dff7(0x102)](_0x32a8eb[_0x25dff7(0x10d)]))continue;const _0x506583=_0xf6eada[_0x25dff7(0xfe)][_0x25dff7(0x117)][_0x25dff7(0xf3)](_0x32a8eb[_0x25dff7(0x10d)],_0x25dff7(0x10e));if(_0x506583&&_0x506583[_0x25dff7(0x11d)]){const _0x45d3ca=_0x30bec7[_0x25dff7(0xff)](_0x32a8eb[_0x25dff7(0x11b)],_0x506583[_0x25dff7(0x11b)]);_0x45d3ca[_0x25dff7(0x10f)](_0x32a8eb)||(_0x30bec7[_0x25dff7(0xf2)](_0x3cfd37,{'range':_0x45d3ca}),_0x26ee21=!0x0);}_0x26ee21||(_0x30bec7[_0x25dff7(0xf9)](_0x3cfd37),_0x26ee21=!0x0);}return _0x26ee21;});}}