@ckeditor/ckeditor5-comments 0.0.0-nightly-20230806.0 → 0.0.0-nightly-20230808.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/CHANGELOG.md +2 -2
- package/LICENSE.md +5 -5
- package/README.md +13 -13
- 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 _0x8a34=['config','editor','afterInit','_handleImportedData','define','get','forEach','basic','plugins','collaboration.channelId','commands','high','collaboration_features','importWord','dataInsert','map','addCommentThread','listenTo','importWord.commentsStyles'];(function(_0x3d330a,_0x8a3459){const _0x464215=function(_0x20cbda){while(--_0x20cbda){_0x3d330a['push'](_0x3d330a['shift']());}};_0x464215(++_0x8a3459);}(_0x8a34,0x165));const _0x4642=function(_0x3d330a,_0x8a3459){_0x3d330a=_0x3d330a-0x0;let _0x464215=_0x8a34[_0x3d330a];return _0x464215;};import{Plugin as _0x538fdc}from'ckeditor5/src/core';import{priorities as _0x27bfae}from'ckeditor5/src/utils';import{Users as _0x4f1aac}from'ckeditor5-collaboration/src/collaboration-core';import _0x7b14a9 from'../commentsrepository';export default class Y extends _0x538fdc{constructor(_0x2019c8){super(_0x2019c8),this[_0x4642('0x5')][_0x4642('0x4')][_0x4642('0x8')](_0x4642('0x3'),_0x4642('0xb'));}[_0x4642('0x6')](){const _0x201b1a=this[_0x4642('0x5')],_0x4bedf7=_0x201b1a[_0x4642('0xe')][_0x4642('0x9')](_0x4642('0x11')),_0x236d60=_0x201b1a['plugins'][_0x4642('0x9')](_0x4f1aac);_0x4bedf7&&(_0x4bedf7['on']('execute',(_0x167352,[,_0x2b8722])=>{_0x2b8722[_0x4642('0x10')]={'comments':!0x0,'user_id':_0x236d60['me']['id'],'comments_styles':this[_0x4642('0x5')][_0x4642('0x4')][_0x4642('0x9')](_0x4642('0x3'))};},{'priority':_0x27bfae[_0x4642('0xf')]+0xa}),this[_0x4642('0x2')](_0x4bedf7,_0x4642('0x12'),this[_0x4642('0x7')]));}[_0x4642('0x7')](_0x514c9b,_0x5e0928){const {comment_threads:_0x22bd4f}=_0x5e0928;_0x22bd4f&&_0x22bd4f[_0x4642('0xa')](({thread_id:_0x1f0347,comments:_0x5aecac,is_resolved:_0x6da3ee})=>{const _0x12d886=new Date(),_0xa0643b=_0x5aecac[_0x4642('0x0')](({author:_0x372d9e,content:_0x2dd4a6,created_at:_0x4d4efa})=>({'content':_0x2dd4a6,'authorId':this[_0x4642('0x5')][_0x4642('0xc')][_0x4642('0x9')](_0x4f1aac)['me']['id'],'createdAt':_0x12d886,'attributes':{'@external':{'authorName':_0x372d9e,'createdAt':_0x4d4efa?new Date(_0x4d4efa):new Date(),'source':_0x4642('0x11')}}})),_0x275322=this['editor'][_0x4642('0x4')]['get'](_0x4642('0xd'));this[_0x4642('0x5')][_0x4642('0xc')][_0x4642('0x9')](_0x7b14a9)[_0x4642('0x1')]({'channelId':_0x275322,'threadId':_0x1f0347,'comments':_0xa0643b,'resolvedAt':_0x6da3ee?_0x12d886:null});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1af0=['model','setSelection','create','defaultPlugins','then','get','placeholder','fire','init','view','focus','plugins','document','change','editing','_updatePlaceholder','ready','getRoot','getChild','set','childCount','placeholderElement','change:placeholder','initialData','destroy','end','data'];(function(_0x474c7f,_0x1af0b2){const _0x5e376c=function(_0x4cdf52){while(--_0x4cdf52){_0x474c7f['push'](_0x474c7f['shift']());}};_0x5e376c(++_0x1af0b2);}(_0x1af0,0x18f));const _0x5e37=function(_0x474c7f,_0x1af0b2){_0x474c7f=_0x474c7f-0x0;let _0x5e376c=_0x1af0[_0x474c7f];return _0x5e376c;};import{Editor as _0x132950,DataApiMixin as _0x30d984}from'ckeditor5/src/core';import _0x2a301b from'./commenteditorui';import{ObservableMixin as _0x4b2f7e}from'ckeditor5/src/utils';import{enablePlaceholder as _0x325c6a,disablePlaceholder as _0x43794a}from'ckeditor5/src/engine';import{Clipboard as _0x4d74e9}from'ckeditor5/src/clipboard';import{Enter as _0x525cba,ShiftEnter as _0x225883}from'ckeditor5/src/enter';import{SelectAll as _0x4ed23a}from'ckeditor5/src/select-all';import{Typing as _0x45831a}from'ckeditor5/src/typing';import{Undo as _0x42a054}from'ckeditor5/src/undo';import{Paragraph as _0x3cfd1c}from'ckeditor5/src/paragraph';const Kt=[_0x4d74e9,_0x525cba,_0x225883,_0x4ed23a,_0x45831a,_0x42a054,_0x3cfd1c];export default class Lt extends _0x4b2f7e(_0x30d984(_0x132950)){constructor(_0x1e74a3={}){(_0x1e74a3=Object['assign']({},_0x1e74a3))[_0x5e37('0x11')]||(_0x1e74a3['plugins']=Lt['defaultPlugins']),super(_0x1e74a3),this['ui']=new _0x2a301b(this),this[_0x5e37('0x19')](_0x5e37('0xc'),''),this['model'][_0x5e37('0x12')]['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on'](_0x5e37('0x1'),()=>this[_0x5e37('0x15')]()),this[_0x5e37('0x6')][_0x5e37('0x12')]['createRoot']();}[_0x5e37('0x8')](){const _0x372f71=this['config'][_0x5e37('0xb')](_0x5e37('0x2'))||'';return this['initPlugins']()[_0x5e37('0xa')](()=>this['ui']['init']())[_0x5e37('0xa')](()=>this[_0x5e37('0x5')][_0x5e37('0xe')](_0x372f71))['then'](()=>this[_0x5e37('0xd')](_0x5e37('0x16')));}['destroy'](){return super[_0x5e37('0x3')]()[_0x5e37('0xa')](()=>this['ui'][_0x5e37('0x3')]());}['focus'](){this['model'][_0x5e37('0x13')](_0x17fb7e=>{const _0x3b1824=this['model'][_0x5e37('0x12')][_0x5e37('0x17')](),_0x4b04f4=_0x3b1824&&_0x3b1824[_0x5e37('0x18')](_0x3b1824[_0x5e37('0x1a')]-0x1);_0x17fb7e[_0x5e37('0x7')](_0x4b04f4,_0x5e37('0x4')),this[_0x5e37('0x14')]['view'][_0x5e37('0x10')]();});}[_0x5e37('0x15')](){const _0x11de73=this[_0x5e37('0x14')][_0x5e37('0xf')],_0x3ef409=_0x11de73[_0x5e37('0x12')]['getRoot'](),_0x5a7e05=_0x3ef409[_0x5e37('0x18')](0x0);_0x3ef409[_0x5e37('0x1a')]>0x1||!_0x5a7e05||'p'!=_0x5a7e05['name']?this[_0x5e37('0x0')]&&this[_0x5e37('0x0')][_0x5e37('0xc')]&&(_0x43794a(_0x11de73,this[_0x5e37('0x0')]),this[_0x5e37('0x0')]=void 0x0):(this[_0x5e37('0xc')]&&(_0x5a7e05[_0x5e37('0xc')]=this[_0x5e37('0xc')]),_0x325c6a({'view':_0x11de73,'element':_0x5a7e05,'keepOnFocus':!0x0}),this[_0x5e37('0x0')]=_0x5a7e05);}}Lt[_0x5e37('0x9')]=Kt;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x52a9=['editable','editing','destroy','focusTracker','name','getRoot','ready','attachDomRoot','bind','render','init','element','view','document','locale','setEditableElement','rootName'];(function(_0x5245b7,_0x52a932){const _0x37926b=function(_0x557b51){while(--_0x557b51){_0x5245b7['push'](_0x5245b7['shift']());}};_0x37926b(++_0x52a932);}(_0x52a9,0x1bd));const _0x3792=function(_0x5245b7,_0x52a932){_0x5245b7=_0x5245b7-0x0;let _0x37926b=_0x52a9[_0x5245b7];return _0x37926b;};import{EditorUI as _0x1e5d04}from'ckeditor5/src/ui';import _0x59af20 from'./commenteditoruiview';export default class jt extends _0x1e5d04{constructor(_0x21b439){super(_0x21b439),this[_0x3792('0x9')]=new _0x59af20(_0x21b439[_0x3792('0xb')],_0x21b439['editing'][_0x3792('0x9')]);}get[_0x3792('0x8')](){return this['view']['element'];}[_0x3792('0x7')](){const _0xc51ab3=this['editor'][_0x3792('0xf')][_0x3792('0x9')],_0x35498b=this[_0x3792('0x9')][_0x3792('0xe')],_0x277466=_0xc51ab3[_0x3792('0xa')][_0x3792('0x2')]();_0x35498b['name']=_0x277466[_0x3792('0xd')],this[_0x3792('0x9')][_0x3792('0x6')]();const _0x559a91=_0x35498b[_0x3792('0x8')];this[_0x3792('0xc')](_0x35498b[_0x3792('0x1')],_0x559a91),this[_0x3792('0x9')][_0x3792('0xe')][_0x3792('0x5')]('isFocused')['to'](this[_0x3792('0x0')]),_0xc51ab3[_0x3792('0x4')](_0x559a91),this['fire'](_0x3792('0x3'));}[_0x3792('0x10')](){super[_0x3792('0x10')](),this[_0x3792('0x9')][_0x3792('0x10')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d23=['div','Comment\x20editor','main','ck-rounded-corners','ck-editor__aria-label_','ck-comment__input','text','comment','ck-reset','ck-editor__main','focus','_voiceLabelView','_createVoiceLabel','editable','presentation','ck-editor','element','cke-editor__aria-label_','render','createCollection','ck-voice-label','setTemplate'];(function(_0x2476dd,_0x1d2366){const _0x27630f=function(_0x52f357){while(--_0x52f357){_0x2476dd['push'](_0x2476dd['shift']());}};_0x27630f(++_0x1d2366);}(_0x1d23,0xfd));const _0x2763=function(_0x2476dd,_0x1d2366){_0x2476dd=_0x2476dd-0x0;let _0x27630f=_0x1d23[_0x2476dd];return _0x27630f;};import{InlineEditableUIView as _0x46f4ba,EditorUIView as _0x290cad,LabelView as _0x551069}from'ckeditor5/src/ui';import{uid as _0x256f4b}from'ckeditor5/src/utils';import{getTranslation as _0x46d015}from'../../../utils/common-translations';export default class Nt extends _0x290cad{constructor(_0x5492e1,_0xc9fbc1){super(_0x5492e1);const _0x3d65b1=_0x256f4b();this[_0x2763('0xd')]=this[_0x2763('0x8')](),this[_0x2763('0x2')]=new _0x46f4ba(_0x5492e1,_0xc9fbc1),this[_0x2763('0x0')]=this[_0x2763('0x1')](_0x3d65b1,_0x5492e1),this[_0x2763('0xa')]({'tag':_0x2763('0xb'),'attributes':{'class':[_0x2763('0x13'),_0x2763('0x4'),_0x2763('0xe'),_0x2763('0x10')],'role':_0x2763('0x12'),'dir':_0x5492e1['uiLanguageDirection'],'lang':_0x5492e1['uiLanguage'],'aria-labelledby':_0x2763('0x6')+_0x3d65b1},'children':[this[_0x2763('0x0')],{'tag':_0x2763('0xb'),'attributes':{'class':_0x2763('0x14'),'role':_0x2763('0x3')},'children':this['main']}]});}[_0x2763('0x7')](){super['render'](),this[_0x2763('0xd')]['add'](this['editable']);}[_0x2763('0x15')](){this[_0x2763('0x2')][_0x2763('0x5')]['focus']();}['_createVoiceLabel'](_0x45ce8b,_0x13994b){const _0x19182c=new _0x551069();return _0x19182c[_0x2763('0x11')]=_0x46d015(_0x13994b,_0x2763('0xc')),_0x19182c['extendTemplate']({'attributes':{'id':_0x2763('0xf')+_0x45ce8b,'class':_0x2763('0x9')}}),_0x19182c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3c58=['updateComment','_localUser','getComment','resolve','submit','resolveCommentThread','addComment','isResolved','model','reopenCommentThread','reopen','update','destroy','remove','_isAttached','stopListening','listenTo','submitCommentThread','removeCommentThread','view','removeComment'];(function(_0x11ccde,_0x3c5889){var _0x1065fe=function(_0x51ea01){while(--_0x51ea01){_0x11ccde['push'](_0x11ccde['shift']());}};_0x1065fe(++_0x3c5889);}(_0x3c58,0xae));var _0x1065=function(_0x11ccde,_0x3c5889){_0x11ccde=_0x11ccde-0x0;var _0x1065fe=_0x3c58[_0x11ccde];return _0x1065fe;};import{ObservableMixin as _0x36b379}from'ckeditor5/src/utils';export default class ct extends _0x36b379(){constructor(_0x389495,_0x16011a){super(),this[_0x1065('0x2')]=_0x389495,this[_0x1065('0x2')][_0x1065('0x8')]=!0x0,this[_0x1065('0xd')]=_0x16011a,this[_0x1065('0xa')](_0x16011a,_0x1065('0xb'),()=>this[_0x1065('0x13')]()),this[_0x1065('0xa')](_0x16011a,_0x1065('0xc'),()=>this[_0x1065('0x7')]()),this[_0x1065('0xa')](_0x16011a,_0x1065('0x14'),()=>this['resolve']()),this[_0x1065('0xa')](_0x16011a,_0x1065('0x3'),()=>this[_0x1065('0x4')]()),this[_0x1065('0xa')](_0x16011a,_0x1065('0x0'),(_0x4b5815,_0x2909c5)=>this['addComment'](_0x2909c5)),this['listenTo'](_0x16011a,_0x1065('0xf'),(_0x3ad7aa,_0x47768,_0x45cc79)=>this['updateComment'](_0x47768,_0x45cc79)),this['listenTo'](_0x16011a,_0x1065('0xe'),(_0x1eb0c2,_0x4c2797)=>this['removeComment'](_0x4c2797));}['submit'](){this['model'][_0x1065('0x13')]();}[_0x1065('0x7')](){this[_0x1065('0x2')]['remove']();}['resolve'](){this[_0x1065('0x2')][_0x1065('0x1')]||this[_0x1065('0x2')][_0x1065('0x12')]();}[_0x1065('0x4')](){this[_0x1065('0x2')][_0x1065('0x1')]&&this[_0x1065('0x2')]['reopen']();}[_0x1065('0x0')](_0x38ffc3){this['model'][_0x1065('0x0')]({'content':_0x38ffc3,'authorId':this[_0x1065('0xd')][_0x1065('0x10')]['id']});}[_0x1065('0xf')](_0x14beb9,_0x2b1f24){this[_0x1065('0x2')][_0x1065('0x11')](_0x14beb9)[_0x1065('0x5')]({'content':_0x2b1f24});}[_0x1065('0xe')](_0xf4bec0){this['model'][_0x1065('0x11')](_0xf4bec0)['remove']();}[_0x1065('0x6')](){this[_0x1065('0x9')](),this['model']['_isAttached']=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5173=['_model','value','Reply...','submit','Comment','locale','isDirty','isSubmitted','commentsListView','isActive','placeholder','isReadOnly','editorReady','_createCommentThreadInputView','assign','commentInputView','updateComment','_localUser','set','Reply','destroy','commentThreadHeaderView','_config','addComment','editorDestroyed','disabledSubmit','commentThreadInputView','canComment','bind','showInput','change:isActive','focus','element','cancel','removeCommentThread','reopenCommentThread','fire','removeComment','length','stop','resolveCommentThread','isResolved','delegate','hasDirtyComment','Reply\x20to\x20reopen\x20discussion...','isResolvable','submitCommentThread'];(function(_0x36bbd7,_0x51735c){const _0x3899ae=function(_0x231681){while(--_0x231681){_0x36bbd7['push'](_0x36bbd7['shift']());}};_0x3899ae(++_0x51735c);}(_0x5173,0x14a));const _0x3899=function(_0x36bbd7,_0x51735c){_0x36bbd7=_0x36bbd7-0x0;let _0x3899ae=_0x5173[_0x36bbd7];return _0x3899ae;};import{View as _0x4a5676}from'ckeditor5/src/ui';import _0x40e139 from'./commentthreadinputview';import _0x1e867e from'./commentslistview';import _0x5fb40 from'./commentthreadheaderview';import{getTranslation as _0x5411a8}from'../../../utils/common-translations';export default class Tt extends _0x4a5676{constructor(_0x4e8451,_0x4b7577,_0x669264,_0x207475){super(_0x4e8451),this['set'](_0x3899('0x8'),!0x1),this[_0x3899('0x11')]('isDirty',!0x1),this[_0x3899('0x2e')]=_0x4b7577,this[_0x3899('0x10')]=_0x669264,this['_config']=_0x207475,this[_0x3899('0x14')]=new _0x5fb40(_0x4e8451,_0x4b7577),this[_0x3899('0x14')]['delegate']('reopenCommentThread')['to'](this),this[_0x3899('0x7')]=new _0x1e867e(_0x4e8451,_0x4b7577,Object[_0x3899('0xd')]({'CommentView':this['_config']['CommentView']},_0x207475)),this[_0x3899('0x7')][_0x3899('0x29')]('removeComment')['to'](this),this[_0x3899('0x7')][_0x3899('0x29')](_0x3899('0xf'))['to'](this),this[_0x3899('0x7')][_0x3899('0x29')](_0x3899('0x27'))['to'](this),this[_0x3899('0x7')][_0x3899('0x29')]('editorReady')['to'](this),this['commentsListView'][_0x3899('0x29')](_0x3899('0x17'))['to'](this),this['commentsListView']['bind'](_0x3899('0x8'))['to'](this),this[_0x3899('0x11')](_0x3899('0x25'),this['commentsListView']['length']),this[_0x3899('0x1b')]('length')['to'](this[_0x3899('0x7')],_0x3899('0x25')),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this[_0x3899('0x19')][_0x3899('0x29')](_0x3899('0xb'))['to'](this),this[_0x3899('0x19')][_0x3899('0x29')](_0x3899('0x17'))['to'](this),this['on'](_0x3899('0x24'),()=>this[_0x3899('0x1e')]()),this[_0x3899('0x1b')](_0x3899('0x5'))['to'](this[_0x3899('0x7')],_0x3899('0x2a'),this[_0x3899('0x19')][_0x3899('0xe')],_0x3899('0x0'),(_0xf6813d,_0x54a5da)=>_0xf6813d||!!_0x54a5da);}[_0x3899('0x1e')](){this[_0x3899('0x1f')][_0x3899('0x1e')]();}[_0x3899('0x13')](){this[_0x3899('0x5')]=!0x1,this[_0x3899('0x7')]['destroy'](),this[_0x3899('0x19')]['destroy'](),super[_0x3899('0x13')]();}[_0x3899('0xc')](){const _0x5e86e0=new _0x40e139(this['locale'],this[_0x3899('0x10')],this[_0x3899('0x15')]['editorConfig']),_0x289abb=_0x5e86e0['commentInputView'];return _0x5e86e0[_0x3899('0x1b')](_0x3899('0x1c'))['to'](this,_0x3899('0x8'),this['_model'],_0x3899('0xa'),this['_model'],_0x3899('0x1a'),this['_model'],_0x3899('0x28'),_0x289abb,'value',(_0x355c39,_0x147aa1,_0x50d175,_0x54dd95,_0x3e0162)=>!!_0x3e0162||_0x54dd95&&_0x50d175&&!_0x147aa1||_0x355c39&&_0x50d175&&!_0x147aa1),_0x289abb[_0x3899('0x1b')](_0x3899('0x9'))['to'](this,_0x3899('0x25'),this['_model'],'isResolvable',this['_model'],_0x3899('0x28'),(_0x3a8d5c,_0x273283,_0x197944)=>{let _0x4908d9;return _0x4908d9=_0x197944&&_0x273283?_0x3899('0x2b'):_0x3a8d5c?_0x3899('0x1'):'Write\x20a\x20comment...',_0x5411a8(this['locale'],_0x4908d9);}),_0x289abb[_0x3899('0x1b')]('submitLabel')['to'](this,_0x3899('0x25'),_0x5b5c3a=>_0x5411a8(this[_0x3899('0x4')],_0x5b5c3a?_0x3899('0x12'):_0x3899('0x3'))),_0x289abb['on'](_0x3899('0x2'),(_0x44ac83,_0x5b53b1)=>{this[_0x3899('0x23')](_0x3899('0x16'),_0x5b53b1),this[_0x3899('0x2e')][_0x3899('0x28')]&&this['_model'][_0x3899('0x2c')]&&this[_0x3899('0x23')](_0x3899('0x22'),this[_0x3899('0x2e')]['id']),this[_0x3899('0x2e')][_0x3899('0x6')]||this[_0x3899('0x23')](_0x3899('0x2d'));}),_0x289abb['on'](_0x3899('0x20'),()=>{this[_0x3899('0x1e')]();}),_0x289abb['bind'](_0x3899('0x18'))['to'](this['_model'],_0x3899('0xa')),_0x289abb['on'](_0x3899('0x20'),_0x315130=>{0x0==this[_0x3899('0x25')]&&(this[_0x3899('0x23')]('removeCommentThread'),_0x315130[_0x3899('0x26')]());}),this['on'](_0x3899('0x1d'),(_0x5bb5ba,_0x5b750c,_0x26af6d)=>{_0x26af6d||this[_0x3899('0x25')]||_0x289abb[_0x3899('0x0')]||this[_0x3899('0x23')](_0x3899('0x21'));}),_0x5e86e0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3168=['createEditor','set','destroy','_createCommentInputView','_model','submit','switchToDisplayMode','delegate','content','updateComment','locale','_config','get','bind','element','visibleView','focus','initialData','editorReady','remove','isEditMode','add','isCollapsed','Save','collapse','_createCommentContentView','editorDestroyed','isSystemComment','expand','submitLabel','once','editorConfig','switchToEditMode'];(function(_0x55b889,_0x3168d4){const _0x17102b=function(_0x22616c){while(--_0x22616c){_0x55b889['push'](_0x55b889['shift']());}};_0x17102b(++_0x3168d4);}(_0x3168,0x1cc));const _0x1710=function(_0x55b889,_0x3168d4){_0x55b889=_0x55b889-0x0;let _0x17102b=_0x3168[_0x55b889];return _0x17102b;};import{View as _0x5174e0}from'ckeditor5/src/ui';import{trimHtml as _0x327728}from'ckeditor5-collaboration/src/collaboration-core';import _0x37413c from'./commentcontentview';import _0x2dc4b8 from'./commentinputview';import{getTranslation as _0x4b27d2}from'../../../utils/common-translations';export default class Yt extends _0x5174e0{constructor(_0x27a591,_0x1f2455,_0x1a3611){super(_0x27a591),this[_0x1710('0x6')]=_0x1f2455,this[_0x1710('0xd')]=_0x1a3611,this[_0x1710('0x1d')]=!!this[_0x1710('0xd')]['isSystemComment'],this['set']('isEditMode',!0x1),this[_0x1710('0x3')]('isCollapsed',!0x0),this[_0x1710('0x11')]=this['createCollection'](),this['visibleView']['add'](this[_0x1710('0x1b')]());}[_0x1710('0x1e')](){this[_0x1710('0x18')]=!0x1;}[_0x1710('0x1a')](){this[_0x1710('0x16')]||(this['isCollapsed']=!0x0);}[_0x1710('0x12')](){this[_0x1710('0x10')][_0x1710('0x12')]();}async[_0x1710('0x4')](){await this[_0x1710('0x11')][_0x1710('0xe')](0x0)[_0x1710('0x4')](),super['destroy']();}[_0x1710('0x1')](){this[_0x1710('0x16')]||(this[_0x1710('0x16')]=!0x0,this[_0x1710('0x11')][_0x1710('0x15')](0x0)[_0x1710('0x4')](),this[_0x1710('0x11')][_0x1710('0x17')](this[_0x1710('0x5')]()));}['switchToDisplayMode'](){this[_0x1710('0x16')]&&(this[_0x1710('0x16')]=!0x1,this['visibleView'][_0x1710('0x15')](0x0)[_0x1710('0x4')](),this[_0x1710('0x11')][_0x1710('0x17')](this['_createCommentContentView']()));}[_0x1710('0x1b')](){const _0x51046f=new _0x37413c(this[_0x1710('0xc')]);return _0x51046f[_0x1710('0xf')]('content')['to'](this[_0x1710('0x6')],_0x1710('0xa'),this,_0x1710('0x18'),(_0x532a31,_0x521636)=>_0x521636?_0x327728(_0x532a31,{'limit':this[_0x1710('0xd')]['maxCommentCharsWhenCollapsed']}):_0x532a31),_0x51046f;}[_0x1710('0x5')](){this['_config']['editorConfig']||(this[_0x1710('0xd')][_0x1710('0x0')]={}),this[_0x1710('0xd')][_0x1710('0x0')][_0x1710('0x13')]=this[_0x1710('0x6')][_0x1710('0xa')];const _0xba85ed=new _0x2dc4b8(this['locale'],this[_0x1710('0xd')][_0x1710('0x0')]);return _0xba85ed['value']=this[_0x1710('0x6')][_0x1710('0xa')],_0xba85ed['bind']('disabledSubmit')['to'](this[_0x1710('0x6')],'isReadOnly'),_0xba85ed[_0x1710('0x1f')]=_0x4b27d2(this[_0x1710('0xc')],_0x1710('0x19')),_0xba85ed['on'](_0x1710('0x7'),(_0x1a46bb,_0xb02368)=>{this['fire'](_0x1710('0xb'),this[_0x1710('0x6')]['id'],_0xb02368),this[_0x1710('0x8')](),this[_0x1710('0x12')]();}),_0xba85ed['on']('cancel',()=>{this[_0x1710('0x8')](),this[_0x1710('0x12')]();}),_0xba85ed[_0x1710('0x20')](_0x1710('0x14'),()=>{_0xba85ed['focus']();}),_0xba85ed[_0x1710('0x2')](),_0xba85ed[_0x1710('0x9')](_0x1710('0x14'))['to'](this),_0xba85ed[_0x1710('0x9')](_0x1710('0x1c'))['to'](this),_0xba85ed;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xb138=['count','set','setTemplate'];(function(_0x4af35f,_0xb138ba){const _0x329559=function(_0x1b4de4){while(--_0x1b4de4){_0x4af35f['push'](_0x4af35f['shift']());}};_0x329559(++_0xb138ba);}(_0xb138,0x19f));const _0x3295=function(_0x4af35f,_0xb138ba){_0x4af35f=_0x4af35f-0x0;let _0x329559=_0xb138[_0x4af35f];return _0x329559;};import{View as _0x48985b}from'ckeditor5/src/ui';import{getTranslation as _0x3ae50d}from'../../../utils/common-translations';export default class Zt extends _0x48985b{constructor(_0x4c5973){super(_0x4c5973);const _0x268e11=this['bindTemplate'];this[_0x3295('0x0')]('count',void 0x0),this[_0x3295('0x1')]({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x268e11['to'](_0x3295('0x2'),_0x53e590=>_0x3ae50d(_0x4c5973,'NUMBER_OF_COMMENTS',_0x53e590))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4555=['div','innerHTML','content','element','render','set','change:content','setTemplate','ck-annotation__content'];(function(_0x58e46d,_0x455585){var _0x3d27fe=function(_0xeaa5cd){while(--_0xeaa5cd){_0x58e46d['push'](_0x58e46d['shift']());}};_0x3d27fe(++_0x455585);}(_0x4555,0x1d9));var _0x3d27=function(_0x58e46d,_0x455585){_0x58e46d=_0x58e46d-0x0;var _0x3d27fe=_0x4555[_0x58e46d];return _0x3d27fe;};import{View as _0x100da5}from'ckeditor5/src/ui';export default class Ut extends _0x100da5{constructor(_0x4a4428){super(_0x4a4428),this[_0x3d27('0x0')](_0x3d27('0x6'),''),this[_0x3d27('0x2')]({'tag':_0x3d27('0x4'),'attributes':{'class':['ck-comment__content',_0x3d27('0x3')]}});}[_0x3d27('0x8')](){super['render'](),this['on'](_0x3d27('0x1'),(_0xfb2ccf,_0x539877,_0x36220e)=>{this[_0x3d27('0x7')][_0x3d27('0x5')]=_0x36220e;}),this[_0x3d27('0x7')][_0x3d27('0x5')]=this[_0x3d27('0x6')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x18d6=['editor','length','keystrokes','change','high','render','tab','disabledSubmit','stop','ck-comment__input-wrapper','focusTracker','insertBefore','model','submitLabel','_createSubmitButton','bind','withText','forEach','low','_initializeFocusCycling','setData','Esc','listenTo','extendTemplate','_isDestroyed','value','submitButtonView','isEnabled','focusNext','placeholder','fire','div','label','firstChild','initialData','Reply','editorDestroyed','ck-comment__input-actions--cancel','ck-comment__input-actions--active','execute','focusPrevious','element','ck-comment__input-actions--submit','set','create','submit','focus','_createCancelButton','ck-comment__input-actions','destroy','_editorCreationPromise','showButtons','cancelButtonView','getData','createEditor'];(function(_0x112c03,_0x18d624){const _0x4b92b1=function(_0x3d534){while(--_0x3d534){_0x112c03['push'](_0x112c03['shift']());}};_0x4b92b1(++_0x18d624);}(_0x18d6,0xac));const _0x4b92=function(_0x112c03,_0x18d624){_0x112c03=_0x112c03-0x0;let _0x4b92b1=_0x18d6[_0x112c03];return _0x4b92b1;};import{View as _0x52ddb1,ViewCollection as _0x1d68f8,FocusCycler as _0x24f152,ButtonView as _0xfebc1d}from'ckeditor5/src/ui';import{FocusTracker as _0x1a61b3,KeystrokeHandler as _0x2cf7d0}from'ckeditor5/src/utils';import _0x5ae7ee from'../commenteditor/commenteditor';import{getTranslation as _0x1fa01c}from'../../../utils/common-translations';export default class Xt extends _0x52ddb1{constructor(_0x562e79,_0x14024d={}){super(_0x562e79),this[_0x4b92('0x30')]=null,this['_editorConfig']=_0x14024d,this[_0x4b92('0x32')]=new _0x2cf7d0(),this[_0x4b92('0x3')]=new _0x1a61b3(),this['set'](_0x4b92('0x12'),_0x14024d[_0x4b92('0x1b')]||''),this[_0x4b92('0x24')](_0x4b92('0x0'),!0x1),this[_0x4b92('0x24')](_0x4b92('0x2c'),!0x0),this['set'](_0x4b92('0x16'),_0x1fa01c(_0x562e79,'Reply...')),this[_0x4b92('0x24')](_0x4b92('0x6'),_0x1fa01c(_0x562e79,_0x4b92('0x1c'))),this['submitButtonView']=this[_0x4b92('0x7')](),this[_0x4b92('0x2d')]=this[_0x4b92('0x28')](),this['setTemplate']({'tag':'div','attributes':{'class':[_0x4b92('0x2')]},'children':[{'tag':_0x4b92('0x18'),'attributes':{'class':[_0x4b92('0x29'),this['bindTemplate']['if']('showButtons',_0x4b92('0x1f'))]},'children':[this[_0x4b92('0x13')],this[_0x4b92('0x2d')]]}]}),this[_0x4b92('0x32')][_0x4b92('0x24')](_0x4b92('0xe'),(_0x1b3f00,_0x285286)=>{this['cancelButtonView'][_0x4b92('0x17')]('execute'),_0x285286();}),this['on']('submit',(_0x37dd2e,_0x2ab93a)=>{_0x2ab93a[_0x4b92('0x31')]>0xfde8?(alert(_0x1fa01c(_0x562e79,'TOO_LONG_COMMENT_ALERT',[_0x2ab93a[_0x4b92('0x31')],0xfde8])),_0x37dd2e[_0x4b92('0x1')]()):this[_0x4b92('0x30')][_0x4b92('0xd')]('');},{'priority':_0x4b92('0x34')});}[_0x4b92('0x35')](){super[_0x4b92('0x35')](),this[_0x4b92('0x32')][_0x4b92('0xf')](this[_0x4b92('0x22')]),this[_0x4b92('0x3')]['add'](this['element']);}[_0x4b92('0x2f')](){return this[_0x4b92('0x30')]||(this['editor']=new _0x5ae7ee(this['_editorConfig']),this[_0x4b92('0x2b')]=this['editor'][_0x4b92('0x25')]()['then'](()=>{if(this['_isDestroyed'])return;const _0x314775=this[_0x4b92('0x30')];this['element'][_0x4b92('0x4')](_0x314775['ui'][_0x4b92('0x22')],this['element'][_0x4b92('0x1a')]),_0x314775[_0x4b92('0x5')]['document']['on'](_0x4b92('0x33'),()=>this[_0x4b92('0x12')]=_0x314775[_0x4b92('0x2e')]()),_0x314775['bind'](_0x4b92('0x16'))['to'](this),this['_initializeFocusCycling'](this[_0x4b92('0x30')]),this[_0x4b92('0x17')]('editorReady',this[_0x4b92('0x30')]);})),this[_0x4b92('0x2b')];}[_0x4b92('0x27')](){this[_0x4b92('0x30')]&&this[_0x4b92('0x30')][_0x4b92('0x27')]();}async['destroy'](){this[_0x4b92('0x11')]||(this[_0x4b92('0x11')]=!0x0,this[_0x4b92('0x30')]&&(await this[_0x4b92('0x2b')],await this['editor'][_0x4b92('0x2a')](),this[_0x4b92('0x17')](_0x4b92('0x1d'),this[_0x4b92('0x30')])),await super[_0x4b92('0x2a')]());}['_createSubmitButton'](){const {locale:_0x187ca9}=this,_0x1309a0=new _0xfebc1d(_0x187ca9);return _0x1309a0[_0x4b92('0x10')]({'attributes':{'class':[_0x4b92('0x23')]}}),_0x1309a0[_0x4b92('0x9')]=!0x0,_0x1309a0[_0x4b92('0x8')]('label')['to'](this,_0x4b92('0x6')),_0x1309a0['on'](_0x4b92('0x20'),()=>{this[_0x4b92('0x17')](_0x4b92('0x26'),this['value']);}),_0x1309a0[_0x4b92('0x8')](_0x4b92('0x14'))['to'](this,'value',this,'disabledSubmit',(_0x17e4af,_0x5a1531)=>!_0x5a1531&&!!_0x17e4af['trim']()),_0x1309a0;}[_0x4b92('0x28')](){const {locale:_0x4db598}=this,_0x511520=new _0xfebc1d(_0x4db598);return _0x511520[_0x4b92('0x10')]({'attributes':{'class':[_0x4b92('0x1e')]}}),_0x511520[_0x4b92('0x19')]=_0x1fa01c(_0x4db598,'Cancel'),_0x511520[_0x4b92('0x9')]=!0x0,_0x511520['on'](_0x4b92('0x20'),()=>{this['editor'][_0x4b92('0xd')](''),this[_0x4b92('0x17')]('cancel');}),_0x511520;}[_0x4b92('0xc')](_0x3312e9){const _0x40984f=this[_0x4b92('0x3')],_0x1c39cf=new _0x1d68f8();[_0x3312e9['ui']['view'],this['submitButtonView'],this[_0x4b92('0x2d')]][_0x4b92('0xa')](_0x1a3299=>{_0x1c39cf['add'](_0x1a3299),_0x40984f['add'](_0x1a3299['element']);});const _0x2e3a73=new _0x24f152({'focusables':_0x1c39cf,'focusTracker':_0x40984f});this[_0x4b92('0x32')]['set'](_0x4b92('0x36'),(_0x4dbfa8,_0x3e5117)=>{_0x2e3a73[_0x4b92('0x15')](),_0x3e5117();},{'priority':'low'}),this[_0x4b92('0x32')][_0x4b92('0x24')]('shift\x20+\x20tab',(_0x387c23,_0x52df3f)=>{_0x2e3a73[_0x4b92('0x21')](),_0x52df3f();},{'priority':_0x4b92('0xb')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e4f=['arrowdown','listenTo','auto','COMMENTS_ARCHIVE','ck-comments-archive__content','_focusTracker','set','_keystrokes','ck-comments-archive__info','arrowright','element','destroy','selectstart','tab','stopPropagation','add','isActive','_focusables','_focusCycler','isEmpty','bindTemplate','length','div','EMPTY_COMMENTS_ARCHIVE','ck-comments-archive','arrowleft','setTemplate','shift\x20+\x20tab','focus'];(function(_0xfe27d4,_0x3e4f12){const _0x31e99b=function(_0x107d3d){while(--_0x107d3d){_0xfe27d4['push'](_0xfe27d4['shift']());}};_0x31e99b(++_0x3e4f12);}(_0x3e4f,0xa6));const _0x31e9=function(_0xfe27d4,_0x3e4f12){_0xfe27d4=_0xfe27d4-0x0;let _0x31e99b=_0x3e4f[_0xfe27d4];return _0x31e99b;};import{View as _0x439f90,FocusCycler as _0x3c938f}from'ckeditor5/src/ui';import{FocusTracker as _0x518097,KeystrokeHandler as _0x523001}from'ckeditor5/src/utils';import{getTranslation as _0x14cb68}from'../../../utils/common-translations';export default class K extends _0x439f90{constructor(_0x3cbe98,_0x1c7c3d){super(_0x3cbe98),this[_0x31e9('0xe')](_0x31e9('0x1b'),!_0x1c7c3d[_0x31e9('0x0')]),this[_0x31e9('0xd')]=new _0x518097(),this[_0x31e9('0xf')]=new _0x523001(),this[_0x31e9('0x19')]=_0x1c7c3d,this[_0x31e9('0x1a')]=new _0x3c938f({'focusables':this[_0x31e9('0x19')],'focusTracker':this['_focusTracker'],'keystrokeHandler':this[_0x31e9('0xf')],'actions':{'focusPrevious':_0x31e9('0x6'),'focusNext':_0x31e9('0x15')}}),this[_0x31e9('0x9')](_0x1c7c3d,_0x31e9('0x17'),()=>{this[_0x31e9('0x1b')]=!0x1;}),this['listenTo'](_0x1c7c3d,'remove',(_0xbe118a,_0x16a967)=>{_0x16a967[_0x31e9('0x18')]&&this[_0x31e9('0x7')](),_0x1c7c3d[_0x31e9('0x0')]||(this[_0x31e9('0x1b')]=!0x0);});const _0x1bca52=this[_0x31e9('0x1c')];this[_0x31e9('0x5')]({'tag':_0x31e9('0x1'),'attributes':{'dir':_0x31e9('0xa'),'class':['ck',_0x31e9('0x3')],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':['ck-comments-archive__header\x20']},'children':[{'text':_0x14cb68(_0x3cbe98,_0x31e9('0xb'))}]},{'tag':_0x31e9('0x1'),'attributes':{'class':[_0x31e9('0xc')]},'children':[{'tag':'div','children':_0x1c7c3d},{'tag':'p','attributes':{'class':[_0x31e9('0x10'),_0x1bca52['if'](_0x31e9('0x1b'),'ck-hidden',_0x15a031=>!_0x15a031)]},'children':[{'text':_0x14cb68(_0x3cbe98,_0x31e9('0x2'))}]}]}]});}['render'](){super['render'](),this['_keystrokes']['listenTo'](this[_0x31e9('0x12')]);const _0xdaeade=_0xb77dd8=>_0xb77dd8[_0x31e9('0x16')]();this[_0x31e9('0xf')][_0x31e9('0xe')](_0x31e9('0x11'),_0xdaeade),this[_0x31e9('0xf')][_0x31e9('0xe')](_0x31e9('0x4'),_0xdaeade),this[_0x31e9('0xf')][_0x31e9('0xe')]('arrowup',_0xdaeade),this[_0x31e9('0xf')]['set'](_0x31e9('0x8'),_0xdaeade),this['listenTo'](this['element'],_0x31e9('0x14'),(_0x35ebf7,_0x56e4e6)=>{_0x56e4e6[_0x31e9('0x16')]();},{'priority':'high'});}[_0x31e9('0x13')](){super['destroy'](),this[_0x31e9('0xd')][_0x31e9('0x13')](),this[_0x31e9('0xf')]['destroy']();}[_0x31e9('0x7')](){this[_0x31e9('0x12')][_0x31e9('0x7')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3c3c=['createCollection','resolveCommentThread','maxCommentCharsWhenCollapsed','_findOptimalIndex','_rearrangeExpand','destroy','maxThreadTotalWeight','_model','count','ck-thread__comments','length','_shouldCollapse','resolved','hasDirtyComment','stopListening','Marked\x20as\x20resolved','change:isResolved','delete','collapse','some','isActive','set','viewUid','listenTo','remove','bind','add','change:hasDirtyComment','visibleViews','focus','render','element','_updateHasDirtyComment','setTemplate','_config','commentViews','delegate','_calculatePosition','_handleNewCommentModel','editorReady','resolvedAt','weight','from','resolvedCommentView','commentUpdated','authoredAt','_collapsedCommentsView','refreshVisibleViews','CommentView','editorConfig','_rearrangeCollapse','comments','updateComment','_handleInfoComment','resolvedBy','isEditMode','expand','formatDateTime','maxCommentsWhenCollapsed','locale'];(function(_0x433b43,_0x3c3c42){const _0x309c52=function(_0x1b9171){while(--_0x1b9171){_0x433b43['push'](_0x433b43['shift']());}};_0x309c52(++_0x3c3c42);}(_0x3c3c,0x17e));const _0x309c=function(_0x433b43,_0x3c3c42){_0x433b43=_0x433b43-0x0;let _0x309c52=_0x3c3c[_0x433b43];return _0x309c52;};import{View as _0x5b7177}from'ckeditor5/src/ui';import{diff as _0x215d4b,Collection as _0xc21dd0}from'ckeditor5/src/utils';import{getTranslation as _0xbfafa1}from'../../../utils/common-translations';import _0x96f39 from'./collapsedcommentsview';export default class wt extends _0x5b7177{constructor(_0x51de40,_0x2bd769,_0xda45c6){super(_0x51de40),this[_0x309c('0x3b')](_0x309c('0x33'),!0x1),this[_0x309c('0x3b')](_0x309c('0x30'),_0x2bd769[_0x309c('0x1d')][_0x309c('0x30')]),this[_0x309c('0x3b')]('isActive',!0x1),this['_model']=_0x2bd769,this[_0x309c('0xc')]=_0xda45c6,this[_0x309c('0xd')]=this[_0x309c('0x26')](),this[_0x309c('0x6')]=this[_0x309c('0x26')](),this[_0x309c('0x15')]=null,this['_collapsedCommentsView']=new _0x96f39(_0x51de40),this[_0x309c('0x18')][_0x309c('0x3')](_0x309c('0x2e'))['to'](this,'length',_0x4d79fa=>_0x4d79fa-this['_config'][_0x309c('0x24')]);for(const _0x8ae93f of _0x2bd769[_0x309c('0x1d')])this[_0x309c('0x10')](_0x8ae93f);this[_0x309c('0x1f')](),this[_0x309c('0x1')](_0x2bd769[_0x309c('0x1d')],_0x309c('0x4'),(_0x46117a,_0x15beb2)=>{const _0x432f2c=this[_0x309c('0xf')](_0x15beb2);this['length']++,this[_0x309c('0x10')](_0x15beb2,_0x432f2c),this[_0x309c('0x19')]();}),this[_0x309c('0x1')](_0x2bd769[_0x309c('0x1d')],'remove',(_0x5669fe,_0x365cfa)=>{this[_0x309c('0x30')]--,this['_handleRemoveCommentModel'](_0x365cfa),this[_0x309c('0x19')]();}),this['listenTo'](_0x2bd769,_0x309c('0x16'),()=>this[_0x309c('0x19')]()),this[_0x309c('0x1')](_0x2bd769,_0x309c('0x36'),()=>this[_0x309c('0x1f')]()),this['on']('change:isActive',()=>this[_0x309c('0x19')]()),this['on'](_0x309c('0x5'),()=>this['refreshVisibleViews']()),this[_0x309c('0xb')]({'tag':'ul','attributes':{'class':[_0x309c('0x2f')]},'children':this[_0x309c('0x6')]});}get[_0x309c('0x31')](){return this[_0x309c('0x2d')][_0x309c('0x13')]>this['_config'][_0x309c('0x2c')]&&!this[_0x309c('0x3a')]&&!this[_0x309c('0x33')];}[_0x309c('0x8')](){super['render'](),this[_0x309c('0x19')]();}[_0x309c('0x7')](){this[_0x309c('0x9')][_0x309c('0x7')]();}[_0x309c('0x2b')](){this['_collapsedCommentsView'][_0x309c('0x2b')]();for(const _0x4c95a8 of this[_0x309c('0xd')])_0x4c95a8[_0x309c('0x2b')]();super[_0x309c('0x2b')]();}[_0x309c('0x19')](){this[_0x309c('0x31')]?this[_0x309c('0x1c')]():this[_0x309c('0x2a')]();}[_0x309c('0x10')](_0xf81346,_0x3378fa){const _0x3cdf15=new this[(_0x309c('0xc'))][(_0x309c('0x1a'))](this[_0x309c('0x25')],_0xf81346,{'maxCommentCharsWhenCollapsed':this[_0x309c('0xc')][_0x309c('0x28')],'formatDateTime':this[_0x309c('0xc')][_0x309c('0x23')],'editorConfig':this['_config'][_0x309c('0x1b')]});_0x3cdf15[_0x309c('0x0')]=_0xf81346['id'],_0x3cdf15['delegate']('removeComment')['to'](this),_0x3cdf15[_0x309c('0xe')](_0x309c('0x1e'))['to'](this),_0x3cdf15[_0x309c('0xe')](_0x309c('0x27'))['to'](this),_0x3cdf15[_0x309c('0xe')](_0x309c('0x11'))['to'](this),_0x3cdf15['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x3cdf15,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews'][_0x309c('0x4')](_0x3cdf15,_0x3378fa);}[_0x309c('0xf')](_0x4e9bcd){const _0x2d2212=this[_0x309c('0x2d')]['_findOptimalIndex'](_0x4e9bcd);return this[_0x309c('0x15')]?this[_0x309c('0x15')][_0x309c('0x17')]>_0x4e9bcd['authoredAt']?_0x2d2212-0x1:_0x2d2212:_0x2d2212-0x1;}[_0x309c('0x1f')](){if(this['_model'][_0x309c('0x20')]&&this['_model'][_0x309c('0x12')]){const _0x827a29={'id':_0x309c('0x32'),'author':this[_0x309c('0x2d')][_0x309c('0x20')],'authoredAt':this[_0x309c('0x2d')][_0x309c('0x12')],'content':_0xbfafa1(this[_0x309c('0x25')],_0x309c('0x35')),'attributes':{}};this[_0x309c('0x15')]=new this[(_0x309c('0xc'))][(_0x309c('0x1a'))](this[_0x309c('0x25')],_0x827a29,{'maxCommentCharsWhenCollapsed':this[_0x309c('0xc')][_0x309c('0x28')],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config'][_0x309c('0x1b')],'isSystemComment':!0x0}),this[_0x309c('0xd')][_0x309c('0x4')](this[_0x309c('0x15')],this[_0x309c('0x2d')][_0x309c('0x29')](_0x827a29));}else this[_0x309c('0x15')]&&(this[_0x309c('0xd')]['remove'](this[_0x309c('0x15')]),this['resolvedCommentView'][_0x309c('0x2b')](),this[_0x309c('0x15')]=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x25f1c7){const _0x271b19=this[_0x309c('0xd')]['remove'](_0x25f1c7['id']);this[_0x309c('0x34')](_0x271b19),_0x271b19[_0x309c('0x21')]&&this['_updateHasDirtyComment'](),_0x271b19[_0x309c('0x2b')]();}[_0x309c('0xa')](){this[_0x309c('0x33')]=Array[_0x309c('0x14')](this[_0x309c('0xd')])[_0x309c('0x39')](_0x2fc046=>_0x2fc046[_0x309c('0x21')]);}['_rearrangeCollapse'](){const _0x33ccf4=function(_0x3bd4be){const _0x9db8c5=new _0xc21dd0();for(const _0x3bf055 of _0x3bd4be)_0x9db8c5[_0x309c('0x4')](_0x3bf055);return _0x9db8c5;}(this['commentViews']),_0x49e0e7=this[_0x309c('0x18')][_0x309c('0x2e')];for(let _0x2f0b8e=0x1;_0x2f0b8e<=_0x49e0e7;_0x2f0b8e++)_0x33ccf4[_0x309c('0x2')](0x1);for(const _0x187c7b of _0x33ccf4)_0x187c7b[_0x309c('0x38')]();_0x49e0e7>0x0&&_0x33ccf4[_0x309c('0x4')](this[_0x309c('0x18')],0x1),ss(_0x215d4b(Array[_0x309c('0x14')](this[_0x309c('0x6')]),Array[_0x309c('0x14')](_0x33ccf4)),this[_0x309c('0x6')],_0x33ccf4);}[_0x309c('0x2a')](){ss(_0x215d4b(Array[_0x309c('0x14')](this[_0x309c('0x6')]),Array['from'](this[_0x309c('0xd')])),this[_0x309c('0x6')],this[_0x309c('0xd')]);for(const _0x5743f7 of this['visibleViews'])_0x5743f7[_0x309c('0x22')]();}}function ss(_0x1e8276,_0x5146dd,_0x39ea53){let _0x305d95=0x0;for(const _0x9f3c10 of _0x1e8276)switch(_0x9f3c10){case'insert':_0x5146dd[_0x309c('0x4')](_0x39ea53['get'](_0x305d95),_0x305d95),_0x305d95++;break;case _0x309c('0x37'):_0x5146dd[_0x309c('0x2')](_0x305d95);break;case'equal':_0x305d95++;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4f8a=['fire','_model','span','length','add','offsetWidth','div','_createReopenButton','lastIndexOf','execute','value','isVisible','Comment\x20was\x20made\x20on\x20an\x20element','ck-context-wrapper','...','mouseenter','_trimContextValue','mouseleave','render','.ck-context__value','bindTemplate','context','setTemplate','isReadOnly','Reopen','element','scrollWidth','_attachContextActions','.ck-context','listenTo','locale','label','ck-context','querySelector','ck-annotation__actions','ck-thread__header','ck-context--quotes','isResolvable','reopenButtonView','overlay','bind','hasContext','substring','contextValue'];(function(_0x722ea2,_0x4f8a56){const _0x12b9b9=function(_0x4b03e6){while(--_0x4b03e6){_0x722ea2['push'](_0x722ea2['shift']());}};_0x12b9b9(++_0x4f8a56);}(_0x4f8a,0x81));const _0x12b9=function(_0x722ea2,_0x4f8a56){_0x722ea2=_0x722ea2-0x0;let _0x12b9b9=_0x4f8a[_0x722ea2];return _0x12b9b9;};import{View as _0x4f9741,ButtonView as _0x3e6a78}from'ckeditor5/src/ui';import{getTranslation as _0x4188de}from'../../../utils/common-translations';import _0x4c185a from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Rt extends _0x4f9741{constructor(_0x1bde2b,_0x1b1a5d){super(_0x1bde2b);const _0x4bf27f=this[_0x12b9('0x17')];this['_model']=_0x1b1a5d,this[_0x12b9('0x29')]=this[_0x12b9('0xa')](),this[_0x12b9('0x2b')](_0x12b9('0x0'))['to'](this[_0x12b9('0x4')],_0x12b9('0x18'),_0x52eade=>!!_0x52eade),this[_0x12b9('0x2b')]('contextValue')['to'](this[_0x12b9('0x4')],_0x12b9('0x18'),_0x474bbd=>_0x474bbd&&_0x474bbd['value']?this[_0x12b9('0x13')](_0x474bbd[_0x12b9('0xd')]):_0x4188de(this[_0x12b9('0x21')],_0x12b9('0xf'))),this[_0x12b9('0x19')]({'tag':_0x12b9('0x9'),'attributes':{'class':[_0x12b9('0x26')]},'children':[{'tag':_0x12b9('0x9'),'attributes':{'class':[_0x12b9('0x10')]},'children':[{'tag':_0x12b9('0x9'),'attributes':{'class':[_0x12b9('0x23'),_0x4bf27f['if']('hasContext',_0x12b9('0x27'))]},'children':[{'tag':_0x12b9('0x5'),'attributes':{'class':['ck-context__value']},'children':[{'text':_0x4bf27f['to'](_0x12b9('0x2'))}]}]}]},{'tag':_0x12b9('0x9'),'attributes':{'class':[_0x12b9('0x25')]},'children':[this['reopenButtonView']]}]});}[_0x12b9('0x15')](){super[_0x12b9('0x15')](),this['_attachContextActions']();}[_0x12b9('0xa')](){const _0x5b775a=new _0x3e6a78(this['locale']);return _0x5b775a[_0x12b9('0x22')]=_0x4188de(this['locale'],_0x12b9('0x1b')),_0x5b775a['tooltip']=_0x4188de(this[_0x12b9('0x21')],_0x12b9('0x1b')),_0x5b775a['icon']=_0x4c185a,_0x5b775a[_0x12b9('0x2b')]('isEnabled')['to'](this[_0x12b9('0x4')],_0x12b9('0x1a'),_0x3b7b04=>!_0x3b7b04),_0x5b775a[_0x12b9('0x2b')](_0x12b9('0xe'))['to'](this[_0x12b9('0x4')],_0x12b9('0x28')),_0x5b775a['on'](_0x12b9('0xc'),()=>{this[_0x12b9('0x3')]('reopenCommentThread',this['_model']['id']);}),_0x5b775a;}[_0x12b9('0x13')](_0x572507){if(_0x572507[_0x12b9('0x6')]<0x96)return _0x572507;const _0x5e1017=_0x572507[_0x12b9('0xb')]('\x20',0x93);return _0x572507[_0x12b9('0x1')](0x0,_0x5e1017>-0x1?_0x5e1017:0x93)+_0x12b9('0x11');}[_0x12b9('0x1e')](){const _0x52b20d=this[_0x12b9('0x1c')][_0x12b9('0x24')](_0x12b9('0x1f')),_0x3454ea=_0x52b20d[_0x12b9('0x24')](_0x12b9('0x16'));this[_0x12b9('0x20')](_0x52b20d,_0x12b9('0x12'),()=>{_0x3454ea[_0x12b9('0x8')]<_0x3454ea[_0x12b9('0x1d')]&&_0x52b20d['classList'][_0x12b9('0x7')](_0x12b9('0x2a'));}),this['listenTo'](_0x52b20d,_0x12b9('0x14'),()=>{_0x52b20d['classList']['remove'](_0x12b9('0x2a'));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5850=['bindTemplate','value','editorReady','isFocused','extendTemplate','showInput','focusTracker','setTemplate','commentInputView','showButtons','ck-thread__input','ck-thread__user','editor','bind','userView','delegate','set','editorDestroyed','div','destroy','then','createEditor','ck-comment__input-container--active'];(function(_0x5ac3e6,_0x58501f){var _0x5983de=function(_0x5151d4){while(--_0x5151d4){_0x5ac3e6['push'](_0x5ac3e6['shift']());}};_0x5983de(++_0x58501f);}(_0x5850,0x1e1));var _0x5983=function(_0x5ac3e6,_0x58501f){_0x5ac3e6=_0x5ac3e6-0x0;var _0x5983de=_0x5850[_0x5ac3e6];return _0x5983de;};import{View as _0x2c0688}from'ckeditor5/src/ui';import _0x4687ca from'./commentinputview';import{UserView as _0x251f6b}from'ckeditor5-collaboration/src/collaboration-core';export default class Ct extends _0x2c0688{constructor(_0x18965b,_0x45ada9,_0x20fe7f){super(_0x18965b),this[_0x5983('0xa')]=new _0x4687ca(_0x18965b,_0x20fe7f),this[_0x5983('0xa')][_0x5983('0xf')](_0x5983('0xb'))['to'](this[_0x5983('0xa')][_0x5983('0x8')],_0x5983('0x5'),this[_0x5983('0xa')],_0x5983('0x3'),(_0x508135,_0x3f12f2)=>_0x508135||!!_0x3f12f2),this[_0x5983('0x12')](_0x5983('0x7'),!0x1),this['on']('change:showInput',()=>{this[_0x5983('0x7')]&&!this[_0x5983('0xa')][_0x5983('0xe')]&&this[_0x5983('0xa')][_0x5983('0x0')]();}),this[_0x5983('0xa')]['delegate'](_0x5983('0x4'))['to'](this),this[_0x5983('0xa')][_0x5983('0x11')](_0x5983('0x13'))['to'](this),this[_0x5983('0x10')]=new _0x251f6b(_0x18965b,_0x45ada9),this[_0x5983('0x10')][_0x5983('0x6')]({'attributes':{'class':_0x5983('0xd')}}),this[_0x5983('0xa')]['extendTemplate']({'attributes':{'class':_0x5983('0xc')}}),this[_0x5983('0x9')]({'tag':_0x5983('0x14'),'attributes':{'class':['ck-comment__input-container',this[_0x5983('0x2')]['if']('showInput',_0x5983('0x1'))]},'children':[this[_0x5983('0x10')],this['commentInputView']]});}['destroy'](){return this['commentInputView'][_0x5983('0x15')]()[_0x5983('0x16')](()=>super[_0x5983('0x15')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e47=['Write\x20a\x20comment...','listenTo','commentThreadInputView','setTemplate','containerElement','change:isResolved','_model','extendTemplate','label','fire','stop','unbind','remove','add','Resolve','isResolved','_cancelAllConfirms','resolveButton','removeButton','render','isActive','ck-thread--active','addMany','actionIndicator','cancelConfirm','element','then','bind','execute','ck-thread__container','set','high','resolveCommentThread','isResolvable','commentThreadChildren','Delete\x20comment\x20thread?','getTemplate','querySelector','div','commentThreadHeaderView','ck-thread--','placeholder','locale','ck-reset_all-excluded','isConfirm','removeCommentThread','tooltip','_boundFirstCommentView','_createResolveButton','createCollection','ck-comment--resolve','bindTemplate','commentViews','commentsListView','.ck-thread__container','get'];(function(_0x41067e,_0x5e4771){const _0x19ba2c=function(_0xa6b3cf){while(--_0xa6b3cf){_0x41067e['push'](_0x41067e['shift']());}};_0x19ba2c(++_0x5e4771);}(_0x5e47,0x75));const _0x19ba=function(_0x41067e,_0x5e4771){_0x41067e=_0x41067e-0x0;let _0x19ba2c=_0x5e47[_0x41067e];return _0x19ba2c;};import{ConfirmMixin as _0x465243}from'ckeditor5-collaboration/src/collaboration-core';import{ButtonView as _0x4e2214}from'ckeditor5/src/ui';import{icons as _0x5570e0}from'ckeditor5/src/core';import _0x1907c6 from'./basecommentthreadview';import{getTranslation as _0x2dc42a}from'../../../utils/common-translations';export default class lt extends _0x465243(_0x1907c6){constructor(_0x207595,_0x2722c8,_0x1f66bb,_0x1b5f10){super(_0x207595,_0x2722c8,_0x1f66bb,_0x1b5f10),this[_0x19ba('0x1d')]=this[_0x19ba('0x2c')](),this[_0x19ba('0x1d')][_0x19ba('0x11')]([this['commentsListView'],this[_0x19ba('0x35')]]),this[_0x19ba('0x1')]['isResolved']&&this[_0x19ba('0x1d')][_0x19ba('0x8')](this[_0x19ba('0x22')],0x0),this[_0x19ba('0x1')]['on'](_0x19ba('0x0'),(_0xffd443,_0x5cc431,_0x5c5f0e)=>{_0x5c5f0e?this[_0x19ba('0x1d')][_0x19ba('0x8')](this['commentThreadHeaderView'],0x0):this[_0x19ba('0x1d')][_0x19ba('0x7')](this['commentThreadHeaderView']);}),this[_0x19ba('0x19')](_0x19ba('0x12'),null),this[_0x19ba('0x37')]=null,this[_0x19ba('0x2a')]=null,this['locale']=_0x207595,this['resolveButton']=this[_0x19ba('0x2b')](),this[_0x19ba('0x36')](this[_0x19ba('0x1f')]()),this['on']('change:isActive',(_0x37b3f2,_0x556053,_0x33f23b)=>{_0x33f23b||this[_0x19ba('0xb')]();}),this[_0x19ba('0x34')](this['_model'],'change:isReadOnly',(_0x29386f,_0x401c15,_0x4f3bab)=>{_0x4f3bab&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this[_0x19ba('0x34')](this['commentsListView'][_0x19ba('0x2f')],_0x19ba('0x8'),()=>{this['_bindFirstCommentView']();});}[_0x19ba('0x1f')](){const _0x59ad37=this[_0x19ba('0x2e')];return{'tag':_0x19ba('0x21'),'attributes':{'class':['ck-thread',_0x19ba('0x26'),_0x59ad37['if'](_0x19ba('0xf'),_0x19ba('0x10')),_0x59ad37['if'](_0x19ba('0x27'),'ck-thread--remove-confirmation'),_0x59ad37['to']('actionIndicator',_0x14db84=>_0x14db84?_0x19ba('0x23')+_0x14db84:'')],'data-thread-id':this[_0x19ba('0x1')]['id'],'tabindex':-0x1},'children':[{'tag':_0x19ba('0x21'),'attributes':{'class':_0x19ba('0x18')},'children':this['commentThreadChildren']}]};}[_0x19ba('0xe')](){super[_0x19ba('0xe')](),this[_0x19ba('0x37')]=this[_0x19ba('0x14')][_0x19ba('0x20')](_0x19ba('0x31'));}[_0x19ba('0xb')](){this[_0x19ba('0x13')]();for(const _0x39c460 of this[_0x19ba('0x30')][_0x19ba('0x2f')])_0x39c460['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x5512e7}=this,_0x38cf80=this[_0x19ba('0x30')][_0x19ba('0x2f')][_0x19ba('0x32')](0x0);_0x38cf80===this[_0x19ba('0x2a')]||_0x38cf80['isSystemComment']||(this[_0x19ba('0x2a')]=_0x38cf80,this[_0x19ba('0x6')](_0x19ba('0x12')),this[_0x19ba('0x16')](_0x19ba('0x12'))['to'](_0x38cf80,_0x19ba('0x12'),_0x5a0b14=>'remove'===_0x5a0b14?_0x19ba('0x7'):null),_0x38cf80[_0x19ba('0x24')]=_0x2dc42a(_0x5512e7,_0x19ba('0x33')),_0x38cf80[_0x19ba('0xd')]['on'](_0x19ba('0x17'),_0x2721f6=>{_0x2721f6[_0x19ba('0x5')](),this['showConfirm'](_0x2dc42a(_0x5512e7,_0x19ba('0x1e')),this[_0x19ba('0x37')])[_0x19ba('0x15')](()=>{this[_0x19ba('0x4')](_0x19ba('0x28'));});},{'priority':_0x19ba('0x1a')}),_0x38cf80['actionBar'][_0x19ba('0x8')](this[_0x19ba('0xc')],0x0));}[_0x19ba('0x2b')](){const _0x2b3b9b=new _0x4e2214(this[_0x19ba('0x25')]);return _0x2b3b9b[_0x19ba('0x3')]=_0x2dc42a(this[_0x19ba('0x25')],_0x19ba('0x9')),_0x2b3b9b[_0x19ba('0x29')]=_0x2dc42a(this[_0x19ba('0x25')],'Resolve'),_0x2b3b9b['icon']=_0x5570e0['check'],_0x2b3b9b[_0x19ba('0x2')]({'attributes':{'class':_0x19ba('0x2d')}}),_0x2b3b9b[_0x19ba('0x16')]('isEnabled')['to'](this[_0x19ba('0x1')],'isReadOnly',_0x1e5312=>!_0x1e5312),_0x2b3b9b[_0x19ba('0x16')]('isVisible')['to'](this['_model'],_0x19ba('0x1c'),this[_0x19ba('0x1')],_0x19ba('0xa'),(_0x5a9c6a,_0x555b08)=>_0x5a9c6a&&!_0x555b08),_0x2b3b9b['on'](_0x19ba('0x17'),()=>{this[_0x19ba('0x4')](_0x19ba('0x1b'),this['_model']['id']);}),_0x2b3b9b;}}
|