UNPKG

@ckeditor/ckeditor5-comments

Version:

Collaborative comments feature for CKEditor 5.

23 lines 8.88 kB
/* * Copyright (c) 2003-2026, 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 _0x10a1(){const _0x1e19a2=['2705ocPmqy','push','annotationsuis-annotation-mismatch','add','isPremiumPlugin','setActiveAnnotation','24SZAdhl','destroy','704odaomm','_removeActiveAnnotation','deactivateAll','_uis','annotationsuis-missing-ui','_addActiveAnnotation','60928tQFjue','690903VHyBgi','refilterAnnotations','has','set','hasActive','_assertAnnotationDoesNotBelongToMultipleUIs','plugins','defaultFilter','pluginName','context','isActive','register','503986WHRBUf','delete','requires','_setSelectedAnnotations','detach','isOfficialPlugin','_activateAnnotation','_deactivateAllAnnotations','deactivate','uisData','size','25hfeNPw','AnnotationsUIs','activate','type','find','filter','2622ibwFjg','switchTo','function','init','from','get','change:activeAnnotation','annotationsuis-register-invalid-interface','collection','21840sbgUfP','stopListening','listenTo','202jDdunk','_visibleAnnotations','602967nwscsH','length','remove','annotationsuis-register-already-registered','activeAnnotations','attach','activeUIs'];_0x10a1=function(){return _0x1e19a2;};return _0x10a1();}const _0x3112d0=_0x4ed8;(function(_0x38e24e,_0x489381){const _0x34fccc=_0x4ed8,_0x4bee76=_0x38e24e();while(!![]){try{const _0x45aac7=-parseInt(_0x34fccc(0xa7))/0x1*(-parseInt(_0x34fccc(0xb9))/0x2)+parseInt(_0x34fccc(0x7a))/0x3+parseInt(_0x34fccc(0x8f))/0x4+parseInt(_0x34fccc(0x81))/0x5*(-parseInt(_0x34fccc(0xad))/0x6)+parseInt(_0x34fccc(0x9c))/0x7*(parseInt(_0x34fccc(0x87))/0x8)+parseInt(_0x34fccc(0x90))/0x9+parseInt(_0x34fccc(0xb6))/0xa*(-parseInt(_0x34fccc(0x89))/0xb);if(_0x45aac7===_0x489381)break;else _0x4bee76['push'](_0x4bee76['shift']());}catch(_0x5c1193){_0x4bee76['push'](_0x4bee76['shift']());}}}(_0x10a1,0x21092));import{ContextPlugin as _0x40c029}from'ckeditor5/src/core.js';import{CKEditorError as _0x47c953}from'ckeditor5/src/utils.js';import{AnnotationCollection as _0x561024,bindAnnotationCollections as _0x1841ff}from'./annotationcollection.js';function _0x4ed8(_0x51ff4e,_0x3fd4ae){const _0x10a1e5=_0x10a1();return _0x4ed8=function(_0x4ed8f2,_0x584a39){_0x4ed8f2=_0x4ed8f2-0x79;let _0x156b64=_0x10a1e5[_0x4ed8f2];return _0x156b64;},_0x4ed8(_0x51ff4e,_0x3fd4ae);}import{Annotations as _0x538e7e}from'./annotations.js';export class AnnotationsUIs extends _0x40c029{[_0x3112d0(0x80)];[_0x3112d0(0xa5)];[_0x3112d0(0x8c)];static get[_0x3112d0(0x9e)](){return[_0x538e7e];}static get[_0x3112d0(0x98)](){const _0x56c984=_0x3112d0;return _0x56c984(0xa8);}static get[_0x3112d0(0xa1)](){return!0x0;}static get[_0x3112d0(0x85)](){return!0x0;}constructor(_0x2af343){const _0x3a5b24=_0x3112d0;super(_0x2af343),this[_0x3a5b24(0x80)]=new Set(),this[_0x3a5b24(0x8c)]=new Map(),this[_0x3a5b24(0xa5)]=new Map();}[_0x3112d0(0xb0)](){const _0x5c4803=_0x3112d0,_0xba9476=this[_0x5c4803(0x99)][_0x5c4803(0x96)][_0x5c4803(0xb2)](_0x538e7e);this[_0x5c4803(0xb8)](_0xba9476,_0x5c4803(0xa2),(_0x181456,_0x292c14)=>{const _0x3f038d=_0x5c4803;for(const _0x409431 of this[_0x3f038d(0x80)]){const _0x3a0266=this[_0x3f038d(0x8c)][_0x3f038d(0xb2)](_0x409431);(0x0,this[_0x3f038d(0xa5)][_0x3f038d(0xb2)](_0x409431)[_0x3f038d(0xac)])(_0x292c14)&&_0x3a0266[_0x3f038d(0x86)](_0x292c14);}}),this[_0x5c4803(0xb8)](_0xba9476,_0x5c4803(0xa3),()=>{const _0x1534f5=_0x5c4803;for(const _0x579dc1 of this[_0x1534f5(0x80)]){this[_0x1534f5(0x8c)][_0x1534f5(0xb2)](_0x579dc1)[_0x1534f5(0x86)](null);}}),this[_0x5c4803(0xb8)](_0xba9476[_0x5c4803(0x79)],_0x5c4803(0x84),(_0x5f02cc,_0x3290a9)=>{const _0x3fefaa=_0x5c4803;this[_0x3fefaa(0x95)](_0x3290a9);});}[_0x3112d0(0x94)](){const _0x59a6c0=_0x3112d0;return this[_0x59a6c0(0x80)][_0x59a6c0(0xa6)]>0x0;}[_0x3112d0(0x9a)](_0x45437e){const _0x10bb61=_0x3112d0;return this[_0x10bb61(0x80)][_0x10bb61(0x92)](_0x45437e);}[_0x3112d0(0xa9)](_0x188dea,_0x236f35=this[_0x3112d0(0x97)]){const _0xf4fc89=_0x3112d0,_0x535e28=this[_0xf4fc89(0x99)][_0xf4fc89(0x96)][_0xf4fc89(0xb2)](_0x538e7e);if(!this[_0xf4fc89(0x8c)][_0xf4fc89(0x92)](_0x188dea))throw new _0x47c953(_0xf4fc89(0x8d),this,{'uiName':_0x188dea});this[_0xf4fc89(0x9a)](_0x188dea)&&this[_0xf4fc89(0xa4)](_0x188dea),this[_0xf4fc89(0x80)][_0xf4fc89(0x84)](_0x188dea);const _0x3c06e9=new _0x561024(),_0x3689f9=_0x535e28[_0xf4fc89(0x79)];_0x1841ff({'source':_0x3689f9,'target':_0x3c06e9,'filter':_0x236f35}),this[_0xf4fc89(0xa5)][_0xf4fc89(0x93)](_0x188dea,{'collection':_0x3c06e9,'filter':_0x236f35});const _0x1be12f=this[_0xf4fc89(0x8c)][_0xf4fc89(0xb2)](_0x188dea);_0x1be12f[_0xf4fc89(0x7f)](_0x3c06e9),this[_0xf4fc89(0xb8)](_0x1be12f,_0xf4fc89(0xb3),(_0x387caf,_0x574b58,_0x391f53,_0x46efbd)=>{const _0xe859b3=_0xf4fc89;_0x46efbd&&_0x535e28[_0xe859b3(0x8a)](_0x46efbd),_0x391f53&&_0x535e28[_0xe859b3(0x8e)](_0x391f53);});}[_0x3112d0(0xa4)](_0x5cdf28){const _0x230cd4=_0x3112d0;if(this[_0x230cd4(0x80)][_0x230cd4(0x9d)](_0x5cdf28),!this[_0x230cd4(0x8c)][_0x230cd4(0x92)](_0x5cdf28))throw new _0x47c953(_0x230cd4(0x8d),this,{'uiName':_0x5cdf28});const _0x5a4ee2=this[_0x230cd4(0x8c)][_0x230cd4(0xb2)](_0x5cdf28);_0x5a4ee2[_0x230cd4(0xa0)](),this[_0x230cd4(0xb7)](_0x5a4ee2),this[_0x230cd4(0xa5)][_0x230cd4(0xb2)](_0x5cdf28)[_0x230cd4(0xb5)][_0x230cd4(0x88)](),this[_0x230cd4(0xa5)][_0x230cd4(0x9d)](_0x5cdf28);}[_0x3112d0(0xae)](_0x5e3cbe){const _0x2c8ee9=_0x3112d0;if(!this[_0x2c8ee9(0x8c)][_0x2c8ee9(0x92)](_0x5e3cbe))throw new _0x47c953(_0x2c8ee9(0x8d),this,{'uiName':_0x5e3cbe});const _0x133bce=this[_0x2c8ee9(0x99)][_0x2c8ee9(0x96)][_0x2c8ee9(0xb2)](_0x538e7e),_0x114595=Array[_0x2c8ee9(0xb1)](_0x133bce[_0x2c8ee9(0x7e)])[0x0]||null;this[_0x2c8ee9(0x8b)](),this[_0x2c8ee9(0xa9)](_0x5e3cbe);const _0x322097=this[_0x2c8ee9(0x8c)][_0x2c8ee9(0xb2)](_0x5e3cbe);_0x322097[_0x2c8ee9(0x86)](_0x114595),_0x322097[_0x2c8ee9(0x9f)]&&_0x114595&&_0x322097[_0x2c8ee9(0x9f)]([_0x114595]);}[_0x3112d0(0x8b)](){const _0x4d63fd=_0x3112d0;for(const _0x8c9ee8 of this[_0x4d63fd(0x80)])this[_0x4d63fd(0xa4)](_0x8c9ee8);}[_0x3112d0(0x9b)](_0x316a97,_0x32d0b6){const _0x17b53c=_0x3112d0;if(this[_0x17b53c(0x8c)][_0x17b53c(0x92)](_0x316a97))throw new _0x47c953(_0x17b53c(0x7d));if(_0x17b53c(0xaf)!=typeof _0x32d0b6[_0x17b53c(0x7f)]||_0x17b53c(0xaf)!=typeof _0x32d0b6[_0x17b53c(0xa0)]||_0x17b53c(0xaf)!=typeof _0x32d0b6[_0x17b53c(0x86)])throw new _0x47c953(_0x17b53c(0xb4),null);this[_0x17b53c(0x8c)][_0x17b53c(0x93)](_0x316a97,_0x32d0b6);}[_0x3112d0(0x91)](){const _0x2e56d1=_0x3112d0,_0x41d739=this[_0x2e56d1(0x99)][_0x2e56d1(0x96)][_0x2e56d1(0xb2)](_0x538e7e)[_0x2e56d1(0xb5)],_0x46b51b=new Map(),_0x468271=Array[_0x2e56d1(0xb1)](this[_0x2e56d1(0x80)]);for(const _0x3fbdd4 of this[_0x2e56d1(0x80)]){const _0x2b9728=this[_0x2e56d1(0xa5)][_0x2e56d1(0xb2)](_0x3fbdd4)[_0x2e56d1(0xb5)];for(const _0xc549e9 of _0x2b9728)_0x46b51b[_0x2e56d1(0x93)](_0xc549e9,_0x3fbdd4);}for(const _0x3d45de of _0x41d739){const _0x5c6b0b=_0x46b51b[_0x2e56d1(0xb2)](_0x3d45de);this[_0x2e56d1(0x95)](_0x3d45de);const _0xfd5092=_0x468271[_0x2e56d1(0xab)](_0x1a1ed6=>this[_0x2e56d1(0xa5)][_0x2e56d1(0xb2)](_0x1a1ed6)[_0x2e56d1(0xac)](_0x3d45de));_0x5c6b0b!==_0xfd5092&&(_0x5c6b0b&&this[_0x2e56d1(0xa5)][_0x2e56d1(0xb2)](_0x5c6b0b)[_0x2e56d1(0xb5)][_0x2e56d1(0x7c)](_0x3d45de),_0xfd5092&&this[_0x2e56d1(0xa5)][_0x2e56d1(0xb2)](_0xfd5092)[_0x2e56d1(0xb5)][_0x2e56d1(0x84)](_0x3d45de));}}[_0x3112d0(0x88)](){const _0x27ffec=_0x3112d0;this[_0x27ffec(0x8b)](),super[_0x27ffec(0x88)]();}[_0x3112d0(0x97)](){return!0x0;}[_0x3112d0(0x95)](_0x4fa34b){const _0x154fc3=_0x3112d0,_0x58cd25=[];for(const _0x5b1216 of this[_0x154fc3(0x80)]){(0x0,this[_0x154fc3(0xa5)][_0x154fc3(0xb2)](_0x5b1216)[_0x154fc3(0xac)])(_0x4fa34b)&&_0x58cd25[_0x154fc3(0x82)](_0x5b1216);}if(_0x58cd25[_0x154fc3(0x7b)]>0x1)throw new _0x47c953(_0x154fc3(0x83),null,{'matchedUIs':_0x58cd25,'annotationType':_0x4fa34b[_0x154fc3(0xaa)]});}}