@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
23 lines • 4.43 kB
JavaScript
/*
* 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 _0x44f8fa=_0x32d7;(function(_0x153810,_0x2be893){const _0x1ee1d1=_0x32d7,_0x4e7aa4=_0x153810();while(!![]){try{const _0x49f45f=-parseInt(_0x1ee1d1(0x159))/0x1+parseInt(_0x1ee1d1(0x15f))/0x2*(parseInt(_0x1ee1d1(0x172))/0x3)+parseInt(_0x1ee1d1(0x16b))/0x4*(-parseInt(_0x1ee1d1(0x16c))/0x5)+parseInt(_0x1ee1d1(0x16f))/0x6+-parseInt(_0x1ee1d1(0x15a))/0x7+parseInt(_0x1ee1d1(0x151))/0x8+parseInt(_0x1ee1d1(0x164))/0x9*(-parseInt(_0x1ee1d1(0x15c))/0xa);if(_0x49f45f===_0x2be893)break;else _0x4e7aa4['push'](_0x4e7aa4['shift']());}catch(_0xc57595){_0x4e7aa4['push'](_0x4e7aa4['shift']());}}}(_0x3d25,0x611b5));import{Command as _0x2b0f08}from'ckeditor5/src/core.js';import{uid as _0x553e5a}from'ckeditor5/src/utils.js';export default class J extends _0x2b0f08{[_0x44f8fa(0x15d)](){const _0x4b1b75=_0x44f8fa,_0x579a92=this[_0x4b1b75(0x15e)][_0x4b1b75(0x150)][_0x4b1b75(0x153)][_0x4b1b75(0x166)];for(const _0x442610 of _0x579a92[_0x4b1b75(0x168)]())if(this[_0x4b1b75(0x167)](_0x442610))return void(this[_0x4b1b75(0x175)]=!0x0);this[_0x4b1b75(0x175)]=!0x1;}[_0x44f8fa(0x173)]({threadId:_0x3cacdd=_0x553e5a()}={}){const _0x58053e=_0x44f8fa,_0x58db3d=this[_0x58053e(0x15e)][_0x58053e(0x150)],_0x429f39=[];for(const _0x1867d3 of _0x58db3d[_0x58053e(0x153)][_0x58053e(0x166)][_0x58053e(0x168)]())this[_0x58053e(0x167)](_0x1867d3)&&_0x429f39[_0x58053e(0x171)](this[_0x58053e(0x154)](_0x1867d3));_0x58db3d[_0x58053e(0x162)](_0x5434bf=>{const _0xdae042=_0x58053e;for(const _0x21c5b0 of _0x429f39){const _0x9bb9e4=_0x553e5a()[_0xdae042(0x161)](0x1,0x5),_0x1c5b76=_0xdae042(0x163)+_0x3cacdd+':'+_0x9bb9e4;_0x5434bf[_0xdae042(0x160)](_0x1c5b76,{'range':_0x21c5b0,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x44f8fa(0x167)](_0x1a1d10){const _0x3e2640=_0x44f8fa;for(const _0x1935e5 of _0x1a1d10[_0x3e2640(0x15b)]())if(this[_0x3e2640(0x16a)](_0x1935e5))return!0x0;return!0x1;}[_0x44f8fa(0x16a)](_0x4de16d){const _0x128b5e=_0x44f8fa;return _0x4de16d['is'](_0x128b5e(0x152))||this[_0x128b5e(0x15e)][_0x128b5e(0x150)][_0x128b5e(0x156)][_0x128b5e(0x157)](_0x4de16d)&&!_0x4de16d['is'](_0x128b5e(0x169),_0x128b5e(0x174));}[_0x44f8fa(0x154)](_0x41d5f2){const _0x3936e1=_0x44f8fa,_0x3b2f85=_0x3a8312=>!this[_0x3936e1(0x16a)](_0x3a8312[_0x3936e1(0x16e)]),_0x16e5c3=_0x41d5f2[_0x3936e1(0x165)][_0x3936e1(0x158)](_0x3b2f85),_0x12a494=_0x41d5f2[_0x3936e1(0x16d)][_0x3936e1(0x158)](_0x3b2f85,{'direction':_0x3936e1(0x155)});return this[_0x3936e1(0x15e)][_0x3936e1(0x150)][_0x3936e1(0x170)](_0x16e5c3,_0x12a494);}}function _0x32d7(_0x102a4d,_0x212161){const _0x3d258f=_0x3d25();return _0x32d7=function(_0x32d78d,_0x4d5c87){_0x32d78d=_0x32d78d-0x150;let _0x43ce44=_0x3d258f[_0x32d78d];return _0x43ce44;},_0x32d7(_0x102a4d,_0x212161);}function _0x3d25(){const _0x5f1c86=['change','comment:','115533EoGANh','start','selection','_hasContent','getRanges','element','_itemIsContent','64foPTAy','59260yFvZrC','end','item','2660172VdBzhK','createRange','push','991374TaibNr','execute','tableCell','isEnabled','model','3375424soiCwV','$textProxy','document','_trimToContent','backward','schema','isObject','getLastMatchingPosition','339763kfARQc','712061VyKmwe','getItems','130gDnzOX','refresh','editor','2boflKy','addMarker','substr'];_0x3d25=function(){return _0x5f1c86;};return _0x3d25();}