@ckeditor/ckeditor5-comments 37.0.1 → 38.0.0-rc.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 (157) hide show
  1. package/build/comments.js +2 -2
  2. package/build/translations/af.js +1 -1
  3. package/build/translations/ar.js +1 -1
  4. package/build/translations/bg.js +1 -1
  5. package/build/translations/bn.js +1 -1
  6. package/build/translations/bs.js +1 -1
  7. package/build/translations/ca.js +1 -1
  8. package/build/translations/cs.js +1 -1
  9. package/build/translations/da.js +1 -1
  10. package/build/translations/de-ch.js +1 -1
  11. package/build/translations/de.js +1 -1
  12. package/build/translations/el.js +1 -1
  13. package/build/translations/en-au.js +1 -1
  14. package/build/translations/es-co.js +1 -1
  15. package/build/translations/es.js +1 -1
  16. package/build/translations/et.js +1 -1
  17. package/build/translations/fa.js +1 -1
  18. package/build/translations/fi.js +1 -1
  19. package/build/translations/fr.js +1 -1
  20. package/build/translations/gl.js +1 -1
  21. package/build/translations/he.js +1 -1
  22. package/build/translations/hi.js +1 -1
  23. package/build/translations/hr.js +1 -1
  24. package/build/translations/hu.js +1 -1
  25. package/build/translations/id.js +1 -1
  26. package/build/translations/it.js +1 -1
  27. package/build/translations/ja.js +1 -1
  28. package/build/translations/jv.js +1 -1
  29. package/build/translations/ko.js +1 -1
  30. package/build/translations/lt.js +1 -1
  31. package/build/translations/lv.js +1 -1
  32. package/build/translations/ms.js +1 -1
  33. package/build/translations/nl.js +1 -1
  34. package/build/translations/no.js +1 -1
  35. package/build/translations/pl.js +1 -1
  36. package/build/translations/pt-br.js +1 -1
  37. package/build/translations/pt.js +1 -1
  38. package/build/translations/ro.js +1 -1
  39. package/build/translations/ru.js +1 -1
  40. package/build/translations/sk.js +1 -1
  41. package/build/translations/sr-latn.js +1 -1
  42. package/build/translations/sr.js +1 -1
  43. package/build/translations/sv.js +1 -1
  44. package/build/translations/th.js +1 -1
  45. package/build/translations/tk.js +1 -1
  46. package/build/translations/tr.js +1 -1
  47. package/build/translations/tt.js +1 -1
  48. package/build/translations/ug.js +1 -1
  49. package/build/translations/uk.js +1 -1
  50. package/build/translations/ur.js +1 -1
  51. package/build/translations/vi.js +1 -1
  52. package/build/translations/zh-cn.js +1 -1
  53. package/build/translations/zh.js +1 -1
  54. package/ckeditor5-metadata.json +5 -0
  55. package/lang/contexts.json +2 -2
  56. package/lang/translations/af.po +5 -5
  57. package/lang/translations/ar.po +5 -5
  58. package/lang/translations/bg.po +5 -5
  59. package/lang/translations/bn.po +5 -5
  60. package/lang/translations/bs.po +4 -4
  61. package/lang/translations/ca.po +5 -5
  62. package/lang/translations/cs.po +5 -5
  63. package/lang/translations/da.po +5 -5
  64. package/lang/translations/de-ch.po +5 -5
  65. package/lang/translations/de.po +5 -5
  66. package/lang/translations/el.po +5 -5
  67. package/lang/translations/en-au.po +16 -16
  68. package/lang/translations/en.po +4 -4
  69. package/lang/translations/es-co.po +5 -5
  70. package/lang/translations/es.po +5 -5
  71. package/lang/translations/et.po +5 -5
  72. package/lang/translations/fa.po +5 -5
  73. package/lang/translations/fi.po +5 -5
  74. package/lang/translations/fr.po +5 -5
  75. package/lang/translations/gl.po +5 -5
  76. package/lang/translations/he.po +5 -5
  77. package/lang/translations/hi.po +5 -5
  78. package/lang/translations/hr.po +16 -16
  79. package/lang/translations/hu.po +5 -5
  80. package/lang/translations/id.po +5 -5
  81. package/lang/translations/it.po +5 -5
  82. package/lang/translations/ja.po +5 -5
  83. package/lang/translations/jv.po +5 -5
  84. package/lang/translations/ko.po +5 -5
  85. package/lang/translations/lt.po +5 -5
  86. package/lang/translations/lv.po +5 -5
  87. package/lang/translations/ms.po +5 -5
  88. package/lang/translations/nl.po +5 -5
  89. package/lang/translations/no.po +5 -5
  90. package/lang/translations/pl.po +5 -5
  91. package/lang/translations/pt-br.po +5 -5
  92. package/lang/translations/pt.po +5 -5
  93. package/lang/translations/ro.po +5 -5
  94. package/lang/translations/ru.po +5 -5
  95. package/lang/translations/sk.po +5 -5
  96. package/lang/translations/sr-latn.po +12 -12
  97. package/lang/translations/sr.po +12 -12
  98. package/lang/translations/sv.po +5 -5
  99. package/lang/translations/th.po +5 -5
  100. package/lang/translations/tk.po +5 -5
  101. package/lang/translations/tr.po +5 -5
  102. package/lang/translations/tt.po +4 -4
  103. package/lang/translations/ug.po +5 -5
  104. package/lang/translations/uk.po +5 -5
  105. package/lang/translations/ur.po +5 -5
  106. package/lang/translations/vi.po +5 -5
  107. package/lang/translations/zh-cn.po +5 -5
  108. package/lang/translations/zh.po +5 -5
  109. package/package.json +3 -3
  110. package/src/annotations/annotation.js +1 -1
  111. package/src/annotations/annotationcollection.js +1 -1
  112. package/src/annotations/annotations.js +1 -1
  113. package/src/annotations/annotationsuis.js +1 -1
  114. package/src/annotations/editorannotations.js +1 -1
  115. package/src/annotations/inlineannotations.js +1 -1
  116. package/src/annotations/narrowsidebar.js +1 -1
  117. package/src/annotations/sidebar.js +1 -1
  118. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  119. package/src/annotations/view/annotationview.js +1 -1
  120. package/src/annotations/view/sidebaritemview.js +1 -1
  121. package/src/annotations/view/sidebarview.js +1 -1
  122. package/src/annotations/widesidebar.js +1 -1
  123. package/src/augmentation.d.ts +2 -8
  124. package/src/comments/addcommentthreadcommand.js +1 -1
  125. package/src/comments/commentsarchive.js +1 -1
  126. package/src/comments/commentsarchiveui.js +1 -1
  127. package/src/comments/commentsediting.js +1 -1
  128. package/src/comments/commentsrepository.d.ts +87 -12
  129. package/src/comments/commentsrepository.js +1 -1
  130. package/src/comments/commentsui.js +1 -1
  131. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  132. package/src/comments/integrations/importword.js +1 -1
  133. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  134. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  135. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  136. package/src/comments/ui/commentthreadcontroller.js +1 -1
  137. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  138. package/src/comments/ui/view/basecommentview.js +1 -1
  139. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  140. package/src/comments/ui/view/commentcontentview.js +1 -1
  141. package/src/comments/ui/view/commentinputview.d.ts +6 -0
  142. package/src/comments/ui/view/commentinputview.js +1 -1
  143. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  144. package/src/comments/ui/view/commentslistview.js +1 -1
  145. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  146. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  147. package/src/comments/ui/view/commentthreadview.d.ts +9 -4
  148. package/src/comments/ui/view/commentthreadview.js +1 -1
  149. package/src/comments/ui/view/commentview.d.ts +15 -7
  150. package/src/comments/ui/view/commentview.js +1 -1
  151. package/src/comments.js +1 -1
  152. package/src/commentsonly.js +1 -1
  153. package/src/utils/common-translations.js +1 -1
  154. package/src/utils/createmutationobserver.js +1 -1
  155. package/theme/comment.css +12 -3
  156. package/theme/commentinput.css +8 -6
  157. package/theme/commentsarchive.css +10 -2
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x107f=['_updatePlaceholder','document','init','childCount','createRoot','getRoot','editing','then','name','destroy','focus','change:placeholder','data','getChild','assign','initPlugins','initialData','model','ready','placeholderElement','change','view','placeholder','low','defaultPlugins','create','plugins'];(function(_0x1ce0e4,_0x107fb3){const _0x1a2baa=function(_0x51bf51){while(--_0x51bf51){_0x1ce0e4['push'](_0x1ce0e4['shift']());}};_0x1a2baa(++_0x107fb3);}(_0x107f,0xdd));const _0x1a2b=function(_0x1ce0e4,_0x107fb3){_0x1ce0e4=_0x1ce0e4-0x0;let _0x1a2baa=_0x107f[_0x1ce0e4];return _0x1a2baa;};import{Editor as _0x43a54b,DataApiMixin as _0x454764}from'ckeditor5/src/core';import _0x166910 from'./commenteditorui';import{ObservableMixin as _0x218b48}from'ckeditor5/src/utils';import{enablePlaceholder as _0xe9d5ab,disablePlaceholder as _0x2d2612}from'ckeditor5/src/engine';import{Clipboard as _0x61bd81}from'ckeditor5/src/clipboard';import{Enter as _0x459e72,ShiftEnter as _0x453858}from'ckeditor5/src/enter';import{SelectAll as _0x2bb9df}from'ckeditor5/src/select-all';import{Typing as _0x26c357}from'ckeditor5/src/typing';import{Undo as _0x58b8c7}from'ckeditor5/src/undo';import{Paragraph as _0x8afad3}from'ckeditor5/src/paragraph';const Jt=[_0x61bd81,_0x459e72,_0x453858,_0x2bb9df,_0x26c357,_0x58b8c7,_0x8afad3];export default class Kt extends _0x218b48(_0x454764(_0x43a54b)){constructor(_0x47b5b={}){(_0x47b5b=Object[_0x1a2b('0x9')]({},_0x47b5b))[_0x1a2b('0x15')]||(_0x47b5b['plugins']=Kt[_0x1a2b('0x13')]),super(_0x47b5b),this['ui']=new _0x166910(this),this['set'](_0x1a2b('0x11'),''),this[_0x1a2b('0xc')]['document']['on'](_0x1a2b('0xf'),()=>this[_0x1a2b('0x16')](),{'priority':_0x1a2b('0x12')}),this['on'](_0x1a2b('0x6'),()=>this[_0x1a2b('0x16')]()),this[_0x1a2b('0xc')]['document'][_0x1a2b('0x1a')]();}[_0x1a2b('0x14')](){const _0x4d0c36=this['config']['get'](_0x1a2b('0xb'))||'';return this[_0x1a2b('0xa')]()[_0x1a2b('0x2')](()=>this['ui'][_0x1a2b('0x18')]())['then'](()=>this[_0x1a2b('0x7')]['init'](_0x4d0c36))[_0x1a2b('0x2')](()=>this['fire'](_0x1a2b('0xd')));}[_0x1a2b('0x4')](){return super[_0x1a2b('0x4')]()['then'](()=>this['ui'][_0x1a2b('0x4')]());}[_0x1a2b('0x5')](){this[_0x1a2b('0xc')][_0x1a2b('0xf')](_0x46e428=>{const _0x423c5a=this['model'][_0x1a2b('0x17')][_0x1a2b('0x0')](),_0x13d056=_0x423c5a&&_0x423c5a[_0x1a2b('0x8')](_0x423c5a['childCount']-0x1);_0x46e428['setSelection'](_0x13d056,'end'),this[_0x1a2b('0x1')][_0x1a2b('0x10')]['focus']();});}[_0x1a2b('0x16')](){const _0x486d10=this['editing'][_0x1a2b('0x10')],_0x588fd1=_0x486d10[_0x1a2b('0x17')][_0x1a2b('0x0')](),_0x4eb05f=_0x588fd1[_0x1a2b('0x8')](0x0);_0x588fd1[_0x1a2b('0x19')]>0x1||!_0x4eb05f||'p'!=_0x4eb05f[_0x1a2b('0x3')]?this[_0x1a2b('0xe')]&&(_0x2d2612(_0x486d10,this[_0x1a2b('0xe')]),this[_0x1a2b('0xe')]=void 0x0):(_0xe9d5ab({'view':_0x486d10,'element':_0x4eb05f,'text':this['placeholder'],'keepOnFocus':!0x0}),this[_0x1a2b('0xe')]=_0x4eb05f);}}Kt[_0x1a2b('0x13')]=Jt;
23
+ const _0x58d2=['plugins','setSelection','view','create','set','defaultPlugins','getRoot','getChild','document','model','editing','get','placeholder','init','low','fire','placeholderElement','change','destroy','change:placeholder','config','then','focus','childCount','_updatePlaceholder','name'];(function(_0x1f74dd,_0x58d212){const _0xbcd984=function(_0x5d2074){while(--_0x5d2074){_0x1f74dd['push'](_0x1f74dd['shift']());}};_0xbcd984(++_0x58d212);}(_0x58d2,0xe8));const _0xbcd9=function(_0x1f74dd,_0x58d212){_0x1f74dd=_0x1f74dd-0x0;let _0xbcd984=_0x58d2[_0x1f74dd];return _0xbcd984;};import{Editor as _0x59bfb6,DataApiMixin as _0x425283}from'ckeditor5/src/core';import _0xe9a289 from'./commenteditorui';import{ObservableMixin as _0x3f13a8}from'ckeditor5/src/utils';import{enablePlaceholder as _0x3959f8,disablePlaceholder as _0x357fdb}from'ckeditor5/src/engine';import{Clipboard as _0x3e3ded}from'ckeditor5/src/clipboard';import{Enter as _0x1bf7ed,ShiftEnter as _0xde9352}from'ckeditor5/src/enter';import{SelectAll as _0x24f049}from'ckeditor5/src/select-all';import{Typing as _0x1b3702}from'ckeditor5/src/typing';import{Undo as _0x23295c}from'ckeditor5/src/undo';import{Paragraph as _0x344af8}from'ckeditor5/src/paragraph';const Mt=[_0x3e3ded,_0x1bf7ed,_0xde9352,_0x24f049,_0x1b3702,_0x23295c,_0x344af8];export default class Nt extends _0x3f13a8(_0x425283(_0x59bfb6)){constructor(_0x29cb2e={}){(_0x29cb2e=Object['assign']({},_0x29cb2e))[_0xbcd9('0x2')]||(_0x29cb2e[_0xbcd9('0x2')]=Nt[_0xbcd9('0x7')]),super(_0x29cb2e),this['ui']=new _0xe9a289(this),this[_0xbcd9('0x6')]('placeholder',''),this[_0xbcd9('0xb')][_0xbcd9('0xa')]['on'](_0xbcd9('0x13'),()=>this[_0xbcd9('0x0')](),{'priority':_0xbcd9('0x10')}),this['on'](_0xbcd9('0x15'),()=>this[_0xbcd9('0x0')]()),this[_0xbcd9('0xb')][_0xbcd9('0xa')]['createRoot']();}[_0xbcd9('0x5')](){const _0x57f9c8=this[_0xbcd9('0x16')][_0xbcd9('0xd')]('initialData')||'';return this['initPlugins']()[_0xbcd9('0x17')](()=>this['ui'][_0xbcd9('0xf')]())[_0xbcd9('0x17')](()=>this['data'][_0xbcd9('0xf')](_0x57f9c8))[_0xbcd9('0x17')](()=>this[_0xbcd9('0x11')]('ready'));}[_0xbcd9('0x14')](){return super[_0xbcd9('0x14')]()[_0xbcd9('0x17')](()=>this['ui'][_0xbcd9('0x14')]());}[_0xbcd9('0x18')](){this['model']['change'](_0x40c383=>{const _0x41c31c=this[_0xbcd9('0xb')][_0xbcd9('0xa')]['getRoot'](),_0x3540f7=_0x41c31c&&_0x41c31c['getChild'](_0x41c31c[_0xbcd9('0x19')]-0x1);_0x40c383[_0xbcd9('0x3')](_0x3540f7,'end'),this[_0xbcd9('0xc')][_0xbcd9('0x4')][_0xbcd9('0x18')]();});}[_0xbcd9('0x0')](){const _0x5cab86=this[_0xbcd9('0xc')][_0xbcd9('0x4')],_0xa3a522=_0x5cab86[_0xbcd9('0xa')][_0xbcd9('0x8')](),_0x46d3d2=_0xa3a522[_0xbcd9('0x9')](0x0);_0xa3a522['childCount']>0x1||!_0x46d3d2||'p'!=_0x46d3d2[_0xbcd9('0x1')]?this[_0xbcd9('0x12')]&&(_0x357fdb(_0x5cab86,this[_0xbcd9('0x12')]),this[_0xbcd9('0x12')]=void 0x0):(_0x3959f8({'view':_0x5cab86,'element':_0x46d3d2,'text':this[_0xbcd9('0xe')],'keepOnFocus':!0x0}),this[_0xbcd9('0x12')]=_0x46d3d2);}}Nt[_0xbcd9('0x7')]=Mt;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x12a7=['bind','element','ready','editor','destroy','editable','name','view','editing','focusTracker','init','render','getRoot','isFocused','attachDomRoot','locale'];(function(_0x2e6c54,_0x12a7e2){const _0x30b09d=function(_0x38d357){while(--_0x38d357){_0x2e6c54['push'](_0x2e6c54['shift']());}};_0x30b09d(++_0x12a7e2);}(_0x12a7,0x127));const _0x30b0=function(_0x2e6c54,_0x12a7e2){_0x2e6c54=_0x2e6c54-0x0;let _0x30b09d=_0x12a7[_0x2e6c54];return _0x30b09d;};import{EditorUI as _0xdbbae0}from'ckeditor5/src/ui';import _0xb5e92e from'./commenteditoruiview';export default class Dt extends _0xdbbae0{constructor(_0x17a622){super(_0x17a622),this[_0x30b0('0x0')]=new _0xb5e92e(_0x17a622[_0x30b0('0x8')],_0x17a622[_0x30b0('0x1')]['view']);}get['element'](){return this['view']['element'];}[_0x30b0('0x3')](){const _0x471961=this[_0x30b0('0xc')]['editing']['view'],_0x3c2819=this[_0x30b0('0x0')][_0x30b0('0xe')],_0x38a064=_0x471961['document'][_0x30b0('0x5')]();_0x3c2819[_0x30b0('0xf')]=_0x38a064['rootName'],this[_0x30b0('0x0')][_0x30b0('0x4')]();const _0x7d4daa=_0x3c2819[_0x30b0('0xa')];this['setEditableElement'](_0x3c2819['name'],_0x7d4daa),this[_0x30b0('0x0')][_0x30b0('0xe')][_0x30b0('0x9')](_0x30b0('0x6'))['to'](this[_0x30b0('0x2')]),_0x471961[_0x30b0('0x7')](_0x7d4daa),this['fire'](_0x30b0('0xb'));}['destroy'](){super[_0x30b0('0xd')](),this[_0x30b0('0x0')][_0x30b0('0xd')]();}}
23
+ const _0x57c7=['init','element','locale','editor','render','editable','isFocused','name','view','rootName','editing','ready','fire','destroy','focusTracker'];(function(_0x1bf9e6,_0x57c777){const _0x2601a5=function(_0x4f6f1c){while(--_0x4f6f1c){_0x1bf9e6['push'](_0x1bf9e6['shift']());}};_0x2601a5(++_0x57c777);}(_0x57c7,0xd9));const _0x2601=function(_0x1bf9e6,_0x57c777){_0x1bf9e6=_0x1bf9e6-0x0;let _0x2601a5=_0x57c7[_0x1bf9e6];return _0x2601a5;};import{EditorUI as _0xa564c7}from'ckeditor5/src/ui';import _0x233028 from'./commenteditoruiview';export default class Ft extends _0xa564c7{constructor(_0x4f8ab2){super(_0x4f8ab2),this[_0x2601('0x1')]=new _0x233028(_0x4f8ab2[_0x2601('0xa')],_0x4f8ab2[_0x2601('0x3')][_0x2601('0x1')]);}get[_0x2601('0x9')](){return this[_0x2601('0x1')][_0x2601('0x9')];}[_0x2601('0x8')](){const _0x4238d8=this[_0x2601('0xb')][_0x2601('0x3')][_0x2601('0x1')],_0x5093c6=this[_0x2601('0x1')][_0x2601('0xd')],_0x1a1628=_0x4238d8['document']['getRoot']();_0x5093c6[_0x2601('0x0')]=_0x1a1628[_0x2601('0x2')],this[_0x2601('0x1')][_0x2601('0xc')]();const _0x427202=_0x5093c6[_0x2601('0x9')];this['setEditableElement'](_0x5093c6[_0x2601('0x0')],_0x427202),this[_0x2601('0x1')][_0x2601('0xd')]['bind'](_0x2601('0xe'))['to'](this[_0x2601('0x7')]),_0x4238d8['attachDomRoot'](_0x427202),this[_0x2601('0x5')](_0x2601('0x4'));}['destroy'](){super[_0x2601('0x6')](),this[_0x2601('0x1')]['destroy']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x378d=['ck-editor','cke-editor__aria-label_','uiLanguage','presentation','main','_voiceLabelView','createCollection','ck-comment__input','add','Comment\x20editor','ck-voice-label','comment','uiLanguageDirection','_createVoiceLabel','element','ck-editor__aria-label_','div','extendTemplate','text','editable','render'];(function(_0x1ca84e,_0x378da9){const _0x48f702=function(_0x2ff4f4){while(--_0x2ff4f4){_0x1ca84e['push'](_0x1ca84e['shift']());}};_0x48f702(++_0x378da9);}(_0x378d,0xdc));const _0x48f7=function(_0x1ca84e,_0x378da9){_0x1ca84e=_0x1ca84e-0x0;let _0x48f702=_0x378d[_0x1ca84e];return _0x48f702;};import{InlineEditableUIView as _0x133360,EditorUIView as _0x2063df,LabelView as _0x3e7ca4}from'ckeditor5/src/ui';import{uid as _0x5f349c}from'ckeditor5/src/utils';import{getTranslation as _0x21ef88}from'../../../utils/common-translations';export default class Nt extends _0x2063df{constructor(_0x4d74d4,_0x5c2364){super(_0x4d74d4);const _0x4b6be3=_0x5f349c();this['main']=this[_0x48f7('0x11')](),this[_0x48f7('0x9')]=new _0x133360(_0x4d74d4,_0x5c2364),this['_voiceLabelView']=this[_0x48f7('0x3')](_0x4b6be3,_0x4d74d4),this['setTemplate']({'tag':_0x48f7('0x6'),'attributes':{'class':['ck-reset',_0x48f7('0xb'),'ck-rounded-corners',_0x48f7('0x12')],'role':_0x48f7('0x1'),'dir':_0x4d74d4[_0x48f7('0x2')],'lang':_0x4d74d4[_0x48f7('0xd')],'aria-labelledby':_0x48f7('0xc')+_0x4b6be3},'children':[this[_0x48f7('0x10')],{'tag':_0x48f7('0x6'),'attributes':{'class':'ck-editor__main','role':_0x48f7('0xe')},'children':this['main']}]});}[_0x48f7('0xa')](){super[_0x48f7('0xa')](),this[_0x48f7('0xf')][_0x48f7('0x13')](this[_0x48f7('0x9')]);}['focus'](){this[_0x48f7('0x9')][_0x48f7('0x4')]['focus']();}[_0x48f7('0x3')](_0x15888d,_0x46a061){const _0x4e0ca2=new _0x3e7ca4();return _0x4e0ca2[_0x48f7('0x8')]=_0x21ef88(_0x46a061,_0x48f7('0x14')),_0x4e0ca2[_0x48f7('0x7')]({'attributes':{'id':_0x48f7('0x5')+_0x15888d,'class':_0x48f7('0x0')}}),_0x4e0ca2;}}
23
+ const _0x5d40=['text','_voiceLabelView','Comment\x20editor','editable','ck-editor__main','presentation','element','ck-editor','setTemplate','cke-editor__aria-label_','main','div','add','_createVoiceLabel','ck-editor__aria-label_','uiLanguageDirection','extendTemplate','ck-rounded-corners','ck-voice-label','render','ck-comment__input','focus','createCollection'];(function(_0x24747a,_0x5d402b){const _0x58c0bd=function(_0x26f293){while(--_0x26f293){_0x24747a['push'](_0x24747a['shift']());}};_0x58c0bd(++_0x5d402b);}(_0x5d40,0xfd));const _0x58c0=function(_0x24747a,_0x5d402b){_0x24747a=_0x24747a-0x0;let _0x58c0bd=_0x5d40[_0x24747a];return _0x58c0bd;};import{InlineEditableUIView as _0x395ab7,EditorUIView as _0x183b2d,LabelView as _0x2e09b7}from'ckeditor5/src/ui';import{uid as _0x4e7364}from'ckeditor5/src/utils';import{getTranslation as _0x492af7}from'../../../utils/common-translations';export default class Rt extends _0x183b2d{constructor(_0x2d4cbf,_0x26fdc2){super(_0x2d4cbf);const _0x533469=_0x4e7364();this[_0x58c0('0xa')]=this[_0x58c0('0x16')](),this[_0x58c0('0x3')]=new _0x395ab7(_0x2d4cbf,_0x26fdc2),this[_0x58c0('0x1')]=this[_0x58c0('0xd')](_0x533469,_0x2d4cbf),this[_0x58c0('0x8')]({'tag':_0x58c0('0xb'),'attributes':{'class':['ck-reset',_0x58c0('0x7'),_0x58c0('0x11'),_0x58c0('0x14')],'role':'comment','dir':_0x2d4cbf[_0x58c0('0xf')],'lang':_0x2d4cbf['uiLanguage'],'aria-labelledby':_0x58c0('0x9')+_0x533469},'children':[this[_0x58c0('0x1')],{'tag':_0x58c0('0xb'),'attributes':{'class':_0x58c0('0x4'),'role':_0x58c0('0x5')},'children':this[_0x58c0('0xa')]}]});}[_0x58c0('0x13')](){super[_0x58c0('0x13')](),this[_0x58c0('0xa')][_0x58c0('0xc')](this[_0x58c0('0x3')]);}[_0x58c0('0x15')](){this[_0x58c0('0x3')][_0x58c0('0x6')][_0x58c0('0x15')]();}[_0x58c0('0xd')](_0x3c5c24,_0x5483d2){const _0x51dab0=new _0x2e09b7();return _0x51dab0[_0x58c0('0x0')]=_0x492af7(_0x5483d2,_0x58c0('0x2')),_0x51dab0[_0x58c0('0x10')]({'attributes':{'id':_0x58c0('0xe')+_0x3c5c24,'class':_0x58c0('0x12')}}),_0x51dab0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4506=['resolve','removeComment','reopenCommentThread','view','_isAttached','listenTo','model','submit','getComment','removeCommentThread','reopen','remove','updateComment','_localUser','addComment'];(function(_0x22f66b,_0x4506aa){var _0x2c75b7=function(_0x249fc9){while(--_0x249fc9){_0x22f66b['push'](_0x22f66b['shift']());}};_0x2c75b7(++_0x4506aa);}(_0x4506,0xf6));var _0x2c75=function(_0x22f66b,_0x4506aa){_0x22f66b=_0x22f66b-0x0;var _0x2c75b7=_0x4506[_0x22f66b];return _0x2c75b7;};import{ObservableMixin as _0x3009ce}from'ckeditor5/src/utils';export default class at extends _0x3009ce(){constructor(_0xc18c6c,_0x1175b2){super(),this[_0x2c75('0x0')]=_0xc18c6c,this['model'][_0x2c75('0xd')]=!0x0,this[_0x2c75('0xc')]=_0x1175b2,this['listenTo'](_0x1175b2,'submitCommentThread',()=>this['submit']()),this[_0x2c75('0xe')](_0x1175b2,_0x2c75('0x3'),()=>this[_0x2c75('0x5')]()),this['listenTo'](_0x1175b2,'resolveCommentThread',()=>this[_0x2c75('0x9')]()),this[_0x2c75('0xe')](_0x1175b2,_0x2c75('0xb'),()=>this[_0x2c75('0x4')]()),this[_0x2c75('0xe')](_0x1175b2,'addComment',(_0x1bfcf7,_0xdde879)=>this[_0x2c75('0x8')](_0xdde879)),this[_0x2c75('0xe')](_0x1175b2,_0x2c75('0x6'),(_0x226df0,_0x218c48,_0x524299)=>this[_0x2c75('0x6')](_0x218c48,_0x524299)),this[_0x2c75('0xe')](_0x1175b2,'removeComment',(_0x10afcf,_0x1ab1ba)=>this[_0x2c75('0xa')](_0x1ab1ba));}[_0x2c75('0x1')](){this[_0x2c75('0x0')][_0x2c75('0x1')]();}[_0x2c75('0x5')](){this[_0x2c75('0x0')]['remove']();}[_0x2c75('0x9')](){this[_0x2c75('0x0')]['isResolved']||this[_0x2c75('0x0')][_0x2c75('0x9')]();}[_0x2c75('0x4')](){this['model']['isResolved']&&this['model'][_0x2c75('0x4')]();}['addComment'](_0x928fdd){this[_0x2c75('0x0')]['addComment']({'content':_0x928fdd,'authorId':this[_0x2c75('0xc')][_0x2c75('0x7')]['id']});}[_0x2c75('0x6')](_0x25e3e8,_0x526d95){this[_0x2c75('0x0')][_0x2c75('0x2')](_0x25e3e8)['update']({'content':_0x526d95});}['removeComment'](_0x3398ee){this[_0x2c75('0x0')]['getComment'](_0x3398ee)[_0x2c75('0x5')]();}['destroy'](){this['stopListening'](),this[_0x2c75('0x0')][_0x2c75('0xd')]=!0x1;}}
23
+ var _0x1362=['getComment','update','stopListening','model','addComment','resolveCommentThread','reopenCommentThread','submit','reopen','remove','destroy','removeComment','isResolved','resolve','updateComment','_localUser','listenTo','view','submitCommentThread'];(function(_0x40191,_0x13620c){var _0x59d821=function(_0x313f57){while(--_0x313f57){_0x40191['push'](_0x40191['shift']());}};_0x59d821(++_0x13620c);}(_0x1362,0x65));var _0x59d8=function(_0x40191,_0x13620c){_0x40191=_0x40191-0x0;var _0x59d821=_0x1362[_0x40191];return _0x59d821;};import{ObservableMixin as _0x132c0a}from'ckeditor5/src/utils';export default class ct extends _0x132c0a(){constructor(_0x408ad0,_0xf2ef7f){super(),this[_0x59d8('0x10')]=_0x408ad0,this['model']['_isAttached']=!0x0,this[_0x59d8('0xb')]=_0xf2ef7f,this[_0x59d8('0xa')](_0xf2ef7f,_0x59d8('0xc'),()=>this[_0x59d8('0x1')]()),this[_0x59d8('0xa')](_0xf2ef7f,'removeCommentThread',()=>this[_0x59d8('0x3')]()),this[_0x59d8('0xa')](_0xf2ef7f,_0x59d8('0x12'),()=>this[_0x59d8('0x7')]()),this[_0x59d8('0xa')](_0xf2ef7f,_0x59d8('0x0'),()=>this[_0x59d8('0x2')]()),this[_0x59d8('0xa')](_0xf2ef7f,_0x59d8('0x11'),(_0x56bb66,_0x2237d7)=>this[_0x59d8('0x11')](_0x2237d7)),this['listenTo'](_0xf2ef7f,_0x59d8('0x8'),(_0x23be8e,_0x4629e1,_0x56c335)=>this['updateComment'](_0x4629e1,_0x56c335)),this[_0x59d8('0xa')](_0xf2ef7f,_0x59d8('0x5'),(_0x1c5cdd,_0x321fb0)=>this[_0x59d8('0x5')](_0x321fb0));}['submit'](){this[_0x59d8('0x10')][_0x59d8('0x1')]();}['remove'](){this[_0x59d8('0x10')][_0x59d8('0x3')]();}['resolve'](){this[_0x59d8('0x10')][_0x59d8('0x6')]||this[_0x59d8('0x10')][_0x59d8('0x7')]();}[_0x59d8('0x2')](){this[_0x59d8('0x10')][_0x59d8('0x6')]&&this[_0x59d8('0x10')]['reopen']();}[_0x59d8('0x11')](_0x36ba23){this[_0x59d8('0x10')]['addComment']({'content':_0x36ba23,'authorId':this[_0x59d8('0xb')][_0x59d8('0x9')]['id']});}[_0x59d8('0x8')](_0x373fb6,_0x10e074){this[_0x59d8('0x10')][_0x59d8('0xd')](_0x373fb6)[_0x59d8('0xe')]({'content':_0x10e074});}[_0x59d8('0x5')](_0x4077c6){this[_0x59d8('0x10')][_0x59d8('0xd')](_0x4077c6)['remove']();}[_0x59d8('0x4')](){this[_0x59d8('0xf')](),this[_0x59d8('0x10')]['_isAttached']=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a78=['showInput','submit','removeComment','destroy','removeCommentThread','change:isActive','commentThreadHeaderView','bind','isResolvable','isResolved','commentInputView','isDirty','isActive','commentThreadInputView','hasDirtyComment','element','_createCommentThreadInputView','_model','length','reopenCommentThread','isSubmitted','delegate','CommentView','cancel','updateComment','value','_localUser','locale','Reply...','commentsListView','resolvedAt','focus','assign','Write\x20a\x20comment...','addComment','_config','isReadOnly','placeholder','fire'];(function(_0x705aa,_0x4a7816){const _0x2cc726=function(_0x2c0b6e){while(--_0x2c0b6e){_0x705aa['push'](_0x705aa['shift']());}};_0x2cc726(++_0x4a7816);}(_0x4a78,0x65));const _0x2cc7=function(_0x705aa,_0x4a7816){_0x705aa=_0x705aa-0x0;let _0x2cc726=_0x4a78[_0x705aa];return _0x2cc726;};import{View as _0x1c1f78}from'ckeditor5/src/ui';import _0x26e078 from'./commentthreadinputview';import _0x2a51d6 from'./commentslistview';import _0xce4bf5 from'./commentthreadheaderview';import{getTranslation as _0x3e2601}from'../../../utils/common-translations';export default class Rt extends _0x1c1f78{constructor(_0x151d16,_0x11f49a,_0x43ef47,_0x4249c4){super(_0x151d16),this['set'](_0x2cc7('0x1c'),!0x1),this['set'](_0x2cc7('0x1b'),!0x1),this[_0x2cc7('0x21')]=_0x11f49a,this[_0x2cc7('0x3')]=_0x43ef47,this[_0x2cc7('0xc')]=_0x4249c4,this[_0x2cc7('0x16')]=new _0xce4bf5(_0x151d16,_0x11f49a),this[_0x2cc7('0x16')]['delegate'](_0x2cc7('0x23'))['to'](this),this[_0x2cc7('0x6')]=new _0x2a51d6(_0x151d16,_0x11f49a,Object[_0x2cc7('0x9')]({'CommentView':this['_config'][_0x2cc7('0x26')]},_0x4249c4)),this[_0x2cc7('0x6')][_0x2cc7('0x25')](_0x2cc7('0x12'))['to'](this),this[_0x2cc7('0x6')]['delegate'](_0x2cc7('0x1'))['to'](this),this['commentsListView'][_0x2cc7('0x25')]('resolveCommentThread')['to'](this),this[_0x2cc7('0x6')]['bind'](_0x2cc7('0x1c'))['to'](this),this['set'](_0x2cc7('0x22'),this[_0x2cc7('0x6')]['length']),this['bind']('length')['to'](this[_0x2cc7('0x6')],_0x2cc7('0x22')),this[_0x2cc7('0x1d')]=this[_0x2cc7('0x20')](),this['on']('removeComment',()=>this[_0x2cc7('0x8')]()),this[_0x2cc7('0x17')](_0x2cc7('0x1b'))['to'](this[_0x2cc7('0x6')],_0x2cc7('0x1e'),this[_0x2cc7('0x1d')][_0x2cc7('0x1a')],_0x2cc7('0x2'),(_0xec5aa0,_0x50114f)=>_0xec5aa0||!!_0x50114f);}[_0x2cc7('0x8')](){this[_0x2cc7('0x1f')][_0x2cc7('0x8')]();}[_0x2cc7('0x13')](){this['isDirty']=!0x1,this[_0x2cc7('0x6')][_0x2cc7('0x13')](),this[_0x2cc7('0x1d')][_0x2cc7('0x13')](),super[_0x2cc7('0x13')]();}[_0x2cc7('0x20')](){const _0x11c7f9=new _0x26e078(this[_0x2cc7('0x4')],this[_0x2cc7('0x3')],this['_config']['editorConfig']),_0x31f590=_0x11c7f9[_0x2cc7('0x1a')];return _0x11c7f9[_0x2cc7('0x17')](_0x2cc7('0x10'))['to'](this,_0x2cc7('0x1c'),this['_model'],_0x2cc7('0xd'),this[_0x2cc7('0x21')],_0x2cc7('0x18'),_0x31f590,_0x2cc7('0x2'),(_0x4fa2ee,_0x3e2113,_0x4405af,_0x59f678)=>!!_0x59f678||_0x4405af||_0x4fa2ee&&!_0x3e2113),_0x31f590[_0x2cc7('0x17')](_0x2cc7('0xe'))['to'](this,'length',this[_0x2cc7('0x21')],_0x2cc7('0x18'),this['_model'],_0x2cc7('0x7'),(_0x3ca6cc,_0x28bc5c,_0x3c1af0)=>{let _0x156829;return _0x156829=_0x3c1af0&&_0x28bc5c?'Reply\x20to\x20reopen\x20discussion...':_0x3ca6cc?_0x2cc7('0x5'):_0x2cc7('0xa'),_0x3e2601(this[_0x2cc7('0x4')],_0x156829);}),_0x31f590['on'](_0x2cc7('0x11'),(_0x144f33,_0x1054cb)=>{this[_0x2cc7('0xf')](_0x2cc7('0xb'),_0x1054cb),this[_0x2cc7('0x21')][_0x2cc7('0x19')]&&this[_0x2cc7('0x21')][_0x2cc7('0x18')]&&this[_0x2cc7('0xf')](_0x2cc7('0x23'),this[_0x2cc7('0x21')]['id']),this[_0x2cc7('0x21')][_0x2cc7('0x24')]||this[_0x2cc7('0xf')]('submitCommentThread');}),_0x31f590['on'](_0x2cc7('0x0'),()=>{this['focus']();}),_0x31f590[_0x2cc7('0x17')]('disabledSubmit')['to'](this[_0x2cc7('0x21')],_0x2cc7('0xd')),_0x31f590['on'](_0x2cc7('0x0'),_0x3a0f04=>{0x0==this[_0x2cc7('0x22')]&&(this[_0x2cc7('0xf')](_0x2cc7('0x14')),_0x3a0f04['stop']());}),this['on'](_0x2cc7('0x15'),(_0x5d2e21,_0x55140b,_0x1ce83)=>{_0x1ce83||this[_0x2cc7('0x22')]||_0x31f590[_0x2cc7('0x2')]||this['fire']('removeCommentThread');}),_0x11c7f9;}}
23
+ const _0x5d4b=['fire','Write\x20a\x20comment...','removeComment','submit','isSubmitted','delegate','isDirty','commentThreadInputView','editorConfig','resolveCommentThread','commentInputView','length','_localUser','isReadOnly','hasDirtyComment','Reply...','bind','assign','_model','addComment','disabledSubmit','removeCommentThread','commentsListView','Reply\x20to\x20reopen\x20discussion...','updateComment','isResolved','placeholder','cancel','stop','focus','destroy','_config','set','value','Reply','reopenCommentThread','locale','CommentView','isActive','element','_createCommentThreadInputView','showInput','isResolvable','Comment','commentThreadHeaderView'];(function(_0x588500,_0x5d4bed){const _0x592da8=function(_0x4874aa){while(--_0x4874aa){_0x588500['push'](_0x588500['shift']());}};_0x592da8(++_0x5d4bed);}(_0x5d4b,0x1d8));const _0x592d=function(_0x588500,_0x5d4bed){_0x588500=_0x588500-0x0;let _0x592da8=_0x5d4b[_0x588500];return _0x592da8;};import{View as _0x1d9915}from'ckeditor5/src/ui';import _0x1c2e19 from'./commentthreadinputview';import _0x5a2a95 from'./commentslistview';import _0x21f7b9 from'./commentthreadheaderview';import{getTranslation as _0x2c5bba}from'../../../utils/common-translations';export default class Wt extends _0x1d9915{constructor(_0xbf0a06,_0xa2b194,_0x557746,_0x452328){super(_0xbf0a06),this['set'](_0x592d('0x10'),!0x1),this['set']('isDirty',!0x1),this['_model']=_0xa2b194,this[_0x592d('0x23')]=_0x557746,this[_0x592d('0x9')]=_0x452328,this[_0x592d('0x16')]=new _0x21f7b9(_0xbf0a06,_0xa2b194),this[_0x592d('0x16')]['delegate'](_0x592d('0xd'))['to'](this),this[_0x592d('0x0')]=new _0x5a2a95(_0xbf0a06,_0xa2b194,Object[_0x592d('0x28')]({'CommentView':this[_0x592d('0x9')][_0x592d('0xf')]},_0x452328)),this[_0x592d('0x0')][_0x592d('0x1c')](_0x592d('0x19'))['to'](this),this[_0x592d('0x0')][_0x592d('0x1c')](_0x592d('0x2'))['to'](this),this['commentsListView'][_0x592d('0x1c')](_0x592d('0x20'))['to'](this),this['commentsListView'][_0x592d('0x27')](_0x592d('0x10'))['to'](this),this[_0x592d('0xa')](_0x592d('0x22'),this[_0x592d('0x0')][_0x592d('0x22')]),this[_0x592d('0x27')]('length')['to'](this[_0x592d('0x0')],_0x592d('0x22')),this[_0x592d('0x1e')]=this[_0x592d('0x12')](),this['on'](_0x592d('0x19'),()=>this['focus']()),this[_0x592d('0x27')](_0x592d('0x1d'))['to'](this[_0x592d('0x0')],_0x592d('0x25'),this['commentThreadInputView'][_0x592d('0x21')],_0x592d('0xb'),(_0x197d4d,_0x404c77)=>_0x197d4d||!!_0x404c77);}[_0x592d('0x7')](){this[_0x592d('0x11')][_0x592d('0x7')]();}[_0x592d('0x8')](){this[_0x592d('0x1d')]=!0x1,this[_0x592d('0x0')][_0x592d('0x8')](),this[_0x592d('0x1e')]['destroy'](),super[_0x592d('0x8')]();}['_createCommentThreadInputView'](){const _0x2fecf0=new _0x1c2e19(this[_0x592d('0xe')],this[_0x592d('0x23')],this[_0x592d('0x9')][_0x592d('0x1f')]),_0xaf37a=_0x2fecf0[_0x592d('0x21')];return _0x2fecf0[_0x592d('0x27')](_0x592d('0x13'))['to'](this,'isActive',this[_0x592d('0x29')],_0x592d('0x24'),this[_0x592d('0x29')],_0x592d('0x3'),_0xaf37a,_0x592d('0xb'),(_0x303302,_0x57b07c,_0x5a82ed,_0x11e4fa)=>!!_0x11e4fa||_0x5a82ed&&!_0x57b07c||_0x303302&&!_0x57b07c),_0xaf37a[_0x592d('0x27')](_0x592d('0x4'))['to'](this,'length',this[_0x592d('0x29')],_0x592d('0x14'),this[_0x592d('0x29')],'isResolved',(_0x394080,_0x3b52e1,_0x43ec88)=>{let _0x45b829;return _0x45b829=_0x43ec88&&_0x3b52e1?_0x592d('0x1'):_0x394080?_0x592d('0x26'):_0x592d('0x18'),_0x2c5bba(this[_0x592d('0xe')],_0x45b829);}),_0xaf37a[_0x592d('0x27')]('submitLabel')['to'](this,'length',_0x5e3c58=>_0x2c5bba(this[_0x592d('0xe')],_0x5e3c58?_0x592d('0xc'):_0x592d('0x15'))),_0xaf37a['on'](_0x592d('0x1a'),(_0x145286,_0x243875)=>{this[_0x592d('0x17')](_0x592d('0x2a'),_0x243875),this['_model'][_0x592d('0x3')]&&this['_model']['isResolvable']&&this['fire'](_0x592d('0xd'),this[_0x592d('0x29')]['id']),this[_0x592d('0x29')][_0x592d('0x1b')]||this[_0x592d('0x17')]('submitCommentThread');}),_0xaf37a['on'](_0x592d('0x5'),()=>{this[_0x592d('0x7')]();}),_0xaf37a['bind'](_0x592d('0x2b'))['to'](this['_model'],_0x592d('0x24')),_0xaf37a['on'](_0x592d('0x5'),_0x25250c=>{0x0==this[_0x592d('0x22')]&&(this[_0x592d('0x17')](_0x592d('0x2c')),_0x25250c[_0x592d('0x6')]());}),this['on']('change:isActive',(_0x58b3fc,_0x43b7ac,_0x5a4995)=>{_0x5a4995||this[_0x592d('0x22')]||_0xaf37a[_0x592d('0xb')]||this[_0x592d('0x17')](_0x592d('0x2c'));}),_0x2fecf0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4f17=['isCollapsed','value','_createCommentInputView','focus','switchToDisplayMode','_createCommentContentView','createEditor','_model','get','add','isReadOnly','expand','fire','remove','editorConfig','destroy','createCollection','disabledSubmit','locale','bind','once','isEditMode','set','content','isSystemComment','element','visibleView','updateComment','initialData','cancel','_config','collapse'];(function(_0x434665,_0x4f178c){const _0x2d4827=function(_0x1dd6a3){while(--_0x1dd6a3){_0x434665['push'](_0x434665['shift']());}};_0x2d4827(++_0x4f178c);}(_0x4f17,0x17e));const _0x2d48=function(_0x434665,_0x4f178c){_0x434665=_0x434665-0x0;let _0x2d4827=_0x4f17[_0x434665];return _0x2d4827;};import{View as _0x79f5dd}from'ckeditor5/src/ui';import{trimHtml as _0x1a5b7e}from'ckeditor5-collaboration/src/collaboration-core';import _0x190f88 from'./commentcontentview';import _0x4a59ba from'./commentinputview';export default class Xt extends _0x79f5dd{constructor(_0x1d685d,_0x1f75d5,_0x355c78){super(_0x1d685d),this[_0x2d48('0x9')]=_0x1f75d5,this[_0x2d48('0x0')]=_0x355c78,this['isSystemComment']=!!this['_config'][_0x2d48('0x1a')],this[_0x2d48('0x18')](_0x2d48('0x17'),!0x1),this[_0x2d48('0x18')]('isCollapsed',!0x0),this[_0x2d48('0x1c')]=this[_0x2d48('0x12')](),this[_0x2d48('0x1c')][_0x2d48('0xb')](this['_createCommentContentView']());}[_0x2d48('0xd')](){this[_0x2d48('0x2')]=!0x1;}[_0x2d48('0x1')](){this['isEditMode']||(this[_0x2d48('0x2')]=!0x0);}[_0x2d48('0x5')](){this[_0x2d48('0x1b')]['focus']();}async[_0x2d48('0x11')](){await this[_0x2d48('0x1c')][_0x2d48('0xa')](0x0)[_0x2d48('0x11')](),super['destroy']();}['switchToEditMode'](){this[_0x2d48('0x17')]||(this[_0x2d48('0x17')]=!0x0,this['visibleView'][_0x2d48('0xf')](0x0)['destroy'](),this[_0x2d48('0x1c')][_0x2d48('0xb')](this[_0x2d48('0x4')]()));}['switchToDisplayMode'](){this[_0x2d48('0x17')]&&(this[_0x2d48('0x17')]=!0x1,this[_0x2d48('0x1c')][_0x2d48('0xf')](0x0)['destroy'](),this[_0x2d48('0x1c')]['add'](this[_0x2d48('0x7')]()));}[_0x2d48('0x7')](){const _0x658b2c=new _0x190f88(this['locale']);return _0x658b2c[_0x2d48('0x15')](_0x2d48('0x19'))['to'](this[_0x2d48('0x9')],'content',this,_0x2d48('0x2'),(_0x301db7,_0x4c39f0)=>_0x4c39f0?_0x1a5b7e(_0x301db7,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x301db7),_0x658b2c;}[_0x2d48('0x4')](){this[_0x2d48('0x0')]['editorConfig']||(this[_0x2d48('0x0')]['editorConfig']={}),this[_0x2d48('0x0')]['editorConfig'][_0x2d48('0x1e')]=this[_0x2d48('0x9')][_0x2d48('0x19')];const _0x26851b=new _0x4a59ba(this[_0x2d48('0x14')],this[_0x2d48('0x0')][_0x2d48('0x10')]);return _0x26851b[_0x2d48('0x3')]=this[_0x2d48('0x9')]['content'],_0x26851b[_0x2d48('0x15')](_0x2d48('0x13'))['to'](this[_0x2d48('0x9')],_0x2d48('0xc')),_0x26851b['on']('submit',(_0x1b1e59,_0x2c703d)=>{this[_0x2d48('0xe')](_0x2d48('0x1d'),this[_0x2d48('0x9')]['id'],_0x2c703d),this[_0x2d48('0x6')](),this[_0x2d48('0x5')]();}),_0x26851b['on'](_0x2d48('0x1f'),()=>{this['switchToDisplayMode'](),this[_0x2d48('0x5')]();}),_0x26851b[_0x2d48('0x16')]('editorReady',()=>{_0x26851b[_0x2d48('0x5')]();}),_0x26851b[_0x2d48('0x8')](),_0x26851b;}}
23
+ const _0x4c4d=['once','destroy','isEditMode','submitLabel','isReadOnly','_model','maxCommentCharsWhenCollapsed','disabledSubmit','locale','expand','switchToDisplayMode','isCollapsed','element','visibleView','editorReady','get','Save','remove','cancel','_createCommentContentView','initialData','editorConfig','updateComment','createCollection','bind','_createCommentInputView','set','content','add','_config','value','isSystemComment','focus','collapse'];(function(_0x7a7974,_0x4c4d6b){const _0x53c561=function(_0x5b6b88){while(--_0x5b6b88){_0x7a7974['push'](_0x7a7974['shift']());}};_0x53c561(++_0x4c4d6b);}(_0x4c4d,0x84));const _0x53c5=function(_0x7a7974,_0x4c4d6b){_0x7a7974=_0x7a7974-0x0;let _0x53c561=_0x4c4d[_0x7a7974];return _0x53c561;};import{View as _0x1a2a30}from'ckeditor5/src/ui';import{trimHtml as _0x123a21}from'ckeditor5-collaboration/src/collaboration-core';import _0x106235 from'./commentcontentview';import _0x1d714c from'./commentinputview';import{getTranslation as _0x4c0933}from'../../../utils/common-translations';export default class Zt extends _0x1a2a30{constructor(_0x31a0a9,_0x23822c,_0x4cf025){super(_0x31a0a9),this['_model']=_0x23822c,this[_0x53c5('0x21')]=_0x4cf025,this['isSystemComment']=!!this[_0x53c5('0x21')][_0x53c5('0x1')],this[_0x53c5('0x1e')](_0x53c5('0x6'),!0x1),this[_0x53c5('0x1e')](_0x53c5('0xf'),!0x0),this['visibleView']=this[_0x53c5('0x1b')](),this[_0x53c5('0x11')][_0x53c5('0x20')](this['_createCommentContentView']());}[_0x53c5('0xd')](){this[_0x53c5('0xf')]=!0x1;}[_0x53c5('0x3')](){this[_0x53c5('0x6')]||(this[_0x53c5('0xf')]=!0x0);}[_0x53c5('0x2')](){this[_0x53c5('0x10')][_0x53c5('0x2')]();}async[_0x53c5('0x5')](){await this[_0x53c5('0x11')][_0x53c5('0x13')](0x0)['destroy'](),super[_0x53c5('0x5')]();}['switchToEditMode'](){this[_0x53c5('0x6')]||(this[_0x53c5('0x6')]=!0x0,this['visibleView'][_0x53c5('0x15')](0x0)[_0x53c5('0x5')](),this[_0x53c5('0x11')][_0x53c5('0x20')](this[_0x53c5('0x1d')]()));}[_0x53c5('0xe')](){this['isEditMode']&&(this[_0x53c5('0x6')]=!0x1,this['visibleView'][_0x53c5('0x15')](0x0)[_0x53c5('0x5')](),this[_0x53c5('0x11')]['add'](this[_0x53c5('0x17')]()));}['_createCommentContentView'](){const _0x59aa5b=new _0x106235(this[_0x53c5('0xc')]);return _0x59aa5b['bind'](_0x53c5('0x1f'))['to'](this['_model'],_0x53c5('0x1f'),this,_0x53c5('0xf'),(_0x10e50a,_0x142ba8)=>_0x142ba8?_0x123a21(_0x10e50a,{'limit':this[_0x53c5('0x21')][_0x53c5('0xa')]}):_0x10e50a),_0x59aa5b;}[_0x53c5('0x1d')](){this[_0x53c5('0x21')][_0x53c5('0x19')]||(this[_0x53c5('0x21')]['editorConfig']={}),this[_0x53c5('0x21')]['editorConfig'][_0x53c5('0x18')]=this[_0x53c5('0x9')][_0x53c5('0x1f')];const _0x152071=new _0x1d714c(this[_0x53c5('0xc')],this['_config']['editorConfig']);return _0x152071[_0x53c5('0x0')]=this[_0x53c5('0x9')][_0x53c5('0x1f')],_0x152071[_0x53c5('0x1c')](_0x53c5('0xb'))['to'](this[_0x53c5('0x9')],_0x53c5('0x8')),_0x152071[_0x53c5('0x7')]=_0x4c0933(this[_0x53c5('0xc')],_0x53c5('0x14')),_0x152071['on']('submit',(_0x32643d,_0x51b20f)=>{this['fire'](_0x53c5('0x1a'),this[_0x53c5('0x9')]['id'],_0x51b20f),this[_0x53c5('0xe')](),this['focus']();}),_0x152071['on'](_0x53c5('0x16'),()=>{this[_0x53c5('0xe')](),this[_0x53c5('0x2')]();}),_0x152071[_0x53c5('0x4')](_0x53c5('0x12'),()=>{_0x152071[_0x53c5('0x2')]();}),_0x152071['createEditor'](),_0x152071;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4d98=['set','count','setTemplate','bindTemplate','NUMBER_OF_COMMENTS'];(function(_0x44030b,_0x4d984b){const _0x34563b=function(_0x224b9a){while(--_0x224b9a){_0x44030b['push'](_0x44030b['shift']());}};_0x34563b(++_0x4d984b);}(_0x4d98,0x181));const _0x3456=function(_0x44030b,_0x4d984b){_0x44030b=_0x44030b-0x0;let _0x34563b=_0x4d98[_0x44030b];return _0x34563b;};import{View as _0x5416b9}from'ckeditor5/src/ui';import{getTranslation as _0xc3b08d}from'../../../utils/common-translations';export default class Yt extends _0x5416b9{constructor(_0x17603f){super(_0x17603f);const _0x59a561=this[_0x3456('0x3')];this[_0x3456('0x0')](_0x3456('0x1'),void 0x0),this[_0x3456('0x2')]({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x59a561['to']('count',_0x4c9653=>_0xc3b08d(_0x17603f,_0x3456('0x4'),_0x4c9653))}]});}}
23
+ const _0x2775=['count','NUMBER_OF_COMMENTS','bindTemplate','setTemplate'];(function(_0x2822b0,_0x2775bd){const _0x568e14=function(_0x51bc94){while(--_0x51bc94){_0x2822b0['push'](_0x2822b0['shift']());}};_0x568e14(++_0x2775bd);}(_0x2775,0x10c));const _0x568e=function(_0x2822b0,_0x2775bd){_0x2822b0=_0x2822b0-0x0;let _0x568e14=_0x2775[_0x2822b0];return _0x568e14;};import{View as _0x52a38a}from'ckeditor5/src/ui';import{getTranslation as _0x16d259}from'../../../utils/common-translations';export default class to extends _0x52a38a{constructor(_0x1b3d27){super(_0x1b3d27);const _0x4324b6=this[_0x568e('0x2')];this['set']('count',void 0x0),this[_0x568e('0x3')]({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x4324b6['to'](_0x568e('0x0'),_0x5af161=>_0x16d259(_0x1b3d27,_0x568e('0x1'),_0x5af161))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4701=['content','element','innerHTML','div','set','render','ck-comment__content','ck-annotation__content','setTemplate'];(function(_0x2007be,_0x470180){var _0x1db578=function(_0x7ab76d){while(--_0x7ab76d){_0x2007be['push'](_0x2007be['shift']());}};_0x1db578(++_0x470180);}(_0x4701,0xea));var _0x1db5=function(_0x2007be,_0x470180){_0x2007be=_0x2007be-0x0;var _0x1db578=_0x4701[_0x2007be];return _0x1db578;};import{View as _0x3ea096}from'ckeditor5/src/ui';export default class Ut extends _0x3ea096{constructor(_0x23f8fa){super(_0x23f8fa),this[_0x1db5('0x4')](_0x1db5('0x0'),''),this[_0x1db5('0x8')]({'tag':_0x1db5('0x3'),'attributes':{'class':[_0x1db5('0x6'),_0x1db5('0x7')]}});}[_0x1db5('0x5')](){super[_0x1db5('0x5')](),this['on']('change:content',(_0x159972,_0xeacece,_0x25cd25)=>{this[_0x1db5('0x1')][_0x1db5('0x2')]=_0x25cd25;}),this['element'][_0x1db5('0x2')]=this[_0x1db5('0x0')];}}
23
+ var _0x2833=['innerHTML','render','element','content','ck-annotation__content','set'];(function(_0x51aea9,_0x283304){var _0x5ef317=function(_0xaf4ba4){while(--_0xaf4ba4){_0x51aea9['push'](_0x51aea9['shift']());}};_0x5ef317(++_0x283304);}(_0x2833,0x1bb));var _0x5ef3=function(_0x51aea9,_0x283304){_0x51aea9=_0x51aea9-0x0;var _0x5ef317=_0x2833[_0x51aea9];return _0x5ef317;};import{View as _0x552ad2}from'ckeditor5/src/ui';export default class Xt extends _0x552ad2{constructor(_0x33bfe9){super(_0x33bfe9),this[_0x5ef3('0x0')](_0x5ef3('0x4'),''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__content',_0x5ef3('0x5')]}});}[_0x5ef3('0x2')](){super[_0x5ef3('0x2')](),this['on']('change:content',(_0x863789,_0xee5e03,_0x3fdce2)=>{this[_0x5ef3('0x3')]['innerHTML']=_0x3fdce2;}),this[_0x5ef3('0x3')][_0x5ef3('0x1')]=this[_0x5ef3('0x4')];}}
@@ -37,6 +37,12 @@ export default class CommentInputView extends View {
37
37
  * @observable
38
38
  */
39
39
  placeholder: string;
40
+ /**
41
+ * The submit button label.
42
+ *
43
+ * @observable
44
+ */
45
+ submitLabel: string;
40
46
  element: HTMLElement;
41
47
  /**
42
48
  * Keystroke handler for the view.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x19b1=['focusPrevious','TOO_LONG_COMMENT_ALERT','Submit','focus','ck-comment__input-actions','ck-comment__input-actions--submit','showButtons','focusTracker','fire','ck-comment__input-actions--active','_isDestroyed','Esc','execute','ck-comment__input-wrapper','disabledSubmit','submitButtonView','setTemplate','cancelButtonView','_createSubmitButton','check','low','length','keystrokes','editor','trim','extendTemplate','add','_createCancelButton','render','submit','placeholder','_editorCreationPromise','shift\x20+\x20tab','insertBefore','cancel','change','setData','value','model','set','high','then','stop','bind','create','element','forEach','_initializeFocusCycling','icon','ck-comment__input-actions--cancel','initialData','_editorConfig','label','div','document','tab'];(function(_0x2f4fe2,_0x19b1a7){const _0x5991fc=function(_0x1bc180){while(--_0x1bc180){_0x2f4fe2['push'](_0x2f4fe2['shift']());}};_0x5991fc(++_0x19b1a7);}(_0x19b1,0x12a));const _0x5991=function(_0x2f4fe2,_0x19b1a7){_0x2f4fe2=_0x2f4fe2-0x0;let _0x5991fc=_0x19b1[_0x2f4fe2];return _0x5991fc;};import{View as _0x237b29,ViewCollection as _0x577994,FocusCycler as _0x3dfce8,ButtonView as _0x3ccda9}from'ckeditor5/src/ui';import{FocusTracker as _0x349f51,KeystrokeHandler as _0x27b20a}from'ckeditor5/src/utils';import{icons as _0x5044f2}from'ckeditor5/src/core';import _0x1187ec from'../commenteditor/commenteditor';import{getTranslation as _0x44d07f}from'../../../utils/common-translations';export default class Wt extends _0x237b29{constructor(_0x14b3e2,_0x4c622a={}){super(_0x14b3e2),this['editor']=null,this['_editorConfig']=_0x4c622a,this[_0x5991('0x4')]=new _0x27b20a(),this[_0x5991('0x2d')]=new _0x349f51(),this['set'](_0x5991('0x13'),_0x4c622a[_0x5991('0x20')]||''),this[_0x5991('0x15')](_0x5991('0x34'),!0x1),this[_0x5991('0x15')](_0x5991('0x2c'),!0x0),this[_0x5991('0x15')](_0x5991('0xc'),_0x44d07f(_0x14b3e2,'Reply...')),this[_0x5991('0x35')]=this['_createSubmitButton'](),this[_0x5991('0x37')]=this[_0x5991('0x9')](),this[_0x5991('0x36')]({'tag':_0x5991('0x23'),'attributes':{'class':[_0x5991('0x33')]},'children':[{'tag':'div','attributes':{'class':[_0x5991('0x2a'),this['bindTemplate']['if']('showButtons',_0x5991('0x2f'))]},'children':[this[_0x5991('0x35')],this[_0x5991('0x37')]]}]}),this[_0x5991('0x4')][_0x5991('0x15')](_0x5991('0x31'),(_0x2ea80b,_0x458086)=>{this[_0x5991('0x37')][_0x5991('0x2e')](_0x5991('0x32')),_0x458086();}),this['on']('submit',(_0x2a642f,_0x14b760)=>{_0x14b760[_0x5991('0x3')]>0xfde8?(alert(_0x44d07f(_0x14b3e2,_0x5991('0x27'),[_0x14b760[_0x5991('0x3')],0xfde8])),_0x2a642f[_0x5991('0x18')]()):this[_0x5991('0x5')][_0x5991('0x12')]('');},{'priority':_0x5991('0x16')});}[_0x5991('0xa')](){super[_0x5991('0xa')](),this[_0x5991('0x4')]['listenTo'](this[_0x5991('0x1b')]),this['focusTracker'][_0x5991('0x8')](this[_0x5991('0x1b')]);}['createEditor'](){return this[_0x5991('0x5')]||(this['editor']=new _0x1187ec(this[_0x5991('0x21')]),this[_0x5991('0xd')]=this[_0x5991('0x5')][_0x5991('0x1a')]()[_0x5991('0x17')](()=>{if(this[_0x5991('0x30')])return;const _0x254d23=this[_0x5991('0x5')];this[_0x5991('0x1b')][_0x5991('0xf')](_0x254d23['ui'][_0x5991('0x1b')],this[_0x5991('0x1b')]['firstChild']),_0x254d23[_0x5991('0x14')][_0x5991('0x24')]['on'](_0x5991('0x11'),()=>this['value']=_0x254d23['getData']()),_0x254d23[_0x5991('0x19')](_0x5991('0xc'))['to'](this),this[_0x5991('0x1d')](this[_0x5991('0x5')]),this[_0x5991('0x2e')]('editorReady');})),this[_0x5991('0xd')];}[_0x5991('0x29')](){this[_0x5991('0x5')]&&this[_0x5991('0x5')][_0x5991('0x29')]();}async['destroy'](){this[_0x5991('0x30')]||(this[_0x5991('0x30')]=!0x0,this['editor']&&(await this['_editorCreationPromise'],await this['editor']['destroy']()),await super['destroy']());}[_0x5991('0x0')](){const {locale:_0x419165}=this,_0x1f9003=new _0x3ccda9(_0x419165);return _0x1f9003['extendTemplate']({'attributes':{'class':[_0x5991('0x2b')]}}),_0x1f9003[_0x5991('0x22')]=_0x44d07f(_0x419165,_0x5991('0x28')),_0x1f9003[_0x5991('0x1e')]=_0x5044f2[_0x5991('0x1')],_0x1f9003['on'](_0x5991('0x32'),()=>{this['fire'](_0x5991('0xb'),this[_0x5991('0x13')]);}),_0x1f9003[_0x5991('0x19')]('isEnabled')['to'](this,_0x5991('0x13'),this,'disabledSubmit',(_0x479874,_0x13dbda)=>!_0x13dbda&&!!_0x479874[_0x5991('0x6')]()),_0x1f9003;}[_0x5991('0x9')](){const {locale:_0x405a68}=this,_0x5f19a1=new _0x3ccda9(_0x405a68);return _0x5f19a1[_0x5991('0x7')]({'attributes':{'class':[_0x5991('0x1f')]}}),_0x5f19a1['label']=_0x44d07f(_0x405a68,'Cancel'),_0x5f19a1[_0x5991('0x1e')]=_0x5044f2['cancel'],_0x5f19a1['on']('execute',()=>{this[_0x5991('0x5')][_0x5991('0x12')](''),this[_0x5991('0x2e')](_0x5991('0x10'));}),_0x5f19a1;}[_0x5991('0x1d')](_0x13a912){const _0x4da1a4=this[_0x5991('0x2d')],_0x2a89ae=new _0x577994();[_0x13a912['ui']['view'],this['submitButtonView'],this[_0x5991('0x37')]][_0x5991('0x1c')](_0x2e2435=>{_0x2a89ae[_0x5991('0x8')](_0x2e2435),_0x4da1a4[_0x5991('0x8')](_0x2e2435[_0x5991('0x1b')]);});const _0x4e86f4=new _0x3dfce8({'focusables':_0x2a89ae,'focusTracker':_0x4da1a4});this[_0x5991('0x4')]['set'](_0x5991('0x25'),(_0x8534ad,_0x16e327)=>{_0x4e86f4['focusNext'](),_0x16e327();},{'priority':_0x5991('0x2')}),this[_0x5991('0x4')][_0x5991('0x15')](_0x5991('0xe'),(_0x308a53,_0x496100)=>{_0x4e86f4[_0x5991('0x26')](),_0x496100();},{'priority':_0x5991('0x2')});}}
23
+ const _0x27ba=['submitLabel','_isDestroyed','forEach','TOO_LONG_COMMENT_ALERT','fire','_editorCreationPromise','withText','bindTemplate','length','initialData','_initializeFocusCycling','placeholder','add','listenTo','insertBefore','high','ck-comment__input-actions','create','submit','element','extendTemplate','focusNext','editorReady','shift\x20+\x20tab','document','ck-comment__input-actions--active','Esc','render','set','ck-comment__input-actions--submit','Reply','_editorConfig','focus','low','then','change','showButtons','trim','submitButtonView','_createSubmitButton','setData','stop','disabledSubmit','view','setTemplate','value','_createCancelButton','ck-comment__input-actions--cancel','div','destroy','bind','execute','firstChild','getData','isEnabled','focusTracker','editor','Cancel','keystrokes','cancelButtonView'];(function(_0x5a3b15,_0x27bae3){const _0x3f33e3=function(_0x3e4f60){while(--_0x3e4f60){_0x5a3b15['push'](_0x5a3b15['shift']());}};_0x3f33e3(++_0x27bae3);}(_0x27ba,0x1df));const _0x3f33=function(_0x5a3b15,_0x27bae3){_0x5a3b15=_0x5a3b15-0x0;let _0x3f33e3=_0x27ba[_0x5a3b15];return _0x3f33e3;};import{View as _0x184ac1,ViewCollection as _0x2b576f,FocusCycler as _0x530cf2,ButtonView as _0x18dbfe}from'ckeditor5/src/ui';import{FocusTracker as _0x12f937,KeystrokeHandler as _0xd41f1e}from'ckeditor5/src/utils';import _0xb98df5 from'../commenteditor/commenteditor';import{getTranslation as _0x2f73ab}from'../../../utils/common-translations';export default class Yt extends _0x184ac1{constructor(_0xe4089f,_0x140c1c={}){super(_0xe4089f),this[_0x3f33('0x39')]=null,this[_0x3f33('0x20')]=_0x140c1c,this[_0x3f33('0x3b')]=new _0xd41f1e(),this[_0x3f33('0x38')]=new _0x12f937(),this[_0x3f33('0x1d')](_0x3f33('0x2e'),_0x140c1c[_0x3f33('0xa')]||''),this[_0x3f33('0x1d')]('disabledSubmit',!0x1),this[_0x3f33('0x1d')](_0x3f33('0x25'),!0x0),this['set'](_0x3f33('0xc'),_0x2f73ab(_0xe4089f,'Reply...')),this['set']('submitLabel',_0x2f73ab(_0xe4089f,_0x3f33('0x1f'))),this[_0x3f33('0x27')]=this['_createSubmitButton'](),this[_0x3f33('0x0')]=this[_0x3f33('0x2f')](),this[_0x3f33('0x2d')]({'tag':_0x3f33('0x31'),'attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':_0x3f33('0x31'),'attributes':{'class':[_0x3f33('0x11'),this[_0x3f33('0x8')]['if'](_0x3f33('0x25'),_0x3f33('0x1a'))]},'children':[this['submitButtonView'],this[_0x3f33('0x0')]]}]}),this[_0x3f33('0x3b')][_0x3f33('0x1d')](_0x3f33('0x1b'),(_0x5c72d8,_0x1f3c8b)=>{this[_0x3f33('0x0')]['fire'](_0x3f33('0x34')),_0x1f3c8b();}),this['on'](_0x3f33('0x13'),(_0x3edacd,_0x20123a)=>{_0x20123a[_0x3f33('0x9')]>0xfde8?(alert(_0x2f73ab(_0xe4089f,_0x3f33('0x4'),[_0x20123a[_0x3f33('0x9')],0xfde8])),_0x3edacd[_0x3f33('0x2a')]()):this['editor'][_0x3f33('0x29')]('');},{'priority':_0x3f33('0x10')});}['render'](){super[_0x3f33('0x1c')](),this[_0x3f33('0x3b')][_0x3f33('0xe')](this[_0x3f33('0x14')]),this[_0x3f33('0x38')][_0x3f33('0xd')](this['element']);}['createEditor'](){return this['editor']||(this[_0x3f33('0x39')]=new _0xb98df5(this['_editorConfig']),this[_0x3f33('0x6')]=this[_0x3f33('0x39')][_0x3f33('0x12')]()[_0x3f33('0x23')](()=>{if(this['_isDestroyed'])return;const _0x577658=this[_0x3f33('0x39')];this['element'][_0x3f33('0xf')](_0x577658['ui'][_0x3f33('0x14')],this['element'][_0x3f33('0x35')]),_0x577658['model'][_0x3f33('0x19')]['on'](_0x3f33('0x24'),()=>this['value']=_0x577658[_0x3f33('0x36')]()),_0x577658[_0x3f33('0x33')]('placeholder')['to'](this),this[_0x3f33('0xb')](this[_0x3f33('0x39')]),this['fire'](_0x3f33('0x17'));})),this[_0x3f33('0x6')];}['focus'](){this['editor']&&this[_0x3f33('0x39')][_0x3f33('0x21')]();}async[_0x3f33('0x32')](){this[_0x3f33('0x2')]||(this[_0x3f33('0x2')]=!0x0,this[_0x3f33('0x39')]&&(await this['_editorCreationPromise'],await this[_0x3f33('0x39')][_0x3f33('0x32')]()),await super[_0x3f33('0x32')]());}[_0x3f33('0x28')](){const {locale:_0x5e89b9}=this,_0x279937=new _0x18dbfe(_0x5e89b9);return _0x279937[_0x3f33('0x15')]({'attributes':{'class':[_0x3f33('0x1e')]}}),_0x279937[_0x3f33('0x7')]=!0x0,_0x279937[_0x3f33('0x33')]('label')['to'](this,_0x3f33('0x1')),_0x279937['on'](_0x3f33('0x34'),()=>{this['fire']('submit',this[_0x3f33('0x2e')]);}),_0x279937[_0x3f33('0x33')](_0x3f33('0x37'))['to'](this,_0x3f33('0x2e'),this,_0x3f33('0x2b'),(_0xc51836,_0x103584)=>!_0x103584&&!!_0xc51836[_0x3f33('0x26')]()),_0x279937;}[_0x3f33('0x2f')](){const {locale:_0x1bac5e}=this,_0x145446=new _0x18dbfe(_0x1bac5e);return _0x145446['extendTemplate']({'attributes':{'class':[_0x3f33('0x30')]}}),_0x145446['label']=_0x2f73ab(_0x1bac5e,_0x3f33('0x3a')),_0x145446[_0x3f33('0x7')]=!0x0,_0x145446['on'](_0x3f33('0x34'),()=>{this['editor'][_0x3f33('0x29')](''),this[_0x3f33('0x5')]('cancel');}),_0x145446;}[_0x3f33('0xb')](_0x1b85b4){const _0xc14c37=this[_0x3f33('0x38')],_0x1fe51d=new _0x2b576f();[_0x1b85b4['ui'][_0x3f33('0x2c')],this[_0x3f33('0x27')],this[_0x3f33('0x0')]][_0x3f33('0x3')](_0x214c77=>{_0x1fe51d['add'](_0x214c77),_0xc14c37[_0x3f33('0xd')](_0x214c77['element']);});const _0x513d0e=new _0x530cf2({'focusables':_0x1fe51d,'focusTracker':_0xc14c37});this[_0x3f33('0x3b')][_0x3f33('0x1d')]('tab',(_0x499f43,_0x2c470b)=>{_0x513d0e[_0x3f33('0x16')](),_0x2c470b();},{'priority':_0x3f33('0x22')}),this['keystrokes'][_0x3f33('0x1d')](_0x3f33('0x18'),(_0x53e0be,_0x3cf37a)=>{_0x513d0e['focusPrevious'](),_0x3cf37a();},{'priority':_0x3f33('0x22')});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xef91=['stopPropagation','add','ck-comments-archive__info','EMPTY_COMMENTS_ARCHIVE','auto','element','ck-comments-archive__content','ck-comments-archive','_focusTracker','div','arrowup','isActive','render','remove','setTemplate','focus','bindTemplate','tab','set','destroy','ck-comments-archive__header\x20','_keystrokes','arrowright','high','arrowleft','isEmpty','_focusCycler','shift\x20+\x20tab','listenTo'];(function(_0x144350,_0xef919e){const _0x3d57c2=function(_0x4aa5cd){while(--_0x4aa5cd){_0x144350['push'](_0x144350['shift']());}};_0x3d57c2(++_0xef919e);}(_0xef91,0xb9));const _0x3d57=function(_0x144350,_0xef919e){_0x144350=_0x144350-0x0;let _0x3d57c2=_0xef91[_0x144350];return _0x3d57c2;};import{View as _0x147f14,FocusCycler as _0x8dccca}from'ckeditor5/src/ui';import{FocusTracker as _0xa44157,KeystrokeHandler as _0x31395d}from'ckeditor5/src/utils';import{getTranslation as _0x1fb4ba}from'../../../utils/common-translations';export default class K extends _0x147f14{constructor(_0x4f433f,_0x54b43a){super(_0x4f433f),this[_0x3d57('0x7')](_0x3d57('0xe'),!_0x54b43a['length']),this[_0x3d57('0x1a')]=new _0xa44157(),this[_0x3d57('0xa')]=new _0x31395d(),this['_focusables']=_0x54b43a,this[_0x3d57('0xf')]=new _0x8dccca({'focusables':this['_focusables'],'focusTracker':this['_focusTracker'],'keystrokeHandler':this[_0x3d57('0xa')],'actions':{'focusPrevious':_0x3d57('0x10'),'focusNext':_0x3d57('0x6')}}),this[_0x3d57('0x11')](_0x54b43a,_0x3d57('0x13'),()=>{this[_0x3d57('0xe')]=!0x1;}),this[_0x3d57('0x11')](_0x54b43a,_0x3d57('0x2'),(_0x44676b,_0x3fedef)=>{_0x3fedef[_0x3d57('0x0')]&&this[_0x3d57('0x4')](),_0x54b43a['length']||(this[_0x3d57('0xe')]=!0x0);});const _0x589499=this[_0x3d57('0x5')];this[_0x3d57('0x3')]({'tag':_0x3d57('0x1b'),'attributes':{'dir':_0x3d57('0x16'),'class':['ck',_0x3d57('0x19')],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':[_0x3d57('0x9')]},'children':[{'text':_0x1fb4ba(_0x4f433f,'COMMENTS_ARCHIVE')}]},{'tag':'div','attributes':{'class':[_0x3d57('0x18')]},'children':[{'tag':_0x3d57('0x1b'),'children':_0x54b43a},{'tag':'p','attributes':{'class':[_0x3d57('0x14'),_0x589499['if'](_0x3d57('0xe'),'ck-hidden',_0x2a4dfb=>!_0x2a4dfb)]},'children':[{'text':_0x1fb4ba(_0x4f433f,_0x3d57('0x15'))}]}]}]});}['render'](){super[_0x3d57('0x1')](),this['_keystrokes'][_0x3d57('0x11')](this['element']);const _0x55d260=_0x12a580=>_0x12a580[_0x3d57('0x12')]();this[_0x3d57('0xa')][_0x3d57('0x7')](_0x3d57('0xb'),_0x55d260),this['_keystrokes'][_0x3d57('0x7')](_0x3d57('0xd'),_0x55d260),this[_0x3d57('0xa')][_0x3d57('0x7')](_0x3d57('0x1c'),_0x55d260),this[_0x3d57('0xa')]['set']('arrowdown',_0x55d260),this[_0x3d57('0x11')](this['element'],'selectstart',(_0x22677a,_0x574070)=>{_0x574070[_0x3d57('0x12')]();},{'priority':_0x3d57('0xc')});}[_0x3d57('0x8')](){super['destroy'](),this[_0x3d57('0x1a')][_0x3d57('0x8')](),this[_0x3d57('0xa')][_0x3d57('0x8')]();}[_0x3d57('0x4')](){this[_0x3d57('0x17')]['focus']();}}
23
+ const _0x377d=['listenTo','selectstart','ck-comments-archive','ck-comments-archive__header\x20','length','_focusables','set','destroy','arrowup','focus','arrowleft','ck-comments-archive__content','_keystrokes','auto','isEmpty','render','ck-hidden','COMMENTS_ARCHIVE','shift\x20+\x20tab','div','_focusTracker','stopPropagation','element','isActive'];(function(_0x5e8ed5,_0x377de8){const _0x72acd=function(_0x19aadc){while(--_0x19aadc){_0x5e8ed5['push'](_0x5e8ed5['shift']());}};_0x72acd(++_0x377de8);}(_0x377d,0x1f1));const _0x72ac=function(_0x5e8ed5,_0x377de8){_0x5e8ed5=_0x5e8ed5-0x0;let _0x72acd=_0x377d[_0x5e8ed5];return _0x72acd;};import{View as _0x35ec10,FocusCycler as _0x4a509e}from'ckeditor5/src/ui';import{FocusTracker as _0x32dc2c,KeystrokeHandler as _0x36eae7}from'ckeditor5/src/utils';import{getTranslation as _0xe944d4}from'../../../utils/common-translations';export default class Q extends _0x35ec10{constructor(_0x29867c,_0x4d9787){super(_0x29867c),this['set'](_0x72ac('0x15'),!_0x4d9787[_0x72ac('0xb')]),this[_0x72ac('0x3')]=new _0x32dc2c(),this[_0x72ac('0x13')]=new _0x36eae7(),this[_0x72ac('0xc')]=_0x4d9787,this['_focusCycler']=new _0x4a509e({'focusables':this[_0x72ac('0xc')],'focusTracker':this[_0x72ac('0x3')],'keystrokeHandler':this[_0x72ac('0x13')],'actions':{'focusPrevious':_0x72ac('0x1'),'focusNext':'tab'}}),this[_0x72ac('0x7')](_0x4d9787,'add',()=>{this[_0x72ac('0x15')]=!0x1;}),this['listenTo'](_0x4d9787,'remove',(_0xd4639c,_0x50772a)=>{_0x50772a[_0x72ac('0x6')]&&this['focus'](),_0x4d9787[_0x72ac('0xb')]||(this[_0x72ac('0x15')]=!0x0);});const _0x47bb25=this['bindTemplate'];this['setTemplate']({'tag':_0x72ac('0x2'),'attributes':{'dir':_0x72ac('0x14'),'class':['ck',_0x72ac('0x9')],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':[_0x72ac('0xa')]},'children':[{'text':_0xe944d4(_0x29867c,_0x72ac('0x0'))}]},{'tag':_0x72ac('0x2'),'attributes':{'class':[_0x72ac('0x12')]},'children':[{'tag':_0x72ac('0x2'),'children':_0x4d9787},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x47bb25['if']('isEmpty',_0x72ac('0x17'),_0x4b66bc=>!_0x4b66bc)]},'children':[{'text':_0xe944d4(_0x29867c,'EMPTY_COMMENTS_ARCHIVE')}]}]}]});}[_0x72ac('0x16')](){super[_0x72ac('0x16')](),this[_0x72ac('0x13')][_0x72ac('0x7')](this['element']);const _0x1adee5=_0x20a074=>_0x20a074['stopPropagation']();this[_0x72ac('0x13')][_0x72ac('0xd')]('arrowright',_0x1adee5),this[_0x72ac('0x13')][_0x72ac('0xd')](_0x72ac('0x11'),_0x1adee5),this['_keystrokes'][_0x72ac('0xd')](_0x72ac('0xf'),_0x1adee5),this[_0x72ac('0x13')][_0x72ac('0xd')]('arrowdown',_0x1adee5),this[_0x72ac('0x7')](this['element'],_0x72ac('0x8'),(_0xdb04ae,_0x51184f)=>{_0x51184f[_0x72ac('0x4')]();},{'priority':'high'});}[_0x72ac('0xe')](){super[_0x72ac('0xe')](),this['_focusTracker']['destroy'](),this[_0x72ac('0x13')]['destroy']();}[_0x72ac('0x10')](){this[_0x72ac('0x5')][_0x72ac('0x10')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1b03=['bind','visibleViews','_rearrangeExpand','ck-thread__comments','setTemplate','refreshVisibleViews','expand','set','change:isActive','delete','hasDirtyComment','count','_findOptimalIndex','weight','resolvedCommentView','_rearrangeCollapse','remove','length','_shouldCollapse','isEditMode','Marked\x20as\x20resolved','change:isEditMode','commentViews','_collapsedCommentsView','element','change:isResolved','_config','insert','resolvedAt','change:hasDirtyComment','_calculatePosition','add','locale','maxCommentCharsWhenCollapsed','resolved','collapse','_handleNewCommentModel','get','formatDateTime','viewUid','_model','_updateHasDirtyComment','comments','stopListening','commentUpdated','_handleInfoComment','destroy','maxThreadTotalWeight','from','createCollection','authoredAt','focus','delegate','listenTo','_handleRemoveCommentModel','CommentView','render'];(function(_0x2102c2,_0x1b03e7){const _0xfa2876=function(_0x59726c){while(--_0x59726c){_0x2102c2['push'](_0x2102c2['shift']());}};_0xfa2876(++_0x1b03e7);}(_0x1b03,0xee));const _0xfa28=function(_0x2102c2,_0x1b03e7){_0x2102c2=_0x2102c2-0x0;let _0xfa2876=_0x1b03[_0x2102c2];return _0xfa2876;};import{View as _0x4eb9d8}from'ckeditor5/src/ui';import{diff as _0x592281,Collection as _0x23fe12}from'ckeditor5/src/utils';import{getTranslation as _0x4c8d28}from'../../../utils/common-translations';import _0x5b4afe from'./collapsedcommentsview';export default class vt extends _0x4eb9d8{constructor(_0x3d16f5,_0x4e14ca,_0x4d900b){super(_0x3d16f5),this[_0xfa28('0x36')]('hasDirtyComment',!0x1),this[_0xfa28('0x36')](_0xfa28('0x7'),_0x4e14ca[_0xfa28('0x20')]['length']),this[_0xfa28('0x36')]('isActive',!0x1),this[_0xfa28('0x1e')]=_0x4e14ca,this[_0xfa28('0x10')]=_0x4d900b,this[_0xfa28('0xc')]=this[_0xfa28('0x27')](),this[_0xfa28('0x30')]=this['createCollection'](),this['resolvedCommentView']=null,this[_0xfa28('0xd')]=new _0x5b4afe(_0x3d16f5),this[_0xfa28('0xd')][_0xfa28('0x2f')]('count')['to'](this,'length',_0x14c745=>_0x14c745-this[_0xfa28('0x10')]['maxCommentsWhenCollapsed']);for(const _0x5ef4db of _0x4e14ca[_0xfa28('0x20')])this[_0xfa28('0x1a')](_0x5ef4db);this[_0xfa28('0x23')](),this['listenTo'](_0x4e14ca['comments'],_0xfa28('0x15'),(_0x23fa88,_0x48d2b9)=>{const _0x5ac6ea=this[_0xfa28('0x14')](_0x48d2b9);this[_0xfa28('0x7')]++,this[_0xfa28('0x1a')](_0x48d2b9,_0x5ac6ea),this[_0xfa28('0x34')]();}),this[_0xfa28('0x2b')](_0x4e14ca[_0xfa28('0x20')],_0xfa28('0x6'),(_0x49c000,_0x397dcb)=>{this[_0xfa28('0x7')]--,this[_0xfa28('0x2c')](_0x397dcb),this[_0xfa28('0x34')]();}),this[_0xfa28('0x2b')](_0x4e14ca,_0xfa28('0x22'),()=>this[_0xfa28('0x34')]()),this[_0xfa28('0x2b')](_0x4e14ca,_0xfa28('0xf'),()=>this['_handleInfoComment']()),this['on'](_0xfa28('0x37'),()=>this[_0xfa28('0x34')]()),this['on'](_0xfa28('0x13'),()=>this[_0xfa28('0x34')]()),this[_0xfa28('0x33')]({'tag':'ul','attributes':{'class':[_0xfa28('0x32')]},'children':this[_0xfa28('0x30')]});}get[_0xfa28('0x8')](){return this[_0xfa28('0x1e')][_0xfa28('0x3')]>this['_config'][_0xfa28('0x25')]&&!this['isActive']&&!this[_0xfa28('0x0')];}[_0xfa28('0x2e')](){super[_0xfa28('0x2e')](),this[_0xfa28('0x34')]();}['focus'](){this[_0xfa28('0xe')][_0xfa28('0x29')]();}['destroy'](){this[_0xfa28('0xd')][_0xfa28('0x24')]();for(const _0x201fcd of this[_0xfa28('0xc')])_0x201fcd[_0xfa28('0x24')]();super[_0xfa28('0x24')]();}['refreshVisibleViews'](){this[_0xfa28('0x8')]?this[_0xfa28('0x5')]():this[_0xfa28('0x31')]();}['_handleNewCommentModel'](_0x389012,_0x24b21d){const _0x2f6b6c=new this[(_0xfa28('0x10'))][(_0xfa28('0x2d'))](this[_0xfa28('0x16')],_0x389012,{'maxCommentCharsWhenCollapsed':this[_0xfa28('0x10')][_0xfa28('0x17')],'formatDateTime':this['_config'][_0xfa28('0x1c')],'editorConfig':this[_0xfa28('0x10')]['editorConfig']});_0x2f6b6c[_0xfa28('0x1d')]=_0x389012['id'],_0x2f6b6c[_0xfa28('0x2a')]('removeComment')['to'](this),_0x2f6b6c[_0xfa28('0x2a')]('updateComment')['to'](this),_0x2f6b6c[_0xfa28('0x2a')]('resolveCommentThread')['to'](this),this['listenTo'](_0x2f6b6c,_0xfa28('0xb'),()=>this[_0xfa28('0x1f')]()),this['commentViews']['add'](_0x2f6b6c,_0x24b21d);}[_0xfa28('0x14')](_0x12fde7){const _0x1f4a7a=this[_0xfa28('0x1e')][_0xfa28('0x2')](_0x12fde7);return this[_0xfa28('0x4')]?this[_0xfa28('0x4')][_0xfa28('0x28')]>_0x12fde7[_0xfa28('0x28')]?_0x1f4a7a-0x1:_0x1f4a7a:_0x1f4a7a-0x1;}[_0xfa28('0x23')](){if(this[_0xfa28('0x1e')]['isResolved']){const _0x5eb237={'id':_0xfa28('0x18'),'author':this['_model']['resolvedBy'],'authoredAt':this['_model'][_0xfa28('0x12')],'content':_0x4c8d28(this[_0xfa28('0x16')],_0xfa28('0xa')),'attributes':{}};this[_0xfa28('0x4')]=new this[(_0xfa28('0x10'))][(_0xfa28('0x2d'))](this[_0xfa28('0x16')],_0x5eb237,{'maxCommentCharsWhenCollapsed':this['_config'][_0xfa28('0x17')],'formatDateTime':this[_0xfa28('0x10')][_0xfa28('0x1c')],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this[_0xfa28('0xc')][_0xfa28('0x15')](this[_0xfa28('0x4')],this['_model']['_findOptimalIndex'](_0x5eb237));}else this['resolvedCommentView']&&(this[_0xfa28('0xc')][_0xfa28('0x6')](this['resolvedCommentView']),this[_0xfa28('0x4')][_0xfa28('0x24')](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x4522a1){const _0x33ebcb=this['commentViews'][_0xfa28('0x6')](_0x4522a1['id']);this[_0xfa28('0x21')](_0x33ebcb),_0x33ebcb[_0xfa28('0x9')]&&this[_0xfa28('0x1f')](),_0x33ebcb[_0xfa28('0x24')]();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array[_0xfa28('0x26')](this[_0xfa28('0xc')])['some'](_0x29151e=>_0x29151e['isEditMode']);}[_0xfa28('0x5')](){const _0x27d490=function(_0x170b56){const _0x163cc2=new _0x23fe12();for(const _0x54bcf9 of _0x170b56)_0x163cc2[_0xfa28('0x15')](_0x54bcf9);return _0x163cc2;}(this[_0xfa28('0xc')]),_0x4e701f=this[_0xfa28('0xd')][_0xfa28('0x1')];for(let _0x5ae99a=0x1;_0x5ae99a<=_0x4e701f;_0x5ae99a++)_0x27d490[_0xfa28('0x6')](0x1);for(const _0x29dbe8 of _0x27d490)_0x29dbe8[_0xfa28('0x19')]();_0x4e701f>0x0&&_0x27d490[_0xfa28('0x15')](this[_0xfa28('0xd')],0x1),ss(_0x592281(Array[_0xfa28('0x26')](this[_0xfa28('0x30')]),Array[_0xfa28('0x26')](_0x27d490)),this[_0xfa28('0x30')],_0x27d490);}[_0xfa28('0x31')](){ss(_0x592281(Array[_0xfa28('0x26')](this['visibleViews']),Array[_0xfa28('0x26')](this['commentViews'])),this[_0xfa28('0x30')],this[_0xfa28('0xc')]);for(const _0x57645c of this['visibleViews'])_0x57645c[_0xfa28('0x35')]();}}function ss(_0xe042b1,_0xc567fd,_0x24edfa){let _0x26779e=0x0;for(const _0x52d2df of _0xe042b1)switch(_0x52d2df){case _0xfa28('0x11'):_0xc567fd[_0xfa28('0x15')](_0x24edfa[_0xfa28('0x1b')](_0x26779e),_0x26779e),_0x26779e++;break;case _0xfa28('0x38'):_0xc567fd[_0xfa28('0x6')](_0x26779e);break;case'equal':_0x26779e++;}}
23
+ const _0x3fcd=['_config','createCollection','setTemplate','delegate','_collapsedCommentsView','viewUid','element','_handleRemoveCommentModel','maxCommentCharsWhenCollapsed','updateComment','commentViews','count','resolveCommentThread','collapse','isActive','_shouldCollapse','_calculatePosition','isEditMode','_updateHasDirtyComment','comments','Marked\x20as\x20resolved','resolved','_rearrangeExpand','resolvedAt','CommentView','some','authoredAt','length','resolvedCommentView','hasDirtyComment','_rearrangeCollapse','render','set','equal','insert','_findOptimalIndex','destroy','listenTo','get','weight','resolvedBy','add','_handleInfoComment','delete','_handleNewCommentModel','refreshVisibleViews','visibleViews','commentUpdated','_model','remove','focus','formatDateTime','locale','change:isEditMode','stopListening','editorConfig','from'];(function(_0x1bf20d,_0x3fcda8){const _0x50df5f=function(_0x287545){while(--_0x287545){_0x1bf20d['push'](_0x1bf20d['shift']());}};_0x50df5f(++_0x3fcda8);}(_0x3fcd,0xd9));const _0x50df=function(_0x1bf20d,_0x3fcda8){_0x1bf20d=_0x1bf20d-0x0;let _0x50df5f=_0x3fcd[_0x1bf20d];return _0x50df5f;};import{View as _0x2adbde}from'ckeditor5/src/ui';import{diff as _0x2d1af6,Collection as _0x2be02e}from'ckeditor5/src/utils';import{getTranslation as _0x27f81d}from'../../../utils/common-translations';import _0x42ac88 from'./collapsedcommentsview';export default class wt extends _0x2adbde{constructor(_0x2ad1bb,_0x5a3bf7,_0x255ced){super(_0x2ad1bb),this[_0x50df('0x2b')]('hasDirtyComment',!0x1),this['set']('length',_0x5a3bf7['comments'][_0x50df('0x26')]),this['set'](_0x50df('0x19'),!0x1),this[_0x50df('0x2')]=_0x5a3bf7,this[_0x50df('0xb')]=_0x255ced,this[_0x50df('0x15')]=this[_0x50df('0xc')](),this[_0x50df('0x0')]=this['createCollection'](),this['resolvedCommentView']=null,this[_0x50df('0xf')]=new _0x42ac88(_0x2ad1bb),this['_collapsedCommentsView']['bind'](_0x50df('0x16'))['to'](this,'length',_0x5408f8=>_0x5408f8-this[_0x50df('0xb')]['maxCommentsWhenCollapsed']);for(const _0x57bf63 of _0x5a3bf7[_0x50df('0x1e')])this['_handleNewCommentModel'](_0x57bf63);this[_0x50df('0x35')](),this[_0x50df('0x30')](_0x5a3bf7[_0x50df('0x1e')],_0x50df('0x34'),(_0x588f81,_0x4fbf6e)=>{const _0x5a4103=this[_0x50df('0x1b')](_0x4fbf6e);this['length']++,this[_0x50df('0x37')](_0x4fbf6e,_0x5a4103),this[_0x50df('0x38')]();}),this[_0x50df('0x30')](_0x5a3bf7[_0x50df('0x1e')],_0x50df('0x3'),(_0x522315,_0x33f716)=>{this['length']--,this[_0x50df('0x12')](_0x33f716),this[_0x50df('0x38')]();}),this[_0x50df('0x30')](_0x5a3bf7,_0x50df('0x1'),()=>this['refreshVisibleViews']()),this[_0x50df('0x30')](_0x5a3bf7,'change:isResolved',()=>this[_0x50df('0x35')]()),this['on']('change:isActive',()=>this[_0x50df('0x38')]()),this['on']('change:hasDirtyComment',()=>this['refreshVisibleViews']()),this[_0x50df('0xd')]({'tag':'ul','attributes':{'class':['ck-thread__comments']},'children':this[_0x50df('0x0')]});}get[_0x50df('0x1a')](){return this['_model'][_0x50df('0x32')]>this['_config']['maxThreadTotalWeight']&&!this[_0x50df('0x19')]&&!this[_0x50df('0x28')];}[_0x50df('0x2a')](){super[_0x50df('0x2a')](),this[_0x50df('0x38')]();}['focus'](){this[_0x50df('0x11')][_0x50df('0x4')]();}['destroy'](){this[_0x50df('0xf')][_0x50df('0x2f')]();for(const _0x919980 of this[_0x50df('0x15')])_0x919980['destroy']();super[_0x50df('0x2f')]();}['refreshVisibleViews'](){this[_0x50df('0x1a')]?this[_0x50df('0x29')]():this['_rearrangeExpand']();}[_0x50df('0x37')](_0x3bc1f8,_0x594c67){const _0x64e16b=new this[(_0x50df('0xb'))][(_0x50df('0x23'))](this[_0x50df('0x6')],_0x3bc1f8,{'maxCommentCharsWhenCollapsed':this[_0x50df('0xb')][_0x50df('0x13')],'formatDateTime':this[_0x50df('0xb')][_0x50df('0x5')],'editorConfig':this[_0x50df('0xb')][_0x50df('0x9')]});_0x64e16b[_0x50df('0x10')]=_0x3bc1f8['id'],_0x64e16b[_0x50df('0xe')]('removeComment')['to'](this),_0x64e16b['delegate'](_0x50df('0x14'))['to'](this),_0x64e16b[_0x50df('0xe')](_0x50df('0x17'))['to'](this),this[_0x50df('0x30')](_0x64e16b,_0x50df('0x7'),()=>this[_0x50df('0x1d')]()),this[_0x50df('0x15')][_0x50df('0x34')](_0x64e16b,_0x594c67);}[_0x50df('0x1b')](_0x2bd149){const _0x4f417a=this[_0x50df('0x2')][_0x50df('0x2e')](_0x2bd149);return this[_0x50df('0x27')]?this['resolvedCommentView'][_0x50df('0x25')]>_0x2bd149['authoredAt']?_0x4f417a-0x1:_0x4f417a:_0x4f417a-0x1;}['_handleInfoComment'](){if(this[_0x50df('0x2')]['resolvedBy']&&this[_0x50df('0x2')][_0x50df('0x22')]){const _0x4ebf71={'id':_0x50df('0x20'),'author':this['_model'][_0x50df('0x33')],'authoredAt':this['_model'][_0x50df('0x22')],'content':_0x27f81d(this[_0x50df('0x6')],_0x50df('0x1f')),'attributes':{}};this[_0x50df('0x27')]=new this[(_0x50df('0xb'))][(_0x50df('0x23'))](this[_0x50df('0x6')],_0x4ebf71,{'maxCommentCharsWhenCollapsed':this[_0x50df('0xb')][_0x50df('0x13')],'formatDateTime':this[_0x50df('0xb')][_0x50df('0x5')],'editorConfig':this[_0x50df('0xb')]['editorConfig'],'isSystemComment':!0x0}),this['commentViews'][_0x50df('0x34')](this[_0x50df('0x27')],this[_0x50df('0x2')]['_findOptimalIndex'](_0x4ebf71));}else this[_0x50df('0x27')]&&(this[_0x50df('0x15')][_0x50df('0x3')](this[_0x50df('0x27')]),this['resolvedCommentView'][_0x50df('0x2f')](),this['resolvedCommentView']=null);this[_0x50df('0x38')]();}[_0x50df('0x12')](_0x95ff7b){const _0x166e09=this[_0x50df('0x15')][_0x50df('0x3')](_0x95ff7b['id']);this[_0x50df('0x8')](_0x166e09),_0x166e09[_0x50df('0x1c')]&&this[_0x50df('0x1d')](),_0x166e09['destroy']();}[_0x50df('0x1d')](){this[_0x50df('0x28')]=Array[_0x50df('0xa')](this[_0x50df('0x15')])[_0x50df('0x24')](_0x18f208=>_0x18f208[_0x50df('0x1c')]);}[_0x50df('0x29')](){const _0x38e103=function(_0x4a558f){const _0x2f4e55=new _0x2be02e();for(const _0x10bb44 of _0x4a558f)_0x2f4e55[_0x50df('0x34')](_0x10bb44);return _0x2f4e55;}(this[_0x50df('0x15')]),_0x2fe92b=this['_collapsedCommentsView']['count'];for(let _0x5d1bf3=0x1;_0x5d1bf3<=_0x2fe92b;_0x5d1bf3++)_0x38e103[_0x50df('0x3')](0x1);for(const _0xda8f64 of _0x38e103)_0xda8f64[_0x50df('0x18')]();_0x2fe92b>0x0&&_0x38e103[_0x50df('0x34')](this[_0x50df('0xf')],0x1),ss(_0x2d1af6(Array[_0x50df('0xa')](this[_0x50df('0x0')]),Array[_0x50df('0xa')](_0x38e103)),this['visibleViews'],_0x38e103);}[_0x50df('0x21')](){ss(_0x2d1af6(Array[_0x50df('0xa')](this['visibleViews']),Array[_0x50df('0xa')](this[_0x50df('0x15')])),this[_0x50df('0x0')],this['commentViews']);for(const _0x56e209 of this[_0x50df('0x0')])_0x56e209['expand']();}}function ss(_0x35174d,_0x16c62e,_0x4f45bb){let _0xcc203f=0x0;for(const _0x154616 of _0x35174d)switch(_0x154616){case _0x50df('0x2d'):_0x16c62e[_0x50df('0x34')](_0x4f45bb[_0x50df('0x31')](_0xcc203f),_0xcc203f),_0xcc203f++;break;case _0x50df('0x36'):_0x16c62e[_0x50df('0x3')](_0xcc203f);break;case _0x50df('0x2c'):_0xcc203f++;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x82d3=['div','isResolvable','span','overlay','label','ck-context-wrapper','value','context','listenTo','render','add','bindTemplate','_model','hasContext','substring','reopenCommentThread','ck-context','querySelector','remove','execute','.ck-context','lastIndexOf','isVisible','.ck-context__value','Comment\x20was\x20made\x20on\x20an\x20element','ck-thread__header','locale','bind','ck-context__value','_createReopenButton','_attachContextActions','setTemplate','mouseleave','contextValue','element','icon','...','classList','reopenButtonView'];(function(_0x3528fa,_0x82d388){const _0x2ebc2=function(_0x5ec5ca){while(--_0x5ec5ca){_0x3528fa['push'](_0x3528fa['shift']());}};_0x2ebc2(++_0x82d388);}(_0x82d3,0x143));const _0x2ebc=function(_0x3528fa,_0x82d388){_0x3528fa=_0x3528fa-0x0;let _0x2ebc2=_0x82d3[_0x3528fa];return _0x2ebc2;};import{View as _0x4aba3e,ButtonView as _0x365c82}from'ckeditor5/src/ui';import{getTranslation as _0x4108c9}from'../../../utils/common-translations';import _0x2a4af6 from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Tt extends _0x4aba3e{constructor(_0x33df54,_0x1a6f39){super(_0x33df54);const _0x3d2e3f=this[_0x2ebc('0x0')];this[_0x2ebc('0x1')]=_0x1a6f39,this[_0x2ebc('0x1b')]=this[_0x2ebc('0x12')](),this['bind'](_0x2ebc('0x2'))['to'](this['_model'],_0x2ebc('0x23'),_0xbe0524=>!!_0xbe0524),this[_0x2ebc('0x10')](_0x2ebc('0x16'))['to'](this[_0x2ebc('0x1')],_0x2ebc('0x23'),_0x19f09d=>_0x19f09d&&_0x19f09d[_0x2ebc('0x22')]?this['_trimContextValue'](_0x19f09d[_0x2ebc('0x22')]):_0x4108c9(this[_0x2ebc('0xf')],_0x2ebc('0xd'))),this[_0x2ebc('0x14')]({'tag':'div','attributes':{'class':[_0x2ebc('0xe')]},'children':[{'tag':_0x2ebc('0x1c'),'attributes':{'class':[_0x2ebc('0x21')]},'children':[{'tag':_0x2ebc('0x1c'),'attributes':{'class':[_0x2ebc('0x5'),_0x3d2e3f['if'](_0x2ebc('0x2'),'ck-context--quotes')]},'children':[{'tag':_0x2ebc('0x1e'),'attributes':{'class':[_0x2ebc('0x11')]},'children':[{'text':_0x3d2e3f['to'](_0x2ebc('0x16'))}]}]}]},{'tag':_0x2ebc('0x1c'),'attributes':{'class':['ck-annotation__actions']},'children':[this[_0x2ebc('0x1b')]]}]});}[_0x2ebc('0x25')](){super['render'](),this['_attachContextActions']();}['_createReopenButton'](){const _0x170a26=new _0x365c82(this['locale']);return _0x170a26[_0x2ebc('0x20')]=_0x4108c9(this[_0x2ebc('0xf')],'Reopen'),_0x170a26['tooltip']=_0x4108c9(this[_0x2ebc('0xf')],'Reopen'),_0x170a26[_0x2ebc('0x18')]=_0x2a4af6,_0x170a26[_0x2ebc('0x10')](_0x2ebc('0xb'))['to'](this[_0x2ebc('0x1')],_0x2ebc('0x1d')),_0x170a26['on'](_0x2ebc('0x8'),()=>{this['fire'](_0x2ebc('0x4'),this[_0x2ebc('0x1')]['id']);}),_0x170a26;}['_trimContextValue'](_0x3b4d4f){if(_0x3b4d4f['length']<0x96)return _0x3b4d4f;const _0x57ec92=_0x3b4d4f[_0x2ebc('0xa')]('\x20',0x93);return _0x3b4d4f[_0x2ebc('0x3')](0x0,_0x57ec92>-0x1?_0x57ec92:0x93)+_0x2ebc('0x19');}[_0x2ebc('0x13')](){const _0x4e207a=this[_0x2ebc('0x17')]['querySelector'](_0x2ebc('0x9')),_0x141989=_0x4e207a[_0x2ebc('0x6')](_0x2ebc('0xc'));this[_0x2ebc('0x24')](_0x4e207a,'mouseenter',()=>{_0x141989['offsetWidth']<_0x141989['scrollWidth']&&_0x4e207a['classList'][_0x2ebc('0x26')](_0x2ebc('0x1f'));}),this[_0x2ebc('0x24')](_0x4e207a,_0x2ebc('0x15'),()=>{_0x4e207a[_0x2ebc('0x1a')][_0x2ebc('0x7')]('overlay');});}}
23
+ const _0x3f81=['render','bind','icon','span','ck-annotation__actions','mouseenter','Reopen','_model','length','remove','hasContext','classList','ck-context--quotes','_createReopenButton','label','contextValue','execute','div','value','_trimContextValue','add','offsetWidth','...','lastIndexOf','reopenCommentThread','.ck-context','setTemplate','querySelector','ck-context-wrapper','reopenButtonView','overlay','ck-thread__header','scrollWidth','_attachContextActions','mouseleave','locale','ck-context__value','listenTo'];(function(_0x15cec4,_0x3f8147){const _0x41eca7=function(_0x519aca){while(--_0x519aca){_0x15cec4['push'](_0x15cec4['shift']());}};_0x41eca7(++_0x3f8147);}(_0x3f81,0xbf));const _0x41ec=function(_0x15cec4,_0x3f8147){_0x15cec4=_0x15cec4-0x0;let _0x41eca7=_0x3f81[_0x15cec4];return _0x41eca7;};import{View as _0x509faa,ButtonView as _0x479fed}from'ckeditor5/src/ui';import{getTranslation as _0x21882d}from'../../../utils/common-translations';import _0x42c1ef from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Tt extends _0x509faa{constructor(_0x356433,_0xf8a13e){super(_0x356433);const _0x155d58=this['bindTemplate'];this['_model']=_0xf8a13e,this[_0x41ec('0x1c')]=this['_createReopenButton'](),this[_0x41ec('0x0')](_0x41ec('0x9'))['to'](this['_model'],'context',_0x3dc765=>!!_0x3dc765),this['bind'](_0x41ec('0xe'))['to'](this[_0x41ec('0x6')],'context',_0x1c49ef=>_0x1c49ef&&_0x1c49ef[_0x41ec('0x11')]?this[_0x41ec('0x12')](_0x1c49ef['value']):_0x21882d(this[_0x41ec('0x22')],'Comment\x20was\x20made\x20on\x20an\x20element')),this[_0x41ec('0x19')]({'tag':'div','attributes':{'class':[_0x41ec('0x1e')]},'children':[{'tag':_0x41ec('0x10'),'attributes':{'class':[_0x41ec('0x1b')]},'children':[{'tag':_0x41ec('0x10'),'attributes':{'class':['ck-context',_0x155d58['if'](_0x41ec('0x9'),_0x41ec('0xb'))]},'children':[{'tag':_0x41ec('0x2'),'attributes':{'class':[_0x41ec('0x23')]},'children':[{'text':_0x155d58['to'](_0x41ec('0xe'))}]}]}]},{'tag':'div','attributes':{'class':[_0x41ec('0x3')]},'children':[this[_0x41ec('0x1c')]]}]});}[_0x41ec('0x25')](){super[_0x41ec('0x25')](),this[_0x41ec('0x20')]();}[_0x41ec('0xc')](){const _0xa861c1=new _0x479fed(this['locale']);return _0xa861c1[_0x41ec('0xd')]=_0x21882d(this['locale'],'Reopen'),_0xa861c1['tooltip']=_0x21882d(this[_0x41ec('0x22')],_0x41ec('0x5')),_0xa861c1[_0x41ec('0x1')]=_0x42c1ef,_0xa861c1['bind']('isVisible')['to'](this[_0x41ec('0x6')],'isResolvable'),_0xa861c1['on'](_0x41ec('0xf'),()=>{this['fire'](_0x41ec('0x17'),this[_0x41ec('0x6')]['id']);}),_0xa861c1;}[_0x41ec('0x12')](_0x5eed8e){if(_0x5eed8e[_0x41ec('0x7')]<0x96)return _0x5eed8e;const _0x4ed6f4=_0x5eed8e[_0x41ec('0x16')]('\x20',0x93);return _0x5eed8e['substring'](0x0,_0x4ed6f4>-0x1?_0x4ed6f4:0x93)+_0x41ec('0x15');}[_0x41ec('0x20')](){const _0x5cf672=this['element'][_0x41ec('0x1a')](_0x41ec('0x18')),_0x2280e3=_0x5cf672[_0x41ec('0x1a')]('.ck-context__value');this['listenTo'](_0x5cf672,_0x41ec('0x4'),()=>{_0x2280e3[_0x41ec('0x14')]<_0x2280e3[_0x41ec('0x1f')]&&_0x5cf672['classList'][_0x41ec('0x13')](_0x41ec('0x1d'));}),this[_0x41ec('0x24')](_0x5cf672,_0x41ec('0x21'),()=>{_0x5cf672[_0x41ec('0xa')][_0x41ec('0x8')](_0x41ec('0x1d'));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x589b=['showInput','ck-comment__input-container','createEditor','destroy','ck-comment__input-container--active','ck-thread__user','showButtons','bind','userView','ck-thread__input','then','commentInputView','focusTracker','isFocused','editor','extendTemplate','bindTemplate'];(function(_0x2ba9ea,_0x589b19){var _0x446258=function(_0x467a3f){while(--_0x467a3f){_0x2ba9ea['push'](_0x2ba9ea['shift']());}};_0x446258(++_0x589b19);}(_0x589b,0x11b));var _0x4462=function(_0x2ba9ea,_0x589b19){_0x2ba9ea=_0x2ba9ea-0x0;var _0x446258=_0x589b[_0x2ba9ea];return _0x446258;};import{View as _0x184444}from'ckeditor5/src/ui';import _0x1c13fd from'./commentinputview';import{UserView as _0x236e18}from'ckeditor5-collaboration/src/collaboration-core';export default class wt extends _0x184444{constructor(_0x4efa9d,_0x664b48,_0x2e9b23){super(_0x4efa9d),this[_0x4462('0x0')]=new _0x1c13fd(_0x4efa9d,_0x2e9b23),this[_0x4462('0x0')][_0x4462('0xd')](_0x4462('0xc'))['to'](this[_0x4462('0x0')][_0x4462('0x1')],_0x4462('0x2'),this[_0x4462('0x0')],'value',(_0x4fd723,_0x1958dc)=>_0x4fd723||!!_0x1958dc),this['set'](_0x4462('0x6'),!0x1),this['on']('change:showInput',()=>{this['showInput']&&!this[_0x4462('0x0')][_0x4462('0x3')]&&this[_0x4462('0x0')][_0x4462('0x8')]();}),this[_0x4462('0xe')]=new _0x236e18(_0x4efa9d,_0x664b48),this['userView']['extendTemplate']({'attributes':{'class':_0x4462('0xb')}}),this[_0x4462('0x0')][_0x4462('0x4')]({'attributes':{'class':_0x4462('0xf')}}),this['setTemplate']({'tag':'div','attributes':{'class':[_0x4462('0x7'),this[_0x4462('0x5')]['if'](_0x4462('0x6'),_0x4462('0xa'))]},'children':[this[_0x4462('0xe')],this[_0x4462('0x0')]]});}[_0x4462('0x9')](){return this[_0x4462('0x0')][_0x4462('0x9')]()[_0x4462('0x10')](()=>super['destroy']());}}
23
+ var _0x31b5=['ck-thread__input','editor','commentInputView','then','userView','showButtons','destroy','extendTemplate','set','div','focusTracker','bindTemplate','ck-comment__input-container--active','bind','showInput','change:showInput'];(function(_0x2d27a3,_0x31b527){var _0x4683ad=function(_0x4315c1){while(--_0x4315c1){_0x2d27a3['push'](_0x2d27a3['shift']());}};_0x4683ad(++_0x31b527);}(_0x31b5,0x6f));var _0x4683=function(_0x2d27a3,_0x31b527){_0x2d27a3=_0x2d27a3-0x0;var _0x4683ad=_0x31b5[_0x2d27a3];return _0x4683ad;};import{View as _0x1cd09b}from'ckeditor5/src/ui';import _0x7e08c4 from'./commentinputview';import{UserView as _0x4613ee}from'ckeditor5-collaboration/src/collaboration-core';export default class Ct extends _0x1cd09b{constructor(_0x2451c0,_0x23cd62,_0x1f5ad6){super(_0x2451c0),this[_0x4683('0x3')]=new _0x7e08c4(_0x2451c0,_0x1f5ad6),this[_0x4683('0x3')][_0x4683('0xe')](_0x4683('0x6'))['to'](this['commentInputView'][_0x4683('0xb')],'isFocused',this[_0x4683('0x3')],'value',(_0x4397f2,_0x287f81)=>_0x4397f2||!!_0x287f81),this[_0x4683('0x9')](_0x4683('0xf'),!0x1),this['on'](_0x4683('0x0'),()=>{this[_0x4683('0xf')]&&!this[_0x4683('0x3')][_0x4683('0x2')]&&this[_0x4683('0x3')]['createEditor']();}),this['userView']=new _0x4613ee(_0x2451c0,_0x23cd62),this[_0x4683('0x5')][_0x4683('0x8')]({'attributes':{'class':'ck-thread__user'}}),this[_0x4683('0x3')][_0x4683('0x8')]({'attributes':{'class':_0x4683('0x1')}}),this['setTemplate']({'tag':_0x4683('0xa'),'attributes':{'class':['ck-comment__input-container',this[_0x4683('0xc')]['if'](_0x4683('0xf'),_0x4683('0xd'))]},'children':[this[_0x4683('0x5')],this[_0x4683('0x3')]]});}[_0x4683('0x7')](){return this[_0x4683('0x3')][_0x4683('0x7')]()[_0x4683('0x4')](()=>super['destroy']());}}
@@ -33,6 +33,13 @@ export default class CommentThreadView extends CommentThreadView_base {
33
33
  /**
34
34
  * View collection which holds all comment thread children elements.
35
35
  *
36
+ * These views are:
37
+ *
38
+ * * {@link ~CommentThreadView#commentThreadHeaderView `commentThreadHeaderView`} (added at the beginning when the comment thread is
39
+ * resolved),
40
+ * * {@link ~CommentThreadView#commentsListView `commentsListView`},
41
+ * * {@link ~CommentThreadView#commentThreadInputView `commentThreadInputView`}.
42
+ *
36
43
  * @readonly
37
44
  */
38
45
  readonly commentThreadChildren: ViewCollection;
@@ -70,6 +77,7 @@ export default class CommentThreadView extends CommentThreadView_base {
70
77
  * attributes: {
71
78
  * class: [
72
79
  * 'ck-thread',
80
+ * 'ck-reset_all-excluded',
73
81
  * bind.if( 'isActive', 'ck-thread--active' ),
74
82
  * bind.if( 'isConfirm', 'ck-thread--remove-confirmation' ),
75
83
  * bind.to( 'actionIndicator', value => value ? `ck-thread--${ value }` : '' )
@@ -85,10 +93,7 @@ export default class CommentThreadView extends CommentThreadView_base {
85
93
  * attributes: {
86
94
  * class: 'ck-thread__container'
87
95
  * },
88
- * children: [
89
- * this.commentsListView,
90
- * this.commentThreadInputView
91
- * ]
96
+ * children: this.commentThreadChildren
92
97
  * }
93
98
  * ]
94
99
  * };
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x6e06=['showConfirm','_cancelAllConfirms','commentThreadHeaderView','containerElement','listenTo','ck-reset_all-excluded','actionBar','change:isActive','remove','extendTemplate','length','Write\x20a\x20comment...','_boundFirstCommentView','isVisible','placeholder','resolveButton','removeCommentThread','Delete\x20comment\x20thread?','render','removeButton','querySelector','setTemplate','commentsListView','ck-thread','execute','ck-thread__container','check','actionIndicator','locale','icon','_model','bind','fire','add','commentThreadInputView','high','unbind','isDirty','label','Resolve','tooltip','_createResolveButton','ck-thread--','change:isResolved','get','stop','createCollection','getTemplate','isReadOnly','isResolved','resolveCommentThread','div','set','cancelConfirm','bindTemplate','then','change:isReadOnly','commentViews','.ck-thread__container','commentThreadChildren'];(function(_0x1bc3f0,_0x6e062b){const _0x17316=function(_0x1be487){while(--_0x1be487){_0x1bc3f0['push'](_0x1bc3f0['shift']());}};_0x17316(++_0x6e062b);}(_0x6e06,0xd8));const _0x1731=function(_0x1bc3f0,_0x6e062b){_0x1bc3f0=_0x1bc3f0-0x0;let _0x17316=_0x6e06[_0x1bc3f0];return _0x17316;};import{ConfirmMixin as _0x18952d}from'ckeditor5-collaboration/src/collaboration-core';import{ButtonView as _0x499537}from'ckeditor5/src/ui';import{icons as _0x18d7c4}from'ckeditor5/src/core';import _0x342f32 from'./basecommentthreadview';import{getTranslation as _0x1e9c0a}from'../../../utils/common-translations';export default class ct extends _0x18952d(_0x342f32){constructor(_0x5954f6,_0x2b209f,_0x4440a3,_0x3a0174){super(_0x5954f6,_0x2b209f,_0x4440a3,_0x3a0174),this[_0x1731('0x17')]=this[_0x1731('0xa')](),this[_0x1731('0x17')]['addMany']([this[_0x1731('0x2e')],this[_0x1731('0x3a')]]),this[_0x1731('0x36')][_0x1731('0xd')]&&this['commentThreadChildren']['add'](this[_0x1731('0x1a')],0x0),this[_0x1731('0x36')]['on'](_0x1731('0x7'),(_0x396ba4,_0x30ae15,_0x291405)=>{_0x291405?this[_0x1731('0x17')][_0x1731('0x39')](this[_0x1731('0x1a')],0x0):this['commentThreadChildren'][_0x1731('0x20')](this['commentThreadHeaderView']);}),this[_0x1731('0x10')](_0x1731('0x33'),null),this[_0x1731('0x1b')]=null,this['_boundFirstCommentView']=null,this[_0x1731('0x34')]=_0x5954f6,this['resolveButton']=this[_0x1731('0x5')](),this[_0x1731('0x2d')](this[_0x1731('0xb')]()),this['on'](_0x1731('0x1f'),(_0x3b38dc,_0x59b766,_0x3417cf)=>{_0x3417cf||this[_0x1731('0x19')]();}),this['listenTo'](this[_0x1731('0x36')],_0x1731('0x14'),(_0x566e6c,_0x58d0be,_0x4b8abc)=>{_0x4b8abc&&this['_cancelAllConfirms']();}),this[_0x1731('0x22')]>0x0&&this['_bindFirstCommentView'](),this[_0x1731('0x1c')](this['commentsListView'][_0x1731('0x15')],'add',()=>{this['_bindFirstCommentView']();});}[_0x1731('0xb')](){const _0x403abb=this[_0x1731('0x12')];return{'tag':'div','attributes':{'class':[_0x1731('0x2f'),_0x1731('0x1d'),_0x403abb['if']('isActive','ck-thread--active'),_0x403abb['if']('isConfirm','ck-thread--remove-confirmation'),_0x403abb['to'](_0x1731('0x33'),_0x4984ce=>_0x4984ce?_0x1731('0x6')+_0x4984ce:'')],'data-thread-id':this[_0x1731('0x36')]['id'],'tabindex':-0x1},'children':[{'tag':_0x1731('0xf'),'attributes':{'class':_0x1731('0x31')},'children':this[_0x1731('0x17')]}]};}[_0x1731('0x2a')](){super['render'](),this[_0x1731('0x1b')]=this['element'][_0x1731('0x2c')](_0x1731('0x16'));}[_0x1731('0x19')](){this[_0x1731('0x11')]();for(const _0x4946e1 of this[_0x1731('0x2e')][_0x1731('0x15')])_0x4946e1['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x3a497d}=this,_0x53cd0d=this[_0x1731('0x2e')]['commentViews'][_0x1731('0x8')](0x0);_0x53cd0d===this[_0x1731('0x24')]||_0x53cd0d['isSystemComment']||(this[_0x1731('0x24')]=_0x53cd0d,this[_0x1731('0x0')](_0x1731('0x33')),this[_0x1731('0x37')]('actionIndicator')['to'](_0x53cd0d,'actionIndicator',_0x3c115b=>_0x1731('0x20')===_0x3c115b?_0x1731('0x20'):null),_0x53cd0d[_0x1731('0x26')]=_0x1e9c0a(_0x3a497d,_0x1731('0x23')),_0x53cd0d[_0x1731('0x2b')]['on'](_0x1731('0x30'),_0x2b8c42=>{_0x2b8c42[_0x1731('0x9')](),this[_0x1731('0x18')](_0x1e9c0a(_0x3a497d,_0x1731('0x29')),this[_0x1731('0x1b')])[_0x1731('0x13')](()=>{this[_0x1731('0x38')](_0x1731('0x28'));});},{'priority':_0x1731('0x3b')}),_0x53cd0d[_0x1731('0x1e')][_0x1731('0x39')](this[_0x1731('0x27')],0x0));}['_createResolveButton'](){const _0x1a93bf=new _0x499537(this[_0x1731('0x34')]);return _0x1a93bf[_0x1731('0x2')]=_0x1e9c0a(this[_0x1731('0x34')],_0x1731('0x3')),_0x1a93bf[_0x1731('0x4')]=_0x1e9c0a(this[_0x1731('0x34')],_0x1731('0x3')),_0x1a93bf[_0x1731('0x35')]=_0x18d7c4[_0x1731('0x32')],_0x1a93bf[_0x1731('0x21')]({'attributes':{'class':'ck-comment--resolve'}}),_0x1a93bf[_0x1731('0x37')]('isEnabled')['to'](this[_0x1731('0x36')],_0x1731('0xc'),_0x2e4cfa=>!_0x2e4cfa),_0x1a93bf[_0x1731('0x37')](_0x1731('0x25'))['to'](this[_0x1731('0x36')],'isResolvable',this['_model'],'isResolved',this,_0x1731('0x1'),(_0x192068,_0x53fbd1,_0x4df45c)=>_0x192068&&!_0x53fbd1&&!_0x4df45c),_0x1a93bf['on']('execute',()=>{this[_0x1731('0x38')](_0x1731('0xe'),this[_0x1731('0x36')]['id']);}),_0x1a93bf;}}
23
+ const _0x47c9=['icon','change:isActive','fire','commentViews','remove','commentThreadHeaderView','high','containerElement','_bindFirstCommentView','resolveCommentThread','Write\x20a\x20comment...','length','isConfirm','Delete\x20comment\x20thread?','actionIndicator','isReadOnly','ck-thread--','ck-thread--active','isResolved','bindTemplate','set','addMany','unbind','showConfirm','isSystemComment','locale','Resolve','commentsListView','.ck-thread__container','isResolvable','ck-reset_all-excluded','change:isResolved','resolveButton','setTemplate','actionBar','placeholder','label','commentThreadChildren','render','isActive','then','_cancelAllConfirms','cancelConfirm','getTemplate','isVisible','div','check','extendTemplate','createCollection','_boundFirstCommentView','_createResolveButton','_model','ck-comment--resolve','get','change:isReadOnly','listenTo','bind','execute'];(function(_0xa09274,_0x47c91e){const _0x19da3f=function(_0x306736){while(--_0x306736){_0xa09274['push'](_0xa09274['shift']());}};_0x19da3f(++_0x47c91e);}(_0x47c9,0x8e));const _0x19da=function(_0xa09274,_0x47c91e){_0xa09274=_0xa09274-0x0;let _0x19da3f=_0x47c9[_0xa09274];return _0x19da3f;};import{ConfirmMixin as _0x58cf51}from'ckeditor5-collaboration/src/collaboration-core';import{ButtonView as _0x5b62c3}from'ckeditor5/src/ui';import{icons as _0x4bc2b9}from'ckeditor5/src/core';import _0x16728b from'./basecommentthreadview';import{getTranslation as _0x2500c7}from'../../../utils/common-translations';export default class lt extends _0x58cf51(_0x16728b){constructor(_0x580279,_0x2b028d,_0x1afb8a,_0x55e08f){super(_0x580279,_0x2b028d,_0x1afb8a,_0x55e08f),this['commentThreadChildren']=this[_0x19da('0x16')](),this[_0x19da('0xb')][_0x19da('0x35')]([this[_0x19da('0x1')],this['commentThreadInputView']]),this[_0x19da('0x19')][_0x19da('0x32')]&&this[_0x19da('0xb')]['add'](this['commentThreadHeaderView'],0x0),this['_model']['on'](_0x19da('0x5'),(_0x1a3bd7,_0x125bf9,_0x22792a)=>{_0x22792a?this[_0x19da('0xb')]['add'](this[_0x19da('0x25')],0x0):this[_0x19da('0xb')][_0x19da('0x24')](this[_0x19da('0x25')]);}),this[_0x19da('0x34')]('actionIndicator',null),this[_0x19da('0x27')]=null,this['_boundFirstCommentView']=null,this[_0x19da('0x39')]=_0x580279,this[_0x19da('0x6')]=this[_0x19da('0x18')](),this[_0x19da('0x7')](this[_0x19da('0x11')]()),this['on'](_0x19da('0x21'),(_0x1bde66,_0x2f6a99,_0x5e21f2)=>{_0x5e21f2||this['_cancelAllConfirms']();}),this[_0x19da('0x1d')](this['_model'],_0x19da('0x1c'),(_0x5a6444,_0x4bd9fa,_0x3a94cb)=>{_0x3a94cb&&this[_0x19da('0xf')]();}),this[_0x19da('0x2b')]>0x0&&this[_0x19da('0x28')](),this['listenTo'](this[_0x19da('0x1')]['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}[_0x19da('0x11')](){const _0x12fed5=this[_0x19da('0x33')];return{'tag':_0x19da('0x13'),'attributes':{'class':['ck-thread',_0x19da('0x4'),_0x12fed5['if'](_0x19da('0xd'),_0x19da('0x31')),_0x12fed5['if'](_0x19da('0x2c'),'ck-thread--remove-confirmation'),_0x12fed5['to'](_0x19da('0x2e'),_0x281c17=>_0x281c17?_0x19da('0x30')+_0x281c17:'')],'data-thread-id':this[_0x19da('0x19')]['id'],'tabindex':-0x1},'children':[{'tag':_0x19da('0x13'),'attributes':{'class':'ck-thread__container'},'children':this[_0x19da('0xb')]}]};}[_0x19da('0xc')](){super[_0x19da('0xc')](),this[_0x19da('0x27')]=this['element']['querySelector'](_0x19da('0x2'));}[_0x19da('0xf')](){this[_0x19da('0x10')]();for(const _0x211442 of this['commentsListView'][_0x19da('0x23')])_0x211442[_0x19da('0x10')]();}[_0x19da('0x28')](){const {locale:_0x197c37}=this,_0x2e949c=this[_0x19da('0x1')][_0x19da('0x23')][_0x19da('0x1b')](0x0);_0x2e949c===this[_0x19da('0x17')]||_0x2e949c[_0x19da('0x38')]||(this[_0x19da('0x17')]=_0x2e949c,this[_0x19da('0x36')]('actionIndicator'),this[_0x19da('0x1e')]('actionIndicator')['to'](_0x2e949c,_0x19da('0x2e'),_0x3fb4d3=>'remove'===_0x3fb4d3?'remove':null),_0x2e949c[_0x19da('0x9')]=_0x2500c7(_0x197c37,_0x19da('0x2a')),_0x2e949c['removeButton']['on'](_0x19da('0x1f'),_0x27e780=>{_0x27e780['stop'](),this[_0x19da('0x37')](_0x2500c7(_0x197c37,_0x19da('0x2d')),this[_0x19da('0x27')])[_0x19da('0xe')](()=>{this[_0x19da('0x22')]('removeCommentThread');});},{'priority':_0x19da('0x26')}),_0x2e949c[_0x19da('0x8')]['add'](this['resolveButton'],0x0));}[_0x19da('0x18')](){const _0x36f5fd=new _0x5b62c3(this[_0x19da('0x39')]);return _0x36f5fd[_0x19da('0xa')]=_0x2500c7(this[_0x19da('0x39')],_0x19da('0x0')),_0x36f5fd['tooltip']=_0x2500c7(this['locale'],'Resolve'),_0x36f5fd[_0x19da('0x20')]=_0x4bc2b9[_0x19da('0x14')],_0x36f5fd[_0x19da('0x15')]({'attributes':{'class':_0x19da('0x1a')}}),_0x36f5fd[_0x19da('0x1e')]('isEnabled')['to'](this[_0x19da('0x19')],_0x19da('0x2f'),_0x2bc372=>!_0x2bc372),_0x36f5fd['bind'](_0x19da('0x12'))['to'](this['_model'],_0x19da('0x3'),this[_0x19da('0x19')],_0x19da('0x32'),(_0x4ac82f,_0x361b82)=>_0x4ac82f&&!_0x361b82),_0x36f5fd['on']('execute',()=>{this[_0x19da('0x22')](_0x19da('0x29'),this[_0x19da('0x19')]['id']);}),_0x36f5fd;}}