@ckeditor/ckeditor5-comments 38.2.0-alpha.1 → 39.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/README.md +0 -1
  2. package/build/comments.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/ca.js +1 -1
  7. package/build/translations/cs.js +1 -1
  8. package/build/translations/da.js +1 -1
  9. package/build/translations/de.js +1 -1
  10. package/build/translations/el.js +1 -1
  11. package/build/translations/es.js +1 -1
  12. package/build/translations/et.js +1 -1
  13. package/build/translations/fi.js +1 -1
  14. package/build/translations/fr.js +1 -1
  15. package/build/translations/gl.js +1 -1
  16. package/build/translations/he.js +1 -1
  17. package/build/translations/hi.js +1 -1
  18. package/build/translations/hr.js +1 -1
  19. package/build/translations/hu.js +1 -1
  20. package/build/translations/id.js +1 -1
  21. package/build/translations/ja.js +1 -1
  22. package/build/translations/ko.js +1 -1
  23. package/build/translations/lt.js +1 -1
  24. package/build/translations/ms.js +1 -1
  25. package/build/translations/nl.js +1 -1
  26. package/build/translations/no.js +1 -1
  27. package/build/translations/pl.js +1 -1
  28. package/build/translations/pt.js +1 -1
  29. package/build/translations/ro.js +1 -1
  30. package/build/translations/ru.js +1 -1
  31. package/build/translations/sq.js +1 -1
  32. package/build/translations/sr.js +1 -1
  33. package/build/translations/sv.js +1 -1
  34. package/build/translations/th.js +1 -1
  35. package/build/translations/tr.js +1 -1
  36. package/build/translations/uk.js +1 -1
  37. package/build/translations/vi.js +1 -1
  38. package/build/translations/zh-cn.js +1 -1
  39. package/build/translations/zh.js +1 -1
  40. package/lang/translations/ar.po +1 -1
  41. package/lang/translations/bg.po +1 -1
  42. package/lang/translations/bn.po +1 -1
  43. package/lang/translations/ca.po +1 -1
  44. package/lang/translations/cs.po +1 -1
  45. package/lang/translations/da.po +1 -1
  46. package/lang/translations/de.po +1 -1
  47. package/lang/translations/el.po +1 -1
  48. package/lang/translations/es.po +1 -1
  49. package/lang/translations/et.po +1 -1
  50. package/lang/translations/fi.po +1 -1
  51. package/lang/translations/fr.po +1 -1
  52. package/lang/translations/gl.po +12 -12
  53. package/lang/translations/he.po +1 -1
  54. package/lang/translations/hi.po +1 -1
  55. package/lang/translations/hr.po +1 -1
  56. package/lang/translations/hu.po +1 -1
  57. package/lang/translations/id.po +1 -1
  58. package/lang/translations/ja.po +1 -1
  59. package/lang/translations/ko.po +1 -1
  60. package/lang/translations/lt.po +1 -1
  61. package/lang/translations/ms.po +1 -1
  62. package/lang/translations/nl.po +1 -1
  63. package/lang/translations/no.po +1 -1
  64. package/lang/translations/pl.po +1 -1
  65. package/lang/translations/pt.po +1 -1
  66. package/lang/translations/ro.po +1 -1
  67. package/lang/translations/ru.po +1 -1
  68. package/lang/translations/sq.po +2 -2
  69. package/lang/translations/sr.po +1 -1
  70. package/lang/translations/sv.po +1 -1
  71. package/lang/translations/th.po +1 -1
  72. package/lang/translations/tr.po +1 -1
  73. package/lang/translations/uk.po +1 -1
  74. package/lang/translations/vi.po +1 -1
  75. package/lang/translations/zh-cn.po +1 -1
  76. package/lang/translations/zh.po +1 -1
  77. package/package.json +4 -5
  78. package/src/annotations/annotation.d.ts +10 -6
  79. package/src/annotations/annotation.js +2 -2
  80. package/src/annotations/annotationcollection.d.ts +7 -3
  81. package/src/annotations/annotationcollection.js +2 -2
  82. package/src/annotations/annotations.d.ts +10 -6
  83. package/src/annotations/annotations.js +2 -2
  84. package/src/annotations/annotationsuis.d.ts +9 -5
  85. package/src/annotations/annotationsuis.js +2 -2
  86. package/src/annotations/editorannotations.d.ts +8 -4
  87. package/src/annotations/editorannotations.js +2 -2
  88. package/src/annotations/inlineannotations.d.ts +10 -6
  89. package/src/annotations/inlineannotations.js +2 -2
  90. package/src/annotations/narrowsidebar.d.ts +10 -6
  91. package/src/annotations/narrowsidebar.js +2 -2
  92. package/src/annotations/sidebar.d.ts +9 -5
  93. package/src/annotations/sidebar.js +2 -2
  94. package/src/annotations/view/annotationcounterbuttonview.d.ts +6 -2
  95. package/src/annotations/view/annotationcounterbuttonview.js +2 -2
  96. package/src/annotations/view/annotationview.d.ts +6 -2
  97. package/src/annotations/view/annotationview.js +2 -2
  98. package/src/annotations/view/sidebaritemview.d.ts +6 -2
  99. package/src/annotations/view/sidebaritemview.js +2 -2
  100. package/src/annotations/view/sidebarview.d.ts +6 -2
  101. package/src/annotations/view/sidebarview.js +2 -2
  102. package/src/annotations/widesidebar.d.ts +9 -5
  103. package/src/annotations/widesidebar.js +2 -2
  104. package/src/augmentation.d.ts +5 -1
  105. package/src/augmentation.js +1 -1
  106. package/src/comments/addcommentthreadcommand.d.ts +5 -1
  107. package/src/comments/addcommentthreadcommand.js +2 -2
  108. package/src/comments/commentsarchive.d.ts +8 -4
  109. package/src/comments/commentsarchive.js +2 -2
  110. package/src/comments/commentsarchiveui.d.ts +9 -5
  111. package/src/comments/commentsarchiveui.js +2 -2
  112. package/src/comments/commentsediting.d.ts +10 -6
  113. package/src/comments/commentsediting.js +2 -2
  114. package/src/comments/commentsrepository.d.ts +30 -13
  115. package/src/comments/commentsrepository.js +2 -2
  116. package/src/comments/commentsui.d.ts +9 -5
  117. package/src/comments/commentsui.js +2 -2
  118. package/src/comments/integrations/commentsrestrictededitingmode.d.ts +5 -1
  119. package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
  120. package/src/comments/integrations/importword.d.ts +5 -1
  121. package/src/comments/integrations/importword.js +2 -2
  122. package/src/comments/ui/commenteditor/commenteditor.d.ts +9 -5
  123. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  124. package/src/comments/ui/commenteditor/commenteditorui.d.ts +7 -3
  125. package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
  126. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +7 -3
  127. package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
  128. package/src/comments/ui/commentthreadcontroller.d.ts +6 -6
  129. package/src/comments/ui/commentthreadcontroller.js +2 -2
  130. package/src/comments/ui/view/basecommentthreadview.d.ts +12 -8
  131. package/src/comments/ui/view/basecommentthreadview.js +2 -2
  132. package/src/comments/ui/view/basecommentview.d.ts +8 -4
  133. package/src/comments/ui/view/basecommentview.js +2 -2
  134. package/src/comments/ui/view/collapsedcommentsview.d.ts +6 -2
  135. package/src/comments/ui/view/collapsedcommentsview.js +2 -2
  136. package/src/comments/ui/view/commentcontentview.d.ts +6 -2
  137. package/src/comments/ui/view/commentcontentview.js +2 -2
  138. package/src/comments/ui/view/commentinputview.d.ts +8 -4
  139. package/src/comments/ui/view/commentinputview.js +2 -2
  140. package/src/comments/ui/view/commentsarchiveview.d.ts +7 -3
  141. package/src/comments/ui/view/commentsarchiveview.js +2 -2
  142. package/src/comments/ui/view/commentslistview.d.ts +9 -5
  143. package/src/comments/ui/view/commentslistview.js +2 -2
  144. package/src/comments/ui/view/commentthreadheaderview.d.ts +7 -3
  145. package/src/comments/ui/view/commentthreadheaderview.js +2 -2
  146. package/src/comments/ui/view/commentthreadinputview.d.ts +9 -5
  147. package/src/comments/ui/view/commentthreadinputview.js +2 -2
  148. package/src/comments/ui/view/commentthreadview.d.ts +11 -7
  149. package/src/comments/ui/view/commentthreadview.js +2 -2
  150. package/src/comments/ui/view/commentview.d.ts +12 -8
  151. package/src/comments/ui/view/commentview.js +2 -2
  152. package/src/comments.d.ts +14 -10
  153. package/src/comments.js +2 -2
  154. package/src/commentsonly.d.ts +6 -2
  155. package/src/commentsonly.js +2 -2
  156. package/src/config.d.ts +11 -7
  157. package/src/config.js +1 -1
  158. package/src/index.d.ts +24 -21
  159. package/src/index.js +2 -2
  160. package/src/utils/common-translations.d.ts +5 -1
  161. package/src/utils/common-translations.js +2 -2
  162. package/src/utils/createmutationobserver.d.ts +2 -1
  163. package/src/utils/createmutationobserver.js +2 -2
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a66=['forEach','editor','_initializeFocusCycling','_editorCreationPromise','setData','editorReady','keystrokes','document','submit','add','then','Reply...','low','trim','high','firstChild','destroy','submitButtonView','label','getData','submitLabel','disabledSubmit','ck-comment__input-actions--submit','ck-comment__input-actions','focus','placeholder','bind','fire','length','initialData','withText','editorDestroyed','Reply','_createCancelButton','setTemplate','value','focusNext','createEditor','ck-comment__input-wrapper','cancelButtonView','Cancel','_isDestroyed','insertBefore','_editorConfig','create','element','focusTracker','ck-comment__input-actions--active','shift\x20+\x20tab','Esc','showButtons','view','render','set','stop','extendTemplate','_createSubmitButton','execute'];(function(_0x42ccba,_0x2a66c6){const _0x217bfd=function(_0x1be933){while(--_0x1be933){_0x42ccba['push'](_0x42ccba['shift']());}};_0x217bfd(++_0x2a66c6);}(_0x2a66,0x75));const _0x217b=function(_0x42ccba,_0x2a66c6){_0x42ccba=_0x42ccba-0x0;let _0x217bfd=_0x2a66[_0x42ccba];return _0x217bfd;};import{View as _0x5bc6db,ViewCollection as _0x10ac06,FocusCycler as _0x3f0152,ButtonView as _0x2fe632}from'ckeditor5/src/ui.js';import{FocusTracker as _0x38a830,KeystrokeHandler as _0x3ca2e3}from'ckeditor5/src/utils.js';import _0x6f58e from'../commenteditor/commenteditor.js';import{getTranslation as _0xe47260}from'../../../utils/common-translations.js';export default class Xt extends _0x5bc6db{constructor(_0x3811dc,_0xa351f0={}){super(_0x3811dc),this[_0x217b('0x0')]=null,this[_0x217b('0x2a')]=_0xa351f0,this['keystrokes']=new _0x3ca2e3(),this['focusTracker']=new _0x38a830(),this[_0x217b('0x34')](_0x217b('0x22'),_0xa351f0[_0x217b('0x1c')]||''),this[_0x217b('0x34')](_0x217b('0x14'),!0x1),this[_0x217b('0x34')](_0x217b('0x31'),!0x0),this['set'](_0x217b('0x18'),_0xe47260(_0x3811dc,_0x217b('0xa'))),this['set'](_0x217b('0x13'),_0xe47260(_0x3811dc,_0x217b('0x1f'))),this[_0x217b('0x10')]=this['_createSubmitButton'](),this['cancelButtonView']=this[_0x217b('0x20')](),this[_0x217b('0x21')]({'tag':'div','attributes':{'class':[_0x217b('0x25')]},'children':[{'tag':'div','attributes':{'class':[_0x217b('0x16'),this['bindTemplate']['if']('showButtons',_0x217b('0x2e'))]},'children':[this['submitButtonView'],this[_0x217b('0x26')]]}]}),this[_0x217b('0x5')][_0x217b('0x34')](_0x217b('0x30'),(_0x436f48,_0x413f3a)=>{this[_0x217b('0x26')]['fire']('execute'),_0x413f3a();}),this['on'](_0x217b('0x7'),(_0x1009d3,_0x332923)=>{_0x332923[_0x217b('0x1b')]>0xfde8?(alert(_0xe47260(_0x3811dc,'TOO_LONG_COMMENT_ALERT',[_0x332923[_0x217b('0x1b')],0xfde8])),_0x1009d3[_0x217b('0x35')]()):this['editor'][_0x217b('0x3')]('');},{'priority':_0x217b('0xd')});}[_0x217b('0x33')](){super[_0x217b('0x33')](),this[_0x217b('0x5')]['listenTo'](this[_0x217b('0x2c')]),this[_0x217b('0x2d')][_0x217b('0x8')](this['element']);}[_0x217b('0x24')](){return this[_0x217b('0x0')]||(this[_0x217b('0x0')]=new _0x6f58e(this['_editorConfig']),this[_0x217b('0x2')]=this[_0x217b('0x0')][_0x217b('0x2b')]()[_0x217b('0x9')](()=>{if(this[_0x217b('0x28')])return;const _0x49498a=this[_0x217b('0x0')];this[_0x217b('0x2c')][_0x217b('0x29')](_0x49498a['ui'][_0x217b('0x2c')],this['element'][_0x217b('0xe')]),_0x49498a['model'][_0x217b('0x6')]['on']('change',()=>this[_0x217b('0x22')]=_0x49498a[_0x217b('0x12')]()),_0x49498a[_0x217b('0x19')](_0x217b('0x18'))['to'](this),this[_0x217b('0x1')](this[_0x217b('0x0')]),this['fire'](_0x217b('0x4'),this[_0x217b('0x0')]);})),this[_0x217b('0x2')];}[_0x217b('0x17')](){this[_0x217b('0x0')]&&this['editor'][_0x217b('0x17')]();}async[_0x217b('0xf')](){this['_isDestroyed']||(this[_0x217b('0x28')]=!0x0,this[_0x217b('0x0')]&&(await this[_0x217b('0x2')],await this[_0x217b('0x0')]['destroy'](),this[_0x217b('0x1a')](_0x217b('0x1e'),this[_0x217b('0x0')])),await super[_0x217b('0xf')]());}[_0x217b('0x37')](){const {locale:_0x4459e4}=this,_0x519517=new _0x2fe632(_0x4459e4);return _0x519517[_0x217b('0x36')]({'attributes':{'class':[_0x217b('0x15')]}}),_0x519517[_0x217b('0x1d')]=!0x0,_0x519517['bind'](_0x217b('0x11'))['to'](this,_0x217b('0x13')),_0x519517['on']('execute',()=>{this[_0x217b('0x1a')](_0x217b('0x7'),this[_0x217b('0x22')]);}),_0x519517['bind']('isEnabled')['to'](this,'value',this,_0x217b('0x14'),(_0x2ac65a,_0xaef5f2)=>!_0xaef5f2&&!!_0x2ac65a[_0x217b('0xc')]()),_0x519517;}['_createCancelButton'](){const {locale:_0x2e1d91}=this,_0x482437=new _0x2fe632(_0x2e1d91);return _0x482437[_0x217b('0x36')]({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x482437[_0x217b('0x11')]=_0xe47260(_0x2e1d91,_0x217b('0x27')),_0x482437['withText']=!0x0,_0x482437['on'](_0x217b('0x38'),()=>{this['editor']['setData'](''),this[_0x217b('0x1a')]('cancel');}),_0x482437;}[_0x217b('0x1')](_0x5a77ff){const _0x1eb96a=this[_0x217b('0x2d')],_0x1ea22b=new _0x10ac06();[_0x5a77ff['ui'][_0x217b('0x32')],this['submitButtonView'],this[_0x217b('0x26')]][_0x217b('0x39')](_0x187d62=>{_0x1ea22b['add'](_0x187d62),_0x1eb96a[_0x217b('0x8')](_0x187d62[_0x217b('0x2c')]);});const _0x5dd40b=new _0x3f0152({'focusables':_0x1ea22b,'focusTracker':_0x1eb96a});this[_0x217b('0x5')]['set']('tab',(_0x5f2bcc,_0x40c614)=>{_0x5dd40b[_0x217b('0x23')](),_0x40c614();},{'priority':'low'}),this['keystrokes']['set'](_0x217b('0x2f'),(_0x15280d,_0xfeb5d3)=>{_0x5dd40b['focusPrevious'](),_0xfeb5d3();},{'priority':_0x217b('0xb')});}}
23
+ const _0x3dfb=['then','Cancel','_editorConfig','change','label','focusPrevious','submitButtonView','submit','Esc','showButtons','bindTemplate','extendTemplate','editor','render','destroy','initialData','ck-comment__input-wrapper','focusTracker','setData','low','tab','ck-comment__input-actions--cancel','value','set','_createSubmitButton','_isDestroyed','withText','forEach','cancelButtonView','firstChild','placeholder','create','getData','submitLabel','insertBefore','length','createEditor','cancel','bind','stop','ck-comment__input-actions','Reply','fire','listenTo','high','editorReady','keystrokes','focus','_initializeFocusCycling','shift\x20+\x20tab','trim','add','editorDestroyed','execute','element','div','ck-comment__input-actions--active','setTemplate'];(function(_0xbf4e00,_0x3dfbfc){const _0x1c72b6=function(_0x1e984b){while(--_0x1e984b){_0xbf4e00['push'](_0xbf4e00['shift']());}};_0x1c72b6(++_0x3dfbfc);}(_0x3dfb,0x96));const _0x1c72=function(_0xbf4e00,_0x3dfbfc){_0xbf4e00=_0xbf4e00-0x0;let _0x1c72b6=_0x3dfb[_0xbf4e00];return _0x1c72b6;};import{View as _0x470711,ViewCollection as _0x1124a1,FocusCycler as _0x241ecb,ButtonView as _0x133d4f}from'ckeditor5/src/ui';import{FocusTracker as _0x57da46,KeystrokeHandler as _0x2e7e90}from'ckeditor5/src/utils';import _0x4ba238 from'../commenteditor/commenteditor';import{getTranslation as _0x546a41}from'../../../utils/common-translations';export default class Xt extends _0x470711{constructor(_0x10e841,_0x4722e8={}){super(_0x10e841),this[_0x1c72('0x24')]=null,this[_0x1c72('0x1a')]=_0x4722e8,this[_0x1c72('0xc')]=new _0x2e7e90(),this[_0x1c72('0x29')]=new _0x57da46(),this[_0x1c72('0x2f')](_0x1c72('0x2e'),_0x4722e8[_0x1c72('0x27')]||''),this['set']('disabledSubmit',!0x1),this[_0x1c72('0x2f')](_0x1c72('0x21'),!0x0),this[_0x1c72('0x2f')](_0x1c72('0x36'),_0x546a41(_0x10e841,'Reply...')),this[_0x1c72('0x2f')](_0x1c72('0x39'),_0x546a41(_0x10e841,_0x1c72('0x7'))),this[_0x1c72('0x1e')]=this[_0x1c72('0x30')](),this[_0x1c72('0x34')]=this['_createCancelButton'](),this[_0x1c72('0x17')]({'tag':'div','attributes':{'class':[_0x1c72('0x28')]},'children':[{'tag':_0x1c72('0x15'),'attributes':{'class':[_0x1c72('0x6'),this[_0x1c72('0x22')]['if'](_0x1c72('0x21'),_0x1c72('0x16'))]},'children':[this['submitButtonView'],this[_0x1c72('0x34')]]}]}),this[_0x1c72('0xc')][_0x1c72('0x2f')](_0x1c72('0x20'),(_0x12d4a4,_0x277460)=>{this[_0x1c72('0x34')][_0x1c72('0x8')]('execute'),_0x277460();}),this['on'](_0x1c72('0x1f'),(_0x242ea5,_0x37b7c4)=>{_0x37b7c4[_0x1c72('0x1')]>0xfde8?(alert(_0x546a41(_0x10e841,'TOO_LONG_COMMENT_ALERT',[_0x37b7c4[_0x1c72('0x1')],0xfde8])),_0x242ea5[_0x1c72('0x5')]()):this['editor'][_0x1c72('0x2a')]('');},{'priority':_0x1c72('0xa')});}[_0x1c72('0x25')](){super[_0x1c72('0x25')](),this[_0x1c72('0xc')][_0x1c72('0x9')](this[_0x1c72('0x14')]),this[_0x1c72('0x29')][_0x1c72('0x11')](this[_0x1c72('0x14')]);}[_0x1c72('0x2')](){return this[_0x1c72('0x24')]||(this[_0x1c72('0x24')]=new _0x4ba238(this['_editorConfig']),this['_editorCreationPromise']=this[_0x1c72('0x24')][_0x1c72('0x37')]()[_0x1c72('0x18')](()=>{if(this['_isDestroyed'])return;const _0x5ec3c5=this[_0x1c72('0x24')];this['element'][_0x1c72('0x0')](_0x5ec3c5['ui']['element'],this[_0x1c72('0x14')][_0x1c72('0x35')]),_0x5ec3c5['model']['document']['on'](_0x1c72('0x1b'),()=>this[_0x1c72('0x2e')]=_0x5ec3c5[_0x1c72('0x38')]()),_0x5ec3c5[_0x1c72('0x4')](_0x1c72('0x36'))['to'](this),this[_0x1c72('0xe')](this[_0x1c72('0x24')]),this['fire'](_0x1c72('0xb'),this['editor']);})),this['_editorCreationPromise'];}[_0x1c72('0xd')](){this[_0x1c72('0x24')]&&this[_0x1c72('0x24')][_0x1c72('0xd')]();}async[_0x1c72('0x26')](){this[_0x1c72('0x31')]||(this[_0x1c72('0x31')]=!0x0,this['editor']&&(await this['_editorCreationPromise'],await this['editor'][_0x1c72('0x26')](),this[_0x1c72('0x8')](_0x1c72('0x12'),this['editor'])),await super[_0x1c72('0x26')]());}[_0x1c72('0x30')](){const {locale:_0x551684}=this,_0x302193=new _0x133d4f(_0x551684);return _0x302193[_0x1c72('0x23')]({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x302193[_0x1c72('0x32')]=!0x0,_0x302193[_0x1c72('0x4')]('label')['to'](this,'submitLabel'),_0x302193['on'](_0x1c72('0x13'),()=>{this[_0x1c72('0x8')]('submit',this['value']);}),_0x302193[_0x1c72('0x4')]('isEnabled')['to'](this,_0x1c72('0x2e'),this,'disabledSubmit',(_0x366fec,_0x23c7c4)=>!_0x23c7c4&&!!_0x366fec[_0x1c72('0x10')]()),_0x302193;}['_createCancelButton'](){const {locale:_0x5becba}=this,_0x8ba88=new _0x133d4f(_0x5becba);return _0x8ba88[_0x1c72('0x23')]({'attributes':{'class':[_0x1c72('0x2d')]}}),_0x8ba88[_0x1c72('0x1c')]=_0x546a41(_0x5becba,_0x1c72('0x19')),_0x8ba88['withText']=!0x0,_0x8ba88['on'](_0x1c72('0x13'),()=>{this[_0x1c72('0x24')][_0x1c72('0x2a')](''),this[_0x1c72('0x8')](_0x1c72('0x3'));}),_0x8ba88;}[_0x1c72('0xe')](_0x410ced){const _0x2cc619=this['focusTracker'],_0x48d82f=new _0x1124a1();[_0x410ced['ui']['view'],this[_0x1c72('0x1e')],this[_0x1c72('0x34')]][_0x1c72('0x33')](_0x34524d=>{_0x48d82f[_0x1c72('0x11')](_0x34524d),_0x2cc619[_0x1c72('0x11')](_0x34524d[_0x1c72('0x14')]);});const _0x33d4d7=new _0x241ecb({'focusables':_0x48d82f,'focusTracker':_0x2cc619});this[_0x1c72('0xc')]['set'](_0x1c72('0x2c'),(_0x3aa7c7,_0x2bbc23)=>{_0x33d4d7['focusNext'](),_0x2bbc23();},{'priority':_0x1c72('0x2b')}),this[_0x1c72('0xc')]['set'](_0x1c72('0xf'),(_0x7104d6,_0x5f4425)=>{_0x33d4d7[_0x1c72('0x1d')](),_0x5f4425();},{'priority':_0x1c72('0x2b')});}}
@@ -1,9 +1,13 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module comments/comments/ui/view/commentslistview
3
7
  */
4
- import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
5
- import { type Locale } from 'ckeditor5/src/utils.js';
6
- import type AnnotationView from '../../../annotations/view/annotationview.js';
8
+ import { View, type ViewCollection } from 'ckeditor5/src/ui';
9
+ import { type Locale } from 'ckeditor5/src/utils';
10
+ import type AnnotationView from '../../../annotations/view/annotationview';
7
11
  /**
8
12
  * A view representing the content of comments archive.
9
13
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x829e=['remove','isEmpty','_focusCycler','bindTemplate','ck-comments-archive__info','set','shift\x20+\x20tab','COMMENTS_ARCHIVE','element','isActive','listenTo','destroy','length','focus','ck-comments-archive','auto','_focusables','_focusTracker','arrowup','_keystrokes','selectstart','setTemplate','stopPropagation','ck-hidden','tab','add','arrowdown','ck-comments-archive__content','div','arrowleft'];(function(_0x1e4e2d,_0x829e5b){const _0x475fc4=function(_0xfa218d){while(--_0xfa218d){_0x1e4e2d['push'](_0x1e4e2d['shift']());}};_0x475fc4(++_0x829e5b);}(_0x829e,0x6b));const _0x475f=function(_0x1e4e2d,_0x829e5b){_0x1e4e2d=_0x1e4e2d-0x0;let _0x475fc4=_0x829e[_0x1e4e2d];return _0x475fc4;};import{View as _0x15a209,FocusCycler as _0x59c058}from'ckeditor5/src/ui.js';import{FocusTracker as _0x3b9bb4,KeystrokeHandler as _0x180b56}from'ckeditor5/src/utils.js';import{getTranslation as _0x19d29c}from'../../../utils/common-translations.js';export default class K extends _0x15a209{constructor(_0x1342e8,_0x59fd67){super(_0x1342e8),this[_0x475f('0x12')]('isEmpty',!_0x59fd67[_0x475f('0x19')]),this[_0x475f('0x0')]=new _0x3b9bb4(),this[_0x475f('0x2')]=new _0x180b56(),this[_0x475f('0x1d')]=_0x59fd67,this[_0x475f('0xf')]=new _0x59c058({'focusables':this[_0x475f('0x1d')],'focusTracker':this[_0x475f('0x0')],'keystrokeHandler':this[_0x475f('0x2')],'actions':{'focusPrevious':_0x475f('0x13'),'focusNext':_0x475f('0x7')}}),this['listenTo'](_0x59fd67,_0x475f('0x8'),()=>{this[_0x475f('0xe')]=!0x1;}),this[_0x475f('0x17')](_0x59fd67,_0x475f('0xd'),(_0x25c5c9,_0x247d48)=>{_0x247d48[_0x475f('0x16')]&&this[_0x475f('0x1a')](),_0x59fd67[_0x475f('0x19')]||(this[_0x475f('0xe')]=!0x0);});const _0x38c592=this[_0x475f('0x10')];this[_0x475f('0x4')]({'tag':_0x475f('0xb'),'attributes':{'dir':_0x475f('0x1c'),'class':['ck',_0x475f('0x1b')],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':['ck-comments-archive__header\x20']},'children':[{'text':_0x19d29c(_0x1342e8,_0x475f('0x14'))}]},{'tag':'div','attributes':{'class':[_0x475f('0xa')]},'children':[{'tag':_0x475f('0xb'),'children':_0x59fd67},{'tag':'p','attributes':{'class':[_0x475f('0x11'),_0x38c592['if'](_0x475f('0xe'),_0x475f('0x6'),_0x214df3=>!_0x214df3)]},'children':[{'text':_0x19d29c(_0x1342e8,'EMPTY_COMMENTS_ARCHIVE')}]}]}]});}['render'](){super['render'](),this[_0x475f('0x2')]['listenTo'](this[_0x475f('0x15')]);const _0x280e4b=_0x133a63=>_0x133a63['stopPropagation']();this[_0x475f('0x2')][_0x475f('0x12')]('arrowright',_0x280e4b),this[_0x475f('0x2')]['set'](_0x475f('0xc'),_0x280e4b),this[_0x475f('0x2')]['set'](_0x475f('0x1'),_0x280e4b),this[_0x475f('0x2')][_0x475f('0x12')](_0x475f('0x9'),_0x280e4b),this[_0x475f('0x17')](this['element'],_0x475f('0x3'),(_0x3e9231,_0x12392a)=>{_0x12392a[_0x475f('0x5')]();},{'priority':'high'});}[_0x475f('0x18')](){super[_0x475f('0x18')](),this[_0x475f('0x0')][_0x475f('0x18')](),this[_0x475f('0x2')]['destroy']();}['focus'](){this[_0x475f('0x15')][_0x475f('0x1a')]();}}
23
+ const _0x2a6a=['high','shift\x20+\x20tab','_focusables','set','add','focus','isEmpty','arrowleft','ck-hidden','stopPropagation','_keystrokes','remove','auto','render','element','EMPTY_COMMENTS_ARCHIVE','listenTo','isActive','arrowup','ck-comments-archive__header\x20','ck-comments-archive__content','div','arrowdown','selectstart','length','destroy','COMMENTS_ARCHIVE','_focusTracker'];(function(_0x407fb3,_0x2a6ad1){const _0x269a3c=function(_0x4aea2d){while(--_0x4aea2d){_0x407fb3['push'](_0x407fb3['shift']());}};_0x269a3c(++_0x2a6ad1);}(_0x2a6a,0x173));const _0x269a=function(_0x407fb3,_0x2a6ad1){_0x407fb3=_0x407fb3-0x0;let _0x269a3c=_0x2a6a[_0x407fb3];return _0x269a3c;};import{View as _0x52b47,FocusCycler as _0x4e35c6}from'ckeditor5/src/ui';import{FocusTracker as _0x7953ad,KeystrokeHandler as _0x4d3375}from'ckeditor5/src/utils';import{getTranslation as _0x39444e}from'../../../utils/common-translations';export default class K extends _0x52b47{constructor(_0x158a80,_0x22daeb){super(_0x158a80),this[_0x269a('0x18')]('isEmpty',!_0x22daeb[_0x269a('0x11')]),this[_0x269a('0x14')]=new _0x7953ad(),this[_0x269a('0x3')]=new _0x4d3375(),this[_0x269a('0x17')]=_0x22daeb,this['_focusCycler']=new _0x4e35c6({'focusables':this['_focusables'],'focusTracker':this[_0x269a('0x14')],'keystrokeHandler':this[_0x269a('0x3')],'actions':{'focusPrevious':_0x269a('0x16'),'focusNext':'tab'}}),this['listenTo'](_0x22daeb,_0x269a('0x19'),()=>{this[_0x269a('0x1b')]=!0x1;}),this[_0x269a('0x9')](_0x22daeb,_0x269a('0x4'),(_0x2da182,_0x14086e)=>{_0x14086e[_0x269a('0xa')]&&this[_0x269a('0x1a')](),_0x22daeb[_0x269a('0x11')]||(this['isEmpty']=!0x0);});const _0x29c18b=this['bindTemplate'];this['setTemplate']({'tag':_0x269a('0xe'),'attributes':{'dir':_0x269a('0x5'),'class':['ck','ck-comments-archive'],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':[_0x269a('0xc')]},'children':[{'text':_0x39444e(_0x158a80,_0x269a('0x13'))}]},{'tag':_0x269a('0xe'),'attributes':{'class':[_0x269a('0xd')]},'children':[{'tag':_0x269a('0xe'),'children':_0x22daeb},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x29c18b['if']('isEmpty',_0x269a('0x1'),_0x3f84a0=>!_0x3f84a0)]},'children':[{'text':_0x39444e(_0x158a80,_0x269a('0x8'))}]}]}]});}[_0x269a('0x6')](){super['render'](),this[_0x269a('0x3')][_0x269a('0x9')](this[_0x269a('0x7')]);const _0x167323=_0x3c5d47=>_0x3c5d47[_0x269a('0x2')]();this[_0x269a('0x3')][_0x269a('0x18')]('arrowright',_0x167323),this['_keystrokes'][_0x269a('0x18')](_0x269a('0x0'),_0x167323),this[_0x269a('0x3')][_0x269a('0x18')](_0x269a('0xb'),_0x167323),this[_0x269a('0x3')][_0x269a('0x18')](_0x269a('0xf'),_0x167323),this[_0x269a('0x9')](this[_0x269a('0x7')],_0x269a('0x10'),(_0x203565,_0x47c1ce)=>{_0x47c1ce[_0x269a('0x2')]();},{'priority':_0x269a('0x15')});}[_0x269a('0x12')](){super[_0x269a('0x12')](),this[_0x269a('0x14')][_0x269a('0x12')](),this[_0x269a('0x3')][_0x269a('0x12')]();}[_0x269a('0x1a')](){this[_0x269a('0x7')]['focus']();}}
@@ -1,11 +1,15 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module comments/comments/ui/view/commentslistview
3
7
  */
4
- import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
5
- import { type Locale } from 'ckeditor5/src/utils.js';
6
- import type { CommentThread } from '../../commentsrepository.js';
7
- import type CommentView from './commentview.js';
8
- import type { CommentThreadConfig } from '../../../config.js';
8
+ import { View, type ViewCollection } from 'ckeditor5/src/ui';
9
+ import { type Locale } from 'ckeditor5/src/utils';
10
+ import type { CommentThread } from '../../commentsrepository';
11
+ import type CommentView from './commentview';
12
+ import type { CommentThreadConfig } from '../../../config';
9
13
  /**
10
14
  * A view representing the list of comments. It should be used as a part of the comment thread view.
11
15
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1050=['from','weight','locale','expand','resolveCommentThread','set','delete','isEditMode','commentUpdated','isActive','commentViews','element','resolvedAt','maxThreadTotalWeight','editorConfig','insert','add','updateComment','render','_collapsedCommentsView','setTemplate','CommentView','remove','comments','_model','formatDateTime','_findOptimalIndex','_calculatePosition','maxCommentCharsWhenCollapsed','change:isEditMode','refreshVisibleViews','listenTo','_updateHasDirtyComment','bind','ck-thread__comments','resolvedCommentView','editorDestroyed','resolvedBy','visibleViews','length','_handleRemoveCommentModel','_handleNewCommentModel','destroy','_rearrangeCollapse','change:isResolved','delegate','hasDirtyComment','authoredAt','count','_config','resolved','createCollection','_handleInfoComment','focus','removeComment','maxCommentsWhenCollapsed','_rearrangeExpand','collapse'];(function(_0x537031,_0x105044){const _0x1f54ab=function(_0xbed12a){while(--_0xbed12a){_0x537031['push'](_0x537031['shift']());}};_0x1f54ab(++_0x105044);}(_0x1050,0x1c2));const _0x1f54=function(_0x537031,_0x105044){_0x537031=_0x537031-0x0;let _0x1f54ab=_0x1050[_0x537031];return _0x1f54ab;};import{View as _0x44b6bc}from'ckeditor5/src/ui.js';import{diff as _0xd6848a,Collection as _0x14eb67}from'ckeditor5/src/utils.js';import{getTranslation as _0x3b16e7}from'../../../utils/common-translations.js';import _0x2a3d54 from'./collapsedcommentsview.js';export default class vt extends _0x44b6bc{constructor(_0x11de42,_0x5765c4,_0x1a8e8e){super(_0x11de42),this['set'](_0x1f54('0x2'),!0x1),this[_0x1f54('0x13')](_0x1f54('0x35'),_0x5765c4[_0x1f54('0x25')][_0x1f54('0x35')]),this[_0x1f54('0x13')]('isActive',!0x1),this['_model']=_0x5765c4,this[_0x1f54('0x5')]=_0x1a8e8e,this[_0x1f54('0x18')]=this['createCollection'](),this[_0x1f54('0x34')]=this[_0x1f54('0x7')](),this[_0x1f54('0x31')]=null,this[_0x1f54('0x21')]=new _0x2a3d54(_0x11de42),this[_0x1f54('0x21')][_0x1f54('0x2f')](_0x1f54('0x4'))['to'](this,_0x1f54('0x35'),_0x283f0c=>_0x283f0c-this[_0x1f54('0x5')][_0x1f54('0xb')]);for(const _0x2eaac2 of _0x5765c4[_0x1f54('0x25')])this[_0x1f54('0x37')](_0x2eaac2);this[_0x1f54('0x8')](),this[_0x1f54('0x2d')](_0x5765c4[_0x1f54('0x25')],_0x1f54('0x1e'),(_0xc442cd,_0x5d076a)=>{const _0x235f39=this[_0x1f54('0x29')](_0x5d076a);this['length']++,this['_handleNewCommentModel'](_0x5d076a,_0x235f39),this[_0x1f54('0x2c')]();}),this[_0x1f54('0x2d')](_0x5765c4[_0x1f54('0x25')],_0x1f54('0x24'),(_0x4949ad,_0x1357b3)=>{this[_0x1f54('0x35')]--,this[_0x1f54('0x36')](_0x1357b3),this[_0x1f54('0x2c')]();}),this['listenTo'](_0x5765c4,_0x1f54('0x16'),()=>this['refreshVisibleViews']()),this['listenTo'](_0x5765c4,_0x1f54('0x0'),()=>this[_0x1f54('0x8')]()),this['on']('change:isActive',()=>this[_0x1f54('0x2c')]()),this['on']('change:hasDirtyComment',()=>this['refreshVisibleViews']()),this[_0x1f54('0x22')]({'tag':'ul','attributes':{'class':[_0x1f54('0x30')]},'children':this[_0x1f54('0x34')]});}get['_shouldCollapse'](){return this[_0x1f54('0x26')][_0x1f54('0xf')]>this[_0x1f54('0x5')][_0x1f54('0x1b')]&&!this[_0x1f54('0x17')]&&!this[_0x1f54('0x2')];}[_0x1f54('0x20')](){super[_0x1f54('0x20')](),this[_0x1f54('0x2c')]();}['focus'](){this[_0x1f54('0x19')][_0x1f54('0x9')]();}[_0x1f54('0x38')](){this[_0x1f54('0x21')][_0x1f54('0x38')]();for(const _0x2e7f72 of this[_0x1f54('0x18')])_0x2e7f72[_0x1f54('0x38')]();super[_0x1f54('0x38')]();}[_0x1f54('0x2c')](){this['_shouldCollapse']?this[_0x1f54('0x39')]():this[_0x1f54('0xc')]();}['_handleNewCommentModel'](_0x4139fb,_0x3f3e14){const _0x442dea=new this['_config'][(_0x1f54('0x23'))](this['locale'],_0x4139fb,{'maxCommentCharsWhenCollapsed':this[_0x1f54('0x5')][_0x1f54('0x2a')],'formatDateTime':this[_0x1f54('0x5')][_0x1f54('0x27')],'editorConfig':this[_0x1f54('0x5')][_0x1f54('0x1c')]});_0x442dea['viewUid']=_0x4139fb['id'],_0x442dea[_0x1f54('0x1')](_0x1f54('0xa'))['to'](this),_0x442dea['delegate'](_0x1f54('0x1f'))['to'](this),_0x442dea[_0x1f54('0x1')](_0x1f54('0x12'))['to'](this),_0x442dea[_0x1f54('0x1')]('editorReady')['to'](this),_0x442dea[_0x1f54('0x1')](_0x1f54('0x32'))['to'](this),this[_0x1f54('0x2d')](_0x442dea,_0x1f54('0x2b'),()=>this[_0x1f54('0x2e')]()),this[_0x1f54('0x18')][_0x1f54('0x1e')](_0x442dea,_0x3f3e14);}[_0x1f54('0x29')](_0x5dbd37){const _0x5e30da=this[_0x1f54('0x26')][_0x1f54('0x28')](_0x5dbd37);return this[_0x1f54('0x31')]?this[_0x1f54('0x31')]['authoredAt']>_0x5dbd37[_0x1f54('0x3')]?_0x5e30da-0x1:_0x5e30da:_0x5e30da-0x1;}[_0x1f54('0x8')](){if(this[_0x1f54('0x26')][_0x1f54('0x33')]&&this[_0x1f54('0x26')][_0x1f54('0x1a')]){const _0x31de3e={'id':_0x1f54('0x6'),'author':this[_0x1f54('0x26')][_0x1f54('0x33')],'authoredAt':this[_0x1f54('0x26')][_0x1f54('0x1a')],'content':_0x3b16e7(this[_0x1f54('0x10')],'Marked\x20as\x20resolved'),'attributes':{}};this[_0x1f54('0x31')]=new this['_config'][(_0x1f54('0x23'))](this[_0x1f54('0x10')],_0x31de3e,{'maxCommentCharsWhenCollapsed':this[_0x1f54('0x5')][_0x1f54('0x2a')],'formatDateTime':this[_0x1f54('0x5')]['formatDateTime'],'editorConfig':this['_config'][_0x1f54('0x1c')],'isSystemComment':!0x0}),this[_0x1f54('0x18')][_0x1f54('0x1e')](this[_0x1f54('0x31')],this[_0x1f54('0x26')]['_findOptimalIndex'](_0x31de3e));}else this[_0x1f54('0x31')]&&(this[_0x1f54('0x18')][_0x1f54('0x24')](this[_0x1f54('0x31')]),this[_0x1f54('0x31')]['destroy'](),this[_0x1f54('0x31')]=null);this[_0x1f54('0x2c')]();}[_0x1f54('0x36')](_0x4e625a){const _0xa6b6b0=this[_0x1f54('0x18')][_0x1f54('0x24')](_0x4e625a['id']);this['stopListening'](_0xa6b6b0),_0xa6b6b0[_0x1f54('0x15')]&&this[_0x1f54('0x2e')](),_0xa6b6b0[_0x1f54('0x38')]();}[_0x1f54('0x2e')](){this['hasDirtyComment']=Array[_0x1f54('0xe')](this[_0x1f54('0x18')])['some'](_0x567966=>_0x567966[_0x1f54('0x15')]);}[_0x1f54('0x39')](){const _0x4462a9=function(_0x1a9010){const _0x19b24d=new _0x14eb67();for(const _0x4d89bc of _0x1a9010)_0x19b24d[_0x1f54('0x1e')](_0x4d89bc);return _0x19b24d;}(this[_0x1f54('0x18')]),_0x47691f=this['_collapsedCommentsView'][_0x1f54('0x4')];for(let _0x3b4511=0x1;_0x3b4511<=_0x47691f;_0x3b4511++)_0x4462a9[_0x1f54('0x24')](0x1);for(const _0x560ee2 of _0x4462a9)_0x560ee2[_0x1f54('0xd')]();_0x47691f>0x0&&_0x4462a9[_0x1f54('0x1e')](this[_0x1f54('0x21')],0x1),ss(_0xd6848a(Array[_0x1f54('0xe')](this[_0x1f54('0x34')]),Array[_0x1f54('0xe')](_0x4462a9)),this['visibleViews'],_0x4462a9);}[_0x1f54('0xc')](){ss(_0xd6848a(Array[_0x1f54('0xe')](this[_0x1f54('0x34')]),Array['from'](this[_0x1f54('0x18')])),this[_0x1f54('0x34')],this[_0x1f54('0x18')]);for(const _0x46d44a of this[_0x1f54('0x34')])_0x46d44a[_0x1f54('0x11')]();}}function ss(_0x1ca2a9,_0x3d42c1,_0x599b90){let _0x56eaa8=0x0;for(const _0x4885cc of _0x1ca2a9)switch(_0x4885cc){case _0x1f54('0x1d'):_0x3d42c1[_0x1f54('0x1e')](_0x599b90['get'](_0x56eaa8),_0x56eaa8),_0x56eaa8++;break;case _0x1f54('0x14'):_0x3d42c1[_0x1f54('0x24')](_0x56eaa8);break;case'equal':_0x56eaa8++;}}
23
+ const _0xa192=['length','visibleViews','resolvedBy','maxCommentCharsWhenCollapsed','commentViews','change:isEditMode','_handleNewCommentModel','isActive','updateComment','change:isResolved','_findOptimalIndex','from','focus','setTemplate','resolvedAt','_collapsedCommentsView','collapse','Marked\x20as\x20resolved','equal','destroy','ck-thread__comments','_calculatePosition','createCollection','refreshVisibleViews','maxThreadTotalWeight','add','_handleInfoComment','_updateHasDirtyComment','element','hasDirtyComment','_handleRemoveCommentModel','count','_model','locale','some','remove','expand','weight','listenTo','comments','authoredAt','editorReady','_config','editorConfig','formatDateTime','delete','resolvedCommentView','_rearrangeCollapse','_shouldCollapse','_rearrangeExpand','delegate','editorDestroyed','bind','CommentView','stopListening','get','set','isEditMode'];(function(_0x5c3fe1,_0xa1923c){const _0x2e0d3c=function(_0x45922d){while(--_0x45922d){_0x5c3fe1['push'](_0x5c3fe1['shift']());}};_0x2e0d3c(++_0xa1923c);}(_0xa192,0x1e7));const _0x2e0d=function(_0x5c3fe1,_0xa1923c){_0x5c3fe1=_0x5c3fe1-0x0;let _0x2e0d3c=_0xa192[_0x5c3fe1];return _0x2e0d3c;};import{View as _0x5c5e36}from'ckeditor5/src/ui';import{diff as _0x4141e9,Collection as _0x5c43ae}from'ckeditor5/src/utils';import{getTranslation as _0x5054b5}from'../../../utils/common-translations';import _0xe4c0a9 from'./collapsedcommentsview';export default class wt extends _0x5c5e36{constructor(_0x56966c,_0x46722d,_0x45d7d0){super(_0x56966c),this['set']('hasDirtyComment',!0x1),this['set']('length',_0x46722d[_0x2e0d('0x10')]['length']),this[_0x2e0d('0x21')](_0x2e0d('0x2a'),!0x1),this['_model']=_0x46722d,this[_0x2e0d('0x13')]=_0x45d7d0,this[_0x2e0d('0x27')]=this[_0x2e0d('0x39')](),this[_0x2e0d('0x24')]=this[_0x2e0d('0x39')](),this[_0x2e0d('0x17')]=null,this[_0x2e0d('0x32')]=new _0xe4c0a9(_0x56966c),this[_0x2e0d('0x32')][_0x2e0d('0x1d')](_0x2e0d('0x8'))['to'](this,_0x2e0d('0x23'),_0x17c8fe=>_0x17c8fe-this['_config']['maxCommentsWhenCollapsed']);for(const _0x2658da of _0x46722d[_0x2e0d('0x10')])this[_0x2e0d('0x29')](_0x2658da);this['_handleInfoComment'](),this['listenTo'](_0x46722d[_0x2e0d('0x10')],_0x2e0d('0x2'),(_0xf4ecb9,_0x2d33b4)=>{const _0x41b754=this[_0x2e0d('0x38')](_0x2d33b4);this['length']++,this[_0x2e0d('0x29')](_0x2d33b4,_0x41b754),this['refreshVisibleViews']();}),this[_0x2e0d('0xf')](_0x46722d[_0x2e0d('0x10')],_0x2e0d('0xc'),(_0x3b72ec,_0x45fed9)=>{this[_0x2e0d('0x23')]--,this[_0x2e0d('0x7')](_0x45fed9),this['refreshVisibleViews']();}),this[_0x2e0d('0xf')](_0x46722d,'commentUpdated',()=>this[_0x2e0d('0x0')]()),this[_0x2e0d('0xf')](_0x46722d,_0x2e0d('0x2c'),()=>this[_0x2e0d('0x3')]()),this['on']('change:isActive',()=>this[_0x2e0d('0x0')]()),this['on']('change:hasDirtyComment',()=>this['refreshVisibleViews']()),this[_0x2e0d('0x30')]({'tag':'ul','attributes':{'class':[_0x2e0d('0x37')]},'children':this[_0x2e0d('0x24')]});}get[_0x2e0d('0x19')](){return this['_model'][_0x2e0d('0xe')]>this[_0x2e0d('0x13')][_0x2e0d('0x1')]&&!this[_0x2e0d('0x2a')]&&!this['hasDirtyComment'];}['render'](){super['render'](),this[_0x2e0d('0x0')]();}[_0x2e0d('0x2f')](){this[_0x2e0d('0x5')][_0x2e0d('0x2f')]();}[_0x2e0d('0x36')](){this[_0x2e0d('0x32')][_0x2e0d('0x36')]();for(const _0x66935f of this[_0x2e0d('0x27')])_0x66935f[_0x2e0d('0x36')]();super[_0x2e0d('0x36')]();}['refreshVisibleViews'](){this[_0x2e0d('0x19')]?this['_rearrangeCollapse']():this[_0x2e0d('0x1a')]();}['_handleNewCommentModel'](_0x25d86a,_0x3c65f7){const _0x14f6e5=new this[(_0x2e0d('0x13'))][(_0x2e0d('0x1e'))](this['locale'],_0x25d86a,{'maxCommentCharsWhenCollapsed':this[_0x2e0d('0x13')][_0x2e0d('0x26')],'formatDateTime':this[_0x2e0d('0x13')][_0x2e0d('0x15')],'editorConfig':this['_config'][_0x2e0d('0x14')]});_0x14f6e5['viewUid']=_0x25d86a['id'],_0x14f6e5[_0x2e0d('0x1b')]('removeComment')['to'](this),_0x14f6e5[_0x2e0d('0x1b')](_0x2e0d('0x2b'))['to'](this),_0x14f6e5['delegate']('resolveCommentThread')['to'](this),_0x14f6e5['delegate'](_0x2e0d('0x12'))['to'](this),_0x14f6e5[_0x2e0d('0x1b')](_0x2e0d('0x1c'))['to'](this),this['listenTo'](_0x14f6e5,_0x2e0d('0x28'),()=>this[_0x2e0d('0x4')]()),this[_0x2e0d('0x27')][_0x2e0d('0x2')](_0x14f6e5,_0x3c65f7);}[_0x2e0d('0x38')](_0x3024d0){const _0x336084=this[_0x2e0d('0x9')][_0x2e0d('0x2d')](_0x3024d0);return this[_0x2e0d('0x17')]?this['resolvedCommentView'][_0x2e0d('0x11')]>_0x3024d0[_0x2e0d('0x11')]?_0x336084-0x1:_0x336084:_0x336084-0x1;}[_0x2e0d('0x3')](){if(this[_0x2e0d('0x9')][_0x2e0d('0x25')]&&this[_0x2e0d('0x9')][_0x2e0d('0x31')]){const _0xab3f2c={'id':'resolved','author':this['_model'][_0x2e0d('0x25')],'authoredAt':this[_0x2e0d('0x9')]['resolvedAt'],'content':_0x5054b5(this[_0x2e0d('0xa')],_0x2e0d('0x34')),'attributes':{}};this[_0x2e0d('0x17')]=new this['_config'][(_0x2e0d('0x1e'))](this[_0x2e0d('0xa')],_0xab3f2c,{'maxCommentCharsWhenCollapsed':this[_0x2e0d('0x13')][_0x2e0d('0x26')],'formatDateTime':this[_0x2e0d('0x13')][_0x2e0d('0x15')],'editorConfig':this['_config'][_0x2e0d('0x14')],'isSystemComment':!0x0}),this[_0x2e0d('0x27')]['add'](this[_0x2e0d('0x17')],this[_0x2e0d('0x9')][_0x2e0d('0x2d')](_0xab3f2c));}else this[_0x2e0d('0x17')]&&(this['commentViews']['remove'](this[_0x2e0d('0x17')]),this[_0x2e0d('0x17')][_0x2e0d('0x36')](),this[_0x2e0d('0x17')]=null);this[_0x2e0d('0x0')]();}['_handleRemoveCommentModel'](_0x20fa11){const _0x4c962f=this[_0x2e0d('0x27')][_0x2e0d('0xc')](_0x20fa11['id']);this[_0x2e0d('0x1f')](_0x4c962f),_0x4c962f[_0x2e0d('0x22')]&&this[_0x2e0d('0x4')](),_0x4c962f[_0x2e0d('0x36')]();}[_0x2e0d('0x4')](){this[_0x2e0d('0x6')]=Array['from'](this[_0x2e0d('0x27')])[_0x2e0d('0xb')](_0x263845=>_0x263845[_0x2e0d('0x22')]);}[_0x2e0d('0x18')](){const _0x492490=function(_0x20ba76){const _0x2628a3=new _0x5c43ae();for(const _0x35ab37 of _0x20ba76)_0x2628a3[_0x2e0d('0x2')](_0x35ab37);return _0x2628a3;}(this[_0x2e0d('0x27')]),_0x3ea828=this['_collapsedCommentsView']['count'];for(let _0x19e358=0x1;_0x19e358<=_0x3ea828;_0x19e358++)_0x492490['remove'](0x1);for(const _0x28402c of _0x492490)_0x28402c[_0x2e0d('0x33')]();_0x3ea828>0x0&&_0x492490[_0x2e0d('0x2')](this[_0x2e0d('0x32')],0x1),ss(_0x4141e9(Array[_0x2e0d('0x2e')](this['visibleViews']),Array[_0x2e0d('0x2e')](_0x492490)),this[_0x2e0d('0x24')],_0x492490);}[_0x2e0d('0x1a')](){ss(_0x4141e9(Array[_0x2e0d('0x2e')](this[_0x2e0d('0x24')]),Array[_0x2e0d('0x2e')](this['commentViews'])),this[_0x2e0d('0x24')],this[_0x2e0d('0x27')]);for(const _0x3879e0 of this[_0x2e0d('0x24')])_0x3879e0[_0x2e0d('0xd')]();}}function ss(_0x21bc31,_0xe3a488,_0x4e648a){let _0x2bf598=0x0;for(const _0x1f13dd of _0x21bc31)switch(_0x1f13dd){case'insert':_0xe3a488['add'](_0x4e648a[_0x2e0d('0x20')](_0x2bf598),_0x2bf598),_0x2bf598++;break;case _0x2e0d('0x16'):_0xe3a488[_0x2e0d('0xc')](_0x2bf598);break;case _0x2e0d('0x35'):_0x2bf598++;}}
@@ -1,9 +1,13 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module comments/comments/ui/view/commentthreadheaderview
3
7
  */
4
- import { View, ButtonView } from 'ckeditor5/src/ui.js';
5
- import type { Locale } from 'ckeditor5/src/utils.js';
6
- import type { CommentThread } from '../../commentsrepository.js';
8
+ import { View, ButtonView } from 'ckeditor5/src/ui';
9
+ import type { Locale } from 'ckeditor5/src/utils';
10
+ import type { CommentThread } from '../../commentsrepository';
7
11
  export declare const MAX_CONTENT_LENGTH = 150;
8
12
  /**
9
13
  * A view for the comment thread header.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5082=['classList','icon','ck-annotation__actions','reopenCommentThread','listenTo','bind','lastIndexOf','querySelector','render','tooltip','mouseleave','substring','div','length','_trimContextValue','ck-context','reopenButtonView','ck-context-wrapper','overlay','fire','remove','context','span','locale','_createReopenButton','isReadOnly','ck-context--quotes','bindTemplate','value','.ck-context__value','...','hasContext','contextValue','_attachContextActions','.ck-context','label','_model','ck-context__value','Reopen'];(function(_0x20d351,_0x508277){const _0x16be7d=function(_0x41fbe0){while(--_0x41fbe0){_0x20d351['push'](_0x20d351['shift']());}};_0x16be7d(++_0x508277);}(_0x5082,0xed));const _0x16be=function(_0x20d351,_0x508277){_0x20d351=_0x20d351-0x0;let _0x16be7d=_0x5082[_0x20d351];return _0x16be7d;};import{View as _0x2364ef,ButtonView as _0x59fa77}from'ckeditor5/src/ui.js';import{getTranslation as _0x36b754}from'../../../utils/common-translations.js';import _0x4b2b34 from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Rt extends _0x2364ef{constructor(_0x314303,_0xd3df4d){super(_0x314303);const _0x35bdb8=this[_0x16be('0x18')];this[_0x16be('0x21')]=_0xd3df4d,this[_0x16be('0xd')]=this[_0x16be('0x15')](),this[_0x16be('0x2')](_0x16be('0x1c'))['to'](this['_model'],_0x16be('0x12'),_0x2f9b44=>!!_0x2f9b44),this[_0x16be('0x2')](_0x16be('0x1d'))['to'](this[_0x16be('0x21')],_0x16be('0x12'),_0x139c59=>_0x139c59&&_0x139c59[_0x16be('0x19')]?this[_0x16be('0xb')](_0x139c59[_0x16be('0x19')]):_0x36b754(this[_0x16be('0x14')],'Comment\x20was\x20made\x20on\x20an\x20element')),this['setTemplate']({'tag':_0x16be('0x9'),'attributes':{'class':['ck-thread__header']},'children':[{'tag':_0x16be('0x9'),'attributes':{'class':[_0x16be('0xe')]},'children':[{'tag':_0x16be('0x9'),'attributes':{'class':[_0x16be('0xc'),_0x35bdb8['if'](_0x16be('0x1c'),_0x16be('0x17'))]},'children':[{'tag':_0x16be('0x13'),'attributes':{'class':[_0x16be('0x22')]},'children':[{'text':_0x35bdb8['to']('contextValue')}]}]}]},{'tag':_0x16be('0x9'),'attributes':{'class':[_0x16be('0x26')]},'children':[this[_0x16be('0xd')]]}]});}[_0x16be('0x5')](){super[_0x16be('0x5')](),this[_0x16be('0x1e')]();}[_0x16be('0x15')](){const _0x30af88=new _0x59fa77(this[_0x16be('0x14')]);return _0x30af88[_0x16be('0x20')]=_0x36b754(this[_0x16be('0x14')],_0x16be('0x23')),_0x30af88[_0x16be('0x6')]=_0x36b754(this[_0x16be('0x14')],_0x16be('0x23')),_0x30af88[_0x16be('0x25')]=_0x4b2b34,_0x30af88['bind']('isEnabled')['to'](this[_0x16be('0x21')],_0x16be('0x16'),_0x56a1a9=>!_0x56a1a9),_0x30af88[_0x16be('0x2')]('isVisible')['to'](this[_0x16be('0x21')],'isResolvable'),_0x30af88['on']('execute',()=>{this[_0x16be('0x10')](_0x16be('0x0'),this[_0x16be('0x21')]['id']);}),_0x30af88;}['_trimContextValue'](_0x105748){if(_0x105748[_0x16be('0xa')]<0x96)return _0x105748;const _0x11a864=_0x105748[_0x16be('0x3')]('\x20',0x93);return _0x105748[_0x16be('0x8')](0x0,_0x11a864>-0x1?_0x11a864:0x93)+_0x16be('0x1b');}[_0x16be('0x1e')](){const _0x3b7d99=this['element'][_0x16be('0x4')](_0x16be('0x1f')),_0x47b09d=_0x3b7d99[_0x16be('0x4')](_0x16be('0x1a'));this['listenTo'](_0x3b7d99,'mouseenter',()=>{_0x47b09d['offsetWidth']<_0x47b09d['scrollWidth']&&_0x3b7d99[_0x16be('0x24')]['add'](_0x16be('0xf'));}),this[_0x16be('0x1')](_0x3b7d99,_0x16be('0x7'),()=>{_0x3b7d99[_0x16be('0x24')][_0x16be('0x11')](_0x16be('0xf'));});}}
23
+ const _0x2256=['ck-context--quotes','.ck-context','...','execute','offsetWidth','_attachContextActions','.ck-context__value','add','hasContext','remove','ck-context-wrapper','setTemplate','ck-context','span','scrollWidth','div','mouseleave','mouseenter','overlay','_model','_createReopenButton','substring','render','Reopen','locale','label','querySelector','contextValue','bind','context','icon','ck-annotation__actions','bindTemplate','classList','tooltip','isReadOnly','ck-context__value','value','reopenButtonView','_trimContextValue'];(function(_0x4dc6f5,_0x225684){const _0x4faac5=function(_0x2bd056){while(--_0x2bd056){_0x4dc6f5['push'](_0x4dc6f5['shift']());}};_0x4faac5(++_0x225684);}(_0x2256,0x1ab));const _0x4faa=function(_0x4dc6f5,_0x225684){_0x4dc6f5=_0x4dc6f5-0x0;let _0x4faac5=_0x2256[_0x4dc6f5];return _0x4faac5;};import{View as _0x5bfb09,ButtonView as _0x2020bb}from'ckeditor5/src/ui';import{getTranslation as _0x4ecb1d}from'../../../utils/common-translations';import _0x288207 from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Rt extends _0x5bfb09{constructor(_0x33e83c,_0x3b57e2){super(_0x33e83c);const _0x19f06e=this[_0x4faa('0x5')];this[_0x4faa('0x20')]=_0x3b57e2,this['reopenButtonView']=this[_0x4faa('0x21')](),this[_0x4faa('0x1')]('hasContext')['to'](this[_0x4faa('0x20')],_0x4faa('0x2'),_0x4f61e7=>!!_0x4f61e7),this['bind'](_0x4faa('0x0'))['to'](this[_0x4faa('0x20')],_0x4faa('0x2'),_0x34dd38=>_0x34dd38&&_0x34dd38[_0x4faa('0xa')]?this['_trimContextValue'](_0x34dd38[_0x4faa('0xa')]):_0x4ecb1d(this[_0x4faa('0x25')],'Comment\x20was\x20made\x20on\x20an\x20element')),this[_0x4faa('0x18')]({'tag':_0x4faa('0x1c'),'attributes':{'class':['ck-thread__header']},'children':[{'tag':'div','attributes':{'class':[_0x4faa('0x17')]},'children':[{'tag':_0x4faa('0x1c'),'attributes':{'class':[_0x4faa('0x19'),_0x19f06e['if'](_0x4faa('0x15'),_0x4faa('0xd'))]},'children':[{'tag':_0x4faa('0x1a'),'attributes':{'class':[_0x4faa('0x9')]},'children':[{'text':_0x19f06e['to'](_0x4faa('0x0'))}]}]}]},{'tag':_0x4faa('0x1c'),'attributes':{'class':[_0x4faa('0x4')]},'children':[this[_0x4faa('0xb')]]}]});}[_0x4faa('0x23')](){super[_0x4faa('0x23')](),this[_0x4faa('0x12')]();}[_0x4faa('0x21')](){const _0x30402d=new _0x2020bb(this['locale']);return _0x30402d[_0x4faa('0x26')]=_0x4ecb1d(this[_0x4faa('0x25')],_0x4faa('0x24')),_0x30402d[_0x4faa('0x7')]=_0x4ecb1d(this['locale'],_0x4faa('0x24')),_0x30402d[_0x4faa('0x3')]=_0x288207,_0x30402d['bind']('isEnabled')['to'](this[_0x4faa('0x20')],_0x4faa('0x8'),_0x58792e=>!_0x58792e),_0x30402d[_0x4faa('0x1')]('isVisible')['to'](this[_0x4faa('0x20')],'isResolvable'),_0x30402d['on'](_0x4faa('0x10'),()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x30402d;}[_0x4faa('0xc')](_0x42f185){if(_0x42f185['length']<0x96)return _0x42f185;const _0x53aacb=_0x42f185['lastIndexOf']('\x20',0x93);return _0x42f185[_0x4faa('0x22')](0x0,_0x53aacb>-0x1?_0x53aacb:0x93)+_0x4faa('0xf');}['_attachContextActions'](){const _0x44d27d=this['element'][_0x4faa('0x27')](_0x4faa('0xe')),_0xe44d34=_0x44d27d[_0x4faa('0x27')](_0x4faa('0x13'));this['listenTo'](_0x44d27d,_0x4faa('0x1e'),()=>{_0xe44d34[_0x4faa('0x11')]<_0xe44d34[_0x4faa('0x1b')]&&_0x44d27d[_0x4faa('0x6')][_0x4faa('0x14')](_0x4faa('0x1f'));}),this['listenTo'](_0x44d27d,_0x4faa('0x1d'),()=>{_0x44d27d[_0x4faa('0x6')][_0x4faa('0x16')](_0x4faa('0x1f'));});}}
@@ -1,11 +1,15 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module comments/comments/ui/view/commentthreadinputview
3
7
  */
4
- import { View } from 'ckeditor5/src/ui.js';
5
- import CommentInputView from './commentinputview.js';
6
- import type { Locale } from 'ckeditor5/src/utils.js';
7
- import type { EditorConfig } from 'ckeditor5/src/core.js';
8
- import { UserView, type User } from 'ckeditor5-collaboration';
8
+ import { View } from 'ckeditor5/src/ui';
9
+ import CommentInputView from './commentinputview';
10
+ import type { Locale } from 'ckeditor5/src/utils';
11
+ import type { EditorConfig } from 'ckeditor5/src/core';
12
+ import { UserView, type User } from 'ckeditor5-collaboration/src/collaboration-core';
9
13
  /**
10
14
  * View that represents comment input area for a comment thread. Includes editor, user view and buttons.
11
15
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x214b=['ck-comment__input-container','destroy','commentInputView','delegate','isFocused','editorReady','set','showInput','userView','ck-thread__input','then','setTemplate','bindTemplate','value','ck-thread__user','ck-comment__input-container--active','showButtons','extendTemplate','createEditor','focusTracker','bind'];(function(_0x54bd99,_0x214b9c){var _0x3d9d63=function(_0x530353){while(--_0x530353){_0x54bd99['push'](_0x54bd99['shift']());}};_0x3d9d63(++_0x214b9c);}(_0x214b,0x1c8));var _0x3d9d=function(_0x54bd99,_0x214b9c){_0x54bd99=_0x54bd99-0x0;var _0x3d9d63=_0x214b[_0x54bd99];return _0x3d9d63;};import{View as _0x324c2c}from'ckeditor5/src/ui.js';import _0x237cf5 from'./commentinputview.js';import{UserView as _0x552bf1}from'ckeditor5-collaboration';export default class wt extends _0x324c2c{constructor(_0x7f9254,_0x54457b,_0xa77a9f){super(_0x7f9254),this[_0x3d9d('0x8')]=new _0x237cf5(_0x7f9254,_0xa77a9f),this[_0x3d9d('0x8')][_0x3d9d('0x5')](_0x3d9d('0x1'))['to'](this[_0x3d9d('0x8')][_0x3d9d('0x4')],_0x3d9d('0xa'),this['commentInputView'],_0x3d9d('0x13'),(_0x5e6250,_0x11f928)=>_0x5e6250||!!_0x11f928),this[_0x3d9d('0xc')](_0x3d9d('0xd'),!0x1),this['on']('change:showInput',()=>{this['showInput']&&!this[_0x3d9d('0x8')]['editor']&&this[_0x3d9d('0x8')][_0x3d9d('0x3')]();}),this[_0x3d9d('0x8')][_0x3d9d('0x9')](_0x3d9d('0xb'))['to'](this),this[_0x3d9d('0x8')][_0x3d9d('0x9')]('editorDestroyed')['to'](this),this[_0x3d9d('0xe')]=new _0x552bf1(_0x7f9254,_0x54457b),this[_0x3d9d('0xe')][_0x3d9d('0x2')]({'attributes':{'class':_0x3d9d('0x14')}}),this[_0x3d9d('0x8')][_0x3d9d('0x2')]({'attributes':{'class':_0x3d9d('0xf')}}),this[_0x3d9d('0x11')]({'tag':'div','attributes':{'class':[_0x3d9d('0x6'),this[_0x3d9d('0x12')]['if'](_0x3d9d('0xd'),_0x3d9d('0x0'))]},'children':[this[_0x3d9d('0xe')],this[_0x3d9d('0x8')]]});}[_0x3d9d('0x7')](){return this[_0x3d9d('0x8')][_0x3d9d('0x7')]()[_0x3d9d('0x10')](()=>super['destroy']());}}
23
+ var _0x274a=['commentInputView','ck-thread__user','bindTemplate','userView','editor','editorDestroyed','change:showInput','setTemplate','isFocused','set','value','editorReady','destroy','bind','extendTemplate','then','ck-comment__input-container--active','showInput','showButtons','div'];(function(_0x43ad63,_0x274a98){var _0x2aed1f=function(_0x1c21d8){while(--_0x1c21d8){_0x43ad63['push'](_0x43ad63['shift']());}};_0x2aed1f(++_0x274a98);}(_0x274a,0x180));var _0x2aed=function(_0x43ad63,_0x274a98){_0x43ad63=_0x43ad63-0x0;var _0x2aed1f=_0x274a[_0x43ad63];return _0x2aed1f;};import{View as _0x247b85}from'ckeditor5/src/ui';import _0x573971 from'./commentinputview';import{UserView as _0x52ae5a}from'ckeditor5-collaboration/src/collaboration-core';export default class Ct extends _0x247b85{constructor(_0x152c1f,_0xf170f8,_0xb43f69){super(_0x152c1f),this[_0x2aed('0x10')]=new _0x573971(_0x152c1f,_0xb43f69),this['commentInputView'][_0x2aed('0x9')](_0x2aed('0xe'))['to'](this[_0x2aed('0x10')]['focusTracker'],_0x2aed('0x4'),this[_0x2aed('0x10')],_0x2aed('0x6'),(_0x4801a9,_0x96b8fb)=>_0x4801a9||!!_0x96b8fb),this[_0x2aed('0x5')](_0x2aed('0xd'),!0x1),this['on'](_0x2aed('0x2'),()=>{this[_0x2aed('0xd')]&&!this[_0x2aed('0x10')][_0x2aed('0x0')]&&this[_0x2aed('0x10')]['createEditor']();}),this['commentInputView']['delegate'](_0x2aed('0x7'))['to'](this),this['commentInputView']['delegate'](_0x2aed('0x1'))['to'](this),this[_0x2aed('0x13')]=new _0x52ae5a(_0x152c1f,_0xf170f8),this[_0x2aed('0x13')][_0x2aed('0xa')]({'attributes':{'class':_0x2aed('0x11')}}),this['commentInputView']['extendTemplate']({'attributes':{'class':'ck-thread__input'}}),this[_0x2aed('0x3')]({'tag':_0x2aed('0xf'),'attributes':{'class':['ck-comment__input-container',this[_0x2aed('0x12')]['if'](_0x2aed('0xd'),_0x2aed('0xc'))]},'children':[this['userView'],this[_0x2aed('0x10')]]});}['destroy'](){return this['commentInputView']['destroy']()[_0x2aed('0xb')](()=>super[_0x2aed('0x8')]());}}
@@ -1,14 +1,18 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module comments/comments/ui/view/commentthreadview
3
7
  * @publicApi
4
8
  */
5
- import { type Locale } from 'ckeditor5/src/utils.js';
6
- import { type User } from 'ckeditor5-collaboration';
7
- import { ButtonView, type TemplateDefinition, type ViewCollection } from 'ckeditor5/src/ui.js';
8
- import BaseCommentThreadView from './basecommentthreadview.js';
9
- import type { CommentThread } from '../../commentsrepository.js';
10
- import type { CommentThreadConfig } from '../../../config.js';
11
- declare const CommentThreadView_base: import("ckeditor5/src/utils.js").Mixed<typeof BaseCommentThreadView, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin.js").ConfirmApi>;
9
+ import { type Locale } from 'ckeditor5/src/utils';
10
+ import { type User } from 'ckeditor5-collaboration/src/collaboration-core';
11
+ import { ButtonView, type TemplateDefinition, type ViewCollection } from 'ckeditor5/src/ui';
12
+ import BaseCommentThreadView from './basecommentthreadview';
13
+ import type { CommentThread } from '../../commentsrepository';
14
+ import type { CommentThreadConfig } from '../../../config';
15
+ declare const CommentThreadView_base: import("ckeditor5/src/utils").Mixed<typeof BaseCommentThreadView, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin").ConfirmApi>;
12
16
  /**
13
17
  * The default view for comment thread.
14
18
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1001=['isEnabled','showConfirm','getTemplate','setTemplate','commentViews','containerElement','commentsListView','bind','createCollection','remove','isActive','icon','ck-thread--remove-confirmation','ck-thread--','change:isReadOnly','isReadOnly','actionIndicator','_boundFirstCommentView','resolveButton','isResolvable','set','tooltip','commentThreadChildren','check','change:isResolved','listenTo','_createResolveButton','querySelector','add','commentThreadInputView','ck-comment--resolve','render','isSystemComment','Delete\x20comment\x20thread?','locale','execute','_bindFirstCommentView','get','bindTemplate','div','ck-reset_all-excluded','Resolve','_model','actionBar','ck-thread--active','addMany','cancelConfirm','commentThreadHeaderView','length','stop','_cancelAllConfirms','isResolved','removeButton','change:isActive','extendTemplate'];(function(_0x196cd3,_0x1001a9){const _0x1ceeba=function(_0x52a0f2){while(--_0x52a0f2){_0x196cd3['push'](_0x196cd3['shift']());}};_0x1ceeba(++_0x1001a9);}(_0x1001,0xce));const _0x1cee=function(_0x196cd3,_0x1001a9){_0x196cd3=_0x196cd3-0x0;let _0x1ceeba=_0x1001[_0x196cd3];return _0x1ceeba;};import{ConfirmMixin as _0x300966}from'ckeditor5-collaboration';import{ButtonView as _0x318935}from'ckeditor5/src/ui.js';import{icons as _0x3f9481}from'ckeditor5/src/core.js';import _0x5bd235 from'./basecommentthreadview.js';import{getTranslation as _0x3aaf3b}from'../../../utils/common-translations.js';export default class lt extends _0x300966(_0x5bd235){constructor(_0x22bf68,_0x9e1b52,_0xaa2923,_0x2a3eb1){super(_0x22bf68,_0x9e1b52,_0xaa2923,_0x2a3eb1),this['commentThreadChildren']=this[_0x1cee('0x16')](),this[_0x1cee('0x24')][_0x1cee('0x4')]([this[_0x1cee('0x14')],this[_0x1cee('0x2b')]]),this['_model'][_0x1cee('0xa')]&&this['commentThreadChildren'][_0x1cee('0x2a')](this['commentThreadHeaderView'],0x0),this[_0x1cee('0x1')]['on'](_0x1cee('0x26'),(_0x437204,_0x2ea199,_0x4a746c)=>{_0x4a746c?this[_0x1cee('0x24')]['add'](this[_0x1cee('0x6')],0x0):this[_0x1cee('0x24')]['remove'](this[_0x1cee('0x6')]);}),this[_0x1cee('0x22')]('actionIndicator',null),this['containerElement']=null,this[_0x1cee('0x1f')]=null,this[_0x1cee('0x30')]=_0x22bf68,this['resolveButton']=this[_0x1cee('0x28')](),this[_0x1cee('0x11')](this['getTemplate']()),this['on'](_0x1cee('0xc'),(_0x4208c4,_0x1ee72a,_0x31a214)=>{_0x31a214||this[_0x1cee('0x9')]();}),this[_0x1cee('0x27')](this['_model'],_0x1cee('0x1c'),(_0x31aca5,_0x2a312f,_0x5bd1e6)=>{_0x5bd1e6&&this['_cancelAllConfirms']();}),this[_0x1cee('0x7')]>0x0&&this['_bindFirstCommentView'](),this[_0x1cee('0x27')](this[_0x1cee('0x14')][_0x1cee('0x12')],_0x1cee('0x2a'),()=>{this['_bindFirstCommentView']();});}[_0x1cee('0x10')](){const _0x4e66f9=this[_0x1cee('0x34')];return{'tag':_0x1cee('0x35'),'attributes':{'class':['ck-thread',_0x1cee('0x36'),_0x4e66f9['if'](_0x1cee('0x18'),_0x1cee('0x3')),_0x4e66f9['if']('isConfirm',_0x1cee('0x1a')),_0x4e66f9['to']('actionIndicator',_0x59fe82=>_0x59fe82?_0x1cee('0x1b')+_0x59fe82:'')],'data-thread-id':this[_0x1cee('0x1')]['id'],'tabindex':-0x1},'children':[{'tag':_0x1cee('0x35'),'attributes':{'class':'ck-thread__container'},'children':this[_0x1cee('0x24')]}]};}[_0x1cee('0x2d')](){super[_0x1cee('0x2d')](),this['containerElement']=this['element'][_0x1cee('0x29')]('.ck-thread__container');}[_0x1cee('0x9')](){this[_0x1cee('0x5')]();for(const _0x49fd89 of this[_0x1cee('0x14')][_0x1cee('0x12')])_0x49fd89['cancelConfirm']();}[_0x1cee('0x32')](){const {locale:_0x4ef5af}=this,_0x579fff=this['commentsListView']['commentViews'][_0x1cee('0x33')](0x0);_0x579fff===this[_0x1cee('0x1f')]||_0x579fff[_0x1cee('0x2e')]||(this[_0x1cee('0x1f')]=_0x579fff,this['unbind'](_0x1cee('0x1e')),this[_0x1cee('0x15')](_0x1cee('0x1e'))['to'](_0x579fff,_0x1cee('0x1e'),_0x1f9842=>_0x1cee('0x17')===_0x1f9842?'remove':null),_0x579fff['placeholder']=_0x3aaf3b(_0x4ef5af,'Write\x20a\x20comment...'),_0x579fff[_0x1cee('0xb')]['on'](_0x1cee('0x31'),_0xfc897f=>{_0xfc897f[_0x1cee('0x8')](),this[_0x1cee('0xf')](_0x3aaf3b(_0x4ef5af,_0x1cee('0x2f')),this[_0x1cee('0x13')])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),_0x579fff[_0x1cee('0x2')]['add'](this[_0x1cee('0x20')],0x0));}[_0x1cee('0x28')](){const _0x508793=new _0x318935(this[_0x1cee('0x30')]);return _0x508793['label']=_0x3aaf3b(this[_0x1cee('0x30')],_0x1cee('0x0')),_0x508793[_0x1cee('0x23')]=_0x3aaf3b(this['locale'],'Resolve'),_0x508793[_0x1cee('0x19')]=_0x3f9481[_0x1cee('0x25')],_0x508793[_0x1cee('0xd')]({'attributes':{'class':_0x1cee('0x2c')}}),_0x508793[_0x1cee('0x15')](_0x1cee('0xe'))['to'](this[_0x1cee('0x1')],_0x1cee('0x1d'),_0x386624=>!_0x386624),_0x508793[_0x1cee('0x15')]('isVisible')['to'](this['_model'],_0x1cee('0x21'),this[_0x1cee('0x1')],_0x1cee('0xa'),(_0x120f0d,_0x463368)=>_0x120f0d&&!_0x463368),_0x508793['on'](_0x1cee('0x31'),()=>{this['fire']('resolveCommentThread',this[_0x1cee('0x1')]['id']);}),_0x508793;}}
23
+ const _0x2215=['_cancelAllConfirms','_boundFirstCommentView','execute','_model','ck-reset_all-excluded','setTemplate','commentViews','bind','Resolve','.ck-thread__container','showConfirm','addMany','isReadOnly','div','length','commentsListView','isResolvable','ck-thread--active','getTemplate','removeButton','add','resolveCommentThread','label','high','bindTemplate','_bindFirstCommentView','icon','commentThreadHeaderView','then','stop','ck-comment--resolve','render','change:isActive','fire','_createResolveButton','containerElement','set','actionBar','element','isConfirm','ck-thread--remove-confirmation','change:isReadOnly','check','listenTo','ck-thread__container','cancelConfirm','isResolved','locale','tooltip','actionIndicator','isActive','extendTemplate','resolveButton','commentThreadChildren','ck-thread','isVisible','querySelector','commentThreadInputView','change:isResolved','unbind','remove'];(function(_0x32b1cc,_0x2215ae){const _0x494c28=function(_0x4450aa){while(--_0x4450aa){_0x32b1cc['push'](_0x32b1cc['shift']());}};_0x494c28(++_0x2215ae);}(_0x2215,0x139));const _0x494c=function(_0x32b1cc,_0x2215ae){_0x32b1cc=_0x32b1cc-0x0;let _0x494c28=_0x2215[_0x32b1cc];return _0x494c28;};import{ConfirmMixin as _0x25169b}from'ckeditor5-collaboration/src/collaboration-core';import{ButtonView as _0x5250b2}from'ckeditor5/src/ui';import{icons as _0x21c6e9}from'ckeditor5/src/core';import _0x35f071 from'./basecommentthreadview';import{getTranslation as _0x18ee0b}from'../../../utils/common-translations';export default class lt extends _0x25169b(_0x35f071){constructor(_0x1018f5,_0x53e6a7,_0x258f27,_0x638867){super(_0x1018f5,_0x53e6a7,_0x258f27,_0x638867),this['commentThreadChildren']=this['createCollection'](),this[_0x494c('0x2d')][_0x494c('0x3')]([this[_0x494c('0x7')],this[_0x494c('0x31')]]),this[_0x494c('0x38')][_0x494c('0x26')]&&this[_0x494c('0x2d')][_0x494c('0xc')](this['commentThreadHeaderView'],0x0),this[_0x494c('0x38')]['on'](_0x494c('0x32'),(_0xd144dd,_0x40fd5b,_0x224989)=>{_0x224989?this[_0x494c('0x2d')][_0x494c('0xc')](this[_0x494c('0x13')],0x0):this[_0x494c('0x2d')]['remove'](this[_0x494c('0x13')]);}),this[_0x494c('0x1c')](_0x494c('0x29'),null),this[_0x494c('0x1b')]=null,this['_boundFirstCommentView']=null,this[_0x494c('0x27')]=_0x1018f5,this[_0x494c('0x2c')]=this[_0x494c('0x1a')](),this[_0x494c('0x3a')](this['getTemplate']()),this['on'](_0x494c('0x18'),(_0x50fe60,_0x5bebbb,_0x2ac206)=>{_0x2ac206||this[_0x494c('0x35')]();}),this[_0x494c('0x23')](this[_0x494c('0x38')],_0x494c('0x21'),(_0x1f6e4c,_0x3d1620,_0x29d165)=>{_0x29d165&&this[_0x494c('0x35')]();}),this[_0x494c('0x6')]>0x0&&this[_0x494c('0x11')](),this[_0x494c('0x23')](this[_0x494c('0x7')][_0x494c('0x3b')],'add',()=>{this['_bindFirstCommentView']();});}[_0x494c('0xa')](){const _0x59c2dd=this[_0x494c('0x10')];return{'tag':_0x494c('0x5'),'attributes':{'class':[_0x494c('0x2e'),_0x494c('0x39'),_0x59c2dd['if'](_0x494c('0x2a'),_0x494c('0x9')),_0x59c2dd['if'](_0x494c('0x1f'),_0x494c('0x20')),_0x59c2dd['to'](_0x494c('0x29'),_0x55b13d=>_0x55b13d?'ck-thread--'+_0x55b13d:'')],'data-thread-id':this[_0x494c('0x38')]['id'],'tabindex':-0x1},'children':[{'tag':_0x494c('0x5'),'attributes':{'class':_0x494c('0x24')},'children':this['commentThreadChildren']}]};}['render'](){super[_0x494c('0x17')](),this[_0x494c('0x1b')]=this[_0x494c('0x1e')][_0x494c('0x30')](_0x494c('0x1'));}[_0x494c('0x35')](){this['cancelConfirm']();for(const _0x3201c4 of this[_0x494c('0x7')][_0x494c('0x3b')])_0x3201c4[_0x494c('0x25')]();}[_0x494c('0x11')](){const {locale:_0xfc086}=this,_0x2c1eb0=this[_0x494c('0x7')][_0x494c('0x3b')]['get'](0x0);_0x2c1eb0===this[_0x494c('0x36')]||_0x2c1eb0['isSystemComment']||(this['_boundFirstCommentView']=_0x2c1eb0,this[_0x494c('0x33')]('actionIndicator'),this[_0x494c('0x3c')](_0x494c('0x29'))['to'](_0x2c1eb0,_0x494c('0x29'),_0x33b8d7=>'remove'===_0x33b8d7?_0x494c('0x34'):null),_0x2c1eb0['placeholder']=_0x18ee0b(_0xfc086,'Write\x20a\x20comment...'),_0x2c1eb0[_0x494c('0xb')]['on'](_0x494c('0x37'),_0x1f3ea9=>{_0x1f3ea9[_0x494c('0x15')](),this[_0x494c('0x2')](_0x18ee0b(_0xfc086,'Delete\x20comment\x20thread?'),this[_0x494c('0x1b')])[_0x494c('0x14')](()=>{this[_0x494c('0x19')]('removeCommentThread');});},{'priority':_0x494c('0xf')}),_0x2c1eb0[_0x494c('0x1d')][_0x494c('0xc')](this[_0x494c('0x2c')],0x0));}[_0x494c('0x1a')](){const _0x1e2ffb=new _0x5250b2(this[_0x494c('0x27')]);return _0x1e2ffb[_0x494c('0xe')]=_0x18ee0b(this[_0x494c('0x27')],_0x494c('0x0')),_0x1e2ffb[_0x494c('0x28')]=_0x18ee0b(this['locale'],'Resolve'),_0x1e2ffb[_0x494c('0x12')]=_0x21c6e9[_0x494c('0x22')],_0x1e2ffb[_0x494c('0x2b')]({'attributes':{'class':_0x494c('0x16')}}),_0x1e2ffb[_0x494c('0x3c')]('isEnabled')['to'](this['_model'],_0x494c('0x4'),_0x53807f=>!_0x53807f),_0x1e2ffb[_0x494c('0x3c')](_0x494c('0x2f'))['to'](this[_0x494c('0x38')],_0x494c('0x8'),this[_0x494c('0x38')],_0x494c('0x26'),(_0x2a36de,_0x1d77d2)=>_0x2a36de&&!_0x1d77d2),_0x1e2ffb['on'](_0x494c('0x37'),()=>{this['fire'](_0x494c('0xd'),this[_0x494c('0x38')]['id']);}),_0x1e2ffb;}}
@@ -1,15 +1,19 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module comments/comments/ui/view/commentview
3
7
  * @publicApi
4
8
  */
5
- import { type Locale } from 'ckeditor5/src/utils.js';
6
- import { ButtonView, type TemplateDefinition, type ViewCollection, type DropdownView } from 'ckeditor5/src/ui.js';
7
- import { UserView } from 'ckeditor5-collaboration';
8
- import BaseCommentView from './basecommentview.js';
9
- import type { Comment } from '../../commentsrepository.js';
10
- import type CommentInputView from './commentinputview.js';
11
- import type { CommentViewConfig } from '../../../config.js';
12
- declare const CommentView_base: import("ckeditor5/src/utils.js").Mixed<typeof BaseCommentView, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin.js").ConfirmApi>;
9
+ import { type Locale } from 'ckeditor5/src/utils';
10
+ import { ButtonView, type TemplateDefinition, type ViewCollection, type DropdownView } from 'ckeditor5/src/ui';
11
+ import { UserView } from 'ckeditor5-collaboration/src/collaboration-core';
12
+ import BaseCommentView from './basecommentview';
13
+ import type { Comment } from '../../commentsrepository';
14
+ import type CommentInputView from './commentinputview';
15
+ import type { CommentViewConfig } from '../../../config';
16
+ declare const CommentView_base: import("ckeditor5/src/utils").Mixed<typeof BaseCommentView, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin").ConfirmApi>;
13
17
  /**
14
18
  * The default view for comment.
15
19
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a88=['bind','EXTERNAL_COMMENT','isRemovable','pencil','ck-comment--edit','Delete\x20comment?','EXTERNAL_IMPORT_WORD_AVATAR','ck-annotation__user','isSystemComment','author','mouseleave','isExternal','isEditable','ck-comment__info','panelPosition','_createDropdown','Reply...','ck-comment--remove-confirmation','removeButton','ck-comment__main','getUserViewNotificationText','_attachActions','ck-comment__info-name','listenTo','fire','ck-comment__external','label','attributes','ck-annotation__info','ck-annotation__info-time','authoredAt','div','focus','addMany','resolvedAt','name','children','ck-comment--','@external','locale','importWord','removeComment','_model','createCollection','span','edit','isEnabled','add','buttonView','isVisible','creator','extendTemplate','_config','ck-annotation__main','Show\x20more\x20items','placeholder','icon','remove','change:isRemovable','ck-comment__actions','withText','change:isEnabled','panelView','EXTERNAL_IMPORT_WORD_COMMENT','set','cancelConfirm','actionBar','setTemplate','element','ck-comment__user','EXTERNAL_AVATAR','actionIndicator','dropdown','ck-annotation__actions--hidden','change:isVisible','_createRemoveButton','render','visibleView','isReadOnly','items','blur','userView','Edit','_createCommentInputView','isConfirm','Remove','some','push','mouseenter','editButton','getExternalCommentNote','getTemplate','time','switchToEditMode','isEditMode','execute','_createEditButton'];(function(_0x267ab3,_0x1a880f){const _0x5eea3d=function(_0x2374a0){while(--_0x2374a0){_0x267ab3['push'](_0x267ab3['shift']());}};_0x5eea3d(++_0x1a880f);}(_0x1a88,0x105));const _0x5eea=function(_0x267ab3,_0x1a880f){_0x267ab3=_0x267ab3-0x0;let _0x5eea3d=_0x1a88[_0x267ab3];return _0x5eea3d;};import{ButtonView as _0x1bdbc3,createDropdown as _0x402a1d,ListView as _0x5e0c85,ListItemView as _0x40c5bf}from'ckeditor5/src/ui.js';import{icons as _0x37d64b}from'ckeditor5/src/core.js';import{UserView as _0x136cc0,ConfirmMixin as _0x31c7cb}from'ckeditor5-collaboration';import _0x4cf623 from'./basecommentview.js';import _0x5974f5 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x2df098}from'../../../utils/common-translations.js';export default class ut extends _0x31c7cb(_0x4cf623){constructor(_0x1d64f4,_0x166890,_0x41b862){super(_0x1d64f4,_0x166890,_0x41b862),this[_0x5eea('0x5e')](_0x5eea('0x4'),null),this['set'](_0x5eea('0x55'),_0x2df098(_0x1d64f4,_0x5eea('0x2e'))),this[_0x5eea('0x1e')](_0x5eea('0x3c'))['to'](_0x166890),this[_0x5eea('0x1e')](_0x5eea('0x40'))['to'](_0x166890),this[_0x5eea('0x60')]=this[_0x5eea('0x49')](),this[_0x5eea('0x26')]||(this[_0x5eea('0x16')]=this[_0x5eea('0x1d')](),this[_0x5eea('0x30')]=this[_0x5eea('0x8')](),this['items']=this[_0x5eea('0x49')](),this[_0x5eea('0xc')][_0x5eea('0x3f')]([this[_0x5eea('0x16')],this[_0x5eea('0x30')]]),this[_0x5eea('0x5')]=this[_0x5eea('0x2d')](),this[_0x5eea('0x60')]['add'](this[_0x5eea('0x5')])),this['userView']=new _0x136cc0(_0x1d64f4,_0x166890[_0x5eea('0x27')],this[_0x5eea('0x32')]()),this[_0x5eea('0xe')][_0x5eea('0x51')]({'attributes':{'class':[_0x5eea('0x2'),_0x5eea('0x25')]}}),this[_0x5eea('0x35')](_0x166890,_0x5eea('0x58'),()=>this[_0x5eea('0x5f')]()),this[_0x5eea('0x0')](this[_0x5eea('0x18')]());}[_0x5eea('0x18')](){const _0x23a0e9=this['bindTemplate'],_0x5a7927=[{'tag':_0x5eea('0x3d'),'attributes':{'class':[_0x5eea('0x2b'),_0x5eea('0x3a')]},'children':[{'tag':_0x5eea('0x4a'),'children':[{'text':this[_0x5eea('0xe')][_0x5eea('0x41')]}],'attributes':{'class':[_0x5eea('0x34'),'ck-annotation__info-name']}},{'tag':_0x5eea('0x19'),'attributes':{'datetime':_0x23a0e9['to'](_0x5eea('0x3c')),'class':['ck-comment__info-time',_0x5eea('0x3b')]},'children':[{'text':_0x23a0e9['to'](_0x5eea('0x3c'),_0xc2ccd1=>this[_0x5eea('0x52')]['formatDateTime'](_0xc2ccd1))}]}]},{'tag':_0x5eea('0x3d'),'attributes':{'class':[_0x5eea('0x59'),'ck-annotation__actions',_0x23a0e9['if'](_0x5eea('0x1b'),'ck-comment__actions--hidden'),_0x23a0e9['if'](_0x5eea('0x1b'),_0x5eea('0x6'))]},'children':this[_0x5eea('0x60')]},{'tag':_0x5eea('0x3d'),'attributes':{'class':['ck-annotation__content-wrapper']},'children':this[_0x5eea('0xa')]}];return this[_0x5eea('0x48')][_0x5eea('0x29')]&&_0x5a7927[_0x5eea('0x14')]({'tag':_0x5eea('0x3d'),'attributes':{'class':[_0x5eea('0x37')]},'children':[{'text':this[_0x5eea('0x17')]()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x23a0e9['if'](_0x5eea('0x11'),_0x5eea('0x2f'))],'tabindex':-0x1},'children':[{'tag':_0x5eea('0x3d'),'attributes':{'class':['ck-comment','ck-annotation',_0x23a0e9['if'](_0x5eea('0x1b'),_0x5eea('0x22')),_0x23a0e9['if']('isSystemComment','ck-comment--info'),_0x23a0e9['to'](_0x5eea('0x4'),_0x4bb351=>_0x4bb351?_0x5eea('0x43')+_0x4bb351:'')],'data-author-id':this[_0x5eea('0x48')][_0x5eea('0x27')]['id'],'data-comment-id':this[_0x5eea('0x48')]['id']},'children':[this[_0x5eea('0xe')],{'tag':_0x5eea('0x3d'),'attributes':{'class':[_0x5eea('0x31'),_0x5eea('0x53')]},'children':_0x5a7927}]}]};}[_0x5eea('0x1d')](){const _0x1a9fbb=new _0x1bdbc3(this[_0x5eea('0x45')]);return _0x1a9fbb[_0x5eea('0x38')]=_0x2df098(this[_0x5eea('0x45')],_0x5eea('0xf')),_0x1a9fbb['icon']=_0x37d64b[_0x5eea('0x21')],_0x1a9fbb[_0x5eea('0x5a')]=!0x0,_0x1a9fbb[_0x5eea('0x51')]({'attributes':{'class':'ck-comment--edit'}}),_0x1a9fbb[_0x5eea('0x1e')](_0x5eea('0x4c'))['to'](this[_0x5eea('0x48')],'isReadOnly',_0x5bb990=>!_0x5bb990),_0x1a9fbb[_0x5eea('0x1e')]('isVisible')['to'](this[_0x5eea('0x48')],_0x5eea('0x2a')),_0x1a9fbb['on'](_0x5eea('0x1c'),()=>this[_0x5eea('0x1a')]()),_0x1a9fbb;}[_0x5eea('0x8')](){const _0x9c33ca=new _0x1bdbc3(this['locale']);return _0x9c33ca[_0x5eea('0x38')]=_0x2df098(this[_0x5eea('0x45')],_0x5eea('0x12')),_0x9c33ca[_0x5eea('0x56')]=_0x5974f5,_0x9c33ca['withText']=!0x0,_0x9c33ca[_0x5eea('0x51')]({'attributes':{'class':'ck-comment--remove'}}),_0x9c33ca[_0x5eea('0x1e')](_0x5eea('0x4c'))['to'](this[_0x5eea('0x48')],_0x5eea('0xb'),_0x190493=>!_0x190493),_0x9c33ca[_0x5eea('0x1e')](_0x5eea('0x4f'))['to'](this['_model'],_0x5eea('0x20')),_0x9c33ca['on']('execute',()=>{this['showConfirm'](_0x2df098(this[_0x5eea('0x45')],_0x5eea('0x23')),this[_0x5eea('0x1')])['then'](()=>{this[_0x5eea('0x36')](_0x5eea('0x47'),this[_0x5eea('0x48')]['id']);});}),_0x9c33ca;}[_0x5eea('0x2d')](){const _0x363ab2=_0x402a1d(this[_0x5eea('0x45')]),_0x5270b5=_0x363ab2[_0x5eea('0x5c')][_0x5eea('0x42')],_0x36627f=new _0x5e0c85(this[_0x5eea('0x45')]),_0x5004aa=(_0x2ae64f,_0x4013f2=-0x1)=>{const _0xa7ba50=new _0x40c5bf(this[_0x5eea('0x45')]);_0xa7ba50[_0x5eea('0x42')]['add'](_0x2ae64f);const _0x24f74e=_0x4013f2>-0x1?_0x4013f2:_0x36627f[_0x5eea('0xc')]['length'];_0x36627f[_0x5eea('0xc')][_0x5eea('0x4d')](_0xa7ba50,_0x24f74e),_0x363ab2['listenTo'](_0x2ae64f,_0x5eea('0x5b'),()=>{_0x363ab2[_0x5eea('0x4c')]=[...this[_0x5eea('0xc')]][_0x5eea('0x13')](_0x4441a7=>_0x4441a7[_0x5eea('0x4c')]);}),_0x363ab2[_0x5eea('0x35')](_0x2ae64f,_0x5eea('0x7'),()=>{_0x363ab2['buttonView'][_0x5eea('0x4f')]=[...this['items']][_0x5eea('0x13')](_0x22fabd=>_0x22fabd[_0x5eea('0x4f')]);});};_0x363ab2[_0x5eea('0x2c')]='sw',_0x363ab2[_0x5eea('0x4e')]['set']({'label':_0x2df098(this[_0x5eea('0x45')],_0x5eea('0x54')),'icon':_0x37d64b['threeVerticalDots']}),_0x363ab2['isEnabled']=[...this['items']][_0x5eea('0x13')](_0x4b4a90=>_0x4b4a90[_0x5eea('0x4c')]),_0x363ab2[_0x5eea('0x4e')]['isVisible']=[...this['items']]['some'](_0x3ae07a=>_0x3ae07a[_0x5eea('0x4f')]);for(const _0x12b2ab of this[_0x5eea('0xc')])_0x5004aa(_0x12b2ab);return _0x5270b5['add'](_0x36627f),_0x363ab2[_0x5eea('0x35')](this[_0x5eea('0xc')],_0x5eea('0x4d'),(_0x1eab5a,_0x1f26c6,_0x114793)=>{_0x5004aa(_0x1f26c6,_0x114793);}),_0x363ab2[_0x5eea('0x35')](this[_0x5eea('0xc')],_0x5eea('0x57'),(_0x3d4c6d,_0x110200,_0x38c20e)=>{_0x36627f['items'][_0x5eea('0x57')](_0x38c20e);}),_0x363ab2;}[_0x5eea('0x33')](_0x1d664b,_0x2d9a69){const _0x5061f8=_0x1d664b&&_0x1d664b[_0x5eea('0x1')];_0x5061f8&&(this[_0x5eea('0x35')](_0x5061f8,_0x5eea('0x15'),()=>this['actionIndicator']=_0x2d9a69),this[_0x5eea('0x35')](_0x5061f8,_0x5eea('0x3e'),()=>this[_0x5eea('0x4')]=_0x2d9a69),this[_0x5eea('0x35')](_0x5061f8,_0x5eea('0x28'),()=>this[_0x5eea('0x4')]=null),this[_0x5eea('0x35')](_0x5061f8,_0x5eea('0xd'),()=>this[_0x5eea('0x4')]=null));}['_createCommentInputView'](){const _0x2a7f87=super[_0x5eea('0x10')]();return _0x2a7f87[_0x5eea('0x1e')](_0x5eea('0x55'))['to'](this),_0x2a7f87;}[_0x5eea('0x17')](){return _0x5eea('0x46')===this['_model']['attributes'][_0x5eea('0x44')]['source']?_0x2df098(this['locale'],_0x5eea('0x5d')):_0x2df098(this[_0x5eea('0x45')],_0x5eea('0x1f'));}[_0x5eea('0x32')](){return this['_model'][_0x5eea('0x29')]?_0x5eea('0x46')===this['_model'][_0x5eea('0x39')][_0x5eea('0x44')]['source']?_0x2df098(this[_0x5eea('0x45')],_0x5eea('0x24'),this['_model'][_0x5eea('0x50')][_0x5eea('0x41')]):_0x2df098(this[_0x5eea('0x45')],_0x5eea('0x3'),this[_0x5eea('0x48')]['creator'][_0x5eea('0x41')]):null;}[_0x5eea('0x9')](){super[_0x5eea('0x9')](),this[_0x5eea('0x33')](this['editButton'],_0x5eea('0x4b')),this[_0x5eea('0x33')](this[_0x5eea('0x30')],'remove');}}
23
+ const _0x283f=['ck-annotation__content-wrapper','ck-annotation__main','push','ck-comment__actions','icon','add','bind','EXTERNAL_IMPORT_WORD_COMMENT','@external','remove','set','Delete\x20comment?','visibleView','ck-comment__info-time','bindTemplate','then','authoredAt','label','setTemplate','source','items','length','actionBar','isVisible','some','buttonView','render','getUserViewNotificationText','Show\x20more\x20items','threeVerticalDots','fire','Edit','panelPosition','creator','edit','ck-annotation__actions','isRemovable','name','isEditable','div','listenTo','switchToEditMode','ck-comment--remove','userView','placeholder','locale','_createEditButton','ck-annotation','ck-comment__info','ck-annotation__info-time','isEnabled','actionIndicator','cancelConfirm','addMany','_model','ck-comment--edit','removeComment','Remove','panelView','isReadOnly','mouseenter','ck-comment--','_createDropdown','change:isVisible','_config','ck-annotation__user','element','editButton','attributes','getTemplate','isSystemComment','ck-comment__external','Reply...','_attachActions','span','isConfirm','ck-annotation__info','createCollection','_createCommentInputView','_createRemoveButton','change:isRemovable','blur','importWord','showConfirm','author','execute','mouseleave','extendTemplate','change:isEnabled','isEditMode','withText','focus','EXTERNAL_AVATAR','isExternal','ck-comment__user','removeButton'];(function(_0x28118d,_0x283fc8){const _0x5b7a01=function(_0x3c4d2b){while(--_0x3c4d2b){_0x28118d['push'](_0x28118d['shift']());}};_0x5b7a01(++_0x283fc8);}(_0x283f,0x10c));const _0x5b7a=function(_0x28118d,_0x283fc8){_0x28118d=_0x28118d-0x0;let _0x5b7a01=_0x283f[_0x28118d];return _0x5b7a01;};import{ButtonView as _0x479ce7,createDropdown as _0x3b2926,ListView as _0x3a7fb2,ListItemView as _0x3ef960}from'ckeditor5/src/ui';import{icons as _0x4bb238}from'ckeditor5/src/core';import{UserView as _0x855dec,ConfirmMixin as _0x39e3b4}from'ckeditor5-collaboration/src/collaboration-core';import _0x209590 from'./basecommentview';import _0x31b80c from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x3d446c}from'../../../utils/common-translations';export default class ut extends _0x39e3b4(_0x209590){constructor(_0xf4310a,_0x2854d8,_0x28cf05){super(_0xf4310a,_0x2854d8,_0x28cf05),this[_0x5b7a('0x1e')](_0x5b7a('0x47'),null),this[_0x5b7a('0x1e')](_0x5b7a('0x40'),_0x3d446c(_0xf4310a,_0x5b7a('0x5c'))),this[_0x5b7a('0x1a')]('authoredAt')['to'](_0x2854d8),this[_0x5b7a('0x1a')]('resolvedAt')['to'](_0x2854d8),this[_0x5b7a('0x2a')]=this[_0x5b7a('0x1')](),this['isSystemComment']||(this[_0x5b7a('0x57')]=this[_0x5b7a('0x42')](),this[_0x5b7a('0x13')]=this[_0x5b7a('0x3')](),this['items']=this[_0x5b7a('0x1')](),this[_0x5b7a('0x28')][_0x5b7a('0x49')]([this['editButton'],this[_0x5b7a('0x13')]]),this['dropdown']=this[_0x5b7a('0x52')](),this[_0x5b7a('0x2a')][_0x5b7a('0x19')](this['dropdown'])),this[_0x5b7a('0x3f')]=new _0x855dec(_0xf4310a,_0x2854d8[_0x5b7a('0x8')],this[_0x5b7a('0x2f')]()),this['userView'][_0x5b7a('0xb')]({'attributes':{'class':[_0x5b7a('0x12'),_0x5b7a('0x55')]}}),this[_0x5b7a('0x3c')](_0x2854d8,_0x5b7a('0x4'),()=>this[_0x5b7a('0x48')]()),this[_0x5b7a('0x26')](this[_0x5b7a('0x59')]());}[_0x5b7a('0x59')](){const _0x2142d1=this[_0x5b7a('0x22')],_0x3d46b3=[{'tag':_0x5b7a('0x3b'),'attributes':{'class':[_0x5b7a('0x44'),_0x5b7a('0x0')]},'children':[{'tag':_0x5b7a('0x5e'),'children':[{'text':this[_0x5b7a('0x3f')][_0x5b7a('0x39')]}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x2142d1['to']('authoredAt'),'class':[_0x5b7a('0x21'),_0x5b7a('0x45')]},'children':[{'text':_0x2142d1['to'](_0x5b7a('0x24'),_0x552db3=>this[_0x5b7a('0x54')]['formatDateTime'](_0x552db3))}]}]},{'tag':_0x5b7a('0x3b'),'attributes':{'class':[_0x5b7a('0x17'),_0x5b7a('0x37'),_0x2142d1['if'](_0x5b7a('0xd'),'ck-comment__actions--hidden'),_0x2142d1['if'](_0x5b7a('0xd'),'ck-annotation__actions--hidden')]},'children':this['actionBar']},{'tag':_0x5b7a('0x3b'),'attributes':{'class':[_0x5b7a('0x14')]},'children':this[_0x5b7a('0x20')]}];return this['_model'][_0x5b7a('0x11')]&&_0x3d46b3[_0x5b7a('0x16')]({'tag':_0x5b7a('0x3b'),'attributes':{'class':[_0x5b7a('0x5b')]},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x2142d1['if'](_0x5b7a('0x5f'),'ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':_0x5b7a('0x3b'),'attributes':{'class':['ck-comment',_0x5b7a('0x43'),_0x2142d1['if'](_0x5b7a('0xd'),_0x5b7a('0x4b')),_0x2142d1['if'](_0x5b7a('0x5a'),'ck-comment--info'),_0x2142d1['to']('actionIndicator',_0x17f8de=>_0x17f8de?_0x5b7a('0x51')+_0x17f8de:'')],'data-author-id':this[_0x5b7a('0x4a')][_0x5b7a('0x8')]['id'],'data-comment-id':this[_0x5b7a('0x4a')]['id']},'children':[this[_0x5b7a('0x3f')],{'tag':_0x5b7a('0x3b'),'attributes':{'class':['ck-comment__main',_0x5b7a('0x15')]},'children':_0x3d46b3}]}]};}['_createEditButton'](){const _0x2e5d51=new _0x479ce7(this[_0x5b7a('0x41')]);return _0x2e5d51[_0x5b7a('0x25')]=_0x3d446c(this[_0x5b7a('0x41')],_0x5b7a('0x33')),_0x2e5d51[_0x5b7a('0x18')]=_0x4bb238['pencil'],_0x2e5d51[_0x5b7a('0xe')]=!0x0,_0x2e5d51['extendTemplate']({'attributes':{'class':_0x5b7a('0x4b')}}),_0x2e5d51['bind'](_0x5b7a('0x46'))['to'](this[_0x5b7a('0x4a')],_0x5b7a('0x4f'),_0x5df5bb=>!_0x5df5bb),_0x2e5d51[_0x5b7a('0x1a')](_0x5b7a('0x2b'))['to'](this[_0x5b7a('0x4a')],_0x5b7a('0x3a')),_0x2e5d51['on'](_0x5b7a('0x9'),()=>this[_0x5b7a('0x3d')]()),_0x2e5d51;}[_0x5b7a('0x3')](){const _0x4f012f=new _0x479ce7(this['locale']);return _0x4f012f[_0x5b7a('0x25')]=_0x3d446c(this[_0x5b7a('0x41')],_0x5b7a('0x4d')),_0x4f012f[_0x5b7a('0x18')]=_0x31b80c,_0x4f012f[_0x5b7a('0xe')]=!0x0,_0x4f012f[_0x5b7a('0xb')]({'attributes':{'class':_0x5b7a('0x3e')}}),_0x4f012f['bind']('isEnabled')['to'](this[_0x5b7a('0x4a')],_0x5b7a('0x4f'),_0x4bbcfa=>!_0x4bbcfa),_0x4f012f[_0x5b7a('0x1a')](_0x5b7a('0x2b'))['to'](this[_0x5b7a('0x4a')],_0x5b7a('0x38')),_0x4f012f['on'](_0x5b7a('0x9'),()=>{this[_0x5b7a('0x7')](_0x3d446c(this[_0x5b7a('0x41')],_0x5b7a('0x1f')),this[_0x5b7a('0x56')])[_0x5b7a('0x23')](()=>{this[_0x5b7a('0x32')](_0x5b7a('0x4c'),this[_0x5b7a('0x4a')]['id']);});}),_0x4f012f;}['_createDropdown'](){const _0x408349=_0x3b2926(this[_0x5b7a('0x41')]),_0xf07b35=_0x408349[_0x5b7a('0x4e')]['children'],_0xfbbada=new _0x3a7fb2(this['locale']),_0x29b6d2=(_0x144bb0,_0x3c7119=-0x1)=>{const _0x2c3712=new _0x3ef960(this[_0x5b7a('0x41')]);_0x2c3712['children'][_0x5b7a('0x19')](_0x144bb0);const _0x3720cc=_0x3c7119>-0x1?_0x3c7119:_0xfbbada[_0x5b7a('0x28')][_0x5b7a('0x29')];_0xfbbada[_0x5b7a('0x28')][_0x5b7a('0x19')](_0x2c3712,_0x3720cc),_0x408349['listenTo'](_0x144bb0,_0x5b7a('0xc'),()=>{_0x408349[_0x5b7a('0x46')]=[...this['items']][_0x5b7a('0x2c')](_0x40117a=>_0x40117a['isEnabled']);}),_0x408349['listenTo'](_0x144bb0,_0x5b7a('0x53'),()=>{_0x408349['buttonView'][_0x5b7a('0x2b')]=[...this[_0x5b7a('0x28')]]['some'](_0x4e7f98=>_0x4e7f98[_0x5b7a('0x2b')]);});};_0x408349[_0x5b7a('0x34')]='sw',_0x408349[_0x5b7a('0x2d')]['set']({'label':_0x3d446c(this[_0x5b7a('0x41')],_0x5b7a('0x30')),'icon':_0x4bb238[_0x5b7a('0x31')]}),_0x408349[_0x5b7a('0x46')]=[...this['items']][_0x5b7a('0x2c')](_0x5cbc36=>_0x5cbc36[_0x5b7a('0x46')]),_0x408349['buttonView']['isVisible']=[...this['items']][_0x5b7a('0x2c')](_0x2d445b=>_0x2d445b[_0x5b7a('0x2b')]);for(const _0x284273 of this['items'])_0x29b6d2(_0x284273);return _0xf07b35['add'](_0xfbbada),_0x408349[_0x5b7a('0x3c')](this[_0x5b7a('0x28')],'add',(_0x4dc274,_0x1e1edb,_0x263501)=>{_0x29b6d2(_0x1e1edb,_0x263501);}),_0x408349[_0x5b7a('0x3c')](this['items'],_0x5b7a('0x1d'),(_0x364c70,_0x2165b6,_0x1df840)=>{_0xfbbada[_0x5b7a('0x28')][_0x5b7a('0x1d')](_0x1df840);}),_0x408349;}[_0x5b7a('0x5d')](_0x4aaed5,_0x31b314){const _0x194471=_0x4aaed5&&_0x4aaed5[_0x5b7a('0x56')];_0x194471&&(this[_0x5b7a('0x3c')](_0x194471,_0x5b7a('0x50'),()=>this[_0x5b7a('0x47')]=_0x31b314),this[_0x5b7a('0x3c')](_0x194471,_0x5b7a('0xf'),()=>this[_0x5b7a('0x47')]=_0x31b314),this[_0x5b7a('0x3c')](_0x194471,_0x5b7a('0xa'),()=>this[_0x5b7a('0x47')]=null),this[_0x5b7a('0x3c')](_0x194471,_0x5b7a('0x5'),()=>this[_0x5b7a('0x47')]=null));}[_0x5b7a('0x2')](){const _0x76190d=super[_0x5b7a('0x2')]();return _0x76190d['bind']('placeholder')['to'](this),_0x76190d;}['getExternalCommentNote'](){return _0x5b7a('0x6')===this[_0x5b7a('0x4a')][_0x5b7a('0x58')]['@external'][_0x5b7a('0x27')]?_0x3d446c(this[_0x5b7a('0x41')],_0x5b7a('0x1b')):_0x3d446c(this[_0x5b7a('0x41')],'EXTERNAL_COMMENT');}[_0x5b7a('0x2f')](){return this['_model'][_0x5b7a('0x11')]?_0x5b7a('0x6')===this[_0x5b7a('0x4a')][_0x5b7a('0x58')][_0x5b7a('0x1c')][_0x5b7a('0x27')]?_0x3d446c(this[_0x5b7a('0x41')],'EXTERNAL_IMPORT_WORD_AVATAR',this[_0x5b7a('0x4a')][_0x5b7a('0x35')][_0x5b7a('0x39')]):_0x3d446c(this['locale'],_0x5b7a('0x10'),this[_0x5b7a('0x4a')]['creator'][_0x5b7a('0x39')]):null;}[_0x5b7a('0x2e')](){super['render'](),this[_0x5b7a('0x5d')](this['editButton'],_0x5b7a('0x36')),this[_0x5b7a('0x5d')](this[_0x5b7a('0x13')],_0x5b7a('0x1d'));}}