@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
23 lines • 6.76 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. |
* | |
* | |
* +---------------------------------------------------------------------------------+
*
*
*
*
*/
function _0x1700(){const _0x2bc57b=['addMarker:comment','getCommentThread','options','span','elementToElement','overrideMediaEmbedConverter','downcastDispatcher','image-inline','282654LWcVLb','261894sEAiiM','model','dataDowncast','isObject','add','item','ck-comment-marker','consume','2072610eWJgOk','getCustomProperty','overrideImageInlineConverter','writer','horizontalLine','ignoreResolvedComments','removeMarker:','imageInline','data','addClass','markerToHighlight','createContainerElement','attribute:url:media','widget','mapper','markerName','isResolved','overrideMarkerConverters','containerElement','toViewElement','showCommentHighlights','get','elementToStructure','media','overrideHorizontalRuleConverter','6DtelUK','img','ck-horizontal-line','plugins','for','schema','1563424wndmNG','editor','insert','addMarker:','createEmptyElement','div','init','conversion','2870455rPTiSh','stop','high','comment','505tpRZqi','4929850LdCtwc','consumable','4138ayQRpy','createPositionAt','120ZCkSRN'];_0x1700=function(){return _0x2bc57b;};return _0x1700();}const _0x32a705=_0x5197;(function(_0x128933,_0x456999){const _0x2501da=_0x5197,_0x49c06d=_0x128933();while(!![]){try{const _0x4ca00a=-parseInt(_0x2501da(0xd7))/0x1*(parseInt(_0x2501da(0xda))/0x2)+parseInt(_0x2501da(0xe6))/0x3+parseInt(_0x2501da(0xcb))/0x4+parseInt(_0x2501da(0xd8))/0x5+parseInt(_0x2501da(0xc5))/0x6*(parseInt(_0x2501da(0xd3))/0x7)+parseInt(_0x2501da(0xdc))/0x8*(-parseInt(_0x2501da(0xe5))/0x9)+parseInt(_0x2501da(0xee))/0xa;if(_0x4ca00a===_0x456999)break;else _0x49c06d['push'](_0x49c06d['shift']());}catch(_0xa2125b){_0x49c06d['push'](_0x49c06d['shift']());}}}(_0x1700,0x8a10b));import{Plugin as _0x18f02b}from'ckeditor5/src/core.js';import{toWidget as _0x16bbec}from'ckeditor5/src/widget.js';import{splitMarkerName as _0xaf30f7}from'../commentsediting.js';function _0x5197(_0x5daa9a,_0xa2c605){const _0x1700ae=_0x1700();return _0x5197=function(_0x51970c,_0x2b0eb1){_0x51970c=_0x51970c-0xae;let _0x2306c8=_0x1700ae[_0x51970c];return _0x2306c8;},_0x5197(_0x5daa9a,_0xa2c605);}import _0x44311d from'../commentsrepository.js';export default class ut extends _0x18f02b{[_0x32a705(0xd1)](){const _0x1e677d=_0x32a705;this[_0x1e677d(0xbd)](),this[_0x1e677d(0xc4)](),this[_0x1e677d(0xae)](),this[_0x1e677d(0xe2)]();}[_0x32a705(0xbd)](){const _0x1b3e18=_0x32a705;this[_0x1b3e18(0xcc)][_0x1b3e18(0xd2)][_0x1b3e18(0xc9)](_0x1b3e18(0xe8))[_0x1b3e18(0xb6)]({'model':_0x1b3e18(0xd6),'view':(_0x45e9ce,_0x445ee6)=>{const _0x386a5b=_0x1b3e18;if(!_0x445ee6[_0x386a5b(0xdf)][_0x386a5b(0xc0)])return null;if(_0x445ee6[_0x386a5b(0xdf)][_0x386a5b(0xb1)]){const {id:_0x289919}=_0xaf30f7(_0x45e9ce[_0x386a5b(0xbb)]),_0x416926=this[_0x386a5b(0xcc)][_0x386a5b(0xc8)][_0x386a5b(0xc1)](_0x44311d)[_0x386a5b(0xde)](_0x289919);if(_0x416926&&_0x416926[_0x386a5b(0xbc)]&&_0x45e9ce[_0x386a5b(0xeb)])return _0x445ee6[_0x386a5b(0xd9)][_0x386a5b(0xed)](_0x45e9ce[_0x386a5b(0xeb)],_0x386a5b(0xce)+_0x45e9ce[_0x386a5b(0xbb)]),_0x445ee6[_0x386a5b(0xd9)][_0x386a5b(0xed)](_0x45e9ce[_0x386a5b(0xeb)],_0x386a5b(0xb2)+_0x45e9ce[_0x386a5b(0xbb)]),null;}return{'classes':[_0x386a5b(0xec)]};}}),this[_0x1b3e18(0xcc)][_0x1b3e18(0xd2)][_0x1b3e18(0xc9)](_0x1b3e18(0xe8))[_0x1b3e18(0xea)](_0x1f15e7=>{const _0x4b4224=_0x1b3e18;_0x1f15e7['on'](_0x4b4224(0xdd),(_0x5aa53a,_0x413a2a,_0x1625f7)=>{const _0x1e8ebe=_0x4b4224;if(!_0x1625f7[_0x1e8ebe(0xdf)][_0x1e8ebe(0xc0)])return;const _0x3060b9=_0x413a2a[_0x1e8ebe(0xeb)];if(!_0x3060b9)return;const _0x9f42e4=_0x1625f7[_0x1e8ebe(0xba)][_0x1e8ebe(0xbf)](_0x3060b9);this[_0x1e8ebe(0xcc)][_0x1e8ebe(0xe7)][_0x1e8ebe(0xca)][_0x1e8ebe(0xe9)](_0x3060b9)&&_0x9f42e4&&!_0x9f42e4[_0x1e8ebe(0xef)](_0x1e8ebe(0xb9))&&_0x9f42e4['is'](_0x1e8ebe(0xbe))&&_0x16bbec(_0x9f42e4,_0x1625f7[_0x1e8ebe(0xaf)]);},{'priority':_0x4b4224(0xd5)});});}[_0x32a705(0xc4)](){const _0x39e81e=_0x32a705;this[_0x39e81e(0xcc)][_0x39e81e(0xd2)][_0x39e81e(0xc9)](_0x39e81e(0xe8))[_0x39e81e(0xc2)]({'model':_0x39e81e(0xb0),'view':(_0x11079f,{writer:_0x285c5d,options:_0x27c268})=>{const _0x6398d2=_0x39e81e;if(!_0x27c268[_0x6398d2(0xc0)])return null;const _0x1d5fe3=_0x285c5d[_0x6398d2(0xb7)](_0x6398d2(0xd0)),_0x3c14d7=_0x285c5d[_0x6398d2(0xcf)]('hr');return _0x285c5d[_0x6398d2(0xb5)](_0x6398d2(0xc7),_0x1d5fe3),_0x285c5d[_0x6398d2(0xcd)](_0x285c5d[_0x6398d2(0xdb)](_0x1d5fe3,0x0),_0x3c14d7),_0x1d5fe3;},'converterPriority':_0x39e81e(0xd5)});}[_0x32a705(0xae)](){const _0x2bea40=_0x32a705;this[_0x2bea40(0xcc)][_0x2bea40(0xd2)][_0x2bea40(0xc9)](_0x2bea40(0xe8))[_0x2bea40(0xc2)]({'model':_0x2bea40(0xb3),'view':(_0x589513,{writer:_0x1d0a8a,options:_0x2f5bb5})=>{const _0x351aba=_0x2bea40;if(!_0x2f5bb5[_0x351aba(0xc0)])return null;const _0x131dea=_0x1d0a8a[_0x351aba(0xb7)](_0x351aba(0xe0)),_0x18338d=_0x1d0a8a[_0x351aba(0xcf)](_0x351aba(0xc6));return _0x1d0a8a[_0x351aba(0xb5)](_0x351aba(0xe4),_0x131dea),_0x1d0a8a[_0x351aba(0xcd)](_0x1d0a8a[_0x351aba(0xdb)](_0x131dea,0x0),_0x18338d),_0x131dea;},'converterPriority':_0x2bea40(0xd5)});}[_0x32a705(0xe2)](){const _0x36f8d8=_0x32a705;this[_0x36f8d8(0xcc)][_0x36f8d8(0xd2)][_0x36f8d8(0xc9)](_0x36f8d8(0xe8))[_0x36f8d8(0xe1)]({'model':_0x36f8d8(0xc3),'view':(_0x486c5e,{writer:_0x5e8ef2,options:_0x316070})=>{const _0x4a83f0=_0x36f8d8;if(_0x316070[_0x4a83f0(0xc0)])return _0x5e8ef2[_0x4a83f0(0xcf)](_0x4a83f0(0xd0));},'converterPriority':_0x36f8d8(0xd5)}),this[_0x36f8d8(0xcc)][_0x36f8d8(0xb4)][_0x36f8d8(0xe3)]['on'](_0x36f8d8(0xb8),(_0x54a7da,_0x1fd1de,_0x438714)=>{const _0x221035=_0x36f8d8;_0x438714[_0x221035(0xdf)][_0x221035(0xc0)]&&_0x54a7da[_0x221035(0xd4)]();},{'priority':_0x36f8d8(0xd5)});}}