@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
23 lines • 6.84 kB
JavaScript
/*
* Copyright (c) 2003-2026, 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 _0x5bdea8=_0xfc03;(function(_0x174ce0,_0x2ad159){const _0x162d3d=_0xfc03,_0x2f340d=_0x174ce0();while(!![]){try{const _0x3d8320=parseInt(_0x162d3d(0x8d))/0x1+parseInt(_0x162d3d(0x78))/0x2*(parseInt(_0x162d3d(0x9f))/0x3)+-parseInt(_0x162d3d(0x79))/0x4*(-parseInt(_0x162d3d(0x81))/0x5)+-parseInt(_0x162d3d(0x67))/0x6+-parseInt(_0x162d3d(0x9e))/0x7*(-parseInt(_0x162d3d(0x8a))/0x8)+-parseInt(_0x162d3d(0x6a))/0x9+parseInt(_0x162d3d(0x9a))/0xa*(-parseInt(_0x162d3d(0x72))/0xb);if(_0x3d8320===_0x2ad159)break;else _0x2f340d['push'](_0x2f340d['shift']());}catch(_0x3b9b18){_0x2f340d['push'](_0x2f340d['shift']());}}}(_0x596a,0xa19ed));import{Plugin as _0x44565c}from'ckeditor5/src/core.js';import{toWidget as _0x317975}from'ckeditor5/src/widget.js';import{splitMarkerName as _0x110dc4}from'../../utils/splitmarkername.js';import{CommentsRepository as _0x1b07be}from'../commentsrepository.js';function _0x596a(){const _0x4ab222=['markerName','toViewElement','createPositionAt','editor','mapper','13418438DxyyFM','downcastDispatcher','high','get','dataDowncast','attribute:url:media','2962FEWqpj','52AwoGnP','containerElement','ck-horizontal-line','data','insert','elementToElement','getCustomProperty','init','258770jlvlwX','createContainerElement','stop','overrideMarkerConverters','getCommentThread','ignoreResolvedComments','addMarker:','addClass','addMarker:comment','4341688gjccqq','writer','schema','1286272rXQBbD','img','widget','isResolved','for','image-inline','isObject','model','elementToStructure','consumable','removeMarker:','options','item','10zDWoNf','overrideImageInlineConverter','markerToHighlight','createEmptyElement','14hlAoNe','1341aqdWhj','span','imageInline','add','comment','conversion','consume','plugins','overrideMediaEmbedConverter','media','showCommentHighlights','4357308hCgswB','horizontalLine','ck-comment-marker','9885870bOsUxD','overrideHorizontalRuleConverter','div'];_0x596a=function(){return _0x4ab222;};return _0x596a();}function _0xfc03(_0x330547,_0x139bfb){const _0x596aa8=_0x596a();return _0xfc03=function(_0xfc03c6,_0x3d2bb9){_0xfc03c6=_0xfc03c6-0x65;let _0x15ba6a=_0x596aa8[_0xfc03c6];return _0x15ba6a;},_0xfc03(_0x330547,_0x139bfb);}export class ShowCommentHighlights extends _0x44565c{[_0x5bdea8(0x80)](){const _0x1f5c03=_0x5bdea8;this[_0x1f5c03(0x84)](),this[_0x1f5c03(0x6b)](),this[_0x1f5c03(0x9b)](),this[_0x1f5c03(0xa7)]();}[_0x5bdea8(0x84)](){const _0x518a5a=_0x5bdea8;this[_0x518a5a(0x70)][_0x518a5a(0xa4)][_0x518a5a(0x91)](_0x518a5a(0x76))[_0x518a5a(0x9c)]({'model':_0x518a5a(0xa3),'view':(_0xf6ff41,_0x24de08)=>{const _0x4b4824=_0x518a5a;if(!_0x24de08[_0x4b4824(0x98)][_0x4b4824(0x66)])return null;if(_0x24de08[_0x4b4824(0x98)][_0x4b4824(0x86)]){const {id:_0x4e0453}=_0x110dc4(_0xf6ff41[_0x4b4824(0x6d)]),_0x3241d8=this[_0x4b4824(0x70)][_0x4b4824(0xa6)][_0x4b4824(0x75)](_0x1b07be);if(_0x3241d8[_0x4b4824(0x85)](_0x4e0453)?.[_0x4b4824(0x90)]&&_0xf6ff41[_0x4b4824(0x99)])return _0x24de08[_0x4b4824(0x96)][_0x4b4824(0xa5)](_0xf6ff41[_0x4b4824(0x99)],_0x4b4824(0x87)+_0xf6ff41[_0x4b4824(0x6d)]),_0x24de08[_0x4b4824(0x96)][_0x4b4824(0xa5)](_0xf6ff41[_0x4b4824(0x99)],_0x4b4824(0x97)+_0xf6ff41[_0x4b4824(0x6d)]),null;}return{'classes':[_0x4b4824(0x69)]};}}),this[_0x518a5a(0x70)][_0x518a5a(0xa4)][_0x518a5a(0x91)](_0x518a5a(0x76))[_0x518a5a(0xa2)](_0x3cd186=>{const _0x59f6e2=_0x518a5a;_0x3cd186['on'](_0x59f6e2(0x89),(_0x4781e7,_0x3290cd,_0x3f647c)=>{const _0xcdf729=_0x59f6e2;if(!_0x3f647c[_0xcdf729(0x98)][_0xcdf729(0x66)])return;const _0x4eaff0=_0x3290cd[_0xcdf729(0x99)];if(!_0x4eaff0)return;const _0xbd09c8=_0x3f647c[_0xcdf729(0x71)][_0xcdf729(0x6e)](_0x4eaff0);this[_0xcdf729(0x70)][_0xcdf729(0x94)][_0xcdf729(0x8c)][_0xcdf729(0x93)](_0x4eaff0)&&_0xbd09c8&&!_0xbd09c8[_0xcdf729(0x7f)](_0xcdf729(0x8f))&&_0xbd09c8['is'](_0xcdf729(0x7a))&&_0x317975(_0xbd09c8,_0x3f647c[_0xcdf729(0x8b)]);},{'priority':_0x59f6e2(0x74)});});}[_0x5bdea8(0x6b)](){const _0x463e16=_0x5bdea8;this[_0x463e16(0x70)][_0x463e16(0xa4)][_0x463e16(0x91)](_0x463e16(0x76))[_0x463e16(0x95)]({'model':_0x463e16(0x68),'view':(_0x5d88ae,{writer:_0x3a1eef,options:_0x3473f1})=>{const _0x34fa02=_0x463e16;if(!_0x3473f1[_0x34fa02(0x66)])return null;const _0x4eb481=_0x3a1eef[_0x34fa02(0x82)](_0x34fa02(0x6c)),_0x278e3c=_0x3a1eef[_0x34fa02(0x9d)]('hr');return _0x3a1eef[_0x34fa02(0x88)](_0x34fa02(0x7b),_0x4eb481),_0x3a1eef[_0x34fa02(0x7d)](_0x3a1eef[_0x34fa02(0x6f)](_0x4eb481,0x0),_0x278e3c),_0x4eb481;},'converterPriority':_0x463e16(0x74)});}[_0x5bdea8(0x9b)](){const _0x4bf440=_0x5bdea8;this[_0x4bf440(0x70)][_0x4bf440(0xa4)][_0x4bf440(0x91)](_0x4bf440(0x76))[_0x4bf440(0x95)]({'model':_0x4bf440(0xa1),'view':(_0xb53a18,{writer:_0x3c18c2,options:_0x21c9ac})=>{const _0x326cc1=_0x4bf440;if(!_0x21c9ac[_0x326cc1(0x66)])return null;const _0x14582d=_0x3c18c2[_0x326cc1(0x82)](_0x326cc1(0xa0)),_0x47902f=_0x3c18c2[_0x326cc1(0x9d)](_0x326cc1(0x8e));return _0x3c18c2[_0x326cc1(0x88)](_0x326cc1(0x92),_0x14582d),_0x3c18c2[_0x326cc1(0x7d)](_0x3c18c2[_0x326cc1(0x6f)](_0x14582d,0x0),_0x47902f),_0x14582d;},'converterPriority':_0x4bf440(0x74)});}[_0x5bdea8(0xa7)](){const _0x509cb9=_0x5bdea8;this[_0x509cb9(0x70)][_0x509cb9(0xa4)][_0x509cb9(0x91)](_0x509cb9(0x76))[_0x509cb9(0x7e)]({'model':_0x509cb9(0x65),'view':(_0x511f72,{writer:_0x2337e8,options:_0x19a789})=>{const _0x35aa4d=_0x509cb9;if(_0x19a789[_0x35aa4d(0x66)])return _0x2337e8[_0x35aa4d(0x9d)](_0x35aa4d(0x6c));},'converterPriority':_0x509cb9(0x74)}),this[_0x509cb9(0x70)][_0x509cb9(0x7c)][_0x509cb9(0x73)]['on'](_0x509cb9(0x77),(_0x4e07e9,_0x546756,_0x31f3e2)=>{const _0x57f3b9=_0x509cb9;_0x31f3e2[_0x57f3b9(0x98)][_0x57f3b9(0x66)]&&_0x4e07e9[_0x57f3b9(0x83)]();},{'priority':_0x509cb9(0x74)});}}