@ckeditor/ckeditor5-comments 0.0.0-nightly-20231228.0 → 0.0.0-nightly-20231230.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 _0x2776=['importWord.formatting.comments','addCommentThread','afterInit','commands','map','editor','collaboration_features','get','dataInsert','plugins','config','execute','importWord','_handleImportedData','collaboration.channelId','basic'];(function(_0x40df47,_0x2776f5){const _0x4d3fa5=function(_0x448f40){while(--_0x448f40){_0x40df47['push'](_0x40df47['shift']());}};_0x4d3fa5(++_0x2776f5);}(_0x2776,0x174));const _0x4d3f=function(_0x40df47,_0x2776f5){_0x40df47=_0x40df47-0x0;let _0x4d3fa5=_0x2776[_0x40df47];return _0x4d3fa5;};import{Plugin as _0x55ea72}from'ckeditor5/src/core.js';import{priorities as _0x694850}from'ckeditor5/src/utils.js';import{Users as _0x1d1e6a}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x44ae4f from'../commentsrepository.js';export default class Z extends _0x55ea72{constructor(_0x46d9c9){super(_0x46d9c9),this['editor'][_0x4d3f('0x6')]['define'](_0x4d3f('0xc'),_0x4d3f('0xb'));}[_0x4d3f('0xe')](){const _0x1aa4e8=this[_0x4d3f('0x1')],_0x5e7c33=_0x1aa4e8[_0x4d3f('0xf')][_0x4d3f('0x3')](_0x4d3f('0x8')),_0x4cf443=_0x1aa4e8['plugins']['get'](_0x1d1e6a);_0x5e7c33&&(_0x5e7c33['on'](_0x4d3f('0x7'),(_0x157eca,[,_0xe37be])=>{_0xe37be[_0x4d3f('0x2')]={'comments':!0x0,'user_id':_0x4cf443['me']['id']};},{'priority':_0x694850['high']+0xa}),this['listenTo'](_0x5e7c33,_0x4d3f('0x4'),this[_0x4d3f('0x9')]));}[_0x4d3f('0x9')](_0x8c84e4,_0x4ea0eb){const {comment_threads:_0x711046}=_0x4ea0eb;_0x711046&&_0x711046['forEach'](({thread_id:_0x592f1c,comments:_0x37cd89,is_resolved:_0x1e33d5})=>{const _0x1acc3a=new Date(),_0x56366f=_0x37cd89[_0x4d3f('0x0')](({author:_0x1b43e2,content:_0x4f6379,created_at:_0x13b58d})=>({'content':_0x4f6379,'authorId':this[_0x4d3f('0x1')][_0x4d3f('0x5')][_0x4d3f('0x3')](_0x1d1e6a)['me']['id'],'createdAt':_0x1acc3a,'attributes':{'@external':{'authorName':_0x1b43e2,'createdAt':_0x13b58d?new Date(_0x13b58d):new Date(),'source':_0x4d3f('0x8')}}})),_0x4fc54e=this[_0x4d3f('0x1')][_0x4d3f('0x6')][_0x4d3f('0x3')](_0x4d3f('0xa'));this['editor'][_0x4d3f('0x5')]['get'](_0x44ae4f)[_0x4d3f('0xd')]({'channelId':_0x4fc54e,'threadId':_0x592f1c,'comments':_0x56366f,'resolvedAt':_0x1e33d5?_0x1acc3a:null});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x911d=['config','assign','name','then','low','init','initialData','defaultPlugins','getChild','_updatePlaceholder','editing','getRoot','placeholder','end','plugins','childCount','document','setSelection','change','get','placeholderElement','model','view','destroy','focus','createRoot','create','fire','set','data','initPlugins'];(function(_0x2c72c1,_0x911d4){const _0x4489c9=function(_0x9263a){while(--_0x9263a){_0x2c72c1['push'](_0x2c72c1['shift']());}};_0x4489c9(++_0x911d4);}(_0x911d,0x11e));const _0x4489=function(_0x2c72c1,_0x911d4){_0x2c72c1=_0x2c72c1-0x0;let _0x4489c9=_0x911d[_0x2c72c1];return _0x4489c9;};import{Editor as _0x477a74,DataApiMixin as _0x1f1394}from'ckeditor5/src/core.js';import _0x100063 from'./commenteditorui.js';import{ObservableMixin as _0x3c2dab}from'ckeditor5/src/utils.js';import{enablePlaceholder as _0x12f882,disablePlaceholder as _0x152038}from'ckeditor5/src/engine.js';import{Clipboard as _0x2a86b5}from'ckeditor5/src/clipboard.js';import{Enter as _0x5bbbf1,ShiftEnter as _0x547a5c}from'ckeditor5/src/enter.js';import{SelectAll as _0x611afe}from'ckeditor5/src/select-all.js';import{Typing as _0x4d2f33}from'ckeditor5/src/typing.js';import{Undo as _0x2b26a7}from'ckeditor5/src/undo.js';import{Paragraph as _0x3a8a4f}from'ckeditor5/src/paragraph.js';const Mt=[_0x2a86b5,_0x5bbbf1,_0x547a5c,_0x611afe,_0x4d2f33,_0x2b26a7,_0x3a8a4f];export default class Nt extends _0x3c2dab(_0x1f1394(_0x477a74)){constructor(_0x3dbbf6={}){(_0x3dbbf6=Object[_0x4489('0x19')]({},_0x3dbbf6))[_0x4489('0x7')]||(_0x3dbbf6[_0x4489('0x7')]=Nt[_0x4489('0x0')]),super(_0x3dbbf6),this['ui']=new _0x100063(this),this[_0x4489('0x15')]('placeholder',''),this['model'][_0x4489('0x9')]['on'](_0x4489('0xb'),()=>this[_0x4489('0x2')](),{'priority':_0x4489('0x1c')}),this['on']('change:placeholder',()=>this[_0x4489('0x2')]()),this[_0x4489('0xe')][_0x4489('0x9')][_0x4489('0x12')]();}[_0x4489('0x13')](){const _0x5d375e=this[_0x4489('0x18')][_0x4489('0xc')](_0x4489('0x1e'))||'';return this[_0x4489('0x17')]()[_0x4489('0x1b')](()=>this['ui'][_0x4489('0x1d')]())[_0x4489('0x1b')](()=>this[_0x4489('0x16')][_0x4489('0x1d')](_0x5d375e))[_0x4489('0x1b')](()=>this[_0x4489('0x14')]('ready'));}['destroy'](){return super[_0x4489('0x10')]()[_0x4489('0x1b')](()=>this['ui'][_0x4489('0x10')]());}[_0x4489('0x11')](){this[_0x4489('0xe')][_0x4489('0xb')](_0x262fe2=>{const _0x2a139d=this[_0x4489('0xe')][_0x4489('0x9')][_0x4489('0x4')](),_0x39899c=_0x2a139d&&_0x2a139d[_0x4489('0x1')](_0x2a139d[_0x4489('0x8')]-0x1);_0x262fe2[_0x4489('0xa')](_0x39899c,_0x4489('0x6')),this['editing'][_0x4489('0xf')][_0x4489('0x11')]();});}[_0x4489('0x2')](){const _0x1251b8=this[_0x4489('0x3')]['view'],_0x419087=_0x1251b8[_0x4489('0x9')][_0x4489('0x4')](),_0x5cad91=_0x419087[_0x4489('0x1')](0x0);_0x419087[_0x4489('0x8')]>0x1||!_0x5cad91||'p'!=_0x5cad91[_0x4489('0x1a')]?this['placeholderElement']&&this['placeholderElement'][_0x4489('0x5')]&&(_0x152038(_0x1251b8,this[_0x4489('0xd')]),this[_0x4489('0xd')]=void 0x0):(this[_0x4489('0x5')]&&(_0x5cad91[_0x4489('0x5')]=this['placeholder']),_0x12f882({'view':_0x1251b8,'element':_0x5cad91,'keepOnFocus':!0x0}),this[_0x4489('0xd')]=_0x5cad91);}}Nt[_0x4489('0x0')]=Mt;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b04=['bind','getRoot','attachDomRoot','init','element','setEditableElement','view','isFocused','editable','editing','locale','render','destroy','editor'];(function(_0xe6257a,_0x4b047c){const _0x589153=function(_0x31809c){while(--_0x31809c){_0xe6257a['push'](_0xe6257a['shift']());}};_0x589153(++_0x4b047c);}(_0x4b04,0xa0));const _0x5891=function(_0xe6257a,_0x4b047c){_0xe6257a=_0xe6257a-0x0;let _0x589153=_0x4b04[_0xe6257a];return _0x589153;};import{EditorUI as _0x162105}from'ckeditor5/src/ui.js';import _0x11bead from'./commenteditoruiview.js';export default class Ft extends _0x162105{constructor(_0x4a96b2){super(_0x4a96b2),this[_0x5891('0x0')]=new _0x11bead(_0x4a96b2[_0x5891('0x4')],_0x4a96b2[_0x5891('0x3')][_0x5891('0x0')]);}get[_0x5891('0xc')](){return this[_0x5891('0x0')][_0x5891('0xc')];}[_0x5891('0xb')](){const _0x59d227=this[_0x5891('0x7')][_0x5891('0x3')][_0x5891('0x0')],_0x2de132=this[_0x5891('0x0')][_0x5891('0x2')],_0x585a07=_0x59d227['document'][_0x5891('0x9')]();_0x2de132['name']=_0x585a07['rootName'],this[_0x5891('0x0')][_0x5891('0x5')]();const _0x32c489=_0x2de132[_0x5891('0xc')];this[_0x5891('0xd')](_0x2de132['name'],_0x32c489),this[_0x5891('0x0')]['editable'][_0x5891('0x8')](_0x5891('0x1'))['to'](this['focusTracker']),_0x59d227[_0x5891('0xa')](_0x32c489),this['fire']('ready');}[_0x5891('0x6')](){super['destroy'](),this[_0x5891('0x0')][_0x5891('0x6')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4223=['presentation','ck-editor__aria-label_','element','uiLanguageDirection','uiLanguage','ck-comment__input','createCollection','render','_voiceLabelView','text','_createVoiceLabel','main','focus','comment','ck-rounded-corners','ck-reset','add','ck-voice-label','div','cke-editor__aria-label_','setTemplate','editable','ck-editor__main','ck-editor'];(function(_0x4a74f3,_0x4223ce){const _0x478207=function(_0x1f410d){while(--_0x1f410d){_0x4a74f3['push'](_0x4a74f3['shift']());}};_0x478207(++_0x4223ce);}(_0x4223,0x19d));const _0x4782=function(_0x4a74f3,_0x4223ce){_0x4a74f3=_0x4a74f3-0x0;let _0x478207=_0x4223[_0x4a74f3];return _0x478207;};import{InlineEditableUIView as _0x5af15d,EditorUIView as _0x1ec79e,LabelView as _0x1665f5}from'ckeditor5/src/ui.js';import{uid as _0x190afe}from'ckeditor5/src/utils.js';import{getTranslation as _0x19ae00}from'../../../utils/common-translations.js';export default class Rt extends _0x1ec79e{constructor(_0x3d18ae,_0x41ddce){super(_0x3d18ae);const _0x795197=_0x190afe();this[_0x4782('0x6')]=this[_0x4782('0x1')](),this['editable']=new _0x5af15d(_0x3d18ae,_0x41ddce),this['_voiceLabelView']=this[_0x4782('0x5')](_0x795197,_0x3d18ae),this[_0x4782('0xf')]({'tag':_0x4782('0xd'),'attributes':{'class':[_0x4782('0xa'),_0x4782('0x12'),_0x4782('0x9'),_0x4782('0x0')],'role':_0x4782('0x8'),'dir':_0x3d18ae[_0x4782('0x16')],'lang':_0x3d18ae[_0x4782('0x17')],'aria-labelledby':_0x4782('0xe')+_0x795197},'children':[this[_0x4782('0x3')],{'tag':_0x4782('0xd'),'attributes':{'class':_0x4782('0x11'),'role':_0x4782('0x13')},'children':this[_0x4782('0x6')]}]});}[_0x4782('0x2')](){super[_0x4782('0x2')](),this[_0x4782('0x6')][_0x4782('0xb')](this[_0x4782('0x10')]);}['focus'](){this[_0x4782('0x10')][_0x4782('0x15')][_0x4782('0x7')]();}[_0x4782('0x5')](_0x49e687,_0x1370d6){const _0x4ac14f=new _0x1665f5();return _0x4ac14f[_0x4782('0x4')]=_0x19ae00(_0x1370d6,'Comment\x20editor'),_0x4ac14f['extendTemplate']({'attributes':{'id':_0x4782('0x14')+_0x49e687,'class':_0x4782('0xc')}}),_0x4ac14f;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3648=['model','getComment','reopen','submitCommentThread','submit','resolve','_isAttached','removeComment','listenTo','reopenCommentThread','resolveCommentThread','updateComment','remove','isResolved','view','addComment'];(function(_0x1c3a31,_0x3648ed){var _0x52b052=function(_0x367b2e){while(--_0x367b2e){_0x1c3a31['push'](_0x1c3a31['shift']());}};_0x52b052(++_0x3648ed);}(_0x3648,0xda));var _0x52b0=function(_0x1c3a31,_0x3648ed){_0x1c3a31=_0x1c3a31-0x0;var _0x52b052=_0x3648[_0x1c3a31];return _0x52b052;};import{ObservableMixin as _0x4a534c}from'ckeditor5/src/utils.js';export default class ut extends _0x4a534c(){constructor(_0x29a51c,_0x28d043){super(),this[_0x52b0('0x6')]=_0x29a51c,this[_0x52b0('0x6')][_0x52b0('0xc')]=!0x0,this['view']=_0x28d043,this[_0x52b0('0xe')](_0x28d043,_0x52b0('0x9'),()=>this[_0x52b0('0xa')]()),this[_0x52b0('0xe')](_0x28d043,'removeCommentThread',()=>this['remove']()),this[_0x52b0('0xe')](_0x28d043,_0x52b0('0x0'),()=>this[_0x52b0('0xb')]()),this[_0x52b0('0xe')](_0x28d043,_0x52b0('0xf'),()=>this[_0x52b0('0x8')]()),this['listenTo'](_0x28d043,_0x52b0('0x5'),(_0xdc3c2c,_0x5024fd)=>this[_0x52b0('0x5')](_0x5024fd)),this[_0x52b0('0xe')](_0x28d043,'updateComment',(_0x32aafe,_0x18b205,_0xac10b)=>this[_0x52b0('0x1')](_0x18b205,_0xac10b)),this['listenTo'](_0x28d043,_0x52b0('0xd'),(_0x15bc7d,_0x2a2732)=>this[_0x52b0('0xd')](_0x2a2732));}['submit'](){this['model'][_0x52b0('0xa')]();}[_0x52b0('0x2')](){this[_0x52b0('0x6')][_0x52b0('0x2')]();}['resolve'](){this['model'][_0x52b0('0x3')]||this['model'][_0x52b0('0xb')]();}['reopen'](){this[_0x52b0('0x6')][_0x52b0('0x3')]&&this['model'][_0x52b0('0x8')]();}[_0x52b0('0x5')](_0x4a6e05){this['model']['addComment']({'content':_0x4a6e05,'authorId':this[_0x52b0('0x4')]['_localUser']['id']});}[_0x52b0('0x1')](_0x5e5b46,_0x5e83e9){this[_0x52b0('0x6')][_0x52b0('0x7')](_0x5e5b46)['update']({'content':_0x5e83e9});}[_0x52b0('0xd')](_0x5c3e81){this['model'][_0x52b0('0x7')](_0x5c3e81)[_0x52b0('0x2')]();}['destroy'](){this['stopListening'](),this['model'][_0x52b0('0xc')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x14dc=['editorReady','isResolved','editorDestroyed','commentThreadInputView','editorConfig','isReadOnly','stop','submit','hasDirtyComment','unlinkedAt','canComment','listenTo','isSubmitted','isResolvable','Reply...','element','fire','resolveCommentThread','disabledSubmit','value','addComment','set','commentThreadHeaderView','_localUser','isActive','change:isActive','removeComment','_model','locale','cancel','isDirty','archivedAt','_config','destroy','CommentView','removeCommentThread','commentsListView','_createCommentThreadInputView','updateComment','showInput','delegate','focus','reopenCommentThread','Write\x20a\x20comment...','commentInputView','Reply','Comment','placeholder','bind','length'];(function(_0x4129aa,_0x14dcfe){const _0x1eb73c=function(_0x48d7f8){while(--_0x48d7f8){_0x4129aa['push'](_0x4129aa['shift']());}};_0x1eb73c(++_0x14dcfe);}(_0x14dc,0x175));const _0x1eb7=function(_0x4129aa,_0x14dcfe){_0x4129aa=_0x4129aa-0x0;let _0x1eb73c=_0x14dc[_0x4129aa];return _0x1eb73c;};import{View as _0x5964c2}from'ckeditor5/src/ui.js';import _0x337da9 from'./commentthreadinputview.js';import _0x20c537 from'./commentslistview.js';import _0x4d1efa from'./commentthreadheaderview.js';import{getTranslation as _0x456d6a}from'../../../utils/common-translations.js';export default class Ut extends _0x5964c2{constructor(_0x59f58c,_0x2e4437,_0x2517e5,_0x1ba565){super(_0x59f58c),this['set'](_0x1eb7('0x1'),!0x1),this[_0x1eb7('0x30')](_0x1eb7('0x7'),!0x1),this[_0x1eb7('0x4')]=_0x2e4437,this['_localUser']=_0x2517e5,this['_config']=_0x1ba565,this[_0x1eb7('0x31')]=new _0x4d1efa(_0x59f58c,_0x2e4437),this[_0x1eb7('0x31')][_0x1eb7('0x11')](_0x1eb7('0x13'))['to'](this),this[_0x1eb7('0x26')](this,_0x1eb7('0x13'),()=>{this['focus']();}),this['commentsListView']=new _0x20c537(_0x59f58c,_0x2e4437,Object['assign']({'CommentView':this[_0x1eb7('0x9')][_0x1eb7('0xb')]},_0x1ba565)),this[_0x1eb7('0xd')][_0x1eb7('0x11')](_0x1eb7('0x3'))['to'](this),this['commentsListView'][_0x1eb7('0x11')](_0x1eb7('0xf'))['to'](this),this[_0x1eb7('0xd')][_0x1eb7('0x11')](_0x1eb7('0x2c'))['to'](this),this[_0x1eb7('0xd')][_0x1eb7('0x11')](_0x1eb7('0x1b'))['to'](this),this[_0x1eb7('0xd')][_0x1eb7('0x11')](_0x1eb7('0x1d'))['to'](this),this['commentsListView'][_0x1eb7('0x19')](_0x1eb7('0x1'))['to'](this),this[_0x1eb7('0x26')](this,_0x1eb7('0x2c'),()=>{this['focus']();}),this[_0x1eb7('0x30')](_0x1eb7('0x1a'),this['commentsListView'][_0x1eb7('0x1a')]),this[_0x1eb7('0x19')](_0x1eb7('0x1a'))['to'](this[_0x1eb7('0xd')],'length'),this[_0x1eb7('0x1e')]=this[_0x1eb7('0xe')](),this[_0x1eb7('0x1e')][_0x1eb7('0x11')]('editorReady')['to'](this),this[_0x1eb7('0x1e')][_0x1eb7('0x11')]('editorDestroyed')['to'](this),this['on'](_0x1eb7('0x3'),()=>this[_0x1eb7('0x12')]()),this['bind'](_0x1eb7('0x7'))['to'](this['commentsListView'],_0x1eb7('0x23'),this[_0x1eb7('0x1e')][_0x1eb7('0x15')],_0x1eb7('0x2e'),(_0x459480,_0x409d8c)=>_0x459480||!!_0x409d8c),this[_0x1eb7('0x19')]('isUnlinked')['to'](_0x2e4437,_0x1eb7('0x24'),_0x4924bf=>!!_0x4924bf);}[_0x1eb7('0x12')](){this[_0x1eb7('0x2a')][_0x1eb7('0x12')]();}async['destroy'](){this['isDirty']=!0x1,this[_0x1eb7('0xd')][_0x1eb7('0xa')](),await this['commentThreadInputView'][_0x1eb7('0xa')](),super[_0x1eb7('0xa')]();}[_0x1eb7('0xe')](){const _0x68909c=new _0x337da9(this[_0x1eb7('0x5')],this[_0x1eb7('0x0')],this[_0x1eb7('0x9')][_0x1eb7('0x1f')]),_0x6fec27=_0x68909c[_0x1eb7('0x15')];return _0x68909c[_0x1eb7('0x19')](_0x1eb7('0x10'))['to'](this,_0x1eb7('0x1'),this[_0x1eb7('0x4')],_0x1eb7('0x20'),this[_0x1eb7('0x4')],_0x1eb7('0x25'),this[_0x1eb7('0x4')],_0x1eb7('0x8'),_0x6fec27,_0x1eb7('0x2e'),(_0x334690,_0x3b2130,_0x299df4,_0x9bd089,_0x39621b)=>!!_0x39621b||!!_0x9bd089&&_0x299df4&&!_0x3b2130||_0x334690&&_0x299df4&&!_0x3b2130),_0x6fec27['bind'](_0x1eb7('0x18'))['to'](this,_0x1eb7('0x1a'),this[_0x1eb7('0x4')],_0x1eb7('0x28'),this[_0x1eb7('0x4')],_0x1eb7('0x1c'),(_0x212648,_0x101e8a,_0x10353)=>{let _0x117824;return _0x117824=_0x10353&&_0x101e8a?'Reply\x20to\x20reopen\x20discussion...':_0x212648?_0x1eb7('0x29'):_0x1eb7('0x14'),_0x456d6a(this[_0x1eb7('0x5')],_0x117824);}),_0x6fec27[_0x1eb7('0x19')]('submitLabel')['to'](this,_0x1eb7('0x1a'),_0x363011=>_0x456d6a(this[_0x1eb7('0x5')],_0x363011?_0x1eb7('0x16'):_0x1eb7('0x17'))),_0x6fec27['on'](_0x1eb7('0x22'),(_0x1f8422,_0x44d916)=>{this[_0x1eb7('0x2b')](_0x1eb7('0x2f'),_0x44d916),this[_0x1eb7('0x4')][_0x1eb7('0x1c')]&&this['_model']['isResolvable']&&this[_0x1eb7('0x2b')](_0x1eb7('0x13'),this[_0x1eb7('0x4')]['id']),this[_0x1eb7('0x4')][_0x1eb7('0x27')]||this[_0x1eb7('0x2b')]('submitCommentThread');}),_0x6fec27['on'](_0x1eb7('0x6'),()=>{this[_0x1eb7('0x12')]();}),_0x6fec27[_0x1eb7('0x19')](_0x1eb7('0x2d'))['to'](this[_0x1eb7('0x4')],_0x1eb7('0x20')),_0x6fec27['on'](_0x1eb7('0x6'),_0x41d417=>{0x0==this[_0x1eb7('0x1a')]&&(this['fire'](_0x1eb7('0xc')),_0x41d417[_0x1eb7('0x21')]());}),this['on'](_0x1eb7('0x2'),(_0x33ab0c,_0x39e1df,_0x146753)=>{_0x146753||this['length']||_0x6fec27['value']||this['fire'](_0x1eb7('0xc'));}),_0x68909c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e65=['switchToEditMode','isEditMode','updateComment','Save','locale','maxCommentCharsWhenCollapsed','value','createCollection','destroy','_config','remove','expand','bind','switchToDisplayMode','isSystemComment','content','add','editorReady','fire','editorConfig','collapse','editorDestroyed','delegate','focus','isCollapsed','visibleView','once','isReadOnly','set','element','_createCommentInputView','submitLabel','_model','_createCommentContentView'];(function(_0x369955,_0x5e658b){const _0x790c51=function(_0x313bd0){while(--_0x313bd0){_0x369955['push'](_0x369955['shift']());}};_0x790c51(++_0x5e658b);}(_0x5e65,0x149));const _0x790c=function(_0x369955,_0x5e658b){_0x369955=_0x369955-0x0;let _0x790c51=_0x5e65[_0x369955];return _0x790c51;};import{View as _0x57c066}from'ckeditor5/src/ui.js';import{trimHtml as _0x5b25c1}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x3bf727 from'./commentcontentview.js';import _0x3d49fa from'./commentinputview.js';import{getTranslation as _0x1df1d0}from'../../../utils/common-translations.js';export default class ti extends _0x57c066{constructor(_0x3e613d,_0x466f67,_0x197a70){super(_0x3e613d),this[_0x790c('0x9')]=_0x466f67,this[_0x790c('0x14')]=_0x197a70,this[_0x790c('0x19')]=!!this['_config'][_0x790c('0x19')],this[_0x790c('0x5')](_0x790c('0xc'),!0x1),this[_0x790c('0x5')]('isCollapsed',!0x0),this[_0x790c('0x2')]=this[_0x790c('0x12')](),this[_0x790c('0x2')][_0x790c('0x1b')](this[_0x790c('0xa')]());}[_0x790c('0x16')](){this[_0x790c('0x1')]=!0x1;}[_0x790c('0x1f')](){this[_0x790c('0xc')]||(this[_0x790c('0x1')]=!0x0);}[_0x790c('0x0')](){this[_0x790c('0x6')][_0x790c('0x0')]();}async[_0x790c('0x13')](){await this[_0x790c('0x2')]['get'](0x0)[_0x790c('0x13')](),super[_0x790c('0x13')]();}[_0x790c('0xb')](){this['isEditMode']||(this['isEditMode']=!0x0,this[_0x790c('0x2')]['remove'](0x0)[_0x790c('0x13')](),this[_0x790c('0x2')][_0x790c('0x1b')](this[_0x790c('0x7')]()));}[_0x790c('0x18')](){this['isEditMode']&&(this['isEditMode']=!0x1,this[_0x790c('0x2')][_0x790c('0x15')](0x0)['destroy'](),this['visibleView'][_0x790c('0x1b')](this[_0x790c('0xa')]()));}[_0x790c('0xa')](){const _0x2c9048=new _0x3bf727(this[_0x790c('0xf')]);return _0x2c9048['bind']('content')['to'](this[_0x790c('0x9')],_0x790c('0x1a'),this,_0x790c('0x1'),(_0x2c58ae,_0x1953e6)=>_0x1953e6?_0x5b25c1(_0x2c58ae,{'limit':this[_0x790c('0x14')][_0x790c('0x10')]}):_0x2c58ae),_0x2c9048;}[_0x790c('0x7')](){this[_0x790c('0x14')][_0x790c('0x1e')]||(this[_0x790c('0x14')][_0x790c('0x1e')]={}),this[_0x790c('0x14')]['editorConfig']['initialData']=this[_0x790c('0x9')][_0x790c('0x1a')];const _0x98abfd=new _0x3d49fa(this[_0x790c('0xf')],this[_0x790c('0x14')][_0x790c('0x1e')]);return _0x98abfd[_0x790c('0x11')]=this[_0x790c('0x9')][_0x790c('0x1a')],_0x98abfd[_0x790c('0x17')]('disabledSubmit')['to'](this[_0x790c('0x9')],_0x790c('0x4')),_0x98abfd[_0x790c('0x8')]=_0x1df1d0(this[_0x790c('0xf')],_0x790c('0xe')),_0x98abfd['on']('submit',(_0x34c6fc,_0x507c7d)=>{this[_0x790c('0x1d')](_0x790c('0xd'),this[_0x790c('0x9')]['id'],_0x507c7d),this[_0x790c('0x18')](),this[_0x790c('0x0')]();}),_0x98abfd['on']('cancel',()=>{this[_0x790c('0x18')](),this[_0x790c('0x0')]();}),_0x98abfd[_0x790c('0x3')](_0x790c('0x1c'),()=>{_0x98abfd['focus']();}),_0x98abfd['createEditor'](),_0x98abfd[_0x790c('0x21')]('editorReady')['to'](this),_0x98abfd['delegate'](_0x790c('0x20'))['to'](this),_0x98abfd;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x50b8=['count','NUMBER_OF_COMMENTS','setTemplate','ck-thread__comment-count','bindTemplate'];(function(_0x84b8b9,_0x50b883){const _0x16089d=function(_0x40e253){while(--_0x40e253){_0x84b8b9['push'](_0x84b8b9['shift']());}};_0x16089d(++_0x50b883);}(_0x50b8,0x86));const _0x1608=function(_0x84b8b9,_0x50b883){_0x84b8b9=_0x84b8b9-0x0;let _0x16089d=_0x50b8[_0x84b8b9];return _0x16089d;};import{View as _0x11899c}from'ckeditor5/src/ui.js';import{getTranslation as _0x29800f}from'../../../utils/common-translations.js';export default class ts extends _0x11899c{constructor(_0x5837b4){super(_0x5837b4);const _0x3ce661=this[_0x1608('0x0')];this['set'](_0x1608('0x1'),void 0x0),this[_0x1608('0x3')]({'tag':'li','attributes':{'class':_0x1608('0x4')},'children':[{'text':_0x3ce661['to'](_0x1608('0x1'),_0x1d194f=>_0x29800f(_0x5837b4,_0x1608('0x2'),_0x1d194f))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4bff=['content','div','ck-comment__content','element','render','innerHTML','ck-annotation__content','change:content'];(function(_0x8c1255,_0x4bff90){var _0xea7f55=function(_0x3d312e){while(--_0x3d312e){_0x8c1255['push'](_0x8c1255['shift']());}};_0xea7f55(++_0x4bff90);}(_0x4bff,0x88));var _0xea7f=function(_0x8c1255,_0x4bff90){_0x8c1255=_0x8c1255-0x0;var _0xea7f55=_0x4bff[_0x8c1255];return _0xea7f55;};import{View as _0x261dd6}from'ckeditor5/src/ui.js';export default class Yt extends _0x261dd6{constructor(_0x48fa77){super(_0x48fa77),this['set'](_0xea7f('0x0'),''),this['setTemplate']({'tag':_0xea7f('0x1'),'attributes':{'class':[_0xea7f('0x2'),_0xea7f('0x6')]}});}[_0xea7f('0x4')](){super['render'](),this['on'](_0xea7f('0x7'),(_0x1f6a51,_0x452ecc,_0x498160)=>{this['element'][_0xea7f('0x5')]=_0x498160;}),this[_0xea7f('0x3')][_0xea7f('0x5')]=this[_0xea7f('0x0')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x28fe=['low','Esc','submitLabel','placeholder','high','keystrokes','setData','div','length','add','set','render','then','ck-comment__input-actions','label','extendTemplate','createEditor','submitButtonView','editor','create','Cancel','forEach','element','Reply...','submit','shift\x20+\x20tab','model','value','editorReady','view','isEnabled','cancelButtonView','trim','_editorConfig','ck-comment__input-actions--active','showButtons','getData','_initializeFocusCycling','tab','_editorCreationPromise','destroy','disabledSubmit','ck-comment__input-wrapper','fire','focusNext','_createCancelButton','focus','withText','bind','Reply','initialData','listenTo','change','_createSubmitButton','execute','focusTracker','_isDestroyed','insertBefore'];(function(_0x2c61eb,_0x28febd){const _0x5053a6=function(_0x5c8e86){while(--_0x5c8e86){_0x2c61eb['push'](_0x2c61eb['shift']());}};_0x5053a6(++_0x28febd);}(_0x28fe,0x11e));const _0x5053=function(_0x2c61eb,_0x28febd){_0x2c61eb=_0x2c61eb-0x0;let _0x5053a6=_0x28fe[_0x2c61eb];return _0x5053a6;};import{View as _0xd1bde8,ViewCollection as _0x16b220,FocusCycler as _0x4e9b2f,ButtonView as _0x297e18}from'ckeditor5/src/ui.js';import{FocusTracker as _0x1285dc,KeystrokeHandler as _0x397cbb}from'ckeditor5/src/utils.js';import _0x1e188e from'../commenteditor/commenteditor.js';import{getTranslation as _0x1c9f29}from'../../../utils/common-translations.js';export default class Zt extends _0xd1bde8{constructor(_0x58d0e8,_0x1bf096={}){super(_0x58d0e8),this[_0x5053('0x16')]=null,this[_0x5053('0x25')]=_0x1bf096,this[_0x5053('0x9')]=new _0x397cbb(),this[_0x5053('0x1')]=new _0x1285dc(),this[_0x5053('0xe')](_0x5053('0x1f'),_0x1bf096[_0x5053('0x36')]||''),this['set'](_0x5053('0x2d'),!0x1),this[_0x5053('0xe')](_0x5053('0x27'),!0x0),this[_0x5053('0xe')](_0x5053('0x7'),_0x1c9f29(_0x58d0e8,_0x5053('0x1b'))),this[_0x5053('0xe')](_0x5053('0x6'),_0x1c9f29(_0x58d0e8,_0x5053('0x35'))),this[_0x5053('0x15')]=this['_createSubmitButton'](),this[_0x5053('0x23')]=this[_0x5053('0x31')](),this['setTemplate']({'tag':_0x5053('0xb'),'attributes':{'class':[_0x5053('0x2e')]},'children':[{'tag':_0x5053('0xb'),'attributes':{'class':[_0x5053('0x11'),this['bindTemplate']['if'](_0x5053('0x27'),_0x5053('0x26'))]},'children':[this[_0x5053('0x15')],this['cancelButtonView']]}]}),this['keystrokes'][_0x5053('0xe')](_0x5053('0x5'),(_0x3b09d7,_0x4b51ab)=>{this[_0x5053('0x23')][_0x5053('0x2f')](_0x5053('0x0')),_0x4b51ab();}),this['on'](_0x5053('0x1c'),(_0x471836,_0x3aa59e)=>{_0x3aa59e[_0x5053('0xc')]>0xfde8?(alert(_0x1c9f29(_0x58d0e8,'TOO_LONG_COMMENT_ALERT',[_0x3aa59e[_0x5053('0xc')],0xfde8])),_0x471836['stop']()):this[_0x5053('0x16')][_0x5053('0xa')]('');},{'priority':_0x5053('0x8')});}['render'](){super[_0x5053('0xf')](),this[_0x5053('0x9')][_0x5053('0x37')](this[_0x5053('0x1a')]),this[_0x5053('0x1')][_0x5053('0xd')](this['element']);}[_0x5053('0x14')](){return this[_0x5053('0x16')]||(this[_0x5053('0x16')]=new _0x1e188e(this[_0x5053('0x25')]),this[_0x5053('0x2b')]=this[_0x5053('0x16')][_0x5053('0x17')]()[_0x5053('0x10')](()=>{if(this['_isDestroyed'])return;const _0xbc2c25=this[_0x5053('0x16')];this[_0x5053('0x1a')][_0x5053('0x3')](_0xbc2c25['ui'][_0x5053('0x1a')],this[_0x5053('0x1a')]['firstChild']),_0xbc2c25[_0x5053('0x1e')]['document']['on'](_0x5053('0x38'),()=>this[_0x5053('0x1f')]=_0xbc2c25[_0x5053('0x28')]()),_0xbc2c25[_0x5053('0x34')](_0x5053('0x7'))['to'](this),this[_0x5053('0x29')](this[_0x5053('0x16')]),this[_0x5053('0x2f')](_0x5053('0x20'),this['editor']);})),this[_0x5053('0x2b')];}[_0x5053('0x32')](){this['editor']&&this[_0x5053('0x16')][_0x5053('0x32')]();}async[_0x5053('0x2c')](){this[_0x5053('0x2')]||(this[_0x5053('0x2')]=!0x0,this[_0x5053('0x16')]&&(await this[_0x5053('0x2b')],await this[_0x5053('0x16')][_0x5053('0x2c')](),this[_0x5053('0x2f')]('editorDestroyed',this['editor'])),await super['destroy']());}[_0x5053('0x39')](){const {locale:_0x2853f0}=this,_0x1acce5=new _0x297e18(_0x2853f0);return _0x1acce5['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x1acce5[_0x5053('0x33')]=!0x0,_0x1acce5[_0x5053('0x34')](_0x5053('0x12'))['to'](this,_0x5053('0x6')),_0x1acce5['on'](_0x5053('0x0'),()=>{this[_0x5053('0x2f')]('submit',this[_0x5053('0x1f')]);}),_0x1acce5[_0x5053('0x34')](_0x5053('0x22'))['to'](this,_0x5053('0x1f'),this,_0x5053('0x2d'),(_0xdcc8af,_0xa2cef4)=>!_0xa2cef4&&!!_0xdcc8af[_0x5053('0x24')]()),_0x1acce5;}[_0x5053('0x31')](){const {locale:_0x4c2337}=this,_0xb4581=new _0x297e18(_0x4c2337);return _0xb4581[_0x5053('0x13')]({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0xb4581[_0x5053('0x12')]=_0x1c9f29(_0x4c2337,_0x5053('0x18')),_0xb4581['withText']=!0x0,_0xb4581['on'](_0x5053('0x0'),()=>{this[_0x5053('0x16')]['setData'](''),this[_0x5053('0x2f')]('cancel');}),_0xb4581;}['_initializeFocusCycling'](_0x3db628){const _0x48f6fb=this['focusTracker'],_0x3db9b1=new _0x16b220();[_0x3db628['ui'][_0x5053('0x21')],this[_0x5053('0x15')],this[_0x5053('0x23')]][_0x5053('0x19')](_0x5f09=>{_0x3db9b1['add'](_0x5f09),_0x48f6fb[_0x5053('0xd')](_0x5f09[_0x5053('0x1a')]);});const _0x224812=new _0x4e9b2f({'focusables':_0x3db9b1,'focusTracker':_0x48f6fb});this['keystrokes']['set'](_0x5053('0x2a'),(_0x1d3ec5,_0x3f31d4)=>{_0x224812[_0x5053('0x30')](),_0x3f31d4();},{'priority':_0x5053('0x4')}),this[_0x5053('0x9')][_0x5053('0xe')](_0x5053('0x1d'),(_0x26755b,_0x331111)=>{_0x224812['focusPrevious'](),_0x331111();},{'priority':'low'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x25d2=['destroy','_focusTracker','div','listenTo','EMPTY_COMMENTS_ARCHIVE','isEmpty','remove','element','tab','arrowup','focus','ck-comments-archive__info','arrowdown','ck-comments-archive__content','arrowleft','stopPropagation','shift\x20+\x20tab','set','length','add','auto','_keystrokes','_focusables','render'];(function(_0xec3708,_0x25d217){const _0x52b7c8=function(_0x5c612c){while(--_0x5c612c){_0xec3708['push'](_0xec3708['shift']());}};_0x52b7c8(++_0x25d217);}(_0x25d2,0xa2));const _0x52b7=function(_0xec3708,_0x25d217){_0xec3708=_0xec3708-0x0;let _0x52b7c8=_0x25d2[_0xec3708];return _0x52b7c8;};import{View as _0x5c16e6,FocusCycler as _0x42b66d}from'ckeditor5/src/ui.js';import{FocusTracker as _0x1504c5,KeystrokeHandler as _0xb22cb}from'ckeditor5/src/utils.js';import{getTranslation as _0x25b373}from'../../../utils/common-translations.js';export default class K extends _0x5c16e6{constructor(_0x1bbcd8,_0x48f16a){super(_0x1bbcd8),this['set']('isEmpty',!_0x48f16a['length']),this[_0x52b7('0x7')]=new _0x1504c5(),this['_keystrokes']=new _0xb22cb(),this[_0x52b7('0x4')]=_0x48f16a,this['_focusCycler']=new _0x42b66d({'focusables':this[_0x52b7('0x4')],'focusTracker':this[_0x52b7('0x7')],'keystrokeHandler':this[_0x52b7('0x3')],'actions':{'focusPrevious':_0x52b7('0x16'),'focusNext':_0x52b7('0xe')}}),this[_0x52b7('0x9')](_0x48f16a,_0x52b7('0x1'),()=>{this[_0x52b7('0xb')]=!0x1;}),this['listenTo'](_0x48f16a,_0x52b7('0xc'),(_0x3e1597,_0x119a50)=>{_0x119a50['isActive']&&this[_0x52b7('0x10')](),_0x48f16a[_0x52b7('0x0')]||(this[_0x52b7('0xb')]=!0x0);});const _0x4606bf=this['bindTemplate'];this['setTemplate']({'tag':_0x52b7('0x8'),'attributes':{'dir':_0x52b7('0x2'),'class':['ck','ck-comments-archive'],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':['ck-comments-archive__header\x20']},'children':[{'text':_0x25b373(_0x1bbcd8,'COMMENTS_ARCHIVE')}]},{'tag':_0x52b7('0x8'),'attributes':{'class':[_0x52b7('0x13')]},'children':[{'tag':_0x52b7('0x8'),'children':_0x48f16a},{'tag':'p','attributes':{'class':[_0x52b7('0x11'),_0x4606bf['if'](_0x52b7('0xb'),'ck-hidden',_0x5e8ab5=>!_0x5e8ab5)]},'children':[{'text':_0x25b373(_0x1bbcd8,_0x52b7('0xa'))}]}]}]});}[_0x52b7('0x5')](){super[_0x52b7('0x5')](),this[_0x52b7('0x3')][_0x52b7('0x9')](this[_0x52b7('0xd')]);const _0x494780=_0x5f3932=>_0x5f3932[_0x52b7('0x15')]();this[_0x52b7('0x3')][_0x52b7('0x17')]('arrowright',_0x494780),this[_0x52b7('0x3')][_0x52b7('0x17')](_0x52b7('0x14'),_0x494780),this['_keystrokes'][_0x52b7('0x17')](_0x52b7('0xf'),_0x494780),this[_0x52b7('0x3')]['set'](_0x52b7('0x12'),_0x494780),this[_0x52b7('0x9')](this['element'],'selectstart',(_0x39d92c,_0x5a9a7d)=>{_0x5a9a7d[_0x52b7('0x15')]();},{'priority':'high'});}[_0x52b7('0x6')](){super['destroy'](),this[_0x52b7('0x7')][_0x52b7('0x6')](),this[_0x52b7('0x3')]['destroy']();}[_0x52b7('0x10')](){this[_0x52b7('0xd')]['focus']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x45fe=['visibleViews','_handleNewCommentModel','editorReady','isEditMode','hasDirtyComment','destroy','_shouldCollapse','maxCommentsWhenCollapsed','resolvedBy','_updateHasDirtyComment','removeComment','refreshVisibleViews','_handleRemoveCommentModel','equal','isActive','add','focus','updateComment','_collapsedCommentsView','_model','editorDestroyed','Marked\x20as\x20resolved','_rearrangeExpand','resolved','remove','maxCommentCharsWhenCollapsed','formatDateTime','_handleInfoComment','_findOptimalIndex','delegate','stopListening','change:isResolved','some','resolvedAt','editorConfig','commentUpdated','_rearrangeCollapse','setTemplate','listenTo','element','change:isActive','length','viewUid','comments','expand','_config','CommentView','resolvedCommentView','set','render','maxThreadTotalWeight','createCollection','get','commentViews','insert','locale','count','change:isEditMode','authoredAt','from'];(function(_0x321359,_0x45fe2c){const _0x40f127=function(_0x575b8a){while(--_0x575b8a){_0x321359['push'](_0x321359['shift']());}};_0x40f127(++_0x45fe2c);}(_0x45fe,0x136));const _0x40f1=function(_0x321359,_0x45fe2c){_0x321359=_0x321359-0x0;let _0x40f127=_0x45fe[_0x321359];return _0x40f127;};import{View as _0xf319f3}from'ckeditor5/src/ui.js';import{diff as _0x23cb96,Collection as _0x32f3e1}from'ckeditor5/src/utils.js';import{getTranslation as _0x3b9a13}from'../../../utils/common-translations.js';import _0x36a04f from'./collapsedcommentsview.js';export default class vt extends _0xf319f3{constructor(_0x350ae7,_0x18b85e,_0x37c98a){super(_0x350ae7),this[_0x40f1('0x26')](_0x40f1('0x36'),!0x1),this['set'](_0x40f1('0x1f'),_0x18b85e[_0x40f1('0x21')][_0x40f1('0x1f')]),this[_0x40f1('0x26')](_0x40f1('0x4'),!0x1),this[_0x40f1('0x9')]=_0x18b85e,this[_0x40f1('0x23')]=_0x37c98a,this[_0x40f1('0x2b')]=this[_0x40f1('0x29')](),this[_0x40f1('0x32')]=this['createCollection'](),this[_0x40f1('0x25')]=null,this[_0x40f1('0x8')]=new _0x36a04f(_0x350ae7),this[_0x40f1('0x8')]['bind']('count')['to'](this,'length',_0x1ff991=>_0x1ff991-this[_0x40f1('0x23')][_0x40f1('0x39')]);for(const _0x124ec8 of _0x18b85e[_0x40f1('0x21')])this[_0x40f1('0x33')](_0x124ec8);this['_handleInfoComment'](),this['listenTo'](_0x18b85e[_0x40f1('0x21')],_0x40f1('0x5'),(_0x5e1345,_0x9e9425)=>{const _0x4ec74f=this['_calculatePosition'](_0x9e9425);this[_0x40f1('0x1f')]++,this[_0x40f1('0x33')](_0x9e9425,_0x4ec74f),this[_0x40f1('0x1')]();}),this[_0x40f1('0x1c')](_0x18b85e[_0x40f1('0x21')],_0x40f1('0xe'),(_0x326297,_0x1a5525)=>{this['length']--,this[_0x40f1('0x2')](_0x1a5525),this['refreshVisibleViews']();}),this[_0x40f1('0x1c')](_0x18b85e,_0x40f1('0x19'),()=>this[_0x40f1('0x1')]()),this[_0x40f1('0x1c')](_0x18b85e,_0x40f1('0x15'),()=>this[_0x40f1('0x11')]()),this['on'](_0x40f1('0x1e'),()=>this['refreshVisibleViews']()),this['on']('change:hasDirtyComment',()=>this[_0x40f1('0x1')]()),this[_0x40f1('0x1b')]({'tag':'ul','attributes':{'class':['ck-thread__comments']},'children':this[_0x40f1('0x32')]});}get['_shouldCollapse'](){return this[_0x40f1('0x9')]['weight']>this[_0x40f1('0x23')][_0x40f1('0x28')]&&!this['isActive']&&!this['hasDirtyComment'];}[_0x40f1('0x27')](){super['render'](),this[_0x40f1('0x1')]();}[_0x40f1('0x6')](){this[_0x40f1('0x1d')][_0x40f1('0x6')]();}['destroy'](){this['_collapsedCommentsView'][_0x40f1('0x37')]();for(const _0x33914d of this['commentViews'])_0x33914d[_0x40f1('0x37')]();super[_0x40f1('0x37')]();}[_0x40f1('0x1')](){this[_0x40f1('0x38')]?this[_0x40f1('0x1a')]():this[_0x40f1('0xc')]();}[_0x40f1('0x33')](_0x1fbcfe,_0x1c077f){const _0x44ecbb=new this['_config'][(_0x40f1('0x24'))](this[_0x40f1('0x2d')],_0x1fbcfe,{'maxCommentCharsWhenCollapsed':this[_0x40f1('0x23')]['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config'][_0x40f1('0x10')],'editorConfig':this[_0x40f1('0x23')][_0x40f1('0x18')]});_0x44ecbb[_0x40f1('0x20')]=_0x1fbcfe['id'],_0x44ecbb[_0x40f1('0x13')](_0x40f1('0x0'))['to'](this),_0x44ecbb['delegate'](_0x40f1('0x7'))['to'](this),_0x44ecbb[_0x40f1('0x13')]('resolveCommentThread')['to'](this),_0x44ecbb[_0x40f1('0x13')](_0x40f1('0x34'))['to'](this),_0x44ecbb['delegate'](_0x40f1('0xa'))['to'](this),this[_0x40f1('0x1c')](_0x44ecbb,_0x40f1('0x2f'),()=>this[_0x40f1('0x3b')]()),this[_0x40f1('0x2b')]['add'](_0x44ecbb,_0x1c077f);}['_calculatePosition'](_0x58e39b){const _0x18a16e=this['_model']['_findOptimalIndex'](_0x58e39b);return this[_0x40f1('0x25')]?this[_0x40f1('0x25')][_0x40f1('0x30')]>_0x58e39b[_0x40f1('0x30')]?_0x18a16e-0x1:_0x18a16e:_0x18a16e-0x1;}['_handleInfoComment'](){if(this[_0x40f1('0x9')][_0x40f1('0x3a')]&&this[_0x40f1('0x9')][_0x40f1('0x17')]){const _0x5c529f={'id':_0x40f1('0xd'),'author':this['_model'][_0x40f1('0x3a')],'authoredAt':this[_0x40f1('0x9')][_0x40f1('0x17')],'content':_0x3b9a13(this['locale'],_0x40f1('0xb')),'attributes':{}};this['resolvedCommentView']=new this[(_0x40f1('0x23'))]['CommentView'](this['locale'],_0x5c529f,{'maxCommentCharsWhenCollapsed':this[_0x40f1('0x23')][_0x40f1('0xf')],'formatDateTime':this[_0x40f1('0x23')][_0x40f1('0x10')],'editorConfig':this[_0x40f1('0x23')][_0x40f1('0x18')],'isSystemComment':!0x0}),this[_0x40f1('0x2b')][_0x40f1('0x5')](this[_0x40f1('0x25')],this[_0x40f1('0x9')][_0x40f1('0x12')](_0x5c529f));}else this[_0x40f1('0x25')]&&(this[_0x40f1('0x2b')]['remove'](this[_0x40f1('0x25')]),this['resolvedCommentView'][_0x40f1('0x37')](),this['resolvedCommentView']=null);this[_0x40f1('0x1')]();}[_0x40f1('0x2')](_0x28a3f9){const _0x1da42b=this[_0x40f1('0x2b')][_0x40f1('0xe')](_0x28a3f9['id']);this[_0x40f1('0x14')](_0x1da42b),_0x1da42b[_0x40f1('0x35')]&&this['_updateHasDirtyComment'](),_0x1da42b[_0x40f1('0x37')]();}[_0x40f1('0x3b')](){this['hasDirtyComment']=Array['from'](this['commentViews'])[_0x40f1('0x16')](_0x1f2e2d=>_0x1f2e2d[_0x40f1('0x35')]);}['_rearrangeCollapse'](){const _0x24527e=function(_0x2cb015){const _0x6e8f81=new _0x32f3e1();for(const _0x54ff60 of _0x2cb015)_0x6e8f81[_0x40f1('0x5')](_0x54ff60);return _0x6e8f81;}(this[_0x40f1('0x2b')]),_0x2156d3=this['_collapsedCommentsView'][_0x40f1('0x2e')];for(let _0x562da5=0x1;_0x562da5<=_0x2156d3;_0x562da5++)_0x24527e[_0x40f1('0xe')](0x1);for(const _0x52a0aa of _0x24527e)_0x52a0aa['collapse']();_0x2156d3>0x0&&_0x24527e[_0x40f1('0x5')](this['_collapsedCommentsView'],0x1),is(_0x23cb96(Array[_0x40f1('0x31')](this[_0x40f1('0x32')]),Array[_0x40f1('0x31')](_0x24527e)),this[_0x40f1('0x32')],_0x24527e);}[_0x40f1('0xc')](){is(_0x23cb96(Array[_0x40f1('0x31')](this[_0x40f1('0x32')]),Array[_0x40f1('0x31')](this['commentViews'])),this[_0x40f1('0x32')],this[_0x40f1('0x2b')]);for(const _0x1c3886 of this[_0x40f1('0x32')])_0x1c3886[_0x40f1('0x22')]();}}function is(_0x250692,_0x96e4a9,_0x37594a){let _0x2730e6=0x0;for(const _0x26deb1 of _0x250692)switch(_0x26deb1){case _0x40f1('0x2c'):_0x96e4a9['add'](_0x37594a[_0x40f1('0x2a')](_0x2730e6),_0x2730e6),_0x2730e6++;break;case'delete':_0x96e4a9[_0x40f1('0xe')](_0x2730e6);break;case _0x40f1('0x3'):_0x2730e6++;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d0b=['substring','context','remove','bindTemplate','label','isResolved','contextValue','isResolvable','render','listenTo','icon','.ck-context','fire','mouseleave','classList','querySelector','...','bind','overlay','ck-context--quotes','offsetWidth','hasContext','isVisible','mouseenter','setTemplate','isReadOnly','ck-context','span','div','reopenButtonView','length','lastIndexOf','tooltip','add','ck-context__value','execute','locale','element','_model','Comment\x20was\x20made\x20on\x20an\x20element','value','_attachContextActions','ck-annotation__actions','_trimContextValue','_createReopenButton','Reopen'];(function(_0x4f94f1,_0x2d0b82){const _0x4e8229=function(_0x6c0dd1){while(--_0x6c0dd1){_0x4f94f1['push'](_0x4f94f1['shift']());}};_0x4e8229(++_0x2d0b82);}(_0x2d0b,0x1b2));const _0x4e82=function(_0x4f94f1,_0x2d0b82){_0x4f94f1=_0x4f94f1-0x0;let _0x4e8229=_0x2d0b[_0x4f94f1];return _0x4e8229;};import{View as _0x1a5215,ButtonView as _0x54dc70}from'ckeditor5/src/ui.js';import{getTranslation as _0x259b0}from'../../../utils/common-translations.js';import _0x17bbce from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Tt extends _0x1a5215{constructor(_0x188e6c,_0x349a24){super(_0x188e6c);const _0xa1b292=this[_0x4e82('0x1d')];this[_0x4e82('0x12')]=_0x349a24,this[_0x4e82('0x9')]=this[_0x4e82('0x18')](),this[_0x4e82('0x2b')](_0x4e82('0x1'))['to'](this['_model'],_0x4e82('0x1b'),_0x415d98=>!!_0x415d98),this[_0x4e82('0x2b')](_0x4e82('0x20'))['to'](this[_0x4e82('0x12')],'context',_0x16116f=>_0x16116f&&_0x16116f[_0x4e82('0x14')]?this[_0x4e82('0x17')](_0x16116f[_0x4e82('0x14')]):_0x259b0(this[_0x4e82('0x10')],_0x4e82('0x13'))),this[_0x4e82('0x4')]({'tag':_0x4e82('0x8'),'attributes':{'class':['ck-thread__header']},'children':[{'tag':_0x4e82('0x8'),'attributes':{'class':['ck-context-wrapper']},'children':[{'tag':'div','attributes':{'class':[_0x4e82('0x6'),_0xa1b292['if'](_0x4e82('0x1'),_0x4e82('0x2d'))]},'children':[{'tag':_0x4e82('0x7'),'attributes':{'class':[_0x4e82('0xe')]},'children':[{'text':_0xa1b292['to'](_0x4e82('0x20'))}]}]}]},{'tag':_0x4e82('0x8'),'attributes':{'class':[_0x4e82('0x16')]},'children':[this[_0x4e82('0x9')]]}]});}['render'](){super[_0x4e82('0x22')](),this[_0x4e82('0x15')]();}[_0x4e82('0x18')](){const _0x2224c6=new _0x54dc70(this[_0x4e82('0x10')]);return _0x2224c6[_0x4e82('0x1e')]=_0x259b0(this[_0x4e82('0x10')],_0x4e82('0x19')),_0x2224c6[_0x4e82('0xc')]=_0x259b0(this[_0x4e82('0x10')],_0x4e82('0x19')),_0x2224c6[_0x4e82('0x24')]=_0x17bbce,_0x2224c6[_0x4e82('0x2b')]('isEnabled')['to'](this[_0x4e82('0x12')],_0x4e82('0x5'),_0x410d76=>!_0x410d76),_0x2224c6[_0x4e82('0x2b')](_0x4e82('0x2'))['to'](this[_0x4e82('0x12')],_0x4e82('0x21'),this[_0x4e82('0x12')],_0x4e82('0x1f'),(_0x31c000,_0x8b638d)=>_0x31c000&&_0x8b638d),_0x2224c6['on'](_0x4e82('0xf'),()=>{this[_0x4e82('0x26')]('reopenCommentThread',this[_0x4e82('0x12')]['id']);}),_0x2224c6;}[_0x4e82('0x17')](_0x521208){if(_0x521208[_0x4e82('0xa')]<0x96)return _0x521208;const _0x5c8c7d=_0x521208[_0x4e82('0xb')]('\x20',0x93);return _0x521208[_0x4e82('0x1a')](0x0,_0x5c8c7d>-0x1?_0x5c8c7d:0x93)+_0x4e82('0x2a');}[_0x4e82('0x15')](){const _0x19cac9=this[_0x4e82('0x11')]['querySelector'](_0x4e82('0x25')),_0x58254d=_0x19cac9[_0x4e82('0x29')]('.ck-context__value');this[_0x4e82('0x23')](_0x19cac9,_0x4e82('0x3'),()=>{_0x58254d[_0x4e82('0x0')]<_0x58254d['scrollWidth']&&_0x19cac9[_0x4e82('0x28')][_0x4e82('0xd')](_0x4e82('0x2c'));}),this['listenTo'](_0x19cac9,_0x4e82('0x27'),()=>{_0x19cac9[_0x4e82('0x28')][_0x4e82('0x1c')](_0x4e82('0x2c'));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xd349=['extendTemplate','showInput','destroy','set','bindTemplate','delegate','focusTracker','ck-thread__input','ck-comment__input-container','value','editor','userView','commentInputView','isFocused','ck-thread__user','ck-comment__input-container--active','bind'];(function(_0x3575f9,_0xd349eb){var _0x1bb994=function(_0x16e3aa){while(--_0x16e3aa){_0x3575f9['push'](_0x3575f9['shift']());}};_0x1bb994(++_0xd349eb);}(_0xd349,0x144));var _0x1bb9=function(_0x3575f9,_0xd349eb){_0x3575f9=_0x3575f9-0x0;var _0x1bb994=_0xd349[_0x3575f9];return _0x1bb994;};import{View as _0x36af07}from'ckeditor5/src/ui.js';import _0x39e37f from'./commentinputview.js';import{UserView as _0x3e4cb5}from'ckeditor5-collaboration/src/collaboration-core.js';export default class Ct extends _0x36af07{constructor(_0x2c172d,_0x54dd9a,_0x3d7a6b){super(_0x2c172d),this[_0x1bb9('0xb')]=new _0x39e37f(_0x2c172d,_0x3d7a6b),this[_0x1bb9('0xb')][_0x1bb9('0xf')]('showButtons')['to'](this[_0x1bb9('0xb')][_0x1bb9('0x5')],_0x1bb9('0xc'),this['commentInputView'],_0x1bb9('0x8'),(_0x5771d9,_0x5d1776)=>_0x5771d9||!!_0x5d1776),this[_0x1bb9('0x2')](_0x1bb9('0x0'),!0x1),this['on']('change:showInput',()=>{this[_0x1bb9('0x0')]&&!this[_0x1bb9('0xb')][_0x1bb9('0x9')]&&this[_0x1bb9('0xb')]['createEditor']();}),this['commentInputView'][_0x1bb9('0x4')]('editorReady')['to'](this),this[_0x1bb9('0xb')][_0x1bb9('0x4')]('editorDestroyed')['to'](this),this[_0x1bb9('0xa')]=new _0x3e4cb5(_0x2c172d,_0x54dd9a),this[_0x1bb9('0xa')][_0x1bb9('0x10')]({'attributes':{'class':_0x1bb9('0xd')}}),this[_0x1bb9('0xb')][_0x1bb9('0x10')]({'attributes':{'class':_0x1bb9('0x6')}}),this['setTemplate']({'tag':'div','attributes':{'class':[_0x1bb9('0x7'),this[_0x1bb9('0x3')]['if'](_0x1bb9('0x0'),_0x1bb9('0xe'))]},'children':[this['userView'],this[_0x1bb9('0xb')]]});}[_0x1bb9('0x1')](){return this[_0x1bb9('0xb')][_0x1bb9('0x1')]()['then'](()=>super['destroy']());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x367f=['actionBar','change:archivedAt','isConfirm','commentsListView','_model','removeButton','containerElement','isEnabled','querySelector','ck-comment--resolve','isSystemComment','commentThreadHeaderView','resolveCommentThread','execute','Resolve','element','remove','resolveButton','isVisible','locale','setTemplate','commentThreadInputView','showConfirm','cancelConfirm','then','_boundFirstCommentView','_bindFirstCommentView','_createResolveButton','extendTemplate','has','removeCommentThread','.ck-thread__container','commentThreadChildren','add','isResolvable','_cancelAllConfirms','actionIndicator','createCollection','length','commentViews','bind','ck-reset_all-excluded','Write\x20a\x20comment...','set','getTemplate','isReadOnly','Delete\x20comment\x20thread?','ck-thread','isResolved','div','isUnlinked','change:isReadOnly','listenTo','archivedAt','ck-thread__container','ck-thread--active','render','fire','change:isActive','ck-thread--','check'];(function(_0x1ca30e,_0x367f24){const _0x200f30=function(_0x17e6c8){while(--_0x17e6c8){_0x1ca30e['push'](_0x1ca30e['shift']());}};_0x200f30(++_0x367f24);}(_0x367f,0xdc));const _0x200f=function(_0x1ca30e,_0x367f24){_0x1ca30e=_0x1ca30e-0x0;let _0x200f30=_0x367f[_0x1ca30e];return _0x200f30;};import{ConfirmMixin as _0x1a8214}from'ckeditor5-collaboration/src/collaboration-core.js';import{ButtonView as _0x1b8d68}from'ckeditor5/src/ui.js';import{icons as _0x259b9d}from'ckeditor5/src/core.js';import _0x418a74 from'./basecommentthreadview.js';import{getTranslation as _0x19fd4f}from'../../../utils/common-translations.js';export default class ft extends _0x1a8214(_0x418a74){constructor(_0x51e12a,_0x3a3270,_0x31c697,_0x534d5d){super(_0x51e12a,_0x3a3270,_0x31c697,_0x534d5d),this[_0x200f('0x38')]=this[_0x200f('0x0')](),this[_0x200f('0x38')]['addMany']([this[_0x200f('0x1b')],this[_0x200f('0x2d')]]),this[_0x200f('0x1c')][_0x200f('0x10')]&&this[_0x200f('0x38')]['add'](this[_0x200f('0x23')],0x0),this['_model']['on'](_0x200f('0x19'),(_0x17d24f,_0x57a397,_0x19f511)=>{_0x19f511?this[_0x200f('0x38')][_0x200f('0x35')](this['commentThreadHeaderView'])||this[_0x200f('0x38')][_0x200f('0x39')](this[_0x200f('0x23')],0x0):this[_0x200f('0x38')]['remove'](this['commentThreadHeaderView']);}),this[_0x200f('0x6')](_0x200f('0x3c'),null),this[_0x200f('0x1e')]=null,this[_0x200f('0x31')]=null,this[_0x200f('0x2b')]=_0x51e12a,this[_0x200f('0x29')]=this['_createResolveButton'](),this[_0x200f('0x2c')](this[_0x200f('0x7')]()),this['on'](_0x200f('0x15'),(_0x248a90,_0x209a01,_0x3bfa53)=>{_0x3bfa53||this[_0x200f('0x3b')]();}),this[_0x200f('0xf')](this['_model'],_0x200f('0xe'),(_0x52fbb6,_0x17eed2,_0x310037)=>{_0x310037&&this[_0x200f('0x3b')]();}),this[_0x200f('0x1')]>0x0&&this[_0x200f('0x32')](),this['listenTo'](this[_0x200f('0x1b')][_0x200f('0x2')],_0x200f('0x39'),()=>{this['_bindFirstCommentView']();});}[_0x200f('0x7')](){const _0x3e9a9a=this['bindTemplate'];return{'tag':_0x200f('0xc'),'attributes':{'class':[_0x200f('0xa'),_0x200f('0x4'),_0x3e9a9a['if']('isActive',_0x200f('0x12')),_0x3e9a9a['if'](_0x200f('0xd'),'ck-thread--unlinked'),_0x3e9a9a['if'](_0x200f('0x1a'),'ck-thread--remove-confirmation'),_0x3e9a9a['to'](_0x200f('0x3c'),_0x5c71d1=>_0x5c71d1?_0x200f('0x16')+_0x5c71d1:'')],'data-thread-id':this[_0x200f('0x1c')]['id'],'tabindex':-0x1},'children':[{'tag':_0x200f('0xc'),'attributes':{'class':_0x200f('0x11')},'children':this[_0x200f('0x38')]}]};}[_0x200f('0x13')](){super[_0x200f('0x13')](),this['containerElement']=this[_0x200f('0x27')][_0x200f('0x20')](_0x200f('0x37'));}[_0x200f('0x3b')](){this[_0x200f('0x2f')]();for(const _0x24cabc of this['commentsListView'][_0x200f('0x2')])_0x24cabc[_0x200f('0x2f')]();}[_0x200f('0x32')](){const {locale:_0x2d33fc}=this,_0x4bad93=this[_0x200f('0x1b')][_0x200f('0x2')]['get'](0x0);_0x4bad93===this[_0x200f('0x31')]||_0x4bad93[_0x200f('0x22')]||(this[_0x200f('0x31')]=_0x4bad93,this['unbind'](_0x200f('0x3c')),this['bind'](_0x200f('0x3c'))['to'](_0x4bad93,_0x200f('0x3c'),_0x101c04=>_0x200f('0x28')===_0x101c04?'remove':null),_0x4bad93['placeholder']=_0x19fd4f(_0x2d33fc,_0x200f('0x5')),_0x4bad93[_0x200f('0x1d')]['on'](_0x200f('0x25'),_0x25076c=>{_0x25076c['stop'](),this[_0x200f('0x2e')](_0x19fd4f(_0x2d33fc,_0x200f('0x9')),this[_0x200f('0x1e')])[_0x200f('0x30')](()=>{this[_0x200f('0x14')](_0x200f('0x36'));});},{'priority':'high'}),_0x4bad93[_0x200f('0x18')][_0x200f('0x39')](this['resolveButton'],0x0));}[_0x200f('0x33')](){const _0x24d8c9=new _0x1b8d68(this[_0x200f('0x2b')]);return _0x24d8c9['label']=_0x19fd4f(this['locale'],_0x200f('0x26')),_0x24d8c9['tooltip']=_0x19fd4f(this[_0x200f('0x2b')],_0x200f('0x26')),_0x24d8c9['icon']=_0x259b9d[_0x200f('0x17')],_0x24d8c9[_0x200f('0x34')]({'attributes':{'class':_0x200f('0x21')}}),_0x24d8c9[_0x200f('0x3')](_0x200f('0x1f'))['to'](this[_0x200f('0x1c')],_0x200f('0x8'),_0x147723=>!_0x147723),_0x24d8c9['bind'](_0x200f('0x2a'))['to'](this[_0x200f('0x1c')],_0x200f('0x3a'),this['_model'],_0x200f('0xb'),(_0x4ce5ab,_0x567634)=>_0x4ce5ab&&!_0x567634),_0x24d8c9['on'](_0x200f('0x25'),()=>{this['fire'](_0x200f('0x24'),this[_0x200f('0x1c')]['id']);}),_0x24d8c9;}}
|