@ckeditor/ckeditor5-comments 40.2.0 → 41.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +1 -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 +1 -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,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 _0x478f=['editor','locale','extendTemplate','commentsArchive','getByInnerView','plugins','componentFactory','ck-body','_createArchiveUIDropdown','requires','get','add','_handleAnnotationFocusableElements','classList','findIndex','stopListening','_calculatePosition','archivedAt','init','buttonView','contains','COMMENTS_ARCHIVE','_visibleAnnotations','find','_pendingThreads','panelView','mainView','config','listenTo','children','focusableElements','Annotations','annotationViews','archivedThreads','focusTracker','isVisible','commentsArchiveView','innerView','position','push','change:isOpen','pluginName','collaboration.channelId','channelId','_threadToController','CommentsRepository','remove','view','length'];(function(_0xec6e50,_0x478f38){const _0x46f2f7=function(_0x12d18f){while(--_0x12d18f){_0xec6e50['push'](_0xec6e50['shift']());}};_0x46f2f7(++_0x478f38);}(_0x478f,0xa2));const _0x46f2=function(_0xec6e50,_0x478f38){_0xec6e50=_0xec6e50-0x0;let _0x46f2f7=_0x478f[_0xec6e50];return _0x46f2f7;};import'../../theme/commentsarchive.css';import{Plugin as _0x3eb50c}from'ckeditor5/src/core';import{createDropdown as _0x2ddaec,ViewCollection as _0x3437c0}from'ckeditor5/src/ui';import _0x1f8218 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x31dc91}from'../utils/common-translations';import _0x333730 from'./ui/view/commentsarchiveview';import _0xb59a10 from'./commentsarchive';export default class a extends _0x3eb50c{static get[_0x46f2('0x1a')](){return'CommentsArchiveUI';}static get[_0x46f2('0x2b')](){return[_0xb59a10];}constructor(_0x2f9145){super(_0x2f9145),this[_0x46f2('0x11')]=new _0x3437c0(),this[_0x46f2('0x9')]=[];}[_0x46f2('0x3')](){this[_0x46f2('0x22')]['ui'][_0x46f2('0x28')]['add'](_0x46f2('0x25'),()=>this[_0x46f2('0x2a')]());const _0xa07016=this['editor'][_0x46f2('0x27')][_0x46f2('0x2c')](_0xb59a10),_0x4aaca8=this[_0x46f2('0x22')][_0x46f2('0x27')][_0x46f2('0x2c')](_0x46f2('0x10')),_0x3e5900=this[_0x46f2('0x22')][_0x46f2('0x27')][_0x46f2('0x2c')](_0x46f2('0x1e'));this[_0x46f2('0xd')](_0xa07016[_0x46f2('0x12')],_0x46f2('0x2d'),(_0x582559,_0x2c6eed)=>{const _0x526b6d=this[_0x46f2('0x22')]['config'][_0x46f2('0x2c')](_0x46f2('0x1b'));if(!_0x526b6d||_0x2c6eed[_0x46f2('0x1c')]===_0x526b6d){const _0x3d0882=this[_0x46f2('0x1')](_0x2c6eed[_0x46f2('0x2')]),_0x2573d1=_0x3e5900[_0x46f2('0x1d')][_0x46f2('0x2c')](_0x2c6eed);if(!_0x2573d1)return void this[_0x46f2('0x9')][_0x46f2('0x18')]({'thread':_0x2c6eed,'position':_0x3d0882});const _0x43c7ea=_0x4aaca8[_0x46f2('0x26')](_0x2573d1[_0x46f2('0x20')]);_0x43c7ea[_0x46f2('0x14')]&&_0x4aaca8[_0x46f2('0x7')][_0x46f2('0x1f')](_0x43c7ea),this['annotationViews']['add'](_0x43c7ea[_0x46f2('0x20')],_0x3d0882);}}),this[_0x46f2('0xd')](_0x4aaca8['collection'],_0x46f2('0x2d'),(_0x4d1739,_0x277d07)=>{const _0x8ca19d=this[_0x46f2('0x9')][_0x46f2('0x8')](({thread:_0x161f07})=>{const _0x3f065e=_0x3e5900[_0x46f2('0x1d')][_0x46f2('0x2c')](_0x161f07);return _0x3f065e&&_0x277d07[_0x46f2('0x16')]===_0x3f065e['view'];});_0x8ca19d&&(this[_0x46f2('0x11')]['add'](_0x277d07[_0x46f2('0x20')],_0x8ca19d[_0x46f2('0x17')]),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x8ca19d),0x1));}),this['listenTo'](_0xa07016['archivedThreads'],_0x46f2('0x1f'),(_0x16efac,_0x239316)=>{const _0x58b493=this[_0x46f2('0x22')]['config'][_0x46f2('0x2c')](_0x46f2('0x1b'));if(!_0x58b493||_0x239316[_0x46f2('0x1c')]===_0x58b493){const _0x298703=_0x3e5900[_0x46f2('0x1d')][_0x46f2('0x2c')](_0x239316),_0x38dd50=_0x4aaca8[_0x46f2('0x26')](_0x298703[_0x46f2('0x20')]);this[_0x46f2('0x11')][_0x46f2('0x1f')](_0x38dd50[_0x46f2('0x20')]),this[_0x46f2('0x0')](_0x38dd50['focusableElements']);}});}['_handleAnnotationFocusableElements'](_0x235b28,_0x501f6f){for(const _0xcad240 of _0x501f6f['focusableElements'])_0xcad240[_0x46f2('0x2f')][_0x46f2('0x5')](_0x46f2('0x29'))&&_0x235b28[_0x46f2('0x13')]['add'](_0xcad240);this['listenTo'](_0x501f6f[_0x46f2('0xf')],_0x46f2('0x2d'),(_0x89d405,_0x14cbee)=>{_0x14cbee[_0x46f2('0x2f')]['contains'](_0x46f2('0x29'))&&_0x235b28[_0x46f2('0x13')][_0x46f2('0x2d')](_0x14cbee);}),this[_0x46f2('0xd')](_0x501f6f[_0x46f2('0xf')],_0x46f2('0x1f'),(_0x3b8917,_0x3c4152)=>{_0x3c4152[_0x46f2('0x2f')]['contains'](_0x46f2('0x29'))&&_0x235b28[_0x46f2('0x13')][_0x46f2('0x1f')](_0x3c4152);});}[_0x46f2('0x1')](_0x23e64b){const _0xa701de=this[_0x46f2('0x22')][_0x46f2('0xc')][_0x46f2('0x2c')](_0x46f2('0x1b')),_0x422c82=[...this[_0x46f2('0x22')][_0x46f2('0x27')]['get'](_0xb59a10)['archivedThreads']]['filter'](_0x606482=>_0x606482[_0x46f2('0x1c')]===_0xa701de)[_0x46f2('0x30')](_0x2800f6=>_0x2800f6[_0x46f2('0x2')]<_0x23e64b);return _0x422c82>-0x1?_0x422c82-0x1:this[_0x46f2('0x11')][_0x46f2('0x21')];}[_0x46f2('0x2a')](){const _0x2f9e51=this['editor'],_0x50aa69=this['editor']['plugins'][_0x46f2('0x2c')](_0x46f2('0x10')),_0x44da79=_0x2ddaec(_0x2f9e51[_0x46f2('0x23')]);_0x44da79[_0x46f2('0x4')]['set']({'icon':_0x1f8218,'label':_0x31dc91(_0x2f9e51[_0x46f2('0x23')],_0x46f2('0x6')),'tooltip':!0x0}),_0x44da79['panelView'][_0x46f2('0x24')]({'attributes':{'class':'ck-comments-archive-dropdown'}}),_0x44da79['on'](_0x46f2('0x19'),(_0x32073a,_0x59d090,_0xca5d6b)=>{this[_0x46f2('0x15')]||(this[_0x46f2('0x15')]=new _0x333730(_0x2f9e51['locale'],this[_0x46f2('0x11')])),_0xca5d6b?_0x44da79[_0x46f2('0xa')][_0x46f2('0xe')][_0x46f2('0x2d')](this[_0x46f2('0x15')]):_0x44da79[_0x46f2('0xa')][_0x46f2('0xe')]['remove'](this[_0x46f2('0x15')]);});for(const _0x159185 of this[_0x46f2('0x11')]){const _0x1c42f0=_0x50aa69['getByInnerView'](_0x159185[_0x46f2('0xb')]);this['_handleAnnotationFocusableElements'](_0x44da79,_0x1c42f0);}return _0x44da79['listenTo'](this[_0x46f2('0x11')],_0x46f2('0x2d'),(_0x33f922,_0x1e9e52)=>{const _0x48a3f0=_0x50aa69[_0x46f2('0x26')](_0x1e9e52['mainView']);this[_0x46f2('0x2e')](_0x44da79,_0x48a3f0);}),_0x44da79['listenTo'](this['annotationViews'],'remove',(_0x2bc24e,_0x255720)=>{const _0x127fcc=_0x50aa69[_0x46f2('0x26')](_0x255720['mainView']);for(const _0x586ce8 of _0x127fcc['focusableElements'])_0x586ce8['classList'][_0x46f2('0x5')](_0x46f2('0x29'))&&_0x44da79[_0x46f2('0x13')][_0x46f2('0x1f')](_0x586ce8);}),_0x44da79;}}
23
+ const _0x4bc1=['panelView','set','position','_calculatePosition','focusTracker','_pendingThreads','Annotations','archivedAt','classList','channelId','find','annotationViews','contains','_threadToController','plugins','commentsArchiveView','indexOf','_visibleAnnotations','COMMENTS_ARCHIVE','init','focusableElements','archivedThreads','get','children','extendTemplate','editor','ck-body','config','length','add','filter','isVisible','change:isOpen','ck-comments-archive-dropdown','mainView','view','findIndex','CommentsRepository','CommentsArchiveUI','splice','_handleAnnotationFocusableElements','_createArchiveUIDropdown','remove','listenTo','locale','collaboration.channelId','getByInnerView'];(function(_0x31bd64,_0x4bc1b7){const _0x3bba60=function(_0x16da10){while(--_0x16da10){_0x31bd64['push'](_0x31bd64['shift']());}};_0x3bba60(++_0x4bc1b7);}(_0x4bc1,0x135));const _0x3bba=function(_0x31bd64,_0x4bc1b7){_0x31bd64=_0x31bd64-0x0;let _0x3bba60=_0x4bc1[_0x31bd64];return _0x3bba60;};import'../../theme/commentsarchive.css';import{Plugin as _0x22dec8}from'ckeditor5/src/core.js';import{createDropdown as _0x3db0e1,ViewCollection as _0x4adef5}from'ckeditor5/src/ui.js';import _0x38bf92 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x444b83}from'../utils/common-translations.js';import _0x1a4551 from'./ui/view/commentsarchiveview.js';import _0x50b758 from'./commentsarchive.js';export default class a extends _0x22dec8{static get['pluginName'](){return _0x3bba('0xb');}static get['requires'](){return[_0x50b758];}constructor(_0x3f29bc){super(_0x3f29bc),this['annotationViews']=new _0x4adef5(),this[_0x3bba('0x19')]=[];}[_0x3bba('0x27')](){this[_0x3bba('0x2d')]['ui']['componentFactory']['add']('commentsArchive',()=>this[_0x3bba('0xe')]());const _0xbb4f8=this[_0x3bba('0x2d')][_0x3bba('0x22')]['get'](_0x50b758),_0x436fe8=this['editor']['plugins']['get'](_0x3bba('0x1a')),_0x4aa9e4=this[_0x3bba('0x2d')]['plugins'][_0x3bba('0x2a')](_0x3bba('0xa'));this['listenTo'](_0xbb4f8[_0x3bba('0x29')],_0x3bba('0x2'),(_0x57fbe1,_0x41d2fa)=>{const _0x11de0c=this['editor'][_0x3bba('0x0')]['get']('collaboration.channelId');if(!_0x11de0c||_0x41d2fa[_0x3bba('0x1d')]===_0x11de0c){const _0x32b2bb=this['_calculatePosition'](_0x41d2fa[_0x3bba('0x1b')]),_0xcf4109=_0x4aa9e4[_0x3bba('0x21')][_0x3bba('0x2a')](_0x41d2fa);if(!_0xcf4109)return void this[_0x3bba('0x19')]['push']({'thread':_0x41d2fa,'position':_0x32b2bb});const _0x39c48c=_0x436fe8[_0x3bba('0x13')](_0xcf4109['view']);_0x39c48c[_0x3bba('0x4')]&&_0x436fe8[_0x3bba('0x25')][_0x3bba('0xf')](_0x39c48c),this['annotationViews'][_0x3bba('0x2')](_0x39c48c[_0x3bba('0x8')],_0x32b2bb);}}),this[_0x3bba('0x10')](_0x436fe8['collection'],_0x3bba('0x2'),(_0x32c6ce,_0x43c50e)=>{const _0x163acc=this[_0x3bba('0x19')][_0x3bba('0x1e')](({thread:_0x40063})=>{const _0x53a0ed=_0x4aa9e4[_0x3bba('0x21')][_0x3bba('0x2a')](_0x40063);return _0x53a0ed&&_0x43c50e['innerView']===_0x53a0ed[_0x3bba('0x8')];});_0x163acc&&(this[_0x3bba('0x1f')][_0x3bba('0x2')](_0x43c50e[_0x3bba('0x8')],_0x163acc[_0x3bba('0x16')]),this[_0x3bba('0x19')][_0x3bba('0xc')](this[_0x3bba('0x19')][_0x3bba('0x24')](_0x163acc),0x1));}),this['listenTo'](_0xbb4f8['archivedThreads'],'remove',(_0x34c16c,_0x2f3f96)=>{const _0x4da9dd=this[_0x3bba('0x2d')][_0x3bba('0x0')][_0x3bba('0x2a')](_0x3bba('0x12'));if(!_0x4da9dd||_0x2f3f96['channelId']===_0x4da9dd){const _0x2fef33=_0x4aa9e4['_threadToController'][_0x3bba('0x2a')](_0x2f3f96),_0x726236=_0x436fe8[_0x3bba('0x13')](_0x2fef33['view']);this[_0x3bba('0x1f')][_0x3bba('0xf')](_0x726236[_0x3bba('0x8')]),this['stopListening'](_0x726236['focusableElements']);}});}[_0x3bba('0xd')](_0x1b19a7,_0x3a9954){for(const _0x4d9042 of _0x3a9954['focusableElements'])_0x4d9042[_0x3bba('0x1c')][_0x3bba('0x20')]('ck-body')&&_0x1b19a7[_0x3bba('0x18')]['add'](_0x4d9042);this[_0x3bba('0x10')](_0x3a9954[_0x3bba('0x28')],_0x3bba('0x2'),(_0x1a1770,_0x512bad)=>{_0x512bad[_0x3bba('0x1c')]['contains']('ck-body')&&_0x1b19a7[_0x3bba('0x18')]['add'](_0x512bad);}),this[_0x3bba('0x10')](_0x3a9954[_0x3bba('0x28')],_0x3bba('0xf'),(_0x3ac3f3,_0x9ef604)=>{_0x9ef604[_0x3bba('0x1c')][_0x3bba('0x20')]('ck-body')&&_0x1b19a7[_0x3bba('0x18')]['remove'](_0x9ef604);});}[_0x3bba('0x17')](_0x22bc28){const _0x3bf3b3=this[_0x3bba('0x2d')][_0x3bba('0x0')][_0x3bba('0x2a')]('collaboration.channelId'),_0x3c1089=[...this[_0x3bba('0x2d')][_0x3bba('0x22')][_0x3bba('0x2a')](_0x50b758)['archivedThreads']][_0x3bba('0x3')](_0x4bf789=>_0x4bf789[_0x3bba('0x1d')]===_0x3bf3b3)[_0x3bba('0x9')](_0x2ae086=>_0x2ae086[_0x3bba('0x1b')]<_0x22bc28);return _0x3c1089>-0x1?_0x3c1089-0x1:this[_0x3bba('0x1f')][_0x3bba('0x1')];}[_0x3bba('0xe')](){const _0x953828=this['editor'],_0x50a77e=this[_0x3bba('0x2d')][_0x3bba('0x22')][_0x3bba('0x2a')]('Annotations'),_0x46d3ff=_0x3db0e1(_0x953828['locale']);_0x46d3ff['buttonView'][_0x3bba('0x15')]({'icon':_0x38bf92,'label':_0x444b83(_0x953828[_0x3bba('0x11')],_0x3bba('0x26')),'tooltip':!0x0}),_0x46d3ff[_0x3bba('0x14')][_0x3bba('0x2c')]({'attributes':{'class':_0x3bba('0x6')}}),_0x46d3ff['on'](_0x3bba('0x5'),(_0x549738,_0x1c9c5d,_0x2d15e1)=>{this['commentsArchiveView']||(this[_0x3bba('0x23')]=new _0x1a4551(_0x953828[_0x3bba('0x11')],this[_0x3bba('0x1f')])),_0x2d15e1?_0x46d3ff[_0x3bba('0x14')][_0x3bba('0x2b')][_0x3bba('0x2')](this['commentsArchiveView']):_0x46d3ff[_0x3bba('0x14')][_0x3bba('0x2b')][_0x3bba('0xf')](this[_0x3bba('0x23')]);});for(const _0x196da7 of this[_0x3bba('0x1f')]){const _0x137ccc=_0x50a77e[_0x3bba('0x13')](_0x196da7[_0x3bba('0x7')]);this[_0x3bba('0xd')](_0x46d3ff,_0x137ccc);}return _0x46d3ff['listenTo'](this['annotationViews'],'add',(_0x1fa50c,_0x12efc0)=>{const _0x3e547b=_0x50a77e['getByInnerView'](_0x12efc0[_0x3bba('0x7')]);this['_handleAnnotationFocusableElements'](_0x46d3ff,_0x3e547b);}),_0x46d3ff[_0x3bba('0x10')](this[_0x3bba('0x1f')],_0x3bba('0xf'),(_0x9c9051,_0x514365)=>{const _0x33aca2=_0x50a77e['getByInnerView'](_0x514365[_0x3bba('0x7')]);for(const _0x7ab1c4 of _0x33aca2[_0x3bba('0x28')])_0x7ab1c4['classList'][_0x3bba('0x20')](_0x3bba('0x2e'))&&_0x46d3ff['focusTracker'][_0x3bba('0xf')](_0x7ab1c4);}),_0x46d3ff;}}
@@ -1,17 +1,17 @@
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/commentsediting
7
7
  */
8
- import { Plugin, type Editor } from 'ckeditor5/src/core';
9
- import type { Marker } from 'ckeditor5/src/engine';
10
- import CommentsRepository from './commentsrepository';
11
- import EditorAnnotations from '../annotations/editorannotations';
12
- import CommentsRestrictedEditingMode from './integrations/commentsrestrictededitingmode';
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
9
+ import type { Marker } from 'ckeditor5/src/engine.js';
10
+ import CommentsRepository from './commentsrepository.js';
11
+ import EditorAnnotations from '../annotations/editorannotations.js';
12
+ import CommentsRestrictedEditingMode from './integrations/commentsrestrictededitingmode.js';
13
13
  import '../../theme/commentmarker.css';
14
- import CommentsImportWord from './integrations/importword';
14
+ import CommentsImportWord from './integrations/importword.js';
15
15
  /**
16
16
  * Plugin that keeps in sync comments in {@link module:comments/comments/commentsrepository~CommentsRepository} with
17
17
  * {@link module:engine/model/markercollection~Marker comment markers}.
@@ -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 _0x3220=['setUnlinkedAt','_handleMarkerAddAndRemove','clear','$marker','ck-comment-marker','CommentsEditing','registerAnnotation','registerPostFixer','set','_handleThreadMarker','once','consumable','resolveCommentThread','comment','change','focus','_getTargetForId','_initAriaMarkerChangeAnnouncements','removeMarker','addMarker:','getItems','markerToHighlight','$graveyard','conversion','isThreadsLoadingPaused','get','from','consume','markerName','state','ck-comment-marker--active','length','_initializeMarkerConverters','_attachMarkerToThread','name','view','getByInnerView','for','editor','_threads','getCommentThread','render','managedUsingOperations','refreshVisibility','comment:','hasMarkerForId','end','_threadToController','elementToElement','ariaLiveAnnouncer','enqueueChange','substring','getCommentThreads','locale','_getTextContext','markers','upcast','document','reopenCommentThread','isAttached','text','editingDowncast','ready','low','scrollToThreadMarker','activeMarker','isResolved','newRange','pluginName','then','destroyed','_hasTargetInContent','group','commands','change:isThreadsLoadingPaused','join','openNewCommentThread','config','change:activeMarker','collaboration.channelId','getWalker','change:isReadOnly','attachTo','init','requires','differ','root','model','_detachCommentThread','getChangedMarkers','reconvertMarker','announce','delete','add','dataToMarker','start','push','listenTo','addCommentThread','dataDowncast','setContext','fetchCommentThread','destroy','ENTER_COMMENT_ANNOUNCEMENT','getAllMarkersForId','$textProxy','removeCommentThread','_reconvertMarkers','plugins','_attachResolvedThread','isCollapsed','data','isLocal','editing','hasCommentThread','unlinkedAt','context','startsWith','updateMarker','removeMarker:','createPositionBefore','ignoreResolvedComments','schema'];(function(_0x3fae13,_0x3220b7){const _0x58f3ba=function(_0x4f42f8){while(--_0x4f42f8){_0x3fae13['push'](_0x3fae13['shift']());}};_0x58f3ba(++_0x3220b7);}(_0x3220,0x16f));const _0x58f3=function(_0x3fae13,_0x3220b7){_0x3fae13=_0x3fae13-0x0;let _0x58f3ba=_0x3220[_0x3fae13];return _0x58f3ba;};import{Plugin as _0x45547f}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x2bc1dd}from'ckeditor5/src/utils';import _0xe571f7 from'./commentsrepository';import _0x81426 from'./addcommentthreadcommand';import{surroundingMarkersDetector as _0xc933ce,getAllMarkersDomElementsSorted as _0x4c5c80}from'ckeditor5-collaboration/src/collaboration-core';import _0x58ac21 from'../annotations/editorannotations';import _0x34fb1b from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x41434c from'./integrations/importword';import _0x3bc1c5 from'../annotations/annotations';import{getTranslation as _0x1809b0}from'../utils/common-translations';export default class r extends _0x45547f{static get[_0x58f3('0x56')](){return[_0xe571f7,_0x58ac21,_0x34fb1b,_0x41434c];}static get[_0x58f3('0x46')](){return _0x58f3('0x7');}constructor(_0x7238e6){super(_0x7238e6),this[_0x58f3('0xa')](_0x58f3('0x1a'),!0x0),_0x7238e6[_0x58f3('0x71')]['once'](_0x58f3('0x40'),()=>this[_0x58f3('0x1a')]=!0x1),this[_0x58f3('0xa')]('activeMarker',null),this['on'](_0x58f3('0x50'),(_0xd50f98,_0x396190,_0x27d931,_0x17e535)=>{const _0x1f448c=_0x27d931?ot(_0x27d931)['id']:null;if(_0x7238e6[_0x58f3('0x59')][_0x58f3('0x10')](()=>{if(_0x1f448c){const _0x4958e7=this['getAllMarkersForId'](_0x1f448c);for(const _0x260ff5 of _0x4958e7)_0x7238e6[_0x58f3('0x73')][_0x58f3('0x5c')](_0x260ff5);}if(_0x17e535){const {id:_0x120146}=ot(_0x17e535),_0x57307f=this[_0x58f3('0x6a')](_0x120146);for(const _0x2ea2f4 of _0x57307f)_0x7238e6[_0x58f3('0x73')][_0x58f3('0x5c')](_0x2ea2f4);}}),_0x1f448c){const _0x343815=_0x7238e6['plugins'][_0x58f3('0x1b')](_0xe571f7)[_0x58f3('0x2a')](_0x1f448c);_0x343815&&_0x343815[_0x58f3('0x44')]&&this[_0x58f3('0x42')](_0x1f448c);}}),this[_0x58f3('0x13')]();}[_0x58f3('0x55')](){const _0x143ad=this[_0x58f3('0x28')],_0x241f72=_0x143ad['plugins']['get'](_0xe571f7),_0x61f124=_0x143ad['config']['get'](_0x58f3('0x51'));_0x143ad[_0x58f3('0x4b')]['add'](_0x58f3('0x64'),new _0x81426(_0x143ad)),this[_0x58f3('0x63')](_0x143ad,_0x58f3('0x53'),(_0x4b9c6f,_0x265dde,_0x4be374)=>{_0x241f72['switchReadOnly'](_0x4be374,_0x143ad[_0x58f3('0x4f')][_0x58f3('0x1b')](_0x58f3('0x51')));}),this[_0x58f3('0x63')](_0x241f72,tt(_0x58f3('0x64'),_0x61f124),(_0x54d789,{threadId:_0x327911})=>{const _0x5ce4fc=this['editor'][_0x58f3('0x6e')][_0x58f3('0x1b')](_0xe571f7)[_0x58f3('0x2a')](_0x327911);_0x5ce4fc&&_0x5ce4fc['archivedAt']&&this[_0x58f3('0x6f')](_0x327911);}),this[_0x58f3('0x63')](_0x241f72,tt(_0x58f3('0x6c'),_0x61f124),(_0x553d3f,{threadId:_0x1b3187})=>{_0x143ad[_0x58f3('0x59')][_0x58f3('0x34')]({'isUndoable':!0x1},_0x129b3e=>{const _0x1e31dd=this['getAllMarkersForId'](_0x1b3187);for(const _0x2ccaf9 of _0x1e31dd)_0x129b3e[_0x58f3('0x14')](_0x2ccaf9);});}),this[_0x58f3('0x63')](_0x241f72,tt(_0x58f3('0xe'),_0x61f124),(_0x30a193,{threadId:_0x1c9bea})=>{(this[_0x58f3('0x6f')](_0x1c9bea),this[_0x58f3('0x6d')](_0x1c9bea),this[_0x58f3('0x28')][_0x58f3('0x73')][_0x58f3('0x25')]['hasDomSelection'])&&(this[_0x58f3('0x28')][_0x58f3('0x6e')]['get'](_0xe571f7)[_0x58f3('0x2a')](_0x1c9bea)['unlinkedAt']||this['editor'][_0x58f3('0x73')][_0x58f3('0x25')][_0x58f3('0x11')]());},{'priority':_0x58f3('0x41')}),this[_0x58f3('0x63')](_0x241f72,tt(_0x58f3('0x3c'),_0x61f124),(_0x1ed6b0,{threadId:_0x16d8aa})=>{this[_0x58f3('0x6d')](_0x16d8aa);},{'priority':'low'}),this[_0x58f3('0x63')](_0x241f72,tt('addComment',_0x61f124),(_0x2c5f32,{threadId:_0x37010d,isFromAdapter:_0x3ce8ae})=>{const _0x2aba55=this['getAllMarkersForId'](_0x37010d);if(_0x3ce8ae||0x0==_0x2aba55[_0x58f3('0x21')]||!_0x241f72[_0x58f3('0x74')](_0x37010d))return;0x1===_0x241f72[_0x58f3('0x2a')](_0x37010d)[_0x58f3('0x21')]&&_0x143ad[_0x58f3('0x59')][_0x58f3('0x34')]({'isUndoable':!0x1},_0x216a23=>{for(const _0x18c09d of _0x2aba55)_0x216a23[_0x58f3('0x78')](_0x18c09d,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x58f3('0x41')}),this[_0x58f3('0x22')](),this[_0x58f3('0x3')]();}[_0x58f3('0x68')](){const _0xd47e50=this[_0x58f3('0x28')]['plugins'][_0x58f3('0x1b')](_0xe571f7),_0x528381=this[_0x58f3('0x28')][_0x58f3('0x4f')][_0x58f3('0x1b')]('collaboration.channelId');for(const _0x4508e8 of _0xd47e50[_0x58f3('0x36')]({'channelId':_0x528381}))_0xd47e50[_0x58f3('0x5a')](_0x4508e8['id']),_0xd47e50[_0x58f3('0x29')]['delete'](_0x4508e8['id']);super[_0x58f3('0x68')]();}[_0x58f3('0x2f')](_0x429b0d){return this[_0x58f3('0x6a')](_0x429b0d)[_0x58f3('0x21')]>0x0;}[_0x58f3('0x6a')](_0x6b160){const _0x3d447c=[];for(const _0x12ea16 of this[_0x58f3('0x28')][_0x58f3('0x59')][_0x58f3('0x39')])_0x12ea16[_0x58f3('0x24')][_0x58f3('0x77')]('comment:'+_0x6b160)&&_0x3d447c[_0x58f3('0x62')](_0x12ea16);return _0x3d447c;}['scrollToThreadMarker'](_0xf23f36){const _0x5f52ad=this[_0x58f3('0x12')](_0xf23f36);_0x5f52ad&&setTimeout(()=>{this['activeMarker']&&ot(this[_0x58f3('0x43')])['id']===_0xf23f36&&_0x2bc1dd({'target':_0x5f52ad[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x58f3('0x6d')](_0x411b35){this[_0x58f3('0x28')][_0x58f3('0x59')][_0x58f3('0x10')](()=>{for(const _0x12b12e of this['getAllMarkersForId'](_0x411b35))this[_0x58f3('0x28')][_0x58f3('0x73')][_0x58f3('0x5c')](_0x12b12e);});}['_attachResolvedThread'](_0xfafb1f){const _0x597f72=this[_0x58f3('0x28')][_0x58f3('0x6e')][_0x58f3('0x1b')](_0xe571f7),_0x307907=this['editor']['plugins'][_0x58f3('0x1b')](_0x58ac21),_0x3eba25=_0x597f72['getCommentThread'](_0xfafb1f);if(!_0x3eba25[_0x58f3('0x3d')]){const _0x27818c=_0x3eba25[_0x58f3('0x54')](()=>this[_0x58f3('0x12')](_0x3eba25['id']));_0x307907[_0x58f3('0x8')](_0x27818c),_0x3eba25[_0x58f3('0x49')]=!0x1;}}[_0x58f3('0x22')](){const _0x5b8cb6=this['editor'];_0x5b8cb6[_0x58f3('0x19')][_0x58f3('0x27')](_0x58f3('0x3f'))[_0x58f3('0x17')]({'model':_0x58f3('0xf'),'view':(_0x411c35,_0x8b0743)=>{const {id:_0xa3a61c}=ot(_0x411c35['markerName']),_0xc5c3b2=_0x5b8cb6[_0x58f3('0x6e')][_0x58f3('0x1b')](_0xe571f7)[_0x58f3('0x2a')](_0xa3a61c),_0x56ccf9=this[_0x58f3('0x43')]&&ot(this['activeMarker'])['id']===_0xa3a61c;if(_0xc5c3b2&&_0xc5c3b2[_0x58f3('0x44')]&&!_0x56ccf9&&_0x411c35['item'])return _0x8b0743[_0x58f3('0xd')][_0x58f3('0x1d')](_0x411c35['item'],_0x58f3('0x15')+_0x411c35[_0x58f3('0x1e')]),_0x8b0743[_0x58f3('0xd')][_0x58f3('0x1d')](_0x411c35['item'],_0x58f3('0x79')+_0x411c35['markerName']),{'classes':[]};const _0x48244c=[_0x58f3('0x6')];return _0x56ccf9&&_0x48244c[_0x58f3('0x62')](_0x58f3('0x20')),{'classes':_0x48244c,'attributes':{'data-comment':_0xa3a61c}};}}),_0x5b8cb6[_0x58f3('0x19')][_0x58f3('0x27')](_0x58f3('0x65'))['markerToData']({'model':_0x58f3('0xf'),'view':(_0x365bfe,{options:_0x1c6a33})=>{const _0x23d736=_0x5b8cb6[_0x58f3('0x6e')][_0x58f3('0x1b')](_0xe571f7),_0x8ec214=_0x5b8cb6[_0x58f3('0x59')]['markers'][_0x58f3('0x1b')](_0x365bfe),{id:_0x18bad6,part:_0x1d0bb6}=ot(_0x365bfe);if(_0x8ec214&&!_0x8ec214['affectsData'])return null;if(_0x1c6a33[_0x58f3('0x0')]){const _0x3a62e1=_0x23d736[_0x58f3('0x2a')](_0x18bad6);if(_0x3a62e1&&_0x3a62e1[_0x58f3('0x44')])return null;}return{'group':_0x58f3('0xf'),'name':_0x1d0bb6?_0x18bad6+':'+_0x1d0bb6:_0x18bad6};}}),_0x5b8cb6[_0x58f3('0x19')][_0x58f3('0x27')]('upcast')[_0x58f3('0x32')]({'view':{'name':_0x58f3('0xf'),'attributes':{'id':/^\w/}},'model':(_0x2973f0,{writer:_0x27cda3})=>_0x27cda3['createElement'](_0x58f3('0x5'),{'data-name':_0x58f3('0x2e')+_0x2973f0['getAttribute']('id')})}),_0x5b8cb6[_0x58f3('0x19')][_0x58f3('0x27')](_0x58f3('0x3a'))[_0x58f3('0x60')]({'view':_0x58f3('0xf')});}[_0x58f3('0x3')](){const _0x4c4d75=this[_0x58f3('0x28')],_0x1a9895=_0x4c4d75[_0x58f3('0x6e')][_0x58f3('0x1b')](_0xe571f7),_0x3e16fe=new Set(),_0x3bbe05=new Set();_0x4c4d75['model']['document'][_0x58f3('0x9')](_0x4f7bae=>{let _0x172e31=!0x1;for(const {name:_0x48e751,data:_0x5b9787}of _0x4c4d75[_0x58f3('0x59')][_0x58f3('0x3b')][_0x58f3('0x57')][_0x58f3('0x5b')]()){const {group:_0x5693a2,id:_0x110215}=ot(_0x48e751);let _0x4e70ab=_0x5b9787[_0x58f3('0x45')];if(_0x58f3('0xf')!==_0x5693a2||!_0x4e70ab)continue;const _0x352130=_0x58f3('0x18')===_0x4e70ab[_0x58f3('0x58')]['rootName'];_0x352130||(_0x4e70ab=et(_0x4e70ab,_0x4c4d75[_0x58f3('0x59')]),!_0x4e70ab||_0x4e70ab[_0x58f3('0x70')]||!_0x5b9787[_0x58f3('0x45')]||_0x4e70ab['isEqual'](_0x5b9787['newRange']))?_0x4c4d75[_0x58f3('0x59')]['hasContent'](_0x4e70ab)&&!_0x352130?this['isThreadsLoadingPaused']?_0x3e16fe[_0x58f3('0x5f')](_0x48e751):this[_0x58f3('0xb')](_0x48e751,_0x110215):(_0x3bbe05[_0x58f3('0x5f')](_0x48e751),_0x3e16fe[_0x58f3('0x5e')](_0x48e751),_0x4f7bae['removeMarker'](_0x48e751),_0x172e31=!0x0):(_0x4f7bae[_0x58f3('0x78')](_0x48e751,{'range':_0x4e70ab}),_0x172e31=!0x0);}return _0x172e31;}),this['on'](_0x58f3('0x4c'),(_0x40148f,_0x3042aa,_0x35fde5)=>{if(!_0x35fde5&&_0x3e16fe['size'])for(const _0x5bfb36 of _0x3e16fe){const {id:_0x5a68a4}=ot(_0x5bfb36);_0x3e16fe['delete'](_0x5bfb36),_0x4c4d75[_0x58f3('0x59')]['markers'][_0x58f3('0x1b')](_0x5bfb36)&&this['_handleThreadMarker'](_0x5bfb36,_0x5a68a4);}}),this[_0x58f3('0x63')](_0x4c4d75[_0x58f3('0x59')]['document'],'change',(_0x71c3de,_0x8f6a65)=>{for(const {name:_0x329231,data:{newRange:_0x49ff89}}of _0x4c4d75['model'][_0x58f3('0x3b')][_0x58f3('0x57')][_0x58f3('0x5b')]()){const {group:_0x1b0ce5,id:_0x588fb7}=ot(_0x329231);if('comment'!==_0x1b0ce5)continue;const _0x43d5da=_0x1a9895[_0x58f3('0x2a')](_0x588fb7),_0x5c9fdb=this[_0x58f3('0x2f')](_0x588fb7);_0x43d5da&&(_0x43d5da[_0x58f3('0x49')]||_0x4c4d75[_0x58f3('0x73')][_0x58f3('0x25')][_0x58f3('0xc')](_0x58f3('0x2b'),()=>{const _0x5d1980=_0x4c4d75['plugins'][_0x58f3('0x1b')](_0x3bc1c5),_0x75d0fb=_0x1a9895[_0x58f3('0x31')]['get'](_0x43d5da)[_0x58f3('0x25')];_0x5d1980[_0x58f3('0x26')](_0x75d0fb)[_0x58f3('0x2d')]();},{'priority':_0x58f3('0x41')}),_0x43d5da['_hasTargetInContent']=_0x5c9fdb||!!_0x49ff89),_0x49ff89||(_0x3bbe05['add'](_0x329231),_0x3e16fe[_0x58f3('0x5e')](_0x329231));}if(_0x8f6a65[_0x58f3('0x72')])for(const _0x2c4afb of _0x3bbe05){const {id:_0x50dc8c}=ot(_0x2c4afb),_0x33246d=_0x1a9895[_0x58f3('0x2a')](_0x50dc8c),_0x26a7f2=this[_0x58f3('0x2f')](_0x50dc8c);_0x3e16fe[_0x58f3('0x5e')](_0x2c4afb),!_0x33246d||_0x26a7f2||_0x33246d[_0x58f3('0x75')]||_0x33246d[_0x58f3('0x2')](new Date());}_0x3bbe05[_0x58f3('0x4')]();});}[_0x58f3('0x12')](_0x1ac3d5){const _0x4b5f17=this[_0x58f3('0x28')],_0x384d4f=this[_0x58f3('0x6a')](_0x1ac3d5);return _0x4c5c80(_0x4b5f17[_0x58f3('0x73')],_0x384d4f);}[_0x58f3('0x38')](_0xfae6dc){const _0x3f8fe5=this[_0x58f3('0x6a')](_0xfae6dc);let _0x4006b6='',_0x26d680=!0x1;for(const _0x385be4 of _0x3f8fe5){const _0x5c9a02=_0x385be4['getRange']();for(const _0x27b05d of Array[_0x58f3('0x1c')](_0x5c9a02[_0x58f3('0x16')]()))_0x27b05d['is'](_0x58f3('0x6b'))?(_0x4006b6&&_0x26d680&&(_0x4006b6+='\x20',_0x26d680=!0x1),_0x4006b6+=_0x27b05d['data']):_0x26d680=!0x0;_0x26d680=!0x0;}return _0x4006b6[_0x58f3('0x35')](0x0,0x96);}[_0x58f3('0x23')](_0x18cdcd,_0x21c337){const _0x579502=this[_0x58f3('0x28')],_0x12f58b=_0x579502[_0x58f3('0x6e')][_0x58f3('0x1b')](_0xe571f7);let _0x1557fe=_0x12f58b[_0x58f3('0x2a')](_0x21c337);const _0x461f23=_0x579502[_0x58f3('0x4f')]['get'](_0x58f3('0x51')),_0x235308=_0x579502[_0x58f3('0x6e')][_0x58f3('0x1b')](_0x58ac21);if(_0x1557fe&&(_0x1557fe[_0x58f3('0x75')]&&_0x1557fe[_0x58f3('0x2')](null),_0x1557fe[_0x58f3('0x3d')]))return _0x1557fe;return!this[_0x58f3('0x6a')](_0x21c337)[0x0][_0x58f3('0x2c')]?_0x579502[_0x58f3('0x73')]['view'][_0x58f3('0xc')](_0x58f3('0x2b'),()=>{if(_0x12f58b['getCommentThread'](_0x21c337))return;const _0x1d39ef=_0x579502[_0x58f3('0x6e')][_0x58f3('0x1b')](_0x3bc1c5);_0x1557fe=_0x12f58b[_0x58f3('0x4e')]({'channelId':_0x461f23,'threadId':_0x21c337,'target':()=>this['_getTargetForId'](_0x21c337),'context':{'type':'text','value':this[_0x58f3('0x38')](_0x21c337)}});const _0x3d288a=_0x12f58b[_0x58f3('0x31')][_0x58f3('0x1b')](_0x1557fe)['view'],_0x4d8f1e=_0x1d39ef['getByInnerView'](_0x3d288a);_0x4d8f1e&&_0x235308[_0x58f3('0x8')](_0x4d8f1e);},{'priority':_0x58f3('0x41')}):_0x12f58b[_0x58f3('0x67')]({'channelId':_0x461f23,'threadId':_0x21c337})[_0x58f3('0x47')](_0x9ed454=>{if(_0x58f3('0x48')!==_0x579502[_0x58f3('0x1f')]){if(_0x1557fe=_0x9ed454,_0x1557fe&&!_0x1557fe[_0x58f3('0x3d')]){const _0x58a6c3=_0x1557fe[_0x58f3('0x54')](()=>this[_0x58f3('0x12')](_0x21c337));_0x235308['registerAnnotation'](_0x58a6c3),_0x1557fe[_0x58f3('0x44')]&&this['_reconvertMarkers'](_0x21c337);}else{if(!_0x1557fe){const _0x2bde2e=this['getAllMarkersForId'](_0x21c337);_0x579502['model'][_0x58f3('0x10')](_0x30d352=>{for(const _0x358721 of _0x2bde2e)_0x30d352[_0x58f3('0x14')](_0x358721);});}}}}),_0x1557fe;}['_handleThreadMarker'](_0x542691,_0x3879cf){const _0x524608=this['_attachMarkerToThread'](_0x542691,_0x3879cf);_0x524608&&!_0x524608[_0x58f3('0x76')]&&_0x524608[_0x58f3('0x66')]({'type':_0x58f3('0x3e'),'value':this['_getTextContext'](_0x3879cf)});}[_0x58f3('0x13')](){const _0x1fdccd=this[_0x58f3('0x28')];_0xc933ce(_0x1fdccd[_0x58f3('0x59')],({left:_0x27c52b,entered:_0x41886b})=>{const _0x3a2f5e=[];for(const _0x4de55a of _0x27c52b)if(rt(_0x4de55a)){_0x3a2f5e[_0x58f3('0x62')](_0x1809b0(_0x1fdccd[_0x58f3('0x37')],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x881948 of _0x41886b)if(rt(_0x881948)){_0x3a2f5e['push'](_0x1809b0(_0x1fdccd['locale'],_0x58f3('0x69')));break;}_0x3a2f5e[_0x58f3('0x21')]&&_0x1fdccd['ui'][_0x58f3('0x33')][_0x58f3('0x5d')]('comments',_0x3a2f5e[_0x58f3('0x4d')]('\x20'));});}}function tt(_0x3fb5ac,_0x2a1da6){return _0x2a1da6?_0x3fb5ac+':'+_0x2a1da6:_0x3fb5ac;}function ot(_0x54b196){const _0xed42e7=_0x54b196['split'](':');return{'group':_0xed42e7[0x0],'id':_0xed42e7[0x1],'part':_0xed42e7[0x2]};}function et(_0x33ac19,_0x26589f){const _0x37ef08=_0x26589f[_0x58f3('0x1')],_0x345cf7=_0x26589f['createRange'](_0x33ac19[_0x58f3('0x61')]);for(const _0x399e42 of _0x33ac19[_0x58f3('0x52')]()){const {type:_0x3c682f,item:_0x282317,nextPosition:_0x58026c}=_0x399e42;if(_0x58f3('0x3e')===_0x3c682f||_0x37ef08['isObject'](_0x282317)){const _0x497768=_0x26589f[_0x58f3('0x7a')](_0x282317);_0x345cf7[_0x58f3('0x70')]&&(_0x345cf7['start']=_0x497768),_0x345cf7[_0x58f3('0x30')]=_0x58026c;}}return _0x345cf7;}function rt(_0x58c9b1){return _0x58f3('0xf')===ot(_0x58c9b1[_0x58f3('0x24')])[_0x58f3('0x4a')];}
23
+ const _0x5e02=['ignoreResolvedComments','$graveyard','low','length','addComment','plugins','dataDowncast','schema','isResolved','group','requires','elementToElement','announce','isLocal','getByInnerView','affectsData','removeCommentThread','data','rootName','markerName','end','change:isThreadsLoadingPaused','setUnlinkedAt','split','item','_attachArchivedThread','getChangedMarkers','delete','comments','addCommentThread','init','activeMarker','_reconvertMarkers','set','_attachMarkerToThread','_hasTargetInContent','start','editingDowncast','_initAriaMarkerChangeAnnouncements','model','managedUsingOperations','destroyed','size','createElement','upcast','getCommentThreads','enqueueChange','name','view','change','config','collaboration.channelId','getRange','removeMarker:','updateMarker','add','createPositionBefore','commands','switchReadOnly','getItems','hasCommentThread','createRange','ck-comment-marker','editor','_getTextContext','substring','_handleThreadMarker','render','_getTargetForId','attachTo','openNewCommentThread','getAllMarkersForId','differ','registerAnnotation','isEqual','fetchCommentThread','comment','scrollToThreadMarker','reopenCommentThread','join','hasDomSelection','listenTo','getWalker','markerToData','get','addMarker:','_initializeMarkerConverters','markers','reconvertMarker','_handleMarkerAddAndRemove','context','conversion','unlinkedAt','once','ariaLiveAnnouncer','change:activeMarker','hasMarkerForId','getCommentThread','newRange','destroy','editing','isThreadsLoadingPaused','setContext','then','CommentsEditing','consume','root','hasContent','removeMarker','document','$marker','refreshVisibility','for','comment:','clear','dataToMarker','push'];(function(_0x26d4c0,_0x5e0214){const _0x80e416=function(_0x5c7f92){while(--_0x5c7f92){_0x26d4c0['push'](_0x26d4c0['shift']());}};_0x80e416(++_0x5e0214);}(_0x5e02,0x6e));const _0x80e4=function(_0x26d4c0,_0x5e0214){_0x26d4c0=_0x26d4c0-0x0;let _0x80e416=_0x5e02[_0x26d4c0];return _0x80e416;};import{Plugin as _0x2cf34a}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x26a6a3}from'ckeditor5/src/utils.js';import _0x5db589 from'./commentsrepository.js';import _0x6d1935 from'./addcommentthreadcommand.js';import{surroundingMarkersDetector as _0x1c111d,getAllMarkersDomElementsSorted as _0x2b3741}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x2639d5 from'../annotations/editorannotations.js';import _0xc7a8b3 from'./integrations/commentsrestrictededitingmode.js';import'../../theme/commentmarker.css';import _0x25e210 from'./integrations/importword.js';import _0xe4803e from'../annotations/annotations.js';import{getTranslation as _0x143480}from'../utils/common-translations.js';export default class r extends _0x2cf34a{static get[_0x80e4('0x11')](){return[_0x5db589,_0x2639d5,_0xc7a8b3,_0x25e210];}static get['pluginName'](){return _0x80e4('0x6f');}constructor(_0x2d265c){super(_0x2d265c),this[_0x80e4('0x28')](_0x80e4('0x6c'),!0x0),_0x2d265c[_0x80e4('0x18')]['once']('ready',()=>this[_0x80e4('0x6c')]=!0x1),this['set'](_0x80e4('0x26'),null),this['on'](_0x80e4('0x66'),(_0x577ad5,_0x53c22f,_0x465181,_0xfd4d0)=>{const _0x47f011=_0x465181?ot(_0x465181)['id']:null;if(_0x2d265c['model'][_0x80e4('0x38')](()=>{if(_0x47f011){const _0x5d9825=this['getAllMarkersForId'](_0x47f011);for(const _0x18fea4 of _0x5d9825)_0x2d265c[_0x80e4('0x6b')][_0x80e4('0x5f')](_0x18fea4);}if(_0xfd4d0){const {id:_0x1fbbcf}=ot(_0xfd4d0),_0x6c84dd=this[_0x80e4('0x4e')](_0x1fbbcf);for(const _0x2cf7a0 of _0x6c84dd)_0x2d265c[_0x80e4('0x6b')]['reconvertMarker'](_0x2cf7a0);}}),_0x47f011){const _0x301d66=_0x2d265c['plugins'][_0x80e4('0x5b')](_0x5db589)[_0x80e4('0x68')](_0x47f011);_0x301d66&&_0x301d66[_0x80e4('0xf')]&&this[_0x80e4('0x54')](_0x47f011);}}),this['_initAriaMarkerChangeAnnouncements']();}[_0x80e4('0x25')](){const _0x40ae16=this[_0x80e4('0x46')],_0x325cbf=_0x40ae16[_0x80e4('0xc')]['get'](_0x5db589),_0x32c40e=_0x40ae16[_0x80e4('0x39')]['get'](_0x80e4('0x3a'));_0x40ae16[_0x80e4('0x40')][_0x80e4('0x3e')]('addCommentThread',new _0x6d1935(_0x40ae16)),this[_0x80e4('0x58')](_0x40ae16,'change:isReadOnly',(_0x23a58a,_0x3dfc5c,_0x2fb8f4)=>{_0x325cbf[_0x80e4('0x41')](_0x2fb8f4,_0x40ae16[_0x80e4('0x39')][_0x80e4('0x5b')]('collaboration.channelId'));}),this['listenTo'](_0x325cbf,tt(_0x80e4('0x24'),_0x32c40e),(_0x1fbf83,{threadId:_0x2a43ca})=>{const _0x530842=this[_0x80e4('0x46')]['plugins'][_0x80e4('0x5b')](_0x5db589)['getCommentThread'](_0x2a43ca);_0x530842&&_0x530842[_0x80e4('0x63')]&&this[_0x80e4('0x20')](_0x2a43ca);}),this[_0x80e4('0x58')](_0x325cbf,tt(_0x80e4('0x17'),_0x32c40e),(_0x334f82,{threadId:_0x5b3625})=>{_0x40ae16[_0x80e4('0x2e')][_0x80e4('0x35')]({'isUndoable':!0x1},_0x4d91a3=>{const _0x51e4b9=this[_0x80e4('0x4e')](_0x5b3625);for(const _0x26f586 of _0x51e4b9)_0x4d91a3['removeMarker'](_0x26f586);});}),this[_0x80e4('0x58')](_0x325cbf,tt('resolveCommentThread',_0x32c40e),(_0x3f106e,{threadId:_0x38c742})=>{(this[_0x80e4('0x27')](_0x38c742),this[_0x80e4('0x46')]['editing'][_0x80e4('0x37')][_0x80e4('0x57')])&&(this[_0x80e4('0x46')]['plugins']['get'](_0x5db589)['getCommentThread'](_0x38c742)['unlinkedAt']||this[_0x80e4('0x46')][_0x80e4('0x6b')][_0x80e4('0x37')]['focus']());},{'priority':_0x80e4('0x9')}),this[_0x80e4('0x58')](_0x325cbf,tt(_0x80e4('0x55'),_0x32c40e),(_0x43fe4e,{threadId:_0x42676d})=>{this[_0x80e4('0x27')](_0x42676d);},{'priority':_0x80e4('0x9')}),this[_0x80e4('0x58')](_0x325cbf,tt(_0x80e4('0xb'),_0x32c40e),(_0x1709e1,{threadId:_0x53641a,isFromAdapter:_0x39ae8f})=>{const _0x44bd31=this[_0x80e4('0x4e')](_0x53641a);if(_0x39ae8f||0x0==_0x44bd31[_0x80e4('0xa')]||!_0x325cbf[_0x80e4('0x43')](_0x53641a))return;0x1===_0x325cbf[_0x80e4('0x68')](_0x53641a)[_0x80e4('0xa')]&&_0x40ae16[_0x80e4('0x2e')][_0x80e4('0x35')]({'isUndoable':!0x1},_0x1d04f4=>{for(const _0xd646a3 of _0x44bd31)_0x1d04f4['updateMarker'](_0xd646a3,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this[_0x80e4('0x5d')](),this[_0x80e4('0x60')]();}[_0x80e4('0x6a')](){const _0x10189b=this['editor'][_0x80e4('0xc')][_0x80e4('0x5b')](_0x5db589),_0x101fea=this['editor']['config'][_0x80e4('0x5b')](_0x80e4('0x3a'));for(const _0x363c61 of _0x10189b[_0x80e4('0x34')]({'channelId':_0x101fea}))_0x10189b['_detachCommentThread'](_0x363c61['id']),_0x10189b['_threads'][_0x80e4('0x22')](_0x363c61['id']);super['destroy']();}[_0x80e4('0x67')](_0xe283f9){return this[_0x80e4('0x4e')](_0xe283f9)[_0x80e4('0xa')]>0x0;}['getAllMarkersForId'](_0x1660a9){const _0x386763=[];for(const _0x4961ac of this['editor'][_0x80e4('0x2e')][_0x80e4('0x5e')])_0x4961ac[_0x80e4('0x36')]['startsWith'](_0x80e4('0x3')+_0x1660a9)&&_0x386763[_0x80e4('0x6')](_0x4961ac);return _0x386763;}[_0x80e4('0x54')](_0xfd76a7){const _0x566559=this[_0x80e4('0x4b')](_0xfd76a7);_0x566559&&setTimeout(()=>{this['activeMarker']&&ot(this[_0x80e4('0x26')])['id']===_0xfd76a7&&_0x26a6a3({'target':_0x566559[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x80e4('0x27')](_0x16d874){this['editor']['model'][_0x80e4('0x38')](()=>{for(const _0x11b3cb of this[_0x80e4('0x4e')](_0x16d874))this[_0x80e4('0x46')][_0x80e4('0x6b')]['reconvertMarker'](_0x11b3cb);});}[_0x80e4('0x20')](_0x577b94){const _0x434348=this[_0x80e4('0x46')][_0x80e4('0xc')][_0x80e4('0x5b')](_0x5db589),_0x22aeb0=this[_0x80e4('0x46')][_0x80e4('0xc')][_0x80e4('0x5b')](_0x2639d5),_0x52c61e=_0x434348['getCommentThread'](_0x577b94);if(!_0x52c61e['isAttached']){const _0x368dd1=_0x52c61e[_0x80e4('0x4c')](()=>this[_0x80e4('0x4b')](_0x52c61e['id']));_0x22aeb0[_0x80e4('0x50')](_0x368dd1),_0x52c61e[_0x80e4('0x2a')]=!0x1;}}[_0x80e4('0x5d')](){const _0x460896=this[_0x80e4('0x46')];_0x460896[_0x80e4('0x62')][_0x80e4('0x2')](_0x80e4('0x2c'))['markerToHighlight']({'model':_0x80e4('0x53'),'view':(_0x582ac9,_0x8cf79a)=>{const {id:_0x522b55}=ot(_0x582ac9['markerName']),_0x5aa48a=_0x460896[_0x80e4('0xc')][_0x80e4('0x5b')](_0x5db589)[_0x80e4('0x68')](_0x522b55),_0x3c4a2a=this[_0x80e4('0x26')]&&ot(this['activeMarker'])['id']===_0x522b55;if(_0x5aa48a&&_0x5aa48a[_0x80e4('0xf')]&&!_0x3c4a2a&&_0x582ac9[_0x80e4('0x1f')])return _0x8cf79a['consumable'][_0x80e4('0x70')](_0x582ac9[_0x80e4('0x1f')],_0x80e4('0x5c')+_0x582ac9[_0x80e4('0x1a')]),_0x8cf79a['consumable'][_0x80e4('0x70')](_0x582ac9[_0x80e4('0x1f')],_0x80e4('0x3c')+_0x582ac9['markerName']),null;const _0x585f1a=[_0x80e4('0x45')];return _0x3c4a2a&&_0x585f1a[_0x80e4('0x6')]('ck-comment-marker--active'),{'classes':_0x585f1a,'attributes':{'data-comment':_0x522b55}};}}),_0x460896[_0x80e4('0x62')][_0x80e4('0x2')](_0x80e4('0xd'))[_0x80e4('0x5a')]({'model':'comment','view':(_0x2a3dd8,{options:_0xcfc14f})=>{const _0x1ca858=_0x460896[_0x80e4('0xc')][_0x80e4('0x5b')](_0x5db589),_0x56dc9d=_0x460896['model'][_0x80e4('0x5e')][_0x80e4('0x5b')](_0x2a3dd8),{id:_0x3ff3eb,part:_0xad3fed}=ot(_0x2a3dd8);if(_0x56dc9d&&!_0x56dc9d[_0x80e4('0x16')])return null;if(_0xcfc14f[_0x80e4('0x7')]){const _0x2553c3=_0x1ca858[_0x80e4('0x68')](_0x3ff3eb);if(_0x2553c3&&_0x2553c3[_0x80e4('0xf')])return null;}return{'group':_0x80e4('0x53'),'name':_0xad3fed?_0x3ff3eb+':'+_0xad3fed:_0x3ff3eb};}}),_0x460896['conversion'][_0x80e4('0x2')](_0x80e4('0x33'))[_0x80e4('0x12')]({'view':{'name':_0x80e4('0x53'),'attributes':{'id':/^\w/}},'model':(_0x570205,{writer:_0x55179f})=>_0x55179f[_0x80e4('0x32')](_0x80e4('0x0'),{'data-name':_0x80e4('0x3')+_0x570205['getAttribute']('id')})}),_0x460896[_0x80e4('0x62')]['for'](_0x80e4('0x33'))[_0x80e4('0x5')]({'view':_0x80e4('0x53')});}[_0x80e4('0x60')](){const _0x19f3d4=this[_0x80e4('0x46')],_0x3a5031=_0x19f3d4[_0x80e4('0xc')][_0x80e4('0x5b')](_0x5db589),_0x1be51c=new Set(),_0x3e9541=new Set();_0x19f3d4[_0x80e4('0x2e')][_0x80e4('0x74')]['registerPostFixer'](_0x26da82=>{let _0x2b3113=!0x1;for(const {name:_0x763de9,data:_0x4eb17d}of _0x19f3d4[_0x80e4('0x2e')][_0x80e4('0x74')][_0x80e4('0x4f')][_0x80e4('0x21')]()){const {group:_0xafa79c,id:_0x4b8b03}=ot(_0x763de9);let _0x17da2c=_0x4eb17d['newRange'];if(_0x80e4('0x53')!==_0xafa79c||!_0x17da2c)continue;const _0x17c77e=_0x80e4('0x8')===_0x17da2c[_0x80e4('0x71')][_0x80e4('0x19')];_0x17c77e||(_0x17da2c=et(_0x17da2c,_0x19f3d4[_0x80e4('0x2e')]),!_0x17da2c||_0x17da2c['isCollapsed']||!_0x4eb17d[_0x80e4('0x69')]||_0x17da2c[_0x80e4('0x51')](_0x4eb17d[_0x80e4('0x69')]))?_0x19f3d4['model'][_0x80e4('0x72')](_0x17da2c)&&!_0x17c77e?this[_0x80e4('0x6c')]?_0x1be51c[_0x80e4('0x3e')](_0x763de9):this['_handleThreadMarker'](_0x763de9,_0x4b8b03):(_0x3e9541[_0x80e4('0x3e')](_0x763de9),_0x1be51c[_0x80e4('0x22')](_0x763de9),_0x26da82[_0x80e4('0x73')](_0x763de9),_0x2b3113=!0x0):(_0x26da82[_0x80e4('0x3d')](_0x763de9,{'range':_0x17da2c}),_0x2b3113=!0x0);}return _0x2b3113;}),this['on'](_0x80e4('0x1c'),(_0x2f7fa1,_0x541525,_0x41bd6b)=>{if(!_0x41bd6b&&_0x1be51c[_0x80e4('0x31')])for(const _0x35abcc of _0x1be51c){const {id:_0x29eae0}=ot(_0x35abcc);_0x1be51c[_0x80e4('0x22')](_0x35abcc),_0x19f3d4[_0x80e4('0x2e')][_0x80e4('0x5e')][_0x80e4('0x5b')](_0x35abcc)&&this[_0x80e4('0x49')](_0x35abcc,_0x29eae0);}}),this[_0x80e4('0x58')](_0x19f3d4[_0x80e4('0x2e')]['document'],_0x80e4('0x38'),(_0x150dcf,_0x1488d6)=>{for(const {name:_0x1c3165,data:{newRange:_0x17e2ff}}of _0x19f3d4[_0x80e4('0x2e')][_0x80e4('0x74')][_0x80e4('0x4f')][_0x80e4('0x21')]()){const {group:_0x5d2fa7,id:_0x283fb2}=ot(_0x1c3165);if(_0x80e4('0x53')!==_0x5d2fa7)continue;const _0x20f24d=_0x3a5031[_0x80e4('0x68')](_0x283fb2),_0x10d699=this[_0x80e4('0x67')](_0x283fb2);_0x20f24d&&(_0x20f24d[_0x80e4('0x2a')]||_0x19f3d4[_0x80e4('0x6b')][_0x80e4('0x37')][_0x80e4('0x64')](_0x80e4('0x4a'),()=>{const _0x2bb20d=_0x19f3d4[_0x80e4('0xc')][_0x80e4('0x5b')](_0xe4803e),_0x4c0df3=_0x3a5031['_threadToController'][_0x80e4('0x5b')](_0x20f24d)[_0x80e4('0x37')];_0x2bb20d['getByInnerView'](_0x4c0df3)[_0x80e4('0x1')]();},{'priority':_0x80e4('0x9')}),_0x20f24d[_0x80e4('0x2a')]=_0x10d699||!!_0x17e2ff),_0x17e2ff||(_0x3e9541[_0x80e4('0x3e')](_0x1c3165),_0x1be51c['delete'](_0x1c3165));}if(_0x1488d6[_0x80e4('0x14')])for(const _0x2dc9ca of _0x3e9541){const {id:_0x3240f9}=ot(_0x2dc9ca),_0x524709=_0x3a5031[_0x80e4('0x68')](_0x3240f9),_0x34ff92=this[_0x80e4('0x67')](_0x3240f9);_0x1be51c['delete'](_0x2dc9ca),!_0x524709||_0x34ff92||_0x524709['unlinkedAt']||_0x524709[_0x80e4('0x1d')](new Date());}_0x3e9541[_0x80e4('0x4')]();});}['_getTargetForId'](_0x330c8b){const _0x2ea010=this[_0x80e4('0x46')],_0x3f62bd=this['getAllMarkersForId'](_0x330c8b);return _0x2b3741(_0x2ea010[_0x80e4('0x6b')],_0x3f62bd);}['_getTextContext'](_0x590a5f){const _0x2ea485=this[_0x80e4('0x4e')](_0x590a5f);let _0x1ab561='',_0x35b4b7=!0x1;for(const _0x41f2ff of _0x2ea485){const _0x149478=_0x41f2ff[_0x80e4('0x3b')]();for(const _0x3e3173 of Array['from'](_0x149478[_0x80e4('0x42')]()))_0x3e3173['is']('$textProxy')?(_0x1ab561&&_0x35b4b7&&(_0x1ab561+='\x20',_0x35b4b7=!0x1),_0x1ab561+=_0x3e3173['data']):_0x35b4b7=!0x0;_0x35b4b7=!0x0;}return _0x1ab561[_0x80e4('0x48')](0x0,0x96);}['_attachMarkerToThread'](_0x51032b,_0x192338){const _0x3085e4=this[_0x80e4('0x46')],_0x428b9c=_0x3085e4[_0x80e4('0xc')][_0x80e4('0x5b')](_0x5db589);let _0x5059c0=_0x428b9c[_0x80e4('0x68')](_0x192338);const _0x4c80fd=_0x3085e4[_0x80e4('0x39')][_0x80e4('0x5b')]('collaboration.channelId'),_0x3eb005=_0x3085e4['plugins'][_0x80e4('0x5b')](_0x2639d5);if(_0x5059c0&&(_0x5059c0[_0x80e4('0x63')]&&_0x5059c0[_0x80e4('0x1d')](null),_0x5059c0['isAttached']))return _0x5059c0;return!this[_0x80e4('0x4e')](_0x192338)[0x0][_0x80e4('0x2f')]?_0x3085e4[_0x80e4('0x6b')][_0x80e4('0x37')]['once']('render',()=>{if(_0x428b9c[_0x80e4('0x68')](_0x192338))return;const _0x5280d8=_0x3085e4[_0x80e4('0xc')][_0x80e4('0x5b')](_0xe4803e);_0x5059c0=_0x428b9c[_0x80e4('0x4d')]({'channelId':_0x4c80fd,'threadId':_0x192338,'target':()=>this[_0x80e4('0x4b')](_0x192338),'context':{'type':'text','value':this[_0x80e4('0x47')](_0x192338)}});const _0x4ea78d=_0x428b9c['_threadToController'][_0x80e4('0x5b')](_0x5059c0)[_0x80e4('0x37')],_0x28a022=_0x5280d8[_0x80e4('0x15')](_0x4ea78d);_0x28a022&&_0x3eb005[_0x80e4('0x50')](_0x28a022);},{'priority':_0x80e4('0x9')}):_0x428b9c[_0x80e4('0x52')]({'channelId':_0x4c80fd,'threadId':_0x192338})[_0x80e4('0x6e')](_0x276409=>{if(_0x80e4('0x30')!==_0x3085e4['state']){if(_0x5059c0=_0x276409,_0x5059c0&&!_0x5059c0['isAttached']){const _0x158a8f=_0x5059c0[_0x80e4('0x4c')](()=>this[_0x80e4('0x4b')](_0x192338));_0x3eb005[_0x80e4('0x50')](_0x158a8f),_0x5059c0[_0x80e4('0xf')]&&this[_0x80e4('0x27')](_0x192338);}else{if(!_0x5059c0){const _0x5ee06c=this[_0x80e4('0x4e')](_0x192338);_0x3085e4[_0x80e4('0x2e')][_0x80e4('0x38')](_0x2123e6=>{for(const _0x230d20 of _0x5ee06c)_0x2123e6[_0x80e4('0x73')](_0x230d20);});}}}}),_0x5059c0;}[_0x80e4('0x49')](_0x67bb49,_0x1ccd09){const _0x1f625a=this[_0x80e4('0x29')](_0x67bb49,_0x1ccd09);_0x1f625a&&!_0x1f625a[_0x80e4('0x61')]&&_0x1f625a[_0x80e4('0x6d')]({'type':'text','value':this['_getTextContext'](_0x1ccd09)});}[_0x80e4('0x2d')](){const _0x58662f=this[_0x80e4('0x46')];_0x1c111d(_0x58662f['model'],({left:_0x4bcb9c,entered:_0x43a20b})=>{const _0x3b1690=[];for(const _0x3f60e8 of _0x4bcb9c)if(rt(_0x3f60e8)){_0x3b1690[_0x80e4('0x6')](_0x143480(_0x58662f['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x392a1d of _0x43a20b)if(rt(_0x392a1d)){_0x3b1690['push'](_0x143480(_0x58662f['locale'],'ENTER_COMMENT_ANNOUNCEMENT'));break;}_0x3b1690['length']&&_0x58662f['ui'][_0x80e4('0x65')][_0x80e4('0x13')](_0x80e4('0x23'),_0x3b1690[_0x80e4('0x56')]('\x20'));});}}function tt(_0x20436a,_0x16fc20){return _0x16fc20?_0x20436a+':'+_0x16fc20:_0x20436a;}function ot(_0x2c6585){const _0x46bc56=_0x2c6585[_0x80e4('0x1e')](':');return{'group':_0x46bc56[0x0],'id':_0x46bc56[0x1],'part':_0x46bc56[0x2]};}function et(_0x1c9768,_0x12e2fa){const _0x198de4=_0x12e2fa[_0x80e4('0xe')],_0x3906d3=_0x12e2fa[_0x80e4('0x44')](_0x1c9768[_0x80e4('0x2b')]);for(const _0x3ebd36 of _0x1c9768[_0x80e4('0x59')]()){const {type:_0x423609,item:_0x75a66b,nextPosition:_0x2f8007}=_0x3ebd36;if('text'===_0x423609||_0x198de4['isObject'](_0x75a66b)){const _0x372c30=_0x12e2fa[_0x80e4('0x3f')](_0x75a66b);_0x3906d3['isCollapsed']&&(_0x3906d3[_0x80e4('0x2b')]=_0x372c30),_0x3906d3[_0x80e4('0x1b')]=_0x2f8007;}}return _0x3906d3;}function rt(_0x51f8fd){return _0x80e4('0x53')===ot(_0x51f8fd[_0x80e4('0x36')])[_0x80e4('0x10')];}
@@ -1,21 +1,21 @@
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/commentsrepository
7
7
  * @publicApi
8
8
  */
9
- import { Context, PendingActions, ContextPlugin, Editor } from 'ckeditor5/src/core';
10
- import { Collection } from 'ckeditor5/src/utils';
11
- import { Users, type User } from 'ckeditor5-collaboration/src/collaboration-core';
12
- import CommentThreadController from './ui/commentthreadcontroller';
9
+ import { Context, PendingActions, ContextPlugin, Editor } from 'ckeditor5/src/core.js';
10
+ import { Collection } from 'ckeditor5/src/utils.js';
11
+ import { Users, type User } from 'ckeditor5-collaboration/src/collaboration-core.js';
12
+ import CommentThreadController from './ui/commentthreadcontroller.js';
13
13
  import '../../theme/comment.css';
14
14
  import '../../theme/commentthread.css';
15
15
  import '../../theme/commentinput.css';
16
- import Annotation, { type AnnotationTarget } from '../annotations/annotation';
17
- import Annotations from '../annotations/annotations';
18
- import type BaseCommentThreadView from './ui/view/basecommentthreadview';
16
+ import Annotation, { type AnnotationTarget } from '../annotations/annotation.js';
17
+ import Annotations from '../annotations/annotations.js';
18
+ import type BaseCommentThreadView from './ui/view/basecommentthreadview.js';
19
19
  /**
20
20
  * Stores the list of {@link module:comments/comments/commentsrepository~CommentThread}
21
21
  * and provides event-driven API for managing them. It is also responsible for using the comments adapter
@@ -269,8 +269,8 @@ interface CommentPermissionsConfig {
269
269
  resolve: boolean;
270
270
  }
271
271
  declare const CommentThread_base: {
272
- new (): import("ckeditor5/src/utils").Observable;
273
- prototype: import("ckeditor5/src/utils").Observable;
272
+ new (): import("ckeditor5/src/utils.js").Observable;
273
+ prototype: import("ckeditor5/src/utils.js").Observable;
274
274
  };
275
275
  /**
276
276
  * Comment thread representation.
@@ -485,8 +485,8 @@ export declare class CommentThread extends CommentThread_base {
485
485
  toJSON(): CommentThreadDataJSON;
486
486
  }
487
487
  declare const Comment_base: {
488
- new (): import("ckeditor5/src/utils").Observable;
489
- prototype: import("ckeditor5/src/utils").Observable;
488
+ new (): import("ckeditor5/src/utils.js").Observable;
489
+ prototype: import("ckeditor5/src/utils.js").Observable;
490
490
  };
491
491
  /**
492
492
  * Single comment representation. A part of a {@link module:comments/comments/commentsrepository~CommentThread commentThread}.