@ckeditor/ckeditor5-comments 0.0.0-nightly-20230822.0 → 0.0.0-nightly-20230823.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 _0x52a0=['config','execute','define','basic','high','commands','forEach','editor','importWord.commentsStyles','get','dataInsert','addCommentThread','listenTo','plugins','afterInit','_handleImportedData'];(function(_0x325966,_0x52a046){const _0x256846=function(_0x2d8684){while(--_0x2d8684){_0x325966['push'](_0x325966['shift']());}};_0x256846(++_0x52a046);}(_0x52a0,0x137));const _0x2568=function(_0x325966,_0x52a046){_0x325966=_0x325966-0x0;let _0x256846=_0x52a0[_0x325966];return _0x256846;};import{Plugin as _0x434008}from'ckeditor5/src/core';import{priorities as _0x4c819d}from'ckeditor5/src/utils';import{Users as _0x66e63}from'ckeditor5-collaboration/src/collaboration-core';import _0x451404 from'../commentsrepository';export default class Y extends _0x434008{constructor(_0x53964d){super(_0x53964d),this[_0x2568('0x0')]['config'][_0x2568('0xb')](_0x2568('0x1'),_0x2568('0xc'));}[_0x2568('0x7')](){const _0x17cba6=this[_0x2568('0x0')],_0x42e301=_0x17cba6[_0x2568('0xe')][_0x2568('0x2')]('importWord'),_0x2f500b=_0x17cba6[_0x2568('0x6')][_0x2568('0x2')](_0x66e63);_0x42e301&&(_0x42e301['on'](_0x2568('0xa'),(_0x1c9da2,[,_0x3af3fb])=>{_0x3af3fb['collaboration_features']={'comments':!0x0,'user_id':_0x2f500b['me']['id'],'comments_styles':this[_0x2568('0x0')][_0x2568('0x9')][_0x2568('0x2')](_0x2568('0x1'))};},{'priority':_0x4c819d[_0x2568('0xd')]+0xa}),this[_0x2568('0x5')](_0x42e301,_0x2568('0x3'),this[_0x2568('0x8')]));}[_0x2568('0x8')](_0x26696b,_0x4891fe){const {comment_threads:_0x8c18a7}=_0x4891fe;_0x8c18a7&&_0x8c18a7[_0x2568('0xf')](({thread_id:_0x2aebd4,comments:_0x297cdb,is_resolved:_0x4ad276})=>{const _0x1f587e=new Date(),_0x246729=_0x297cdb['map'](({author:_0x378b75,content:_0xb64a62,created_at:_0x3b4971})=>({'content':_0xb64a62,'authorId':this[_0x2568('0x0')][_0x2568('0x6')]['get'](_0x66e63)['me']['id'],'createdAt':_0x1f587e,'attributes':{'@external':{'authorName':_0x378b75,'createdAt':_0x3b4971?new Date(_0x3b4971):new Date(),'source':'importWord'}}})),_0x24811c=this[_0x2568('0x0')]['config'][_0x2568('0x2')]('collaboration.channelId');this['editor'][_0x2568('0x6')][_0x2568('0x2')](_0x451404)[_0x2568('0x4')]({'channelId':_0x24811c,'threadId':_0x2aebd4,'comments':_0x246729,'resolvedAt':_0x4ad276?_0x1f587e:null});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5d3c=['childCount','setSelection','low','assign','config','editing','document','placeholder','plugins','get','set','change','getChild','initialData','destroy','initPlugins','createRoot','name','init','defaultPlugins','getRoot','focus','model','data','view','change:placeholder','ready','create','placeholderElement','_updatePlaceholder','then'];(function(_0x495b5d,_0x5d3cee){const _0x34b971=function(_0x1c2ea2){while(--_0x1c2ea2){_0x495b5d['push'](_0x495b5d['shift']());}};_0x34b971(++_0x5d3cee);}(_0x5d3c,0x198));const _0x34b9=function(_0x495b5d,_0x5d3cee){_0x495b5d=_0x495b5d-0x0;let _0x34b971=_0x5d3c[_0x495b5d];return _0x34b971;};import{Editor as _0x99220f,DataApiMixin as _0x566ebe}from'ckeditor5/src/core';import _0x25be1f from'./commenteditorui';import{ObservableMixin as _0x232f9a}from'ckeditor5/src/utils';import{enablePlaceholder as _0x113db5,disablePlaceholder as _0x5bf6fc}from'ckeditor5/src/engine';import{Clipboard as _0x51f819}from'ckeditor5/src/clipboard';import{Enter as _0x3f3934,ShiftEnter as _0x475ba7}from'ckeditor5/src/enter';import{SelectAll as _0x4901b6}from'ckeditor5/src/select-all';import{Typing as _0x1488b6}from'ckeditor5/src/typing';import{Undo as _0x15f10d}from'ckeditor5/src/undo';import{Paragraph as _0x4f8c77}from'ckeditor5/src/paragraph';const Kt=[_0x51f819,_0x3f3934,_0x475ba7,_0x4901b6,_0x1488b6,_0x15f10d,_0x4f8c77];export default class Lt extends _0x232f9a(_0x566ebe(_0x99220f)){constructor(_0x5142b4={}){(_0x5142b4=Object[_0x34b9('0x1d')]({},_0x5142b4))[_0x34b9('0x3')]||(_0x5142b4['plugins']=Lt[_0x34b9('0xe')]),super(_0x5142b4),this['ui']=new _0x25be1f(this),this[_0x34b9('0x5')]('placeholder',''),this['model']['document']['on'](_0x34b9('0x6'),()=>this[_0x34b9('0x18')](),{'priority':_0x34b9('0x1c')}),this['on'](_0x34b9('0x14'),()=>this[_0x34b9('0x18')]()),this['model'][_0x34b9('0x1')][_0x34b9('0xb')]();}[_0x34b9('0x16')](){const _0x2190f4=this[_0x34b9('0x1e')][_0x34b9('0x4')](_0x34b9('0x8'))||'';return this[_0x34b9('0xa')]()[_0x34b9('0x19')](()=>this['ui']['init']())[_0x34b9('0x19')](()=>this[_0x34b9('0x12')][_0x34b9('0xd')](_0x2190f4))[_0x34b9('0x19')](()=>this['fire'](_0x34b9('0x15')));}[_0x34b9('0x9')](){return super['destroy']()[_0x34b9('0x19')](()=>this['ui'][_0x34b9('0x9')]());}['focus'](){this[_0x34b9('0x11')]['change'](_0x2dec8c=>{const _0x352cf5=this[_0x34b9('0x11')]['document'][_0x34b9('0xf')](),_0x3e4369=_0x352cf5&&_0x352cf5['getChild'](_0x352cf5['childCount']-0x1);_0x2dec8c[_0x34b9('0x1b')](_0x3e4369,'end'),this['editing'][_0x34b9('0x13')][_0x34b9('0x10')]();});}[_0x34b9('0x18')](){const _0x2e3c9e=this[_0x34b9('0x0')][_0x34b9('0x13')],_0x479253=_0x2e3c9e[_0x34b9('0x1')][_0x34b9('0xf')](),_0x2f8586=_0x479253[_0x34b9('0x7')](0x0);_0x479253[_0x34b9('0x1a')]>0x1||!_0x2f8586||'p'!=_0x2f8586[_0x34b9('0xc')]?this['placeholderElement']&&this['placeholderElement'][_0x34b9('0x2')]&&(_0x5bf6fc(_0x2e3c9e,this[_0x34b9('0x17')]),this[_0x34b9('0x17')]=void 0x0):(this['placeholder']&&(_0x2f8586['placeholder']=this['placeholder']),_0x113db5({'view':_0x2e3c9e,'element':_0x2f8586,'keepOnFocus':!0x0}),this[_0x34b9('0x17')]=_0x2f8586);}}Lt[_0x34b9('0xe')]=Kt;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d9a=['editable','destroy','isFocused','render','bind','editing','locale','document','editor','getRoot','element','view','attachDomRoot','rootName','focusTracker','fire','ready'];(function(_0x37f9d8,_0x3d9a0c){const _0x46e5b0=function(_0x31dfc7){while(--_0x31dfc7){_0x37f9d8['push'](_0x37f9d8['shift']());}};_0x46e5b0(++_0x3d9a0c);}(_0x3d9a,0x14f));const _0x46e5=function(_0x37f9d8,_0x3d9a0c){_0x37f9d8=_0x37f9d8-0x0;let _0x46e5b0=_0x3d9a[_0x37f9d8];return _0x46e5b0;};import{EditorUI as _0x3ba300}from'ckeditor5/src/ui';import _0x337a7b from'./commenteditoruiview';export default class jt extends _0x3ba300{constructor(_0x2b95dc){super(_0x2b95dc),this[_0x46e5('0x10')]=new _0x337a7b(_0x2b95dc[_0x46e5('0xb')],_0x2b95dc['editing'][_0x46e5('0x10')]);}get[_0x46e5('0xf')](){return this['view'][_0x46e5('0xf')];}['init'](){const _0x870f97=this[_0x46e5('0xd')][_0x46e5('0xa')][_0x46e5('0x10')],_0x453100=this['view'][_0x46e5('0x5')],_0x3da8f0=_0x870f97[_0x46e5('0xc')][_0x46e5('0xe')]();_0x453100['name']=_0x3da8f0[_0x46e5('0x1')],this[_0x46e5('0x10')][_0x46e5('0x8')]();const _0x434c60=_0x453100[_0x46e5('0xf')];this['setEditableElement'](_0x453100['name'],_0x434c60),this['view'][_0x46e5('0x5')][_0x46e5('0x9')](_0x46e5('0x7'))['to'](this[_0x46e5('0x2')]),_0x870f97[_0x46e5('0x0')](_0x434c60),this[_0x46e5('0x3')](_0x46e5('0x4'));}['destroy'](){super['destroy'](),this[_0x46e5('0x10')][_0x46e5('0x6')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x251d=['Comment\x20editor','uiLanguageDirection','editable','add','text','comment','focus','main','setTemplate','div','_createVoiceLabel','_voiceLabelView','ck-editor__main','ck-editor__aria-label_','createCollection','ck-editor','extendTemplate','render','ck-reset','ck-comment__input'];(function(_0x4a5ee7,_0x251dbe){const _0x36228a=function(_0x3cd08e){while(--_0x3cd08e){_0x4a5ee7['push'](_0x4a5ee7['shift']());}};_0x36228a(++_0x251dbe);}(_0x251d,0x19c));const _0x3622=function(_0x4a5ee7,_0x251dbe){_0x4a5ee7=_0x4a5ee7-0x0;let _0x36228a=_0x251d[_0x4a5ee7];return _0x36228a;};import{InlineEditableUIView as _0x2328f3,EditorUIView as _0x1c8c5d,LabelView as _0x4f52bc}from'ckeditor5/src/ui';import{uid as _0x3fb84c}from'ckeditor5/src/utils';import{getTranslation as _0x4979f2}from'../../../utils/common-translations';export default class Nt extends _0x1c8c5d{constructor(_0x4cb8bb,_0x420704){super(_0x4cb8bb);const _0x5bad08=_0x3fb84c();this['main']=this[_0x3622('0x2')](),this[_0x3622('0xa')]=new _0x2328f3(_0x4cb8bb,_0x420704),this[_0x3622('0x13')]=this['_createVoiceLabel'](_0x5bad08,_0x4cb8bb),this[_0x3622('0x10')]({'tag':_0x3622('0x11'),'attributes':{'class':[_0x3622('0x6'),_0x3622('0x3'),'ck-rounded-corners',_0x3622('0x7')],'role':_0x3622('0xd'),'dir':_0x4cb8bb[_0x3622('0x9')],'lang':_0x4cb8bb['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x5bad08},'children':[this[_0x3622('0x13')],{'tag':'div','attributes':{'class':_0x3622('0x0'),'role':'presentation'},'children':this['main']}]});}[_0x3622('0x5')](){super[_0x3622('0x5')](),this[_0x3622('0xf')][_0x3622('0xb')](this['editable']);}[_0x3622('0xe')](){this[_0x3622('0xa')]['element'][_0x3622('0xe')]();}[_0x3622('0x12')](_0x45b77e,_0x21bcc3){const _0xf5448e=new _0x4f52bc();return _0xf5448e[_0x3622('0xc')]=_0x4979f2(_0x21bcc3,_0x3622('0x8')),_0xf5448e[_0x3622('0x4')]({'attributes':{'id':_0x3622('0x1')+_0x45b77e,'class':'ck-voice-label'}}),_0xf5448e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3d0f=['submit','addComment','getComment','removeComment','reopen','listenTo','update','updateComment','submitCommentThread','stopListening','destroy','view','isResolved','_isAttached','reopenCommentThread','resolve','model','remove'];(function(_0x2e4ebe,_0x3d0f40){var _0x4f9ac5=function(_0x515d79){while(--_0x515d79){_0x2e4ebe['push'](_0x2e4ebe['shift']());}};_0x4f9ac5(++_0x3d0f40);}(_0x3d0f,0x126));var _0x4f9a=function(_0x2e4ebe,_0x3d0f40){_0x2e4ebe=_0x2e4ebe-0x0;var _0x4f9ac5=_0x3d0f[_0x2e4ebe];return _0x4f9ac5;};import{ObservableMixin as _0x580527}from'ckeditor5/src/utils';export default class ct extends _0x580527(){constructor(_0x4108ed,_0x1e0ec1){super(),this[_0x4f9a('0xa')]=_0x4108ed,this[_0x4f9a('0xa')][_0x4f9a('0x7')]=!0x0,this[_0x4f9a('0x5')]=_0x1e0ec1,this[_0x4f9a('0x11')](_0x1e0ec1,_0x4f9a('0x2'),()=>this[_0x4f9a('0xc')]()),this['listenTo'](_0x1e0ec1,'removeCommentThread',()=>this[_0x4f9a('0xb')]()),this['listenTo'](_0x1e0ec1,'resolveCommentThread',()=>this[_0x4f9a('0x9')]()),this[_0x4f9a('0x11')](_0x1e0ec1,_0x4f9a('0x8'),()=>this[_0x4f9a('0x10')]()),this['listenTo'](_0x1e0ec1,'addComment',(_0x2c762b,_0x4127c6)=>this[_0x4f9a('0xd')](_0x4127c6)),this[_0x4f9a('0x11')](_0x1e0ec1,'updateComment',(_0x592700,_0x22ddc4,_0x454b1b)=>this[_0x4f9a('0x1')](_0x22ddc4,_0x454b1b)),this[_0x4f9a('0x11')](_0x1e0ec1,_0x4f9a('0xf'),(_0x49030f,_0x432bc6)=>this['removeComment'](_0x432bc6));}[_0x4f9a('0xc')](){this['model'][_0x4f9a('0xc')]();}[_0x4f9a('0xb')](){this['model'][_0x4f9a('0xb')]();}[_0x4f9a('0x9')](){this['model'][_0x4f9a('0x6')]||this['model'][_0x4f9a('0x9')]();}[_0x4f9a('0x10')](){this[_0x4f9a('0xa')]['isResolved']&&this['model'][_0x4f9a('0x10')]();}[_0x4f9a('0xd')](_0x3d8863){this['model'][_0x4f9a('0xd')]({'content':_0x3d8863,'authorId':this[_0x4f9a('0x5')]['_localUser']['id']});}[_0x4f9a('0x1')](_0x33c974,_0x5dfd45){this[_0x4f9a('0xa')][_0x4f9a('0xe')](_0x33c974)[_0x4f9a('0x0')]({'content':_0x5dfd45});}['removeComment'](_0x30cda9){this['model']['getComment'](_0x30cda9)[_0x4f9a('0xb')]();}[_0x4f9a('0x4')](){this[_0x4f9a('0x3')](),this['model'][_0x4f9a('0x7')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x21ac=['Write\x20a\x20comment...','editorDestroyed','removeComment','commentThreadInputView','addComment','isSubmitted','bind','Comment','Reply...','value','submitCommentThread','isActive','placeholder','disabledSubmit','submit','cancel','reopenCommentThread','commentThreadHeaderView','isResolvable','resolveCommentThread','isDirty','focus','locale','delegate','isResolved','removeCommentThread','_config','commentInputView','isReadOnly','updateComment','length','element','canComment','set','stop','fire','showInput','_localUser','commentsListView','assign','_model','editorReady','_createCommentThreadInputView','hasDirtyComment','destroy'];(function(_0x5dd963,_0x21ac9b){const _0x53060d=function(_0x5414f1){while(--_0x5414f1){_0x5dd963['push'](_0x5dd963['shift']());}};_0x53060d(++_0x21ac9b);}(_0x21ac,0x1ee));const _0x5306=function(_0x5dd963,_0x21ac9b){_0x5dd963=_0x5dd963-0x0;let _0x53060d=_0x21ac[_0x5dd963];return _0x53060d;};import{View as _0x5e3297}from'ckeditor5/src/ui';import _0x12778b from'./commentthreadinputview';import _0x171882 from'./commentslistview';import _0x38bda7 from'./commentthreadheaderview';import{getTranslation as _0x54f44d}from'../../../utils/common-translations';export default class Tt extends _0x5e3297{constructor(_0x25cd27,_0x3ac5b4,_0x49d8ac,_0x19beff){super(_0x25cd27),this[_0x5306('0x22')](_0x5306('0xc'),!0x1),this[_0x5306('0x22')](_0x5306('0x15'),!0x1),this[_0x5306('0x29')]=_0x3ac5b4,this[_0x5306('0x26')]=_0x49d8ac,this[_0x5306('0x1b')]=_0x19beff,this[_0x5306('0x12')]=new _0x38bda7(_0x25cd27,_0x3ac5b4),this[_0x5306('0x12')][_0x5306('0x18')](_0x5306('0x11'))['to'](this),this['commentsListView']=new _0x171882(_0x25cd27,_0x3ac5b4,Object[_0x5306('0x28')]({'CommentView':this[_0x5306('0x1b')]['CommentView']},_0x19beff)),this[_0x5306('0x27')][_0x5306('0x18')](_0x5306('0x3'))['to'](this),this['commentsListView'][_0x5306('0x18')](_0x5306('0x1e'))['to'](this),this[_0x5306('0x27')][_0x5306('0x18')](_0x5306('0x14'))['to'](this),this[_0x5306('0x27')]['delegate'](_0x5306('0x2a'))['to'](this),this['commentsListView'][_0x5306('0x18')](_0x5306('0x2'))['to'](this),this[_0x5306('0x27')][_0x5306('0x7')](_0x5306('0xc'))['to'](this),this[_0x5306('0x22')](_0x5306('0x1f'),this['commentsListView'][_0x5306('0x1f')]),this[_0x5306('0x7')]('length')['to'](this[_0x5306('0x27')],_0x5306('0x1f')),this[_0x5306('0x4')]=this[_0x5306('0x2b')](),this[_0x5306('0x4')]['delegate'](_0x5306('0x2a'))['to'](this),this[_0x5306('0x4')][_0x5306('0x18')](_0x5306('0x2'))['to'](this),this['on'](_0x5306('0x3'),()=>this[_0x5306('0x16')]()),this[_0x5306('0x7')](_0x5306('0x15'))['to'](this['commentsListView'],_0x5306('0x2c'),this[_0x5306('0x4')][_0x5306('0x1c')],'value',(_0x319013,_0x33c72d)=>_0x319013||!!_0x33c72d);}[_0x5306('0x16')](){this[_0x5306('0x20')][_0x5306('0x16')]();}[_0x5306('0x0')](){this[_0x5306('0x15')]=!0x1,this[_0x5306('0x27')][_0x5306('0x0')](),this[_0x5306('0x4')][_0x5306('0x0')](),super[_0x5306('0x0')]();}[_0x5306('0x2b')](){const _0x4859b4=new _0x12778b(this['locale'],this[_0x5306('0x26')],this[_0x5306('0x1b')]['editorConfig']),_0x128c8c=_0x4859b4[_0x5306('0x1c')];return _0x4859b4[_0x5306('0x7')](_0x5306('0x25'))['to'](this,_0x5306('0xc'),this[_0x5306('0x29')],'isReadOnly',this[_0x5306('0x29')],_0x5306('0x21'),this['_model'],_0x5306('0x19'),_0x128c8c,_0x5306('0xa'),(_0x2b933c,_0x4bcc27,_0x1ede73,_0x30420e,_0x8a4d2e)=>!!_0x8a4d2e||_0x30420e&&_0x1ede73&&!_0x4bcc27||_0x2b933c&&_0x1ede73&&!_0x4bcc27),_0x128c8c['bind'](_0x5306('0xd'))['to'](this,_0x5306('0x1f'),this[_0x5306('0x29')],_0x5306('0x13'),this['_model'],_0x5306('0x19'),(_0x4f7ec7,_0x524595,_0xafd1dc)=>{let _0x48702d;return _0x48702d=_0xafd1dc&&_0x524595?'Reply\x20to\x20reopen\x20discussion...':_0x4f7ec7?_0x5306('0x9'):_0x5306('0x1'),_0x54f44d(this[_0x5306('0x17')],_0x48702d);}),_0x128c8c['bind']('submitLabel')['to'](this,_0x5306('0x1f'),_0xd046f5=>_0x54f44d(this[_0x5306('0x17')],_0xd046f5?'Reply':_0x5306('0x8'))),_0x128c8c['on'](_0x5306('0xf'),(_0x27cf67,_0x353fda)=>{this[_0x5306('0x24')](_0x5306('0x5'),_0x353fda),this[_0x5306('0x29')][_0x5306('0x19')]&&this[_0x5306('0x29')][_0x5306('0x13')]&&this['fire'](_0x5306('0x11'),this[_0x5306('0x29')]['id']),this[_0x5306('0x29')][_0x5306('0x6')]||this['fire'](_0x5306('0xb'));}),_0x128c8c['on'](_0x5306('0x10'),()=>{this[_0x5306('0x16')]();}),_0x128c8c[_0x5306('0x7')](_0x5306('0xe'))['to'](this['_model'],_0x5306('0x1d')),_0x128c8c['on'](_0x5306('0x10'),_0x2793cb=>{0x0==this['length']&&(this[_0x5306('0x24')]('removeCommentThread'),_0x2793cb[_0x5306('0x23')]());}),this['on']('change:isActive',(_0x5a2b37,_0x286184,_0x162143)=>{_0x162143||this[_0x5306('0x1f')]||_0x128c8c[_0x5306('0xa')]||this['fire'](_0x5306('0x1a'));}),_0x4859b4;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x476e=['cancel','isSystemComment','updateComment','initialData','editorReady','disabledSubmit','isEditMode','Save','createCollection','_createCommentInputView','createEditor','switchToDisplayMode','submitLabel','destroy','collapse','editorDestroyed','maxCommentCharsWhenCollapsed','delegate','remove','content','get','set','bind','submit','_config','visibleView','element','_model','focus','once','add','_createCommentContentView','isCollapsed','isReadOnly','locale','editorConfig'];(function(_0x4d86d6,_0x476e3b){const _0x3f8448=function(_0x130e3a){while(--_0x130e3a){_0x4d86d6['push'](_0x4d86d6['shift']());}};_0x3f8448(++_0x476e3b);}(_0x476e,0x78));const _0x3f84=function(_0x4d86d6,_0x476e3b){_0x4d86d6=_0x4d86d6-0x0;let _0x3f8448=_0x476e[_0x4d86d6];return _0x3f8448;};import{View as _0x49e3cd}from'ckeditor5/src/ui';import{trimHtml as _0x344e3f}from'ckeditor5-collaboration/src/collaboration-core';import _0x22f108 from'./commentcontentview';import _0x15ec14 from'./commentinputview';import{getTranslation as _0x1e727e}from'../../../utils/common-translations';export default class Yt extends _0x49e3cd{constructor(_0x19cc27,_0x59f2a3,_0x544cf3){super(_0x19cc27),this[_0x3f84('0xf')]=_0x59f2a3,this[_0x3f84('0xc')]=_0x544cf3,this[_0x3f84('0x19')]=!!this[_0x3f84('0xc')][_0x3f84('0x19')],this[_0x3f84('0x9')]('isEditMode',!0x1),this[_0x3f84('0x9')](_0x3f84('0x14'),!0x0),this[_0x3f84('0xd')]=this[_0x3f84('0x20')](),this[_0x3f84('0xd')][_0x3f84('0x12')](this['_createCommentContentView']());}['expand'](){this['isCollapsed']=!0x1;}[_0x3f84('0x2')](){this['isEditMode']||(this[_0x3f84('0x14')]=!0x0);}[_0x3f84('0x10')](){this[_0x3f84('0xe')][_0x3f84('0x10')]();}async[_0x3f84('0x1')](){await this['visibleView'][_0x3f84('0x8')](0x0)['destroy'](),super['destroy']();}['switchToEditMode'](){this[_0x3f84('0x1e')]||(this['isEditMode']=!0x0,this[_0x3f84('0xd')][_0x3f84('0x6')](0x0)[_0x3f84('0x1')](),this['visibleView']['add'](this[_0x3f84('0x21')]()));}[_0x3f84('0x23')](){this[_0x3f84('0x1e')]&&(this[_0x3f84('0x1e')]=!0x1,this['visibleView'][_0x3f84('0x6')](0x0)[_0x3f84('0x1')](),this[_0x3f84('0xd')][_0x3f84('0x12')](this[_0x3f84('0x13')]()));}[_0x3f84('0x13')](){const _0x2e2e88=new _0x22f108(this[_0x3f84('0x16')]);return _0x2e2e88['bind']('content')['to'](this[_0x3f84('0xf')],_0x3f84('0x7'),this,_0x3f84('0x14'),(_0x4be255,_0x58e9b7)=>_0x58e9b7?_0x344e3f(_0x4be255,{'limit':this[_0x3f84('0xc')][_0x3f84('0x4')]}):_0x4be255),_0x2e2e88;}[_0x3f84('0x21')](){this['_config'][_0x3f84('0x17')]||(this[_0x3f84('0xc')][_0x3f84('0x17')]={}),this['_config']['editorConfig'][_0x3f84('0x1b')]=this[_0x3f84('0xf')]['content'];const _0xc71d2d=new _0x15ec14(this['locale'],this[_0x3f84('0xc')][_0x3f84('0x17')]);return _0xc71d2d['value']=this[_0x3f84('0xf')][_0x3f84('0x7')],_0xc71d2d[_0x3f84('0xa')](_0x3f84('0x1d'))['to'](this[_0x3f84('0xf')],_0x3f84('0x15')),_0xc71d2d[_0x3f84('0x0')]=_0x1e727e(this[_0x3f84('0x16')],_0x3f84('0x1f')),_0xc71d2d['on'](_0x3f84('0xb'),(_0x2d9323,_0x432650)=>{this['fire'](_0x3f84('0x1a'),this[_0x3f84('0xf')]['id'],_0x432650),this[_0x3f84('0x23')](),this[_0x3f84('0x10')]();}),_0xc71d2d['on'](_0x3f84('0x18'),()=>{this[_0x3f84('0x23')](),this['focus']();}),_0xc71d2d[_0x3f84('0x11')](_0x3f84('0x1c'),()=>{_0xc71d2d[_0x3f84('0x10')]();}),_0xc71d2d[_0x3f84('0x22')](),_0xc71d2d[_0x3f84('0x5')](_0x3f84('0x1c'))['to'](this),_0xc71d2d['delegate'](_0x3f84('0x3'))['to'](this),_0xc71d2d;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x56f8=['setTemplate','ck-thread__comment-count'];(function(_0x27f5f1,_0x56f825){const _0xba64c9=function(_0x2da881){while(--_0x2da881){_0x27f5f1['push'](_0x27f5f1['shift']());}};_0xba64c9(++_0x56f825);}(_0x56f8,0x10c));const _0xba64=function(_0x27f5f1,_0x56f825){_0x27f5f1=_0x27f5f1-0x0;let _0xba64c9=_0x56f8[_0x27f5f1];return _0xba64c9;};import{View as _0x132430}from'ckeditor5/src/ui';import{getTranslation as _0x36f12d}from'../../../utils/common-translations';export default class Zt extends _0x132430{constructor(_0x8a8f9d){super(_0x8a8f9d);const _0x1d8914=this['bindTemplate'];this['set']('count',void 0x0),this[_0xba64('0x0')]({'tag':'li','attributes':{'class':_0xba64('0x1')},'children':[{'text':_0x1d8914['to']('count',_0x32f67c=>_0x36f12d(_0x8a8f9d,'NUMBER_OF_COMMENTS',_0x32f67c))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2301=['ck-annotation__content','innerHTML','div','content','element','setTemplate','render','change:content','ck-comment__content','set'];(function(_0x3f0e38,_0x230134){var _0x2e02b1=function(_0x3e6e33){while(--_0x3e6e33){_0x3f0e38['push'](_0x3f0e38['shift']());}};_0x2e02b1(++_0x230134);}(_0x2301,0x16d));var _0x2e02=function(_0x3f0e38,_0x230134){_0x3f0e38=_0x3f0e38-0x0;var _0x2e02b1=_0x2301[_0x3f0e38];return _0x2e02b1;};import{View as _0x7feaea}from'ckeditor5/src/ui';export default class Ut extends _0x7feaea{constructor(_0x4d95e6){super(_0x4d95e6),this[_0x2e02('0x4')](_0x2e02('0x8'),''),this[_0x2e02('0x0')]({'tag':_0x2e02('0x7'),'attributes':{'class':[_0x2e02('0x3'),_0x2e02('0x5')]}});}['render'](){super[_0x2e02('0x1')](),this['on'](_0x2e02('0x2'),(_0x19f3a7,_0x37fed6,_0x1deb3d)=>{this[_0x2e02('0x9')][_0x2e02('0x6')]=_0x1deb3d;}),this[_0x2e02('0x9')][_0x2e02('0x6')]=this[_0x2e02('0x8')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4151=['forEach','submit','fire','editor','createEditor','length','_isDestroyed','ck-comment__input-wrapper','render','ck-comment__input-actions','ck-comment__input-actions--cancel','destroy','value','set','add','listenTo','_initializeFocusCycling','shift\x20+\x20tab','cancel','submitButtonView','execute','keystrokes','view','low','Reply','submitLabel','element','_createSubmitButton','ck-comment__input-actions--submit','stop','Esc','then','editorDestroyed','firstChild','isEnabled','withText','document','tab','showButtons','label','setData','getData','extendTemplate','div','initialData','create','bindTemplate','placeholder','_editorConfig','setTemplate','ck-comment__input-actions--active','focusNext','insertBefore','cancelButtonView','focus','focusTracker','bind','trim'];(function(_0x3da0cd,_0x41515f){const _0x50e2df=function(_0x4aa009){while(--_0x4aa009){_0x3da0cd['push'](_0x3da0cd['shift']());}};_0x50e2df(++_0x41515f);}(_0x4151,0x167));const _0x50e2=function(_0x3da0cd,_0x41515f){_0x3da0cd=_0x3da0cd-0x0;let _0x50e2df=_0x4151[_0x3da0cd];return _0x50e2df;};import{View as _0x12bb01,ViewCollection as _0x4dd699,FocusCycler as _0x2dad2b,ButtonView as _0x22d182}from'ckeditor5/src/ui';import{FocusTracker as _0x2db4d7,KeystrokeHandler as _0x47c1ae}from'ckeditor5/src/utils';import _0x4c8be3 from'../commenteditor/commenteditor';import{getTranslation as _0x1b8f48}from'../../../utils/common-translations';export default class Xt extends _0x12bb01{constructor(_0x4f951d,_0x3ec0e6={}){super(_0x4f951d),this[_0x50e2('0x32')]=null,this[_0x50e2('0x25')]=_0x3ec0e6,this[_0x50e2('0xa')]=new _0x47c1ae(),this[_0x50e2('0x2c')]=new _0x2db4d7(),this[_0x50e2('0x2')](_0x50e2('0x1'),_0x3ec0e6[_0x50e2('0x21')]||''),this[_0x50e2('0x2')]('disabledSubmit',!0x1),this[_0x50e2('0x2')](_0x50e2('0x1b'),!0x0),this[_0x50e2('0x2')](_0x50e2('0x24'),_0x1b8f48(_0x4f951d,'Reply...')),this[_0x50e2('0x2')]('submitLabel',_0x1b8f48(_0x4f951d,_0x50e2('0xd'))),this[_0x50e2('0x8')]=this[_0x50e2('0x10')](),this['cancelButtonView']=this['_createCancelButton'](),this[_0x50e2('0x26')]({'tag':'div','attributes':{'class':[_0x50e2('0x36')]},'children':[{'tag':_0x50e2('0x20'),'attributes':{'class':[_0x50e2('0x38'),this[_0x50e2('0x23')]['if']('showButtons',_0x50e2('0x27'))]},'children':[this[_0x50e2('0x8')],this[_0x50e2('0x2a')]]}]}),this[_0x50e2('0xa')]['set'](_0x50e2('0x13'),(_0x1cee89,_0x49649b)=>{this[_0x50e2('0x2a')][_0x50e2('0x31')]('execute'),_0x49649b();}),this['on'](_0x50e2('0x30'),(_0x66b97f,_0x3dbde1)=>{_0x3dbde1[_0x50e2('0x34')]>0xfde8?(alert(_0x1b8f48(_0x4f951d,'TOO_LONG_COMMENT_ALERT',[_0x3dbde1['length'],0xfde8])),_0x66b97f[_0x50e2('0x12')]()):this[_0x50e2('0x32')]['setData']('');},{'priority':'high'});}[_0x50e2('0x37')](){super[_0x50e2('0x37')](),this[_0x50e2('0xa')][_0x50e2('0x4')](this[_0x50e2('0xf')]),this['focusTracker'][_0x50e2('0x3')](this[_0x50e2('0xf')]);}[_0x50e2('0x33')](){return this[_0x50e2('0x32')]||(this[_0x50e2('0x32')]=new _0x4c8be3(this[_0x50e2('0x25')]),this['_editorCreationPromise']=this[_0x50e2('0x32')][_0x50e2('0x22')]()[_0x50e2('0x14')](()=>{if(this[_0x50e2('0x35')])return;const _0x53a3f6=this['editor'];this[_0x50e2('0xf')][_0x50e2('0x29')](_0x53a3f6['ui'][_0x50e2('0xf')],this[_0x50e2('0xf')][_0x50e2('0x16')]),_0x53a3f6['model'][_0x50e2('0x19')]['on']('change',()=>this[_0x50e2('0x1')]=_0x53a3f6[_0x50e2('0x1e')]()),_0x53a3f6[_0x50e2('0x2d')](_0x50e2('0x24'))['to'](this),this[_0x50e2('0x5')](this[_0x50e2('0x32')]),this[_0x50e2('0x31')]('editorReady',this[_0x50e2('0x32')]);})),this['_editorCreationPromise'];}[_0x50e2('0x2b')](){this[_0x50e2('0x32')]&&this[_0x50e2('0x32')]['focus']();}async[_0x50e2('0x0')](){this[_0x50e2('0x35')]||(this['_isDestroyed']=!0x0,this['editor']&&(await this['_editorCreationPromise'],await this[_0x50e2('0x32')]['destroy'](),this['fire'](_0x50e2('0x15'),this[_0x50e2('0x32')])),await super[_0x50e2('0x0')]());}['_createSubmitButton'](){const {locale:_0x9e1b6a}=this,_0x2eacf2=new _0x22d182(_0x9e1b6a);return _0x2eacf2['extendTemplate']({'attributes':{'class':[_0x50e2('0x11')]}}),_0x2eacf2[_0x50e2('0x18')]=!0x0,_0x2eacf2[_0x50e2('0x2d')](_0x50e2('0x1c'))['to'](this,_0x50e2('0xe')),_0x2eacf2['on']('execute',()=>{this[_0x50e2('0x31')](_0x50e2('0x30'),this['value']);}),_0x2eacf2[_0x50e2('0x2d')](_0x50e2('0x17'))['to'](this,'value',this,'disabledSubmit',(_0x3c60e4,_0x39c197)=>!_0x39c197&&!!_0x3c60e4[_0x50e2('0x2e')]()),_0x2eacf2;}['_createCancelButton'](){const {locale:_0x1ff47c}=this,_0x418401=new _0x22d182(_0x1ff47c);return _0x418401[_0x50e2('0x1f')]({'attributes':{'class':[_0x50e2('0x39')]}}),_0x418401[_0x50e2('0x1c')]=_0x1b8f48(_0x1ff47c,'Cancel'),_0x418401[_0x50e2('0x18')]=!0x0,_0x418401['on'](_0x50e2('0x9'),()=>{this['editor'][_0x50e2('0x1d')](''),this[_0x50e2('0x31')](_0x50e2('0x7'));}),_0x418401;}[_0x50e2('0x5')](_0x36239e){const _0x308dfe=this[_0x50e2('0x2c')],_0x29a0da=new _0x4dd699();[_0x36239e['ui'][_0x50e2('0xb')],this[_0x50e2('0x8')],this[_0x50e2('0x2a')]][_0x50e2('0x2f')](_0x68ac35=>{_0x29a0da[_0x50e2('0x3')](_0x68ac35),_0x308dfe[_0x50e2('0x3')](_0x68ac35['element']);});const _0x1a5157=new _0x2dad2b({'focusables':_0x29a0da,'focusTracker':_0x308dfe});this[_0x50e2('0xa')][_0x50e2('0x2')](_0x50e2('0x1a'),(_0x4952cb,_0x7b36ec)=>{_0x1a5157[_0x50e2('0x28')](),_0x7b36ec();},{'priority':_0x50e2('0xc')}),this['keystrokes'][_0x50e2('0x2')](_0x50e2('0x6'),(_0x2d2958,_0x38f24e)=>{_0x1a5157['focusPrevious'](),_0x38f24e();},{'priority':_0x50e2('0xc')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x956d=['isEmpty','bindTemplate','ck-comments-archive__content','_focusCycler','setTemplate','arrowdown','length','listenTo','EMPTY_COMMENTS_ARCHIVE','ck-comments-archive__info','_focusables','arrowleft','stopPropagation','tab','ck-comments-archive','remove','focus','destroy','set','element','_keystrokes','arrowright','selectstart','render','high','_focusTracker'];(function(_0x2ee5eb,_0x956d2){const _0x49e7d8=function(_0x51a651){while(--_0x51a651){_0x2ee5eb['push'](_0x2ee5eb['shift']());}};_0x49e7d8(++_0x956d2);}(_0x956d,0x129));const _0x49e7=function(_0x2ee5eb,_0x956d2){_0x2ee5eb=_0x2ee5eb-0x0;let _0x49e7d8=_0x956d[_0x2ee5eb];return _0x49e7d8;};import{View as _0x176450,FocusCycler as _0x8e6b79}from'ckeditor5/src/ui';import{FocusTracker as _0x2c19bb,KeystrokeHandler as _0x572e4e}from'ckeditor5/src/utils';import{getTranslation as _0x4fb31d}from'../../../utils/common-translations';export default class K extends _0x176450{constructor(_0x376cfe,_0x230db6){super(_0x376cfe),this[_0x49e7('0x7')]('isEmpty',!_0x230db6[_0x49e7('0x15')]),this[_0x49e7('0xe')]=new _0x2c19bb(),this[_0x49e7('0x9')]=new _0x572e4e(),this[_0x49e7('0x19')]=_0x230db6,this[_0x49e7('0x12')]=new _0x8e6b79({'focusables':this['_focusables'],'focusTracker':this['_focusTracker'],'keystrokeHandler':this['_keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0x49e7('0x2')}}),this['listenTo'](_0x230db6,'add',()=>{this['isEmpty']=!0x1;}),this[_0x49e7('0x16')](_0x230db6,_0x49e7('0x4'),(_0x55502b,_0x37c02a)=>{_0x37c02a['isActive']&&this[_0x49e7('0x5')](),_0x230db6[_0x49e7('0x15')]||(this['isEmpty']=!0x0);});const _0x159841=this[_0x49e7('0x10')];this[_0x49e7('0x13')]({'tag':'div','attributes':{'dir':'auto','class':['ck',_0x49e7('0x3')],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':['ck-comments-archive__header\x20']},'children':[{'text':_0x4fb31d(_0x376cfe,'COMMENTS_ARCHIVE')}]},{'tag':'div','attributes':{'class':[_0x49e7('0x11')]},'children':[{'tag':'div','children':_0x230db6},{'tag':'p','attributes':{'class':[_0x49e7('0x18'),_0x159841['if'](_0x49e7('0xf'),'ck-hidden',_0xeadb16=>!_0xeadb16)]},'children':[{'text':_0x4fb31d(_0x376cfe,_0x49e7('0x17'))}]}]}]});}[_0x49e7('0xc')](){super[_0x49e7('0xc')](),this[_0x49e7('0x9')][_0x49e7('0x16')](this[_0x49e7('0x8')]);const _0x5a8069=_0xb48335=>_0xb48335[_0x49e7('0x1')]();this[_0x49e7('0x9')][_0x49e7('0x7')](_0x49e7('0xa'),_0x5a8069),this[_0x49e7('0x9')][_0x49e7('0x7')](_0x49e7('0x0'),_0x5a8069),this[_0x49e7('0x9')][_0x49e7('0x7')]('arrowup',_0x5a8069),this[_0x49e7('0x9')]['set'](_0x49e7('0x14'),_0x5a8069),this['listenTo'](this[_0x49e7('0x8')],_0x49e7('0xb'),(_0x9142d7,_0xcfebc3)=>{_0xcfebc3['stopPropagation']();},{'priority':_0x49e7('0xd')});}['destroy'](){super[_0x49e7('0x6')](),this[_0x49e7('0xe')][_0x49e7('0x6')](),this[_0x49e7('0x9')][_0x49e7('0x6')]();}[_0x49e7('0x5')](){this[_0x49e7('0x8')][_0x49e7('0x5')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e3f=['resolved','_shouldCollapse','isEditMode','setTemplate','delete','maxCommentsWhenCollapsed','ck-thread__comments','count','CommentView','focus','editorConfig','change:hasDirtyComment','resolvedCommentView','refreshVisibleViews','destroy','equal','delegate','_handleNewCommentModel','formatDateTime','resolvedAt','hasDirtyComment','add','_rearrangeCollapse','_findOptimalIndex','listenTo','render','_calculatePosition','removeComment','commentViews','visibleViews','_handleInfoComment','length','element','resolvedBy','weight','remove','locale','insert','isActive','_handleRemoveCommentModel','some','change:isResolved','_collapsedCommentsView','maxThreadTotalWeight','_updateHasDirtyComment','commentUpdated','Marked\x20as\x20resolved','collapse','authoredAt','comments','set','stopListening','updateComment','change:isActive','createCollection','get','from','editorReady','maxCommentCharsWhenCollapsed','_rearrangeExpand','_model','_config'];(function(_0x1e686a,_0x4e3f1f){const _0x4d47a0=function(_0x3b52c6){while(--_0x3b52c6){_0x1e686a['push'](_0x1e686a['shift']());}};_0x4d47a0(++_0x4e3f1f);}(_0x4e3f,0xe3));const _0x4d47=function(_0x1e686a,_0x4e3f1f){_0x1e686a=_0x1e686a-0x0;let _0x4d47a0=_0x4e3f[_0x1e686a];return _0x4d47a0;};import{View as _0x5b536e}from'ckeditor5/src/ui';import{diff as _0x264cb7,Collection as _0x5bbb2b}from'ckeditor5/src/utils';import{getTranslation as _0x54f57f}from'../../../utils/common-translations';import _0x4ca8aa from'./collapsedcommentsview';export default class wt extends _0x5b536e{constructor(_0x57a99a,_0x7fbc93,_0x46d561){super(_0x57a99a),this[_0x4d47('0x9')]('hasDirtyComment',!0x1),this[_0x4d47('0x9')]('length',_0x7fbc93[_0x4d47('0x8')][_0x4d47('0x34')]),this[_0x4d47('0x9')](_0x4d47('0x3b'),!0x1),this['_model']=_0x7fbc93,this[_0x4d47('0x14')]=_0x46d561,this[_0x4d47('0x31')]=this[_0x4d47('0xd')](),this[_0x4d47('0x32')]=this['createCollection'](),this['resolvedCommentView']=null,this[_0x4d47('0x1')]=new _0x4ca8aa(_0x57a99a),this['_collapsedCommentsView']['bind'](_0x4d47('0x1c'))['to'](this,'length',_0x3351ad=>_0x3351ad-this[_0x4d47('0x14')][_0x4d47('0x1a')]);for(const _0x2ed40d of _0x7fbc93[_0x4d47('0x8')])this[_0x4d47('0x26')](_0x2ed40d);this[_0x4d47('0x33')](),this[_0x4d47('0x2d')](_0x7fbc93[_0x4d47('0x8')],'add',(_0x1d1f40,_0x11622c)=>{const _0x1972d0=this[_0x4d47('0x2f')](_0x11622c);this['length']++,this['_handleNewCommentModel'](_0x11622c,_0x1972d0),this[_0x4d47('0x22')]();}),this[_0x4d47('0x2d')](_0x7fbc93[_0x4d47('0x8')],'remove',(_0x101a46,_0x5f534f)=>{this[_0x4d47('0x34')]--,this[_0x4d47('0x3c')](_0x5f534f),this[_0x4d47('0x22')]();}),this[_0x4d47('0x2d')](_0x7fbc93,_0x4d47('0x4'),()=>this[_0x4d47('0x22')]()),this[_0x4d47('0x2d')](_0x7fbc93,_0x4d47('0x0'),()=>this[_0x4d47('0x33')]()),this['on'](_0x4d47('0xc'),()=>this[_0x4d47('0x22')]()),this['on'](_0x4d47('0x20'),()=>this['refreshVisibleViews']()),this[_0x4d47('0x18')]({'tag':'ul','attributes':{'class':[_0x4d47('0x1b')]},'children':this[_0x4d47('0x32')]});}get[_0x4d47('0x16')](){return this[_0x4d47('0x13')][_0x4d47('0x37')]>this['_config'][_0x4d47('0x2')]&&!this[_0x4d47('0x3b')]&&!this[_0x4d47('0x29')];}[_0x4d47('0x2e')](){super[_0x4d47('0x2e')](),this[_0x4d47('0x22')]();}[_0x4d47('0x1e')](){this[_0x4d47('0x35')][_0x4d47('0x1e')]();}['destroy'](){this[_0x4d47('0x1')][_0x4d47('0x23')]();for(const _0x1315fe of this['commentViews'])_0x1315fe[_0x4d47('0x23')]();super[_0x4d47('0x23')]();}[_0x4d47('0x22')](){this[_0x4d47('0x16')]?this[_0x4d47('0x2b')]():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x277a50,_0x1fc4a4){const _0xd6c514=new this['_config'][(_0x4d47('0x1d'))](this[_0x4d47('0x39')],_0x277a50,{'maxCommentCharsWhenCollapsed':this['_config'][_0x4d47('0x11')],'formatDateTime':this[_0x4d47('0x14')][_0x4d47('0x27')],'editorConfig':this[_0x4d47('0x14')][_0x4d47('0x1f')]});_0xd6c514['viewUid']=_0x277a50['id'],_0xd6c514[_0x4d47('0x25')](_0x4d47('0x30'))['to'](this),_0xd6c514[_0x4d47('0x25')](_0x4d47('0xb'))['to'](this),_0xd6c514['delegate']('resolveCommentThread')['to'](this),_0xd6c514['delegate'](_0x4d47('0x10'))['to'](this),_0xd6c514[_0x4d47('0x25')]('editorDestroyed')['to'](this),this['listenTo'](_0xd6c514,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0xd6c514,_0x1fc4a4);}[_0x4d47('0x2f')](_0x351c6f){const _0x25edf5=this[_0x4d47('0x13')][_0x4d47('0x2c')](_0x351c6f);return this['resolvedCommentView']?this['resolvedCommentView'][_0x4d47('0x7')]>_0x351c6f[_0x4d47('0x7')]?_0x25edf5-0x1:_0x25edf5:_0x25edf5-0x1;}[_0x4d47('0x33')](){if(this[_0x4d47('0x13')][_0x4d47('0x36')]&&this[_0x4d47('0x13')][_0x4d47('0x28')]){const _0xe0729b={'id':_0x4d47('0x15'),'author':this['_model']['resolvedBy'],'authoredAt':this[_0x4d47('0x13')][_0x4d47('0x28')],'content':_0x54f57f(this[_0x4d47('0x39')],_0x4d47('0x5')),'attributes':{}};this['resolvedCommentView']=new this[(_0x4d47('0x14'))][(_0x4d47('0x1d'))](this['locale'],_0xe0729b,{'maxCommentCharsWhenCollapsed':this[_0x4d47('0x14')][_0x4d47('0x11')],'formatDateTime':this['_config'][_0x4d47('0x27')],'editorConfig':this[_0x4d47('0x14')]['editorConfig'],'isSystemComment':!0x0}),this[_0x4d47('0x31')][_0x4d47('0x2a')](this['resolvedCommentView'],this[_0x4d47('0x13')][_0x4d47('0x2c')](_0xe0729b));}else this[_0x4d47('0x21')]&&(this[_0x4d47('0x31')][_0x4d47('0x38')](this[_0x4d47('0x21')]),this[_0x4d47('0x21')][_0x4d47('0x23')](),this[_0x4d47('0x21')]=null);this[_0x4d47('0x22')]();}['_handleRemoveCommentModel'](_0x4f05c4){const _0x3dc6bc=this[_0x4d47('0x31')][_0x4d47('0x38')](_0x4f05c4['id']);this[_0x4d47('0xa')](_0x3dc6bc),_0x3dc6bc['isEditMode']&&this[_0x4d47('0x3')](),_0x3dc6bc['destroy']();}[_0x4d47('0x3')](){this[_0x4d47('0x29')]=Array[_0x4d47('0xf')](this[_0x4d47('0x31')])[_0x4d47('0x3d')](_0x5d02e7=>_0x5d02e7[_0x4d47('0x17')]);}['_rearrangeCollapse'](){const _0x36c208=function(_0x23749c){const _0x3858c3=new _0x5bbb2b();for(const _0x11f9b6 of _0x23749c)_0x3858c3[_0x4d47('0x2a')](_0x11f9b6);return _0x3858c3;}(this[_0x4d47('0x31')]),_0x39b303=this[_0x4d47('0x1')][_0x4d47('0x1c')];for(let _0x1cd8c6=0x1;_0x1cd8c6<=_0x39b303;_0x1cd8c6++)_0x36c208[_0x4d47('0x38')](0x1);for(const _0x1c66dd of _0x36c208)_0x1c66dd[_0x4d47('0x6')]();_0x39b303>0x0&&_0x36c208['add'](this[_0x4d47('0x1')],0x1),ss(_0x264cb7(Array[_0x4d47('0xf')](this['visibleViews']),Array[_0x4d47('0xf')](_0x36c208)),this[_0x4d47('0x32')],_0x36c208);}[_0x4d47('0x12')](){ss(_0x264cb7(Array[_0x4d47('0xf')](this[_0x4d47('0x32')]),Array[_0x4d47('0xf')](this[_0x4d47('0x31')])),this[_0x4d47('0x32')],this[_0x4d47('0x31')]);for(const _0x153fb6 of this[_0x4d47('0x32')])_0x153fb6['expand']();}}function ss(_0xc213dc,_0x502230,_0x101a0b){let _0x339c15=0x0;for(const _0x4bcc77 of _0xc213dc)switch(_0x4bcc77){case _0x4d47('0x3a'):_0x502230['add'](_0x101a0b[_0x4d47('0xe')](_0x339c15),_0x339c15),_0x339c15++;break;case _0x4d47('0x19'):_0x502230[_0x4d47('0x38')](_0x339c15);break;case _0x4d47('0x24'):_0x339c15++;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e5d=['...','label','isResolvable','Comment\x20was\x20made\x20on\x20an\x20element','ck-context-wrapper','reopenButtonView','offsetWidth','span','element','context','mouseleave','isReadOnly','_attachContextActions','value','querySelector','Reopen','bind','add','listenTo','ck-context__value','scrollWidth','locale','mouseenter','icon','ck-annotation__actions','overlay','setTemplate','_model','.ck-context__value','fire','classList','contextValue','reopenCommentThread','hasContext','div','substring','_trimContextValue','_createReopenButton'];(function(_0xad8b58,_0x2e5df9){const _0x362834=function(_0x5147ee){while(--_0x5147ee){_0xad8b58['push'](_0xad8b58['shift']());}};_0x362834(++_0x2e5df9);}(_0x2e5d,0x91));const _0x3628=function(_0xad8b58,_0x2e5df9){_0xad8b58=_0xad8b58-0x0;let _0x362834=_0x2e5d[_0xad8b58];return _0x362834;};import{View as _0x519c33,ButtonView as _0x1b88a1}from'ckeditor5/src/ui';import{getTranslation as _0x3d03e8}from'../../../utils/common-translations';import _0x27aee4 from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Rt extends _0x519c33{constructor(_0x17b630,_0x24b04b){super(_0x17b630);const _0x39b537=this['bindTemplate'];this['_model']=_0x24b04b,this['reopenButtonView']=this[_0x3628('0x6')](),this[_0x3628('0x17')](_0x3628('0x2'))['to'](this[_0x3628('0x22')],_0x3628('0x10'),_0x8b99d3=>!!_0x8b99d3),this[_0x3628('0x17')]('contextValue')['to'](this['_model'],'context',_0x393a5c=>_0x393a5c&&_0x393a5c[_0x3628('0x14')]?this[_0x3628('0x5')](_0x393a5c['value']):_0x3d03e8(this[_0x3628('0x1c')],_0x3628('0xa'))),this[_0x3628('0x21')]({'tag':_0x3628('0x3'),'attributes':{'class':['ck-thread__header']},'children':[{'tag':'div','attributes':{'class':[_0x3628('0xb')]},'children':[{'tag':_0x3628('0x3'),'attributes':{'class':['ck-context',_0x39b537['if'](_0x3628('0x2'),'ck-context--quotes')]},'children':[{'tag':_0x3628('0xe'),'attributes':{'class':[_0x3628('0x1a')]},'children':[{'text':_0x39b537['to'](_0x3628('0x0'))}]}]}]},{'tag':_0x3628('0x3'),'attributes':{'class':[_0x3628('0x1f')]},'children':[this[_0x3628('0xc')]]}]});}['render'](){super['render'](),this[_0x3628('0x13')]();}[_0x3628('0x6')](){const _0x5ab667=new _0x1b88a1(this[_0x3628('0x1c')]);return _0x5ab667[_0x3628('0x8')]=_0x3d03e8(this['locale'],_0x3628('0x16')),_0x5ab667['tooltip']=_0x3d03e8(this['locale'],_0x3628('0x16')),_0x5ab667[_0x3628('0x1e')]=_0x27aee4,_0x5ab667['bind']('isEnabled')['to'](this['_model'],_0x3628('0x12'),_0x3b557c=>!_0x3b557c),_0x5ab667[_0x3628('0x17')]('isVisible')['to'](this['_model'],_0x3628('0x9')),_0x5ab667['on']('execute',()=>{this[_0x3628('0x24')](_0x3628('0x1'),this['_model']['id']);}),_0x5ab667;}[_0x3628('0x5')](_0x12d5c9){if(_0x12d5c9['length']<0x96)return _0x12d5c9;const _0x36cb53=_0x12d5c9['lastIndexOf']('\x20',0x93);return _0x12d5c9[_0x3628('0x4')](0x0,_0x36cb53>-0x1?_0x36cb53:0x93)+_0x3628('0x7');}[_0x3628('0x13')](){const _0x16b7bf=this[_0x3628('0xf')][_0x3628('0x15')]('.ck-context'),_0x323363=_0x16b7bf['querySelector'](_0x3628('0x23'));this[_0x3628('0x19')](_0x16b7bf,_0x3628('0x1d'),()=>{_0x323363[_0x3628('0xd')]<_0x323363[_0x3628('0x1b')]&&_0x16b7bf[_0x3628('0x25')][_0x3628('0x18')](_0x3628('0x20'));}),this[_0x3628('0x19')](_0x16b7bf,_0x3628('0x11'),()=>{_0x16b7bf[_0x3628('0x25')]['remove'](_0x3628('0x20'));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x53e8=['setTemplate','showButtons','value','editor','ck-comment__input-container--active','createEditor','userView','ck-thread__user','delegate','isFocused','editorDestroyed','destroy','focusTracker','bindTemplate','then','bind','extendTemplate','showInput','ck-thread__input','commentInputView'];(function(_0x268501,_0x53e899){var _0x1f165e=function(_0x15219d){while(--_0x15219d){_0x268501['push'](_0x268501['shift']());}};_0x1f165e(++_0x53e899);}(_0x53e8,0x105));var _0x1f16=function(_0x268501,_0x53e899){_0x268501=_0x268501-0x0;var _0x1f165e=_0x53e8[_0x268501];return _0x1f165e;};import{View as _0x5cbc95}from'ckeditor5/src/ui';import _0x1ed01c from'./commentinputview';import{UserView as _0x2ca617}from'ckeditor5-collaboration/src/collaboration-core';export default class Ct extends _0x5cbc95{constructor(_0x2c6dd7,_0x2f9731,_0xe8fcb3){super(_0x2c6dd7),this[_0x1f16('0x12')]=new _0x1ed01c(_0x2c6dd7,_0xe8fcb3),this['commentInputView'][_0x1f16('0xe')](_0x1f16('0x0'))['to'](this[_0x1f16('0x12')][_0x1f16('0xb')],_0x1f16('0x8'),this[_0x1f16('0x12')],_0x1f16('0x1'),(_0xc046e,_0x82b99a)=>_0xc046e||!!_0x82b99a),this['set'](_0x1f16('0x10'),!0x1),this['on']('change:showInput',()=>{this[_0x1f16('0x10')]&&!this['commentInputView'][_0x1f16('0x2')]&&this[_0x1f16('0x12')][_0x1f16('0x4')]();}),this[_0x1f16('0x12')][_0x1f16('0x7')]('editorReady')['to'](this),this[_0x1f16('0x12')]['delegate'](_0x1f16('0x9'))['to'](this),this[_0x1f16('0x5')]=new _0x2ca617(_0x2c6dd7,_0x2f9731),this[_0x1f16('0x5')][_0x1f16('0xf')]({'attributes':{'class':_0x1f16('0x6')}}),this[_0x1f16('0x12')][_0x1f16('0xf')]({'attributes':{'class':_0x1f16('0x11')}}),this[_0x1f16('0x13')]({'tag':'div','attributes':{'class':['ck-comment__input-container',this[_0x1f16('0xc')]['if'](_0x1f16('0x10'),_0x1f16('0x3'))]},'children':[this[_0x1f16('0x5')],this[_0x1f16('0x12')]]});}[_0x1f16('0xa')](){return this['commentInputView']['destroy']()[_0x1f16('0xd')](()=>super[_0x1f16('0xa')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e41=['commentThreadChildren','commentViews','bind','ck-thread','execute','change:isReadOnly','unbind','isResolvable','length','isResolved','commentsListView','fire','commentThreadHeaderView','add','removeCommentThread','_cancelAllConfirms','render','element','Resolve','isEnabled','change:isActive','isSystemComment','set','showConfirm','.ck-thread__container','_model','_bindFirstCommentView','stop','bindTemplate','placeholder','tooltip','ck-thread--remove-confirmation','actionIndicator','Write\x20a\x20comment...','resolveCommentThread','Delete\x20comment\x20thread?','resolveButton','ck-thread--','listenTo','isActive','extendTemplate','label','cancelConfirm','getTemplate','then','locale','isConfirm','addMany','isReadOnly','div','icon','_createResolveButton','setTemplate','remove','ck-comment--resolve','_boundFirstCommentView','containerElement'];(function(_0x1c43a0,_0x4e416c){const _0x1f6a8f=function(_0x212e99){while(--_0x212e99){_0x1c43a0['push'](_0x1c43a0['shift']());}};_0x1f6a8f(++_0x4e416c);}(_0x4e41,0xda));const _0x1f6a=function(_0x1c43a0,_0x4e416c){_0x1c43a0=_0x1c43a0-0x0;let _0x1f6a8f=_0x4e41[_0x1c43a0];return _0x1f6a8f;};import{ConfirmMixin as _0x3f8eba}from'ckeditor5-collaboration/src/collaboration-core';import{ButtonView as _0x353cd1}from'ckeditor5/src/ui';import{icons as _0x29e95a}from'ckeditor5/src/core';import _0x1a247c from'./basecommentthreadview';import{getTranslation as _0x315e3c}from'../../../utils/common-translations';export default class lt extends _0x3f8eba(_0x1a247c){constructor(_0x4d1110,_0x4d98d2,_0x24c766,_0x4e3725){super(_0x4d1110,_0x4d98d2,_0x24c766,_0x4e3725),this['commentThreadChildren']=this['createCollection'](),this[_0x1f6a('0xa')][_0x1f6a('0x0')]([this[_0x1f6a('0x14')],this['commentThreadInputView']]),this[_0x1f6a('0x23')][_0x1f6a('0x13')]&&this[_0x1f6a('0xa')]['add'](this[_0x1f6a('0x16')],0x0),this[_0x1f6a('0x23')]['on']('change:isResolved',(_0x1f2f76,_0x3e889f,_0x4f15f0)=>{_0x4f15f0?this['commentThreadChildren']['add'](this[_0x1f6a('0x16')],0x0):this[_0x1f6a('0xa')][_0x1f6a('0x6')](this[_0x1f6a('0x16')]);}),this[_0x1f6a('0x20')](_0x1f6a('0x2a'),null),this['containerElement']=null,this[_0x1f6a('0x8')]=null,this[_0x1f6a('0x37')]=_0x4d1110,this['resolveButton']=this['_createResolveButton'](),this[_0x1f6a('0x5')](this[_0x1f6a('0x35')]()),this['on'](_0x1f6a('0x1e'),(_0x231bae,_0x33bb80,_0x2214f6)=>{_0x2214f6||this[_0x1f6a('0x19')]();}),this[_0x1f6a('0x30')](this['_model'],_0x1f6a('0xf'),(_0x5e714b,_0x3f9830,_0x6f7749)=>{_0x6f7749&&this[_0x1f6a('0x19')]();}),this[_0x1f6a('0x12')]>0x0&&this['_bindFirstCommentView'](),this[_0x1f6a('0x30')](this[_0x1f6a('0x14')][_0x1f6a('0xb')],'add',()=>{this[_0x1f6a('0x24')]();});}[_0x1f6a('0x35')](){const _0x306ba2=this[_0x1f6a('0x26')];return{'tag':_0x1f6a('0x2'),'attributes':{'class':[_0x1f6a('0xd'),'ck-reset_all-excluded',_0x306ba2['if'](_0x1f6a('0x31'),'ck-thread--active'),_0x306ba2['if'](_0x1f6a('0x38'),_0x1f6a('0x29')),_0x306ba2['to']('actionIndicator',_0x259d30=>_0x259d30?_0x1f6a('0x2f')+_0x259d30:'')],'data-thread-id':this[_0x1f6a('0x23')]['id'],'tabindex':-0x1},'children':[{'tag':_0x1f6a('0x2'),'attributes':{'class':'ck-thread__container'},'children':this[_0x1f6a('0xa')]}]};}[_0x1f6a('0x1a')](){super[_0x1f6a('0x1a')](),this[_0x1f6a('0x9')]=this[_0x1f6a('0x1b')]['querySelector'](_0x1f6a('0x22'));}['_cancelAllConfirms'](){this[_0x1f6a('0x34')]();for(const _0x4bb517 of this['commentsListView']['commentViews'])_0x4bb517[_0x1f6a('0x34')]();}['_bindFirstCommentView'](){const {locale:_0x3370db}=this,_0x294da7=this[_0x1f6a('0x14')][_0x1f6a('0xb')]['get'](0x0);_0x294da7===this[_0x1f6a('0x8')]||_0x294da7[_0x1f6a('0x1f')]||(this[_0x1f6a('0x8')]=_0x294da7,this[_0x1f6a('0x10')](_0x1f6a('0x2a')),this[_0x1f6a('0xc')](_0x1f6a('0x2a'))['to'](_0x294da7,_0x1f6a('0x2a'),_0x3153fc=>'remove'===_0x3153fc?_0x1f6a('0x6'):null),_0x294da7[_0x1f6a('0x27')]=_0x315e3c(_0x3370db,_0x1f6a('0x2b')),_0x294da7['removeButton']['on'](_0x1f6a('0xe'),_0x50455c=>{_0x50455c[_0x1f6a('0x25')](),this[_0x1f6a('0x21')](_0x315e3c(_0x3370db,_0x1f6a('0x2d')),this[_0x1f6a('0x9')])[_0x1f6a('0x36')](()=>{this[_0x1f6a('0x15')](_0x1f6a('0x18'));});},{'priority':'high'}),_0x294da7['actionBar'][_0x1f6a('0x17')](this[_0x1f6a('0x2e')],0x0));}[_0x1f6a('0x4')](){const _0xf012d=new _0x353cd1(this[_0x1f6a('0x37')]);return _0xf012d[_0x1f6a('0x33')]=_0x315e3c(this[_0x1f6a('0x37')],'Resolve'),_0xf012d[_0x1f6a('0x28')]=_0x315e3c(this['locale'],_0x1f6a('0x1c')),_0xf012d[_0x1f6a('0x3')]=_0x29e95a['check'],_0xf012d[_0x1f6a('0x32')]({'attributes':{'class':_0x1f6a('0x7')}}),_0xf012d[_0x1f6a('0xc')](_0x1f6a('0x1d'))['to'](this[_0x1f6a('0x23')],_0x1f6a('0x1'),_0x3aca78=>!_0x3aca78),_0xf012d[_0x1f6a('0xc')]('isVisible')['to'](this['_model'],_0x1f6a('0x11'),this[_0x1f6a('0x23')],_0x1f6a('0x13'),(_0x24be38,_0x4bd8f7)=>_0x24be38&&!_0x4bd8f7),_0xf012d['on']('execute',()=>{this[_0x1f6a('0x15')](_0x1f6a('0x2c'),this[_0x1f6a('0x23')]['id']);}),_0xf012d;}}
|