@ckeditor/ckeditor5-comments 40.2.0 → 41.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/build/comments.js +2 -2
  4. package/lang/translations/af.po +1 -1
  5. package/lang/translations/ar.po +1 -1
  6. package/lang/translations/bg.po +1 -1
  7. package/lang/translations/bn.po +1 -1
  8. package/lang/translations/bs.po +1 -1
  9. package/lang/translations/ca.po +1 -1
  10. package/lang/translations/cs.po +1 -1
  11. package/lang/translations/da.po +1 -1
  12. package/lang/translations/de-ch.po +1 -1
  13. package/lang/translations/de.po +1 -1
  14. package/lang/translations/el.po +1 -1
  15. package/lang/translations/en-au.po +1 -1
  16. package/lang/translations/en.po +1 -1
  17. package/lang/translations/es-co.po +1 -1
  18. package/lang/translations/es.po +1 -1
  19. package/lang/translations/et.po +1 -1
  20. package/lang/translations/fa.po +1 -1
  21. package/lang/translations/fi.po +1 -1
  22. package/lang/translations/fr.po +1 -1
  23. package/lang/translations/gl.po +1 -1
  24. package/lang/translations/he.po +1 -1
  25. package/lang/translations/hi.po +1 -1
  26. package/lang/translations/hr.po +1 -1
  27. package/lang/translations/hu.po +1 -1
  28. package/lang/translations/id.po +1 -1
  29. package/lang/translations/it.po +1 -1
  30. package/lang/translations/ja.po +1 -1
  31. package/lang/translations/jv.po +1 -1
  32. package/lang/translations/ko.po +1 -1
  33. package/lang/translations/lt.po +1 -1
  34. package/lang/translations/lv.po +1 -1
  35. package/lang/translations/ms.po +1 -1
  36. package/lang/translations/nl.po +1 -1
  37. package/lang/translations/no.po +1 -1
  38. package/lang/translations/pl.po +1 -1
  39. package/lang/translations/pt-br.po +1 -1
  40. package/lang/translations/pt.po +1 -1
  41. package/lang/translations/ro.po +1 -1
  42. package/lang/translations/ru.po +1 -1
  43. package/lang/translations/sk.po +1 -1
  44. package/lang/translations/sq.po +1 -1
  45. package/lang/translations/sr-latn.po +1 -1
  46. package/lang/translations/sr.po +1 -1
  47. package/lang/translations/sv.po +1 -1
  48. package/lang/translations/th.po +1 -1
  49. package/lang/translations/tk.po +1 -1
  50. package/lang/translations/tr.po +1 -1
  51. package/lang/translations/tt.po +1 -1
  52. package/lang/translations/ug.po +1 -1
  53. package/lang/translations/uk.po +1 -1
  54. package/lang/translations/ur.po +1 -1
  55. package/lang/translations/vi.po +1 -1
  56. package/lang/translations/zh-cn.po +1 -1
  57. package/lang/translations/zh.po +1 -1
  58. package/package.json +4 -3
  59. package/src/annotations/annotation.d.ts +7 -7
  60. package/src/annotations/annotation.js +2 -2
  61. package/src/annotations/annotationcollection.d.ts +4 -4
  62. package/src/annotations/annotationcollection.js +2 -2
  63. package/src/annotations/annotations.d.ts +7 -7
  64. package/src/annotations/annotations.js +2 -2
  65. package/src/annotations/annotationsuis.d.ts +6 -6
  66. package/src/annotations/annotationsuis.js +2 -2
  67. package/src/annotations/editorannotations.d.ts +5 -5
  68. package/src/annotations/editorannotations.js +2 -2
  69. package/src/annotations/inlineannotations.d.ts +7 -7
  70. package/src/annotations/inlineannotations.js +2 -2
  71. package/src/annotations/narrowsidebar.d.ts +7 -7
  72. package/src/annotations/narrowsidebar.js +2 -2
  73. package/src/annotations/sidebar.d.ts +6 -6
  74. package/src/annotations/sidebar.js +2 -2
  75. package/src/annotations/view/annotationcounterbuttonview.d.ts +3 -3
  76. package/src/annotations/view/annotationcounterbuttonview.js +2 -2
  77. package/src/annotations/view/annotationview.d.ts +3 -3
  78. package/src/annotations/view/annotationview.js +2 -2
  79. package/src/annotations/view/sidebaritemview.d.ts +3 -3
  80. package/src/annotations/view/sidebaritemview.js +2 -2
  81. package/src/annotations/view/sidebarview.d.ts +3 -3
  82. package/src/annotations/view/sidebarview.js +2 -2
  83. package/src/annotations/widesidebar.d.ts +6 -6
  84. package/src/annotations/widesidebar.js +2 -2
  85. package/src/augmentation.d.ts +2 -2
  86. package/src/augmentation.js +1 -1
  87. package/src/comments/addcommentthreadcommand.d.ts +2 -2
  88. package/src/comments/addcommentthreadcommand.js +2 -2
  89. package/src/comments/commentsarchive.d.ts +5 -5
  90. package/src/comments/commentsarchive.js +2 -2
  91. package/src/comments/commentsarchiveui.d.ts +6 -6
  92. package/src/comments/commentsarchiveui.js +2 -2
  93. package/src/comments/commentsediting.d.ts +7 -7
  94. package/src/comments/commentsediting.js +2 -2
  95. package/src/comments/commentsrepository.d.ts +12 -12
  96. package/src/comments/commentsrepository.js +2 -2
  97. package/src/comments/commentsui.d.ts +6 -6
  98. package/src/comments/commentsui.js +2 -2
  99. package/src/comments/integrations/commentsrestrictededitingmode.d.ts +2 -2
  100. package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
  101. package/src/comments/integrations/importword.d.ts +2 -2
  102. package/src/comments/integrations/importword.js +2 -2
  103. package/src/comments/ui/commenteditor/commenteditor.d.ts +5 -5
  104. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  105. package/src/comments/ui/commenteditor/commenteditorui.d.ts +4 -4
  106. package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
  107. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +5 -5
  108. package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
  109. package/src/comments/ui/commentthreadcontroller.d.ts +5 -5
  110. package/src/comments/ui/commentthreadcontroller.js +2 -2
  111. package/src/comments/ui/view/basecommentthreadview.d.ts +9 -9
  112. package/src/comments/ui/view/basecommentthreadview.js +2 -2
  113. package/src/comments/ui/view/basecommentview.d.ts +5 -5
  114. package/src/comments/ui/view/basecommentview.js +2 -2
  115. package/src/comments/ui/view/collapsedcommentsview.d.ts +3 -3
  116. package/src/comments/ui/view/collapsedcommentsview.js +2 -2
  117. package/src/comments/ui/view/commentcontentview.d.ts +3 -3
  118. package/src/comments/ui/view/commentcontentview.js +2 -2
  119. package/src/comments/ui/view/commentinputview.d.ts +5 -5
  120. package/src/comments/ui/view/commentinputview.js +2 -2
  121. package/src/comments/ui/view/commentsarchiveview.d.ts +4 -4
  122. package/src/comments/ui/view/commentsarchiveview.js +2 -2
  123. package/src/comments/ui/view/commentslistview.d.ts +6 -6
  124. package/src/comments/ui/view/commentslistview.js +2 -2
  125. package/src/comments/ui/view/commentthreadheaderview.d.ts +4 -4
  126. package/src/comments/ui/view/commentthreadheaderview.js +2 -2
  127. package/src/comments/ui/view/commentthreadinputview.d.ts +6 -6
  128. package/src/comments/ui/view/commentthreadinputview.js +2 -2
  129. package/src/comments/ui/view/commentthreadview.d.ts +8 -8
  130. package/src/comments/ui/view/commentthreadview.js +2 -2
  131. package/src/comments/ui/view/commentview.d.ts +9 -9
  132. package/src/comments/ui/view/commentview.js +2 -2
  133. package/src/comments.d.ts +11 -11
  134. package/src/comments.js +2 -2
  135. package/src/commentsonly.d.ts +3 -3
  136. package/src/commentsonly.js +2 -2
  137. package/src/config.d.ts +4 -4
  138. package/src/config.js +1 -1
  139. package/src/index.d.ts +21 -21
  140. package/src/index.js +2 -2
  141. package/src/utils/common-translations.d.ts +2 -2
  142. package/src/utils/common-translations.js +2 -2
  143. package/src/utils/createmutationobserver.d.ts +1 -1
  144. package/src/utils/createmutationobserver.js +2 -2
  145. package/theme/annotation-inline.css +1 -1
  146. package/theme/annotation.css +5 -1
  147. package/theme/comment.css +1 -1
  148. package/theme/commentinput.css +1 -1
  149. package/theme/commentmarker.css +1 -1
  150. package/theme/commentsarchive.css +2 -2
  151. package/theme/commentthread.css +5 -1
  152. package/theme/icons/add-comment.svg +1 -1
  153. package/theme/icons/comments-archive.svg +1 -1
  154. package/theme/icons/edit-comment.svg +1 -1
  155. package/theme/icons/remove-comment.svg +1 -1
  156. package/theme/sidebar-narrow.css +1 -1
  157. package/theme/sidebar.css +1 -1
@@ -1,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 _0x521e=['pluginName','view','editor','requires','commentsArchive','change:isOpen','getByInnerView','componentFactory','classList','_handleAnnotationFocusableElements','CommentsArchiveUI','splice','_threadToController','panelView','findIndex','add','archivedThreads','COMMENTS_ARCHIVE','children','collection','_pendingThreads','buttonView','contains','annotationViews','stopListening','focusableElements','length','Annotations','_calculatePosition','focusTracker','CommentsRepository','ck-comments-archive-dropdown','mainView','_visibleAnnotations','ck-body','remove','find','listenTo','_createArchiveUIDropdown','config','innerView','init','locale','isVisible','commentsArchiveView','archivedAt','push','get','plugins','set'];(function(_0x4bc78a,_0x521e6d){const _0x1f1564=function(_0x13a273){while(--_0x13a273){_0x4bc78a['push'](_0x4bc78a['shift']());}};_0x1f1564(++_0x521e6d);}(_0x521e,0x1a2));const _0x1f15=function(_0x4bc78a,_0x521e6d){_0x4bc78a=_0x4bc78a-0x0;let _0x1f1564=_0x521e[_0x4bc78a];return _0x1f1564;};import'../../theme/commentsarchive.css';import{Plugin as _0x578840}from'ckeditor5/src/core.js';import{createDropdown as _0x32adea,ViewCollection as _0x422c24}from'ckeditor5/src/ui.js';import _0x42da95 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0xaf936d}from'../utils/common-translations.js';import _0x5ab285 from'./ui/view/commentsarchiveview.js';import _0xb9ec8 from'./commentsarchive.js';export default class a extends _0x578840{static get[_0x1f15('0x20')](){return _0x1f15('0x2a');}static get[_0x1f15('0x23')](){return[_0xb9ec8];}constructor(_0x404b96){super(_0x404b96),this[_0x1f15('0x5')]=new _0x422c24(),this[_0x1f15('0x2')]=[];}[_0x1f15('0x17')](){this[_0x1f15('0x22')]['ui'][_0x1f15('0x27')][_0x1f15('0x2f')](_0x1f15('0x24'),()=>this[_0x1f15('0x14')]());const _0x5dbf54=this['editor'][_0x1f15('0x1e')][_0x1f15('0x1d')](_0xb9ec8),_0x5e5c82=this[_0x1f15('0x22')]['plugins'][_0x1f15('0x1d')]('Annotations'),_0x175c7a=this[_0x1f15('0x22')][_0x1f15('0x1e')][_0x1f15('0x1d')](_0x1f15('0xc'));this[_0x1f15('0x13')](_0x5dbf54[_0x1f15('0x30')],_0x1f15('0x2f'),(_0x3fd991,_0x47a985)=>{const _0x7dc674=this['editor'][_0x1f15('0x15')][_0x1f15('0x1d')]('collaboration.channelId');if(!_0x7dc674||_0x47a985['channelId']===_0x7dc674){const _0x56ec92=this[_0x1f15('0xa')](_0x47a985[_0x1f15('0x1b')]),_0xba0d0e=_0x175c7a[_0x1f15('0x2c')][_0x1f15('0x1d')](_0x47a985);if(!_0xba0d0e)return void this['_pendingThreads'][_0x1f15('0x1c')]({'thread':_0x47a985,'position':_0x56ec92});const _0x47548e=_0x5e5c82[_0x1f15('0x26')](_0xba0d0e[_0x1f15('0x21')]);_0x47548e[_0x1f15('0x19')]&&_0x5e5c82[_0x1f15('0xf')][_0x1f15('0x11')](_0x47548e),this['annotationViews'][_0x1f15('0x2f')](_0x47548e[_0x1f15('0x21')],_0x56ec92);}}),this[_0x1f15('0x13')](_0x5e5c82[_0x1f15('0x1')],_0x1f15('0x2f'),(_0x223ead,_0x1d9071)=>{const _0x1cbee0=this[_0x1f15('0x2')][_0x1f15('0x12')](({thread:_0x1dae09})=>{const _0x2dfb11=_0x175c7a[_0x1f15('0x2c')][_0x1f15('0x1d')](_0x1dae09);return _0x2dfb11&&_0x1d9071[_0x1f15('0x16')]===_0x2dfb11['view'];});_0x1cbee0&&(this['annotationViews'][_0x1f15('0x2f')](_0x1d9071[_0x1f15('0x21')],_0x1cbee0['position']),this['_pendingThreads'][_0x1f15('0x2b')](this['_pendingThreads']['indexOf'](_0x1cbee0),0x1));}),this[_0x1f15('0x13')](_0x5dbf54['archivedThreads'],_0x1f15('0x11'),(_0x2b02f8,_0x26c7a4)=>{const _0x5244ec=this['editor'][_0x1f15('0x15')][_0x1f15('0x1d')]('collaboration.channelId');if(!_0x5244ec||_0x26c7a4['channelId']===_0x5244ec){const _0x40a4b9=_0x175c7a[_0x1f15('0x2c')]['get'](_0x26c7a4),_0x315f44=_0x5e5c82[_0x1f15('0x26')](_0x40a4b9[_0x1f15('0x21')]);this[_0x1f15('0x5')][_0x1f15('0x11')](_0x315f44[_0x1f15('0x21')]),this[_0x1f15('0x6')](_0x315f44[_0x1f15('0x7')]);}});}[_0x1f15('0x29')](_0x1daa09,_0x44da95){for(const _0x4d7ad1 of _0x44da95['focusableElements'])_0x4d7ad1[_0x1f15('0x28')][_0x1f15('0x4')](_0x1f15('0x10'))&&_0x1daa09[_0x1f15('0xb')][_0x1f15('0x2f')](_0x4d7ad1);this[_0x1f15('0x13')](_0x44da95[_0x1f15('0x7')],_0x1f15('0x2f'),(_0x22f1ba,_0x57f0a3)=>{_0x57f0a3[_0x1f15('0x28')][_0x1f15('0x4')](_0x1f15('0x10'))&&_0x1daa09[_0x1f15('0xb')][_0x1f15('0x2f')](_0x57f0a3);}),this[_0x1f15('0x13')](_0x44da95[_0x1f15('0x7')],_0x1f15('0x11'),(_0x37715f,_0x8506a6)=>{_0x8506a6[_0x1f15('0x28')]['contains'](_0x1f15('0x10'))&&_0x1daa09[_0x1f15('0xb')][_0x1f15('0x11')](_0x8506a6);});}[_0x1f15('0xa')](_0x39220f){const _0x236037=this[_0x1f15('0x22')][_0x1f15('0x15')][_0x1f15('0x1d')]('collaboration.channelId'),_0x33662f=[...this[_0x1f15('0x22')][_0x1f15('0x1e')][_0x1f15('0x1d')](_0xb9ec8)[_0x1f15('0x30')]]['filter'](_0x1eb440=>_0x1eb440['channelId']===_0x236037)[_0x1f15('0x2e')](_0xdbe93e=>_0xdbe93e[_0x1f15('0x1b')]<_0x39220f);return _0x33662f>-0x1?_0x33662f-0x1:this['annotationViews'][_0x1f15('0x8')];}[_0x1f15('0x14')](){const _0xe1e686=this[_0x1f15('0x22')],_0x3b19d9=this[_0x1f15('0x22')][_0x1f15('0x1e')][_0x1f15('0x1d')](_0x1f15('0x9')),_0x27fc39=_0x32adea(_0xe1e686[_0x1f15('0x18')]);_0x27fc39[_0x1f15('0x3')][_0x1f15('0x1f')]({'icon':_0x42da95,'label':_0xaf936d(_0xe1e686[_0x1f15('0x18')],_0x1f15('0x31')),'tooltip':!0x0}),_0x27fc39['panelView']['extendTemplate']({'attributes':{'class':_0x1f15('0xd')}}),_0x27fc39['on'](_0x1f15('0x25'),(_0x52a3f6,_0x190895,_0x213745)=>{this['commentsArchiveView']||(this[_0x1f15('0x1a')]=new _0x5ab285(_0xe1e686[_0x1f15('0x18')],this[_0x1f15('0x5')])),_0x213745?_0x27fc39[_0x1f15('0x2d')][_0x1f15('0x0')][_0x1f15('0x2f')](this['commentsArchiveView']):_0x27fc39[_0x1f15('0x2d')][_0x1f15('0x0')][_0x1f15('0x11')](this['commentsArchiveView']);});for(const _0x20795c of this['annotationViews']){const _0x2af511=_0x3b19d9['getByInnerView'](_0x20795c[_0x1f15('0xe')]);this['_handleAnnotationFocusableElements'](_0x27fc39,_0x2af511);}return _0x27fc39[_0x1f15('0x13')](this[_0x1f15('0x5')],_0x1f15('0x2f'),(_0x2e1c2c,_0x2b772e)=>{const _0xf19bf=_0x3b19d9[_0x1f15('0x26')](_0x2b772e[_0x1f15('0xe')]);this[_0x1f15('0x29')](_0x27fc39,_0xf19bf);}),_0x27fc39[_0x1f15('0x13')](this[_0x1f15('0x5')],_0x1f15('0x11'),(_0x556bd9,_0x457a19)=>{const _0xceb3f1=_0x3b19d9[_0x1f15('0x26')](_0x457a19[_0x1f15('0xe')]);for(const _0x2a530a of _0xceb3f1[_0x1f15('0x7')])_0x2a530a[_0x1f15('0x28')]['contains'](_0x1f15('0x10'))&&_0x27fc39[_0x1f15('0xb')][_0x1f15('0x11')](_0x2a530a);}),_0x27fc39;}}
@@ -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 _0x2895=['getItems','view','once','get','hasContent','render','hasCommentThread','listenTo','init','removeMarker','startsWith','isLocal','_initAriaMarkerChangeAnnouncements','_detachCommentThread','$marker','unlinkedAt','getAllMarkersForId','resolveCommentThread','comments','change:isThreadsLoadingPaused','getByInnerView','set','plugins','isResolved','data','CommentsEditing','destroyed','item','conversion','LEAVE_COMMENT_ANNOUNCEMENT','editingDowncast','isEqual','commands','getCommentThread','isObject','ck-comment-marker','hasDomSelection','delete','_getTargetForId','attachTo','scrollToThreadMarker','reconvertMarker','openNewCommentThread','model','addMarker:','group','_initializeMarkerConverters','root','then','hasMarkerForId','markerName','isAttached','markerToHighlight','registerAnnotation','differ','getCommentThreads','context','addComment','push','_handleMarkerAddAndRemove','_threadToController','focus','config','requires','activeMarker','newRange','ck-comment-marker--active','reopenCommentThread','getChangedMarkers','announce','elementToElement','getAttribute','destroy','affectsData','fetchCommentThread','registerPostFixer','comment:','upcast','for','low','$textProxy','enqueueChange','switchReadOnly','from','_attachArchivedThread','_getTextContext','add','pluginName','_handleThreadMarker','change:isReadOnly','_reconvertMarkers','ENTER_COMMENT_ANNOUNCEMENT','change','start','ariaLiveAnnouncer','change:activeMarker','markers','length','document','addCommentThread','_hasTargetInContent','end','size','state','dataDowncast','_attachMarkerToThread','consume','getWalker','setContext','clear','split','isThreadsLoadingPaused','text','collaboration.channelId','createPositionBefore','setUnlinkedAt','updateMarker','managedUsingOperations','refreshVisibility','isCollapsed','$graveyard','comment','editor','createElement','locale','consumable','editing'];(function(_0x11c36e,_0x28957c){const _0x1a3667=function(_0x5636da){while(--_0x5636da){_0x11c36e['push'](_0x11c36e['shift']());}};_0x1a3667(++_0x28957c);}(_0x2895,0xae));const _0x1a36=function(_0x11c36e,_0x28957c){_0x11c36e=_0x11c36e-0x0;let _0x1a3667=_0x2895[_0x11c36e];return _0x1a3667;};import{Plugin as _0x13241f}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x2d7541}from'ckeditor5/src/utils.js';import _0x503ed2 from'./commentsrepository.js';import _0x397c6d from'./addcommentthreadcommand.js';import{surroundingMarkersDetector as _0x3b914d,getAllMarkersDomElementsSorted as _0x408bcc}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x4bbe01 from'../annotations/editorannotations.js';import _0x2f1b00 from'./integrations/commentsrestrictededitingmode.js';import'../../theme/commentmarker.css';import _0x6f50af from'./integrations/importword.js';import _0x1cedf6 from'../annotations/annotations.js';import{getTranslation as _0xe61512}from'../utils/common-translations.js';export default class r extends _0x13241f{static get[_0x1a36('0x10')](){return[_0x503ed2,_0x4bbe01,_0x2f1b00,_0x6f50af];}static get[_0x1a36('0x28')](){return _0x1a36('0x69');}constructor(_0x5e86a5){super(_0x5e86a5),this[_0x1a36('0x65')](_0x1a36('0x40'),!0x0),_0x5e86a5[_0x1a36('0x68')][_0x1a36('0x52')]('ready',()=>this['isThreadsLoadingPaused']=!0x1),this[_0x1a36('0x65')](_0x1a36('0x11'),null),this['on'](_0x1a36('0x30'),(_0x1a5947,_0x203f5f,_0x56923b,_0xf75d2)=>{const _0x269506=_0x56923b?ot(_0x56923b)['id']:null;if(_0x5e86a5['model'][_0x1a36('0x2d')](()=>{if(_0x269506){const _0x3d0ad2=this[_0x1a36('0x60')](_0x269506);for(const _0x1a180f of _0x3d0ad2)_0x5e86a5[_0x1a36('0x4f')][_0x1a36('0x79')](_0x1a180f);}if(_0xf75d2){const {id:_0x4845bf}=ot(_0xf75d2),_0x18d48f=this['getAllMarkersForId'](_0x4845bf);for(const _0x449071 of _0x18d48f)_0x5e86a5[_0x1a36('0x4f')][_0x1a36('0x79')](_0x449071);}}),_0x269506){const _0x39597b=_0x5e86a5[_0x1a36('0x66')][_0x1a36('0x53')](_0x503ed2)[_0x1a36('0x71')](_0x269506);_0x39597b&&_0x39597b[_0x1a36('0x67')]&&this[_0x1a36('0x78')](_0x269506);}}),this[_0x1a36('0x5c')]();}[_0x1a36('0x58')](){const _0x1f73b3=this[_0x1a36('0x4b')],_0x5c9437=_0x1f73b3[_0x1a36('0x66')][_0x1a36('0x53')](_0x503ed2),_0x1ce7eb=_0x1f73b3[_0x1a36('0xf')]['get'](_0x1a36('0x42'));_0x1f73b3[_0x1a36('0x70')][_0x1a36('0x27')](_0x1a36('0x34'),new _0x397c6d(_0x1f73b3)),this['listenTo'](_0x1f73b3,_0x1a36('0x2a'),(_0x37bfe5,_0x596211,_0x5eb9b4)=>{_0x5c9437[_0x1a36('0x23')](_0x5eb9b4,_0x1f73b3[_0x1a36('0xf')][_0x1a36('0x53')](_0x1a36('0x42')));}),this[_0x1a36('0x57')](_0x5c9437,tt(_0x1a36('0x34'),_0x1ce7eb),(_0x5d094c,{threadId:_0x2b10da})=>{const _0x3806fb=this[_0x1a36('0x4b')]['plugins'][_0x1a36('0x53')](_0x503ed2)['getCommentThread'](_0x2b10da);_0x3806fb&&_0x3806fb[_0x1a36('0x5f')]&&this[_0x1a36('0x25')](_0x2b10da);}),this['listenTo'](_0x5c9437,tt('removeCommentThread',_0x1ce7eb),(_0x462483,{threadId:_0x47cadd})=>{_0x1f73b3[_0x1a36('0x7b')][_0x1a36('0x22')]({'isUndoable':!0x1},_0x8dc80d=>{const _0x291858=this['getAllMarkersForId'](_0x47cadd);for(const _0x2bf0a8 of _0x291858)_0x8dc80d[_0x1a36('0x59')](_0x2bf0a8);});}),this[_0x1a36('0x57')](_0x5c9437,tt(_0x1a36('0x61'),_0x1ce7eb),(_0x299039,{threadId:_0x58d4dd})=>{(this[_0x1a36('0x2b')](_0x58d4dd),this[_0x1a36('0x4b')][_0x1a36('0x4f')]['view'][_0x1a36('0x74')])&&(this[_0x1a36('0x4b')][_0x1a36('0x66')][_0x1a36('0x53')](_0x503ed2)[_0x1a36('0x71')](_0x58d4dd)[_0x1a36('0x5f')]||this[_0x1a36('0x4b')]['editing']['view'][_0x1a36('0xe')]());},{'priority':'low'}),this[_0x1a36('0x57')](_0x5c9437,tt(_0x1a36('0x14'),_0x1ce7eb),(_0x61b67d,{threadId:_0x167b29})=>{this[_0x1a36('0x2b')](_0x167b29);},{'priority':_0x1a36('0x20')}),this[_0x1a36('0x57')](_0x5c9437,tt(_0x1a36('0xa'),_0x1ce7eb),(_0x53b540,{threadId:_0x13fd54,isFromAdapter:_0x1cf7d7})=>{const _0x5bdcc7=this[_0x1a36('0x60')](_0x13fd54);if(_0x1cf7d7||0x0==_0x5bdcc7[_0x1a36('0x32')]||!_0x5c9437[_0x1a36('0x56')](_0x13fd54))return;0x1===_0x5c9437[_0x1a36('0x71')](_0x13fd54)[_0x1a36('0x32')]&&_0x1f73b3[_0x1a36('0x7b')]['enqueueChange']({'isUndoable':!0x1},_0x29277a=>{for(const _0x332615 of _0x5bdcc7)_0x29277a[_0x1a36('0x45')](_0x332615,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x1a36('0x20')}),this[_0x1a36('0x7e')](),this[_0x1a36('0xc')]();}[_0x1a36('0x19')](){const _0xe54000=this['editor'][_0x1a36('0x66')]['get'](_0x503ed2),_0x5c6aca=this['editor'][_0x1a36('0xf')][_0x1a36('0x53')]('collaboration.channelId');for(const _0xd23f38 of _0xe54000[_0x1a36('0x8')]({'channelId':_0x5c6aca}))_0xe54000[_0x1a36('0x5d')](_0xd23f38['id']),_0xe54000['_threads'][_0x1a36('0x75')](_0xd23f38['id']);super['destroy']();}[_0x1a36('0x2')](_0x10b94d){return this['getAllMarkersForId'](_0x10b94d)[_0x1a36('0x32')]>0x0;}[_0x1a36('0x60')](_0x27af3c){const _0x1d2311=[];for(const _0x581827 of this[_0x1a36('0x4b')]['model'][_0x1a36('0x31')])_0x581827['name'][_0x1a36('0x5a')]('comment:'+_0x27af3c)&&_0x1d2311[_0x1a36('0xb')](_0x581827);return _0x1d2311;}['scrollToThreadMarker'](_0x5ab5e3){const _0x5846b9=this[_0x1a36('0x76')](_0x5ab5e3);_0x5846b9&&setTimeout(()=>{this[_0x1a36('0x11')]&&ot(this['activeMarker'])['id']===_0x5ab5e3&&_0x2d7541({'target':_0x5846b9[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x334c0f){this[_0x1a36('0x4b')][_0x1a36('0x7b')][_0x1a36('0x2d')](()=>{for(const _0x5aa634 of this[_0x1a36('0x60')](_0x334c0f))this[_0x1a36('0x4b')][_0x1a36('0x4f')][_0x1a36('0x79')](_0x5aa634);});}[_0x1a36('0x25')](_0x4fea11){const _0x31db41=this['editor']['plugins']['get'](_0x503ed2),_0x4af146=this[_0x1a36('0x4b')]['plugins']['get'](_0x4bbe01),_0x2990fc=_0x31db41[_0x1a36('0x71')](_0x4fea11);if(!_0x2990fc['isAttached']){const _0x731dc3=_0x2990fc[_0x1a36('0x77')](()=>this[_0x1a36('0x76')](_0x2990fc['id']));_0x4af146[_0x1a36('0x6')](_0x731dc3),_0x2990fc[_0x1a36('0x35')]=!0x1;}}[_0x1a36('0x7e')](){const _0x56eb3e=this[_0x1a36('0x4b')];_0x56eb3e['conversion']['for'](_0x1a36('0x6e'))[_0x1a36('0x5')]({'model':_0x1a36('0x4a'),'view':(_0xd2124b,_0x4cb466)=>{const {id:_0x2a49d8}=ot(_0xd2124b[_0x1a36('0x3')]),_0x28b601=_0x56eb3e[_0x1a36('0x66')][_0x1a36('0x53')](_0x503ed2)[_0x1a36('0x71')](_0x2a49d8),_0x596fc2=this[_0x1a36('0x11')]&&ot(this[_0x1a36('0x11')])['id']===_0x2a49d8;if(_0x28b601&&_0x28b601[_0x1a36('0x67')]&&!_0x596fc2&&_0xd2124b[_0x1a36('0x6b')])return _0x4cb466[_0x1a36('0x4e')]['consume'](_0xd2124b[_0x1a36('0x6b')],_0x1a36('0x7c')+_0xd2124b[_0x1a36('0x3')]),_0x4cb466[_0x1a36('0x4e')][_0x1a36('0x3b')](_0xd2124b[_0x1a36('0x6b')],'removeMarker:'+_0xd2124b['markerName']),null;const _0x118140=[_0x1a36('0x73')];return _0x596fc2&&_0x118140['push'](_0x1a36('0x13')),{'classes':_0x118140,'attributes':{'data-comment':_0x2a49d8}};}}),_0x56eb3e[_0x1a36('0x6c')][_0x1a36('0x1f')](_0x1a36('0x39'))['markerToData']({'model':'comment','view':(_0x128a52,{options:_0x29a0d0})=>{const _0x534555=_0x56eb3e[_0x1a36('0x66')][_0x1a36('0x53')](_0x503ed2),_0x1f3b17=_0x56eb3e[_0x1a36('0x7b')][_0x1a36('0x31')][_0x1a36('0x53')](_0x128a52),{id:_0x2ebf16,part:_0x122e72}=ot(_0x128a52);if(_0x1f3b17&&!_0x1f3b17[_0x1a36('0x1a')])return null;if(_0x29a0d0['ignoreResolvedComments']){const _0x518aa5=_0x534555[_0x1a36('0x71')](_0x2ebf16);if(_0x518aa5&&_0x518aa5[_0x1a36('0x67')])return null;}return{'group':'comment','name':_0x122e72?_0x2ebf16+':'+_0x122e72:_0x2ebf16};}}),_0x56eb3e['conversion'][_0x1a36('0x1f')](_0x1a36('0x1e'))[_0x1a36('0x17')]({'view':{'name':_0x1a36('0x4a'),'attributes':{'id':/^\w/}},'model':(_0x3042bd,{writer:_0x222e1a})=>_0x222e1a[_0x1a36('0x4c')](_0x1a36('0x5e'),{'data-name':_0x1a36('0x1d')+_0x3042bd[_0x1a36('0x18')]('id')})}),_0x56eb3e['conversion'][_0x1a36('0x1f')](_0x1a36('0x1e'))['dataToMarker']({'view':_0x1a36('0x4a')});}[_0x1a36('0xc')](){const _0x32238c=this[_0x1a36('0x4b')],_0x37d6b0=_0x32238c[_0x1a36('0x66')][_0x1a36('0x53')](_0x503ed2),_0x5bb5c7=new Set(),_0x3d3f8b=new Set();_0x32238c[_0x1a36('0x7b')][_0x1a36('0x33')][_0x1a36('0x1c')](_0x5aa0c6=>{let _0x1efe8f=!0x1;for(const {name:_0x1b174d,data:_0x54cb61}of _0x32238c[_0x1a36('0x7b')][_0x1a36('0x33')]['differ'][_0x1a36('0x15')]()){const {group:_0xc6f25e,id:_0x161107}=ot(_0x1b174d);let _0x13623c=_0x54cb61['newRange'];if(_0x1a36('0x4a')!==_0xc6f25e||!_0x13623c)continue;const _0x261051=_0x1a36('0x49')===_0x13623c[_0x1a36('0x0')]['rootName'];_0x261051||(_0x13623c=et(_0x13623c,_0x32238c[_0x1a36('0x7b')]),!_0x13623c||_0x13623c[_0x1a36('0x48')]||!_0x54cb61[_0x1a36('0x12')]||_0x13623c[_0x1a36('0x6f')](_0x54cb61[_0x1a36('0x12')]))?_0x32238c[_0x1a36('0x7b')][_0x1a36('0x54')](_0x13623c)&&!_0x261051?this[_0x1a36('0x40')]?_0x5bb5c7[_0x1a36('0x27')](_0x1b174d):this[_0x1a36('0x29')](_0x1b174d,_0x161107):(_0x3d3f8b['add'](_0x1b174d),_0x5bb5c7[_0x1a36('0x75')](_0x1b174d),_0x5aa0c6['removeMarker'](_0x1b174d),_0x1efe8f=!0x0):(_0x5aa0c6[_0x1a36('0x45')](_0x1b174d,{'range':_0x13623c}),_0x1efe8f=!0x0);}return _0x1efe8f;}),this['on'](_0x1a36('0x63'),(_0x229071,_0x5a7f1e,_0x44d35e)=>{if(!_0x44d35e&&_0x5bb5c7[_0x1a36('0x37')])for(const _0x1df4fa of _0x5bb5c7){const {id:_0x2685cd}=ot(_0x1df4fa);_0x5bb5c7['delete'](_0x1df4fa),_0x32238c['model']['markers'][_0x1a36('0x53')](_0x1df4fa)&&this[_0x1a36('0x29')](_0x1df4fa,_0x2685cd);}}),this[_0x1a36('0x57')](_0x32238c[_0x1a36('0x7b')][_0x1a36('0x33')],_0x1a36('0x2d'),(_0x5a05c7,_0xf87efa)=>{for(const {name:_0x15b973,data:{newRange:_0x46c62f}}of _0x32238c[_0x1a36('0x7b')][_0x1a36('0x33')][_0x1a36('0x7')][_0x1a36('0x15')]()){const {group:_0x2e3865,id:_0x276f5d}=ot(_0x15b973);if(_0x1a36('0x4a')!==_0x2e3865)continue;const _0x25d31b=_0x37d6b0[_0x1a36('0x71')](_0x276f5d),_0x238d73=this['hasMarkerForId'](_0x276f5d);_0x25d31b&&(_0x25d31b[_0x1a36('0x35')]||_0x32238c['editing'][_0x1a36('0x51')][_0x1a36('0x52')](_0x1a36('0x55'),()=>{const _0x3c3159=_0x32238c[_0x1a36('0x66')][_0x1a36('0x53')](_0x1cedf6),_0x13d13d=_0x37d6b0[_0x1a36('0xd')][_0x1a36('0x53')](_0x25d31b)[_0x1a36('0x51')];_0x3c3159[_0x1a36('0x64')](_0x13d13d)[_0x1a36('0x47')]();},{'priority':_0x1a36('0x20')}),_0x25d31b[_0x1a36('0x35')]=_0x238d73||!!_0x46c62f),_0x46c62f||(_0x3d3f8b[_0x1a36('0x27')](_0x15b973),_0x5bb5c7[_0x1a36('0x75')](_0x15b973));}if(_0xf87efa[_0x1a36('0x5b')])for(const _0x426afb of _0x3d3f8b){const {id:_0x4d61e2}=ot(_0x426afb),_0x120998=_0x37d6b0['getCommentThread'](_0x4d61e2),_0x34a90d=this[_0x1a36('0x2')](_0x4d61e2);_0x5bb5c7[_0x1a36('0x75')](_0x426afb),!_0x120998||_0x34a90d||_0x120998['unlinkedAt']||_0x120998['setUnlinkedAt'](new Date());}_0x3d3f8b[_0x1a36('0x3e')]();});}[_0x1a36('0x76')](_0x5f0e28){const _0x5f0643=this[_0x1a36('0x4b')],_0x5ac87e=this[_0x1a36('0x60')](_0x5f0e28);return _0x408bcc(_0x5f0643[_0x1a36('0x4f')],_0x5ac87e);}[_0x1a36('0x26')](_0x1ca299){const _0xca6f00=this[_0x1a36('0x60')](_0x1ca299);let _0x115494='',_0x45598f=!0x1;for(const _0x59aa8c of _0xca6f00){const _0x4e4b11=_0x59aa8c['getRange']();for(const _0xad2c94 of Array[_0x1a36('0x24')](_0x4e4b11[_0x1a36('0x50')]()))_0xad2c94['is'](_0x1a36('0x21'))?(_0x115494&&_0x45598f&&(_0x115494+='\x20',_0x45598f=!0x1),_0x115494+=_0xad2c94[_0x1a36('0x68')]):_0x45598f=!0x0;_0x45598f=!0x0;}return _0x115494['substring'](0x0,0x96);}[_0x1a36('0x3a')](_0x1e1fe0,_0x1dc524){const _0x18eef4=this[_0x1a36('0x4b')],_0x2d4a95=_0x18eef4['plugins']['get'](_0x503ed2);let _0x256d2c=_0x2d4a95['getCommentThread'](_0x1dc524);const _0x5a906c=_0x18eef4[_0x1a36('0xf')][_0x1a36('0x53')](_0x1a36('0x42')),_0x588d33=_0x18eef4['plugins'][_0x1a36('0x53')](_0x4bbe01);if(_0x256d2c&&(_0x256d2c[_0x1a36('0x5f')]&&_0x256d2c[_0x1a36('0x44')](null),_0x256d2c[_0x1a36('0x4')]))return _0x256d2c;return!this[_0x1a36('0x60')](_0x1dc524)[0x0][_0x1a36('0x46')]?_0x18eef4[_0x1a36('0x4f')][_0x1a36('0x51')][_0x1a36('0x52')](_0x1a36('0x55'),()=>{if(_0x2d4a95[_0x1a36('0x71')](_0x1dc524))return;const _0x33e56f=_0x18eef4[_0x1a36('0x66')][_0x1a36('0x53')](_0x1cedf6);_0x256d2c=_0x2d4a95[_0x1a36('0x7a')]({'channelId':_0x5a906c,'threadId':_0x1dc524,'target':()=>this[_0x1a36('0x76')](_0x1dc524),'context':{'type':_0x1a36('0x41'),'value':this[_0x1a36('0x26')](_0x1dc524)}});const _0x207b6a=_0x2d4a95[_0x1a36('0xd')]['get'](_0x256d2c)[_0x1a36('0x51')],_0x4f8887=_0x33e56f[_0x1a36('0x64')](_0x207b6a);_0x4f8887&&_0x588d33['registerAnnotation'](_0x4f8887);},{'priority':_0x1a36('0x20')}):_0x2d4a95[_0x1a36('0x1b')]({'channelId':_0x5a906c,'threadId':_0x1dc524})[_0x1a36('0x1')](_0x97ec5d=>{if(_0x1a36('0x6a')!==_0x18eef4[_0x1a36('0x38')]){if(_0x256d2c=_0x97ec5d,_0x256d2c&&!_0x256d2c[_0x1a36('0x4')]){const _0x3b1cf5=_0x256d2c[_0x1a36('0x77')](()=>this[_0x1a36('0x76')](_0x1dc524));_0x588d33[_0x1a36('0x6')](_0x3b1cf5),_0x256d2c[_0x1a36('0x67')]&&this[_0x1a36('0x2b')](_0x1dc524);}else{if(!_0x256d2c){const _0x2037d6=this['getAllMarkersForId'](_0x1dc524);_0x18eef4[_0x1a36('0x7b')][_0x1a36('0x2d')](_0x59d333=>{for(const _0x4f148d of _0x2037d6)_0x59d333[_0x1a36('0x59')](_0x4f148d);});}}}}),_0x256d2c;}[_0x1a36('0x29')](_0x180305,_0x308a35){const _0x444e0a=this[_0x1a36('0x3a')](_0x180305,_0x308a35);_0x444e0a&&!_0x444e0a[_0x1a36('0x9')]&&_0x444e0a[_0x1a36('0x3d')]({'type':_0x1a36('0x41'),'value':this['_getTextContext'](_0x308a35)});}[_0x1a36('0x5c')](){const _0x39f7d6=this['editor'];_0x3b914d(_0x39f7d6[_0x1a36('0x7b')],({left:_0x1fb4e5,entered:_0x19602f})=>{const _0x484e69=[];for(const _0x1889f2 of _0x1fb4e5)if(rt(_0x1889f2)){_0x484e69[_0x1a36('0xb')](_0xe61512(_0x39f7d6[_0x1a36('0x4d')],_0x1a36('0x6d')));break;}for(const _0x3fa106 of _0x19602f)if(rt(_0x3fa106)){_0x484e69[_0x1a36('0xb')](_0xe61512(_0x39f7d6[_0x1a36('0x4d')],_0x1a36('0x2c')));break;}_0x484e69[_0x1a36('0x32')]&&_0x39f7d6['ui'][_0x1a36('0x2f')][_0x1a36('0x16')](_0x1a36('0x62'),_0x484e69['join']('\x20'));});}}function tt(_0x4cfab0,_0x1fa2cb){return _0x1fa2cb?_0x4cfab0+':'+_0x1fa2cb:_0x4cfab0;}function ot(_0x21eb71){const _0x39536a=_0x21eb71[_0x1a36('0x3f')](':');return{'group':_0x39536a[0x0],'id':_0x39536a[0x1],'part':_0x39536a[0x2]};}function et(_0x10d1d5,_0x21f3a2){const _0x5f0524=_0x21f3a2['schema'],_0x38238f=_0x21f3a2['createRange'](_0x10d1d5[_0x1a36('0x2e')]);for(const _0x590146 of _0x10d1d5[_0x1a36('0x3c')]()){const {type:_0x32d560,item:_0x40b550,nextPosition:_0x9f7a86}=_0x590146;if(_0x1a36('0x41')===_0x32d560||_0x5f0524[_0x1a36('0x72')](_0x40b550)){const _0x40b30c=_0x21f3a2[_0x1a36('0x43')](_0x40b550);_0x38238f[_0x1a36('0x48')]&&(_0x38238f[_0x1a36('0x2e')]=_0x40b30c),_0x38238f[_0x1a36('0x36')]=_0x9f7a86;}}return _0x38238f;}function rt(_0x5de470){return _0x1a36('0x4a')===ot(_0x5de470['name'])[_0x1a36('0x7d')];}
@@ -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}.