UNPKG

@ckeditor/ckeditor5-comments

Version:

Collaborative comments feature for CKEditor 5.

24 lines 6 kB
/* * 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 _0x29c56b=_0x66e5;(function(_0x42a756,_0x2c1d5c){const _0x23786e=_0x66e5,_0x108072=_0x42a756();while(!![]){try{const _0x176e81=parseInt(_0x23786e(0xf2))/0x1*(parseInt(_0x23786e(0xe8))/0x2)+-parseInt(_0x23786e(0xde))/0x3*(parseInt(_0x23786e(0xf8))/0x4)+parseInt(_0x23786e(0xd8))/0x5*(-parseInt(_0x23786e(0xe6))/0x6)+-parseInt(_0x23786e(0xdc))/0x7+-parseInt(_0x23786e(0xe9))/0x8+parseInt(_0x23786e(0xd5))/0x9+parseInt(_0x23786e(0xf1))/0xa*(parseInt(_0x23786e(0xf0))/0xb);if(_0x176e81===_0x2c1d5c)break;else _0x108072['push'](_0x108072['shift']());}catch(_0x5cfe6a){_0x108072['push'](_0x108072['shift']());}}}(_0x2e6c,0xe2d6a));import{CKEditorError as _0x4c2086,Rect as _0x20ee0f,Collection as _0x4eccdf,ObservableMixin as _0x4f0c56}from'ckeditor5/src/utils.js';function _0x66e5(_0x55caac,_0x59dbb7){const _0x2e6c89=_0x2e6c();return _0x66e5=function(_0x66e5f7,_0x27a6e6){_0x66e5f7=_0x66e5f7-0xcd;let _0x1dcf92=_0x2e6c89[_0x66e5f7];return _0x1dcf92;},_0x66e5(_0x55caac,_0x59dbb7);}export class Annotation extends/* #__PURE__ -- @preserve */ _0x4f0c56(){[_0x29c56b(0xe5)];[_0x29c56b(0xe3)];[_0x29c56b(0xd7)];[_0x29c56b(0xed)];constructor({view:_0x598b26,target:_0x3a2466,type:_0x36dafd,isVisible:_0x4f5e51=!0x0}){const _0x4cf191=_0x29c56b;super(),this[_0x4cf191(0xe5)]=_0x598b26,this[_0x4cf191(0xe5)][_0x4cf191(0xea)]||this[_0x4cf191(0xe5)][_0x4cf191(0xf5)](),this[_0x4cf191(0xd7)]=_0x36dafd,this[_0x4cf191(0xed)]=_0x3a2466,Annotation[_0x4cf191(0xf6)](this[_0x4cf191(0xf3)]()),this[_0x4cf191(0xe3)]=new _0x4eccdf([this[_0x4cf191(0xe5)][_0x4cf191(0xea)]],{'idProperty':_0x4cf191(0xd9)}),this[_0x4cf191(0xe3)]['on'](_0x4cf191(0xdb),(_0x7e15bf,_0x1c85a9)=>{const _0x563090=_0x4cf191;this[_0x563090(0xe5)][_0x563090(0xe7)][_0x563090(0xdb)](_0x1c85a9);}),this[_0x4cf191(0xe3)]['on'](_0x4cf191(0xf9),(_0x51bc02,_0x203242)=>{const _0xdd147b=_0x4cf191;this[_0xdd147b(0xe5)][_0xdd147b(0xe7)][_0xdd147b(0xf9)](_0x203242);}),this[_0x4cf191(0xe1)](_0x4cf191(0xdd),_0x4f5e51);}get[_0x29c56b(0xda)](){const _0x4c465a=_0x29c56b;return _0x4c465a(0xef)==typeof this[_0x4c465a(0xd7)]?this[_0x4c465a(0xd7)]():this[_0x4c465a(0xd7)];}get[_0x29c56b(0xec)](){const _0x167313=_0x29c56b;return this[_0x167313(0xe5)][_0x167313(0xcf)];}get[_0x29c56b(0xe4)](){const _0x557206=_0x29c56b,_0x4f9613=this[_0x557206(0xf3)]();return Annotation[_0x557206(0xf6)](_0x4f9613),_0x4f9613;}get[_0x29c56b(0xd3)](){const _0x2947f9=_0x29c56b,_0x78247f=this[_0x2947f9(0xe4)];if(null===_0x78247f)return null;if(_0x78247f instanceof _0x20ee0f)return _0x78247f;const _0x35aeb1=_0x78247f[_0x2947f9(0xd1)](_0x53ec7b=>function(_0x35414c){const _0x1d93de=_0x2947f9,_0x5bad0a=_0x35414c[_0x1d93de(0xe2)];if(_0x5bad0a)return!0x0;const _0x2faf35=_0x35414c[_0x1d93de(0xfa)]()[_0x1d93de(0xe0)](0x0);return!!_0x2faf35;}(_0x53ec7b));return 0x0===_0x35aeb1[_0x2947f9(0xf4)]?null:new _0x20ee0f(_0x35aeb1[0x0][_0x2947f9(0xfa)]()[_0x2947f9(0xe0)](0x0));}get[_0x29c56b(0xeb)](){const _0x24a5a8=_0x29c56b;return this[_0x24a5a8(0xe5)][_0x24a5a8(0xeb)];}set[_0x29c56b(0xeb)](_0x5888fd){const _0x414f00=_0x29c56b;this[_0x414f00(0xe5)][_0x414f00(0xeb)]=_0x5888fd,this[_0x414f00(0xe5)][_0x414f00(0xcf)][_0x414f00(0xeb)]=_0x5888fd;}[_0x29c56b(0xd4)](){const _0x3cbb3d=_0x29c56b;this[_0x3cbb3d(0xe5)][_0x3cbb3d(0xd3)]=this[_0x3cbb3d(0xd3)];}[_0x29c56b(0xfb)](){const _0x4ce9d7=_0x29c56b;this[_0x4ce9d7(0xe3)][_0x4ce9d7(0xee)](),this[_0x4ce9d7(0xe3)][_0x4ce9d7(0xd0)](),this[_0x4ce9d7(0xee)]();}[_0x29c56b(0xd6)](){const _0x5efe40=_0x29c56b;this[_0x5efe40(0xdd)]=!!this[_0x5efe40(0xd3)];}static[_0x29c56b(0xf6)](_0x3f4263){const _0x133d14=_0x29c56b;if(!(null===_0x3f4263||_0x3f4263 instanceof _0x20ee0f||Array[_0x133d14(0xd2)](_0x3f4263)&&_0x3f4263[_0x133d14(0xcd)](_0x1280eb=>g(_0x1280eb))))throw new _0x4c2086(_0x133d14(0xf7),null,{'target':_0x3f4263});}[_0x29c56b(0xf3)](){const _0x386a4c=_0x29c56b,_0x1e2c33=_0x386a4c(0xef)==typeof this[_0x386a4c(0xed)]?this[_0x386a4c(0xed)]():this[_0x386a4c(0xed)];return g(_0x1e2c33)?[_0x1e2c33]:_0x1e2c33;}}function g(_0x2ff9eb){const _0x1de856=_0x29c56b;return null!==_0x2ff9eb&&_0x1de856(0xce)==typeof _0x2ff9eb&&_0x1de856(0xdf)in _0x2ff9eb&&0x1===_0x2ff9eb[_0x1de856(0xdf)];}function _0x2e6c(){const _0x1bbc45=['function','3740913swIhCI','80VFxSvq','933767kfhoTN','_getNormalizedTarget','length','render','_assertCorrectTarget','annotation-invalid-target','4jSswwH','remove','getClientRects','destroy','every','object','mainView','clear','filter','isArray','targetRect','updateTargetRect','1256184JRvZdW','refreshVisibility','_type','5ygtdUz','_id','type','add','2716623WWdgpP','isVisible','1288509NDETLn','nodeType','item','set','offsetParent','focusableElements','target','view','7330374wejoAX','focusTracker','2udVPMx','6604448hJwDIw','element','isActive','innerView','_target','stopListening'];_0x2e6c=function(){return _0x1bbc45;};return _0x2e6c();}