UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 5.17 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 _0x5d45ea=_0x3ee5;function _0x3ee5(_0x3b349c,_0x3a3c6f){const _0x1ab844=_0x1ab8();return _0x3ee5=function(_0x3ee589,_0x4c39f6){_0x3ee589=_0x3ee589-0x1a4;let _0x32052d=_0x1ab844[_0x3ee589];return _0x32052d;},_0x3ee5(_0x3b349c,_0x3a3c6f);}(function(_0x5dcfd9,_0xe2c003){const _0x51f993=_0x3ee5,_0x333ed6=_0x5dcfd9();while(!![]){try{const _0x1ed557=parseInt(_0x51f993(0x1ca))/0x1*(-parseInt(_0x51f993(0x1b5))/0x2)+-parseInt(_0x51f993(0x1c3))/0x3*(-parseInt(_0x51f993(0x1c8))/0x4)+-parseInt(_0x51f993(0x1b4))/0x5+-parseInt(_0x51f993(0x1b8))/0x6*(-parseInt(_0x51f993(0x1ba))/0x7)+-parseInt(_0x51f993(0x1c7))/0x8*(parseInt(_0x51f993(0x1ad))/0x9)+-parseInt(_0x51f993(0x1bc))/0xa+parseInt(_0x51f993(0x1ce))/0xb;if(_0x1ed557===_0xe2c003)break;else _0x333ed6['push'](_0x333ed6['shift']());}catch(_0x429699){_0x333ed6['push'](_0x333ed6['shift']());}}}(_0x1ab8,0x8a0f2));import{Plugin as _0x1c6c1b}from'ckeditor5/src/core.js';function _0x1ab8(){const _0x57230a=['$root','23931985wIPKcx','editor','BlockQuoteEditing','*Remove\x20format:*\x20%0','from','document','commandParams','registerDescriptionCallback','parent','getSelectedBlocks','descriptionFactory','enableCommand','583623tgmMiZ','checkChild','name','TrackChangesEditing','schema','markBlockFormat','format','4900525jjYfNH','12WmaQKk','filter','change','864078BTLdpH','model','7iJQssT','has','5159290aNNtSq','plugins','commandName','get','ELEMENT_BLOCK_QUOTE','forceValue','locale','335088cjCGrY','selection','commands','*Set\x20format:*\x20%0','16NKIdmu','16HAmnYV','value','95869MaVFjp','afterInit','blockQuote'];_0x1ab8=function(){return _0x57230a;};return _0x1ab8();}import{getTranslation as _0x9e0722}from'../utils/common-translations.js';import{getRangesOfBlockGroups as _0x3af13f}from'../utils/utils.js';export default class G extends _0x1c6c1b{[_0x5d45ea(0x1cb)](){const _0x30893f=_0x5d45ea,_0x54a0f3=this[_0x30893f(0x1cf)],_0x5b1b93=_0x54a0f3[_0x30893f(0x1c2)];if(!_0x54a0f3[_0x30893f(0x1bd)][_0x30893f(0x1bb)](_0x30893f(0x1d0)))return;const _0x2588c0=_0x54a0f3[_0x30893f(0x1bd)][_0x30893f(0x1bf)](_0x30893f(0x1b0)),_0x50f28a=this[_0x30893f(0x1cf)][_0x30893f(0x1c5)][_0x30893f(0x1bf)](_0x30893f(0x1cc));_0x2588c0[_0x30893f(0x1ac)](_0x30893f(0x1cc),(_0x28bca3,_0x45d27c={})=>{const _0x5e8df0=_0x30893f,_0x3330d5=this[_0x5e8df0(0x1cf)][_0x5e8df0(0x1b9)][_0x5e8df0(0x1a6)][_0x5e8df0(0x1c4)],_0x13dcbb=_0x45d27c&&void 0x0!==_0x45d27c[_0x5e8df0(0x1c1)]?_0x45d27c[_0x5e8df0(0x1c1)]:!_0x50f28a[_0x5e8df0(0x1c9)];let _0x10401b=[];if(_0x13dcbb){const _0x37d770=Array[_0x5e8df0(0x1a5)](_0x3330d5[_0x5e8df0(0x1aa)]())[_0x5e8df0(0x1b6)](_0x108d09=>oo(_0x108d09)||function(_0x51868a,_0x39342c){const _0x28b038=_0x5e8df0,_0xf1e50b=_0x39342c[_0x28b038(0x1ae)](_0x51868a[_0x28b038(0x1a9)],_0x28b038(0x1cc)),_0x3b05d4=_0x39342c[_0x28b038(0x1ae)]([_0x28b038(0x1cd),_0x28b038(0x1cc)],_0x51868a);return _0xf1e50b&&_0x3b05d4;}(_0x108d09,this[_0x5e8df0(0x1cf)][_0x5e8df0(0x1b9)][_0x5e8df0(0x1b1)]));_0x10401b=_0x3af13f(_0x37d770,_0x54a0f3[_0x5e8df0(0x1b9)]);}else{const _0x5c7e21=Array[_0x5e8df0(0x1a5)](_0x3330d5[_0x5e8df0(0x1aa)]())[_0x5e8df0(0x1b6)](_0x30a372=>oo(_0x30a372));_0x10401b=_0x3af13f(_0x5c7e21,_0x54a0f3[_0x5e8df0(0x1b9)]);}_0x54a0f3[_0x5e8df0(0x1b9)][_0x5e8df0(0x1b7)](()=>{const _0x575489=_0x5e8df0;for(const _0x45d636 of _0x10401b)_0x2588c0[_0x575489(0x1b2)](_0x45d636,{'commandName':_0x575489(0x1cc),'commandParams':[{'forceValue':_0x13dcbb}]});});}),_0x2588c0[_0x30893f(0x1ab)][_0x30893f(0x1a8)](_0x3ae6f3=>{const _0x154cf3=_0x30893f,{data:_0x23e742}=_0x3ae6f3;if(_0x23e742&&_0x154cf3(0x1cc)==_0x23e742[_0x154cf3(0x1be)]){const _0x46f2f3=_0x9e0722(_0x5b1b93,_0x154cf3(0x1c0));return _0x23e742[_0x154cf3(0x1a7)][0x0][_0x154cf3(0x1c1)]?{'type':_0x154cf3(0x1b3),'content':_0x9e0722(_0x5b1b93,_0x154cf3(0x1c6),_0x46f2f3)}:{'type':_0x154cf3(0x1b3),'content':_0x9e0722(_0x5b1b93,_0x154cf3(0x1a4),_0x46f2f3)};}});}}function oo(_0x174863){const _0x16dc0c=_0x5d45ea;return _0x16dc0c(0x1cc)==_0x174863[_0x16dc0c(0x1a9)][_0x16dc0c(0x1af)];}