@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
23 lines • 9.39 kB
JavaScript
/*
* Copyright (c) 2003-2026, 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 _0x4baf1b=_0x2b4a;(function(_0x108627,_0x4ab745){const _0x2c01ed=_0x2b4a,_0x20a160=_0x108627();while(!![]){try{const _0x417949=-parseInt(_0x2c01ed(0x1a7))/0x1+-parseInt(_0x2c01ed(0x1b1))/0x2*(-parseInt(_0x2c01ed(0x1a1))/0x3)+parseInt(_0x2c01ed(0x1cd))/0x4+parseInt(_0x2c01ed(0x1c3))/0x5+parseInt(_0x2c01ed(0x1a0))/0x6*(-parseInt(_0x2c01ed(0x1b8))/0x7)+-parseInt(_0x2c01ed(0x1c0))/0x8+parseInt(_0x2c01ed(0x1a9))/0x9;if(_0x417949===_0x4ab745)break;else _0x20a160['push'](_0x20a160['shift']());}catch(_0x4dd053){_0x20a160['push'](_0x20a160['shift']());}}}(_0x143b,0x4d83f));import{FocusCycler as _0x23cc53,View as _0x4372b2}from'ckeditor5/src/ui.js';import{FocusTracker as _0x1cd75e,KeystrokeHandler as _0xea4f08}from'ckeditor5/src/utils.js';import{CommentThreadInputView as _0x2e85c2}from'./commentthreadinputview.js';import{CommentsListView as _0x3d0d40}from'./commentslistview.js';import{CommentThreadHeaderView as _0x2f7c35}from'./commentthreadheaderview.js';function _0x143b(){const _0x24692f=['placeholder','first','hasDirtyComment','Reply...','canComment','_createCommentThreadInputView','createCollection','archivedAt','value','fire','showInput','length','delegate','CommentView','_localUser','stop','_config','element','tab','COMMENT_THREAD_DESCRIPTION','Reply\x20to\x20reopen\x20discussion...','isSubmitted','set','shift+tab','isResolved','resolveCommentThread','24OQeDLM','18YkYWoU','ariaLabel','commentsListView','editorDestroyed','comments','author','263204heNmzK','editorReady','4101885vxLZRi','name','destroy','render','focus','commentThreadInputView','submit','isResolvable','99496WvzObm','focusables','submitLabel','COMMENT_THREAD_LABEL','isActive','reopenCommentThread','unlinkedAt','385721PFAzQq','commentInputView','editorConfig','keystrokes','Write\x20a\x20comment...','_model','Reply','Comment','4544384iVHskd','removeComment','change:isActive','1796570XduWng','addComment','removeCommentThread','isUnlinked','focusCycler','isDirty','isReadOnly','assign','updateComment','target','1022400sioaxV','ariaDescriptionView','focusTracker','bind','listenTo','disabledSubmit','locale','cancel','commentThreadHeaderView','submitCommentThread'];_0x143b=function(){return _0x24692f;};return _0x143b();}import{getTranslation as _0x381179}from'../../../utils/common-translations.js';function _0x2b4a(_0x12cdcf,_0x350b11){const _0x143b02=_0x143b();return _0x2b4a=function(_0x2b4a6e,_0x21789b){_0x2b4a6e=_0x2b4a6e-0x195;let _0x381d2e=_0x143b02[_0x2b4a6e];return _0x381d2e;},_0x2b4a(_0x12cdcf,_0x350b11);}import{AriaDescriptionView as _0x15d341,setupThreadKeyboardNavigation as _0x5092b7}from'ckeditor5-collaboration/src/collaboration-core.js';export class BaseCommentThreadView extends _0x4372b2{[_0x4baf1b(0x1bd)];[_0x4baf1b(0x196)];[_0x4baf1b(0x1d5)];[_0x4baf1b(0x1ae)];[_0x4baf1b(0x1ce)];[_0x4baf1b(0x1b2)];[_0x4baf1b(0x1cf)];[_0x4baf1b(0x1bb)];[_0x4baf1b(0x1c7)];constructor(_0xa20dd2,_0x8a4c71,_0x2d7dc4,_0x2994af){const _0x4be9ae=_0x4baf1b;super(_0xa20dd2),this[_0x4be9ae(0x19c)](_0x4be9ae(0x1b5),!0x1),this[_0x4be9ae(0x19c)](_0x4be9ae(0x1c8),!0x1),this[_0x4be9ae(0x1bd)]=_0x8a4c71,this[_0x4be9ae(0x1e5)]=_0x2d7dc4,this[_0x4be9ae(0x196)]=_0x2994af,this[_0x4be9ae(0x1d5)]=new _0x2f7c35(_0xa20dd2,_0x8a4c71),this[_0x4be9ae(0x1d5)][_0x4be9ae(0x1e3)](_0x4be9ae(0x1b6))['to'](this),this[_0x4be9ae(0x1ce)]=new _0x15d341(_0xa20dd2,_0x381179(_0xa20dd2,_0x4be9ae(0x199))),this[_0x4be9ae(0x1d1)](this,_0x4be9ae(0x1b6),()=>{const _0x5957e5=_0x4be9ae;this[_0x5957e5(0x1ad)]();}),this[_0x4be9ae(0x1a3)]=new _0x3d0d40(_0xa20dd2,_0x8a4c71,Object[_0x4be9ae(0x1ca)]({'CommentView':this[_0x4be9ae(0x196)][_0x4be9ae(0x1e4)]},_0x2994af)),this[_0x4be9ae(0x1a3)][_0x4be9ae(0x1e3)](_0x4be9ae(0x1c1))['to'](this),this[_0x4be9ae(0x1a3)][_0x4be9ae(0x1e3)](_0x4be9ae(0x1cb))['to'](this),this[_0x4be9ae(0x1a3)][_0x4be9ae(0x1e3)](_0x4be9ae(0x19f))['to'](this),this[_0x4be9ae(0x1a3)][_0x4be9ae(0x1e3)](_0x4be9ae(0x1a8))['to'](this),this[_0x4be9ae(0x1a3)][_0x4be9ae(0x1e3)](_0x4be9ae(0x1a4))['to'](this),this[_0x4be9ae(0x1a3)][_0x4be9ae(0x1d0)](_0x4be9ae(0x1b5))['to'](this),this[_0x4be9ae(0x1d1)](this,_0x4be9ae(0x19f),()=>{const _0x404798=_0x4be9ae;this[_0x404798(0x1ad)]();}),this[_0x4be9ae(0x19c)](_0x4be9ae(0x1e2),this[_0x4be9ae(0x1a3)][_0x4be9ae(0x1e2)]),this[_0x4be9ae(0x1d0)](_0x4be9ae(0x1e2))['to'](this[_0x4be9ae(0x1a3)],_0x4be9ae(0x1e2)),this[_0x4be9ae(0x1ae)]=this[_0x4be9ae(0x1dc)](),this[_0x4be9ae(0x1ae)][_0x4be9ae(0x1e3)](_0x4be9ae(0x1a8))['to'](this),this[_0x4be9ae(0x1ae)][_0x4be9ae(0x1e3)](_0x4be9ae(0x1a4))['to'](this),this['on'](_0x4be9ae(0x1c1),()=>this[_0x4be9ae(0x1ad)]()),this[_0x4be9ae(0x1d0)](_0x4be9ae(0x1c8))['to'](this[_0x4be9ae(0x1a3)],_0x4be9ae(0x1d9),this[_0x4be9ae(0x1ae)][_0x4be9ae(0x1b9)],_0x4be9ae(0x1df),(_0x56ee11,_0x44f395)=>_0x56ee11||!!_0x44f395),this[_0x4be9ae(0x1d0)](_0x4be9ae(0x1c6))['to'](_0x8a4c71,_0x4be9ae(0x1b7),_0x32fcb8=>!!_0x32fcb8),this[_0x4be9ae(0x1d0)](_0x4be9ae(0x1a2))['to'](this,_0x4be9ae(0x1e2),_0x4d86e0=>{const _0x50d01a=_0x4be9ae,_0x5b5272=this[_0x50d01a(0x1bd)][_0x50d01a(0x1a5)][_0x50d01a(0x1d8)]?this[_0x50d01a(0x1bd)][_0x50d01a(0x1a5)][_0x50d01a(0x1d8)][_0x50d01a(0x1a6)][_0x50d01a(0x1aa)]:this[_0x50d01a(0x1e5)][_0x50d01a(0x1aa)];return _0x381179(this[_0x50d01a(0x1d3)],_0x50d01a(0x1b4),[_0x4d86e0,_0x5b5272]);}),this[_0x4be9ae(0x1b2)]=this[_0x4be9ae(0x1dd)]([this[_0x4be9ae(0x1a3)],this[_0x4be9ae(0x1ae)]]),this[_0x4be9ae(0x1cf)]=new _0x1cd75e(),this[_0x4be9ae(0x1bb)]=new _0xea4f08(),this[_0x4be9ae(0x1c7)]=new _0x23cc53({'focusables':this[_0x4be9ae(0x1b2)],'focusTracker':this[_0x4be9ae(0x1cf)],'keystrokeHandler':this[_0x4be9ae(0x1bb)],'keystrokeHandlerOptions':{'filter':_0x142ded=>_0x142ded[_0x4be9ae(0x1cc)]!==this[_0x4be9ae(0x197)]},'actions':{'focusPrevious':_0x4be9ae(0x19d),'focusNext':_0x4be9ae(0x198)}});}[_0x4baf1b(0x1ad)](){const _0x5263f5=_0x4baf1b;this[_0x5263f5(0x197)][_0x5263f5(0x1ad)]();}[_0x4baf1b(0x1ac)](){const _0x150f0b=_0x4baf1b;super[_0x150f0b(0x1ac)](),_0x5092b7(this,this[_0x150f0b(0x1b2)]);}async[_0x4baf1b(0x1ab)](){const _0x291016=_0x4baf1b;this[_0x291016(0x1c8)]=!0x1,this[_0x291016(0x1a3)][_0x291016(0x1ab)](),await this[_0x291016(0x1ae)][_0x291016(0x1ab)](),super[_0x291016(0x1ab)]();}[_0x4baf1b(0x1dc)](){const _0x40a7aa=_0x4baf1b,_0x390075=new _0x2e85c2(this[_0x40a7aa(0x1d3)],this[_0x40a7aa(0x1e5)],this[_0x40a7aa(0x196)][_0x40a7aa(0x1ba)]),_0x1e8e12=_0x390075[_0x40a7aa(0x1b9)];return _0x390075[_0x40a7aa(0x1d0)](_0x40a7aa(0x1e1))['to'](this,_0x40a7aa(0x1b5),this[_0x40a7aa(0x1bd)],_0x40a7aa(0x1c9),this[_0x40a7aa(0x1bd)],_0x40a7aa(0x1db),this[_0x40a7aa(0x1bd)],_0x40a7aa(0x1de),_0x1e8e12,_0x40a7aa(0x1df),(_0x2e7bb4,_0x5c65e2,_0x3b13e0,_0x1d2060,_0x29437a)=>!!_0x29437a||!!_0x1d2060&&_0x3b13e0&&!_0x5c65e2||_0x2e7bb4&&_0x3b13e0&&!_0x5c65e2),_0x1e8e12[_0x40a7aa(0x1d0)](_0x40a7aa(0x1d7))['to'](this,_0x40a7aa(0x1e2),this[_0x40a7aa(0x1bd)],_0x40a7aa(0x1b0),this[_0x40a7aa(0x1bd)],_0x40a7aa(0x19e),(_0x383061,_0x225d13,_0x2ad250)=>{const _0x317585=_0x40a7aa;let _0x438321;return _0x438321=_0x2ad250&&_0x225d13?_0x317585(0x19a):_0x383061?_0x317585(0x1da):_0x317585(0x1bc),_0x381179(this[_0x317585(0x1d3)],_0x438321);}),_0x1e8e12[_0x40a7aa(0x1d0)](_0x40a7aa(0x1b3))['to'](this,_0x40a7aa(0x1e2),_0xd01fb4=>_0x381179(this[_0x40a7aa(0x1d3)],_0xd01fb4?_0x40a7aa(0x1be):_0x40a7aa(0x1bf))),_0x1e8e12['on'](_0x40a7aa(0x1af),(_0x51621b,_0x40b235)=>{const _0x1b85f7=_0x40a7aa;this[_0x1b85f7(0x1e0)](_0x1b85f7(0x1c4),_0x40b235),this[_0x1b85f7(0x1bd)][_0x1b85f7(0x19e)]&&this[_0x1b85f7(0x1bd)][_0x1b85f7(0x1b0)]&&this[_0x1b85f7(0x1e0)](_0x1b85f7(0x1b6),this[_0x1b85f7(0x1bd)]['id']),this[_0x1b85f7(0x1bd)][_0x1b85f7(0x19b)]||this[_0x1b85f7(0x1e0)](_0x1b85f7(0x1d6));}),_0x1e8e12['on'](_0x40a7aa(0x1d4),()=>{const _0x4c2c0d=_0x40a7aa;this[_0x4c2c0d(0x1ad)]();}),_0x1e8e12[_0x40a7aa(0x1d0)](_0x40a7aa(0x1d2))['to'](this[_0x40a7aa(0x1bd)],_0x40a7aa(0x1c9)),_0x1e8e12['on'](_0x40a7aa(0x1d4),_0x2848b8=>{const _0x14ff23=_0x40a7aa;0x0==this[_0x14ff23(0x1e2)]&&(this[_0x14ff23(0x1e0)](_0x14ff23(0x1c5)),_0x2848b8[_0x14ff23(0x195)]());}),this['on'](_0x40a7aa(0x1c2),(_0x40bffe,_0x51641f,_0x3c77ba)=>{const _0x5bf817=_0x40a7aa;_0x3c77ba||this[_0x5bf817(0x1e2)]||_0x1e8e12[_0x5bf817(0x1df)]||this[_0x5bf817(0x1e0)](_0x5bf817(0x1c5));}),_0x390075;}}