@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
23 lines • 3.65 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 _0x11a646=_0x472f;(function(_0xfb5a7b,_0x5b338d){const _0x240582=_0x472f,_0x2dce20=_0xfb5a7b();while(!![]){try{const _0x4ecd2f=parseInt(_0x240582(0x155))/0x1*(-parseInt(_0x240582(0x13e))/0x2)+parseInt(_0x240582(0x13d))/0x3+parseInt(_0x240582(0x13c))/0x4+-parseInt(_0x240582(0x147))/0x5*(-parseInt(_0x240582(0x141))/0x6)+parseInt(_0x240582(0x156))/0x7*(-parseInt(_0x240582(0x142))/0x8)+parseInt(_0x240582(0x14e))/0x9+-parseInt(_0x240582(0x149))/0xa;if(_0x4ecd2f===_0x5b338d)break;else _0x2dce20['push'](_0x2dce20['shift']());}catch(_0x153482){_0x2dce20['push'](_0x2dce20['shift']());}}}(_0x2480,0x4efce));import{ButtonView as _0x52e020,View as _0x554369}from'ckeditor5/src/ui.js';import{IconAddComment as _0x45f2fd}from'ckeditor5/src/icons.js';function _0x472f(_0x11d511,_0xe6bea){const _0x2480ef=_0x2480();return _0x472f=function(_0x472f7f,_0x21a951){_0x472f7f=_0x472f7f-0x13b;let _0x5acb6b=_0x2480ef[_0x472f7f];return _0x5acb6b;},_0x472f(_0x11d511,_0xe6bea);}function _0x2480(){const _0x57ab90=['...','children','isDirty','annotationType','5282514OEXKLY','icon','ck-annotation-counter__badge--','bind','counterView','ck-annotation-counter__badge','ck-annotation-counter__badge--edit-mode','81674YdUJQb','1722gQMHmH','span','ck-annotation-counter','number','585664RSLTaW','796029daxBRr','6onjqDc','bindTemplate','_badge','1907958qiayFC','864FthImV','extendTemplate','setTemplate','add','toString','5hzdssT','set','7215740DLUuTX'];_0x2480=function(){return _0x57ab90;};return _0x2480();}export class AnnotationCounterButtonView extends _0x52e020{[_0x11a646(0x152)];constructor(_0x1e606e){const _0x372484=_0x11a646;super(_0x1e606e);const _0x446bcb=this[_0x372484(0x13f)];this[_0x372484(0x148)](_0x372484(0x14c),!0x1),this[_0x372484(0x148)](_0x372484(0x13b),0x0),this[_0x372484(0x151)](_0x372484(0x140))['to'](this,_0x372484(0x14c),this,_0x372484(0x13b),(_0x21dade,_0x5b6095)=>_0x21dade?_0x372484(0x14a):_0x5b6095[_0x372484(0x146)]()),this[_0x372484(0x148)](_0x372484(0x14d),''),this[_0x372484(0x14f)]=_0x45f2fd,this[_0x372484(0x143)]({'attributes':{'class':[_0x372484(0x158)]}}),this[_0x372484(0x152)]=new _0x554369(),this[_0x372484(0x152)][_0x372484(0x144)]({'tag':_0x372484(0x157),'attributes':{'class':[_0x372484(0x153),_0x446bcb['to'](_0x372484(0x14d),_0x4ed403=>_0x372484(0x150)+_0x4ed403),_0x446bcb['if'](_0x372484(0x14c),_0x372484(0x154))]},'children':[{'text':_0x446bcb['to'](_0x372484(0x140))}]}),this[_0x372484(0x14b)][_0x372484(0x145)](this[_0x372484(0x152)]);}}