UNPKG

@ckeditor/ckeditor5-comments

Version:

Collaborative comments feature for CKEditor 5.

23 lines 8.89 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 _0x26ffa0=_0x2904;(function(_0x5b4133,_0x6e8521){const _0x4d7212=_0x2904,_0x1b2a73=_0x5b4133();while(!![]){try{const _0x458afa=-parseInt(_0x4d7212(0xdc))/0x1*(-parseInt(_0x4d7212(0xa3))/0x2)+parseInt(_0x4d7212(0xae))/0x3+-parseInt(_0x4d7212(0x9f))/0x4*(-parseInt(_0x4d7212(0xbd))/0x5)+parseInt(_0x4d7212(0xc3))/0x6+-parseInt(_0x4d7212(0xce))/0x7*(-parseInt(_0x4d7212(0xbc))/0x8)+parseInt(_0x4d7212(0xba))/0x9*(parseInt(_0x4d7212(0xd9))/0xa)+parseInt(_0x4d7212(0xb5))/0xb*(-parseInt(_0x4d7212(0xb8))/0xc);if(_0x458afa===_0x6e8521)break;else _0x1b2a73['push'](_0x1b2a73['shift']());}catch(_0x14a99a){_0x1b2a73['push'](_0x1b2a73['shift']());}}}(_0x1620,0xec96c));import{ContextPlugin as _0x5029f3}from'ckeditor5/src/core.js';function _0x1620(){const _0x4d5bb9=['1724hwFvrf','isActive','_uis','listenTo','14fevzus','destroy','plugins','activeAnnotations','deactivate','pluginName','add','annotationsuis-register-invalid-interface','refilterAnnotations','uisData','filter','5294322ghNTZD','isPremiumPlugin','hasActive','setActiveAnnotation','annotationsuis-register-already-registered','has','delete','33iJXpgn','function','defaultFilter','23917188NeBISv','activate','181854avEOHh','_assertAnnotationDoesNotBelongToMultipleUIs','86224okElpW','4820kNLkZB','_addActiveAnnotation','isOfficialPlugin','remove','_visibleAnnotations','attach','6641340bzoNaI','_activateAnnotation','find','length','switchTo','deactivateAll','requires','_deactivateAllAnnotations','_removeActiveAnnotation','register','from','413feGBte','detach','size','AnnotationsUIs','push','annotationsuis-missing-ui','activeUIs','stopListening','_setSelectedAnnotations','collection','set','680whXFfW','type','context','235901mJGgTj','get','annotationsuis-annotation-mismatch','init','change:activeAnnotation'];_0x1620=function(){return _0x4d5bb9;};return _0x1620();}import{CKEditorError as _0x5946b8}from'ckeditor5/src/utils.js';function _0x2904(_0x4451a0,_0x23d5a6){const _0x162010=_0x1620();return _0x2904=function(_0x2904c5,_0x100d9e){_0x2904c5=_0x2904c5-0x9b;let _0x11f91f=_0x162010[_0x2904c5];return _0x11f91f;},_0x2904(_0x4451a0,_0x23d5a6);}import _0x5a7d4a,{bindAnnotationCollections as _0x545745}from'./annotationcollection.js';import _0x215b1f from'./annotations.js';export default class M extends _0x5029f3{[_0x26ffa0(0xd4)];[_0x26ffa0(0xac)];[_0x26ffa0(0xa1)];static get[_0x26ffa0(0xc9)](){return[_0x215b1f];}static get[_0x26ffa0(0xa8)](){const _0x3b1cfb=_0x26ffa0;return _0x3b1cfb(0xd1);}static get[_0x26ffa0(0xbf)](){return!0x0;}static get[_0x26ffa0(0xaf)](){return!0x0;}constructor(_0x38929b){const _0x59a62e=_0x26ffa0;super(_0x38929b),this[_0x59a62e(0xd4)]=new Set(),this[_0x59a62e(0xa1)]=new Map(),this[_0x59a62e(0xac)]=new Map();}[_0x26ffa0(0x9d)](){const _0x32de96=_0x26ffa0,_0x3b3707=this[_0x32de96(0xdb)][_0x32de96(0xa5)][_0x32de96(0x9b)](_0x215b1f);this[_0x32de96(0xa2)](_0x3b3707,_0x32de96(0xc4),(_0x4cdc83,_0x254b5c)=>{const _0x5644e4=_0x32de96;for(const _0x61e119 of this[_0x5644e4(0xd4)]){const _0x26be42=this[_0x5644e4(0xa1)][_0x5644e4(0x9b)](_0x61e119);(0x0,this[_0x5644e4(0xac)][_0x5644e4(0x9b)](_0x61e119)[_0x5644e4(0xad)])(_0x254b5c)&&_0x26be42[_0x5644e4(0xb1)](_0x254b5c);}}),this[_0x32de96(0xa2)](_0x3b3707,_0x32de96(0xca),()=>{const _0x4c9899=_0x32de96;for(const _0x53c842 of this[_0x4c9899(0xd4)]){this[_0x4c9899(0xa1)][_0x4c9899(0x9b)](_0x53c842)[_0x4c9899(0xb1)](null);}}),this[_0x32de96(0xa2)](_0x3b3707[_0x32de96(0xc1)],_0x32de96(0xa9),(_0x2165c2,_0x4d6787)=>{const _0x3ce624=_0x32de96;this[_0x3ce624(0xbb)](_0x4d6787);});}[_0x26ffa0(0xb0)](){const _0x3466ad=_0x26ffa0;return this[_0x3466ad(0xd4)][_0x3466ad(0xd0)]>0x0;}[_0x26ffa0(0xa0)](_0x5b7361){const _0x51a25d=_0x26ffa0;return this[_0x51a25d(0xd4)][_0x51a25d(0xb3)](_0x5b7361);}[_0x26ffa0(0xb9)](_0x94d1c,_0x4afdc4=this[_0x26ffa0(0xb7)]){const _0x2ef29f=_0x26ffa0,_0x16851d=this[_0x2ef29f(0xdb)][_0x2ef29f(0xa5)][_0x2ef29f(0x9b)](_0x215b1f);if(!this[_0x2ef29f(0xa1)][_0x2ef29f(0xb3)](_0x94d1c))throw new _0x5946b8(_0x2ef29f(0xd3),this,{'uiName':_0x94d1c});this[_0x2ef29f(0xa0)](_0x94d1c)&&this[_0x2ef29f(0xa7)](_0x94d1c),this[_0x2ef29f(0xd4)][_0x2ef29f(0xa9)](_0x94d1c);const _0x3607f5=new _0x5a7d4a(),_0x4003a4=_0x16851d[_0x2ef29f(0xc1)];_0x545745({'source':_0x4003a4,'target':_0x3607f5,'filter':_0x4afdc4}),this[_0x2ef29f(0xac)][_0x2ef29f(0xd8)](_0x94d1c,{'collection':_0x3607f5,'filter':_0x4afdc4});const _0x3354d6=this[_0x2ef29f(0xa1)][_0x2ef29f(0x9b)](_0x94d1c);_0x3354d6[_0x2ef29f(0xc2)](_0x3607f5),this[_0x2ef29f(0xa2)](_0x3354d6,_0x2ef29f(0x9e),(_0x2f03a0,_0x1b4176,_0x45832b,_0x2b4ceb)=>{const _0xf40020=_0x2ef29f;_0x2b4ceb&&_0x16851d[_0xf40020(0xcb)](_0x2b4ceb),_0x45832b&&_0x16851d[_0xf40020(0xbe)](_0x45832b);});}[_0x26ffa0(0xa7)](_0x2fed97){const _0x52f12d=_0x26ffa0;if(this[_0x52f12d(0xd4)][_0x52f12d(0xb4)](_0x2fed97),!this[_0x52f12d(0xa1)][_0x52f12d(0xb3)](_0x2fed97))throw new _0x5946b8(_0x52f12d(0xd3),this,{'uiName':_0x2fed97});const _0x521512=this[_0x52f12d(0xa1)][_0x52f12d(0x9b)](_0x2fed97);_0x521512[_0x52f12d(0xcf)](),this[_0x52f12d(0xd5)](_0x521512),this[_0x52f12d(0xac)][_0x52f12d(0x9b)](_0x2fed97)[_0x52f12d(0xd7)][_0x52f12d(0xa4)](),this[_0x52f12d(0xac)][_0x52f12d(0xb4)](_0x2fed97);}[_0x26ffa0(0xc7)](_0x5e57e0){const _0x52e4f0=_0x26ffa0;if(!this[_0x52e4f0(0xa1)][_0x52e4f0(0xb3)](_0x5e57e0))throw new _0x5946b8(_0x52e4f0(0xd3),this,{'uiName':_0x5e57e0});const _0x3b150c=this[_0x52e4f0(0xdb)][_0x52e4f0(0xa5)][_0x52e4f0(0x9b)](_0x215b1f),_0x4f16c7=Array[_0x52e4f0(0xcd)](_0x3b150c[_0x52e4f0(0xa6)])[0x0]||null;this[_0x52e4f0(0xc8)](),this[_0x52e4f0(0xb9)](_0x5e57e0);const _0x1efe92=this[_0x52e4f0(0xa1)][_0x52e4f0(0x9b)](_0x5e57e0);_0x1efe92[_0x52e4f0(0xb1)](_0x4f16c7),_0x1efe92[_0x52e4f0(0xd6)]&&_0x4f16c7&&_0x1efe92[_0x52e4f0(0xd6)]([_0x4f16c7]);}[_0x26ffa0(0xc8)](){const _0x27fc15=_0x26ffa0;for(const _0x53ee5f of this[_0x27fc15(0xd4)])this[_0x27fc15(0xa7)](_0x53ee5f);}[_0x26ffa0(0xcc)](_0xae00dd,_0x185b12){const _0x202c88=_0x26ffa0;if(this[_0x202c88(0xa1)][_0x202c88(0xb3)](_0xae00dd))throw new _0x5946b8(_0x202c88(0xb2));if(_0x202c88(0xb6)!=typeof _0x185b12[_0x202c88(0xc2)]||_0x202c88(0xb6)!=typeof _0x185b12[_0x202c88(0xcf)]||_0x202c88(0xb6)!=typeof _0x185b12[_0x202c88(0xb1)])throw new _0x5946b8(_0x202c88(0xaa),null);this[_0x202c88(0xa1)][_0x202c88(0xd8)](_0xae00dd,_0x185b12);}[_0x26ffa0(0xab)](){const _0x1a5e26=_0x26ffa0,_0x39a442=this[_0x1a5e26(0xdb)][_0x1a5e26(0xa5)][_0x1a5e26(0x9b)](_0x215b1f)[_0x1a5e26(0xd7)],_0x377dc9=new Map(),_0x1b29e8=Array[_0x1a5e26(0xcd)](this[_0x1a5e26(0xd4)]);for(const _0x2a0c2b of this[_0x1a5e26(0xd4)]){const _0x117c38=this[_0x1a5e26(0xac)][_0x1a5e26(0x9b)](_0x2a0c2b)[_0x1a5e26(0xd7)];for(const _0x411ac4 of _0x117c38)_0x377dc9[_0x1a5e26(0xd8)](_0x411ac4,_0x2a0c2b);}for(const _0x2ecef5 of _0x39a442){const _0xeca6e3=_0x377dc9[_0x1a5e26(0x9b)](_0x2ecef5);this[_0x1a5e26(0xbb)](_0x2ecef5);const _0x121484=_0x1b29e8[_0x1a5e26(0xc5)](_0x320dca=>this[_0x1a5e26(0xac)][_0x1a5e26(0x9b)](_0x320dca)[_0x1a5e26(0xad)](_0x2ecef5));_0xeca6e3!==_0x121484&&(_0xeca6e3&&this[_0x1a5e26(0xac)][_0x1a5e26(0x9b)](_0xeca6e3)[_0x1a5e26(0xd7)][_0x1a5e26(0xc0)](_0x2ecef5),_0x121484&&this[_0x1a5e26(0xac)][_0x1a5e26(0x9b)](_0x121484)[_0x1a5e26(0xd7)][_0x1a5e26(0xa9)](_0x2ecef5));}}[_0x26ffa0(0xa4)](){const _0x5e8551=_0x26ffa0;this[_0x5e8551(0xc8)](),super[_0x5e8551(0xa4)]();}[_0x26ffa0(0xb7)](){return!0x0;}[_0x26ffa0(0xbb)](_0x3b69a5){const _0x4f25ac=_0x26ffa0,_0x5d7751=[];for(const _0xdafa62 of this[_0x4f25ac(0xd4)]){(0x0,this[_0x4f25ac(0xac)][_0x4f25ac(0x9b)](_0xdafa62)[_0x4f25ac(0xad)])(_0x3b69a5)&&_0x5d7751[_0x4f25ac(0xd2)](_0xdafa62);}if(_0x5d7751[_0x4f25ac(0xc6)]>0x1)throw new _0x5946b8(_0x4f25ac(0x9c),null,{'matchedUIs':_0x5d7751,'annotationType':_0x3b69a5[_0x4f25ac(0xda)]});}}