UNPKG

@ckeditor/ckeditor5-comments

Version:

Collaborative comments feature for CKEditor 5.

24 lines 4.5 kB
/* * Copyright (c) 2003-2026, 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 _0x2610fc=_0x3473;(function(_0x89bf60,_0x47892c){const _0x1c2c2d=_0x3473,_0x457467=_0x89bf60();while(!![]){try{const _0x2463b8=parseInt(_0x1c2c2d(0x1aa))/0x1+-parseInt(_0x1c2c2d(0x1c0))/0x2+-parseInt(_0x1c2c2d(0x1c2))/0x3*(-parseInt(_0x1c2c2d(0x1a3))/0x4)+-parseInt(_0x1c2c2d(0x1b1))/0x5*(parseInt(_0x1c2c2d(0x1bf))/0x6)+parseInt(_0x1c2c2d(0x1c8))/0x7*(-parseInt(_0x1c2c2d(0x1a7))/0x8)+-parseInt(_0x1c2c2d(0x1ca))/0x9*(-parseInt(_0x1c2c2d(0x1af))/0xa)+parseInt(_0x1c2c2d(0x1a9))/0xb;if(_0x2463b8===_0x47892c)break;else _0x457467['push'](_0x457467['shift']());}catch(_0x5eeeb4){_0x457467['push'](_0x457467['shift']());}}}(_0x2e68,0x2fa74));import{View as _0x13976b}from'ckeditor5/src/ui.js';import{toUnit as _0x17d0f4}from'ckeditor5/src/utils.js';function _0x3473(_0x5eef44,_0x25acfb){const _0x2e683d=_0x2e68();return _0x3473=function(_0x3473f6,_0x23b890){_0x3473f6=_0x3473f6-0x1a3;let _0x5956b9=_0x2e683d[_0x3473f6];return _0x5956b9;},_0x3473(_0x5eef44,_0x25acfb);}import{createMutationObserver as _0x4dcaf0}from'../../utils/createmutationobserver.js';const Ot=/* #__PURE__ -- @preserve */ _0x17d0f4('px');export class AnnotationsSidebarItemView extends _0x13976b{[_0x2610fc(0x1be)];[_0x2610fc(0x1c7)];[_0x2610fc(0x1a4)];constructor(_0x2cf517){const _0x5ada77=_0x2610fc;super(_0x2cf517),this[_0x5ada77(0x1c9)](_0x5ada77(0x1b2),0x0),this[_0x5ada77(0x1c9)](_0x5ada77(0x1bd),0x0),this[_0x5ada77(0x1ae)](_0x5ada77(0x1b4))['to'](this,_0x5ada77(0x1b2),this,_0x5ada77(0x1bd),(_0x4696f7,_0x509bb5)=>_0x4696f7+_0x509bb5),this[_0x5ada77(0x1c9)](_0x5ada77(0x1a8),!0x1),this[_0x5ada77(0x1a4)]=_0x4dcaf0(()=>this[_0x5ada77(0x1c3)]()),this[_0x5ada77(0x1c7)]=null,this[_0x5ada77(0x1be)]=this[_0x5ada77(0x1b5)](),this[_0x5ada77(0x1be)][_0x5ada77(0x1b8)](_0x5ada77(0x1ac),_0x5ada77(0x1b7))['to'](this);const _0x5a0e9a=this[_0x5ada77(0x1b3)];this[_0x5ada77(0x1bb)]({'tag':_0x5ada77(0x1c5),'attributes':{'class':[_0x5ada77(0x1a5),_0x5a0e9a['to'](_0x5ada77(0x1a8),_0x33c2ee=>_0x33c2ee?_0x5ada77(0x1bc):'')],'style':{'top':_0x5a0e9a['to'](_0x5ada77(0x1b2),_0x5da56e=>Ot(_0x5da56e))},'role':_0x5ada77(0x1b0)},'children':this[_0x5ada77(0x1be)]});}[_0x2610fc(0x1b9)](){const _0x153432=_0x2610fc;super[_0x153432(0x1b9)](),this[_0x153432(0x1a4)][_0x153432(0x1c4)](this[_0x153432(0x1ad)]);}[_0x2610fc(0x1c6)](){const _0x3c2526=_0x2610fc;this[_0x3c2526(0x1be)][_0x3c2526(0x1ba)]&&this[_0x3c2526(0x1be)][_0x3c2526(0x1ba)][_0x3c2526(0x1c6)]();}[_0x2610fc(0x1c3)](){const _0x1702b2=_0x2610fc,_0x3e23a4=this[_0x1702b2(0x1ad)][_0x1702b2(0x1a6)];_0x3e23a4&&(this[_0x1702b2(0x1bd)]=_0x3e23a4);}[_0x2610fc(0x1b6)](){const _0x150482=_0x2610fc;this[_0x150482(0x1be)][_0x150482(0x1ab)](),this[_0x150482(0x1a4)][_0x150482(0x1c1)](),super[_0x150482(0x1b6)]();}}function _0x2e68(){const _0x43d34a=['4LxDRTV','_mutationObserver','ck-sidebar-item','clientHeight','856cdOmMN','isAnimationDisabled','968099xnzItk','235974RpjsvS','clear','arrowup','element','bind','440bhgXhM','presentation','20sMxpDw','top','bindTemplate','bottom','createCollection','destroy','arrowdown','delegate','render','first','setTemplate','ck-sidebar-item--no-animation','height','content','291426BcCweM','83508IzRZCd','detach','820143yrSHwb','updateHeight','attach','div','focus','_targetTop','14182adBrhf','set','10359ToDYtT'];_0x2e68=function(){return _0x43d34a;};return _0x2e68();}