UNPKG

@ckeditor/ckeditor5-comments

Version:

Collaborative comments feature for CKEditor 5.

23 lines 6.91 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 _0x398552=_0xa2c4;function _0x5cab(){const _0x174d04=['addClass','img','682216lEUjeI','removeMarker:','conversion','downcastDispatcher','getCustomProperty','mapper','isObject','div','get','options','547554WrLFBh','item','attribute:url:media','createContainerElement','widget','387ZFXicG','stop','plugins','showCommentHighlights','ignoreResolvedComments','6VOAHia','consume','overrideHorizontalRuleConverter','insert','editor','8121IFaKnO','imageInline','overrideImageInlineConverter','writer','media','containerElement','schema','horizontalLine','elementToStructure','consumable','511029oZxeos','high','overrideMediaEmbedConverter','overrideMarkerConverters','13976TxTMqt','ck-comment-marker','147818vqwUIl','model','markerName','addMarker:comment','add','120PQAxDs','createEmptyElement','markerToHighlight','comment','image-inline','ck-horizontal-line','elementToElement','init','data','for','toViewElement','createPositionAt','1687522ojDZti','10ljaJSS','dataDowncast','getCommentThread','span','addMarker:','isResolved'];_0x5cab=function(){return _0x174d04;};return _0x5cab();}(function(_0x4d5e12,_0x2ca20a){const _0x499039=_0xa2c4,_0x2820a6=_0x4d5e12();while(!![]){try{const _0x29d060=-parseInt(_0x499039(0x183))/0x1+parseInt(_0x499039(0x161))/0x2+parseInt(_0x499039(0x14a))/0x3+parseInt(_0x499039(0x16a))/0x4*(-parseInt(_0x499039(0x162))/0x5)+-parseInt(_0x499039(0x17e))/0x6*(parseInt(_0x499039(0x174))/0x7)+-parseInt(_0x499039(0x14e))/0x8*(-parseInt(_0x499039(0x179))/0x9)+-parseInt(_0x499039(0x155))/0xa*(parseInt(_0x499039(0x150))/0xb);if(_0x29d060===_0x2ca20a)break;else _0x2820a6['push'](_0x2820a6['shift']());}catch(_0x427e26){_0x2820a6['push'](_0x2820a6['shift']());}}}(_0x5cab,0x7a326));function _0xa2c4(_0x4f3b8c,_0x4d2841){const _0x5cab34=_0x5cab();return _0xa2c4=function(_0xa2c40a,_0x172525){_0xa2c40a=_0xa2c40a-0x141;let _0x42d322=_0x5cab34[_0xa2c40a];return _0x42d322;},_0xa2c4(_0x4f3b8c,_0x4d2841);}import{Plugin as _0x2ec835}from'ckeditor5/src/core.js';import{toWidget as _0x105048}from'ckeditor5/src/widget.js';import{splitMarkerName as _0x14bebf}from'../commentsediting.js';import _0x1806e2 from'../commentsrepository.js';export default class ut extends _0x2ec835{[_0x398552(0x15c)](){const _0x725c7f=_0x398552;this[_0x725c7f(0x14d)](),this[_0x725c7f(0x180)](),this[_0x725c7f(0x142)](),this[_0x725c7f(0x14c)]();}[_0x398552(0x14d)](){const _0x286626=_0x398552;this[_0x286626(0x182)][_0x286626(0x16c)][_0x286626(0x15e)](_0x286626(0x163))[_0x286626(0x157)]({'model':_0x286626(0x158),'view':(_0xfd5234,_0x1a1648)=>{const _0x1facb3=_0x286626;if(!_0x1a1648[_0x1facb3(0x173)][_0x1facb3(0x17c)])return null;if(_0x1a1648[_0x1facb3(0x173)][_0x1facb3(0x17d)]){const {id:_0x2cd1e0}=_0x14bebf(_0xfd5234[_0x1facb3(0x152)]),_0x28d526=this[_0x1facb3(0x182)][_0x1facb3(0x17b)][_0x1facb3(0x172)](_0x1806e2);if(_0x28d526[_0x1facb3(0x164)](_0x2cd1e0)?.[_0x1facb3(0x167)]&&_0xfd5234[_0x1facb3(0x175)])return _0x1a1648[_0x1facb3(0x149)][_0x1facb3(0x17f)](_0xfd5234[_0x1facb3(0x175)],_0x1facb3(0x166)+_0xfd5234[_0x1facb3(0x152)]),_0x1a1648[_0x1facb3(0x149)][_0x1facb3(0x17f)](_0xfd5234[_0x1facb3(0x175)],_0x1facb3(0x16b)+_0xfd5234[_0x1facb3(0x152)]),null;}return{'classes':[_0x1facb3(0x14f)]};}}),this[_0x286626(0x182)][_0x286626(0x16c)][_0x286626(0x15e)](_0x286626(0x163))[_0x286626(0x154)](_0x21acf9=>{const _0x264bb8=_0x286626;_0x21acf9['on'](_0x264bb8(0x153),(_0x20d0e0,_0x3a0175,_0x11a7d3)=>{const _0x2eb484=_0x264bb8;if(!_0x11a7d3[_0x2eb484(0x173)][_0x2eb484(0x17c)])return;const _0x5b70ba=_0x3a0175[_0x2eb484(0x175)];if(!_0x5b70ba)return;const _0x89898c=_0x11a7d3[_0x2eb484(0x16f)][_0x2eb484(0x15f)](_0x5b70ba);this[_0x2eb484(0x182)][_0x2eb484(0x151)][_0x2eb484(0x146)][_0x2eb484(0x170)](_0x5b70ba)&&_0x89898c&&!_0x89898c[_0x2eb484(0x16e)](_0x2eb484(0x178))&&_0x89898c['is'](_0x2eb484(0x145))&&_0x105048(_0x89898c,_0x11a7d3[_0x2eb484(0x143)]);},{'priority':_0x264bb8(0x14b)});});}[_0x398552(0x180)](){const _0x4a18f2=_0x398552;this[_0x4a18f2(0x182)][_0x4a18f2(0x16c)][_0x4a18f2(0x15e)](_0x4a18f2(0x163))[_0x4a18f2(0x148)]({'model':_0x4a18f2(0x147),'view':(_0xeecdcf,{writer:_0xd6615a,options:_0x465c86})=>{const _0x1fe9b6=_0x4a18f2;if(!_0x465c86[_0x1fe9b6(0x17c)])return null;const _0x2c6196=_0xd6615a[_0x1fe9b6(0x177)](_0x1fe9b6(0x171)),_0x52aa70=_0xd6615a[_0x1fe9b6(0x156)]('hr');return _0xd6615a[_0x1fe9b6(0x168)](_0x1fe9b6(0x15a),_0x2c6196),_0xd6615a[_0x1fe9b6(0x181)](_0xd6615a[_0x1fe9b6(0x160)](_0x2c6196,0x0),_0x52aa70),_0x2c6196;},'converterPriority':_0x4a18f2(0x14b)});}[_0x398552(0x142)](){const _0x199ec8=_0x398552;this[_0x199ec8(0x182)][_0x199ec8(0x16c)][_0x199ec8(0x15e)](_0x199ec8(0x163))[_0x199ec8(0x148)]({'model':_0x199ec8(0x141),'view':(_0x58a626,{writer:_0x46ea05,options:_0x456e6e})=>{const _0x1781d9=_0x199ec8;if(!_0x456e6e[_0x1781d9(0x17c)])return null;const _0x1b2db4=_0x46ea05[_0x1781d9(0x177)](_0x1781d9(0x165)),_0x3378b9=_0x46ea05[_0x1781d9(0x156)](_0x1781d9(0x169));return _0x46ea05[_0x1781d9(0x168)](_0x1781d9(0x159),_0x1b2db4),_0x46ea05[_0x1781d9(0x181)](_0x46ea05[_0x1781d9(0x160)](_0x1b2db4,0x0),_0x3378b9),_0x1b2db4;},'converterPriority':_0x199ec8(0x14b)});}[_0x398552(0x14c)](){const _0x34a9e7=_0x398552;this[_0x34a9e7(0x182)][_0x34a9e7(0x16c)][_0x34a9e7(0x15e)](_0x34a9e7(0x163))[_0x34a9e7(0x15b)]({'model':_0x34a9e7(0x144),'view':(_0x1029cb,{writer:_0x2ce5f5,options:_0x52aefd})=>{const _0x8897eb=_0x34a9e7;if(_0x52aefd[_0x8897eb(0x17c)])return _0x2ce5f5[_0x8897eb(0x156)](_0x8897eb(0x171));},'converterPriority':_0x34a9e7(0x14b)}),this[_0x34a9e7(0x182)][_0x34a9e7(0x15d)][_0x34a9e7(0x16d)]['on'](_0x34a9e7(0x176),(_0x31431b,_0x5ddac6,_0x1fb81a)=>{const _0xab2b35=_0x34a9e7;_0x1fb81a[_0xab2b35(0x173)][_0xab2b35(0x17c)]&&_0x31431b[_0xab2b35(0x17a)]();},{'priority':_0x34a9e7(0x14b)});}}