UNPKG

@ckeditor/ckeditor5-comments

Version:

Collaborative comments feature for CKEditor 5.

24 lines 4.5 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 _0x1ec8b8=_0x524e;(function(_0xe0c873,_0x2692df){const _0x49b1d8=_0x524e,_0x308fd7=_0xe0c873();while(!![]){try{const _0x370752=-parseInt(_0x49b1d8(0x207))/0x1*(-parseInt(_0x49b1d8(0x200))/0x2)+parseInt(_0x49b1d8(0x1e6))/0x3*(parseInt(_0x49b1d8(0x1fd))/0x4)+parseInt(_0x49b1d8(0x204))/0x5*(parseInt(_0x49b1d8(0x1e5))/0x6)+parseInt(_0x49b1d8(0x1f8))/0x7+parseInt(_0x49b1d8(0x206))/0x8*(-parseInt(_0x49b1d8(0x1e8))/0x9)+-parseInt(_0x49b1d8(0x1e2))/0xa+-parseInt(_0x49b1d8(0x1e4))/0xb;if(_0x370752===_0x2692df)break;else _0x308fd7['push'](_0x308fd7['shift']());}catch(_0x3ae8ba){_0x308fd7['push'](_0x308fd7['shift']());}}}(_0x2c29,0x4f76d));import{View as _0x3ce5d7}from'ckeditor5/src/ui.js';import{toUnit as _0x4675d4}from'ckeditor5/src/utils.js';function _0x524e(_0x33eccb,_0x40be54){const _0x2c2938=_0x2c29();return _0x524e=function(_0x524ebc,_0x510d69){_0x524ebc=_0x524ebc-0x1e2;let _0x5434a9=_0x2c2938[_0x524ebc];return _0x5434a9;},_0x524e(_0x33eccb,_0x40be54);}import{createMutationObserver as _0x2e1663}from'../../utils/createmutationobserver.js';function _0x2c29(){const _0x15676b=['bind','45gWadYT','content','setTemplate','createCollection','div','arrowup','updateHeight','bindTemplate','clientHeight','delegate','first','arrowdown','ck-sidebar-item','render','destroy','ck-sidebar-item--no-animation','1388436Jmnidv','height','clear','top','attach','31412ZLpbZa','_mutationObserver','bottom','4TenifD','isAnimationDisabled','detach','set','84795HztuCl','element','810184xgTfLE','286499hcDXrE','presentation','_targetTop','5034630lEDLLP','focus','1901625bcYcvr','144IQkTtV','126GCoWvx'];_0x2c29=function(){return _0x15676b;};return _0x2c29();}const Ot=/* #__PURE__ -- @preserve */ _0x4675d4('px');export class AnnotationsSidebarItemView extends _0x3ce5d7{[_0x1ec8b8(0x1e9)];[_0x1ec8b8(0x209)];[_0x1ec8b8(0x1fe)];constructor(_0x1d3f2c){const _0x49ae81=_0x1ec8b8;super(_0x1d3f2c),this[_0x49ae81(0x203)](_0x49ae81(0x1fb),0x0),this[_0x49ae81(0x203)](_0x49ae81(0x1f9),0x0),this[_0x49ae81(0x1e7)](_0x49ae81(0x1ff))['to'](this,_0x49ae81(0x1fb),this,_0x49ae81(0x1f9),(_0x4d648e,_0x138ea6)=>_0x4d648e+_0x138ea6),this[_0x49ae81(0x203)](_0x49ae81(0x201),!0x1),this[_0x49ae81(0x1fe)]=_0x2e1663(()=>this[_0x49ae81(0x1ee)]()),this[_0x49ae81(0x209)]=null,this[_0x49ae81(0x1e9)]=this[_0x49ae81(0x1eb)](),this[_0x49ae81(0x1e9)][_0x49ae81(0x1f1)](_0x49ae81(0x1ed),_0x49ae81(0x1f3))['to'](this);const _0x26bcbf=this[_0x49ae81(0x1ef)];this[_0x49ae81(0x1ea)]({'tag':_0x49ae81(0x1ec),'attributes':{'class':[_0x49ae81(0x1f4),_0x26bcbf['to'](_0x49ae81(0x201),_0x14fa64=>_0x14fa64?_0x49ae81(0x1f7):'')],'style':{'top':_0x26bcbf['to'](_0x49ae81(0x1fb),_0x55d5ae=>Ot(_0x55d5ae))},'role':_0x49ae81(0x208)},'children':this[_0x49ae81(0x1e9)]});}[_0x1ec8b8(0x1f5)](){const _0x19a171=_0x1ec8b8;super[_0x19a171(0x1f5)](),this[_0x19a171(0x1fe)][_0x19a171(0x1fc)](this[_0x19a171(0x205)]);}[_0x1ec8b8(0x1e3)](){const _0x1999d8=_0x1ec8b8;this[_0x1999d8(0x1e9)][_0x1999d8(0x1f2)]&&this[_0x1999d8(0x1e9)][_0x1999d8(0x1f2)][_0x1999d8(0x1e3)]();}[_0x1ec8b8(0x1ee)](){const _0x2c554a=_0x1ec8b8,_0x1194e0=this[_0x2c554a(0x205)][_0x2c554a(0x1f0)];_0x1194e0&&(this[_0x2c554a(0x1f9)]=_0x1194e0);}[_0x1ec8b8(0x1f6)](){const _0x383352=_0x1ec8b8;this[_0x383352(0x1e9)][_0x383352(0x1fa)](),this[_0x383352(0x1fe)][_0x383352(0x202)](),super[_0x383352(0x1f6)]();}}