UNPKG

@ckeditor/ckeditor5-comments

Version:

Collaborative comments feature for CKEditor 5.

24 lines 4.45 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 _0x4e9496=_0x318d;(function(_0x555562,_0x1a23c7){const _0x4bc9f1=_0x318d,_0xc40a14=_0x555562();while(!![]){try{const _0x30d8f0=-parseInt(_0x4bc9f1(0x17e))/0x1*(-parseInt(_0x4bc9f1(0x189))/0x2)+-parseInt(_0x4bc9f1(0x18a))/0x3+parseInt(_0x4bc9f1(0x172))/0x4+parseInt(_0x4bc9f1(0x17a))/0x5*(parseInt(_0x4bc9f1(0x171))/0x6)+parseInt(_0x4bc9f1(0x18c))/0x7*(-parseInt(_0x4bc9f1(0x170))/0x8)+parseInt(_0x4bc9f1(0x17d))/0x9+parseInt(_0x4bc9f1(0x175))/0xa;if(_0x30d8f0===_0x1a23c7)break;else _0xc40a14['push'](_0xc40a14['shift']());}catch(_0x303e62){_0xc40a14['push'](_0xc40a14['shift']());}}}(_0x2600,0xc7ab5));import{View as _0x44a412}from'ckeditor5/src/ui.js';function _0x318d(_0x2cdd04,_0x4ea365){const _0x260021=_0x2600();return _0x318d=function(_0x318d72,_0x1494c5){_0x318d72=_0x318d72-0x16f;let _0x60c83e=_0x260021[_0x318d72];return _0x60c83e;},_0x318d(_0x2cdd04,_0x4ea365);}import{toUnit as _0xaf9479}from'ckeditor5/src/utils.js';import{createMutationObserver as _0x49134b}from'../../utils/createmutationobserver.js';const Ot=/* #__PURE__ -- @preserve */ _0xaf9479('px');export class AnnotationsSidebarItemView extends _0x44a412{[_0x4e9496(0x18d)];[_0x4e9496(0x185)];[_0x4e9496(0x195)];constructor(_0x39fd73){const _0x4616d6=_0x4e9496;super(_0x39fd73),this[_0x4616d6(0x190)](_0x4616d6(0x183),0x0),this[_0x4616d6(0x190)](_0x4616d6(0x179),0x0),this[_0x4616d6(0x188)](_0x4616d6(0x194))['to'](this,_0x4616d6(0x183),this,_0x4616d6(0x179),(_0x26fea7,_0x549ad1)=>_0x26fea7+_0x549ad1),this[_0x4616d6(0x190)](_0x4616d6(0x173),!0x1),this[_0x4616d6(0x195)]=_0x49134b(()=>this[_0x4616d6(0x178)]()),this[_0x4616d6(0x185)]=null,this[_0x4616d6(0x18d)]=this[_0x4616d6(0x18e)](),this[_0x4616d6(0x18d)][_0x4616d6(0x16f)](_0x4616d6(0x181),_0x4616d6(0x18f))['to'](this);const _0x5d7a29=this[_0x4616d6(0x180)];this[_0x4616d6(0x177)]({'tag':_0x4616d6(0x186),'attributes':{'class':[_0x4616d6(0x18b),_0x5d7a29['to'](_0x4616d6(0x173),_0x1fbcfe=>_0x1fbcfe?_0x4616d6(0x17b):'')],'style':{'top':_0x5d7a29['to'](_0x4616d6(0x183),_0x10ddf4=>Ot(_0x10ddf4))},'role':_0x4616d6(0x176)},'children':this[_0x4616d6(0x18d)]});}[_0x4e9496(0x193)](){const _0xef98a=_0x4e9496;super[_0xef98a(0x193)](),this[_0xef98a(0x195)][_0xef98a(0x182)](this[_0xef98a(0x187)]);}[_0x4e9496(0x191)](){const _0x5505e9=_0x4e9496;this[_0x5505e9(0x18d)][_0x5505e9(0x174)]&&this[_0x5505e9(0x18d)][_0x5505e9(0x174)][_0x5505e9(0x191)]();}[_0x4e9496(0x178)](){const _0x4ea43d=_0x4e9496,_0x84766c=this[_0x4ea43d(0x187)][_0x4ea43d(0x17f)];_0x84766c&&(this[_0x4ea43d(0x179)]=_0x84766c);}[_0x4e9496(0x192)](){const _0xdd1576=_0x4e9496;this[_0xdd1576(0x18d)][_0xdd1576(0x184)](),this[_0xdd1576(0x195)][_0xdd1576(0x17c)](),super[_0xdd1576(0x192)]();}}function _0x2600(){const _0x1d926c=['first','3407260PwHyvM','presentation','setTemplate','updateHeight','height','5CBcavf','ck-sidebar-item--no-animation','detach','9536985erIqIG','35MzFejZ','clientHeight','bindTemplate','arrowup','attach','top','clear','_targetTop','div','element','bind','5412drWzts','4157862GwJzlV','ck-sidebar-item','1029WDPICp','content','createCollection','arrowdown','set','focus','destroy','render','bottom','_mutationObserver','delegate','1832VlGWlC','2759616OLCMck','1129700rMawed','isAnimationDisabled'];_0x2600=function(){return _0x1d926c;};return _0x2600();}