UNPKG

@ckeditor/ckeditor5-comments

Version:

Collaborative comments feature for CKEditor 5.

24 lines 4.55 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 _0x4731(){var _0x26bf60=['remove','6245744iOFnal','removeComment','isResolved','4576rsxQfi','_isAttached','reopen','submit','44769pjfEnn','9512952KtzbvM','4465670WptWAV','update','280yLUJXh','removeCommentThread','_localUser','listenTo','14110isGqZO','view','submitCommentThread','getComment','stopListening','destroy','21bNSrTt','9EasaAO','resolveCommentThread','resolve','model','920922JhmzKc','updateComment','reopenCommentThread','37XDFzcr','16562WLpelw','addComment'];_0x4731=function(){return _0x26bf60;};return _0x4731();}var _0x1ca941=_0x3a04;(function(_0x4bb1d9,_0xbbd6cc){var _0xc8d486=_0x3a04,_0x2a4ae2=_0x4bb1d9();while(!![]){try{var _0x55b70d=-parseInt(_0xc8d486(0xc0))/0x1*(parseInt(_0xc8d486(0xc1))/0x2)+-parseInt(_0xc8d486(0xcb))/0x3*(-parseInt(_0xc8d486(0xcf))/0x4)+parseInt(_0xc8d486(0xcd))/0x5+-parseInt(_0xc8d486(0xbd))/0x6*(parseInt(_0xc8d486(0xb8))/0x7)+parseInt(_0xc8d486(0xc4))/0x8*(-parseInt(_0xc8d486(0xb9))/0x9)+parseInt(_0xc8d486(0xb2))/0xa*(-parseInt(_0xc8d486(0xc7))/0xb)+parseInt(_0xc8d486(0xcc))/0xc;if(_0x55b70d===_0xbbd6cc)break;else _0x2a4ae2['push'](_0x2a4ae2['shift']());}catch(_0x200800){_0x2a4ae2['push'](_0x2a4ae2['shift']());}}}(_0x4731,0x917e2));function _0x3a04(_0x2cc4d9,_0x2336ed){var _0x473142=_0x4731();return _0x3a04=function(_0x3a0455,_0x4fcb52){_0x3a0455=_0x3a0455-0xb2;var _0x219a53=_0x473142[_0x3a0455];return _0x219a53;},_0x3a04(_0x2cc4d9,_0x2336ed);}import{ObservableMixin as _0x52ce6e}from'ckeditor5/src/utils.js';export class CommentThreadController extends/* #__PURE__ -- @preserve */ _0x52ce6e(){[_0x1ca941(0xbc)];[_0x1ca941(0xb3)];constructor(_0x28a29b,_0x5ef382){var _0xb223e=_0x1ca941;super(),this[_0xb223e(0xbc)]=_0x28a29b,this[_0xb223e(0xbc)][_0xb223e(0xc8)]=!0x0,this[_0xb223e(0xb3)]=_0x5ef382,this[_0xb223e(0xd2)](_0x5ef382,_0xb223e(0xb4),()=>this[_0xb223e(0xca)]()),this[_0xb223e(0xd2)](_0x5ef382,_0xb223e(0xd0),()=>this[_0xb223e(0xc3)]()),this[_0xb223e(0xd2)](_0x5ef382,_0xb223e(0xba),()=>this[_0xb223e(0xbb)]()),this[_0xb223e(0xd2)](_0x5ef382,_0xb223e(0xbf),()=>this[_0xb223e(0xc9)]()),this[_0xb223e(0xd2)](_0x5ef382,_0xb223e(0xc2),(_0x74a1e1,_0x539f35)=>this[_0xb223e(0xc2)](_0x539f35)),this[_0xb223e(0xd2)](_0x5ef382,_0xb223e(0xbe),(_0x4329a9,_0x4200e5,_0x338bea)=>this[_0xb223e(0xbe)](_0x4200e5,_0x338bea)),this[_0xb223e(0xd2)](_0x5ef382,_0xb223e(0xc5),(_0xc7827f,_0xce4707)=>this[_0xb223e(0xc5)](_0xce4707));}[_0x1ca941(0xca)](){var _0x39522c=_0x1ca941;this[_0x39522c(0xbc)][_0x39522c(0xca)]();}[_0x1ca941(0xc3)](){var _0x547159=_0x1ca941;this[_0x547159(0xbc)][_0x547159(0xc3)]();}[_0x1ca941(0xbb)](){var _0x3f5d66=_0x1ca941;this[_0x3f5d66(0xbc)][_0x3f5d66(0xc6)]||this[_0x3f5d66(0xbc)][_0x3f5d66(0xbb)]();}[_0x1ca941(0xc9)](){var _0x358223=_0x1ca941;this[_0x358223(0xbc)][_0x358223(0xc6)]&&this[_0x358223(0xbc)][_0x358223(0xc9)]();}[_0x1ca941(0xc2)](_0x3188d0){var _0x47e238=_0x1ca941;this[_0x47e238(0xbc)][_0x47e238(0xc2)]({'content':_0x3188d0,'authorId':this[_0x47e238(0xb3)][_0x47e238(0xd1)]['id']});}[_0x1ca941(0xbe)](_0xa42c8a,_0xc605e5){var _0x12744b=_0x1ca941;this[_0x12744b(0xbc)][_0x12744b(0xb5)](_0xa42c8a)[_0x12744b(0xce)]({'content':_0xc605e5});}[_0x1ca941(0xc5)](_0x318f7c){var _0x246e21=_0x1ca941;this[_0x246e21(0xbc)][_0x246e21(0xb5)](_0x318f7c)[_0x246e21(0xc3)]();}[_0x1ca941(0xb7)](){var _0x36ff3f=_0x1ca941;this[_0x36ff3f(0xb6)](),this[_0x36ff3f(0xbc)][_0x36ff3f(0xc8)]=!0x1;}}