@ckeditor/ckeditor5-comments 0.0.0-nightly-20240117.0 → 0.0.0-nightly-20240119.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 _0x45ba=['dataInsert','forEach','high','basic','commands','config','_handleImportedData','collaboration.channelId','editor','plugins','get','collaboration_features','importWord','execute'];(function(_0xc628dd,_0x45ba5b){const _0x113424=function(_0x4911bb){while(--_0x4911bb){_0xc628dd['push'](_0xc628dd['shift']());}};_0x113424(++_0x45ba5b);}(_0x45ba,0x98));const _0x1134=function(_0xc628dd,_0x45ba5b){_0xc628dd=_0xc628dd-0x0;let _0x113424=_0x45ba[_0xc628dd];return _0x113424;};import{Plugin as _0x32579d}from'ckeditor5/src/core.js';import{priorities as _0x44e96f}from'ckeditor5/src/utils.js';import{Users as _0x33ea08}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x58e107 from'../commentsrepository.js';export default class Z extends _0x32579d{constructor(_0x5a56d1){super(_0x5a56d1),this['editor'][_0x1134('0x7')]['define']('importWord.formatting.comments',_0x1134('0x5'));}['afterInit'](){const _0x79c494=this['editor'],_0x3a86a7=_0x79c494[_0x1134('0x6')][_0x1134('0xc')](_0x1134('0x0')),_0x56f8b4=_0x79c494['plugins'][_0x1134('0xc')](_0x33ea08);_0x3a86a7&&(_0x3a86a7['on'](_0x1134('0x1'),(_0x550f7b,[,_0x3572d5])=>{_0x3572d5[_0x1134('0xd')]={'comments':!0x0,'user_id':_0x56f8b4['me']['id']};},{'priority':_0x44e96f[_0x1134('0x4')]+0xa}),this['listenTo'](_0x3a86a7,_0x1134('0x2'),this['_handleImportedData']));}[_0x1134('0x8')](_0x54015f,_0x4a6f09){const {comment_threads:_0x325f08}=_0x4a6f09;_0x325f08&&_0x325f08[_0x1134('0x3')](({thread_id:_0x301fea,comments:_0x4193d3,is_resolved:_0x1c731a})=>{const _0x3efea6=new Date(),_0x16dcb6=_0x4193d3['map'](({author:_0x54f706,content:_0x5414ab,created_at:_0x86f85c})=>({'content':_0x5414ab,'authorId':this['editor'][_0x1134('0xb')][_0x1134('0xc')](_0x33ea08)['me']['id'],'createdAt':_0x3efea6,'attributes':{'@external':{'authorName':_0x54f706,'createdAt':_0x86f85c?new Date(_0x86f85c):new Date(),'source':_0x1134('0x0')}}})),_0x4a82c8=this[_0x1134('0xa')][_0x1134('0x7')][_0x1134('0xc')](_0x1134('0x9'));this['editor'][_0x1134('0xb')][_0x1134('0xc')](_0x58e107)['addCommentThread']({'channelId':_0x4a82c8,'threadId':_0x301fea,'comments':_0x16dcb6,'resolvedAt':_0x1c731a?_0x3efea6:null});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1dd3=['initPlugins','createRoot','change','then','placeholderElement','fire','_updatePlaceholder','low','editing','placeholder','data','view','assign','create','getChild','focus','name','document','get','getRoot','init','plugins','childCount','setSelection','set','defaultPlugins','model','destroy','ready'];(function(_0x4f972d,_0x1dd3da){const _0x32bdf4=function(_0x2e6a52){while(--_0x2e6a52){_0x4f972d['push'](_0x4f972d['shift']());}};_0x32bdf4(++_0x1dd3da);}(_0x1dd3,0x1b2));const _0x32bd=function(_0x4f972d,_0x1dd3da){_0x4f972d=_0x4f972d-0x0;let _0x32bdf4=_0x1dd3[_0x4f972d];return _0x32bdf4;};import{Editor as _0x4a996c,DataApiMixin as _0x5810b7}from'ckeditor5/src/core.js';import _0xb86a72 from'./commenteditorui.js';import{ObservableMixin as _0x273074}from'ckeditor5/src/utils.js';import{enablePlaceholder as _0x55f3b2,disablePlaceholder as _0x5c91f7}from'ckeditor5/src/engine.js';import{Clipboard as _0x20424f}from'ckeditor5/src/clipboard.js';import{Enter as _0x15fc1c,ShiftEnter as _0x7fef55}from'ckeditor5/src/enter.js';import{SelectAll as _0x665d47}from'ckeditor5/src/select-all.js';import{Typing as _0x2da572}from'ckeditor5/src/typing.js';import{Undo as _0xf9a3ce}from'ckeditor5/src/undo.js';import{Paragraph as _0xac41a5}from'ckeditor5/src/paragraph.js';const Mt=[_0x20424f,_0x15fc1c,_0x7fef55,_0x665d47,_0x2da572,_0xf9a3ce,_0xac41a5];class Nt extends _0x273074(_0x5810b7(_0x4a996c)){constructor(_0x597809={}){(_0x597809=Object[_0x32bd('0xd')]({},_0x597809))['plugins']||(_0x597809[_0x32bd('0x16')]=Nt['defaultPlugins']),super(_0x597809),this['ui']=new _0xb86a72(this),this[_0x32bd('0x19')](_0x32bd('0xa'),''),this[_0x32bd('0x1b')][_0x32bd('0x12')]['on'](_0x32bd('0x3'),()=>this[_0x32bd('0x7')](),{'priority':_0x32bd('0x8')}),this['on']('change:placeholder',()=>this[_0x32bd('0x7')]()),this[_0x32bd('0x1b')][_0x32bd('0x12')][_0x32bd('0x2')]();}[_0x32bd('0xe')](){const _0x4ea601=this['config'][_0x32bd('0x13')]('initialData')||'';return this[_0x32bd('0x1')]()[_0x32bd('0x4')](()=>this['ui'][_0x32bd('0x15')]())[_0x32bd('0x4')](()=>this[_0x32bd('0xb')][_0x32bd('0x15')](_0x4ea601))[_0x32bd('0x4')](()=>this[_0x32bd('0x6')](_0x32bd('0x0')));}['destroy'](){return super[_0x32bd('0x1c')]()[_0x32bd('0x4')](()=>this['ui']['destroy']());}[_0x32bd('0x10')](){this[_0x32bd('0x1b')][_0x32bd('0x3')](_0x4ccf07=>{const _0x87fe77=this[_0x32bd('0x1b')][_0x32bd('0x12')][_0x32bd('0x14')](),_0x54d374=_0x87fe77&&_0x87fe77[_0x32bd('0xf')](_0x87fe77['childCount']-0x1);_0x4ccf07[_0x32bd('0x18')](_0x54d374,'end'),this['editing'][_0x32bd('0xc')][_0x32bd('0x10')]();});}[_0x32bd('0x7')](){const _0x1d43d0=this[_0x32bd('0x9')][_0x32bd('0xc')],_0x42357e=_0x1d43d0['document'][_0x32bd('0x14')](),_0x16f6e9=_0x42357e[_0x32bd('0xf')](0x0);_0x42357e[_0x32bd('0x17')]>0x1||!_0x16f6e9||'p'!=_0x16f6e9[_0x32bd('0x11')]?this[_0x32bd('0x5')]&&this[_0x32bd('0x5')][_0x32bd('0xa')]&&(_0x5c91f7(_0x1d43d0,this[_0x32bd('0x5')]),this[_0x32bd('0x5')]=void 0x0):(this[_0x32bd('0xa')]&&(_0x16f6e9[_0x32bd('0xa')]=this[_0x32bd('0xa')]),_0x55f3b2({'view':_0x1d43d0,'element':_0x16f6e9,'keepOnFocus':!0x0}),this['placeholderElement']=_0x16f6e9);}}Nt[_0x32bd('0x1a')]=Mt;export default Nt;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5f83=['editable','editing','rootName','setEditableElement','view','destroy','element','attachDomRoot','isFocused','bind','editor','locale','render','fire','focusTracker','init'];(function(_0x532ad4,_0x5f83d9){const _0x49bb45=function(_0x390bc3){while(--_0x390bc3){_0x532ad4['push'](_0x532ad4['shift']());}};_0x49bb45(++_0x5f83d9);}(_0x5f83,0x1c1));const _0x49bb=function(_0x532ad4,_0x5f83d9){_0x532ad4=_0x532ad4-0x0;let _0x49bb45=_0x5f83[_0x532ad4];return _0x49bb45;};import{EditorUI as _0x5debbd}from'ckeditor5/src/ui.js';import _0x522d30 from'./commenteditoruiview.js';export default class Ft extends _0x5debbd{constructor(_0x5a34b3){super(_0x5a34b3),this[_0x49bb('0x3')]=new _0x522d30(_0x5a34b3[_0x49bb('0xa')],_0x5a34b3[_0x49bb('0x0')][_0x49bb('0x3')]);}get['element'](){return this[_0x49bb('0x3')][_0x49bb('0x5')];}[_0x49bb('0xe')](){const _0x3d511b=this[_0x49bb('0x9')][_0x49bb('0x0')]['view'],_0xeda801=this[_0x49bb('0x3')][_0x49bb('0xf')],_0x447e5a=_0x3d511b['document']['getRoot']();_0xeda801['name']=_0x447e5a[_0x49bb('0x1')],this[_0x49bb('0x3')][_0x49bb('0xb')]();const _0x5affb7=_0xeda801['element'];this[_0x49bb('0x2')](_0xeda801['name'],_0x5affb7),this['view'][_0x49bb('0xf')][_0x49bb('0x8')](_0x49bb('0x7'))['to'](this[_0x49bb('0xd')]),_0x3d511b[_0x49bb('0x6')](_0x5affb7),this[_0x49bb('0xc')]('ready');}[_0x49bb('0x4')](){super[_0x49bb('0x4')](),this['view']['destroy']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a9d=['ck-rounded-corners','editable','render','focus','extendTemplate','uiLanguageDirection','_createVoiceLabel','Comment\x20editor','ck-editor','_voiceLabelView','text','ck-comment__input','div','comment','element','main','uiLanguage','ck-editor__aria-label_','cke-editor__aria-label_'];(function(_0x5922f7,_0x2a9d5f){const _0x4c1617=function(_0x3ca673){while(--_0x3ca673){_0x5922f7['push'](_0x5922f7['shift']());}};_0x4c1617(++_0x2a9d5f);}(_0x2a9d,0x1da));const _0x4c16=function(_0x5922f7,_0x2a9d5f){_0x5922f7=_0x5922f7-0x0;let _0x4c1617=_0x2a9d[_0x5922f7];return _0x4c1617;};import{InlineEditableUIView as _0x150ed0,EditorUIView as _0x48afaa,LabelView as _0x2364b4}from'ckeditor5/src/ui.js';import{uid as _0x54ab55}from'ckeditor5/src/utils.js';import{getTranslation as _0x1b747b}from'../../../utils/common-translations.js';export default class Rt extends _0x48afaa{constructor(_0x5417b1,_0x37fa23){super(_0x5417b1);const _0x389712=_0x54ab55();this['main']=this['createCollection'](),this[_0x4c16('0x2')]=new _0x150ed0(_0x5417b1,_0x37fa23),this[_0x4c16('0xa')]=this['_createVoiceLabel'](_0x389712,_0x5417b1),this['setTemplate']({'tag':_0x4c16('0xd'),'attributes':{'class':['ck-reset',_0x4c16('0x9'),_0x4c16('0x1'),_0x4c16('0xc')],'role':_0x4c16('0xe'),'dir':_0x5417b1[_0x4c16('0x6')],'lang':_0x5417b1[_0x4c16('0x11')],'aria-labelledby':_0x4c16('0x0')+_0x389712},'children':[this[_0x4c16('0xa')],{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this[_0x4c16('0x10')]}]});}[_0x4c16('0x3')](){super[_0x4c16('0x3')](),this[_0x4c16('0x10')]['add'](this['editable']);}[_0x4c16('0x4')](){this[_0x4c16('0x2')][_0x4c16('0xf')]['focus']();}[_0x4c16('0x7')](_0x132a5d,_0xe06e6e){const _0x522eab=new _0x2364b4();return _0x522eab[_0x4c16('0xb')]=_0x1b747b(_0xe06e6e,_0x4c16('0x8')),_0x522eab[_0x4c16('0x5')]({'attributes':{'id':_0x4c16('0x12')+_0x132a5d,'class':'ck-voice-label'}}),_0x522eab;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3ffd=['isResolved','resolve','listenTo','resolveCommentThread','removeComment','stopListening','model','view','reopen','destroy','submitCommentThread','getComment','addComment','updateComment','_localUser','_isAttached','removeCommentThread','remove','submit'];(function(_0x30d208,_0x3ffd5c){var _0x42685b=function(_0x1020db){while(--_0x1020db){_0x30d208['push'](_0x30d208['shift']());}};_0x42685b(++_0x3ffd5c);}(_0x3ffd,0x131));var _0x4268=function(_0x30d208,_0x3ffd5c){_0x30d208=_0x30d208-0x0;var _0x42685b=_0x3ffd[_0x30d208];return _0x42685b;};import{ObservableMixin as _0x17ca9b}from'ckeditor5/src/utils.js';export default class ut extends _0x17ca9b(){constructor(_0x5803b6,_0x2edc49){super(),this[_0x4268('0x5')]=_0x5803b6,this['model'][_0x4268('0xe')]=!0x0,this[_0x4268('0x6')]=_0x2edc49,this[_0x4268('0x1')](_0x2edc49,_0x4268('0x9'),()=>this[_0x4268('0x11')]()),this[_0x4268('0x1')](_0x2edc49,_0x4268('0xf'),()=>this[_0x4268('0x10')]()),this[_0x4268('0x1')](_0x2edc49,_0x4268('0x2'),()=>this[_0x4268('0x0')]()),this['listenTo'](_0x2edc49,'reopenCommentThread',()=>this[_0x4268('0x7')]()),this[_0x4268('0x1')](_0x2edc49,_0x4268('0xb'),(_0x41361c,_0x46fb2c)=>this['addComment'](_0x46fb2c)),this['listenTo'](_0x2edc49,_0x4268('0xc'),(_0x583853,_0x5baa59,_0xc622c3)=>this[_0x4268('0xc')](_0x5baa59,_0xc622c3)),this[_0x4268('0x1')](_0x2edc49,'removeComment',(_0x4710bf,_0x547fa1)=>this[_0x4268('0x3')](_0x547fa1));}[_0x4268('0x11')](){this['model'][_0x4268('0x11')]();}['remove'](){this[_0x4268('0x5')][_0x4268('0x10')]();}['resolve'](){this['model']['isResolved']||this[_0x4268('0x5')][_0x4268('0x0')]();}[_0x4268('0x7')](){this[_0x4268('0x5')][_0x4268('0x12')]&&this[_0x4268('0x5')]['reopen']();}[_0x4268('0xb')](_0x1457b0){this[_0x4268('0x5')][_0x4268('0xb')]({'content':_0x1457b0,'authorId':this[_0x4268('0x6')][_0x4268('0xd')]['id']});}[_0x4268('0xc')](_0x244956,_0x13b2af){this[_0x4268('0x5')][_0x4268('0xa')](_0x244956)['update']({'content':_0x13b2af});}[_0x4268('0x3')](_0x46b047){this['model'][_0x4268('0xa')](_0x46b047)['remove']();}[_0x4268('0x8')](){this[_0x4268('0x4')](),this[_0x4268('0x5')][_0x4268('0xe')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5acf=['_localUser','_model','isResolved','commentThreadInputView','addComment','isActive','updateComment','removeComment','set','delegate','focus','commentThreadHeaderView','hasDirtyComment','editorDestroyed','isDirty','removeCommentThread','resolveCommentThread','commentInputView','reopenCommentThread','canComment','CommentView','locale','isUnlinked','length','isSubmitted','Comment','isReadOnly','showInput','Reply','submitLabel','assign','editorReady','destroy','_createCommentThreadInputView','unlinkedAt','value','Reply\x20to\x20reopen\x20discussion...','_config','disabledSubmit','editorConfig','commentsListView','bind','cancel','fire','stop','listenTo','Write\x20a\x20comment...'];(function(_0x728129,_0x5acf75){const _0x102290=function(_0xfd274a){while(--_0xfd274a){_0x728129['push'](_0x728129['shift']());}};_0x102290(++_0x5acf75);}(_0x5acf,0x82));const _0x1022=function(_0x728129,_0x5acf75){_0x728129=_0x728129-0x0;let _0x102290=_0x5acf[_0x728129];return _0x102290;};import{View as _0x4ba7f3}from'ckeditor5/src/ui.js';import _0x40abe8 from'./commentthreadinputview.js';import _0x42497c from'./commentslistview.js';import _0x166eb6 from'./commentthreadheaderview.js';import{getTranslation as _0x20fbe9}from'../../../utils/common-translations.js';export default class Ut extends _0x4ba7f3{constructor(_0x81e55e,_0x3e7759,_0x4cc654,_0x4619e0){super(_0x81e55e),this['set'](_0x1022('0x10'),!0x1),this['set'](_0x1022('0x19'),!0x1),this[_0x1022('0xc')]=_0x3e7759,this['_localUser']=_0x4cc654,this[_0x1022('0x1')]=_0x4619e0,this[_0x1022('0x16')]=new _0x166eb6(_0x81e55e,_0x3e7759),this[_0x1022('0x16')]['delegate']('reopenCommentThread')['to'](this),this[_0x1022('0x9')](this,_0x1022('0x1d'),()=>{this[_0x1022('0x15')]();}),this[_0x1022('0x4')]=new _0x42497c(_0x81e55e,_0x3e7759,Object[_0x1022('0x29')]({'CommentView':this[_0x1022('0x1')][_0x1022('0x1f')]},_0x4619e0)),this[_0x1022('0x4')][_0x1022('0x14')](_0x1022('0x12'))['to'](this),this[_0x1022('0x4')][_0x1022('0x14')](_0x1022('0x11'))['to'](this),this[_0x1022('0x4')][_0x1022('0x14')](_0x1022('0x1b'))['to'](this),this[_0x1022('0x4')][_0x1022('0x14')]('editorReady')['to'](this),this['commentsListView'][_0x1022('0x14')]('editorDestroyed')['to'](this),this[_0x1022('0x4')][_0x1022('0x5')](_0x1022('0x10'))['to'](this),this[_0x1022('0x9')](this,_0x1022('0x1b'),()=>{this[_0x1022('0x15')]();}),this[_0x1022('0x13')]('length',this[_0x1022('0x4')][_0x1022('0x22')]),this[_0x1022('0x5')](_0x1022('0x22'))['to'](this[_0x1022('0x4')],_0x1022('0x22')),this[_0x1022('0xe')]=this['_createCommentThreadInputView'](),this[_0x1022('0xe')][_0x1022('0x14')](_0x1022('0x2a'))['to'](this),this[_0x1022('0xe')][_0x1022('0x14')](_0x1022('0x18'))['to'](this),this['on']('removeComment',()=>this[_0x1022('0x15')]()),this[_0x1022('0x5')](_0x1022('0x19'))['to'](this[_0x1022('0x4')],_0x1022('0x17'),this[_0x1022('0xe')]['commentInputView'],'value',(_0x712241,_0x4b3685)=>_0x712241||!!_0x4b3685),this[_0x1022('0x5')](_0x1022('0x21'))['to'](_0x3e7759,_0x1022('0x2d'),_0x5496b8=>!!_0x5496b8);}[_0x1022('0x15')](){this['element']['focus']();}async[_0x1022('0x2b')](){this[_0x1022('0x19')]=!0x1,this[_0x1022('0x4')][_0x1022('0x2b')](),await this[_0x1022('0xe')][_0x1022('0x2b')](),super[_0x1022('0x2b')]();}[_0x1022('0x2c')](){const _0x3fefdb=new _0x40abe8(this['locale'],this[_0x1022('0xb')],this[_0x1022('0x1')][_0x1022('0x3')]),_0x362041=_0x3fefdb[_0x1022('0x1c')];return _0x3fefdb[_0x1022('0x5')](_0x1022('0x26'))['to'](this,'isActive',this['_model'],_0x1022('0x25'),this[_0x1022('0xc')],_0x1022('0x1e'),this[_0x1022('0xc')],'archivedAt',_0x362041,'value',(_0x13c614,_0x600190,_0x260c61,_0x4b3e0a,_0x2463fa)=>!!_0x2463fa||!!_0x4b3e0a&&_0x260c61&&!_0x600190||_0x13c614&&_0x260c61&&!_0x600190),_0x362041[_0x1022('0x5')]('placeholder')['to'](this,_0x1022('0x22'),this[_0x1022('0xc')],'isResolvable',this[_0x1022('0xc')],'isResolved',(_0x330091,_0x55cbd7,_0xb9807)=>{let _0x537a63;return _0x537a63=_0xb9807&&_0x55cbd7?_0x1022('0x0'):_0x330091?'Reply...':_0x1022('0xa'),_0x20fbe9(this['locale'],_0x537a63);}),_0x362041['bind'](_0x1022('0x28'))['to'](this,'length',_0x23a138=>_0x20fbe9(this[_0x1022('0x20')],_0x23a138?_0x1022('0x27'):_0x1022('0x24'))),_0x362041['on']('submit',(_0x4ceed9,_0x288101)=>{this[_0x1022('0x7')](_0x1022('0xf'),_0x288101),this[_0x1022('0xc')][_0x1022('0xd')]&&this[_0x1022('0xc')]['isResolvable']&&this[_0x1022('0x7')](_0x1022('0x1d'),this[_0x1022('0xc')]['id']),this['_model'][_0x1022('0x23')]||this['fire']('submitCommentThread');}),_0x362041['on'](_0x1022('0x6'),()=>{this[_0x1022('0x15')]();}),_0x362041[_0x1022('0x5')](_0x1022('0x2'))['to'](this[_0x1022('0xc')],_0x1022('0x25')),_0x362041['on'](_0x1022('0x6'),_0x3701de=>{0x0==this[_0x1022('0x22')]&&(this[_0x1022('0x7')](_0x1022('0x1a')),_0x3701de[_0x1022('0x8')]());}),this['on']('change:isActive',(_0x3f0432,_0x5026d3,_0x336d8b)=>{_0x336d8b||this[_0x1022('0x22')]||_0x362041[_0x1022('0x2e')]||this[_0x1022('0x7')]('removeCommentThread');}),_0x3fefdb;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4dec=['get','switchToEditMode','_model','destroy','isEditMode','Save','_config','createEditor','bind','once','submit','delegate','isCollapsed','editorConfig','focus','_createCommentContentView','value','collapse','content','updateComment','initialData','cancel','expand','_createCommentInputView','remove','visibleView','switchToDisplayMode','disabledSubmit','fire','locale','editorReady','isReadOnly','editorDestroyed','createCollection','element','add','submitLabel'];(function(_0x51b22c,_0x4dec41){const _0xf4ec04=function(_0x7a3719){while(--_0x7a3719){_0x51b22c['push'](_0x51b22c['shift']());}};_0xf4ec04(++_0x4dec41);}(_0x4dec,0x1bb));const _0xf4ec=function(_0x51b22c,_0x4dec41){_0x51b22c=_0x51b22c-0x0;let _0xf4ec04=_0x4dec[_0x51b22c];return _0xf4ec04;};import{View as _0x5f21db}from'ckeditor5/src/ui.js';import{trimHtml as _0x46aaae}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x1c7fc2 from'./commentcontentview.js';import _0x3d00b8 from'./commentinputview.js';import{getTranslation as _0x1dc6b0}from'../../../utils/common-translations.js';export default class ti extends _0x5f21db{constructor(_0x4154d0,_0x3d67c2,_0xa0aca1){super(_0x4154d0),this[_0xf4ec('0x3')]=_0x3d67c2,this[_0xf4ec('0x7')]=_0xa0aca1,this['isSystemComment']=!!this[_0xf4ec('0x7')]['isSystemComment'],this['set'](_0xf4ec('0x5'),!0x1),this['set'](_0xf4ec('0xd'),!0x0),this['visibleView']=this[_0xf4ec('0x22')](),this[_0xf4ec('0x1a')][_0xf4ec('0x24')](this[_0xf4ec('0x10')]());}[_0xf4ec('0x17')](){this[_0xf4ec('0xd')]=!0x1;}[_0xf4ec('0x12')](){this[_0xf4ec('0x5')]||(this['isCollapsed']=!0x0);}['focus'](){this[_0xf4ec('0x23')][_0xf4ec('0xf')]();}async['destroy'](){await this[_0xf4ec('0x1a')][_0xf4ec('0x1')](0x0)[_0xf4ec('0x4')](),super['destroy']();}[_0xf4ec('0x2')](){this[_0xf4ec('0x5')]||(this['isEditMode']=!0x0,this[_0xf4ec('0x1a')]['remove'](0x0)[_0xf4ec('0x4')](),this[_0xf4ec('0x1a')][_0xf4ec('0x24')](this[_0xf4ec('0x18')]()));}[_0xf4ec('0x1b')](){this[_0xf4ec('0x5')]&&(this[_0xf4ec('0x5')]=!0x1,this['visibleView'][_0xf4ec('0x19')](0x0)[_0xf4ec('0x4')](),this[_0xf4ec('0x1a')]['add'](this[_0xf4ec('0x10')]()));}[_0xf4ec('0x10')](){const _0x1efd93=new _0x1c7fc2(this[_0xf4ec('0x1e')]);return _0x1efd93[_0xf4ec('0x9')](_0xf4ec('0x13'))['to'](this['_model'],_0xf4ec('0x13'),this,'isCollapsed',(_0x593add,_0x299a53)=>_0x299a53?_0x46aaae(_0x593add,{'limit':this[_0xf4ec('0x7')]['maxCommentCharsWhenCollapsed']}):_0x593add),_0x1efd93;}['_createCommentInputView'](){this[_0xf4ec('0x7')][_0xf4ec('0xe')]||(this[_0xf4ec('0x7')][_0xf4ec('0xe')]={}),this[_0xf4ec('0x7')][_0xf4ec('0xe')][_0xf4ec('0x15')]=this[_0xf4ec('0x3')][_0xf4ec('0x13')];const _0x51c16d=new _0x3d00b8(this[_0xf4ec('0x1e')],this[_0xf4ec('0x7')][_0xf4ec('0xe')]);return _0x51c16d[_0xf4ec('0x11')]=this['_model'][_0xf4ec('0x13')],_0x51c16d[_0xf4ec('0x9')](_0xf4ec('0x1c'))['to'](this[_0xf4ec('0x3')],_0xf4ec('0x20')),_0x51c16d[_0xf4ec('0x0')]=_0x1dc6b0(this[_0xf4ec('0x1e')],_0xf4ec('0x6')),_0x51c16d['on'](_0xf4ec('0xb'),(_0x3090e7,_0x2e6426)=>{this[_0xf4ec('0x1d')](_0xf4ec('0x14'),this[_0xf4ec('0x3')]['id'],_0x2e6426),this[_0xf4ec('0x1b')](),this[_0xf4ec('0xf')]();}),_0x51c16d['on'](_0xf4ec('0x16'),()=>{this[_0xf4ec('0x1b')](),this[_0xf4ec('0xf')]();}),_0x51c16d[_0xf4ec('0xa')](_0xf4ec('0x1f'),()=>{_0x51c16d[_0xf4ec('0xf')]();}),_0x51c16d[_0xf4ec('0x8')](),_0x51c16d[_0xf4ec('0xc')](_0xf4ec('0x1f'))['to'](this),_0x51c16d['delegate'](_0xf4ec('0x21'))['to'](this),_0x51c16d;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1fca=['bindTemplate','NUMBER_OF_COMMENTS','count','set'];(function(_0x4030f3,_0x1fca97){const _0x31d4ec=function(_0x42aa82){while(--_0x42aa82){_0x4030f3['push'](_0x4030f3['shift']());}};_0x31d4ec(++_0x1fca97);}(_0x1fca,0x171));const _0x31d4=function(_0x4030f3,_0x1fca97){_0x4030f3=_0x4030f3-0x0;let _0x31d4ec=_0x1fca[_0x4030f3];return _0x31d4ec;};import{View as _0x5801d6}from'ckeditor5/src/ui.js';import{getTranslation as _0x18bd54}from'../../../utils/common-translations.js';export default class ts extends _0x5801d6{constructor(_0xdfac70){super(_0xdfac70);const _0x54e9a7=this[_0x31d4('0x3')];this[_0x31d4('0x2')](_0x31d4('0x1'),void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x54e9a7['to'](_0x31d4('0x1'),_0x5d63bf=>_0x18bd54(_0xdfac70,_0x31d4('0x0'),_0x5d63bf))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3992=['div','content','innerHTML','set','ck-annotation__content','setTemplate','render'];(function(_0x3e8bb0,_0x3992cf){var _0x27e63d=function(_0x2c587f){while(--_0x2c587f){_0x3e8bb0['push'](_0x3e8bb0['shift']());}};_0x27e63d(++_0x3992cf);}(_0x3992,0x16a));var _0x27e6=function(_0x3e8bb0,_0x3992cf){_0x3e8bb0=_0x3e8bb0-0x0;var _0x27e63d=_0x3992[_0x3e8bb0];return _0x27e63d;};import{View as _0x3313fe}from'ckeditor5/src/ui.js';export default class Yt extends _0x3313fe{constructor(_0x3faba9){super(_0x3faba9),this[_0x27e6('0x5')](_0x27e6('0x3'),''),this[_0x27e6('0x0')]({'tag':_0x27e6('0x2'),'attributes':{'class':['ck-comment__content',_0x27e6('0x6')]}});}['render'](){super[_0x27e6('0x1')](),this['on']('change:content',(_0x27e0c3,_0x4ace3b,_0x3abad8)=>{this['element'][_0x27e6('0x4')]=_0x3abad8;}),this['element'][_0x27e6('0x4')]=this['content'];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c3e=['submitLabel','create','shift\x20+\x20tab','execute','bindTemplate','change','_createSubmitButton','listenTo','tab','document','set','extendTemplate','focusPrevious','TOO_LONG_COMMENT_ALERT','render','keystrokes','Reply...','Esc','focusTracker','value','length','stop','div','initialData','_editorConfig','cancel','fire','showButtons','low','getData','focus','trim','placeholder','element','destroy','ck-comment__input-actions--submit','Reply','ck-comment__input-actions--cancel','editor','submit','add','insertBefore','ck-comment__input-actions','_isDestroyed','_createCancelButton','label','bind','_initializeFocusCycling','model','firstChild','Cancel','editorDestroyed','forEach','then','isEnabled','setData','view','disabledSubmit','createEditor','submitButtonView','ck-comment__input-wrapper','focusNext','_editorCreationPromise','cancelButtonView'];(function(_0x24cc1e,_0x1c3e9c){const _0x469e5b=function(_0x3c1f17){while(--_0x3c1f17){_0x24cc1e['push'](_0x24cc1e['shift']());}};_0x469e5b(++_0x1c3e9c);}(_0x1c3e,0xfe));const _0x469e=function(_0x24cc1e,_0x1c3e9c){_0x24cc1e=_0x24cc1e-0x0;let _0x469e5b=_0x1c3e[_0x24cc1e];return _0x469e5b;};import{View as _0x4a2772,ViewCollection as _0x573d01,FocusCycler as _0x37cc3a,ButtonView as _0x9d5eb3}from'ckeditor5/src/ui.js';import{FocusTracker as _0x1009ee,KeystrokeHandler as _0x5eeffc}from'ckeditor5/src/utils.js';import _0x29519f from'../commenteditor/commenteditor.js';import{getTranslation as _0x51a069}from'../../../utils/common-translations.js';export default class Zt extends _0x4a2772{constructor(_0x1e08cc,_0x36515c={}){super(_0x1e08cc),this[_0x469e('0x28')]=null,this['_editorConfig']=_0x36515c,this['keystrokes']=new _0x5eeffc(),this[_0x469e('0x14')]=new _0x1009ee(),this[_0x469e('0xc')]('value',_0x36515c[_0x469e('0x19')]||''),this[_0x469e('0xc')](_0x469e('0x3b'),!0x1),this['set']('showButtons',!0x0),this[_0x469e('0xc')](_0x469e('0x22'),_0x51a069(_0x1e08cc,_0x469e('0x12'))),this[_0x469e('0xc')]('submitLabel',_0x51a069(_0x1e08cc,_0x469e('0x26'))),this[_0x469e('0x3d')]=this['_createSubmitButton'](),this['cancelButtonView']=this[_0x469e('0x2e')](),this['setTemplate']({'tag':'div','attributes':{'class':[_0x469e('0x3e')]},'children':[{'tag':_0x469e('0x18'),'attributes':{'class':[_0x469e('0x2c'),this[_0x469e('0x6')]['if'](_0x469e('0x1d'),'ck-comment__input-actions--active')]},'children':[this[_0x469e('0x3d')],this[_0x469e('0x1')]]}]}),this[_0x469e('0x11')][_0x469e('0xc')](_0x469e('0x13'),(_0x2eb8a8,_0x47118a)=>{this['cancelButtonView'][_0x469e('0x1c')]('execute'),_0x47118a();}),this['on']('submit',(_0x5ee23b,_0x2e2073)=>{_0x2e2073['length']>0xfde8?(alert(_0x51a069(_0x1e08cc,_0x469e('0xf'),[_0x2e2073[_0x469e('0x16')],0xfde8])),_0x5ee23b[_0x469e('0x17')]()):this[_0x469e('0x28')][_0x469e('0x39')]('');},{'priority':'high'});}[_0x469e('0x10')](){super[_0x469e('0x10')](),this[_0x469e('0x11')][_0x469e('0x9')](this[_0x469e('0x23')]),this[_0x469e('0x14')]['add'](this[_0x469e('0x23')]);}[_0x469e('0x3c')](){return this[_0x469e('0x28')]||(this[_0x469e('0x28')]=new _0x29519f(this[_0x469e('0x1a')]),this[_0x469e('0x0')]=this[_0x469e('0x28')][_0x469e('0x3')]()[_0x469e('0x37')](()=>{if(this[_0x469e('0x2d')])return;const _0x33b8a2=this[_0x469e('0x28')];this[_0x469e('0x23')][_0x469e('0x2b')](_0x33b8a2['ui'][_0x469e('0x23')],this['element'][_0x469e('0x33')]),_0x33b8a2[_0x469e('0x32')][_0x469e('0xb')]['on'](_0x469e('0x7'),()=>this['value']=_0x33b8a2[_0x469e('0x1f')]()),_0x33b8a2[_0x469e('0x30')](_0x469e('0x22'))['to'](this),this[_0x469e('0x31')](this[_0x469e('0x28')]),this[_0x469e('0x1c')]('editorReady',this[_0x469e('0x28')]);})),this[_0x469e('0x0')];}['focus'](){this['editor']&&this['editor'][_0x469e('0x20')]();}async[_0x469e('0x24')](){this[_0x469e('0x2d')]||(this[_0x469e('0x2d')]=!0x0,this[_0x469e('0x28')]&&(await this[_0x469e('0x0')],await this[_0x469e('0x28')][_0x469e('0x24')](),this['fire'](_0x469e('0x35'),this[_0x469e('0x28')])),await super[_0x469e('0x24')]());}[_0x469e('0x8')](){const {locale:_0x4c0517}=this,_0x2aacfa=new _0x9d5eb3(_0x4c0517);return _0x2aacfa[_0x469e('0xd')]({'attributes':{'class':[_0x469e('0x25')]}}),_0x2aacfa['withText']=!0x0,_0x2aacfa[_0x469e('0x30')](_0x469e('0x2f'))['to'](this,_0x469e('0x2')),_0x2aacfa['on'](_0x469e('0x5'),()=>{this['fire'](_0x469e('0x29'),this['value']);}),_0x2aacfa['bind'](_0x469e('0x38'))['to'](this,_0x469e('0x15'),this,_0x469e('0x3b'),(_0x417439,_0x39af7e)=>!_0x39af7e&&!!_0x417439[_0x469e('0x21')]()),_0x2aacfa;}[_0x469e('0x2e')](){const {locale:_0x493bbf}=this,_0x57b145=new _0x9d5eb3(_0x493bbf);return _0x57b145['extendTemplate']({'attributes':{'class':[_0x469e('0x27')]}}),_0x57b145[_0x469e('0x2f')]=_0x51a069(_0x493bbf,_0x469e('0x34')),_0x57b145['withText']=!0x0,_0x57b145['on'](_0x469e('0x5'),()=>{this['editor']['setData'](''),this['fire'](_0x469e('0x1b'));}),_0x57b145;}[_0x469e('0x31')](_0x41bdb){const _0x400bae=this[_0x469e('0x14')],_0x8b0f76=new _0x573d01();[_0x41bdb['ui'][_0x469e('0x3a')],this[_0x469e('0x3d')],this['cancelButtonView']][_0x469e('0x36')](_0x38921e=>{_0x8b0f76['add'](_0x38921e),_0x400bae[_0x469e('0x2a')](_0x38921e[_0x469e('0x23')]);});const _0x2558e7=new _0x37cc3a({'focusables':_0x8b0f76,'focusTracker':_0x400bae});this['keystrokes']['set'](_0x469e('0xa'),(_0x347e3e,_0x256326)=>{_0x2558e7[_0x469e('0x3f')](),_0x256326();},{'priority':_0x469e('0x1e')}),this['keystrokes'][_0x469e('0xc')](_0x469e('0x4'),(_0xfa7d4c,_0x409352)=>{_0x2558e7[_0x469e('0xe')](),_0x409352();},{'priority':_0x469e('0x1e')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5992=['remove','focus','arrowleft','COMMENTS_ARCHIVE','listenTo','destroy','arrowdown','arrowup','_keystrokes','stopPropagation','isActive','_focusables','ck-comments-archive__info','selectstart','length','shift\x20+\x20tab','div','set','ck-comments-archive__content','element','_focusTracker','tab','auto','render','isEmpty','high'];(function(_0x22a385,_0x599293){const _0x1a7ed7=function(_0x2007ed){while(--_0x2007ed){_0x22a385['push'](_0x22a385['shift']());}};_0x1a7ed7(++_0x599293);}(_0x5992,0xf5));const _0x1a7e=function(_0x22a385,_0x599293){_0x22a385=_0x22a385-0x0;let _0x1a7ed7=_0x5992[_0x22a385];return _0x1a7ed7;};import{View as _0x175467,FocusCycler as _0x5eeef9}from'ckeditor5/src/ui.js';import{FocusTracker as _0x31e122,KeystrokeHandler as _0x3f404b}from'ckeditor5/src/utils.js';import{getTranslation as _0x1a15ea}from'../../../utils/common-translations.js';export default class K extends _0x175467{constructor(_0x5bbe7a,_0xc8b5c5){super(_0x5bbe7a),this[_0x1a7e('0x6')](_0x1a7e('0xd'),!_0xc8b5c5['length']),this[_0x1a7e('0x9')]=new _0x31e122(),this[_0x1a7e('0x17')]=new _0x3f404b(),this[_0x1a7e('0x0')]=_0xc8b5c5,this['_focusCycler']=new _0x5eeef9({'focusables':this[_0x1a7e('0x0')],'focusTracker':this['_focusTracker'],'keystrokeHandler':this['_keystrokes'],'actions':{'focusPrevious':_0x1a7e('0x4'),'focusNext':_0x1a7e('0xa')}}),this[_0x1a7e('0x13')](_0xc8b5c5,'add',()=>{this[_0x1a7e('0xd')]=!0x1;}),this[_0x1a7e('0x13')](_0xc8b5c5,_0x1a7e('0xf'),(_0x534f30,_0x3a48f3)=>{_0x3a48f3[_0x1a7e('0x19')]&&this[_0x1a7e('0x10')](),_0xc8b5c5[_0x1a7e('0x3')]||(this[_0x1a7e('0xd')]=!0x0);});const _0x4eb3e9=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':_0x1a7e('0xb'),'class':['ck','ck-comments-archive'],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':['ck-comments-archive__header\x20']},'children':[{'text':_0x1a15ea(_0x5bbe7a,_0x1a7e('0x12'))}]},{'tag':_0x1a7e('0x5'),'attributes':{'class':[_0x1a7e('0x7')]},'children':[{'tag':_0x1a7e('0x5'),'children':_0xc8b5c5},{'tag':'p','attributes':{'class':[_0x1a7e('0x1'),_0x4eb3e9['if'](_0x1a7e('0xd'),'ck-hidden',_0x562727=>!_0x562727)]},'children':[{'text':_0x1a15ea(_0x5bbe7a,'EMPTY_COMMENTS_ARCHIVE')}]}]}]});}[_0x1a7e('0xc')](){super[_0x1a7e('0xc')](),this[_0x1a7e('0x17')]['listenTo'](this[_0x1a7e('0x8')]);const _0x39a0fb=_0x49a4c3=>_0x49a4c3[_0x1a7e('0x18')]();this[_0x1a7e('0x17')]['set']('arrowright',_0x39a0fb),this['_keystrokes'][_0x1a7e('0x6')](_0x1a7e('0x11'),_0x39a0fb),this['_keystrokes'][_0x1a7e('0x6')](_0x1a7e('0x16'),_0x39a0fb),this['_keystrokes'][_0x1a7e('0x6')](_0x1a7e('0x15'),_0x39a0fb),this[_0x1a7e('0x13')](this['element'],_0x1a7e('0x2'),(_0x1215bd,_0x5d8190)=>{_0x5d8190[_0x1a7e('0x18')]();},{'priority':_0x1a7e('0xe')});}['destroy'](){super[_0x1a7e('0x14')](),this[_0x1a7e('0x9')][_0x1a7e('0x14')](),this[_0x1a7e('0x17')][_0x1a7e('0x14')]();}[_0x1a7e('0x10')](){this[_0x1a7e('0x8')]['focus']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x23aa=['focus','locale','_collapsedCommentsView','visibleViews','maxThreadTotalWeight','isEditMode','_handleInfoComment','weight','CommentView','resolvedCommentView','bind','_updateHasDirtyComment','resolvedBy','refreshVisibleViews','setTemplate','_config','add','change:isActive','remove','delegate','formatDateTime','collapse','listenTo','_rearrangeCollapse','resolved','updateComment','hasDirtyComment','count','_shouldCollapse','insert','from','element','removeComment','_rearrangeExpand','destroy','_handleRemoveCommentModel','equal','maxCommentsWhenCollapsed','_handleNewCommentModel','_calculatePosition','set','viewUid','isActive','resolveCommentThread','_model','resolvedAt','length','comments','_findOptimalIndex','maxCommentCharsWhenCollapsed','render','editorConfig','commentViews','delete','some','get','change:hasDirtyComment','createCollection'];(function(_0x3db342,_0x23aacc){const _0xe90a96=function(_0x4f2069){while(--_0x4f2069){_0x3db342['push'](_0x3db342['shift']());}};_0xe90a96(++_0x23aacc);}(_0x23aa,0x167));const _0xe90a=function(_0x3db342,_0x23aacc){_0x3db342=_0x3db342-0x0;let _0xe90a96=_0x23aa[_0x3db342];return _0xe90a96;};import{View as _0x399283}from'ckeditor5/src/ui.js';import{diff as _0x211033,Collection as _0x1d5138}from'ckeditor5/src/utils.js';import{getTranslation as _0x520fad}from'../../../utils/common-translations.js';import _0x21759f from'./collapsedcommentsview.js';export default class vt extends _0x399283{constructor(_0x1108a7,_0x36f96b,_0x1b1673){super(_0x1108a7),this[_0xe90a('0x1d')](_0xe90a('0xf'),!0x1),this['set'](_0xe90a('0x23'),_0x36f96b['comments'][_0xe90a('0x23')]),this[_0xe90a('0x1d')](_0xe90a('0x1f'),!0x1),this[_0xe90a('0x21')]=_0x36f96b,this[_0xe90a('0x4')]=_0x1b1673,this['commentViews']=this[_0xe90a('0x2e')](),this[_0xe90a('0x32')]=this[_0xe90a('0x2e')](),this[_0xe90a('0x38')]=null,this[_0xe90a('0x31')]=new _0x21759f(_0x1108a7),this[_0xe90a('0x31')][_0xe90a('0x39')]('count')['to'](this,_0xe90a('0x23'),_0x5cf841=>_0x5cf841-this[_0xe90a('0x4')][_0xe90a('0x1a')]);for(const _0x1f7cab of _0x36f96b[_0xe90a('0x24')])this[_0xe90a('0x1b')](_0x1f7cab);this[_0xe90a('0x35')](),this[_0xe90a('0xb')](_0x36f96b[_0xe90a('0x24')],'add',(_0x396e29,_0x112a53)=>{const _0x3bce0d=this[_0xe90a('0x1c')](_0x112a53);this[_0xe90a('0x23')]++,this[_0xe90a('0x1b')](_0x112a53,_0x3bce0d),this[_0xe90a('0x2')]();}),this[_0xe90a('0xb')](_0x36f96b[_0xe90a('0x24')],_0xe90a('0x7'),(_0x5f3675,_0x2e7792)=>{this['length']--,this[_0xe90a('0x18')](_0x2e7792),this[_0xe90a('0x2')]();}),this[_0xe90a('0xb')](_0x36f96b,'commentUpdated',()=>this[_0xe90a('0x2')]()),this[_0xe90a('0xb')](_0x36f96b,'change:isResolved',()=>this[_0xe90a('0x35')]()),this['on'](_0xe90a('0x6'),()=>this[_0xe90a('0x2')]()),this['on'](_0xe90a('0x2d'),()=>this[_0xe90a('0x2')]()),this[_0xe90a('0x3')]({'tag':'ul','attributes':{'class':['ck-thread__comments']},'children':this[_0xe90a('0x32')]});}get[_0xe90a('0x11')](){return this[_0xe90a('0x21')][_0xe90a('0x36')]>this[_0xe90a('0x4')][_0xe90a('0x33')]&&!this[_0xe90a('0x1f')]&&!this[_0xe90a('0xf')];}[_0xe90a('0x27')](){super[_0xe90a('0x27')](),this[_0xe90a('0x2')]();}[_0xe90a('0x2f')](){this[_0xe90a('0x14')][_0xe90a('0x2f')]();}[_0xe90a('0x17')](){this['_collapsedCommentsView'][_0xe90a('0x17')]();for(const _0x4aa974 of this[_0xe90a('0x29')])_0x4aa974[_0xe90a('0x17')]();super['destroy']();}[_0xe90a('0x2')](){this[_0xe90a('0x11')]?this[_0xe90a('0xc')]():this['_rearrangeExpand']();}[_0xe90a('0x1b')](_0x3cc543,_0x5425d5){const _0x1871a4=new this[(_0xe90a('0x4'))][(_0xe90a('0x37'))](this['locale'],_0x3cc543,{'maxCommentCharsWhenCollapsed':this[_0xe90a('0x4')][_0xe90a('0x26')],'formatDateTime':this[_0xe90a('0x4')]['formatDateTime'],'editorConfig':this[_0xe90a('0x4')]['editorConfig']});_0x1871a4[_0xe90a('0x1e')]=_0x3cc543['id'],_0x1871a4[_0xe90a('0x8')](_0xe90a('0x15'))['to'](this),_0x1871a4[_0xe90a('0x8')](_0xe90a('0xe'))['to'](this),_0x1871a4[_0xe90a('0x8')](_0xe90a('0x20'))['to'](this),_0x1871a4[_0xe90a('0x8')]('editorReady')['to'](this),_0x1871a4['delegate']('editorDestroyed')['to'](this),this[_0xe90a('0xb')](_0x1871a4,'change:isEditMode',()=>this[_0xe90a('0x0')]()),this[_0xe90a('0x29')][_0xe90a('0x5')](_0x1871a4,_0x5425d5);}['_calculatePosition'](_0x5c1930){const _0x3f4561=this[_0xe90a('0x21')][_0xe90a('0x25')](_0x5c1930);return this[_0xe90a('0x38')]?this['resolvedCommentView']['authoredAt']>_0x5c1930['authoredAt']?_0x3f4561-0x1:_0x3f4561:_0x3f4561-0x1;}[_0xe90a('0x35')](){if(this[_0xe90a('0x21')][_0xe90a('0x1')]&&this[_0xe90a('0x21')]['resolvedAt']){const _0x3c35f3={'id':_0xe90a('0xd'),'author':this[_0xe90a('0x21')]['resolvedBy'],'authoredAt':this[_0xe90a('0x21')][_0xe90a('0x22')],'content':_0x520fad(this[_0xe90a('0x30')],'Marked\x20as\x20resolved'),'attributes':{}};this[_0xe90a('0x38')]=new this[(_0xe90a('0x4'))][(_0xe90a('0x37'))](this[_0xe90a('0x30')],_0x3c35f3,{'maxCommentCharsWhenCollapsed':this['_config'][_0xe90a('0x26')],'formatDateTime':this['_config'][_0xe90a('0x9')],'editorConfig':this['_config'][_0xe90a('0x28')],'isSystemComment':!0x0}),this['commentViews'][_0xe90a('0x5')](this[_0xe90a('0x38')],this[_0xe90a('0x21')][_0xe90a('0x25')](_0x3c35f3));}else this[_0xe90a('0x38')]&&(this[_0xe90a('0x29')][_0xe90a('0x7')](this[_0xe90a('0x38')]),this[_0xe90a('0x38')][_0xe90a('0x17')](),this['resolvedCommentView']=null);this[_0xe90a('0x2')]();}[_0xe90a('0x18')](_0x1adf5b){const _0x1e79f6=this[_0xe90a('0x29')][_0xe90a('0x7')](_0x1adf5b['id']);this['stopListening'](_0x1e79f6),_0x1e79f6[_0xe90a('0x34')]&&this['_updateHasDirtyComment'](),_0x1e79f6[_0xe90a('0x17')]();}[_0xe90a('0x0')](){this[_0xe90a('0xf')]=Array[_0xe90a('0x13')](this['commentViews'])[_0xe90a('0x2b')](_0x433526=>_0x433526['isEditMode']);}[_0xe90a('0xc')](){const _0x361ab3=function(_0x46f3c9){const _0x58ae9e=new _0x1d5138();for(const _0x4323bc of _0x46f3c9)_0x58ae9e[_0xe90a('0x5')](_0x4323bc);return _0x58ae9e;}(this['commentViews']),_0x559b96=this['_collapsedCommentsView'][_0xe90a('0x10')];for(let _0xf533ac=0x1;_0xf533ac<=_0x559b96;_0xf533ac++)_0x361ab3['remove'](0x1);for(const _0x352929 of _0x361ab3)_0x352929[_0xe90a('0xa')]();_0x559b96>0x0&&_0x361ab3[_0xe90a('0x5')](this[_0xe90a('0x31')],0x1),is(_0x211033(Array[_0xe90a('0x13')](this[_0xe90a('0x32')]),Array['from'](_0x361ab3)),this[_0xe90a('0x32')],_0x361ab3);}[_0xe90a('0x16')](){is(_0x211033(Array[_0xe90a('0x13')](this[_0xe90a('0x32')]),Array['from'](this[_0xe90a('0x29')])),this['visibleViews'],this['commentViews']);for(const _0x235605 of this[_0xe90a('0x32')])_0x235605['expand']();}}function is(_0x21416a,_0x46e4d1,_0x2b6d9e){let _0x18c6d7=0x0;for(const _0x5e9b0a of _0x21416a)switch(_0x5e9b0a){case _0xe90a('0x12'):_0x46e4d1[_0xe90a('0x5')](_0x2b6d9e[_0xe90a('0x2c')](_0x18c6d7),_0x18c6d7),_0x18c6d7++;break;case _0xe90a('0x2a'):_0x46e4d1[_0xe90a('0x7')](_0x18c6d7);break;case _0xe90a('0x19'):_0x18c6d7++;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x166e=['bindTemplate','isVisible','ck-annotation__actions','execute','Comment\x20was\x20made\x20on\x20an\x20element','isResolvable','tooltip','remove','div','listenTo','context','bind','isResolved','ck-context','value','offsetWidth','ck-thread__header','length','Reopen','_trimContextValue','substring','...','.ck-context','hasContext','span','reopenButtonView','overlay','_attachContextActions','scrollWidth','ck-context--quotes','_createReopenButton','ck-context__value','isEnabled','ck-context-wrapper','mouseleave','label','render','setTemplate','_model','locale','querySelector'];(function(_0x72c18d,_0x166e2b){const _0x5cf6cc=function(_0x20974b){while(--_0x20974b){_0x72c18d['push'](_0x72c18d['shift']());}};_0x5cf6cc(++_0x166e2b);}(_0x166e,0x82));const _0x5cf6=function(_0x72c18d,_0x166e2b){_0x72c18d=_0x72c18d-0x0;let _0x5cf6cc=_0x166e[_0x72c18d];return _0x5cf6cc;};import{View as _0x35243d,ButtonView as _0x23fcc6}from'ckeditor5/src/ui.js';import{getTranslation as _0x10f5d0}from'../../../utils/common-translations.js';import _0x5a6d4f from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Tt extends _0x35243d{constructor(_0x503420,_0x192253){super(_0x503420);const _0x205a71=this[_0x5cf6('0x22')];this[_0x5cf6('0x1f')]=_0x192253,this[_0x5cf6('0x12')]=this[_0x5cf6('0x17')](),this[_0x5cf6('0x4')](_0x5cf6('0x10'))['to'](this[_0x5cf6('0x1f')],_0x5cf6('0x3'),_0x3af9cb=>!!_0x3af9cb),this[_0x5cf6('0x4')]('contextValue')['to'](this[_0x5cf6('0x1f')],_0x5cf6('0x3'),_0x3a7d06=>_0x3a7d06&&_0x3a7d06['value']?this[_0x5cf6('0xc')](_0x3a7d06[_0x5cf6('0x7')]):_0x10f5d0(this[_0x5cf6('0x20')],_0x5cf6('0x26'))),this[_0x5cf6('0x1e')]({'tag':_0x5cf6('0x1'),'attributes':{'class':[_0x5cf6('0x9')]},'children':[{'tag':_0x5cf6('0x1'),'attributes':{'class':[_0x5cf6('0x1a')]},'children':[{'tag':'div','attributes':{'class':[_0x5cf6('0x6'),_0x205a71['if'](_0x5cf6('0x10'),_0x5cf6('0x16'))]},'children':[{'tag':_0x5cf6('0x11'),'attributes':{'class':[_0x5cf6('0x18')]},'children':[{'text':_0x205a71['to']('contextValue')}]}]}]},{'tag':_0x5cf6('0x1'),'attributes':{'class':[_0x5cf6('0x24')]},'children':[this[_0x5cf6('0x12')]]}]});}[_0x5cf6('0x1d')](){super[_0x5cf6('0x1d')](),this[_0x5cf6('0x14')]();}[_0x5cf6('0x17')](){const _0xe21080=new _0x23fcc6(this[_0x5cf6('0x20')]);return _0xe21080[_0x5cf6('0x1c')]=_0x10f5d0(this['locale'],_0x5cf6('0xb')),_0xe21080[_0x5cf6('0x28')]=_0x10f5d0(this[_0x5cf6('0x20')],_0x5cf6('0xb')),_0xe21080['icon']=_0x5a6d4f,_0xe21080[_0x5cf6('0x4')](_0x5cf6('0x19'))['to'](this['_model'],'isReadOnly',_0x4e3c88=>!_0x4e3c88),_0xe21080[_0x5cf6('0x4')](_0x5cf6('0x23'))['to'](this['_model'],_0x5cf6('0x27'),this[_0x5cf6('0x1f')],_0x5cf6('0x5'),(_0x1c522f,_0x5de159)=>_0x1c522f&&_0x5de159),_0xe21080['on'](_0x5cf6('0x25'),()=>{this['fire']('reopenCommentThread',this[_0x5cf6('0x1f')]['id']);}),_0xe21080;}[_0x5cf6('0xc')](_0x5ae1ab){if(_0x5ae1ab[_0x5cf6('0xa')]<0x96)return _0x5ae1ab;const _0x13e39a=_0x5ae1ab['lastIndexOf']('\x20',0x93);return _0x5ae1ab[_0x5cf6('0xd')](0x0,_0x13e39a>-0x1?_0x13e39a:0x93)+_0x5cf6('0xe');}[_0x5cf6('0x14')](){const _0x29a63e=this['element']['querySelector'](_0x5cf6('0xf')),_0x1e258c=_0x29a63e[_0x5cf6('0x21')]('.ck-context__value');this[_0x5cf6('0x2')](_0x29a63e,'mouseenter',()=>{_0x1e258c[_0x5cf6('0x8')]<_0x1e258c[_0x5cf6('0x15')]&&_0x29a63e['classList']['add'](_0x5cf6('0x13'));}),this[_0x5cf6('0x2')](_0x29a63e,_0x5cf6('0x1b'),()=>{_0x29a63e['classList'][_0x5cf6('0x0')](_0x5cf6('0x13'));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4c34=['ck-comment__input-container--active','value','userView','then','destroy','ck-thread__user','focusTracker','showInput','ck-thread__input','isFocused','setTemplate','editorReady','ck-comment__input-container','div','editor','bindTemplate','commentInputView','extendTemplate','delegate','change:showInput','showButtons','set'];(function(_0x17979,_0x4c34d9){var _0x1d35e1=function(_0x271396){while(--_0x271396){_0x17979['push'](_0x17979['shift']());}};_0x1d35e1(++_0x4c34d9);}(_0x4c34,0x64));var _0x1d35=function(_0x17979,_0x4c34d9){_0x17979=_0x17979-0x0;var _0x1d35e1=_0x4c34[_0x17979];return _0x1d35e1;};import{View as _0x4a7bc3}from'ckeditor5/src/ui.js';import _0x230c24 from'./commentinputview.js';import{UserView as _0x92db5d}from'ckeditor5-collaboration/src/collaboration-core.js';export default class Ct extends _0x4a7bc3{constructor(_0x49669f,_0x2378e9,_0x5b896b){super(_0x49669f),this['commentInputView']=new _0x230c24(_0x49669f,_0x5b896b),this[_0x1d35('0x4')]['bind'](_0x1d35('0x8'))['to'](this[_0x1d35('0x4')][_0x1d35('0x10')],_0x1d35('0x13'),this[_0x1d35('0x4')],_0x1d35('0xb'),(_0x3b5fea,_0x136fbf)=>_0x3b5fea||!!_0x136fbf),this[_0x1d35('0x9')]('showInput',!0x1),this['on'](_0x1d35('0x7'),()=>{this[_0x1d35('0x11')]&&!this['commentInputView'][_0x1d35('0x2')]&&this[_0x1d35('0x4')]['createEditor']();}),this[_0x1d35('0x4')]['delegate'](_0x1d35('0x15'))['to'](this),this[_0x1d35('0x4')][_0x1d35('0x6')]('editorDestroyed')['to'](this),this[_0x1d35('0xc')]=new _0x92db5d(_0x49669f,_0x2378e9),this[_0x1d35('0xc')][_0x1d35('0x5')]({'attributes':{'class':_0x1d35('0xf')}}),this[_0x1d35('0x4')][_0x1d35('0x5')]({'attributes':{'class':_0x1d35('0x12')}}),this[_0x1d35('0x14')]({'tag':_0x1d35('0x1'),'attributes':{'class':[_0x1d35('0x0'),this[_0x1d35('0x3')]['if']('showInput',_0x1d35('0xa'))]},'children':[this[_0x1d35('0xc')],this['commentInputView']]});}['destroy'](){return this[_0x1d35('0x4')][_0x1d35('0xe')]()[_0x1d35('0xd')](()=>super[_0x1d35('0xe')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2aaf=['fire','commentThreadInputView','isActive','isResolved','cancelConfirm','ck-comment--resolve','div','label','Resolve','ck-thread--','render','resolveButton','add','.ck-thread__container','ck-reset_all-excluded','extendTemplate','resolveCommentThread','locale','_boundFirstCommentView','archivedAt','change:archivedAt','commentsListView','_cancelAllConfirms','removeButton','commentViews','execute','commentThreadHeaderView','bindTemplate','createCollection','_model','high','element','then','_bindFirstCommentView','isEnabled','_createResolveButton','has','Delete\x20comment\x20thread?','actionIndicator','bind','change:isActive','querySelector','ck-thread__container','getTemplate','ck-thread--remove-confirmation','listenTo','isVisible','addMany','setTemplate','length','ck-thread--unlinked','remove','isResolvable','commentThreadChildren','containerElement','isSystemComment','tooltip','icon'];(function(_0x3b6d04,_0x2aafb3){const _0x2d2f23=function(_0x409d32){while(--_0x409d32){_0x3b6d04['push'](_0x3b6d04['shift']());}};_0x2d2f23(++_0x2aafb3);}(_0x2aaf,0x15d));const _0x2d2f=function(_0x3b6d04,_0x2aafb3){_0x3b6d04=_0x3b6d04-0x0;let _0x2d2f23=_0x2aaf[_0x3b6d04];return _0x2d2f23;};import{ConfirmMixin as _0x4225d3}from'ckeditor5-collaboration/src/collaboration-core.js';import{ButtonView as _0x1839d0}from'ckeditor5/src/ui.js';import{icons as _0x19904d}from'ckeditor5/src/core.js';import _0x2f1efc from'./basecommentthreadview.js';import{getTranslation as _0x5811b0}from'../../../utils/common-translations.js';export default class ft extends _0x4225d3(_0x2f1efc){constructor(_0xbf039b,_0xba66e8,_0x22f839,_0xa20e48){super(_0xbf039b,_0xba66e8,_0x22f839,_0xa20e48),this['commentThreadChildren']=this[_0x2d2f('0x1b')](),this[_0x2d2f('0x34')][_0x2d2f('0x2e')]([this[_0x2d2f('0x14')],this[_0x2d2f('0x0')]]),this[_0x2d2f('0x1c')][_0x2d2f('0x12')]&&this[_0x2d2f('0x34')][_0x2d2f('0xb')](this[_0x2d2f('0x19')],0x0),this['_model']['on'](_0x2d2f('0x13'),(_0x569e19,_0x466a42,_0x29ed43)=>{_0x29ed43?this[_0x2d2f('0x34')][_0x2d2f('0x23')](this['commentThreadHeaderView'])||this['commentThreadChildren']['add'](this[_0x2d2f('0x19')],0x0):this[_0x2d2f('0x34')]['remove'](this[_0x2d2f('0x19')]);}),this['set'](_0x2d2f('0x25'),null),this[_0x2d2f('0x35')]=null,this['_boundFirstCommentView']=null,this[_0x2d2f('0x10')]=_0xbf039b,this[_0x2d2f('0xa')]=this['_createResolveButton'](),this[_0x2d2f('0x2f')](this['getTemplate']()),this['on'](_0x2d2f('0x27'),(_0x5aaf99,_0x49f63d,_0x4ed7f3)=>{_0x4ed7f3||this[_0x2d2f('0x15')]();}),this[_0x2d2f('0x2c')](this[_0x2d2f('0x1c')],'change:isReadOnly',(_0x480fd3,_0x3372a4,_0x11a715)=>{_0x11a715&&this[_0x2d2f('0x15')]();}),this[_0x2d2f('0x30')]>0x0&&this[_0x2d2f('0x20')](),this['listenTo'](this['commentsListView'][_0x2d2f('0x17')],'add',()=>{this[_0x2d2f('0x20')]();});}[_0x2d2f('0x2a')](){const _0x58c7b1=this[_0x2d2f('0x1a')];return{'tag':'div','attributes':{'class':['ck-thread',_0x2d2f('0xd'),_0x58c7b1['if'](_0x2d2f('0x1'),'ck-thread--active'),_0x58c7b1['if']('isUnlinked',_0x2d2f('0x31')),_0x58c7b1['if']('isConfirm',_0x2d2f('0x2b')),_0x58c7b1['to'](_0x2d2f('0x25'),_0x126a36=>_0x126a36?_0x2d2f('0x8')+_0x126a36:'')],'data-thread-id':this[_0x2d2f('0x1c')]['id'],'tabindex':-0x1},'children':[{'tag':_0x2d2f('0x5'),'attributes':{'class':_0x2d2f('0x29')},'children':this[_0x2d2f('0x34')]}]};}[_0x2d2f('0x9')](){super[_0x2d2f('0x9')](),this[_0x2d2f('0x35')]=this[_0x2d2f('0x1e')][_0x2d2f('0x28')](_0x2d2f('0xc'));}[_0x2d2f('0x15')](){this['cancelConfirm']();for(const _0x48a82a of this[_0x2d2f('0x14')][_0x2d2f('0x17')])_0x48a82a[_0x2d2f('0x3')]();}[_0x2d2f('0x20')](){const {locale:_0x4da982}=this,_0x5a1685=this[_0x2d2f('0x14')][_0x2d2f('0x17')]['get'](0x0);_0x5a1685===this[_0x2d2f('0x11')]||_0x5a1685[_0x2d2f('0x36')]||(this['_boundFirstCommentView']=_0x5a1685,this['unbind'](_0x2d2f('0x25')),this[_0x2d2f('0x26')](_0x2d2f('0x25'))['to'](_0x5a1685,_0x2d2f('0x25'),_0xc3eb7c=>_0x2d2f('0x32')===_0xc3eb7c?_0x2d2f('0x32'):null),_0x5a1685['placeholder']=_0x5811b0(_0x4da982,'Write\x20a\x20comment...'),_0x5a1685[_0x2d2f('0x16')]['on'](_0x2d2f('0x18'),_0x2ee4e6=>{_0x2ee4e6['stop'](),this['showConfirm'](_0x5811b0(_0x4da982,_0x2d2f('0x24')),this[_0x2d2f('0x35')])[_0x2d2f('0x1f')](()=>{this[_0x2d2f('0x39')]('removeCommentThread');});},{'priority':_0x2d2f('0x1d')}),_0x5a1685['actionBar'][_0x2d2f('0xb')](this['resolveButton'],0x0));}[_0x2d2f('0x22')](){const _0x5d7e50=new _0x1839d0(this[_0x2d2f('0x10')]);return _0x5d7e50[_0x2d2f('0x6')]=_0x5811b0(this['locale'],_0x2d2f('0x7')),_0x5d7e50[_0x2d2f('0x37')]=_0x5811b0(this[_0x2d2f('0x10')],'Resolve'),_0x5d7e50[_0x2d2f('0x38')]=_0x19904d['check'],_0x5d7e50[_0x2d2f('0xe')]({'attributes':{'class':_0x2d2f('0x4')}}),_0x5d7e50[_0x2d2f('0x26')](_0x2d2f('0x21'))['to'](this[_0x2d2f('0x1c')],'isReadOnly',_0x439311=>!_0x439311),_0x5d7e50[_0x2d2f('0x26')](_0x2d2f('0x2d'))['to'](this[_0x2d2f('0x1c')],_0x2d2f('0x33'),this[_0x2d2f('0x1c')],_0x2d2f('0x2'),(_0x3228e1,_0x22d1d9)=>_0x3228e1&&!_0x22d1d9),_0x5d7e50['on'](_0x2d2f('0x18'),()=>{this[_0x2d2f('0x39')](_0x2d2f('0xf'),this[_0x2d2f('0x1c')]['id']);}),_0x5d7e50;}}
|