@ckeditor/ckeditor5-comments 35.3.0 → 35.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/comments.js +1 -1
- package/package.json +3 -3
- package/src/annotations/annotation.js +1 -1
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.js +1 -1
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/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/commentslistview.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 _0x5dac=['addCommentThread','addComment','activeMarker','comment:','focus','commands','execute','focusTracker','from','isEnabled','hasMarkerForId','_createUIButton','map','view','editing','highest','length','requires','hasCommentThread','init','comment','editor','getAllMarkersForId','CommentsUI','_threadToController','find','model','low','_viewToController','innerView','change:activeAnnotations','get','plugins','push','componentFactory','icon','listenTo','CommentsListView','bind','CommentThreadInputView','stop','locale','removeCommentThread','addSourceCollector','isFocused','label'];(function(_0x5975e0,_0x5dac8b){const _0x4fc9c4=function(_0x51d097){while(--_0x51d097){_0x5975e0['push'](_0x5975e0['shift']());}};_0x4fc9c4(++_0x5dac8b);}(_0x5dac,0x7b));const _0x4fc9=function(_0x5975e0,_0x5dac8b){_0x5975e0=_0x5975e0-0x0;let _0x4fc9c4=_0x5dac[_0x5975e0];return _0x4fc9c4;};import{Plugin as _0x291863}from'ckeditor5/src/core';import _0x131fce from'./commentsrepository';import _0x557d2e from'./commentsediting';import _0x1a3fc3 from'../annotations/editorannotations';import{ButtonView as _0x321017}from'ckeditor5/src/ui';import _0x1a7b79 from'../../theme/icons/add-comment.svg';import _0x4f46e7 from'../annotations/annotations';import _0x1cc47c from'./ui/view/commentslistview';import _0x20145b from'./ui/view/commentthreadinputview';import{getTranslation as _0x4a1603}from'../utils/common-translations';export default class n extends _0x291863{static get['pluginName'](){return _0x4fc9('0x26');}static get[_0x4fc9('0x20')](){return[_0x131fce,_0x557d2e,_0x1a3fc3,_0x4f46e7];}get[_0x4fc9('0x6')](){return _0x1cc47c;}get[_0x4fc9('0x8')](){return _0x20145b;}[_0x4fc9('0x22')](){const _0x430c3d=this[_0x4fc9('0x24')],_0x39531b=_0x430c3d[_0x4fc9('0x1')]['get'](_0x131fce),_0x253aef=_0x430c3d[_0x4fc9('0x1')][_0x4fc9('0x0')](_0x557d2e),_0x3aac97=_0x430c3d[_0x4fc9('0x1')]['get'](_0x4f46e7),_0x58982f=_0x430c3d[_0x4fc9('0x1')][_0x4fc9('0x0')](_0x1a3fc3);_0x430c3d['ui'][_0x4fc9('0x3')]['add'](_0x4fc9('0x23'),()=>this[_0x4fc9('0x1a')]()),_0x58982f[_0x4fc9('0xc')](()=>{const _0x4e02d8=[];for(const [_0x3d6f89,_0x469dc0]of _0x39531b[_0x4fc9('0x27')]){const _0x419d09=_0x253aef[_0x4fc9('0x25')](_0x3d6f89['id']),_0x347f2e=_0x419d09[_0x4fc9('0x1b')](_0x1f708e=>_0x1f708e['getRange']());_0x419d09[_0x4fc9('0x1f')]>0x0&&_0x4e02d8[_0x4fc9('0x2')]([_0x469dc0[_0x4fc9('0x1c')],_0x347f2e]);}return _0x4e02d8;}),this['listenTo'](_0x3aac97,_0x4fc9('0x2d'),(_0x3c1bb5,_0x2071ba,_0x43f1d8)=>{const _0x49fd48=Array[_0x4fc9('0x17')](_0x43f1d8)[_0x4fc9('0x1b')](_0x41eddc=>_0x41eddc[_0x4fc9('0x2c')])[_0x4fc9('0x28')](_0x4eef50=>_0x39531b[_0x4fc9('0x2b')]['has'](_0x4eef50));if(!_0x49fd48)return void(_0x253aef[_0x4fc9('0x11')]=null);const _0x597460=_0x39531b['_viewToController'][_0x4fc9('0x0')](_0x49fd48)[_0x4fc9('0x29')]['id'],_0x34c85a=_0x4fc9('0x12')+_0x597460;_0x253aef[_0x4fc9('0x19')](_0x597460)?_0x253aef['activeMarker']=_0x34c85a:_0x253aef[_0x4fc9('0x11')]&&(_0x253aef[_0x4fc9('0x11')]=null);}),this[_0x4fc9('0x5')](_0x39531b,_0x4fc9('0xb'),(_0x10506b,{threadId:_0x14b308,isFromAdapter:_0x48bfa3})=>{!_0x48bfa3&&_0x430c3d['ui'][_0x4fc9('0x16')][_0x4fc9('0xd')]&&_0x253aef['hasMarkerForId'](_0x14b308)&&_0x430c3d['editing'][_0x4fc9('0x1c')]['focus']();},{'priority':_0x4fc9('0x1e')}),this[_0x4fc9('0x5')](_0x39531b,_0x4fc9('0x10'),(_0x1f1055,{threadId:_0x5e6a7b,isFromAdapter:_0x5be7af})=>{if(_0x5be7af||!_0x253aef[_0x4fc9('0x19')](_0x5e6a7b)||!_0x39531b[_0x4fc9('0x21')](_0x5e6a7b))return;0x1===_0x39531b['getCommentThread'](_0x5e6a7b)['length']&&(_0x430c3d[_0x4fc9('0x1d')][_0x4fc9('0x1c')][_0x4fc9('0x13')](),_0x1f1055[_0x4fc9('0x9')]());},{'priority':_0x4fc9('0x2a')});}[_0x4fc9('0x1a')](){const _0xd2bd12=this[_0x4fc9('0x24')],_0x2c3f22=new _0x321017(_0xd2bd12[_0x4fc9('0xa')]),_0x5a2739=_0xd2bd12[_0x4fc9('0x14')][_0x4fc9('0x0')](_0x4fc9('0xf'));return _0x2c3f22[_0x4fc9('0xe')]=_0x4a1603(_0xd2bd12['locale'],'Comment'),_0x2c3f22['tooltip']=_0x4a1603(_0xd2bd12[_0x4fc9('0xa')],'Comment'),_0x2c3f22[_0x4fc9('0x4')]=_0x1a7b79,_0x2c3f22[_0x4fc9('0x7')](_0x4fc9('0x18'))['to'](_0x5a2739),this[_0x4fc9('0x5')](_0x2c3f22,_0x4fc9('0x15'),()=>_0x5a2739[_0x4fc9('0x15')]()),_0x2c3f22;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2445=['get','addCommentThread','RestrictedEditingModeEditing','plugins','afterInit','has'];(function(_0x5e9a77,_0x244551){const _0x1e08a8=function(_0x416fd3){while(--_0x416fd3){_0x5e9a77['push'](_0x5e9a77['shift']());}};_0x1e08a8(++_0x244551);}(_0x2445,0x1f1));const _0x1e08=function(_0x5e9a77,_0x244551){_0x5e9a77=_0x5e9a77-0x0;let _0x1e08a8=_0x2445[_0x5e9a77];return _0x1e08a8;};import{Plugin as _0x4af148}from'ckeditor5/src/core';export default class g extends _0x4af148{[_0x1e08('0x5')](){const _0x42e4f8=this['editor'];if(!_0x42e4f8[_0x1e08('0x4')][_0x1e08('0x0')](_0x1e08('0x3')))return;_0x42e4f8[_0x1e08('0x4')][_0x1e08('0x1')]('RestrictedEditingModeEditing')['enableCommand'](_0x1e08('0x2'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d98=['listenTo','afterInit','get','dataInsert','Users','commands','collaboration.channelId','config','importWord','plugins','_handleImportedData','editor','forEach'];(function(_0x314220,_0x1d98b5){const _0x389ed7=function(_0x580ec1){while(--_0x580ec1){_0x314220['push'](_0x314220['shift']());}};_0x389ed7(++_0x1d98b5);}(_0x1d98,0x133));const _0x389e=function(_0x314220,_0x1d98b5){_0x314220=_0x314220-0x0;let _0x389ed7=_0x1d98[_0x314220];return _0x389ed7;};import{Plugin as _0x386374}from'ckeditor5/src/core';import{priorities as _0x311256}from'ckeditor5/src/utils';import _0x3aafef from'../commentsrepository';export default class k extends _0x386374{[_0x389e('0x6')](){const _0x5e05b7=this[_0x389e('0x3')],_0x112daa=_0x5e05b7[_0x389e('0xa')][_0x389e('0x7')]('importWord'),_0x57d1f1=_0x5e05b7[_0x389e('0x1')]['get'](_0x389e('0x9'));_0x112daa&&(_0x112daa['on']('execute',(_0x12dd6e,[,_0x339b9c])=>{_0x339b9c['collaboration_features']={'comments':!0x0,'user_id':_0x57d1f1['me']['id']};},{'priority':_0x311256['high']+0xa}),this[_0x389e('0x5')](_0x112daa,_0x389e('0x8'),this[_0x389e('0x2')]));}[_0x389e('0x2')](_0x292403,_0x4e0572){const {comment_threads:_0x5bda46}=_0x4e0572;_0x5bda46&&_0x5bda46[_0x389e('0x4')](({thread_id:_0x3c9b91,comments:_0x229ac8})=>{const _0x471941=_0x229ac8['map'](({author:_0x5d858c,content:_0x1c58de,created_at:_0x2b7007})=>({'content':_0x1c58de,'authorId':this['editor'][_0x389e('0x1')][_0x389e('0x7')](_0x389e('0x9'))['me']['id'],'createdAt':new Date(),'attributes':{'@external':{'authorName':_0x5d858c,'createdAt':_0x2b7007?new Date(_0x2b7007):new Date(),'source':_0x389e('0x0')}}})),_0x1f2d48=this[_0x389e('0x3')][_0x389e('0xc')][_0x389e('0x7')](_0x389e('0xb'));this[_0x389e('0x3')][_0x389e('0x1')][_0x389e('0x7')](_0x3aafef)['addCommentThread']({'channelId':_0x1f2d48,'threadId':_0x3c9b91,'comments':_0x471941});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1995=['low','defaultPlugins','childCount','getChild','editing','then','fire','model','placeholderElement','document','initPlugins','getRoot','change:placeholder','create','destroy','focus','end','_updatePlaceholder','plugins','data','change','createRoot','get','view','ready','set','name','setSelection','placeholder'];(function(_0x8ba549,_0x1995f6){const _0x131af7=function(_0x1bf094){while(--_0x1bf094){_0x8ba549['push'](_0x8ba549['shift']());}};_0x131af7(++_0x1995f6);}(_0x1995,0x88));const _0x131a=function(_0x8ba549,_0x1995f6){_0x8ba549=_0x8ba549-0x0;let _0x131af7=_0x1995[_0x8ba549];return _0x131af7;};import{Editor as _0x113dad,DataApiMixin as _0x4a3df4}from'ckeditor5/src/core';import _0x26f2e8 from'./commenteditorui';import{mix as _0x3758eb,ObservableMixin as _0x27307d}from'ckeditor5/src/utils';import{enablePlaceholder as _0x2e17d5,disablePlaceholder as _0x35a94c}from'ckeditor5/src/engine';import{Clipboard as _0x1abc33}from'ckeditor5/src/clipboard';import{Enter as _0x126f6f,ShiftEnter as _0x4334c7}from'ckeditor5/src/enter';import{SelectAll as _0x54bdb1}from'ckeditor5/src/select-all';import{Typing as _0x5bb4c5}from'ckeditor5/src/typing';import{Undo as _0x41d830}from'ckeditor5/src/undo';import{Paragraph as _0x16163c}from'ckeditor5/src/paragraph';export default class Bt extends _0x113dad{constructor(_0x2739ee={}){(_0x2739ee=Object['assign']({},_0x2739ee))[_0x131a('0x1b')]||(_0x2739ee['plugins']=Bt[_0x131a('0xa')]),super(_0x2739ee),this['ui']=new _0x26f2e8(this),this[_0x131a('0x5')](_0x131a('0x8'),''),this[_0x131a('0x10')]['document']['on']('change',()=>this[_0x131a('0x1a')](),{'priority':_0x131a('0x9')}),this['on'](_0x131a('0x15'),()=>this['_updatePlaceholder']()),this[_0x131a('0x10')]['document'][_0x131a('0x1')]();}[_0x131a('0x16')](){const _0x52696a=this['config'][_0x131a('0x2')]('initialData')||'';return this[_0x131a('0x13')]()[_0x131a('0xe')](()=>this['ui']['init']())[_0x131a('0xe')](()=>this[_0x131a('0x1c')]['init'](_0x52696a))['then'](()=>this[_0x131a('0xf')](_0x131a('0x4')));}[_0x131a('0x17')](){return super[_0x131a('0x17')]()[_0x131a('0xe')](()=>this['ui']['destroy']());}[_0x131a('0x18')](){this[_0x131a('0x10')][_0x131a('0x0')](_0x56dd27=>{const _0xe9b935=this['model'][_0x131a('0x12')]['getRoot'](),_0xc3754b=_0xe9b935[_0x131a('0xc')](_0xe9b935['childCount']-0x1);_0x56dd27[_0x131a('0x7')](_0xc3754b,_0x131a('0x19')),this[_0x131a('0xd')]['view'][_0x131a('0x18')]();});}[_0x131a('0x1a')](){const _0x2dd9ff=this[_0x131a('0xd')][_0x131a('0x3')],_0x13d2f7=_0x2dd9ff[_0x131a('0x12')][_0x131a('0x14')](),_0x3907e0=_0x13d2f7[_0x131a('0xc')](0x0);_0x13d2f7[_0x131a('0xb')]>0x1||!_0x3907e0||'p'!=_0x3907e0[_0x131a('0x6')]?this['placeholderElement']&&(_0x35a94c(_0x2dd9ff,this[_0x131a('0x11')]),this[_0x131a('0x11')]=void 0x0):(_0x2e17d5({'view':_0x2dd9ff,'element':_0x3907e0,'text':this[_0x131a('0x8')],'keepOnFocus':!0x0}),this[_0x131a('0x11')]=_0x3907e0);}}_0x3758eb(Bt,_0x27307d),_0x3758eb(Bt,_0x4a3df4),Bt['defaultPlugins']=[_0x1abc33,_0x126f6f,_0x4334c7,_0x54bdb1,_0x5bb4c5,_0x41d830,_0x16163c];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ec6=['getRoot','locale','element','name','init','focusTracker','fire','bind','isFocused','editor','editing','ready','attachDomRoot','setEditableElement','editable','view'];(function(_0x34edc1,_0x5ec661){const _0xccb0d4=function(_0x398200){while(--_0x398200){_0x34edc1['push'](_0x34edc1['shift']());}};_0xccb0d4(++_0x5ec661);}(_0x5ec6,0x142));const _0xccb0=function(_0x34edc1,_0x5ec661){_0x34edc1=_0x34edc1-0x0;let _0xccb0d4=_0x5ec6[_0x34edc1];return _0xccb0d4;};import{EditorUI as _0x1db168}from'ckeditor5/src/core';import _0x29c8de from'./commenteditoruiview';export default class xt extends _0x1db168{constructor(_0x3c2606){super(_0x3c2606),this['view']=new _0x29c8de(_0x3c2606[_0xccb0('0xf')],_0x3c2606[_0xccb0('0x8')][_0xccb0('0xd')]);}get['element'](){return this['view'][_0xccb0('0x0')];}[_0xccb0('0x2')](){const _0x3b0e35=this[_0xccb0('0x7')]['editing'][_0xccb0('0xd')],_0x5e57fd=this['view'][_0xccb0('0xc')],_0x204a5c=_0x3b0e35['document'][_0xccb0('0xe')]();_0x5e57fd[_0xccb0('0x1')]=_0x204a5c['rootName'],this[_0xccb0('0xd')]['render']();const _0xf1307a=_0x5e57fd[_0xccb0('0x0')];this[_0xccb0('0xb')](_0x5e57fd[_0xccb0('0x1')],_0xf1307a),this[_0xccb0('0xd')][_0xccb0('0xc')][_0xccb0('0x5')](_0xccb0('0x6'))['to'](this[_0xccb0('0x3')]),_0x3b0e35[_0xccb0('0xa')](_0xf1307a),this[_0xccb0('0x4')](_0xccb0('0x9'));}['destroy'](){super['destroy'](),this[_0xccb0('0xd')]['destroy']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5150=['add','text','focus','_createVoiceLabel','render','ck-comment__input','div','cke-editor__aria-label_','editable','uiLanguage','ck-editor__main','setTemplate','createCollection','Comment\x20editor','comment','presentation','ck-reset','element'];(function(_0x49d589,_0x5150ac){const _0x19fddf=function(_0xa465ca){while(--_0xa465ca){_0x49d589['push'](_0x49d589['shift']());}};_0x19fddf(++_0x5150ac);}(_0x5150,0x19a));const _0x19fd=function(_0x49d589,_0x5150ac){_0x49d589=_0x49d589-0x0;let _0x19fddf=_0x5150[_0x49d589];return _0x19fddf;};import{InlineEditableUIView as _0x25f511,EditorUIView as _0x2cdb2c,LabelView as _0x2ad32d}from'ckeditor5/src/ui';import{uid as _0x4adfb5}from'ckeditor5/src/utils';import{getTranslation as _0x5b6fd2}from'../../../utils/common-translations';export default class Et extends _0x2cdb2c{constructor(_0x2b5aca,_0x3818dc){super(_0x2b5aca);const _0x411c7f=_0x4adfb5();this['main']=this[_0x19fd('0x10')](),this[_0x19fd('0xc')]=new _0x25f511(_0x2b5aca,_0x3818dc),this['_voiceLabelView']=this[_0x19fd('0x7')](_0x411c7f,_0x2b5aca),this[_0x19fd('0xf')]({'tag':_0x19fd('0xa'),'attributes':{'class':[_0x19fd('0x2'),'ck-editor','ck-rounded-corners',_0x19fd('0x9')],'role':_0x19fd('0x0'),'dir':_0x2b5aca['uiLanguageDirection'],'lang':_0x2b5aca[_0x19fd('0xd')],'aria-labelledby':_0x19fd('0xb')+_0x411c7f},'children':[this['_voiceLabelView'],{'tag':'div','attributes':{'class':_0x19fd('0xe'),'role':_0x19fd('0x1')},'children':this['main']}]});}['render'](){super[_0x19fd('0x8')](),this['main'][_0x19fd('0x4')](this[_0x19fd('0xc')]);}[_0x19fd('0x6')](){this['editable'][_0x19fd('0x3')]['focus']();}[_0x19fd('0x7')](_0x114fbf,_0x32c9d5){const _0x39a4a3=new _0x2ad32d();return _0x39a4a3[_0x19fd('0x5')]=_0x5b6fd2(_0x32c9d5,_0x19fd('0x11')),_0x39a4a3['extendTemplate']({'attributes':{'id':'ck-editor__aria-label_'+_0x114fbf,'class':'ck-voice-label'}}),_0x39a4a3;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x11f3=['removeComment','view','getComment','_localUser','_isAttached','remove','updateComment','model','listenTo','addComment','stopListening','update'];(function(_0x4b92a0,_0x11f393){var _0x4259b4=function(_0x3d385e){while(--_0x3d385e){_0x4b92a0['push'](_0x4b92a0['shift']());}};_0x4259b4(++_0x11f393);}(_0x11f3,0x1a1));var _0x4259=function(_0x4b92a0,_0x11f393){_0x4b92a0=_0x4b92a0-0x0;var _0x4259b4=_0x11f3[_0x4b92a0];return _0x4259b4;};import{ObservableMixin as _0x1ee7f2,mix as _0x2696b3}from'ckeditor5/src/utils';export default class F{constructor(_0x2af210,_0x2fde43){this['model']=_0x2af210,this['model']['_isAttached']=!0x0,this[_0x4259('0x4')]=_0x2fde43,this['listenTo'](_0x2fde43,'removeCommentThread',()=>this[_0x4259('0x8')]()),this[_0x4259('0xb')](_0x2fde43,_0x4259('0x0'),(_0x4fc086,_0x3e13a1)=>this[_0x4259('0x0')](_0x3e13a1)),this[_0x4259('0xb')](_0x2fde43,_0x4259('0x9'),(_0x5968aa,_0x525394,_0x2fc5f7)=>this[_0x4259('0x9')](_0x525394,_0x2fc5f7)),this[_0x4259('0xb')](_0x2fde43,_0x4259('0x3'),(_0x4694bf,_0x5ecd6c)=>this[_0x4259('0x3')](_0x5ecd6c));}['remove'](){this[_0x4259('0xa')]['remove']();}['addComment'](_0x5edac1){this[_0x4259('0xa')][_0x4259('0x0')]({'content':_0x5edac1,'authorId':this[_0x4259('0x4')][_0x4259('0x6')]['id']});}['updateComment'](_0x4a9edb,_0x5ec77b){this[_0x4259('0xa')][_0x4259('0x5')](_0x4a9edb)[_0x4259('0x2')]({'content':_0x5ec77b});}[_0x4259('0x3')](_0x2a38b8){this[_0x4259('0xa')][_0x4259('0x5')](_0x2a38b8)[_0x4259('0x8')]();}['destroy'](){this[_0x4259('0x1')](),this['model'][_0x4259('0x7')]=!0x1;}}_0x2696b3(F,_0x1ee7f2);
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ad8=['removeCommentThread','commentThreadInputView','isDirty','bind','disabledSubmit','focus','length','isActive','commentsListView','Reply...','fire','_createCommentThreadInputView','assign','Write\x20a\x20comment...','cancel','_config','addComment','change:isActive','value','set','updateComment','hasDirtyComment','placeholder','locale','_model','removeComment','commentInputView','isReadOnly','destroy','_localUser','delegate','element'];(function(_0x325bfd,_0x5ad8cf){const _0x1e28b4=function(_0x1e21dc){while(--_0x1e21dc){_0x325bfd['push'](_0x325bfd['shift']());}};_0x1e28b4(++_0x5ad8cf);}(_0x5ad8,0x137));const _0x1e28=function(_0x325bfd,_0x5ad8cf){_0x325bfd=_0x325bfd-0x0;let _0x1e28b4=_0x5ad8[_0x325bfd];return _0x1e28b4;};import{View as _0x4978e7}from'ckeditor5/src/ui';import _0x49f849 from'./commentthreadinputview';import _0x2b73e5 from'./commentslistview';import{getTranslation as _0x241b9f}from'../../../utils/common-translations';export default class Rt extends _0x4978e7{constructor(_0x13673f,_0x5492e7,_0x3240d6,_0x3a25c6){super(_0x13673f),this[_0x1e28('0x1c')](_0x1e28('0x10'),!0x1),this[_0x1e28('0x1c')]('isDirty',!0x1),this[_0x1e28('0x1')]=_0x5492e7,this[_0x1e28('0x6')]=_0x3240d6,this[_0x1e28('0x18')]=_0x3a25c6,this[_0x1e28('0x11')]=new _0x2b73e5(_0x13673f,_0x5492e7,Object[_0x1e28('0x15')]({'CommentView':this[_0x1e28('0x18')]['CommentView']},_0x3a25c6)),this['commentsListView'][_0x1e28('0x7')]('removeComment')['to'](this),this[_0x1e28('0x11')][_0x1e28('0x7')](_0x1e28('0x1d'))['to'](this),this['commentsListView'][_0x1e28('0xc')]('isActive')['to'](this),this[_0x1e28('0x1c')](_0x1e28('0xf'),this[_0x1e28('0x11')]['length']),this[_0x1e28('0xc')](_0x1e28('0xf'))['to'](this['commentsListView'],_0x1e28('0xf')),this[_0x1e28('0xa')]=this[_0x1e28('0x14')](),this['on'](_0x1e28('0x2'),()=>this[_0x1e28('0xe')]()),this[_0x1e28('0xc')](_0x1e28('0xb'))['to'](this[_0x1e28('0x11')],_0x1e28('0x1e'),this[_0x1e28('0xa')][_0x1e28('0x3')],_0x1e28('0x1b'),(_0x4b9dcf,_0x1974fb)=>_0x4b9dcf||!!_0x1974fb);}[_0x1e28('0xe')](){this[_0x1e28('0x8')][_0x1e28('0xe')]();}[_0x1e28('0x5')](){this[_0x1e28('0xb')]=!0x1,this[_0x1e28('0x11')][_0x1e28('0x5')](),this[_0x1e28('0xa')][_0x1e28('0x5')](),super[_0x1e28('0x5')]();}['_createCommentThreadInputView'](){const _0x5e2253=new _0x49f849(this[_0x1e28('0x0')],this[_0x1e28('0x6')],this[_0x1e28('0x18')]['editorConfig']),_0x3c8de1=_0x5e2253[_0x1e28('0x3')];return _0x5e2253['bind']('showInput')['to'](this,_0x1e28('0x10'),this[_0x1e28('0x1')],_0x1e28('0x4'),_0x3c8de1,_0x1e28('0x1b'),(_0x1e1870,_0x5035f3,_0x305a77)=>!!_0x305a77||_0x1e1870&&!_0x5035f3),_0x3c8de1[_0x1e28('0xc')](_0x1e28('0x1f'))['to'](this,_0x1e28('0xf'),_0x9477ea=>_0x241b9f(this[_0x1e28('0x0')],_0x9477ea?_0x1e28('0x12'):_0x1e28('0x16'))),_0x3c8de1['on']('submit',(_0x4508f0,_0x593f16)=>{this['fire'](_0x1e28('0x19'),_0x593f16);}),_0x3c8de1['on'](_0x1e28('0x17'),()=>{this[_0x1e28('0xe')]();}),_0x3c8de1[_0x1e28('0xc')](_0x1e28('0xd'))['to'](this[_0x1e28('0x1')],_0x1e28('0x4')),_0x3c8de1['on'](_0x1e28('0x17'),_0x2e23e5=>{0x0==this[_0x1e28('0xf')]&&(this['fire'](_0x1e28('0x9')),_0x2e23e5['stop']());}),this['on'](_0x1e28('0x1a'),(_0x16581b,_0x2137e9,_0x43878c)=>{_0x43878c||this[_0x1e28('0xf')]||_0x3c8de1[_0x1e28('0x1b')]||this[_0x1e28('0x13')]('removeCommentThread');}),_0x5e2253;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x96ff=['collapse','locale','destroy','visibleView','_createCommentInputView','updateComment','_createCommentContentView','focus','add','isEditMode','_config','once','initialData','submit','createCollection','switchToDisplayMode','fire','editorConfig','element','_model','bind','isCollapsed','cancel','createEditor','get','editorReady','set','remove','isReadOnly','content','switchToEditMode','value','expand'];(function(_0x4d9936,_0x96ff5e){const _0x4c14a6=function(_0x216db2){while(--_0x216db2){_0x4d9936['push'](_0x4d9936['shift']());}};_0x4c14a6(++_0x96ff5e);}(_0x96ff,0x1aa));const _0x4c14=function(_0x4d9936,_0x96ff5e){_0x4d9936=_0x4d9936-0x0;let _0x4c14a6=_0x96ff[_0x4d9936];return _0x4c14a6;};import{View as _0x3f8142}from'ckeditor5/src/ui';import{trimHtml as _0x4ce504}from'ckeditor5-collaboration/src/collaboration-core';import _0x55dfe4 from'./commentcontentview';import _0x535600 from'./commentinputview';export default class St extends _0x3f8142{constructor(_0x32e1aa,_0x45bd6c,_0x278848){super(_0x32e1aa),this[_0x4c14('0x16')]=_0x45bd6c,this[_0x4c14('0xd')]=_0x278848,this[_0x4c14('0x1d')](_0x4c14('0xc'),!0x1),this[_0x4c14('0x1d')](_0x4c14('0x18'),!0x0),this[_0x4c14('0x6')]=this[_0x4c14('0x11')](),this[_0x4c14('0x6')][_0x4c14('0xb')](this[_0x4c14('0x9')]());}[_0x4c14('0x2')](){this[_0x4c14('0x18')]=!0x1;}[_0x4c14('0x3')](){this['isEditMode']||(this[_0x4c14('0x18')]=!0x0);}[_0x4c14('0xa')](){this[_0x4c14('0x15')][_0x4c14('0xa')]();}async[_0x4c14('0x5')](){await this['visibleView'][_0x4c14('0x1b')](0x0)[_0x4c14('0x5')](),super[_0x4c14('0x5')]();}[_0x4c14('0x0')](){this[_0x4c14('0xc')]||(this[_0x4c14('0xc')]=!0x0,this[_0x4c14('0x6')][_0x4c14('0x1e')](0x0)[_0x4c14('0x5')](),this[_0x4c14('0x6')][_0x4c14('0xb')](this['_createCommentInputView']()));}[_0x4c14('0x12')](){this[_0x4c14('0xc')]&&(this['isEditMode']=!0x1,this[_0x4c14('0x6')][_0x4c14('0x1e')](0x0)['destroy'](),this['visibleView'][_0x4c14('0xb')](this[_0x4c14('0x9')]()));}[_0x4c14('0x9')](){const _0x27e92d=new _0x55dfe4(this[_0x4c14('0x4')]);return _0x27e92d['bind'](_0x4c14('0x20'))['to'](this[_0x4c14('0x16')],_0x4c14('0x20'),this,_0x4c14('0x18'),(_0x286ba1,_0x49ac71)=>_0x49ac71?_0x4ce504(_0x286ba1,{'limit':this[_0x4c14('0xd')]['maxCommentCharsWhenCollapsed']}):_0x286ba1),_0x27e92d;}[_0x4c14('0x7')](){this[_0x4c14('0xd')][_0x4c14('0x14')]||(this[_0x4c14('0xd')][_0x4c14('0x14')]={}),this[_0x4c14('0xd')][_0x4c14('0x14')][_0x4c14('0xf')]=this[_0x4c14('0x16')]['content'];const _0x59c20d=new _0x535600(this[_0x4c14('0x4')],this[_0x4c14('0xd')][_0x4c14('0x14')]);return _0x59c20d[_0x4c14('0x1')]=this[_0x4c14('0x16')][_0x4c14('0x20')],_0x59c20d[_0x4c14('0x17')]('disabledSubmit')['to'](this[_0x4c14('0x16')],_0x4c14('0x1f')),_0x59c20d['on'](_0x4c14('0x10'),(_0x494d98,_0x955416)=>{this[_0x4c14('0x13')](_0x4c14('0x8'),this[_0x4c14('0x16')]['id'],_0x955416),this[_0x4c14('0x12')](),this[_0x4c14('0xa')]();}),_0x59c20d['on'](_0x4c14('0x19'),()=>{this[_0x4c14('0x12')](),this[_0x4c14('0xa')]();}),_0x59c20d[_0x4c14('0xe')](_0x4c14('0x1c'),()=>{_0x59c20d['focus']();}),_0x59c20d[_0x4c14('0x1a')](),_0x59c20d;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x44c6=['setTemplate','ck-thread__comment-count','set','count','bindTemplate','NUMBER_OF_COMMENTS'];(function(_0x18b1c,_0x44c670){const _0x47cbb8=function(_0x57f4aa){while(--_0x57f4aa){_0x18b1c['push'](_0x18b1c['shift']());}};_0x47cbb8(++_0x44c670);}(_0x44c6,0x64));const _0x47cb=function(_0x18b1c,_0x44c670){_0x18b1c=_0x18b1c-0x0;let _0x47cbb8=_0x44c6[_0x18b1c];return _0x47cbb8;};import{View as _0x4b9f4e}from'ckeditor5/src/ui';import{getTranslation as _0x554781}from'../../../utils/common-translations';export default class Nt extends _0x4b9f4e{constructor(_0xfc531f){super(_0xfc531f);const _0x379e84=this[_0x47cb('0x0')];this[_0x47cb('0x4')]('count'),this[_0x47cb('0x2')]({'tag':'li','attributes':{'class':_0x47cb('0x3')},'children':[{'text':_0x379e84['to'](_0x47cb('0x5'),_0x15f5c8=>_0x554781(_0xfc531f,_0x47cb('0x1'),_0x15f5c8))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2136=['div','innerHTML','set','ck-comment__content','change:content','element','content','render','ck-annotation__content','setTemplate'];(function(_0x4b5dbd,_0x213680){var _0x2c5b2a=function(_0xe57c15){while(--_0xe57c15){_0x4b5dbd['push'](_0x4b5dbd['shift']());}};_0x2c5b2a(++_0x213680);}(_0x2136,0x1a0));var _0x2c5b=function(_0x4b5dbd,_0x213680){_0x4b5dbd=_0x4b5dbd-0x0;var _0x2c5b2a=_0x2136[_0x4b5dbd];return _0x2c5b2a;};import{View as _0x7bdeb1}from'ckeditor5/src/ui';export default class Tt extends _0x7bdeb1{constructor(_0x3d9eaf){super(_0x3d9eaf),this[_0x2c5b('0x6')](_0x2c5b('0x0'),''),this[_0x2c5b('0x3')]({'tag':_0x2c5b('0x4'),'attributes':{'class':[_0x2c5b('0x7'),_0x2c5b('0x2')]}});}[_0x2c5b('0x1')](){super[_0x2c5b('0x1')](),this['on'](_0x2c5b('0x8'),(_0xe3879,_0x2c3b3d,_0x43616a)=>{this[_0x2c5b('0x9')][_0x2c5b('0x5')]=_0x43616a;}),this['element'][_0x2c5b('0x5')]=this[_0x2c5b('0x0')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4156=['set','element','_initializeFocusCycling','forEach','ck-comment__input-actions--submit','Esc','ck-comment__input-actions--active','isEnabled','keystrokes','Submit','ck-comment__input-wrapper','_isDestroyed','div','ck-comment__input-actions--cancel','create','submitButtonView','_createSubmitButton','Reply...','focusPrevious','_editorCreationPromise','render','createEditor','check','disabledSubmit','destroy','focusNext','listenTo','then','extendTemplate','_editorConfig','_createCancelButton','add','TOO_LONG_COMMENT_ALERT','execute','bind','focusTracker','shift\x20+\x20tab','high','change','focus','insertBefore','firstChild','cancelButtonView','label','stop','value','icon','document','model','initialData','cancel','trim','showButtons','editorReady','ck-comment__input-actions','editor','placeholder','length','submit','Cancel','fire','setData','bindTemplate'];(function(_0x5cd8f1,_0x415667){const _0x2553f1=function(_0x378620){while(--_0x378620){_0x5cd8f1['push'](_0x5cd8f1['shift']());}};_0x2553f1(++_0x415667);}(_0x4156,0x1ea));const _0x2553=function(_0x5cd8f1,_0x415667){_0x5cd8f1=_0x5cd8f1-0x0;let _0x2553f1=_0x4156[_0x5cd8f1];return _0x2553f1;};import{View as _0x3f3a53,ViewCollection as _0x4b824d,FocusCycler as _0x3547e1,ButtonView as _0x1daf31}from'ckeditor5/src/ui';import{FocusTracker as _0x1efc86,KeystrokeHandler as _0x421ef0}from'ckeditor5/src/utils';import{icons as _0x48d3d7}from'ckeditor5/src/core';import _0x273c84 from'../commenteditor/commenteditor';import{getTranslation as _0x28698e}from'../../../utils/common-translations';export default class It extends _0x3f3a53{constructor(_0x35a66f,_0x5015c4={}){super(_0x35a66f),this[_0x2553('0x6')]=null,this[_0x2553('0x2b')]=_0x5015c4,this[_0x2553('0x16')]=new _0x421ef0(),this[_0x2553('0x31')]=new _0x1efc86(),this[_0x2553('0xe')](_0x2553('0x3b'),_0x5015c4[_0x2553('0x0')]||''),this[_0x2553('0xe')](_0x2553('0x25'),!0x1),this[_0x2553('0xe')](_0x2553('0x3'),!0x0),this['set'](_0x2553('0x7'),_0x28698e(_0x35a66f,_0x2553('0x1f'))),this[_0x2553('0x1d')]=this[_0x2553('0x1e')](),this[_0x2553('0x38')]=this[_0x2553('0x2c')](),this['setTemplate']({'tag':_0x2553('0x1a'),'attributes':{'class':[_0x2553('0x18')]},'children':[{'tag':_0x2553('0x1a'),'attributes':{'class':[_0x2553('0x5'),this[_0x2553('0xd')]['if'](_0x2553('0x3'),_0x2553('0x14'))]},'children':[this[_0x2553('0x1d')],this['cancelButtonView']]}]}),this[_0x2553('0x16')][_0x2553('0xe')](_0x2553('0x13'),(_0x5ca327,_0x285400)=>{this[_0x2553('0x38')][_0x2553('0xb')](_0x2553('0x2f')),_0x285400();}),this['on']('submit',(_0x12b0b3,_0x1a3b3e)=>{_0x1a3b3e[_0x2553('0x8')]>0xfde8?(alert(_0x28698e(_0x35a66f,_0x2553('0x2e'),[_0x1a3b3e[_0x2553('0x8')],0xfde8])),_0x12b0b3[_0x2553('0x3a')]()):this[_0x2553('0x6')][_0x2553('0xc')]('');},{'priority':_0x2553('0x33')});}[_0x2553('0x22')](){super['render'](),this['keystrokes'][_0x2553('0x28')](this['element']),this['focusTracker'][_0x2553('0x2d')](this[_0x2553('0xf')]);}[_0x2553('0x23')](){return this[_0x2553('0x6')]||(this['editor']=new _0x273c84(this[_0x2553('0x2b')]),this[_0x2553('0x21')]=this[_0x2553('0x6')][_0x2553('0x1c')]()[_0x2553('0x29')](()=>{this[_0x2553('0x19')]||(this[_0x2553('0xf')][_0x2553('0x36')](this[_0x2553('0x6')]['ui'][_0x2553('0xf')],this['element'][_0x2553('0x37')]),this[_0x2553('0x6')][_0x2553('0x3e')][_0x2553('0x3d')]['on'](_0x2553('0x34'),()=>this[_0x2553('0x3b')]=this[_0x2553('0x6')]['getData']()),this['editor']['bind'](_0x2553('0x7'))['to'](this),this[_0x2553('0x10')](this[_0x2553('0x6')]),this[_0x2553('0xb')](_0x2553('0x4')));})),this[_0x2553('0x21')];}['focus'](){this[_0x2553('0x6')]&&this[_0x2553('0x6')][_0x2553('0x35')]();}async[_0x2553('0x26')](){this[_0x2553('0x19')]||(this[_0x2553('0x19')]=!0x0,this['editor']&&(await this[_0x2553('0x21')],await this['editor'][_0x2553('0x26')]()),await super['destroy']());}[_0x2553('0x1e')](){const {locale:_0x4c0825}=this,_0x3967c5=new _0x1daf31(_0x4c0825);return _0x3967c5[_0x2553('0x2a')]({'attributes':{'class':[_0x2553('0x12')]}}),_0x3967c5['label']=_0x28698e(_0x4c0825,_0x2553('0x17')),_0x3967c5[_0x2553('0x3c')]=_0x48d3d7[_0x2553('0x24')],_0x3967c5['on'](_0x2553('0x2f'),()=>{this[_0x2553('0xb')](_0x2553('0x9'),this[_0x2553('0x3b')]);}),_0x3967c5[_0x2553('0x30')](_0x2553('0x15'))['to'](this,'value',this,'disabledSubmit',(_0x45a108,_0x22b3ef)=>!_0x22b3ef&&!!_0x45a108[_0x2553('0x2')]()),_0x3967c5;}['_createCancelButton'](){const {locale:_0x52d27b}=this,_0x3f55f6=new _0x1daf31(_0x52d27b);return _0x3f55f6[_0x2553('0x2a')]({'attributes':{'class':[_0x2553('0x1b')]}}),_0x3f55f6[_0x2553('0x39')]=_0x28698e(_0x52d27b,_0x2553('0xa')),_0x3f55f6[_0x2553('0x3c')]=_0x48d3d7['cancel'],_0x3f55f6['on'](_0x2553('0x2f'),()=>{this[_0x2553('0x6')][_0x2553('0xc')](''),this[_0x2553('0xb')](_0x2553('0x1'));}),_0x3f55f6;}[_0x2553('0x10')](_0x22f4c3){const _0x2decd4=this[_0x2553('0x31')],_0x57c34f=new _0x4b824d();[_0x22f4c3['ui']['view'],this[_0x2553('0x1d')],this[_0x2553('0x38')]][_0x2553('0x11')](_0x221668=>{_0x57c34f[_0x2553('0x2d')](_0x221668),_0x2decd4[_0x2553('0x2d')](_0x221668[_0x2553('0xf')]);});const _0x2d0153=new _0x3547e1({'focusables':_0x57c34f,'focusTracker':_0x2decd4});this[_0x2553('0x16')][_0x2553('0xe')]('tab',(_0x473326,_0x57d4a1)=>{_0x2d0153[_0x2553('0x27')](),_0x57d4a1();},{'priority':'low'}),this['keystrokes'][_0x2553('0xe')](_0x2553('0x32'),(_0x448256,_0x3200de)=>{_0x2d0153[_0x2553('0x20')](),_0x3200de();},{'priority':'low'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e16=['remove','_handleRemoveCommentModel','_config','hasDirtyComment','get','ck-thread__comments','setTemplate','updateComment','createCollection','from','collapse','delegate','isEditMode','delete','isActive','removeComment','focus','_shouldCollapse','expand','_handleNewCommentModel','commentUpdated','comments','stopListening','_rearrangeCollapse','_rearrangeExpand','destroy','CommentView','visibleViews','insert','change:hasDirtyComment','locale','editorConfig','maxCommentsWhenCollapsed','_updateHasDirtyComment','add','_collapsedCommentsView','commentViews','maxCommentCharsWhenCollapsed','change:isActive','length','bind','count','render','refreshVisibleViews','listenTo','formatDateTime'];(function(_0x13d1f2,_0x2e160e){const _0x2a5c4b=function(_0x109bb4){while(--_0x109bb4){_0x13d1f2['push'](_0x13d1f2['shift']());}};_0x2a5c4b(++_0x2e160e);}(_0x2e16,0xb7));const _0x2a5c=function(_0x13d1f2,_0x2e160e){_0x13d1f2=_0x13d1f2-0x0;let _0x2a5c4b=_0x2e16[_0x13d1f2];return _0x2a5c4b;};import{View as _0x7bcbac}from'ckeditor5/src/ui';import{diff as _0x1d9c76,Collection as _0x121559}from'ckeditor5/src/utils';import _0x475160 from'./collapsedcommentsview';export default class L extends _0x7bcbac{constructor(_0x39d15c,_0x419392,_0xc31500){super(_0x39d15c),this['set']('hasDirtyComment',!0x1),this['set'](_0x2a5c('0x28'),_0x419392['comments'][_0x2a5c('0x28')]),this['set']('isActive',!0x1),this['_model']=_0x419392,this['_config']=_0xc31500,this['commentViews']=this['createCollection'](),this['visibleViews']=this[_0x2a5c('0x9')](),this[_0x2a5c('0x24')]=new _0x475160(_0x39d15c),this[_0x2a5c('0x24')][_0x2a5c('0x29')](_0x2a5c('0x2a'))['to'](this,'length',_0x419918=>_0x419918-this['_config'][_0x2a5c('0x21')]);for(const _0x2f3b25 of _0x419392['comments'])this['_handleNewCommentModel'](_0x2f3b25);this['listenTo'](_0x419392[_0x2a5c('0x16')],_0x2a5c('0x23'),(_0x581256,_0x59b465)=>{this['length']++,this['_handleNewCommentModel'](_0x59b465),this[_0x2a5c('0x2c')]();}),this[_0x2a5c('0x2d')](_0x419392[_0x2a5c('0x16')],'remove',(_0x581a92,_0x499223)=>{this['length']--,this[_0x2a5c('0x2')](_0x499223),this['refreshVisibleViews']();}),this[_0x2a5c('0x2d')](_0x419392,_0x2a5c('0x15'),()=>this[_0x2a5c('0x2c')]()),this['on'](_0x2a5c('0x27'),()=>this[_0x2a5c('0x2c')]()),this['on'](_0x2a5c('0x1e'),()=>this[_0x2a5c('0x2c')]()),this[_0x2a5c('0x7')]({'tag':'ul','attributes':{'class':[_0x2a5c('0x6')]},'children':this[_0x2a5c('0x1c')]});}get['_shouldCollapse'](){return this['_model']['weight']>this[_0x2a5c('0x3')]['maxThreadTotalWeight']&&!this[_0x2a5c('0xf')]&&!this[_0x2a5c('0x4')];}[_0x2a5c('0x2b')](){super[_0x2a5c('0x2b')](),this[_0x2a5c('0x2c')]();}[_0x2a5c('0x11')](){this['element'][_0x2a5c('0x11')]();}['destroy'](){this[_0x2a5c('0x24')][_0x2a5c('0x1a')]();for(const _0x2ff912 of this[_0x2a5c('0x25')])_0x2ff912[_0x2a5c('0x1a')]();super[_0x2a5c('0x1a')]();}[_0x2a5c('0x2c')](){this[_0x2a5c('0x12')]?this[_0x2a5c('0x18')]():this['_rearrangeExpand']();}[_0x2a5c('0x14')](_0x445f5b){const _0x1e8170=new this[(_0x2a5c('0x3'))][(_0x2a5c('0x1b'))](this[_0x2a5c('0x1f')],_0x445f5b,{'maxCommentCharsWhenCollapsed':this[_0x2a5c('0x3')][_0x2a5c('0x26')],'formatDateTime':this[_0x2a5c('0x3')][_0x2a5c('0x0')],'editorConfig':this['_config'][_0x2a5c('0x20')]});_0x1e8170['viewUid']=_0x445f5b['id'],_0x1e8170['delegate'](_0x2a5c('0x10'))['to'](this),_0x1e8170[_0x2a5c('0xc')](_0x2a5c('0x8'))['to'](this),this[_0x2a5c('0x2d')](_0x1e8170,'change:isEditMode',()=>this[_0x2a5c('0x22')]()),this[_0x2a5c('0x25')]['add'](_0x1e8170);}['_handleRemoveCommentModel'](_0x1da5f4){const _0x50f8d8=this[_0x2a5c('0x25')]['remove'](_0x1da5f4['id']);this[_0x2a5c('0x17')](_0x50f8d8),_0x50f8d8[_0x2a5c('0xd')]&&this[_0x2a5c('0x22')](),_0x50f8d8['destroy']();}[_0x2a5c('0x22')](){this[_0x2a5c('0x4')]=Array['from'](this[_0x2a5c('0x25')])['some'](_0x22b7bf=>_0x22b7bf[_0x2a5c('0xd')]);}[_0x2a5c('0x18')](){const _0x4396d0=function(_0x4db576){const _0x3281bf=new _0x121559();for(const _0x41733b of _0x4db576)_0x3281bf[_0x2a5c('0x23')](_0x41733b);return _0x3281bf;}(this[_0x2a5c('0x25')]),_0x16015e=this[_0x2a5c('0x24')][_0x2a5c('0x2a')];for(let _0x16dbb7=0x1;_0x16dbb7<=_0x16015e;_0x16dbb7++)_0x4396d0[_0x2a5c('0x1')](0x1);for(const _0x474a8f of _0x4396d0)_0x474a8f[_0x2a5c('0xb')]();_0x16015e>0x0&&_0x4396d0['add'](this[_0x2a5c('0x24')],0x1),Wt(_0x1d9c76(Array['from'](this[_0x2a5c('0x1c')]),Array[_0x2a5c('0xa')](_0x4396d0)),this[_0x2a5c('0x1c')],_0x4396d0);}[_0x2a5c('0x19')](){Wt(_0x1d9c76(Array[_0x2a5c('0xa')](this['visibleViews']),Array[_0x2a5c('0xa')](this['commentViews'])),this[_0x2a5c('0x1c')],this[_0x2a5c('0x25')]);for(const _0x2b30dd of this[_0x2a5c('0x1c')])_0x2b30dd[_0x2a5c('0x13')]();}}function Wt(_0x497315,_0x1dae37,_0x1d1991){let _0x528677=0x0;for(const _0x2c61ad of _0x497315)switch(_0x2c61ad){case _0x2a5c('0x1d'):_0x1dae37[_0x2a5c('0x23')](_0x1d1991[_0x2a5c('0x5')](_0x528677),_0x528677),_0x528677++;break;case _0x2a5c('0xe'):_0x1dae37[_0x2a5c('0x1')](_0x528677);break;case'equal':_0x528677++;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x25e5=['extendTemplate','change:showInput','commentInputView','editor','userView','focusTracker','setTemplate','destroy','showInput','set','ck-thread__input','value','createEditor','bind','div','bindTemplate','then','ck-thread__user','isFocused'];(function(_0x23045e,_0x25e51b){var _0x3d6bd1=function(_0x4f42a8){while(--_0x4f42a8){_0x23045e['push'](_0x23045e['shift']());}};_0x3d6bd1(++_0x25e51b);}(_0x25e5,0xf7));var _0x3d6b=function(_0x23045e,_0x25e51b){_0x23045e=_0x23045e-0x0;var _0x3d6bd1=_0x25e5[_0x23045e];return _0x3d6bd1;};import{View as _0x337d1}from'ckeditor5/src/ui';import _0x2be87b from'./commentinputview';import{UserView as _0x101e63}from'ckeditor5-collaboration/src/collaboration-core';export default class z extends _0x337d1{constructor(_0x424456,_0x341890,_0x2fede5){super(_0x424456),this['commentInputView']=new _0x2be87b(_0x424456,_0x2fede5),this['commentInputView'][_0x3d6b('0xd')]('showButtons')['to'](this[_0x3d6b('0x2')][_0x3d6b('0x5')],_0x3d6b('0x12'),this[_0x3d6b('0x2')],_0x3d6b('0xb'),(_0x25e10b,_0x52c26c)=>_0x25e10b||!!_0x52c26c),this[_0x3d6b('0x9')](_0x3d6b('0x8'),!0x1),this['on'](_0x3d6b('0x1'),()=>{this[_0x3d6b('0x8')]&&!this['commentInputView'][_0x3d6b('0x3')]&&this[_0x3d6b('0x2')][_0x3d6b('0xc')]();}),this[_0x3d6b('0x4')]=new _0x101e63(_0x424456,_0x341890),this['userView'][_0x3d6b('0x0')]({'attributes':{'class':_0x3d6b('0x11')}}),this[_0x3d6b('0x2')]['extendTemplate']({'attributes':{'class':_0x3d6b('0xa')}}),this[_0x3d6b('0x6')]({'tag':_0x3d6b('0xe'),'attributes':{'class':['ck-comment__input-container',this[_0x3d6b('0xf')]['if'](_0x3d6b('0x8'),'ck-comment__input-container--active')]},'children':[this['userView'],this[_0x3d6b('0x2')]]});}['destroy'](){return this[_0x3d6b('0x2')][_0x3d6b('0x7')]()[_0x3d6b('0x10')](()=>super['destroy']());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x554e=['fire','length','ck-thread--','div','then','showConfirm','Delete\x20comment\x20thread?','ck-thread','change:isReadOnly','Write\x20a\x20comment...','cancelConfirm','actionIndicator','containerElement','ck-thread--active','bindTemplate','commentsListView','removeButton','_boundFirstCommentView','ck-thread--remove-confirmation','listenTo','_cancelAllConfirms','.ck-thread__container','change:isActive','remove','removeCommentThread','add','_model','bind','_bindFirstCommentView','render','unbind','execute','commentViews','set','isActive','high','stop'];(function(_0x22b770,_0x554e2a){const _0x332857=function(_0xfab3e6){while(--_0xfab3e6){_0x22b770['push'](_0x22b770['shift']());}};_0x332857(++_0x554e2a);}(_0x554e,0xf5));const _0x3328=function(_0x22b770,_0x554e2a){_0x22b770=_0x22b770-0x0;let _0x332857=_0x554e[_0x22b770];return _0x332857;};import{mix as _0x20b1dd}from'ckeditor5/src/utils';import{ConfirmMixin as _0x2034bb}from'ckeditor5-collaboration/src/collaboration-core';import _0x2a4bf6 from'./basecommentthreadview';import{getTranslation as _0x2b7edb}from'../../../utils/common-translations';export default class S extends _0x2a4bf6{constructor(_0x350716,_0x1f91a6,_0x4b1338,_0xb89f40){super(_0x350716,_0x1f91a6,_0x4b1338,_0xb89f40),this[_0x3328('0xa')](_0x3328('0x19'),null),this['containerElement']=null,this[_0x3328('0x1f')]=null,this['locale']=_0x350716,this['setTemplate'](this['getTemplate']()),this['on'](_0x3328('0x24'),(_0x419482,_0x1c31d8,_0x3e2543)=>{_0x3e2543||this[_0x3328('0x22')]();}),this[_0x3328('0x21')](this[_0x3328('0x3')],_0x3328('0x16'),(_0x3a4205,_0x2f3ff3,_0x5a06a3)=>{_0x5a06a3&&this[_0x3328('0x22')]();}),this[_0x3328('0xf')]>0x0&&this[_0x3328('0x5')](),this[_0x3328('0x21')](this['commentsListView'][_0x3328('0x9')],_0x3328('0x2'),()=>{this[_0x3328('0x5')]();});}['getTemplate'](){const _0x5693fa=this[_0x3328('0x1c')];return{'tag':_0x3328('0x11'),'attributes':{'class':[_0x3328('0x15'),_0x5693fa['if'](_0x3328('0xb'),_0x3328('0x1b')),_0x5693fa['if']('isConfirm',_0x3328('0x20')),_0x5693fa['to'](_0x3328('0x19'),_0x460d0a=>_0x460d0a?_0x3328('0x10')+_0x460d0a:'')],'data-thread-id':this['_model']['id'],'tabindex':-0x1},'children':[{'tag':_0x3328('0x11'),'attributes':{'class':'ck-thread__container'},'children':[this[_0x3328('0x1d')],this['commentThreadInputView']]}]};}[_0x3328('0x6')](){super[_0x3328('0x6')](),this[_0x3328('0x1a')]=this['element']['querySelector'](_0x3328('0x23'));}[_0x3328('0x22')](){this[_0x3328('0x18')]();for(const _0x36e2af of this['commentsListView'][_0x3328('0x9')])_0x36e2af[_0x3328('0x18')]();}['_bindFirstCommentView'](){const {locale:_0x495e44}=this,_0x56840a=this['commentsListView'][_0x3328('0x9')]['get'](0x0);_0x56840a!==this[_0x3328('0x1f')]&&(this['_boundFirstCommentView']=_0x56840a,this[_0x3328('0x7')](_0x3328('0x19')),this[_0x3328('0x4')](_0x3328('0x19'))['to'](_0x56840a,'actionIndicator',_0x83884c=>_0x3328('0x0')===_0x83884c?_0x3328('0x0'):null),_0x56840a['placeholder']=_0x2b7edb(_0x495e44,_0x3328('0x17')),_0x56840a[_0x3328('0x1e')]['on'](_0x3328('0x8'),_0xf08f96=>{_0xf08f96[_0x3328('0xd')](),this[_0x3328('0x13')](_0x2b7edb(_0x495e44,_0x3328('0x14')),this[_0x3328('0x1a')])[_0x3328('0x12')](()=>{this[_0x3328('0xe')](_0x3328('0x1'));});},{'priority':_0x3328('0xc')}));}}_0x20b1dd(S,_0x2034bb);
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4bf7=['isReadOnly','ck-comment--','_attachActions','@external','getExternalCommentNote','isConfirm','mouseenter','ck-annotation__info-time','Edit','author','setTemplate','ck-annotation__info-name','bindTemplate','switchToEditMode','ck-comment--edit','time','visibleView','ck-annotation__user','authoredAt','ck-comment__info','EXTERNAL_AVATAR','render','edit','bind','set','userView','EXTERNAL_COMMENT','creator','element','showConfirm','Remove','icon','locale','ck-comment','formatDateTime','getUserViewNotificationText','label','isRemovable','Delete\x20comment?','ck-comment--remove','actionIndicator','importWord','isExternal','_createEditButton','ck-comment__external','isEditable','focus','isVisible','isEnabled','blur','ck-annotation__content-wrapper','removeButton','_model','ck-comment__main','ck-annotation__actions--hidden','execute','isEditMode','div','fire','extendTemplate','listenTo','EXTERNAL_IMPORT_WORD_COMMENT','name','source','ck-annotation__main','then','_createCommentInputView','editButton','ck-comment__info-name','ck-comment__info-time','attributes','_createRemoveButton'];(function(_0x7d9a9e,_0x4bf775){const _0x177ce8=function(_0x495a41){while(--_0x495a41){_0x7d9a9e['push'](_0x7d9a9e['shift']());}};_0x177ce8(++_0x4bf775);}(_0x4bf7,0x84));const _0x177c=function(_0x7d9a9e,_0x4bf775){_0x7d9a9e=_0x7d9a9e-0x0;let _0x177ce8=_0x4bf7[_0x7d9a9e];return _0x177ce8;};import{mix as _0x2aa32d}from'ckeditor5/src/utils';import{ButtonView as _0x33a93f}from'ckeditor5/src/ui';import{icons as _0x32b52b}from'ckeditor5/src/core';import{UserView as _0x45b92a,ConfirmMixin as _0x1962e1}from'ckeditor5-collaboration/src/collaboration-core';import _0x37fafd from'./basecommentview';import _0xecd2b8 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x13e683}from'../../../utils/common-translations';export default class W extends _0x37fafd{constructor(_0x4a3c38,_0x8e1a,_0x490cdd){super(_0x4a3c38,_0x8e1a,_0x490cdd),this[_0x177c('0x24')]('actionIndicator',null),this['set']('placeholder',_0x13e683(_0x4a3c38,'Reply...')),this[_0x177c('0x24')](_0x177c('0x1e'),null),this[_0x177c('0x23')](_0x177c('0x1e'))['to'](_0x8e1a),this['editButton']=this['_createEditButton'](),this[_0x177c('0x3f')]=this[_0x177c('0xb')](),this[_0x177c('0x25')]=new _0x45b92a(_0x4a3c38,_0x8e1a[_0x177c('0x15')],this[_0x177c('0x2f')]()),this[_0x177c('0x25')]['extendTemplate']({'attributes':{'class':['ck-comment__user',_0x177c('0x1d')]}}),this[_0x177c('0x0')](_0x8e1a,'change:isRemovable',()=>this['cancelConfirm']()),this[_0x177c('0x16')](this['getTemplate']());}['getTemplate'](){const _0x120239=this[_0x177c('0x18')],_0x3aacaa=[{'tag':_0x177c('0x45'),'attributes':{'class':[_0x177c('0x1f'),'ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this[_0x177c('0x25')][_0x177c('0x2')]}],'attributes':{'class':[_0x177c('0x8'),_0x177c('0x17')]}},{'tag':_0x177c('0x1b'),'attributes':{'datetime':_0x120239['to'](_0x177c('0x1e')),'class':[_0x177c('0x9'),_0x177c('0x13')]},'children':[{'text':_0x120239['to'](_0x177c('0x1e'),_0x2650c0=>this['_config'][_0x177c('0x2e')](_0x2650c0))}]}]},{'tag':_0x177c('0x45'),'attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x120239['if'](_0x177c('0x44'),'ck-comment__actions--hidden'),_0x120239['if'](_0x177c('0x44'),_0x177c('0x42'))]},'children':[this[_0x177c('0x7')],this[_0x177c('0x3f')]]},{'tag':'div','attributes':{'class':[_0x177c('0x3e')]},'children':this[_0x177c('0x1c')]}];return this[_0x177c('0x40')]['isExternal']&&_0x3aacaa['push']({'tag':_0x177c('0x45'),'attributes':{'class':[_0x177c('0x38')]},'children':[{'text':this[_0x177c('0x10')]()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x120239['if'](_0x177c('0x11'),'ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':_0x177c('0x45'),'attributes':{'class':[_0x177c('0x2d'),'ck-annotation',_0x120239['if'](_0x177c('0x44'),'ck-comment--edit'),_0x120239['to'](_0x177c('0x34'),_0x571ba9=>_0x571ba9?_0x177c('0xd')+_0x571ba9:'')],'data-author-id':this[_0x177c('0x40')][_0x177c('0x15')]['id'],'data-comment-id':this['_model']['id']},'children':[this[_0x177c('0x25')],{'tag':_0x177c('0x45'),'attributes':{'class':[_0x177c('0x41'),_0x177c('0x4')]},'children':_0x3aacaa}]}]};}[_0x177c('0x37')](){const _0x163469=new _0x33a93f(this[_0x177c('0x2c')]);return _0x163469[_0x177c('0x30')]=_0x13e683(this[_0x177c('0x2c')],_0x177c('0x14')),_0x163469[_0x177c('0x2b')]=_0x32b52b['pencil'],_0x163469['extendTemplate']({'attributes':{'class':_0x177c('0x1a')}}),_0x163469['bind'](_0x177c('0x3c'))['to'](this[_0x177c('0x40')],_0x177c('0xc'),_0x46940f=>!_0x46940f),_0x163469[_0x177c('0x23')](_0x177c('0x3b'))['to'](this['_model'],_0x177c('0x39')),_0x163469['on'](_0x177c('0x43'),()=>this[_0x177c('0x19')]()),_0x163469;}[_0x177c('0xb')](){const _0x5e6b9d=new _0x33a93f(this[_0x177c('0x2c')]);return _0x5e6b9d[_0x177c('0x30')]=_0x13e683(this['locale'],_0x177c('0x2a')),_0x5e6b9d['icon']=_0xecd2b8,_0x5e6b9d[_0x177c('0x47')]({'attributes':{'class':_0x177c('0x33')}}),_0x5e6b9d['bind'](_0x177c('0x3c'))['to'](this[_0x177c('0x40')],_0x177c('0xc'),_0x3f06d6=>!_0x3f06d6),_0x5e6b9d[_0x177c('0x23')](_0x177c('0x3b'))['to'](this[_0x177c('0x40')],_0x177c('0x31')),_0x5e6b9d['on'](_0x177c('0x43'),()=>{this[_0x177c('0x29')](_0x13e683(this['locale'],_0x177c('0x32')),this[_0x177c('0x28')])[_0x177c('0x5')](()=>{this[_0x177c('0x46')]('removeComment',this[_0x177c('0x40')]['id']);});}),_0x5e6b9d;}['_attachActions'](_0xa4f337,_0xc13cd2){this['listenTo'](_0xa4f337,_0x177c('0x12'),()=>this['actionIndicator']=_0xc13cd2),this[_0x177c('0x0')](_0xa4f337,_0x177c('0x3a'),()=>this['actionIndicator']=_0xc13cd2),this[_0x177c('0x0')](_0xa4f337,'mouseleave',()=>this[_0x177c('0x34')]=null),this[_0x177c('0x0')](_0xa4f337,_0x177c('0x3d'),()=>this[_0x177c('0x34')]=null);}[_0x177c('0x6')](){const _0x9b96d3=super[_0x177c('0x6')]();return _0x9b96d3['bind']('placeholder')['to'](this),_0x9b96d3;}[_0x177c('0x10')](){return _0x177c('0x35')===this[_0x177c('0x40')][_0x177c('0xa')][_0x177c('0xf')][_0x177c('0x3')]?_0x13e683(this['locale'],_0x177c('0x1')):_0x13e683(this[_0x177c('0x2c')],_0x177c('0x26'));}[_0x177c('0x2f')](){return this[_0x177c('0x40')][_0x177c('0x36')]?_0x177c('0x35')===this[_0x177c('0x40')]['attributes'][_0x177c('0xf')][_0x177c('0x3')]?_0x13e683(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this[_0x177c('0x40')]['creator'][_0x177c('0x2')]):_0x13e683(this['locale'],_0x177c('0x20'),this['_model'][_0x177c('0x27')][_0x177c('0x2')]):null;}[_0x177c('0x21')](){super[_0x177c('0x21')](),this[_0x177c('0xe')](this[_0x177c('0x7')][_0x177c('0x28')],_0x177c('0x22')),this[_0x177c('0xe')](this['removeButton'][_0x177c('0x28')],'remove');}}_0x2aa32d(W,_0x1962e1);
|
package/src/comments.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2700=['pluginName','Comments','requires'];(function(_0x4950b5,_0x270047){var _0x127462=function(_0x5ba428){while(--_0x5ba428){_0x4950b5['push'](_0x4950b5['shift']());}};_0x127462(++_0x270047);}(_0x2700,0x198));var _0x1274=function(_0x4950b5,_0x270047){_0x4950b5=_0x4950b5-0x0;var _0x127462=_0x2700[_0x4950b5];return _0x127462;};import{Plugin as _0x55918c}from'ckeditor5/src/core';import _0x46b138 from'./comments/commentsrepository';import _0x3410c0 from'./comments/commentsediting';import _0xc53860 from'./comments/commentsui';import _0x53eaba from'./commentsonly';import _0xa5f85e from'./annotations/widesidebar';import _0x1c46bc from'./annotations/narrowsidebar';import _0x5d7a56 from'./annotations/inlineannotations';export default class c extends _0x55918c{static get[_0x1274('0x2')](){return[_0x46b138,_0x3410c0,_0xc53860,_0x53eaba,_0xa5f85e,_0x1c46bc,_0x5d7a56];}static get[_0x1274('0x0')](){return _0x1274('0x1');}}
|