@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
23 lines • 8.84 kB
JavaScript
/*
* 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 _0xd9a966=_0x30db;function _0x1c8b(){const _0x2e9fa8=['82014RNQbJS','stopListening','delete','24DNUCki','_addActiveAnnotation','pluginName','requires','attach','activate','uisData','isActive','annotationsuis-register-already-registered','624597RpSHgp','activeAnnotations','push','792621ciOXtI','3731370KcWCGH','init','filter','find','1134904FXlNRK','deactivateAll','_activateAnnotation','isOfficialPlugin','72940IFXGpB','change:activeAnnotation','_setSelectedAnnotations','annotationsuis-annotation-mismatch','size','annotationsuis-register-invalid-interface','remove','type','setActiveAnnotation','plugins','annotationsuis-missing-ui','hasActive','_visibleAnnotations','collection','7XyQvba','context','activeUIs','from','has','register','length','isPremiumPlugin','switchTo','AnnotationsUIs','deactivate','_deactivateAllAnnotations','detach','_uis','add','refilterAnnotations','listenTo','destroy','get','1SMBmuF','defaultFilter','31562iIYZQz','set','_assertAnnotationDoesNotBelongToMultipleUIs','function','_removeActiveAnnotation'];_0x1c8b=function(){return _0x2e9fa8;};return _0x1c8b();}(function(_0x51b17a,_0x3c0bfe){const _0x300d35=_0x30db,_0x63728b=_0x51b17a();while(!![]){try{const _0x3dec1a=parseInt(_0x300d35(0xcf))/0x1*(parseInt(_0x300d35(0xd1))/0x2)+parseInt(_0x300d35(0xe2))/0x3+parseInt(_0x300d35(0xd9))/0x4*(parseInt(_0x300d35(0xee))/0x5)+-parseInt(_0x300d35(0xd6))/0x6*(parseInt(_0x300d35(0xfc))/0x7)+parseInt(_0x300d35(0xea))/0x8+parseInt(_0x300d35(0xe5))/0x9+-parseInt(_0x300d35(0xe6))/0xa;if(_0x3dec1a===_0x3c0bfe)break;else _0x63728b['push'](_0x63728b['shift']());}catch(_0x24ccfe){_0x63728b['push'](_0x63728b['shift']());}}}(_0x1c8b,0x25c0a));import{ContextPlugin as _0x5cbf01}from'ckeditor5/src/core.js';import{CKEditorError as _0x18037d}from'ckeditor5/src/utils.js';function _0x30db(_0x32f69f,_0x3be50e){const _0x1c8bed=_0x1c8b();return _0x30db=function(_0x30db12,_0xd93e61){_0x30db12=_0x30db12-0xc0;let _0x181b31=_0x1c8bed[_0x30db12];return _0x181b31;},_0x30db(_0x32f69f,_0x3be50e);}import{AnnotationCollection as _0x3ddbfa,bindAnnotationCollections as _0x29aea8}from'./annotationcollection.js';import{Annotations as _0x4832a6}from'./annotations.js';export class AnnotationsUIs extends _0x5cbf01{[_0xd9a966(0xfe)];[_0xd9a966(0xdf)];[_0xd9a966(0xc9)];static get[_0xd9a966(0xdc)](){return[_0x4832a6];}static get[_0xd9a966(0xdb)](){const _0x196686=_0xd9a966;return _0x196686(0xc5);}static get[_0xd9a966(0xed)](){return!0x0;}static get[_0xd9a966(0xc3)](){return!0x0;}constructor(_0x20f130){const _0x5f1006=_0xd9a966;super(_0x20f130),this[_0x5f1006(0xfe)]=new Set(),this[_0x5f1006(0xc9)]=new Map(),this[_0x5f1006(0xdf)]=new Map();}[_0xd9a966(0xe7)](){const _0x29f857=_0xd9a966,_0x148bd0=this[_0x29f857(0xfd)][_0x29f857(0xf7)][_0x29f857(0xce)](_0x4832a6);this[_0x29f857(0xcc)](_0x148bd0,_0x29f857(0xec),(_0x229b8b,_0x18b216)=>{const _0x295c93=_0x29f857;for(const _0x389710 of this[_0x295c93(0xfe)]){const _0x5c31f9=this[_0x295c93(0xc9)][_0x295c93(0xce)](_0x389710);(0x0,this[_0x295c93(0xdf)][_0x295c93(0xce)](_0x389710)[_0x295c93(0xe8)])(_0x18b216)&&_0x5c31f9[_0x295c93(0xf6)](_0x18b216);}}),this[_0x29f857(0xcc)](_0x148bd0,_0x29f857(0xc7),()=>{const _0x29ef7b=_0x29f857;for(const _0x4fe8e1 of this[_0x29ef7b(0xfe)]){this[_0x29ef7b(0xc9)][_0x29ef7b(0xce)](_0x4fe8e1)[_0x29ef7b(0xf6)](null);}}),this[_0x29f857(0xcc)](_0x148bd0[_0x29f857(0xfa)],_0x29f857(0xca),(_0x4bf0a9,_0x5cc50d)=>{const _0x225b28=_0x29f857;this[_0x225b28(0xd3)](_0x5cc50d);});}[_0xd9a966(0xf9)](){const _0x24f68a=_0xd9a966;return this[_0x24f68a(0xfe)][_0x24f68a(0xf2)]>0x0;}[_0xd9a966(0xe0)](_0x20bf5e){const _0x39a97a=_0xd9a966;return this[_0x39a97a(0xfe)][_0x39a97a(0xc0)](_0x20bf5e);}[_0xd9a966(0xde)](_0x3dab95,_0x5273a6=this[_0xd9a966(0xd0)]){const _0x40dfef=_0xd9a966,_0x3a339e=this[_0x40dfef(0xfd)][_0x40dfef(0xf7)][_0x40dfef(0xce)](_0x4832a6);if(!this[_0x40dfef(0xc9)][_0x40dfef(0xc0)](_0x3dab95))throw new _0x18037d(_0x40dfef(0xf8),this,{'uiName':_0x3dab95});this[_0x40dfef(0xe0)](_0x3dab95)&&this[_0x40dfef(0xc6)](_0x3dab95),this[_0x40dfef(0xfe)][_0x40dfef(0xca)](_0x3dab95);const _0x5973f9=new _0x3ddbfa(),_0x39943f=_0x3a339e[_0x40dfef(0xfa)];_0x29aea8({'source':_0x39943f,'target':_0x5973f9,'filter':_0x5273a6}),this[_0x40dfef(0xdf)][_0x40dfef(0xd2)](_0x3dab95,{'collection':_0x5973f9,'filter':_0x5273a6});const _0x11307f=this[_0x40dfef(0xc9)][_0x40dfef(0xce)](_0x3dab95);_0x11307f[_0x40dfef(0xdd)](_0x5973f9),this[_0x40dfef(0xcc)](_0x11307f,_0x40dfef(0xef),(_0x51177,_0x18a7e9,_0x14f5dd,_0x3ec149)=>{const _0x3fb711=_0x40dfef;_0x3ec149&&_0x3a339e[_0x3fb711(0xd5)](_0x3ec149),_0x14f5dd&&_0x3a339e[_0x3fb711(0xda)](_0x14f5dd);});}[_0xd9a966(0xc6)](_0x1a75e4){const _0x4f5c1d=_0xd9a966;if(this[_0x4f5c1d(0xfe)][_0x4f5c1d(0xd8)](_0x1a75e4),!this[_0x4f5c1d(0xc9)][_0x4f5c1d(0xc0)](_0x1a75e4))throw new _0x18037d(_0x4f5c1d(0xf8),this,{'uiName':_0x1a75e4});const _0xdc854a=this[_0x4f5c1d(0xc9)][_0x4f5c1d(0xce)](_0x1a75e4);_0xdc854a[_0x4f5c1d(0xc8)](),this[_0x4f5c1d(0xd7)](_0xdc854a),this[_0x4f5c1d(0xdf)][_0x4f5c1d(0xce)](_0x1a75e4)[_0x4f5c1d(0xfb)][_0x4f5c1d(0xcd)](),this[_0x4f5c1d(0xdf)][_0x4f5c1d(0xd8)](_0x1a75e4);}[_0xd9a966(0xc4)](_0x5dfb36){const _0x1d33ce=_0xd9a966;if(!this[_0x1d33ce(0xc9)][_0x1d33ce(0xc0)](_0x5dfb36))throw new _0x18037d(_0x1d33ce(0xf8),this,{'uiName':_0x5dfb36});const _0x2d4667=this[_0x1d33ce(0xfd)][_0x1d33ce(0xf7)][_0x1d33ce(0xce)](_0x4832a6),_0x252113=Array[_0x1d33ce(0xff)](_0x2d4667[_0x1d33ce(0xe3)])[0x0]||null;this[_0x1d33ce(0xeb)](),this[_0x1d33ce(0xde)](_0x5dfb36);const _0x4f65f8=this[_0x1d33ce(0xc9)][_0x1d33ce(0xce)](_0x5dfb36);_0x4f65f8[_0x1d33ce(0xf6)](_0x252113),_0x4f65f8[_0x1d33ce(0xf0)]&&_0x252113&&_0x4f65f8[_0x1d33ce(0xf0)]([_0x252113]);}[_0xd9a966(0xeb)](){const _0x555ccf=_0xd9a966;for(const _0x13974a of this[_0x555ccf(0xfe)])this[_0x555ccf(0xc6)](_0x13974a);}[_0xd9a966(0xc1)](_0x53cfd6,_0x475fc1){const _0x51446e=_0xd9a966;if(this[_0x51446e(0xc9)][_0x51446e(0xc0)](_0x53cfd6))throw new _0x18037d(_0x51446e(0xe1));if(_0x51446e(0xd4)!=typeof _0x475fc1[_0x51446e(0xdd)]||_0x51446e(0xd4)!=typeof _0x475fc1[_0x51446e(0xc8)]||_0x51446e(0xd4)!=typeof _0x475fc1[_0x51446e(0xf6)])throw new _0x18037d(_0x51446e(0xf3),null);this[_0x51446e(0xc9)][_0x51446e(0xd2)](_0x53cfd6,_0x475fc1);}[_0xd9a966(0xcb)](){const _0x4a93d2=_0xd9a966,_0x5c7390=this[_0x4a93d2(0xfd)][_0x4a93d2(0xf7)][_0x4a93d2(0xce)](_0x4832a6)[_0x4a93d2(0xfb)],_0x33027a=new Map(),_0x301530=Array[_0x4a93d2(0xff)](this[_0x4a93d2(0xfe)]);for(const _0x35679d of this[_0x4a93d2(0xfe)]){const _0x953a3d=this[_0x4a93d2(0xdf)][_0x4a93d2(0xce)](_0x35679d)[_0x4a93d2(0xfb)];for(const _0x520156 of _0x953a3d)_0x33027a[_0x4a93d2(0xd2)](_0x520156,_0x35679d);}for(const _0x5981d0 of _0x5c7390){const _0x2104f2=_0x33027a[_0x4a93d2(0xce)](_0x5981d0);this[_0x4a93d2(0xd3)](_0x5981d0);const _0x38005d=_0x301530[_0x4a93d2(0xe9)](_0x5f018b=>this[_0x4a93d2(0xdf)][_0x4a93d2(0xce)](_0x5f018b)[_0x4a93d2(0xe8)](_0x5981d0));_0x2104f2!==_0x38005d&&(_0x2104f2&&this[_0x4a93d2(0xdf)][_0x4a93d2(0xce)](_0x2104f2)[_0x4a93d2(0xfb)][_0x4a93d2(0xf4)](_0x5981d0),_0x38005d&&this[_0x4a93d2(0xdf)][_0x4a93d2(0xce)](_0x38005d)[_0x4a93d2(0xfb)][_0x4a93d2(0xca)](_0x5981d0));}}[_0xd9a966(0xcd)](){const _0x39363b=_0xd9a966;this[_0x39363b(0xeb)](),super[_0x39363b(0xcd)]();}[_0xd9a966(0xd0)](){return!0x0;}[_0xd9a966(0xd3)](_0x3c52df){const _0xfe1956=_0xd9a966,_0x32d4a7=[];for(const _0x454e6e of this[_0xfe1956(0xfe)]){(0x0,this[_0xfe1956(0xdf)][_0xfe1956(0xce)](_0x454e6e)[_0xfe1956(0xe8)])(_0x3c52df)&&_0x32d4a7[_0xfe1956(0xe4)](_0x454e6e);}if(_0x32d4a7[_0xfe1956(0xc2)]>0x1)throw new _0x18037d(_0xfe1956(0xf1),null,{'matchedUIs':_0x32d4a7,'annotationType':_0x3c52df[_0xfe1956(0xf5)]});}}