@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
23 lines • 5.18 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 _0x445152=_0x10a9;function _0x10a9(_0x2b170d,_0x15fb9d){const _0x34312a=_0x3431();return _0x10a9=function(_0x10a9ec,_0x4dff7a){_0x10a9ec=_0x10a9ec-0x178;let _0x1ab79d=_0x34312a[_0x10a9ec];return _0x1ab79d;},_0x10a9(_0x2b170d,_0x15fb9d);}function _0x3431(){const _0x37b2b2=['editorDestroyed','preventDefault','3110048SspFal','mousedown','target','6AjoVDS','createEditor','236137JgnNBU','isFocused','showButtons','div','delegate','view','945LvYKkb','bind','bindTemplate','editing','ck-comment__input-container--active','editorReady','focus','ck-thread__user','render','10696399AvIdOf','focusCycler','some','focusTracker','setTemplate','4703960SrHgCp','value','getDomRoot','2884108YzavJd','showInput','6XDqihO','editor','272580TZTtkj','change:showInput','_focusOnNonInteractiveMouseDown','contains','extendTemplate','listenTo','ck-comment__input-container','commentInputView','1130WNTbEC','element','ck-thread__input','set','then','userView','destroy','filter'];_0x3431=function(){return _0x37b2b2;};return _0x3431();}(function(_0x41ac68,_0x4e7372){const _0xee7362=_0x10a9,_0x3dbe77=_0x41ac68();while(!![]){try{const _0x1d455c=-parseInt(_0xee7362(0x180))/0x1+parseInt(_0xee7362(0x197))/0x2+parseInt(_0xee7362(0x17e))/0x3*(parseInt(_0xee7362(0x17b))/0x4)+-parseInt(_0xee7362(0x1a3))/0x5*(parseInt(_0xee7362(0x199))/0x6)+parseInt(_0xee7362(0x18f))/0x7+-parseInt(_0xee7362(0x194))/0x8+parseInt(_0xee7362(0x186))/0x9*(-parseInt(_0xee7362(0x19b))/0xa);if(_0x1d455c===_0x4e7372)break;else _0x3dbe77['push'](_0x3dbe77['shift']());}catch(_0x488179){_0x3dbe77['push'](_0x3dbe77['shift']());}}}(_0x3431,0xccc1f));import{View as _0x318666}from'ckeditor5/src/ui.js';import _0x1532cd from'./commentinputview.js';import{UserView as _0x179498}from'ckeditor5-collaboration/src/collaboration-core.js';export default class ie extends _0x318666{constructor(_0x4dc1b2,_0x2cf97f,_0x531121){const _0x27ce35=_0x10a9;super(_0x4dc1b2),this[_0x27ce35(0x1a2)]=new _0x1532cd(_0x4dc1b2,_0x531121),this[_0x27ce35(0x190)]=this[_0x27ce35(0x1a2)][_0x27ce35(0x190)],this[_0x27ce35(0x1a2)][_0x27ce35(0x187)](_0x27ce35(0x182))['to'](this[_0x27ce35(0x1a2)][_0x27ce35(0x192)],_0x27ce35(0x181),this[_0x27ce35(0x1a2)],_0x27ce35(0x195),(_0x50754d,_0x487c14)=>_0x50754d||!!_0x487c14),this[_0x27ce35(0x1a6)](_0x27ce35(0x198),!0x1),this['on'](_0x27ce35(0x19c),()=>{const _0xdd624d=_0x27ce35;this[_0xdd624d(0x198)]&&!this[_0xdd624d(0x1a2)][_0xdd624d(0x19a)]&&this[_0xdd624d(0x1a2)][_0xdd624d(0x17f)]();}),this[_0x27ce35(0x1a2)][_0x27ce35(0x184)](_0x27ce35(0x18b))['to'](this),this[_0x27ce35(0x1a2)][_0x27ce35(0x184)](_0x27ce35(0x179))['to'](this),this[_0x27ce35(0x1a8)]=new _0x179498(_0x4dc1b2,_0x2cf97f),this[_0x27ce35(0x1a8)][_0x27ce35(0x19f)]({'attributes':{'class':_0x27ce35(0x18d),'aria-hidden':!0x0}}),this[_0x27ce35(0x1a2)][_0x27ce35(0x19f)]({'attributes':{'class':_0x27ce35(0x1a5)}}),this[_0x27ce35(0x193)]({'tag':_0x27ce35(0x183),'attributes':{'class':[_0x27ce35(0x1a1),this[_0x27ce35(0x188)]['if'](_0x27ce35(0x198),_0x27ce35(0x18a))]},'children':[this[_0x27ce35(0x1a8)],this[_0x27ce35(0x1a2)]]});}[_0x445152(0x18e)](){const _0x36ca3a=_0x445152;super[_0x36ca3a(0x18e)](),this[_0x36ca3a(0x19d)]();}[_0x445152(0x1a9)](){const _0x5bf91d=_0x445152;return this[_0x5bf91d(0x1a2)][_0x5bf91d(0x1a9)]()[_0x5bf91d(0x1a7)](()=>super[_0x5bf91d(0x1a9)]());}[_0x445152(0x18c)](_0x2e7d1d){const _0x186400=_0x445152;this[_0x186400(0x1a2)][_0x186400(0x18c)](_0x2e7d1d);}[_0x445152(0x19d)](){const _0x3d0793=_0x445152;this[_0x3d0793(0x1a0)](this[_0x3d0793(0x1a4)],_0x3d0793(0x17c),(_0x394d18,_0x3c5421)=>{const _0xeee751=_0x3d0793,{submitButtonView:_0x441b2b,cancelButtonView:_0x4cb48d,editor:_0x5d232b}=this[_0xeee751(0x1a2)];[_0x441b2b[_0xeee751(0x1a4)],_0x4cb48d[_0xeee751(0x1a4)],_0x5d232b?_0x5d232b[_0xeee751(0x189)][_0xeee751(0x185)][_0xeee751(0x196)]():null][_0xeee751(0x178)](_0x4fe150=>_0x4fe150)[_0xeee751(0x191)](_0x726d6b=>_0x726d6b[_0xeee751(0x19e)](_0x3c5421[_0xeee751(0x17d)]))||(this[_0xeee751(0x18c)](),_0x3c5421[_0xeee751(0x17a)]());});}}