@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
23 lines • 9.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 _0x481ae8=_0x65c7;(function(_0x41e9ff,_0x525c25){const _0x4c824d=_0x65c7,_0x33e644=_0x41e9ff();while(!![]){try{const _0x413848=parseInt(_0x4c824d(0x13e))/0x1+parseInt(_0x4c824d(0x167))/0x2*(-parseInt(_0x4c824d(0x166))/0x3)+parseInt(_0x4c824d(0x177))/0x4*(parseInt(_0x4c824d(0x15c))/0x5)+parseInt(_0x4c824d(0x171))/0x6+parseInt(_0x4c824d(0x17e))/0x7+parseInt(_0x4c824d(0x159))/0x8+parseInt(_0x4c824d(0x15d))/0x9*(-parseInt(_0x4c824d(0x17a))/0xa);if(_0x413848===_0x525c25)break;else _0x33e644['push'](_0x33e644['shift']());}catch(_0x239144){_0x33e644['push'](_0x33e644['shift']());}}}(_0x14ad,0xaa5ed));import{FocusCycler as _0x2a5eae,View as _0x3606d3}from'ckeditor5/src/ui.js';import{FocusTracker as _0x76dc9c,KeystrokeHandler as _0x5a5a12}from'ckeditor5/src/utils.js';import _0x404643 from'./commentthreadinputview.js';function _0x65c7(_0x2f86c5,_0x56b0c4){const _0x14adf1=_0x14ad();return _0x65c7=function(_0x65c7d5,_0x3ab891){_0x65c7d5=_0x65c7d5-0x132;let _0x1bb9b4=_0x14adf1[_0x65c7d5];return _0x1bb9b4;},_0x65c7(_0x2f86c5,_0x56b0c4);}import _0x3c5811 from'./commentslistview.js';import _0x263acf from'./commentthreadheaderview.js';import{getTranslation as _0x54fa55}from'../../../utils/common-translations.js';import{AriaDescriptionView as _0x4bf74c,setupThreadKeyboardNavigation as _0x420175}from'ckeditor5-collaboration/src/collaboration-core.js';export default class is extends _0x3606d3{constructor(_0x485104,_0x49a0a9,_0x440002,_0x23e41c){const _0x225c5d=_0x65c7;super(_0x485104),this[_0x225c5d(0x14d)](_0x225c5d(0x145),!0x1),this[_0x225c5d(0x14d)](_0x225c5d(0x161),!0x1),this[_0x225c5d(0x16c)]=_0x49a0a9,this[_0x225c5d(0x137)]=_0x440002,this[_0x225c5d(0x147)]=_0x23e41c,this[_0x225c5d(0x169)]=new _0x263acf(_0x485104,_0x49a0a9),this[_0x225c5d(0x169)][_0x225c5d(0x17c)](_0x225c5d(0x16a))['to'](this),this[_0x225c5d(0x181)]=new _0x4bf74c(_0x485104,_0x54fa55(_0x485104,_0x225c5d(0x14a))),this[_0x225c5d(0x179)](this,_0x225c5d(0x16a),()=>{const _0x1906cf=_0x225c5d;this[_0x1906cf(0x14b)]();}),this[_0x225c5d(0x149)]=new _0x3c5811(_0x485104,_0x49a0a9,Object[_0x225c5d(0x175)]({'CommentView':this[_0x225c5d(0x147)][_0x225c5d(0x146)]},_0x23e41c)),this[_0x225c5d(0x149)][_0x225c5d(0x17c)](_0x225c5d(0x180))['to'](this),this[_0x225c5d(0x149)][_0x225c5d(0x17c)](_0x225c5d(0x178))['to'](this),this[_0x225c5d(0x149)][_0x225c5d(0x17c)](_0x225c5d(0x132))['to'](this),this[_0x225c5d(0x149)][_0x225c5d(0x17c)](_0x225c5d(0x138))['to'](this),this[_0x225c5d(0x149)][_0x225c5d(0x17c)](_0x225c5d(0x154))['to'](this),this[_0x225c5d(0x149)][_0x225c5d(0x13a)](_0x225c5d(0x145))['to'](this),this[_0x225c5d(0x179)](this,_0x225c5d(0x132),()=>{const _0x10f9b1=_0x225c5d;this[_0x10f9b1(0x14b)]();}),this[_0x225c5d(0x14d)](_0x225c5d(0x153),this[_0x225c5d(0x149)][_0x225c5d(0x153)]),this[_0x225c5d(0x13a)](_0x225c5d(0x153))['to'](this[_0x225c5d(0x149)],_0x225c5d(0x153)),this[_0x225c5d(0x143)]=this[_0x225c5d(0x14f)](),this[_0x225c5d(0x143)][_0x225c5d(0x17c)](_0x225c5d(0x138))['to'](this),this[_0x225c5d(0x143)][_0x225c5d(0x17c)](_0x225c5d(0x154))['to'](this),this['on'](_0x225c5d(0x180),()=>this[_0x225c5d(0x14b)]()),this[_0x225c5d(0x13a)](_0x225c5d(0x161))['to'](this[_0x225c5d(0x149)],_0x225c5d(0x136),this[_0x225c5d(0x143)][_0x225c5d(0x15e)],_0x225c5d(0x13c),(_0x38bbb5,_0x134a51)=>_0x38bbb5||!!_0x134a51),this[_0x225c5d(0x13a)](_0x225c5d(0x164))['to'](_0x49a0a9,_0x225c5d(0x160),_0x3bc9c2=>!!_0x3bc9c2),this[_0x225c5d(0x13a)](_0x225c5d(0x14e))['to'](this,_0x225c5d(0x153),_0xa53e8a=>{const _0x3d4acc=_0x225c5d,_0x15dc0d=this[_0x3d4acc(0x16c)][_0x3d4acc(0x15f)][_0x3d4acc(0x17b)]?this[_0x3d4acc(0x16c)][_0x3d4acc(0x15f)][_0x3d4acc(0x17b)][_0x3d4acc(0x139)][_0x3d4acc(0x151)]:this[_0x3d4acc(0x137)][_0x3d4acc(0x151)];return _0x54fa55(this[_0x3d4acc(0x14c)],_0x3d4acc(0x158),[_0xa53e8a,_0x15dc0d]);}),this[_0x225c5d(0x15b)]=this[_0x225c5d(0x16e)]([this[_0x225c5d(0x149)],this[_0x225c5d(0x143)]]),this[_0x225c5d(0x168)]=new _0x76dc9c(),this[_0x225c5d(0x165)]=new _0x5a5a12(),this[_0x225c5d(0x17f)]=new _0x2a5eae({'focusables':this[_0x225c5d(0x15b)],'focusTracker':this[_0x225c5d(0x168)],'keystrokeHandler':this[_0x225c5d(0x165)],'keystrokeHandlerOptions':{'filter':_0x389bcf=>_0x389bcf[_0x225c5d(0x155)]!==this[_0x225c5d(0x172)]},'actions':{'focusPrevious':_0x225c5d(0x13b),'focusNext':_0x225c5d(0x17d)}});}[_0x481ae8(0x14b)](){const _0x187378=_0x481ae8;this[_0x187378(0x172)][_0x187378(0x14b)]();}[_0x481ae8(0x134)](){const _0x717e33=_0x481ae8;super[_0x717e33(0x134)](),_0x420175(this,this[_0x717e33(0x15b)]);}async[_0x481ae8(0x16f)](){const _0x74a3a7=_0x481ae8;this[_0x74a3a7(0x161)]=!0x1,this[_0x74a3a7(0x149)][_0x74a3a7(0x16f)](),await this[_0x74a3a7(0x143)][_0x74a3a7(0x16f)](),super[_0x74a3a7(0x16f)]();}[_0x481ae8(0x14f)](){const _0x561f3f=_0x481ae8,_0x54a1f5=new _0x404643(this[_0x561f3f(0x14c)],this[_0x561f3f(0x137)],this[_0x561f3f(0x147)][_0x561f3f(0x174)]),_0x688ace=_0x54a1f5[_0x561f3f(0x15e)];return _0x54a1f5[_0x561f3f(0x13a)](_0x561f3f(0x142))['to'](this,_0x561f3f(0x145),this[_0x561f3f(0x16c)],_0x561f3f(0x152),this[_0x561f3f(0x16c)],_0x561f3f(0x156),this[_0x561f3f(0x16c)],_0x561f3f(0x150),_0x688ace,_0x561f3f(0x13c),(_0x1f6bc7,_0x5044d5,_0x1ac009,_0x5baa07,_0x20226c)=>!!_0x20226c||!!_0x5baa07&&_0x1ac009&&!_0x5044d5||_0x1f6bc7&&_0x1ac009&&!_0x5044d5),_0x688ace[_0x561f3f(0x13a)](_0x561f3f(0x16d))['to'](this,_0x561f3f(0x153),this[_0x561f3f(0x16c)],_0x561f3f(0x176),this[_0x561f3f(0x16c)],_0x561f3f(0x182),(_0x541a7a,_0x368e0f,_0x1947a9)=>{const _0x551cb8=_0x561f3f;let _0x33ad1f;return _0x33ad1f=_0x1947a9&&_0x368e0f?_0x551cb8(0x140):_0x541a7a?_0x551cb8(0x162):_0x551cb8(0x170),_0x54fa55(this[_0x551cb8(0x14c)],_0x33ad1f);}),_0x688ace[_0x561f3f(0x13a)](_0x561f3f(0x133))['to'](this,_0x561f3f(0x153),_0x3f6ccb=>_0x54fa55(this[_0x561f3f(0x14c)],_0x3f6ccb?_0x561f3f(0x173):_0x561f3f(0x144))),_0x688ace['on'](_0x561f3f(0x163),(_0x3b70a7,_0x1a6381)=>{const _0x5163a0=_0x561f3f;this[_0x5163a0(0x16b)](_0x5163a0(0x13f),_0x1a6381),this[_0x5163a0(0x16c)][_0x5163a0(0x182)]&&this[_0x5163a0(0x16c)][_0x5163a0(0x176)]&&this[_0x5163a0(0x16b)](_0x5163a0(0x16a),this[_0x5163a0(0x16c)]['id']),this[_0x5163a0(0x16c)][_0x5163a0(0x13d)]||this[_0x5163a0(0x16b)](_0x5163a0(0x135));}),_0x688ace['on'](_0x561f3f(0x148),()=>{const _0x431f70=_0x561f3f;this[_0x431f70(0x14b)]();}),_0x688ace[_0x561f3f(0x13a)](_0x561f3f(0x141))['to'](this[_0x561f3f(0x16c)],_0x561f3f(0x152)),_0x688ace['on'](_0x561f3f(0x148),_0x1d3d7a=>{const _0x235164=_0x561f3f;0x0==this[_0x235164(0x153)]&&(this[_0x235164(0x16b)](_0x235164(0x157)),_0x1d3d7a[_0x235164(0x15a)]());}),this['on'](_0x561f3f(0x183),(_0x5d7ee,_0x160663,_0xab7d52)=>{const _0x3c65fb=_0x561f3f;_0xab7d52||this[_0x3c65fb(0x153)]||_0x688ace[_0x3c65fb(0x13c)]||this[_0x3c65fb(0x16b)](_0x3c65fb(0x157));}),_0x54a1f5;}}function _0x14ad(){const _0x5200cb=['editorDestroyed','target','canComment','removeCommentThread','COMMENT_THREAD_LABEL','4945720wwKxWV','stop','focusables','5YZeNsa','1377NgYznY','commentInputView','comments','unlinkedAt','isDirty','Reply...','submit','isUnlinked','keystrokes','274476hhMgMm','8zwcxXx','focusTracker','commentThreadHeaderView','reopenCommentThread','fire','_model','placeholder','createCollection','destroy','Write\x20a\x20comment...','7423842StJlOj','element','Reply','editorConfig','assign','isResolvable','5105128WPxicA','updateComment','listenTo','275710EQYuei','first','delegate','tab','5690923pNKNCi','focusCycler','removeComment','ariaDescriptionView','isResolved','change:isActive','resolveCommentThread','submitLabel','render','submitCommentThread','hasDirtyComment','_localUser','editorReady','author','bind','shift+tab','value','isSubmitted','1337375xGnRLg','addComment','Reply\x20to\x20reopen\x20discussion...','disabledSubmit','showInput','commentThreadInputView','Comment','isActive','CommentView','_config','cancel','commentsListView','COMMENT_THREAD_DESCRIPTION','focus','locale','set','ariaLabel','_createCommentThreadInputView','archivedAt','name','isReadOnly','length'];_0x14ad=function(){return _0x5200cb;};return _0x14ad();}