@ckeditor/ckeditor5-comments 0.0.0-nightly-20230912.0 → 0.0.0-nightly-20230914.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/comments.js +1 -1
- package/package.json +3 -3
- package/src/annotations/annotation.js +1 -1
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.js +1 -1
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.js +1 -1
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.js +1 -1
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.js +1 -1
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.js +1 -1
- package/src/comments/ui/view/commentview.js +1 -1
- package/src/comments.js +1 -1
- package/src/commentsonly.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b40=['plugins','collaboration.channelId','high','editor','collaboration_features','commands','_handleImportedData','dataInsert','addCommentThread','listenTo','importWord','forEach','importWord.commentsStyles','basic','config','get','afterInit'];(function(_0x31c41a,_0x3b405d){const _0x532365=function(_0x8092f9){while(--_0x8092f9){_0x31c41a['push'](_0x31c41a['shift']());}};_0x532365(++_0x3b405d);}(_0x3b40,0x135));const _0x5323=function(_0x31c41a,_0x3b405d){_0x31c41a=_0x31c41a-0x0;let _0x532365=_0x3b40[_0x31c41a];return _0x532365;};import{Plugin as _0x3f377d}from'ckeditor5/src/core';import{priorities as _0x512cda}from'ckeditor5/src/utils';import{Users as _0xdd2ff7}from'ckeditor5-collaboration/src/collaboration-core';import _0x2f759c from'../commentsrepository';export default class Y extends _0x3f377d{constructor(_0x4c44d5){super(_0x4c44d5),this['editor'][_0x5323('0xb')]['define'](_0x5323('0x9'),_0x5323('0xa'));}[_0x5323('0xd')](){const _0x17de38=this[_0x5323('0x0')],_0x2a674e=_0x17de38[_0x5323('0x2')][_0x5323('0xc')](_0x5323('0x7')),_0x400057=_0x17de38[_0x5323('0xe')]['get'](_0xdd2ff7);_0x2a674e&&(_0x2a674e['on']('execute',(_0xa6fd31,[,_0x3e8f0c])=>{_0x3e8f0c[_0x5323('0x1')]={'comments':!0x0,'user_id':_0x400057['me']['id'],'comments_styles':this[_0x5323('0x0')][_0x5323('0xb')][_0x5323('0xc')]('importWord.commentsStyles')};},{'priority':_0x512cda[_0x5323('0x10')]+0xa}),this[_0x5323('0x6')](_0x2a674e,_0x5323('0x4'),this[_0x5323('0x3')]));}['_handleImportedData'](_0x734b8c,_0x16c81b){const {comment_threads:_0x2c684b}=_0x16c81b;_0x2c684b&&_0x2c684b[_0x5323('0x8')](({thread_id:_0x77d93a,comments:_0x63a1,is_resolved:_0x2272b5})=>{const _0x20bf9f=new Date(),_0x20b71c=_0x63a1['map'](({author:_0x25e8aa,content:_0x28f823,created_at:_0x2f7cea})=>({'content':_0x28f823,'authorId':this[_0x5323('0x0')][_0x5323('0xe')][_0x5323('0xc')](_0xdd2ff7)['me']['id'],'createdAt':_0x20bf9f,'attributes':{'@external':{'authorName':_0x25e8aa,'createdAt':_0x2f7cea?new Date(_0x2f7cea):new Date(),'source':_0x5323('0x7')}}})),_0x2bf6fc=this[_0x5323('0x0')]['config'][_0x5323('0xc')](_0x5323('0xf'));this[_0x5323('0x0')][_0x5323('0xe')]['get'](_0x2f759c)[_0x5323('0x5')]({'channelId':_0x2bf6fc,'threadId':_0x77d93a,'comments':_0x20b71c,'resolvedAt':_0x2272b5?_0x20bf9f:null});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d7d=['createRoot','change:placeholder','get','_updatePlaceholder','childCount','getRoot','config','end','name','change','placeholderElement','focus','defaultPlugins','init','set','document','data','model','view','then','plugins','setSelection','editing','initialData','getChild','placeholder','fire','destroy','ready'];(function(_0x2bc35b,_0x4d7d5e){const _0x3c347e=function(_0x5ce3de){while(--_0x5ce3de){_0x2bc35b['push'](_0x2bc35b['shift']());}};_0x3c347e(++_0x4d7d5e);}(_0x4d7d,0x11b));const _0x3c34=function(_0x2bc35b,_0x4d7d5e){_0x2bc35b=_0x2bc35b-0x0;let _0x3c347e=_0x4d7d[_0x2bc35b];return _0x3c347e;};import{Editor as _0x4f789e,DataApiMixin as _0x40d462}from'ckeditor5/src/core';import _0x441807 from'./commenteditorui';import{ObservableMixin as _0x1d6613}from'ckeditor5/src/utils';import{enablePlaceholder as _0x419921,disablePlaceholder as _0x51a4b8}from'ckeditor5/src/engine';import{Clipboard as _0x347317}from'ckeditor5/src/clipboard';import{Enter as _0x3f7193,ShiftEnter as _0x2040e7}from'ckeditor5/src/enter';import{SelectAll as _0xfe1dd}from'ckeditor5/src/select-all';import{Typing as _0x54344a}from'ckeditor5/src/typing';import{Undo as _0x35951f}from'ckeditor5/src/undo';import{Paragraph as _0x5a8a1a}from'ckeditor5/src/paragraph';const Kt=[_0x347317,_0x3f7193,_0x2040e7,_0xfe1dd,_0x54344a,_0x35951f,_0x5a8a1a];export default class Lt extends _0x1d6613(_0x40d462(_0x4f789e)){constructor(_0x1c52b9={}){(_0x1c52b9=Object['assign']({},_0x1c52b9))[_0x3c34('0x1b')]||(_0x1c52b9[_0x3c34('0x1b')]=Lt[_0x3c34('0x13')]),super(_0x1c52b9),this['ui']=new _0x441807(this),this[_0x3c34('0x15')](_0x3c34('0x3'),''),this[_0x3c34('0x18')]['document']['on'](_0x3c34('0x10'),()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on'](_0x3c34('0x8'),()=>this[_0x3c34('0xa')]()),this[_0x3c34('0x18')][_0x3c34('0x16')][_0x3c34('0x7')]();}['create'](){const _0x542b2c=this[_0x3c34('0xd')][_0x3c34('0x9')](_0x3c34('0x1'))||'';return this['initPlugins']()[_0x3c34('0x1a')](()=>this['ui']['init']())[_0x3c34('0x1a')](()=>this[_0x3c34('0x17')][_0x3c34('0x14')](_0x542b2c))['then'](()=>this[_0x3c34('0x4')](_0x3c34('0x6')));}[_0x3c34('0x5')](){return super[_0x3c34('0x5')]()[_0x3c34('0x1a')](()=>this['ui'][_0x3c34('0x5')]());}[_0x3c34('0x12')](){this[_0x3c34('0x18')][_0x3c34('0x10')](_0x58e0ca=>{const _0xebe35a=this['model'][_0x3c34('0x16')]['getRoot'](),_0x5dfd80=_0xebe35a&&_0xebe35a[_0x3c34('0x2')](_0xebe35a['childCount']-0x1);_0x58e0ca[_0x3c34('0x1c')](_0x5dfd80,_0x3c34('0xe')),this[_0x3c34('0x0')]['view'][_0x3c34('0x12')]();});}[_0x3c34('0xa')](){const _0x1c8f36=this[_0x3c34('0x0')][_0x3c34('0x19')],_0x374ec4=_0x1c8f36[_0x3c34('0x16')][_0x3c34('0xc')](),_0x2533a2=_0x374ec4[_0x3c34('0x2')](0x0);_0x374ec4[_0x3c34('0xb')]>0x1||!_0x2533a2||'p'!=_0x2533a2[_0x3c34('0xf')]?this[_0x3c34('0x11')]&&this[_0x3c34('0x11')][_0x3c34('0x3')]&&(_0x51a4b8(_0x1c8f36,this['placeholderElement']),this[_0x3c34('0x11')]=void 0x0):(this[_0x3c34('0x3')]&&(_0x2533a2[_0x3c34('0x3')]=this[_0x3c34('0x3')]),_0x419921({'view':_0x1c8f36,'element':_0x2533a2,'keepOnFocus':!0x0}),this[_0x3c34('0x11')]=_0x2533a2);}}Lt[_0x3c34('0x13')]=Kt;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xd94c=['init','rootName','getRoot','name','ready','attachDomRoot','focusTracker','locale','editing','fire','editable','destroy','view','render','editor','element','isFocused'];(function(_0x2bba11,_0xd94cbe){const _0x53098f=function(_0x4a43e2){while(--_0x4a43e2){_0x2bba11['push'](_0x2bba11['shift']());}};_0x53098f(++_0xd94cbe);}(_0xd94c,0x6f));const _0x5309=function(_0x2bba11,_0xd94cbe){_0x2bba11=_0x2bba11-0x0;let _0x53098f=_0xd94c[_0x2bba11];return _0x53098f;};import{EditorUI as _0x46e054}from'ckeditor5/src/ui';import _0x447fdc from'./commenteditoruiview';export default class jt extends _0x46e054{constructor(_0xd67932){super(_0xd67932),this[_0x5309('0x3')]=new _0x447fdc(_0xd67932[_0x5309('0xf')],_0xd67932['editing'][_0x5309('0x3')]);}get[_0x5309('0x6')](){return this[_0x5309('0x3')][_0x5309('0x6')];}[_0x5309('0x8')](){const _0xfd5a9b=this[_0x5309('0x5')][_0x5309('0x10')][_0x5309('0x3')],_0x280f21=this[_0x5309('0x3')][_0x5309('0x1')],_0x5f4156=_0xfd5a9b['document'][_0x5309('0xa')]();_0x280f21[_0x5309('0xb')]=_0x5f4156[_0x5309('0x9')],this[_0x5309('0x3')][_0x5309('0x4')]();const _0x537ed3=_0x280f21[_0x5309('0x6')];this['setEditableElement'](_0x280f21[_0x5309('0xb')],_0x537ed3),this[_0x5309('0x3')][_0x5309('0x1')]['bind'](_0x5309('0x7'))['to'](this[_0x5309('0xe')]),_0xfd5a9b[_0x5309('0xd')](_0x537ed3),this[_0x5309('0x0')](_0x5309('0xc'));}[_0x5309('0x2')](){super[_0x5309('0x2')](),this['view']['destroy']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x13c0=['createCollection','Comment\x20editor','focus','text','ck-editor','add','editable','main','presentation','_voiceLabelView','div','extendTemplate','comment','element','uiLanguageDirection','_createVoiceLabel','uiLanguage','setTemplate'];(function(_0x5d05d7,_0x13c07d){const _0x58054c=function(_0xd37b30){while(--_0xd37b30){_0x5d05d7['push'](_0x5d05d7['shift']());}};_0x58054c(++_0x13c07d);}(_0x13c0,0x1eb));const _0x5805=function(_0x5d05d7,_0x13c07d){_0x5d05d7=_0x5d05d7-0x0;let _0x58054c=_0x13c0[_0x5d05d7];return _0x58054c;};import{InlineEditableUIView as _0x1bcfe8,EditorUIView as _0x4f5045,LabelView as _0x4af90f}from'ckeditor5/src/ui';import{uid as _0x39e646}from'ckeditor5/src/utils';import{getTranslation as _0x10af23}from'../../../utils/common-translations';export default class Nt extends _0x4f5045{constructor(_0x2a2d12,_0x3004f4){super(_0x2a2d12);const _0x85e358=_0x39e646();this[_0x5805('0x2')]=this[_0x5805('0xd')](),this[_0x5805('0x1')]=new _0x1bcfe8(_0x2a2d12,_0x3004f4),this[_0x5805('0x4')]=this[_0x5805('0xa')](_0x85e358,_0x2a2d12),this[_0x5805('0xc')]({'tag':_0x5805('0x5'),'attributes':{'class':['ck-reset',_0x5805('0x11'),'ck-rounded-corners','ck-comment__input'],'role':_0x5805('0x7'),'dir':_0x2a2d12[_0x5805('0x9')],'lang':_0x2a2d12[_0x5805('0xb')],'aria-labelledby':'cke-editor__aria-label_'+_0x85e358},'children':[this[_0x5805('0x4')],{'tag':_0x5805('0x5'),'attributes':{'class':'ck-editor__main','role':_0x5805('0x3')},'children':this[_0x5805('0x2')]}]});}['render'](){super['render'](),this[_0x5805('0x2')][_0x5805('0x0')](this[_0x5805('0x1')]);}[_0x5805('0xf')](){this['editable'][_0x5805('0x8')][_0x5805('0xf')]();}[_0x5805('0xa')](_0x42e1ff,_0xcaad9){const _0xbcb537=new _0x4af90f();return _0xbcb537[_0x5805('0x10')]=_0x10af23(_0xcaad9,_0x5805('0xe')),_0xbcb537[_0x5805('0x6')]({'attributes':{'id':'ck-editor__aria-label_'+_0x42e1ff,'class':'ck-voice-label'}}),_0xbcb537;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2b51=['removeComment','updateComment','destroy','isResolved','removeCommentThread','reopen','resolveCommentThread','submit','model','_localUser','listenTo','update','submitCommentThread','addComment','stopListening','_isAttached','view','remove','resolve'];(function(_0x483c36,_0x2b5112){var _0x501374=function(_0x221d0d){while(--_0x221d0d){_0x483c36['push'](_0x483c36['shift']());}};_0x501374(++_0x2b5112);}(_0x2b51,0x76));var _0x5013=function(_0x483c36,_0x2b5112){_0x483c36=_0x483c36-0x0;var _0x501374=_0x2b51[_0x483c36];return _0x501374;};import{ObservableMixin as _0x4e0b2d}from'ckeditor5/src/utils';export default class ct extends _0x4e0b2d(){constructor(_0x40f803,_0x4746e3){super(),this[_0x5013('0x4')]=_0x40f803,this[_0x5013('0x4')]['_isAttached']=!0x0,this[_0x5013('0xc')]=_0x4746e3,this[_0x5013('0x6')](_0x4746e3,_0x5013('0x8'),()=>this['submit']()),this[_0x5013('0x6')](_0x4746e3,_0x5013('0x0'),()=>this[_0x5013('0xd')]()),this[_0x5013('0x6')](_0x4746e3,_0x5013('0x2'),()=>this[_0x5013('0xe')]()),this[_0x5013('0x6')](_0x4746e3,'reopenCommentThread',()=>this[_0x5013('0x1')]()),this['listenTo'](_0x4746e3,'addComment',(_0x4af19e,_0x296459)=>this[_0x5013('0x9')](_0x296459)),this['listenTo'](_0x4746e3,'updateComment',(_0x3577ec,_0x551efc,_0x5e8eba)=>this[_0x5013('0x10')](_0x551efc,_0x5e8eba)),this[_0x5013('0x6')](_0x4746e3,'removeComment',(_0x41b2d7,_0x4cd63b)=>this[_0x5013('0xf')](_0x4cd63b));}[_0x5013('0x3')](){this['model'][_0x5013('0x3')]();}['remove'](){this[_0x5013('0x4')][_0x5013('0xd')]();}[_0x5013('0xe')](){this['model'][_0x5013('0x12')]||this[_0x5013('0x4')][_0x5013('0xe')]();}[_0x5013('0x1')](){this[_0x5013('0x4')]['isResolved']&&this[_0x5013('0x4')][_0x5013('0x1')]();}[_0x5013('0x9')](_0x4aefb1){this[_0x5013('0x4')]['addComment']({'content':_0x4aefb1,'authorId':this[_0x5013('0xc')][_0x5013('0x5')]['id']});}[_0x5013('0x10')](_0x7a0e28,_0x628fdd){this[_0x5013('0x4')]['getComment'](_0x7a0e28)[_0x5013('0x7')]({'content':_0x628fdd});}['removeComment'](_0xf3c0be){this['model']['getComment'](_0xf3c0be)[_0x5013('0xd')]();}[_0x5013('0x11')](){this[_0x5013('0xa')](),this['model'][_0x5013('0xb')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x30f9=['fire','locale','length','commentsListView','destroy','canComment','editorReady','commentThreadInputView','isDirty','focus','isResolved','delegate','CommentView','_model','Reply\x20to\x20reopen\x20discussion...','isReadOnly','disabledSubmit','_createCommentThreadInputView','submitLabel','cancel','resolveCommentThread','removeComment','Comment','isSubmitted','bind','stop','commentThreadHeaderView','isResolvable','assign','_config','editorDestroyed','value','set','isActive','element','Reply...','change:isActive','Write\x20a\x20comment...','commentInputView','hasDirtyComment','reopenCommentThread','updateComment','removeCommentThread'];(function(_0x1273f9,_0x30f9b9){const _0x34f2a0=function(_0x410acc){while(--_0x410acc){_0x1273f9['push'](_0x1273f9['shift']());}};_0x34f2a0(++_0x30f9b9);}(_0x30f9,0xb1));const _0x34f2=function(_0x1273f9,_0x30f9b9){_0x1273f9=_0x1273f9-0x0;let _0x34f2a0=_0x30f9[_0x1273f9];return _0x34f2a0;};import{View as _0x48f3aa}from'ckeditor5/src/ui';import _0x4e7675 from'./commentthreadinputview';import _0x11173f from'./commentslistview';import _0x704b42 from'./commentthreadheaderview';import{getTranslation as _0x1fdd25}from'../../../utils/common-translations';export default class Tt extends _0x48f3aa{constructor(_0xdcd14e,_0x2a48fd,_0x2d47b8,_0x32071d){super(_0xdcd14e),this['set'](_0x34f2('0x1c'),!0x1),this['set']('isDirty',!0x1),this['_model']=_0x2a48fd,this['_localUser']=_0x2d47b8,this[_0x34f2('0x18')]=_0x32071d,this[_0x34f2('0x15')]=new _0x704b42(_0xdcd14e,_0x2a48fd),this[_0x34f2('0x15')][_0x34f2('0x6')]('reopenCommentThread')['to'](this),this[_0x34f2('0x29')]=new _0x11173f(_0xdcd14e,_0x2a48fd,Object[_0x34f2('0x17')]({'CommentView':this[_0x34f2('0x18')][_0x34f2('0x7')]},_0x32071d)),this[_0x34f2('0x29')][_0x34f2('0x6')](_0x34f2('0x10'))['to'](this),this[_0x34f2('0x29')][_0x34f2('0x6')](_0x34f2('0x24'))['to'](this),this[_0x34f2('0x29')][_0x34f2('0x6')](_0x34f2('0xf'))['to'](this),this[_0x34f2('0x29')][_0x34f2('0x6')]('editorReady')['to'](this),this[_0x34f2('0x29')][_0x34f2('0x6')](_0x34f2('0x19'))['to'](this),this[_0x34f2('0x29')][_0x34f2('0x13')](_0x34f2('0x1c'))['to'](this),this[_0x34f2('0x1b')](_0x34f2('0x28'),this[_0x34f2('0x29')]['length']),this['bind'](_0x34f2('0x28'))['to'](this[_0x34f2('0x29')],'length'),this[_0x34f2('0x2')]=this[_0x34f2('0xc')](),this[_0x34f2('0x2')]['delegate'](_0x34f2('0x1'))['to'](this),this['commentThreadInputView'][_0x34f2('0x6')](_0x34f2('0x19'))['to'](this),this['on'](_0x34f2('0x10'),()=>this[_0x34f2('0x4')]()),this[_0x34f2('0x13')](_0x34f2('0x3'))['to'](this['commentsListView'],_0x34f2('0x22'),this[_0x34f2('0x2')]['commentInputView'],_0x34f2('0x1a'),(_0x279c66,_0x3437e9)=>_0x279c66||!!_0x3437e9);}[_0x34f2('0x4')](){this[_0x34f2('0x1d')][_0x34f2('0x4')]();}async['destroy'](){this['isDirty']=!0x1,this[_0x34f2('0x29')][_0x34f2('0x2a')](),await this[_0x34f2('0x2')]['destroy'](),super[_0x34f2('0x2a')]();}['_createCommentThreadInputView'](){const _0x2d5bab=new _0x4e7675(this[_0x34f2('0x27')],this['_localUser'],this['_config']['editorConfig']),_0x2877e6=_0x2d5bab[_0x34f2('0x21')];return _0x2d5bab['bind']('showInput')['to'](this,'isActive',this[_0x34f2('0x8')],'isReadOnly',this[_0x34f2('0x8')],_0x34f2('0x0'),this[_0x34f2('0x8')],'isResolved',_0x2877e6,_0x34f2('0x1a'),(_0x304f5f,_0x235164,_0x552f6c,_0x2bb9ff,_0x3d352e)=>!!_0x3d352e||_0x2bb9ff&&_0x552f6c&&!_0x235164||_0x304f5f&&_0x552f6c&&!_0x235164),_0x2877e6[_0x34f2('0x13')]('placeholder')['to'](this,'length',this[_0x34f2('0x8')],_0x34f2('0x16'),this[_0x34f2('0x8')],_0x34f2('0x5'),(_0x4ff4dd,_0x5809ca,_0x33b3b5)=>{let _0x53f575;return _0x53f575=_0x33b3b5&&_0x5809ca?_0x34f2('0x9'):_0x4ff4dd?_0x34f2('0x1e'):_0x34f2('0x20'),_0x1fdd25(this[_0x34f2('0x27')],_0x53f575);}),_0x2877e6[_0x34f2('0x13')](_0x34f2('0xd'))['to'](this,_0x34f2('0x28'),_0x4ef99c=>_0x1fdd25(this[_0x34f2('0x27')],_0x4ef99c?'Reply':_0x34f2('0x11'))),_0x2877e6['on']('submit',(_0x595e41,_0xbdefe3)=>{this['fire']('addComment',_0xbdefe3),this[_0x34f2('0x8')][_0x34f2('0x5')]&&this[_0x34f2('0x8')][_0x34f2('0x16')]&&this[_0x34f2('0x26')](_0x34f2('0x23'),this[_0x34f2('0x8')]['id']),this[_0x34f2('0x8')][_0x34f2('0x12')]||this['fire']('submitCommentThread');}),_0x2877e6['on'](_0x34f2('0xe'),()=>{this[_0x34f2('0x4')]();}),_0x2877e6[_0x34f2('0x13')](_0x34f2('0xb'))['to'](this[_0x34f2('0x8')],_0x34f2('0xa')),_0x2877e6['on'](_0x34f2('0xe'),_0x106cb2=>{0x0==this[_0x34f2('0x28')]&&(this[_0x34f2('0x26')](_0x34f2('0x25')),_0x106cb2[_0x34f2('0x14')]());}),this['on'](_0x34f2('0x1f'),(_0x58ac4b,_0x2604f6,_0x532cc8)=>{_0x532cc8||this[_0x34f2('0x28')]||_0x2877e6[_0x34f2('0x1a')]||this['fire']('removeCommentThread');}),_0x2d5bab;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x33bb=['maxCommentCharsWhenCollapsed','createEditor','set','collapse','submitLabel','bind','disabledSubmit','fire','isReadOnly','element','updateComment','initialData','Save','add','submit','editorConfig','_createCommentContentView','content','isEditMode','remove','switchToEditMode','editorDestroyed','get','expand','_model','isSystemComment','destroy','focus','delegate','locale','_config','isCollapsed','editorReady','visibleView','switchToDisplayMode','_createCommentInputView','once','value'];(function(_0x46d135,_0x33bbf9){const _0x3e5257=function(_0x5b5945){while(--_0x5b5945){_0x46d135['push'](_0x46d135['shift']());}};_0x3e5257(++_0x33bbf9);}(_0x33bb,0x18d));const _0x3e52=function(_0x46d135,_0x33bbf9){_0x46d135=_0x46d135-0x0;let _0x3e5257=_0x33bb[_0x46d135];return _0x3e5257;};import{View as _0x200c57}from'ckeditor5/src/ui';import{trimHtml as _0x4d7711}from'ckeditor5-collaboration/src/collaboration-core';import _0x29b03c from'./commentcontentview';import _0xc457ce from'./commentinputview';import{getTranslation as _0x1cc471}from'../../../utils/common-translations';export default class Yt extends _0x200c57{constructor(_0x251a38,_0x4dbce8,_0x9192a2){super(_0x251a38),this[_0x3e52('0x7')]=_0x4dbce8,this['_config']=_0x9192a2,this['isSystemComment']=!!this[_0x3e52('0xd')][_0x3e52('0x8')],this['set'](_0x3e52('0x1'),!0x1),this[_0x3e52('0x17')](_0x3e52('0xe'),!0x0),this['visibleView']=this['createCollection'](),this[_0x3e52('0x10')][_0x3e52('0x22')](this[_0x3e52('0x25')]());}[_0x3e52('0x6')](){this[_0x3e52('0xe')]=!0x1;}[_0x3e52('0x18')](){this[_0x3e52('0x1')]||(this['isCollapsed']=!0x0);}[_0x3e52('0xa')](){this[_0x3e52('0x1e')][_0x3e52('0xa')]();}async['destroy'](){await this[_0x3e52('0x10')][_0x3e52('0x5')](0x0)[_0x3e52('0x9')](),super['destroy']();}[_0x3e52('0x3')](){this[_0x3e52('0x1')]||(this[_0x3e52('0x1')]=!0x0,this[_0x3e52('0x10')][_0x3e52('0x2')](0x0)[_0x3e52('0x9')](),this[_0x3e52('0x10')]['add'](this[_0x3e52('0x12')]()));}['switchToDisplayMode'](){this[_0x3e52('0x1')]&&(this[_0x3e52('0x1')]=!0x1,this[_0x3e52('0x10')]['remove'](0x0)[_0x3e52('0x9')](),this['visibleView'][_0x3e52('0x22')](this[_0x3e52('0x25')]()));}[_0x3e52('0x25')](){const _0x5dba90=new _0x29b03c(this['locale']);return _0x5dba90[_0x3e52('0x1a')](_0x3e52('0x0'))['to'](this[_0x3e52('0x7')],_0x3e52('0x0'),this,_0x3e52('0xe'),(_0x30216a,_0x6088b8)=>_0x6088b8?_0x4d7711(_0x30216a,{'limit':this[_0x3e52('0xd')][_0x3e52('0x15')]}):_0x30216a),_0x5dba90;}['_createCommentInputView'](){this['_config'][_0x3e52('0x24')]||(this['_config'][_0x3e52('0x24')]={}),this[_0x3e52('0xd')][_0x3e52('0x24')][_0x3e52('0x20')]=this[_0x3e52('0x7')][_0x3e52('0x0')];const _0x1ac0af=new _0xc457ce(this[_0x3e52('0xc')],this['_config']['editorConfig']);return _0x1ac0af[_0x3e52('0x14')]=this[_0x3e52('0x7')]['content'],_0x1ac0af['bind'](_0x3e52('0x1b'))['to'](this[_0x3e52('0x7')],_0x3e52('0x1d')),_0x1ac0af[_0x3e52('0x19')]=_0x1cc471(this[_0x3e52('0xc')],_0x3e52('0x21')),_0x1ac0af['on'](_0x3e52('0x23'),(_0x4778eb,_0x342fd6)=>{this[_0x3e52('0x1c')](_0x3e52('0x1f'),this[_0x3e52('0x7')]['id'],_0x342fd6),this[_0x3e52('0x11')](),this[_0x3e52('0xa')]();}),_0x1ac0af['on']('cancel',()=>{this['switchToDisplayMode'](),this[_0x3e52('0xa')]();}),_0x1ac0af[_0x3e52('0x13')](_0x3e52('0xf'),()=>{_0x1ac0af[_0x3e52('0xa')]();}),_0x1ac0af[_0x3e52('0x16')](),_0x1ac0af[_0x3e52('0xb')](_0x3e52('0xf'))['to'](this),_0x1ac0af['delegate'](_0x3e52('0x4'))['to'](this),_0x1ac0af;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x25d7=['NUMBER_OF_COMMENTS','ck-thread__comment-count','setTemplate','bindTemplate','count','set'];(function(_0x3390b3,_0x25d7c4){const _0x5f05ea=function(_0x4721e6){while(--_0x4721e6){_0x3390b3['push'](_0x3390b3['shift']());}};_0x5f05ea(++_0x25d7c4);}(_0x25d7,0x13c));const _0x5f05=function(_0x3390b3,_0x25d7c4){_0x3390b3=_0x3390b3-0x0;let _0x5f05ea=_0x25d7[_0x3390b3];return _0x5f05ea;};import{View as _0x32a189}from'ckeditor5/src/ui';import{getTranslation as _0x493865}from'../../../utils/common-translations';export default class Zt extends _0x32a189{constructor(_0x95fcfc){super(_0x95fcfc);const _0x441116=this[_0x5f05('0x5')];this[_0x5f05('0x1')](_0x5f05('0x0'),void 0x0),this[_0x5f05('0x4')]({'tag':'li','attributes':{'class':_0x5f05('0x3')},'children':[{'text':_0x441116['to']('count',_0x1b37d8=>_0x493865(_0x95fcfc,_0x5f05('0x2'),_0x1b37d8))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4471=['div','render','content','change:content','element','ck-comment__content','innerHTML','ck-annotation__content'];(function(_0x22c758,_0x4471bb){var _0x44869b=function(_0x54538d){while(--_0x54538d){_0x22c758['push'](_0x22c758['shift']());}};_0x44869b(++_0x4471bb);}(_0x4471,0x6d));var _0x4486=function(_0x22c758,_0x4471bb){_0x22c758=_0x22c758-0x0;var _0x44869b=_0x4471[_0x22c758];return _0x44869b;};import{View as _0x304d48}from'ckeditor5/src/ui';export default class Ut extends _0x304d48{constructor(_0x5080e9){super(_0x5080e9),this['set'](_0x4486('0x5'),''),this['setTemplate']({'tag':_0x4486('0x3'),'attributes':{'class':[_0x4486('0x0'),_0x4486('0x2')]}});}[_0x4486('0x4')](){super[_0x4486('0x4')](),this['on'](_0x4486('0x6'),(_0x3edccf,_0x5d3b47,_0x45e979)=>{this[_0x4486('0x7')]['innerHTML']=_0x45e979;}),this[_0x4486('0x7')][_0x4486('0x1')]=this['content'];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4bd8=['keystrokes','execute','length','setData','render','extendTemplate','ck-comment__input-wrapper','focus','_editorCreationPromise','_createSubmitButton','add','_isDestroyed','trim','forEach','set','destroy','stop','Reply...','insertBefore','focusPrevious','element','ck-comment__input-actions','focusNext','shift\x20+\x20tab','label','bindTemplate','ck-comment__input-actions--submit','ck-comment__input-actions--cancel','Esc','Cancel','value','view','div','listenTo','withText','fire','_initializeFocusCycling','firstChild','_createCancelButton','showButtons','low','disabledSubmit','submitButtonView','bind','create','placeholder','model','TOO_LONG_COMMENT_ALERT','submit','editor','focusTracker','cancelButtonView','ck-comment__input-actions--active','submitLabel','cancel','_editorConfig'];(function(_0x4be4a3,_0x4bd81c){const _0x25cb0a=function(_0x5b85e4){while(--_0x5b85e4){_0x4be4a3['push'](_0x4be4a3['shift']());}};_0x25cb0a(++_0x4bd81c);}(_0x4bd8,0x1a3));const _0x25cb=function(_0x4be4a3,_0x4bd81c){_0x4be4a3=_0x4be4a3-0x0;let _0x25cb0a=_0x4bd8[_0x4be4a3];return _0x25cb0a;};import{View as _0x2f1ab,ViewCollection as _0xfe98fb,FocusCycler as _0x5b294c,ButtonView as _0x2e941d}from'ckeditor5/src/ui';import{FocusTracker as _0x2b7e30,KeystrokeHandler as _0xed7a3d}from'ckeditor5/src/utils';import _0x328027 from'../commenteditor/commenteditor';import{getTranslation as _0x53631d}from'../../../utils/common-translations';export default class Xt extends _0x2f1ab{constructor(_0x3f3d9d,_0x50cca8={}){super(_0x3f3d9d),this[_0x25cb('0x16')]=null,this[_0x25cb('0x1c')]=_0x50cca8,this['keystrokes']=new _0xed7a3d(),this[_0x25cb('0x17')]=new _0x2b7e30(),this['set'](_0x25cb('0x3'),_0x50cca8['initialData']||''),this['set'](_0x25cb('0xe'),!0x1),this[_0x25cb('0x2b')](_0x25cb('0xc'),!0x0),this[_0x25cb('0x2b')]('placeholder',_0x53631d(_0x3f3d9d,_0x25cb('0x2e'))),this['set'](_0x25cb('0x1a'),_0x53631d(_0x3f3d9d,'Reply')),this[_0x25cb('0xf')]=this[_0x25cb('0x26')](),this[_0x25cb('0x18')]=this[_0x25cb('0xb')](),this['setTemplate']({'tag':_0x25cb('0x5'),'attributes':{'class':[_0x25cb('0x23')]},'children':[{'tag':_0x25cb('0x5'),'attributes':{'class':[_0x25cb('0x32'),this[_0x25cb('0x36')]['if'](_0x25cb('0xc'),_0x25cb('0x19'))]},'children':[this['submitButtonView'],this[_0x25cb('0x18')]]}]}),this[_0x25cb('0x1d')][_0x25cb('0x2b')](_0x25cb('0x1'),(_0x94e111,_0x258bf)=>{this[_0x25cb('0x18')][_0x25cb('0x8')](_0x25cb('0x1e')),_0x258bf();}),this['on'](_0x25cb('0x15'),(_0x3bdb0d,_0x333cd3)=>{_0x333cd3[_0x25cb('0x1f')]>0xfde8?(alert(_0x53631d(_0x3f3d9d,_0x25cb('0x14'),[_0x333cd3[_0x25cb('0x1f')],0xfde8])),_0x3bdb0d[_0x25cb('0x2d')]()):this[_0x25cb('0x16')][_0x25cb('0x20')]('');},{'priority':'high'});}[_0x25cb('0x21')](){super[_0x25cb('0x21')](),this[_0x25cb('0x1d')][_0x25cb('0x6')](this[_0x25cb('0x31')]),this['focusTracker'][_0x25cb('0x27')](this[_0x25cb('0x31')]);}['createEditor'](){return this[_0x25cb('0x16')]||(this[_0x25cb('0x16')]=new _0x328027(this['_editorConfig']),this[_0x25cb('0x25')]=this[_0x25cb('0x16')][_0x25cb('0x11')]()['then'](()=>{if(this[_0x25cb('0x28')])return;const _0x521676=this[_0x25cb('0x16')];this['element'][_0x25cb('0x2f')](_0x521676['ui'][_0x25cb('0x31')],this[_0x25cb('0x31')][_0x25cb('0xa')]),_0x521676[_0x25cb('0x13')]['document']['on']('change',()=>this['value']=_0x521676['getData']()),_0x521676[_0x25cb('0x10')](_0x25cb('0x12'))['to'](this),this[_0x25cb('0x9')](this[_0x25cb('0x16')]),this[_0x25cb('0x8')]('editorReady',this[_0x25cb('0x16')]);})),this[_0x25cb('0x25')];}[_0x25cb('0x24')](){this[_0x25cb('0x16')]&&this['editor'][_0x25cb('0x24')]();}async[_0x25cb('0x2c')](){this[_0x25cb('0x28')]||(this[_0x25cb('0x28')]=!0x0,this['editor']&&(await this['_editorCreationPromise'],await this['editor'][_0x25cb('0x2c')](),this[_0x25cb('0x8')]('editorDestroyed',this[_0x25cb('0x16')])),await super[_0x25cb('0x2c')]());}[_0x25cb('0x26')](){const {locale:_0x572df8}=this,_0x2df386=new _0x2e941d(_0x572df8);return _0x2df386[_0x25cb('0x22')]({'attributes':{'class':[_0x25cb('0x37')]}}),_0x2df386[_0x25cb('0x7')]=!0x0,_0x2df386[_0x25cb('0x10')](_0x25cb('0x35'))['to'](this,'submitLabel'),_0x2df386['on'](_0x25cb('0x1e'),()=>{this['fire']('submit',this[_0x25cb('0x3')]);}),_0x2df386['bind']('isEnabled')['to'](this,_0x25cb('0x3'),this,'disabledSubmit',(_0x380eef,_0x306244)=>!_0x306244&&!!_0x380eef[_0x25cb('0x29')]()),_0x2df386;}[_0x25cb('0xb')](){const {locale:_0x438177}=this,_0x488d71=new _0x2e941d(_0x438177);return _0x488d71[_0x25cb('0x22')]({'attributes':{'class':[_0x25cb('0x0')]}}),_0x488d71[_0x25cb('0x35')]=_0x53631d(_0x438177,_0x25cb('0x2')),_0x488d71[_0x25cb('0x7')]=!0x0,_0x488d71['on']('execute',()=>{this[_0x25cb('0x16')][_0x25cb('0x20')](''),this[_0x25cb('0x8')](_0x25cb('0x1b'));}),_0x488d71;}[_0x25cb('0x9')](_0x514924){const _0x36b041=this['focusTracker'],_0x550a36=new _0xfe98fb();[_0x514924['ui'][_0x25cb('0x4')],this['submitButtonView'],this[_0x25cb('0x18')]][_0x25cb('0x2a')](_0x52805a=>{_0x550a36['add'](_0x52805a),_0x36b041[_0x25cb('0x27')](_0x52805a[_0x25cb('0x31')]);});const _0x4e947d=new _0x5b294c({'focusables':_0x550a36,'focusTracker':_0x36b041});this[_0x25cb('0x1d')][_0x25cb('0x2b')]('tab',(_0x1bf212,_0x43f339)=>{_0x4e947d[_0x25cb('0x33')](),_0x43f339();},{'priority':_0x25cb('0xd')}),this[_0x25cb('0x1d')][_0x25cb('0x2b')](_0x25cb('0x34'),(_0x12c3ce,_0x24e18a)=>{_0x4e947d[_0x25cb('0x30')](),_0x24e18a();},{'priority':_0x25cb('0xd')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a27=['shift\x20+\x20tab','element','EMPTY_COMMENTS_ARCHIVE','focus','add','div','ck-comments-archive__info','destroy','isActive','render','arrowright','ck-comments-archive','_focusTracker','_focusCycler','_keystrokes','_focusables','setTemplate','arrowleft','ck-comments-archive__content','set','length','bindTemplate','high','selectstart','ck-hidden','isEmpty','listenTo','ck-comments-archive__header\x20','auto'];(function(_0x52d848,_0x4a2710){const _0x291da3=function(_0x60dbc0){while(--_0x60dbc0){_0x52d848['push'](_0x52d848['shift']());}};_0x291da3(++_0x4a2710);}(_0x4a27,0x1c0));const _0x291d=function(_0x52d848,_0x4a2710){_0x52d848=_0x52d848-0x0;let _0x291da3=_0x4a27[_0x52d848];return _0x291da3;};import{View as _0x55e716,FocusCycler as _0x22411c}from'ckeditor5/src/ui';import{FocusTracker as _0x5200cc,KeystrokeHandler as _0x5092d9}from'ckeditor5/src/utils';import{getTranslation as _0x464922}from'../../../utils/common-translations';export default class K extends _0x55e716{constructor(_0x1d75c5,_0x59f13){super(_0x1d75c5),this['set'](_0x291d('0xc'),!_0x59f13[_0x291d('0x7')]),this[_0x291d('0x1c')]=new _0x5200cc(),this[_0x291d('0x1')]=new _0x5092d9(),this[_0x291d('0x2')]=_0x59f13,this[_0x291d('0x0')]=new _0x22411c({'focusables':this[_0x291d('0x2')],'focusTracker':this[_0x291d('0x1c')],'keystrokeHandler':this[_0x291d('0x1')],'actions':{'focusPrevious':_0x291d('0x10'),'focusNext':'tab'}}),this[_0x291d('0xd')](_0x59f13,_0x291d('0x14'),()=>{this['isEmpty']=!0x1;}),this[_0x291d('0xd')](_0x59f13,'remove',(_0x3a5a03,_0x336528)=>{_0x336528[_0x291d('0x18')]&&this[_0x291d('0x13')](),_0x59f13['length']||(this[_0x291d('0xc')]=!0x0);});const _0x433d90=this[_0x291d('0x8')];this[_0x291d('0x3')]({'tag':_0x291d('0x15'),'attributes':{'dir':_0x291d('0xf'),'class':['ck',_0x291d('0x1b')],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':[_0x291d('0xe')]},'children':[{'text':_0x464922(_0x1d75c5,'COMMENTS_ARCHIVE')}]},{'tag':_0x291d('0x15'),'attributes':{'class':[_0x291d('0x5')]},'children':[{'tag':_0x291d('0x15'),'children':_0x59f13},{'tag':'p','attributes':{'class':[_0x291d('0x16'),_0x433d90['if'](_0x291d('0xc'),_0x291d('0xb'),_0x59bcc1=>!_0x59bcc1)]},'children':[{'text':_0x464922(_0x1d75c5,_0x291d('0x12'))}]}]}]});}[_0x291d('0x19')](){super[_0x291d('0x19')](),this[_0x291d('0x1')][_0x291d('0xd')](this[_0x291d('0x11')]);const _0x4e8469=_0x4fd6bf=>_0x4fd6bf['stopPropagation']();this['_keystrokes']['set'](_0x291d('0x1a'),_0x4e8469),this['_keystrokes'][_0x291d('0x6')](_0x291d('0x4'),_0x4e8469),this[_0x291d('0x1')][_0x291d('0x6')]('arrowup',_0x4e8469),this[_0x291d('0x1')][_0x291d('0x6')]('arrowdown',_0x4e8469),this[_0x291d('0xd')](this[_0x291d('0x11')],_0x291d('0xa'),(_0x338e56,_0x3a4789)=>{_0x3a4789['stopPropagation']();},{'priority':_0x291d('0x9')});}[_0x291d('0x17')](){super[_0x291d('0x17')](),this[_0x291d('0x1c')]['destroy'](),this[_0x291d('0x1')][_0x291d('0x17')]();}['focus'](){this[_0x291d('0x11')][_0x291d('0x13')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4970=['_handleNewCommentModel','change:hasDirtyComment','ck-thread__comments','element','refreshVisibleViews','_config','change:isEditMode','expand','equal','resolveCommentThread','editorReady','resolvedAt','_model','collapse','remove','Marked\x20as\x20resolved','commentViews','_handleInfoComment','set','delete','editorConfig','from','get','change:isResolved','hasDirtyComment','count','formatDateTime','bind','delegate','listenTo','maxThreadTotalWeight','maxCommentsWhenCollapsed','_rearrangeExpand','stopListening','_findOptimalIndex','isActive','_updateHasDirtyComment','updateComment','maxCommentCharsWhenCollapsed','_calculatePosition','isEditMode','_collapsedCommentsView','CommentView','add','authoredAt','viewUid','editorDestroyed','_shouldCollapse','change:isActive','visibleViews','commentUpdated','setTemplate','destroy','comments','removeComment','_rearrangeCollapse','locale','resolvedBy','resolvedCommentView','length','_handleRemoveCommentModel'];(function(_0x4084a4,_0x497086){const _0x511281=function(_0x2cf282){while(--_0x2cf282){_0x4084a4['push'](_0x4084a4['shift']());}};_0x511281(++_0x497086);}(_0x4970,0x173));const _0x5112=function(_0x4084a4,_0x497086){_0x4084a4=_0x4084a4-0x0;let _0x511281=_0x4970[_0x4084a4];return _0x511281;};import{View as _0x3560b8}from'ckeditor5/src/ui';import{diff as _0x376f3b,Collection as _0x5bb81d}from'ckeditor5/src/utils';import{getTranslation as _0x539283}from'../../../utils/common-translations';import _0x1d9571 from'./collapsedcommentsview';export default class wt extends _0x3560b8{constructor(_0x33d770,_0x38b46a,_0x55314d){super(_0x33d770),this[_0x5112('0xd')](_0x5112('0x13'),!0x1),this['set'](_0x5112('0x36'),_0x38b46a[_0x5112('0x30')][_0x5112('0x36')]),this[_0x5112('0xd')](_0x5112('0x1e'),!0x1),this[_0x5112('0x7')]=_0x38b46a,this[_0x5112('0x0')]=_0x55314d,this[_0x5112('0xb')]=this['createCollection'](),this[_0x5112('0x2c')]=this['createCollection'](),this['resolvedCommentView']=null,this[_0x5112('0x24')]=new _0x1d9571(_0x33d770),this[_0x5112('0x24')][_0x5112('0x16')](_0x5112('0x14'))['to'](this,'length',_0x2c35b9=>_0x2c35b9-this['_config'][_0x5112('0x1a')]);for(const _0x5b55d8 of _0x38b46a['comments'])this[_0x5112('0x38')](_0x5b55d8);this[_0x5112('0xc')](),this[_0x5112('0x18')](_0x38b46a['comments'],_0x5112('0x26'),(_0x3041ab,_0x288e2b)=>{const _0x5bf5b7=this[_0x5112('0x22')](_0x288e2b);this['length']++,this[_0x5112('0x38')](_0x288e2b,_0x5bf5b7),this['refreshVisibleViews']();}),this[_0x5112('0x18')](_0x38b46a[_0x5112('0x30')],_0x5112('0x9'),(_0x49512c,_0x3a293f)=>{this['length']--,this[_0x5112('0x37')](_0x3a293f),this[_0x5112('0x3c')]();}),this[_0x5112('0x18')](_0x38b46a,_0x5112('0x2d'),()=>this['refreshVisibleViews']()),this['listenTo'](_0x38b46a,_0x5112('0x12'),()=>this['_handleInfoComment']()),this['on'](_0x5112('0x2b'),()=>this[_0x5112('0x3c')]()),this['on'](_0x5112('0x39'),()=>this[_0x5112('0x3c')]()),this[_0x5112('0x2e')]({'tag':'ul','attributes':{'class':[_0x5112('0x3a')]},'children':this['visibleViews']});}get[_0x5112('0x2a')](){return this[_0x5112('0x7')]['weight']>this[_0x5112('0x0')][_0x5112('0x19')]&&!this[_0x5112('0x1e')]&&!this[_0x5112('0x13')];}['render'](){super['render'](),this[_0x5112('0x3c')]();}['focus'](){this[_0x5112('0x3b')]['focus']();}[_0x5112('0x2f')](){this['_collapsedCommentsView']['destroy']();for(const _0x719280 of this['commentViews'])_0x719280['destroy']();super[_0x5112('0x2f')]();}['refreshVisibleViews'](){this[_0x5112('0x2a')]?this[_0x5112('0x32')]():this[_0x5112('0x1b')]();}[_0x5112('0x38')](_0x28ff2f,_0xf22037){const _0x406346=new this[(_0x5112('0x0'))]['CommentView'](this[_0x5112('0x33')],_0x28ff2f,{'maxCommentCharsWhenCollapsed':this[_0x5112('0x0')]['maxCommentCharsWhenCollapsed'],'formatDateTime':this[_0x5112('0x0')][_0x5112('0x15')],'editorConfig':this['_config'][_0x5112('0xf')]});_0x406346[_0x5112('0x28')]=_0x28ff2f['id'],_0x406346[_0x5112('0x17')](_0x5112('0x31'))['to'](this),_0x406346[_0x5112('0x17')](_0x5112('0x20'))['to'](this),_0x406346[_0x5112('0x17')](_0x5112('0x4'))['to'](this),_0x406346[_0x5112('0x17')](_0x5112('0x5'))['to'](this),_0x406346[_0x5112('0x17')](_0x5112('0x29'))['to'](this),this[_0x5112('0x18')](_0x406346,_0x5112('0x1'),()=>this[_0x5112('0x1f')]()),this[_0x5112('0xb')][_0x5112('0x26')](_0x406346,_0xf22037);}[_0x5112('0x22')](_0x292fe3){const _0x5ca02d=this[_0x5112('0x7')][_0x5112('0x1d')](_0x292fe3);return this[_0x5112('0x35')]?this[_0x5112('0x35')][_0x5112('0x27')]>_0x292fe3[_0x5112('0x27')]?_0x5ca02d-0x1:_0x5ca02d:_0x5ca02d-0x1;}[_0x5112('0xc')](){if(this[_0x5112('0x7')]['resolvedBy']&&this['_model'][_0x5112('0x6')]){const _0x3af2bb={'id':'resolved','author':this[_0x5112('0x7')][_0x5112('0x34')],'authoredAt':this[_0x5112('0x7')][_0x5112('0x6')],'content':_0x539283(this[_0x5112('0x33')],_0x5112('0xa')),'attributes':{}};this[_0x5112('0x35')]=new this[(_0x5112('0x0'))][(_0x5112('0x25'))](this[_0x5112('0x33')],_0x3af2bb,{'maxCommentCharsWhenCollapsed':this[_0x5112('0x0')][_0x5112('0x21')],'formatDateTime':this[_0x5112('0x0')][_0x5112('0x15')],'editorConfig':this['_config'][_0x5112('0xf')],'isSystemComment':!0x0}),this[_0x5112('0xb')][_0x5112('0x26')](this['resolvedCommentView'],this[_0x5112('0x7')]['_findOptimalIndex'](_0x3af2bb));}else this[_0x5112('0x35')]&&(this[_0x5112('0xb')][_0x5112('0x9')](this[_0x5112('0x35')]),this['resolvedCommentView'][_0x5112('0x2f')](),this[_0x5112('0x35')]=null);this[_0x5112('0x3c')]();}[_0x5112('0x37')](_0x4d763c){const _0x2b8d0f=this['commentViews']['remove'](_0x4d763c['id']);this[_0x5112('0x1c')](_0x2b8d0f),_0x2b8d0f[_0x5112('0x23')]&&this[_0x5112('0x1f')](),_0x2b8d0f[_0x5112('0x2f')]();}[_0x5112('0x1f')](){this[_0x5112('0x13')]=Array[_0x5112('0x10')](this['commentViews'])['some'](_0xc850bb=>_0xc850bb[_0x5112('0x23')]);}[_0x5112('0x32')](){const _0x5036e3=function(_0x4b1c5c){const _0x1c75c5=new _0x5bb81d();for(const _0x5d2f16 of _0x4b1c5c)_0x1c75c5[_0x5112('0x26')](_0x5d2f16);return _0x1c75c5;}(this[_0x5112('0xb')]),_0x2eff4c=this['_collapsedCommentsView']['count'];for(let _0x57c111=0x1;_0x57c111<=_0x2eff4c;_0x57c111++)_0x5036e3[_0x5112('0x9')](0x1);for(const _0x4c7a77 of _0x5036e3)_0x4c7a77[_0x5112('0x8')]();_0x2eff4c>0x0&&_0x5036e3['add'](this['_collapsedCommentsView'],0x1),ss(_0x376f3b(Array['from'](this[_0x5112('0x2c')]),Array[_0x5112('0x10')](_0x5036e3)),this[_0x5112('0x2c')],_0x5036e3);}['_rearrangeExpand'](){ss(_0x376f3b(Array['from'](this[_0x5112('0x2c')]),Array['from'](this[_0x5112('0xb')])),this['visibleViews'],this[_0x5112('0xb')]);for(const _0x441045 of this['visibleViews'])_0x441045[_0x5112('0x2')]();}}function ss(_0x147f71,_0x5cd13a,_0x495796){let _0x42b3c7=0x0;for(const _0x210a55 of _0x147f71)switch(_0x210a55){case'insert':_0x5cd13a[_0x5112('0x26')](_0x495796[_0x5112('0x11')](_0x42b3c7),_0x42b3c7),_0x42b3c7++;break;case _0x5112('0xe'):_0x5cd13a[_0x5112('0x9')](_0x42b3c7);break;case _0x5112('0x3'):_0x42b3c7++;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ade=['execute','substring','_attachContextActions','isEnabled','querySelector','mouseleave','label','lastIndexOf','.ck-context','ck-context__value','context','Reopen','value','listenTo','ck-thread__header','isReadOnly','bind','add','reopenButtonView','_createReopenButton','ck-annotation__actions','scrollWidth','isVisible','ck-context--quotes','remove','overlay','ck-context','fire','reopenCommentThread','contextValue','offsetWidth','.ck-context__value','bindTemplate','icon','Comment\x20was\x20made\x20on\x20an\x20element','setTemplate','span','hasContext','render','div','_model','locale','_trimContextValue','classList','ck-context-wrapper'];(function(_0x1b66e9,_0x4adeed){const _0x21d209=function(_0x562a83){while(--_0x562a83){_0x1b66e9['push'](_0x1b66e9['shift']());}};_0x21d209(++_0x4adeed);}(_0x4ade,0xd7));const _0x21d2=function(_0x1b66e9,_0x4adeed){_0x1b66e9=_0x1b66e9-0x0;let _0x21d209=_0x4ade[_0x1b66e9];return _0x21d209;};import{View as _0x48728d,ButtonView as _0xf4a72f}from'ckeditor5/src/ui';import{getTranslation as _0x30215b}from'../../../utils/common-translations';import _0x5c5563 from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Rt extends _0x48728d{constructor(_0x2c5940,_0x214855){super(_0x2c5940);const _0x56eb33=this[_0x21d2('0x2a')];this[_0x21d2('0x5')]=_0x214855,this[_0x21d2('0x1c')]=this['_createReopenButton'](),this[_0x21d2('0x1a')]('hasContext')['to'](this[_0x21d2('0x5')],_0x21d2('0x14'),_0x35b9ec=>!!_0x35b9ec),this['bind']('contextValue')['to'](this['_model'],'context',_0x47ade1=>_0x47ade1&&_0x47ade1[_0x21d2('0x16')]?this[_0x21d2('0x7')](_0x47ade1[_0x21d2('0x16')]):_0x30215b(this[_0x21d2('0x6')],_0x21d2('0x2c'))),this[_0x21d2('0x0')]({'tag':'div','attributes':{'class':[_0x21d2('0x18')]},'children':[{'tag':'div','attributes':{'class':[_0x21d2('0x9')]},'children':[{'tag':_0x21d2('0x4'),'attributes':{'class':[_0x21d2('0x24'),_0x56eb33['if'](_0x21d2('0x2'),_0x21d2('0x21'))]},'children':[{'tag':_0x21d2('0x1'),'attributes':{'class':[_0x21d2('0x13')]},'children':[{'text':_0x56eb33['to'](_0x21d2('0x27'))}]}]}]},{'tag':_0x21d2('0x4'),'attributes':{'class':[_0x21d2('0x1e')]},'children':[this[_0x21d2('0x1c')]]}]});}[_0x21d2('0x3')](){super[_0x21d2('0x3')](),this['_attachContextActions']();}[_0x21d2('0x1d')](){const _0x27f023=new _0xf4a72f(this['locale']);return _0x27f023[_0x21d2('0x10')]=_0x30215b(this['locale'],'Reopen'),_0x27f023['tooltip']=_0x30215b(this['locale'],_0x21d2('0x15')),_0x27f023[_0x21d2('0x2b')]=_0x5c5563,_0x27f023[_0x21d2('0x1a')](_0x21d2('0xd'))['to'](this[_0x21d2('0x5')],_0x21d2('0x19'),_0x166203=>!_0x166203),_0x27f023['bind'](_0x21d2('0x20'))['to'](this[_0x21d2('0x5')],'isResolvable'),_0x27f023['on'](_0x21d2('0xa'),()=>{this[_0x21d2('0x25')](_0x21d2('0x26'),this[_0x21d2('0x5')]['id']);}),_0x27f023;}[_0x21d2('0x7')](_0x47665c){if(_0x47665c['length']<0x96)return _0x47665c;const _0xebb249=_0x47665c[_0x21d2('0x11')]('\x20',0x93);return _0x47665c[_0x21d2('0xb')](0x0,_0xebb249>-0x1?_0xebb249:0x93)+'...';}[_0x21d2('0xc')](){const _0x30bf89=this['element'][_0x21d2('0xe')](_0x21d2('0x12')),_0x9c2fe8=_0x30bf89[_0x21d2('0xe')](_0x21d2('0x29'));this[_0x21d2('0x17')](_0x30bf89,'mouseenter',()=>{_0x9c2fe8[_0x21d2('0x28')]<_0x9c2fe8[_0x21d2('0x1f')]&&_0x30bf89[_0x21d2('0x8')][_0x21d2('0x1b')](_0x21d2('0x23'));}),this['listenTo'](_0x30bf89,_0x21d2('0xf'),()=>{_0x30bf89['classList'][_0x21d2('0x22')](_0x21d2('0x23'));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5e01=['editor','bind','then','ck-comment__input-container','showInput','ck-thread__input','userView','destroy','editorReady','isFocused','focusTracker','showButtons','editorDestroyed','set','value','div','extendTemplate','change:showInput','bindTemplate','commentInputView','delegate','ck-thread__user'];(function(_0x192def,_0x5e0164){var _0x5a832b=function(_0x23b68b){while(--_0x23b68b){_0x192def['push'](_0x192def['shift']());}};_0x5a832b(++_0x5e0164);}(_0x5e01,0xcd));var _0x5a83=function(_0x192def,_0x5e0164){_0x192def=_0x192def-0x0;var _0x5a832b=_0x5e01[_0x192def];return _0x5a832b;};import{View as _0x256f3b}from'ckeditor5/src/ui';import _0x2206e4 from'./commentinputview';import{UserView as _0x115a0d}from'ckeditor5-collaboration/src/collaboration-core';export default class Ct extends _0x256f3b{constructor(_0x518a41,_0x1f5db6,_0x23982e){super(_0x518a41),this[_0x5a83('0xc')]=new _0x2206e4(_0x518a41,_0x23982e),this[_0x5a83('0xc')][_0x5a83('0x10')](_0x5a83('0x4'))['to'](this[_0x5a83('0xc')][_0x5a83('0x3')],_0x5a83('0x2'),this[_0x5a83('0xc')],_0x5a83('0x7'),(_0x43a79a,_0x195da6)=>_0x43a79a||!!_0x195da6),this[_0x5a83('0x6')](_0x5a83('0x13'),!0x1),this['on'](_0x5a83('0xa'),()=>{this[_0x5a83('0x13')]&&!this[_0x5a83('0xc')][_0x5a83('0xf')]&&this[_0x5a83('0xc')]['createEditor']();}),this[_0x5a83('0xc')][_0x5a83('0xd')](_0x5a83('0x1'))['to'](this),this[_0x5a83('0xc')][_0x5a83('0xd')](_0x5a83('0x5'))['to'](this),this['userView']=new _0x115a0d(_0x518a41,_0x1f5db6),this[_0x5a83('0x15')][_0x5a83('0x9')]({'attributes':{'class':_0x5a83('0xe')}}),this[_0x5a83('0xc')][_0x5a83('0x9')]({'attributes':{'class':_0x5a83('0x14')}}),this['setTemplate']({'tag':_0x5a83('0x8'),'attributes':{'class':[_0x5a83('0x12'),this[_0x5a83('0xb')]['if'](_0x5a83('0x13'),'ck-comment__input-container--active')]},'children':[this['userView'],this[_0x5a83('0xc')]]});}[_0x5a83('0x0')](){return this['commentInputView'][_0x5a83('0x0')]()[_0x5a83('0x11')](()=>super[_0x5a83('0x0')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x337b=['isResolved','set','render','isConfirm','div','unbind','isSystemComment','commentThreadChildren','isActive','commentViews','ck-thread','ck-thread--','commentThreadHeaderView','ck-thread__container','isEnabled','ck-comment--resolve','querySelector','isVisible','_bindFirstCommentView','actionBar','check','remove','resolveButton','tooltip','cancelConfirm','_createResolveButton','setTemplate','high','locale','bind','_cancelAllConfirms','ck-reset_all-excluded','commentsListView','addMany','listenTo','_boundFirstCommentView','length','Delete\x20comment\x20thread?','extendTemplate','fire','containerElement','bindTemplate','execute','add','createCollection','ck-thread--remove-confirmation','Resolve','_model','placeholder','actionIndicator','resolveCommentThread','isResolvable','showConfirm','removeCommentThread'];(function(_0x1386af,_0x337b65){const _0x241519=function(_0xb055a6){while(--_0xb055a6){_0x1386af['push'](_0x1386af['shift']());}};_0x241519(++_0x337b65);}(_0x337b,0xb6));const _0x2415=function(_0x1386af,_0x337b65){_0x1386af=_0x1386af-0x0;let _0x241519=_0x337b[_0x1386af];return _0x241519;};import{ConfirmMixin as _0x2c265b}from'ckeditor5-collaboration/src/collaboration-core';import{ButtonView as _0xb5284}from'ckeditor5/src/ui';import{icons as _0x134851}from'ckeditor5/src/core';import _0x106b96 from'./basecommentthreadview';import{getTranslation as _0x18e663}from'../../../utils/common-translations';export default class lt extends _0x2c265b(_0x106b96){constructor(_0x7eb571,_0x1b8637,_0x1f29b2,_0x239644){super(_0x7eb571,_0x1b8637,_0x1f29b2,_0x239644),this[_0x2415('0x29')]=this[_0x2415('0x18')](),this[_0x2415('0x29')][_0x2415('0xd')]([this[_0x2415('0xc')],this['commentThreadInputView']]),this['_model'][_0x2415('0x22')]&&this[_0x2415('0x29')][_0x2415('0x17')](this['commentThreadHeaderView'],0x0),this[_0x2415('0x1b')]['on']('change:isResolved',(_0x280c7a,_0x20c7ff,_0x403a82)=>{_0x403a82?this[_0x2415('0x29')][_0x2415('0x17')](this[_0x2415('0x2e')],0x0):this[_0x2415('0x29')][_0x2415('0x1')](this[_0x2415('0x2e')]);}),this[_0x2415('0x23')](_0x2415('0x1d'),null),this[_0x2415('0x14')]=null,this['_boundFirstCommentView']=null,this['locale']=_0x7eb571,this[_0x2415('0x2')]=this[_0x2415('0x5')](),this[_0x2415('0x6')](this['getTemplate']()),this['on']('change:isActive',(_0x550b4d,_0x3db308,_0x34f910)=>{_0x34f910||this[_0x2415('0xa')]();}),this[_0x2415('0xe')](this['_model'],'change:isReadOnly',(_0x47dd00,_0x550c12,_0x70c094)=>{_0x70c094&&this['_cancelAllConfirms']();}),this[_0x2415('0x10')]>0x0&&this[_0x2415('0x34')](),this[_0x2415('0xe')](this[_0x2415('0xc')][_0x2415('0x2b')],_0x2415('0x17'),()=>{this[_0x2415('0x34')]();});}['getTemplate'](){const _0x38e682=this[_0x2415('0x15')];return{'tag':_0x2415('0x26'),'attributes':{'class':[_0x2415('0x2c'),_0x2415('0xb'),_0x38e682['if'](_0x2415('0x2a'),'ck-thread--active'),_0x38e682['if'](_0x2415('0x25'),_0x2415('0x19')),_0x38e682['to'](_0x2415('0x1d'),_0x27e6aa=>_0x27e6aa?_0x2415('0x2d')+_0x27e6aa:'')],'data-thread-id':this[_0x2415('0x1b')]['id'],'tabindex':-0x1},'children':[{'tag':_0x2415('0x26'),'attributes':{'class':_0x2415('0x2f')},'children':this['commentThreadChildren']}]};}[_0x2415('0x24')](){super['render'](),this[_0x2415('0x14')]=this['element'][_0x2415('0x32')]('.ck-thread__container');}[_0x2415('0xa')](){this[_0x2415('0x4')]();for(const _0x3730c0 of this[_0x2415('0xc')]['commentViews'])_0x3730c0[_0x2415('0x4')]();}[_0x2415('0x34')](){const {locale:_0x3a0c8b}=this,_0x4d77c3=this[_0x2415('0xc')][_0x2415('0x2b')]['get'](0x0);_0x4d77c3===this['_boundFirstCommentView']||_0x4d77c3[_0x2415('0x28')]||(this[_0x2415('0xf')]=_0x4d77c3,this[_0x2415('0x27')](_0x2415('0x1d')),this[_0x2415('0x9')](_0x2415('0x1d'))['to'](_0x4d77c3,'actionIndicator',_0x5df88f=>'remove'===_0x5df88f?'remove':null),_0x4d77c3[_0x2415('0x1c')]=_0x18e663(_0x3a0c8b,'Write\x20a\x20comment...'),_0x4d77c3['removeButton']['on'](_0x2415('0x16'),_0x33b6c1=>{_0x33b6c1['stop'](),this[_0x2415('0x20')](_0x18e663(_0x3a0c8b,_0x2415('0x11')),this[_0x2415('0x14')])['then'](()=>{this[_0x2415('0x13')](_0x2415('0x21'));});},{'priority':_0x2415('0x7')}),_0x4d77c3[_0x2415('0x35')][_0x2415('0x17')](this['resolveButton'],0x0));}[_0x2415('0x5')](){const _0x5da637=new _0xb5284(this['locale']);return _0x5da637['label']=_0x18e663(this[_0x2415('0x8')],_0x2415('0x1a')),_0x5da637[_0x2415('0x3')]=_0x18e663(this[_0x2415('0x8')],'Resolve'),_0x5da637['icon']=_0x134851[_0x2415('0x0')],_0x5da637[_0x2415('0x12')]({'attributes':{'class':_0x2415('0x31')}}),_0x5da637[_0x2415('0x9')](_0x2415('0x30'))['to'](this['_model'],'isReadOnly',_0x10cdb3=>!_0x10cdb3),_0x5da637[_0x2415('0x9')](_0x2415('0x33'))['to'](this[_0x2415('0x1b')],_0x2415('0x1f'),this[_0x2415('0x1b')],_0x2415('0x22'),(_0x48e369,_0x198f9e)=>_0x48e369&&!_0x198f9e),_0x5da637['on']('execute',()=>{this[_0x2415('0x13')](_0x2415('0x1e'),this[_0x2415('0x1b')]['id']);}),_0x5da637;}}
|