@ckeditor/ckeditor5-comments 0.0.0-nightly-20231107.0 → 0.0.0-nightly-20231108.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/lang/contexts.json +2 -0
- 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 _0x4495=['_handleImportedData','importWord.formatting.comments','config','forEach','afterInit','plugins','importWord','get','dataInsert','editor','addCommentThread','comments','commands','execute','collaboration_features'];(function(_0x30945f,_0x449524){const _0x24b68b=function(_0xa8a7d){while(--_0xa8a7d){_0x30945f['push'](_0x30945f['shift']());}};_0x24b68b(++_0x449524);}(_0x4495,0x130));const _0x24b6=function(_0x30945f,_0x449524){_0x30945f=_0x30945f-0x0;let _0x24b68b=_0x4495[_0x30945f];return _0x24b68b;};import{Plugin as _0x17fad0}from'ckeditor5/src/core';import{priorities as _0x122ed2}from'ckeditor5/src/utils';import{Users as _0x3dd7d2}from'ckeditor5-collaboration/src/collaboration-core';import _0x3254f2 from'../commentsrepository';export default class Z extends _0x17fad0{constructor(_0x2665e9){super(_0x2665e9),this[_0x24b6('0x5')]['config']['define'](_0x24b6('0xc'),'basic');}[_0x24b6('0x0')](){const _0x557002=this['editor'],_0xa0b95c=_0x557002[_0x24b6('0x8')][_0x24b6('0x3')]('importWord'),_0x35e5d0=_0x557002['plugins'][_0x24b6('0x3')](_0x3dd7d2);_0xa0b95c&&(_0xa0b95c['on'](_0x24b6('0x9'),(_0xd53bff,[,_0x7d3781])=>{_0x7d3781[_0x24b6('0xa')]={'comments':!0x0,'user_id':_0x35e5d0['me']['id']},_0x7d3781['formatting'][_0x24b6('0x7')]=this[_0x24b6('0x5')][_0x24b6('0xd')]['get'](_0x24b6('0xc'));},{'priority':_0x122ed2['high']+0xa}),this['listenTo'](_0xa0b95c,_0x24b6('0x4'),this[_0x24b6('0xb')]));}[_0x24b6('0xb')](_0x22767d,_0x5a3abe){const {comment_threads:_0x5f5bcc}=_0x5a3abe;_0x5f5bcc&&_0x5f5bcc[_0x24b6('0xe')](({thread_id:_0x548b53,comments:_0x59cdf1,is_resolved:_0x116de9})=>{const _0x231142=new Date(),_0x10fd45=_0x59cdf1['map'](({author:_0x52845b,content:_0x2f8757,created_at:_0x3c3f06})=>({'content':_0x2f8757,'authorId':this[_0x24b6('0x5')][_0x24b6('0x1')][_0x24b6('0x3')](_0x3dd7d2)['me']['id'],'createdAt':_0x231142,'attributes':{'@external':{'authorName':_0x52845b,'createdAt':_0x3c3f06?new Date(_0x3c3f06):new Date(),'source':_0x24b6('0x2')}}})),_0x5377e9=this[_0x24b6('0x5')][_0x24b6('0xd')][_0x24b6('0x3')]('collaboration.channelId');this['editor'][_0x24b6('0x1')]['get'](_0x3254f2)[_0x24b6('0x6')]({'channelId':_0x5377e9,'threadId':_0x548b53,'comments':_0x10fd45,'resolvedAt':_0x116de9?_0x231142:null});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b06=['end','create','fire','focus','config','createRoot','data','view','placeholderElement','destroy','getRoot','document','ready','assign','model','_updatePlaceholder','placeholder','set','defaultPlugins','init','change','setSelection','getChild','then','get','initialData','plugins','childCount'];(function(_0x2c3cbb,_0x4b061c){const _0x3af30a=function(_0xa8d20e){while(--_0xa8d20e){_0x2c3cbb['push'](_0x2c3cbb['shift']());}};_0x3af30a(++_0x4b061c);}(_0x4b06,0x11d));const _0x3af3=function(_0x2c3cbb,_0x4b061c){_0x2c3cbb=_0x2c3cbb-0x0;let _0x3af30a=_0x4b06[_0x2c3cbb];return _0x3af30a;};import{Editor as _0xead9f1,DataApiMixin as _0xb333e1}from'ckeditor5/src/core';import _0x1ea2e8 from'./commenteditorui';import{ObservableMixin as _0x796672}from'ckeditor5/src/utils';import{enablePlaceholder as _0x47eb6,disablePlaceholder as _0x14216e}from'ckeditor5/src/engine';import{Clipboard as _0xcb35d7}from'ckeditor5/src/clipboard';import{Enter as _0x2a9389,ShiftEnter as _0x208202}from'ckeditor5/src/enter';import{SelectAll as _0xe82e4b}from'ckeditor5/src/select-all';import{Typing as _0x3d1fc6}from'ckeditor5/src/typing';import{Undo as _0x455081}from'ckeditor5/src/undo';import{Paragraph as _0x40a097}from'ckeditor5/src/paragraph';const Mt=[_0xcb35d7,_0x2a9389,_0x208202,_0xe82e4b,_0x3d1fc6,_0x455081,_0x40a097];export default class Nt extends _0x796672(_0xb333e1(_0xead9f1)){constructor(_0x402aca={}){(_0x402aca=Object[_0x3af3('0x8')]({},_0x402aca))['plugins']||(_0x402aca[_0x3af3('0x15')]=Nt[_0x3af3('0xd')]),super(_0x402aca),this['ui']=new _0x1ea2e8(this),this[_0x3af3('0xc')](_0x3af3('0xb'),''),this[_0x3af3('0x9')][_0x3af3('0x6')]['on'](_0x3af3('0xf'),()=>this[_0x3af3('0xa')](),{'priority':'low'}),this['on']('change:placeholder',()=>this[_0x3af3('0xa')]()),this[_0x3af3('0x9')]['document'][_0x3af3('0x0')]();}[_0x3af3('0x18')](){const _0x44432a=this[_0x3af3('0x1b')][_0x3af3('0x13')](_0x3af3('0x14'))||'';return this['initPlugins']()[_0x3af3('0x12')](()=>this['ui'][_0x3af3('0xe')]())[_0x3af3('0x12')](()=>this[_0x3af3('0x1')][_0x3af3('0xe')](_0x44432a))[_0x3af3('0x12')](()=>this[_0x3af3('0x19')](_0x3af3('0x7')));}[_0x3af3('0x4')](){return super['destroy']()[_0x3af3('0x12')](()=>this['ui'][_0x3af3('0x4')]());}['focus'](){this[_0x3af3('0x9')][_0x3af3('0xf')](_0x332c26=>{const _0x276258=this[_0x3af3('0x9')][_0x3af3('0x6')][_0x3af3('0x5')](),_0x5c74c4=_0x276258&&_0x276258['getChild'](_0x276258[_0x3af3('0x16')]-0x1);_0x332c26[_0x3af3('0x10')](_0x5c74c4,_0x3af3('0x17')),this['editing'][_0x3af3('0x2')][_0x3af3('0x1a')]();});}[_0x3af3('0xa')](){const _0x5cdae9=this['editing'][_0x3af3('0x2')],_0x263843=_0x5cdae9['document'][_0x3af3('0x5')](),_0x3d6d7d=_0x263843[_0x3af3('0x11')](0x0);_0x263843['childCount']>0x1||!_0x3d6d7d||'p'!=_0x3d6d7d['name']?this['placeholderElement']&&this['placeholderElement'][_0x3af3('0xb')]&&(_0x14216e(_0x5cdae9,this[_0x3af3('0x3')]),this['placeholderElement']=void 0x0):(this[_0x3af3('0xb')]&&(_0x3d6d7d[_0x3af3('0xb')]=this[_0x3af3('0xb')]),_0x47eb6({'view':_0x5cdae9,'element':_0x3d6d7d,'keepOnFocus':!0x0}),this[_0x3af3('0x3')]=_0x3d6d7d);}}Nt['defaultPlugins']=Mt;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4635=['getRoot','view','destroy','rootName','document','element','init','isFocused','bind','name','editable','editing'];(function(_0x4e7667,_0x463502){const _0x5d4fbc=function(_0x41a0b6){while(--_0x41a0b6){_0x4e7667['push'](_0x4e7667['shift']());}};_0x5d4fbc(++_0x463502);}(_0x4635,0x1ad));const _0x5d4f=function(_0x4e7667,_0x463502){_0x4e7667=_0x4e7667-0x0;let _0x5d4fbc=_0x4635[_0x4e7667];return _0x5d4fbc;};import{EditorUI as _0x23b713}from'ckeditor5/src/ui';import _0x54d11f from'./commenteditoruiview';export default class Ft extends _0x23b713{constructor(_0x404f0a){super(_0x404f0a),this[_0x5d4f('0x4')]=new _0x54d11f(_0x404f0a['locale'],_0x404f0a[_0x5d4f('0x2')]['view']);}get[_0x5d4f('0x8')](){return this[_0x5d4f('0x4')]['element'];}[_0x5d4f('0x9')](){const _0x743be5=this['editor'][_0x5d4f('0x2')]['view'],_0x2326ca=this[_0x5d4f('0x4')][_0x5d4f('0x1')],_0x540aac=_0x743be5[_0x5d4f('0x7')][_0x5d4f('0x3')]();_0x2326ca[_0x5d4f('0x0')]=_0x540aac[_0x5d4f('0x6')],this[_0x5d4f('0x4')]['render']();const _0x509fe3=_0x2326ca[_0x5d4f('0x8')];this['setEditableElement'](_0x2326ca[_0x5d4f('0x0')],_0x509fe3),this[_0x5d4f('0x4')][_0x5d4f('0x1')][_0x5d4f('0xb')](_0x5d4f('0xa'))['to'](this['focusTracker']),_0x743be5['attachDomRoot'](_0x509fe3),this['fire']('ready');}[_0x5d4f('0x5')](){super['destroy'](),this[_0x5d4f('0x4')]['destroy']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ed3=['_voiceLabelView','createCollection','setTemplate','render','ck-editor','main','_createVoiceLabel','ck-editor__aria-label_','add','Comment\x20editor','text','div','cke-editor__aria-label_','uiLanguage','ck-comment__input','focus','ck-reset','ck-editor__main','editable'];(function(_0x387b9a,_0x5ed3d7){const _0x411f0c=function(_0x2b5670){while(--_0x2b5670){_0x387b9a['push'](_0x387b9a['shift']());}};_0x411f0c(++_0x5ed3d7);}(_0x5ed3,0x151));const _0x411f=function(_0x387b9a,_0x5ed3d7){_0x387b9a=_0x387b9a-0x0;let _0x411f0c=_0x5ed3[_0x387b9a];return _0x411f0c;};import{InlineEditableUIView as _0x48586d,EditorUIView as _0x5d95b0,LabelView as _0x563212}from'ckeditor5/src/ui';import{uid as _0x5eafae}from'ckeditor5/src/utils';import{getTranslation as _0x346718}from'../../../utils/common-translations';export default class Rt extends _0x5d95b0{constructor(_0x175f7c,_0xf24439){super(_0x175f7c);const _0x549257=_0x5eafae();this['main']=this[_0x411f('0x6')](),this[_0x411f('0x4')]=new _0x48586d(_0x175f7c,_0xf24439),this[_0x411f('0x5')]=this[_0x411f('0xb')](_0x549257,_0x175f7c),this[_0x411f('0x7')]({'tag':_0x411f('0x10'),'attributes':{'class':[_0x411f('0x2'),_0x411f('0x9'),'ck-rounded-corners',_0x411f('0x0')],'role':'comment','dir':_0x175f7c['uiLanguageDirection'],'lang':_0x175f7c[_0x411f('0x12')],'aria-labelledby':_0x411f('0x11')+_0x549257},'children':[this['_voiceLabelView'],{'tag':_0x411f('0x10'),'attributes':{'class':_0x411f('0x3'),'role':'presentation'},'children':this[_0x411f('0xa')]}]});}[_0x411f('0x8')](){super[_0x411f('0x8')](),this[_0x411f('0xa')][_0x411f('0xd')](this[_0x411f('0x4')]);}[_0x411f('0x1')](){this['editable']['element'][_0x411f('0x1')]();}[_0x411f('0xb')](_0x582d56,_0x5b060b){const _0x388d88=new _0x563212();return _0x388d88[_0x411f('0xf')]=_0x346718(_0x5b060b,_0x411f('0xe')),_0x388d88['extendTemplate']({'attributes':{'id':_0x411f('0xc')+_0x582d56,'class':'ck-voice-label'}}),_0x388d88;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4fc6=['removeCommentThread','removeComment','view','addComment','submitCommentThread','update','resolveCommentThread','_localUser','remove','submit','model','stopListening','isResolved','listenTo','reopen','updateComment','resolve','_isAttached','destroy'];(function(_0x56e8d4,_0x4fc682){var _0x4387d0=function(_0x2322d7){while(--_0x2322d7){_0x56e8d4['push'](_0x56e8d4['shift']());}};_0x4387d0(++_0x4fc682);}(_0x4fc6,0x1d1));var _0x4387=function(_0x56e8d4,_0x4fc682){_0x56e8d4=_0x56e8d4-0x0;var _0x4387d0=_0x4fc6[_0x56e8d4];return _0x4387d0;};import{ObservableMixin as _0x469a2d}from'ckeditor5/src/utils';export default class ut extends _0x469a2d(){constructor(_0x50fb7b,_0x1ed295){super(),this[_0x4387('0x1')]=_0x50fb7b,this[_0x4387('0x1')][_0x4387('0x8')]=!0x0,this['view']=_0x1ed295,this[_0x4387('0x4')](_0x1ed295,_0x4387('0xe'),()=>this['submit']()),this['listenTo'](_0x1ed295,_0x4387('0xa'),()=>this[_0x4387('0x12')]()),this[_0x4387('0x4')](_0x1ed295,_0x4387('0x10'),()=>this['resolve']()),this['listenTo'](_0x1ed295,'reopenCommentThread',()=>this[_0x4387('0x5')]()),this[_0x4387('0x4')](_0x1ed295,'addComment',(_0x4728ea,_0x172aba)=>this['addComment'](_0x172aba)),this['listenTo'](_0x1ed295,_0x4387('0x6'),(_0x4a0908,_0x5f50e0,_0x2f6691)=>this[_0x4387('0x6')](_0x5f50e0,_0x2f6691)),this[_0x4387('0x4')](_0x1ed295,_0x4387('0xb'),(_0x9fd98d,_0x50b132)=>this[_0x4387('0xb')](_0x50b132));}[_0x4387('0x0')](){this[_0x4387('0x1')][_0x4387('0x0')]();}[_0x4387('0x12')](){this[_0x4387('0x1')]['remove']();}['resolve'](){this[_0x4387('0x1')][_0x4387('0x3')]||this['model'][_0x4387('0x7')]();}[_0x4387('0x5')](){this['model'][_0x4387('0x3')]&&this[_0x4387('0x1')]['reopen']();}[_0x4387('0xd')](_0x207368){this[_0x4387('0x1')][_0x4387('0xd')]({'content':_0x207368,'authorId':this[_0x4387('0xc')][_0x4387('0x11')]['id']});}[_0x4387('0x6')](_0x13e222,_0x17f5be){this[_0x4387('0x1')]['getComment'](_0x13e222)[_0x4387('0xf')]({'content':_0x17f5be});}[_0x4387('0xb')](_0x4c9338){this[_0x4387('0x1')]['getComment'](_0x4c9338)['remove']();}[_0x4387('0x9')](){this[_0x4387('0x2')](),this[_0x4387('0x1')]['_isAttached']=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1929=['_model','_createCommentThreadInputView','bind','submitLabel','canComment','Reply\x20to\x20reopen\x20discussion...','editorReady','updateComment','cancel','_config','submit','_localUser','stop','locale','removeCommentThread','Write\x20a\x20comment...','archivedAt','fire','focus','isDirty','hasDirtyComment','commentThreadInputView','value','delegate','Reply...','Reply','removeComment','placeholder','commentThreadHeaderView','showInput','isUnlinked','assign','length','set','isResolvable','isResolved','disabledSubmit','CommentView','isActive','commentsListView','reopenCommentThread','editorDestroyed','resolveCommentThread','addComment','listenTo','commentInputView','editorConfig','isSubmitted','unlinkedAt','destroy'];(function(_0x584abd,_0x192915){const _0x4c5a5d=function(_0x584530){while(--_0x584530){_0x584abd['push'](_0x584abd['shift']());}};_0x4c5a5d(++_0x192915);}(_0x1929,0x1d7));const _0x4c5a=function(_0x584abd,_0x192915){_0x584abd=_0x584abd-0x0;let _0x4c5a5d=_0x1929[_0x584abd];return _0x4c5a5d;};import{View as _0x514cd5}from'ckeditor5/src/ui';import _0xf3e2c8 from'./commentthreadinputview';import _0x4b1551 from'./commentslistview';import _0x4fcba9 from'./commentthreadheaderview';import{getTranslation as _0x5caf4b}from'../../../utils/common-translations';export default class Ut extends _0x514cd5{constructor(_0x448a23,_0xf1987d,_0x230db1,_0x260c3d){super(_0x448a23),this[_0x4c5a('0xc')]('isActive',!0x1),this[_0x4c5a('0xc')](_0x4c5a('0x30'),!0x1),this[_0x4c5a('0x1d')]=_0xf1987d,this['_localUser']=_0x230db1,this[_0x4c5a('0x26')]=_0x260c3d,this[_0x4c5a('0x7')]=new _0x4fcba9(_0x448a23,_0xf1987d),this[_0x4c5a('0x7')][_0x4c5a('0x2')](_0x4c5a('0x13'))['to'](this),this[_0x4c5a('0x17')](this,_0x4c5a('0x13'),()=>{this['focus']();}),this[_0x4c5a('0x12')]=new _0x4b1551(_0x448a23,_0xf1987d,Object[_0x4c5a('0xa')]({'CommentView':this[_0x4c5a('0x26')][_0x4c5a('0x10')]},_0x260c3d)),this['commentsListView']['delegate'](_0x4c5a('0x5'))['to'](this),this[_0x4c5a('0x12')]['delegate'](_0x4c5a('0x24'))['to'](this),this[_0x4c5a('0x12')][_0x4c5a('0x2')](_0x4c5a('0x15'))['to'](this),this[_0x4c5a('0x12')][_0x4c5a('0x2')](_0x4c5a('0x23'))['to'](this),this[_0x4c5a('0x12')]['delegate'](_0x4c5a('0x14'))['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this[_0x4c5a('0x17')](this,_0x4c5a('0x15'),()=>{this[_0x4c5a('0x2f')]();}),this[_0x4c5a('0xc')](_0x4c5a('0xb'),this[_0x4c5a('0x12')][_0x4c5a('0xb')]),this[_0x4c5a('0x1f')](_0x4c5a('0xb'))['to'](this['commentsListView'],_0x4c5a('0xb')),this[_0x4c5a('0x0')]=this[_0x4c5a('0x1e')](),this['commentThreadInputView'][_0x4c5a('0x2')](_0x4c5a('0x23'))['to'](this),this[_0x4c5a('0x0')][_0x4c5a('0x2')]('editorDestroyed')['to'](this),this['on'](_0x4c5a('0x5'),()=>this[_0x4c5a('0x2f')]()),this['bind']('isDirty')['to'](this[_0x4c5a('0x12')],_0x4c5a('0x31'),this['commentThreadInputView'][_0x4c5a('0x18')],'value',(_0x6faf2a,_0x160c72)=>_0x6faf2a||!!_0x160c72),this[_0x4c5a('0x1f')](_0x4c5a('0x9'))['to'](_0xf1987d,_0x4c5a('0x1b'),_0x215533=>!!_0x215533);}[_0x4c5a('0x2f')](){this['element']['focus']();}async[_0x4c5a('0x1c')](){this[_0x4c5a('0x30')]=!0x1,this[_0x4c5a('0x12')]['destroy'](),await this[_0x4c5a('0x0')][_0x4c5a('0x1c')](),super[_0x4c5a('0x1c')]();}['_createCommentThreadInputView'](){const _0x1ed41d=new _0xf3e2c8(this[_0x4c5a('0x2a')],this[_0x4c5a('0x28')],this[_0x4c5a('0x26')][_0x4c5a('0x19')]),_0x55f3eb=_0x1ed41d[_0x4c5a('0x18')];return _0x1ed41d['bind'](_0x4c5a('0x8'))['to'](this,_0x4c5a('0x11'),this[_0x4c5a('0x1d')],'isReadOnly',this[_0x4c5a('0x1d')],_0x4c5a('0x21'),this[_0x4c5a('0x1d')],_0x4c5a('0x2d'),_0x55f3eb,'value',(_0x203d4d,_0x5f1f1c,_0x1ac80e,_0x5c4dd2,_0x4e2250)=>!!_0x4e2250||!!_0x5c4dd2&&_0x1ac80e&&!_0x5f1f1c||_0x203d4d&&_0x1ac80e&&!_0x5f1f1c),_0x55f3eb[_0x4c5a('0x1f')](_0x4c5a('0x6'))['to'](this,_0x4c5a('0xb'),this[_0x4c5a('0x1d')],_0x4c5a('0xd'),this['_model'],_0x4c5a('0xe'),(_0x8a956c,_0x3a6091,_0x80438e)=>{let _0x1b9535;return _0x1b9535=_0x80438e&&_0x3a6091?_0x4c5a('0x22'):_0x8a956c?_0x4c5a('0x3'):_0x4c5a('0x2c'),_0x5caf4b(this[_0x4c5a('0x2a')],_0x1b9535);}),_0x55f3eb[_0x4c5a('0x1f')](_0x4c5a('0x20'))['to'](this,'length',_0x2692eb=>_0x5caf4b(this[_0x4c5a('0x2a')],_0x2692eb?_0x4c5a('0x4'):'Comment')),_0x55f3eb['on'](_0x4c5a('0x27'),(_0x4ede1a,_0x37f4d7)=>{this['fire'](_0x4c5a('0x16'),_0x37f4d7),this['_model']['isResolved']&&this[_0x4c5a('0x1d')][_0x4c5a('0xd')]&&this['fire'](_0x4c5a('0x13'),this[_0x4c5a('0x1d')]['id']),this[_0x4c5a('0x1d')][_0x4c5a('0x1a')]||this[_0x4c5a('0x2e')]('submitCommentThread');}),_0x55f3eb['on'](_0x4c5a('0x25'),()=>{this[_0x4c5a('0x2f')]();}),_0x55f3eb[_0x4c5a('0x1f')](_0x4c5a('0xf'))['to'](this[_0x4c5a('0x1d')],'isReadOnly'),_0x55f3eb['on'](_0x4c5a('0x25'),_0x154d04=>{0x0==this[_0x4c5a('0xb')]&&(this[_0x4c5a('0x2e')](_0x4c5a('0x2b')),_0x154d04[_0x4c5a('0x29')]());}),this['on']('change:isActive',(_0x2ecc0f,_0x132ec0,_0x4cbad4)=>{_0x4cbad4||this[_0x4c5a('0xb')]||_0x55f3eb[_0x4c5a('0x1')]||this[_0x4c5a('0x2e')](_0x4c5a('0x2b'));}),_0x1ed41d;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x38f8=['switchToDisplayMode','set','remove','locale','createCollection','_createCommentContentView','content','fire','editorReady','value','editorDestroyed','initialData','isEditMode','maxCommentCharsWhenCollapsed','submitLabel','_createCommentInputView','_config','bind','isCollapsed','collapse','submit','isReadOnly','focus','isSystemComment','editorConfig','add','disabledSubmit','createEditor','element','updateComment','_model','Save','visibleView','destroy'];(function(_0x5941ac,_0x38f862){const _0x11e67b=function(_0x492ed1){while(--_0x492ed1){_0x5941ac['push'](_0x5941ac['shift']());}};_0x11e67b(++_0x38f862);}(_0x38f8,0x7b));const _0x11e6=function(_0x5941ac,_0x38f862){_0x5941ac=_0x5941ac-0x0;let _0x11e67b=_0x38f8[_0x5941ac];return _0x11e67b;};import{View as _0x5d2177}from'ckeditor5/src/ui';import{trimHtml as _0x6f80b2}from'ckeditor5-collaboration/src/collaboration-core';import _0x4b691e from'./commentcontentview';import _0x3f8406 from'./commentinputview';import{getTranslation as _0x54b024}from'../../../utils/common-translations';export default class ti extends _0x5d2177{constructor(_0x396065,_0x47b68b,_0x1dd27c){super(_0x396065),this[_0x11e6('0x9')]=_0x47b68b,this[_0x11e6('0x1d')]=_0x1dd27c,this[_0x11e6('0x2')]=!!this['_config']['isSystemComment'],this[_0x11e6('0xe')]('isEditMode',!0x1),this[_0x11e6('0xe')](_0x11e6('0x1f'),!0x0),this[_0x11e6('0xb')]=this[_0x11e6('0x11')](),this[_0x11e6('0xb')][_0x11e6('0x4')](this[_0x11e6('0x12')]());}['expand'](){this[_0x11e6('0x1f')]=!0x1;}[_0x11e6('0x20')](){this[_0x11e6('0x19')]||(this[_0x11e6('0x1f')]=!0x0);}[_0x11e6('0x1')](){this[_0x11e6('0x7')]['focus']();}async[_0x11e6('0xc')](){await this['visibleView']['get'](0x0)[_0x11e6('0xc')](),super['destroy']();}['switchToEditMode'](){this[_0x11e6('0x19')]||(this[_0x11e6('0x19')]=!0x0,this['visibleView'][_0x11e6('0xf')](0x0)[_0x11e6('0xc')](),this[_0x11e6('0xb')][_0x11e6('0x4')](this[_0x11e6('0x1c')]()));}[_0x11e6('0xd')](){this[_0x11e6('0x19')]&&(this[_0x11e6('0x19')]=!0x1,this[_0x11e6('0xb')][_0x11e6('0xf')](0x0)['destroy'](),this['visibleView'][_0x11e6('0x4')](this['_createCommentContentView']()));}[_0x11e6('0x12')](){const _0x17593a=new _0x4b691e(this[_0x11e6('0x10')]);return _0x17593a['bind'](_0x11e6('0x13'))['to'](this[_0x11e6('0x9')],_0x11e6('0x13'),this,_0x11e6('0x1f'),(_0x57d0dc,_0x4b460b)=>_0x4b460b?_0x6f80b2(_0x57d0dc,{'limit':this[_0x11e6('0x1d')][_0x11e6('0x1a')]}):_0x57d0dc),_0x17593a;}['_createCommentInputView'](){this[_0x11e6('0x1d')]['editorConfig']||(this[_0x11e6('0x1d')][_0x11e6('0x3')]={}),this['_config'][_0x11e6('0x3')][_0x11e6('0x18')]=this[_0x11e6('0x9')]['content'];const _0x1c602e=new _0x3f8406(this['locale'],this[_0x11e6('0x1d')][_0x11e6('0x3')]);return _0x1c602e[_0x11e6('0x16')]=this['_model']['content'],_0x1c602e[_0x11e6('0x1e')](_0x11e6('0x5'))['to'](this[_0x11e6('0x9')],_0x11e6('0x0')),_0x1c602e[_0x11e6('0x1b')]=_0x54b024(this['locale'],_0x11e6('0xa')),_0x1c602e['on'](_0x11e6('0x21'),(_0x87032e,_0x137efa)=>{this[_0x11e6('0x14')](_0x11e6('0x8'),this[_0x11e6('0x9')]['id'],_0x137efa),this[_0x11e6('0xd')](),this[_0x11e6('0x1')]();}),_0x1c602e['on']('cancel',()=>{this[_0x11e6('0xd')](),this[_0x11e6('0x1')]();}),_0x1c602e['once'](_0x11e6('0x15'),()=>{_0x1c602e[_0x11e6('0x1')]();}),_0x1c602e[_0x11e6('0x6')](),_0x1c602e['delegate'](_0x11e6('0x15'))['to'](this),_0x1c602e['delegate'](_0x11e6('0x17'))['to'](this),_0x1c602e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x36ac=['setTemplate','set','ck-thread__comment-count','NUMBER_OF_COMMENTS','count'];(function(_0xd4aaea,_0x36ac97){const _0x30bf1a=function(_0x3442b9){while(--_0x3442b9){_0xd4aaea['push'](_0xd4aaea['shift']());}};_0x30bf1a(++_0x36ac97);}(_0x36ac,0x9b));const _0x30bf=function(_0xd4aaea,_0x36ac97){_0xd4aaea=_0xd4aaea-0x0;let _0x30bf1a=_0x36ac[_0xd4aaea];return _0x30bf1a;};import{View as _0x31e26a}from'ckeditor5/src/ui';import{getTranslation as _0x582d4c}from'../../../utils/common-translations';export default class to extends _0x31e26a{constructor(_0x4e4d12){super(_0x4e4d12);const _0x1d00ea=this['bindTemplate'];this[_0x30bf('0x1')](_0x30bf('0x4'),void 0x0),this[_0x30bf('0x0')]({'tag':'li','attributes':{'class':_0x30bf('0x2')},'children':[{'text':_0x1d00ea['to'](_0x30bf('0x4'),_0x4a73aa=>_0x582d4c(_0x4e4d12,_0x30bf('0x3'),_0x4a73aa))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xfff7=['div','element','innerHTML','content','render','ck-annotation__content','setTemplate','ck-comment__content'];(function(_0x3b0ba4,_0xfff7b9){var _0x33ca5c=function(_0x45c581){while(--_0x45c581){_0x3b0ba4['push'](_0x3b0ba4['shift']());}};_0x33ca5c(++_0xfff7b9);}(_0xfff7,0x15c));var _0x33ca=function(_0x3b0ba4,_0xfff7b9){_0x3b0ba4=_0x3b0ba4-0x0;var _0x33ca5c=_0xfff7[_0x3b0ba4];return _0x33ca5c;};import{View as _0x3e7761}from'ckeditor5/src/ui';export default class Yt extends _0x3e7761{constructor(_0x21b2a0){super(_0x21b2a0),this['set'](_0x33ca('0x7'),''),this[_0x33ca('0x2')]({'tag':_0x33ca('0x4'),'attributes':{'class':[_0x33ca('0x3'),_0x33ca('0x1')]}});}[_0x33ca('0x0')](){super[_0x33ca('0x0')](),this['on']('change:content',(_0x5128dd,_0xda7c8b,_0x514ea3)=>{this[_0x33ca('0x5')][_0x33ca('0x6')]=_0x514ea3;}),this[_0x33ca('0x5')][_0x33ca('0x6')]=this[_0x33ca('0x7')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x330a=['stop','model','bind','withText','listenTo','set','insertBefore','Reply','focusTracker','_createSubmitButton','focusPrevious','change','element','_createCancelButton','keystrokes','ck-comment__input-actions--cancel','ck-comment__input-actions--submit','fire','focusNext','ck-comment__input-actions','setData','document','createEditor','editorDestroyed','value','_initializeFocusCycling','_isDestroyed','create','label','low','_editorConfig','then','forEach','execute','getData','length','destroy','add','showButtons','Reply...','div','initialData','ck-comment__input-wrapper','trim','submitButtonView','editor','Esc','isEnabled','submitLabel','_editorCreationPromise','ck-comment__input-actions--active','submit','setTemplate','view','editorReady','focus','high','disabledSubmit','cancelButtonView'];(function(_0x2aabfa,_0x330a34){const _0x1a1ef0=function(_0x53b9be){while(--_0x53b9be){_0x2aabfa['push'](_0x2aabfa['shift']());}};_0x1a1ef0(++_0x330a34);}(_0x330a,0x117));const _0x1a1e=function(_0x2aabfa,_0x330a34){_0x2aabfa=_0x2aabfa-0x0;let _0x1a1ef0=_0x330a[_0x2aabfa];return _0x1a1ef0;};import{View as _0x530602,ViewCollection as _0x3337d7,FocusCycler as _0xa0b825,ButtonView as _0x36b158}from'ckeditor5/src/ui';import{FocusTracker as _0x208c15,KeystrokeHandler as _0xe7f835}from'ckeditor5/src/utils';import _0x323c5c from'../commenteditor/commenteditor';import{getTranslation as _0x556790}from'../../../utils/common-translations';export default class Zt extends _0x530602{constructor(_0x5ab54b,_0xad5efb={}){super(_0x5ab54b),this[_0x1a1e('0x2')]=null,this[_0x1a1e('0x2e')]=_0xad5efb,this[_0x1a1e('0x1e')]=new _0xe7f835(),this[_0x1a1e('0x18')]=new _0x208c15(),this[_0x1a1e('0x15')](_0x1a1e('0x28'),_0xad5efb[_0x1a1e('0x39')]||''),this[_0x1a1e('0x15')](_0x1a1e('0xe'),!0x1),this['set'](_0x1a1e('0x36'),!0x0),this[_0x1a1e('0x15')]('placeholder',_0x556790(_0x5ab54b,_0x1a1e('0x37'))),this[_0x1a1e('0x15')](_0x1a1e('0x5'),_0x556790(_0x5ab54b,_0x1a1e('0x17'))),this[_0x1a1e('0x1')]=this[_0x1a1e('0x19')](),this['cancelButtonView']=this[_0x1a1e('0x1d')](),this[_0x1a1e('0x9')]({'tag':'div','attributes':{'class':[_0x1a1e('0x3a')]},'children':[{'tag':_0x1a1e('0x38'),'attributes':{'class':[_0x1a1e('0x23'),this['bindTemplate']['if'](_0x1a1e('0x36'),_0x1a1e('0x7'))]},'children':[this[_0x1a1e('0x1')],this[_0x1a1e('0xf')]]}]}),this[_0x1a1e('0x1e')][_0x1a1e('0x15')](_0x1a1e('0x3'),(_0x2925d9,_0x426155)=>{this['cancelButtonView']['fire'](_0x1a1e('0x31')),_0x426155();}),this['on'](_0x1a1e('0x8'),(_0x30b166,_0x95eeda)=>{_0x95eeda[_0x1a1e('0x33')]>0xfde8?(alert(_0x556790(_0x5ab54b,'TOO_LONG_COMMENT_ALERT',[_0x95eeda['length'],0xfde8])),_0x30b166[_0x1a1e('0x10')]()):this[_0x1a1e('0x2')][_0x1a1e('0x24')]('');},{'priority':_0x1a1e('0xd')});}['render'](){super['render'](),this[_0x1a1e('0x1e')][_0x1a1e('0x14')](this[_0x1a1e('0x1c')]),this[_0x1a1e('0x18')][_0x1a1e('0x35')](this[_0x1a1e('0x1c')]);}[_0x1a1e('0x26')](){return this[_0x1a1e('0x2')]||(this[_0x1a1e('0x2')]=new _0x323c5c(this[_0x1a1e('0x2e')]),this[_0x1a1e('0x6')]=this[_0x1a1e('0x2')][_0x1a1e('0x2b')]()[_0x1a1e('0x2f')](()=>{if(this[_0x1a1e('0x2a')])return;const _0x537026=this[_0x1a1e('0x2')];this[_0x1a1e('0x1c')][_0x1a1e('0x16')](_0x537026['ui'][_0x1a1e('0x1c')],this[_0x1a1e('0x1c')]['firstChild']),_0x537026[_0x1a1e('0x11')][_0x1a1e('0x25')]['on'](_0x1a1e('0x1b'),()=>this[_0x1a1e('0x28')]=_0x537026[_0x1a1e('0x32')]()),_0x537026[_0x1a1e('0x12')]('placeholder')['to'](this),this[_0x1a1e('0x29')](this[_0x1a1e('0x2')]),this[_0x1a1e('0x21')](_0x1a1e('0xb'),this[_0x1a1e('0x2')]);})),this['_editorCreationPromise'];}[_0x1a1e('0xc')](){this[_0x1a1e('0x2')]&&this['editor']['focus']();}async['destroy'](){this[_0x1a1e('0x2a')]||(this[_0x1a1e('0x2a')]=!0x0,this['editor']&&(await this[_0x1a1e('0x6')],await this[_0x1a1e('0x2')]['destroy'](),this['fire'](_0x1a1e('0x27'),this['editor'])),await super[_0x1a1e('0x34')]());}['_createSubmitButton'](){const {locale:_0x368590}=this,_0x4255c1=new _0x36b158(_0x368590);return _0x4255c1['extendTemplate']({'attributes':{'class':[_0x1a1e('0x20')]}}),_0x4255c1[_0x1a1e('0x13')]=!0x0,_0x4255c1[_0x1a1e('0x12')](_0x1a1e('0x2c'))['to'](this,_0x1a1e('0x5')),_0x4255c1['on']('execute',()=>{this[_0x1a1e('0x21')](_0x1a1e('0x8'),this[_0x1a1e('0x28')]);}),_0x4255c1[_0x1a1e('0x12')](_0x1a1e('0x4'))['to'](this,_0x1a1e('0x28'),this,_0x1a1e('0xe'),(_0x4e6f91,_0x4b049d)=>!_0x4b049d&&!!_0x4e6f91[_0x1a1e('0x0')]()),_0x4255c1;}[_0x1a1e('0x1d')](){const {locale:_0x386b6c}=this,_0x4ea88b=new _0x36b158(_0x386b6c);return _0x4ea88b['extendTemplate']({'attributes':{'class':[_0x1a1e('0x1f')]}}),_0x4ea88b[_0x1a1e('0x2c')]=_0x556790(_0x386b6c,'Cancel'),_0x4ea88b[_0x1a1e('0x13')]=!0x0,_0x4ea88b['on'](_0x1a1e('0x31'),()=>{this[_0x1a1e('0x2')][_0x1a1e('0x24')](''),this[_0x1a1e('0x21')]('cancel');}),_0x4ea88b;}[_0x1a1e('0x29')](_0x5c89cb){const _0x4a923d=this[_0x1a1e('0x18')],_0x3f0273=new _0x3337d7();[_0x5c89cb['ui'][_0x1a1e('0xa')],this[_0x1a1e('0x1')],this[_0x1a1e('0xf')]][_0x1a1e('0x30')](_0x4a9448=>{_0x3f0273['add'](_0x4a9448),_0x4a923d[_0x1a1e('0x35')](_0x4a9448[_0x1a1e('0x1c')]);});const _0x3dc52d=new _0xa0b825({'focusables':_0x3f0273,'focusTracker':_0x4a923d});this[_0x1a1e('0x1e')][_0x1a1e('0x15')]('tab',(_0x349571,_0x3001fc)=>{_0x3dc52d[_0x1a1e('0x22')](),_0x3001fc();},{'priority':_0x1a1e('0x2d')}),this[_0x1a1e('0x1e')]['set']('shift\x20+\x20tab',(_0x3d6796,_0x72ca9a)=>{_0x3dc52d[_0x1a1e('0x1a')](),_0x72ca9a();},{'priority':_0x1a1e('0x2d')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5b1c=['render','length','COMMENTS_ARCHIVE','setTemplate','focus','_focusTracker','arrowdown','bindTemplate','set','selectstart','destroy','isEmpty','stopPropagation','element','ck-hidden','add','_focusables','tab','arrowright','listenTo','_focusCycler','high','auto','EMPTY_COMMENTS_ARCHIVE','_keystrokes','isActive','ck-comments-archive','div'];(function(_0x1e5131,_0x5b1c4b){const _0x3fc33e=function(_0x3c59cd){while(--_0x3c59cd){_0x1e5131['push'](_0x1e5131['shift']());}};_0x3fc33e(++_0x5b1c4b);}(_0x5b1c,0xe3));const _0x3fc3=function(_0x1e5131,_0x5b1c4b){_0x1e5131=_0x1e5131-0x0;let _0x3fc33e=_0x5b1c[_0x1e5131];return _0x3fc33e;};import{View as _0x3c9c07,FocusCycler as _0x545a0d}from'ckeditor5/src/ui';import{FocusTracker as _0x8fd6dd,KeystrokeHandler as _0x3087bf}from'ckeditor5/src/utils';import{getTranslation as _0x3c3f9e}from'../../../utils/common-translations';export default class K extends _0x3c9c07{constructor(_0x4cdfcb,_0x2bfbcf){super(_0x4cdfcb),this['set'](_0x3fc3('0x8'),!_0x2bfbcf[_0x3fc3('0x1a')]),this[_0x3fc3('0x2')]=new _0x8fd6dd(),this['_keystrokes']=new _0x3087bf(),this[_0x3fc3('0xd')]=_0x2bfbcf,this[_0x3fc3('0x11')]=new _0x545a0d({'focusables':this[_0x3fc3('0xd')],'focusTracker':this[_0x3fc3('0x2')],'keystrokeHandler':this[_0x3fc3('0x15')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0x3fc3('0xe')}}),this[_0x3fc3('0x10')](_0x2bfbcf,_0x3fc3('0xc'),()=>{this[_0x3fc3('0x8')]=!0x1;}),this[_0x3fc3('0x10')](_0x2bfbcf,'remove',(_0x559328,_0x4f02c4)=>{_0x4f02c4[_0x3fc3('0x16')]&&this[_0x3fc3('0x1')](),_0x2bfbcf[_0x3fc3('0x1a')]||(this[_0x3fc3('0x8')]=!0x0);});const _0x398705=this[_0x3fc3('0x4')];this[_0x3fc3('0x0')]({'tag':_0x3fc3('0x18'),'attributes':{'dir':_0x3fc3('0x13'),'class':['ck',_0x3fc3('0x17')],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':['ck-comments-archive__header\x20']},'children':[{'text':_0x3c3f9e(_0x4cdfcb,_0x3fc3('0x1b'))}]},{'tag':_0x3fc3('0x18'),'attributes':{'class':['ck-comments-archive__content']},'children':[{'tag':_0x3fc3('0x18'),'children':_0x2bfbcf},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x398705['if'](_0x3fc3('0x8'),_0x3fc3('0xb'),_0x137b07=>!_0x137b07)]},'children':[{'text':_0x3c3f9e(_0x4cdfcb,_0x3fc3('0x14'))}]}]}]});}[_0x3fc3('0x19')](){super[_0x3fc3('0x19')](),this[_0x3fc3('0x15')][_0x3fc3('0x10')](this[_0x3fc3('0xa')]);const _0x15e2f6=_0x51ab3d=>_0x51ab3d[_0x3fc3('0x9')]();this['_keystrokes'][_0x3fc3('0x5')](_0x3fc3('0xf'),_0x15e2f6),this[_0x3fc3('0x15')][_0x3fc3('0x5')]('arrowleft',_0x15e2f6),this['_keystrokes'][_0x3fc3('0x5')]('arrowup',_0x15e2f6),this[_0x3fc3('0x15')][_0x3fc3('0x5')](_0x3fc3('0x3'),_0x15e2f6),this[_0x3fc3('0x10')](this[_0x3fc3('0xa')],_0x3fc3('0x6'),(_0x21bc6e,_0x4757e0)=>{_0x4757e0[_0x3fc3('0x9')]();},{'priority':_0x3fc3('0x12')});}[_0x3fc3('0x7')](){super[_0x3fc3('0x7')](),this[_0x3fc3('0x2')][_0x3fc3('0x7')](),this['_keystrokes'][_0x3fc3('0x7')]();}[_0x3fc3('0x1')](){this[_0x3fc3('0xa')][_0x3fc3('0x1')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x34c9=['removeComment','listenTo','equal','isActive','_handleRemoveCommentModel','destroy','isEditMode','stopListening','change:isActive','comments','locale','refreshVisibleViews','commentUpdated','hasDirtyComment','resolved','_config','change:hasDirtyComment','resolvedCommentView','set','resolvedBy','visibleViews','change:isEditMode','authoredAt','resolvedAt','from','_collapsedCommentsView','editorDestroyed','weight','_handleInfoComment','ck-thread__comments','maxCommentCharsWhenCollapsed','_model','_calculatePosition','_updateHasDirtyComment','element','_findOptimalIndex','focus','length','bind','createCollection','delete','commentViews','formatDateTime','remove','_handleNewCommentModel','delegate','maxThreadTotalWeight','_shouldCollapse','_rearrangeExpand','_rearrangeCollapse','updateComment','some','add','editorConfig','maxCommentsWhenCollapsed','get','change:isResolved','CommentView','Marked\x20as\x20resolved'];(function(_0x25fa88,_0x34c962){const _0x4bb33f=function(_0x546499){while(--_0x546499){_0x25fa88['push'](_0x25fa88['shift']());}};_0x4bb33f(++_0x34c962);}(_0x34c9,0x103));const _0x4bb3=function(_0x25fa88,_0x34c962){_0x25fa88=_0x25fa88-0x0;let _0x4bb33f=_0x34c9[_0x25fa88];return _0x4bb33f;};import{View as _0x26e6e1}from'ckeditor5/src/ui';import{diff as _0x14e95d,Collection as _0x520423}from'ckeditor5/src/utils';import{getTranslation as _0x7a68a3}from'../../../utils/common-translations';import _0x547705 from'./collapsedcommentsview';export default class Ct extends _0x26e6e1{constructor(_0x2c0aff,_0x9e4e5e,_0x5ab732){super(_0x2c0aff),this[_0x4bb3('0x36')](_0x4bb3('0x31'),!0x1),this[_0x4bb3('0x36')](_0x4bb3('0xe'),_0x9e4e5e[_0x4bb3('0x2d')]['length']),this[_0x4bb3('0x36')](_0x4bb3('0x27'),!0x1),this[_0x4bb3('0x8')]=_0x9e4e5e,this[_0x4bb3('0x33')]=_0x5ab732,this[_0x4bb3('0x12')]=this[_0x4bb3('0x10')](),this[_0x4bb3('0x38')]=this[_0x4bb3('0x10')](),this[_0x4bb3('0x35')]=null,this['_collapsedCommentsView']=new _0x547705(_0x2c0aff),this[_0x4bb3('0x2')][_0x4bb3('0xf')]('count')['to'](this,_0x4bb3('0xe'),_0x3d472c=>_0x3d472c-this[_0x4bb3('0x33')][_0x4bb3('0x1f')]);for(const _0xfe20fb of _0x9e4e5e[_0x4bb3('0x2d')])this[_0x4bb3('0x15')](_0xfe20fb);this['_handleInfoComment'](),this[_0x4bb3('0x25')](_0x9e4e5e['comments'],_0x4bb3('0x1d'),(_0x86da1d,_0x312d65)=>{const _0x4a84ee=this[_0x4bb3('0x9')](_0x312d65);this['length']++,this[_0x4bb3('0x15')](_0x312d65,_0x4a84ee),this['refreshVisibleViews']();}),this[_0x4bb3('0x25')](_0x9e4e5e['comments'],'remove',(_0x2bb064,_0x3b4121)=>{this[_0x4bb3('0xe')]--,this[_0x4bb3('0x28')](_0x3b4121),this['refreshVisibleViews']();}),this[_0x4bb3('0x25')](_0x9e4e5e,_0x4bb3('0x30'),()=>this[_0x4bb3('0x2f')]()),this['listenTo'](_0x9e4e5e,_0x4bb3('0x21'),()=>this[_0x4bb3('0x5')]()),this['on'](_0x4bb3('0x2c'),()=>this[_0x4bb3('0x2f')]()),this['on'](_0x4bb3('0x34'),()=>this[_0x4bb3('0x2f')]()),this['setTemplate']({'tag':'ul','attributes':{'class':[_0x4bb3('0x6')]},'children':this[_0x4bb3('0x38')]});}get['_shouldCollapse'](){return this[_0x4bb3('0x8')][_0x4bb3('0x4')]>this[_0x4bb3('0x33')][_0x4bb3('0x17')]&&!this[_0x4bb3('0x27')]&&!this['hasDirtyComment'];}['render'](){super['render'](),this[_0x4bb3('0x2f')]();}[_0x4bb3('0xd')](){this[_0x4bb3('0xb')]['focus']();}['destroy'](){this[_0x4bb3('0x2')][_0x4bb3('0x29')]();for(const _0x124c49 of this[_0x4bb3('0x12')])_0x124c49[_0x4bb3('0x29')]();super['destroy']();}[_0x4bb3('0x2f')](){this[_0x4bb3('0x18')]?this['_rearrangeCollapse']():this[_0x4bb3('0x19')]();}['_handleNewCommentModel'](_0x57b1ac,_0x13da67){const _0x104156=new this[(_0x4bb3('0x33'))][(_0x4bb3('0x22'))](this[_0x4bb3('0x2e')],_0x57b1ac,{'maxCommentCharsWhenCollapsed':this[_0x4bb3('0x33')][_0x4bb3('0x7')],'formatDateTime':this[_0x4bb3('0x33')][_0x4bb3('0x13')],'editorConfig':this[_0x4bb3('0x33')][_0x4bb3('0x1e')]});_0x104156['viewUid']=_0x57b1ac['id'],_0x104156['delegate'](_0x4bb3('0x24'))['to'](this),_0x104156[_0x4bb3('0x16')](_0x4bb3('0x1b'))['to'](this),_0x104156['delegate']('resolveCommentThread')['to'](this),_0x104156[_0x4bb3('0x16')]('editorReady')['to'](this),_0x104156[_0x4bb3('0x16')](_0x4bb3('0x3'))['to'](this),this[_0x4bb3('0x25')](_0x104156,_0x4bb3('0x39'),()=>this[_0x4bb3('0xa')]()),this[_0x4bb3('0x12')]['add'](_0x104156,_0x13da67);}['_calculatePosition'](_0x259026){const _0x4a92c8=this[_0x4bb3('0x8')][_0x4bb3('0xc')](_0x259026);return this[_0x4bb3('0x35')]?this[_0x4bb3('0x35')][_0x4bb3('0x3a')]>_0x259026['authoredAt']?_0x4a92c8-0x1:_0x4a92c8:_0x4a92c8-0x1;}[_0x4bb3('0x5')](){if(this[_0x4bb3('0x8')][_0x4bb3('0x37')]&&this[_0x4bb3('0x8')]['resolvedAt']){const _0x18628c={'id':_0x4bb3('0x32'),'author':this[_0x4bb3('0x8')][_0x4bb3('0x37')],'authoredAt':this[_0x4bb3('0x8')][_0x4bb3('0x0')],'content':_0x7a68a3(this['locale'],_0x4bb3('0x23')),'attributes':{}};this[_0x4bb3('0x35')]=new this['_config'][(_0x4bb3('0x22'))](this['locale'],_0x18628c,{'maxCommentCharsWhenCollapsed':this[_0x4bb3('0x33')][_0x4bb3('0x7')],'formatDateTime':this[_0x4bb3('0x33')][_0x4bb3('0x13')],'editorConfig':this[_0x4bb3('0x33')][_0x4bb3('0x1e')],'isSystemComment':!0x0}),this[_0x4bb3('0x12')][_0x4bb3('0x1d')](this['resolvedCommentView'],this['_model'][_0x4bb3('0xc')](_0x18628c));}else this[_0x4bb3('0x35')]&&(this[_0x4bb3('0x12')][_0x4bb3('0x14')](this[_0x4bb3('0x35')]),this['resolvedCommentView'][_0x4bb3('0x29')](),this[_0x4bb3('0x35')]=null);this[_0x4bb3('0x2f')]();}[_0x4bb3('0x28')](_0x5f158f){const _0x3b819d=this['commentViews'][_0x4bb3('0x14')](_0x5f158f['id']);this[_0x4bb3('0x2b')](_0x3b819d),_0x3b819d[_0x4bb3('0x2a')]&&this[_0x4bb3('0xa')](),_0x3b819d['destroy']();}[_0x4bb3('0xa')](){this[_0x4bb3('0x31')]=Array[_0x4bb3('0x1')](this[_0x4bb3('0x12')])[_0x4bb3('0x1c')](_0x564226=>_0x564226['isEditMode']);}[_0x4bb3('0x1a')](){const _0x539541=function(_0x4c931b){const _0x1c2d65=new _0x520423();for(const _0x33774c of _0x4c931b)_0x1c2d65[_0x4bb3('0x1d')](_0x33774c);return _0x1c2d65;}(this[_0x4bb3('0x12')]),_0x32f436=this[_0x4bb3('0x2')]['count'];for(let _0x1a837f=0x1;_0x1a837f<=_0x32f436;_0x1a837f++)_0x539541[_0x4bb3('0x14')](0x1);for(const _0x18ee58 of _0x539541)_0x18ee58['collapse']();_0x32f436>0x0&&_0x539541[_0x4bb3('0x1d')](this[_0x4bb3('0x2')],0x1),ss(_0x14e95d(Array[_0x4bb3('0x1')](this[_0x4bb3('0x38')]),Array['from'](_0x539541)),this[_0x4bb3('0x38')],_0x539541);}[_0x4bb3('0x19')](){ss(_0x14e95d(Array[_0x4bb3('0x1')](this[_0x4bb3('0x38')]),Array[_0x4bb3('0x1')](this[_0x4bb3('0x12')])),this[_0x4bb3('0x38')],this[_0x4bb3('0x12')]);for(const _0x456dcd of this[_0x4bb3('0x38')])_0x456dcd['expand']();}}function ss(_0x58f588,_0x12a638,_0x4c5718){let _0x148629=0x0;for(const _0x5c5e97 of _0x58f588)switch(_0x5c5e97){case'insert':_0x12a638[_0x4bb3('0x1d')](_0x4c5718[_0x4bb3('0x20')](_0x148629),_0x148629),_0x148629++;break;case _0x4bb3('0x11'):_0x12a638['remove'](_0x148629);break;case _0x4bb3('0x26'):_0x148629++;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x48a3=['_attachContextActions','_trimContextValue','value','reopenButtonView','contextValue','ck-thread__header','remove','bindTemplate','ck-annotation__actions','label','listenTo','ck-context','icon','render','scrollWidth','classList','locale','overlay','Reopen','isResolved','querySelector','...','isReadOnly','lastIndexOf','isVisible','substring','isEnabled','bind','.ck-context__value','context','.ck-context','div','ck-context--quotes','mouseleave','_model','tooltip','hasContext'];(function(_0x4d2ed7,_0x48a3b6){const _0x2f20d0=function(_0x12be77){while(--_0x12be77){_0x4d2ed7['push'](_0x4d2ed7['shift']());}};_0x2f20d0(++_0x48a3b6);}(_0x48a3,0x1a8));const _0x2f20=function(_0x4d2ed7,_0x48a3b6){_0x4d2ed7=_0x4d2ed7-0x0;let _0x2f20d0=_0x48a3[_0x4d2ed7];return _0x2f20d0;};import{View as _0x11b08f,ButtonView as _0x580b8c}from'ckeditor5/src/ui';import{getTranslation as _0x4aab31}from'../../../utils/common-translations';import _0x443cbb from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Tt extends _0x11b08f{constructor(_0xbf8a4e,_0x448fe0){super(_0xbf8a4e);const _0x5305a2=this[_0x2f20('0x1b')];this[_0x2f20('0x11')]=_0x448fe0,this[_0x2f20('0x17')]=this['_createReopenButton'](),this[_0x2f20('0xa')]('hasContext')['to'](this[_0x2f20('0x11')],'context',_0x42b518=>!!_0x42b518),this[_0x2f20('0xa')]('contextValue')['to'](this[_0x2f20('0x11')],_0x2f20('0xc'),_0x21c9ec=>_0x21c9ec&&_0x21c9ec[_0x2f20('0x16')]?this[_0x2f20('0x15')](_0x21c9ec[_0x2f20('0x16')]):_0x4aab31(this[_0x2f20('0x24')],'Comment\x20was\x20made\x20on\x20an\x20element')),this['setTemplate']({'tag':_0x2f20('0xe'),'attributes':{'class':[_0x2f20('0x19')]},'children':[{'tag':_0x2f20('0xe'),'attributes':{'class':['ck-context-wrapper']},'children':[{'tag':_0x2f20('0xe'),'attributes':{'class':[_0x2f20('0x1f'),_0x5305a2['if'](_0x2f20('0x13'),_0x2f20('0xf'))]},'children':[{'tag':'span','attributes':{'class':['ck-context__value']},'children':[{'text':_0x5305a2['to'](_0x2f20('0x18'))}]}]}]},{'tag':_0x2f20('0xe'),'attributes':{'class':[_0x2f20('0x1c')]},'children':[this[_0x2f20('0x17')]]}]});}[_0x2f20('0x21')](){super[_0x2f20('0x21')](),this['_attachContextActions']();}['_createReopenButton'](){const _0x16c04c=new _0x580b8c(this['locale']);return _0x16c04c[_0x2f20('0x1d')]=_0x4aab31(this['locale'],'Reopen'),_0x16c04c[_0x2f20('0x12')]=_0x4aab31(this[_0x2f20('0x24')],_0x2f20('0x1')),_0x16c04c[_0x2f20('0x20')]=_0x443cbb,_0x16c04c[_0x2f20('0xa')](_0x2f20('0x9'))['to'](this[_0x2f20('0x11')],_0x2f20('0x5'),_0x32e51f=>!_0x32e51f),_0x16c04c['bind'](_0x2f20('0x7'))['to'](this['_model'],'isResolvable',this[_0x2f20('0x11')],_0x2f20('0x2'),(_0x54fa43,_0x134ebb)=>_0x54fa43&&_0x134ebb),_0x16c04c['on']('execute',()=>{this['fire']('reopenCommentThread',this[_0x2f20('0x11')]['id']);}),_0x16c04c;}[_0x2f20('0x15')](_0x498a4d){if(_0x498a4d['length']<0x96)return _0x498a4d;const _0x37159c=_0x498a4d[_0x2f20('0x6')]('\x20',0x93);return _0x498a4d[_0x2f20('0x8')](0x0,_0x37159c>-0x1?_0x37159c:0x93)+_0x2f20('0x4');}[_0x2f20('0x14')](){const _0x56bcdc=this['element'][_0x2f20('0x3')](_0x2f20('0xd')),_0x404250=_0x56bcdc[_0x2f20('0x3')](_0x2f20('0xb'));this[_0x2f20('0x1e')](_0x56bcdc,'mouseenter',()=>{_0x404250['offsetWidth']<_0x404250[_0x2f20('0x22')]&&_0x56bcdc[_0x2f20('0x23')]['add'](_0x2f20('0x0'));}),this[_0x2f20('0x1e')](_0x56bcdc,_0x2f20('0x10'),()=>{_0x56bcdc[_0x2f20('0x23')][_0x2f20('0x1a')]('overlay');});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xc546=['editorReady','setTemplate','destroy','ck-comment__input-container','editorDestroyed','value','editor','isFocused','ck-thread__user','div','commentInputView','ck-thread__input','ck-comment__input-container--active','bind','createEditor','extendTemplate','userView','delegate','showInput'];(function(_0x2d0c84,_0xc546d3){var _0x2584ad=function(_0x3bd1c8){while(--_0x3bd1c8){_0x2d0c84['push'](_0x2d0c84['shift']());}};_0x2584ad(++_0xc546d3);}(_0xc546,0x121));var _0x2584=function(_0x2d0c84,_0xc546d3){_0x2d0c84=_0x2d0c84-0x0;var _0x2584ad=_0xc546[_0x2d0c84];return _0x2584ad;};import{View as _0x148ae0}from'ckeditor5/src/ui';import _0xb0a7c6 from'./commentinputview';import{UserView as _0x56bf5f}from'ckeditor5-collaboration/src/collaboration-core';export default class At extends _0x148ae0{constructor(_0x1ed0ff,_0x4275f7,_0x1903ff){super(_0x1ed0ff),this[_0x2584('0x6')]=new _0xb0a7c6(_0x1ed0ff,_0x1903ff),this[_0x2584('0x6')][_0x2584('0x9')]('showButtons')['to'](this[_0x2584('0x6')]['focusTracker'],_0x2584('0x3'),this[_0x2584('0x6')],_0x2584('0x1'),(_0x3d61b1,_0xae2afa)=>_0x3d61b1||!!_0xae2afa),this['set'](_0x2584('0xe'),!0x1),this['on']('change:showInput',()=>{this[_0x2584('0xe')]&&!this['commentInputView'][_0x2584('0x2')]&&this[_0x2584('0x6')][_0x2584('0xa')]();}),this[_0x2584('0x6')][_0x2584('0xd')](_0x2584('0xf'))['to'](this),this[_0x2584('0x6')][_0x2584('0xd')](_0x2584('0x0'))['to'](this),this[_0x2584('0xc')]=new _0x56bf5f(_0x1ed0ff,_0x4275f7),this[_0x2584('0xc')][_0x2584('0xb')]({'attributes':{'class':_0x2584('0x4')}}),this[_0x2584('0x6')]['extendTemplate']({'attributes':{'class':_0x2584('0x7')}}),this[_0x2584('0x10')]({'tag':_0x2584('0x5'),'attributes':{'class':[_0x2584('0x12'),this['bindTemplate']['if'](_0x2584('0xe'),_0x2584('0x8'))]},'children':[this[_0x2584('0xc')],this['commentInputView']]});}['destroy'](){return this['commentInputView'][_0x2584('0x11')]()['then'](()=>super[_0x2584('0x11')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c81=['then','execute','fire','addMany','_createResolveButton','_model','ck-thread--active','archivedAt','resolveButton','div','set','cancelConfirm','isEnabled','unbind','bindTemplate','label','isVisible','remove','locale','Resolve','isConfirm','_boundFirstCommentView','commentThreadInputView','render','isResolvable','commentViews','createCollection','setTemplate','bind','Write\x20a\x20comment...','placeholder','listenTo','ck-comment--resolve','isSystemComment','isActive','actionIndicator','extendTemplate','removeCommentThread','length','check','.ck-thread__container','containerElement','showConfirm','change:isActive','ck-thread--unlinked','isResolved','change:isReadOnly','add','get','_cancelAllConfirms','commentThreadHeaderView','getTemplate','removeButton','isUnlinked','commentThreadChildren','commentsListView','_bindFirstCommentView','resolveCommentThread','ck-thread','change:archivedAt','ck-thread--remove-confirmation','isReadOnly'];(function(_0x54b608,_0x1c818c){const _0x548600=function(_0x3595b5){while(--_0x3595b5){_0x54b608['push'](_0x54b608['shift']());}};_0x548600(++_0x1c818c);}(_0x1c81,0x7a));const _0x5486=function(_0x54b608,_0x1c818c){_0x54b608=_0x54b608-0x0;let _0x548600=_0x1c81[_0x54b608];return _0x548600;};import{ConfirmMixin as _0x1aa197}from'ckeditor5-collaboration/src/collaboration-core';import{ButtonView as _0x6ea284}from'ckeditor5/src/ui';import{icons as _0x3304ee}from'ckeditor5/src/core';import _0x2f6f61 from'./basecommentthreadview';import{getTranslation as _0x16ae2b}from'../../../utils/common-translations';export default class ft extends _0x1aa197(_0x2f6f61){constructor(_0xc72792,_0x54f9fd,_0x28b276,_0x21582e){super(_0xc72792,_0x54f9fd,_0x28b276,_0x21582e),this[_0x5486('0x38')]=this[_0x5486('0x1c')](),this[_0x5486('0x38')][_0x5486('0x5')]([this[_0x5486('0x39')],this[_0x5486('0x18')]]),this[_0x5486('0x7')][_0x5486('0x9')]&&this[_0x5486('0x38')][_0x5486('0x31')](this[_0x5486('0x34')],0x0),this['_model']['on'](_0x5486('0x3d'),(_0x1eae94,_0x1b9e1d,_0x10ee31)=>{_0x10ee31?this[_0x5486('0x38')]['has'](this[_0x5486('0x34')])||this['commentThreadChildren']['add'](this[_0x5486('0x34')],0x0):this[_0x5486('0x38')][_0x5486('0x13')](this[_0x5486('0x34')]);}),this[_0x5486('0xc')](_0x5486('0x25'),null),this[_0x5486('0x2b')]=null,this[_0x5486('0x17')]=null,this[_0x5486('0x14')]=_0xc72792,this[_0x5486('0xa')]=this[_0x5486('0x6')](),this[_0x5486('0x1d')](this['getTemplate']()),this['on'](_0x5486('0x2d'),(_0x43547a,_0x38e942,_0x288eaf)=>{_0x288eaf||this[_0x5486('0x33')]();}),this['listenTo'](this['_model'],_0x5486('0x30'),(_0x5c9018,_0x557f9f,_0x508b4f)=>{_0x508b4f&&this[_0x5486('0x33')]();}),this[_0x5486('0x28')]>0x0&&this[_0x5486('0x3a')](),this[_0x5486('0x21')](this[_0x5486('0x39')][_0x5486('0x1b')],_0x5486('0x31'),()=>{this[_0x5486('0x3a')]();});}[_0x5486('0x35')](){const _0x2d95f1=this[_0x5486('0x10')];return{'tag':_0x5486('0xb'),'attributes':{'class':[_0x5486('0x3c'),'ck-reset_all-excluded',_0x2d95f1['if'](_0x5486('0x24'),_0x5486('0x8')),_0x2d95f1['if'](_0x5486('0x37'),_0x5486('0x2e')),_0x2d95f1['if'](_0x5486('0x16'),_0x5486('0x0')),_0x2d95f1['to']('actionIndicator',_0x35de33=>_0x35de33?'ck-thread--'+_0x35de33:'')],'data-thread-id':this[_0x5486('0x7')]['id'],'tabindex':-0x1},'children':[{'tag':_0x5486('0xb'),'attributes':{'class':'ck-thread__container'},'children':this[_0x5486('0x38')]}]};}['render'](){super[_0x5486('0x19')](),this[_0x5486('0x2b')]=this['element']['querySelector'](_0x5486('0x2a'));}[_0x5486('0x33')](){this[_0x5486('0xd')]();for(const _0x3d180a of this[_0x5486('0x39')][_0x5486('0x1b')])_0x3d180a[_0x5486('0xd')]();}[_0x5486('0x3a')](){const {locale:_0x494e2c}=this,_0x149215=this[_0x5486('0x39')][_0x5486('0x1b')][_0x5486('0x32')](0x0);_0x149215===this[_0x5486('0x17')]||_0x149215[_0x5486('0x23')]||(this['_boundFirstCommentView']=_0x149215,this[_0x5486('0xf')](_0x5486('0x25')),this[_0x5486('0x1e')](_0x5486('0x25'))['to'](_0x149215,_0x5486('0x25'),_0x469d70=>_0x5486('0x13')===_0x469d70?_0x5486('0x13'):null),_0x149215[_0x5486('0x20')]=_0x16ae2b(_0x494e2c,_0x5486('0x1f')),_0x149215[_0x5486('0x36')]['on'](_0x5486('0x3'),_0x40a753=>{_0x40a753['stop'](),this[_0x5486('0x2c')](_0x16ae2b(_0x494e2c,'Delete\x20comment\x20thread?'),this[_0x5486('0x2b')])[_0x5486('0x2')](()=>{this[_0x5486('0x4')](_0x5486('0x27'));});},{'priority':'high'}),_0x149215['actionBar'][_0x5486('0x31')](this[_0x5486('0xa')],0x0));}[_0x5486('0x6')](){const _0x86a614=new _0x6ea284(this[_0x5486('0x14')]);return _0x86a614[_0x5486('0x11')]=_0x16ae2b(this[_0x5486('0x14')],'Resolve'),_0x86a614['tooltip']=_0x16ae2b(this[_0x5486('0x14')],_0x5486('0x15')),_0x86a614['icon']=_0x3304ee[_0x5486('0x29')],_0x86a614[_0x5486('0x26')]({'attributes':{'class':_0x5486('0x22')}}),_0x86a614[_0x5486('0x1e')](_0x5486('0xe'))['to'](this[_0x5486('0x7')],_0x5486('0x1'),_0xf14fad=>!_0xf14fad),_0x86a614[_0x5486('0x1e')](_0x5486('0x12'))['to'](this[_0x5486('0x7')],_0x5486('0x1a'),this[_0x5486('0x7')],_0x5486('0x2f'),(_0x46ff28,_0x294c20)=>_0x46ff28&&!_0x294c20),_0x86a614['on'](_0x5486('0x3'),()=>{this[_0x5486('0x4')](_0x5486('0x3b'),this[_0x5486('0x7')]['id']);}),_0x86a614;}}
|