@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
23 lines • 9.4 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 _0x548f54=_0x21dd;function _0x21dd(_0x3c0535,_0x5cb8bd){const _0x56ee59=_0x56ee();return _0x21dd=function(_0x21dddc,_0x2fbe21){_0x21dddc=_0x21dddc-0x147;let _0xcb9e34=_0x56ee59[_0x21dddc];return _0xcb9e34;},_0x21dd(_0x3c0535,_0x5cb8bd);}(function(_0x5dedd1,_0x4e5159){const _0x518049=_0x21dd,_0x3f6cef=_0x5dedd1();while(!![]){try{const _0x2600e1=parseInt(_0x518049(0x171))/0x1*(-parseInt(_0x518049(0x147))/0x2)+-parseInt(_0x518049(0x197))/0x3*(parseInt(_0x518049(0x192))/0x4)+parseInt(_0x518049(0x168))/0x5+parseInt(_0x518049(0x18d))/0x6+-parseInt(_0x518049(0x14d))/0x7*(-parseInt(_0x518049(0x174))/0x8)+parseInt(_0x518049(0x191))/0x9+-parseInt(_0x518049(0x15d))/0xa*(parseInt(_0x518049(0x149))/0xb);if(_0x2600e1===_0x4e5159)break;else _0x3f6cef['push'](_0x3f6cef['shift']());}catch(_0xf7d127){_0x3f6cef['push'](_0x3f6cef['shift']());}}}(_0x56ee,0xe43f9));import{FocusCycler as _0x5064e5,View as _0x2e2f76}from'ckeditor5/src/ui.js';import{FocusTracker as _0x42bd94,KeystrokeHandler as _0x3fd5b8}from'ckeditor5/src/utils.js';import _0x1b9dc4 from'./commentthreadinputview.js';import _0x45fca5 from'./commentslistview.js';function _0x56ee(){const _0x3dd726=['4gloGTS','listenTo','comments','_createCommentThreadInputView','isActive','646761nyZSsR','tab','keystrokes','68dguegn','ariaDescriptionView','31978507WoSzVb','fire','destroy','shift+tab','432754lISJfI','removeCommentThread','set','change:isActive','render','assign','isSubmitted','isUnlinked','commentInputView','isResolved','createCollection','first','focusTracker','editorConfig','isResolvable','Reply','10cSlpJJ','element','resolveCommentThread','_model','submit','canComment','reopenCommentThread','Reply\x20to\x20reopen\x20discussion...','addComment','commentsListView','isReadOnly','9184935libiXB','target','hasDirtyComment','commentThreadInputView','Write\x20a\x20comment...','focusCycler','value','delegate','commentThreadHeaderView','30274qKdgJB','editorDestroyed','stop','192CcgSVu','disabledSubmit','author','ariaLabel','_localUser','cancel','length','archivedAt','CommentView','_config','locale','editorReady','bind','Comment','submitLabel','COMMENT_THREAD_DESCRIPTION','removeComment','submitCommentThread','isDirty','name','focus','placeholder','showInput','COMMENT_THREAD_LABEL','updateComment','787020hUgVyS','focusables','unlinkedAt','Reply...','14715540JmkmLa'];_0x56ee=function(){return _0x3dd726;};return _0x56ee();}import _0x249b93 from'./commentthreadheaderview.js';import{getTranslation as _0x1dece3}from'../../../utils/common-translations.js';import{AriaDescriptionView as _0x5f0ca8,setupThreadKeyboardNavigation as _0x332046}from'ckeditor5-collaboration/src/collaboration-core.js';export default class ts extends _0x2e2f76{[_0x548f54(0x160)];[_0x548f54(0x17d)];[_0x548f54(0x170)];[_0x548f54(0x16b)];[_0x548f54(0x148)];[_0x548f54(0x18e)];[_0x548f54(0x159)];[_0x548f54(0x199)];[_0x548f54(0x16d)];constructor(_0x4f6a8e,_0x195e0d,_0x5d4420,_0x222022){const _0x988b94=_0x548f54;super(_0x4f6a8e),this[_0x988b94(0x14f)](_0x988b94(0x196),!0x1),this[_0x988b94(0x14f)](_0x988b94(0x186),!0x1),this[_0x988b94(0x160)]=_0x195e0d,this[_0x988b94(0x178)]=_0x5d4420,this[_0x988b94(0x17d)]=_0x222022,this[_0x988b94(0x170)]=new _0x249b93(_0x4f6a8e,_0x195e0d),this[_0x988b94(0x170)][_0x988b94(0x16f)](_0x988b94(0x163))['to'](this),this[_0x988b94(0x148)]=new _0x5f0ca8(_0x4f6a8e,_0x1dece3(_0x4f6a8e,_0x988b94(0x183))),this[_0x988b94(0x193)](this,_0x988b94(0x163),()=>{const _0x293f7f=_0x988b94;this[_0x293f7f(0x188)]();}),this[_0x988b94(0x166)]=new _0x45fca5(_0x4f6a8e,_0x195e0d,Object[_0x988b94(0x152)]({'CommentView':this[_0x988b94(0x17d)][_0x988b94(0x17c)]},_0x222022)),this[_0x988b94(0x166)][_0x988b94(0x16f)](_0x988b94(0x184))['to'](this),this[_0x988b94(0x166)][_0x988b94(0x16f)](_0x988b94(0x18c))['to'](this),this[_0x988b94(0x166)][_0x988b94(0x16f)](_0x988b94(0x15f))['to'](this),this[_0x988b94(0x166)][_0x988b94(0x16f)](_0x988b94(0x17f))['to'](this),this[_0x988b94(0x166)][_0x988b94(0x16f)](_0x988b94(0x172))['to'](this),this[_0x988b94(0x166)][_0x988b94(0x180)](_0x988b94(0x196))['to'](this),this[_0x988b94(0x193)](this,_0x988b94(0x15f),()=>{const _0x3684b2=_0x988b94;this[_0x3684b2(0x188)]();}),this[_0x988b94(0x14f)](_0x988b94(0x17a),this[_0x988b94(0x166)][_0x988b94(0x17a)]),this[_0x988b94(0x180)](_0x988b94(0x17a))['to'](this[_0x988b94(0x166)],_0x988b94(0x17a)),this[_0x988b94(0x16b)]=this[_0x988b94(0x195)](),this[_0x988b94(0x16b)][_0x988b94(0x16f)](_0x988b94(0x17f))['to'](this),this[_0x988b94(0x16b)][_0x988b94(0x16f)](_0x988b94(0x172))['to'](this),this['on'](_0x988b94(0x184),()=>this[_0x988b94(0x188)]()),this[_0x988b94(0x180)](_0x988b94(0x186))['to'](this[_0x988b94(0x166)],_0x988b94(0x16a),this[_0x988b94(0x16b)][_0x988b94(0x155)],_0x988b94(0x16e),(_0x522bc8,_0x304d10)=>_0x522bc8||!!_0x304d10),this[_0x988b94(0x180)](_0x988b94(0x154))['to'](_0x195e0d,_0x988b94(0x18f),_0x3cb989=>!!_0x3cb989),this[_0x988b94(0x180)](_0x988b94(0x177))['to'](this,_0x988b94(0x17a),_0x499167=>{const _0xcbafb2=_0x988b94,_0x18fc31=this[_0xcbafb2(0x160)][_0xcbafb2(0x194)][_0xcbafb2(0x158)]?this[_0xcbafb2(0x160)][_0xcbafb2(0x194)][_0xcbafb2(0x158)][_0xcbafb2(0x176)][_0xcbafb2(0x187)]:this[_0xcbafb2(0x178)][_0xcbafb2(0x187)];return _0x1dece3(this[_0xcbafb2(0x17e)],_0xcbafb2(0x18b),[_0x499167,_0x18fc31]);}),this[_0x988b94(0x18e)]=this[_0x988b94(0x157)]([this[_0x988b94(0x166)],this[_0x988b94(0x16b)]]),this[_0x988b94(0x159)]=new _0x42bd94(),this[_0x988b94(0x199)]=new _0x3fd5b8(),this[_0x988b94(0x16d)]=new _0x5064e5({'focusables':this[_0x988b94(0x18e)],'focusTracker':this[_0x988b94(0x159)],'keystrokeHandler':this[_0x988b94(0x199)],'keystrokeHandlerOptions':{'filter':_0x143736=>_0x143736[_0x988b94(0x169)]!==this[_0x988b94(0x15e)]},'actions':{'focusPrevious':_0x988b94(0x14c),'focusNext':_0x988b94(0x198)}});}[_0x548f54(0x188)](){const _0x2f670e=_0x548f54;this[_0x2f670e(0x15e)][_0x2f670e(0x188)]();}[_0x548f54(0x151)](){const _0x2b09ac=_0x548f54;super[_0x2b09ac(0x151)](),_0x332046(this,this[_0x2b09ac(0x18e)]);}async[_0x548f54(0x14b)](){const _0x2e5c59=_0x548f54;this[_0x2e5c59(0x186)]=!0x1,this[_0x2e5c59(0x166)][_0x2e5c59(0x14b)](),await this[_0x2e5c59(0x16b)][_0x2e5c59(0x14b)](),super[_0x2e5c59(0x14b)]();}[_0x548f54(0x195)](){const _0x452c15=_0x548f54,_0x57ec0e=new _0x1b9dc4(this[_0x452c15(0x17e)],this[_0x452c15(0x178)],this[_0x452c15(0x17d)][_0x452c15(0x15a)]),_0x3ed2b6=_0x57ec0e[_0x452c15(0x155)];return _0x57ec0e[_0x452c15(0x180)](_0x452c15(0x18a))['to'](this,_0x452c15(0x196),this[_0x452c15(0x160)],_0x452c15(0x167),this[_0x452c15(0x160)],_0x452c15(0x162),this[_0x452c15(0x160)],_0x452c15(0x17b),_0x3ed2b6,_0x452c15(0x16e),(_0xc06669,_0x19dd4d,_0x33b9f7,_0x2a5014,_0x54dfb7)=>!!_0x54dfb7||!!_0x2a5014&&_0x33b9f7&&!_0x19dd4d||_0xc06669&&_0x33b9f7&&!_0x19dd4d),_0x3ed2b6[_0x452c15(0x180)](_0x452c15(0x189))['to'](this,_0x452c15(0x17a),this[_0x452c15(0x160)],_0x452c15(0x15b),this[_0x452c15(0x160)],_0x452c15(0x156),(_0x2cc409,_0x4957b9,_0x3f214a)=>{const _0xc8ba90=_0x452c15;let _0x183de2;return _0x183de2=_0x3f214a&&_0x4957b9?_0xc8ba90(0x164):_0x2cc409?_0xc8ba90(0x190):_0xc8ba90(0x16c),_0x1dece3(this[_0xc8ba90(0x17e)],_0x183de2);}),_0x3ed2b6[_0x452c15(0x180)](_0x452c15(0x182))['to'](this,_0x452c15(0x17a),_0x5dadb0=>_0x1dece3(this[_0x452c15(0x17e)],_0x5dadb0?_0x452c15(0x15c):_0x452c15(0x181))),_0x3ed2b6['on'](_0x452c15(0x161),(_0x4113da,_0x29a341)=>{const _0xce9af2=_0x452c15;this[_0xce9af2(0x14a)](_0xce9af2(0x165),_0x29a341),this[_0xce9af2(0x160)][_0xce9af2(0x156)]&&this[_0xce9af2(0x160)][_0xce9af2(0x15b)]&&this[_0xce9af2(0x14a)](_0xce9af2(0x163),this[_0xce9af2(0x160)]['id']),this[_0xce9af2(0x160)][_0xce9af2(0x153)]||this[_0xce9af2(0x14a)](_0xce9af2(0x185));}),_0x3ed2b6['on'](_0x452c15(0x179),()=>{const _0x47f073=_0x452c15;this[_0x47f073(0x188)]();}),_0x3ed2b6[_0x452c15(0x180)](_0x452c15(0x175))['to'](this[_0x452c15(0x160)],_0x452c15(0x167)),_0x3ed2b6['on'](_0x452c15(0x179),_0x5cedee=>{const _0x737dd6=_0x452c15;0x0==this[_0x737dd6(0x17a)]&&(this[_0x737dd6(0x14a)](_0x737dd6(0x14e)),_0x5cedee[_0x737dd6(0x173)]());}),this['on'](_0x452c15(0x150),(_0x4438cc,_0x1599bc,_0x23c5b3)=>{const _0x1ae444=_0x452c15;_0x23c5b3||this[_0x1ae444(0x17a)]||_0x3ed2b6[_0x1ae444(0x16e)]||this[_0x1ae444(0x14a)](_0x1ae444(0x14e));}),_0x57ec0e;}}