@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
23 lines • 4.41 kB
JavaScript
/*
* 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 _0x509eb5=_0x46fb;function _0x46fb(_0x49c4e1,_0x40b33c){const _0x359646=_0x3596();return _0x46fb=function(_0x46fb3f,_0x49370c){_0x46fb3f=_0x46fb3f-0x15f;let _0x420b12=_0x359646[_0x46fb3f];return _0x420b12;},_0x46fb(_0x49c4e1,_0x40b33c);}(function(_0x57ee71,_0x5a29b4){const _0x61c711=_0x46fb,_0x43f686=_0x57ee71();while(!![]){try{const _0x2f92b9=-parseInt(_0x61c711(0x168))/0x1+parseInt(_0x61c711(0x16d))/0x2+parseInt(_0x61c711(0x171))/0x3*(-parseInt(_0x61c711(0x162))/0x4)+-parseInt(_0x61c711(0x17d))/0x5*(parseInt(_0x61c711(0x16b))/0x6)+-parseInt(_0x61c711(0x161))/0x7*(parseInt(_0x61c711(0x166))/0x8)+parseInt(_0x61c711(0x17e))/0x9*(-parseInt(_0x61c711(0x16f))/0xa)+-parseInt(_0x61c711(0x163))/0xb*(-parseInt(_0x61c711(0x175))/0xc);if(_0x2f92b9===_0x5a29b4)break;else _0x43f686['push'](_0x43f686['shift']());}catch(_0x4f9e76){_0x43f686['push'](_0x43f686['shift']());}}}(_0x3596,0x3db52));function _0x3596(){const _0x293ac4=['30lAdLfb','912123dTGvIy','setTemplate','bottom','height','content','detach','clientHeight','createCollection','element','focus','arrowup','attach','21UrtpbD','1004dvjwKI','19547DcUbnG','bindTemplate','updateHeight','971896rbMiyz','div','104679jgLBdF','ck-sidebar-item','render','290694zzqxfc','first','423218exiqRU','delegate','40ECyjuY','presentation','4038nnwnCm','_targetTop','isAnimationDisabled','ck-sidebar-item--no-animation','10428DMyhMw','top','_mutationObserver','set','clear','bind','destroy','arrowdown'];_0x3596=function(){return _0x293ac4;};return _0x3596();}import{View as _0x1ecaeb}from'ckeditor5/src/ui.js';import{toUnit as _0x568d62}from'ckeditor5/src/utils.js';import _0x2ee23c from'../../utils/createmutationobserver.js';const qt=_0x568d62('px');export default class H extends _0x1ecaeb{constructor(_0x5d8f57){const _0x270103=_0x46fb;super(_0x5d8f57),this[_0x270103(0x178)](_0x270103(0x176),0x0),this[_0x270103(0x178)](_0x270103(0x181),0x0),this[_0x270103(0x17a)](_0x270103(0x180))['to'](this,_0x270103(0x176),this,_0x270103(0x181),(_0x733f4a,_0x1a6596)=>_0x733f4a+_0x1a6596),this[_0x270103(0x178)](_0x270103(0x173),!0x1),this[_0x270103(0x177)]=_0x2ee23c(()=>this[_0x270103(0x165)]()),this[_0x270103(0x172)]=null,this[_0x270103(0x182)]=this[_0x270103(0x185)](),this[_0x270103(0x182)][_0x270103(0x16e)](_0x270103(0x15f),_0x270103(0x17c))['to'](this);const _0x172339=this[_0x270103(0x164)];this[_0x270103(0x17f)]({'tag':_0x270103(0x167),'attributes':{'class':[_0x270103(0x169),_0x172339['to'](_0x270103(0x173),_0x28dbbc=>_0x28dbbc?_0x270103(0x174):'')],'style':{'top':_0x172339['to'](_0x270103(0x176),_0x1d16d=>qt(_0x1d16d))},'role':_0x270103(0x170)},'children':this[_0x270103(0x182)]});}[_0x509eb5(0x16a)](){const _0x594237=_0x509eb5;super[_0x594237(0x16a)](),this[_0x594237(0x177)][_0x594237(0x160)](this[_0x594237(0x186)]);}[_0x509eb5(0x187)](){const _0x157c93=_0x509eb5;this[_0x157c93(0x182)][_0x157c93(0x16c)]&&this[_0x157c93(0x182)][_0x157c93(0x16c)][_0x157c93(0x187)]();}[_0x509eb5(0x165)](){const _0x2c5192=_0x509eb5,_0x136abd=this[_0x2c5192(0x186)][_0x2c5192(0x184)];_0x136abd&&(this[_0x2c5192(0x181)]=_0x136abd);}[_0x509eb5(0x17b)](){const _0x9d6d60=_0x509eb5;this[_0x9d6d60(0x182)][_0x9d6d60(0x179)](),this[_0x9d6d60(0x177)][_0x9d6d60(0x183)](),super[_0x9d6d60(0x17b)]();}}