@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
23 lines • 5.15 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 _0x27a172=_0xecaa;(function(_0x1ced65,_0x32abd9){const _0x1442d0=_0xecaa,_0x6b602b=_0x1ced65();while(!![]){try{const _0x222ae7=parseInt(_0x1442d0(0xdc))/0x1*(-parseInt(_0x1442d0(0xc4))/0x2)+-parseInt(_0x1442d0(0xc8))/0x3*(parseInt(_0x1442d0(0xc0))/0x4)+parseInt(_0x1442d0(0xbd))/0x5*(-parseInt(_0x1442d0(0xcd))/0x6)+-parseInt(_0x1442d0(0xd4))/0x7*(-parseInt(_0x1442d0(0xd9))/0x8)+parseInt(_0x1442d0(0xbb))/0x9+parseInt(_0x1442d0(0xb1))/0xa*(parseInt(_0x1442d0(0xcc))/0xb)+-parseInt(_0x1442d0(0xc2))/0xc*(-parseInt(_0x1442d0(0xd0))/0xd);if(_0x222ae7===_0x32abd9)break;else _0x6b602b['push'](_0x6b602b['shift']());}catch(_0x49954){_0x6b602b['push'](_0x6b602b['shift']());}}}(_0x247b,0xa4122));function _0x247b(){const _0x5b9d77=['33kVrJro','144lySixL','arrowdown','focusTracker','13smIodx','_updateHeight','Esc','clientHeight','7qFbvZQ','first','setTemplate','listenTo','ck-rounded-corners','110312eJXhBs','clear','targetRect','1093597alDBjh','destroy','mainView','ck-annotation-wrapper--active','type','focus','ck-annotation-wrapper','1624570RICsdd','arrowup','element','attach','content','bindTemplate','delegate','set','_mutationObserver','length','10167894iHVhWM','render','234330zvNtfr','height','isActive','4iCeNmg','fire','20147664EVhlGj','presentation','2FgjQba','createCollection','div','keystrokes','1258449xGYmrS','detach','add','isDirty'];_0x247b=function(){return _0x5b9d77;};return _0x247b();}function _0xecaa(_0x35336b,_0x568fa0){const _0x247bd4=_0x247b();return _0xecaa=function(_0xecaa6b,_0x2499d1){_0xecaa6b=_0xecaa6b-0xb0;let _0x289179=_0x247bd4[_0xecaa6b];return _0x289179;},_0xecaa(_0x35336b,_0x568fa0);}import{View as _0x31d331}from'ckeditor5/src/ui.js';import{FocusTracker as _0x317f5f,KeystrokeHandler as _0x55191d,uid as _0x4faa39}from'ckeditor5/src/utils.js';import{createMutationObserver as _0x534f00}from'../../utils/createmutationobserver.js';import'../../../theme/annotation.css';export class AnnotationView extends _0x31d331{[_0x27a172(0xcf)];['id'];[_0x27a172(0xc7)];[_0x27a172(0xb5)];[_0x27a172(0xde)];[_0x27a172(0xb9)];constructor(_0x49fd4a,_0xd6420a){const _0x5407a3=_0x27a172;super(_0x49fd4a),this['id']=_0x4faa39(),this[_0x5407a3(0xcf)]=new _0x317f5f(),this[_0x5407a3(0xc7)]=new _0x55191d(),this[_0x5407a3(0xc7)][_0x5407a3(0xb8)](_0x5407a3(0xd2),(_0x12c6f4,_0x223cf2)=>this[_0x5407a3(0xc1)](_0x5407a3(0xd2),_0x223cf2)),this[_0x5407a3(0xb8)](_0x5407a3(0xdb),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x5407a3(0xb8)](_0x5407a3(0xbe),0x0),this[_0x5407a3(0xb8)](_0x5407a3(0xbf),!0x1),this[_0x5407a3(0xb8)](_0x5407a3(0xcb),!0x1),this[_0x5407a3(0xb8)](_0x5407a3(0xba),0x0),this[_0x5407a3(0xb8)](_0x5407a3(0xe0),''),this[_0x5407a3(0xb9)]=_0x534f00(()=>this[_0x5407a3(0xd1)]()),this[_0x5407a3(0xb5)]=this[_0x5407a3(0xc5)](),this[_0x5407a3(0xb5)][_0x5407a3(0xb7)](_0x5407a3(0xb2),_0x5407a3(0xce))['to'](this),this[_0x5407a3(0xb5)][_0x5407a3(0xca)](_0xd6420a),this[_0x5407a3(0xde)]=_0xd6420a;const _0x54d98b=this[_0x5407a3(0xb6)];this[_0x5407a3(0xd6)]({'tag':_0x5407a3(0xc6),'attributes':{'class':['ck',_0x5407a3(0xb0),_0x5407a3(0xd8),_0x54d98b['if'](_0x5407a3(0xbf),_0x5407a3(0xdf))],'role':_0x5407a3(0xc3)},'children':this[_0x5407a3(0xb5)]});}[_0x27a172(0xbc)](){const _0x7d7c90=_0x27a172;super[_0x7d7c90(0xbc)](),this[_0x7d7c90(0xcf)][_0x7d7c90(0xca)](this[_0x7d7c90(0xb3)]),this[_0x7d7c90(0xc7)][_0x7d7c90(0xd7)](this[_0x7d7c90(0xb3)]),this[_0x7d7c90(0xb9)][_0x7d7c90(0xb4)](this[_0x7d7c90(0xb3)]);}[_0x27a172(0xdd)](){const _0x48017f=_0x27a172;this[_0x48017f(0xb5)][_0x48017f(0xda)](),this[_0x48017f(0xc7)][_0x48017f(0xdd)](),this[_0x48017f(0xcf)][_0x48017f(0xdd)](),this[_0x48017f(0xb9)][_0x48017f(0xc9)](),super[_0x48017f(0xdd)]();}[_0x27a172(0xe1)](){const _0x31a899=_0x27a172;this[_0x31a899(0xb5)][_0x31a899(0xd5)]&&this[_0x31a899(0xb5)][_0x31a899(0xd5)][_0x31a899(0xe1)]();}[_0x27a172(0xd1)](){const _0x27bfd5=_0x27a172,_0x4d27f5=this[_0x27bfd5(0xb3)][_0x27bfd5(0xd3)];_0x4d27f5&&(this[_0x27bfd5(0xbe)]=_0x4d27f5);}}