@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
23 lines • 7.3 kB
JavaScript
/*
* Copyright (c) 2003-2026, 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 _0x3e7755=_0x260c;(function(_0x1055f2,_0x254514){const _0x367769=_0x260c,_0x32ccf2=_0x1055f2();while(!![]){try{const _0x290159=parseInt(_0x367769(0x9e))/0x1+parseInt(_0x367769(0xaa))/0x2*(-parseInt(_0x367769(0xab))/0x3)+-parseInt(_0x367769(0xbb))/0x4+-parseInt(_0x367769(0xd4))/0x5+-parseInt(_0x367769(0xc1))/0x6*(-parseInt(_0x367769(0xe1))/0x7)+parseInt(_0x367769(0xd7))/0x8*(-parseInt(_0x367769(0x9d))/0x9)+parseInt(_0x367769(0xae))/0xa*(parseInt(_0x367769(0xc5))/0xb);if(_0x290159===_0x254514)break;else _0x32ccf2['push'](_0x32ccf2['shift']());}catch(_0x2a36e4){_0x32ccf2['push'](_0x32ccf2['shift']());}}}(_0x47ff,0x99ac6));import{View as _0x2086bb,ButtonView as _0x374470,FocusCycler as _0x148d36}from'ckeditor5/src/ui.js';import{FocusTracker as _0x3be72b,KeystrokeHandler as _0x34bca6}from'ckeditor5/src/utils.js';import{IconUndo as _0x44bfb0}from'ckeditor5/src/icons.js';import{getTranslation as _0x54f20b}from'../../../utils/common-translations.js';function _0x260c(_0x289879,_0xc8dea3){const _0x47ffe6=_0x47ff();return _0x260c=function(_0x260c77,_0x399689){_0x260c77=_0x260c77-0x9a;let _0x1876ee=_0x47ffe6[_0x260c77];return _0x1876ee;},_0x260c(_0x289879,_0xc8dea3);}import{CommentThreadHeaderContextView as _0xb9a38e}from'./commentthreadheadercontextview.js';export const MAX_CONTENT_LENGTH=0x96;export class CommentThreadHeaderView extends _0x2086bb{[_0x3e7755(0xa6)];[_0x3e7755(0xb5)];[_0x3e7755(0xa7)];[_0x3e7755(0xaf)];[_0x3e7755(0xb1)];[_0x3e7755(0xd2)];[_0x3e7755(0xbf)];constructor(_0x143afa,_0x55ae07){const _0x23b623=_0x3e7755;super(_0x143afa);const _0x210f72=this[_0x23b623(0xc4)];this[_0x23b623(0xa6)]=_0x55ae07,this[_0x23b623(0xb5)]=this[_0x23b623(0xa0)](),this[_0x23b623(0xa7)]=this[_0x23b623(0xce)](),this[_0x23b623(0xaf)]=this[_0x23b623(0xdf)]([this[_0x23b623(0xa7)],this[_0x23b623(0xb5)]]),this[_0x23b623(0xb1)]=new _0x3be72b(),this[_0x23b623(0xd2)]=new _0x34bca6(),this[_0x23b623(0xbf)]=new _0x148d36({'focusables':this[_0x23b623(0xaf)],'focusTracker':this[_0x23b623(0xb1)],'keystrokeHandler':this[_0x23b623(0xd2)],'actions':{'focusPrevious':_0x23b623(0xdd),'focusNext':_0x23b623(0xa8)}}),this[_0x23b623(0xdb)](_0x23b623(0xa2))['to'](this[_0x23b623(0xa6)],_0x23b623(0x9a),_0x13fb51=>!!_0x13fb51),this[_0x23b623(0xdb)](_0x23b623(0xbd))['to'](this[_0x23b623(0xa6)],_0x23b623(0x9a),_0x2f6b2e=>_0x2f6b2e&&_0x2f6b2e[_0x23b623(0xde)]?this[_0x23b623(0xb8)](_0x2f6b2e[_0x23b623(0xde)]):_0x54f20b(this[_0x23b623(0xe0)],_0x23b623(0xb7))),this[_0x23b623(0xa3)]({'tag':_0x23b623(0x9f),'attributes':{'class':[_0x23b623(0xda)]},'children':[{'tag':_0x23b623(0x9f),'attributes':{'class':[_0x23b623(0xc3)]},'children':[{'tag':_0x23b623(0x9f),'attributes':{'class':[_0x23b623(0xbe),_0x210f72['if'](_0x23b623(0xa2),_0x23b623(0xc0))]},'children':[this[_0x23b623(0xa7)]]}]},{'tag':_0x23b623(0x9f),'attributes':{'class':[_0x23b623(0xbc)]},'children':[this[_0x23b623(0xb5)]]}]});}[_0x3e7755(0xb0)](){const _0x4f98c3=_0x3e7755;super[_0x4f98c3(0xb0)](),this[_0x4f98c3(0xd1)](),this[_0x4f98c3(0xcf)]();}[_0x3e7755(0xac)](){const _0x4432b0=_0x3e7755;this[_0x4432b0(0xbf)][_0x4432b0(0xcd)]();}[_0x3e7755(0xa0)](){const _0x5df56e=_0x3e7755,_0x122f2e=new _0x374470(this[_0x5df56e(0xe0)]);return _0x122f2e[_0x5df56e(0xc6)]=_0x54f20b(this[_0x5df56e(0xe0)],_0x5df56e(0xcc)),_0x122f2e[_0x5df56e(0xad)]=_0x54f20b(this[_0x5df56e(0xe0)],_0x5df56e(0xcc)),_0x122f2e[_0x5df56e(0xa5)]=_0x44bfb0,_0x122f2e[_0x5df56e(0xdb)](_0x5df56e(0xb9))['to'](this[_0x5df56e(0xa6)],_0x5df56e(0xc8),_0x56c869=>!_0x56c869),_0x122f2e[_0x5df56e(0xdb)](_0x5df56e(0xa1))['to'](this[_0x5df56e(0xa6)],_0x5df56e(0xb3),this[_0x5df56e(0xa6)],_0x5df56e(0xd3),(_0x56b4bf,_0x27520b)=>_0x56b4bf&&_0x27520b),_0x122f2e['on'](_0x5df56e(0x9c),()=>{const _0x2419a5=_0x5df56e;this[_0x2419a5(0xc9)](_0x2419a5(0xb2),this[_0x2419a5(0xa6)]['id']);}),_0x122f2e;}[_0x3e7755(0xb8)](_0x428722){const _0x13f1a9=_0x3e7755;if(_0x428722[_0x13f1a9(0xca)]<0x96)return _0x428722;const _0x24f67=_0x428722[_0x13f1a9(0xb4)]('\x20',0x93);return _0x428722[_0x13f1a9(0xd5)](0x0,_0x24f67>-0x1?_0x24f67:0x93)+_0x13f1a9(0xdc);}[_0x3e7755(0xd1)](){const _0x265772=_0x3e7755,_0x5c709f=this[_0x265772(0xc2)][_0x265772(0xd9)](_0x265772(0xa4)),_0x3a47c0=_0x5c709f[_0x265772(0xd9)](_0x265772(0xc7));this[_0x265772(0x9b)](_0x5c709f,_0x265772(0xcb),()=>{const _0xfe1ef0=_0x265772;_0x3a47c0[_0xfe1ef0(0xd0)]<_0x3a47c0[_0xfe1ef0(0xa9)]&&_0x5c709f[_0xfe1ef0(0xb6)][_0xfe1ef0(0xd8)](_0xfe1ef0(0xe2));}),this[_0x265772(0x9b)](_0x5c709f,_0x265772(0xd6),()=>{const _0x326608=_0x265772;_0x5c709f[_0x326608(0xb6)][_0x326608(0xba)](_0x326608(0xe2));});}[_0x3e7755(0xcf)](){const _0x538d75=_0x3e7755;this[_0x538d75(0xd2)][_0x538d75(0x9b)](this[_0x538d75(0xc2)]);for(const _0x402a0f of this[_0x538d75(0xaf)])this[_0x538d75(0xb1)][_0x538d75(0xd8)](_0x402a0f[_0x538d75(0xc2)]),this[_0x538d75(0xd2)][_0x538d75(0x9b)](_0x402a0f[_0x538d75(0xc2)]);}[_0x3e7755(0xce)](){const _0x3261b3=_0x3e7755,_0x47f24c=new _0xb9a38e(this[_0x3261b3(0xe0)]);return _0x47f24c[_0x3261b3(0xdb)](_0x3261b3(0xbd))['to'](this),_0x47f24c;}}function _0x47ff(){const _0x38f416=['9EMJWrd','focus','tooltip','19230EyZVzF','focusables','render','focusTracker','reopenCommentThread','isResolvable','lastIndexOf','reopenButtonView','classList','Comment\x20was\x20made\x20on\x20an\x20element','_trimContextValue','isEnabled','remove','309936cKSEhT','ck-annotation__actions','contextValue','ck-context','focusCycler','ck-context--quotes','18534EEnjMo','element','ck-context-wrapper','bindTemplate','14289ZUlHgX','label','.ck-context__value','isReadOnly','fire','length','mouseenter','Reopen','focusFirst','_createContextView','_setupKeyboardNavigation','offsetWidth','_attachContextActions','keystrokes','isResolved','2864925gRGZcw','substring','mouseleave','1769872nZKuDo','add','querySelector','ck-thread__header','bind','...','shift+tab','value','createCollection','locale','7byDYes','overlay','context','listenTo','execute','36xOZXsr','857683cUoryf','div','_createReopenButton','isVisible','hasContext','setTemplate','.ck-context','icon','_model','contextView','tab','scrollWidth','795932IbOehJ'];_0x47ff=function(){return _0x38f416;};return _0x47ff();}