UNPKG

@ckeditor/ckeditor5-comments

Version:

Collaborative comments feature for CKEditor 5.

23 lines 5.52 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 _0x384f27=_0x52aa;(function(_0x299123,_0x18fc99){const _0xe12429=_0x52aa,_0x8537f8=_0x299123();while(!![]){try{const _0xfb0581=parseInt(_0xe12429(0x17f))/0x1*(parseInt(_0xe12429(0x176))/0x2)+-parseInt(_0xe12429(0x18c))/0x3+parseInt(_0xe12429(0x1a0))/0x4+-parseInt(_0xe12429(0x18e))/0x5*(parseInt(_0xe12429(0x18f))/0x6)+-parseInt(_0xe12429(0x182))/0x7+-parseInt(_0xe12429(0x178))/0x8*(-parseInt(_0xe12429(0x19a))/0x9)+-parseInt(_0xe12429(0x189))/0xa*(-parseInt(_0xe12429(0x188))/0xb);if(_0xfb0581===_0x18fc99)break;else _0x8537f8['push'](_0x8537f8['shift']());}catch(_0x13bfab){_0x8537f8['push'](_0x8537f8['shift']());}}}(_0x67c6,0x9caa6));import{Plugin as _0x6de19f}from'ckeditor5/src/core.js';function _0x67c6(){const _0x37af12=['forceDisabled','10765avuMvJ','1524WcJXeu','_disableCommentsOnlyMode','pluginName','stopListening','isEnabled','DragDrop','editor','highest','document','editSource','get','111051JbkmNf','isOfficialPlugin','SourceEditing','view','requires','addCommentThread','3906384iiMIfF','plugins','cut','editing','_enableCommentsOnlyMode','14vpHUkB','clipboardInput','16EyYyDE','commentsOnly','afterInit','delete','affectsData','change:isEnabled','set','3071sfydBs','listenTo','commentsOnlyMode','6974583wIJdal','has','CommentsOnly','config','stop','isPremiumPlugin','539440ywQbfG','250jSwONm','clearForceDisabled','commands','191514LzmLHX'];_0x67c6=function(){return _0x37af12;};return _0x67c6();}import _0x347a88 from'./comments/commentsediting.js';function _0x52aa(_0x3b292a,_0xed7938){const _0x67c6a2=_0x67c6();return _0x52aa=function(_0x52aa1f,_0x2bddc3){_0x52aa1f=_0x52aa1f-0x174;let _0x1bc3ce=_0x67c6a2[_0x52aa1f];return _0x1bc3ce;},_0x52aa(_0x3b292a,_0xed7938);}export default class s extends _0x6de19f{static get[_0x384f27(0x191)](){const _0x262e12=_0x384f27;return _0x262e12(0x184);}static get[_0x384f27(0x19b)](){return!0x0;}static get[_0x384f27(0x187)](){return!0x0;}static get[_0x384f27(0x19e)](){return[_0x347a88];}constructor(_0x553b0a){const _0x39e01c=_0x384f27;super(_0x553b0a),this[_0x39e01c(0x17e)](_0x39e01c(0x193),!0x1),this['on'](_0x39e01c(0x17d),(_0x48bef0,_0x2e5e7a,_0x3b32f9)=>{const _0x1b9a46=_0x39e01c;_0x3b32f9?this[_0x1b9a46(0x175)]():this[_0x1b9a46(0x190)]();});}[_0x384f27(0x17a)](){const _0x4f3ba5=_0x384f27;!this[_0x4f3ba5(0x193)]&&this[_0x4f3ba5(0x195)][_0x4f3ba5(0x185)][_0x4f3ba5(0x199)](_0x4f3ba5(0x179))&&(this[_0x4f3ba5(0x193)]=!0x0);}[_0x384f27(0x175)](){const _0x1313c7=_0x384f27;var _0x3f5d82;for(const [_0x26a326,_0x2214f2]of this[_0x1313c7(0x195)][_0x1313c7(0x18b)])_0x2214f2[_0x1313c7(0x17c)]&&_0x1313c7(0x19f)!==_0x26a326&&_0x2214f2[_0x1313c7(0x18d)](_0x1313c7(0x181));(this[_0x1313c7(0x195)][_0x1313c7(0x1a1)][_0x1313c7(0x183)](_0x1313c7(0x194))&&this[_0x1313c7(0x195)][_0x1313c7(0x1a1)][_0x1313c7(0x199)](_0x1313c7(0x194))[_0x1313c7(0x18d)](_0x1313c7(0x181)),this[_0x1313c7(0x195)][_0x1313c7(0x1a1)][_0x1313c7(0x183)](_0x1313c7(0x19c)))&&this[_0x1313c7(0x195)][_0x1313c7(0x1a1)][_0x1313c7(0x199)](_0x1313c7(0x19c))[_0x1313c7(0x18d)](_0x1313c7(0x181));null===(_0x3f5d82=this[_0x1313c7(0x195)][_0x1313c7(0x18b)][_0x1313c7(0x199)](_0x1313c7(0x198)))||void 0x0===_0x3f5d82||_0x3f5d82[_0x1313c7(0x18d)](_0x1313c7(0x181));const _0xd26a1b=this[_0x1313c7(0x195)][_0x1313c7(0x174)][_0x1313c7(0x19d)][_0x1313c7(0x197)];this[_0x1313c7(0x180)](_0xd26a1b,_0x1313c7(0x1a2),_0xfb705c=>_0xfb705c[_0x1313c7(0x186)](),{'priority':_0x1313c7(0x196)}),this[_0x1313c7(0x180)](_0xd26a1b,_0x1313c7(0x177),_0x4de99c=>_0x4de99c[_0x1313c7(0x186)](),{'priority':_0x1313c7(0x196)}),this[_0x1313c7(0x180)](_0xd26a1b,_0x1313c7(0x17b),_0x5c55e8=>_0x5c55e8[_0x1313c7(0x186)](),{'priority':_0x1313c7(0x196)});}[_0x384f27(0x190)](){const _0x2dcfc1=_0x384f27;var _0x80dfc5;for(const [_0x5e8242,_0x13cfed]of this[_0x2dcfc1(0x195)][_0x2dcfc1(0x18b)])_0x13cfed[_0x2dcfc1(0x17c)]&&_0x2dcfc1(0x19f)!==_0x5e8242&&_0x13cfed[_0x2dcfc1(0x18a)](_0x2dcfc1(0x181));this[_0x2dcfc1(0x195)][_0x2dcfc1(0x1a1)][_0x2dcfc1(0x183)](_0x2dcfc1(0x19c))&&this[_0x2dcfc1(0x195)][_0x2dcfc1(0x1a1)][_0x2dcfc1(0x199)](_0x2dcfc1(0x19c))[_0x2dcfc1(0x18a)](_0x2dcfc1(0x181)),null===(_0x80dfc5=this[_0x2dcfc1(0x195)][_0x2dcfc1(0x18b)][_0x2dcfc1(0x199)](_0x2dcfc1(0x198)))||void 0x0===_0x80dfc5||_0x80dfc5[_0x2dcfc1(0x18a)](_0x2dcfc1(0x181)),this[_0x2dcfc1(0x192)](this[_0x2dcfc1(0x195)][_0x2dcfc1(0x174)][_0x2dcfc1(0x19d)][_0x2dcfc1(0x197)]);}}