@ckeditor/ckeditor5-comments 0.0.0-nightly-20231213.0 → 0.0.0-nightly-20231215.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 _0x439e=['listenTo','execute','config','plugins','get','forEach','editor','_handleImportedData','addCommentThread','afterInit','commands','collaboration.channelId','importWord','high','basic','dataInsert','collaboration_features'];(function(_0x4405c4,_0x439e66){const _0x19c380=function(_0x315b8b){while(--_0x315b8b){_0x4405c4['push'](_0x4405c4['shift']());}};_0x19c380(++_0x439e66);}(_0x439e,0x182));const _0x19c3=function(_0x4405c4,_0x439e66){_0x4405c4=_0x4405c4-0x0;let _0x19c380=_0x439e[_0x4405c4];return _0x19c380;};import{Plugin as _0x141b2c}from'ckeditor5/src/core';import{priorities as _0x554702}from'ckeditor5/src/utils';import{Users as _0x923608}from'ckeditor5-collaboration/src/collaboration-core';import _0x1775f1 from'../commentsrepository';export default class Z extends _0x141b2c{constructor(_0x59121d){super(_0x59121d),this[_0x19c3('0xb')][_0x19c3('0x7')]['define']('importWord.formatting.comments',_0x19c3('0x2'));}[_0x19c3('0xe')](){const _0x2befba=this[_0x19c3('0xb')],_0x3c4768=_0x2befba[_0x19c3('0xf')][_0x19c3('0x9')](_0x19c3('0x0')),_0x3afa87=_0x2befba[_0x19c3('0x8')][_0x19c3('0x9')](_0x923608);_0x3c4768&&(_0x3c4768['on'](_0x19c3('0x6'),(_0x111306,[,_0x4db80f])=>{_0x4db80f[_0x19c3('0x4')]={'comments':!0x0,'user_id':_0x3afa87['me']['id']};},{'priority':_0x554702[_0x19c3('0x1')]+0xa}),this[_0x19c3('0x5')](_0x3c4768,_0x19c3('0x3'),this[_0x19c3('0xc')]));}['_handleImportedData'](_0x578d8d,_0x14b3e5){const {comment_threads:_0x4e588d}=_0x14b3e5;_0x4e588d&&_0x4e588d[_0x19c3('0xa')](({thread_id:_0x29daaf,comments:_0x222a76,is_resolved:_0x3ff967})=>{const _0x57a1a9=new Date(),_0x595f7b=_0x222a76['map'](({author:_0xd88369,content:_0x2c6396,created_at:_0x88f093})=>({'content':_0x2c6396,'authorId':this[_0x19c3('0xb')][_0x19c3('0x8')]['get'](_0x923608)['me']['id'],'createdAt':_0x57a1a9,'attributes':{'@external':{'authorName':_0xd88369,'createdAt':_0x88f093?new Date(_0x88f093):new Date(),'source':_0x19c3('0x0')}}})),_0x3bf564=this['editor'][_0x19c3('0x7')][_0x19c3('0x9')](_0x19c3('0x10'));this['editor']['plugins'][_0x19c3('0x9')](_0x1775f1)[_0x19c3('0xd')]({'channelId':_0x3bf564,'threadId':_0x29daaf,'comments':_0x595f7b,'resolvedAt':_0x3ff967?_0x57a1a9:null});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5f3d=['data','set','initPlugins','document','placeholder','placeholderElement','defaultPlugins','init','editing','change','destroy','getChild','_updatePlaceholder','change:placeholder','focus','config','model','createRoot','get','plugins','name','assign','view','getRoot','then','setSelection','end','create','childCount','initialData'];(function(_0x1e843a,_0x5f3de9){const _0x29fdf3=function(_0x5806bd){while(--_0x5806bd){_0x1e843a['push'](_0x1e843a['shift']());}};_0x29fdf3(++_0x5f3de9);}(_0x5f3d,0x6b));const _0x29fd=function(_0x1e843a,_0x5f3de9){_0x1e843a=_0x1e843a-0x0;let _0x29fdf3=_0x5f3d[_0x1e843a];return _0x29fdf3;};import{Editor as _0x540e97,DataApiMixin as _0xd27052}from'ckeditor5/src/core';import _0x11da90 from'./commenteditorui';import{ObservableMixin as _0x9f2eb3}from'ckeditor5/src/utils';import{enablePlaceholder as _0x667081,disablePlaceholder as _0x150cc0}from'ckeditor5/src/engine';import{Clipboard as _0x2b975b}from'ckeditor5/src/clipboard';import{Enter as _0x406c05,ShiftEnter as _0x417bca}from'ckeditor5/src/enter';import{SelectAll as _0x59d34d}from'ckeditor5/src/select-all';import{Typing as _0x38be57}from'ckeditor5/src/typing';import{Undo as _0x4f3b97}from'ckeditor5/src/undo';import{Paragraph as _0x1711cb}from'ckeditor5/src/paragraph';const Mt=[_0x2b975b,_0x406c05,_0x417bca,_0x59d34d,_0x38be57,_0x4f3b97,_0x1711cb];export default class Nt extends _0x9f2eb3(_0xd27052(_0x540e97)){constructor(_0x28ce0a={}){(_0x28ce0a=Object[_0x29fd('0x4')]({},_0x28ce0a))[_0x29fd('0x2')]||(_0x28ce0a[_0x29fd('0x2')]=Nt[_0x29fd('0x13')]),super(_0x28ce0a),this['ui']=new _0x11da90(this),this[_0x29fd('0xe')](_0x29fd('0x11'),''),this[_0x29fd('0x1d')]['document']['on'](_0x29fd('0x16'),()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on'](_0x29fd('0x1a'),()=>this['_updatePlaceholder']()),this[_0x29fd('0x1d')][_0x29fd('0x10')][_0x29fd('0x0')]();}[_0x29fd('0xa')](){const _0x1a4709=this[_0x29fd('0x1c')][_0x29fd('0x1')](_0x29fd('0xc'))||'';return this[_0x29fd('0xf')]()[_0x29fd('0x7')](()=>this['ui'][_0x29fd('0x14')]())[_0x29fd('0x7')](()=>this[_0x29fd('0xd')][_0x29fd('0x14')](_0x1a4709))['then'](()=>this['fire']('ready'));}['destroy'](){return super[_0x29fd('0x17')]()['then'](()=>this['ui'][_0x29fd('0x17')]());}['focus'](){this[_0x29fd('0x1d')][_0x29fd('0x16')](_0x4a46d7=>{const _0x3fe48a=this['model'][_0x29fd('0x10')][_0x29fd('0x6')](),_0x51e9c2=_0x3fe48a&&_0x3fe48a['getChild'](_0x3fe48a['childCount']-0x1);_0x4a46d7[_0x29fd('0x8')](_0x51e9c2,_0x29fd('0x9')),this[_0x29fd('0x15')][_0x29fd('0x5')][_0x29fd('0x1b')]();});}[_0x29fd('0x19')](){const _0xcc230c=this[_0x29fd('0x15')][_0x29fd('0x5')],_0x4559bb=_0xcc230c[_0x29fd('0x10')]['getRoot'](),_0x24afbe=_0x4559bb[_0x29fd('0x18')](0x0);_0x4559bb[_0x29fd('0xb')]>0x1||!_0x24afbe||'p'!=_0x24afbe[_0x29fd('0x3')]?this['placeholderElement']&&this[_0x29fd('0x12')]['placeholder']&&(_0x150cc0(_0xcc230c,this[_0x29fd('0x12')]),this[_0x29fd('0x12')]=void 0x0):(this['placeholder']&&(_0x24afbe[_0x29fd('0x11')]=this['placeholder']),_0x667081({'view':_0xcc230c,'element':_0x24afbe,'keepOnFocus':!0x0}),this[_0x29fd('0x12')]=_0x24afbe);}}Nt[_0x29fd('0x13')]=Mt;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x326c=['element','view','rootName','isFocused','focusTracker','locale','destroy','document','ready','attachDomRoot','init','render','setEditableElement','bind','editing','name','fire','editable'];(function(_0x51f8bb,_0x326c1c){const _0xc9a348=function(_0x1496d4){while(--_0x1496d4){_0x51f8bb['push'](_0x51f8bb['shift']());}};_0xc9a348(++_0x326c1c);}(_0x326c,0x1bc));const _0xc9a3=function(_0x51f8bb,_0x326c1c){_0x51f8bb=_0x51f8bb-0x0;let _0xc9a348=_0x326c[_0x51f8bb];return _0xc9a348;};import{EditorUI as _0x27e928}from'ckeditor5/src/ui';import _0x8f2f50 from'./commenteditoruiview';export default class Ft extends _0x27e928{constructor(_0x21f856){super(_0x21f856),this['view']=new _0x8f2f50(_0x21f856[_0xc9a3('0xb')],_0x21f856['editing'][_0xc9a3('0x7')]);}get['element'](){return this[_0xc9a3('0x7')]['element'];}[_0xc9a3('0x10')](){const _0x1e0141=this['editor'][_0xc9a3('0x2')][_0xc9a3('0x7')],_0x21d8f8=this[_0xc9a3('0x7')][_0xc9a3('0x5')],_0xc27b27=_0x1e0141[_0xc9a3('0xd')]['getRoot']();_0x21d8f8[_0xc9a3('0x3')]=_0xc27b27[_0xc9a3('0x8')],this[_0xc9a3('0x7')][_0xc9a3('0x11')]();const _0x2c9ae1=_0x21d8f8[_0xc9a3('0x6')];this[_0xc9a3('0x0')](_0x21d8f8[_0xc9a3('0x3')],_0x2c9ae1),this[_0xc9a3('0x7')]['editable'][_0xc9a3('0x1')](_0xc9a3('0x9'))['to'](this[_0xc9a3('0xa')]),_0x1e0141[_0xc9a3('0xf')](_0x2c9ae1),this[_0xc9a3('0x4')](_0xc9a3('0xe'));}[_0xc9a3('0xc')](){super[_0xc9a3('0xc')](),this[_0xc9a3('0x7')]['destroy']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e13=['focus','ck-reset','presentation','createCollection','main','editable','ck-editor__main','ck-rounded-corners','ck-editor','render','ck-voice-label','setTemplate','div','element','text','extendTemplate','comment','_voiceLabelView','_createVoiceLabel'];(function(_0x4e6d47,_0x4e13cb){const _0x25fcda=function(_0x583da2){while(--_0x583da2){_0x4e6d47['push'](_0x4e6d47['shift']());}};_0x25fcda(++_0x4e13cb);}(_0x4e13,0x1ad));const _0x25fc=function(_0x4e6d47,_0x4e13cb){_0x4e6d47=_0x4e6d47-0x0;let _0x25fcda=_0x4e13[_0x4e6d47];return _0x25fcda;};import{InlineEditableUIView as _0x107409,EditorUIView as _0xc76235,LabelView as _0x513679}from'ckeditor5/src/ui';import{uid as _0x182a41}from'ckeditor5/src/utils';import{getTranslation as _0x3cb324}from'../../../utils/common-translations';export default class Rt extends _0xc76235{constructor(_0x4a07a2,_0x4e25fd){super(_0x4a07a2);const _0x1b2dd6=_0x182a41();this[_0x25fc('0xc')]=this[_0x25fc('0xb')](),this['editable']=new _0x107409(_0x4a07a2,_0x4e25fd),this[_0x25fc('0x6')]=this[_0x25fc('0x7')](_0x1b2dd6,_0x4a07a2),this[_0x25fc('0x0')]({'tag':_0x25fc('0x1'),'attributes':{'class':[_0x25fc('0x9'),_0x25fc('0x10'),_0x25fc('0xf'),'ck-comment__input'],'role':_0x25fc('0x5'),'dir':_0x4a07a2['uiLanguageDirection'],'lang':_0x4a07a2['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x1b2dd6},'children':[this['_voiceLabelView'],{'tag':_0x25fc('0x1'),'attributes':{'class':_0x25fc('0xe'),'role':_0x25fc('0xa')},'children':this[_0x25fc('0xc')]}]});}[_0x25fc('0x11')](){super['render'](),this[_0x25fc('0xc')]['add'](this[_0x25fc('0xd')]);}['focus'](){this[_0x25fc('0xd')][_0x25fc('0x2')][_0x25fc('0x8')]();}[_0x25fc('0x7')](_0x4f7cde,_0x252361){const _0x56e419=new _0x513679();return _0x56e419[_0x25fc('0x3')]=_0x3cb324(_0x252361,'Comment\x20editor'),_0x56e419[_0x25fc('0x4')]({'attributes':{'id':'ck-editor__aria-label_'+_0x4f7cde,'class':_0x25fc('0x12')}}),_0x56e419;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xb2c8=['_isAttached','resolveCommentThread','remove','removeComment','isResolved','model','resolve','updateComment','view','destroy','_localUser','reopen','getComment','listenTo','reopenCommentThread','addComment','submit'];(function(_0x5e9342,_0xb2c87e){var _0x70e3cd=function(_0x3fd2c9){while(--_0x3fd2c9){_0x5e9342['push'](_0x5e9342['shift']());}};_0x70e3cd(++_0xb2c87e);}(_0xb2c8,0x1f1));var _0x70e3=function(_0x5e9342,_0xb2c87e){_0x5e9342=_0x5e9342-0x0;var _0x70e3cd=_0xb2c8[_0x5e9342];return _0x70e3cd;};import{ObservableMixin as _0x3745fd}from'ckeditor5/src/utils';export default class ut extends _0x3745fd(){constructor(_0x1ae311,_0x36c98d){super(),this[_0x70e3('0x1')]=_0x1ae311,this[_0x70e3('0x1')][_0x70e3('0xd')]=!0x0,this[_0x70e3('0x4')]=_0x36c98d,this['listenTo'](_0x36c98d,'submitCommentThread',()=>this['submit']()),this[_0x70e3('0x9')](_0x36c98d,'removeCommentThread',()=>this[_0x70e3('0xf')]()),this[_0x70e3('0x9')](_0x36c98d,_0x70e3('0xe'),()=>this[_0x70e3('0x2')]()),this[_0x70e3('0x9')](_0x36c98d,_0x70e3('0xa'),()=>this['reopen']()),this['listenTo'](_0x36c98d,'addComment',(_0x44493c,_0x1f200)=>this[_0x70e3('0xb')](_0x1f200)),this[_0x70e3('0x9')](_0x36c98d,_0x70e3('0x3'),(_0x3930d7,_0x5d013a,_0x10167e)=>this[_0x70e3('0x3')](_0x5d013a,_0x10167e)),this[_0x70e3('0x9')](_0x36c98d,'removeComment',(_0x2d96dc,_0x28b481)=>this[_0x70e3('0x10')](_0x28b481));}[_0x70e3('0xc')](){this[_0x70e3('0x1')][_0x70e3('0xc')]();}[_0x70e3('0xf')](){this[_0x70e3('0x1')][_0x70e3('0xf')]();}['resolve'](){this['model'][_0x70e3('0x0')]||this[_0x70e3('0x1')][_0x70e3('0x2')]();}[_0x70e3('0x7')](){this[_0x70e3('0x1')][_0x70e3('0x0')]&&this['model']['reopen']();}[_0x70e3('0xb')](_0x807c0d){this[_0x70e3('0x1')][_0x70e3('0xb')]({'content':_0x807c0d,'authorId':this[_0x70e3('0x4')][_0x70e3('0x6')]['id']});}[_0x70e3('0x3')](_0x291970,_0x354411){this[_0x70e3('0x1')][_0x70e3('0x8')](_0x291970)['update']({'content':_0x354411});}[_0x70e3('0x10')](_0x5445b0){this['model'][_0x70e3('0x8')](_0x5445b0)[_0x70e3('0xf')]();}[_0x70e3('0x5')](){this['stopListening'](),this[_0x70e3('0x1')][_0x70e3('0xd')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3fb4=['isActive','isDirty','submit','commentThreadHeaderView','disabledSubmit','commentsListView','_model','cancel','isUnlinked','element','Reply','editorReady','length','locale','removeCommentThread','updateComment','showInput','submitCommentThread','isSubmitted','submitLabel','CommentView','Write\x20a\x20comment...','_config','focus','isReadOnly','assign','bind','destroy','listenTo','Reply\x20to\x20reopen\x20discussion...','editorDestroyed','delegate','Comment','commentInputView','_createCommentThreadInputView','isResolved','reopenCommentThread','_localUser','set','addComment','fire','resolveCommentThread','commentThreadInputView','removeComment','isResolvable','value','change:isActive'];(function(_0x3b4f7a,_0x3fb4d0){const _0x398e96=function(_0x35e2a1){while(--_0x35e2a1){_0x3b4f7a['push'](_0x3b4f7a['shift']());}};_0x398e96(++_0x3fb4d0);}(_0x3fb4,0x15d));const _0x398e=function(_0x3b4f7a,_0x3fb4d0){_0x3b4f7a=_0x3b4f7a-0x0;let _0x398e96=_0x3fb4[_0x3b4f7a];return _0x398e96;};import{View as _0x3bba86}from'ckeditor5/src/ui';import _0x4213fc from'./commentthreadinputview';import _0x1a54ac from'./commentslistview';import _0x255acf from'./commentthreadheaderview';import{getTranslation as _0x4f93cf}from'../../../utils/common-translations';export default class Ut extends _0x3bba86{constructor(_0x120eb5,_0x337594,_0x23995d,_0x5dd6cb){super(_0x120eb5),this[_0x398e('0x12')](_0x398e('0x1b'),!0x1),this['set'](_0x398e('0x1c'),!0x1),this[_0x398e('0x21')]=_0x337594,this[_0x398e('0x11')]=_0x23995d,this[_0x398e('0x2')]=_0x5dd6cb,this[_0x398e('0x1e')]=new _0x255acf(_0x120eb5,_0x337594),this[_0x398e('0x1e')]['delegate'](_0x398e('0x10'))['to'](this),this[_0x398e('0x8')](this,_0x398e('0x10'),()=>{this['focus']();}),this[_0x398e('0x20')]=new _0x1a54ac(_0x120eb5,_0x337594,Object[_0x398e('0x5')]({'CommentView':this[_0x398e('0x2')][_0x398e('0x0')]},_0x5dd6cb)),this[_0x398e('0x20')][_0x398e('0xb')]('removeComment')['to'](this),this['commentsListView'][_0x398e('0xb')](_0x398e('0x2a'))['to'](this),this[_0x398e('0x20')][_0x398e('0xb')](_0x398e('0x15'))['to'](this),this[_0x398e('0x20')]['delegate'](_0x398e('0x26'))['to'](this),this['commentsListView'][_0x398e('0xb')]('editorDestroyed')['to'](this),this['commentsListView'][_0x398e('0x6')](_0x398e('0x1b'))['to'](this),this[_0x398e('0x8')](this,_0x398e('0x15'),()=>{this['focus']();}),this[_0x398e('0x12')]('length',this[_0x398e('0x20')]['length']),this['bind']('length')['to'](this[_0x398e('0x20')],_0x398e('0x27')),this['commentThreadInputView']=this[_0x398e('0xe')](),this[_0x398e('0x16')][_0x398e('0xb')](_0x398e('0x26'))['to'](this),this[_0x398e('0x16')][_0x398e('0xb')](_0x398e('0xa'))['to'](this),this['on'](_0x398e('0x17'),()=>this[_0x398e('0x3')]()),this[_0x398e('0x6')](_0x398e('0x1c'))['to'](this[_0x398e('0x20')],'hasDirtyComment',this[_0x398e('0x16')][_0x398e('0xd')],_0x398e('0x19'),(_0x3fb4ef,_0xe86433)=>_0x3fb4ef||!!_0xe86433),this[_0x398e('0x6')](_0x398e('0x23'))['to'](_0x337594,'unlinkedAt',_0x59c730=>!!_0x59c730);}['focus'](){this[_0x398e('0x24')][_0x398e('0x3')]();}async[_0x398e('0x7')](){this[_0x398e('0x1c')]=!0x1,this[_0x398e('0x20')][_0x398e('0x7')](),await this[_0x398e('0x16')][_0x398e('0x7')](),super['destroy']();}[_0x398e('0xe')](){const _0x269a2c=new _0x4213fc(this[_0x398e('0x28')],this[_0x398e('0x11')],this[_0x398e('0x2')]['editorConfig']),_0x4b85de=_0x269a2c[_0x398e('0xd')];return _0x269a2c[_0x398e('0x6')](_0x398e('0x2b'))['to'](this,_0x398e('0x1b'),this[_0x398e('0x21')],_0x398e('0x4'),this[_0x398e('0x21')],'canComment',this[_0x398e('0x21')],'archivedAt',_0x4b85de,'value',(_0x51bdbd,_0x2511d5,_0x247729,_0x115b73,_0x43d2e1)=>!!_0x43d2e1||!!_0x115b73&&_0x247729&&!_0x2511d5||_0x51bdbd&&_0x247729&&!_0x2511d5),_0x4b85de[_0x398e('0x6')]('placeholder')['to'](this,_0x398e('0x27'),this[_0x398e('0x21')],_0x398e('0x18'),this['_model'],_0x398e('0xf'),(_0x570991,_0x1396dc,_0x3ca176)=>{let _0x2595b7;return _0x2595b7=_0x3ca176&&_0x1396dc?_0x398e('0x9'):_0x570991?'Reply...':_0x398e('0x1'),_0x4f93cf(this[_0x398e('0x28')],_0x2595b7);}),_0x4b85de[_0x398e('0x6')](_0x398e('0x2e'))['to'](this,'length',_0x52670e=>_0x4f93cf(this['locale'],_0x52670e?_0x398e('0x25'):_0x398e('0xc'))),_0x4b85de['on'](_0x398e('0x1d'),(_0x12d3a4,_0x1fff4e)=>{this[_0x398e('0x14')](_0x398e('0x13'),_0x1fff4e),this[_0x398e('0x21')][_0x398e('0xf')]&&this[_0x398e('0x21')][_0x398e('0x18')]&&this[_0x398e('0x14')](_0x398e('0x10'),this[_0x398e('0x21')]['id']),this['_model'][_0x398e('0x2d')]||this['fire'](_0x398e('0x2c'));}),_0x4b85de['on'](_0x398e('0x22'),()=>{this[_0x398e('0x3')]();}),_0x4b85de[_0x398e('0x6')](_0x398e('0x1f'))['to'](this['_model'],_0x398e('0x4')),_0x4b85de['on'](_0x398e('0x22'),_0x385c39=>{0x0==this[_0x398e('0x27')]&&(this[_0x398e('0x14')](_0x398e('0x29')),_0x385c39['stop']());}),this['on'](_0x398e('0x1a'),(_0x162b7e,_0x2d2580,_0x733a79)=>{_0x733a79||this['length']||_0x4b85de[_0x398e('0x19')]||this[_0x398e('0x14')](_0x398e('0x29'));}),_0x269a2c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4082=['expand','_config','cancel','Save','locale','isEditMode','add','destroy','collapse','submitLabel','focus','isCollapsed','bind','editorConfig','switchToDisplayMode','_model','switchToEditMode','element','fire','set','_createCommentContentView','editorReady','createEditor','content','updateComment','get','delegate','createCollection','remove','visibleView','maxCommentCharsWhenCollapsed','isSystemComment','_createCommentInputView','submit','isReadOnly','disabledSubmit'];(function(_0x52156b,_0x40829e){const _0x5bc6d3=function(_0x30c628){while(--_0x30c628){_0x52156b['push'](_0x52156b['shift']());}};_0x5bc6d3(++_0x40829e);}(_0x4082,0x1bd));const _0x5bc6=function(_0x52156b,_0x40829e){_0x52156b=_0x52156b-0x0;let _0x5bc6d3=_0x4082[_0x52156b];return _0x5bc6d3;};import{View as _0x525e09}from'ckeditor5/src/ui';import{trimHtml as _0x560e95}from'ckeditor5-collaboration/src/collaboration-core';import _0x110521 from'./commentcontentview';import _0x2ab617 from'./commentinputview';import{getTranslation as _0x533552}from'../../../utils/common-translations';export default class ti extends _0x525e09{constructor(_0x5d74ed,_0x303a08,_0x551513){super(_0x5d74ed),this['_model']=_0x303a08,this[_0x5bc6('0x18')]=_0x551513,this['isSystemComment']=!!this[_0x5bc6('0x18')][_0x5bc6('0x12')],this['set'](_0x5bc6('0x1c'),!0x1),this[_0x5bc6('0x6')](_0x5bc6('0x22'),!0x0),this['visibleView']=this[_0x5bc6('0xe')](),this['visibleView'][_0x5bc6('0x1d')](this[_0x5bc6('0x7')]());}[_0x5bc6('0x17')](){this[_0x5bc6('0x22')]=!0x1;}[_0x5bc6('0x1f')](){this[_0x5bc6('0x1c')]||(this['isCollapsed']=!0x0);}[_0x5bc6('0x21')](){this[_0x5bc6('0x4')][_0x5bc6('0x21')]();}async[_0x5bc6('0x1e')](){await this[_0x5bc6('0x10')][_0x5bc6('0xc')](0x0)[_0x5bc6('0x1e')](),super[_0x5bc6('0x1e')]();}[_0x5bc6('0x3')](){this[_0x5bc6('0x1c')]||(this[_0x5bc6('0x1c')]=!0x0,this[_0x5bc6('0x10')][_0x5bc6('0xf')](0x0)[_0x5bc6('0x1e')](),this[_0x5bc6('0x10')][_0x5bc6('0x1d')](this[_0x5bc6('0x13')]()));}[_0x5bc6('0x1')](){this[_0x5bc6('0x1c')]&&(this[_0x5bc6('0x1c')]=!0x1,this['visibleView'][_0x5bc6('0xf')](0x0)[_0x5bc6('0x1e')](),this[_0x5bc6('0x10')]['add'](this[_0x5bc6('0x7')]()));}[_0x5bc6('0x7')](){const _0x22bf77=new _0x110521(this['locale']);return _0x22bf77[_0x5bc6('0x23')](_0x5bc6('0xa'))['to'](this[_0x5bc6('0x2')],_0x5bc6('0xa'),this,'isCollapsed',(_0x5cf3cb,_0x5aedf9)=>_0x5aedf9?_0x560e95(_0x5cf3cb,{'limit':this['_config'][_0x5bc6('0x11')]}):_0x5cf3cb),_0x22bf77;}[_0x5bc6('0x13')](){this['_config']['editorConfig']||(this[_0x5bc6('0x18')][_0x5bc6('0x0')]={}),this[_0x5bc6('0x18')][_0x5bc6('0x0')]['initialData']=this['_model'][_0x5bc6('0xa')];const _0x145844=new _0x2ab617(this[_0x5bc6('0x1b')],this[_0x5bc6('0x18')][_0x5bc6('0x0')]);return _0x145844['value']=this[_0x5bc6('0x2')]['content'],_0x145844['bind'](_0x5bc6('0x16'))['to'](this['_model'],_0x5bc6('0x15')),_0x145844[_0x5bc6('0x20')]=_0x533552(this[_0x5bc6('0x1b')],_0x5bc6('0x1a')),_0x145844['on'](_0x5bc6('0x14'),(_0x2e4648,_0x5dbfa3)=>{this[_0x5bc6('0x5')](_0x5bc6('0xb'),this[_0x5bc6('0x2')]['id'],_0x5dbfa3),this['switchToDisplayMode'](),this['focus']();}),_0x145844['on'](_0x5bc6('0x19'),()=>{this[_0x5bc6('0x1')](),this['focus']();}),_0x145844['once'](_0x5bc6('0x8'),()=>{_0x145844[_0x5bc6('0x21')]();}),_0x145844[_0x5bc6('0x9')](),_0x145844[_0x5bc6('0xd')](_0x5bc6('0x8'))['to'](this),_0x145844['delegate']('editorDestroyed')['to'](this),_0x145844;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2019=['count','ck-thread__comment-count','bindTemplate','NUMBER_OF_COMMENTS'];(function(_0x469637,_0x201917){const _0x128cdb=function(_0x54558d){while(--_0x54558d){_0x469637['push'](_0x469637['shift']());}};_0x128cdb(++_0x201917);}(_0x2019,0x18c));const _0x128c=function(_0x469637,_0x201917){_0x469637=_0x469637-0x0;let _0x128cdb=_0x2019[_0x469637];return _0x128cdb;};import{View as _0x54b8c}from'ckeditor5/src/ui';import{getTranslation as _0x41bbcd}from'../../../utils/common-translations';export default class to extends _0x54b8c{constructor(_0x39c646){super(_0x39c646);const _0x2f36fb=this[_0x128c('0x2')];this['set'](_0x128c('0x0'),void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':_0x128c('0x1')},'children':[{'text':_0x2f36fb['to'](_0x128c('0x0'),_0xa2abb3=>_0x41bbcd(_0x39c646,_0x128c('0x3'),_0xa2abb3))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1a1b=['setTemplate','innerHTML','div','ck-comment__content','ck-annotation__content','content','element','render','change:content'];(function(_0x1067bb,_0x1a1b8e){var _0x2b4dbd=function(_0x2d1d93){while(--_0x2d1d93){_0x1067bb['push'](_0x1067bb['shift']());}};_0x2b4dbd(++_0x1a1b8e);}(_0x1a1b,0xa8));var _0x2b4d=function(_0x1067bb,_0x1a1b8e){_0x1067bb=_0x1067bb-0x0;var _0x2b4dbd=_0x1a1b[_0x1067bb];return _0x2b4dbd;};import{View as _0x4ce4f5}from'ckeditor5/src/ui';export default class Yt extends _0x4ce4f5{constructor(_0x4d06c4){super(_0x4d06c4),this['set'](_0x2b4d('0x8'),''),this[_0x2b4d('0x3')]({'tag':_0x2b4d('0x5'),'attributes':{'class':[_0x2b4d('0x6'),_0x2b4d('0x7')]}});}[_0x2b4d('0x1')](){super['render'](),this['on'](_0x2b4d('0x2'),(_0x2457a4,_0x5e0f4d,_0x55e8ea)=>{this['element'][_0x2b4d('0x4')]=_0x55e8ea;}),this[_0x2b4d('0x0')][_0x2b4d('0x4')]=this[_0x2b4d('0x8')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e27=['_initializeFocusCycling','createEditor','Reply','_editorCreationPromise','ck-comment__input-wrapper','insertBefore','ck-comment__input-actions--submit','editorDestroyed','div','ck-comment__input-actions--active','submitButtonView','setTemplate','cancel','showButtons','trim','length','keystrokes','ck-comment__input-actions--cancel','initialData','submitLabel','ck-comment__input-actions','view','destroy','getData','focus','listenTo','editorReady','withText','cancelButtonView','isEnabled','_editorConfig','focusNext','value','then','placeholder','render','bind','setData','element','_isDestroyed','label','shift\x20+\x20tab','tab','Esc','firstChild','create','high','disabledSubmit','submit','_createSubmitButton','document','Reply...','focusTracker','model','extendTemplate','execute','TOO_LONG_COMMENT_ALERT','change','low','set','_createCancelButton','add','editor','fire'];(function(_0x2a7343,_0x5e27e7){const _0x418e53=function(_0x518b51){while(--_0x518b51){_0x2a7343['push'](_0x2a7343['shift']());}};_0x418e53(++_0x5e27e7);}(_0x5e27,0x116));const _0x418e=function(_0x2a7343,_0x5e27e7){_0x2a7343=_0x2a7343-0x0;let _0x418e53=_0x5e27[_0x2a7343];return _0x418e53;};import{View as _0x1973b7,ViewCollection as _0x1281ed,FocusCycler as _0x1b5ce1,ButtonView as _0x3a7cf7}from'ckeditor5/src/ui';import{FocusTracker as _0x55b1a1,KeystrokeHandler as _0x27ae38}from'ckeditor5/src/utils';import _0x335ea9 from'../commenteditor/commenteditor';import{getTranslation as _0x31f32b}from'../../../utils/common-translations';export default class Zt extends _0x1973b7{constructor(_0x599622,_0x3e6fc4={}){super(_0x599622),this['editor']=null,this[_0x418e('0x8')]=_0x3e6fc4,this[_0x418e('0x3a')]=new _0x27ae38(),this['focusTracker']=new _0x55b1a1(),this[_0x418e('0x25')](_0x418e('0xa'),_0x3e6fc4[_0x418e('0x3c')]||''),this[_0x418e('0x25')](_0x418e('0x19'),!0x1),this['set'](_0x418e('0x37'),!0x0),this[_0x418e('0x25')]('placeholder',_0x31f32b(_0x599622,_0x418e('0x1d'))),this[_0x418e('0x25')]('submitLabel',_0x31f32b(_0x599622,_0x418e('0x2c'))),this['submitButtonView']=this[_0x418e('0x1b')](),this[_0x418e('0x6')]=this[_0x418e('0x26')](),this[_0x418e('0x35')]({'tag':_0x418e('0x32'),'attributes':{'class':[_0x418e('0x2e')]},'children':[{'tag':_0x418e('0x32'),'attributes':{'class':[_0x418e('0x3e'),this['bindTemplate']['if']('showButtons',_0x418e('0x33'))]},'children':[this[_0x418e('0x34')],this[_0x418e('0x6')]]}]}),this[_0x418e('0x3a')][_0x418e('0x25')](_0x418e('0x15'),(_0x296bf7,_0x15353f)=>{this[_0x418e('0x6')][_0x418e('0x29')](_0x418e('0x21')),_0x15353f();}),this['on']('submit',(_0x948bbc,_0x97fd15)=>{_0x97fd15[_0x418e('0x39')]>0xfde8?(alert(_0x31f32b(_0x599622,_0x418e('0x22'),[_0x97fd15[_0x418e('0x39')],0xfde8])),_0x948bbc['stop']()):this[_0x418e('0x28')][_0x418e('0xf')]('');},{'priority':_0x418e('0x18')});}[_0x418e('0xd')](){super[_0x418e('0xd')](),this['keystrokes'][_0x418e('0x3')](this[_0x418e('0x10')]),this['focusTracker'][_0x418e('0x27')](this[_0x418e('0x10')]);}[_0x418e('0x2b')](){return this[_0x418e('0x28')]||(this[_0x418e('0x28')]=new _0x335ea9(this[_0x418e('0x8')]),this[_0x418e('0x2d')]=this['editor'][_0x418e('0x17')]()[_0x418e('0xb')](()=>{if(this[_0x418e('0x11')])return;const _0x557ebc=this[_0x418e('0x28')];this[_0x418e('0x10')][_0x418e('0x2f')](_0x557ebc['ui'][_0x418e('0x10')],this[_0x418e('0x10')][_0x418e('0x16')]),_0x557ebc[_0x418e('0x1f')][_0x418e('0x1c')]['on'](_0x418e('0x23'),()=>this[_0x418e('0xa')]=_0x557ebc[_0x418e('0x1')]()),_0x557ebc[_0x418e('0xe')](_0x418e('0xc'))['to'](this),this[_0x418e('0x2a')](this[_0x418e('0x28')]),this['fire'](_0x418e('0x4'),this[_0x418e('0x28')]);})),this['_editorCreationPromise'];}[_0x418e('0x2')](){this[_0x418e('0x28')]&&this[_0x418e('0x28')]['focus']();}async['destroy'](){this['_isDestroyed']||(this[_0x418e('0x11')]=!0x0,this['editor']&&(await this[_0x418e('0x2d')],await this[_0x418e('0x28')][_0x418e('0x0')](),this[_0x418e('0x29')](_0x418e('0x31'),this[_0x418e('0x28')])),await super['destroy']());}[_0x418e('0x1b')](){const {locale:_0x826531}=this,_0x5effc7=new _0x3a7cf7(_0x826531);return _0x5effc7[_0x418e('0x20')]({'attributes':{'class':[_0x418e('0x30')]}}),_0x5effc7['withText']=!0x0,_0x5effc7['bind']('label')['to'](this,_0x418e('0x3d')),_0x5effc7['on'](_0x418e('0x21'),()=>{this[_0x418e('0x29')](_0x418e('0x1a'),this[_0x418e('0xa')]);}),_0x5effc7[_0x418e('0xe')](_0x418e('0x7'))['to'](this,_0x418e('0xa'),this,'disabledSubmit',(_0x33915a,_0x1739e9)=>!_0x1739e9&&!!_0x33915a[_0x418e('0x38')]()),_0x5effc7;}[_0x418e('0x26')](){const {locale:_0x1a576c}=this,_0x458f1e=new _0x3a7cf7(_0x1a576c);return _0x458f1e['extendTemplate']({'attributes':{'class':[_0x418e('0x3b')]}}),_0x458f1e[_0x418e('0x12')]=_0x31f32b(_0x1a576c,'Cancel'),_0x458f1e[_0x418e('0x5')]=!0x0,_0x458f1e['on']('execute',()=>{this[_0x418e('0x28')][_0x418e('0xf')](''),this[_0x418e('0x29')](_0x418e('0x36'));}),_0x458f1e;}[_0x418e('0x2a')](_0x4f1fd4){const _0x4bc69a=this[_0x418e('0x1e')],_0x48693e=new _0x1281ed();[_0x4f1fd4['ui'][_0x418e('0x3f')],this['submitButtonView'],this[_0x418e('0x6')]]['forEach'](_0x28d767=>{_0x48693e['add'](_0x28d767),_0x4bc69a[_0x418e('0x27')](_0x28d767[_0x418e('0x10')]);});const _0x2fdda9=new _0x1b5ce1({'focusables':_0x48693e,'focusTracker':_0x4bc69a});this[_0x418e('0x3a')][_0x418e('0x25')](_0x418e('0x14'),(_0x3f59d6,_0x3f2615)=>{_0x2fdda9[_0x418e('0x9')](),_0x3f2615();},{'priority':_0x418e('0x24')}),this[_0x418e('0x3a')]['set'](_0x418e('0x13'),(_0xb63046,_0x53a3e6)=>{_0x2fdda9['focusPrevious'](),_0x53a3e6();},{'priority':_0x418e('0x24')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x418d=['shift\x20+\x20tab','bindTemplate','isEmpty','arrowleft','destroy','length','ck-comments-archive__info','arrowup','render','arrowdown','selectstart','_focusables','remove','_focusCycler','ck-comments-archive__content','auto','isActive','ck-comments-archive__header\x20','element','_focusTracker','_keystrokes','add','stopPropagation','set','listenTo','arrowright','focus','div'];(function(_0x351164,_0x418dcf){const _0x35ee6d=function(_0x14e261){while(--_0x14e261){_0x351164['push'](_0x351164['shift']());}};_0x35ee6d(++_0x418dcf);}(_0x418d,0x143));const _0x35ee=function(_0x351164,_0x418dcf){_0x351164=_0x351164-0x0;let _0x35ee6d=_0x418d[_0x351164];return _0x35ee6d;};import{View as _0x2e2f10,FocusCycler as _0x1f9a1f}from'ckeditor5/src/ui';import{FocusTracker as _0x1497b5,KeystrokeHandler as _0x18ce70}from'ckeditor5/src/utils';import{getTranslation as _0x58da84}from'../../../utils/common-translations';export default class K extends _0x2e2f10{constructor(_0xc4b2b9,_0x273c94){super(_0xc4b2b9),this[_0x35ee('0x8')](_0x35ee('0xf'),!_0x273c94[_0x35ee('0x12')]),this[_0x35ee('0x4')]=new _0x1497b5(),this[_0x35ee('0x5')]=new _0x18ce70(),this['_focusables']=_0x273c94,this[_0x35ee('0x1a')]=new _0x1f9a1f({'focusables':this[_0x35ee('0x18')],'focusTracker':this[_0x35ee('0x4')],'keystrokeHandler':this['_keystrokes'],'actions':{'focusPrevious':_0x35ee('0xd'),'focusNext':'tab'}}),this[_0x35ee('0x9')](_0x273c94,_0x35ee('0x6'),()=>{this[_0x35ee('0xf')]=!0x1;}),this[_0x35ee('0x9')](_0x273c94,_0x35ee('0x19'),(_0x8c5821,_0xf46e67)=>{_0xf46e67[_0x35ee('0x1')]&&this[_0x35ee('0xb')](),_0x273c94[_0x35ee('0x12')]||(this[_0x35ee('0xf')]=!0x0);});const _0x2e69e9=this[_0x35ee('0xe')];this['setTemplate']({'tag':_0x35ee('0xc'),'attributes':{'dir':_0x35ee('0x0'),'class':['ck','ck-comments-archive'],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':[_0x35ee('0x2')]},'children':[{'text':_0x58da84(_0xc4b2b9,'COMMENTS_ARCHIVE')}]},{'tag':'div','attributes':{'class':[_0x35ee('0x1b')]},'children':[{'tag':_0x35ee('0xc'),'children':_0x273c94},{'tag':'p','attributes':{'class':[_0x35ee('0x13'),_0x2e69e9['if'](_0x35ee('0xf'),'ck-hidden',_0xeb4e0=>!_0xeb4e0)]},'children':[{'text':_0x58da84(_0xc4b2b9,'EMPTY_COMMENTS_ARCHIVE')}]}]}]});}['render'](){super[_0x35ee('0x15')](),this['_keystrokes'][_0x35ee('0x9')](this[_0x35ee('0x3')]);const _0x16a311=_0x272cb0=>_0x272cb0[_0x35ee('0x7')]();this[_0x35ee('0x5')][_0x35ee('0x8')](_0x35ee('0xa'),_0x16a311),this[_0x35ee('0x5')][_0x35ee('0x8')](_0x35ee('0x10'),_0x16a311),this[_0x35ee('0x5')][_0x35ee('0x8')](_0x35ee('0x14'),_0x16a311),this[_0x35ee('0x5')]['set'](_0x35ee('0x16'),_0x16a311),this[_0x35ee('0x9')](this[_0x35ee('0x3')],_0x35ee('0x17'),(_0x267f5,_0x9cbbeb)=>{_0x9cbbeb[_0x35ee('0x7')]();},{'priority':'high'});}['destroy'](){super[_0x35ee('0x11')](),this['_focusTracker'][_0x35ee('0x11')](),this[_0x35ee('0x5')]['destroy']();}['focus'](){this[_0x35ee('0x3')][_0x35ee('0xb')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x275c=['hasDirtyComment','count','change:isEditMode','length','add','CommentView','editorDestroyed','resolvedCommentView','resolved','equal','editorConfig','_handleNewCommentModel','removeComment','change:hasDirtyComment','_findOptimalIndex','element','Marked\x20as\x20resolved','expand','get','change:isActive','weight','listenTo','commentUpdated','refreshVisibleViews','isActive','commentViews','_config','_model','remove','insert','authoredAt','render','editorReady','updateComment','maxCommentsWhenCollapsed','collapse','delete','set','resolvedAt','_collapsedCommentsView','destroy','_shouldCollapse','_calculatePosition','locale','comments','_handleInfoComment','_handleRemoveCommentModel','maxThreadTotalWeight','resolvedBy','focus','_updateHasDirtyComment','maxCommentCharsWhenCollapsed','visibleViews','delegate','formatDateTime','from','isEditMode','bind','stopListening','createCollection'];(function(_0x35fa52,_0x275cb4){const _0x169b4a=function(_0x5bafa3){while(--_0x5bafa3){_0x35fa52['push'](_0x35fa52['shift']());}};_0x169b4a(++_0x275cb4);}(_0x275c,0x146));const _0x169b=function(_0x35fa52,_0x275cb4){_0x35fa52=_0x35fa52-0x0;let _0x169b4a=_0x275c[_0x35fa52];return _0x169b4a;};import{View as _0x1a4ad7}from'ckeditor5/src/ui';import{diff as _0x3bed8f,Collection as _0x1ca7a7}from'ckeditor5/src/utils';import{getTranslation as _0x2fbcda}from'../../../utils/common-translations';import _0x33505c from'./collapsedcommentsview';export default class Ct extends _0x1a4ad7{constructor(_0x3f3328,_0x28269a,_0x5e5e7b){super(_0x3f3328),this[_0x169b('0xb')]('hasDirtyComment',!0x1),this[_0x169b('0xb')](_0x169b('0x25'),_0x28269a[_0x169b('0x12')][_0x169b('0x25')]),this['set'](_0x169b('0x3a'),!0x1),this['_model']=_0x28269a,this[_0x169b('0x0')]=_0x5e5e7b,this['commentViews']=this['createCollection'](),this['visibleViews']=this[_0x169b('0x21')](),this[_0x169b('0x29')]=null,this[_0x169b('0xd')]=new _0x33505c(_0x3f3328),this[_0x169b('0xd')][_0x169b('0x1f')]('count')['to'](this,_0x169b('0x25'),_0x140279=>_0x140279-this['_config'][_0x169b('0x8')]);for(const _0x1ae9b0 of _0x28269a['comments'])this[_0x169b('0x2d')](_0x1ae9b0);this[_0x169b('0x13')](),this[_0x169b('0x37')](_0x28269a[_0x169b('0x12')],'add',(_0x2823d4,_0x382e9f)=>{const _0xcafe51=this['_calculatePosition'](_0x382e9f);this[_0x169b('0x25')]++,this[_0x169b('0x2d')](_0x382e9f,_0xcafe51),this['refreshVisibleViews']();}),this[_0x169b('0x37')](_0x28269a['comments'],_0x169b('0x2'),(_0x28a227,_0x37674b)=>{this[_0x169b('0x25')]--,this[_0x169b('0x14')](_0x37674b),this[_0x169b('0x39')]();}),this[_0x169b('0x37')](_0x28269a,_0x169b('0x38'),()=>this[_0x169b('0x39')]()),this[_0x169b('0x37')](_0x28269a,'change:isResolved',()=>this['_handleInfoComment']()),this['on'](_0x169b('0x35'),()=>this[_0x169b('0x39')]()),this['on'](_0x169b('0x2f'),()=>this[_0x169b('0x39')]()),this['setTemplate']({'tag':'ul','attributes':{'class':['ck-thread__comments']},'children':this[_0x169b('0x1a')]});}get[_0x169b('0xf')](){return this[_0x169b('0x1')][_0x169b('0x36')]>this[_0x169b('0x0')][_0x169b('0x15')]&&!this[_0x169b('0x3a')]&&!this['hasDirtyComment'];}[_0x169b('0x5')](){super[_0x169b('0x5')](),this['refreshVisibleViews']();}[_0x169b('0x17')](){this[_0x169b('0x31')][_0x169b('0x17')]();}[_0x169b('0xe')](){this[_0x169b('0xd')][_0x169b('0xe')]();for(const _0x5dc4af of this['commentViews'])_0x5dc4af[_0x169b('0xe')]();super[_0x169b('0xe')]();}[_0x169b('0x39')](){this[_0x169b('0xf')]?this['_rearrangeCollapse']():this['_rearrangeExpand']();}[_0x169b('0x2d')](_0x3aa1ff,_0x10d513){const _0x2de429=new this[(_0x169b('0x0'))][(_0x169b('0x27'))](this['locale'],_0x3aa1ff,{'maxCommentCharsWhenCollapsed':this['_config'][_0x169b('0x19')],'formatDateTime':this[_0x169b('0x0')][_0x169b('0x1c')],'editorConfig':this[_0x169b('0x0')][_0x169b('0x2c')]});_0x2de429['viewUid']=_0x3aa1ff['id'],_0x2de429[_0x169b('0x1b')](_0x169b('0x2e'))['to'](this),_0x2de429['delegate'](_0x169b('0x7'))['to'](this),_0x2de429[_0x169b('0x1b')]('resolveCommentThread')['to'](this),_0x2de429[_0x169b('0x1b')](_0x169b('0x6'))['to'](this),_0x2de429[_0x169b('0x1b')](_0x169b('0x28'))['to'](this),this['listenTo'](_0x2de429,_0x169b('0x24'),()=>this[_0x169b('0x18')]()),this[_0x169b('0x3b')][_0x169b('0x26')](_0x2de429,_0x10d513);}[_0x169b('0x10')](_0x418653){const _0x5c45b4=this[_0x169b('0x1')][_0x169b('0x30')](_0x418653);return this[_0x169b('0x29')]?this[_0x169b('0x29')][_0x169b('0x4')]>_0x418653[_0x169b('0x4')]?_0x5c45b4-0x1:_0x5c45b4:_0x5c45b4-0x1;}[_0x169b('0x13')](){if(this[_0x169b('0x1')][_0x169b('0x16')]&&this['_model'][_0x169b('0xc')]){const _0x1dd6d5={'id':_0x169b('0x2a'),'author':this[_0x169b('0x1')][_0x169b('0x16')],'authoredAt':this[_0x169b('0x1')][_0x169b('0xc')],'content':_0x2fbcda(this[_0x169b('0x11')],_0x169b('0x32')),'attributes':{}};this[_0x169b('0x29')]=new this[(_0x169b('0x0'))][(_0x169b('0x27'))](this['locale'],_0x1dd6d5,{'maxCommentCharsWhenCollapsed':this[_0x169b('0x0')][_0x169b('0x19')],'formatDateTime':this[_0x169b('0x0')][_0x169b('0x1c')],'editorConfig':this['_config'][_0x169b('0x2c')],'isSystemComment':!0x0}),this[_0x169b('0x3b')]['add'](this[_0x169b('0x29')],this[_0x169b('0x1')][_0x169b('0x30')](_0x1dd6d5));}else this[_0x169b('0x29')]&&(this['commentViews']['remove'](this['resolvedCommentView']),this[_0x169b('0x29')][_0x169b('0xe')](),this[_0x169b('0x29')]=null);this[_0x169b('0x39')]();}[_0x169b('0x14')](_0x7d3d5f){const _0x2850ba=this[_0x169b('0x3b')][_0x169b('0x2')](_0x7d3d5f['id']);this[_0x169b('0x20')](_0x2850ba),_0x2850ba['isEditMode']&&this['_updateHasDirtyComment'](),_0x2850ba[_0x169b('0xe')]();}['_updateHasDirtyComment'](){this[_0x169b('0x22')]=Array['from'](this[_0x169b('0x3b')])['some'](_0x1b072b=>_0x1b072b[_0x169b('0x1e')]);}['_rearrangeCollapse'](){const _0x3fdbe9=function(_0x689d0f){const _0x95f31f=new _0x1ca7a7();for(const _0x219d4f of _0x689d0f)_0x95f31f[_0x169b('0x26')](_0x219d4f);return _0x95f31f;}(this[_0x169b('0x3b')]),_0x5d20a0=this[_0x169b('0xd')][_0x169b('0x23')];for(let _0x535b92=0x1;_0x535b92<=_0x5d20a0;_0x535b92++)_0x3fdbe9[_0x169b('0x2')](0x1);for(const _0x1bcee1 of _0x3fdbe9)_0x1bcee1[_0x169b('0x9')]();_0x5d20a0>0x0&&_0x3fdbe9[_0x169b('0x26')](this['_collapsedCommentsView'],0x1),ss(_0x3bed8f(Array[_0x169b('0x1d')](this[_0x169b('0x1a')]),Array['from'](_0x3fdbe9)),this[_0x169b('0x1a')],_0x3fdbe9);}['_rearrangeExpand'](){ss(_0x3bed8f(Array[_0x169b('0x1d')](this[_0x169b('0x1a')]),Array[_0x169b('0x1d')](this[_0x169b('0x3b')])),this[_0x169b('0x1a')],this[_0x169b('0x3b')]);for(const _0x162bfd of this[_0x169b('0x1a')])_0x162bfd[_0x169b('0x33')]();}}function ss(_0xa76d34,_0x5d65f3,_0x1b9828){let _0x9f120a=0x0;for(const _0x35f60d of _0xa76d34)switch(_0x35f60d){case _0x169b('0x3'):_0x5d65f3[_0x169b('0x26')](_0x1b9828[_0x169b('0x34')](_0x9f120a),_0x9f120a),_0x9f120a++;break;case _0x169b('0xa'):_0x5d65f3['remove'](_0x9f120a);break;case _0x169b('0x2b'):_0x9f120a++;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x40a5=['icon','Comment\x20was\x20made\x20on\x20an\x20element','tooltip','scrollWidth','reopenButtonView','isResolvable','locale','classList','bind','offsetWidth','isEnabled','_attachContextActions','mouseenter','.ck-context','_trimContextValue','ck-context','isVisible','fire','execute','querySelector','ck-annotation__actions','add','_model','listenTo','...','hasContext','isReadOnly','label','render','div','remove','reopenCommentThread','ck-context__value','context','contextValue','value','ck-thread__header','overlay','bindTemplate','Reopen','setTemplate','_createReopenButton'];(function(_0x1655df,_0x40a5b7){const _0x70cedb=function(_0x4d1a67){while(--_0x4d1a67){_0x1655df['push'](_0x1655df['shift']());}};_0x70cedb(++_0x40a5b7);}(_0x40a5,0xc1));const _0x70ce=function(_0x1655df,_0x40a5b7){_0x1655df=_0x1655df-0x0;let _0x70cedb=_0x40a5[_0x1655df];return _0x70cedb;};import{View as _0xe7d97f,ButtonView as _0x199c09}from'ckeditor5/src/ui';import{getTranslation as _0xdffab2}from'../../../utils/common-translations';import _0x489f17 from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Tt extends _0xe7d97f{constructor(_0x1e0614,_0xe5fe10){super(_0x1e0614);const _0x48be0f=this[_0x70ce('0xd')];this[_0x70ce('0x27')]=_0xe5fe10,this[_0x70ce('0x15')]=this[_0x70ce('0x10')](),this[_0x70ce('0x19')](_0x70ce('0x0'))['to'](this[_0x70ce('0x27')],_0x70ce('0x8'),_0x12f96f=>!!_0x12f96f),this['bind'](_0x70ce('0x9'))['to'](this['_model'],_0x70ce('0x8'),_0x4d55c0=>_0x4d55c0&&_0x4d55c0[_0x70ce('0xa')]?this[_0x70ce('0x1f')](_0x4d55c0[_0x70ce('0xa')]):_0xdffab2(this['locale'],_0x70ce('0x12'))),this[_0x70ce('0xf')]({'tag':_0x70ce('0x4'),'attributes':{'class':[_0x70ce('0xb')]},'children':[{'tag':_0x70ce('0x4'),'attributes':{'class':['ck-context-wrapper']},'children':[{'tag':_0x70ce('0x4'),'attributes':{'class':[_0x70ce('0x20'),_0x48be0f['if'](_0x70ce('0x0'),'ck-context--quotes')]},'children':[{'tag':'span','attributes':{'class':[_0x70ce('0x7')]},'children':[{'text':_0x48be0f['to'](_0x70ce('0x9'))}]}]}]},{'tag':'div','attributes':{'class':[_0x70ce('0x25')]},'children':[this[_0x70ce('0x15')]]}]});}['render'](){super[_0x70ce('0x3')](),this[_0x70ce('0x1c')]();}[_0x70ce('0x10')](){const _0x324808=new _0x199c09(this['locale']);return _0x324808[_0x70ce('0x2')]=_0xdffab2(this['locale'],_0x70ce('0xe')),_0x324808[_0x70ce('0x13')]=_0xdffab2(this[_0x70ce('0x17')],_0x70ce('0xe')),_0x324808[_0x70ce('0x11')]=_0x489f17,_0x324808[_0x70ce('0x19')](_0x70ce('0x1b'))['to'](this['_model'],_0x70ce('0x1'),_0x4758cd=>!_0x4758cd),_0x324808[_0x70ce('0x19')](_0x70ce('0x21'))['to'](this[_0x70ce('0x27')],_0x70ce('0x16'),this[_0x70ce('0x27')],'isResolved',(_0x4a9926,_0x2f4552)=>_0x4a9926&&_0x2f4552),_0x324808['on'](_0x70ce('0x23'),()=>{this[_0x70ce('0x22')](_0x70ce('0x6'),this['_model']['id']);}),_0x324808;}[_0x70ce('0x1f')](_0xa77eaf){if(_0xa77eaf['length']<0x96)return _0xa77eaf;const _0x3a6aca=_0xa77eaf['lastIndexOf']('\x20',0x93);return _0xa77eaf['substring'](0x0,_0x3a6aca>-0x1?_0x3a6aca:0x93)+_0x70ce('0x29');}['_attachContextActions'](){const _0x251fab=this['element']['querySelector'](_0x70ce('0x1e')),_0x3dbe76=_0x251fab[_0x70ce('0x24')]('.ck-context__value');this['listenTo'](_0x251fab,_0x70ce('0x1d'),()=>{_0x3dbe76[_0x70ce('0x1a')]<_0x3dbe76[_0x70ce('0x14')]&&_0x251fab[_0x70ce('0x18')][_0x70ce('0x26')](_0x70ce('0xc'));}),this[_0x70ce('0x28')](_0x251fab,'mouseleave',()=>{_0x251fab[_0x70ce('0x18')][_0x70ce('0x5')]('overlay');});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1ac9=['extendTemplate','showButtons','editorReady','ck-thread__user','set','isFocused','userView','value','ck-comment__input-container--active','then','editorDestroyed','showInput','ck-comment__input-container','destroy','createEditor','div','commentInputView','delegate','editor'];(function(_0x3a1b28,_0x1ac901){var _0x1f1410=function(_0x463e8d){while(--_0x463e8d){_0x3a1b28['push'](_0x3a1b28['shift']());}};_0x1f1410(++_0x1ac901);}(_0x1ac9,0x158));var _0x1f14=function(_0x3a1b28,_0x1ac901){_0x3a1b28=_0x3a1b28-0x0;var _0x1f1410=_0x1ac9[_0x3a1b28];return _0x1f1410;};import{View as _0x56f4af}from'ckeditor5/src/ui';import _0x7afbef from'./commentinputview';import{UserView as _0x37cad8}from'ckeditor5-collaboration/src/collaboration-core';export default class At extends _0x56f4af{constructor(_0x49b15f,_0x58c5b7,_0x46c4e0){super(_0x49b15f),this[_0x1f14('0xe')]=new _0x7afbef(_0x49b15f,_0x46c4e0),this[_0x1f14('0xe')]['bind'](_0x1f14('0x12'))['to'](this[_0x1f14('0xe')]['focusTracker'],_0x1f14('0x3'),this[_0x1f14('0xe')],_0x1f14('0x5'),(_0xd2f48a,_0x390593)=>_0xd2f48a||!!_0x390593),this[_0x1f14('0x2')](_0x1f14('0x9'),!0x1),this['on']('change:showInput',()=>{this['showInput']&&!this[_0x1f14('0xe')][_0x1f14('0x10')]&&this[_0x1f14('0xe')][_0x1f14('0xc')]();}),this[_0x1f14('0xe')][_0x1f14('0xf')](_0x1f14('0x0'))['to'](this),this[_0x1f14('0xe')][_0x1f14('0xf')](_0x1f14('0x8'))['to'](this),this[_0x1f14('0x4')]=new _0x37cad8(_0x49b15f,_0x58c5b7),this['userView']['extendTemplate']({'attributes':{'class':_0x1f14('0x1')}}),this[_0x1f14('0xe')][_0x1f14('0x11')]({'attributes':{'class':'ck-thread__input'}}),this['setTemplate']({'tag':_0x1f14('0xd'),'attributes':{'class':[_0x1f14('0xa'),this['bindTemplate']['if']('showInput',_0x1f14('0x6'))]},'children':[this['userView'],this['commentInputView']]});}['destroy'](){return this['commentInputView'][_0x1f14('0xb')]()[_0x1f14('0x7')](()=>super['destroy']());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x567f=['Write\x20a\x20comment...','then','has','placeholder','actionIndicator','ck-thread','_model','get','element','commentsListView','commentThreadHeaderView','high','ck-thread__container','Delete\x20comment\x20thread?','isEnabled','change:archivedAt','label','ck-thread--active','remove','commentThreadChildren','addMany','setTemplate','_createResolveButton','ck-thread--','fire','containerElement','change:isActive','removeButton','tooltip','cancelConfirm','stop','.ck-thread__container','isActive','showConfirm','div','icon','render','bind','length','listenTo','_boundFirstCommentView','actionBar','isSystemComment','_bindFirstCommentView','execute','getTemplate','add','commentViews','isUnlinked','commentThreadInputView','resolveCommentThread','ck-thread--remove-confirmation','bindTemplate','locale','isConfirm','_cancelAllConfirms','ck-comment--resolve','change:isReadOnly','ck-reset_all-excluded','resolveButton','ck-thread--unlinked','Resolve'];(function(_0x1166df,_0x567f8a){const _0x4f0d84=function(_0x152315){while(--_0x152315){_0x1166df['push'](_0x1166df['shift']());}};_0x4f0d84(++_0x567f8a);}(_0x567f,0xad));const _0x4f0d=function(_0x1166df,_0x567f8a){_0x1166df=_0x1166df-0x0;let _0x4f0d84=_0x567f[_0x1166df];return _0x4f0d84;};import{ConfirmMixin as _0x27ef85}from'ckeditor5-collaboration/src/collaboration-core';import{ButtonView as _0x13ccae}from'ckeditor5/src/ui';import{icons as _0x182c2f}from'ckeditor5/src/core';import _0x46fe0d from'./basecommentthreadview';import{getTranslation as _0x49e2a5}from'../../../utils/common-translations';export default class ft extends _0x27ef85(_0x46fe0d){constructor(_0x327108,_0x4b19fb,_0x43eb65,_0x548654){super(_0x327108,_0x4b19fb,_0x43eb65,_0x548654),this[_0x4f0d('0x20')]=this['createCollection'](),this[_0x4f0d('0x20')][_0x4f0d('0x21')]([this[_0x4f0d('0x16')],this[_0x4f0d('0x0')]]),this['_model']['archivedAt']&&this[_0x4f0d('0x20')][_0x4f0d('0x3b')](this[_0x4f0d('0x17')],0x0),this[_0x4f0d('0x13')]['on'](_0x4f0d('0x1c'),(_0x3166f1,_0x5579c9,_0x18ca54)=>{_0x18ca54?this['commentThreadChildren'][_0x4f0d('0xf')](this[_0x4f0d('0x17')])||this[_0x4f0d('0x20')][_0x4f0d('0x3b')](this[_0x4f0d('0x17')],0x0):this[_0x4f0d('0x20')][_0x4f0d('0x1f')](this[_0x4f0d('0x17')]);}),this['set']('actionIndicator',null),this[_0x4f0d('0x26')]=null,this['_boundFirstCommentView']=null,this[_0x4f0d('0x4')]=_0x327108,this[_0x4f0d('0xa')]=this[_0x4f0d('0x23')](),this[_0x4f0d('0x22')](this[_0x4f0d('0x3a')]()),this['on'](_0x4f0d('0x27'),(_0x3b3c75,_0xd871ae,_0x3a2f51)=>{_0x3a2f51||this[_0x4f0d('0x6')]();}),this[_0x4f0d('0x34')](this['_model'],_0x4f0d('0x8'),(_0x4fd6c6,_0x34ff86,_0x16814e)=>{_0x16814e&&this['_cancelAllConfirms']();}),this[_0x4f0d('0x33')]>0x0&&this[_0x4f0d('0x38')](),this[_0x4f0d('0x34')](this[_0x4f0d('0x16')][_0x4f0d('0x3c')],_0x4f0d('0x3b'),()=>{this[_0x4f0d('0x38')]();});}['getTemplate'](){const _0x390017=this[_0x4f0d('0x3')];return{'tag':_0x4f0d('0x2f'),'attributes':{'class':[_0x4f0d('0x12'),_0x4f0d('0x9'),_0x390017['if'](_0x4f0d('0x2d'),_0x4f0d('0x1e')),_0x390017['if'](_0x4f0d('0x3d'),_0x4f0d('0xb')),_0x390017['if'](_0x4f0d('0x5'),_0x4f0d('0x2')),_0x390017['to'](_0x4f0d('0x11'),_0x5a1bee=>_0x5a1bee?_0x4f0d('0x24')+_0x5a1bee:'')],'data-thread-id':this[_0x4f0d('0x13')]['id'],'tabindex':-0x1},'children':[{'tag':_0x4f0d('0x2f'),'attributes':{'class':_0x4f0d('0x19')},'children':this['commentThreadChildren']}]};}['render'](){super[_0x4f0d('0x31')](),this[_0x4f0d('0x26')]=this[_0x4f0d('0x15')]['querySelector'](_0x4f0d('0x2c'));}[_0x4f0d('0x6')](){this[_0x4f0d('0x2a')]();for(const _0x2e63a8 of this[_0x4f0d('0x16')][_0x4f0d('0x3c')])_0x2e63a8[_0x4f0d('0x2a')]();}[_0x4f0d('0x38')](){const {locale:_0x36f4b9}=this,_0x511b8b=this[_0x4f0d('0x16')][_0x4f0d('0x3c')][_0x4f0d('0x14')](0x0);_0x511b8b===this[_0x4f0d('0x35')]||_0x511b8b[_0x4f0d('0x37')]||(this[_0x4f0d('0x35')]=_0x511b8b,this['unbind'](_0x4f0d('0x11')),this[_0x4f0d('0x32')](_0x4f0d('0x11'))['to'](_0x511b8b,'actionIndicator',_0x2dd415=>_0x4f0d('0x1f')===_0x2dd415?_0x4f0d('0x1f'):null),_0x511b8b[_0x4f0d('0x10')]=_0x49e2a5(_0x36f4b9,_0x4f0d('0xd')),_0x511b8b[_0x4f0d('0x28')]['on']('execute',_0x33e387=>{_0x33e387[_0x4f0d('0x2b')](),this[_0x4f0d('0x2e')](_0x49e2a5(_0x36f4b9,_0x4f0d('0x1a')),this[_0x4f0d('0x26')])[_0x4f0d('0xe')](()=>{this[_0x4f0d('0x25')]('removeCommentThread');});},{'priority':_0x4f0d('0x18')}),_0x511b8b[_0x4f0d('0x36')][_0x4f0d('0x3b')](this[_0x4f0d('0xa')],0x0));}[_0x4f0d('0x23')](){const _0x5309fe=new _0x13ccae(this[_0x4f0d('0x4')]);return _0x5309fe[_0x4f0d('0x1d')]=_0x49e2a5(this[_0x4f0d('0x4')],_0x4f0d('0xc')),_0x5309fe[_0x4f0d('0x29')]=_0x49e2a5(this[_0x4f0d('0x4')],_0x4f0d('0xc')),_0x5309fe[_0x4f0d('0x30')]=_0x182c2f['check'],_0x5309fe['extendTemplate']({'attributes':{'class':_0x4f0d('0x7')}}),_0x5309fe[_0x4f0d('0x32')](_0x4f0d('0x1b'))['to'](this[_0x4f0d('0x13')],'isReadOnly',_0x1e7402=>!_0x1e7402),_0x5309fe[_0x4f0d('0x32')]('isVisible')['to'](this[_0x4f0d('0x13')],'isResolvable',this[_0x4f0d('0x13')],'isResolved',(_0x587e34,_0x419382)=>_0x587e34&&!_0x419382),_0x5309fe['on'](_0x4f0d('0x39'),()=>{this['fire'](_0x4f0d('0x1'),this[_0x4f0d('0x13')]['id']);}),_0x5309fe;}}
|