@ckeditor/ckeditor5-comments 38.2.0-alpha.0 → 39.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 (163) hide show
  1. package/README.md +0 -1
  2. package/build/comments.js +1 -1
  3. package/build/translations/ar.js +1 -1
  4. package/build/translations/bg.js +1 -1
  5. package/build/translations/bn.js +1 -1
  6. package/build/translations/ca.js +1 -1
  7. package/build/translations/cs.js +1 -1
  8. package/build/translations/da.js +1 -1
  9. package/build/translations/de.js +1 -1
  10. package/build/translations/el.js +1 -1
  11. package/build/translations/es.js +1 -1
  12. package/build/translations/et.js +1 -1
  13. package/build/translations/fi.js +1 -1
  14. package/build/translations/fr.js +1 -1
  15. package/build/translations/gl.js +1 -1
  16. package/build/translations/he.js +1 -1
  17. package/build/translations/hi.js +1 -1
  18. package/build/translations/hr.js +1 -1
  19. package/build/translations/hu.js +1 -1
  20. package/build/translations/id.js +1 -1
  21. package/build/translations/ja.js +1 -1
  22. package/build/translations/ko.js +1 -1
  23. package/build/translations/lt.js +1 -1
  24. package/build/translations/ms.js +1 -1
  25. package/build/translations/nl.js +1 -1
  26. package/build/translations/no.js +1 -1
  27. package/build/translations/pl.js +1 -1
  28. package/build/translations/pt.js +1 -1
  29. package/build/translations/ro.js +1 -1
  30. package/build/translations/ru.js +1 -1
  31. package/build/translations/sq.js +1 -1
  32. package/build/translations/sr.js +1 -1
  33. package/build/translations/sv.js +1 -1
  34. package/build/translations/th.js +1 -1
  35. package/build/translations/tr.js +1 -1
  36. package/build/translations/uk.js +1 -1
  37. package/build/translations/vi.js +1 -1
  38. package/build/translations/zh-cn.js +1 -1
  39. package/build/translations/zh.js +1 -1
  40. package/lang/translations/ar.po +1 -1
  41. package/lang/translations/bg.po +1 -1
  42. package/lang/translations/bn.po +1 -1
  43. package/lang/translations/ca.po +1 -1
  44. package/lang/translations/cs.po +1 -1
  45. package/lang/translations/da.po +1 -1
  46. package/lang/translations/de.po +1 -1
  47. package/lang/translations/el.po +1 -1
  48. package/lang/translations/es.po +1 -1
  49. package/lang/translations/et.po +1 -1
  50. package/lang/translations/fi.po +1 -1
  51. package/lang/translations/fr.po +1 -1
  52. package/lang/translations/gl.po +12 -12
  53. package/lang/translations/he.po +1 -1
  54. package/lang/translations/hi.po +1 -1
  55. package/lang/translations/hr.po +1 -1
  56. package/lang/translations/hu.po +1 -1
  57. package/lang/translations/id.po +1 -1
  58. package/lang/translations/ja.po +1 -1
  59. package/lang/translations/ko.po +1 -1
  60. package/lang/translations/lt.po +1 -1
  61. package/lang/translations/ms.po +1 -1
  62. package/lang/translations/nl.po +1 -1
  63. package/lang/translations/no.po +1 -1
  64. package/lang/translations/pl.po +1 -1
  65. package/lang/translations/pt.po +1 -1
  66. package/lang/translations/ro.po +1 -1
  67. package/lang/translations/ru.po +1 -1
  68. package/lang/translations/sq.po +2 -2
  69. package/lang/translations/sr.po +1 -1
  70. package/lang/translations/sv.po +1 -1
  71. package/lang/translations/th.po +1 -1
  72. package/lang/translations/tr.po +1 -1
  73. package/lang/translations/uk.po +1 -1
  74. package/lang/translations/vi.po +1 -1
  75. package/lang/translations/zh-cn.po +1 -1
  76. package/lang/translations/zh.po +1 -1
  77. package/package.json +4 -5
  78. package/src/annotations/annotation.d.ts +4 -0
  79. package/src/annotations/annotation.js +2 -2
  80. package/src/annotations/annotationcollection.d.ts +4 -0
  81. package/src/annotations/annotationcollection.js +2 -2
  82. package/src/annotations/annotations.d.ts +4 -0
  83. package/src/annotations/annotations.js +2 -2
  84. package/src/annotations/annotationsuis.d.ts +4 -0
  85. package/src/annotations/annotationsuis.js +2 -2
  86. package/src/annotations/editorannotations.d.ts +4 -0
  87. package/src/annotations/editorannotations.js +2 -2
  88. package/src/annotations/inlineannotations.d.ts +4 -0
  89. package/src/annotations/inlineannotations.js +2 -2
  90. package/src/annotations/narrowsidebar.d.ts +4 -0
  91. package/src/annotations/narrowsidebar.js +2 -2
  92. package/src/annotations/sidebar.d.ts +4 -0
  93. package/src/annotations/sidebar.js +2 -2
  94. package/src/annotations/view/annotationcounterbuttonview.d.ts +4 -0
  95. package/src/annotations/view/annotationcounterbuttonview.js +2 -2
  96. package/src/annotations/view/annotationview.d.ts +4 -0
  97. package/src/annotations/view/annotationview.js +2 -2
  98. package/src/annotations/view/sidebaritemview.d.ts +4 -0
  99. package/src/annotations/view/sidebaritemview.js +2 -2
  100. package/src/annotations/view/sidebarview.d.ts +4 -0
  101. package/src/annotations/view/sidebarview.js +2 -2
  102. package/src/annotations/widesidebar.d.ts +4 -0
  103. package/src/annotations/widesidebar.js +2 -2
  104. package/src/augmentation.d.ts +4 -0
  105. package/src/augmentation.js +1 -1
  106. package/src/comments/addcommentthreadcommand.d.ts +4 -0
  107. package/src/comments/addcommentthreadcommand.js +2 -2
  108. package/src/comments/commentsarchive.d.ts +4 -0
  109. package/src/comments/commentsarchive.js +2 -2
  110. package/src/comments/commentsarchiveui.d.ts +4 -0
  111. package/src/comments/commentsarchiveui.js +2 -2
  112. package/src/comments/commentsediting.d.ts +4 -0
  113. package/src/comments/commentsediting.js +2 -2
  114. package/src/comments/commentsrepository.d.ts +20 -3
  115. package/src/comments/commentsrepository.js +2 -2
  116. package/src/comments/commentsui.d.ts +4 -0
  117. package/src/comments/commentsui.js +2 -2
  118. package/src/comments/integrations/commentsrestrictededitingmode.d.ts +4 -0
  119. package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
  120. package/src/comments/integrations/importword.d.ts +4 -0
  121. package/src/comments/integrations/importword.js +2 -2
  122. package/src/comments/ui/commenteditor/commenteditor.d.ts +6 -2
  123. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  124. package/src/comments/ui/commenteditor/commenteditorui.d.ts +4 -0
  125. package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
  126. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +4 -0
  127. package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
  128. package/src/comments/ui/commentthreadcontroller.d.ts +2 -2
  129. package/src/comments/ui/commentthreadcontroller.js +2 -2
  130. package/src/comments/ui/view/basecommentthreadview.d.ts +4 -0
  131. package/src/comments/ui/view/basecommentthreadview.js +2 -2
  132. package/src/comments/ui/view/basecommentview.d.ts +4 -0
  133. package/src/comments/ui/view/basecommentview.js +2 -2
  134. package/src/comments/ui/view/collapsedcommentsview.d.ts +4 -0
  135. package/src/comments/ui/view/collapsedcommentsview.js +2 -2
  136. package/src/comments/ui/view/commentcontentview.d.ts +4 -0
  137. package/src/comments/ui/view/commentcontentview.js +2 -2
  138. package/src/comments/ui/view/commentinputview.d.ts +4 -0
  139. package/src/comments/ui/view/commentinputview.js +2 -2
  140. package/src/comments/ui/view/commentsarchiveview.d.ts +4 -0
  141. package/src/comments/ui/view/commentsarchiveview.js +2 -2
  142. package/src/comments/ui/view/commentslistview.d.ts +4 -0
  143. package/src/comments/ui/view/commentslistview.js +2 -2
  144. package/src/comments/ui/view/commentthreadheaderview.d.ts +4 -0
  145. package/src/comments/ui/view/commentthreadheaderview.js +2 -2
  146. package/src/comments/ui/view/commentthreadinputview.d.ts +4 -0
  147. package/src/comments/ui/view/commentthreadinputview.js +2 -2
  148. package/src/comments/ui/view/commentthreadview.d.ts +4 -0
  149. package/src/comments/ui/view/commentthreadview.js +2 -2
  150. package/src/comments/ui/view/commentview.d.ts +4 -0
  151. package/src/comments/ui/view/commentview.js +2 -2
  152. package/src/comments.d.ts +4 -0
  153. package/src/comments.js +2 -2
  154. package/src/commentsonly.d.ts +4 -0
  155. package/src/commentsonly.js +2 -2
  156. package/src/config.d.ts +4 -0
  157. package/src/config.js +1 -1
  158. package/src/index.d.ts +5 -2
  159. package/src/index.js +1 -1
  160. package/src/utils/common-translations.d.ts +4 -0
  161. package/src/utils/common-translations.js +2 -2
  162. package/src/utils/createmutationobserver.d.ts +2 -1
  163. package/src/utils/createmutationobserver.js +2 -2
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x348f=['from','maxCommentCharsWhenCollapsed','_handleNewCommentModel','viewUid','maxThreadTotalWeight','delete','add','commentUpdated','render','removeComment','remove','locale','get','resolvedBy','stopListening','refreshVisibleViews','expand','listenTo','_handleRemoveCommentModel','some','isActive','length','_collapsedCommentsView','resolveCommentThread','_model','change:isEditMode','_rearrangeCollapse','CommentView','visibleViews','resolved','commentViews','resolvedCommentView','change:isResolved','_calculatePosition','hasDirtyComment','_config','weight','_rearrangeExpand','focus','isEditMode','editorConfig','set','count','ck-thread__comments','Marked\x20as\x20resolved','_handleInfoComment','_updateHasDirtyComment','formatDateTime','comments','resolvedAt','destroy','delegate','equal'];(function(_0x51c116,_0x348fd7){const _0x2ec9e6=function(_0x213bcd){while(--_0x213bcd){_0x51c116['push'](_0x51c116['shift']());}};_0x2ec9e6(++_0x348fd7);}(_0x348f,0x1bb));const _0x2ec9=function(_0x51c116,_0x348fd7){_0x51c116=_0x51c116-0x0;let _0x2ec9e6=_0x348f[_0x51c116];return _0x2ec9e6;};import{View as _0x950343}from'ckeditor5/src/ui';import{diff as _0x2f7962,Collection as _0x51ac3d}from'ckeditor5/src/utils';import{getTranslation as _0x290acc}from'../../../utils/common-translations';import _0x172298 from'./collapsedcommentsview';export default class Ct extends _0x950343{constructor(_0xb6eff4,_0x46c7de,_0x10682e){super(_0xb6eff4),this[_0x2ec9('0x16')](_0x2ec9('0xf'),!0x1),this[_0x2ec9('0x16')]('length',_0x46c7de[_0x2ec9('0x1d')][_0x2ec9('0x2')]),this[_0x2ec9('0x16')](_0x2ec9('0x1'),!0x1),this[_0x2ec9('0x5')]=_0x46c7de,this[_0x2ec9('0x10')]=_0x10682e,this[_0x2ec9('0xb')]=this['createCollection'](),this[_0x2ec9('0x9')]=this['createCollection'](),this[_0x2ec9('0xc')]=null,this[_0x2ec9('0x3')]=new _0x172298(_0xb6eff4),this[_0x2ec9('0x3')]['bind']('count')['to'](this,_0x2ec9('0x2'),_0xb157f3=>_0xb157f3-this[_0x2ec9('0x10')]['maxCommentsWhenCollapsed']);for(const _0x2c8ac9 of _0x46c7de[_0x2ec9('0x1d')])this[_0x2ec9('0x24')](_0x2c8ac9);this[_0x2ec9('0x1a')](),this[_0x2ec9('0x33')](_0x46c7de[_0x2ec9('0x1d')],_0x2ec9('0x28'),(_0x108fba,_0x17e3d5)=>{const _0xec7ed5=this[_0x2ec9('0xe')](_0x17e3d5);this[_0x2ec9('0x2')]++,this[_0x2ec9('0x24')](_0x17e3d5,_0xec7ed5),this['refreshVisibleViews']();}),this['listenTo'](_0x46c7de[_0x2ec9('0x1d')],_0x2ec9('0x2c'),(_0x321f56,_0x44f566)=>{this[_0x2ec9('0x2')]--,this[_0x2ec9('0x34')](_0x44f566),this[_0x2ec9('0x31')]();}),this[_0x2ec9('0x33')](_0x46c7de,_0x2ec9('0x29'),()=>this[_0x2ec9('0x31')]()),this[_0x2ec9('0x33')](_0x46c7de,_0x2ec9('0xd'),()=>this['_handleInfoComment']()),this['on']('change:isActive',()=>this['refreshVisibleViews']()),this['on']('change:hasDirtyComment',()=>this[_0x2ec9('0x31')]()),this['setTemplate']({'tag':'ul','attributes':{'class':[_0x2ec9('0x18')]},'children':this['visibleViews']});}get['_shouldCollapse'](){return this[_0x2ec9('0x5')][_0x2ec9('0x11')]>this[_0x2ec9('0x10')][_0x2ec9('0x26')]&&!this[_0x2ec9('0x1')]&&!this['hasDirtyComment'];}[_0x2ec9('0x2a')](){super[_0x2ec9('0x2a')](),this[_0x2ec9('0x31')]();}[_0x2ec9('0x13')](){this['element'][_0x2ec9('0x13')]();}[_0x2ec9('0x1f')](){this[_0x2ec9('0x3')][_0x2ec9('0x1f')]();for(const _0x47e1c4 of this[_0x2ec9('0xb')])_0x47e1c4[_0x2ec9('0x1f')]();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this[_0x2ec9('0x7')]():this[_0x2ec9('0x12')]();}[_0x2ec9('0x24')](_0x4d828e,_0x457533){const _0x187957=new this['_config'][(_0x2ec9('0x8'))](this[_0x2ec9('0x2d')],_0x4d828e,{'maxCommentCharsWhenCollapsed':this[_0x2ec9('0x10')][_0x2ec9('0x23')],'formatDateTime':this['_config'][_0x2ec9('0x1c')],'editorConfig':this[_0x2ec9('0x10')][_0x2ec9('0x15')]});_0x187957[_0x2ec9('0x25')]=_0x4d828e['id'],_0x187957[_0x2ec9('0x20')](_0x2ec9('0x2b'))['to'](this),_0x187957[_0x2ec9('0x20')]('updateComment')['to'](this),_0x187957[_0x2ec9('0x20')](_0x2ec9('0x4'))['to'](this),this['listenTo'](_0x187957,_0x2ec9('0x6'),()=>this[_0x2ec9('0x1b')]()),this['commentViews'][_0x2ec9('0x28')](_0x187957,_0x457533);}[_0x2ec9('0xe')](_0x321685){const _0x55d58c=this['_model']['_findOptimalIndex'](_0x321685);return this[_0x2ec9('0xc')]?this[_0x2ec9('0xc')]['authoredAt']>_0x321685['authoredAt']?_0x55d58c-0x1:_0x55d58c:_0x55d58c-0x1;}[_0x2ec9('0x1a')](){if(this[_0x2ec9('0x5')][_0x2ec9('0x2f')]&&this[_0x2ec9('0x5')][_0x2ec9('0x1e')]){const _0xef2efd={'id':_0x2ec9('0xa'),'author':this['_model'][_0x2ec9('0x2f')],'authoredAt':this[_0x2ec9('0x5')][_0x2ec9('0x1e')],'content':_0x290acc(this[_0x2ec9('0x2d')],_0x2ec9('0x19')),'attributes':{}};this[_0x2ec9('0xc')]=new this[(_0x2ec9('0x10'))][(_0x2ec9('0x8'))](this[_0x2ec9('0x2d')],_0xef2efd,{'maxCommentCharsWhenCollapsed':this['_config'][_0x2ec9('0x23')],'formatDateTime':this[_0x2ec9('0x10')][_0x2ec9('0x1c')],'editorConfig':this[_0x2ec9('0x10')][_0x2ec9('0x15')],'isSystemComment':!0x0}),this[_0x2ec9('0xb')][_0x2ec9('0x28')](this[_0x2ec9('0xc')],this['_model']['_findOptimalIndex'](_0xef2efd));}else this[_0x2ec9('0xc')]&&(this[_0x2ec9('0xb')][_0x2ec9('0x2c')](this[_0x2ec9('0xc')]),this[_0x2ec9('0xc')][_0x2ec9('0x1f')](),this['resolvedCommentView']=null);this[_0x2ec9('0x31')]();}[_0x2ec9('0x34')](_0x58d31c){const _0x573d07=this[_0x2ec9('0xb')][_0x2ec9('0x2c')](_0x58d31c['id']);this[_0x2ec9('0x30')](_0x573d07),_0x573d07[_0x2ec9('0x14')]&&this[_0x2ec9('0x1b')](),_0x573d07[_0x2ec9('0x1f')]();}['_updateHasDirtyComment'](){this[_0x2ec9('0xf')]=Array[_0x2ec9('0x22')](this[_0x2ec9('0xb')])[_0x2ec9('0x0')](_0x50eae5=>_0x50eae5[_0x2ec9('0x14')]);}[_0x2ec9('0x7')](){const _0x55ad26=function(_0x5292f2){const _0x273309=new _0x51ac3d();for(const _0x163bb1 of _0x5292f2)_0x273309[_0x2ec9('0x28')](_0x163bb1);return _0x273309;}(this['commentViews']),_0x2ed6df=this[_0x2ec9('0x3')][_0x2ec9('0x17')];for(let _0x3d98bc=0x1;_0x3d98bc<=_0x2ed6df;_0x3d98bc++)_0x55ad26[_0x2ec9('0x2c')](0x1);for(const _0x43fab5 of _0x55ad26)_0x43fab5['collapse']();_0x2ed6df>0x0&&_0x55ad26['add'](this[_0x2ec9('0x3')],0x1),ss(_0x2f7962(Array[_0x2ec9('0x22')](this[_0x2ec9('0x9')]),Array['from'](_0x55ad26)),this[_0x2ec9('0x9')],_0x55ad26);}['_rearrangeExpand'](){ss(_0x2f7962(Array[_0x2ec9('0x22')](this[_0x2ec9('0x9')]),Array[_0x2ec9('0x22')](this[_0x2ec9('0xb')])),this[_0x2ec9('0x9')],this[_0x2ec9('0xb')]);for(const _0xdef978 of this['visibleViews'])_0xdef978[_0x2ec9('0x32')]();}}function ss(_0x5ba05d,_0x4f30b5,_0x13f273){let _0x49c3b3=0x0;for(const _0x27bb71 of _0x5ba05d)switch(_0x27bb71){case'insert':_0x4f30b5[_0x2ec9('0x28')](_0x13f273[_0x2ec9('0x2e')](_0x49c3b3),_0x49c3b3),_0x49c3b3++;break;case _0x2ec9('0x27'):_0x4f30b5[_0x2ec9('0x2c')](_0x49c3b3);break;case _0x2ec9('0x21'):_0x49c3b3++;}}
23
+ const _0x3219=['CommentView','render','viewUid','_handleNewCommentModel','_model','_rearrangeExpand','insert','isActive','maxThreadTotalWeight','formatDateTime','resolveCommentThread','resolvedCommentView','destroy','_findOptimalIndex','bind','equal','resolvedBy','_shouldCollapse','_rearrangeCollapse','set','Marked\x20as\x20resolved','from','refreshVisibleViews','resolvedAt','removeComment','_collapsedCommentsView','setTemplate','_handleRemoveCommentModel','add','maxCommentCharsWhenCollapsed','listenTo','locale','comments','maxCommentsWhenCollapsed','stopListening','change:hasDirtyComment','createCollection','_updateHasDirtyComment','commentViews','editorConfig','isEditMode','count','length','commentUpdated','ck-thread__comments','resolved','visibleViews','hasDirtyComment','focus','_config','delegate','_handleInfoComment','get','remove','_calculatePosition'];(function(_0x3d285d,_0x321925){const _0x558c1c=function(_0x1a2aea){while(--_0x1a2aea){_0x3d285d['push'](_0x3d285d['shift']());}};_0x558c1c(++_0x321925);}(_0x3219,0x165));const _0x558c=function(_0x3d285d,_0x321925){_0x3d285d=_0x3d285d-0x0;let _0x558c1c=_0x3219[_0x3d285d];return _0x558c1c;};import{View as _0x4ccee3}from'ckeditor5/src/ui';import{diff as _0x552b33,Collection as _0x4b2ac7}from'ckeditor5/src/utils';import{getTranslation as _0x9e052a}from'../../../utils/common-translations';import _0x181d1e from'./collapsedcommentsview';export default class wt extends _0x4ccee3{constructor(_0x2ad216,_0x2f3706,_0x4a2c89){super(_0x2ad216),this['set'](_0x558c('0x14'),!0x1),this[_0x558c('0x2f')](_0x558c('0xf'),_0x2f3706[_0x558c('0x5')][_0x558c('0xf')]),this[_0x558c('0x2f')](_0x558c('0x23'),!0x1),this['_model']=_0x2f3706,this[_0x558c('0x16')]=_0x4a2c89,this[_0x558c('0xb')]=this[_0x558c('0x9')](),this[_0x558c('0x13')]=this[_0x558c('0x9')](),this['resolvedCommentView']=null,this['_collapsedCommentsView']=new _0x181d1e(_0x2ad216),this[_0x558c('0x35')][_0x558c('0x2a')]('count')['to'](this,'length',_0xab6940=>_0xab6940-this[_0x558c('0x16')][_0x558c('0x6')]);for(const _0x556d74 of _0x2f3706['comments'])this[_0x558c('0x1f')](_0x556d74);this[_0x558c('0x18')](),this[_0x558c('0x3')](_0x2f3706[_0x558c('0x5')],_0x558c('0x1'),(_0x112367,_0x2e07eb)=>{const _0xc78dea=this[_0x558c('0x1b')](_0x2e07eb);this['length']++,this[_0x558c('0x1f')](_0x2e07eb,_0xc78dea),this[_0x558c('0x32')]();}),this[_0x558c('0x3')](_0x2f3706[_0x558c('0x5')],_0x558c('0x1a'),(_0x184209,_0x4c7a84)=>{this['length']--,this[_0x558c('0x0')](_0x4c7a84),this[_0x558c('0x32')]();}),this['listenTo'](_0x2f3706,_0x558c('0x10'),()=>this[_0x558c('0x32')]()),this[_0x558c('0x3')](_0x2f3706,'change:isResolved',()=>this['_handleInfoComment']()),this['on']('change:isActive',()=>this[_0x558c('0x32')]()),this['on'](_0x558c('0x8'),()=>this[_0x558c('0x32')]()),this[_0x558c('0x36')]({'tag':'ul','attributes':{'class':[_0x558c('0x11')]},'children':this[_0x558c('0x13')]});}get['_shouldCollapse'](){return this[_0x558c('0x20')]['weight']>this[_0x558c('0x16')][_0x558c('0x24')]&&!this[_0x558c('0x23')]&&!this[_0x558c('0x14')];}[_0x558c('0x1d')](){super[_0x558c('0x1d')](),this[_0x558c('0x32')]();}[_0x558c('0x15')](){this['element'][_0x558c('0x15')]();}['destroy'](){this[_0x558c('0x35')][_0x558c('0x28')]();for(const _0x3cd5bb of this[_0x558c('0xb')])_0x3cd5bb[_0x558c('0x28')]();super[_0x558c('0x28')]();}['refreshVisibleViews'](){this[_0x558c('0x2d')]?this[_0x558c('0x2e')]():this[_0x558c('0x21')]();}[_0x558c('0x1f')](_0x4e803b,_0x21eed8){const _0x1ecf1d=new this[(_0x558c('0x16'))][(_0x558c('0x1c'))](this[_0x558c('0x4')],_0x4e803b,{'maxCommentCharsWhenCollapsed':this[_0x558c('0x16')][_0x558c('0x2')],'formatDateTime':this[_0x558c('0x16')]['formatDateTime'],'editorConfig':this['_config'][_0x558c('0xc')]});_0x1ecf1d[_0x558c('0x1e')]=_0x4e803b['id'],_0x1ecf1d[_0x558c('0x17')](_0x558c('0x34'))['to'](this),_0x1ecf1d['delegate']('updateComment')['to'](this),_0x1ecf1d['delegate'](_0x558c('0x26'))['to'](this),_0x1ecf1d[_0x558c('0x17')]('editorReady')['to'](this),_0x1ecf1d[_0x558c('0x17')]('editorDestroyed')['to'](this),this[_0x558c('0x3')](_0x1ecf1d,'change:isEditMode',()=>this[_0x558c('0xa')]()),this[_0x558c('0xb')]['add'](_0x1ecf1d,_0x21eed8);}[_0x558c('0x1b')](_0xe25f3f){const _0x2c2888=this[_0x558c('0x20')][_0x558c('0x29')](_0xe25f3f);return this[_0x558c('0x27')]?this[_0x558c('0x27')]['authoredAt']>_0xe25f3f['authoredAt']?_0x2c2888-0x1:_0x2c2888:_0x2c2888-0x1;}['_handleInfoComment'](){if(this[_0x558c('0x20')][_0x558c('0x2c')]&&this['_model'][_0x558c('0x33')]){const _0x903808={'id':_0x558c('0x12'),'author':this[_0x558c('0x20')][_0x558c('0x2c')],'authoredAt':this[_0x558c('0x20')][_0x558c('0x33')],'content':_0x9e052a(this[_0x558c('0x4')],_0x558c('0x30')),'attributes':{}};this[_0x558c('0x27')]=new this[(_0x558c('0x16'))][(_0x558c('0x1c'))](this[_0x558c('0x4')],_0x903808,{'maxCommentCharsWhenCollapsed':this[_0x558c('0x16')][_0x558c('0x2')],'formatDateTime':this[_0x558c('0x16')][_0x558c('0x25')],'editorConfig':this[_0x558c('0x16')][_0x558c('0xc')],'isSystemComment':!0x0}),this['commentViews'][_0x558c('0x1')](this[_0x558c('0x27')],this[_0x558c('0x20')][_0x558c('0x29')](_0x903808));}else this['resolvedCommentView']&&(this[_0x558c('0xb')]['remove'](this['resolvedCommentView']),this['resolvedCommentView'][_0x558c('0x28')](),this['resolvedCommentView']=null);this[_0x558c('0x32')]();}[_0x558c('0x0')](_0x3f0fd6){const _0x4a1b83=this['commentViews']['remove'](_0x3f0fd6['id']);this[_0x558c('0x7')](_0x4a1b83),_0x4a1b83[_0x558c('0xd')]&&this['_updateHasDirtyComment'](),_0x4a1b83[_0x558c('0x28')]();}[_0x558c('0xa')](){this[_0x558c('0x14')]=Array[_0x558c('0x31')](this['commentViews'])['some'](_0x26d3f2=>_0x26d3f2[_0x558c('0xd')]);}['_rearrangeCollapse'](){const _0x1a7649=function(_0x4122cf){const _0x56bb79=new _0x4b2ac7();for(const _0x391650 of _0x4122cf)_0x56bb79['add'](_0x391650);return _0x56bb79;}(this['commentViews']),_0xb4164d=this[_0x558c('0x35')][_0x558c('0xe')];for(let _0x564322=0x1;_0x564322<=_0xb4164d;_0x564322++)_0x1a7649['remove'](0x1);for(const _0x42b1c4 of _0x1a7649)_0x42b1c4['collapse']();_0xb4164d>0x0&&_0x1a7649[_0x558c('0x1')](this[_0x558c('0x35')],0x1),ss(_0x552b33(Array['from'](this[_0x558c('0x13')]),Array[_0x558c('0x31')](_0x1a7649)),this[_0x558c('0x13')],_0x1a7649);}[_0x558c('0x21')](){ss(_0x552b33(Array['from'](this[_0x558c('0x13')]),Array[_0x558c('0x31')](this[_0x558c('0xb')])),this[_0x558c('0x13')],this[_0x558c('0xb')]);for(const _0x1ac136 of this[_0x558c('0x13')])_0x1ac136['expand']();}}function ss(_0x79ddb2,_0x1c77e2,_0x2d7409){let _0x324b35=0x0;for(const _0x270f7d of _0x79ddb2)switch(_0x270f7d){case _0x558c('0x22'):_0x1c77e2['add'](_0x2d7409[_0x558c('0x19')](_0x324b35),_0x324b35),_0x324b35++;break;case'delete':_0x1c77e2[_0x558c('0x1a')](_0x324b35);break;case _0x558c('0x2b'):_0x324b35++;}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module comments/comments/ui/view/commentthreadheaderview
3
7
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2731=['Reopen','Comment\x20was\x20made\x20on\x20an\x20element','ck-context-wrapper','icon','setTemplate','reopenCommentThread','scrollWidth','offsetWidth','overlay','isVisible','...','mouseleave','div','listenTo','context','remove','value','execute','add','isResolvable','reopenButtonView','tooltip','lastIndexOf','element','ck-thread__header','render','bindTemplate','substring','span','bind','label','_createReopenButton','contextValue','locale','_trimContextValue','_attachContextActions','.ck-context__value','isReadOnly','ck-context','hasContext','ck-annotation__actions','querySelector','_model'];(function(_0x1345e5,_0x27319d){const _0xd5df99=function(_0x48d812){while(--_0x48d812){_0x1345e5['push'](_0x1345e5['shift']());}};_0xd5df99(++_0x27319d);}(_0x2731,0xb5));const _0xd5df=function(_0x1345e5,_0x27319d){_0x1345e5=_0x1345e5-0x0;let _0xd5df99=_0x2731[_0x1345e5];return _0xd5df99;};import{View as _0x35e8a1,ButtonView as _0x1d7068}from'ckeditor5/src/ui';import{getTranslation as _0x55cfef}from'../../../utils/common-translations';import _0x53adeb from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Tt extends _0x35e8a1{constructor(_0x3e5d4f,_0x7b4827){super(_0x3e5d4f);const _0x49d7cf=this[_0xd5df('0x11')];this[_0xd5df('0x21')]=_0x7b4827,this[_0xd5df('0xb')]=this[_0xd5df('0x16')](),this[_0xd5df('0x14')](_0xd5df('0x1e'))['to'](this[_0xd5df('0x21')],'context',_0x35b7c0=>!!_0x35b7c0),this[_0xd5df('0x14')]('contextValue')['to'](this['_model'],_0xd5df('0x5'),_0x1a6d63=>_0x1a6d63&&_0x1a6d63[_0xd5df('0x7')]?this[_0xd5df('0x19')](_0x1a6d63[_0xd5df('0x7')]):_0x55cfef(this[_0xd5df('0x18')],_0xd5df('0x23'))),this[_0xd5df('0x26')]({'tag':_0xd5df('0x3'),'attributes':{'class':[_0xd5df('0xf')]},'children':[{'tag':_0xd5df('0x3'),'attributes':{'class':[_0xd5df('0x24')]},'children':[{'tag':'div','attributes':{'class':[_0xd5df('0x1d'),_0x49d7cf['if'](_0xd5df('0x1e'),'ck-context--quotes')]},'children':[{'tag':_0xd5df('0x13'),'attributes':{'class':['ck-context__value']},'children':[{'text':_0x49d7cf['to'](_0xd5df('0x17'))}]}]}]},{'tag':_0xd5df('0x3'),'attributes':{'class':[_0xd5df('0x1f')]},'children':[this[_0xd5df('0xb')]]}]});}[_0xd5df('0x10')](){super[_0xd5df('0x10')](),this[_0xd5df('0x1a')]();}[_0xd5df('0x16')](){const _0x475c51=new _0x1d7068(this[_0xd5df('0x18')]);return _0x475c51[_0xd5df('0x15')]=_0x55cfef(this['locale'],_0xd5df('0x22')),_0x475c51[_0xd5df('0xc')]=_0x55cfef(this[_0xd5df('0x18')],'Reopen'),_0x475c51[_0xd5df('0x25')]=_0x53adeb,_0x475c51[_0xd5df('0x14')]('isEnabled')['to'](this[_0xd5df('0x21')],_0xd5df('0x1c'),_0x4e5c31=>!_0x4e5c31),_0x475c51[_0xd5df('0x14')](_0xd5df('0x0'))['to'](this['_model'],_0xd5df('0xa')),_0x475c51['on'](_0xd5df('0x8'),()=>{this['fire'](_0xd5df('0x27'),this['_model']['id']);}),_0x475c51;}['_trimContextValue'](_0x32691d){if(_0x32691d['length']<0x96)return _0x32691d;const _0x5bc842=_0x32691d[_0xd5df('0xd')]('\x20',0x93);return _0x32691d[_0xd5df('0x12')](0x0,_0x5bc842>-0x1?_0x5bc842:0x93)+_0xd5df('0x1');}[_0xd5df('0x1a')](){const _0xd4eb33=this[_0xd5df('0xe')][_0xd5df('0x20')]('.ck-context'),_0x2dfd8c=_0xd4eb33['querySelector'](_0xd5df('0x1b'));this[_0xd5df('0x4')](_0xd4eb33,'mouseenter',()=>{_0x2dfd8c[_0xd5df('0x29')]<_0x2dfd8c[_0xd5df('0x28')]&&_0xd4eb33['classList'][_0xd5df('0x9')](_0xd5df('0x2a'));}),this['listenTo'](_0xd4eb33,_0xd5df('0x2'),()=>{_0xd4eb33['classList'][_0xd5df('0x6')](_0xd5df('0x2a'));});}}
23
+ const _0xdebf=['substring','mouseenter','remove','label','_model','isVisible','hasContext','tooltip','context','setTemplate','listenTo','overlay','ck-thread__header','reopenButtonView','length','scrollWidth','Reopen','bindTemplate','isResolvable','ck-context__value','ck-context','offsetWidth','icon','span','isReadOnly','...','execute','reopenCommentThread','querySelector','.ck-context__value','bind','add','value','_attachContextActions','div','mouseleave','isEnabled','.ck-context','Comment\x20was\x20made\x20on\x20an\x20element','render','classList','_createReopenButton','element','lastIndexOf','contextValue','ck-annotation__actions','locale'];(function(_0x2b6de6,_0xdebfc2){const _0x5826e3=function(_0x45b2c5){while(--_0x45b2c5){_0x2b6de6['push'](_0x2b6de6['shift']());}};_0x5826e3(++_0xdebfc2);}(_0xdebf,0x11a));const _0x5826=function(_0x2b6de6,_0xdebfc2){_0x2b6de6=_0x2b6de6-0x0;let _0x5826e3=_0xdebf[_0x2b6de6];return _0x5826e3;};import{View as _0x10945b,ButtonView as _0x5d383b}from'ckeditor5/src/ui';import{getTranslation as _0x3d4896}from'../../../utils/common-translations';import _0x585959 from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Rt extends _0x10945b{constructor(_0x4895eb,_0x3374e3){super(_0x4895eb);const _0x480772=this[_0x5826('0x11')];this[_0x5826('0x4')]=_0x3374e3,this['reopenButtonView']=this[_0x5826('0x29')](),this[_0x5826('0x1e')](_0x5826('0x6'))['to'](this['_model'],_0x5826('0x8'),_0x1d58c3=>!!_0x1d58c3),this[_0x5826('0x1e')](_0x5826('0x2c'))['to'](this[_0x5826('0x4')],_0x5826('0x8'),_0x2233cf=>_0x2233cf&&_0x2233cf['value']?this['_trimContextValue'](_0x2233cf[_0x5826('0x20')]):_0x3d4896(this[_0x5826('0x2e')],_0x5826('0x26'))),this[_0x5826('0x9')]({'tag':_0x5826('0x22'),'attributes':{'class':[_0x5826('0xc')]},'children':[{'tag':'div','attributes':{'class':['ck-context-wrapper']},'children':[{'tag':_0x5826('0x22'),'attributes':{'class':[_0x5826('0x14'),_0x480772['if'](_0x5826('0x6'),'ck-context--quotes')]},'children':[{'tag':_0x5826('0x17'),'attributes':{'class':[_0x5826('0x13')]},'children':[{'text':_0x480772['to'](_0x5826('0x2c'))}]}]}]},{'tag':_0x5826('0x22'),'attributes':{'class':[_0x5826('0x2d')]},'children':[this[_0x5826('0xd')]]}]});}[_0x5826('0x27')](){super['render'](),this[_0x5826('0x21')]();}[_0x5826('0x29')](){const _0x320916=new _0x5d383b(this[_0x5826('0x2e')]);return _0x320916[_0x5826('0x3')]=_0x3d4896(this[_0x5826('0x2e')],_0x5826('0x10')),_0x320916[_0x5826('0x7')]=_0x3d4896(this[_0x5826('0x2e')],_0x5826('0x10')),_0x320916[_0x5826('0x16')]=_0x585959,_0x320916[_0x5826('0x1e')](_0x5826('0x24'))['to'](this['_model'],_0x5826('0x18'),_0x42669e=>!_0x42669e),_0x320916['bind'](_0x5826('0x5'))['to'](this[_0x5826('0x4')],_0x5826('0x12')),_0x320916['on'](_0x5826('0x1a'),()=>{this['fire'](_0x5826('0x1b'),this[_0x5826('0x4')]['id']);}),_0x320916;}['_trimContextValue'](_0x3c9732){if(_0x3c9732[_0x5826('0xe')]<0x96)return _0x3c9732;const _0xa9243f=_0x3c9732[_0x5826('0x2b')]('\x20',0x93);return _0x3c9732[_0x5826('0x0')](0x0,_0xa9243f>-0x1?_0xa9243f:0x93)+_0x5826('0x19');}[_0x5826('0x21')](){const _0x13b0c1=this[_0x5826('0x2a')][_0x5826('0x1c')](_0x5826('0x25')),_0x3e72e5=_0x13b0c1['querySelector'](_0x5826('0x1d'));this[_0x5826('0xa')](_0x13b0c1,_0x5826('0x1'),()=>{_0x3e72e5[_0x5826('0x15')]<_0x3e72e5[_0x5826('0xf')]&&_0x13b0c1[_0x5826('0x28')][_0x5826('0x1f')](_0x5826('0xb'));}),this[_0x5826('0xa')](_0x13b0c1,_0x5826('0x23'),()=>{_0x13b0c1[_0x5826('0x28')][_0x5826('0x2')](_0x5826('0xb'));});}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module comments/comments/ui/view/commentthreadinputview
3
7
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2c77=['focusTracker','set','bindTemplate','ck-comment__input-container--active','bind','editor','destroy','ck-comment__input-container','extendTemplate','then','change:showInput','value','showInput','div','ck-thread__user','commentInputView'];(function(_0x484efe,_0x2c771d){var _0x4d4632=function(_0x1134b9){while(--_0x1134b9){_0x484efe['push'](_0x484efe['shift']());}};_0x4d4632(++_0x2c771d);}(_0x2c77,0x194));var _0x4d46=function(_0x484efe,_0x2c771d){_0x484efe=_0x484efe-0x0;var _0x4d4632=_0x2c77[_0x484efe];return _0x4d4632;};import{View as _0x597d5b}from'ckeditor5/src/ui';import _0x44a0cb from'./commentinputview';import{UserView as _0x5dd418}from'ckeditor5-collaboration/src/collaboration-core';export default class At extends _0x597d5b{constructor(_0x30af0a,_0xa3fd69,_0x174963){super(_0x30af0a),this[_0x4d46('0xb')]=new _0x44a0cb(_0x30af0a,_0x174963),this['commentInputView'][_0x4d46('0x0')]('showButtons')['to'](this[_0x4d46('0xb')][_0x4d46('0xc')],'isFocused',this[_0x4d46('0xb')],_0x4d46('0x7'),(_0x538bea,_0x103dd5)=>_0x538bea||!!_0x103dd5),this[_0x4d46('0xd')](_0x4d46('0x8'),!0x1),this['on'](_0x4d46('0x6'),()=>{this['showInput']&&!this[_0x4d46('0xb')][_0x4d46('0x1')]&&this[_0x4d46('0xb')]['createEditor']();}),this['userView']=new _0x5dd418(_0x30af0a,_0xa3fd69),this['userView']['extendTemplate']({'attributes':{'class':_0x4d46('0xa')}}),this['commentInputView'][_0x4d46('0x4')]({'attributes':{'class':'ck-thread__input'}}),this['setTemplate']({'tag':_0x4d46('0x9'),'attributes':{'class':[_0x4d46('0x3'),this[_0x4d46('0xe')]['if'](_0x4d46('0x8'),_0x4d46('0xf'))]},'children':[this['userView'],this[_0x4d46('0xb')]]});}[_0x4d46('0x2')](){return this[_0x4d46('0xb')][_0x4d46('0x2')]()[_0x4d46('0x5')](()=>super[_0x4d46('0x2')]());}}
23
+ var _0x2a6e=['commentInputView','userView','ck-thread__input','delegate','focusTracker','bind','showButtons','editor','isFocused','destroy','set','div','setTemplate','createEditor','editorReady','ck-comment__input-container','ck-comment__input-container--active','extendTemplate','bindTemplate','ck-thread__user','showInput'];(function(_0x144d7b,_0x2a6eb9){var _0x2d85cb=function(_0x56ab52){while(--_0x56ab52){_0x144d7b['push'](_0x144d7b['shift']());}};_0x2d85cb(++_0x2a6eb9);}(_0x2a6e,0xb9));var _0x2d85=function(_0x144d7b,_0x2a6eb9){_0x144d7b=_0x144d7b-0x0;var _0x2d85cb=_0x2a6e[_0x144d7b];return _0x2d85cb;};import{View as _0x32960a}from'ckeditor5/src/ui';import _0x580964 from'./commentinputview';import{UserView as _0x10ab5a}from'ckeditor5-collaboration/src/collaboration-core';export default class Ct extends _0x32960a{constructor(_0x1a78e0,_0x14b769,_0x1c4f74){super(_0x1a78e0),this['commentInputView']=new _0x580964(_0x1a78e0,_0x1c4f74),this[_0x2d85('0x4')][_0x2d85('0x9')](_0x2d85('0xa'))['to'](this['commentInputView'][_0x2d85('0x8')],_0x2d85('0xc'),this[_0x2d85('0x4')],'value',(_0x48e8c0,_0x2acce1)=>_0x48e8c0||!!_0x2acce1),this[_0x2d85('0xe')](_0x2d85('0x3'),!0x1),this['on']('change:showInput',()=>{this[_0x2d85('0x3')]&&!this[_0x2d85('0x4')][_0x2d85('0xb')]&&this[_0x2d85('0x4')][_0x2d85('0x11')]();}),this[_0x2d85('0x4')][_0x2d85('0x7')](_0x2d85('0x12'))['to'](this),this[_0x2d85('0x4')]['delegate']('editorDestroyed')['to'](this),this['userView']=new _0x10ab5a(_0x1a78e0,_0x14b769),this['userView'][_0x2d85('0x0')]({'attributes':{'class':_0x2d85('0x2')}}),this['commentInputView'][_0x2d85('0x0')]({'attributes':{'class':_0x2d85('0x6')}}),this[_0x2d85('0x10')]({'tag':_0x2d85('0xf'),'attributes':{'class':[_0x2d85('0x13'),this[_0x2d85('0x1')]['if'](_0x2d85('0x3'),_0x2d85('0x14'))]},'children':[this[_0x2d85('0x5')],this[_0x2d85('0x4')]]});}[_0x2d85('0xd')](){return this[_0x2d85('0x4')][_0x2d85('0xd')]()['then'](()=>super[_0x2d85('0xd')]());}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module comments/comments/ui/view/commentthreadview
3
7
  * @publicApi
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x38ff=['ck-thread--active','actionIndicator','ck-reset_all-excluded','unbind','isResolvable','placeholder','ck-thread--','icon','remove','Delete\x20comment\x20thread?','stop','change:isActive','element','commentThreadChildren','isResolved','removeButton','_cancelAllConfirms','cancelConfirm','ck-comment--resolve','extendTemplate','commentViews','setTemplate','actionBar','tooltip','change:isResolved','isEnabled','high','_boundFirstCommentView','set','locale','createCollection','containerElement','getTemplate','ck-thread--remove-confirmation','div','Write\x20a\x20comment...','removeCommentThread','commentsListView','resolveButton','isActive','add','commentThreadHeaderView','_model','querySelector','check','get','resolveCommentThread','isVisible','render','bindTemplate','.ck-thread__container','change:isReadOnly','addMany','listenTo','bind','_createResolveButton','ck-thread__container','then','execute','label','isSystemComment','fire','Resolve','_bindFirstCommentView'];(function(_0xe2ef1,_0x38ff08){const _0x52e78c=function(_0x161090){while(--_0x161090){_0xe2ef1['push'](_0xe2ef1['shift']());}};_0x52e78c(++_0x38ff08);}(_0x38ff,0x67));const _0x52e7=function(_0xe2ef1,_0x38ff08){_0xe2ef1=_0xe2ef1-0x0;let _0x52e78c=_0x38ff[_0xe2ef1];return _0x52e78c;};import{ConfirmMixin as _0x48531e}from'ckeditor5-collaboration/src/collaboration-core';import{ButtonView as _0x47bad7}from'ckeditor5/src/ui';import{icons as _0x40af7e}from'ckeditor5/src/core';import _0x523b9b from'./basecommentthreadview';import{getTranslation as _0x4a1436}from'../../../utils/common-translations';export default class ft extends _0x48531e(_0x523b9b){constructor(_0x5e3081,_0x2e3592,_0x18d597,_0x3793ee){super(_0x5e3081,_0x2e3592,_0x18d597,_0x3793ee),this[_0x52e7('0x26')]=this[_0x52e7('0x37')](),this[_0x52e7('0x26')][_0x52e7('0xd')]([this[_0x52e7('0x3e')],this['commentThreadInputView']]),this['_model'][_0x52e7('0x27')]&&this[_0x52e7('0x26')][_0x52e7('0x1')](this[_0x52e7('0x2')],0x0),this[_0x52e7('0x3')]['on'](_0x52e7('0x31'),(_0x1cfe74,_0x381660,_0x3ab408)=>{_0x3ab408?this[_0x52e7('0x26')][_0x52e7('0x1')](this['commentThreadHeaderView'],0x0):this[_0x52e7('0x26')][_0x52e7('0x21')](this['commentThreadHeaderView']);}),this[_0x52e7('0x35')]('actionIndicator',null),this[_0x52e7('0x38')]=null,this[_0x52e7('0x34')]=null,this[_0x52e7('0x36')]=_0x5e3081,this[_0x52e7('0x3f')]=this['_createResolveButton'](),this[_0x52e7('0x2e')](this['getTemplate']()),this['on'](_0x52e7('0x24'),(_0x20662a,_0x482eea,_0x5e8eff)=>{_0x5e8eff||this[_0x52e7('0x29')]();}),this[_0x52e7('0xe')](this[_0x52e7('0x3')],_0x52e7('0xc'),(_0x3b4f8a,_0x105266,_0xe43b01)=>{_0xe43b01&&this[_0x52e7('0x29')]();}),this['length']>0x0&&this[_0x52e7('0x18')](),this[_0x52e7('0xe')](this[_0x52e7('0x3e')]['commentViews'],'add',()=>{this[_0x52e7('0x18')]();});}[_0x52e7('0x39')](){const _0x22edd9=this[_0x52e7('0xa')];return{'tag':_0x52e7('0x3b'),'attributes':{'class':['ck-thread',_0x52e7('0x1b'),_0x22edd9['if'](_0x52e7('0x0'),_0x52e7('0x19')),_0x22edd9['if']('isConfirm',_0x52e7('0x3a')),_0x22edd9['to'](_0x52e7('0x1a'),_0x44aaa1=>_0x44aaa1?_0x52e7('0x1f')+_0x44aaa1:'')],'data-thread-id':this[_0x52e7('0x3')]['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':_0x52e7('0x11')},'children':this[_0x52e7('0x26')]}]};}[_0x52e7('0x9')](){super['render'](),this[_0x52e7('0x38')]=this[_0x52e7('0x25')][_0x52e7('0x4')](_0x52e7('0xb'));}[_0x52e7('0x29')](){this['cancelConfirm']();for(const _0x4c0d07 of this[_0x52e7('0x3e')][_0x52e7('0x2d')])_0x4c0d07[_0x52e7('0x2a')]();}[_0x52e7('0x18')](){const {locale:_0x33075c}=this,_0x1f348b=this[_0x52e7('0x3e')][_0x52e7('0x2d')][_0x52e7('0x6')](0x0);_0x1f348b===this[_0x52e7('0x34')]||_0x1f348b[_0x52e7('0x15')]||(this[_0x52e7('0x34')]=_0x1f348b,this[_0x52e7('0x1c')]('actionIndicator'),this[_0x52e7('0xf')](_0x52e7('0x1a'))['to'](_0x1f348b,_0x52e7('0x1a'),_0x5c709b=>'remove'===_0x5c709b?_0x52e7('0x21'):null),_0x1f348b[_0x52e7('0x1e')]=_0x4a1436(_0x33075c,_0x52e7('0x3c')),_0x1f348b[_0x52e7('0x28')]['on'](_0x52e7('0x13'),_0x2a7c7a=>{_0x2a7c7a[_0x52e7('0x23')](),this['showConfirm'](_0x4a1436(_0x33075c,_0x52e7('0x22')),this[_0x52e7('0x38')])[_0x52e7('0x12')](()=>{this[_0x52e7('0x16')](_0x52e7('0x3d'));});},{'priority':_0x52e7('0x33')}),_0x1f348b[_0x52e7('0x2f')][_0x52e7('0x1')](this[_0x52e7('0x3f')],0x0));}[_0x52e7('0x10')](){const _0xa62fbd=new _0x47bad7(this[_0x52e7('0x36')]);return _0xa62fbd[_0x52e7('0x14')]=_0x4a1436(this['locale'],_0x52e7('0x17')),_0xa62fbd[_0x52e7('0x30')]=_0x4a1436(this['locale'],_0x52e7('0x17')),_0xa62fbd[_0x52e7('0x20')]=_0x40af7e[_0x52e7('0x5')],_0xa62fbd[_0x52e7('0x2c')]({'attributes':{'class':_0x52e7('0x2b')}}),_0xa62fbd['bind'](_0x52e7('0x32'))['to'](this[_0x52e7('0x3')],'isReadOnly',_0xb3f216=>!_0xb3f216),_0xa62fbd[_0x52e7('0xf')](_0x52e7('0x8'))['to'](this[_0x52e7('0x3')],_0x52e7('0x1d'),this[_0x52e7('0x3')],'isResolved',(_0x1b9dab,_0x140675)=>_0x1b9dab&&!_0x140675),_0xa62fbd['on'](_0x52e7('0x13'),()=>{this[_0x52e7('0x16')](_0x52e7('0x7'),this['_model']['id']);}),_0xa62fbd;}}
23
+ const _0x3b1a=['remove','Write\x20a\x20comment...','resolveButton','isReadOnly','createCollection','_model','tooltip','isResolved','commentsListView','.ck-thread__container','locale','check','getTemplate','containerElement','icon','commentViews','change:isResolved','change:isActive','stop','commentThreadChildren','actionBar','isResolvable','div','ck-comment--resolve','ck-thread__container','removeButton','actionIndicator','removeCommentThread','resolveCommentThread','commentThreadHeaderView','_cancelAllConfirms','_boundFirstCommentView','showConfirm','Resolve','add','isActive','bind','cancelConfirm','_bindFirstCommentView','length','high','execute','_createResolveButton','setTemplate','Delete\x20comment\x20thread?','isEnabled','then','listenTo','element','fire'];(function(_0x17edac,_0x3b1aae){const _0x24b41c=function(_0x1bcdd1){while(--_0x1bcdd1){_0x17edac['push'](_0x17edac['shift']());}};_0x24b41c(++_0x3b1aae);}(_0x3b1a,0xc8));const _0x24b4=function(_0x17edac,_0x3b1aae){_0x17edac=_0x17edac-0x0;let _0x24b41c=_0x3b1a[_0x17edac];return _0x24b41c;};import{ConfirmMixin as _0x2b402b}from'ckeditor5-collaboration/src/collaboration-core';import{ButtonView as _0x5568d5}from'ckeditor5/src/ui';import{icons as _0x19feaf}from'ckeditor5/src/core';import _0x232e7a from'./basecommentthreadview';import{getTranslation as _0x23cf98}from'../../../utils/common-translations';export default class lt extends _0x2b402b(_0x232e7a){constructor(_0x26b4e9,_0x23e4da,_0x2065a9,_0x139f9b){super(_0x26b4e9,_0x23e4da,_0x2065a9,_0x139f9b),this[_0x24b4('0x13')]=this[_0x24b4('0x4')](),this[_0x24b4('0x13')]['addMany']([this['commentsListView'],this['commentThreadInputView']]),this['_model'][_0x24b4('0x7')]&&this[_0x24b4('0x13')][_0x24b4('0x22')](this[_0x24b4('0x1d')],0x0),this[_0x24b4('0x5')]['on'](_0x24b4('0x10'),(_0x315884,_0x12b073,_0x4fecbb)=>{_0x4fecbb?this['commentThreadChildren'][_0x24b4('0x22')](this[_0x24b4('0x1d')],0x0):this[_0x24b4('0x13')]['remove'](this['commentThreadHeaderView']);}),this['set'](_0x24b4('0x1a'),null),this[_0x24b4('0xd')]=null,this[_0x24b4('0x1f')]=null,this[_0x24b4('0xa')]=_0x26b4e9,this[_0x24b4('0x2')]=this['_createResolveButton'](),this[_0x24b4('0x2b')](this[_0x24b4('0xc')]()),this['on'](_0x24b4('0x11'),(_0x3bf825,_0x288c59,_0x431818)=>{_0x431818||this[_0x24b4('0x1e')]();}),this[_0x24b4('0x2f')](this[_0x24b4('0x5')],'change:isReadOnly',(_0x4762df,_0x178759,_0x23caf2)=>{_0x23caf2&&this['_cancelAllConfirms']();}),this[_0x24b4('0x27')]>0x0&&this[_0x24b4('0x26')](),this[_0x24b4('0x2f')](this['commentsListView'][_0x24b4('0xf')],_0x24b4('0x22'),()=>{this[_0x24b4('0x26')]();});}[_0x24b4('0xc')](){const _0x25385e=this['bindTemplate'];return{'tag':_0x24b4('0x16'),'attributes':{'class':['ck-thread','ck-reset_all-excluded',_0x25385e['if'](_0x24b4('0x23'),'ck-thread--active'),_0x25385e['if']('isConfirm','ck-thread--remove-confirmation'),_0x25385e['to'](_0x24b4('0x1a'),_0x1b1ffb=>_0x1b1ffb?'ck-thread--'+_0x1b1ffb:'')],'data-thread-id':this['_model']['id'],'tabindex':-0x1},'children':[{'tag':_0x24b4('0x16'),'attributes':{'class':_0x24b4('0x18')},'children':this[_0x24b4('0x13')]}]};}['render'](){super['render'](),this[_0x24b4('0xd')]=this[_0x24b4('0x30')]['querySelector'](_0x24b4('0x9'));}[_0x24b4('0x1e')](){this['cancelConfirm']();for(const _0x3bc022 of this[_0x24b4('0x8')][_0x24b4('0xf')])_0x3bc022[_0x24b4('0x25')]();}[_0x24b4('0x26')](){const {locale:_0x2784b8}=this,_0x5a4a7f=this['commentsListView'][_0x24b4('0xf')]['get'](0x0);_0x5a4a7f===this['_boundFirstCommentView']||_0x5a4a7f['isSystemComment']||(this['_boundFirstCommentView']=_0x5a4a7f,this['unbind'](_0x24b4('0x1a')),this[_0x24b4('0x24')](_0x24b4('0x1a'))['to'](_0x5a4a7f,_0x24b4('0x1a'),_0x14472b=>_0x24b4('0x0')===_0x14472b?'remove':null),_0x5a4a7f['placeholder']=_0x23cf98(_0x2784b8,_0x24b4('0x1')),_0x5a4a7f[_0x24b4('0x19')]['on'](_0x24b4('0x29'),_0xa16824=>{_0xa16824[_0x24b4('0x12')](),this[_0x24b4('0x20')](_0x23cf98(_0x2784b8,_0x24b4('0x2c')),this['containerElement'])[_0x24b4('0x2e')](()=>{this['fire'](_0x24b4('0x1b'));});},{'priority':_0x24b4('0x28')}),_0x5a4a7f[_0x24b4('0x14')][_0x24b4('0x22')](this[_0x24b4('0x2')],0x0));}[_0x24b4('0x2a')](){const _0x5e7714=new _0x5568d5(this[_0x24b4('0xa')]);return _0x5e7714['label']=_0x23cf98(this[_0x24b4('0xa')],_0x24b4('0x21')),_0x5e7714[_0x24b4('0x6')]=_0x23cf98(this[_0x24b4('0xa')],_0x24b4('0x21')),_0x5e7714[_0x24b4('0xe')]=_0x19feaf[_0x24b4('0xb')],_0x5e7714['extendTemplate']({'attributes':{'class':_0x24b4('0x17')}}),_0x5e7714[_0x24b4('0x24')](_0x24b4('0x2d'))['to'](this[_0x24b4('0x5')],_0x24b4('0x3'),_0x31d67c=>!_0x31d67c),_0x5e7714['bind']('isVisible')['to'](this['_model'],_0x24b4('0x15'),this[_0x24b4('0x5')],_0x24b4('0x7'),(_0x186ba4,_0x29a92f)=>_0x186ba4&&!_0x29a92f),_0x5e7714['on']('execute',()=>{this[_0x24b4('0x31')](_0x24b4('0x1c'),this['_model']['id']);}),_0x5e7714;}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module comments/comments/ui/view/commentview
3
7
  * @publicApi
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4d45=['change:isVisible','editButton','EXTERNAL_IMPORT_WORD_AVATAR','removeComment','userView','fire','EXTERNAL_AVATAR','ck-comment__actions','some','removeButton','Delete\x20comment?','listenTo','resolvedAt','isEnabled','ck-comment__info-name','EXTERNAL_COMMENT','isConfirm','set','div','focus','pencil','ck-annotation__user','mouseleave','getExternalCommentNote','change:isRemovable','getTemplate','withText','threeVerticalDots','Show\x20more\x20items','formatDateTime','creator','ck-comment__external','importWord','_createCommentInputView','ck-comment__wrapper','attributes','length','ck-comment--edit','@external','ck-comment--','isSystemComment','ck-comment','_model','ck-comment__info-time','icon','locale','source','ck-comment__info','ck-annotation','ck-annotation__info-name','bind','cancelConfirm','panelPosition','buttonView','ck-comment--remove-confirmation','ck-comment__user','isRemovable','_createEditButton','visibleView','change:isEnabled','ck-annotation__info-time','name','getUserViewNotificationText','isReadOnly','isVisible','children','element','EXTERNAL_IMPORT_WORD_COMMENT','execute','add','label','_attachActions','isEditMode','_createRemoveButton','ck-annotation__content-wrapper','time','Remove','Edit','bindTemplate','showConfirm','_createDropdown','authoredAt','ck-comment--remove','placeholder','items','isExternal','dropdown','render','panelView','span','remove','isEditable','actionIndicator','extendTemplate','actionBar','author'];(function(_0x3d82c5,_0x4d4585){const _0x284aaa=function(_0x368eac){while(--_0x368eac){_0x3d82c5['push'](_0x3d82c5['shift']());}};_0x284aaa(++_0x4d4585);}(_0x4d45,0x166));const _0x284a=function(_0x3d82c5,_0x4d4585){_0x3d82c5=_0x3d82c5-0x0;let _0x284aaa=_0x4d45[_0x3d82c5];return _0x284aaa;};import{ButtonView as _0xda1fb4,createDropdown as _0x43b232,ListView as _0x47cac3,ListItemView as _0x5aa9a1}from'ckeditor5/src/ui';import{icons as _0x58e707}from'ckeditor5/src/core';import{UserView as _0x55222c,ConfirmMixin as _0x4bd393}from'ckeditor5-collaboration/src/collaboration-core';import _0x552130 from'./basecommentview';import _0x59140c from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x3e79d1}from'../../../utils/common-translations';export default class pt extends _0x4bd393(_0x552130){constructor(_0x3657a0,_0x3eca9b,_0x1afb19){super(_0x3657a0,_0x3eca9b,_0x1afb19),this[_0x284a('0x2b')](_0x284a('0x16'),null),this[_0x284a('0x2b')](_0x284a('0xd'),_0x3e79d1(_0x3657a0,'Reply...')),this[_0x284a('0x4c')](_0x284a('0xb'))['to'](_0x3eca9b),this[_0x284a('0x4c')](_0x284a('0x26'))['to'](_0x3eca9b),this['actionBar']=this['createCollection'](),this[_0x284a('0x42')]||(this[_0x284a('0x1b')]=this[_0x284a('0x53')](),this[_0x284a('0x23')]=this[_0x284a('0x3')](),this[_0x284a('0xe')]=this['createCollection'](),this[_0x284a('0xe')]['addMany']([this[_0x284a('0x1b')],this[_0x284a('0x23')]]),this['dropdown']=this['_createDropdown'](),this['actionBar'][_0x284a('0x5f')](this[_0x284a('0x10')])),this['userView']=new _0x55222c(_0x3657a0,_0x3eca9b[_0x284a('0x19')],this[_0x284a('0x58')]()),this[_0x284a('0x1e')][_0x284a('0x17')]({'attributes':{'class':[_0x284a('0x51'),_0x284a('0x2f')]}}),this[_0x284a('0x25')](_0x3eca9b,_0x284a('0x32'),()=>this[_0x284a('0x4d')]()),this['setTemplate'](this[_0x284a('0x33')]());}[_0x284a('0x33')](){const _0x2105b4=this[_0x284a('0x8')],_0x4ae18c=[{'tag':_0x284a('0x2c'),'attributes':{'class':[_0x284a('0x49'),'ck-annotation__info']},'children':[{'tag':_0x284a('0x13'),'children':[{'text':this[_0x284a('0x1e')][_0x284a('0x57')]}],'attributes':{'class':[_0x284a('0x28'),_0x284a('0x4b')]}},{'tag':_0x284a('0x5'),'attributes':{'datetime':_0x2105b4['to'](_0x284a('0xb')),'class':[_0x284a('0x45'),_0x284a('0x56')]},'children':[{'text':_0x2105b4['to'](_0x284a('0xb'),_0xb97ed9=>this['_config'][_0x284a('0x37')](_0xb97ed9))}]}]},{'tag':_0x284a('0x2c'),'attributes':{'class':[_0x284a('0x21'),'ck-annotation__actions',_0x2105b4['if'](_0x284a('0x2'),'ck-comment__actions--hidden'),_0x2105b4['if'](_0x284a('0x2'),'ck-annotation__actions--hidden')]},'children':this[_0x284a('0x18')]},{'tag':_0x284a('0x2c'),'attributes':{'class':[_0x284a('0x4')]},'children':this[_0x284a('0x54')]}];return this[_0x284a('0x44')][_0x284a('0xf')]&&_0x4ae18c['push']({'tag':'div','attributes':{'class':[_0x284a('0x39')]},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':[_0x284a('0x3c'),_0x2105b4['if'](_0x284a('0x2a'),_0x284a('0x50'))],'tabindex':-0x1},'children':[{'tag':_0x284a('0x2c'),'attributes':{'class':[_0x284a('0x43'),_0x284a('0x4a'),_0x2105b4['if'](_0x284a('0x2'),_0x284a('0x3f')),_0x2105b4['if'](_0x284a('0x42'),'ck-comment--info'),_0x2105b4['to']('actionIndicator',_0x363770=>_0x363770?_0x284a('0x41')+_0x363770:'')],'data-author-id':this[_0x284a('0x44')][_0x284a('0x19')]['id'],'data-comment-id':this['_model']['id']},'children':[this[_0x284a('0x1e')],{'tag':_0x284a('0x2c'),'attributes':{'class':['ck-comment__main','ck-annotation__main']},'children':_0x4ae18c}]}]};}[_0x284a('0x53')](){const _0x134da7=new _0xda1fb4(this[_0x284a('0x47')]);return _0x134da7[_0x284a('0x0')]=_0x3e79d1(this[_0x284a('0x47')],_0x284a('0x7')),_0x134da7[_0x284a('0x46')]=_0x58e707[_0x284a('0x2e')],_0x134da7['withText']=!0x0,_0x134da7[_0x284a('0x17')]({'attributes':{'class':_0x284a('0x3f')}}),_0x134da7[_0x284a('0x4c')](_0x284a('0x27'))['to'](this['_model'],_0x284a('0x59'),_0x1c14b0=>!_0x1c14b0),_0x134da7['bind']('isVisible')['to'](this[_0x284a('0x44')],_0x284a('0x15')),_0x134da7['on'](_0x284a('0x5e'),()=>this['switchToEditMode']()),_0x134da7;}[_0x284a('0x3')](){const _0x189ede=new _0xda1fb4(this[_0x284a('0x47')]);return _0x189ede[_0x284a('0x0')]=_0x3e79d1(this['locale'],_0x284a('0x6')),_0x189ede[_0x284a('0x46')]=_0x59140c,_0x189ede[_0x284a('0x34')]=!0x0,_0x189ede['extendTemplate']({'attributes':{'class':_0x284a('0xc')}}),_0x189ede[_0x284a('0x4c')]('isEnabled')['to'](this[_0x284a('0x44')],_0x284a('0x59'),_0x5c5c60=>!_0x5c5c60),_0x189ede[_0x284a('0x4c')](_0x284a('0x5a'))['to'](this[_0x284a('0x44')],_0x284a('0x52')),_0x189ede['on'](_0x284a('0x5e'),()=>{this[_0x284a('0x9')](_0x3e79d1(this[_0x284a('0x47')],_0x284a('0x24')),this[_0x284a('0x5c')])['then'](()=>{this[_0x284a('0x1f')](_0x284a('0x1d'),this[_0x284a('0x44')]['id']);});}),_0x189ede;}[_0x284a('0xa')](){const _0x25fbd9=_0x43b232(this['locale']),_0x31dcb6=_0x25fbd9[_0x284a('0x12')][_0x284a('0x5b')],_0x306839=new _0x47cac3(this[_0x284a('0x47')]),_0x1e751f=(_0x12ed7f,_0x344f6c=-0x1)=>{const _0x26c86e=new _0x5aa9a1(this['locale']);_0x26c86e['children'][_0x284a('0x5f')](_0x12ed7f);const _0x3fd426=_0x344f6c>-0x1?_0x344f6c:_0x306839[_0x284a('0xe')][_0x284a('0x3e')];_0x306839[_0x284a('0xe')][_0x284a('0x5f')](_0x26c86e,_0x3fd426),_0x25fbd9[_0x284a('0x25')](_0x12ed7f,_0x284a('0x55'),()=>{_0x25fbd9[_0x284a('0x27')]=[...this[_0x284a('0xe')]]['some'](_0xe9272f=>_0xe9272f[_0x284a('0x27')]);}),_0x25fbd9[_0x284a('0x25')](_0x12ed7f,_0x284a('0x1a'),()=>{_0x25fbd9['buttonView'][_0x284a('0x5a')]=[...this[_0x284a('0xe')]][_0x284a('0x22')](_0x518f6f=>_0x518f6f[_0x284a('0x5a')]);});};_0x25fbd9[_0x284a('0x4e')]='sw',_0x25fbd9[_0x284a('0x4f')][_0x284a('0x2b')]({'label':_0x3e79d1(this[_0x284a('0x47')],_0x284a('0x36')),'icon':_0x58e707[_0x284a('0x35')]}),_0x25fbd9[_0x284a('0x27')]=[...this[_0x284a('0xe')]][_0x284a('0x22')](_0x178fba=>_0x178fba[_0x284a('0x27')]),_0x25fbd9[_0x284a('0x4f')][_0x284a('0x5a')]=[...this['items']][_0x284a('0x22')](_0xfbfee3=>_0xfbfee3['isVisible']);for(const _0xe5dcc7 of this['items'])_0x1e751f(_0xe5dcc7);return _0x31dcb6[_0x284a('0x5f')](_0x306839),_0x25fbd9[_0x284a('0x25')](this[_0x284a('0xe')],'add',(_0x5ab3f6,_0x5630cf,_0x31480b)=>{_0x1e751f(_0x5630cf,_0x31480b);}),_0x25fbd9['listenTo'](this[_0x284a('0xe')],'remove',(_0x39e402,_0x2a81f9,_0x519d35)=>{_0x306839['items'][_0x284a('0x14')](_0x519d35);}),_0x25fbd9;}[_0x284a('0x1')](_0x135c9f,_0x290895){const _0x5e2c51=_0x135c9f&&_0x135c9f[_0x284a('0x5c')];_0x5e2c51&&(this[_0x284a('0x25')](_0x5e2c51,'mouseenter',()=>this[_0x284a('0x16')]=_0x290895),this[_0x284a('0x25')](_0x5e2c51,_0x284a('0x2d'),()=>this[_0x284a('0x16')]=_0x290895),this[_0x284a('0x25')](_0x5e2c51,_0x284a('0x30'),()=>this['actionIndicator']=null),this[_0x284a('0x25')](_0x5e2c51,'blur',()=>this['actionIndicator']=null));}[_0x284a('0x3b')](){const _0x3ec65f=super[_0x284a('0x3b')]();return _0x3ec65f[_0x284a('0x4c')](_0x284a('0xd'))['to'](this),_0x3ec65f;}[_0x284a('0x31')](){return _0x284a('0x3a')===this[_0x284a('0x44')][_0x284a('0x3d')][_0x284a('0x40')]['source']?_0x3e79d1(this[_0x284a('0x47')],_0x284a('0x5d')):_0x3e79d1(this[_0x284a('0x47')],_0x284a('0x29'));}[_0x284a('0x58')](){return this[_0x284a('0x44')]['isExternal']?_0x284a('0x3a')===this[_0x284a('0x44')][_0x284a('0x3d')][_0x284a('0x40')][_0x284a('0x48')]?_0x3e79d1(this[_0x284a('0x47')],_0x284a('0x1c'),this[_0x284a('0x44')][_0x284a('0x38')][_0x284a('0x57')]):_0x3e79d1(this[_0x284a('0x47')],_0x284a('0x20'),this['_model'][_0x284a('0x38')][_0x284a('0x57')]):null;}[_0x284a('0x11')](){super[_0x284a('0x11')](),this['_attachActions'](this[_0x284a('0x1b')],'edit'),this['_attachActions'](this[_0x284a('0x23')],_0x284a('0x14'));}}
23
+ const _0x3dbe=['setTemplate','blur','ck-annotation__main','length','listenTo','formatDateTime','actionBar','threeVerticalDots','isSystemComment','placeholder','ck-annotation__user','ck-comment--','execute','pencil','ck-comment','importWord','ck-comment__info-time','removeButton','items','getUserViewNotificationText','render','userView','@external','span','cancelConfirm','then','Show\x20more\x20items','set','Reply...','ck-comment__info-name','_attachActions','isEditMode','push','visibleView','Delete\x20comment?','add','ck-comment--edit','locale','ck-annotation__actions','dropdown','change:isEnabled','_createEditButton','some','_createRemoveButton','panelView','ck-comment__actions','showConfirm','getExternalCommentNote','createCollection','change:isRemovable','isEnabled','ck-comment--info','ck-annotation__info','creator','div','attributes','removeComment','switchToEditMode','Edit','authoredAt','isExternal','_createDropdown','label','edit','ck-comment__info','bindTemplate','remove','ck-annotation__content-wrapper','ck-annotation','withText','editButton','actionIndicator','Remove','resolvedAt','_model','bind','ck-annotation__info-time','EXTERNAL_COMMENT','_createCommentInputView','EXTERNAL_IMPORT_WORD_AVATAR','isVisible','buttonView','ck-comment__external','icon','_config','isRemovable','getTemplate','source','children','addMany','element','ck-comment--remove-confirmation','time','panelPosition'];(function(_0x45be70,_0x3dbe7a){const _0x58308f=function(_0x54996c){while(--_0x54996c){_0x45be70['push'](_0x45be70['shift']());}};_0x58308f(++_0x3dbe7a);}(_0x3dbe,0x189));const _0x5830=function(_0x45be70,_0x3dbe7a){_0x45be70=_0x45be70-0x0;let _0x58308f=_0x3dbe[_0x45be70];return _0x58308f;};import{ButtonView as _0x551c51,createDropdown as _0x11fa72,ListView as _0x1fb435,ListItemView as _0x1e5e94}from'ckeditor5/src/ui';import{icons as _0x318b2c}from'ckeditor5/src/core';import{UserView as _0x294716,ConfirmMixin as _0x4753e4}from'ckeditor5-collaboration/src/collaboration-core';import _0x29014e from'./basecommentview';import _0x36d3bc from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x3c8b2e}from'../../../utils/common-translations';export default class ut extends _0x4753e4(_0x29014e){constructor(_0x1b48c2,_0x365d1,_0x58a8ae){super(_0x1b48c2,_0x365d1,_0x58a8ae),this[_0x5830('0xa')](_0x5830('0x36'),null),this[_0x5830('0xa')](_0x5830('0x56'),_0x3c8b2e(_0x1b48c2,_0x5830('0xb'))),this[_0x5830('0x3a')](_0x5830('0x2a'))['to'](_0x365d1),this['bind'](_0x5830('0x38'))['to'](_0x365d1),this[_0x5830('0x53')]=this[_0x5830('0x1f')](),this[_0x5830('0x55')]||(this[_0x5830('0x35')]=this['_createEditButton'](),this['removeButton']=this['_createRemoveButton'](),this['items']=this[_0x5830('0x1f')](),this[_0x5830('0x1')][_0x5830('0x48')]([this[_0x5830('0x35')],this[_0x5830('0x0')]]),this[_0x5830('0x16')]=this[_0x5830('0x2c')](),this[_0x5830('0x53')][_0x5830('0x12')](this[_0x5830('0x16')])),this[_0x5830('0x4')]=new _0x294716(_0x1b48c2,_0x365d1['author'],this[_0x5830('0x2')]()),this[_0x5830('0x4')]['extendTemplate']({'attributes':{'class':['ck-comment__user',_0x5830('0x57')]}}),this[_0x5830('0x51')](_0x365d1,_0x5830('0x20'),()=>this[_0x5830('0x7')]()),this[_0x5830('0x4d')](this['getTemplate']());}[_0x5830('0x45')](){const _0x57e52a=this[_0x5830('0x30')],_0x4f98d8=[{'tag':'div','attributes':{'class':[_0x5830('0x2f'),_0x5830('0x23')]},'children':[{'tag':_0x5830('0x6'),'children':[{'text':this[_0x5830('0x4')]['name']}],'attributes':{'class':[_0x5830('0xc'),'ck-annotation__info-name']}},{'tag':_0x5830('0x4b'),'attributes':{'datetime':_0x57e52a['to']('authoredAt'),'class':[_0x5830('0x5d'),_0x5830('0x3b')]},'children':[{'text':_0x57e52a['to'](_0x5830('0x2a'),_0x3c6709=>this[_0x5830('0x43')][_0x5830('0x52')](_0x3c6709))}]}]},{'tag':_0x5830('0x25'),'attributes':{'class':[_0x5830('0x1c'),_0x5830('0x15'),_0x57e52a['if'](_0x5830('0xe'),'ck-comment__actions--hidden'),_0x57e52a['if']('isEditMode','ck-annotation__actions--hidden')]},'children':this['actionBar']},{'tag':_0x5830('0x25'),'attributes':{'class':[_0x5830('0x32')]},'children':this[_0x5830('0x10')]}];return this['_model']['isExternal']&&_0x4f98d8[_0x5830('0xf')]({'tag':_0x5830('0x25'),'attributes':{'class':[_0x5830('0x41')]},'children':[{'text':this[_0x5830('0x1e')]()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x57e52a['if']('isConfirm',_0x5830('0x4a'))],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':[_0x5830('0x5b'),_0x5830('0x33'),_0x57e52a['if'](_0x5830('0xe'),'ck-comment--edit'),_0x57e52a['if'](_0x5830('0x55'),_0x5830('0x22')),_0x57e52a['to'](_0x5830('0x36'),_0x3dd824=>_0x3dd824?_0x5830('0x58')+_0x3dd824:'')],'data-author-id':this[_0x5830('0x39')]['author']['id'],'data-comment-id':this[_0x5830('0x39')]['id']},'children':[this[_0x5830('0x4')],{'tag':_0x5830('0x25'),'attributes':{'class':['ck-comment__main',_0x5830('0x4f')]},'children':_0x4f98d8}]}]};}[_0x5830('0x18')](){const _0x2fcf26=new _0x551c51(this[_0x5830('0x14')]);return _0x2fcf26[_0x5830('0x2d')]=_0x3c8b2e(this[_0x5830('0x14')],_0x5830('0x29')),_0x2fcf26[_0x5830('0x42')]=_0x318b2c[_0x5830('0x5a')],_0x2fcf26[_0x5830('0x34')]=!0x0,_0x2fcf26['extendTemplate']({'attributes':{'class':_0x5830('0x13')}}),_0x2fcf26['bind']('isEnabled')['to'](this[_0x5830('0x39')],'isReadOnly',_0x35ebf9=>!_0x35ebf9),_0x2fcf26[_0x5830('0x3a')]('isVisible')['to'](this['_model'],'isEditable'),_0x2fcf26['on']('execute',()=>this[_0x5830('0x28')]()),_0x2fcf26;}[_0x5830('0x1a')](){const _0x226b64=new _0x551c51(this[_0x5830('0x14')]);return _0x226b64['label']=_0x3c8b2e(this['locale'],_0x5830('0x37')),_0x226b64[_0x5830('0x42')]=_0x36d3bc,_0x226b64[_0x5830('0x34')]=!0x0,_0x226b64['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x226b64['bind'](_0x5830('0x21'))['to'](this[_0x5830('0x39')],'isReadOnly',_0x54f59c=>!_0x54f59c),_0x226b64[_0x5830('0x3a')]('isVisible')['to'](this[_0x5830('0x39')],_0x5830('0x44')),_0x226b64['on'](_0x5830('0x59'),()=>{this[_0x5830('0x1d')](_0x3c8b2e(this[_0x5830('0x14')],_0x5830('0x11')),this[_0x5830('0x49')])[_0x5830('0x8')](()=>{this['fire'](_0x5830('0x27'),this[_0x5830('0x39')]['id']);});}),_0x226b64;}[_0x5830('0x2c')](){const _0x239cea=_0x11fa72(this[_0x5830('0x14')]),_0x5cd13c=_0x239cea[_0x5830('0x1b')]['children'],_0x3129ef=new _0x1fb435(this[_0x5830('0x14')]),_0x77c72=(_0x27330e,_0x341e28=-0x1)=>{const _0x53d68b=new _0x1e5e94(this[_0x5830('0x14')]);_0x53d68b[_0x5830('0x47')][_0x5830('0x12')](_0x27330e);const _0x48b32c=_0x341e28>-0x1?_0x341e28:_0x3129ef['items'][_0x5830('0x50')];_0x3129ef[_0x5830('0x1')]['add'](_0x53d68b,_0x48b32c),_0x239cea[_0x5830('0x51')](_0x27330e,_0x5830('0x17'),()=>{_0x239cea[_0x5830('0x21')]=[...this[_0x5830('0x1')]][_0x5830('0x19')](_0x4a4ff1=>_0x4a4ff1['isEnabled']);}),_0x239cea[_0x5830('0x51')](_0x27330e,'change:isVisible',()=>{_0x239cea[_0x5830('0x40')][_0x5830('0x3f')]=[...this[_0x5830('0x1')]][_0x5830('0x19')](_0x1ac130=>_0x1ac130[_0x5830('0x3f')]);});};_0x239cea[_0x5830('0x4c')]='sw',_0x239cea[_0x5830('0x40')][_0x5830('0xa')]({'label':_0x3c8b2e(this[_0x5830('0x14')],_0x5830('0x9')),'icon':_0x318b2c[_0x5830('0x54')]}),_0x239cea[_0x5830('0x21')]=[...this[_0x5830('0x1')]][_0x5830('0x19')](_0x3f7532=>_0x3f7532[_0x5830('0x21')]),_0x239cea[_0x5830('0x40')][_0x5830('0x3f')]=[...this['items']]['some'](_0x510618=>_0x510618[_0x5830('0x3f')]);for(const _0x41ca45 of this[_0x5830('0x1')])_0x77c72(_0x41ca45);return _0x5cd13c['add'](_0x3129ef),_0x239cea[_0x5830('0x51')](this['items'],_0x5830('0x12'),(_0x1ecce5,_0x308446,_0x520049)=>{_0x77c72(_0x308446,_0x520049);}),_0x239cea[_0x5830('0x51')](this[_0x5830('0x1')],_0x5830('0x31'),(_0x10e68e,_0x57c06a,_0x531351)=>{_0x3129ef[_0x5830('0x1')][_0x5830('0x31')](_0x531351);}),_0x239cea;}[_0x5830('0xd')](_0x40bf30,_0x45836f){const _0x5df962=_0x40bf30&&_0x40bf30[_0x5830('0x49')];_0x5df962&&(this[_0x5830('0x51')](_0x5df962,'mouseenter',()=>this[_0x5830('0x36')]=_0x45836f),this['listenTo'](_0x5df962,'focus',()=>this[_0x5830('0x36')]=_0x45836f),this['listenTo'](_0x5df962,'mouseleave',()=>this['actionIndicator']=null),this[_0x5830('0x51')](_0x5df962,_0x5830('0x4e'),()=>this[_0x5830('0x36')]=null));}[_0x5830('0x3d')](){const _0x6af77a=super[_0x5830('0x3d')]();return _0x6af77a['bind']('placeholder')['to'](this),_0x6af77a;}[_0x5830('0x1e')](){return _0x5830('0x5c')===this[_0x5830('0x39')][_0x5830('0x26')][_0x5830('0x5')][_0x5830('0x46')]?_0x3c8b2e(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):_0x3c8b2e(this[_0x5830('0x14')],_0x5830('0x3c'));}['getUserViewNotificationText'](){return this[_0x5830('0x39')][_0x5830('0x2b')]?_0x5830('0x5c')===this[_0x5830('0x39')][_0x5830('0x26')][_0x5830('0x5')][_0x5830('0x46')]?_0x3c8b2e(this[_0x5830('0x14')],_0x5830('0x3e'),this[_0x5830('0x39')][_0x5830('0x24')]['name']):_0x3c8b2e(this[_0x5830('0x14')],'EXTERNAL_AVATAR',this[_0x5830('0x39')][_0x5830('0x24')]['name']):null;}[_0x5830('0x3')](){super[_0x5830('0x3')](),this[_0x5830('0xd')](this[_0x5830('0x35')],_0x5830('0x2e')),this[_0x5830('0xd')](this['removeButton'],_0x5830('0x31'));}}
package/src/comments.d.ts CHANGED
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module comments/comments
3
7
  * @publicApi
package/src/comments.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4ec9=['requires','pluginName','Comments'];(function(_0x1de7d1,_0x4ec9fa){var _0x1b457b=function(_0x48ed47){while(--_0x48ed47){_0x1de7d1['push'](_0x1de7d1['shift']());}};_0x1b457b(++_0x4ec9fa);}(_0x4ec9,0xe1));var _0x1b45=function(_0x1de7d1,_0x4ec9fa){_0x1de7d1=_0x1de7d1-0x0;var _0x1b457b=_0x4ec9[_0x1de7d1];return _0x1b457b;};import{Plugin as _0x3d6c07}from'ckeditor5/src/core';import _0x31306c from'./comments/commentsrepository';import _0x25d7d9 from'./comments/commentsediting';import _0x3e8aa3 from'./comments/commentsui';import _0x3b43b7 from'./commentsonly';import _0x3f6e52 from'./annotations/widesidebar';import _0x3bd829 from'./annotations/narrowsidebar';import _0x50a9ef from'./annotations/inlineannotations';import _0x5a11b1 from'./comments/commentsarchiveui';import _0x3c5c03 from'./comments/commentsarchive';export default class f extends _0x3d6c07{static get[_0x1b45('0x0')](){return[_0x31306c,_0x25d7d9,_0x3e8aa3,_0x3c5c03,_0x5a11b1,_0x3b43b7,_0x3f6e52,_0x3bd829,_0x50a9ef];}static get[_0x1b45('0x1')](){return _0x1b45('0x2');}}
23
+ var _0xfedd=['requires'];(function(_0x466877,_0xfedd32){var _0x53a64d=function(_0x41b16b){while(--_0x41b16b){_0x466877['push'](_0x466877['shift']());}};_0x53a64d(++_0xfedd32);}(_0xfedd,0x18c));var _0x53a6=function(_0x466877,_0xfedd32){_0x466877=_0x466877-0x0;var _0x53a64d=_0xfedd[_0x466877];return _0x53a64d;};import{Plugin as _0x2037f4}from'ckeditor5/src/core';import _0x38634b from'./comments/commentsrepository';import _0x1115f7 from'./comments/commentsediting';import _0x4fff45 from'./comments/commentsui';import _0x5a252b from'./commentsonly';import _0x4f82d6 from'./annotations/widesidebar';import _0xee4d97 from'./annotations/narrowsidebar';import _0x41369c from'./annotations/inlineannotations';import _0x2e542e from'./comments/commentsarchiveui';import _0x441c2f from'./comments/commentsarchive';export default class f extends _0x2037f4{static get[_0x53a6('0x0')](){return[_0x38634b,_0x1115f7,_0x4fff45,_0x441c2f,_0x2e542e,_0x5a252b,_0x4f82d6,_0xee4d97,_0x41369c];}static get['pluginName'](){return'Comments';}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module comments/commentsonly
3
7
  * @publicApi
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x53c9=['addCommentThread','DragDrop','pluginName','config','highest','listenTo','view','has','delete','afterInit','editor','get','affectsData','forceDisabled','stop','CommentsOnly','_disableCommentsOnlyMode','cut','editing','clearForceDisabled','_enableCommentsOnlyMode','commentsOnlyMode','set','isEnabled','requires','plugins','commands','stopListening','document','clipboardInput'];(function(_0x4dedd2,_0x53c91d){const _0x3e9aa1=function(_0x1a9786){while(--_0x1a9786){_0x4dedd2['push'](_0x4dedd2['shift']());}};_0x3e9aa1(++_0x53c91d);}(_0x53c9,0x1ab));const _0x3e9a=function(_0x4dedd2,_0x53c91d){_0x4dedd2=_0x4dedd2-0x0;let _0x3e9aa1=_0x53c9[_0x4dedd2];return _0x3e9aa1;};import{Plugin as _0x473a5a}from'ckeditor5/src/core';import _0x286fe6 from'./comments/commentsediting';export default class n extends _0x473a5a{static get[_0x3e9a('0x19')](){return _0x3e9a('0x8');}static get[_0x3e9a('0x11')](){return[_0x286fe6];}constructor(_0x3d5ef8){super(_0x3d5ef8),this[_0x3e9a('0xf')](_0x3e9a('0x10'),!0x1),this['on']('change:isEnabled',(_0x58f684,_0x35b45e,_0x54745b)=>{_0x54745b?this[_0x3e9a('0xd')]():this['_disableCommentsOnlyMode']();});}[_0x3e9a('0x2')](){!this[_0x3e9a('0x10')]&&this[_0x3e9a('0x3')][_0x3e9a('0x1a')][_0x3e9a('0x4')]('commentsOnly')&&(this[_0x3e9a('0x10')]=!0x0);}[_0x3e9a('0xd')](){for(const [_0x6bfc88,_0x30b08f]of this[_0x3e9a('0x3')][_0x3e9a('0x13')])_0x30b08f[_0x3e9a('0x5')]&&_0x3e9a('0x17')!==_0x6bfc88&&_0x30b08f[_0x3e9a('0x6')](_0x3e9a('0xe'));this[_0x3e9a('0x3')][_0x3e9a('0x12')][_0x3e9a('0x0')](_0x3e9a('0x18'))&&this[_0x3e9a('0x3')][_0x3e9a('0x12')][_0x3e9a('0x4')]('DragDrop')[_0x3e9a('0x6')](_0x3e9a('0xe'));const _0xcc408d=this[_0x3e9a('0x3')][_0x3e9a('0xb')][_0x3e9a('0x1d')][_0x3e9a('0x15')];this[_0x3e9a('0x1c')](_0xcc408d,_0x3e9a('0xa'),_0x3720df=>_0x3720df[_0x3e9a('0x7')](),{'priority':_0x3e9a('0x1b')}),this['listenTo'](_0xcc408d,_0x3e9a('0x16'),_0x2cbf3e=>_0x2cbf3e[_0x3e9a('0x7')](),{'priority':_0x3e9a('0x1b')}),this[_0x3e9a('0x1c')](_0xcc408d,_0x3e9a('0x1'),_0x48c0c2=>_0x48c0c2['stop'](),{'priority':'highest'});}[_0x3e9a('0x9')](){for(const [_0x4b7325,_0x56969f]of this['editor'][_0x3e9a('0x13')])_0x56969f['affectsData']&&_0x3e9a('0x17')!==_0x4b7325&&_0x56969f[_0x3e9a('0xc')](_0x3e9a('0xe'));this[_0x3e9a('0x14')](this[_0x3e9a('0x3')][_0x3e9a('0xb')]['view'][_0x3e9a('0x15')]);}}
23
+ const _0x3d0a=['forceDisabled','view','commentsOnlyMode','clipboardInput','commands','isEnabled','highest','requires','config','_disableCommentsOnlyMode','cut','editor','editing','stop','affectsData','_enableCommentsOnlyMode','change:isEnabled','DragDrop','commentsOnly','set','CommentsOnly','addCommentThread','afterInit','listenTo','stopListening','clearForceDisabled','plugins','get'];(function(_0x2e42ef,_0x3d0a67){const _0x32783f=function(_0xdc6ff){while(--_0xdc6ff){_0x2e42ef['push'](_0x2e42ef['shift']());}};_0x32783f(++_0x3d0a67);}(_0x3d0a,0x126));const _0x3278=function(_0x2e42ef,_0x3d0a67){_0x2e42ef=_0x2e42ef-0x0;let _0x32783f=_0x3d0a[_0x2e42ef];return _0x32783f;};import{Plugin as _0xb58c9e}from'ckeditor5/src/core';import _0x2bcc7e from'./comments/commentsediting';export default class n extends _0xb58c9e{static get['pluginName'](){return _0x3278('0x6');}static get[_0x3278('0x15')](){return[_0x2bcc7e];}constructor(_0x36d056){super(_0x36d056),this[_0x3278('0x5')](_0x3278('0x13'),!0x1),this['on'](_0x3278('0x2'),(_0x35822b,_0x4e363e,_0x5abe45)=>{_0x5abe45?this[_0x3278('0x1')]():this['_disableCommentsOnlyMode']();});}[_0x3278('0x8')](){!this[_0x3278('0x13')]&&this[_0x3278('0x19')][_0x3278('0x16')]['get'](_0x3278('0x4'))&&(this[_0x3278('0x13')]=!0x0);}[_0x3278('0x1')](){for(const [_0xce791c,_0x5839a1]of this[_0x3278('0x19')][_0x3278('0x12')])_0x5839a1['affectsData']&&_0x3278('0x7')!==_0xce791c&&_0x5839a1[_0x3278('0xe')](_0x3278('0x10'));this[_0x3278('0x19')][_0x3278('0xc')]['has'](_0x3278('0x3'))&&this[_0x3278('0x19')][_0x3278('0xc')][_0x3278('0xd')](_0x3278('0x3'))[_0x3278('0xe')](_0x3278('0x10'));const _0x1cc0f2=this[_0x3278('0x19')][_0x3278('0x1a')][_0x3278('0xf')]['document'];this[_0x3278('0x9')](_0x1cc0f2,_0x3278('0x18'),_0x4300af=>_0x4300af[_0x3278('0x1b')](),{'priority':_0x3278('0x14')}),this[_0x3278('0x9')](_0x1cc0f2,_0x3278('0x11'),_0x2f1c56=>_0x2f1c56[_0x3278('0x1b')](),{'priority':'highest'}),this[_0x3278('0x9')](_0x1cc0f2,'delete',_0x2c9988=>_0x2c9988['stop'](),{'priority':'highest'});}[_0x3278('0x17')](){for(const [_0x341290,_0x302b5f]of this['editor'][_0x3278('0x12')])_0x302b5f[_0x3278('0x0')]&&_0x3278('0x7')!==_0x341290&&_0x302b5f[_0x3278('0xb')](_0x3278('0x10'));this[_0x3278('0xa')](this['editor'][_0x3278('0x1a')][_0x3278('0xf')]['document']);}}
package/src/config.d.ts CHANGED
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module comments/config
3
7
  * @publicApi
package/src/config.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
package/src/index.d.ts CHANGED
@@ -1,7 +1,11 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  export { default as Comments } from './comments';
2
6
  export { default as CommentsOnly } from './commentsonly';
3
7
  export { default as CommentsUI } from './comments/commentsui';
4
- export { default as CommentsRepository, CommentThread, Comment } from './comments/commentsrepository';
8
+ export { default as CommentsRepository, CommentThread, Comment, type CommentDataJSON, type CommentThreadContext, type CommentThreadDataJSON } from './comments/commentsrepository';
5
9
  export { default as CommentThreadController } from './comments/ui/commentthreadcontroller';
6
10
  export { default as Annotations } from './annotations/annotations';
7
11
  export { default as AnnotationsUIs } from './annotations/annotationsuis';
@@ -17,5 +21,4 @@ export { default as CommentView } from './comments/ui/view/commentview';
17
21
  export { default as CommentThreadInputView } from './comments/ui/view/commentthreadinputview';
18
22
  export type { CommentsConfig, SidebarConfig } from './config';
19
23
  export type { default as CommentsEditing } from './comments/commentsediting';
20
- export type { CommentDataJSON, CommentThreadContext } from './comments/commentsrepository';
21
24
  import './augmentation';
package/src/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module comments/utils/common-translations
3
7
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x90900,_0x11e235,_0x28c84c){const t=_0x90900['t'];switch(_0x11e235){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Reply\x20to\x20reopen\x20discussion...':return t('Reply\x20to\x20reopen\x20discussion...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20was\x20made\x20on\x20an\x20element':return t('Comment\x20was\x20made\x20on\x20an\x20element');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Marked\x20as\x20resolved':return t('Marked\x20as\x20resolved');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Resolve':return t('Resolve');case'Reopen':return t('Reopen');case'Remove':return t('Remove');case'Reply':return t('Reply');case'Save':return t('Save');case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x28c84c);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0x28c84c);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});case'EXTERNAL_IMPORT_WORD_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_COMMENT'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x28c84c);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x28c84c);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});default:return'';}}
23
+ export function getTranslation(_0x53200d,_0x134ddf,_0x5316f8){const t=_0x53200d['t'];switch(_0x134ddf){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Reply\x20to\x20reopen\x20discussion...':return t('Reply\x20to\x20reopen\x20discussion...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20was\x20made\x20on\x20an\x20element':return t('Comment\x20was\x20made\x20on\x20an\x20element');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Marked\x20as\x20resolved':return t('Marked\x20as\x20resolved');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Resolve':return t('Resolve');case'Reopen':return t('Reopen');case'Remove':return t('Remove');case'Reply':return t('Reply');case'Save':return t('Save');case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x5316f8);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0x5316f8);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});case'EXTERNAL_IMPORT_WORD_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_COMMENT'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5316f8);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5316f8);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});default:return'';}}
@@ -1,5 +1,6 @@
1
1
  /**
2
- * @module comments/annotations/createmutationobserver
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
3
4
  */
4
5
  /**
5
6
  * Creates mutation observer to observe changes that might cause height change.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2612=['cancel','class','attributeName','childList','attributes','type','disconnect'];(function(_0x3f22a8,_0x2612fe){const _0x4622dc=function(_0x352d62){while(--_0x352d62){_0x3f22a8['push'](_0x3f22a8['shift']());}};_0x4622dc(++_0x2612fe);}(_0x2612,0x16d));const _0x4622=function(_0x3f22a8,_0x2612fe){_0x3f22a8=_0x3f22a8-0x0;let _0x4622dc=_0x2612[_0x3f22a8];return _0x4622dc;};import{throttle as _0x37412e}from'lodash-es';export default function q(_0x4740e2){const _0x1a0ffb=_0x37412e(_0x4740e2,0x1e),_0x517868=new MutationObserver(_0x2cfb71=>{for(const _0x291523 of _0x2cfb71)(_0x4622('0x3')==_0x291523[_0x4622('0x4')]&&_0x4622('0x0')==_0x291523[_0x4622('0x1')]||_0x4622('0x2')==_0x291523[_0x4622('0x4')]||'characterData'==_0x291523[_0x4622('0x4')])&&_0x1a0ffb();});return{'attach'(_0x41f445){_0x517868['observe'](_0x41f445,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x517868[_0x4622('0x5')](),_0x1a0ffb[_0x4622('0x6')]();}};}
23
+ const _0x47a3=['attributes','cancel','characterData','childList','attributeName','observe','type','disconnect','class'];(function(_0x462c1b,_0x47a3af){const _0x2acdf3=function(_0x31ad25){while(--_0x31ad25){_0x462c1b['push'](_0x462c1b['shift']());}};_0x2acdf3(++_0x47a3af);}(_0x47a3,0x18b));const _0x2acd=function(_0x462c1b,_0x47a3af){_0x462c1b=_0x462c1b-0x0;let _0x2acdf3=_0x47a3[_0x462c1b];return _0x2acdf3;};import{throttle as _0x541042}from'lodash-es';export default function Dt(_0x5d449a){const _0x5447a0=_0x541042(_0x5d449a,0x1e),_0x3313a8=new MutationObserver(_0x2dc140=>{for(const _0x2904c7 of _0x2dc140)(_0x2acd('0x1')==_0x2904c7[_0x2acd('0x7')]&&_0x2acd('0x0')==_0x2904c7[_0x2acd('0x5')]||_0x2acd('0x4')==_0x2904c7['type']||_0x2acd('0x3')==_0x2904c7[_0x2acd('0x7')])&&_0x5447a0();});return{'attach'(_0x2aee37){_0x3313a8[_0x2acd('0x6')](_0x2aee37,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x3313a8[_0x2acd('0x8')](),_0x5447a0[_0x2acd('0x2')]();}};}