UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

24 lines 5.47 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 _0x5647db=_0x222e;function _0xba5d(){const _0x1e2657=['canAccept','locale','get','PendingActions','model','177363ttWpjS','isDirty','_discardCommand','canDiscard','destroy','7386006SfZJpX','_removePendingAction','view','_setPendingAction','change:isDirty','bind','_pendingAction','_editor','add','unbind','listenTo','PENDING_ACTION_SUGGESTION','12143040iniNfe','remove','_acceptCommand','execute','118712Jmrtjw','discardSuggestion','142242QkYQqA','plugins','36DIIgPW','getRanges','stopListening','canEditAt','807568BbnQIm','5AnxdNh','5365152flTqlq','commands','commentThreadController','isEnabled','acceptSuggestion','525uNSYQq'];_0xba5d=function(){return _0x1e2657;};return _0xba5d();}function _0x222e(_0x570d79,_0x53eb40){const _0xba5d69=_0xba5d();return _0x222e=function(_0x222ecd,_0x574764){_0x222ecd=_0x222ecd-0x169;let _0x3e9601=_0xba5d69[_0x222ecd];return _0x3e9601;},_0x222e(_0x570d79,_0x53eb40);}(function(_0x978aa4,_0x3a0c04){const _0x220295=_0x222e,_0x3fc462=_0x978aa4();while(!![]){try{const _0x5b4ef5=-parseInt(_0x220295(0x16f))/0x1+-parseInt(_0x220295(0x175))/0x2+parseInt(_0x220295(0x182))/0x3*(-parseInt(_0x220295(0x171))/0x4)+parseInt(_0x220295(0x176))/0x5*(parseInt(_0x220295(0x187))/0x6)+parseInt(_0x220295(0x17c))/0x7*(parseInt(_0x220295(0x16d))/0x8)+parseInt(_0x220295(0x177))/0x9+-parseInt(_0x220295(0x169))/0xa;if(_0x5b4ef5===_0x3a0c04)break;else _0x3fc462['push'](_0x3fc462['shift']());}catch(_0x3edf60){_0x3fc462['push'](_0x3fc462['shift']());}}}(_0xba5d,0x9e1d3));import{ObservableMixin as _0x34eb0f}from'ckeditor5/src/utils.js';import{getTranslation as _0x5be3f4}from'../utils/common-translations.js';export default class pe extends/* #__PURE__ -- @preserve */ _0x34eb0f(){[_0x5647db(0x181)];[_0x5647db(0x189)];[_0x5647db(0x179)];[_0x5647db(0x18e)];[_0x5647db(0x16b)];[_0x5647db(0x184)];[_0x5647db(0x18d)];constructor(_0x352529,_0x12dc5e,_0x44b1fd,_0x3927d8){const _0x3a1e3d=_0x5647db;super(),this[_0x3a1e3d(0x181)]=_0x12dc5e,this[_0x3a1e3d(0x189)]=_0x44b1fd,this[_0x3a1e3d(0x179)]=_0x3927d8,this[_0x3a1e3d(0x18e)]=_0x352529,this[_0x3a1e3d(0x16b)]=_0x352529[_0x3a1e3d(0x178)][_0x3a1e3d(0x17f)](_0x3a1e3d(0x17b)),this[_0x3a1e3d(0x184)]=_0x352529[_0x3a1e3d(0x178)][_0x3a1e3d(0x17f)](_0x3a1e3d(0x16e)),this[_0x3a1e3d(0x189)][_0x3a1e3d(0x18c)](_0x3a1e3d(0x17a))['to'](this[_0x3a1e3d(0x16b)],this[_0x3a1e3d(0x184)],(_0x1e4235,_0x212332)=>_0x1e4235||_0x212332),this[_0x3a1e3d(0x189)][_0x3a1e3d(0x18c)](_0x3a1e3d(0x17d))['to'](this[_0x3a1e3d(0x16b)],_0x3a1e3d(0x17a),_0x222de0=>_0x222de0&&this[_0x3a1e3d(0x18e)][_0x3a1e3d(0x181)][_0x3a1e3d(0x174)](_0x12dc5e[_0x3a1e3d(0x172)]())),this[_0x3a1e3d(0x189)][_0x3a1e3d(0x18c)](_0x3a1e3d(0x185))['to'](this[_0x3a1e3d(0x184)],_0x3a1e3d(0x17a),_0x464b33=>_0x464b33&&this[_0x3a1e3d(0x18e)][_0x3a1e3d(0x181)][_0x3a1e3d(0x174)](_0x12dc5e[_0x3a1e3d(0x172)]())),this[_0x3a1e3d(0x18d)]=null,_0x44b1fd[_0x3a1e3d(0x183)]&&this[_0x3a1e3d(0x18a)](),this[_0x3a1e3d(0x191)](_0x44b1fd,_0x3a1e3d(0x17b),()=>this[_0x3a1e3d(0x17b)]()),this[_0x3a1e3d(0x191)](_0x44b1fd,_0x3a1e3d(0x16e),()=>this[_0x3a1e3d(0x16e)]()),this[_0x3a1e3d(0x191)](_0x44b1fd,_0x3a1e3d(0x18b),()=>{const _0x3f4c5b=_0x3a1e3d;_0x44b1fd[_0x3f4c5b(0x183)]?this[_0x3f4c5b(0x18a)]():this[_0x3f4c5b(0x188)]();});}[_0x5647db(0x17b)](){const _0x1e4ebc=_0x5647db;this[_0x1e4ebc(0x16b)][_0x1e4ebc(0x16c)](this[_0x1e4ebc(0x181)]['id']);}[_0x5647db(0x16e)](){const _0x44e3f6=_0x5647db;this[_0x44e3f6(0x184)][_0x44e3f6(0x16c)](this[_0x44e3f6(0x181)]['id']);}[_0x5647db(0x186)](){const _0x31d878=_0x5647db;this[_0x31d878(0x189)][_0x31d878(0x190)](_0x31d878(0x17a)),this[_0x31d878(0x189)][_0x31d878(0x190)](_0x31d878(0x17d)),this[_0x31d878(0x189)][_0x31d878(0x190)](_0x31d878(0x185)),this[_0x31d878(0x173)](),this[_0x31d878(0x179)][_0x31d878(0x186)](),this[_0x31d878(0x18d)]&&this[_0x31d878(0x188)]();}[_0x5647db(0x18a)](){const _0x127d43=_0x5647db,_0x7b81a9=_0x5be3f4(this[_0x127d43(0x18e)][_0x127d43(0x17e)],_0x127d43(0x192));this[_0x127d43(0x18d)]=this[_0x127d43(0x18e)][_0x127d43(0x170)][_0x127d43(0x17f)](_0x127d43(0x180))[_0x127d43(0x18f)](_0x7b81a9);}[_0x5647db(0x188)](){const _0x4cd331=_0x5647db;null!==this[_0x4cd331(0x18d)]&&this[_0x4cd331(0x18e)][_0x4cd331(0x170)][_0x4cd331(0x17f)](_0x4cd331(0x180))[_0x4cd331(0x16a)](this[_0x4cd331(0x18d)]),this[_0x4cd331(0x18d)]=null;}}