@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
23 lines • 9.47 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 _0x42593b=_0x4645;(function(_0x7f1b3a,_0x4e5930){const _0x4e03ea=_0x4645,_0x536783=_0x7f1b3a();while(!![]){try{const _0x37c46d=-parseInt(_0x4e03ea(0x219))/0x1*(-parseInt(_0x4e03ea(0x217))/0x2)+-parseInt(_0x4e03ea(0x200))/0x3*(-parseInt(_0x4e03ea(0x202))/0x4)+parseInt(_0x4e03ea(0x20a))/0x5+-parseInt(_0x4e03ea(0x1fa))/0x6*(parseInt(_0x4e03ea(0x1cd))/0x7)+-parseInt(_0x4e03ea(0x1fe))/0x8+-parseInt(_0x4e03ea(0x1d5))/0x9*(-parseInt(_0x4e03ea(0x1cf))/0xa)+parseInt(_0x4e03ea(0x1f2))/0xb;if(_0x37c46d===_0x4e5930)break;else _0x536783['push'](_0x536783['shift']());}catch(_0x3392af){_0x536783['push'](_0x536783['shift']());}}}(_0x3e7d,0x1aba2));function _0x3e7d(){const _0x5ca429=['archivedAt','Reply','isUnlinked','keystrokes','isActive','focusables','commentsListView','1521828ctpjGs','resolveCommentThread','disabledSubmit','value','_createCommentThreadInputView','fire','isResolvable','render','54zWQbVe','COMMENT_THREAD_DESCRIPTION','placeholder','editorDestroyed','1099472NRRMHs','isReadOnly','3TCHFMx','isResolved','190916AvKebB','isDirty','name','editorReady','editorConfig','set','ariaLabel','target','345345LznHPe','cancel','author','focusCycler','hasDirtyComment','removeCommentThread','CommentView','COMMENT_THREAD_LABEL','commentThreadInputView','canComment','submit','showInput','destroy','40114UNjmjz','_localUser','1wGqaat','change:isActive','length','Comment','shift+tab','_model','bind','139685XDBKNY','unlinkedAt','22250mpgbVG','assign','updateComment','addComment','submitLabel','createCollection','612qBzdoF','Reply...','removeComment','commentInputView','reopenCommentThread','isSubmitted','_config','locale','delegate','tab','submitCommentThread','Reply\x20to\x20reopen\x20discussion...','element','comments','stop','Write\x20a\x20comment...','commentThreadHeaderView','listenTo','focusTracker','first','focus','ariaDescriptionView'];_0x3e7d=function(){return _0x5ca429;};return _0x3e7d();}import{FocusCycler as _0x101ff3,View as _0x56224a}from'ckeditor5/src/ui.js';import{FocusTracker as _0x84d4f3,KeystrokeHandler as _0xf7f2}from'ckeditor5/src/utils.js';import{CommentThreadInputView as _0x4d8b77}from'./commentthreadinputview.js';import{CommentsListView as _0x80f7cf}from'./commentslistview.js';import{CommentThreadHeaderView as _0x58d6f6}from'./commentthreadheaderview.js';import{getTranslation as _0x40d3a0}from'../../../utils/common-translations.js';function _0x4645(_0x50e321,_0x8c37d){const _0x3e7d5c=_0x3e7d();return _0x4645=function(_0x4645a6,_0x1efe40){_0x4645a6=_0x4645a6-0x1c7;let _0x594bc1=_0x3e7d5c[_0x4645a6];return _0x594bc1;},_0x4645(_0x50e321,_0x8c37d);}import{AriaDescriptionView as _0x3dbf8a,setupThreadKeyboardNavigation as _0x2e167a}from'ckeditor5-collaboration/src/collaboration-core.js';export class BaseCommentThreadView extends _0x56224a{[_0x42593b(0x1cb)];[_0x42593b(0x1db)];[_0x42593b(0x1e5)];[_0x42593b(0x212)];[_0x42593b(0x1ea)];[_0x42593b(0x1f0)];[_0x42593b(0x1e7)];[_0x42593b(0x1ee)];[_0x42593b(0x20d)];constructor(_0x532958,_0x1bb763,_0x1e3f28,_0x88dfe4){const _0x698006=_0x42593b;super(_0x532958),this[_0x698006(0x207)](_0x698006(0x1ef),!0x1),this[_0x698006(0x207)](_0x698006(0x203),!0x1),this[_0x698006(0x1cb)]=_0x1bb763,this[_0x698006(0x218)]=_0x1e3f28,this[_0x698006(0x1db)]=_0x88dfe4,this[_0x698006(0x1e5)]=new _0x58d6f6(_0x532958,_0x1bb763),this[_0x698006(0x1e5)][_0x698006(0x1dd)](_0x698006(0x1d9))['to'](this),this[_0x698006(0x1ea)]=new _0x3dbf8a(_0x532958,_0x40d3a0(_0x532958,_0x698006(0x1fb))),this[_0x698006(0x1e6)](this,_0x698006(0x1d9),()=>{const _0x822a95=_0x698006;this[_0x822a95(0x1e9)]();}),this[_0x698006(0x1f1)]=new _0x80f7cf(_0x532958,_0x1bb763,Object[_0x698006(0x1d0)]({'CommentView':this[_0x698006(0x1db)][_0x698006(0x210)]},_0x88dfe4)),this[_0x698006(0x1f1)][_0x698006(0x1dd)](_0x698006(0x1d7))['to'](this),this[_0x698006(0x1f1)][_0x698006(0x1dd)](_0x698006(0x1d1))['to'](this),this[_0x698006(0x1f1)][_0x698006(0x1dd)](_0x698006(0x1f3))['to'](this),this[_0x698006(0x1f1)][_0x698006(0x1dd)](_0x698006(0x205))['to'](this),this[_0x698006(0x1f1)][_0x698006(0x1dd)](_0x698006(0x1fd))['to'](this),this[_0x698006(0x1f1)][_0x698006(0x1cc)](_0x698006(0x1ef))['to'](this),this[_0x698006(0x1e6)](this,_0x698006(0x1f3),()=>{const _0x3bdbc9=_0x698006;this[_0x3bdbc9(0x1e9)]();}),this[_0x698006(0x207)](_0x698006(0x1c8),this[_0x698006(0x1f1)][_0x698006(0x1c8)]),this[_0x698006(0x1cc)](_0x698006(0x1c8))['to'](this[_0x698006(0x1f1)],_0x698006(0x1c8)),this[_0x698006(0x212)]=this[_0x698006(0x1f6)](),this[_0x698006(0x212)][_0x698006(0x1dd)](_0x698006(0x205))['to'](this),this[_0x698006(0x212)][_0x698006(0x1dd)](_0x698006(0x1fd))['to'](this),this['on'](_0x698006(0x1d7),()=>this[_0x698006(0x1e9)]()),this[_0x698006(0x1cc)](_0x698006(0x203))['to'](this[_0x698006(0x1f1)],_0x698006(0x20e),this[_0x698006(0x212)][_0x698006(0x1d8)],_0x698006(0x1f5),(_0x1f62a8,_0x4da106)=>_0x1f62a8||!!_0x4da106),this[_0x698006(0x1cc)](_0x698006(0x1ed))['to'](_0x1bb763,_0x698006(0x1ce),_0x2619a6=>!!_0x2619a6),this[_0x698006(0x1cc)](_0x698006(0x208))['to'](this,_0x698006(0x1c8),_0x468301=>{const _0x3f99ea=_0x698006,_0x4425d6=this[_0x3f99ea(0x1cb)][_0x3f99ea(0x1e2)][_0x3f99ea(0x1e8)]?this[_0x3f99ea(0x1cb)][_0x3f99ea(0x1e2)][_0x3f99ea(0x1e8)][_0x3f99ea(0x20c)][_0x3f99ea(0x204)]:this[_0x3f99ea(0x218)][_0x3f99ea(0x204)];return _0x40d3a0(this[_0x3f99ea(0x1dc)],_0x3f99ea(0x211),[_0x468301,_0x4425d6]);}),this[_0x698006(0x1f0)]=this[_0x698006(0x1d4)]([this[_0x698006(0x1f1)],this[_0x698006(0x212)]]),this[_0x698006(0x1e7)]=new _0x84d4f3(),this[_0x698006(0x1ee)]=new _0xf7f2(),this[_0x698006(0x20d)]=new _0x101ff3({'focusables':this[_0x698006(0x1f0)],'focusTracker':this[_0x698006(0x1e7)],'keystrokeHandler':this[_0x698006(0x1ee)],'keystrokeHandlerOptions':{'filter':_0x1c5369=>_0x1c5369[_0x698006(0x209)]!==this[_0x698006(0x1e1)]},'actions':{'focusPrevious':_0x698006(0x1ca),'focusNext':_0x698006(0x1de)}});}[_0x42593b(0x1e9)](){const _0x39353c=_0x42593b;this[_0x39353c(0x1e1)][_0x39353c(0x1e9)]();}[_0x42593b(0x1f9)](){const _0x293aef=_0x42593b;super[_0x293aef(0x1f9)](),_0x2e167a(this,this[_0x293aef(0x1f0)]);}async[_0x42593b(0x216)](){const _0x1538cf=_0x42593b;this[_0x1538cf(0x203)]=!0x1,this[_0x1538cf(0x1f1)][_0x1538cf(0x216)](),await this[_0x1538cf(0x212)][_0x1538cf(0x216)](),super[_0x1538cf(0x216)]();}[_0x42593b(0x1f6)](){const _0x405176=_0x42593b,_0x30d8eb=new _0x4d8b77(this[_0x405176(0x1dc)],this[_0x405176(0x218)],this[_0x405176(0x1db)][_0x405176(0x206)]),_0x3142b3=_0x30d8eb[_0x405176(0x1d8)];return _0x30d8eb[_0x405176(0x1cc)](_0x405176(0x215))['to'](this,_0x405176(0x1ef),this[_0x405176(0x1cb)],_0x405176(0x1ff),this[_0x405176(0x1cb)],_0x405176(0x213),this[_0x405176(0x1cb)],_0x405176(0x1eb),_0x3142b3,_0x405176(0x1f5),(_0x614de,_0x133d37,_0x37f4c7,_0x3b9780,_0x47696e)=>!!_0x47696e||!!_0x3b9780&&_0x37f4c7&&!_0x133d37||_0x614de&&_0x37f4c7&&!_0x133d37),_0x3142b3[_0x405176(0x1cc)](_0x405176(0x1fc))['to'](this,_0x405176(0x1c8),this[_0x405176(0x1cb)],_0x405176(0x1f8),this[_0x405176(0x1cb)],_0x405176(0x201),(_0x1e1400,_0x34e254,_0x60ed2b)=>{const _0x159b00=_0x405176;let _0x44c7fa;return _0x44c7fa=_0x60ed2b&&_0x34e254?_0x159b00(0x1e0):_0x1e1400?_0x159b00(0x1d6):_0x159b00(0x1e4),_0x40d3a0(this[_0x159b00(0x1dc)],_0x44c7fa);}),_0x3142b3[_0x405176(0x1cc)](_0x405176(0x1d3))['to'](this,_0x405176(0x1c8),_0x9ef976=>_0x40d3a0(this[_0x405176(0x1dc)],_0x9ef976?_0x405176(0x1ec):_0x405176(0x1c9))),_0x3142b3['on'](_0x405176(0x214),(_0x4e9b0e,_0x145908)=>{const _0x4e782e=_0x405176;this[_0x4e782e(0x1f7)](_0x4e782e(0x1d2),_0x145908),this[_0x4e782e(0x1cb)][_0x4e782e(0x201)]&&this[_0x4e782e(0x1cb)][_0x4e782e(0x1f8)]&&this[_0x4e782e(0x1f7)](_0x4e782e(0x1d9),this[_0x4e782e(0x1cb)]['id']),this[_0x4e782e(0x1cb)][_0x4e782e(0x1da)]||this[_0x4e782e(0x1f7)](_0x4e782e(0x1df));}),_0x3142b3['on'](_0x405176(0x20b),()=>{const _0x4dc72f=_0x405176;this[_0x4dc72f(0x1e9)]();}),_0x3142b3[_0x405176(0x1cc)](_0x405176(0x1f4))['to'](this[_0x405176(0x1cb)],_0x405176(0x1ff)),_0x3142b3['on'](_0x405176(0x20b),_0x187ef2=>{const _0x1dda70=_0x405176;0x0==this[_0x1dda70(0x1c8)]&&(this[_0x1dda70(0x1f7)](_0x1dda70(0x20f)),_0x187ef2[_0x1dda70(0x1e3)]());}),this['on'](_0x405176(0x1c7),(_0x9b74de,_0x2d6834,_0x341434)=>{const _0x2159aa=_0x405176;_0x341434||this[_0x2159aa(0x1c8)]||_0x3142b3[_0x2159aa(0x1f5)]||this[_0x2159aa(0x1f7)](_0x2159aa(0x20f));}),_0x30d8eb;}}