@ckeditor/ckeditor5-comments 39.0.0 → 39.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/comments.js +1 -1
- package/package.json +3 -3
- package/src/annotations/annotation.js +1 -1
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.js +1 -1
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.js +1 -1
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.js +1 -1
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.js +1 -1
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.js +1 -1
- package/src/comments/ui/view/commentview.js +1 -1
- package/src/comments.js +1 -1
- package/src/commentsonly.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f6f=['addCommentThread','plugins','execute','config','map','importWord','commands','collaboration_features','_handleImportedData','collaboration.channelId','afterInit','forEach','get','editor','importWord.commentsStyles'];(function(_0x22668c,_0x1f6f17){const _0x1b7d62=function(_0x5292cb){while(--_0x5292cb){_0x22668c['push'](_0x22668c['shift']());}};_0x1b7d62(++_0x1f6f17);}(_0x1f6f,0xf4));const _0x1b7d=function(_0x22668c,_0x1f6f17){_0x22668c=_0x22668c-0x0;let _0x1b7d62=_0x1f6f[_0x22668c];return _0x1b7d62;};import{Plugin as _0x248ac5}from'ckeditor5/src/core';import{priorities as _0x43f8af}from'ckeditor5/src/utils';import{Users as _0x2a177d}from'ckeditor5-collaboration/src/collaboration-core';import _0x3a8b5b from'../commentsrepository';export default class Y extends _0x248ac5{constructor(_0x31e8ad){super(_0x31e8ad),this['editor'][_0x1b7d('0xe')]['define'](_0x1b7d('0xa'),'basic');}[_0x1b7d('0x6')](){const _0x142e28=this[_0x1b7d('0x9')],_0x591434=_0x142e28[_0x1b7d('0x2')][_0x1b7d('0x8')]('importWord'),_0x5e5ad5=_0x142e28[_0x1b7d('0xc')][_0x1b7d('0x8')](_0x2a177d);_0x591434&&(_0x591434['on'](_0x1b7d('0xd'),(_0x35632f,[,_0x5a9d8e])=>{_0x5a9d8e[_0x1b7d('0x3')]={'comments':!0x0,'user_id':_0x5e5ad5['me']['id'],'comments_styles':this[_0x1b7d('0x9')][_0x1b7d('0xe')]['get'](_0x1b7d('0xa'))};},{'priority':_0x43f8af['high']+0xa}),this['listenTo'](_0x591434,'dataInsert',this[_0x1b7d('0x4')]));}[_0x1b7d('0x4')](_0x326eb0,_0x147e06){const {comment_threads:_0x1b6f5c}=_0x147e06;_0x1b6f5c&&_0x1b6f5c[_0x1b7d('0x7')](({thread_id:_0x2e93aa,comments:_0x45b52a,is_resolved:_0x4ad6a5})=>{const _0x1476a1=new Date(),_0x4932fb=_0x45b52a[_0x1b7d('0x0')](({author:_0x209896,content:_0x38be1b,created_at:_0xd11ec4})=>({'content':_0x38be1b,'authorId':this[_0x1b7d('0x9')]['plugins'][_0x1b7d('0x8')](_0x2a177d)['me']['id'],'createdAt':_0x1476a1,'attributes':{'@external':{'authorName':_0x209896,'createdAt':_0xd11ec4?new Date(_0xd11ec4):new Date(),'source':_0x1b7d('0x1')}}})),_0x304be9=this['editor']['config'][_0x1b7d('0x8')](_0x1b7d('0x5'));this[_0x1b7d('0x9')][_0x1b7d('0xc')][_0x1b7d('0x8')](_0x3a8b5b)[_0x1b7d('0xb')]({'channelId':_0x304be9,'threadId':_0x2e93aa,'comments':_0x4932fb,'resolvedAt':_0x4ad6a5?_0x1476a1:null});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a0a=['name','create','model','initialData','defaultPlugins','destroy','document','set','config','childCount','end','change','placeholderElement','change:placeholder','setSelection','_updatePlaceholder','then','init','get','assign','getChild','editing','view','createRoot','focus','low','getRoot','ready','initPlugins','plugins','data','fire','placeholder'];(function(_0x429827,_0x1a0adc){const _0x433f1d=function(_0x1f89e0){while(--_0x1f89e0){_0x429827['push'](_0x429827['shift']());}};_0x433f1d(++_0x1a0adc);}(_0x1a0a,0x17c));const _0x433f=function(_0x429827,_0x1a0adc){_0x429827=_0x429827-0x0;let _0x433f1d=_0x1a0a[_0x429827];return _0x433f1d;};import{Editor as _0x69c584,DataApiMixin as _0x3a3a65}from'ckeditor5/src/core';import _0x3b82a6 from'./commenteditorui';import{ObservableMixin as _0x290df3}from'ckeditor5/src/utils';import{enablePlaceholder as _0x4dd525,disablePlaceholder as _0xea7753}from'ckeditor5/src/engine';import{Clipboard as _0x4cf5a3}from'ckeditor5/src/clipboard';import{Enter as _0x5ada5b,ShiftEnter as _0x5d2244}from'ckeditor5/src/enter';import{SelectAll as _0x445eed}from'ckeditor5/src/select-all';import{Typing as _0x195d44}from'ckeditor5/src/typing';import{Undo as _0x14d8b2}from'ckeditor5/src/undo';import{Paragraph as _0x43b608}from'ckeditor5/src/paragraph';const Kt=[_0x4cf5a3,_0x5ada5b,_0x5d2244,_0x445eed,_0x195d44,_0x14d8b2,_0x43b608];export default class Lt extends _0x290df3(_0x3a3a65(_0x69c584)){constructor(_0x37ac08={}){(_0x37ac08=Object[_0x433f('0x2')]({},_0x37ac08))[_0x433f('0xc')]||(_0x37ac08[_0x433f('0xc')]=Lt['defaultPlugins']),super(_0x37ac08),this['ui']=new _0x3b82a6(this),this[_0x433f('0x17')](_0x433f('0xf'),''),this[_0x433f('0x12')]['document']['on']('change',()=>this[_0x433f('0x1f')](),{'priority':_0x433f('0x8')}),this['on'](_0x433f('0x1d'),()=>this[_0x433f('0x1f')]()),this['model']['document'][_0x433f('0x6')]();}[_0x433f('0x11')](){const _0x421c3a=this[_0x433f('0x18')][_0x433f('0x1')](_0x433f('0x13'))||'';return this[_0x433f('0xb')]()[_0x433f('0x20')](()=>this['ui'][_0x433f('0x0')]())['then'](()=>this[_0x433f('0xd')][_0x433f('0x0')](_0x421c3a))[_0x433f('0x20')](()=>this[_0x433f('0xe')](_0x433f('0xa')));}[_0x433f('0x15')](){return super[_0x433f('0x15')]()[_0x433f('0x20')](()=>this['ui'][_0x433f('0x15')]());}[_0x433f('0x7')](){this[_0x433f('0x12')][_0x433f('0x1b')](_0x4c8432=>{const _0x1e141d=this['model'][_0x433f('0x16')][_0x433f('0x9')](),_0x34237e=_0x1e141d&&_0x1e141d[_0x433f('0x3')](_0x1e141d[_0x433f('0x19')]-0x1);_0x4c8432[_0x433f('0x1e')](_0x34237e,_0x433f('0x1a')),this[_0x433f('0x4')][_0x433f('0x5')][_0x433f('0x7')]();});}[_0x433f('0x1f')](){const _0x4759e6=this['editing']['view'],_0x5b1011=_0x4759e6[_0x433f('0x16')][_0x433f('0x9')](),_0x2e6e3a=_0x5b1011[_0x433f('0x3')](0x0);_0x5b1011[_0x433f('0x19')]>0x1||!_0x2e6e3a||'p'!=_0x2e6e3a[_0x433f('0x10')]?this['placeholderElement']&&this['placeholderElement'][_0x433f('0xf')]&&(_0xea7753(_0x4759e6,this[_0x433f('0x1c')]),this[_0x433f('0x1c')]=void 0x0):(this[_0x433f('0xf')]&&(_0x2e6e3a[_0x433f('0xf')]=this['placeholder']),_0x4dd525({'view':_0x4759e6,'element':_0x2e6e3a,'keepOnFocus':!0x0}),this[_0x433f('0x1c')]=_0x2e6e3a);}}Lt[_0x433f('0x14')]=Kt;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d19=['destroy','view','locale','bind','name','editor','getRoot','focusTracker','render','document','fire','attachDomRoot','setEditableElement','isFocused','editable','ready','editing','element'];(function(_0x5aa63d,_0x3d19b6){const _0x2e8eed=function(_0x3cd800){while(--_0x3cd800){_0x5aa63d['push'](_0x5aa63d['shift']());}};_0x2e8eed(++_0x3d19b6);}(_0x3d19,0x1e1));const _0x2e8e=function(_0x5aa63d,_0x3d19b6){_0x5aa63d=_0x5aa63d-0x0;let _0x2e8eed=_0x3d19[_0x5aa63d];return _0x2e8eed;};import{EditorUI as _0x19b5b2}from'ckeditor5/src/ui';import _0xab86db from'./commenteditoruiview';export default class jt extends _0x19b5b2{constructor(_0x1ab263){super(_0x1ab263),this[_0x2e8e('0x6')]=new _0xab86db(_0x1ab263[_0x2e8e('0x7')],_0x1ab263[_0x2e8e('0x3')][_0x2e8e('0x6')]);}get[_0x2e8e('0x4')](){return this[_0x2e8e('0x6')]['element'];}['init'](){const _0xb08dd9=this[_0x2e8e('0xa')][_0x2e8e('0x3')][_0x2e8e('0x6')],_0xbb29bc=this[_0x2e8e('0x6')][_0x2e8e('0x1')],_0x1d250b=_0xb08dd9[_0x2e8e('0xe')][_0x2e8e('0xb')]();_0xbb29bc[_0x2e8e('0x9')]=_0x1d250b['rootName'],this[_0x2e8e('0x6')][_0x2e8e('0xd')]();const _0x357e17=_0xbb29bc[_0x2e8e('0x4')];this[_0x2e8e('0x11')](_0xbb29bc[_0x2e8e('0x9')],_0x357e17),this[_0x2e8e('0x6')][_0x2e8e('0x1')][_0x2e8e('0x8')](_0x2e8e('0x0'))['to'](this[_0x2e8e('0xc')]),_0xb08dd9[_0x2e8e('0x10')](_0x357e17),this[_0x2e8e('0xf')](_0x2e8e('0x2'));}[_0x2e8e('0x5')](){super['destroy'](),this['view'][_0x2e8e('0x5')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x26b6=['uiLanguage','add','div','editable','ck-reset','ck-comment__input','main','focus','_voiceLabelView','element','presentation','ck-editor__main','cke-editor__aria-label_','text','ck-rounded-corners','setTemplate','render'];(function(_0xf0b522,_0x26b610){const _0x1cdf41=function(_0x1c182c){while(--_0x1c182c){_0xf0b522['push'](_0xf0b522['shift']());}};_0x1cdf41(++_0x26b610);}(_0x26b6,0xa3));const _0x1cdf=function(_0xf0b522,_0x26b610){_0xf0b522=_0xf0b522-0x0;let _0x1cdf41=_0x26b6[_0xf0b522];return _0x1cdf41;};import{InlineEditableUIView as _0x2c8d9e,EditorUIView as _0x81bdf3,LabelView as _0x54527e}from'ckeditor5/src/ui';import{uid as _0x1dd437}from'ckeditor5/src/utils';import{getTranslation as _0xc37eeb}from'../../../utils/common-translations';export default class Nt extends _0x81bdf3{constructor(_0x1a9c50,_0x113df1){super(_0x1a9c50);const _0x5a4eb0=_0x1dd437();this['main']=this['createCollection'](),this[_0x1cdf('0xa')]=new _0x2c8d9e(_0x1a9c50,_0x113df1),this['_voiceLabelView']=this['_createVoiceLabel'](_0x5a4eb0,_0x1a9c50),this[_0x1cdf('0x5')]({'tag':'div','attributes':{'class':[_0x1cdf('0xb'),'ck-editor',_0x1cdf('0x4'),_0x1cdf('0xc')],'role':'comment','dir':_0x1a9c50['uiLanguageDirection'],'lang':_0x1a9c50[_0x1cdf('0x7')],'aria-labelledby':_0x1cdf('0x2')+_0x5a4eb0},'children':[this[_0x1cdf('0xf')],{'tag':_0x1cdf('0x9'),'attributes':{'class':_0x1cdf('0x1'),'role':_0x1cdf('0x0')},'children':this[_0x1cdf('0xd')]}]});}[_0x1cdf('0x6')](){super[_0x1cdf('0x6')](),this['main'][_0x1cdf('0x8')](this['editable']);}[_0x1cdf('0xe')](){this[_0x1cdf('0xa')][_0x1cdf('0x10')]['focus']();}['_createVoiceLabel'](_0x3ad84a,_0x471be1){const _0x2848ac=new _0x54527e();return _0x2848ac[_0x1cdf('0x3')]=_0xc37eeb(_0x471be1,'Comment\x20editor'),_0x2848ac['extendTemplate']({'attributes':{'id':'ck-editor__aria-label_'+_0x3ad84a,'class':'ck-voice-label'}}),_0x2848ac;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1db5=['_isAttached','resolveCommentThread','_localUser','addComment','reopenCommentThread','updateComment','resolve','view','listenTo','submitCommentThread','remove','getComment','reopen','model','stopListening','removeComment','destroy','isResolved','submit'];(function(_0xcd4274,_0x1db5b6){var _0x3616d5=function(_0x3037f5){while(--_0x3037f5){_0xcd4274['push'](_0xcd4274['shift']());}};_0x3616d5(++_0x1db5b6);}(_0x1db5,0x99));var _0x3616=function(_0xcd4274,_0x1db5b6){_0xcd4274=_0xcd4274-0x0;var _0x3616d5=_0x1db5[_0xcd4274];return _0x3616d5;};import{ObservableMixin as _0x2fea9f}from'ckeditor5/src/utils';export default class ct extends _0x2fea9f(){constructor(_0x158cae,_0x477577){super(),this[_0x3616('0xc')]=_0x158cae,this[_0x3616('0xc')]['_isAttached']=!0x0,this[_0x3616('0x6')]=_0x477577,this[_0x3616('0x7')](_0x477577,_0x3616('0x8'),()=>this['submit']()),this[_0x3616('0x7')](_0x477577,'removeCommentThread',()=>this[_0x3616('0x9')]()),this[_0x3616('0x7')](_0x477577,_0x3616('0x0'),()=>this[_0x3616('0x5')]()),this[_0x3616('0x7')](_0x477577,_0x3616('0x3'),()=>this[_0x3616('0xb')]()),this[_0x3616('0x7')](_0x477577,'addComment',(_0x372337,_0x128da9)=>this[_0x3616('0x2')](_0x128da9)),this[_0x3616('0x7')](_0x477577,'updateComment',(_0x138e99,_0x8d7f32,_0x462d8e)=>this['updateComment'](_0x8d7f32,_0x462d8e)),this[_0x3616('0x7')](_0x477577,_0x3616('0xe'),(_0x308ba2,_0x57f915)=>this['removeComment'](_0x57f915));}[_0x3616('0x11')](){this[_0x3616('0xc')]['submit']();}[_0x3616('0x9')](){this[_0x3616('0xc')]['remove']();}[_0x3616('0x5')](){this['model'][_0x3616('0x10')]||this[_0x3616('0xc')]['resolve']();}['reopen'](){this[_0x3616('0xc')][_0x3616('0x10')]&&this['model'][_0x3616('0xb')]();}[_0x3616('0x2')](_0x5a28ae){this['model'][_0x3616('0x2')]({'content':_0x5a28ae,'authorId':this[_0x3616('0x6')][_0x3616('0x1')]['id']});}[_0x3616('0x4')](_0x29cf75,_0x5bf01c){this[_0x3616('0xc')][_0x3616('0xa')](_0x29cf75)['update']({'content':_0x5bf01c});}[_0x3616('0xe')](_0x886347){this['model'][_0x3616('0xa')](_0x886347)[_0x3616('0x9')]();}[_0x3616('0xf')](){this[_0x3616('0xd')](),this[_0x3616('0xc')][_0x3616('0x12')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e95=['value','editorDestroyed','addComment','removeComment','placeholder','commentThreadHeaderView','isResolvable','submit','isSubmitted','bind','editorConfig','change:isActive','assign','showInput','locale','_model','destroy','_config','submitCommentThread','focus','canComment','updateComment','resolveCommentThread','cancel','Write\x20a\x20comment...','Reply','_localUser','disabledSubmit','commentsListView','stop','isResolved','isActive','set','commentInputView','CommentView','length','reopenCommentThread','fire','removeCommentThread','editorReady','isReadOnly','delegate','commentThreadInputView','isDirty','Comment'];(function(_0x3dc067,_0x4e95cc){const _0x9b64cb=function(_0x2b5fbd){while(--_0x2b5fbd){_0x3dc067['push'](_0x3dc067['shift']());}};_0x9b64cb(++_0x4e95cc);}(_0x4e95,0x167));const _0x9b64=function(_0x3dc067,_0x4e95cc){_0x3dc067=_0x3dc067-0x0;let _0x9b64cb=_0x4e95[_0x3dc067];return _0x9b64cb;};import{View as _0xcf3971}from'ckeditor5/src/ui';import _0x1c29da from'./commentthreadinputview';import _0x243af0 from'./commentslistview';import _0x40fd57 from'./commentthreadheaderview';import{getTranslation as _0x3b5300}from'../../../utils/common-translations';export default class Tt extends _0xcf3971{constructor(_0x238ef6,_0x1eeefa,_0x2a89ed,_0x167e9d){super(_0x238ef6),this[_0x9b64('0x21')](_0x9b64('0x20'),!0x1),this[_0x9b64('0x21')]('isDirty',!0x1),this[_0x9b64('0x10')]=_0x1eeefa,this[_0x9b64('0x1b')]=_0x2a89ed,this['_config']=_0x167e9d,this[_0x9b64('0x6')]=new _0x40fd57(_0x238ef6,_0x1eeefa),this['commentThreadHeaderView'][_0x9b64('0x2a')]('reopenCommentThread')['to'](this),this[_0x9b64('0x1d')]=new _0x243af0(_0x238ef6,_0x1eeefa,Object[_0x9b64('0xd')]({'CommentView':this['_config'][_0x9b64('0x23')]},_0x167e9d)),this[_0x9b64('0x1d')]['delegate'](_0x9b64('0x4'))['to'](this),this[_0x9b64('0x1d')][_0x9b64('0x2a')](_0x9b64('0x16'))['to'](this),this[_0x9b64('0x1d')]['delegate'](_0x9b64('0x17'))['to'](this),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView'][_0x9b64('0x2a')](_0x9b64('0x2'))['to'](this),this[_0x9b64('0x1d')][_0x9b64('0xa')](_0x9b64('0x20'))['to'](this),this['set']('length',this[_0x9b64('0x1d')][_0x9b64('0x24')]),this[_0x9b64('0xa')](_0x9b64('0x24'))['to'](this[_0x9b64('0x1d')],_0x9b64('0x24')),this[_0x9b64('0x2b')]=this['_createCommentThreadInputView'](),this[_0x9b64('0x2b')][_0x9b64('0x2a')](_0x9b64('0x28'))['to'](this),this['commentThreadInputView']['delegate'](_0x9b64('0x2'))['to'](this),this['on'](_0x9b64('0x4'),()=>this[_0x9b64('0x14')]()),this[_0x9b64('0xa')](_0x9b64('0x2c'))['to'](this[_0x9b64('0x1d')],'hasDirtyComment',this['commentThreadInputView'][_0x9b64('0x22')],_0x9b64('0x1'),(_0x540c6f,_0x1cf7db)=>_0x540c6f||!!_0x1cf7db);}['focus'](){this['element'][_0x9b64('0x14')]();}[_0x9b64('0x11')](){this[_0x9b64('0x2c')]=!0x1,this[_0x9b64('0x1d')][_0x9b64('0x11')](),this[_0x9b64('0x2b')][_0x9b64('0x11')](),super[_0x9b64('0x11')]();}['_createCommentThreadInputView'](){const _0x116dfa=new _0x1c29da(this[_0x9b64('0xf')],this['_localUser'],this[_0x9b64('0x12')][_0x9b64('0xb')]),_0x5a0ea9=_0x116dfa['commentInputView'];return _0x116dfa[_0x9b64('0xa')](_0x9b64('0xe'))['to'](this,'isActive',this['_model'],_0x9b64('0x29'),this[_0x9b64('0x10')],_0x9b64('0x15'),this[_0x9b64('0x10')],_0x9b64('0x1f'),_0x5a0ea9,_0x9b64('0x1'),(_0x5e26c2,_0x5a9c16,_0x377a40,_0x2dd620,_0x5ca671)=>!!_0x5ca671||_0x2dd620&&_0x377a40&&!_0x5a9c16||_0x5e26c2&&_0x377a40&&!_0x5a9c16),_0x5a0ea9['bind'](_0x9b64('0x5'))['to'](this,_0x9b64('0x24'),this[_0x9b64('0x10')],_0x9b64('0x7'),this[_0x9b64('0x10')],_0x9b64('0x1f'),(_0x23ef0c,_0x544aa1,_0x2bc400)=>{let _0x8d0c6c;return _0x8d0c6c=_0x2bc400&&_0x544aa1?'Reply\x20to\x20reopen\x20discussion...':_0x23ef0c?'Reply...':_0x9b64('0x19'),_0x3b5300(this['locale'],_0x8d0c6c);}),_0x5a0ea9[_0x9b64('0xa')]('submitLabel')['to'](this,_0x9b64('0x24'),_0x32ecca=>_0x3b5300(this[_0x9b64('0xf')],_0x32ecca?_0x9b64('0x1a'):_0x9b64('0x0'))),_0x5a0ea9['on'](_0x9b64('0x8'),(_0xc9cfb5,_0x3481c5)=>{this['fire'](_0x9b64('0x3'),_0x3481c5),this[_0x9b64('0x10')][_0x9b64('0x1f')]&&this[_0x9b64('0x10')]['isResolvable']&&this[_0x9b64('0x26')](_0x9b64('0x25'),this['_model']['id']),this['_model'][_0x9b64('0x9')]||this[_0x9b64('0x26')](_0x9b64('0x13'));}),_0x5a0ea9['on']('cancel',()=>{this['focus']();}),_0x5a0ea9[_0x9b64('0xa')](_0x9b64('0x1c'))['to'](this['_model'],_0x9b64('0x29')),_0x5a0ea9['on'](_0x9b64('0x18'),_0x1cebce=>{0x0==this[_0x9b64('0x24')]&&(this[_0x9b64('0x26')](_0x9b64('0x27')),_0x1cebce[_0x9b64('0x1e')]());}),this['on'](_0x9b64('0xc'),(_0x4c73f4,_0x1f3261,_0x22806a)=>{_0x22806a||this[_0x9b64('0x24')]||_0x5a0ea9[_0x9b64('0x1')]||this[_0x9b64('0x26')](_0x9b64('0x27'));}),_0x116dfa;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf96e=['switchToDisplayMode','isCollapsed','initialData','isSystemComment','once','fire','_createCommentContentView','updateComment','delegate','set','submitLabel','focus','bind','switchToEditMode','cancel','get','content','destroy','Save','disabledSubmit','expand','isReadOnly','editorConfig','_model','maxCommentCharsWhenCollapsed','_createCommentInputView','element','isEditMode','visibleView','add','remove','createEditor','_config','locale'];(function(_0x4dee08,_0xf96e6f){const _0x29fb98=function(_0x29d430){while(--_0x29d430){_0x4dee08['push'](_0x4dee08['shift']());}};_0x29fb98(++_0xf96e6f);}(_0xf96e,0x1ab));const _0x29fb=function(_0x4dee08,_0xf96e6f){_0x4dee08=_0x4dee08-0x0;let _0x29fb98=_0xf96e[_0x4dee08];return _0x29fb98;};import{View as _0x5cf5b2}from'ckeditor5/src/ui';import{trimHtml as _0xd06ceb}from'ckeditor5-collaboration/src/collaboration-core';import _0x7fe7e3 from'./commentcontentview';import _0x1e6e6f from'./commentinputview';import{getTranslation as _0x13d270}from'../../../utils/common-translations';export default class Yt extends _0x5cf5b2{constructor(_0x27b397,_0x342271,_0x106401){super(_0x27b397),this['_model']=_0x342271,this[_0x29fb('0xd')]=_0x106401,this[_0x29fb('0x12')]=!!this[_0x29fb('0xd')]['isSystemComment'],this[_0x29fb('0x18')](_0x29fb('0x8'),!0x1),this[_0x29fb('0x18')]('isCollapsed',!0x0),this['visibleView']=this['createCollection'](),this[_0x29fb('0x9')][_0x29fb('0xa')](this['_createCommentContentView']());}[_0x29fb('0x1')](){this[_0x29fb('0x10')]=!0x1;}['collapse'](){this[_0x29fb('0x8')]||(this['isCollapsed']=!0x0);}[_0x29fb('0x1a')](){this[_0x29fb('0x7')][_0x29fb('0x1a')]();}async['destroy'](){await this[_0x29fb('0x9')][_0x29fb('0x1e')](0x0)[_0x29fb('0x20')](),super[_0x29fb('0x20')]();}[_0x29fb('0x1c')](){this[_0x29fb('0x8')]||(this[_0x29fb('0x8')]=!0x0,this[_0x29fb('0x9')][_0x29fb('0xb')](0x0)['destroy'](),this[_0x29fb('0x9')][_0x29fb('0xa')](this[_0x29fb('0x6')]()));}[_0x29fb('0xf')](){this['isEditMode']&&(this['isEditMode']=!0x1,this[_0x29fb('0x9')][_0x29fb('0xb')](0x0)[_0x29fb('0x20')](),this[_0x29fb('0x9')][_0x29fb('0xa')](this['_createCommentContentView']()));}[_0x29fb('0x15')](){const _0x5c80dd=new _0x7fe7e3(this[_0x29fb('0xe')]);return _0x5c80dd[_0x29fb('0x1b')]('content')['to'](this[_0x29fb('0x4')],_0x29fb('0x1f'),this,_0x29fb('0x10'),(_0x47a2d0,_0x4dd333)=>_0x4dd333?_0xd06ceb(_0x47a2d0,{'limit':this[_0x29fb('0xd')][_0x29fb('0x5')]}):_0x47a2d0),_0x5c80dd;}[_0x29fb('0x6')](){this[_0x29fb('0xd')][_0x29fb('0x3')]||(this[_0x29fb('0xd')][_0x29fb('0x3')]={}),this[_0x29fb('0xd')][_0x29fb('0x3')][_0x29fb('0x11')]=this[_0x29fb('0x4')][_0x29fb('0x1f')];const _0x490975=new _0x1e6e6f(this[_0x29fb('0xe')],this['_config'][_0x29fb('0x3')]);return _0x490975['value']=this[_0x29fb('0x4')]['content'],_0x490975[_0x29fb('0x1b')](_0x29fb('0x0'))['to'](this[_0x29fb('0x4')],_0x29fb('0x2')),_0x490975[_0x29fb('0x19')]=_0x13d270(this[_0x29fb('0xe')],_0x29fb('0x21')),_0x490975['on']('submit',(_0x17d2d6,_0x4ed81a)=>{this[_0x29fb('0x14')](_0x29fb('0x16'),this['_model']['id'],_0x4ed81a),this[_0x29fb('0xf')](),this[_0x29fb('0x1a')]();}),_0x490975['on'](_0x29fb('0x1d'),()=>{this[_0x29fb('0xf')](),this[_0x29fb('0x1a')]();}),_0x490975[_0x29fb('0x13')]('editorReady',()=>{_0x490975[_0x29fb('0x1a')]();}),_0x490975[_0x29fb('0xc')](),_0x490975[_0x29fb('0x17')]('editorReady')['to'](this),_0x490975[_0x29fb('0x17')]('editorDestroyed')['to'](this),_0x490975;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2084=['setTemplate','NUMBER_OF_COMMENTS','set','count','bindTemplate','ck-thread__comment-count'];(function(_0x209e50,_0x20843d){const _0xd2be33=function(_0x15f9f0){while(--_0x15f9f0){_0x209e50['push'](_0x209e50['shift']());}};_0xd2be33(++_0x20843d);}(_0x2084,0xed));const _0xd2be=function(_0x209e50,_0x20843d){_0x209e50=_0x209e50-0x0;let _0xd2be33=_0x2084[_0x209e50];return _0xd2be33;};import{View as _0x4921a4}from'ckeditor5/src/ui';import{getTranslation as _0x3527a4}from'../../../utils/common-translations';export default class Zt extends _0x4921a4{constructor(_0x219528){super(_0x219528);const _0x3f0c33=this[_0xd2be('0x1')];this[_0xd2be('0x5')]('count',void 0x0),this[_0xd2be('0x3')]({'tag':'li','attributes':{'class':_0xd2be('0x2')},'children':[{'text':_0x3f0c33['to'](_0xd2be('0x0'),_0x1a0fdd=>_0x3527a4(_0x219528,_0xd2be('0x4'),_0x1a0fdd))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x8e20=['ck-comment__content','ck-annotation__content','change:content','innerHTML','setTemplate','element','content'];(function(_0x119528,_0x8e206){var _0x4f3134=function(_0x28dba6){while(--_0x28dba6){_0x119528['push'](_0x119528['shift']());}};_0x4f3134(++_0x8e206);}(_0x8e20,0xad));var _0x4f31=function(_0x119528,_0x8e206){_0x119528=_0x119528-0x0;var _0x4f3134=_0x8e20[_0x119528];return _0x4f3134;};import{View as _0x577ed0}from'ckeditor5/src/ui';export default class Ut extends _0x577ed0{constructor(_0x1575ec){super(_0x1575ec),this['set']('content',''),this[_0x4f31('0x6')]({'tag':'div','attributes':{'class':[_0x4f31('0x2'),_0x4f31('0x3')]}});}['render'](){super['render'](),this['on'](_0x4f31('0x4'),(_0x4522a4,_0x3d6a10,_0x56d255)=>{this['element'][_0x4f31('0x5')]=_0x56d255;}),this[_0x4f31('0x0')][_0x4f31('0x5')]=this[_0x4f31('0x1')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3dfb=['then','Cancel','_editorConfig','change','label','focusPrevious','submitButtonView','submit','Esc','showButtons','bindTemplate','extendTemplate','editor','render','destroy','initialData','ck-comment__input-wrapper','focusTracker','setData','low','tab','ck-comment__input-actions--cancel','value','set','_createSubmitButton','_isDestroyed','withText','forEach','cancelButtonView','firstChild','placeholder','create','getData','submitLabel','insertBefore','length','createEditor','cancel','bind','stop','ck-comment__input-actions','Reply','fire','listenTo','high','editorReady','keystrokes','focus','_initializeFocusCycling','shift\x20+\x20tab','trim','add','editorDestroyed','execute','element','div','ck-comment__input-actions--active','setTemplate'];(function(_0xbf4e00,_0x3dfbfc){const _0x1c72b6=function(_0x1e984b){while(--_0x1e984b){_0xbf4e00['push'](_0xbf4e00['shift']());}};_0x1c72b6(++_0x3dfbfc);}(_0x3dfb,0x96));const _0x1c72=function(_0xbf4e00,_0x3dfbfc){_0xbf4e00=_0xbf4e00-0x0;let _0x1c72b6=_0x3dfb[_0xbf4e00];return _0x1c72b6;};import{View as _0x470711,ViewCollection as _0x1124a1,FocusCycler as _0x241ecb,ButtonView as _0x133d4f}from'ckeditor5/src/ui';import{FocusTracker as _0x57da46,KeystrokeHandler as _0x2e7e90}from'ckeditor5/src/utils';import _0x4ba238 from'../commenteditor/commenteditor';import{getTranslation as _0x546a41}from'../../../utils/common-translations';export default class Xt extends _0x470711{constructor(_0x10e841,_0x4722e8={}){super(_0x10e841),this[_0x1c72('0x24')]=null,this[_0x1c72('0x1a')]=_0x4722e8,this[_0x1c72('0xc')]=new _0x2e7e90(),this[_0x1c72('0x29')]=new _0x57da46(),this[_0x1c72('0x2f')](_0x1c72('0x2e'),_0x4722e8[_0x1c72('0x27')]||''),this['set']('disabledSubmit',!0x1),this[_0x1c72('0x2f')](_0x1c72('0x21'),!0x0),this[_0x1c72('0x2f')](_0x1c72('0x36'),_0x546a41(_0x10e841,'Reply...')),this[_0x1c72('0x2f')](_0x1c72('0x39'),_0x546a41(_0x10e841,_0x1c72('0x7'))),this[_0x1c72('0x1e')]=this[_0x1c72('0x30')](),this[_0x1c72('0x34')]=this['_createCancelButton'](),this[_0x1c72('0x17')]({'tag':'div','attributes':{'class':[_0x1c72('0x28')]},'children':[{'tag':_0x1c72('0x15'),'attributes':{'class':[_0x1c72('0x6'),this[_0x1c72('0x22')]['if'](_0x1c72('0x21'),_0x1c72('0x16'))]},'children':[this['submitButtonView'],this[_0x1c72('0x34')]]}]}),this[_0x1c72('0xc')][_0x1c72('0x2f')](_0x1c72('0x20'),(_0x12d4a4,_0x277460)=>{this[_0x1c72('0x34')][_0x1c72('0x8')]('execute'),_0x277460();}),this['on'](_0x1c72('0x1f'),(_0x242ea5,_0x37b7c4)=>{_0x37b7c4[_0x1c72('0x1')]>0xfde8?(alert(_0x546a41(_0x10e841,'TOO_LONG_COMMENT_ALERT',[_0x37b7c4[_0x1c72('0x1')],0xfde8])),_0x242ea5[_0x1c72('0x5')]()):this['editor'][_0x1c72('0x2a')]('');},{'priority':_0x1c72('0xa')});}[_0x1c72('0x25')](){super[_0x1c72('0x25')](),this[_0x1c72('0xc')][_0x1c72('0x9')](this[_0x1c72('0x14')]),this[_0x1c72('0x29')][_0x1c72('0x11')](this[_0x1c72('0x14')]);}[_0x1c72('0x2')](){return this[_0x1c72('0x24')]||(this[_0x1c72('0x24')]=new _0x4ba238(this['_editorConfig']),this['_editorCreationPromise']=this[_0x1c72('0x24')][_0x1c72('0x37')]()[_0x1c72('0x18')](()=>{if(this['_isDestroyed'])return;const _0x5ec3c5=this[_0x1c72('0x24')];this['element'][_0x1c72('0x0')](_0x5ec3c5['ui']['element'],this[_0x1c72('0x14')][_0x1c72('0x35')]),_0x5ec3c5['model']['document']['on'](_0x1c72('0x1b'),()=>this[_0x1c72('0x2e')]=_0x5ec3c5[_0x1c72('0x38')]()),_0x5ec3c5[_0x1c72('0x4')](_0x1c72('0x36'))['to'](this),this[_0x1c72('0xe')](this[_0x1c72('0x24')]),this['fire'](_0x1c72('0xb'),this['editor']);})),this['_editorCreationPromise'];}[_0x1c72('0xd')](){this[_0x1c72('0x24')]&&this[_0x1c72('0x24')][_0x1c72('0xd')]();}async[_0x1c72('0x26')](){this[_0x1c72('0x31')]||(this[_0x1c72('0x31')]=!0x0,this['editor']&&(await this['_editorCreationPromise'],await this['editor'][_0x1c72('0x26')](),this[_0x1c72('0x8')](_0x1c72('0x12'),this['editor'])),await super[_0x1c72('0x26')]());}[_0x1c72('0x30')](){const {locale:_0x551684}=this,_0x302193=new _0x133d4f(_0x551684);return _0x302193[_0x1c72('0x23')]({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x302193[_0x1c72('0x32')]=!0x0,_0x302193[_0x1c72('0x4')]('label')['to'](this,'submitLabel'),_0x302193['on'](_0x1c72('0x13'),()=>{this[_0x1c72('0x8')]('submit',this['value']);}),_0x302193[_0x1c72('0x4')]('isEnabled')['to'](this,_0x1c72('0x2e'),this,'disabledSubmit',(_0x366fec,_0x23c7c4)=>!_0x23c7c4&&!!_0x366fec[_0x1c72('0x10')]()),_0x302193;}['_createCancelButton'](){const {locale:_0x5becba}=this,_0x8ba88=new _0x133d4f(_0x5becba);return _0x8ba88[_0x1c72('0x23')]({'attributes':{'class':[_0x1c72('0x2d')]}}),_0x8ba88[_0x1c72('0x1c')]=_0x546a41(_0x5becba,_0x1c72('0x19')),_0x8ba88['withText']=!0x0,_0x8ba88['on'](_0x1c72('0x13'),()=>{this[_0x1c72('0x24')][_0x1c72('0x2a')](''),this[_0x1c72('0x8')](_0x1c72('0x3'));}),_0x8ba88;}[_0x1c72('0xe')](_0x410ced){const _0x2cc619=this['focusTracker'],_0x48d82f=new _0x1124a1();[_0x410ced['ui']['view'],this[_0x1c72('0x1e')],this[_0x1c72('0x34')]][_0x1c72('0x33')](_0x34524d=>{_0x48d82f[_0x1c72('0x11')](_0x34524d),_0x2cc619[_0x1c72('0x11')](_0x34524d[_0x1c72('0x14')]);});const _0x33d4d7=new _0x241ecb({'focusables':_0x48d82f,'focusTracker':_0x2cc619});this[_0x1c72('0xc')]['set'](_0x1c72('0x2c'),(_0x3aa7c7,_0x2bbc23)=>{_0x33d4d7['focusNext'](),_0x2bbc23();},{'priority':_0x1c72('0x2b')}),this[_0x1c72('0xc')]['set'](_0x1c72('0xf'),(_0x7104d6,_0x5f4425)=>{_0x33d4d7[_0x1c72('0x1d')](),_0x5f4425();},{'priority':_0x1c72('0x2b')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a6a=['high','shift\x20+\x20tab','_focusables','set','add','focus','isEmpty','arrowleft','ck-hidden','stopPropagation','_keystrokes','remove','auto','render','element','EMPTY_COMMENTS_ARCHIVE','listenTo','isActive','arrowup','ck-comments-archive__header\x20','ck-comments-archive__content','div','arrowdown','selectstart','length','destroy','COMMENTS_ARCHIVE','_focusTracker'];(function(_0x407fb3,_0x2a6ad1){const _0x269a3c=function(_0x4aea2d){while(--_0x4aea2d){_0x407fb3['push'](_0x407fb3['shift']());}};_0x269a3c(++_0x2a6ad1);}(_0x2a6a,0x173));const _0x269a=function(_0x407fb3,_0x2a6ad1){_0x407fb3=_0x407fb3-0x0;let _0x269a3c=_0x2a6a[_0x407fb3];return _0x269a3c;};import{View as _0x52b47,FocusCycler as _0x4e35c6}from'ckeditor5/src/ui';import{FocusTracker as _0x7953ad,KeystrokeHandler as _0x4d3375}from'ckeditor5/src/utils';import{getTranslation as _0x39444e}from'../../../utils/common-translations';export default class K extends _0x52b47{constructor(_0x158a80,_0x22daeb){super(_0x158a80),this[_0x269a('0x18')]('isEmpty',!_0x22daeb[_0x269a('0x11')]),this[_0x269a('0x14')]=new _0x7953ad(),this[_0x269a('0x3')]=new _0x4d3375(),this[_0x269a('0x17')]=_0x22daeb,this['_focusCycler']=new _0x4e35c6({'focusables':this['_focusables'],'focusTracker':this[_0x269a('0x14')],'keystrokeHandler':this[_0x269a('0x3')],'actions':{'focusPrevious':_0x269a('0x16'),'focusNext':'tab'}}),this['listenTo'](_0x22daeb,_0x269a('0x19'),()=>{this[_0x269a('0x1b')]=!0x1;}),this[_0x269a('0x9')](_0x22daeb,_0x269a('0x4'),(_0x2da182,_0x14086e)=>{_0x14086e[_0x269a('0xa')]&&this[_0x269a('0x1a')](),_0x22daeb[_0x269a('0x11')]||(this['isEmpty']=!0x0);});const _0x29c18b=this['bindTemplate'];this['setTemplate']({'tag':_0x269a('0xe'),'attributes':{'dir':_0x269a('0x5'),'class':['ck','ck-comments-archive'],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':[_0x269a('0xc')]},'children':[{'text':_0x39444e(_0x158a80,_0x269a('0x13'))}]},{'tag':_0x269a('0xe'),'attributes':{'class':[_0x269a('0xd')]},'children':[{'tag':_0x269a('0xe'),'children':_0x22daeb},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x29c18b['if']('isEmpty',_0x269a('0x1'),_0x3f84a0=>!_0x3f84a0)]},'children':[{'text':_0x39444e(_0x158a80,_0x269a('0x8'))}]}]}]});}[_0x269a('0x6')](){super['render'](),this[_0x269a('0x3')][_0x269a('0x9')](this[_0x269a('0x7')]);const _0x167323=_0x3c5d47=>_0x3c5d47[_0x269a('0x2')]();this[_0x269a('0x3')][_0x269a('0x18')]('arrowright',_0x167323),this['_keystrokes'][_0x269a('0x18')](_0x269a('0x0'),_0x167323),this[_0x269a('0x3')][_0x269a('0x18')](_0x269a('0xb'),_0x167323),this[_0x269a('0x3')][_0x269a('0x18')](_0x269a('0xf'),_0x167323),this[_0x269a('0x9')](this[_0x269a('0x7')],_0x269a('0x10'),(_0x203565,_0x47c1ce)=>{_0x47c1ce[_0x269a('0x2')]();},{'priority':_0x269a('0x15')});}[_0x269a('0x12')](){super[_0x269a('0x12')](),this[_0x269a('0x14')][_0x269a('0x12')](),this[_0x269a('0x3')][_0x269a('0x12')]();}[_0x269a('0x1a')](){this[_0x269a('0x7')]['focus']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa192=['length','visibleViews','resolvedBy','maxCommentCharsWhenCollapsed','commentViews','change:isEditMode','_handleNewCommentModel','isActive','updateComment','change:isResolved','_findOptimalIndex','from','focus','setTemplate','resolvedAt','_collapsedCommentsView','collapse','Marked\x20as\x20resolved','equal','destroy','ck-thread__comments','_calculatePosition','createCollection','refreshVisibleViews','maxThreadTotalWeight','add','_handleInfoComment','_updateHasDirtyComment','element','hasDirtyComment','_handleRemoveCommentModel','count','_model','locale','some','remove','expand','weight','listenTo','comments','authoredAt','editorReady','_config','editorConfig','formatDateTime','delete','resolvedCommentView','_rearrangeCollapse','_shouldCollapse','_rearrangeExpand','delegate','editorDestroyed','bind','CommentView','stopListening','get','set','isEditMode'];(function(_0x5c3fe1,_0xa1923c){const _0x2e0d3c=function(_0x45922d){while(--_0x45922d){_0x5c3fe1['push'](_0x5c3fe1['shift']());}};_0x2e0d3c(++_0xa1923c);}(_0xa192,0x1e7));const _0x2e0d=function(_0x5c3fe1,_0xa1923c){_0x5c3fe1=_0x5c3fe1-0x0;let _0x2e0d3c=_0xa192[_0x5c3fe1];return _0x2e0d3c;};import{View as _0x5c5e36}from'ckeditor5/src/ui';import{diff as _0x4141e9,Collection as _0x5c43ae}from'ckeditor5/src/utils';import{getTranslation as _0x5054b5}from'../../../utils/common-translations';import _0xe4c0a9 from'./collapsedcommentsview';export default class wt extends _0x5c5e36{constructor(_0x56966c,_0x46722d,_0x45d7d0){super(_0x56966c),this['set']('hasDirtyComment',!0x1),this['set']('length',_0x46722d[_0x2e0d('0x10')]['length']),this[_0x2e0d('0x21')](_0x2e0d('0x2a'),!0x1),this['_model']=_0x46722d,this[_0x2e0d('0x13')]=_0x45d7d0,this[_0x2e0d('0x27')]=this[_0x2e0d('0x39')](),this[_0x2e0d('0x24')]=this[_0x2e0d('0x39')](),this[_0x2e0d('0x17')]=null,this[_0x2e0d('0x32')]=new _0xe4c0a9(_0x56966c),this[_0x2e0d('0x32')][_0x2e0d('0x1d')](_0x2e0d('0x8'))['to'](this,_0x2e0d('0x23'),_0x17c8fe=>_0x17c8fe-this['_config']['maxCommentsWhenCollapsed']);for(const _0x2658da of _0x46722d[_0x2e0d('0x10')])this[_0x2e0d('0x29')](_0x2658da);this['_handleInfoComment'](),this['listenTo'](_0x46722d[_0x2e0d('0x10')],_0x2e0d('0x2'),(_0xf4ecb9,_0x2d33b4)=>{const _0x41b754=this[_0x2e0d('0x38')](_0x2d33b4);this['length']++,this[_0x2e0d('0x29')](_0x2d33b4,_0x41b754),this['refreshVisibleViews']();}),this[_0x2e0d('0xf')](_0x46722d[_0x2e0d('0x10')],_0x2e0d('0xc'),(_0x3b72ec,_0x45fed9)=>{this[_0x2e0d('0x23')]--,this[_0x2e0d('0x7')](_0x45fed9),this['refreshVisibleViews']();}),this[_0x2e0d('0xf')](_0x46722d,'commentUpdated',()=>this[_0x2e0d('0x0')]()),this[_0x2e0d('0xf')](_0x46722d,_0x2e0d('0x2c'),()=>this[_0x2e0d('0x3')]()),this['on']('change:isActive',()=>this[_0x2e0d('0x0')]()),this['on']('change:hasDirtyComment',()=>this['refreshVisibleViews']()),this[_0x2e0d('0x30')]({'tag':'ul','attributes':{'class':[_0x2e0d('0x37')]},'children':this[_0x2e0d('0x24')]});}get[_0x2e0d('0x19')](){return this['_model'][_0x2e0d('0xe')]>this[_0x2e0d('0x13')][_0x2e0d('0x1')]&&!this[_0x2e0d('0x2a')]&&!this['hasDirtyComment'];}['render'](){super['render'](),this[_0x2e0d('0x0')]();}[_0x2e0d('0x2f')](){this[_0x2e0d('0x5')][_0x2e0d('0x2f')]();}[_0x2e0d('0x36')](){this[_0x2e0d('0x32')][_0x2e0d('0x36')]();for(const _0x66935f of this[_0x2e0d('0x27')])_0x66935f[_0x2e0d('0x36')]();super[_0x2e0d('0x36')]();}['refreshVisibleViews'](){this[_0x2e0d('0x19')]?this['_rearrangeCollapse']():this[_0x2e0d('0x1a')]();}['_handleNewCommentModel'](_0x25d86a,_0x3c65f7){const _0x14f6e5=new this[(_0x2e0d('0x13'))][(_0x2e0d('0x1e'))](this['locale'],_0x25d86a,{'maxCommentCharsWhenCollapsed':this[_0x2e0d('0x13')][_0x2e0d('0x26')],'formatDateTime':this[_0x2e0d('0x13')][_0x2e0d('0x15')],'editorConfig':this['_config'][_0x2e0d('0x14')]});_0x14f6e5['viewUid']=_0x25d86a['id'],_0x14f6e5[_0x2e0d('0x1b')]('removeComment')['to'](this),_0x14f6e5[_0x2e0d('0x1b')](_0x2e0d('0x2b'))['to'](this),_0x14f6e5['delegate']('resolveCommentThread')['to'](this),_0x14f6e5['delegate'](_0x2e0d('0x12'))['to'](this),_0x14f6e5[_0x2e0d('0x1b')](_0x2e0d('0x1c'))['to'](this),this['listenTo'](_0x14f6e5,_0x2e0d('0x28'),()=>this[_0x2e0d('0x4')]()),this[_0x2e0d('0x27')][_0x2e0d('0x2')](_0x14f6e5,_0x3c65f7);}[_0x2e0d('0x38')](_0x3024d0){const _0x336084=this[_0x2e0d('0x9')][_0x2e0d('0x2d')](_0x3024d0);return this[_0x2e0d('0x17')]?this['resolvedCommentView'][_0x2e0d('0x11')]>_0x3024d0[_0x2e0d('0x11')]?_0x336084-0x1:_0x336084:_0x336084-0x1;}[_0x2e0d('0x3')](){if(this[_0x2e0d('0x9')][_0x2e0d('0x25')]&&this[_0x2e0d('0x9')][_0x2e0d('0x31')]){const _0xab3f2c={'id':'resolved','author':this['_model'][_0x2e0d('0x25')],'authoredAt':this[_0x2e0d('0x9')]['resolvedAt'],'content':_0x5054b5(this[_0x2e0d('0xa')],_0x2e0d('0x34')),'attributes':{}};this[_0x2e0d('0x17')]=new this['_config'][(_0x2e0d('0x1e'))](this[_0x2e0d('0xa')],_0xab3f2c,{'maxCommentCharsWhenCollapsed':this[_0x2e0d('0x13')][_0x2e0d('0x26')],'formatDateTime':this[_0x2e0d('0x13')][_0x2e0d('0x15')],'editorConfig':this['_config'][_0x2e0d('0x14')],'isSystemComment':!0x0}),this[_0x2e0d('0x27')]['add'](this[_0x2e0d('0x17')],this[_0x2e0d('0x9')][_0x2e0d('0x2d')](_0xab3f2c));}else this[_0x2e0d('0x17')]&&(this['commentViews']['remove'](this[_0x2e0d('0x17')]),this[_0x2e0d('0x17')][_0x2e0d('0x36')](),this[_0x2e0d('0x17')]=null);this[_0x2e0d('0x0')]();}['_handleRemoveCommentModel'](_0x20fa11){const _0x4c962f=this[_0x2e0d('0x27')][_0x2e0d('0xc')](_0x20fa11['id']);this[_0x2e0d('0x1f')](_0x4c962f),_0x4c962f[_0x2e0d('0x22')]&&this[_0x2e0d('0x4')](),_0x4c962f[_0x2e0d('0x36')]();}[_0x2e0d('0x4')](){this[_0x2e0d('0x6')]=Array['from'](this[_0x2e0d('0x27')])[_0x2e0d('0xb')](_0x263845=>_0x263845[_0x2e0d('0x22')]);}[_0x2e0d('0x18')](){const _0x492490=function(_0x20ba76){const _0x2628a3=new _0x5c43ae();for(const _0x35ab37 of _0x20ba76)_0x2628a3[_0x2e0d('0x2')](_0x35ab37);return _0x2628a3;}(this[_0x2e0d('0x27')]),_0x3ea828=this['_collapsedCommentsView']['count'];for(let _0x19e358=0x1;_0x19e358<=_0x3ea828;_0x19e358++)_0x492490['remove'](0x1);for(const _0x28402c of _0x492490)_0x28402c[_0x2e0d('0x33')]();_0x3ea828>0x0&&_0x492490[_0x2e0d('0x2')](this[_0x2e0d('0x32')],0x1),ss(_0x4141e9(Array[_0x2e0d('0x2e')](this['visibleViews']),Array[_0x2e0d('0x2e')](_0x492490)),this[_0x2e0d('0x24')],_0x492490);}[_0x2e0d('0x1a')](){ss(_0x4141e9(Array[_0x2e0d('0x2e')](this[_0x2e0d('0x24')]),Array[_0x2e0d('0x2e')](this['commentViews'])),this[_0x2e0d('0x24')],this[_0x2e0d('0x27')]);for(const _0x3879e0 of this[_0x2e0d('0x24')])_0x3879e0[_0x2e0d('0xd')]();}}function ss(_0x21bc31,_0xe3a488,_0x4e648a){let _0x2bf598=0x0;for(const _0x1f13dd of _0x21bc31)switch(_0x1f13dd){case'insert':_0xe3a488['add'](_0x4e648a[_0x2e0d('0x20')](_0x2bf598),_0x2bf598),_0x2bf598++;break;case _0x2e0d('0x16'):_0xe3a488[_0x2e0d('0xc')](_0x2bf598);break;case _0x2e0d('0x35'):_0x2bf598++;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2256=['ck-context--quotes','.ck-context','...','execute','offsetWidth','_attachContextActions','.ck-context__value','add','hasContext','remove','ck-context-wrapper','setTemplate','ck-context','span','scrollWidth','div','mouseleave','mouseenter','overlay','_model','_createReopenButton','substring','render','Reopen','locale','label','querySelector','contextValue','bind','context','icon','ck-annotation__actions','bindTemplate','classList','tooltip','isReadOnly','ck-context__value','value','reopenButtonView','_trimContextValue'];(function(_0x4dc6f5,_0x225684){const _0x4faac5=function(_0x2bd056){while(--_0x2bd056){_0x4dc6f5['push'](_0x4dc6f5['shift']());}};_0x4faac5(++_0x225684);}(_0x2256,0x1ab));const _0x4faa=function(_0x4dc6f5,_0x225684){_0x4dc6f5=_0x4dc6f5-0x0;let _0x4faac5=_0x2256[_0x4dc6f5];return _0x4faac5;};import{View as _0x5bfb09,ButtonView as _0x2020bb}from'ckeditor5/src/ui';import{getTranslation as _0x4ecb1d}from'../../../utils/common-translations';import _0x288207 from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Rt extends _0x5bfb09{constructor(_0x33e83c,_0x3b57e2){super(_0x33e83c);const _0x19f06e=this[_0x4faa('0x5')];this[_0x4faa('0x20')]=_0x3b57e2,this['reopenButtonView']=this[_0x4faa('0x21')](),this[_0x4faa('0x1')]('hasContext')['to'](this[_0x4faa('0x20')],_0x4faa('0x2'),_0x4f61e7=>!!_0x4f61e7),this['bind'](_0x4faa('0x0'))['to'](this[_0x4faa('0x20')],_0x4faa('0x2'),_0x34dd38=>_0x34dd38&&_0x34dd38[_0x4faa('0xa')]?this['_trimContextValue'](_0x34dd38[_0x4faa('0xa')]):_0x4ecb1d(this[_0x4faa('0x25')],'Comment\x20was\x20made\x20on\x20an\x20element')),this[_0x4faa('0x18')]({'tag':_0x4faa('0x1c'),'attributes':{'class':['ck-thread__header']},'children':[{'tag':'div','attributes':{'class':[_0x4faa('0x17')]},'children':[{'tag':_0x4faa('0x1c'),'attributes':{'class':[_0x4faa('0x19'),_0x19f06e['if'](_0x4faa('0x15'),_0x4faa('0xd'))]},'children':[{'tag':_0x4faa('0x1a'),'attributes':{'class':[_0x4faa('0x9')]},'children':[{'text':_0x19f06e['to'](_0x4faa('0x0'))}]}]}]},{'tag':_0x4faa('0x1c'),'attributes':{'class':[_0x4faa('0x4')]},'children':[this[_0x4faa('0xb')]]}]});}[_0x4faa('0x23')](){super[_0x4faa('0x23')](),this[_0x4faa('0x12')]();}[_0x4faa('0x21')](){const _0x30402d=new _0x2020bb(this['locale']);return _0x30402d[_0x4faa('0x26')]=_0x4ecb1d(this[_0x4faa('0x25')],_0x4faa('0x24')),_0x30402d[_0x4faa('0x7')]=_0x4ecb1d(this['locale'],_0x4faa('0x24')),_0x30402d[_0x4faa('0x3')]=_0x288207,_0x30402d['bind']('isEnabled')['to'](this[_0x4faa('0x20')],_0x4faa('0x8'),_0x58792e=>!_0x58792e),_0x30402d[_0x4faa('0x1')]('isVisible')['to'](this[_0x4faa('0x20')],'isResolvable'),_0x30402d['on'](_0x4faa('0x10'),()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x30402d;}[_0x4faa('0xc')](_0x42f185){if(_0x42f185['length']<0x96)return _0x42f185;const _0x53aacb=_0x42f185['lastIndexOf']('\x20',0x93);return _0x42f185[_0x4faa('0x22')](0x0,_0x53aacb>-0x1?_0x53aacb:0x93)+_0x4faa('0xf');}['_attachContextActions'](){const _0x44d27d=this['element'][_0x4faa('0x27')](_0x4faa('0xe')),_0xe44d34=_0x44d27d[_0x4faa('0x27')](_0x4faa('0x13'));this['listenTo'](_0x44d27d,_0x4faa('0x1e'),()=>{_0xe44d34[_0x4faa('0x11')]<_0xe44d34[_0x4faa('0x1b')]&&_0x44d27d[_0x4faa('0x6')][_0x4faa('0x14')](_0x4faa('0x1f'));}),this['listenTo'](_0x44d27d,_0x4faa('0x1d'),()=>{_0x44d27d[_0x4faa('0x6')][_0x4faa('0x16')](_0x4faa('0x1f'));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x274a=['commentInputView','ck-thread__user','bindTemplate','userView','editor','editorDestroyed','change:showInput','setTemplate','isFocused','set','value','editorReady','destroy','bind','extendTemplate','then','ck-comment__input-container--active','showInput','showButtons','div'];(function(_0x43ad63,_0x274a98){var _0x2aed1f=function(_0x1c21d8){while(--_0x1c21d8){_0x43ad63['push'](_0x43ad63['shift']());}};_0x2aed1f(++_0x274a98);}(_0x274a,0x180));var _0x2aed=function(_0x43ad63,_0x274a98){_0x43ad63=_0x43ad63-0x0;var _0x2aed1f=_0x274a[_0x43ad63];return _0x2aed1f;};import{View as _0x247b85}from'ckeditor5/src/ui';import _0x573971 from'./commentinputview';import{UserView as _0x52ae5a}from'ckeditor5-collaboration/src/collaboration-core';export default class Ct extends _0x247b85{constructor(_0x152c1f,_0xf170f8,_0xb43f69){super(_0x152c1f),this[_0x2aed('0x10')]=new _0x573971(_0x152c1f,_0xb43f69),this['commentInputView'][_0x2aed('0x9')](_0x2aed('0xe'))['to'](this[_0x2aed('0x10')]['focusTracker'],_0x2aed('0x4'),this[_0x2aed('0x10')],_0x2aed('0x6'),(_0x4801a9,_0x96b8fb)=>_0x4801a9||!!_0x96b8fb),this[_0x2aed('0x5')](_0x2aed('0xd'),!0x1),this['on'](_0x2aed('0x2'),()=>{this[_0x2aed('0xd')]&&!this[_0x2aed('0x10')][_0x2aed('0x0')]&&this[_0x2aed('0x10')]['createEditor']();}),this['commentInputView']['delegate'](_0x2aed('0x7'))['to'](this),this['commentInputView']['delegate'](_0x2aed('0x1'))['to'](this),this[_0x2aed('0x13')]=new _0x52ae5a(_0x152c1f,_0xf170f8),this[_0x2aed('0x13')][_0x2aed('0xa')]({'attributes':{'class':_0x2aed('0x11')}}),this['commentInputView']['extendTemplate']({'attributes':{'class':'ck-thread__input'}}),this[_0x2aed('0x3')]({'tag':_0x2aed('0xf'),'attributes':{'class':['ck-comment__input-container',this[_0x2aed('0x12')]['if'](_0x2aed('0xd'),_0x2aed('0xc'))]},'children':[this['userView'],this[_0x2aed('0x10')]]});}['destroy'](){return this['commentInputView']['destroy']()[_0x2aed('0xb')](()=>super[_0x2aed('0x8')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2215=['_cancelAllConfirms','_boundFirstCommentView','execute','_model','ck-reset_all-excluded','setTemplate','commentViews','bind','Resolve','.ck-thread__container','showConfirm','addMany','isReadOnly','div','length','commentsListView','isResolvable','ck-thread--active','getTemplate','removeButton','add','resolveCommentThread','label','high','bindTemplate','_bindFirstCommentView','icon','commentThreadHeaderView','then','stop','ck-comment--resolve','render','change:isActive','fire','_createResolveButton','containerElement','set','actionBar','element','isConfirm','ck-thread--remove-confirmation','change:isReadOnly','check','listenTo','ck-thread__container','cancelConfirm','isResolved','locale','tooltip','actionIndicator','isActive','extendTemplate','resolveButton','commentThreadChildren','ck-thread','isVisible','querySelector','commentThreadInputView','change:isResolved','unbind','remove'];(function(_0x32b1cc,_0x2215ae){const _0x494c28=function(_0x4450aa){while(--_0x4450aa){_0x32b1cc['push'](_0x32b1cc['shift']());}};_0x494c28(++_0x2215ae);}(_0x2215,0x139));const _0x494c=function(_0x32b1cc,_0x2215ae){_0x32b1cc=_0x32b1cc-0x0;let _0x494c28=_0x2215[_0x32b1cc];return _0x494c28;};import{ConfirmMixin as _0x25169b}from'ckeditor5-collaboration/src/collaboration-core';import{ButtonView as _0x5250b2}from'ckeditor5/src/ui';import{icons as _0x21c6e9}from'ckeditor5/src/core';import _0x35f071 from'./basecommentthreadview';import{getTranslation as _0x18ee0b}from'../../../utils/common-translations';export default class lt extends _0x25169b(_0x35f071){constructor(_0x1018f5,_0x53e6a7,_0x258f27,_0x638867){super(_0x1018f5,_0x53e6a7,_0x258f27,_0x638867),this['commentThreadChildren']=this['createCollection'](),this[_0x494c('0x2d')][_0x494c('0x3')]([this[_0x494c('0x7')],this[_0x494c('0x31')]]),this[_0x494c('0x38')][_0x494c('0x26')]&&this[_0x494c('0x2d')][_0x494c('0xc')](this['commentThreadHeaderView'],0x0),this[_0x494c('0x38')]['on'](_0x494c('0x32'),(_0xd144dd,_0x40fd5b,_0x224989)=>{_0x224989?this[_0x494c('0x2d')][_0x494c('0xc')](this[_0x494c('0x13')],0x0):this[_0x494c('0x2d')]['remove'](this[_0x494c('0x13')]);}),this[_0x494c('0x1c')](_0x494c('0x29'),null),this[_0x494c('0x1b')]=null,this['_boundFirstCommentView']=null,this[_0x494c('0x27')]=_0x1018f5,this[_0x494c('0x2c')]=this[_0x494c('0x1a')](),this[_0x494c('0x3a')](this['getTemplate']()),this['on'](_0x494c('0x18'),(_0x50fe60,_0x5bebbb,_0x2ac206)=>{_0x2ac206||this[_0x494c('0x35')]();}),this[_0x494c('0x23')](this[_0x494c('0x38')],_0x494c('0x21'),(_0x1f6e4c,_0x3d1620,_0x29d165)=>{_0x29d165&&this[_0x494c('0x35')]();}),this[_0x494c('0x6')]>0x0&&this[_0x494c('0x11')](),this[_0x494c('0x23')](this[_0x494c('0x7')][_0x494c('0x3b')],'add',()=>{this['_bindFirstCommentView']();});}[_0x494c('0xa')](){const _0x59c2dd=this[_0x494c('0x10')];return{'tag':_0x494c('0x5'),'attributes':{'class':[_0x494c('0x2e'),_0x494c('0x39'),_0x59c2dd['if'](_0x494c('0x2a'),_0x494c('0x9')),_0x59c2dd['if'](_0x494c('0x1f'),_0x494c('0x20')),_0x59c2dd['to'](_0x494c('0x29'),_0x55b13d=>_0x55b13d?'ck-thread--'+_0x55b13d:'')],'data-thread-id':this[_0x494c('0x38')]['id'],'tabindex':-0x1},'children':[{'tag':_0x494c('0x5'),'attributes':{'class':_0x494c('0x24')},'children':this['commentThreadChildren']}]};}['render'](){super[_0x494c('0x17')](),this[_0x494c('0x1b')]=this[_0x494c('0x1e')][_0x494c('0x30')](_0x494c('0x1'));}[_0x494c('0x35')](){this['cancelConfirm']();for(const _0x3201c4 of this[_0x494c('0x7')][_0x494c('0x3b')])_0x3201c4[_0x494c('0x25')]();}[_0x494c('0x11')](){const {locale:_0xfc086}=this,_0x2c1eb0=this[_0x494c('0x7')][_0x494c('0x3b')]['get'](0x0);_0x2c1eb0===this[_0x494c('0x36')]||_0x2c1eb0['isSystemComment']||(this['_boundFirstCommentView']=_0x2c1eb0,this[_0x494c('0x33')]('actionIndicator'),this[_0x494c('0x3c')](_0x494c('0x29'))['to'](_0x2c1eb0,_0x494c('0x29'),_0x33b8d7=>'remove'===_0x33b8d7?_0x494c('0x34'):null),_0x2c1eb0['placeholder']=_0x18ee0b(_0xfc086,'Write\x20a\x20comment...'),_0x2c1eb0[_0x494c('0xb')]['on'](_0x494c('0x37'),_0x1f3ea9=>{_0x1f3ea9[_0x494c('0x15')](),this[_0x494c('0x2')](_0x18ee0b(_0xfc086,'Delete\x20comment\x20thread?'),this[_0x494c('0x1b')])[_0x494c('0x14')](()=>{this[_0x494c('0x19')]('removeCommentThread');});},{'priority':_0x494c('0xf')}),_0x2c1eb0[_0x494c('0x1d')][_0x494c('0xc')](this[_0x494c('0x2c')],0x0));}[_0x494c('0x1a')](){const _0x1e2ffb=new _0x5250b2(this[_0x494c('0x27')]);return _0x1e2ffb[_0x494c('0xe')]=_0x18ee0b(this[_0x494c('0x27')],_0x494c('0x0')),_0x1e2ffb[_0x494c('0x28')]=_0x18ee0b(this['locale'],'Resolve'),_0x1e2ffb[_0x494c('0x12')]=_0x21c6e9[_0x494c('0x22')],_0x1e2ffb[_0x494c('0x2b')]({'attributes':{'class':_0x494c('0x16')}}),_0x1e2ffb[_0x494c('0x3c')]('isEnabled')['to'](this['_model'],_0x494c('0x4'),_0x53807f=>!_0x53807f),_0x1e2ffb[_0x494c('0x3c')](_0x494c('0x2f'))['to'](this[_0x494c('0x38')],_0x494c('0x8'),this[_0x494c('0x38')],_0x494c('0x26'),(_0x2a36de,_0x1d77d2)=>_0x2a36de&&!_0x1d77d2),_0x1e2ffb['on'](_0x494c('0x37'),()=>{this['fire'](_0x494c('0xd'),this[_0x494c('0x38')]['id']);}),_0x1e2ffb;}}
|