UNPKG

@ckeditor/ckeditor5-comments

Version:

Collaborative comments feature for CKEditor 5.

23 lines 4.9 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 _0xa30d7=_0x5bf9;(function(_0xb953bd,_0x2ce772){const _0x560070=_0x5bf9,_0x569d47=_0xb953bd();while(!![]){try{const _0x4718b6=parseInt(_0x560070(0x13b))/0x1+parseInt(_0x560070(0x144))/0x2+parseInt(_0x560070(0x134))/0x3*(parseInt(_0x560070(0x143))/0x4)+parseInt(_0x560070(0x15d))/0x5+-parseInt(_0x560070(0x14e))/0x6+parseInt(_0x560070(0x13f))/0x7*(-parseInt(_0x560070(0x13d))/0x8)+-parseInt(_0x560070(0x133))/0x9;if(_0x4718b6===_0x2ce772)break;else _0x569d47['push'](_0x569d47['shift']());}catch(_0x4dad08){_0x569d47['push'](_0x569d47['shift']());}}}(_0x7f56,0x1f641));function _0x5bf9(_0x3119cc,_0x33d2ae){const _0x7f56d3=_0x7f56();return _0x5bf9=function(_0x5bf92e,_0x120248){_0x5bf92e=_0x5bf92e-0x130;let _0x2046db=_0x7f56d3[_0x5bf92e];return _0x2046db;},_0x5bf9(_0x3119cc,_0x33d2ae);}import{View as _0x453e45}from'ckeditor5/src/ui.js';import{FocusTracker as _0x5b11fc,KeystrokeHandler as _0x5cc49f,uid as _0x4d64e7}from'ckeditor5/src/utils.js';import _0x276df4 from'../../utils/createmutationobserver.js';import'../../../theme/annotation.css';function _0x7f56(){const _0xf65891=['clientHeight','type','ck-annotation-wrapper','focusTracker','_updateHeight','182630Ycqmpu','set','6640AhNDal','Esc','63GsZgVS','destroy','ck-rounded-corners','attach','70828RuMOIP','489386irCupf','detach','fire','delegate','isActive','_mutationObserver','focus','add','content','height','1275186tAZDxD','clear','mainView','listenTo','ck-annotation-wrapper--active','arrowdown','setTemplate','arrowup','createCollection','keystrokes','isDirty','bindTemplate','element','length','targetRect','138125EtHlaA','first','render','presentation','2710323LQnGXQ','33xAEKnW','div'];_0x7f56=function(){return _0xf65891;};return _0x7f56();}export default class T extends _0x453e45{constructor(_0x4d2f25,_0x521c30){const _0xdf0f87=_0x5bf9;super(_0x4d2f25),this['id']=_0x4d64e7(),this[_0xdf0f87(0x139)]=new _0x5b11fc(),this[_0xdf0f87(0x157)]=new _0x5cc49f(),this[_0xdf0f87(0x157)][_0xdf0f87(0x13c)](_0xdf0f87(0x13e),(_0x530f60,_0x2d6763)=>this[_0xdf0f87(0x146)](_0xdf0f87(0x13e),_0x2d6763)),this[_0xdf0f87(0x13c)](_0xdf0f87(0x15c),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0xdf0f87(0x13c)](_0xdf0f87(0x14d),0x0),this[_0xdf0f87(0x13c)](_0xdf0f87(0x148),!0x1),this[_0xdf0f87(0x13c)](_0xdf0f87(0x158),!0x1),this[_0xdf0f87(0x13c)](_0xdf0f87(0x15b),0x0),this[_0xdf0f87(0x13c)](_0xdf0f87(0x137),''),this[_0xdf0f87(0x149)]=_0x276df4(()=>this[_0xdf0f87(0x13a)]()),this[_0xdf0f87(0x14c)]=this[_0xdf0f87(0x156)](),this[_0xdf0f87(0x14c)][_0xdf0f87(0x147)](_0xdf0f87(0x155),_0xdf0f87(0x153))['to'](this),this[_0xdf0f87(0x14c)][_0xdf0f87(0x14b)](_0x521c30),this[_0xdf0f87(0x150)]=_0x521c30;const _0x21141f=this[_0xdf0f87(0x159)];this[_0xdf0f87(0x154)]({'tag':_0xdf0f87(0x135),'attributes':{'class':['ck',_0xdf0f87(0x138),_0xdf0f87(0x141),_0x21141f['if'](_0xdf0f87(0x148),_0xdf0f87(0x152))],'role':_0xdf0f87(0x132)},'children':this[_0xdf0f87(0x14c)]});}[_0xa30d7(0x131)](){const _0x39577f=_0xa30d7;super[_0x39577f(0x131)](),this[_0x39577f(0x139)][_0x39577f(0x14b)](this[_0x39577f(0x15a)]),this[_0x39577f(0x157)][_0x39577f(0x151)](this[_0x39577f(0x15a)]),this[_0x39577f(0x149)][_0x39577f(0x142)](this[_0x39577f(0x15a)]);}[_0xa30d7(0x140)](){const _0x571f9=_0xa30d7;this[_0x571f9(0x14c)][_0x571f9(0x14f)](),this[_0x571f9(0x157)][_0x571f9(0x140)](),this[_0x571f9(0x139)][_0x571f9(0x140)](),this[_0x571f9(0x149)][_0x571f9(0x145)](),super[_0x571f9(0x140)]();}[_0xa30d7(0x14a)](){const _0x4dea6f=_0xa30d7;this[_0x4dea6f(0x14c)][_0x4dea6f(0x130)]&&this[_0x4dea6f(0x14c)][_0x4dea6f(0x130)][_0x4dea6f(0x14a)]();}[_0xa30d7(0x13a)](){const _0x4a6bc1=_0xa30d7,_0x2fd116=this[_0x4a6bc1(0x15a)][_0x4a6bc1(0x136)];_0x2fd116&&(this[_0x4a6bc1(0x14d)]=_0x2fd116);}}