@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
24 lines • 6.01 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 _0x5e8969=_0x3138;(function(_0x3a57f7,_0xc9db9e){const _0x1851ea=_0x3138,_0x1a6eb1=_0x3a57f7();while(!![]){try{const _0x3addf3=parseInt(_0x1851ea(0x1b8))/0x1+-parseInt(_0x1851ea(0x1b0))/0x2+-parseInt(_0x1851ea(0x1af))/0x3*(parseInt(_0x1851ea(0x1a2))/0x4)+parseInt(_0x1851ea(0x1aa))/0x5+parseInt(_0x1851ea(0x1be))/0x6*(parseInt(_0x1851ea(0x1b6))/0x7)+-parseInt(_0x1851ea(0x1ab))/0x8+parseInt(_0x1851ea(0x1ad))/0x9;if(_0x3addf3===_0xc9db9e)break;else _0x1a6eb1['push'](_0x1a6eb1['shift']());}catch(_0x5029e3){_0x1a6eb1['push'](_0x1a6eb1['shift']());}}}(_0x4432,0x89d3a));function _0x4432(){const _0x44476f=['isArray','every','stopListening','filter','set','element','24ExepJR','type','innerView','targetRect','_id','isVisible','focusableElements','destroy','1982060YLtDTo','4640728GAjorw','nodeType','11246967DXsyky','mainView','365901nrsobb','1683024JJSERp','_type','item','view','annotation-invalid-target','function','35LPSyuI','remove','333713MNiGGa','add','_getNormalizedTarget','object','length','isActive','885786fbFthQ','_assertCorrectTarget','render','refreshVisibility','_target','clear','target','updateTargetRect','getClientRects','offsetParent','focusTracker'];_0x4432=function(){return _0x44476f;};return _0x4432();}import{CKEditorError as _0x342a89,Rect as _0xd9734c,Collection as _0x3e3bf2,ObservableMixin as _0x584311}from'ckeditor5/src/utils.js';function _0x3138(_0x10dfd1,_0x1cf062){const _0x4432e6=_0x4432();return _0x3138=function(_0x313885,_0xef79c9){_0x313885=_0x313885-0x19b;let _0x4b3bb0=_0x4432e6[_0x313885];return _0x4b3bb0;},_0x3138(_0x10dfd1,_0x1cf062);}export class Annotation extends/* #__PURE__ -- */
_0x584311(){[_0x5e8969(0x1b3)];[_0x5e8969(0x1a8)];[_0x5e8969(0x1b1)];[_0x5e8969(0x1c2)];constructor({view:_0x3aed43,target:_0x15fe84,type:_0x36fd47,isVisible:_0x5ee64e=!0x0}){const _0x32d953=_0x5e8969;super(),this[_0x32d953(0x1b3)]=_0x3aed43,this[_0x32d953(0x1b3)][_0x32d953(0x1a1)]||this[_0x32d953(0x1b3)][_0x32d953(0x1c0)](),this[_0x32d953(0x1b1)]=_0x36fd47,this[_0x32d953(0x1c2)]=_0x15fe84,Annotation[_0x32d953(0x1bf)](this[_0x32d953(0x1ba)]()),this[_0x32d953(0x1a8)]=new _0x3e3bf2([this[_0x32d953(0x1b3)][_0x32d953(0x1a1)]],{'idProperty':_0x32d953(0x1a6)}),this[_0x32d953(0x1a8)]['on'](_0x32d953(0x1b9),(_0x2f8bb1,_0x47b779)=>{const _0x55bfc8=_0x32d953;this[_0x55bfc8(0x1b3)][_0x55bfc8(0x19b)][_0x55bfc8(0x1b9)](_0x47b779);}),this[_0x32d953(0x1a8)]['on'](_0x32d953(0x1b7),(_0x345f4,_0x57dc2b)=>{const _0x33dabc=_0x32d953;this[_0x33dabc(0x1b3)][_0x33dabc(0x19b)][_0x33dabc(0x1b7)](_0x57dc2b);}),this[_0x32d953(0x1a0)](_0x32d953(0x1a7),_0x5ee64e);}get[_0x5e8969(0x1a3)](){const _0xc1a3b7=_0x5e8969;return _0xc1a3b7(0x1b5)==typeof this[_0xc1a3b7(0x1b1)]?this[_0xc1a3b7(0x1b1)]():this[_0xc1a3b7(0x1b1)];}get[_0x5e8969(0x1a4)](){const _0x3562c8=_0x5e8969;return this[_0x3562c8(0x1b3)][_0x3562c8(0x1ae)];}get[_0x5e8969(0x1c4)](){const _0x106748=_0x5e8969,_0x58fb5c=this[_0x106748(0x1ba)]();return Annotation[_0x106748(0x1bf)](_0x58fb5c),_0x58fb5c;}get[_0x5e8969(0x1a5)](){const _0x5deeb2=_0x5e8969,_0x421e13=this[_0x5deeb2(0x1c4)];if(null===_0x421e13)return null;if(_0x421e13 instanceof _0xd9734c)return _0x421e13;const _0x324e19=_0x421e13[_0x5deeb2(0x19f)](_0x31f5b1=>function(_0x2ad772){const _0x4ecb33=_0x5deeb2,_0xa0f132=_0x2ad772[_0x4ecb33(0x1c7)];if(_0xa0f132)return!0x0;const _0x5dde1b=_0x2ad772[_0x4ecb33(0x1c6)]()[_0x4ecb33(0x1b2)](0x0);return!!_0x5dde1b;}(_0x31f5b1));return 0x0===_0x324e19[_0x5deeb2(0x1bc)]?null:new _0xd9734c(_0x324e19[0x0][_0x5deeb2(0x1c6)]()[_0x5deeb2(0x1b2)](0x0));}get[_0x5e8969(0x1bd)](){const _0x436a0c=_0x5e8969;return this[_0x436a0c(0x1b3)][_0x436a0c(0x1bd)];}set[_0x5e8969(0x1bd)](_0x5c0d1d){const _0x5a6f53=_0x5e8969;this[_0x5a6f53(0x1b3)][_0x5a6f53(0x1bd)]=_0x5c0d1d,this[_0x5a6f53(0x1b3)][_0x5a6f53(0x1ae)][_0x5a6f53(0x1bd)]=_0x5c0d1d;}[_0x5e8969(0x1c5)](){const _0x483a6a=_0x5e8969;this[_0x483a6a(0x1b3)][_0x483a6a(0x1a5)]=this[_0x483a6a(0x1a5)];}[_0x5e8969(0x1a9)](){const _0x81eb59=_0x5e8969;this[_0x81eb59(0x1a8)][_0x81eb59(0x19e)](),this[_0x81eb59(0x1a8)][_0x81eb59(0x1c3)](),this[_0x81eb59(0x19e)]();}[_0x5e8969(0x1c1)](){const _0x3bbdb1=_0x5e8969;this[_0x3bbdb1(0x1a7)]=!!this[_0x3bbdb1(0x1a5)];}static[_0x5e8969(0x1bf)](_0x475bcf){const _0x1211b9=_0x5e8969;if(!(null===_0x475bcf||_0x475bcf instanceof _0xd9734c||Array[_0x1211b9(0x19c)](_0x475bcf)&&_0x475bcf[_0x1211b9(0x19d)](_0x529f1c=>g(_0x529f1c))))throw new _0x342a89(_0x1211b9(0x1b4),null,{'target':_0x475bcf});}[_0x5e8969(0x1ba)](){const _0x17d774=_0x5e8969,_0x317754=_0x17d774(0x1b5)==typeof this[_0x17d774(0x1c2)]?this[_0x17d774(0x1c2)]():this[_0x17d774(0x1c2)];return g(_0x317754)?[_0x317754]:_0x317754;}}function g(_0x12a26d){const _0x2c821d=_0x5e8969;return null!==_0x12a26d&&_0x2c821d(0x1bb)==typeof _0x12a26d&&_0x2c821d(0x1ac)in _0x12a26d&&0x1===_0x12a26d[_0x2c821d(0x1ac)];}