UNPKG

@ckeditor/ckeditor5-comments

Version:

Collaborative comments feature for CKEditor 5.

24 lines 6.04 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 _0x25e8f9=_0x3f87;(function(_0x5e6df7,_0x5b664f){const _0x3949=_0x3f87,_0x461e50=_0x5e6df7();while(!![]){try{const _0x1ce365=parseInt(_0x3949(0xb4))/0x1*(parseInt(_0x3949(0xbd))/0x2)+parseInt(_0x3949(0x9e))/0x3*(parseInt(_0x3949(0xbe))/0x4)+parseInt(_0x3949(0x96))/0x5*(parseInt(_0x3949(0xb9))/0x6)+-parseInt(_0x3949(0xae))/0x7*(parseInt(_0x3949(0xbc))/0x8)+parseInt(_0x3949(0x95))/0x9*(-parseInt(_0x3949(0xb7))/0xa)+-parseInt(_0x3949(0x98))/0xb+-parseInt(_0x3949(0xb5))/0xc*(-parseInt(_0x3949(0x9d))/0xd);if(_0x1ce365===_0x5b664f)break;else _0x461e50['push'](_0x461e50['shift']());}catch(_0xba3ebc){_0x461e50['push'](_0x461e50['shift']());}}}(_0x5280,0x3b43a));import{CKEditorError as _0x38f610,Rect as _0xd0d28e,Collection as _0x1670b7,ObservableMixin as _0x204854}from'ckeditor5/src/utils.js';function _0x5280(){const _0x5880a3=['updateTargetRect','nodeType','496jXOFcW','2tAPtYE','256kelLEG','set','function','length','destroy','_id','_assertCorrectTarget','stopListening','5013nQerpB','5XrlxOI','every','4257066QPkmax','view','add','remove','targetRect','13opvUIA','12471KcLPNz','_target','filter','focusableElements','type','target','_type','item','refreshVisibility','isVisible','mainView','isActive','clear','focusTracker','_getNormalizedTarget','object','19187KNEzzU','innerView','element','annotation-invalid-target','getClientRects','render','356056FSyuhp','3175572AAqBew','isArray','2960buHvvn','offsetParent','466986WlBxBe'];_0x5280=function(){return _0x5880a3;};return _0x5280();}export default class d extends/* #__PURE__ -- @preserve */ _0x204854(){[_0x25e8f9(0x99)];[_0x25e8f9(0xa1)];[_0x25e8f9(0xa4)];[_0x25e8f9(0x9f)];constructor({view:_0x46869f,target:_0x1258e6,type:_0x25364f,isVisible:_0x2c967c=!0x0}){const _0xa5f8f8=_0x25e8f9;super(),this[_0xa5f8f8(0x99)]=_0x46869f,this[_0xa5f8f8(0x99)][_0xa5f8f8(0xb0)]||this[_0xa5f8f8(0x99)][_0xa5f8f8(0xb3)](),this[_0xa5f8f8(0xa4)]=_0x25364f,this[_0xa5f8f8(0x9f)]=_0x1258e6,d[_0xa5f8f8(0x93)](this[_0xa5f8f8(0xac)]()),this[_0xa5f8f8(0xa1)]=new _0x1670b7([this[_0xa5f8f8(0x99)][_0xa5f8f8(0xb0)]],{'idProperty':_0xa5f8f8(0x92)}),this[_0xa5f8f8(0xa1)]['on'](_0xa5f8f8(0x9a),(_0x427a9e,_0x434c0f)=>{const _0x3b7d5e=_0xa5f8f8;this[_0x3b7d5e(0x99)][_0x3b7d5e(0xab)][_0x3b7d5e(0x9a)](_0x434c0f);}),this[_0xa5f8f8(0xa1)]['on'](_0xa5f8f8(0x9b),(_0x437c49,_0x4e6ba6)=>{const _0x5b487d=_0xa5f8f8;this[_0x5b487d(0x99)][_0x5b487d(0xab)][_0x5b487d(0x9b)](_0x4e6ba6);}),this[_0xa5f8f8(0xbf)](_0xa5f8f8(0xa7),_0x2c967c);}get[_0x25e8f9(0xa2)](){const _0x5b0ad6=_0x25e8f9;return _0x5b0ad6(0xc0)==typeof this[_0x5b0ad6(0xa4)]?this[_0x5b0ad6(0xa4)]():this[_0x5b0ad6(0xa4)];}get[_0x25e8f9(0xaf)](){const _0x123fd7=_0x25e8f9;return this[_0x123fd7(0x99)][_0x123fd7(0xa8)];}get[_0x25e8f9(0xa3)](){const _0x37b6e2=_0x25e8f9,_0x3574b8=this[_0x37b6e2(0xac)]();return d[_0x37b6e2(0x93)](_0x3574b8),_0x3574b8;}get[_0x25e8f9(0x9c)](){const _0x39efe8=_0x25e8f9,_0x4a8001=this[_0x39efe8(0xa3)];if(null===_0x4a8001)return null;if(_0x4a8001 instanceof _0xd0d28e)return _0x4a8001;const _0x3aa298=_0x4a8001[_0x39efe8(0xa0)](_0x438212=>function(_0x39a205){const _0x53e22d=_0x39efe8,_0x561a79=_0x39a205[_0x53e22d(0xb8)];if(_0x561a79)return!0x0;const _0x55d4b0=_0x39a205[_0x53e22d(0xb2)]()[_0x53e22d(0xa5)](0x0);return!!_0x55d4b0;}(_0x438212));return 0x0===_0x3aa298[_0x39efe8(0xc1)]?null:new _0xd0d28e(_0x3aa298[0x0][_0x39efe8(0xb2)]()[_0x39efe8(0xa5)](0x0));}get[_0x25e8f9(0xa9)](){const _0x283ad2=_0x25e8f9;return this[_0x283ad2(0x99)][_0x283ad2(0xa9)];}set[_0x25e8f9(0xa9)](_0x2ba3c5){const _0x5c0f4f=_0x25e8f9;this[_0x5c0f4f(0x99)][_0x5c0f4f(0xa9)]=_0x2ba3c5,this[_0x5c0f4f(0x99)][_0x5c0f4f(0xa8)][_0x5c0f4f(0xa9)]=_0x2ba3c5;}[_0x25e8f9(0xba)](){const _0x38d425=_0x25e8f9;this[_0x38d425(0x99)][_0x38d425(0x9c)]=this[_0x38d425(0x9c)];}[_0x25e8f9(0xc2)](){const _0x17b133=_0x25e8f9;this[_0x17b133(0xa1)][_0x17b133(0x94)](),this[_0x17b133(0xa1)][_0x17b133(0xaa)](),this[_0x17b133(0x94)]();}[_0x25e8f9(0xa6)](){const _0x4a8078=_0x25e8f9;this[_0x4a8078(0xa7)]=!!this[_0x4a8078(0x9c)];}static[_0x25e8f9(0x93)](_0x1b4985){const _0x396534=_0x25e8f9;if(!(null===_0x1b4985||_0x1b4985 instanceof _0xd0d28e||Array[_0x396534(0xb6)](_0x1b4985)&&_0x1b4985[_0x396534(0x97)](_0x24f600=>y(_0x24f600))))throw new _0x38f610(_0x396534(0xb1),null,{'target':_0x1b4985});}[_0x25e8f9(0xac)](){const _0x48c67c=_0x25e8f9,_0xc28641=_0x48c67c(0xc0)==typeof this[_0x48c67c(0x9f)]?this[_0x48c67c(0x9f)]():this[_0x48c67c(0x9f)];return y(_0xc28641)?[_0xc28641]:_0xc28641;}}function _0x3f87(_0x34a795,_0x14cce4){const _0x52806a=_0x5280();return _0x3f87=function(_0x3f8702,_0x353e16){_0x3f8702=_0x3f8702-0x92;let _0x560b48=_0x52806a[_0x3f8702];return _0x560b48;},_0x3f87(_0x34a795,_0x14cce4);}function y(_0x54e115){const _0xfaae2f=_0x25e8f9;return null!==_0x54e115&&_0xfaae2f(0xad)==typeof _0x54e115&&_0xfaae2f(0xbb)in _0x54e115&&0x1===_0x54e115[_0xfaae2f(0xbb)];}