@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
23 lines • 7.22 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 _0x2bdb22=_0x8d2c;(function(_0x195053,_0x6c463b){const _0x321649=_0x8d2c,_0x34d2bb=_0x195053();while(!![]){try{const _0x3271d8=parseInt(_0x321649(0xe5))/0x1*(parseInt(_0x321649(0xe1))/0x2)+-parseInt(_0x321649(0xdc))/0x3+parseInt(_0x321649(0xca))/0x4+-parseInt(_0x321649(0xeb))/0x5+-parseInt(_0x321649(0xdd))/0x6*(parseInt(_0x321649(0xd5))/0x7)+-parseInt(_0x321649(0xcb))/0x8+parseInt(_0x321649(0xd7))/0x9;if(_0x3271d8===_0x6c463b)break;else _0x34d2bb['push'](_0x34d2bb['shift']());}catch(_0x54acce){_0x34d2bb['push'](_0x34d2bb['shift']());}}}(_0xaf83,0xee47b));import{View as _0x5ca21f,ButtonView as _0x37afbe,FocusCycler as _0x3a65d2}from'ckeditor5/src/ui.js';import{FocusTracker as _0x26b7cd,KeystrokeHandler as _0x198254}from'ckeditor5/src/utils.js';import{IconUndo as _0x382a03}from'ckeditor5/src/icons.js';import{getTranslation as _0x1c4f6b}from'../../../utils/common-translations.js';import{CommentThreadHeaderContextView as _0xe173de}from'./commentthreadheadercontextview.js';export const MAX_CONTENT_LENGTH=0x96;function _0x8d2c(_0x3bb3e5,_0x6502d){const _0xaf8391=_0xaf83();return _0x8d2c=function(_0x8d2c45,_0x554808){_0x8d2c45=_0x8d2c45-0xaa;let _0x554f8c=_0xaf8391[_0x8d2c45];return _0x554f8c;},_0x8d2c(_0x3bb3e5,_0x6502d);}export class CommentThreadHeaderView extends _0x5ca21f{[_0x2bdb22(0xe4)];[_0x2bdb22(0xe2)];[_0x2bdb22(0xbf)];[_0x2bdb22(0xab)];[_0x2bdb22(0xec)];[_0x2bdb22(0xd2)];[_0x2bdb22(0xc6)];constructor(_0x569b3c,_0x2f35e9){const _0x5ea907=_0x2bdb22;super(_0x569b3c);const _0x19720d=this[_0x5ea907(0xad)];this[_0x5ea907(0xe4)]=_0x2f35e9,this[_0x5ea907(0xe2)]=this[_0x5ea907(0xb3)](),this[_0x5ea907(0xbf)]=this[_0x5ea907(0xba)](),this[_0x5ea907(0xab)]=this[_0x5ea907(0xd9)]([this[_0x5ea907(0xbf)],this[_0x5ea907(0xe2)]]),this[_0x5ea907(0xec)]=new _0x26b7cd(),this[_0x5ea907(0xd2)]=new _0x198254(),this[_0x5ea907(0xc6)]=new _0x3a65d2({'focusables':this[_0x5ea907(0xab)],'focusTracker':this[_0x5ea907(0xec)],'keystrokeHandler':this[_0x5ea907(0xd2)],'actions':{'focusPrevious':_0x5ea907(0xb6),'focusNext':_0x5ea907(0xe8)}}),this[_0x5ea907(0xce)](_0x5ea907(0xac))['to'](this[_0x5ea907(0xe4)],_0x5ea907(0xdf),_0x26f961=>!!_0x26f961),this[_0x5ea907(0xce)](_0x5ea907(0xde))['to'](this[_0x5ea907(0xe4)],_0x5ea907(0xdf),_0x1e3361=>_0x1e3361&&_0x1e3361[_0x5ea907(0xe0)]?this[_0x5ea907(0xcc)](_0x1e3361[_0x5ea907(0xe0)]):_0x1c4f6b(this[_0x5ea907(0xaa)],_0x5ea907(0xbb))),this[_0x5ea907(0xe9)]({'tag':_0x5ea907(0xb4),'attributes':{'class':[_0x5ea907(0xe3)]},'children':[{'tag':_0x5ea907(0xb4),'attributes':{'class':[_0x5ea907(0xda)]},'children':[{'tag':_0x5ea907(0xb4),'attributes':{'class':[_0x5ea907(0xbc),_0x19720d['if'](_0x5ea907(0xac),_0x5ea907(0xf0))]},'children':[this[_0x5ea907(0xbf)]]}]},{'tag':_0x5ea907(0xb4),'attributes':{'class':[_0x5ea907(0xed)]},'children':[this[_0x5ea907(0xe2)]]}]});}[_0x2bdb22(0xd4)](){const _0x3afc52=_0x2bdb22;super[_0x3afc52(0xd4)](),this[_0x3afc52(0xcf)](),this[_0x3afc52(0xc5)]();}[_0x2bdb22(0xaf)](){const _0x42b069=_0x2bdb22;this[_0x42b069(0xc6)][_0x42b069(0xb0)]();}[_0x2bdb22(0xb3)](){const _0x30b4da=_0x2bdb22,_0x27592c=new _0x37afbe(this[_0x30b4da(0xaa)]);return _0x27592c[_0x30b4da(0xd3)]=_0x1c4f6b(this[_0x30b4da(0xaa)],_0x30b4da(0xc3)),_0x27592c[_0x30b4da(0xc1)]=_0x1c4f6b(this[_0x30b4da(0xaa)],_0x30b4da(0xc3)),_0x27592c[_0x30b4da(0xcd)]=_0x382a03,_0x27592c[_0x30b4da(0xce)](_0x30b4da(0xc0))['to'](this[_0x30b4da(0xe4)],_0x30b4da(0xc9),_0x62f433=>!_0x62f433),_0x27592c[_0x30b4da(0xce)](_0x30b4da(0xea))['to'](this[_0x30b4da(0xe4)],_0x30b4da(0xb8),this[_0x30b4da(0xe4)],_0x30b4da(0xee),(_0x13956b,_0x63677f)=>_0x13956b&&_0x63677f),_0x27592c['on'](_0x30b4da(0xb2),()=>{const _0x47feba=_0x30b4da;this[_0x47feba(0xe7)](_0x47feba(0xb9),this[_0x47feba(0xe4)]['id']);}),_0x27592c;}[_0x2bdb22(0xcc)](_0x331184){const _0xf6ddd4=_0x2bdb22;if(_0x331184[_0xf6ddd4(0xb1)]<0x96)return _0x331184;const _0x519e5d=_0x331184[_0xf6ddd4(0xae)]('\x20',0x93);return _0x331184[_0xf6ddd4(0xc2)](0x0,_0x519e5d>-0x1?_0x519e5d:0x93)+_0xf6ddd4(0xc4);}[_0x2bdb22(0xcf)](){const _0x209b39=_0x2bdb22,_0x3f484a=this[_0x209b39(0xef)][_0x209b39(0xd1)](_0x209b39(0xd6)),_0x1f9eca=_0x3f484a[_0x209b39(0xd1)](_0x209b39(0xd8));this[_0x209b39(0xb7)](_0x3f484a,_0x209b39(0xdb),()=>{const _0x31f98f=_0x209b39;_0x1f9eca[_0x31f98f(0xd0)]<_0x1f9eca[_0x31f98f(0xe6)]&&_0x3f484a[_0x31f98f(0xbd)][_0x31f98f(0xc7)](_0x31f98f(0xb5));}),this[_0x209b39(0xb7)](_0x3f484a,_0x209b39(0xc8),()=>{const _0x29c968=_0x209b39;_0x3f484a[_0x29c968(0xbd)][_0x29c968(0xbe)](_0x29c968(0xb5));});}[_0x2bdb22(0xc5)](){const _0x424f29=_0x2bdb22;this[_0x424f29(0xd2)][_0x424f29(0xb7)](this[_0x424f29(0xef)]);for(const _0x5e829d of this[_0x424f29(0xab)])this[_0x424f29(0xec)][_0x424f29(0xc7)](_0x5e829d[_0x424f29(0xef)]),this[_0x424f29(0xd2)][_0x424f29(0xb7)](_0x5e829d[_0x424f29(0xef)]);}[_0x2bdb22(0xba)](){const _0x415084=_0x2bdb22,_0x5acb82=new _0xe173de(this[_0x415084(0xaa)]);return _0x5acb82[_0x415084(0xce)](_0x415084(0xde))['to'](this),_0x5acb82;}}function _0xaf83(){const _0x2d3d2b=['shift+tab','listenTo','isResolvable','reopenCommentThread','_createContextView','Comment\x20was\x20made\x20on\x20an\x20element','ck-context','classList','remove','contextView','isEnabled','tooltip','substring','Reopen','...','_setupKeyboardNavigation','focusCycler','add','mouseleave','isReadOnly','1894944hdZPqi','5729648ZEaYaa','_trimContextValue','icon','bind','_attachContextActions','offsetWidth','querySelector','keystrokes','label','render','595vDXWuZ','.ck-context','30446136pENsnI','.ck-context__value','createCollection','ck-context-wrapper','mouseenter','3335625WZiPTA','68916VKBLQg','contextValue','context','value','4HlJohk','reopenButtonView','ck-thread__header','_model','826942ofxfHK','scrollWidth','fire','tab','setTemplate','isVisible','8650690GteWAJ','focusTracker','ck-annotation__actions','isResolved','element','ck-context--quotes','locale','focusables','hasContext','bindTemplate','lastIndexOf','focus','focusFirst','length','execute','_createReopenButton','div','overlay'];_0xaf83=function(){return _0x2d3d2b;};return _0xaf83();}