@ckeditor/ckeditor5-comments 35.2.0 → 35.2.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.
Files changed (38) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +3 -3
  3. package/src/annotations/annotation.js +1 -1
  4. package/src/annotations/annotationcollection.js +1 -1
  5. package/src/annotations/annotations.js +1 -1
  6. package/src/annotations/annotationsuis.js +1 -1
  7. package/src/annotations/editorannotations.js +1 -1
  8. package/src/annotations/inlineannotations.js +1 -1
  9. package/src/annotations/narrowsidebar.js +1 -1
  10. package/src/annotations/sidebar.js +1 -1
  11. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  12. package/src/annotations/view/annotationview.js +1 -1
  13. package/src/annotations/view/sidebaritemview.js +1 -1
  14. package/src/annotations/view/sidebarview.js +1 -1
  15. package/src/annotations/widesidebar.js +1 -1
  16. package/src/comments/addcommentthreadcommand.js +1 -1
  17. package/src/comments/commentsediting.js +1 -1
  18. package/src/comments/commentsrepository.js +1 -1
  19. package/src/comments/commentsui.js +1 -1
  20. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  21. package/src/comments/integrations/importword.js +1 -1
  22. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  23. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  24. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  25. package/src/comments/ui/commentthreadcontroller.js +1 -1
  26. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  27. package/src/comments/ui/view/basecommentview.js +1 -1
  28. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  29. package/src/comments/ui/view/commentcontentview.js +1 -1
  30. package/src/comments/ui/view/commentinputview.js +1 -1
  31. package/src/comments/ui/view/commentslistview.js +1 -1
  32. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  33. package/src/comments/ui/view/commentthreadview.js +1 -1
  34. package/src/comments/ui/view/commentview.js +1 -1
  35. package/src/comments.js +1 -1
  36. package/src/commentsonly.js +1 -1
  37. package/src/utils/common-translations.js +1 -1
  38. package/src/utils/createmutationobserver.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x15f5=['hasCommentThread','has','highest','_viewToController','componentFactory','get','icon','removeCommentThread','comment:','view','low','CommentThreadInputView','addSourceCollector','execute','comment','_threadToController','locale','bind','plugins','init','stop','from','hasMarkerForId','focusTracker','isFocused','addComment','addCommentThread','commands','editing','editor','isEnabled','focus','change:activeAnnotations','length','CommentsListView','Comment','innerView','push','label','activeMarker','listenTo','map','tooltip','requires'];(function(_0x194d66,_0x15f5be){const _0x50ef57=function(_0x14e638){while(--_0x14e638){_0x194d66['push'](_0x194d66['shift']());}};_0x50ef57(++_0x15f5be);}(_0x15f5,0xce));const _0x50ef=function(_0x194d66,_0x15f5be){_0x194d66=_0x194d66-0x0;let _0x50ef57=_0x15f5[_0x194d66];return _0x50ef57;};import{Plugin as _0x49a6da}from'ckeditor5/src/core';import _0x336d32 from'./commentsrepository';import _0x4a6a0e from'./commentsediting';import _0x1a3dae from'../annotations/editorannotations';import{ButtonView as _0x48813c}from'ckeditor5/src/ui';import _0x4d12b4 from'../../theme/icons/add-comment.svg';import _0x14bb91 from'../annotations/annotations';import _0x5b3655 from'./ui/view/commentslistview';import _0x12df20 from'./ui/view/commentthreadinputview';import{getTranslation as _0x5ccc57}from'../utils/common-translations';export default class n extends _0x49a6da{static get['pluginName'](){return'CommentsUI';}static get[_0x50ef('0xd')](){return[_0x336d32,_0x4a6a0e,_0x1a3dae,_0x14bb91];}get[_0x50ef('0x4')](){return _0x5b3655;}get[_0x50ef('0x19')](){return _0x12df20;}[_0x50ef('0x21')](){const _0x125063=this[_0x50ef('0x2b')],_0x20ab5d=_0x125063[_0x50ef('0x20')][_0x50ef('0x13')](_0x336d32),_0x4decea=_0x125063[_0x50ef('0x20')]['get'](_0x4a6a0e),_0x458402=_0x125063[_0x50ef('0x20')][_0x50ef('0x13')](_0x14bb91),_0x32e7f0=_0x125063['plugins']['get'](_0x1a3dae);_0x125063['ui'][_0x50ef('0x12')]['add'](_0x50ef('0x1c'),()=>this['_createUIButton']()),_0x32e7f0[_0x50ef('0x1a')](()=>{const _0x49f601=[];for(const [_0x4f7ff3,_0x23735d]of _0x20ab5d[_0x50ef('0x1d')]){const _0x52eb8c=_0x4decea['getAllMarkersForId'](_0x4f7ff3['id']),_0x5d92c4=_0x52eb8c[_0x50ef('0xb')](_0x1b6563=>_0x1b6563['getRange']());_0x52eb8c[_0x50ef('0x3')]>0x0&&_0x49f601[_0x50ef('0x7')]([_0x23735d['view'],_0x5d92c4]);}return _0x49f601;}),this['listenTo'](_0x458402,_0x50ef('0x2'),(_0x245fb7,_0x5d1060,_0x5c5fee)=>{const _0x2dc060=Array[_0x50ef('0x23')](_0x5c5fee)['map'](_0x191da6=>_0x191da6[_0x50ef('0x6')])['find'](_0x2a091e=>_0x20ab5d['_viewToController'][_0x50ef('0xf')](_0x2a091e));if(!_0x2dc060)return void(_0x4decea['activeMarker']=null);const _0x1444e6=_0x20ab5d[_0x50ef('0x11')][_0x50ef('0x13')](_0x2dc060)['model']['id'],_0x598ac6=_0x50ef('0x16')+_0x1444e6;_0x4decea[_0x50ef('0x24')](_0x1444e6)?_0x4decea[_0x50ef('0x9')]=_0x598ac6:_0x4decea[_0x50ef('0x9')]&&(_0x4decea[_0x50ef('0x9')]=null);}),this['listenTo'](_0x20ab5d,_0x50ef('0x15'),(_0x2dba71,{threadId:_0x1eb7c9,isFromAdapter:_0x1e255e})=>{!_0x1e255e&&_0x125063['ui'][_0x50ef('0x25')][_0x50ef('0x26')]&&_0x4decea[_0x50ef('0x24')](_0x1eb7c9)&&_0x125063[_0x50ef('0x2a')][_0x50ef('0x17')][_0x50ef('0x1')]();},{'priority':_0x50ef('0x10')}),this[_0x50ef('0xa')](_0x20ab5d,_0x50ef('0x27'),(_0x511ba5,{threadId:_0x32821a,isFromAdapter:_0x246d37})=>{if(_0x246d37||!_0x4decea[_0x50ef('0x24')](_0x32821a)||!_0x20ab5d[_0x50ef('0xe')](_0x32821a))return;0x1===_0x20ab5d['getCommentThread'](_0x32821a)['length']&&(_0x125063['editing'][_0x50ef('0x17')][_0x50ef('0x1')](),_0x511ba5[_0x50ef('0x22')]());},{'priority':_0x50ef('0x18')});}['_createUIButton'](){const _0x3c299b=this[_0x50ef('0x2b')],_0x34e7db=new _0x48813c(_0x3c299b[_0x50ef('0x1e')]),_0x1624e8=_0x3c299b[_0x50ef('0x29')][_0x50ef('0x13')](_0x50ef('0x28'));return _0x34e7db[_0x50ef('0x8')]=_0x5ccc57(_0x3c299b['locale'],_0x50ef('0x5')),_0x34e7db[_0x50ef('0xc')]=_0x5ccc57(_0x3c299b[_0x50ef('0x1e')],_0x50ef('0x5')),_0x34e7db[_0x50ef('0x14')]=_0x4d12b4,_0x34e7db[_0x50ef('0x1f')](_0x50ef('0x0'))['to'](_0x1624e8),this['listenTo'](_0x34e7db,_0x50ef('0x1b'),()=>_0x1624e8[_0x50ef('0x1b')]()),_0x34e7db;}}
23
+ const _0x19a5=['add','listenTo','stop','focusTracker','model','focus','CommentThreadInputView','_viewToController','editor','push','CommentsUI','requires','tooltip','execute','isFocused','innerView','activeMarker','locale','addComment','length','hasMarkerForId','get','map','comment','getCommentThread','isEnabled','comment:','view','editing','addCommentThread','label','addSourceCollector','_createUIButton','icon','CommentsListView','pluginName','plugins','_threadToController','init','change:activeAnnotations'];(function(_0x26d1ac,_0x19a5b3){const _0xf3c42=function(_0x36f57a){while(--_0x36f57a){_0x26d1ac['push'](_0x26d1ac['shift']());}};_0xf3c42(++_0x19a5b3);}(_0x19a5,0x107));const _0xf3c4=function(_0x26d1ac,_0x19a5b3){_0x26d1ac=_0x26d1ac-0x0;let _0xf3c42=_0x19a5[_0x26d1ac];return _0xf3c42;};import{Plugin as _0x30c500}from'ckeditor5/src/core';import _0x40ecee from'./commentsrepository';import _0x2bb4e0 from'./commentsediting';import _0x46f7f4 from'../annotations/editorannotations';import{ButtonView as _0x2c58d5}from'ckeditor5/src/ui';import _0xb08292 from'../../theme/icons/add-comment.svg';import _0x11bc17 from'../annotations/annotations';import _0x2e60c6 from'./ui/view/commentslistview';import _0x206565 from'./ui/view/commentthreadinputview';import{getTranslation as _0x3cf90e}from'../utils/common-translations';export default class n extends _0x30c500{static get[_0xf3c4('0xc')](){return _0xf3c4('0x1b');}static get[_0xf3c4('0x1c')](){return[_0x40ecee,_0x2bb4e0,_0x46f7f4,_0x11bc17];}get[_0xf3c4('0xb')](){return _0x2e60c6;}get[_0xf3c4('0x17')](){return _0x206565;}[_0xf3c4('0xf')](){const _0x518641=this['editor'],_0x14d21a=_0x518641[_0xf3c4('0xd')]['get'](_0x40ecee),_0x24f154=_0x518641['plugins'][_0xf3c4('0x26')](_0x2bb4e0),_0xd60f1f=_0x518641[_0xf3c4('0xd')][_0xf3c4('0x26')](_0x11bc17),_0x2eb718=_0x518641[_0xf3c4('0xd')][_0xf3c4('0x26')](_0x46f7f4);_0x518641['ui']['componentFactory'][_0xf3c4('0x11')](_0xf3c4('0x0'),()=>this[_0xf3c4('0x9')]()),_0x2eb718[_0xf3c4('0x8')](()=>{const _0x3e7650=[];for(const [_0x37016a,_0x331ce3]of _0x14d21a[_0xf3c4('0xe')]){const _0x4ed5fd=_0x24f154['getAllMarkersForId'](_0x37016a['id']),_0x291747=_0x4ed5fd[_0xf3c4('0x27')](_0x37ab1e=>_0x37ab1e['getRange']());_0x4ed5fd[_0xf3c4('0x24')]>0x0&&_0x3e7650[_0xf3c4('0x1a')]([_0x331ce3[_0xf3c4('0x4')],_0x291747]);}return _0x3e7650;}),this[_0xf3c4('0x12')](_0xd60f1f,_0xf3c4('0x10'),(_0x239c64,_0x2a7868,_0x1541ec)=>{const _0x24e7b2=Array['from'](_0x1541ec)[_0xf3c4('0x27')](_0x3f5896=>_0x3f5896[_0xf3c4('0x20')])['find'](_0x40236a=>_0x14d21a[_0xf3c4('0x18')]['has'](_0x40236a));if(!_0x24e7b2)return void(_0x24f154[_0xf3c4('0x21')]=null);const _0x3aeb79=_0x14d21a[_0xf3c4('0x18')][_0xf3c4('0x26')](_0x24e7b2)[_0xf3c4('0x15')]['id'],_0x31927d=_0xf3c4('0x3')+_0x3aeb79;_0x24f154[_0xf3c4('0x25')](_0x3aeb79)?_0x24f154[_0xf3c4('0x21')]=_0x31927d:_0x24f154[_0xf3c4('0x21')]&&(_0x24f154[_0xf3c4('0x21')]=null);}),this['listenTo'](_0x14d21a,'removeCommentThread',(_0x65ab28,{threadId:_0x3b46ae,isFromAdapter:_0x4c4ed8})=>{!_0x4c4ed8&&_0x518641['ui'][_0xf3c4('0x14')][_0xf3c4('0x1f')]&&_0x24f154[_0xf3c4('0x25')](_0x3b46ae)&&_0x518641[_0xf3c4('0x5')][_0xf3c4('0x4')][_0xf3c4('0x16')]();},{'priority':'highest'}),this[_0xf3c4('0x12')](_0x14d21a,_0xf3c4('0x23'),(_0x288171,{threadId:_0x2343e5,isFromAdapter:_0x49d439})=>{if(_0x49d439||!_0x24f154[_0xf3c4('0x25')](_0x2343e5)||!_0x14d21a['hasCommentThread'](_0x2343e5))return;0x1===_0x14d21a[_0xf3c4('0x1')](_0x2343e5)[_0xf3c4('0x24')]&&(_0x518641['editing'][_0xf3c4('0x4')][_0xf3c4('0x16')](),_0x288171[_0xf3c4('0x13')]());},{'priority':'low'});}['_createUIButton'](){const _0x499b96=this[_0xf3c4('0x19')],_0x1331cc=new _0x2c58d5(_0x499b96[_0xf3c4('0x22')]),_0xfc24c5=_0x499b96['commands'][_0xf3c4('0x26')](_0xf3c4('0x6'));return _0x1331cc[_0xf3c4('0x7')]=_0x3cf90e(_0x499b96[_0xf3c4('0x22')],'Comment'),_0x1331cc[_0xf3c4('0x1d')]=_0x3cf90e(_0x499b96['locale'],'Comment'),_0x1331cc[_0xf3c4('0xa')]=_0xb08292,_0x1331cc['bind'](_0xf3c4('0x2'))['to'](_0xfc24c5),this['listenTo'](_0x1331cc,_0xf3c4('0x1e'),()=>_0xfc24c5[_0xf3c4('0x1e')]()),_0x1331cc;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1aa2=['has','plugins','afterInit','enableCommand','RestrictedEditingModeEditing'];(function(_0x50d6d6,_0x1aa25b){const _0x21c49a=function(_0x21f89a){while(--_0x21f89a){_0x50d6d6['push'](_0x50d6d6['shift']());}};_0x21c49a(++_0x1aa25b);}(_0x1aa2,0x1b7));const _0x21c4=function(_0x50d6d6,_0x1aa25b){_0x50d6d6=_0x50d6d6-0x0;let _0x21c49a=_0x1aa2[_0x50d6d6];return _0x21c49a;};import{Plugin as _0x21ec09}from'ckeditor5/src/core';export default class F extends _0x21ec09{[_0x21c4('0x3')](){const _0x613a70=this['editor'];if(!_0x613a70['plugins'][_0x21c4('0x1')](_0x21c4('0x0')))return;_0x613a70[_0x21c4('0x2')]['get']('RestrictedEditingModeEditing')[_0x21c4('0x4')]('addCommentThread');}}
23
+ const _0x511e=['has','RestrictedEditingModeEditing','afterInit','editor','addCommentThread','enableCommand','get','plugins'];(function(_0x12696f,_0x511e45){const _0x587f43=function(_0x1b908f){while(--_0x1b908f){_0x12696f['push'](_0x12696f['shift']());}};_0x587f43(++_0x511e45);}(_0x511e,0xb1));const _0x587f=function(_0x12696f,_0x511e45){_0x12696f=_0x12696f-0x0;let _0x587f43=_0x511e[_0x12696f];return _0x587f43;};import{Plugin as _0x54a7ee}from'ckeditor5/src/core';export default class F extends _0x54a7ee{[_0x587f('0x1')](){const _0x2c840b=this[_0x587f('0x2')];if(!_0x2c840b['plugins'][_0x587f('0x7')](_0x587f('0x0')))return;_0x2c840b[_0x587f('0x6')][_0x587f('0x5')](_0x587f('0x0'))[_0x587f('0x4')](_0x587f('0x3'));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5b33=['addCommentThread','editor','collaboration_features','collaboration.channelId','map','config','execute','afterInit','_handleImportedData','get','plugins','Users'];(function(_0x19d2e1,_0x5b3351){const _0x3c3512=function(_0x4f3c4a){while(--_0x4f3c4a){_0x19d2e1['push'](_0x19d2e1['shift']());}};_0x3c3512(++_0x5b3351);}(_0x5b33,0xd0));const _0x3c35=function(_0x19d2e1,_0x5b3351){_0x19d2e1=_0x19d2e1-0x0;let _0x3c3512=_0x5b33[_0x19d2e1];return _0x3c3512;};import{Plugin as _0x360c8f}from'ckeditor5/src/core';import{priorities as _0x58ac2a}from'ckeditor5/src/utils';import _0x2a2062 from'../commentsrepository';export default class q extends _0x360c8f{[_0x3c35('0x3')](){const _0x26c43b=this[_0x3c35('0x9')],_0x5d6bf1=_0x26c43b['commands'][_0x3c35('0x5')]('importWord'),_0x18e310=_0x26c43b[_0x3c35('0x6')][_0x3c35('0x5')]('Users');_0x5d6bf1&&(_0x5d6bf1['on'](_0x3c35('0x2'),(_0x5d5ffe,[,_0xab029f])=>{_0xab029f[_0x3c35('0xa')]={'comments':!0x0,'user_id':_0x18e310['me']['id']};},{'priority':_0x58ac2a['high']+0xa}),this['listenTo'](_0x5d6bf1,'dataInsert',this[_0x3c35('0x4')]));}[_0x3c35('0x4')](_0x120a36,_0x3d8fd6){const {comment_threads:_0x352371}=_0x3d8fd6;_0x352371&&_0x352371['forEach'](({thread_id:_0x1af47c,comments:_0x297b74})=>{const _0x5b0884=_0x297b74[_0x3c35('0x0')](({author:_0x12cbeb,content:_0x3a5e5b,created_at:_0x1e4976})=>({'content':_0x3a5e5b,'authorId':this[_0x3c35('0x9')]['plugins']['get'](_0x3c35('0x7'))['me']['id'],'createdAt':new Date(),'attributes':{'@external':{'authorName':_0x12cbeb,'createdAt':_0x1e4976?new Date(_0x1e4976):new Date()}}})),_0x2ffed2=this[_0x3c35('0x9')][_0x3c35('0x1')]['get'](_0x3c35('0xb'));this[_0x3c35('0x9')][_0x3c35('0x6')][_0x3c35('0x5')](_0x2a2062)[_0x3c35('0x8')]({'channelId':_0x2ffed2,'threadId':_0x1af47c,'comments':_0x5b0884});});}}
23
+ const _0x5b64=['dataInsert','execute','plugins','high','_handleImportedData','editor','forEach','Users','listenTo','importWord','addCommentThread','get','collaboration_features','map'];(function(_0x445b07,_0x5b64d4){const _0x24d40f=function(_0x160b3d){while(--_0x160b3d){_0x445b07['push'](_0x445b07['shift']());}};_0x24d40f(++_0x5b64d4);}(_0x5b64,0x183));const _0x24d4=function(_0x445b07,_0x5b64d4){_0x445b07=_0x445b07-0x0;let _0x24d40f=_0x5b64[_0x445b07];return _0x24d40f;};import{Plugin as _0x17914b}from'ckeditor5/src/core';import{priorities as _0x1c1e18}from'ckeditor5/src/utils';import _0x5ab130 from'../commentsrepository';export default class q extends _0x17914b{['afterInit'](){const _0x39b018=this['editor'],_0x15789a=_0x39b018['commands'][_0x24d4('0x2')](_0x24d4('0x0')),_0x3fadd5=_0x39b018[_0x24d4('0x7')][_0x24d4('0x2')](_0x24d4('0xc'));_0x15789a&&(_0x15789a['on'](_0x24d4('0x6'),(_0x8d8f4e,[,_0x4a65e4])=>{_0x4a65e4[_0x24d4('0x3')]={'comments':!0x0,'user_id':_0x3fadd5['me']['id']};},{'priority':_0x1c1e18[_0x24d4('0x8')]+0xa}),this[_0x24d4('0xd')](_0x15789a,_0x24d4('0x5'),this[_0x24d4('0x9')]));}[_0x24d4('0x9')](_0x11790c,_0x5a6a1b){const {comment_threads:_0x1dc6aa}=_0x5a6a1b;_0x1dc6aa&&_0x1dc6aa[_0x24d4('0xb')](({thread_id:_0x1aa020,comments:_0x291aa9})=>{const _0x46638f=_0x291aa9[_0x24d4('0x4')](({author:_0x221b0d,content:_0x4ae215,created_at:_0x472cb3})=>({'content':_0x4ae215,'authorId':this['editor'][_0x24d4('0x7')]['get'](_0x24d4('0xc'))['me']['id'],'createdAt':new Date(),'attributes':{'@external':{'authorName':_0x221b0d,'createdAt':_0x472cb3?new Date(_0x472cb3):new Date()}}})),_0x4a562b=this[_0x24d4('0xa')]['config'][_0x24d4('0x2')]('collaboration.channelId');this[_0x24d4('0xa')]['plugins'][_0x24d4('0x2')](_0x5ab130)[_0x24d4('0x1')]({'channelId':_0x4a562b,'threadId':_0x1aa020,'comments':_0x46638f});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x28d9=['end','then','createRoot','view','set','name','init','config','setSelection','placeholderElement','defaultPlugins','editing','assign','document','_updatePlaceholder','change','low','fire','childCount','getRoot','model','destroy','create','getChild','focus','ready','placeholder','initPlugins','plugins'];(function(_0x2c2646,_0x28d970){const _0x2f24da=function(_0x3856da){while(--_0x3856da){_0x2c2646['push'](_0x2c2646['shift']());}};_0x2f24da(++_0x28d970);}(_0x28d9,0x11d));const _0x2f24=function(_0x2c2646,_0x28d970){_0x2c2646=_0x2c2646-0x0;let _0x2f24da=_0x28d9[_0x2c2646];return _0x2f24da;};import{Editor as _0x28e823,DataApiMixin as _0x1038bd}from'ckeditor5/src/core';import _0xb96936 from'./commenteditorui';import{mix as _0x3c342a,ObservableMixin as _0x138dbc}from'ckeditor5/src/utils';import{enablePlaceholder as _0x2eeba0,disablePlaceholder as _0x4f956b}from'ckeditor5/src/engine';import{Clipboard as _0x1d9194}from'ckeditor5/src/clipboard';import{Enter as _0x5a5de7,ShiftEnter as _0x5ae892}from'ckeditor5/src/enter';import{SelectAll as _0x4c2427}from'ckeditor5/src/select-all';import{Typing as _0x2ca3e0}from'ckeditor5/src/typing';import{Undo as _0x2409b5}from'ckeditor5/src/undo';import{Paragraph as _0x209e75}from'ckeditor5/src/paragraph';export default class zt extends _0x28e823{constructor(_0x30abb3={}){(_0x30abb3=Object[_0x2f24('0x11')]({},_0x30abb3))[_0x2f24('0x4')]||(_0x30abb3[_0x2f24('0x4')]=zt['defaultPlugins']),super(_0x30abb3),this['ui']=new _0xb96936(this),this[_0x2f24('0x9')](_0x2f24('0x2'),''),this['model'][_0x2f24('0x12')]['on']('change',()=>this['_updatePlaceholder'](),{'priority':_0x2f24('0x15')}),this['on']('change:placeholder',()=>this[_0x2f24('0x13')]()),this[_0x2f24('0x19')][_0x2f24('0x12')][_0x2f24('0x7')]();}[_0x2f24('0x1b')](){const _0x2eeec1=this[_0x2f24('0xc')]['get']('initialData')||'';return this[_0x2f24('0x3')]()[_0x2f24('0x6')](()=>this['ui']['init']())[_0x2f24('0x6')](()=>this['data'][_0x2f24('0xb')](_0x2eeec1))[_0x2f24('0x6')](()=>this[_0x2f24('0x16')](_0x2f24('0x1')));}[_0x2f24('0x1a')](){return super[_0x2f24('0x1a')]()[_0x2f24('0x6')](()=>this['ui'][_0x2f24('0x1a')]());}[_0x2f24('0x0')](){this[_0x2f24('0x19')][_0x2f24('0x14')](_0x45e76a=>{const _0x73c363=this[_0x2f24('0x19')][_0x2f24('0x12')][_0x2f24('0x18')](),_0x4a46ca=_0x73c363[_0x2f24('0x1c')](_0x73c363[_0x2f24('0x17')]-0x1);_0x45e76a[_0x2f24('0xd')](_0x4a46ca,_0x2f24('0x5')),this[_0x2f24('0x10')][_0x2f24('0x8')][_0x2f24('0x0')]();});}[_0x2f24('0x13')](){const _0x11f35b=this[_0x2f24('0x10')]['view'],_0x17d42f=_0x11f35b[_0x2f24('0x12')][_0x2f24('0x18')](),_0x48b412=_0x17d42f['getChild'](0x0);_0x17d42f[_0x2f24('0x17')]>0x1||!_0x48b412||'p'!=_0x48b412[_0x2f24('0xa')]?this['placeholderElement']&&(_0x4f956b(_0x11f35b,this[_0x2f24('0xe')]),this[_0x2f24('0xe')]=void 0x0):(_0x2eeba0({'view':_0x11f35b,'element':_0x48b412,'text':this['placeholder'],'keepOnFocus':!0x0}),this[_0x2f24('0xe')]=_0x48b412);}}_0x3c342a(zt,_0x138dbc),_0x3c342a(zt,_0x1038bd),zt[_0x2f24('0xf')]=[_0x1d9194,_0x5a5de7,_0x5ae892,_0x4c2427,_0x2ca3e0,_0x2409b5,_0x209e75];
23
+ const _0x515c=['getRoot','editing','_updatePlaceholder','get','initPlugins','createRoot','document','destroy','create','ready','change','placeholder','childCount','setSelection','change:placeholder','model','getChild','placeholderElement','plugins','low','defaultPlugins','end','assign','focus','config','then'];(function(_0xcc2fb,_0x515c7b){const _0x2cc5fb=function(_0x1b90be){while(--_0x1b90be){_0xcc2fb['push'](_0xcc2fb['shift']());}};_0x2cc5fb(++_0x515c7b);}(_0x515c,0x67));const _0x2cc5=function(_0xcc2fb,_0x515c7b){_0xcc2fb=_0xcc2fb-0x0;let _0x2cc5fb=_0x515c[_0xcc2fb];return _0x2cc5fb;};import{Editor as _0x14fbe8,DataApiMixin as _0x3a8cba}from'ckeditor5/src/core';import _0x5472aa from'./commenteditorui';import{mix as _0x5ecd9b,ObservableMixin as _0x165484}from'ckeditor5/src/utils';import{enablePlaceholder as _0x33adfb,disablePlaceholder as _0x15e22f}from'ckeditor5/src/engine';import{Clipboard as _0x4dd7c8}from'ckeditor5/src/clipboard';import{Enter as _0x3c4590,ShiftEnter as _0x3ba4a9}from'ckeditor5/src/enter';import{SelectAll as _0x19398a}from'ckeditor5/src/select-all';import{Typing as _0x4653ea}from'ckeditor5/src/typing';import{Undo as _0x30d3a9}from'ckeditor5/src/undo';import{Paragraph as _0xb8d232}from'ckeditor5/src/paragraph';export default class zt extends _0x14fbe8{constructor(_0x10e242={}){(_0x10e242=Object[_0x2cc5('0x17')]({},_0x10e242))[_0x2cc5('0x13')]||(_0x10e242[_0x2cc5('0x13')]=zt[_0x2cc5('0x15')]),super(_0x10e242),this['ui']=new _0x5472aa(this),this['set'](_0x2cc5('0xc'),''),this['model'][_0x2cc5('0x7')]['on'](_0x2cc5('0xb'),()=>this[_0x2cc5('0x3')](),{'priority':_0x2cc5('0x14')}),this['on'](_0x2cc5('0xf'),()=>this[_0x2cc5('0x3')]()),this[_0x2cc5('0x10')][_0x2cc5('0x7')][_0x2cc5('0x6')]();}[_0x2cc5('0x9')](){const _0x2806ac=this[_0x2cc5('0x19')][_0x2cc5('0x4')]('initialData')||'';return this[_0x2cc5('0x5')]()[_0x2cc5('0x0')](()=>this['ui']['init']())[_0x2cc5('0x0')](()=>this['data']['init'](_0x2806ac))[_0x2cc5('0x0')](()=>this['fire'](_0x2cc5('0xa')));}[_0x2cc5('0x8')](){return super[_0x2cc5('0x8')]()[_0x2cc5('0x0')](()=>this['ui'][_0x2cc5('0x8')]());}[_0x2cc5('0x18')](){this['model'][_0x2cc5('0xb')](_0x34339e=>{const _0x3ba4cb=this[_0x2cc5('0x10')][_0x2cc5('0x7')][_0x2cc5('0x1')](),_0x1fc1c1=_0x3ba4cb[_0x2cc5('0x11')](_0x3ba4cb[_0x2cc5('0xd')]-0x1);_0x34339e[_0x2cc5('0xe')](_0x1fc1c1,_0x2cc5('0x16')),this['editing']['view']['focus']();});}[_0x2cc5('0x3')](){const _0x4c5745=this[_0x2cc5('0x2')]['view'],_0x357f81=_0x4c5745[_0x2cc5('0x7')][_0x2cc5('0x1')](),_0x52b2ac=_0x357f81['getChild'](0x0);_0x357f81['childCount']>0x1||!_0x52b2ac||'p'!=_0x52b2ac['name']?this['placeholderElement']&&(_0x15e22f(_0x4c5745,this[_0x2cc5('0x12')]),this[_0x2cc5('0x12')]=void 0x0):(_0x33adfb({'view':_0x4c5745,'element':_0x52b2ac,'text':this[_0x2cc5('0xc')],'keepOnFocus':!0x0}),this[_0x2cc5('0x12')]=_0x52b2ac);}}_0x5ecd9b(zt,_0x165484),_0x5ecd9b(zt,_0x3a8cba),zt[_0x2cc5('0x15')]=[_0x4dd7c8,_0x3c4590,_0x3ba4a9,_0x19398a,_0x4653ea,_0x30d3a9,_0xb8d232];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x27af=['isFocused','ready','locale','editable','name','view','editor','document','setEditableElement','rootName','bind','init','attachDomRoot','destroy','editing','getRoot','element'];(function(_0x170850,_0x27afaa){const _0x9d0fb5=function(_0x4ffd63){while(--_0x4ffd63){_0x170850['push'](_0x170850['shift']());}};_0x9d0fb5(++_0x27afaa);}(_0x27af,0x6a));const _0x9d0f=function(_0x170850,_0x27afaa){_0x170850=_0x170850-0x0;let _0x9d0fb5=_0x27af[_0x170850];return _0x9d0fb5;};import{EditorUI as _0x14fc54}from'ckeditor5/src/core';import _0x54290f from'./commenteditoruiview';export default class wt extends _0x14fc54{constructor(_0x1aab1c){super(_0x1aab1c),this['view']=new _0x54290f(_0x1aab1c[_0x9d0f('0xf')],_0x1aab1c[_0x9d0f('0xa')][_0x9d0f('0x1')]);}get[_0x9d0f('0xc')](){return this[_0x9d0f('0x1')]['element'];}[_0x9d0f('0x7')](){const _0x437458=this[_0x9d0f('0x2')][_0x9d0f('0xa')]['view'],_0x2635a6=this[_0x9d0f('0x1')][_0x9d0f('0x10')],_0xcb508e=_0x437458[_0x9d0f('0x3')][_0x9d0f('0xb')]();_0x2635a6['name']=_0xcb508e[_0x9d0f('0x5')],this[_0x9d0f('0x1')]['render']();const _0x1b536c=_0x2635a6[_0x9d0f('0xc')];this[_0x9d0f('0x4')](_0x2635a6[_0x9d0f('0x0')],_0x1b536c),this['view'][_0x9d0f('0x10')][_0x9d0f('0x6')](_0x9d0f('0xd'))['to'](this['focusTracker']),_0x437458[_0x9d0f('0x8')](_0x1b536c),this['fire'](_0x9d0f('0xe'));}['destroy'](){this[_0x9d0f('0x1')][_0x9d0f('0x9')](),super[_0x9d0f('0x9')]();}}
23
+ const _0x21f2=['attachDomRoot','isFocused','getRoot','focusTracker','editing','destroy','editor','element','rootName','ready','locale','fire','name','setEditableElement','view','init','editable'];(function(_0x5e8c71,_0x21f2b6){const _0x56c392=function(_0x522b60){while(--_0x522b60){_0x5e8c71['push'](_0x5e8c71['shift']());}};_0x56c392(++_0x21f2b6);}(_0x21f2,0x1f1));const _0x56c3=function(_0x5e8c71,_0x21f2b6){_0x5e8c71=_0x5e8c71-0x0;let _0x56c392=_0x21f2[_0x5e8c71];return _0x56c392;};import{EditorUI as _0x23458e}from'ckeditor5/src/core';import _0x4d9e86 from'./commenteditoruiview';export default class wt extends _0x23458e{constructor(_0x64abf){super(_0x64abf),this[_0x56c3('0xa')]=new _0x4d9e86(_0x64abf[_0x56c3('0x6')],_0x64abf[_0x56c3('0x0')][_0x56c3('0xa')]);}get[_0x56c3('0x3')](){return this[_0x56c3('0xa')]['element'];}[_0x56c3('0xb')](){const _0x5666ca=this[_0x56c3('0x2')][_0x56c3('0x0')]['view'],_0x18500b=this['view'][_0x56c3('0xc')],_0x1bab1b=_0x5666ca['document'][_0x56c3('0xf')]();_0x18500b[_0x56c3('0x8')]=_0x1bab1b[_0x56c3('0x4')],this['view']['render']();const _0x4edccc=_0x18500b['element'];this[_0x56c3('0x9')](_0x18500b[_0x56c3('0x8')],_0x4edccc),this[_0x56c3('0xa')][_0x56c3('0xc')]['bind'](_0x56c3('0xe'))['to'](this[_0x56c3('0x10')]),_0x5666ca[_0x56c3('0xd')](_0x4edccc),this[_0x56c3('0x7')](_0x56c3('0x5'));}[_0x56c3('0x1')](){this[_0x56c3('0xa')][_0x56c3('0x1')](),super[_0x56c3('0x1')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x17dd=['_createVoiceLabel','comment','presentation','extendTemplate','ck-voice-label','ck-editor__main','add','ck-editor','ck-rounded-corners','main','render','ck-reset','text','ck-comment__input','uiLanguageDirection','editable','focus','_voiceLabelView','uiLanguage','setTemplate'];(function(_0x548df,_0x17dda6){const _0x782528=function(_0x601c80){while(--_0x601c80){_0x548df['push'](_0x548df['shift']());}};_0x782528(++_0x17dda6);}(_0x17dd,0x65));const _0x7825=function(_0x548df,_0x17dda6){_0x548df=_0x548df-0x0;let _0x782528=_0x17dd[_0x548df];return _0x782528;};import{InlineEditableUIView as _0x2ac59e,EditorUIView as _0x52cd44,LabelView as _0x4e306f}from'ckeditor5/src/ui';import{uid as _0x12c406}from'ckeditor5/src/utils';import{getTranslation as _0x202806}from'../../../utils/common-translations';export default class Bt extends _0x52cd44{constructor(_0x3d70a3,_0x3c77ff){super(_0x3d70a3);const _0x42ddb6=_0x12c406();this[_0x7825('0x8')]=this['createCollection'](),this[_0x7825('0xe')]=new _0x2ac59e(_0x3d70a3,_0x3c77ff),this['_voiceLabelView']=this[_0x7825('0x13')](_0x42ddb6,_0x3d70a3),this[_0x7825('0x12')]({'tag':'div','attributes':{'class':[_0x7825('0xa'),_0x7825('0x6'),_0x7825('0x7'),_0x7825('0xc')],'role':_0x7825('0x0'),'dir':_0x3d70a3[_0x7825('0xd')],'lang':_0x3d70a3[_0x7825('0x11')],'aria-labelledby':'cke-editor__aria-label_'+_0x42ddb6},'children':[this[_0x7825('0x10')],{'tag':'div','attributes':{'class':_0x7825('0x4'),'role':_0x7825('0x1')},'children':this['main']}]});}['render'](){super[_0x7825('0x9')](),this[_0x7825('0x8')][_0x7825('0x5')](this[_0x7825('0xe')]);}[_0x7825('0xf')](){this[_0x7825('0xe')]['element'][_0x7825('0xf')]();}['_createVoiceLabel'](_0x4d6f89,_0x56125c){const _0xc85083=new _0x4e306f();return _0xc85083[_0x7825('0xb')]=_0x202806(_0x56125c,'Comment\x20editor'),_0xc85083[_0x7825('0x2')]({'attributes':{'id':'ck-editor__aria-label_'+_0x4d6f89,'class':_0x7825('0x3')}}),_0xc85083;}}
23
+ const _0x42fb=['comment','_createVoiceLabel','ck-editor__main','cke-editor__aria-label_','uiLanguageDirection','text','ck-comment__input','element','div','editable','_voiceLabelView','focus','createCollection','uiLanguage','Comment\x20editor','main','presentation','ck-editor__aria-label_','add','render'];(function(_0x3bd4fd,_0x42fb2b){const _0x521206=function(_0x272375){while(--_0x272375){_0x3bd4fd['push'](_0x3bd4fd['shift']());}};_0x521206(++_0x42fb2b);}(_0x42fb,0x15f));const _0x5212=function(_0x3bd4fd,_0x42fb2b){_0x3bd4fd=_0x3bd4fd-0x0;let _0x521206=_0x42fb[_0x3bd4fd];return _0x521206;};import{InlineEditableUIView as _0x59267f,EditorUIView as _0x48ff4f,LabelView as _0x76f3b4}from'ckeditor5/src/ui';import{uid as _0x7e1add}from'ckeditor5/src/utils';import{getTranslation as _0x2402e6}from'../../../utils/common-translations';export default class Bt extends _0x48ff4f{constructor(_0x4f653f,_0xcfb97a){super(_0x4f653f);const _0x5efad3=_0x7e1add();this[_0x5212('0x4')]=this[_0x5212('0x1')](),this[_0x5212('0x12')]=new _0x59267f(_0x4f653f,_0xcfb97a),this[_0x5212('0x13')]=this[_0x5212('0xa')](_0x5efad3,_0x4f653f),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners',_0x5212('0xf')],'role':_0x5212('0x9'),'dir':_0x4f653f[_0x5212('0xd')],'lang':_0x4f653f[_0x5212('0x2')],'aria-labelledby':_0x5212('0xc')+_0x5efad3},'children':[this[_0x5212('0x13')],{'tag':_0x5212('0x11'),'attributes':{'class':_0x5212('0xb'),'role':_0x5212('0x5')},'children':this[_0x5212('0x4')]}]});}['render'](){super[_0x5212('0x8')](),this[_0x5212('0x4')][_0x5212('0x7')](this[_0x5212('0x12')]);}[_0x5212('0x0')](){this[_0x5212('0x12')][_0x5212('0x10')]['focus']();}[_0x5212('0xa')](_0x1795d5,_0x1b799f){const _0x309529=new _0x76f3b4();return _0x309529[_0x5212('0xe')]=_0x2402e6(_0x1b799f,_0x5212('0x3')),_0x309529['extendTemplate']({'attributes':{'id':_0x5212('0x6')+_0x1795d5,'class':'ck-voice-label'}}),_0x309529;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x54cd=['_isAttached','view','getComment','stopListening','addComment','update','removeComment','destroy','remove','_localUser','listenTo','model','updateComment'];(function(_0xe4046f,_0x54cdd3){var _0x31984a=function(_0x26c78d){while(--_0x26c78d){_0xe4046f['push'](_0xe4046f['shift']());}};_0x31984a(++_0x54cdd3);}(_0x54cd,0x9f));var _0x3198=function(_0xe4046f,_0x54cdd3){_0xe4046f=_0xe4046f-0x0;var _0x31984a=_0x54cd[_0xe4046f];return _0x31984a;};import{ObservableMixin as _0x3c7efa,mix as _0x244de2}from'ckeditor5/src/utils';export default class et{constructor(_0xf0e2f3,_0x49d8fb){this['model']=_0xf0e2f3,this[_0x3198('0x8')][_0x3198('0xa')]=!0x0,this['view']=_0x49d8fb,this[_0x3198('0x7')](_0x49d8fb,'removeCommentThread',()=>this[_0x3198('0x5')]()),this['listenTo'](_0x49d8fb,'addComment',(_0x19a024,_0xe2b5fe)=>this['addComment'](_0xe2b5fe)),this[_0x3198('0x7')](_0x49d8fb,_0x3198('0x9'),(_0x302434,_0x5dc44a,_0x68c04c)=>this[_0x3198('0x9')](_0x5dc44a,_0x68c04c)),this['listenTo'](_0x49d8fb,_0x3198('0x3'),(_0x2bdd90,_0x1b23d1)=>this[_0x3198('0x3')](_0x1b23d1));}[_0x3198('0x5')](){this[_0x3198('0x8')]['remove']();}[_0x3198('0x1')](_0x19e7d8){this['model']['addComment']({'content':_0x19e7d8,'authorId':this[_0x3198('0xb')][_0x3198('0x6')]['id']});}[_0x3198('0x9')](_0x481bb5,_0xc26163){this['model'][_0x3198('0xc')](_0x481bb5)[_0x3198('0x2')]({'content':_0xc26163});}[_0x3198('0x3')](_0xe53bd1){this[_0x3198('0x8')][_0x3198('0xc')](_0xe53bd1)[_0x3198('0x5')]();}[_0x3198('0x4')](){this[_0x3198('0x0')](),this['model']['_isAttached']=!0x1;}}_0x244de2(et,_0x3c7efa);
23
+ var _0x32af=['updateComment','removeCommentThread','getComment','model','_isAttached','destroy','update','_localUser','removeComment','addComment','remove','view','listenTo'];(function(_0x7d02df,_0x32af67){var _0x57deb6=function(_0x3b10b0){while(--_0x3b10b0){_0x7d02df['push'](_0x7d02df['shift']());}};_0x57deb6(++_0x32af67);}(_0x32af,0x84));var _0x57de=function(_0x7d02df,_0x32af67){_0x7d02df=_0x7d02df-0x0;var _0x57deb6=_0x32af[_0x7d02df];return _0x57deb6;};import{ObservableMixin as _0x3c4fdd,mix as _0x2e6dac}from'ckeditor5/src/utils';export default class et{constructor(_0x4091a8,_0x349c4b){this['model']=_0x4091a8,this['model'][_0x57de('0x2')]=!0x0,this[_0x57de('0x9')]=_0x349c4b,this[_0x57de('0xa')](_0x349c4b,_0x57de('0xc'),()=>this[_0x57de('0x8')]()),this[_0x57de('0xa')](_0x349c4b,_0x57de('0x7'),(_0x24756b,_0x1b430c)=>this[_0x57de('0x7')](_0x1b430c)),this[_0x57de('0xa')](_0x349c4b,_0x57de('0xb'),(_0x2237ff,_0x1beb38,_0x338da0)=>this[_0x57de('0xb')](_0x1beb38,_0x338da0)),this[_0x57de('0xa')](_0x349c4b,'removeComment',(_0x82557c,_0x5594f3)=>this['removeComment'](_0x5594f3));}[_0x57de('0x8')](){this['model']['remove']();}[_0x57de('0x7')](_0x5306e9){this['model']['addComment']({'content':_0x5306e9,'authorId':this[_0x57de('0x9')][_0x57de('0x5')]['id']});}[_0x57de('0xb')](_0x2fdbf5,_0x1c5de7){this['model'][_0x57de('0x0')](_0x2fdbf5)[_0x57de('0x4')]({'content':_0x1c5de7});}[_0x57de('0x6')](_0x5072c0){this[_0x57de('0x1')][_0x57de('0x0')](_0x5072c0)[_0x57de('0x8')]();}[_0x57de('0x3')](){this['stopListening'](),this[_0x57de('0x1')][_0x57de('0x2')]=!0x1;}}_0x2e6dac(et,_0x3c4fdd);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2117=['fire','showInput','disabledSubmit','removeComment','CommentView','commentsListView','set','destroy','commentThreadInputView','_localUser','_createCommentThreadInputView','isReadOnly','_config','locale','removeCommentThread','value','bind','Reply...','commentInputView','submit','isActive','stop','_model','element','Write\x20a\x20comment...','length','addComment','cancel','isDirty','delegate','focus','placeholder','updateComment'];(function(_0xce43f9,_0x2117fa){const _0xc24d39=function(_0x4bd5ce){while(--_0x4bd5ce){_0xce43f9['push'](_0xce43f9['shift']());}};_0xc24d39(++_0x2117fa);}(_0x2117,0x9a));const _0xc24d=function(_0xce43f9,_0x2117fa){_0xce43f9=_0xce43f9-0x0;let _0xc24d39=_0x2117[_0xce43f9];return _0xc24d39;};import{View as _0x30525d}from'ckeditor5/src/ui';import _0x879fd4 from'./commentthreadinputview';import _0xcfbe91 from'./commentslistview';import{getTranslation as _0x1cd610}from'../../../utils/common-translations';export default class Rt extends _0x30525d{constructor(_0x12c210,_0xf176a9,_0x1d4b9d,_0x4d4000){super(_0x12c210),this[_0xc24d('0x11')]('isActive',!0x1),this['set'](_0xc24d('0x6'),!0x1),this[_0xc24d('0x0')]=_0xf176a9,this[_0xc24d('0x14')]=_0x1d4b9d,this['_config']=_0x4d4000,this['commentsListView']=new _0xcfbe91(_0x12c210,_0xf176a9,Object['assign']({'CommentView':this[_0xc24d('0x17')][_0xc24d('0xf')]},_0x4d4000)),this['commentsListView'][_0xc24d('0x7')]('removeComment')['to'](this),this[_0xc24d('0x10')]['delegate'](_0xc24d('0xa'))['to'](this),this[_0xc24d('0x10')][_0xc24d('0x1b')](_0xc24d('0x1f'))['to'](this),this['set'](_0xc24d('0x3'),this[_0xc24d('0x10')][_0xc24d('0x3')]),this[_0xc24d('0x1b')]('length')['to'](this['commentsListView'],_0xc24d('0x3')),this[_0xc24d('0x13')]=this['_createCommentThreadInputView'](),this['on'](_0xc24d('0xe'),()=>this['focus']()),this['bind'](_0xc24d('0x6'))['to'](this[_0xc24d('0x10')],'hasDirtyComment',this[_0xc24d('0x13')][_0xc24d('0x1d')],'value',(_0x212be5,_0x589a95)=>_0x212be5||!!_0x589a95);}[_0xc24d('0x8')](){this[_0xc24d('0x1')][_0xc24d('0x8')]();}[_0xc24d('0x12')](){this['isDirty']=!0x1,this['commentsListView'][_0xc24d('0x12')](),this['commentThreadInputView'][_0xc24d('0x12')](),super['destroy']();}[_0xc24d('0x15')](){const _0x3ec039=new _0x879fd4(this[_0xc24d('0x18')],this['_localUser'],this[_0xc24d('0x17')]['editorConfig']),_0x36ea8f=_0x3ec039[_0xc24d('0x1d')];return _0x3ec039[_0xc24d('0x1b')](_0xc24d('0xc'))['to'](this,_0xc24d('0x1f'),this['_model'],_0xc24d('0x16'),_0x36ea8f,_0xc24d('0x1a'),(_0x118773,_0x3bf92d,_0x21d5dc)=>!!_0x21d5dc||_0x118773&&!_0x3bf92d),_0x36ea8f[_0xc24d('0x1b')](_0xc24d('0x9'))['to'](this,_0xc24d('0x3'),_0x384bf9=>_0x1cd610(this[_0xc24d('0x18')],_0x384bf9?_0xc24d('0x1c'):_0xc24d('0x2'))),_0x36ea8f['on'](_0xc24d('0x1e'),(_0x298b6d,_0x1f6c9e)=>{this['fire'](_0xc24d('0x4'),_0x1f6c9e);}),_0x36ea8f['on'](_0xc24d('0x5'),()=>{this[_0xc24d('0x8')]();}),_0x36ea8f[_0xc24d('0x1b')](_0xc24d('0xd'))['to'](this['_model'],_0xc24d('0x16')),_0x36ea8f['on'](_0xc24d('0x5'),_0x43495a=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x43495a[_0xc24d('0x20')]());}),this['on']('change:isActive',(_0x3676e9,_0x2ce541,_0x375950)=>{_0x375950||this[_0xc24d('0x3')]||_0x36ea8f['value']||this[_0xc24d('0xb')](_0xc24d('0x19'));}),_0x3ec039;}}
23
+ const _0x36b5=['submit','isDirty','commentInputView','updateComment','Reply...','isReadOnly','_model','removeCommentThread','assign','hasDirtyComment','delegate','destroy','set','commentsListView','isActive','length','disabledSubmit','_localUser','placeholder','locale','fire','_config','commentThreadInputView','bind','removeComment','value','stop','focus','Write\x20a\x20comment...','editorConfig'];(function(_0x3100a9,_0x36b576){const _0x13d953=function(_0x2fb421){while(--_0x2fb421){_0x3100a9['push'](_0x3100a9['shift']());}};_0x13d953(++_0x36b576);}(_0x36b5,0x132));const _0x13d9=function(_0x3100a9,_0x36b576){_0x3100a9=_0x3100a9-0x0;let _0x13d953=_0x36b5[_0x3100a9];return _0x13d953;};import{View as _0x2f09f4}from'ckeditor5/src/ui';import _0x4aa580 from'./commentthreadinputview';import _0x5054a9 from'./commentslistview';import{getTranslation as _0x1f9d51}from'../../../utils/common-translations';export default class Rt extends _0x2f09f4{constructor(_0x516ae9,_0x41aa5e,_0x2d7ed8,_0xe4ee21){super(_0x516ae9),this['set'](_0x13d9('0x8'),!0x1),this[_0x13d9('0x6')](_0x13d9('0x19'),!0x1),this[_0x13d9('0x0')]=_0x41aa5e,this[_0x13d9('0xb')]=_0x2d7ed8,this[_0x13d9('0xf')]=_0xe4ee21,this['commentsListView']=new _0x5054a9(_0x516ae9,_0x41aa5e,Object[_0x13d9('0x2')]({'CommentView':this[_0x13d9('0xf')]['CommentView']},_0xe4ee21)),this[_0x13d9('0x7')][_0x13d9('0x4')](_0x13d9('0x12'))['to'](this),this[_0x13d9('0x7')][_0x13d9('0x4')](_0x13d9('0x1b'))['to'](this),this[_0x13d9('0x7')]['bind'](_0x13d9('0x8'))['to'](this),this[_0x13d9('0x6')](_0x13d9('0x9'),this[_0x13d9('0x7')]['length']),this[_0x13d9('0x11')]('length')['to'](this[_0x13d9('0x7')],_0x13d9('0x9')),this[_0x13d9('0x10')]=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this[_0x13d9('0x15')]()),this[_0x13d9('0x11')](_0x13d9('0x19'))['to'](this[_0x13d9('0x7')],_0x13d9('0x3'),this[_0x13d9('0x10')]['commentInputView'],'value',(_0x2d6304,_0x3397bc)=>_0x2d6304||!!_0x3397bc);}[_0x13d9('0x15')](){this['element'][_0x13d9('0x15')]();}[_0x13d9('0x5')](){this[_0x13d9('0x19')]=!0x1,this[_0x13d9('0x7')][_0x13d9('0x5')](),this[_0x13d9('0x10')][_0x13d9('0x5')](),super[_0x13d9('0x5')]();}['_createCommentThreadInputView'](){const _0x2d2d59=new _0x4aa580(this[_0x13d9('0xd')],this['_localUser'],this[_0x13d9('0xf')][_0x13d9('0x17')]),_0x1fb65e=_0x2d2d59[_0x13d9('0x1a')];return _0x2d2d59[_0x13d9('0x11')]('showInput')['to'](this,'isActive',this[_0x13d9('0x0')],_0x13d9('0x1d'),_0x1fb65e,_0x13d9('0x13'),(_0x56a1cf,_0x24df6f,_0x49c09a)=>!!_0x49c09a||_0x56a1cf&&!_0x24df6f),_0x1fb65e[_0x13d9('0x11')](_0x13d9('0xc'))['to'](this,_0x13d9('0x9'),_0x356927=>_0x1f9d51(this[_0x13d9('0xd')],_0x356927?_0x13d9('0x1c'):_0x13d9('0x16'))),_0x1fb65e['on'](_0x13d9('0x18'),(_0x546896,_0x843701)=>{this[_0x13d9('0xe')]('addComment',_0x843701);}),_0x1fb65e['on']('cancel',()=>{this['focus']();}),_0x1fb65e['bind'](_0x13d9('0xa'))['to'](this[_0x13d9('0x0')],_0x13d9('0x1d')),_0x1fb65e['on']('cancel',_0x597aa2=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x597aa2[_0x13d9('0x14')]());}),this['on']('change:isActive',(_0x295cf6,_0x4bb786,_0x328e2b)=>{_0x328e2b||this['length']||_0x1fb65e[_0x13d9('0x13')]||this['fire'](_0x13d9('0x1'));}),_0x2d2d59;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x22af=['_createCommentInputView','fire','_createCommentContentView','disabledSubmit','focus','content','initialData','editorConfig','createCollection','switchToDisplayMode','switchToEditMode','isCollapsed','bind','_model','_config','submit','maxCommentCharsWhenCollapsed','remove','collapse','once','destroy','isEditMode','add','value','locale','isReadOnly','editorReady','visibleView','createEditor','element','updateComment','cancel'];(function(_0x18a033,_0x22af8d){const _0x2200bd=function(_0x3ea167){while(--_0x3ea167){_0x18a033['push'](_0x18a033['shift']());}};_0x2200bd(++_0x22af8d);}(_0x22af,0xcb));const _0x2200=function(_0x18a033,_0x22af8d){_0x18a033=_0x18a033-0x0;let _0x2200bd=_0x22af[_0x18a033];return _0x2200bd;};import{View as _0x2784ac}from'ckeditor5/src/ui';import{trimHtml as _0x1edbcb}from'ckeditor5-collaboration/src/collaboration-core';import _0x21db5f from'./commentcontentview';import _0x25a462 from'./commentinputview';export default class Vt extends _0x2784ac{constructor(_0x2e09f5,_0x338e7a,_0x198221){super(_0x2e09f5),this[_0x2200('0x2')]=_0x338e7a,this[_0x2200('0x3')]=_0x198221,this['set'](_0x2200('0xa'),!0x1),this['set'](_0x2200('0x0'),!0x0),this[_0x2200('0x10')]=this[_0x2200('0x1d')](),this[_0x2200('0x10')][_0x2200('0xb')](this[_0x2200('0x17')]());}['expand'](){this[_0x2200('0x0')]=!0x1;}[_0x2200('0x7')](){this[_0x2200('0xa')]||(this[_0x2200('0x0')]=!0x0);}[_0x2200('0x19')](){this[_0x2200('0x12')][_0x2200('0x19')]();}async['destroy'](){await this[_0x2200('0x10')]['get'](0x0)[_0x2200('0x9')](),super['destroy']();}[_0x2200('0x1f')](){this[_0x2200('0xa')]||(this['isEditMode']=!0x0,this[_0x2200('0x10')][_0x2200('0x6')](0x0)['destroy'](),this['visibleView'][_0x2200('0xb')](this[_0x2200('0x15')]()));}[_0x2200('0x1e')](){this[_0x2200('0xa')]&&(this[_0x2200('0xa')]=!0x1,this[_0x2200('0x10')]['remove'](0x0)[_0x2200('0x9')](),this[_0x2200('0x10')][_0x2200('0xb')](this[_0x2200('0x17')]()));}[_0x2200('0x17')](){const _0x5ec5a2=new _0x21db5f(this[_0x2200('0xd')]);return _0x5ec5a2[_0x2200('0x1')]('content')['to'](this[_0x2200('0x2')],_0x2200('0x1a'),this,_0x2200('0x0'),(_0x5d9d33,_0x46855d)=>_0x46855d?_0x1edbcb(_0x5d9d33,{'limit':this[_0x2200('0x3')][_0x2200('0x5')]}):_0x5d9d33),_0x5ec5a2;}[_0x2200('0x15')](){this['_config']['editorConfig']||(this[_0x2200('0x3')][_0x2200('0x1c')]={}),this['_config'][_0x2200('0x1c')][_0x2200('0x1b')]=this['_model'][_0x2200('0x1a')];const _0x191885=new _0x25a462(this['locale'],this[_0x2200('0x3')]['editorConfig']);return _0x191885[_0x2200('0xc')]=this[_0x2200('0x2')]['content'],_0x191885[_0x2200('0x1')](_0x2200('0x18'))['to'](this['_model'],_0x2200('0xe')),_0x191885['on'](_0x2200('0x4'),(_0x482e9c,_0x4e6ec3)=>{this[_0x2200('0x16')](_0x2200('0x13'),this[_0x2200('0x2')]['id'],_0x4e6ec3),this[_0x2200('0x1e')](),this[_0x2200('0x19')]();}),_0x191885['on'](_0x2200('0x14'),()=>{this[_0x2200('0x1e')](),this[_0x2200('0x19')]();}),_0x191885[_0x2200('0x8')](_0x2200('0xf'),()=>{_0x191885[_0x2200('0x19')]();}),_0x191885[_0x2200('0x11')](),_0x191885;}}
23
+ const _0x14bf=['switchToDisplayMode','editorReady','locale','updateComment','content','bind','get','createCollection','isEditMode','createEditor','maxCommentCharsWhenCollapsed','_config','focus','element','isCollapsed','destroy','_model','isReadOnly','fire','visibleView','submit','_createCommentInputView','cancel','editorConfig','value','set','_createCommentContentView','expand'];(function(_0x48b302,_0x14bfd7){const _0x20ec2c=function(_0x2da159){while(--_0x2da159){_0x48b302['push'](_0x48b302['shift']());}};_0x20ec2c(++_0x14bfd7);}(_0x14bf,0x195));const _0x20ec=function(_0x48b302,_0x14bfd7){_0x48b302=_0x48b302-0x0;let _0x20ec2c=_0x14bf[_0x48b302];return _0x20ec2c;};import{View as _0x381491}from'ckeditor5/src/ui';import{trimHtml as _0x7671d1}from'ckeditor5-collaboration/src/collaboration-core';import _0x3c1ae4 from'./commentcontentview';import _0x98b830 from'./commentinputview';export default class Vt extends _0x381491{constructor(_0xdf59cf,_0x26572a,_0x506683){super(_0xdf59cf),this[_0x20ec('0x3')]=_0x26572a,this['_config']=_0x506683,this[_0x20ec('0xc')]('isEditMode',!0x1),this[_0x20ec('0xc')]('isCollapsed',!0x0),this[_0x20ec('0x6')]=this[_0x20ec('0x16')](),this[_0x20ec('0x6')]['add'](this['_createCommentContentView']());}[_0x20ec('0xe')](){this['isCollapsed']=!0x1;}['collapse'](){this[_0x20ec('0x17')]||(this[_0x20ec('0x1')]=!0x0);}[_0x20ec('0x1b')](){this[_0x20ec('0x0')][_0x20ec('0x1b')]();}async[_0x20ec('0x2')](){await this['visibleView'][_0x20ec('0x15')](0x0)['destroy'](),super[_0x20ec('0x2')]();}['switchToEditMode'](){this['isEditMode']||(this[_0x20ec('0x17')]=!0x0,this[_0x20ec('0x6')]['remove'](0x0)[_0x20ec('0x2')](),this[_0x20ec('0x6')]['add'](this[_0x20ec('0x8')]()));}[_0x20ec('0xf')](){this[_0x20ec('0x17')]&&(this['isEditMode']=!0x1,this[_0x20ec('0x6')]['remove'](0x0)['destroy'](),this[_0x20ec('0x6')]['add'](this['_createCommentContentView']()));}[_0x20ec('0xd')](){const _0x39c45c=new _0x3c1ae4(this[_0x20ec('0x11')]);return _0x39c45c[_0x20ec('0x14')](_0x20ec('0x13'))['to'](this[_0x20ec('0x3')],_0x20ec('0x13'),this,_0x20ec('0x1'),(_0x12d459,_0x20fb40)=>_0x20fb40?_0x7671d1(_0x12d459,{'limit':this[_0x20ec('0x1a')][_0x20ec('0x19')]}):_0x12d459),_0x39c45c;}['_createCommentInputView'](){this['_config'][_0x20ec('0xa')]||(this[_0x20ec('0x1a')]['editorConfig']={}),this[_0x20ec('0x1a')][_0x20ec('0xa')]['initialData']=this[_0x20ec('0x3')][_0x20ec('0x13')];const _0x5e54b1=new _0x98b830(this['locale'],this['_config']['editorConfig']);return _0x5e54b1[_0x20ec('0xb')]=this['_model'][_0x20ec('0x13')],_0x5e54b1[_0x20ec('0x14')]('disabledSubmit')['to'](this[_0x20ec('0x3')],_0x20ec('0x4')),_0x5e54b1['on'](_0x20ec('0x7'),(_0x49bbfb,_0x2b24b1)=>{this[_0x20ec('0x5')](_0x20ec('0x12'),this[_0x20ec('0x3')]['id'],_0x2b24b1),this['switchToDisplayMode'](),this[_0x20ec('0x1b')]();}),_0x5e54b1['on'](_0x20ec('0x9'),()=>{this['switchToDisplayMode'](),this['focus']();}),_0x5e54b1['once'](_0x20ec('0x10'),()=>{_0x5e54b1['focus']();}),_0x5e54b1[_0x20ec('0x18')](),_0x5e54b1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x228c=['bindTemplate','NUMBER_OF_COMMENTS','set','setTemplate'];(function(_0x4c05ff,_0x228c40){const _0x3a697f=function(_0x173300){while(--_0x173300){_0x4c05ff['push'](_0x4c05ff['shift']());}};_0x3a697f(++_0x228c40);}(_0x228c,0x1a3));const _0x3a69=function(_0x4c05ff,_0x228c40){_0x4c05ff=_0x4c05ff-0x0;let _0x3a697f=_0x228c[_0x4c05ff];return _0x3a697f;};import{View as _0x74fd08}from'ckeditor5/src/ui';import{getTranslation as _0x30074e}from'../../../utils/common-translations';export default class Nt extends _0x74fd08{constructor(_0x237e9f){super(_0x237e9f);const _0x2b422c=this[_0x3a69('0x1')];this[_0x3a69('0x3')]('count'),this[_0x3a69('0x0')]({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x2b422c['to']('count',_0x2d6df1=>_0x30074e(_0x237e9f,_0x3a69('0x2'),_0x2d6df1))}]});}}
23
+ const _0x55a9=['bindTemplate','set','count','setTemplate','ck-thread__comment-count','NUMBER_OF_COMMENTS'];(function(_0x1548e5,_0x55a955){const _0xfd0831=function(_0x63bb2b){while(--_0x63bb2b){_0x1548e5['push'](_0x1548e5['shift']());}};_0xfd0831(++_0x55a955);}(_0x55a9,0xbd));const _0xfd08=function(_0x1548e5,_0x55a955){_0x1548e5=_0x1548e5-0x0;let _0xfd0831=_0x55a9[_0x1548e5];return _0xfd0831;};import{View as _0x22185f}from'ckeditor5/src/ui';import{getTranslation as _0x47e6db}from'../../../utils/common-translations';export default class Nt extends _0x22185f{constructor(_0x4b8bee){super(_0x4b8bee);const _0x495508=this[_0xfd08('0x3')];this[_0xfd08('0x4')](_0xfd08('0x5')),this[_0xfd08('0x0')]({'tag':'li','attributes':{'class':_0xfd08('0x1')},'children':[{'text':_0x495508['to']('count',_0x1b8fc5=>_0x47e6db(_0x4b8bee,_0xfd08('0x2'),_0x1b8fc5))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4446=['set','div','ck-annotation__content','element','content','setTemplate'];(function(_0x5e913f,_0x4446a9){var _0x3ac69b=function(_0x52cd2d){while(--_0x52cd2d){_0x5e913f['push'](_0x5e913f['shift']());}};_0x3ac69b(++_0x4446a9);}(_0x4446,0x1f1));var _0x3ac6=function(_0x5e913f,_0x4446a9){_0x5e913f=_0x5e913f-0x0;var _0x3ac69b=_0x4446[_0x5e913f];return _0x3ac69b;};import{View as _0x4b6b63}from'ckeditor5/src/ui';export default class Et extends _0x4b6b63{constructor(_0x2a75b8){super(_0x2a75b8),this[_0x3ac6('0x1')](_0x3ac6('0x5'),''),this[_0x3ac6('0x0')]({'tag':_0x3ac6('0x2'),'attributes':{'class':['ck-comment__content',_0x3ac6('0x3')]}});}['render'](){super['render'](),this['on']('change:content',(_0x5bef50,_0x5bb4de,_0x55a71e)=>{this[_0x3ac6('0x4')]['innerHTML']=_0x55a71e;}),this[_0x3ac6('0x4')]['innerHTML']=this[_0x3ac6('0x5')];}}
23
+ var _0x5334=['render','ck-comment__content','content','innerHTML','setTemplate','change:content','ck-annotation__content','div','set','element'];(function(_0x24a75c,_0x533408){var _0x5803ce=function(_0x3ce5d5){while(--_0x3ce5d5){_0x24a75c['push'](_0x24a75c['shift']());}};_0x5803ce(++_0x533408);}(_0x5334,0xfe));var _0x5803=function(_0x24a75c,_0x533408){_0x24a75c=_0x24a75c-0x0;var _0x5803ce=_0x5334[_0x24a75c];return _0x5803ce;};import{View as _0x2612d8}from'ckeditor5/src/ui';export default class Et extends _0x2612d8{constructor(_0x4bbf1e){super(_0x4bbf1e),this[_0x5803('0x4')](_0x5803('0x8'),''),this[_0x5803('0x0')]({'tag':_0x5803('0x3'),'attributes':{'class':[_0x5803('0x7'),_0x5803('0x2')]}});}[_0x5803('0x6')](){super[_0x5803('0x6')](),this['on'](_0x5803('0x1'),(_0x27aa9e,_0x53c5b7,_0x364514)=>{this[_0x5803('0x5')][_0x5803('0x9')]=_0x364514;}),this['element'][_0x5803('0x9')]=this['content'];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x33ae=['disabledSubmit','create','initialData','change','view','Esc','value','label','editorReady','_editorConfig','ck-comment__input-wrapper','focus','editor','set','trim','tab','high','focusTracker','execute','_createCancelButton','shift\x20+\x20tab','length','element','_isDestroyed','insertBefore','_editorCreationPromise','bind','Submit','add','extendTemplate','ck-comment__input-actions--submit','stop','render','cancelButtonView','isEnabled','focusNext','document','focusPrevious','div','submitButtonView','_initializeFocusCycling','keystrokes','check','then','low','Reply...','cancel','showButtons','ck-comment__input-actions--cancel','forEach','fire','setTemplate','getData','placeholder','bindTemplate','destroy','icon','setData','model','createEditor','ck-comment__input-actions--active','_createSubmitButton'];(function(_0x59a3c7,_0x33aec5){const _0x192801=function(_0x3f6f09){while(--_0x3f6f09){_0x59a3c7['push'](_0x59a3c7['shift']());}};_0x192801(++_0x33aec5);}(_0x33ae,0x1dc));const _0x1928=function(_0x59a3c7,_0x33aec5){_0x59a3c7=_0x59a3c7-0x0;let _0x192801=_0x33ae[_0x59a3c7];return _0x192801;};import{View as _0x47eab6,ViewCollection as _0x282760,FocusCycler as _0x5908fd,ButtonView as _0x30ce04}from'ckeditor5/src/ui';import{FocusTracker as _0x13c1cd,KeystrokeHandler as _0x382ef5}from'ckeditor5/src/utils';import{icons as _0x596249}from'ckeditor5/src/core';import _0x2e81f2 from'../commenteditor/commenteditor';import{getTranslation as _0x58d4eb}from'../../../utils/common-translations';export default class Tt extends _0x47eab6{constructor(_0x47a77d,_0x148338={}){super(_0x47a77d),this[_0x1928('0x20')]=null,this['_editorConfig']=_0x148338,this[_0x1928('0x3d')]=new _0x382ef5(),this[_0x1928('0x25')]=new _0x13c1cd(),this[_0x1928('0x21')](_0x1928('0x1a'),_0x148338[_0x1928('0x16')]||''),this[_0x1928('0x21')]('disabledSubmit',!0x1),this[_0x1928('0x21')](_0x1928('0x5'),!0x0),this[_0x1928('0x21')](_0x1928('0xb'),_0x58d4eb(_0x47a77d,_0x1928('0x3'))),this[_0x1928('0x3b')]=this[_0x1928('0x13')](),this[_0x1928('0x35')]=this[_0x1928('0x27')](),this[_0x1928('0x9')]({'tag':_0x1928('0x3a'),'attributes':{'class':[_0x1928('0x1e')]},'children':[{'tag':_0x1928('0x3a'),'attributes':{'class':['ck-comment__input-actions',this[_0x1928('0xc')]['if'](_0x1928('0x5'),_0x1928('0x12'))]},'children':[this['submitButtonView'],this[_0x1928('0x35')]]}]}),this[_0x1928('0x3d')][_0x1928('0x21')](_0x1928('0x19'),(_0x21c588,_0x299a11)=>{this[_0x1928('0x35')]['fire'](_0x1928('0x26')),_0x299a11();}),this['on']('submit',(_0x583237,_0xd749b0)=>{_0xd749b0['length']>0xfde8?(alert(_0x58d4eb(_0x47a77d,'TOO_LONG_COMMENT_ALERT',[_0xd749b0[_0x1928('0x29')],0xfde8])),_0x583237[_0x1928('0x33')]()):this[_0x1928('0x20')][_0x1928('0xf')]('');},{'priority':_0x1928('0x24')});}[_0x1928('0x34')](){super[_0x1928('0x34')](),this[_0x1928('0x3d')]['listenTo'](this[_0x1928('0x2a')]),this[_0x1928('0x25')][_0x1928('0x30')](this[_0x1928('0x2a')]);}[_0x1928('0x11')](){return this['editor']||(this[_0x1928('0x20')]=new _0x2e81f2(this[_0x1928('0x1d')]),this[_0x1928('0x2d')]=this[_0x1928('0x20')][_0x1928('0x15')]()[_0x1928('0x1')](()=>{this[_0x1928('0x2b')]||(this[_0x1928('0x2a')][_0x1928('0x2c')](this[_0x1928('0x20')]['ui']['element'],this[_0x1928('0x2a')]['firstChild']),this[_0x1928('0x20')][_0x1928('0x10')][_0x1928('0x38')]['on'](_0x1928('0x17'),()=>this[_0x1928('0x1a')]=this[_0x1928('0x20')][_0x1928('0xa')]()),this[_0x1928('0x20')][_0x1928('0x2e')](_0x1928('0xb'))['to'](this),this[_0x1928('0x3c')](this[_0x1928('0x20')]),this['fire'](_0x1928('0x1c')));})),this[_0x1928('0x2d')];}[_0x1928('0x1f')](){this[_0x1928('0x20')]&&this[_0x1928('0x20')][_0x1928('0x1f')]();}async[_0x1928('0xd')](){this['_isDestroyed']||(this[_0x1928('0x2b')]=!0x0,this[_0x1928('0x20')]&&(await this[_0x1928('0x2d')],await this['editor'][_0x1928('0xd')]()),await super[_0x1928('0xd')]());}[_0x1928('0x13')](){const {locale:_0x5bbd03}=this,_0x386c22=new _0x30ce04(_0x5bbd03);return _0x386c22['extendTemplate']({'attributes':{'class':[_0x1928('0x32')]}}),_0x386c22[_0x1928('0x1b')]=_0x58d4eb(_0x5bbd03,_0x1928('0x2f')),_0x386c22['icon']=_0x596249[_0x1928('0x0')],_0x386c22['on'](_0x1928('0x26'),()=>{this[_0x1928('0x8')]('submit',this[_0x1928('0x1a')]);}),_0x386c22['bind'](_0x1928('0x36'))['to'](this,_0x1928('0x1a'),this,_0x1928('0x14'),(_0x506031,_0x447503)=>!_0x447503&&!!_0x506031[_0x1928('0x22')]()),_0x386c22;}[_0x1928('0x27')](){const {locale:_0x168749}=this,_0x342d74=new _0x30ce04(_0x168749);return _0x342d74[_0x1928('0x31')]({'attributes':{'class':[_0x1928('0x6')]}}),_0x342d74[_0x1928('0x1b')]=_0x58d4eb(_0x168749,'Cancel'),_0x342d74[_0x1928('0xe')]=_0x596249[_0x1928('0x4')],_0x342d74['on'](_0x1928('0x26'),()=>{this[_0x1928('0x20')][_0x1928('0xf')](''),this[_0x1928('0x8')](_0x1928('0x4'));}),_0x342d74;}[_0x1928('0x3c')](_0x35f901){const _0x2479d8=this[_0x1928('0x25')],_0x143a2a=new _0x282760();[_0x35f901['ui'][_0x1928('0x18')],this[_0x1928('0x3b')],this['cancelButtonView']][_0x1928('0x7')](_0x1ebef9=>{_0x143a2a[_0x1928('0x30')](_0x1ebef9),_0x2479d8[_0x1928('0x30')](_0x1ebef9[_0x1928('0x2a')]);});const _0x292585=new _0x5908fd({'focusables':_0x143a2a,'focusTracker':_0x2479d8});this[_0x1928('0x3d')]['set'](_0x1928('0x23'),(_0x409ff4,_0x51c03f)=>{_0x292585[_0x1928('0x37')](),_0x51c03f();},{'priority':_0x1928('0x2')}),this[_0x1928('0x3d')][_0x1928('0x21')](_0x1928('0x28'),(_0x200d4b,_0x826e9f)=>{_0x292585[_0x1928('0x39')](),_0x826e9f();},{'priority':_0x1928('0x2')});}}
23
+ const _0x45c2=['shift\x20+\x20tab','Reply...','cancelButtonView','add','placeholder','set','_isDestroyed','ck-comment__input-wrapper','TOO_LONG_COMMENT_ALERT','focusPrevious','check','tab','disabledSubmit','_createSubmitButton','insertBefore','element','Esc','keystrokes','submitButtonView','ck-comment__input-actions--cancel','ck-comment__input-actions','forEach','trim','focusNext','icon','_editorCreationPromise','createEditor','submit','fire','editor','then','div','cancel','label','_initializeFocusCycling','editorReady','high','render','value','destroy','ck-comment__input-actions--active','low','ck-comment__input-actions--submit','extendTemplate','change','document','model','_editorConfig','stop','Cancel','execute','setTemplate','setData','focusTracker','bind','length','focus','_createCancelButton','firstChild','listenTo','showButtons'];(function(_0x18571e,_0x45c249){const _0x1c1b8f=function(_0x3bdf66){while(--_0x3bdf66){_0x18571e['push'](_0x18571e['shift']());}};_0x1c1b8f(++_0x45c249);}(_0x45c2,0xca));const _0x1c1b=function(_0x18571e,_0x45c249){_0x18571e=_0x18571e-0x0;let _0x1c1b8f=_0x45c2[_0x18571e];return _0x1c1b8f;};import{View as _0x8e4eaa,ViewCollection as _0x4e32a5,FocusCycler as _0x8419d1,ButtonView as _0x63505d}from'ckeditor5/src/ui';import{FocusTracker as _0x1897d6,KeystrokeHandler as _0x5e2cd2}from'ckeditor5/src/utils';import{icons as _0x1521eb}from'ckeditor5/src/core';import _0x2a9e76 from'../commenteditor/commenteditor';import{getTranslation as _0x5326a8}from'../../../utils/common-translations';export default class Tt extends _0x8e4eaa{constructor(_0x2bacbd,_0x1cb736={}){super(_0x2bacbd),this[_0x1c1b('0xa')]=null,this[_0x1c1b('0x1c')]=_0x1cb736,this[_0x1c1b('0x3b')]=new _0x5e2cd2(),this[_0x1c1b('0x22')]=new _0x1897d6(),this['set']('value',_0x1cb736['initialData']||''),this[_0x1c1b('0x2f')](_0x1c1b('0x36'),!0x1),this['set'](_0x1c1b('0x29'),!0x0),this[_0x1c1b('0x2f')]('placeholder',_0x5326a8(_0x2bacbd,_0x1c1b('0x2b'))),this[_0x1c1b('0x3c')]=this[_0x1c1b('0x37')](),this[_0x1c1b('0x2c')]=this[_0x1c1b('0x26')](),this[_0x1c1b('0x20')]({'tag':_0x1c1b('0xc'),'attributes':{'class':[_0x1c1b('0x31')]},'children':[{'tag':_0x1c1b('0xc'),'attributes':{'class':[_0x1c1b('0x1'),this['bindTemplate']['if'](_0x1c1b('0x29'),_0x1c1b('0x15'))]},'children':[this[_0x1c1b('0x3c')],this[_0x1c1b('0x2c')]]}]}),this['keystrokes']['set'](_0x1c1b('0x3a'),(_0x1a4169,_0x1557c9)=>{this[_0x1c1b('0x2c')][_0x1c1b('0x9')](_0x1c1b('0x1f')),_0x1557c9();}),this['on'](_0x1c1b('0x8'),(_0x1e2e74,_0x348ed9)=>{_0x348ed9[_0x1c1b('0x24')]>0xfde8?(alert(_0x5326a8(_0x2bacbd,_0x1c1b('0x32'),[_0x348ed9[_0x1c1b('0x24')],0xfde8])),_0x1e2e74[_0x1c1b('0x1d')]()):this['editor']['setData']('');},{'priority':_0x1c1b('0x11')});}[_0x1c1b('0x12')](){super[_0x1c1b('0x12')](),this[_0x1c1b('0x3b')][_0x1c1b('0x28')](this[_0x1c1b('0x39')]),this['focusTracker'][_0x1c1b('0x2d')](this[_0x1c1b('0x39')]);}[_0x1c1b('0x7')](){return this[_0x1c1b('0xa')]||(this[_0x1c1b('0xa')]=new _0x2a9e76(this[_0x1c1b('0x1c')]),this[_0x1c1b('0x6')]=this[_0x1c1b('0xa')]['create']()[_0x1c1b('0xb')](()=>{this['_isDestroyed']||(this[_0x1c1b('0x39')][_0x1c1b('0x38')](this[_0x1c1b('0xa')]['ui'][_0x1c1b('0x39')],this[_0x1c1b('0x39')][_0x1c1b('0x27')]),this[_0x1c1b('0xa')][_0x1c1b('0x1b')][_0x1c1b('0x1a')]['on'](_0x1c1b('0x19'),()=>this['value']=this[_0x1c1b('0xa')]['getData']()),this[_0x1c1b('0xa')]['bind'](_0x1c1b('0x2e'))['to'](this),this[_0x1c1b('0xf')](this[_0x1c1b('0xa')]),this[_0x1c1b('0x9')](_0x1c1b('0x10')));})),this['_editorCreationPromise'];}[_0x1c1b('0x25')](){this[_0x1c1b('0xa')]&&this[_0x1c1b('0xa')][_0x1c1b('0x25')]();}async[_0x1c1b('0x14')](){this['_isDestroyed']||(this[_0x1c1b('0x30')]=!0x0,this['editor']&&(await this[_0x1c1b('0x6')],await this[_0x1c1b('0xa')][_0x1c1b('0x14')]()),await super[_0x1c1b('0x14')]());}['_createSubmitButton'](){const {locale:_0x3172e3}=this,_0x516928=new _0x63505d(_0x3172e3);return _0x516928[_0x1c1b('0x18')]({'attributes':{'class':[_0x1c1b('0x17')]}}),_0x516928[_0x1c1b('0xe')]=_0x5326a8(_0x3172e3,'Submit'),_0x516928[_0x1c1b('0x5')]=_0x1521eb[_0x1c1b('0x34')],_0x516928['on']('execute',()=>{this['fire'](_0x1c1b('0x8'),this[_0x1c1b('0x13')]);}),_0x516928[_0x1c1b('0x23')]('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x313c91,_0x21adda)=>!_0x21adda&&!!_0x313c91[_0x1c1b('0x3')]()),_0x516928;}[_0x1c1b('0x26')](){const {locale:_0x2086ca}=this,_0x8032d6=new _0x63505d(_0x2086ca);return _0x8032d6['extendTemplate']({'attributes':{'class':[_0x1c1b('0x0')]}}),_0x8032d6['label']=_0x5326a8(_0x2086ca,_0x1c1b('0x1e')),_0x8032d6[_0x1c1b('0x5')]=_0x1521eb[_0x1c1b('0xd')],_0x8032d6['on']('execute',()=>{this[_0x1c1b('0xa')][_0x1c1b('0x21')](''),this[_0x1c1b('0x9')](_0x1c1b('0xd'));}),_0x8032d6;}['_initializeFocusCycling'](_0xe541c9){const _0x25ad85=this['focusTracker'],_0xfc964f=new _0x4e32a5();[_0xe541c9['ui']['view'],this[_0x1c1b('0x3c')],this[_0x1c1b('0x2c')]][_0x1c1b('0x2')](_0x419d22=>{_0xfc964f[_0x1c1b('0x2d')](_0x419d22),_0x25ad85[_0x1c1b('0x2d')](_0x419d22['element']);});const _0x4c4f40=new _0x8419d1({'focusables':_0xfc964f,'focusTracker':_0x25ad85});this[_0x1c1b('0x3b')][_0x1c1b('0x2f')](_0x1c1b('0x35'),(_0x44a141,_0x34e918)=>{_0x4c4f40[_0x1c1b('0x4')](),_0x34e918();},{'priority':_0x1c1b('0x16')}),this['keystrokes'][_0x1c1b('0x2f')](_0x1c1b('0x2a'),(_0x396ee5,_0x5cd508)=>{_0x4c4f40[_0x1c1b('0x33')](),_0x5cd508();},{'priority':'low'});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4d9f=['maxThreadTotalWeight','collapse','visibleViews','createCollection','commentViews','CommentView','focus','comments','count','_updateHasDirtyComment','_collapsedCommentsView','change:hasDirtyComment','_config','editorConfig','delete','some','_rearrangeExpand','refreshVisibleViews','removeComment','change:isActive','ck-thread__comments','isEditMode','remove','set','_model','viewUid','hasDirtyComment','destroy','delegate','insert','add','expand','isActive','render','change:isEditMode','_rearrangeCollapse','element','_shouldCollapse','stopListening','get','_handleRemoveCommentModel','maxCommentsWhenCollapsed','commentUpdated','setTemplate','from','formatDateTime','length','_handleNewCommentModel','listenTo'];(function(_0x1703bf,_0x4d9fcf){const _0x5f456b=function(_0x199008){while(--_0x199008){_0x1703bf['push'](_0x1703bf['shift']());}};_0x5f456b(++_0x4d9fcf);}(_0x4d9f,0xc4));const _0x5f45=function(_0x1703bf,_0x4d9fcf){_0x1703bf=_0x1703bf-0x0;let _0x5f456b=_0x4d9f[_0x1703bf];return _0x5f456b;};import{View as _0x32d42d}from'ckeditor5/src/ui';import{diff as _0x279dc6,Collection as _0x5bc504}from'ckeditor5/src/utils';import _0x3fe04c from'./collapsedcommentsview';export default class ct extends _0x32d42d{constructor(_0x3d1453,_0xf81908,_0x51d17b){super(_0x3d1453),this[_0x5f45('0x17')](_0x5f45('0x1a'),!0x1),this[_0x5f45('0x17')](_0x5f45('0x2e'),_0xf81908[_0x5f45('0x7')][_0x5f45('0x2e')]),this[_0x5f45('0x17')](_0x5f45('0x20'),!0x1),this[_0x5f45('0x18')]=_0xf81908,this[_0x5f45('0xc')]=_0x51d17b,this[_0x5f45('0x4')]=this[_0x5f45('0x3')](),this['visibleViews']=this[_0x5f45('0x3')](),this[_0x5f45('0xa')]=new _0x3fe04c(_0x3d1453),this[_0x5f45('0xa')]['bind']('count')['to'](this,_0x5f45('0x2e'),_0x78ebf9=>_0x78ebf9-this['_config'][_0x5f45('0x29')]);for(const _0x510618 of _0xf81908[_0x5f45('0x7')])this['_handleNewCommentModel'](_0x510618);this[_0x5f45('0x30')](_0xf81908[_0x5f45('0x7')],'add',(_0x22ddbe,_0x2d6e6f)=>{this[_0x5f45('0x2e')]++,this[_0x5f45('0x2f')](_0x2d6e6f),this['refreshVisibleViews']();}),this[_0x5f45('0x30')](_0xf81908[_0x5f45('0x7')],_0x5f45('0x16'),(_0x5963d8,_0x287f49)=>{this['length']--,this[_0x5f45('0x28')](_0x287f49),this[_0x5f45('0x11')]();}),this[_0x5f45('0x30')](_0xf81908,_0x5f45('0x2a'),()=>this['refreshVisibleViews']()),this['on'](_0x5f45('0x13'),()=>this['refreshVisibleViews']()),this['on'](_0x5f45('0xb'),()=>this[_0x5f45('0x11')]()),this[_0x5f45('0x2b')]({'tag':'ul','attributes':{'class':[_0x5f45('0x14')]},'children':this[_0x5f45('0x2')]});}get[_0x5f45('0x25')](){return this[_0x5f45('0x18')]['weight']>this['_config'][_0x5f45('0x0')]&&!this[_0x5f45('0x20')]&&!this['hasDirtyComment'];}['render'](){super[_0x5f45('0x21')](),this['refreshVisibleViews']();}[_0x5f45('0x6')](){this[_0x5f45('0x24')][_0x5f45('0x6')]();}['destroy'](){this['_collapsedCommentsView'][_0x5f45('0x1b')]();for(const _0x1e0e1b of this[_0x5f45('0x4')])_0x1e0e1b[_0x5f45('0x1b')]();super[_0x5f45('0x1b')]();}[_0x5f45('0x11')](){this[_0x5f45('0x25')]?this[_0x5f45('0x23')]():this[_0x5f45('0x10')]();}[_0x5f45('0x2f')](_0x22381a){const _0x1cd273=new this[(_0x5f45('0xc'))][(_0x5f45('0x5'))](this['locale'],_0x22381a,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this[_0x5f45('0xc')][_0x5f45('0x2d')],'editorConfig':this[_0x5f45('0xc')][_0x5f45('0xd')]});_0x1cd273[_0x5f45('0x19')]=_0x22381a['id'],_0x1cd273[_0x5f45('0x1c')](_0x5f45('0x12'))['to'](this),_0x1cd273[_0x5f45('0x1c')]('updateComment')['to'](this),this[_0x5f45('0x30')](_0x1cd273,_0x5f45('0x22'),()=>this[_0x5f45('0x9')]()),this[_0x5f45('0x4')][_0x5f45('0x1e')](_0x1cd273);}['_handleRemoveCommentModel'](_0x58fdda){const _0x7d988d=this[_0x5f45('0x4')][_0x5f45('0x16')](_0x58fdda['id']);this[_0x5f45('0x26')](_0x7d988d),_0x7d988d[_0x5f45('0x15')]&&this[_0x5f45('0x9')](),_0x7d988d['destroy']();}[_0x5f45('0x9')](){this[_0x5f45('0x1a')]=Array[_0x5f45('0x2c')](this[_0x5f45('0x4')])[_0x5f45('0xf')](_0x451661=>_0x451661[_0x5f45('0x15')]);}[_0x5f45('0x23')](){const _0x441512=function(_0x26ae83){const _0x158fe2=new _0x5bc504();for(const _0x19428c of _0x26ae83)_0x158fe2[_0x5f45('0x1e')](_0x19428c);return _0x158fe2;}(this[_0x5f45('0x4')]),_0x2c0a89=this['_collapsedCommentsView'][_0x5f45('0x8')];for(let _0x2f8980=0x1;_0x2f8980<=_0x2c0a89;_0x2f8980++)_0x441512[_0x5f45('0x16')](0x1);for(const _0x3ed549 of _0x441512)_0x3ed549[_0x5f45('0x1')]();_0x2c0a89>0x0&&_0x441512[_0x5f45('0x1e')](this[_0x5f45('0xa')],0x1),Wt(_0x279dc6(Array[_0x5f45('0x2c')](this[_0x5f45('0x2')]),Array['from'](_0x441512)),this[_0x5f45('0x2')],_0x441512);}[_0x5f45('0x10')](){Wt(_0x279dc6(Array['from'](this[_0x5f45('0x2')]),Array[_0x5f45('0x2c')](this[_0x5f45('0x4')])),this[_0x5f45('0x2')],this[_0x5f45('0x4')]);for(const _0x486e4e of this[_0x5f45('0x2')])_0x486e4e[_0x5f45('0x1f')]();}}function Wt(_0x38cd8e,_0x1e76ed,_0x218eb3){let _0x41dd6f=0x0;for(const _0x20e55e of _0x38cd8e)switch(_0x20e55e){case _0x5f45('0x1d'):_0x1e76ed['add'](_0x218eb3[_0x5f45('0x27')](_0x41dd6f),_0x41dd6f),_0x41dd6f++;break;case _0x5f45('0xe'):_0x1e76ed['remove'](_0x41dd6f);break;case'equal':_0x41dd6f++;}}
23
+ const _0x2749=['isActive','remove','listenTo','change:hasDirtyComment','editorConfig','_handleNewCommentModel','bind','insert','from','_config','_handleRemoveCommentModel','some','add','refreshVisibleViews','length','comments','updateComment','get','visibleViews','isEditMode','locale','element','equal','render','focus','setTemplate','change:isEditMode','_collapsedCommentsView','hasDirtyComment','destroy','CommentView','delegate','_rearrangeCollapse','weight','viewUid','commentUpdated','collapse','commentViews','removeComment','_model','ck-thread__comments','count','createCollection','expand','_shouldCollapse','_updateHasDirtyComment'];(function(_0xac3c02,_0x274925){const _0x3f2274=function(_0x49342a){while(--_0x49342a){_0xac3c02['push'](_0xac3c02['shift']());}};_0x3f2274(++_0x274925);}(_0x2749,0x91));const _0x3f22=function(_0xac3c02,_0x274925){_0xac3c02=_0xac3c02-0x0;let _0x3f2274=_0x2749[_0xac3c02];return _0x3f2274;};import{View as _0x564172}from'ckeditor5/src/ui';import{diff as _0xa99353,Collection as _0x47e4c9}from'ckeditor5/src/utils';import _0x51807b from'./collapsedcommentsview';export default class ct extends _0x564172{constructor(_0x40d1e6,_0x127c43,_0x373c52){super(_0x40d1e6),this['set'](_0x3f22('0x15'),!0x1),this['set'](_0x3f22('0x7'),_0x127c43[_0x3f22('0x8')]['length']),this['set']('isActive',!0x1),this[_0x3f22('0x20')]=_0x127c43,this['_config']=_0x373c52,this['commentViews']=this[_0x3f22('0x23')](),this['visibleViews']=this[_0x3f22('0x23')](),this['_collapsedCommentsView']=new _0x51807b(_0x40d1e6),this[_0x3f22('0x14')][_0x3f22('0x2d')]('count')['to'](this,_0x3f22('0x7'),_0x42194e=>_0x42194e-this[_0x3f22('0x2')]['maxCommentsWhenCollapsed']);for(const _0xb9b5b2 of _0x127c43[_0x3f22('0x8')])this[_0x3f22('0x2c')](_0xb9b5b2);this[_0x3f22('0x29')](_0x127c43[_0x3f22('0x8')],'add',(_0x74c3f7,_0x4d3c33)=>{this[_0x3f22('0x7')]++,this[_0x3f22('0x2c')](_0x4d3c33),this['refreshVisibleViews']();}),this[_0x3f22('0x29')](_0x127c43[_0x3f22('0x8')],_0x3f22('0x28'),(_0x44c3f3,_0x391866)=>{this[_0x3f22('0x7')]--,this[_0x3f22('0x3')](_0x391866),this[_0x3f22('0x6')]();}),this[_0x3f22('0x29')](_0x127c43,_0x3f22('0x1c'),()=>this[_0x3f22('0x6')]()),this['on']('change:isActive',()=>this[_0x3f22('0x6')]()),this['on'](_0x3f22('0x2a'),()=>this[_0x3f22('0x6')]()),this[_0x3f22('0x12')]({'tag':'ul','attributes':{'class':[_0x3f22('0x21')]},'children':this[_0x3f22('0xb')]});}get[_0x3f22('0x25')](){return this[_0x3f22('0x20')][_0x3f22('0x1a')]>this['_config']['maxThreadTotalWeight']&&!this[_0x3f22('0x27')]&&!this[_0x3f22('0x15')];}[_0x3f22('0x10')](){super[_0x3f22('0x10')](),this[_0x3f22('0x6')]();}['focus'](){this[_0x3f22('0xe')][_0x3f22('0x11')]();}[_0x3f22('0x16')](){this['_collapsedCommentsView']['destroy']();for(const _0x30e8d5 of this[_0x3f22('0x1e')])_0x30e8d5[_0x3f22('0x16')]();super[_0x3f22('0x16')]();}[_0x3f22('0x6')](){this[_0x3f22('0x25')]?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x589e5e){const _0x228333=new this[(_0x3f22('0x2'))][(_0x3f22('0x17'))](this[_0x3f22('0xd')],_0x589e5e,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this[_0x3f22('0x2')]['formatDateTime'],'editorConfig':this[_0x3f22('0x2')][_0x3f22('0x2b')]});_0x228333[_0x3f22('0x1b')]=_0x589e5e['id'],_0x228333[_0x3f22('0x18')](_0x3f22('0x1f'))['to'](this),_0x228333['delegate'](_0x3f22('0x9'))['to'](this),this['listenTo'](_0x228333,_0x3f22('0x13'),()=>this['_updateHasDirtyComment']()),this['commentViews'][_0x3f22('0x5')](_0x228333);}[_0x3f22('0x3')](_0x415f96){const _0x4775a4=this[_0x3f22('0x1e')][_0x3f22('0x28')](_0x415f96['id']);this['stopListening'](_0x4775a4),_0x4775a4[_0x3f22('0xc')]&&this['_updateHasDirtyComment'](),_0x4775a4[_0x3f22('0x16')]();}[_0x3f22('0x26')](){this[_0x3f22('0x15')]=Array['from'](this[_0x3f22('0x1e')])[_0x3f22('0x4')](_0x319f31=>_0x319f31['isEditMode']);}[_0x3f22('0x19')](){const _0x1fb8a4=function(_0x760e89){const _0x5478e4=new _0x47e4c9();for(const _0xaa00db of _0x760e89)_0x5478e4[_0x3f22('0x5')](_0xaa00db);return _0x5478e4;}(this['commentViews']),_0x5c6f78=this[_0x3f22('0x14')][_0x3f22('0x22')];for(let _0x27e7c8=0x1;_0x27e7c8<=_0x5c6f78;_0x27e7c8++)_0x1fb8a4[_0x3f22('0x28')](0x1);for(const _0x5deb3f of _0x1fb8a4)_0x5deb3f[_0x3f22('0x1d')]();_0x5c6f78>0x0&&_0x1fb8a4[_0x3f22('0x5')](this['_collapsedCommentsView'],0x1),Wt(_0xa99353(Array[_0x3f22('0x1')](this[_0x3f22('0xb')]),Array['from'](_0x1fb8a4)),this[_0x3f22('0xb')],_0x1fb8a4);}['_rearrangeExpand'](){Wt(_0xa99353(Array[_0x3f22('0x1')](this[_0x3f22('0xb')]),Array[_0x3f22('0x1')](this[_0x3f22('0x1e')])),this[_0x3f22('0xb')],this[_0x3f22('0x1e')]);for(const _0x45f4b0 of this[_0x3f22('0xb')])_0x45f4b0[_0x3f22('0x24')]();}}function Wt(_0x3544c8,_0x5899e6,_0x46b088){let _0x4a1bf1=0x0;for(const _0x59f3a4 of _0x3544c8)switch(_0x59f3a4){case _0x3f22('0x0'):_0x5899e6[_0x3f22('0x5')](_0x46b088[_0x3f22('0xa')](_0x4a1bf1),_0x4a1bf1),_0x4a1bf1++;break;case'delete':_0x5899e6[_0x3f22('0x28')](_0x4a1bf1);break;case _0x3f22('0xf'):_0x4a1bf1++;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1a02=['value','userView','destroy','isFocused','showButtons','showInput','extendTemplate','setTemplate','then','div','bindTemplate','set','commentInputView','bind','ck-comment__input-container--active'];(function(_0x29aaaf,_0x1a02bd){var _0x411cdc=function(_0x3615c6){while(--_0x3615c6){_0x29aaaf['push'](_0x29aaaf['shift']());}};_0x411cdc(++_0x1a02bd);}(_0x1a02,0x113));var _0x411c=function(_0x29aaaf,_0x1a02bd){_0x29aaaf=_0x29aaaf-0x0;var _0x411cdc=_0x1a02[_0x29aaaf];return _0x411cdc;};import{View as _0x16dc72}from'ckeditor5/src/ui';import _0x3a4960 from'./commentinputview';import{UserView as _0x10b8c3}from'ckeditor5-collaboration/src/collaboration-core';export default class dt extends _0x16dc72{constructor(_0x2d54eb,_0x4fcf44,_0x446c93){super(_0x2d54eb),this['commentInputView']=new _0x3a4960(_0x2d54eb,_0x446c93),this['commentInputView'][_0x411c('0x8')](_0x411c('0xe'))['to'](this[_0x411c('0x7')]['focusTracker'],_0x411c('0xd'),this[_0x411c('0x7')],_0x411c('0xa'),(_0x2975a6,_0x206bf6)=>_0x2975a6||!!_0x206bf6),this[_0x411c('0x6')](_0x411c('0x0'),!0x1),this['on']('change:showInput',()=>{this['showInput']&&!this[_0x411c('0x7')]['editor']&&this[_0x411c('0x7')]['createEditor']();}),this[_0x411c('0xb')]=new _0x10b8c3(_0x2d54eb,_0x4fcf44),this[_0x411c('0xb')][_0x411c('0x1')]({'attributes':{'class':'ck-thread__user'}}),this[_0x411c('0x7')][_0x411c('0x1')]({'attributes':{'class':'ck-thread__input'}}),this[_0x411c('0x2')]({'tag':_0x411c('0x4'),'attributes':{'class':['ck-comment__input-container',this[_0x411c('0x5')]['if'](_0x411c('0x0'),_0x411c('0x9'))]},'children':[this['userView'],this['commentInputView']]});}['destroy'](){return this[_0x411c('0x7')][_0x411c('0xc')]()[_0x411c('0x3')](()=>super[_0x411c('0xc')]());}}
23
+ var _0x5e2f=['setTemplate','editor','div','userView','showInput','ck-thread__input','value','then','set','extendTemplate','commentInputView','ck-comment__input-container--active','showButtons','focusTracker','bindTemplate','ck-thread__user','createEditor','isFocused','change:showInput'];(function(_0x5f4a48,_0x5e2f70){var _0x5518a7=function(_0x3236dd){while(--_0x3236dd){_0x5f4a48['push'](_0x5f4a48['shift']());}};_0x5518a7(++_0x5e2f70);}(_0x5e2f,0x1f4));var _0x5518=function(_0x5f4a48,_0x5e2f70){_0x5f4a48=_0x5f4a48-0x0;var _0x5518a7=_0x5e2f[_0x5f4a48];return _0x5518a7;};import{View as _0x1edc1b}from'ckeditor5/src/ui';import _0x11d8fe from'./commentinputview';import{UserView as _0x20faec}from'ckeditor5-collaboration/src/collaboration-core';export default class dt extends _0x1edc1b{constructor(_0x17b190,_0xac1b96,_0x2d588c){super(_0x17b190),this[_0x5518('0x4')]=new _0x11d8fe(_0x17b190,_0x2d588c),this[_0x5518('0x4')]['bind'](_0x5518('0x6'))['to'](this[_0x5518('0x4')][_0x5518('0x7')],_0x5518('0xb'),this[_0x5518('0x4')],_0x5518('0x0'),(_0x4b8bb9,_0x159ad9)=>_0x4b8bb9||!!_0x159ad9),this[_0x5518('0x2')](_0x5518('0x11'),!0x1),this['on'](_0x5518('0xc'),()=>{this['showInput']&&!this[_0x5518('0x4')][_0x5518('0xe')]&&this[_0x5518('0x4')][_0x5518('0xa')]();}),this[_0x5518('0x10')]=new _0x20faec(_0x17b190,_0xac1b96),this['userView'][_0x5518('0x3')]({'attributes':{'class':_0x5518('0x9')}}),this[_0x5518('0x4')][_0x5518('0x3')]({'attributes':{'class':_0x5518('0x12')}}),this[_0x5518('0xd')]({'tag':_0x5518('0xf'),'attributes':{'class':['ck-comment__input-container',this[_0x5518('0x8')]['if'](_0x5518('0x11'),_0x5518('0x5'))]},'children':[this['userView'],this['commentInputView']]});}['destroy'](){return this['commentInputView']['destroy']()[_0x5518('0x1')](()=>super['destroy']());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2209=['ck-thread--remove-confirmation','commentThreadInputView','remove','commentViews','removeCommentThread','listenTo','placeholder','.ck-thread__container','ck-thread__container','querySelector','fire','bind','stop','cancelConfirm','commentsListView','render','off','bindTemplate','ck-thread','containerElement','isConfirm','change:isActive','setTemplate','Write\x20a\x20comment...','_model','actionIndicator','_bindFirstCommentView','element','showConfirm','isActive','change:isReadOnly','length','then','get','locale','removeButton','getTemplate','_cancelAllConfirms','high','div'];(function(_0x1a9cd7,_0x220903){const _0x2dae93=function(_0x53fd02){while(--_0x53fd02){_0x1a9cd7['push'](_0x1a9cd7['shift']());}};_0x2dae93(++_0x220903);}(_0x2209,0xd3));const _0x2dae=function(_0x1a9cd7,_0x220903){_0x1a9cd7=_0x1a9cd7-0x0;let _0x2dae93=_0x2209[_0x1a9cd7];return _0x2dae93;};import{mix as _0x3d45ef}from'ckeditor5/src/utils';import{ConfirmMixin as _0x2b55a4}from'ckeditor5-collaboration/src/collaboration-core';import _0x1be0f9 from'./basecommentthreadview';import{getTranslation as _0x55eb5a}from'../../../utils/common-translations';export default class nt extends _0x1be0f9{constructor(_0xf15a43,_0x44824c,_0x36e3df,_0x15bcc9){super(_0xf15a43,_0x44824c,_0x36e3df,_0x15bcc9),this['set'](_0x2dae('0xe'),null),this[_0x2dae('0x8')]=null,this[_0x2dae('0x17')]=_0xf15a43,this[_0x2dae('0xb')](this[_0x2dae('0x19')]()),this['on'](_0x2dae('0xa'),(_0x15b38a,_0x53c285,_0x2679a3)=>{_0x2679a3||this[_0x2dae('0x1a')]();}),this['listenTo'](this[_0x2dae('0xd')],_0x2dae('0x13'),(_0x58bd7d,_0x55152f,_0x312c9f)=>{_0x312c9f&&this['_cancelAllConfirms']();}),this[_0x2dae('0x14')]>0x0?this['_bindFirstCommentView']():this[_0x2dae('0x22')](this[_0x2dae('0x3')][_0x2dae('0x20')],'add',_0x3c65a7=>{this[_0x2dae('0xf')](),_0x3c65a7[_0x2dae('0x5')]();});}[_0x2dae('0x19')](){const _0x4e7e31=this[_0x2dae('0x6')];return{'tag':_0x2dae('0x1c'),'attributes':{'class':[_0x2dae('0x7'),_0x4e7e31['if'](_0x2dae('0x12'),'ck-thread--active'),_0x4e7e31['if'](_0x2dae('0x9'),_0x2dae('0x1d')),_0x4e7e31['to'](_0x2dae('0xe'),_0x40d10f=>_0x40d10f?'ck-thread--'+_0x40d10f:'')],'data-thread-id':this[_0x2dae('0xd')]['id'],'tabindex':-0x1},'children':[{'tag':_0x2dae('0x1c'),'attributes':{'class':_0x2dae('0x25')},'children':[this[_0x2dae('0x3')],this[_0x2dae('0x1e')]]}]};}[_0x2dae('0x4')](){super[_0x2dae('0x4')](),this[_0x2dae('0x8')]=this[_0x2dae('0x10')][_0x2dae('0x26')](_0x2dae('0x24'));}[_0x2dae('0x1a')](){this[_0x2dae('0x2')]();for(const _0x4febb3 of this[_0x2dae('0x3')][_0x2dae('0x20')])_0x4febb3[_0x2dae('0x2')]();}[_0x2dae('0xf')](){const {locale:_0x3bfea3}=this,_0x27d48d=this[_0x2dae('0x3')]['commentViews'][_0x2dae('0x16')](0x0);this[_0x2dae('0x0')](_0x2dae('0xe'))['to'](_0x27d48d,_0x2dae('0xe'),_0xb2f148=>_0x2dae('0x1f')===_0xb2f148?_0x2dae('0x1f'):null),_0x27d48d[_0x2dae('0x23')]=_0x55eb5a(_0x3bfea3,_0x2dae('0xc')),_0x27d48d[_0x2dae('0x18')]['on']('execute',_0x2d19cc=>{_0x2d19cc[_0x2dae('0x1')](),this[_0x2dae('0x11')](_0x55eb5a(_0x3bfea3,'Delete\x20comment\x20thread?'),this[_0x2dae('0x8')])[_0x2dae('0x15')](()=>{this[_0x2dae('0x27')](_0x2dae('0x21'));});},{'priority':_0x2dae('0x1b')});}}_0x3d45ef(nt,_0x2b55a4);
23
+ const _0x377d=['containerElement','removeButton','actionIndicator','locale','ck-thread--','Delete\x20comment\x20thread?','Write\x20a\x20comment...','get','div','_bindFirstCommentView','fire','length','commentViews','element','stop','render','add','then','cancelConfirm','listenTo','bind','bindTemplate','remove','ck-thread__container','commentsListView','set','.ck-thread__container','isActive','ck-thread--active','ck-thread','_model','high','getTemplate','ck-thread--remove-confirmation','off','change:isActive','_cancelAllConfirms','isConfirm','removeCommentThread','execute','change:isReadOnly'];(function(_0x14d8c0,_0x377da2){const _0x3a4bde=function(_0x5c6cd1){while(--_0x5c6cd1){_0x14d8c0['push'](_0x14d8c0['shift']());}};_0x3a4bde(++_0x377da2);}(_0x377d,0xbb));const _0x3a4b=function(_0x14d8c0,_0x377da2){_0x14d8c0=_0x14d8c0-0x0;let _0x3a4bde=_0x377d[_0x14d8c0];return _0x3a4bde;};import{mix as _0x566319}from'ckeditor5/src/utils';import{ConfirmMixin as _0x4c6132}from'ckeditor5-collaboration/src/collaboration-core';import _0x4330c9 from'./basecommentthreadview';import{getTranslation as _0x21f919}from'../../../utils/common-translations';export default class nt extends _0x4330c9{constructor(_0x31103f,_0x11df74,_0xa9e66c,_0x5280fa){super(_0x31103f,_0x11df74,_0xa9e66c,_0x5280fa),this[_0x3a4b('0x2')](_0x3a4b('0x14'),null),this[_0x3a4b('0x12')]=null,this[_0x3a4b('0x15')]=_0x31103f,this['setTemplate'](this[_0x3a4b('0x9')]()),this['on'](_0x3a4b('0xc'),(_0x3c32df,_0x21523e,_0x10dff2)=>{_0x10dff2||this['_cancelAllConfirms']();}),this[_0x3a4b('0x25')](this[_0x3a4b('0x7')],_0x3a4b('0x11'),(_0x3ad993,_0x5717c4,_0x2afb12)=>{_0x2afb12&&this['_cancelAllConfirms']();}),this[_0x3a4b('0x1d')]>0x0?this['_bindFirstCommentView']():this['listenTo'](this[_0x3a4b('0x1')][_0x3a4b('0x1e')],_0x3a4b('0x22'),_0x244402=>{this[_0x3a4b('0x1b')](),_0x244402[_0x3a4b('0xb')]();});}[_0x3a4b('0x9')](){const _0x5d63a3=this[_0x3a4b('0x27')];return{'tag':_0x3a4b('0x1a'),'attributes':{'class':[_0x3a4b('0x6'),_0x5d63a3['if'](_0x3a4b('0x4'),_0x3a4b('0x5')),_0x5d63a3['if'](_0x3a4b('0xe'),_0x3a4b('0xa')),_0x5d63a3['to'](_0x3a4b('0x14'),_0x51f997=>_0x51f997?_0x3a4b('0x16')+_0x51f997:'')],'data-thread-id':this[_0x3a4b('0x7')]['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':_0x3a4b('0x0')},'children':[this['commentsListView'],this['commentThreadInputView']]}]};}['render'](){super[_0x3a4b('0x21')](),this[_0x3a4b('0x12')]=this[_0x3a4b('0x1f')]['querySelector'](_0x3a4b('0x3'));}[_0x3a4b('0xd')](){this[_0x3a4b('0x24')]();for(const _0x1e8945 of this[_0x3a4b('0x1')]['commentViews'])_0x1e8945[_0x3a4b('0x24')]();}[_0x3a4b('0x1b')](){const {locale:_0x3f3902}=this,_0x32e4d2=this[_0x3a4b('0x1')][_0x3a4b('0x1e')][_0x3a4b('0x19')](0x0);this[_0x3a4b('0x26')]('actionIndicator')['to'](_0x32e4d2,_0x3a4b('0x14'),_0x368936=>_0x3a4b('0x28')===_0x368936?_0x3a4b('0x28'):null),_0x32e4d2['placeholder']=_0x21f919(_0x3f3902,_0x3a4b('0x18')),_0x32e4d2[_0x3a4b('0x13')]['on'](_0x3a4b('0x10'),_0x171fc4=>{_0x171fc4[_0x3a4b('0x20')](),this['showConfirm'](_0x21f919(_0x3f3902,_0x3a4b('0x17')),this[_0x3a4b('0x12')])[_0x3a4b('0x23')](()=>{this[_0x3a4b('0x1c')](_0x3a4b('0xf'));});},{'priority':_0x3a4b('0x8')});}}_0x566319(nt,_0x4c6132);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a10=['removeButton','ck-annotation__actions--hidden','ck-annotation','isVisible','ck-comment__info-name','ck-comment__wrapper','ck-comment__user','locale','externalAuthor','visibleView','then','ck-comment__info','_attachActions','isRemovable','ck-annotation__info','remove','div','change:isRemovable','execute','isEditMode','_model','fire','set','listenTo','switchToEditMode','focus','createdAt','icon','bind','Reply...','ck-annotation__actions','actionIndicator','push','bindTemplate','ck-comment__actions','getTemplate','label','isReadOnly','placeholder','ck-comment__actions--hidden','ck-annotation__content-wrapper','ck-comment--remove','ck-comment--edit','formatDateTime','ck-annotation__info-time','render','@external','mouseleave','element','_createRemoveButton','ck-annotation__user','cancelConfirm','author','ck-comment--remove-confirmation','ck-comment__main','Remove','name','blur','ck-comment__info-time','extendTemplate','span','isEnabled','_createCommentInputView','ck-comment--','ck-comment','ck-annotation__info-name','edit','editButton','pencil','userView'];(function(_0x5bd2d1,_0x1a100c){const _0x564455=function(_0x6f3f66){while(--_0x6f3f66){_0x5bd2d1['push'](_0x5bd2d1['shift']());}};_0x564455(++_0x1a100c);}(_0x1a10,0x7c));const _0x5644=function(_0x5bd2d1,_0x1a100c){_0x5bd2d1=_0x5bd2d1-0x0;let _0x564455=_0x1a10[_0x5bd2d1];return _0x564455;};import{mix as _0x545214}from'ckeditor5/src/utils';import{ButtonView as _0x1314d9}from'ckeditor5/src/ui';import{icons as _0x2ad2a6}from'ckeditor5/src/core';import{UserView as _0x318068,ConfirmMixin as _0x282d84}from'ckeditor5-collaboration/src/collaboration-core';import _0x3c9eec from'./basecommentview';import _0x5ef2bb from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x58a1a7}from'../../../utils/common-translations';export default class ot extends _0x3c9eec{constructor(_0x370c78,_0x3f0977,_0x5f0c0c){super(_0x370c78,_0x3f0977,_0x5f0c0c),this[_0x5644('0x26')](_0x5644('0x2f'),null),this[_0x5644('0x26')](_0x5644('0x36'),_0x58a1a7(_0x370c78,_0x5644('0x2d'))),this['set'](_0x5644('0x2a'),null),this[_0x5644('0x2c')](_0x5644('0x2a'))['to'](_0x3f0977[_0x5644('0x18')]?_0x3f0977['attributes'][_0x5644('0x3e')]:_0x3f0977),this[_0x5644('0xd')]=this['_createEditButton'](),this['removeButton']=this[_0x5644('0x41')](),this[_0x5644('0xf')]=new _0x318068(_0x370c78,_0x3f0977['externalAuthor']||_0x3f0977[_0x5644('0x44')]),this[_0x5644('0xf')][_0x5644('0x5')]({'attributes':{'class':[_0x5644('0x16'),_0x5644('0x42')]}}),this[_0x5644('0x27')](_0x3f0977,_0x5644('0x21'),()=>this[_0x5644('0x43')]()),this['setTemplate'](this['getTemplate']());}[_0x5644('0x33')](){const _0xb994d3=this[_0x5644('0x31')],_0x24e411=[{'tag':'div','attributes':{'class':[_0x5644('0x1b'),_0x5644('0x1e')]},'children':[{'tag':_0x5644('0x6'),'children':[{'text':this[_0x5644('0xf')][_0x5644('0x2')]}],'attributes':{'class':[_0x5644('0x14'),_0x5644('0xb')]}},{'tag':'time','attributes':{'datetime':_0xb994d3['to'](_0x5644('0x2a')),'class':[_0x5644('0x4'),_0x5644('0x3c')]},'children':[{'text':_0xb994d3['to'](_0x5644('0x2a'),_0x43ff3a=>this['_config'][_0x5644('0x3b')](_0x43ff3a))}]}]},{'tag':'div','attributes':{'class':[_0x5644('0x32'),_0x5644('0x2e'),_0xb994d3['if']('isEditMode',_0x5644('0x37')),_0xb994d3['if'](_0x5644('0x23'),_0x5644('0x11'))]},'children':[this[_0x5644('0xd')],this['removeButton']]},{'tag':'div','attributes':{'class':[_0x5644('0x38')]},'children':this[_0x5644('0x19')]}];return this[_0x5644('0x24')][_0x5644('0x18')]&&_0x24e411[_0x5644('0x30')]({'tag':_0x5644('0x20'),'attributes':{'class':['ck-comment__external']},'children':[{'text':_0x58a1a7(this['locale'],'EXTERNAL_COMMENT')}]}),{'tag':'li','attributes':{'class':[_0x5644('0x15'),_0xb994d3['if']('isConfirm',_0x5644('0x45'))],'tabindex':-0x1},'children':[{'tag':_0x5644('0x20'),'attributes':{'class':[_0x5644('0xa'),_0x5644('0x12'),_0xb994d3['if'](_0x5644('0x23'),_0x5644('0x3a')),_0xb994d3['to'](_0x5644('0x2f'),_0x38290d=>_0x38290d?_0x5644('0x9')+_0x38290d:'')],'data-author-id':this[_0x5644('0x24')]['author']['id'],'data-comment-id':this[_0x5644('0x24')]['id']},'children':[this['userView'],{'tag':_0x5644('0x20'),'attributes':{'class':[_0x5644('0x0'),'ck-annotation__main']},'children':_0x24e411}]}]};}['_createEditButton'](){const _0x1aa6c9=new _0x1314d9(this[_0x5644('0x17')]);return _0x1aa6c9[_0x5644('0x34')]=_0x58a1a7(this['locale'],'Edit'),_0x1aa6c9[_0x5644('0x2b')]=_0x2ad2a6[_0x5644('0xe')],_0x1aa6c9[_0x5644('0x5')]({'attributes':{'class':_0x5644('0x3a')}}),_0x1aa6c9[_0x5644('0x2c')]('isEnabled')['to'](this['_model'],_0x5644('0x35'),_0x1be4e6=>!_0x1be4e6),_0x1aa6c9[_0x5644('0x2c')](_0x5644('0x13'))['to'](this[_0x5644('0x24')],'isEditable'),_0x1aa6c9['on'](_0x5644('0x22'),()=>this[_0x5644('0x28')]()),_0x1aa6c9;}['_createRemoveButton'](){const _0x1a646d=new _0x1314d9(this[_0x5644('0x17')]);return _0x1a646d[_0x5644('0x34')]=_0x58a1a7(this[_0x5644('0x17')],_0x5644('0x1')),_0x1a646d['icon']=_0x5ef2bb,_0x1a646d[_0x5644('0x5')]({'attributes':{'class':_0x5644('0x39')}}),_0x1a646d['bind'](_0x5644('0x7'))['to'](this[_0x5644('0x24')],_0x5644('0x35'),_0x55b5a4=>!_0x55b5a4),_0x1a646d['bind'](_0x5644('0x13'))['to'](this['_model'],_0x5644('0x1d')),_0x1a646d['on'](_0x5644('0x22'),()=>{this['showConfirm'](_0x58a1a7(this['locale'],'Delete\x20comment?'),this['element'])[_0x5644('0x1a')](()=>{this[_0x5644('0x25')]('removeComment',this[_0x5644('0x24')]['id']);});}),_0x1a646d;}[_0x5644('0x1c')](_0x1bd6c6,_0x1816f2){this[_0x5644('0x27')](_0x1bd6c6,'mouseenter',()=>this[_0x5644('0x2f')]=_0x1816f2),this[_0x5644('0x27')](_0x1bd6c6,_0x5644('0x29'),()=>this[_0x5644('0x2f')]=_0x1816f2),this[_0x5644('0x27')](_0x1bd6c6,_0x5644('0x3f'),()=>this[_0x5644('0x2f')]=null),this[_0x5644('0x27')](_0x1bd6c6,_0x5644('0x3'),()=>this['actionIndicator']=null);}[_0x5644('0x8')](){const _0x2b2c8c=super[_0x5644('0x8')]();return _0x2b2c8c[_0x5644('0x2c')](_0x5644('0x36'))['to'](this),_0x2b2c8c;}[_0x5644('0x3d')](){super[_0x5644('0x3d')](),this[_0x5644('0x1c')](this[_0x5644('0xd')]['element'],_0x5644('0xc')),this[_0x5644('0x1c')](this[_0x5644('0x10')][_0x5644('0x40')],_0x5644('0x1f'));}}_0x545214(ot,_0x282d84);
23
+ const _0xb4ef=['div','ck-comment--','render','userView','editButton','blur','ck-comment__external','EXTERNAL_COMMENT','icon','locale','formatDateTime','ck-comment__user','label','Remove','bind','_createEditButton','ck-comment--edit','extendTemplate','set','execute','ck-comment__actions--hidden','setTemplate','_createCommentInputView','ck-comment__actions','_attachActions','removeButton','Edit','ck-comment--remove-confirmation','isEnabled','removeComment','getTemplate','isEditable','ck-annotation__content-wrapper','push','ck-annotation__user','ck-annotation__main','ck-annotation__actions','ck-annotation__info','_model','placeholder','time','span','createdAt','isEditMode','switchToEditMode','element','change:isRemovable','edit','ck-annotation__info-time','externalAuthor','then','isReadOnly','ck-comment--remove','author','focus','_config','listenTo','ck-annotation','cancelConfirm','ck-comment','ck-annotation__actions--hidden','attributes','visibleView','ck-comment__info-name','_createRemoveButton','Delete\x20comment?','isConfirm','ck-annotation__info-name','remove','isRemovable','@external','actionIndicator','ck-comment__wrapper','ck-comment__main'];(function(_0x2e329f,_0xb4efa0){const _0x5e4dfa=function(_0x16bf6d){while(--_0x16bf6d){_0x2e329f['push'](_0x2e329f['shift']());}};_0x5e4dfa(++_0xb4efa0);}(_0xb4ef,0x126));const _0x5e4d=function(_0x2e329f,_0xb4efa0){_0x2e329f=_0x2e329f-0x0;let _0x5e4dfa=_0xb4ef[_0x2e329f];return _0x5e4dfa;};import{mix as _0x1ec9ea}from'ckeditor5/src/utils';import{ButtonView as _0x1026e6}from'ckeditor5/src/ui';import{icons as _0x3cb6d8}from'ckeditor5/src/core';import{UserView as _0x1dfa80,ConfirmMixin as _0x2230de}from'ckeditor5-collaboration/src/collaboration-core';import _0x104c6a from'./basecommentview';import _0x33d9af from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x28dd84}from'../../../utils/common-translations';export default class ot extends _0x104c6a{constructor(_0x1f93ed,_0x1f1d5d,_0x1726be){super(_0x1f93ed,_0x1f1d5d,_0x1726be),this[_0x5e4d('0x14')](_0x5e4d('0x49'),null),this[_0x5e4d('0x14')](_0x5e4d('0x29'),_0x28dd84(_0x1f93ed,'Reply...')),this[_0x5e4d('0x14')](_0x5e4d('0x2c'),null),this['bind'](_0x5e4d('0x2c'))['to'](_0x1f1d5d[_0x5e4d('0x33')]?_0x1f1d5d[_0x5e4d('0x3f')][_0x5e4d('0x48')]:_0x1f1d5d),this[_0x5e4d('0x6')]=this['_createEditButton'](),this[_0x5e4d('0x1b')]=this[_0x5e4d('0x42')](),this[_0x5e4d('0x5')]=new _0x1dfa80(_0x1f93ed,_0x1f1d5d[_0x5e4d('0x33')]||_0x1f1d5d[_0x5e4d('0x37')]),this[_0x5e4d('0x5')][_0x5e4d('0x13')]({'attributes':{'class':[_0x5e4d('0xd'),_0x5e4d('0x24')]}}),this[_0x5e4d('0x3a')](_0x1f1d5d,_0x5e4d('0x30'),()=>this[_0x5e4d('0x3c')]()),this[_0x5e4d('0x17')](this[_0x5e4d('0x20')]());}[_0x5e4d('0x20')](){const _0x2a2518=this['bindTemplate'],_0x324c1c=[{'tag':_0x5e4d('0x2'),'attributes':{'class':['ck-comment__info',_0x5e4d('0x27')]},'children':[{'tag':_0x5e4d('0x2b'),'children':[{'text':this['userView']['name']}],'attributes':{'class':[_0x5e4d('0x41'),_0x5e4d('0x45')]}},{'tag':_0x5e4d('0x2a'),'attributes':{'datetime':_0x2a2518['to']('createdAt'),'class':['ck-comment__info-time',_0x5e4d('0x32')]},'children':[{'text':_0x2a2518['to'](_0x5e4d('0x2c'),_0x31bf55=>this[_0x5e4d('0x39')][_0x5e4d('0xc')](_0x31bf55))}]}]},{'tag':_0x5e4d('0x2'),'attributes':{'class':[_0x5e4d('0x19'),_0x5e4d('0x26'),_0x2a2518['if'](_0x5e4d('0x2d'),_0x5e4d('0x16')),_0x2a2518['if'](_0x5e4d('0x2d'),_0x5e4d('0x3e'))]},'children':[this['editButton'],this['removeButton']]},{'tag':_0x5e4d('0x2'),'attributes':{'class':[_0x5e4d('0x22')]},'children':this[_0x5e4d('0x40')]}];return this[_0x5e4d('0x28')][_0x5e4d('0x33')]&&_0x324c1c[_0x5e4d('0x23')]({'tag':_0x5e4d('0x2'),'attributes':{'class':[_0x5e4d('0x8')]},'children':[{'text':_0x28dd84(this[_0x5e4d('0xb')],_0x5e4d('0x9'))}]}),{'tag':'li','attributes':{'class':[_0x5e4d('0x0'),_0x2a2518['if'](_0x5e4d('0x44'),_0x5e4d('0x1d'))],'tabindex':-0x1},'children':[{'tag':_0x5e4d('0x2'),'attributes':{'class':[_0x5e4d('0x3d'),_0x5e4d('0x3b'),_0x2a2518['if'](_0x5e4d('0x2d'),_0x5e4d('0x12')),_0x2a2518['to'](_0x5e4d('0x49'),_0x291b8b=>_0x291b8b?_0x5e4d('0x3')+_0x291b8b:'')],'data-author-id':this[_0x5e4d('0x28')][_0x5e4d('0x37')]['id'],'data-comment-id':this[_0x5e4d('0x28')]['id']},'children':[this['userView'],{'tag':'div','attributes':{'class':[_0x5e4d('0x1'),_0x5e4d('0x25')]},'children':_0x324c1c}]}]};}[_0x5e4d('0x11')](){const _0x62da2a=new _0x1026e6(this[_0x5e4d('0xb')]);return _0x62da2a[_0x5e4d('0xe')]=_0x28dd84(this[_0x5e4d('0xb')],_0x5e4d('0x1c')),_0x62da2a[_0x5e4d('0xa')]=_0x3cb6d8['pencil'],_0x62da2a[_0x5e4d('0x13')]({'attributes':{'class':_0x5e4d('0x12')}}),_0x62da2a[_0x5e4d('0x10')](_0x5e4d('0x1e'))['to'](this['_model'],_0x5e4d('0x35'),_0x2cc6f4=>!_0x2cc6f4),_0x62da2a[_0x5e4d('0x10')]('isVisible')['to'](this[_0x5e4d('0x28')],_0x5e4d('0x21')),_0x62da2a['on'](_0x5e4d('0x15'),()=>this[_0x5e4d('0x2e')]()),_0x62da2a;}['_createRemoveButton'](){const _0x2ccda3=new _0x1026e6(this[_0x5e4d('0xb')]);return _0x2ccda3[_0x5e4d('0xe')]=_0x28dd84(this[_0x5e4d('0xb')],_0x5e4d('0xf')),_0x2ccda3[_0x5e4d('0xa')]=_0x33d9af,_0x2ccda3['extendTemplate']({'attributes':{'class':_0x5e4d('0x36')}}),_0x2ccda3[_0x5e4d('0x10')](_0x5e4d('0x1e'))['to'](this[_0x5e4d('0x28')],_0x5e4d('0x35'),_0x1b33cd=>!_0x1b33cd),_0x2ccda3[_0x5e4d('0x10')]('isVisible')['to'](this[_0x5e4d('0x28')],_0x5e4d('0x47')),_0x2ccda3['on'](_0x5e4d('0x15'),()=>{this['showConfirm'](_0x28dd84(this[_0x5e4d('0xb')],_0x5e4d('0x43')),this[_0x5e4d('0x2f')])[_0x5e4d('0x34')](()=>{this['fire'](_0x5e4d('0x1f'),this['_model']['id']);});}),_0x2ccda3;}['_attachActions'](_0xf8ae5d,_0x38f82f){this[_0x5e4d('0x3a')](_0xf8ae5d,'mouseenter',()=>this[_0x5e4d('0x49')]=_0x38f82f),this[_0x5e4d('0x3a')](_0xf8ae5d,_0x5e4d('0x38'),()=>this[_0x5e4d('0x49')]=_0x38f82f),this[_0x5e4d('0x3a')](_0xf8ae5d,'mouseleave',()=>this[_0x5e4d('0x49')]=null),this[_0x5e4d('0x3a')](_0xf8ae5d,_0x5e4d('0x7'),()=>this[_0x5e4d('0x49')]=null);}[_0x5e4d('0x18')](){const _0x4458a3=super[_0x5e4d('0x18')]();return _0x4458a3[_0x5e4d('0x10')](_0x5e4d('0x29'))['to'](this),_0x4458a3;}[_0x5e4d('0x4')](){super['render'](),this['_attachActions'](this['editButton'][_0x5e4d('0x2f')],_0x5e4d('0x31')),this[_0x5e4d('0x1a')](this[_0x5e4d('0x1b')][_0x5e4d('0x2f')],_0x5e4d('0x46'));}}_0x1ec9ea(ot,_0x2230de);
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2d5d=['Comments','requires'];(function(_0xe0f677,_0x2d5d39){var _0x5d2195=function(_0xd32c67){while(--_0xd32c67){_0xe0f677['push'](_0xe0f677['shift']());}};_0x5d2195(++_0x2d5d39);}(_0x2d5d,0x9f));var _0x5d21=function(_0xe0f677,_0x2d5d39){_0xe0f677=_0xe0f677-0x0;var _0x5d2195=_0x2d5d[_0xe0f677];return _0x5d2195;};import{Plugin as _0x3b9a28}from'ckeditor5/src/core';import _0x682411 from'./comments/commentsrepository';import _0x2c917d from'./comments/commentsediting';import _0x337ed4 from'./comments/commentsui';import _0x532681 from'./commentsonly';import _0x453803 from'./annotations/widesidebar';import _0x17aa41 from'./annotations/narrowsidebar';import _0x5d1f28 from'./annotations/inlineannotations';export default class c extends _0x3b9a28{static get[_0x5d21('0x0')](){return[_0x682411,_0x2c917d,_0x337ed4,_0x532681,_0x453803,_0x17aa41,_0x5d1f28];}static get['pluginName'](){return _0x5d21('0x1');}}
23
+ var _0x3611=['requires','pluginName','Comments'];(function(_0x504b1b,_0x3611b9){var _0x47a446=function(_0xf14e8c){while(--_0xf14e8c){_0x504b1b['push'](_0x504b1b['shift']());}};_0x47a446(++_0x3611b9);}(_0x3611,0x1b5));var _0x47a4=function(_0x504b1b,_0x3611b9){_0x504b1b=_0x504b1b-0x0;var _0x47a446=_0x3611[_0x504b1b];return _0x47a446;};import{Plugin as _0x5865f8}from'ckeditor5/src/core';import _0x3d41b5 from'./comments/commentsrepository';import _0x55f654 from'./comments/commentsediting';import _0x13d8ca from'./comments/commentsui';import _0x453020 from'./commentsonly';import _0x1e0e3d from'./annotations/widesidebar';import _0x336f31 from'./annotations/narrowsidebar';import _0x2b5fc1 from'./annotations/inlineannotations';export default class c extends _0x5865f8{static get[_0x47a4('0x1')](){return[_0x3d41b5,_0x55f654,_0x13d8ca,_0x453020,_0x1e0e3d,_0x336f31,_0x2b5fc1];}static get[_0x47a4('0x2')](){return _0x47a4('0x0');}}