@ckeditor/ckeditor5-comments 0.0.0-nightly-20240128.0 → 0.0.0-nightly-20240130.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 _0xb68d=['dataInsert','addCommentThread','config','basic','listenTo','execute','commands','forEach','collaboration_features','editor','map','_handleImportedData','define','collaboration.channelId','plugins'];(function(_0x1f1feb,_0xb68df0){const _0x41e471=function(_0x5ed01d){while(--_0x5ed01d){_0x1f1feb['push'](_0x1f1feb['shift']());}};_0x41e471(++_0xb68df0);}(_0xb68d,0xe6));const _0x41e4=function(_0x1f1feb,_0xb68df0){_0x1f1feb=_0x1f1feb-0x0;let _0x41e471=_0xb68d[_0x1f1feb];return _0x41e471;};import{Plugin as _0x3f835a}from'ckeditor5/src/core.js';import{priorities as _0x10490e}from'ckeditor5/src/utils.js';import{Users as _0x5a5960}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x534c87 from'../commentsrepository.js';export default class Z extends _0x3f835a{constructor(_0x5ad411){super(_0x5ad411),this[_0x41e4('0x4')][_0x41e4('0xc')][_0x41e4('0x7')]('importWord.formatting.comments',_0x41e4('0xd'));}['afterInit'](){const _0x54c4a0=this[_0x41e4('0x4')],_0x2531a5=_0x54c4a0[_0x41e4('0x1')]['get']('importWord'),_0x41a539=_0x54c4a0[_0x41e4('0x9')]['get'](_0x5a5960);_0x2531a5&&(_0x2531a5['on'](_0x41e4('0x0'),(_0x3fc478,[,_0x471f69])=>{_0x471f69[_0x41e4('0x3')]={'comments':!0x0,'user_id':_0x41a539['me']['id']};},{'priority':_0x10490e['high']+0xa}),this[_0x41e4('0xe')](_0x2531a5,_0x41e4('0xa'),this['_handleImportedData']));}[_0x41e4('0x6')](_0x1e6c54,_0x790625){const {comment_threads:_0x207bab}=_0x790625;_0x207bab&&_0x207bab[_0x41e4('0x2')](({thread_id:_0x23ef7e,comments:_0x2a68db,is_resolved:_0xe1584a})=>{const _0x11d703=new Date(),_0x501bc0=_0x2a68db[_0x41e4('0x5')](({author:_0x942f8,content:_0x587031,created_at:_0x437046})=>({'content':_0x587031,'authorId':this['editor'][_0x41e4('0x9')]['get'](_0x5a5960)['me']['id'],'createdAt':_0x11d703,'attributes':{'@external':{'authorName':_0x942f8,'createdAt':_0x437046?new Date(_0x437046):new Date(),'source':'importWord'}}})),_0x471c8a=this[_0x41e4('0x4')][_0x41e4('0xc')]['get'](_0x41e4('0x8'));this[_0x41e4('0x4')][_0x41e4('0x9')]['get'](_0x534c87)[_0x41e4('0xb')]({'channelId':_0x471c8a,'threadId':_0x23ef7e,'comments':_0x501bc0,'resolvedAt':_0xe1584a?_0x11d703:null});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x595a=['placeholderElement','end','_updatePlaceholder','focus','set','change','init','config','createRoot','setSelection','view','then','change:placeholder','editing','plugins','document','placeholder','destroy','low','childCount','ready','getChild','assign','defaultPlugins','getRoot','model','create','data','get','initPlugins','fire'];(function(_0x18459e,_0x595ae5){const _0x2c0501=function(_0x4c1d32){while(--_0x4c1d32){_0x18459e['push'](_0x18459e['shift']());}};_0x2c0501(++_0x595ae5);}(_0x595a,0xca));const _0x2c05=function(_0x18459e,_0x595ae5){_0x18459e=_0x18459e-0x0;let _0x2c0501=_0x595a[_0x18459e];return _0x2c0501;};import{Editor as _0x19d73e,DataApiMixin as _0x13ea46}from'ckeditor5/src/core.js';import _0x548100 from'./commenteditorui.js';import{ObservableMixin as _0x2f778c}from'ckeditor5/src/utils.js';import{enablePlaceholder as _0x2e6c99,disablePlaceholder as _0x56a016}from'ckeditor5/src/engine.js';import{Clipboard as _0x341ea3}from'ckeditor5/src/clipboard.js';import{Enter as _0x5b2d03,ShiftEnter as _0x5d6fae}from'ckeditor5/src/enter.js';import{SelectAll as _0x325240}from'ckeditor5/src/select-all.js';import{Typing as _0xed00bf}from'ckeditor5/src/typing.js';import{Undo as _0x1d4dc5}from'ckeditor5/src/undo.js';import{Paragraph as _0x4e2148}from'ckeditor5/src/paragraph.js';const Mt=[_0x341ea3,_0x5b2d03,_0x5d6fae,_0x325240,_0xed00bf,_0x1d4dc5,_0x4e2148];class Nt extends _0x2f778c(_0x13ea46(_0x19d73e)){constructor(_0x223022={}){(_0x223022=Object[_0x2c05('0x6')]({},_0x223022))['plugins']||(_0x223022[_0x2c05('0x1d')]=Nt[_0x2c05('0x7')]),super(_0x223022),this['ui']=new _0x548100(this),this[_0x2c05('0x13')]('placeholder',''),this[_0x2c05('0x9')]['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':_0x2c05('0x2')}),this['on'](_0x2c05('0x1b'),()=>this[_0x2c05('0x11')]()),this[_0x2c05('0x9')][_0x2c05('0x1e')][_0x2c05('0x17')]();}[_0x2c05('0xa')](){const _0x33fe73=this[_0x2c05('0x16')][_0x2c05('0xc')]('initialData')||'';return this[_0x2c05('0xd')]()[_0x2c05('0x1a')](()=>this['ui'][_0x2c05('0x15')]())[_0x2c05('0x1a')](()=>this[_0x2c05('0xb')]['init'](_0x33fe73))[_0x2c05('0x1a')](()=>this[_0x2c05('0xe')](_0x2c05('0x4')));}[_0x2c05('0x1')](){return super['destroy']()['then'](()=>this['ui'][_0x2c05('0x1')]());}[_0x2c05('0x12')](){this['model'][_0x2c05('0x14')](_0x3fcacc=>{const _0x18532f=this[_0x2c05('0x9')]['document'][_0x2c05('0x8')](),_0x122369=_0x18532f&&_0x18532f[_0x2c05('0x5')](_0x18532f[_0x2c05('0x3')]-0x1);_0x3fcacc[_0x2c05('0x18')](_0x122369,_0x2c05('0x10')),this[_0x2c05('0x1c')][_0x2c05('0x19')][_0x2c05('0x12')]();});}[_0x2c05('0x11')](){const _0x48500e=this[_0x2c05('0x1c')][_0x2c05('0x19')],_0x50faa2=_0x48500e[_0x2c05('0x1e')]['getRoot'](),_0x42b2cb=_0x50faa2[_0x2c05('0x5')](0x0);_0x50faa2[_0x2c05('0x3')]>0x1||!_0x42b2cb||'p'!=_0x42b2cb['name']?this[_0x2c05('0xf')]&&this[_0x2c05('0xf')][_0x2c05('0x0')]&&(_0x56a016(_0x48500e,this['placeholderElement']),this[_0x2c05('0xf')]=void 0x0):(this['placeholder']&&(_0x42b2cb[_0x2c05('0x0')]=this[_0x2c05('0x0')]),_0x2e6c99({'view':_0x48500e,'element':_0x42b2cb,'keepOnFocus':!0x0}),this[_0x2c05('0xf')]=_0x42b2cb);}}Nt[_0x2c05('0x7')]=Mt;export default Nt;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x52d8=['focusTracker','fire','attachDomRoot','render','editable','view','destroy','bind','isFocused','setEditableElement','ready','editing','name','document','rootName','init','element'];(function(_0x2b1668,_0x52d868){const _0x3f1438=function(_0x4f9ec1){while(--_0x4f9ec1){_0x2b1668['push'](_0x2b1668['shift']());}};_0x3f1438(++_0x52d868);}(_0x52d8,0x119));const _0x3f14=function(_0x2b1668,_0x52d868){_0x2b1668=_0x2b1668-0x0;let _0x3f1438=_0x52d8[_0x2b1668];return _0x3f1438;};import{EditorUI as _0x33c4de}from'ckeditor5/src/ui.js';import _0x2a7be4 from'./commenteditoruiview.js';export default class Ft extends _0x33c4de{constructor(_0x22e8f1){super(_0x22e8f1),this[_0x3f14('0xd')]=new _0x2a7be4(_0x22e8f1['locale'],_0x22e8f1[_0x3f14('0x2')][_0x3f14('0xd')]);}get[_0x3f14('0x7')](){return this['view']['element'];}[_0x3f14('0x6')](){const _0x1e026c=this['editor'][_0x3f14('0x2')]['view'],_0x32819e=this[_0x3f14('0xd')]['editable'],_0xd774c9=_0x1e026c[_0x3f14('0x4')]['getRoot']();_0x32819e[_0x3f14('0x3')]=_0xd774c9[_0x3f14('0x5')],this[_0x3f14('0xd')][_0x3f14('0xb')]();const _0x354240=_0x32819e[_0x3f14('0x7')];this[_0x3f14('0x0')](_0x32819e[_0x3f14('0x3')],_0x354240),this['view'][_0x3f14('0xc')][_0x3f14('0xf')](_0x3f14('0x10'))['to'](this[_0x3f14('0x8')]),_0x1e026c[_0x3f14('0xa')](_0x354240),this[_0x3f14('0x9')](_0x3f14('0x1'));}[_0x3f14('0xe')](){super['destroy'](),this[_0x3f14('0xd')]['destroy']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2984=['editable','ck-voice-label','div','comment','add','ck-editor__main','uiLanguage','extendTemplate','main','presentation','_voiceLabelView','render','element','uiLanguageDirection','ck-editor__aria-label_','createCollection','focus','Comment\x20editor','cke-editor__aria-label_','_createVoiceLabel'];(function(_0x4289e3,_0x298408){const _0x45dac7=function(_0xc12ac4){while(--_0xc12ac4){_0x4289e3['push'](_0x4289e3['shift']());}};_0x45dac7(++_0x298408);}(_0x2984,0x17b));const _0x45da=function(_0x4289e3,_0x298408){_0x4289e3=_0x4289e3-0x0;let _0x45dac7=_0x2984[_0x4289e3];return _0x45dac7;};import{InlineEditableUIView as _0x4887be,EditorUIView as _0x1a72f8,LabelView as _0x41b3bb}from'ckeditor5/src/ui.js';import{uid as _0x155110}from'ckeditor5/src/utils.js';import{getTranslation as _0x1196e1}from'../../../utils/common-translations.js';export default class Rt extends _0x1a72f8{constructor(_0x2e688e,_0x4df372){super(_0x2e688e);const _0x5d3033=_0x155110();this[_0x45da('0x9')]=this[_0x45da('0x10')](),this[_0x45da('0x1')]=new _0x4887be(_0x2e688e,_0x4df372),this[_0x45da('0xb')]=this[_0x45da('0x0')](_0x5d3033,_0x2e688e),this['setTemplate']({'tag':_0x45da('0x3'),'attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'role':_0x45da('0x4'),'dir':_0x2e688e[_0x45da('0xe')],'lang':_0x2e688e[_0x45da('0x7')],'aria-labelledby':_0x45da('0x13')+_0x5d3033},'children':[this[_0x45da('0xb')],{'tag':_0x45da('0x3'),'attributes':{'class':_0x45da('0x6'),'role':_0x45da('0xa')},'children':this[_0x45da('0x9')]}]});}[_0x45da('0xc')](){super['render'](),this[_0x45da('0x9')][_0x45da('0x5')](this['editable']);}[_0x45da('0x11')](){this[_0x45da('0x1')][_0x45da('0xd')][_0x45da('0x11')]();}[_0x45da('0x0')](_0x2a30d6,_0x1ba432){const _0x342c02=new _0x41b3bb();return _0x342c02['text']=_0x1196e1(_0x1ba432,_0x45da('0x12')),_0x342c02[_0x45da('0x8')]({'attributes':{'id':_0x45da('0xf')+_0x2a30d6,'class':_0x45da('0x2')}}),_0x342c02;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1055=['model','submitCommentThread','updateComment','update','submit','reopen','stopListening','isResolved','_isAttached','view','removeComment','resolveCommentThread','reopenCommentThread','addComment','_localUser','resolve','removeCommentThread','getComment','listenTo','destroy','remove'];(function(_0x29e89e,_0x105508){var _0x203f02=function(_0x3899ca){while(--_0x3899ca){_0x29e89e['push'](_0x29e89e['shift']());}};_0x203f02(++_0x105508);}(_0x1055,0x114));var _0x203f=function(_0x29e89e,_0x105508){_0x29e89e=_0x29e89e-0x0;var _0x203f02=_0x1055[_0x29e89e];return _0x203f02;};import{ObservableMixin as _0x5ce2d2}from'ckeditor5/src/utils.js';export default class ut extends _0x5ce2d2(){constructor(_0x5ded28,_0x380163){super(),this['model']=_0x5ded28,this[_0x203f('0x12')]['_isAttached']=!0x0,this[_0x203f('0x6')]=_0x380163,this[_0x203f('0xf')](_0x380163,_0x203f('0x13'),()=>this[_0x203f('0x1')]()),this[_0x203f('0xf')](_0x380163,_0x203f('0xd'),()=>this[_0x203f('0x11')]()),this[_0x203f('0xf')](_0x380163,_0x203f('0x8'),()=>this['resolve']()),this[_0x203f('0xf')](_0x380163,_0x203f('0x9'),()=>this[_0x203f('0x2')]()),this[_0x203f('0xf')](_0x380163,_0x203f('0xa'),(_0x496a4a,_0x5197e9)=>this['addComment'](_0x5197e9)),this[_0x203f('0xf')](_0x380163,'updateComment',(_0x3cf1e2,_0x9c5379,_0x6cd1b6)=>this[_0x203f('0x14')](_0x9c5379,_0x6cd1b6)),this[_0x203f('0xf')](_0x380163,_0x203f('0x7'),(_0x5c1f54,_0x4d79eb)=>this[_0x203f('0x7')](_0x4d79eb));}[_0x203f('0x1')](){this['model'][_0x203f('0x1')]();}[_0x203f('0x11')](){this['model'][_0x203f('0x11')]();}[_0x203f('0xc')](){this[_0x203f('0x12')][_0x203f('0x4')]||this['model'][_0x203f('0xc')]();}['reopen'](){this[_0x203f('0x12')]['isResolved']&&this[_0x203f('0x12')][_0x203f('0x2')]();}[_0x203f('0xa')](_0x3f7328){this[_0x203f('0x12')][_0x203f('0xa')]({'content':_0x3f7328,'authorId':this[_0x203f('0x6')][_0x203f('0xb')]['id']});}['updateComment'](_0x4df9b8,_0x4eb6a1){this['model'][_0x203f('0xe')](_0x4df9b8)[_0x203f('0x0')]({'content':_0x4eb6a1});}[_0x203f('0x7')](_0x41418e){this['model']['getComment'](_0x41418e)[_0x203f('0x11')]();}[_0x203f('0x10')](){this[_0x203f('0x3')](),this['model'][_0x203f('0x5')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1be8=['commentThreadInputView','value','assign','isUnlinked','destroy','set','reopenCommentThread','Reply...','Comment','removeCommentThread','editorDestroyed','locale','updateComment','showInput','element','editorReady','isSubmitted','submitCommentThread','fire','length','commentsListView','placeholder','archivedAt','removeComment','_createCommentThreadInputView','Write\x20a\x20comment...','focus','Reply\x20to\x20reopen\x20discussion...','bind','isActive','listenTo','_config','isResolved','Reply','isResolvable','isReadOnly','commentThreadHeaderView','delegate','_model','canComment','isDirty'];(function(_0x1a9677,_0x1be8cc){const _0x56c1e5=function(_0x2374d5){while(--_0x2374d5){_0x1a9677['push'](_0x1a9677['shift']());}};_0x56c1e5(++_0x1be8cc);}(_0x1be8,0xd3));const _0x56c1=function(_0x1a9677,_0x1be8cc){_0x1a9677=_0x1a9677-0x0;let _0x56c1e5=_0x1be8[_0x1a9677];return _0x56c1e5;};import{View as _0x53907b}from'ckeditor5/src/ui.js';import _0x32f267 from'./commentthreadinputview.js';import _0x22a4c6 from'./commentslistview.js';import _0x3f925d from'./commentthreadheaderview.js';import{getTranslation as _0x3a0504}from'../../../utils/common-translations.js';export default class Ut extends _0x53907b{constructor(_0x351bf7,_0x2d3929,_0x510b8a,_0x1766ed){super(_0x351bf7),this[_0x56c1('0x28')](_0x56c1('0x17'),!0x1),this[_0x56c1('0x28')](_0x56c1('0x22'),!0x1),this[_0x56c1('0x20')]=_0x2d3929,this['_localUser']=_0x510b8a,this[_0x56c1('0x19')]=_0x1766ed,this[_0x56c1('0x1e')]=new _0x3f925d(_0x351bf7,_0x2d3929),this[_0x56c1('0x1e')][_0x56c1('0x1f')](_0x56c1('0x0'))['to'](this),this[_0x56c1('0x18')](this,'reopenCommentThread',()=>{this[_0x56c1('0x14')]();}),this[_0x56c1('0xe')]=new _0x22a4c6(_0x351bf7,_0x2d3929,Object[_0x56c1('0x25')]({'CommentView':this[_0x56c1('0x19')]['CommentView']},_0x1766ed)),this['commentsListView'][_0x56c1('0x1f')](_0x56c1('0x11'))['to'](this),this[_0x56c1('0xe')][_0x56c1('0x1f')](_0x56c1('0x6'))['to'](this),this[_0x56c1('0xe')][_0x56c1('0x1f')]('resolveCommentThread')['to'](this),this[_0x56c1('0xe')][_0x56c1('0x1f')](_0x56c1('0x9'))['to'](this),this['commentsListView'][_0x56c1('0x1f')](_0x56c1('0x4'))['to'](this),this[_0x56c1('0xe')][_0x56c1('0x16')](_0x56c1('0x17'))['to'](this),this[_0x56c1('0x18')](this,'resolveCommentThread',()=>{this[_0x56c1('0x14')]();}),this['set'](_0x56c1('0xd'),this[_0x56c1('0xe')][_0x56c1('0xd')]),this[_0x56c1('0x16')]('length')['to'](this[_0x56c1('0xe')],_0x56c1('0xd')),this[_0x56c1('0x23')]=this['_createCommentThreadInputView'](),this['commentThreadInputView']['delegate'](_0x56c1('0x9'))['to'](this),this['commentThreadInputView'][_0x56c1('0x1f')](_0x56c1('0x4'))['to'](this),this['on'](_0x56c1('0x11'),()=>this[_0x56c1('0x14')]()),this[_0x56c1('0x16')](_0x56c1('0x22'))['to'](this[_0x56c1('0xe')],'hasDirtyComment',this[_0x56c1('0x23')]['commentInputView'],_0x56c1('0x24'),(_0x52893c,_0x2179c6)=>_0x52893c||!!_0x2179c6),this[_0x56c1('0x16')](_0x56c1('0x26'))['to'](_0x2d3929,'unlinkedAt',_0x56b621=>!!_0x56b621);}['focus'](){this[_0x56c1('0x8')][_0x56c1('0x14')]();}async[_0x56c1('0x27')](){this['isDirty']=!0x1,this[_0x56c1('0xe')][_0x56c1('0x27')](),await this[_0x56c1('0x23')]['destroy'](),super[_0x56c1('0x27')]();}[_0x56c1('0x12')](){const _0x55d6f8=new _0x32f267(this['locale'],this['_localUser'],this[_0x56c1('0x19')]['editorConfig']),_0x2d9c23=_0x55d6f8['commentInputView'];return _0x55d6f8[_0x56c1('0x16')](_0x56c1('0x7'))['to'](this,_0x56c1('0x17'),this[_0x56c1('0x20')],'isReadOnly',this['_model'],_0x56c1('0x21'),this[_0x56c1('0x20')],_0x56c1('0x10'),_0x2d9c23,_0x56c1('0x24'),(_0x390be1,_0x443290,_0x3c22e8,_0x19a4d0,_0x435ac0)=>!!_0x435ac0||!!_0x19a4d0&&_0x3c22e8&&!_0x443290||_0x390be1&&_0x3c22e8&&!_0x443290),_0x2d9c23[_0x56c1('0x16')](_0x56c1('0xf'))['to'](this,_0x56c1('0xd'),this[_0x56c1('0x20')],_0x56c1('0x1c'),this[_0x56c1('0x20')],_0x56c1('0x1a'),(_0x26aeea,_0xeaf94,_0x284a2f)=>{let _0x5a8ce3;return _0x5a8ce3=_0x284a2f&&_0xeaf94?_0x56c1('0x15'):_0x26aeea?_0x56c1('0x1'):_0x56c1('0x13'),_0x3a0504(this[_0x56c1('0x5')],_0x5a8ce3);}),_0x2d9c23[_0x56c1('0x16')]('submitLabel')['to'](this,_0x56c1('0xd'),_0x43734b=>_0x3a0504(this['locale'],_0x43734b?_0x56c1('0x1b'):_0x56c1('0x2'))),_0x2d9c23['on']('submit',(_0x162c7f,_0x220b0c)=>{this['fire']('addComment',_0x220b0c),this[_0x56c1('0x20')][_0x56c1('0x1a')]&&this[_0x56c1('0x20')][_0x56c1('0x1c')]&&this[_0x56c1('0xc')](_0x56c1('0x0'),this[_0x56c1('0x20')]['id']),this[_0x56c1('0x20')][_0x56c1('0xa')]||this[_0x56c1('0xc')](_0x56c1('0xb'));}),_0x2d9c23['on']('cancel',()=>{this[_0x56c1('0x14')]();}),_0x2d9c23[_0x56c1('0x16')]('disabledSubmit')['to'](this[_0x56c1('0x20')],_0x56c1('0x1d')),_0x2d9c23['on']('cancel',_0x11d506=>{0x0==this[_0x56c1('0xd')]&&(this[_0x56c1('0xc')](_0x56c1('0x3')),_0x11d506['stop']());}),this['on']('change:isActive',(_0x5e2a3f,_0x44d095,_0x309445)=>{_0x309445||this[_0x56c1('0xd')]||_0x2d9c23['value']||this['fire'](_0x56c1('0x3'));}),_0x55d6f8;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4483=['updateComment','_createCommentInputView','isReadOnly','isSystemComment','add','Save','_model','editorDestroyed','editorConfig','focus','initialData','get','submit','createEditor','element','visibleView','locale','content','switchToDisplayMode','submitLabel','remove','set','bind','editorReady','_createCommentContentView','_config','destroy','delegate','isEditMode','isCollapsed'];(function(_0x399876,_0x448363){const _0x512c3b=function(_0x427bc0){while(--_0x427bc0){_0x399876['push'](_0x399876['shift']());}};_0x512c3b(++_0x448363);}(_0x4483,0x156));const _0x512c=function(_0x399876,_0x448363){_0x399876=_0x399876-0x0;let _0x512c3b=_0x4483[_0x399876];return _0x512c3b;};import{View as _0x350b24}from'ckeditor5/src/ui.js';import{trimHtml as _0x515753}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x538b6c from'./commentcontentview.js';import _0x121750 from'./commentinputview.js';import{getTranslation as _0x569676}from'../../../utils/common-translations.js';export default class ti extends _0x350b24{constructor(_0x1356eb,_0x2f96a6,_0x5e2585){super(_0x1356eb),this[_0x512c('0x18')]=_0x2f96a6,this[_0x512c('0xd')]=_0x5e2585,this[_0x512c('0x15')]=!!this[_0x512c('0xd')][_0x512c('0x15')],this[_0x512c('0x9')](_0x512c('0x10'),!0x1),this['set'](_0x512c('0x11'),!0x0),this[_0x512c('0x3')]=this['createCollection'](),this[_0x512c('0x3')][_0x512c('0x16')](this[_0x512c('0xc')]());}['expand'](){this[_0x512c('0x11')]=!0x1;}['collapse'](){this[_0x512c('0x10')]||(this[_0x512c('0x11')]=!0x0);}[_0x512c('0x1b')](){this[_0x512c('0x2')]['focus']();}async[_0x512c('0xe')](){await this[_0x512c('0x3')][_0x512c('0x1d')](0x0)[_0x512c('0xe')](),super[_0x512c('0xe')]();}['switchToEditMode'](){this[_0x512c('0x10')]||(this[_0x512c('0x10')]=!0x0,this[_0x512c('0x3')][_0x512c('0x8')](0x0)[_0x512c('0xe')](),this['visibleView'][_0x512c('0x16')](this[_0x512c('0x13')]()));}[_0x512c('0x6')](){this[_0x512c('0x10')]&&(this[_0x512c('0x10')]=!0x1,this[_0x512c('0x3')][_0x512c('0x8')](0x0)[_0x512c('0xe')](),this[_0x512c('0x3')][_0x512c('0x16')](this[_0x512c('0xc')]()));}[_0x512c('0xc')](){const _0x1ba3cd=new _0x538b6c(this[_0x512c('0x4')]);return _0x1ba3cd[_0x512c('0xa')]('content')['to'](this['_model'],_0x512c('0x5'),this,_0x512c('0x11'),(_0x44b99a,_0x25a035)=>_0x25a035?_0x515753(_0x44b99a,{'limit':this[_0x512c('0xd')]['maxCommentCharsWhenCollapsed']}):_0x44b99a),_0x1ba3cd;}[_0x512c('0x13')](){this['_config'][_0x512c('0x1a')]||(this['_config']['editorConfig']={}),this[_0x512c('0xd')][_0x512c('0x1a')][_0x512c('0x1c')]=this['_model'][_0x512c('0x5')];const _0x56dda2=new _0x121750(this[_0x512c('0x4')],this[_0x512c('0xd')][_0x512c('0x1a')]);return _0x56dda2['value']=this[_0x512c('0x18')][_0x512c('0x5')],_0x56dda2[_0x512c('0xa')]('disabledSubmit')['to'](this[_0x512c('0x18')],_0x512c('0x14')),_0x56dda2[_0x512c('0x7')]=_0x569676(this[_0x512c('0x4')],_0x512c('0x17')),_0x56dda2['on'](_0x512c('0x0'),(_0xbc78ab,_0x3d4596)=>{this['fire'](_0x512c('0x12'),this[_0x512c('0x18')]['id'],_0x3d4596),this[_0x512c('0x6')](),this[_0x512c('0x1b')]();}),_0x56dda2['on']('cancel',()=>{this['switchToDisplayMode'](),this[_0x512c('0x1b')]();}),_0x56dda2['once'](_0x512c('0xb'),()=>{_0x56dda2['focus']();}),_0x56dda2[_0x512c('0x1')](),_0x56dda2[_0x512c('0xf')](_0x512c('0xb'))['to'](this),_0x56dda2['delegate'](_0x512c('0x19'))['to'](this),_0x56dda2;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x32b0=['ck-thread__comment-count','NUMBER_OF_COMMENTS','bindTemplate','count','setTemplate','set'];(function(_0x1e1e9c,_0x32b004){const _0x22d347=function(_0x289d12){while(--_0x289d12){_0x1e1e9c['push'](_0x1e1e9c['shift']());}};_0x22d347(++_0x32b004);}(_0x32b0,0xe2));const _0x22d3=function(_0x1e1e9c,_0x32b004){_0x1e1e9c=_0x1e1e9c-0x0;let _0x22d347=_0x32b0[_0x1e1e9c];return _0x22d347;};import{View as _0x4d96ed}from'ckeditor5/src/ui.js';import{getTranslation as _0xcb4d50}from'../../../utils/common-translations.js';export default class ts extends _0x4d96ed{constructor(_0x506fac){super(_0x506fac);const _0x131eca=this[_0x22d3('0x4')];this[_0x22d3('0x1')](_0x22d3('0x5'),void 0x0),this[_0x22d3('0x0')]({'tag':'li','attributes':{'class':_0x22d3('0x2')},'children':[{'text':_0x131eca['to']('count',_0x58dab7=>_0xcb4d50(_0x506fac,_0x22d3('0x3'),_0x58dab7))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x37cf=['element','set','ck-comment__content','content','ck-annotation__content','innerHTML','change:content','render'];(function(_0x27ad91,_0x37cfde){var _0x362eea=function(_0x24ad55){while(--_0x24ad55){_0x27ad91['push'](_0x27ad91['shift']());}};_0x362eea(++_0x37cfde);}(_0x37cf,0x10a));var _0x362e=function(_0x27ad91,_0x37cfde){_0x27ad91=_0x27ad91-0x0;var _0x362eea=_0x37cf[_0x27ad91];return _0x362eea;};import{View as _0x3ad7ca}from'ckeditor5/src/ui.js';export default class Yt extends _0x3ad7ca{constructor(_0xb70283){super(_0xb70283),this[_0x362e('0x7')]('content',''),this['setTemplate']({'tag':'div','attributes':{'class':[_0x362e('0x0'),_0x362e('0x2')]}});}[_0x362e('0x5')](){super[_0x362e('0x5')](),this['on'](_0x362e('0x4'),(_0x2d7fdf,_0x3391b0,_0x2b48af)=>{this[_0x362e('0x6')][_0x362e('0x3')]=_0x2b48af;}),this[_0x362e('0x6')][_0x362e('0x3')]=this[_0x362e('0x1')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3db0=['createEditor','bindTemplate','destroy','ck-comment__input-actions--cancel','_editorConfig','extendTemplate','listenTo','ck-comment__input-actions--active','submitLabel','withText','getData','firstChild','set','initialData','add','bind','_initializeFocusCycling','model','TOO_LONG_COMMENT_ALERT','high','cancelButtonView','execute','ck-comment__input-actions','create','label','editorReady','ck-comment__input-wrapper','keystrokes','length','editorDestroyed','submitButtonView','tab','focusPrevious','change','value','view','submit','_editorCreationPromise','Esc','_isDestroyed','disabledSubmit','fire','element','ck-comment__input-actions--submit','editor','div','then','low','placeholder','forEach','focusTracker','render','_createCancelButton','focus','Reply...','stop','setData','shift\x20+\x20tab','_createSubmitButton','focusNext'];(function(_0x5f0484,_0x3db039){const _0x2b504c=function(_0x392972){while(--_0x392972){_0x5f0484['push'](_0x5f0484['shift']());}};_0x2b504c(++_0x3db039);}(_0x3db0,0x1f3));const _0x2b50=function(_0x5f0484,_0x3db039){_0x5f0484=_0x5f0484-0x0;let _0x2b504c=_0x3db0[_0x5f0484];return _0x2b504c;};import{View as _0x303b6d,ViewCollection as _0x2cd302,FocusCycler as _0xf5f814,ButtonView as _0x284d77}from'ckeditor5/src/ui.js';import{FocusTracker as _0x1f1b37,KeystrokeHandler as _0x24ed31}from'ckeditor5/src/utils.js';import _0x511a93 from'../commenteditor/commenteditor.js';import{getTranslation as _0x44d3c6}from'../../../utils/common-translations.js';export default class Zt extends _0x303b6d{constructor(_0x324fdc,_0x6bda31={}){super(_0x324fdc),this['editor']=null,this['_editorConfig']=_0x6bda31,this[_0x2b50('0x8')]=new _0x24ed31(),this[_0x2b50('0x1f')]=new _0x1f1b37(),this[_0x2b50('0x35')]('value',_0x6bda31[_0x2b50('0x36')]||''),this[_0x2b50('0x35')](_0x2b50('0x15'),!0x1),this['set']('showButtons',!0x0),this['set'](_0x2b50('0x1d'),_0x44d3c6(_0x324fdc,_0x2b50('0x23'))),this[_0x2b50('0x35')](_0x2b50('0x31'),_0x44d3c6(_0x324fdc,'Reply')),this[_0x2b50('0xb')]=this[_0x2b50('0x27')](),this['cancelButtonView']=this[_0x2b50('0x21')](),this['setTemplate']({'tag':_0x2b50('0x1a'),'attributes':{'class':[_0x2b50('0x7')]},'children':[{'tag':_0x2b50('0x1a'),'attributes':{'class':[_0x2b50('0x3'),this[_0x2b50('0x2a')]['if']('showButtons',_0x2b50('0x30'))]},'children':[this[_0x2b50('0xb')],this[_0x2b50('0x1')]]}]}),this['keystrokes'][_0x2b50('0x35')](_0x2b50('0x13'),(_0x511535,_0x4d3e04)=>{this['cancelButtonView']['fire']('execute'),_0x4d3e04();}),this['on']('submit',(_0x11e7f6,_0xb0eea6)=>{_0xb0eea6['length']>0xfde8?(alert(_0x44d3c6(_0x324fdc,_0x2b50('0x3b'),[_0xb0eea6[_0x2b50('0x9')],0xfde8])),_0x11e7f6[_0x2b50('0x24')]()):this[_0x2b50('0x19')]['setData']('');},{'priority':_0x2b50('0x0')});}['render'](){super[_0x2b50('0x20')](),this[_0x2b50('0x8')][_0x2b50('0x2f')](this['element']),this[_0x2b50('0x1f')][_0x2b50('0x37')](this[_0x2b50('0x17')]);}[_0x2b50('0x29')](){return this[_0x2b50('0x19')]||(this[_0x2b50('0x19')]=new _0x511a93(this[_0x2b50('0x2d')]),this[_0x2b50('0x12')]=this[_0x2b50('0x19')][_0x2b50('0x4')]()[_0x2b50('0x1b')](()=>{if(this[_0x2b50('0x14')])return;const _0x3ccf15=this[_0x2b50('0x19')];this['element']['insertBefore'](_0x3ccf15['ui'][_0x2b50('0x17')],this[_0x2b50('0x17')][_0x2b50('0x34')]),_0x3ccf15[_0x2b50('0x3a')]['document']['on'](_0x2b50('0xe'),()=>this[_0x2b50('0xf')]=_0x3ccf15[_0x2b50('0x33')]()),_0x3ccf15[_0x2b50('0x38')](_0x2b50('0x1d'))['to'](this),this[_0x2b50('0x39')](this[_0x2b50('0x19')]),this[_0x2b50('0x16')](_0x2b50('0x6'),this['editor']);})),this[_0x2b50('0x12')];}[_0x2b50('0x22')](){this[_0x2b50('0x19')]&&this[_0x2b50('0x19')][_0x2b50('0x22')]();}async[_0x2b50('0x2b')](){this[_0x2b50('0x14')]||(this['_isDestroyed']=!0x0,this[_0x2b50('0x19')]&&(await this[_0x2b50('0x12')],await this[_0x2b50('0x19')]['destroy'](),this[_0x2b50('0x16')](_0x2b50('0xa'),this[_0x2b50('0x19')])),await super[_0x2b50('0x2b')]());}[_0x2b50('0x27')](){const {locale:_0x55618b}=this,_0x22469b=new _0x284d77(_0x55618b);return _0x22469b[_0x2b50('0x2e')]({'attributes':{'class':[_0x2b50('0x18')]}}),_0x22469b[_0x2b50('0x32')]=!0x0,_0x22469b[_0x2b50('0x38')](_0x2b50('0x5'))['to'](this,_0x2b50('0x31')),_0x22469b['on'](_0x2b50('0x2'),()=>{this['fire'](_0x2b50('0x11'),this[_0x2b50('0xf')]);}),_0x22469b[_0x2b50('0x38')]('isEnabled')['to'](this,_0x2b50('0xf'),this,_0x2b50('0x15'),(_0x597dfd,_0x139b12)=>!_0x139b12&&!!_0x597dfd['trim']()),_0x22469b;}['_createCancelButton'](){const {locale:_0x1c4b4f}=this,_0x3bf4b0=new _0x284d77(_0x1c4b4f);return _0x3bf4b0[_0x2b50('0x2e')]({'attributes':{'class':[_0x2b50('0x2c')]}}),_0x3bf4b0['label']=_0x44d3c6(_0x1c4b4f,'Cancel'),_0x3bf4b0['withText']=!0x0,_0x3bf4b0['on']('execute',()=>{this['editor'][_0x2b50('0x25')](''),this[_0x2b50('0x16')]('cancel');}),_0x3bf4b0;}[_0x2b50('0x39')](_0x1bcd8d){const _0x1e9f44=this[_0x2b50('0x1f')],_0x5f1c2c=new _0x2cd302();[_0x1bcd8d['ui'][_0x2b50('0x10')],this[_0x2b50('0xb')],this[_0x2b50('0x1')]][_0x2b50('0x1e')](_0x391da2=>{_0x5f1c2c[_0x2b50('0x37')](_0x391da2),_0x1e9f44[_0x2b50('0x37')](_0x391da2[_0x2b50('0x17')]);});const _0x56967b=new _0xf5f814({'focusables':_0x5f1c2c,'focusTracker':_0x1e9f44});this['keystrokes']['set'](_0x2b50('0xc'),(_0x3600a6,_0x5cb51a)=>{_0x56967b[_0x2b50('0x28')](),_0x5cb51a();},{'priority':_0x2b50('0x1c')}),this[_0x2b50('0x8')][_0x2b50('0x35')](_0x2b50('0x26'),(_0x43dffb,_0x2409b0)=>{_0x56967b[_0x2b50('0xd')](),_0x2409b0();},{'priority':_0x2b50('0x1c')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c89=['ck-hidden','high','arrowdown','_keystrokes','_focusCycler','ck-comments-archive__header\x20','_focusTracker','EMPTY_COMMENTS_ARCHIVE','setTemplate','_focusables','COMMENTS_ARCHIVE','isActive','add','ck-comments-archive__info','render','div','stopPropagation','listenTo','remove','focus','ck-comments-archive','shift\x20+\x20tab','set','length','arrowup','isEmpty','destroy','auto','element'];(function(_0x3db5bd,_0x2c8918){const _0x382871=function(_0x113c18){while(--_0x113c18){_0x3db5bd['push'](_0x3db5bd['shift']());}};_0x382871(++_0x2c8918);}(_0x2c89,0x167));const _0x3828=function(_0x3db5bd,_0x2c8918){_0x3db5bd=_0x3db5bd-0x0;let _0x382871=_0x2c89[_0x3db5bd];return _0x382871;};import{View as _0x3df686,FocusCycler as _0x3cb31f}from'ckeditor5/src/ui.js';import{FocusTracker as _0x5b13a7,KeystrokeHandler as _0x1e7b14}from'ckeditor5/src/utils.js';import{getTranslation as _0x36b266}from'../../../utils/common-translations.js';export default class K extends _0x3df686{constructor(_0x16412c,_0x5f2799){super(_0x16412c),this[_0x3828('0xb')]('isEmpty',!_0x5f2799[_0x3828('0xc')]),this[_0x3828('0x18')]=new _0x5b13a7(),this['_keystrokes']=new _0x1e7b14(),this[_0x3828('0x1b')]=_0x5f2799,this[_0x3828('0x16')]=new _0x3cb31f({'focusables':this[_0x3828('0x1b')],'focusTracker':this[_0x3828('0x18')],'keystrokeHandler':this[_0x3828('0x15')],'actions':{'focusPrevious':_0x3828('0xa'),'focusNext':'tab'}}),this[_0x3828('0x6')](_0x5f2799,_0x3828('0x1'),()=>{this[_0x3828('0xe')]=!0x1;}),this[_0x3828('0x6')](_0x5f2799,_0x3828('0x7'),(_0x1373f2,_0x36a3af)=>{_0x36a3af[_0x3828('0x0')]&&this[_0x3828('0x8')](),_0x5f2799['length']||(this[_0x3828('0xe')]=!0x0);});const _0x25fad3=this['bindTemplate'];this[_0x3828('0x1a')]({'tag':_0x3828('0x4'),'attributes':{'dir':_0x3828('0x10'),'class':['ck',_0x3828('0x9')],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':[_0x3828('0x17')]},'children':[{'text':_0x36b266(_0x16412c,_0x3828('0x1c'))}]},{'tag':_0x3828('0x4'),'attributes':{'class':['ck-comments-archive__content']},'children':[{'tag':_0x3828('0x4'),'children':_0x5f2799},{'tag':'p','attributes':{'class':[_0x3828('0x2'),_0x25fad3['if'](_0x3828('0xe'),_0x3828('0x12'),_0x44deef=>!_0x44deef)]},'children':[{'text':_0x36b266(_0x16412c,_0x3828('0x19'))}]}]}]});}['render'](){super[_0x3828('0x3')](),this[_0x3828('0x15')][_0x3828('0x6')](this['element']);const _0x22ab09=_0x14e746=>_0x14e746[_0x3828('0x5')]();this['_keystrokes'][_0x3828('0xb')]('arrowright',_0x22ab09),this[_0x3828('0x15')][_0x3828('0xb')]('arrowleft',_0x22ab09),this[_0x3828('0x15')][_0x3828('0xb')](_0x3828('0xd'),_0x22ab09),this['_keystrokes']['set'](_0x3828('0x14'),_0x22ab09),this[_0x3828('0x6')](this[_0x3828('0x11')],'selectstart',(_0x53c634,_0x1ddebe)=>{_0x1ddebe[_0x3828('0x5')]();},{'priority':_0x3828('0x13')});}[_0x3828('0xf')](){super[_0x3828('0xf')](),this[_0x3828('0x18')]['destroy'](),this['_keystrokes'][_0x3828('0xf')]();}[_0x3828('0x8')](){this[_0x3828('0x11')][_0x3828('0x8')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1627=['formatDateTime','render','resolvedAt','equal','length','change:isEditMode','refreshVisibleViews','editorConfig','_calculatePosition','comments','change:isResolved','resolvedCommentView','destroy','change:hasDirtyComment','from','updateComment','isEditMode','add','delete','some','resolvedBy','remove','_shouldCollapse','weight','focus','change:isActive','CommentView','visibleViews','_handleRemoveCommentModel','get','collapse','editorDestroyed','set','element','ck-thread__comments','_collapsedCommentsView','isActive','resolved','locale','listenTo','count','_findOptimalIndex','_rearrangeCollapse','authoredAt','removeComment','delegate','commentUpdated','_config','_handleInfoComment','commentViews','setTemplate','_model','hasDirtyComment','bind','createCollection','_rearrangeExpand','_handleNewCommentModel','maxCommentCharsWhenCollapsed','maxCommentsWhenCollapsed'];(function(_0x1ea63f,_0x1627b2){const _0x1e9e4b=function(_0xdae8a3){while(--_0xdae8a3){_0x1ea63f['push'](_0x1ea63f['shift']());}};_0x1e9e4b(++_0x1627b2);}(_0x1627,0xe4));const _0x1e9e=function(_0x1ea63f,_0x1627b2){_0x1ea63f=_0x1ea63f-0x0;let _0x1e9e4b=_0x1627[_0x1ea63f];return _0x1e9e4b;};import{View as _0x436991}from'ckeditor5/src/ui.js';import{diff as _0xdc6388,Collection as _0x3f74b7}from'ckeditor5/src/utils.js';import{getTranslation as _0x2192e6}from'../../../utils/common-translations.js';import _0x9e6e84 from'./collapsedcommentsview.js';export default class vt extends _0x436991{constructor(_0x122e10,_0x43139d,_0x8d0b7b){super(_0x122e10),this[_0x1e9e('0x28')](_0x1e9e('0x1'),!0x1),this[_0x1e9e('0x28')](_0x1e9e('0xc'),_0x43139d[_0x1e9e('0x11')][_0x1e9e('0xc')]),this[_0x1e9e('0x28')](_0x1e9e('0x2c'),!0x1),this[_0x1e9e('0x0')]=_0x43139d,this['_config']=_0x8d0b7b,this[_0x1e9e('0x39')]=this[_0x1e9e('0x3')](),this[_0x1e9e('0x23')]=this[_0x1e9e('0x3')](),this[_0x1e9e('0x13')]=null,this[_0x1e9e('0x2b')]=new _0x9e6e84(_0x122e10),this[_0x1e9e('0x2b')][_0x1e9e('0x2')](_0x1e9e('0x30'))['to'](this,_0x1e9e('0xc'),_0x3d5d8f=>_0x3d5d8f-this[_0x1e9e('0x37')][_0x1e9e('0x7')]);for(const _0x399d4c of _0x43139d[_0x1e9e('0x11')])this[_0x1e9e('0x5')](_0x399d4c);this['_handleInfoComment'](),this[_0x1e9e('0x2f')](_0x43139d[_0x1e9e('0x11')],_0x1e9e('0x19'),(_0x140396,_0x9453a2)=>{const _0x12bdd9=this[_0x1e9e('0x10')](_0x9453a2);this[_0x1e9e('0xc')]++,this['_handleNewCommentModel'](_0x9453a2,_0x12bdd9),this[_0x1e9e('0xe')]();}),this[_0x1e9e('0x2f')](_0x43139d[_0x1e9e('0x11')],_0x1e9e('0x1d'),(_0x32f882,_0x110e2d)=>{this[_0x1e9e('0xc')]--,this[_0x1e9e('0x24')](_0x110e2d),this[_0x1e9e('0xe')]();}),this[_0x1e9e('0x2f')](_0x43139d,_0x1e9e('0x36'),()=>this[_0x1e9e('0xe')]()),this[_0x1e9e('0x2f')](_0x43139d,_0x1e9e('0x12'),()=>this['_handleInfoComment']()),this['on'](_0x1e9e('0x21'),()=>this[_0x1e9e('0xe')]()),this['on'](_0x1e9e('0x15'),()=>this[_0x1e9e('0xe')]()),this[_0x1e9e('0x3a')]({'tag':'ul','attributes':{'class':[_0x1e9e('0x2a')]},'children':this[_0x1e9e('0x23')]});}get[_0x1e9e('0x1e')](){return this[_0x1e9e('0x0')][_0x1e9e('0x1f')]>this[_0x1e9e('0x37')]['maxThreadTotalWeight']&&!this[_0x1e9e('0x2c')]&&!this[_0x1e9e('0x1')];}['render'](){super[_0x1e9e('0x9')](),this[_0x1e9e('0xe')]();}[_0x1e9e('0x20')](){this[_0x1e9e('0x29')][_0x1e9e('0x20')]();}['destroy'](){this[_0x1e9e('0x2b')][_0x1e9e('0x14')]();for(const _0x21682d of this[_0x1e9e('0x39')])_0x21682d[_0x1e9e('0x14')]();super[_0x1e9e('0x14')]();}['refreshVisibleViews'](){this[_0x1e9e('0x1e')]?this[_0x1e9e('0x32')]():this[_0x1e9e('0x4')]();}[_0x1e9e('0x5')](_0x2ef551,_0x382750){const _0x3deb8c=new this[(_0x1e9e('0x37'))]['CommentView'](this[_0x1e9e('0x2e')],_0x2ef551,{'maxCommentCharsWhenCollapsed':this[_0x1e9e('0x37')][_0x1e9e('0x6')],'formatDateTime':this['_config'][_0x1e9e('0x8')],'editorConfig':this[_0x1e9e('0x37')][_0x1e9e('0xf')]});_0x3deb8c['viewUid']=_0x2ef551['id'],_0x3deb8c[_0x1e9e('0x35')](_0x1e9e('0x34'))['to'](this),_0x3deb8c[_0x1e9e('0x35')](_0x1e9e('0x17'))['to'](this),_0x3deb8c[_0x1e9e('0x35')]('resolveCommentThread')['to'](this),_0x3deb8c[_0x1e9e('0x35')]('editorReady')['to'](this),_0x3deb8c['delegate'](_0x1e9e('0x27'))['to'](this),this['listenTo'](_0x3deb8c,_0x1e9e('0xd'),()=>this['_updateHasDirtyComment']()),this[_0x1e9e('0x39')][_0x1e9e('0x19')](_0x3deb8c,_0x382750);}[_0x1e9e('0x10')](_0x3c6cd0){const _0x142b33=this[_0x1e9e('0x0')][_0x1e9e('0x31')](_0x3c6cd0);return this[_0x1e9e('0x13')]?this[_0x1e9e('0x13')][_0x1e9e('0x33')]>_0x3c6cd0[_0x1e9e('0x33')]?_0x142b33-0x1:_0x142b33:_0x142b33-0x1;}[_0x1e9e('0x38')](){if(this[_0x1e9e('0x0')][_0x1e9e('0x1c')]&&this[_0x1e9e('0x0')]['resolvedAt']){const _0x7ac378={'id':_0x1e9e('0x2d'),'author':this[_0x1e9e('0x0')]['resolvedBy'],'authoredAt':this[_0x1e9e('0x0')][_0x1e9e('0xa')],'content':_0x2192e6(this[_0x1e9e('0x2e')],'Marked\x20as\x20resolved'),'attributes':{}};this[_0x1e9e('0x13')]=new this[(_0x1e9e('0x37'))][(_0x1e9e('0x22'))](this[_0x1e9e('0x2e')],_0x7ac378,{'maxCommentCharsWhenCollapsed':this[_0x1e9e('0x37')][_0x1e9e('0x6')],'formatDateTime':this[_0x1e9e('0x37')][_0x1e9e('0x8')],'editorConfig':this[_0x1e9e('0x37')][_0x1e9e('0xf')],'isSystemComment':!0x0}),this[_0x1e9e('0x39')][_0x1e9e('0x19')](this[_0x1e9e('0x13')],this[_0x1e9e('0x0')][_0x1e9e('0x31')](_0x7ac378));}else this[_0x1e9e('0x13')]&&(this[_0x1e9e('0x39')]['remove'](this['resolvedCommentView']),this[_0x1e9e('0x13')]['destroy'](),this['resolvedCommentView']=null);this[_0x1e9e('0xe')]();}[_0x1e9e('0x24')](_0x484896){const _0x37a971=this['commentViews'][_0x1e9e('0x1d')](_0x484896['id']);this['stopListening'](_0x37a971),_0x37a971[_0x1e9e('0x18')]&&this['_updateHasDirtyComment'](),_0x37a971[_0x1e9e('0x14')]();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array[_0x1e9e('0x16')](this['commentViews'])[_0x1e9e('0x1b')](_0x2463ec=>_0x2463ec[_0x1e9e('0x18')]);}[_0x1e9e('0x32')](){const _0x18c2ce=function(_0x3d066e){const _0x3151df=new _0x3f74b7();for(const _0x44c1d4 of _0x3d066e)_0x3151df[_0x1e9e('0x19')](_0x44c1d4);return _0x3151df;}(this[_0x1e9e('0x39')]),_0xea1985=this[_0x1e9e('0x2b')][_0x1e9e('0x30')];for(let _0x1b9f84=0x1;_0x1b9f84<=_0xea1985;_0x1b9f84++)_0x18c2ce[_0x1e9e('0x1d')](0x1);for(const _0x15e6c7 of _0x18c2ce)_0x15e6c7[_0x1e9e('0x26')]();_0xea1985>0x0&&_0x18c2ce['add'](this[_0x1e9e('0x2b')],0x1),is(_0xdc6388(Array[_0x1e9e('0x16')](this[_0x1e9e('0x23')]),Array[_0x1e9e('0x16')](_0x18c2ce)),this[_0x1e9e('0x23')],_0x18c2ce);}[_0x1e9e('0x4')](){is(_0xdc6388(Array[_0x1e9e('0x16')](this[_0x1e9e('0x23')]),Array[_0x1e9e('0x16')](this[_0x1e9e('0x39')])),this[_0x1e9e('0x23')],this['commentViews']);for(const _0x500377 of this[_0x1e9e('0x23')])_0x500377['expand']();}}function is(_0x7a325d,_0x34dd38,_0x59b114){let _0x5270ae=0x0;for(const _0x375975 of _0x7a325d)switch(_0x375975){case'insert':_0x34dd38['add'](_0x59b114[_0x1e9e('0x25')](_0x5270ae),_0x5270ae),_0x5270ae++;break;case _0x1e9e('0x1a'):_0x34dd38[_0x1e9e('0x1d')](_0x5270ae);break;case _0x1e9e('0xb'):_0x5270ae++;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ced=['.ck-context','length','ck-annotation__actions','_createReopenButton','context','render','substring','reopenCommentThread','hasContext','listenTo','isResolved','bindTemplate','contextValue','isVisible','add','execute','mouseleave','lastIndexOf','classList','mouseenter','span','_attachContextActions','ck-context','value','ck-context__value','reopenButtonView','Reopen','querySelector','.ck-context__value','tooltip','locale','isResolvable','bind','_model','Comment\x20was\x20made\x20on\x20an\x20element','label','overlay','_trimContextValue','isEnabled','ck-thread__header','remove','div'];(function(_0x1b460d,_0x1ced7e){const _0x1b9f5e=function(_0x1426bf){while(--_0x1426bf){_0x1b460d['push'](_0x1b460d['shift']());}};_0x1b9f5e(++_0x1ced7e);}(_0x1ced,0xd6));const _0x1b9f=function(_0x1b460d,_0x1ced7e){_0x1b460d=_0x1b460d-0x0;let _0x1b9f5e=_0x1ced[_0x1b460d];return _0x1b9f5e;};import{View as _0x54933b,ButtonView as _0xf609a5}from'ckeditor5/src/ui.js';import{getTranslation as _0x72de0a}from'../../../utils/common-translations.js';import _0x4d01be from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Tt extends _0x54933b{constructor(_0xc63ced,_0x1b47e2){super(_0xc63ced);const _0x3395de=this[_0x1b9f('0x7')];this[_0x1b9f('0x1d')]=_0x1b47e2,this[_0x1b9f('0x15')]=this[_0x1b9f('0x29')](),this['bind']('hasContext')['to'](this[_0x1b9f('0x1d')],_0x1b9f('0x0'),_0x4741da=>!!_0x4741da),this['bind'](_0x1b9f('0x8'))['to'](this[_0x1b9f('0x1d')],_0x1b9f('0x0'),_0x313557=>_0x313557&&_0x313557[_0x1b9f('0x13')]?this['_trimContextValue'](_0x313557['value']):_0x72de0a(this['locale'],_0x1b9f('0x1e'))),this['setTemplate']({'tag':_0x1b9f('0x25'),'attributes':{'class':[_0x1b9f('0x23')]},'children':[{'tag':_0x1b9f('0x25'),'attributes':{'class':['ck-context-wrapper']},'children':[{'tag':'div','attributes':{'class':[_0x1b9f('0x12'),_0x3395de['if'](_0x1b9f('0x4'),'ck-context--quotes')]},'children':[{'tag':_0x1b9f('0x10'),'attributes':{'class':[_0x1b9f('0x14')]},'children':[{'text':_0x3395de['to'](_0x1b9f('0x8'))}]}]}]},{'tag':_0x1b9f('0x25'),'attributes':{'class':[_0x1b9f('0x28')]},'children':[this['reopenButtonView']]}]});}[_0x1b9f('0x1')](){super[_0x1b9f('0x1')](),this[_0x1b9f('0x11')]();}[_0x1b9f('0x29')](){const _0x3e422a=new _0xf609a5(this[_0x1b9f('0x1a')]);return _0x3e422a[_0x1b9f('0x1f')]=_0x72de0a(this[_0x1b9f('0x1a')],_0x1b9f('0x16')),_0x3e422a[_0x1b9f('0x19')]=_0x72de0a(this[_0x1b9f('0x1a')],_0x1b9f('0x16')),_0x3e422a['icon']=_0x4d01be,_0x3e422a['bind'](_0x1b9f('0x22'))['to'](this['_model'],'isReadOnly',_0x3c59bb=>!_0x3c59bb),_0x3e422a[_0x1b9f('0x1c')](_0x1b9f('0x9'))['to'](this[_0x1b9f('0x1d')],_0x1b9f('0x1b'),this[_0x1b9f('0x1d')],_0x1b9f('0x6'),(_0x2e8a07,_0x15551b)=>_0x2e8a07&&_0x15551b),_0x3e422a['on'](_0x1b9f('0xb'),()=>{this['fire'](_0x1b9f('0x3'),this[_0x1b9f('0x1d')]['id']);}),_0x3e422a;}[_0x1b9f('0x21')](_0x4aa452){if(_0x4aa452[_0x1b9f('0x27')]<0x96)return _0x4aa452;const _0x2af805=_0x4aa452[_0x1b9f('0xd')]('\x20',0x93);return _0x4aa452[_0x1b9f('0x2')](0x0,_0x2af805>-0x1?_0x2af805:0x93)+'...';}['_attachContextActions'](){const _0x55b091=this['element'][_0x1b9f('0x17')](_0x1b9f('0x26')),_0x5a483f=_0x55b091['querySelector'](_0x1b9f('0x18'));this[_0x1b9f('0x5')](_0x55b091,_0x1b9f('0xf'),()=>{_0x5a483f['offsetWidth']<_0x5a483f['scrollWidth']&&_0x55b091['classList'][_0x1b9f('0xa')]('overlay');}),this[_0x1b9f('0x5')](_0x55b091,_0x1b9f('0xc'),()=>{_0x55b091[_0x1b9f('0xe')][_0x1b9f('0x24')](_0x1b9f('0x20'));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x16ee=['extendTemplate','delegate','editorReady','showInput','ck-thread__user','createEditor','showButtons','ck-comment__input-container--active','div','change:showInput','then','isFocused','destroy','value','editor','ck-thread__input','bindTemplate','setTemplate','userView','editorDestroyed','focusTracker','commentInputView'];(function(_0x2ffe4a,_0x16eea1){var _0x3f3145=function(_0x20d757){while(--_0x20d757){_0x2ffe4a['push'](_0x2ffe4a['shift']());}};_0x3f3145(++_0x16eea1);}(_0x16ee,0x12d));var _0x3f31=function(_0x2ffe4a,_0x16eea1){_0x2ffe4a=_0x2ffe4a-0x0;var _0x3f3145=_0x16ee[_0x2ffe4a];return _0x3f3145;};import{View as _0x3564b9}from'ckeditor5/src/ui.js';import _0x4dd9c5 from'./commentinputview.js';import{UserView as _0x3a31ea}from'ckeditor5-collaboration/src/collaboration-core.js';export default class Ct extends _0x3564b9{constructor(_0x558cdb,_0x439f63,_0x2fd1f0){super(_0x558cdb),this[_0x3f31('0x6')]=new _0x4dd9c5(_0x558cdb,_0x2fd1f0),this['commentInputView']['bind'](_0x3f31('0xd'))['to'](this[_0x3f31('0x6')][_0x3f31('0x5')],_0x3f31('0x12'),this[_0x3f31('0x6')],_0x3f31('0x14'),(_0x5f1e6a,_0x236263)=>_0x5f1e6a||!!_0x236263),this['set'](_0x3f31('0xa'),!0x1),this['on'](_0x3f31('0x10'),()=>{this['showInput']&&!this[_0x3f31('0x6')][_0x3f31('0x15')]&&this[_0x3f31('0x6')][_0x3f31('0xc')]();}),this['commentInputView']['delegate'](_0x3f31('0x9'))['to'](this),this[_0x3f31('0x6')][_0x3f31('0x8')](_0x3f31('0x4'))['to'](this),this['userView']=new _0x3a31ea(_0x558cdb,_0x439f63),this['userView']['extendTemplate']({'attributes':{'class':_0x3f31('0xb')}}),this[_0x3f31('0x6')][_0x3f31('0x7')]({'attributes':{'class':_0x3f31('0x0')}}),this[_0x3f31('0x2')]({'tag':_0x3f31('0xf'),'attributes':{'class':['ck-comment__input-container',this[_0x3f31('0x1')]['if'](_0x3f31('0xa'),_0x3f31('0xe'))]},'children':[this[_0x3f31('0x3')],this[_0x3f31('0x6')]]});}['destroy'](){return this[_0x3f31('0x6')]['destroy']()[_0x3f31('0x11')](()=>super[_0x3f31('0x13')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f89=['execute','actionIndicator','fire','has','label','.ck-thread__container','listenTo','ck-thread__container','_cancelAllConfirms','isConfirm','commentThreadHeaderView','length','ck-comment--resolve','Delete\x20comment\x20thread?','remove','isUnlinked','Write\x20a\x20comment...','commentViews','change:archivedAt','icon','locale','set','bindTemplate','querySelector','Resolve','cancelConfirm','setTemplate','resolveButton','_boundFirstCommentView','_bindFirstCommentView','containerElement','ck-thread--','element','div','high','commentThreadChildren','change:isReadOnly','getTemplate','render','isSystemComment','_model','extendTemplate','commentsListView','commentThreadInputView','tooltip','ck-thread--unlinked','resolveCommentThread','isResolvable','createCollection','isResolved','_createResolveButton','bind','check','ck-thread--remove-confirmation','isEnabled','add','get','addMany','isVisible'];(function(_0x2ddd98,_0x3f8997){const _0x4a308e=function(_0x1bbf91){while(--_0x1bbf91){_0x2ddd98['push'](_0x2ddd98['shift']());}};_0x4a308e(++_0x3f8997);}(_0x3f89,0x124));const _0x4a30=function(_0x2ddd98,_0x3f8997){_0x2ddd98=_0x2ddd98-0x0;let _0x4a308e=_0x3f89[_0x2ddd98];return _0x4a308e;};import{ConfirmMixin as _0xaa0ef1}from'ckeditor5-collaboration/src/collaboration-core.js';import{ButtonView as _0x228011}from'ckeditor5/src/ui.js';import{icons as _0x2c35}from'ckeditor5/src/core.js';import _0x3c0fae from'./basecommentthreadview.js';import{getTranslation as _0x4dd17d}from'../../../utils/common-translations.js';export default class ft extends _0xaa0ef1(_0x3c0fae){constructor(_0x518bfa,_0x4bab70,_0x4adcd1,_0x5aa08f){super(_0x518bfa,_0x4bab70,_0x4adcd1,_0x5aa08f),this['commentThreadChildren']=this[_0x4a30('0x33')](),this[_0x4a30('0x26')][_0x4a30('0x1')]([this[_0x4a30('0x2d')],this[_0x4a30('0x2e')]]),this['_model']['archivedAt']&&this['commentThreadChildren'][_0x4a30('0x3a')](this['commentThreadHeaderView'],0x0),this[_0x4a30('0x2b')]['on'](_0x4a30('0x15'),(_0x574d28,_0x539595,_0x31265d)=>{_0x31265d?this['commentThreadChildren'][_0x4a30('0x6')](this['commentThreadHeaderView'])||this[_0x4a30('0x26')]['add'](this['commentThreadHeaderView'],0x0):this[_0x4a30('0x26')][_0x4a30('0x11')](this[_0x4a30('0xd')]);}),this[_0x4a30('0x18')](_0x4a30('0x4'),null),this['containerElement']=null,this[_0x4a30('0x1f')]=null,this[_0x4a30('0x17')]=_0x518bfa,this[_0x4a30('0x1e')]=this[_0x4a30('0x35')](),this[_0x4a30('0x1d')](this[_0x4a30('0x28')]()),this['on']('change:isActive',(_0x53bd20,_0x39a096,_0x4866e4)=>{_0x4866e4||this[_0x4a30('0xb')]();}),this[_0x4a30('0x9')](this[_0x4a30('0x2b')],_0x4a30('0x27'),(_0x17f5aa,_0x2b94a4,_0x58948a)=>{_0x58948a&&this[_0x4a30('0xb')]();}),this[_0x4a30('0xe')]>0x0&&this['_bindFirstCommentView'](),this[_0x4a30('0x9')](this[_0x4a30('0x2d')][_0x4a30('0x14')],_0x4a30('0x3a'),()=>{this[_0x4a30('0x20')]();});}[_0x4a30('0x28')](){const _0x50b715=this[_0x4a30('0x19')];return{'tag':_0x4a30('0x24'),'attributes':{'class':['ck-thread','ck-reset_all-excluded',_0x50b715['if']('isActive','ck-thread--active'),_0x50b715['if'](_0x4a30('0x12'),_0x4a30('0x30')),_0x50b715['if'](_0x4a30('0xc'),_0x4a30('0x38')),_0x50b715['to'](_0x4a30('0x4'),_0x23a4de=>_0x23a4de?_0x4a30('0x22')+_0x23a4de:'')],'data-thread-id':this[_0x4a30('0x2b')]['id'],'tabindex':-0x1},'children':[{'tag':_0x4a30('0x24'),'attributes':{'class':_0x4a30('0xa')},'children':this[_0x4a30('0x26')]}]};}[_0x4a30('0x29')](){super[_0x4a30('0x29')](),this['containerElement']=this[_0x4a30('0x23')][_0x4a30('0x1a')](_0x4a30('0x8'));}['_cancelAllConfirms'](){this[_0x4a30('0x1c')]();for(const _0x3dc448 of this[_0x4a30('0x2d')][_0x4a30('0x14')])_0x3dc448[_0x4a30('0x1c')]();}[_0x4a30('0x20')](){const {locale:_0x3d8158}=this,_0x51d4b9=this[_0x4a30('0x2d')][_0x4a30('0x14')][_0x4a30('0x0')](0x0);_0x51d4b9===this['_boundFirstCommentView']||_0x51d4b9[_0x4a30('0x2a')]||(this[_0x4a30('0x1f')]=_0x51d4b9,this['unbind'](_0x4a30('0x4')),this['bind']('actionIndicator')['to'](_0x51d4b9,_0x4a30('0x4'),_0x2eae41=>_0x4a30('0x11')===_0x2eae41?_0x4a30('0x11'):null),_0x51d4b9['placeholder']=_0x4dd17d(_0x3d8158,_0x4a30('0x13')),_0x51d4b9['removeButton']['on'](_0x4a30('0x3'),_0x50d437=>{_0x50d437['stop'](),this['showConfirm'](_0x4dd17d(_0x3d8158,_0x4a30('0x10')),this[_0x4a30('0x21')])['then'](()=>{this[_0x4a30('0x5')]('removeCommentThread');});},{'priority':_0x4a30('0x25')}),_0x51d4b9['actionBar']['add'](this[_0x4a30('0x1e')],0x0));}[_0x4a30('0x35')](){const _0x236ad1=new _0x228011(this[_0x4a30('0x17')]);return _0x236ad1[_0x4a30('0x7')]=_0x4dd17d(this['locale'],_0x4a30('0x1b')),_0x236ad1[_0x4a30('0x2f')]=_0x4dd17d(this[_0x4a30('0x17')],_0x4a30('0x1b')),_0x236ad1[_0x4a30('0x16')]=_0x2c35[_0x4a30('0x37')],_0x236ad1[_0x4a30('0x2c')]({'attributes':{'class':_0x4a30('0xf')}}),_0x236ad1[_0x4a30('0x36')](_0x4a30('0x39'))['to'](this[_0x4a30('0x2b')],'isReadOnly',_0xb08ede=>!_0xb08ede),_0x236ad1[_0x4a30('0x36')](_0x4a30('0x2'))['to'](this[_0x4a30('0x2b')],_0x4a30('0x32'),this[_0x4a30('0x2b')],_0x4a30('0x34'),(_0x3a21cd,_0x58857a)=>_0x3a21cd&&!_0x58857a),_0x236ad1['on']('execute',()=>{this['fire'](_0x4a30('0x31'),this[_0x4a30('0x2b')]['id']);}),_0x236ad1;}}
|