@ckeditor/ckeditor5-comments 40.2.0 → 41.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/build/comments.js +2 -2
  4. package/lang/translations/af.po +1 -1
  5. package/lang/translations/ar.po +1 -1
  6. package/lang/translations/bg.po +1 -1
  7. package/lang/translations/bn.po +1 -1
  8. package/lang/translations/bs.po +1 -1
  9. package/lang/translations/ca.po +1 -1
  10. package/lang/translations/cs.po +1 -1
  11. package/lang/translations/da.po +1 -1
  12. package/lang/translations/de-ch.po +1 -1
  13. package/lang/translations/de.po +1 -1
  14. package/lang/translations/el.po +1 -1
  15. package/lang/translations/en-au.po +1 -1
  16. package/lang/translations/en.po +1 -1
  17. package/lang/translations/es-co.po +1 -1
  18. package/lang/translations/es.po +1 -1
  19. package/lang/translations/et.po +1 -1
  20. package/lang/translations/fa.po +1 -1
  21. package/lang/translations/fi.po +1 -1
  22. package/lang/translations/fr.po +1 -1
  23. package/lang/translations/gl.po +1 -1
  24. package/lang/translations/he.po +1 -1
  25. package/lang/translations/hi.po +1 -1
  26. package/lang/translations/hr.po +1 -1
  27. package/lang/translations/hu.po +1 -1
  28. package/lang/translations/id.po +1 -1
  29. package/lang/translations/it.po +1 -1
  30. package/lang/translations/ja.po +1 -1
  31. package/lang/translations/jv.po +1 -1
  32. package/lang/translations/ko.po +1 -1
  33. package/lang/translations/lt.po +1 -1
  34. package/lang/translations/lv.po +1 -1
  35. package/lang/translations/ms.po +1 -1
  36. package/lang/translations/nl.po +1 -1
  37. package/lang/translations/no.po +1 -1
  38. package/lang/translations/pl.po +1 -1
  39. package/lang/translations/pt-br.po +1 -1
  40. package/lang/translations/pt.po +1 -1
  41. package/lang/translations/ro.po +1 -1
  42. package/lang/translations/ru.po +1 -1
  43. package/lang/translations/sk.po +1 -1
  44. package/lang/translations/sq.po +1 -1
  45. package/lang/translations/sr-latn.po +1 -1
  46. package/lang/translations/sr.po +1 -1
  47. package/lang/translations/sv.po +1 -1
  48. package/lang/translations/th.po +1 -1
  49. package/lang/translations/tk.po +1 -1
  50. package/lang/translations/tr.po +1 -1
  51. package/lang/translations/tt.po +1 -1
  52. package/lang/translations/ug.po +1 -1
  53. package/lang/translations/uk.po +1 -1
  54. package/lang/translations/ur.po +1 -1
  55. package/lang/translations/vi.po +1 -1
  56. package/lang/translations/zh-cn.po +1 -1
  57. package/lang/translations/zh.po +1 -1
  58. package/package.json +4 -3
  59. package/src/annotations/annotation.d.ts +7 -7
  60. package/src/annotations/annotation.js +2 -2
  61. package/src/annotations/annotationcollection.d.ts +4 -4
  62. package/src/annotations/annotationcollection.js +2 -2
  63. package/src/annotations/annotations.d.ts +7 -7
  64. package/src/annotations/annotations.js +2 -2
  65. package/src/annotations/annotationsuis.d.ts +6 -6
  66. package/src/annotations/annotationsuis.js +2 -2
  67. package/src/annotations/editorannotations.d.ts +5 -5
  68. package/src/annotations/editorannotations.js +2 -2
  69. package/src/annotations/inlineannotations.d.ts +7 -7
  70. package/src/annotations/inlineannotations.js +2 -2
  71. package/src/annotations/narrowsidebar.d.ts +7 -7
  72. package/src/annotations/narrowsidebar.js +2 -2
  73. package/src/annotations/sidebar.d.ts +6 -6
  74. package/src/annotations/sidebar.js +2 -2
  75. package/src/annotations/view/annotationcounterbuttonview.d.ts +3 -3
  76. package/src/annotations/view/annotationcounterbuttonview.js +2 -2
  77. package/src/annotations/view/annotationview.d.ts +3 -3
  78. package/src/annotations/view/annotationview.js +2 -2
  79. package/src/annotations/view/sidebaritemview.d.ts +3 -3
  80. package/src/annotations/view/sidebaritemview.js +2 -2
  81. package/src/annotations/view/sidebarview.d.ts +3 -3
  82. package/src/annotations/view/sidebarview.js +2 -2
  83. package/src/annotations/widesidebar.d.ts +6 -6
  84. package/src/annotations/widesidebar.js +2 -2
  85. package/src/augmentation.d.ts +2 -2
  86. package/src/augmentation.js +1 -1
  87. package/src/comments/addcommentthreadcommand.d.ts +2 -2
  88. package/src/comments/addcommentthreadcommand.js +2 -2
  89. package/src/comments/commentsarchive.d.ts +5 -5
  90. package/src/comments/commentsarchive.js +2 -2
  91. package/src/comments/commentsarchiveui.d.ts +6 -6
  92. package/src/comments/commentsarchiveui.js +2 -2
  93. package/src/comments/commentsediting.d.ts +7 -7
  94. package/src/comments/commentsediting.js +2 -2
  95. package/src/comments/commentsrepository.d.ts +12 -12
  96. package/src/comments/commentsrepository.js +2 -2
  97. package/src/comments/commentsui.d.ts +6 -6
  98. package/src/comments/commentsui.js +2 -2
  99. package/src/comments/integrations/commentsrestrictededitingmode.d.ts +2 -2
  100. package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
  101. package/src/comments/integrations/importword.d.ts +2 -2
  102. package/src/comments/integrations/importword.js +2 -2
  103. package/src/comments/ui/commenteditor/commenteditor.d.ts +5 -5
  104. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  105. package/src/comments/ui/commenteditor/commenteditorui.d.ts +4 -4
  106. package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
  107. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +5 -5
  108. package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
  109. package/src/comments/ui/commentthreadcontroller.d.ts +5 -5
  110. package/src/comments/ui/commentthreadcontroller.js +2 -2
  111. package/src/comments/ui/view/basecommentthreadview.d.ts +9 -9
  112. package/src/comments/ui/view/basecommentthreadview.js +2 -2
  113. package/src/comments/ui/view/basecommentview.d.ts +5 -5
  114. package/src/comments/ui/view/basecommentview.js +2 -2
  115. package/src/comments/ui/view/collapsedcommentsview.d.ts +3 -3
  116. package/src/comments/ui/view/collapsedcommentsview.js +2 -2
  117. package/src/comments/ui/view/commentcontentview.d.ts +3 -3
  118. package/src/comments/ui/view/commentcontentview.js +2 -2
  119. package/src/comments/ui/view/commentinputview.d.ts +5 -5
  120. package/src/comments/ui/view/commentinputview.js +2 -2
  121. package/src/comments/ui/view/commentsarchiveview.d.ts +4 -4
  122. package/src/comments/ui/view/commentsarchiveview.js +2 -2
  123. package/src/comments/ui/view/commentslistview.d.ts +6 -6
  124. package/src/comments/ui/view/commentslistview.js +2 -2
  125. package/src/comments/ui/view/commentthreadheaderview.d.ts +4 -4
  126. package/src/comments/ui/view/commentthreadheaderview.js +2 -2
  127. package/src/comments/ui/view/commentthreadinputview.d.ts +6 -6
  128. package/src/comments/ui/view/commentthreadinputview.js +2 -2
  129. package/src/comments/ui/view/commentthreadview.d.ts +8 -8
  130. package/src/comments/ui/view/commentthreadview.js +2 -2
  131. package/src/comments/ui/view/commentview.d.ts +9 -9
  132. package/src/comments/ui/view/commentview.js +2 -2
  133. package/src/comments.d.ts +11 -11
  134. package/src/comments.js +2 -2
  135. package/src/commentsonly.d.ts +3 -3
  136. package/src/commentsonly.js +2 -2
  137. package/src/config.d.ts +4 -4
  138. package/src/config.js +1 -1
  139. package/src/index.d.ts +21 -21
  140. package/src/index.js +2 -2
  141. package/src/utils/common-translations.d.ts +2 -2
  142. package/src/utils/common-translations.js +2 -2
  143. package/src/utils/createmutationobserver.d.ts +1 -1
  144. package/src/utils/createmutationobserver.js +2 -2
  145. package/theme/annotation-inline.css +1 -1
  146. package/theme/annotation.css +5 -1
  147. package/theme/comment.css +1 -1
  148. package/theme/commentinput.css +1 -1
  149. package/theme/commentmarker.css +1 -1
  150. package/theme/commentsarchive.css +2 -2
  151. package/theme/commentthread.css +5 -1
  152. package/theme/icons/add-comment.svg +1 -1
  153. package/theme/icons/comments-archive.svg +1 -1
  154. package/theme/icons/edit-comment.svg +1 -1
  155. package/theme/icons/remove-comment.svg +1 -1
  156. package/theme/sidebar-narrow.css +1 -1
  157. 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 _0x44d0=['editorReady','create','_createCancelButton','stop','cancel','fire','value','withText','focusPrevious','tab','element','setData','then','model','forEach','focusNext','div','length','set','Reply','initialData','editor','bindTemplate','listenTo','submit','isEnabled','createEditor','keystrokes','focusTracker','placeholder','shift\x20+\x20tab','cancelButtonView','Reply...','_editorConfig','change','label','submitButtonView','showButtons','execute','setTemplate','destroy','bind','_isDestroyed','view','firstChild','ck-comment__input-actions--cancel','ck-comment__input-actions--active','_editorCreationPromise','submitLabel','ck-comment__input-actions--submit','render','add','_initializeFocusCycling','disabledSubmit','TOO_LONG_COMMENT_ALERT','high','extendTemplate','focus','ck-comment__input-actions','editorDestroyed','getData','Cancel','Esc','_createSubmitButton','low'];(function(_0x1ad1a2,_0x44d037){const _0x17cf4c=function(_0x21a60e){while(--_0x21a60e){_0x1ad1a2['push'](_0x1ad1a2['shift']());}};_0x17cf4c(++_0x44d037);}(_0x44d0,0xd4));const _0x17cf=function(_0x1ad1a2,_0x44d037){_0x1ad1a2=_0x1ad1a2-0x0;let _0x17cf4c=_0x44d0[_0x1ad1a2];return _0x17cf4c;};import{View as _0x4ef3d9,ViewCollection as _0x313e93,FocusCycler as _0x2dead7,ButtonView as _0x48f286}from'ckeditor5/src/ui';import{FocusTracker as _0x2d82e7,KeystrokeHandler as _0x251915}from'ckeditor5/src/utils';import _0x1adbfc from'../commenteditor/commenteditor';import{getTranslation as _0x22eb1d}from'../../../utils/common-translations';export default class Zt extends _0x4ef3d9{constructor(_0x53357d,_0x4bc309={}){super(_0x53357d),this[_0x17cf('0x4')]=null,this[_0x17cf('0x10')]=_0x4bc309,this[_0x17cf('0xa')]=new _0x251915(),this[_0x17cf('0xb')]=new _0x2d82e7(),this[_0x17cf('0x1')](_0x17cf('0x36'),_0x4bc309[_0x17cf('0x3')]||''),this['set']('disabledSubmit',!0x1),this[_0x17cf('0x1')](_0x17cf('0x14'),!0x0),this[_0x17cf('0x1')](_0x17cf('0xc'),_0x22eb1d(_0x53357d,_0x17cf('0xf'))),this[_0x17cf('0x1')](_0x17cf('0x1f'),_0x22eb1d(_0x53357d,_0x17cf('0x2'))),this[_0x17cf('0x13')]=this['_createSubmitButton'](),this[_0x17cf('0xe')]=this[_0x17cf('0x32')](),this[_0x17cf('0x16')]({'tag':_0x17cf('0x40'),'attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':_0x17cf('0x40'),'attributes':{'class':[_0x17cf('0x29'),this[_0x17cf('0x5')]['if']('showButtons',_0x17cf('0x1d'))]},'children':[this['submitButtonView'],this[_0x17cf('0xe')]]}]}),this['keystrokes'][_0x17cf('0x1')](_0x17cf('0x2d'),(_0x33917d,_0x4eb101)=>{this[_0x17cf('0xe')][_0x17cf('0x35')](_0x17cf('0x15')),_0x4eb101();}),this['on'](_0x17cf('0x7'),(_0xc15e3b,_0x50cc76)=>{_0x50cc76['length']>0xfde8?(alert(_0x22eb1d(_0x53357d,_0x17cf('0x25'),[_0x50cc76[_0x17cf('0x0')],0xfde8])),_0xc15e3b[_0x17cf('0x33')]()):this[_0x17cf('0x4')][_0x17cf('0x3b')]('');},{'priority':_0x17cf('0x26')});}[_0x17cf('0x21')](){super[_0x17cf('0x21')](),this[_0x17cf('0xa')][_0x17cf('0x6')](this[_0x17cf('0x3a')]),this['focusTracker'][_0x17cf('0x22')](this[_0x17cf('0x3a')]);}[_0x17cf('0x9')](){return this[_0x17cf('0x4')]||(this['editor']=new _0x1adbfc(this[_0x17cf('0x10')]),this[_0x17cf('0x1e')]=this[_0x17cf('0x4')][_0x17cf('0x31')]()[_0x17cf('0x3c')](()=>{if(this[_0x17cf('0x19')])return;const _0x2204fc=this[_0x17cf('0x4')];this[_0x17cf('0x3a')]['insertBefore'](_0x2204fc['ui'][_0x17cf('0x3a')],this[_0x17cf('0x3a')][_0x17cf('0x1b')]),_0x2204fc[_0x17cf('0x3d')]['document']['on'](_0x17cf('0x11'),()=>this[_0x17cf('0x36')]=_0x2204fc[_0x17cf('0x2b')]()),_0x2204fc[_0x17cf('0x18')](_0x17cf('0xc'))['to'](this),this[_0x17cf('0x23')](this[_0x17cf('0x4')]),this[_0x17cf('0x35')](_0x17cf('0x30'),this[_0x17cf('0x4')]);})),this[_0x17cf('0x1e')];}['focus'](){this[_0x17cf('0x4')]&&this[_0x17cf('0x4')][_0x17cf('0x28')]();}async[_0x17cf('0x17')](){this['_isDestroyed']||(this[_0x17cf('0x19')]=!0x0,this[_0x17cf('0x4')]&&(await this['_editorCreationPromise'],await this[_0x17cf('0x4')]['destroy'](),this[_0x17cf('0x35')](_0x17cf('0x2a'),this[_0x17cf('0x4')])),await super[_0x17cf('0x17')]());}[_0x17cf('0x2e')](){const {locale:_0x2520bd}=this,_0x334dc9=new _0x48f286(_0x2520bd);return _0x334dc9[_0x17cf('0x27')]({'attributes':{'class':[_0x17cf('0x20')]}}),_0x334dc9[_0x17cf('0x37')]=!0x0,_0x334dc9['bind']('label')['to'](this,_0x17cf('0x1f')),_0x334dc9['on'](_0x17cf('0x15'),()=>{this['fire']('submit',this['value']);}),_0x334dc9[_0x17cf('0x18')](_0x17cf('0x8'))['to'](this,_0x17cf('0x36'),this,_0x17cf('0x24'),(_0x123b63,_0x204e4b)=>!_0x204e4b&&!!_0x123b63['trim']()),_0x334dc9;}['_createCancelButton'](){const {locale:_0x3b516a}=this,_0x363bab=new _0x48f286(_0x3b516a);return _0x363bab[_0x17cf('0x27')]({'attributes':{'class':[_0x17cf('0x1c')]}}),_0x363bab[_0x17cf('0x12')]=_0x22eb1d(_0x3b516a,_0x17cf('0x2c')),_0x363bab[_0x17cf('0x37')]=!0x0,_0x363bab['on']('execute',()=>{this[_0x17cf('0x4')][_0x17cf('0x3b')](''),this[_0x17cf('0x35')](_0x17cf('0x34'));}),_0x363bab;}[_0x17cf('0x23')](_0x4a1ee8){const _0x3c13cb=this['focusTracker'],_0x4aad76=new _0x313e93();[_0x4a1ee8['ui'][_0x17cf('0x1a')],this[_0x17cf('0x13')],this[_0x17cf('0xe')]][_0x17cf('0x3e')](_0x37a780=>{_0x4aad76[_0x17cf('0x22')](_0x37a780),_0x3c13cb[_0x17cf('0x22')](_0x37a780[_0x17cf('0x3a')]);});const _0x29dbe8=new _0x2dead7({'focusables':_0x4aad76,'focusTracker':_0x3c13cb});this[_0x17cf('0xa')][_0x17cf('0x1')](_0x17cf('0x39'),(_0x5f1c57,_0x1ea58a)=>{_0x29dbe8[_0x17cf('0x3f')](),_0x1ea58a();},{'priority':_0x17cf('0x2f')}),this[_0x17cf('0xa')][_0x17cf('0x1')](_0x17cf('0xd'),(_0x4619f7,_0x4120ad)=>{_0x29dbe8[_0x17cf('0x38')](),_0x4120ad();},{'priority':_0x17cf('0x2f')});}}
23
+ const _0x35ec=['length','firstChild','_editorCreationPromise','_createCancelButton','setTemplate','submitLabel','focusTracker','div','shift\x20+\x20tab','placeholder','isEnabled','_initializeFocusCycling','set','high','focusNext','bind','element','disabledSubmit','listenTo','editor','ck-comment__input-actions--active','submit','_isDestroyed','editorDestroyed','render','Reply...','ck-comment__input-actions','ck-comment__input-actions--cancel','destroy','add','view','getData','model','submitButtonView','_createSubmitButton','cancel','create','focus','low','createEditor','editorReady','change','fire','setData','Esc','initialData','document','cancelButtonView','execute','keystrokes','insertBefore','extendTemplate','stop','label','_editorConfig','withText','value','then','ck-comment__input-actions--submit','showButtons'];(function(_0x311ceb,_0x35ec34){const _0x598ff3=function(_0x230600){while(--_0x230600){_0x311ceb['push'](_0x311ceb['shift']());}};_0x598ff3(++_0x35ec34);}(_0x35ec,0x132));const _0x598f=function(_0x311ceb,_0x35ec34){_0x311ceb=_0x311ceb-0x0;let _0x598ff3=_0x35ec[_0x311ceb];return _0x598ff3;};import{View as _0x3526c5,ViewCollection as _0x4cb274,FocusCycler as _0x21c66c,ButtonView as _0x2fe751}from'ckeditor5/src/ui.js';import{FocusTracker as _0x23dc5e,KeystrokeHandler as _0x2bea8f}from'ckeditor5/src/utils.js';import _0x36f845 from'../commenteditor/commenteditor.js';import{getTranslation as _0x2ed5d7}from'../../../utils/common-translations.js';export default class Zt extends _0x3526c5{constructor(_0x6eca2f,_0x5b4d39={}){super(_0x6eca2f),this['editor']=null,this[_0x598f('0x30')]=_0x5b4d39,this[_0x598f('0x2b')]=new _0x2bea8f(),this['focusTracker']=new _0x23dc5e(),this['set'](_0x598f('0x32'),_0x5b4d39[_0x598f('0x27')]||''),this[_0x598f('0x6')](_0x598f('0xb'),!0x1),this[_0x598f('0x6')]('showButtons',!0x0),this[_0x598f('0x6')](_0x598f('0x3'),_0x2ed5d7(_0x6eca2f,_0x598f('0x13'))),this['set'](_0x598f('0x3b'),_0x2ed5d7(_0x6eca2f,'Reply')),this[_0x598f('0x1b')]=this['_createSubmitButton'](),this['cancelButtonView']=this[_0x598f('0x39')](),this[_0x598f('0x3a')]({'tag':'div','attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':_0x598f('0x1'),'attributes':{'class':[_0x598f('0x14'),this['bindTemplate']['if'](_0x598f('0x35'),_0x598f('0xe'))]},'children':[this[_0x598f('0x1b')],this['cancelButtonView']]}]}),this[_0x598f('0x2b')][_0x598f('0x6')](_0x598f('0x26'),(_0x4ff573,_0x1e04fe)=>{this[_0x598f('0x29')][_0x598f('0x24')](_0x598f('0x2a')),_0x1e04fe();}),this['on'](_0x598f('0xf'),(_0x1fdb16,_0x456620)=>{_0x456620[_0x598f('0x36')]>0xfde8?(alert(_0x2ed5d7(_0x6eca2f,'TOO_LONG_COMMENT_ALERT',[_0x456620[_0x598f('0x36')],0xfde8])),_0x1fdb16[_0x598f('0x2e')]()):this[_0x598f('0xd')][_0x598f('0x25')]('');},{'priority':_0x598f('0x7')});}['render'](){super[_0x598f('0x12')](),this['keystrokes'][_0x598f('0xc')](this['element']),this[_0x598f('0x0')]['add'](this[_0x598f('0xa')]);}[_0x598f('0x21')](){return this[_0x598f('0xd')]||(this['editor']=new _0x36f845(this['_editorConfig']),this[_0x598f('0x38')]=this[_0x598f('0xd')][_0x598f('0x1e')]()[_0x598f('0x33')](()=>{if(this[_0x598f('0x10')])return;const _0x916710=this[_0x598f('0xd')];this['element'][_0x598f('0x2c')](_0x916710['ui'][_0x598f('0xa')],this[_0x598f('0xa')][_0x598f('0x37')]),_0x916710[_0x598f('0x1a')][_0x598f('0x28')]['on'](_0x598f('0x23'),()=>this['value']=_0x916710[_0x598f('0x19')]()),_0x916710[_0x598f('0x9')](_0x598f('0x3'))['to'](this),this['_initializeFocusCycling'](this[_0x598f('0xd')]),this[_0x598f('0x24')](_0x598f('0x22'),this[_0x598f('0xd')]);})),this[_0x598f('0x38')];}['focus'](){this[_0x598f('0xd')]&&this[_0x598f('0xd')][_0x598f('0x1f')]();}async[_0x598f('0x16')](){this[_0x598f('0x10')]||(this['_isDestroyed']=!0x0,this['editor']&&(await this[_0x598f('0x38')],await this[_0x598f('0xd')][_0x598f('0x16')](),this[_0x598f('0x24')](_0x598f('0x11'),this['editor'])),await super[_0x598f('0x16')]());}[_0x598f('0x1c')](){const {locale:_0x1275b7}=this,_0x4d0ccd=new _0x2fe751(_0x1275b7);return _0x4d0ccd[_0x598f('0x2d')]({'attributes':{'class':[_0x598f('0x34')]}}),_0x4d0ccd['withText']=!0x0,_0x4d0ccd['bind'](_0x598f('0x2f'))['to'](this,'submitLabel'),_0x4d0ccd['on'](_0x598f('0x2a'),()=>{this[_0x598f('0x24')](_0x598f('0xf'),this[_0x598f('0x32')]);}),_0x4d0ccd['bind'](_0x598f('0x4'))['to'](this,_0x598f('0x32'),this,'disabledSubmit',(_0x231cac,_0x4c686b)=>!_0x4c686b&&!!_0x231cac['trim']()),_0x4d0ccd;}['_createCancelButton'](){const {locale:_0x389e1b}=this,_0x2f7b8a=new _0x2fe751(_0x389e1b);return _0x2f7b8a[_0x598f('0x2d')]({'attributes':{'class':[_0x598f('0x15')]}}),_0x2f7b8a[_0x598f('0x2f')]=_0x2ed5d7(_0x389e1b,'Cancel'),_0x2f7b8a[_0x598f('0x31')]=!0x0,_0x2f7b8a['on'](_0x598f('0x2a'),()=>{this[_0x598f('0xd')][_0x598f('0x25')](''),this['fire'](_0x598f('0x1d'));}),_0x2f7b8a;}[_0x598f('0x5')](_0x18f9e2){const _0x5db4ad=this['focusTracker'],_0x3d286e=new _0x4cb274();[_0x18f9e2['ui'][_0x598f('0x18')],this[_0x598f('0x1b')],this[_0x598f('0x29')]]['forEach'](_0x2ae80c=>{_0x3d286e['add'](_0x2ae80c),_0x5db4ad[_0x598f('0x17')](_0x2ae80c[_0x598f('0xa')]);});const _0x4734a7=new _0x21c66c({'focusables':_0x3d286e,'focusTracker':_0x5db4ad});this['keystrokes'][_0x598f('0x6')]('tab',(_0x3c58e3,_0x559c53)=>{_0x4734a7[_0x598f('0x8')](),_0x559c53();},{'priority':_0x598f('0x20')}),this[_0x598f('0x2b')][_0x598f('0x6')](_0x598f('0x2'),(_0x24d30e,_0x207040)=>{_0x4734a7['focusPrevious'](),_0x207040();},{'priority':'low'});}}
@@ -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 _0x2e63=['remove','setTemplate','high','listenTo','render','set','ck-comments-archive__header\x20','add','bindTemplate','element','isEmpty','isActive','COMMENTS_ARCHIVE','arrowleft','auto','ck-comments-archive','_focusables','tab','arrowdown','EMPTY_COMMENTS_ARCHIVE','_focusTracker','length','ck-comments-archive__content','div','destroy','_focusCycler','stopPropagation','focus','ck-hidden','ck-comments-archive__info','_keystrokes'];(function(_0x3f3caf,_0x2e6340){const _0x4f7132=function(_0x594299){while(--_0x594299){_0x3f3caf['push'](_0x3f3caf['shift']());}};_0x4f7132(++_0x2e6340);}(_0x2e63,0x16d));const _0x4f71=function(_0x3f3caf,_0x2e6340){_0x3f3caf=_0x3f3caf-0x0;let _0x4f7132=_0x2e63[_0x3f3caf];return _0x4f7132;};import{View as _0x43c86c,FocusCycler as _0xb5cdb7}from'ckeditor5/src/ui';import{FocusTracker as _0x2ac4ae,KeystrokeHandler as _0x4bb018}from'ckeditor5/src/utils';import{getTranslation as _0x42f5cc}from'../../../utils/common-translations';export default class K extends _0x43c86c{constructor(_0x4e7f41,_0x5271a7){super(_0x4e7f41),this[_0x4f71('0xc')](_0x4f71('0x11'),!_0x5271a7[_0x4f71('0x1c')]),this[_0x4f71('0x1b')]=new _0x2ac4ae(),this['_keystrokes']=new _0x4bb018(),this[_0x4f71('0x17')]=_0x5271a7,this[_0x4f71('0x1')]=new _0xb5cdb7({'focusables':this[_0x4f71('0x17')],'focusTracker':this[_0x4f71('0x1b')],'keystrokeHandler':this[_0x4f71('0x6')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0x4f71('0x18')}}),this['listenTo'](_0x5271a7,_0x4f71('0xe'),()=>{this[_0x4f71('0x11')]=!0x1;}),this[_0x4f71('0xa')](_0x5271a7,_0x4f71('0x7'),(_0x3b4398,_0x39bcb3)=>{_0x39bcb3[_0x4f71('0x12')]&&this[_0x4f71('0x3')](),_0x5271a7[_0x4f71('0x1c')]||(this['isEmpty']=!0x0);});const _0x456b65=this[_0x4f71('0xf')];this[_0x4f71('0x8')]({'tag':_0x4f71('0x1e'),'attributes':{'dir':_0x4f71('0x15'),'class':['ck',_0x4f71('0x16')],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':[_0x4f71('0xd')]},'children':[{'text':_0x42f5cc(_0x4e7f41,_0x4f71('0x13'))}]},{'tag':_0x4f71('0x1e'),'attributes':{'class':[_0x4f71('0x1d')]},'children':[{'tag':_0x4f71('0x1e'),'children':_0x5271a7},{'tag':'p','attributes':{'class':[_0x4f71('0x5'),_0x456b65['if'](_0x4f71('0x11'),_0x4f71('0x4'),_0x9dad61=>!_0x9dad61)]},'children':[{'text':_0x42f5cc(_0x4e7f41,_0x4f71('0x1a'))}]}]}]});}[_0x4f71('0xb')](){super[_0x4f71('0xb')](),this[_0x4f71('0x6')][_0x4f71('0xa')](this[_0x4f71('0x10')]);const _0x45a272=_0xc44632=>_0xc44632[_0x4f71('0x2')]();this[_0x4f71('0x6')][_0x4f71('0xc')]('arrowright',_0x45a272),this[_0x4f71('0x6')][_0x4f71('0xc')](_0x4f71('0x14'),_0x45a272),this[_0x4f71('0x6')][_0x4f71('0xc')]('arrowup',_0x45a272),this[_0x4f71('0x6')][_0x4f71('0xc')](_0x4f71('0x19'),_0x45a272),this['listenTo'](this[_0x4f71('0x10')],'selectstart',(_0x20d154,_0x1c85f9)=>{_0x1c85f9[_0x4f71('0x2')]();},{'priority':_0x4f71('0x9')});}[_0x4f71('0x0')](){super[_0x4f71('0x0')](),this[_0x4f71('0x1b')]['destroy'](),this[_0x4f71('0x6')]['destroy']();}[_0x4f71('0x3')](){this[_0x4f71('0x10')]['focus']();}}
23
+ const _0x2a44=['length','div','destroy','_focusCycler','set','stopPropagation','_focusTracker','arrowleft','isEmpty','render','_keystrokes','ck-comments-archive__info','EMPTY_COMMENTS_ARCHIVE','isActive','ck-comments-archive__header\x20','ck-hidden','element','ck-comments-archive','listenTo','shift\x20+\x20tab','selectstart','remove','COMMENTS_ARCHIVE','ck-comments-archive__content','focus','_focusables','setTemplate','high','arrowright','auto'];(function(_0x17322e,_0x2a440d){const _0x3dff9d=function(_0x4219b0){while(--_0x4219b0){_0x17322e['push'](_0x17322e['shift']());}};_0x3dff9d(++_0x2a440d);}(_0x2a44,0xc5));const _0x3dff=function(_0x17322e,_0x2a440d){_0x17322e=_0x17322e-0x0;let _0x3dff9d=_0x2a44[_0x17322e];return _0x3dff9d;};import{View as _0x585035,FocusCycler as _0x3e3d36}from'ckeditor5/src/ui.js';import{FocusTracker as _0xea953a,KeystrokeHandler as _0x31c9de}from'ckeditor5/src/utils.js';import{getTranslation as _0xea2043}from'../../../utils/common-translations.js';export default class K extends _0x585035{constructor(_0x1e39f9,_0xfeab32){super(_0x1e39f9),this[_0x3dff('0x11')](_0x3dff('0x15'),!_0xfeab32[_0x3dff('0xd')]),this[_0x3dff('0x13')]=new _0xea953a(),this[_0x3dff('0x17')]=new _0x31c9de(),this[_0x3dff('0x8')]=_0xfeab32,this[_0x3dff('0x10')]=new _0x3e3d36({'focusables':this[_0x3dff('0x8')],'focusTracker':this[_0x3dff('0x13')],'keystrokeHandler':this['_keystrokes'],'actions':{'focusPrevious':_0x3dff('0x2'),'focusNext':'tab'}}),this[_0x3dff('0x1')](_0xfeab32,'add',()=>{this[_0x3dff('0x15')]=!0x1;}),this[_0x3dff('0x1')](_0xfeab32,_0x3dff('0x4'),(_0x405387,_0x4bcf08)=>{_0x4bcf08[_0x3dff('0x1a')]&&this[_0x3dff('0x7')](),_0xfeab32[_0x3dff('0xd')]||(this['isEmpty']=!0x0);});const _0x4689da=this['bindTemplate'];this[_0x3dff('0x9')]({'tag':'div','attributes':{'dir':_0x3dff('0xc'),'class':['ck',_0x3dff('0x0')],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':[_0x3dff('0x1b')]},'children':[{'text':_0xea2043(_0x1e39f9,_0x3dff('0x5'))}]},{'tag':_0x3dff('0xe'),'attributes':{'class':[_0x3dff('0x6')]},'children':[{'tag':_0x3dff('0xe'),'children':_0xfeab32},{'tag':'p','attributes':{'class':[_0x3dff('0x18'),_0x4689da['if']('isEmpty',_0x3dff('0x1c'),_0x50713d=>!_0x50713d)]},'children':[{'text':_0xea2043(_0x1e39f9,_0x3dff('0x19'))}]}]}]});}[_0x3dff('0x16')](){super[_0x3dff('0x16')](),this[_0x3dff('0x17')]['listenTo'](this[_0x3dff('0x1d')]);const _0x19a807=_0xf7bbb0=>_0xf7bbb0[_0x3dff('0x12')]();this[_0x3dff('0x17')]['set'](_0x3dff('0xb'),_0x19a807),this[_0x3dff('0x17')][_0x3dff('0x11')](_0x3dff('0x14'),_0x19a807),this[_0x3dff('0x17')]['set']('arrowup',_0x19a807),this[_0x3dff('0x17')][_0x3dff('0x11')]('arrowdown',_0x19a807),this[_0x3dff('0x1')](this['element'],_0x3dff('0x3'),(_0x49aa93,_0x30f409)=>{_0x30f409['stopPropagation']();},{'priority':_0x3dff('0xa')});}[_0x3dff('0xf')](){super[_0x3dff('0xf')](),this[_0x3dff('0x13')][_0x3dff('0xf')](),this[_0x3dff('0x17')][_0x3dff('0xf')]();}[_0x3dff('0x7')](){this[_0x3dff('0x1d')]['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 _0x307f=['resolvedCommentView','authoredAt','Marked\x20as\x20resolved','_rearrangeExpand','_model','get','editorDestroyed','some','_findOptimalIndex','maxCommentCharsWhenCollapsed','isActive','listenTo','CommentView','equal','hasDirtyComment','createCollection','remove','_collapsedCommentsView','weight','resolvedBy','_config','_rearrangeCollapse','bind','resolvedAt','editorReady','editorConfig','removeComment','element','_handleNewCommentModel','_handleInfoComment','commentViews','resolveCommentThread','comments','delegate','change:isEditMode','locale','_updateHasDirtyComment','updateComment','set','viewUid','_shouldCollapse','formatDateTime','refreshVisibleViews','delete','expand','maxThreadTotalWeight','isEditMode','collapse','resolved','visibleViews','_calculatePosition','destroy','insert','length','focus','_handleRemoveCommentModel','from','render','add','change:isResolved'];(function(_0x40ec27,_0x307fa8){const _0x375237=function(_0x55e34b){while(--_0x55e34b){_0x40ec27['push'](_0x40ec27['shift']());}};_0x375237(++_0x307fa8);}(_0x307f,0x174));const _0x3752=function(_0x40ec27,_0x307fa8){_0x40ec27=_0x40ec27-0x0;let _0x375237=_0x307f[_0x40ec27];return _0x375237;};import{View as _0xfa4494}from'ckeditor5/src/ui';import{diff as _0x5c5a25,Collection as _0x11bba3}from'ckeditor5/src/utils';import{getTranslation as _0x100eaa}from'../../../utils/common-translations';import _0x51f265 from'./collapsedcommentsview';export default class Ct extends _0xfa4494{constructor(_0x3bbcde,_0x26cef4,_0x2a9ac7){super(_0x3bbcde),this['set'](_0x3752('0x2'),!0x1),this[_0x3752('0x1a')](_0x3752('0x29'),_0x26cef4[_0x3752('0x14')]['length']),this[_0x3752('0x1a')]('isActive',!0x1),this[_0x3752('0x34')]=_0x26cef4,this[_0x3752('0x8')]=_0x2a9ac7,this[_0x3752('0x12')]=this[_0x3752('0x3')](),this['visibleViews']=this['createCollection'](),this[_0x3752('0x30')]=null,this[_0x3752('0x5')]=new _0x51f265(_0x3bbcde),this['_collapsedCommentsView'][_0x3752('0xa')]('count')['to'](this,_0x3752('0x29'),_0x4d687a=>_0x4d687a-this[_0x3752('0x8')]['maxCommentsWhenCollapsed']);for(const _0x378169 of _0x26cef4[_0x3752('0x14')])this[_0x3752('0x10')](_0x378169);this[_0x3752('0x11')](),this[_0x3752('0x3b')](_0x26cef4[_0x3752('0x14')],'add',(_0xba006,_0x1f5ca0)=>{const _0x34a1f9=this[_0x3752('0x26')](_0x1f5ca0);this[_0x3752('0x29')]++,this['_handleNewCommentModel'](_0x1f5ca0,_0x34a1f9),this[_0x3752('0x1e')]();}),this[_0x3752('0x3b')](_0x26cef4[_0x3752('0x14')],'remove',(_0x26b8e0,_0x3917b7)=>{this[_0x3752('0x29')]--,this[_0x3752('0x2b')](_0x3917b7),this[_0x3752('0x1e')]();}),this[_0x3752('0x3b')](_0x26cef4,'commentUpdated',()=>this[_0x3752('0x1e')]()),this[_0x3752('0x3b')](_0x26cef4,_0x3752('0x2f'),()=>this['_handleInfoComment']()),this['on']('change:isActive',()=>this[_0x3752('0x1e')]()),this['on']('change:hasDirtyComment',()=>this[_0x3752('0x1e')]()),this['setTemplate']({'tag':'ul','attributes':{'class':['ck-thread__comments']},'children':this[_0x3752('0x25')]});}get[_0x3752('0x1c')](){return this['_model'][_0x3752('0x6')]>this[_0x3752('0x8')][_0x3752('0x21')]&&!this[_0x3752('0x3a')]&&!this[_0x3752('0x2')];}[_0x3752('0x2d')](){super['render'](),this[_0x3752('0x1e')]();}[_0x3752('0x2a')](){this[_0x3752('0xf')][_0x3752('0x2a')]();}[_0x3752('0x27')](){this[_0x3752('0x5')][_0x3752('0x27')]();for(const _0x213a1f of this[_0x3752('0x12')])_0x213a1f[_0x3752('0x27')]();super[_0x3752('0x27')]();}[_0x3752('0x1e')](){this[_0x3752('0x1c')]?this['_rearrangeCollapse']():this[_0x3752('0x33')]();}['_handleNewCommentModel'](_0x910b3f,_0x4f8d8c){const _0x5fd9d5=new this[(_0x3752('0x8'))][(_0x3752('0x0'))](this[_0x3752('0x17')],_0x910b3f,{'maxCommentCharsWhenCollapsed':this[_0x3752('0x8')][_0x3752('0x39')],'formatDateTime':this[_0x3752('0x8')][_0x3752('0x1d')],'editorConfig':this['_config']['editorConfig']});_0x5fd9d5[_0x3752('0x1b')]=_0x910b3f['id'],_0x5fd9d5['delegate'](_0x3752('0xe'))['to'](this),_0x5fd9d5[_0x3752('0x15')](_0x3752('0x19'))['to'](this),_0x5fd9d5[_0x3752('0x15')](_0x3752('0x13'))['to'](this),_0x5fd9d5[_0x3752('0x15')](_0x3752('0xc'))['to'](this),_0x5fd9d5['delegate'](_0x3752('0x36'))['to'](this),this['listenTo'](_0x5fd9d5,_0x3752('0x16'),()=>this[_0x3752('0x18')]()),this[_0x3752('0x12')][_0x3752('0x2e')](_0x5fd9d5,_0x4f8d8c);}[_0x3752('0x26')](_0x5e692e){const _0x306964=this['_model'][_0x3752('0x38')](_0x5e692e);return this['resolvedCommentView']?this[_0x3752('0x30')][_0x3752('0x31')]>_0x5e692e['authoredAt']?_0x306964-0x1:_0x306964:_0x306964-0x1;}['_handleInfoComment'](){if(this[_0x3752('0x34')][_0x3752('0x7')]&&this[_0x3752('0x34')]['resolvedAt']){const _0x40e711={'id':_0x3752('0x24'),'author':this[_0x3752('0x34')][_0x3752('0x7')],'authoredAt':this['_model'][_0x3752('0xb')],'content':_0x100eaa(this[_0x3752('0x17')],_0x3752('0x32')),'attributes':{}};this[_0x3752('0x30')]=new this[(_0x3752('0x8'))][(_0x3752('0x0'))](this[_0x3752('0x17')],_0x40e711,{'maxCommentCharsWhenCollapsed':this[_0x3752('0x8')][_0x3752('0x39')],'formatDateTime':this[_0x3752('0x8')][_0x3752('0x1d')],'editorConfig':this[_0x3752('0x8')][_0x3752('0xd')],'isSystemComment':!0x0}),this[_0x3752('0x12')][_0x3752('0x2e')](this['resolvedCommentView'],this[_0x3752('0x34')][_0x3752('0x38')](_0x40e711));}else this[_0x3752('0x30')]&&(this[_0x3752('0x12')][_0x3752('0x4')](this[_0x3752('0x30')]),this[_0x3752('0x30')][_0x3752('0x27')](),this[_0x3752('0x30')]=null);this[_0x3752('0x1e')]();}['_handleRemoveCommentModel'](_0x341a8f){const _0x2185a8=this[_0x3752('0x12')]['remove'](_0x341a8f['id']);this['stopListening'](_0x2185a8),_0x2185a8['isEditMode']&&this[_0x3752('0x18')](),_0x2185a8['destroy']();}[_0x3752('0x18')](){this[_0x3752('0x2')]=Array[_0x3752('0x2c')](this[_0x3752('0x12')])[_0x3752('0x37')](_0x484f3b=>_0x484f3b[_0x3752('0x22')]);}[_0x3752('0x9')](){const _0x28b2a5=function(_0x2a3bea){const _0x4dbc0e=new _0x11bba3();for(const _0x444cfe of _0x2a3bea)_0x4dbc0e[_0x3752('0x2e')](_0x444cfe);return _0x4dbc0e;}(this[_0x3752('0x12')]),_0x54e68d=this[_0x3752('0x5')]['count'];for(let _0x41f490=0x1;_0x41f490<=_0x54e68d;_0x41f490++)_0x28b2a5[_0x3752('0x4')](0x1);for(const _0x40d358 of _0x28b2a5)_0x40d358[_0x3752('0x23')]();_0x54e68d>0x0&&_0x28b2a5[_0x3752('0x2e')](this[_0x3752('0x5')],0x1),ss(_0x5c5a25(Array[_0x3752('0x2c')](this[_0x3752('0x25')]),Array['from'](_0x28b2a5)),this[_0x3752('0x25')],_0x28b2a5);}[_0x3752('0x33')](){ss(_0x5c5a25(Array['from'](this['visibleViews']),Array[_0x3752('0x2c')](this[_0x3752('0x12')])),this[_0x3752('0x25')],this[_0x3752('0x12')]);for(const _0x535fdc of this[_0x3752('0x25')])_0x535fdc[_0x3752('0x20')]();}}function ss(_0x4a0468,_0x333bd3,_0x370c2c){let _0x277a9a=0x0;for(const _0x49fa09 of _0x4a0468)switch(_0x49fa09){case _0x3752('0x28'):_0x333bd3[_0x3752('0x2e')](_0x370c2c[_0x3752('0x35')](_0x277a9a),_0x277a9a),_0x277a9a++;break;case _0x3752('0x1f'):_0x333bd3[_0x3752('0x4')](_0x277a9a);break;case _0x3752('0x1'):_0x277a9a++;}}
23
+ const _0x1a86=['focus','_findOptimalIndex','_collapsedCommentsView','editorConfig','removeComment','add','change:isResolved','createCollection','comments','listenTo','hasDirtyComment','_calculatePosition','some','maxCommentsWhenCollapsed','_shouldCollapse','refreshVisibleViews','remove','_rearrangeExpand','bind','locale','collapse','resolvedAt','delegate','get','isEditMode','commentUpdated','element','resolveCommentThread','destroy','change:hasDirtyComment','change:isActive','_handleRemoveCommentModel','visibleViews','CommentView','updateComment','commentViews','set','from','_model','maxCommentCharsWhenCollapsed','count','editorReady','formatDateTime','editorDestroyed','resolved','_updateHasDirtyComment','render','_config','ck-thread__comments','expand','resolvedBy','isActive','equal','viewUid','weight','insert','stopListening','length','resolvedCommentView','authoredAt','_handleNewCommentModel'];(function(_0x393164,_0x1a8685){const _0x50ec11=function(_0x59fc06){while(--_0x59fc06){_0x393164['push'](_0x393164['shift']());}};_0x50ec11(++_0x1a8685);}(_0x1a86,0x154));const _0x50ec=function(_0x393164,_0x1a8685){_0x393164=_0x393164-0x0;let _0x50ec11=_0x1a86[_0x393164];return _0x50ec11;};import{View as _0x5ea73c}from'ckeditor5/src/ui.js';import{diff as _0x1daf0c,Collection as _0x40f259}from'ckeditor5/src/utils.js';import{getTranslation as _0x5af53b}from'../../../utils/common-translations.js';import _0x5b0900 from'./collapsedcommentsview.js';export default class vt extends _0x5ea73c{constructor(_0x3ff283,_0x59d3cb,_0x54e69b){super(_0x3ff283),this['set'](_0x50ec('0x24'),!0x1),this[_0x50ec('0x1')](_0x50ec('0x16'),_0x59d3cb['comments']['length']),this['set'](_0x50ec('0x10'),!0x1),this['_model']=_0x59d3cb,this[_0x50ec('0xc')]=_0x54e69b,this[_0x50ec('0x0')]=this[_0x50ec('0x21')](),this[_0x50ec('0x3a')]=this['createCollection'](),this[_0x50ec('0x17')]=null,this[_0x50ec('0x1c')]=new _0x5b0900(_0x3ff283),this[_0x50ec('0x1c')][_0x50ec('0x2c')](_0x50ec('0x5'))['to'](this,_0x50ec('0x16'),_0x4f9b1f=>_0x4f9b1f-this[_0x50ec('0xc')][_0x50ec('0x27')]);for(const _0x34b7b8 of _0x59d3cb[_0x50ec('0x22')])this[_0x50ec('0x19')](_0x34b7b8);this['_handleInfoComment'](),this[_0x50ec('0x23')](_0x59d3cb[_0x50ec('0x22')],_0x50ec('0x1f'),(_0x41d4ad,_0x3fe094)=>{const _0xa94446=this[_0x50ec('0x25')](_0x3fe094);this[_0x50ec('0x16')]++,this['_handleNewCommentModel'](_0x3fe094,_0xa94446),this[_0x50ec('0x29')]();}),this['listenTo'](_0x59d3cb[_0x50ec('0x22')],'remove',(_0x2126f3,_0x4d1522)=>{this[_0x50ec('0x16')]--,this[_0x50ec('0x39')](_0x4d1522),this['refreshVisibleViews']();}),this[_0x50ec('0x23')](_0x59d3cb,_0x50ec('0x33'),()=>this['refreshVisibleViews']()),this[_0x50ec('0x23')](_0x59d3cb,_0x50ec('0x20'),()=>this['_handleInfoComment']()),this['on'](_0x50ec('0x38'),()=>this[_0x50ec('0x29')]()),this['on'](_0x50ec('0x37'),()=>this[_0x50ec('0x29')]()),this['setTemplate']({'tag':'ul','attributes':{'class':[_0x50ec('0xd')]},'children':this[_0x50ec('0x3a')]});}get['_shouldCollapse'](){return this[_0x50ec('0x3')][_0x50ec('0x13')]>this[_0x50ec('0xc')]['maxThreadTotalWeight']&&!this[_0x50ec('0x10')]&&!this[_0x50ec('0x24')];}['render'](){super[_0x50ec('0xb')](),this[_0x50ec('0x29')]();}['focus'](){this[_0x50ec('0x34')][_0x50ec('0x1a')]();}[_0x50ec('0x36')](){this[_0x50ec('0x1c')][_0x50ec('0x36')]();for(const _0x1907ea of this[_0x50ec('0x0')])_0x1907ea[_0x50ec('0x36')]();super[_0x50ec('0x36')]();}['refreshVisibleViews'](){this[_0x50ec('0x28')]?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x50650f,_0x1c8ebd){const _0xfc0a9=new this['_config']['CommentView'](this[_0x50ec('0x2d')],_0x50650f,{'maxCommentCharsWhenCollapsed':this[_0x50ec('0xc')][_0x50ec('0x4')],'formatDateTime':this[_0x50ec('0xc')][_0x50ec('0x7')],'editorConfig':this[_0x50ec('0xc')][_0x50ec('0x1d')]});_0xfc0a9[_0x50ec('0x12')]=_0x50650f['id'],_0xfc0a9[_0x50ec('0x30')](_0x50ec('0x1e'))['to'](this),_0xfc0a9['delegate'](_0x50ec('0x3c'))['to'](this),_0xfc0a9[_0x50ec('0x30')](_0x50ec('0x35'))['to'](this),_0xfc0a9['delegate'](_0x50ec('0x6'))['to'](this),_0xfc0a9[_0x50ec('0x30')](_0x50ec('0x8'))['to'](this),this[_0x50ec('0x23')](_0xfc0a9,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this[_0x50ec('0x0')]['add'](_0xfc0a9,_0x1c8ebd);}['_calculatePosition'](_0x5ed736){const _0x54d244=this['_model'][_0x50ec('0x1b')](_0x5ed736);return this[_0x50ec('0x17')]?this[_0x50ec('0x17')]['authoredAt']>_0x5ed736[_0x50ec('0x18')]?_0x54d244-0x1:_0x54d244:_0x54d244-0x1;}['_handleInfoComment'](){if(this['_model'][_0x50ec('0xf')]&&this['_model']['resolvedAt']){const _0x5bcb7f={'id':_0x50ec('0x9'),'author':this[_0x50ec('0x3')]['resolvedBy'],'authoredAt':this['_model'][_0x50ec('0x2f')],'content':_0x5af53b(this[_0x50ec('0x2d')],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config'][(_0x50ec('0x3b'))](this[_0x50ec('0x2d')],_0x5bcb7f,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this[_0x50ec('0xc')][_0x50ec('0x7')],'editorConfig':this[_0x50ec('0xc')]['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this[_0x50ec('0x17')],this[_0x50ec('0x3')][_0x50ec('0x1b')](_0x5bcb7f));}else this[_0x50ec('0x17')]&&(this[_0x50ec('0x0')][_0x50ec('0x2a')](this[_0x50ec('0x17')]),this[_0x50ec('0x17')]['destroy'](),this[_0x50ec('0x17')]=null);this['refreshVisibleViews']();}[_0x50ec('0x39')](_0x43938f){const _0x387859=this['commentViews'][_0x50ec('0x2a')](_0x43938f['id']);this[_0x50ec('0x15')](_0x387859),_0x387859[_0x50ec('0x32')]&&this[_0x50ec('0xa')](),_0x387859[_0x50ec('0x36')]();}['_updateHasDirtyComment'](){this[_0x50ec('0x24')]=Array[_0x50ec('0x2')](this[_0x50ec('0x0')])[_0x50ec('0x26')](_0x5a9791=>_0x5a9791[_0x50ec('0x32')]);}['_rearrangeCollapse'](){const _0x443419=function(_0x5ee20e){const _0x2d9e3b=new _0x40f259();for(const _0x2eba39 of _0x5ee20e)_0x2d9e3b[_0x50ec('0x1f')](_0x2eba39);return _0x2d9e3b;}(this['commentViews']),_0x5bdfb7=this[_0x50ec('0x1c')][_0x50ec('0x5')];for(let _0x25b174=0x1;_0x25b174<=_0x5bdfb7;_0x25b174++)_0x443419['remove'](0x1);for(const _0x4dba52 of _0x443419)_0x4dba52[_0x50ec('0x2e')]();_0x5bdfb7>0x0&&_0x443419[_0x50ec('0x1f')](this[_0x50ec('0x1c')],0x1),is(_0x1daf0c(Array[_0x50ec('0x2')](this['visibleViews']),Array[_0x50ec('0x2')](_0x443419)),this[_0x50ec('0x3a')],_0x443419);}[_0x50ec('0x2b')](){is(_0x1daf0c(Array['from'](this[_0x50ec('0x3a')]),Array[_0x50ec('0x2')](this['commentViews'])),this[_0x50ec('0x3a')],this[_0x50ec('0x0')]);for(const _0x5bf88f of this[_0x50ec('0x3a')])_0x5bf88f[_0x50ec('0xe')]();}}function is(_0x32e00e,_0xdc5af5,_0x3c654d){let _0x437580=0x0;for(const _0x513d19 of _0x32e00e)switch(_0x513d19){case _0x50ec('0x14'):_0xdc5af5[_0x50ec('0x1f')](_0x3c654d[_0x50ec('0x31')](_0x437580),_0x437580),_0x437580++;break;case'delete':_0xdc5af5[_0x50ec('0x2a')](_0x437580);break;case _0x50ec('0x11'):_0x437580++;}}
@@ -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 _0x38af=['Comment\x20was\x20made\x20on\x20an\x20element','isResolvable','tooltip','Reopen','locale','.ck-context','listenTo','add','.ck-context__value','render','ck-context-wrapper','_createReopenButton','hasContext','offsetWidth','_attachContextActions','classList','mouseenter','_trimContextValue','bind','reopenCommentThread','icon','querySelector','isResolved','_model','execute','ck-context__value','setTemplate','reopenButtonView','label','...','scrollWidth','fire','div','lastIndexOf','isReadOnly','isEnabled','value','ck-context','ck-thread__header','context','mouseleave','remove','span','overlay','contextValue'];(function(_0x1581f3,_0x38af64){const _0x3fb034=function(_0xc2507){while(--_0xc2507){_0x1581f3['push'](_0x1581f3['shift']());}};_0x3fb034(++_0x38af64);}(_0x38af,0x69));const _0x3fb0=function(_0x1581f3,_0x38af64){_0x1581f3=_0x1581f3-0x0;let _0x3fb034=_0x38af[_0x1581f3];return _0x3fb034;};import{View as _0x571c2b,ButtonView as _0x1618dd}from'ckeditor5/src/ui';import{getTranslation as _0x224545}from'../../../utils/common-translations';import _0x5dfe4c from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Tt extends _0x571c2b{constructor(_0x5c7867,_0x48873b){super(_0x5c7867);const _0x24a940=this['bindTemplate'];this['_model']=_0x48873b,this[_0x3fb0('0xc')]=this['_createReopenButton'](),this[_0x3fb0('0x3')](_0x3fb0('0x2a'))['to'](this[_0x3fb0('0x8')],_0x3fb0('0x18'),_0x3f57cb=>!!_0x3f57cb),this[_0x3fb0('0x3')]('contextValue')['to'](this[_0x3fb0('0x8')],'context',_0x5c944e=>_0x5c944e&&_0x5c944e['value']?this['_trimContextValue'](_0x5c944e[_0x3fb0('0x15')]):_0x224545(this['locale'],_0x3fb0('0x1e'))),this[_0x3fb0('0xb')]({'tag':_0x3fb0('0x11'),'attributes':{'class':[_0x3fb0('0x17')]},'children':[{'tag':_0x3fb0('0x11'),'attributes':{'class':[_0x3fb0('0x28')]},'children':[{'tag':_0x3fb0('0x11'),'attributes':{'class':[_0x3fb0('0x16'),_0x24a940['if'](_0x3fb0('0x2a'),'ck-context--quotes')]},'children':[{'tag':_0x3fb0('0x1b'),'attributes':{'class':[_0x3fb0('0xa')]},'children':[{'text':_0x24a940['to'](_0x3fb0('0x1d'))}]}]}]},{'tag':_0x3fb0('0x11'),'attributes':{'class':['ck-annotation__actions']},'children':[this[_0x3fb0('0xc')]]}]});}['render'](){super[_0x3fb0('0x27')](),this[_0x3fb0('0x2c')]();}[_0x3fb0('0x29')](){const _0x2defbb=new _0x1618dd(this[_0x3fb0('0x22')]);return _0x2defbb[_0x3fb0('0xd')]=_0x224545(this[_0x3fb0('0x22')],_0x3fb0('0x21')),_0x2defbb[_0x3fb0('0x20')]=_0x224545(this[_0x3fb0('0x22')],'Reopen'),_0x2defbb[_0x3fb0('0x5')]=_0x5dfe4c,_0x2defbb[_0x3fb0('0x3')](_0x3fb0('0x14'))['to'](this[_0x3fb0('0x8')],_0x3fb0('0x13'),_0x61c6de=>!_0x61c6de),_0x2defbb[_0x3fb0('0x3')]('isVisible')['to'](this[_0x3fb0('0x8')],_0x3fb0('0x1f'),this[_0x3fb0('0x8')],_0x3fb0('0x7'),(_0xc512a8,_0x139e0d)=>_0xc512a8&&_0x139e0d),_0x2defbb['on'](_0x3fb0('0x9'),()=>{this[_0x3fb0('0x10')](_0x3fb0('0x4'),this['_model']['id']);}),_0x2defbb;}[_0x3fb0('0x2')](_0x251ef4){if(_0x251ef4['length']<0x96)return _0x251ef4;const _0x11a818=_0x251ef4[_0x3fb0('0x12')]('\x20',0x93);return _0x251ef4['substring'](0x0,_0x11a818>-0x1?_0x11a818:0x93)+_0x3fb0('0xe');}[_0x3fb0('0x2c')](){const _0x13ac24=this['element'][_0x3fb0('0x6')](_0x3fb0('0x23')),_0x19dcde=_0x13ac24[_0x3fb0('0x6')](_0x3fb0('0x26'));this['listenTo'](_0x13ac24,_0x3fb0('0x1'),()=>{_0x19dcde[_0x3fb0('0x2b')]<_0x19dcde[_0x3fb0('0xf')]&&_0x13ac24['classList'][_0x3fb0('0x25')]('overlay');}),this[_0x3fb0('0x24')](_0x13ac24,_0x3fb0('0x19'),()=>{_0x13ac24[_0x3fb0('0x0')][_0x3fb0('0x1a')](_0x3fb0('0x1c'));});}}
23
+ const _0x5b59=['substring','isResolvable','remove','render','lastIndexOf','Reopen','ck-context','contextValue','ck-context-wrapper','overlay','listenTo','reopenButtonView','icon','mouseleave','bindTemplate','execute','bind','ck-thread__header','_model','isEnabled','scrollWidth','reopenCommentThread','isResolved','_createReopenButton','.ck-context','div','classList','span','.ck-context__value','hasContext','context','ck-context__value','value','Comment\x20was\x20made\x20on\x20an\x20element','setTemplate','locale','_trimContextValue','querySelector','mouseenter'];(function(_0x1b1ddd,_0x5b5949){const _0x2aa6e9=function(_0x5c6cc6){while(--_0x5c6cc6){_0x1b1ddd['push'](_0x1b1ddd['shift']());}};_0x2aa6e9(++_0x5b5949);}(_0x5b59,0xd5));const _0x2aa6=function(_0x1b1ddd,_0x5b5949){_0x1b1ddd=_0x1b1ddd-0x0;let _0x2aa6e9=_0x5b59[_0x1b1ddd];return _0x2aa6e9;};import{View as _0x29a462,ButtonView as _0x5801a2}from'ckeditor5/src/ui.js';import{getTranslation as _0x38d5f3}from'../../../utils/common-translations.js';import _0x44f1e8 from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Tt extends _0x29a462{constructor(_0x2a3ff5,_0x75eba8){super(_0x2a3ff5);const _0x4082c4=this[_0x2aa6('0x23')];this[_0x2aa6('0x0')]=_0x75eba8,this[_0x2aa6('0x20')]=this[_0x2aa6('0x5')](),this[_0x2aa6('0x25')](_0x2aa6('0xb'))['to'](this[_0x2aa6('0x0')],'context',_0x412c66=>!!_0x412c66),this[_0x2aa6('0x25')](_0x2aa6('0x1c'))['to'](this[_0x2aa6('0x0')],_0x2aa6('0xc'),_0x5d440e=>_0x5d440e&&_0x5d440e[_0x2aa6('0xe')]?this[_0x2aa6('0x12')](_0x5d440e[_0x2aa6('0xe')]):_0x38d5f3(this[_0x2aa6('0x11')],_0x2aa6('0xf'))),this[_0x2aa6('0x10')]({'tag':_0x2aa6('0x7'),'attributes':{'class':[_0x2aa6('0x26')]},'children':[{'tag':_0x2aa6('0x7'),'attributes':{'class':[_0x2aa6('0x1d')]},'children':[{'tag':'div','attributes':{'class':[_0x2aa6('0x1b'),_0x4082c4['if'](_0x2aa6('0xb'),'ck-context--quotes')]},'children':[{'tag':_0x2aa6('0x9'),'attributes':{'class':[_0x2aa6('0xd')]},'children':[{'text':_0x4082c4['to'](_0x2aa6('0x1c'))}]}]}]},{'tag':'div','attributes':{'class':['ck-annotation__actions']},'children':[this[_0x2aa6('0x20')]]}]});}['render'](){super[_0x2aa6('0x18')](),this['_attachContextActions']();}[_0x2aa6('0x5')](){const _0x3f1115=new _0x5801a2(this[_0x2aa6('0x11')]);return _0x3f1115['label']=_0x38d5f3(this[_0x2aa6('0x11')],_0x2aa6('0x1a')),_0x3f1115['tooltip']=_0x38d5f3(this['locale'],_0x2aa6('0x1a')),_0x3f1115[_0x2aa6('0x21')]=_0x44f1e8,_0x3f1115[_0x2aa6('0x25')](_0x2aa6('0x1'))['to'](this['_model'],'isReadOnly',_0x5a14d4=>!_0x5a14d4),_0x3f1115[_0x2aa6('0x25')]('isVisible')['to'](this[_0x2aa6('0x0')],_0x2aa6('0x16'),this[_0x2aa6('0x0')],_0x2aa6('0x4'),(_0x53f45a,_0xbc7a86)=>_0x53f45a&&_0xbc7a86),_0x3f1115['on'](_0x2aa6('0x24'),()=>{this['fire'](_0x2aa6('0x3'),this[_0x2aa6('0x0')]['id']);}),_0x3f1115;}[_0x2aa6('0x12')](_0x5c5094){if(_0x5c5094['length']<0x96)return _0x5c5094;const _0x555064=_0x5c5094[_0x2aa6('0x19')]('\x20',0x93);return _0x5c5094[_0x2aa6('0x15')](0x0,_0x555064>-0x1?_0x555064:0x93)+'...';}['_attachContextActions'](){const _0x522d1a=this['element'][_0x2aa6('0x13')](_0x2aa6('0x6')),_0x183fdc=_0x522d1a[_0x2aa6('0x13')](_0x2aa6('0xa'));this[_0x2aa6('0x1f')](_0x522d1a,_0x2aa6('0x14'),()=>{_0x183fdc['offsetWidth']<_0x183fdc[_0x2aa6('0x2')]&&_0x522d1a[_0x2aa6('0x8')]['add'](_0x2aa6('0x1e'));}),this['listenTo'](_0x522d1a,_0x2aa6('0x22'),()=>{_0x522d1a[_0x2aa6('0x8')][_0x2aa6('0x17')]('overlay');});}}
@@ -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 _0xbbc4=['value','editor','setTemplate','ck-comment__input-container--active','focusTracker','commentInputView','createEditor','userView','showInput','set','destroy','then','div','bind','editorReady','change:showInput','ck-thread__input','bindTemplate','extendTemplate','ck-comment__input-container','ck-thread__user'];(function(_0x376be5,_0xbbc4fd){var _0x3b7bb5=function(_0x53765e){while(--_0x53765e){_0x376be5['push'](_0x376be5['shift']());}};_0x3b7bb5(++_0xbbc4fd);}(_0xbbc4,0x14d));var _0x3b7b=function(_0x376be5,_0xbbc4fd){_0x376be5=_0x376be5-0x0;var _0x3b7bb5=_0xbbc4[_0x376be5];return _0x3b7bb5;};import{View as _0x5a4903}from'ckeditor5/src/ui';import _0x40f73d from'./commentinputview';import{UserView as _0x143110}from'ckeditor5-collaboration/src/collaboration-core';export default class At extends _0x5a4903{constructor(_0x7ead34,_0x1b4f6a,_0x31f6cd){super(_0x7ead34),this[_0x3b7b('0x8')]=new _0x40f73d(_0x7ead34,_0x31f6cd),this[_0x3b7b('0x8')][_0x3b7b('0x10')]('showButtons')['to'](this['commentInputView'][_0x3b7b('0x7')],'isFocused',this['commentInputView'],_0x3b7b('0x3'),(_0x9b7690,_0x2665f1)=>_0x9b7690||!!_0x2665f1),this[_0x3b7b('0xc')](_0x3b7b('0xb'),!0x1),this['on'](_0x3b7b('0x12'),()=>{this[_0x3b7b('0xb')]&&!this[_0x3b7b('0x8')][_0x3b7b('0x4')]&&this[_0x3b7b('0x8')][_0x3b7b('0x9')]();}),this[_0x3b7b('0x8')]['delegate'](_0x3b7b('0x11'))['to'](this),this[_0x3b7b('0x8')]['delegate']('editorDestroyed')['to'](this),this[_0x3b7b('0xa')]=new _0x143110(_0x7ead34,_0x1b4f6a),this['userView']['extendTemplate']({'attributes':{'class':_0x3b7b('0x2')}}),this['commentInputView'][_0x3b7b('0x0')]({'attributes':{'class':_0x3b7b('0x13')}}),this[_0x3b7b('0x5')]({'tag':_0x3b7b('0xf'),'attributes':{'class':[_0x3b7b('0x1'),this[_0x3b7b('0x14')]['if'](_0x3b7b('0xb'),_0x3b7b('0x6'))]},'children':[this[_0x3b7b('0xa')],this[_0x3b7b('0x8')]]});}[_0x3b7b('0xd')](){return this[_0x3b7b('0x8')]['destroy']()[_0x3b7b('0xe')](()=>super[_0x3b7b('0xd')]());}}
23
+ var _0x5939=['then','setTemplate','ck-comment__input-container','editorReady','ck-thread__input','showInput','commentInputView','bind','userView','editor','extendTemplate','bindTemplate','change:showInput','focusTracker','delegate','destroy','ck-thread__user','set','createEditor','ck-comment__input-container--active','editorDestroyed'];(function(_0x3ae90d,_0x593983){var _0x45fc08=function(_0xd992d0){while(--_0xd992d0){_0x3ae90d['push'](_0x3ae90d['shift']());}};_0x45fc08(++_0x593983);}(_0x5939,0x15b));var _0x45fc=function(_0x3ae90d,_0x593983){_0x3ae90d=_0x3ae90d-0x0;var _0x45fc08=_0x5939[_0x3ae90d];return _0x45fc08;};import{View as _0x9031b5}from'ckeditor5/src/ui.js';import _0x745649 from'./commentinputview.js';import{UserView as _0x2c2ffc}from'ckeditor5-collaboration/src/collaboration-core.js';export default class Ct extends _0x9031b5{constructor(_0x39b709,_0x1e0bce,_0xcfb524){super(_0x39b709),this[_0x45fc('0x10')]=new _0x745649(_0x39b709,_0xcfb524),this[_0x45fc('0x10')][_0x45fc('0x11')]('showButtons')['to'](this[_0x45fc('0x10')][_0x45fc('0x2')],'isFocused',this[_0x45fc('0x10')],'value',(_0x21017f,_0x2d3a1e)=>_0x21017f||!!_0x2d3a1e),this[_0x45fc('0x6')](_0x45fc('0xf'),!0x1),this['on'](_0x45fc('0x1'),()=>{this[_0x45fc('0xf')]&&!this['commentInputView'][_0x45fc('0x13')]&&this[_0x45fc('0x10')][_0x45fc('0x7')]();}),this[_0x45fc('0x10')][_0x45fc('0x3')](_0x45fc('0xd'))['to'](this),this['commentInputView'][_0x45fc('0x3')](_0x45fc('0x9'))['to'](this),this[_0x45fc('0x12')]=new _0x2c2ffc(_0x39b709,_0x1e0bce),this[_0x45fc('0x12')][_0x45fc('0x14')]({'attributes':{'class':_0x45fc('0x5')}}),this[_0x45fc('0x10')]['extendTemplate']({'attributes':{'class':_0x45fc('0xe')}}),this[_0x45fc('0xb')]({'tag':'div','attributes':{'class':[_0x45fc('0xc'),this[_0x45fc('0x0')]['if'](_0x45fc('0xf'),_0x45fc('0x8'))]},'children':[this[_0x45fc('0x12')],this[_0x45fc('0x10')]]});}[_0x45fc('0x4')](){return this[_0x45fc('0x10')][_0x45fc('0x4')]()[_0x45fc('0xa')](()=>super['destroy']());}}
@@ -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 _0x4281=['_boundFirstCommentView','commentsListView','isResolvable','bind','isVisible','actionIndicator','ck-thread--','ck-reset_all-excluded','change:isActive','stop','div','Write\x20a\x20comment...','ck-thread--active','isReadOnly','fire','locale','extendTemplate','set','commentViews','Delete\x20comment\x20thread?','removeCommentThread','add','resolveCommentThread','querySelector','label','ck-thread--unlinked','cancelConfirm','getTemplate','containerElement','archivedAt','render','_bindFirstCommentView','ck-thread--remove-confirmation','isEnabled','commentThreadHeaderView','tooltip','_cancelAllConfirms','actionBar','commentThreadChildren','resolveButton','placeholder','_model','length','remove','icon','element','bindTemplate','_createResolveButton','unbind','isActive','ck-thread__container','change:isReadOnly','createCollection','addMany','then','isSystemComment','ck-thread','ck-comment--resolve','isConfirm','removeButton','Resolve','execute'];(function(_0x5d05bb,_0x4281bc){const _0x560edf=function(_0x2f95d7){while(--_0x2f95d7){_0x5d05bb['push'](_0x5d05bb['shift']());}};_0x560edf(++_0x4281bc);}(_0x4281,0x1eb));const _0x560e=function(_0x5d05bb,_0x4281bc){_0x5d05bb=_0x5d05bb-0x0;let _0x560edf=_0x4281[_0x5d05bb];return _0x560edf;};import{ConfirmMixin as _0xc50d54}from'ckeditor5-collaboration/src/collaboration-core';import{ButtonView as _0x2319ca}from'ckeditor5/src/ui';import{icons as _0x30e61d}from'ckeditor5/src/core';import _0xdf9eb6 from'./basecommentthreadview';import{getTranslation as _0x3d4af4}from'../../../utils/common-translations';export default class ft extends _0xc50d54(_0xdf9eb6){constructor(_0x2774c1,_0x51d93f,_0x2bf94f,_0x9dcf2c){super(_0x2774c1,_0x51d93f,_0x2bf94f,_0x9dcf2c),this[_0x560e('0x2b')]=this[_0x560e('0x39')](),this['commentThreadChildren'][_0x560e('0x3a')]([this[_0x560e('0x6')],this['commentThreadInputView']]),this[_0x560e('0x2e')][_0x560e('0x22')]&&this[_0x560e('0x2b')]['add'](this[_0x560e('0x27')],0x0),this['_model']['on']('change:archivedAt',(_0x1b8045,_0x466a10,_0x5797ad)=>{_0x5797ad?this['commentThreadChildren']['has'](this[_0x560e('0x27')])||this[_0x560e('0x2b')]['add'](this[_0x560e('0x27')],0x0):this['commentThreadChildren'][_0x560e('0x30')](this[_0x560e('0x27')]);}),this[_0x560e('0x16')](_0x560e('0xa'),null),this[_0x560e('0x21')]=null,this[_0x560e('0x5')]=null,this[_0x560e('0x14')]=_0x2774c1,this[_0x560e('0x2c')]=this['_createResolveButton'](),this['setTemplate'](this[_0x560e('0x20')]()),this['on'](_0x560e('0xd'),(_0x31a484,_0x40553d,_0x176b5f)=>{_0x176b5f||this['_cancelAllConfirms']();}),this['listenTo'](this[_0x560e('0x2e')],_0x560e('0x38'),(_0xcb73db,_0x388f2f,_0x2fc039)=>{_0x2fc039&&this[_0x560e('0x29')]();}),this[_0x560e('0x2f')]>0x0&&this[_0x560e('0x24')](),this['listenTo'](this['commentsListView']['commentViews'],_0x560e('0x1a'),()=>{this[_0x560e('0x24')]();});}['getTemplate'](){const _0x195a5b=this[_0x560e('0x33')];return{'tag':_0x560e('0xf'),'attributes':{'class':[_0x560e('0x3d'),_0x560e('0xc'),_0x195a5b['if'](_0x560e('0x36'),_0x560e('0x11')),_0x195a5b['if']('isUnlinked',_0x560e('0x1e')),_0x195a5b['if'](_0x560e('0x1'),_0x560e('0x25')),_0x195a5b['to'](_0x560e('0xa'),_0x379dbc=>_0x379dbc?_0x560e('0xb')+_0x379dbc:'')],'data-thread-id':this['_model']['id'],'tabindex':-0x1},'children':[{'tag':_0x560e('0xf'),'attributes':{'class':_0x560e('0x37')},'children':this[_0x560e('0x2b')]}]};}[_0x560e('0x23')](){super[_0x560e('0x23')](),this[_0x560e('0x21')]=this[_0x560e('0x32')][_0x560e('0x1c')]('.ck-thread__container');}['_cancelAllConfirms'](){this[_0x560e('0x1f')]();for(const _0x33c2fc of this[_0x560e('0x6')]['commentViews'])_0x33c2fc['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x4c2ab3}=this,_0x28061f=this[_0x560e('0x6')][_0x560e('0x17')]['get'](0x0);_0x28061f===this[_0x560e('0x5')]||_0x28061f[_0x560e('0x3c')]||(this[_0x560e('0x5')]=_0x28061f,this[_0x560e('0x35')](_0x560e('0xa')),this[_0x560e('0x8')]('actionIndicator')['to'](_0x28061f,'actionIndicator',_0x11bdb4=>_0x560e('0x30')===_0x11bdb4?_0x560e('0x30'):null),_0x28061f[_0x560e('0x2d')]=_0x3d4af4(_0x4c2ab3,_0x560e('0x10')),_0x28061f[_0x560e('0x2')]['on']('execute',_0x5621c5=>{_0x5621c5[_0x560e('0xe')](),this['showConfirm'](_0x3d4af4(_0x4c2ab3,_0x560e('0x18')),this[_0x560e('0x21')])[_0x560e('0x3b')](()=>{this['fire'](_0x560e('0x19'));});},{'priority':'high'}),_0x28061f[_0x560e('0x2a')][_0x560e('0x1a')](this[_0x560e('0x2c')],0x0));}[_0x560e('0x34')](){const _0x22b790=new _0x2319ca(this[_0x560e('0x14')]);return _0x22b790[_0x560e('0x1d')]=_0x3d4af4(this[_0x560e('0x14')],_0x560e('0x3')),_0x22b790[_0x560e('0x28')]=_0x3d4af4(this['locale'],_0x560e('0x3')),_0x22b790[_0x560e('0x31')]=_0x30e61d['check'],_0x22b790[_0x560e('0x15')]({'attributes':{'class':_0x560e('0x0')}}),_0x22b790['bind'](_0x560e('0x26'))['to'](this[_0x560e('0x2e')],_0x560e('0x12'),_0x4caa4e=>!_0x4caa4e),_0x22b790[_0x560e('0x8')](_0x560e('0x9'))['to'](this[_0x560e('0x2e')],_0x560e('0x7'),this[_0x560e('0x2e')],'isResolved',(_0x4baa23,_0x24f2ea)=>_0x4baa23&&!_0x24f2ea),_0x22b790['on'](_0x560e('0x4'),()=>{this[_0x560e('0x13')](_0x560e('0x1b'),this[_0x560e('0x2e')]['id']);}),_0x22b790;}}
23
+ const _0x554a=['ck-thread--unlinked','Delete\x20comment\x20thread?','high','containerElement','isSystemComment','check','actionIndicator','commentThreadInputView','getTemplate','add','commentsListView','ck-thread--','remove','querySelector','fire','resolveButton','.ck-thread__container','ck-thread__container','_model','isActive','then','isResolvable','change:isActive','_boundFirstCommentView','render','extendTemplate','isVisible','commentViews','div','element','label','showConfirm','icon','isEnabled','set','cancelConfirm','ck-thread--remove-confirmation','bindTemplate','Write\x20a\x20comment...','commentThreadChildren','locale','createCollection','isReadOnly','addMany','change:isReadOnly','has','_bindFirstCommentView','get','_createResolveButton','actionBar','isConfirm','change:archivedAt','_cancelAllConfirms','execute','ck-thread','isResolved','Resolve','ck-comment--resolve','removeCommentThread','bind','commentThreadHeaderView'];(function(_0x463119,_0x554ad2){const _0x3ed666=function(_0x450dd8){while(--_0x450dd8){_0x463119['push'](_0x463119['shift']());}};_0x3ed666(++_0x554ad2);}(_0x554a,0x18b));const _0x3ed6=function(_0x463119,_0x554ad2){_0x463119=_0x463119-0x0;let _0x3ed666=_0x554a[_0x463119];return _0x3ed666;};import{ConfirmMixin as _0x3177fb}from'ckeditor5-collaboration/src/collaboration-core.js';import{ButtonView as _0x58b2bb}from'ckeditor5/src/ui.js';import{icons as _0x2377a}from'ckeditor5/src/core.js';import _0x50fcfa from'./basecommentthreadview.js';import{getTranslation as _0x1de9d5}from'../../../utils/common-translations.js';export default class ft extends _0x3177fb(_0x50fcfa){constructor(_0x52c589,_0x13d3ae,_0x5ad519,_0x55bb3d){super(_0x52c589,_0x13d3ae,_0x5ad519,_0x55bb3d),this[_0x3ed6('0xa')]=this[_0x3ed6('0xc')](),this['commentThreadChildren'][_0x3ed6('0xe')]([this['commentsListView'],this[_0x3ed6('0x27')]]),this[_0x3ed6('0x32')]['archivedAt']&&this[_0x3ed6('0xa')][_0x3ed6('0x29')](this[_0x3ed6('0x1f')],0x0),this['_model']['on'](_0x3ed6('0x16'),(_0x4fca9e,_0x439bbc,_0x129604)=>{_0x129604?this['commentThreadChildren'][_0x3ed6('0x10')](this[_0x3ed6('0x1f')])||this[_0x3ed6('0xa')][_0x3ed6('0x29')](this[_0x3ed6('0x1f')],0x0):this['commentThreadChildren']['remove'](this['commentThreadHeaderView']);}),this[_0x3ed6('0x5')](_0x3ed6('0x26'),null),this[_0x3ed6('0x23')]=null,this[_0x3ed6('0x37')]=null,this[_0x3ed6('0xb')]=_0x52c589,this[_0x3ed6('0x2f')]=this[_0x3ed6('0x13')](),this['setTemplate'](this[_0x3ed6('0x28')]()),this['on'](_0x3ed6('0x36'),(_0x3ea3e6,_0x1f1e25,_0x13d32b)=>{_0x13d32b||this['_cancelAllConfirms']();}),this['listenTo'](this[_0x3ed6('0x32')],_0x3ed6('0xf'),(_0x2063c1,_0x4a7f9e,_0x1d901c)=>{_0x1d901c&&this['_cancelAllConfirms']();}),this['length']>0x0&&this[_0x3ed6('0x11')](),this['listenTo'](this[_0x3ed6('0x2a')][_0x3ed6('0x3b')],'add',()=>{this[_0x3ed6('0x11')]();});}[_0x3ed6('0x28')](){const _0x15b2de=this[_0x3ed6('0x8')];return{'tag':_0x3ed6('0x3c'),'attributes':{'class':[_0x3ed6('0x19'),'ck-reset_all-excluded',_0x15b2de['if'](_0x3ed6('0x33'),'ck-thread--active'),_0x15b2de['if']('isUnlinked',_0x3ed6('0x20')),_0x15b2de['if'](_0x3ed6('0x15'),_0x3ed6('0x7')),_0x15b2de['to'](_0x3ed6('0x26'),_0x3c433b=>_0x3c433b?_0x3ed6('0x2b')+_0x3c433b:'')],'data-thread-id':this[_0x3ed6('0x32')]['id'],'tabindex':-0x1},'children':[{'tag':_0x3ed6('0x3c'),'attributes':{'class':_0x3ed6('0x31')},'children':this[_0x3ed6('0xa')]}]};}[_0x3ed6('0x38')](){super[_0x3ed6('0x38')](),this[_0x3ed6('0x23')]=this[_0x3ed6('0x0')][_0x3ed6('0x2d')](_0x3ed6('0x30'));}[_0x3ed6('0x17')](){this[_0x3ed6('0x6')]();for(const _0x53fff2 of this[_0x3ed6('0x2a')]['commentViews'])_0x53fff2['cancelConfirm']();}[_0x3ed6('0x11')](){const {locale:_0xbc1926}=this,_0x4c9de7=this[_0x3ed6('0x2a')][_0x3ed6('0x3b')][_0x3ed6('0x12')](0x0);_0x4c9de7===this['_boundFirstCommentView']||_0x4c9de7[_0x3ed6('0x24')]||(this[_0x3ed6('0x37')]=_0x4c9de7,this['unbind'](_0x3ed6('0x26')),this[_0x3ed6('0x1e')]('actionIndicator')['to'](_0x4c9de7,'actionIndicator',_0xba929b=>_0x3ed6('0x2c')===_0xba929b?_0x3ed6('0x2c'):null),_0x4c9de7['placeholder']=_0x1de9d5(_0xbc1926,_0x3ed6('0x9')),_0x4c9de7['removeButton']['on'](_0x3ed6('0x18'),_0x4f5b32=>{_0x4f5b32['stop'](),this[_0x3ed6('0x2')](_0x1de9d5(_0xbc1926,_0x3ed6('0x21')),this[_0x3ed6('0x23')])[_0x3ed6('0x34')](()=>{this[_0x3ed6('0x2e')](_0x3ed6('0x1d'));});},{'priority':_0x3ed6('0x22')}),_0x4c9de7[_0x3ed6('0x14')][_0x3ed6('0x29')](this[_0x3ed6('0x2f')],0x0));}['_createResolveButton'](){const _0x34f046=new _0x58b2bb(this[_0x3ed6('0xb')]);return _0x34f046[_0x3ed6('0x1')]=_0x1de9d5(this['locale'],'Resolve'),_0x34f046['tooltip']=_0x1de9d5(this[_0x3ed6('0xb')],_0x3ed6('0x1b')),_0x34f046[_0x3ed6('0x3')]=_0x2377a[_0x3ed6('0x25')],_0x34f046[_0x3ed6('0x39')]({'attributes':{'class':_0x3ed6('0x1c')}}),_0x34f046[_0x3ed6('0x1e')](_0x3ed6('0x4'))['to'](this['_model'],_0x3ed6('0xd'),_0x3d7f9d=>!_0x3d7f9d),_0x34f046['bind'](_0x3ed6('0x3a'))['to'](this[_0x3ed6('0x32')],_0x3ed6('0x35'),this['_model'],_0x3ed6('0x1a'),(_0x18c645,_0x47342b)=>_0x18c645&&!_0x47342b),_0x34f046['on']('execute',()=>{this[_0x3ed6('0x2e')]('resolveCommentThread',this[_0x3ed6('0x32')]['id']);}),_0x34f046;}}
@@ -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
  */