UNPKG

@ckeditor/ckeditor5-comments

Version:

Collaborative comments feature for CKEditor 5.

23 lines 5.3 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. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ const _0xf7a120=_0x5ca8;(function(_0x1c2fe4,_0x52bce3){const _0x2aa100=_0x5ca8,_0x242e43=_0x1c2fe4();while(!![]){try{const _0x2fc461=-parseInt(_0x2aa100(0x1e4))/0x1*(-parseInt(_0x2aa100(0x1dc))/0x2)+parseInt(_0x2aa100(0x1e1))/0x3*(-parseInt(_0x2aa100(0x1c5))/0x4)+parseInt(_0x2aa100(0x1e6))/0x5+parseInt(_0x2aa100(0x1c7))/0x6*(parseInt(_0x2aa100(0x1e3))/0x7)+-parseInt(_0x2aa100(0x1d6))/0x8*(-parseInt(_0x2aa100(0x1e0))/0x9)+parseInt(_0x2aa100(0x1de))/0xa+parseInt(_0x2aa100(0x1c2))/0xb*(-parseInt(_0x2aa100(0x1c9))/0xc);if(_0x2fc461===_0x52bce3)break;else _0x242e43['push'](_0x242e43['shift']());}catch(_0x558df9){_0x242e43['push'](_0x242e43['shift']());}}}(_0x4f69,0x48912));function _0x5ca8(_0x4c1ebf,_0x24f8a0){const _0x4f69b6=_0x4f69();return _0x5ca8=function(_0x5ca847,_0xea2dd5){_0x5ca847=_0x5ca847-0x1b6;let _0x341729=_0x4f69b6[_0x5ca847];return _0x341729;},_0x5ca8(_0x4c1ebf,_0x24f8a0);}import{View as _0x4afa1a}from'ckeditor5/src/ui.js';import{CommentInputView as _0x27b8cb}from'./commentinputview.js';import{UserView as _0x407041}from'ckeditor5-collaboration/src/collaboration-core.js';export class CommentThreadInputView extends _0x4afa1a{constructor(_0x5f2603,_0x570c71,_0x22991d){const _0xd4f9b4=_0x5ca8;super(_0x5f2603),this[_0xd4f9b4(0x1d3)]=new _0x27b8cb(_0x5f2603,_0x22991d),this[_0xd4f9b4(0x1ce)]=this[_0xd4f9b4(0x1d3)][_0xd4f9b4(0x1ce)],this[_0xd4f9b4(0x1d3)][_0xd4f9b4(0x1dd)](_0xd4f9b4(0x1d2))['to'](this[_0xd4f9b4(0x1d3)][_0xd4f9b4(0x1c0)],_0xd4f9b4(0x1c8),this[_0xd4f9b4(0x1d3)],_0xd4f9b4(0x1d1),(_0x517845,_0x1d4d12)=>_0x517845||!!_0x1d4d12),this[_0xd4f9b4(0x1d9)](_0xd4f9b4(0x1bd),!0x1),this['on'](_0xd4f9b4(0x1cc),()=>{const _0x6af06c=_0xd4f9b4;this[_0x6af06c(0x1bd)]&&!this[_0x6af06c(0x1d3)][_0x6af06c(0x1ca)]&&this[_0x6af06c(0x1d3)][_0x6af06c(0x1cd)]();}),this[_0xd4f9b4(0x1d3)][_0xd4f9b4(0x1c1)](_0xd4f9b4(0x1e5))['to'](this),this[_0xd4f9b4(0x1d3)][_0xd4f9b4(0x1c1)](_0xd4f9b4(0x1ba))['to'](this),this[_0xd4f9b4(0x1be)]=new _0x407041(_0x5f2603,_0x570c71),this[_0xd4f9b4(0x1be)][_0xd4f9b4(0x1d4)]({'attributes':{'class':_0xd4f9b4(0x1e7),'aria-hidden':!0x0}}),this[_0xd4f9b4(0x1d3)][_0xd4f9b4(0x1d4)]({'attributes':{'class':_0xd4f9b4(0x1b6)}}),this[_0xd4f9b4(0x1c3)]({'tag':_0xd4f9b4(0x1cb),'attributes':{'class':[_0xd4f9b4(0x1df),this[_0xd4f9b4(0x1db)]['if'](_0xd4f9b4(0x1bd),_0xd4f9b4(0x1bc))]},'children':[this[_0xd4f9b4(0x1be)],this[_0xd4f9b4(0x1d3)]]});}[_0xf7a120(0x1bb)](){const _0x2a9b33=_0xf7a120;super[_0x2a9b33(0x1bb)](),this[_0x2a9b33(0x1c6)]();}[_0xf7a120(0x1d8)](){const _0x20bc5a=_0xf7a120;return this[_0x20bc5a(0x1d3)][_0x20bc5a(0x1d8)]()[_0x20bc5a(0x1e9)](()=>super[_0x20bc5a(0x1d8)]());}[_0xf7a120(0x1e8)](_0x35999d){const _0x2dcfc3=_0xf7a120;this[_0x2dcfc3(0x1d3)][_0x2dcfc3(0x1e8)](_0x35999d);}[_0xf7a120(0x1c6)](){const _0x5e6dcc=_0xf7a120;this[_0x5e6dcc(0x1cf)](this[_0x5e6dcc(0x1c4)],_0x5e6dcc(0x1b9),(_0x5e3a52,_0x4ce769)=>{const _0xbb3037=_0x5e6dcc,{submitButtonView:_0x240fb4,cancelButtonView:_0x400525,editor:_0x159fa8}=this[_0xbb3037(0x1d3)];[_0x240fb4[_0xbb3037(0x1c4)],_0x400525[_0xbb3037(0x1c4)],_0x159fa8?_0x159fa8[_0xbb3037(0x1b7)][_0xbb3037(0x1da)][_0xbb3037(0x1b8)]():null][_0xbb3037(0x1d0)](_0x284729=>_0x284729)[_0xbb3037(0x1d5)](_0x2d4d4c=>_0x2d4d4c[_0xbb3037(0x1bf)](_0x4ce769[_0xbb3037(0x1d7)]))||(this[_0xbb3037(0x1e8)](),_0x4ce769[_0xbb3037(0x1e2)]());});}}function _0x4f69(){const _0x2abeb6=['5108510ZnpFHa','ck-comment__input-container','1287wlUlDJ','3jZmSGI','preventDefault','4417PelBwM','198vCGHVW','editorReady','2420000bhbHIq','ck-thread__user','focus','then','ck-thread__input','editing','getDomRoot','mousedown','editorDestroyed','render','ck-comment__input-container--active','showInput','userView','contains','focusTracker','delegate','13143317zwOTsV','setTemplate','element','2066444thoACc','_focusOnNonInteractiveMouseDown','5154XOpafJ','isFocused','12VaHcUP','editor','div','change:showInput','createEditor','focusCycler','listenTo','filter','value','showButtons','commentInputView','extendTemplate','some','17744NJtgSv','target','destroy','set','view','bindTemplate','1562UgGPRD','bind'];_0x4f69=function(){return _0x2abeb6;};return _0x4f69();}