@ckeditor/ckeditor5-comments 0.0.0-nightly-20230809.0 → 0.0.0-nightly-20230811.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 _0x32f6=['basic','collaboration_features','high','plugins','get','config','commands','importWord','importWord.commentsStyles','editor','listenTo','_handleImportedData','dataInsert','define','afterInit','forEach','collaboration.channelId','addCommentThread','map'];(function(_0x4b1ca1,_0x32f67a){const _0x54f4df=function(_0x8cfe22){while(--_0x8cfe22){_0x4b1ca1['push'](_0x4b1ca1['shift']());}};_0x54f4df(++_0x32f67a);}(_0x32f6,0x77));const _0x54f4=function(_0x4b1ca1,_0x32f67a){_0x4b1ca1=_0x4b1ca1-0x0;let _0x54f4df=_0x32f6[_0x4b1ca1];return _0x54f4df;};import{Plugin as _0x3fc64d}from'ckeditor5/src/core';import{priorities as _0x2a5451}from'ckeditor5/src/utils';import{Users as _0x442bce}from'ckeditor5-collaboration/src/collaboration-core';import _0x584e1b from'../commentsrepository';export default class tt extends _0x3fc64d{constructor(_0x28852a){super(_0x28852a),this[_0x54f4('0x4')]['config'][_0x54f4('0x8')](_0x54f4('0x3'),_0x54f4('0xe'));}[_0x54f4('0x9')](){const _0x42d0d9=this['editor'],_0x18cc54=_0x42d0d9[_0x54f4('0x1')][_0x54f4('0x12')](_0x54f4('0x2')),_0x346f73=_0x42d0d9[_0x54f4('0x11')][_0x54f4('0x12')](_0x442bce);_0x18cc54&&(_0x18cc54['on']('execute',(_0x5980ef,[,_0x59c97b])=>{_0x59c97b[_0x54f4('0xf')]={'comments':!0x0,'user_id':_0x346f73['me']['id'],'comments_styles':this['editor'][_0x54f4('0x0')][_0x54f4('0x12')](_0x54f4('0x3'))};},{'priority':_0x2a5451[_0x54f4('0x10')]+0xa}),this[_0x54f4('0x5')](_0x18cc54,_0x54f4('0x7'),this[_0x54f4('0x6')]));}['_handleImportedData'](_0x1f531c,_0x19c540){const {comment_threads:_0x5e7a0a}=_0x19c540;_0x5e7a0a&&_0x5e7a0a[_0x54f4('0xa')](({thread_id:_0x187d3f,comments:_0x55d906,is_resolved:_0x5086b9})=>{const _0xad5b92=new Date(),_0x505536=_0x55d906[_0x54f4('0xd')](({author:_0x1a026b,content:_0x1f2fc7,created_at:_0x3ae312})=>({'content':_0x1f2fc7,'authorId':this[_0x54f4('0x4')]['plugins'][_0x54f4('0x12')](_0x442bce)['me']['id'],'createdAt':_0xad5b92,'attributes':{'@external':{'authorName':_0x1a026b,'createdAt':_0x3ae312?new Date(_0x3ae312):new Date(),'source':_0x54f4('0x2')}}})),_0x5a5b0f=this[_0x54f4('0x4')][_0x54f4('0x0')][_0x54f4('0x12')](_0x54f4('0xb'));this['editor'][_0x54f4('0x11')][_0x54f4('0x12')](_0x584e1b)[_0x54f4('0xc')]({'channelId':_0x5a5b0f,'threadId':_0x187d3f,'comments':_0x505536,'resolvedAt':_0x5086b9?_0xad5b92:null});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a86=['end','ready','data','defaultPlugins','assign','editing','childCount','getRoot','initPlugins','config','get','view','then','placeholder','set','destroy','focus','document','placeholderElement','model','init','createRoot','low','_updatePlaceholder','getChild','plugins','setSelection','change'];(function(_0xf60487,_0x2a86b9){const _0x1a03e1=function(_0x395d10){while(--_0x395d10){_0xf60487['push'](_0xf60487['shift']());}};_0x1a03e1(++_0x2a86b9);}(_0x2a86,0xa4));const _0x1a03=function(_0xf60487,_0x2a86b9){_0xf60487=_0xf60487-0x0;let _0x1a03e1=_0x2a86[_0xf60487];return _0x1a03e1;};import{Editor as _0x3f951d,DataApiMixin as _0x47bfde}from'ckeditor5/src/core';import _0x59750e from'./commenteditorui';import{ObservableMixin as _0x42ff73}from'ckeditor5/src/utils';import{enablePlaceholder as _0x158679,disablePlaceholder as _0x24c1ef}from'ckeditor5/src/engine';import{Clipboard as _0x17cda4}from'ckeditor5/src/clipboard';import{Enter as _0x3977ba,ShiftEnter as _0x439595}from'ckeditor5/src/enter';import{SelectAll as _0x2c5001}from'ckeditor5/src/select-all';import{Typing as _0x4028a6}from'ckeditor5/src/typing';import{Undo as _0x255e74}from'ckeditor5/src/undo';import{Paragraph as _0x4316a1}from'ckeditor5/src/paragraph';const Kt=[_0x17cda4,_0x3977ba,_0x439595,_0x2c5001,_0x4028a6,_0x255e74,_0x4316a1];export default class Lt extends _0x42ff73(_0x47bfde(_0x3f951d)){constructor(_0x23e80c={}){(_0x23e80c=Object[_0x1a03('0x8')]({},_0x23e80c))[_0x1a03('0x1')]||(_0x23e80c[_0x1a03('0x1')]=Lt[_0x1a03('0x7')]),super(_0x23e80c),this['ui']=new _0x59750e(this),this[_0x1a03('0x12')](_0x1a03('0x11'),''),this[_0x1a03('0x17')]['document']['on'](_0x1a03('0x3'),()=>this[_0x1a03('0x1b')](),{'priority':_0x1a03('0x1a')}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this[_0x1a03('0x17')][_0x1a03('0x15')][_0x1a03('0x19')]();}['create'](){const _0x4c09cc=this[_0x1a03('0xd')][_0x1a03('0xe')]('initialData')||'';return this[_0x1a03('0xc')]()[_0x1a03('0x10')](()=>this['ui'][_0x1a03('0x18')]())[_0x1a03('0x10')](()=>this[_0x1a03('0x6')][_0x1a03('0x18')](_0x4c09cc))[_0x1a03('0x10')](()=>this['fire'](_0x1a03('0x5')));}[_0x1a03('0x13')](){return super[_0x1a03('0x13')]()[_0x1a03('0x10')](()=>this['ui'][_0x1a03('0x13')]());}[_0x1a03('0x14')](){this[_0x1a03('0x17')][_0x1a03('0x3')](_0x1e65db=>{const _0x3fd0da=this[_0x1a03('0x17')][_0x1a03('0x15')][_0x1a03('0xb')](),_0x38978e=_0x3fd0da&&_0x3fd0da[_0x1a03('0x0')](_0x3fd0da[_0x1a03('0xa')]-0x1);_0x1e65db[_0x1a03('0x2')](_0x38978e,_0x1a03('0x4')),this[_0x1a03('0x9')][_0x1a03('0xf')]['focus']();});}[_0x1a03('0x1b')](){const _0x453c0b=this[_0x1a03('0x9')][_0x1a03('0xf')],_0x2e7703=_0x453c0b[_0x1a03('0x15')][_0x1a03('0xb')](),_0x17aa9c=_0x2e7703[_0x1a03('0x0')](0x0);_0x2e7703[_0x1a03('0xa')]>0x1||!_0x17aa9c||'p'!=_0x17aa9c['name']?this[_0x1a03('0x16')]&&this['placeholderElement'][_0x1a03('0x11')]&&(_0x24c1ef(_0x453c0b,this[_0x1a03('0x16')]),this[_0x1a03('0x16')]=void 0x0):(this['placeholder']&&(_0x17aa9c[_0x1a03('0x11')]=this[_0x1a03('0x11')]),_0x158679({'view':_0x453c0b,'element':_0x17aa9c,'keepOnFocus':!0x0}),this[_0x1a03('0x16')]=_0x17aa9c);}}Lt['defaultPlugins']=Kt;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x56d9=['bind','init','editing','destroy','focusTracker','getRoot','render','element','isFocused','view','name','editable','attachDomRoot','locale','rootName'];(function(_0x4c03fa,_0x56d98f){const _0x55937f=function(_0xb375e5){while(--_0xb375e5){_0x4c03fa['push'](_0x4c03fa['shift']());}};_0x55937f(++_0x56d98f);}(_0x56d9,0x1a3));const _0x5593=function(_0x4c03fa,_0x56d98f){_0x4c03fa=_0x4c03fa-0x0;let _0x55937f=_0x56d9[_0x4c03fa];return _0x55937f;};import{EditorUI as _0x4b9ba2}from'ckeditor5/src/ui';import _0x270c84 from'./commenteditoruiview';export default class jt extends _0x4b9ba2{constructor(_0x5eb739){super(_0x5eb739),this['view']=new _0x270c84(_0x5eb739[_0x5593('0xe')],_0x5eb739[_0x5593('0x3')][_0x5593('0xa')]);}get[_0x5593('0x8')](){return this[_0x5593('0xa')][_0x5593('0x8')];}[_0x5593('0x2')](){const _0x5242da=this['editor'][_0x5593('0x3')][_0x5593('0xa')],_0x3179eb=this[_0x5593('0xa')][_0x5593('0xc')],_0x102b5a=_0x5242da['document'][_0x5593('0x6')]();_0x3179eb['name']=_0x102b5a[_0x5593('0x0')],this[_0x5593('0xa')][_0x5593('0x7')]();const _0x49fd2d=_0x3179eb[_0x5593('0x8')];this['setEditableElement'](_0x3179eb[_0x5593('0xb')],_0x49fd2d),this['view'][_0x5593('0xc')][_0x5593('0x1')](_0x5593('0x9'))['to'](this[_0x5593('0x5')]),_0x5242da[_0x5593('0xd')](_0x49fd2d),this['fire']('ready');}[_0x5593('0x4')](){super[_0x5593('0x4')](),this['view'][_0x5593('0x4')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2aaf=['add','_createVoiceLabel','_voiceLabelView','render','uiLanguage','editable','ck-editor','div','ck-editor__main','createCollection','text','element','setTemplate','comment','cke-editor__aria-label_','uiLanguageDirection','main','ck-comment__input','ck-reset','focus'];(function(_0x27d311,_0x2aaf6c){const _0x7a22f3=function(_0x43de87){while(--_0x43de87){_0x27d311['push'](_0x27d311['shift']());}};_0x7a22f3(++_0x2aaf6c);}(_0x2aaf,0x6e));const _0x7a22=function(_0x27d311,_0x2aaf6c){_0x27d311=_0x27d311-0x0;let _0x7a22f3=_0x2aaf[_0x27d311];return _0x7a22f3;};import{InlineEditableUIView as _0x25a470,EditorUIView as _0x31e461,LabelView as _0x57d0cf}from'ckeditor5/src/ui';import{uid as _0x54053d}from'ckeditor5/src/utils';import{getTranslation as _0x3f6120}from'../../../utils/common-translations';export default class Nt extends _0x31e461{constructor(_0x2f5ad,_0x4615ca){super(_0x2f5ad);const _0x2c42a4=_0x54053d();this[_0x7a22('0x6')]=this[_0x7a22('0x13')](),this[_0x7a22('0xf')]=new _0x25a470(_0x2f5ad,_0x4615ca),this[_0x7a22('0xc')]=this['_createVoiceLabel'](_0x2c42a4,_0x2f5ad),this[_0x7a22('0x2')]({'tag':_0x7a22('0x11'),'attributes':{'class':[_0x7a22('0x8'),_0x7a22('0x10'),'ck-rounded-corners',_0x7a22('0x7')],'role':_0x7a22('0x3'),'dir':_0x2f5ad[_0x7a22('0x5')],'lang':_0x2f5ad[_0x7a22('0xe')],'aria-labelledby':_0x7a22('0x4')+_0x2c42a4},'children':[this[_0x7a22('0xc')],{'tag':_0x7a22('0x11'),'attributes':{'class':_0x7a22('0x12'),'role':'presentation'},'children':this[_0x7a22('0x6')]}]});}[_0x7a22('0xd')](){super['render'](),this['main'][_0x7a22('0xa')](this[_0x7a22('0xf')]);}['focus'](){this[_0x7a22('0xf')][_0x7a22('0x1')][_0x7a22('0x9')]();}[_0x7a22('0xb')](_0x34d083,_0x1cdd53){const _0x564fb9=new _0x57d0cf();return _0x564fb9[_0x7a22('0x0')]=_0x3f6120(_0x1cdd53,'Comment\x20editor'),_0x564fb9['extendTemplate']({'attributes':{'id':'ck-editor__aria-label_'+_0x34d083,'class':'ck-voice-label'}}),_0x564fb9;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x333c=['listenTo','addComment','submitCommentThread','isResolved','reopenCommentThread','_isAttached','resolve','remove','stopListening','_localUser','reopen','updateComment','resolveCommentThread','submit','model','getComment','removeComment','view','removeCommentThread','destroy'];(function(_0x2e1df6,_0x333c23){var _0x54b437=function(_0x297261){while(--_0x297261){_0x2e1df6['push'](_0x2e1df6['shift']());}};_0x54b437(++_0x333c23);}(_0x333c,0x70));var _0x54b4=function(_0x2e1df6,_0x333c23){_0x2e1df6=_0x2e1df6-0x0;var _0x54b437=_0x333c[_0x2e1df6];return _0x54b437;};import{ObservableMixin as _0x1f3ef3}from'ckeditor5/src/utils';export default class ut extends _0x1f3ef3(){constructor(_0x287a8a,_0x55a5fb){super(),this['model']=_0x287a8a,this['model'][_0x54b4('0xd')]=!0x0,this[_0x54b4('0x5')]=_0x55a5fb,this[_0x54b4('0x8')](_0x55a5fb,_0x54b4('0xa'),()=>this[_0x54b4('0x1')]()),this[_0x54b4('0x8')](_0x55a5fb,_0x54b4('0x6'),()=>this[_0x54b4('0xf')]()),this[_0x54b4('0x8')](_0x55a5fb,_0x54b4('0x0'),()=>this[_0x54b4('0xe')]()),this[_0x54b4('0x8')](_0x55a5fb,_0x54b4('0xc'),()=>this[_0x54b4('0x12')]()),this['listenTo'](_0x55a5fb,'addComment',(_0x398340,_0xeaad97)=>this[_0x54b4('0x9')](_0xeaad97)),this[_0x54b4('0x8')](_0x55a5fb,_0x54b4('0x13'),(_0x25f5da,_0x4c338c,_0x2c09e8)=>this[_0x54b4('0x13')](_0x4c338c,_0x2c09e8)),this[_0x54b4('0x8')](_0x55a5fb,_0x54b4('0x4'),(_0x368b89,_0x255b57)=>this[_0x54b4('0x4')](_0x255b57));}[_0x54b4('0x1')](){this[_0x54b4('0x2')]['submit']();}[_0x54b4('0xf')](){this[_0x54b4('0x2')][_0x54b4('0xf')]();}[_0x54b4('0xe')](){this[_0x54b4('0x2')][_0x54b4('0xb')]||this['model']['resolve']();}[_0x54b4('0x12')](){this['model'][_0x54b4('0xb')]&&this[_0x54b4('0x2')][_0x54b4('0x12')]();}[_0x54b4('0x9')](_0xcb68ae){this[_0x54b4('0x2')][_0x54b4('0x9')]({'content':_0xcb68ae,'authorId':this[_0x54b4('0x5')][_0x54b4('0x11')]['id']});}[_0x54b4('0x13')](_0x535019,_0x132903){this['model'][_0x54b4('0x3')](_0x535019)['update']({'content':_0x132903});}[_0x54b4('0x4')](_0x55e345){this[_0x54b4('0x2')][_0x54b4('0x3')](_0x55e345)[_0x54b4('0xf')]();}[_0x54b4('0x7')](){this[_0x54b4('0x10')](),this['model'][_0x54b4('0xd')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x62fc=['_config','placeholder','_model','editorDestroyed','isSubmitted','commentThreadInputView','element','isResolved','isReadOnly','submitCommentThread','Comment','_localUser','commentsListView','disabledSubmit','isResolvable','_createCommentThreadInputView','reopenCommentThread','CommentView','isDirty','updateComment','value','fire','focus','assign','removeCommentThread','length','isActive','commentInputView','editorReady','set','locale','destroy','change:isActive','showInput','bind','removeComment','resolveCommentThread','Reply\x20to\x20reopen\x20discussion...','delegate','editorConfig','cancel','Reply...','commentThreadHeaderView'];(function(_0x229be9,_0x62fcc2){const _0x503fc6=function(_0x4e0a80){while(--_0x4e0a80){_0x229be9['push'](_0x229be9['shift']());}};_0x503fc6(++_0x62fcc2);}(_0x62fc,0xf5));const _0x503f=function(_0x229be9,_0x62fcc2){_0x229be9=_0x229be9-0x0;let _0x503fc6=_0x62fc[_0x229be9];return _0x503fc6;};import{View as _0x5622f3}from'ckeditor5/src/ui';import _0x2c7009 from'./commentthreadinputview';import _0xebfe5 from'./commentslistview';import _0x5f0333 from'./commentthreadheaderview';import{getTranslation as _0x4d0edb}from'../../../utils/common-translations';export default class Tt extends _0x5622f3{constructor(_0x64affe,_0x5ee661,_0x4f5fd4,_0x1cfe40){super(_0x64affe),this[_0x503f('0x2a')](_0x503f('0x27'),!0x1),this['set'](_0x503f('0x1f'),!0x1),this[_0x503f('0xf')]=_0x5ee661,this[_0x503f('0x18')]=_0x4f5fd4,this[_0x503f('0xd')]=_0x1cfe40,this[_0x503f('0xc')]=new _0x5f0333(_0x64affe,_0x5ee661),this[_0x503f('0xc')][_0x503f('0x8')]('reopenCommentThread')['to'](this),this[_0x503f('0x19')]=new _0xebfe5(_0x64affe,_0x5ee661,Object[_0x503f('0x24')]({'CommentView':this[_0x503f('0xd')][_0x503f('0x1e')]},_0x1cfe40)),this[_0x503f('0x19')]['delegate'](_0x503f('0x5'))['to'](this),this[_0x503f('0x19')][_0x503f('0x8')](_0x503f('0x20'))['to'](this),this['commentsListView'][_0x503f('0x8')](_0x503f('0x6'))['to'](this),this[_0x503f('0x19')][_0x503f('0x8')](_0x503f('0x29'))['to'](this),this[_0x503f('0x19')][_0x503f('0x8')](_0x503f('0x10'))['to'](this),this[_0x503f('0x19')][_0x503f('0x4')](_0x503f('0x27'))['to'](this),this[_0x503f('0x2a')]('length',this[_0x503f('0x19')][_0x503f('0x26')]),this[_0x503f('0x4')]('length')['to'](this[_0x503f('0x19')],'length'),this[_0x503f('0x12')]=this[_0x503f('0x1c')](),this[_0x503f('0x12')]['delegate'](_0x503f('0x29'))['to'](this),this[_0x503f('0x12')][_0x503f('0x8')](_0x503f('0x10'))['to'](this),this['on'](_0x503f('0x5'),()=>this[_0x503f('0x23')]()),this['bind'](_0x503f('0x1f'))['to'](this[_0x503f('0x19')],'hasDirtyComment',this[_0x503f('0x12')][_0x503f('0x28')],_0x503f('0x21'),(_0x3eb102,_0x47d550)=>_0x3eb102||!!_0x47d550);}[_0x503f('0x23')](){this[_0x503f('0x13')][_0x503f('0x23')]();}[_0x503f('0x1')](){this[_0x503f('0x1f')]=!0x1,this[_0x503f('0x19')]['destroy'](),this[_0x503f('0x12')][_0x503f('0x1')](),super[_0x503f('0x1')]();}[_0x503f('0x1c')](){const _0xed1bca=new _0x2c7009(this[_0x503f('0x0')],this[_0x503f('0x18')],this[_0x503f('0xd')][_0x503f('0x9')]),_0x418814=_0xed1bca[_0x503f('0x28')];return _0xed1bca['bind'](_0x503f('0x3'))['to'](this,_0x503f('0x27'),this['_model'],'isReadOnly',this[_0x503f('0xf')],'canComment',this[_0x503f('0xf')],_0x503f('0x14'),_0x418814,'value',(_0x4ed62a,_0x27d371,_0x4a36bb,_0x5244e3,_0x17556c)=>!!_0x17556c||_0x5244e3&&_0x4a36bb&&!_0x27d371||_0x4ed62a&&_0x4a36bb&&!_0x27d371),_0x418814['bind'](_0x503f('0xe'))['to'](this,_0x503f('0x26'),this[_0x503f('0xf')],_0x503f('0x1b'),this[_0x503f('0xf')],_0x503f('0x14'),(_0x2c9b9d,_0x4bbccb,_0x3f4e00)=>{let _0xf8ecfb;return _0xf8ecfb=_0x3f4e00&&_0x4bbccb?_0x503f('0x7'):_0x2c9b9d?_0x503f('0xb'):'Write\x20a\x20comment...',_0x4d0edb(this['locale'],_0xf8ecfb);}),_0x418814['bind']('submitLabel')['to'](this,_0x503f('0x26'),_0x44608c=>_0x4d0edb(this[_0x503f('0x0')],_0x44608c?'Reply':_0x503f('0x17'))),_0x418814['on']('submit',(_0x14457b,_0x50cebe)=>{this[_0x503f('0x22')]('addComment',_0x50cebe),this[_0x503f('0xf')][_0x503f('0x14')]&&this[_0x503f('0xf')][_0x503f('0x1b')]&&this['fire'](_0x503f('0x1d'),this[_0x503f('0xf')]['id']),this[_0x503f('0xf')][_0x503f('0x11')]||this[_0x503f('0x22')](_0x503f('0x16'));}),_0x418814['on'](_0x503f('0xa'),()=>{this['focus']();}),_0x418814['bind'](_0x503f('0x1a'))['to'](this[_0x503f('0xf')],_0x503f('0x15')),_0x418814['on'](_0x503f('0xa'),_0x2efd43=>{0x0==this[_0x503f('0x26')]&&(this['fire'](_0x503f('0x25')),_0x2efd43['stop']());}),this['on'](_0x503f('0x2'),(_0x547064,_0x478da1,_0x39347c)=>{_0x39347c||this['length']||_0x418814[_0x503f('0x21')]||this[_0x503f('0x22')]('removeCommentThread');}),_0xed1bca;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3aa9=['switchToDisplayMode','submitLabel','fire','destroy','isReadOnly','Save','locale','remove','collapse','_model','content','bind','createCollection','_createCommentContentView','disabledSubmit','createEditor','delegate','focus','once','initialData','add','isCollapsed','visibleView','set','_config','get','_createCommentInputView','updateComment','cancel','editorConfig','submit','value','expand','element','editorDestroyed','isEditMode','editorReady'];(function(_0x24cda8,_0x3aa968){const _0x361982=function(_0x42974d){while(--_0x42974d){_0x24cda8['push'](_0x24cda8['shift']());}};_0x361982(++_0x3aa968);}(_0x3aa9,0xfe));const _0x3619=function(_0x24cda8,_0x3aa968){_0x24cda8=_0x24cda8-0x0;let _0x361982=_0x3aa9[_0x24cda8];return _0x361982;};import{View as _0x25a795}from'ckeditor5/src/ui';import{trimHtml as _0x39fef5}from'ckeditor5-collaboration/src/collaboration-core';import _0x3e6d29 from'./commentcontentview';import _0x3fd4dc from'./commentinputview';import{getTranslation as _0x11b422}from'../../../utils/common-translations';export default class Yt extends _0x25a795{constructor(_0x4a1435,_0x3173ae,_0x35962c){super(_0x4a1435),this[_0x3619('0xe')]=_0x3173ae,this[_0x3619('0x1d')]=_0x35962c,this['isSystemComment']=!!this[_0x3619('0x1d')]['isSystemComment'],this[_0x3619('0x1c')]('isEditMode',!0x1),this[_0x3619('0x1c')](_0x3619('0x1a'),!0x0),this[_0x3619('0x1b')]=this[_0x3619('0x11')](),this[_0x3619('0x1b')][_0x3619('0x19')](this[_0x3619('0x12')]());}[_0x3619('0x0')](){this[_0x3619('0x1a')]=!0x1;}[_0x3619('0xd')](){this[_0x3619('0x3')]||(this['isCollapsed']=!0x0);}[_0x3619('0x16')](){this[_0x3619('0x1')][_0x3619('0x16')]();}async[_0x3619('0x8')](){await this[_0x3619('0x1b')][_0x3619('0x1e')](0x0)['destroy'](),super['destroy']();}['switchToEditMode'](){this[_0x3619('0x3')]||(this[_0x3619('0x3')]=!0x0,this[_0x3619('0x1b')][_0x3619('0xc')](0x0)[_0x3619('0x8')](),this[_0x3619('0x1b')]['add'](this['_createCommentInputView']()));}['switchToDisplayMode'](){this['isEditMode']&&(this[_0x3619('0x3')]=!0x1,this[_0x3619('0x1b')][_0x3619('0xc')](0x0)[_0x3619('0x8')](),this[_0x3619('0x1b')]['add'](this[_0x3619('0x12')]()));}[_0x3619('0x12')](){const _0x1973c4=new _0x3e6d29(this[_0x3619('0xb')]);return _0x1973c4[_0x3619('0x10')](_0x3619('0xf'))['to'](this[_0x3619('0xe')],'content',this,_0x3619('0x1a'),(_0x12a852,_0xf3b181)=>_0xf3b181?_0x39fef5(_0x12a852,{'limit':this[_0x3619('0x1d')]['maxCommentCharsWhenCollapsed']}):_0x12a852),_0x1973c4;}[_0x3619('0x1f')](){this[_0x3619('0x1d')][_0x3619('0x22')]||(this[_0x3619('0x1d')][_0x3619('0x22')]={}),this[_0x3619('0x1d')][_0x3619('0x22')][_0x3619('0x18')]=this[_0x3619('0xe')][_0x3619('0xf')];const _0x570e70=new _0x3fd4dc(this['locale'],this[_0x3619('0x1d')]['editorConfig']);return _0x570e70[_0x3619('0x24')]=this['_model'][_0x3619('0xf')],_0x570e70[_0x3619('0x10')](_0x3619('0x13'))['to'](this[_0x3619('0xe')],_0x3619('0x9')),_0x570e70[_0x3619('0x6')]=_0x11b422(this['locale'],_0x3619('0xa')),_0x570e70['on'](_0x3619('0x23'),(_0x1d0322,_0x216d6b)=>{this[_0x3619('0x7')](_0x3619('0x20'),this[_0x3619('0xe')]['id'],_0x216d6b),this[_0x3619('0x5')](),this[_0x3619('0x16')]();}),_0x570e70['on'](_0x3619('0x21'),()=>{this['switchToDisplayMode'](),this[_0x3619('0x16')]();}),_0x570e70[_0x3619('0x17')](_0x3619('0x4'),()=>{_0x570e70[_0x3619('0x16')]();}),_0x570e70[_0x3619('0x14')](),_0x570e70[_0x3619('0x15')](_0x3619('0x4'))['to'](this),_0x570e70[_0x3619('0x15')](_0x3619('0x2'))['to'](this),_0x570e70;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x15bc=['ck-thread__comment-count','count','NUMBER_OF_COMMENTS','set','setTemplate','bindTemplate'];(function(_0x23c35f,_0x15bc1b){const _0x14c544=function(_0x47ae9c){while(--_0x47ae9c){_0x23c35f['push'](_0x23c35f['shift']());}};_0x14c544(++_0x15bc1b);}(_0x15bc,0xfa));const _0x14c5=function(_0x23c35f,_0x15bc1b){_0x23c35f=_0x23c35f-0x0;let _0x14c544=_0x15bc[_0x23c35f];return _0x14c544;};import{View as _0x25370c}from'ckeditor5/src/ui';import{getTranslation as _0x848b72}from'../../../utils/common-translations';export default class Zt extends _0x25370c{constructor(_0x45a5ed){super(_0x45a5ed);const _0x731b35=this[_0x14c5('0x1')];this[_0x14c5('0x5')](_0x14c5('0x3'),void 0x0),this[_0x14c5('0x0')]({'tag':'li','attributes':{'class':_0x14c5('0x2')},'children':[{'text':_0x731b35['to'](_0x14c5('0x3'),_0x3fe3d2=>_0x848b72(_0x45a5ed,_0x14c5('0x4'),_0x3fe3d2))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2eea=['div','element','content','ck-annotation__content','setTemplate','innerHTML','render','change:content'];(function(_0x32be48,_0x2eea25){var _0x57a1e7=function(_0x11acf2){while(--_0x11acf2){_0x32be48['push'](_0x32be48['shift']());}};_0x57a1e7(++_0x2eea25);}(_0x2eea,0x139));var _0x57a1=function(_0x32be48,_0x2eea25){_0x32be48=_0x32be48-0x0;var _0x57a1e7=_0x2eea[_0x32be48];return _0x57a1e7;};import{View as _0x40dfea}from'ckeditor5/src/ui';export default class Ut extends _0x40dfea{constructor(_0x258b21){super(_0x258b21),this['set'](_0x57a1('0x1'),''),this[_0x57a1('0x3')]({'tag':_0x57a1('0x7'),'attributes':{'class':['ck-comment__content',_0x57a1('0x2')]}});}[_0x57a1('0x5')](){super[_0x57a1('0x5')](),this['on'](_0x57a1('0x6'),(_0x300bc5,_0x97795e,_0xac7ba2)=>{this['element']['innerHTML']=_0xac7ba2;}),this[_0x57a1('0x0')][_0x57a1('0x4')]=this[_0x57a1('0x1')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x198a=['set','stop','extendTemplate','ck-comment__input-wrapper','ck-comment__input-actions--cancel','Reply...','ck-comment__input-actions','forEach','shift\x20+\x20tab','setTemplate','focus','trim','_editorCreationPromise','cancel','getData','initialData','_editorConfig','disabledSubmit','placeholder','value','bindTemplate','Reply','focusTracker','focusNext','ck-comment__input-actions--active','createEditor','label','destroy','editor','length','isEnabled','div','Esc','cancelButtonView','keystrokes','listenTo','focusPrevious','fire','submitButtonView','create','withText','_createSubmitButton','add','firstChild','_initializeFocusCycling','then','execute','low','setData','render','bind','model','_isDestroyed','element','view','_createCancelButton','high'];(function(_0x2cca6b,_0x198ae7){const _0x1e5ae6=function(_0x13d15b){while(--_0x13d15b){_0x2cca6b['push'](_0x2cca6b['shift']());}};_0x1e5ae6(++_0x198ae7);}(_0x198a,0x120));const _0x1e5a=function(_0x2cca6b,_0x198ae7){_0x2cca6b=_0x2cca6b-0x0;let _0x1e5ae6=_0x198a[_0x2cca6b];return _0x1e5ae6;};import{View as _0xdab183,ViewCollection as _0x188ab7,FocusCycler as _0x105d24,ButtonView as _0x16a0aa}from'ckeditor5/src/ui';import{FocusTracker as _0x4815a2,KeystrokeHandler as _0x15d6e3}from'ckeditor5/src/utils';import _0x16073a from'../commenteditor/commenteditor';import{getTranslation as _0x6e1354}from'../../../utils/common-translations';export default class Xt extends _0xdab183{constructor(_0x4f2505,_0xfdb82={}){super(_0x4f2505),this[_0x1e5a('0x19')]=null,this['_editorConfig']=_0xfdb82,this[_0x1e5a('0x1f')]=new _0x15d6e3(),this[_0x1e5a('0x13')]=new _0x4815a2(),this[_0x1e5a('0x36')]('value',_0xfdb82[_0x1e5a('0xc')]||''),this[_0x1e5a('0x36')](_0x1e5a('0xe'),!0x1),this[_0x1e5a('0x36')]('showButtons',!0x0),this[_0x1e5a('0x36')]('placeholder',_0x6e1354(_0x4f2505,_0x1e5a('0x2'))),this['set']('submitLabel',_0x6e1354(_0x4f2505,_0x1e5a('0x12'))),this[_0x1e5a('0x23')]=this['_createSubmitButton'](),this[_0x1e5a('0x1e')]=this[_0x1e5a('0x34')](),this[_0x1e5a('0x6')]({'tag':_0x1e5a('0x1c'),'attributes':{'class':[_0x1e5a('0x0')]},'children':[{'tag':'div','attributes':{'class':[_0x1e5a('0x3'),this[_0x1e5a('0x11')]['if']('showButtons',_0x1e5a('0x15'))]},'children':[this['submitButtonView'],this[_0x1e5a('0x1e')]]}]}),this['keystrokes'][_0x1e5a('0x36')](_0x1e5a('0x1d'),(_0x5b831b,_0x493815)=>{this[_0x1e5a('0x1e')]['fire'](_0x1e5a('0x2b')),_0x493815();}),this['on']('submit',(_0x21feca,_0x4db23d)=>{_0x4db23d[_0x1e5a('0x1a')]>0xfde8?(alert(_0x6e1354(_0x4f2505,'TOO_LONG_COMMENT_ALERT',[_0x4db23d['length'],0xfde8])),_0x21feca[_0x1e5a('0x37')]()):this[_0x1e5a('0x19')][_0x1e5a('0x2d')]('');},{'priority':_0x1e5a('0x35')});}[_0x1e5a('0x2e')](){super[_0x1e5a('0x2e')](),this['keystrokes'][_0x1e5a('0x20')](this['element']),this['focusTracker'][_0x1e5a('0x27')](this[_0x1e5a('0x32')]);}[_0x1e5a('0x16')](){return this[_0x1e5a('0x19')]||(this[_0x1e5a('0x19')]=new _0x16073a(this[_0x1e5a('0xd')]),this['_editorCreationPromise']=this[_0x1e5a('0x19')][_0x1e5a('0x24')]()[_0x1e5a('0x2a')](()=>{if(this['_isDestroyed'])return;const _0x5412f5=this[_0x1e5a('0x19')];this[_0x1e5a('0x32')]['insertBefore'](_0x5412f5['ui']['element'],this[_0x1e5a('0x32')][_0x1e5a('0x28')]),_0x5412f5[_0x1e5a('0x30')]['document']['on']('change',()=>this[_0x1e5a('0x10')]=_0x5412f5[_0x1e5a('0xb')]()),_0x5412f5['bind'](_0x1e5a('0xf'))['to'](this),this[_0x1e5a('0x29')](this[_0x1e5a('0x19')]),this[_0x1e5a('0x22')]('editorReady',this[_0x1e5a('0x19')]);})),this[_0x1e5a('0x9')];}[_0x1e5a('0x7')](){this[_0x1e5a('0x19')]&&this[_0x1e5a('0x19')]['focus']();}async[_0x1e5a('0x18')](){this['_isDestroyed']||(this[_0x1e5a('0x31')]=!0x0,this[_0x1e5a('0x19')]&&(await this[_0x1e5a('0x9')],await this['editor'][_0x1e5a('0x18')](),this[_0x1e5a('0x22')]('editorDestroyed',this[_0x1e5a('0x19')])),await super['destroy']());}[_0x1e5a('0x26')](){const {locale:_0x293495}=this,_0x166f2f=new _0x16a0aa(_0x293495);return _0x166f2f['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x166f2f[_0x1e5a('0x25')]=!0x0,_0x166f2f[_0x1e5a('0x2f')]('label')['to'](this,'submitLabel'),_0x166f2f['on'](_0x1e5a('0x2b'),()=>{this[_0x1e5a('0x22')]('submit',this[_0x1e5a('0x10')]);}),_0x166f2f[_0x1e5a('0x2f')](_0x1e5a('0x1b'))['to'](this,_0x1e5a('0x10'),this,_0x1e5a('0xe'),(_0xef6dd8,_0x5763d2)=>!_0x5763d2&&!!_0xef6dd8[_0x1e5a('0x8')]()),_0x166f2f;}[_0x1e5a('0x34')](){const {locale:_0x595720}=this,_0x791016=new _0x16a0aa(_0x595720);return _0x791016[_0x1e5a('0x38')]({'attributes':{'class':[_0x1e5a('0x1')]}}),_0x791016[_0x1e5a('0x17')]=_0x6e1354(_0x595720,'Cancel'),_0x791016[_0x1e5a('0x25')]=!0x0,_0x791016['on'](_0x1e5a('0x2b'),()=>{this[_0x1e5a('0x19')][_0x1e5a('0x2d')](''),this['fire'](_0x1e5a('0xa'));}),_0x791016;}[_0x1e5a('0x29')](_0x16e2be){const _0xb0d1bd=this[_0x1e5a('0x13')],_0x20ca86=new _0x188ab7();[_0x16e2be['ui'][_0x1e5a('0x33')],this['submitButtonView'],this[_0x1e5a('0x1e')]][_0x1e5a('0x4')](_0x1219d3=>{_0x20ca86[_0x1e5a('0x27')](_0x1219d3),_0xb0d1bd[_0x1e5a('0x27')](_0x1219d3[_0x1e5a('0x32')]);});const _0x2cb9dc=new _0x105d24({'focusables':_0x20ca86,'focusTracker':_0xb0d1bd});this[_0x1e5a('0x1f')][_0x1e5a('0x36')]('tab',(_0x416b17,_0x1f4d3b)=>{_0x2cb9dc[_0x1e5a('0x14')](),_0x1f4d3b();},{'priority':_0x1e5a('0x2c')}),this[_0x1e5a('0x1f')][_0x1e5a('0x36')](_0x1e5a('0x5'),(_0x20b820,_0x1d48d5)=>{_0x2cb9dc[_0x1e5a('0x21')](),_0x1d48d5();},{'priority':'low'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2717=['_focusables','ck-comments-archive__header\x20','listenTo','selectstart','COMMENTS_ARCHIVE','_focusTracker','length','focus','ck-comments-archive__info','isActive','arrowup','div','EMPTY_COMMENTS_ARCHIVE','ck-comments-archive','shift\x20+\x20tab','arrowleft','add','ck-hidden','isEmpty','destroy','bindTemplate','render','auto','high','set','tab','setTemplate','ck-comments-archive__content','stopPropagation','_keystrokes','_focusCycler','remove','element'];(function(_0x5ed167,_0x271756){const _0x4df57a=function(_0x37ed22){while(--_0x37ed22){_0x5ed167['push'](_0x5ed167['shift']());}};_0x4df57a(++_0x271756);}(_0x2717,0x1f2));const _0x4df5=function(_0x5ed167,_0x271756){_0x5ed167=_0x5ed167-0x0;let _0x4df57a=_0x2717[_0x5ed167];return _0x4df57a;};import{View as _0x348a2a,FocusCycler as _0x314385}from'ckeditor5/src/ui';import{FocusTracker as _0x50d205,KeystrokeHandler as _0x4a7abf}from'ckeditor5/src/utils';import{getTranslation as _0x3a6cc4}from'../../../utils/common-translations';export default class W extends _0x348a2a{constructor(_0x2fc515,_0x2c302c){super(_0x2fc515),this[_0x4df5('0x15')](_0x4df5('0xf'),!_0x2c302c[_0x4df5('0x3')]),this[_0x4df5('0x2')]=new _0x50d205(),this[_0x4df5('0x1a')]=new _0x4a7abf(),this[_0x4df5('0x1e')]=_0x2c302c,this[_0x4df5('0x1b')]=new _0x314385({'focusables':this[_0x4df5('0x1e')],'focusTracker':this[_0x4df5('0x2')],'keystrokeHandler':this['_keystrokes'],'actions':{'focusPrevious':_0x4df5('0xb'),'focusNext':_0x4df5('0x16')}}),this['listenTo'](_0x2c302c,_0x4df5('0xd'),()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x2c302c,_0x4df5('0x1c'),(_0x146747,_0x451cf9)=>{_0x451cf9[_0x4df5('0x6')]&&this['focus'](),_0x2c302c[_0x4df5('0x3')]||(this[_0x4df5('0xf')]=!0x0);});const _0x454c8d=this[_0x4df5('0x11')];this[_0x4df5('0x17')]({'tag':_0x4df5('0x8'),'attributes':{'dir':_0x4df5('0x13'),'class':['ck',_0x4df5('0xa')],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':[_0x4df5('0x1f')]},'children':[{'text':_0x3a6cc4(_0x2fc515,_0x4df5('0x1'))}]},{'tag':_0x4df5('0x8'),'attributes':{'class':[_0x4df5('0x18')]},'children':[{'tag':_0x4df5('0x8'),'children':_0x2c302c},{'tag':'p','attributes':{'class':[_0x4df5('0x5'),_0x454c8d['if'](_0x4df5('0xf'),_0x4df5('0xe'),_0x5c3ba6=>!_0x5c3ba6)]},'children':[{'text':_0x3a6cc4(_0x2fc515,_0x4df5('0x9'))}]}]}]});}[_0x4df5('0x12')](){super[_0x4df5('0x12')](),this[_0x4df5('0x1a')][_0x4df5('0x20')](this[_0x4df5('0x1d')]);const _0x560a25=_0x495096=>_0x495096['stopPropagation']();this['_keystrokes']['set']('arrowright',_0x560a25),this[_0x4df5('0x1a')][_0x4df5('0x15')](_0x4df5('0xc'),_0x560a25),this[_0x4df5('0x1a')][_0x4df5('0x15')](_0x4df5('0x7'),_0x560a25),this[_0x4df5('0x1a')][_0x4df5('0x15')]('arrowdown',_0x560a25),this[_0x4df5('0x20')](this[_0x4df5('0x1d')],_0x4df5('0x0'),(_0x144a0c,_0x706548)=>{_0x706548[_0x4df5('0x19')]();},{'priority':_0x4df5('0x14')});}[_0x4df5('0x10')](){super['destroy'](),this['_focusTracker'][_0x4df5('0x10')](),this['_keystrokes']['destroy']();}[_0x4df5('0x4')](){this['element'][_0x4df5('0x4')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d57=['Marked\x20as\x20resolved','editorDestroyed','weight','createCollection','get','isEditMode','isActive','insert','change:isActive','setTemplate','_handleNewCommentModel','remove','add','_config','destroy','resolvedAt','_rearrangeCollapse','maxThreadTotalWeight','formatDateTime','resolvedCommentView','CommentView','viewUid','editorConfig','delegate','_updateHasDirtyComment','change:isEditMode','element','_handleInfoComment','_calculatePosition','equal','locale','count','_findOptimalIndex','length','ck-thread__comments','maxCommentCharsWhenCollapsed','hasDirtyComment','visibleViews','refreshVisibleViews','editorReady','updateComment','change:isResolved','commentUpdated','_collapsedCommentsView','delete','_rearrangeExpand','removeComment','some','_shouldCollapse','_model','focus','_handleRemoveCommentModel','maxCommentsWhenCollapsed','resolved','stopListening','render','listenTo','from','set','commentViews','comments'];(function(_0x509119,_0x4d5792){const _0x28fd77=function(_0xc902de){while(--_0xc902de){_0x509119['push'](_0x509119['shift']());}};_0x28fd77(++_0x4d5792);}(_0x4d57,0x1b6));const _0x28fd=function(_0x509119,_0x4d5792){_0x509119=_0x509119-0x0;let _0x28fd77=_0x4d57[_0x509119];return _0x28fd77;};import{View as _0x3637d5}from'ckeditor5/src/ui';import{diff as _0x4eac08,Collection as _0x34ec7e}from'ckeditor5/src/utils';import{getTranslation as _0x1eabb0}from'../../../utils/common-translations';import _0x22650d from'./collapsedcommentsview';export default class Ct extends _0x3637d5{constructor(_0x1d8b4c,_0x3eda95,_0x13db1e){super(_0x1d8b4c),this[_0x28fd('0x2f')](_0x28fd('0x19'),!0x1),this[_0x28fd('0x2f')](_0x28fd('0x16'),_0x3eda95[_0x28fd('0x31')]['length']),this['set'](_0x28fd('0x38'),!0x1),this['_model']=_0x3eda95,this[_0x28fd('0x2')]=_0x13db1e,this['commentViews']=this[_0x28fd('0x35')](),this[_0x28fd('0x1a')]=this[_0x28fd('0x35')](),this[_0x28fd('0x8')]=null,this[_0x28fd('0x20')]=new _0x22650d(_0x1d8b4c),this[_0x28fd('0x20')]['bind'](_0x28fd('0x14'))['to'](this,_0x28fd('0x16'),_0x1efd5b=>_0x1efd5b-this[_0x28fd('0x2')][_0x28fd('0x29')]);for(const _0x5596b5 of _0x3eda95['comments'])this['_handleNewCommentModel'](_0x5596b5);this[_0x28fd('0x10')](),this[_0x28fd('0x2d')](_0x3eda95['comments'],_0x28fd('0x1'),(_0x425495,_0xa16882)=>{const _0x2d9602=this[_0x28fd('0x11')](_0xa16882);this[_0x28fd('0x16')]++,this['_handleNewCommentModel'](_0xa16882,_0x2d9602),this[_0x28fd('0x1b')]();}),this[_0x28fd('0x2d')](_0x3eda95['comments'],_0x28fd('0x0'),(_0x32bfb4,_0x442a36)=>{this[_0x28fd('0x16')]--,this[_0x28fd('0x28')](_0x442a36),this[_0x28fd('0x1b')]();}),this[_0x28fd('0x2d')](_0x3eda95,_0x28fd('0x1f'),()=>this[_0x28fd('0x1b')]()),this[_0x28fd('0x2d')](_0x3eda95,_0x28fd('0x1e'),()=>this['_handleInfoComment']()),this['on'](_0x28fd('0x3a'),()=>this[_0x28fd('0x1b')]()),this['on']('change:hasDirtyComment',()=>this[_0x28fd('0x1b')]()),this[_0x28fd('0x3b')]({'tag':'ul','attributes':{'class':[_0x28fd('0x17')]},'children':this['visibleViews']});}get[_0x28fd('0x25')](){return this[_0x28fd('0x26')][_0x28fd('0x34')]>this[_0x28fd('0x2')][_0x28fd('0x6')]&&!this[_0x28fd('0x38')]&&!this['hasDirtyComment'];}[_0x28fd('0x2c')](){super[_0x28fd('0x2c')](),this[_0x28fd('0x1b')]();}[_0x28fd('0x27')](){this[_0x28fd('0xf')][_0x28fd('0x27')]();}[_0x28fd('0x3')](){this[_0x28fd('0x20')][_0x28fd('0x3')]();for(const _0xcce636 of this[_0x28fd('0x30')])_0xcce636[_0x28fd('0x3')]();super[_0x28fd('0x3')]();}[_0x28fd('0x1b')](){this[_0x28fd('0x25')]?this[_0x28fd('0x5')]():this[_0x28fd('0x22')]();}[_0x28fd('0x3c')](_0x5ba26a,_0x49fae3){const _0x1c2df1=new this['_config'][(_0x28fd('0x9'))](this[_0x28fd('0x13')],_0x5ba26a,{'maxCommentCharsWhenCollapsed':this[_0x28fd('0x2')][_0x28fd('0x18')],'formatDateTime':this['_config'][_0x28fd('0x7')],'editorConfig':this[_0x28fd('0x2')][_0x28fd('0xb')]});_0x1c2df1[_0x28fd('0xa')]=_0x5ba26a['id'],_0x1c2df1[_0x28fd('0xc')](_0x28fd('0x23'))['to'](this),_0x1c2df1[_0x28fd('0xc')](_0x28fd('0x1d'))['to'](this),_0x1c2df1[_0x28fd('0xc')]('resolveCommentThread')['to'](this),_0x1c2df1['delegate'](_0x28fd('0x1c'))['to'](this),_0x1c2df1['delegate'](_0x28fd('0x33'))['to'](this),this[_0x28fd('0x2d')](_0x1c2df1,_0x28fd('0xe'),()=>this[_0x28fd('0xd')]()),this[_0x28fd('0x30')][_0x28fd('0x1')](_0x1c2df1,_0x49fae3);}[_0x28fd('0x11')](_0x3af621){const _0x459487=this['_model']['_findOptimalIndex'](_0x3af621);return this[_0x28fd('0x8')]?this[_0x28fd('0x8')]['authoredAt']>_0x3af621['authoredAt']?_0x459487-0x1:_0x459487:_0x459487-0x1;}['_handleInfoComment'](){if(this[_0x28fd('0x26')]['resolvedBy']&&this[_0x28fd('0x26')][_0x28fd('0x4')]){const _0x3e0656={'id':_0x28fd('0x2a'),'author':this[_0x28fd('0x26')]['resolvedBy'],'authoredAt':this[_0x28fd('0x26')][_0x28fd('0x4')],'content':_0x1eabb0(this[_0x28fd('0x13')],_0x28fd('0x32')),'attributes':{}};this[_0x28fd('0x8')]=new this[(_0x28fd('0x2'))][(_0x28fd('0x9'))](this[_0x28fd('0x13')],_0x3e0656,{'maxCommentCharsWhenCollapsed':this[_0x28fd('0x2')][_0x28fd('0x18')],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config'][_0x28fd('0xb')],'isSystemComment':!0x0}),this[_0x28fd('0x30')][_0x28fd('0x1')](this[_0x28fd('0x8')],this[_0x28fd('0x26')][_0x28fd('0x15')](_0x3e0656));}else this[_0x28fd('0x8')]&&(this[_0x28fd('0x30')]['remove'](this[_0x28fd('0x8')]),this[_0x28fd('0x8')]['destroy'](),this[_0x28fd('0x8')]=null);this[_0x28fd('0x1b')]();}['_handleRemoveCommentModel'](_0x275a03){const _0x1468a5=this[_0x28fd('0x30')][_0x28fd('0x0')](_0x275a03['id']);this[_0x28fd('0x2b')](_0x1468a5),_0x1468a5[_0x28fd('0x37')]&&this[_0x28fd('0xd')](),_0x1468a5[_0x28fd('0x3')]();}[_0x28fd('0xd')](){this[_0x28fd('0x19')]=Array[_0x28fd('0x2e')](this['commentViews'])[_0x28fd('0x24')](_0x2ea212=>_0x2ea212[_0x28fd('0x37')]);}[_0x28fd('0x5')](){const _0x36a74f=function(_0x3528b5){const _0x59ec75=new _0x34ec7e();for(const _0x2f4355 of _0x3528b5)_0x59ec75[_0x28fd('0x1')](_0x2f4355);return _0x59ec75;}(this[_0x28fd('0x30')]),_0x3e7ee0=this[_0x28fd('0x20')][_0x28fd('0x14')];for(let _0xd3f7ec=0x1;_0xd3f7ec<=_0x3e7ee0;_0xd3f7ec++)_0x36a74f['remove'](0x1);for(const _0x4f89aa of _0x36a74f)_0x4f89aa['collapse']();_0x3e7ee0>0x0&&_0x36a74f['add'](this[_0x28fd('0x20')],0x1),ss(_0x4eac08(Array['from'](this[_0x28fd('0x1a')]),Array['from'](_0x36a74f)),this[_0x28fd('0x1a')],_0x36a74f);}[_0x28fd('0x22')](){ss(_0x4eac08(Array['from'](this[_0x28fd('0x1a')]),Array[_0x28fd('0x2e')](this[_0x28fd('0x30')])),this['visibleViews'],this['commentViews']);for(const _0x41d419 of this[_0x28fd('0x1a')])_0x41d419['expand']();}}function ss(_0x1ba62c,_0x105753,_0x2778f3){let _0xa35c7b=0x0;for(const _0xa9e41d of _0x1ba62c)switch(_0xa9e41d){case _0x28fd('0x39'):_0x105753['add'](_0x2778f3[_0x28fd('0x36')](_0xa35c7b),_0xa35c7b),_0xa35c7b++;break;case _0x28fd('0x21'):_0x105753['remove'](_0xa35c7b);break;case _0x28fd('0x12'):_0xa35c7b++;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c8f=['mouseenter','ck-context-wrapper','.ck-context__value','offsetWidth','ck-context__value','render','remove','hasContext','ck-thread__header','value','ck-context','reopenButtonView','.ck-context','classList','Reopen','label','length','locale','isReadOnly','contextValue','ck-context--quotes','substring','bind','fire','isVisible','_model','isResolvable','_trimContextValue','isEnabled','span','_attachContextActions','icon','querySelector','mouseleave','listenTo','lastIndexOf','context','div','setTemplate','reopenCommentThread','execute','overlay','element','scrollWidth'];(function(_0x165e77,_0x2c8f95){const _0x2167d1=function(_0x7d5497){while(--_0x7d5497){_0x165e77['push'](_0x165e77['shift']());}};_0x2167d1(++_0x2c8f95);}(_0x2c8f,0x69));const _0x2167=function(_0x165e77,_0x2c8f95){_0x165e77=_0x165e77-0x0;let _0x2167d1=_0x2c8f[_0x165e77];return _0x2167d1;};import{View as _0x1680e8,ButtonView as _0x197661}from'ckeditor5/src/ui';import{getTranslation as _0x4d1efa}from'../../../utils/common-translations';import _0x59e5f7 from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Rt extends _0x1680e8{constructor(_0x1d8b8b,_0xb36520){super(_0x1d8b8b);const _0x7d00a5=this['bindTemplate'];this[_0x2167('0x8')]=_0xb36520,this[_0x2167('0x26')]=this['_createReopenButton'](),this[_0x2167('0x5')](_0x2167('0x22'))['to'](this[_0x2167('0x8')],_0x2167('0x13'),_0x7ba236=>!!_0x7ba236),this[_0x2167('0x5')](_0x2167('0x2'))['to'](this[_0x2167('0x8')],'context',_0x366c2b=>_0x366c2b&&_0x366c2b['value']?this[_0x2167('0xa')](_0x366c2b[_0x2167('0x24')]):_0x4d1efa(this['locale'],'Comment\x20was\x20made\x20on\x20an\x20element')),this[_0x2167('0x15')]({'tag':_0x2167('0x14'),'attributes':{'class':[_0x2167('0x23')]},'children':[{'tag':_0x2167('0x14'),'attributes':{'class':[_0x2167('0x1c')]},'children':[{'tag':_0x2167('0x14'),'attributes':{'class':[_0x2167('0x25'),_0x7d00a5['if'](_0x2167('0x22'),_0x2167('0x3'))]},'children':[{'tag':_0x2167('0xc'),'attributes':{'class':[_0x2167('0x1f')]},'children':[{'text':_0x7d00a5['to'](_0x2167('0x2'))}]}]}]},{'tag':_0x2167('0x14'),'attributes':{'class':['ck-annotation__actions']},'children':[this[_0x2167('0x26')]]}]});}[_0x2167('0x20')](){super['render'](),this['_attachContextActions']();}['_createReopenButton'](){const _0x258855=new _0x197661(this['locale']);return _0x258855[_0x2167('0x2a')]=_0x4d1efa(this[_0x2167('0x0')],_0x2167('0x29')),_0x258855['tooltip']=_0x4d1efa(this[_0x2167('0x0')],_0x2167('0x29')),_0x258855[_0x2167('0xe')]=_0x59e5f7,_0x258855['bind'](_0x2167('0xb'))['to'](this[_0x2167('0x8')],_0x2167('0x1'),_0x2f1a3c=>!_0x2f1a3c),_0x258855[_0x2167('0x5')](_0x2167('0x7'))['to'](this['_model'],_0x2167('0x9')),_0x258855['on'](_0x2167('0x17'),()=>{this[_0x2167('0x6')](_0x2167('0x16'),this[_0x2167('0x8')]['id']);}),_0x258855;}[_0x2167('0xa')](_0x29c03a){if(_0x29c03a[_0x2167('0x2b')]<0x96)return _0x29c03a;const _0x529c98=_0x29c03a[_0x2167('0x12')]('\x20',0x93);return _0x29c03a[_0x2167('0x4')](0x0,_0x529c98>-0x1?_0x529c98:0x93)+'...';}[_0x2167('0xd')](){const _0x1e08dc=this[_0x2167('0x19')][_0x2167('0xf')](_0x2167('0x27')),_0x1241bd=_0x1e08dc[_0x2167('0xf')](_0x2167('0x1d'));this[_0x2167('0x11')](_0x1e08dc,_0x2167('0x1b'),()=>{_0x1241bd[_0x2167('0x1e')]<_0x1241bd[_0x2167('0x1a')]&&_0x1e08dc[_0x2167('0x28')]['add']('overlay');}),this[_0x2167('0x11')](_0x1e08dc,_0x2167('0x10'),()=>{_0x1e08dc[_0x2167('0x28')][_0x2167('0x21')](_0x2167('0x18'));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x287a=['destroy','userView','isFocused','ck-comment__input-container--active','ck-thread__user','createEditor','focusTracker','bind','change:showInput','delegate','value','ck-thread__input','commentInputView','showButtons','extendTemplate','bindTemplate','showInput','editorDestroyed'];(function(_0x10224e,_0x287a96){var _0x1b567b=function(_0x326756){while(--_0x326756){_0x10224e['push'](_0x10224e['shift']());}};_0x1b567b(++_0x287a96);}(_0x287a,0xa7));var _0x1b56=function(_0x10224e,_0x287a96){_0x10224e=_0x10224e-0x0;var _0x1b567b=_0x287a[_0x10224e];return _0x1b567b;};import{View as _0x140332}from'ckeditor5/src/ui';import _0x31cec6 from'./commentinputview';import{UserView as _0xe19d5c}from'ckeditor5-collaboration/src/collaboration-core';export default class At extends _0x140332{constructor(_0x1b6873,_0x1e5d2d,_0x3c609f){super(_0x1b6873),this['commentInputView']=new _0x31cec6(_0x1b6873,_0x3c609f),this[_0x1b56('0x7')][_0x1b56('0x2')](_0x1b56('0x8'))['to'](this[_0x1b56('0x7')][_0x1b56('0x1')],_0x1b56('0xf'),this[_0x1b56('0x7')],_0x1b56('0x5'),(_0x4b9e9f,_0x26f604)=>_0x4b9e9f||!!_0x26f604),this['set'](_0x1b56('0xb'),!0x1),this['on'](_0x1b56('0x3'),()=>{this['showInput']&&!this['commentInputView']['editor']&&this[_0x1b56('0x7')][_0x1b56('0x0')]();}),this[_0x1b56('0x7')][_0x1b56('0x4')]('editorReady')['to'](this),this[_0x1b56('0x7')][_0x1b56('0x4')](_0x1b56('0xc'))['to'](this),this['userView']=new _0xe19d5c(_0x1b6873,_0x1e5d2d),this[_0x1b56('0xe')][_0x1b56('0x9')]({'attributes':{'class':_0x1b56('0x11')}}),this[_0x1b56('0x7')][_0x1b56('0x9')]({'attributes':{'class':_0x1b56('0x6')}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-container',this[_0x1b56('0xa')]['if']('showInput',_0x1b56('0x10'))]},'children':[this[_0x1b56('0xe')],this['commentInputView']]});}[_0x1b56('0xd')](){return this['commentInputView']['destroy']()['then'](()=>super[_0x1b56('0xd')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ec2=['_bindFirstCommentView','_model','actionBar','remove','add','_cancelAllConfirms','commentThreadChildren','commentsListView','stop','placeholder','get','change:isResolved','isConfirm','_boundFirstCommentView','commentThreadHeaderView','unbind','bindTemplate','isEnabled','ck-thread--remove-confirmation','div','ck-thread__container','listenTo','ck-thread--','ck-comment--resolve','actionIndicator','length','render','resolveCommentThread','then','_createResolveButton','ck-thread--active','Delete\x20comment\x20thread?','containerElement','isResolved','change:isActive','isReadOnly','Resolve','tooltip','ck-reset_all-excluded','high','label','cancelConfirm','ck-thread','isActive','isVisible','Write\x20a\x20comment...','removeCommentThread','resolveButton','icon','extendTemplate','bind','locale','createCollection','.ck-thread__container','commentViews','change:isReadOnly','fire','isSystemComment','getTemplate','removeButton','commentThreadInputView'];(function(_0x2d7c52,_0x1ec26e){const _0x4aed53=function(_0x188b62){while(--_0x188b62){_0x2d7c52['push'](_0x2d7c52['shift']());}};_0x4aed53(++_0x1ec26e);}(_0x1ec2,0x6f));const _0x4aed=function(_0x2d7c52,_0x1ec26e){_0x2d7c52=_0x2d7c52-0x0;let _0x4aed53=_0x1ec2[_0x2d7c52];return _0x4aed53;};import{ConfirmMixin as _0x275e49}from'ckeditor5-collaboration/src/collaboration-core';import{ButtonView as _0x2bbab9}from'ckeditor5/src/ui';import{icons as _0x1c71e6}from'ckeditor5/src/core';import _0x41e55e from'./basecommentthreadview';import{getTranslation as _0x29a679}from'../../../utils/common-translations';export default class ft extends _0x275e49(_0x41e55e){constructor(_0x40bcdc,_0x43f256,_0x45ae48,_0x58ed94){super(_0x40bcdc,_0x43f256,_0x45ae48,_0x58ed94),this['commentThreadChildren']=this[_0x4aed('0x2')](),this[_0x4aed('0x11')]['addMany']([this['commentsListView'],this[_0x4aed('0xa')]]),this[_0x4aed('0xc')][_0x4aed('0x2c')]&&this['commentThreadChildren'][_0x4aed('0xf')](this['commentThreadHeaderView'],0x0),this[_0x4aed('0xc')]['on'](_0x4aed('0x16'),(_0x245167,_0x503e4b,_0x23d1e7)=>{_0x23d1e7?this[_0x4aed('0x11')][_0x4aed('0xf')](this[_0x4aed('0x19')],0x0):this['commentThreadChildren'][_0x4aed('0xe')](this[_0x4aed('0x19')]);}),this['set'](_0x4aed('0x23'),null),this[_0x4aed('0x2b')]=null,this[_0x4aed('0x18')]=null,this[_0x4aed('0x1')]=_0x40bcdc,this['resolveButton']=this[_0x4aed('0x28')](),this['setTemplate'](this[_0x4aed('0x8')]()),this['on'](_0x4aed('0x2d'),(_0x277c8c,_0x55039f,_0x59ed4a)=>{_0x59ed4a||this[_0x4aed('0x10')]();}),this['listenTo'](this[_0x4aed('0xc')],_0x4aed('0x5'),(_0x436276,_0x3e448b,_0x16f0e2)=>{_0x16f0e2&&this[_0x4aed('0x10')]();}),this[_0x4aed('0x24')]>0x0&&this[_0x4aed('0xb')](),this[_0x4aed('0x20')](this['commentsListView'][_0x4aed('0x4')],'add',()=>{this[_0x4aed('0xb')]();});}['getTemplate'](){const _0x4c1fbf=this[_0x4aed('0x1b')];return{'tag':'div','attributes':{'class':[_0x4aed('0x35'),_0x4aed('0x31'),_0x4c1fbf['if'](_0x4aed('0x36'),_0x4aed('0x29')),_0x4c1fbf['if'](_0x4aed('0x17'),_0x4aed('0x1d')),_0x4c1fbf['to'](_0x4aed('0x23'),_0xe5a2f3=>_0xe5a2f3?_0x4aed('0x21')+_0xe5a2f3:'')],'data-thread-id':this[_0x4aed('0xc')]['id'],'tabindex':-0x1},'children':[{'tag':_0x4aed('0x1e'),'attributes':{'class':_0x4aed('0x1f')},'children':this[_0x4aed('0x11')]}]};}[_0x4aed('0x25')](){super[_0x4aed('0x25')](),this[_0x4aed('0x2b')]=this['element']['querySelector'](_0x4aed('0x3'));}['_cancelAllConfirms'](){this[_0x4aed('0x34')]();for(const _0x46fcc6 of this[_0x4aed('0x12')]['commentViews'])_0x46fcc6[_0x4aed('0x34')]();}[_0x4aed('0xb')](){const {locale:_0x3dd130}=this,_0x10171f=this['commentsListView'][_0x4aed('0x4')][_0x4aed('0x15')](0x0);_0x10171f===this[_0x4aed('0x18')]||_0x10171f[_0x4aed('0x7')]||(this[_0x4aed('0x18')]=_0x10171f,this[_0x4aed('0x1a')](_0x4aed('0x23')),this[_0x4aed('0x0')](_0x4aed('0x23'))['to'](_0x10171f,_0x4aed('0x23'),_0x366b1d=>_0x4aed('0xe')===_0x366b1d?_0x4aed('0xe'):null),_0x10171f[_0x4aed('0x14')]=_0x29a679(_0x3dd130,_0x4aed('0x38')),_0x10171f[_0x4aed('0x9')]['on']('execute',_0x5e4035=>{_0x5e4035[_0x4aed('0x13')](),this['showConfirm'](_0x29a679(_0x3dd130,_0x4aed('0x2a')),this[_0x4aed('0x2b')])[_0x4aed('0x27')](()=>{this[_0x4aed('0x6')](_0x4aed('0x39'));});},{'priority':_0x4aed('0x32')}),_0x10171f[_0x4aed('0xd')]['add'](this[_0x4aed('0x3a')],0x0));}['_createResolveButton'](){const _0x3bdf4c=new _0x2bbab9(this[_0x4aed('0x1')]);return _0x3bdf4c[_0x4aed('0x33')]=_0x29a679(this[_0x4aed('0x1')],_0x4aed('0x2f')),_0x3bdf4c[_0x4aed('0x30')]=_0x29a679(this[_0x4aed('0x1')],_0x4aed('0x2f')),_0x3bdf4c[_0x4aed('0x3b')]=_0x1c71e6['check'],_0x3bdf4c[_0x4aed('0x3c')]({'attributes':{'class':_0x4aed('0x22')}}),_0x3bdf4c[_0x4aed('0x0')](_0x4aed('0x1c'))['to'](this['_model'],_0x4aed('0x2e'),_0x3b2b56=>!_0x3b2b56),_0x3bdf4c['bind'](_0x4aed('0x37'))['to'](this['_model'],'isResolvable',this[_0x4aed('0xc')],_0x4aed('0x2c'),(_0xe3954a,_0x1c7ffc)=>_0xe3954a&&!_0x1c7ffc),_0x3bdf4c['on']('execute',()=>{this['fire'](_0x4aed('0x26'),this['_model']['id']);}),_0x3bdf4c;}}
|