@ckeditor/ckeditor5-comments 0.0.0-nightly-20230820.0 → 0.0.0-nightly-20230821.1
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 _0x28a6=['get','importWord','high','map','importWord.commentsStyles','_handleImportedData','define','dataInsert','afterInit','listenTo','editor','plugins','config','forEach','addCommentThread','collaboration.channelId','basic'];(function(_0x49e20e,_0x28a6f5){const _0x3fb1c5=function(_0x2659e7){while(--_0x2659e7){_0x49e20e['push'](_0x49e20e['shift']());}};_0x3fb1c5(++_0x28a6f5);}(_0x28a6,0x19a));const _0x3fb1=function(_0x49e20e,_0x28a6f5){_0x49e20e=_0x49e20e-0x0;let _0x3fb1c5=_0x28a6[_0x49e20e];return _0x3fb1c5;};import{Plugin as _0x649275}from'ckeditor5/src/core';import{priorities as _0x386550}from'ckeditor5/src/utils';import{Users as _0x3b4f40}from'ckeditor5-collaboration/src/collaboration-core';import _0x808134 from'../commentsrepository';export default class Y extends _0x649275{constructor(_0xa59575){super(_0xa59575),this['editor'][_0x3fb1('0xa')][_0x3fb1('0x4')](_0x3fb1('0x2'),_0x3fb1('0xe'));}[_0x3fb1('0x6')](){const _0x5e3f7a=this[_0x3fb1('0x8')],_0x1f2e50=_0x5e3f7a['commands'][_0x3fb1('0xf')](_0x3fb1('0x10')),_0x359a72=_0x5e3f7a[_0x3fb1('0x9')][_0x3fb1('0xf')](_0x3b4f40);_0x1f2e50&&(_0x1f2e50['on']('execute',(_0x4c9156,[,_0x921584])=>{_0x921584['collaboration_features']={'comments':!0x0,'user_id':_0x359a72['me']['id'],'comments_styles':this[_0x3fb1('0x8')]['config'][_0x3fb1('0xf')](_0x3fb1('0x2'))};},{'priority':_0x386550[_0x3fb1('0x0')]+0xa}),this[_0x3fb1('0x7')](_0x1f2e50,_0x3fb1('0x5'),this[_0x3fb1('0x3')]));}[_0x3fb1('0x3')](_0x529d6a,_0x25a965){const {comment_threads:_0x80e521}=_0x25a965;_0x80e521&&_0x80e521[_0x3fb1('0xb')](({thread_id:_0x470bf7,comments:_0x2c7361,is_resolved:_0x1bda4b})=>{const _0x335028=new Date(),_0x54441e=_0x2c7361[_0x3fb1('0x1')](({author:_0x2855e0,content:_0x288cac,created_at:_0x1d04fc})=>({'content':_0x288cac,'authorId':this[_0x3fb1('0x8')][_0x3fb1('0x9')][_0x3fb1('0xf')](_0x3b4f40)['me']['id'],'createdAt':_0x335028,'attributes':{'@external':{'authorName':_0x2855e0,'createdAt':_0x1d04fc?new Date(_0x1d04fc):new Date(),'source':'importWord'}}})),_0x4f5a4c=this['editor'][_0x3fb1('0xa')][_0x3fb1('0xf')](_0x3fb1('0xd'));this[_0x3fb1('0x8')][_0x3fb1('0x9')][_0x3fb1('0xf')](_0x808134)[_0x3fb1('0xc')]({'channelId':_0x4f5a4c,'threadId':_0x470bf7,'comments':_0x54441e,'resolvedAt':_0x1bda4b?_0x335028:null});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2b77=['getRoot','placeholder','config','document','defaultPlugins','placeholderElement','destroy','ready','end','_updatePlaceholder','data','name','low','then','getChild','view','createRoot','childCount','model','change:placeholder','change','focus','editing','init'];(function(_0x3adeae,_0x2b7701){const _0x3c4737=function(_0x4c19f7){while(--_0x4c19f7){_0x3adeae['push'](_0x3adeae['shift']());}};_0x3c4737(++_0x2b7701);}(_0x2b77,0x73));const _0x3c47=function(_0x3adeae,_0x2b7701){_0x3adeae=_0x3adeae-0x0;let _0x3c4737=_0x2b77[_0x3adeae];return _0x3c4737;};import{Editor as _0x2c5040,DataApiMixin as _0x15065c}from'ckeditor5/src/core';import _0x3e14de from'./commenteditorui';import{ObservableMixin as _0x553fb7}from'ckeditor5/src/utils';import{enablePlaceholder as _0x2cd732,disablePlaceholder as _0x551694}from'ckeditor5/src/engine';import{Clipboard as _0x40e698}from'ckeditor5/src/clipboard';import{Enter as _0x1b93ce,ShiftEnter as _0x5b6099}from'ckeditor5/src/enter';import{SelectAll as _0x344c3a}from'ckeditor5/src/select-all';import{Typing as _0x33e24e}from'ckeditor5/src/typing';import{Undo as _0x276166}from'ckeditor5/src/undo';import{Paragraph as _0x1ef36d}from'ckeditor5/src/paragraph';const Kt=[_0x40e698,_0x1b93ce,_0x5b6099,_0x344c3a,_0x33e24e,_0x276166,_0x1ef36d];export default class Lt extends _0x553fb7(_0x15065c(_0x2c5040)){constructor(_0x32054e={}){(_0x32054e=Object['assign']({},_0x32054e))['plugins']||(_0x32054e['plugins']=Lt['defaultPlugins']),super(_0x32054e),this['ui']=new _0x3e14de(this),this['set'](_0x3c47('0x6'),''),this['model'][_0x3c47('0x8')]['on'](_0x3c47('0x1'),()=>this['_updatePlaceholder'](),{'priority':_0x3c47('0x11')}),this['on'](_0x3c47('0x0'),()=>this[_0x3c47('0xe')]()),this[_0x3c47('0x17')][_0x3c47('0x8')][_0x3c47('0x15')]();}['create'](){const _0x1e52cc=this[_0x3c47('0x7')]['get']('initialData')||'';return this['initPlugins']()[_0x3c47('0x12')](()=>this['ui'][_0x3c47('0x4')]())[_0x3c47('0x12')](()=>this[_0x3c47('0xf')]['init'](_0x1e52cc))[_0x3c47('0x12')](()=>this['fire'](_0x3c47('0xc')));}[_0x3c47('0xb')](){return super[_0x3c47('0xb')]()[_0x3c47('0x12')](()=>this['ui']['destroy']());}[_0x3c47('0x2')](){this[_0x3c47('0x17')][_0x3c47('0x1')](_0x55625f=>{const _0x210abc=this[_0x3c47('0x17')]['document'][_0x3c47('0x5')](),_0x242a28=_0x210abc&&_0x210abc[_0x3c47('0x13')](_0x210abc[_0x3c47('0x16')]-0x1);_0x55625f['setSelection'](_0x242a28,_0x3c47('0xd')),this['editing'][_0x3c47('0x14')]['focus']();});}[_0x3c47('0xe')](){const _0x1cd30d=this[_0x3c47('0x3')]['view'],_0x1ffdcf=_0x1cd30d[_0x3c47('0x8')][_0x3c47('0x5')](),_0x5300ce=_0x1ffdcf['getChild'](0x0);_0x1ffdcf[_0x3c47('0x16')]>0x1||!_0x5300ce||'p'!=_0x5300ce[_0x3c47('0x10')]?this[_0x3c47('0xa')]&&this[_0x3c47('0xa')][_0x3c47('0x6')]&&(_0x551694(_0x1cd30d,this[_0x3c47('0xa')]),this['placeholderElement']=void 0x0):(this[_0x3c47('0x6')]&&(_0x5300ce['placeholder']=this[_0x3c47('0x6')]),_0x2cd732({'view':_0x1cd30d,'element':_0x5300ce,'keepOnFocus':!0x0}),this[_0x3c47('0xa')]=_0x5300ce);}}Lt[_0x3c47('0x9')]=Kt;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d46=['bind','attachDomRoot','element','isFocused','editable','render','destroy','fire','view','document','editor','rootName','setEditableElement','focusTracker','name','editing'];(function(_0x317788,_0x3d468d){const _0x3b9d92=function(_0x23621b){while(--_0x23621b){_0x317788['push'](_0x317788['shift']());}};_0x3b9d92(++_0x3d468d);}(_0x3d46,0x70));const _0x3b9d=function(_0x317788,_0x3d468d){_0x317788=_0x317788-0x0;let _0x3b9d92=_0x3d46[_0x317788];return _0x3b9d92;};import{EditorUI as _0x2a573a}from'ckeditor5/src/ui';import _0x5dc3c8 from'./commenteditoruiview';export default class jt extends _0x2a573a{constructor(_0x2d97cc){super(_0x2d97cc),this[_0x3b9d('0x8')]=new _0x5dc3c8(_0x2d97cc['locale'],_0x2d97cc[_0x3b9d('0xf')][_0x3b9d('0x8')]);}get[_0x3b9d('0x2')](){return this[_0x3b9d('0x8')]['element'];}['init'](){const _0x4028f2=this[_0x3b9d('0xa')][_0x3b9d('0xf')][_0x3b9d('0x8')],_0x257fbd=this[_0x3b9d('0x8')][_0x3b9d('0x4')],_0x32e146=_0x4028f2[_0x3b9d('0x9')]['getRoot']();_0x257fbd[_0x3b9d('0xe')]=_0x32e146[_0x3b9d('0xb')],this[_0x3b9d('0x8')][_0x3b9d('0x5')]();const _0x4a2a35=_0x257fbd[_0x3b9d('0x2')];this[_0x3b9d('0xc')](_0x257fbd[_0x3b9d('0xe')],_0x4a2a35),this[_0x3b9d('0x8')]['editable'][_0x3b9d('0x0')](_0x3b9d('0x3'))['to'](this[_0x3b9d('0xd')]),_0x4028f2[_0x3b9d('0x1')](_0x4a2a35),this[_0x3b9d('0x7')]('ready');}[_0x3b9d('0x6')](){super['destroy'](),this[_0x3b9d('0x8')][_0x3b9d('0x6')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x40a0=['ck-voice-label','setTemplate','element','editable','Comment\x20editor','_voiceLabelView','extendTemplate','ck-editor','ck-rounded-corners','render','focus','_createVoiceLabel','main','uiLanguage','add','comment','ck-editor__aria-label_','text','uiLanguageDirection','ck-editor__main','div'];(function(_0x2894ef,_0x40a0be){const _0x2c1ef7=function(_0x419012){while(--_0x419012){_0x2894ef['push'](_0x2894ef['shift']());}};_0x2c1ef7(++_0x40a0be);}(_0x40a0,0x10e));const _0x2c1e=function(_0x2894ef,_0x40a0be){_0x2894ef=_0x2894ef-0x0;let _0x2c1ef7=_0x40a0[_0x2894ef];return _0x2c1ef7;};import{InlineEditableUIView as _0x34684f,EditorUIView as _0x1fdad3,LabelView as _0x5351fa}from'ckeditor5/src/ui';import{uid as _0x496cde}from'ckeditor5/src/utils';import{getTranslation as _0x9db494}from'../../../utils/common-translations';export default class Nt extends _0x1fdad3{constructor(_0x183acc,_0x2843c2){super(_0x183acc);const _0x3bfd78=_0x496cde();this[_0x2c1e('0xf')]=this['createCollection'](),this[_0x2c1e('0x6')]=new _0x34684f(_0x183acc,_0x2843c2),this[_0x2c1e('0x8')]=this[_0x2c1e('0xe')](_0x3bfd78,_0x183acc),this[_0x2c1e('0x4')]({'tag':_0x2c1e('0x2'),'attributes':{'class':['ck-reset',_0x2c1e('0xa'),_0x2c1e('0xb'),'ck-comment__input'],'role':_0x2c1e('0x12'),'dir':_0x183acc[_0x2c1e('0x0')],'lang':_0x183acc[_0x2c1e('0x10')],'aria-labelledby':'cke-editor__aria-label_'+_0x3bfd78},'children':[this[_0x2c1e('0x8')],{'tag':_0x2c1e('0x2'),'attributes':{'class':_0x2c1e('0x1'),'role':'presentation'},'children':this[_0x2c1e('0xf')]}]});}[_0x2c1e('0xc')](){super[_0x2c1e('0xc')](),this[_0x2c1e('0xf')][_0x2c1e('0x11')](this[_0x2c1e('0x6')]);}[_0x2c1e('0xd')](){this['editable'][_0x2c1e('0x5')][_0x2c1e('0xd')]();}[_0x2c1e('0xe')](_0x492e48,_0x38ce23){const _0x31c87a=new _0x5351fa();return _0x31c87a[_0x2c1e('0x14')]=_0x9db494(_0x38ce23,_0x2c1e('0x7')),_0x31c87a[_0x2c1e('0x9')]({'attributes':{'id':_0x2c1e('0x13')+_0x492e48,'class':_0x2c1e('0x3')}}),_0x31c87a;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x414c=['submit','_localUser','removeCommentThread','submitCommentThread','updateComment','model','addComment','resolveCommentThread','remove','listenTo','view','getComment','resolve','removeComment','_isAttached','reopen','isResolved'];(function(_0x3b8ab3,_0x414c2b){var _0x4c3b12=function(_0x4425a5){while(--_0x4425a5){_0x3b8ab3['push'](_0x3b8ab3['shift']());}};_0x4c3b12(++_0x414c2b);}(_0x414c,0x15e));var _0x4c3b=function(_0x3b8ab3,_0x414c2b){_0x3b8ab3=_0x3b8ab3-0x0;var _0x4c3b12=_0x414c[_0x3b8ab3];return _0x4c3b12;};import{ObservableMixin as _0x3baf6a}from'ckeditor5/src/utils';export default class ct extends _0x3baf6a(){constructor(_0x32c9dc,_0x5854b9){super(),this[_0x4c3b('0xc')]=_0x32c9dc,this['model'][_0x4c3b('0x4')]=!0x0,this[_0x4c3b('0x0')]=_0x5854b9,this['listenTo'](_0x5854b9,_0x4c3b('0xa'),()=>this[_0x4c3b('0x7')]()),this[_0x4c3b('0x10')](_0x5854b9,_0x4c3b('0x9'),()=>this[_0x4c3b('0xf')]()),this['listenTo'](_0x5854b9,_0x4c3b('0xe'),()=>this[_0x4c3b('0x2')]()),this[_0x4c3b('0x10')](_0x5854b9,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x5854b9,_0x4c3b('0xd'),(_0x63819f,_0x4a89a1)=>this[_0x4c3b('0xd')](_0x4a89a1)),this[_0x4c3b('0x10')](_0x5854b9,_0x4c3b('0xb'),(_0x40240a,_0x1b08a9,_0x27fafa)=>this[_0x4c3b('0xb')](_0x1b08a9,_0x27fafa)),this[_0x4c3b('0x10')](_0x5854b9,_0x4c3b('0x3'),(_0x4d125a,_0x5542f1)=>this['removeComment'](_0x5542f1));}['submit'](){this[_0x4c3b('0xc')]['submit']();}[_0x4c3b('0xf')](){this['model'][_0x4c3b('0xf')]();}['resolve'](){this['model'][_0x4c3b('0x6')]||this[_0x4c3b('0xc')][_0x4c3b('0x2')]();}['reopen'](){this['model'][_0x4c3b('0x6')]&&this[_0x4c3b('0xc')][_0x4c3b('0x5')]();}[_0x4c3b('0xd')](_0x1fa1a2){this[_0x4c3b('0xc')][_0x4c3b('0xd')]({'content':_0x1fa1a2,'authorId':this[_0x4c3b('0x0')][_0x4c3b('0x8')]['id']});}['updateComment'](_0x1895dd,_0x981d23){this[_0x4c3b('0xc')][_0x4c3b('0x1')](_0x1895dd)['update']({'content':_0x981d23});}[_0x4c3b('0x3')](_0x5c4048){this['model'][_0x4c3b('0x1')](_0x5c4048)[_0x4c3b('0xf')]();}['destroy'](){this['stopListening'](),this[_0x4c3b('0xc')][_0x4c3b('0x4')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5b3e=['_config','commentInputView','resolveCommentThread','focus','canComment','placeholder','_localUser','destroy','change:isActive','disabledSubmit','removeComment','CommentView','removeCommentThread','Write\x20a\x20comment...','isResolvable','assign','_createCommentThreadInputView','hasDirtyComment','set','isSubmitted','commentsListView','delegate','element','isActive','Comment','submitLabel','isReadOnly','isDirty','updateComment','editorReady','commentThreadHeaderView','submitCommentThread','length','value','stop','submit','locale','Reply','Reply...','addComment','fire','bind','reopenCommentThread','isResolved','Reply\x20to\x20reopen\x20discussion...','cancel','_model','commentThreadInputView','editorConfig'];(function(_0x342922,_0x5b3e9b){const _0xaef15b=function(_0x36e0cd){while(--_0x36e0cd){_0x342922['push'](_0x342922['shift']());}};_0xaef15b(++_0x5b3e9b);}(_0x5b3e,0x13f));const _0xaef1=function(_0x342922,_0x5b3e9b){_0x342922=_0x342922-0x0;let _0xaef15b=_0x5b3e[_0x342922];return _0xaef15b;};import{View as _0x529d04}from'ckeditor5/src/ui';import _0x40c140 from'./commentthreadinputview';import _0x250499 from'./commentslistview';import _0x21e1af from'./commentthreadheaderview';import{getTranslation as _0x26815c}from'../../../utils/common-translations';export default class Tt extends _0x529d04{constructor(_0x40704d,_0x3355e8,_0xef9a3a,_0x3434f0){super(_0x40704d),this[_0xaef1('0x2a')](_0xaef1('0x2f'),!0x1),this['set'](_0xaef1('0x2'),!0x1),this[_0xaef1('0x15')]=_0x3355e8,this[_0xaef1('0x1e')]=_0xef9a3a,this[_0xaef1('0x18')]=_0x3434f0,this[_0xaef1('0x5')]=new _0x21e1af(_0x40704d,_0x3355e8),this['commentThreadHeaderView'][_0xaef1('0x2d')]('reopenCommentThread')['to'](this),this[_0xaef1('0x2c')]=new _0x250499(_0x40704d,_0x3355e8,Object[_0xaef1('0x27')]({'CommentView':this['_config'][_0xaef1('0x23')]},_0x3434f0)),this[_0xaef1('0x2c')][_0xaef1('0x2d')](_0xaef1('0x22'))['to'](this),this['commentsListView']['delegate'](_0xaef1('0x3'))['to'](this),this[_0xaef1('0x2c')]['delegate'](_0xaef1('0x1a'))['to'](this),this['commentsListView'][_0xaef1('0x2d')](_0xaef1('0x4'))['to'](this),this[_0xaef1('0x2c')][_0xaef1('0x2d')]('editorDestroyed')['to'](this),this[_0xaef1('0x2c')]['bind']('isActive')['to'](this),this['set'](_0xaef1('0x7'),this['commentsListView']['length']),this[_0xaef1('0x10')](_0xaef1('0x7'))['to'](this[_0xaef1('0x2c')],'length'),this[_0xaef1('0x16')]=this['_createCommentThreadInputView'](),this[_0xaef1('0x16')]['delegate'](_0xaef1('0x4'))['to'](this),this[_0xaef1('0x16')][_0xaef1('0x2d')]('editorDestroyed')['to'](this),this['on']('removeComment',()=>this[_0xaef1('0x1b')]()),this[_0xaef1('0x10')]('isDirty')['to'](this[_0xaef1('0x2c')],_0xaef1('0x29'),this[_0xaef1('0x16')][_0xaef1('0x19')],_0xaef1('0x8'),(_0x7d5ff1,_0xbc1187)=>_0x7d5ff1||!!_0xbc1187);}[_0xaef1('0x1b')](){this[_0xaef1('0x2e')]['focus']();}['destroy'](){this[_0xaef1('0x2')]=!0x1,this[_0xaef1('0x2c')][_0xaef1('0x1f')](),this['commentThreadInputView'][_0xaef1('0x1f')](),super[_0xaef1('0x1f')]();}[_0xaef1('0x28')](){const _0x590036=new _0x40c140(this[_0xaef1('0xb')],this[_0xaef1('0x1e')],this[_0xaef1('0x18')][_0xaef1('0x17')]),_0x3fdd42=_0x590036[_0xaef1('0x19')];return _0x590036[_0xaef1('0x10')]('showInput')['to'](this,'isActive',this['_model'],_0xaef1('0x1'),this['_model'],_0xaef1('0x1c'),this[_0xaef1('0x15')],_0xaef1('0x12'),_0x3fdd42,_0xaef1('0x8'),(_0x1463c1,_0x207816,_0x1cc5b1,_0x164d1b,_0x4cf882)=>!!_0x4cf882||_0x164d1b&&_0x1cc5b1&&!_0x207816||_0x1463c1&&_0x1cc5b1&&!_0x207816),_0x3fdd42['bind'](_0xaef1('0x1d'))['to'](this,_0xaef1('0x7'),this[_0xaef1('0x15')],_0xaef1('0x26'),this[_0xaef1('0x15')],_0xaef1('0x12'),(_0x589901,_0x22b690,_0x582894)=>{let _0x1fbb45;return _0x1fbb45=_0x582894&&_0x22b690?_0xaef1('0x13'):_0x589901?_0xaef1('0xd'):_0xaef1('0x25'),_0x26815c(this[_0xaef1('0xb')],_0x1fbb45);}),_0x3fdd42[_0xaef1('0x10')](_0xaef1('0x0'))['to'](this,_0xaef1('0x7'),_0x183159=>_0x26815c(this[_0xaef1('0xb')],_0x183159?_0xaef1('0xc'):_0xaef1('0x30'))),_0x3fdd42['on'](_0xaef1('0xa'),(_0x119012,_0x5a33b0)=>{this[_0xaef1('0xf')](_0xaef1('0xe'),_0x5a33b0),this['_model'][_0xaef1('0x12')]&&this[_0xaef1('0x15')]['isResolvable']&&this['fire'](_0xaef1('0x11'),this[_0xaef1('0x15')]['id']),this['_model'][_0xaef1('0x2b')]||this[_0xaef1('0xf')](_0xaef1('0x6'));}),_0x3fdd42['on']('cancel',()=>{this['focus']();}),_0x3fdd42[_0xaef1('0x10')](_0xaef1('0x21'))['to'](this[_0xaef1('0x15')],_0xaef1('0x1')),_0x3fdd42['on'](_0xaef1('0x14'),_0x172b54=>{0x0==this[_0xaef1('0x7')]&&(this[_0xaef1('0xf')](_0xaef1('0x24')),_0x172b54[_0xaef1('0x9')]());}),this['on'](_0xaef1('0x20'),(_0x550b4b,_0x14a0fe,_0x5ecd23)=>{_0x5ecd23||this[_0xaef1('0x7')]||_0x3fdd42[_0xaef1('0x8')]||this[_0xaef1('0xf')](_0xaef1('0x24'));}),_0x590036;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa6f0=['focus','value','delegate','set','add','expand','editorConfig','Save','createCollection','_createCommentInputView','content','remove','locale','maxCommentCharsWhenCollapsed','isReadOnly','updateComment','disabledSubmit','bind','visibleView','_createCommentContentView','isEditMode','_model','editorReady','switchToEditMode','collapse','destroy','submit','isCollapsed','_config','switchToDisplayMode','once','element','submitLabel','fire','isSystemComment','createEditor'];(function(_0x1ca3ec,_0xa6f0c){const _0x45466d=function(_0x87dc9){while(--_0x87dc9){_0x1ca3ec['push'](_0x1ca3ec['shift']());}};_0x45466d(++_0xa6f0c);}(_0xa6f0,0xdc));const _0x4546=function(_0x1ca3ec,_0xa6f0c){_0x1ca3ec=_0x1ca3ec-0x0;let _0x45466d=_0xa6f0[_0x1ca3ec];return _0x45466d;};import{View as _0x37fd50}from'ckeditor5/src/ui';import{trimHtml as _0x18cf4c}from'ckeditor5-collaboration/src/collaboration-core';import _0x3c22b2 from'./commentcontentview';import _0x19b862 from'./commentinputview';import{getTranslation as _0x527954}from'../../../utils/common-translations';export default class Yt extends _0x37fd50{constructor(_0x1b29e4,_0x40be58,_0x575f0f){super(_0x1b29e4),this[_0x4546('0x11')]=_0x40be58,this[_0x4546('0x18')]=_0x575f0f,this[_0x4546('0x1e')]=!!this[_0x4546('0x18')][_0x4546('0x1e')],this[_0x4546('0x23')](_0x4546('0x10'),!0x1),this['set'](_0x4546('0x17'),!0x0),this[_0x4546('0xe')]=this[_0x4546('0x4')](),this['visibleView'][_0x4546('0x0')](this[_0x4546('0xf')]());}[_0x4546('0x1')](){this[_0x4546('0x17')]=!0x1;}[_0x4546('0x14')](){this[_0x4546('0x10')]||(this['isCollapsed']=!0x0);}['focus'](){this[_0x4546('0x1b')][_0x4546('0x20')]();}async[_0x4546('0x15')](){await this['visibleView']['get'](0x0)[_0x4546('0x15')](),super[_0x4546('0x15')]();}[_0x4546('0x13')](){this[_0x4546('0x10')]||(this[_0x4546('0x10')]=!0x0,this[_0x4546('0xe')][_0x4546('0x7')](0x0)[_0x4546('0x15')](),this['visibleView'][_0x4546('0x0')](this[_0x4546('0x5')]()));}[_0x4546('0x19')](){this['isEditMode']&&(this[_0x4546('0x10')]=!0x1,this[_0x4546('0xe')]['remove'](0x0)[_0x4546('0x15')](),this['visibleView']['add'](this['_createCommentContentView']()));}[_0x4546('0xf')](){const _0x19f915=new _0x3c22b2(this[_0x4546('0x8')]);return _0x19f915[_0x4546('0xd')](_0x4546('0x6'))['to'](this[_0x4546('0x11')],_0x4546('0x6'),this,_0x4546('0x17'),(_0xb3714,_0xe9222d)=>_0xe9222d?_0x18cf4c(_0xb3714,{'limit':this['_config'][_0x4546('0x9')]}):_0xb3714),_0x19f915;}['_createCommentInputView'](){this[_0x4546('0x18')][_0x4546('0x2')]||(this[_0x4546('0x18')]['editorConfig']={}),this[_0x4546('0x18')][_0x4546('0x2')]['initialData']=this[_0x4546('0x11')][_0x4546('0x6')];const _0x117eed=new _0x19b862(this[_0x4546('0x8')],this[_0x4546('0x18')][_0x4546('0x2')]);return _0x117eed[_0x4546('0x21')]=this[_0x4546('0x11')][_0x4546('0x6')],_0x117eed['bind'](_0x4546('0xc'))['to'](this['_model'],_0x4546('0xa')),_0x117eed[_0x4546('0x1c')]=_0x527954(this[_0x4546('0x8')],_0x4546('0x3')),_0x117eed['on'](_0x4546('0x16'),(_0x3c8b18,_0x19325a)=>{this[_0x4546('0x1d')](_0x4546('0xb'),this[_0x4546('0x11')]['id'],_0x19325a),this[_0x4546('0x19')](),this[_0x4546('0x20')]();}),_0x117eed['on']('cancel',()=>{this['switchToDisplayMode'](),this[_0x4546('0x20')]();}),_0x117eed[_0x4546('0x1a')](_0x4546('0x12'),()=>{_0x117eed['focus']();}),_0x117eed[_0x4546('0x1f')](),_0x117eed[_0x4546('0x22')]('editorReady')['to'](this),_0x117eed[_0x4546('0x22')]('editorDestroyed')['to'](this),_0x117eed;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c03=['count','bindTemplate','NUMBER_OF_COMMENTS'];(function(_0xf46505,_0x2c0395){const _0x291af9=function(_0x243f70){while(--_0x243f70){_0xf46505['push'](_0xf46505['shift']());}};_0x291af9(++_0x2c0395);}(_0x2c03,0xa4));const _0x291a=function(_0xf46505,_0x2c0395){_0xf46505=_0xf46505-0x0;let _0x291af9=_0x2c03[_0xf46505];return _0x291af9;};import{View as _0x3fff25}from'ckeditor5/src/ui';import{getTranslation as _0x52fc52}from'../../../utils/common-translations';export default class Zt extends _0x3fff25{constructor(_0xb5589){super(_0xb5589);const _0x5e2349=this[_0x291a('0x2')];this['set'](_0x291a('0x1'),void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x5e2349['to'](_0x291a('0x1'),_0x15baf2=>_0x52fc52(_0xb5589,_0x291a('0x0'),_0x15baf2))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4ae3=['element','innerHTML','div','ck-comment__content','setTemplate','content'];(function(_0x46ac99,_0x4ae32a){var _0x240b65=function(_0x137689){while(--_0x137689){_0x46ac99['push'](_0x46ac99['shift']());}};_0x240b65(++_0x4ae32a);}(_0x4ae3,0x18d));var _0x240b=function(_0x46ac99,_0x4ae32a){_0x46ac99=_0x46ac99-0x0;var _0x240b65=_0x4ae3[_0x46ac99];return _0x240b65;};import{View as _0x2bf000}from'ckeditor5/src/ui';export default class Ut extends _0x2bf000{constructor(_0x49d435){super(_0x49d435),this['set'](_0x240b('0x4'),''),this[_0x240b('0x3')]({'tag':_0x240b('0x1'),'attributes':{'class':[_0x240b('0x2'),'ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x54ed03,_0x51fdc6,_0x410ff3)=>{this['element'][_0x240b('0x0')]=_0x410ff3;}),this[_0x240b('0x5')][_0x240b('0x0')]=this[_0x240b('0x4')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x25fa=['_editorConfig','execute','cancel','render','editor','_createSubmitButton','focusTracker','submitButtonView','forEach','stop','listenTo','div','destroy','cancelButtonView','fire','_createCancelButton','document','view','bindTemplate','shift\x20+\x20tab','tab','editorDestroyed','extendTemplate','withText','Cancel','change','element','ck-comment__input-wrapper','model','Reply...','set','setData','ck-comment__input-actions--cancel','focus','_isDestroyed','showButtons','placeholder','value','Reply','low','ck-comment__input-actions--submit','length','ck-comment__input-actions--active','_initializeFocusCycling','getData','focusPrevious','add','initialData','label','trim','isEnabled','disabledSubmit','create','insertBefore','_editorCreationPromise','submit','keystrokes','high','ck-comment__input-actions','bind','submitLabel','TOO_LONG_COMMENT_ALERT'];(function(_0x13eecb,_0x25fa4d){const _0x3c555e=function(_0x1bfa2a){while(--_0x1bfa2a){_0x13eecb['push'](_0x13eecb['shift']());}};_0x3c555e(++_0x25fa4d);}(_0x25fa,0xb7));const _0x3c55=function(_0x13eecb,_0x25fa4d){_0x13eecb=_0x13eecb-0x0;let _0x3c555e=_0x25fa[_0x13eecb];return _0x3c555e;};import{View as _0x434099,ViewCollection as _0x491640,FocusCycler as _0x87ba68,ButtonView as _0x379577}from'ckeditor5/src/ui';import{FocusTracker as _0x52979a,KeystrokeHandler as _0x17b2e7}from'ckeditor5/src/utils';import _0xfa9d58 from'../commenteditor/commenteditor';import{getTranslation as _0x1a514f}from'../../../utils/common-translations';export default class Xt extends _0x434099{constructor(_0x5c5dc0,_0x3c5271={}){super(_0x5c5dc0),this[_0x3c55('0x7')]=null,this[_0x3c55('0x3')]=_0x3c5271,this[_0x3c55('0x3b')]=new _0x17b2e7(),this[_0x3c55('0x9')]=new _0x52979a(),this['set'](_0x3c55('0x28'),_0x3c5271[_0x3c55('0x32')]||''),this[_0x3c55('0x21')](_0x3c55('0x36'),!0x1),this[_0x3c55('0x21')](_0x3c55('0x26'),!0x0),this[_0x3c55('0x21')](_0x3c55('0x27'),_0x1a514f(_0x5c5dc0,_0x3c55('0x20'))),this['set'](_0x3c55('0x1'),_0x1a514f(_0x5c5dc0,_0x3c55('0x29'))),this[_0x3c55('0xa')]=this[_0x3c55('0x8')](),this['cancelButtonView']=this['_createCancelButton'](),this['setTemplate']({'tag':_0x3c55('0xe'),'attributes':{'class':[_0x3c55('0x1e')]},'children':[{'tag':_0x3c55('0xe'),'attributes':{'class':[_0x3c55('0x3d'),this[_0x3c55('0x15')]['if'](_0x3c55('0x26'),_0x3c55('0x2d'))]},'children':[this['submitButtonView'],this[_0x3c55('0x10')]]}]}),this[_0x3c55('0x3b')][_0x3c55('0x21')]('Esc',(_0xe5421,_0x1dc140)=>{this[_0x3c55('0x10')]['fire'](_0x3c55('0x4')),_0x1dc140();}),this['on'](_0x3c55('0x3a'),(_0x58a982,_0x9b8565)=>{_0x9b8565[_0x3c55('0x2c')]>0xfde8?(alert(_0x1a514f(_0x5c5dc0,_0x3c55('0x2'),[_0x9b8565['length'],0xfde8])),_0x58a982[_0x3c55('0xc')]()):this[_0x3c55('0x7')][_0x3c55('0x22')]('');},{'priority':_0x3c55('0x3c')});}[_0x3c55('0x6')](){super[_0x3c55('0x6')](),this[_0x3c55('0x3b')][_0x3c55('0xd')](this[_0x3c55('0x1d')]),this[_0x3c55('0x9')][_0x3c55('0x31')](this[_0x3c55('0x1d')]);}['createEditor'](){return this['editor']||(this[_0x3c55('0x7')]=new _0xfa9d58(this['_editorConfig']),this[_0x3c55('0x39')]=this[_0x3c55('0x7')][_0x3c55('0x37')]()['then'](()=>{if(this[_0x3c55('0x25')])return;const _0x3d027d=this[_0x3c55('0x7')];this[_0x3c55('0x1d')][_0x3c55('0x38')](_0x3d027d['ui'][_0x3c55('0x1d')],this[_0x3c55('0x1d')]['firstChild']),_0x3d027d[_0x3c55('0x1f')][_0x3c55('0x13')]['on'](_0x3c55('0x1c'),()=>this['value']=_0x3d027d[_0x3c55('0x2f')]()),_0x3d027d[_0x3c55('0x0')](_0x3c55('0x27'))['to'](this),this['_initializeFocusCycling'](this[_0x3c55('0x7')]),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](){this[_0x3c55('0x7')]&&this[_0x3c55('0x7')][_0x3c55('0x24')]();}async['destroy'](){this[_0x3c55('0x25')]||(this[_0x3c55('0x25')]=!0x0,this[_0x3c55('0x7')]&&(await this['_editorCreationPromise'],await this[_0x3c55('0x7')]['destroy'](),this['fire'](_0x3c55('0x18'),this['editor'])),await super[_0x3c55('0xf')]());}[_0x3c55('0x8')](){const {locale:_0x5779fc}=this,_0x5792b4=new _0x379577(_0x5779fc);return _0x5792b4[_0x3c55('0x19')]({'attributes':{'class':[_0x3c55('0x2b')]}}),_0x5792b4['withText']=!0x0,_0x5792b4['bind'](_0x3c55('0x33'))['to'](this,_0x3c55('0x1')),_0x5792b4['on'](_0x3c55('0x4'),()=>{this[_0x3c55('0x11')]('submit',this[_0x3c55('0x28')]);}),_0x5792b4['bind'](_0x3c55('0x35'))['to'](this,'value',this,_0x3c55('0x36'),(_0x5ea0a3,_0x16b9c3)=>!_0x16b9c3&&!!_0x5ea0a3[_0x3c55('0x34')]()),_0x5792b4;}[_0x3c55('0x12')](){const {locale:_0x46ef3d}=this,_0xe5742f=new _0x379577(_0x46ef3d);return _0xe5742f['extendTemplate']({'attributes':{'class':[_0x3c55('0x23')]}}),_0xe5742f['label']=_0x1a514f(_0x46ef3d,_0x3c55('0x1b')),_0xe5742f[_0x3c55('0x1a')]=!0x0,_0xe5742f['on'](_0x3c55('0x4'),()=>{this[_0x3c55('0x7')][_0x3c55('0x22')](''),this[_0x3c55('0x11')](_0x3c55('0x5'));}),_0xe5742f;}[_0x3c55('0x2e')](_0x3699a6){const _0x45e276=this[_0x3c55('0x9')],_0xd2dfd5=new _0x491640();[_0x3699a6['ui'][_0x3c55('0x14')],this[_0x3c55('0xa')],this[_0x3c55('0x10')]][_0x3c55('0xb')](_0x1f0057=>{_0xd2dfd5[_0x3c55('0x31')](_0x1f0057),_0x45e276[_0x3c55('0x31')](_0x1f0057['element']);});const _0x1c3f79=new _0x87ba68({'focusables':_0xd2dfd5,'focusTracker':_0x45e276});this[_0x3c55('0x3b')]['set'](_0x3c55('0x17'),(_0x2cf774,_0x5435ae)=>{_0x1c3f79['focusNext'](),_0x5435ae();},{'priority':_0x3c55('0x2a')}),this[_0x3c55('0x3b')]['set'](_0x3c55('0x16'),(_0x16a1c6,_0xbb2986)=>{_0x1c3f79[_0x3c55('0x30')](),_0xbb2986();},{'priority':'low'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1bfa=['ck-comments-archive__info','arrowup','_keystrokes','destroy','high','selectstart','ck-comments-archive__content','remove','setTemplate','isEmpty','_focusCycler','element','stopPropagation','auto','render','add','arrowleft','div','ck-comments-archive__header\x20','isActive','COMMENTS_ARCHIVE','_focusTracker','ck-comments-archive','listenTo','_focusables','arrowdown','length','focus','EMPTY_COMMENTS_ARCHIVE','ck-hidden','set','shift\x20+\x20tab'];(function(_0x565c55,_0x1bfa5e){const _0x4eff23=function(_0x4b939f){while(--_0x4b939f){_0x565c55['push'](_0x565c55['shift']());}};_0x4eff23(++_0x1bfa5e);}(_0x1bfa,0x1cf));const _0x4eff=function(_0x565c55,_0x1bfa5e){_0x565c55=_0x565c55-0x0;let _0x4eff23=_0x1bfa[_0x565c55];return _0x4eff23;};import{View as _0x35dbc7,FocusCycler as _0x2f6afb}from'ckeditor5/src/ui';import{FocusTracker as _0xbf67a9,KeystrokeHandler as _0x5d46c6}from'ckeditor5/src/utils';import{getTranslation as _0x2f4382}from'../../../utils/common-translations';export default class K extends _0x35dbc7{constructor(_0x1e6ba4,_0x342072){super(_0x1e6ba4),this[_0x4eff('0xf')](_0x4eff('0x1a'),!_0x342072[_0x4eff('0xb')]),this[_0x4eff('0x6')]=new _0xbf67a9(),this[_0x4eff('0x13')]=new _0x5d46c6(),this[_0x4eff('0x9')]=_0x342072,this[_0x4eff('0x1b')]=new _0x2f6afb({'focusables':this[_0x4eff('0x9')],'focusTracker':this['_focusTracker'],'keystrokeHandler':this[_0x4eff('0x13')],'actions':{'focusPrevious':_0x4eff('0x10'),'focusNext':'tab'}}),this[_0x4eff('0x8')](_0x342072,_0x4eff('0x0'),()=>{this[_0x4eff('0x1a')]=!0x1;}),this[_0x4eff('0x8')](_0x342072,_0x4eff('0x18'),(_0x4fc6aa,_0x4f1bcd)=>{_0x4f1bcd[_0x4eff('0x4')]&&this[_0x4eff('0xc')](),_0x342072['length']||(this[_0x4eff('0x1a')]=!0x0);});const _0x4d0de0=this['bindTemplate'];this[_0x4eff('0x19')]({'tag':_0x4eff('0x2'),'attributes':{'dir':_0x4eff('0x1e'),'class':['ck',_0x4eff('0x7')],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':[_0x4eff('0x3')]},'children':[{'text':_0x2f4382(_0x1e6ba4,_0x4eff('0x5'))}]},{'tag':_0x4eff('0x2'),'attributes':{'class':[_0x4eff('0x17')]},'children':[{'tag':_0x4eff('0x2'),'children':_0x342072},{'tag':'p','attributes':{'class':[_0x4eff('0x11'),_0x4d0de0['if']('isEmpty',_0x4eff('0xe'),_0x5c3d55=>!_0x5c3d55)]},'children':[{'text':_0x2f4382(_0x1e6ba4,_0x4eff('0xd'))}]}]}]});}[_0x4eff('0x1f')](){super[_0x4eff('0x1f')](),this[_0x4eff('0x13')]['listenTo'](this[_0x4eff('0x1c')]);const _0x501dcf=_0x10145a=>_0x10145a['stopPropagation']();this[_0x4eff('0x13')]['set']('arrowright',_0x501dcf),this[_0x4eff('0x13')]['set'](_0x4eff('0x1'),_0x501dcf),this[_0x4eff('0x13')][_0x4eff('0xf')](_0x4eff('0x12'),_0x501dcf),this['_keystrokes'][_0x4eff('0xf')](_0x4eff('0xa'),_0x501dcf),this['listenTo'](this['element'],_0x4eff('0x16'),(_0x1200e1,_0x115b76)=>{_0x115b76[_0x4eff('0x1d')]();},{'priority':_0x4eff('0x15')});}[_0x4eff('0x14')](){super['destroy'](),this['_focusTracker'][_0x4eff('0x14')](),this[_0x4eff('0x13')][_0x4eff('0x14')]();}['focus'](){this[_0x4eff('0x1c')]['focus']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x9b49=['_handleRemoveCommentModel','length','render','element','Marked\x20as\x20resolved','refreshVisibleViews','updateComment','_handleNewCommentModel','add','hasDirtyComment','resolvedCommentView','isEditMode','resolved','createCollection','_handleInfoComment','maxThreadTotalWeight','_findOptimalIndex','setTemplate','editorReady','removeComment','bind','_rearrangeCollapse','authoredAt','CommentView','destroy','comments','locale','delete','listenTo','weight','from','count','_calculatePosition','visibleViews','delegate','get','_model','_config','commentUpdated','change:isResolved','resolvedBy','_shouldCollapse','equal','viewUid','_collapsedCommentsView','editorDestroyed','remove','isActive','resolveCommentThread','set','change:isEditMode','commentViews','_updateHasDirtyComment','maxCommentCharsWhenCollapsed'];(function(_0x383365,_0x9b49fe){const _0xcc779a=function(_0x41c93b){while(--_0x41c93b){_0x383365['push'](_0x383365['shift']());}};_0xcc779a(++_0x9b49fe);}(_0x9b49,0x150));const _0xcc77=function(_0x383365,_0x9b49fe){_0x383365=_0x383365-0x0;let _0xcc779a=_0x9b49[_0x383365];return _0xcc779a;};import{View as _0x3c3bc0}from'ckeditor5/src/ui';import{diff as _0xdbaba5,Collection as _0x57edd9}from'ckeditor5/src/utils';import{getTranslation as _0x129247}from'../../../utils/common-translations';import _0x55bb19 from'./collapsedcommentsview';export default class wt extends _0x3c3bc0{constructor(_0x31912c,_0x21f0eb,_0x120bfa){super(_0x31912c),this[_0xcc77('0x25')]('hasDirtyComment',!0x1),this[_0xcc77('0x25')](_0xcc77('0x2b'),_0x21f0eb['comments'][_0xcc77('0x2b')]),this[_0xcc77('0x25')](_0xcc77('0x23'),!0x1),this[_0xcc77('0x18')]=_0x21f0eb,this[_0xcc77('0x19')]=_0x120bfa,this[_0xcc77('0x27')]=this['createCollection'](),this[_0xcc77('0x15')]=this[_0xcc77('0x1')](),this[_0xcc77('0x34')]=null,this[_0xcc77('0x20')]=new _0x55bb19(_0x31912c),this[_0xcc77('0x20')][_0xcc77('0x8')](_0xcc77('0x13'))['to'](this,_0xcc77('0x2b'),_0x52e607=>_0x52e607-this[_0xcc77('0x19')]['maxCommentsWhenCollapsed']);for(const _0x558e61 of _0x21f0eb[_0xcc77('0xd')])this['_handleNewCommentModel'](_0x558e61);this[_0xcc77('0x2')](),this[_0xcc77('0x10')](_0x21f0eb[_0xcc77('0xd')],_0xcc77('0x32'),(_0x4d5414,_0x87b389)=>{const _0x3816b4=this[_0xcc77('0x14')](_0x87b389);this['length']++,this[_0xcc77('0x31')](_0x87b389,_0x3816b4),this[_0xcc77('0x2f')]();}),this['listenTo'](_0x21f0eb[_0xcc77('0xd')],_0xcc77('0x22'),(_0x270247,_0x89f357)=>{this[_0xcc77('0x2b')]--,this[_0xcc77('0x2a')](_0x89f357),this[_0xcc77('0x2f')]();}),this[_0xcc77('0x10')](_0x21f0eb,_0xcc77('0x1a'),()=>this['refreshVisibleViews']()),this['listenTo'](_0x21f0eb,_0xcc77('0x1b'),()=>this[_0xcc77('0x2')]()),this['on']('change:isActive',()=>this[_0xcc77('0x2f')]()),this['on']('change:hasDirtyComment',()=>this['refreshVisibleViews']()),this[_0xcc77('0x5')]({'tag':'ul','attributes':{'class':['ck-thread__comments']},'children':this['visibleViews']});}get[_0xcc77('0x1d')](){return this[_0xcc77('0x18')][_0xcc77('0x11')]>this[_0xcc77('0x19')][_0xcc77('0x3')]&&!this[_0xcc77('0x23')]&&!this[_0xcc77('0x33')];}[_0xcc77('0x2c')](){super['render'](),this[_0xcc77('0x2f')]();}['focus'](){this[_0xcc77('0x2d')]['focus']();}['destroy'](){this[_0xcc77('0x20')][_0xcc77('0xc')]();for(const _0x28299c of this[_0xcc77('0x27')])_0x28299c[_0xcc77('0xc')]();super[_0xcc77('0xc')]();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x153dc0,_0x55a62d){const _0xbec54b=new this[(_0xcc77('0x19'))][(_0xcc77('0xb'))](this[_0xcc77('0xe')],_0x153dc0,{'maxCommentCharsWhenCollapsed':this[_0xcc77('0x19')][_0xcc77('0x29')],'formatDateTime':this[_0xcc77('0x19')]['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0xbec54b[_0xcc77('0x1f')]=_0x153dc0['id'],_0xbec54b[_0xcc77('0x16')](_0xcc77('0x7'))['to'](this),_0xbec54b[_0xcc77('0x16')](_0xcc77('0x30'))['to'](this),_0xbec54b[_0xcc77('0x16')](_0xcc77('0x24'))['to'](this),_0xbec54b[_0xcc77('0x16')](_0xcc77('0x6'))['to'](this),_0xbec54b[_0xcc77('0x16')](_0xcc77('0x21'))['to'](this),this['listenTo'](_0xbec54b,_0xcc77('0x26'),()=>this[_0xcc77('0x28')]()),this['commentViews'][_0xcc77('0x32')](_0xbec54b,_0x55a62d);}['_calculatePosition'](_0x3a57ca){const _0x417e55=this['_model'][_0xcc77('0x4')](_0x3a57ca);return this[_0xcc77('0x34')]?this[_0xcc77('0x34')][_0xcc77('0xa')]>_0x3a57ca[_0xcc77('0xa')]?_0x417e55-0x1:_0x417e55:_0x417e55-0x1;}[_0xcc77('0x2')](){if(this['_model'][_0xcc77('0x1c')]&&this[_0xcc77('0x18')]['resolvedAt']){const _0xbd309c={'id':_0xcc77('0x0'),'author':this['_model'][_0xcc77('0x1c')],'authoredAt':this[_0xcc77('0x18')]['resolvedAt'],'content':_0x129247(this[_0xcc77('0xe')],_0xcc77('0x2e')),'attributes':{}};this[_0xcc77('0x34')]=new this[(_0xcc77('0x19'))][(_0xcc77('0xb'))](this['locale'],_0xbd309c,{'maxCommentCharsWhenCollapsed':this[_0xcc77('0x19')]['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this[_0xcc77('0x19')]['editorConfig'],'isSystemComment':!0x0}),this[_0xcc77('0x27')][_0xcc77('0x32')](this['resolvedCommentView'],this[_0xcc77('0x18')]['_findOptimalIndex'](_0xbd309c));}else this['resolvedCommentView']&&(this[_0xcc77('0x27')]['remove'](this[_0xcc77('0x34')]),this['resolvedCommentView'][_0xcc77('0xc')](),this[_0xcc77('0x34')]=null);this[_0xcc77('0x2f')]();}[_0xcc77('0x2a')](_0x5ad4a1){const _0x5f3ea9=this['commentViews']['remove'](_0x5ad4a1['id']);this['stopListening'](_0x5f3ea9),_0x5f3ea9[_0xcc77('0x35')]&&this[_0xcc77('0x28')](),_0x5f3ea9[_0xcc77('0xc')]();}[_0xcc77('0x28')](){this['hasDirtyComment']=Array[_0xcc77('0x12')](this[_0xcc77('0x27')])['some'](_0x1289f6=>_0x1289f6[_0xcc77('0x35')]);}[_0xcc77('0x9')](){const _0x22fbaf=function(_0xcb3688){const _0x1c9e08=new _0x57edd9();for(const _0x3ad448 of _0xcb3688)_0x1c9e08['add'](_0x3ad448);return _0x1c9e08;}(this[_0xcc77('0x27')]),_0x1a6f79=this[_0xcc77('0x20')]['count'];for(let _0x11dcdd=0x1;_0x11dcdd<=_0x1a6f79;_0x11dcdd++)_0x22fbaf[_0xcc77('0x22')](0x1);for(const _0x430a93 of _0x22fbaf)_0x430a93['collapse']();_0x1a6f79>0x0&&_0x22fbaf[_0xcc77('0x32')](this['_collapsedCommentsView'],0x1),ss(_0xdbaba5(Array[_0xcc77('0x12')](this['visibleViews']),Array['from'](_0x22fbaf)),this[_0xcc77('0x15')],_0x22fbaf);}['_rearrangeExpand'](){ss(_0xdbaba5(Array['from'](this[_0xcc77('0x15')]),Array[_0xcc77('0x12')](this['commentViews'])),this[_0xcc77('0x15')],this['commentViews']);for(const _0x2b6a36 of this[_0xcc77('0x15')])_0x2b6a36['expand']();}}function ss(_0x33cb0a,_0x29065f,_0x16b8d7){let _0x3b8b96=0x0;for(const _0x33c257 of _0x33cb0a)switch(_0x33c257){case'insert':_0x29065f[_0xcc77('0x32')](_0x16b8d7[_0xcc77('0x17')](_0x3b8b96),_0x3b8b96),_0x3b8b96++;break;case _0xcc77('0xf'):_0x29065f[_0xcc77('0x22')](_0x3b8b96);break;case _0xcc77('0x1e'):_0x3b8b96++;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3852=['reopenCommentThread','listenTo','scrollWidth','tooltip','lastIndexOf','setTemplate','mouseleave','Comment\x20was\x20made\x20on\x20an\x20element','label','ck-annotation__actions','overlay','substring','isReadOnly','value','ck-context--quotes','ck-context','icon','offsetWidth','hasContext','querySelector','ck-thread__header','...','.ck-context__value','ck-context__value','contextValue','reopenButtonView','mouseenter','bindTemplate','ck-context-wrapper','_model','_attachContextActions','_createReopenButton','length','div','Reopen','bind','span','.ck-context','isVisible','classList','context','add','render','locale','execute','fire'];(function(_0x326662,_0x385240){const _0x405b40=function(_0xc1a366){while(--_0xc1a366){_0x326662['push'](_0x326662['shift']());}};_0x405b40(++_0x385240);}(_0x3852,0x137));const _0x405b=function(_0x326662,_0x385240){_0x326662=_0x326662-0x0;let _0x405b40=_0x3852[_0x326662];return _0x405b40;};import{View as _0x4053a3,ButtonView as _0xa1d6ef}from'ckeditor5/src/ui';import{getTranslation as _0x298473}from'../../../utils/common-translations';import _0x1b5ac6 from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Rt extends _0x4053a3{constructor(_0x23b468,_0x1bb54f){super(_0x23b468);const _0x298bf7=this[_0x405b('0x26')];this[_0x405b('0x28')]=_0x1bb54f,this[_0x405b('0x24')]=this[_0x405b('0x2a')](),this['bind'](_0x405b('0x1d'))['to'](this[_0x405b('0x28')],'context',_0x14c417=>!!_0x14c417),this['bind'](_0x405b('0x23'))['to'](this[_0x405b('0x28')],_0x405b('0x5'),_0x21e43a=>_0x21e43a&&_0x21e43a[_0x405b('0x18')]?this['_trimContextValue'](_0x21e43a[_0x405b('0x18')]):_0x298473(this[_0x405b('0x8')],_0x405b('0x12'))),this[_0x405b('0x10')]({'tag':_0x405b('0x2c'),'attributes':{'class':[_0x405b('0x1f')]},'children':[{'tag':'div','attributes':{'class':[_0x405b('0x27')]},'children':[{'tag':'div','attributes':{'class':[_0x405b('0x1a'),_0x298bf7['if'](_0x405b('0x1d'),_0x405b('0x19'))]},'children':[{'tag':_0x405b('0x1'),'attributes':{'class':[_0x405b('0x22')]},'children':[{'text':_0x298bf7['to']('contextValue')}]}]}]},{'tag':_0x405b('0x2c'),'attributes':{'class':[_0x405b('0x14')]},'children':[this[_0x405b('0x24')]]}]});}['render'](){super[_0x405b('0x7')](),this[_0x405b('0x29')]();}[_0x405b('0x2a')](){const _0x59555a=new _0xa1d6ef(this[_0x405b('0x8')]);return _0x59555a[_0x405b('0x13')]=_0x298473(this[_0x405b('0x8')],'Reopen'),_0x59555a[_0x405b('0xe')]=_0x298473(this[_0x405b('0x8')],_0x405b('0x2d')),_0x59555a[_0x405b('0x1b')]=_0x1b5ac6,_0x59555a[_0x405b('0x0')]('isEnabled')['to'](this[_0x405b('0x28')],_0x405b('0x17'),_0x52b0c7=>!_0x52b0c7),_0x59555a[_0x405b('0x0')](_0x405b('0x3'))['to'](this[_0x405b('0x28')],'isResolvable'),_0x59555a['on'](_0x405b('0x9'),()=>{this[_0x405b('0xa')](_0x405b('0xb'),this[_0x405b('0x28')]['id']);}),_0x59555a;}['_trimContextValue'](_0x4b532c){if(_0x4b532c[_0x405b('0x2b')]<0x96)return _0x4b532c;const _0x4f93ed=_0x4b532c[_0x405b('0xf')]('\x20',0x93);return _0x4b532c[_0x405b('0x16')](0x0,_0x4f93ed>-0x1?_0x4f93ed:0x93)+_0x405b('0x20');}[_0x405b('0x29')](){const _0x2cdec2=this['element']['querySelector'](_0x405b('0x2')),_0x1330c1=_0x2cdec2[_0x405b('0x1e')](_0x405b('0x21'));this[_0x405b('0xc')](_0x2cdec2,_0x405b('0x25'),()=>{_0x1330c1[_0x405b('0x1c')]<_0x1330c1[_0x405b('0xd')]&&_0x2cdec2[_0x405b('0x4')][_0x405b('0x6')](_0x405b('0x15'));}),this[_0x405b('0xc')](_0x2cdec2,_0x405b('0x11'),()=>{_0x2cdec2[_0x405b('0x4')]['remove'](_0x405b('0x15'));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x48f9=['then','set','ck-thread__user','editorDestroyed','delegate','showButtons','value','extendTemplate','ck-comment__input-container--active','editorReady','change:showInput','ck-thread__input','showInput','destroy','editor','ck-comment__input-container','setTemplate','focusTracker','userView','isFocused','commentInputView'];(function(_0x4bb594,_0x48f99b){var _0x4aa87d=function(_0x3fb66d){while(--_0x3fb66d){_0x4bb594['push'](_0x4bb594['shift']());}};_0x4aa87d(++_0x48f99b);}(_0x48f9,0x1a2));var _0x4aa8=function(_0x4bb594,_0x48f99b){_0x4bb594=_0x4bb594-0x0;var _0x4aa87d=_0x48f9[_0x4bb594];return _0x4aa87d;};import{View as _0x4cd803}from'ckeditor5/src/ui';import _0x546000 from'./commentinputview';import{UserView as _0xbaae41}from'ckeditor5-collaboration/src/collaboration-core';export default class Ct extends _0x4cd803{constructor(_0x3e5755,_0x48caf8,_0x4da8f2){super(_0x3e5755),this[_0x4aa8('0x1')]=new _0x546000(_0x3e5755,_0x4da8f2),this[_0x4aa8('0x1')]['bind'](_0x4aa8('0x7'))['to'](this[_0x4aa8('0x1')][_0x4aa8('0x13')],_0x4aa8('0x0'),this[_0x4aa8('0x1')],_0x4aa8('0x8'),(_0x2c8052,_0x46fa0e)=>_0x2c8052||!!_0x46fa0e),this[_0x4aa8('0x3')](_0x4aa8('0xe'),!0x1),this['on'](_0x4aa8('0xc'),()=>{this[_0x4aa8('0xe')]&&!this[_0x4aa8('0x1')][_0x4aa8('0x10')]&&this[_0x4aa8('0x1')]['createEditor']();}),this[_0x4aa8('0x1')]['delegate'](_0x4aa8('0xb'))['to'](this),this[_0x4aa8('0x1')][_0x4aa8('0x6')](_0x4aa8('0x5'))['to'](this),this[_0x4aa8('0x14')]=new _0xbaae41(_0x3e5755,_0x48caf8),this[_0x4aa8('0x14')][_0x4aa8('0x9')]({'attributes':{'class':_0x4aa8('0x4')}}),this['commentInputView']['extendTemplate']({'attributes':{'class':_0x4aa8('0xd')}}),this[_0x4aa8('0x12')]({'tag':'div','attributes':{'class':[_0x4aa8('0x11'),this['bindTemplate']['if'](_0x4aa8('0xe'),_0x4aa8('0xa'))]},'children':[this[_0x4aa8('0x14')],this[_0x4aa8('0x1')]]});}[_0x4aa8('0xf')](){return this[_0x4aa8('0x1')][_0x4aa8('0xf')]()[_0x4aa8('0x2')](()=>super[_0x4aa8('0xf')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xcc0c=['querySelector','fire','render','cancelConfirm','Write\x20a\x20comment...','change:isActive','bindTemplate','isActive','containerElement','resolveButton','ck-thread--remove-confirmation','commentThreadHeaderView','ck-thread--active','_boundFirstCommentView','set','ck-thread--','execute','bind','createCollection','high','length','resolveCommentThread','Delete\x20comment\x20thread?','ck-comment--resolve','_model','commentThreadChildren','then','locale','extendTemplate','removeCommentThread','ck-reset_all-excluded','getTemplate','label','_createResolveButton','_bindFirstCommentView','isSystemComment','actionBar','ck-thread','actionIndicator','isReadOnly','listenTo','commentViews','.ck-thread__container','change:isReadOnly','removeButton','isResolved','commentsListView','_cancelAllConfirms','ck-thread__container','remove','add','icon','placeholder','div','showConfirm'];(function(_0x25a41c,_0xcc0cc2){const _0x5e4494=function(_0x30c829){while(--_0x30c829){_0x25a41c['push'](_0x25a41c['shift']());}};_0x5e4494(++_0xcc0cc2);}(_0xcc0c,0x102));const _0x5e44=function(_0x25a41c,_0xcc0cc2){_0x25a41c=_0x25a41c-0x0;let _0x5e4494=_0xcc0c[_0x25a41c];return _0x5e4494;};import{ConfirmMixin as _0x394727}from'ckeditor5-collaboration/src/collaboration-core';import{ButtonView as _0x426f48}from'ckeditor5/src/ui';import{icons as _0x5b2617}from'ckeditor5/src/core';import _0x844626 from'./basecommentthreadview';import{getTranslation as _0x513cee}from'../../../utils/common-translations';export default class lt extends _0x394727(_0x844626){constructor(_0x573ef0,_0xdfbd60,_0x3b80f2,_0x47ba66){super(_0x573ef0,_0xdfbd60,_0x3b80f2,_0x47ba66),this[_0x5e44('0x2a')]=this[_0x5e44('0x23')](),this[_0x5e44('0x2a')]['addMany']([this[_0x5e44('0x8')],this['commentThreadInputView']]),this[_0x5e44('0x29')]['isResolved']&&this['commentThreadChildren'][_0x5e44('0xc')](this[_0x5e44('0x1c')],0x0),this[_0x5e44('0x29')]['on']('change:isResolved',(_0x4b112a,_0x44073a,_0x52fa11)=>{_0x52fa11?this[_0x5e44('0x2a')][_0x5e44('0xc')](this['commentThreadHeaderView'],0x0):this[_0x5e44('0x2a')][_0x5e44('0xb')](this[_0x5e44('0x1c')]);}),this[_0x5e44('0x1f')]('actionIndicator',null),this[_0x5e44('0x19')]=null,this[_0x5e44('0x1e')]=null,this[_0x5e44('0x2c')]=_0x573ef0,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this[_0x5e44('0x30')]()),this['on'](_0x5e44('0x16'),(_0xb73da,_0x51f78d,_0x2707f1)=>{_0x2707f1||this[_0x5e44('0x9')]();}),this['listenTo'](this['_model'],_0x5e44('0x5'),(_0xc47b6d,_0x26d5a3,_0x4d896e)=>{_0x4d896e&&this[_0x5e44('0x9')]();}),this[_0x5e44('0x25')]>0x0&&this[_0x5e44('0x33')](),this[_0x5e44('0x2')](this['commentsListView'][_0x5e44('0x3')],'add',()=>{this[_0x5e44('0x33')]();});}[_0x5e44('0x30')](){const _0x5d9d2a=this[_0x5e44('0x17')];return{'tag':_0x5e44('0xf'),'attributes':{'class':[_0x5e44('0x36'),_0x5e44('0x2f'),_0x5d9d2a['if'](_0x5e44('0x18'),_0x5e44('0x1d')),_0x5d9d2a['if']('isConfirm',_0x5e44('0x1b')),_0x5d9d2a['to'](_0x5e44('0x0'),_0x3d6ffd=>_0x3d6ffd?_0x5e44('0x20')+_0x3d6ffd:'')],'data-thread-id':this['_model']['id'],'tabindex':-0x1},'children':[{'tag':_0x5e44('0xf'),'attributes':{'class':_0x5e44('0xa')},'children':this[_0x5e44('0x2a')]}]};}[_0x5e44('0x13')](){super[_0x5e44('0x13')](),this['containerElement']=this['element'][_0x5e44('0x11')](_0x5e44('0x4'));}['_cancelAllConfirms'](){this[_0x5e44('0x14')]();for(const _0x3ae6f7 of this[_0x5e44('0x8')][_0x5e44('0x3')])_0x3ae6f7[_0x5e44('0x14')]();}[_0x5e44('0x33')](){const {locale:_0x4ca26b}=this,_0xe4ad12=this[_0x5e44('0x8')]['commentViews']['get'](0x0);_0xe4ad12===this['_boundFirstCommentView']||_0xe4ad12[_0x5e44('0x34')]||(this[_0x5e44('0x1e')]=_0xe4ad12,this['unbind'](_0x5e44('0x0')),this[_0x5e44('0x22')](_0x5e44('0x0'))['to'](_0xe4ad12,_0x5e44('0x0'),_0x353917=>_0x5e44('0xb')===_0x353917?_0x5e44('0xb'):null),_0xe4ad12[_0x5e44('0xe')]=_0x513cee(_0x4ca26b,_0x5e44('0x15')),_0xe4ad12[_0x5e44('0x6')]['on'](_0x5e44('0x21'),_0x1b4352=>{_0x1b4352['stop'](),this[_0x5e44('0x10')](_0x513cee(_0x4ca26b,_0x5e44('0x27')),this[_0x5e44('0x19')])[_0x5e44('0x2b')](()=>{this[_0x5e44('0x12')](_0x5e44('0x2e'));});},{'priority':_0x5e44('0x24')}),_0xe4ad12[_0x5e44('0x35')][_0x5e44('0xc')](this[_0x5e44('0x1a')],0x0));}[_0x5e44('0x32')](){const _0x1dd878=new _0x426f48(this[_0x5e44('0x2c')]);return _0x1dd878[_0x5e44('0x31')]=_0x513cee(this[_0x5e44('0x2c')],'Resolve'),_0x1dd878['tooltip']=_0x513cee(this[_0x5e44('0x2c')],'Resolve'),_0x1dd878[_0x5e44('0xd')]=_0x5b2617['check'],_0x1dd878[_0x5e44('0x2d')]({'attributes':{'class':_0x5e44('0x28')}}),_0x1dd878[_0x5e44('0x22')]('isEnabled')['to'](this['_model'],_0x5e44('0x1'),_0x2c4d50=>!_0x2c4d50),_0x1dd878[_0x5e44('0x22')]('isVisible')['to'](this['_model'],'isResolvable',this[_0x5e44('0x29')],_0x5e44('0x7'),(_0x5b82e9,_0x6498d6)=>_0x5b82e9&&!_0x6498d6),_0x1dd878['on'](_0x5e44('0x21'),()=>{this[_0x5e44('0x12')](_0x5e44('0x26'),this['_model']['id']);}),_0x1dd878;}}
|