@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
23 lines • 3.66 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 _0x4865a7=_0x5542;(function(_0x519430,_0x4f85dd){const _0x1f42a0=_0x5542,_0x34d04e=_0x519430();while(!![]){try{const _0x2cc4dc=parseInt(_0x1f42a0(0x129))/0x1+-parseInt(_0x1f42a0(0x145))/0x2+parseInt(_0x1f42a0(0x13f))/0x3*(parseInt(_0x1f42a0(0x143))/0x4)+parseInt(_0x1f42a0(0x133))/0x5+parseInt(_0x1f42a0(0x13c))/0x6*(-parseInt(_0x1f42a0(0x13e))/0x7)+-parseInt(_0x1f42a0(0x12c))/0x8*(-parseInt(_0x1f42a0(0x135))/0x9)+parseInt(_0x1f42a0(0x12a))/0xa;if(_0x2cc4dc===_0x4f85dd)break;else _0x34d04e['push'](_0x34d04e['shift']());}catch(_0x19ceff){_0x34d04e['push'](_0x34d04e['shift']());}}}(_0x88f9,0x6fa9b));import{ButtonView as _0x15ca4a,View as _0x5ae4c2}from'ckeditor5/src/ui.js';function _0x88f9(){const _0x3a455a=['ck-annotation-counter__badge--edit-mode','icon','4245220YgIcms','extendTemplate','3464523xzZiLD','ck-annotation-counter__badge--','children','...','counterView','add','ck-annotation-counter','1762668yesPBk','bind','7ykPKTV','3kiejUk','setTemplate','span','number','161924CSYuoo','toString','1418764ZkTcII','bindTemplate','31211euaMex','1548480pmjFio','set','8RUDGOS','isDirty','_badge','ck-annotation-counter__badge','annotationType'];_0x88f9=function(){return _0x3a455a;};return _0x88f9();}import{IconAddComment as _0x55e244}from'ckeditor5/src/icons.js';function _0x5542(_0x3c25cc,_0x5c2b0a){const _0x88f902=_0x88f9();return _0x5542=function(_0x55424a,_0xa796a2){_0x55424a=_0x55424a-0x128;let _0x3e1330=_0x88f902[_0x55424a];return _0x3e1330;},_0x5542(_0x3c25cc,_0x5c2b0a);}export class AnnotationCounterButtonView extends _0x15ca4a{[_0x4865a7(0x139)];constructor(_0x3c0134){const _0x3dfde2=_0x4865a7;super(_0x3c0134);const _0x5d2d5e=this[_0x3dfde2(0x128)];this[_0x3dfde2(0x12b)](_0x3dfde2(0x12d),!0x1),this[_0x3dfde2(0x12b)](_0x3dfde2(0x142),0x0),this[_0x3dfde2(0x13d)](_0x3dfde2(0x12e))['to'](this,_0x3dfde2(0x12d),this,_0x3dfde2(0x142),(_0x3546d3,_0x2739d4)=>_0x3546d3?_0x3dfde2(0x138):_0x2739d4[_0x3dfde2(0x144)]()),this[_0x3dfde2(0x12b)](_0x3dfde2(0x130),''),this[_0x3dfde2(0x132)]=_0x55e244,this[_0x3dfde2(0x134)]({'attributes':{'class':[_0x3dfde2(0x13b)]}}),this[_0x3dfde2(0x139)]=new _0x5ae4c2(),this[_0x3dfde2(0x139)][_0x3dfde2(0x140)]({'tag':_0x3dfde2(0x141),'attributes':{'class':[_0x3dfde2(0x12f),_0x5d2d5e['to'](_0x3dfde2(0x130),_0x537a21=>_0x3dfde2(0x136)+_0x537a21),_0x5d2d5e['if'](_0x3dfde2(0x12d),_0x3dfde2(0x131))]},'children':[{'text':_0x5d2d5e['to'](_0x3dfde2(0x12e))}]}),this[_0x3dfde2(0x137)][_0x3dfde2(0x13a)](this[_0x3dfde2(0x139)]);}}