@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
24 lines • 5.84 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 _0x6d928=_0x1b7f;function _0x1b7f(_0xc3352f,_0x31762e){const _0x34b7e0=_0x34b7();return _0x1b7f=function(_0x1b7f30,_0x39dc8b){_0x1b7f30=_0x1b7f30-0x196;let _0x4bb210=_0x34b7e0[_0x1b7f30];return _0x4bb210;},_0x1b7f(_0xc3352f,_0x31762e);}(function(_0x594b5b,_0x4e0387){const _0x430afc=_0x1b7f,_0x6c9727=_0x594b5b();while(!![]){try{const _0x1cf34e=-parseInt(_0x430afc(0x1af))/0x1+parseInt(_0x430afc(0x1be))/0x2+parseInt(_0x430afc(0x1aa))/0x3+parseInt(_0x430afc(0x1b1))/0x4+parseInt(_0x430afc(0x1b0))/0x5+-parseInt(_0x430afc(0x1a6))/0x6*(parseInt(_0x430afc(0x1ab))/0x7)+parseInt(_0x430afc(0x1b3))/0x8;if(_0x1cf34e===_0x4e0387)break;else _0x6c9727['push'](_0x6c9727['shift']());}catch(_0x5e06a3){_0x6c9727['push'](_0x6c9727['shift']());}}}(_0x34b7,0x2e86d));import{CKEditorError as _0x752675,Rect as _0xe520d3,Collection as _0xbd7aa7,ObservableMixin as _0x10563f}from'ckeditor5/src/utils.js';export default class d extends/* #__PURE__ -- */
_0x10563f(){constructor({view:_0x4d09a0,target:_0x26c598,type:_0x385924,isVisible:_0x5babde=!0x0}){const _0x53a835=_0x1b7f;super(),this[_0x53a835(0x1ae)]=_0x4d09a0,this[_0x53a835(0x1ae)][_0x53a835(0x19b)]||this[_0x53a835(0x1ae)][_0x53a835(0x1a2)](),this[_0x53a835(0x1b8)]=_0x385924,this[_0x53a835(0x1b9)]=_0x26c598,d[_0x53a835(0x196)](this[_0x53a835(0x19d)]()),this[_0x53a835(0x1b7)]=new _0xbd7aa7([this[_0x53a835(0x1ae)][_0x53a835(0x19b)]],{'idProperty':_0x53a835(0x1c0)}),this[_0x53a835(0x1b7)]['on'](_0x53a835(0x1a9),(_0x2d13a4,_0x11bf53)=>{const _0x42a971=_0x53a835;this[_0x42a971(0x1ae)][_0x42a971(0x1a0)][_0x42a971(0x1a9)](_0x11bf53);}),this[_0x53a835(0x1b7)]['on'](_0x53a835(0x1bf),(_0x1448af,_0x237450)=>{const _0x219693=_0x53a835;this[_0x219693(0x1ae)][_0x219693(0x1a0)][_0x219693(0x1bf)](_0x237450);}),this[_0x53a835(0x1b4)](_0x53a835(0x19c),_0x5babde);}get[_0x6d928(0x1ad)](){const _0x98ba94=_0x6d928;return _0x98ba94(0x1ac)==typeof this[_0x98ba94(0x1b8)]?this[_0x98ba94(0x1b8)]():this[_0x98ba94(0x1b8)];}get[_0x6d928(0x19f)](){const _0x5e499c=_0x6d928;return this[_0x5e499c(0x1ae)][_0x5e499c(0x1bd)];}get[_0x6d928(0x199)](){const _0x212d2a=_0x6d928,_0x1d4f63=this[_0x212d2a(0x19d)]();return d[_0x212d2a(0x196)](_0x1d4f63),_0x1d4f63;}get[_0x6d928(0x1a3)](){const _0x395419=_0x6d928,_0x35ae64=this[_0x395419(0x199)];if(null===_0x35ae64)return null;if(_0x35ae64 instanceof _0xe520d3)return _0x35ae64;const _0x5725af=_0x35ae64[_0x395419(0x1a4)](_0x5ece9f=>function(_0x21beda){const _0x48fb01=_0x395419,_0x42e794=_0x21beda[_0x48fb01(0x1bc)];if(_0x42e794)return!0x0;const _0x37b525=_0x21beda[_0x48fb01(0x1b5)]()[_0x48fb01(0x1a7)](0x0);return!!_0x37b525;}(_0x5ece9f));return 0x0===_0x5725af[_0x395419(0x1bb)]?null:new _0xe520d3(_0x5725af[0x0][_0x395419(0x1b5)]()[_0x395419(0x1a7)](0x0));}get[_0x6d928(0x1b2)](){const _0x3a56f2=_0x6d928;return this[_0x3a56f2(0x1ae)][_0x3a56f2(0x1b2)];}set[_0x6d928(0x1b2)](_0x2b7b72){const _0x2e4563=_0x6d928;this[_0x2e4563(0x1ae)][_0x2e4563(0x1b2)]=_0x2b7b72,this[_0x2e4563(0x1ae)][_0x2e4563(0x1bd)][_0x2e4563(0x1b2)]=_0x2b7b72;}[_0x6d928(0x1a5)](){const _0x1e8007=_0x6d928;this[_0x1e8007(0x1ae)][_0x1e8007(0x1a3)]=this[_0x1e8007(0x1a3)];}[_0x6d928(0x19e)](){const _0x58e4f6=_0x6d928;this[_0x58e4f6(0x1b7)][_0x58e4f6(0x19a)](),this[_0x58e4f6(0x1b7)][_0x58e4f6(0x1b6)](),this[_0x58e4f6(0x19a)]();}[_0x6d928(0x1c1)](){const _0x308488=_0x6d928;this[_0x308488(0x19c)]=!!this[_0x308488(0x1a3)];}static[_0x6d928(0x196)](_0x2300e1){const _0x3759ea=_0x6d928;if(!(null===_0x2300e1||_0x2300e1 instanceof _0xe520d3||Array[_0x3759ea(0x198)](_0x2300e1)&&_0x2300e1[_0x3759ea(0x1a1)](_0x199c6f=>y(_0x199c6f))))throw new _0x752675(_0x3759ea(0x197),null,{'target':_0x2300e1});}[_0x6d928(0x19d)](){const _0x3f5409=_0x6d928,_0x190efe=_0x3f5409(0x1ac)==typeof this[_0x3f5409(0x1b9)]?this[_0x3f5409(0x1b9)]():this[_0x3f5409(0x1b9)];return y(_0x190efe)?[_0x190efe]:_0x190efe;}}function y(_0x1b6c6e){const _0x618cdb=_0x6d928;return null!==_0x1b6c6e&&_0x618cdb(0x1ba)==typeof _0x1b6c6e&&_0x618cdb(0x1a8)in _0x1b6c6e&&0x1===_0x1b6c6e[_0x618cdb(0x1a8)];}function _0x34b7(){const _0x1a86fb=['_getNormalizedTarget','destroy','innerView','focusTracker','every','render','targetRect','filter','updateTargetRect','385422hoQfEW','item','nodeType','add','278775uPgIXj','35brEhkU','function','type','view','291690VeqMbS','685850QkntEu','52052tvfSQn','isActive','3392344tLBPWi','set','getClientRects','clear','focusableElements','_type','_target','object','length','offsetParent','mainView','272594HyGLlB','remove','_id','refreshVisibility','_assertCorrectTarget','annotation-invalid-target','isArray','target','stopListening','element','isVisible'];_0x34b7=function(){return _0x1a86fb;};return _0x34b7();}