@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
23 lines • 4.9 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 _0x5466(){const _0x550010=['isActive','plugins','archivedAt','isPremiumPlugin','233DDojeS','4mOdHix','length','change:archivedAt','has','3706297onJOcq','focus','listenTo','4024mWmUYw','CommentsArchive','highest','405981jGcpts','addCommentThread','activate','isVisible','stopListening','_calculatePosition','getCommentThread','requires','init','archivedThreads','get','isOfficialPlugin','pluginName','953360GOSdGx','add','findIndex','1270731UElBGb','4056576MhXIpz','remove','context','3738948VmPBUX','collection','removeCommentThread'];_0x5466=function(){return _0x550010;};return _0x5466();}function _0x124c(_0x1cb5f0,_0x2596ff){const _0x546639=_0x5466();return _0x124c=function(_0x124c27,_0x640da9){_0x124c27=_0x124c27-0x135;let _0x22c618=_0x546639[_0x124c27];return _0x22c618;},_0x124c(_0x1cb5f0,_0x2596ff);}const _0x15291a=_0x124c;(function(_0x93b024,_0x5d2314){const _0x37143d=_0x124c,_0x4c22bb=_0x93b024();while(!![]){try{const _0x3ad339=parseInt(_0x37143d(0x135))/0x1*(parseInt(_0x37143d(0x13d))/0x2)+-parseInt(_0x37143d(0x150))/0x3*(-parseInt(_0x37143d(0x136))/0x4)+-parseInt(_0x37143d(0x14d))/0x5+parseInt(_0x37143d(0x154))/0x6+-parseInt(_0x37143d(0x13a))/0x7+-parseInt(_0x37143d(0x151))/0x8+parseInt(_0x37143d(0x140))/0x9;if(_0x3ad339===_0x5d2314)break;else _0x4c22bb['push'](_0x4c22bb['shift']());}catch(_0x4a78f6){_0x4c22bb['push'](_0x4c22bb['shift']());}}}(_0x5466,0x51671));import{ContextPlugin as _0x54b469}from'ckeditor5/src/core.js';import{Collection as _0x35ec35}from'ckeditor5/src/utils.js';import{CommentsRepository as _0x23ff28}from'./commentsrepository.js';import{Annotations as _0x21c7b8}from'../annotations/annotations.js';export class CommentsArchive extends _0x54b469{static get[_0x15291a(0x14c)](){const _0x3eb733=_0x15291a;return _0x3eb733(0x13e);}static get[_0x15291a(0x14b)](){return!0x0;}static get[_0x15291a(0x15a)](){return!0x0;}static get[_0x15291a(0x147)](){return[_0x23ff28,_0x21c7b8];}constructor(_0x4e4075){const _0x1a3ca4=_0x15291a;super(_0x4e4075),this[_0x1a3ca4(0x149)]=new _0x35ec35();}[_0x15291a(0x148)](){const _0x19a912=_0x15291a,_0x39a616=this[_0x19a912(0x153)],_0x2dae2c=_0x39a616[_0x19a912(0x158)][_0x19a912(0x14a)](_0x23ff28),_0x3795d1=_0x39a616[_0x19a912(0x158)][_0x19a912(0x14a)](_0x21c7b8);this[_0x19a912(0x13c)](_0x2dae2c,_0x19a912(0x141),(_0x2a1ffc,{threadId:_0x3ce1bd})=>{const _0x24e828=_0x19a912,_0x1281ae=_0x2dae2c[_0x24e828(0x146)](_0x3ce1bd);_0x1281ae[_0x24e828(0x159)]&&this[_0x24e828(0x149)][_0x24e828(0x14e)](_0x1281ae,this[_0x24e828(0x145)](_0x1281ae[_0x24e828(0x159)])),this[_0x24e828(0x13c)](_0x1281ae,_0x24e828(0x138),(_0xe6211d,_0x13dddf,_0x37ce8b)=>{const _0x169717=_0x24e828;_0x37ce8b?this[_0x169717(0x149)][_0x169717(0x139)](_0x1281ae)||this[_0x169717(0x149)][_0x169717(0x14e)](_0x1281ae,this[_0x169717(0x145)](_0x1281ae[_0x169717(0x159)])):this[_0x169717(0x149)][_0x169717(0x139)](_0x1281ae)&&this[_0x169717(0x149)][_0x169717(0x152)](_0x1281ae);});}),this[_0x19a912(0x13c)](_0x2dae2c,_0x19a912(0x156),(_0x39b864,{threadId:_0x527a88})=>{const _0x477b97=_0x19a912,_0x54c1b0=_0x2dae2c[_0x477b97(0x146)](_0x527a88);this[_0x477b97(0x144)](_0x54c1b0),this[_0x477b97(0x149)][_0x477b97(0x139)](_0x54c1b0)&&this[_0x477b97(0x149)][_0x477b97(0x152)](_0x54c1b0);},{'priority':_0x19a912(0x13f)}),this[_0x19a912(0x13c)](_0x3795d1[_0x19a912(0x155)],_0x19a912(0x13b),(_0x25d3da,_0x3d0658)=>{const _0x49d6e1=_0x19a912;_0x3d0658[_0x49d6e1(0x143)]||(_0x3d0658[_0x49d6e1(0x157)]=!0x0,_0x3795d1[_0x49d6e1(0x142)](_0x3d0658));});}[_0x15291a(0x145)](_0x4ca5d3){const _0x1c418b=_0x15291a,_0x5cc888=[...this[_0x1c418b(0x149)]][_0x1c418b(0x14f)](_0x5e3bc6=>_0x5e3bc6[_0x1c418b(0x159)]<_0x4ca5d3);return _0x5cc888>-0x1?_0x5cc888:this[_0x1c418b(0x149)][_0x1c418b(0x137)];}}