UNPKG

@ckeditor/ckeditor5-comments

Version:

Collaborative comments feature for CKEditor 5.

23 lines 5.23 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 _0x4b5157=_0x32cf;(function(_0x395861,_0x4cbe58){const _0x27f1c4=_0x32cf,_0xc04bad=_0x395861();while(!![]){try{const _0xd91700=parseInt(_0x27f1c4(0x176))/0x1+parseInt(_0x27f1c4(0x167))/0x2*(parseInt(_0x27f1c4(0x15c))/0x3)+parseInt(_0x27f1c4(0x16d))/0x4+parseInt(_0x27f1c4(0x17b))/0x5+-parseInt(_0x27f1c4(0x159))/0x6*(-parseInt(_0x27f1c4(0x15a))/0x7)+-parseInt(_0x27f1c4(0x183))/0x8*(-parseInt(_0x27f1c4(0x172))/0x9)+-parseInt(_0x27f1c4(0x17f))/0xa*(parseInt(_0x27f1c4(0x181))/0xb);if(_0xd91700===_0x4cbe58)break;else _0xc04bad['push'](_0xc04bad['shift']());}catch(_0x5ee305){_0xc04bad['push'](_0xc04bad['shift']());}}}(_0x26df,0xe214c));import{View as _0x45e959}from'ckeditor5/src/ui.js';function _0x32cf(_0x1d9cf3,_0x30403a){const _0x26df85=_0x26df();return _0x32cf=function(_0x32cfef,_0x17d5a5){_0x32cfef=_0x32cfef-0x155;let _0x56faba=_0x26df85[_0x32cfef];return _0x56faba;},_0x32cf(_0x1d9cf3,_0x30403a);}import _0xd4664b from'./commentinputview.js';import{UserView as _0x49045e}from'ckeditor5-collaboration/src/collaboration-core.js';export default class ie extends _0x45e959{constructor(_0x40547e,_0x47487d,_0x5c0d05){const _0x36dadb=_0x32cf;super(_0x40547e),this[_0x36dadb(0x164)]=new _0xd4664b(_0x40547e,_0x5c0d05),this[_0x36dadb(0x175)]=this[_0x36dadb(0x164)][_0x36dadb(0x175)],this[_0x36dadb(0x164)][_0x36dadb(0x156)](_0x36dadb(0x168))['to'](this[_0x36dadb(0x164)][_0x36dadb(0x174)],_0x36dadb(0x16a),this[_0x36dadb(0x164)],_0x36dadb(0x17c),(_0x2d34d8,_0x10e647)=>_0x2d34d8||!!_0x10e647),this[_0x36dadb(0x160)](_0x36dadb(0x15e),!0x1),this['on'](_0x36dadb(0x186),()=>{const _0x2dcdb4=_0x36dadb;this[_0x2dcdb4(0x15e)]&&!this[_0x2dcdb4(0x164)][_0x2dcdb4(0x17a)]&&this[_0x2dcdb4(0x164)][_0x2dcdb4(0x17e)]();}),this[_0x36dadb(0x164)][_0x36dadb(0x16c)](_0x36dadb(0x179))['to'](this),this[_0x36dadb(0x164)][_0x36dadb(0x16c)](_0x36dadb(0x185))['to'](this),this[_0x36dadb(0x170)]=new _0x49045e(_0x40547e,_0x47487d),this[_0x36dadb(0x170)][_0x36dadb(0x171)]({'attributes':{'class':_0x36dadb(0x16e),'aria-hidden':!0x0}}),this[_0x36dadb(0x164)][_0x36dadb(0x171)]({'attributes':{'class':_0x36dadb(0x182)}}),this[_0x36dadb(0x178)]({'tag':_0x36dadb(0x173),'attributes':{'class':[_0x36dadb(0x166),this[_0x36dadb(0x169)]['if'](_0x36dadb(0x15e),_0x36dadb(0x15b))]},'children':[this[_0x36dadb(0x170)],this[_0x36dadb(0x164)]]});}[_0x4b5157(0x16f)](){const _0x1e587b=_0x4b5157;super[_0x1e587b(0x16f)](),this[_0x1e587b(0x162)]();}[_0x4b5157(0x155)](){const _0x294041=_0x4b5157;return this[_0x294041(0x164)][_0x294041(0x155)]()[_0x294041(0x177)](()=>super[_0x294041(0x155)]());}[_0x4b5157(0x163)](_0x55b89e){const _0x5e2329=_0x4b5157;this[_0x5e2329(0x164)][_0x5e2329(0x163)](_0x55b89e);}[_0x4b5157(0x162)](){const _0x237d84=_0x4b5157;this[_0x237d84(0x16b)](this[_0x237d84(0x187)],_0x237d84(0x180),(_0x50933c,_0x480946)=>{const _0x5cc990=_0x237d84,{submitButtonView:_0x2f4772,cancelButtonView:_0xbe8f40,editor:_0x187ab7}=this[_0x5cc990(0x164)];[_0x2f4772[_0x5cc990(0x187)],_0xbe8f40[_0x5cc990(0x187)],_0x187ab7?_0x187ab7[_0x5cc990(0x15f)][_0x5cc990(0x158)][_0x5cc990(0x161)]():null][_0x5cc990(0x157)](_0x2a61e7=>_0x2a61e7)[_0x5cc990(0x165)](_0x3b9cf7=>_0x3b9cf7[_0x5cc990(0x15d)](_0x480946[_0x5cc990(0x17d)]))||(this[_0x5cc990(0x163)](),_0x480946[_0x5cc990(0x184)]());});}}function _0x26df(){const _0x21e3ec=['_focusOnNonInteractiveMouseDown','focus','commentInputView','some','ck-comment__input-container','47470wsfege','showButtons','bindTemplate','isFocused','listenTo','delegate','4766060PFpaAS','ck-thread__user','render','userView','extendTemplate','5526xDHdna','div','focusTracker','focusCycler','1400552Jhkmym','then','setTemplate','editorReady','editor','6779880SnfRJs','value','target','createEditor','5265740qUojoQ','mousedown','121aFjXhz','ck-thread__input','56ekOuRu','preventDefault','editorDestroyed','change:showInput','element','destroy','bind','filter','view','9190686XPsiZy','7sfBXgn','ck-comment__input-container--active','156nJwkvG','contains','showInput','editing','set','getDomRoot'];_0x26df=function(){return _0x21e3ec;};return _0x26df();}