@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
23 lines • 7.16 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 _0x4764dd=_0x1f8b;(function(_0x2f04a6,_0x141724){const _0x527b46=_0x1f8b,_0x2e6fae=_0x2f04a6();while(!![]){try{const _0x3dd423=parseInt(_0x527b46(0xf3))/0x1*(parseInt(_0x527b46(0x114))/0x2)+-parseInt(_0x527b46(0xfe))/0x3+parseInt(_0x527b46(0xfd))/0x4*(parseInt(_0x527b46(0x103))/0x5)+-parseInt(_0x527b46(0xf0))/0x6*(-parseInt(_0x527b46(0xff))/0x7)+-parseInt(_0x527b46(0xeb))/0x8+-parseInt(_0x527b46(0x111))/0x9+parseInt(_0x527b46(0xf4))/0xa;if(_0x3dd423===_0x141724)break;else _0x2e6fae['push'](_0x2e6fae['shift']());}catch(_0x799952){_0x2e6fae['push'](_0x2e6fae['shift']());}}}(_0x3756,0x7641a));import{View as _0x2e6b1e,ButtonView as _0x1b337c,FocusCycler as _0x3a91df}from'ckeditor5/src/ui.js';import{FocusTracker as _0x530a6f,KeystrokeHandler as _0x1fe7eb}from'ckeditor5/src/utils.js';import{getTranslation as _0x83a3d3}from'../../../utils/common-translations.js';import _0x3a71b1 from'../../../../theme/icons/undo.svg';import _0x20d425 from'./commentthreadheadercontextview.js';export const MAX_CONTENT_LENGTH=0x96;function _0x1f8b(_0x5b2ed1,_0x349523){const _0x375629=_0x3756();return _0x1f8b=function(_0x1f8b5a,_0xed0dd0){_0x1f8b5a=_0x1f8b5a-0xe1;let _0xb86eb3=_0x375629[_0x1f8b5a];return _0xb86eb3;},_0x1f8b(_0x5b2ed1,_0x349523);}function _0x3756(){const _0x454e4b=['div','add','keystrokes','shift+tab','isEnabled','length','ck-context-wrapper','...','285676JjGnwG','430707hhJWZe','217KnQqud','context','_setupKeyboardNavigation','isResolved','20uypThc','lastIndexOf','execute','isVisible','createCollection','fire','focusCycler','mouseleave','isResolvable','focusFirst','_attachContextActions','ck-context--quotes','hasContext','element','7362981hZzxGL','scrollWidth','Reopen','236TbBhNf','isReadOnly','render','querySelector','bind','setTemplate','tooltip','ck-context','ck-annotation__actions','.ck-context','focusTracker','overlay','_trimContextValue','_createContextView','substring','ck-thread__header','listenTo','bindTemplate','contextView','Comment\x20was\x20made\x20on\x20an\x20element','value','tab','contextValue','.ck-context__value','label','_model','reopenCommentThread','remove','focus','focusables','classList','2290512kQJkOB','reopenButtonView','icon','_createReopenButton','locale','41766thygKQ','mouseenter','offsetWidth','3163YrFbRd','8576690gkaizy'];_0x3756=function(){return _0x454e4b;};return _0x3756();}export default class Zt extends _0x2e6b1e{constructor(_0x4141cb,_0x3b6629){const _0x5205fc=_0x1f8b;super(_0x4141cb);const _0x4fb8fc=this[_0x5205fc(0x125)];this[_0x5205fc(0xe5)]=_0x3b6629,this[_0x5205fc(0xec)]=this[_0x5205fc(0xee)](),this[_0x5205fc(0x126)]=this[_0x5205fc(0x121)](),this[_0x5205fc(0xe9)]=this[_0x5205fc(0x107)]([this[_0x5205fc(0x126)],this[_0x5205fc(0xec)]]),this[_0x5205fc(0x11e)]=new _0x530a6f(),this[_0x5205fc(0xf7)]=new _0x1fe7eb(),this[_0x5205fc(0x109)]=new _0x3a91df({'focusables':this[_0x5205fc(0xe9)],'focusTracker':this[_0x5205fc(0x11e)],'keystrokeHandler':this[_0x5205fc(0xf7)],'actions':{'focusPrevious':_0x5205fc(0xf8),'focusNext':_0x5205fc(0xe1)}}),this[_0x5205fc(0x118)](_0x5205fc(0x10f))['to'](this[_0x5205fc(0xe5)],_0x5205fc(0x100),_0x4fba72=>!!_0x4fba72),this[_0x5205fc(0x118)](_0x5205fc(0xe2))['to'](this[_0x5205fc(0xe5)],_0x5205fc(0x100),_0x3e86c6=>_0x3e86c6&&_0x3e86c6[_0x5205fc(0x128)]?this[_0x5205fc(0x120)](_0x3e86c6[_0x5205fc(0x128)]):_0x83a3d3(this[_0x5205fc(0xef)],_0x5205fc(0x127))),this[_0x5205fc(0x119)]({'tag':_0x5205fc(0xf5),'attributes':{'class':[_0x5205fc(0x123)]},'children':[{'tag':_0x5205fc(0xf5),'attributes':{'class':[_0x5205fc(0xfb)]},'children':[{'tag':_0x5205fc(0xf5),'attributes':{'class':[_0x5205fc(0x11b),_0x4fb8fc['if'](_0x5205fc(0x10f),_0x5205fc(0x10e))]},'children':[this[_0x5205fc(0x126)]]}]},{'tag':_0x5205fc(0xf5),'attributes':{'class':[_0x5205fc(0x11c)]},'children':[this[_0x5205fc(0xec)]]}]});}[_0x4764dd(0x116)](){const _0x23621f=_0x4764dd;super[_0x23621f(0x116)](),this[_0x23621f(0x10d)](),this[_0x23621f(0x101)]();}[_0x4764dd(0xe8)](){const _0x547412=_0x4764dd;this[_0x547412(0x109)][_0x547412(0x10c)]();}[_0x4764dd(0xee)](){const _0x5b70e9=_0x4764dd,_0x125dd4=new _0x1b337c(this[_0x5b70e9(0xef)]);return _0x125dd4[_0x5b70e9(0xe4)]=_0x83a3d3(this[_0x5b70e9(0xef)],_0x5b70e9(0x113)),_0x125dd4[_0x5b70e9(0x11a)]=_0x83a3d3(this[_0x5b70e9(0xef)],_0x5b70e9(0x113)),_0x125dd4[_0x5b70e9(0xed)]=_0x3a71b1,_0x125dd4[_0x5b70e9(0x118)](_0x5b70e9(0xf9))['to'](this[_0x5b70e9(0xe5)],_0x5b70e9(0x115),_0x375b36=>!_0x375b36),_0x125dd4[_0x5b70e9(0x118)](_0x5b70e9(0x106))['to'](this[_0x5b70e9(0xe5)],_0x5b70e9(0x10b),this[_0x5b70e9(0xe5)],_0x5b70e9(0x102),(_0x169d95,_0x3992e6)=>_0x169d95&&_0x3992e6),_0x125dd4['on'](_0x5b70e9(0x105),()=>{const _0x10fba9=_0x5b70e9;this[_0x10fba9(0x108)](_0x10fba9(0xe6),this[_0x10fba9(0xe5)]['id']);}),_0x125dd4;}[_0x4764dd(0x120)](_0xec73f2){const _0x4175f1=_0x4764dd;if(_0xec73f2[_0x4175f1(0xfa)]<0x96)return _0xec73f2;const _0x48ec9c=_0xec73f2[_0x4175f1(0x104)]('\x20',0x93);return _0xec73f2[_0x4175f1(0x122)](0x0,_0x48ec9c>-0x1?_0x48ec9c:0x93)+_0x4175f1(0xfc);}[_0x4764dd(0x10d)](){const _0x4addba=_0x4764dd,_0x5eac90=this[_0x4addba(0x110)][_0x4addba(0x117)](_0x4addba(0x11d)),_0x271f6c=_0x5eac90[_0x4addba(0x117)](_0x4addba(0xe3));this[_0x4addba(0x124)](_0x5eac90,_0x4addba(0xf1),()=>{const _0x345b8a=_0x4addba;_0x271f6c[_0x345b8a(0xf2)]<_0x271f6c[_0x345b8a(0x112)]&&_0x5eac90[_0x345b8a(0xea)][_0x345b8a(0xf6)](_0x345b8a(0x11f));}),this[_0x4addba(0x124)](_0x5eac90,_0x4addba(0x10a),()=>{const _0x397d29=_0x4addba;_0x5eac90[_0x397d29(0xea)][_0x397d29(0xe7)](_0x397d29(0x11f));});}[_0x4764dd(0x101)](){const _0x59a733=_0x4764dd;this[_0x59a733(0xf7)][_0x59a733(0x124)](this[_0x59a733(0x110)]);for(const _0x28a8a8 of this[_0x59a733(0xe9)])this[_0x59a733(0x11e)][_0x59a733(0xf6)](_0x28a8a8[_0x59a733(0x110)]),this[_0x59a733(0xf7)][_0x59a733(0x124)](_0x28a8a8[_0x59a733(0x110)]);}[_0x4764dd(0x121)](){const _0x5ac228=_0x4764dd,_0x4c733b=new _0x20d425(this[_0x5ac228(0xef)]);return _0x4c733b[_0x5ac228(0x118)](_0x5ac228(0xe2))['to'](this),_0x4c733b;}}