@ckeditor/ckeditor5-comments 0.0.0-nightly-20240124.0 → 0.0.0-nightly-20240126.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 _0x54d2=['map','editor','dataInsert','afterInit','define','_handleImportedData','addCommentThread','listenTo','plugins','config','forEach','get','collaboration.channelId','importWord','execute','commands'];(function(_0x193d7e,_0x54d2cd){const _0x5b0c94=function(_0x5595d8){while(--_0x5595d8){_0x193d7e['push'](_0x193d7e['shift']());}};_0x5b0c94(++_0x54d2cd);}(_0x54d2,0x6a));const _0x5b0c=function(_0x193d7e,_0x54d2cd){_0x193d7e=_0x193d7e-0x0;let _0x5b0c94=_0x54d2[_0x193d7e];return _0x5b0c94;};import{Plugin as _0x4f6dab}from'ckeditor5/src/core.js';import{priorities as _0x21244f}from'ckeditor5/src/utils.js';import{Users as _0x231690}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x305b2e from'../commentsrepository.js';export default class Z extends _0x4f6dab{constructor(_0x4a0e36){super(_0x4a0e36),this['editor'][_0x5b0c('0xf')][_0x5b0c('0xa')]('importWord.formatting.comments','basic');}[_0x5b0c('0x9')](){const _0x202faa=this[_0x5b0c('0x7')],_0x2340fd=_0x202faa[_0x5b0c('0x5')][_0x5b0c('0x1')](_0x5b0c('0x3')),_0x5912bd=_0x202faa[_0x5b0c('0xe')][_0x5b0c('0x1')](_0x231690);_0x2340fd&&(_0x2340fd['on'](_0x5b0c('0x4'),(_0x1acf51,[,_0xefc103])=>{_0xefc103['collaboration_features']={'comments':!0x0,'user_id':_0x5912bd['me']['id']};},{'priority':_0x21244f['high']+0xa}),this[_0x5b0c('0xd')](_0x2340fd,_0x5b0c('0x8'),this[_0x5b0c('0xb')]));}[_0x5b0c('0xb')](_0x50dc4e,_0xbe34bd){const {comment_threads:_0x31b753}=_0xbe34bd;_0x31b753&&_0x31b753[_0x5b0c('0x0')](({thread_id:_0x104c17,comments:_0x43f9c5,is_resolved:_0x1ec853})=>{const _0x37c280=new Date(),_0x89caf9=_0x43f9c5[_0x5b0c('0x6')](({author:_0x5a5103,content:_0x3d0a3f,created_at:_0x423b89})=>({'content':_0x3d0a3f,'authorId':this[_0x5b0c('0x7')]['plugins']['get'](_0x231690)['me']['id'],'createdAt':_0x37c280,'attributes':{'@external':{'authorName':_0x5a5103,'createdAt':_0x423b89?new Date(_0x423b89):new Date(),'source':_0x5b0c('0x3')}}})),_0x4c80a2=this[_0x5b0c('0x7')][_0x5b0c('0xf')]['get'](_0x5b0c('0x2'));this[_0x5b0c('0x7')][_0x5b0c('0xe')][_0x5b0c('0x1')](_0x305b2e)[_0x5b0c('0xc')]({'channelId':_0x4c80a2,'threadId':_0x104c17,'comments':_0x89caf9,'resolvedAt':_0x1ec853?_0x37c280:null});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3ba0=['get','destroy','focus','assign','defaultPlugins','placeholder','data','childCount','set','createRoot','getChild','getRoot','setSelection','document','fire','config','low','change:placeholder','initialData','plugins','editing','end','ready','init','view','model','_updatePlaceholder','placeholderElement','then'];(function(_0x6c8b3c,_0x3ba093){const _0x512df1=function(_0x240808){while(--_0x240808){_0x6c8b3c['push'](_0x6c8b3c['shift']());}};_0x512df1(++_0x3ba093);}(_0x3ba0,0x80));const _0x512d=function(_0x6c8b3c,_0x3ba093){_0x6c8b3c=_0x6c8b3c-0x0;let _0x512df1=_0x3ba0[_0x6c8b3c];return _0x512df1;};import{Editor as _0x53c7b5,DataApiMixin as _0xe237ea}from'ckeditor5/src/core.js';import _0x4841ca from'./commenteditorui.js';import{ObservableMixin as _0x54d4ec}from'ckeditor5/src/utils.js';import{enablePlaceholder as _0xdab53e,disablePlaceholder as _0x41c782}from'ckeditor5/src/engine.js';import{Clipboard as _0x102983}from'ckeditor5/src/clipboard.js';import{Enter as _0x197f05,ShiftEnter as _0x1f794d}from'ckeditor5/src/enter.js';import{SelectAll as _0x4167b8}from'ckeditor5/src/select-all.js';import{Typing as _0x32b82e}from'ckeditor5/src/typing.js';import{Undo as _0xdac866}from'ckeditor5/src/undo.js';import{Paragraph as _0x3edf74}from'ckeditor5/src/paragraph.js';const Mt=[_0x102983,_0x197f05,_0x1f794d,_0x4167b8,_0x32b82e,_0xdac866,_0x3edf74];class Nt extends _0x54d4ec(_0xe237ea(_0x53c7b5)){constructor(_0x23c19d={}){(_0x23c19d=Object[_0x512d('0x14')]({},_0x23c19d))[_0x512d('0x7')]||(_0x23c19d[_0x512d('0x7')]=Nt[_0x512d('0x15')]),super(_0x23c19d),this['ui']=new _0x4841ca(this),this[_0x512d('0x19')](_0x512d('0x16'),''),this[_0x512d('0xd')][_0x512d('0x1')]['on']('change',()=>this[_0x512d('0xe')](),{'priority':_0x512d('0x4')}),this['on'](_0x512d('0x5'),()=>this[_0x512d('0xe')]()),this[_0x512d('0xd')][_0x512d('0x1')][_0x512d('0x1a')]();}['create'](){const _0x19ad55=this[_0x512d('0x3')][_0x512d('0x11')](_0x512d('0x6'))||'';return this['initPlugins']()[_0x512d('0x10')](()=>this['ui'][_0x512d('0xb')]())[_0x512d('0x10')](()=>this[_0x512d('0x17')][_0x512d('0xb')](_0x19ad55))[_0x512d('0x10')](()=>this[_0x512d('0x2')](_0x512d('0xa')));}[_0x512d('0x12')](){return super[_0x512d('0x12')]()[_0x512d('0x10')](()=>this['ui'][_0x512d('0x12')]());}[_0x512d('0x13')](){this['model']['change'](_0x26600c=>{const _0x4b4000=this[_0x512d('0xd')]['document'][_0x512d('0x1c')](),_0x393da4=_0x4b4000&&_0x4b4000[_0x512d('0x1b')](_0x4b4000[_0x512d('0x18')]-0x1);_0x26600c[_0x512d('0x0')](_0x393da4,_0x512d('0x9')),this[_0x512d('0x8')][_0x512d('0xc')][_0x512d('0x13')]();});}[_0x512d('0xe')](){const _0x3aea7b=this[_0x512d('0x8')]['view'],_0x18be3c=_0x3aea7b[_0x512d('0x1')]['getRoot'](),_0x3bad34=_0x18be3c[_0x512d('0x1b')](0x0);_0x18be3c[_0x512d('0x18')]>0x1||!_0x3bad34||'p'!=_0x3bad34['name']?this[_0x512d('0xf')]&&this[_0x512d('0xf')][_0x512d('0x16')]&&(_0x41c782(_0x3aea7b,this[_0x512d('0xf')]),this['placeholderElement']=void 0x0):(this[_0x512d('0x16')]&&(_0x3bad34[_0x512d('0x16')]=this[_0x512d('0x16')]),_0xdab53e({'view':_0x3aea7b,'element':_0x3bad34,'keepOnFocus':!0x0}),this[_0x512d('0xf')]=_0x3bad34);}}Nt[_0x512d('0x15')]=Mt;export default Nt;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x27dc=['destroy','init','bind','locale','isFocused','editing','element','focusTracker','attachDomRoot','name','setEditableElement','editable','ready','view','editor','document'];(function(_0x4f12d7,_0x27dc26){const _0x43998f=function(_0x41eebe){while(--_0x41eebe){_0x4f12d7['push'](_0x4f12d7['shift']());}};_0x43998f(++_0x27dc26);}(_0x27dc,0x1b0));const _0x4399=function(_0x4f12d7,_0x27dc26){_0x4f12d7=_0x4f12d7-0x0;let _0x43998f=_0x27dc[_0x4f12d7];return _0x43998f;};import{EditorUI as _0x3645fa}from'ckeditor5/src/ui.js';import _0x6d8a27 from'./commenteditoruiview.js';export default class Ft extends _0x3645fa{constructor(_0x5a6654){super(_0x5a6654),this[_0x4399('0xd')]=new _0x6d8a27(_0x5a6654[_0x4399('0x3')],_0x5a6654[_0x4399('0x5')]['view']);}get[_0x4399('0x6')](){return this[_0x4399('0xd')]['element'];}[_0x4399('0x1')](){const _0x37e62a=this[_0x4399('0xe')][_0x4399('0x5')][_0x4399('0xd')],_0x2309db=this[_0x4399('0xd')][_0x4399('0xb')],_0x1c6bce=_0x37e62a[_0x4399('0xf')]['getRoot']();_0x2309db[_0x4399('0x9')]=_0x1c6bce['rootName'],this[_0x4399('0xd')]['render']();const _0xa66bea=_0x2309db[_0x4399('0x6')];this[_0x4399('0xa')](_0x2309db['name'],_0xa66bea),this[_0x4399('0xd')][_0x4399('0xb')][_0x4399('0x2')](_0x4399('0x4'))['to'](this[_0x4399('0x7')]),_0x37e62a[_0x4399('0x8')](_0xa66bea),this['fire'](_0x4399('0xc'));}[_0x4399('0x0')](){super['destroy'](),this['view'][_0x4399('0x0')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d97=['setTemplate','comment','ck-editor__main','div','render','_createVoiceLabel','ck-rounded-corners','ck-reset','ck-comment__input','uiLanguage','main','cke-editor__aria-label_','uiLanguageDirection','ck-editor','ck-voice-label','_voiceLabelView','editable','extendTemplate','presentation','Comment\x20editor','text'];(function(_0x52d0cf,_0x4d9728){const _0x32ea13=function(_0x4316dc){while(--_0x4316dc){_0x52d0cf['push'](_0x52d0cf['shift']());}};_0x32ea13(++_0x4d9728);}(_0x4d97,0x1c0));const _0x32ea=function(_0x52d0cf,_0x4d9728){_0x52d0cf=_0x52d0cf-0x0;let _0x32ea13=_0x4d97[_0x52d0cf];return _0x32ea13;};import{InlineEditableUIView as _0x15c717,EditorUIView as _0x47052e,LabelView as _0x119e0f}from'ckeditor5/src/ui.js';import{uid as _0x4c45b3}from'ckeditor5/src/utils.js';import{getTranslation as _0x27f68b}from'../../../utils/common-translations.js';export default class Rt extends _0x47052e{constructor(_0x4cec75,_0x2c8e0c){super(_0x4cec75);const _0x47aa44=_0x4c45b3();this[_0x32ea('0x3')]=this['createCollection'](),this['editable']=new _0x15c717(_0x4cec75,_0x2c8e0c),this[_0x32ea('0x8')]=this[_0x32ea('0x13')](_0x47aa44,_0x4cec75),this[_0x32ea('0xe')]({'tag':_0x32ea('0x11'),'attributes':{'class':[_0x32ea('0x0'),_0x32ea('0x6'),_0x32ea('0x14'),_0x32ea('0x1')],'role':_0x32ea('0xf'),'dir':_0x4cec75[_0x32ea('0x5')],'lang':_0x4cec75[_0x32ea('0x2')],'aria-labelledby':_0x32ea('0x4')+_0x47aa44},'children':[this['_voiceLabelView'],{'tag':_0x32ea('0x11'),'attributes':{'class':_0x32ea('0x10'),'role':_0x32ea('0xb')},'children':this[_0x32ea('0x3')]}]});}[_0x32ea('0x12')](){super['render'](),this[_0x32ea('0x3')]['add'](this['editable']);}['focus'](){this[_0x32ea('0x9')]['element']['focus']();}[_0x32ea('0x13')](_0x393397,_0x32d692){const _0x193169=new _0x119e0f();return _0x193169[_0x32ea('0xd')]=_0x27f68b(_0x32d692,_0x32ea('0xc')),_0x193169[_0x32ea('0xa')]({'attributes':{'id':'ck-editor__aria-label_'+_0x393397,'class':_0x32ea('0x7')}}),_0x193169;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2285=['submitCommentThread','reopenCommentThread','remove','_isAttached','resolve','resolveCommentThread','isResolved','submit','_localUser','removeCommentThread','updateComment','stopListening','model','removeComment','reopen','addComment','listenTo','view','getComment'];(function(_0x14f7c8,_0x228569){var _0x2c8d9d=function(_0x2f9fd9){while(--_0x2f9fd9){_0x14f7c8['push'](_0x14f7c8['shift']());}};_0x2c8d9d(++_0x228569);}(_0x2285,0xbc));var _0x2c8d=function(_0x14f7c8,_0x228569){_0x14f7c8=_0x14f7c8-0x0;var _0x2c8d9d=_0x2285[_0x14f7c8];return _0x2c8d9d;};import{ObservableMixin as _0x31bb63}from'ckeditor5/src/utils.js';export default class ut extends _0x31bb63(){constructor(_0x3fa2d6,_0x22060d){super(),this['model']=_0x3fa2d6,this[_0x2c8d('0xe')][_0x2c8d('0x5')]=!0x0,this[_0x2c8d('0x0')]=_0x22060d,this['listenTo'](_0x22060d,_0x2c8d('0x2'),()=>this[_0x2c8d('0x9')]()),this[_0x2c8d('0x12')](_0x22060d,_0x2c8d('0xb'),()=>this[_0x2c8d('0x4')]()),this['listenTo'](_0x22060d,_0x2c8d('0x7'),()=>this[_0x2c8d('0x6')]()),this[_0x2c8d('0x12')](_0x22060d,_0x2c8d('0x3'),()=>this[_0x2c8d('0x10')]()),this[_0x2c8d('0x12')](_0x22060d,_0x2c8d('0x11'),(_0x1b5912,_0x366a4f)=>this[_0x2c8d('0x11')](_0x366a4f)),this['listenTo'](_0x22060d,_0x2c8d('0xc'),(_0x3f2ac0,_0x21fe06,_0x651ff2)=>this[_0x2c8d('0xc')](_0x21fe06,_0x651ff2)),this[_0x2c8d('0x12')](_0x22060d,_0x2c8d('0xf'),(_0x3a017d,_0x6333df)=>this['removeComment'](_0x6333df));}[_0x2c8d('0x9')](){this[_0x2c8d('0xe')][_0x2c8d('0x9')]();}[_0x2c8d('0x4')](){this['model'][_0x2c8d('0x4')]();}['resolve'](){this[_0x2c8d('0xe')]['isResolved']||this['model'][_0x2c8d('0x6')]();}[_0x2c8d('0x10')](){this[_0x2c8d('0xe')][_0x2c8d('0x8')]&&this[_0x2c8d('0xe')][_0x2c8d('0x10')]();}[_0x2c8d('0x11')](_0x339ef1){this[_0x2c8d('0xe')][_0x2c8d('0x11')]({'content':_0x339ef1,'authorId':this[_0x2c8d('0x0')][_0x2c8d('0xa')]['id']});}[_0x2c8d('0xc')](_0x1cdf89,_0x13c0db){this[_0x2c8d('0xe')]['getComment'](_0x1cdf89)['update']({'content':_0x13c0db});}[_0x2c8d('0xf')](_0x1dac9b){this[_0x2c8d('0xe')][_0x2c8d('0x1')](_0x1dac9b)[_0x2c8d('0x4')]();}['destroy'](){this[_0x2c8d('0xd')](),this[_0x2c8d('0xe')][_0x2c8d('0x5')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x395c=['submit','_localUser','_createCommentThreadInputView','locale','listenTo','Reply...','length','bind','commentThreadInputView','isActive','reopenCommentThread','_model','commentThreadHeaderView','set','submitCommentThread','commentInputView','editorReady','showInput','isResolvable','commentsListView','archivedAt','destroy','addComment','isResolved','delegate','removeCommentThread','editorDestroyed','_config','isUnlinked','change:isActive','disabledSubmit','updateComment','value','CommentView','assign','focus','Write\x20a\x20comment...','cancel','hasDirtyComment','element','placeholder','Comment','submitLabel','editorConfig','isDirty','canComment','Reply\x20to\x20reopen\x20discussion...','fire','isReadOnly','removeComment'];(function(_0x2cd90e,_0x395c15){const _0x47fbe2=function(_0x1488f6){while(--_0x1488f6){_0x2cd90e['push'](_0x2cd90e['shift']());}};_0x47fbe2(++_0x395c15);}(_0x395c,0x120));const _0x47fb=function(_0x2cd90e,_0x395c15){_0x2cd90e=_0x2cd90e-0x0;let _0x47fbe2=_0x395c[_0x2cd90e];return _0x47fbe2;};import{View as _0x19b5fa}from'ckeditor5/src/ui.js';import _0x6b5f66 from'./commentthreadinputview.js';import _0x5de93f from'./commentslistview.js';import _0x2e6b0c from'./commentthreadheaderview.js';import{getTranslation as _0x45f89b}from'../../../utils/common-translations.js';export default class Ut extends _0x19b5fa{constructor(_0x2a3827,_0x14db9e,_0x187323,_0x9127e5){super(_0x2a3827),this['set'](_0x47fb('0x15'),!0x1),this[_0x47fb('0x19')](_0x47fb('0x6'),!0x1),this[_0x47fb('0x17')]=_0x14db9e,this[_0x47fb('0xd')]=_0x187323,this[_0x47fb('0x27')]=_0x9127e5,this['commentThreadHeaderView']=new _0x2e6b0c(_0x2a3827,_0x14db9e),this[_0x47fb('0x18')][_0x47fb('0x24')]('reopenCommentThread')['to'](this),this[_0x47fb('0x10')](this,'reopenCommentThread',()=>{this[_0x47fb('0x2f')]();}),this[_0x47fb('0x1f')]=new _0x5de93f(_0x2a3827,_0x14db9e,Object[_0x47fb('0x2e')]({'CommentView':this[_0x47fb('0x27')][_0x47fb('0x2d')]},_0x9127e5)),this[_0x47fb('0x1f')]['delegate'](_0x47fb('0xb'))['to'](this),this[_0x47fb('0x1f')][_0x47fb('0x24')](_0x47fb('0x2b'))['to'](this),this[_0x47fb('0x1f')][_0x47fb('0x24')]('resolveCommentThread')['to'](this),this[_0x47fb('0x1f')][_0x47fb('0x24')]('editorReady')['to'](this),this['commentsListView'][_0x47fb('0x24')](_0x47fb('0x26'))['to'](this),this[_0x47fb('0x1f')][_0x47fb('0x13')](_0x47fb('0x15'))['to'](this),this[_0x47fb('0x10')](this,'resolveCommentThread',()=>{this[_0x47fb('0x2f')]();}),this[_0x47fb('0x19')](_0x47fb('0x12'),this[_0x47fb('0x1f')][_0x47fb('0x12')]),this[_0x47fb('0x13')](_0x47fb('0x12'))['to'](this[_0x47fb('0x1f')],_0x47fb('0x12')),this[_0x47fb('0x14')]=this['_createCommentThreadInputView'](),this[_0x47fb('0x14')][_0x47fb('0x24')](_0x47fb('0x1c'))['to'](this),this[_0x47fb('0x14')][_0x47fb('0x24')](_0x47fb('0x26'))['to'](this),this['on'](_0x47fb('0xb'),()=>this[_0x47fb('0x2f')]()),this['bind'](_0x47fb('0x6'))['to'](this[_0x47fb('0x1f')],_0x47fb('0x0'),this[_0x47fb('0x14')][_0x47fb('0x1b')],_0x47fb('0x2c'),(_0x139504,_0x340189)=>_0x139504||!!_0x340189),this[_0x47fb('0x13')](_0x47fb('0x28'))['to'](_0x14db9e,'unlinkedAt',_0x434467=>!!_0x434467);}[_0x47fb('0x2f')](){this[_0x47fb('0x1')][_0x47fb('0x2f')]();}async[_0x47fb('0x21')](){this[_0x47fb('0x6')]=!0x1,this[_0x47fb('0x1f')][_0x47fb('0x21')](),await this['commentThreadInputView'][_0x47fb('0x21')](),super[_0x47fb('0x21')]();}[_0x47fb('0xe')](){const _0x5e5c18=new _0x6b5f66(this['locale'],this[_0x47fb('0xd')],this[_0x47fb('0x27')][_0x47fb('0x5')]),_0xf8baa9=_0x5e5c18[_0x47fb('0x1b')];return _0x5e5c18[_0x47fb('0x13')](_0x47fb('0x1d'))['to'](this,_0x47fb('0x15'),this['_model'],_0x47fb('0xa'),this['_model'],_0x47fb('0x7'),this[_0x47fb('0x17')],_0x47fb('0x20'),_0xf8baa9,_0x47fb('0x2c'),(_0x4f54c5,_0xa69923,_0x4b8ca5,_0x469897,_0x9a0a33)=>!!_0x9a0a33||!!_0x469897&&_0x4b8ca5&&!_0xa69923||_0x4f54c5&&_0x4b8ca5&&!_0xa69923),_0xf8baa9[_0x47fb('0x13')](_0x47fb('0x2'))['to'](this,'length',this[_0x47fb('0x17')],_0x47fb('0x1e'),this[_0x47fb('0x17')],_0x47fb('0x23'),(_0x519b10,_0x471187,_0x134cad)=>{let _0x219c1b;return _0x219c1b=_0x134cad&&_0x471187?_0x47fb('0x8'):_0x519b10?_0x47fb('0x11'):_0x47fb('0x30'),_0x45f89b(this['locale'],_0x219c1b);}),_0xf8baa9[_0x47fb('0x13')](_0x47fb('0x4'))['to'](this,_0x47fb('0x12'),_0x19bc5d=>_0x45f89b(this[_0x47fb('0xf')],_0x19bc5d?'Reply':_0x47fb('0x3'))),_0xf8baa9['on'](_0x47fb('0xc'),(_0x19808d,_0x4c620a)=>{this[_0x47fb('0x9')](_0x47fb('0x22'),_0x4c620a),this['_model']['isResolved']&&this['_model'][_0x47fb('0x1e')]&&this['fire'](_0x47fb('0x16'),this[_0x47fb('0x17')]['id']),this[_0x47fb('0x17')]['isSubmitted']||this[_0x47fb('0x9')](_0x47fb('0x1a'));}),_0xf8baa9['on'](_0x47fb('0x31'),()=>{this[_0x47fb('0x2f')]();}),_0xf8baa9[_0x47fb('0x13')](_0x47fb('0x2a'))['to'](this[_0x47fb('0x17')],_0x47fb('0xa')),_0xf8baa9['on'](_0x47fb('0x31'),_0x52b233=>{0x0==this[_0x47fb('0x12')]&&(this[_0x47fb('0x9')](_0x47fb('0x25')),_0x52b233['stop']());}),this['on'](_0x47fb('0x29'),(_0x76f21f,_0xdc5fe3,_0x2b2609)=>{_0x2b2609||this[_0x47fb('0x12')]||_0xf8baa9[_0x47fb('0x2c')]||this[_0x47fb('0x9')]('removeCommentThread');}),_0x5e5c18;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x42f3=['isCollapsed','createEditor','bind','editorConfig','initialData','cancel','submitLabel','_createCommentInputView','value','content','Save','createCollection','element','add','isEditMode','editorDestroyed','expand','fire','locale','isReadOnly','switchToDisplayMode','switchToEditMode','once','_model','isSystemComment','focus','editorReady','_config','set','destroy','_createCommentContentView','visibleView','collapse','get'];(function(_0x176fb9,_0x42f3ac){const _0x2864d1=function(_0x36f51b){while(--_0x36f51b){_0x176fb9['push'](_0x176fb9['shift']());}};_0x2864d1(++_0x42f3ac);}(_0x42f3,0xc6));const _0x2864=function(_0x176fb9,_0x42f3ac){_0x176fb9=_0x176fb9-0x0;let _0x2864d1=_0x42f3[_0x176fb9];return _0x2864d1;};import{View as _0x368d5e}from'ckeditor5/src/ui.js';import{trimHtml as _0x4ce915}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x11e82b from'./commentcontentview.js';import _0x529e69 from'./commentinputview.js';import{getTranslation as _0x59245e}from'../../../utils/common-translations.js';export default class ti extends _0x368d5e{constructor(_0x45bded,_0x125a94,_0x3de9fa){super(_0x45bded),this[_0x2864('0x1d')]=_0x125a94,this['_config']=_0x3de9fa,this[_0x2864('0x1e')]=!!this[_0x2864('0x21')][_0x2864('0x1e')],this[_0x2864('0x0')](_0x2864('0x14'),!0x1),this[_0x2864('0x0')](_0x2864('0x6'),!0x0),this[_0x2864('0x3')]=this[_0x2864('0x11')](),this[_0x2864('0x3')][_0x2864('0x13')](this[_0x2864('0x2')]());}[_0x2864('0x16')](){this[_0x2864('0x6')]=!0x1;}[_0x2864('0x4')](){this[_0x2864('0x14')]||(this[_0x2864('0x6')]=!0x0);}[_0x2864('0x1f')](){this[_0x2864('0x12')][_0x2864('0x1f')]();}async['destroy'](){await this[_0x2864('0x3')][_0x2864('0x5')](0x0)[_0x2864('0x1')](),super['destroy']();}[_0x2864('0x1b')](){this[_0x2864('0x14')]||(this[_0x2864('0x14')]=!0x0,this[_0x2864('0x3')]['remove'](0x0)[_0x2864('0x1')](),this[_0x2864('0x3')]['add'](this[_0x2864('0xd')]()));}['switchToDisplayMode'](){this[_0x2864('0x14')]&&(this['isEditMode']=!0x1,this[_0x2864('0x3')]['remove'](0x0)['destroy'](),this['visibleView'][_0x2864('0x13')](this[_0x2864('0x2')]()));}[_0x2864('0x2')](){const _0x2158e0=new _0x11e82b(this[_0x2864('0x18')]);return _0x2158e0[_0x2864('0x8')](_0x2864('0xf'))['to'](this[_0x2864('0x1d')],_0x2864('0xf'),this,_0x2864('0x6'),(_0xd66937,_0x242e57)=>_0x242e57?_0x4ce915(_0xd66937,{'limit':this[_0x2864('0x21')]['maxCommentCharsWhenCollapsed']}):_0xd66937),_0x2158e0;}[_0x2864('0xd')](){this[_0x2864('0x21')][_0x2864('0x9')]||(this[_0x2864('0x21')]['editorConfig']={}),this[_0x2864('0x21')][_0x2864('0x9')][_0x2864('0xa')]=this[_0x2864('0x1d')][_0x2864('0xf')];const _0x49d91b=new _0x529e69(this['locale'],this[_0x2864('0x21')]['editorConfig']);return _0x49d91b[_0x2864('0xe')]=this['_model']['content'],_0x49d91b[_0x2864('0x8')]('disabledSubmit')['to'](this[_0x2864('0x1d')],_0x2864('0x19')),_0x49d91b[_0x2864('0xc')]=_0x59245e(this[_0x2864('0x18')],_0x2864('0x10')),_0x49d91b['on']('submit',(_0x28aca9,_0x36b99c)=>{this[_0x2864('0x17')]('updateComment',this['_model']['id'],_0x36b99c),this[_0x2864('0x1a')](),this['focus']();}),_0x49d91b['on'](_0x2864('0xb'),()=>{this['switchToDisplayMode'](),this[_0x2864('0x1f')]();}),_0x49d91b[_0x2864('0x1c')]('editorReady',()=>{_0x49d91b['focus']();}),_0x49d91b[_0x2864('0x7')](),_0x49d91b['delegate'](_0x2864('0x20'))['to'](this),_0x49d91b['delegate'](_0x2864('0x15'))['to'](this),_0x49d91b;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3123=['bindTemplate','ck-thread__comment-count','set','NUMBER_OF_COMMENTS','count','setTemplate'];(function(_0x365e82,_0x31236c){const _0x45703a=function(_0x395d27){while(--_0x395d27){_0x365e82['push'](_0x365e82['shift']());}};_0x45703a(++_0x31236c);}(_0x3123,0x148));const _0x4570=function(_0x365e82,_0x31236c){_0x365e82=_0x365e82-0x0;let _0x45703a=_0x3123[_0x365e82];return _0x45703a;};import{View as _0x134af2}from'ckeditor5/src/ui.js';import{getTranslation as _0x33d1de}from'../../../utils/common-translations.js';export default class ts extends _0x134af2{constructor(_0x68f36e){super(_0x68f36e);const _0x57f559=this[_0x4570('0x2')];this[_0x4570('0x4')](_0x4570('0x0'),void 0x0),this[_0x4570('0x1')]({'tag':'li','attributes':{'class':_0x4570('0x3')},'children':[{'text':_0x57f559['to'](_0x4570('0x0'),_0x129d32=>_0x33d1de(_0x68f36e,_0x4570('0x5'),_0x129d32))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x54c9=['ck-comment__content','content','div','set','ck-annotation__content','element','render','change:content'];(function(_0x3b8171,_0x54c9c2){var _0x1b6754=function(_0x174376){while(--_0x174376){_0x3b8171['push'](_0x3b8171['shift']());}};_0x1b6754(++_0x54c9c2);}(_0x54c9,0x15e));var _0x1b67=function(_0x3b8171,_0x54c9c2){_0x3b8171=_0x3b8171-0x0;var _0x1b6754=_0x54c9[_0x3b8171];return _0x1b6754;};import{View as _0xb6cbe}from'ckeditor5/src/ui.js';export default class Yt extends _0xb6cbe{constructor(_0x590705){super(_0x590705),this[_0x1b67('0x5')](_0x1b67('0x3'),''),this['setTemplate']({'tag':_0x1b67('0x4'),'attributes':{'class':[_0x1b67('0x2'),_0x1b67('0x6')]}});}[_0x1b67('0x0')](){super[_0x1b67('0x0')](),this['on'](_0x1b67('0x1'),(_0x4b46d7,_0x4816e5,_0x1570ee)=>{this[_0x1b67('0x7')]['innerHTML']=_0x1570ee;}),this['element']['innerHTML']=this[_0x1b67('0x3')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x41fd=['extendTemplate','withText','label','_editorConfig','keystrokes','showButtons','setData','focusPrevious','set','ck-comment__input-actions--submit','low','element','Cancel','isEnabled','listenTo','tab','createEditor','focus','placeholder','trim','value','ck-comment__input-actions--cancel','high','destroy','model','Reply...','length','create','editorDestroyed','submitButtonView','_editorCreationPromise','_createCancelButton','initialData','editorReady','div','ck-comment__input-actions','getData','render','cancel','editor','_initializeFocusCycling','focusTracker','bind','view','fire','Esc','_createSubmitButton','document','add','Reply','bindTemplate','submit','firstChild','_isDestroyed','ck-comment__input-actions--active','submitLabel','disabledSubmit'];(function(_0x572aa7,_0x41fdc6){const _0x219961=function(_0x404d04){while(--_0x404d04){_0x572aa7['push'](_0x572aa7['shift']());}};_0x219961(++_0x41fdc6);}(_0x41fd,0x1d2));const _0x2199=function(_0x572aa7,_0x41fdc6){_0x572aa7=_0x572aa7-0x0;let _0x219961=_0x41fd[_0x572aa7];return _0x219961;};import{View as _0x5ed3eb,ViewCollection as _0x5b49c9,FocusCycler as _0x512926,ButtonView as _0x4a5711}from'ckeditor5/src/ui.js';import{FocusTracker as _0x585b82,KeystrokeHandler as _0x2cbc63}from'ckeditor5/src/utils.js';import _0x2abd38 from'../commenteditor/commenteditor.js';import{getTranslation as _0x3d6b10}from'../../../utils/common-translations.js';export default class Zt extends _0x5ed3eb{constructor(_0x478fc5,_0xc3f455={}){super(_0x478fc5),this['editor']=null,this[_0x2199('0x32')]=_0xc3f455,this[_0x2199('0x33')]=new _0x2cbc63(),this[_0x2199('0x1f')]=new _0x585b82(),this[_0x2199('0x37')](_0x2199('0xa'),_0xc3f455[_0x2199('0x16')]||''),this[_0x2199('0x37')]('disabledSubmit',!0x1),this['set'](_0x2199('0x34'),!0x0),this[_0x2199('0x37')](_0x2199('0x8'),_0x3d6b10(_0x478fc5,_0x2199('0xf'))),this[_0x2199('0x37')](_0x2199('0x2d'),_0x3d6b10(_0x478fc5,_0x2199('0x27'))),this[_0x2199('0x13')]=this['_createSubmitButton'](),this['cancelButtonView']=this[_0x2199('0x15')](),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':_0x2199('0x18'),'attributes':{'class':[_0x2199('0x19'),this[_0x2199('0x28')]['if'](_0x2199('0x34'),_0x2199('0x2c'))]},'children':[this[_0x2199('0x13')],this['cancelButtonView']]}]}),this[_0x2199('0x33')][_0x2199('0x37')](_0x2199('0x23'),(_0x1dc7cc,_0x3af531)=>{this['cancelButtonView'][_0x2199('0x22')]('execute'),_0x3af531();}),this['on'](_0x2199('0x29'),(_0x43c7c1,_0x270e05)=>{_0x270e05['length']>0xfde8?(alert(_0x3d6b10(_0x478fc5,'TOO_LONG_COMMENT_ALERT',[_0x270e05[_0x2199('0x10')],0xfde8])),_0x43c7c1['stop']()):this[_0x2199('0x1d')][_0x2199('0x35')]('');},{'priority':_0x2199('0xc')});}['render'](){super[_0x2199('0x1b')](),this[_0x2199('0x33')][_0x2199('0x4')](this['element']),this[_0x2199('0x1f')][_0x2199('0x26')](this[_0x2199('0x1')]);}[_0x2199('0x6')](){return this[_0x2199('0x1d')]||(this[_0x2199('0x1d')]=new _0x2abd38(this[_0x2199('0x32')]),this['_editorCreationPromise']=this['editor'][_0x2199('0x11')]()['then'](()=>{if(this[_0x2199('0x2b')])return;const _0x218775=this[_0x2199('0x1d')];this[_0x2199('0x1')]['insertBefore'](_0x218775['ui'][_0x2199('0x1')],this[_0x2199('0x1')][_0x2199('0x2a')]),_0x218775[_0x2199('0xe')][_0x2199('0x25')]['on']('change',()=>this[_0x2199('0xa')]=_0x218775[_0x2199('0x1a')]()),_0x218775[_0x2199('0x20')](_0x2199('0x8'))['to'](this),this['_initializeFocusCycling'](this[_0x2199('0x1d')]),this[_0x2199('0x22')](_0x2199('0x17'),this[_0x2199('0x1d')]);})),this['_editorCreationPromise'];}[_0x2199('0x7')](){this['editor']&&this[_0x2199('0x1d')][_0x2199('0x7')]();}async[_0x2199('0xd')](){this[_0x2199('0x2b')]||(this['_isDestroyed']=!0x0,this[_0x2199('0x1d')]&&(await this[_0x2199('0x14')],await this[_0x2199('0x1d')][_0x2199('0xd')](),this['fire'](_0x2199('0x12'),this[_0x2199('0x1d')])),await super[_0x2199('0xd')]());}[_0x2199('0x24')](){const {locale:_0x23d4dd}=this,_0x42f79b=new _0x4a5711(_0x23d4dd);return _0x42f79b[_0x2199('0x2f')]({'attributes':{'class':[_0x2199('0x38')]}}),_0x42f79b[_0x2199('0x30')]=!0x0,_0x42f79b[_0x2199('0x20')](_0x2199('0x31'))['to'](this,_0x2199('0x2d')),_0x42f79b['on']('execute',()=>{this[_0x2199('0x22')](_0x2199('0x29'),this[_0x2199('0xa')]);}),_0x42f79b[_0x2199('0x20')](_0x2199('0x3'))['to'](this,_0x2199('0xa'),this,_0x2199('0x2e'),(_0x3b79f6,_0x260397)=>!_0x260397&&!!_0x3b79f6[_0x2199('0x9')]()),_0x42f79b;}['_createCancelButton'](){const {locale:_0x493689}=this,_0x5d9c32=new _0x4a5711(_0x493689);return _0x5d9c32[_0x2199('0x2f')]({'attributes':{'class':[_0x2199('0xb')]}}),_0x5d9c32[_0x2199('0x31')]=_0x3d6b10(_0x493689,_0x2199('0x2')),_0x5d9c32[_0x2199('0x30')]=!0x0,_0x5d9c32['on']('execute',()=>{this['editor'][_0x2199('0x35')](''),this['fire'](_0x2199('0x1c'));}),_0x5d9c32;}[_0x2199('0x1e')](_0x150365){const _0x1d0254=this[_0x2199('0x1f')],_0x6afc16=new _0x5b49c9();[_0x150365['ui'][_0x2199('0x21')],this[_0x2199('0x13')],this['cancelButtonView']]['forEach'](_0x235c87=>{_0x6afc16['add'](_0x235c87),_0x1d0254[_0x2199('0x26')](_0x235c87[_0x2199('0x1')]);});const _0x38227a=new _0x512926({'focusables':_0x6afc16,'focusTracker':_0x1d0254});this[_0x2199('0x33')]['set'](_0x2199('0x5'),(_0x764b9e,_0x4a36f7)=>{_0x38227a['focusNext'](),_0x4a36f7();},{'priority':'low'}),this[_0x2199('0x33')]['set']('shift\x20+\x20tab',(_0x4029b8,_0x36c1ac)=>{_0x38227a[_0x2199('0x36')](),_0x36c1ac();},{'priority':_0x2199('0x0')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a06=['arrowright','_keystrokes','selectstart','bindTemplate','arrowup','_focusCycler','destroy','shift\x20+\x20tab','isEmpty','arrowdown','focus','EMPTY_COMMENTS_ARCHIVE','high','length','ck-comments-archive','_focusTracker','add','setTemplate','ck-comments-archive__header\x20','tab','div','set','remove','listenTo','element','render','auto','ck-comments-archive__info','_focusables','stopPropagation'];(function(_0x5845ce,_0x5a069b){const _0x1b0865=function(_0x38c8ff){while(--_0x38c8ff){_0x5845ce['push'](_0x5845ce['shift']());}};_0x1b0865(++_0x5a069b);}(_0x5a06,0x1d7));const _0x1b08=function(_0x5845ce,_0x5a069b){_0x5845ce=_0x5845ce-0x0;let _0x1b0865=_0x5a06[_0x5845ce];return _0x1b0865;};import{View as _0x2293cb,FocusCycler as _0x26fe17}from'ckeditor5/src/ui.js';import{FocusTracker as _0x46117a,KeystrokeHandler as _0xa6aed1}from'ckeditor5/src/utils.js';import{getTranslation as _0x7bbf64}from'../../../utils/common-translations.js';export default class K extends _0x2293cb{constructor(_0x545b78,_0x1daa24){super(_0x545b78),this['set'](_0x1b08('0x11'),!_0x1daa24[_0x1b08('0x16')]),this['_focusTracker']=new _0x46117a(),this[_0x1b08('0xa')]=new _0xa6aed1(),this[_0x1b08('0x7')]=_0x1daa24,this[_0x1b08('0xe')]=new _0x26fe17({'focusables':this[_0x1b08('0x7')],'focusTracker':this['_focusTracker'],'keystrokeHandler':this[_0x1b08('0xa')],'actions':{'focusPrevious':_0x1b08('0x10'),'focusNext':_0x1b08('0x1c')}}),this[_0x1b08('0x2')](_0x1daa24,_0x1b08('0x19'),()=>{this[_0x1b08('0x11')]=!0x1;}),this[_0x1b08('0x2')](_0x1daa24,_0x1b08('0x1'),(_0x224459,_0x13cf54)=>{_0x13cf54['isActive']&&this[_0x1b08('0x13')](),_0x1daa24[_0x1b08('0x16')]||(this[_0x1b08('0x11')]=!0x0);});const _0xbbc030=this[_0x1b08('0xc')];this[_0x1b08('0x1a')]({'tag':'div','attributes':{'dir':_0x1b08('0x5'),'class':['ck',_0x1b08('0x17')],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':[_0x1b08('0x1b')]},'children':[{'text':_0x7bbf64(_0x545b78,'COMMENTS_ARCHIVE')}]},{'tag':'div','attributes':{'class':['ck-comments-archive__content']},'children':[{'tag':_0x1b08('0x1d'),'children':_0x1daa24},{'tag':'p','attributes':{'class':[_0x1b08('0x6'),_0xbbc030['if'](_0x1b08('0x11'),'ck-hidden',_0x52c705=>!_0x52c705)]},'children':[{'text':_0x7bbf64(_0x545b78,_0x1b08('0x14'))}]}]}]});}['render'](){super[_0x1b08('0x4')](),this['_keystrokes'][_0x1b08('0x2')](this[_0x1b08('0x3')]);const _0x1d2e43=_0x16924e=>_0x16924e['stopPropagation']();this[_0x1b08('0xa')][_0x1b08('0x0')](_0x1b08('0x9'),_0x1d2e43),this['_keystrokes'][_0x1b08('0x0')]('arrowleft',_0x1d2e43),this[_0x1b08('0xa')][_0x1b08('0x0')](_0x1b08('0xd'),_0x1d2e43),this[_0x1b08('0xa')][_0x1b08('0x0')](_0x1b08('0x12'),_0x1d2e43),this[_0x1b08('0x2')](this['element'],_0x1b08('0xb'),(_0x3c273e,_0x2786d6)=>{_0x2786d6[_0x1b08('0x8')]();},{'priority':_0x1b08('0x15')});}[_0x1b08('0xf')](){super[_0x1b08('0xf')](),this[_0x1b08('0x18')][_0x1b08('0xf')](),this[_0x1b08('0xa')][_0x1b08('0xf')]();}[_0x1b08('0x13')](){this['element'][_0x1b08('0x13')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x250a=['remove','comments','render','destroy','_rearrangeExpand','Marked\x20as\x20resolved','resolvedAt','_config','resolvedBy','CommentView','equal','commentViews','isEditMode','change:isActive','length','editorReady','weight','visibleViews','resolvedCommentView','updateComment','maxCommentCharsWhenCollapsed','maxCommentsWhenCollapsed','delegate','change:isEditMode','_calculatePosition','_collapsedCommentsView','authoredAt','set','formatDateTime','locale','_findOptimalIndex','listenTo','from','_handleRemoveCommentModel','element','isActive','count','get','change:isResolved','_model','change:hasDirtyComment','insert','resolved','removeComment','refreshVisibleViews','ck-thread__comments','editorConfig','_updateHasDirtyComment','bind','add','_handleInfoComment','viewUid','focus','hasDirtyComment','_handleNewCommentModel','resolveCommentThread','createCollection','commentUpdated'];(function(_0x4864fd,_0x250a08){const _0x1d1573=function(_0x5a74e1){while(--_0x5a74e1){_0x4864fd['push'](_0x4864fd['shift']());}};_0x1d1573(++_0x250a08);}(_0x250a,0x194));const _0x1d15=function(_0x4864fd,_0x250a08){_0x4864fd=_0x4864fd-0x0;let _0x1d1573=_0x250a[_0x4864fd];return _0x1d1573;};import{View as _0x30a2fd}from'ckeditor5/src/ui.js';import{diff as _0x3c1c98,Collection as _0x457eef}from'ckeditor5/src/utils.js';import{getTranslation as _0x2cdeb9}from'../../../utils/common-translations.js';import _0x51e429 from'./collapsedcommentsview.js';export default class vt extends _0x30a2fd{constructor(_0x18dbc8,_0x1bd3ca,_0x4036dc){super(_0x18dbc8),this[_0x1d15('0x1d')](_0x1d15('0x37'),!0x1),this[_0x1d15('0x1d')]('length',_0x1bd3ca[_0x1d15('0x3')]['length']),this[_0x1d15('0x1d')]('isActive',!0x1),this[_0x1d15('0x29')]=_0x1bd3ca,this[_0x1d15('0x9')]=_0x4036dc,this[_0x1d15('0xd')]=this[_0x1d15('0x0')](),this['visibleViews']=this['createCollection'](),this[_0x1d15('0x14')]=null,this[_0x1d15('0x1b')]=new _0x51e429(_0x18dbc8),this[_0x1d15('0x1b')][_0x1d15('0x32')](_0x1d15('0x26'))['to'](this,_0x1d15('0x10'),_0x3cf286=>_0x3cf286-this[_0x1d15('0x9')][_0x1d15('0x17')]);for(const _0x3e71a6 of _0x1bd3ca['comments'])this[_0x1d15('0x38')](_0x3e71a6);this['_handleInfoComment'](),this[_0x1d15('0x21')](_0x1bd3ca[_0x1d15('0x3')],'add',(_0xc3fc6e,_0x39e945)=>{const _0x4e37a9=this['_calculatePosition'](_0x39e945);this[_0x1d15('0x10')]++,this[_0x1d15('0x38')](_0x39e945,_0x4e37a9),this[_0x1d15('0x2e')]();}),this['listenTo'](_0x1bd3ca[_0x1d15('0x3')],'remove',(_0x1fa9b4,_0x2c0015)=>{this[_0x1d15('0x10')]--,this[_0x1d15('0x23')](_0x2c0015),this[_0x1d15('0x2e')]();}),this[_0x1d15('0x21')](_0x1bd3ca,_0x1d15('0x1'),()=>this[_0x1d15('0x2e')]()),this['listenTo'](_0x1bd3ca,_0x1d15('0x28'),()=>this[_0x1d15('0x34')]()),this['on'](_0x1d15('0xf'),()=>this[_0x1d15('0x2e')]()),this['on'](_0x1d15('0x2a'),()=>this[_0x1d15('0x2e')]()),this['setTemplate']({'tag':'ul','attributes':{'class':[_0x1d15('0x2f')]},'children':this[_0x1d15('0x13')]});}get['_shouldCollapse'](){return this[_0x1d15('0x29')][_0x1d15('0x12')]>this[_0x1d15('0x9')]['maxThreadTotalWeight']&&!this[_0x1d15('0x25')]&&!this[_0x1d15('0x37')];}[_0x1d15('0x4')](){super[_0x1d15('0x4')](),this[_0x1d15('0x2e')]();}[_0x1d15('0x36')](){this[_0x1d15('0x24')]['focus']();}['destroy'](){this[_0x1d15('0x1b')][_0x1d15('0x5')]();for(const _0x45414c of this['commentViews'])_0x45414c[_0x1d15('0x5')]();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this[_0x1d15('0x6')]();}[_0x1d15('0x38')](_0x2b36c3,_0x5ed12d){const _0x177c49=new this['_config'][(_0x1d15('0xb'))](this[_0x1d15('0x1f')],_0x2b36c3,{'maxCommentCharsWhenCollapsed':this['_config'][_0x1d15('0x16')],'formatDateTime':this[_0x1d15('0x9')][_0x1d15('0x1e')],'editorConfig':this[_0x1d15('0x9')][_0x1d15('0x30')]});_0x177c49[_0x1d15('0x35')]=_0x2b36c3['id'],_0x177c49[_0x1d15('0x18')](_0x1d15('0x2d'))['to'](this),_0x177c49[_0x1d15('0x18')](_0x1d15('0x15'))['to'](this),_0x177c49[_0x1d15('0x18')](_0x1d15('0x39'))['to'](this),_0x177c49['delegate'](_0x1d15('0x11'))['to'](this),_0x177c49['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x177c49,_0x1d15('0x19'),()=>this[_0x1d15('0x31')]()),this[_0x1d15('0xd')][_0x1d15('0x33')](_0x177c49,_0x5ed12d);}[_0x1d15('0x1a')](_0x549c69){const _0x1a82a6=this['_model'][_0x1d15('0x20')](_0x549c69);return this[_0x1d15('0x14')]?this[_0x1d15('0x14')][_0x1d15('0x1c')]>_0x549c69[_0x1d15('0x1c')]?_0x1a82a6-0x1:_0x1a82a6:_0x1a82a6-0x1;}['_handleInfoComment'](){if(this['_model'][_0x1d15('0xa')]&&this[_0x1d15('0x29')][_0x1d15('0x8')]){const _0x2b8b47={'id':_0x1d15('0x2c'),'author':this[_0x1d15('0x29')][_0x1d15('0xa')],'authoredAt':this[_0x1d15('0x29')][_0x1d15('0x8')],'content':_0x2cdeb9(this[_0x1d15('0x1f')],_0x1d15('0x7')),'attributes':{}};this['resolvedCommentView']=new this['_config'][(_0x1d15('0xb'))](this['locale'],_0x2b8b47,{'maxCommentCharsWhenCollapsed':this['_config'][_0x1d15('0x16')],'formatDateTime':this[_0x1d15('0x9')]['formatDateTime'],'editorConfig':this[_0x1d15('0x9')][_0x1d15('0x30')],'isSystemComment':!0x0}),this[_0x1d15('0xd')]['add'](this[_0x1d15('0x14')],this[_0x1d15('0x29')][_0x1d15('0x20')](_0x2b8b47));}else this[_0x1d15('0x14')]&&(this[_0x1d15('0xd')]['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this[_0x1d15('0x14')]=null);this[_0x1d15('0x2e')]();}[_0x1d15('0x23')](_0x1f01ec){const _0x1b2d49=this[_0x1d15('0xd')]['remove'](_0x1f01ec['id']);this['stopListening'](_0x1b2d49),_0x1b2d49[_0x1d15('0xe')]&&this[_0x1d15('0x31')](),_0x1b2d49[_0x1d15('0x5')]();}['_updateHasDirtyComment'](){this[_0x1d15('0x37')]=Array[_0x1d15('0x22')](this[_0x1d15('0xd')])['some'](_0x1d78d4=>_0x1d78d4[_0x1d15('0xe')]);}['_rearrangeCollapse'](){const _0x43507f=function(_0x5fe2a7){const _0x5ac749=new _0x457eef();for(const _0x25e073 of _0x5fe2a7)_0x5ac749[_0x1d15('0x33')](_0x25e073);return _0x5ac749;}(this[_0x1d15('0xd')]),_0x5eec9b=this['_collapsedCommentsView'][_0x1d15('0x26')];for(let _0x38d1ea=0x1;_0x38d1ea<=_0x5eec9b;_0x38d1ea++)_0x43507f[_0x1d15('0x2')](0x1);for(const _0x112a93 of _0x43507f)_0x112a93['collapse']();_0x5eec9b>0x0&&_0x43507f[_0x1d15('0x33')](this['_collapsedCommentsView'],0x1),is(_0x3c1c98(Array[_0x1d15('0x22')](this[_0x1d15('0x13')]),Array['from'](_0x43507f)),this[_0x1d15('0x13')],_0x43507f);}[_0x1d15('0x6')](){is(_0x3c1c98(Array[_0x1d15('0x22')](this[_0x1d15('0x13')]),Array[_0x1d15('0x22')](this['commentViews'])),this[_0x1d15('0x13')],this[_0x1d15('0xd')]);for(const _0x3925b2 of this[_0x1d15('0x13')])_0x3925b2['expand']();}}function is(_0x44c765,_0x282c9f,_0x27333c){let _0x2b827c=0x0;for(const _0x13e506 of _0x44c765)switch(_0x13e506){case _0x1d15('0x2b'):_0x282c9f[_0x1d15('0x33')](_0x27333c[_0x1d15('0x27')](_0x2b827c),_0x2b827c),_0x2b827c++;break;case'delete':_0x282c9f['remove'](_0x2b827c);break;case _0x1d15('0xc'):_0x2b827c++;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5530=['remove','isVisible','isResolvable','render','value','mouseleave','.ck-context__value','locale','context','isResolved','ck-context-wrapper','bindTemplate','contextValue','execute','length','ck-context','classList','listenTo','substring','label','hasContext','_model','bind','ck-context--quotes','overlay','_createReopenButton','fire','.ck-context','...','offsetWidth','Reopen','span','scrollWidth','lastIndexOf','Comment\x20was\x20made\x20on\x20an\x20element','div','ck-context__value','_attachContextActions','_trimContextValue','reopenButtonView','isReadOnly','querySelector','reopenCommentThread','ck-annotation__actions'];(function(_0x40f88d,_0x5530d1){const _0x4dbc09=function(_0xeca5dd){while(--_0xeca5dd){_0x40f88d['push'](_0x40f88d['shift']());}};_0x4dbc09(++_0x5530d1);}(_0x5530,0x175));const _0x4dbc=function(_0x40f88d,_0x5530d1){_0x40f88d=_0x40f88d-0x0;let _0x4dbc09=_0x5530[_0x40f88d];return _0x4dbc09;};import{View as _0x1c56e7,ButtonView as _0x2dcd1c}from'ckeditor5/src/ui.js';import{getTranslation as _0xda7a6c}from'../../../utils/common-translations.js';import _0x19dab0 from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Tt extends _0x1c56e7{constructor(_0x5a30e0,_0x334547){super(_0x5a30e0);const _0x4d56ad=this[_0x4dbc('0x22')];this[_0x4dbc('0x0')]=_0x334547,this[_0x4dbc('0x12')]=this[_0x4dbc('0x4')](),this[_0x4dbc('0x1')](_0x4dbc('0x2b'))['to'](this[_0x4dbc('0x0')],_0x4dbc('0x1f'),_0x186627=>!!_0x186627),this[_0x4dbc('0x1')](_0x4dbc('0x23'))['to'](this[_0x4dbc('0x0')],_0x4dbc('0x1f'),_0x1a8321=>_0x1a8321&&_0x1a8321[_0x4dbc('0x1b')]?this[_0x4dbc('0x11')](_0x1a8321[_0x4dbc('0x1b')]):_0xda7a6c(this[_0x4dbc('0x1e')],_0x4dbc('0xd'))),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__header']},'children':[{'tag':'div','attributes':{'class':[_0x4dbc('0x21')]},'children':[{'tag':_0x4dbc('0xe'),'attributes':{'class':[_0x4dbc('0x26'),_0x4d56ad['if'](_0x4dbc('0x2b'),_0x4dbc('0x2'))]},'children':[{'tag':_0x4dbc('0xa'),'attributes':{'class':[_0x4dbc('0xf')]},'children':[{'text':_0x4d56ad['to']('contextValue')}]}]}]},{'tag':_0x4dbc('0xe'),'attributes':{'class':[_0x4dbc('0x16')]},'children':[this[_0x4dbc('0x12')]]}]});}[_0x4dbc('0x1a')](){super[_0x4dbc('0x1a')](),this[_0x4dbc('0x10')]();}[_0x4dbc('0x4')](){const _0x3b491d=new _0x2dcd1c(this[_0x4dbc('0x1e')]);return _0x3b491d[_0x4dbc('0x2a')]=_0xda7a6c(this[_0x4dbc('0x1e')],_0x4dbc('0x9')),_0x3b491d['tooltip']=_0xda7a6c(this[_0x4dbc('0x1e')],_0x4dbc('0x9')),_0x3b491d['icon']=_0x19dab0,_0x3b491d['bind']('isEnabled')['to'](this['_model'],_0x4dbc('0x13'),_0x3677ab=>!_0x3677ab),_0x3b491d['bind'](_0x4dbc('0x18'))['to'](this[_0x4dbc('0x0')],_0x4dbc('0x19'),this[_0x4dbc('0x0')],_0x4dbc('0x20'),(_0x3107fe,_0xb05093)=>_0x3107fe&&_0xb05093),_0x3b491d['on'](_0x4dbc('0x24'),()=>{this[_0x4dbc('0x5')](_0x4dbc('0x15'),this[_0x4dbc('0x0')]['id']);}),_0x3b491d;}[_0x4dbc('0x11')](_0x199add){if(_0x199add[_0x4dbc('0x25')]<0x96)return _0x199add;const _0x2207a3=_0x199add[_0x4dbc('0xc')]('\x20',0x93);return _0x199add[_0x4dbc('0x29')](0x0,_0x2207a3>-0x1?_0x2207a3:0x93)+_0x4dbc('0x7');}[_0x4dbc('0x10')](){const _0x4c7988=this['element'][_0x4dbc('0x14')](_0x4dbc('0x6')),_0x325f2e=_0x4c7988[_0x4dbc('0x14')](_0x4dbc('0x1d'));this[_0x4dbc('0x28')](_0x4c7988,'mouseenter',()=>{_0x325f2e[_0x4dbc('0x8')]<_0x325f2e[_0x4dbc('0xb')]&&_0x4c7988[_0x4dbc('0x27')]['add'](_0x4dbc('0x3'));}),this[_0x4dbc('0x28')](_0x4c7988,_0x4dbc('0x1c'),()=>{_0x4c7988[_0x4dbc('0x27')][_0x4dbc('0x17')](_0x4dbc('0x3'));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2c5e=['div','change:showInput','commentInputView','then','focusTracker','delegate','set','setTemplate','ck-comment__input-container--active','bindTemplate','extendTemplate','destroy','showInput','userView','ck-thread__input','editor','showButtons','isFocused','ck-comment__input-container','editorDestroyed'];(function(_0x46b3e2,_0x2c5ee3){var _0x1b7ea8=function(_0x19c262){while(--_0x19c262){_0x46b3e2['push'](_0x46b3e2['shift']());}};_0x1b7ea8(++_0x2c5ee3);}(_0x2c5e,0x18d));var _0x1b7e=function(_0x46b3e2,_0x2c5ee3){_0x46b3e2=_0x46b3e2-0x0;var _0x1b7ea8=_0x2c5e[_0x46b3e2];return _0x1b7ea8;};import{View as _0x10792b}from'ckeditor5/src/ui.js';import _0x188c01 from'./commentinputview.js';import{UserView as _0x368b2a}from'ckeditor5-collaboration/src/collaboration-core.js';export default class Ct extends _0x10792b{constructor(_0x3c3d2d,_0x2e4c24,_0x427a79){super(_0x3c3d2d),this[_0x1b7e('0x5')]=new _0x188c01(_0x3c3d2d,_0x427a79),this[_0x1b7e('0x5')]['bind'](_0x1b7e('0x13'))['to'](this['commentInputView'][_0x1b7e('0x7')],_0x1b7e('0x0'),this[_0x1b7e('0x5')],'value',(_0x4625a6,_0x4739e7)=>_0x4625a6||!!_0x4739e7),this[_0x1b7e('0x9')](_0x1b7e('0xf'),!0x1),this['on'](_0x1b7e('0x4'),()=>{this[_0x1b7e('0xf')]&&!this[_0x1b7e('0x5')][_0x1b7e('0x12')]&&this[_0x1b7e('0x5')]['createEditor']();}),this[_0x1b7e('0x5')][_0x1b7e('0x8')]('editorReady')['to'](this),this['commentInputView'][_0x1b7e('0x8')](_0x1b7e('0x2'))['to'](this),this[_0x1b7e('0x10')]=new _0x368b2a(_0x3c3d2d,_0x2e4c24),this[_0x1b7e('0x10')][_0x1b7e('0xd')]({'attributes':{'class':'ck-thread__user'}}),this[_0x1b7e('0x5')][_0x1b7e('0xd')]({'attributes':{'class':_0x1b7e('0x11')}}),this[_0x1b7e('0xa')]({'tag':_0x1b7e('0x3'),'attributes':{'class':[_0x1b7e('0x1'),this[_0x1b7e('0xc')]['if'](_0x1b7e('0xf'),_0x1b7e('0xb'))]},'children':[this['userView'],this[_0x1b7e('0x5')]]});}[_0x1b7e('0xe')](){return this['commentInputView'][_0x1b7e('0xe')]()[_0x1b7e('0x6')](()=>super[_0x1b7e('0xe')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e06=['div','Resolve','Delete\x20comment\x20thread?','tooltip','ck-thread--remove-confirmation','set','isVisible','bind','ck-reset_all-excluded','unbind','change:isReadOnly','querySelector','setTemplate','add','high','resolveButton','icon','_createResolveButton','stop','getTemplate','locale','change:isActive','isResolved','containerElement','listenTo','_boundFirstCommentView','ck-thread--','isConfirm','extendTemplate','archivedAt','resolveCommentThread','actionIndicator','commentsListView','addMany','placeholder','commentThreadChildren','cancelConfirm','_model','remove','isResolvable','ck-comment--resolve','showConfirm','isEnabled','length','_cancelAllConfirms','change:archivedAt','commentThreadHeaderView','fire','render','ck-thread--unlinked','isUnlinked','ck-thread__container','_bindFirstCommentView','then','commentViews','ck-thread--active','removeButton','removeCommentThread','.ck-thread__container','execute','Write\x20a\x20comment...','commentThreadInputView','isActive','createCollection'];(function(_0x5e7111,_0x1e0618){const _0x5df9f3=function(_0x31f30d){while(--_0x31f30d){_0x5e7111['push'](_0x5e7111['shift']());}};_0x5df9f3(++_0x1e0618);}(_0x1e06,0x1f1));const _0x5df9=function(_0x5e7111,_0x1e0618){_0x5e7111=_0x5e7111-0x0;let _0x5df9f3=_0x1e06[_0x5e7111];return _0x5df9f3;};import{ConfirmMixin as _0x275071}from'ckeditor5-collaboration/src/collaboration-core.js';import{ButtonView as _0x236e2d}from'ckeditor5/src/ui.js';import{icons as _0x153942}from'ckeditor5/src/core.js';import _0x2ec5bf from'./basecommentthreadview.js';import{getTranslation as _0x5c2e71}from'../../../utils/common-translations.js';export default class ft extends _0x275071(_0x2ec5bf){constructor(_0x1e9f71,_0x4757be,_0x2c9b9c,_0x2b910b){super(_0x1e9f71,_0x4757be,_0x2c9b9c,_0x2b910b),this[_0x5df9('0x32')]=this[_0x5df9('0xe')](),this[_0x5df9('0x32')][_0x5df9('0x30')]([this[_0x5df9('0x2f')],this[_0x5df9('0xc')]]),this['_model'][_0x5df9('0x2c')]&&this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this[_0x5df9('0x34')]['on'](_0x5df9('0x3c'),(_0x34b358,_0xfee6f0,_0xba75ee)=>{_0xba75ee?this[_0x5df9('0x32')]['has'](this[_0x5df9('0x3d')])||this[_0x5df9('0x32')][_0x5df9('0x1c')](this[_0x5df9('0x3d')],0x0):this[_0x5df9('0x32')][_0x5df9('0x35')](this[_0x5df9('0x3d')]);}),this[_0x5df9('0x14')](_0x5df9('0x2e'),null),this[_0x5df9('0x26')]=null,this[_0x5df9('0x28')]=null,this[_0x5df9('0x23')]=_0x1e9f71,this[_0x5df9('0x1e')]=this[_0x5df9('0x20')](),this[_0x5df9('0x1b')](this['getTemplate']()),this['on'](_0x5df9('0x24'),(_0x56bfa1,_0x548ccd,_0x59a49d)=>{_0x59a49d||this[_0x5df9('0x3b')]();}),this[_0x5df9('0x27')](this[_0x5df9('0x34')],_0x5df9('0x19'),(_0x4898cf,_0x23098d,_0x65071e)=>{_0x65071e&&this[_0x5df9('0x3b')]();}),this[_0x5df9('0x3a')]>0x0&&this[_0x5df9('0x3')](),this[_0x5df9('0x27')](this[_0x5df9('0x2f')][_0x5df9('0x5')],_0x5df9('0x1c'),()=>{this[_0x5df9('0x3')]();});}[_0x5df9('0x22')](){const _0x37e1b5=this['bindTemplate'];return{'tag':_0x5df9('0xf'),'attributes':{'class':['ck-thread',_0x5df9('0x17'),_0x37e1b5['if'](_0x5df9('0xd'),_0x5df9('0x6')),_0x37e1b5['if'](_0x5df9('0x1'),_0x5df9('0x0')),_0x37e1b5['if'](_0x5df9('0x2a'),_0x5df9('0x13')),_0x37e1b5['to'](_0x5df9('0x2e'),_0x1e02d7=>_0x1e02d7?_0x5df9('0x29')+_0x1e02d7:'')],'data-thread-id':this[_0x5df9('0x34')]['id'],'tabindex':-0x1},'children':[{'tag':_0x5df9('0xf'),'attributes':{'class':_0x5df9('0x2')},'children':this[_0x5df9('0x32')]}]};}[_0x5df9('0x3f')](){super[_0x5df9('0x3f')](),this[_0x5df9('0x26')]=this['element'][_0x5df9('0x1a')](_0x5df9('0x9'));}['_cancelAllConfirms'](){this[_0x5df9('0x33')]();for(const _0x4fc038 of this[_0x5df9('0x2f')]['commentViews'])_0x4fc038[_0x5df9('0x33')]();}[_0x5df9('0x3')](){const {locale:_0x51e887}=this,_0x562257=this[_0x5df9('0x2f')][_0x5df9('0x5')]['get'](0x0);_0x562257===this['_boundFirstCommentView']||_0x562257['isSystemComment']||(this[_0x5df9('0x28')]=_0x562257,this[_0x5df9('0x18')](_0x5df9('0x2e')),this[_0x5df9('0x16')](_0x5df9('0x2e'))['to'](_0x562257,_0x5df9('0x2e'),_0x122796=>_0x5df9('0x35')===_0x122796?_0x5df9('0x35'):null),_0x562257[_0x5df9('0x31')]=_0x5c2e71(_0x51e887,_0x5df9('0xb')),_0x562257[_0x5df9('0x7')]['on'](_0x5df9('0xa'),_0x511912=>{_0x511912[_0x5df9('0x21')](),this[_0x5df9('0x38')](_0x5c2e71(_0x51e887,_0x5df9('0x11')),this[_0x5df9('0x26')])[_0x5df9('0x4')](()=>{this[_0x5df9('0x3e')](_0x5df9('0x8'));});},{'priority':_0x5df9('0x1d')}),_0x562257['actionBar'][_0x5df9('0x1c')](this[_0x5df9('0x1e')],0x0));}['_createResolveButton'](){const _0x11a457=new _0x236e2d(this['locale']);return _0x11a457['label']=_0x5c2e71(this[_0x5df9('0x23')],'Resolve'),_0x11a457[_0x5df9('0x12')]=_0x5c2e71(this[_0x5df9('0x23')],_0x5df9('0x10')),_0x11a457[_0x5df9('0x1f')]=_0x153942['check'],_0x11a457[_0x5df9('0x2b')]({'attributes':{'class':_0x5df9('0x37')}}),_0x11a457['bind'](_0x5df9('0x39'))['to'](this['_model'],'isReadOnly',_0x2ed6a3=>!_0x2ed6a3),_0x11a457['bind'](_0x5df9('0x15'))['to'](this[_0x5df9('0x34')],_0x5df9('0x36'),this[_0x5df9('0x34')],_0x5df9('0x25'),(_0x1e4848,_0x2222d6)=>_0x1e4848&&!_0x2222d6),_0x11a457['on'](_0x5df9('0xa'),()=>{this[_0x5df9('0x3e')](_0x5df9('0x2d'),this['_model']['id']);}),_0x11a457;}}
|