UNPKG

@ckeditor/ckeditor5-comments

Version:

Collaborative comments feature for CKEditor 5.

23 lines 3.55 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. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ (function(_0x2c565c,_0x4671c6){const _0x2989cb=_0x427d,_0x442bb7=_0x2c565c();while(!![]){try{const _0x5b5122=parseInt(_0x2989cb(0x1f2))/0x1+-parseInt(_0x2989cb(0x1e8))/0x2*(parseInt(_0x2989cb(0x200))/0x3)+-parseInt(_0x2989cb(0x1f1))/0x4+-parseInt(_0x2989cb(0x1fb))/0x5+-parseInt(_0x2989cb(0x1ed))/0x6*(parseInt(_0x2989cb(0x1ee))/0x7)+parseInt(_0x2989cb(0x1fe))/0x8+parseInt(_0x2989cb(0x1f0))/0x9;if(_0x5b5122===_0x4671c6)break;else _0x442bb7['push'](_0x442bb7['shift']());}catch(_0x151591){_0x442bb7['push'](_0x442bb7['shift']());}}}(_0x47fe,0xca95b));function _0x427d(_0xbea174,_0x5cbe91){const _0x47feb3=_0x47fe();return _0x427d=function(_0x427dd5,_0x2bf18f){_0x427dd5=_0x427dd5-0x1e8;let _0x327dc7=_0x47feb3[_0x427dd5];return _0x327dc7;},_0x427d(_0xbea174,_0x5cbe91);}import{ButtonView as _0x4e0a16,View as _0x385a97}from'ckeditor5/src/ui.js';import _0x3c5232 from'../../../theme/icons/add-comment.svg';function _0x47fe(){const _0x1ab213=['3884120MtTjBE','244086yuHKHh','children','setTemplate','ck-annotation-counter__badge--','ck-annotation-counter','toString','extendTemplate','bind','isDirty','4791265tJdFTY','span','ck-annotation-counter__badge','6620600MFZuWj','number','1441461EyhcAP','add','annotationType','...','bindTemplate','2CLogkI','counterView','icon','set','ck-annotation-counter__badge--edit-mode','5366862NjfSAI','7szMQsf','_badge','27561357ppAZAK'];_0x47fe=function(){return _0x1ab213;};return _0x47fe();}export default class D extends _0x4e0a16{constructor(_0x79c2a5){const _0x5a0c00=_0x427d;super(_0x79c2a5);const _0x3d2365=this[_0x5a0c00(0x204)];this[_0x5a0c00(0x1eb)](_0x5a0c00(0x1fa),!0x1),this[_0x5a0c00(0x1eb)](_0x5a0c00(0x1ff),0x0),this[_0x5a0c00(0x1f9)](_0x5a0c00(0x1ef))['to'](this,_0x5a0c00(0x1fa),this,_0x5a0c00(0x1ff),(_0x4d7b42,_0x41f005)=>_0x4d7b42?_0x5a0c00(0x203):_0x41f005[_0x5a0c00(0x1f7)]()),this[_0x5a0c00(0x1eb)](_0x5a0c00(0x202),''),this[_0x5a0c00(0x1ea)]=_0x3c5232,this[_0x5a0c00(0x1f8)]({'attributes':{'class':[_0x5a0c00(0x1f6)]}}),this[_0x5a0c00(0x1e9)]=new _0x385a97(),this[_0x5a0c00(0x1e9)][_0x5a0c00(0x1f4)]({'tag':_0x5a0c00(0x1fc),'attributes':{'class':[_0x5a0c00(0x1fd),_0x3d2365['to'](_0x5a0c00(0x202),_0x4dfbbe=>_0x5a0c00(0x1f5)+_0x4dfbbe),_0x3d2365['if'](_0x5a0c00(0x1fa),_0x5a0c00(0x1ec))]},'children':[{'text':_0x3d2365['to'](_0x5a0c00(0x1ef))}]}),this[_0x5a0c00(0x1f3)][_0x5a0c00(0x201)](this[_0x5a0c00(0x1e9)]);}}