@ckeditor/ckeditor5-comments 38.0.1 → 38.1.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 (71) hide show
  1. package/build/comments.js +1 -1
  2. package/build/translations/en-au.js +1 -1
  3. package/build/translations/it.js +1 -1
  4. package/build/translations/lv.js +1 -1
  5. package/build/translations/pt-br.js +1 -1
  6. package/build/translations/sk.js +1 -1
  7. package/build/translations/sq.js +1 -0
  8. package/lang/translations/en-au.po +1 -1
  9. package/lang/translations/it.po +1 -1
  10. package/lang/translations/lv.po +1 -1
  11. package/lang/translations/pt-br.po +1 -1
  12. package/lang/translations/sk.po +1 -1
  13. package/lang/translations/sq.po +111 -0
  14. package/package.json +10 -8
  15. package/src/annotations/annotation.js +1 -1
  16. package/src/annotations/annotationcollection.js +1 -1
  17. package/src/annotations/annotations.d.ts +1 -1
  18. package/src/annotations/annotations.js +1 -1
  19. package/src/annotations/annotationsuis.d.ts +4 -3
  20. package/src/annotations/annotationsuis.js +1 -1
  21. package/src/annotations/editorannotations.d.ts +4 -3
  22. package/src/annotations/editorannotations.js +1 -1
  23. package/src/annotations/inlineannotations.d.ts +6 -4
  24. package/src/annotations/inlineannotations.js +1 -1
  25. package/src/annotations/narrowsidebar.d.ts +6 -5
  26. package/src/annotations/narrowsidebar.js +1 -1
  27. package/src/annotations/sidebar.d.ts +1 -1
  28. package/src/annotations/sidebar.js +1 -1
  29. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  30. package/src/annotations/view/annotationview.js +1 -1
  31. package/src/annotations/view/sidebaritemview.js +1 -1
  32. package/src/annotations/view/sidebarview.js +1 -1
  33. package/src/annotations/widesidebar.d.ts +6 -5
  34. package/src/annotations/widesidebar.js +1 -1
  35. package/src/comments/addcommentthreadcommand.js +1 -1
  36. package/src/comments/commentsarchive.d.ts +6 -4
  37. package/src/comments/commentsarchive.js +1 -1
  38. package/src/comments/commentsarchiveui.d.ts +6 -4
  39. package/src/comments/commentsarchiveui.js +1 -1
  40. package/src/comments/commentsediting.d.ts +7 -3
  41. package/src/comments/commentsediting.js +1 -1
  42. package/src/comments/commentsrepository.d.ts +9 -5
  43. package/src/comments/commentsrepository.js +1 -1
  44. package/src/comments/commentsui.d.ts +7 -3
  45. package/src/comments/commentsui.js +1 -1
  46. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  47. package/src/comments/integrations/importword.js +1 -1
  48. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  49. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  50. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  51. package/src/comments/ui/commentthreadcontroller.d.ts +1 -1
  52. package/src/comments/ui/commentthreadcontroller.js +1 -1
  53. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  54. package/src/comments/ui/view/basecommentview.js +1 -1
  55. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  56. package/src/comments/ui/view/commentcontentview.js +1 -1
  57. package/src/comments/ui/view/commentinputview.js +1 -1
  58. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  59. package/src/comments/ui/view/commentslistview.js +1 -1
  60. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  61. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  62. package/src/comments/ui/view/commentthreadview.js +1 -1
  63. package/src/comments/ui/view/commentview.js +1 -1
  64. package/src/comments.d.ts +12 -3
  65. package/src/comments.js +1 -1
  66. package/src/commentsonly.d.ts +4 -3
  67. package/src/commentsonly.js +1 -1
  68. package/src/index.d.ts +3 -1
  69. package/src/index.js +1 -1
  70. package/src/utils/common-translations.js +1 -1
  71. package/src/utils/createmutationobserver.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1e82=['map','high','editor','commands','importWord.commentsStyles','addCommentThread','get','basic','config','plugins','collaboration_features','define','_handleImportedData','forEach'];(function(_0x273d81,_0x1e8284){const _0x55e9fe=function(_0x4ebed9){while(--_0x4ebed9){_0x273d81['push'](_0x273d81['shift']());}};_0x55e9fe(++_0x1e8284);}(_0x1e82,0x108));const _0x55e9=function(_0x273d81,_0x1e8284){_0x273d81=_0x273d81-0x0;let _0x55e9fe=_0x1e82[_0x273d81];return _0x55e9fe;};import{Plugin as _0x5be09a}from'ckeditor5/src/core';import{priorities as _0x571145}from'ckeditor5/src/utils';import{Users as _0x1e2d7b}from'ckeditor5-collaboration/src/collaboration-core';import _0xaf0d2c from'../commentsrepository';export default class Z extends _0x5be09a{constructor(_0x45df8c){super(_0x45df8c),this['editor']['config'][_0x55e9('0xd')](_0x55e9('0x6'),_0x55e9('0x9'));}['afterInit'](){const _0x529342=this[_0x55e9('0x4')],_0x57fdcf=_0x529342[_0x55e9('0x5')][_0x55e9('0x8')]('importWord'),_0x16915a=_0x529342[_0x55e9('0xb')][_0x55e9('0x8')](_0x1e2d7b);_0x57fdcf&&(_0x57fdcf['on']('execute',(_0x95b861,[,_0x5f0782])=>{_0x5f0782[_0x55e9('0xc')]={'comments':!0x0,'user_id':_0x16915a['me']['id'],'comments_styles':this[_0x55e9('0x4')][_0x55e9('0xa')][_0x55e9('0x8')]('importWord.commentsStyles')};},{'priority':_0x571145[_0x55e9('0x3')]+0xa}),this['listenTo'](_0x57fdcf,'dataInsert',this[_0x55e9('0x0')]));}[_0x55e9('0x0')](_0x3cd8a3,_0x373247){const {comment_threads:_0x1661e0}=_0x373247;_0x1661e0&&_0x1661e0[_0x55e9('0x1')](({thread_id:_0x49c288,comments:_0x533410,is_resolved:_0x40728d})=>{const _0x2ac2d5=new Date(),_0x6a3e79=_0x533410[_0x55e9('0x2')](({author:_0x4df803,content:_0x4aefea,created_at:_0x4dc45c})=>({'content':_0x4aefea,'authorId':this[_0x55e9('0x4')][_0x55e9('0xb')][_0x55e9('0x8')](_0x1e2d7b)['me']['id'],'createdAt':_0x2ac2d5,'attributes':{'@external':{'authorName':_0x4df803,'createdAt':_0x4dc45c?new Date(_0x4dc45c):new Date(),'source':'importWord'}}})),_0x3e54e6=this['editor'][_0x55e9('0xa')][_0x55e9('0x8')]('collaboration.channelId');this[_0x55e9('0x4')]['plugins'][_0x55e9('0x8')](_0xaf0d2c)[_0x55e9('0x7')]({'channelId':_0x3e54e6,'threadId':_0x49c288,'comments':_0x6a3e79,'resolvedAt':_0x40728d?_0x2ac2d5:null});});}}
23
+ const _0x19a9=['high','config','plugins','execute','editor','basic','addCommentThread','listenTo','define','_handleImportedData','forEach','dataInsert','map','importWord.commentsStyles','get','importWord'];(function(_0x4efb08,_0x19a948){const _0x26b480=function(_0x209e54){while(--_0x209e54){_0x4efb08['push'](_0x4efb08['shift']());}};_0x26b480(++_0x19a948);}(_0x19a9,0x78));const _0x26b4=function(_0x4efb08,_0x19a948){_0x4efb08=_0x4efb08-0x0;let _0x26b480=_0x19a9[_0x4efb08];return _0x26b480;};import{Plugin as _0x3f2b75}from'ckeditor5/src/core';import{priorities as _0x50dce8}from'ckeditor5/src/utils';import{Users as _0x2baa33}from'ckeditor5-collaboration/src/collaboration-core';import _0x68132f from'../commentsrepository';export default class Z extends _0x3f2b75{constructor(_0x27f19d){super(_0x27f19d),this[_0x26b4('0xc')][_0x26b4('0x9')][_0x26b4('0x0')](_0x26b4('0x5'),_0x26b4('0xd'));}['afterInit'](){const _0x12ec89=this[_0x26b4('0xc')],_0x2e4561=_0x12ec89['commands'][_0x26b4('0x6')](_0x26b4('0x7')),_0x4a77ff=_0x12ec89[_0x26b4('0xa')]['get'](_0x2baa33);_0x2e4561&&(_0x2e4561['on'](_0x26b4('0xb'),(_0x32bc36,[,_0x491209])=>{_0x491209['collaboration_features']={'comments':!0x0,'user_id':_0x4a77ff['me']['id'],'comments_styles':this['editor'][_0x26b4('0x9')]['get']('importWord.commentsStyles')};},{'priority':_0x50dce8[_0x26b4('0x8')]+0xa}),this[_0x26b4('0xf')](_0x2e4561,_0x26b4('0x3'),this[_0x26b4('0x1')]));}[_0x26b4('0x1')](_0x16b2c5,_0xfc83b6){const {comment_threads:_0x2853fa}=_0xfc83b6;_0x2853fa&&_0x2853fa[_0x26b4('0x2')](({thread_id:_0x3459c6,comments:_0x209952,is_resolved:_0x3921ba})=>{const _0x7ce96c=new Date(),_0x160e2c=_0x209952[_0x26b4('0x4')](({author:_0x3bc375,content:_0x5c8a10,created_at:_0x36477f})=>({'content':_0x5c8a10,'authorId':this['editor']['plugins'][_0x26b4('0x6')](_0x2baa33)['me']['id'],'createdAt':_0x7ce96c,'attributes':{'@external':{'authorName':_0x3bc375,'createdAt':_0x36477f?new Date(_0x36477f):new Date(),'source':'importWord'}}})),_0x58925c=this['editor'][_0x26b4('0x9')][_0x26b4('0x6')]('collaboration.channelId');this[_0x26b4('0xc')][_0x26b4('0xa')][_0x26b4('0x6')](_0x68132f)[_0x26b4('0xe')]({'channelId':_0x58925c,'threadId':_0x3459c6,'comments':_0x160e2c,'resolvedAt':_0x3921ba?_0x7ce96c:null});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4b54=['name','init','editing','change:placeholder','_updatePlaceholder','ready','placeholder','set','model','childCount','defaultPlugins','data','document','get','focus','initialData','createRoot','getRoot','plugins','getChild','then','config','create','destroy','placeholderElement','low'];(function(_0x322299,_0x4b54ac){const _0x4f17f6=function(_0x47e244){while(--_0x47e244){_0x322299['push'](_0x322299['shift']());}};_0x4f17f6(++_0x4b54ac);}(_0x4b54,0x136));const _0x4f17=function(_0x322299,_0x4b54ac){_0x322299=_0x322299-0x0;let _0x4f17f6=_0x4b54[_0x322299];return _0x4f17f6;};import{Editor as _0x35b871,DataApiMixin as _0x235fa6}from'ckeditor5/src/core';import _0x2b9396 from'./commenteditorui';import{ObservableMixin as _0x5b63f3}from'ckeditor5/src/utils';import{enablePlaceholder as _0x2f70ad,disablePlaceholder as _0x4392d3}from'ckeditor5/src/engine';import{Clipboard as _0x14a4c4}from'ckeditor5/src/clipboard';import{Enter as _0x581979,ShiftEnter as _0x300366}from'ckeditor5/src/enter';import{SelectAll as _0x1a1126}from'ckeditor5/src/select-all';import{Typing as _0x8108c9}from'ckeditor5/src/typing';import{Undo as _0x132712}from'ckeditor5/src/undo';import{Paragraph as _0x163e79}from'ckeditor5/src/paragraph';const Mt=[_0x14a4c4,_0x581979,_0x300366,_0x1a1126,_0x8108c9,_0x132712,_0x163e79];export default class Nt extends _0x5b63f3(_0x235fa6(_0x35b871)){constructor(_0x307e0b={}){(_0x307e0b=Object['assign']({},_0x307e0b))[_0x4f17('0x14')]||(_0x307e0b['plugins']=Nt[_0x4f17('0xc')]),super(_0x307e0b),this['ui']=new _0x2b9396(this),this[_0x4f17('0x9')](_0x4f17('0x8'),''),this[_0x4f17('0xa')]['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':_0x4f17('0x1')}),this['on'](_0x4f17('0x5'),()=>this[_0x4f17('0x6')]()),this[_0x4f17('0xa')]['document'][_0x4f17('0x12')]();}[_0x4f17('0x18')](){const _0x2fc8ee=this[_0x4f17('0x17')][_0x4f17('0xf')](_0x4f17('0x11'))||'';return this['initPlugins']()[_0x4f17('0x16')](()=>this['ui'][_0x4f17('0x3')]())['then'](()=>this[_0x4f17('0xd')][_0x4f17('0x3')](_0x2fc8ee))['then'](()=>this['fire'](_0x4f17('0x7')));}['destroy'](){return super[_0x4f17('0x19')]()[_0x4f17('0x16')](()=>this['ui']['destroy']());}['focus'](){this[_0x4f17('0xa')]['change'](_0x596e0d=>{const _0x187a69=this['model'][_0x4f17('0xe')][_0x4f17('0x13')](),_0x1cb60f=_0x187a69&&_0x187a69[_0x4f17('0x15')](_0x187a69['childCount']-0x1);_0x596e0d['setSelection'](_0x1cb60f,'end'),this[_0x4f17('0x4')]['view'][_0x4f17('0x10')]();});}[_0x4f17('0x6')](){const _0x1e47eb=this['editing']['view'],_0x1b56fc=_0x1e47eb['document']['getRoot'](),_0x2b0938=_0x1b56fc[_0x4f17('0x15')](0x0);_0x1b56fc[_0x4f17('0xb')]>0x1||!_0x2b0938||'p'!=_0x2b0938[_0x4f17('0x2')]?this[_0x4f17('0x0')]&&(_0x4392d3(_0x1e47eb,this[_0x4f17('0x0')]),this[_0x4f17('0x0')]=void 0x0):(_0x2f70ad({'view':_0x1e47eb,'element':_0x2b0938,'text':this['placeholder'],'keepOnFocus':!0x0}),this['placeholderElement']=_0x2b0938);}}Nt['defaultPlugins']=Mt;
23
+ const _0xbe44=['initialData','create','low','placeholder','view','config','childCount','placeholderElement','destroy','init','createRoot','end','setSelection','focus','then','assign','getChild','set','change:placeholder','plugins','defaultPlugins','editing','initPlugins','change','name','getRoot','_updatePlaceholder','model','document'];(function(_0x25b44c,_0xbe44c1){const _0x2459b4=function(_0x344074){while(--_0x344074){_0x25b44c['push'](_0x25b44c['shift']());}};_0x2459b4(++_0xbe44c1);}(_0xbe44,0x102));const _0x2459=function(_0x25b44c,_0xbe44c1){_0x25b44c=_0x25b44c-0x0;let _0x2459b4=_0xbe44[_0x25b44c];return _0x2459b4;};import{Editor as _0x3d619f,DataApiMixin as _0x24ef50}from'ckeditor5/src/core';import _0x5e5b9 from'./commenteditorui';import{ObservableMixin as _0x298f14}from'ckeditor5/src/utils';import{enablePlaceholder as _0x49e497,disablePlaceholder as _0x3036b8}from'ckeditor5/src/engine';import{Clipboard as _0xb2c821}from'ckeditor5/src/clipboard';import{Enter as _0x30c4ba,ShiftEnter as _0x243ccb}from'ckeditor5/src/enter';import{SelectAll as _0x4ccf03}from'ckeditor5/src/select-all';import{Typing as _0x120ae7}from'ckeditor5/src/typing';import{Undo as _0x3b24a8}from'ckeditor5/src/undo';import{Paragraph as _0x376b97}from'ckeditor5/src/paragraph';const Lt=[_0xb2c821,_0x30c4ba,_0x243ccb,_0x4ccf03,_0x120ae7,_0x3b24a8,_0x376b97];export default class Mt extends _0x298f14(_0x24ef50(_0x3d619f)){constructor(_0xcb94b4={}){(_0xcb94b4=Object[_0x2459('0x12')]({},_0xcb94b4))[_0x2459('0x16')]||(_0xcb94b4[_0x2459('0x16')]=Mt[_0x2459('0x17')]),super(_0xcb94b4),this['ui']=new _0x5e5b9(this),this[_0x2459('0x14')](_0x2459('0x6'),''),this[_0x2459('0x1')]['document']['on'](_0x2459('0x1a'),()=>this[_0x2459('0x0')](),{'priority':_0x2459('0x5')}),this['on'](_0x2459('0x15'),()=>this[_0x2459('0x0')]()),this['model'][_0x2459('0x2')][_0x2459('0xd')]();}[_0x2459('0x4')](){const _0x2f09bc=this[_0x2459('0x8')]['get'](_0x2459('0x3'))||'';return this[_0x2459('0x19')]()[_0x2459('0x11')](()=>this['ui'][_0x2459('0xc')]())[_0x2459('0x11')](()=>this['data'][_0x2459('0xc')](_0x2f09bc))[_0x2459('0x11')](()=>this['fire']('ready'));}[_0x2459('0xb')](){return super[_0x2459('0xb')]()[_0x2459('0x11')](()=>this['ui']['destroy']());}[_0x2459('0x10')](){this[_0x2459('0x1')]['change'](_0x404513=>{const _0x1f8166=this['model'][_0x2459('0x2')]['getRoot'](),_0x1bda65=_0x1f8166&&_0x1f8166[_0x2459('0x13')](_0x1f8166[_0x2459('0x9')]-0x1);_0x404513[_0x2459('0xf')](_0x1bda65,_0x2459('0xe')),this[_0x2459('0x18')]['view'][_0x2459('0x10')]();});}['_updatePlaceholder'](){const _0x844c7a=this[_0x2459('0x18')][_0x2459('0x7')],_0x540cbb=_0x844c7a['document'][_0x2459('0x1c')](),_0x56aac0=_0x540cbb['getChild'](0x0);_0x540cbb[_0x2459('0x9')]>0x1||!_0x56aac0||'p'!=_0x56aac0[_0x2459('0x1b')]?this[_0x2459('0xa')]&&(_0x3036b8(_0x844c7a,this[_0x2459('0xa')]),this[_0x2459('0xa')]=void 0x0):(_0x49e497({'view':_0x844c7a,'element':_0x56aac0,'text':this[_0x2459('0x6')],'keepOnFocus':!0x0}),this[_0x2459('0xa')]=_0x56aac0);}}Mt[_0x2459('0x17')]=Lt;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1bcd=['element','destroy','editing','bind','locale','ready','render','editable','name','rootName','editor','fire','getRoot','focusTracker','setEditableElement','view','document'];(function(_0x204725,_0x1bcdd6){const _0x549dd9=function(_0x19ed71){while(--_0x19ed71){_0x204725['push'](_0x204725['shift']());}};_0x549dd9(++_0x1bcdd6);}(_0x1bcd,0xeb));const _0x549d=function(_0x204725,_0x1bcdd6){_0x204725=_0x204725-0x0;let _0x549dd9=_0x1bcd[_0x204725];return _0x549dd9;};import{EditorUI as _0x39c50f}from'ckeditor5/src/ui';import _0x2c88b3 from'./commenteditoruiview';export default class Ft extends _0x39c50f{constructor(_0x46a112){super(_0x46a112),this[_0x549d('0x1')]=new _0x2c88b3(_0x46a112[_0x549d('0x7')],_0x46a112[_0x549d('0x5')]['view']);}get[_0x549d('0x3')](){return this['view'][_0x549d('0x3')];}['init'](){const _0xe058f6=this[_0x549d('0xd')]['editing'][_0x549d('0x1')],_0x2f51f8=this[_0x549d('0x1')][_0x549d('0xa')],_0x4a6e75=_0xe058f6[_0x549d('0x2')][_0x549d('0xf')]();_0x2f51f8[_0x549d('0xb')]=_0x4a6e75[_0x549d('0xc')],this[_0x549d('0x1')][_0x549d('0x9')]();const _0x53ffa5=_0x2f51f8[_0x549d('0x3')];this[_0x549d('0x0')](_0x2f51f8['name'],_0x53ffa5),this[_0x549d('0x1')]['editable'][_0x549d('0x6')]('isFocused')['to'](this[_0x549d('0x10')]),_0xe058f6['attachDomRoot'](_0x53ffa5),this[_0x549d('0xe')](_0x549d('0x8'));}[_0x549d('0x4')](){super[_0x549d('0x4')](),this['view']['destroy']();}}
23
+ const _0x5baa=['rootName','attachDomRoot','getRoot','view','editing','destroy','element','fire','init','editable','bind','render','setEditableElement','document','editor','name'];(function(_0xab683f,_0x5baa8a){const _0x1061c6=function(_0x5c0543){while(--_0x5c0543){_0xab683f['push'](_0xab683f['shift']());}};_0x1061c6(++_0x5baa8a);}(_0x5baa,0x91));const _0x1061=function(_0xab683f,_0x5baa8a){_0xab683f=_0xab683f-0x0;let _0x1061c6=_0x5baa[_0xab683f];return _0x1061c6;};import{EditorUI as _0x5cbf53}from'ckeditor5/src/ui';import _0x10f8b3 from'./commenteditoruiview';export default class Ft extends _0x5cbf53{constructor(_0x464762){super(_0x464762),this['view']=new _0x10f8b3(_0x464762['locale'],_0x464762[_0x1061('0x3')][_0x1061('0x2')]);}get['element'](){return this[_0x1061('0x2')]['element'];}[_0x1061('0x7')](){const _0x49d732=this[_0x1061('0xd')][_0x1061('0x3')][_0x1061('0x2')],_0x875521=this[_0x1061('0x2')][_0x1061('0x8')],_0x384fbf=_0x49d732[_0x1061('0xc')][_0x1061('0x1')]();_0x875521[_0x1061('0xe')]=_0x384fbf[_0x1061('0xf')],this[_0x1061('0x2')][_0x1061('0xa')]();const _0x127d9c=_0x875521[_0x1061('0x5')];this[_0x1061('0xb')](_0x875521[_0x1061('0xe')],_0x127d9c),this[_0x1061('0x2')][_0x1061('0x8')][_0x1061('0x9')]('isFocused')['to'](this['focusTracker']),_0x49d732[_0x1061('0x0')](_0x127d9c),this[_0x1061('0x6')]('ready');}[_0x1061('0x4')](){super['destroy'](),this[_0x1061('0x2')][_0x1061('0x4')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5da2=['_createVoiceLabel','_voiceLabelView','uiLanguageDirection','comment','ck-editor','setTemplate','main','render','ck-rounded-corners','cke-editor__aria-label_','focus','uiLanguage','ck-reset','ck-comment__input','text','div','extendTemplate','editable','ck-editor__aria-label_','Comment\x20editor','createCollection'];(function(_0x4524f9,_0x5da25f){const _0x48d2c3=function(_0x3b8650){while(--_0x3b8650){_0x4524f9['push'](_0x4524f9['shift']());}};_0x48d2c3(++_0x5da25f);}(_0x5da2,0x186));const _0x48d2=function(_0x4524f9,_0x5da25f){_0x4524f9=_0x4524f9-0x0;let _0x48d2c3=_0x5da2[_0x4524f9];return _0x48d2c3;};import{InlineEditableUIView as _0x3d5031,EditorUIView as _0x57d70a,LabelView as _0x32ab9b}from'ckeditor5/src/ui';import{uid as _0x5d3008}from'ckeditor5/src/utils';import{getTranslation as _0x5e99cb}from'../../../utils/common-translations';export default class Rt extends _0x57d70a{constructor(_0x3f40b4,_0x576dcc){super(_0x3f40b4);const _0x9eb7ea=_0x5d3008();this[_0x48d2('0xf')]=this[_0x48d2('0x8')](),this[_0x48d2('0x5')]=new _0x3d5031(_0x3f40b4,_0x576dcc),this[_0x48d2('0xa')]=this[_0x48d2('0x9')](_0x9eb7ea,_0x3f40b4),this[_0x48d2('0xe')]({'tag':_0x48d2('0x3'),'attributes':{'class':[_0x48d2('0x0'),_0x48d2('0xd'),_0x48d2('0x11'),_0x48d2('0x1')],'role':_0x48d2('0xc'),'dir':_0x3f40b4[_0x48d2('0xb')],'lang':_0x3f40b4[_0x48d2('0x14')],'aria-labelledby':_0x48d2('0x12')+_0x9eb7ea},'children':[this[_0x48d2('0xa')],{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this[_0x48d2('0xf')]}]});}[_0x48d2('0x10')](){super[_0x48d2('0x10')](),this['main']['add'](this[_0x48d2('0x5')]);}[_0x48d2('0x13')](){this['editable']['element'][_0x48d2('0x13')]();}[_0x48d2('0x9')](_0x86ff83,_0x45fd51){const _0x4e92f3=new _0x32ab9b();return _0x4e92f3[_0x48d2('0x2')]=_0x5e99cb(_0x45fd51,_0x48d2('0x7')),_0x4e92f3[_0x48d2('0x4')]({'attributes':{'id':_0x48d2('0x6')+_0x86ff83,'class':'ck-voice-label'}}),_0x4e92f3;}}
23
+ const _0x5886=['editable','element','ck-editor','ck-comment__input','uiLanguage','add','extendTemplate','comment','main','ck-voice-label','_voiceLabelView','div','createCollection','render','setTemplate','ck-rounded-corners','ck-reset','cke-editor__aria-label_','focus'];(function(_0x9278f4,_0x588648){const _0x4ffd6a=function(_0x53eb19){while(--_0x53eb19){_0x9278f4['push'](_0x9278f4['shift']());}};_0x4ffd6a(++_0x588648);}(_0x5886,0x8a));const _0x4ffd=function(_0x9278f4,_0x588648){_0x9278f4=_0x9278f4-0x0;let _0x4ffd6a=_0x5886[_0x9278f4];return _0x4ffd6a;};import{InlineEditableUIView as _0x251440,EditorUIView as _0x27b271,LabelView as _0x251597}from'ckeditor5/src/ui';import{uid as _0x3b4fe4}from'ckeditor5/src/utils';import{getTranslation as _0x4111e0}from'../../../utils/common-translations';export default class Qt extends _0x27b271{constructor(_0x1184cc,_0x1e7981){super(_0x1184cc);const _0x250c38=_0x3b4fe4();this['main']=this[_0x4ffd('0x7')](),this[_0x4ffd('0xe')]=new _0x251440(_0x1184cc,_0x1e7981),this[_0x4ffd('0x5')]=this['_createVoiceLabel'](_0x250c38,_0x1184cc),this[_0x4ffd('0x9')]({'tag':_0x4ffd('0x6'),'attributes':{'class':[_0x4ffd('0xb'),_0x4ffd('0x10'),_0x4ffd('0xa'),_0x4ffd('0x11')],'role':_0x4ffd('0x2'),'dir':_0x1184cc['uiLanguageDirection'],'lang':_0x1184cc[_0x4ffd('0x12')],'aria-labelledby':_0x4ffd('0xc')+_0x250c38},'children':[this[_0x4ffd('0x5')],{'tag':_0x4ffd('0x6'),'attributes':{'class':'ck-editor__main','role':'presentation'},'children':this[_0x4ffd('0x3')]}]});}[_0x4ffd('0x8')](){super[_0x4ffd('0x8')](),this['main'][_0x4ffd('0x0')](this[_0x4ffd('0xe')]);}['focus'](){this[_0x4ffd('0xe')][_0x4ffd('0xf')][_0x4ffd('0xd')]();}['_createVoiceLabel'](_0x43c721,_0x1e3fa8){const _0x30f218=new _0x251597();return _0x30f218['text']=_0x4111e0(_0x1e3fa8,'Comment\x20editor'),_0x30f218[_0x4ffd('0x1')]({'attributes':{'id':'ck-editor__aria-label_'+_0x43c721,'class':_0x4ffd('0x4')}}),_0x30f218;}}
@@ -3,7 +3,7 @@
3
3
  * @publicApi
4
4
  */
5
5
  import type { CommentThread } from '../commentsrepository';
6
- import type BaseCommentThreadView from './view/basecommentthreadview';
6
+ import type { default as BaseCommentThreadView } from './view/basecommentthreadview';
7
7
  declare const CommentThreadController_base: {
8
8
  new (): import("ckeditor5/src/utils").Observable;
9
9
  prototype: import("ckeditor5/src/utils").Observable;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0xbcab=['removeCommentThread','isResolved','removeComment','stopListening','submit','view','updateComment','resolveCommentThread','listenTo','model','getComment','addComment','reopenCommentThread','remove','submitCommentThread','resolve','_localUser','reopen'];(function(_0x5f58ba,_0xbcab2){var _0x28ddd5=function(_0x5f090a){while(--_0x5f090a){_0x5f58ba['push'](_0x5f58ba['shift']());}};_0x28ddd5(++_0xbcab2);}(_0xbcab,0x1f4));var _0x28dd=function(_0x5f58ba,_0xbcab2){_0x5f58ba=_0x5f58ba-0x0;var _0x28ddd5=_0xbcab[_0x5f58ba];return _0x28ddd5;};import{ObservableMixin as _0x12741a}from'ckeditor5/src/utils';export default class ct extends _0x12741a(){constructor(_0x511875,_0x23ff57){super(),this[_0x28dd('0xd')]=_0x511875,this[_0x28dd('0xd')]['_isAttached']=!0x0,this[_0x28dd('0x9')]=_0x23ff57,this['listenTo'](_0x23ff57,_0x28dd('0x0'),()=>this['submit']()),this[_0x28dd('0xc')](_0x23ff57,_0x28dd('0x4'),()=>this['remove']()),this[_0x28dd('0xc')](_0x23ff57,_0x28dd('0xb'),()=>this[_0x28dd('0x1')]()),this[_0x28dd('0xc')](_0x23ff57,_0x28dd('0x10'),()=>this[_0x28dd('0x3')]()),this[_0x28dd('0xc')](_0x23ff57,_0x28dd('0xf'),(_0x5f21af,_0x385e58)=>this[_0x28dd('0xf')](_0x385e58)),this[_0x28dd('0xc')](_0x23ff57,_0x28dd('0xa'),(_0x4344d6,_0x3f71e1,_0x1e634d)=>this[_0x28dd('0xa')](_0x3f71e1,_0x1e634d)),this['listenTo'](_0x23ff57,_0x28dd('0x6'),(_0x49c8f6,_0xc61d40)=>this[_0x28dd('0x6')](_0xc61d40));}[_0x28dd('0x8')](){this[_0x28dd('0xd')][_0x28dd('0x8')]();}[_0x28dd('0x11')](){this[_0x28dd('0xd')][_0x28dd('0x11')]();}['resolve'](){this['model'][_0x28dd('0x5')]||this['model'][_0x28dd('0x1')]();}[_0x28dd('0x3')](){this[_0x28dd('0xd')][_0x28dd('0x5')]&&this['model'][_0x28dd('0x3')]();}[_0x28dd('0xf')](_0x1cc9c5){this[_0x28dd('0xd')][_0x28dd('0xf')]({'content':_0x1cc9c5,'authorId':this[_0x28dd('0x9')][_0x28dd('0x2')]['id']});}[_0x28dd('0xa')](_0x1ea0b6,_0x11f793){this[_0x28dd('0xd')][_0x28dd('0xe')](_0x1ea0b6)['update']({'content':_0x11f793});}[_0x28dd('0x6')](_0x108dd4){this[_0x28dd('0xd')][_0x28dd('0xe')](_0x108dd4)[_0x28dd('0x11')]();}['destroy'](){this[_0x28dd('0x7')](),this['model']['_isAttached']=!0x1;}}
23
+ var _0x2ab9=['update','remove','submit','listenTo','removeComment','view','resolve','updateComment','isResolved','reopenCommentThread','stopListening','reopen','_isAttached','destroy','model','addComment','getComment','submitCommentThread'];(function(_0x1849e3,_0x2ab970){var _0x1310b6=function(_0x30ccd7){while(--_0x30ccd7){_0x1849e3['push'](_0x1849e3['shift']());}};_0x1310b6(++_0x2ab970);}(_0x2ab9,0xca));var _0x1310=function(_0x1849e3,_0x2ab970){_0x1849e3=_0x1849e3-0x0;var _0x1310b6=_0x2ab9[_0x1849e3];return _0x1310b6;};import{ObservableMixin as _0x25987b}from'ckeditor5/src/utils';export default class ct extends _0x25987b(){constructor(_0x56fa05,_0x361089){super(),this[_0x1310('0xa')]=_0x56fa05,this[_0x1310('0xa')][_0x1310('0x8')]=!0x0,this[_0x1310('0x1')]=_0x361089,this['listenTo'](_0x361089,_0x1310('0xd'),()=>this[_0x1310('0x10')]()),this[_0x1310('0x11')](_0x361089,'removeCommentThread',()=>this[_0x1310('0xf')]()),this['listenTo'](_0x361089,'resolveCommentThread',()=>this[_0x1310('0x2')]()),this[_0x1310('0x11')](_0x361089,_0x1310('0x5'),()=>this[_0x1310('0x7')]()),this['listenTo'](_0x361089,_0x1310('0xb'),(_0x1c6e7d,_0x327036)=>this[_0x1310('0xb')](_0x327036)),this['listenTo'](_0x361089,'updateComment',(_0x4975e3,_0x365ff2,_0x56403e)=>this[_0x1310('0x3')](_0x365ff2,_0x56403e)),this[_0x1310('0x11')](_0x361089,_0x1310('0x0'),(_0x366879,_0x4eb9c6)=>this[_0x1310('0x0')](_0x4eb9c6));}[_0x1310('0x10')](){this[_0x1310('0xa')][_0x1310('0x10')]();}[_0x1310('0xf')](){this['model'][_0x1310('0xf')]();}[_0x1310('0x2')](){this[_0x1310('0xa')][_0x1310('0x4')]||this[_0x1310('0xa')][_0x1310('0x2')]();}[_0x1310('0x7')](){this[_0x1310('0xa')][_0x1310('0x4')]&&this[_0x1310('0xa')][_0x1310('0x7')]();}[_0x1310('0xb')](_0x3f9afe){this[_0x1310('0xa')][_0x1310('0xb')]({'content':_0x3f9afe,'authorId':this[_0x1310('0x1')]['_localUser']['id']});}['updateComment'](_0x323cb1,_0x5c64ee){this[_0x1310('0xa')][_0x1310('0xc')](_0x323cb1)[_0x1310('0xe')]({'content':_0x5c64ee});}[_0x1310('0x0')](_0x2cca43){this[_0x1310('0xa')][_0x1310('0xc')](_0x2cca43)[_0x1310('0xf')]();}[_0x1310('0x9')](){this[_0x1310('0x6')](),this[_0x1310('0xa')]['_isAttached']=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xdd78=['showInput','submitLabel','Reply...','Reply\x20to\x20reopen\x20discussion...','isDirty','stop','removeCommentThread','value','set','reopenCommentThread','isReadOnly','isSubmitted','disabledSubmit','resolveCommentThread','updateComment','submit','fire','change:isActive','locale','element','delegate','commentThreadHeaderView','length','bind','isActive','hasDirtyComment','commentsListView','isResolved','submitCommentThread','commentThreadInputView','Reply','isResolvable','focus','_localUser','destroy','removeComment','_model','_config','_createCommentThreadInputView','commentInputView','Comment','CommentView'];(function(_0x558049,_0xdd7896){const _0x376e15=function(_0x2df1e9){while(--_0x2df1e9){_0x558049['push'](_0x558049['shift']());}};_0x376e15(++_0xdd7896);}(_0xdd78,0x1cb));const _0x376e=function(_0x558049,_0xdd7896){_0x558049=_0x558049-0x0;let _0x376e15=_0xdd78[_0x558049];return _0x376e15;};import{View as _0x1fe0cd}from'ckeditor5/src/ui';import _0x294ef8 from'./commentthreadinputview';import _0x193d78 from'./commentslistview';import _0x5ef277 from'./commentthreadheaderview';import{getTranslation as _0x399ad2}from'../../../utils/common-translations';export default class Wt extends _0x1fe0cd{constructor(_0x393a36,_0x337804,_0x2c612b,_0x3280bc){super(_0x393a36),this['set'](_0x376e('0x1b'),!0x1),this[_0x376e('0xb')](_0x376e('0x7'),!0x1),this[_0x376e('0x27')]=_0x337804,this[_0x376e('0x24')]=_0x2c612b,this[_0x376e('0x28')]=_0x3280bc,this[_0x376e('0x18')]=new _0x5ef277(_0x393a36,_0x337804),this[_0x376e('0x18')][_0x376e('0x17')](_0x376e('0xc'))['to'](this),this[_0x376e('0x1d')]=new _0x193d78(_0x393a36,_0x337804,Object['assign']({'CommentView':this[_0x376e('0x28')][_0x376e('0x2')]},_0x3280bc)),this[_0x376e('0x1d')]['delegate'](_0x376e('0x26'))['to'](this),this[_0x376e('0x1d')][_0x376e('0x17')](_0x376e('0x11'))['to'](this),this[_0x376e('0x1d')][_0x376e('0x17')](_0x376e('0x10'))['to'](this),this[_0x376e('0x1d')]['bind']('isActive')['to'](this),this[_0x376e('0xb')](_0x376e('0x19'),this['commentsListView'][_0x376e('0x19')]),this[_0x376e('0x1a')](_0x376e('0x19'))['to'](this['commentsListView'],_0x376e('0x19')),this[_0x376e('0x20')]=this[_0x376e('0x29')](),this['on'](_0x376e('0x26'),()=>this[_0x376e('0x23')]()),this[_0x376e('0x1a')]('isDirty')['to'](this[_0x376e('0x1d')],_0x376e('0x1c'),this['commentThreadInputView'][_0x376e('0x0')],_0x376e('0xa'),(_0x4865ad,_0x124c4b)=>_0x4865ad||!!_0x124c4b);}[_0x376e('0x23')](){this[_0x376e('0x16')][_0x376e('0x23')]();}[_0x376e('0x25')](){this[_0x376e('0x7')]=!0x1,this[_0x376e('0x1d')][_0x376e('0x25')](),this[_0x376e('0x20')][_0x376e('0x25')](),super['destroy']();}[_0x376e('0x29')](){const _0x13e540=new _0x294ef8(this['locale'],this[_0x376e('0x24')],this['_config']['editorConfig']),_0x26c6e8=_0x13e540['commentInputView'];return _0x13e540[_0x376e('0x1a')](_0x376e('0x3'))['to'](this,'isActive',this['_model'],_0x376e('0xd'),this[_0x376e('0x27')],_0x376e('0x1e'),_0x26c6e8,_0x376e('0xa'),(_0x269ab3,_0x38c5d6,_0x5cfadf,_0x3ad07b)=>!!_0x3ad07b||_0x5cfadf&&!_0x38c5d6||_0x269ab3&&!_0x38c5d6),_0x26c6e8[_0x376e('0x1a')]('placeholder')['to'](this,'length',this[_0x376e('0x27')],_0x376e('0x22'),this[_0x376e('0x27')],'isResolved',(_0x2ddf18,_0x3ab122,_0x4df7bb)=>{let _0x3804b6;return _0x3804b6=_0x4df7bb&&_0x3ab122?_0x376e('0x6'):_0x2ddf18?_0x376e('0x5'):'Write\x20a\x20comment...',_0x399ad2(this[_0x376e('0x15')],_0x3804b6);}),_0x26c6e8['bind'](_0x376e('0x4'))['to'](this,'length',_0x156171=>_0x399ad2(this['locale'],_0x156171?_0x376e('0x21'):_0x376e('0x1'))),_0x26c6e8['on'](_0x376e('0x12'),(_0xb8e5e4,_0x3d7e46)=>{this[_0x376e('0x13')]('addComment',_0x3d7e46),this[_0x376e('0x27')][_0x376e('0x1e')]&&this[_0x376e('0x27')]['isResolvable']&&this[_0x376e('0x13')](_0x376e('0xc'),this['_model']['id']),this[_0x376e('0x27')][_0x376e('0xe')]||this[_0x376e('0x13')](_0x376e('0x1f'));}),_0x26c6e8['on']('cancel',()=>{this['focus']();}),_0x26c6e8['bind'](_0x376e('0xf'))['to'](this[_0x376e('0x27')],_0x376e('0xd')),_0x26c6e8['on']('cancel',_0x3ddcaa=>{0x0==this[_0x376e('0x19')]&&(this[_0x376e('0x13')]('removeCommentThread'),_0x3ddcaa[_0x376e('0x8')]());}),this['on'](_0x376e('0x14'),(_0x2edb1e,_0x3dda48,_0x3b1383)=>{_0x3b1383||this[_0x376e('0x19')]||_0x26c6e8[_0x376e('0xa')]||this[_0x376e('0x13')](_0x376e('0x9'));}),_0x13e540;}}
23
+ const _0x2d09=['isResolvable','isActive','value','commentThreadHeaderView','removeCommentThread','length','placeholder','Reply...','cancel','CommentView','Reply','isDirty','isResolved','isSubmitted','commentsListView','focus','reopenCommentThread','locale','assign','addComment','commentThreadInputView','_model','_createCommentThreadInputView','submitCommentThread','hasDirtyComment','element','_config','Reply\x20to\x20reopen\x20discussion...','destroy','editorConfig','set','isReadOnly','Comment','delegate','stop','bind','updateComment','resolveCommentThread','commentInputView','_localUser','fire','submitLabel','change:isActive','submit'];(function(_0x4fe2c9,_0x2d09b7){const _0xcacdd1=function(_0x224a2b){while(--_0x224a2b){_0x4fe2c9['push'](_0x4fe2c9['shift']());}};_0xcacdd1(++_0x2d09b7);}(_0x2d09,0x1b3));const _0xcacd=function(_0x4fe2c9,_0x2d09b7){_0x4fe2c9=_0x4fe2c9-0x0;let _0xcacdd1=_0x2d09[_0x4fe2c9];return _0xcacdd1;};import{View as _0x38dac9}from'ckeditor5/src/ui';import _0x1b7975 from'./commentthreadinputview';import _0x45f86f from'./commentslistview';import _0x31ab5b from'./commentthreadheaderview';import{getTranslation as _0x5b4f51}from'../../../utils/common-translations';export default class St extends _0x38dac9{constructor(_0x25d538,_0x2ea3d8,_0x3d6743,_0x516866){super(_0x25d538),this['set'](_0xcacd('0x6'),!0x1),this[_0xcacd('0x23')](_0xcacd('0x10'),!0x1),this[_0xcacd('0x1a')]=_0x2ea3d8,this[_0xcacd('0x0')]=_0x3d6743,this[_0xcacd('0x1f')]=_0x516866,this[_0xcacd('0x8')]=new _0x31ab5b(_0x25d538,_0x2ea3d8),this['commentThreadHeaderView'][_0xcacd('0x26')](_0xcacd('0x15'))['to'](this),this[_0xcacd('0x13')]=new _0x45f86f(_0x25d538,_0x2ea3d8,Object[_0xcacd('0x17')]({'CommentView':this[_0xcacd('0x1f')][_0xcacd('0xe')]},_0x516866)),this[_0xcacd('0x13')]['delegate']('removeComment')['to'](this),this[_0xcacd('0x13')][_0xcacd('0x26')](_0xcacd('0x29'))['to'](this),this[_0xcacd('0x13')]['delegate'](_0xcacd('0x2a'))['to'](this),this[_0xcacd('0x13')][_0xcacd('0x28')](_0xcacd('0x6'))['to'](this),this['set'](_0xcacd('0xa'),this[_0xcacd('0x13')][_0xcacd('0xa')]),this[_0xcacd('0x28')](_0xcacd('0xa'))['to'](this[_0xcacd('0x13')],_0xcacd('0xa')),this[_0xcacd('0x19')]=this[_0xcacd('0x1b')](),this['on']('removeComment',()=>this[_0xcacd('0x14')]()),this[_0xcacd('0x28')](_0xcacd('0x10'))['to'](this[_0xcacd('0x13')],_0xcacd('0x1d'),this[_0xcacd('0x19')][_0xcacd('0x2b')],'value',(_0x38d442,_0x51ccda)=>_0x38d442||!!_0x51ccda);}['focus'](){this[_0xcacd('0x1e')][_0xcacd('0x14')]();}[_0xcacd('0x21')](){this['isDirty']=!0x1,this['commentsListView'][_0xcacd('0x21')](),this['commentThreadInputView'][_0xcacd('0x21')](),super[_0xcacd('0x21')]();}['_createCommentThreadInputView'](){const _0x3e152c=new _0x1b7975(this[_0xcacd('0x16')],this[_0xcacd('0x0')],this[_0xcacd('0x1f')][_0xcacd('0x22')]),_0x1cc039=_0x3e152c['commentInputView'];return _0x3e152c[_0xcacd('0x28')]('showInput')['to'](this,_0xcacd('0x6'),this[_0xcacd('0x1a')],_0xcacd('0x24'),this[_0xcacd('0x1a')],'isResolved',_0x1cc039,_0xcacd('0x7'),(_0x521fa3,_0x14754a,_0x1a0c56,_0x2e9c3b)=>!!_0x2e9c3b||_0x1a0c56&&!_0x14754a||_0x521fa3&&!_0x14754a),_0x1cc039[_0xcacd('0x28')](_0xcacd('0xb'))['to'](this,_0xcacd('0xa'),this[_0xcacd('0x1a')],_0xcacd('0x5'),this[_0xcacd('0x1a')],_0xcacd('0x11'),(_0x1f0f3e,_0x8de57f,_0x551fb3)=>{let _0x46ecd0;return _0x46ecd0=_0x551fb3&&_0x8de57f?_0xcacd('0x20'):_0x1f0f3e?_0xcacd('0xc'):'Write\x20a\x20comment...',_0x5b4f51(this[_0xcacd('0x16')],_0x46ecd0);}),_0x1cc039[_0xcacd('0x28')](_0xcacd('0x2'))['to'](this,'length',_0x228485=>_0x5b4f51(this[_0xcacd('0x16')],_0x228485?_0xcacd('0xf'):_0xcacd('0x25'))),_0x1cc039['on'](_0xcacd('0x4'),(_0x38a876,_0x547c80)=>{this[_0xcacd('0x1')](_0xcacd('0x18'),_0x547c80),this['_model'][_0xcacd('0x11')]&&this[_0xcacd('0x1a')][_0xcacd('0x5')]&&this['fire']('reopenCommentThread',this['_model']['id']),this[_0xcacd('0x1a')][_0xcacd('0x12')]||this[_0xcacd('0x1')](_0xcacd('0x1c'));}),_0x1cc039['on'](_0xcacd('0xd'),()=>{this[_0xcacd('0x14')]();}),_0x1cc039['bind']('disabledSubmit')['to'](this[_0xcacd('0x1a')],_0xcacd('0x24')),_0x1cc039['on'](_0xcacd('0xd'),_0x3a4e91=>{0x0==this['length']&&(this['fire'](_0xcacd('0x9')),_0x3a4e91[_0xcacd('0x27')]());}),this['on'](_0xcacd('0x3'),(_0x4db267,_0x1c5077,_0x570ef0)=>{_0x570ef0||this['length']||_0x1cc039[_0xcacd('0x7')]||this['fire']('removeCommentThread');}),_0x3e152c;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x37ac=['focus','maxCommentCharsWhenCollapsed','isReadOnly','createCollection','_createCommentInputView','editorConfig','isSystemComment','add','_config','createEditor','isCollapsed','once','set','visibleView','get','Save','content','_createCommentContentView','initialData','_model','isEditMode','switchToEditMode','locale','submit','destroy','updateComment','value','collapse','bind','switchToDisplayMode','submitLabel','fire','remove'];(function(_0x3b373a,_0x37ac97){const _0x3ac54e=function(_0x1bd5d6){while(--_0x1bd5d6){_0x3b373a['push'](_0x3b373a['shift']());}};_0x3ac54e(++_0x37ac97);}(_0x37ac,0x15c));const _0x3ac5=function(_0x3b373a,_0x37ac97){_0x3b373a=_0x3b373a-0x0;let _0x3ac54e=_0x37ac[_0x3b373a];return _0x3ac54e;};import{View as _0x553b0b}from'ckeditor5/src/ui';import{trimHtml as _0x382495}from'ckeditor5-collaboration/src/collaboration-core';import _0x12c59b from'./commentcontentview';import _0x528484 from'./commentinputview';import{getTranslation as _0x315858}from'../../../utils/common-translations';export default class Zt extends _0x553b0b{constructor(_0x6d708f,_0x1ead64,_0x342403){super(_0x6d708f),this['_model']=_0x1ead64,this[_0x3ac5('0x17')]=_0x342403,this['isSystemComment']=!!this['_config'][_0x3ac5('0x15')],this[_0x3ac5('0x1b')](_0x3ac5('0x2'),!0x1),this[_0x3ac5('0x1b')](_0x3ac5('0x19'),!0x0),this['visibleView']=this[_0x3ac5('0x12')](),this[_0x3ac5('0x1c')][_0x3ac5('0x16')](this[_0x3ac5('0x20')]());}['expand'](){this[_0x3ac5('0x19')]=!0x1;}[_0x3ac5('0x9')](){this[_0x3ac5('0x2')]||(this[_0x3ac5('0x19')]=!0x0);}[_0x3ac5('0xf')](){this['element'][_0x3ac5('0xf')]();}async[_0x3ac5('0x6')](){await this[_0x3ac5('0x1c')][_0x3ac5('0x1d')](0x0)['destroy'](),super['destroy']();}[_0x3ac5('0x3')](){this['isEditMode']||(this['isEditMode']=!0x0,this['visibleView'][_0x3ac5('0xe')](0x0)[_0x3ac5('0x6')](),this[_0x3ac5('0x1c')]['add'](this[_0x3ac5('0x13')]()));}[_0x3ac5('0xb')](){this['isEditMode']&&(this[_0x3ac5('0x2')]=!0x1,this[_0x3ac5('0x1c')]['remove'](0x0)['destroy'](),this[_0x3ac5('0x1c')][_0x3ac5('0x16')](this['_createCommentContentView']()));}['_createCommentContentView'](){const _0x4fb398=new _0x12c59b(this[_0x3ac5('0x4')]);return _0x4fb398[_0x3ac5('0xa')](_0x3ac5('0x1f'))['to'](this[_0x3ac5('0x1')],'content',this,_0x3ac5('0x19'),(_0x5cf943,_0x386efd)=>_0x386efd?_0x382495(_0x5cf943,{'limit':this['_config'][_0x3ac5('0x10')]}):_0x5cf943),_0x4fb398;}[_0x3ac5('0x13')](){this[_0x3ac5('0x17')]['editorConfig']||(this[_0x3ac5('0x17')][_0x3ac5('0x14')]={}),this['_config'][_0x3ac5('0x14')][_0x3ac5('0x0')]=this[_0x3ac5('0x1')][_0x3ac5('0x1f')];const _0x365029=new _0x528484(this[_0x3ac5('0x4')],this['_config'][_0x3ac5('0x14')]);return _0x365029[_0x3ac5('0x8')]=this[_0x3ac5('0x1')]['content'],_0x365029[_0x3ac5('0xa')]('disabledSubmit')['to'](this[_0x3ac5('0x1')],_0x3ac5('0x11')),_0x365029[_0x3ac5('0xc')]=_0x315858(this[_0x3ac5('0x4')],_0x3ac5('0x1e')),_0x365029['on'](_0x3ac5('0x5'),(_0x355821,_0x33125a)=>{this[_0x3ac5('0xd')](_0x3ac5('0x7'),this[_0x3ac5('0x1')]['id'],_0x33125a),this[_0x3ac5('0xb')](),this[_0x3ac5('0xf')]();}),_0x365029['on']('cancel',()=>{this['switchToDisplayMode'](),this[_0x3ac5('0xf')]();}),_0x365029[_0x3ac5('0x1a')]('editorReady',()=>{_0x365029[_0x3ac5('0xf')]();}),_0x365029[_0x3ac5('0x18')](),_0x365029;}}
23
+ const _0x4fb3=['_createCommentContentView','content','add','locale','isSystemComment','bind','cancel','remove','visibleView','updateComment','collapse','isEditMode','editorReady','get','destroy','once','createEditor','value','element','isCollapsed','switchToEditMode','_config','Save','focus','set','initialData','disabledSubmit','maxCommentCharsWhenCollapsed','editorConfig','expand','switchToDisplayMode','_model'];(function(_0x14b4cb,_0x4fb318){const _0x5bbdb0=function(_0x1478ae){while(--_0x1478ae){_0x14b4cb['push'](_0x14b4cb['shift']());}};_0x5bbdb0(++_0x4fb318);}(_0x4fb3,0xbb));const _0x5bbd=function(_0x14b4cb,_0x4fb318){_0x14b4cb=_0x14b4cb-0x0;let _0x5bbdb0=_0x4fb3[_0x14b4cb];return _0x5bbdb0;};import{View as _0xab871e}from'ckeditor5/src/ui';import{trimHtml as _0x5ad76d}from'ckeditor5-collaboration/src/collaboration-core';import _0x133291 from'./commentcontentview';import _0x4016ca from'./commentinputview';import{getTranslation as _0x4c3a5c}from'../../../utils/common-translations';export default class Zt extends _0xab871e{constructor(_0x53946b,_0x4266ba,_0x5a9a4d){super(_0x53946b),this[_0x5bbd('0x4')]=_0x4266ba,this[_0x5bbd('0x1a')]=_0x5a9a4d,this[_0x5bbd('0x9')]=!!this['_config']['isSystemComment'],this[_0x5bbd('0x1d')]('isEditMode',!0x1),this[_0x5bbd('0x1d')]('isCollapsed',!0x0),this[_0x5bbd('0xd')]=this['createCollection'](),this['visibleView'][_0x5bbd('0x7')](this['_createCommentContentView']());}[_0x5bbd('0x2')](){this[_0x5bbd('0x18')]=!0x1;}[_0x5bbd('0xf')](){this[_0x5bbd('0x10')]||(this[_0x5bbd('0x18')]=!0x0);}[_0x5bbd('0x1c')](){this[_0x5bbd('0x17')]['focus']();}async[_0x5bbd('0x13')](){await this[_0x5bbd('0xd')][_0x5bbd('0x12')](0x0)[_0x5bbd('0x13')](),super[_0x5bbd('0x13')]();}[_0x5bbd('0x19')](){this[_0x5bbd('0x10')]||(this[_0x5bbd('0x10')]=!0x0,this[_0x5bbd('0xd')][_0x5bbd('0xc')](0x0)[_0x5bbd('0x13')](),this['visibleView'][_0x5bbd('0x7')](this['_createCommentInputView']()));}[_0x5bbd('0x3')](){this[_0x5bbd('0x10')]&&(this[_0x5bbd('0x10')]=!0x1,this[_0x5bbd('0xd')][_0x5bbd('0xc')](0x0)['destroy'](),this[_0x5bbd('0xd')][_0x5bbd('0x7')](this[_0x5bbd('0x5')]()));}[_0x5bbd('0x5')](){const _0x15bcd2=new _0x133291(this[_0x5bbd('0x8')]);return _0x15bcd2[_0x5bbd('0xa')](_0x5bbd('0x6'))['to'](this[_0x5bbd('0x4')],_0x5bbd('0x6'),this,'isCollapsed',(_0x1aa1a9,_0x387185)=>_0x387185?_0x5ad76d(_0x1aa1a9,{'limit':this[_0x5bbd('0x1a')][_0x5bbd('0x0')]}):_0x1aa1a9),_0x15bcd2;}['_createCommentInputView'](){this[_0x5bbd('0x1a')][_0x5bbd('0x1')]||(this[_0x5bbd('0x1a')]['editorConfig']={}),this['_config'][_0x5bbd('0x1')][_0x5bbd('0x1e')]=this[_0x5bbd('0x4')][_0x5bbd('0x6')];const _0x4b110a=new _0x4016ca(this[_0x5bbd('0x8')],this[_0x5bbd('0x1a')]['editorConfig']);return _0x4b110a[_0x5bbd('0x16')]=this['_model'][_0x5bbd('0x6')],_0x4b110a['bind'](_0x5bbd('0x1f'))['to'](this['_model'],'isReadOnly'),_0x4b110a['submitLabel']=_0x4c3a5c(this[_0x5bbd('0x8')],_0x5bbd('0x1b')),_0x4b110a['on']('submit',(_0x17e623,_0x548bed)=>{this['fire'](_0x5bbd('0xe'),this[_0x5bbd('0x4')]['id'],_0x548bed),this[_0x5bbd('0x3')](),this[_0x5bbd('0x1c')]();}),_0x4b110a['on'](_0x5bbd('0xb'),()=>{this[_0x5bbd('0x3')](),this[_0x5bbd('0x1c')]();}),_0x4b110a[_0x5bbd('0x14')](_0x5bbd('0x11'),()=>{_0x4b110a[_0x5bbd('0x1c')]();}),_0x4b110a[_0x5bbd('0x15')](),_0x4b110a;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5e46=['bindTemplate','ck-thread__comment-count','NUMBER_OF_COMMENTS','count','setTemplate','set'];(function(_0x270e35,_0x5e46a2){const _0x2392ca=function(_0x557294){while(--_0x557294){_0x270e35['push'](_0x270e35['shift']());}};_0x2392ca(++_0x5e46a2);}(_0x5e46,0x108));const _0x2392=function(_0x270e35,_0x5e46a2){_0x270e35=_0x270e35-0x0;let _0x2392ca=_0x5e46[_0x270e35];return _0x2392ca;};import{View as _0x6cad7b}from'ckeditor5/src/ui';import{getTranslation as _0x454c5a}from'../../../utils/common-translations';export default class to extends _0x6cad7b{constructor(_0x8ee3e3){super(_0x8ee3e3);const _0x3cb604=this[_0x2392('0x0')];this[_0x2392('0x5')](_0x2392('0x3'),void 0x0),this[_0x2392('0x4')]({'tag':'li','attributes':{'class':_0x2392('0x1')},'children':[{'text':_0x3cb604['to']('count',_0x26c6db=>_0x454c5a(_0x8ee3e3,_0x2392('0x2'),_0x26c6db))}]});}}
23
+ const _0x545e=['NUMBER_OF_COMMENTS','count','bindTemplate'];(function(_0x544e09,_0x545e62){const _0x38d6be=function(_0x4b0300){while(--_0x4b0300){_0x544e09['push'](_0x544e09['shift']());}};_0x38d6be(++_0x545e62);}(_0x545e,0x1c6));const _0x38d6=function(_0x544e09,_0x545e62){_0x544e09=_0x544e09-0x0;let _0x38d6be=_0x545e[_0x544e09];return _0x38d6be;};import{View as _0x580121}from'ckeditor5/src/ui';import{getTranslation as _0x469b13}from'../../../utils/common-translations';export default class to extends _0x580121{constructor(_0x3f12f9){super(_0x3f12f9);const _0x59ab81=this[_0x38d6('0x1')];this['set'](_0x38d6('0x0'),void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x59ab81['to'](_0x38d6('0x0'),_0xc0a348=>_0x469b13(_0x3f12f9,_0x38d6('0x2'),_0xc0a348))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2fe7=['render','set','change:content','ck-comment__content','content','ck-annotation__content','innerHTML'];(function(_0x215d32,_0x2fe7a1){var _0x5ab13e=function(_0x50a427){while(--_0x50a427){_0x215d32['push'](_0x215d32['shift']());}};_0x5ab13e(++_0x2fe7a1);}(_0x2fe7,0xf0));var _0x5ab1=function(_0x215d32,_0x2fe7a1){_0x215d32=_0x215d32-0x0;var _0x5ab13e=_0x2fe7[_0x215d32];return _0x5ab13e;};import{View as _0x10c36b}from'ckeditor5/src/ui';export default class Xt extends _0x10c36b{constructor(_0x5aec0c){super(_0x5aec0c),this[_0x5ab1('0x6')](_0x5ab1('0x2'),''),this['setTemplate']({'tag':'div','attributes':{'class':[_0x5ab1('0x1'),_0x5ab1('0x3')]}});}[_0x5ab1('0x5')](){super['render'](),this['on'](_0x5ab1('0x0'),(_0x10c38b,_0x4968f6,_0x4b83ae)=>{this['element'][_0x5ab1('0x4')]=_0x4b83ae;}),this['element'][_0x5ab1('0x4')]=this[_0x5ab1('0x2')];}}
23
+ var _0x111e=['set','innerHTML','ck-annotation__content','render','element','change:content','ck-comment__content','setTemplate'];(function(_0x108b18,_0x111e11){var _0x1e2742=function(_0x5ef97e){while(--_0x5ef97e){_0x108b18['push'](_0x108b18['shift']());}};_0x1e2742(++_0x111e11);}(_0x111e,0x68));var _0x1e27=function(_0x108b18,_0x111e11){_0x108b18=_0x108b18-0x0;var _0x1e2742=_0x111e[_0x108b18];return _0x1e2742;};import{View as _0x557d37}from'ckeditor5/src/ui';export default class Xt extends _0x557d37{constructor(_0x374d32){super(_0x374d32),this[_0x1e27('0x0')]('content',''),this[_0x1e27('0x7')]({'tag':'div','attributes':{'class':[_0x1e27('0x6'),_0x1e27('0x2')]}});}[_0x1e27('0x3')](){super[_0x1e27('0x3')](),this['on'](_0x1e27('0x5'),(_0x493f9e,_0x57f5af,_0x3eeeae)=>{this[_0x1e27('0x4')][_0x1e27('0x1')]=_0x3eeeae;}),this[_0x1e27('0x4')][_0x1e27('0x1')]=this['content'];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x946b=['editorReady','bind','Cancel','high','_createSubmitButton','submit','submitLabel','value','ck-comment__input-actions--active','create','render','shift\x20+\x20tab','ck-comment__input-actions','cancel','getData','initialData','then','disabledSubmit','execute','fire','Esc','set','destroy','firstChild','extendTemplate','placeholder','insertBefore','forEach','TOO_LONG_COMMENT_ALERT','_initializeFocusCycling','_editorCreationPromise','setData','_createCancelButton','Reply...','label','_editorConfig','setTemplate','Reply','low','editor','stop','keystrokes','div','createEditor','ck-comment__input-actions--cancel','focus','element','change','ck-comment__input-wrapper','focusNext','submitButtonView','view','_isDestroyed','showButtons','add','withText','focusPrevious','cancelButtonView','length','focusTracker'];(function(_0x5c57bc,_0x946b86){const _0x1de9a4=function(_0x1d4543){while(--_0x1d4543){_0x5c57bc['push'](_0x5c57bc['shift']());}};_0x1de9a4(++_0x946b86);}(_0x946b,0x1e8));const _0x1de9=function(_0x5c57bc,_0x946b86){_0x5c57bc=_0x5c57bc-0x0;let _0x1de9a4=_0x946b[_0x5c57bc];return _0x1de9a4;};import{View as _0x3a4b81,ViewCollection as _0x48ba20,FocusCycler as _0x10ad8a,ButtonView as _0xda7d0b}from'ckeditor5/src/ui';import{FocusTracker as _0x1c0ea0,KeystrokeHandler as _0x59475a}from'ckeditor5/src/utils';import _0x378c78 from'../commenteditor/commenteditor';import{getTranslation as _0x53824e}from'../../../utils/common-translations';export default class Yt extends _0x3a4b81{constructor(_0x261856,_0x38c485={}){super(_0x261856),this[_0x1de9('0x1f')]=null,this[_0x1de9('0x1b')]=_0x38c485,this[_0x1de9('0x21')]=new _0x59475a(),this[_0x1de9('0x33')]=new _0x1c0ea0(),this[_0x1de9('0xd')](_0x1de9('0x3b'),_0x38c485[_0x1de9('0x7')]||''),this[_0x1de9('0xd')]('disabledSubmit',!0x1),this['set'](_0x1de9('0x2d'),!0x0),this[_0x1de9('0xd')](_0x1de9('0x11'),_0x53824e(_0x261856,_0x1de9('0x19'))),this[_0x1de9('0xd')](_0x1de9('0x3a'),_0x53824e(_0x261856,_0x1de9('0x1d'))),this[_0x1de9('0x2a')]=this[_0x1de9('0x38')](),this[_0x1de9('0x31')]=this[_0x1de9('0x18')](),this[_0x1de9('0x1c')]({'tag':_0x1de9('0x22'),'attributes':{'class':[_0x1de9('0x28')]},'children':[{'tag':_0x1de9('0x22'),'attributes':{'class':[_0x1de9('0x4'),this['bindTemplate']['if'](_0x1de9('0x2d'),_0x1de9('0x0'))]},'children':[this['submitButtonView'],this['cancelButtonView']]}]}),this[_0x1de9('0x21')][_0x1de9('0xd')](_0x1de9('0xc'),(_0x28b50,_0x5708a9)=>{this[_0x1de9('0x31')]['fire'](_0x1de9('0xa')),_0x5708a9();}),this['on'](_0x1de9('0x39'),(_0x3d1fd8,_0x1fc071)=>{_0x1fc071[_0x1de9('0x32')]>0xfde8?(alert(_0x53824e(_0x261856,_0x1de9('0x14'),[_0x1fc071[_0x1de9('0x32')],0xfde8])),_0x3d1fd8[_0x1de9('0x20')]()):this[_0x1de9('0x1f')][_0x1de9('0x17')]('');},{'priority':_0x1de9('0x37')});}[_0x1de9('0x2')](){super[_0x1de9('0x2')](),this[_0x1de9('0x21')]['listenTo'](this['element']),this['focusTracker'][_0x1de9('0x2e')](this[_0x1de9('0x26')]);}[_0x1de9('0x23')](){return this[_0x1de9('0x1f')]||(this['editor']=new _0x378c78(this[_0x1de9('0x1b')]),this[_0x1de9('0x16')]=this[_0x1de9('0x1f')][_0x1de9('0x1')]()[_0x1de9('0x8')](()=>{if(this[_0x1de9('0x2c')])return;const _0x5b46a4=this[_0x1de9('0x1f')];this[_0x1de9('0x26')][_0x1de9('0x12')](_0x5b46a4['ui'][_0x1de9('0x26')],this[_0x1de9('0x26')][_0x1de9('0xf')]),_0x5b46a4['model']['document']['on'](_0x1de9('0x27'),()=>this[_0x1de9('0x3b')]=_0x5b46a4[_0x1de9('0x6')]()),_0x5b46a4[_0x1de9('0x35')](_0x1de9('0x11'))['to'](this),this[_0x1de9('0x15')](this[_0x1de9('0x1f')]),this[_0x1de9('0xb')](_0x1de9('0x34'));})),this[_0x1de9('0x16')];}[_0x1de9('0x25')](){this[_0x1de9('0x1f')]&&this['editor'][_0x1de9('0x25')]();}async['destroy'](){this[_0x1de9('0x2c')]||(this[_0x1de9('0x2c')]=!0x0,this[_0x1de9('0x1f')]&&(await this[_0x1de9('0x16')],await this[_0x1de9('0x1f')]['destroy']()),await super[_0x1de9('0xe')]());}['_createSubmitButton'](){const {locale:_0x2c8c1f}=this,_0x2300b5=new _0xda7d0b(_0x2c8c1f);return _0x2300b5[_0x1de9('0x10')]({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x2300b5['withText']=!0x0,_0x2300b5[_0x1de9('0x35')](_0x1de9('0x1a'))['to'](this,_0x1de9('0x3a')),_0x2300b5['on'](_0x1de9('0xa'),()=>{this[_0x1de9('0xb')](_0x1de9('0x39'),this[_0x1de9('0x3b')]);}),_0x2300b5[_0x1de9('0x35')]('isEnabled')['to'](this,'value',this,_0x1de9('0x9'),(_0x4f94ca,_0x31aef2)=>!_0x31aef2&&!!_0x4f94ca['trim']()),_0x2300b5;}[_0x1de9('0x18')](){const {locale:_0x345d23}=this,_0x141776=new _0xda7d0b(_0x345d23);return _0x141776['extendTemplate']({'attributes':{'class':[_0x1de9('0x24')]}}),_0x141776[_0x1de9('0x1a')]=_0x53824e(_0x345d23,_0x1de9('0x36')),_0x141776[_0x1de9('0x2f')]=!0x0,_0x141776['on'](_0x1de9('0xa'),()=>{this[_0x1de9('0x1f')][_0x1de9('0x17')](''),this['fire'](_0x1de9('0x5'));}),_0x141776;}[_0x1de9('0x15')](_0x27574d){const _0x5b9422=this['focusTracker'],_0x1c2910=new _0x48ba20();[_0x27574d['ui'][_0x1de9('0x2b')],this[_0x1de9('0x2a')],this['cancelButtonView']][_0x1de9('0x13')](_0x495b81=>{_0x1c2910[_0x1de9('0x2e')](_0x495b81),_0x5b9422[_0x1de9('0x2e')](_0x495b81[_0x1de9('0x26')]);});const _0x19c1ea=new _0x10ad8a({'focusables':_0x1c2910,'focusTracker':_0x5b9422});this[_0x1de9('0x21')][_0x1de9('0xd')]('tab',(_0x1ee3fb,_0x243fda)=>{_0x19c1ea[_0x1de9('0x29')](),_0x243fda();},{'priority':_0x1de9('0x1e')}),this[_0x1de9('0x21')][_0x1de9('0xd')](_0x1de9('0x3'),(_0x30a557,_0x32e405)=>{_0x19c1ea[_0x1de9('0x30')](),_0x32e405();},{'priority':_0x1de9('0x1e')});}}
23
+ const _0x3231=['low','_createSubmitButton','firstChild','destroy','then','focusNext','document','focusPrevious','fire','value','focusTracker','length','ck-comment__input-actions--active','createEditor','placeholder','submitLabel','focus','label','disabledSubmit','render','cancelButtonView','ck-comment__input-actions','_initializeFocusCycling','change','isEnabled','bindTemplate','div','getData','withText','tab','forEach','insertBefore','set','keystrokes','showButtons','submit','view','setTemplate','ck-comment__input-wrapper','_createCancelButton','model','_editorConfig','_editorCreationPromise','element','extendTemplate','create','ck-comment__input-actions--cancel','high','Esc','submitButtonView','execute','cancel','add','TOO_LONG_COMMENT_ALERT','editor','Cancel','bind','trim','_isDestroyed'];(function(_0x113066,_0x3231e9){const _0x94a3c2=function(_0x4a1ec8){while(--_0x4a1ec8){_0x113066['push'](_0x113066['shift']());}};_0x94a3c2(++_0x3231e9);}(_0x3231,0xac));const _0x94a3=function(_0x113066,_0x3231e9){_0x113066=_0x113066-0x0;let _0x94a3c2=_0x3231[_0x113066];return _0x94a3c2;};import{View as _0x49e29f,ViewCollection as _0x4413d5,FocusCycler as _0x5c9f6c,ButtonView as _0x4c0db2}from'ckeditor5/src/ui';import{FocusTracker as _0x3ea1ca,KeystrokeHandler as _0x5bb41e}from'ckeditor5/src/utils';import _0x368707 from'../commenteditor/commenteditor';import{getTranslation as _0x7d697c}from'../../../utils/common-translations';export default class Yt extends _0x49e29f{constructor(_0x4c2d5c,_0x47c66d={}){super(_0x4c2d5c),this[_0x94a3('0x0')]=null,this[_0x94a3('0x2e')]=_0x47c66d,this[_0x94a3('0x26')]=new _0x5bb41e(),this[_0x94a3('0xf')]=new _0x3ea1ca(),this[_0x94a3('0x25')](_0x94a3('0xe'),_0x47c66d['initialData']||''),this[_0x94a3('0x25')](_0x94a3('0x17'),!0x1),this[_0x94a3('0x25')](_0x94a3('0x27'),!0x0),this[_0x94a3('0x25')](_0x94a3('0x13'),_0x7d697c(_0x4c2d5c,'Reply...')),this['set']('submitLabel',_0x7d697c(_0x4c2d5c,'Reply')),this[_0x94a3('0x36')]=this[_0x94a3('0x6')](),this[_0x94a3('0x19')]=this[_0x94a3('0x2c')](),this[_0x94a3('0x2a')]({'tag':_0x94a3('0x1f'),'attributes':{'class':[_0x94a3('0x2b')]},'children':[{'tag':_0x94a3('0x1f'),'attributes':{'class':[_0x94a3('0x1a'),this[_0x94a3('0x1e')]['if'](_0x94a3('0x27'),_0x94a3('0x11'))]},'children':[this[_0x94a3('0x36')],this[_0x94a3('0x19')]]}]}),this[_0x94a3('0x26')][_0x94a3('0x25')](_0x94a3('0x35'),(_0x5f1e1b,_0x13ca8c)=>{this['cancelButtonView'][_0x94a3('0xd')](_0x94a3('0x37')),_0x13ca8c();}),this['on']('submit',(_0x19ccbe,_0x309263)=>{_0x309263[_0x94a3('0x10')]>0xfde8?(alert(_0x7d697c(_0x4c2d5c,_0x94a3('0x3a'),[_0x309263['length'],0xfde8])),_0x19ccbe['stop']()):this[_0x94a3('0x0')]['setData']('');},{'priority':_0x94a3('0x34')});}['render'](){super[_0x94a3('0x18')](),this[_0x94a3('0x26')]['listenTo'](this[_0x94a3('0x30')]),this[_0x94a3('0xf')]['add'](this[_0x94a3('0x30')]);}[_0x94a3('0x12')](){return this[_0x94a3('0x0')]||(this[_0x94a3('0x0')]=new _0x368707(this[_0x94a3('0x2e')]),this['_editorCreationPromise']=this[_0x94a3('0x0')][_0x94a3('0x32')]()[_0x94a3('0x9')](()=>{if(this[_0x94a3('0x4')])return;const _0x49cddf=this[_0x94a3('0x0')];this[_0x94a3('0x30')][_0x94a3('0x24')](_0x49cddf['ui'][_0x94a3('0x30')],this[_0x94a3('0x30')][_0x94a3('0x7')]),_0x49cddf[_0x94a3('0x2d')][_0x94a3('0xb')]['on'](_0x94a3('0x1c'),()=>this[_0x94a3('0xe')]=_0x49cddf[_0x94a3('0x20')]()),_0x49cddf['bind'](_0x94a3('0x13'))['to'](this),this[_0x94a3('0x1b')](this['editor']),this[_0x94a3('0xd')]('editorReady');})),this[_0x94a3('0x2f')];}[_0x94a3('0x15')](){this['editor']&&this[_0x94a3('0x0')][_0x94a3('0x15')]();}async[_0x94a3('0x8')](){this[_0x94a3('0x4')]||(this['_isDestroyed']=!0x0,this['editor']&&(await this[_0x94a3('0x2f')],await this[_0x94a3('0x0')]['destroy']()),await super['destroy']());}[_0x94a3('0x6')](){const {locale:_0x2d04f6}=this,_0x393002=new _0x4c0db2(_0x2d04f6);return _0x393002[_0x94a3('0x31')]({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x393002['withText']=!0x0,_0x393002[_0x94a3('0x2')](_0x94a3('0x16'))['to'](this,_0x94a3('0x14')),_0x393002['on'](_0x94a3('0x37'),()=>{this['fire'](_0x94a3('0x28'),this[_0x94a3('0xe')]);}),_0x393002[_0x94a3('0x2')](_0x94a3('0x1d'))['to'](this,_0x94a3('0xe'),this,_0x94a3('0x17'),(_0x2fe494,_0x52078f)=>!_0x52078f&&!!_0x2fe494[_0x94a3('0x3')]()),_0x393002;}[_0x94a3('0x2c')](){const {locale:_0x51c680}=this,_0x572e80=new _0x4c0db2(_0x51c680);return _0x572e80[_0x94a3('0x31')]({'attributes':{'class':[_0x94a3('0x33')]}}),_0x572e80[_0x94a3('0x16')]=_0x7d697c(_0x51c680,_0x94a3('0x1')),_0x572e80[_0x94a3('0x21')]=!0x0,_0x572e80['on']('execute',()=>{this['editor']['setData'](''),this[_0x94a3('0xd')](_0x94a3('0x38'));}),_0x572e80;}[_0x94a3('0x1b')](_0x68070){const _0x31a0f1=this[_0x94a3('0xf')],_0x468e2e=new _0x4413d5();[_0x68070['ui'][_0x94a3('0x29')],this[_0x94a3('0x36')],this[_0x94a3('0x19')]][_0x94a3('0x23')](_0x3ed6a7=>{_0x468e2e[_0x94a3('0x39')](_0x3ed6a7),_0x31a0f1['add'](_0x3ed6a7[_0x94a3('0x30')]);});const _0x178101=new _0x5c9f6c({'focusables':_0x468e2e,'focusTracker':_0x31a0f1});this['keystrokes'][_0x94a3('0x25')](_0x94a3('0x22'),(_0x462ca5,_0x53ceb4)=>{_0x178101[_0x94a3('0xa')](),_0x53ceb4();},{'priority':_0x94a3('0x5')}),this[_0x94a3('0x26')][_0x94a3('0x25')]('shift\x20+\x20tab',(_0xbd49c9,_0x2e3036)=>{_0x178101[_0x94a3('0xc')](),_0x2e3036();},{'priority':_0x94a3('0x5')});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x50b3=['stopPropagation','ck-comments-archive','div','arrowright','focus','render','isEmpty','set','length','arrowup','_focusCycler','ck-comments-archive__header\x20','destroy','isActive','_focusables','bindTemplate','arrowdown','_keystrokes','shift\x20+\x20tab','_focusTracker','COMMENTS_ARCHIVE','element','listenTo','add','auto','remove','selectstart'];(function(_0x3ccd71,_0x50b3c9){const _0x14e4b6=function(_0x97d6c3){while(--_0x97d6c3){_0x3ccd71['push'](_0x3ccd71['shift']());}};_0x14e4b6(++_0x50b3c9);}(_0x50b3,0x163));const _0x14e4=function(_0x3ccd71,_0x50b3c9){_0x3ccd71=_0x3ccd71-0x0;let _0x14e4b6=_0x50b3[_0x3ccd71];return _0x14e4b6;};import{View as _0x216602,FocusCycler as _0x3b89d8}from'ckeditor5/src/ui';import{FocusTracker as _0x1f3b66,KeystrokeHandler as _0x3ae1c2}from'ckeditor5/src/utils';import{getTranslation as _0x50a956}from'../../../utils/common-translations';export default class Q extends _0x216602{constructor(_0x2c4a4f,_0x1c64c6){super(_0x2c4a4f),this[_0x14e4('0x3')](_0x14e4('0x2'),!_0x1c64c6[_0x14e4('0x4')]),this[_0x14e4('0xf')]=new _0x1f3b66(),this[_0x14e4('0xd')]=new _0x3ae1c2(),this[_0x14e4('0xa')]=_0x1c64c6,this[_0x14e4('0x6')]=new _0x3b89d8({'focusables':this[_0x14e4('0xa')],'focusTracker':this[_0x14e4('0xf')],'keystrokeHandler':this['_keystrokes'],'actions':{'focusPrevious':_0x14e4('0xe'),'focusNext':'tab'}}),this[_0x14e4('0x12')](_0x1c64c6,_0x14e4('0x13'),()=>{this[_0x14e4('0x2')]=!0x1;}),this[_0x14e4('0x12')](_0x1c64c6,_0x14e4('0x15'),(_0x347db1,_0x84f411)=>{_0x84f411[_0x14e4('0x9')]&&this['focus'](),_0x1c64c6[_0x14e4('0x4')]||(this[_0x14e4('0x2')]=!0x0);});const _0xe18492=this[_0x14e4('0xb')];this['setTemplate']({'tag':'div','attributes':{'dir':_0x14e4('0x14'),'class':['ck',_0x14e4('0x18')],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':[_0x14e4('0x7')]},'children':[{'text':_0x50a956(_0x2c4a4f,_0x14e4('0x10'))}]},{'tag':_0x14e4('0x19'),'attributes':{'class':['ck-comments-archive__content']},'children':[{'tag':_0x14e4('0x19'),'children':_0x1c64c6},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0xe18492['if'](_0x14e4('0x2'),'ck-hidden',_0x29fe29=>!_0x29fe29)]},'children':[{'text':_0x50a956(_0x2c4a4f,'EMPTY_COMMENTS_ARCHIVE')}]}]}]});}[_0x14e4('0x1')](){super[_0x14e4('0x1')](),this[_0x14e4('0xd')][_0x14e4('0x12')](this['element']);const _0x58af40=_0x5cceb4=>_0x5cceb4[_0x14e4('0x17')]();this[_0x14e4('0xd')]['set'](_0x14e4('0x1a'),_0x58af40),this['_keystrokes'][_0x14e4('0x3')]('arrowleft',_0x58af40),this['_keystrokes'][_0x14e4('0x3')](_0x14e4('0x5'),_0x58af40),this[_0x14e4('0xd')][_0x14e4('0x3')](_0x14e4('0xc'),_0x58af40),this[_0x14e4('0x12')](this[_0x14e4('0x11')],_0x14e4('0x16'),(_0x484696,_0x19d5d7)=>{_0x19d5d7[_0x14e4('0x17')]();},{'priority':'high'});}[_0x14e4('0x8')](){super[_0x14e4('0x8')](),this['_focusTracker'][_0x14e4('0x8')](),this[_0x14e4('0xd')]['destroy']();}[_0x14e4('0x0')](){this['element'][_0x14e4('0x0')]();}}
23
+ const _0x107f=['length','bindTemplate','tab','isEmpty','EMPTY_COMMENTS_ARCHIVE','arrowdown','ck-comments-archive','_focusables','element','stopPropagation','ck-hidden','remove','auto','listenTo','_focusTracker','_keystrokes','render','selectstart','setTemplate','arrowright','set','focus','destroy','div','add','COMMENTS_ARCHIVE','high'];(function(_0x5294c5,_0x107f74){const _0x36a6f9=function(_0x405dfd){while(--_0x405dfd){_0x5294c5['push'](_0x5294c5['shift']());}};_0x36a6f9(++_0x107f74);}(_0x107f,0x1bf));const _0x36a6=function(_0x5294c5,_0x107f74){_0x5294c5=_0x5294c5-0x0;let _0x36a6f9=_0x107f[_0x5294c5];return _0x36a6f9;};import{View as _0x8679cc,FocusCycler as _0x1762f6}from'ckeditor5/src/ui';import{FocusTracker as _0x244e0f,KeystrokeHandler as _0x175aae}from'ckeditor5/src/utils';import{getTranslation as _0x59e34f}from'../../../utils/common-translations';export default class Q extends _0x8679cc{constructor(_0x11bdb3,_0xdf4011){super(_0x11bdb3),this[_0x36a6('0x5')](_0x36a6('0xf'),!_0xdf4011[_0x36a6('0xc')]),this[_0x36a6('0x1a')]=new _0x244e0f(),this[_0x36a6('0x0')]=new _0x175aae(),this[_0x36a6('0x13')]=_0xdf4011,this['_focusCycler']=new _0x1762f6({'focusables':this[_0x36a6('0x13')],'focusTracker':this[_0x36a6('0x1a')],'keystrokeHandler':this[_0x36a6('0x0')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0x36a6('0xe')}}),this[_0x36a6('0x19')](_0xdf4011,_0x36a6('0x9'),()=>{this[_0x36a6('0xf')]=!0x1;}),this[_0x36a6('0x19')](_0xdf4011,_0x36a6('0x17'),(_0x33c751,_0x3fbfa3)=>{_0x3fbfa3['isActive']&&this[_0x36a6('0x6')](),_0xdf4011['length']||(this[_0x36a6('0xf')]=!0x0);});const _0xdb0f3d=this[_0x36a6('0xd')];this[_0x36a6('0x3')]({'tag':_0x36a6('0x8'),'attributes':{'dir':_0x36a6('0x18'),'class':['ck',_0x36a6('0x12')],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':['ck-comments-archive__header\x20']},'children':[{'text':_0x59e34f(_0x11bdb3,_0x36a6('0xa'))}]},{'tag':_0x36a6('0x8'),'attributes':{'class':['ck-comments-archive__content']},'children':[{'tag':_0x36a6('0x8'),'children':_0xdf4011},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0xdb0f3d['if'](_0x36a6('0xf'),_0x36a6('0x16'),_0x2d1baf=>!_0x2d1baf)]},'children':[{'text':_0x59e34f(_0x11bdb3,_0x36a6('0x10'))}]}]}]});}[_0x36a6('0x1')](){super[_0x36a6('0x1')](),this[_0x36a6('0x0')][_0x36a6('0x19')](this[_0x36a6('0x14')]);const _0x4901eb=_0x51a762=>_0x51a762['stopPropagation']();this[_0x36a6('0x0')][_0x36a6('0x5')](_0x36a6('0x4'),_0x4901eb),this[_0x36a6('0x0')][_0x36a6('0x5')]('arrowleft',_0x4901eb),this[_0x36a6('0x0')][_0x36a6('0x5')]('arrowup',_0x4901eb),this[_0x36a6('0x0')][_0x36a6('0x5')](_0x36a6('0x11'),_0x4901eb),this[_0x36a6('0x19')](this[_0x36a6('0x14')],_0x36a6('0x2'),(_0x3cbe2f,_0x4ea80e)=>{_0x4ea80e[_0x36a6('0x15')]();},{'priority':_0x36a6('0xb')});}['destroy'](){super[_0x36a6('0x7')](),this[_0x36a6('0x1a')]['destroy'](),this['_keystrokes']['destroy']();}['focus'](){this[_0x36a6('0x14')]['focus']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1f85=['set','maxCommentsWhenCollapsed','CommentView','from','viewUid','editorConfig','ck-thread__comments','collapse','get','hasDirtyComment','createCollection','isActive','stopListening','add','_handleNewCommentModel','delete','some','resolveCommentThread','visibleViews','_updateHasDirtyComment','_handleInfoComment','render','locale','equal','commentViews','resolvedBy','resolved','comments','bind','change:isResolved','_calculatePosition','focus','weight','_collapsedCommentsView','listenTo','formatDateTime','remove','_rearrangeExpand','Marked\x20as\x20resolved','maxThreadTotalWeight','_handleRemoveCommentModel','removeComment','_config','commentUpdated','element','length','_findOptimalIndex','expand','change:isEditMode','_rearrangeCollapse','resolvedCommentView','_shouldCollapse','refreshVisibleViews','maxCommentCharsWhenCollapsed','count','updateComment','_model','isEditMode','resolvedAt','destroy','delegate'];(function(_0x2eacd2,_0x1f8509){const _0x55e883=function(_0x2fbcc6){while(--_0x2fbcc6){_0x2eacd2['push'](_0x2eacd2['shift']());}};_0x55e883(++_0x1f8509);}(_0x1f85,0x128));const _0x55e8=function(_0x2eacd2,_0x1f8509){_0x2eacd2=_0x2eacd2-0x0;let _0x55e883=_0x1f85[_0x2eacd2];return _0x55e883;};import{View as _0x22d005}from'ckeditor5/src/ui';import{diff as _0x26d5df,Collection as _0x218928}from'ckeditor5/src/utils';import{getTranslation as _0x37df9d}from'../../../utils/common-translations';import _0x49157d from'./collapsedcommentsview';export default class wt extends _0x22d005{constructor(_0x83a436,_0x13854a,_0x37e3b5){super(_0x83a436),this['set'](_0x55e8('0x12'),!0x1),this[_0x55e8('0x9')]('length',_0x13854a[_0x55e8('0x24')][_0x55e8('0x36')]),this[_0x55e8('0x9')](_0x55e8('0x14'),!0x1),this[_0x55e8('0x4')]=_0x13854a,this[_0x55e8('0x33')]=_0x37e3b5,this[_0x55e8('0x21')]=this['createCollection'](),this[_0x55e8('0x1b')]=this[_0x55e8('0x13')](),this[_0x55e8('0x3b')]=null,this['_collapsedCommentsView']=new _0x49157d(_0x83a436),this[_0x55e8('0x2a')][_0x55e8('0x25')](_0x55e8('0x2'))['to'](this,'length',_0x30a797=>_0x30a797-this[_0x55e8('0x33')][_0x55e8('0xa')]);for(const _0x4e2ee9 of _0x13854a[_0x55e8('0x24')])this[_0x55e8('0x17')](_0x4e2ee9);this[_0x55e8('0x1d')](),this[_0x55e8('0x2b')](_0x13854a['comments'],_0x55e8('0x16'),(_0x3ea34e,_0x105229)=>{const _0x33b302=this[_0x55e8('0x27')](_0x105229);this['length']++,this[_0x55e8('0x17')](_0x105229,_0x33b302),this[_0x55e8('0x0')]();}),this[_0x55e8('0x2b')](_0x13854a[_0x55e8('0x24')],_0x55e8('0x2d'),(_0x5899d6,_0x3e07d9)=>{this[_0x55e8('0x36')]--,this['_handleRemoveCommentModel'](_0x3e07d9),this[_0x55e8('0x0')]();}),this[_0x55e8('0x2b')](_0x13854a,_0x55e8('0x34'),()=>this[_0x55e8('0x0')]()),this[_0x55e8('0x2b')](_0x13854a,_0x55e8('0x26'),()=>this[_0x55e8('0x1d')]()),this['on']('change:isActive',()=>this['refreshVisibleViews']()),this['on']('change:hasDirtyComment',()=>this['refreshVisibleViews']()),this['setTemplate']({'tag':'ul','attributes':{'class':[_0x55e8('0xf')]},'children':this[_0x55e8('0x1b')]});}get[_0x55e8('0x3c')](){return this[_0x55e8('0x4')][_0x55e8('0x29')]>this[_0x55e8('0x33')][_0x55e8('0x30')]&&!this[_0x55e8('0x14')]&&!this[_0x55e8('0x12')];}[_0x55e8('0x1e')](){super[_0x55e8('0x1e')](),this['refreshVisibleViews']();}[_0x55e8('0x28')](){this[_0x55e8('0x35')][_0x55e8('0x28')]();}[_0x55e8('0x7')](){this['_collapsedCommentsView']['destroy']();for(const _0x3bdbaa of this[_0x55e8('0x21')])_0x3bdbaa['destroy']();super[_0x55e8('0x7')]();}['refreshVisibleViews'](){this[_0x55e8('0x3c')]?this[_0x55e8('0x3a')]():this[_0x55e8('0x2e')]();}['_handleNewCommentModel'](_0x2ca588,_0xfb1896){const _0x463753=new this[(_0x55e8('0x33'))][(_0x55e8('0xb'))](this[_0x55e8('0x1f')],_0x2ca588,{'maxCommentCharsWhenCollapsed':this['_config'][_0x55e8('0x1')],'formatDateTime':this['_config'][_0x55e8('0x2c')],'editorConfig':this['_config'][_0x55e8('0xe')]});_0x463753[_0x55e8('0xd')]=_0x2ca588['id'],_0x463753[_0x55e8('0x8')](_0x55e8('0x32'))['to'](this),_0x463753[_0x55e8('0x8')](_0x55e8('0x3'))['to'](this),_0x463753[_0x55e8('0x8')](_0x55e8('0x1a'))['to'](this),this[_0x55e8('0x2b')](_0x463753,_0x55e8('0x39'),()=>this[_0x55e8('0x1c')]()),this[_0x55e8('0x21')][_0x55e8('0x16')](_0x463753,_0xfb1896);}[_0x55e8('0x27')](_0x53f93f){const _0x40af41=this['_model'][_0x55e8('0x37')](_0x53f93f);return this['resolvedCommentView']?this[_0x55e8('0x3b')]['authoredAt']>_0x53f93f['authoredAt']?_0x40af41-0x1:_0x40af41:_0x40af41-0x1;}[_0x55e8('0x1d')](){if(this[_0x55e8('0x4')][_0x55e8('0x22')]&&this[_0x55e8('0x4')][_0x55e8('0x6')]){const _0x1cede1={'id':_0x55e8('0x23'),'author':this['_model'][_0x55e8('0x22')],'authoredAt':this[_0x55e8('0x4')][_0x55e8('0x6')],'content':_0x37df9d(this[_0x55e8('0x1f')],_0x55e8('0x2f')),'attributes':{}};this[_0x55e8('0x3b')]=new this[(_0x55e8('0x33'))][(_0x55e8('0xb'))](this['locale'],_0x1cede1,{'maxCommentCharsWhenCollapsed':this['_config'][_0x55e8('0x1')],'formatDateTime':this[_0x55e8('0x33')][_0x55e8('0x2c')],'editorConfig':this[_0x55e8('0x33')][_0x55e8('0xe')],'isSystemComment':!0x0}),this[_0x55e8('0x21')][_0x55e8('0x16')](this[_0x55e8('0x3b')],this['_model'][_0x55e8('0x37')](_0x1cede1));}else this['resolvedCommentView']&&(this[_0x55e8('0x21')]['remove'](this[_0x55e8('0x3b')]),this['resolvedCommentView'][_0x55e8('0x7')](),this[_0x55e8('0x3b')]=null);this[_0x55e8('0x0')]();}[_0x55e8('0x31')](_0xe4fe60){const _0x579308=this[_0x55e8('0x21')][_0x55e8('0x2d')](_0xe4fe60['id']);this[_0x55e8('0x15')](_0x579308),_0x579308[_0x55e8('0x5')]&&this[_0x55e8('0x1c')](),_0x579308[_0x55e8('0x7')]();}['_updateHasDirtyComment'](){this[_0x55e8('0x12')]=Array[_0x55e8('0xc')](this['commentViews'])[_0x55e8('0x19')](_0x2909f4=>_0x2909f4[_0x55e8('0x5')]);}['_rearrangeCollapse'](){const _0x76e93b=function(_0x419c61){const _0x154d22=new _0x218928();for(const _0x45572b of _0x419c61)_0x154d22[_0x55e8('0x16')](_0x45572b);return _0x154d22;}(this[_0x55e8('0x21')]),_0x569506=this[_0x55e8('0x2a')]['count'];for(let _0x5e9fcc=0x1;_0x5e9fcc<=_0x569506;_0x5e9fcc++)_0x76e93b['remove'](0x1);for(const _0x54e61b of _0x76e93b)_0x54e61b[_0x55e8('0x10')]();_0x569506>0x0&&_0x76e93b[_0x55e8('0x16')](this[_0x55e8('0x2a')],0x1),ss(_0x26d5df(Array[_0x55e8('0xc')](this[_0x55e8('0x1b')]),Array['from'](_0x76e93b)),this['visibleViews'],_0x76e93b);}['_rearrangeExpand'](){ss(_0x26d5df(Array[_0x55e8('0xc')](this[_0x55e8('0x1b')]),Array[_0x55e8('0xc')](this['commentViews'])),this[_0x55e8('0x1b')],this[_0x55e8('0x21')]);for(const _0x55681d of this[_0x55e8('0x1b')])_0x55681d[_0x55e8('0x38')]();}}function ss(_0x3283d5,_0x90b291,_0x1e8a15){let _0x25b22f=0x0;for(const _0x3756f6 of _0x3283d5)switch(_0x3756f6){case'insert':_0x90b291[_0x55e8('0x16')](_0x1e8a15[_0x55e8('0x11')](_0x25b22f),_0x25b22f),_0x25b22f++;break;case _0x55e8('0x18'):_0x90b291[_0x55e8('0x2d')](_0x25b22f);break;case _0x55e8('0x20'):_0x25b22f++;}}
23
+ const _0x4862=['collapse','set','formatDateTime','resolvedCommentView','equal','_calculatePosition','_collapsedCommentsView','element','destroy','authoredAt','editorConfig','viewUid','change:hasDirtyComment','isEditMode','locale','delete','ck-thread__comments','bind','listenTo','setTemplate','_updateHasDirtyComment','maxCommentCharsWhenCollapsed','commentUpdated','from','_handleInfoComment','createCollection','_shouldCollapse','focus','isActive','insert','visibleViews','length','updateComment','commentViews','remove','_model','add','_rearrangeCollapse','Marked\x20as\x20resolved','resolvedAt','resolveCommentThread','resolved','_handleRemoveCommentModel','comments','refreshVisibleViews','render','_config','count','_handleNewCommentModel','removeComment','delegate','change:isActive','CommentView','_rearrangeExpand','_findOptimalIndex','resolvedBy','hasDirtyComment','weight','some'];(function(_0x4d8084,_0x4862d8){const _0x1ee99d=function(_0x40f919){while(--_0x40f919){_0x4d8084['push'](_0x4d8084['shift']());}};_0x1ee99d(++_0x4862d8);}(_0x4862,0x1a9));const _0x1ee9=function(_0x4d8084,_0x4862d8){_0x4d8084=_0x4d8084-0x0;let _0x1ee99d=_0x4862[_0x4d8084];return _0x1ee99d;};import{View as _0x25c316}from'ckeditor5/src/ui';import{diff as _0x384c42,Collection as _0x33bbbc}from'ckeditor5/src/utils';import{getTranslation as _0x4254f6}from'../../../utils/common-translations';import _0x5a7f34 from'./collapsedcommentsview';export default class wt extends _0x25c316{constructor(_0x36266e,_0x1e40ad,_0x89c5f6){super(_0x36266e),this[_0x1ee9('0x30')]('hasDirtyComment',!0x1),this[_0x1ee9('0x30')](_0x1ee9('0x13'),_0x1e40ad[_0x1ee9('0x1f')][_0x1ee9('0x13')]),this[_0x1ee9('0x30')](_0x1ee9('0x10'),!0x1),this['_model']=_0x1e40ad,this[_0x1ee9('0x22')]=_0x89c5f6,this[_0x1ee9('0x15')]=this[_0x1ee9('0xd')](),this[_0x1ee9('0x12')]=this['createCollection'](),this[_0x1ee9('0x32')]=null,this[_0x1ee9('0x35')]=new _0x5a7f34(_0x36266e),this[_0x1ee9('0x35')][_0x1ee9('0x5')](_0x1ee9('0x23'))['to'](this,_0x1ee9('0x13'),_0x51b464=>_0x51b464-this[_0x1ee9('0x22')]['maxCommentsWhenCollapsed']);for(const _0x14b3a1 of _0x1e40ad[_0x1ee9('0x1f')])this['_handleNewCommentModel'](_0x14b3a1);this[_0x1ee9('0xc')](),this[_0x1ee9('0x6')](_0x1e40ad[_0x1ee9('0x1f')],_0x1ee9('0x18'),(_0x507cbc,_0x32c225)=>{const _0x4b5c75=this[_0x1ee9('0x34')](_0x32c225);this[_0x1ee9('0x13')]++,this[_0x1ee9('0x24')](_0x32c225,_0x4b5c75),this[_0x1ee9('0x20')]();}),this['listenTo'](_0x1e40ad[_0x1ee9('0x1f')],_0x1ee9('0x16'),(_0x1d1bdf,_0x57051d)=>{this['length']--,this[_0x1ee9('0x1e')](_0x57051d),this[_0x1ee9('0x20')]();}),this[_0x1ee9('0x6')](_0x1e40ad,_0x1ee9('0xa'),()=>this[_0x1ee9('0x20')]()),this[_0x1ee9('0x6')](_0x1e40ad,'change:isResolved',()=>this[_0x1ee9('0xc')]()),this['on'](_0x1ee9('0x27'),()=>this[_0x1ee9('0x20')]()),this['on'](_0x1ee9('0x0'),()=>this[_0x1ee9('0x20')]()),this[_0x1ee9('0x7')]({'tag':'ul','attributes':{'class':[_0x1ee9('0x4')]},'children':this[_0x1ee9('0x12')]});}get['_shouldCollapse'](){return this[_0x1ee9('0x17')][_0x1ee9('0x2d')]>this[_0x1ee9('0x22')]['maxThreadTotalWeight']&&!this['isActive']&&!this[_0x1ee9('0x2c')];}[_0x1ee9('0x21')](){super[_0x1ee9('0x21')](),this['refreshVisibleViews']();}[_0x1ee9('0xf')](){this[_0x1ee9('0x36')][_0x1ee9('0xf')]();}[_0x1ee9('0x37')](){this[_0x1ee9('0x35')][_0x1ee9('0x37')]();for(const _0x34cbdc of this[_0x1ee9('0x15')])_0x34cbdc[_0x1ee9('0x37')]();super[_0x1ee9('0x37')]();}[_0x1ee9('0x20')](){this[_0x1ee9('0xe')]?this[_0x1ee9('0x19')]():this[_0x1ee9('0x29')]();}[_0x1ee9('0x24')](_0xcd7143,_0x2b3ffd){const _0x3c61fc=new this[(_0x1ee9('0x22'))][(_0x1ee9('0x28'))](this[_0x1ee9('0x2')],_0xcd7143,{'maxCommentCharsWhenCollapsed':this[_0x1ee9('0x22')][_0x1ee9('0x9')],'formatDateTime':this['_config'][_0x1ee9('0x31')],'editorConfig':this['_config'][_0x1ee9('0x39')]});_0x3c61fc[_0x1ee9('0x3a')]=_0xcd7143['id'],_0x3c61fc[_0x1ee9('0x26')](_0x1ee9('0x25'))['to'](this),_0x3c61fc[_0x1ee9('0x26')](_0x1ee9('0x14'))['to'](this),_0x3c61fc[_0x1ee9('0x26')](_0x1ee9('0x1c'))['to'](this),this[_0x1ee9('0x6')](_0x3c61fc,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this[_0x1ee9('0x15')][_0x1ee9('0x18')](_0x3c61fc,_0x2b3ffd);}[_0x1ee9('0x34')](_0x197c0a){const _0x26f7f4=this[_0x1ee9('0x17')][_0x1ee9('0x2a')](_0x197c0a);return this[_0x1ee9('0x32')]?this['resolvedCommentView'][_0x1ee9('0x38')]>_0x197c0a[_0x1ee9('0x38')]?_0x26f7f4-0x1:_0x26f7f4:_0x26f7f4-0x1;}['_handleInfoComment'](){if(this['_model'][_0x1ee9('0x2b')]&&this['_model']['resolvedAt']){const _0x5c6de4={'id':_0x1ee9('0x1d'),'author':this[_0x1ee9('0x17')][_0x1ee9('0x2b')],'authoredAt':this[_0x1ee9('0x17')][_0x1ee9('0x1b')],'content':_0x4254f6(this[_0x1ee9('0x2')],_0x1ee9('0x1a')),'attributes':{}};this[_0x1ee9('0x32')]=new this[(_0x1ee9('0x22'))]['CommentView'](this[_0x1ee9('0x2')],_0x5c6de4,{'maxCommentCharsWhenCollapsed':this[_0x1ee9('0x22')][_0x1ee9('0x9')],'formatDateTime':this[_0x1ee9('0x22')][_0x1ee9('0x31')],'editorConfig':this[_0x1ee9('0x22')][_0x1ee9('0x39')],'isSystemComment':!0x0}),this[_0x1ee9('0x15')][_0x1ee9('0x18')](this['resolvedCommentView'],this[_0x1ee9('0x17')][_0x1ee9('0x2a')](_0x5c6de4));}else this[_0x1ee9('0x32')]&&(this[_0x1ee9('0x15')]['remove'](this['resolvedCommentView']),this[_0x1ee9('0x32')][_0x1ee9('0x37')](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x13512c){const _0x278dd0=this[_0x1ee9('0x15')][_0x1ee9('0x16')](_0x13512c['id']);this['stopListening'](_0x278dd0),_0x278dd0['isEditMode']&&this[_0x1ee9('0x8')](),_0x278dd0[_0x1ee9('0x37')]();}['_updateHasDirtyComment'](){this[_0x1ee9('0x2c')]=Array[_0x1ee9('0xb')](this[_0x1ee9('0x15')])[_0x1ee9('0x2e')](_0x2b0449=>_0x2b0449[_0x1ee9('0x1')]);}[_0x1ee9('0x19')](){const _0x221574=function(_0x4c6db8){const _0x3cf4fd=new _0x33bbbc();for(const _0x3b77fb of _0x4c6db8)_0x3cf4fd[_0x1ee9('0x18')](_0x3b77fb);return _0x3cf4fd;}(this[_0x1ee9('0x15')]),_0x506657=this['_collapsedCommentsView']['count'];for(let _0x5d661e=0x1;_0x5d661e<=_0x506657;_0x5d661e++)_0x221574['remove'](0x1);for(const _0x2aac74 of _0x221574)_0x2aac74[_0x1ee9('0x2f')]();_0x506657>0x0&&_0x221574[_0x1ee9('0x18')](this[_0x1ee9('0x35')],0x1),ss(_0x384c42(Array[_0x1ee9('0xb')](this[_0x1ee9('0x12')]),Array[_0x1ee9('0xb')](_0x221574)),this['visibleViews'],_0x221574);}['_rearrangeExpand'](){ss(_0x384c42(Array['from'](this[_0x1ee9('0x12')]),Array[_0x1ee9('0xb')](this[_0x1ee9('0x15')])),this[_0x1ee9('0x12')],this[_0x1ee9('0x15')]);for(const _0x1c089c of this[_0x1ee9('0x12')])_0x1c089c['expand']();}}function ss(_0x25fc7b,_0xa08b1c,_0x1e9947){let _0x1a08ea=0x0;for(const _0x227d70 of _0x25fc7b)switch(_0x227d70){case _0x1ee9('0x11'):_0xa08b1c[_0x1ee9('0x18')](_0x1e9947['get'](_0x1a08ea),_0x1a08ea),_0x1a08ea++;break;case _0x1ee9('0x3'):_0xa08b1c['remove'](_0x1a08ea);break;case _0x1ee9('0x33'):_0x1a08ea++;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5b1b=['label','substring','ck-context--quotes','ck-context-wrapper','isResolvable','scrollWidth','Reopen','ck-context','tooltip','_attachContextActions','contextValue','fire','bind','mouseleave','context','reopenButtonView','reopenCommentThread','mouseenter','ck-annotation__actions','hasContext','setTemplate','offsetWidth','listenTo','classList','length','.ck-context','span','ck-context__value','Comment\x20was\x20made\x20on\x20an\x20element','locale','element','.ck-context__value','div','render','querySelector','_trimContextValue','...','_createReopenButton','_model','overlay'];(function(_0x57f5c1,_0x5b1b41){const _0x2facef=function(_0x2d9d02){while(--_0x2d9d02){_0x57f5c1['push'](_0x57f5c1['shift']());}};_0x2facef(++_0x5b1b41);}(_0x5b1b,0x1d5));const _0x2fac=function(_0x57f5c1,_0x5b1b41){_0x57f5c1=_0x57f5c1-0x0;let _0x2facef=_0x5b1b[_0x57f5c1];return _0x2facef;};import{View as _0x5afdc2,ButtonView as _0x12d66d}from'ckeditor5/src/ui';import{getTranslation as _0x1065d7}from'../../../utils/common-translations';import _0x51ac2f from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Tt extends _0x5afdc2{constructor(_0x90f055,_0x1e072f){super(_0x90f055);const _0x3fc4e3=this['bindTemplate'];this[_0x2fac('0x9')]=_0x1e072f,this[_0x2fac('0x1a')]=this[_0x2fac('0x8')](),this['bind'](_0x2fac('0x1e'))['to'](this[_0x2fac('0x9')],'context',_0x25e2c0=>!!_0x25e2c0),this[_0x2fac('0x17')](_0x2fac('0x15'))['to'](this[_0x2fac('0x9')],_0x2fac('0x19'),_0x2c71ad=>_0x2c71ad&&_0x2c71ad['value']?this['_trimContextValue'](_0x2c71ad['value']):_0x1065d7(this['locale'],_0x2fac('0x27'))),this[_0x2fac('0x1f')]({'tag':_0x2fac('0x3'),'attributes':{'class':['ck-thread__header']},'children':[{'tag':_0x2fac('0x3'),'attributes':{'class':[_0x2fac('0xe')]},'children':[{'tag':'div','attributes':{'class':[_0x2fac('0x12'),_0x3fc4e3['if']('hasContext',_0x2fac('0xd'))]},'children':[{'tag':_0x2fac('0x25'),'attributes':{'class':[_0x2fac('0x26')]},'children':[{'text':_0x3fc4e3['to'](_0x2fac('0x15'))}]}]}]},{'tag':'div','attributes':{'class':[_0x2fac('0x1d')]},'children':[this[_0x2fac('0x1a')]]}]});}[_0x2fac('0x4')](){super[_0x2fac('0x4')](),this[_0x2fac('0x14')]();}[_0x2fac('0x8')](){const _0x117fb0=new _0x12d66d(this[_0x2fac('0x0')]);return _0x117fb0[_0x2fac('0xb')]=_0x1065d7(this[_0x2fac('0x0')],_0x2fac('0x11')),_0x117fb0[_0x2fac('0x13')]=_0x1065d7(this[_0x2fac('0x0')],'Reopen'),_0x117fb0['icon']=_0x51ac2f,_0x117fb0[_0x2fac('0x17')]('isVisible')['to'](this['_model'],_0x2fac('0xf')),_0x117fb0['on']('execute',()=>{this[_0x2fac('0x16')](_0x2fac('0x1b'),this[_0x2fac('0x9')]['id']);}),_0x117fb0;}[_0x2fac('0x6')](_0x2fb099){if(_0x2fb099[_0x2fac('0x23')]<0x96)return _0x2fb099;const _0x3a34c1=_0x2fb099['lastIndexOf']('\x20',0x93);return _0x2fb099[_0x2fac('0xc')](0x0,_0x3a34c1>-0x1?_0x3a34c1:0x93)+_0x2fac('0x7');}[_0x2fac('0x14')](){const _0xa50421=this[_0x2fac('0x1')]['querySelector'](_0x2fac('0x24')),_0xa49e92=_0xa50421[_0x2fac('0x5')](_0x2fac('0x2'));this[_0x2fac('0x21')](_0xa50421,_0x2fac('0x1c'),()=>{_0xa49e92[_0x2fac('0x20')]<_0xa49e92[_0x2fac('0x10')]&&_0xa50421['classList']['add']('overlay');}),this[_0x2fac('0x21')](_0xa50421,_0x2fac('0x18'),()=>{_0xa50421[_0x2fac('0x22')]['remove'](_0x2fac('0xa'));});}}
23
+ const _0x1eba=['element','isVisible','isResolvable','length','_trimContextValue','hasContext','bindTemplate','Reopen','remove','overlay','add','.ck-context__value','label','isReadOnly','div','.ck-context','span','ck-context','ck-context--quotes','render','icon','Comment\x20was\x20made\x20on\x20an\x20element','classList','execute','scrollWidth','substring','_model','value','...','setTemplate','mouseenter','offsetWidth','locale','_createReopenButton','contextValue','bind','listenTo','fire','_attachContextActions','ck-context-wrapper'];(function(_0x361754,_0x1eba7d){const _0x238f7a=function(_0x372601){while(--_0x372601){_0x361754['push'](_0x361754['shift']());}};_0x238f7a(++_0x1eba7d);}(_0x1eba,0x147));const _0x238f=function(_0x361754,_0x1eba7d){_0x361754=_0x361754-0x0;let _0x238f7a=_0x1eba[_0x361754];return _0x238f7a;};import{View as _0x4ff07b,ButtonView as _0x5bcc66}from'ckeditor5/src/ui';import{getTranslation as _0xaff651}from'../../../utils/common-translations';import _0x4bde56 from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Tt extends _0x4ff07b{constructor(_0x30f0f7,_0x1ebcac){super(_0x30f0f7);const _0x5a25e4=this[_0x238f('0x27')];this[_0x238f('0x13')]=_0x1ebcac,this['reopenButtonView']=this['_createReopenButton'](),this[_0x238f('0x1c')](_0x238f('0x26'))['to'](this['_model'],'context',_0x1a204c=>!!_0x1a204c),this[_0x238f('0x1c')](_0x238f('0x1b'))['to'](this[_0x238f('0x13')],'context',_0x590e7b=>_0x590e7b&&_0x590e7b[_0x238f('0x14')]?this[_0x238f('0x25')](_0x590e7b['value']):_0xaff651(this['locale'],_0x238f('0xe'))),this[_0x238f('0x16')]({'tag':_0x238f('0x7'),'attributes':{'class':['ck-thread__header']},'children':[{'tag':_0x238f('0x7'),'attributes':{'class':[_0x238f('0x20')]},'children':[{'tag':_0x238f('0x7'),'attributes':{'class':[_0x238f('0xa'),_0x5a25e4['if'](_0x238f('0x26'),_0x238f('0xb'))]},'children':[{'tag':_0x238f('0x9'),'attributes':{'class':['ck-context__value']},'children':[{'text':_0x5a25e4['to'](_0x238f('0x1b'))}]}]}]},{'tag':'div','attributes':{'class':['ck-annotation__actions']},'children':[this['reopenButtonView']]}]});}[_0x238f('0xc')](){super['render'](),this['_attachContextActions']();}[_0x238f('0x1a')](){const _0x2f4f42=new _0x5bcc66(this['locale']);return _0x2f4f42[_0x238f('0x5')]=_0xaff651(this[_0x238f('0x19')],_0x238f('0x0')),_0x2f4f42['tooltip']=_0xaff651(this['locale'],_0x238f('0x0')),_0x2f4f42[_0x238f('0xd')]=_0x4bde56,_0x2f4f42[_0x238f('0x1c')]('isEnabled')['to'](this['_model'],_0x238f('0x6'),_0x2d97c1=>!_0x2d97c1),_0x2f4f42[_0x238f('0x1c')](_0x238f('0x22'))['to'](this[_0x238f('0x13')],_0x238f('0x23')),_0x2f4f42['on'](_0x238f('0x10'),()=>{this[_0x238f('0x1e')]('reopenCommentThread',this[_0x238f('0x13')]['id']);}),_0x2f4f42;}[_0x238f('0x25')](_0x40eb3a){if(_0x40eb3a[_0x238f('0x24')]<0x96)return _0x40eb3a;const _0x132433=_0x40eb3a['lastIndexOf']('\x20',0x93);return _0x40eb3a[_0x238f('0x12')](0x0,_0x132433>-0x1?_0x132433:0x93)+_0x238f('0x15');}[_0x238f('0x1f')](){const _0x1f81c1=this[_0x238f('0x21')]['querySelector'](_0x238f('0x8')),_0xd5e88b=_0x1f81c1['querySelector'](_0x238f('0x4'));this[_0x238f('0x1d')](_0x1f81c1,_0x238f('0x17'),()=>{_0xd5e88b[_0x238f('0x18')]<_0xd5e88b[_0x238f('0x11')]&&_0x1f81c1[_0x238f('0xf')][_0x238f('0x3')](_0x238f('0x2'));}),this['listenTo'](_0x1f81c1,'mouseleave',()=>{_0x1f81c1[_0x238f('0xf')][_0x238f('0x1')](_0x238f('0x2'));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1936=['destroy','focusTracker','isFocused','commentInputView','ck-comment__input-container--active','extendTemplate','ck-thread__input','showInput','bindTemplate','editor','bind','ck-thread__user','value','change:showInput','ck-comment__input-container','userView','showButtons','set','div'];(function(_0xe9fa1e,_0x193616){var _0x5768d0=function(_0x46e7b1){while(--_0x46e7b1){_0xe9fa1e['push'](_0xe9fa1e['shift']());}};_0x5768d0(++_0x193616);}(_0x1936,0xa1));var _0x5768=function(_0xe9fa1e,_0x193616){_0xe9fa1e=_0xe9fa1e-0x0;var _0x5768d0=_0x1936[_0xe9fa1e];return _0x5768d0;};import{View as _0x39fc43}from'ckeditor5/src/ui';import _0x4b2cc9 from'./commentinputview';import{UserView as _0x375f7c}from'ckeditor5-collaboration/src/collaboration-core';export default class Ct extends _0x39fc43{constructor(_0x12c75c,_0x293a7b,_0x2d917c){super(_0x12c75c),this[_0x5768('0xd')]=new _0x4b2cc9(_0x12c75c,_0x2d917c),this[_0x5768('0xd')][_0x5768('0x1')](_0x5768('0x7'))['to'](this[_0x5768('0xd')][_0x5768('0xb')],_0x5768('0xc'),this[_0x5768('0xd')],_0x5768('0x3'),(_0x206165,_0x44618e)=>_0x206165||!!_0x44618e),this[_0x5768('0x8')](_0x5768('0x11'),!0x1),this['on'](_0x5768('0x4'),()=>{this[_0x5768('0x11')]&&!this[_0x5768('0xd')][_0x5768('0x0')]&&this['commentInputView']['createEditor']();}),this[_0x5768('0x6')]=new _0x375f7c(_0x12c75c,_0x293a7b),this[_0x5768('0x6')][_0x5768('0xf')]({'attributes':{'class':_0x5768('0x2')}}),this[_0x5768('0xd')][_0x5768('0xf')]({'attributes':{'class':_0x5768('0x10')}}),this['setTemplate']({'tag':_0x5768('0x9'),'attributes':{'class':[_0x5768('0x5'),this[_0x5768('0x12')]['if'](_0x5768('0x11'),_0x5768('0xe'))]},'children':[this[_0x5768('0x6')],this[_0x5768('0xd')]]});}[_0x5768('0xa')](){return this['commentInputView'][_0x5768('0xa')]()['then'](()=>super['destroy']());}}
23
+ var _0x1272=['createEditor','focusTracker','ck-thread__user','then','userView','destroy','showInput','editor','commentInputView','bindTemplate','setTemplate','extendTemplate','change:showInput','set'];(function(_0x3de805,_0x12728e){var _0x21e2fc=function(_0x3e2f31){while(--_0x3e2f31){_0x3de805['push'](_0x3de805['shift']());}};_0x21e2fc(++_0x12728e);}(_0x1272,0x168));var _0x21e2=function(_0x3de805,_0x12728e){_0x3de805=_0x3de805-0x0;var _0x21e2fc=_0x1272[_0x3de805];return _0x21e2fc;};import{View as _0x15351b}from'ckeditor5/src/ui';import _0x4924b5 from'./commentinputview';import{UserView as _0x1f4a08}from'ckeditor5-collaboration/src/collaboration-core';export default class Ct extends _0x15351b{constructor(_0x48753b,_0x2cf2f4,_0x1b00b5){super(_0x48753b),this[_0x21e2('0xc')]=new _0x4924b5(_0x48753b,_0x1b00b5),this[_0x21e2('0xc')]['bind']('showButtons')['to'](this[_0x21e2('0xc')][_0x21e2('0x5')],'isFocused',this['commentInputView'],'value',(_0x4d175a,_0x514ea4)=>_0x4d175a||!!_0x514ea4),this[_0x21e2('0x3')](_0x21e2('0xa'),!0x1),this['on'](_0x21e2('0x2'),()=>{this[_0x21e2('0xa')]&&!this['commentInputView'][_0x21e2('0xb')]&&this[_0x21e2('0xc')][_0x21e2('0x4')]();}),this[_0x21e2('0x8')]=new _0x1f4a08(_0x48753b,_0x2cf2f4),this[_0x21e2('0x8')][_0x21e2('0x1')]({'attributes':{'class':_0x21e2('0x6')}}),this[_0x21e2('0xc')][_0x21e2('0x1')]({'attributes':{'class':'ck-thread__input'}}),this[_0x21e2('0x0')]({'tag':'div','attributes':{'class':['ck-comment__input-container',this[_0x21e2('0xd')]['if'](_0x21e2('0xa'),'ck-comment__input-container--active')]},'children':[this['userView'],this[_0x21e2('0xc')]]});}[_0x21e2('0x9')](){return this[_0x21e2('0xc')][_0x21e2('0x9')]()[_0x21e2('0x7')](()=>super[_0x21e2('0x9')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5f16=['locale','_model','Delete\x20comment\x20thread?','check','isVisible','ck-reset_all-excluded','commentsListView','commentViews','fire','ck-comment--resolve','_bindFirstCommentView','resolveButton','actionIndicator','unbind','bind','change:isResolved','commentThreadChildren','ck-thread','containerElement','change:isActive','_cancelAllConfirms','then','execute','createCollection','render','isReadOnly','_boundFirstCommentView','commentThreadHeaderView','querySelector','element','change:isReadOnly','icon','addMany','resolveCommentThread','_createResolveButton','ck-thread--','cancelConfirm','isEnabled','label','actionBar','removeButton','.ck-thread__container','ck-thread--active','setTemplate','isResolvable','commentThreadInputView','isActive','add','length','remove','placeholder','listenTo','Resolve','getTemplate','stop','removeCommentThread','isResolved'];(function(_0x1c05b2,_0x5f1644){const _0x45d65b=function(_0xe58ca2){while(--_0xe58ca2){_0x1c05b2['push'](_0x1c05b2['shift']());}};_0x45d65b(++_0x5f1644);}(_0x5f16,0xd9));const _0x45d6=function(_0x1c05b2,_0x5f1644){_0x1c05b2=_0x1c05b2-0x0;let _0x45d65b=_0x5f16[_0x1c05b2];return _0x45d65b;};import{ConfirmMixin as _0xc850b3}from'ckeditor5-collaboration/src/collaboration-core';import{ButtonView as _0x599400}from'ckeditor5/src/ui';import{icons as _0x3b2414}from'ckeditor5/src/core';import _0x4c3c74 from'./basecommentthreadview';import{getTranslation as _0x2a4eb6}from'../../../utils/common-translations';export default class lt extends _0xc850b3(_0x4c3c74){constructor(_0x38a651,_0x9a4eb1,_0x1a2fc7,_0x3c1bdd){super(_0x38a651,_0x9a4eb1,_0x1a2fc7,_0x3c1bdd),this['commentThreadChildren']=this[_0x45d6('0x22')](),this['commentThreadChildren'][_0x45d6('0x2b')]([this['commentsListView'],this[_0x45d6('0x38')]]),this['_model']['isResolved']&&this['commentThreadChildren'][_0x45d6('0x1')](this[_0x45d6('0x26')],0x0),this[_0x45d6('0xc')]['on'](_0x45d6('0x1a'),(_0xbfb721,_0x4ea0e1,_0x157f12)=>{_0x157f12?this[_0x45d6('0x1b')][_0x45d6('0x1')](this[_0x45d6('0x26')],0x0):this['commentThreadChildren'][_0x45d6('0x3')](this[_0x45d6('0x26')]);}),this['set'](_0x45d6('0x17'),null),this[_0x45d6('0x1d')]=null,this['_boundFirstCommentView']=null,this['locale']=_0x38a651,this[_0x45d6('0x16')]=this[_0x45d6('0x2d')](),this[_0x45d6('0x36')](this[_0x45d6('0x7')]()),this['on'](_0x45d6('0x1e'),(_0x5ebc65,_0x1999a3,_0x8036b3)=>{_0x8036b3||this[_0x45d6('0x1f')]();}),this[_0x45d6('0x5')](this[_0x45d6('0xc')],_0x45d6('0x29'),(_0x3f4866,_0x40b8e8,_0x5c15ec)=>{_0x5c15ec&&this['_cancelAllConfirms']();}),this[_0x45d6('0x2')]>0x0&&this['_bindFirstCommentView'](),this[_0x45d6('0x5')](this[_0x45d6('0x11')][_0x45d6('0x12')],_0x45d6('0x1'),()=>{this[_0x45d6('0x15')]();});}['getTemplate'](){const _0x3e4980=this['bindTemplate'];return{'tag':'div','attributes':{'class':[_0x45d6('0x1c'),_0x45d6('0x10'),_0x3e4980['if'](_0x45d6('0x0'),_0x45d6('0x35')),_0x3e4980['if']('isConfirm','ck-thread--remove-confirmation'),_0x3e4980['to']('actionIndicator',_0x4c8b63=>_0x4c8b63?_0x45d6('0x2e')+_0x4c8b63:'')],'data-thread-id':this[_0x45d6('0xc')]['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':'ck-thread__container'},'children':this[_0x45d6('0x1b')]}]};}[_0x45d6('0x23')](){super[_0x45d6('0x23')](),this[_0x45d6('0x1d')]=this[_0x45d6('0x28')][_0x45d6('0x27')](_0x45d6('0x34'));}[_0x45d6('0x1f')](){this['cancelConfirm']();for(const _0x234018 of this['commentsListView']['commentViews'])_0x234018[_0x45d6('0x2f')]();}[_0x45d6('0x15')](){const {locale:_0x48a8fb}=this,_0x387b83=this['commentsListView']['commentViews']['get'](0x0);_0x387b83===this['_boundFirstCommentView']||_0x387b83['isSystemComment']||(this[_0x45d6('0x25')]=_0x387b83,this[_0x45d6('0x18')](_0x45d6('0x17')),this[_0x45d6('0x19')](_0x45d6('0x17'))['to'](_0x387b83,_0x45d6('0x17'),_0xab8c6a=>'remove'===_0xab8c6a?_0x45d6('0x3'):null),_0x387b83[_0x45d6('0x4')]=_0x2a4eb6(_0x48a8fb,'Write\x20a\x20comment...'),_0x387b83[_0x45d6('0x33')]['on'](_0x45d6('0x21'),_0x3f7415=>{_0x3f7415[_0x45d6('0x8')](),this['showConfirm'](_0x2a4eb6(_0x48a8fb,_0x45d6('0xd')),this[_0x45d6('0x1d')])[_0x45d6('0x20')](()=>{this[_0x45d6('0x13')](_0x45d6('0x9'));});},{'priority':'high'}),_0x387b83[_0x45d6('0x32')][_0x45d6('0x1')](this['resolveButton'],0x0));}[_0x45d6('0x2d')](){const _0x24f77a=new _0x599400(this[_0x45d6('0xb')]);return _0x24f77a[_0x45d6('0x31')]=_0x2a4eb6(this[_0x45d6('0xb')],'Resolve'),_0x24f77a['tooltip']=_0x2a4eb6(this[_0x45d6('0xb')],_0x45d6('0x6')),_0x24f77a[_0x45d6('0x2a')]=_0x3b2414[_0x45d6('0xe')],_0x24f77a['extendTemplate']({'attributes':{'class':_0x45d6('0x14')}}),_0x24f77a[_0x45d6('0x19')](_0x45d6('0x30'))['to'](this[_0x45d6('0xc')],_0x45d6('0x24'),_0x43609a=>!_0x43609a),_0x24f77a[_0x45d6('0x19')](_0x45d6('0xf'))['to'](this['_model'],_0x45d6('0x37'),this['_model'],_0x45d6('0xa'),(_0x2ecb65,_0x155bfe)=>_0x2ecb65&&!_0x155bfe),_0x24f77a['on'](_0x45d6('0x21'),()=>{this[_0x45d6('0x13')](_0x45d6('0x2c'),this[_0x45d6('0xc')]['id']);}),_0x24f77a;}}
23
+ const _0x362f=['containerElement','ck-comment--resolve','ck-thread--remove-confirmation','commentsListView','icon','element','isVisible','actionIndicator','fire','isActive','high','label','commentThreadInputView','isSystemComment','execute','Delete\x20comment\x20thread?','change:isResolved','commentThreadHeaderView','resolveCommentThread','ck-thread--active','bindTemplate','locale','render','getTemplate','bind','addMany','unbind','listenTo','isConfirm','_createResolveButton','_boundFirstCommentView','change:isReadOnly','stop','add','change:isActive','_bindFirstCommentView','commentThreadChildren','showConfirm','length','get','extendTemplate','setTemplate','isResolved','_cancelAllConfirms','querySelector','Resolve','resolveButton','cancelConfirm','_model','remove','removeButton','ck-thread','check','ck-thread--','commentViews','div'];(function(_0x500fcb,_0x362fe5){const _0x3b1176=function(_0x428010){while(--_0x428010){_0x500fcb['push'](_0x500fcb['shift']());}};_0x3b1176(++_0x362fe5);}(_0x362f,0x1b4));const _0x3b11=function(_0x500fcb,_0x362fe5){_0x500fcb=_0x500fcb-0x0;let _0x3b1176=_0x362f[_0x500fcb];return _0x3b1176;};import{ConfirmMixin as _0x5e885a}from'ckeditor5-collaboration/src/collaboration-core';import{ButtonView as _0x5254b9}from'ckeditor5/src/ui';import{icons as _0x5cc11a}from'ckeditor5/src/core';import _0x1e74dd from'./basecommentthreadview';import{getTranslation as _0x194090}from'../../../utils/common-translations';export default class lt extends _0x5e885a(_0x1e74dd){constructor(_0x49d615,_0x3dab94,_0x162dc9,_0x4807ce){super(_0x49d615,_0x3dab94,_0x162dc9,_0x4807ce),this['commentThreadChildren']=this['createCollection'](),this['commentThreadChildren'][_0x3b11('0x25')]([this[_0x3b11('0xf')],this[_0x3b11('0x18')]]),this[_0x3b11('0x4')][_0x3b11('0x36')]&&this['commentThreadChildren'][_0x3b11('0x2d')](this['commentThreadHeaderView'],0x0),this['_model']['on'](_0x3b11('0x1c'),(_0x52a6de,_0x564098,_0x42e64d)=>{_0x42e64d?this[_0x3b11('0x30')]['add'](this[_0x3b11('0x1d')],0x0):this['commentThreadChildren'][_0x3b11('0x5')](this['commentThreadHeaderView']);}),this['set'](_0x3b11('0x13'),null),this[_0x3b11('0xc')]=null,this['_boundFirstCommentView']=null,this[_0x3b11('0x21')]=_0x49d615,this[_0x3b11('0x2')]=this[_0x3b11('0x29')](),this[_0x3b11('0x35')](this[_0x3b11('0x23')]()),this['on'](_0x3b11('0x2e'),(_0x3b6533,_0x2fc1da,_0xa2de87)=>{_0xa2de87||this[_0x3b11('0x37')]();}),this[_0x3b11('0x27')](this[_0x3b11('0x4')],_0x3b11('0x2b'),(_0x87b3fe,_0xbf476d,_0x15aee9)=>{_0x15aee9&&this[_0x3b11('0x37')]();}),this[_0x3b11('0x32')]>0x0&&this[_0x3b11('0x2f')](),this['listenTo'](this['commentsListView']['commentViews'],_0x3b11('0x2d'),()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x8ade5d=this[_0x3b11('0x20')];return{'tag':_0x3b11('0xb'),'attributes':{'class':[_0x3b11('0x7'),'ck-reset_all-excluded',_0x8ade5d['if'](_0x3b11('0x15'),_0x3b11('0x1f')),_0x8ade5d['if'](_0x3b11('0x28'),_0x3b11('0xe')),_0x8ade5d['to'](_0x3b11('0x13'),_0x3a43c2=>_0x3a43c2?_0x3b11('0x9')+_0x3a43c2:'')],'data-thread-id':this[_0x3b11('0x4')]['id'],'tabindex':-0x1},'children':[{'tag':_0x3b11('0xb'),'attributes':{'class':'ck-thread__container'},'children':this[_0x3b11('0x30')]}]};}['render'](){super[_0x3b11('0x22')](),this[_0x3b11('0xc')]=this[_0x3b11('0x11')][_0x3b11('0x0')]('.ck-thread__container');}[_0x3b11('0x37')](){this[_0x3b11('0x3')]();for(const _0x107588 of this['commentsListView'][_0x3b11('0xa')])_0x107588[_0x3b11('0x3')]();}['_bindFirstCommentView'](){const {locale:_0x1306ce}=this,_0x383a10=this[_0x3b11('0xf')][_0x3b11('0xa')][_0x3b11('0x33')](0x0);_0x383a10===this[_0x3b11('0x2a')]||_0x383a10[_0x3b11('0x19')]||(this[_0x3b11('0x2a')]=_0x383a10,this[_0x3b11('0x26')](_0x3b11('0x13')),this[_0x3b11('0x24')](_0x3b11('0x13'))['to'](_0x383a10,_0x3b11('0x13'),_0x57c4a0=>'remove'===_0x57c4a0?_0x3b11('0x5'):null),_0x383a10['placeholder']=_0x194090(_0x1306ce,'Write\x20a\x20comment...'),_0x383a10[_0x3b11('0x6')]['on'](_0x3b11('0x1a'),_0x2012c4=>{_0x2012c4[_0x3b11('0x2c')](),this[_0x3b11('0x31')](_0x194090(_0x1306ce,_0x3b11('0x1b')),this[_0x3b11('0xc')])['then'](()=>{this[_0x3b11('0x14')]('removeCommentThread');});},{'priority':_0x3b11('0x16')}),_0x383a10['actionBar'][_0x3b11('0x2d')](this[_0x3b11('0x2')],0x0));}['_createResolveButton'](){const _0x3513ed=new _0x5254b9(this[_0x3b11('0x21')]);return _0x3513ed[_0x3b11('0x17')]=_0x194090(this[_0x3b11('0x21')],_0x3b11('0x1')),_0x3513ed['tooltip']=_0x194090(this['locale'],_0x3b11('0x1')),_0x3513ed[_0x3b11('0x10')]=_0x5cc11a[_0x3b11('0x8')],_0x3513ed[_0x3b11('0x34')]({'attributes':{'class':_0x3b11('0xd')}}),_0x3513ed[_0x3b11('0x24')]('isEnabled')['to'](this[_0x3b11('0x4')],'isReadOnly',_0x22fc36=>!_0x22fc36),_0x3513ed['bind'](_0x3b11('0x12'))['to'](this[_0x3b11('0x4')],'isResolvable',this['_model'],_0x3b11('0x36'),(_0x795037,_0x4b1a88)=>_0x795037&&!_0x4b1a88),_0x3513ed['on']('execute',()=>{this[_0x3b11('0x14')](_0x3b11('0x1e'),this[_0x3b11('0x4')]['id']);}),_0x3513ed;}}