@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
24 lines • 6.05 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 _0x20643c=_0x1ea8;(function(_0x277f49,_0x11126d){const _0x5b8850=_0x1ea8,_0x51de99=_0x277f49();while(!![]){try{const _0x4b6854=parseInt(_0x5b8850(0x148))/0x1+parseInt(_0x5b8850(0x14c))/0x2*(-parseInt(_0x5b8850(0x13f))/0x3)+parseInt(_0x5b8850(0x133))/0x4*(-parseInt(_0x5b8850(0x140))/0x5)+parseInt(_0x5b8850(0x139))/0x6*(parseInt(_0x5b8850(0x142))/0x7)+-parseInt(_0x5b8850(0x153))/0x8+-parseInt(_0x5b8850(0x150))/0x9+parseInt(_0x5b8850(0x15a))/0xa;if(_0x4b6854===_0x11126d)break;else _0x51de99['push'](_0x51de99['shift']());}catch(_0x227e2a){_0x51de99['push'](_0x51de99['shift']());}}}(_0x3957,0xf13eb));function _0x1ea8(_0x34a223,_0x3855ff){const _0x395706=_0x3957();return _0x1ea8=function(_0x1ea876,_0x1e244f){_0x1ea876=_0x1ea876-0x130;let _0x1d7296=_0x395706[_0x1ea876];return _0x1d7296;},_0x1ea8(_0x34a223,_0x3855ff);}import{CKEditorError as _0x1ce795,Rect as _0x5b19cc,Collection as _0x21ca20,ObservableMixin as _0x1f385b}from'ckeditor5/src/utils.js';function _0x3957(){const _0x529f35=['destroy','type','_getNormalizedTarget','filter','render','1707365YRovsI','isArray','target','focusableElements','224WdROJi','set','targetRect','refreshVisibility','6903270bPezwg','annotation-invalid-target','function','1168632ycyjdq','view','nodeType','offsetParent','item','updateTargetRect','innerView','4182620WWqlSu','_id','every','remove','getClientRects','focusTracker','mainView','66916QzikNG','isVisible','isActive','_type','element','add','40686rDejGf','clear','stopListening','length','_target','object','19971ldvfdu','55TAzKSp','_assertCorrectTarget','728JKHwWV'];_0x3957=function(){return _0x529f35;};return _0x3957();}export class Annotation extends/* #__PURE__ -- */
_0x1f385b(){[_0x20643c(0x154)];[_0x20643c(0x14b)];[_0x20643c(0x136)];[_0x20643c(0x13d)];constructor({view:_0x188d57,target:_0x2b6d71,type:_0x530096,isVisible:_0x23c4ed=!0x0}){const _0x2645f1=_0x20643c;super(),this[_0x2645f1(0x154)]=_0x188d57,this[_0x2645f1(0x154)][_0x2645f1(0x137)]||this[_0x2645f1(0x154)][_0x2645f1(0x147)](),this[_0x2645f1(0x136)]=_0x530096,this[_0x2645f1(0x13d)]=_0x2b6d71,Annotation[_0x2645f1(0x141)](this[_0x2645f1(0x145)]()),this[_0x2645f1(0x14b)]=new _0x21ca20([this[_0x2645f1(0x154)][_0x2645f1(0x137)]],{'idProperty':_0x2645f1(0x15b)}),this[_0x2645f1(0x14b)]['on'](_0x2645f1(0x138),(_0x53893a,_0x1f35bd)=>{const _0x498e4e=_0x2645f1;this[_0x498e4e(0x154)][_0x498e4e(0x131)][_0x498e4e(0x138)](_0x1f35bd);}),this[_0x2645f1(0x14b)]['on'](_0x2645f1(0x15d),(_0x58672a,_0x3928b4)=>{const _0x304b93=_0x2645f1;this[_0x304b93(0x154)][_0x304b93(0x131)][_0x304b93(0x15d)](_0x3928b4);}),this[_0x2645f1(0x14d)](_0x2645f1(0x134),_0x23c4ed);}get[_0x20643c(0x144)](){const _0x35295a=_0x20643c;return _0x35295a(0x152)==typeof this[_0x35295a(0x136)]?this[_0x35295a(0x136)]():this[_0x35295a(0x136)];}get[_0x20643c(0x159)](){const _0x5bafa3=_0x20643c;return this[_0x5bafa3(0x154)][_0x5bafa3(0x132)];}get[_0x20643c(0x14a)](){const _0x22f0cb=_0x20643c,_0x17cfd6=this[_0x22f0cb(0x145)]();return Annotation[_0x22f0cb(0x141)](_0x17cfd6),_0x17cfd6;}get[_0x20643c(0x14e)](){const _0x3152d7=_0x20643c,_0x4b495c=this[_0x3152d7(0x14a)];if(null===_0x4b495c)return null;if(_0x4b495c instanceof _0x5b19cc)return _0x4b495c;const _0x4c2517=_0x4b495c[_0x3152d7(0x146)](_0x530606=>function(_0x4842e4){const _0x482bda=_0x3152d7,_0x34c393=_0x4842e4[_0x482bda(0x156)];if(_0x34c393)return!0x0;const _0x49d753=_0x4842e4[_0x482bda(0x130)]()[_0x482bda(0x157)](0x0);return!!_0x49d753;}(_0x530606));return 0x0===_0x4c2517[_0x3152d7(0x13c)]?null:new _0x5b19cc(_0x4c2517[0x0][_0x3152d7(0x130)]()[_0x3152d7(0x157)](0x0));}get[_0x20643c(0x135)](){const _0x5ab647=_0x20643c;return this[_0x5ab647(0x154)][_0x5ab647(0x135)];}set[_0x20643c(0x135)](_0x53e796){const _0x1b3b56=_0x20643c;this[_0x1b3b56(0x154)][_0x1b3b56(0x135)]=_0x53e796,this[_0x1b3b56(0x154)][_0x1b3b56(0x132)][_0x1b3b56(0x135)]=_0x53e796;}[_0x20643c(0x158)](){const _0x311bd9=_0x20643c;this[_0x311bd9(0x154)][_0x311bd9(0x14e)]=this[_0x311bd9(0x14e)];}[_0x20643c(0x143)](){const _0xbb331=_0x20643c;this[_0xbb331(0x14b)][_0xbb331(0x13b)](),this[_0xbb331(0x14b)][_0xbb331(0x13a)](),this[_0xbb331(0x13b)]();}[_0x20643c(0x14f)](){const _0x34da91=_0x20643c;this[_0x34da91(0x134)]=!!this[_0x34da91(0x14e)];}static[_0x20643c(0x141)](_0x28db3a){const _0x290301=_0x20643c;if(!(null===_0x28db3a||_0x28db3a instanceof _0x5b19cc||Array[_0x290301(0x149)](_0x28db3a)&&_0x28db3a[_0x290301(0x15c)](_0x355771=>g(_0x355771))))throw new _0x1ce795(_0x290301(0x151),null,{'target':_0x28db3a});}[_0x20643c(0x145)](){const _0x2bef7d=_0x20643c,_0xd35c41=_0x2bef7d(0x152)==typeof this[_0x2bef7d(0x13d)]?this[_0x2bef7d(0x13d)]():this[_0x2bef7d(0x13d)];return g(_0xd35c41)?[_0xd35c41]:_0xd35c41;}}function g(_0x59a24b){const _0x278d76=_0x20643c;return null!==_0x59a24b&&_0x278d76(0x13e)==typeof _0x59a24b&&_0x278d76(0x155)in _0x59a24b&&0x1===_0x59a24b[_0x278d76(0x155)];}