@ckeditor/ckeditor5-comments 0.0.0-nightly-20230811.0 → 0.0.0-nightly-20230812.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/comments.js +1 -1
- package/package.json +3 -3
- package/src/annotations/annotation.js +1 -1
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.js +1 -1
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.js +1 -1
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.js +1 -1
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.js +1 -1
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.js +1 -1
- package/src/comments/ui/view/commentview.js +1 -1
- package/src/comments.js +1 -1
- package/src/commentsonly.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53f2=['get','importWord.commentsStyles','dataInsert','execute','config','afterInit','forEach','define','_handleImportedData','high','editor','importWord','map','listenTo','plugins','basic','collaboration_features'];(function(_0x9d669a,_0x53f25d){const _0x284404=function(_0x2c26af){while(--_0x2c26af){_0x9d669a['push'](_0x9d669a['shift']());}};_0x284404(++_0x53f25d);}(_0x53f2,0x8d));const _0x2844=function(_0x9d669a,_0x53f25d){_0x9d669a=_0x9d669a-0x0;let _0x284404=_0x53f2[_0x9d669a];return _0x284404;};import{Plugin as _0x208f3b}from'ckeditor5/src/core';import{priorities as _0x468f82}from'ckeditor5/src/utils';import{Users as _0x5a8f4b}from'ckeditor5-collaboration/src/collaboration-core';import _0x55f699 from'../commentsrepository';export default class Y extends _0x208f3b{constructor(_0x5fdcb){super(_0x5fdcb),this[_0x2844('0x5')]['config'][_0x2844('0x2')]('importWord.commentsStyles',_0x2844('0xa'));}[_0x2844('0x0')](){const _0x2c4cd2=this[_0x2844('0x5')],_0x3ab379=_0x2c4cd2['commands'][_0x2844('0xc')](_0x2844('0x6')),_0x19fffd=_0x2c4cd2['plugins']['get'](_0x5a8f4b);_0x3ab379&&(_0x3ab379['on'](_0x2844('0xf'),(_0x3b9d03,[,_0x908bab])=>{_0x908bab[_0x2844('0xb')]={'comments':!0x0,'user_id':_0x19fffd['me']['id'],'comments_styles':this[_0x2844('0x5')][_0x2844('0x10')][_0x2844('0xc')](_0x2844('0xd'))};},{'priority':_0x468f82[_0x2844('0x4')]+0xa}),this[_0x2844('0x8')](_0x3ab379,_0x2844('0xe'),this['_handleImportedData']));}[_0x2844('0x3')](_0x9b3ac2,_0x4c8ab4){const {comment_threads:_0x302a73}=_0x4c8ab4;_0x302a73&&_0x302a73[_0x2844('0x1')](({thread_id:_0x211425,comments:_0x10caee,is_resolved:_0x521066})=>{const _0x1a3ac6=new Date(),_0xfd6d11=_0x10caee[_0x2844('0x7')](({author:_0x41b4fa,content:_0x23f40e,created_at:_0x2a2df6})=>({'content':_0x23f40e,'authorId':this[_0x2844('0x5')][_0x2844('0x9')][_0x2844('0xc')](_0x5a8f4b)['me']['id'],'createdAt':_0x1a3ac6,'attributes':{'@external':{'authorName':_0x41b4fa,'createdAt':_0x2a2df6?new Date(_0x2a2df6):new Date(),'source':_0x2844('0x6')}}})),_0x597c29=this[_0x2844('0x5')][_0x2844('0x10')][_0x2844('0xc')]('collaboration.channelId');this[_0x2844('0x5')]['plugins'][_0x2844('0xc')](_0x55f699)['addCommentThread']({'channelId':_0x597c29,'threadId':_0x211425,'comments':_0xfd6d11,'resolvedAt':_0x521066?_0x1a3ac6:null});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x115f=['low','editing','placeholderElement','fire','initPlugins','view','create','createRoot','placeholder','change:placeholder','_updatePlaceholder','change','document','ready','getChild','set','get','defaultPlugins','destroy','init','setSelection','focus','getRoot','childCount','model','name','then'];(function(_0x36b5d1,_0x115ffc){const _0x2b7715=function(_0x47e2d5){while(--_0x47e2d5){_0x36b5d1['push'](_0x36b5d1['shift']());}};_0x2b7715(++_0x115ffc);}(_0x115f,0x14a));const _0x2b77=function(_0x36b5d1,_0x115ffc){_0x36b5d1=_0x36b5d1-0x0;let _0x2b7715=_0x115f[_0x36b5d1];return _0x2b7715;};import{Editor as _0x178cd5,DataApiMixin as _0x57dd60}from'ckeditor5/src/core';import _0x44de6a from'./commenteditorui';import{ObservableMixin as _0x210972}from'ckeditor5/src/utils';import{enablePlaceholder as _0x4c100e,disablePlaceholder as _0x6eea20}from'ckeditor5/src/engine';import{Clipboard as _0x490555}from'ckeditor5/src/clipboard';import{Enter as _0x5c0e6c,ShiftEnter as _0x3a1903}from'ckeditor5/src/enter';import{SelectAll as _0x48fcce}from'ckeditor5/src/select-all';import{Typing as _0x52df3e}from'ckeditor5/src/typing';import{Undo as _0x3c01b8}from'ckeditor5/src/undo';import{Paragraph as _0x1becb2}from'ckeditor5/src/paragraph';const Kt=[_0x490555,_0x5c0e6c,_0x3a1903,_0x48fcce,_0x52df3e,_0x3c01b8,_0x1becb2];export default class Lt extends _0x210972(_0x57dd60(_0x178cd5)){constructor(_0xaf4bce={}){(_0xaf4bce=Object['assign']({},_0xaf4bce))['plugins']||(_0xaf4bce['plugins']=Lt[_0x2b77('0xb')]),super(_0xaf4bce),this['ui']=new _0x44de6a(this),this[_0x2b77('0x9')](_0x2b77('0x2'),''),this[_0x2b77('0x12')][_0x2b77('0x6')]['on'](_0x2b77('0x5'),()=>this[_0x2b77('0x4')](),{'priority':_0x2b77('0x15')}),this['on'](_0x2b77('0x3'),()=>this['_updatePlaceholder']()),this[_0x2b77('0x12')][_0x2b77('0x6')][_0x2b77('0x1')]();}[_0x2b77('0x0')](){const _0x3f5e41=this['config'][_0x2b77('0xa')]('initialData')||'';return this[_0x2b77('0x19')]()[_0x2b77('0x14')](()=>this['ui'][_0x2b77('0xd')]())['then'](()=>this['data'][_0x2b77('0xd')](_0x3f5e41))[_0x2b77('0x14')](()=>this[_0x2b77('0x18')](_0x2b77('0x7')));}['destroy'](){return super['destroy']()['then'](()=>this['ui'][_0x2b77('0xc')]());}[_0x2b77('0xf')](){this[_0x2b77('0x12')][_0x2b77('0x5')](_0x3cc424=>{const _0x2aa1ff=this['model'][_0x2b77('0x6')]['getRoot'](),_0x5dff3e=_0x2aa1ff&&_0x2aa1ff[_0x2b77('0x8')](_0x2aa1ff['childCount']-0x1);_0x3cc424[_0x2b77('0xe')](_0x5dff3e,'end'),this[_0x2b77('0x16')][_0x2b77('0x1a')][_0x2b77('0xf')]();});}['_updatePlaceholder'](){const _0x5e532a=this[_0x2b77('0x16')][_0x2b77('0x1a')],_0x547de8=_0x5e532a[_0x2b77('0x6')][_0x2b77('0x10')](),_0x55edb7=_0x547de8[_0x2b77('0x8')](0x0);_0x547de8[_0x2b77('0x11')]>0x1||!_0x55edb7||'p'!=_0x55edb7[_0x2b77('0x13')]?this[_0x2b77('0x17')]&&this[_0x2b77('0x17')]['placeholder']&&(_0x6eea20(_0x5e532a,this['placeholderElement']),this[_0x2b77('0x17')]=void 0x0):(this[_0x2b77('0x2')]&&(_0x55edb7[_0x2b77('0x2')]=this[_0x2b77('0x2')]),_0x4c100e({'view':_0x5e532a,'element':_0x55edb7,'keepOnFocus':!0x0}),this[_0x2b77('0x17')]=_0x55edb7);}}Lt[_0x2b77('0xb')]=Kt;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x34f5=['locale','render','rootName','fire','destroy','setEditableElement','focusTracker','view','element','getRoot','editing','isFocused','attachDomRoot','init','editable','ready'];(function(_0x422c55,_0x34f59c){const _0x4af491=function(_0x4ebc72){while(--_0x4ebc72){_0x422c55['push'](_0x422c55['shift']());}};_0x4af491(++_0x34f59c);}(_0x34f5,0x17a));const _0x4af4=function(_0x422c55,_0x34f59c){_0x422c55=_0x422c55-0x0;let _0x4af491=_0x34f5[_0x422c55];return _0x4af491;};import{EditorUI as _0x6a7658}from'ckeditor5/src/ui';import _0x333f07 from'./commenteditoruiview';export default class jt extends _0x6a7658{constructor(_0x21865f){super(_0x21865f),this['view']=new _0x333f07(_0x21865f[_0x4af4('0x6')],_0x21865f[_0x4af4('0x0')]['view']);}get[_0x4af4('0xe')](){return this[_0x4af4('0xd')]['element'];}[_0x4af4('0x3')](){const _0xfcbf61=this['editor'][_0x4af4('0x0')][_0x4af4('0xd')],_0x5ee5f2=this[_0x4af4('0xd')][_0x4af4('0x4')],_0x5be792=_0xfcbf61['document'][_0x4af4('0xf')]();_0x5ee5f2['name']=_0x5be792[_0x4af4('0x8')],this['view'][_0x4af4('0x7')]();const _0x419ecd=_0x5ee5f2[_0x4af4('0xe')];this[_0x4af4('0xb')](_0x5ee5f2['name'],_0x419ecd),this[_0x4af4('0xd')][_0x4af4('0x4')]['bind'](_0x4af4('0x1'))['to'](this[_0x4af4('0xc')]),_0xfcbf61[_0x4af4('0x2')](_0x419ecd),this[_0x4af4('0x9')](_0x4af4('0x5'));}[_0x4af4('0xa')](){super[_0x4af4('0xa')](),this['view'][_0x4af4('0xa')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2673=['ck-voice-label','Comment\x20editor','createCollection','uiLanguageDirection','cke-editor__aria-label_','ck-comment__input','extendTemplate','render','_voiceLabelView','add','focus','_createVoiceLabel','editable','div','element','ck-editor','ck-editor__aria-label_','ck-editor__main','text','uiLanguage','ck-rounded-corners','main','presentation','comment','setTemplate'];(function(_0x370cc9,_0x26730b){const _0x27f436=function(_0x40555b){while(--_0x40555b){_0x370cc9['push'](_0x370cc9['shift']());}};_0x27f436(++_0x26730b);}(_0x2673,0x14b));const _0x27f4=function(_0x370cc9,_0x26730b){_0x370cc9=_0x370cc9-0x0;let _0x27f436=_0x2673[_0x370cc9];return _0x27f436;};import{InlineEditableUIView as _0x1f5fa8,EditorUIView as _0x292501,LabelView as _0x44c733}from'ckeditor5/src/ui';import{uid as _0x2b38c6}from'ckeditor5/src/utils';import{getTranslation as _0x14fbdf}from'../../../utils/common-translations';export default class Nt extends _0x292501{constructor(_0x5be614,_0x1f8bbd){super(_0x5be614);const _0xfefd98=_0x2b38c6();this[_0x27f4('0xf')]=this[_0x27f4('0x15')](),this[_0x27f4('0x6')]=new _0x1f5fa8(_0x5be614,_0x1f8bbd),this[_0x27f4('0x2')]=this['_createVoiceLabel'](_0xfefd98,_0x5be614),this[_0x27f4('0x12')]({'tag':_0x27f4('0x7'),'attributes':{'class':['ck-reset',_0x27f4('0x9'),_0x27f4('0xe'),_0x27f4('0x18')],'role':_0x27f4('0x11'),'dir':_0x5be614[_0x27f4('0x16')],'lang':_0x5be614[_0x27f4('0xd')],'aria-labelledby':_0x27f4('0x17')+_0xfefd98},'children':[this['_voiceLabelView'],{'tag':'div','attributes':{'class':_0x27f4('0xb'),'role':_0x27f4('0x10')},'children':this[_0x27f4('0xf')]}]});}[_0x27f4('0x1')](){super[_0x27f4('0x1')](),this[_0x27f4('0xf')][_0x27f4('0x3')](this[_0x27f4('0x6')]);}[_0x27f4('0x4')](){this[_0x27f4('0x6')][_0x27f4('0x8')]['focus']();}[_0x27f4('0x5')](_0x3ecb73,_0x12a5e0){const _0x17d383=new _0x44c733();return _0x17d383[_0x27f4('0xc')]=_0x14fbdf(_0x12a5e0,_0x27f4('0x14')),_0x17d383[_0x27f4('0x0')]({'attributes':{'id':_0x27f4('0xa')+_0x3ecb73,'class':_0x27f4('0x13')}}),_0x17d383;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x17a4=['removeComment','model','_isAttached','reopen','submit','removeCommentThread','getComment','isResolved','resolve','listenTo','remove','updateComment','resolveCommentThread','stopListening','update','destroy','addComment','reopenCommentThread','view'];(function(_0x2427ca,_0x17a4b6){var _0x3ffa20=function(_0x44ebed){while(--_0x44ebed){_0x2427ca['push'](_0x2427ca['shift']());}};_0x3ffa20(++_0x17a4b6);}(_0x17a4,0xfc));var _0x3ffa=function(_0x2427ca,_0x17a4b6){_0x2427ca=_0x2427ca-0x0;var _0x3ffa20=_0x17a4[_0x2427ca];return _0x3ffa20;};import{ObservableMixin as _0x33f9ea}from'ckeditor5/src/utils';export default class ct extends _0x33f9ea(){constructor(_0x5d346e,_0x16663f){super(),this[_0x3ffa('0xf')]=_0x5d346e,this[_0x3ffa('0xf')][_0x3ffa('0x10')]=!0x0,this[_0x3ffa('0xd')]=_0x16663f,this['listenTo'](_0x16663f,'submitCommentThread',()=>this[_0x3ffa('0x12')]()),this['listenTo'](_0x16663f,_0x3ffa('0x0'),()=>this[_0x3ffa('0x5')]()),this['listenTo'](_0x16663f,_0x3ffa('0x7'),()=>this[_0x3ffa('0x3')]()),this[_0x3ffa('0x4')](_0x16663f,_0x3ffa('0xc'),()=>this['reopen']()),this[_0x3ffa('0x4')](_0x16663f,'addComment',(_0x3ef6a2,_0x326f55)=>this[_0x3ffa('0xb')](_0x326f55)),this['listenTo'](_0x16663f,_0x3ffa('0x6'),(_0x288eb2,_0x5c5165,_0x44659f)=>this[_0x3ffa('0x6')](_0x5c5165,_0x44659f)),this[_0x3ffa('0x4')](_0x16663f,'removeComment',(_0x130183,_0xc9b94e)=>this['removeComment'](_0xc9b94e));}[_0x3ffa('0x12')](){this['model'][_0x3ffa('0x12')]();}[_0x3ffa('0x5')](){this[_0x3ffa('0xf')][_0x3ffa('0x5')]();}['resolve'](){this[_0x3ffa('0xf')][_0x3ffa('0x2')]||this[_0x3ffa('0xf')][_0x3ffa('0x3')]();}[_0x3ffa('0x11')](){this['model'][_0x3ffa('0x2')]&&this[_0x3ffa('0xf')]['reopen']();}[_0x3ffa('0xb')](_0x38e1ed){this['model'][_0x3ffa('0xb')]({'content':_0x38e1ed,'authorId':this[_0x3ffa('0xd')]['_localUser']['id']});}[_0x3ffa('0x6')](_0x3033eb,_0xb22d2){this[_0x3ffa('0xf')][_0x3ffa('0x1')](_0x3033eb)[_0x3ffa('0x9')]({'content':_0xb22d2});}[_0x3ffa('0xe')](_0x6b7792){this[_0x3ffa('0xf')][_0x3ffa('0x1')](_0x6b7792)['remove']();}[_0x3ffa('0xa')](){this[_0x3ffa('0x8')](),this[_0x3ffa('0xf')][_0x3ffa('0x10')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x24f8=['isReadOnly','editorReady','focus','stop','Write\x20a\x20comment...','cancel','canComment','Reply\x20to\x20reopen\x20discussion...','fire','removeComment','element','commentsListView','removeCommentThread','locale','_config','submitLabel','commentThreadHeaderView','bind','Comment','change:isActive','showInput','reopenCommentThread','_model','set','editorDestroyed','isResolved','addComment','delegate','isDirty','commentThreadInputView','length','_createCommentThreadInputView','isActive','_localUser','value','isSubmitted','commentInputView','assign','isResolvable','CommentView','submitCommentThread','destroy'];(function(_0x15fe78,_0x24f885){const _0x5e8281=function(_0x562fb7){while(--_0x562fb7){_0x15fe78['push'](_0x15fe78['shift']());}};_0x5e8281(++_0x24f885);}(_0x24f8,0xc0));const _0x5e82=function(_0x15fe78,_0x24f885){_0x15fe78=_0x15fe78-0x0;let _0x5e8281=_0x24f8[_0x15fe78];return _0x5e8281;};import{View as _0x31d521}from'ckeditor5/src/ui';import _0x38084c from'./commentthreadinputview';import _0x247077 from'./commentslistview';import _0x5f4461 from'./commentthreadheaderview';import{getTranslation as _0x24f6ab}from'../../../utils/common-translations';export default class Tt extends _0x31d521{constructor(_0x88198d,_0x3c9c80,_0x1bad8a,_0x7c7375){super(_0x88198d),this[_0x5e82('0x29')](_0x5e82('0x8'),!0x1),this[_0x5e82('0x29')]('isDirty',!0x1),this['_model']=_0x3c9c80,this[_0x5e82('0x9')]=_0x1bad8a,this[_0x5e82('0x20')]=_0x7c7375,this['commentThreadHeaderView']=new _0x5f4461(_0x88198d,_0x3c9c80),this[_0x5e82('0x22')]['delegate']('reopenCommentThread')['to'](this),this[_0x5e82('0x1d')]=new _0x247077(_0x88198d,_0x3c9c80,Object[_0x5e82('0xd')]({'CommentView':this[_0x5e82('0x20')][_0x5e82('0xf')]},_0x7c7375)),this[_0x5e82('0x1d')][_0x5e82('0x3')]('removeComment')['to'](this),this[_0x5e82('0x1d')]['delegate']('updateComment')['to'](this),this[_0x5e82('0x1d')][_0x5e82('0x3')]('resolveCommentThread')['to'](this),this[_0x5e82('0x1d')][_0x5e82('0x3')]('editorReady')['to'](this),this[_0x5e82('0x1d')][_0x5e82('0x3')](_0x5e82('0x0'))['to'](this),this[_0x5e82('0x1d')][_0x5e82('0x23')](_0x5e82('0x8'))['to'](this),this[_0x5e82('0x29')](_0x5e82('0x6'),this['commentsListView'][_0x5e82('0x6')]),this[_0x5e82('0x23')](_0x5e82('0x6'))['to'](this[_0x5e82('0x1d')],_0x5e82('0x6')),this['commentThreadInputView']=this[_0x5e82('0x7')](),this[_0x5e82('0x5')][_0x5e82('0x3')](_0x5e82('0x13'))['to'](this),this[_0x5e82('0x5')][_0x5e82('0x3')]('editorDestroyed')['to'](this),this['on'](_0x5e82('0x1b'),()=>this['focus']()),this[_0x5e82('0x23')](_0x5e82('0x4'))['to'](this[_0x5e82('0x1d')],'hasDirtyComment',this[_0x5e82('0x5')][_0x5e82('0xc')],_0x5e82('0xa'),(_0x2bd303,_0x3f9994)=>_0x2bd303||!!_0x3f9994);}[_0x5e82('0x14')](){this[_0x5e82('0x1c')]['focus']();}[_0x5e82('0x11')](){this[_0x5e82('0x4')]=!0x1,this['commentsListView']['destroy'](),this[_0x5e82('0x5')]['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0xe632e7=new _0x38084c(this[_0x5e82('0x1f')],this[_0x5e82('0x9')],this[_0x5e82('0x20')]['editorConfig']),_0x33b007=_0xe632e7[_0x5e82('0xc')];return _0xe632e7[_0x5e82('0x23')](_0x5e82('0x26'))['to'](this,_0x5e82('0x8'),this[_0x5e82('0x28')],_0x5e82('0x12'),this[_0x5e82('0x28')],_0x5e82('0x18'),this[_0x5e82('0x28')],'isResolved',_0x33b007,_0x5e82('0xa'),(_0x3a0718,_0x5c77f2,_0x3e4280,_0x352fd8,_0x6f2e18)=>!!_0x6f2e18||_0x352fd8&&_0x3e4280&&!_0x5c77f2||_0x3a0718&&_0x3e4280&&!_0x5c77f2),_0x33b007['bind']('placeholder')['to'](this,_0x5e82('0x6'),this[_0x5e82('0x28')],_0x5e82('0xe'),this[_0x5e82('0x28')],_0x5e82('0x1'),(_0x849627,_0x405537,_0x110a1a)=>{let _0x1c74fa;return _0x1c74fa=_0x110a1a&&_0x405537?_0x5e82('0x19'):_0x849627?'Reply...':_0x5e82('0x16'),_0x24f6ab(this['locale'],_0x1c74fa);}),_0x33b007[_0x5e82('0x23')](_0x5e82('0x21'))['to'](this,_0x5e82('0x6'),_0x21ce95=>_0x24f6ab(this[_0x5e82('0x1f')],_0x21ce95?'Reply':_0x5e82('0x24'))),_0x33b007['on']('submit',(_0x3498d4,_0x45714a)=>{this['fire'](_0x5e82('0x2'),_0x45714a),this[_0x5e82('0x28')][_0x5e82('0x1')]&&this[_0x5e82('0x28')][_0x5e82('0xe')]&&this[_0x5e82('0x1a')](_0x5e82('0x27'),this['_model']['id']),this[_0x5e82('0x28')][_0x5e82('0xb')]||this[_0x5e82('0x1a')](_0x5e82('0x10'));}),_0x33b007['on']('cancel',()=>{this[_0x5e82('0x14')]();}),_0x33b007[_0x5e82('0x23')]('disabledSubmit')['to'](this[_0x5e82('0x28')],_0x5e82('0x12')),_0x33b007['on'](_0x5e82('0x17'),_0x3c4c2f=>{0x0==this[_0x5e82('0x6')]&&(this[_0x5e82('0x1a')](_0x5e82('0x1e')),_0x3c4c2f[_0x5e82('0x15')]());}),this['on'](_0x5e82('0x25'),(_0x1eb9c6,_0x4b960e,_0x5ac22a)=>{_0x5ac22a||this[_0x5e82('0x6')]||_0x33b007['value']||this[_0x5e82('0x1a')](_0x5e82('0x1e'));}),_0xe632e7;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xfae3=['_model','get','isReadOnly','editorConfig','focus','cancel','bind','add','updateComment','visibleView','remove','disabledSubmit','collapse','initialData','locale','_createCommentContentView','isCollapsed','value','isEditMode','destroy','submit','element','editorReady','isSystemComment','_config','fire','submitLabel','_createCommentInputView','delegate','createEditor','content','switchToDisplayMode','editorDestroyed','once'];(function(_0x19b58c,_0xfae314){const _0x26d799=function(_0x5b8ea5){while(--_0x5b8ea5){_0x19b58c['push'](_0x19b58c['shift']());}};_0x26d799(++_0xfae314);}(_0xfae3,0xd0));const _0x26d7=function(_0x19b58c,_0xfae314){_0x19b58c=_0x19b58c-0x0;let _0x26d799=_0xfae3[_0x19b58c];return _0x26d799;};import{View as _0x4877cf}from'ckeditor5/src/ui';import{trimHtml as _0x24565d}from'ckeditor5-collaboration/src/collaboration-core';import _0x281330 from'./commentcontentview';import _0xf6566b from'./commentinputview';import{getTranslation as _0x2398bc}from'../../../utils/common-translations';export default class Yt extends _0x4877cf{constructor(_0x3bcfb9,_0x2c1cd3,_0x48e1fb){super(_0x3bcfb9),this[_0x26d7('0x1e')]=_0x2c1cd3,this[_0x26d7('0x14')]=_0x48e1fb,this[_0x26d7('0x13')]=!!this[_0x26d7('0x14')][_0x26d7('0x13')],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this[_0x26d7('0x5')]=this['createCollection'](),this[_0x26d7('0x5')][_0x26d7('0x3')](this['_createCommentContentView']());}['expand'](){this['isCollapsed']=!0x1;}[_0x26d7('0x8')](){this[_0x26d7('0xe')]||(this['isCollapsed']=!0x0);}[_0x26d7('0x0')](){this[_0x26d7('0x11')]['focus']();}async[_0x26d7('0xf')](){await this[_0x26d7('0x5')][_0x26d7('0x1f')](0x0)['destroy'](),super[_0x26d7('0xf')]();}['switchToEditMode'](){this[_0x26d7('0xe')]||(this[_0x26d7('0xe')]=!0x0,this[_0x26d7('0x5')][_0x26d7('0x6')](0x0)[_0x26d7('0xf')](),this[_0x26d7('0x5')][_0x26d7('0x3')](this[_0x26d7('0x17')]()));}[_0x26d7('0x1b')](){this[_0x26d7('0xe')]&&(this[_0x26d7('0xe')]=!0x1,this[_0x26d7('0x5')]['remove'](0x0)[_0x26d7('0xf')](),this[_0x26d7('0x5')][_0x26d7('0x3')](this['_createCommentContentView']()));}[_0x26d7('0xb')](){const _0x297110=new _0x281330(this[_0x26d7('0xa')]);return _0x297110[_0x26d7('0x2')](_0x26d7('0x1a'))['to'](this[_0x26d7('0x1e')],_0x26d7('0x1a'),this,_0x26d7('0xc'),(_0x35b31e,_0x32fa9e)=>_0x32fa9e?_0x24565d(_0x35b31e,{'limit':this[_0x26d7('0x14')]['maxCommentCharsWhenCollapsed']}):_0x35b31e),_0x297110;}[_0x26d7('0x17')](){this[_0x26d7('0x14')][_0x26d7('0x21')]||(this['_config'][_0x26d7('0x21')]={}),this[_0x26d7('0x14')]['editorConfig'][_0x26d7('0x9')]=this[_0x26d7('0x1e')][_0x26d7('0x1a')];const _0x409f43=new _0xf6566b(this[_0x26d7('0xa')],this[_0x26d7('0x14')][_0x26d7('0x21')]);return _0x409f43[_0x26d7('0xd')]=this['_model'][_0x26d7('0x1a')],_0x409f43[_0x26d7('0x2')](_0x26d7('0x7'))['to'](this[_0x26d7('0x1e')],_0x26d7('0x20')),_0x409f43[_0x26d7('0x16')]=_0x2398bc(this[_0x26d7('0xa')],'Save'),_0x409f43['on'](_0x26d7('0x10'),(_0x549613,_0x19ec5e)=>{this[_0x26d7('0x15')](_0x26d7('0x4'),this[_0x26d7('0x1e')]['id'],_0x19ec5e),this['switchToDisplayMode'](),this[_0x26d7('0x0')]();}),_0x409f43['on'](_0x26d7('0x1'),()=>{this[_0x26d7('0x1b')](),this[_0x26d7('0x0')]();}),_0x409f43[_0x26d7('0x1d')](_0x26d7('0x12'),()=>{_0x409f43[_0x26d7('0x0')]();}),_0x409f43[_0x26d7('0x19')](),_0x409f43['delegate'](_0x26d7('0x12'))['to'](this),_0x409f43[_0x26d7('0x18')](_0x26d7('0x1c'))['to'](this),_0x409f43;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5bf7=['bindTemplate','setTemplate','ck-thread__comment-count','NUMBER_OF_COMMENTS','count'];(function(_0x4af15b,_0x5bf72c){const _0x2bfa76=function(_0x290c65){while(--_0x290c65){_0x4af15b['push'](_0x4af15b['shift']());}};_0x2bfa76(++_0x5bf72c);}(_0x5bf7,0x19f));const _0x2bfa=function(_0x4af15b,_0x5bf72c){_0x4af15b=_0x4af15b-0x0;let _0x2bfa76=_0x5bf7[_0x4af15b];return _0x2bfa76;};import{View as _0x5df8fc}from'ckeditor5/src/ui';import{getTranslation as _0x33345b}from'../../../utils/common-translations';export default class Zt extends _0x5df8fc{constructor(_0x52a28b){super(_0x52a28b);const _0x3fbf5d=this[_0x2bfa('0x0')];this['set'](_0x2bfa('0x4'),void 0x0),this[_0x2bfa('0x1')]({'tag':'li','attributes':{'class':_0x2bfa('0x2')},'children':[{'text':_0x3fbf5d['to'](_0x2bfa('0x4'),_0x15f027=>_0x33345b(_0x52a28b,_0x2bfa('0x3'),_0x15f027))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3542=['set','element','render','ck-comment__content','setTemplate','div','ck-annotation__content','content','change:content','innerHTML'];(function(_0x283069,_0x3542b7){var _0x4be396=function(_0x1c1660){while(--_0x1c1660){_0x283069['push'](_0x283069['shift']());}};_0x4be396(++_0x3542b7);}(_0x3542,0x10c));var _0x4be3=function(_0x283069,_0x3542b7){_0x283069=_0x283069-0x0;var _0x4be396=_0x3542[_0x283069];return _0x4be396;};import{View as _0x17b9ba}from'ckeditor5/src/ui';export default class Ut extends _0x17b9ba{constructor(_0x40ec4b){super(_0x40ec4b),this[_0x4be3('0x2')]('content',''),this[_0x4be3('0x6')]({'tag':_0x4be3('0x7'),'attributes':{'class':[_0x4be3('0x5'),_0x4be3('0x8')]}});}[_0x4be3('0x4')](){super['render'](),this['on'](_0x4be3('0x0'),(_0x2143db,_0x3e3012,_0x5900d3)=>{this[_0x4be3('0x3')]['innerHTML']=_0x5900d3;}),this['element'][_0x4be3('0x1')]=this[_0x4be3('0x9')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5f0d=['label','change','submitLabel','bindTemplate','focusTracker','showButtons','destroy','submitButtonView','_isDestroyed','focusNext','_createSubmitButton','execute','create','setData','_createCancelButton','view','TOO_LONG_COMMENT_ALERT','editor','withText','forEach','shift\x20+\x20tab','trim','low','render','cancelButtonView','setTemplate','placeholder','Reply...','submit','length','ck-comment__input-wrapper','high','Esc','_editorCreationPromise','then','div','document','Cancel','element','_editorConfig','add','value','bind','firstChild','focus','fire','getData','extendTemplate','stop','keystrokes','_initializeFocusCycling','focusPrevious','disabledSubmit','listenTo','set','ck-comment__input-actions'];(function(_0x3cc35f,_0x5f0da9){const _0xd25fd=function(_0x2b34ff){while(--_0x2b34ff){_0x3cc35f['push'](_0x3cc35f['shift']());}};_0xd25fd(++_0x5f0da9);}(_0x5f0d,0x163));const _0xd25f=function(_0x3cc35f,_0x5f0da9){_0x3cc35f=_0x3cc35f-0x0;let _0xd25fd=_0x5f0d[_0x3cc35f];return _0xd25fd;};import{View as _0x354a9a,ViewCollection as _0x25a0ba,FocusCycler as _0x59b8d0,ButtonView as _0x4e39a8}from'ckeditor5/src/ui';import{FocusTracker as _0x1ca0ac,KeystrokeHandler as _0x3fa963}from'ckeditor5/src/utils';import _0x421578 from'../commenteditor/commenteditor';import{getTranslation as _0x55b766}from'../../../utils/common-translations';export default class Xt extends _0x354a9a{constructor(_0x2efa25,_0x492be2={}){super(_0x2efa25),this[_0xd25f('0x36')]=null,this['_editorConfig']=_0x492be2,this[_0xd25f('0x1e')]=new _0x3fa963(),this[_0xd25f('0x29')]=new _0x1ca0ac(),this['set'](_0xd25f('0x16'),_0x492be2['initialData']||''),this['set'](_0xd25f('0x21'),!0x1),this['set'](_0xd25f('0x2a'),!0x0),this[_0xd25f('0x23')](_0xd25f('0x7'),_0x55b766(_0x2efa25,_0xd25f('0x8'))),this['set']('submitLabel',_0x55b766(_0x2efa25,'Reply')),this[_0xd25f('0x2c')]=this[_0xd25f('0x2f')](),this[_0xd25f('0x5')]=this[_0xd25f('0x33')](),this[_0xd25f('0x6')]({'tag':_0xd25f('0x10'),'attributes':{'class':[_0xd25f('0xb')]},'children':[{'tag':'div','attributes':{'class':[_0xd25f('0x24'),this[_0xd25f('0x28')]['if']('showButtons','ck-comment__input-actions--active')]},'children':[this[_0xd25f('0x2c')],this['cancelButtonView']]}]}),this['keystrokes'][_0xd25f('0x23')](_0xd25f('0xd'),(_0x58795c,_0x2f6d4f)=>{this[_0xd25f('0x5')][_0xd25f('0x1a')](_0xd25f('0x30')),_0x2f6d4f();}),this['on'](_0xd25f('0x9'),(_0x222ee8,_0xd9d23)=>{_0xd9d23[_0xd25f('0xa')]>0xfde8?(alert(_0x55b766(_0x2efa25,_0xd25f('0x35'),[_0xd9d23[_0xd25f('0xa')],0xfde8])),_0x222ee8[_0xd25f('0x1d')]()):this[_0xd25f('0x36')]['setData']('');},{'priority':_0xd25f('0xc')});}[_0xd25f('0x4')](){super[_0xd25f('0x4')](),this['keystrokes'][_0xd25f('0x22')](this['element']),this[_0xd25f('0x29')][_0xd25f('0x15')](this[_0xd25f('0x13')]);}['createEditor'](){return this['editor']||(this[_0xd25f('0x36')]=new _0x421578(this[_0xd25f('0x14')]),this[_0xd25f('0xe')]=this[_0xd25f('0x36')][_0xd25f('0x31')]()[_0xd25f('0xf')](()=>{if(this[_0xd25f('0x2d')])return;const _0x1158d1=this[_0xd25f('0x36')];this[_0xd25f('0x13')]['insertBefore'](_0x1158d1['ui']['element'],this['element'][_0xd25f('0x18')]),_0x1158d1['model'][_0xd25f('0x11')]['on'](_0xd25f('0x26'),()=>this[_0xd25f('0x16')]=_0x1158d1[_0xd25f('0x1b')]()),_0x1158d1[_0xd25f('0x17')](_0xd25f('0x7'))['to'](this),this[_0xd25f('0x1f')](this['editor']),this[_0xd25f('0x1a')]('editorReady',this['editor']);})),this[_0xd25f('0xe')];}[_0xd25f('0x19')](){this[_0xd25f('0x36')]&&this[_0xd25f('0x36')][_0xd25f('0x19')]();}async[_0xd25f('0x2b')](){this[_0xd25f('0x2d')]||(this['_isDestroyed']=!0x0,this[_0xd25f('0x36')]&&(await this[_0xd25f('0xe')],await this[_0xd25f('0x36')][_0xd25f('0x2b')](),this[_0xd25f('0x1a')]('editorDestroyed',this[_0xd25f('0x36')])),await super[_0xd25f('0x2b')]());}['_createSubmitButton'](){const {locale:_0x14ceb3}=this,_0x2f4384=new _0x4e39a8(_0x14ceb3);return _0x2f4384[_0xd25f('0x1c')]({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x2f4384[_0xd25f('0x37')]=!0x0,_0x2f4384['bind']('label')['to'](this,_0xd25f('0x27')),_0x2f4384['on'](_0xd25f('0x30'),()=>{this[_0xd25f('0x1a')]('submit',this['value']);}),_0x2f4384['bind']('isEnabled')['to'](this,_0xd25f('0x16'),this,_0xd25f('0x21'),(_0x2cf7da,_0x38fa4c)=>!_0x38fa4c&&!!_0x2cf7da[_0xd25f('0x2')]()),_0x2f4384;}['_createCancelButton'](){const {locale:_0xf6d100}=this,_0x51ddc4=new _0x4e39a8(_0xf6d100);return _0x51ddc4[_0xd25f('0x1c')]({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x51ddc4[_0xd25f('0x25')]=_0x55b766(_0xf6d100,_0xd25f('0x12')),_0x51ddc4['withText']=!0x0,_0x51ddc4['on'](_0xd25f('0x30'),()=>{this[_0xd25f('0x36')][_0xd25f('0x32')](''),this[_0xd25f('0x1a')]('cancel');}),_0x51ddc4;}['_initializeFocusCycling'](_0x6db742){const _0xc08159=this[_0xd25f('0x29')],_0x220d4e=new _0x25a0ba();[_0x6db742['ui'][_0xd25f('0x34')],this['submitButtonView'],this[_0xd25f('0x5')]][_0xd25f('0x0')](_0x3b1efb=>{_0x220d4e['add'](_0x3b1efb),_0xc08159[_0xd25f('0x15')](_0x3b1efb['element']);});const _0x213a99=new _0x59b8d0({'focusables':_0x220d4e,'focusTracker':_0xc08159});this[_0xd25f('0x1e')]['set']('tab',(_0x54cbe5,_0x13f111)=>{_0x213a99[_0xd25f('0x2e')](),_0x13f111();},{'priority':_0xd25f('0x3')}),this[_0xd25f('0x1e')][_0xd25f('0x23')](_0xd25f('0x1'),(_0x3eca6f,_0x242c5c)=>{_0x213a99[_0xd25f('0x20')](),_0x242c5c();},{'priority':_0xd25f('0x3')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x12cf=['arrowright','high','_keystrokes','length','listenTo','ck-comments-archive__content','arrowleft','_focusTracker','isActive','arrowup','auto','bindTemplate','isEmpty','remove','setTemplate','set','ck-comments-archive__info','stopPropagation','destroy','_focusables','arrowdown','COMMENTS_ARCHIVE','focus','element','shift\x20+\x20tab','div','ck-hidden','render'];(function(_0xaa5031,_0x12cf62){const _0x395e7b=function(_0x4255fb){while(--_0x4255fb){_0xaa5031['push'](_0xaa5031['shift']());}};_0x395e7b(++_0x12cf62);}(_0x12cf,0x90));const _0x395e=function(_0xaa5031,_0x12cf62){_0xaa5031=_0xaa5031-0x0;let _0x395e7b=_0x12cf[_0xaa5031];return _0x395e7b;};import{View as _0x13637c,FocusCycler as _0x565d57}from'ckeditor5/src/ui';import{FocusTracker as _0x239a11,KeystrokeHandler as _0x167d49}from'ckeditor5/src/utils';import{getTranslation as _0x32d3bd}from'../../../utils/common-translations';export default class K extends _0x13637c{constructor(_0x3cfa6e,_0x46300e){super(_0x3cfa6e),this[_0x395e('0xb')](_0x395e('0x8'),!_0x46300e[_0x395e('0x1b')]),this[_0x395e('0x3')]=new _0x239a11(),this[_0x395e('0x1a')]=new _0x167d49(),this[_0x395e('0xf')]=_0x46300e,this['_focusCycler']=new _0x565d57({'focusables':this[_0x395e('0xf')],'focusTracker':this[_0x395e('0x3')],'keystrokeHandler':this[_0x395e('0x1a')],'actions':{'focusPrevious':_0x395e('0x14'),'focusNext':'tab'}}),this['listenTo'](_0x46300e,'add',()=>{this[_0x395e('0x8')]=!0x1;}),this[_0x395e('0x0')](_0x46300e,_0x395e('0x9'),(_0x2d99a8,_0x4a9829)=>{_0x4a9829[_0x395e('0x4')]&&this['focus'](),_0x46300e[_0x395e('0x1b')]||(this[_0x395e('0x8')]=!0x0);});const _0x132b1c=this[_0x395e('0x7')];this[_0x395e('0xa')]({'tag':'div','attributes':{'dir':_0x395e('0x6'),'class':['ck','ck-comments-archive'],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':['ck-comments-archive__header\x20']},'children':[{'text':_0x32d3bd(_0x3cfa6e,_0x395e('0x11'))}]},{'tag':_0x395e('0x15'),'attributes':{'class':[_0x395e('0x1')]},'children':[{'tag':_0x395e('0x15'),'children':_0x46300e},{'tag':'p','attributes':{'class':[_0x395e('0xc'),_0x132b1c['if']('isEmpty',_0x395e('0x16'),_0x29d96b=>!_0x29d96b)]},'children':[{'text':_0x32d3bd(_0x3cfa6e,'EMPTY_COMMENTS_ARCHIVE')}]}]}]});}[_0x395e('0x17')](){super[_0x395e('0x17')](),this['_keystrokes']['listenTo'](this[_0x395e('0x13')]);const _0x2e0051=_0x3844c0=>_0x3844c0[_0x395e('0xd')]();this[_0x395e('0x1a')][_0x395e('0xb')](_0x395e('0x18'),_0x2e0051),this[_0x395e('0x1a')][_0x395e('0xb')](_0x395e('0x2'),_0x2e0051),this[_0x395e('0x1a')]['set'](_0x395e('0x5'),_0x2e0051),this[_0x395e('0x1a')][_0x395e('0xb')](_0x395e('0x10'),_0x2e0051),this[_0x395e('0x0')](this[_0x395e('0x13')],'selectstart',(_0x160876,_0x195596)=>{_0x195596[_0x395e('0xd')]();},{'priority':_0x395e('0x19')});}[_0x395e('0xe')](){super[_0x395e('0xe')](),this[_0x395e('0x3')]['destroy'](),this[_0x395e('0x1a')][_0x395e('0xe')]();}[_0x395e('0x12')](){this[_0x395e('0x13')][_0x395e('0x12')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2246=['remove','createCollection','editorDestroyed','_rearrangeExpand','set','render','get','commentUpdated','equal','change:isResolved','comments','bind','listenTo','isEditMode','_handleNewCommentModel','length','Marked\x20as\x20resolved','count','_config','authoredAt','_shouldCollapse','commentViews','ck-thread__comments','delegate','editorConfig','_rearrangeCollapse','expand','visibleViews','removeComment','from','hasDirtyComment','focus','resolvedCommentView','_collapsedCommentsView','resolved','CommentView','maxCommentsWhenCollapsed','_updateHasDirtyComment','_model','_calculatePosition','change:isEditMode','formatDateTime','change:hasDirtyComment','refreshVisibleViews','stopListening','collapse','some','resolvedAt','maxCommentCharsWhenCollapsed','locale','add','isActive','_handleRemoveCommentModel','destroy','resolvedBy','_findOptimalIndex','_handleInfoComment','updateComment'];(function(_0x51ab24,_0x224616){const _0xcb0753=function(_0x5a2ddc){while(--_0x5a2ddc){_0x51ab24['push'](_0x51ab24['shift']());}};_0xcb0753(++_0x224616);}(_0x2246,0x1bb));const _0xcb07=function(_0x51ab24,_0x224616){_0x51ab24=_0x51ab24-0x0;let _0xcb0753=_0x2246[_0x51ab24];return _0xcb0753;};import{View as _0x7b6e65}from'ckeditor5/src/ui';import{diff as _0x39618b,Collection as _0x573522}from'ckeditor5/src/utils';import{getTranslation as _0x40c19b}from'../../../utils/common-translations';import _0x4d198c from'./collapsedcommentsview';export default class wt extends _0x7b6e65{constructor(_0x44829a,_0x23d413,_0x2f0ad2){super(_0x44829a),this['set'](_0xcb07('0x33'),!0x1),this[_0xcb07('0x19')](_0xcb07('0x24'),_0x23d413[_0xcb07('0x1f')][_0xcb07('0x24')]),this[_0xcb07('0x19')](_0xcb07('0xe'),!0x1),this[_0xcb07('0x1')]=_0x23d413,this[_0xcb07('0x27')]=_0x2f0ad2,this[_0xcb07('0x2a')]=this[_0xcb07('0x16')](),this[_0xcb07('0x30')]=this[_0xcb07('0x16')](),this[_0xcb07('0x35')]=null,this['_collapsedCommentsView']=new _0x4d198c(_0x44829a),this[_0xcb07('0x36')][_0xcb07('0x20')](_0xcb07('0x26'))['to'](this,_0xcb07('0x24'),_0x323914=>_0x323914-this[_0xcb07('0x27')][_0xcb07('0x39')]);for(const _0x4fc743 of _0x23d413[_0xcb07('0x1f')])this[_0xcb07('0x23')](_0x4fc743);this[_0xcb07('0x13')](),this[_0xcb07('0x21')](_0x23d413[_0xcb07('0x1f')],_0xcb07('0xd'),(_0x530fff,_0x12c944)=>{const _0x28727c=this['_calculatePosition'](_0x12c944);this['length']++,this[_0xcb07('0x23')](_0x12c944,_0x28727c),this[_0xcb07('0x6')]();}),this[_0xcb07('0x21')](_0x23d413[_0xcb07('0x1f')],_0xcb07('0x15'),(_0x5d266a,_0xbe32be)=>{this[_0xcb07('0x24')]--,this[_0xcb07('0xf')](_0xbe32be),this['refreshVisibleViews']();}),this[_0xcb07('0x21')](_0x23d413,_0xcb07('0x1c'),()=>this['refreshVisibleViews']()),this[_0xcb07('0x21')](_0x23d413,_0xcb07('0x1e'),()=>this[_0xcb07('0x13')]()),this['on']('change:isActive',()=>this[_0xcb07('0x6')]()),this['on'](_0xcb07('0x5'),()=>this[_0xcb07('0x6')]()),this['setTemplate']({'tag':'ul','attributes':{'class':[_0xcb07('0x2b')]},'children':this['visibleViews']});}get[_0xcb07('0x29')](){return this['_model']['weight']>this[_0xcb07('0x27')]['maxThreadTotalWeight']&&!this[_0xcb07('0xe')]&&!this[_0xcb07('0x33')];}['render'](){super[_0xcb07('0x1a')](),this[_0xcb07('0x6')]();}[_0xcb07('0x34')](){this['element'][_0xcb07('0x34')]();}[_0xcb07('0x10')](){this[_0xcb07('0x36')][_0xcb07('0x10')]();for(const _0x2cf7ac of this[_0xcb07('0x2a')])_0x2cf7ac[_0xcb07('0x10')]();super[_0xcb07('0x10')]();}[_0xcb07('0x6')](){this[_0xcb07('0x29')]?this[_0xcb07('0x2e')]():this['_rearrangeExpand']();}[_0xcb07('0x23')](_0x4665db,_0x1de910){const _0x1269bf=new this[(_0xcb07('0x27'))][(_0xcb07('0x38'))](this[_0xcb07('0xc')],_0x4665db,{'maxCommentCharsWhenCollapsed':this[_0xcb07('0x27')][_0xcb07('0xb')],'formatDateTime':this[_0xcb07('0x27')][_0xcb07('0x4')],'editorConfig':this[_0xcb07('0x27')][_0xcb07('0x2d')]});_0x1269bf['viewUid']=_0x4665db['id'],_0x1269bf[_0xcb07('0x2c')](_0xcb07('0x31'))['to'](this),_0x1269bf['delegate'](_0xcb07('0x14'))['to'](this),_0x1269bf[_0xcb07('0x2c')]('resolveCommentThread')['to'](this),_0x1269bf[_0xcb07('0x2c')]('editorReady')['to'](this),_0x1269bf[_0xcb07('0x2c')](_0xcb07('0x17'))['to'](this),this[_0xcb07('0x21')](_0x1269bf,_0xcb07('0x3'),()=>this[_0xcb07('0x0')]()),this[_0xcb07('0x2a')][_0xcb07('0xd')](_0x1269bf,_0x1de910);}[_0xcb07('0x2')](_0x53b32f){const _0x5e96c0=this[_0xcb07('0x1')][_0xcb07('0x12')](_0x53b32f);return this[_0xcb07('0x35')]?this['resolvedCommentView'][_0xcb07('0x28')]>_0x53b32f[_0xcb07('0x28')]?_0x5e96c0-0x1:_0x5e96c0:_0x5e96c0-0x1;}[_0xcb07('0x13')](){if(this[_0xcb07('0x1')][_0xcb07('0x11')]&&this[_0xcb07('0x1')][_0xcb07('0xa')]){const _0x580c20={'id':_0xcb07('0x37'),'author':this[_0xcb07('0x1')][_0xcb07('0x11')],'authoredAt':this['_model'][_0xcb07('0xa')],'content':_0x40c19b(this[_0xcb07('0xc')],_0xcb07('0x25')),'attributes':{}};this[_0xcb07('0x35')]=new this[(_0xcb07('0x27'))]['CommentView'](this[_0xcb07('0xc')],_0x580c20,{'maxCommentCharsWhenCollapsed':this[_0xcb07('0x27')]['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config'][_0xcb07('0x4')],'editorConfig':this[_0xcb07('0x27')][_0xcb07('0x2d')],'isSystemComment':!0x0}),this['commentViews'][_0xcb07('0xd')](this[_0xcb07('0x35')],this['_model'][_0xcb07('0x12')](_0x580c20));}else this[_0xcb07('0x35')]&&(this[_0xcb07('0x2a')]['remove'](this[_0xcb07('0x35')]),this['resolvedCommentView'][_0xcb07('0x10')](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}[_0xcb07('0xf')](_0x4a8798){const _0x48ae20=this[_0xcb07('0x2a')][_0xcb07('0x15')](_0x4a8798['id']);this[_0xcb07('0x7')](_0x48ae20),_0x48ae20[_0xcb07('0x22')]&&this[_0xcb07('0x0')](),_0x48ae20['destroy']();}[_0xcb07('0x0')](){this['hasDirtyComment']=Array[_0xcb07('0x32')](this[_0xcb07('0x2a')])[_0xcb07('0x9')](_0x445766=>_0x445766[_0xcb07('0x22')]);}[_0xcb07('0x2e')](){const _0x464160=function(_0x158c42){const _0x20e9ce=new _0x573522();for(const _0x37270b of _0x158c42)_0x20e9ce[_0xcb07('0xd')](_0x37270b);return _0x20e9ce;}(this[_0xcb07('0x2a')]),_0x60ffa2=this[_0xcb07('0x36')][_0xcb07('0x26')];for(let _0xc99cc0=0x1;_0xc99cc0<=_0x60ffa2;_0xc99cc0++)_0x464160[_0xcb07('0x15')](0x1);for(const _0x50c77d of _0x464160)_0x50c77d[_0xcb07('0x8')]();_0x60ffa2>0x0&&_0x464160[_0xcb07('0xd')](this[_0xcb07('0x36')],0x1),ss(_0x39618b(Array['from'](this['visibleViews']),Array[_0xcb07('0x32')](_0x464160)),this[_0xcb07('0x30')],_0x464160);}[_0xcb07('0x18')](){ss(_0x39618b(Array[_0xcb07('0x32')](this['visibleViews']),Array['from'](this[_0xcb07('0x2a')])),this['visibleViews'],this['commentViews']);for(const _0x3122de of this[_0xcb07('0x30')])_0x3122de[_0xcb07('0x2f')]();}}function ss(_0x575880,_0x2abd09,_0x347fd9){let _0x2a6909=0x0;for(const _0x526cf8 of _0x575880)switch(_0x526cf8){case'insert':_0x2abd09[_0xcb07('0xd')](_0x347fd9[_0xcb07('0x1b')](_0x2a6909),_0x2a6909),_0x2a6909++;break;case'delete':_0x2abd09[_0xcb07('0x15')](_0x2a6909);break;case _0xcb07('0x1d'):_0x2a6909++;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3da5=['tooltip','setTemplate','add','label','mouseleave','fire','length','div','mouseenter','overlay','lastIndexOf','Reopen','hasContext','_attachContextActions','listenTo','element','ck-context','value','render','_model','ck-context--quotes','isVisible','offsetWidth','remove','ck-thread__header','_createReopenButton','classList','ck-annotation__actions','.ck-context__value','context','Comment\x20was\x20made\x20on\x20an\x20element','_trimContextValue','bindTemplate','execute','contextValue','reopenCommentThread','isResolvable','bind','locale','querySelector','reopenButtonView'];(function(_0x1a4a64,_0x3da5d7){const _0x206f50=function(_0x1efa3b){while(--_0x1efa3b){_0x1a4a64['push'](_0x1a4a64['shift']());}};_0x206f50(++_0x3da5d7);}(_0x3da5,0xd2));const _0x206f=function(_0x1a4a64,_0x3da5d7){_0x1a4a64=_0x1a4a64-0x0;let _0x206f50=_0x3da5[_0x1a4a64];return _0x206f50;};import{View as _0x18b2a1,ButtonView as _0x2e5a84}from'ckeditor5/src/ui';import{getTranslation as _0x28b521}from'../../../utils/common-translations';import _0x31d0dd from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Rt extends _0x18b2a1{constructor(_0xd93f21,_0x4aa3aa){super(_0xd93f21);const _0x368d1c=this[_0x206f('0x1b')];this[_0x206f('0xe')]=_0x4aa3aa,this[_0x206f('0x23')]=this[_0x206f('0x14')](),this[_0x206f('0x20')](_0x206f('0x7'))['to'](this[_0x206f('0xe')],_0x206f('0x18'),_0x39aa1b=>!!_0x39aa1b),this[_0x206f('0x20')](_0x206f('0x1d'))['to'](this[_0x206f('0xe')],_0x206f('0x18'),_0x23395c=>_0x23395c&&_0x23395c[_0x206f('0xc')]?this[_0x206f('0x1a')](_0x23395c['value']):_0x28b521(this['locale'],_0x206f('0x19'))),this[_0x206f('0x25')]({'tag':_0x206f('0x2'),'attributes':{'class':[_0x206f('0x13')]},'children':[{'tag':_0x206f('0x2'),'attributes':{'class':['ck-context-wrapper']},'children':[{'tag':_0x206f('0x2'),'attributes':{'class':[_0x206f('0xb'),_0x368d1c['if'](_0x206f('0x7'),_0x206f('0xf'))]},'children':[{'tag':'span','attributes':{'class':['ck-context__value']},'children':[{'text':_0x368d1c['to'](_0x206f('0x1d'))}]}]}]},{'tag':_0x206f('0x2'),'attributes':{'class':[_0x206f('0x16')]},'children':[this[_0x206f('0x23')]]}]});}[_0x206f('0xd')](){super[_0x206f('0xd')](),this[_0x206f('0x8')]();}[_0x206f('0x14')](){const _0x2e0118=new _0x2e5a84(this[_0x206f('0x21')]);return _0x2e0118[_0x206f('0x27')]=_0x28b521(this[_0x206f('0x21')],_0x206f('0x6')),_0x2e0118[_0x206f('0x24')]=_0x28b521(this[_0x206f('0x21')],_0x206f('0x6')),_0x2e0118['icon']=_0x31d0dd,_0x2e0118[_0x206f('0x20')]('isEnabled')['to'](this[_0x206f('0xe')],'isReadOnly',_0x282390=>!_0x282390),_0x2e0118[_0x206f('0x20')](_0x206f('0x10'))['to'](this[_0x206f('0xe')],_0x206f('0x1f')),_0x2e0118['on'](_0x206f('0x1c'),()=>{this[_0x206f('0x0')](_0x206f('0x1e'),this[_0x206f('0xe')]['id']);}),_0x2e0118;}[_0x206f('0x1a')](_0x20ff45){if(_0x20ff45[_0x206f('0x1')]<0x96)return _0x20ff45;const _0x26a9e6=_0x20ff45[_0x206f('0x5')]('\x20',0x93);return _0x20ff45['substring'](0x0,_0x26a9e6>-0x1?_0x26a9e6:0x93)+'...';}['_attachContextActions'](){const _0x1ffcbb=this[_0x206f('0xa')][_0x206f('0x22')]('.ck-context'),_0x41efcf=_0x1ffcbb[_0x206f('0x22')](_0x206f('0x17'));this[_0x206f('0x9')](_0x1ffcbb,_0x206f('0x3'),()=>{_0x41efcf[_0x206f('0x11')]<_0x41efcf['scrollWidth']&&_0x1ffcbb[_0x206f('0x15')][_0x206f('0x26')](_0x206f('0x4'));}),this[_0x206f('0x9')](_0x1ffcbb,_0x206f('0x28'),()=>{_0x1ffcbb[_0x206f('0x15')][_0x206f('0x12')](_0x206f('0x4'));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x115d=['div','ck-thread__input','ck-comment__input-container','ck-thread__user','focusTracker','commentInputView','showInput','editor','editorDestroyed','change:showInput','extendTemplate','editorReady','destroy','showButtons','isFocused','ck-comment__input-container--active','delegate','userView','bindTemplate','createEditor','setTemplate'];(function(_0x48ea44,_0x115ddd){var _0x29c146=function(_0x35eda4){while(--_0x35eda4){_0x48ea44['push'](_0x48ea44['shift']());}};_0x29c146(++_0x115ddd);}(_0x115d,0x77));var _0x29c1=function(_0x48ea44,_0x115ddd){_0x48ea44=_0x48ea44-0x0;var _0x29c146=_0x115d[_0x48ea44];return _0x29c146;};import{View as _0x4f9b1b}from'ckeditor5/src/ui';import _0x519c7e from'./commentinputview';import{UserView as _0x4272da}from'ckeditor5-collaboration/src/collaboration-core';export default class Ct extends _0x4f9b1b{constructor(_0x2da251,_0x2bb317,_0x4de1cf){super(_0x2da251),this['commentInputView']=new _0x519c7e(_0x2da251,_0x4de1cf),this[_0x29c1('0xc')]['bind'](_0x29c1('0x14'))['to'](this[_0x29c1('0xc')][_0x29c1('0xb')],_0x29c1('0x0'),this['commentInputView'],'value',(_0x42fecf,_0x3b79c0)=>_0x42fecf||!!_0x3b79c0),this['set'](_0x29c1('0xd'),!0x1),this['on'](_0x29c1('0x10'),()=>{this[_0x29c1('0xd')]&&!this[_0x29c1('0xc')][_0x29c1('0xe')]&&this['commentInputView'][_0x29c1('0x5')]();}),this['commentInputView']['delegate'](_0x29c1('0x12'))['to'](this),this[_0x29c1('0xc')][_0x29c1('0x2')](_0x29c1('0xf'))['to'](this),this['userView']=new _0x4272da(_0x2da251,_0x2bb317),this['userView'][_0x29c1('0x11')]({'attributes':{'class':_0x29c1('0xa')}}),this[_0x29c1('0xc')]['extendTemplate']({'attributes':{'class':_0x29c1('0x8')}}),this[_0x29c1('0x6')]({'tag':_0x29c1('0x7'),'attributes':{'class':[_0x29c1('0x9'),this[_0x29c1('0x4')]['if'](_0x29c1('0xd'),_0x29c1('0x1'))]},'children':[this[_0x29c1('0x3')],this[_0x29c1('0xc')]]});}[_0x29c1('0x13')](){return this['commentInputView'][_0x29c1('0x13')]()['then'](()=>super[_0x29c1('0x13')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c27=['.ck-thread__container','stop','then','locale','add','listenTo','tooltip','createCollection','ck-reset_all-excluded','div','label','execute','isReadOnly','actionIndicator','resolveButton','querySelector','isVisible','setTemplate','isConfirm','_bindFirstCommentView','get','commentsListView','ck-thread--remove-confirmation','actionBar','ck-comment--resolve','_cancelAllConfirms','length','fire','commentThreadChildren','set','_createResolveButton','addMany','Resolve','change:isReadOnly','ck-thread--active','ck-thread__container','isActive','remove','resolveCommentThread','check','containerElement','placeholder','removeCommentThread','isSystemComment','commentThreadHeaderView','Delete\x20comment\x20thread?','isResolvable','ck-thread','cancelConfirm','_boundFirstCommentView','bindTemplate','extendTemplate','isResolved','element','render','commentViews','change:isResolved','bind','ck-thread--','_model'];(function(_0x6b2ad9,_0x5c2741){const _0xa8c082=function(_0x460a87){while(--_0x460a87){_0x6b2ad9['push'](_0x6b2ad9['shift']());}};_0xa8c082(++_0x5c2741);}(_0x5c27,0x80));const _0xa8c0=function(_0x6b2ad9,_0x5c2741){_0x6b2ad9=_0x6b2ad9-0x0;let _0xa8c082=_0x5c27[_0x6b2ad9];return _0xa8c082;};import{ConfirmMixin as _0x411efc}from'ckeditor5-collaboration/src/collaboration-core';import{ButtonView as _0x117e7d}from'ckeditor5/src/ui';import{icons as _0x32064f}from'ckeditor5/src/core';import _0x544402 from'./basecommentthreadview';import{getTranslation as _0x5d2288}from'../../../utils/common-translations';export default class lt extends _0x411efc(_0x544402){constructor(_0x5876a0,_0x3e27d3,_0x19eff,_0xb865a6){super(_0x5876a0,_0x3e27d3,_0x19eff,_0xb865a6),this[_0xa8c0('0x14')]=this[_0xa8c0('0x3b')](),this[_0xa8c0('0x14')][_0xa8c0('0x17')]([this[_0xa8c0('0xd')],this['commentThreadInputView']]),this['_model'][_0xa8c0('0x2c')]&&this[_0xa8c0('0x14')][_0xa8c0('0x38')](this[_0xa8c0('0x24')],0x0),this['_model']['on'](_0xa8c0('0x30'),(_0x19f2d9,_0x379409,_0x1ac516)=>{_0x1ac516?this['commentThreadChildren'][_0xa8c0('0x38')](this[_0xa8c0('0x24')],0x0):this[_0xa8c0('0x14')][_0xa8c0('0x1d')](this[_0xa8c0('0x24')]);}),this[_0xa8c0('0x15')](_0xa8c0('0x5'),null),this[_0xa8c0('0x20')]=null,this[_0xa8c0('0x29')]=null,this[_0xa8c0('0x37')]=_0x5876a0,this[_0xa8c0('0x6')]=this[_0xa8c0('0x16')](),this[_0xa8c0('0x9')](this['getTemplate']()),this['on']('change:isActive',(_0x4eb20d,_0x5e2247,_0x1b3b92)=>{_0x1b3b92||this[_0xa8c0('0x11')]();}),this[_0xa8c0('0x39')](this[_0xa8c0('0x33')],_0xa8c0('0x19'),(_0x1dbbc4,_0x296c9e,_0x5c4575)=>{_0x5c4575&&this[_0xa8c0('0x11')]();}),this[_0xa8c0('0x12')]>0x0&&this[_0xa8c0('0xb')](),this[_0xa8c0('0x39')](this['commentsListView'][_0xa8c0('0x2f')],_0xa8c0('0x38'),()=>{this[_0xa8c0('0xb')]();});}['getTemplate'](){const _0x2220b8=this[_0xa8c0('0x2a')];return{'tag':_0xa8c0('0x1'),'attributes':{'class':[_0xa8c0('0x27'),_0xa8c0('0x0'),_0x2220b8['if'](_0xa8c0('0x1c'),_0xa8c0('0x1a')),_0x2220b8['if'](_0xa8c0('0xa'),_0xa8c0('0xe')),_0x2220b8['to']('actionIndicator',_0x1a4daa=>_0x1a4daa?_0xa8c0('0x32')+_0x1a4daa:'')],'data-thread-id':this[_0xa8c0('0x33')]['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':_0xa8c0('0x1b')},'children':this['commentThreadChildren']}]};}[_0xa8c0('0x2e')](){super[_0xa8c0('0x2e')](),this['containerElement']=this[_0xa8c0('0x2d')][_0xa8c0('0x7')](_0xa8c0('0x34'));}[_0xa8c0('0x11')](){this[_0xa8c0('0x28')]();for(const _0x1b0a87 of this[_0xa8c0('0xd')][_0xa8c0('0x2f')])_0x1b0a87[_0xa8c0('0x28')]();}['_bindFirstCommentView'](){const {locale:_0x160e1c}=this,_0x4a13f0=this[_0xa8c0('0xd')]['commentViews'][_0xa8c0('0xc')](0x0);_0x4a13f0===this[_0xa8c0('0x29')]||_0x4a13f0[_0xa8c0('0x23')]||(this[_0xa8c0('0x29')]=_0x4a13f0,this['unbind']('actionIndicator'),this[_0xa8c0('0x31')]('actionIndicator')['to'](_0x4a13f0,_0xa8c0('0x5'),_0x3dd0f2=>'remove'===_0x3dd0f2?_0xa8c0('0x1d'):null),_0x4a13f0[_0xa8c0('0x21')]=_0x5d2288(_0x160e1c,'Write\x20a\x20comment...'),_0x4a13f0['removeButton']['on'](_0xa8c0('0x3'),_0x35a213=>{_0x35a213[_0xa8c0('0x35')](),this['showConfirm'](_0x5d2288(_0x160e1c,_0xa8c0('0x25')),this['containerElement'])[_0xa8c0('0x36')](()=>{this[_0xa8c0('0x13')](_0xa8c0('0x22'));});},{'priority':'high'}),_0x4a13f0[_0xa8c0('0xf')][_0xa8c0('0x38')](this[_0xa8c0('0x6')],0x0));}[_0xa8c0('0x16')](){const _0x1b1a32=new _0x117e7d(this['locale']);return _0x1b1a32[_0xa8c0('0x2')]=_0x5d2288(this[_0xa8c0('0x37')],'Resolve'),_0x1b1a32[_0xa8c0('0x3a')]=_0x5d2288(this[_0xa8c0('0x37')],_0xa8c0('0x18')),_0x1b1a32['icon']=_0x32064f[_0xa8c0('0x1f')],_0x1b1a32[_0xa8c0('0x2b')]({'attributes':{'class':_0xa8c0('0x10')}}),_0x1b1a32[_0xa8c0('0x31')]('isEnabled')['to'](this[_0xa8c0('0x33')],_0xa8c0('0x4'),_0x3789ff=>!_0x3789ff),_0x1b1a32[_0xa8c0('0x31')](_0xa8c0('0x8'))['to'](this[_0xa8c0('0x33')],_0xa8c0('0x26'),this['_model'],'isResolved',(_0x137b7c,_0x55e9dc)=>_0x137b7c&&!_0x55e9dc),_0x1b1a32['on']('execute',()=>{this[_0xa8c0('0x13')](_0xa8c0('0x1e'),this[_0xa8c0('0x33')]['id']);}),_0x1b1a32;}}
|