@ckeditor/ckeditor5-comments 35.1.0 → 35.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) 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 -0
  15. package/build/translations/es.js +1 -1
  16. package/build/translations/et.js +1 -1
  17. package/build/translations/fa.js +1 -0
  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 -0
  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/lang/contexts.json +2 -1
  55. package/lang/translations/af.po +4 -0
  56. package/lang/translations/ar.po +4 -0
  57. package/lang/translations/bg.po +4 -0
  58. package/lang/translations/bn.po +4 -0
  59. package/lang/translations/bs.po +4 -0
  60. package/lang/translations/ca.po +4 -0
  61. package/lang/translations/cs.po +4 -0
  62. package/lang/translations/da.po +4 -0
  63. package/lang/translations/de-ch.po +4 -0
  64. package/lang/translations/de.po +4 -0
  65. package/lang/translations/el.po +4 -0
  66. package/lang/translations/en-au.po +4 -0
  67. package/lang/translations/en.po +4 -0
  68. package/lang/translations/es-co.po +72 -0
  69. package/lang/translations/es.po +4 -0
  70. package/lang/translations/et.po +4 -0
  71. package/lang/translations/fa.po +71 -0
  72. package/lang/translations/fi.po +4 -0
  73. package/lang/translations/fr.po +4 -0
  74. package/lang/translations/gl.po +4 -0
  75. package/lang/translations/he.po +4 -0
  76. package/lang/translations/hi.po +4 -0
  77. package/lang/translations/hr.po +4 -0
  78. package/lang/translations/hu.po +4 -0
  79. package/lang/translations/id.po +4 -0
  80. package/lang/translations/it.po +4 -0
  81. package/lang/translations/ja.po +4 -0
  82. package/lang/translations/jv.po +4 -0
  83. package/lang/translations/ko.po +4 -0
  84. package/lang/translations/lt.po +4 -0
  85. package/lang/translations/lv.po +4 -0
  86. package/lang/translations/ms.po +4 -0
  87. package/lang/translations/nl.po +4 -0
  88. package/lang/translations/no.po +4 -0
  89. package/lang/translations/pl.po +4 -0
  90. package/lang/translations/pt-br.po +4 -0
  91. package/lang/translations/pt.po +4 -0
  92. package/lang/translations/ro.po +4 -0
  93. package/lang/translations/ru.po +4 -0
  94. package/lang/translations/sk.po +4 -0
  95. package/lang/translations/sr-latn.po +4 -0
  96. package/lang/translations/sr.po +4 -0
  97. package/lang/translations/sv.po +4 -0
  98. package/lang/translations/th.po +4 -0
  99. package/lang/translations/tk.po +4 -0
  100. package/lang/translations/tr.po +4 -0
  101. package/lang/translations/tt.po +70 -0
  102. package/lang/translations/ug.po +4 -0
  103. package/lang/translations/uk.po +4 -0
  104. package/lang/translations/ur.po +4 -0
  105. package/lang/translations/vi.po +4 -0
  106. package/lang/translations/zh-cn.po +4 -0
  107. package/lang/translations/zh.po +4 -0
  108. package/package.json +3 -3
  109. package/src/annotations/annotation.js +1 -1
  110. package/src/annotations/annotationcollection.js +1 -1
  111. package/src/annotations/annotations.js +1 -1
  112. package/src/annotations/annotationsuis.js +1 -1
  113. package/src/annotations/editorannotations.js +1 -1
  114. package/src/annotations/inlineannotations.js +1 -1
  115. package/src/annotations/narrowsidebar.js +1 -1
  116. package/src/annotations/sidebar.js +1 -1
  117. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  118. package/src/annotations/view/annotationview.js +1 -1
  119. package/src/annotations/view/sidebaritemview.js +1 -1
  120. package/src/annotations/view/sidebarview.js +1 -1
  121. package/src/annotations/widesidebar.js +1 -1
  122. package/src/comments/addcommentthreadcommand.js +1 -1
  123. package/src/comments/commentsediting.js +1 -1
  124. package/src/comments/commentsrepository.js +1 -1
  125. package/src/comments/commentsui.js +1 -1
  126. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  127. package/src/comments/integrations/importword.js +23 -0
  128. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  129. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  130. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  131. package/src/comments/ui/commentthreadcontroller.js +1 -1
  132. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  133. package/src/comments/ui/view/basecommentview.js +1 -1
  134. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  135. package/src/comments/ui/view/commentcontentview.js +1 -1
  136. package/src/comments/ui/view/commentinputview.js +1 -1
  137. package/src/comments/ui/view/commentslistview.js +1 -1
  138. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  139. package/src/comments/ui/view/commentthreadview.js +1 -1
  140. package/src/comments/ui/view/commentview.js +1 -1
  141. package/src/comments.js +1 -1
  142. package/src/commentsonly.js +1 -1
  143. package/src/utils/common-translations.js +1 -1
  144. package/src/utils/createmutationobserver.js +1 -1
  145. package/theme/comment.css +7 -0
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5abb=['config','change:placeholder','placeholderElement','change','destroy','editing','ready','data','create','init','end','assign','fire','plugins','model','setSelection','focus','getRoot','then','initialData','document','childCount','placeholder','createRoot','get','set','low','defaultPlugins','name','_updatePlaceholder','view'];(function(_0x4257eb,_0x5abbcb){const _0x20e728=function(_0x1c8b57){while(--_0x1c8b57){_0x4257eb['push'](_0x4257eb['shift']());}};_0x20e728(++_0x5abbcb);}(_0x5abb,0x17a));const _0x20e7=function(_0x4257eb,_0x5abbcb){_0x4257eb=_0x4257eb-0x0;let _0x20e728=_0x5abb[_0x4257eb];return _0x20e728;};import{Editor as _0xa1c6be,DataApiMixin as _0x38faf1}from'ckeditor5/src/core';import _0x4742d0 from'./commenteditorui';import{mix as _0x99cb56,ObservableMixin as _0x2a1785}from'ckeditor5/src/utils';import{enablePlaceholder as _0x138436,disablePlaceholder as _0x523f19}from'ckeditor5/src/engine';import{Clipboard as _0x3af6b4}from'ckeditor5/src/clipboard';import{Enter as _0x158731,ShiftEnter as _0x12d67e}from'ckeditor5/src/enter';import{SelectAll as _0x1f34e9}from'ckeditor5/src/select-all';import{Typing as _0x872a08}from'ckeditor5/src/typing';import{Undo as _0x45cbd8}from'ckeditor5/src/undo';import{Paragraph as _0x255927}from'ckeditor5/src/paragraph';export default class qt extends _0xa1c6be{constructor(_0x48a22e={}){(_0x48a22e=Object[_0x20e7('0x5')]({},_0x48a22e))[_0x20e7('0x7')]||(_0x48a22e['plugins']=qt[_0x20e7('0x15')]),super(_0x48a22e),this['ui']=new _0x4742d0(this),this[_0x20e7('0x13')]('placeholder',''),this['model']['document']['on'](_0x20e7('0x1c'),()=>this[_0x20e7('0x17')](),{'priority':_0x20e7('0x14')}),this['on'](_0x20e7('0x1a'),()=>this[_0x20e7('0x17')]()),this['model'][_0x20e7('0xe')][_0x20e7('0x11')]();}[_0x20e7('0x2')](){const _0x3bce27=this[_0x20e7('0x19')][_0x20e7('0x12')](_0x20e7('0xd'))||'';return this['initPlugins']()[_0x20e7('0xc')](()=>this['ui'][_0x20e7('0x3')]())['then'](()=>this[_0x20e7('0x1')][_0x20e7('0x3')](_0x3bce27))[_0x20e7('0xc')](()=>this[_0x20e7('0x6')](_0x20e7('0x0')));}[_0x20e7('0x1d')](){return super[_0x20e7('0x1d')]()[_0x20e7('0xc')](()=>this['ui']['destroy']());}[_0x20e7('0xa')](){this[_0x20e7('0x8')][_0x20e7('0x1c')](_0x4ac916=>{const _0x14cf77=this[_0x20e7('0x8')][_0x20e7('0xe')][_0x20e7('0xb')](),_0x4445c7=_0x14cf77['getChild'](_0x14cf77[_0x20e7('0xf')]-0x1);_0x4ac916[_0x20e7('0x9')](_0x4445c7,_0x20e7('0x4')),this[_0x20e7('0x1e')][_0x20e7('0x18')][_0x20e7('0xa')]();});}[_0x20e7('0x17')](){const _0x242ac6=this[_0x20e7('0x1e')]['view'],_0x591c26=_0x242ac6['document'][_0x20e7('0xb')](),_0xd573e7=_0x591c26['getChild'](0x0);_0x591c26[_0x20e7('0xf')]>0x1||!_0xd573e7||'p'!=_0xd573e7[_0x20e7('0x16')]?this[_0x20e7('0x1b')]&&(_0x523f19(_0x242ac6,this[_0x20e7('0x1b')]),this['placeholderElement']=void 0x0):(_0x138436({'view':_0x242ac6,'element':_0xd573e7,'text':this[_0x20e7('0x10')],'keepOnFocus':!0x0}),this['placeholderElement']=_0xd573e7);}}_0x99cb56(qt,_0x2a1785),_0x99cb56(qt,_0x38faf1),qt['defaultPlugins']=[_0x3af6b4,_0x158731,_0x12d67e,_0x1f34e9,_0x872a08,_0x45cbd8,_0x255927];
23
+ const _0x515c=['getRoot','editing','_updatePlaceholder','get','initPlugins','createRoot','document','destroy','create','ready','change','placeholder','childCount','setSelection','change:placeholder','model','getChild','placeholderElement','plugins','low','defaultPlugins','end','assign','focus','config','then'];(function(_0xcc2fb,_0x515c7b){const _0x2cc5fb=function(_0x1b90be){while(--_0x1b90be){_0xcc2fb['push'](_0xcc2fb['shift']());}};_0x2cc5fb(++_0x515c7b);}(_0x515c,0x67));const _0x2cc5=function(_0xcc2fb,_0x515c7b){_0xcc2fb=_0xcc2fb-0x0;let _0x2cc5fb=_0x515c[_0xcc2fb];return _0x2cc5fb;};import{Editor as _0x14fbe8,DataApiMixin as _0x3a8cba}from'ckeditor5/src/core';import _0x5472aa from'./commenteditorui';import{mix as _0x5ecd9b,ObservableMixin as _0x165484}from'ckeditor5/src/utils';import{enablePlaceholder as _0x33adfb,disablePlaceholder as _0x15e22f}from'ckeditor5/src/engine';import{Clipboard as _0x4dd7c8}from'ckeditor5/src/clipboard';import{Enter as _0x3c4590,ShiftEnter as _0x3ba4a9}from'ckeditor5/src/enter';import{SelectAll as _0x19398a}from'ckeditor5/src/select-all';import{Typing as _0x4653ea}from'ckeditor5/src/typing';import{Undo as _0x30d3a9}from'ckeditor5/src/undo';import{Paragraph as _0xb8d232}from'ckeditor5/src/paragraph';export default class zt extends _0x14fbe8{constructor(_0x10e242={}){(_0x10e242=Object[_0x2cc5('0x17')]({},_0x10e242))[_0x2cc5('0x13')]||(_0x10e242[_0x2cc5('0x13')]=zt[_0x2cc5('0x15')]),super(_0x10e242),this['ui']=new _0x5472aa(this),this['set'](_0x2cc5('0xc'),''),this['model'][_0x2cc5('0x7')]['on'](_0x2cc5('0xb'),()=>this[_0x2cc5('0x3')](),{'priority':_0x2cc5('0x14')}),this['on'](_0x2cc5('0xf'),()=>this[_0x2cc5('0x3')]()),this[_0x2cc5('0x10')][_0x2cc5('0x7')][_0x2cc5('0x6')]();}[_0x2cc5('0x9')](){const _0x2806ac=this[_0x2cc5('0x19')][_0x2cc5('0x4')]('initialData')||'';return this[_0x2cc5('0x5')]()[_0x2cc5('0x0')](()=>this['ui']['init']())[_0x2cc5('0x0')](()=>this['data']['init'](_0x2806ac))[_0x2cc5('0x0')](()=>this['fire'](_0x2cc5('0xa')));}[_0x2cc5('0x8')](){return super[_0x2cc5('0x8')]()[_0x2cc5('0x0')](()=>this['ui'][_0x2cc5('0x8')]());}[_0x2cc5('0x18')](){this['model'][_0x2cc5('0xb')](_0x34339e=>{const _0x3ba4cb=this[_0x2cc5('0x10')][_0x2cc5('0x7')][_0x2cc5('0x1')](),_0x1fc1c1=_0x3ba4cb[_0x2cc5('0x11')](_0x3ba4cb[_0x2cc5('0xd')]-0x1);_0x34339e[_0x2cc5('0xe')](_0x1fc1c1,_0x2cc5('0x16')),this['editing']['view']['focus']();});}[_0x2cc5('0x3')](){const _0x4c5745=this[_0x2cc5('0x2')]['view'],_0x357f81=_0x4c5745[_0x2cc5('0x7')][_0x2cc5('0x1')](),_0x52b2ac=_0x357f81['getChild'](0x0);_0x357f81['childCount']>0x1||!_0x52b2ac||'p'!=_0x52b2ac['name']?this['placeholderElement']&&(_0x15e22f(_0x4c5745,this[_0x2cc5('0x12')]),this[_0x2cc5('0x12')]=void 0x0):(_0x33adfb({'view':_0x4c5745,'element':_0x52b2ac,'text':this[_0x2cc5('0xc')],'keepOnFocus':!0x0}),this[_0x2cc5('0x12')]=_0x52b2ac);}}_0x5ecd9b(zt,_0x165484),_0x5ecd9b(zt,_0x3a8cba),zt[_0x2cc5('0x15')]=[_0x4dd7c8,_0x3c4590,_0x3ba4a9,_0x19398a,_0x4653ea,_0x30d3a9,_0xb8d232];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1ebd=['bind','fire','rootName','attachDomRoot','locale','editable','editing','document','destroy','editor','view','element','render','ready','name','setEditableElement','isFocused','getRoot'];(function(_0x386613,_0x1ebd0f){const _0x4fb214=function(_0x55b002){while(--_0x55b002){_0x386613['push'](_0x386613['shift']());}};_0x4fb214(++_0x1ebd0f);}(_0x1ebd,0x151));const _0x4fb2=function(_0x386613,_0x1ebd0f){_0x386613=_0x386613-0x0;let _0x4fb214=_0x1ebd[_0x386613];return _0x4fb214;};import{EditorUI as _0x49dd56}from'ckeditor5/src/core';import _0x2ec260 from'./commenteditoruiview';export default class yt extends _0x49dd56{constructor(_0x3dca61){super(_0x3dca61),this[_0x4fb2('0xf')]=new _0x2ec260(_0x3dca61[_0x4fb2('0x9')],_0x3dca61[_0x4fb2('0xb')][_0x4fb2('0xf')]);}get[_0x4fb2('0x10')](){return this['view'][_0x4fb2('0x10')];}['init'](){const _0xbaf1ad=this[_0x4fb2('0xe')][_0x4fb2('0xb')][_0x4fb2('0xf')],_0x3f5f56=this[_0x4fb2('0xf')][_0x4fb2('0xa')],_0x4965e0=_0xbaf1ad[_0x4fb2('0xc')][_0x4fb2('0x4')]();_0x3f5f56[_0x4fb2('0x1')]=_0x4965e0[_0x4fb2('0x7')],this[_0x4fb2('0xf')][_0x4fb2('0x11')]();const _0x11212c=_0x3f5f56[_0x4fb2('0x10')];this[_0x4fb2('0x2')](_0x3f5f56[_0x4fb2('0x1')],_0x11212c),this[_0x4fb2('0xf')]['editable'][_0x4fb2('0x5')](_0x4fb2('0x3'))['to'](this['focusTracker']),_0xbaf1ad[_0x4fb2('0x8')](_0x11212c),this[_0x4fb2('0x6')](_0x4fb2('0x0'));}[_0x4fb2('0xd')](){this[_0x4fb2('0xf')][_0x4fb2('0xd')](),super[_0x4fb2('0xd')]();}}
23
+ const _0x21f2=['attachDomRoot','isFocused','getRoot','focusTracker','editing','destroy','editor','element','rootName','ready','locale','fire','name','setEditableElement','view','init','editable'];(function(_0x5e8c71,_0x21f2b6){const _0x56c392=function(_0x522b60){while(--_0x522b60){_0x5e8c71['push'](_0x5e8c71['shift']());}};_0x56c392(++_0x21f2b6);}(_0x21f2,0x1f1));const _0x56c3=function(_0x5e8c71,_0x21f2b6){_0x5e8c71=_0x5e8c71-0x0;let _0x56c392=_0x21f2[_0x5e8c71];return _0x56c392;};import{EditorUI as _0x23458e}from'ckeditor5/src/core';import _0x4d9e86 from'./commenteditoruiview';export default class wt extends _0x23458e{constructor(_0x64abf){super(_0x64abf),this[_0x56c3('0xa')]=new _0x4d9e86(_0x64abf[_0x56c3('0x6')],_0x64abf[_0x56c3('0x0')][_0x56c3('0xa')]);}get[_0x56c3('0x3')](){return this[_0x56c3('0xa')]['element'];}[_0x56c3('0xb')](){const _0x5666ca=this[_0x56c3('0x2')][_0x56c3('0x0')]['view'],_0x18500b=this['view'][_0x56c3('0xc')],_0x1bab1b=_0x5666ca['document'][_0x56c3('0xf')]();_0x18500b[_0x56c3('0x8')]=_0x1bab1b[_0x56c3('0x4')],this['view']['render']();const _0x4edccc=_0x18500b['element'];this[_0x56c3('0x9')](_0x18500b[_0x56c3('0x8')],_0x4edccc),this[_0x56c3('0xa')][_0x56c3('0xc')]['bind'](_0x56c3('0xe'))['to'](this[_0x56c3('0x10')]),_0x5666ca[_0x56c3('0xd')](_0x4edccc),this[_0x56c3('0x7')](_0x56c3('0x5'));}[_0x56c3('0x1')](){this[_0x56c3('0xa')][_0x56c3('0x1')](),super[_0x56c3('0x1')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x207c=['_createVoiceLabel','ck-editor__main','main','createCollection','ck-rounded-corners','add','editable','ck-editor__aria-label_','ck-comment__input','Comment\x20editor','setTemplate','uiLanguageDirection','presentation','ck-voice-label','_voiceLabelView','ck-editor','comment','render','div','ck-reset','extendTemplate','uiLanguage','focus','element'];(function(_0x166cef,_0x207ca7){const _0x5a3376=function(_0x52347){while(--_0x52347){_0x166cef['push'](_0x166cef['shift']());}};_0x5a3376(++_0x207ca7);}(_0x207c,0xc2));const _0x5a33=function(_0x166cef,_0x207ca7){_0x166cef=_0x166cef-0x0;let _0x5a3376=_0x207c[_0x166cef];return _0x5a3376;};import{InlineEditableUIView as _0x14e3b1,EditorUIView as _0x14bbf0,LabelView as _0x4bb05a}from'ckeditor5/src/ui';import{uid as _0x248f46}from'ckeditor5/src/utils';import{getTranslation as _0x3ec66a}from'../../../utils/common-translations';export default class At extends _0x14bbf0{constructor(_0xb755b0,_0x568def){super(_0xb755b0);const _0xf461b0=_0x248f46();this[_0x5a33('0x0')]=this[_0x5a33('0x1')](),this[_0x5a33('0x4')]=new _0x14e3b1(_0xb755b0,_0x568def),this[_0x5a33('0xc')]=this['_createVoiceLabel'](_0xf461b0,_0xb755b0),this[_0x5a33('0x8')]({'tag':'div','attributes':{'class':[_0x5a33('0x11'),_0x5a33('0xd'),_0x5a33('0x2'),_0x5a33('0x6')],'role':_0x5a33('0xe'),'dir':_0xb755b0[_0x5a33('0x9')],'lang':_0xb755b0[_0x5a33('0x13')],'aria-labelledby':'cke-editor__aria-label_'+_0xf461b0},'children':[this['_voiceLabelView'],{'tag':_0x5a33('0x10'),'attributes':{'class':_0x5a33('0x17'),'role':_0x5a33('0xa')},'children':this[_0x5a33('0x0')]}]});}[_0x5a33('0xf')](){super[_0x5a33('0xf')](),this[_0x5a33('0x0')][_0x5a33('0x3')](this[_0x5a33('0x4')]);}[_0x5a33('0x14')](){this[_0x5a33('0x4')][_0x5a33('0x15')][_0x5a33('0x14')]();}[_0x5a33('0x16')](_0x589eab,_0x277781){const _0x4bc374=new _0x4bb05a();return _0x4bc374['text']=_0x3ec66a(_0x277781,_0x5a33('0x7')),_0x4bc374[_0x5a33('0x12')]({'attributes':{'id':_0x5a33('0x5')+_0x589eab,'class':_0x5a33('0xb')}}),_0x4bc374;}}
23
+ const _0x42fb=['comment','_createVoiceLabel','ck-editor__main','cke-editor__aria-label_','uiLanguageDirection','text','ck-comment__input','element','div','editable','_voiceLabelView','focus','createCollection','uiLanguage','Comment\x20editor','main','presentation','ck-editor__aria-label_','add','render'];(function(_0x3bd4fd,_0x42fb2b){const _0x521206=function(_0x272375){while(--_0x272375){_0x3bd4fd['push'](_0x3bd4fd['shift']());}};_0x521206(++_0x42fb2b);}(_0x42fb,0x15f));const _0x5212=function(_0x3bd4fd,_0x42fb2b){_0x3bd4fd=_0x3bd4fd-0x0;let _0x521206=_0x42fb[_0x3bd4fd];return _0x521206;};import{InlineEditableUIView as _0x59267f,EditorUIView as _0x48ff4f,LabelView as _0x76f3b4}from'ckeditor5/src/ui';import{uid as _0x7e1add}from'ckeditor5/src/utils';import{getTranslation as _0x2402e6}from'../../../utils/common-translations';export default class Bt extends _0x48ff4f{constructor(_0x4f653f,_0xcfb97a){super(_0x4f653f);const _0x5efad3=_0x7e1add();this[_0x5212('0x4')]=this[_0x5212('0x1')](),this[_0x5212('0x12')]=new _0x59267f(_0x4f653f,_0xcfb97a),this[_0x5212('0x13')]=this[_0x5212('0xa')](_0x5efad3,_0x4f653f),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners',_0x5212('0xf')],'role':_0x5212('0x9'),'dir':_0x4f653f[_0x5212('0xd')],'lang':_0x4f653f[_0x5212('0x2')],'aria-labelledby':_0x5212('0xc')+_0x5efad3},'children':[this[_0x5212('0x13')],{'tag':_0x5212('0x11'),'attributes':{'class':_0x5212('0xb'),'role':_0x5212('0x5')},'children':this[_0x5212('0x4')]}]});}['render'](){super[_0x5212('0x8')](),this[_0x5212('0x4')][_0x5212('0x7')](this[_0x5212('0x12')]);}[_0x5212('0x0')](){this[_0x5212('0x12')][_0x5212('0x10')]['focus']();}[_0x5212('0xa')](_0x1795d5,_0x1b799f){const _0x309529=new _0x76f3b4();return _0x309529[_0x5212('0xe')]=_0x2402e6(_0x1b799f,_0x5212('0x3')),_0x309529['extendTemplate']({'attributes':{'id':_0x5212('0x6')+_0x1795d5,'class':'ck-voice-label'}}),_0x309529;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x188f=['model','_localUser','remove','view','updateComment','destroy','_isAttached','addComment','listenTo','removeCommentThread','removeComment','getComment'];(function(_0x17af83,_0x188fa9){var _0x59c17f=function(_0x2ca537){while(--_0x2ca537){_0x17af83['push'](_0x17af83['shift']());}};_0x59c17f(++_0x188fa9);}(_0x188f,0xc7));var _0x59c1=function(_0x17af83,_0x188fa9){_0x17af83=_0x17af83-0x0;var _0x59c17f=_0x188f[_0x17af83];return _0x59c17f;};import{ObservableMixin as _0x142768,mix as _0x2689fc}from'ckeditor5/src/utils';export default class et{constructor(_0x578732,_0x4320a7){this['model']=_0x578732,this[_0x59c1('0x5')]['_isAttached']=!0x0,this[_0x59c1('0x8')]=_0x4320a7,this[_0x59c1('0x1')](_0x4320a7,_0x59c1('0x2'),()=>this[_0x59c1('0x7')]()),this['listenTo'](_0x4320a7,_0x59c1('0x0'),(_0x4a936b,_0x85dc67)=>this[_0x59c1('0x0')](_0x85dc67)),this['listenTo'](_0x4320a7,_0x59c1('0x9'),(_0x4c00f0,_0x3053fb,_0x1c606b)=>this[_0x59c1('0x9')](_0x3053fb,_0x1c606b)),this['listenTo'](_0x4320a7,_0x59c1('0x3'),(_0x67309b,_0x2debc0)=>this[_0x59c1('0x3')](_0x2debc0));}['remove'](){this[_0x59c1('0x5')][_0x59c1('0x7')]();}[_0x59c1('0x0')](_0x315269){this[_0x59c1('0x5')][_0x59c1('0x0')]({'content':_0x315269,'authorId':this[_0x59c1('0x8')][_0x59c1('0x6')]['id']});}[_0x59c1('0x9')](_0x391825,_0x171a56){this[_0x59c1('0x5')][_0x59c1('0x4')](_0x391825)['update']({'content':_0x171a56});}[_0x59c1('0x3')](_0x46e215){this[_0x59c1('0x5')]['getComment'](_0x46e215)[_0x59c1('0x7')]();}[_0x59c1('0xa')](){this['stopListening'](),this['model'][_0x59c1('0xb')]=!0x1;}}_0x2689fc(et,_0x142768);
23
+ var _0x32af=['updateComment','removeCommentThread','getComment','model','_isAttached','destroy','update','_localUser','removeComment','addComment','remove','view','listenTo'];(function(_0x7d02df,_0x32af67){var _0x57deb6=function(_0x3b10b0){while(--_0x3b10b0){_0x7d02df['push'](_0x7d02df['shift']());}};_0x57deb6(++_0x32af67);}(_0x32af,0x84));var _0x57de=function(_0x7d02df,_0x32af67){_0x7d02df=_0x7d02df-0x0;var _0x57deb6=_0x32af[_0x7d02df];return _0x57deb6;};import{ObservableMixin as _0x3c4fdd,mix as _0x2e6dac}from'ckeditor5/src/utils';export default class et{constructor(_0x4091a8,_0x349c4b){this['model']=_0x4091a8,this['model'][_0x57de('0x2')]=!0x0,this[_0x57de('0x9')]=_0x349c4b,this[_0x57de('0xa')](_0x349c4b,_0x57de('0xc'),()=>this[_0x57de('0x8')]()),this[_0x57de('0xa')](_0x349c4b,_0x57de('0x7'),(_0x24756b,_0x1b430c)=>this[_0x57de('0x7')](_0x1b430c)),this[_0x57de('0xa')](_0x349c4b,_0x57de('0xb'),(_0x2237ff,_0x1beb38,_0x338da0)=>this[_0x57de('0xb')](_0x1beb38,_0x338da0)),this[_0x57de('0xa')](_0x349c4b,'removeComment',(_0x82557c,_0x5594f3)=>this['removeComment'](_0x5594f3));}[_0x57de('0x8')](){this['model']['remove']();}[_0x57de('0x7')](_0x5306e9){this['model']['addComment']({'content':_0x5306e9,'authorId':this[_0x57de('0x9')][_0x57de('0x5')]['id']});}[_0x57de('0xb')](_0x2fdbf5,_0x1c5de7){this['model'][_0x57de('0x0')](_0x2fdbf5)[_0x57de('0x4')]({'content':_0x1c5de7});}[_0x57de('0x6')](_0x5072c0){this[_0x57de('0x1')][_0x57de('0x0')](_0x5072c0)[_0x57de('0x8')]();}[_0x57de('0x3')](){this['stopListening'](),this[_0x57de('0x1')][_0x57de('0x2')]=!0x1;}}_0x2e6dac(et,_0x3c4fdd);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ed5=['commentThreadInputView','element','isReadOnly','editorConfig','assign','isDirty','value','destroy','commentsListView','commentInputView','hasDirtyComment','addComment','removeCommentThread','placeholder','updateComment','set','focus','locale','bind','delegate','length','_model','_config','cancel','disabledSubmit','_createCommentThreadInputView','removeComment','Write\x20a\x20comment...','fire'];(function(_0x4a0e17,_0x5ed548){const _0x219fd0=function(_0x1d10e9){while(--_0x1d10e9){_0x4a0e17['push'](_0x4a0e17['shift']());}};_0x219fd0(++_0x5ed548);}(_0x5ed5,0x19b));const _0x219f=function(_0x4a0e17,_0x5ed548){_0x4a0e17=_0x4a0e17-0x0;let _0x219fd0=_0x5ed5[_0x4a0e17];return _0x219fd0;};import{View as _0x2a451}from'ckeditor5/src/ui';import _0xf6a50 from'./commentthreadinputview';import _0xf90091 from'./commentslistview';import{getTranslation as _0x2643f3}from'../../../utils/common-translations';export default class Rt extends _0x2a451{constructor(_0x548a0a,_0x4ecf2a,_0x9401aa,_0x412aa6){super(_0x548a0a),this[_0x219f('0xa')]('isActive',!0x1),this['set']('isDirty',!0x1),this[_0x219f('0x10')]=_0x4ecf2a,this['_localUser']=_0x9401aa,this[_0x219f('0x11')]=_0x412aa6,this[_0x219f('0x3')]=new _0xf90091(_0x548a0a,_0x4ecf2a,Object[_0x219f('0x1c')]({'CommentView':this[_0x219f('0x11')]['CommentView']},_0x412aa6)),this['commentsListView'][_0x219f('0xe')](_0x219f('0x15'))['to'](this),this['commentsListView'][_0x219f('0xe')](_0x219f('0x9'))['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this[_0x219f('0xa')](_0x219f('0xf'),this[_0x219f('0x3')][_0x219f('0xf')]),this['bind']('length')['to'](this['commentsListView'],_0x219f('0xf')),this[_0x219f('0x18')]=this['_createCommentThreadInputView'](),this['on'](_0x219f('0x15'),()=>this[_0x219f('0xb')]()),this['bind'](_0x219f('0x0'))['to'](this[_0x219f('0x3')],_0x219f('0x5'),this[_0x219f('0x18')][_0x219f('0x4')],_0x219f('0x1'),(_0x549a2d,_0x189716)=>_0x549a2d||!!_0x189716);}[_0x219f('0xb')](){this[_0x219f('0x19')][_0x219f('0xb')]();}['destroy'](){this[_0x219f('0x0')]=!0x1,this[_0x219f('0x3')][_0x219f('0x2')](),this[_0x219f('0x18')]['destroy'](),super['destroy']();}[_0x219f('0x14')](){const _0x5aa0dd=new _0xf6a50(this[_0x219f('0xc')],this['_localUser'],this[_0x219f('0x11')][_0x219f('0x1b')]),_0x38997f=_0x5aa0dd['commentInputView'];return _0x5aa0dd[_0x219f('0xd')]('showInput')['to'](this,'isActive',this[_0x219f('0x10')],'isReadOnly',_0x38997f,_0x219f('0x1'),(_0x5f29b6,_0x1fead8,_0x5707ac)=>!!_0x5707ac||_0x5f29b6&&!_0x1fead8),_0x38997f[_0x219f('0xd')](_0x219f('0x8'))['to'](this,_0x219f('0xf'),_0xcd29cf=>_0x2643f3(this[_0x219f('0xc')],_0xcd29cf?'Reply...':_0x219f('0x16'))),_0x38997f['on']('submit',(_0x32ae3a,_0x40ecfe)=>{this[_0x219f('0x17')](_0x219f('0x6'),_0x40ecfe);}),_0x38997f['on'](_0x219f('0x12'),()=>{this[_0x219f('0xb')]();}),_0x38997f[_0x219f('0xd')](_0x219f('0x13'))['to'](this[_0x219f('0x10')],_0x219f('0x1a')),_0x38997f['on']('cancel',_0x3dbfe0=>{0x0==this[_0x219f('0xf')]&&(this['fire'](_0x219f('0x7')),_0x3dbfe0['stop']());}),this['on']('change:isActive',(_0xa2bd41,_0x15daeb,_0x4d3a93)=>{_0x4d3a93||this[_0x219f('0xf')]||_0x38997f[_0x219f('0x1')]||this['fire'](_0x219f('0x7'));}),_0x5aa0dd;}}
23
+ const _0x36b5=['submit','isDirty','commentInputView','updateComment','Reply...','isReadOnly','_model','removeCommentThread','assign','hasDirtyComment','delegate','destroy','set','commentsListView','isActive','length','disabledSubmit','_localUser','placeholder','locale','fire','_config','commentThreadInputView','bind','removeComment','value','stop','focus','Write\x20a\x20comment...','editorConfig'];(function(_0x3100a9,_0x36b576){const _0x13d953=function(_0x2fb421){while(--_0x2fb421){_0x3100a9['push'](_0x3100a9['shift']());}};_0x13d953(++_0x36b576);}(_0x36b5,0x132));const _0x13d9=function(_0x3100a9,_0x36b576){_0x3100a9=_0x3100a9-0x0;let _0x13d953=_0x36b5[_0x3100a9];return _0x13d953;};import{View as _0x2f09f4}from'ckeditor5/src/ui';import _0x4aa580 from'./commentthreadinputview';import _0x5054a9 from'./commentslistview';import{getTranslation as _0x1f9d51}from'../../../utils/common-translations';export default class Rt extends _0x2f09f4{constructor(_0x516ae9,_0x41aa5e,_0x2d7ed8,_0xe4ee21){super(_0x516ae9),this['set'](_0x13d9('0x8'),!0x1),this[_0x13d9('0x6')](_0x13d9('0x19'),!0x1),this[_0x13d9('0x0')]=_0x41aa5e,this[_0x13d9('0xb')]=_0x2d7ed8,this[_0x13d9('0xf')]=_0xe4ee21,this['commentsListView']=new _0x5054a9(_0x516ae9,_0x41aa5e,Object[_0x13d9('0x2')]({'CommentView':this[_0x13d9('0xf')]['CommentView']},_0xe4ee21)),this[_0x13d9('0x7')][_0x13d9('0x4')](_0x13d9('0x12'))['to'](this),this[_0x13d9('0x7')][_0x13d9('0x4')](_0x13d9('0x1b'))['to'](this),this[_0x13d9('0x7')]['bind'](_0x13d9('0x8'))['to'](this),this[_0x13d9('0x6')](_0x13d9('0x9'),this[_0x13d9('0x7')]['length']),this[_0x13d9('0x11')]('length')['to'](this[_0x13d9('0x7')],_0x13d9('0x9')),this[_0x13d9('0x10')]=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this[_0x13d9('0x15')]()),this[_0x13d9('0x11')](_0x13d9('0x19'))['to'](this[_0x13d9('0x7')],_0x13d9('0x3'),this[_0x13d9('0x10')]['commentInputView'],'value',(_0x2d6304,_0x3397bc)=>_0x2d6304||!!_0x3397bc);}[_0x13d9('0x15')](){this['element'][_0x13d9('0x15')]();}[_0x13d9('0x5')](){this[_0x13d9('0x19')]=!0x1,this[_0x13d9('0x7')][_0x13d9('0x5')](),this[_0x13d9('0x10')][_0x13d9('0x5')](),super[_0x13d9('0x5')]();}['_createCommentThreadInputView'](){const _0x2d2d59=new _0x4aa580(this[_0x13d9('0xd')],this['_localUser'],this[_0x13d9('0xf')][_0x13d9('0x17')]),_0x1fb65e=_0x2d2d59[_0x13d9('0x1a')];return _0x2d2d59[_0x13d9('0x11')]('showInput')['to'](this,'isActive',this[_0x13d9('0x0')],_0x13d9('0x1d'),_0x1fb65e,_0x13d9('0x13'),(_0x56a1cf,_0x24df6f,_0x49c09a)=>!!_0x49c09a||_0x56a1cf&&!_0x24df6f),_0x1fb65e[_0x13d9('0x11')](_0x13d9('0xc'))['to'](this,_0x13d9('0x9'),_0x356927=>_0x1f9d51(this[_0x13d9('0xd')],_0x356927?_0x13d9('0x1c'):_0x13d9('0x16'))),_0x1fb65e['on'](_0x13d9('0x18'),(_0x546896,_0x843701)=>{this[_0x13d9('0xe')]('addComment',_0x843701);}),_0x1fb65e['on']('cancel',()=>{this['focus']();}),_0x1fb65e['bind'](_0x13d9('0xa'))['to'](this[_0x13d9('0x0')],_0x13d9('0x1d')),_0x1fb65e['on']('cancel',_0x597aa2=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x597aa2[_0x13d9('0x14')]());}),this['on']('change:isActive',(_0x295cf6,_0x4bb786,_0x328e2b)=>{_0x328e2b||this['length']||_0x1fb65e[_0x13d9('0x13')]||this['fire'](_0x13d9('0x1'));}),_0x2d2d59;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x187b=['set','destroy','focus','switchToEditMode','_createCommentContentView','isCollapsed','fire','updateComment','expand','collapse','disabledSubmit','createCollection','editorConfig','visibleView','cancel','isEditMode','_config','isReadOnly','switchToDisplayMode','element','content','maxCommentCharsWhenCollapsed','add','get','remove','_createCommentInputView','bind','_model','locale'];(function(_0x1af3a3,_0x187b51){const _0x3b5a02=function(_0xdcd934){while(--_0xdcd934){_0x1af3a3['push'](_0x1af3a3['shift']());}};_0x3b5a02(++_0x187b51);}(_0x187b,0xd5));const _0x3b5a=function(_0x1af3a3,_0x187b51){_0x1af3a3=_0x1af3a3-0x0;let _0x3b5a02=_0x187b[_0x1af3a3];return _0x3b5a02;};import{View as _0x1e16d4}from'ckeditor5/src/ui';import{trimHtml as _0x4ee5bb}from'ckeditor5-collaboration/src/collaboration-core';import _0x51e952 from'./commentcontentview';import _0x3e9c35 from'./commentinputview';export default class Vt extends _0x1e16d4{constructor(_0xcd709,_0x4c098d,_0x22b39e){super(_0xcd709),this['_model']=_0x4c098d,this['_config']=_0x22b39e,this[_0x3b5a('0x13')](_0x3b5a('0x5'),!0x1),this[_0x3b5a('0x13')]('isCollapsed',!0x0),this[_0x3b5a('0x3')]=this[_0x3b5a('0x1')](),this[_0x3b5a('0x3')]['add'](this[_0x3b5a('0x17')]());}[_0x3b5a('0x1b')](){this[_0x3b5a('0x18')]=!0x1;}[_0x3b5a('0x1c')](){this['isEditMode']||(this['isCollapsed']=!0x0);}['focus'](){this[_0x3b5a('0x9')][_0x3b5a('0x15')]();}async[_0x3b5a('0x14')](){await this[_0x3b5a('0x3')][_0x3b5a('0xd')](0x0)['destroy'](),super['destroy']();}[_0x3b5a('0x16')](){this['isEditMode']||(this['isEditMode']=!0x0,this[_0x3b5a('0x3')][_0x3b5a('0xe')](0x0)[_0x3b5a('0x14')](),this[_0x3b5a('0x3')][_0x3b5a('0xc')](this['_createCommentInputView']()));}[_0x3b5a('0x8')](){this['isEditMode']&&(this[_0x3b5a('0x5')]=!0x1,this[_0x3b5a('0x3')][_0x3b5a('0xe')](0x0)[_0x3b5a('0x14')](),this[_0x3b5a('0x3')][_0x3b5a('0xc')](this['_createCommentContentView']()));}[_0x3b5a('0x17')](){const _0xe554bb=new _0x51e952(this[_0x3b5a('0x12')]);return _0xe554bb[_0x3b5a('0x10')](_0x3b5a('0xa'))['to'](this['_model'],_0x3b5a('0xa'),this,_0x3b5a('0x18'),(_0x132069,_0x3fd1c5)=>_0x3fd1c5?_0x4ee5bb(_0x132069,{'limit':this['_config'][_0x3b5a('0xb')]}):_0x132069),_0xe554bb;}[_0x3b5a('0xf')](){this['_config'][_0x3b5a('0x2')]||(this[_0x3b5a('0x6')][_0x3b5a('0x2')]={}),this[_0x3b5a('0x6')][_0x3b5a('0x2')]['initialData']=this['_model']['content'];const _0x929819=new _0x3e9c35(this[_0x3b5a('0x12')],this[_0x3b5a('0x6')][_0x3b5a('0x2')]);return _0x929819['value']=this[_0x3b5a('0x11')][_0x3b5a('0xa')],_0x929819['bind'](_0x3b5a('0x0'))['to'](this[_0x3b5a('0x11')],_0x3b5a('0x7')),_0x929819['on']('submit',(_0x5910e0,_0x508348)=>{this[_0x3b5a('0x19')](_0x3b5a('0x1a'),this[_0x3b5a('0x11')]['id'],_0x508348),this[_0x3b5a('0x8')](),this[_0x3b5a('0x15')]();}),_0x929819['on'](_0x3b5a('0x4'),()=>{this['switchToDisplayMode'](),this[_0x3b5a('0x15')]();}),_0x929819['once']('editorReady',()=>{_0x929819[_0x3b5a('0x15')]();}),_0x929819;}}
23
+ const _0x14bf=['switchToDisplayMode','editorReady','locale','updateComment','content','bind','get','createCollection','isEditMode','createEditor','maxCommentCharsWhenCollapsed','_config','focus','element','isCollapsed','destroy','_model','isReadOnly','fire','visibleView','submit','_createCommentInputView','cancel','editorConfig','value','set','_createCommentContentView','expand'];(function(_0x48b302,_0x14bfd7){const _0x20ec2c=function(_0x2da159){while(--_0x2da159){_0x48b302['push'](_0x48b302['shift']());}};_0x20ec2c(++_0x14bfd7);}(_0x14bf,0x195));const _0x20ec=function(_0x48b302,_0x14bfd7){_0x48b302=_0x48b302-0x0;let _0x20ec2c=_0x14bf[_0x48b302];return _0x20ec2c;};import{View as _0x381491}from'ckeditor5/src/ui';import{trimHtml as _0x7671d1}from'ckeditor5-collaboration/src/collaboration-core';import _0x3c1ae4 from'./commentcontentview';import _0x98b830 from'./commentinputview';export default class Vt extends _0x381491{constructor(_0xdf59cf,_0x26572a,_0x506683){super(_0xdf59cf),this[_0x20ec('0x3')]=_0x26572a,this['_config']=_0x506683,this[_0x20ec('0xc')]('isEditMode',!0x1),this[_0x20ec('0xc')]('isCollapsed',!0x0),this[_0x20ec('0x6')]=this[_0x20ec('0x16')](),this[_0x20ec('0x6')]['add'](this['_createCommentContentView']());}[_0x20ec('0xe')](){this['isCollapsed']=!0x1;}['collapse'](){this[_0x20ec('0x17')]||(this[_0x20ec('0x1')]=!0x0);}[_0x20ec('0x1b')](){this[_0x20ec('0x0')][_0x20ec('0x1b')]();}async[_0x20ec('0x2')](){await this['visibleView'][_0x20ec('0x15')](0x0)['destroy'](),super[_0x20ec('0x2')]();}['switchToEditMode'](){this['isEditMode']||(this[_0x20ec('0x17')]=!0x0,this[_0x20ec('0x6')]['remove'](0x0)[_0x20ec('0x2')](),this[_0x20ec('0x6')]['add'](this[_0x20ec('0x8')]()));}[_0x20ec('0xf')](){this[_0x20ec('0x17')]&&(this['isEditMode']=!0x1,this[_0x20ec('0x6')]['remove'](0x0)['destroy'](),this[_0x20ec('0x6')]['add'](this['_createCommentContentView']()));}[_0x20ec('0xd')](){const _0x39c45c=new _0x3c1ae4(this[_0x20ec('0x11')]);return _0x39c45c[_0x20ec('0x14')](_0x20ec('0x13'))['to'](this[_0x20ec('0x3')],_0x20ec('0x13'),this,_0x20ec('0x1'),(_0x12d459,_0x20fb40)=>_0x20fb40?_0x7671d1(_0x12d459,{'limit':this[_0x20ec('0x1a')][_0x20ec('0x19')]}):_0x12d459),_0x39c45c;}['_createCommentInputView'](){this['_config'][_0x20ec('0xa')]||(this[_0x20ec('0x1a')]['editorConfig']={}),this[_0x20ec('0x1a')][_0x20ec('0xa')]['initialData']=this[_0x20ec('0x3')][_0x20ec('0x13')];const _0x5e54b1=new _0x98b830(this['locale'],this['_config']['editorConfig']);return _0x5e54b1[_0x20ec('0xb')]=this['_model'][_0x20ec('0x13')],_0x5e54b1[_0x20ec('0x14')]('disabledSubmit')['to'](this[_0x20ec('0x3')],_0x20ec('0x4')),_0x5e54b1['on'](_0x20ec('0x7'),(_0x49bbfb,_0x2b24b1)=>{this[_0x20ec('0x5')](_0x20ec('0x12'),this[_0x20ec('0x3')]['id'],_0x2b24b1),this['switchToDisplayMode'](),this[_0x20ec('0x1b')]();}),_0x5e54b1['on'](_0x20ec('0x9'),()=>{this['switchToDisplayMode'](),this['focus']();}),_0x5e54b1['once'](_0x20ec('0x10'),()=>{_0x5e54b1['focus']();}),_0x5e54b1[_0x20ec('0x18')](),_0x5e54b1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x37ce=['count','bindTemplate','set','NUMBER_OF_COMMENTS','setTemplate'];(function(_0x527749,_0x37ce6d){const _0x496f08=function(_0x35fbe9){while(--_0x35fbe9){_0x527749['push'](_0x527749['shift']());}};_0x496f08(++_0x37ce6d);}(_0x37ce,0x1be));const _0x496f=function(_0x527749,_0x37ce6d){_0x527749=_0x527749-0x0;let _0x496f08=_0x37ce[_0x527749];return _0x496f08;};import{View as _0x3dc128}from'ckeditor5/src/ui';import{getTranslation as _0x4e11c9}from'../../../utils/common-translations';export default class Nt extends _0x3dc128{constructor(_0xa424e9){super(_0xa424e9);const _0x34a2d9=this[_0x496f('0x0')];this[_0x496f('0x1')]('count'),this[_0x496f('0x3')]({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x34a2d9['to'](_0x496f('0x4'),_0x322f92=>_0x4e11c9(_0xa424e9,_0x496f('0x2'),_0x322f92))}]});}}
23
+ const _0x55a9=['bindTemplate','set','count','setTemplate','ck-thread__comment-count','NUMBER_OF_COMMENTS'];(function(_0x1548e5,_0x55a955){const _0xfd0831=function(_0x63bb2b){while(--_0x63bb2b){_0x1548e5['push'](_0x1548e5['shift']());}};_0xfd0831(++_0x55a955);}(_0x55a9,0xbd));const _0xfd08=function(_0x1548e5,_0x55a955){_0x1548e5=_0x1548e5-0x0;let _0xfd0831=_0x55a9[_0x1548e5];return _0xfd0831;};import{View as _0x22185f}from'ckeditor5/src/ui';import{getTranslation as _0x47e6db}from'../../../utils/common-translations';export default class Nt extends _0x22185f{constructor(_0x4b8bee){super(_0x4b8bee);const _0x495508=this[_0xfd08('0x3')];this[_0xfd08('0x4')](_0xfd08('0x5')),this[_0xfd08('0x0')]({'tag':'li','attributes':{'class':_0xfd08('0x1')},'children':[{'text':_0x495508['to']('count',_0x1b8fc5=>_0x47e6db(_0x4b8bee,_0xfd08('0x2'),_0x1b8fc5))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1f83=['setTemplate','innerHTML','render','element','content','div','ck-annotation__content','change:content','ck-comment__content'];(function(_0x404cda,_0x1f8328){var _0x4e6cca=function(_0x2d86f8){while(--_0x2d86f8){_0x404cda['push'](_0x404cda['shift']());}};_0x4e6cca(++_0x1f8328);}(_0x1f83,0x172));var _0x4e6c=function(_0x404cda,_0x1f8328){_0x404cda=_0x404cda-0x0;var _0x4e6cca=_0x1f83[_0x404cda];return _0x4e6cca;};import{View as _0x1fd5ce}from'ckeditor5/src/ui';export default class Et extends _0x1fd5ce{constructor(_0x5a49ae){super(_0x5a49ae),this['set'](_0x4e6c('0x3'),''),this[_0x4e6c('0x8')]({'tag':_0x4e6c('0x4'),'attributes':{'class':[_0x4e6c('0x7'),_0x4e6c('0x5')]}});}[_0x4e6c('0x1')](){super['render'](),this['on'](_0x4e6c('0x6'),(_0x222938,_0x1ece2a,_0x1987ff)=>{this['element']['innerHTML']=_0x1987ff;}),this[_0x4e6c('0x2')][_0x4e6c('0x0')]=this[_0x4e6c('0x3')];}}
23
+ var _0x5334=['render','ck-comment__content','content','innerHTML','setTemplate','change:content','ck-annotation__content','div','set','element'];(function(_0x24a75c,_0x533408){var _0x5803ce=function(_0x3ce5d5){while(--_0x3ce5d5){_0x24a75c['push'](_0x24a75c['shift']());}};_0x5803ce(++_0x533408);}(_0x5334,0xfe));var _0x5803=function(_0x24a75c,_0x533408){_0x24a75c=_0x24a75c-0x0;var _0x5803ce=_0x5334[_0x24a75c];return _0x5803ce;};import{View as _0x2612d8}from'ckeditor5/src/ui';export default class Et extends _0x2612d8{constructor(_0x4bbf1e){super(_0x4bbf1e),this[_0x5803('0x4')](_0x5803('0x8'),''),this[_0x5803('0x0')]({'tag':_0x5803('0x3'),'attributes':{'class':[_0x5803('0x7'),_0x5803('0x2')]}});}[_0x5803('0x6')](){super[_0x5803('0x6')](),this['on'](_0x5803('0x1'),(_0x27aa9e,_0x53c5b7,_0x364514)=>{this[_0x5803('0x5')][_0x5803('0x9')]=_0x364514;}),this['element'][_0x5803('0x9')]=this['content'];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2374=['destroy','isRendered','then','Esc','_createCancelButton','placeholder','submitButtonView','add','execute','initialData','Cancel','focusNext','length','_createSubmitButton','focusTracker','document','cancel','extendTemplate','check','editor','ck-comment__input-actions--cancel','disabledSubmit','_editorCreationPromise','ck-comment__input-actions','cancelButtonView','render','label','low','TOO_LONG_COMMENT_ALERT','set','model','editorReady','fire','change','value','forEach','submit','high','_isDestroyed','ck-comment__input-actions--submit','tab','div','setData','ck-comment__input-actions--active','showButtons','trim','_initializeFocusCycling','ck-comment__input-wrapper','focus','isEnabled','create','keystrokes','element','icon'];(function(_0x1c9cf1,_0x237435){const _0x496473=function(_0x4bf6d1){while(--_0x4bf6d1){_0x1c9cf1['push'](_0x1c9cf1['shift']());}};_0x496473(++_0x237435);}(_0x2374,0xdc));const _0x4964=function(_0x1c9cf1,_0x237435){_0x1c9cf1=_0x1c9cf1-0x0;let _0x496473=_0x2374[_0x1c9cf1];return _0x496473;};import{View as _0x5e2e9c,ViewCollection as _0x68382d,FocusCycler as _0x20c00f,ButtonView as _0x530002}from'ckeditor5/src/ui';import{FocusTracker as _0xae1f08,KeystrokeHandler as _0x28aa6a}from'ckeditor5/src/utils';import{icons as _0x572d18}from'ckeditor5/src/core';import _0x154a51 from'../commenteditor/commenteditor';import{getTranslation as _0xdaf540}from'../../../utils/common-translations';export default class Tt extends _0x5e2e9c{constructor(_0x51fab9,_0x188404={}){super(_0x51fab9),this[_0x4964('0xf')]=new _0x154a51(_0x188404),this[_0x4964('0x2f')]=new _0x28aa6a(),this[_0x4964('0xa')]=new _0xae1f08(),this[_0x4964('0x19')](_0x4964('0x1e'),_0x188404[_0x4964('0x5')]||''),this[_0x4964('0x19')](_0x4964('0x11'),!0x1),this[_0x4964('0x19')](_0x4964('0x28'),!0x0),this[_0x4964('0x19')](_0x4964('0x1'),_0xdaf540(_0x51fab9,'Reply...')),this[_0x4964('0x2')]=this[_0x4964('0x9')](),this['cancelButtonView']=this['_createCancelButton'](),this['setTemplate']({'tag':_0x4964('0x25'),'attributes':{'class':[_0x4964('0x2b')]},'children':[{'tag':_0x4964('0x25'),'attributes':{'class':[_0x4964('0x13'),this['bindTemplate']['if'](_0x4964('0x28'),_0x4964('0x27'))]},'children':[this[_0x4964('0x2')],this[_0x4964('0x14')]]}]}),this['keystrokes']['set'](_0x4964('0x35'),(_0x2bbd2d,_0x30de57)=>{this[_0x4964('0x14')]['fire'](_0x4964('0x4')),_0x30de57();}),this['on'](_0x4964('0x20'),(_0x72626d,_0x320e29)=>{_0x320e29[_0x4964('0x8')]>0xfde8?(alert(_0xdaf540(_0x51fab9,_0x4964('0x18'),[_0x320e29['length'],0xfde8])),_0x72626d['stop']()):this[_0x4964('0xf')][_0x4964('0x26')]('');},{'priority':_0x4964('0x21')});}[_0x4964('0x15')](){super[_0x4964('0x15')]();const {editor:_0x1df653,element:_0xa634e7}=this;this[_0x4964('0x2f')]['listenTo'](_0xa634e7),this['focusTracker'][_0x4964('0x3')](_0xa634e7),this[_0x4964('0x12')]=_0x1df653[_0x4964('0x2e')]()[_0x4964('0x34')](()=>{_0xa634e7['insertBefore'](_0x1df653['ui'][_0x4964('0x30')],_0xa634e7['firstChild']),_0x1df653[_0x4964('0x1a')][_0x4964('0xb')]['on'](_0x4964('0x1d'),()=>this[_0x4964('0x1e')]=_0x1df653['getData']()),_0x1df653['bind'](_0x4964('0x1'))['to'](this),this[_0x4964('0x2a')](_0x1df653),this['fire'](_0x4964('0x1b'));});}[_0x4964('0x2c')](){this[_0x4964('0xf')][_0x4964('0x2c')]();}async[_0x4964('0x32')](){this[_0x4964('0x22')]||(this['_isDestroyed']=!0x0,this[_0x4964('0x33')]&&(await this[_0x4964('0x12')],await this['editor'][_0x4964('0x32')]()),await super['destroy']());}[_0x4964('0x9')](){const {locale:_0x3ac043}=this,_0x397716=new _0x530002(_0x3ac043);return _0x397716['extendTemplate']({'attributes':{'class':[_0x4964('0x23')]}}),_0x397716[_0x4964('0x16')]=_0xdaf540(_0x3ac043,'Submit'),_0x397716[_0x4964('0x31')]=_0x572d18[_0x4964('0xe')],_0x397716['on']('execute',()=>{this[_0x4964('0x1c')]('submit',this[_0x4964('0x1e')]);}),_0x397716['bind'](_0x4964('0x2d'))['to'](this,_0x4964('0x1e'),this,_0x4964('0x11'),(_0x3b3c37,_0x4241dd)=>!_0x4241dd&&!!_0x3b3c37[_0x4964('0x29')]()),_0x397716;}[_0x4964('0x0')](){const {locale:_0x35639b}=this,_0x1f8d35=new _0x530002(_0x35639b);return _0x1f8d35[_0x4964('0xd')]({'attributes':{'class':[_0x4964('0x10')]}}),_0x1f8d35[_0x4964('0x16')]=_0xdaf540(_0x35639b,_0x4964('0x6')),_0x1f8d35[_0x4964('0x31')]=_0x572d18['cancel'],_0x1f8d35['on'](_0x4964('0x4'),()=>{this[_0x4964('0xf')][_0x4964('0x26')](''),this[_0x4964('0x1c')](_0x4964('0xc'));}),_0x1f8d35;}['_initializeFocusCycling'](_0x390314){const _0x3eeffc=this[_0x4964('0xa')],_0x58abd2=new _0x68382d();[_0x390314['ui']['view'],this[_0x4964('0x2')],this[_0x4964('0x14')]][_0x4964('0x1f')](_0x3e725d=>{_0x58abd2[_0x4964('0x3')](_0x3e725d),_0x3eeffc['add'](_0x3e725d['element']);});const _0x4e9a38=new _0x20c00f({'focusables':_0x58abd2,'focusTracker':_0x3eeffc});this['keystrokes'][_0x4964('0x19')](_0x4964('0x24'),(_0x3366a9,_0x16a7f7)=>{_0x4e9a38[_0x4964('0x7')](),_0x16a7f7();},{'priority':'low'}),this[_0x4964('0x2f')][_0x4964('0x19')]('shift\x20+\x20tab',(_0xeaecb2,_0x5e4e13)=>{_0x4e9a38['focusPrevious'](),_0x5e4e13();},{'priority':_0x4964('0x17')});}}
23
+ const _0x45c2=['shift\x20+\x20tab','Reply...','cancelButtonView','add','placeholder','set','_isDestroyed','ck-comment__input-wrapper','TOO_LONG_COMMENT_ALERT','focusPrevious','check','tab','disabledSubmit','_createSubmitButton','insertBefore','element','Esc','keystrokes','submitButtonView','ck-comment__input-actions--cancel','ck-comment__input-actions','forEach','trim','focusNext','icon','_editorCreationPromise','createEditor','submit','fire','editor','then','div','cancel','label','_initializeFocusCycling','editorReady','high','render','value','destroy','ck-comment__input-actions--active','low','ck-comment__input-actions--submit','extendTemplate','change','document','model','_editorConfig','stop','Cancel','execute','setTemplate','setData','focusTracker','bind','length','focus','_createCancelButton','firstChild','listenTo','showButtons'];(function(_0x18571e,_0x45c249){const _0x1c1b8f=function(_0x3bdf66){while(--_0x3bdf66){_0x18571e['push'](_0x18571e['shift']());}};_0x1c1b8f(++_0x45c249);}(_0x45c2,0xca));const _0x1c1b=function(_0x18571e,_0x45c249){_0x18571e=_0x18571e-0x0;let _0x1c1b8f=_0x45c2[_0x18571e];return _0x1c1b8f;};import{View as _0x8e4eaa,ViewCollection as _0x4e32a5,FocusCycler as _0x8419d1,ButtonView as _0x63505d}from'ckeditor5/src/ui';import{FocusTracker as _0x1897d6,KeystrokeHandler as _0x5e2cd2}from'ckeditor5/src/utils';import{icons as _0x1521eb}from'ckeditor5/src/core';import _0x2a9e76 from'../commenteditor/commenteditor';import{getTranslation as _0x5326a8}from'../../../utils/common-translations';export default class Tt extends _0x8e4eaa{constructor(_0x2bacbd,_0x1cb736={}){super(_0x2bacbd),this[_0x1c1b('0xa')]=null,this[_0x1c1b('0x1c')]=_0x1cb736,this[_0x1c1b('0x3b')]=new _0x5e2cd2(),this[_0x1c1b('0x22')]=new _0x1897d6(),this['set']('value',_0x1cb736['initialData']||''),this[_0x1c1b('0x2f')](_0x1c1b('0x36'),!0x1),this['set'](_0x1c1b('0x29'),!0x0),this[_0x1c1b('0x2f')]('placeholder',_0x5326a8(_0x2bacbd,_0x1c1b('0x2b'))),this[_0x1c1b('0x3c')]=this[_0x1c1b('0x37')](),this[_0x1c1b('0x2c')]=this[_0x1c1b('0x26')](),this[_0x1c1b('0x20')]({'tag':_0x1c1b('0xc'),'attributes':{'class':[_0x1c1b('0x31')]},'children':[{'tag':_0x1c1b('0xc'),'attributes':{'class':[_0x1c1b('0x1'),this['bindTemplate']['if'](_0x1c1b('0x29'),_0x1c1b('0x15'))]},'children':[this[_0x1c1b('0x3c')],this[_0x1c1b('0x2c')]]}]}),this['keystrokes']['set'](_0x1c1b('0x3a'),(_0x1a4169,_0x1557c9)=>{this[_0x1c1b('0x2c')][_0x1c1b('0x9')](_0x1c1b('0x1f')),_0x1557c9();}),this['on'](_0x1c1b('0x8'),(_0x1e2e74,_0x348ed9)=>{_0x348ed9[_0x1c1b('0x24')]>0xfde8?(alert(_0x5326a8(_0x2bacbd,_0x1c1b('0x32'),[_0x348ed9[_0x1c1b('0x24')],0xfde8])),_0x1e2e74[_0x1c1b('0x1d')]()):this['editor']['setData']('');},{'priority':_0x1c1b('0x11')});}[_0x1c1b('0x12')](){super[_0x1c1b('0x12')](),this[_0x1c1b('0x3b')][_0x1c1b('0x28')](this[_0x1c1b('0x39')]),this['focusTracker'][_0x1c1b('0x2d')](this[_0x1c1b('0x39')]);}[_0x1c1b('0x7')](){return this[_0x1c1b('0xa')]||(this[_0x1c1b('0xa')]=new _0x2a9e76(this[_0x1c1b('0x1c')]),this[_0x1c1b('0x6')]=this[_0x1c1b('0xa')]['create']()[_0x1c1b('0xb')](()=>{this['_isDestroyed']||(this[_0x1c1b('0x39')][_0x1c1b('0x38')](this[_0x1c1b('0xa')]['ui'][_0x1c1b('0x39')],this[_0x1c1b('0x39')][_0x1c1b('0x27')]),this[_0x1c1b('0xa')][_0x1c1b('0x1b')][_0x1c1b('0x1a')]['on'](_0x1c1b('0x19'),()=>this['value']=this[_0x1c1b('0xa')]['getData']()),this[_0x1c1b('0xa')]['bind'](_0x1c1b('0x2e'))['to'](this),this[_0x1c1b('0xf')](this[_0x1c1b('0xa')]),this[_0x1c1b('0x9')](_0x1c1b('0x10')));})),this['_editorCreationPromise'];}[_0x1c1b('0x25')](){this[_0x1c1b('0xa')]&&this[_0x1c1b('0xa')][_0x1c1b('0x25')]();}async[_0x1c1b('0x14')](){this['_isDestroyed']||(this[_0x1c1b('0x30')]=!0x0,this['editor']&&(await this[_0x1c1b('0x6')],await this[_0x1c1b('0xa')][_0x1c1b('0x14')]()),await super[_0x1c1b('0x14')]());}['_createSubmitButton'](){const {locale:_0x3172e3}=this,_0x516928=new _0x63505d(_0x3172e3);return _0x516928[_0x1c1b('0x18')]({'attributes':{'class':[_0x1c1b('0x17')]}}),_0x516928[_0x1c1b('0xe')]=_0x5326a8(_0x3172e3,'Submit'),_0x516928[_0x1c1b('0x5')]=_0x1521eb[_0x1c1b('0x34')],_0x516928['on']('execute',()=>{this['fire'](_0x1c1b('0x8'),this[_0x1c1b('0x13')]);}),_0x516928[_0x1c1b('0x23')]('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x313c91,_0x21adda)=>!_0x21adda&&!!_0x313c91[_0x1c1b('0x3')]()),_0x516928;}[_0x1c1b('0x26')](){const {locale:_0x2086ca}=this,_0x8032d6=new _0x63505d(_0x2086ca);return _0x8032d6['extendTemplate']({'attributes':{'class':[_0x1c1b('0x0')]}}),_0x8032d6['label']=_0x5326a8(_0x2086ca,_0x1c1b('0x1e')),_0x8032d6[_0x1c1b('0x5')]=_0x1521eb[_0x1c1b('0xd')],_0x8032d6['on']('execute',()=>{this[_0x1c1b('0xa')][_0x1c1b('0x21')](''),this[_0x1c1b('0x9')](_0x1c1b('0xd'));}),_0x8032d6;}['_initializeFocusCycling'](_0xe541c9){const _0x25ad85=this['focusTracker'],_0xfc964f=new _0x4e32a5();[_0xe541c9['ui']['view'],this[_0x1c1b('0x3c')],this[_0x1c1b('0x2c')]][_0x1c1b('0x2')](_0x419d22=>{_0xfc964f[_0x1c1b('0x2d')](_0x419d22),_0x25ad85[_0x1c1b('0x2d')](_0x419d22['element']);});const _0x4c4f40=new _0x8419d1({'focusables':_0xfc964f,'focusTracker':_0x25ad85});this[_0x1c1b('0x3b')][_0x1c1b('0x2f')](_0x1c1b('0x35'),(_0x44a141,_0x34e918)=>{_0x4c4f40[_0x1c1b('0x4')](),_0x34e918();},{'priority':_0x1c1b('0x16')}),this['keystrokes'][_0x1c1b('0x2f')](_0x1c1b('0x2a'),(_0x396ee5,_0x5cd508)=>{_0x4c4f40[_0x1c1b('0x33')](),_0x5cd508();},{'priority':'low'});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x503e=['from','_handleRemoveCommentModel','createCollection','_collapsedCommentsView','editorConfig','focus','maxCommentCharsWhenCollapsed','insert','render','some','collapse','commentViews','hasDirtyComment','CommentView','_shouldCollapse','formatDateTime','maxCommentsWhenCollapsed','equal','destroy','count','_model','listenTo','_rearrangeExpand','bind','remove','_updateHasDirtyComment','isEditMode','refreshVisibleViews','element','delegate','_rearrangeCollapse','updateComment','expand','comments','commentUpdated','change:isEditMode','add','_handleNewCommentModel','_config','visibleViews','weight','set','ck-thread__comments','change:hasDirtyComment','isActive','length'];(function(_0x24782a,_0x503e2b){const _0x459a92=function(_0x3d1dd4){while(--_0x3d1dd4){_0x24782a['push'](_0x24782a['shift']());}};_0x459a92(++_0x503e2b);}(_0x503e,0xfd));const _0x459a=function(_0x24782a,_0x503e2b){_0x24782a=_0x24782a-0x0;let _0x459a92=_0x503e[_0x24782a];return _0x459a92;};import{View as _0x4ab6ab}from'ckeditor5/src/ui';import{diff as _0x172906,Collection as _0xed7a45}from'ckeditor5/src/utils';import _0x52083c from'./collapsedcommentsview';export default class ct extends _0x4ab6ab{constructor(_0x1c5007,_0x4a45b6,_0x9025e6){super(_0x1c5007),this[_0x459a('0x12')](_0x459a('0x23'),!0x1),this[_0x459a('0x12')]('length',_0x4a45b6[_0x459a('0xa')][_0x459a('0x16')]),this[_0x459a('0x12')](_0x459a('0x15'),!0x1),this[_0x459a('0x2b')]=_0x4a45b6,this[_0x459a('0xf')]=_0x9025e6,this[_0x459a('0x22')]=this[_0x459a('0x19')](),this['visibleViews']=this[_0x459a('0x19')](),this[_0x459a('0x1a')]=new _0x52083c(_0x1c5007),this[_0x459a('0x1a')][_0x459a('0x0')](_0x459a('0x2a'))['to'](this,_0x459a('0x16'),_0x391913=>_0x391913-this[_0x459a('0xf')][_0x459a('0x27')]);for(const _0x42faf7 of _0x4a45b6[_0x459a('0xa')])this[_0x459a('0xe')](_0x42faf7);this['listenTo'](_0x4a45b6[_0x459a('0xa')],_0x459a('0xd'),(_0x570efd,_0x40dab)=>{this[_0x459a('0x16')]++,this[_0x459a('0xe')](_0x40dab),this[_0x459a('0x4')]();}),this[_0x459a('0x2c')](_0x4a45b6[_0x459a('0xa')],'remove',(_0x539373,_0x145ac5)=>{this[_0x459a('0x16')]--,this[_0x459a('0x18')](_0x145ac5),this['refreshVisibleViews']();}),this[_0x459a('0x2c')](_0x4a45b6,_0x459a('0xb'),()=>this[_0x459a('0x4')]()),this['on']('change:isActive',()=>this['refreshVisibleViews']()),this['on'](_0x459a('0x14'),()=>this['refreshVisibleViews']()),this['setTemplate']({'tag':'ul','attributes':{'class':[_0x459a('0x13')]},'children':this[_0x459a('0x10')]});}get[_0x459a('0x25')](){return this[_0x459a('0x2b')][_0x459a('0x11')]>this[_0x459a('0xf')]['maxThreadTotalWeight']&&!this[_0x459a('0x15')]&&!this[_0x459a('0x23')];}[_0x459a('0x1f')](){super[_0x459a('0x1f')](),this[_0x459a('0x4')]();}['focus'](){this[_0x459a('0x5')][_0x459a('0x1c')]();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x5d5f69 of this[_0x459a('0x22')])_0x5d5f69['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this[_0x459a('0x7')]():this[_0x459a('0x2d')]();}['_handleNewCommentModel'](_0x1017c7){const _0x443215=new this['_config'][(_0x459a('0x24'))](this['locale'],_0x1017c7,{'maxCommentCharsWhenCollapsed':this['_config'][_0x459a('0x1d')],'formatDateTime':this['_config'][_0x459a('0x26')],'editorConfig':this[_0x459a('0xf')][_0x459a('0x1b')]});_0x443215['viewUid']=_0x1017c7['id'],_0x443215[_0x459a('0x6')]('removeComment')['to'](this),_0x443215['delegate'](_0x459a('0x8'))['to'](this),this[_0x459a('0x2c')](_0x443215,_0x459a('0xc'),()=>this['_updateHasDirtyComment']()),this[_0x459a('0x22')][_0x459a('0xd')](_0x443215);}[_0x459a('0x18')](_0x5f4ea5){const _0x12f594=this[_0x459a('0x22')]['remove'](_0x5f4ea5['id']);this['stopListening'](_0x12f594),_0x12f594[_0x459a('0x3')]&&this['_updateHasDirtyComment'](),_0x12f594[_0x459a('0x29')]();}[_0x459a('0x2')](){this[_0x459a('0x23')]=Array[_0x459a('0x17')](this[_0x459a('0x22')])[_0x459a('0x20')](_0x52e364=>_0x52e364[_0x459a('0x3')]);}[_0x459a('0x7')](){const _0x5c1997=function(_0x3e19dc){const _0x3ed35f=new _0xed7a45();for(const _0x339d17 of _0x3e19dc)_0x3ed35f[_0x459a('0xd')](_0x339d17);return _0x3ed35f;}(this[_0x459a('0x22')]),_0x1e2ef3=this[_0x459a('0x1a')]['count'];for(let _0x2860ee=0x1;_0x2860ee<=_0x1e2ef3;_0x2860ee++)_0x5c1997[_0x459a('0x1')](0x1);for(const _0x3c731d of _0x5c1997)_0x3c731d[_0x459a('0x21')]();_0x1e2ef3>0x0&&_0x5c1997[_0x459a('0xd')](this['_collapsedCommentsView'],0x1),Ut(_0x172906(Array[_0x459a('0x17')](this[_0x459a('0x10')]),Array[_0x459a('0x17')](_0x5c1997)),this[_0x459a('0x10')],_0x5c1997);}[_0x459a('0x2d')](){Ut(_0x172906(Array['from'](this[_0x459a('0x10')]),Array[_0x459a('0x17')](this[_0x459a('0x22')])),this['visibleViews'],this[_0x459a('0x22')]);for(const _0x49b6ec of this[_0x459a('0x10')])_0x49b6ec[_0x459a('0x9')]();}}function Ut(_0x2bb404,_0x217fb2,_0x5790bc){let _0x58c35b=0x0;for(const _0x229447 of _0x2bb404)switch(_0x229447){case _0x459a('0x1e'):_0x217fb2['add'](_0x5790bc['get'](_0x58c35b),_0x58c35b),_0x58c35b++;break;case'delete':_0x217fb2[_0x459a('0x1')](_0x58c35b);break;case _0x459a('0x28'):_0x58c35b++;}}
23
+ const _0x2749=['isActive','remove','listenTo','change:hasDirtyComment','editorConfig','_handleNewCommentModel','bind','insert','from','_config','_handleRemoveCommentModel','some','add','refreshVisibleViews','length','comments','updateComment','get','visibleViews','isEditMode','locale','element','equal','render','focus','setTemplate','change:isEditMode','_collapsedCommentsView','hasDirtyComment','destroy','CommentView','delegate','_rearrangeCollapse','weight','viewUid','commentUpdated','collapse','commentViews','removeComment','_model','ck-thread__comments','count','createCollection','expand','_shouldCollapse','_updateHasDirtyComment'];(function(_0xac3c02,_0x274925){const _0x3f2274=function(_0x49342a){while(--_0x49342a){_0xac3c02['push'](_0xac3c02['shift']());}};_0x3f2274(++_0x274925);}(_0x2749,0x91));const _0x3f22=function(_0xac3c02,_0x274925){_0xac3c02=_0xac3c02-0x0;let _0x3f2274=_0x2749[_0xac3c02];return _0x3f2274;};import{View as _0x564172}from'ckeditor5/src/ui';import{diff as _0xa99353,Collection as _0x47e4c9}from'ckeditor5/src/utils';import _0x51807b from'./collapsedcommentsview';export default class ct extends _0x564172{constructor(_0x40d1e6,_0x127c43,_0x373c52){super(_0x40d1e6),this['set'](_0x3f22('0x15'),!0x1),this['set'](_0x3f22('0x7'),_0x127c43[_0x3f22('0x8')]['length']),this['set']('isActive',!0x1),this[_0x3f22('0x20')]=_0x127c43,this['_config']=_0x373c52,this['commentViews']=this[_0x3f22('0x23')](),this['visibleViews']=this[_0x3f22('0x23')](),this['_collapsedCommentsView']=new _0x51807b(_0x40d1e6),this[_0x3f22('0x14')][_0x3f22('0x2d')]('count')['to'](this,_0x3f22('0x7'),_0x42194e=>_0x42194e-this[_0x3f22('0x2')]['maxCommentsWhenCollapsed']);for(const _0xb9b5b2 of _0x127c43[_0x3f22('0x8')])this[_0x3f22('0x2c')](_0xb9b5b2);this[_0x3f22('0x29')](_0x127c43[_0x3f22('0x8')],'add',(_0x74c3f7,_0x4d3c33)=>{this[_0x3f22('0x7')]++,this[_0x3f22('0x2c')](_0x4d3c33),this['refreshVisibleViews']();}),this[_0x3f22('0x29')](_0x127c43[_0x3f22('0x8')],_0x3f22('0x28'),(_0x44c3f3,_0x391866)=>{this[_0x3f22('0x7')]--,this[_0x3f22('0x3')](_0x391866),this[_0x3f22('0x6')]();}),this[_0x3f22('0x29')](_0x127c43,_0x3f22('0x1c'),()=>this[_0x3f22('0x6')]()),this['on']('change:isActive',()=>this[_0x3f22('0x6')]()),this['on'](_0x3f22('0x2a'),()=>this[_0x3f22('0x6')]()),this[_0x3f22('0x12')]({'tag':'ul','attributes':{'class':[_0x3f22('0x21')]},'children':this[_0x3f22('0xb')]});}get[_0x3f22('0x25')](){return this[_0x3f22('0x20')][_0x3f22('0x1a')]>this['_config']['maxThreadTotalWeight']&&!this[_0x3f22('0x27')]&&!this[_0x3f22('0x15')];}[_0x3f22('0x10')](){super[_0x3f22('0x10')](),this[_0x3f22('0x6')]();}['focus'](){this[_0x3f22('0xe')][_0x3f22('0x11')]();}[_0x3f22('0x16')](){this['_collapsedCommentsView']['destroy']();for(const _0x30e8d5 of this[_0x3f22('0x1e')])_0x30e8d5[_0x3f22('0x16')]();super[_0x3f22('0x16')]();}[_0x3f22('0x6')](){this[_0x3f22('0x25')]?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x589e5e){const _0x228333=new this[(_0x3f22('0x2'))][(_0x3f22('0x17'))](this[_0x3f22('0xd')],_0x589e5e,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this[_0x3f22('0x2')]['formatDateTime'],'editorConfig':this[_0x3f22('0x2')][_0x3f22('0x2b')]});_0x228333[_0x3f22('0x1b')]=_0x589e5e['id'],_0x228333[_0x3f22('0x18')](_0x3f22('0x1f'))['to'](this),_0x228333['delegate'](_0x3f22('0x9'))['to'](this),this['listenTo'](_0x228333,_0x3f22('0x13'),()=>this['_updateHasDirtyComment']()),this['commentViews'][_0x3f22('0x5')](_0x228333);}[_0x3f22('0x3')](_0x415f96){const _0x4775a4=this[_0x3f22('0x1e')][_0x3f22('0x28')](_0x415f96['id']);this['stopListening'](_0x4775a4),_0x4775a4[_0x3f22('0xc')]&&this['_updateHasDirtyComment'](),_0x4775a4[_0x3f22('0x16')]();}[_0x3f22('0x26')](){this[_0x3f22('0x15')]=Array['from'](this[_0x3f22('0x1e')])[_0x3f22('0x4')](_0x319f31=>_0x319f31['isEditMode']);}[_0x3f22('0x19')](){const _0x1fb8a4=function(_0x760e89){const _0x5478e4=new _0x47e4c9();for(const _0xaa00db of _0x760e89)_0x5478e4[_0x3f22('0x5')](_0xaa00db);return _0x5478e4;}(this['commentViews']),_0x5c6f78=this[_0x3f22('0x14')][_0x3f22('0x22')];for(let _0x27e7c8=0x1;_0x27e7c8<=_0x5c6f78;_0x27e7c8++)_0x1fb8a4[_0x3f22('0x28')](0x1);for(const _0x5deb3f of _0x1fb8a4)_0x5deb3f[_0x3f22('0x1d')]();_0x5c6f78>0x0&&_0x1fb8a4[_0x3f22('0x5')](this['_collapsedCommentsView'],0x1),Wt(_0xa99353(Array[_0x3f22('0x1')](this[_0x3f22('0xb')]),Array['from'](_0x1fb8a4)),this[_0x3f22('0xb')],_0x1fb8a4);}['_rearrangeExpand'](){Wt(_0xa99353(Array[_0x3f22('0x1')](this[_0x3f22('0xb')]),Array[_0x3f22('0x1')](this[_0x3f22('0x1e')])),this[_0x3f22('0xb')],this[_0x3f22('0x1e')]);for(const _0x45f4b0 of this[_0x3f22('0xb')])_0x45f4b0[_0x3f22('0x24')]();}}function Wt(_0x3544c8,_0x5899e6,_0x46b088){let _0x4a1bf1=0x0;for(const _0x59f3a4 of _0x3544c8)switch(_0x59f3a4){case _0x3f22('0x0'):_0x5899e6[_0x3f22('0x5')](_0x46b088[_0x3f22('0xa')](_0x4a1bf1),_0x4a1bf1),_0x4a1bf1++;break;case'delete':_0x5899e6[_0x3f22('0x28')](_0x4a1bf1);break;case _0x3f22('0xf'):_0x4a1bf1++;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4b26=['userView','ck-comment__input-container--active','value','showInput','div','extendTemplate','isFocused','set','bindTemplate','showButtons','bind','focusTracker','then','ck-comment__input-container','commentInputView','destroy','ck-thread__input'];(function(_0x396044,_0x4b2696){var _0x5f0abe=function(_0x11fec8){while(--_0x11fec8){_0x396044['push'](_0x396044['shift']());}};_0x5f0abe(++_0x4b2696);}(_0x4b26,0x155));var _0x5f0a=function(_0x396044,_0x4b2696){_0x396044=_0x396044-0x0;var _0x5f0abe=_0x4b26[_0x396044];return _0x5f0abe;};import{View as _0x8e84a4}from'ckeditor5/src/ui';import _0xc4d33f from'./commentinputview';import{UserView as _0x132842}from'ckeditor5-collaboration/src/collaboration-core';export default class dt extends _0x8e84a4{constructor(_0x54ad32,_0x95e054,_0x3ed4ac){super(_0x54ad32),this[_0x5f0a('0xd')]=new _0xc4d33f(_0x54ad32,_0x3ed4ac),this[_0x5f0a('0xd')][_0x5f0a('0x9')](_0x5f0a('0x8'))['to'](this[_0x5f0a('0xd')][_0x5f0a('0xa')],_0x5f0a('0x5'),this[_0x5f0a('0xd')],_0x5f0a('0x1'),(_0x1aa4d0,_0x15093b)=>_0x1aa4d0||!!_0x15093b),this[_0x5f0a('0x6')](_0x5f0a('0x2'),!0x1),this['userView']=new _0x132842(_0x54ad32,_0x95e054),this['userView'][_0x5f0a('0x4')]({'attributes':{'class':'ck-thread__user'}}),this['commentInputView'][_0x5f0a('0x4')]({'attributes':{'class':_0x5f0a('0xf')}}),this['setTemplate']({'tag':_0x5f0a('0x3'),'attributes':{'class':[_0x5f0a('0xc'),this[_0x5f0a('0x7')]['if'](_0x5f0a('0x2'),_0x5f0a('0x0'))]},'children':[this[_0x5f0a('0x10')],this[_0x5f0a('0xd')]]});}[_0x5f0a('0xe')](){return this[_0x5f0a('0xd')][_0x5f0a('0xe')]()[_0x5f0a('0xb')](()=>super['destroy']());}}
23
+ var _0x5e2f=['setTemplate','editor','div','userView','showInput','ck-thread__input','value','then','set','extendTemplate','commentInputView','ck-comment__input-container--active','showButtons','focusTracker','bindTemplate','ck-thread__user','createEditor','isFocused','change:showInput'];(function(_0x5f4a48,_0x5e2f70){var _0x5518a7=function(_0x3236dd){while(--_0x3236dd){_0x5f4a48['push'](_0x5f4a48['shift']());}};_0x5518a7(++_0x5e2f70);}(_0x5e2f,0x1f4));var _0x5518=function(_0x5f4a48,_0x5e2f70){_0x5f4a48=_0x5f4a48-0x0;var _0x5518a7=_0x5e2f[_0x5f4a48];return _0x5518a7;};import{View as _0x1edc1b}from'ckeditor5/src/ui';import _0x11d8fe from'./commentinputview';import{UserView as _0x20faec}from'ckeditor5-collaboration/src/collaboration-core';export default class dt extends _0x1edc1b{constructor(_0x17b190,_0xac1b96,_0x2d588c){super(_0x17b190),this[_0x5518('0x4')]=new _0x11d8fe(_0x17b190,_0x2d588c),this[_0x5518('0x4')]['bind'](_0x5518('0x6'))['to'](this[_0x5518('0x4')][_0x5518('0x7')],_0x5518('0xb'),this[_0x5518('0x4')],_0x5518('0x0'),(_0x4b8bb9,_0x159ad9)=>_0x4b8bb9||!!_0x159ad9),this[_0x5518('0x2')](_0x5518('0x11'),!0x1),this['on'](_0x5518('0xc'),()=>{this['showInput']&&!this[_0x5518('0x4')][_0x5518('0xe')]&&this[_0x5518('0x4')][_0x5518('0xa')]();}),this[_0x5518('0x10')]=new _0x20faec(_0x17b190,_0xac1b96),this['userView'][_0x5518('0x3')]({'attributes':{'class':_0x5518('0x9')}}),this[_0x5518('0x4')][_0x5518('0x3')]({'attributes':{'class':_0x5518('0x12')}}),this[_0x5518('0xd')]({'tag':_0x5518('0xf'),'attributes':{'class':['ck-comment__input-container',this[_0x5518('0x8')]['if'](_0x5518('0x11'),_0x5518('0x5'))]},'children':[this['userView'],this['commentInputView']]});}['destroy'](){return this['commentInputView']['destroy']()[_0x5518('0x1')](()=>super['destroy']());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xa63e=['element','div','_cancelAllConfirms','actionIndicator','render','set','remove','fire','cancelConfirm','locale','Write\x20a\x20comment...','ck-thread--remove-confirmation','showConfirm','Delete\x20comment\x20thread?','_bindFirstCommentView','off','high','bind','commentViews','stop','removeCommentThread','length','then','commentsListView','listenTo','ck-thread__container','isActive','ck-thread--','_model','containerElement','isConfirm','get','commentThreadInputView','bindTemplate','ck-thread','getTemplate'];(function(_0x2b1b14,_0xa63eaf){const _0x1680dd=function(_0x50553d){while(--_0x50553d){_0x2b1b14['push'](_0x2b1b14['shift']());}};_0x1680dd(++_0xa63eaf);}(_0xa63e,0x119));const _0x1680=function(_0x2b1b14,_0xa63eaf){_0x2b1b14=_0x2b1b14-0x0;let _0x1680dd=_0xa63e[_0x2b1b14];return _0x1680dd;};import{mix as _0x2f255a}from'ckeditor5/src/utils';import{ConfirmMixin as _0x4adcc1}from'ckeditor5-collaboration/src/collaboration-core';import _0x4cafe8 from'./basecommentthreadview';import{getTranslation as _0x4e3f66}from'../../../utils/common-translations';export default class nt extends _0x4cafe8{constructor(_0x2bf4c3,_0xe1699c,_0x34b53c,_0x437029){super(_0x2bf4c3,_0xe1699c,_0x34b53c,_0x437029),this[_0x1680('0xc')](_0x1680('0xa'),null),this[_0x1680('0x0')]=null,this[_0x1680('0x10')]=_0x2bf4c3,this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x15b2e5,_0x5f1f07,_0x103949)=>{_0x103949||this[_0x1680('0x9')]();}),this['listenTo'](this[_0x1680('0x23')],'change:isReadOnly',(_0x2d78e2,_0x1b8387,_0x35fb35)=>{_0x35fb35&&this[_0x1680('0x9')]();}),this[_0x1680('0x1c')]>0x0?this[_0x1680('0x15')]():this[_0x1680('0x1f')](this['commentsListView'][_0x1680('0x19')],'add',_0x15a018=>{this[_0x1680('0x15')](),_0x15a018[_0x1680('0x16')]();});}[_0x1680('0x6')](){const _0x459cbe=this[_0x1680('0x4')];return{'tag':_0x1680('0x8'),'attributes':{'class':[_0x1680('0x5'),_0x459cbe['if'](_0x1680('0x21'),'ck-thread--active'),_0x459cbe['if'](_0x1680('0x1'),_0x1680('0x12')),_0x459cbe['to']('actionIndicator',_0x5c16cf=>_0x5c16cf?_0x1680('0x22')+_0x5c16cf:'')],'data-thread-id':this[_0x1680('0x23')]['id'],'tabindex':-0x1},'children':[{'tag':_0x1680('0x8'),'attributes':{'class':_0x1680('0x20')},'children':[this[_0x1680('0x1e')],this[_0x1680('0x3')]]}]};}[_0x1680('0xb')](){super[_0x1680('0xb')](),this['containerElement']=this[_0x1680('0x7')]['querySelector']('.ck-thread__container');}[_0x1680('0x9')](){this[_0x1680('0xf')]();for(const _0x2b79a7 of this['commentsListView'][_0x1680('0x19')])_0x2b79a7[_0x1680('0xf')]();}[_0x1680('0x15')](){const {locale:_0x3cff31}=this,_0x2f1171=this[_0x1680('0x1e')][_0x1680('0x19')][_0x1680('0x2')](0x0);this[_0x1680('0x18')](_0x1680('0xa'))['to'](_0x2f1171,_0x1680('0xa'),_0x4bbd59=>_0x1680('0xd')===_0x4bbd59?_0x1680('0xd'):null),_0x2f1171['placeholder']=_0x4e3f66(_0x3cff31,_0x1680('0x11')),_0x2f1171['removeButton']['on']('execute',_0x2f2232=>{_0x2f2232[_0x1680('0x1a')](),this[_0x1680('0x13')](_0x4e3f66(_0x3cff31,_0x1680('0x14')),this[_0x1680('0x0')])[_0x1680('0x1d')](()=>{this[_0x1680('0xe')](_0x1680('0x1b'));});},{'priority':_0x1680('0x17')});}}_0x2f255a(nt,_0x4adcc1);
23
+ const _0x377d=['containerElement','removeButton','actionIndicator','locale','ck-thread--','Delete\x20comment\x20thread?','Write\x20a\x20comment...','get','div','_bindFirstCommentView','fire','length','commentViews','element','stop','render','add','then','cancelConfirm','listenTo','bind','bindTemplate','remove','ck-thread__container','commentsListView','set','.ck-thread__container','isActive','ck-thread--active','ck-thread','_model','high','getTemplate','ck-thread--remove-confirmation','off','change:isActive','_cancelAllConfirms','isConfirm','removeCommentThread','execute','change:isReadOnly'];(function(_0x14d8c0,_0x377da2){const _0x3a4bde=function(_0x5c6cd1){while(--_0x5c6cd1){_0x14d8c0['push'](_0x14d8c0['shift']());}};_0x3a4bde(++_0x377da2);}(_0x377d,0xbb));const _0x3a4b=function(_0x14d8c0,_0x377da2){_0x14d8c0=_0x14d8c0-0x0;let _0x3a4bde=_0x377d[_0x14d8c0];return _0x3a4bde;};import{mix as _0x566319}from'ckeditor5/src/utils';import{ConfirmMixin as _0x4c6132}from'ckeditor5-collaboration/src/collaboration-core';import _0x4330c9 from'./basecommentthreadview';import{getTranslation as _0x21f919}from'../../../utils/common-translations';export default class nt extends _0x4330c9{constructor(_0x31103f,_0x11df74,_0xa9e66c,_0x5280fa){super(_0x31103f,_0x11df74,_0xa9e66c,_0x5280fa),this[_0x3a4b('0x2')](_0x3a4b('0x14'),null),this[_0x3a4b('0x12')]=null,this[_0x3a4b('0x15')]=_0x31103f,this['setTemplate'](this[_0x3a4b('0x9')]()),this['on'](_0x3a4b('0xc'),(_0x3c32df,_0x21523e,_0x10dff2)=>{_0x10dff2||this['_cancelAllConfirms']();}),this[_0x3a4b('0x25')](this[_0x3a4b('0x7')],_0x3a4b('0x11'),(_0x3ad993,_0x5717c4,_0x2afb12)=>{_0x2afb12&&this['_cancelAllConfirms']();}),this[_0x3a4b('0x1d')]>0x0?this['_bindFirstCommentView']():this['listenTo'](this[_0x3a4b('0x1')][_0x3a4b('0x1e')],_0x3a4b('0x22'),_0x244402=>{this[_0x3a4b('0x1b')](),_0x244402[_0x3a4b('0xb')]();});}[_0x3a4b('0x9')](){const _0x5d63a3=this[_0x3a4b('0x27')];return{'tag':_0x3a4b('0x1a'),'attributes':{'class':[_0x3a4b('0x6'),_0x5d63a3['if'](_0x3a4b('0x4'),_0x3a4b('0x5')),_0x5d63a3['if'](_0x3a4b('0xe'),_0x3a4b('0xa')),_0x5d63a3['to'](_0x3a4b('0x14'),_0x51f997=>_0x51f997?_0x3a4b('0x16')+_0x51f997:'')],'data-thread-id':this[_0x3a4b('0x7')]['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':_0x3a4b('0x0')},'children':[this['commentsListView'],this['commentThreadInputView']]}]};}['render'](){super[_0x3a4b('0x21')](),this[_0x3a4b('0x12')]=this[_0x3a4b('0x1f')]['querySelector'](_0x3a4b('0x3'));}[_0x3a4b('0xd')](){this[_0x3a4b('0x24')]();for(const _0x1e8945 of this[_0x3a4b('0x1')]['commentViews'])_0x1e8945[_0x3a4b('0x24')]();}[_0x3a4b('0x1b')](){const {locale:_0x3f3902}=this,_0x32e4d2=this[_0x3a4b('0x1')][_0x3a4b('0x1e')][_0x3a4b('0x19')](0x0);this[_0x3a4b('0x26')]('actionIndicator')['to'](_0x32e4d2,_0x3a4b('0x14'),_0x368936=>_0x3a4b('0x28')===_0x368936?_0x3a4b('0x28'):null),_0x32e4d2['placeholder']=_0x21f919(_0x3f3902,_0x3a4b('0x18')),_0x32e4d2[_0x3a4b('0x13')]['on'](_0x3a4b('0x10'),_0x171fc4=>{_0x171fc4[_0x3a4b('0x20')](),this['showConfirm'](_0x21f919(_0x3f3902,_0x3a4b('0x17')),this[_0x3a4b('0x12')])[_0x3a4b('0x23')](()=>{this[_0x3a4b('0x1c')](_0x3a4b('0xf'));});},{'priority':_0x3a4b('0x8')});}}_0x566319(nt,_0x4c6132);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xde9c=['removeButton','bind','element','locale','set','ck-comment__info-name','ck-comment--remove','focus','setTemplate','isEditable','ck-comment--edit','label','ck-annotation__content-wrapper','isReadOnly','change:isRemovable','userView','listenTo','bindTemplate','_config','execute','cancelConfirm','Reply...','ck-comment__actions','mouseenter','isEditMode','Edit','_createRemoveButton','isEnabled','formatDateTime','render','_model','showConfirm','_createEditButton','remove','icon','extendTemplate','editButton','name','pencil','createdAt','then','switchToEditMode','visibleView','div','ck-comment--remove-confirmation','ck-comment--','ck-comment__info','isVisible','span','time','blur','isRemovable','ck-annotation__main','ck-annotation__actions--hidden','edit','fire','ck-annotation__actions','author','getTemplate','_createCommentInputView','ck-annotation__user','ck-comment__info-time','isConfirm','ck-annotation__info','placeholder','ck-comment__actions--hidden','ck-comment__user','_attachActions','actionIndicator','Remove','Delete\x20comment?'];(function(_0x2266d1,_0xde9cb8){const _0x2a9b15=function(_0x156055){while(--_0x156055){_0x2266d1['push'](_0x2266d1['shift']());}};_0x2a9b15(++_0xde9cb8);}(_0xde9c,0xf4));const _0x2a9b=function(_0x2266d1,_0xde9cb8){_0x2266d1=_0x2266d1-0x0;let _0x2a9b15=_0xde9c[_0x2266d1];return _0x2a9b15;};import{mix as _0x2df9ae}from'ckeditor5/src/utils';import{ButtonView as _0x368055}from'ckeditor5/src/ui';import{icons as _0x3d612c}from'ckeditor5/src/core';import{UserView as _0x3ab954,ConfirmMixin as _0x3dfa83}from'ckeditor5-collaboration/src/collaboration-core';import _0x34ee49 from'./basecommentview';import _0x434e41 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x12be0f}from'../../../utils/common-translations';export default class ot extends _0x34ee49{constructor(_0x42fe10,_0x1a8b9b,_0x1a60ae){super(_0x42fe10,_0x1a8b9b,_0x1a60ae),this[_0x2a9b('0x2c')](_0x2a9b('0x25'),null),this['set'](_0x2a9b('0x21'),_0x12be0f(_0x42fe10,_0x2a9b('0x3d'))),this[_0x2a9b('0x2c')](_0x2a9b('0x8'),null),this[_0x2a9b('0x29')](_0x2a9b('0x8'))['to'](_0x1a8b9b),this[_0x2a9b('0x5')]=this[_0x2a9b('0x1')](),this[_0x2a9b('0x28')]=this[_0x2a9b('0x42')](),this[_0x2a9b('0x37')]=new _0x3ab954(_0x42fe10,_0x1a8b9b[_0x2a9b('0x1a')]),this['userView']['extendTemplate']({'attributes':{'class':[_0x2a9b('0x23'),_0x2a9b('0x1d')]}}),this['listenTo'](_0x1a8b9b,_0x2a9b('0x36'),()=>this[_0x2a9b('0x3c')]()),this[_0x2a9b('0x30')](this['getTemplate']());}[_0x2a9b('0x1b')](){const _0x90743f=this[_0x2a9b('0x39')];return{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x90743f['if'](_0x2a9b('0x1f'),_0x2a9b('0xd'))],'tabindex':-0x1},'children':[{'tag':_0x2a9b('0xc'),'attributes':{'class':['ck-comment','ck-annotation',_0x90743f['if']('isEditMode',_0x2a9b('0x32')),_0x90743f['to'](_0x2a9b('0x25'),_0x1fa7d0=>_0x1fa7d0?_0x2a9b('0xe')+_0x1fa7d0:'')],'data-author-id':this[_0x2a9b('0x46')][_0x2a9b('0x1a')]['id'],'data-comment-id':this['_model']['id']},'children':[this[_0x2a9b('0x37')],{'tag':_0x2a9b('0xc'),'attributes':{'class':['ck-comment__main',_0x2a9b('0x15')]},'children':[{'tag':_0x2a9b('0xc'),'attributes':{'class':[_0x2a9b('0xf'),_0x2a9b('0x20')]},'children':[{'tag':_0x2a9b('0x11'),'children':[{'text':this[_0x2a9b('0x37')][_0x2a9b('0x6')]}],'attributes':{'class':[_0x2a9b('0x2d'),'ck-annotation__info-name']}},{'tag':_0x2a9b('0x12'),'attributes':{'datetime':_0x90743f['to'](_0x2a9b('0x8')),'class':[_0x2a9b('0x1e'),'ck-annotation__info-time']},'children':[{'text':_0x90743f['to'](_0x2a9b('0x8'),_0x2f03d7=>this[_0x2a9b('0x3a')][_0x2a9b('0x44')](_0x2f03d7))}]}]},{'tag':_0x2a9b('0xc'),'attributes':{'class':[_0x2a9b('0x3e'),_0x2a9b('0x19'),_0x90743f['if'](_0x2a9b('0x40'),_0x2a9b('0x22')),_0x90743f['if'](_0x2a9b('0x40'),_0x2a9b('0x16'))]},'children':[this[_0x2a9b('0x5')],this[_0x2a9b('0x28')]]},{'tag':_0x2a9b('0xc'),'attributes':{'class':[_0x2a9b('0x34')]},'children':this[_0x2a9b('0xb')]}]}]}]};}[_0x2a9b('0x1')](){const _0x113195=new _0x368055(this[_0x2a9b('0x2b')]);return _0x113195[_0x2a9b('0x33')]=_0x12be0f(this[_0x2a9b('0x2b')],_0x2a9b('0x41')),_0x113195[_0x2a9b('0x3')]=_0x3d612c[_0x2a9b('0x7')],_0x113195[_0x2a9b('0x4')]({'attributes':{'class':'ck-comment--edit'}}),_0x113195[_0x2a9b('0x29')]('isEnabled')['to'](this[_0x2a9b('0x46')],_0x2a9b('0x35'),_0x424bab=>!_0x424bab),_0x113195[_0x2a9b('0x29')](_0x2a9b('0x10'))['to'](this[_0x2a9b('0x46')],_0x2a9b('0x31')),_0x113195['on'](_0x2a9b('0x3b'),()=>this[_0x2a9b('0xa')]()),_0x113195;}['_createRemoveButton'](){const _0x566995=new _0x368055(this[_0x2a9b('0x2b')]);return _0x566995[_0x2a9b('0x33')]=_0x12be0f(this['locale'],_0x2a9b('0x26')),_0x566995[_0x2a9b('0x3')]=_0x434e41,_0x566995[_0x2a9b('0x4')]({'attributes':{'class':_0x2a9b('0x2e')}}),_0x566995[_0x2a9b('0x29')](_0x2a9b('0x43'))['to'](this['_model'],_0x2a9b('0x35'),_0x547fb8=>!_0x547fb8),_0x566995['bind'](_0x2a9b('0x10'))['to'](this[_0x2a9b('0x46')],_0x2a9b('0x14')),_0x566995['on'](_0x2a9b('0x3b'),()=>{this[_0x2a9b('0x0')](_0x12be0f(this[_0x2a9b('0x2b')],_0x2a9b('0x27')),this['element'])[_0x2a9b('0x9')](()=>{this[_0x2a9b('0x18')]('removeComment',this[_0x2a9b('0x46')]['id']);});}),_0x566995;}[_0x2a9b('0x24')](_0xcff323,_0x3e0ed3){this[_0x2a9b('0x38')](_0xcff323,_0x2a9b('0x3f'),()=>this['actionIndicator']=_0x3e0ed3),this['listenTo'](_0xcff323,_0x2a9b('0x2f'),()=>this['actionIndicator']=_0x3e0ed3),this[_0x2a9b('0x38')](_0xcff323,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0xcff323,_0x2a9b('0x13'),()=>this[_0x2a9b('0x25')]=null);}[_0x2a9b('0x1c')](){const _0x171d69=super[_0x2a9b('0x1c')]();return _0x171d69[_0x2a9b('0x29')](_0x2a9b('0x21'))['to'](this),_0x171d69;}['render'](){super[_0x2a9b('0x45')](),this[_0x2a9b('0x24')](this[_0x2a9b('0x5')][_0x2a9b('0x2a')],_0x2a9b('0x17')),this[_0x2a9b('0x24')](this[_0x2a9b('0x28')][_0x2a9b('0x2a')],_0x2a9b('0x2'));}}_0x2df9ae(ot,_0x3dfa83);
23
+ const _0xb4ef=['div','ck-comment--','render','userView','editButton','blur','ck-comment__external','EXTERNAL_COMMENT','icon','locale','formatDateTime','ck-comment__user','label','Remove','bind','_createEditButton','ck-comment--edit','extendTemplate','set','execute','ck-comment__actions--hidden','setTemplate','_createCommentInputView','ck-comment__actions','_attachActions','removeButton','Edit','ck-comment--remove-confirmation','isEnabled','removeComment','getTemplate','isEditable','ck-annotation__content-wrapper','push','ck-annotation__user','ck-annotation__main','ck-annotation__actions','ck-annotation__info','_model','placeholder','time','span','createdAt','isEditMode','switchToEditMode','element','change:isRemovable','edit','ck-annotation__info-time','externalAuthor','then','isReadOnly','ck-comment--remove','author','focus','_config','listenTo','ck-annotation','cancelConfirm','ck-comment','ck-annotation__actions--hidden','attributes','visibleView','ck-comment__info-name','_createRemoveButton','Delete\x20comment?','isConfirm','ck-annotation__info-name','remove','isRemovable','@external','actionIndicator','ck-comment__wrapper','ck-comment__main'];(function(_0x2e329f,_0xb4efa0){const _0x5e4dfa=function(_0x16bf6d){while(--_0x16bf6d){_0x2e329f['push'](_0x2e329f['shift']());}};_0x5e4dfa(++_0xb4efa0);}(_0xb4ef,0x126));const _0x5e4d=function(_0x2e329f,_0xb4efa0){_0x2e329f=_0x2e329f-0x0;let _0x5e4dfa=_0xb4ef[_0x2e329f];return _0x5e4dfa;};import{mix as _0x1ec9ea}from'ckeditor5/src/utils';import{ButtonView as _0x1026e6}from'ckeditor5/src/ui';import{icons as _0x3cb6d8}from'ckeditor5/src/core';import{UserView as _0x1dfa80,ConfirmMixin as _0x2230de}from'ckeditor5-collaboration/src/collaboration-core';import _0x104c6a from'./basecommentview';import _0x33d9af from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x28dd84}from'../../../utils/common-translations';export default class ot extends _0x104c6a{constructor(_0x1f93ed,_0x1f1d5d,_0x1726be){super(_0x1f93ed,_0x1f1d5d,_0x1726be),this[_0x5e4d('0x14')](_0x5e4d('0x49'),null),this[_0x5e4d('0x14')](_0x5e4d('0x29'),_0x28dd84(_0x1f93ed,'Reply...')),this[_0x5e4d('0x14')](_0x5e4d('0x2c'),null),this['bind'](_0x5e4d('0x2c'))['to'](_0x1f1d5d[_0x5e4d('0x33')]?_0x1f1d5d[_0x5e4d('0x3f')][_0x5e4d('0x48')]:_0x1f1d5d),this[_0x5e4d('0x6')]=this['_createEditButton'](),this[_0x5e4d('0x1b')]=this[_0x5e4d('0x42')](),this[_0x5e4d('0x5')]=new _0x1dfa80(_0x1f93ed,_0x1f1d5d[_0x5e4d('0x33')]||_0x1f1d5d[_0x5e4d('0x37')]),this[_0x5e4d('0x5')][_0x5e4d('0x13')]({'attributes':{'class':[_0x5e4d('0xd'),_0x5e4d('0x24')]}}),this[_0x5e4d('0x3a')](_0x1f1d5d,_0x5e4d('0x30'),()=>this[_0x5e4d('0x3c')]()),this[_0x5e4d('0x17')](this[_0x5e4d('0x20')]());}[_0x5e4d('0x20')](){const _0x2a2518=this['bindTemplate'],_0x324c1c=[{'tag':_0x5e4d('0x2'),'attributes':{'class':['ck-comment__info',_0x5e4d('0x27')]},'children':[{'tag':_0x5e4d('0x2b'),'children':[{'text':this['userView']['name']}],'attributes':{'class':[_0x5e4d('0x41'),_0x5e4d('0x45')]}},{'tag':_0x5e4d('0x2a'),'attributes':{'datetime':_0x2a2518['to']('createdAt'),'class':['ck-comment__info-time',_0x5e4d('0x32')]},'children':[{'text':_0x2a2518['to'](_0x5e4d('0x2c'),_0x31bf55=>this[_0x5e4d('0x39')][_0x5e4d('0xc')](_0x31bf55))}]}]},{'tag':_0x5e4d('0x2'),'attributes':{'class':[_0x5e4d('0x19'),_0x5e4d('0x26'),_0x2a2518['if'](_0x5e4d('0x2d'),_0x5e4d('0x16')),_0x2a2518['if'](_0x5e4d('0x2d'),_0x5e4d('0x3e'))]},'children':[this['editButton'],this['removeButton']]},{'tag':_0x5e4d('0x2'),'attributes':{'class':[_0x5e4d('0x22')]},'children':this[_0x5e4d('0x40')]}];return this[_0x5e4d('0x28')][_0x5e4d('0x33')]&&_0x324c1c[_0x5e4d('0x23')]({'tag':_0x5e4d('0x2'),'attributes':{'class':[_0x5e4d('0x8')]},'children':[{'text':_0x28dd84(this[_0x5e4d('0xb')],_0x5e4d('0x9'))}]}),{'tag':'li','attributes':{'class':[_0x5e4d('0x0'),_0x2a2518['if'](_0x5e4d('0x44'),_0x5e4d('0x1d'))],'tabindex':-0x1},'children':[{'tag':_0x5e4d('0x2'),'attributes':{'class':[_0x5e4d('0x3d'),_0x5e4d('0x3b'),_0x2a2518['if'](_0x5e4d('0x2d'),_0x5e4d('0x12')),_0x2a2518['to'](_0x5e4d('0x49'),_0x291b8b=>_0x291b8b?_0x5e4d('0x3')+_0x291b8b:'')],'data-author-id':this[_0x5e4d('0x28')][_0x5e4d('0x37')]['id'],'data-comment-id':this[_0x5e4d('0x28')]['id']},'children':[this['userView'],{'tag':'div','attributes':{'class':[_0x5e4d('0x1'),_0x5e4d('0x25')]},'children':_0x324c1c}]}]};}[_0x5e4d('0x11')](){const _0x62da2a=new _0x1026e6(this[_0x5e4d('0xb')]);return _0x62da2a[_0x5e4d('0xe')]=_0x28dd84(this[_0x5e4d('0xb')],_0x5e4d('0x1c')),_0x62da2a[_0x5e4d('0xa')]=_0x3cb6d8['pencil'],_0x62da2a[_0x5e4d('0x13')]({'attributes':{'class':_0x5e4d('0x12')}}),_0x62da2a[_0x5e4d('0x10')](_0x5e4d('0x1e'))['to'](this['_model'],_0x5e4d('0x35'),_0x2cc6f4=>!_0x2cc6f4),_0x62da2a[_0x5e4d('0x10')]('isVisible')['to'](this[_0x5e4d('0x28')],_0x5e4d('0x21')),_0x62da2a['on'](_0x5e4d('0x15'),()=>this[_0x5e4d('0x2e')]()),_0x62da2a;}['_createRemoveButton'](){const _0x2ccda3=new _0x1026e6(this[_0x5e4d('0xb')]);return _0x2ccda3[_0x5e4d('0xe')]=_0x28dd84(this[_0x5e4d('0xb')],_0x5e4d('0xf')),_0x2ccda3[_0x5e4d('0xa')]=_0x33d9af,_0x2ccda3['extendTemplate']({'attributes':{'class':_0x5e4d('0x36')}}),_0x2ccda3[_0x5e4d('0x10')](_0x5e4d('0x1e'))['to'](this[_0x5e4d('0x28')],_0x5e4d('0x35'),_0x1b33cd=>!_0x1b33cd),_0x2ccda3[_0x5e4d('0x10')]('isVisible')['to'](this[_0x5e4d('0x28')],_0x5e4d('0x47')),_0x2ccda3['on'](_0x5e4d('0x15'),()=>{this['showConfirm'](_0x28dd84(this[_0x5e4d('0xb')],_0x5e4d('0x43')),this[_0x5e4d('0x2f')])[_0x5e4d('0x34')](()=>{this['fire'](_0x5e4d('0x1f'),this['_model']['id']);});}),_0x2ccda3;}['_attachActions'](_0xf8ae5d,_0x38f82f){this[_0x5e4d('0x3a')](_0xf8ae5d,'mouseenter',()=>this[_0x5e4d('0x49')]=_0x38f82f),this[_0x5e4d('0x3a')](_0xf8ae5d,_0x5e4d('0x38'),()=>this[_0x5e4d('0x49')]=_0x38f82f),this[_0x5e4d('0x3a')](_0xf8ae5d,'mouseleave',()=>this[_0x5e4d('0x49')]=null),this[_0x5e4d('0x3a')](_0xf8ae5d,_0x5e4d('0x7'),()=>this[_0x5e4d('0x49')]=null);}[_0x5e4d('0x18')](){const _0x4458a3=super[_0x5e4d('0x18')]();return _0x4458a3[_0x5e4d('0x10')](_0x5e4d('0x29'))['to'](this),_0x4458a3;}[_0x5e4d('0x4')](){super['render'](),this['_attachActions'](this['editButton'][_0x5e4d('0x2f')],_0x5e4d('0x31')),this[_0x5e4d('0x1a')](this[_0x5e4d('0x1b')][_0x5e4d('0x2f')],_0x5e4d('0x46'));}}_0x1ec9ea(ot,_0x2230de);
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x17d3=['Comments','pluginName','requires'];(function(_0x8d7308,_0x17d3a3){var _0x5cd555=function(_0x4ed1d7){while(--_0x4ed1d7){_0x8d7308['push'](_0x8d7308['shift']());}};_0x5cd555(++_0x17d3a3);}(_0x17d3,0x89));var _0x5cd5=function(_0x8d7308,_0x17d3a3){_0x8d7308=_0x8d7308-0x0;var _0x5cd555=_0x17d3[_0x8d7308];return _0x5cd555;};import{Plugin as _0x258e96}from'ckeditor5/src/core';import _0x5d8f4c from'./comments/commentsrepository';import _0x340a9f from'./comments/commentsediting';import _0x1d9b85 from'./comments/commentsui';import _0x536c02 from'./commentsonly';import _0x39a72d from'./annotations/widesidebar';import _0x1884ae from'./annotations/narrowsidebar';import _0x1aecbe from'./annotations/inlineannotations';export default class c extends _0x258e96{static get[_0x5cd5('0x0')](){return[_0x5d8f4c,_0x340a9f,_0x1d9b85,_0x536c02,_0x39a72d,_0x1884ae,_0x1aecbe];}static get[_0x5cd5('0x2')](){return _0x5cd5('0x1');}}
23
+ var _0x3611=['requires','pluginName','Comments'];(function(_0x504b1b,_0x3611b9){var _0x47a446=function(_0xf14e8c){while(--_0xf14e8c){_0x504b1b['push'](_0x504b1b['shift']());}};_0x47a446(++_0x3611b9);}(_0x3611,0x1b5));var _0x47a4=function(_0x504b1b,_0x3611b9){_0x504b1b=_0x504b1b-0x0;var _0x47a446=_0x3611[_0x504b1b];return _0x47a446;};import{Plugin as _0x5865f8}from'ckeditor5/src/core';import _0x3d41b5 from'./comments/commentsrepository';import _0x55f654 from'./comments/commentsediting';import _0x13d8ca from'./comments/commentsui';import _0x453020 from'./commentsonly';import _0x1e0e3d from'./annotations/widesidebar';import _0x336f31 from'./annotations/narrowsidebar';import _0x2b5fc1 from'./annotations/inlineannotations';export default class c extends _0x5865f8{static get[_0x47a4('0x1')](){return[_0x3d41b5,_0x55f654,_0x13d8ca,_0x453020,_0x1e0e3d,_0x336f31,_0x2b5fc1];}static get[_0x47a4('0x2')](){return _0x47a4('0x0');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3fb4=['cut','change:isEnabled','editing','affectsData','document','clipboardInput','commands','_enableCommentsOnlyMode','get','commentsOnly','CommentsOnly','forceDisabled','view','stopListening','has','set','listenTo','stop','_disableCommentsOnlyMode','requires','editor','DragDrop','commentsOnlyMode','highest','addCommentThread','isEnabled','delete','plugins','pluginName'];(function(_0x3dd148,_0x3fb4fd){const _0x2c71bd=function(_0x20dcba){while(--_0x20dcba){_0x3dd148['push'](_0x3dd148['shift']());}};_0x2c71bd(++_0x3fb4fd);}(_0x3fb4,0x167));const _0x2c71=function(_0x3dd148,_0x3fb4fd){_0x3dd148=_0x3dd148-0x0;let _0x2c71bd=_0x3fb4[_0x3dd148];return _0x2c71bd;};import{Plugin as _0x3660a7}from'ckeditor5/src/core';import _0x10cce2 from'./comments/commentsediting';export default class e extends _0x3660a7{static get[_0x2c71('0x11')](){return _0x2c71('0x1c');}static get[_0x2c71('0x8')](){return[_0x10cce2];}constructor(_0x552e3b){super(_0x552e3b),this[_0x2c71('0x4')](_0x2c71('0xe'),null),this['on'](_0x2c71('0x13'),(_0x418327,_0x1f6366,_0x2285d2)=>{_0x2285d2?this['_enableCommentsOnlyMode']():this[_0x2c71('0x7')]();});}['afterInit'](){null===this[_0x2c71('0xe')]&&(this[_0x2c71('0xe')]=!!this[_0x2c71('0x9')]['config'][_0x2c71('0x1a')](_0x2c71('0x1b')));}[_0x2c71('0x19')](){for(const [_0x3979f3,_0xd2462a]of this[_0x2c71('0x9')][_0x2c71('0x18')])_0xd2462a[_0x2c71('0x15')]&&_0x2c71('0xd')!==_0x3979f3&&_0xd2462a[_0x2c71('0x0')]('commentsOnlyMode');this['editor'][_0x2c71('0x10')][_0x2c71('0x3')](_0x2c71('0xa'))&&this['editor'][_0x2c71('0x10')]['get']('DragDrop')['forceDisabled'](_0x2c71('0xb'));const _0x4967e7=this['editor'][_0x2c71('0x14')]['view'][_0x2c71('0x16')];this[_0x2c71('0x5')](_0x4967e7,_0x2c71('0x12'),_0x35b9d1=>_0x35b9d1['stop'](),{'priority':'highest'}),this[_0x2c71('0x5')](_0x4967e7,_0x2c71('0x17'),_0x3d936e=>_0x3d936e['stop'](),{'priority':_0x2c71('0xc')}),this[_0x2c71('0x5')](_0x4967e7,_0x2c71('0xf'),_0x12a4d1=>_0x12a4d1[_0x2c71('0x6')](),{'priority':_0x2c71('0xc')});}['_disableCommentsOnlyMode'](){for(const [_0x390a10,_0x483407]of this[_0x2c71('0x9')][_0x2c71('0x18')])_0x483407[_0x2c71('0x15')]&&_0x2c71('0xd')!==_0x390a10&&_0x483407['clearForceDisabled'](_0x2c71('0xb'));this[_0x2c71('0x2')](this[_0x2c71('0x9')]['editing'][_0x2c71('0x1')][_0x2c71('0x16')]);}}
23
+ const _0x1510=['_enableCommentsOnlyMode','pluginName','clearForceDisabled','stopListening','document','stop','commands','requires','set','delete','cut','highest','listenTo','DragDrop','editing','plugins','get','_disableCommentsOnlyMode','commentsOnlyMode','isEnabled','view','editor','config','addCommentThread'];(function(_0x468e94,_0x1510ee){const _0x38bc61=function(_0x5c15b9){while(--_0x5c15b9){_0x468e94['push'](_0x468e94['shift']());}};_0x38bc61(++_0x1510ee);}(_0x1510,0x18c));const _0x38bc=function(_0x468e94,_0x1510ee){_0x468e94=_0x468e94-0x0;let _0x38bc61=_0x1510[_0x468e94];return _0x38bc61;};import{Plugin as _0x41508d}from'ckeditor5/src/core';import _0x14eaf6 from'./comments/commentsediting';export default class e extends _0x41508d{static get[_0x38bc('0xd')](){return'CommentsOnly';}static get[_0x38bc('0x13')](){return[_0x14eaf6];}constructor(_0xed0b5){super(_0xed0b5),this[_0x38bc('0x14')]('isEnabled',null),this['on']('change:isEnabled',(_0x2a1ace,_0x57b2a0,_0x109817)=>{_0x109817?this['_enableCommentsOnlyMode']():this[_0x38bc('0x5')]();});}['afterInit'](){null===this[_0x38bc('0x7')]&&(this[_0x38bc('0x7')]=!!this[_0x38bc('0x9')][_0x38bc('0xa')][_0x38bc('0x4')]('commentsOnly'));}[_0x38bc('0xc')](){for(const [_0x53e268,_0x15e227]of this[_0x38bc('0x9')]['commands'])_0x15e227['affectsData']&&_0x38bc('0xb')!==_0x53e268&&_0x15e227['forceDisabled'](_0x38bc('0x6'));this[_0x38bc('0x9')][_0x38bc('0x3')]['has'](_0x38bc('0x1'))&&this[_0x38bc('0x9')][_0x38bc('0x3')][_0x38bc('0x4')](_0x38bc('0x1'))['forceDisabled'](_0x38bc('0x6'));const _0x29628a=this[_0x38bc('0x9')][_0x38bc('0x2')][_0x38bc('0x8')][_0x38bc('0x10')];this[_0x38bc('0x0')](_0x29628a,_0x38bc('0x16'),_0x3d63ae=>_0x3d63ae['stop'](),{'priority':_0x38bc('0x17')}),this[_0x38bc('0x0')](_0x29628a,'clipboardInput',_0x57f12c=>_0x57f12c[_0x38bc('0x11')](),{'priority':'highest'}),this[_0x38bc('0x0')](_0x29628a,_0x38bc('0x15'),_0x34c504=>_0x34c504[_0x38bc('0x11')](),{'priority':_0x38bc('0x17')});}[_0x38bc('0x5')](){for(const [_0x3f5f39,_0xe7be17]of this[_0x38bc('0x9')][_0x38bc('0x12')])_0xe7be17['affectsData']&&'addCommentThread'!==_0x3f5f39&&_0xe7be17[_0x38bc('0xe')](_0x38bc('0x6'));this[_0x38bc('0xf')](this[_0x38bc('0x9')][_0x38bc('0x2')]['view']['document']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x511326,_0x433c43,_0x5f3385){const t=_0x511326['t'];switch(_0x433c43){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Remove':return t('Remove');case'Submit':return t('Submit');case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x5f3385);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0x5f3385);}}
23
+ export function getTranslation(_0x59cc8f,_0x2fe8dd,_0x1317fb){const t=_0x59cc8f['t'];switch(_0x2fe8dd){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Remove':return t('Remove');case'Submit':return t('Submit');case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x1317fb);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0x1317fb);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3959=['observe','childList','attributes','type'];(function(_0x1dc59e,_0x3959e1){const _0x55c140=function(_0x3dc934){while(--_0x3dc934){_0x1dc59e['push'](_0x1dc59e['shift']());}};_0x55c140(++_0x3959e1);}(_0x3959,0xe1));const _0x55c1=function(_0x1dc59e,_0x3959e1){_0x1dc59e=_0x1dc59e-0x0;let _0x55c140=_0x3959[_0x1dc59e];return _0x55c140;};import{throttle as _0x1c7b42}from'lodash-es';export default function ut(_0x416758){const _0x41fb69=_0x1c7b42(_0x416758,0x1e),_0x6071ff=new MutationObserver(_0x249702=>{for(const _0x71e923 of _0x249702)(_0x55c1('0x1')==_0x71e923[_0x55c1('0x2')]&&'class'==_0x71e923['attributeName']||_0x55c1('0x0')==_0x71e923[_0x55c1('0x2')])&&_0x41fb69();});return{'attach'(_0x491fbc){_0x6071ff[_0x55c1('0x3')](_0x491fbc,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x6071ff['disconnect'](),_0x41fb69['cancel']();}};}
23
+ const _0x19b1=['childList','type','cancel','attributes','observe','disconnect','attributeName'];(function(_0x44fee3,_0x19b14f){const _0x4cf82b=function(_0x3b7392){while(--_0x3b7392){_0x44fee3['push'](_0x44fee3['shift']());}};_0x4cf82b(++_0x19b14f);}(_0x19b1,0x186));const _0x4cf8=function(_0x44fee3,_0x19b14f){_0x44fee3=_0x44fee3-0x0;let _0x4cf82b=_0x19b1[_0x44fee3];return _0x4cf82b;};import{throttle as _0x1f36e2}from'lodash-es';export default function ft(_0x424f09){const _0x437ef2=_0x1f36e2(_0x424f09,0x1e),_0x3f0162=new MutationObserver(_0x54d6a4=>{for(const _0x3fa249 of _0x54d6a4)(_0x4cf8('0x5')==_0x3fa249[_0x4cf8('0x3')]&&'class'==_0x3fa249[_0x4cf8('0x1')]||_0x4cf8('0x2')==_0x3fa249['type'])&&_0x437ef2();});return{'attach'(_0x52e5b8){_0x3f0162[_0x4cf8('0x6')](_0x52e5b8,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x3f0162[_0x4cf8('0x0')](),_0x437ef2[_0x4cf8('0x4')]();}};}
package/theme/comment.css CHANGED
@@ -123,3 +123,10 @@ We are styling resetting list-style because of parent <ul> element. */
123
123
  }
124
124
  }
125
125
  }
126
+
127
+ .ck .ck-comment__external {
128
+ font-style: italic;
129
+ color: var(--ck-color-annotation-info);
130
+ font-size: var(--ck-font-size-small);
131
+ margin-top: var(--ck-spacing-standard);
132
+ }