UNPKG

@ckeditor/ckeditor5-comments

Version:

Collaborative comments feature for CKEditor 5.

23 lines 4.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 _0x559031=_0x2403;function _0x2403(_0x106fe7,_0x3644ef){const _0x4797f0=_0x4797();return _0x2403=function(_0x240342,_0x1ea4d3){_0x240342=_0x240342-0x19b;let _0x6dbcd3=_0x4797f0[_0x240342];return _0x6dbcd3;},_0x2403(_0x106fe7,_0x3644ef);}(function(_0xdc0638,_0x5d4824){const _0x54e93b=_0x2403,_0x368db9=_0xdc0638();while(!![]){try{const _0x54a51d=parseInt(_0x54e93b(0x1a8))/0x1*(parseInt(_0x54e93b(0x1a2))/0x2)+parseInt(_0x54e93b(0x1bb))/0x3+parseInt(_0x54e93b(0x1ba))/0x4*(-parseInt(_0x54e93b(0x1ae))/0x5)+-parseInt(_0x54e93b(0x1a9))/0x6+parseInt(_0x54e93b(0x19b))/0x7+-parseInt(_0x54e93b(0x1b2))/0x8*(-parseInt(_0x54e93b(0x1b5))/0x9)+-parseInt(_0x54e93b(0x1b6))/0xa;if(_0x54a51d===_0x5d4824)break;else _0x368db9['push'](_0x368db9['shift']());}catch(_0x2e3fdd){_0x368db9['push'](_0x368db9['shift']());}}}(_0x4797,0xcca2d));import{Command as _0x16c1da}from'ckeditor5/src/core.js';import{uid as _0x9ea415}from'ckeditor5/src/utils.js';export default class J extends _0x16c1da{[_0x559031(0x1a4)](){const _0x38e9cd=_0x559031,_0x2bfbbf=this[_0x38e9cd(0x1bc)][_0x38e9cd(0x1bd)][_0x38e9cd(0x1bf)][_0x38e9cd(0x19d)];for(const _0x42ea21 of _0x2bfbbf[_0x38e9cd(0x1ac)]())if(this[_0x38e9cd(0x1be)](_0x42ea21))return void(this[_0x38e9cd(0x1a1)]=!0x0);this[_0x38e9cd(0x1a1)]=!0x1;}[_0x559031(0x1b7)]({threadId:_0x465425=_0x9ea415()}={}){const _0xc19a6=_0x559031,_0x3c9180=this[_0xc19a6(0x1bc)][_0xc19a6(0x1bd)],_0x525bae=[];for(const _0x39d62b of _0x3c9180[_0xc19a6(0x1bf)][_0xc19a6(0x19d)][_0xc19a6(0x1ac)]())this[_0xc19a6(0x1be)](_0x39d62b)&&_0x525bae[_0xc19a6(0x1ab)](this[_0xc19a6(0x1af)](_0x39d62b));_0x3c9180[_0xc19a6(0x1b4)](_0x392345=>{const _0x1d426b=_0xc19a6;for(const _0x41ae91 of _0x525bae){const _0x1b3872=_0x9ea415()[_0x1d426b(0x1b0)](0x1,0x5),_0x215f8f=_0x1d426b(0x1a0)+_0x465425+':'+_0x1b3872;_0x392345[_0x1d426b(0x1b1)](_0x215f8f,{'range':_0x41ae91,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x559031(0x1be)](_0x5abf81){const _0x33b439=_0x559031;for(const _0x2bdf4a of _0x5abf81[_0x33b439(0x1ad)]())if(this[_0x33b439(0x19f)](_0x2bdf4a))return!0x0;return!0x1;}[_0x559031(0x19f)](_0x5a1622){const _0x23f174=_0x559031;return _0x5a1622['is'](_0x23f174(0x19c))||this[_0x23f174(0x1bc)][_0x23f174(0x1bd)][_0x23f174(0x1b3)][_0x23f174(0x1a3)](_0x5a1622)&&!_0x5a1622['is'](_0x23f174(0x1a5),_0x23f174(0x1c0));}[_0x559031(0x1af)](_0x4f9d7a){const _0x25befe=_0x559031,_0x370b42=_0x33df1c=>!this[_0x25befe(0x19f)](_0x33df1c[_0x25befe(0x1a6)]),_0x2c7f59=_0x4f9d7a[_0x25befe(0x1b8)][_0x25befe(0x19e)](_0x370b42),_0x16d5aa=_0x4f9d7a[_0x25befe(0x1b9)][_0x25befe(0x19e)](_0x370b42,{'direction':_0x25befe(0x1a7)});return this[_0x25befe(0x1bc)][_0x25befe(0x1bd)][_0x25befe(0x1aa)](_0x2c7f59,_0x16d5aa);}}function _0x4797(){const _0x3fa9c6=['addMarker','332584unGsof','schema','change','324mZrXro','15911030vqzGnF','execute','start','end','194952NrCWTP','3334908DOfppA','editor','model','_hasContent','document','tableCell','730877Unazhs','$textProxy','selection','getLastMatchingPosition','_itemIsContent','comment:','isEnabled','4zqqtBM','isObject','refresh','element','item','backward','302979MDXENp','4458762AQxYaf','createRange','push','getRanges','getItems','15WLRJxD','_trimToContent','substr'];_0x4797=function(){return _0x3fa9c6;};return _0x4797();}