UNPKG

@ckeditor/ckeditor5-comments

Version:

Collaborative comments feature for CKEditor 5.

23 lines 4.93 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 _0x2143ed=_0x101a;(function(_0x2fe9fe,_0x36a7f0){const _0x59501a=_0x101a,_0x17dc48=_0x2fe9fe();while(!![]){try{const _0x2a470b=-parseInt(_0x59501a(0x1ce))/0x1+-parseInt(_0x59501a(0x1cb))/0x2*(parseInt(_0x59501a(0x1bd))/0x3)+parseInt(_0x59501a(0x1cc))/0x4*(-parseInt(_0x59501a(0x1dd))/0x5)+parseInt(_0x59501a(0x1be))/0x6*(-parseInt(_0x59501a(0x1d0))/0x7)+-parseInt(_0x59501a(0x1cd))/0x8*(-parseInt(_0x59501a(0x1d4))/0x9)+-parseInt(_0x59501a(0x1bb))/0xa+parseInt(_0x59501a(0x1c8))/0xb;if(_0x2a470b===_0x36a7f0)break;else _0x17dc48['push'](_0x17dc48['shift']());}catch(_0x274cea){_0x17dc48['push'](_0x17dc48['shift']());}}}(_0x4d63,0xcf956));import{ContextPlugin as _0x1056cb}from'ckeditor5/src/core.js';import{Collection as _0x125ac0}from'ckeditor5/src/utils.js';import _0x212673 from'./commentsrepository.js';import _0x3310b6 from'../annotations/annotations.js';function _0x4d63(){const _0x2fb303=['collection','change:archivedAt','remove','add','12834030MziGZu','init','3MchCBp','2415990eEZjqg','focus','_calculatePosition','highest','pluginName','findIndex','archivedThreads','archivedAt','has','isPremiumPlugin','37438258EiuXtW','removeCommentThread','addCommentThread','794614TgmoDQ','560508TePSsg','1087264MmMUPc','607429vPBdhl','plugins','21rysXsH','isOfficialPlugin','CommentsArchive','requires','81lktsoD','listenTo','length','stopListening','isVisible','activate','context','getCommentThread','get','10DQfenS','isActive'];_0x4d63=function(){return _0x2fb303;};return _0x4d63();}function _0x101a(_0x451b0c,_0x4464f0){const _0x4d639f=_0x4d63();return _0x101a=function(_0x101a79,_0x414c40){_0x101a79=_0x101a79-0x1b8;let _0x559dd7=_0x4d639f[_0x101a79];return _0x559dd7;},_0x101a(_0x451b0c,_0x4464f0);}export default class f extends _0x1056cb{static get[_0x2143ed(0x1c2)](){const _0x3d7ec6=_0x2143ed;return _0x3d7ec6(0x1d2);}static get[_0x2143ed(0x1d1)](){return!0x0;}static get[_0x2143ed(0x1c7)](){return!0x0;}static get[_0x2143ed(0x1d3)](){return[_0x212673,_0x3310b6];}constructor(_0x536429){const _0x3a52a6=_0x2143ed;super(_0x536429),this[_0x3a52a6(0x1c4)]=new _0x125ac0();}[_0x2143ed(0x1bc)](){const _0x3a080d=_0x2143ed,_0x4e288f=this[_0x3a080d(0x1da)],_0x573b41=_0x4e288f[_0x3a080d(0x1cf)][_0x3a080d(0x1dc)](_0x212673),_0x5cb60e=_0x4e288f[_0x3a080d(0x1cf)][_0x3a080d(0x1dc)](_0x3310b6);this[_0x3a080d(0x1d5)](_0x573b41,_0x3a080d(0x1ca),(_0x1232e5,{threadId:_0x340b9d})=>{const _0x339ff7=_0x3a080d,_0x512714=_0x573b41[_0x339ff7(0x1db)](_0x340b9d);_0x512714[_0x339ff7(0x1c5)]&&this[_0x339ff7(0x1c4)][_0x339ff7(0x1ba)](_0x512714,this[_0x339ff7(0x1c0)](_0x512714[_0x339ff7(0x1c5)])),this[_0x339ff7(0x1d5)](_0x512714,_0x339ff7(0x1b8),(_0x22b072,_0x5d03f7,_0x265090)=>{const _0xbbee=_0x339ff7;_0x265090?this[_0xbbee(0x1c4)][_0xbbee(0x1c6)](_0x512714)||this[_0xbbee(0x1c4)][_0xbbee(0x1ba)](_0x512714,this[_0xbbee(0x1c0)](_0x512714[_0xbbee(0x1c5)])):this[_0xbbee(0x1c4)][_0xbbee(0x1c6)](_0x512714)&&this[_0xbbee(0x1c4)][_0xbbee(0x1b9)](_0x512714);});}),this[_0x3a080d(0x1d5)](_0x573b41,_0x3a080d(0x1c9),(_0x3ab69b,{threadId:_0x1af64c})=>{const _0x48cf7c=_0x3a080d,_0x12f459=_0x573b41[_0x48cf7c(0x1db)](_0x1af64c);this[_0x48cf7c(0x1d7)](_0x12f459),this[_0x48cf7c(0x1c4)][_0x48cf7c(0x1c6)](_0x12f459)&&this[_0x48cf7c(0x1c4)][_0x48cf7c(0x1b9)](_0x12f459);},{'priority':_0x3a080d(0x1c1)}),this[_0x3a080d(0x1d5)](_0x5cb60e[_0x3a080d(0x1df)],_0x3a080d(0x1bf),(_0x4bf755,_0x103deb)=>{const _0x4534e4=_0x3a080d;_0x103deb[_0x4534e4(0x1d8)]||(_0x103deb[_0x4534e4(0x1de)]=!0x0,_0x5cb60e[_0x4534e4(0x1d9)](_0x103deb));});}[_0x2143ed(0x1c0)](_0x3bafc4){const _0x1ba5f9=_0x2143ed,_0x435228=[...this[_0x1ba5f9(0x1c4)]][_0x1ba5f9(0x1c3)](_0x3e12aa=>_0x3e12aa[_0x1ba5f9(0x1c5)]<_0x3bafc4);return _0x435228>-0x1?_0x435228:this[_0x1ba5f9(0x1c4)][_0x1ba5f9(0x1d6)];}}