@ckeditor/ckeditor5-comments 40.1.0 → 41.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/CHANGELOG.md +19 -19
  2. package/LICENSE.md +1 -1
  3. package/README.md +1 -1
  4. package/build/comments.js +2 -2
  5. package/build/translations/gl.js +1 -1
  6. package/build/translations/sr-latn.js +1 -1
  7. package/build/translations/ug.js +1 -1
  8. package/lang/translations/af.po +1 -1
  9. package/lang/translations/ar.po +1 -1
  10. package/lang/translations/bg.po +1 -1
  11. package/lang/translations/bn.po +1 -1
  12. package/lang/translations/bs.po +1 -1
  13. package/lang/translations/ca.po +1 -1
  14. package/lang/translations/cs.po +1 -1
  15. package/lang/translations/da.po +1 -1
  16. package/lang/translations/de-ch.po +1 -1
  17. package/lang/translations/de.po +1 -1
  18. package/lang/translations/el.po +1 -1
  19. package/lang/translations/en-au.po +1 -1
  20. package/lang/translations/en.po +1 -1
  21. package/lang/translations/es-co.po +1 -1
  22. package/lang/translations/es.po +1 -1
  23. package/lang/translations/et.po +1 -1
  24. package/lang/translations/fa.po +1 -1
  25. package/lang/translations/fi.po +1 -1
  26. package/lang/translations/fr.po +1 -1
  27. package/lang/translations/gl.po +3 -3
  28. package/lang/translations/he.po +1 -1
  29. package/lang/translations/hi.po +1 -1
  30. package/lang/translations/hr.po +1 -1
  31. package/lang/translations/hu.po +1 -1
  32. package/lang/translations/id.po +1 -1
  33. package/lang/translations/it.po +1 -1
  34. package/lang/translations/ja.po +1 -1
  35. package/lang/translations/jv.po +1 -1
  36. package/lang/translations/ko.po +1 -1
  37. package/lang/translations/lt.po +1 -1
  38. package/lang/translations/lv.po +1 -1
  39. package/lang/translations/ms.po +1 -1
  40. package/lang/translations/nl.po +1 -1
  41. package/lang/translations/no.po +1 -1
  42. package/lang/translations/pl.po +1 -1
  43. package/lang/translations/pt-br.po +1 -1
  44. package/lang/translations/pt.po +1 -1
  45. package/lang/translations/ro.po +1 -1
  46. package/lang/translations/ru.po +1 -1
  47. package/lang/translations/sk.po +1 -1
  48. package/lang/translations/sq.po +1 -1
  49. package/lang/translations/sr-latn.po +4 -4
  50. package/lang/translations/sr.po +1 -1
  51. package/lang/translations/sv.po +1 -1
  52. package/lang/translations/th.po +1 -1
  53. package/lang/translations/tk.po +1 -1
  54. package/lang/translations/tr.po +1 -1
  55. package/lang/translations/tt.po +1 -1
  56. package/lang/translations/ug.po +11 -11
  57. package/lang/translations/uk.po +1 -1
  58. package/lang/translations/ur.po +1 -1
  59. package/lang/translations/vi.po +1 -1
  60. package/lang/translations/zh-cn.po +1 -1
  61. package/lang/translations/zh.po +1 -1
  62. package/package.json +4 -3
  63. package/src/annotations/annotation.d.ts +7 -7
  64. package/src/annotations/annotation.js +2 -2
  65. package/src/annotations/annotationcollection.d.ts +4 -4
  66. package/src/annotations/annotationcollection.js +2 -2
  67. package/src/annotations/annotations.d.ts +7 -7
  68. package/src/annotations/annotations.js +2 -2
  69. package/src/annotations/annotationsuis.d.ts +6 -6
  70. package/src/annotations/annotationsuis.js +2 -2
  71. package/src/annotations/editorannotations.d.ts +5 -5
  72. package/src/annotations/editorannotations.js +2 -2
  73. package/src/annotations/inlineannotations.d.ts +7 -7
  74. package/src/annotations/inlineannotations.js +2 -2
  75. package/src/annotations/narrowsidebar.d.ts +7 -7
  76. package/src/annotations/narrowsidebar.js +2 -2
  77. package/src/annotations/sidebar.d.ts +6 -6
  78. package/src/annotations/sidebar.js +2 -2
  79. package/src/annotations/view/annotationcounterbuttonview.d.ts +3 -3
  80. package/src/annotations/view/annotationcounterbuttonview.js +2 -2
  81. package/src/annotations/view/annotationview.d.ts +3 -3
  82. package/src/annotations/view/annotationview.js +2 -2
  83. package/src/annotations/view/sidebaritemview.d.ts +3 -3
  84. package/src/annotations/view/sidebaritemview.js +2 -2
  85. package/src/annotations/view/sidebarview.d.ts +3 -3
  86. package/src/annotations/view/sidebarview.js +2 -2
  87. package/src/annotations/widesidebar.d.ts +6 -6
  88. package/src/annotations/widesidebar.js +2 -2
  89. package/src/augmentation.d.ts +2 -2
  90. package/src/augmentation.js +1 -1
  91. package/src/comments/addcommentthreadcommand.d.ts +2 -2
  92. package/src/comments/addcommentthreadcommand.js +2 -2
  93. package/src/comments/commentsarchive.d.ts +5 -5
  94. package/src/comments/commentsarchive.js +2 -2
  95. package/src/comments/commentsarchiveui.d.ts +6 -6
  96. package/src/comments/commentsarchiveui.js +2 -2
  97. package/src/comments/commentsediting.d.ts +7 -7
  98. package/src/comments/commentsediting.js +2 -2
  99. package/src/comments/commentsrepository.d.ts +13 -12
  100. package/src/comments/commentsrepository.js +2 -2
  101. package/src/comments/commentsui.d.ts +6 -6
  102. package/src/comments/commentsui.js +2 -2
  103. package/src/comments/integrations/commentsrestrictededitingmode.d.ts +2 -2
  104. package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
  105. package/src/comments/integrations/importword.d.ts +2 -2
  106. package/src/comments/integrations/importword.js +2 -2
  107. package/src/comments/ui/commenteditor/commenteditor.d.ts +5 -5
  108. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  109. package/src/comments/ui/commenteditor/commenteditorui.d.ts +4 -4
  110. package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
  111. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +5 -5
  112. package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
  113. package/src/comments/ui/commentthreadcontroller.d.ts +5 -5
  114. package/src/comments/ui/commentthreadcontroller.js +2 -2
  115. package/src/comments/ui/view/basecommentthreadview.d.ts +9 -9
  116. package/src/comments/ui/view/basecommentthreadview.js +2 -2
  117. package/src/comments/ui/view/basecommentview.d.ts +5 -5
  118. package/src/comments/ui/view/basecommentview.js +2 -2
  119. package/src/comments/ui/view/collapsedcommentsview.d.ts +3 -3
  120. package/src/comments/ui/view/collapsedcommentsview.js +2 -2
  121. package/src/comments/ui/view/commentcontentview.d.ts +3 -3
  122. package/src/comments/ui/view/commentcontentview.js +2 -2
  123. package/src/comments/ui/view/commentinputview.d.ts +5 -5
  124. package/src/comments/ui/view/commentinputview.js +2 -2
  125. package/src/comments/ui/view/commentsarchiveview.d.ts +4 -4
  126. package/src/comments/ui/view/commentsarchiveview.js +2 -2
  127. package/src/comments/ui/view/commentslistview.d.ts +6 -6
  128. package/src/comments/ui/view/commentslistview.js +2 -2
  129. package/src/comments/ui/view/commentthreadheaderview.d.ts +4 -4
  130. package/src/comments/ui/view/commentthreadheaderview.js +2 -2
  131. package/src/comments/ui/view/commentthreadinputview.d.ts +6 -6
  132. package/src/comments/ui/view/commentthreadinputview.js +2 -2
  133. package/src/comments/ui/view/commentthreadview.d.ts +8 -8
  134. package/src/comments/ui/view/commentthreadview.js +2 -2
  135. package/src/comments/ui/view/commentview.d.ts +9 -9
  136. package/src/comments/ui/view/commentview.js +2 -2
  137. package/src/comments.d.ts +11 -11
  138. package/src/comments.js +2 -2
  139. package/src/commentsonly.d.ts +3 -3
  140. package/src/commentsonly.js +2 -2
  141. package/src/config.d.ts +4 -4
  142. package/src/config.js +1 -1
  143. package/src/index.d.ts +21 -21
  144. package/src/index.js +2 -2
  145. package/src/utils/common-translations.d.ts +2 -2
  146. package/src/utils/common-translations.js +2 -2
  147. package/src/utils/createmutationobserver.d.ts +1 -1
  148. package/src/utils/createmutationobserver.js +2 -2
  149. package/theme/annotation-inline.css +1 -1
  150. package/theme/annotation.css +1 -1
  151. package/theme/comment.css +1 -1
  152. package/theme/commentinput.css +1 -1
  153. package/theme/commentmarker.css +1 -1
  154. package/theme/commentsarchive.css +2 -2
  155. package/theme/commentthread.css +1 -1
  156. package/theme/icons/add-comment.svg +1 -1
  157. package/theme/icons/comments-archive.svg +1 -1
  158. package/theme/icons/edit-comment.svg +1 -1
  159. package/theme/icons/remove-comment.svg +1 -1
  160. package/theme/sidebar-narrow.css +1 -1
  161. package/theme/sidebar.css +1 -1
@@ -1,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 _0x42e6=['add','addCommentThread','isActive','findIndex','stopListening','remove','requires','getCommentThread','has','archivedAt','length','CommentsArchive','context','pluginName','archivedThreads','highest','change:archivedAt','init','listenTo','plugins','_calculatePosition','collection','activate'];(function(_0x5e7572,_0x42e6ff){const _0x3b1c85=function(_0x247b23){while(--_0x247b23){_0x5e7572['push'](_0x5e7572['shift']());}};_0x3b1c85(++_0x42e6ff);}(_0x42e6,0x1f1));const _0x3b1c=function(_0x5e7572,_0x42e6ff){_0x5e7572=_0x5e7572-0x0;let _0x3b1c85=_0x42e6[_0x5e7572];return _0x3b1c85;};import{ContextPlugin as _0x40eb32}from'ckeditor5/src/core';import{Collection as _0x80fa6}from'ckeditor5/src/utils';import _0x445a7c from'./commentsrepository';import _0x32fde3 from'../annotations/annotations';export default class p extends _0x40eb32{static get[_0x3b1c('0x16')](){return _0x3b1c('0x14');}static get[_0x3b1c('0xf')](){return[_0x445a7c,_0x32fde3];}constructor(_0x4fa508){super(_0x4fa508),this[_0x3b1c('0x0')]=new _0x80fa6();}[_0x3b1c('0x3')](){const _0x192b0b=this[_0x3b1c('0x15')],_0x45c017=_0x192b0b[_0x3b1c('0x5')]['get'](_0x445a7c),_0x3d29de=_0x192b0b['plugins']['get'](_0x32fde3);this[_0x3b1c('0x4')](_0x45c017,_0x3b1c('0xa'),(_0x51fe00,{threadId:_0x834d6f})=>{const _0x83bd3f=_0x45c017['getCommentThread'](_0x834d6f);_0x83bd3f[_0x3b1c('0x12')]&&this[_0x3b1c('0x0')][_0x3b1c('0x9')](_0x83bd3f,this[_0x3b1c('0x6')](_0x83bd3f[_0x3b1c('0x12')])),this[_0x3b1c('0x4')](_0x83bd3f,_0x3b1c('0x2'),(_0x1cd244,_0x5227ff,_0x3ae91d)=>{_0x3ae91d?this[_0x3b1c('0x0')]['has'](_0x83bd3f)||this[_0x3b1c('0x0')][_0x3b1c('0x9')](_0x83bd3f,this['_calculatePosition'](_0x83bd3f[_0x3b1c('0x12')])):this['archivedThreads']['has'](_0x83bd3f)&&this[_0x3b1c('0x0')][_0x3b1c('0xe')](_0x83bd3f);});}),this[_0x3b1c('0x4')](_0x45c017,'removeCommentThread',(_0x2d1094,{threadId:_0x7c858e})=>{const _0x7cf5c=_0x45c017[_0x3b1c('0x10')](_0x7c858e);this[_0x3b1c('0xd')](_0x7cf5c),this[_0x3b1c('0x0')][_0x3b1c('0x11')](_0x7cf5c)&&this[_0x3b1c('0x0')][_0x3b1c('0xe')](_0x7cf5c);},{'priority':_0x3b1c('0x1')}),this['listenTo'](_0x3d29de[_0x3b1c('0x7')],'focus',(_0x1c64b6,_0x4e7452)=>{_0x4e7452[_0x3b1c('0xb')]=!0x0,_0x3d29de[_0x3b1c('0x8')](_0x4e7452);});}['_calculatePosition'](_0x45747b){const _0x2ef519=[...this[_0x3b1c('0x0')]][_0x3b1c('0xc')](_0x14aadb=>_0x14aadb[_0x3b1c('0x12')]<_0x45747b);return _0x2ef519>-0x1?_0x2ef519:this[_0x3b1c('0x0')][_0x3b1c('0x13')];}}
23
+ const _0x3f13=['highest','get','has','pluginName','getCommentThread','removeCommentThread','archivedAt','archivedThreads','plugins','add','length','_calculatePosition','activate','listenTo','requires','change:archivedAt','CommentsArchive','stopListening','isActive','context','focus','init'];(function(_0x265e85,_0x3f13cd){const _0x75c1a0=function(_0x54ffc8){while(--_0x54ffc8){_0x265e85['push'](_0x265e85['shift']());}};_0x75c1a0(++_0x3f13cd);}(_0x3f13,0x105));const _0x75c1=function(_0x265e85,_0x3f13cd){_0x265e85=_0x265e85-0x0;let _0x75c1a0=_0x3f13[_0x265e85];return _0x75c1a0;};import{ContextPlugin as _0x5c03d8}from'ckeditor5/src/core.js';import{Collection as _0x5071bf}from'ckeditor5/src/utils.js';import _0x418ad5 from'./commentsrepository.js';import _0x318b6e from'../annotations/annotations.js';export default class p extends _0x5c03d8{static get[_0x75c1('0x6')](){return _0x75c1('0x13');}static get[_0x75c1('0x11')](){return[_0x418ad5,_0x318b6e];}constructor(_0x1351c6){super(_0x1351c6),this[_0x75c1('0xa')]=new _0x5071bf();}[_0x75c1('0x2')](){const _0x488b42=this[_0x75c1('0x0')],_0x1a5132=_0x488b42[_0x75c1('0xb')][_0x75c1('0x4')](_0x418ad5),_0x229c47=_0x488b42[_0x75c1('0xb')][_0x75c1('0x4')](_0x318b6e);this[_0x75c1('0x10')](_0x1a5132,'addCommentThread',(_0x2f37d6,{threadId:_0x42872b})=>{const _0x4531d0=_0x1a5132[_0x75c1('0x7')](_0x42872b);_0x4531d0[_0x75c1('0x9')]&&this['archivedThreads'][_0x75c1('0xc')](_0x4531d0,this[_0x75c1('0xe')](_0x4531d0[_0x75c1('0x9')])),this[_0x75c1('0x10')](_0x4531d0,_0x75c1('0x12'),(_0x5936e5,_0x553cfb,_0x4155fb)=>{_0x4155fb?this['archivedThreads']['has'](_0x4531d0)||this[_0x75c1('0xa')][_0x75c1('0xc')](_0x4531d0,this[_0x75c1('0xe')](_0x4531d0[_0x75c1('0x9')])):this[_0x75c1('0xa')][_0x75c1('0x5')](_0x4531d0)&&this[_0x75c1('0xa')]['remove'](_0x4531d0);});}),this[_0x75c1('0x10')](_0x1a5132,_0x75c1('0x8'),(_0x367dc0,{threadId:_0x49acea})=>{const _0x358f42=_0x1a5132[_0x75c1('0x7')](_0x49acea);this[_0x75c1('0x14')](_0x358f42),this['archivedThreads']['has'](_0x358f42)&&this[_0x75c1('0xa')]['remove'](_0x358f42);},{'priority':_0x75c1('0x3')}),this[_0x75c1('0x10')](_0x229c47['collection'],_0x75c1('0x1'),(_0x2ad998,_0x58d41f)=>{_0x58d41f[_0x75c1('0x15')]=!0x0,_0x229c47[_0x75c1('0xf')](_0x58d41f);});}[_0x75c1('0xe')](_0x1ce6ce){const _0x3814f6=[...this[_0x75c1('0xa')]]['findIndex'](_0x2ac663=>_0x2ac663[_0x75c1('0x9')]<_0x1ce6ce);return _0x3814f6>-0x1?_0x3814f6:this['archivedThreads'][_0x75c1('0xd')];}}
@@ -1,5 +1,5 @@
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
  /**
@@ -7,11 +7,11 @@
7
7
  * @publicApi
8
8
  */
9
9
  import '../../theme/commentsarchive.css';
10
- import { Plugin, type Editor } from 'ckeditor5/src/core';
11
- import { ViewCollection } from 'ckeditor5/src/ui';
12
- import CommentsArchiveView from './ui/view/commentsarchiveview';
13
- import CommentsArchive from './commentsarchive';
14
- import type AnnotationView from '../annotations/view/annotationview';
10
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
11
+ import { ViewCollection } from 'ckeditor5/src/ui.js';
12
+ import CommentsArchiveView from './ui/view/commentsarchiveview.js';
13
+ import CommentsArchive from './commentsarchive.js';
14
+ import type AnnotationView from '../annotations/view/annotationview.js';
15
15
  /**
16
16
  * Creates comments archive {@link module:ui/dropdown/dropdownview~DropdownView ui dropdown} and binds with
17
17
  * archived comment thread annotation views.
@@ -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 _0x3d25=['change:isOpen','locale','requires','position','panelView','indexOf','_handleAnnotationFocusableElements','commentsArchive','config','add','focusableElements','plugins','_calculatePosition','splice','classList','pluginName','editor','listenTo','_pendingThreads','find','_threadToController','annotationViews','contains','buttonView','stopListening','archivedThreads','ck-body','_createArchiveUIDropdown','init','getByInnerView','filter','children','_visibleAnnotations','get','Annotations','commentsArchiveView','focusTracker','remove','channelId','componentFactory','isVisible','collaboration.channelId','CommentsArchiveUI','view','innerView','collection','CommentsRepository','push','extendTemplate','COMMENTS_ARCHIVE','findIndex'];(function(_0x416842,_0x3d2571){const _0x59d908=function(_0x4d9b5a){while(--_0x4d9b5a){_0x416842['push'](_0x416842['shift']());}};_0x59d908(++_0x3d2571);}(_0x3d25,0x177));const _0x59d9=function(_0x416842,_0x3d2571){_0x416842=_0x416842-0x0;let _0x59d908=_0x3d25[_0x416842];return _0x59d908;};import'../../theme/commentsarchive.css';import{Plugin as _0x246a99}from'ckeditor5/src/core';import{createDropdown as _0x5c697f,ViewCollection as _0x41bbe6}from'ckeditor5/src/ui';import _0x232463 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x376a89}from'../utils/common-translations';import _0x2306fa from'./ui/view/commentsarchiveview';import _0x8784b1 from'./commentsarchive';export default class a extends _0x246a99{static get[_0x59d9('0x30')](){return _0x59d9('0x18');}static get[_0x59d9('0x23')](){return[_0x8784b1];}constructor(_0x4385c0){super(_0x4385c0),this[_0x59d9('0x3')]=new _0x41bbe6(),this[_0x59d9('0x0')]=[];}[_0x59d9('0xa')](){this[_0x59d9('0x31')]['ui'][_0x59d9('0x15')][_0x59d9('0x2a')](_0x59d9('0x28'),()=>this[_0x59d9('0x9')]());const _0x34111d=this['editor']['plugins'][_0x59d9('0xf')](_0x8784b1),_0x48eeb1=this[_0x59d9('0x31')]['plugins']['get'](_0x59d9('0x10')),_0x5297a9=this[_0x59d9('0x31')][_0x59d9('0x2c')][_0x59d9('0xf')](_0x59d9('0x1c'));this[_0x59d9('0x32')](_0x34111d[_0x59d9('0x7')],_0x59d9('0x2a'),(_0x5441d4,_0x131ead)=>{const _0x4bb50d=this[_0x59d9('0x31')][_0x59d9('0x29')]['get'](_0x59d9('0x17'));if(!_0x4bb50d||_0x131ead[_0x59d9('0x14')]===_0x4bb50d){const _0x22e54d=this[_0x59d9('0x2d')](_0x131ead['archivedAt']),_0xdf384d=_0x5297a9[_0x59d9('0x2')][_0x59d9('0xf')](_0x131ead);if(!_0xdf384d)return void this[_0x59d9('0x0')][_0x59d9('0x1d')]({'thread':_0x131ead,'position':_0x22e54d});const _0x2dc2da=_0x48eeb1[_0x59d9('0xb')](_0xdf384d[_0x59d9('0x19')]);_0x2dc2da[_0x59d9('0x16')]&&_0x48eeb1[_0x59d9('0xe')][_0x59d9('0x13')](_0x2dc2da),this[_0x59d9('0x3')][_0x59d9('0x2a')](_0x2dc2da[_0x59d9('0x19')],_0x22e54d);}}),this['listenTo'](_0x48eeb1[_0x59d9('0x1b')],_0x59d9('0x2a'),(_0x1552e5,_0xec8925)=>{const _0x181272=this[_0x59d9('0x0')][_0x59d9('0x1')](({thread:_0x356e7d})=>{const _0x59970e=_0x5297a9[_0x59d9('0x2')][_0x59d9('0xf')](_0x356e7d);return _0x59970e&&_0xec8925[_0x59d9('0x1a')]===_0x59970e['view'];});_0x181272&&(this[_0x59d9('0x3')]['add'](_0xec8925['view'],_0x181272[_0x59d9('0x24')]),this[_0x59d9('0x0')][_0x59d9('0x2e')](this[_0x59d9('0x0')][_0x59d9('0x26')](_0x181272),0x1));}),this[_0x59d9('0x32')](_0x34111d[_0x59d9('0x7')],_0x59d9('0x13'),(_0x10f8fa,_0x522a82)=>{const _0x41d933=this[_0x59d9('0x31')][_0x59d9('0x29')][_0x59d9('0xf')](_0x59d9('0x17'));if(!_0x41d933||_0x522a82[_0x59d9('0x14')]===_0x41d933){const _0x4bd726=_0x5297a9[_0x59d9('0x2')]['get'](_0x522a82),_0x5413ab=_0x48eeb1[_0x59d9('0xb')](_0x4bd726['view']);this[_0x59d9('0x3')]['remove'](_0x5413ab['view']),this[_0x59d9('0x6')](_0x5413ab['focusableElements']);}});}[_0x59d9('0x27')](_0x2ebca8,_0x490ecb){for(const _0xd55fa2 of _0x490ecb[_0x59d9('0x2b')])_0xd55fa2['classList'][_0x59d9('0x4')]('ck-body')&&_0x2ebca8[_0x59d9('0x12')][_0x59d9('0x2a')](_0xd55fa2);this[_0x59d9('0x32')](_0x490ecb[_0x59d9('0x2b')],_0x59d9('0x2a'),(_0x4c6a8f,_0x3e0da1)=>{_0x3e0da1['classList'][_0x59d9('0x4')](_0x59d9('0x8'))&&_0x2ebca8[_0x59d9('0x12')]['add'](_0x3e0da1);}),this[_0x59d9('0x32')](_0x490ecb['focusableElements'],_0x59d9('0x13'),(_0x5d1236,_0x2d9a4a)=>{_0x2d9a4a[_0x59d9('0x2f')][_0x59d9('0x4')](_0x59d9('0x8'))&&_0x2ebca8['focusTracker'][_0x59d9('0x13')](_0x2d9a4a);});}[_0x59d9('0x2d')](_0x507800){const _0x7751cd=this[_0x59d9('0x31')][_0x59d9('0x29')][_0x59d9('0xf')](_0x59d9('0x17')),_0x1dc055=[...this['editor'][_0x59d9('0x2c')][_0x59d9('0xf')](_0x8784b1)['archivedThreads']][_0x59d9('0xc')](_0x5ba931=>_0x5ba931[_0x59d9('0x14')]===_0x7751cd)[_0x59d9('0x20')](_0x22b29d=>_0x22b29d['archivedAt']<_0x507800);return _0x1dc055>-0x1?_0x1dc055-0x1:this[_0x59d9('0x3')]['length'];}[_0x59d9('0x9')](){const _0x44821e=this['editor'],_0x189d9d=this[_0x59d9('0x31')][_0x59d9('0x2c')][_0x59d9('0xf')](_0x59d9('0x10')),_0x4f6ef5=_0x5c697f(_0x44821e[_0x59d9('0x22')]);_0x4f6ef5[_0x59d9('0x5')]['set']({'icon':_0x232463,'label':_0x376a89(_0x44821e['locale'],_0x59d9('0x1f')),'tooltip':!0x0}),_0x4f6ef5[_0x59d9('0x25')][_0x59d9('0x1e')]({'attributes':{'class':'ck-comments-archive-dropdown'}}),_0x4f6ef5['on'](_0x59d9('0x21'),(_0x56f59,_0x3da6c6,_0x4290bd)=>{this['commentsArchiveView']||(this[_0x59d9('0x11')]=new _0x2306fa(_0x44821e[_0x59d9('0x22')],this[_0x59d9('0x3')])),_0x4290bd?_0x4f6ef5['panelView'][_0x59d9('0xd')]['add'](this[_0x59d9('0x11')]):_0x4f6ef5[_0x59d9('0x25')][_0x59d9('0xd')][_0x59d9('0x13')](this[_0x59d9('0x11')]);});for(const _0x231a28 of this[_0x59d9('0x3')]){const _0x40cd23=_0x189d9d[_0x59d9('0xb')](_0x231a28['mainView']);this[_0x59d9('0x27')](_0x4f6ef5,_0x40cd23);}return _0x4f6ef5['listenTo'](this[_0x59d9('0x3')],_0x59d9('0x2a'),(_0x416c94,_0x1d1ec4)=>{const _0x46bb0c=_0x189d9d['getByInnerView'](_0x1d1ec4['mainView']);this[_0x59d9('0x27')](_0x4f6ef5,_0x46bb0c);}),_0x4f6ef5[_0x59d9('0x32')](this['annotationViews'],'remove',(_0x545bcb,_0x2af550)=>{const _0x3bd62b=_0x189d9d[_0x59d9('0xb')](_0x2af550['mainView']);for(const _0x4edd4f of _0x3bd62b[_0x59d9('0x2b')])_0x4edd4f[_0x59d9('0x2f')][_0x59d9('0x4')](_0x59d9('0x8'))&&_0x4f6ef5[_0x59d9('0x12')][_0x59d9('0x13')](_0x4edd4f);}),_0x4f6ef5;}}
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 _0x37b7=['archivedAt','$marker','unlinkedAt','isLocal','ck-comment-marker--active','_hasTargetInContent','getAllMarkersForId','refreshVisibility','getWalker','createRange','name','elementToElement','once','push','focus','add','comment','enqueueChange','change:isReadOnly','openNewCommentThread','dataToMarker','schema','from','updateMarker','setUnlinkedAt','rootName','listenTo','$graveyard','data','ready','createPositionBefore','resolveCommentThread','_handleThreadMarker','view','isEqual','_initAriaMarkerChangeAnnouncements','get','clear','markerName','hasContent','init','config','set','removeMarker:','low','addComment','requires','for','collaboration.channelId','pluginName','announce','removeCommentThread','switchReadOnly','registerAnnotation','group','text','_attachMarkerToThread','start','plugins','activeMarker','editor','isThreadsLoadingPaused','registerPostFixer','getCommentThread','destroy','managedUsingOperations','comments','document','ariaLiveAnnouncer','substring','scrollToThreadMarker','ck-comment-marker','root','context','isResolved','LEAVE_COMMENT_ANNOUNCEMENT','split','join','isObject','editing','reconvertMarker','setContext','change:isThreadsLoadingPaused','consume','affectsData','_attachResolvedThread','model','markerToData','differ','ENTER_COMMENT_ANNOUNCEMENT','length','render','state','delete','_getTargetForId','conversion','_detachCommentThread','upcast','end','attachTo','consumable','locale','markers','getCommentThreads','_reconvertMarkers','fetchCommentThread','change','isCollapsed','_handleMarkerAddAndRemove','size','newRange','CommentsEditing','comment:','addCommentThread','removeMarker','_initializeMarkerConverters','hasMarkerForId','item'];(function(_0x2cfa16,_0x37b714){const _0x21891a=function(_0x26c97e){while(--_0x26c97e){_0x2cfa16['push'](_0x2cfa16['shift']());}};_0x21891a(++_0x37b714);}(_0x37b7,0x121));const _0x2189=function(_0x2cfa16,_0x37b714){_0x2cfa16=_0x2cfa16-0x0;let _0x21891a=_0x37b7[_0x2cfa16];return _0x21891a;};import{Plugin as _0x535a35}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x2cfaf0}from'ckeditor5/src/utils';import _0x245908 from'./commentsrepository';import _0x304944 from'./addcommentthreadcommand';import{surroundingMarkersDetector as _0x3054af,getAllMarkersDomElementsSorted as _0xb81199}from'ckeditor5-collaboration/src/collaboration-core';import _0x54592a from'../annotations/editorannotations';import _0x2797d9 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x17dbd6 from'./integrations/importword';import _0x435ced from'../annotations/annotations';import{getTranslation as _0x21d138}from'../utils/common-translations';export default class r extends _0x535a35{static get[_0x2189('0x6f')](){return[_0x245908,_0x54592a,_0x2797d9,_0x17dbd6];}static get[_0x2189('0x72')](){return _0x2189('0x3a');}constructor(_0x1a492c){super(_0x1a492c),this[_0x2189('0x6b')](_0x2189('0x8'),!0x0),_0x1a492c[_0x2189('0x5d')][_0x2189('0x4d')](_0x2189('0x5e'),()=>this['isThreadsLoadingPaused']=!0x1),this['set'](_0x2189('0x6'),null),this['on']('change:activeMarker',(_0x14ae39,_0x1d19d3,_0x4a9abe,_0x5ca27e)=>{const _0x344e9a=_0x4a9abe?ot(_0x4a9abe)['id']:null;if(_0x1a492c[_0x2189('0x21')]['change'](()=>{if(_0x344e9a){const _0x2ca366=this[_0x2189('0x47')](_0x344e9a);for(const _0x2e9868 of _0x2ca366)_0x1a492c[_0x2189('0x1a')][_0x2189('0x1b')](_0x2e9868);}if(_0x5ca27e){const {id:_0x2ced0e}=ot(_0x5ca27e),_0x483c11=this[_0x2189('0x47')](_0x2ced0e);for(const _0x2940bc of _0x483c11)_0x1a492c['editing'][_0x2189('0x1b')](_0x2940bc);}}),_0x344e9a){const _0x4423f6=_0x1a492c[_0x2189('0x5')][_0x2189('0x65')](_0x245908)[_0x2189('0xa')](_0x344e9a);_0x4423f6&&_0x4423f6[_0x2189('0x15')]&&this['scrollToThreadMarker'](_0x344e9a);}}),this[_0x2189('0x64')]();}[_0x2189('0x69')](){const _0x555703=this[_0x2189('0x7')],_0x83302d=_0x555703['plugins'][_0x2189('0x65')](_0x245908),_0x4906b0=_0x555703['config']['get'](_0x2189('0x71'));_0x555703['commands'][_0x2189('0x50')]('addCommentThread',new _0x304944(_0x555703)),this[_0x2189('0x5b')](_0x555703,_0x2189('0x53'),(_0x321f37,_0x28ea33,_0x185ac8)=>{_0x83302d[_0x2189('0x75')](_0x185ac8,_0x555703['config'][_0x2189('0x65')](_0x2189('0x71')));}),this[_0x2189('0x5b')](_0x83302d,tt(_0x2189('0x3c'),_0x4906b0),(_0x5d974e,{threadId:_0x430e69})=>{const _0x3e73fc=this['editor'][_0x2189('0x5')][_0x2189('0x65')](_0x245908)[_0x2189('0xa')](_0x430e69);_0x3e73fc&&_0x3e73fc[_0x2189('0x41')]&&this['_attachResolvedThread'](_0x430e69);}),this['listenTo'](_0x83302d,tt(_0x2189('0x74'),_0x4906b0),(_0x4f5ea5,{threadId:_0x3e866e})=>{_0x555703[_0x2189('0x21')]['enqueueChange']({'isUndoable':!0x1},_0x56147a=>{const _0x5f22ce=this[_0x2189('0x47')](_0x3e866e);for(const _0x1c7d2b of _0x5f22ce)_0x56147a['removeMarker'](_0x1c7d2b);});}),this['listenTo'](_0x83302d,tt(_0x2189('0x60'),_0x4906b0),(_0x30db10,{threadId:_0x2f5563})=>{(this['_attachResolvedThread'](_0x2f5563),this['_reconvertMarkers'](_0x2f5563),this[_0x2189('0x7')][_0x2189('0x1a')]['view']['hasDomSelection'])&&(this[_0x2189('0x7')][_0x2189('0x5')][_0x2189('0x65')](_0x245908)[_0x2189('0xa')](_0x2f5563)[_0x2189('0x43')]||this['editor'][_0x2189('0x1a')]['view'][_0x2189('0x4f')]());},{'priority':_0x2189('0x6d')}),this[_0x2189('0x5b')](_0x83302d,tt('reopenCommentThread',_0x4906b0),(_0x3b921f,{threadId:_0x48cd09})=>{this[_0x2189('0x33')](_0x48cd09);},{'priority':_0x2189('0x6d')}),this[_0x2189('0x5b')](_0x83302d,tt(_0x2189('0x6e'),_0x4906b0),(_0x492eff,{threadId:_0x35265c,isFromAdapter:_0x2393a7})=>{const _0x496cbc=this['getAllMarkersForId'](_0x35265c);if(_0x2393a7||0x0==_0x496cbc[_0x2189('0x25')]||!_0x83302d['hasCommentThread'](_0x35265c))return;0x1===_0x83302d['getCommentThread'](_0x35265c)[_0x2189('0x25')]&&_0x555703['model'][_0x2189('0x52')]({'isUndoable':!0x1},_0x725643=>{for(const _0x3f5468 of _0x496cbc)_0x725643[_0x2189('0x58')](_0x3f5468,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x2189('0x6d')}),this[_0x2189('0x3e')](),this['_handleMarkerAddAndRemove']();}[_0x2189('0xb')](){const _0x689ef5=this[_0x2189('0x7')][_0x2189('0x5')][_0x2189('0x65')](_0x245908),_0x1d31e5=this[_0x2189('0x7')][_0x2189('0x6a')][_0x2189('0x65')](_0x2189('0x71'));for(const _0x2baad6 of _0x689ef5[_0x2189('0x32')]({'channelId':_0x1d31e5}))_0x689ef5[_0x2189('0x2b')](_0x2baad6['id']),_0x689ef5['_threads'][_0x2189('0x28')](_0x2baad6['id']);super[_0x2189('0xb')]();}[_0x2189('0x3f')](_0x275634){return this[_0x2189('0x47')](_0x275634)[_0x2189('0x25')]>0x0;}[_0x2189('0x47')](_0x37f4de){const _0x56c0d4=[];for(const _0x2e8ce7 of this[_0x2189('0x7')][_0x2189('0x21')][_0x2189('0x31')])_0x2e8ce7[_0x2189('0x4b')]['startsWith']('comment:'+_0x37f4de)&&_0x56c0d4['push'](_0x2e8ce7);return _0x56c0d4;}[_0x2189('0x11')](_0x4b79f3){const _0xead53a=this[_0x2189('0x29')](_0x4b79f3);_0xead53a&&setTimeout(()=>{this['activeMarker']&&ot(this[_0x2189('0x6')])['id']===_0x4b79f3&&_0x2cfaf0({'target':_0xead53a[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x2189('0x33')](_0x54b516){this[_0x2189('0x7')][_0x2189('0x21')][_0x2189('0x35')](()=>{for(const _0x847bb2 of this[_0x2189('0x47')](_0x54b516))this[_0x2189('0x7')][_0x2189('0x1a')][_0x2189('0x1b')](_0x847bb2);});}[_0x2189('0x20')](_0x5b5b04){const _0x2f0859=this['editor']['plugins'][_0x2189('0x65')](_0x245908),_0x377a86=this[_0x2189('0x7')]['plugins'][_0x2189('0x65')](_0x54592a),_0x5775a4=_0x2f0859[_0x2189('0xa')](_0x5b5b04);if(!_0x5775a4['isAttached']){const _0x3bd035=_0x5775a4[_0x2189('0x2e')](()=>this[_0x2189('0x29')](_0x5775a4['id']));_0x377a86[_0x2189('0x0')](_0x3bd035),_0x5775a4['_hasTargetInContent']=!0x1;}}[_0x2189('0x3e')](){const _0x1f728=this[_0x2189('0x7')];_0x1f728[_0x2189('0x2a')][_0x2189('0x70')]('editingDowncast')['markerToHighlight']({'model':_0x2189('0x51'),'view':(_0x500a04,_0x43bbb9)=>{const {id:_0x4e574f}=ot(_0x500a04[_0x2189('0x67')]),_0x21b41e=_0x1f728[_0x2189('0x5')][_0x2189('0x65')](_0x245908)[_0x2189('0xa')](_0x4e574f),_0x305d2b=this['activeMarker']&&ot(this[_0x2189('0x6')])['id']===_0x4e574f;if(_0x21b41e&&_0x21b41e[_0x2189('0x15')]&&!_0x305d2b&&_0x500a04['item'])return _0x43bbb9[_0x2189('0x2f')][_0x2189('0x1e')](_0x500a04[_0x2189('0x40')],'addMarker:'+_0x500a04[_0x2189('0x67')]),_0x43bbb9['consumable'][_0x2189('0x1e')](_0x500a04['item'],_0x2189('0x6c')+_0x500a04['markerName']),{'classes':[]};const _0x574d55=[_0x2189('0x12')];return _0x305d2b&&_0x574d55[_0x2189('0x4e')](_0x2189('0x45')),{'classes':_0x574d55,'attributes':{'data-comment':_0x4e574f}};}}),_0x1f728[_0x2189('0x2a')]['for']('dataDowncast')[_0x2189('0x22')]({'model':_0x2189('0x51'),'view':(_0x1ddf15,{options:_0x2fbb50})=>{const _0x11c903=_0x1f728[_0x2189('0x5')][_0x2189('0x65')](_0x245908),_0x59cc69=_0x1f728[_0x2189('0x21')][_0x2189('0x31')][_0x2189('0x65')](_0x1ddf15),{id:_0x206fe2,part:_0x27eb06}=ot(_0x1ddf15);if(_0x59cc69&&!_0x59cc69[_0x2189('0x1f')])return null;if(_0x2fbb50['ignoreResolvedComments']){const _0xfdddda=_0x11c903[_0x2189('0xa')](_0x206fe2);if(_0xfdddda&&_0xfdddda[_0x2189('0x15')])return null;}return{'group':_0x2189('0x51'),'name':_0x27eb06?_0x206fe2+':'+_0x27eb06:_0x206fe2};}}),_0x1f728['conversion']['for'](_0x2189('0x2c'))[_0x2189('0x4c')]({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x2c2236,{writer:_0x1222f3})=>_0x1222f3['createElement'](_0x2189('0x42'),{'data-name':_0x2189('0x3b')+_0x2c2236['getAttribute']('id')})}),_0x1f728['conversion']['for'](_0x2189('0x2c'))[_0x2189('0x55')]({'view':_0x2189('0x51')});}[_0x2189('0x37')](){const _0x53dc54=this[_0x2189('0x7')],_0x5fb2c=_0x53dc54[_0x2189('0x5')][_0x2189('0x65')](_0x245908),_0x44bfd5=new Set(),_0x136968=new Set();_0x53dc54[_0x2189('0x21')][_0x2189('0xe')][_0x2189('0x9')](_0x230f6f=>{let _0x279555=!0x1;for(const {name:_0x193d6a,data:_0x1d6931}of _0x53dc54[_0x2189('0x21')][_0x2189('0xe')][_0x2189('0x23')]['getChangedMarkers']()){const {group:_0x193179,id:_0x3f145a}=ot(_0x193d6a);let _0x17c70c=_0x1d6931['newRange'];if(_0x2189('0x51')!==_0x193179||!_0x17c70c)continue;const _0x364621=_0x2189('0x5c')===_0x17c70c[_0x2189('0x13')][_0x2189('0x5a')];_0x364621||(_0x17c70c=et(_0x17c70c,_0x53dc54[_0x2189('0x21')]),!_0x17c70c||_0x17c70c[_0x2189('0x36')]||!_0x1d6931[_0x2189('0x39')]||_0x17c70c[_0x2189('0x63')](_0x1d6931[_0x2189('0x39')]))?_0x53dc54[_0x2189('0x21')][_0x2189('0x68')](_0x17c70c)&&!_0x364621?this[_0x2189('0x8')]?_0x44bfd5[_0x2189('0x50')](_0x193d6a):this[_0x2189('0x61')](_0x193d6a,_0x3f145a):(_0x136968[_0x2189('0x50')](_0x193d6a),_0x44bfd5[_0x2189('0x28')](_0x193d6a),_0x230f6f['removeMarker'](_0x193d6a),_0x279555=!0x0):(_0x230f6f[_0x2189('0x58')](_0x193d6a,{'range':_0x17c70c}),_0x279555=!0x0);}return _0x279555;}),this['on'](_0x2189('0x1d'),(_0x4b43f3,_0x1f1173,_0x331270)=>{if(!_0x331270&&_0x44bfd5[_0x2189('0x38')])for(const _0x4351f9 of _0x44bfd5){const {id:_0x28ccc0}=ot(_0x4351f9);_0x44bfd5['delete'](_0x4351f9),_0x53dc54[_0x2189('0x21')]['markers']['get'](_0x4351f9)&&this['_handleThreadMarker'](_0x4351f9,_0x28ccc0);}}),this[_0x2189('0x5b')](_0x53dc54[_0x2189('0x21')][_0x2189('0xe')],_0x2189('0x35'),(_0x7d442c,_0x586df9)=>{for(const {name:_0x46cb4d,data:{newRange:_0x2b0482}}of _0x53dc54['model'][_0x2189('0xe')][_0x2189('0x23')]['getChangedMarkers']()){const {group:_0x3a2a89,id:_0x3fdc30}=ot(_0x46cb4d);if('comment'!==_0x3a2a89)continue;const _0x4417d8=_0x5fb2c[_0x2189('0xa')](_0x3fdc30),_0x2275ac=this[_0x2189('0x3f')](_0x3fdc30);_0x4417d8&&(_0x4417d8[_0x2189('0x46')]||_0x53dc54[_0x2189('0x1a')][_0x2189('0x62')][_0x2189('0x4d')]('render',()=>{const _0x34dc05=_0x53dc54['plugins'][_0x2189('0x65')](_0x435ced),_0x20b1f4=_0x5fb2c['_threadToController'][_0x2189('0x65')](_0x4417d8)['view'];_0x34dc05['getByInnerView'](_0x20b1f4)[_0x2189('0x48')]();},{'priority':_0x2189('0x6d')}),_0x4417d8['_hasTargetInContent']=_0x2275ac||!!_0x2b0482),_0x2b0482||(_0x136968[_0x2189('0x50')](_0x46cb4d),_0x44bfd5[_0x2189('0x28')](_0x46cb4d));}if(_0x586df9[_0x2189('0x44')])for(const _0x877a7e of _0x136968){const {id:_0x11f168}=ot(_0x877a7e),_0x2e792a=_0x5fb2c[_0x2189('0xa')](_0x11f168),_0x39bc2a=this['hasMarkerForId'](_0x11f168);_0x44bfd5[_0x2189('0x28')](_0x877a7e),!_0x2e792a||_0x39bc2a||_0x2e792a['unlinkedAt']||_0x2e792a[_0x2189('0x59')](new Date());}_0x136968[_0x2189('0x66')]();});}['_getTargetForId'](_0x53e59d){const _0x22fbfb=this[_0x2189('0x7')],_0x252823=this['getAllMarkersForId'](_0x53e59d);return _0xb81199(_0x22fbfb[_0x2189('0x1a')],_0x252823);}['_getTextContext'](_0x1348db){const _0x5aa43a=this[_0x2189('0x47')](_0x1348db);let _0x1301e1='',_0x5dc133=!0x1;for(const _0x5d67a2 of _0x5aa43a){const _0x16a9f3=_0x5d67a2['getRange']();for(const _0xfda0d5 of Array[_0x2189('0x57')](_0x16a9f3['getItems']()))_0xfda0d5['is']('$textProxy')?(_0x1301e1&&_0x5dc133&&(_0x1301e1+='\x20',_0x5dc133=!0x1),_0x1301e1+=_0xfda0d5['data']):_0x5dc133=!0x0;_0x5dc133=!0x0;}return _0x1301e1[_0x2189('0x10')](0x0,0x96);}[_0x2189('0x3')](_0x5af644,_0x26d428){const _0x47e399=this[_0x2189('0x7')],_0x430753=_0x47e399[_0x2189('0x5')][_0x2189('0x65')](_0x245908);let _0xe2e397=_0x430753['getCommentThread'](_0x26d428);const _0x1fe4f9=_0x47e399['config'][_0x2189('0x65')](_0x2189('0x71')),_0xcc2d4b=_0x47e399[_0x2189('0x5')][_0x2189('0x65')](_0x54592a);if(_0xe2e397&&(_0xe2e397[_0x2189('0x43')]&&_0xe2e397[_0x2189('0x59')](null),_0xe2e397['isAttached']))return _0xe2e397;return!this[_0x2189('0x47')](_0x26d428)[0x0][_0x2189('0xc')]?_0x47e399[_0x2189('0x1a')][_0x2189('0x62')]['once'](_0x2189('0x26'),()=>{if(_0x430753[_0x2189('0xa')](_0x26d428))return;const _0x4408ce=_0x47e399[_0x2189('0x5')][_0x2189('0x65')](_0x435ced);_0xe2e397=_0x430753[_0x2189('0x54')]({'channelId':_0x1fe4f9,'threadId':_0x26d428,'target':()=>this['_getTargetForId'](_0x26d428),'context':{'type':_0x2189('0x2'),'value':this['_getTextContext'](_0x26d428)}});const _0x24a31e=_0x430753['_threadToController'][_0x2189('0x65')](_0xe2e397)[_0x2189('0x62')],_0x115b35=_0x4408ce['getByInnerView'](_0x24a31e);_0x115b35&&_0xcc2d4b[_0x2189('0x0')](_0x115b35);},{'priority':_0x2189('0x6d')}):_0x430753[_0x2189('0x34')]({'channelId':_0x1fe4f9,'threadId':_0x26d428})['then'](_0x3c4215=>{if('destroyed'!==_0x47e399[_0x2189('0x27')]){if(_0xe2e397=_0x3c4215,_0xe2e397&&!_0xe2e397['isAttached']){const _0x269ae2=_0xe2e397[_0x2189('0x2e')](()=>this[_0x2189('0x29')](_0x26d428));_0xcc2d4b['registerAnnotation'](_0x269ae2),_0xe2e397[_0x2189('0x15')]&&this[_0x2189('0x33')](_0x26d428);}else{if(!_0xe2e397){const _0x1a69d4=this[_0x2189('0x47')](_0x26d428);_0x47e399[_0x2189('0x21')]['change'](_0x486407=>{for(const _0x3d8f51 of _0x1a69d4)_0x486407[_0x2189('0x3d')](_0x3d8f51);});}}}}),_0xe2e397;}[_0x2189('0x61')](_0x51bf06,_0x7fa525){const _0x45896e=this[_0x2189('0x3')](_0x51bf06,_0x7fa525);_0x45896e&&!_0x45896e[_0x2189('0x14')]&&_0x45896e[_0x2189('0x1c')]({'type':'text','value':this['_getTextContext'](_0x7fa525)});}['_initAriaMarkerChangeAnnouncements'](){const _0x5d9f16=this['editor'];_0x3054af(_0x5d9f16[_0x2189('0x21')],({left:_0x685593,entered:_0x2404a5})=>{const _0x1bc90d=[];for(const _0x1d8962 of _0x685593)if(rt(_0x1d8962)){_0x1bc90d['push'](_0x21d138(_0x5d9f16[_0x2189('0x30')],_0x2189('0x16')));break;}for(const _0x547af9 of _0x2404a5)if(rt(_0x547af9)){_0x1bc90d[_0x2189('0x4e')](_0x21d138(_0x5d9f16['locale'],_0x2189('0x24')));break;}_0x1bc90d['length']&&_0x5d9f16['ui'][_0x2189('0xf')][_0x2189('0x73')](_0x2189('0xd'),_0x1bc90d[_0x2189('0x18')]('\x20'));});}}function tt(_0x18ff37,_0xb8f760){return _0xb8f760?_0x18ff37+':'+_0xb8f760:_0x18ff37;}function ot(_0xa5c93a){const _0x11dd8e=_0xa5c93a[_0x2189('0x17')](':');return{'group':_0x11dd8e[0x0],'id':_0x11dd8e[0x1],'part':_0x11dd8e[0x2]};}function et(_0x1e8a5b,_0x57ea7e){const _0x353ebc=_0x57ea7e[_0x2189('0x56')],_0x2602ba=_0x57ea7e[_0x2189('0x4a')](_0x1e8a5b['start']);for(const _0xb8a8f of _0x1e8a5b[_0x2189('0x49')]()){const {type:_0x29b059,item:_0x4fbe34,nextPosition:_0x2295f2}=_0xb8a8f;if(_0x2189('0x2')===_0x29b059||_0x353ebc[_0x2189('0x19')](_0x4fbe34)){const _0x46ecc0=_0x57ea7e[_0x2189('0x5f')](_0x4fbe34);_0x2602ba[_0x2189('0x36')]&&(_0x2602ba[_0x2189('0x4')]=_0x46ecc0),_0x2602ba[_0x2189('0x2d')]=_0x2295f2;}}return _0x2602ba;}function rt(_0x20d85d){return _0x2189('0x51')===ot(_0x20d85d['name'])[_0x2189('0x1')];}
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}.
@@ -934,6 +934,7 @@ export type CommentThreadDataJSON = {
934
934
  unlinkedAt: Date | null;
935
935
  resolvedAt: Date | null;
936
936
  resolvedBy: string | null;
937
+ archivedAt: Date | null;
937
938
  comments: Array<CommentDataJSON>;
938
939
  attributes: Record<string, unknown>;
939
940
  };