UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

24 lines 5.43 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 _0x1a83ec=_0x8a48;function _0x4e0b(){const _0x2b147c=['_removePendingAction','_pendingAction','1315839HvlJVe','isEnabled','canDiscard','model','canAccept','discardSuggestion','104geiNtm','859990DmWqlw','destroy','view','get','canEditAt','isDirty','stopListening','_editor','729018CtKULz','_setPendingAction','PENDING_ACTION_SUGGESTION','commentThreadController','392781PPnILB','_acceptCommand','locale','listenTo','commands','24WEbNcm','add','PendingActions','bind','execute','change:isDirty','acceptSuggestion','1622530DEYOGs','getRanges','remove','_discardCommand','unbind','557501bEaUlv','443572qXFSmC','plugins'];_0x4e0b=function(){return _0x2b147c;};return _0x4e0b();}function _0x8a48(_0xe19a20,_0x2c9b49){const _0x4e0bc0=_0x4e0b();return _0x8a48=function(_0x8a485d,_0x2bd039){_0x8a485d=_0x8a485d-0x1ad;let _0x52d84b=_0x4e0bc0[_0x8a485d];return _0x52d84b;},_0x8a48(_0xe19a20,_0x2c9b49);}(function(_0x48ce51,_0x373a51){const _0x117709=_0x8a48,_0xff85fb=_0x48ce51();while(!![]){try{const _0x5167ed=-parseInt(_0x117709(0x1bf))/0x1+parseInt(_0x117709(0x1ba))/0x2+parseInt(_0x117709(0x1ae))/0x3+parseInt(_0x117709(0x1c0))/0x4+-parseInt(_0x117709(0x1cb))/0x5*(parseInt(_0x117709(0x1b3))/0x6)+-parseInt(_0x117709(0x1c4))/0x7+parseInt(_0x117709(0x1ca))/0x8*(parseInt(_0x117709(0x1d3))/0x9);if(_0x5167ed===_0x373a51)break;else _0xff85fb['push'](_0xff85fb['shift']());}catch(_0x1ce608){_0xff85fb['push'](_0xff85fb['shift']());}}}(_0x4e0b,0xa4381));import{ObservableMixin as _0x3e2f05}from'ckeditor5/src/utils.js';import{getTranslation as _0x132839}from'../utils/common-translations.js';export class SuggestionController extends/* #__PURE__ -- @preserve */ _0x3e2f05(){[_0x1a83ec(0x1c7)];[_0x1a83ec(0x1cd)];[_0x1a83ec(0x1ad)];[_0x1a83ec(0x1d2)];[_0x1a83ec(0x1af)];[_0x1a83ec(0x1bd)];[_0x1a83ec(0x1c3)];constructor(_0x1b4b06,_0x5e6b7,_0x1c6f67,_0x50873c){const _0x4e51bd=_0x1a83ec;super(),this[_0x4e51bd(0x1c7)]=_0x5e6b7,this[_0x4e51bd(0x1cd)]=_0x1c6f67,this[_0x4e51bd(0x1ad)]=_0x50873c,this[_0x4e51bd(0x1d2)]=_0x1b4b06,this[_0x4e51bd(0x1af)]=_0x1b4b06[_0x4e51bd(0x1b2)][_0x4e51bd(0x1ce)](_0x4e51bd(0x1b9)),this[_0x4e51bd(0x1bd)]=_0x1b4b06[_0x4e51bd(0x1b2)][_0x4e51bd(0x1ce)](_0x4e51bd(0x1c9)),this[_0x4e51bd(0x1cd)][_0x4e51bd(0x1b6)](_0x4e51bd(0x1c5))['to'](this[_0x4e51bd(0x1af)],this[_0x4e51bd(0x1bd)],(_0x397ab6,_0x23424c)=>_0x397ab6||_0x23424c),this[_0x4e51bd(0x1cd)][_0x4e51bd(0x1b6)](_0x4e51bd(0x1c8))['to'](this[_0x4e51bd(0x1af)],_0x4e51bd(0x1c5),_0xf35e82=>_0xf35e82&&this[_0x4e51bd(0x1d2)][_0x4e51bd(0x1c7)][_0x4e51bd(0x1cf)](_0x5e6b7[_0x4e51bd(0x1bb)]())),this[_0x4e51bd(0x1cd)][_0x4e51bd(0x1b6)](_0x4e51bd(0x1c6))['to'](this[_0x4e51bd(0x1bd)],_0x4e51bd(0x1c5),_0xf00eda=>_0xf00eda&&this[_0x4e51bd(0x1d2)][_0x4e51bd(0x1c7)][_0x4e51bd(0x1cf)](_0x5e6b7[_0x4e51bd(0x1bb)]())),this[_0x4e51bd(0x1c3)]=null,_0x1c6f67[_0x4e51bd(0x1d0)]&&this[_0x4e51bd(0x1d4)](),this[_0x4e51bd(0x1b1)](_0x1c6f67,_0x4e51bd(0x1b9),()=>this[_0x4e51bd(0x1b9)]()),this[_0x4e51bd(0x1b1)](_0x1c6f67,_0x4e51bd(0x1c9),()=>this[_0x4e51bd(0x1c9)]()),this[_0x4e51bd(0x1b1)](_0x1c6f67,_0x4e51bd(0x1b8),()=>{const _0x21e020=_0x4e51bd;_0x1c6f67[_0x21e020(0x1d0)]?this[_0x21e020(0x1d4)]():this[_0x21e020(0x1c2)]();});}[_0x1a83ec(0x1b9)](){const _0x1b8d21=_0x1a83ec;this[_0x1b8d21(0x1af)][_0x1b8d21(0x1b7)](this[_0x1b8d21(0x1c7)]['id']);}[_0x1a83ec(0x1c9)](){const _0x2b84ce=_0x1a83ec;this[_0x2b84ce(0x1bd)][_0x2b84ce(0x1b7)](this[_0x2b84ce(0x1c7)]['id']);}[_0x1a83ec(0x1cc)](){const _0x197807=_0x1a83ec;this[_0x197807(0x1cd)][_0x197807(0x1be)](_0x197807(0x1c5)),this[_0x197807(0x1cd)][_0x197807(0x1be)](_0x197807(0x1c8)),this[_0x197807(0x1cd)][_0x197807(0x1be)](_0x197807(0x1c6)),this[_0x197807(0x1d1)](),this[_0x197807(0x1ad)][_0x197807(0x1cc)](),this[_0x197807(0x1c3)]&&this[_0x197807(0x1c2)]();}[_0x1a83ec(0x1d4)](){const _0x1afde3=_0x1a83ec,_0x3f8b79=_0x132839(this[_0x1afde3(0x1d2)][_0x1afde3(0x1b0)],_0x1afde3(0x1d5));this[_0x1afde3(0x1c3)]=this[_0x1afde3(0x1d2)][_0x1afde3(0x1c1)][_0x1afde3(0x1ce)](_0x1afde3(0x1b5))[_0x1afde3(0x1b4)](_0x3f8b79);}[_0x1a83ec(0x1c2)](){const _0x3a0916=_0x1a83ec;null!==this[_0x3a0916(0x1c3)]&&this[_0x3a0916(0x1d2)][_0x3a0916(0x1c1)][_0x3a0916(0x1ce)](_0x3a0916(0x1b5))[_0x3a0916(0x1bc)](this[_0x3a0916(0x1c3)]),this[_0x3a0916(0x1c3)]=null;}}