@ckeditor/ckeditor5-comments 0.0.0-nightly-20240130.0 → 0.0.0-nightly-20240131.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 _0x5763=['_handleImportedData','forEach','importWord','basic','listenTo','collaboration.channelId','config','get','plugins','high','define','dataInsert','afterInit','editor','execute'];(function(_0x2da2e2,_0x5763a3){const _0x2612d4=function(_0x301020){while(--_0x301020){_0x2da2e2['push'](_0x2da2e2['shift']());}};_0x2612d4(++_0x5763a3);}(_0x5763,0x123));const _0x2612=function(_0x2da2e2,_0x5763a3){_0x2da2e2=_0x2da2e2-0x0;let _0x2612d4=_0x5763[_0x2da2e2];return _0x2612d4;};import{Plugin as _0x14705b}from'ckeditor5/src/core.js';import{priorities as _0x568490}from'ckeditor5/src/utils.js';import{Users as _0x51b28a}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x557773 from'../commentsrepository.js';export default class Z extends _0x14705b{constructor(_0x474e8a){super(_0x474e8a),this[_0x2612('0x7')]['config'][_0x2612('0x4')]('importWord.formatting.comments',_0x2612('0xc'));}[_0x2612('0x6')](){const _0x3f1b1e=this['editor'],_0x393dde=_0x3f1b1e['commands'][_0x2612('0x1')](_0x2612('0xb')),_0x2ea192=_0x3f1b1e['plugins'][_0x2612('0x1')](_0x51b28a);_0x393dde&&(_0x393dde['on'](_0x2612('0x8'),(_0x4eaf1e,[,_0x31f29d])=>{_0x31f29d['collaboration_features']={'comments':!0x0,'user_id':_0x2ea192['me']['id']};},{'priority':_0x568490[_0x2612('0x3')]+0xa}),this[_0x2612('0xd')](_0x393dde,_0x2612('0x5'),this[_0x2612('0x9')]));}[_0x2612('0x9')](_0x433b6a,_0x4627d0){const {comment_threads:_0x45d576}=_0x4627d0;_0x45d576&&_0x45d576[_0x2612('0xa')](({thread_id:_0x2d75d1,comments:_0x52d6e8,is_resolved:_0x26dc5e})=>{const _0x26c2d9=new Date(),_0xe757f5=_0x52d6e8['map'](({author:_0x571fca,content:_0x549574,created_at:_0x39b07c})=>({'content':_0x549574,'authorId':this['editor'][_0x2612('0x2')][_0x2612('0x1')](_0x51b28a)['me']['id'],'createdAt':_0x26c2d9,'attributes':{'@external':{'authorName':_0x571fca,'createdAt':_0x39b07c?new Date(_0x39b07c):new Date(),'source':'importWord'}}})),_0x5df57e=this[_0x2612('0x7')][_0x2612('0x0')][_0x2612('0x1')](_0x2612('0xe'));this[_0x2612('0x7')][_0x2612('0x2')][_0x2612('0x1')](_0x557773)['addCommentThread']({'channelId':_0x5df57e,'threadId':_0x2d75d1,'comments':_0xe757f5,'resolvedAt':_0x26dc5e?_0x26c2d9:null});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1137=['change','placeholder','_updatePlaceholder','fire','low','data','init','editing','view','getRoot','model','document','defaultPlugins','ready','destroy','end','focus','change:placeholder','placeholderElement','getChild','create','assign','initPlugins','childCount','then','plugins','config'];(function(_0xff466b,_0x11376d){const _0x601120=function(_0x480d0f){while(--_0x480d0f){_0xff466b['push'](_0xff466b['shift']());}};_0x601120(++_0x11376d);}(_0x1137,0xa7));const _0x6011=function(_0xff466b,_0x11376d){_0xff466b=_0xff466b-0x0;let _0x601120=_0x1137[_0xff466b];return _0x601120;};import{Editor as _0x306b4b,DataApiMixin as _0x337800}from'ckeditor5/src/core.js';import _0x4a1d18 from'./commenteditorui.js';import{ObservableMixin as _0x34caa0}from'ckeditor5/src/utils.js';import{enablePlaceholder as _0x565109,disablePlaceholder as _0x5782ea}from'ckeditor5/src/engine.js';import{Clipboard as _0x45164b}from'ckeditor5/src/clipboard.js';import{Enter as _0x127af2,ShiftEnter as _0x4dd0dd}from'ckeditor5/src/enter.js';import{SelectAll as _0xef9046}from'ckeditor5/src/select-all.js';import{Typing as _0x5ede89}from'ckeditor5/src/typing.js';import{Undo as _0x307883}from'ckeditor5/src/undo.js';import{Paragraph as _0x28c1b7}from'ckeditor5/src/paragraph.js';const Mt=[_0x45164b,_0x127af2,_0x4dd0dd,_0xef9046,_0x5ede89,_0x307883,_0x28c1b7];class Nt extends _0x34caa0(_0x337800(_0x306b4b)){constructor(_0x541b12={}){(_0x541b12=Object[_0x6011('0x10')]({},_0x541b12))['plugins']||(_0x541b12[_0x6011('0x14')]=Nt['defaultPlugins']),super(_0x541b12),this['ui']=new _0x4a1d18(this),this['set']('placeholder',''),this[_0x6011('0x5')][_0x6011('0x6')]['on'](_0x6011('0x16'),()=>this[_0x6011('0x18')](),{'priority':_0x6011('0x1a')}),this['on'](_0x6011('0xc'),()=>this['_updatePlaceholder']()),this[_0x6011('0x5')][_0x6011('0x6')]['createRoot']();}[_0x6011('0xf')](){const _0x501cc1=this[_0x6011('0x15')]['get']('initialData')||'';return this[_0x6011('0x11')]()[_0x6011('0x13')](()=>this['ui']['init']())[_0x6011('0x13')](()=>this[_0x6011('0x0')][_0x6011('0x1')](_0x501cc1))['then'](()=>this[_0x6011('0x19')](_0x6011('0x8')));}['destroy'](){return super[_0x6011('0x9')]()[_0x6011('0x13')](()=>this['ui']['destroy']());}[_0x6011('0xb')](){this[_0x6011('0x5')][_0x6011('0x16')](_0x3a4523=>{const _0x1265e9=this['model'][_0x6011('0x6')][_0x6011('0x4')](),_0x15197a=_0x1265e9&&_0x1265e9[_0x6011('0xe')](_0x1265e9[_0x6011('0x12')]-0x1);_0x3a4523['setSelection'](_0x15197a,_0x6011('0xa')),this[_0x6011('0x2')][_0x6011('0x3')]['focus']();});}['_updatePlaceholder'](){const _0x140443=this['editing'][_0x6011('0x3')],_0x54aec3=_0x140443[_0x6011('0x6')][_0x6011('0x4')](),_0x18ae02=_0x54aec3['getChild'](0x0);_0x54aec3['childCount']>0x1||!_0x18ae02||'p'!=_0x18ae02['name']?this['placeholderElement']&&this[_0x6011('0xd')]['placeholder']&&(_0x5782ea(_0x140443,this[_0x6011('0xd')]),this[_0x6011('0xd')]=void 0x0):(this[_0x6011('0x17')]&&(_0x18ae02[_0x6011('0x17')]=this['placeholder']),_0x565109({'view':_0x140443,'element':_0x18ae02,'keepOnFocus':!0x0}),this[_0x6011('0xd')]=_0x18ae02);}}Nt[_0x6011('0x7')]=Mt;export default Nt;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x56b1=['getRoot','document','bind','focusTracker','locale','name','destroy','editable','editor','view','init','render','editing','ready','element','rootName','attachDomRoot'];(function(_0x148aa1,_0x56b1a0){const _0x1d1ee1=function(_0x5aab4e){while(--_0x5aab4e){_0x148aa1['push'](_0x148aa1['shift']());}};_0x1d1ee1(++_0x56b1a0);}(_0x56b1,0xba));const _0x1d1e=function(_0x148aa1,_0x56b1a0){_0x148aa1=_0x148aa1-0x0;let _0x1d1ee1=_0x56b1[_0x148aa1];return _0x1d1ee1;};import{EditorUI as _0x47b3e3}from'ckeditor5/src/ui.js';import _0x2aff2d from'./commenteditoruiview.js';export default class Ft extends _0x47b3e3{constructor(_0x35ffd2){super(_0x35ffd2),this[_0x1d1e('0xa')]=new _0x2aff2d(_0x35ffd2[_0x1d1e('0x5')],_0x35ffd2[_0x1d1e('0xd')][_0x1d1e('0xa')]);}get[_0x1d1e('0xf')](){return this[_0x1d1e('0xa')][_0x1d1e('0xf')];}[_0x1d1e('0xb')](){const _0x1bf384=this[_0x1d1e('0x9')][_0x1d1e('0xd')]['view'],_0x1aa16a=this['view'][_0x1d1e('0x8')],_0x16e88a=_0x1bf384[_0x1d1e('0x2')][_0x1d1e('0x1')]();_0x1aa16a[_0x1d1e('0x6')]=_0x16e88a[_0x1d1e('0x10')],this['view'][_0x1d1e('0xc')]();const _0x20d2b3=_0x1aa16a[_0x1d1e('0xf')];this['setEditableElement'](_0x1aa16a[_0x1d1e('0x6')],_0x20d2b3),this['view']['editable'][_0x1d1e('0x3')]('isFocused')['to'](this[_0x1d1e('0x4')]),_0x1bf384[_0x1d1e('0x0')](_0x20d2b3),this['fire'](_0x1d1e('0xe'));}[_0x1d1e('0x7')](){super[_0x1d1e('0x7')](),this[_0x1d1e('0xa')][_0x1d1e('0x7')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xe84c=['focus','uiLanguage','Comment\x20editor','add','ck-comment__input','ck-voice-label','presentation','_voiceLabelView','editable','ck-editor__main','_createVoiceLabel','div','cke-editor__aria-label_','ck-rounded-corners','ck-reset','main','ck-editor__aria-label_','render','text','createCollection','extendTemplate','element'];(function(_0x412329,_0xe84c44){const _0x4f7878=function(_0x101555){while(--_0x101555){_0x412329['push'](_0x412329['shift']());}};_0x4f7878(++_0xe84c44);}(_0xe84c,0x175));const _0x4f78=function(_0x412329,_0xe84c44){_0x412329=_0x412329-0x0;let _0x4f7878=_0xe84c[_0x412329];return _0x4f7878;};import{InlineEditableUIView as _0x2c2827,EditorUIView as _0x309a97,LabelView as _0x8cbf0b}from'ckeditor5/src/ui.js';import{uid as _0x3bbb5a}from'ckeditor5/src/utils.js';import{getTranslation as _0x47c290}from'../../../utils/common-translations.js';export default class Rt extends _0x309a97{constructor(_0xa31bfb,_0x46b799){super(_0xa31bfb);const _0x49fcd2=_0x3bbb5a();this[_0x4f78('0x10')]=this[_0x4f78('0x14')](),this[_0x4f78('0x9')]=new _0x2c2827(_0xa31bfb,_0x46b799),this[_0x4f78('0x8')]=this[_0x4f78('0xb')](_0x49fcd2,_0xa31bfb),this['setTemplate']({'tag':_0x4f78('0xc'),'attributes':{'class':[_0x4f78('0xf'),'ck-editor',_0x4f78('0xe'),_0x4f78('0x5')],'role':'comment','dir':_0xa31bfb['uiLanguageDirection'],'lang':_0xa31bfb[_0x4f78('0x2')],'aria-labelledby':_0x4f78('0xd')+_0x49fcd2},'children':[this[_0x4f78('0x8')],{'tag':_0x4f78('0xc'),'attributes':{'class':_0x4f78('0xa'),'role':_0x4f78('0x7')},'children':this['main']}]});}['render'](){super[_0x4f78('0x12')](),this[_0x4f78('0x10')][_0x4f78('0x4')](this[_0x4f78('0x9')]);}['focus'](){this['editable'][_0x4f78('0x0')][_0x4f78('0x1')]();}[_0x4f78('0xb')](_0x1587ac,_0x328fc7){const _0x4edd86=new _0x8cbf0b();return _0x4edd86[_0x4f78('0x13')]=_0x47c290(_0x328fc7,_0x4f78('0x3')),_0x4edd86[_0x4f78('0x15')]({'attributes':{'id':_0x4f78('0x11')+_0x1587ac,'class':_0x4f78('0x6')}}),_0x4edd86;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5f14=['isResolved','_localUser','submitCommentThread','destroy','update','_isAttached','listenTo','getComment','removeCommentThread','reopenCommentThread','submit','remove','resolve','stopListening','reopen','updateComment','addComment','view','model','removeComment'];(function(_0x337ee8,_0x5f146e){var _0x1711c5=function(_0x28708e){while(--_0x28708e){_0x337ee8['push'](_0x337ee8['shift']());}};_0x1711c5(++_0x5f146e);}(_0x5f14,0x13c));var _0x1711=function(_0x337ee8,_0x5f146e){_0x337ee8=_0x337ee8-0x0;var _0x1711c5=_0x5f14[_0x337ee8];return _0x1711c5;};import{ObservableMixin as _0x168b91}from'ckeditor5/src/utils.js';export default class ut extends _0x168b91(){constructor(_0x219e26,_0x273b27){super(),this[_0x1711('0x2')]=_0x219e26,this[_0x1711('0x2')][_0x1711('0x9')]=!0x0,this[_0x1711('0x1')]=_0x273b27,this[_0x1711('0xa')](_0x273b27,_0x1711('0x6'),()=>this[_0x1711('0xe')]()),this[_0x1711('0xa')](_0x273b27,_0x1711('0xc'),()=>this['remove']()),this[_0x1711('0xa')](_0x273b27,'resolveCommentThread',()=>this[_0x1711('0x10')]()),this[_0x1711('0xa')](_0x273b27,_0x1711('0xd'),()=>this[_0x1711('0x12')]()),this[_0x1711('0xa')](_0x273b27,_0x1711('0x0'),(_0x420f10,_0x391315)=>this[_0x1711('0x0')](_0x391315)),this['listenTo'](_0x273b27,_0x1711('0x13'),(_0x58754f,_0x47c16d,_0x5566c9)=>this['updateComment'](_0x47c16d,_0x5566c9)),this[_0x1711('0xa')](_0x273b27,'removeComment',(_0xc77ec4,_0x4d9c09)=>this[_0x1711('0x3')](_0x4d9c09));}[_0x1711('0xe')](){this['model'][_0x1711('0xe')]();}[_0x1711('0xf')](){this[_0x1711('0x2')]['remove']();}[_0x1711('0x10')](){this[_0x1711('0x2')][_0x1711('0x4')]||this[_0x1711('0x2')][_0x1711('0x10')]();}[_0x1711('0x12')](){this[_0x1711('0x2')][_0x1711('0x4')]&&this[_0x1711('0x2')][_0x1711('0x12')]();}[_0x1711('0x0')](_0x19b8cc){this[_0x1711('0x2')][_0x1711('0x0')]({'content':_0x19b8cc,'authorId':this[_0x1711('0x1')][_0x1711('0x5')]['id']});}[_0x1711('0x13')](_0x29e15b,_0x335f59){this[_0x1711('0x2')][_0x1711('0xb')](_0x29e15b)[_0x1711('0x8')]({'content':_0x335f59});}[_0x1711('0x3')](_0x2436b2){this[_0x1711('0x2')][_0x1711('0xb')](_0x2436b2)[_0x1711('0xf')]();}[_0x1711('0x7')](){this[_0x1711('0x11')](),this[_0x1711('0x2')][_0x1711('0x9')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2548=['isResolvable','canComment','archivedAt','_model','resolveCommentThread','isActive','submitLabel','removeCommentThread','focus','Write\x20a\x20comment...','_config','removeComment','CommentView','disabledSubmit','_createCommentThreadInputView','set','placeholder','cancel','Reply\x20to\x20reopen\x20discussion...','isReadOnly','element','unlinkedAt','length','commentThreadHeaderView','showInput','fire','_localUser','delegate','isResolved','change:isActive','destroy','commentInputView','Comment','isUnlinked','reopenCommentThread','assign','isDirty','editorReady','value','submitCommentThread','addComment','bind','Reply...','editorDestroyed','commentThreadInputView','editorConfig','commentsListView','locale','listenTo'];(function(_0x50279d,_0x2548b2){const _0x2ca7c4=function(_0x346861){while(--_0x346861){_0x50279d['push'](_0x50279d['shift']());}};_0x2ca7c4(++_0x2548b2);}(_0x2548,0x1b5));const _0x2ca7=function(_0x50279d,_0x2548b2){_0x50279d=_0x50279d-0x0;let _0x2ca7c4=_0x2548[_0x50279d];return _0x2ca7c4;};import{View as _0x3961c9}from'ckeditor5/src/ui.js';import _0x41e948 from'./commentthreadinputview.js';import _0x3c1e3f from'./commentslistview.js';import _0x2b5398 from'./commentthreadheaderview.js';import{getTranslation as _0x3840dd}from'../../../utils/common-translations.js';export default class Ut extends _0x3961c9{constructor(_0x54fe8c,_0x21af01,_0x3e34ef,_0x460a6c){super(_0x54fe8c),this[_0x2ca7('0x13')](_0x2ca7('0x9'),!0x1),this[_0x2ca7('0x13')](_0x2ca7('0x28'),!0x1),this[_0x2ca7('0x7')]=_0x21af01,this[_0x2ca7('0x1e')]=_0x3e34ef,this[_0x2ca7('0xe')]=_0x460a6c,this[_0x2ca7('0x1b')]=new _0x2b5398(_0x54fe8c,_0x21af01),this[_0x2ca7('0x1b')][_0x2ca7('0x1f')](_0x2ca7('0x26'))['to'](this),this['listenTo'](this,_0x2ca7('0x26'),()=>{this[_0x2ca7('0xc')]();}),this[_0x2ca7('0x1')]=new _0x3c1e3f(_0x54fe8c,_0x21af01,Object[_0x2ca7('0x27')]({'CommentView':this['_config'][_0x2ca7('0x10')]},_0x460a6c)),this[_0x2ca7('0x1')][_0x2ca7('0x1f')](_0x2ca7('0xf'))['to'](this),this[_0x2ca7('0x1')][_0x2ca7('0x1f')]('updateComment')['to'](this),this[_0x2ca7('0x1')][_0x2ca7('0x1f')](_0x2ca7('0x8'))['to'](this),this[_0x2ca7('0x1')][_0x2ca7('0x1f')]('editorReady')['to'](this),this[_0x2ca7('0x1')][_0x2ca7('0x1f')](_0x2ca7('0x2f'))['to'](this),this[_0x2ca7('0x1')]['bind'](_0x2ca7('0x9'))['to'](this),this[_0x2ca7('0x3')](this,_0x2ca7('0x8'),()=>{this[_0x2ca7('0xc')]();}),this[_0x2ca7('0x13')](_0x2ca7('0x1a'),this[_0x2ca7('0x1')][_0x2ca7('0x1a')]),this[_0x2ca7('0x2d')](_0x2ca7('0x1a'))['to'](this[_0x2ca7('0x1')],_0x2ca7('0x1a')),this[_0x2ca7('0x30')]=this['_createCommentThreadInputView'](),this[_0x2ca7('0x30')][_0x2ca7('0x1f')](_0x2ca7('0x29'))['to'](this),this[_0x2ca7('0x30')]['delegate'](_0x2ca7('0x2f'))['to'](this),this['on'](_0x2ca7('0xf'),()=>this[_0x2ca7('0xc')]()),this[_0x2ca7('0x2d')](_0x2ca7('0x28'))['to'](this[_0x2ca7('0x1')],'hasDirtyComment',this[_0x2ca7('0x30')][_0x2ca7('0x23')],_0x2ca7('0x2a'),(_0x4eac33,_0x15ba44)=>_0x4eac33||!!_0x15ba44),this[_0x2ca7('0x2d')](_0x2ca7('0x25'))['to'](_0x21af01,_0x2ca7('0x19'),_0x1205b3=>!!_0x1205b3);}[_0x2ca7('0xc')](){this[_0x2ca7('0x18')][_0x2ca7('0xc')]();}async[_0x2ca7('0x22')](){this[_0x2ca7('0x28')]=!0x1,this[_0x2ca7('0x1')][_0x2ca7('0x22')](),await this[_0x2ca7('0x30')][_0x2ca7('0x22')](),super[_0x2ca7('0x22')]();}[_0x2ca7('0x12')](){const _0x117588=new _0x41e948(this[_0x2ca7('0x2')],this['_localUser'],this[_0x2ca7('0xe')][_0x2ca7('0x0')]),_0x4a5605=_0x117588[_0x2ca7('0x23')];return _0x117588['bind'](_0x2ca7('0x1c'))['to'](this,'isActive',this[_0x2ca7('0x7')],_0x2ca7('0x17'),this[_0x2ca7('0x7')],_0x2ca7('0x5'),this['_model'],_0x2ca7('0x6'),_0x4a5605,_0x2ca7('0x2a'),(_0x5d4c75,_0x9f674f,_0x3d6bc4,_0x2d1ef1,_0xa26423)=>!!_0xa26423||!!_0x2d1ef1&&_0x3d6bc4&&!_0x9f674f||_0x5d4c75&&_0x3d6bc4&&!_0x9f674f),_0x4a5605[_0x2ca7('0x2d')](_0x2ca7('0x14'))['to'](this,_0x2ca7('0x1a'),this[_0x2ca7('0x7')],_0x2ca7('0x4'),this[_0x2ca7('0x7')],_0x2ca7('0x20'),(_0x39e10a,_0x4dfa8b,_0x1171ad)=>{let _0x146985;return _0x146985=_0x1171ad&&_0x4dfa8b?_0x2ca7('0x16'):_0x39e10a?_0x2ca7('0x2e'):_0x2ca7('0xd'),_0x3840dd(this[_0x2ca7('0x2')],_0x146985);}),_0x4a5605[_0x2ca7('0x2d')](_0x2ca7('0xa'))['to'](this,'length',_0x250bb2=>_0x3840dd(this[_0x2ca7('0x2')],_0x250bb2?'Reply':_0x2ca7('0x24'))),_0x4a5605['on']('submit',(_0x5412c6,_0x54d5da)=>{this[_0x2ca7('0x1d')](_0x2ca7('0x2c'),_0x54d5da),this[_0x2ca7('0x7')][_0x2ca7('0x20')]&&this[_0x2ca7('0x7')][_0x2ca7('0x4')]&&this[_0x2ca7('0x1d')](_0x2ca7('0x26'),this[_0x2ca7('0x7')]['id']),this[_0x2ca7('0x7')]['isSubmitted']||this[_0x2ca7('0x1d')](_0x2ca7('0x2b'));}),_0x4a5605['on'](_0x2ca7('0x15'),()=>{this[_0x2ca7('0xc')]();}),_0x4a5605[_0x2ca7('0x2d')](_0x2ca7('0x11'))['to'](this[_0x2ca7('0x7')],'isReadOnly'),_0x4a5605['on']('cancel',_0x417e1d=>{0x0==this[_0x2ca7('0x1a')]&&(this[_0x2ca7('0x1d')](_0x2ca7('0xb')),_0x417e1d['stop']());}),this['on'](_0x2ca7('0x21'),(_0x2a2cf,_0x5c20d4,_0x56e82d)=>{_0x56e82d||this['length']||_0x4a5605[_0x2ca7('0x2a')]||this[_0x2ca7('0x1d')]('removeCommentThread');}),_0x117588;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5812=['_config','visibleView','updateComment','_model','createEditor','isSystemComment','cancel','add','isReadOnly','focus','editorDestroyed','bind','submitLabel','set','submit','once','isEditMode','editorConfig','editorReady','createCollection','_createCommentInputView','value','initialData','remove','switchToDisplayMode','locale','_createCommentContentView','fire','isCollapsed','element','switchToEditMode','content','destroy','delegate','Save','get','expand'];(function(_0x46dc43,_0x5812e6){const _0x53b46c=function(_0x1e0b9e){while(--_0x1e0b9e){_0x46dc43['push'](_0x46dc43['shift']());}};_0x53b46c(++_0x5812e6);}(_0x5812,0x18d));const _0x53b4=function(_0x46dc43,_0x5812e6){_0x46dc43=_0x46dc43-0x0;let _0x53b46c=_0x5812[_0x46dc43];return _0x53b46c;};import{View as _0x29c0ed}from'ckeditor5/src/ui.js';import{trimHtml as _0x8772f1}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x40b639 from'./commentcontentview.js';import _0x20006c from'./commentinputview.js';import{getTranslation as _0x3e7c3c}from'../../../utils/common-translations.js';export default class ti extends _0x29c0ed{constructor(_0x5245fc,_0x4d4901,_0x50b285){super(_0x5245fc),this[_0x53b4('0xd')]=_0x4d4901,this['_config']=_0x50b285,this['isSystemComment']=!!this[_0x53b4('0xa')][_0x53b4('0xf')],this[_0x53b4('0x17')]('isEditMode',!0x1),this[_0x53b4('0x17')]('isCollapsed',!0x0),this['visibleView']=this[_0x53b4('0x1d')](),this[_0x53b4('0xb')]['add'](this[_0x53b4('0x24')]());}[_0x53b4('0x9')](){this[_0x53b4('0x1')]=!0x1;}['collapse'](){this[_0x53b4('0x1a')]||(this[_0x53b4('0x1')]=!0x0);}[_0x53b4('0x13')](){this[_0x53b4('0x2')]['focus']();}async[_0x53b4('0x5')](){await this[_0x53b4('0xb')][_0x53b4('0x8')](0x0)['destroy'](),super['destroy']();}[_0x53b4('0x3')](){this[_0x53b4('0x1a')]||(this['isEditMode']=!0x0,this['visibleView']['remove'](0x0)[_0x53b4('0x5')](),this[_0x53b4('0xb')]['add'](this[_0x53b4('0x1e')]()));}[_0x53b4('0x22')](){this[_0x53b4('0x1a')]&&(this[_0x53b4('0x1a')]=!0x1,this[_0x53b4('0xb')][_0x53b4('0x21')](0x0)[_0x53b4('0x5')](),this['visibleView'][_0x53b4('0x11')](this[_0x53b4('0x24')]()));}[_0x53b4('0x24')](){const _0x1f3995=new _0x40b639(this[_0x53b4('0x23')]);return _0x1f3995[_0x53b4('0x15')](_0x53b4('0x4'))['to'](this[_0x53b4('0xd')],_0x53b4('0x4'),this,_0x53b4('0x1'),(_0x10d59c,_0x121b83)=>_0x121b83?_0x8772f1(_0x10d59c,{'limit':this[_0x53b4('0xa')]['maxCommentCharsWhenCollapsed']}):_0x10d59c),_0x1f3995;}[_0x53b4('0x1e')](){this[_0x53b4('0xa')]['editorConfig']||(this[_0x53b4('0xa')][_0x53b4('0x1b')]={}),this[_0x53b4('0xa')]['editorConfig'][_0x53b4('0x20')]=this['_model'][_0x53b4('0x4')];const _0x5b28fb=new _0x20006c(this[_0x53b4('0x23')],this[_0x53b4('0xa')]['editorConfig']);return _0x5b28fb[_0x53b4('0x1f')]=this[_0x53b4('0xd')][_0x53b4('0x4')],_0x5b28fb[_0x53b4('0x15')]('disabledSubmit')['to'](this[_0x53b4('0xd')],_0x53b4('0x12')),_0x5b28fb[_0x53b4('0x16')]=_0x3e7c3c(this['locale'],_0x53b4('0x7')),_0x5b28fb['on'](_0x53b4('0x18'),(_0x3b538c,_0x4dc6d7)=>{this[_0x53b4('0x0')](_0x53b4('0xc'),this['_model']['id'],_0x4dc6d7),this[_0x53b4('0x22')](),this[_0x53b4('0x13')]();}),_0x5b28fb['on'](_0x53b4('0x10'),()=>{this[_0x53b4('0x22')](),this[_0x53b4('0x13')]();}),_0x5b28fb[_0x53b4('0x19')]('editorReady',()=>{_0x5b28fb[_0x53b4('0x13')]();}),_0x5b28fb[_0x53b4('0xe')](),_0x5b28fb[_0x53b4('0x6')](_0x53b4('0x1c'))['to'](this),_0x5b28fb[_0x53b4('0x6')](_0x53b4('0x14'))['to'](this),_0x5b28fb;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x50be=['NUMBER_OF_COMMENTS','set','count','ck-thread__comment-count','bindTemplate'];(function(_0x568a78,_0x50be03){const _0x43f221=function(_0x43a167){while(--_0x43a167){_0x568a78['push'](_0x568a78['shift']());}};_0x43f221(++_0x50be03);}(_0x50be,0x1cf));const _0x43f2=function(_0x568a78,_0x50be03){_0x568a78=_0x568a78-0x0;let _0x43f221=_0x50be[_0x568a78];return _0x43f221;};import{View as _0x102a11}from'ckeditor5/src/ui.js';import{getTranslation as _0x114839}from'../../../utils/common-translations.js';export default class ts extends _0x102a11{constructor(_0x33c04c){super(_0x33c04c);const _0x1612be=this[_0x43f2('0x1')];this[_0x43f2('0x3')](_0x43f2('0x4'),void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':_0x43f2('0x0')},'children':[{'text':_0x1612be['to'](_0x43f2('0x4'),_0x57c377=>_0x114839(_0x33c04c,_0x43f2('0x2'),_0x57c377))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x20bc=['div','ck-annotation__content','set','setTemplate','content','innerHTML','render','element','ck-comment__content'];(function(_0x1a2650,_0x20bc3c){var _0x2e53a0=function(_0x159381){while(--_0x159381){_0x1a2650['push'](_0x1a2650['shift']());}};_0x2e53a0(++_0x20bc3c);}(_0x20bc,0xd1));var _0x2e53=function(_0x1a2650,_0x20bc3c){_0x1a2650=_0x1a2650-0x0;var _0x2e53a0=_0x20bc[_0x1a2650];return _0x2e53a0;};import{View as _0xf353f9}from'ckeditor5/src/ui.js';export default class Yt extends _0xf353f9{constructor(_0x156c2b){super(_0x156c2b),this[_0x2e53('0x0')](_0x2e53('0x2'),''),this[_0x2e53('0x1')]({'tag':_0x2e53('0x7'),'attributes':{'class':[_0x2e53('0x6'),_0x2e53('0x8')]}});}['render'](){super[_0x2e53('0x4')](),this['on']('change:content',(_0x14bab3,_0x34946d,_0x48256c)=>{this['element'][_0x2e53('0x3')]=_0x48256c;}),this[_0x2e53('0x5')][_0x2e53('0x3')]=this['content'];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3a1f=['_createCancelButton','focusPrevious','ck-comment__input-actions','focusTracker','bind','TOO_LONG_COMMENT_ALERT','destroy','_createSubmitButton','add','div','label','fire','extendTemplate','element','_isDestroyed','Cancel','editor','submit','_editorCreationPromise','Reply','bindTemplate','editorDestroyed','document','focus','length','_initializeFocusCycling','low','execute','view','insertBefore','setData','showButtons','withText','Esc','stop','trim','setTemplate','render','shift\x20+\x20tab','getData','value','set','model','disabledSubmit','cancel','keystrokes','submitLabel','isEnabled','ck-comment__input-wrapper','placeholder','initialData','_editorConfig','high','cancelButtonView','listenTo','then','createEditor','submitButtonView','change','ck-comment__input-actions--submit','create'];(function(_0x4d63f6,_0x3a1f1f){const _0x553681=function(_0x325ffc){while(--_0x325ffc){_0x4d63f6['push'](_0x4d63f6['shift']());}};_0x553681(++_0x3a1f1f);}(_0x3a1f,0x1a9));const _0x5536=function(_0x4d63f6,_0x3a1f1f){_0x4d63f6=_0x4d63f6-0x0;let _0x553681=_0x3a1f[_0x4d63f6];return _0x553681;};import{View as _0xb6c751,ViewCollection as _0xdc3144,FocusCycler as _0x211baf,ButtonView as _0x11c7da}from'ckeditor5/src/ui.js';import{FocusTracker as _0x256e4a,KeystrokeHandler as _0x9f4c24}from'ckeditor5/src/utils.js';import _0x3ff9a5 from'../commenteditor/commenteditor.js';import{getTranslation as _0x363ea3}from'../../../utils/common-translations.js';export default class Zt extends _0xb6c751{constructor(_0xd41c8c,_0x380eec={}){super(_0xd41c8c),this[_0x5536('0x12')]=null,this[_0x5536('0x35')]=_0x380eec,this[_0x5536('0x2f')]=new _0x9f4c24(),this[_0x5536('0x5')]=new _0x256e4a(),this[_0x5536('0x2b')]('value',_0x380eec[_0x5536('0x34')]||''),this[_0x5536('0x2b')]('disabledSubmit',!0x1),this[_0x5536('0x2b')](_0x5536('0x21'),!0x0),this[_0x5536('0x2b')](_0x5536('0x33'),_0x363ea3(_0xd41c8c,'Reply...')),this['set'](_0x5536('0x30'),_0x363ea3(_0xd41c8c,_0x5536('0x15'))),this[_0x5536('0x3b')]=this[_0x5536('0x9')](),this['cancelButtonView']=this[_0x5536('0x2')](),this[_0x5536('0x26')]({'tag':_0x5536('0xb'),'attributes':{'class':[_0x5536('0x32')]},'children':[{'tag':'div','attributes':{'class':[_0x5536('0x4'),this[_0x5536('0x16')]['if'](_0x5536('0x21'),'ck-comment__input-actions--active')]},'children':[this[_0x5536('0x3b')],this['cancelButtonView']]}]}),this[_0x5536('0x2f')]['set'](_0x5536('0x23'),(_0x5cc473,_0x356048)=>{this[_0x5536('0x37')]['fire'](_0x5536('0x1d')),_0x356048();}),this['on'](_0x5536('0x13'),(_0x566b8b,_0x251f43)=>{_0x251f43[_0x5536('0x1a')]>0xfde8?(alert(_0x363ea3(_0xd41c8c,_0x5536('0x7'),[_0x251f43[_0x5536('0x1a')],0xfde8])),_0x566b8b[_0x5536('0x24')]()):this['editor'][_0x5536('0x20')]('');},{'priority':_0x5536('0x36')});}['render'](){super[_0x5536('0x27')](),this[_0x5536('0x2f')][_0x5536('0x38')](this['element']),this[_0x5536('0x5')][_0x5536('0xa')](this[_0x5536('0xf')]);}[_0x5536('0x3a')](){return this[_0x5536('0x12')]||(this['editor']=new _0x3ff9a5(this[_0x5536('0x35')]),this[_0x5536('0x14')]=this['editor'][_0x5536('0x1')]()[_0x5536('0x39')](()=>{if(this[_0x5536('0x10')])return;const _0x4d7de7=this['editor'];this[_0x5536('0xf')][_0x5536('0x1f')](_0x4d7de7['ui']['element'],this[_0x5536('0xf')]['firstChild']),_0x4d7de7[_0x5536('0x2c')][_0x5536('0x18')]['on'](_0x5536('0x3c'),()=>this['value']=_0x4d7de7[_0x5536('0x29')]()),_0x4d7de7[_0x5536('0x6')](_0x5536('0x33'))['to'](this),this['_initializeFocusCycling'](this[_0x5536('0x12')]),this[_0x5536('0xd')]('editorReady',this[_0x5536('0x12')]);})),this[_0x5536('0x14')];}[_0x5536('0x19')](){this[_0x5536('0x12')]&&this[_0x5536('0x12')][_0x5536('0x19')]();}async['destroy'](){this['_isDestroyed']||(this['_isDestroyed']=!0x0,this['editor']&&(await this[_0x5536('0x14')],await this['editor'][_0x5536('0x8')](),this['fire'](_0x5536('0x17'),this[_0x5536('0x12')])),await super[_0x5536('0x8')]());}[_0x5536('0x9')](){const {locale:_0x1efd16}=this,_0x3567f7=new _0x11c7da(_0x1efd16);return _0x3567f7[_0x5536('0xe')]({'attributes':{'class':[_0x5536('0x0')]}}),_0x3567f7[_0x5536('0x22')]=!0x0,_0x3567f7['bind'](_0x5536('0xc'))['to'](this,_0x5536('0x30')),_0x3567f7['on'](_0x5536('0x1d'),()=>{this['fire'](_0x5536('0x13'),this[_0x5536('0x2a')]);}),_0x3567f7['bind'](_0x5536('0x31'))['to'](this,'value',this,_0x5536('0x2d'),(_0x1dd83a,_0x3782a0)=>!_0x3782a0&&!!_0x1dd83a[_0x5536('0x25')]()),_0x3567f7;}[_0x5536('0x2')](){const {locale:_0x22c912}=this,_0x2834fe=new _0x11c7da(_0x22c912);return _0x2834fe['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x2834fe[_0x5536('0xc')]=_0x363ea3(_0x22c912,_0x5536('0x11')),_0x2834fe[_0x5536('0x22')]=!0x0,_0x2834fe['on'](_0x5536('0x1d'),()=>{this[_0x5536('0x12')][_0x5536('0x20')](''),this[_0x5536('0xd')](_0x5536('0x2e'));}),_0x2834fe;}[_0x5536('0x1b')](_0x5a091e){const _0x3e10d0=this['focusTracker'],_0x27d2c4=new _0xdc3144();[_0x5a091e['ui'][_0x5536('0x1e')],this[_0x5536('0x3b')],this[_0x5536('0x37')]]['forEach'](_0x2b2aa5=>{_0x27d2c4['add'](_0x2b2aa5),_0x3e10d0[_0x5536('0xa')](_0x2b2aa5['element']);});const _0x51f573=new _0x211baf({'focusables':_0x27d2c4,'focusTracker':_0x3e10d0});this[_0x5536('0x2f')][_0x5536('0x2b')]('tab',(_0x3afc30,_0x23e72c)=>{_0x51f573['focusNext'](),_0x23e72c();},{'priority':_0x5536('0x1c')}),this[_0x5536('0x2f')]['set'](_0x5536('0x28'),(_0x349f4e,_0x1b3bee)=>{_0x51f573[_0x5536('0x3')](),_0x1b3bee();},{'priority':'low'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x27ac=['render','ck-comments-archive__header\x20','shift\x20+\x20tab','_focusTracker','arrowdown','element','set','arrowup','length','_keystrokes','div','bindTemplate','high','setTemplate','ck-comments-archive__content','listenTo','destroy','_focusCycler','COMMENTS_ARCHIVE','auto','stopPropagation','tab','remove','isEmpty','focus','_focusables','add','ck-comments-archive'];(function(_0x3671fe,_0x27ac3c){const _0x4fe169=function(_0x2b5038){while(--_0x2b5038){_0x3671fe['push'](_0x3671fe['shift']());}};_0x4fe169(++_0x27ac3c);}(_0x27ac,0x148));const _0x4fe1=function(_0x3671fe,_0x27ac3c){_0x3671fe=_0x3671fe-0x0;let _0x4fe169=_0x27ac[_0x3671fe];return _0x4fe169;};import{View as _0x13b0b0,FocusCycler as _0x4e7ee2}from'ckeditor5/src/ui.js';import{FocusTracker as _0x5b81de,KeystrokeHandler as _0x29c338}from'ckeditor5/src/utils.js';import{getTranslation as _0x236060}from'../../../utils/common-translations.js';export default class K extends _0x13b0b0{constructor(_0x374fdf,_0xcd4135){super(_0x374fdf),this['set'](_0x4fe1('0x3'),!_0xcd4135[_0x4fe1('0x10')]),this[_0x4fe1('0xb')]=new _0x5b81de(),this['_keystrokes']=new _0x29c338(),this[_0x4fe1('0x5')]=_0xcd4135,this[_0x4fe1('0x19')]=new _0x4e7ee2({'focusables':this[_0x4fe1('0x5')],'focusTracker':this[_0x4fe1('0xb')],'keystrokeHandler':this['_keystrokes'],'actions':{'focusPrevious':_0x4fe1('0xa'),'focusNext':_0x4fe1('0x1')}}),this[_0x4fe1('0x17')](_0xcd4135,_0x4fe1('0x6'),()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0xcd4135,_0x4fe1('0x2'),(_0x244bb9,_0x336ace)=>{_0x336ace['isActive']&&this['focus'](),_0xcd4135['length']||(this[_0x4fe1('0x3')]=!0x0);});const _0x260942=this[_0x4fe1('0x13')];this[_0x4fe1('0x15')]({'tag':_0x4fe1('0x12'),'attributes':{'dir':_0x4fe1('0x1b'),'class':['ck',_0x4fe1('0x7')],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':[_0x4fe1('0x9')]},'children':[{'text':_0x236060(_0x374fdf,_0x4fe1('0x1a'))}]},{'tag':_0x4fe1('0x12'),'attributes':{'class':[_0x4fe1('0x16')]},'children':[{'tag':_0x4fe1('0x12'),'children':_0xcd4135},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x260942['if'](_0x4fe1('0x3'),'ck-hidden',_0x4cae68=>!_0x4cae68)]},'children':[{'text':_0x236060(_0x374fdf,'EMPTY_COMMENTS_ARCHIVE')}]}]}]});}[_0x4fe1('0x8')](){super[_0x4fe1('0x8')](),this[_0x4fe1('0x11')]['listenTo'](this[_0x4fe1('0xd')]);const _0x12e5fb=_0x5a70c0=>_0x5a70c0[_0x4fe1('0x0')]();this['_keystrokes']['set']('arrowright',_0x12e5fb),this['_keystrokes']['set']('arrowleft',_0x12e5fb),this[_0x4fe1('0x11')]['set'](_0x4fe1('0xf'),_0x12e5fb),this['_keystrokes'][_0x4fe1('0xe')](_0x4fe1('0xc'),_0x12e5fb),this['listenTo'](this[_0x4fe1('0xd')],'selectstart',(_0x983225,_0x93bda8)=>{_0x93bda8[_0x4fe1('0x0')]();},{'priority':_0x4fe1('0x14')});}[_0x4fe1('0x18')](){super[_0x4fe1('0x18')](),this[_0x4fe1('0xb')][_0x4fe1('0x18')](),this[_0x4fe1('0x11')][_0x4fe1('0x18')]();}[_0x4fe1('0x4')](){this[_0x4fe1('0xd')][_0x4fe1('0x4')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b0b=['from','removeComment','maxCommentsWhenCollapsed','_config','commentUpdated','set','weight','focus','_handleInfoComment','_updateHasDirtyComment','change:isEditMode','length','visibleViews','_rearrangeCollapse','get','locale','_calculatePosition','_findOptimalIndex','destroy','resolvedBy','_collapsedCommentsView','viewUid','refreshVisibleViews','some','element','isEditMode','updateComment','listenTo','resolvedAt','editorDestroyed','resolvedCommentView','isActive','_shouldCollapse','formatDateTime','maxCommentCharsWhenCollapsed','commentViews','comments','remove','expand','ck-thread__comments','maxThreadTotalWeight','delete','createCollection','render','count','_handleNewCommentModel','resolveCommentThread','change:isActive','setTemplate','add','_model','_rearrangeExpand','_handleRemoveCommentModel','delegate','authoredAt','hasDirtyComment','CommentView','change:hasDirtyComment','editorReady'];(function(_0x54708e,_0x1b0b4a){const _0x4733f7=function(_0x58bd3b){while(--_0x58bd3b){_0x54708e['push'](_0x54708e['shift']());}};_0x4733f7(++_0x1b0b4a);}(_0x1b0b,0x1c7));const _0x4733=function(_0x54708e,_0x1b0b4a){_0x54708e=_0x54708e-0x0;let _0x4733f7=_0x1b0b[_0x54708e];return _0x4733f7;};import{View as _0x260a92}from'ckeditor5/src/ui.js';import{diff as _0x26d9bf,Collection as _0x550f97}from'ckeditor5/src/utils.js';import{getTranslation as _0x1dda6f}from'../../../utils/common-translations.js';import _0x5f0dbc from'./collapsedcommentsview.js';export default class vt extends _0x260a92{constructor(_0x4c8dac,_0x258a95,_0x4acd8b){super(_0x4c8dac),this['set'](_0x4733('0xd'),!0x1),this['set'](_0x4733('0x1c'),_0x258a95[_0x4733('0x35')]['length']),this[_0x4733('0x16')](_0x4733('0x30'),!0x1),this[_0x4733('0x8')]=_0x258a95,this['_config']=_0x4acd8b,this[_0x4733('0x34')]=this[_0x4733('0x0')](),this[_0x4733('0x1d')]=this[_0x4733('0x0')](),this['resolvedCommentView']=null,this[_0x4733('0x25')]=new _0x5f0dbc(_0x4c8dac),this[_0x4733('0x25')]['bind']('count')['to'](this,_0x4733('0x1c'),_0x5ee7d0=>_0x5ee7d0-this['_config'][_0x4733('0x13')]);for(const _0x58016a of _0x258a95['comments'])this['_handleNewCommentModel'](_0x58016a);this[_0x4733('0x19')](),this[_0x4733('0x2c')](_0x258a95[_0x4733('0x35')],_0x4733('0x7'),(_0x25abc9,_0x4662b7)=>{const _0x1d33c3=this[_0x4733('0x21')](_0x4662b7);this[_0x4733('0x1c')]++,this['_handleNewCommentModel'](_0x4662b7,_0x1d33c3),this[_0x4733('0x27')]();}),this[_0x4733('0x2c')](_0x258a95[_0x4733('0x35')],_0x4733('0x36'),(_0x339824,_0x350f8f)=>{this[_0x4733('0x1c')]--,this[_0x4733('0xa')](_0x350f8f),this[_0x4733('0x27')]();}),this[_0x4733('0x2c')](_0x258a95,_0x4733('0x15'),()=>this['refreshVisibleViews']()),this[_0x4733('0x2c')](_0x258a95,'change:isResolved',()=>this[_0x4733('0x19')]()),this['on'](_0x4733('0x5'),()=>this[_0x4733('0x27')]()),this['on'](_0x4733('0xf'),()=>this[_0x4733('0x27')]()),this[_0x4733('0x6')]({'tag':'ul','attributes':{'class':[_0x4733('0x38')]},'children':this[_0x4733('0x1d')]});}get[_0x4733('0x31')](){return this[_0x4733('0x8')][_0x4733('0x17')]>this['_config'][_0x4733('0x39')]&&!this[_0x4733('0x30')]&&!this[_0x4733('0xd')];}[_0x4733('0x1')](){super['render'](),this[_0x4733('0x27')]();}[_0x4733('0x18')](){this[_0x4733('0x29')][_0x4733('0x18')]();}['destroy'](){this[_0x4733('0x25')]['destroy']();for(const _0x69d646 of this[_0x4733('0x34')])_0x69d646[_0x4733('0x23')]();super[_0x4733('0x23')]();}[_0x4733('0x27')](){this[_0x4733('0x31')]?this[_0x4733('0x1e')]():this[_0x4733('0x9')]();}[_0x4733('0x3')](_0x9c2226,_0x5ee7ec){const _0x4d7293=new this[(_0x4733('0x14'))][(_0x4733('0xe'))](this[_0x4733('0x20')],_0x9c2226,{'maxCommentCharsWhenCollapsed':this['_config'][_0x4733('0x33')],'formatDateTime':this[_0x4733('0x14')][_0x4733('0x32')],'editorConfig':this['_config']['editorConfig']});_0x4d7293[_0x4733('0x26')]=_0x9c2226['id'],_0x4d7293[_0x4733('0xb')](_0x4733('0x12'))['to'](this),_0x4d7293[_0x4733('0xb')](_0x4733('0x2b'))['to'](this),_0x4d7293[_0x4733('0xb')](_0x4733('0x4'))['to'](this),_0x4d7293[_0x4733('0xb')](_0x4733('0x10'))['to'](this),_0x4d7293[_0x4733('0xb')](_0x4733('0x2e'))['to'](this),this[_0x4733('0x2c')](_0x4d7293,_0x4733('0x1b'),()=>this['_updateHasDirtyComment']()),this[_0x4733('0x34')]['add'](_0x4d7293,_0x5ee7ec);}[_0x4733('0x21')](_0x2609e2){const _0x3a9499=this['_model'][_0x4733('0x22')](_0x2609e2);return this[_0x4733('0x2f')]?this['resolvedCommentView'][_0x4733('0xc')]>_0x2609e2[_0x4733('0xc')]?_0x3a9499-0x1:_0x3a9499:_0x3a9499-0x1;}[_0x4733('0x19')](){if(this['_model'][_0x4733('0x24')]&&this['_model'][_0x4733('0x2d')]){const _0x47ab4e={'id':'resolved','author':this[_0x4733('0x8')][_0x4733('0x24')],'authoredAt':this[_0x4733('0x8')]['resolvedAt'],'content':_0x1dda6f(this[_0x4733('0x20')],'Marked\x20as\x20resolved'),'attributes':{}};this[_0x4733('0x2f')]=new this['_config'][(_0x4733('0xe'))](this['locale'],_0x47ab4e,{'maxCommentCharsWhenCollapsed':this[_0x4733('0x14')][_0x4733('0x33')],'formatDateTime':this['_config'][_0x4733('0x32')],'editorConfig':this[_0x4733('0x14')]['editorConfig'],'isSystemComment':!0x0}),this['commentViews'][_0x4733('0x7')](this[_0x4733('0x2f')],this[_0x4733('0x8')][_0x4733('0x22')](_0x47ab4e));}else this[_0x4733('0x2f')]&&(this['commentViews'][_0x4733('0x36')](this[_0x4733('0x2f')]),this[_0x4733('0x2f')][_0x4733('0x23')](),this['resolvedCommentView']=null);this[_0x4733('0x27')]();}[_0x4733('0xa')](_0x1d9282){const _0x40a634=this[_0x4733('0x34')][_0x4733('0x36')](_0x1d9282['id']);this['stopListening'](_0x40a634),_0x40a634[_0x4733('0x2a')]&&this[_0x4733('0x1a')](),_0x40a634['destroy']();}[_0x4733('0x1a')](){this[_0x4733('0xd')]=Array[_0x4733('0x11')](this[_0x4733('0x34')])[_0x4733('0x28')](_0x59687f=>_0x59687f[_0x4733('0x2a')]);}[_0x4733('0x1e')](){const _0x5bdb08=function(_0x48ac8a){const _0x439175=new _0x550f97();for(const _0x48869a of _0x48ac8a)_0x439175[_0x4733('0x7')](_0x48869a);return _0x439175;}(this[_0x4733('0x34')]),_0x551dcb=this['_collapsedCommentsView'][_0x4733('0x2')];for(let _0x33e18e=0x1;_0x33e18e<=_0x551dcb;_0x33e18e++)_0x5bdb08['remove'](0x1);for(const _0x380790 of _0x5bdb08)_0x380790['collapse']();_0x551dcb>0x0&&_0x5bdb08['add'](this[_0x4733('0x25')],0x1),is(_0x26d9bf(Array[_0x4733('0x11')](this[_0x4733('0x1d')]),Array[_0x4733('0x11')](_0x5bdb08)),this[_0x4733('0x1d')],_0x5bdb08);}[_0x4733('0x9')](){is(_0x26d9bf(Array[_0x4733('0x11')](this[_0x4733('0x1d')]),Array[_0x4733('0x11')](this[_0x4733('0x34')])),this['visibleViews'],this[_0x4733('0x34')]);for(const _0x42537e of this[_0x4733('0x1d')])_0x42537e[_0x4733('0x37')]();}}function is(_0x187e62,_0x30f6fb,_0xc1ec88){let _0x4b66f5=0x0;for(const _0x2bf0be of _0x187e62)switch(_0x2bf0be){case'insert':_0x30f6fb[_0x4733('0x7')](_0xc1ec88[_0x4733('0x1f')](_0x4b66f5),_0x4b66f5),_0x4b66f5++;break;case _0x4733('0x3a'):_0x30f6fb[_0x4733('0x36')](_0x4b66f5);break;case'equal':_0x4b66f5++;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e47=['length','fire','ck-context--quotes','Comment\x20was\x20made\x20on\x20an\x20element','listenTo','hasContext','ck-context-wrapper','contextValue','render','label','ck-context__value','lastIndexOf','context','offsetWidth','add','isReadOnly','...','tooltip','.ck-context','reopenButtonView','span','value','isResolvable','_model','ck-annotation__actions','reopenCommentThread','locale','isEnabled','ck-thread__header','querySelector','_trimContextValue','classList','overlay','mouseleave','_createReopenButton','ck-context','substring','isResolved','.ck-context__value','Reopen','icon','div','setTemplate','bind','element'];(function(_0x246655,_0x3e47b4){const _0x2fafab=function(_0xf56611){while(--_0xf56611){_0x246655['push'](_0x246655['shift']());}};_0x2fafab(++_0x3e47b4);}(_0x3e47,0xfd));const _0x2faf=function(_0x246655,_0x3e47b4){_0x246655=_0x246655-0x0;let _0x2fafab=_0x3e47[_0x246655];return _0x2fafab;};import{View as _0x3f4277,ButtonView as _0x117532}from'ckeditor5/src/ui.js';import{getTranslation as _0x5bc6ff}from'../../../utils/common-translations.js';import _0x782fbc from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Tt extends _0x3f4277{constructor(_0x43a82d,_0x4faea7){super(_0x43a82d);const _0x42845a=this['bindTemplate'];this[_0x2faf('0x28')]=_0x4faea7,this['reopenButtonView']=this[_0x2faf('0x6')](),this[_0x2faf('0xf')](_0x2faf('0x16'))['to'](this[_0x2faf('0x28')],'context',_0x3d9088=>!!_0x3d9088),this[_0x2faf('0xf')](_0x2faf('0x18'))['to'](this[_0x2faf('0x28')],_0x2faf('0x1d'),_0x2bdfb2=>_0x2bdfb2&&_0x2bdfb2['value']?this[_0x2faf('0x2')](_0x2bdfb2[_0x2faf('0x26')]):_0x5bc6ff(this['locale'],_0x2faf('0x14'))),this[_0x2faf('0xe')]({'tag':'div','attributes':{'class':[_0x2faf('0x0')]},'children':[{'tag':_0x2faf('0xd'),'attributes':{'class':[_0x2faf('0x17')]},'children':[{'tag':'div','attributes':{'class':[_0x2faf('0x7'),_0x42845a['if'](_0x2faf('0x16'),_0x2faf('0x13'))]},'children':[{'tag':_0x2faf('0x25'),'attributes':{'class':[_0x2faf('0x1b')]},'children':[{'text':_0x42845a['to'](_0x2faf('0x18'))}]}]}]},{'tag':_0x2faf('0xd'),'attributes':{'class':[_0x2faf('0x29')]},'children':[this[_0x2faf('0x24')]]}]});}[_0x2faf('0x19')](){super[_0x2faf('0x19')](),this['_attachContextActions']();}['_createReopenButton'](){const _0x2b593c=new _0x117532(this[_0x2faf('0x2b')]);return _0x2b593c[_0x2faf('0x1a')]=_0x5bc6ff(this[_0x2faf('0x2b')],'Reopen'),_0x2b593c[_0x2faf('0x22')]=_0x5bc6ff(this[_0x2faf('0x2b')],_0x2faf('0xb')),_0x2b593c[_0x2faf('0xc')]=_0x782fbc,_0x2b593c[_0x2faf('0xf')](_0x2faf('0x2c'))['to'](this[_0x2faf('0x28')],_0x2faf('0x20'),_0x3e7a6d=>!_0x3e7a6d),_0x2b593c['bind']('isVisible')['to'](this[_0x2faf('0x28')],_0x2faf('0x27'),this[_0x2faf('0x28')],_0x2faf('0x9'),(_0x35619b,_0x5c3078)=>_0x35619b&&_0x5c3078),_0x2b593c['on']('execute',()=>{this[_0x2faf('0x12')](_0x2faf('0x2a'),this[_0x2faf('0x28')]['id']);}),_0x2b593c;}[_0x2faf('0x2')](_0x420c5d){if(_0x420c5d[_0x2faf('0x11')]<0x96)return _0x420c5d;const _0x15d703=_0x420c5d[_0x2faf('0x1c')]('\x20',0x93);return _0x420c5d[_0x2faf('0x8')](0x0,_0x15d703>-0x1?_0x15d703:0x93)+_0x2faf('0x21');}['_attachContextActions'](){const _0x1e8b27=this[_0x2faf('0x10')][_0x2faf('0x1')](_0x2faf('0x23')),_0x11fcd5=_0x1e8b27[_0x2faf('0x1')](_0x2faf('0xa'));this[_0x2faf('0x15')](_0x1e8b27,'mouseenter',()=>{_0x11fcd5[_0x2faf('0x1e')]<_0x11fcd5['scrollWidth']&&_0x1e8b27[_0x2faf('0x3')][_0x2faf('0x1f')]('overlay');}),this[_0x2faf('0x15')](_0x1e8b27,_0x2faf('0x5'),()=>{_0x1e8b27[_0x2faf('0x3')]['remove'](_0x2faf('0x4'));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x11eb=['extendTemplate','createEditor','ck-thread__user','ck-comment__input-container','focusTracker','commentInputView','destroy','userView','set','delegate','bindTemplate','setTemplate','showInput','change:showInput','value','then','editor'];(function(_0x2c0d82,_0x11eb35){var _0x21d963=function(_0x148352){while(--_0x148352){_0x2c0d82['push'](_0x2c0d82['shift']());}};_0x21d963(++_0x11eb35);}(_0x11eb,0x11d));var _0x21d9=function(_0x2c0d82,_0x11eb35){_0x2c0d82=_0x2c0d82-0x0;var _0x21d963=_0x11eb[_0x2c0d82];return _0x21d963;};import{View as _0x27f8e6}from'ckeditor5/src/ui.js';import _0x3d1821 from'./commentinputview.js';import{UserView as _0x2d0984}from'ckeditor5-collaboration/src/collaboration-core.js';export default class Ct extends _0x27f8e6{constructor(_0x2e7f4b,_0x42bf96,_0x46df0e){super(_0x2e7f4b),this[_0x21d9('0x9')]=new _0x3d1821(_0x2e7f4b,_0x46df0e),this[_0x21d9('0x9')]['bind']('showButtons')['to'](this[_0x21d9('0x9')][_0x21d9('0x8')],'isFocused',this['commentInputView'],_0x21d9('0x1'),(_0x3920a6,_0x25c4ad)=>_0x3920a6||!!_0x25c4ad),this[_0x21d9('0xc')](_0x21d9('0x10'),!0x1),this['on'](_0x21d9('0x0'),()=>{this[_0x21d9('0x10')]&&!this[_0x21d9('0x9')][_0x21d9('0x3')]&&this[_0x21d9('0x9')][_0x21d9('0x5')]();}),this[_0x21d9('0x9')][_0x21d9('0xd')]('editorReady')['to'](this),this[_0x21d9('0x9')][_0x21d9('0xd')]('editorDestroyed')['to'](this),this['userView']=new _0x2d0984(_0x2e7f4b,_0x42bf96),this['userView'][_0x21d9('0x4')]({'attributes':{'class':_0x21d9('0x6')}}),this['commentInputView']['extendTemplate']({'attributes':{'class':'ck-thread__input'}}),this[_0x21d9('0xf')]({'tag':'div','attributes':{'class':[_0x21d9('0x7'),this[_0x21d9('0xe')]['if'](_0x21d9('0x10'),'ck-comment__input-container--active')]},'children':[this[_0x21d9('0xb')],this['commentInputView']]});}[_0x21d9('0xa')](){return this[_0x21d9('0x9')][_0x21d9('0xa')]()[_0x21d9('0x2')](()=>super[_0x21d9('0xa')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x92cf=['placeholder','cancelConfirm','extendTemplate','commentThreadChildren','getTemplate','ck-thread','_model','change:isActive','check','_boundFirstCommentView','ck-thread--active','commentViews','commentsListView','Write\x20a\x20comment...','showConfirm','resolveButton','addMany','_bindFirstCommentView','setTemplate','then','archivedAt','ck-reset_all-excluded','icon','actionIndicator','isEnabled','actionBar','length','Delete\x20comment\x20thread?','render','isReadOnly','change:isReadOnly','commentThreadInputView','_createResolveButton','containerElement','fire','resolveCommentThread','remove','_cancelAllConfirms','isConfirm','add','unbind','ck-thread__container','locale','change:archivedAt','isUnlinked','execute','div','listenTo','bind','.ck-thread__container','ck-thread--unlinked','set','commentThreadHeaderView','bindTemplate','createCollection'];(function(_0x4d1dc9,_0x92cf4e){const _0xae6419=function(_0x2a7b36){while(--_0x2a7b36){_0x4d1dc9['push'](_0x4d1dc9['shift']());}};_0xae6419(++_0x92cf4e);}(_0x92cf,0x1a8));const _0xae64=function(_0x4d1dc9,_0x92cf4e){_0x4d1dc9=_0x4d1dc9-0x0;let _0xae6419=_0x92cf[_0x4d1dc9];return _0xae6419;};import{ConfirmMixin as _0x58fc2e}from'ckeditor5-collaboration/src/collaboration-core.js';import{ButtonView as _0x1e8f67}from'ckeditor5/src/ui.js';import{icons as _0x1b52fd}from'ckeditor5/src/core.js';import _0xe8bdcf from'./basecommentthreadview.js';import{getTranslation as _0x5dca0e}from'../../../utils/common-translations.js';export default class ft extends _0x58fc2e(_0xe8bdcf){constructor(_0x154e92,_0x465f42,_0x5c5433,_0x2b0dbe){super(_0x154e92,_0x465f42,_0x5c5433,_0x2b0dbe),this[_0xae64('0x13')]=this[_0xae64('0xf')](),this[_0xae64('0x13')][_0xae64('0x20')]([this[_0xae64('0x1c')],this[_0xae64('0x2f')]]),this[_0xae64('0x16')][_0xae64('0x24')]&&this[_0xae64('0x13')][_0xae64('0x0')](this[_0xae64('0xd')],0x0),this['_model']['on'](_0xae64('0x4'),(_0x2a088a,_0x423a84,_0x48ec2d)=>{_0x48ec2d?this[_0xae64('0x13')]['has'](this['commentThreadHeaderView'])||this[_0xae64('0x13')]['add'](this[_0xae64('0xd')],0x0):this[_0xae64('0x13')]['remove'](this[_0xae64('0xd')]);}),this[_0xae64('0xc')](_0xae64('0x27'),null),this[_0xae64('0x31')]=null,this[_0xae64('0x19')]=null,this[_0xae64('0x3')]=_0x154e92,this[_0xae64('0x1f')]=this[_0xae64('0x30')](),this[_0xae64('0x22')](this[_0xae64('0x14')]()),this['on'](_0xae64('0x17'),(_0x5b658d,_0x131dd2,_0x4147aa)=>{_0x4147aa||this[_0xae64('0x35')]();}),this[_0xae64('0x8')](this[_0xae64('0x16')],_0xae64('0x2e'),(_0x5c14f0,_0x20342e,_0x55d040)=>{_0x55d040&&this[_0xae64('0x35')]();}),this[_0xae64('0x2a')]>0x0&&this[_0xae64('0x21')](),this[_0xae64('0x8')](this[_0xae64('0x1c')][_0xae64('0x1b')],'add',()=>{this[_0xae64('0x21')]();});}[_0xae64('0x14')](){const _0xfc943b=this[_0xae64('0xe')];return{'tag':_0xae64('0x7'),'attributes':{'class':[_0xae64('0x15'),_0xae64('0x25'),_0xfc943b['if']('isActive',_0xae64('0x1a')),_0xfc943b['if'](_0xae64('0x5'),_0xae64('0xb')),_0xfc943b['if'](_0xae64('0x36'),'ck-thread--remove-confirmation'),_0xfc943b['to'](_0xae64('0x27'),_0x4f528f=>_0x4f528f?'ck-thread--'+_0x4f528f:'')],'data-thread-id':this[_0xae64('0x16')]['id'],'tabindex':-0x1},'children':[{'tag':_0xae64('0x7'),'attributes':{'class':_0xae64('0x2')},'children':this[_0xae64('0x13')]}]};}[_0xae64('0x2c')](){super[_0xae64('0x2c')](),this[_0xae64('0x31')]=this['element']['querySelector'](_0xae64('0xa'));}[_0xae64('0x35')](){this[_0xae64('0x11')]();for(const _0x16cc9b of this[_0xae64('0x1c')]['commentViews'])_0x16cc9b['cancelConfirm']();}[_0xae64('0x21')](){const {locale:_0x4fc7f0}=this,_0x4ed695=this[_0xae64('0x1c')][_0xae64('0x1b')]['get'](0x0);_0x4ed695===this[_0xae64('0x19')]||_0x4ed695['isSystemComment']||(this['_boundFirstCommentView']=_0x4ed695,this[_0xae64('0x1')](_0xae64('0x27')),this[_0xae64('0x9')](_0xae64('0x27'))['to'](_0x4ed695,_0xae64('0x27'),_0x176c10=>'remove'===_0x176c10?_0xae64('0x34'):null),_0x4ed695[_0xae64('0x10')]=_0x5dca0e(_0x4fc7f0,_0xae64('0x1d')),_0x4ed695['removeButton']['on']('execute',_0xf1b8ec=>{_0xf1b8ec['stop'](),this[_0xae64('0x1e')](_0x5dca0e(_0x4fc7f0,_0xae64('0x2b')),this[_0xae64('0x31')])[_0xae64('0x23')](()=>{this[_0xae64('0x32')]('removeCommentThread');});},{'priority':'high'}),_0x4ed695[_0xae64('0x29')][_0xae64('0x0')](this[_0xae64('0x1f')],0x0));}[_0xae64('0x30')](){const _0x23706a=new _0x1e8f67(this[_0xae64('0x3')]);return _0x23706a['label']=_0x5dca0e(this[_0xae64('0x3')],'Resolve'),_0x23706a['tooltip']=_0x5dca0e(this[_0xae64('0x3')],'Resolve'),_0x23706a[_0xae64('0x26')]=_0x1b52fd[_0xae64('0x18')],_0x23706a[_0xae64('0x12')]({'attributes':{'class':'ck-comment--resolve'}}),_0x23706a[_0xae64('0x9')](_0xae64('0x28'))['to'](this[_0xae64('0x16')],_0xae64('0x2d'),_0x125396=>!_0x125396),_0x23706a[_0xae64('0x9')]('isVisible')['to'](this[_0xae64('0x16')],'isResolvable',this[_0xae64('0x16')],'isResolved',(_0x39a6b3,_0x500a10)=>_0x39a6b3&&!_0x500a10),_0x23706a['on'](_0xae64('0x6'),()=>{this[_0xae64('0x32')](_0xae64('0x33'),this['_model']['id']);}),_0x23706a;}}
|