@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 _0x161e=['destroy','function','isVisible','length','element','render','focusableElements','targetRect','stopListening','refreshVisibility','set','add','item','focusTracker','_id','isArray','isActive','target','_target','_type','annotation-invalid-target','_assertCorrectTarget','nodeType','view','remove','filter','mainView','_getNormalizedTarget'];(function(_0x5a265f,_0x161e6b){const _0x2379ad=function(_0x13434a){while(--_0x13434a){_0x5a265f['push'](_0x5a265f['shift']());}};_0x2379ad(++_0x161e6b);}(_0x161e,0x1df));const _0x2379=function(_0x5a265f,_0x161e6b){_0x5a265f=_0x5a265f-0x0;let _0x2379ad=_0x161e[_0x5a265f];return _0x2379ad;};import{CKEditorError as _0x4092ee,Rect as _0xe69619,Collection as _0x414cc6,ObservableMixin as _0x192c8e}from'ckeditor5/src/utils';export default class d extends _0x192c8e(){constructor({view:_0x512b73,target:_0x39dad0,type:_0x5d872c,isVisible:_0x14b077=!0x0}){super(),this['view']=_0x512b73,this[_0x2379('0x14')][_0x2379('0x1')]||this['view'][_0x2379('0x2')](),this[_0x2379('0x10')]=_0x5d872c,this['_target']=_0x39dad0,d[_0x2379('0x12')](this[_0x2379('0x18')]()),this[_0x2379('0x3')]=new _0x414cc6([this[_0x2379('0x14')][_0x2379('0x1')]],{'idProperty':_0x2379('0xb')}),this[_0x2379('0x3')]['on'](_0x2379('0x8'),(_0x56f234,_0x5dbac2)=>{this[_0x2379('0x14')][_0x2379('0xa')][_0x2379('0x8')](_0x5dbac2);}),this['focusableElements']['on'](_0x2379('0x15'),(_0x18923d,_0x38f72b)=>{this[_0x2379('0x14')][_0x2379('0xa')][_0x2379('0x15')](_0x38f72b);}),this[_0x2379('0x7')](_0x2379('0x1b'),_0x14b077);}get['type'](){return _0x2379('0x1a')==typeof this[_0x2379('0x10')]?this[_0x2379('0x10')]():this[_0x2379('0x10')];}get['innerView'](){return this[_0x2379('0x14')][_0x2379('0x17')];}get[_0x2379('0xe')](){const _0x2ed343=this[_0x2379('0x18')]();return d['_assertCorrectTarget'](_0x2ed343),_0x2ed343;}get[_0x2379('0x4')](){const _0x1814e4=this[_0x2379('0xe')];if(null===_0x1814e4)return null;if(_0x1814e4 instanceof _0xe69619)return _0x1814e4;const _0x441d7f=_0x1814e4[_0x2379('0x16')](_0x400be6=>function(_0x2b0838){const _0x517849=_0x2b0838['offsetParent'];if(_0x517849)return!0x0;const _0x11371a=_0x2b0838['getClientRects']()[_0x2379('0x9')](0x0);return!!_0x11371a;}(_0x400be6));return 0x0===_0x441d7f[_0x2379('0x0')]?null:new _0xe69619(_0x441d7f[0x0]['getClientRects']()[_0x2379('0x9')](0x0));}get[_0x2379('0xd')](){return this['view'][_0x2379('0xd')];}set['isActive'](_0x86960b){this[_0x2379('0x14')]['isActive']=_0x86960b,this[_0x2379('0x14')][_0x2379('0x17')][_0x2379('0xd')]=_0x86960b;}['updateTargetRect'](){this[_0x2379('0x14')]['targetRect']=this[_0x2379('0x4')];}[_0x2379('0x19')](){this[_0x2379('0x3')][_0x2379('0x5')](),this[_0x2379('0x3')]['clear'](),this[_0x2379('0x5')]();}[_0x2379('0x6')](){this[_0x2379('0x1b')]=!!this[_0x2379('0x4')];}static[_0x2379('0x12')](_0x4ff387){if(!(null===_0x4ff387||_0x4ff387 instanceof _0xe69619||Array[_0x2379('0xc')](_0x4ff387)&&_0x4ff387['every'](_0x9cbdca=>y(_0x9cbdca))))throw new _0x4092ee(_0x2379('0x11'),null,{'target':_0x4ff387});}[_0x2379('0x18')](){const _0x59b30d=_0x2379('0x1a')==typeof this['_target']?this[_0x2379('0xf')]():this['_target'];return y(_0x59b30d)?[_0x59b30d]:_0x59b30d;}}function y(_0x4541bc){return null!==_0x4541bc&&'object'==typeof _0x4541bc&&_0x2379('0x13')in _0x4541bc&&0x1===_0x4541bc[_0x2379('0x13')];}
23
+ const _0x173e=['isVisible','_getNormalizedTarget','offsetParent','view','innerView','filter','stopListening','destroy','element','nodeType','isActive','annotation-invalid-target','render','targetRect','_target','_type','mainView','item','function','refreshVisibility','type','add','length','clear','target','updateTargetRect','_assertCorrectTarget','getClientRects','remove','focusableElements'];(function(_0x3b36c7,_0x173e5a){const _0x1ad8c6=function(_0x5024a7){while(--_0x5024a7){_0x3b36c7['push'](_0x3b36c7['shift']());}};_0x1ad8c6(++_0x173e5a);}(_0x173e,0x73));const _0x1ad8=function(_0x3b36c7,_0x173e5a){_0x3b36c7=_0x3b36c7-0x0;let _0x1ad8c6=_0x173e[_0x3b36c7];return _0x1ad8c6;};import{CKEditorError as _0x53208d,Rect as _0x4fc943,Collection as _0x27d3bd,ObservableMixin as _0x4ecd74}from'ckeditor5/src/utils.js';export default class d extends _0x4ecd74(){constructor({view:_0x57f543,target:_0x1a6f48,type:_0x89f46b,isVisible:_0x14370d=!0x0}){super(),this[_0x1ad8('0x8')]=_0x57f543,this[_0x1ad8('0x8')][_0x1ad8('0xd')]||this[_0x1ad8('0x8')][_0x1ad8('0x11')](),this[_0x1ad8('0x14')]=_0x89f46b,this[_0x1ad8('0x13')]=_0x1a6f48,d[_0x1ad8('0x1')](this[_0x1ad8('0x6')]()),this[_0x1ad8('0x4')]=new _0x27d3bd([this[_0x1ad8('0x8')][_0x1ad8('0xd')]],{'idProperty':'_id'}),this[_0x1ad8('0x4')]['on'](_0x1ad8('0x1a'),(_0x4fd34d,_0x4c120e)=>{this['view']['focusTracker'][_0x1ad8('0x1a')](_0x4c120e);}),this[_0x1ad8('0x4')]['on'](_0x1ad8('0x3'),(_0x4cc586,_0x5e00ce)=>{this['view']['focusTracker'][_0x1ad8('0x3')](_0x5e00ce);}),this['set'](_0x1ad8('0x5'),_0x14370d);}get[_0x1ad8('0x19')](){return _0x1ad8('0x17')==typeof this[_0x1ad8('0x14')]?this[_0x1ad8('0x14')]():this[_0x1ad8('0x14')];}get[_0x1ad8('0x9')](){return this[_0x1ad8('0x8')][_0x1ad8('0x15')];}get[_0x1ad8('0x1d')](){const _0x530bb4=this[_0x1ad8('0x6')]();return d[_0x1ad8('0x1')](_0x530bb4),_0x530bb4;}get[_0x1ad8('0x12')](){const _0x358253=this[_0x1ad8('0x1d')];if(null===_0x358253)return null;if(_0x358253 instanceof _0x4fc943)return _0x358253;const _0x5ede0b=_0x358253[_0x1ad8('0xa')](_0x239bc0=>function(_0x723d38){const _0x92a120=_0x723d38[_0x1ad8('0x7')];if(_0x92a120)return!0x0;const _0x3bb887=_0x723d38[_0x1ad8('0x2')]()[_0x1ad8('0x16')](0x0);return!!_0x3bb887;}(_0x239bc0));return 0x0===_0x5ede0b[_0x1ad8('0x1b')]?null:new _0x4fc943(_0x5ede0b[0x0][_0x1ad8('0x2')]()[_0x1ad8('0x16')](0x0));}get['isActive'](){return this[_0x1ad8('0x8')][_0x1ad8('0xf')];}set['isActive'](_0x5b8a21){this[_0x1ad8('0x8')][_0x1ad8('0xf')]=_0x5b8a21,this[_0x1ad8('0x8')]['mainView'][_0x1ad8('0xf')]=_0x5b8a21;}[_0x1ad8('0x0')](){this[_0x1ad8('0x8')][_0x1ad8('0x12')]=this[_0x1ad8('0x12')];}[_0x1ad8('0xc')](){this[_0x1ad8('0x4')]['stopListening'](),this['focusableElements'][_0x1ad8('0x1c')](),this[_0x1ad8('0xb')]();}[_0x1ad8('0x18')](){this[_0x1ad8('0x5')]=!!this['targetRect'];}static['_assertCorrectTarget'](_0x5b2ba0){if(!(null===_0x5b2ba0||_0x5b2ba0 instanceof _0x4fc943||Array['isArray'](_0x5b2ba0)&&_0x5b2ba0['every'](_0x4c5f80=>y(_0x4c5f80))))throw new _0x53208d(_0x1ad8('0x10'),null,{'target':_0x5b2ba0});}[_0x1ad8('0x6')](){const _0x560f9b=_0x1ad8('0x17')==typeof this[_0x1ad8('0x13')]?this['_target']():this[_0x1ad8('0x13')];return y(_0x560f9b)?[_0x560f9b]:_0x560f9b;}}function y(_0x157ebb){return null!==_0x157ebb&&'object'==typeof _0x157ebb&&'nodeType'in _0x157ebb&&0x1===_0x157ebb[_0x1ad8('0xe')];}
@@ -1,14 +1,14 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module comments/annotations/annotationcollection
7
7
  * @publicApi
8
8
  */
9
- import { Collection } from 'ckeditor5/src/utils';
10
- import type { View } from 'ckeditor5/src/ui';
11
- import type Annotation from './annotation';
9
+ import { Collection } from 'ckeditor5/src/utils.js';
10
+ import type { View } from 'ckeditor5/src/ui.js';
11
+ import type Annotation from './annotation.js';
12
12
  /**
13
13
  * A collection of {@link module:comments/annotations/annotation~Annotation annotations}.
14
14
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1c1c=['fire','getByView','innerView','set','refreshPositioning','delete','from','getIndex','_innerViewToAnnotation','_getOrderInContent','left','annotationcollection-not-existing-item','stopListening','focusTracker','length','sort','get','_sort','remove','_viewToAnnotation','view','annotationcollection-duplicated-item','add','focusableElements','updateTargetRect','_focusTracker','change:isFocused','top','listenTo','blur','has','clear','isFocused','targetRect'];(function(_0x443c00,_0x1c1cae){const _0xcb4283=function(_0x2c84b0){while(--_0x2c84b0){_0x443c00['push'](_0x443c00['shift']());}};_0xcb4283(++_0x1c1cae);}(_0x1c1c,0x182));const _0xcb42=function(_0x443c00,_0x1c1cae){_0x443c00=_0x443c00-0x0;let _0xcb4283=_0x1c1c[_0x443c00];return _0xcb4283;};import{CKEditorError as _0x3bfe54,Collection as _0x304a37,FocusTracker as _0x41a0db}from'ckeditor5/src/utils';export default class x extends _0x304a37{constructor(_0x3a494e=[]){super(),this['_innerViewToAnnotation']=new Map(),this[_0xcb42('0x7')]=new Map(),this['_focusTracker']=new _0x41a0db(),this[_0xcb42('0xd')]['on'](_0xcb42('0xe'),(_0x563e11,_0x1e2ec5,_0x48d908)=>{_0x48d908||this[_0xcb42('0x16')](_0xcb42('0x11'));});for(const _0x58a9f4 of _0x3a494e)this[_0xcb42('0xa')](_0x58a9f4);}get[_0xcb42('0x14')](){return this[_0xcb42('0xd')][_0xcb42('0x14')];}[_0xcb42('0xa')](_0x162ff7){if(this[_0xcb42('0x12')](_0x162ff7))throw new _0x3bfe54(_0xcb42('0x9'),null);this[_0xcb42('0x1e')][_0xcb42('0x19')](_0x162ff7[_0xcb42('0x18')],_0x162ff7),this[_0xcb42('0x7')][_0xcb42('0x19')](_0x162ff7[_0xcb42('0x8')],_0x162ff7);for(const _0x16cae3 of _0x162ff7[_0xcb42('0xb')])this[_0xcb42('0xd')][_0xcb42('0xa')](_0x16cae3);this[_0xcb42('0x10')](_0x162ff7[_0xcb42('0xb')],_0xcb42('0xa'),(_0x2d9b0d,_0x466bf4)=>{this[_0xcb42('0xd')][_0xcb42('0xa')](_0x466bf4);}),this[_0xcb42('0x10')](_0x162ff7['focusableElements'],'remove',(_0x509400,_0xb4ca13)=>{this['_focusTracker'][_0xcb42('0x6')](_0xb4ca13);}),this[_0xcb42('0x10')](_0x162ff7[_0xcb42('0x8')]['focusTracker'],'change:isFocused',(_0x12e936,_0x1fc472,_0x13e4ff)=>{_0x13e4ff&&this[_0xcb42('0x16')]('focus',_0x162ff7);}),_0x162ff7[_0xcb42('0xc')]();const _0x34dffd=this[_0xcb42('0x1f')](_0x162ff7[_0xcb42('0x8')]['targetRect']);return super[_0xcb42('0xa')](_0x162ff7,_0x34dffd);}[_0xcb42('0x6')](_0x2fdfdf){if(!this[_0xcb42('0x12')](_0x2fdfdf))throw new _0x3bfe54(_0xcb42('0x21'),null);this[_0xcb42('0x0')](_0x2fdfdf[_0xcb42('0x8')][_0xcb42('0x1')]),this[_0xcb42('0x0')](_0x2fdfdf[_0xcb42('0xb')]);for(const _0x24785e of _0x2fdfdf[_0xcb42('0xb')])this[_0xcb42('0xd')]['remove'](_0x24785e);return this[_0xcb42('0x7')][_0xcb42('0x1b')](_0x2fdfdf[_0xcb42('0x8')]),this[_0xcb42('0x1e')][_0xcb42('0x1b')](_0x2fdfdf[_0xcb42('0x18')]),super['remove'](_0x2fdfdf);}['getByInnerView'](_0x47477d){return this['_innerViewToAnnotation'][_0xcb42('0x4')](_0x47477d);}[_0xcb42('0x17')](_0x3e6ea0){return this[_0xcb42('0x7')][_0xcb42('0x4')](_0x3e6ea0);}['destroy'](){super[_0xcb42('0x13')](),this[_0xcb42('0x0')](),this[_0xcb42('0x1e')]['clear'](),this[_0xcb42('0x7')][_0xcb42('0x13')](),this[_0xcb42('0xd')]['destroy']();}[_0xcb42('0x1a')](){for(const _0x16b08d of this)_0x16b08d[_0xcb42('0xc')]();this[_0xcb42('0x5')]();}[_0xcb42('0x5')](){const _0x54f767=Array[_0xcb42('0x1c')](this)[_0xcb42('0x3')]((_0x29ebf4,_0x4bb8fa)=>v(_0x29ebf4[_0xcb42('0x8')][_0xcb42('0x15')],_0x4bb8fa[_0xcb42('0x8')][_0xcb42('0x15')]));for(let _0x2c85dc=_0x54f767[_0xcb42('0x2')]-0x1;_0x2c85dc>0x0;_0x2c85dc--){const _0x1c9f27=_0x54f767[_0x2c85dc];_0x2c85dc!==this[_0xcb42('0x1d')](_0x1c9f27)&&(this[_0xcb42('0x6')](_0x1c9f27),this[_0xcb42('0xa')](_0x1c9f27));}}['_getOrderInContent'](_0x2ab955){let _0x4f7c7d=0x0;if(!_0x2ab955)return this[_0xcb42('0x2')];for(const _0x180f9c of this){const _0x24be7f=_0x180f9c[_0xcb42('0x8')][_0xcb42('0x15')];if(_0x24be7f){if(v(_0x2ab955,_0x24be7f)<0x0)return _0x4f7c7d;_0x4f7c7d++;}}return _0x4f7c7d;}}export function bindAnnotationCollections({source:_0x5353de,target:_0x4403f7,filter:_0x3f9b21}){for(const _0x330165 of _0x5353de)_0x3f9b21(_0x330165)&&_0x4403f7[_0xcb42('0xa')](_0x330165);_0x4403f7[_0xcb42('0x10')](_0x5353de,_0xcb42('0xa'),(_0x149eff,_0x40e1a9)=>{_0x3f9b21(_0x40e1a9)&&_0x4403f7[_0xcb42('0xa')](_0x40e1a9);}),_0x4403f7[_0xcb42('0x10')](_0x5353de,_0xcb42('0x6'),(_0x33f8c,_0x1503f1)=>{_0x4403f7[_0xcb42('0x12')](_0x1503f1)&&_0x4403f7[_0xcb42('0x6')](_0x1503f1);});}function v(_0x170a36,_0x565b6e){if(null===_0x170a36&&null===_0x565b6e)return 0x0;if(null===_0x170a36)return-0x1;if(null===_0x565b6e)return 0x1;const _0x376658=_0x170a36[_0xcb42('0xf')]-_0x565b6e['top'];return 0x0==_0x376658?_0x170a36[_0xcb42('0x20')]-_0x565b6e[_0xcb42('0x20')]:_0x376658;}
23
+ const _0x144f=['listenTo','getByView','fire','annotationcollection-not-existing-item','remove','blur','top','isFocused','_innerViewToAnnotation','has','_focusTracker','_viewToAnnotation','innerView','destroy','add','getByInnerView','length','_sort','stopListening','get','sort','change:isFocused','focusTracker','delete','focus','clear','targetRect','_getOrderInContent','view','set','left','focusableElements'];(function(_0x172f04,_0x144fb2){const _0x3d33a9=function(_0x1ce6ca){while(--_0x1ce6ca){_0x172f04['push'](_0x172f04['shift']());}};_0x3d33a9(++_0x144fb2);}(_0x144f,0xc5));const _0x3d33=function(_0x172f04,_0x144fb2){_0x172f04=_0x172f04-0x0;let _0x3d33a9=_0x144f[_0x172f04];return _0x3d33a9;};import{CKEditorError as _0x571da8,Collection as _0x35ed74,FocusTracker as _0x2fa088}from'ckeditor5/src/utils.js';export default class x extends _0x35ed74{constructor(_0x992921=[]){super(),this['_innerViewToAnnotation']=new Map(),this[_0x3d33('0x6')]=new Map(),this[_0x3d33('0x5')]=new _0x2fa088(),this['_focusTracker']['on'](_0x3d33('0x10'),(_0x208cd7,_0x432464,_0x3286a4)=>{_0x3286a4||this[_0x3d33('0x1d')](_0x3d33('0x0'));});for(const _0x1fe578 of _0x992921)this[_0x3d33('0x9')](_0x1fe578);}get[_0x3d33('0x2')](){return this[_0x3d33('0x5')][_0x3d33('0x2')];}[_0x3d33('0x9')](_0x4f0941){if(this[_0x3d33('0x4')](_0x4f0941))throw new _0x571da8('annotationcollection-duplicated-item',null);this[_0x3d33('0x3')][_0x3d33('0x18')](_0x4f0941[_0x3d33('0x7')],_0x4f0941),this[_0x3d33('0x6')][_0x3d33('0x18')](_0x4f0941[_0x3d33('0x17')],_0x4f0941);for(const _0x19119b of _0x4f0941[_0x3d33('0x1a')])this['_focusTracker'][_0x3d33('0x9')](_0x19119b);this['listenTo'](_0x4f0941[_0x3d33('0x1a')],_0x3d33('0x9'),(_0x39ffc1,_0xfb85cc)=>{this['_focusTracker'][_0x3d33('0x9')](_0xfb85cc);}),this[_0x3d33('0x1b')](_0x4f0941[_0x3d33('0x1a')],_0x3d33('0x1f'),(_0x137037,_0xc3ad9)=>{this[_0x3d33('0x5')][_0x3d33('0x1f')](_0xc3ad9);}),this[_0x3d33('0x1b')](_0x4f0941['view'][_0x3d33('0x11')],_0x3d33('0x10'),(_0x56c8ca,_0x313ae4,_0x3aacbd)=>{_0x3aacbd&&this[_0x3d33('0x1d')](_0x3d33('0x13'),_0x4f0941);}),_0x4f0941['updateTargetRect']();const _0x1eaf5d=this['_getOrderInContent'](_0x4f0941[_0x3d33('0x17')][_0x3d33('0x15')]);return super[_0x3d33('0x9')](_0x4f0941,_0x1eaf5d);}['remove'](_0x38cb85){if(!this[_0x3d33('0x4')](_0x38cb85))throw new _0x571da8(_0x3d33('0x1e'),null);this[_0x3d33('0xd')](_0x38cb85[_0x3d33('0x17')]['focusTracker']),this[_0x3d33('0xd')](_0x38cb85[_0x3d33('0x1a')]);for(const _0x3ae7cc of _0x38cb85[_0x3d33('0x1a')])this[_0x3d33('0x5')][_0x3d33('0x1f')](_0x3ae7cc);return this[_0x3d33('0x6')][_0x3d33('0x12')](_0x38cb85[_0x3d33('0x17')]),this[_0x3d33('0x3')]['delete'](_0x38cb85[_0x3d33('0x7')]),super[_0x3d33('0x1f')](_0x38cb85);}[_0x3d33('0xa')](_0x234f8c){return this[_0x3d33('0x3')][_0x3d33('0xe')](_0x234f8c);}[_0x3d33('0x1c')](_0x43fcaa){return this[_0x3d33('0x6')]['get'](_0x43fcaa);}[_0x3d33('0x8')](){super[_0x3d33('0x14')](),this['stopListening'](),this[_0x3d33('0x3')]['clear'](),this[_0x3d33('0x6')][_0x3d33('0x14')](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x2f9643 of this)_0x2f9643['updateTargetRect']();this[_0x3d33('0xc')]();}[_0x3d33('0xc')](){const _0xb61b44=Array['from'](this)[_0x3d33('0xf')]((_0x12ca37,_0x556a21)=>v(_0x12ca37[_0x3d33('0x17')][_0x3d33('0x15')],_0x556a21['view']['targetRect']));for(let _0x14c827=_0xb61b44[_0x3d33('0xb')]-0x1;_0x14c827>0x0;_0x14c827--){const _0x18211b=_0xb61b44[_0x14c827];_0x14c827!==this['getIndex'](_0x18211b)&&(this['remove'](_0x18211b),this[_0x3d33('0x9')](_0x18211b));}}[_0x3d33('0x16')](_0x37e108){let _0x22347f=0x0;if(!_0x37e108)return this[_0x3d33('0xb')];for(const _0x5a31c6 of this){const _0x370e40=_0x5a31c6[_0x3d33('0x17')][_0x3d33('0x15')];if(_0x370e40){if(v(_0x37e108,_0x370e40)<0x0)return _0x22347f;_0x22347f++;}}return _0x22347f;}}export function bindAnnotationCollections({source:_0x379334,target:_0x541ebc,filter:_0x2bb11b}){for(const _0xc926c of _0x379334)_0x2bb11b(_0xc926c)&&_0x541ebc[_0x3d33('0x9')](_0xc926c);_0x541ebc[_0x3d33('0x1b')](_0x379334,_0x3d33('0x9'),(_0x35bef8,_0x41b169)=>{_0x2bb11b(_0x41b169)&&_0x541ebc[_0x3d33('0x9')](_0x41b169);}),_0x541ebc[_0x3d33('0x1b')](_0x379334,_0x3d33('0x1f'),(_0x354850,_0x1f4002)=>{_0x541ebc[_0x3d33('0x4')](_0x1f4002)&&_0x541ebc['remove'](_0x1f4002);});}function v(_0x846719,_0x4cbf39){if(null===_0x846719&&null===_0x4cbf39)return 0x0;if(null===_0x846719)return-0x1;if(null===_0x4cbf39)return 0x1;const _0x1c4814=_0x846719['top']-_0x4cbf39[_0x3d33('0x1')];return 0x0==_0x1c4814?_0x846719['left']-_0x4cbf39[_0x3d33('0x19')]:_0x1c4814;}
@@ -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/annotations/annotations
7
7
  * @publicApi
8
8
  */
9
- import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core';
10
- import type { View } from 'ckeditor5/src/ui';
11
- import { type Locale } from 'ckeditor5/src/utils';
12
- import Annotation, { type AnnotationTarget } from './annotation';
13
- import AnnotationCollection from './annotationcollection';
14
- import AnnotationView, { type AnnotationMainView } from './view/annotationview';
9
+ import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core.js';
10
+ import type { View } from 'ckeditor5/src/ui.js';
11
+ import { type Locale } from 'ckeditor5/src/utils.js';
12
+ import Annotation, { type AnnotationTarget } from './annotation.js';
13
+ import AnnotationCollection from './annotationcollection.js';
14
+ import AnnotationView, { type AnnotationMainView } from './view/annotationview.js';
15
15
  /**
16
16
  * Stores and manages all {@link module:comments/annotations/annotation~Annotation annotations} created
17
17
  * for the entire {@link module:core/context~Context} or {@link module:core/editor/editor~Editor}.
@@ -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 _0x1020=['add','stopListening','focusTracker','view','activate','pluginName','fire','activeAnnotations','refreshVisibility','_deactivateAllAnnotations','element','change:isVisible','isVisible','getByInnerView','destroy','source','refreshPositioning','delete','remove','createAnnotation','_activateAnnotation','collection','_removeActiveAnnotation','_addActiveAnnotation','set','createAnnotationView','listenTo','has','Annotations','_bindAnnotationsToVisibleAnnotations','_visibleAnnotations'];(function(_0xf0094a,_0x10205d){const _0x26df23=function(_0x14da1){while(--_0x14da1){_0xf0094a['push'](_0xf0094a['shift']());}};_0x26df23(++_0x10205d);}(_0x1020,0xa3));const _0x26df=function(_0xf0094a,_0x10205d){_0xf0094a=_0xf0094a-0x0;let _0x26df23=_0x1020[_0xf0094a];return _0x26df23;};import{ContextPlugin as _0x422129}from'ckeditor5/src/core';import _0x5aa74c from'./annotation';import _0x3c52f1 from'./annotationcollection';import _0x3b55d2 from'./view/annotationview';export default class b extends _0x422129{static get[_0x26df('0x1c')](){return _0x26df('0x14');}constructor(_0x294441){super(_0x294441),this[_0x26df('0xd')]=new _0x3c52f1(),this['_visibleAnnotations']=new _0x3c52f1(),this[_0x26df('0x10')](_0x26df('0x1e'),new Set()),this[_0x26df('0x15')]();}[_0x26df('0x17')](_0xa6a9b0){this[_0x26df('0xd')]['add'](_0xa6a9b0);}[_0x26df('0xa')](_0x4e9d92){this[_0x26df('0xd')][_0x26df('0xa')](_0x4e9d92),_0x4e9d92['destroy']();}['refreshVisibility'](){for(const _0x522fc4 of this['collection'])_0x522fc4[_0x26df('0x0')]();}[_0x26df('0x8')](){this[_0x26df('0x16')][_0x26df('0x8')]();}['getByInnerView'](_0x416020){return this[_0x26df('0xd')][_0x26df('0x5')](_0x416020);}['deactivateAll'](){this[_0x26df('0x1d')](_0x26df('0x1'));}[_0x26df('0x6')](){for(const _0x14821e of this[_0x26df('0xd')])_0x14821e[_0x26df('0x6')]();this['_visibleAnnotations'][_0x26df('0x6')](),this[_0x26df('0xd')][_0x26df('0x6')](),super[_0x26df('0x6')]();}[_0x26df('0x1b')](_0x259502){this['fire'](_0x26df('0xc'),_0x259502);}[_0x26df('0xb')](_0x26cdb5){return new _0x5aa74c(_0x26cdb5);}[_0x26df('0x11')](_0x128483,_0xa71a49){return new _0x3b55d2(_0x128483,_0xa71a49);}[_0x26df('0xf')](_0x2f3ca8){const _0x4ba131=new Set(this['activeAnnotations']);_0x4ba131[_0x26df('0x17')](_0x2f3ca8),this[_0x26df('0x1e')]=_0x4ba131;}[_0x26df('0xe')](_0xcedf5f){const _0x1f7ceb=new Set(this[_0x26df('0x1e')]);_0x1f7ceb[_0x26df('0x9')](_0xcedf5f),this[_0x26df('0x1e')]=_0x1f7ceb;}[_0x26df('0x15')](){const _0x35dece=this['collection'],_0x1babc0=this['_visibleAnnotations'];function _0x342878(_0x4fd65c){const _0x3e3f7c=_0x4fd65c[_0x26df('0x7')];_0x3e3f7c[_0x26df('0x4')]&&!_0x1babc0[_0x26df('0x13')](_0x3e3f7c)?_0x1babc0['add'](_0x3e3f7c):!_0x3e3f7c[_0x26df('0x4')]&&_0x1babc0[_0x26df('0x13')](_0x3e3f7c)&&_0x1babc0[_0x26df('0xa')](_0x3e3f7c),_0x3e3f7c[_0x26df('0x1a')][_0x26df('0x19')][_0x26df('0xa')](_0x3e3f7c['view'][_0x26df('0x2')]),_0x3e3f7c[_0x26df('0x1a')][_0x26df('0x19')]['add'](_0x3e3f7c[_0x26df('0x1a')][_0x26df('0x2')]);}this['listenTo'](_0x35dece,_0x26df('0x17'),(_0x302e39,_0x10f9c3)=>{_0x10f9c3[_0x26df('0x4')]&&_0x1babc0[_0x26df('0x17')](_0x10f9c3),this[_0x26df('0x12')](_0x10f9c3,'change:isVisible',_0x342878);}),this['listenTo'](_0x35dece,_0x26df('0xa'),(_0x32b0ff,_0x408062)=>{_0x1babc0[_0x26df('0x13')](_0x408062)&&_0x1babc0[_0x26df('0xa')](_0x408062),this[_0x26df('0x18')](_0x408062,_0x26df('0x3'),_0x342878);});}}
23
+ const _0x19a2=['fire','refreshPositioning','isVisible','focusTracker','has','_visibleAnnotations','getByInnerView','remove','activate','refreshVisibility','change:isVisible','_removeActiveAnnotation','element','activeAnnotations','createAnnotationView','listenTo','collection','_activateAnnotation','Annotations','view','stopListening','_bindAnnotationsToVisibleAnnotations','destroy','add','source','deactivateAll','createAnnotation'];(function(_0x34a802,_0x19a2e2){const _0x54a0e1=function(_0x22b74f){while(--_0x22b74f){_0x34a802['push'](_0x34a802['shift']());}};_0x54a0e1(++_0x19a2e2);}(_0x19a2,0x141));const _0x54a0=function(_0x34a802,_0x19a2e2){_0x34a802=_0x34a802-0x0;let _0x54a0e1=_0x19a2[_0x34a802];return _0x54a0e1;};import{ContextPlugin as _0x19ab2b}from'ckeditor5/src/core.js';import _0x272284 from'./annotation.js';import _0x4c7194 from'./annotationcollection.js';import _0xc4fa75 from'./view/annotationview.js';export default class b extends _0x19ab2b{static get['pluginName'](){return _0x54a0('0x15');}constructor(_0x2011c5){super(_0x2011c5),this['collection']=new _0x4c7194(),this[_0x54a0('0x8')]=new _0x4c7194(),this['set'](_0x54a0('0x10'),new Set()),this[_0x54a0('0x18')]();}[_0x54a0('0x1a')](_0x3994e8){this['collection']['add'](_0x3994e8);}[_0x54a0('0xa')](_0x46fcfb){this[_0x54a0('0x13')][_0x54a0('0xa')](_0x46fcfb),_0x46fcfb[_0x54a0('0x19')]();}[_0x54a0('0xc')](){for(const _0x3484bc of this[_0x54a0('0x13')])_0x3484bc[_0x54a0('0xc')]();}['refreshPositioning'](){this[_0x54a0('0x8')][_0x54a0('0x4')]();}[_0x54a0('0x9')](_0x3bf507){return this['collection'][_0x54a0('0x9')](_0x3bf507);}[_0x54a0('0x1')](){this[_0x54a0('0x3')]('_deactivateAllAnnotations');}[_0x54a0('0x19')](){for(const _0x25ccd1 of this[_0x54a0('0x13')])_0x25ccd1[_0x54a0('0x19')]();this['_visibleAnnotations'][_0x54a0('0x19')](),this['collection'][_0x54a0('0x19')](),super['destroy']();}[_0x54a0('0xb')](_0x495b68){this[_0x54a0('0x3')](_0x54a0('0x14'),_0x495b68);}[_0x54a0('0x2')](_0x1864c5){return new _0x272284(_0x1864c5);}[_0x54a0('0x11')](_0x292e01,_0x297f14){return new _0xc4fa75(_0x292e01,_0x297f14);}['_addActiveAnnotation'](_0x2f5a02){const _0x13da36=new Set(this[_0x54a0('0x10')]);_0x13da36['add'](_0x2f5a02),this[_0x54a0('0x10')]=_0x13da36;}[_0x54a0('0xe')](_0x3e9694){const _0x200191=new Set(this['activeAnnotations']);_0x200191['delete'](_0x3e9694),this[_0x54a0('0x10')]=_0x200191;}[_0x54a0('0x18')](){const _0x27a9cc=this[_0x54a0('0x13')],_0x4e57f0=this[_0x54a0('0x8')];function _0x3b2167(_0x68d66b){const _0x385234=_0x68d66b[_0x54a0('0x0')];_0x385234['isVisible']&&!_0x4e57f0[_0x54a0('0x7')](_0x385234)?_0x4e57f0[_0x54a0('0x1a')](_0x385234):!_0x385234[_0x54a0('0x5')]&&_0x4e57f0[_0x54a0('0x7')](_0x385234)&&_0x4e57f0[_0x54a0('0xa')](_0x385234),_0x385234[_0x54a0('0x16')][_0x54a0('0x6')][_0x54a0('0xa')](_0x385234[_0x54a0('0x16')][_0x54a0('0xf')]),_0x385234[_0x54a0('0x16')][_0x54a0('0x6')]['add'](_0x385234[_0x54a0('0x16')][_0x54a0('0xf')]);}this[_0x54a0('0x12')](_0x27a9cc,_0x54a0('0x1a'),(_0x429004,_0x4e250f)=>{_0x4e250f['isVisible']&&_0x4e57f0['add'](_0x4e250f),this[_0x54a0('0x12')](_0x4e250f,_0x54a0('0xd'),_0x3b2167);}),this[_0x54a0('0x12')](_0x27a9cc,'remove',(_0xd94467,_0x4e7cd4)=>{_0x4e57f0['has'](_0x4e7cd4)&&_0x4e57f0[_0x54a0('0xa')](_0x4e7cd4),this[_0x54a0('0x17')](_0x4e7cd4,_0x54a0('0xd'),_0x3b2167);});}}
@@ -1,16 +1,16 @@
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/annotations/annotationsuis
7
7
  * @publicApi
8
8
  */
9
- import { ContextPlugin, type Plugin, type Editor, type Context } from 'ckeditor5/src/core';
10
- import { type Emitter } from 'ckeditor5/src/utils';
11
- import AnnotationCollection from './annotationcollection';
12
- import Annotations from './annotations';
13
- import type Annotation from './annotation';
9
+ import { ContextPlugin, type Plugin, type Editor, type Context } from 'ckeditor5/src/core.js';
10
+ import { type Emitter } from 'ckeditor5/src/utils.js';
11
+ import AnnotationCollection from './annotationcollection.js';
12
+ import Annotations from './annotations.js';
13
+ import type Annotation from './annotation.js';
14
14
  /**
15
15
  * A repository of annotations UIs.
16
16
  *
@@ -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 _0x48f7=['_addActiveAnnotation','from','init','stopListening','annotationsuis-missing-ui','detach','annotationsuis-register-invalid-interface','has','annotationsuis-register-already-registered','refilterAnnotations','_setSelectedAnnotations','size','deactivate','length','requires','setActiveAnnotation','pluginName','hasActive','destroy','_uis','filter','activeUIs','activate','collection','_activateAnnotation','_assertAnnotationDoesNotBelongToMultipleUIs','isActive','add','_uisData','plugins','_visibleAnnotations','_removeActiveAnnotation','set','get','register','push','deactivateAll','function','activeAnnotations','AnnotationsUIs','context','delete','listenTo','switchTo','attach','change:activeAnnotation'];(function(_0x53c21a,_0x48f750){const _0x5b66d4=function(_0x5db456){while(--_0x5db456){_0x53c21a['push'](_0x53c21a['shift']());}};_0x5b66d4(++_0x48f750);}(_0x48f7,0x1c4));const _0x5b66=function(_0x53c21a,_0x48f750){_0x53c21a=_0x53c21a-0x0;let _0x5b66d4=_0x48f7[_0x53c21a];return _0x5b66d4;};import{ContextPlugin as _0x2af20a}from'ckeditor5/src/core';import{CKEditorError as _0x1b896c}from'ckeditor5/src/utils';import _0x2ae025,{bindAnnotationCollections as _0x29b1c6}from'./annotationcollection';import _0x48a389 from'./annotations';export default class M extends _0x2af20a{static get[_0x5b66('0x16')](){return[_0x48a389];}static get[_0x5b66('0x18')](){return _0x5b66('0x1');}constructor(_0x1b6391){super(_0x1b6391),this[_0x5b66('0x1d')]=new Set(),this[_0x5b66('0x1b')]=new Map(),this[_0x5b66('0x24')]=new Map();}[_0x5b66('0xa')](){const _0x5208ea=this[_0x5b66('0x2')][_0x5b66('0x25')]['get'](_0x48a389);this[_0x5b66('0x4')](_0x5208ea,_0x5b66('0x20'),(_0x56bedc,_0x3fa75f)=>{for(const _0x48eee3 of this[_0x5b66('0x1d')]){const _0xacca70=this[_0x5b66('0x1b')][_0x5b66('0x29')](_0x48eee3);(0x0,this[_0x5b66('0x24')][_0x5b66('0x29')](_0x48eee3)[_0x5b66('0x1c')])(_0x3fa75f)&&_0xacca70[_0x5b66('0x17')](_0x3fa75f);}}),this[_0x5b66('0x4')](_0x5208ea,'_deactivateAllAnnotations',()=>{for(const _0x23d6fb of this[_0x5b66('0x1d')]){this[_0x5b66('0x1b')][_0x5b66('0x29')](_0x23d6fb)[_0x5b66('0x17')](null);}}),this[_0x5b66('0x4')](_0x5208ea[_0x5b66('0x26')],_0x5b66('0x23'),(_0x44ae5a,_0x22c549)=>{this[_0x5b66('0x21')](_0x22c549);});}[_0x5b66('0x19')](){return this[_0x5b66('0x1d')][_0x5b66('0x13')]>0x0;}[_0x5b66('0x22')](_0x2bcc6c){return this[_0x5b66('0x1d')]['has'](_0x2bcc6c);}['activate'](_0x4fdd2c,_0x134e91=()=>!0x0){const _0x257303=this[_0x5b66('0x2')][_0x5b66('0x25')][_0x5b66('0x29')](_0x48a389);if(!this['_uis'][_0x5b66('0xf')](_0x4fdd2c))throw new _0x1b896c(_0x5b66('0xc'),this,{'uiName':_0x4fdd2c});this[_0x5b66('0x22')](_0x4fdd2c)&&this[_0x5b66('0x14')](_0x4fdd2c),this[_0x5b66('0x1d')]['add'](_0x4fdd2c);const _0xf9c135=new _0x2ae025(),_0x4d7e74=_0x257303['_visibleAnnotations'];_0x29b1c6({'source':_0x4d7e74,'target':_0xf9c135,'filter':_0x134e91}),this['_uisData'][_0x5b66('0x28')](_0x4fdd2c,{'collection':_0xf9c135,'filter':_0x134e91});const _0x188e9a=this[_0x5b66('0x1b')][_0x5b66('0x29')](_0x4fdd2c);_0x188e9a[_0x5b66('0x6')](_0xf9c135),this['listenTo'](_0x188e9a,_0x5b66('0x7'),(_0x30a0ae,_0xd3c332,_0x46d218,_0x1c149d)=>{_0x1c149d&&_0x257303[_0x5b66('0x27')](_0x1c149d),_0x46d218&&_0x257303[_0x5b66('0x8')](_0x46d218);});}[_0x5b66('0x14')](_0x1caf5c){if(this[_0x5b66('0x1d')]['delete'](_0x1caf5c),!this[_0x5b66('0x1b')]['has'](_0x1caf5c))throw new _0x1b896c(_0x5b66('0xc'),this,{'uiName':_0x1caf5c});const _0x5be2c0=this[_0x5b66('0x1b')][_0x5b66('0x29')](_0x1caf5c);_0x5be2c0[_0x5b66('0xd')](),this[_0x5b66('0xb')](_0x5be2c0),this['_uisData'][_0x5b66('0x29')](_0x1caf5c)[_0x5b66('0x1f')]['destroy'](),this['_uisData'][_0x5b66('0x3')](_0x1caf5c);}[_0x5b66('0x5')](_0x2a4c4a){if(!this['_uis'][_0x5b66('0xf')](_0x2a4c4a))throw new _0x1b896c(_0x5b66('0xc'),this,{'uiName':_0x2a4c4a});const _0x91250b=this[_0x5b66('0x2')][_0x5b66('0x25')][_0x5b66('0x29')](_0x48a389),_0x748d59=Array[_0x5b66('0x9')](_0x91250b[_0x5b66('0x0')])[0x0]||null;this[_0x5b66('0x2c')](),this[_0x5b66('0x1e')](_0x2a4c4a);const _0x238cef=this[_0x5b66('0x1b')][_0x5b66('0x29')](_0x2a4c4a);_0x238cef['setActiveAnnotation'](_0x748d59),_0x238cef['_setSelectedAnnotations']&&_0x748d59&&_0x238cef[_0x5b66('0x12')]([_0x748d59]);}['deactivateAll'](){for(const _0x5db296 of this[_0x5b66('0x1d')])this[_0x5b66('0x14')](_0x5db296);}[_0x5b66('0x2a')](_0x1b53b0,_0x321df4){if(this[_0x5b66('0x1b')][_0x5b66('0xf')](_0x1b53b0))throw new _0x1b896c(_0x5b66('0x10'));if(_0x5b66('0x2d')!=typeof _0x321df4['attach']||'function'!=typeof _0x321df4['detach']||'function'!=typeof _0x321df4[_0x5b66('0x17')])throw new _0x1b896c(_0x5b66('0xe'),null);this['_uis'][_0x5b66('0x28')](_0x1b53b0,_0x321df4);}[_0x5b66('0x11')](){const _0x4503e3=this[_0x5b66('0x2')][_0x5b66('0x25')][_0x5b66('0x29')](_0x48a389)[_0x5b66('0x1f')],_0x4ae021=new Map(),_0x3ad206=Array[_0x5b66('0x9')](this['activeUIs']);for(const _0x159424 of this[_0x5b66('0x1d')]){const _0x2015d4=this[_0x5b66('0x24')][_0x5b66('0x29')](_0x159424)[_0x5b66('0x1f')];for(const _0x5b5996 of _0x2015d4)_0x4ae021['set'](_0x5b5996,_0x159424);}for(const _0x312ee2 of _0x4503e3){const _0x3a0e31=_0x4ae021[_0x5b66('0x29')](_0x312ee2);this[_0x5b66('0x21')](_0x312ee2);const _0x381d81=_0x3ad206['find'](_0xcc91e3=>this[_0x5b66('0x24')][_0x5b66('0x29')](_0xcc91e3)[_0x5b66('0x1c')](_0x312ee2));_0x3a0e31!==_0x381d81&&(_0x3a0e31&&this[_0x5b66('0x24')][_0x5b66('0x29')](_0x3a0e31)[_0x5b66('0x1f')]['remove'](_0x312ee2),_0x381d81&&this['_uisData']['get'](_0x381d81)['collection']['add'](_0x312ee2));}}['destroy'](){this[_0x5b66('0x2c')](),super[_0x5b66('0x1a')]();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1a582c){const _0x1a67ad=[];for(const _0x56da07 of this[_0x5b66('0x1d')]){(0x0,this[_0x5b66('0x24')][_0x5b66('0x29')](_0x56da07)[_0x5b66('0x1c')])(_0x1a582c)&&_0x1a67ad[_0x5b66('0x2b')](_0x56da07);}if(_0x1a67ad[_0x5b66('0x15')]>0x1)throw new _0x1b896c('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x1a67ad,'annotationType':_0x1a582c['type']});}}
23
+ const _0x29ab=['context','find','type','length','activate','set','_removeActiveAnnotation','delete','listenTo','_assertAnnotationDoesNotBelongToMultipleUIs','annotationsuis-register-invalid-interface','_uis','deactivate','register','function','deactivateAll','push','destroy','_uisData','activeUIs','get','filter','annotationsuis-missing-ui','switchTo','pluginName','change:activeAnnotation','_setSelectedAnnotations','detach','_addActiveAnnotation','requires','_visibleAnnotations','refilterAnnotations','add','attach','setActiveAnnotation','annotationsuis-register-already-registered','size','remove','from','collection','plugins','has'];(function(_0x20b86f,_0x29ab05){const _0x476d44=function(_0x5d92d2){while(--_0x5d92d2){_0x20b86f['push'](_0x20b86f['shift']());}};_0x476d44(++_0x29ab05);}(_0x29ab,0xed));const _0x476d=function(_0x20b86f,_0x29ab05){_0x20b86f=_0x20b86f-0x0;let _0x476d44=_0x29ab[_0x20b86f];return _0x476d44;};import{ContextPlugin as _0xdf4e48}from'ckeditor5/src/core.js';import{CKEditorError as _0x26eb3d}from'ckeditor5/src/utils.js';import _0x503867,{bindAnnotationCollections as _0x444311}from'./annotationcollection.js';import _0x35ab0b from'./annotations.js';export default class j extends _0xdf4e48{static get[_0x476d('0x2')](){return[_0x35ab0b];}static get[_0x476d('0x27')](){return'AnnotationsUIs';}constructor(_0x2fea17){super(_0x2fea17),this['activeUIs']=new Set(),this[_0x476d('0x1a')]=new Map(),this[_0x476d('0x21')]=new Map();}['init'](){const _0x30eca1=this['context']['plugins'][_0x476d('0x23')](_0x35ab0b);this[_0x476d('0x17')](_0x30eca1,'_activateAnnotation',(_0x782d2,_0x13825d)=>{for(const _0x3f415e of this['activeUIs']){const _0x439320=this[_0x476d('0x1a')]['get'](_0x3f415e);(0x0,this[_0x476d('0x21')]['get'](_0x3f415e)[_0x476d('0x24')])(_0x13825d)&&_0x439320['setActiveAnnotation'](_0x13825d);}}),this[_0x476d('0x17')](_0x30eca1,'_deactivateAllAnnotations',()=>{for(const _0x5c6a53 of this['activeUIs']){this[_0x476d('0x1a')][_0x476d('0x23')](_0x5c6a53)['setActiveAnnotation'](null);}}),this[_0x476d('0x17')](_0x30eca1[_0x476d('0x3')],_0x476d('0x5'),(_0x3bd5b1,_0x1138d6)=>{this[_0x476d('0x18')](_0x1138d6);});}['hasActive'](){return this[_0x476d('0x22')][_0x476d('0x9')]>0x0;}['isActive'](_0x1b54db){return this[_0x476d('0x22')][_0x476d('0xe')](_0x1b54db);}[_0x476d('0x13')](_0x48ab3b,_0x5bbecd=()=>!0x0){const _0x51a3f3=this['context'][_0x476d('0xd')][_0x476d('0x23')](_0x35ab0b);if(!this[_0x476d('0x1a')][_0x476d('0xe')](_0x48ab3b))throw new _0x26eb3d(_0x476d('0x25'),this,{'uiName':_0x48ab3b});this['isActive'](_0x48ab3b)&&this[_0x476d('0x1b')](_0x48ab3b),this[_0x476d('0x22')][_0x476d('0x5')](_0x48ab3b);const _0x2c82d5=new _0x503867(),_0x595a4a=_0x51a3f3[_0x476d('0x3')];_0x444311({'source':_0x595a4a,'target':_0x2c82d5,'filter':_0x5bbecd}),this[_0x476d('0x21')]['set'](_0x48ab3b,{'collection':_0x2c82d5,'filter':_0x5bbecd});const _0x598e9a=this[_0x476d('0x1a')][_0x476d('0x23')](_0x48ab3b);_0x598e9a[_0x476d('0x6')](_0x2c82d5),this[_0x476d('0x17')](_0x598e9a,_0x476d('0x28'),(_0x54fba2,_0x404477,_0x53b9f8,_0xcde575)=>{_0xcde575&&_0x51a3f3[_0x476d('0x15')](_0xcde575),_0x53b9f8&&_0x51a3f3[_0x476d('0x1')](_0x53b9f8);});}[_0x476d('0x1b')](_0x4efb3b){if(this[_0x476d('0x22')]['delete'](_0x4efb3b),!this[_0x476d('0x1a')]['has'](_0x4efb3b))throw new _0x26eb3d(_0x476d('0x25'),this,{'uiName':_0x4efb3b});const _0x1d1595=this[_0x476d('0x1a')][_0x476d('0x23')](_0x4efb3b);_0x1d1595[_0x476d('0x0')](),this['stopListening'](_0x1d1595),this[_0x476d('0x21')]['get'](_0x4efb3b)[_0x476d('0xc')]['destroy'](),this[_0x476d('0x21')][_0x476d('0x16')](_0x4efb3b);}[_0x476d('0x26')](_0x16d24c){if(!this['_uis']['has'](_0x16d24c))throw new _0x26eb3d(_0x476d('0x25'),this,{'uiName':_0x16d24c});const _0x13a25c=this[_0x476d('0xf')][_0x476d('0xd')][_0x476d('0x23')](_0x35ab0b),_0x3aee7b=Array[_0x476d('0xb')](_0x13a25c['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x16d24c);const _0x4fa77d=this[_0x476d('0x1a')]['get'](_0x16d24c);_0x4fa77d['setActiveAnnotation'](_0x3aee7b),_0x4fa77d[_0x476d('0x29')]&&_0x3aee7b&&_0x4fa77d[_0x476d('0x29')]([_0x3aee7b]);}[_0x476d('0x1e')](){for(const _0x5a591b of this[_0x476d('0x22')])this[_0x476d('0x1b')](_0x5a591b);}[_0x476d('0x1c')](_0x2d631b,_0x3aa24f){if(this['_uis'][_0x476d('0xe')](_0x2d631b))throw new _0x26eb3d(_0x476d('0x8'));if(_0x476d('0x1d')!=typeof _0x3aa24f[_0x476d('0x6')]||_0x476d('0x1d')!=typeof _0x3aa24f[_0x476d('0x0')]||_0x476d('0x1d')!=typeof _0x3aa24f[_0x476d('0x7')])throw new _0x26eb3d(_0x476d('0x19'),null);this[_0x476d('0x1a')][_0x476d('0x14')](_0x2d631b,_0x3aa24f);}[_0x476d('0x4')](){const _0x1a5c5e=this['context'][_0x476d('0xd')][_0x476d('0x23')](_0x35ab0b)[_0x476d('0xc')],_0x41a6d2=new Map(),_0x4f3a02=Array[_0x476d('0xb')](this[_0x476d('0x22')]);for(const _0x3866ce of this[_0x476d('0x22')]){const _0x4bd52f=this[_0x476d('0x21')][_0x476d('0x23')](_0x3866ce)[_0x476d('0xc')];for(const _0x5c810a of _0x4bd52f)_0x41a6d2[_0x476d('0x14')](_0x5c810a,_0x3866ce);}for(const _0x4d72c8 of _0x1a5c5e){const _0x4b8ee7=_0x41a6d2['get'](_0x4d72c8);this[_0x476d('0x18')](_0x4d72c8);const _0x555337=_0x4f3a02[_0x476d('0x10')](_0x3209a7=>this[_0x476d('0x21')][_0x476d('0x23')](_0x3209a7)['filter'](_0x4d72c8));_0x4b8ee7!==_0x555337&&(_0x4b8ee7&&this[_0x476d('0x21')][_0x476d('0x23')](_0x4b8ee7)[_0x476d('0xc')][_0x476d('0xa')](_0x4d72c8),_0x555337&&this['_uisData'][_0x476d('0x23')](_0x555337)[_0x476d('0xc')]['add'](_0x4d72c8));}}[_0x476d('0x20')](){this[_0x476d('0x1e')](),super['destroy']();}[_0x476d('0x18')](_0x53ba6a){const _0x272bc4=[];for(const _0x1195ce of this[_0x476d('0x22')]){(0x0,this[_0x476d('0x21')][_0x476d('0x23')](_0x1195ce)[_0x476d('0x24')])(_0x53ba6a)&&_0x272bc4[_0x476d('0x1f')](_0x1195ce);}if(_0x272bc4[_0x476d('0x12')]>0x1)throw new _0x26eb3d('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x272bc4,'annotationType':_0x53ba6a[_0x476d('0x11')]});}}
@@ -1,15 +1,15 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module comments/annotations/editorannotations
7
7
  * @publicApi
8
8
  */
9
- import { Plugin, type Editor } from 'ckeditor5/src/core';
10
- import Annotations from './annotations';
11
- import type Annotation from './annotation';
12
- import type AnnotationCollection from './annotationcollection';
9
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
10
+ import Annotations from './annotations.js';
11
+ import type Annotation from './annotation.js';
12
+ import type AnnotationCollection from './annotationcollection.js';
13
13
  /**
14
14
  * Integrates {@link module:comments/annotations/annotations~Annotations annotations} with the editor to provide proper behavior
15
15
  * for annotations created through the editor features.
@@ -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 _0x55ca=['add','isEqual','_editorAnnotationsData','_editorAnnotations','containsRange','EditorAnnotations','get','set','remove','collection','fire','element','cancel','requires','init','plugins','selection','blur','editorannotations-invalid-source-callback','document','push','editing','directChange','view','model','editor','pluginName','from','has','sort','change:isFocused','hasDomSelection','addSourceCollector','registerAnnotation','isReadOnly','_dataCollectors','listenTo','getRanges','update','focusTracker','uiUpdate','change:range','function','range','refreshSelectedViews','refresh','annotation','innerView','getOrderedSelectedAnnotations'];(function(_0x1d8972,_0x55ca5f){const _0x506895=function(_0x3a1464){while(--_0x3a1464){_0x1d8972['push'](_0x1d8972['shift']());}};_0x506895(++_0x55ca5f);}(_0x55ca,0xe0));const _0x5068=function(_0x1d8972,_0x55ca5f){_0x1d8972=_0x1d8972-0x0;let _0x506895=_0x55ca[_0x1d8972];return _0x506895;};import{Plugin as _0x494aa4}from'ckeditor5/src/core';import{CKEditorError as _0x574ef8}from'ckeditor5/src/utils';import{debounce as _0x5e5713}from'lodash-es';import _0x5a0592 from'./annotations';export default class k extends _0x494aa4{static get[_0x5068('0x22')](){return[_0x5a0592];}static get[_0x5068('0x2f')](){return _0x5068('0x1a');}constructor(_0x294844){super(_0x294844),this['_dataCollectors']=new Set(),this[_0x5068('0x18')]=new Set();}[_0x5068('0x23')](){const _0x3a87d7=this[_0x5068('0x2e')],_0x67d997=_0x3a87d7[_0x5068('0x2d')][_0x5068('0x28')][_0x5068('0x25')],_0x102272=_0x5e5713(()=>this[_0x5068('0x10')](),0xa);_0x67d997['on'](_0x5068('0xd'),(_0x42e52f,_0x54ddb5)=>{_0x54ddb5[_0x5068('0x2b')]&&(_0x102272[_0x5068('0x21')](),this[_0x5068('0x10')]());}),this[_0x5068('0x8')](_0x3a87d7['editing']['view'][_0x5068('0x28')],_0x5068('0x2'),(_0x3b0b98,_0x1dc498,_0x4b03af)=>{_0x4b03af&&_0x102272();}),this[_0x5068('0x8')](_0x3a87d7['ui'][_0x5068('0xb')],'change:isFocused',(_0x58219a,_0x9b9043,_0x276a94)=>{_0x276a94||_0x3a87d7[_0x5068('0x6')]||this[_0x5068('0x1f')](_0x5068('0x26'),{'isAnnotationTracked':_0x147be0=>this[_0x5068('0x17')]['has'](_0x147be0[_0x5068('0x13')])});}),this['listenTo'](this[_0x5068('0x2e')]['ui'],_0x5068('0xa'),()=>this[_0x5068('0x1f')](_0x5068('0xc')));}[_0x5068('0x5')](_0x17d613){if(this['_editorAnnotations'][_0x5068('0x0')](_0x17d613[_0x5068('0x2c')]))return;this[_0x5068('0x18')][_0x5068('0x15')](_0x17d613['view']),this[_0x5068('0x2e')]['ui']['focusTracker'][_0x5068('0x15')](_0x17d613[_0x5068('0x2c')][_0x5068('0x20')]);const _0x4b6fa0=this[_0x5068('0x2e')][_0x5068('0x24')][_0x5068('0x1b')](_0x5a0592);this['listenTo'](_0x4b6fa0[_0x5068('0x1e')],_0x5068('0x1d'),(_0x426107,_0xea02a4)=>{this[_0x5068('0x2e')]['ui'][_0x5068('0xb')]['remove'](_0xea02a4[_0x5068('0x2c')][_0x5068('0x20')]),this[_0x5068('0x18')]['delete'](_0xea02a4[_0x5068('0x2c')]);});}[_0x5068('0x3')](){return this[_0x5068('0x2e')][_0x5068('0x2a')][_0x5068('0x2c')][_0x5068('0x3')];}[_0x5068('0x4')](_0x5e90d7){if(_0x5068('0xe')!=typeof _0x5e90d7)throw new _0x574ef8(_0x5068('0x27'));this['_dataCollectors']['add'](_0x5e90d7);}[_0x5068('0x10')](){this[_0x5068('0x1f')](_0x5068('0x11'));}[_0x5068('0x14')]({activeAnnotation:_0x3c0759,annotations:_0x32868f}){const _0x3d96c1=[],_0xd7e5ee=this[_0x5068('0x2e')]['model'][_0x5068('0x28')]['selection'],_0x217538=Array[_0x5068('0x30')](_0xd7e5ee[_0x5068('0x9')]());for(const [_0x26504f,_0x443548]of this['_editorAnnotationsData']){const _0x15ba55=_0x1f01ab(_0x443548),_0x189d1e=_0x32868f['getByInnerView'](_0x26504f);_0x15ba55&&_0x189d1e&&_0x3d96c1[_0x5068('0x29')]({'annotation':_0x189d1e,'range':_0x15ba55});}function _0x1f01ab(_0x4e4fc4){for(const _0xaa08ad of _0x4e4fc4)for(const _0x596e0d of _0x217538)if(_0xaa08ad[_0x5068('0x19')](_0x596e0d,!_0xd7e5ee['isCollapsed']))return _0xaa08ad;return null;}return _0x3d96c1[_0x5068('0x1')]((_0x33e197,_0x5da3c0)=>{const _0x3ffea0=_0x33e197[_0x5068('0xf')],_0xc8467a=_0x5da3c0[_0x5068('0xf')];if(!_0x3ffea0[_0x5068('0x16')](_0xc8467a)){if(_0x3ffea0[_0x5068('0x19')](_0xc8467a,!0x0))return 0x1;if(_0xc8467a[_0x5068('0x19')](_0x3ffea0,!0x0))return-0x1;}return _0x33e197[_0x5068('0x12')]==_0x3c0759?-0x1:_0x5da3c0[_0x5068('0x12')]==_0x3c0759?0x1:0x0;})['map'](_0x4c8eac=>_0x4c8eac['annotation']);}get[_0x5068('0x17')](){const _0x225a8d=new Map();for(const _0x396057 of Array[_0x5068('0x30')](this[_0x5068('0x7')]))for(const [_0x19ec01,_0x3df459]of _0x396057())_0x225a8d[_0x5068('0x1c')](_0x19ec01,_0x3df459);return _0x225a8d;}}
23
+ const _0xdd6d=['blur','set','fire','isCollapsed','remove','refreshSelectedViews','change:isFocused','listenTo','cancel','hasDomSelection','containsRange','isEqual','annotation','editing','editor','uiUpdate','refresh','selection','_editorAnnotationsData','getOrderedSelectedAnnotations','sort','document','add','update','range','directChange','isReadOnly','innerView','_editorAnnotations','element','EditorAnnotations','get','getByInnerView','has','requires','view','model','_dataCollectors','collection','focusTracker','addSourceCollector','pluginName','editorannotations-invalid-source-callback','init','change:range','getRanges'];(function(_0x86d3e4,_0xdd6dcf){const _0x18462b=function(_0x21c2bd){while(--_0x21c2bd){_0x86d3e4['push'](_0x86d3e4['shift']());}};_0x18462b(++_0xdd6dcf);}(_0xdd6d,0x87));const _0x1846=function(_0x86d3e4,_0xdd6dcf){_0x86d3e4=_0x86d3e4-0x0;let _0x18462b=_0xdd6d[_0x86d3e4];return _0x18462b;};import{Plugin as _0x26b331}from'ckeditor5/src/core.js';import{CKEditorError as _0x5e2158}from'ckeditor5/src/utils.js';import{debounce as _0x1e4996}from'lodash-es';import _0x534d21 from'./annotations.js';export default class k extends _0x26b331{static get[_0x1846('0x25')](){return[_0x534d21];}static get[_0x1846('0x2c')](){return _0x1846('0x21');}constructor(_0x398050){super(_0x398050),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}[_0x1846('0x0')](){const _0x1167ba=this[_0x1846('0x11')],_0x1a06c1=_0x1167ba[_0x1846('0x27')][_0x1846('0x18')]['selection'],_0x5b1e93=_0x1e4996(()=>this[_0x1846('0x8')](),0xa);_0x1a06c1['on'](_0x1846('0x1'),(_0x2b28e7,_0x5727c3)=>{_0x5727c3[_0x1846('0x1c')]&&(_0x5b1e93[_0x1846('0xb')](),this[_0x1846('0x8')]());}),this[_0x1846('0xa')](_0x1167ba[_0x1846('0x10')]['view']['document'],_0x1846('0x9'),(_0x8f03a2,_0x26861f,_0x3330)=>{_0x3330&&_0x5b1e93();}),this[_0x1846('0xa')](_0x1167ba['ui'][_0x1846('0x2a')],_0x1846('0x9'),(_0x48abdf,_0x4fb235,_0x613d7f)=>{_0x613d7f||_0x1167ba[_0x1846('0x1d')]||this[_0x1846('0x5')](_0x1846('0x3'),{'isAnnotationTracked':_0x5bb4f4=>this[_0x1846('0x15')][_0x1846('0x24')](_0x5bb4f4[_0x1846('0x1e')])});}),this[_0x1846('0xa')](this[_0x1846('0x11')]['ui'],_0x1846('0x1a'),()=>this[_0x1846('0x5')](_0x1846('0x12')));}['registerAnnotation'](_0x5c1aa1){if(this[_0x1846('0x1f')]['has'](_0x5c1aa1[_0x1846('0x26')]))return;this[_0x1846('0x1f')][_0x1846('0x19')](_0x5c1aa1[_0x1846('0x26')]),this[_0x1846('0x11')]['ui']['focusTracker'][_0x1846('0x19')](_0x5c1aa1[_0x1846('0x26')][_0x1846('0x20')]);const _0x24e807=this[_0x1846('0x11')]['plugins'][_0x1846('0x22')](_0x534d21);this[_0x1846('0xa')](_0x24e807[_0x1846('0x29')],_0x1846('0x7'),(_0x1ffc62,_0x16a6b5)=>{this[_0x1846('0x11')]['ui']['focusTracker'][_0x1846('0x7')](_0x16a6b5['view'][_0x1846('0x20')]),this[_0x1846('0x1f')]['delete'](_0x16a6b5[_0x1846('0x26')]);});}[_0x1846('0xc')](){return this[_0x1846('0x11')][_0x1846('0x10')][_0x1846('0x26')][_0x1846('0xc')];}[_0x1846('0x2b')](_0x54abd3){if('function'!=typeof _0x54abd3)throw new _0x5e2158(_0x1846('0x2d'));this[_0x1846('0x28')][_0x1846('0x19')](_0x54abd3);}['refreshSelectedViews'](){this['fire'](_0x1846('0x13'));}[_0x1846('0x16')]({activeAnnotation:_0x44f4e3,annotations:_0x5a274f}){const _0x4f891d=[],_0x535872=this[_0x1846('0x11')][_0x1846('0x27')][_0x1846('0x18')][_0x1846('0x14')],_0x343fc8=Array['from'](_0x535872[_0x1846('0x2')]());for(const [_0xcf87bc,_0x39bfc5]of this[_0x1846('0x15')]){const _0x411bc5=_0xcb811f(_0x39bfc5),_0x5ac696=_0x5a274f[_0x1846('0x23')](_0xcf87bc);_0x411bc5&&_0x5ac696&&_0x4f891d['push']({'annotation':_0x5ac696,'range':_0x411bc5});}function _0xcb811f(_0x441fb7){for(const _0x47316a of _0x441fb7)for(const _0x28678c of _0x343fc8)if(_0x47316a['containsRange'](_0x28678c,!_0x535872[_0x1846('0x6')]))return _0x47316a;return null;}return _0x4f891d[_0x1846('0x17')]((_0x43b404,_0x399e11)=>{const _0x21bd60=_0x43b404[_0x1846('0x1b')],_0x368929=_0x399e11['range'];if(!_0x21bd60[_0x1846('0xe')](_0x368929)){if(_0x21bd60['containsRange'](_0x368929,!0x0))return 0x1;if(_0x368929[_0x1846('0xd')](_0x21bd60,!0x0))return-0x1;}return _0x43b404[_0x1846('0xf')]==_0x44f4e3?-0x1:_0x399e11['annotation']==_0x44f4e3?0x1:0x0;})['map'](_0x4a6f54=>_0x4a6f54[_0x1846('0xf')]);}get[_0x1846('0x15')](){const _0x4212f4=new Map();for(const _0x327636 of Array['from'](this['_dataCollectors']))for(const [_0x4e0412,_0x385dce]of _0x327636())_0x4212f4[_0x1846('0x4')](_0x4e0412,_0x385dce);return _0x4212f4;}}
@@ -1,18 +1,18 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module comments/annotations/inlineannotations
7
7
  * @publicApi
8
8
  */
9
- import { Plugin, type Editor } from 'ckeditor5/src/core';
10
- import AnnotationsUIs, { type AnnotationsUI } from './annotationsuis';
11
- import EditorAnnotations from './editorannotations';
12
- import { ContextualBalloon } from 'ckeditor5/src/ui';
9
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
10
+ import AnnotationsUIs, { type AnnotationsUI } from './annotationsuis.js';
11
+ import EditorAnnotations from './editorannotations.js';
12
+ import { ContextualBalloon } from 'ckeditor5/src/ui.js';
13
13
  import './../../theme/annotation-inline.css';
14
- import type Annotation from './annotation';
15
- import type AnnotationCollection from './annotationcollection';
14
+ import type Annotation from './annotation.js';
15
+ import type AnnotationCollection from './annotationcollection.js';
16
16
  /**
17
17
  * The popup-style UI for displaying annotations next to editor target elements.
18
18
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x460b=['selection','keystrokes','_addAnnotationToBalloon','remove','viewRangeToDom','InlineAnnotations','getBoundingClientRect','annotations','afterInit','_getBalloonTargetForAnnotation','fromRect','destroy','domConverter','activeAnnotation','document','push','_setSelectedAnnotations','bottom','refresh','isAttached','_selectedAnnotations','focus','getByView','top','listenTo','editing','has','mousedown','editor','set','context','target','add','_balloon','visibleView','width','getOrderedSelectedAnnotations','length','delete','hasView','every','inlineannotations-detach-not-attached','right','stopListening','switchTo','addObserver','includes','targetRect','_forceRefresh','collapse','focusTracker','update','_addedAnnotations','inlineannotations-attach-already-attached','inline','Esc','left','plugins','_removeAnnotationFromBalloon','hasActive','requires','detach','editableElement','get','blur','register','find','_manuallyClosed','setActiveAnnotation','view','isFocused','updatePosition','_closeAnnotation'];(function(_0x47b0fb,_0x460ba2){const _0x19329b=function(_0x3f7242){while(--_0x3f7242){_0x47b0fb['push'](_0x47b0fb['shift']());}};_0x19329b(++_0x460ba2);}(_0x460b,0x191));const _0x1932=function(_0x47b0fb,_0x460ba2){_0x47b0fb=_0x47b0fb-0x0;let _0x19329b=_0x460b[_0x47b0fb];return _0x19329b;};import{Plugin as _0x5f5477}from'ckeditor5/src/core';import _0x58bf6b from'./annotationsuis';import _0x51e298 from'./editorannotations';import{ContextualBalloon as _0xbea3de}from'ckeditor5/src/ui';import{MouseObserver as _0x11a2b8}from'ckeditor5/src/engine';import{CKEditorError as _0x1413c2,Rect as _0x3c79b9}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x5f5477{static get[_0x1932('0x18')](){return[_0x51e298,_0xbea3de,_0x58bf6b];}static get['pluginName'](){return _0x1932('0x2a');}constructor(_0x1fd89b){super(_0x1fd89b),_0x1fd89b[_0x1932('0x3e')][_0x1932('0x21')][_0x1932('0x9')](_0x11a2b8),this[_0x1932('0x38')]=!0x1,this[_0x1932('0x42')](_0x1932('0x32'),null),this[_0x1932('0x2c')]=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x1fd89b[_0x1932('0x15')][_0x1932('0x1b')](_0xbea3de),this['_addedAnnotations']=new Set(),this[_0x1932('0x39')]=[],this[_0x1932('0xc')]=!0x1;}['init'](){const _0x393eb8=this[_0x1932('0x41')][_0x1932('0x15')][_0x1932('0x1b')](_0x58bf6b);_0x393eb8[_0x1932('0x43')]===this[_0x1932('0x41')]&&(_0x393eb8[_0x1932('0x1d')](_0x1932('0x12'),this),this[_0x1932('0x41')][_0x1932('0x26')][_0x1932('0x42')](_0x1932('0x13'),(_0x14b9e5,_0x5ecdee)=>{const _0x229371=this[_0x1932('0x46')];if(this[_0x1932('0x38')]&&_0x229371['visibleView']){const _0x23b949=this[_0x1932('0x2c')][_0x1932('0x3b')](_0x229371[_0x1932('0x47')]);_0x23b949&&this[_0x1932('0x24')](_0x23b949),_0x5ecdee();}}));}[_0x1932('0x2d')](){const _0x1deff1=this[_0x1932('0x41')][_0x1932('0x15')][_0x1932('0x1b')](_0x58bf6b);_0x1deff1['context']===this[_0x1932('0x41')]&&(_0x1deff1[_0x1932('0x17')]()||_0x1deff1[_0x1932('0x8')](_0x1932('0x12')));}['setActiveAnnotation'](_0x27cfb8){_0x27cfb8!==this[_0x1932('0x32')]&&(this[_0x1932('0x32')]&&(this[_0x1932('0x32')]['isActive']=!0x1),_0x27cfb8&&this[_0x1932('0x41')]['ui']['focusTracker'][_0x1932('0x22')]&&(this[_0x1932('0x2c')][_0x1932('0x3f')](_0x27cfb8)&&this[_0x1932('0x27')](_0x27cfb8,!0x0),_0x27cfb8['isActive']=!0x0),_0x27cfb8||this[_0x1932('0x35')]([]),this['activeAnnotation']=_0x27cfb8);}['attach'](_0x1bbcfe){this['annotations']=_0x1bbcfe;const _0x46cf03=this[_0x1932('0x41')][_0x1932('0x15')][_0x1932('0x1b')](_0x58bf6b),_0xb0c872=this['_balloon'];if(this['isAttached'])throw new _0x1413c2(_0x1932('0x11'),this);if(_0x46cf03['context']!==this[_0x1932('0x41')])throw new _0x1413c2('inlineannotations-not-allowed-with-context',this);const _0x338d48=this[_0x1932('0x41')]['plugins'][_0x1932('0x1b')](_0x51e298);this[_0x1932('0x3d')](_0x338d48,_0x1932('0x37'),()=>{const _0xc0cf56=_0x338d48[_0x1932('0x0')]({'annotations':this[_0x1932('0x2c')],'activeAnnotation':this[_0x1932('0x32')]});var _0x492d9a,_0x995e4a;!this[_0x1932('0xc')]&&(_0x492d9a=_0xc0cf56,_0x995e4a=this[_0x1932('0x39')],_0x492d9a[_0x1932('0x1')]===_0x995e4a[_0x1932('0x1')]&&_0x492d9a[_0x1932('0x4')](_0x118edf=>_0x995e4a[_0x1932('0xa')](_0x118edf)))||(this[_0x1932('0xc')]=!0x1,this[_0x1932('0x35')](_0xc0cf56),this[_0x1932('0x20')](_0xc0cf56[0x0]||null));}),this[_0x1932('0x3d')](_0x338d48,_0x1932('0x1c'),(_0x564b33,{isAnnotationTracked:_0x2ff8f9})=>{this[_0x1932('0x32')]&&_0x2ff8f9(this[_0x1932('0x32')])&&(this[_0x1932('0x35')]([]),this[_0x1932('0x20')](null));}),this[_0x1932('0x3d')](this[_0x1932('0x41')]['ui'][_0x1932('0xe')],'change:isFocused',(_0x324814,_0x393276,_0x20d599)=>{_0x20d599||this[_0x1932('0x20')](null);}),this[_0x1932('0x3d')](_0x1bbcfe,_0x1932('0x28'),(_0x2bf089,_0x1b497d)=>{this[_0x1932('0x16')](_0x1b497d),_0x1b497d===this['activeAnnotation']&&this[_0x1932('0x20')](null);}),this[_0x1932('0x3d')](_0xb0c872,'change:visibleView',(_0xf1940f,_0x2c7877,_0x5671b3,_0x506ad5)=>{_0x506ad5&&this[_0x1932('0x7')](_0x506ad5);const _0x3f67a3=_0x1bbcfe[_0x1932('0x3b')](_0x5671b3);_0x5671b3&&_0x3f67a3&&(this['listenTo'](_0x5671b3,'change:height',()=>{_0xb0c872[_0x1932('0x23')]();}),this[_0x1932('0x3d')](_0x5671b3,_0x1932('0x13'),()=>{this[_0x1932('0x24')](_0x3f67a3),this[_0x1932('0x41')][_0x1932('0x3e')][_0x1932('0x21')][_0x1932('0x3a')]();}),this['activeAnnotation']!==_0x3f67a3&&this[_0x1932('0x20')](_0x3f67a3));}),this[_0x1932('0x3d')](this[_0x1932('0x41')]['ui'],_0x1932('0xf'),()=>{_0xb0c872[_0x1932('0x47')]&&(_0x1bbcfe[_0x1932('0x3b')](_0xb0c872[_0x1932('0x47')])&&_0xb0c872[_0x1932('0x23')]());}),this[_0x1932('0x3d')](this[_0x1932('0x41')][_0x1932('0x3e')][_0x1932('0x21')][_0x1932('0x33')],_0x1932('0x40'),()=>{this['_forceRefresh']=!0x0,this[_0x1932('0x1f')]['clear']();}),this[_0x1932('0x41')][_0x1932('0x3e')]['view'][_0x1932('0x33')]['selection'][_0x1932('0x1a')]&&this[_0x1932('0x41')]['editing'][_0x1932('0x21')][_0x1932('0x3a')](),this['isAttached']=!0x0;}[_0x1932('0x19')](){if(!this['isAttached'])throw new _0x1413c2(_0x1932('0x5'),this);this[_0x1932('0x20')](null);for(const _0xff2e51 of this['_addedAnnotations'])this[_0x1932('0x16')](_0xff2e51);this['stopListening'](),this['isAttached']=!0x1,this[_0x1932('0x2c')]=null;}[_0x1932('0x30')](){this[_0x1932('0x38')]&&this[_0x1932('0x19')]();}[_0x1932('0x35')](_0x508724){for(const _0x597b51 of this['_selectedAnnotations'])_0x508724[_0x1932('0xa')](_0x597b51)||this[_0x1932('0x1f')][_0x1932('0x2')](_0x597b51);for(const _0x5818fd of this[_0x1932('0x2c')])_0x508724[_0x1932('0xa')](_0x5818fd)||this[_0x1932('0x16')](_0x5818fd);if(this[_0x1932('0x41')]['ui'][_0x1932('0xe')][_0x1932('0x22')])for(const _0x76d6ab of _0x508724)this[_0x1932('0x27')](_0x76d6ab);this[_0x1932('0x39')]=_0x508724;}[_0x1932('0x27')](_0x212ad7,_0x500ec4=!0x1){this[_0x1932('0x1f')]['has'](_0x212ad7)||(this[_0x1932('0x10')][_0x1932('0x3f')](_0x212ad7)||this['_balloon'][_0x1932('0x3')](_0x212ad7[_0x1932('0x21')])||(this['_addedAnnotations'][_0x1932('0x45')](_0x212ad7),this['_balloon']['add']({'stackId':_0x212ad7[_0x1932('0x21')]['id'],'view':_0x212ad7[_0x1932('0x21')],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x212ad7)}})),_0x500ec4&&this[_0x1932('0x46')]['showStack'](_0x212ad7['view']['id']));}[_0x1932('0x2e')](_0xeb4113){const _0x5989ed=_0xeb4113[_0x1932('0x44')],_0x33a599=this[_0x1932('0x41')]['editing'][_0x1932('0x21')],_0x3bbe19=_0x33a599[_0x1932('0x33')][_0x1932('0x25')]['getFirstRange'](),_0x5b2617=_0x33a599[_0x1932('0x31')][_0x1932('0x29')](_0x3bbe19);if(_0x5b2617[_0x1932('0xd')](!0x0),_0x5989ed){if(_0x5989ed instanceof _0x3c79b9)return _0x5989ed;let _0x59452d=[];for(const _0x30f5a5 of _0x5989ed)_0x59452d['push'](...(_0x4d30a2=_0x30f5a5['getClientRects'](),Array['from'](_0x4d30a2)['map'](DOMRect[_0x1932('0x2f')])));_0x59452d=function(_0x54ac46){const _0x214f10=[];let _0x2f553b=_0x54ac46[0x0];for(let _0x2d9ce4=0x1;_0x2d9ce4<_0x54ac46[_0x1932('0x1')];_0x2d9ce4++)F(_0x2f553b,_0x54ac46[_0x2d9ce4])?_0x2f553b[_0x1932('0x48')]+=_0x54ac46[_0x2d9ce4][_0x1932('0x48')]:(_0x214f10[_0x1932('0x34')](_0x2f553b),_0x2f553b=_0x54ac46[_0x2d9ce4]);return _0x214f10[_0x1932('0x34')](_0x2f553b),_0x214f10;}(_0x59452d);const _0x11e42e=_0x5b2617[_0x1932('0x2b')]();return _0x59452d[_0x1932('0x1e')](_0x521b0c=>_0x521b0c['top']<=_0x11e42e[_0x1932('0x3c')]&&_0x521b0c['bottom']>=_0x11e42e[_0x1932('0x36')]&&_0x521b0c[_0x1932('0x14')]<=_0x11e42e[_0x1932('0x14')]&&_0x521b0c[_0x1932('0x6')]>=_0x11e42e[_0x1932('0x6')])||_0x59452d[0x0];}var _0x4d30a2;return _0xeb4113[_0x1932('0xb')]||_0x5b2617;}[_0x1932('0x16')](_0x33441e){this[_0x1932('0x10')]['has'](_0x33441e)&&this[_0x1932('0x46')][_0x1932('0x3')](_0x33441e[_0x1932('0x21')])&&(this[_0x1932('0x10')][_0x1932('0x2')](_0x33441e),this[_0x1932('0x46')][_0x1932('0x28')](_0x33441e[_0x1932('0x21')]));}[_0x1932('0x24')](_0x224d1e){this[_0x1932('0x1f')][_0x1932('0x45')](_0x224d1e),this[_0x1932('0x16')](_0x224d1e);}}function F(_0x4f83e8,_0x582743){return _0x4f83e8[_0x1932('0x3c')]===_0x582743[_0x1932('0x3c')]&&_0x4f83e8[_0x1932('0x36')]===_0x582743[_0x1932('0x36')]&&_0x4f83e8[_0x1932('0x6')]===_0x582743[_0x1932('0x14')];}
23
+ const _0x3586=['destroy','domConverter','annotations','activeAnnotation','top','right','hasView','_selectedAnnotations','_forceRefresh','clear','showStack','stopListening','isAttached','_manuallyClosed','getFirstRange','remove','focus','isFocused','left','update','hasActive','_setSelectedAnnotations','collapse','isActive','Esc','editableElement','push','afterInit','every','inlineannotations-detach-not-attached','includes','selection','setActiveAnnotation','attach','document','getClientRects','has','visibleView','mousedown','inline','addObserver','width','add','register','focusTracker','editing','change:visibleView','context','viewRangeToDom','inlineannotations-attach-already-attached','delete','_closeAnnotation','_addedAnnotations','listenTo','editor','target','_getBalloonTargetForAnnotation','updatePosition','plugins','getByView','_removeAnnotationFromBalloon','get','_balloon','view','_addAnnotationToBalloon','set','blur','change:isFocused','detach','inlineannotations-not-allowed-with-context','bottom'];(function(_0x336a9c,_0x358667){const _0x5d1c91=function(_0x18b999){while(--_0x18b999){_0x336a9c['push'](_0x336a9c['shift']());}};_0x5d1c91(++_0x358667);}(_0x3586,0x13c));const _0x5d1c=function(_0x336a9c,_0x358667){_0x336a9c=_0x336a9c-0x0;let _0x5d1c91=_0x3586[_0x336a9c];return _0x5d1c91;};import{Plugin as _0x24933c}from'ckeditor5/src/core.js';import _0x224c74 from'./annotationsuis.js';import _0x3a7dd9 from'./editorannotations.js';import{ContextualBalloon as _0x3e76bd}from'ckeditor5/src/ui.js';import{MouseObserver as _0xb89697}from'ckeditor5/src/engine.js';import{CKEditorError as _0x117704,Rect as _0x4326a4}from'ckeditor5/src/utils.js';import'./../../theme/annotation-inline.css';export default class c extends _0x24933c{static get['requires'](){return[_0x3a7dd9,_0x3e76bd,_0x224c74];}static get['pluginName'](){return'InlineAnnotations';}constructor(_0x314098){super(_0x314098),_0x314098[_0x5d1c('0xd')][_0x5d1c('0x1f')][_0x5d1c('0x8')](_0xb89697),this['isAttached']=!0x1,this[_0x5d1c('0x21')](_0x5d1c('0x2a'),null),this[_0x5d1c('0x29')]=null,this['_manuallyClosed']=new Set(),this[_0x5d1c('0x1e')]=_0x314098[_0x5d1c('0x1a')][_0x5d1c('0x1d')](_0x3e76bd),this[_0x5d1c('0x14')]=new Set(),this['_selectedAnnotations']=[],this[_0x5d1c('0x2f')]=!0x1;}['init'](){const _0x102cf5=this[_0x5d1c('0x16')]['plugins'][_0x5d1c('0x1d')](_0x224c74);_0x102cf5[_0x5d1c('0xf')]===this['editor']&&(_0x102cf5[_0x5d1c('0xb')]('inline',this),this[_0x5d1c('0x16')]['keystrokes'][_0x5d1c('0x21')]('Esc',(_0x1e2bc7,_0x55187c)=>{const _0x1f4c90=this[_0x5d1c('0x1e')];if(this['isAttached']&&_0x1f4c90[_0x5d1c('0x5')]){const _0x2c4a17=this[_0x5d1c('0x29')][_0x5d1c('0x1b')](_0x1f4c90[_0x5d1c('0x5')]);_0x2c4a17&&this[_0x5d1c('0x13')](_0x2c4a17),_0x55187c();}}));}[_0x5d1c('0x42')](){const _0x193922=this[_0x5d1c('0x16')][_0x5d1c('0x1a')]['get'](_0x224c74);_0x193922[_0x5d1c('0xf')]===this[_0x5d1c('0x16')]&&(_0x193922[_0x5d1c('0x3b')]()||_0x193922['switchTo'](_0x5d1c('0x7')));}[_0x5d1c('0x0')](_0x1725d0){_0x1725d0!==this[_0x5d1c('0x2a')]&&(this[_0x5d1c('0x2a')]&&(this['activeAnnotation'][_0x5d1c('0x3e')]=!0x1),_0x1725d0&&this[_0x5d1c('0x16')]['ui'][_0x5d1c('0xc')][_0x5d1c('0x38')]&&(this[_0x5d1c('0x29')][_0x5d1c('0x4')](_0x1725d0)&&this[_0x5d1c('0x20')](_0x1725d0,!0x0),_0x1725d0[_0x5d1c('0x3e')]=!0x0),_0x1725d0||this[_0x5d1c('0x3c')]([]),this[_0x5d1c('0x2a')]=_0x1725d0);}[_0x5d1c('0x1')](_0x2b5a4a){this['annotations']=_0x2b5a4a;const _0x3b9f37=this[_0x5d1c('0x16')]['plugins'][_0x5d1c('0x1d')](_0x224c74),_0x3c387b=this[_0x5d1c('0x1e')];if(this[_0x5d1c('0x33')])throw new _0x117704(_0x5d1c('0x11'),this);if(_0x3b9f37[_0x5d1c('0xf')]!==this[_0x5d1c('0x16')])throw new _0x117704(_0x5d1c('0x25'),this);const _0x2eea50=this['editor']['plugins'][_0x5d1c('0x1d')](_0x3a7dd9);this[_0x5d1c('0x15')](_0x2eea50,'refresh',()=>{const _0x2f98ae=_0x2eea50['getOrderedSelectedAnnotations']({'annotations':this[_0x5d1c('0x29')],'activeAnnotation':this[_0x5d1c('0x2a')]});var _0x14bdd6,_0x75a66c;!this[_0x5d1c('0x2f')]&&(_0x14bdd6=_0x2f98ae,_0x75a66c=this[_0x5d1c('0x2e')],_0x14bdd6['length']===_0x75a66c['length']&&_0x14bdd6[_0x5d1c('0x43')](_0x2f9d9f=>_0x75a66c[_0x5d1c('0x45')](_0x2f9d9f)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x2f98ae),this[_0x5d1c('0x0')](_0x2f98ae[0x0]||null));}),this[_0x5d1c('0x15')](_0x2eea50,_0x5d1c('0x22'),(_0x50e2d2,{isAnnotationTracked:_0x24204b})=>{this[_0x5d1c('0x2a')]&&_0x24204b(this[_0x5d1c('0x2a')])&&(this[_0x5d1c('0x3c')]([]),this[_0x5d1c('0x0')](null));}),this[_0x5d1c('0x15')](this[_0x5d1c('0x16')]['ui'][_0x5d1c('0xc')],_0x5d1c('0x23'),(_0x510e08,_0x28f486,_0x44b467)=>{_0x44b467||this[_0x5d1c('0x0')](null);}),this['listenTo'](_0x2b5a4a,_0x5d1c('0x36'),(_0x5ee9bd,_0x42530e)=>{this[_0x5d1c('0x1c')](_0x42530e),_0x42530e===this[_0x5d1c('0x2a')]&&this[_0x5d1c('0x0')](null);}),this['listenTo'](_0x3c387b,_0x5d1c('0xe'),(_0x4e12d9,_0x773e1b,_0x5ef74f,_0x81eda3)=>{_0x81eda3&&this[_0x5d1c('0x32')](_0x81eda3);const _0x967751=_0x2b5a4a[_0x5d1c('0x1b')](_0x5ef74f);_0x5ef74f&&_0x967751&&(this[_0x5d1c('0x15')](_0x5ef74f,'change:height',()=>{_0x3c387b['updatePosition']();}),this[_0x5d1c('0x15')](_0x5ef74f,_0x5d1c('0x3f'),()=>{this['_closeAnnotation'](_0x967751),this[_0x5d1c('0x16')][_0x5d1c('0xd')]['view'][_0x5d1c('0x37')]();}),this[_0x5d1c('0x2a')]!==_0x967751&&this[_0x5d1c('0x0')](_0x967751));}),this[_0x5d1c('0x15')](this[_0x5d1c('0x16')]['ui'],_0x5d1c('0x3a'),()=>{_0x3c387b[_0x5d1c('0x5')]&&(_0x2b5a4a[_0x5d1c('0x1b')](_0x3c387b['visibleView'])&&_0x3c387b[_0x5d1c('0x19')]());}),this['listenTo'](this[_0x5d1c('0x16')][_0x5d1c('0xd')][_0x5d1c('0x1f')][_0x5d1c('0x2')],_0x5d1c('0x6'),()=>{this['_forceRefresh']=!0x0,this[_0x5d1c('0x34')][_0x5d1c('0x30')]();}),this['editor'][_0x5d1c('0xd')]['view'][_0x5d1c('0x2')][_0x5d1c('0x46')][_0x5d1c('0x40')]&&this[_0x5d1c('0x16')][_0x5d1c('0xd')][_0x5d1c('0x1f')][_0x5d1c('0x37')](),this[_0x5d1c('0x33')]=!0x0;}[_0x5d1c('0x24')](){if(!this[_0x5d1c('0x33')])throw new _0x117704(_0x5d1c('0x44'),this);this[_0x5d1c('0x0')](null);for(const _0x4581f5 of this[_0x5d1c('0x14')])this[_0x5d1c('0x1c')](_0x4581f5);this[_0x5d1c('0x32')](),this[_0x5d1c('0x33')]=!0x1,this[_0x5d1c('0x29')]=null;}[_0x5d1c('0x27')](){this[_0x5d1c('0x33')]&&this['detach']();}[_0x5d1c('0x3c')](_0x4aeb74){for(const _0x1097e3 of this[_0x5d1c('0x2e')])_0x4aeb74[_0x5d1c('0x45')](_0x1097e3)||this['_manuallyClosed']['delete'](_0x1097e3);for(const _0x46550f of this['annotations'])_0x4aeb74['includes'](_0x46550f)||this['_removeAnnotationFromBalloon'](_0x46550f);if(this[_0x5d1c('0x16')]['ui'][_0x5d1c('0xc')][_0x5d1c('0x38')])for(const _0x186b0f of _0x4aeb74)this[_0x5d1c('0x20')](_0x186b0f);this[_0x5d1c('0x2e')]=_0x4aeb74;}[_0x5d1c('0x20')](_0x16035d,_0xa01b20=!0x1){this[_0x5d1c('0x34')]['has'](_0x16035d)||(this['_addedAnnotations']['has'](_0x16035d)||this[_0x5d1c('0x1e')][_0x5d1c('0x2d')](_0x16035d['view'])||(this[_0x5d1c('0x14')]['add'](_0x16035d),this['_balloon']['add']({'stackId':_0x16035d['view']['id'],'view':_0x16035d[_0x5d1c('0x1f')],'position':{'target':()=>this[_0x5d1c('0x18')](_0x16035d)}})),_0xa01b20&&this[_0x5d1c('0x1e')][_0x5d1c('0x31')](_0x16035d['view']['id']));}[_0x5d1c('0x18')](_0x56fbf9){const _0xee9f63=_0x56fbf9[_0x5d1c('0x17')],_0x1fab4f=this[_0x5d1c('0x16')][_0x5d1c('0xd')][_0x5d1c('0x1f')],_0x30ebfc=_0x1fab4f['document'][_0x5d1c('0x46')][_0x5d1c('0x35')](),_0x18fd94=_0x1fab4f[_0x5d1c('0x28')][_0x5d1c('0x10')](_0x30ebfc);if(_0x18fd94[_0x5d1c('0x3d')](!0x0),_0xee9f63){if(_0xee9f63 instanceof _0x4326a4)return _0xee9f63;let _0x3f934b=[];for(const _0x5e983a of _0xee9f63)_0x3f934b[_0x5d1c('0x41')](...(_0xe9bb1=_0x5e983a[_0x5d1c('0x3')](),Array['from'](_0xe9bb1)['map'](DOMRect['fromRect'])));_0x3f934b=function(_0x1f56f4){const _0x4154e5=[];let _0x88af54=_0x1f56f4[0x0];for(let _0x3c7f29=0x1;_0x3c7f29<_0x1f56f4['length'];_0x3c7f29++)F(_0x88af54,_0x1f56f4[_0x3c7f29])?_0x88af54[_0x5d1c('0x9')]+=_0x1f56f4[_0x3c7f29][_0x5d1c('0x9')]:(_0x4154e5['push'](_0x88af54),_0x88af54=_0x1f56f4[_0x3c7f29]);return _0x4154e5[_0x5d1c('0x41')](_0x88af54),_0x4154e5;}(_0x3f934b);const _0x33c6af=_0x18fd94['getBoundingClientRect']();return _0x3f934b['find'](_0x4f8592=>_0x4f8592[_0x5d1c('0x2b')]<=_0x33c6af[_0x5d1c('0x2b')]&&_0x4f8592[_0x5d1c('0x26')]>=_0x33c6af[_0x5d1c('0x26')]&&_0x4f8592[_0x5d1c('0x39')]<=_0x33c6af[_0x5d1c('0x39')]&&_0x4f8592[_0x5d1c('0x2c')]>=_0x33c6af[_0x5d1c('0x2c')])||_0x3f934b[0x0];}var _0xe9bb1;return _0x56fbf9['targetRect']||_0x18fd94;}[_0x5d1c('0x1c')](_0x21f6b5){this['_addedAnnotations'][_0x5d1c('0x4')](_0x21f6b5)&&this[_0x5d1c('0x1e')][_0x5d1c('0x2d')](_0x21f6b5[_0x5d1c('0x1f')])&&(this[_0x5d1c('0x14')][_0x5d1c('0x12')](_0x21f6b5),this[_0x5d1c('0x1e')][_0x5d1c('0x36')](_0x21f6b5['view']));}[_0x5d1c('0x13')](_0x2956a9){this[_0x5d1c('0x34')][_0x5d1c('0xa')](_0x2956a9),this[_0x5d1c('0x1c')](_0x2956a9);}}function F(_0x4f7012,_0x5f039c){return _0x4f7012['top']===_0x5f039c[_0x5d1c('0x2b')]&&_0x4f7012[_0x5d1c('0x26')]===_0x5f039c['bottom']&&_0x4f7012['right']===_0x5f039c[_0x5d1c('0x39')];}
@@ -1,18 +1,18 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module comments/annotations/narrowsidebar
7
7
  * @publicApi
8
8
  */
9
- import { ContextPlugin, Context, type Editor } from 'ckeditor5/src/core';
10
- import AnnotationsUIs, { type AnnotationsUI } from './annotationsuis';
11
- import Sidebar from './sidebar';
12
- import { BalloonPanelView, BodyCollection } from 'ckeditor5/src/ui';
9
+ import { ContextPlugin, Context, type Editor } from 'ckeditor5/src/core.js';
10
+ import AnnotationsUIs, { type AnnotationsUI } from './annotationsuis.js';
11
+ import Sidebar from './sidebar.js';
12
+ import { BalloonPanelView, BodyCollection } from 'ckeditor5/src/ui.js';
13
13
  import '../../theme/sidebar-narrow.css';
14
- import type Annotation from './annotation';
15
- import type { default as AnnotationCollection } from './annotationcollection';
14
+ import type Annotation from './annotation.js';
15
+ import type { default as AnnotationCollection } from './annotationcollection.js';
16
16
  /**
17
17
  * The narrow sidebar UI for displaying annotations.
18
18
  *