@ckeditor/ckeditor5-comments 35.0.1 → 35.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) 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/annotation-inline.css +0 -21
  146. package/theme/comment.css +7 -0
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ const _0x5b33=['addCommentThread','editor','collaboration_features','collaboration.channelId','map','config','execute','afterInit','_handleImportedData','get','plugins','Users'];(function(_0x19d2e1,_0x5b3351){const _0x3c3512=function(_0x4f3c4a){while(--_0x4f3c4a){_0x19d2e1['push'](_0x19d2e1['shift']());}};_0x3c3512(++_0x5b3351);}(_0x5b33,0xd0));const _0x3c35=function(_0x19d2e1,_0x5b3351){_0x19d2e1=_0x19d2e1-0x0;let _0x3c3512=_0x5b33[_0x19d2e1];return _0x3c3512;};import{Plugin as _0x360c8f}from'ckeditor5/src/core';import{priorities as _0x58ac2a}from'ckeditor5/src/utils';import _0x2a2062 from'../commentsrepository';export default class q extends _0x360c8f{[_0x3c35('0x3')](){const _0x26c43b=this[_0x3c35('0x9')],_0x5d6bf1=_0x26c43b['commands'][_0x3c35('0x5')]('importWord'),_0x18e310=_0x26c43b[_0x3c35('0x6')][_0x3c35('0x5')]('Users');_0x5d6bf1&&(_0x5d6bf1['on'](_0x3c35('0x2'),(_0x5d5ffe,[,_0xab029f])=>{_0xab029f[_0x3c35('0xa')]={'comments':!0x0,'user_id':_0x18e310['me']['id']};},{'priority':_0x58ac2a['high']+0xa}),this['listenTo'](_0x5d6bf1,'dataInsert',this[_0x3c35('0x4')]));}[_0x3c35('0x4')](_0x120a36,_0x3d8fd6){const {comment_threads:_0x352371}=_0x3d8fd6;_0x352371&&_0x352371['forEach'](({thread_id:_0x1af47c,comments:_0x297b74})=>{const _0x5b0884=_0x297b74[_0x3c35('0x0')](({author:_0x12cbeb,content:_0x3a5e5b,created_at:_0x1e4976})=>({'content':_0x3a5e5b,'authorId':this[_0x3c35('0x9')]['plugins']['get'](_0x3c35('0x7'))['me']['id'],'createdAt':new Date(),'attributes':{'@external':{'authorName':_0x12cbeb,'createdAt':_0x1e4976?new Date(_0x1e4976):new Date()}}})),_0x2ffed2=this[_0x3c35('0x9')][_0x3c35('0x1')]['get'](_0x3c35('0xb'));this[_0x3c35('0x9')][_0x3c35('0x6')][_0x3c35('0x5')](_0x2a2062)[_0x3c35('0x8')]({'channelId':_0x2ffed2,'threadId':_0x1af47c,'comments':_0x5b0884});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xc927=['focus','data','defaultPlugins','change','create','name','get','ready','_updatePlaceholder','childCount','initPlugins','low','placeholder','placeholderElement','destroy','initialData','then','view','init','setSelection','document','end','editing','model','assign','change:placeholder','config','getRoot'];(function(_0x57f6aa,_0xc927da){const _0x48f356=function(_0x1b8be5){while(--_0x1b8be5){_0x57f6aa['push'](_0x57f6aa['shift']());}};_0x48f356(++_0xc927da);}(_0xc927,0x1d5));const _0x48f3=function(_0x57f6aa,_0xc927da){_0x57f6aa=_0x57f6aa-0x0;let _0x48f356=_0xc927[_0x57f6aa];return _0x48f356;};import{Editor as _0x58aa92,DataApiMixin as _0xa540fb}from'ckeditor5/src/core';import _0x2fbe63 from'./commenteditorui';import{mix as _0x35bd5a,ObservableMixin as _0x432229}from'ckeditor5/src/utils';import{enablePlaceholder as _0x1e66e4,disablePlaceholder as _0x231035}from'ckeditor5/src/engine';import{Clipboard as _0x48d2b7}from'ckeditor5/src/clipboard';import{Enter as _0x3c065f,ShiftEnter as _0x3b4f42}from'ckeditor5/src/enter';import{SelectAll as _0x48e306}from'ckeditor5/src/select-all';import{Typing as _0x371fcf}from'ckeditor5/src/typing';import{Undo as _0x2a575c}from'ckeditor5/src/undo';import{Paragraph as _0x2f3a77}from'ckeditor5/src/paragraph';export default class qt extends _0x58aa92{constructor(_0x766886={}){(_0x766886=Object[_0x48f3('0x3')]({},_0x766886))['plugins']||(_0x766886['plugins']=qt[_0x48f3('0x9')]),super(_0x766886),this['ui']=new _0x2fbe63(this),this['set'](_0x48f3('0x13'),''),this[_0x48f3('0x2')][_0x48f3('0x1b')]['on'](_0x48f3('0xa'),()=>this[_0x48f3('0xf')](),{'priority':_0x48f3('0x12')}),this['on'](_0x48f3('0x4'),()=>this[_0x48f3('0xf')]()),this['model'][_0x48f3('0x1b')]['createRoot']();}[_0x48f3('0xb')](){const _0x15570e=this[_0x48f3('0x5')][_0x48f3('0xd')](_0x48f3('0x16'))||'';return this[_0x48f3('0x11')]()[_0x48f3('0x17')](()=>this['ui'][_0x48f3('0x19')]())['then'](()=>this[_0x48f3('0x8')]['init'](_0x15570e))[_0x48f3('0x17')](()=>this['fire'](_0x48f3('0xe')));}[_0x48f3('0x15')](){return super[_0x48f3('0x15')]()[_0x48f3('0x17')](()=>this['ui']['destroy']());}[_0x48f3('0x7')](){this[_0x48f3('0x2')][_0x48f3('0xa')](_0x42c2d1=>{const _0x46823a=this[_0x48f3('0x2')][_0x48f3('0x1b')]['getRoot'](),_0x3b3308=_0x46823a['getChild'](_0x46823a[_0x48f3('0x10')]-0x1);_0x42c2d1[_0x48f3('0x1a')](_0x3b3308,_0x48f3('0x0')),this['editing']['view'][_0x48f3('0x7')]();});}[_0x48f3('0xf')](){const _0x239506=this[_0x48f3('0x1')][_0x48f3('0x18')],_0xc890e6=_0x239506[_0x48f3('0x1b')][_0x48f3('0x6')](),_0x4ec637=_0xc890e6['getChild'](0x0);_0xc890e6[_0x48f3('0x10')]>0x1||!_0x4ec637||'p'!=_0x4ec637[_0x48f3('0xc')]?this[_0x48f3('0x14')]&&(_0x231035(_0x239506,this[_0x48f3('0x14')]),this[_0x48f3('0x14')]=void 0x0):(_0x1e66e4({'view':_0x239506,'element':_0x4ec637,'text':this[_0x48f3('0x13')],'keepOnFocus':!0x0}),this[_0x48f3('0x14')]=_0x4ec637);}}_0x35bd5a(qt,_0x432229),_0x35bd5a(qt,_0xa540fb),qt[_0x48f3('0x9')]=[_0x48d2b7,_0x3c065f,_0x3b4f42,_0x48e306,_0x371fcf,_0x2a575c,_0x2f3a77];
23
+ const _0x28d9=['end','then','createRoot','view','set','name','init','config','setSelection','placeholderElement','defaultPlugins','editing','assign','document','_updatePlaceholder','change','low','fire','childCount','getRoot','model','destroy','create','getChild','focus','ready','placeholder','initPlugins','plugins'];(function(_0x2c2646,_0x28d970){const _0x2f24da=function(_0x3856da){while(--_0x3856da){_0x2c2646['push'](_0x2c2646['shift']());}};_0x2f24da(++_0x28d970);}(_0x28d9,0x11d));const _0x2f24=function(_0x2c2646,_0x28d970){_0x2c2646=_0x2c2646-0x0;let _0x2f24da=_0x28d9[_0x2c2646];return _0x2f24da;};import{Editor as _0x28e823,DataApiMixin as _0x1038bd}from'ckeditor5/src/core';import _0xb96936 from'./commenteditorui';import{mix as _0x3c342a,ObservableMixin as _0x138dbc}from'ckeditor5/src/utils';import{enablePlaceholder as _0x2eeba0,disablePlaceholder as _0x4f956b}from'ckeditor5/src/engine';import{Clipboard as _0x1d9194}from'ckeditor5/src/clipboard';import{Enter as _0x5a5de7,ShiftEnter as _0x5ae892}from'ckeditor5/src/enter';import{SelectAll as _0x4c2427}from'ckeditor5/src/select-all';import{Typing as _0x2ca3e0}from'ckeditor5/src/typing';import{Undo as _0x2409b5}from'ckeditor5/src/undo';import{Paragraph as _0x209e75}from'ckeditor5/src/paragraph';export default class zt extends _0x28e823{constructor(_0x30abb3={}){(_0x30abb3=Object[_0x2f24('0x11')]({},_0x30abb3))[_0x2f24('0x4')]||(_0x30abb3[_0x2f24('0x4')]=zt['defaultPlugins']),super(_0x30abb3),this['ui']=new _0xb96936(this),this[_0x2f24('0x9')](_0x2f24('0x2'),''),this['model'][_0x2f24('0x12')]['on']('change',()=>this['_updatePlaceholder'](),{'priority':_0x2f24('0x15')}),this['on']('change:placeholder',()=>this[_0x2f24('0x13')]()),this[_0x2f24('0x19')][_0x2f24('0x12')][_0x2f24('0x7')]();}[_0x2f24('0x1b')](){const _0x2eeec1=this[_0x2f24('0xc')]['get']('initialData')||'';return this[_0x2f24('0x3')]()[_0x2f24('0x6')](()=>this['ui']['init']())[_0x2f24('0x6')](()=>this['data'][_0x2f24('0xb')](_0x2eeec1))[_0x2f24('0x6')](()=>this[_0x2f24('0x16')](_0x2f24('0x1')));}[_0x2f24('0x1a')](){return super[_0x2f24('0x1a')]()[_0x2f24('0x6')](()=>this['ui'][_0x2f24('0x1a')]());}[_0x2f24('0x0')](){this[_0x2f24('0x19')][_0x2f24('0x14')](_0x45e76a=>{const _0x73c363=this[_0x2f24('0x19')][_0x2f24('0x12')][_0x2f24('0x18')](),_0x4a46ca=_0x73c363[_0x2f24('0x1c')](_0x73c363[_0x2f24('0x17')]-0x1);_0x45e76a[_0x2f24('0xd')](_0x4a46ca,_0x2f24('0x5')),this[_0x2f24('0x10')][_0x2f24('0x8')][_0x2f24('0x0')]();});}[_0x2f24('0x13')](){const _0x11f35b=this[_0x2f24('0x10')]['view'],_0x17d42f=_0x11f35b[_0x2f24('0x12')][_0x2f24('0x18')](),_0x48b412=_0x17d42f['getChild'](0x0);_0x17d42f[_0x2f24('0x17')]>0x1||!_0x48b412||'p'!=_0x48b412[_0x2f24('0xa')]?this['placeholderElement']&&(_0x4f956b(_0x11f35b,this[_0x2f24('0xe')]),this[_0x2f24('0xe')]=void 0x0):(_0x2eeba0({'view':_0x11f35b,'element':_0x48b412,'text':this['placeholder'],'keepOnFocus':!0x0}),this[_0x2f24('0xe')]=_0x48b412);}}_0x3c342a(zt,_0x138dbc),_0x3c342a(zt,_0x1038bd),zt[_0x2f24('0xf')]=[_0x1d9194,_0x5a5de7,_0x5ae892,_0x4c2427,_0x2ca3e0,_0x2409b5,_0x209e75];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x218b=['bind','editable','destroy','render','ready','focusTracker','locale','document','view','getRoot','element','editing','editor','init'];(function(_0x3c0416,_0x218b39){const _0x43adb1=function(_0xbbfecb){while(--_0xbbfecb){_0x3c0416['push'](_0x3c0416['shift']());}};_0x43adb1(++_0x218b39);}(_0x218b,0x160));const _0x43ad=function(_0x3c0416,_0x218b39){_0x3c0416=_0x3c0416-0x0;let _0x43adb1=_0x218b[_0x3c0416];return _0x43adb1;};import{EditorUI as _0x55e286}from'ckeditor5/src/core';import _0x420053 from'./commenteditoruiview';export default class yt extends _0x55e286{constructor(_0x211301){super(_0x211301),this['view']=new _0x420053(_0x211301[_0x43ad('0x4')],_0x211301[_0x43ad('0x9')][_0x43ad('0x6')]);}get[_0x43ad('0x8')](){return this[_0x43ad('0x6')][_0x43ad('0x8')];}[_0x43ad('0xb')](){const _0x3c9d7e=this[_0x43ad('0xa')][_0x43ad('0x9')][_0x43ad('0x6')],_0x1d1aa0=this[_0x43ad('0x6')][_0x43ad('0xd')],_0x307eec=_0x3c9d7e[_0x43ad('0x5')][_0x43ad('0x7')]();_0x1d1aa0['name']=_0x307eec['rootName'],this['view'][_0x43ad('0x1')]();const _0x26373d=_0x1d1aa0[_0x43ad('0x8')];this['setEditableElement'](_0x1d1aa0['name'],_0x26373d),this['focusTracker']['add'](_0x26373d),this['view']['editable'][_0x43ad('0xc')]('isFocused')['to'](this[_0x43ad('0x3')]),_0x3c9d7e['attachDomRoot'](_0x26373d),this['fire'](_0x43ad('0x2'));}[_0x43ad('0x0')](){this[_0x43ad('0x6')]['destroy'](),super[_0x43ad('0x0')]();}}
23
+ const _0x27af=['isFocused','ready','locale','editable','name','view','editor','document','setEditableElement','rootName','bind','init','attachDomRoot','destroy','editing','getRoot','element'];(function(_0x170850,_0x27afaa){const _0x9d0fb5=function(_0x4ffd63){while(--_0x4ffd63){_0x170850['push'](_0x170850['shift']());}};_0x9d0fb5(++_0x27afaa);}(_0x27af,0x6a));const _0x9d0f=function(_0x170850,_0x27afaa){_0x170850=_0x170850-0x0;let _0x9d0fb5=_0x27af[_0x170850];return _0x9d0fb5;};import{EditorUI as _0x14fc54}from'ckeditor5/src/core';import _0x54290f from'./commenteditoruiview';export default class wt extends _0x14fc54{constructor(_0x1aab1c){super(_0x1aab1c),this['view']=new _0x54290f(_0x1aab1c[_0x9d0f('0xf')],_0x1aab1c[_0x9d0f('0xa')][_0x9d0f('0x1')]);}get[_0x9d0f('0xc')](){return this[_0x9d0f('0x1')]['element'];}[_0x9d0f('0x7')](){const _0x437458=this[_0x9d0f('0x2')][_0x9d0f('0xa')]['view'],_0x2635a6=this[_0x9d0f('0x1')][_0x9d0f('0x10')],_0xcb508e=_0x437458[_0x9d0f('0x3')][_0x9d0f('0xb')]();_0x2635a6['name']=_0xcb508e[_0x9d0f('0x5')],this[_0x9d0f('0x1')]['render']();const _0x1b536c=_0x2635a6[_0x9d0f('0xc')];this[_0x9d0f('0x4')](_0x2635a6[_0x9d0f('0x0')],_0x1b536c),this['view'][_0x9d0f('0x10')][_0x9d0f('0x6')](_0x9d0f('0xd'))['to'](this['focusTracker']),_0x437458[_0x9d0f('0x8')](_0x1b536c),this['fire'](_0x9d0f('0xe'));}['destroy'](){this[_0x9d0f('0x1')][_0x9d0f('0x9')](),super[_0x9d0f('0x9')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4c7a=['ck-rounded-corners','uiLanguage','render','ck-reset','editable','extendTemplate','setTemplate','ck-voice-label','div','add','presentation','focus','main','_createVoiceLabel','ck-editor__main','_voiceLabelView'];(function(_0x59e26f,_0x4c7ac7){const _0x1bdb83=function(_0x585d47){while(--_0x585d47){_0x59e26f['push'](_0x59e26f['shift']());}};_0x1bdb83(++_0x4c7ac7);}(_0x4c7a,0x1dd));const _0x1bdb=function(_0x59e26f,_0x4c7ac7){_0x59e26f=_0x59e26f-0x0;let _0x1bdb83=_0x4c7a[_0x59e26f];return _0x1bdb83;};import{InlineEditableUIView as _0x29dcb8,EditorUIView as _0x47cfb6,LabelView as _0x47b3a5}from'ckeditor5/src/ui';import{uid as _0x131659}from'ckeditor5/src/utils';import{getTranslation as _0x383c1a}from'../../../utils/common-translations';export default class At extends _0x47cfb6{constructor(_0x45f056,_0x801365){super(_0x45f056);const _0x5568d3=_0x131659();this[_0x1bdb('0xf')]=this['createCollection'](),this[_0x1bdb('0x7')]=new _0x29dcb8(_0x45f056,_0x801365),this[_0x1bdb('0x2')]=this['_createVoiceLabel'](_0x5568d3,_0x45f056),this[_0x1bdb('0x9')]({'tag':'div','attributes':{'class':[_0x1bdb('0x6'),'ck-editor',_0x1bdb('0x3'),'ck-comment__input'],'role':'comment','dir':_0x45f056['uiLanguageDirection'],'lang':_0x45f056[_0x1bdb('0x4')],'aria-labelledby':'cke-editor__aria-label_'+_0x5568d3},'children':[this[_0x1bdb('0x2')],{'tag':_0x1bdb('0xb'),'attributes':{'class':_0x1bdb('0x1'),'role':_0x1bdb('0xd')},'children':this[_0x1bdb('0xf')]}]});}[_0x1bdb('0x5')](){super[_0x1bdb('0x5')](),this[_0x1bdb('0xf')][_0x1bdb('0xc')](this['editable']);}[_0x1bdb('0xe')](){this['editable']['element'][_0x1bdb('0xe')]();}[_0x1bdb('0x0')](_0x52fbe1,_0x179905){const _0x45e101=new _0x47b3a5();return _0x45e101['text']=_0x383c1a(_0x179905,'Comment\x20editor'),_0x45e101[_0x1bdb('0x8')]({'attributes':{'id':'ck-editor__aria-label_'+_0x52fbe1,'class':_0x1bdb('0xa')}}),_0x45e101;}}
23
+ const _0x17dd=['_createVoiceLabel','comment','presentation','extendTemplate','ck-voice-label','ck-editor__main','add','ck-editor','ck-rounded-corners','main','render','ck-reset','text','ck-comment__input','uiLanguageDirection','editable','focus','_voiceLabelView','uiLanguage','setTemplate'];(function(_0x548df,_0x17dda6){const _0x782528=function(_0x601c80){while(--_0x601c80){_0x548df['push'](_0x548df['shift']());}};_0x782528(++_0x17dda6);}(_0x17dd,0x65));const _0x7825=function(_0x548df,_0x17dda6){_0x548df=_0x548df-0x0;let _0x782528=_0x17dd[_0x548df];return _0x782528;};import{InlineEditableUIView as _0x2ac59e,EditorUIView as _0x52cd44,LabelView as _0x4e306f}from'ckeditor5/src/ui';import{uid as _0x12c406}from'ckeditor5/src/utils';import{getTranslation as _0x202806}from'../../../utils/common-translations';export default class Bt extends _0x52cd44{constructor(_0x3d70a3,_0x3c77ff){super(_0x3d70a3);const _0x42ddb6=_0x12c406();this[_0x7825('0x8')]=this['createCollection'](),this[_0x7825('0xe')]=new _0x2ac59e(_0x3d70a3,_0x3c77ff),this['_voiceLabelView']=this[_0x7825('0x13')](_0x42ddb6,_0x3d70a3),this[_0x7825('0x12')]({'tag':'div','attributes':{'class':[_0x7825('0xa'),_0x7825('0x6'),_0x7825('0x7'),_0x7825('0xc')],'role':_0x7825('0x0'),'dir':_0x3d70a3[_0x7825('0xd')],'lang':_0x3d70a3[_0x7825('0x11')],'aria-labelledby':'cke-editor__aria-label_'+_0x42ddb6},'children':[this[_0x7825('0x10')],{'tag':'div','attributes':{'class':_0x7825('0x4'),'role':_0x7825('0x1')},'children':this['main']}]});}['render'](){super[_0x7825('0x9')](),this[_0x7825('0x8')][_0x7825('0x5')](this[_0x7825('0xe')]);}[_0x7825('0xf')](){this[_0x7825('0xe')]['element'][_0x7825('0xf')]();}['_createVoiceLabel'](_0x4d6f89,_0x56125c){const _0xc85083=new _0x4e306f();return _0xc85083[_0x7825('0xb')]=_0x202806(_0x56125c,'Comment\x20editor'),_0xc85083[_0x7825('0x2')]({'attributes':{'id':'ck-editor__aria-label_'+_0x4d6f89,'class':_0x7825('0x3')}}),_0xc85083;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x55d7=['removeComment','model','updateComment','listenTo','view','getComment','_isAttached','addComment','destroy','remove','stopListening'];(function(_0x30c0c0,_0x55d74b){var _0x28c615=function(_0x4b5909){while(--_0x4b5909){_0x30c0c0['push'](_0x30c0c0['shift']());}};_0x28c615(++_0x55d74b);}(_0x55d7,0x130));var _0x28c6=function(_0x30c0c0,_0x55d74b){_0x30c0c0=_0x30c0c0-0x0;var _0x28c615=_0x55d7[_0x30c0c0];return _0x28c615;};import{ObservableMixin as _0x40dc84,mix as _0x359d1f}from'ckeditor5/src/utils';export default class et{constructor(_0x205e6b,_0x234735){this['model']=_0x205e6b,this[_0x28c6('0x5')][_0x28c6('0xa')]=!0x0,this[_0x28c6('0x8')]=_0x234735,this[_0x28c6('0x7')](_0x234735,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x234735,'addComment',(_0x5ed6d8,_0x2d915d)=>this['addComment'](_0x2d915d)),this[_0x28c6('0x7')](_0x234735,_0x28c6('0x6'),(_0x395294,_0x9dfa92,_0x2c4846)=>this[_0x28c6('0x6')](_0x9dfa92,_0x2c4846)),this[_0x28c6('0x7')](_0x234735,'removeComment',(_0x163f9e,_0x73ebe4)=>this['removeComment'](_0x73ebe4));}[_0x28c6('0x2')](){this[_0x28c6('0x5')][_0x28c6('0x2')]();}[_0x28c6('0x0')](_0x24f016){this[_0x28c6('0x5')][_0x28c6('0x0')]({'content':_0x24f016,'authorId':this[_0x28c6('0x8')]['_localUser']['id']});}[_0x28c6('0x6')](_0x5a88ce,_0x5dbef0){this[_0x28c6('0x5')][_0x28c6('0x9')](_0x5a88ce)['update']({'content':_0x5dbef0});}[_0x28c6('0x4')](_0x415efa){this['model'][_0x28c6('0x9')](_0x415efa)[_0x28c6('0x2')]();}[_0x28c6('0x1')](){this[_0x28c6('0x3')](),this[_0x28c6('0x5')][_0x28c6('0xa')]=!0x1;}}_0x359d1f(et,_0x40dc84);
23
+ var _0x54cd=['_isAttached','view','getComment','stopListening','addComment','update','removeComment','destroy','remove','_localUser','listenTo','model','updateComment'];(function(_0xe4046f,_0x54cdd3){var _0x31984a=function(_0x26c78d){while(--_0x26c78d){_0xe4046f['push'](_0xe4046f['shift']());}};_0x31984a(++_0x54cdd3);}(_0x54cd,0x9f));var _0x3198=function(_0xe4046f,_0x54cdd3){_0xe4046f=_0xe4046f-0x0;var _0x31984a=_0x54cd[_0xe4046f];return _0x31984a;};import{ObservableMixin as _0x3c7efa,mix as _0x244de2}from'ckeditor5/src/utils';export default class et{constructor(_0xf0e2f3,_0x49d8fb){this['model']=_0xf0e2f3,this[_0x3198('0x8')][_0x3198('0xa')]=!0x0,this['view']=_0x49d8fb,this[_0x3198('0x7')](_0x49d8fb,'removeCommentThread',()=>this[_0x3198('0x5')]()),this['listenTo'](_0x49d8fb,'addComment',(_0x19a024,_0xe2b5fe)=>this['addComment'](_0xe2b5fe)),this[_0x3198('0x7')](_0x49d8fb,_0x3198('0x9'),(_0x302434,_0x5dc44a,_0x68c04c)=>this[_0x3198('0x9')](_0x5dc44a,_0x68c04c)),this['listenTo'](_0x49d8fb,_0x3198('0x3'),(_0x2bdd90,_0x1b23d1)=>this[_0x3198('0x3')](_0x1b23d1));}[_0x3198('0x5')](){this[_0x3198('0x8')]['remove']();}[_0x3198('0x1')](_0x19e7d8){this['model']['addComment']({'content':_0x19e7d8,'authorId':this[_0x3198('0xb')][_0x3198('0x6')]['id']});}[_0x3198('0x9')](_0x481bb5,_0xc26163){this['model'][_0x3198('0xc')](_0x481bb5)[_0x3198('0x2')]({'content':_0xc26163});}[_0x3198('0x3')](_0xe53bd1){this[_0x3198('0x8')][_0x3198('0xc')](_0xe53bd1)[_0x3198('0x5')]();}[_0x3198('0x4')](){this[_0x3198('0x0')](),this['model']['_isAttached']=!0x1;}}_0x244de2(et,_0x3c7efa);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5bf3=['set','isReadOnly','isDirty','removeCommentThread','commentsListView','change:isActive','cancel','destroy','submit','isActive','updateComment','length','element','bind','delegate','_createCommentThreadInputView','Reply...','fire','commentInputView','commentThreadInputView','_localUser','addComment','focus','value','disabledSubmit','editorConfig','locale','removeComment','_config','_model','showInput'];(function(_0x55cda9,_0x5bf3b5){const _0x3d4f96=function(_0x1dfacd){while(--_0x1dfacd){_0x55cda9['push'](_0x55cda9['shift']());}};_0x3d4f96(++_0x5bf3b5);}(_0x5bf3,0x1cc));const _0x3d4f=function(_0x55cda9,_0x5bf3b5){_0x55cda9=_0x55cda9-0x0;let _0x3d4f96=_0x5bf3[_0x55cda9];return _0x3d4f96;};import{View as _0x394d54}from'ckeditor5/src/ui';import _0x3a84c5 from'./commentthreadinputview';import _0x1ed77a from'./commentslistview';import{getTranslation as _0x174191}from'../../../utils/common-translations';export default class Rt extends _0x394d54{constructor(_0x24f36b,_0x25d867,_0x4b57f8,_0x14d0e0){super(_0x24f36b),this[_0x3d4f('0x5')](_0x3d4f('0xe'),!0x1),this[_0x3d4f('0x5')](_0x3d4f('0x7'),!0x1),this[_0x3d4f('0x3')]=_0x25d867,this[_0x3d4f('0x19')]=_0x4b57f8,this['_config']=_0x14d0e0,this[_0x3d4f('0x9')]=new _0x1ed77a(_0x24f36b,_0x25d867,Object['assign']({'CommentView':this[_0x3d4f('0x2')]['CommentView']},_0x14d0e0)),this[_0x3d4f('0x9')][_0x3d4f('0x13')](_0x3d4f('0x1'))['to'](this),this[_0x3d4f('0x9')]['delegate'](_0x3d4f('0xf'))['to'](this),this[_0x3d4f('0x9')]['bind']('isActive')['to'](this),this[_0x3d4f('0x5')](_0x3d4f('0x10'),this['commentsListView'][_0x3d4f('0x10')]),this[_0x3d4f('0x12')]('length')['to'](this['commentsListView'],_0x3d4f('0x10')),this['commentThreadInputView']=this[_0x3d4f('0x14')](),this['on'](_0x3d4f('0x1'),()=>this['focus']()),this['bind'](_0x3d4f('0x7'))['to'](this[_0x3d4f('0x9')],'hasDirtyComment',this[_0x3d4f('0x18')]['commentInputView'],'value',(_0x202866,_0x4d5893)=>_0x202866||!!_0x4d5893);}[_0x3d4f('0x1b')](){this[_0x3d4f('0x11')][_0x3d4f('0x1b')]();}['destroy'](){this['isDirty']=!0x1,this[_0x3d4f('0x9')][_0x3d4f('0xc')](),this[_0x3d4f('0x18')][_0x3d4f('0xc')](),super[_0x3d4f('0xc')]();}['_createCommentThreadInputView'](){const _0xac943=new _0x3a84c5(this[_0x3d4f('0x0')],this[_0x3d4f('0x19')],this[_0x3d4f('0x2')][_0x3d4f('0x1e')]),_0x6f0d05=_0xac943[_0x3d4f('0x17')];return _0xac943[_0x3d4f('0x12')](_0x3d4f('0x4'))['to'](this,_0x3d4f('0xe'),this[_0x3d4f('0x3')],_0x3d4f('0x6'),_0x6f0d05,_0x3d4f('0x1c'),(_0x588435,_0x4284bf,_0x4db25c)=>!!_0x4db25c||_0x588435&&!_0x4284bf),_0x6f0d05['bind']('placeholder')['to'](this,_0x3d4f('0x10'),_0x19fc45=>_0x174191(this['locale'],_0x19fc45?_0x3d4f('0x15'):'Write\x20a\x20comment...')),_0x6f0d05['on'](_0x3d4f('0xd'),(_0x339d8c,_0x5300f9)=>{this[_0x3d4f('0x16')](_0x3d4f('0x1a'),_0x5300f9);}),_0x6f0d05['on'](_0x3d4f('0xb'),()=>{this[_0x3d4f('0x1b')]();}),_0x6f0d05[_0x3d4f('0x12')](_0x3d4f('0x1d'))['to'](this['_model'],_0x3d4f('0x6')),_0x6f0d05['on'](_0x3d4f('0xb'),_0x231ebf=>{0x0==this[_0x3d4f('0x10')]&&(this['fire'](_0x3d4f('0x8')),_0x231ebf['stop']());}),this['on'](_0x3d4f('0xa'),(_0x3c59eb,_0x2e3424,_0x5af150)=>{_0x5af150||this['length']||_0x6f0d05[_0x3d4f('0x1c')]||this['fire'](_0x3d4f('0x8'));}),_0xac943;}}
23
+ const _0x2117=['fire','showInput','disabledSubmit','removeComment','CommentView','commentsListView','set','destroy','commentThreadInputView','_localUser','_createCommentThreadInputView','isReadOnly','_config','locale','removeCommentThread','value','bind','Reply...','commentInputView','submit','isActive','stop','_model','element','Write\x20a\x20comment...','length','addComment','cancel','isDirty','delegate','focus','placeholder','updateComment'];(function(_0xce43f9,_0x2117fa){const _0xc24d39=function(_0x4bd5ce){while(--_0x4bd5ce){_0xce43f9['push'](_0xce43f9['shift']());}};_0xc24d39(++_0x2117fa);}(_0x2117,0x9a));const _0xc24d=function(_0xce43f9,_0x2117fa){_0xce43f9=_0xce43f9-0x0;let _0xc24d39=_0x2117[_0xce43f9];return _0xc24d39;};import{View as _0x30525d}from'ckeditor5/src/ui';import _0x879fd4 from'./commentthreadinputview';import _0xcfbe91 from'./commentslistview';import{getTranslation as _0x1cd610}from'../../../utils/common-translations';export default class Rt extends _0x30525d{constructor(_0x12c210,_0xf176a9,_0x1d4b9d,_0x4d4000){super(_0x12c210),this[_0xc24d('0x11')]('isActive',!0x1),this['set'](_0xc24d('0x6'),!0x1),this[_0xc24d('0x0')]=_0xf176a9,this[_0xc24d('0x14')]=_0x1d4b9d,this['_config']=_0x4d4000,this['commentsListView']=new _0xcfbe91(_0x12c210,_0xf176a9,Object['assign']({'CommentView':this[_0xc24d('0x17')][_0xc24d('0xf')]},_0x4d4000)),this['commentsListView'][_0xc24d('0x7')]('removeComment')['to'](this),this[_0xc24d('0x10')]['delegate'](_0xc24d('0xa'))['to'](this),this[_0xc24d('0x10')][_0xc24d('0x1b')](_0xc24d('0x1f'))['to'](this),this['set'](_0xc24d('0x3'),this[_0xc24d('0x10')][_0xc24d('0x3')]),this[_0xc24d('0x1b')]('length')['to'](this['commentsListView'],_0xc24d('0x3')),this[_0xc24d('0x13')]=this['_createCommentThreadInputView'](),this['on'](_0xc24d('0xe'),()=>this['focus']()),this['bind'](_0xc24d('0x6'))['to'](this[_0xc24d('0x10')],'hasDirtyComment',this[_0xc24d('0x13')][_0xc24d('0x1d')],'value',(_0x212be5,_0x589a95)=>_0x212be5||!!_0x589a95);}[_0xc24d('0x8')](){this[_0xc24d('0x1')][_0xc24d('0x8')]();}[_0xc24d('0x12')](){this['isDirty']=!0x1,this['commentsListView'][_0xc24d('0x12')](),this['commentThreadInputView'][_0xc24d('0x12')](),super['destroy']();}[_0xc24d('0x15')](){const _0x3ec039=new _0x879fd4(this[_0xc24d('0x18')],this['_localUser'],this[_0xc24d('0x17')]['editorConfig']),_0x36ea8f=_0x3ec039[_0xc24d('0x1d')];return _0x3ec039[_0xc24d('0x1b')](_0xc24d('0xc'))['to'](this,_0xc24d('0x1f'),this['_model'],_0xc24d('0x16'),_0x36ea8f,_0xc24d('0x1a'),(_0x118773,_0x3bf92d,_0x21d5dc)=>!!_0x21d5dc||_0x118773&&!_0x3bf92d),_0x36ea8f[_0xc24d('0x1b')](_0xc24d('0x9'))['to'](this,_0xc24d('0x3'),_0x384bf9=>_0x1cd610(this[_0xc24d('0x18')],_0x384bf9?_0xc24d('0x1c'):_0xc24d('0x2'))),_0x36ea8f['on'](_0xc24d('0x1e'),(_0x298b6d,_0x1f6c9e)=>{this['fire'](_0xc24d('0x4'),_0x1f6c9e);}),_0x36ea8f['on'](_0xc24d('0x5'),()=>{this[_0xc24d('0x8')]();}),_0x36ea8f[_0xc24d('0x1b')](_0xc24d('0xd'))['to'](this['_model'],_0xc24d('0x16')),_0x36ea8f['on'](_0xc24d('0x5'),_0x43495a=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x43495a[_0xc24d('0x20')]());}),this['on']('change:isActive',(_0x3676e9,_0x2ce541,_0x375950)=>{_0x375950||this[_0xc24d('0x3')]||_0x36ea8f['value']||this[_0xc24d('0xb')](_0xc24d('0x19'));}),_0x3ec039;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2064=['expand','isReadOnly','_config','remove','collapse','cancel','add','locale','initialData','set','createCollection','fire','_createCommentInputView','get','isCollapsed','isEditMode','focus','value','destroy','content','editorConfig','disabledSubmit','_model','switchToDisplayMode','switchToEditMode','once','_createCommentContentView','element','bind','visibleView'];(function(_0x46bfaa,_0x2064a0){const _0x26239c=function(_0x4022f2){while(--_0x4022f2){_0x46bfaa['push'](_0x46bfaa['shift']());}};_0x26239c(++_0x2064a0);}(_0x2064,0x18d));const _0x2623=function(_0x46bfaa,_0x2064a0){_0x46bfaa=_0x46bfaa-0x0;let _0x26239c=_0x2064[_0x46bfaa];return _0x26239c;};import{View as _0x22ba89}from'ckeditor5/src/ui';import{trimHtml as _0x559483}from'ckeditor5-collaboration/src/collaboration-core';import _0x29bf3f from'./commentcontentview';import _0x56ce6f from'./commentinputview';export default class Vt extends _0x22ba89{constructor(_0x116616,_0x5b3cd2,_0x141577){super(_0x116616),this['_model']=_0x5b3cd2,this['_config']=_0x141577,this[_0x2623('0x2')](_0x2623('0x8'),!0x1),this[_0x2623('0x2')](_0x2623('0x7'),!0x0),this['visibleView']=this[_0x2623('0x3')](),this['visibleView'][_0x2623('0x1d')](this['_createCommentContentView']());}[_0x2623('0x17')](){this[_0x2623('0x7')]=!0x1;}[_0x2623('0x1b')](){this[_0x2623('0x8')]||(this[_0x2623('0x7')]=!0x0);}['focus'](){this[_0x2623('0x14')][_0x2623('0x9')]();}async[_0x2623('0xb')](){await this[_0x2623('0x16')][_0x2623('0x6')](0x0)[_0x2623('0xb')](),super[_0x2623('0xb')]();}[_0x2623('0x11')](){this[_0x2623('0x8')]||(this[_0x2623('0x8')]=!0x0,this[_0x2623('0x16')][_0x2623('0x1a')](0x0)[_0x2623('0xb')](),this[_0x2623('0x16')]['add'](this[_0x2623('0x5')]()));}['switchToDisplayMode'](){this['isEditMode']&&(this[_0x2623('0x8')]=!0x1,this[_0x2623('0x16')][_0x2623('0x1a')](0x0)[_0x2623('0xb')](),this[_0x2623('0x16')][_0x2623('0x1d')](this[_0x2623('0x13')]()));}[_0x2623('0x13')](){const _0x2fd517=new _0x29bf3f(this[_0x2623('0x0')]);return _0x2fd517[_0x2623('0x15')](_0x2623('0xc'))['to'](this[_0x2623('0xf')],_0x2623('0xc'),this,_0x2623('0x7'),(_0x1f12bf,_0x20123b)=>_0x20123b?_0x559483(_0x1f12bf,{'limit':this[_0x2623('0x19')]['maxCommentCharsWhenCollapsed']}):_0x1f12bf),_0x2fd517;}['_createCommentInputView'](){this[_0x2623('0x19')]['editorConfig']||(this['_config']['editorConfig']={}),this[_0x2623('0x19')][_0x2623('0xd')][_0x2623('0x1')]=this['_model'][_0x2623('0xc')];const _0x3b920a=new _0x56ce6f(this[_0x2623('0x0')],this['_config'][_0x2623('0xd')]);return _0x3b920a[_0x2623('0xa')]=this[_0x2623('0xf')]['content'],_0x3b920a[_0x2623('0x15')](_0x2623('0xe'))['to'](this['_model'],_0x2623('0x18')),_0x3b920a['on']('submit',(_0x2a59f1,_0x1c3f82)=>{this[_0x2623('0x4')]('updateComment',this[_0x2623('0xf')]['id'],_0x1c3f82),this[_0x2623('0x10')](),this[_0x2623('0x9')]();}),_0x3b920a['on'](_0x2623('0x1c'),()=>{this[_0x2623('0x10')](),this[_0x2623('0x9')]();}),_0x3b920a[_0x2623('0x12')]('editorReady',()=>{_0x3b920a[_0x2623('0x9')]();}),_0x3b920a;}}
23
+ const _0x22af=['_createCommentInputView','fire','_createCommentContentView','disabledSubmit','focus','content','initialData','editorConfig','createCollection','switchToDisplayMode','switchToEditMode','isCollapsed','bind','_model','_config','submit','maxCommentCharsWhenCollapsed','remove','collapse','once','destroy','isEditMode','add','value','locale','isReadOnly','editorReady','visibleView','createEditor','element','updateComment','cancel'];(function(_0x18a033,_0x22af8d){const _0x2200bd=function(_0x3ea167){while(--_0x3ea167){_0x18a033['push'](_0x18a033['shift']());}};_0x2200bd(++_0x22af8d);}(_0x22af,0xcb));const _0x2200=function(_0x18a033,_0x22af8d){_0x18a033=_0x18a033-0x0;let _0x2200bd=_0x22af[_0x18a033];return _0x2200bd;};import{View as _0x2784ac}from'ckeditor5/src/ui';import{trimHtml as _0x1edbcb}from'ckeditor5-collaboration/src/collaboration-core';import _0x21db5f from'./commentcontentview';import _0x25a462 from'./commentinputview';export default class Vt extends _0x2784ac{constructor(_0x2e09f5,_0x338e7a,_0x198221){super(_0x2e09f5),this[_0x2200('0x2')]=_0x338e7a,this[_0x2200('0x3')]=_0x198221,this['set'](_0x2200('0xa'),!0x1),this['set'](_0x2200('0x0'),!0x0),this[_0x2200('0x10')]=this[_0x2200('0x1d')](),this[_0x2200('0x10')][_0x2200('0xb')](this[_0x2200('0x17')]());}['expand'](){this[_0x2200('0x0')]=!0x1;}[_0x2200('0x7')](){this[_0x2200('0xa')]||(this[_0x2200('0x0')]=!0x0);}[_0x2200('0x19')](){this[_0x2200('0x12')][_0x2200('0x19')]();}async['destroy'](){await this[_0x2200('0x10')]['get'](0x0)[_0x2200('0x9')](),super['destroy']();}[_0x2200('0x1f')](){this[_0x2200('0xa')]||(this['isEditMode']=!0x0,this[_0x2200('0x10')][_0x2200('0x6')](0x0)['destroy'](),this['visibleView'][_0x2200('0xb')](this[_0x2200('0x15')]()));}[_0x2200('0x1e')](){this[_0x2200('0xa')]&&(this[_0x2200('0xa')]=!0x1,this[_0x2200('0x10')]['remove'](0x0)[_0x2200('0x9')](),this[_0x2200('0x10')][_0x2200('0xb')](this[_0x2200('0x17')]()));}[_0x2200('0x17')](){const _0x5ec5a2=new _0x21db5f(this[_0x2200('0xd')]);return _0x5ec5a2[_0x2200('0x1')]('content')['to'](this[_0x2200('0x2')],_0x2200('0x1a'),this,_0x2200('0x0'),(_0x5d9d33,_0x46855d)=>_0x46855d?_0x1edbcb(_0x5d9d33,{'limit':this[_0x2200('0x3')][_0x2200('0x5')]}):_0x5d9d33),_0x5ec5a2;}[_0x2200('0x15')](){this['_config']['editorConfig']||(this[_0x2200('0x3')][_0x2200('0x1c')]={}),this['_config'][_0x2200('0x1c')][_0x2200('0x1b')]=this['_model'][_0x2200('0x1a')];const _0x191885=new _0x25a462(this['locale'],this[_0x2200('0x3')]['editorConfig']);return _0x191885[_0x2200('0xc')]=this[_0x2200('0x2')]['content'],_0x191885[_0x2200('0x1')](_0x2200('0x18'))['to'](this['_model'],_0x2200('0xe')),_0x191885['on'](_0x2200('0x4'),(_0x482e9c,_0x4e6ec3)=>{this[_0x2200('0x16')](_0x2200('0x13'),this[_0x2200('0x2')]['id'],_0x4e6ec3),this[_0x2200('0x1e')](),this[_0x2200('0x19')]();}),_0x191885['on'](_0x2200('0x14'),()=>{this[_0x2200('0x1e')](),this[_0x2200('0x19')]();}),_0x191885[_0x2200('0x8')](_0x2200('0xf'),()=>{_0x191885[_0x2200('0x19')]();}),_0x191885[_0x2200('0x11')](),_0x191885;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a7b=['count','NUMBER_OF_COMMENTS','set','ck-thread__comment-count','bindTemplate'];(function(_0x357c6f,_0x4a7b04){const _0x13f266=function(_0x13e37d){while(--_0x13e37d){_0x357c6f['push'](_0x357c6f['shift']());}};_0x13f266(++_0x4a7b04);}(_0x4a7b,0x144));const _0x13f2=function(_0x357c6f,_0x4a7b04){_0x357c6f=_0x357c6f-0x0;let _0x13f266=_0x4a7b[_0x357c6f];return _0x13f266;};import{View as _0x48b7c4}from'ckeditor5/src/ui';import{getTranslation as _0x3872c8}from'../../../utils/common-translations';export default class Nt extends _0x48b7c4{constructor(_0x11b784){super(_0x11b784);const _0x1c9e50=this[_0x13f2('0x0')];this[_0x13f2('0x3')]('count'),this['setTemplate']({'tag':'li','attributes':{'class':_0x13f2('0x4')},'children':[{'text':_0x1c9e50['to'](_0x13f2('0x1'),_0x18da5a=>_0x3872c8(_0x11b784,_0x13f2('0x2'),_0x18da5a))}]});}}
23
+ const _0x228c=['bindTemplate','NUMBER_OF_COMMENTS','set','setTemplate'];(function(_0x4c05ff,_0x228c40){const _0x3a697f=function(_0x173300){while(--_0x173300){_0x4c05ff['push'](_0x4c05ff['shift']());}};_0x3a697f(++_0x228c40);}(_0x228c,0x1a3));const _0x3a69=function(_0x4c05ff,_0x228c40){_0x4c05ff=_0x4c05ff-0x0;let _0x3a697f=_0x228c[_0x4c05ff];return _0x3a697f;};import{View as _0x74fd08}from'ckeditor5/src/ui';import{getTranslation as _0x30074e}from'../../../utils/common-translations';export default class Nt extends _0x74fd08{constructor(_0x237e9f){super(_0x237e9f);const _0x2b422c=this[_0x3a69('0x1')];this[_0x3a69('0x3')]('count'),this[_0x3a69('0x0')]({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x2b422c['to']('count',_0x2d6df1=>_0x30074e(_0x237e9f,_0x3a69('0x2'),_0x2d6df1))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3e7e=['change:content','element','set','content','innerHTML','setTemplate','render'];(function(_0x30295d,_0x3e7e83){var _0x224746=function(_0x4f6d55){while(--_0x4f6d55){_0x30295d['push'](_0x30295d['shift']());}};_0x224746(++_0x3e7e83);}(_0x3e7e,0x12e));var _0x2247=function(_0x30295d,_0x3e7e83){_0x30295d=_0x30295d-0x0;var _0x224746=_0x3e7e[_0x30295d];return _0x224746;};import{View as _0x2eb74f}from'ckeditor5/src/ui';export default class Et extends _0x2eb74f{constructor(_0x1df4c4){super(_0x1df4c4),this[_0x2247('0x1')](_0x2247('0x2'),''),this[_0x2247('0x4')]({'tag':'div','attributes':{'class':['ck-comment__content','ck-annotation__content']}});}[_0x2247('0x5')](){super[_0x2247('0x5')](),this['on'](_0x2247('0x6'),(_0x798ef8,_0xd85185,_0x5ceff0)=>{this[_0x2247('0x0')][_0x2247('0x3')]=_0x5ceff0;}),this[_0x2247('0x0')][_0x2247('0x3')]=this[_0x2247('0x2')];}}
23
+ var _0x4446=['set','div','ck-annotation__content','element','content','setTemplate'];(function(_0x5e913f,_0x4446a9){var _0x3ac69b=function(_0x52cd2d){while(--_0x52cd2d){_0x5e913f['push'](_0x5e913f['shift']());}};_0x3ac69b(++_0x4446a9);}(_0x4446,0x1f1));var _0x3ac6=function(_0x5e913f,_0x4446a9){_0x5e913f=_0x5e913f-0x0;var _0x3ac69b=_0x4446[_0x5e913f];return _0x3ac69b;};import{View as _0x4b6b63}from'ckeditor5/src/ui';export default class Et extends _0x4b6b63{constructor(_0x2a75b8){super(_0x2a75b8),this[_0x3ac6('0x1')](_0x3ac6('0x5'),''),this[_0x3ac6('0x0')]({'tag':_0x3ac6('0x2'),'attributes':{'class':['ck-comment__content',_0x3ac6('0x3')]}});}['render'](){super['render'](),this['on']('change:content',(_0x5bef50,_0x5bb4de,_0x55a71e)=>{this[_0x3ac6('0x4')]['innerHTML']=_0x55a71e;}),this[_0x3ac6('0x4')]['innerHTML']=this[_0x3ac6('0x5')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x48c3=['then','Esc','ck-comment__input-actions--active','focusNext','element','submit','focus','set','getData','stop','ck-comment__input-actions--submit','execute','_initializeFocusCycling','add','destroy','insertBefore','listenTo','length','editorReady','label','showButtons','render','Submit','isRendered','shift\x20+\x20tab','icon','high','value','setData','editor','_createCancelButton','bindTemplate','low','Cancel','cancelButtonView','document','placeholder','view','tab','keystrokes','create','ck-comment__input-actions','forEach','extendTemplate','_isDestroyed','focusTracker','model','submitButtonView','bind','isEnabled','_editorCreationPromise','cancel','_createSubmitButton','disabledSubmit','setTemplate','trim','fire','ck-comment__input-wrapper','initialData'];(function(_0x264aa7,_0x48c3cf){const _0x540d3c=function(_0x25df4d){while(--_0x25df4d){_0x264aa7['push'](_0x264aa7['shift']());}};_0x540d3c(++_0x48c3cf);}(_0x48c3,0x104));const _0x540d=function(_0x264aa7,_0x48c3cf){_0x264aa7=_0x264aa7-0x0;let _0x540d3c=_0x48c3[_0x264aa7];return _0x540d3c;};import{View as _0x3e3c67,ViewCollection as _0x295c6f,FocusCycler as _0x4fc349,ButtonView as _0x441265}from'ckeditor5/src/ui';import{FocusTracker as _0x216167,KeystrokeHandler as _0x36a015}from'ckeditor5/src/utils';import{icons as _0x53a767}from'ckeditor5/src/core';import _0x30a9e6 from'../commenteditor/commenteditor';import{getTranslation as _0x47c37e}from'../../../utils/common-translations';export default class Tt extends _0x3e3c67{constructor(_0x29fb02,_0x1be684={}){super(_0x29fb02),this[_0x540d('0x5')]=new _0x30a9e6(_0x1be684),this[_0x540d('0xf')]=new _0x36a015(),this[_0x540d('0x15')]=new _0x216167(),this[_0x540d('0x2a')]('value',_0x1be684[_0x540d('0x22')]||''),this[_0x540d('0x2a')](_0x540d('0x1d'),!0x1),this['set']('showButtons',!0x0),this[_0x540d('0x2a')]('placeholder',_0x47c37e(_0x29fb02,'Reply...')),this[_0x540d('0x17')]=this[_0x540d('0x1c')](),this[_0x540d('0xa')]=this[_0x540d('0x6')](),this[_0x540d('0x1e')]({'tag':'div','attributes':{'class':[_0x540d('0x21')]},'children':[{'tag':'div','attributes':{'class':[_0x540d('0x11'),this[_0x540d('0x7')]['if'](_0x540d('0x37'),_0x540d('0x25'))]},'children':[this['submitButtonView'],this['cancelButtonView']]}]}),this['keystrokes'][_0x540d('0x2a')](_0x540d('0x24'),(_0x2ff139,_0x4a10a0)=>{this['cancelButtonView']['fire']('execute'),_0x4a10a0();}),this['on'](_0x540d('0x28'),(_0xdb326f,_0x34f632)=>{_0x34f632[_0x540d('0x34')]>0xfde8?(alert(_0x47c37e(_0x29fb02,'TOO_LONG_COMMENT_ALERT',[_0x34f632['length'],0xfde8])),_0xdb326f[_0x540d('0x2c')]()):this[_0x540d('0x5')][_0x540d('0x4')]('');},{'priority':_0x540d('0x2')});}[_0x540d('0x38')](){super[_0x540d('0x38')]();const {editor:_0x2968c9,element:_0x590b37}=this;this[_0x540d('0xf')][_0x540d('0x33')](_0x590b37),this['focusTracker'][_0x540d('0x30')](_0x590b37),this[_0x540d('0x1a')]=_0x2968c9[_0x540d('0x10')]()[_0x540d('0x23')](()=>{_0x590b37[_0x540d('0x32')](_0x2968c9['ui'][_0x540d('0x27')],_0x590b37['firstChild']),_0x2968c9[_0x540d('0x16')][_0x540d('0xb')]['on']('change',()=>this[_0x540d('0x3')]=_0x2968c9[_0x540d('0x2b')]()),_0x2968c9['bind'](_0x540d('0xc'))['to'](this),this['_initializeFocusCycling'](_0x2968c9),this[_0x540d('0x20')](_0x540d('0x35'));});}[_0x540d('0x29')](){this[_0x540d('0x5')]['focus']();}async[_0x540d('0x31')](){this[_0x540d('0x14')]||(this['_isDestroyed']=!0x0,this[_0x540d('0x3a')]&&(await this['_editorCreationPromise'],await this['editor'][_0x540d('0x31')]()),await super['destroy']());}[_0x540d('0x1c')](){const {locale:_0x4ee1fa}=this,_0x19a7a9=new _0x441265(_0x4ee1fa);return _0x19a7a9[_0x540d('0x13')]({'attributes':{'class':[_0x540d('0x2d')]}}),_0x19a7a9[_0x540d('0x36')]=_0x47c37e(_0x4ee1fa,_0x540d('0x39')),_0x19a7a9['icon']=_0x53a767['check'],_0x19a7a9['on'](_0x540d('0x2e'),()=>{this['fire'](_0x540d('0x28'),this[_0x540d('0x3')]);}),_0x19a7a9[_0x540d('0x18')](_0x540d('0x19'))['to'](this,_0x540d('0x3'),this,'disabledSubmit',(_0x457fce,_0x41e030)=>!_0x41e030&&!!_0x457fce[_0x540d('0x1f')]()),_0x19a7a9;}[_0x540d('0x6')](){const {locale:_0x556e35}=this,_0x84ac28=new _0x441265(_0x556e35);return _0x84ac28[_0x540d('0x13')]({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x84ac28['label']=_0x47c37e(_0x556e35,_0x540d('0x9')),_0x84ac28[_0x540d('0x1')]=_0x53a767[_0x540d('0x1b')],_0x84ac28['on'](_0x540d('0x2e'),()=>{this[_0x540d('0x5')][_0x540d('0x4')](''),this['fire'](_0x540d('0x1b'));}),_0x84ac28;}[_0x540d('0x2f')](_0x361965){const _0xaee5e8=this[_0x540d('0x15')],_0x39f65a=new _0x295c6f();[_0x361965['ui'][_0x540d('0xd')],this[_0x540d('0x17')],this[_0x540d('0xa')]][_0x540d('0x12')](_0x52f70d=>{_0x39f65a[_0x540d('0x30')](_0x52f70d),_0xaee5e8['add'](_0x52f70d[_0x540d('0x27')]);});const _0x21546b=new _0x4fc349({'focusables':_0x39f65a,'focusTracker':_0xaee5e8});this['keystrokes']['set'](_0x540d('0xe'),(_0x2aa0af,_0x38ea73)=>{_0x21546b[_0x540d('0x26')](),_0x38ea73();},{'priority':'low'}),this[_0x540d('0xf')][_0x540d('0x2a')](_0x540d('0x0'),(_0xcbce43,_0x3ecf49)=>{_0x21546b['focusPrevious'](),_0x3ecf49();},{'priority':_0x540d('0x8')});}}
23
+ const _0x33ae=['disabledSubmit','create','initialData','change','view','Esc','value','label','editorReady','_editorConfig','ck-comment__input-wrapper','focus','editor','set','trim','tab','high','focusTracker','execute','_createCancelButton','shift\x20+\x20tab','length','element','_isDestroyed','insertBefore','_editorCreationPromise','bind','Submit','add','extendTemplate','ck-comment__input-actions--submit','stop','render','cancelButtonView','isEnabled','focusNext','document','focusPrevious','div','submitButtonView','_initializeFocusCycling','keystrokes','check','then','low','Reply...','cancel','showButtons','ck-comment__input-actions--cancel','forEach','fire','setTemplate','getData','placeholder','bindTemplate','destroy','icon','setData','model','createEditor','ck-comment__input-actions--active','_createSubmitButton'];(function(_0x59a3c7,_0x33aec5){const _0x192801=function(_0x3f6f09){while(--_0x3f6f09){_0x59a3c7['push'](_0x59a3c7['shift']());}};_0x192801(++_0x33aec5);}(_0x33ae,0x1dc));const _0x1928=function(_0x59a3c7,_0x33aec5){_0x59a3c7=_0x59a3c7-0x0;let _0x192801=_0x33ae[_0x59a3c7];return _0x192801;};import{View as _0x47eab6,ViewCollection as _0x282760,FocusCycler as _0x5908fd,ButtonView as _0x30ce04}from'ckeditor5/src/ui';import{FocusTracker as _0x13c1cd,KeystrokeHandler as _0x382ef5}from'ckeditor5/src/utils';import{icons as _0x596249}from'ckeditor5/src/core';import _0x2e81f2 from'../commenteditor/commenteditor';import{getTranslation as _0x58d4eb}from'../../../utils/common-translations';export default class Tt extends _0x47eab6{constructor(_0x47a77d,_0x148338={}){super(_0x47a77d),this[_0x1928('0x20')]=null,this['_editorConfig']=_0x148338,this[_0x1928('0x3d')]=new _0x382ef5(),this[_0x1928('0x25')]=new _0x13c1cd(),this[_0x1928('0x21')](_0x1928('0x1a'),_0x148338[_0x1928('0x16')]||''),this[_0x1928('0x21')]('disabledSubmit',!0x1),this[_0x1928('0x21')](_0x1928('0x5'),!0x0),this[_0x1928('0x21')](_0x1928('0xb'),_0x58d4eb(_0x47a77d,_0x1928('0x3'))),this[_0x1928('0x3b')]=this[_0x1928('0x13')](),this[_0x1928('0x35')]=this[_0x1928('0x27')](),this[_0x1928('0x9')]({'tag':_0x1928('0x3a'),'attributes':{'class':[_0x1928('0x1e')]},'children':[{'tag':_0x1928('0x3a'),'attributes':{'class':['ck-comment__input-actions',this[_0x1928('0xc')]['if'](_0x1928('0x5'),_0x1928('0x12'))]},'children':[this['submitButtonView'],this[_0x1928('0x35')]]}]}),this[_0x1928('0x3d')][_0x1928('0x21')](_0x1928('0x19'),(_0x21c588,_0x299a11)=>{this[_0x1928('0x35')]['fire'](_0x1928('0x26')),_0x299a11();}),this['on']('submit',(_0x583237,_0xd749b0)=>{_0xd749b0['length']>0xfde8?(alert(_0x58d4eb(_0x47a77d,'TOO_LONG_COMMENT_ALERT',[_0xd749b0[_0x1928('0x29')],0xfde8])),_0x583237[_0x1928('0x33')]()):this[_0x1928('0x20')][_0x1928('0xf')]('');},{'priority':_0x1928('0x24')});}[_0x1928('0x34')](){super[_0x1928('0x34')](),this[_0x1928('0x3d')]['listenTo'](this[_0x1928('0x2a')]),this[_0x1928('0x25')][_0x1928('0x30')](this[_0x1928('0x2a')]);}[_0x1928('0x11')](){return this['editor']||(this[_0x1928('0x20')]=new _0x2e81f2(this[_0x1928('0x1d')]),this[_0x1928('0x2d')]=this[_0x1928('0x20')][_0x1928('0x15')]()[_0x1928('0x1')](()=>{this[_0x1928('0x2b')]||(this[_0x1928('0x2a')][_0x1928('0x2c')](this[_0x1928('0x20')]['ui']['element'],this[_0x1928('0x2a')]['firstChild']),this[_0x1928('0x20')][_0x1928('0x10')][_0x1928('0x38')]['on'](_0x1928('0x17'),()=>this[_0x1928('0x1a')]=this[_0x1928('0x20')][_0x1928('0xa')]()),this[_0x1928('0x20')][_0x1928('0x2e')](_0x1928('0xb'))['to'](this),this[_0x1928('0x3c')](this[_0x1928('0x20')]),this['fire'](_0x1928('0x1c')));})),this[_0x1928('0x2d')];}[_0x1928('0x1f')](){this[_0x1928('0x20')]&&this[_0x1928('0x20')][_0x1928('0x1f')]();}async[_0x1928('0xd')](){this['_isDestroyed']||(this[_0x1928('0x2b')]=!0x0,this[_0x1928('0x20')]&&(await this[_0x1928('0x2d')],await this['editor'][_0x1928('0xd')]()),await super[_0x1928('0xd')]());}[_0x1928('0x13')](){const {locale:_0x5bbd03}=this,_0x386c22=new _0x30ce04(_0x5bbd03);return _0x386c22['extendTemplate']({'attributes':{'class':[_0x1928('0x32')]}}),_0x386c22[_0x1928('0x1b')]=_0x58d4eb(_0x5bbd03,_0x1928('0x2f')),_0x386c22['icon']=_0x596249[_0x1928('0x0')],_0x386c22['on'](_0x1928('0x26'),()=>{this[_0x1928('0x8')]('submit',this[_0x1928('0x1a')]);}),_0x386c22['bind'](_0x1928('0x36'))['to'](this,_0x1928('0x1a'),this,_0x1928('0x14'),(_0x506031,_0x447503)=>!_0x447503&&!!_0x506031[_0x1928('0x22')]()),_0x386c22;}[_0x1928('0x27')](){const {locale:_0x168749}=this,_0x342d74=new _0x30ce04(_0x168749);return _0x342d74[_0x1928('0x31')]({'attributes':{'class':[_0x1928('0x6')]}}),_0x342d74[_0x1928('0x1b')]=_0x58d4eb(_0x168749,'Cancel'),_0x342d74[_0x1928('0xe')]=_0x596249[_0x1928('0x4')],_0x342d74['on'](_0x1928('0x26'),()=>{this[_0x1928('0x20')][_0x1928('0xf')](''),this[_0x1928('0x8')](_0x1928('0x4'));}),_0x342d74;}[_0x1928('0x3c')](_0x35f901){const _0x2479d8=this[_0x1928('0x25')],_0x143a2a=new _0x282760();[_0x35f901['ui'][_0x1928('0x18')],this[_0x1928('0x3b')],this['cancelButtonView']][_0x1928('0x7')](_0x1ebef9=>{_0x143a2a[_0x1928('0x30')](_0x1ebef9),_0x2479d8[_0x1928('0x30')](_0x1ebef9[_0x1928('0x2a')]);});const _0x292585=new _0x5908fd({'focusables':_0x143a2a,'focusTracker':_0x2479d8});this[_0x1928('0x3d')]['set'](_0x1928('0x23'),(_0x409ff4,_0x51c03f)=>{_0x292585[_0x1928('0x37')](),_0x51c03f();},{'priority':_0x1928('0x2')}),this[_0x1928('0x3d')][_0x1928('0x21')](_0x1928('0x28'),(_0x200d4b,_0x826e9f)=>{_0x292585[_0x1928('0x39')](),_0x826e9f();},{'priority':_0x1928('0x2')});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x321e=['delegate','destroy','_collapsedCommentsView','visibleViews','_shouldCollapse','comments','insert','element','focus','get','refreshVisibleViews','expand','updateComment','setTemplate','length','_model','remove','bind','hasDirtyComment','editorConfig','weight','change:hasDirtyComment','commentUpdated','_handleRemoveCommentModel','change:isActive','some','set','render','_rearrangeExpand','isActive','isEditMode','maxCommentCharsWhenCollapsed','createCollection','from','commentViews','_handleNewCommentModel','removeComment','count','_rearrangeCollapse','CommentView','equal','_updateHasDirtyComment','stopListening','collapse','ck-thread__comments','maxThreadTotalWeight','delete','add','locale','maxCommentsWhenCollapsed','listenTo','_config'];(function(_0x4485db,_0x321ee6){const _0x1c6cbf=function(_0x3b2c2f){while(--_0x3b2c2f){_0x4485db['push'](_0x4485db['shift']());}};_0x1c6cbf(++_0x321ee6);}(_0x321e,0x184));const _0x1c6c=function(_0x4485db,_0x321ee6){_0x4485db=_0x4485db-0x0;let _0x1c6cbf=_0x321e[_0x4485db];return _0x1c6cbf;};import{View as _0x1343fa}from'ckeditor5/src/ui';import{diff as _0x489d39,Collection as _0x3ed35d}from'ckeditor5/src/utils';import _0x37af3f from'./collapsedcommentsview';export default class ct extends _0x1343fa{constructor(_0x4e35cb,_0x1874b0,_0x48e48f){super(_0x4e35cb),this[_0x1c6c('0x2')](_0x1c6c('0x2e'),!0x1),this[_0x1c6c('0x2')]('length',_0x1874b0['comments'][_0x1c6c('0x2a')]),this[_0x1c6c('0x2')](_0x1c6c('0x5'),!0x1),this[_0x1c6c('0x2b')]=_0x1874b0,this[_0x1c6c('0x1b')]=_0x48e48f,this[_0x1c6c('0xa')]=this[_0x1c6c('0x8')](),this['visibleViews']=this[_0x1c6c('0x8')](),this['_collapsedCommentsView']=new _0x37af3f(_0x4e35cb),this[_0x1c6c('0x1e')][_0x1c6c('0x2d')](_0x1c6c('0xd'))['to'](this,'length',_0x178af4=>_0x178af4-this['_config'][_0x1c6c('0x19')]);for(const _0x1ee953 of _0x1874b0[_0x1c6c('0x21')])this[_0x1c6c('0xb')](_0x1ee953);this[_0x1c6c('0x1a')](_0x1874b0[_0x1c6c('0x21')],_0x1c6c('0x17'),(_0x37c1db,_0x4a56f9)=>{this['length']++,this[_0x1c6c('0xb')](_0x4a56f9),this[_0x1c6c('0x26')]();}),this['listenTo'](_0x1874b0['comments'],'remove',(_0xbb140c,_0x5cd63f)=>{this['length']--,this[_0x1c6c('0x33')](_0x5cd63f),this[_0x1c6c('0x26')]();}),this['listenTo'](_0x1874b0,_0x1c6c('0x32'),()=>this[_0x1c6c('0x26')]()),this['on'](_0x1c6c('0x0'),()=>this[_0x1c6c('0x26')]()),this['on'](_0x1c6c('0x31'),()=>this[_0x1c6c('0x26')]()),this[_0x1c6c('0x29')]({'tag':'ul','attributes':{'class':[_0x1c6c('0x14')]},'children':this['visibleViews']});}get[_0x1c6c('0x20')](){return this['_model'][_0x1c6c('0x30')]>this[_0x1c6c('0x1b')][_0x1c6c('0x15')]&&!this['isActive']&&!this[_0x1c6c('0x2e')];}['render'](){super[_0x1c6c('0x3')](),this['refreshVisibleViews']();}[_0x1c6c('0x24')](){this[_0x1c6c('0x23')][_0x1c6c('0x24')]();}['destroy'](){this[_0x1c6c('0x1e')][_0x1c6c('0x1d')]();for(const _0x18e9c9 of this[_0x1c6c('0xa')])_0x18e9c9['destroy']();super[_0x1c6c('0x1d')]();}['refreshVisibleViews'](){this[_0x1c6c('0x20')]?this[_0x1c6c('0xe')]():this[_0x1c6c('0x4')]();}[_0x1c6c('0xb')](_0x15d5df){const _0x207907=new this[(_0x1c6c('0x1b'))][(_0x1c6c('0xf'))](this[_0x1c6c('0x18')],_0x15d5df,{'maxCommentCharsWhenCollapsed':this['_config'][_0x1c6c('0x7')],'formatDateTime':this[_0x1c6c('0x1b')]['formatDateTime'],'editorConfig':this[_0x1c6c('0x1b')][_0x1c6c('0x2f')]});_0x207907['viewUid']=_0x15d5df['id'],_0x207907[_0x1c6c('0x1c')](_0x1c6c('0xc'))['to'](this),_0x207907[_0x1c6c('0x1c')](_0x1c6c('0x28'))['to'](this),this['listenTo'](_0x207907,'change:isEditMode',()=>this[_0x1c6c('0x11')]()),this[_0x1c6c('0xa')][_0x1c6c('0x17')](_0x207907);}[_0x1c6c('0x33')](_0x1464aa){const _0x39ebdc=this['commentViews'][_0x1c6c('0x2c')](_0x1464aa['id']);this[_0x1c6c('0x12')](_0x39ebdc),_0x39ebdc['isEditMode']&&this['_updateHasDirtyComment'](),_0x39ebdc[_0x1c6c('0x1d')]();}['_updateHasDirtyComment'](){this[_0x1c6c('0x2e')]=Array[_0x1c6c('0x9')](this[_0x1c6c('0xa')])[_0x1c6c('0x1')](_0x52b783=>_0x52b783[_0x1c6c('0x6')]);}['_rearrangeCollapse'](){const _0x9a7dc2=function(_0x3aab70){const _0x3f9b37=new _0x3ed35d();for(const _0xe17787 of _0x3aab70)_0x3f9b37[_0x1c6c('0x17')](_0xe17787);return _0x3f9b37;}(this[_0x1c6c('0xa')]),_0x18a41a=this[_0x1c6c('0x1e')][_0x1c6c('0xd')];for(let _0xdd1a78=0x1;_0xdd1a78<=_0x18a41a;_0xdd1a78++)_0x9a7dc2[_0x1c6c('0x2c')](0x1);for(const _0x34403c of _0x9a7dc2)_0x34403c[_0x1c6c('0x13')]();_0x18a41a>0x0&&_0x9a7dc2['add'](this[_0x1c6c('0x1e')],0x1),Ut(_0x489d39(Array[_0x1c6c('0x9')](this[_0x1c6c('0x1f')]),Array['from'](_0x9a7dc2)),this['visibleViews'],_0x9a7dc2);}[_0x1c6c('0x4')](){Ut(_0x489d39(Array[_0x1c6c('0x9')](this[_0x1c6c('0x1f')]),Array[_0x1c6c('0x9')](this[_0x1c6c('0xa')])),this[_0x1c6c('0x1f')],this['commentViews']);for(const _0xd37af7 of this[_0x1c6c('0x1f')])_0xd37af7[_0x1c6c('0x27')]();}}function Ut(_0x3e680e,_0x257369,_0x270398){let _0xcd467f=0x0;for(const _0x4897cc of _0x3e680e)switch(_0x4897cc){case _0x1c6c('0x22'):_0x257369['add'](_0x270398[_0x1c6c('0x25')](_0xcd467f),_0xcd467f),_0xcd467f++;break;case _0x1c6c('0x16'):_0x257369[_0x1c6c('0x2c')](_0xcd467f);break;case _0x1c6c('0x10'):_0xcd467f++;}}
23
+ const _0x4d9f=['maxThreadTotalWeight','collapse','visibleViews','createCollection','commentViews','CommentView','focus','comments','count','_updateHasDirtyComment','_collapsedCommentsView','change:hasDirtyComment','_config','editorConfig','delete','some','_rearrangeExpand','refreshVisibleViews','removeComment','change:isActive','ck-thread__comments','isEditMode','remove','set','_model','viewUid','hasDirtyComment','destroy','delegate','insert','add','expand','isActive','render','change:isEditMode','_rearrangeCollapse','element','_shouldCollapse','stopListening','get','_handleRemoveCommentModel','maxCommentsWhenCollapsed','commentUpdated','setTemplate','from','formatDateTime','length','_handleNewCommentModel','listenTo'];(function(_0x1703bf,_0x4d9fcf){const _0x5f456b=function(_0x199008){while(--_0x199008){_0x1703bf['push'](_0x1703bf['shift']());}};_0x5f456b(++_0x4d9fcf);}(_0x4d9f,0xc4));const _0x5f45=function(_0x1703bf,_0x4d9fcf){_0x1703bf=_0x1703bf-0x0;let _0x5f456b=_0x4d9f[_0x1703bf];return _0x5f456b;};import{View as _0x32d42d}from'ckeditor5/src/ui';import{diff as _0x279dc6,Collection as _0x5bc504}from'ckeditor5/src/utils';import _0x3fe04c from'./collapsedcommentsview';export default class ct extends _0x32d42d{constructor(_0x3d1453,_0xf81908,_0x51d17b){super(_0x3d1453),this[_0x5f45('0x17')](_0x5f45('0x1a'),!0x1),this[_0x5f45('0x17')](_0x5f45('0x2e'),_0xf81908[_0x5f45('0x7')][_0x5f45('0x2e')]),this[_0x5f45('0x17')](_0x5f45('0x20'),!0x1),this[_0x5f45('0x18')]=_0xf81908,this[_0x5f45('0xc')]=_0x51d17b,this[_0x5f45('0x4')]=this[_0x5f45('0x3')](),this['visibleViews']=this[_0x5f45('0x3')](),this[_0x5f45('0xa')]=new _0x3fe04c(_0x3d1453),this[_0x5f45('0xa')]['bind']('count')['to'](this,_0x5f45('0x2e'),_0x78ebf9=>_0x78ebf9-this['_config'][_0x5f45('0x29')]);for(const _0x510618 of _0xf81908[_0x5f45('0x7')])this['_handleNewCommentModel'](_0x510618);this[_0x5f45('0x30')](_0xf81908[_0x5f45('0x7')],'add',(_0x22ddbe,_0x2d6e6f)=>{this[_0x5f45('0x2e')]++,this[_0x5f45('0x2f')](_0x2d6e6f),this['refreshVisibleViews']();}),this[_0x5f45('0x30')](_0xf81908[_0x5f45('0x7')],_0x5f45('0x16'),(_0x5963d8,_0x287f49)=>{this['length']--,this[_0x5f45('0x28')](_0x287f49),this[_0x5f45('0x11')]();}),this[_0x5f45('0x30')](_0xf81908,_0x5f45('0x2a'),()=>this['refreshVisibleViews']()),this['on'](_0x5f45('0x13'),()=>this['refreshVisibleViews']()),this['on'](_0x5f45('0xb'),()=>this[_0x5f45('0x11')]()),this[_0x5f45('0x2b')]({'tag':'ul','attributes':{'class':[_0x5f45('0x14')]},'children':this[_0x5f45('0x2')]});}get[_0x5f45('0x25')](){return this[_0x5f45('0x18')]['weight']>this['_config'][_0x5f45('0x0')]&&!this[_0x5f45('0x20')]&&!this['hasDirtyComment'];}['render'](){super[_0x5f45('0x21')](),this['refreshVisibleViews']();}[_0x5f45('0x6')](){this[_0x5f45('0x24')][_0x5f45('0x6')]();}['destroy'](){this['_collapsedCommentsView'][_0x5f45('0x1b')]();for(const _0x1e0e1b of this[_0x5f45('0x4')])_0x1e0e1b[_0x5f45('0x1b')]();super[_0x5f45('0x1b')]();}[_0x5f45('0x11')](){this[_0x5f45('0x25')]?this[_0x5f45('0x23')]():this[_0x5f45('0x10')]();}[_0x5f45('0x2f')](_0x22381a){const _0x1cd273=new this[(_0x5f45('0xc'))][(_0x5f45('0x5'))](this['locale'],_0x22381a,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this[_0x5f45('0xc')][_0x5f45('0x2d')],'editorConfig':this[_0x5f45('0xc')][_0x5f45('0xd')]});_0x1cd273[_0x5f45('0x19')]=_0x22381a['id'],_0x1cd273[_0x5f45('0x1c')](_0x5f45('0x12'))['to'](this),_0x1cd273[_0x5f45('0x1c')]('updateComment')['to'](this),this[_0x5f45('0x30')](_0x1cd273,_0x5f45('0x22'),()=>this[_0x5f45('0x9')]()),this[_0x5f45('0x4')][_0x5f45('0x1e')](_0x1cd273);}['_handleRemoveCommentModel'](_0x58fdda){const _0x7d988d=this[_0x5f45('0x4')][_0x5f45('0x16')](_0x58fdda['id']);this[_0x5f45('0x26')](_0x7d988d),_0x7d988d[_0x5f45('0x15')]&&this[_0x5f45('0x9')](),_0x7d988d['destroy']();}[_0x5f45('0x9')](){this[_0x5f45('0x1a')]=Array[_0x5f45('0x2c')](this[_0x5f45('0x4')])[_0x5f45('0xf')](_0x451661=>_0x451661[_0x5f45('0x15')]);}[_0x5f45('0x23')](){const _0x441512=function(_0x26ae83){const _0x158fe2=new _0x5bc504();for(const _0x19428c of _0x26ae83)_0x158fe2[_0x5f45('0x1e')](_0x19428c);return _0x158fe2;}(this[_0x5f45('0x4')]),_0x2c0a89=this['_collapsedCommentsView'][_0x5f45('0x8')];for(let _0x2f8980=0x1;_0x2f8980<=_0x2c0a89;_0x2f8980++)_0x441512[_0x5f45('0x16')](0x1);for(const _0x3ed549 of _0x441512)_0x3ed549[_0x5f45('0x1')]();_0x2c0a89>0x0&&_0x441512[_0x5f45('0x1e')](this[_0x5f45('0xa')],0x1),Wt(_0x279dc6(Array[_0x5f45('0x2c')](this[_0x5f45('0x2')]),Array['from'](_0x441512)),this[_0x5f45('0x2')],_0x441512);}[_0x5f45('0x10')](){Wt(_0x279dc6(Array['from'](this[_0x5f45('0x2')]),Array[_0x5f45('0x2c')](this[_0x5f45('0x4')])),this[_0x5f45('0x2')],this[_0x5f45('0x4')]);for(const _0x486e4e of this[_0x5f45('0x2')])_0x486e4e[_0x5f45('0x1f')]();}}function Wt(_0x38cd8e,_0x1e76ed,_0x218eb3){let _0x41dd6f=0x0;for(const _0x20e55e of _0x38cd8e)switch(_0x20e55e){case _0x5f45('0x1d'):_0x1e76ed['add'](_0x218eb3[_0x5f45('0x27')](_0x41dd6f),_0x41dd6f),_0x41dd6f++;break;case _0x5f45('0xe'):_0x1e76ed['remove'](_0x41dd6f);break;case'equal':_0x41dd6f++;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x55d6=['extendTemplate','then','userView','destroy','value','ck-thread__user','commentInputView','showInput','bindTemplate','focusTracker','ck-comment__input-container','div'];(function(_0x4081b7,_0x55d6a3){var _0x25416a=function(_0x2cb10b){while(--_0x2cb10b){_0x4081b7['push'](_0x4081b7['shift']());}};_0x25416a(++_0x55d6a3);}(_0x55d6,0x173));var _0x2541=function(_0x4081b7,_0x55d6a3){_0x4081b7=_0x4081b7-0x0;var _0x25416a=_0x55d6[_0x4081b7];return _0x25416a;};import{View as _0x3746de}from'ckeditor5/src/ui';import _0x6769f1 from'./commentinputview';import{UserView as _0x11bda0}from'ckeditor5-collaboration/src/collaboration-core';export default class dt extends _0x3746de{constructor(_0x3bec74,_0x2e6c4f,_0xf16805){super(_0x3bec74),this['commentInputView']=new _0x6769f1(_0x3bec74,_0xf16805),this['commentInputView']['bind']('showButtons')['to'](this[_0x2541('0x7')][_0x2541('0xa')],'isFocused',this[_0x2541('0x7')],_0x2541('0x5'),(_0x2d4866,_0x19ddfc)=>_0x2d4866||!!_0x19ddfc),this['set'](_0x2541('0x8'),!0x1),this[_0x2541('0x3')]=new _0x11bda0(_0x3bec74,_0x2e6c4f),this['userView'][_0x2541('0x1')]({'attributes':{'class':_0x2541('0x6')}}),this['commentInputView'][_0x2541('0x1')]({'attributes':{'class':'ck-thread__input'}}),this['setTemplate']({'tag':_0x2541('0x0'),'attributes':{'class':[_0x2541('0xb'),this[_0x2541('0x9')]['if']('showInput','ck-comment__input-container--active')]},'children':[this['userView'],this[_0x2541('0x7')]]});}[_0x2541('0x4')](){return this[_0x2541('0x7')]['destroy']()[_0x2541('0x2')](()=>super[_0x2541('0x4')]());}}
23
+ var _0x1a02=['value','userView','destroy','isFocused','showButtons','showInput','extendTemplate','setTemplate','then','div','bindTemplate','set','commentInputView','bind','ck-comment__input-container--active'];(function(_0x29aaaf,_0x1a02bd){var _0x411cdc=function(_0x3615c6){while(--_0x3615c6){_0x29aaaf['push'](_0x29aaaf['shift']());}};_0x411cdc(++_0x1a02bd);}(_0x1a02,0x113));var _0x411c=function(_0x29aaaf,_0x1a02bd){_0x29aaaf=_0x29aaaf-0x0;var _0x411cdc=_0x1a02[_0x29aaaf];return _0x411cdc;};import{View as _0x16dc72}from'ckeditor5/src/ui';import _0x3a4960 from'./commentinputview';import{UserView as _0x10b8c3}from'ckeditor5-collaboration/src/collaboration-core';export default class dt extends _0x16dc72{constructor(_0x2d54eb,_0x4fcf44,_0x446c93){super(_0x2d54eb),this['commentInputView']=new _0x3a4960(_0x2d54eb,_0x446c93),this['commentInputView'][_0x411c('0x8')](_0x411c('0xe'))['to'](this[_0x411c('0x7')]['focusTracker'],_0x411c('0xd'),this[_0x411c('0x7')],_0x411c('0xa'),(_0x2975a6,_0x206bf6)=>_0x2975a6||!!_0x206bf6),this[_0x411c('0x6')](_0x411c('0x0'),!0x1),this['on']('change:showInput',()=>{this['showInput']&&!this[_0x411c('0x7')]['editor']&&this[_0x411c('0x7')]['createEditor']();}),this[_0x411c('0xb')]=new _0x10b8c3(_0x2d54eb,_0x4fcf44),this[_0x411c('0xb')][_0x411c('0x1')]({'attributes':{'class':'ck-thread__user'}}),this[_0x411c('0x7')][_0x411c('0x1')]({'attributes':{'class':'ck-thread__input'}}),this[_0x411c('0x2')]({'tag':_0x411c('0x4'),'attributes':{'class':['ck-comment__input-container',this[_0x411c('0x5')]['if'](_0x411c('0x0'),_0x411c('0x9'))]},'children':[this['userView'],this['commentInputView']]});}['destroy'](){return this[_0x411c('0x7')][_0x411c('0xc')]()[_0x411c('0x3')](()=>super[_0x411c('0xc')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x123e=['removeCommentThread','ck-thread--active','commentsListView','commentViews','element','getTemplate','remove','execute','containerElement','length','stop','change:isReadOnly','isActive','locale','change:isActive','_cancelAllConfirms','render','ck-thread__container','isConfirm','div','Write\x20a\x20comment...','listenTo','fire','high','get','removeButton','querySelector','actionIndicator','off','bind','_bindFirstCommentView','set','cancelConfirm','_model'];(function(_0x28863a,_0x123e1d){const _0x29490d=function(_0x439070){while(--_0x439070){_0x28863a['push'](_0x28863a['shift']());}};_0x29490d(++_0x123e1d);}(_0x123e,0x10e));const _0x2949=function(_0x28863a,_0x123e1d){_0x28863a=_0x28863a-0x0;let _0x29490d=_0x123e[_0x28863a];return _0x29490d;};import{mix as _0x4b0bd0}from'ckeditor5/src/utils';import{ConfirmMixin as _0x2d1b98}from'ckeditor5-collaboration/src/collaboration-core';import _0xa3a141 from'./basecommentthreadview';import{getTranslation as _0x3ed49a}from'../../../utils/common-translations';export default class nt extends _0xa3a141{constructor(_0x55db0a,_0xebafb0,_0x11e9f6,_0xa77e06){super(_0x55db0a,_0xebafb0,_0x11e9f6,_0xa77e06),this[_0x2949('0x21')](_0x2949('0x1d'),null),this[_0x2949('0xa')]=null,this[_0x2949('0xf')]=_0x55db0a,this['setTemplate'](this[_0x2949('0x7')]()),this['on'](_0x2949('0x10'),(_0x3b2a74,_0x5d0732,_0xda63f3)=>{_0xda63f3||this[_0x2949('0x11')]();}),this[_0x2949('0x17')](this[_0x2949('0x1')],_0x2949('0xd'),(_0x10be9f,_0x4a6934,_0x15ab40)=>{_0x15ab40&&this[_0x2949('0x11')]();}),this[_0x2949('0xb')]>0x0?this[_0x2949('0x20')]():this[_0x2949('0x17')](this['commentsListView'][_0x2949('0x5')],'add',_0x5264b4=>{this[_0x2949('0x20')](),_0x5264b4[_0x2949('0x1e')]();});}[_0x2949('0x7')](){const _0xf72676=this['bindTemplate'];return{'tag':_0x2949('0x15'),'attributes':{'class':['ck-thread',_0xf72676['if'](_0x2949('0xe'),_0x2949('0x3')),_0xf72676['if'](_0x2949('0x14'),'ck-thread--remove-confirmation'),_0xf72676['to'](_0x2949('0x1d'),_0x560ccc=>_0x560ccc?'ck-thread--'+_0x560ccc:'')],'data-thread-id':this[_0x2949('0x1')]['id'],'tabindex':-0x1},'children':[{'tag':_0x2949('0x15'),'attributes':{'class':_0x2949('0x13')},'children':[this[_0x2949('0x4')],this['commentThreadInputView']]}]};}[_0x2949('0x12')](){super[_0x2949('0x12')](),this[_0x2949('0xa')]=this[_0x2949('0x6')][_0x2949('0x1c')]('.ck-thread__container');}['_cancelAllConfirms'](){this['cancelConfirm']();for(const _0x3d771e of this[_0x2949('0x4')][_0x2949('0x5')])_0x3d771e[_0x2949('0x0')]();}['_bindFirstCommentView'](){const {locale:_0x5844ab}=this,_0x35eda0=this[_0x2949('0x4')][_0x2949('0x5')][_0x2949('0x1a')](0x0);this[_0x2949('0x1f')](_0x2949('0x1d'))['to'](_0x35eda0,_0x2949('0x1d'),_0x13d20f=>_0x2949('0x8')===_0x13d20f?_0x2949('0x8'):null),_0x35eda0['placeholder']=_0x3ed49a(_0x5844ab,_0x2949('0x16')),_0x35eda0[_0x2949('0x1b')]['on'](_0x2949('0x9'),_0x20d00f=>{_0x20d00f[_0x2949('0xc')](),this['showConfirm'](_0x3ed49a(_0x5844ab,'Delete\x20comment\x20thread?'),this[_0x2949('0xa')])['then'](()=>{this[_0x2949('0x18')](_0x2949('0x2'));});},{'priority':_0x2949('0x19')});}}_0x4b0bd0(nt,_0x2d1b98);
23
+ const _0x2209=['ck-thread--remove-confirmation','commentThreadInputView','remove','commentViews','removeCommentThread','listenTo','placeholder','.ck-thread__container','ck-thread__container','querySelector','fire','bind','stop','cancelConfirm','commentsListView','render','off','bindTemplate','ck-thread','containerElement','isConfirm','change:isActive','setTemplate','Write\x20a\x20comment...','_model','actionIndicator','_bindFirstCommentView','element','showConfirm','isActive','change:isReadOnly','length','then','get','locale','removeButton','getTemplate','_cancelAllConfirms','high','div'];(function(_0x1a9cd7,_0x220903){const _0x2dae93=function(_0x53fd02){while(--_0x53fd02){_0x1a9cd7['push'](_0x1a9cd7['shift']());}};_0x2dae93(++_0x220903);}(_0x2209,0xd3));const _0x2dae=function(_0x1a9cd7,_0x220903){_0x1a9cd7=_0x1a9cd7-0x0;let _0x2dae93=_0x2209[_0x1a9cd7];return _0x2dae93;};import{mix as _0x3d45ef}from'ckeditor5/src/utils';import{ConfirmMixin as _0x2b55a4}from'ckeditor5-collaboration/src/collaboration-core';import _0x1be0f9 from'./basecommentthreadview';import{getTranslation as _0x55eb5a}from'../../../utils/common-translations';export default class nt extends _0x1be0f9{constructor(_0xf15a43,_0x44824c,_0x36e3df,_0x15bcc9){super(_0xf15a43,_0x44824c,_0x36e3df,_0x15bcc9),this['set'](_0x2dae('0xe'),null),this[_0x2dae('0x8')]=null,this[_0x2dae('0x17')]=_0xf15a43,this[_0x2dae('0xb')](this[_0x2dae('0x19')]()),this['on'](_0x2dae('0xa'),(_0x15b38a,_0x53c285,_0x2679a3)=>{_0x2679a3||this[_0x2dae('0x1a')]();}),this['listenTo'](this[_0x2dae('0xd')],_0x2dae('0x13'),(_0x58bd7d,_0x55152f,_0x312c9f)=>{_0x312c9f&&this['_cancelAllConfirms']();}),this[_0x2dae('0x14')]>0x0?this['_bindFirstCommentView']():this[_0x2dae('0x22')](this[_0x2dae('0x3')][_0x2dae('0x20')],'add',_0x3c65a7=>{this[_0x2dae('0xf')](),_0x3c65a7[_0x2dae('0x5')]();});}[_0x2dae('0x19')](){const _0x4e7e31=this[_0x2dae('0x6')];return{'tag':_0x2dae('0x1c'),'attributes':{'class':[_0x2dae('0x7'),_0x4e7e31['if'](_0x2dae('0x12'),'ck-thread--active'),_0x4e7e31['if'](_0x2dae('0x9'),_0x2dae('0x1d')),_0x4e7e31['to'](_0x2dae('0xe'),_0x40d10f=>_0x40d10f?'ck-thread--'+_0x40d10f:'')],'data-thread-id':this[_0x2dae('0xd')]['id'],'tabindex':-0x1},'children':[{'tag':_0x2dae('0x1c'),'attributes':{'class':_0x2dae('0x25')},'children':[this[_0x2dae('0x3')],this[_0x2dae('0x1e')]]}]};}[_0x2dae('0x4')](){super[_0x2dae('0x4')](),this[_0x2dae('0x8')]=this[_0x2dae('0x10')][_0x2dae('0x26')](_0x2dae('0x24'));}[_0x2dae('0x1a')](){this[_0x2dae('0x2')]();for(const _0x4febb3 of this[_0x2dae('0x3')][_0x2dae('0x20')])_0x4febb3[_0x2dae('0x2')]();}[_0x2dae('0xf')](){const {locale:_0x3bfea3}=this,_0x27d48d=this[_0x2dae('0x3')]['commentViews'][_0x2dae('0x16')](0x0);this[_0x2dae('0x0')](_0x2dae('0xe'))['to'](_0x27d48d,_0x2dae('0xe'),_0xb2f148=>_0x2dae('0x1f')===_0xb2f148?_0x2dae('0x1f'):null),_0x27d48d[_0x2dae('0x23')]=_0x55eb5a(_0x3bfea3,_0x2dae('0xc')),_0x27d48d[_0x2dae('0x18')]['on']('execute',_0x2d19cc=>{_0x2d19cc[_0x2dae('0x1')](),this[_0x2dae('0x11')](_0x55eb5a(_0x3bfea3,'Delete\x20comment\x20thread?'),this[_0x2dae('0x8')])[_0x2dae('0x15')](()=>{this[_0x2dae('0x27')](_0x2dae('0x21'));});},{'priority':_0x2dae('0x1b')});}}_0x3d45ef(nt,_0x2b55a4);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xd9fb=['bind','isReadOnly','isEnabled','change:isRemovable','execute','label','render','isEditable','_createRemoveButton','ck-annotation__actions--hidden','isEditMode','ck-comment__user','locale','ck-annotation','formatDateTime','ck-annotation__content-wrapper','ck-comment__info','visibleView','listenTo','ck-comment--remove-confirmation','createdAt','div','edit','placeholder','ck-comment__actions','cancelConfirm','_attachActions','_createCommentInputView','removeButton','actionIndicator','ck-annotation__user','extendTemplate','icon','span','then','userView','ck-comment--edit','isVisible','set','blur','ck-comment__info-time','Remove','isConfirm','ck-annotation__info','_model','ck-annotation__info-time','editButton','remove','element','Reply...','_config','getTemplate','showConfirm','pencil','bindTemplate','mouseenter','focus','fire','setTemplate','_createEditButton','time'];(function(_0x3d4e2a,_0xd9fbc9){const _0x5552b2=function(_0x3bae59){while(--_0x3bae59){_0x3d4e2a['push'](_0x3d4e2a['shift']());}};_0x5552b2(++_0xd9fbc9);}(_0xd9fb,0x165));const _0x5552=function(_0x3d4e2a,_0xd9fbc9){_0x3d4e2a=_0x3d4e2a-0x0;let _0x5552b2=_0xd9fb[_0x3d4e2a];return _0x5552b2;};import{mix as _0x249466}from'ckeditor5/src/utils';import{ButtonView as _0x3672f4}from'ckeditor5/src/ui';import{icons as _0x5bcefa}from'ckeditor5/src/core';import{UserView as _0x24ee2e,ConfirmMixin as _0x5dc7e9}from'ckeditor5-collaboration/src/collaboration-core';import _0x2322b9 from'./basecommentview';import _0x233841 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x38305f}from'../../../utils/common-translations';export default class ot extends _0x2322b9{constructor(_0x33415c,_0x38b0a8,_0x58c0c9){super(_0x33415c,_0x38b0a8,_0x58c0c9),this['set']('actionIndicator',null),this[_0x5552('0x2f')](_0x5552('0x20'),_0x38305f(_0x33415c,_0x5552('0x3a'))),this['set']('createdAt',null),this[_0x5552('0x9')](_0x5552('0x1d'))['to'](_0x38b0a8),this[_0x5552('0x37')]=this[_0x5552('0x7')](),this['removeButton']=this['_createRemoveButton'](),this[_0x5552('0x2c')]=new _0x24ee2e(_0x33415c,_0x38b0a8['author']),this[_0x5552('0x2c')][_0x5552('0x28')]({'attributes':{'class':[_0x5552('0x14'),_0x5552('0x27')]}}),this[_0x5552('0x1b')](_0x38b0a8,_0x5552('0xc'),()=>this[_0x5552('0x22')]()),this[_0x5552('0x6')](this[_0x5552('0x3c')]());}[_0x5552('0x3c')](){const _0x289ef1=this[_0x5552('0x2')];return{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x289ef1['if'](_0x5552('0x33'),_0x5552('0x1c'))],'tabindex':-0x1},'children':[{'tag':_0x5552('0x1e'),'attributes':{'class':['ck-comment',_0x5552('0x16'),_0x289ef1['if'](_0x5552('0x13'),_0x5552('0x2d')),_0x289ef1['to'](_0x5552('0x26'),_0xb9d2d=>_0xb9d2d?'ck-comment--'+_0xb9d2d:'')],'data-author-id':this[_0x5552('0x35')]['author']['id'],'data-comment-id':this[_0x5552('0x35')]['id']},'children':[this[_0x5552('0x2c')],{'tag':'div','attributes':{'class':['ck-comment__main','ck-annotation__main']},'children':[{'tag':_0x5552('0x1e'),'attributes':{'class':[_0x5552('0x19'),_0x5552('0x34')]},'children':[{'tag':_0x5552('0x2a'),'children':[{'text':this[_0x5552('0x2c')]['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name']}},{'tag':_0x5552('0x8'),'attributes':{'datetime':_0x289ef1['to'](_0x5552('0x1d')),'class':[_0x5552('0x31'),_0x5552('0x36')]},'children':[{'text':_0x289ef1['to'](_0x5552('0x1d'),_0x42de30=>this[_0x5552('0x3b')][_0x5552('0x17')](_0x42de30))}]}]},{'tag':_0x5552('0x1e'),'attributes':{'class':[_0x5552('0x21'),'ck-annotation__actions',_0x289ef1['if'](_0x5552('0x13'),'ck-comment__actions--hidden'),_0x289ef1['if']('isEditMode',_0x5552('0x12'))]},'children':[this['editButton'],this[_0x5552('0x25')]]},{'tag':_0x5552('0x1e'),'attributes':{'class':[_0x5552('0x18')]},'children':this[_0x5552('0x1a')]}]}]}]};}[_0x5552('0x7')](){const _0x19090c=new _0x3672f4(this[_0x5552('0x15')]);return _0x19090c[_0x5552('0xe')]=_0x38305f(this[_0x5552('0x15')],'Edit'),_0x19090c[_0x5552('0x29')]=_0x5bcefa[_0x5552('0x1')],_0x19090c[_0x5552('0x28')]({'attributes':{'class':_0x5552('0x2d')}}),_0x19090c[_0x5552('0x9')]('isEnabled')['to'](this[_0x5552('0x35')],_0x5552('0xa'),_0x8aaf48=>!_0x8aaf48),_0x19090c['bind'](_0x5552('0x2e'))['to'](this[_0x5552('0x35')],_0x5552('0x10')),_0x19090c['on'](_0x5552('0xd'),()=>this['switchToEditMode']()),_0x19090c;}[_0x5552('0x11')](){const _0x5d76d1=new _0x3672f4(this[_0x5552('0x15')]);return _0x5d76d1[_0x5552('0xe')]=_0x38305f(this['locale'],_0x5552('0x32')),_0x5d76d1[_0x5552('0x29')]=_0x233841,_0x5d76d1[_0x5552('0x28')]({'attributes':{'class':'ck-comment--remove'}}),_0x5d76d1['bind'](_0x5552('0xb'))['to'](this[_0x5552('0x35')],_0x5552('0xa'),_0x453eec=>!_0x453eec),_0x5d76d1[_0x5552('0x9')](_0x5552('0x2e'))['to'](this[_0x5552('0x35')],'isRemovable'),_0x5d76d1['on']('execute',()=>{this[_0x5552('0x0')](_0x38305f(this[_0x5552('0x15')],'Delete\x20comment?'),this[_0x5552('0x39')])[_0x5552('0x2b')](()=>{this[_0x5552('0x5')]('removeComment',this['_model']['id']);});}),_0x5d76d1;}[_0x5552('0x23')](_0xe45558,_0x118c57){this['listenTo'](_0xe45558,_0x5552('0x3'),()=>this[_0x5552('0x26')]=_0x118c57),this[_0x5552('0x1b')](_0xe45558,_0x5552('0x4'),()=>this[_0x5552('0x26')]=_0x118c57),this['listenTo'](_0xe45558,'mouseleave',()=>this[_0x5552('0x26')]=null),this[_0x5552('0x1b')](_0xe45558,_0x5552('0x30'),()=>this[_0x5552('0x26')]=null);}[_0x5552('0x24')](){const _0x129f14=super[_0x5552('0x24')]();return _0x129f14['bind'](_0x5552('0x20'))['to'](this),_0x129f14;}[_0x5552('0xf')](){super[_0x5552('0xf')](),this['_attachActions'](this[_0x5552('0x37')][_0x5552('0x39')],_0x5552('0x1f')),this[_0x5552('0x23')](this['removeButton'][_0x5552('0x39')],_0x5552('0x38'));}}_0x249466(ot,_0x5dc7e9);
23
+ const _0x1a10=['removeButton','ck-annotation__actions--hidden','ck-annotation','isVisible','ck-comment__info-name','ck-comment__wrapper','ck-comment__user','locale','externalAuthor','visibleView','then','ck-comment__info','_attachActions','isRemovable','ck-annotation__info','remove','div','change:isRemovable','execute','isEditMode','_model','fire','set','listenTo','switchToEditMode','focus','createdAt','icon','bind','Reply...','ck-annotation__actions','actionIndicator','push','bindTemplate','ck-comment__actions','getTemplate','label','isReadOnly','placeholder','ck-comment__actions--hidden','ck-annotation__content-wrapper','ck-comment--remove','ck-comment--edit','formatDateTime','ck-annotation__info-time','render','@external','mouseleave','element','_createRemoveButton','ck-annotation__user','cancelConfirm','author','ck-comment--remove-confirmation','ck-comment__main','Remove','name','blur','ck-comment__info-time','extendTemplate','span','isEnabled','_createCommentInputView','ck-comment--','ck-comment','ck-annotation__info-name','edit','editButton','pencil','userView'];(function(_0x5bd2d1,_0x1a100c){const _0x564455=function(_0x6f3f66){while(--_0x6f3f66){_0x5bd2d1['push'](_0x5bd2d1['shift']());}};_0x564455(++_0x1a100c);}(_0x1a10,0x7c));const _0x5644=function(_0x5bd2d1,_0x1a100c){_0x5bd2d1=_0x5bd2d1-0x0;let _0x564455=_0x1a10[_0x5bd2d1];return _0x564455;};import{mix as _0x545214}from'ckeditor5/src/utils';import{ButtonView as _0x1314d9}from'ckeditor5/src/ui';import{icons as _0x2ad2a6}from'ckeditor5/src/core';import{UserView as _0x318068,ConfirmMixin as _0x282d84}from'ckeditor5-collaboration/src/collaboration-core';import _0x3c9eec from'./basecommentview';import _0x5ef2bb from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x58a1a7}from'../../../utils/common-translations';export default class ot extends _0x3c9eec{constructor(_0x370c78,_0x3f0977,_0x5f0c0c){super(_0x370c78,_0x3f0977,_0x5f0c0c),this[_0x5644('0x26')](_0x5644('0x2f'),null),this[_0x5644('0x26')](_0x5644('0x36'),_0x58a1a7(_0x370c78,_0x5644('0x2d'))),this['set'](_0x5644('0x2a'),null),this[_0x5644('0x2c')](_0x5644('0x2a'))['to'](_0x3f0977[_0x5644('0x18')]?_0x3f0977['attributes'][_0x5644('0x3e')]:_0x3f0977),this[_0x5644('0xd')]=this['_createEditButton'](),this['removeButton']=this[_0x5644('0x41')](),this[_0x5644('0xf')]=new _0x318068(_0x370c78,_0x3f0977['externalAuthor']||_0x3f0977[_0x5644('0x44')]),this[_0x5644('0xf')][_0x5644('0x5')]({'attributes':{'class':[_0x5644('0x16'),_0x5644('0x42')]}}),this[_0x5644('0x27')](_0x3f0977,_0x5644('0x21'),()=>this[_0x5644('0x43')]()),this['setTemplate'](this['getTemplate']());}[_0x5644('0x33')](){const _0xb994d3=this[_0x5644('0x31')],_0x24e411=[{'tag':'div','attributes':{'class':[_0x5644('0x1b'),_0x5644('0x1e')]},'children':[{'tag':_0x5644('0x6'),'children':[{'text':this[_0x5644('0xf')][_0x5644('0x2')]}],'attributes':{'class':[_0x5644('0x14'),_0x5644('0xb')]}},{'tag':'time','attributes':{'datetime':_0xb994d3['to'](_0x5644('0x2a')),'class':[_0x5644('0x4'),_0x5644('0x3c')]},'children':[{'text':_0xb994d3['to'](_0x5644('0x2a'),_0x43ff3a=>this['_config'][_0x5644('0x3b')](_0x43ff3a))}]}]},{'tag':'div','attributes':{'class':[_0x5644('0x32'),_0x5644('0x2e'),_0xb994d3['if']('isEditMode',_0x5644('0x37')),_0xb994d3['if'](_0x5644('0x23'),_0x5644('0x11'))]},'children':[this[_0x5644('0xd')],this['removeButton']]},{'tag':'div','attributes':{'class':[_0x5644('0x38')]},'children':this[_0x5644('0x19')]}];return this[_0x5644('0x24')][_0x5644('0x18')]&&_0x24e411[_0x5644('0x30')]({'tag':_0x5644('0x20'),'attributes':{'class':['ck-comment__external']},'children':[{'text':_0x58a1a7(this['locale'],'EXTERNAL_COMMENT')}]}),{'tag':'li','attributes':{'class':[_0x5644('0x15'),_0xb994d3['if']('isConfirm',_0x5644('0x45'))],'tabindex':-0x1},'children':[{'tag':_0x5644('0x20'),'attributes':{'class':[_0x5644('0xa'),_0x5644('0x12'),_0xb994d3['if'](_0x5644('0x23'),_0x5644('0x3a')),_0xb994d3['to'](_0x5644('0x2f'),_0x38290d=>_0x38290d?_0x5644('0x9')+_0x38290d:'')],'data-author-id':this[_0x5644('0x24')]['author']['id'],'data-comment-id':this[_0x5644('0x24')]['id']},'children':[this['userView'],{'tag':_0x5644('0x20'),'attributes':{'class':[_0x5644('0x0'),'ck-annotation__main']},'children':_0x24e411}]}]};}['_createEditButton'](){const _0x1aa6c9=new _0x1314d9(this[_0x5644('0x17')]);return _0x1aa6c9[_0x5644('0x34')]=_0x58a1a7(this['locale'],'Edit'),_0x1aa6c9[_0x5644('0x2b')]=_0x2ad2a6[_0x5644('0xe')],_0x1aa6c9[_0x5644('0x5')]({'attributes':{'class':_0x5644('0x3a')}}),_0x1aa6c9[_0x5644('0x2c')]('isEnabled')['to'](this['_model'],_0x5644('0x35'),_0x1be4e6=>!_0x1be4e6),_0x1aa6c9[_0x5644('0x2c')](_0x5644('0x13'))['to'](this[_0x5644('0x24')],'isEditable'),_0x1aa6c9['on'](_0x5644('0x22'),()=>this[_0x5644('0x28')]()),_0x1aa6c9;}['_createRemoveButton'](){const _0x1a646d=new _0x1314d9(this[_0x5644('0x17')]);return _0x1a646d[_0x5644('0x34')]=_0x58a1a7(this[_0x5644('0x17')],_0x5644('0x1')),_0x1a646d['icon']=_0x5ef2bb,_0x1a646d[_0x5644('0x5')]({'attributes':{'class':_0x5644('0x39')}}),_0x1a646d['bind'](_0x5644('0x7'))['to'](this[_0x5644('0x24')],_0x5644('0x35'),_0x55b5a4=>!_0x55b5a4),_0x1a646d['bind'](_0x5644('0x13'))['to'](this['_model'],_0x5644('0x1d')),_0x1a646d['on'](_0x5644('0x22'),()=>{this['showConfirm'](_0x58a1a7(this['locale'],'Delete\x20comment?'),this['element'])[_0x5644('0x1a')](()=>{this[_0x5644('0x25')]('removeComment',this[_0x5644('0x24')]['id']);});}),_0x1a646d;}[_0x5644('0x1c')](_0x1bd6c6,_0x1816f2){this[_0x5644('0x27')](_0x1bd6c6,'mouseenter',()=>this[_0x5644('0x2f')]=_0x1816f2),this[_0x5644('0x27')](_0x1bd6c6,_0x5644('0x29'),()=>this[_0x5644('0x2f')]=_0x1816f2),this[_0x5644('0x27')](_0x1bd6c6,_0x5644('0x3f'),()=>this[_0x5644('0x2f')]=null),this[_0x5644('0x27')](_0x1bd6c6,_0x5644('0x3'),()=>this['actionIndicator']=null);}[_0x5644('0x8')](){const _0x2b2c8c=super[_0x5644('0x8')]();return _0x2b2c8c[_0x5644('0x2c')](_0x5644('0x36'))['to'](this),_0x2b2c8c;}[_0x5644('0x3d')](){super[_0x5644('0x3d')](),this[_0x5644('0x1c')](this[_0x5644('0xd')]['element'],_0x5644('0xc')),this[_0x5644('0x1c')](this[_0x5644('0x10')][_0x5644('0x40')],_0x5644('0x1f'));}}_0x545214(ot,_0x282d84);
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4867=['pluginName','Comments'];(function(_0x16133b,_0x48679e){var _0x5adc16=function(_0x26cf46){while(--_0x26cf46){_0x16133b['push'](_0x16133b['shift']());}};_0x5adc16(++_0x48679e);}(_0x4867,0xc0));var _0x5adc=function(_0x16133b,_0x48679e){_0x16133b=_0x16133b-0x0;var _0x5adc16=_0x4867[_0x16133b];return _0x5adc16;};import{Plugin as _0x44a58a}from'ckeditor5/src/core';import _0x19e2ba from'./comments/commentsrepository';import _0x1702e6 from'./comments/commentsediting';import _0x2c7635 from'./comments/commentsui';import _0x27826f from'./commentsonly';import _0x13954d from'./annotations/widesidebar';import _0x257b13 from'./annotations/narrowsidebar';import _0x349f99 from'./annotations/inlineannotations';export default class c extends _0x44a58a{static get['requires'](){return[_0x19e2ba,_0x1702e6,_0x2c7635,_0x27826f,_0x13954d,_0x257b13,_0x349f99];}static get[_0x5adc('0x0')](){return _0x5adc('0x1');}}
23
+ var _0x2d5d=['Comments','requires'];(function(_0xe0f677,_0x2d5d39){var _0x5d2195=function(_0xd32c67){while(--_0xd32c67){_0xe0f677['push'](_0xe0f677['shift']());}};_0x5d2195(++_0x2d5d39);}(_0x2d5d,0x9f));var _0x5d21=function(_0xe0f677,_0x2d5d39){_0xe0f677=_0xe0f677-0x0;var _0x5d2195=_0x2d5d[_0xe0f677];return _0x5d2195;};import{Plugin as _0x3b9a28}from'ckeditor5/src/core';import _0x682411 from'./comments/commentsrepository';import _0x2c917d from'./comments/commentsediting';import _0x337ed4 from'./comments/commentsui';import _0x532681 from'./commentsonly';import _0x453803 from'./annotations/widesidebar';import _0x17aa41 from'./annotations/narrowsidebar';import _0x5d1f28 from'./annotations/inlineannotations';export default class c extends _0x3b9a28{static get[_0x5d21('0x0')](){return[_0x682411,_0x2c917d,_0x337ed4,_0x532681,_0x453803,_0x17aa41,_0x5d1f28];}static get['pluginName'](){return _0x5d21('0x1');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5bc4=['pluginName','isEnabled','plugins','clearForceDisabled','affectsData','stopListening','addCommentThread','editor','commentsOnlyMode','DragDrop','highest','CommentsOnly','requires','_disableCommentsOnlyMode','get','set','cut','view','listenTo','config','_enableCommentsOnlyMode','editing','has','stop','commentsOnly','forceDisabled','commands','delete'];(function(_0x4345bc,_0x5bc4e1){const _0x41b2cb=function(_0x529c46){while(--_0x529c46){_0x4345bc['push'](_0x4345bc['shift']());}};_0x41b2cb(++_0x5bc4e1);}(_0x5bc4,0x17e));const _0x41b2=function(_0x4345bc,_0x5bc4e1){_0x4345bc=_0x4345bc-0x0;let _0x41b2cb=_0x5bc4[_0x4345bc];return _0x41b2cb;};import{Plugin as _0x699d63}from'ckeditor5/src/core';import _0x1afcec from'./comments/commentsediting';export default class e extends _0x699d63{static get[_0x41b2('0xa')](){return _0x41b2('0x15');}static get[_0x41b2('0x16')](){return[_0x1afcec];}constructor(_0x4d0946){super(_0x4d0946),this[_0x41b2('0x19')](_0x41b2('0xb'),null),this['on']('change:isEnabled',(_0x22d997,_0x212286,_0x497d1f)=>{_0x497d1f?this['_enableCommentsOnlyMode']():this[_0x41b2('0x17')]();});}['afterInit'](){null===this[_0x41b2('0xb')]&&(this[_0x41b2('0xb')]=!!this[_0x41b2('0x11')][_0x41b2('0x1')][_0x41b2('0x18')](_0x41b2('0x6')));}[_0x41b2('0x2')](){for(const [_0x4f13f3,_0x174301]of this[_0x41b2('0x11')][_0x41b2('0x8')])_0x174301[_0x41b2('0xe')]&&_0x41b2('0x10')!==_0x4f13f3&&_0x174301[_0x41b2('0x7')](_0x41b2('0x12'));this[_0x41b2('0x11')][_0x41b2('0xc')][_0x41b2('0x4')]('DragDrop')&&this[_0x41b2('0x11')][_0x41b2('0xc')][_0x41b2('0x18')](_0x41b2('0x13'))['forceDisabled'](_0x41b2('0x12'));const _0x5ce314=this['editor'][_0x41b2('0x3')][_0x41b2('0x1b')]['document'];this['listenTo'](_0x5ce314,_0x41b2('0x1a'),_0x4dbf86=>_0x4dbf86[_0x41b2('0x5')](),{'priority':_0x41b2('0x14')}),this[_0x41b2('0x0')](_0x5ce314,'clipboardInput',_0x2f24c8=>_0x2f24c8[_0x41b2('0x5')](),{'priority':_0x41b2('0x14')}),this[_0x41b2('0x0')](_0x5ce314,_0x41b2('0x9'),_0x12a5ad=>_0x12a5ad[_0x41b2('0x5')](),{'priority':_0x41b2('0x14')});}[_0x41b2('0x17')](){for(const [_0x5aa779,_0x39a37b]of this[_0x41b2('0x11')][_0x41b2('0x8')])_0x39a37b[_0x41b2('0xe')]&&_0x41b2('0x10')!==_0x5aa779&&_0x39a37b[_0x41b2('0xd')](_0x41b2('0x12'));this[_0x41b2('0xf')](this[_0x41b2('0x11')][_0x41b2('0x3')]['view']['document']);}}
23
+ const _0xdfcf=['set','has','isEnabled','requires','CommentsOnly','view','plugins','DragDrop','affectsData','cut','change:isEnabled','config','commentsOnlyMode','stop','editor','get','stopListening','_disableCommentsOnlyMode','addCommentThread','listenTo','commands','editing','delete','_enableCommentsOnlyMode','afterInit','forceDisabled','document','highest','clearForceDisabled','clipboardInput'];(function(_0x37d33a,_0xdfcf9){const _0x3ee6d3=function(_0x1af6e4){while(--_0x1af6e4){_0x37d33a['push'](_0x37d33a['shift']());}};_0x3ee6d3(++_0xdfcf9);}(_0xdfcf,0x14e));const _0x3ee6=function(_0x37d33a,_0xdfcf9){_0x37d33a=_0x37d33a-0x0;let _0x3ee6d3=_0xdfcf[_0x37d33a];return _0x3ee6d3;};import{Plugin as _0x1c3588}from'ckeditor5/src/core';import _0x4e62af from'./comments/commentsediting';export default class e extends _0x1c3588{static get['pluginName'](){return _0x3ee6('0x0');}static get[_0x3ee6('0x1d')](){return[_0x4e62af];}constructor(_0x266459){super(_0x266459),this[_0x3ee6('0x1a')](_0x3ee6('0x1c'),null),this['on'](_0x3ee6('0x6'),(_0xb8b0ae,_0x865aa3,_0x1ff4e1)=>{_0x1ff4e1?this[_0x3ee6('0x13')]():this[_0x3ee6('0xd')]();});}[_0x3ee6('0x14')](){null===this[_0x3ee6('0x1c')]&&(this[_0x3ee6('0x1c')]=!!this[_0x3ee6('0xa')][_0x3ee6('0x7')][_0x3ee6('0xb')]('commentsOnly'));}['_enableCommentsOnlyMode'](){for(const [_0x595a7a,_0x3c1539]of this[_0x3ee6('0xa')][_0x3ee6('0x10')])_0x3c1539[_0x3ee6('0x4')]&&_0x3ee6('0xe')!==_0x595a7a&&_0x3c1539[_0x3ee6('0x15')](_0x3ee6('0x8'));this[_0x3ee6('0xa')][_0x3ee6('0x2')][_0x3ee6('0x1b')](_0x3ee6('0x3'))&&this[_0x3ee6('0xa')][_0x3ee6('0x2')]['get'](_0x3ee6('0x3'))[_0x3ee6('0x15')](_0x3ee6('0x8'));const _0x2a4894=this[_0x3ee6('0xa')]['editing'][_0x3ee6('0x1')][_0x3ee6('0x16')];this[_0x3ee6('0xf')](_0x2a4894,_0x3ee6('0x5'),_0x304920=>_0x304920[_0x3ee6('0x9')](),{'priority':_0x3ee6('0x17')}),this[_0x3ee6('0xf')](_0x2a4894,_0x3ee6('0x19'),_0xbd6f55=>_0xbd6f55[_0x3ee6('0x9')](),{'priority':_0x3ee6('0x17')}),this['listenTo'](_0x2a4894,_0x3ee6('0x12'),_0x58acbe=>_0x58acbe[_0x3ee6('0x9')](),{'priority':_0x3ee6('0x17')});}['_disableCommentsOnlyMode'](){for(const [_0x388f23,_0x380ff8]of this[_0x3ee6('0xa')][_0x3ee6('0x10')])_0x380ff8[_0x3ee6('0x4')]&&'addCommentThread'!==_0x388f23&&_0x380ff8[_0x3ee6('0x18')](_0x3ee6('0x8'));this[_0x3ee6('0xc')](this[_0x3ee6('0xa')][_0x3ee6('0x11')][_0x3ee6('0x1')][_0x3ee6('0x16')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x5c7e0d,_0x188a39,_0x4a24db){const t=_0x5c7e0d['t'];switch(_0x188a39){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'},_0x4a24db);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'},_0x4a24db);}}
23
+ export function getTranslation(_0x5a9c1f,_0x4120ea,_0x54c681){const t=_0x5a9c1f['t'];switch(_0x4120ea){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'},_0x54c681);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'},_0x54c681);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 _0x259c=['observe','type','attributeName','childList'];(function(_0x2c3f6e,_0x259c4d){const _0x54e65a=function(_0x84b183){while(--_0x84b183){_0x2c3f6e['push'](_0x2c3f6e['shift']());}};_0x54e65a(++_0x259c4d);}(_0x259c,0x11e));const _0x54e6=function(_0x2c3f6e,_0x259c4d){_0x2c3f6e=_0x2c3f6e-0x0;let _0x54e65a=_0x259c[_0x2c3f6e];return _0x54e65a;};import{throttle as _0xaaca04}from'lodash-es';export default function ut(_0x30762b){const _0x4b27ff=_0xaaca04(_0x30762b,0x1e),_0x3a9452=new MutationObserver(_0x4788b3=>{for(const _0x174a62 of _0x4788b3)('attributes'==_0x174a62[_0x54e6('0x3')]&&'class'==_0x174a62[_0x54e6('0x0')]||_0x54e6('0x1')==_0x174a62[_0x54e6('0x3')])&&_0x4b27ff();});return{'attach'(_0x28601b){_0x3a9452[_0x54e6('0x2')](_0x28601b,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x3a9452['disconnect'](),_0x4b27ff['cancel']();}};}
23
+ const _0x5314=['observe','attributeName','disconnect','childList','type','class','attributes'];(function(_0x502e84,_0x53146e){const _0x131810=function(_0x2bfdcd){while(--_0x2bfdcd){_0x502e84['push'](_0x502e84['shift']());}};_0x131810(++_0x53146e);}(_0x5314,0x1b5));const _0x1318=function(_0x502e84,_0x53146e){_0x502e84=_0x502e84-0x0;let _0x131810=_0x5314[_0x502e84];return _0x131810;};import{throttle as _0x3d2226}from'lodash-es';export default function ft(_0x2db391){const _0x4e43c5=_0x3d2226(_0x2db391,0x1e),_0x4f1bb0=new MutationObserver(_0x1b5d7b=>{for(const _0x2782f4 of _0x1b5d7b)(_0x1318('0x3')==_0x2782f4[_0x1318('0x1')]&&_0x1318('0x2')==_0x2782f4[_0x1318('0x5')]||_0x1318('0x0')==_0x2782f4['type'])&&_0x4e43c5();});return{'attach'(_0x2f6b2f){_0x4f1bb0[_0x1318('0x4')](_0x2f6b2f,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x4f1bb0[_0x1318('0x6')](),_0x4e43c5['cancel']();}};}
@@ -47,24 +47,3 @@
47
47
  .ck.ck-balloon-panel .ck-annotation-wrapper i {
48
48
  font-style: italic;
49
49
  }
50
-
51
- /* Because tooltip is a children of balloon with `overflow: hidden`, we need to fix them via CSS.
52
- * If we introduce tooltip out of BalloonPanelView, we can remove it. */
53
- .ck.ck-balloon-panel button.ck-suggestion--accept .ck-tooltip__text,
54
- .ck.ck-balloon-panel button.ck-suggestion--discard .ck-tooltip__text {
55
- text-align: center;
56
- }
57
-
58
- /* Style the last button inside suggestion (discard action) to tooltip text overlap - align it to the right. */
59
- .ck.ck-balloon-panel button.ck-suggestion--discard .ck-tooltip {
60
- left: unset;
61
- right: 0;
62
- }
63
-
64
- .ck.ck-balloon-panel button.ck-suggestion--discard .ck-tooltip__text {
65
- left: unset;
66
- }
67
-
68
- .ck.ck-balloon-panel button.ck-suggestion--discard .ck-tooltip__text::after {
69
- left: calc(100% - 10px);
70
- }