UNPKG

@ckeditor/ckeditor5-comments

Version:

Collaborative comments feature for CKEditor 5.

23 lines 4.88 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. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ function _0x2dda(){const _0x2fa5ae=['693416rvtvQY','archivedThreads','4195296ipYmTG','plugins','archivedAt','isPremiumPlugin','findIndex','collection','10IbRJcy','2190216UxVdym','stopListening','_calculatePosition','listenTo','45ULdeTs','add','isActive','pluginName','isOfficialPlugin','CommentsArchive','requires','highest','has','754105RklaHr','addCommentThread','1569278YscDcj','3ZXidvj','get','focus','18255259PQQyBw','init','remove','getCommentThread','10ZjnnXE','isVisible','context','2856768xWEtAA','removeCommentThread','activate','length','change:archivedAt'];_0x2dda=function(){return _0x2fa5ae;};return _0x2dda();}const _0x1639b9=_0x208c;(function(_0x55d201,_0x59d0c5){const _0x35b002=_0x208c,_0x46d93f=_0x55d201();while(!![]){try{const _0xca5331=-parseInt(_0x35b002(0xee))/0x1+parseInt(_0x35b002(0xf0))/0x2+parseInt(_0x35b002(0xf1))/0x3*(-parseInt(_0x35b002(0xd3))/0x4)+parseInt(_0x35b002(0xe0))/0x5*(-parseInt(_0x35b002(0xe1))/0x6)+parseInt(_0x35b002(0xda))/0x7+parseInt(_0x35b002(0xd8))/0x8*(-parseInt(_0x35b002(0xe5))/0x9)+-parseInt(_0x35b002(0xf8))/0xa*(-parseInt(_0x35b002(0xf4))/0xb);if(_0xca5331===_0x59d0c5)break;else _0x46d93f['push'](_0x46d93f['shift']());}catch(_0x23f566){_0x46d93f['push'](_0x46d93f['shift']());}}}(_0x2dda,0x64886));function _0x208c(_0xd647ae,_0x624ff3){const _0x2dda23=_0x2dda();return _0x208c=function(_0x208c65,_0x1ef436){_0x208c65=_0x208c65-0xd2;let _0x53d519=_0x2dda23[_0x208c65];return _0x53d519;},_0x208c(_0xd647ae,_0x624ff3);}import{ContextPlugin as _0x10be90}from'ckeditor5/src/core.js';import{Collection as _0x1906c2}from'ckeditor5/src/utils.js';import _0x2f4b7c from'./commentsrepository.js';import _0x3a88d6 from'../annotations/annotations.js';export default class f extends _0x10be90{static get[_0x1639b9(0xe8)](){const _0x441a59=_0x1639b9;return _0x441a59(0xea);}static get[_0x1639b9(0xe9)](){return!0x0;}static get[_0x1639b9(0xdd)](){return!0x0;}static get[_0x1639b9(0xeb)](){return[_0x2f4b7c,_0x3a88d6];}constructor(_0x1fd0f6){const _0x5931d1=_0x1639b9;super(_0x1fd0f6),this[_0x5931d1(0xd9)]=new _0x1906c2();}[_0x1639b9(0xf5)](){const _0x586f69=_0x1639b9,_0x60b8f=this[_0x586f69(0xd2)],_0x2fe76e=_0x60b8f[_0x586f69(0xdb)][_0x586f69(0xf2)](_0x2f4b7c),_0x126814=_0x60b8f[_0x586f69(0xdb)][_0x586f69(0xf2)](_0x3a88d6);this[_0x586f69(0xe4)](_0x2fe76e,_0x586f69(0xef),(_0x2e58a4,{threadId:_0x243662})=>{const _0x3b8077=_0x586f69,_0x2ae337=_0x2fe76e[_0x3b8077(0xf7)](_0x243662);_0x2ae337[_0x3b8077(0xdc)]&&this[_0x3b8077(0xd9)][_0x3b8077(0xe6)](_0x2ae337,this[_0x3b8077(0xe3)](_0x2ae337[_0x3b8077(0xdc)])),this[_0x3b8077(0xe4)](_0x2ae337,_0x3b8077(0xd7),(_0x32eedf,_0x350b5c,_0x471f78)=>{const _0x1df7a7=_0x3b8077;_0x471f78?this[_0x1df7a7(0xd9)][_0x1df7a7(0xed)](_0x2ae337)||this[_0x1df7a7(0xd9)][_0x1df7a7(0xe6)](_0x2ae337,this[_0x1df7a7(0xe3)](_0x2ae337[_0x1df7a7(0xdc)])):this[_0x1df7a7(0xd9)][_0x1df7a7(0xed)](_0x2ae337)&&this[_0x1df7a7(0xd9)][_0x1df7a7(0xf6)](_0x2ae337);});}),this[_0x586f69(0xe4)](_0x2fe76e,_0x586f69(0xd4),(_0x3fb4c0,{threadId:_0x35f2e7})=>{const _0x46a525=_0x586f69,_0x40f727=_0x2fe76e[_0x46a525(0xf7)](_0x35f2e7);this[_0x46a525(0xe2)](_0x40f727),this[_0x46a525(0xd9)][_0x46a525(0xed)](_0x40f727)&&this[_0x46a525(0xd9)][_0x46a525(0xf6)](_0x40f727);},{'priority':_0x586f69(0xec)}),this[_0x586f69(0xe4)](_0x126814[_0x586f69(0xdf)],_0x586f69(0xf3),(_0x5a8007,_0x3a7571)=>{const _0x36017f=_0x586f69;_0x3a7571[_0x36017f(0xf9)]||(_0x3a7571[_0x36017f(0xe7)]=!0x0,_0x126814[_0x36017f(0xd5)](_0x3a7571));});}[_0x1639b9(0xe3)](_0x196097){const _0x5c7677=_0x1639b9,_0x25453c=[...this[_0x5c7677(0xd9)]][_0x5c7677(0xde)](_0x2c211f=>_0x2c211f[_0x5c7677(0xdc)]<_0x196097);return _0x25453c>-0x1?_0x25453c:this[_0x5c7677(0xd9)][_0x5c7677(0xd6)];}}