@ckeditor/ckeditor5-comments 40.1.0 → 41.0.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 (161) hide show
  1. package/CHANGELOG.md +19 -19
  2. package/LICENSE.md +1 -1
  3. package/README.md +1 -1
  4. package/build/comments.js +2 -2
  5. package/build/translations/gl.js +1 -1
  6. package/build/translations/sr-latn.js +1 -1
  7. package/build/translations/ug.js +1 -1
  8. package/lang/translations/af.po +1 -1
  9. package/lang/translations/ar.po +1 -1
  10. package/lang/translations/bg.po +1 -1
  11. package/lang/translations/bn.po +1 -1
  12. package/lang/translations/bs.po +1 -1
  13. package/lang/translations/ca.po +1 -1
  14. package/lang/translations/cs.po +1 -1
  15. package/lang/translations/da.po +1 -1
  16. package/lang/translations/de-ch.po +1 -1
  17. package/lang/translations/de.po +1 -1
  18. package/lang/translations/el.po +1 -1
  19. package/lang/translations/en-au.po +1 -1
  20. package/lang/translations/en.po +1 -1
  21. package/lang/translations/es-co.po +1 -1
  22. package/lang/translations/es.po +1 -1
  23. package/lang/translations/et.po +1 -1
  24. package/lang/translations/fa.po +1 -1
  25. package/lang/translations/fi.po +1 -1
  26. package/lang/translations/fr.po +1 -1
  27. package/lang/translations/gl.po +3 -3
  28. package/lang/translations/he.po +1 -1
  29. package/lang/translations/hi.po +1 -1
  30. package/lang/translations/hr.po +1 -1
  31. package/lang/translations/hu.po +1 -1
  32. package/lang/translations/id.po +1 -1
  33. package/lang/translations/it.po +1 -1
  34. package/lang/translations/ja.po +1 -1
  35. package/lang/translations/jv.po +1 -1
  36. package/lang/translations/ko.po +1 -1
  37. package/lang/translations/lt.po +1 -1
  38. package/lang/translations/lv.po +1 -1
  39. package/lang/translations/ms.po +1 -1
  40. package/lang/translations/nl.po +1 -1
  41. package/lang/translations/no.po +1 -1
  42. package/lang/translations/pl.po +1 -1
  43. package/lang/translations/pt-br.po +1 -1
  44. package/lang/translations/pt.po +1 -1
  45. package/lang/translations/ro.po +1 -1
  46. package/lang/translations/ru.po +1 -1
  47. package/lang/translations/sk.po +1 -1
  48. package/lang/translations/sq.po +1 -1
  49. package/lang/translations/sr-latn.po +4 -4
  50. package/lang/translations/sr.po +1 -1
  51. package/lang/translations/sv.po +1 -1
  52. package/lang/translations/th.po +1 -1
  53. package/lang/translations/tk.po +1 -1
  54. package/lang/translations/tr.po +1 -1
  55. package/lang/translations/tt.po +1 -1
  56. package/lang/translations/ug.po +11 -11
  57. package/lang/translations/uk.po +1 -1
  58. package/lang/translations/ur.po +1 -1
  59. package/lang/translations/vi.po +1 -1
  60. package/lang/translations/zh-cn.po +1 -1
  61. package/lang/translations/zh.po +1 -1
  62. package/package.json +4 -3
  63. package/src/annotations/annotation.d.ts +7 -7
  64. package/src/annotations/annotation.js +2 -2
  65. package/src/annotations/annotationcollection.d.ts +4 -4
  66. package/src/annotations/annotationcollection.js +2 -2
  67. package/src/annotations/annotations.d.ts +7 -7
  68. package/src/annotations/annotations.js +2 -2
  69. package/src/annotations/annotationsuis.d.ts +6 -6
  70. package/src/annotations/annotationsuis.js +2 -2
  71. package/src/annotations/editorannotations.d.ts +5 -5
  72. package/src/annotations/editorannotations.js +2 -2
  73. package/src/annotations/inlineannotations.d.ts +7 -7
  74. package/src/annotations/inlineannotations.js +2 -2
  75. package/src/annotations/narrowsidebar.d.ts +7 -7
  76. package/src/annotations/narrowsidebar.js +2 -2
  77. package/src/annotations/sidebar.d.ts +6 -6
  78. package/src/annotations/sidebar.js +2 -2
  79. package/src/annotations/view/annotationcounterbuttonview.d.ts +3 -3
  80. package/src/annotations/view/annotationcounterbuttonview.js +2 -2
  81. package/src/annotations/view/annotationview.d.ts +3 -3
  82. package/src/annotations/view/annotationview.js +2 -2
  83. package/src/annotations/view/sidebaritemview.d.ts +3 -3
  84. package/src/annotations/view/sidebaritemview.js +2 -2
  85. package/src/annotations/view/sidebarview.d.ts +3 -3
  86. package/src/annotations/view/sidebarview.js +2 -2
  87. package/src/annotations/widesidebar.d.ts +6 -6
  88. package/src/annotations/widesidebar.js +2 -2
  89. package/src/augmentation.d.ts +2 -2
  90. package/src/augmentation.js +1 -1
  91. package/src/comments/addcommentthreadcommand.d.ts +2 -2
  92. package/src/comments/addcommentthreadcommand.js +2 -2
  93. package/src/comments/commentsarchive.d.ts +5 -5
  94. package/src/comments/commentsarchive.js +2 -2
  95. package/src/comments/commentsarchiveui.d.ts +6 -6
  96. package/src/comments/commentsarchiveui.js +2 -2
  97. package/src/comments/commentsediting.d.ts +7 -7
  98. package/src/comments/commentsediting.js +2 -2
  99. package/src/comments/commentsrepository.d.ts +13 -12
  100. package/src/comments/commentsrepository.js +2 -2
  101. package/src/comments/commentsui.d.ts +6 -6
  102. package/src/comments/commentsui.js +2 -2
  103. package/src/comments/integrations/commentsrestrictededitingmode.d.ts +2 -2
  104. package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
  105. package/src/comments/integrations/importword.d.ts +2 -2
  106. package/src/comments/integrations/importword.js +2 -2
  107. package/src/comments/ui/commenteditor/commenteditor.d.ts +5 -5
  108. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  109. package/src/comments/ui/commenteditor/commenteditorui.d.ts +4 -4
  110. package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
  111. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +5 -5
  112. package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
  113. package/src/comments/ui/commentthreadcontroller.d.ts +5 -5
  114. package/src/comments/ui/commentthreadcontroller.js +2 -2
  115. package/src/comments/ui/view/basecommentthreadview.d.ts +9 -9
  116. package/src/comments/ui/view/basecommentthreadview.js +2 -2
  117. package/src/comments/ui/view/basecommentview.d.ts +5 -5
  118. package/src/comments/ui/view/basecommentview.js +2 -2
  119. package/src/comments/ui/view/collapsedcommentsview.d.ts +3 -3
  120. package/src/comments/ui/view/collapsedcommentsview.js +2 -2
  121. package/src/comments/ui/view/commentcontentview.d.ts +3 -3
  122. package/src/comments/ui/view/commentcontentview.js +2 -2
  123. package/src/comments/ui/view/commentinputview.d.ts +5 -5
  124. package/src/comments/ui/view/commentinputview.js +2 -2
  125. package/src/comments/ui/view/commentsarchiveview.d.ts +4 -4
  126. package/src/comments/ui/view/commentsarchiveview.js +2 -2
  127. package/src/comments/ui/view/commentslistview.d.ts +6 -6
  128. package/src/comments/ui/view/commentslistview.js +2 -2
  129. package/src/comments/ui/view/commentthreadheaderview.d.ts +4 -4
  130. package/src/comments/ui/view/commentthreadheaderview.js +2 -2
  131. package/src/comments/ui/view/commentthreadinputview.d.ts +6 -6
  132. package/src/comments/ui/view/commentthreadinputview.js +2 -2
  133. package/src/comments/ui/view/commentthreadview.d.ts +8 -8
  134. package/src/comments/ui/view/commentthreadview.js +2 -2
  135. package/src/comments/ui/view/commentview.d.ts +9 -9
  136. package/src/comments/ui/view/commentview.js +2 -2
  137. package/src/comments.d.ts +11 -11
  138. package/src/comments.js +2 -2
  139. package/src/commentsonly.d.ts +3 -3
  140. package/src/commentsonly.js +2 -2
  141. package/src/config.d.ts +4 -4
  142. package/src/config.js +1 -1
  143. package/src/index.d.ts +21 -21
  144. package/src/index.js +2 -2
  145. package/src/utils/common-translations.d.ts +2 -2
  146. package/src/utils/common-translations.js +2 -2
  147. package/src/utils/createmutationobserver.d.ts +1 -1
  148. package/src/utils/createmutationobserver.js +2 -2
  149. package/theme/annotation-inline.css +1 -1
  150. package/theme/annotation.css +1 -1
  151. package/theme/comment.css +1 -1
  152. package/theme/commentinput.css +1 -1
  153. package/theme/commentmarker.css +1 -1
  154. package/theme/commentsarchive.css +2 -2
  155. package/theme/commentthread.css +1 -1
  156. package/theme/icons/add-comment.svg +1 -1
  157. package/theme/icons/comments-archive.svg +1 -1
  158. package/theme/icons/edit-comment.svg +1 -1
  159. package/theme/icons/remove-comment.svg +1 -1
  160. package/theme/sidebar-narrow.css +1 -1
  161. package/theme/sidebar.css +1 -1
@@ -1,14 +1,14 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module comments/comments/ui/view/commentinputview
7
7
  */
8
- import { View, ButtonView } from 'ckeditor5/src/ui';
9
- import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils';
10
- import { type EditorConfig, type DataApi } from 'ckeditor5/src/core';
11
- import CommentEditor from '../commenteditor/commenteditor';
8
+ import { View, ButtonView } from 'ckeditor5/src/ui.js';
9
+ import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
10
+ import { type EditorConfig, type DataApi } from 'ckeditor5/src/core.js';
11
+ import CommentEditor from '../commenteditor/commenteditor.js';
12
12
  /**
13
13
  * A view for the comment input section that includes a comment editor.
14
14
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, 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 _0x3e6a=['set','initialData','_isDestroyed','low','Esc','trim','Reply...','bind','editor','createEditor','Reply','model','_editorCreationPromise','extendTemplate','keystrokes','focusPrevious','listenTo','focus','add','ck-comment__input-wrapper','execute','_createCancelButton','shift\x20+\x20tab','_initializeFocusCycling','stop','length','disabledSubmit','forEach','cancel','_createSubmitButton','firstChild','showButtons','submitLabel','focusNext','withText','ck-comment__input-actions','TOO_LONG_COMMENT_ALERT','focusTracker','change','editorDestroyed','placeholder','isEnabled','destroy','setData','value','setTemplate','submitButtonView','label','getData','ck-comment__input-actions--submit','cancelButtonView','render','fire','then','submit','element'];(function(_0x3aba03,_0x3e6a77){const _0x3a84be=function(_0x17a045){while(--_0x17a045){_0x3aba03['push'](_0x3aba03['shift']());}};_0x3a84be(++_0x3e6a77);}(_0x3e6a,0x15a));const _0x3a84=function(_0x3aba03,_0x3e6a77){_0x3aba03=_0x3aba03-0x0;let _0x3a84be=_0x3e6a[_0x3aba03];return _0x3a84be;};import{View as _0x5e1a07,ViewCollection as _0x23e2f6,FocusCycler as _0x4afff8,ButtonView as _0x2adee4}from'ckeditor5/src/ui';import{FocusTracker as _0x415261,KeystrokeHandler as _0x1be8c0}from'ckeditor5/src/utils';import _0x4ab4c5 from'../commenteditor/commenteditor';import{getTranslation as _0x4a3b4d}from'../../../utils/common-translations';export default class Zt extends _0x5e1a07{constructor(_0x5bc356,_0x3503ec={}){super(_0x5bc356),this['editor']=null,this['_editorConfig']=_0x3503ec,this[_0x3a84('0x4')]=new _0x1be8c0(),this['focusTracker']=new _0x415261(),this['set'](_0x3a84('0x22'),_0x3503ec[_0x3a84('0x2f')]||''),this['set']('disabledSubmit',!0x1),this['set'](_0x3a84('0x15'),!0x0),this['set'](_0x3a84('0x1e'),_0x4a3b4d(_0x5bc356,_0x3a84('0x34'))),this[_0x3a84('0x2e')](_0x3a84('0x16'),_0x4a3b4d(_0x5bc356,_0x3a84('0x0'))),this[_0x3a84('0x24')]=this[_0x3a84('0x13')](),this[_0x3a84('0x28')]=this[_0x3a84('0xb')](),this[_0x3a84('0x23')]({'tag':'div','attributes':{'class':[_0x3a84('0x9')]},'children':[{'tag':'div','attributes':{'class':[_0x3a84('0x19'),this['bindTemplate']['if'](_0x3a84('0x15'),'ck-comment__input-actions--active')]},'children':[this[_0x3a84('0x24')],this[_0x3a84('0x28')]]}]}),this[_0x3a84('0x4')]['set'](_0x3a84('0x32'),(_0x40180b,_0x5550af)=>{this['cancelButtonView'][_0x3a84('0x2a')](_0x3a84('0xa')),_0x5550af();}),this['on'](_0x3a84('0x2c'),(_0x52d730,_0x451c3f)=>{_0x451c3f['length']>0xfde8?(alert(_0x4a3b4d(_0x5bc356,_0x3a84('0x1a'),[_0x451c3f[_0x3a84('0xf')],0xfde8])),_0x52d730[_0x3a84('0xe')]()):this[_0x3a84('0x36')][_0x3a84('0x21')]('');},{'priority':'high'});}[_0x3a84('0x29')](){super['render'](),this[_0x3a84('0x4')][_0x3a84('0x6')](this[_0x3a84('0x2d')]),this[_0x3a84('0x1b')][_0x3a84('0x8')](this['element']);}[_0x3a84('0x37')](){return this[_0x3a84('0x36')]||(this[_0x3a84('0x36')]=new _0x4ab4c5(this['_editorConfig']),this[_0x3a84('0x2')]=this[_0x3a84('0x36')]['create']()[_0x3a84('0x2b')](()=>{if(this[_0x3a84('0x30')])return;const _0x1811e7=this['editor'];this[_0x3a84('0x2d')]['insertBefore'](_0x1811e7['ui'][_0x3a84('0x2d')],this[_0x3a84('0x2d')][_0x3a84('0x14')]),_0x1811e7[_0x3a84('0x1')]['document']['on'](_0x3a84('0x1c'),()=>this['value']=_0x1811e7[_0x3a84('0x26')]()),_0x1811e7[_0x3a84('0x35')](_0x3a84('0x1e'))['to'](this),this[_0x3a84('0xd')](this['editor']),this['fire']('editorReady',this['editor']);})),this[_0x3a84('0x2')];}[_0x3a84('0x7')](){this[_0x3a84('0x36')]&&this[_0x3a84('0x36')][_0x3a84('0x7')]();}async['destroy'](){this[_0x3a84('0x30')]||(this['_isDestroyed']=!0x0,this[_0x3a84('0x36')]&&(await this['_editorCreationPromise'],await this[_0x3a84('0x36')][_0x3a84('0x20')](),this[_0x3a84('0x2a')](_0x3a84('0x1d'),this['editor'])),await super['destroy']());}[_0x3a84('0x13')](){const {locale:_0xa5b67e}=this,_0x45ed44=new _0x2adee4(_0xa5b67e);return _0x45ed44['extendTemplate']({'attributes':{'class':[_0x3a84('0x27')]}}),_0x45ed44['withText']=!0x0,_0x45ed44[_0x3a84('0x35')](_0x3a84('0x25'))['to'](this,_0x3a84('0x16')),_0x45ed44['on'](_0x3a84('0xa'),()=>{this['fire'](_0x3a84('0x2c'),this['value']);}),_0x45ed44[_0x3a84('0x35')](_0x3a84('0x1f'))['to'](this,'value',this,_0x3a84('0x10'),(_0x3d2a5a,_0x4665f2)=>!_0x4665f2&&!!_0x3d2a5a[_0x3a84('0x33')]()),_0x45ed44;}[_0x3a84('0xb')](){const {locale:_0x5f015b}=this,_0x298c46=new _0x2adee4(_0x5f015b);return _0x298c46[_0x3a84('0x3')]({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x298c46['label']=_0x4a3b4d(_0x5f015b,'Cancel'),_0x298c46[_0x3a84('0x18')]=!0x0,_0x298c46['on'](_0x3a84('0xa'),()=>{this['editor'][_0x3a84('0x21')](''),this[_0x3a84('0x2a')](_0x3a84('0x12'));}),_0x298c46;}[_0x3a84('0xd')](_0x3516fe){const _0x2343aa=this[_0x3a84('0x1b')],_0x472ea3=new _0x23e2f6();[_0x3516fe['ui']['view'],this[_0x3a84('0x24')],this['cancelButtonView']][_0x3a84('0x11')](_0x386854=>{_0x472ea3[_0x3a84('0x8')](_0x386854),_0x2343aa[_0x3a84('0x8')](_0x386854[_0x3a84('0x2d')]);});const _0x5103bb=new _0x4afff8({'focusables':_0x472ea3,'focusTracker':_0x2343aa});this[_0x3a84('0x4')][_0x3a84('0x2e')]('tab',(_0xcbca9a,_0x1fac43)=>{_0x5103bb[_0x3a84('0x17')](),_0x1fac43();},{'priority':_0x3a84('0x31')}),this[_0x3a84('0x4')][_0x3a84('0x2e')](_0x3a84('0xc'),(_0x28a3eb,_0x2f8444)=>{_0x5103bb[_0x3a84('0x5')](),_0x2f8444();},{'priority':_0x3a84('0x31')});}}
23
+ const _0x4253=['fire','TOO_LONG_COMMENT_ALERT','listenTo','add','stop','trim','keystrokes','editor','withText','isEnabled','disabledSubmit','view','element','Esc','editorReady','_editorCreationPromise','submitButtonView','value','extendTemplate','ck-comment__input-actions--cancel','focus','forEach','_initializeFocusCycling','initialData','showButtons','focusPrevious','cancelButtonView','bind','firstChild','low','createEditor','editorDestroyed','setTemplate','bindTemplate','execute','document','setData','_editorConfig','submit','_createSubmitButton','ck-comment__input-actions--submit','_isDestroyed','change','label','model','ck-comment__input-actions--active','_createCancelButton','length','focusTracker','Reply','set','destroy','tab','submitLabel','div','render','getData'];(function(_0x58f54b,_0x42534f){const _0x312508=function(_0x4b0608){while(--_0x4b0608){_0x58f54b['push'](_0x58f54b['shift']());}};_0x312508(++_0x42534f);}(_0x4253,0x1da));const _0x3125=function(_0x58f54b,_0x42534f){_0x58f54b=_0x58f54b-0x0;let _0x312508=_0x4253[_0x58f54b];return _0x312508;};import{View as _0x19f122,ViewCollection as _0xc0b05d,FocusCycler as _0x3a95ef,ButtonView as _0x146938}from'ckeditor5/src/ui.js';import{FocusTracker as _0x47a789,KeystrokeHandler as _0x5479}from'ckeditor5/src/utils.js';import _0x64eaa5 from'../commenteditor/commenteditor.js';import{getTranslation as _0x4fd6a6}from'../../../utils/common-translations.js';export default class Zt extends _0x19f122{constructor(_0x2187eb,_0x11e4d5={}){super(_0x2187eb),this[_0x3125('0x2e')]=null,this[_0x3125('0x13')]=_0x11e4d5,this['keystrokes']=new _0x5479(),this[_0x3125('0x1e')]=new _0x47a789(),this[_0x3125('0x20')](_0x3125('0x38'),_0x11e4d5[_0x3125('0x5')]||''),this[_0x3125('0x20')]('disabledSubmit',!0x1),this[_0x3125('0x20')](_0x3125('0x6'),!0x0),this[_0x3125('0x20')]('placeholder',_0x4fd6a6(_0x2187eb,'Reply...')),this[_0x3125('0x20')](_0x3125('0x23'),_0x4fd6a6(_0x2187eb,_0x3125('0x1f'))),this[_0x3125('0x37')]=this[_0x3125('0x15')](),this[_0x3125('0x8')]=this[_0x3125('0x1c')](),this[_0x3125('0xe')]({'tag':_0x3125('0x24'),'attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':_0x3125('0x24'),'attributes':{'class':['ck-comment__input-actions',this[_0x3125('0xf')]['if'](_0x3125('0x6'),_0x3125('0x1b'))]},'children':[this[_0x3125('0x37')],this[_0x3125('0x8')]]}]}),this[_0x3125('0x2d')][_0x3125('0x20')](_0x3125('0x34'),(_0x314297,_0x2f3cf4)=>{this['cancelButtonView'][_0x3125('0x27')](_0x3125('0x10')),_0x2f3cf4();}),this['on'](_0x3125('0x14'),(_0x4709f7,_0x1fa7a5)=>{_0x1fa7a5[_0x3125('0x1d')]>0xfde8?(alert(_0x4fd6a6(_0x2187eb,_0x3125('0x28'),[_0x1fa7a5[_0x3125('0x1d')],0xfde8])),_0x4709f7[_0x3125('0x2b')]()):this['editor'][_0x3125('0x12')]('');},{'priority':'high'});}[_0x3125('0x25')](){super['render'](),this[_0x3125('0x2d')][_0x3125('0x29')](this['element']),this['focusTracker']['add'](this[_0x3125('0x33')]);}[_0x3125('0xc')](){return this['editor']||(this[_0x3125('0x2e')]=new _0x64eaa5(this[_0x3125('0x13')]),this[_0x3125('0x36')]=this[_0x3125('0x2e')]['create']()['then'](()=>{if(this[_0x3125('0x17')])return;const _0x733e1b=this['editor'];this[_0x3125('0x33')]['insertBefore'](_0x733e1b['ui']['element'],this[_0x3125('0x33')][_0x3125('0xa')]),_0x733e1b[_0x3125('0x1a')][_0x3125('0x11')]['on'](_0x3125('0x18'),()=>this[_0x3125('0x38')]=_0x733e1b[_0x3125('0x26')]()),_0x733e1b[_0x3125('0x9')]('placeholder')['to'](this),this[_0x3125('0x4')](this['editor']),this[_0x3125('0x27')](_0x3125('0x35'),this[_0x3125('0x2e')]);})),this[_0x3125('0x36')];}['focus'](){this[_0x3125('0x2e')]&&this[_0x3125('0x2e')][_0x3125('0x2')]();}async[_0x3125('0x21')](){this[_0x3125('0x17')]||(this[_0x3125('0x17')]=!0x0,this[_0x3125('0x2e')]&&(await this[_0x3125('0x36')],await this[_0x3125('0x2e')][_0x3125('0x21')](),this[_0x3125('0x27')](_0x3125('0xd'),this[_0x3125('0x2e')])),await super[_0x3125('0x21')]());}[_0x3125('0x15')](){const {locale:_0x4104fc}=this,_0x48c0b9=new _0x146938(_0x4104fc);return _0x48c0b9[_0x3125('0x0')]({'attributes':{'class':[_0x3125('0x16')]}}),_0x48c0b9[_0x3125('0x2f')]=!0x0,_0x48c0b9[_0x3125('0x9')](_0x3125('0x19'))['to'](this,_0x3125('0x23')),_0x48c0b9['on'](_0x3125('0x10'),()=>{this[_0x3125('0x27')](_0x3125('0x14'),this[_0x3125('0x38')]);}),_0x48c0b9[_0x3125('0x9')](_0x3125('0x30'))['to'](this,_0x3125('0x38'),this,_0x3125('0x31'),(_0x1014ee,_0x40e59f)=>!_0x40e59f&&!!_0x1014ee[_0x3125('0x2c')]()),_0x48c0b9;}[_0x3125('0x1c')](){const {locale:_0x37db5a}=this,_0x145e73=new _0x146938(_0x37db5a);return _0x145e73[_0x3125('0x0')]({'attributes':{'class':[_0x3125('0x1')]}}),_0x145e73['label']=_0x4fd6a6(_0x37db5a,'Cancel'),_0x145e73['withText']=!0x0,_0x145e73['on'](_0x3125('0x10'),()=>{this[_0x3125('0x2e')]['setData'](''),this['fire']('cancel');}),_0x145e73;}[_0x3125('0x4')](_0x5a1c14){const _0x12fec9=this[_0x3125('0x1e')],_0x2b7108=new _0xc0b05d();[_0x5a1c14['ui'][_0x3125('0x32')],this['submitButtonView'],this[_0x3125('0x8')]][_0x3125('0x3')](_0x42bec4=>{_0x2b7108[_0x3125('0x2a')](_0x42bec4),_0x12fec9['add'](_0x42bec4[_0x3125('0x33')]);});const _0x3e17b6=new _0x3a95ef({'focusables':_0x2b7108,'focusTracker':_0x12fec9});this['keystrokes']['set'](_0x3125('0x22'),(_0xeed889,_0x45e714)=>{_0x3e17b6['focusNext'](),_0x45e714();},{'priority':_0x3125('0xb')}),this['keystrokes'][_0x3125('0x20')]('shift\x20+\x20tab',(_0x39ed1f,_0x21fb69)=>{_0x3e17b6[_0x3125('0x7')](),_0x21fb69();},{'priority':_0x3125('0xb')});}}
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module comments/comments/ui/view/commentslistview
7
7
  */
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';
8
+ import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
9
+ import { type Locale } from 'ckeditor5/src/utils.js';
10
+ import type AnnotationView from '../../../annotations/view/annotationview.js';
11
11
  /**
12
12
  * A view representing the content of comments archive.
13
13
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, 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 _0x1cbc=['_focusTracker','bindTemplate','isActive','shift\x20+\x20tab','ck-comments-archive','_focusables','selectstart','div','high','EMPTY_COMMENTS_ARCHIVE','focus','remove','destroy','set','listenTo','element','ck-comments-archive__header\x20','add','length','COMMENTS_ARCHIVE','ck-comments-archive__content','isEmpty','ck-comments-archive__info','_keystrokes','stopPropagation','render','arrowleft','arrowdown'];(function(_0xbd2ad1,_0x1cbc49){const _0x4e87e0=function(_0x5686dd){while(--_0x5686dd){_0xbd2ad1['push'](_0xbd2ad1['shift']());}};_0x4e87e0(++_0x1cbc49);}(_0x1cbc,0x95));const _0x4e87=function(_0xbd2ad1,_0x1cbc49){_0xbd2ad1=_0xbd2ad1-0x0;let _0x4e87e0=_0x1cbc[_0xbd2ad1];return _0x4e87e0;};import{View as _0x42f557,FocusCycler as _0x4ac392}from'ckeditor5/src/ui';import{FocusTracker as _0x1230e9,KeystrokeHandler as _0x486e04}from'ckeditor5/src/utils';import{getTranslation as _0x185b08}from'../../../utils/common-translations';export default class K extends _0x42f557{constructor(_0x3b58a1,_0x2ce9eb){super(_0x3b58a1),this[_0x4e87('0x4')](_0x4e87('0xc'),!_0x2ce9eb[_0x4e87('0x9')]),this[_0x4e87('0x13')]=new _0x1230e9(),this[_0x4e87('0xe')]=new _0x486e04(),this[_0x4e87('0x18')]=_0x2ce9eb,this['_focusCycler']=new _0x4ac392({'focusables':this[_0x4e87('0x18')],'focusTracker':this[_0x4e87('0x13')],'keystrokeHandler':this['_keystrokes'],'actions':{'focusPrevious':_0x4e87('0x16'),'focusNext':'tab'}}),this[_0x4e87('0x5')](_0x2ce9eb,_0x4e87('0x8'),()=>{this[_0x4e87('0xc')]=!0x1;}),this['listenTo'](_0x2ce9eb,_0x4e87('0x2'),(_0x3ab8c5,_0x4904c4)=>{_0x4904c4[_0x4e87('0x15')]&&this[_0x4e87('0x1')](),_0x2ce9eb[_0x4e87('0x9')]||(this[_0x4e87('0xc')]=!0x0);});const _0x5a90f6=this[_0x4e87('0x14')];this['setTemplate']({'tag':_0x4e87('0x1a'),'attributes':{'dir':'auto','class':['ck',_0x4e87('0x17')],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':[_0x4e87('0x7')]},'children':[{'text':_0x185b08(_0x3b58a1,_0x4e87('0xa'))}]},{'tag':'div','attributes':{'class':[_0x4e87('0xb')]},'children':[{'tag':'div','children':_0x2ce9eb},{'tag':'p','attributes':{'class':[_0x4e87('0xd'),_0x5a90f6['if'](_0x4e87('0xc'),'ck-hidden',_0x477cc1=>!_0x477cc1)]},'children':[{'text':_0x185b08(_0x3b58a1,_0x4e87('0x0'))}]}]}]});}['render'](){super[_0x4e87('0x10')](),this[_0x4e87('0xe')]['listenTo'](this['element']);const _0x180569=_0x2d7fa9=>_0x2d7fa9[_0x4e87('0xf')]();this[_0x4e87('0xe')][_0x4e87('0x4')]('arrowright',_0x180569),this[_0x4e87('0xe')]['set'](_0x4e87('0x11'),_0x180569),this['_keystrokes'][_0x4e87('0x4')]('arrowup',_0x180569),this[_0x4e87('0xe')][_0x4e87('0x4')](_0x4e87('0x12'),_0x180569),this[_0x4e87('0x5')](this[_0x4e87('0x6')],_0x4e87('0x19'),(_0x298c35,_0x491847)=>{_0x491847['stopPropagation']();},{'priority':_0x4e87('0x1b')});}[_0x4e87('0x3')](){super[_0x4e87('0x3')](),this['_focusTracker'][_0x4e87('0x3')](),this['_keystrokes'][_0x4e87('0x3')]();}[_0x4e87('0x1')](){this[_0x4e87('0x6')][_0x4e87('0x1')]();}}
23
+ const _0x2983=['setTemplate','shift\x20+\x20tab','focus','add','stopPropagation','length','high','render','arrowleft','listenTo','div','set','_focusTracker','element','arrowright','ck-comments-archive__info','arrowup','_focusCycler','EMPTY_COMMENTS_ARCHIVE','ck-hidden','ck-comments-archive__header\x20','_focusables','destroy','isEmpty','isActive','ck-comments-archive__content','_keystrokes'];(function(_0x8f2c03,_0x2983aa){const _0x593d11=function(_0x5e6134){while(--_0x5e6134){_0x8f2c03['push'](_0x8f2c03['shift']());}};_0x593d11(++_0x2983aa);}(_0x2983,0x89));const _0x593d=function(_0x8f2c03,_0x2983aa){_0x8f2c03=_0x8f2c03-0x0;let _0x593d11=_0x2983[_0x8f2c03];return _0x593d11;};import{View as _0x3c1fa1,FocusCycler as _0x5ce1d2}from'ckeditor5/src/ui.js';import{FocusTracker as _0x56056e,KeystrokeHandler as _0x563c74}from'ckeditor5/src/utils.js';import{getTranslation as _0x1f109b}from'../../../utils/common-translations.js';export default class K extends _0x3c1fa1{constructor(_0x579374,_0x4cdfa8){super(_0x579374),this[_0x593d('0x9')](_0x593d('0x15'),!_0x4cdfa8['length']),this[_0x593d('0xa')]=new _0x56056e(),this[_0x593d('0x18')]=new _0x563c74(),this['_focusables']=_0x4cdfa8,this[_0x593d('0xf')]=new _0x5ce1d2({'focusables':this[_0x593d('0x13')],'focusTracker':this[_0x593d('0xa')],'keystrokeHandler':this[_0x593d('0x18')],'actions':{'focusPrevious':_0x593d('0x1a'),'focusNext':'tab'}}),this[_0x593d('0x7')](_0x4cdfa8,_0x593d('0x1'),()=>{this[_0x593d('0x15')]=!0x1;}),this['listenTo'](_0x4cdfa8,'remove',(_0x4f0587,_0x4eb2b7)=>{_0x4eb2b7[_0x593d('0x16')]&&this['focus'](),_0x4cdfa8[_0x593d('0x3')]||(this[_0x593d('0x15')]=!0x0);});const _0x4410b8=this['bindTemplate'];this[_0x593d('0x19')]({'tag':_0x593d('0x8'),'attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':[_0x593d('0x12')]},'children':[{'text':_0x1f109b(_0x579374,'COMMENTS_ARCHIVE')}]},{'tag':_0x593d('0x8'),'attributes':{'class':[_0x593d('0x17')]},'children':[{'tag':_0x593d('0x8'),'children':_0x4cdfa8},{'tag':'p','attributes':{'class':[_0x593d('0xd'),_0x4410b8['if'](_0x593d('0x15'),_0x593d('0x11'),_0x258545=>!_0x258545)]},'children':[{'text':_0x1f109b(_0x579374,_0x593d('0x10'))}]}]}]});}[_0x593d('0x5')](){super[_0x593d('0x5')](),this[_0x593d('0x18')][_0x593d('0x7')](this[_0x593d('0xb')]);const _0x112926=_0x56d030=>_0x56d030[_0x593d('0x2')]();this['_keystrokes'][_0x593d('0x9')](_0x593d('0xc'),_0x112926),this[_0x593d('0x18')]['set'](_0x593d('0x6'),_0x112926),this[_0x593d('0x18')][_0x593d('0x9')](_0x593d('0xe'),_0x112926),this[_0x593d('0x18')]['set']('arrowdown',_0x112926),this[_0x593d('0x7')](this[_0x593d('0xb')],'selectstart',(_0x20b6da,_0x257f5a)=>{_0x257f5a['stopPropagation']();},{'priority':_0x593d('0x4')});}[_0x593d('0x14')](){super[_0x593d('0x14')](),this[_0x593d('0xa')][_0x593d('0x14')](),this[_0x593d('0x18')][_0x593d('0x14')]();}[_0x593d('0x0')](){this[_0x593d('0xb')]['focus']();}}
@@ -1,15 +1,15 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module comments/comments/ui/view/commentslistview
7
7
  */
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';
8
+ import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
9
+ import { type Locale } from 'ckeditor5/src/utils.js';
10
+ import type { CommentThread } from '../../commentsrepository.js';
11
+ import type CommentView from './commentview.js';
12
+ import type { CommentThreadConfig } from '../../../config.js';
13
13
  /**
14
14
  * A view representing the list of comments. It should be used as a part of the comment thread view.
15
15
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, 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 _0x59c6=['setTemplate','change:isEditMode','comments','from','collapse','remove','refreshVisibleViews','isEditMode','commentUpdated','render','_shouldCollapse','_handleInfoComment','isActive','authoredAt','locale','resolvedAt','bind','maxCommentCharsWhenCollapsed','expand','length','_rearrangeExpand','count','delegate','some','hasDirtyComment','weight','formatDateTime','_findOptimalIndex','updateComment','resolvedCommentView','_updateHasDirtyComment','_handleNewCommentModel','_model','add','_collapsedCommentsView','editorReady','equal','_config','viewUid','destroy','editorDestroyed','get','listenTo','set','editorConfig','focus','visibleViews','resolvedBy','Marked\x20as\x20resolved','commentViews','change:isResolved','change:hasDirtyComment','_calculatePosition','change:isActive','_handleRemoveCommentModel','CommentView','removeComment','_rearrangeCollapse','maxCommentsWhenCollapsed','createCollection'];(function(_0x31873f,_0x59c63c){const _0x340ea5=function(_0x193295){while(--_0x193295){_0x31873f['push'](_0x31873f['shift']());}};_0x340ea5(++_0x59c63c);}(_0x59c6,0x134));const _0x340e=function(_0x31873f,_0x59c63c){_0x31873f=_0x31873f-0x0;let _0x340ea5=_0x59c6[_0x31873f];return _0x340ea5;};import{View as _0x5e2e2d}from'ckeditor5/src/ui';import{diff as _0x34ba53,Collection as _0xa1ccc4}from'ckeditor5/src/utils';import{getTranslation as _0x637aab}from'../../../utils/common-translations';import _0x304bc6 from'./collapsedcommentsview';export default class Ct extends _0x5e2e2d{constructor(_0x25eda1,_0x3a7b43,_0x22df21){super(_0x25eda1),this[_0x340e('0x23')]('hasDirtyComment',!0x1),this[_0x340e('0x23')]('length',_0x3a7b43[_0x340e('0x36')][_0x340e('0xb')]),this[_0x340e('0x23')](_0x340e('0x4'),!0x1),this[_0x340e('0x18')]=_0x3a7b43,this[_0x340e('0x1d')]=_0x22df21,this[_0x340e('0x29')]=this[_0x340e('0x33')](),this['visibleViews']=this[_0x340e('0x33')](),this[_0x340e('0x15')]=null,this[_0x340e('0x1a')]=new _0x304bc6(_0x25eda1),this[_0x340e('0x1a')][_0x340e('0x8')](_0x340e('0xd'))['to'](this,_0x340e('0xb'),_0x161395=>_0x161395-this['_config'][_0x340e('0x32')]);for(const _0x3874db of _0x3a7b43[_0x340e('0x36')])this[_0x340e('0x17')](_0x3874db);this[_0x340e('0x3')](),this[_0x340e('0x22')](_0x3a7b43[_0x340e('0x36')],_0x340e('0x19'),(_0x557993,_0x3c4e35)=>{const _0x46f01c=this[_0x340e('0x2c')](_0x3c4e35);this[_0x340e('0xb')]++,this[_0x340e('0x17')](_0x3c4e35,_0x46f01c),this['refreshVisibleViews']();}),this[_0x340e('0x22')](_0x3a7b43[_0x340e('0x36')],_0x340e('0x39'),(_0x1fbe34,_0x85d13e)=>{this[_0x340e('0xb')]--,this[_0x340e('0x2e')](_0x85d13e),this['refreshVisibleViews']();}),this[_0x340e('0x22')](_0x3a7b43,_0x340e('0x0'),()=>this[_0x340e('0x3a')]()),this[_0x340e('0x22')](_0x3a7b43,_0x340e('0x2a'),()=>this[_0x340e('0x3')]()),this['on'](_0x340e('0x2d'),()=>this[_0x340e('0x3a')]()),this['on'](_0x340e('0x2b'),()=>this['refreshVisibleViews']()),this[_0x340e('0x34')]({'tag':'ul','attributes':{'class':['ck-thread__comments']},'children':this[_0x340e('0x26')]});}get[_0x340e('0x2')](){return this[_0x340e('0x18')][_0x340e('0x11')]>this[_0x340e('0x1d')]['maxThreadTotalWeight']&&!this[_0x340e('0x4')]&&!this['hasDirtyComment'];}[_0x340e('0x1')](){super['render'](),this[_0x340e('0x3a')]();}[_0x340e('0x25')](){this['element'][_0x340e('0x25')]();}[_0x340e('0x1f')](){this[_0x340e('0x1a')]['destroy']();for(const _0x1fba1c of this['commentViews'])_0x1fba1c[_0x340e('0x1f')]();super['destroy']();}[_0x340e('0x3a')](){this[_0x340e('0x2')]?this[_0x340e('0x31')]():this[_0x340e('0xc')]();}[_0x340e('0x17')](_0x580e92,_0x4f34a0){const _0x48af0a=new this[(_0x340e('0x1d'))][(_0x340e('0x2f'))](this['locale'],_0x580e92,{'maxCommentCharsWhenCollapsed':this[_0x340e('0x1d')][_0x340e('0x9')],'formatDateTime':this[_0x340e('0x1d')][_0x340e('0x12')],'editorConfig':this[_0x340e('0x1d')][_0x340e('0x24')]});_0x48af0a[_0x340e('0x1e')]=_0x580e92['id'],_0x48af0a[_0x340e('0xe')](_0x340e('0x30'))['to'](this),_0x48af0a[_0x340e('0xe')](_0x340e('0x14'))['to'](this),_0x48af0a[_0x340e('0xe')]('resolveCommentThread')['to'](this),_0x48af0a[_0x340e('0xe')](_0x340e('0x1b'))['to'](this),_0x48af0a[_0x340e('0xe')](_0x340e('0x20'))['to'](this),this[_0x340e('0x22')](_0x48af0a,_0x340e('0x35'),()=>this[_0x340e('0x16')]()),this[_0x340e('0x29')][_0x340e('0x19')](_0x48af0a,_0x4f34a0);}['_calculatePosition'](_0x524aac){const _0x4e731a=this[_0x340e('0x18')][_0x340e('0x13')](_0x524aac);return this['resolvedCommentView']?this[_0x340e('0x15')][_0x340e('0x5')]>_0x524aac['authoredAt']?_0x4e731a-0x1:_0x4e731a:_0x4e731a-0x1;}[_0x340e('0x3')](){if(this[_0x340e('0x18')][_0x340e('0x27')]&&this[_0x340e('0x18')][_0x340e('0x7')]){const _0x3d00d3={'id':'resolved','author':this[_0x340e('0x18')][_0x340e('0x27')],'authoredAt':this[_0x340e('0x18')][_0x340e('0x7')],'content':_0x637aab(this[_0x340e('0x6')],_0x340e('0x28')),'attributes':{}};this[_0x340e('0x15')]=new this[(_0x340e('0x1d'))][(_0x340e('0x2f'))](this[_0x340e('0x6')],_0x3d00d3,{'maxCommentCharsWhenCollapsed':this[_0x340e('0x1d')]['maxCommentCharsWhenCollapsed'],'formatDateTime':this[_0x340e('0x1d')][_0x340e('0x12')],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this[_0x340e('0x29')][_0x340e('0x19')](this[_0x340e('0x15')],this[_0x340e('0x18')][_0x340e('0x13')](_0x3d00d3));}else this['resolvedCommentView']&&(this[_0x340e('0x29')][_0x340e('0x39')](this[_0x340e('0x15')]),this[_0x340e('0x15')]['destroy'](),this[_0x340e('0x15')]=null);this[_0x340e('0x3a')]();}[_0x340e('0x2e')](_0x2e3ec8){const _0x113245=this[_0x340e('0x29')]['remove'](_0x2e3ec8['id']);this['stopListening'](_0x113245),_0x113245[_0x340e('0x3b')]&&this[_0x340e('0x16')](),_0x113245[_0x340e('0x1f')]();}['_updateHasDirtyComment'](){this[_0x340e('0x10')]=Array['from'](this[_0x340e('0x29')])[_0x340e('0xf')](_0x11a66a=>_0x11a66a[_0x340e('0x3b')]);}[_0x340e('0x31')](){const _0x3f6a95=function(_0x40f639){const _0x126e3c=new _0xa1ccc4();for(const _0x2e9c85 of _0x40f639)_0x126e3c['add'](_0x2e9c85);return _0x126e3c;}(this[_0x340e('0x29')]),_0x2176cd=this['_collapsedCommentsView']['count'];for(let _0x133307=0x1;_0x133307<=_0x2176cd;_0x133307++)_0x3f6a95['remove'](0x1);for(const _0x55be55 of _0x3f6a95)_0x55be55[_0x340e('0x38')]();_0x2176cd>0x0&&_0x3f6a95['add'](this[_0x340e('0x1a')],0x1),ss(_0x34ba53(Array[_0x340e('0x37')](this[_0x340e('0x26')]),Array[_0x340e('0x37')](_0x3f6a95)),this[_0x340e('0x26')],_0x3f6a95);}[_0x340e('0xc')](){ss(_0x34ba53(Array[_0x340e('0x37')](this['visibleViews']),Array['from'](this[_0x340e('0x29')])),this[_0x340e('0x26')],this[_0x340e('0x29')]);for(const _0x4d9aa5 of this[_0x340e('0x26')])_0x4d9aa5[_0x340e('0xa')]();}}function ss(_0x1fb829,_0x287d89,_0x153b84){let _0x12aba6=0x0;for(const _0x150cdb of _0x1fb829)switch(_0x150cdb){case'insert':_0x287d89[_0x340e('0x19')](_0x153b84[_0x340e('0x21')](_0x12aba6),_0x12aba6),_0x12aba6++;break;case'delete':_0x287d89['remove'](_0x12aba6);break;case _0x340e('0x1c'):_0x12aba6++;}}
23
+ const _0x3af0=['resolvedAt','authoredAt','_updateHasDirtyComment','isActive','count','remove','_handleInfoComment','_handleNewCommentModel','editorReady','_handleRemoveCommentModel','bind','render','comments','collapse','commentViews','resolveCommentThread','_rearrangeExpand','visibleViews','CommentView','length','listenTo','_findOptimalIndex','editorConfig','Marked\x20as\x20resolved','change:isResolved','editorDestroyed','createCollection','change:isEditMode','focus','resolvedBy','delete','some','weight','change:isActive','change:hasDirtyComment','_collapsedCommentsView','destroy','commentUpdated','refreshVisibleViews','_model','resolvedCommentView','viewUid','setTemplate','removeComment','from','maxThreadTotalWeight','locale','formatDateTime','hasDirtyComment','delegate','_calculatePosition','_shouldCollapse','_config','insert','_rearrangeCollapse','maxCommentCharsWhenCollapsed','expand','element','set','add'];(function(_0x4b5da4,_0x3af085){const _0x224582=function(_0x157572){while(--_0x157572){_0x4b5da4['push'](_0x4b5da4['shift']());}};_0x224582(++_0x3af085);}(_0x3af0,0x1a0));const _0x2245=function(_0x4b5da4,_0x3af085){_0x4b5da4=_0x4b5da4-0x0;let _0x224582=_0x3af0[_0x4b5da4];return _0x224582;};import{View as _0x3d62a2}from'ckeditor5/src/ui.js';import{diff as _0x5c4034,Collection as _0x398b6e}from'ckeditor5/src/utils.js';import{getTranslation as _0xaa360c}from'../../../utils/common-translations.js';import _0x212b51 from'./collapsedcommentsview.js';export default class vt extends _0x3d62a2{constructor(_0x22e91a,_0x48de0a,_0x129713){super(_0x22e91a),this['set']('hasDirtyComment',!0x1),this[_0x2245('0x2')](_0x2245('0x17'),_0x48de0a['comments'][_0x2245('0x17')]),this['set'](_0x2245('0x7'),!0x1),this[_0x2245('0x2b')]=_0x48de0a,this[_0x2245('0x38')]=_0x129713,this[_0x2245('0x12')]=this[_0x2245('0x1e')](),this[_0x2245('0x15')]=this['createCollection'](),this[_0x2245('0x2c')]=null,this['_collapsedCommentsView']=new _0x212b51(_0x22e91a),this[_0x2245('0x27')][_0x2245('0xe')](_0x2245('0x8'))['to'](this,_0x2245('0x17'),_0x547690=>_0x547690-this[_0x2245('0x38')]['maxCommentsWhenCollapsed']);for(const _0x3aa81b of _0x48de0a[_0x2245('0x10')])this[_0x2245('0xb')](_0x3aa81b);this['_handleInfoComment'](),this['listenTo'](_0x48de0a[_0x2245('0x10')],_0x2245('0x3'),(_0x4132b2,_0x49b1a4)=>{const _0x172378=this[_0x2245('0x36')](_0x49b1a4);this[_0x2245('0x17')]++,this['_handleNewCommentModel'](_0x49b1a4,_0x172378),this[_0x2245('0x2a')]();}),this[_0x2245('0x18')](_0x48de0a[_0x2245('0x10')],_0x2245('0x9'),(_0x3a8780,_0x3f429f)=>{this[_0x2245('0x17')]--,this[_0x2245('0xd')](_0x3f429f),this[_0x2245('0x2a')]();}),this[_0x2245('0x18')](_0x48de0a,_0x2245('0x29'),()=>this[_0x2245('0x2a')]()),this['listenTo'](_0x48de0a,_0x2245('0x1c'),()=>this[_0x2245('0xa')]()),this['on'](_0x2245('0x25'),()=>this[_0x2245('0x2a')]()),this['on'](_0x2245('0x26'),()=>this['refreshVisibleViews']()),this[_0x2245('0x2e')]({'tag':'ul','attributes':{'class':['ck-thread__comments']},'children':this[_0x2245('0x15')]});}get[_0x2245('0x37')](){return this[_0x2245('0x2b')][_0x2245('0x24')]>this['_config'][_0x2245('0x31')]&&!this[_0x2245('0x7')]&&!this['hasDirtyComment'];}[_0x2245('0xf')](){super['render'](),this[_0x2245('0x2a')]();}['focus'](){this[_0x2245('0x1')][_0x2245('0x20')]();}[_0x2245('0x28')](){this['_collapsedCommentsView'][_0x2245('0x28')]();for(const _0x8a3b82 of this['commentViews'])_0x8a3b82['destroy']();super[_0x2245('0x28')]();}['refreshVisibleViews'](){this[_0x2245('0x37')]?this[_0x2245('0x3a')]():this[_0x2245('0x14')]();}['_handleNewCommentModel'](_0x221e2a,_0x419f31){const _0x53ef21=new this[(_0x2245('0x38'))][(_0x2245('0x16'))](this[_0x2245('0x32')],_0x221e2a,{'maxCommentCharsWhenCollapsed':this[_0x2245('0x38')]['maxCommentCharsWhenCollapsed'],'formatDateTime':this[_0x2245('0x38')][_0x2245('0x33')],'editorConfig':this[_0x2245('0x38')][_0x2245('0x1a')]});_0x53ef21[_0x2245('0x2d')]=_0x221e2a['id'],_0x53ef21[_0x2245('0x35')](_0x2245('0x2f'))['to'](this),_0x53ef21[_0x2245('0x35')]('updateComment')['to'](this),_0x53ef21['delegate'](_0x2245('0x13'))['to'](this),_0x53ef21[_0x2245('0x35')](_0x2245('0xc'))['to'](this),_0x53ef21['delegate'](_0x2245('0x1d'))['to'](this),this['listenTo'](_0x53ef21,_0x2245('0x1f'),()=>this['_updateHasDirtyComment']()),this[_0x2245('0x12')][_0x2245('0x3')](_0x53ef21,_0x419f31);}['_calculatePosition'](_0x3edc1f){const _0x2cfecf=this[_0x2245('0x2b')][_0x2245('0x19')](_0x3edc1f);return this[_0x2245('0x2c')]?this[_0x2245('0x2c')][_0x2245('0x5')]>_0x3edc1f[_0x2245('0x5')]?_0x2cfecf-0x1:_0x2cfecf:_0x2cfecf-0x1;}[_0x2245('0xa')](){if(this[_0x2245('0x2b')]['resolvedBy']&&this[_0x2245('0x2b')][_0x2245('0x4')]){const _0x392045={'id':'resolved','author':this[_0x2245('0x2b')][_0x2245('0x21')],'authoredAt':this['_model'][_0x2245('0x4')],'content':_0xaa360c(this[_0x2245('0x32')],_0x2245('0x1b')),'attributes':{}};this['resolvedCommentView']=new this[(_0x2245('0x38'))]['CommentView'](this[_0x2245('0x32')],_0x392045,{'maxCommentCharsWhenCollapsed':this[_0x2245('0x38')][_0x2245('0x3b')],'formatDateTime':this[_0x2245('0x38')][_0x2245('0x33')],'editorConfig':this[_0x2245('0x38')][_0x2245('0x1a')],'isSystemComment':!0x0}),this[_0x2245('0x12')][_0x2245('0x3')](this['resolvedCommentView'],this['_model'][_0x2245('0x19')](_0x392045));}else this[_0x2245('0x2c')]&&(this[_0x2245('0x12')][_0x2245('0x9')](this[_0x2245('0x2c')]),this[_0x2245('0x2c')][_0x2245('0x28')](),this[_0x2245('0x2c')]=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x5e02dd){const _0xfec6de=this[_0x2245('0x12')][_0x2245('0x9')](_0x5e02dd['id']);this['stopListening'](_0xfec6de),_0xfec6de['isEditMode']&&this[_0x2245('0x6')](),_0xfec6de['destroy']();}[_0x2245('0x6')](){this[_0x2245('0x34')]=Array['from'](this[_0x2245('0x12')])[_0x2245('0x23')](_0xace79=>_0xace79['isEditMode']);}[_0x2245('0x3a')](){const _0x2511bb=function(_0x1b7232){const _0x18a2cc=new _0x398b6e();for(const _0x3812f1 of _0x1b7232)_0x18a2cc[_0x2245('0x3')](_0x3812f1);return _0x18a2cc;}(this[_0x2245('0x12')]),_0x1dca95=this['_collapsedCommentsView']['count'];for(let _0x1a0d60=0x1;_0x1a0d60<=_0x1dca95;_0x1a0d60++)_0x2511bb[_0x2245('0x9')](0x1);for(const _0x151a67 of _0x2511bb)_0x151a67[_0x2245('0x11')]();_0x1dca95>0x0&&_0x2511bb[_0x2245('0x3')](this[_0x2245('0x27')],0x1),is(_0x5c4034(Array[_0x2245('0x30')](this[_0x2245('0x15')]),Array[_0x2245('0x30')](_0x2511bb)),this['visibleViews'],_0x2511bb);}[_0x2245('0x14')](){is(_0x5c4034(Array['from'](this[_0x2245('0x15')]),Array['from'](this[_0x2245('0x12')])),this['visibleViews'],this[_0x2245('0x12')]);for(const _0x1075e5 of this[_0x2245('0x15')])_0x1075e5[_0x2245('0x0')]();}}function is(_0x1b584e,_0x4746f4,_0x314f98){let _0x834994=0x0;for(const _0x5084ba of _0x1b584e)switch(_0x5084ba){case _0x2245('0x39'):_0x4746f4[_0x2245('0x3')](_0x314f98['get'](_0x834994),_0x834994),_0x834994++;break;case _0x2245('0x22'):_0x4746f4['remove'](_0x834994);break;case'equal':_0x834994++;}}
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module comments/comments/ui/view/commentthreadheaderview
7
7
  */
8
- import { View, ButtonView } from 'ckeditor5/src/ui';
9
- import type { Locale } from 'ckeditor5/src/utils';
10
- import type { CommentThread } from '../../commentsrepository';
8
+ import { View, ButtonView } from 'ckeditor5/src/ui.js';
9
+ import type { Locale } from 'ckeditor5/src/utils.js';
10
+ import type { CommentThread } from '../../commentsrepository.js';
11
11
  export declare const MAX_CONTENT_LENGTH = 150;
12
12
  /**
13
13
  * A view for the comment thread header.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, 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 _0x664d=['icon','_trimContextValue','...','remove','substring','scrollWidth','mouseenter','ck-context--quotes','render','contextValue','add','hasContext','reopenCommentThread','lastIndexOf','ck-context__value','div','bind','fire','length','.ck-context__value','span','label','Comment\x20was\x20made\x20on\x20an\x20element','isReadOnly','Reopen','ck-thread__header','context','locale','_createReopenButton','bindTemplate','isVisible','isResolvable','reopenButtonView','querySelector','listenTo','ck-context','_attachContextActions','_model','setTemplate','value','overlay','isResolved'];(function(_0x5c27c3,_0x664dd9){const _0x1104b2=function(_0x56b5f9){while(--_0x56b5f9){_0x5c27c3['push'](_0x5c27c3['shift']());}};_0x1104b2(++_0x664dd9);}(_0x664d,0x1e7));const _0x1104=function(_0x5c27c3,_0x664dd9){_0x5c27c3=_0x5c27c3-0x0;let _0x1104b2=_0x664d[_0x5c27c3];return _0x1104b2;};import{View as _0x120636,ButtonView as _0x5ec2c0}from'ckeditor5/src/ui';import{getTranslation as _0x90bacd}from'../../../utils/common-translations';import _0x4a8ed5 from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Tt extends _0x120636{constructor(_0x34fa81,_0x5e9ab1){super(_0x34fa81);const _0x5c33c6=this[_0x1104('0x4')];this[_0x1104('0xc')]=_0x5e9ab1,this[_0x1104('0x7')]=this[_0x1104('0x3')](),this['bind']('hasContext')['to'](this[_0x1104('0xc')],_0x1104('0x1'),_0x560fc7=>!!_0x560fc7),this[_0x1104('0x21')](_0x1104('0x1a'))['to'](this[_0x1104('0xc')],_0x1104('0x1'),_0x1b0c78=>_0x1b0c78&&_0x1b0c78[_0x1104('0xe')]?this[_0x1104('0x12')](_0x1b0c78['value']):_0x90bacd(this[_0x1104('0x2')],_0x1104('0x27'))),this[_0x1104('0xd')]({'tag':_0x1104('0x20'),'attributes':{'class':[_0x1104('0x0')]},'children':[{'tag':_0x1104('0x20'),'attributes':{'class':['ck-context-wrapper']},'children':[{'tag':'div','attributes':{'class':[_0x1104('0xa'),_0x5c33c6['if'](_0x1104('0x1c'),_0x1104('0x18'))]},'children':[{'tag':_0x1104('0x25'),'attributes':{'class':[_0x1104('0x1f')]},'children':[{'text':_0x5c33c6['to'](_0x1104('0x1a'))}]}]}]},{'tag':_0x1104('0x20'),'attributes':{'class':['ck-annotation__actions']},'children':[this[_0x1104('0x7')]]}]});}[_0x1104('0x19')](){super[_0x1104('0x19')](),this[_0x1104('0xb')]();}[_0x1104('0x3')](){const _0x38a7d2=new _0x5ec2c0(this['locale']);return _0x38a7d2[_0x1104('0x26')]=_0x90bacd(this['locale'],_0x1104('0x29')),_0x38a7d2['tooltip']=_0x90bacd(this[_0x1104('0x2')],_0x1104('0x29')),_0x38a7d2[_0x1104('0x11')]=_0x4a8ed5,_0x38a7d2[_0x1104('0x21')]('isEnabled')['to'](this['_model'],_0x1104('0x28'),_0x35eeb9=>!_0x35eeb9),_0x38a7d2[_0x1104('0x21')](_0x1104('0x5'))['to'](this[_0x1104('0xc')],_0x1104('0x6'),this['_model'],_0x1104('0x10'),(_0x3f79a4,_0x5337b1)=>_0x3f79a4&&_0x5337b1),_0x38a7d2['on']('execute',()=>{this[_0x1104('0x22')](_0x1104('0x1d'),this['_model']['id']);}),_0x38a7d2;}[_0x1104('0x12')](_0x4a33e3){if(_0x4a33e3[_0x1104('0x23')]<0x96)return _0x4a33e3;const _0x1b38e4=_0x4a33e3[_0x1104('0x1e')]('\x20',0x93);return _0x4a33e3[_0x1104('0x15')](0x0,_0x1b38e4>-0x1?_0x1b38e4:0x93)+_0x1104('0x13');}[_0x1104('0xb')](){const _0x581d7c=this['element'][_0x1104('0x8')]('.ck-context'),_0x4ba273=_0x581d7c['querySelector'](_0x1104('0x24'));this['listenTo'](_0x581d7c,_0x1104('0x17'),()=>{_0x4ba273['offsetWidth']<_0x4ba273[_0x1104('0x16')]&&_0x581d7c['classList'][_0x1104('0x1b')](_0x1104('0xf'));}),this[_0x1104('0x9')](_0x581d7c,'mouseleave',()=>{_0x581d7c['classList'][_0x1104('0x14')]('overlay');});}}
23
+ const _0x36ca=['substring','add','_attachContextActions','reopenCommentThread','overlay','setTemplate','isEnabled','reopenButtonView','ck-context--quotes','Reopen','bind','hasContext','...','classList','ck-context','render','.ck-context__value','isVisible','querySelector','ck-context-wrapper','_createReopenButton','Comment\x20was\x20made\x20on\x20an\x20element','_model','ck-thread__header','offsetWidth','.ck-context','isResolvable','remove','span','value','_trimContextValue','tooltip','div','isReadOnly','locale','lastIndexOf','context','contextValue','label'];(function(_0x5f554b,_0x36ca71){const _0x244059=function(_0x2e0600){while(--_0x2e0600){_0x5f554b['push'](_0x5f554b['shift']());}};_0x244059(++_0x36ca71);}(_0x36ca,0x1f4));const _0x2440=function(_0x5f554b,_0x36ca71){_0x5f554b=_0x5f554b-0x0;let _0x244059=_0x36ca[_0x5f554b];return _0x244059;};import{View as _0x2cc05f,ButtonView as _0x38b3c0}from'ckeditor5/src/ui.js';import{getTranslation as _0x67d39c}from'../../../utils/common-translations.js';import _0x1c92eb from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Tt extends _0x2cc05f{constructor(_0x5ec32e,_0x19dcd8){super(_0x5ec32e);const _0x599968=this['bindTemplate'];this[_0x2440('0x1d')]=_0x19dcd8,this['reopenButtonView']=this[_0x2440('0x1b')](),this[_0x2440('0x11')]('hasContext')['to'](this['_model'],_0x2440('0x4'),_0x45ba71=>!!_0x45ba71),this['bind']('contextValue')['to'](this[_0x2440('0x1d')],_0x2440('0x4'),_0x539425=>_0x539425&&_0x539425[_0x2440('0x24')]?this['_trimContextValue'](_0x539425['value']):_0x67d39c(this[_0x2440('0x2')],_0x2440('0x1c'))),this[_0x2440('0xc')]({'tag':_0x2440('0x0'),'attributes':{'class':[_0x2440('0x1e')]},'children':[{'tag':_0x2440('0x0'),'attributes':{'class':[_0x2440('0x1a')]},'children':[{'tag':_0x2440('0x0'),'attributes':{'class':[_0x2440('0x15'),_0x599968['if'](_0x2440('0x12'),_0x2440('0xf'))]},'children':[{'tag':_0x2440('0x23'),'attributes':{'class':['ck-context__value']},'children':[{'text':_0x599968['to'](_0x2440('0x5'))}]}]}]},{'tag':'div','attributes':{'class':['ck-annotation__actions']},'children':[this[_0x2440('0xe')]]}]});}[_0x2440('0x16')](){super[_0x2440('0x16')](),this[_0x2440('0x9')]();}[_0x2440('0x1b')](){const _0x5807d4=new _0x38b3c0(this['locale']);return _0x5807d4[_0x2440('0x6')]=_0x67d39c(this[_0x2440('0x2')],_0x2440('0x10')),_0x5807d4[_0x2440('0x26')]=_0x67d39c(this[_0x2440('0x2')],'Reopen'),_0x5807d4['icon']=_0x1c92eb,_0x5807d4[_0x2440('0x11')](_0x2440('0xd'))['to'](this[_0x2440('0x1d')],_0x2440('0x1'),_0x17a6b4=>!_0x17a6b4),_0x5807d4[_0x2440('0x11')](_0x2440('0x18'))['to'](this['_model'],_0x2440('0x21'),this[_0x2440('0x1d')],'isResolved',(_0x1ce346,_0xc32d1f)=>_0x1ce346&&_0xc32d1f),_0x5807d4['on']('execute',()=>{this['fire'](_0x2440('0xa'),this[_0x2440('0x1d')]['id']);}),_0x5807d4;}[_0x2440('0x25')](_0x42be54){if(_0x42be54['length']<0x96)return _0x42be54;const _0x553ce0=_0x42be54[_0x2440('0x3')]('\x20',0x93);return _0x42be54[_0x2440('0x7')](0x0,_0x553ce0>-0x1?_0x553ce0:0x93)+_0x2440('0x13');}[_0x2440('0x9')](){const _0x336073=this['element'][_0x2440('0x19')](_0x2440('0x20')),_0x5cb709=_0x336073[_0x2440('0x19')](_0x2440('0x17'));this['listenTo'](_0x336073,'mouseenter',()=>{_0x5cb709[_0x2440('0x1f')]<_0x5cb709['scrollWidth']&&_0x336073[_0x2440('0x14')][_0x2440('0x8')](_0x2440('0xb'));}),this['listenTo'](_0x336073,'mouseleave',()=>{_0x336073['classList'][_0x2440('0x22')](_0x2440('0xb'));});}}
@@ -1,15 +1,15 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module comments/comments/ui/view/commentthreadinputview
7
7
  */
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';
8
+ import { View } from 'ckeditor5/src/ui.js';
9
+ import CommentInputView from './commentinputview.js';
10
+ import type { Locale } from 'ckeditor5/src/utils.js';
11
+ import type { EditorConfig } from 'ckeditor5/src/core.js';
12
+ import { UserView, type User } from 'ckeditor5-collaboration/src/collaboration-core.js';
13
13
  /**
14
14
  * View that represents comment input area for a comment thread. Includes editor, user view and buttons.
15
15
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, 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 _0x4618=['destroy','showInput','commentInputView','editorDestroyed','delegate','extendTemplate','bindTemplate','ck-comment__input-container--active','userView','isFocused','setTemplate','ck-thread__user','bind','div','showButtons','set'];(function(_0x1ab1c5,_0x461842){var _0x55c210=function(_0x1edf44){while(--_0x1edf44){_0x1ab1c5['push'](_0x1ab1c5['shift']());}};_0x55c210(++_0x461842);}(_0x4618,0xd4));var _0x55c2=function(_0x1ab1c5,_0x461842){_0x1ab1c5=_0x1ab1c5-0x0;var _0x55c210=_0x4618[_0x1ab1c5];return _0x55c210;};import{View as _0x172b8f}from'ckeditor5/src/ui';import _0xf02172 from'./commentinputview';import{UserView as _0x1a4191}from'ckeditor5-collaboration/src/collaboration-core';export default class At extends _0x172b8f{constructor(_0x4b7a29,_0x383195,_0x7fbaa1){super(_0x4b7a29),this[_0x55c2('0xe')]=new _0xf02172(_0x4b7a29,_0x7fbaa1),this['commentInputView'][_0x55c2('0x8')](_0x55c2('0xa'))['to'](this['commentInputView']['focusTracker'],_0x55c2('0x5'),this[_0x55c2('0xe')],'value',(_0x30c48e,_0x16abff)=>_0x30c48e||!!_0x16abff),this[_0x55c2('0xb')]('showInput',!0x1),this['on']('change:showInput',()=>{this[_0x55c2('0xd')]&&!this[_0x55c2('0xe')]['editor']&&this[_0x55c2('0xe')]['createEditor']();}),this[_0x55c2('0xe')]['delegate']('editorReady')['to'](this),this[_0x55c2('0xe')][_0x55c2('0x0')](_0x55c2('0xf'))['to'](this),this['userView']=new _0x1a4191(_0x4b7a29,_0x383195),this[_0x55c2('0x4')][_0x55c2('0x1')]({'attributes':{'class':_0x55c2('0x7')}}),this[_0x55c2('0xe')]['extendTemplate']({'attributes':{'class':'ck-thread__input'}}),this[_0x55c2('0x6')]({'tag':_0x55c2('0x9'),'attributes':{'class':['ck-comment__input-container',this[_0x55c2('0x2')]['if'](_0x55c2('0xd'),_0x55c2('0x3'))]},'children':[this[_0x55c2('0x4')],this['commentInputView']]});}[_0x55c2('0xc')](){return this[_0x55c2('0xe')]['destroy']()['then'](()=>super[_0x55c2('0xc')]());}}
23
+ var _0x31b0=['showInput','ck-thread__user','isFocused','bind','delegate','change:showInput','userView','ck-comment__input-container','extendTemplate','createEditor','then','set','editor','editorDestroyed','focusTracker','showButtons','ck-comment__input-container--active','editorReady','setTemplate','destroy','commentInputView','div','bindTemplate','ck-thread__input'];(function(_0x450bd4,_0x31b0b8){var _0xdb9707=function(_0x40cc23){while(--_0x40cc23){_0x450bd4['push'](_0x450bd4['shift']());}};_0xdb9707(++_0x31b0b8);}(_0x31b0,0x186));var _0xdb97=function(_0x450bd4,_0x31b0b8){_0x450bd4=_0x450bd4-0x0;var _0xdb9707=_0x31b0[_0x450bd4];return _0xdb9707;};import{View as _0x322439}from'ckeditor5/src/ui.js';import _0x208286 from'./commentinputview.js';import{UserView as _0x120987}from'ckeditor5-collaboration/src/collaboration-core.js';export default class Ct extends _0x322439{constructor(_0x43b436,_0x427ea0,_0x55be84){super(_0x43b436),this[_0xdb97('0xe')]=new _0x208286(_0x43b436,_0x55be84),this[_0xdb97('0xe')][_0xdb97('0x15')](_0xdb97('0x9'))['to'](this[_0xdb97('0xe')][_0xdb97('0x8')],_0xdb97('0x14'),this[_0xdb97('0xe')],'value',(_0x4770e5,_0x32b23b)=>_0x4770e5||!!_0x32b23b),this[_0xdb97('0x5')]('showInput',!0x1),this['on'](_0xdb97('0x17'),()=>{this[_0xdb97('0x12')]&&!this['commentInputView'][_0xdb97('0x6')]&&this[_0xdb97('0xe')][_0xdb97('0x3')]();}),this[_0xdb97('0xe')]['delegate'](_0xdb97('0xb'))['to'](this),this[_0xdb97('0xe')][_0xdb97('0x16')](_0xdb97('0x7'))['to'](this),this[_0xdb97('0x0')]=new _0x120987(_0x43b436,_0x427ea0),this['userView']['extendTemplate']({'attributes':{'class':_0xdb97('0x13')}}),this[_0xdb97('0xe')][_0xdb97('0x2')]({'attributes':{'class':_0xdb97('0x11')}}),this[_0xdb97('0xc')]({'tag':_0xdb97('0xf'),'attributes':{'class':[_0xdb97('0x1'),this[_0xdb97('0x10')]['if'](_0xdb97('0x12'),_0xdb97('0xa'))]},'children':[this[_0xdb97('0x0')],this[_0xdb97('0xe')]]});}[_0xdb97('0xd')](){return this[_0xdb97('0xe')][_0xdb97('0xd')]()[_0xdb97('0x4')](()=>super[_0xdb97('0xd')]());}}
@@ -1,18 +1,18 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module comments/comments/ui/view/commentthreadview
7
7
  * @publicApi
8
8
  */
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>;
9
+ import { type Locale } from 'ckeditor5/src/utils.js';
10
+ import { type User } from 'ckeditor5-collaboration/src/collaboration-core.js';
11
+ import { ButtonView, type TemplateDefinition, type ViewCollection } from 'ckeditor5/src/ui.js';
12
+ import BaseCommentThreadView from './basecommentthreadview.js';
13
+ import type { CommentThread } from '../../commentsrepository.js';
14
+ import type { CommentThreadConfig } from '../../../config.js';
15
+ declare const CommentThreadView_base: import("ckeditor5/src/utils.js").Mixed<typeof BaseCommentThreadView, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin.js").ConfirmApi>;
16
16
  /**
17
17
  * The default view for comment thread.
18
18
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, 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 _0x4690=['get','listenTo','high','removeCommentThread','cancelConfirm','element','_createResolveButton','remove','label','locale','commentThreadHeaderView','.ck-thread__container','ck-comment--resolve','showConfirm','execute','isConfirm','Resolve','bind','isActive','ck-thread--','isSystemComment','_cancelAllConfirms','addMany','commentThreadChildren','render','containerElement','ck-thread--active','fire','unbind','change:archivedAt','commentsListView','isEnabled','ck-thread--unlinked','getTemplate','ck-reset_all-excluded','tooltip','div','isVisible','isResolved','isReadOnly','setTemplate','placeholder','length','removeButton','check','change:isActive','actionBar','commentThreadInputView','isResolvable','actionIndicator','ck-thread--remove-confirmation','commentViews','bindTemplate','_boundFirstCommentView','add','isUnlinked','set','has','_bindFirstCommentView','resolveButton','_model'];(function(_0x4d61fb,_0x469028){const _0x5907d1=function(_0x103eda){while(--_0x103eda){_0x4d61fb['push'](_0x4d61fb['shift']());}};_0x5907d1(++_0x469028);}(_0x4690,0x1a9));const _0x5907=function(_0x4d61fb,_0x469028){_0x4d61fb=_0x4d61fb-0x0;let _0x5907d1=_0x4690[_0x4d61fb];return _0x5907d1;};import{ConfirmMixin as _0x41d1af}from'ckeditor5-collaboration/src/collaboration-core';import{ButtonView as _0x4be99e}from'ckeditor5/src/ui';import{icons as _0x2eba6a}from'ckeditor5/src/core';import _0x435299 from'./basecommentthreadview';import{getTranslation as _0x1aa497}from'../../../utils/common-translations';export default class ft extends _0x41d1af(_0x435299){constructor(_0x2a41c6,_0xe40f06,_0x363c65,_0x294f86){super(_0x2a41c6,_0xe40f06,_0x363c65,_0x294f86),this[_0x5907('0x19')]=this['createCollection'](),this[_0x5907('0x19')][_0x5907('0x18')]([this[_0x5907('0x20')],this[_0x5907('0x31')]]),this[_0x5907('0x1')]['archivedAt']&&this['commentThreadChildren'][_0x5907('0x38')](this[_0x5907('0xc')],0x0),this[_0x5907('0x1')]['on'](_0x5907('0x1f'),(_0x2bba28,_0x467fb2,_0x15d760)=>{_0x15d760?this[_0x5907('0x19')][_0x5907('0x3b')](this['commentThreadHeaderView'])||this[_0x5907('0x19')][_0x5907('0x38')](this[_0x5907('0xc')],0x0):this['commentThreadChildren'][_0x5907('0x9')](this[_0x5907('0xc')]);}),this[_0x5907('0x3a')]('actionIndicator',null),this[_0x5907('0x1b')]=null,this[_0x5907('0x37')]=null,this[_0x5907('0xb')]=_0x2a41c6,this[_0x5907('0x0')]=this[_0x5907('0x8')](),this[_0x5907('0x2a')](this[_0x5907('0x23')]()),this['on'](_0x5907('0x2f'),(_0x496c52,_0x2bfa10,_0x543a6c)=>{_0x543a6c||this[_0x5907('0x17')]();}),this[_0x5907('0x3')](this[_0x5907('0x1')],'change:isReadOnly',(_0xd69240,_0x4aa709,_0x3a6710)=>{_0x3a6710&&this[_0x5907('0x17')]();}),this[_0x5907('0x2c')]>0x0&&this[_0x5907('0x3c')](),this['listenTo'](this[_0x5907('0x20')][_0x5907('0x35')],_0x5907('0x38'),()=>{this[_0x5907('0x3c')]();});}['getTemplate'](){const _0x28f45f=this[_0x5907('0x36')];return{'tag':_0x5907('0x26'),'attributes':{'class':['ck-thread',_0x5907('0x24'),_0x28f45f['if'](_0x5907('0x14'),_0x5907('0x1c')),_0x28f45f['if'](_0x5907('0x39'),_0x5907('0x22')),_0x28f45f['if'](_0x5907('0x11'),_0x5907('0x34')),_0x28f45f['to'](_0x5907('0x33'),_0x389022=>_0x389022?_0x5907('0x15')+_0x389022:'')],'data-thread-id':this['_model']['id'],'tabindex':-0x1},'children':[{'tag':_0x5907('0x26'),'attributes':{'class':'ck-thread__container'},'children':this['commentThreadChildren']}]};}[_0x5907('0x1a')](){super[_0x5907('0x1a')](),this['containerElement']=this[_0x5907('0x7')]['querySelector'](_0x5907('0xd'));}[_0x5907('0x17')](){this[_0x5907('0x6')]();for(const _0x3d6546 of this['commentsListView'][_0x5907('0x35')])_0x3d6546[_0x5907('0x6')]();}[_0x5907('0x3c')](){const {locale:_0x245029}=this,_0x28ef65=this[_0x5907('0x20')]['commentViews'][_0x5907('0x2')](0x0);_0x28ef65===this['_boundFirstCommentView']||_0x28ef65[_0x5907('0x16')]||(this['_boundFirstCommentView']=_0x28ef65,this[_0x5907('0x1e')](_0x5907('0x33')),this[_0x5907('0x13')](_0x5907('0x33'))['to'](_0x28ef65,'actionIndicator',_0x44a722=>_0x5907('0x9')===_0x44a722?_0x5907('0x9'):null),_0x28ef65[_0x5907('0x2b')]=_0x1aa497(_0x245029,'Write\x20a\x20comment...'),_0x28ef65[_0x5907('0x2d')]['on'](_0x5907('0x10'),_0x15d583=>{_0x15d583['stop'](),this[_0x5907('0xf')](_0x1aa497(_0x245029,'Delete\x20comment\x20thread?'),this[_0x5907('0x1b')])['then'](()=>{this[_0x5907('0x1d')](_0x5907('0x5'));});},{'priority':_0x5907('0x4')}),_0x28ef65[_0x5907('0x30')]['add'](this[_0x5907('0x0')],0x0));}[_0x5907('0x8')](){const _0xe0cc59=new _0x4be99e(this[_0x5907('0xb')]);return _0xe0cc59[_0x5907('0xa')]=_0x1aa497(this['locale'],'Resolve'),_0xe0cc59[_0x5907('0x25')]=_0x1aa497(this['locale'],_0x5907('0x12')),_0xe0cc59['icon']=_0x2eba6a[_0x5907('0x2e')],_0xe0cc59['extendTemplate']({'attributes':{'class':_0x5907('0xe')}}),_0xe0cc59[_0x5907('0x13')](_0x5907('0x21'))['to'](this[_0x5907('0x1')],_0x5907('0x29'),_0x529aa8=>!_0x529aa8),_0xe0cc59['bind'](_0x5907('0x27'))['to'](this[_0x5907('0x1')],_0x5907('0x32'),this[_0x5907('0x1')],_0x5907('0x28'),(_0x12496f,_0x1aea73)=>_0x12496f&&!_0x1aea73),_0xe0cc59['on']('execute',()=>{this[_0x5907('0x1d')]('resolveCommentThread',this[_0x5907('0x1')]['id']);}),_0xe0cc59;}}
23
+ const _0x137f=['locale','set','actionBar','_bindFirstCommentView','remove','length','setTemplate','isVisible','bind','tooltip','element','ck-reset_all-excluded','.ck-thread__container','isUnlinked','ck-thread__container','actionIndicator','high','removeCommentThread','commentThreadInputView','_model','change:isReadOnly','div','showConfirm','isActive','listenTo','execute','removeButton','isResolved','commentThreadHeaderView','extendTemplate','_boundFirstCommentView','render','icon','addMany','resolveButton','ck-thread--remove-confirmation','add','get','isReadOnly','change:isActive','ck-thread--','isEnabled','commentViews','querySelector','getTemplate','change:archivedAt','placeholder','resolveCommentThread','commentsListView','_cancelAllConfirms','cancelConfirm','ck-thread--unlinked','label','isConfirm','commentThreadChildren','ck-thread--active','fire','_createResolveButton','containerElement','createCollection','Resolve','bindTemplate','check'];(function(_0x26565f,_0x137fd3){const _0xe29800=function(_0x33c268){while(--_0x33c268){_0x26565f['push'](_0x26565f['shift']());}};_0xe29800(++_0x137fd3);}(_0x137f,0x105));const _0xe298=function(_0x26565f,_0x137fd3){_0x26565f=_0x26565f-0x0;let _0xe29800=_0x137f[_0x26565f];return _0xe29800;};import{ConfirmMixin as _0x3a74b6}from'ckeditor5-collaboration/src/collaboration-core.js';import{ButtonView as _0x24fa8f}from'ckeditor5/src/ui.js';import{icons as _0x174514}from'ckeditor5/src/core.js';import _0x337d3b from'./basecommentthreadview.js';import{getTranslation as _0x4a2629}from'../../../utils/common-translations.js';export default class ft extends _0x3a74b6(_0x337d3b){constructor(_0x427707,_0x22aeb0,_0x341330,_0x351463){super(_0x427707,_0x22aeb0,_0x341330,_0x351463),this['commentThreadChildren']=this[_0xe298('0x32')](),this[_0xe298('0x2d')][_0xe298('0x18')]([this[_0xe298('0x27')],this[_0xe298('0x9')]]),this[_0xe298('0xa')]['archivedAt']&&this[_0xe298('0x2d')][_0xe298('0x1b')](this[_0xe298('0x13')],0x0),this[_0xe298('0xa')]['on'](_0xe298('0x24'),(_0xfca9c4,_0x578b7c,_0x37d099)=>{_0x37d099?this[_0xe298('0x2d')]['has'](this['commentThreadHeaderView'])||this[_0xe298('0x2d')]['add'](this[_0xe298('0x13')],0x0):this[_0xe298('0x2d')][_0xe298('0x3a')](this[_0xe298('0x13')]);}),this[_0xe298('0x37')](_0xe298('0x6'),null),this[_0xe298('0x31')]=null,this[_0xe298('0x15')]=null,this['locale']=_0x427707,this['resolveButton']=this[_0xe298('0x30')](),this[_0xe298('0x3c')](this[_0xe298('0x23')]()),this['on'](_0xe298('0x1e'),(_0x3eec1c,_0x426968,_0x3cd7a5)=>{_0x3cd7a5||this[_0xe298('0x28')]();}),this[_0xe298('0xf')](this['_model'],_0xe298('0xb'),(_0x5850a7,_0x59a8d3,_0x53d4d7)=>{_0x53d4d7&&this['_cancelAllConfirms']();}),this[_0xe298('0x3b')]>0x0&&this[_0xe298('0x39')](),this['listenTo'](this[_0xe298('0x27')]['commentViews'],_0xe298('0x1b'),()=>{this['_bindFirstCommentView']();});}[_0xe298('0x23')](){const _0x48695e=this[_0xe298('0x34')];return{'tag':_0xe298('0xc'),'attributes':{'class':['ck-thread',_0xe298('0x2'),_0x48695e['if'](_0xe298('0xe'),_0xe298('0x2e')),_0x48695e['if'](_0xe298('0x4'),_0xe298('0x2a')),_0x48695e['if'](_0xe298('0x2c'),_0xe298('0x1a')),_0x48695e['to'](_0xe298('0x6'),_0xd21011=>_0xd21011?_0xe298('0x1f')+_0xd21011:'')],'data-thread-id':this[_0xe298('0xa')]['id'],'tabindex':-0x1},'children':[{'tag':_0xe298('0xc'),'attributes':{'class':_0xe298('0x5')},'children':this[_0xe298('0x2d')]}]};}[_0xe298('0x16')](){super['render'](),this[_0xe298('0x31')]=this[_0xe298('0x1')][_0xe298('0x22')](_0xe298('0x3'));}[_0xe298('0x28')](){this[_0xe298('0x29')]();for(const _0xf4e0b4 of this[_0xe298('0x27')][_0xe298('0x21')])_0xf4e0b4[_0xe298('0x29')]();}[_0xe298('0x39')](){const {locale:_0x3b36b8}=this,_0xd19ce=this[_0xe298('0x27')]['commentViews'][_0xe298('0x1c')](0x0);_0xd19ce===this['_boundFirstCommentView']||_0xd19ce['isSystemComment']||(this[_0xe298('0x15')]=_0xd19ce,this['unbind']('actionIndicator'),this[_0xe298('0x3e')](_0xe298('0x6'))['to'](_0xd19ce,_0xe298('0x6'),_0xd2441=>_0xe298('0x3a')===_0xd2441?_0xe298('0x3a'):null),_0xd19ce[_0xe298('0x25')]=_0x4a2629(_0x3b36b8,'Write\x20a\x20comment...'),_0xd19ce[_0xe298('0x11')]['on'](_0xe298('0x10'),_0x4354b6=>{_0x4354b6['stop'](),this[_0xe298('0xd')](_0x4a2629(_0x3b36b8,'Delete\x20comment\x20thread?'),this[_0xe298('0x31')])['then'](()=>{this['fire'](_0xe298('0x8'));});},{'priority':_0xe298('0x7')}),_0xd19ce[_0xe298('0x38')]['add'](this[_0xe298('0x19')],0x0));}[_0xe298('0x30')](){const _0x2f66d0=new _0x24fa8f(this['locale']);return _0x2f66d0[_0xe298('0x2b')]=_0x4a2629(this[_0xe298('0x36')],_0xe298('0x33')),_0x2f66d0[_0xe298('0x0')]=_0x4a2629(this[_0xe298('0x36')],_0xe298('0x33')),_0x2f66d0[_0xe298('0x17')]=_0x174514[_0xe298('0x35')],_0x2f66d0[_0xe298('0x14')]({'attributes':{'class':'ck-comment--resolve'}}),_0x2f66d0[_0xe298('0x3e')](_0xe298('0x20'))['to'](this[_0xe298('0xa')],_0xe298('0x1d'),_0x14bc2d=>!_0x14bc2d),_0x2f66d0[_0xe298('0x3e')](_0xe298('0x3d'))['to'](this[_0xe298('0xa')],'isResolvable',this[_0xe298('0xa')],_0xe298('0x12'),(_0xf10b00,_0x3d5752)=>_0xf10b00&&!_0x3d5752),_0x2f66d0['on'](_0xe298('0x10'),()=>{this[_0xe298('0x2f')](_0xe298('0x26'),this[_0xe298('0xa')]['id']);}),_0x2f66d0;}}
@@ -1,19 +1,19 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module comments/comments/ui/view/commentview
7
7
  * @publicApi
8
8
  */
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>;
9
+ import { type Locale } from 'ckeditor5/src/utils.js';
10
+ import { ButtonView, type TemplateDefinition, type ViewCollection, type DropdownView } from 'ckeditor5/src/ui.js';
11
+ import { UserView } from 'ckeditor5-collaboration/src/collaboration-core.js';
12
+ import BaseCommentView from './basecommentview.js';
13
+ import type { Comment } from '../../commentsrepository.js';
14
+ import type CommentInputView from './commentinputview.js';
15
+ import type { CommentViewConfig } from '../../../config.js';
16
+ declare const CommentView_base: import("ckeditor5/src/utils.js").Mixed<typeof BaseCommentView, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin.js").ConfirmApi>;
17
17
  /**
18
18
  * The default view for comment.
19
19
  */