@ckeditor/ckeditor5-comments 0.0.0-nightly-20231211.0 → 0.0.0-nightly-20231213.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.d.ts +1 -0
- 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 _0x3ef6=['afterInit','listenTo','forEach','map','dataInsert','config','basic','importWord','editor','collaboration_features','define','execute','commands','_handleImportedData','get','addCommentThread','high','plugins','collaboration.channelId'];(function(_0x19e12f,_0x3ef648){const _0x3d9fe7=function(_0x4f8b50){while(--_0x4f8b50){_0x19e12f['push'](_0x19e12f['shift']());}};_0x3d9fe7(++_0x3ef648);}(_0x3ef6,0xd0));const _0x3d9f=function(_0x19e12f,_0x3ef648){_0x19e12f=_0x19e12f-0x0;let _0x3d9fe7=_0x3ef6[_0x19e12f];return _0x3d9fe7;};import{Plugin as _0x5ef61f}from'ckeditor5/src/core';import{priorities as _0x124c18}from'ckeditor5/src/utils';import{Users as _0x3f5459}from'ckeditor5-collaboration/src/collaboration-core';import _0xbede0e from'../commentsrepository';export default class Z extends _0x5ef61f{constructor(_0x1518dd){super(_0x1518dd),this['editor'][_0x3d9f('0x6')][_0x3d9f('0xb')]('importWord.formatting.comments',_0x3d9f('0x7'));}[_0x3d9f('0x1')](){const _0x44a926=this[_0x3d9f('0x9')],_0x46225e=_0x44a926[_0x3d9f('0xd')][_0x3d9f('0xf')](_0x3d9f('0x8')),_0x5eda6a=_0x44a926['plugins']['get'](_0x3f5459);_0x46225e&&(_0x46225e['on'](_0x3d9f('0xc'),(_0x574dea,[,_0x5cb05f])=>{_0x5cb05f[_0x3d9f('0xa')]={'comments':!0x0,'user_id':_0x5eda6a['me']['id']};},{'priority':_0x124c18[_0x3d9f('0x11')]+0xa}),this[_0x3d9f('0x2')](_0x46225e,_0x3d9f('0x5'),this['_handleImportedData']));}[_0x3d9f('0xe')](_0x2536e5,_0x43e9dc){const {comment_threads:_0x29f1c0}=_0x43e9dc;_0x29f1c0&&_0x29f1c0[_0x3d9f('0x3')](({thread_id:_0x2bb06c,comments:_0x3561a6,is_resolved:_0x3e669f})=>{const _0x251155=new Date(),_0x55faf8=_0x3561a6[_0x3d9f('0x4')](({author:_0x55e9a1,content:_0xc7ed8,created_at:_0x4bc57b})=>({'content':_0xc7ed8,'authorId':this[_0x3d9f('0x9')][_0x3d9f('0x12')][_0x3d9f('0xf')](_0x3f5459)['me']['id'],'createdAt':_0x251155,'attributes':{'@external':{'authorName':_0x55e9a1,'createdAt':_0x4bc57b?new Date(_0x4bc57b):new Date(),'source':_0x3d9f('0x8')}}})),_0x54fc92=this[_0x3d9f('0x9')]['config'][_0x3d9f('0xf')](_0x3d9f('0x0'));this[_0x3d9f('0x9')]['plugins'][_0x3d9f('0xf')](_0xbede0e)[_0x3d9f('0x10')]({'channelId':_0x54fc92,'threadId':_0x2bb06c,'comments':_0x55faf8,'resolvedAt':_0x3e669f?_0x251155:null});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3158=['view','placeholderElement','focus','create','data','assign','createRoot','getChild','low','initialData','ready','then','placeholder','_updatePlaceholder','fire','editing','plugins','document','defaultPlugins','childCount','change','init','model','get','destroy','change:placeholder','setSelection'];(function(_0x3cdc26,_0x315872){const _0x5be81e=function(_0x2df917){while(--_0x2df917){_0x3cdc26['push'](_0x3cdc26['shift']());}};_0x5be81e(++_0x315872);}(_0x3158,0x73));const _0x5be8=function(_0x3cdc26,_0x315872){_0x3cdc26=_0x3cdc26-0x0;let _0x5be81e=_0x3158[_0x3cdc26];return _0x5be81e;};import{Editor as _0x25a012,DataApiMixin as _0x9a4a5f}from'ckeditor5/src/core';import _0x13a265 from'./commenteditorui';import{ObservableMixin as _0x1362ac}from'ckeditor5/src/utils';import{enablePlaceholder as _0x59f309,disablePlaceholder as _0x3aab35}from'ckeditor5/src/engine';import{Clipboard as _0xa3f9e0}from'ckeditor5/src/clipboard';import{Enter as _0x2c58d6,ShiftEnter as _0x2512aa}from'ckeditor5/src/enter';import{SelectAll as _0x431109}from'ckeditor5/src/select-all';import{Typing as _0x41c659}from'ckeditor5/src/typing';import{Undo as _0x592ec1}from'ckeditor5/src/undo';import{Paragraph as _0x488bba}from'ckeditor5/src/paragraph';const Mt=[_0xa3f9e0,_0x2c58d6,_0x2512aa,_0x431109,_0x41c659,_0x592ec1,_0x488bba];export default class Nt extends _0x1362ac(_0x9a4a5f(_0x25a012)){constructor(_0x4cc641={}){(_0x4cc641=Object[_0x5be8('0x19')]({},_0x4cc641))[_0x5be8('0x9')]||(_0x4cc641[_0x5be8('0x9')]=Nt[_0x5be8('0xb')]),super(_0x4cc641),this['ui']=new _0x13a265(this),this['set'](_0x5be8('0x5'),''),this[_0x5be8('0xf')][_0x5be8('0xa')]['on'](_0x5be8('0xd'),()=>this[_0x5be8('0x6')](),{'priority':_0x5be8('0x1')}),this['on'](_0x5be8('0x12'),()=>this[_0x5be8('0x6')]()),this['model']['document'][_0x5be8('0x1a')]();}[_0x5be8('0x17')](){const _0x2fb648=this['config'][_0x5be8('0x10')](_0x5be8('0x2'))||'';return this['initPlugins']()['then'](()=>this['ui'][_0x5be8('0xe')]())[_0x5be8('0x4')](()=>this[_0x5be8('0x18')][_0x5be8('0xe')](_0x2fb648))[_0x5be8('0x4')](()=>this[_0x5be8('0x7')](_0x5be8('0x3')));}[_0x5be8('0x11')](){return super['destroy']()[_0x5be8('0x4')](()=>this['ui'][_0x5be8('0x11')]());}[_0x5be8('0x16')](){this[_0x5be8('0xf')][_0x5be8('0xd')](_0x502b51=>{const _0x139f96=this[_0x5be8('0xf')]['document']['getRoot'](),_0x264ef2=_0x139f96&&_0x139f96['getChild'](_0x139f96['childCount']-0x1);_0x502b51[_0x5be8('0x13')](_0x264ef2,'end'),this[_0x5be8('0x8')][_0x5be8('0x14')][_0x5be8('0x16')]();});}[_0x5be8('0x6')](){const _0x18a748=this[_0x5be8('0x8')][_0x5be8('0x14')],_0x211d01=_0x18a748[_0x5be8('0xa')]['getRoot'](),_0x48d364=_0x211d01[_0x5be8('0x0')](0x0);_0x211d01[_0x5be8('0xc')]>0x1||!_0x48d364||'p'!=_0x48d364['name']?this[_0x5be8('0x15')]&&this['placeholderElement'][_0x5be8('0x5')]&&(_0x3aab35(_0x18a748,this[_0x5be8('0x15')]),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x48d364['placeholder']=this[_0x5be8('0x5')]),_0x59f309({'view':_0x18a748,'element':_0x48d364,'keepOnFocus':!0x0}),this['placeholderElement']=_0x48d364);}}Nt[_0x5be8('0xb')]=Mt;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x483d=['bind','attachDomRoot','view','editing','editor','focusTracker','editable','document','getRoot','render','ready','element','name','init','destroy','isFocused','rootName'];(function(_0x232290,_0x483d72){const _0x273149=function(_0x28eb61){while(--_0x28eb61){_0x232290['push'](_0x232290['shift']());}};_0x273149(++_0x483d72);}(_0x483d,0xf7));const _0x2731=function(_0x232290,_0x483d72){_0x232290=_0x232290-0x0;let _0x273149=_0x483d[_0x232290];return _0x273149;};import{EditorUI as _0x168f9e}from'ckeditor5/src/ui';import _0x4ec850 from'./commenteditoruiview';export default class Ft extends _0x168f9e{constructor(_0x3e0d95){super(_0x3e0d95),this[_0x2731('0xa')]=new _0x4ec850(_0x3e0d95['locale'],_0x3e0d95[_0x2731('0xb')][_0x2731('0xa')]);}get[_0x2731('0x2')](){return this[_0x2731('0xa')][_0x2731('0x2')];}[_0x2731('0x4')](){const _0xb35e98=this[_0x2731('0xc')]['editing']['view'],_0x2a6cb7=this[_0x2731('0xa')][_0x2731('0xe')],_0xfea7ef=_0xb35e98[_0x2731('0xf')][_0x2731('0x10')]();_0x2a6cb7[_0x2731('0x3')]=_0xfea7ef[_0x2731('0x7')],this[_0x2731('0xa')][_0x2731('0x0')]();const _0x136ce1=_0x2a6cb7[_0x2731('0x2')];this['setEditableElement'](_0x2a6cb7[_0x2731('0x3')],_0x136ce1),this[_0x2731('0xa')][_0x2731('0xe')][_0x2731('0x8')](_0x2731('0x6'))['to'](this[_0x2731('0xd')]),_0xb35e98[_0x2731('0x9')](_0x136ce1),this['fire'](_0x2731('0x1'));}[_0x2731('0x5')](){super[_0x2731('0x5')](),this[_0x2731('0xa')][_0x2731('0x5')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2b04=['text','presentation','ck-reset','render','setTemplate','focus','ck-voice-label','editable','ck-editor__main','ck-editor__aria-label_','_voiceLabelView','main','uiLanguageDirection','ck-rounded-corners','comment','_createVoiceLabel','element','add'];(function(_0x1935ee,_0x2b0462){const _0x362f18=function(_0x47de77){while(--_0x47de77){_0x1935ee['push'](_0x1935ee['shift']());}};_0x362f18(++_0x2b0462);}(_0x2b04,0xcd));const _0x362f=function(_0x1935ee,_0x2b0462){_0x1935ee=_0x1935ee-0x0;let _0x362f18=_0x2b04[_0x1935ee];return _0x362f18;};import{InlineEditableUIView as _0xf10d26,EditorUIView as _0x318d37,LabelView as _0x4b0d71}from'ckeditor5/src/ui';import{uid as _0x43d54}from'ckeditor5/src/utils';import{getTranslation as _0x1cb765}from'../../../utils/common-translations';export default class Rt extends _0x318d37{constructor(_0x1e4de8,_0x233983){super(_0x1e4de8);const _0xf62733=_0x43d54();this[_0x362f('0x4')]=this['createCollection'](),this[_0x362f('0x0')]=new _0xf10d26(_0x1e4de8,_0x233983),this[_0x362f('0x3')]=this[_0x362f('0x8')](_0xf62733,_0x1e4de8),this[_0x362f('0xf')]({'tag':'div','attributes':{'class':[_0x362f('0xd'),'ck-editor',_0x362f('0x6'),'ck-comment__input'],'role':_0x362f('0x7'),'dir':_0x1e4de8[_0x362f('0x5')],'lang':_0x1e4de8['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0xf62733},'children':[this[_0x362f('0x3')],{'tag':'div','attributes':{'class':_0x362f('0x1'),'role':_0x362f('0xc')},'children':this[_0x362f('0x4')]}]});}['render'](){super[_0x362f('0xe')](),this[_0x362f('0x4')][_0x362f('0xa')](this['editable']);}[_0x362f('0x10')](){this[_0x362f('0x0')][_0x362f('0x9')][_0x362f('0x10')]();}[_0x362f('0x8')](_0x2aa19c,_0xabfada){const _0x147784=new _0x4b0d71();return _0x147784[_0x362f('0xb')]=_0x1cb765(_0xabfada,'Comment\x20editor'),_0x147784['extendTemplate']({'attributes':{'id':_0x362f('0x2')+_0x2aa19c,'class':_0x362f('0x11')}}),_0x147784;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1562=['remove','reopen','update','reopenCommentThread','model','resolve','getComment','listenTo','removeCommentThread','_localUser','resolveCommentThread','view','removeComment','updateComment','_isAttached','destroy','addComment','submit'];(function(_0x4040a8,_0x156296){var _0x4225b8=function(_0x4c00c7){while(--_0x4c00c7){_0x4040a8['push'](_0x4040a8['shift']());}};_0x4225b8(++_0x156296);}(_0x1562,0x74));var _0x4225=function(_0x4040a8,_0x156296){_0x4040a8=_0x4040a8-0x0;var _0x4225b8=_0x1562[_0x4040a8];return _0x4225b8;};import{ObservableMixin as _0x796389}from'ckeditor5/src/utils';export default class ut extends _0x796389(){constructor(_0x36d7b5,_0x4cb66f){super(),this[_0x4225('0xe')]=_0x36d7b5,this[_0x4225('0xe')][_0x4225('0x6')]=!0x0,this[_0x4225('0x3')]=_0x4cb66f,this[_0x4225('0x11')](_0x4cb66f,'submitCommentThread',()=>this[_0x4225('0x9')]()),this[_0x4225('0x11')](_0x4cb66f,_0x4225('0x0'),()=>this['remove']()),this[_0x4225('0x11')](_0x4cb66f,_0x4225('0x2'),()=>this['resolve']()),this[_0x4225('0x11')](_0x4cb66f,_0x4225('0xd'),()=>this['reopen']()),this[_0x4225('0x11')](_0x4cb66f,'addComment',(_0x3d2629,_0x333863)=>this[_0x4225('0x8')](_0x333863)),this[_0x4225('0x11')](_0x4cb66f,_0x4225('0x5'),(_0x319423,_0x378848,_0x593d39)=>this[_0x4225('0x5')](_0x378848,_0x593d39)),this[_0x4225('0x11')](_0x4cb66f,_0x4225('0x4'),(_0x1fbe6c,_0x12a8a3)=>this[_0x4225('0x4')](_0x12a8a3));}[_0x4225('0x9')](){this[_0x4225('0xe')]['submit']();}[_0x4225('0xa')](){this[_0x4225('0xe')][_0x4225('0xa')]();}[_0x4225('0xf')](){this[_0x4225('0xe')]['isResolved']||this[_0x4225('0xe')][_0x4225('0xf')]();}[_0x4225('0xb')](){this[_0x4225('0xe')]['isResolved']&&this[_0x4225('0xe')]['reopen']();}[_0x4225('0x8')](_0x2aa795){this['model'][_0x4225('0x8')]({'content':_0x2aa795,'authorId':this['view'][_0x4225('0x1')]['id']});}[_0x4225('0x5')](_0x43db96,_0x4a878a){this[_0x4225('0xe')][_0x4225('0x10')](_0x43db96)[_0x4225('0xc')]({'content':_0x4a878a});}['removeComment'](_0x96ada1){this[_0x4225('0xe')][_0x4225('0x10')](_0x96ada1)[_0x4225('0xa')]();}[_0x4225('0x7')](){this['stopListening'](),this[_0x4225('0xe')][_0x4225('0x6')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x166b=['change:isActive','unlinkedAt','archivedAt','_model','isResolvable','delegate','bind','isUnlinked','removeComment','disabledSubmit','value','cancel','removeCommentThread','focus','listenTo','locale','fire','isSubmitted','set','reopenCommentThread','Comment','Write\x20a\x20comment...','editorDestroyed','commentThreadHeaderView','length','assign','resolveCommentThread','isDirty','canComment','showInput','commentsListView','Reply','addComment','element','_createCommentThreadInputView','Reply...','editorReady','commentInputView','submitCommentThread','updateComment','isReadOnly','submitLabel','submit','commentThreadInputView','isActive','editorConfig','_config','destroy'];(function(_0x41581c,_0x166b4e){const _0x526211=function(_0x3a0749){while(--_0x3a0749){_0x41581c['push'](_0x41581c['shift']());}};_0x526211(++_0x166b4e);}(_0x166b,0x176));const _0x5262=function(_0x41581c,_0x166b4e){_0x41581c=_0x41581c-0x0;let _0x526211=_0x166b[_0x41581c];return _0x526211;};import{View as _0x4435d4}from'ckeditor5/src/ui';import _0xc256f from'./commentthreadinputview';import _0x42bfa5 from'./commentslistview';import _0x4edb41 from'./commentthreadheaderview';import{getTranslation as _0x2c85fe}from'../../../utils/common-translations';export default class Ut extends _0x4435d4{constructor(_0x2962dd,_0x3f986f,_0x504579,_0x11d0f6){super(_0x2962dd),this[_0x5262('0x1c')](_0x5262('0x6'),!0x1),this['set'](_0x5262('0x25'),!0x1),this['_model']=_0x3f986f,this['_localUser']=_0x504579,this[_0x5262('0x8')]=_0x11d0f6,this['commentThreadHeaderView']=new _0x4edb41(_0x2962dd,_0x3f986f),this[_0x5262('0x21')][_0x5262('0xf')]('reopenCommentThread')['to'](this),this[_0x5262('0x18')](this,_0x5262('0x1d'),()=>{this[_0x5262('0x17')]();}),this[_0x5262('0x28')]=new _0x42bfa5(_0x2962dd,_0x3f986f,Object[_0x5262('0x23')]({'CommentView':this[_0x5262('0x8')]['CommentView']},_0x11d0f6)),this[_0x5262('0x28')][_0x5262('0xf')](_0x5262('0x12'))['to'](this),this['commentsListView']['delegate'](_0x5262('0x1'))['to'](this),this[_0x5262('0x28')][_0x5262('0xf')](_0x5262('0x24'))['to'](this),this[_0x5262('0x28')][_0x5262('0xf')]('editorReady')['to'](this),this['commentsListView'][_0x5262('0xf')]('editorDestroyed')['to'](this),this[_0x5262('0x28')]['bind'](_0x5262('0x6'))['to'](this),this[_0x5262('0x18')](this,_0x5262('0x24'),()=>{this[_0x5262('0x17')]();}),this[_0x5262('0x1c')](_0x5262('0x22'),this[_0x5262('0x28')]['length']),this[_0x5262('0x10')](_0x5262('0x22'))['to'](this[_0x5262('0x28')],_0x5262('0x22')),this[_0x5262('0x5')]=this[_0x5262('0x2c')](),this[_0x5262('0x5')]['delegate'](_0x5262('0x2e'))['to'](this),this[_0x5262('0x5')][_0x5262('0xf')](_0x5262('0x20'))['to'](this),this['on'](_0x5262('0x12'),()=>this[_0x5262('0x17')]()),this[_0x5262('0x10')](_0x5262('0x25'))['to'](this['commentsListView'],'hasDirtyComment',this[_0x5262('0x5')][_0x5262('0x2f')],_0x5262('0x14'),(_0x10e4dc,_0x26ea1e)=>_0x10e4dc||!!_0x26ea1e),this['bind'](_0x5262('0x11'))['to'](_0x3f986f,_0x5262('0xb'),_0x1d2106=>!!_0x1d2106);}[_0x5262('0x17')](){this[_0x5262('0x2b')]['focus']();}async['destroy'](){this[_0x5262('0x25')]=!0x1,this[_0x5262('0x28')]['destroy'](),await this[_0x5262('0x5')][_0x5262('0x9')](),super[_0x5262('0x9')]();}['_createCommentThreadInputView'](){const _0x5e76ff=new _0xc256f(this['locale'],this['_localUser'],this[_0x5262('0x8')][_0x5262('0x7')]),_0x3b37a2=_0x5e76ff[_0x5262('0x2f')];return _0x5e76ff[_0x5262('0x10')](_0x5262('0x27'))['to'](this,_0x5262('0x6'),this[_0x5262('0xd')],'isReadOnly',this['_model'],_0x5262('0x26'),this[_0x5262('0xd')],_0x5262('0xc'),_0x3b37a2,_0x5262('0x14'),(_0x202433,_0x4cb557,_0x5f4240,_0x474dbc,_0x5049bb)=>!!_0x5049bb||!!_0x474dbc&&_0x5f4240&&!_0x4cb557||_0x202433&&_0x5f4240&&!_0x4cb557),_0x3b37a2[_0x5262('0x10')]('placeholder')['to'](this,'length',this[_0x5262('0xd')],_0x5262('0xe'),this[_0x5262('0xd')],'isResolved',(_0x4f27fe,_0x63b50f,_0x4cd95d)=>{let _0x3e386b;return _0x3e386b=_0x4cd95d&&_0x63b50f?'Reply\x20to\x20reopen\x20discussion...':_0x4f27fe?_0x5262('0x2d'):_0x5262('0x1f'),_0x2c85fe(this[_0x5262('0x19')],_0x3e386b);}),_0x3b37a2[_0x5262('0x10')](_0x5262('0x3'))['to'](this,_0x5262('0x22'),_0x5ea138=>_0x2c85fe(this[_0x5262('0x19')],_0x5ea138?_0x5262('0x29'):_0x5262('0x1e'))),_0x3b37a2['on'](_0x5262('0x4'),(_0x491d0d,_0x472549)=>{this['fire'](_0x5262('0x2a'),_0x472549),this['_model']['isResolved']&&this['_model'][_0x5262('0xe')]&&this['fire'](_0x5262('0x1d'),this[_0x5262('0xd')]['id']),this[_0x5262('0xd')][_0x5262('0x1b')]||this[_0x5262('0x1a')](_0x5262('0x0'));}),_0x3b37a2['on'](_0x5262('0x15'),()=>{this[_0x5262('0x17')]();}),_0x3b37a2['bind'](_0x5262('0x13'))['to'](this['_model'],_0x5262('0x2')),_0x3b37a2['on'](_0x5262('0x15'),_0x3f0fb6=>{0x0==this[_0x5262('0x22')]&&(this['fire'](_0x5262('0x16')),_0x3f0fb6['stop']());}),this['on'](_0x5262('0xa'),(_0x24eeb8,_0x9e4c73,_0x50f94d)=>{_0x50f94d||this['length']||_0x3b37a2['value']||this['fire']('removeCommentThread');}),_0x5e76ff;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5eab=['updateComment','collapse','_config','locale','element','focus','set','fire','submit','isCollapsed','disabledSubmit','value','remove','_model','switchToDisplayMode','content','isSystemComment','editorReady','isEditMode','Save','add','cancel','switchToEditMode','expand','editorConfig','editorDestroyed','isReadOnly','delegate','visibleView','_createCommentContentView','once','destroy','bind','initialData','_createCommentInputView','maxCommentCharsWhenCollapsed'];(function(_0x267c12,_0x5eab68){const _0x23f6a5=function(_0x4e4840){while(--_0x4e4840){_0x267c12['push'](_0x267c12['shift']());}};_0x23f6a5(++_0x5eab68);}(_0x5eab,0x105));const _0x23f6=function(_0x267c12,_0x5eab68){_0x267c12=_0x267c12-0x0;let _0x23f6a5=_0x5eab[_0x267c12];return _0x23f6a5;};import{View as _0xdef608}from'ckeditor5/src/ui';import{trimHtml as _0x28fcec}from'ckeditor5-collaboration/src/collaboration-core';import _0x2826ed from'./commentcontentview';import _0x7148e from'./commentinputview';import{getTranslation as _0x3d55c7}from'../../../utils/common-translations';export default class ti extends _0xdef608{constructor(_0x57bf03,_0x439211,_0x148217){super(_0x57bf03),this[_0x23f6('0x4')]=_0x439211,this[_0x23f6('0x1d')]=_0x148217,this[_0x23f6('0x7')]=!!this[_0x23f6('0x1d')][_0x23f6('0x7')],this[_0x23f6('0x21')](_0x23f6('0x9'),!0x1),this[_0x23f6('0x21')](_0x23f6('0x0'),!0x0),this[_0x23f6('0x13')]=this['createCollection'](),this[_0x23f6('0x13')][_0x23f6('0xb')](this[_0x23f6('0x14')]());}[_0x23f6('0xe')](){this['isCollapsed']=!0x1;}[_0x23f6('0x1c')](){this[_0x23f6('0x9')]||(this[_0x23f6('0x0')]=!0x0);}[_0x23f6('0x20')](){this[_0x23f6('0x1f')][_0x23f6('0x20')]();}async[_0x23f6('0x16')](){await this[_0x23f6('0x13')]['get'](0x0)[_0x23f6('0x16')](),super[_0x23f6('0x16')]();}[_0x23f6('0xd')](){this['isEditMode']||(this[_0x23f6('0x9')]=!0x0,this['visibleView'][_0x23f6('0x3')](0x0)[_0x23f6('0x16')](),this['visibleView'][_0x23f6('0xb')](this[_0x23f6('0x19')]()));}[_0x23f6('0x5')](){this['isEditMode']&&(this[_0x23f6('0x9')]=!0x1,this[_0x23f6('0x13')][_0x23f6('0x3')](0x0)['destroy'](),this[_0x23f6('0x13')][_0x23f6('0xb')](this[_0x23f6('0x14')]()));}[_0x23f6('0x14')](){const _0x3e1e24=new _0x2826ed(this['locale']);return _0x3e1e24[_0x23f6('0x17')]('content')['to'](this[_0x23f6('0x4')],_0x23f6('0x6'),this,_0x23f6('0x0'),(_0x1061b1,_0x1816fc)=>_0x1816fc?_0x28fcec(_0x1061b1,{'limit':this[_0x23f6('0x1d')][_0x23f6('0x1a')]}):_0x1061b1),_0x3e1e24;}[_0x23f6('0x19')](){this['_config'][_0x23f6('0xf')]||(this[_0x23f6('0x1d')][_0x23f6('0xf')]={}),this[_0x23f6('0x1d')][_0x23f6('0xf')][_0x23f6('0x18')]=this['_model']['content'];const _0x43aa65=new _0x7148e(this[_0x23f6('0x1e')],this['_config']['editorConfig']);return _0x43aa65[_0x23f6('0x2')]=this[_0x23f6('0x4')]['content'],_0x43aa65['bind'](_0x23f6('0x1'))['to'](this[_0x23f6('0x4')],_0x23f6('0x11')),_0x43aa65['submitLabel']=_0x3d55c7(this[_0x23f6('0x1e')],_0x23f6('0xa')),_0x43aa65['on'](_0x23f6('0x23'),(_0x454db5,_0x3e318f)=>{this[_0x23f6('0x22')](_0x23f6('0x1b'),this['_model']['id'],_0x3e318f),this[_0x23f6('0x5')](),this[_0x23f6('0x20')]();}),_0x43aa65['on'](_0x23f6('0xc'),()=>{this['switchToDisplayMode'](),this['focus']();}),_0x43aa65[_0x23f6('0x15')]('editorReady',()=>{_0x43aa65[_0x23f6('0x20')]();}),_0x43aa65['createEditor'](),_0x43aa65['delegate'](_0x23f6('0x8'))['to'](this),_0x43aa65[_0x23f6('0x12')](_0x23f6('0x10'))['to'](this),_0x43aa65;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x44bb=['setTemplate','NUMBER_OF_COMMENTS','count','ck-thread__comment-count','bindTemplate','set'];(function(_0x10c2de,_0x44bb57){const _0x37faf4=function(_0x497585){while(--_0x497585){_0x10c2de['push'](_0x10c2de['shift']());}};_0x37faf4(++_0x44bb57);}(_0x44bb,0xaa));const _0x37fa=function(_0x10c2de,_0x44bb57){_0x10c2de=_0x10c2de-0x0;let _0x37faf4=_0x44bb[_0x10c2de];return _0x37faf4;};import{View as _0x14a4ac}from'ckeditor5/src/ui';import{getTranslation as _0x438f88}from'../../../utils/common-translations';export default class to extends _0x14a4ac{constructor(_0x372ab7){super(_0x372ab7);const _0x163981=this[_0x37fa('0x2')];this[_0x37fa('0x3')](_0x37fa('0x0'),void 0x0),this[_0x37fa('0x4')]({'tag':'li','attributes':{'class':_0x37fa('0x1')},'children':[{'text':_0x163981['to'](_0x37fa('0x0'),_0x1d61e3=>_0x438f88(_0x372ab7,_0x37fa('0x5'),_0x1d61e3))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4b78=['content','ck-annotation__content','render','innerHTML','element','div','set','change:content','ck-comment__content'];(function(_0x5cfcab,_0x4b78bb){var _0x191b86=function(_0x3a88b9){while(--_0x3a88b9){_0x5cfcab['push'](_0x5cfcab['shift']());}};_0x191b86(++_0x4b78bb);}(_0x4b78,0x1ea));var _0x191b=function(_0x5cfcab,_0x4b78bb){_0x5cfcab=_0x5cfcab-0x0;var _0x191b86=_0x4b78[_0x5cfcab];return _0x191b86;};import{View as _0x3fe54a}from'ckeditor5/src/ui';export default class Yt extends _0x3fe54a{constructor(_0x4499b0){super(_0x4499b0),this[_0x191b('0x2')]('content',''),this['setTemplate']({'tag':_0x191b('0x1'),'attributes':{'class':[_0x191b('0x4'),_0x191b('0x6')]}});}[_0x191b('0x7')](){super[_0x191b('0x7')](),this['on'](_0x191b('0x3'),(_0x4e23b6,_0x3a3a87,_0x4e7800)=>{this['element'][_0x191b('0x8')]=_0x4e7800;}),this[_0x191b('0x0')][_0x191b('0x8')]=this[_0x191b('0x5')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x6c03=['keystrokes','withText','disabledSubmit','editorReady','length','submitLabel','insertBefore','_createSubmitButton','bindTemplate','create','destroy','_editorConfig','submitButtonView','bind','set','label','fire','_editorCreationPromise','cancel','add','showButtons','div','_isDestroyed','Reply...','extendTemplate','editor','element','tab','placeholder','Cancel','forEach','cancelButtonView','focusTracker','initialData','focus','firstChild','ck-comment__input-wrapper','execute','editorDestroyed','getData','setTemplate','createEditor','submit','model','trim','ck-comment__input-actions--active','_initializeFocusCycling','Esc','stop','high','setData','value','focusNext','_createCancelButton','low','isEnabled'];(function(_0x4cd50e,_0x6c039){const _0xe5dbe5=function(_0x2041b8){while(--_0x2041b8){_0x4cd50e['push'](_0x4cd50e['shift']());}};_0xe5dbe5(++_0x6c039);}(_0x6c03,0x1a7));const _0xe5db=function(_0x4cd50e,_0x6c039){_0x4cd50e=_0x4cd50e-0x0;let _0xe5dbe5=_0x6c03[_0x4cd50e];return _0xe5dbe5;};import{View as _0x5be619,ViewCollection as _0x26cf5e,FocusCycler as _0x8c341a,ButtonView as _0x4570e2}from'ckeditor5/src/ui';import{FocusTracker as _0x49971e,KeystrokeHandler as _0x5b31c0}from'ckeditor5/src/utils';import _0x1df531 from'../commenteditor/commenteditor';import{getTranslation as _0x4cfdb5}from'../../../utils/common-translations';export default class Zt extends _0x5be619{constructor(_0x14ebb5,_0x50593c={}){super(_0x14ebb5),this[_0xe5db('0x32')]=null,this[_0xe5db('0x24')]=_0x50593c,this[_0xe5db('0x19')]=new _0x5b31c0(),this[_0xe5db('0x1')]=new _0x49971e(),this[_0xe5db('0x27')](_0xe5db('0x14'),_0x50593c[_0xe5db('0x2')]||''),this[_0xe5db('0x27')](_0xe5db('0x1b'),!0x1),this[_0xe5db('0x27')](_0xe5db('0x2d'),!0x0),this[_0xe5db('0x27')](_0xe5db('0x35'),_0x4cfdb5(_0x14ebb5,_0xe5db('0x30'))),this['set'](_0xe5db('0x1e'),_0x4cfdb5(_0x14ebb5,'Reply')),this[_0xe5db('0x25')]=this[_0xe5db('0x20')](),this[_0xe5db('0x0')]=this[_0xe5db('0x16')](),this[_0xe5db('0x9')]({'tag':_0xe5db('0x2e'),'attributes':{'class':[_0xe5db('0x5')]},'children':[{'tag':_0xe5db('0x2e'),'attributes':{'class':['ck-comment__input-actions',this[_0xe5db('0x21')]['if']('showButtons',_0xe5db('0xe'))]},'children':[this[_0xe5db('0x25')],this[_0xe5db('0x0')]]}]}),this[_0xe5db('0x19')][_0xe5db('0x27')](_0xe5db('0x10'),(_0x38daf0,_0xcd5a6e)=>{this[_0xe5db('0x0')][_0xe5db('0x29')](_0xe5db('0x6')),_0xcd5a6e();}),this['on'](_0xe5db('0xb'),(_0x299c46,_0x365be3)=>{_0x365be3[_0xe5db('0x1d')]>0xfde8?(alert(_0x4cfdb5(_0x14ebb5,'TOO_LONG_COMMENT_ALERT',[_0x365be3['length'],0xfde8])),_0x299c46[_0xe5db('0x11')]()):this[_0xe5db('0x32')][_0xe5db('0x13')]('');},{'priority':_0xe5db('0x12')});}['render'](){super['render'](),this[_0xe5db('0x19')]['listenTo'](this['element']),this['focusTracker'][_0xe5db('0x2c')](this[_0xe5db('0x33')]);}[_0xe5db('0xa')](){return this[_0xe5db('0x32')]||(this[_0xe5db('0x32')]=new _0x1df531(this[_0xe5db('0x24')]),this['_editorCreationPromise']=this[_0xe5db('0x32')][_0xe5db('0x22')]()['then'](()=>{if(this[_0xe5db('0x2f')])return;const _0x1e44fa=this[_0xe5db('0x32')];this[_0xe5db('0x33')][_0xe5db('0x1f')](_0x1e44fa['ui'][_0xe5db('0x33')],this[_0xe5db('0x33')][_0xe5db('0x4')]),_0x1e44fa[_0xe5db('0xc')]['document']['on']('change',()=>this['value']=_0x1e44fa[_0xe5db('0x8')]()),_0x1e44fa[_0xe5db('0x26')](_0xe5db('0x35'))['to'](this),this[_0xe5db('0xf')](this[_0xe5db('0x32')]),this[_0xe5db('0x29')](_0xe5db('0x1c'),this['editor']);})),this[_0xe5db('0x2a')];}[_0xe5db('0x3')](){this[_0xe5db('0x32')]&&this['editor'][_0xe5db('0x3')]();}async[_0xe5db('0x23')](){this[_0xe5db('0x2f')]||(this[_0xe5db('0x2f')]=!0x0,this[_0xe5db('0x32')]&&(await this[_0xe5db('0x2a')],await this['editor'][_0xe5db('0x23')](),this[_0xe5db('0x29')](_0xe5db('0x7'),this[_0xe5db('0x32')])),await super[_0xe5db('0x23')]());}[_0xe5db('0x20')](){const {locale:_0x4207aa}=this,_0x4b4ecd=new _0x4570e2(_0x4207aa);return _0x4b4ecd[_0xe5db('0x31')]({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x4b4ecd['withText']=!0x0,_0x4b4ecd[_0xe5db('0x26')](_0xe5db('0x28'))['to'](this,_0xe5db('0x1e')),_0x4b4ecd['on'](_0xe5db('0x6'),()=>{this[_0xe5db('0x29')](_0xe5db('0xb'),this[_0xe5db('0x14')]);}),_0x4b4ecd[_0xe5db('0x26')](_0xe5db('0x18'))['to'](this,'value',this,'disabledSubmit',(_0x1c3e95,_0x46a27f)=>!_0x46a27f&&!!_0x1c3e95[_0xe5db('0xd')]()),_0x4b4ecd;}[_0xe5db('0x16')](){const {locale:_0x30ec10}=this,_0x473062=new _0x4570e2(_0x30ec10);return _0x473062[_0xe5db('0x31')]({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x473062[_0xe5db('0x28')]=_0x4cfdb5(_0x30ec10,_0xe5db('0x36')),_0x473062[_0xe5db('0x1a')]=!0x0,_0x473062['on'](_0xe5db('0x6'),()=>{this[_0xe5db('0x32')][_0xe5db('0x13')](''),this[_0xe5db('0x29')](_0xe5db('0x2b'));}),_0x473062;}['_initializeFocusCycling'](_0x521511){const _0x19665d=this[_0xe5db('0x1')],_0x1b032a=new _0x26cf5e();[_0x521511['ui']['view'],this[_0xe5db('0x25')],this['cancelButtonView']][_0xe5db('0x37')](_0x2174c4=>{_0x1b032a[_0xe5db('0x2c')](_0x2174c4),_0x19665d['add'](_0x2174c4[_0xe5db('0x33')]);});const _0x36af8d=new _0x8c341a({'focusables':_0x1b032a,'focusTracker':_0x19665d});this[_0xe5db('0x19')][_0xe5db('0x27')](_0xe5db('0x34'),(_0x2f48d8,_0x1863ae)=>{_0x36af8d[_0xe5db('0x15')](),_0x1863ae();},{'priority':'low'}),this['keystrokes']['set']('shift\x20+\x20tab',(_0x379e5a,_0x112d12)=>{_0x36af8d['focusPrevious'](),_0x112d12();},{'priority':_0xe5db('0x17')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4bca=['listenTo','div','length','ck-comments-archive__header\x20','remove','focus','EMPTY_COMMENTS_ARCHIVE','set','add','render','ck-comments-archive','shift\x20+\x20tab','element','ck-comments-archive__info','stopPropagation','arrowup','_keystrokes','bindTemplate','isEmpty','selectstart','arrowdown','destroy','isActive','_focusTracker','arrowleft','tab'];(function(_0x23d4fa,_0x4bca0a){const _0x376cfa=function(_0x15b8e0){while(--_0x15b8e0){_0x23d4fa['push'](_0x23d4fa['shift']());}};_0x376cfa(++_0x4bca0a);}(_0x4bca,0xfa));const _0x376c=function(_0x23d4fa,_0x4bca0a){_0x23d4fa=_0x23d4fa-0x0;let _0x376cfa=_0x4bca[_0x23d4fa];return _0x376cfa;};import{View as _0x48c0f3,FocusCycler as _0x3dedbb}from'ckeditor5/src/ui';import{FocusTracker as _0x5d88a7,KeystrokeHandler as _0x31966b}from'ckeditor5/src/utils';import{getTranslation as _0x28d569}from'../../../utils/common-translations';export default class K extends _0x48c0f3{constructor(_0x1b4fea,_0x1994aa){super(_0x1b4fea),this[_0x376c('0x11')]('isEmpty',!_0x1994aa[_0x376c('0xc')]),this[_0x376c('0x7')]=new _0x5d88a7(),this[_0x376c('0x0')]=new _0x31966b(),this['_focusables']=_0x1994aa,this['_focusCycler']=new _0x3dedbb({'focusables':this['_focusables'],'focusTracker':this[_0x376c('0x7')],'keystrokeHandler':this['_keystrokes'],'actions':{'focusPrevious':_0x376c('0x15'),'focusNext':_0x376c('0x9')}}),this[_0x376c('0xa')](_0x1994aa,_0x376c('0x12'),()=>{this[_0x376c('0x2')]=!0x1;}),this[_0x376c('0xa')](_0x1994aa,_0x376c('0xe'),(_0x254a40,_0x17089a)=>{_0x17089a[_0x376c('0x6')]&&this[_0x376c('0xf')](),_0x1994aa[_0x376c('0xc')]||(this['isEmpty']=!0x0);});const _0x229ebc=this[_0x376c('0x1')];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck',_0x376c('0x14')],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':[_0x376c('0xd')]},'children':[{'text':_0x28d569(_0x1b4fea,'COMMENTS_ARCHIVE')}]},{'tag':_0x376c('0xb'),'attributes':{'class':['ck-comments-archive__content']},'children':[{'tag':_0x376c('0xb'),'children':_0x1994aa},{'tag':'p','attributes':{'class':[_0x376c('0x17'),_0x229ebc['if'](_0x376c('0x2'),'ck-hidden',_0x39476b=>!_0x39476b)]},'children':[{'text':_0x28d569(_0x1b4fea,_0x376c('0x10'))}]}]}]});}[_0x376c('0x13')](){super[_0x376c('0x13')](),this[_0x376c('0x0')][_0x376c('0xa')](this[_0x376c('0x16')]);const _0x379061=_0x1c9c70=>_0x1c9c70['stopPropagation']();this['_keystrokes'][_0x376c('0x11')]('arrowright',_0x379061),this[_0x376c('0x0')][_0x376c('0x11')](_0x376c('0x8'),_0x379061),this[_0x376c('0x0')][_0x376c('0x11')](_0x376c('0x19'),_0x379061),this[_0x376c('0x0')][_0x376c('0x11')](_0x376c('0x4'),_0x379061),this['listenTo'](this[_0x376c('0x16')],_0x376c('0x3'),(_0x3c42e0,_0x42d852)=>{_0x42d852[_0x376c('0x18')]();},{'priority':'high'});}['destroy'](){super[_0x376c('0x5')](),this[_0x376c('0x7')]['destroy'](),this[_0x376c('0x0')][_0x376c('0x5')]();}[_0x376c('0xf')](){this[_0x376c('0x16')][_0x376c('0xf')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c77=['remove','formatDateTime','updateComment','maxCommentsWhenCollapsed','bind','change:isEditMode','_updateHasDirtyComment','createCollection','_collapsedCommentsView','expand','delete','from','resolved','authoredAt','listenTo','maxCommentCharsWhenCollapsed','resolveCommentThread','visibleViews','count','collapse','_config','set','equal','isActive','commentUpdated','ck-thread__comments','_rearrangeExpand','editorDestroyed','_rearrangeCollapse','resolvedBy','_calculatePosition','_findOptimalIndex','resolvedAt','maxThreadTotalWeight','_shouldCollapse','change:isActive','isEditMode','focus','_handleNewCommentModel','commentViews','editorConfig','length','refreshVisibleViews','some','insert','delegate','hasDirtyComment','render','locale','destroy','_handleRemoveCommentModel','comments','change:isResolved','_model','add','Marked\x20as\x20resolved','resolvedCommentView','setTemplate'];(function(_0x5df6ec,_0x5c770c){const _0x1c5807=function(_0x6aacee){while(--_0x6aacee){_0x5df6ec['push'](_0x5df6ec['shift']());}};_0x1c5807(++_0x5c770c);}(_0x5c77,0x1ef));const _0x1c58=function(_0x5df6ec,_0x5c770c){_0x5df6ec=_0x5df6ec-0x0;let _0x1c5807=_0x5c77[_0x5df6ec];return _0x1c5807;};import{View as _0xd15916}from'ckeditor5/src/ui';import{diff as _0x56e7ee,Collection as _0x567300}from'ckeditor5/src/utils';import{getTranslation as _0xb83d06}from'../../../utils/common-translations';import _0x4ef17c from'./collapsedcommentsview';export default class Ct extends _0xd15916{constructor(_0x3c57fa,_0x240d6a,_0x53588f){super(_0x3c57fa),this[_0x1c58('0x30')]('hasDirtyComment',!0x1),this[_0x1c58('0x30')]('length',_0x240d6a['comments']['length']),this[_0x1c58('0x30')](_0x1c58('0x32'),!0x1),this['_model']=_0x240d6a,this[_0x1c58('0x2f')]=_0x53588f,this[_0x1c58('0x8')]=this[_0x1c58('0x22')](),this[_0x1c58('0x2c')]=this[_0x1c58('0x22')](),this[_0x1c58('0x19')]=null,this['_collapsedCommentsView']=new _0x4ef17c(_0x3c57fa),this[_0x1c58('0x23')][_0x1c58('0x1f')]('count')['to'](this,'length',_0x44282c=>_0x44282c-this[_0x1c58('0x2f')][_0x1c58('0x1e')]);for(const _0x11521a of _0x240d6a[_0x1c58('0x14')])this[_0x1c58('0x7')](_0x11521a);this['_handleInfoComment'](),this['listenTo'](_0x240d6a[_0x1c58('0x14')],_0x1c58('0x17'),(_0x485ad8,_0x5d8d2f)=>{const _0x3f5e75=this[_0x1c58('0x39')](_0x5d8d2f);this['length']++,this[_0x1c58('0x7')](_0x5d8d2f,_0x3f5e75),this[_0x1c58('0xb')]();}),this[_0x1c58('0x29')](_0x240d6a[_0x1c58('0x14')],'remove',(_0x265fb6,_0x75f85d)=>{this[_0x1c58('0xa')]--,this[_0x1c58('0x13')](_0x75f85d),this[_0x1c58('0xb')]();}),this[_0x1c58('0x29')](_0x240d6a,_0x1c58('0x33'),()=>this[_0x1c58('0xb')]()),this[_0x1c58('0x29')](_0x240d6a,_0x1c58('0x15'),()=>this['_handleInfoComment']()),this['on'](_0x1c58('0x4'),()=>this[_0x1c58('0xb')]()),this['on']('change:hasDirtyComment',()=>this[_0x1c58('0xb')]()),this[_0x1c58('0x1a')]({'tag':'ul','attributes':{'class':[_0x1c58('0x34')]},'children':this['visibleViews']});}get[_0x1c58('0x3')](){return this[_0x1c58('0x16')]['weight']>this[_0x1c58('0x2f')][_0x1c58('0x2')]&&!this[_0x1c58('0x32')]&&!this[_0x1c58('0xf')];}[_0x1c58('0x10')](){super[_0x1c58('0x10')](),this[_0x1c58('0xb')]();}[_0x1c58('0x6')](){this['element'][_0x1c58('0x6')]();}[_0x1c58('0x12')](){this[_0x1c58('0x23')]['destroy']();for(const _0x10e3be of this[_0x1c58('0x8')])_0x10e3be['destroy']();super[_0x1c58('0x12')]();}[_0x1c58('0xb')](){this['_shouldCollapse']?this[_0x1c58('0x37')]():this[_0x1c58('0x35')]();}[_0x1c58('0x7')](_0x471f8c,_0x2ee1ce){const _0x4d492f=new this[(_0x1c58('0x2f'))]['CommentView'](this[_0x1c58('0x11')],_0x471f8c,{'maxCommentCharsWhenCollapsed':this[_0x1c58('0x2f')][_0x1c58('0x2a')],'formatDateTime':this[_0x1c58('0x2f')]['formatDateTime'],'editorConfig':this[_0x1c58('0x2f')][_0x1c58('0x9')]});_0x4d492f['viewUid']=_0x471f8c['id'],_0x4d492f['delegate']('removeComment')['to'](this),_0x4d492f['delegate'](_0x1c58('0x1d'))['to'](this),_0x4d492f[_0x1c58('0xe')](_0x1c58('0x2b'))['to'](this),_0x4d492f[_0x1c58('0xe')]('editorReady')['to'](this),_0x4d492f[_0x1c58('0xe')](_0x1c58('0x36'))['to'](this),this['listenTo'](_0x4d492f,_0x1c58('0x20'),()=>this[_0x1c58('0x21')]()),this[_0x1c58('0x8')][_0x1c58('0x17')](_0x4d492f,_0x2ee1ce);}['_calculatePosition'](_0x1cf4f5){const _0x3e2e16=this[_0x1c58('0x16')]['_findOptimalIndex'](_0x1cf4f5);return this[_0x1c58('0x19')]?this[_0x1c58('0x19')][_0x1c58('0x28')]>_0x1cf4f5[_0x1c58('0x28')]?_0x3e2e16-0x1:_0x3e2e16:_0x3e2e16-0x1;}['_handleInfoComment'](){if(this[_0x1c58('0x16')][_0x1c58('0x38')]&&this[_0x1c58('0x16')][_0x1c58('0x1')]){const _0x4673e7={'id':_0x1c58('0x27'),'author':this[_0x1c58('0x16')][_0x1c58('0x38')],'authoredAt':this[_0x1c58('0x16')][_0x1c58('0x1')],'content':_0xb83d06(this[_0x1c58('0x11')],_0x1c58('0x18')),'attributes':{}};this[_0x1c58('0x19')]=new this['_config']['CommentView'](this[_0x1c58('0x11')],_0x4673e7,{'maxCommentCharsWhenCollapsed':this[_0x1c58('0x2f')][_0x1c58('0x2a')],'formatDateTime':this[_0x1c58('0x2f')][_0x1c58('0x1c')],'editorConfig':this['_config'][_0x1c58('0x9')],'isSystemComment':!0x0}),this[_0x1c58('0x8')]['add'](this[_0x1c58('0x19')],this[_0x1c58('0x16')][_0x1c58('0x0')](_0x4673e7));}else this['resolvedCommentView']&&(this[_0x1c58('0x8')]['remove'](this['resolvedCommentView']),this[_0x1c58('0x19')][_0x1c58('0x12')](),this[_0x1c58('0x19')]=null);this[_0x1c58('0xb')]();}[_0x1c58('0x13')](_0x47a8ef){const _0x49229e=this[_0x1c58('0x8')]['remove'](_0x47a8ef['id']);this['stopListening'](_0x49229e),_0x49229e[_0x1c58('0x5')]&&this['_updateHasDirtyComment'](),_0x49229e[_0x1c58('0x12')]();}[_0x1c58('0x21')](){this[_0x1c58('0xf')]=Array[_0x1c58('0x26')](this[_0x1c58('0x8')])[_0x1c58('0xc')](_0x407d61=>_0x407d61[_0x1c58('0x5')]);}[_0x1c58('0x37')](){const _0x56cb3e=function(_0x22bfe7){const _0x2bb95f=new _0x567300();for(const _0x58a8e0 of _0x22bfe7)_0x2bb95f['add'](_0x58a8e0);return _0x2bb95f;}(this[_0x1c58('0x8')]),_0x1aef86=this[_0x1c58('0x23')][_0x1c58('0x2d')];for(let _0x5d535d=0x1;_0x5d535d<=_0x1aef86;_0x5d535d++)_0x56cb3e[_0x1c58('0x1b')](0x1);for(const _0x2eded3 of _0x56cb3e)_0x2eded3[_0x1c58('0x2e')]();_0x1aef86>0x0&&_0x56cb3e[_0x1c58('0x17')](this['_collapsedCommentsView'],0x1),ss(_0x56e7ee(Array[_0x1c58('0x26')](this[_0x1c58('0x2c')]),Array[_0x1c58('0x26')](_0x56cb3e)),this[_0x1c58('0x2c')],_0x56cb3e);}[_0x1c58('0x35')](){ss(_0x56e7ee(Array['from'](this[_0x1c58('0x2c')]),Array['from'](this[_0x1c58('0x8')])),this[_0x1c58('0x2c')],this[_0x1c58('0x8')]);for(const _0x1fc112 of this[_0x1c58('0x2c')])_0x1fc112[_0x1c58('0x24')]();}}function ss(_0x5c0ce9,_0x15cd52,_0x1336fc){let _0x39568f=0x0;for(const _0x20f6aa of _0x5c0ce9)switch(_0x20f6aa){case _0x1c58('0xd'):_0x15cd52[_0x1c58('0x17')](_0x1336fc['get'](_0x39568f),_0x39568f),_0x39568f++;break;case _0x1c58('0x25'):_0x15cd52['remove'](_0x39568f);break;case _0x1c58('0x31'):_0x39568f++;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d8f=['.ck-context__value','overlay','length','_createReopenButton','.ck-context','ck-context--quotes','_model','listenTo','add','Reopen','isResolved','ck-context-wrapper','classList','render','locale','span','offsetWidth','bindTemplate','div','substring','ck-thread__header','value','element','_trimContextValue','mouseleave','hasContext','fire','isEnabled','bind','context','remove','_attachContextActions','label','reopenButtonView','contextValue','ck-context','isVisible','mouseenter','ck-annotation__actions','setTemplate','...','querySelector','scrollWidth'];(function(_0xe80085,_0x4d8f8e){const _0x4e4644=function(_0x5ac18f){while(--_0x5ac18f){_0xe80085['push'](_0xe80085['shift']());}};_0x4e4644(++_0x4d8f8e);}(_0x4d8f,0xa0));const _0x4e46=function(_0xe80085,_0x4d8f8e){_0xe80085=_0xe80085-0x0;let _0x4e4644=_0x4d8f[_0xe80085];return _0x4e4644;};import{View as _0x414fc7,ButtonView as _0x1e9af3}from'ckeditor5/src/ui';import{getTranslation as _0x458e9a}from'../../../utils/common-translations';import _0x2da717 from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Tt extends _0x414fc7{constructor(_0x11c93d,_0x476ed4){super(_0x11c93d);const _0x470028=this[_0x4e46('0x1d')];this[_0x4e46('0x12')]=_0x476ed4,this[_0x4e46('0x2')]=this[_0x4e46('0xf')](),this[_0x4e46('0x28')]('hasContext')['to'](this[_0x4e46('0x12')],_0x4e46('0x29'),_0x35543b=>!!_0x35543b),this[_0x4e46('0x28')](_0x4e46('0x3'))['to'](this[_0x4e46('0x12')],_0x4e46('0x29'),_0x579600=>_0x579600&&_0x579600[_0x4e46('0x21')]?this['_trimContextValue'](_0x579600['value']):_0x458e9a(this[_0x4e46('0x1a')],'Comment\x20was\x20made\x20on\x20an\x20element')),this[_0x4e46('0x8')]({'tag':_0x4e46('0x1e'),'attributes':{'class':[_0x4e46('0x20')]},'children':[{'tag':'div','attributes':{'class':[_0x4e46('0x17')]},'children':[{'tag':_0x4e46('0x1e'),'attributes':{'class':[_0x4e46('0x4'),_0x470028['if'](_0x4e46('0x25'),_0x4e46('0x11'))]},'children':[{'tag':_0x4e46('0x1b'),'attributes':{'class':['ck-context__value']},'children':[{'text':_0x470028['to'](_0x4e46('0x3'))}]}]}]},{'tag':_0x4e46('0x1e'),'attributes':{'class':[_0x4e46('0x7')]},'children':[this['reopenButtonView']]}]});}[_0x4e46('0x19')](){super[_0x4e46('0x19')](),this[_0x4e46('0x0')]();}[_0x4e46('0xf')](){const _0x115123=new _0x1e9af3(this[_0x4e46('0x1a')]);return _0x115123[_0x4e46('0x1')]=_0x458e9a(this[_0x4e46('0x1a')],_0x4e46('0x15')),_0x115123['tooltip']=_0x458e9a(this[_0x4e46('0x1a')],_0x4e46('0x15')),_0x115123['icon']=_0x2da717,_0x115123[_0x4e46('0x28')](_0x4e46('0x27'))['to'](this[_0x4e46('0x12')],'isReadOnly',_0x5be1c5=>!_0x5be1c5),_0x115123[_0x4e46('0x28')](_0x4e46('0x5'))['to'](this[_0x4e46('0x12')],'isResolvable',this['_model'],_0x4e46('0x16'),(_0x70afbe,_0x174784)=>_0x70afbe&&_0x174784),_0x115123['on']('execute',()=>{this[_0x4e46('0x26')]('reopenCommentThread',this[_0x4e46('0x12')]['id']);}),_0x115123;}[_0x4e46('0x23')](_0x5d9e48){if(_0x5d9e48[_0x4e46('0xe')]<0x96)return _0x5d9e48;const _0x3010f1=_0x5d9e48['lastIndexOf']('\x20',0x93);return _0x5d9e48[_0x4e46('0x1f')](0x0,_0x3010f1>-0x1?_0x3010f1:0x93)+_0x4e46('0x9');}[_0x4e46('0x0')](){const _0x26b759=this[_0x4e46('0x22')][_0x4e46('0xa')](_0x4e46('0x10')),_0x3f97c1=_0x26b759[_0x4e46('0xa')](_0x4e46('0xc'));this['listenTo'](_0x26b759,_0x4e46('0x6'),()=>{_0x3f97c1[_0x4e46('0x1c')]<_0x3f97c1[_0x4e46('0xb')]&&_0x26b759[_0x4e46('0x18')][_0x4e46('0x14')]('overlay');}),this[_0x4e46('0x13')](_0x26b759,_0x4e46('0x24'),()=>{_0x26b759[_0x4e46('0x18')][_0x4e46('0x2a')](_0x4e46('0xd'));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3e15=['ck-comment__input-container','commentInputView','editorDestroyed','then','change:showInput','focusTracker','isFocused','setTemplate','destroy','extendTemplate','editorReady','delegate','ck-thread__input','showButtons','set','showInput','bindTemplate','div','ck-comment__input-container--active','value','bind','userView'];(function(_0x430697,_0x3e154d){var _0x531a9a=function(_0x2abcdd){while(--_0x2abcdd){_0x430697['push'](_0x430697['shift']());}};_0x531a9a(++_0x3e154d);}(_0x3e15,0x17d));var _0x531a=function(_0x430697,_0x3e154d){_0x430697=_0x430697-0x0;var _0x531a9a=_0x3e15[_0x430697];return _0x531a9a;};import{View as _0x4d59dd}from'ckeditor5/src/ui';import _0x13250f from'./commentinputview';import{UserView as _0x40bace}from'ckeditor5-collaboration/src/collaboration-core';export default class At extends _0x4d59dd{constructor(_0x350a1b,_0x310b67,_0x38e613){super(_0x350a1b),this[_0x531a('0x10')]=new _0x13250f(_0x350a1b,_0x38e613),this[_0x531a('0x10')][_0x531a('0xd')](_0x531a('0x6'))['to'](this[_0x531a('0x10')][_0x531a('0x14')],_0x531a('0x15'),this[_0x531a('0x10')],_0x531a('0xc'),(_0x2b2102,_0x426049)=>_0x2b2102||!!_0x426049),this[_0x531a('0x7')](_0x531a('0x8'),!0x1),this['on'](_0x531a('0x13'),()=>{this[_0x531a('0x8')]&&!this[_0x531a('0x10')]['editor']&&this['commentInputView']['createEditor']();}),this['commentInputView'][_0x531a('0x4')](_0x531a('0x3'))['to'](this),this['commentInputView'][_0x531a('0x4')](_0x531a('0x11'))['to'](this),this[_0x531a('0xe')]=new _0x40bace(_0x350a1b,_0x310b67),this[_0x531a('0xe')][_0x531a('0x2')]({'attributes':{'class':'ck-thread__user'}}),this[_0x531a('0x10')][_0x531a('0x2')]({'attributes':{'class':_0x531a('0x5')}}),this[_0x531a('0x0')]({'tag':_0x531a('0xa'),'attributes':{'class':[_0x531a('0xf'),this[_0x531a('0x9')]['if'](_0x531a('0x8'),_0x531a('0xb'))]},'children':[this['userView'],this[_0x531a('0x10')]]});}[_0x531a('0x1')](){return this['commentInputView'][_0x531a('0x1')]()[_0x531a('0x12')](()=>super['destroy']());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xe0df=['high','extendTemplate','showConfirm','locale','div','unbind','querySelector','containerElement','resolveButton','get','commentThreadHeaderView','bind','actionIndicator','ck-thread--','_bindFirstCommentView','has','_boundFirstCommentView','commentViews','bindTemplate','isConfirm','commentThreadChildren','ck-thread--remove-confirmation','removeButton','check','render','commentsListView','change:archivedAt','Delete\x20comment\x20thread?','archivedAt','then','commentThreadInputView','Resolve','label','isActive','ck-thread','.ck-thread__container','createCollection','ck-thread--unlinked','fire','ck-thread--active','isUnlinked','cancelConfirm','remove','_createResolveButton','change:isActive','execute','_model','add','getTemplate','setTemplate','ck-reset_all-excluded','listenTo','actionBar','Write\x20a\x20comment...','ck-comment--resolve','resolveCommentThread','change:isReadOnly','isReadOnly','tooltip','isSystemComment','placeholder','addMany'];(function(_0x3ec212,_0xe0df03){const _0xdf91f5=function(_0x45c735){while(--_0x45c735){_0x3ec212['push'](_0x3ec212['shift']());}};_0xdf91f5(++_0xe0df03);}(_0xe0df,0x16b));const _0xdf91=function(_0x3ec212,_0xe0df03){_0x3ec212=_0x3ec212-0x0;let _0xdf91f5=_0xe0df[_0x3ec212];return _0xdf91f5;};import{ConfirmMixin as _0x11d0c7}from'ckeditor5-collaboration/src/collaboration-core';import{ButtonView as _0x5013f9}from'ckeditor5/src/ui';import{icons as _0x4ecac7}from'ckeditor5/src/core';import _0x410b12 from'./basecommentthreadview';import{getTranslation as _0x2bd97c}from'../../../utils/common-translations';export default class ft extends _0x11d0c7(_0x410b12){constructor(_0xfa7454,_0x23143a,_0x357423,_0x2f9b9b){super(_0xfa7454,_0x23143a,_0x357423,_0x2f9b9b),this[_0xdf91('0x1d')]=this[_0xdf91('0x2d')](),this[_0xdf91('0x1d')][_0xdf91('0x8')]([this[_0xdf91('0x22')],this[_0xdf91('0x27')]]),this[_0xdf91('0x37')][_0xdf91('0x25')]&&this['commentThreadChildren']['add'](this[_0xdf91('0x13')],0x0),this[_0xdf91('0x37')]['on'](_0xdf91('0x23'),(_0x34bebf,_0x4cf780,_0x124716)=>{_0x124716?this[_0xdf91('0x1d')][_0xdf91('0x18')](this['commentThreadHeaderView'])||this[_0xdf91('0x1d')][_0xdf91('0x38')](this[_0xdf91('0x13')],0x0):this[_0xdf91('0x1d')][_0xdf91('0x33')](this[_0xdf91('0x13')]);}),this['set'](_0xdf91('0x15'),null),this[_0xdf91('0x10')]=null,this[_0xdf91('0x19')]=null,this['locale']=_0xfa7454,this['resolveButton']=this[_0xdf91('0x34')](),this[_0xdf91('0x3a')](this[_0xdf91('0x39')]()),this['on'](_0xdf91('0x35'),(_0x28d693,_0x123368,_0x4c68ef)=>{_0x4c68ef||this['_cancelAllConfirms']();}),this[_0xdf91('0x3c')](this[_0xdf91('0x37')],_0xdf91('0x3'),(_0x4d35b8,_0x15aa20,_0x42da27)=>{_0x42da27&&this['_cancelAllConfirms']();}),this['length']>0x0&&this[_0xdf91('0x17')](),this[_0xdf91('0x3c')](this['commentsListView'][_0xdf91('0x1a')],_0xdf91('0x38'),()=>{this[_0xdf91('0x17')]();});}[_0xdf91('0x39')](){const _0x4c494f=this[_0xdf91('0x1b')];return{'tag':_0xdf91('0xd'),'attributes':{'class':[_0xdf91('0x2b'),_0xdf91('0x3b'),_0x4c494f['if'](_0xdf91('0x2a'),_0xdf91('0x30')),_0x4c494f['if'](_0xdf91('0x31'),_0xdf91('0x2e')),_0x4c494f['if'](_0xdf91('0x1c'),_0xdf91('0x1e')),_0x4c494f['to'](_0xdf91('0x15'),_0x28c73b=>_0x28c73b?_0xdf91('0x16')+_0x28c73b:'')],'data-thread-id':this[_0xdf91('0x37')]['id'],'tabindex':-0x1},'children':[{'tag':_0xdf91('0xd'),'attributes':{'class':'ck-thread__container'},'children':this[_0xdf91('0x1d')]}]};}[_0xdf91('0x21')](){super['render'](),this[_0xdf91('0x10')]=this['element'][_0xdf91('0xf')](_0xdf91('0x2c'));}['_cancelAllConfirms'](){this[_0xdf91('0x32')]();for(const _0x3f10ff of this[_0xdf91('0x22')][_0xdf91('0x1a')])_0x3f10ff[_0xdf91('0x32')]();}[_0xdf91('0x17')](){const {locale:_0x556c19}=this,_0x3b4282=this[_0xdf91('0x22')][_0xdf91('0x1a')][_0xdf91('0x12')](0x0);_0x3b4282===this[_0xdf91('0x19')]||_0x3b4282[_0xdf91('0x6')]||(this['_boundFirstCommentView']=_0x3b4282,this[_0xdf91('0xe')](_0xdf91('0x15')),this[_0xdf91('0x14')](_0xdf91('0x15'))['to'](_0x3b4282,_0xdf91('0x15'),_0x3df72d=>_0xdf91('0x33')===_0x3df72d?'remove':null),_0x3b4282[_0xdf91('0x7')]=_0x2bd97c(_0x556c19,_0xdf91('0x0')),_0x3b4282[_0xdf91('0x1f')]['on'](_0xdf91('0x36'),_0x8815e7=>{_0x8815e7['stop'](),this[_0xdf91('0xb')](_0x2bd97c(_0x556c19,_0xdf91('0x24')),this['containerElement'])[_0xdf91('0x26')](()=>{this[_0xdf91('0x2f')]('removeCommentThread');});},{'priority':_0xdf91('0x9')}),_0x3b4282[_0xdf91('0x3d')]['add'](this[_0xdf91('0x11')],0x0));}['_createResolveButton'](){const _0x3bfffc=new _0x5013f9(this[_0xdf91('0xc')]);return _0x3bfffc[_0xdf91('0x29')]=_0x2bd97c(this['locale'],'Resolve'),_0x3bfffc[_0xdf91('0x5')]=_0x2bd97c(this[_0xdf91('0xc')],_0xdf91('0x28')),_0x3bfffc['icon']=_0x4ecac7[_0xdf91('0x20')],_0x3bfffc[_0xdf91('0xa')]({'attributes':{'class':_0xdf91('0x1')}}),_0x3bfffc[_0xdf91('0x14')]('isEnabled')['to'](this[_0xdf91('0x37')],_0xdf91('0x4'),_0x4c156b=>!_0x4c156b),_0x3bfffc[_0xdf91('0x14')]('isVisible')['to'](this[_0xdf91('0x37')],'isResolvable',this[_0xdf91('0x37')],'isResolved',(_0x324a6d,_0x3909d0)=>_0x324a6d&&!_0x3909d0),_0x3bfffc['on']('execute',()=>{this[_0xdf91('0x2f')](_0xdf91('0x2'),this[_0xdf91('0x37')]['id']);}),_0x3bfffc;}}
|