@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
24 lines • 6.14 kB
JavaScript
/*
* 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. |
* | |
* | |
* +---------------------------------------------------------------------------------+
*
*
*
*
*/
const _0x1fd837=_0x20f4;function _0x20f4(_0x4d947c,_0x4e8dab){const _0x2327b8=_0x2327();return _0x20f4=function(_0x20f45b,_0x5f0a7c){_0x20f45b=_0x20f45b-0x1f2;let _0x11fe2e=_0x2327b8[_0x20f45b];return _0x11fe2e;},_0x20f4(_0x4d947c,_0x4e8dab);}function _0x2327(){const _0xffd8d7=['length','isActive','clear','8wHRRIW','mainView','remove','_assertCorrectTarget','2730IFHFfk','destroy','object','annotation-invalid-target','stopListening','isArray','offsetParent','render','item','116LmOROY','isVisible','view','every','165609YnPeAX','_getNormalizedTarget','function','type','582wVjwwm','refreshVisibility','_target','49116PNGamZ','add','focusTracker','updateTargetRect','innerView','getClientRects','_id','2290DhRdis','nodeType','set','_type','targetRect','target','focusableElements','14738304rMULHB','element','754nBicNQ','9655tsfEIv','28039iORImp','2017799DwvWbv','filter'];_0x2327=function(){return _0xffd8d7;};return _0x2327();}(function(_0x423b69,_0x5b3ed0){const _0x24099d=_0x20f4,_0xef8d95=_0x423b69();while(!![]){try{const _0x3e95de=parseInt(_0x24099d(0x214))/0x1*(-parseInt(_0x24099d(0x21d))/0x2)+parseInt(_0x24099d(0x20d))/0x3*(-parseInt(_0x24099d(0x202))/0x4)+-parseInt(_0x24099d(0x21e))/0x5*(-parseInt(_0x24099d(0x20a))/0x6)+-parseInt(_0x24099d(0x220))/0x7*(parseInt(_0x24099d(0x1f5))/0x8)+parseInt(_0x24099d(0x206))/0x9+parseInt(_0x24099d(0x1f9))/0xa*(parseInt(_0x24099d(0x21f))/0xb)+parseInt(_0x24099d(0x21b))/0xc;if(_0x3e95de===_0x5b3ed0)break;else _0xef8d95['push'](_0xef8d95['shift']());}catch(_0x61dcaf){_0xef8d95['push'](_0xef8d95['shift']());}}}(_0x2327,0x7ae6a));import{CKEditorError as _0x5c6407,Rect as _0x3d1c0c,Collection as _0x5a04a7,ObservableMixin as _0x499797}from'ckeditor5/src/utils.js';export class Annotation extends/* #__PURE__ -- */
_0x499797(){[_0x1fd837(0x204)];[_0x1fd837(0x21a)];[_0x1fd837(0x217)];[_0x1fd837(0x20c)];constructor({view:_0x2eb0b4,target:_0x11f8b1,type:_0x3f8ff2,isVisible:_0x19da8e=!0x0}){const _0x5c4b6b=_0x1fd837;super(),this[_0x5c4b6b(0x204)]=_0x2eb0b4,this[_0x5c4b6b(0x204)][_0x5c4b6b(0x21c)]||this[_0x5c4b6b(0x204)][_0x5c4b6b(0x200)](),this[_0x5c4b6b(0x217)]=_0x3f8ff2,this[_0x5c4b6b(0x20c)]=_0x11f8b1,Annotation[_0x5c4b6b(0x1f8)](this[_0x5c4b6b(0x207)]()),this[_0x5c4b6b(0x21a)]=new _0x5a04a7([this[_0x5c4b6b(0x204)][_0x5c4b6b(0x21c)]],{'idProperty':_0x5c4b6b(0x213)}),this[_0x5c4b6b(0x21a)]['on'](_0x5c4b6b(0x20e),(_0x2925b7,_0x5b1ad1)=>{const _0x2469b8=_0x5c4b6b;this[_0x2469b8(0x204)][_0x2469b8(0x20f)][_0x2469b8(0x20e)](_0x5b1ad1);}),this[_0x5c4b6b(0x21a)]['on'](_0x5c4b6b(0x1f7),(_0x515f35,_0xf732db)=>{const _0x2bd19c=_0x5c4b6b;this[_0x2bd19c(0x204)][_0x2bd19c(0x20f)][_0x2bd19c(0x1f7)](_0xf732db);}),this[_0x5c4b6b(0x216)](_0x5c4b6b(0x203),_0x19da8e);}get[_0x1fd837(0x209)](){const _0x4ade9c=_0x1fd837;return _0x4ade9c(0x208)==typeof this[_0x4ade9c(0x217)]?this[_0x4ade9c(0x217)]():this[_0x4ade9c(0x217)];}get[_0x1fd837(0x211)](){const _0x23f4e6=_0x1fd837;return this[_0x23f4e6(0x204)][_0x23f4e6(0x1f6)];}get[_0x1fd837(0x219)](){const _0x79bd83=_0x1fd837,_0x217edc=this[_0x79bd83(0x207)]();return Annotation[_0x79bd83(0x1f8)](_0x217edc),_0x217edc;}get[_0x1fd837(0x218)](){const _0x5a3fbd=_0x1fd837,_0x2a84ab=this[_0x5a3fbd(0x219)];if(null===_0x2a84ab)return null;if(_0x2a84ab instanceof _0x3d1c0c)return _0x2a84ab;const _0xb76f42=_0x2a84ab[_0x5a3fbd(0x221)](_0x4b0f63=>function(_0x50a7a9){const _0x50ab91=_0x5a3fbd,_0xf02b06=_0x50a7a9[_0x50ab91(0x1ff)];if(_0xf02b06)return!0x0;const _0x2f0289=_0x50a7a9[_0x50ab91(0x212)]()[_0x50ab91(0x201)](0x0);return!!_0x2f0289;}(_0x4b0f63));return 0x0===_0xb76f42[_0x5a3fbd(0x1f2)]?null:new _0x3d1c0c(_0xb76f42[0x0][_0x5a3fbd(0x212)]()[_0x5a3fbd(0x201)](0x0));}get[_0x1fd837(0x1f3)](){const _0x56effa=_0x1fd837;return this[_0x56effa(0x204)][_0x56effa(0x1f3)];}set[_0x1fd837(0x1f3)](_0x1db0fa){const _0x237f90=_0x1fd837;this[_0x237f90(0x204)][_0x237f90(0x1f3)]=_0x1db0fa,this[_0x237f90(0x204)][_0x237f90(0x1f6)][_0x237f90(0x1f3)]=_0x1db0fa;}[_0x1fd837(0x210)](){const _0x540e13=_0x1fd837;this[_0x540e13(0x204)][_0x540e13(0x218)]=this[_0x540e13(0x218)];}[_0x1fd837(0x1fa)](){const _0x51daeb=_0x1fd837;this[_0x51daeb(0x21a)][_0x51daeb(0x1fd)](),this[_0x51daeb(0x21a)][_0x51daeb(0x1f4)](),this[_0x51daeb(0x1fd)]();}[_0x1fd837(0x20b)](){const _0x23a0ba=_0x1fd837;this[_0x23a0ba(0x203)]=!!this[_0x23a0ba(0x218)];}static[_0x1fd837(0x1f8)](_0x1c5de5){const _0x2643a7=_0x1fd837;if(!(null===_0x1c5de5||_0x1c5de5 instanceof _0x3d1c0c||Array[_0x2643a7(0x1fe)](_0x1c5de5)&&_0x1c5de5[_0x2643a7(0x205)](_0x555a88=>g(_0x555a88))))throw new _0x5c6407(_0x2643a7(0x1fc),null,{'target':_0x1c5de5});}[_0x1fd837(0x207)](){const _0xb6b0ee=_0x1fd837,_0x10dde6=_0xb6b0ee(0x208)==typeof this[_0xb6b0ee(0x20c)]?this[_0xb6b0ee(0x20c)]():this[_0xb6b0ee(0x20c)];return g(_0x10dde6)?[_0x10dde6]:_0x10dde6;}}function g(_0x17cb9a){const _0x1013a0=_0x1fd837;return null!==_0x17cb9a&&_0x1013a0(0x1fb)==typeof _0x17cb9a&&_0x1013a0(0x215)in _0x17cb9a&&0x1===_0x17cb9a[_0x1013a0(0x215)];}