@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
23 lines • 5.21 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 _0x30f82c=_0x2cbf;(function(_0x539c1e,_0x472f21){const _0x2290ee=_0x2cbf,_0x49a97a=_0x539c1e();while(!![]){try{const _0x2267b1=-parseInt(_0x2290ee(0x137))/0x1*(-parseInt(_0x2290ee(0x14a))/0x2)+-parseInt(_0x2290ee(0x15a))/0x3*(parseInt(_0x2290ee(0x163))/0x4)+-parseInt(_0x2290ee(0x160))/0x5*(parseInt(_0x2290ee(0x141))/0x6)+parseInt(_0x2290ee(0x15d))/0x7+parseInt(_0x2290ee(0x151))/0x8+parseInt(_0x2290ee(0x147))/0x9+-parseInt(_0x2290ee(0x164))/0xa;if(_0x2267b1===_0x472f21)break;else _0x49a97a['push'](_0x49a97a['shift']());}catch(_0x498645){_0x49a97a['push'](_0x49a97a['shift']());}}}(_0x408e,0xb04c6));import{View as _0x2dcd2e}from'ckeditor5/src/ui.js';import{CommentInputView as _0x2d0d51}from'./commentinputview.js';function _0x408e(){const _0x8d378c=['contains','ck-thread__input','304IKyupP','25707220yyTsOJ','preventDefault','then','bind','value','4SEyMbW','editorReady','_focusOnNonInteractiveMouseDown','listenTo','view','bindTemplate','focusCycler','extendTemplate','showInput','ck-comment__input-container','111498sMdZIU','delegate','editing','some','ck-thread__user','focus','9543825SZPzZa','createEditor','render','561796KVwdkQ','destroy','commentInputView','ck-comment__input-container--active','editorDestroyed','target','getDomRoot','6504672RXMomF','isFocused','element','set','filter','change:showInput','showButtons','userView','div','828CbUJVZ','mousedown','setTemplate','5208868pzHuoq','focusTracker','editor','115HcIgPc'];_0x408e=function(){return _0x8d378c;};return _0x408e();}import{UserView as _0x5bb14e}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x2cbf(_0x2e70d0,_0x11c60c){const _0x408e47=_0x408e();return _0x2cbf=function(_0x2cbf4c,_0x589e83){_0x2cbf4c=_0x2cbf4c-0x137;let _0xf78595=_0x408e47[_0x2cbf4c];return _0xf78595;},_0x2cbf(_0x2e70d0,_0x11c60c);}export class CommentThreadInputView extends _0x2dcd2e{constructor(_0x6ba16b,_0x218af3,_0x16060b){const _0x207056=_0x2cbf;super(_0x6ba16b),this[_0x207056(0x14c)]=new _0x2d0d51(_0x6ba16b,_0x16060b),this[_0x207056(0x13d)]=this[_0x207056(0x14c)][_0x207056(0x13d)],this[_0x207056(0x14c)][_0x207056(0x167)](_0x207056(0x157))['to'](this[_0x207056(0x14c)][_0x207056(0x15e)],_0x207056(0x152),this[_0x207056(0x14c)],_0x207056(0x168),(_0x35ab23,_0x562bf5)=>_0x35ab23||!!_0x562bf5),this[_0x207056(0x154)](_0x207056(0x13f),!0x1),this['on'](_0x207056(0x156),()=>{const _0x483a64=_0x207056;this[_0x483a64(0x13f)]&&!this[_0x483a64(0x14c)][_0x483a64(0x15f)]&&this[_0x483a64(0x14c)][_0x483a64(0x148)]();}),this[_0x207056(0x14c)][_0x207056(0x142)](_0x207056(0x138))['to'](this),this[_0x207056(0x14c)][_0x207056(0x142)](_0x207056(0x14e))['to'](this),this[_0x207056(0x158)]=new _0x5bb14e(_0x6ba16b,_0x218af3),this[_0x207056(0x158)][_0x207056(0x13e)]({'attributes':{'class':_0x207056(0x145),'aria-hidden':!0x0}}),this[_0x207056(0x14c)][_0x207056(0x13e)]({'attributes':{'class':_0x207056(0x162)}}),this[_0x207056(0x15c)]({'tag':_0x207056(0x159),'attributes':{'class':[_0x207056(0x140),this[_0x207056(0x13c)]['if'](_0x207056(0x13f),_0x207056(0x14d))]},'children':[this[_0x207056(0x158)],this[_0x207056(0x14c)]]});}[_0x30f82c(0x149)](){const _0x22f521=_0x30f82c;super[_0x22f521(0x149)](),this[_0x22f521(0x139)]();}[_0x30f82c(0x14b)](){const _0x1e0ece=_0x30f82c;return this[_0x1e0ece(0x14c)][_0x1e0ece(0x14b)]()[_0x1e0ece(0x166)](()=>super[_0x1e0ece(0x14b)]());}[_0x30f82c(0x146)](_0x2eb37f){const _0x13f5ab=_0x30f82c;this[_0x13f5ab(0x14c)][_0x13f5ab(0x146)](_0x2eb37f);}[_0x30f82c(0x139)](){const _0x2c93be=_0x30f82c;this[_0x2c93be(0x13a)](this[_0x2c93be(0x153)],_0x2c93be(0x15b),(_0x2de88b,_0x2a99fb)=>{const _0x2c5bd7=_0x2c93be,{submitButtonView:_0x596ab5,cancelButtonView:_0x237c9d,editor:_0x556a74}=this[_0x2c5bd7(0x14c)];[_0x596ab5[_0x2c5bd7(0x153)],_0x237c9d[_0x2c5bd7(0x153)],_0x556a74?_0x556a74[_0x2c5bd7(0x143)][_0x2c5bd7(0x13b)][_0x2c5bd7(0x150)]():null][_0x2c5bd7(0x155)](_0x4ad057=>_0x4ad057)[_0x2c5bd7(0x144)](_0x246a00=>_0x246a00[_0x2c5bd7(0x161)](_0x2a99fb[_0x2c5bd7(0x14f)]))||(this[_0x2c5bd7(0x146)](),_0x2a99fb[_0x2c5bd7(0x165)]());});}}