@ckeditor/ckeditor5-comments 0.0.0-nightly-20231102.0 → 0.0.0-nightly-20231104.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/LICENSE.md +3 -3
  2. package/build/comments.js +1 -1
  3. package/package.json +3 -3
  4. package/src/annotations/annotation.js +1 -1
  5. package/src/annotations/annotationcollection.js +1 -1
  6. package/src/annotations/annotations.js +1 -1
  7. package/src/annotations/annotationsuis.js +1 -1
  8. package/src/annotations/editorannotations.js +1 -1
  9. package/src/annotations/inlineannotations.js +1 -1
  10. package/src/annotations/narrowsidebar.js +1 -1
  11. package/src/annotations/sidebar.js +1 -1
  12. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  13. package/src/annotations/view/annotationview.js +1 -1
  14. package/src/annotations/view/sidebaritemview.js +1 -1
  15. package/src/annotations/view/sidebarview.js +1 -1
  16. package/src/annotations/widesidebar.js +1 -1
  17. package/src/comments/addcommentthreadcommand.js +1 -1
  18. package/src/comments/commentsarchive.js +1 -1
  19. package/src/comments/commentsarchiveui.js +1 -1
  20. package/src/comments/commentsediting.js +1 -1
  21. package/src/comments/commentsrepository.js +1 -1
  22. package/src/comments/commentsui.js +1 -1
  23. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  24. package/src/comments/integrations/importword.js +1 -1
  25. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  26. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  27. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  28. package/src/comments/ui/commentthreadcontroller.js +1 -1
  29. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  30. package/src/comments/ui/view/basecommentview.js +1 -1
  31. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  32. package/src/comments/ui/view/commentcontentview.js +1 -1
  33. package/src/comments/ui/view/commentinputview.js +1 -1
  34. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  35. package/src/comments/ui/view/commentslistview.js +1 -1
  36. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  37. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  38. package/src/comments/ui/view/commentthreadview.js +1 -1
  39. package/src/comments/ui/view/commentview.js +1 -1
  40. package/src/comments.js +1 -1
  41. package/src/commentsonly.js +1 -1
  42. package/src/utils/common-translations.js +1 -1
  43. package/src/utils/createmutationobserver.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5eda=['collaboration_features','config','get','afterInit','basic','dataInsert','high','importWord','execute','addCommentThread','listenTo','importWord.formatting.comments','editor','forEach','comments','commands','map','formatting','plugins','collaboration.channelId','define'];(function(_0x1c8847,_0x5edace){const _0x4ecc0e=function(_0xbf81cf){while(--_0xbf81cf){_0x1c8847['push'](_0x1c8847['shift']());}};_0x4ecc0e(++_0x5edace);}(_0x5eda,0xdb));const _0x4ecc=function(_0x1c8847,_0x5edace){_0x1c8847=_0x1c8847-0x0;let _0x4ecc0e=_0x5eda[_0x1c8847];return _0x4ecc0e;};import{Plugin as _0x2d24ae}from'ckeditor5/src/core';import{priorities as _0x2b5624}from'ckeditor5/src/utils';import{Users as _0x57f8fa}from'ckeditor5-collaboration/src/collaboration-core';import _0x47dea4 from'../commentsrepository';export default class Y extends _0x2d24ae{constructor(_0x1ea610){super(_0x1ea610),this[_0x4ecc('0x3')][_0x4ecc('0xd')][_0x4ecc('0xb')](_0x4ecc('0x2'),_0x4ecc('0x10'));}[_0x4ecc('0xf')](){const _0x2a709b=this[_0x4ecc('0x3')],_0x1da582=_0x2a709b[_0x4ecc('0x6')][_0x4ecc('0xe')](_0x4ecc('0x13')),_0x2045b9=_0x2a709b[_0x4ecc('0x9')][_0x4ecc('0xe')](_0x57f8fa);_0x1da582&&(_0x1da582['on'](_0x4ecc('0x14'),(_0xf1c5e8,[,_0x5615ae])=>{_0x5615ae[_0x4ecc('0xc')]={'comments':!0x0,'user_id':_0x2045b9['me']['id']},_0x5615ae[_0x4ecc('0x8')][_0x4ecc('0x5')]=this[_0x4ecc('0x3')]['config'][_0x4ecc('0xe')](_0x4ecc('0x2'));},{'priority':_0x2b5624[_0x4ecc('0x12')]+0xa}),this[_0x4ecc('0x1')](_0x1da582,_0x4ecc('0x11'),this['_handleImportedData']));}['_handleImportedData'](_0x4854c4,_0x542c93){const {comment_threads:_0x15c688}=_0x542c93;_0x15c688&&_0x15c688[_0x4ecc('0x4')](({thread_id:_0x555507,comments:_0x359748,is_resolved:_0x2b7548})=>{const _0x5ae228=new Date(),_0x12cdfb=_0x359748[_0x4ecc('0x7')](({author:_0x16b586,content:_0x1e60ef,created_at:_0x306788})=>({'content':_0x1e60ef,'authorId':this[_0x4ecc('0x3')][_0x4ecc('0x9')][_0x4ecc('0xe')](_0x57f8fa)['me']['id'],'createdAt':_0x5ae228,'attributes':{'@external':{'authorName':_0x16b586,'createdAt':_0x306788?new Date(_0x306788):new Date(),'source':_0x4ecc('0x13')}}})),_0x14ce2e=this['editor'][_0x4ecc('0xd')]['get'](_0x4ecc('0xa'));this[_0x4ecc('0x3')][_0x4ecc('0x9')]['get'](_0x47dea4)[_0x4ecc('0x0')]({'channelId':_0x14ce2e,'threadId':_0x555507,'comments':_0x12cdfb,'resolvedAt':_0x2b7548?_0x5ae228:null});});}}
23
+ const _0x1d57=['addCommentThread','define','execute','listenTo','config','comments','importWord','editor','get','forEach','commands','plugins','afterInit','basic','_handleImportedData','importWord.formatting.comments'];(function(_0x5753bd,_0x1d577a){const _0x48b492=function(_0x2144d4){while(--_0x2144d4){_0x5753bd['push'](_0x5753bd['shift']());}};_0x48b492(++_0x1d577a);}(_0x1d57,0x1d3));const _0x48b4=function(_0x5753bd,_0x1d577a){_0x5753bd=_0x5753bd-0x0;let _0x48b492=_0x1d57[_0x5753bd];return _0x48b492;};import{Plugin as _0xc23ddf}from'ckeditor5/src/core';import{priorities as _0x3febeb}from'ckeditor5/src/utils';import{Users as _0x427a88}from'ckeditor5-collaboration/src/collaboration-core';import _0x24c435 from'../commentsrepository';export default class Y extends _0xc23ddf{constructor(_0x5b186f){super(_0x5b186f),this[_0x48b4('0x4')][_0x48b4('0x1')][_0x48b4('0xe')](_0x48b4('0xc'),_0x48b4('0xa'));}[_0x48b4('0x9')](){const _0x2010d7=this[_0x48b4('0x4')],_0x1452ec=_0x2010d7[_0x48b4('0x7')][_0x48b4('0x5')]('importWord'),_0xf0b73c=_0x2010d7[_0x48b4('0x8')][_0x48b4('0x5')](_0x427a88);_0x1452ec&&(_0x1452ec['on'](_0x48b4('0xf'),(_0x28fc2a,[,_0x21fb18])=>{_0x21fb18['collaboration_features']={'comments':!0x0,'user_id':_0xf0b73c['me']['id']},_0x21fb18['formatting'][_0x48b4('0x2')]=this['editor'][_0x48b4('0x1')][_0x48b4('0x5')](_0x48b4('0xc'));},{'priority':_0x3febeb['high']+0xa}),this[_0x48b4('0x0')](_0x1452ec,'dataInsert',this[_0x48b4('0xb')]));}[_0x48b4('0xb')](_0x59c3a2,_0x3b9c0c){const {comment_threads:_0x17f91b}=_0x3b9c0c;_0x17f91b&&_0x17f91b[_0x48b4('0x6')](({thread_id:_0x118b6f,comments:_0x434447,is_resolved:_0x3de873})=>{const _0x3bffb4=new Date(),_0x1ea771=_0x434447['map'](({author:_0x26b31e,content:_0x3a91b7,created_at:_0x583f98})=>({'content':_0x3a91b7,'authorId':this[_0x48b4('0x4')]['plugins']['get'](_0x427a88)['me']['id'],'createdAt':_0x3bffb4,'attributes':{'@external':{'authorName':_0x26b31e,'createdAt':_0x583f98?new Date(_0x583f98):new Date(),'source':_0x48b4('0x3')}}})),_0x5f545a=this[_0x48b4('0x4')][_0x48b4('0x1')]['get']('collaboration.channelId');this['editor'][_0x48b4('0x8')][_0x48b4('0x5')](_0x24c435)[_0x48b4('0xd')]({'channelId':_0x5f545a,'threadId':_0x118b6f,'comments':_0x1ea771,'resolvedAt':_0x3de873?_0x3bffb4:null});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x56b6=['getRoot','fire','plugins','initialData','end','change','then','ready','defaultPlugins','_updatePlaceholder','assign','change:placeholder','get','create','document','getChild','config','childCount','init','view','focus','model','placeholderElement','placeholder','low','initPlugins','editing','name','createRoot','destroy','set'];(function(_0x559471,_0x56b66f){const _0x4461cb=function(_0x595d8f){while(--_0x595d8f){_0x559471['push'](_0x559471['shift']());}};_0x4461cb(++_0x56b66f);}(_0x56b6,0x7a));const _0x4461=function(_0x559471,_0x56b66f){_0x559471=_0x559471-0x0;let _0x4461cb=_0x56b6[_0x559471];return _0x4461cb;};import{Editor as _0x463593,DataApiMixin as _0x3556d2}from'ckeditor5/src/core';import _0x327d3a from'./commenteditorui';import{ObservableMixin as _0x2c6708}from'ckeditor5/src/utils';import{enablePlaceholder as _0x34852b,disablePlaceholder as _0x2154c1}from'ckeditor5/src/engine';import{Clipboard as _0x1865d3}from'ckeditor5/src/clipboard';import{Enter as _0x432265,ShiftEnter as _0x243726}from'ckeditor5/src/enter';import{SelectAll as _0x3b4f84}from'ckeditor5/src/select-all';import{Typing as _0x43f59c}from'ckeditor5/src/typing';import{Undo as _0x187b4c}from'ckeditor5/src/undo';import{Paragraph as _0x5dfce5}from'ckeditor5/src/paragraph';const Kt=[_0x1865d3,_0x432265,_0x243726,_0x3b4f84,_0x43f59c,_0x187b4c,_0x5dfce5];export default class Lt extends _0x2c6708(_0x3556d2(_0x463593)){constructor(_0x20d2c4={}){(_0x20d2c4=Object[_0x4461('0xc')]({},_0x20d2c4))[_0x4461('0x4')]||(_0x20d2c4[_0x4461('0x4')]=Lt[_0x4461('0xa')]),super(_0x20d2c4),this['ui']=new _0x327d3a(this),this[_0x4461('0x1')]('placeholder',''),this['model'][_0x4461('0x10')]['on'](_0x4461('0x7'),()=>this[_0x4461('0xb')](),{'priority':_0x4461('0x1a')}),this['on'](_0x4461('0xd'),()=>this[_0x4461('0xb')]()),this[_0x4461('0x17')][_0x4461('0x10')][_0x4461('0x1e')]();}[_0x4461('0xf')](){const _0x9abcd7=this[_0x4461('0x12')][_0x4461('0xe')](_0x4461('0x5'))||'';return this[_0x4461('0x1b')]()['then'](()=>this['ui'][_0x4461('0x14')]())[_0x4461('0x8')](()=>this['data'][_0x4461('0x14')](_0x9abcd7))['then'](()=>this[_0x4461('0x3')](_0x4461('0x9')));}[_0x4461('0x0')](){return super[_0x4461('0x0')]()[_0x4461('0x8')](()=>this['ui']['destroy']());}[_0x4461('0x16')](){this[_0x4461('0x17')][_0x4461('0x7')](_0x180b60=>{const _0x14160b=this[_0x4461('0x17')][_0x4461('0x10')][_0x4461('0x2')](),_0x1f7e6a=_0x14160b&&_0x14160b[_0x4461('0x11')](_0x14160b[_0x4461('0x13')]-0x1);_0x180b60['setSelection'](_0x1f7e6a,_0x4461('0x6')),this[_0x4461('0x1c')][_0x4461('0x15')][_0x4461('0x16')]();});}[_0x4461('0xb')](){const _0x3a79b9=this[_0x4461('0x1c')][_0x4461('0x15')],_0x29d1ca=_0x3a79b9[_0x4461('0x10')][_0x4461('0x2')](),_0x197942=_0x29d1ca[_0x4461('0x11')](0x0);_0x29d1ca[_0x4461('0x13')]>0x1||!_0x197942||'p'!=_0x197942[_0x4461('0x1d')]?this[_0x4461('0x18')]&&this[_0x4461('0x18')]['placeholder']&&(_0x2154c1(_0x3a79b9,this[_0x4461('0x18')]),this[_0x4461('0x18')]=void 0x0):(this[_0x4461('0x19')]&&(_0x197942[_0x4461('0x19')]=this[_0x4461('0x19')]),_0x34852b({'view':_0x3a79b9,'element':_0x197942,'keepOnFocus':!0x0}),this[_0x4461('0x18')]=_0x197942);}}Lt[_0x4461('0xa')]=Kt;
23
+ const _0x14d2=['init','low','placeholderElement','create','initialData','data','placeholder','editing','defaultPlugins','view','ready','change','childCount','getChild','model','_updatePlaceholder','config','createRoot','set','setSelection','document','initPlugins','destroy','then','focus','plugins','assign','getRoot'];(function(_0x2f7ad8,_0x14d2c3){const _0x67c3b1=function(_0x5ce123){while(--_0x5ce123){_0x2f7ad8['push'](_0x2f7ad8['shift']());}};_0x67c3b1(++_0x14d2c3);}(_0x14d2,0x12b));const _0x67c3=function(_0x2f7ad8,_0x14d2c3){_0x2f7ad8=_0x2f7ad8-0x0;let _0x67c3b1=_0x14d2[_0x2f7ad8];return _0x67c3b1;};import{Editor as _0x48d646,DataApiMixin as _0x7367aa}from'ckeditor5/src/core';import _0x3cb099 from'./commenteditorui';import{ObservableMixin as _0x5a5d79}from'ckeditor5/src/utils';import{enablePlaceholder as _0x542492,disablePlaceholder as _0x4b5639}from'ckeditor5/src/engine';import{Clipboard as _0xf6c377}from'ckeditor5/src/clipboard';import{Enter as _0xa5ea6d,ShiftEnter as _0x55e1f1}from'ckeditor5/src/enter';import{SelectAll as _0x2a04b3}from'ckeditor5/src/select-all';import{Typing as _0x36baf5}from'ckeditor5/src/typing';import{Undo as _0x4c1bd2}from'ckeditor5/src/undo';import{Paragraph as _0x386370}from'ckeditor5/src/paragraph';const Kt=[_0xf6c377,_0xa5ea6d,_0x55e1f1,_0x2a04b3,_0x36baf5,_0x4c1bd2,_0x386370];export default class Lt extends _0x5a5d79(_0x7367aa(_0x48d646)){constructor(_0x381f58={}){(_0x381f58=Object[_0x67c3('0x7')]({},_0x381f58))[_0x67c3('0x6')]||(_0x381f58[_0x67c3('0x6')]=Lt[_0x67c3('0x11')]),super(_0x381f58),this['ui']=new _0x3cb099(this),this[_0x67c3('0x1b')](_0x67c3('0xf'),''),this[_0x67c3('0x17')][_0x67c3('0x1')]['on'](_0x67c3('0x14'),()=>this[_0x67c3('0x18')](),{'priority':_0x67c3('0xa')}),this['on']('change:placeholder',()=>this[_0x67c3('0x18')]()),this[_0x67c3('0x17')][_0x67c3('0x1')][_0x67c3('0x1a')]();}[_0x67c3('0xc')](){const _0x565acd=this[_0x67c3('0x19')]['get'](_0x67c3('0xd'))||'';return this[_0x67c3('0x2')]()[_0x67c3('0x4')](()=>this['ui'][_0x67c3('0x9')]())[_0x67c3('0x4')](()=>this[_0x67c3('0xe')][_0x67c3('0x9')](_0x565acd))[_0x67c3('0x4')](()=>this['fire'](_0x67c3('0x13')));}[_0x67c3('0x3')](){return super[_0x67c3('0x3')]()[_0x67c3('0x4')](()=>this['ui'][_0x67c3('0x3')]());}[_0x67c3('0x5')](){this['model']['change'](_0x5e3b89=>{const _0x8a8efe=this[_0x67c3('0x17')]['document'][_0x67c3('0x8')](),_0x400422=_0x8a8efe&&_0x8a8efe[_0x67c3('0x16')](_0x8a8efe[_0x67c3('0x15')]-0x1);_0x5e3b89[_0x67c3('0x0')](_0x400422,'end'),this[_0x67c3('0x10')][_0x67c3('0x12')][_0x67c3('0x5')]();});}['_updatePlaceholder'](){const _0x4aa105=this[_0x67c3('0x10')][_0x67c3('0x12')],_0x34ea79=_0x4aa105[_0x67c3('0x1')][_0x67c3('0x8')](),_0x53bcac=_0x34ea79[_0x67c3('0x16')](0x0);_0x34ea79[_0x67c3('0x15')]>0x1||!_0x53bcac||'p'!=_0x53bcac['name']?this[_0x67c3('0xb')]&&this['placeholderElement'][_0x67c3('0xf')]&&(_0x4b5639(_0x4aa105,this['placeholderElement']),this[_0x67c3('0xb')]=void 0x0):(this[_0x67c3('0xf')]&&(_0x53bcac['placeholder']=this[_0x67c3('0xf')]),_0x542492({'view':_0x4aa105,'element':_0x53bcac,'keepOnFocus':!0x0}),this[_0x67c3('0xb')]=_0x53bcac);}}Lt[_0x67c3('0x11')]=Kt;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x543a=['rootName','getRoot','editing','document','destroy','element','view','init','editable','name','locale','render','setEditableElement'];(function(_0x2f9019,_0x543a94){const _0x2920b1=function(_0x5c701e){while(--_0x5c701e){_0x2f9019['push'](_0x2f9019['shift']());}};_0x2920b1(++_0x543a94);}(_0x543a,0x12b));const _0x2920=function(_0x2f9019,_0x543a94){_0x2f9019=_0x2f9019-0x0;let _0x2920b1=_0x543a[_0x2f9019];return _0x2920b1;};import{EditorUI as _0x25c2fa}from'ckeditor5/src/ui';import _0x37d1a0 from'./commenteditoruiview';export default class jt extends _0x25c2fa{constructor(_0x3a9a76){super(_0x3a9a76),this[_0x2920('0x6')]=new _0x37d1a0(_0x3a9a76[_0x2920('0xa')],_0x3a9a76[_0x2920('0x2')]['view']);}get[_0x2920('0x5')](){return this[_0x2920('0x6')]['element'];}[_0x2920('0x7')](){const _0x1d519a=this['editor'][_0x2920('0x2')][_0x2920('0x6')],_0x202398=this['view'][_0x2920('0x8')],_0x2c2603=_0x1d519a[_0x2920('0x3')][_0x2920('0x1')]();_0x202398[_0x2920('0x9')]=_0x2c2603[_0x2920('0x0')],this[_0x2920('0x6')][_0x2920('0xb')]();const _0x3ed832=_0x202398[_0x2920('0x5')];this[_0x2920('0xc')](_0x202398['name'],_0x3ed832),this[_0x2920('0x6')][_0x2920('0x8')]['bind']('isFocused')['to'](this['focusTracker']),_0x1d519a['attachDomRoot'](_0x3ed832),this['fire']('ready');}[_0x2920('0x4')](){super[_0x2920('0x4')](),this[_0x2920('0x6')][_0x2920('0x4')]();}}
23
+ const _0x2d2c=['setEditableElement','ready','name','editable','locale','destroy','view','element','rootName','editing','isFocused','document','focusTracker','render','attachDomRoot','getRoot','bind'];(function(_0x62e604,_0x2d2c70){const _0x415e4c=function(_0x47536a){while(--_0x47536a){_0x62e604['push'](_0x62e604['shift']());}};_0x415e4c(++_0x2d2c70);}(_0x2d2c,0x7d));const _0x415e=function(_0x62e604,_0x2d2c70){_0x62e604=_0x62e604-0x0;let _0x415e4c=_0x2d2c[_0x62e604];return _0x415e4c;};import{EditorUI as _0x3af4a3}from'ckeditor5/src/ui';import _0x35cd70 from'./commenteditoruiview';export default class jt extends _0x3af4a3{constructor(_0x189467){super(_0x189467),this[_0x415e('0x0')]=new _0x35cd70(_0x189467[_0x415e('0xf')],_0x189467[_0x415e('0x3')][_0x415e('0x0')]);}get[_0x415e('0x1')](){return this[_0x415e('0x0')][_0x415e('0x1')];}['init'](){const _0x18a52c=this['editor'][_0x415e('0x3')][_0x415e('0x0')],_0x1fb8f2=this['view']['editable'],_0x4d5fb6=_0x18a52c[_0x415e('0x5')][_0x415e('0x9')]();_0x1fb8f2[_0x415e('0xd')]=_0x4d5fb6[_0x415e('0x2')],this[_0x415e('0x0')][_0x415e('0x7')]();const _0x1a6949=_0x1fb8f2[_0x415e('0x1')];this[_0x415e('0xb')](_0x1fb8f2[_0x415e('0xd')],_0x1a6949),this[_0x415e('0x0')][_0x415e('0xe')][_0x415e('0xa')](_0x415e('0x4'))['to'](this[_0x415e('0x6')]),_0x18a52c[_0x415e('0x8')](_0x1a6949),this['fire'](_0x415e('0xc'));}[_0x415e('0x10')](){super[_0x415e('0x10')](),this[_0x415e('0x0')][_0x415e('0x10')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4caf=['_voiceLabelView','ck-editor__main','extendTemplate','Comment\x20editor','ck-voice-label','ck-editor','ck-comment__input','focus','text','render','setTemplate','editable','element','_createVoiceLabel','main','uiLanguage','div','presentation','ck-reset','ck-editor__aria-label_'];(function(_0xe994a0,_0x4cafac){const _0x341e31=function(_0x406f9f){while(--_0x406f9f){_0xe994a0['push'](_0xe994a0['shift']());}};_0x341e31(++_0x4cafac);}(_0x4caf,0xa1));const _0x341e=function(_0xe994a0,_0x4cafac){_0xe994a0=_0xe994a0-0x0;let _0x341e31=_0x4caf[_0xe994a0];return _0x341e31;};import{InlineEditableUIView as _0x1caf0b,EditorUIView as _0x279acc,LabelView as _0x12f4d1}from'ckeditor5/src/ui';import{uid as _0x6efeaa}from'ckeditor5/src/utils';import{getTranslation as _0x427ebf}from'../../../utils/common-translations';export default class Nt extends _0x279acc{constructor(_0x1dc8b5,_0x44d8aa){super(_0x1dc8b5);const _0x51b874=_0x6efeaa();this['main']=this['createCollection'](),this['editable']=new _0x1caf0b(_0x1dc8b5,_0x44d8aa),this['_voiceLabelView']=this[_0x341e('0xc')](_0x51b874,_0x1dc8b5),this[_0x341e('0x9')]({'tag':_0x341e('0xf'),'attributes':{'class':[_0x341e('0x11'),_0x341e('0x4'),'ck-rounded-corners',_0x341e('0x5')],'role':'comment','dir':_0x1dc8b5['uiLanguageDirection'],'lang':_0x1dc8b5[_0x341e('0xe')],'aria-labelledby':'cke-editor__aria-label_'+_0x51b874},'children':[this[_0x341e('0x13')],{'tag':_0x341e('0xf'),'attributes':{'class':_0x341e('0x0'),'role':_0x341e('0x10')},'children':this[_0x341e('0xd')]}]});}['render'](){super[_0x341e('0x8')](),this[_0x341e('0xd')]['add'](this[_0x341e('0xa')]);}[_0x341e('0x6')](){this['editable'][_0x341e('0xb')]['focus']();}['_createVoiceLabel'](_0x554461,_0x2da49d){const _0x35feae=new _0x12f4d1();return _0x35feae[_0x341e('0x7')]=_0x427ebf(_0x2da49d,_0x341e('0x2')),_0x35feae[_0x341e('0x1')]({'attributes':{'id':_0x341e('0x12')+_0x554461,'class':_0x341e('0x3')}}),_0x35feae;}}
23
+ const _0x1c93=['_createVoiceLabel','focus','ck-editor','main','ck-voice-label','extendTemplate','ck-reset','ck-comment__input','ck-editor__main','uiLanguage','element','uiLanguageDirection','ck-rounded-corners','text','render','ck-editor__aria-label_','_voiceLabelView','editable'];(function(_0x49af5c,_0x1c9358){const _0x2ad4a3=function(_0xffdc65){while(--_0xffdc65){_0x49af5c['push'](_0x49af5c['shift']());}};_0x2ad4a3(++_0x1c9358);}(_0x1c93,0x77));const _0x2ad4=function(_0x49af5c,_0x1c9358){_0x49af5c=_0x49af5c-0x0;let _0x2ad4a3=_0x1c93[_0x49af5c];return _0x2ad4a3;};import{InlineEditableUIView as _0x55034a,EditorUIView as _0x2a6446,LabelView as _0x18f54c}from'ckeditor5/src/ui';import{uid as _0x3a0da3}from'ckeditor5/src/utils';import{getTranslation as _0x10eeb4}from'../../../utils/common-translations';export default class Nt extends _0x2a6446{constructor(_0x147a03,_0x4d116d){super(_0x147a03);const _0x28305e=_0x3a0da3();this[_0x2ad4('0xa')]=this['createCollection'](),this[_0x2ad4('0x6')]=new _0x55034a(_0x147a03,_0x4d116d),this[_0x2ad4('0x5')]=this[_0x2ad4('0x7')](_0x28305e,_0x147a03),this['setTemplate']({'tag':'div','attributes':{'class':[_0x2ad4('0xd'),_0x2ad4('0x9'),_0x2ad4('0x1'),_0x2ad4('0xe')],'role':'comment','dir':_0x147a03[_0x2ad4('0x0')],'lang':_0x147a03[_0x2ad4('0x10')],'aria-labelledby':'cke-editor__aria-label_'+_0x28305e},'children':[this[_0x2ad4('0x5')],{'tag':'div','attributes':{'class':_0x2ad4('0xf'),'role':'presentation'},'children':this[_0x2ad4('0xa')]}]});}[_0x2ad4('0x3')](){super[_0x2ad4('0x3')](),this['main']['add'](this[_0x2ad4('0x6')]);}[_0x2ad4('0x8')](){this[_0x2ad4('0x6')][_0x2ad4('0x11')][_0x2ad4('0x8')]();}[_0x2ad4('0x7')](_0x57f2ce,_0x33f428){const _0x55a819=new _0x18f54c();return _0x55a819[_0x2ad4('0x2')]=_0x10eeb4(_0x33f428,'Comment\x20editor'),_0x55a819[_0x2ad4('0xc')]({'attributes':{'id':_0x2ad4('0x4')+_0x57f2ce,'class':_0x2ad4('0xb')}}),_0x55a819;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x139f=['submit','addComment','view','submitCommentThread','resolveCommentThread','remove','listenTo','updateComment','update','_isAttached','getComment','stopListening','resolve','model','reopenCommentThread','destroy','removeComment','removeCommentThread','isResolved'];(function(_0x39ac26,_0x139feb){var _0x36b409=function(_0x31dd9f){while(--_0x31dd9f){_0x39ac26['push'](_0x39ac26['shift']());}};_0x36b409(++_0x139feb);}(_0x139f,0x156));var _0x36b4=function(_0x39ac26,_0x139feb){_0x39ac26=_0x39ac26-0x0;var _0x36b409=_0x139f[_0x39ac26];return _0x36b409;};import{ObservableMixin as _0x18594a}from'ckeditor5/src/utils';export default class ct extends _0x18594a(){constructor(_0x75514c,_0x3cf335){super(),this[_0x36b4('0xd')]=_0x75514c,this['model'][_0x36b4('0x9')]=!0x0,this['view']=_0x3cf335,this[_0x36b4('0x6')](_0x3cf335,_0x36b4('0x3'),()=>this[_0x36b4('0x0')]()),this[_0x36b4('0x6')](_0x3cf335,_0x36b4('0x11'),()=>this[_0x36b4('0x5')]()),this[_0x36b4('0x6')](_0x3cf335,_0x36b4('0x4'),()=>this[_0x36b4('0xc')]()),this[_0x36b4('0x6')](_0x3cf335,_0x36b4('0xe'),()=>this['reopen']()),this[_0x36b4('0x6')](_0x3cf335,_0x36b4('0x1'),(_0x5db752,_0x5ea845)=>this[_0x36b4('0x1')](_0x5ea845)),this[_0x36b4('0x6')](_0x3cf335,_0x36b4('0x7'),(_0x41491e,_0x2a2ac7,_0x79b3a9)=>this[_0x36b4('0x7')](_0x2a2ac7,_0x79b3a9)),this[_0x36b4('0x6')](_0x3cf335,'removeComment',(_0x2e52d2,_0x2a8f45)=>this[_0x36b4('0x10')](_0x2a8f45));}['submit'](){this[_0x36b4('0xd')][_0x36b4('0x0')]();}[_0x36b4('0x5')](){this[_0x36b4('0xd')][_0x36b4('0x5')]();}[_0x36b4('0xc')](){this[_0x36b4('0xd')][_0x36b4('0x12')]||this[_0x36b4('0xd')][_0x36b4('0xc')]();}['reopen'](){this[_0x36b4('0xd')]['isResolved']&&this['model']['reopen']();}[_0x36b4('0x1')](_0x187dcf){this[_0x36b4('0xd')][_0x36b4('0x1')]({'content':_0x187dcf,'authorId':this[_0x36b4('0x2')]['_localUser']['id']});}[_0x36b4('0x7')](_0x4bcc57,_0x6af8c3){this[_0x36b4('0xd')]['getComment'](_0x4bcc57)[_0x36b4('0x8')]({'content':_0x6af8c3});}[_0x36b4('0x10')](_0x47e43e){this[_0x36b4('0xd')][_0x36b4('0xa')](_0x47e43e)[_0x36b4('0x5')]();}[_0x36b4('0xf')](){this[_0x36b4('0xb')](),this[_0x36b4('0xd')]['_isAttached']=!0x1;}}
23
+ var _0x21eb=['reopenCommentThread','resolve','removeCommentThread','updateComment','listenTo','isResolved','reopen','model','stopListening','addComment','removeComment','getComment','remove','view','destroy','submit','_isAttached','resolveCommentThread'];(function(_0x4af2c9,_0x21ebf0){var _0x5cf85f=function(_0x14a27e){while(--_0x14a27e){_0x4af2c9['push'](_0x4af2c9['shift']());}};_0x5cf85f(++_0x21ebf0);}(_0x21eb,0x19f));var _0x5cf8=function(_0x4af2c9,_0x21ebf0){_0x4af2c9=_0x4af2c9-0x0;var _0x5cf85f=_0x21eb[_0x4af2c9];return _0x5cf85f;};import{ObservableMixin as _0x568ba2}from'ckeditor5/src/utils';export default class ct extends _0x568ba2(){constructor(_0x351985,_0x5a151c){super(),this['model']=_0x351985,this[_0x5cf8('0x6')][_0x5cf8('0xf')]=!0x0,this[_0x5cf8('0xc')]=_0x5a151c,this[_0x5cf8('0x3')](_0x5a151c,'submitCommentThread',()=>this['submit']()),this[_0x5cf8('0x3')](_0x5a151c,_0x5cf8('0x1'),()=>this[_0x5cf8('0xb')]()),this[_0x5cf8('0x3')](_0x5a151c,_0x5cf8('0x10'),()=>this[_0x5cf8('0x0')]()),this[_0x5cf8('0x3')](_0x5a151c,_0x5cf8('0x11'),()=>this[_0x5cf8('0x5')]()),this[_0x5cf8('0x3')](_0x5a151c,_0x5cf8('0x8'),(_0x2fc071,_0x133818)=>this[_0x5cf8('0x8')](_0x133818)),this[_0x5cf8('0x3')](_0x5a151c,_0x5cf8('0x2'),(_0x291825,_0x219bd0,_0x22928d)=>this[_0x5cf8('0x2')](_0x219bd0,_0x22928d)),this[_0x5cf8('0x3')](_0x5a151c,_0x5cf8('0x9'),(_0x11198e,_0x2b3ac0)=>this[_0x5cf8('0x9')](_0x2b3ac0));}[_0x5cf8('0xe')](){this['model'][_0x5cf8('0xe')]();}[_0x5cf8('0xb')](){this['model'][_0x5cf8('0xb')]();}[_0x5cf8('0x0')](){this[_0x5cf8('0x6')][_0x5cf8('0x4')]||this[_0x5cf8('0x6')][_0x5cf8('0x0')]();}[_0x5cf8('0x5')](){this[_0x5cf8('0x6')][_0x5cf8('0x4')]&&this[_0x5cf8('0x6')]['reopen']();}[_0x5cf8('0x8')](_0x2eff3a){this[_0x5cf8('0x6')]['addComment']({'content':_0x2eff3a,'authorId':this['view']['_localUser']['id']});}[_0x5cf8('0x2')](_0x57e7c6,_0x20407e){this[_0x5cf8('0x6')][_0x5cf8('0xa')](_0x57e7c6)['update']({'content':_0x20407e});}[_0x5cf8('0x9')](_0x463bd3){this[_0x5cf8('0x6')][_0x5cf8('0xa')](_0x463bd3)[_0x5cf8('0xb')]();}[_0x5cf8('0xd')](){this[_0x5cf8('0x7')](),this[_0x5cf8('0x6')][_0x5cf8('0xf')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5448=['editorConfig','_model','canComment','focus','editorDestroyed','locale','archivedAt','_config','CommentView','commentsListView','isResolved','listenTo','Reply...','fire','isResolvable','change:isActive','stop','delegate','value','reopenCommentThread','submitCommentThread','updateComment','cancel','removeComment','commentThreadHeaderView','isActive','Comment','addComment','_localUser','removeCommentThread','bind','commentThreadInputView','_createCommentThreadInputView','assign','isDirty','submitLabel','disabledSubmit','commentInputView','isUnlinked','Reply','isReadOnly','resolveCommentThread','length','unlinkedAt','destroy','set','isSubmitted','editorReady','Write\x20a\x20comment...'];(function(_0x1a5745,_0x5448b0){const _0x5cd2c0=function(_0x48474b){while(--_0x48474b){_0x1a5745['push'](_0x1a5745['shift']());}};_0x5cd2c0(++_0x5448b0);}(_0x5448,0xd2));const _0x5cd2=function(_0x1a5745,_0x5448b0){_0x1a5745=_0x1a5745-0x0;let _0x5cd2c0=_0x5448[_0x1a5745];return _0x5cd2c0;};import{View as _0x4991b0}from'ckeditor5/src/ui';import _0x384236 from'./commentthreadinputview';import _0x5f00e4 from'./commentslistview';import _0x2f9c57 from'./commentthreadheaderview';import{getTranslation as _0x5ed102}from'../../../utils/common-translations';export default class Tt extends _0x4991b0{constructor(_0xe59504,_0x4c648e,_0xf674e1,_0x5d73fd){super(_0xe59504),this[_0x5cd2('0x1f')](_0x5cd2('0xb'),!0x1),this[_0x5cd2('0x1f')]('isDirty',!0x1),this[_0x5cd2('0x24')]=_0x4c648e,this[_0x5cd2('0xe')]=_0xf674e1,this[_0x5cd2('0x2a')]=_0x5d73fd,this[_0x5cd2('0xa')]=new _0x2f9c57(_0xe59504,_0x4c648e),this['commentThreadHeaderView'][_0x5cd2('0x3')](_0x5cd2('0x5'))['to'](this),this[_0x5cd2('0x2e')](this,_0x5cd2('0x5'),()=>{this[_0x5cd2('0x26')]();}),this[_0x5cd2('0x2c')]=new _0x5f00e4(_0xe59504,_0x4c648e,Object[_0x5cd2('0x13')]({'CommentView':this['_config'][_0x5cd2('0x2b')]},_0x5d73fd)),this[_0x5cd2('0x2c')][_0x5cd2('0x3')](_0x5cd2('0x9'))['to'](this),this[_0x5cd2('0x2c')]['delegate'](_0x5cd2('0x7'))['to'](this),this[_0x5cd2('0x2c')][_0x5cd2('0x3')](_0x5cd2('0x1b'))['to'](this),this[_0x5cd2('0x2c')][_0x5cd2('0x3')]('editorReady')['to'](this),this['commentsListView'][_0x5cd2('0x3')](_0x5cd2('0x27'))['to'](this),this[_0x5cd2('0x2c')][_0x5cd2('0x10')]('isActive')['to'](this),this['listenTo'](this,_0x5cd2('0x1b'),()=>{this[_0x5cd2('0x26')]();}),this[_0x5cd2('0x1f')](_0x5cd2('0x1c'),this[_0x5cd2('0x2c')][_0x5cd2('0x1c')]),this[_0x5cd2('0x10')](_0x5cd2('0x1c'))['to'](this['commentsListView'],_0x5cd2('0x1c')),this[_0x5cd2('0x11')]=this['_createCommentThreadInputView'](),this[_0x5cd2('0x11')][_0x5cd2('0x3')](_0x5cd2('0x21'))['to'](this),this[_0x5cd2('0x11')][_0x5cd2('0x3')]('editorDestroyed')['to'](this),this['on'](_0x5cd2('0x9'),()=>this['focus']()),this['bind'](_0x5cd2('0x14'))['to'](this[_0x5cd2('0x2c')],'hasDirtyComment',this['commentThreadInputView'][_0x5cd2('0x17')],'value',(_0x12c9ed,_0x1c9dcb)=>_0x12c9ed||!!_0x1c9dcb),this[_0x5cd2('0x10')](_0x5cd2('0x18'))['to'](_0x4c648e,_0x5cd2('0x1d'),_0x1bc30f=>!!_0x1bc30f);}[_0x5cd2('0x26')](){this['element'][_0x5cd2('0x26')]();}async[_0x5cd2('0x1e')](){this['isDirty']=!0x1,this[_0x5cd2('0x2c')][_0x5cd2('0x1e')](),await this['commentThreadInputView'][_0x5cd2('0x1e')](),super[_0x5cd2('0x1e')]();}[_0x5cd2('0x12')](){const _0x28f172=new _0x384236(this[_0x5cd2('0x28')],this['_localUser'],this[_0x5cd2('0x2a')][_0x5cd2('0x23')]),_0x2b9f26=_0x28f172[_0x5cd2('0x17')];return _0x28f172[_0x5cd2('0x10')]('showInput')['to'](this,_0x5cd2('0xb'),this[_0x5cd2('0x24')],_0x5cd2('0x1a'),this[_0x5cd2('0x24')],_0x5cd2('0x25'),this[_0x5cd2('0x24')],_0x5cd2('0x29'),_0x2b9f26,_0x5cd2('0x4'),(_0xb63553,_0x1ee26f,_0x42f46c,_0x58a14e,_0x3baaff)=>!!_0x3baaff||!!_0x58a14e&&_0x42f46c&&!_0x1ee26f||_0xb63553&&_0x42f46c&&!_0x1ee26f),_0x2b9f26[_0x5cd2('0x10')]('placeholder')['to'](this,'length',this[_0x5cd2('0x24')],'isResolvable',this['_model'],_0x5cd2('0x2d'),(_0x4f5a6d,_0x53dda5,_0x1da3fa)=>{let _0x525995;return _0x525995=_0x1da3fa&&_0x53dda5?'Reply\x20to\x20reopen\x20discussion...':_0x4f5a6d?_0x5cd2('0x2f'):_0x5cd2('0x22'),_0x5ed102(this[_0x5cd2('0x28')],_0x525995);}),_0x2b9f26['bind'](_0x5cd2('0x15'))['to'](this,'length',_0xc48b5c=>_0x5ed102(this[_0x5cd2('0x28')],_0xc48b5c?_0x5cd2('0x19'):_0x5cd2('0xc'))),_0x2b9f26['on']('submit',(_0x3b0d21,_0x250c7f)=>{this[_0x5cd2('0x30')](_0x5cd2('0xd'),_0x250c7f),this['_model'][_0x5cd2('0x2d')]&&this[_0x5cd2('0x24')][_0x5cd2('0x0')]&&this['fire'](_0x5cd2('0x5'),this['_model']['id']),this[_0x5cd2('0x24')][_0x5cd2('0x20')]||this['fire'](_0x5cd2('0x6'));}),_0x2b9f26['on']('cancel',()=>{this[_0x5cd2('0x26')]();}),_0x2b9f26[_0x5cd2('0x10')](_0x5cd2('0x16'))['to'](this[_0x5cd2('0x24')],_0x5cd2('0x1a')),_0x2b9f26['on'](_0x5cd2('0x8'),_0xf1ec0=>{0x0==this[_0x5cd2('0x1c')]&&(this['fire'](_0x5cd2('0xf')),_0xf1ec0[_0x5cd2('0x2')]());}),this['on'](_0x5cd2('0x1'),(_0x254f0f,_0x758dcf,_0x3a6050)=>{_0x3a6050||this[_0x5cd2('0x1c')]||_0x2b9f26[_0x5cd2('0x4')]||this[_0x5cd2('0x30')](_0x5cd2('0xf'));}),_0x28f172;}}
23
+ const _0x5ac9=['addComment','locale','Reply','destroy','isResolvable','showInput','isResolved','removeCommentThread','canComment','_config','Comment','commentThreadHeaderView','Write\x20a\x20comment...','editorReady','isActive','_createCommentThreadInputView','disabledSubmit','_model','stop','Reply...','commentsListView','editorDestroyed','assign','set','commentInputView','placeholder','cancel','fire','length','commentThreadInputView','_localUser','isSubmitted','delegate','updateComment','resolveCommentThread','focus','isUnlinked','isReadOnly','value','listenTo','bind','editorConfig','unlinkedAt','element','isDirty','hasDirtyComment','removeComment'];(function(_0x4f880c,_0x5ac968){const _0x9fa878=function(_0x1c4478){while(--_0x1c4478){_0x4f880c['push'](_0x4f880c['shift']());}};_0x9fa878(++_0x5ac968);}(_0x5ac9,0x1b2));const _0x9fa8=function(_0x4f880c,_0x5ac968){_0x4f880c=_0x4f880c-0x0;let _0x9fa878=_0x5ac9[_0x4f880c];return _0x9fa878;};import{View as _0x586699}from'ckeditor5/src/ui';import _0x262e87 from'./commentthreadinputview';import _0xcb0a6b from'./commentslistview';import _0x1d7f75 from'./commentthreadheaderview';import{getTranslation as _0x5dd305}from'../../../utils/common-translations';export default class Tt extends _0x586699{constructor(_0x3d310f,_0x2e47fb,_0x490f47,_0x27ae60){super(_0x3d310f),this[_0x9fa8('0xc')](_0x9fa8('0x3'),!0x1),this['set'](_0x9fa8('0x21'),!0x1),this['_model']=_0x2e47fb,this['_localUser']=_0x490f47,this[_0x9fa8('0x2d')]=_0x27ae60,this[_0x9fa8('0x0')]=new _0x1d7f75(_0x3d310f,_0x2e47fb),this['commentThreadHeaderView'][_0x9fa8('0x15')]('reopenCommentThread')['to'](this),this[_0x9fa8('0x1c')](this,'reopenCommentThread',()=>{this[_0x9fa8('0x18')]();}),this[_0x9fa8('0x9')]=new _0xcb0a6b(_0x3d310f,_0x2e47fb,Object[_0x9fa8('0xb')]({'CommentView':this[_0x9fa8('0x2d')]['CommentView']},_0x27ae60)),this[_0x9fa8('0x9')][_0x9fa8('0x15')](_0x9fa8('0x23'))['to'](this),this[_0x9fa8('0x9')]['delegate'](_0x9fa8('0x16'))['to'](this),this[_0x9fa8('0x9')][_0x9fa8('0x15')](_0x9fa8('0x17'))['to'](this),this[_0x9fa8('0x9')][_0x9fa8('0x15')](_0x9fa8('0x2'))['to'](this),this['commentsListView'][_0x9fa8('0x15')](_0x9fa8('0xa'))['to'](this),this[_0x9fa8('0x9')][_0x9fa8('0x1d')]('isActive')['to'](this),this[_0x9fa8('0x1c')](this,_0x9fa8('0x17'),()=>{this[_0x9fa8('0x18')]();}),this[_0x9fa8('0xc')](_0x9fa8('0x11'),this[_0x9fa8('0x9')]['length']),this['bind'](_0x9fa8('0x11'))['to'](this[_0x9fa8('0x9')],_0x9fa8('0x11')),this['commentThreadInputView']=this[_0x9fa8('0x4')](),this['commentThreadInputView'][_0x9fa8('0x15')]('editorReady')['to'](this),this['commentThreadInputView'][_0x9fa8('0x15')]('editorDestroyed')['to'](this),this['on'](_0x9fa8('0x23'),()=>this[_0x9fa8('0x18')]()),this[_0x9fa8('0x1d')](_0x9fa8('0x21'))['to'](this['commentsListView'],_0x9fa8('0x22'),this['commentThreadInputView'][_0x9fa8('0xd')],_0x9fa8('0x1b'),(_0x338a60,_0x249c8a)=>_0x338a60||!!_0x249c8a),this[_0x9fa8('0x1d')](_0x9fa8('0x19'))['to'](_0x2e47fb,_0x9fa8('0x1f'),_0x1c6029=>!!_0x1c6029);}['focus'](){this[_0x9fa8('0x20')][_0x9fa8('0x18')]();}async[_0x9fa8('0x27')](){this[_0x9fa8('0x21')]=!0x1,this['commentsListView'][_0x9fa8('0x27')](),await this[_0x9fa8('0x12')]['destroy'](),super[_0x9fa8('0x27')]();}[_0x9fa8('0x4')](){const _0x4797ee=new _0x262e87(this[_0x9fa8('0x25')],this[_0x9fa8('0x13')],this[_0x9fa8('0x2d')][_0x9fa8('0x1e')]),_0x3dac00=_0x4797ee[_0x9fa8('0xd')];return _0x4797ee['bind'](_0x9fa8('0x29'))['to'](this,_0x9fa8('0x3'),this[_0x9fa8('0x6')],_0x9fa8('0x1a'),this[_0x9fa8('0x6')],_0x9fa8('0x2c'),this[_0x9fa8('0x6')],'archivedAt',_0x3dac00,_0x9fa8('0x1b'),(_0x228fb2,_0x32ba51,_0x424df7,_0x44a455,_0x1096b4)=>!!_0x1096b4||!!_0x44a455&&_0x424df7&&!_0x32ba51||_0x228fb2&&_0x424df7&&!_0x32ba51),_0x3dac00[_0x9fa8('0x1d')](_0x9fa8('0xe'))['to'](this,_0x9fa8('0x11'),this[_0x9fa8('0x6')],'isResolvable',this[_0x9fa8('0x6')],_0x9fa8('0x2a'),(_0x4296e6,_0x60ea47,_0x3f79aa)=>{let _0x2ff938;return _0x2ff938=_0x3f79aa&&_0x60ea47?'Reply\x20to\x20reopen\x20discussion...':_0x4296e6?_0x9fa8('0x8'):_0x9fa8('0x1'),_0x5dd305(this['locale'],_0x2ff938);}),_0x3dac00[_0x9fa8('0x1d')]('submitLabel')['to'](this,_0x9fa8('0x11'),_0x427f00=>_0x5dd305(this[_0x9fa8('0x25')],_0x427f00?_0x9fa8('0x26'):_0x9fa8('0x2e'))),_0x3dac00['on']('submit',(_0x5d0fc8,_0x1bae31)=>{this[_0x9fa8('0x10')](_0x9fa8('0x24'),_0x1bae31),this[_0x9fa8('0x6')][_0x9fa8('0x2a')]&&this[_0x9fa8('0x6')][_0x9fa8('0x28')]&&this[_0x9fa8('0x10')]('reopenCommentThread',this['_model']['id']),this[_0x9fa8('0x6')][_0x9fa8('0x14')]||this[_0x9fa8('0x10')]('submitCommentThread');}),_0x3dac00['on'](_0x9fa8('0xf'),()=>{this[_0x9fa8('0x18')]();}),_0x3dac00[_0x9fa8('0x1d')](_0x9fa8('0x5'))['to'](this[_0x9fa8('0x6')],_0x9fa8('0x1a')),_0x3dac00['on'](_0x9fa8('0xf'),_0x4cd486=>{0x0==this[_0x9fa8('0x11')]&&(this[_0x9fa8('0x10')]('removeCommentThread'),_0x4cd486[_0x9fa8('0x7')]());}),this['on']('change:isActive',(_0x1e970d,_0x357e19,_0x414198)=>{_0x414198||this['length']||_0x3dac00[_0x9fa8('0x1b')]||this[_0x9fa8('0x10')](_0x9fa8('0x2b'));}),_0x4797ee;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3c1c=['bind','destroy','remove','_createCommentInputView','submitLabel','set','_config','content','element','locale','focus','add','get','expand','_model','isSystemComment','submit','initialData','editorDestroyed','createEditor','switchToEditMode','updateComment','delegate','Save','_createCommentContentView','maxCommentCharsWhenCollapsed','fire','visibleView','isEditMode','collapse','createCollection','editorConfig','disabledSubmit','switchToDisplayMode','isReadOnly','isCollapsed'];(function(_0x5b0bde,_0x3c1c1){const _0x3d5f5a=function(_0x58ec6e){while(--_0x58ec6e){_0x5b0bde['push'](_0x5b0bde['shift']());}};_0x3d5f5a(++_0x3c1c1);}(_0x3c1c,0x1e2));const _0x3d5f=function(_0x5b0bde,_0x3c1c1){_0x5b0bde=_0x5b0bde-0x0;let _0x3d5f5a=_0x3c1c[_0x5b0bde];return _0x3d5f5a;};import{View as _0x486f5f}from'ckeditor5/src/ui';import{trimHtml as _0x3dbd17}from'ckeditor5-collaboration/src/collaboration-core';import _0x314dd5 from'./commentcontentview';import _0x57dc4a from'./commentinputview';import{getTranslation as _0x2ac16a}from'../../../utils/common-translations';export default class Yt extends _0x486f5f{constructor(_0x123e10,_0x5706ca,_0x4183ba){super(_0x123e10),this['_model']=_0x5706ca,this[_0x3d5f('0x1c')]=_0x4183ba,this[_0x3d5f('0x1')]=!!this[_0x3d5f('0x1c')][_0x3d5f('0x1')],this[_0x3d5f('0x1b')](_0x3d5f('0xe'),!0x1),this[_0x3d5f('0x1b')](_0x3d5f('0x15'),!0x0),this[_0x3d5f('0xd')]=this[_0x3d5f('0x10')](),this[_0x3d5f('0xd')][_0x3d5f('0x21')](this[_0x3d5f('0xa')]());}[_0x3d5f('0x23')](){this['isCollapsed']=!0x1;}[_0x3d5f('0xf')](){this['isEditMode']||(this[_0x3d5f('0x15')]=!0x0);}['focus'](){this[_0x3d5f('0x1e')]['focus']();}async[_0x3d5f('0x17')](){await this[_0x3d5f('0xd')][_0x3d5f('0x22')](0x0)[_0x3d5f('0x17')](),super[_0x3d5f('0x17')]();}[_0x3d5f('0x6')](){this[_0x3d5f('0xe')]||(this[_0x3d5f('0xe')]=!0x0,this['visibleView'][_0x3d5f('0x18')](0x0)['destroy'](),this[_0x3d5f('0xd')][_0x3d5f('0x21')](this[_0x3d5f('0x19')]()));}[_0x3d5f('0x13')](){this[_0x3d5f('0xe')]&&(this['isEditMode']=!0x1,this[_0x3d5f('0xd')][_0x3d5f('0x18')](0x0)[_0x3d5f('0x17')](),this[_0x3d5f('0xd')]['add'](this[_0x3d5f('0xa')]()));}[_0x3d5f('0xa')](){const _0x1875f0=new _0x314dd5(this[_0x3d5f('0x1f')]);return _0x1875f0[_0x3d5f('0x16')](_0x3d5f('0x1d'))['to'](this[_0x3d5f('0x0')],'content',this,_0x3d5f('0x15'),(_0x4828a5,_0x318828)=>_0x318828?_0x3dbd17(_0x4828a5,{'limit':this[_0x3d5f('0x1c')][_0x3d5f('0xb')]}):_0x4828a5),_0x1875f0;}[_0x3d5f('0x19')](){this['_config'][_0x3d5f('0x11')]||(this['_config']['editorConfig']={}),this[_0x3d5f('0x1c')]['editorConfig'][_0x3d5f('0x3')]=this[_0x3d5f('0x0')][_0x3d5f('0x1d')];const _0x55d792=new _0x57dc4a(this[_0x3d5f('0x1f')],this[_0x3d5f('0x1c')][_0x3d5f('0x11')]);return _0x55d792['value']=this[_0x3d5f('0x0')]['content'],_0x55d792['bind'](_0x3d5f('0x12'))['to'](this[_0x3d5f('0x0')],_0x3d5f('0x14')),_0x55d792[_0x3d5f('0x1a')]=_0x2ac16a(this[_0x3d5f('0x1f')],_0x3d5f('0x9')),_0x55d792['on'](_0x3d5f('0x2'),(_0x5be323,_0x720690)=>{this[_0x3d5f('0xc')](_0x3d5f('0x7'),this[_0x3d5f('0x0')]['id'],_0x720690),this[_0x3d5f('0x13')](),this[_0x3d5f('0x20')]();}),_0x55d792['on']('cancel',()=>{this['switchToDisplayMode'](),this[_0x3d5f('0x20')]();}),_0x55d792['once']('editorReady',()=>{_0x55d792['focus']();}),_0x55d792[_0x3d5f('0x5')](),_0x55d792[_0x3d5f('0x8')]('editorReady')['to'](this),_0x55d792[_0x3d5f('0x8')](_0x3d5f('0x4'))['to'](this),_0x55d792;}}
23
+ const _0x53a2=['value','_config','set','isReadOnly','add','locale','switchToEditMode','isEditMode','get','bind','editorConfig','focus','switchToDisplayMode','editorReady','disabledSubmit','once','collapse','submitLabel','content','cancel','visibleView','element','isSystemComment','destroy','createCollection','_createCommentInputView','_model','remove','isCollapsed','_createCommentContentView','delegate','submit','updateComment','maxCommentCharsWhenCollapsed'];(function(_0x13d8de,_0x53a27d){const _0x5d36eb=function(_0x417a43){while(--_0x417a43){_0x13d8de['push'](_0x13d8de['shift']());}};_0x5d36eb(++_0x53a27d);}(_0x53a2,0xb7));const _0x5d36=function(_0x13d8de,_0x53a27d){_0x13d8de=_0x13d8de-0x0;let _0x5d36eb=_0x53a2[_0x13d8de];return _0x5d36eb;};import{View as _0x1db02d}from'ckeditor5/src/ui';import{trimHtml as _0xbc9561}from'ckeditor5-collaboration/src/collaboration-core';import _0x4b6d49 from'./commentcontentview';import _0x224f7d from'./commentinputview';import{getTranslation as _0x46e630}from'../../../utils/common-translations';export default class Yt extends _0x1db02d{constructor(_0x2ac5ba,_0x57142f,_0x3316bd){super(_0x2ac5ba),this[_0x5d36('0xd')]=_0x57142f,this[_0x5d36('0x16')]=_0x3316bd,this[_0x5d36('0x9')]=!!this[_0x5d36('0x16')][_0x5d36('0x9')],this[_0x5d36('0x17')](_0x5d36('0x1c'),!0x1),this[_0x5d36('0x17')]('isCollapsed',!0x0),this['visibleView']=this[_0x5d36('0xb')](),this[_0x5d36('0x7')][_0x5d36('0x19')](this[_0x5d36('0x10')]());}['expand'](){this[_0x5d36('0xf')]=!0x1;}[_0x5d36('0x3')](){this[_0x5d36('0x1c')]||(this[_0x5d36('0xf')]=!0x0);}[_0x5d36('0x20')](){this[_0x5d36('0x8')][_0x5d36('0x20')]();}async['destroy'](){await this[_0x5d36('0x7')][_0x5d36('0x1d')](0x0)['destroy'](),super['destroy']();}[_0x5d36('0x1b')](){this[_0x5d36('0x1c')]||(this[_0x5d36('0x1c')]=!0x0,this['visibleView']['remove'](0x0)[_0x5d36('0xa')](),this[_0x5d36('0x7')][_0x5d36('0x19')](this[_0x5d36('0xc')]()));}[_0x5d36('0x21')](){this['isEditMode']&&(this[_0x5d36('0x1c')]=!0x1,this['visibleView'][_0x5d36('0xe')](0x0)['destroy'](),this[_0x5d36('0x7')][_0x5d36('0x19')](this[_0x5d36('0x10')]()));}[_0x5d36('0x10')](){const _0x5185bb=new _0x4b6d49(this[_0x5d36('0x1a')]);return _0x5185bb['bind']('content')['to'](this[_0x5d36('0xd')],_0x5d36('0x5'),this,'isCollapsed',(_0x43736a,_0x5bc1bc)=>_0x5bc1bc?_0xbc9561(_0x43736a,{'limit':this['_config'][_0x5d36('0x14')]}):_0x43736a),_0x5185bb;}[_0x5d36('0xc')](){this[_0x5d36('0x16')][_0x5d36('0x1f')]||(this[_0x5d36('0x16')][_0x5d36('0x1f')]={}),this['_config'][_0x5d36('0x1f')]['initialData']=this[_0x5d36('0xd')][_0x5d36('0x5')];const _0x1dcced=new _0x224f7d(this[_0x5d36('0x1a')],this[_0x5d36('0x16')][_0x5d36('0x1f')]);return _0x1dcced[_0x5d36('0x15')]=this[_0x5d36('0xd')][_0x5d36('0x5')],_0x1dcced[_0x5d36('0x1e')](_0x5d36('0x1'))['to'](this[_0x5d36('0xd')],_0x5d36('0x18')),_0x1dcced[_0x5d36('0x4')]=_0x46e630(this[_0x5d36('0x1a')],'Save'),_0x1dcced['on'](_0x5d36('0x12'),(_0x36ba1e,_0x4febf)=>{this['fire'](_0x5d36('0x13'),this[_0x5d36('0xd')]['id'],_0x4febf),this[_0x5d36('0x21')](),this[_0x5d36('0x20')]();}),_0x1dcced['on'](_0x5d36('0x6'),()=>{this[_0x5d36('0x21')](),this[_0x5d36('0x20')]();}),_0x1dcced[_0x5d36('0x2')](_0x5d36('0x0'),()=>{_0x1dcced[_0x5d36('0x20')]();}),_0x1dcced['createEditor'](),_0x1dcced['delegate']('editorReady')['to'](this),_0x1dcced[_0x5d36('0x11')]('editorDestroyed')['to'](this),_0x1dcced;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ba8=['bindTemplate','ck-thread__comment-count','set','setTemplate'];(function(_0x48b025,_0x5ba89c){const _0x2d4732=function(_0x530cc1){while(--_0x530cc1){_0x48b025['push'](_0x48b025['shift']());}};_0x2d4732(++_0x5ba89c);}(_0x5ba8,0x195));const _0x2d47=function(_0x48b025,_0x5ba89c){_0x48b025=_0x48b025-0x0;let _0x2d4732=_0x5ba8[_0x48b025];return _0x2d4732;};import{View as _0x41116a}from'ckeditor5/src/ui';import{getTranslation as _0x4dbc20}from'../../../utils/common-translations';export default class Zt extends _0x41116a{constructor(_0x1bcf5c){super(_0x1bcf5c);const _0xff0d8b=this[_0x2d47('0x3')];this[_0x2d47('0x1')]('count',void 0x0),this[_0x2d47('0x2')]({'tag':'li','attributes':{'class':_0x2d47('0x0')},'children':[{'text':_0xff0d8b['to']('count',_0xa18381=>_0x4dbc20(_0x1bcf5c,'NUMBER_OF_COMMENTS',_0xa18381))}]});}}
23
+ const _0x8f91=['bindTemplate','NUMBER_OF_COMMENTS','count','ck-thread__comment-count'];(function(_0x2c5ebf,_0x8f91a){const _0x524221=function(_0x691981){while(--_0x691981){_0x2c5ebf['push'](_0x2c5ebf['shift']());}};_0x524221(++_0x8f91a);}(_0x8f91,0x11e));const _0x5242=function(_0x2c5ebf,_0x8f91a){_0x2c5ebf=_0x2c5ebf-0x0;let _0x524221=_0x8f91[_0x2c5ebf];return _0x524221;};import{View as _0x1d0ecb}from'ckeditor5/src/ui';import{getTranslation as _0x591ab6}from'../../../utils/common-translations';export default class Zt extends _0x1d0ecb{constructor(_0x5bb12b){super(_0x5bb12b);const _0x10732e=this[_0x5242('0x2')];this['set'](_0x5242('0x0'),void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':_0x5242('0x1')},'children':[{'text':_0x10732e['to'](_0x5242('0x0'),_0x104b73=>_0x591ab6(_0x5bb12b,_0x5242('0x3'),_0x104b73))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x416a=['render','change:content','div','element','ck-comment__content','ck-annotation__content','set','content','innerHTML','setTemplate'];(function(_0xcf2f76,_0x416ac4){var _0x2d8838=function(_0xa75677){while(--_0xa75677){_0xcf2f76['push'](_0xcf2f76['shift']());}};_0x2d8838(++_0x416ac4);}(_0x416a,0x9a));var _0x2d88=function(_0xcf2f76,_0x416ac4){_0xcf2f76=_0xcf2f76-0x0;var _0x2d8838=_0x416a[_0xcf2f76];return _0x2d8838;};import{View as _0x10974a}from'ckeditor5/src/ui';export default class Ut extends _0x10974a{constructor(_0x227f15){super(_0x227f15),this[_0x2d88('0x2')](_0x2d88('0x3'),''),this[_0x2d88('0x5')]({'tag':_0x2d88('0x8'),'attributes':{'class':[_0x2d88('0x0'),_0x2d88('0x1')]}});}[_0x2d88('0x6')](){super[_0x2d88('0x6')](),this['on'](_0x2d88('0x7'),(_0x2ba8db,_0x327273,_0x498db1)=>{this['element']['innerHTML']=_0x498db1;}),this[_0x2d88('0x9')][_0x2d88('0x4')]=this[_0x2d88('0x3')];}}
23
+ var _0xfa4f=['ck-comment__content','change:content','element','ck-annotation__content','set','div','innerHTML','content','render'];(function(_0x58d4f2,_0xfa4fd8){var _0x5ade39=function(_0x428e48){while(--_0x428e48){_0x58d4f2['push'](_0x58d4f2['shift']());}};_0x5ade39(++_0xfa4fd8);}(_0xfa4f,0x1d9));var _0x5ade=function(_0x58d4f2,_0xfa4fd8){_0x58d4f2=_0x58d4f2-0x0;var _0x5ade39=_0xfa4f[_0x58d4f2];return _0x5ade39;};import{View as _0x26da56}from'ckeditor5/src/ui';export default class Ut extends _0x26da56{constructor(_0x6bb7db){super(_0x6bb7db),this[_0x5ade('0x8')]('content',''),this['setTemplate']({'tag':_0x5ade('0x0'),'attributes':{'class':[_0x5ade('0x4'),_0x5ade('0x7')]}});}['render'](){super[_0x5ade('0x3')](),this['on'](_0x5ade('0x5'),(_0xf3da1c,_0x296c15,_0x81635f)=>{this[_0x5ade('0x6')][_0x5ade('0x1')]=_0x81635f;}),this['element']['innerHTML']=this[_0x5ade('0x2')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x43fc=['tab','length','low','showButtons','model','editor','editorDestroyed','listenTo','_createCancelButton','focusTracker','_editorCreationPromise','setData','insertBefore','add','_initializeFocusCycling','firstChild','disabledSubmit','element','cancel','submitButtonView','fire','extendTemplate','change','Cancel','ck-comment__input-actions--cancel','destroy','stop','ck-comment__input-actions','set','label','Reply...','bindTemplate','bind','view','create','ck-comment__input-actions--active','ck-comment__input-actions--submit','_createSubmitButton','initialData','cancelButtonView','keystrokes','shift\x20+\x20tab','_editorConfig','Reply','value','focus','submit','createEditor','focusNext','div','Esc','execute','placeholder','editorReady','submitLabel','render','_isDestroyed'];(function(_0x29ff71,_0x43fc92){const _0x52e40e=function(_0x36d19d){while(--_0x36d19d){_0x29ff71['push'](_0x29ff71['shift']());}};_0x52e40e(++_0x43fc92);}(_0x43fc,0x114));const _0x52e4=function(_0x29ff71,_0x43fc92){_0x29ff71=_0x29ff71-0x0;let _0x52e40e=_0x43fc[_0x29ff71];return _0x52e40e;};import{View as _0x102867,ViewCollection as _0x2967e1,FocusCycler as _0x1bf2b1,ButtonView as _0x5e8197}from'ckeditor5/src/ui';import{FocusTracker as _0x1751f8,KeystrokeHandler as _0x4b132e}from'ckeditor5/src/utils';import _0x2ed003 from'../commenteditor/commenteditor';import{getTranslation as _0x58f3fd}from'../../../utils/common-translations';export default class Xt extends _0x102867{constructor(_0x327f56,_0x5c708a={}){super(_0x327f56),this[_0x52e4('0xe')]=null,this[_0x52e4('0x33')]=_0x5c708a,this[_0x52e4('0x31')]=new _0x4b132e(),this[_0x52e4('0x12')]=new _0x1751f8(),this[_0x52e4('0x25')](_0x52e4('0x35'),_0x5c708a[_0x52e4('0x2f')]||''),this[_0x52e4('0x25')](_0x52e4('0x19'),!0x1),this[_0x52e4('0x25')](_0x52e4('0xc'),!0x0),this[_0x52e4('0x25')](_0x52e4('0x4'),_0x58f3fd(_0x327f56,_0x52e4('0x27'))),this[_0x52e4('0x25')](_0x52e4('0x6'),_0x58f3fd(_0x327f56,_0x52e4('0x34'))),this['submitButtonView']=this[_0x52e4('0x2e')](),this[_0x52e4('0x30')]=this[_0x52e4('0x11')](),this['setTemplate']({'tag':_0x52e4('0x1'),'attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':_0x52e4('0x1'),'attributes':{'class':[_0x52e4('0x24'),this[_0x52e4('0x28')]['if'](_0x52e4('0xc'),_0x52e4('0x2c'))]},'children':[this[_0x52e4('0x1c')],this[_0x52e4('0x30')]]}]}),this[_0x52e4('0x31')][_0x52e4('0x25')](_0x52e4('0x2'),(_0x48aff4,_0x36241f)=>{this[_0x52e4('0x30')][_0x52e4('0x1d')](_0x52e4('0x3')),_0x36241f();}),this['on'](_0x52e4('0x37'),(_0x5ea5a2,_0x255fd5)=>{_0x255fd5[_0x52e4('0xa')]>0xfde8?(alert(_0x58f3fd(_0x327f56,'TOO_LONG_COMMENT_ALERT',[_0x255fd5[_0x52e4('0xa')],0xfde8])),_0x5ea5a2[_0x52e4('0x23')]()):this[_0x52e4('0xe')]['setData']('');},{'priority':'high'});}[_0x52e4('0x7')](){super[_0x52e4('0x7')](),this[_0x52e4('0x31')][_0x52e4('0x10')](this[_0x52e4('0x1a')]),this['focusTracker'][_0x52e4('0x16')](this['element']);}[_0x52e4('0x38')](){return this[_0x52e4('0xe')]||(this['editor']=new _0x2ed003(this[_0x52e4('0x33')]),this[_0x52e4('0x13')]=this[_0x52e4('0xe')][_0x52e4('0x2b')]()['then'](()=>{if(this[_0x52e4('0x8')])return;const _0xa4ff6=this[_0x52e4('0xe')];this['element'][_0x52e4('0x15')](_0xa4ff6['ui'][_0x52e4('0x1a')],this['element'][_0x52e4('0x18')]),_0xa4ff6[_0x52e4('0xd')]['document']['on'](_0x52e4('0x1f'),()=>this[_0x52e4('0x35')]=_0xa4ff6['getData']()),_0xa4ff6[_0x52e4('0x29')](_0x52e4('0x4'))['to'](this),this[_0x52e4('0x17')](this[_0x52e4('0xe')]),this[_0x52e4('0x1d')](_0x52e4('0x5'),this[_0x52e4('0xe')]);})),this[_0x52e4('0x13')];}[_0x52e4('0x36')](){this[_0x52e4('0xe')]&&this[_0x52e4('0xe')][_0x52e4('0x36')]();}async['destroy'](){this[_0x52e4('0x8')]||(this[_0x52e4('0x8')]=!0x0,this[_0x52e4('0xe')]&&(await this[_0x52e4('0x13')],await this[_0x52e4('0xe')][_0x52e4('0x22')](),this[_0x52e4('0x1d')](_0x52e4('0xf'),this[_0x52e4('0xe')])),await super['destroy']());}[_0x52e4('0x2e')](){const {locale:_0x15743b}=this,_0xa292d7=new _0x5e8197(_0x15743b);return _0xa292d7[_0x52e4('0x1e')]({'attributes':{'class':[_0x52e4('0x2d')]}}),_0xa292d7['withText']=!0x0,_0xa292d7[_0x52e4('0x29')](_0x52e4('0x26'))['to'](this,'submitLabel'),_0xa292d7['on'](_0x52e4('0x3'),()=>{this['fire'](_0x52e4('0x37'),this[_0x52e4('0x35')]);}),_0xa292d7[_0x52e4('0x29')]('isEnabled')['to'](this,_0x52e4('0x35'),this,_0x52e4('0x19'),(_0x3255bc,_0x556fb7)=>!_0x556fb7&&!!_0x3255bc['trim']()),_0xa292d7;}[_0x52e4('0x11')](){const {locale:_0x388ca8}=this,_0x8936e4=new _0x5e8197(_0x388ca8);return _0x8936e4['extendTemplate']({'attributes':{'class':[_0x52e4('0x21')]}}),_0x8936e4[_0x52e4('0x26')]=_0x58f3fd(_0x388ca8,_0x52e4('0x20')),_0x8936e4['withText']=!0x0,_0x8936e4['on'](_0x52e4('0x3'),()=>{this[_0x52e4('0xe')][_0x52e4('0x14')](''),this[_0x52e4('0x1d')](_0x52e4('0x1b'));}),_0x8936e4;}['_initializeFocusCycling'](_0xf6d9be){const _0x10923f=this[_0x52e4('0x12')],_0x4b5060=new _0x2967e1();[_0xf6d9be['ui'][_0x52e4('0x2a')],this[_0x52e4('0x1c')],this['cancelButtonView']]['forEach'](_0x2043bc=>{_0x4b5060[_0x52e4('0x16')](_0x2043bc),_0x10923f[_0x52e4('0x16')](_0x2043bc[_0x52e4('0x1a')]);});const _0x2adc78=new _0x1bf2b1({'focusables':_0x4b5060,'focusTracker':_0x10923f});this[_0x52e4('0x31')][_0x52e4('0x25')](_0x52e4('0x9'),(_0x37b21e,_0x1024cc)=>{_0x2adc78[_0x52e4('0x0')](),_0x1024cc();},{'priority':_0x52e4('0xb')}),this['keystrokes'][_0x52e4('0x25')](_0x52e4('0x32'),(_0x53e994,_0x1ba2fc)=>{_0x2adc78['focusPrevious'](),_0x1ba2fc();},{'priority':_0x52e4('0xb')});}}
23
+ const _0x19df=['firstChild','submit','low','Reply','element','cancelButtonView','editor','disabledSubmit','isEnabled','focusTracker','submitButtonView','render','setTemplate','placeholder','fire','_createCancelButton','TOO_LONG_COMMENT_ALERT','tab','cancel','Esc','high','add','ck-comment__input-actions--submit','stop','bind','execute','change','forEach','destroy','focusPrevious','then','shift\x20+\x20tab','set','setData','model','focus','_editorCreationPromise','length','submitLabel','bindTemplate','view','_createSubmitButton','initialData','trim','label','document','createEditor','withText','editorDestroyed','div','getData','value','_initializeFocusCycling','ck-comment__input-actions--cancel','ck-comment__input-actions--active','create','extendTemplate','_isDestroyed','showButtons','keystrokes','focusNext','editorReady','_editorConfig'];(function(_0x1ed19a,_0x19dfa5){const _0x239db4=function(_0x119beb){while(--_0x119beb){_0x1ed19a['push'](_0x1ed19a['shift']());}};_0x239db4(++_0x19dfa5);}(_0x19df,0xe5));const _0x239d=function(_0x1ed19a,_0x19dfa5){_0x1ed19a=_0x1ed19a-0x0;let _0x239db4=_0x19df[_0x1ed19a];return _0x239db4;};import{View as _0x57023c,ViewCollection as _0xdcd040,FocusCycler as _0x4c6fec,ButtonView as _0x28b220}from'ckeditor5/src/ui';import{FocusTracker as _0x2a608b,KeystrokeHandler as _0x5b9821}from'ckeditor5/src/utils';import _0x4ed8d2 from'../commenteditor/commenteditor';import{getTranslation as _0x141ba0}from'../../../utils/common-translations';export default class Xt extends _0x57023c{constructor(_0x4c4253,_0x265a91={}){super(_0x4c4253),this['editor']=null,this[_0x239d('0x16')]=_0x265a91,this['keystrokes']=new _0x5b9821(),this['focusTracker']=new _0x2a608b(),this['set'](_0x239d('0xb'),_0x265a91[_0x239d('0x2')]||''),this[_0x239d('0x37')](_0x239d('0x1e'),!0x1),this[_0x239d('0x37')](_0x239d('0x12'),!0x0),this[_0x239d('0x37')](_0x239d('0x24'),_0x141ba0(_0x4c4253,'Reply...')),this[_0x239d('0x37')](_0x239d('0x3d'),_0x141ba0(_0x4c4253,_0x239d('0x1a'))),this[_0x239d('0x21')]=this['_createSubmitButton'](),this[_0x239d('0x1c')]=this[_0x239d('0x26')](),this[_0x239d('0x23')]({'tag':'div','attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':_0x239d('0x9'),'attributes':{'class':['ck-comment__input-actions',this[_0x239d('0x3e')]['if']('showButtons',_0x239d('0xe'))]},'children':[this[_0x239d('0x21')],this[_0x239d('0x1c')]]}]}),this[_0x239d('0x13')][_0x239d('0x37')](_0x239d('0x2a'),(_0xf858dd,_0x3e6d9e)=>{this['cancelButtonView']['fire'](_0x239d('0x30')),_0x3e6d9e();}),this['on']('submit',(_0x49cd3c,_0x2602ae)=>{_0x2602ae[_0x239d('0x3c')]>0xfde8?(alert(_0x141ba0(_0x4c4253,_0x239d('0x27'),[_0x2602ae[_0x239d('0x3c')],0xfde8])),_0x49cd3c[_0x239d('0x2e')]()):this[_0x239d('0x1d')][_0x239d('0x38')]('');},{'priority':_0x239d('0x2b')});}[_0x239d('0x22')](){super[_0x239d('0x22')](),this[_0x239d('0x13')]['listenTo'](this[_0x239d('0x1b')]),this[_0x239d('0x20')][_0x239d('0x2c')](this[_0x239d('0x1b')]);}[_0x239d('0x6')](){return this[_0x239d('0x1d')]||(this[_0x239d('0x1d')]=new _0x4ed8d2(this[_0x239d('0x16')]),this[_0x239d('0x3b')]=this[_0x239d('0x1d')][_0x239d('0xf')]()[_0x239d('0x35')](()=>{if(this['_isDestroyed'])return;const _0x53c8f8=this['editor'];this[_0x239d('0x1b')]['insertBefore'](_0x53c8f8['ui'][_0x239d('0x1b')],this[_0x239d('0x1b')][_0x239d('0x17')]),_0x53c8f8[_0x239d('0x39')][_0x239d('0x5')]['on'](_0x239d('0x31'),()=>this[_0x239d('0xb')]=_0x53c8f8[_0x239d('0xa')]()),_0x53c8f8[_0x239d('0x2f')](_0x239d('0x24'))['to'](this),this[_0x239d('0xc')](this[_0x239d('0x1d')]),this[_0x239d('0x25')](_0x239d('0x15'),this[_0x239d('0x1d')]);})),this[_0x239d('0x3b')];}[_0x239d('0x3a')](){this['editor']&&this[_0x239d('0x1d')][_0x239d('0x3a')]();}async[_0x239d('0x33')](){this[_0x239d('0x11')]||(this[_0x239d('0x11')]=!0x0,this[_0x239d('0x1d')]&&(await this[_0x239d('0x3b')],await this[_0x239d('0x1d')]['destroy'](),this[_0x239d('0x25')](_0x239d('0x8'),this[_0x239d('0x1d')])),await super[_0x239d('0x33')]());}[_0x239d('0x1')](){const {locale:_0x45f84c}=this,_0x80c7fb=new _0x28b220(_0x45f84c);return _0x80c7fb[_0x239d('0x10')]({'attributes':{'class':[_0x239d('0x2d')]}}),_0x80c7fb[_0x239d('0x7')]=!0x0,_0x80c7fb[_0x239d('0x2f')](_0x239d('0x4'))['to'](this,_0x239d('0x3d')),_0x80c7fb['on'](_0x239d('0x30'),()=>{this['fire'](_0x239d('0x18'),this[_0x239d('0xb')]);}),_0x80c7fb[_0x239d('0x2f')](_0x239d('0x1f'))['to'](this,'value',this,'disabledSubmit',(_0x1c7761,_0x8749ec)=>!_0x8749ec&&!!_0x1c7761[_0x239d('0x3')]()),_0x80c7fb;}[_0x239d('0x26')](){const {locale:_0x14b0b7}=this,_0x276af0=new _0x28b220(_0x14b0b7);return _0x276af0['extendTemplate']({'attributes':{'class':[_0x239d('0xd')]}}),_0x276af0['label']=_0x141ba0(_0x14b0b7,'Cancel'),_0x276af0['withText']=!0x0,_0x276af0['on'](_0x239d('0x30'),()=>{this[_0x239d('0x1d')][_0x239d('0x38')](''),this['fire'](_0x239d('0x29'));}),_0x276af0;}[_0x239d('0xc')](_0x3ede8d){const _0x488259=this['focusTracker'],_0x4ba25f=new _0xdcd040();[_0x3ede8d['ui'][_0x239d('0x0')],this[_0x239d('0x21')],this[_0x239d('0x1c')]][_0x239d('0x32')](_0x1dbd4e=>{_0x4ba25f[_0x239d('0x2c')](_0x1dbd4e),_0x488259['add'](_0x1dbd4e['element']);});const _0x32e575=new _0x4c6fec({'focusables':_0x4ba25f,'focusTracker':_0x488259});this[_0x239d('0x13')]['set'](_0x239d('0x28'),(_0x10f967,_0x515825)=>{_0x32e575[_0x239d('0x14')](),_0x515825();},{'priority':_0x239d('0x19')}),this['keystrokes'][_0x239d('0x37')](_0x239d('0x36'),(_0x2d4660,_0x28c845)=>{_0x32e575[_0x239d('0x34')](),_0x28c845();},{'priority':_0x239d('0x19')});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x47ed=['tab','add','render','arrowright','remove','arrowdown','_focusables','destroy','bindTemplate','selectstart','length','div','arrowleft','high','auto','_focusTracker','ck-hidden','isActive','stopPropagation','_keystrokes','shift\x20+\x20tab','element','ck-comments-archive','_focusCycler','isEmpty','listenTo','focus','EMPTY_COMMENTS_ARCHIVE','set','COMMENTS_ARCHIVE','ck-comments-archive__info'];(function(_0x527937,_0x47ed5f){const _0xb632e9=function(_0x44aa66){while(--_0x44aa66){_0x527937['push'](_0x527937['shift']());}};_0xb632e9(++_0x47ed5f);}(_0x47ed,0x1be));const _0xb632=function(_0x527937,_0x47ed5f){_0x527937=_0x527937-0x0;let _0xb632e9=_0x47ed[_0x527937];return _0xb632e9;};import{View as _0x5bdd16,FocusCycler as _0x5331f5}from'ckeditor5/src/ui';import{FocusTracker as _0x342606,KeystrokeHandler as _0x3f4b52}from'ckeditor5/src/utils';import{getTranslation as _0x205d07}from'../../../utils/common-translations';export default class K extends _0x5bdd16{constructor(_0x3631d2,_0x40c4ba){super(_0x3631d2),this['set'](_0xb632('0xc'),!_0x40c4ba['length']),this['_focusTracker']=new _0x342606(),this[_0xb632('0x7')]=new _0x3f4b52(),this[_0xb632('0x19')]=_0x40c4ba,this[_0xb632('0xb')]=new _0x5331f5({'focusables':this['_focusables'],'focusTracker':this[_0xb632('0x3')],'keystrokeHandler':this[_0xb632('0x7')],'actions':{'focusPrevious':_0xb632('0x8'),'focusNext':_0xb632('0x13')}}),this[_0xb632('0xd')](_0x40c4ba,_0xb632('0x14'),()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x40c4ba,_0xb632('0x17'),(_0x495987,_0x33d87d)=>{_0x33d87d[_0xb632('0x5')]&&this[_0xb632('0xe')](),_0x40c4ba[_0xb632('0x1d')]||(this[_0xb632('0xc')]=!0x0);});const _0x11a3c7=this[_0xb632('0x1b')];this['setTemplate']({'tag':_0xb632('0x1e'),'attributes':{'dir':_0xb632('0x2'),'class':['ck',_0xb632('0xa')],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':['ck-comments-archive__header\x20']},'children':[{'text':_0x205d07(_0x3631d2,_0xb632('0x11'))}]},{'tag':_0xb632('0x1e'),'attributes':{'class':['ck-comments-archive__content']},'children':[{'tag':_0xb632('0x1e'),'children':_0x40c4ba},{'tag':'p','attributes':{'class':[_0xb632('0x12'),_0x11a3c7['if'](_0xb632('0xc'),_0xb632('0x4'),_0x591e56=>!_0x591e56)]},'children':[{'text':_0x205d07(_0x3631d2,_0xb632('0xf'))}]}]}]});}[_0xb632('0x15')](){super['render'](),this[_0xb632('0x7')][_0xb632('0xd')](this[_0xb632('0x9')]);const _0x54af47=_0x46e329=>_0x46e329[_0xb632('0x6')]();this[_0xb632('0x7')][_0xb632('0x10')](_0xb632('0x16'),_0x54af47),this['_keystrokes'][_0xb632('0x10')](_0xb632('0x0'),_0x54af47),this[_0xb632('0x7')][_0xb632('0x10')]('arrowup',_0x54af47),this['_keystrokes'][_0xb632('0x10')](_0xb632('0x18'),_0x54af47),this[_0xb632('0xd')](this[_0xb632('0x9')],_0xb632('0x1c'),(_0x16a627,_0x436a62)=>{_0x436a62['stopPropagation']();},{'priority':_0xb632('0x1')});}[_0xb632('0x1a')](){super['destroy'](),this[_0xb632('0x3')][_0xb632('0x1a')](),this['_keystrokes'][_0xb632('0x1a')]();}['focus'](){this[_0xb632('0x9')][_0xb632('0xe')]();}}
23
+ const _0x2297=['arrowdown','set','render','ck-comments-archive__content','bindTemplate','listenTo','isEmpty','stopPropagation','arrowright','length','_focusTracker','EMPTY_COMMENTS_ARCHIVE','_focusables','setTemplate','ck-comments-archive__info','arrowup','high','element','_focusCycler','arrowleft','div','isActive','shift\x20+\x20tab','_keystrokes','ck-hidden','COMMENTS_ARCHIVE','ck-comments-archive__header\x20','destroy','selectstart','remove'];(function(_0x3f6801,_0x229758){const _0x172986=function(_0x503c7e){while(--_0x503c7e){_0x3f6801['push'](_0x3f6801['shift']());}};_0x172986(++_0x229758);}(_0x2297,0x16e));const _0x1729=function(_0x3f6801,_0x229758){_0x3f6801=_0x3f6801-0x0;let _0x172986=_0x2297[_0x3f6801];return _0x172986;};import{View as _0xa19f86,FocusCycler as _0x5c61f4}from'ckeditor5/src/ui';import{FocusTracker as _0x27d54e,KeystrokeHandler as _0x407312}from'ckeditor5/src/utils';import{getTranslation as _0x3af42e}from'../../../utils/common-translations';export default class K extends _0xa19f86{constructor(_0x381318,_0x199f74){super(_0x381318),this[_0x1729('0x19')](_0x1729('0x0'),!_0x199f74[_0x1729('0x3')]),this[_0x1729('0x4')]=new _0x27d54e(),this[_0x1729('0x11')]=new _0x407312(),this[_0x1729('0x6')]=_0x199f74,this[_0x1729('0xc')]=new _0x5c61f4({'focusables':this[_0x1729('0x6')],'focusTracker':this[_0x1729('0x4')],'keystrokeHandler':this['_keystrokes'],'actions':{'focusPrevious':_0x1729('0x10'),'focusNext':'tab'}}),this[_0x1729('0x1d')](_0x199f74,'add',()=>{this[_0x1729('0x0')]=!0x1;}),this[_0x1729('0x1d')](_0x199f74,_0x1729('0x17'),(_0x3b660b,_0x3b6ed5)=>{_0x3b6ed5[_0x1729('0xf')]&&this['focus'](),_0x199f74['length']||(this['isEmpty']=!0x0);});const _0x4086dd=this[_0x1729('0x1c')];this[_0x1729('0x7')]({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':[_0x1729('0x14')]},'children':[{'text':_0x3af42e(_0x381318,_0x1729('0x13'))}]},{'tag':_0x1729('0xe'),'attributes':{'class':[_0x1729('0x1b')]},'children':[{'tag':_0x1729('0xe'),'children':_0x199f74},{'tag':'p','attributes':{'class':[_0x1729('0x8'),_0x4086dd['if']('isEmpty',_0x1729('0x12'),_0x1b58ac=>!_0x1b58ac)]},'children':[{'text':_0x3af42e(_0x381318,_0x1729('0x5'))}]}]}]});}[_0x1729('0x1a')](){super[_0x1729('0x1a')](),this['_keystrokes'][_0x1729('0x1d')](this['element']);const _0x7ee0cb=_0x37c25d=>_0x37c25d[_0x1729('0x1')]();this['_keystrokes'][_0x1729('0x19')](_0x1729('0x2'),_0x7ee0cb),this[_0x1729('0x11')][_0x1729('0x19')](_0x1729('0xd'),_0x7ee0cb),this[_0x1729('0x11')][_0x1729('0x19')](_0x1729('0x9'),_0x7ee0cb),this[_0x1729('0x11')][_0x1729('0x19')](_0x1729('0x18'),_0x7ee0cb),this[_0x1729('0x1d')](this['element'],_0x1729('0x16'),(_0xc40661,_0x22398f)=>{_0x22398f[_0x1729('0x1')]();},{'priority':_0x1729('0xa')});}[_0x1729('0x15')](){super[_0x1729('0x15')](),this[_0x1729('0x4')][_0x1729('0x15')](),this['_keystrokes'][_0x1729('0x15')]();}['focus'](){this[_0x1729('0xb')]['focus']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3680=['_config','_rearrangeExpand','change:isActive','CommentView','delegate','destroy','element','ck-thread__comments','resolved','resolvedCommentView','some','stopListening','isActive','formatDateTime','_handleInfoComment','isEditMode','commentViews','createCollection','Marked\x20as\x20resolved','length','hasDirtyComment','maxCommentCharsWhenCollapsed','_calculatePosition','updateComment','expand','locale','remove','maxThreadTotalWeight','removeComment','_handleNewCommentModel','add','resolvedBy','change:isResolved','comments','_updateHasDirtyComment','set','listenTo','setTemplate','focus','viewUid','authoredAt','_collapsedCommentsView','delete','_model','change:isEditMode','commentUpdated','_handleRemoveCommentModel','editorConfig','refreshVisibleViews','count','render','_rearrangeCollapse','equal','resolveCommentThread','insert','_findOptimalIndex','visibleViews','from','change:hasDirtyComment'];(function(_0x49f593,_0x3680ab){const _0x9ceefe=function(_0x5102f8){while(--_0x5102f8){_0x49f593['push'](_0x49f593['shift']());}};_0x9ceefe(++_0x3680ab);}(_0x3680,0x77));const _0x9cee=function(_0x49f593,_0x3680ab){_0x49f593=_0x49f593-0x0;let _0x9ceefe=_0x3680[_0x49f593];return _0x9ceefe;};import{View as _0x382933}from'ckeditor5/src/ui';import{diff as _0x5d2eab,Collection as _0x5a7925}from'ckeditor5/src/utils';import{getTranslation as _0x38b0ff}from'../../../utils/common-translations';import _0x337b39 from'./collapsedcommentsview';export default class wt extends _0x382933{constructor(_0x49496c,_0x24fc27,_0x24f337){super(_0x49496c),this[_0x9cee('0x22')]('hasDirtyComment',!0x1),this[_0x9cee('0x22')](_0x9cee('0x12'),_0x24fc27[_0x9cee('0x20')]['length']),this[_0x9cee('0x22')]('isActive',!0x1),this[_0x9cee('0x2a')]=_0x24fc27,this[_0x9cee('0x3a')]=_0x24f337,this[_0x9cee('0xf')]=this['createCollection'](),this[_0x9cee('0x37')]=this[_0x9cee('0x10')](),this['resolvedCommentView']=null,this[_0x9cee('0x28')]=new _0x337b39(_0x49496c),this['_collapsedCommentsView']['bind'](_0x9cee('0x30'))['to'](this,_0x9cee('0x12'),_0x14bdf0=>_0x14bdf0-this['_config']['maxCommentsWhenCollapsed']);for(const _0x490445 of _0x24fc27[_0x9cee('0x20')])this[_0x9cee('0x1c')](_0x490445);this[_0x9cee('0xd')](),this[_0x9cee('0x23')](_0x24fc27[_0x9cee('0x20')],_0x9cee('0x1d'),(_0x3f50f9,_0x565649)=>{const _0x5b07c2=this['_calculatePosition'](_0x565649);this[_0x9cee('0x12')]++,this[_0x9cee('0x1c')](_0x565649,_0x5b07c2),this['refreshVisibleViews']();}),this[_0x9cee('0x23')](_0x24fc27['comments'],_0x9cee('0x19'),(_0x5c4a5b,_0x46d0a6)=>{this[_0x9cee('0x12')]--,this[_0x9cee('0x2d')](_0x46d0a6),this[_0x9cee('0x2f')]();}),this[_0x9cee('0x23')](_0x24fc27,_0x9cee('0x2c'),()=>this['refreshVisibleViews']()),this[_0x9cee('0x23')](_0x24fc27,_0x9cee('0x1f'),()=>this[_0x9cee('0xd')]()),this['on'](_0x9cee('0x1'),()=>this['refreshVisibleViews']()),this['on'](_0x9cee('0x39'),()=>this['refreshVisibleViews']()),this[_0x9cee('0x24')]({'tag':'ul','attributes':{'class':[_0x9cee('0x6')]},'children':this[_0x9cee('0x37')]});}get['_shouldCollapse'](){return this['_model']['weight']>this[_0x9cee('0x3a')][_0x9cee('0x1a')]&&!this[_0x9cee('0xb')]&&!this[_0x9cee('0x13')];}[_0x9cee('0x31')](){super[_0x9cee('0x31')](),this[_0x9cee('0x2f')]();}[_0x9cee('0x25')](){this[_0x9cee('0x5')][_0x9cee('0x25')]();}[_0x9cee('0x4')](){this[_0x9cee('0x28')][_0x9cee('0x4')]();for(const _0x1be6d7 of this[_0x9cee('0xf')])_0x1be6d7[_0x9cee('0x4')]();super[_0x9cee('0x4')]();}[_0x9cee('0x2f')](){this['_shouldCollapse']?this[_0x9cee('0x32')]():this[_0x9cee('0x0')]();}[_0x9cee('0x1c')](_0xb0b027,_0x1d1140){const _0x383a80=new this[(_0x9cee('0x3a'))][(_0x9cee('0x2'))](this['locale'],_0xb0b027,{'maxCommentCharsWhenCollapsed':this[_0x9cee('0x3a')]['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config'][_0x9cee('0xc')],'editorConfig':this[_0x9cee('0x3a')][_0x9cee('0x2e')]});_0x383a80[_0x9cee('0x26')]=_0xb0b027['id'],_0x383a80[_0x9cee('0x3')](_0x9cee('0x1b'))['to'](this),_0x383a80[_0x9cee('0x3')](_0x9cee('0x16'))['to'](this),_0x383a80[_0x9cee('0x3')](_0x9cee('0x34'))['to'](this),_0x383a80[_0x9cee('0x3')]('editorReady')['to'](this),_0x383a80[_0x9cee('0x3')]('editorDestroyed')['to'](this),this[_0x9cee('0x23')](_0x383a80,_0x9cee('0x2b'),()=>this['_updateHasDirtyComment']()),this[_0x9cee('0xf')][_0x9cee('0x1d')](_0x383a80,_0x1d1140);}[_0x9cee('0x15')](_0x383ac8){const _0xb76fe8=this[_0x9cee('0x2a')][_0x9cee('0x36')](_0x383ac8);return this[_0x9cee('0x8')]?this[_0x9cee('0x8')][_0x9cee('0x27')]>_0x383ac8[_0x9cee('0x27')]?_0xb76fe8-0x1:_0xb76fe8:_0xb76fe8-0x1;}[_0x9cee('0xd')](){if(this[_0x9cee('0x2a')]['resolvedBy']&&this[_0x9cee('0x2a')]['resolvedAt']){const _0x24e533={'id':_0x9cee('0x7'),'author':this[_0x9cee('0x2a')][_0x9cee('0x1e')],'authoredAt':this[_0x9cee('0x2a')]['resolvedAt'],'content':_0x38b0ff(this[_0x9cee('0x18')],_0x9cee('0x11')),'attributes':{}};this[_0x9cee('0x8')]=new this[(_0x9cee('0x3a'))][(_0x9cee('0x2'))](this['locale'],_0x24e533,{'maxCommentCharsWhenCollapsed':this[_0x9cee('0x3a')][_0x9cee('0x14')],'formatDateTime':this[_0x9cee('0x3a')][_0x9cee('0xc')],'editorConfig':this['_config'][_0x9cee('0x2e')],'isSystemComment':!0x0}),this['commentViews'][_0x9cee('0x1d')](this[_0x9cee('0x8')],this['_model'][_0x9cee('0x36')](_0x24e533));}else this[_0x9cee('0x8')]&&(this['commentViews'][_0x9cee('0x19')](this[_0x9cee('0x8')]),this[_0x9cee('0x8')][_0x9cee('0x4')](),this[_0x9cee('0x8')]=null);this[_0x9cee('0x2f')]();}[_0x9cee('0x2d')](_0x5a55f9){const _0x4baf28=this[_0x9cee('0xf')][_0x9cee('0x19')](_0x5a55f9['id']);this[_0x9cee('0xa')](_0x4baf28),_0x4baf28[_0x9cee('0xe')]&&this[_0x9cee('0x21')](),_0x4baf28[_0x9cee('0x4')]();}[_0x9cee('0x21')](){this['hasDirtyComment']=Array[_0x9cee('0x38')](this[_0x9cee('0xf')])[_0x9cee('0x9')](_0x288113=>_0x288113['isEditMode']);}[_0x9cee('0x32')](){const _0x2ba415=function(_0x49000e){const _0x142d25=new _0x5a7925();for(const _0x3abf71 of _0x49000e)_0x142d25[_0x9cee('0x1d')](_0x3abf71);return _0x142d25;}(this[_0x9cee('0xf')]),_0x2bde67=this[_0x9cee('0x28')][_0x9cee('0x30')];for(let _0x49e2ad=0x1;_0x49e2ad<=_0x2bde67;_0x49e2ad++)_0x2ba415[_0x9cee('0x19')](0x1);for(const _0x2f1b5c of _0x2ba415)_0x2f1b5c['collapse']();_0x2bde67>0x0&&_0x2ba415[_0x9cee('0x1d')](this[_0x9cee('0x28')],0x1),ss(_0x5d2eab(Array['from'](this[_0x9cee('0x37')]),Array[_0x9cee('0x38')](_0x2ba415)),this[_0x9cee('0x37')],_0x2ba415);}[_0x9cee('0x0')](){ss(_0x5d2eab(Array['from'](this[_0x9cee('0x37')]),Array[_0x9cee('0x38')](this[_0x9cee('0xf')])),this['visibleViews'],this[_0x9cee('0xf')]);for(const _0x1b5a00 of this[_0x9cee('0x37')])_0x1b5a00[_0x9cee('0x17')]();}}function ss(_0xeab988,_0x3b1a8e,_0x210388){let _0x241970=0x0;for(const _0x53a407 of _0xeab988)switch(_0x53a407){case _0x9cee('0x35'):_0x3b1a8e[_0x9cee('0x1d')](_0x210388['get'](_0x241970),_0x241970),_0x241970++;break;case _0x9cee('0x29'):_0x3b1a8e[_0x9cee('0x19')](_0x241970);break;case _0x9cee('0x33'):_0x241970++;}}
23
+ const _0x11f6=['equal','render','some','comments','ck-thread__comments','maxCommentCharsWhenCollapsed','createCollection','visibleViews','refreshVisibleViews','_model','updateComment','_handleNewCommentModel','_rearrangeExpand','_config','maxThreadTotalWeight','_handleRemoveCommentModel','isActive','commentUpdated','set','_handleInfoComment','delete','resolvedCommentView','setTemplate','length','_collapsedCommentsView','isEditMode','editorConfig','formatDateTime','editorDestroyed','_updateHasDirtyComment','stopListening','_findOptimalIndex','element','add','viewUid','delegate','get','_calculatePosition','locale','commentViews','change:isResolved','remove','resolvedBy','from','_rearrangeCollapse','count','listenTo','expand','change:isEditMode','_shouldCollapse','resolvedAt','hasDirtyComment','bind','resolved','authoredAt','CommentView','destroy','insert','change:isActive','focus'];(function(_0x9bfd9f,_0x11f62d){const _0x136198=function(_0x38d886){while(--_0x38d886){_0x9bfd9f['push'](_0x9bfd9f['shift']());}};_0x136198(++_0x11f62d);}(_0x11f6,0x8c));const _0x1361=function(_0x9bfd9f,_0x11f62d){_0x9bfd9f=_0x9bfd9f-0x0;let _0x136198=_0x11f6[_0x9bfd9f];return _0x136198;};import{View as _0x43f308}from'ckeditor5/src/ui';import{diff as _0x404c82,Collection as _0x670713}from'ckeditor5/src/utils';import{getTranslation as _0x50e20d}from'../../../utils/common-translations';import _0x54861f from'./collapsedcommentsview';export default class wt extends _0x43f308{constructor(_0xa9904e,_0x2a7b9a,_0x604267){super(_0xa9904e),this[_0x1361('0x3a')]('hasDirtyComment',!0x1),this[_0x1361('0x3a')](_0x1361('0x3'),_0x2a7b9a[_0x1361('0x2b')][_0x1361('0x3')]),this[_0x1361('0x3a')]('isActive',!0x1),this['_model']=_0x2a7b9a,this[_0x1361('0x35')]=_0x604267,this[_0x1361('0x13')]=this[_0x1361('0x2e')](),this[_0x1361('0x2f')]=this['createCollection'](),this[_0x1361('0x1')]=null,this[_0x1361('0x4')]=new _0x54861f(_0xa9904e),this[_0x1361('0x4')][_0x1361('0x20')]('count')['to'](this,'length',_0x3a5aa9=>_0x3a5aa9-this['_config']['maxCommentsWhenCollapsed']);for(const _0x10283f of _0x2a7b9a[_0x1361('0x2b')])this['_handleNewCommentModel'](_0x10283f);this['_handleInfoComment'](),this[_0x1361('0x1a')](_0x2a7b9a[_0x1361('0x2b')],_0x1361('0xd'),(_0x13cd1b,_0x493ede)=>{const _0x4315c3=this[_0x1361('0x11')](_0x493ede);this['length']++,this[_0x1361('0x33')](_0x493ede,_0x4315c3),this[_0x1361('0x30')]();}),this[_0x1361('0x1a')](_0x2a7b9a[_0x1361('0x2b')],_0x1361('0x15'),(_0x229053,_0x8a1708)=>{this[_0x1361('0x3')]--,this[_0x1361('0x37')](_0x8a1708),this['refreshVisibleViews']();}),this['listenTo'](_0x2a7b9a,_0x1361('0x39'),()=>this[_0x1361('0x30')]()),this[_0x1361('0x1a')](_0x2a7b9a,_0x1361('0x14'),()=>this[_0x1361('0x3b')]()),this['on'](_0x1361('0x26'),()=>this[_0x1361('0x30')]()),this['on']('change:hasDirtyComment',()=>this[_0x1361('0x30')]()),this[_0x1361('0x2')]({'tag':'ul','attributes':{'class':[_0x1361('0x2c')]},'children':this[_0x1361('0x2f')]});}get[_0x1361('0x1d')](){return this[_0x1361('0x31')]['weight']>this[_0x1361('0x35')][_0x1361('0x36')]&&!this[_0x1361('0x38')]&&!this[_0x1361('0x1f')];}[_0x1361('0x29')](){super[_0x1361('0x29')](),this[_0x1361('0x30')]();}[_0x1361('0x27')](){this[_0x1361('0xc')][_0x1361('0x27')]();}[_0x1361('0x24')](){this[_0x1361('0x4')][_0x1361('0x24')]();for(const _0x588a5c of this[_0x1361('0x13')])_0x588a5c['destroy']();super['destroy']();}[_0x1361('0x30')](){this[_0x1361('0x1d')]?this[_0x1361('0x18')]():this[_0x1361('0x34')]();}[_0x1361('0x33')](_0x4b26df,_0x531b62){const _0x4bccb5=new this['_config'][(_0x1361('0x23'))](this[_0x1361('0x12')],_0x4b26df,{'maxCommentCharsWhenCollapsed':this[_0x1361('0x35')][_0x1361('0x2d')],'formatDateTime':this[_0x1361('0x35')][_0x1361('0x7')],'editorConfig':this[_0x1361('0x35')][_0x1361('0x6')]});_0x4bccb5[_0x1361('0xe')]=_0x4b26df['id'],_0x4bccb5['delegate']('removeComment')['to'](this),_0x4bccb5[_0x1361('0xf')](_0x1361('0x32'))['to'](this),_0x4bccb5['delegate']('resolveCommentThread')['to'](this),_0x4bccb5['delegate']('editorReady')['to'](this),_0x4bccb5[_0x1361('0xf')](_0x1361('0x8'))['to'](this),this[_0x1361('0x1a')](_0x4bccb5,_0x1361('0x1c'),()=>this[_0x1361('0x9')]()),this[_0x1361('0x13')]['add'](_0x4bccb5,_0x531b62);}[_0x1361('0x11')](_0xfce2ae){const _0x546f4f=this['_model'][_0x1361('0xb')](_0xfce2ae);return this[_0x1361('0x1')]?this[_0x1361('0x1')][_0x1361('0x22')]>_0xfce2ae[_0x1361('0x22')]?_0x546f4f-0x1:_0x546f4f:_0x546f4f-0x1;}[_0x1361('0x3b')](){if(this['_model'][_0x1361('0x16')]&&this['_model'][_0x1361('0x1e')]){const _0xef8f06={'id':_0x1361('0x21'),'author':this['_model'][_0x1361('0x16')],'authoredAt':this[_0x1361('0x31')][_0x1361('0x1e')],'content':_0x50e20d(this[_0x1361('0x12')],'Marked\x20as\x20resolved'),'attributes':{}};this[_0x1361('0x1')]=new this[(_0x1361('0x35'))][(_0x1361('0x23'))](this['locale'],_0xef8f06,{'maxCommentCharsWhenCollapsed':this[_0x1361('0x35')][_0x1361('0x2d')],'formatDateTime':this[_0x1361('0x35')][_0x1361('0x7')],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this[_0x1361('0x13')][_0x1361('0xd')](this['resolvedCommentView'],this[_0x1361('0x31')][_0x1361('0xb')](_0xef8f06));}else this[_0x1361('0x1')]&&(this[_0x1361('0x13')][_0x1361('0x15')](this[_0x1361('0x1')]),this[_0x1361('0x1')][_0x1361('0x24')](),this[_0x1361('0x1')]=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x4b2dad){const _0xa46f91=this[_0x1361('0x13')][_0x1361('0x15')](_0x4b2dad['id']);this[_0x1361('0xa')](_0xa46f91),_0xa46f91[_0x1361('0x5')]&&this[_0x1361('0x9')](),_0xa46f91[_0x1361('0x24')]();}[_0x1361('0x9')](){this['hasDirtyComment']=Array[_0x1361('0x17')](this[_0x1361('0x13')])[_0x1361('0x2a')](_0xb6124f=>_0xb6124f[_0x1361('0x5')]);}[_0x1361('0x18')](){const _0x222738=function(_0x201130){const _0xbaf71e=new _0x670713();for(const _0x2d5450 of _0x201130)_0xbaf71e[_0x1361('0xd')](_0x2d5450);return _0xbaf71e;}(this[_0x1361('0x13')]),_0x388140=this[_0x1361('0x4')][_0x1361('0x19')];for(let _0x1e743d=0x1;_0x1e743d<=_0x388140;_0x1e743d++)_0x222738[_0x1361('0x15')](0x1);for(const _0x5a0fc6 of _0x222738)_0x5a0fc6['collapse']();_0x388140>0x0&&_0x222738[_0x1361('0xd')](this[_0x1361('0x4')],0x1),ss(_0x404c82(Array[_0x1361('0x17')](this[_0x1361('0x2f')]),Array['from'](_0x222738)),this[_0x1361('0x2f')],_0x222738);}[_0x1361('0x34')](){ss(_0x404c82(Array[_0x1361('0x17')](this[_0x1361('0x2f')]),Array['from'](this[_0x1361('0x13')])),this[_0x1361('0x2f')],this[_0x1361('0x13')]);for(const _0xb79a24 of this[_0x1361('0x2f')])_0xb79a24[_0x1361('0x1b')]();}}function ss(_0x4b34a2,_0x358d82,_0x164c53){let _0x5eec11=0x0;for(const _0xcaf04f of _0x4b34a2)switch(_0xcaf04f){case _0x1361('0x25'):_0x358d82[_0x1361('0xd')](_0x164c53[_0x1361('0x10')](_0x5eec11),_0x5eec11),_0x5eec11++;break;case _0x1361('0x0'):_0x358d82[_0x1361('0x15')](_0x5eec11);break;case _0x1361('0x28'):_0x5eec11++;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4feb=['ck-context--quotes','tooltip','scrollWidth','substring','offsetWidth','length','mouseleave','hasContext','element','_createReopenButton','listenTo','locale','remove','isResolved','Reopen','_attachContextActions','...','querySelector','div','lastIndexOf','classList','ck-annotation__actions','fire','ck-context-wrapper','contextValue','context','overlay','icon','bindTemplate','span','bind','.ck-context__value','isResolvable','mouseenter','_model','isEnabled','execute','label','setTemplate','_trimContextValue','render','ck-context','reopenButtonView'];(function(_0x5da5eb,_0x4feb79){const _0x207e78=function(_0x4347ca){while(--_0x4347ca){_0x5da5eb['push'](_0x5da5eb['shift']());}};_0x207e78(++_0x4feb79);}(_0x4feb,0x1ed));const _0x207e=function(_0x5da5eb,_0x4feb79){_0x5da5eb=_0x5da5eb-0x0;let _0x207e78=_0x4feb[_0x5da5eb];return _0x207e78;};import{View as _0x325f7d,ButtonView as _0xe080a9}from'ckeditor5/src/ui';import{getTranslation as _0x23fc86}from'../../../utils/common-translations';import _0x5f08aa from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Rt extends _0x325f7d{constructor(_0x469dba,_0x5002c8){super(_0x469dba);const _0x4764b5=this[_0x207e('0x8')];this[_0x207e('0xe')]=_0x5002c8,this[_0x207e('0x16')]=this[_0x207e('0x20')](),this[_0x207e('0xa')](_0x207e('0x1e'))['to'](this[_0x207e('0xe')],'context',_0x1399f8=>!!_0x1399f8),this[_0x207e('0xa')](_0x207e('0x4'))['to'](this[_0x207e('0xe')],_0x207e('0x5'),_0x45ac83=>_0x45ac83&&_0x45ac83['value']?this[_0x207e('0x13')](_0x45ac83['value']):_0x23fc86(this[_0x207e('0x22')],'Comment\x20was\x20made\x20on\x20an\x20element')),this[_0x207e('0x12')]({'tag':_0x207e('0x29'),'attributes':{'class':['ck-thread__header']},'children':[{'tag':'div','attributes':{'class':[_0x207e('0x3')]},'children':[{'tag':_0x207e('0x29'),'attributes':{'class':[_0x207e('0x15'),_0x4764b5['if'](_0x207e('0x1e'),_0x207e('0x17'))]},'children':[{'tag':_0x207e('0x9'),'attributes':{'class':['ck-context__value']},'children':[{'text':_0x4764b5['to']('contextValue')}]}]}]},{'tag':_0x207e('0x29'),'attributes':{'class':[_0x207e('0x1')]},'children':[this[_0x207e('0x16')]]}]});}['render'](){super[_0x207e('0x14')](),this[_0x207e('0x26')]();}[_0x207e('0x20')](){const _0x2bdaba=new _0xe080a9(this[_0x207e('0x22')]);return _0x2bdaba[_0x207e('0x11')]=_0x23fc86(this[_0x207e('0x22')],_0x207e('0x25')),_0x2bdaba[_0x207e('0x18')]=_0x23fc86(this[_0x207e('0x22')],_0x207e('0x25')),_0x2bdaba[_0x207e('0x7')]=_0x5f08aa,_0x2bdaba[_0x207e('0xa')](_0x207e('0xf'))['to'](this[_0x207e('0xe')],'isReadOnly',_0x1be0cc=>!_0x1be0cc),_0x2bdaba['bind']('isVisible')['to'](this[_0x207e('0xe')],_0x207e('0xc'),this['_model'],_0x207e('0x24'),(_0x4dc100,_0x3e2028)=>_0x4dc100&&_0x3e2028),_0x2bdaba['on'](_0x207e('0x10'),()=>{this[_0x207e('0x2')]('reopenCommentThread',this[_0x207e('0xe')]['id']);}),_0x2bdaba;}[_0x207e('0x13')](_0x82cfcf){if(_0x82cfcf[_0x207e('0x1c')]<0x96)return _0x82cfcf;const _0x13b55a=_0x82cfcf[_0x207e('0x2a')]('\x20',0x93);return _0x82cfcf[_0x207e('0x1a')](0x0,_0x13b55a>-0x1?_0x13b55a:0x93)+_0x207e('0x27');}[_0x207e('0x26')](){const _0x5d0889=this[_0x207e('0x1f')][_0x207e('0x28')]('.ck-context'),_0x5998af=_0x5d0889[_0x207e('0x28')](_0x207e('0xb'));this[_0x207e('0x21')](_0x5d0889,_0x207e('0xd'),()=>{_0x5998af[_0x207e('0x1b')]<_0x5998af[_0x207e('0x19')]&&_0x5d0889[_0x207e('0x0')]['add']('overlay');}),this['listenTo'](_0x5d0889,_0x207e('0x1d'),()=>{_0x5d0889[_0x207e('0x0')][_0x207e('0x23')](_0x207e('0x6'));});}}
23
+ const _0x21bd=['hasContext','overlay','classList','bind','execute','ck-context--quotes','ck-thread__header','_trimContextValue','tooltip','reopenButtonView','querySelector','div','mouseleave','substring','listenTo','.ck-context__value','...','context','lastIndexOf','span','ck-context','contextValue','isResolvable','ck-context-wrapper','remove','ck-context__value','_attachContextActions','mouseenter','.ck-context','render','_model','isResolved','bindTemplate','value','setTemplate','locale','fire','offsetWidth','_createReopenButton','Reopen','isReadOnly','element'];(function(_0x2706ca,_0x21bdf6){const _0xc4e4be=function(_0x28581f){while(--_0x28581f){_0x2706ca['push'](_0x2706ca['shift']());}};_0xc4e4be(++_0x21bdf6);}(_0x21bd,0x108));const _0xc4e4=function(_0x2706ca,_0x21bdf6){_0x2706ca=_0x2706ca-0x0;let _0xc4e4be=_0x21bd[_0x2706ca];return _0xc4e4be;};import{View as _0x7ac108,ButtonView as _0x594757}from'ckeditor5/src/ui';import{getTranslation as _0x32a153}from'../../../utils/common-translations';import _0x293e95 from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Rt extends _0x7ac108{constructor(_0xadb145,_0x3f566d){super(_0xadb145);const _0x5766e2=this[_0xc4e4('0x14')];this[_0xc4e4('0x12')]=_0x3f566d,this['reopenButtonView']=this[_0xc4e4('0x1a')](),this[_0xc4e4('0x21')](_0xc4e4('0x1e'))['to'](this[_0xc4e4('0x12')],_0xc4e4('0x5'),_0x2910eb=>!!_0x2910eb),this[_0xc4e4('0x21')](_0xc4e4('0x9'))['to'](this[_0xc4e4('0x12')],_0xc4e4('0x5'),_0x491da3=>_0x491da3&&_0x491da3[_0xc4e4('0x15')]?this[_0xc4e4('0x25')](_0x491da3[_0xc4e4('0x15')]):_0x32a153(this[_0xc4e4('0x17')],'Comment\x20was\x20made\x20on\x20an\x20element')),this[_0xc4e4('0x16')]({'tag':_0xc4e4('0x29'),'attributes':{'class':[_0xc4e4('0x24')]},'children':[{'tag':_0xc4e4('0x29'),'attributes':{'class':[_0xc4e4('0xb')]},'children':[{'tag':'div','attributes':{'class':[_0xc4e4('0x8'),_0x5766e2['if'](_0xc4e4('0x1e'),_0xc4e4('0x23'))]},'children':[{'tag':_0xc4e4('0x7'),'attributes':{'class':[_0xc4e4('0xd')]},'children':[{'text':_0x5766e2['to']('contextValue')}]}]}]},{'tag':'div','attributes':{'class':['ck-annotation__actions']},'children':[this[_0xc4e4('0x27')]]}]});}[_0xc4e4('0x11')](){super[_0xc4e4('0x11')](),this['_attachContextActions']();}['_createReopenButton'](){const _0x1ed5cf=new _0x594757(this[_0xc4e4('0x17')]);return _0x1ed5cf['label']=_0x32a153(this['locale'],'Reopen'),_0x1ed5cf[_0xc4e4('0x26')]=_0x32a153(this[_0xc4e4('0x17')],_0xc4e4('0x1b')),_0x1ed5cf['icon']=_0x293e95,_0x1ed5cf[_0xc4e4('0x21')]('isEnabled')['to'](this[_0xc4e4('0x12')],_0xc4e4('0x1c'),_0xcde7be=>!_0xcde7be),_0x1ed5cf[_0xc4e4('0x21')]('isVisible')['to'](this[_0xc4e4('0x12')],_0xc4e4('0xa'),this[_0xc4e4('0x12')],_0xc4e4('0x13'),(_0x2f8293,_0x555fa2)=>_0x2f8293&&_0x555fa2),_0x1ed5cf['on'](_0xc4e4('0x22'),()=>{this[_0xc4e4('0x18')]('reopenCommentThread',this[_0xc4e4('0x12')]['id']);}),_0x1ed5cf;}['_trimContextValue'](_0x58cb4a){if(_0x58cb4a['length']<0x96)return _0x58cb4a;const _0x183995=_0x58cb4a[_0xc4e4('0x6')]('\x20',0x93);return _0x58cb4a[_0xc4e4('0x1')](0x0,_0x183995>-0x1?_0x183995:0x93)+_0xc4e4('0x4');}[_0xc4e4('0xe')](){const _0xd5c003=this[_0xc4e4('0x1d')][_0xc4e4('0x28')](_0xc4e4('0x10')),_0x457cfe=_0xd5c003[_0xc4e4('0x28')](_0xc4e4('0x3'));this[_0xc4e4('0x2')](_0xd5c003,_0xc4e4('0xf'),()=>{_0x457cfe[_0xc4e4('0x19')]<_0x457cfe['scrollWidth']&&_0xd5c003[_0xc4e4('0x20')]['add'](_0xc4e4('0x1f'));}),this[_0xc4e4('0x2')](_0xd5c003,_0xc4e4('0x0'),()=>{_0xd5c003[_0xc4e4('0x20')][_0xc4e4('0xc')](_0xc4e4('0x1f'));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x44e1=['then','bindTemplate','change:showInput','commentInputView','ck-thread__user','extendTemplate','showInput','value','editorReady','focusTracker','showButtons','destroy','setTemplate','delegate','bind','editorDestroyed','div','editor','userView','ck-comment__input-container--active','ck-comment__input-container'];(function(_0x4b89a9,_0x44e130){var _0x4fa415=function(_0x11aee4){while(--_0x11aee4){_0x4b89a9['push'](_0x4b89a9['shift']());}};_0x4fa415(++_0x44e130);}(_0x44e1,0x1a1));var _0x4fa4=function(_0x4b89a9,_0x44e130){_0x4b89a9=_0x4b89a9-0x0;var _0x4fa415=_0x44e1[_0x4b89a9];return _0x4fa415;};import{View as _0x22c9e8}from'ckeditor5/src/ui';import _0x443adc from'./commentinputview';import{UserView as _0x91187e}from'ckeditor5-collaboration/src/collaboration-core';export default class Ct extends _0x22c9e8{constructor(_0x6c7c63,_0x4c3b0a,_0x5a7691){super(_0x6c7c63),this[_0x4fa4('0x6')]=new _0x443adc(_0x6c7c63,_0x5a7691),this[_0x4fa4('0x6')][_0x4fa4('0x11')](_0x4fa4('0xd'))['to'](this[_0x4fa4('0x6')][_0x4fa4('0xc')],'isFocused',this[_0x4fa4('0x6')],_0x4fa4('0xa'),(_0x1ae5b1,_0x5130b8)=>_0x1ae5b1||!!_0x5130b8),this['set'](_0x4fa4('0x9'),!0x1),this['on'](_0x4fa4('0x5'),()=>{this['showInput']&&!this[_0x4fa4('0x6')][_0x4fa4('0x14')]&&this[_0x4fa4('0x6')]['createEditor']();}),this[_0x4fa4('0x6')][_0x4fa4('0x10')](_0x4fa4('0xb'))['to'](this),this[_0x4fa4('0x6')][_0x4fa4('0x10')](_0x4fa4('0x12'))['to'](this),this[_0x4fa4('0x0')]=new _0x91187e(_0x6c7c63,_0x4c3b0a),this[_0x4fa4('0x0')]['extendTemplate']({'attributes':{'class':_0x4fa4('0x7')}}),this[_0x4fa4('0x6')][_0x4fa4('0x8')]({'attributes':{'class':'ck-thread__input'}}),this[_0x4fa4('0xf')]({'tag':_0x4fa4('0x13'),'attributes':{'class':[_0x4fa4('0x2'),this[_0x4fa4('0x4')]['if']('showInput',_0x4fa4('0x1'))]},'children':[this[_0x4fa4('0x0')],this[_0x4fa4('0x6')]]});}[_0x4fa4('0xe')](){return this['commentInputView']['destroy']()[_0x4fa4('0x3')](()=>super['destroy']());}}
23
+ var _0x58ef=['value','commentInputView','ck-comment__input-container','editor','bindTemplate','then','bind','div','ck-comment__input-container--active','ck-thread__user','createEditor','showInput','destroy','userView','delegate','focusTracker','ck-thread__input','extendTemplate'];(function(_0xb2fc51,_0x58ef8e){var _0xc5fa97=function(_0x4dc0c3){while(--_0x4dc0c3){_0xb2fc51['push'](_0xb2fc51['shift']());}};_0xc5fa97(++_0x58ef8e);}(_0x58ef,0x93));var _0xc5fa=function(_0xb2fc51,_0x58ef8e){_0xb2fc51=_0xb2fc51-0x0;var _0xc5fa97=_0x58ef[_0xb2fc51];return _0xc5fa97;};import{View as _0x19ceff}from'ckeditor5/src/ui';import _0x129bfe from'./commentinputview';import{UserView as _0x5be2ce}from'ckeditor5-collaboration/src/collaboration-core';export default class Ct extends _0x19ceff{constructor(_0x4579d7,_0x292daf,_0x339607){super(_0x4579d7),this[_0xc5fa('0x10')]=new _0x129bfe(_0x4579d7,_0x339607),this['commentInputView'][_0xc5fa('0x3')]('showButtons')['to'](this[_0xc5fa('0x10')][_0xc5fa('0xc')],'isFocused',this[_0xc5fa('0x10')],_0xc5fa('0xf'),(_0x4527b9,_0x5ef65a)=>_0x4527b9||!!_0x5ef65a),this['set'](_0xc5fa('0x8'),!0x1),this['on']('change:showInput',()=>{this['showInput']&&!this[_0xc5fa('0x10')][_0xc5fa('0x0')]&&this[_0xc5fa('0x10')][_0xc5fa('0x7')]();}),this[_0xc5fa('0x10')][_0xc5fa('0xb')]('editorReady')['to'](this),this[_0xc5fa('0x10')][_0xc5fa('0xb')]('editorDestroyed')['to'](this),this[_0xc5fa('0xa')]=new _0x5be2ce(_0x4579d7,_0x292daf),this[_0xc5fa('0xa')][_0xc5fa('0xe')]({'attributes':{'class':_0xc5fa('0x6')}}),this['commentInputView'][_0xc5fa('0xe')]({'attributes':{'class':_0xc5fa('0xd')}}),this['setTemplate']({'tag':_0xc5fa('0x4'),'attributes':{'class':[_0xc5fa('0x11'),this[_0xc5fa('0x1')]['if']('showInput',_0xc5fa('0x5'))]},'children':[this[_0xc5fa('0xa')],this[_0xc5fa('0x10')]]});}[_0xc5fa('0x9')](){return this['commentInputView']['destroy']()[_0xc5fa('0x2')](()=>super[_0xc5fa('0x9')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x561d=['isSystemComment','ck-thread--active','change:isReadOnly','listenTo','removeButton','label','change:isActive','removeCommentThread','isReadOnly','tooltip','isEnabled','ck-thread','actionIndicator','ck-reset_all-excluded','ck-thread--','_boundFirstCommentView','render','ck-comment--resolve','cancelConfirm','resolveButton','icon','isUnlinked','getTemplate','_cancelAllConfirms','Delete\x20comment\x20thread?','commentViews','check','ck-thread--unlinked','setTemplate','commentThreadInputView','bind','div','resolveCommentThread','isActive','addMany','element','commentThreadChildren','isResolved','.ck-thread__container','locale','_bindFirstCommentView','isConfirm','commentsListView','unbind','Resolve','commentThreadHeaderView','change:archivedAt','ck-thread__container','placeholder','set','archivedAt','remove','add','stop','ck-thread--remove-confirmation','_model'];(function(_0x31393c,_0x561d3d){const _0x43429c=function(_0x24a4ab){while(--_0x24a4ab){_0x31393c['push'](_0x31393c['shift']());}};_0x43429c(++_0x561d3d);}(_0x561d,0x132));const _0x4342=function(_0x31393c,_0x561d3d){_0x31393c=_0x31393c-0x0;let _0x43429c=_0x561d[_0x31393c];return _0x43429c;};import{ConfirmMixin as _0x4b1b58}from'ckeditor5-collaboration/src/collaboration-core';import{ButtonView as _0x2c2eba}from'ckeditor5/src/ui';import{icons as _0x2bba6d}from'ckeditor5/src/core';import _0x3fce36 from'./basecommentthreadview';import{getTranslation as _0x3cce52}from'../../../utils/common-translations';export default class lt extends _0x4b1b58(_0x3fce36){constructor(_0x28a470,_0x571332,_0xd70632,_0x36246e){super(_0x28a470,_0x571332,_0xd70632,_0x36246e),this[_0x4342('0xa')]=this['createCollection'](),this['commentThreadChildren'][_0x4342('0x8')]([this[_0x4342('0x10')],this[_0x4342('0x3')]]),this[_0x4342('0x1d')][_0x4342('0x18')]&&this[_0x4342('0xa')][_0x4342('0x1a')](this[_0x4342('0x13')],0x0),this[_0x4342('0x1d')]['on'](_0x4342('0x14'),(_0x463ae8,_0x4fe91e,_0x1f4d3b)=>{_0x1f4d3b?this[_0x4342('0xa')]['has'](this[_0x4342('0x13')])||this[_0x4342('0xa')][_0x4342('0x1a')](this[_0x4342('0x13')],0x0):this[_0x4342('0xa')]['remove'](this[_0x4342('0x13')]);}),this[_0x4342('0x17')]('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this[_0x4342('0xd')]=_0x28a470,this[_0x4342('0x31')]=this['_createResolveButton'](),this[_0x4342('0x2')](this[_0x4342('0x34')]()),this['on'](_0x4342('0x24'),(_0x1607a9,_0x461d35,_0x3c5bc5)=>{_0x3c5bc5||this[_0x4342('0x35')]();}),this[_0x4342('0x21')](this[_0x4342('0x1d')],_0x4342('0x20'),(_0x160fea,_0x49b7fa,_0x4f0c04)=>{_0x4f0c04&&this['_cancelAllConfirms']();}),this['length']>0x0&&this[_0x4342('0xe')](),this[_0x4342('0x21')](this['commentsListView']['commentViews'],_0x4342('0x1a'),()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x3a2bc3=this['bindTemplate'];return{'tag':_0x4342('0x5'),'attributes':{'class':[_0x4342('0x29'),_0x4342('0x2b'),_0x3a2bc3['if'](_0x4342('0x7'),_0x4342('0x1f')),_0x3a2bc3['if'](_0x4342('0x33'),_0x4342('0x1')),_0x3a2bc3['if'](_0x4342('0xf'),_0x4342('0x1c')),_0x3a2bc3['to']('actionIndicator',_0x5448f5=>_0x5448f5?_0x4342('0x2c')+_0x5448f5:'')],'data-thread-id':this[_0x4342('0x1d')]['id'],'tabindex':-0x1},'children':[{'tag':_0x4342('0x5'),'attributes':{'class':_0x4342('0x15')},'children':this['commentThreadChildren']}]};}['render'](){super[_0x4342('0x2e')](),this['containerElement']=this[_0x4342('0x9')]['querySelector'](_0x4342('0xc'));}['_cancelAllConfirms'](){this['cancelConfirm']();for(const _0x2e55fd of this[_0x4342('0x10')][_0x4342('0x37')])_0x2e55fd[_0x4342('0x30')]();}['_bindFirstCommentView'](){const {locale:_0x3b71bd}=this,_0x3eb721=this[_0x4342('0x10')][_0x4342('0x37')]['get'](0x0);_0x3eb721===this[_0x4342('0x2d')]||_0x3eb721[_0x4342('0x1e')]||(this[_0x4342('0x2d')]=_0x3eb721,this[_0x4342('0x11')]('actionIndicator'),this[_0x4342('0x4')](_0x4342('0x2a'))['to'](_0x3eb721,_0x4342('0x2a'),_0x2917f2=>_0x4342('0x19')===_0x2917f2?_0x4342('0x19'):null),_0x3eb721[_0x4342('0x16')]=_0x3cce52(_0x3b71bd,'Write\x20a\x20comment...'),_0x3eb721[_0x4342('0x22')]['on']('execute',_0x2650e0=>{_0x2650e0[_0x4342('0x1b')](),this['showConfirm'](_0x3cce52(_0x3b71bd,_0x4342('0x36')),this['containerElement'])['then'](()=>{this['fire'](_0x4342('0x25'));});},{'priority':'high'}),_0x3eb721['actionBar'][_0x4342('0x1a')](this[_0x4342('0x31')],0x0));}['_createResolveButton'](){const _0x51986d=new _0x2c2eba(this['locale']);return _0x51986d[_0x4342('0x23')]=_0x3cce52(this['locale'],_0x4342('0x12')),_0x51986d[_0x4342('0x27')]=_0x3cce52(this[_0x4342('0xd')],_0x4342('0x12')),_0x51986d[_0x4342('0x32')]=_0x2bba6d[_0x4342('0x0')],_0x51986d['extendTemplate']({'attributes':{'class':_0x4342('0x2f')}}),_0x51986d[_0x4342('0x4')](_0x4342('0x28'))['to'](this[_0x4342('0x1d')],_0x4342('0x26'),_0x21b3f2=>!_0x21b3f2),_0x51986d[_0x4342('0x4')]('isVisible')['to'](this[_0x4342('0x1d')],'isResolvable',this[_0x4342('0x1d')],_0x4342('0xb'),(_0xbb48cb,_0x3d58a4)=>_0xbb48cb&&!_0x3d58a4),_0x51986d['on']('execute',()=>{this['fire'](_0x4342('0x6'),this[_0x4342('0x1d')]['id']);}),_0x51986d;}}
23
+ const _0x46e1=['isConfirm','change:isReadOnly','has','div','removeButton','ck-thread--','_model','cancelConfirm','extendTemplate','removeCommentThread','bind','Delete\x20comment\x20thread?','isActive','commentViews','isResolvable','isUnlinked','fire','createCollection','execute','Resolve','listenTo','actionIndicator','showConfirm','querySelector','getTemplate','commentThreadChildren','element','containerElement','length','isVisible','ck-thread--active','_boundFirstCommentView','set','ck-thread--remove-confirmation','commentThreadHeaderView','label','commentThreadInputView','commentsListView','icon','stop','ck-comment--resolve','resolveButton','add','isEnabled','_bindFirstCommentView','high','change:isActive','change:archivedAt','locale','tooltip','archivedAt','remove','check','_cancelAllConfirms','isResolved','then','setTemplate','render'];(function(_0x396dc3,_0x46e1d3){const _0x5a3b2f=function(_0x475bdd){while(--_0x475bdd){_0x396dc3['push'](_0x396dc3['shift']());}};_0x5a3b2f(++_0x46e1d3);}(_0x46e1,0x155));const _0x5a3b=function(_0x396dc3,_0x46e1d3){_0x396dc3=_0x396dc3-0x0;let _0x5a3b2f=_0x46e1[_0x396dc3];return _0x5a3b2f;};import{ConfirmMixin as _0x24ef0e}from'ckeditor5-collaboration/src/collaboration-core';import{ButtonView as _0x100f14}from'ckeditor5/src/ui';import{icons as _0x53454b}from'ckeditor5/src/core';import _0x3af36b from'./basecommentthreadview';import{getTranslation as _0x2e9c56}from'../../../utils/common-translations';export default class lt extends _0x24ef0e(_0x3af36b){constructor(_0x3223b6,_0x15af1a,_0x474efe,_0x574b67){super(_0x3223b6,_0x15af1a,_0x474efe,_0x574b67),this['commentThreadChildren']=this[_0x5a3b('0x18')](),this[_0x5a3b('0x20')]['addMany']([this['commentsListView'],this[_0x5a3b('0x2b')]]),this[_0x5a3b('0xd')][_0x5a3b('0x39')]&&this[_0x5a3b('0x20')][_0x5a3b('0x31')](this[_0x5a3b('0x29')],0x0),this[_0x5a3b('0xd')]['on'](_0x5a3b('0x36'),(_0x532e29,_0x1de56c,_0x54ee28)=>{_0x54ee28?this['commentThreadChildren'][_0x5a3b('0x9')](this[_0x5a3b('0x29')])||this[_0x5a3b('0x20')][_0x5a3b('0x31')](this[_0x5a3b('0x29')],0x0):this[_0x5a3b('0x20')][_0x5a3b('0x0')](this[_0x5a3b('0x29')]);}),this[_0x5a3b('0x27')](_0x5a3b('0x1c'),null),this[_0x5a3b('0x22')]=null,this['_boundFirstCommentView']=null,this[_0x5a3b('0x37')]=_0x3223b6,this[_0x5a3b('0x30')]=this['_createResolveButton'](),this[_0x5a3b('0x5')](this['getTemplate']()),this['on'](_0x5a3b('0x35'),(_0x15f5a4,_0x36a3d8,_0x2c1d78)=>{_0x2c1d78||this[_0x5a3b('0x2')]();}),this[_0x5a3b('0x1b')](this['_model'],_0x5a3b('0x8'),(_0x2b74cc,_0x3067b2,_0x3d9df0)=>{_0x3d9df0&&this[_0x5a3b('0x2')]();}),this[_0x5a3b('0x23')]>0x0&&this['_bindFirstCommentView'](),this[_0x5a3b('0x1b')](this[_0x5a3b('0x2c')][_0x5a3b('0x14')],'add',()=>{this[_0x5a3b('0x33')]();});}[_0x5a3b('0x1f')](){const _0x5197e0=this['bindTemplate'];return{'tag':_0x5a3b('0xa'),'attributes':{'class':['ck-thread','ck-reset_all-excluded',_0x5197e0['if'](_0x5a3b('0x13'),_0x5a3b('0x25')),_0x5197e0['if'](_0x5a3b('0x16'),'ck-thread--unlinked'),_0x5197e0['if'](_0x5a3b('0x7'),_0x5a3b('0x28')),_0x5197e0['to'](_0x5a3b('0x1c'),_0x1b1992=>_0x1b1992?_0x5a3b('0xc')+_0x1b1992:'')],'data-thread-id':this[_0x5a3b('0xd')]['id'],'tabindex':-0x1},'children':[{'tag':_0x5a3b('0xa'),'attributes':{'class':'ck-thread__container'},'children':this[_0x5a3b('0x20')]}]};}['render'](){super[_0x5a3b('0x6')](),this[_0x5a3b('0x22')]=this[_0x5a3b('0x21')][_0x5a3b('0x1e')]('.ck-thread__container');}['_cancelAllConfirms'](){this[_0x5a3b('0xe')]();for(const _0x5bcd29 of this['commentsListView'][_0x5a3b('0x14')])_0x5bcd29[_0x5a3b('0xe')]();}[_0x5a3b('0x33')](){const {locale:_0x31a894}=this,_0xa12183=this['commentsListView'][_0x5a3b('0x14')]['get'](0x0);_0xa12183===this[_0x5a3b('0x26')]||_0xa12183['isSystemComment']||(this['_boundFirstCommentView']=_0xa12183,this['unbind'](_0x5a3b('0x1c')),this[_0x5a3b('0x11')](_0x5a3b('0x1c'))['to'](_0xa12183,_0x5a3b('0x1c'),_0x76dfa4=>_0x5a3b('0x0')===_0x76dfa4?_0x5a3b('0x0'):null),_0xa12183['placeholder']=_0x2e9c56(_0x31a894,'Write\x20a\x20comment...'),_0xa12183[_0x5a3b('0xb')]['on']('execute',_0x52d761=>{_0x52d761[_0x5a3b('0x2e')](),this[_0x5a3b('0x1d')](_0x2e9c56(_0x31a894,_0x5a3b('0x12')),this['containerElement'])[_0x5a3b('0x4')](()=>{this[_0x5a3b('0x17')](_0x5a3b('0x10'));});},{'priority':_0x5a3b('0x34')}),_0xa12183['actionBar'][_0x5a3b('0x31')](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x1b4f2b=new _0x100f14(this[_0x5a3b('0x37')]);return _0x1b4f2b[_0x5a3b('0x2a')]=_0x2e9c56(this[_0x5a3b('0x37')],_0x5a3b('0x1a')),_0x1b4f2b[_0x5a3b('0x38')]=_0x2e9c56(this[_0x5a3b('0x37')],_0x5a3b('0x1a')),_0x1b4f2b[_0x5a3b('0x2d')]=_0x53454b[_0x5a3b('0x1')],_0x1b4f2b[_0x5a3b('0xf')]({'attributes':{'class':_0x5a3b('0x2f')}}),_0x1b4f2b['bind'](_0x5a3b('0x32'))['to'](this[_0x5a3b('0xd')],'isReadOnly',_0x35c12e=>!_0x35c12e),_0x1b4f2b[_0x5a3b('0x11')](_0x5a3b('0x24'))['to'](this[_0x5a3b('0xd')],_0x5a3b('0x15'),this['_model'],_0x5a3b('0x3'),(_0x55a38f,_0x3d4f2f)=>_0x55a38f&&!_0x3d4f2f),_0x1b4f2b['on'](_0x5a3b('0x19'),()=>{this[_0x5a3b('0x17')]('resolveCommentThread',this[_0x5a3b('0xd')]['id']);}),_0x1b4f2b;}}