@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
23 lines • 8.9 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 _0x1b13fd=_0x2469;(function(_0x40e593,_0x297d4d){const _0x5edfb6=_0x2469,_0x2de862=_0x40e593();while(!![]){try{const _0x2aa1d4=-parseInt(_0x5edfb6(0x168))/0x1+-parseInt(_0x5edfb6(0x16c))/0x2*(parseInt(_0x5edfb6(0x15e))/0x3)+-parseInt(_0x5edfb6(0x166))/0x4*(parseInt(_0x5edfb6(0x175))/0x5)+-parseInt(_0x5edfb6(0x14a))/0x6*(-parseInt(_0x5edfb6(0x179))/0x7)+parseInt(_0x5edfb6(0x14e))/0x8*(-parseInt(_0x5edfb6(0x14d))/0x9)+parseInt(_0x5edfb6(0x16e))/0xa+parseInt(_0x5edfb6(0x149))/0xb;if(_0x2aa1d4===_0x297d4d)break;else _0x2de862['push'](_0x2de862['shift']());}catch(_0xee9247){_0x2de862['push'](_0x2de862['shift']());}}}(_0x42c7,0xeb72b));import{ContextPlugin as _0x1f0fcf}from'ckeditor5/src/core.js';function _0x42c7(){const _0x383ca1=['set','get','filter','activeUIs','pluginName','isOfficialPlugin','init','detach','_setSelectedAnnotations','6DGkRBF','_removeActiveAnnotation','annotationsuis-missing-ui','type','from','remove','has','_visibleAnnotations','432848AvmVoD','length','1550244CgHSOB','destroy','AnnotationsUIs','size','1722452JsRpwt','deactivate','17712100kOMxld','attach','activeAnnotations','function','switchTo','add','_addActiveAnnotation','30rYPclO','_deactivateAllAnnotations','annotationsuis-annotation-mismatch','_uisData','7215957iPtXDS','collection','activate','annotationsuis-register-already-registered','context','plugins','deactivateAll','hasActive','stopListening','setActiveAnnotation','requires','_activateAnnotation','change:activeAnnotation','_assertAnnotationDoesNotBelongToMultipleUIs','isActive','annotationsuis-register-invalid-interface','27734949GQcQln','6OkPqfI','_uis','refilterAnnotations','171nqxdqh','184024JOAdQt','push','register','find','isPremiumPlugin','listenTo','delete'];_0x42c7=function(){return _0x383ca1;};return _0x42c7();}function _0x2469(_0x2452d4,_0x53cc6c){const _0x42c779=_0x42c7();return _0x2469=function(_0x24693c,_0x52bf54){_0x24693c=_0x24693c-0x141;let _0x38a14d=_0x42c779[_0x24693c];return _0x38a14d;},_0x2469(_0x2452d4,_0x53cc6c);}import{CKEditorError as _0x41d671}from'ckeditor5/src/utils.js';import _0x5d22fb,{bindAnnotationCollections as _0x2a428a}from'./annotationcollection.js';import _0x4ced5a from'./annotations.js';export default class M extends _0x1f0fcf{static get[_0x1b13fd(0x143)](){return[_0x4ced5a];}static get[_0x1b13fd(0x159)](){const _0xbf2f8c=_0x1b13fd;return _0xbf2f8c(0x16a);}static get[_0x1b13fd(0x15a)](){return!0x0;}static get[_0x1b13fd(0x152)](){return!0x0;}constructor(_0x16782d){const _0x206016=_0x1b13fd;super(_0x16782d),this[_0x206016(0x158)]=new Set(),this[_0x206016(0x14b)]=new Map(),this[_0x206016(0x178)]=new Map();}[_0x1b13fd(0x15b)](){const _0x11c956=_0x1b13fd,_0x4e583c=this[_0x11c956(0x17d)][_0x11c956(0x17e)][_0x11c956(0x156)](_0x4ced5a);this[_0x11c956(0x153)](_0x4e583c,_0x11c956(0x144),(_0x193ece,_0x26ebb5)=>{const _0x44d838=_0x11c956;for(const _0x4d89f8 of this[_0x44d838(0x158)]){const _0x47557e=this[_0x44d838(0x14b)][_0x44d838(0x156)](_0x4d89f8);(0x0,this[_0x44d838(0x178)][_0x44d838(0x156)](_0x4d89f8)[_0x44d838(0x157)])(_0x26ebb5)&&_0x47557e[_0x44d838(0x142)](_0x26ebb5);}}),this[_0x11c956(0x153)](_0x4e583c,_0x11c956(0x176),()=>{const _0x14542e=_0x11c956;for(const _0x4a0e9a of this[_0x14542e(0x158)]){this[_0x14542e(0x14b)][_0x14542e(0x156)](_0x4a0e9a)[_0x14542e(0x142)](null);}}),this[_0x11c956(0x153)](_0x4e583c[_0x11c956(0x165)],_0x11c956(0x173),(_0x4f5d52,_0x539dac)=>{const _0x391b54=_0x11c956;this[_0x391b54(0x146)](_0x539dac);});}[_0x1b13fd(0x180)](){const _0x586d4a=_0x1b13fd;return this[_0x586d4a(0x158)][_0x586d4a(0x16b)]>0x0;}[_0x1b13fd(0x147)](_0x4d8695){const _0x500e8f=_0x1b13fd;return this[_0x500e8f(0x158)][_0x500e8f(0x164)](_0x4d8695);}[_0x1b13fd(0x17b)](_0x1d3e4d,_0x1a6480=()=>!0x0){const _0x1301b8=_0x1b13fd,_0x1dfc3d=this[_0x1301b8(0x17d)][_0x1301b8(0x17e)][_0x1301b8(0x156)](_0x4ced5a);if(!this[_0x1301b8(0x14b)][_0x1301b8(0x164)](_0x1d3e4d))throw new _0x41d671(_0x1301b8(0x160),this,{'uiName':_0x1d3e4d});this[_0x1301b8(0x147)](_0x1d3e4d)&&this[_0x1301b8(0x16d)](_0x1d3e4d),this[_0x1301b8(0x158)][_0x1301b8(0x173)](_0x1d3e4d);const _0x275082=new _0x5d22fb(),_0x509034=_0x1dfc3d[_0x1301b8(0x165)];_0x2a428a({'source':_0x509034,'target':_0x275082,'filter':_0x1a6480}),this[_0x1301b8(0x178)][_0x1301b8(0x155)](_0x1d3e4d,{'collection':_0x275082,'filter':_0x1a6480});const _0x4f54cc=this[_0x1301b8(0x14b)][_0x1301b8(0x156)](_0x1d3e4d);_0x4f54cc[_0x1301b8(0x16f)](_0x275082),this[_0x1301b8(0x153)](_0x4f54cc,_0x1301b8(0x145),(_0x2d89d3,_0x3f1d07,_0x2b28ca,_0x5236db)=>{const _0x506add=_0x1301b8;_0x5236db&&_0x1dfc3d[_0x506add(0x15f)](_0x5236db),_0x2b28ca&&_0x1dfc3d[_0x506add(0x174)](_0x2b28ca);});}[_0x1b13fd(0x16d)](_0x11d93b){const _0x2c7c00=_0x1b13fd;if(this[_0x2c7c00(0x158)][_0x2c7c00(0x154)](_0x11d93b),!this[_0x2c7c00(0x14b)][_0x2c7c00(0x164)](_0x11d93b))throw new _0x41d671(_0x2c7c00(0x160),this,{'uiName':_0x11d93b});const _0x53d989=this[_0x2c7c00(0x14b)][_0x2c7c00(0x156)](_0x11d93b);_0x53d989[_0x2c7c00(0x15c)](),this[_0x2c7c00(0x141)](_0x53d989),this[_0x2c7c00(0x178)][_0x2c7c00(0x156)](_0x11d93b)[_0x2c7c00(0x17a)][_0x2c7c00(0x169)](),this[_0x2c7c00(0x178)][_0x2c7c00(0x154)](_0x11d93b);}[_0x1b13fd(0x172)](_0xdf6e6a){const _0x1711bd=_0x1b13fd;if(!this[_0x1711bd(0x14b)][_0x1711bd(0x164)](_0xdf6e6a))throw new _0x41d671(_0x1711bd(0x160),this,{'uiName':_0xdf6e6a});const _0x24866b=this[_0x1711bd(0x17d)][_0x1711bd(0x17e)][_0x1711bd(0x156)](_0x4ced5a),_0x1cfc59=Array[_0x1711bd(0x162)](_0x24866b[_0x1711bd(0x170)])[0x0]||null;this[_0x1711bd(0x17f)](),this[_0x1711bd(0x17b)](_0xdf6e6a);const _0x1ebc98=this[_0x1711bd(0x14b)][_0x1711bd(0x156)](_0xdf6e6a);_0x1ebc98[_0x1711bd(0x142)](_0x1cfc59),_0x1ebc98[_0x1711bd(0x15d)]&&_0x1cfc59&&_0x1ebc98[_0x1711bd(0x15d)]([_0x1cfc59]);}[_0x1b13fd(0x17f)](){const _0x1010ad=_0x1b13fd;for(const _0x115b94 of this[_0x1010ad(0x158)])this[_0x1010ad(0x16d)](_0x115b94);}[_0x1b13fd(0x150)](_0x3e8e52,_0x1b8a23){const _0x4dd74d=_0x1b13fd;if(this[_0x4dd74d(0x14b)][_0x4dd74d(0x164)](_0x3e8e52))throw new _0x41d671(_0x4dd74d(0x17c));if(_0x4dd74d(0x171)!=typeof _0x1b8a23[_0x4dd74d(0x16f)]||_0x4dd74d(0x171)!=typeof _0x1b8a23[_0x4dd74d(0x15c)]||_0x4dd74d(0x171)!=typeof _0x1b8a23[_0x4dd74d(0x142)])throw new _0x41d671(_0x4dd74d(0x148),null);this[_0x4dd74d(0x14b)][_0x4dd74d(0x155)](_0x3e8e52,_0x1b8a23);}[_0x1b13fd(0x14c)](){const _0x1e8e2d=_0x1b13fd,_0xb631c1=this[_0x1e8e2d(0x17d)][_0x1e8e2d(0x17e)][_0x1e8e2d(0x156)](_0x4ced5a)[_0x1e8e2d(0x17a)],_0x282cd9=new Map(),_0x19ebe9=Array[_0x1e8e2d(0x162)](this[_0x1e8e2d(0x158)]);for(const _0xc06597 of this[_0x1e8e2d(0x158)]){const _0x528f2a=this[_0x1e8e2d(0x178)][_0x1e8e2d(0x156)](_0xc06597)[_0x1e8e2d(0x17a)];for(const _0x4498f4 of _0x528f2a)_0x282cd9[_0x1e8e2d(0x155)](_0x4498f4,_0xc06597);}for(const _0x10b91c of _0xb631c1){const _0x2271d3=_0x282cd9[_0x1e8e2d(0x156)](_0x10b91c);this[_0x1e8e2d(0x146)](_0x10b91c);const _0x5f4d02=_0x19ebe9[_0x1e8e2d(0x151)](_0x31cd62=>this[_0x1e8e2d(0x178)][_0x1e8e2d(0x156)](_0x31cd62)[_0x1e8e2d(0x157)](_0x10b91c));_0x2271d3!==_0x5f4d02&&(_0x2271d3&&this[_0x1e8e2d(0x178)][_0x1e8e2d(0x156)](_0x2271d3)[_0x1e8e2d(0x17a)][_0x1e8e2d(0x163)](_0x10b91c),_0x5f4d02&&this[_0x1e8e2d(0x178)][_0x1e8e2d(0x156)](_0x5f4d02)[_0x1e8e2d(0x17a)][_0x1e8e2d(0x173)](_0x10b91c));}}[_0x1b13fd(0x169)](){const _0x2ad38e=_0x1b13fd;this[_0x2ad38e(0x17f)](),super[_0x2ad38e(0x169)]();}[_0x1b13fd(0x146)](_0x2e4f09){const _0x480a73=_0x1b13fd,_0xa1b13b=[];for(const _0x3f88af of this[_0x480a73(0x158)]){(0x0,this[_0x480a73(0x178)][_0x480a73(0x156)](_0x3f88af)[_0x480a73(0x157)])(_0x2e4f09)&&_0xa1b13b[_0x480a73(0x14f)](_0x3f88af);}if(_0xa1b13b[_0x480a73(0x167)]>0x1)throw new _0x41d671(_0x480a73(0x177),null,{'matchedUIs':_0xa1b13b,'annotationType':_0x2e4f09[_0x480a73(0x161)]});}}