@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
23 lines • 4.96 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. |
* | |
* | |
* +---------------------------------------------------------------------------------+
*
*
*
*
*/
function _0xdb14(_0x4fe353,_0x264310){const _0x3c06ff=_0x3c06();return _0xdb14=function(_0xdb1450,_0x38188b){_0xdb1450=_0xdb1450-0xf2;let _0x3ceec2=_0x3c06ff[_0xdb1450];return _0x3ceec2;},_0xdb14(_0x4fe353,_0x264310);}const _0x3e1e8d=_0xdb14;(function(_0x4d75fa,_0x4a4daf){const _0x416980=_0xdb14,_0x28d179=_0x4d75fa();while(!![]){try{const _0x304f14=parseInt(_0x416980(0xf2))/0x1+parseInt(_0x416980(0x117))/0x2*(parseInt(_0x416980(0x114))/0x3)+parseInt(_0x416980(0xfa))/0x4*(parseInt(_0x416980(0x103))/0x5)+-parseInt(_0x416980(0x115))/0x6*(parseInt(_0x416980(0xf4))/0x7)+parseInt(_0x416980(0x119))/0x8+parseInt(_0x416980(0x112))/0x9*(-parseInt(_0x416980(0x108))/0xa)+-parseInt(_0x416980(0xf9))/0xb;if(_0x304f14===_0x4a4daf)break;else _0x28d179['push'](_0x28d179['shift']());}catch(_0x855b18){_0x28d179['push'](_0x28d179['shift']());}}}(_0x3c06,0x62066));import{ContextPlugin as _0x559232}from'ckeditor5/src/core.js';import{Collection as _0x5b4326}from'ckeditor5/src/utils.js';import{CommentsRepository as _0x142b1b}from'./commentsrepository.js';import{Annotations as _0x19491b}from'../annotations/annotations.js';export class CommentsArchive extends _0x559232{static get[_0x3e1e8d(0xf7)](){const _0x401f32=_0x3e1e8d;return _0x401f32(0x10b);}static get[_0x3e1e8d(0x102)](){return!0x0;}static get[_0x3e1e8d(0x111)](){return!0x0;}static get[_0x3e1e8d(0x104)](){return[_0x142b1b,_0x19491b];}constructor(_0x45fd9b){const _0xa950c4=_0x3e1e8d;super(_0x45fd9b),this[_0xa950c4(0x10e)]=new _0x5b4326();}[_0x3e1e8d(0xf8)](){const _0x41fea1=_0x3e1e8d,_0x2e84ae=this[_0x41fea1(0xfc)],_0x41cde8=_0x2e84ae[_0x41fea1(0x101)][_0x41fea1(0x10a)](_0x142b1b),_0x459d0e=_0x2e84ae[_0x41fea1(0x101)][_0x41fea1(0x10a)](_0x19491b);this[_0x41fea1(0x118)](_0x41cde8,_0x41fea1(0xfe),(_0x19dd78,{threadId:_0x50911f})=>{const _0x373b64=_0x41fea1,_0x4d8ba=_0x41cde8[_0x373b64(0x100)](_0x50911f);_0x4d8ba[_0x373b64(0x10c)]&&this[_0x373b64(0x10e)][_0x373b64(0xfb)](_0x4d8ba,this[_0x373b64(0x116)](_0x4d8ba[_0x373b64(0x10c)])),this[_0x373b64(0x118)](_0x4d8ba,_0x373b64(0x105),(_0x17a681,_0x4ab413,_0x270847)=>{const _0x4ba703=_0x373b64;_0x270847?this[_0x4ba703(0x10e)][_0x4ba703(0xf6)](_0x4d8ba)||this[_0x4ba703(0x10e)][_0x4ba703(0xfb)](_0x4d8ba,this[_0x4ba703(0x116)](_0x4d8ba[_0x4ba703(0x10c)])):this[_0x4ba703(0x10e)][_0x4ba703(0xf6)](_0x4d8ba)&&this[_0x4ba703(0x10e)][_0x4ba703(0xff)](_0x4d8ba);});}),this[_0x41fea1(0x118)](_0x41cde8,_0x41fea1(0xfd),(_0x294070,{threadId:_0x3f1e74})=>{const _0x7f2230=_0x41fea1,_0x205292=_0x41cde8[_0x7f2230(0x100)](_0x3f1e74);this[_0x7f2230(0x10f)](_0x205292),this[_0x7f2230(0x10e)][_0x7f2230(0xf6)](_0x205292)&&this[_0x7f2230(0x10e)][_0x7f2230(0xff)](_0x205292);},{'priority':_0x41fea1(0xf3)}),this[_0x41fea1(0x118)](_0x459d0e[_0x41fea1(0x106)],_0x41fea1(0x10d),(_0x2d2abf,_0x4093a6)=>{const _0x57463d=_0x41fea1;_0x4093a6[_0x57463d(0x113)]||(_0x4093a6[_0x57463d(0x110)]=!0x0,_0x459d0e[_0x57463d(0xf5)](_0x4093a6));});}[_0x3e1e8d(0x116)](_0x5a3d26){const _0x5e413a=_0x3e1e8d,_0x1db549=[...this[_0x5e413a(0x10e)]][_0x5e413a(0x109)](_0x49eb76=>_0x49eb76[_0x5e413a(0x10c)]<_0x5a3d26);return _0x1db549>-0x1?_0x1db549:this[_0x5e413a(0x10e)][_0x5e413a(0x107)];}}function _0x3c06(){const _0xe7440f=['156sWoqQS','_calculatePosition','4IZrgEU','listenTo','3225584IGuLsr','442179OzxlHL','highest','97573XmZhdC','activate','has','pluginName','init','4858018PkUbFU','132sLZeAG','add','context','removeCommentThread','addCommentThread','remove','getCommentThread','plugins','isOfficialPlugin','35605choDaQ','requires','change:archivedAt','collection','length','420QvGeiD','findIndex','get','CommentsArchive','archivedAt','focus','archivedThreads','stopListening','isActive','isPremiumPlugin','23769PFyMHG','isVisible','354171GeTgcX'];_0x3c06=function(){return _0xe7440f;};return _0x3c06();}