UNPKG

@ckeditor/ckeditor5-comments

Version:

Collaborative comments feature for CKEditor 5.

23 lines 4.38 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 _0x56b02a=_0x1e9a;function _0x1e9a(_0x46b459,_0x5c0d82){const _0x2a1727=_0x2a17();return _0x1e9a=function(_0x1e9ad2,_0x58b617){_0x1e9ad2=_0x1e9ad2-0x1d5;let _0xd883c6=_0x2a1727[_0x1e9ad2];return _0xd883c6;},_0x1e9a(_0x46b459,_0x5c0d82);}function _0x2a17(){const _0x18561c=['9172670OZSkff','bottom','height','2224145rgYrlr','635016nbdAQR','first','bind','ck-sidebar-item--no-animation','8200LfkxPh','attach','detach','content','top','destroy','bindTemplate','set','render','70DJwopi','element','ck-sidebar-item','isAnimationDisabled','clientHeight','clear','19596BdXPpP','840232vTrAbW','189981GAOcHc','_mutationObserver','div','createCollection','arrowdown','presentation','9YopzKW','arrowup','470ofKfOi','setTemplate','_targetTop','delegate','focus','updateHeight'];_0x2a17=function(){return _0x18561c;};return _0x2a17();}(function(_0x88ba97,_0x51e6cd){const _0x2bee9f=_0x1e9a,_0xeac00b=_0x88ba97();while(!![]){try{const _0x517868=-parseInt(_0x2bee9f(0x1d7))/0x1+parseInt(_0x2bee9f(0x1f6))/0x2*(-parseInt(_0x2bee9f(0x1d5))/0x3)+-parseInt(_0x2bee9f(0x1ed))/0x4*(-parseInt(_0x2bee9f(0x1df))/0x5)+-parseInt(_0x2bee9f(0x1e9))/0x6+-parseInt(_0x2bee9f(0x1e8))/0x7+-parseInt(_0x2bee9f(0x1d6))/0x8+parseInt(_0x2bee9f(0x1dd))/0x9*(parseInt(_0x2bee9f(0x1e5))/0xa);if(_0x517868===_0x51e6cd)break;else _0xeac00b['push'](_0xeac00b['shift']());}catch(_0x20b9fe){_0xeac00b['push'](_0xeac00b['shift']());}}}(_0x2a17,0x27bce));import{View as _0x19a91d}from'ckeditor5/src/ui.js';import{toUnit as _0x4b7a52}from'ckeditor5/src/utils.js';import _0x2f8d86 from'../../utils/createmutationobserver.js';const Ht=_0x4b7a52('px');export default class H extends _0x19a91d{[_0x56b02a(0x1f0)];[_0x56b02a(0x1e1)];[_0x56b02a(0x1d8)];constructor(_0x4811b8){const _0x1a21ab=_0x56b02a;super(_0x4811b8),this[_0x1a21ab(0x1f4)](_0x1a21ab(0x1f1),0x0),this[_0x1a21ab(0x1f4)](_0x1a21ab(0x1e7),0x0),this[_0x1a21ab(0x1eb)](_0x1a21ab(0x1e6))['to'](this,_0x1a21ab(0x1f1),this,_0x1a21ab(0x1e7),(_0xfd0f09,_0x9cea70)=>_0xfd0f09+_0x9cea70),this[_0x1a21ab(0x1f4)](_0x1a21ab(0x1f9),!0x1),this[_0x1a21ab(0x1d8)]=_0x2f8d86(()=>this[_0x1a21ab(0x1e4)]()),this[_0x1a21ab(0x1e1)]=null,this[_0x1a21ab(0x1f0)]=this[_0x1a21ab(0x1da)](),this[_0x1a21ab(0x1f0)][_0x1a21ab(0x1e2)](_0x1a21ab(0x1de),_0x1a21ab(0x1db))['to'](this);const _0x4798ff=this[_0x1a21ab(0x1f3)];this[_0x1a21ab(0x1e0)]({'tag':_0x1a21ab(0x1d9),'attributes':{'class':[_0x1a21ab(0x1f8),_0x4798ff['to'](_0x1a21ab(0x1f9),_0xf8cad1=>_0xf8cad1?_0x1a21ab(0x1ec):'')],'style':{'top':_0x4798ff['to'](_0x1a21ab(0x1f1),_0x3d7095=>Ht(_0x3d7095))},'role':_0x1a21ab(0x1dc)},'children':this[_0x1a21ab(0x1f0)]});}[_0x56b02a(0x1f5)](){const _0x1b02b7=_0x56b02a;super[_0x1b02b7(0x1f5)](),this[_0x1b02b7(0x1d8)][_0x1b02b7(0x1ee)](this[_0x1b02b7(0x1f7)]);}[_0x56b02a(0x1e3)](){const _0x487f3c=_0x56b02a;this[_0x487f3c(0x1f0)][_0x487f3c(0x1ea)]&&this[_0x487f3c(0x1f0)][_0x487f3c(0x1ea)][_0x487f3c(0x1e3)]();}[_0x56b02a(0x1e4)](){const _0x486fbf=_0x56b02a,_0x535396=this[_0x486fbf(0x1f7)][_0x486fbf(0x1fa)];_0x535396&&(this[_0x486fbf(0x1e7)]=_0x535396);}[_0x56b02a(0x1f2)](){const _0xbef22b=_0x56b02a;this[_0xbef22b(0x1f0)][_0xbef22b(0x1fb)](),this[_0xbef22b(0x1d8)][_0xbef22b(0x1ef)](),super[_0xbef22b(0x1f2)]();}}