UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 3.24 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 _0x42b4ac=_0x358b;function _0x358b(_0x11c41a,_0x395dd4){const _0x501e81=_0x501e();return _0x358b=function(_0x358bdf,_0x2f6693){_0x358bdf=_0x358bdf-0x19d;let _0x37c09e=_0x501e81[_0x358bdf];return _0x37c09e;},_0x358b(_0x11c41a,_0x395dd4);}(function(_0x31b0fb,_0x230c6){const _0x2291c8=_0x358b,_0x329ee9=_0x31b0fb();while(!![]){try{const _0x510721=-parseInt(_0x2291c8(0x1a6))/0x1+parseInt(_0x2291c8(0x1a1))/0x2+-parseInt(_0x2291c8(0x1a7))/0x3+-parseInt(_0x2291c8(0x19d))/0x4+-parseInt(_0x2291c8(0x1ab))/0x5*(-parseInt(_0x2291c8(0x19e))/0x6)+parseInt(_0x2291c8(0x1ac))/0x7*(parseInt(_0x2291c8(0x1b0))/0x8)+parseInt(_0x2291c8(0x1a4))/0x9;if(_0x510721===_0x230c6)break;else _0x329ee9['push'](_0x329ee9['shift']());}catch(_0x1ee7c7){_0x329ee9['push'](_0x329ee9['shift']());}}}(_0x501e,0x77533));function _0x501e(){const _0x41e510=['plugins','2530JOzhJc','3024PagpuV','_suggestions','refresh','canEditAt','2248CVuTYm','acceptSuggestion','getRanges','model','2257076aPiKno','9726bCJotf','isEnabled','execute','1023724MWOMIZ','_isEnabledBasedOnSelection','track-changes-accept-suggestion-not-found','8162154wLvHnd','editor','810016DEAjlU','1492038rbsztL','TrackChangesEditing','get'];_0x501e=function(){return _0x41e510;};return _0x501e();}import{Command as _0x4a956f}from'ckeditor5/src/core.js';import{CKEditorError as _0x192723}from'ckeditor5/src/utils.js';export class AcceptSuggestionCommand extends _0x4a956f{[_0x42b4ac(0x1ad)];constructor(_0x17a2a9,_0x3a9e87){const _0xe5024f=_0x42b4ac;super(_0x17a2a9),this[_0xe5024f(0x1ad)]=_0x3a9e87,this[_0xe5024f(0x1ae)](),this[_0xe5024f(0x1a2)]=!0x1;}[_0x42b4ac(0x1ae)](){const _0x49f4f4=_0x42b4ac;this[_0x49f4f4(0x19f)]=!0x0;}[_0x42b4ac(0x1a0)](_0x5aee28){const _0x1e7acc=_0x42b4ac,_0x5825fd=this[_0x1e7acc(0x1ad)][_0x1e7acc(0x1a9)](_0x5aee28);if(!_0x5825fd)throw new _0x192723(_0x1e7acc(0x1a3),this);const _0x1e223a=_0x5825fd[_0x1e7acc(0x1b2)]();this[_0x1e7acc(0x1a5)][_0x1e7acc(0x1b3)][_0x1e7acc(0x1af)](_0x1e223a)&&this[_0x1e7acc(0x1a5)][_0x1e7acc(0x1aa)][_0x1e7acc(0x1a9)](_0x1e7acc(0x1a8))[_0x1e7acc(0x1b1)](_0x5825fd);}}