@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 _0x4872=['NarrowSidebar','mousedown','set:container','contains','content','pin','EditorAnnotations','_refreshPositioning','setActiveAnnotation','detach','narrowSidebar','off','_detachListeners','resize','activeAnnotation','clear','attachToDom','northArrowSouthEast','uiUpdate','listenTo','number','defaultPositions','keydown','northArrowSouthWest','bodyCollection','focusableElements','_destroyEditorAnnotationsIntegration','rearrange','has','blur','context','attach','stop','set','change:height','focus','_domEmitter','balloonPanelView','target','_annotations','ready','includes','element','_manuallyClosedAnnotationViews','_updateBalloonPosition','delete','annotationType','stopPropagation','from','find','annotations','preventClosingBalloon','removeEventListener','execute','editors','destroy','unpin','high','_refreshPositioningDebounced','requires','stopListening','_attachToContainer','southArrowNorthEast','isDirty','_selectedAnnotations','view','_showBalloon','register','_annotationToNarrowView','_setSelectedAnnotations','_integrateWithEditorAnnotations','length','_hideBalloon','add','plugins','hasDomSelection','southArrowNorth','northArrowSouth','remove','get','_editorAnnotations','_attachListeners','addAnnotation','getSidebarItemView','_detachFromContainer','isAttached','isVisible','getByView','first','narrowsidebar-detach-not-attached','detachFromDom','cancel','init','locale','values','esc'];(function(_0x5969d9,_0x48727f){const _0x268b58=function(_0x1034e2){while(--_0x1034e2){_0x5969d9['push'](_0x5969d9['shift']());}};_0x268b58(++_0x48727f);}(_0x4872,0x1db));const _0x268b=function(_0x5969d9,_0x48727f){_0x5969d9=_0x5969d9-0x0;let _0x268b58=_0x4872[_0x5969d9];return _0x268b58;};import{ContextPlugin as _0x440824,Context as _0x43570c}from'ckeditor5/src/core';import _0x253d9a from'./annotationsuis';import _0x4599fa from'./sidebar';import _0x54b65b from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x475006,BodyCollection as _0x380e66}from'ckeditor5/src/ui';import{CKEditorError as _0x524c4e,DomEmitterMixin as _0x5245dc,keyCodes as _0xbf2b63,Collection as _0x94d74}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x21e045}from'lodash-es';import _0x2677dc from'./editorannotations';export default class s extends _0x440824{static get[_0x268b('0x40')](){return[_0x4599fa,_0x253d9a];}static get['pluginName'](){return _0x268b('0x5');}constructor(_0x4158eb){super(_0x4158eb),this[_0x268b('0x5a')]=!0x1,this[_0x268b('0x30')]=new Set(),this[_0x268b('0x29')]=Object['create'](_0x5245dc),this[_0x268b('0x49')]=new Map(),this[_0x268b('0x26')](_0x268b('0x13'),null),this['annotations']=null,this[_0x268b('0x45')]=[],this['_editorAnnotations']=new _0x94d74(),this[_0x268b('0x3f')]=_0x21e045(()=>{this[_0x268b('0xc')]();},0xfa,{'leading':!0x1});}[_0x268b('0x1')](){this['context'][_0x268b('0x4f')][_0x268b('0x54')](_0x253d9a)[_0x268b('0x48')](_0x268b('0xf'),this),this[_0x268b('0x1d')]=new _0x380e66(this[_0x268b('0x23')]['locale']),this[_0x268b('0x2a')]=new _0x475006(this[_0x268b('0x23')][_0x268b('0x2')]),this[_0x268b('0x1d')][_0x268b('0x15')](),this[_0x268b('0x1d')][_0x268b('0x4e')](this[_0x268b('0x2a')]);}[_0x268b('0x24')](_0x32dcc7){this['annotations']=_0x32dcc7;const _0x1cad2a=this[_0x268b('0x23')][_0x268b('0x4f')][_0x268b('0x54')](_0x4599fa),_0x1b7915=this[_0x268b('0x2a')];if(_0x1cad2a[_0x268b('0x2c')]=_0x32dcc7,this[_0x268b('0x5a')])throw new _0x524c4e('narrowsidebar-attach-already-attached',this);this[_0x268b('0x5a')]=!0x0,this['listenTo'](_0x1cad2a,_0x268b('0x7'),()=>{this['detach'](),this[_0x268b('0x18')](_0x1cad2a,'change:container',_0xae3196=>{_0xae3196[_0x268b('0x10')](),this['attach'](_0x32dcc7);});}),_0x1cad2a[_0x268b('0x42')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x914f76=_0x444da2=>{const _0x10f787=new _0x54b65b(this[_0x268b('0x23')][_0x268b('0x2')]);_0x1cad2a[_0x268b('0x57')](_0x444da2,_0x10f787),this[_0x268b('0x49')][_0x268b('0x26')](_0x444da2,_0x10f787),_0x10f787['bind']('isDirty',_0x268b('0x33'),_0x268b('0x19'))['to'](_0x444da2[_0x268b('0x46')],_0x268b('0x44'),'type',_0x268b('0x4c')),_0x10f787['on'](_0x268b('0x3a'),()=>{this[_0x268b('0x30')]['clear'](),_0x1b7915[_0x268b('0x9')][_0x268b('0x5d')]!==_0x444da2[_0x268b('0x46')]?(this[_0x268b('0x47')](_0x444da2),_0x444da2[_0x268b('0x46')]['element']['focus'](),this[_0x268b('0xd')](_0x444da2)):this[_0x268b('0xd')](null);});};for(const _0x3c31a4 of _0x32dcc7)_0x914f76(_0x3c31a4);this[_0x268b('0x18')](_0x32dcc7,'add',(_0x1c7145,_0x27423a)=>{_0x914f76(_0x27423a);}),this[_0x268b('0x18')](_0x32dcc7,'remove',(_0x112ae0,_0x41ca59,_0x1ba6c9)=>{this[_0x268b('0x49')][_0x268b('0x54')](_0x41ca59)[_0x268b('0x3c')](),this[_0x268b('0x49')][_0x268b('0x32')](_0x41ca59),_0x1cad2a[_0x268b('0x20')]({'removedAnnotation':_0x41ca59,'previousAnnotation':_0x32dcc7[_0x268b('0x54')](_0x1ba6c9-0x1),'nextAnnotation':_0x32dcc7[_0x268b('0x54')](_0x1ba6c9+0x1)}),_0x41ca59===this[_0x268b('0x13')]&&this[_0x268b('0xd')](null);},{'priority':'low'}),this[_0x268b('0x18')](_0x32dcc7,_0x268b('0x28'),(_0x2d21ac,_0x129c0e)=>{this['setActiveAnnotation'](_0x129c0e);}),this[_0x268b('0x18')](_0x32dcc7,'blur',()=>{this['setActiveAnnotation'](null);}),this[_0x268b('0x29')]['listenTo'](document,_0x268b('0x1b'),(_0x63ebd9,_0x5b3ec4)=>{_0x5b3ec4['keyCode']===_0xbf2b63[_0x268b('0x4')]&&_0x1b7915[_0x268b('0x5b')]&&(this['_manuallyClosedAnnotationViews']['add'](_0x1b7915[_0x268b('0x9')]['first']),this[_0x268b('0x4d')](),_0x5b3ec4[_0x268b('0x34')](),_0x5b3ec4['preventDefault']());}),this['_domEmitter']['listenTo'](document,_0x268b('0x6'),(_0x40ace2,_0x1dc60a)=>{const _0x3b12c7=_0x1dc60a[_0x268b('0x2b')];_0x1b7915['isVisible']&&_0x1b7915[_0x268b('0x2f')][_0x268b('0x8')](_0x3b12c7)||_0x1cad2a[_0x268b('0x46')][_0x268b('0x2f')][_0x268b('0x8')](_0x3b12c7)||_0x40ace2[_0x268b('0x38')]||this[_0x268b('0x13')]&&this[_0x268b('0x13')][_0x268b('0x1e')][_0x268b('0x36')](_0x25915f=>_0x25915f['contains'](_0x3b12c7))||(this['_manuallyClosedAnnotationViews'][_0x268b('0x14')](),this['_hideBalloon'](),this[_0x268b('0xd')](null));});const _0x3a0ae2=this[_0x268b('0x23')]instanceof _0x43570c?this[_0x268b('0x23')][_0x268b('0x3b')]:new _0x94d74([this['context']]);for(const _0x2490f4 of _0x3a0ae2)this[_0x268b('0x4b')](_0x2490f4);this[_0x268b('0x18')](_0x3a0ae2,_0x268b('0x4e'),(_0x1067f7,_0x1649d1)=>{this[_0x268b('0x18')](_0x1649d1,_0x268b('0x2d'),()=>{this[_0x268b('0x4b')](_0x1649d1);});}),this[_0x268b('0x18')](_0x3a0ae2,_0x268b('0x53'),(_0x4fa879,_0x470fef)=>{_0x470fef[_0x268b('0x4f')][_0x268b('0x21')](_0x268b('0xb'))&&this[_0x268b('0x1f')](_0x470fef[_0x268b('0x4f')][_0x268b('0x54')](_0x268b('0xb')));}),window['addEventListener'](_0x268b('0x12'),this['_refreshPositioningDebounced']),this[_0x268b('0xc')]();}[_0x268b('0xd')](_0x44872b){if(_0x44872b===this[_0x268b('0x13')])return;const _0xe94ffe=this[_0x268b('0x23')][_0x268b('0x4f')][_0x268b('0x54')](_0x4599fa);if(_0xe94ffe['refresh']({'blurredAnnotation':this[_0x268b('0x13')],'activatedAnnotation':_0x44872b,'disableAnimationOnActivatedAnnotation':!0x0}),_0x44872b)_0xe94ffe[_0x268b('0x58')](_0x44872b)?this[_0x268b('0x47')](_0x44872b):this[_0x268b('0x4d')]();else this['_hideBalloon']();this[_0x268b('0x13')]=_0x44872b;}['detach'](){if(!this[_0x268b('0x5a')])throw new _0x524c4e(_0x268b('0x5e'),this);this[_0x268b('0xd')](null);const _0x359b93=this[_0x268b('0x23')][_0x268b('0x4f')][_0x268b('0x54')](_0x4599fa);this[_0x268b('0x4d')](),Array[_0x268b('0x35')](this[_0x268b('0x49')][_0x268b('0x3')](),_0x52080b=>_0x52080b[_0x268b('0x3c')]()),this['_annotationToNarrowView'][_0x268b('0x14')](),_0x359b93[_0x268b('0x59')](this[_0x268b('0x37')]),this[_0x268b('0x41')](),this[_0x268b('0x29')][_0x268b('0x41')](),this[_0x268b('0x23')]instanceof _0x43570c&&this[_0x268b('0x41')](this['context'][_0x268b('0x3b')]);for(const _0x4626b3 of Array[_0x268b('0x35')](this[_0x268b('0x55')]))this[_0x268b('0x1f')](_0x4626b3);window[_0x268b('0x39')]('resize',this[_0x268b('0x3f')]),this[_0x268b('0x3f')][_0x268b('0x0')](),this['_selectedAnnotations']=[],this[_0x268b('0x5a')]=!0x1,this[_0x268b('0x37')]=null;}[_0x268b('0x3c')](){this['isAttached']&&this[_0x268b('0xe')](),this[_0x268b('0x1d')][_0x268b('0x5f')]();}[_0x268b('0x4b')](_0xa6814){const _0x4b654b=_0xa6814[_0x268b('0x4f')]['get'](_0x2677dc),_0x51a59b=this[_0x268b('0x23')][_0x268b('0x4f')][_0x268b('0x54')](_0x4599fa),_0x39b91f=this['annotations'],_0x139b26=this['balloonPanelView'],_0x57b99a=()=>{const _0x1d1953=_0x4b654b['getOrderedSelectedAnnotations']({'annotations':this[_0x268b('0x37')],'activeAnnotation':this['activeAnnotation']});this[_0x268b('0x4a')](_0x1d1953),this[_0x268b('0xd')](_0x1d1953[0x0]||null);};this['listenTo'](_0x4b654b,'refresh',_0x57b99a),this[_0x268b('0x18')](_0x4b654b,_0x268b('0x22'),(_0x43bc4d,{isAnnotationTracked:_0x2d378c})=>{this['activeAnnotation']&&_0x2d378c(this['activeAnnotation'])&&(this[_0x268b('0x4a')]([]),this[_0x268b('0xd')](null));}),this['listenTo'](_0x4b654b,_0x268b('0x17'),()=>{this['_refreshPositioningDebounced']();}),this[_0x268b('0x18')](_0x39b91f,_0x268b('0x22'),_0xdac207=>{_0x4b654b[_0x268b('0x50')]()&&_0xdac207[_0x268b('0x25')]();},{'priority':_0x268b('0x3e')}),this[_0x268b('0x18')](this[_0x268b('0x29')],_0x268b('0x6'),(_0x25928e,_0x13d16a)=>{const _0x28dee5=_0x13d16a[_0x268b('0x2b')];_0x139b26['isVisible']&&_0x139b26[_0x268b('0x2f')][_0x268b('0x8')](_0x28dee5)||_0x51a59b[_0x268b('0x46')]['element'][_0x268b('0x8')](_0x28dee5)||this[_0x268b('0x13')]&&_0x4b654b[_0x268b('0x50')]()&&(_0x57b99a(),_0x25928e[_0x268b('0x38')]=!0x0);},{'priority':'high'}),this['_editorAnnotations'][_0x268b('0x4e')](_0x4b654b);}[_0x268b('0x1f')](_0x33efa3){_0x33efa3&&(this[_0x268b('0x41')](_0x33efa3),this[_0x268b('0x55')][_0x268b('0x53')](_0x33efa3));}[_0x268b('0x4a')](_0x22944d){for(const _0x38eecb of this[_0x268b('0x45')])_0x22944d[_0x268b('0x2e')](_0x38eecb)||this[_0x268b('0x30')][_0x268b('0x32')](_0x38eecb[_0x268b('0x46')]);this[_0x268b('0x45')]=_0x22944d;}['_refreshPositioning'](){const _0x1efc07=this['balloonPanelView'];this[_0x268b('0x37')]['refreshPositioning'](),_0x1efc07['isVisible']&&this[_0x268b('0x31')]();}[_0x268b('0x47')](_0x58eae0){if(this['_manuallyClosedAnnotationViews'][_0x268b('0x21')](_0x58eae0['view']))return;const _0x7579d6=this[_0x268b('0x2a')][_0x268b('0x9')][_0x268b('0x5d')];_0x7579d6!==_0x58eae0[_0x268b('0x46')]?(_0x7579d6&&this[_0x268b('0x11')](_0x7579d6),this[_0x268b('0x56')](_0x58eae0[_0x268b('0x46')]),this[_0x268b('0x2a')][_0x268b('0x9')]['clear'](),this[_0x268b('0x2a')][_0x268b('0x9')]['add'](_0x58eae0[_0x268b('0x46')]),this['_updateBalloonPosition']()):this[_0x268b('0x31')]();}[_0x268b('0x31')](){const _0x3dd3c7=this[_0x268b('0x2a')][_0x268b('0x9')]['first'],_0x51dbf6=_0x3dd3c7&&this[_0x268b('0x37')][_0x268b('0x5c')](_0x3dd3c7);if(!_0x51dbf6||!this[_0x268b('0x49')][_0x268b('0x21')](_0x51dbf6))return;const _0x694af7=this[_0x268b('0x49')][_0x268b('0x54')](_0x51dbf6)['element'],_0x50887c=function(){const _0x2c4460=_0x475006[_0x268b('0x1a')];return[_0x2c4460[_0x268b('0x43')],_0x2c4460[_0x268b('0x16')],_0x2c4460[_0x268b('0x51')],_0x2c4460[_0x268b('0x52')],_0x2c4460['southArrowNorthWest'],_0x2c4460[_0x268b('0x1c')]];}();this[_0x268b('0x2a')][_0x268b('0xa')]({'target':_0x694af7,'positions':_0x50887c});}[_0x268b('0x4d')](){const _0x80b541=this['balloonPanelView'],_0x26c3c7=_0x80b541[_0x268b('0x9')][_0x268b('0x5d')];_0x26c3c7&&(this[_0x268b('0x11')](_0x26c3c7),_0x80b541[_0x268b('0x3d')](),_0x80b541[_0x268b('0x9')][_0x268b('0x14')]());}['_attachListeners'](_0x679b84){this[_0x268b('0x18')](_0x679b84,_0x268b('0x27'),()=>this[_0x268b('0x31')]()),this['listenTo'](_0x679b84,'Esc',(_0x38fcdc,_0x52e44c)=>{this['_manuallyClosedAnnotationViews'][_0x268b('0x4e')](_0x679b84),this['_hideBalloon'](),_0x52e44c();});}[_0x268b('0x11')](_0x2d1cb1){this[_0x268b('0x41')](_0x2d1cb1);}}
23
+ const _0x5180=['_hideBalloon','resize','_destroyEditorAnnotationsIntegration','set','preventClosingBalloon','view','getSidebarItemView','editors','esc','hasDomSelection','_detachFromContainer','init','refreshPositioning','NarrowSidebar','remove','_updateBalloonPosition','contains','attachToDom','clear','_manuallyClosedAnnotationViews','southArrowNorth','detach','from','addAnnotation','set:container','first','southArrowNorthWest','_attachToContainer','isAttached','EditorAnnotations','values','ck-sidebar--narrow','_detachListeners','southArrowNorthEast','change:height','annotationType','off','removeEventListener','_editorAnnotations','unpin','high','stop','_setSelectedAnnotations','includes','length','content','pluginName','_domEmitter','change:container','find','mousedown','context','northArrowSouthWest','execute','destroy','annotations','Esc','_selectedAnnotations','locale','plugins','_refreshPositioning','_attachListeners','element','isDirty','_annotationToNarrowView','activeAnnotation','balloonPanelView','target','_showBalloon','northArrowSouth','stopListening','_refreshPositioningDebounced','bodyCollection','get','add','refresh','_integrateWithEditorAnnotations','attach','addEventListener','focus','rearrange','has','isVisible','bind','northArrowSouthEast','stopPropagation','detachFromDom','listenTo','blur','setActiveAnnotation'];(function(_0x161a93,_0x518045){const _0x5cc000=function(_0x3d1c94){while(--_0x3d1c94){_0x161a93['push'](_0x161a93['shift']());}};_0x5cc000(++_0x518045);}(_0x5180,0xc0));const _0x5cc0=function(_0x161a93,_0x518045){_0x161a93=_0x161a93-0x0;let _0x5cc000=_0x5180[_0x161a93];return _0x5cc000;};import{ContextPlugin as _0x354483,Context as _0x11da49}from'ckeditor5/src/core.js';import _0x51c439 from'./annotationsuis.js';import _0x1ff32b from'./sidebar.js';import _0x2a9b67 from'./view/annotationcounterbuttonview.js';import{BalloonPanelView as _0x4b2369,BodyCollection as _0x401def}from'ckeditor5/src/ui.js';import{CKEditorError as _0xa53ea9,DomEmitterMixin as _0x349dd7,keyCodes as _0x562c6c,Collection as _0x423911}from'ckeditor5/src/utils.js';import'../../theme/sidebar-narrow.css';import{debounce as _0x1ed349}from'lodash-es';import _0x547e2b from'./editorannotations.js';export default class i extends _0x354483{static get['requires'](){return[_0x1ff32b,_0x51c439];}static get[_0x5cc0('0x22')](){return _0x5cc0('0x1');}constructor(_0x55bf78){super(_0x55bf78),this['isAttached']=!0x1,this[_0x5cc0('0x7')]=new Set(),this[_0x5cc0('0x23')]=Object['create'](_0x349dd7),this[_0x5cc0('0x34')]=new Map(),this['set'](_0x5cc0('0x35'),null),this[_0x5cc0('0x2b')]=null,this[_0x5cc0('0x2d')]=[],this[_0x5cc0('0x1a')]=new _0x423911(),this[_0x5cc0('0x3b')]=_0x1ed349(()=>{this[_0x5cc0('0x30')]();},0xfa,{'leading':!0x1});}[_0x5cc0('0x59')](){this[_0x5cc0('0x27')][_0x5cc0('0x2f')][_0x5cc0('0x3d')](_0x51c439)['register']('narrowSidebar',this),this['bodyCollection']=new _0x401def(this['context']['locale']),this['balloonPanelView']=new _0x4b2369(this[_0x5cc0('0x27')]['locale']),this[_0x5cc0('0x3c')][_0x5cc0('0x5')](),this[_0x5cc0('0x3c')]['add'](this['balloonPanelView']);}[_0x5cc0('0x41')](_0x4235b4){this['annotations']=_0x4235b4;const _0x10eead=this[_0x5cc0('0x27')]['plugins'][_0x5cc0('0x3d')](_0x1ff32b),_0x34a7eb=this[_0x5cc0('0x36')];if(_0x10eead['_annotations']=_0x4235b4,this[_0x5cc0('0x10')])throw new _0xa53ea9('narrowsidebar-attach-already-attached',this);this[_0x5cc0('0x10')]=!0x0,this[_0x5cc0('0x4b')](_0x10eead,_0x5cc0('0xc'),()=>{this[_0x5cc0('0x9')](),this[_0x5cc0('0x4b')](_0x10eead,_0x5cc0('0x24'),_0x431e8d=>{_0x431e8d[_0x5cc0('0x18')](),this[_0x5cc0('0x41')](_0x4235b4);});}),_0x10eead[_0x5cc0('0xf')]({'viewClass':_0x5cc0('0x13'),'spaceBetweenItems':0x5});const _0x1821c1=_0xce2e2c=>{const _0x22cc43=new _0x2a9b67(this[_0x5cc0('0x27')][_0x5cc0('0x2e')]);_0x10eead[_0x5cc0('0xb')](_0xce2e2c,_0x22cc43),this[_0x5cc0('0x34')][_0x5cc0('0x51')](_0xce2e2c,_0x22cc43),_0x22cc43[_0x5cc0('0x47')]('isDirty',_0x5cc0('0x17'),'number')['to'](_0xce2e2c[_0x5cc0('0x53')],_0x5cc0('0x33'),'type',_0x5cc0('0x20')),_0x22cc43['on'](_0x5cc0('0x29'),()=>{this[_0x5cc0('0x7')]['clear'](),_0x34a7eb['content'][_0x5cc0('0xd')]!==_0xce2e2c[_0x5cc0('0x53')]?(this[_0x5cc0('0x38')](_0xce2e2c),_0xce2e2c[_0x5cc0('0x53')]['element']['focus'](),this[_0x5cc0('0x4d')](_0xce2e2c)):this[_0x5cc0('0x4d')](null);});};for(const _0x1c7434 of _0x4235b4)_0x1821c1(_0x1c7434);this[_0x5cc0('0x4b')](_0x4235b4,_0x5cc0('0x3e'),(_0x2072b6,_0x89e7f1)=>{_0x1821c1(_0x89e7f1);}),this[_0x5cc0('0x4b')](_0x4235b4,_0x5cc0('0x2'),(_0x28a64d,_0xdbb326,_0xa79d69)=>{this[_0x5cc0('0x34')][_0x5cc0('0x3d')](_0xdbb326)[_0x5cc0('0x2a')](),this[_0x5cc0('0x34')]['delete'](_0xdbb326),_0x10eead[_0x5cc0('0x44')]({'removedAnnotation':_0xdbb326,'previousAnnotation':_0x4235b4[_0x5cc0('0x3d')](_0xa79d69-0x1),'nextAnnotation':_0x4235b4[_0x5cc0('0x3d')](_0xa79d69+0x1)}),_0xdbb326===this[_0x5cc0('0x35')]&&this[_0x5cc0('0x4d')](null);},{'priority':'low'}),this[_0x5cc0('0x4b')](_0x4235b4,_0x5cc0('0x43'),(_0x530b97,_0x2464fd)=>{this[_0x5cc0('0x4d')](_0x2464fd);}),this[_0x5cc0('0x4b')](_0x4235b4,_0x5cc0('0x4c'),()=>{this['setActiveAnnotation'](null);}),this[_0x5cc0('0x23')][_0x5cc0('0x4b')](document,'keydown',(_0x487103,_0x1bb677)=>{_0x1bb677['keyCode']===_0x562c6c[_0x5cc0('0x56')]&&_0x34a7eb[_0x5cc0('0x46')]&&(this[_0x5cc0('0x7')][_0x5cc0('0x3e')](_0x34a7eb[_0x5cc0('0x21')]['first']),this[_0x5cc0('0x4e')](),_0x1bb677[_0x5cc0('0x49')](),_0x1bb677['preventDefault']());}),this[_0x5cc0('0x23')][_0x5cc0('0x4b')](document,_0x5cc0('0x26'),(_0x2f74dd,_0x24103c)=>{const _0x1a32f7=_0x24103c[_0x5cc0('0x37')];_0x34a7eb[_0x5cc0('0x46')]&&_0x34a7eb[_0x5cc0('0x32')][_0x5cc0('0x4')](_0x1a32f7)||_0x10eead[_0x5cc0('0x53')][_0x5cc0('0x32')][_0x5cc0('0x4')](_0x1a32f7)||_0x2f74dd[_0x5cc0('0x52')]||this['activeAnnotation']&&this[_0x5cc0('0x35')]['focusableElements'][_0x5cc0('0x25')](_0x2d042d=>_0x2d042d[_0x5cc0('0x4')](_0x1a32f7))||(this[_0x5cc0('0x7')][_0x5cc0('0x6')](),this[_0x5cc0('0x4e')](),this['setActiveAnnotation'](null));});const _0x4bc74a=this[_0x5cc0('0x27')]instanceof _0x11da49?this['context'][_0x5cc0('0x55')]:new _0x423911([this['context']]);for(const _0x496b8a of _0x4bc74a)this[_0x5cc0('0x40')](_0x496b8a);this['listenTo'](_0x4bc74a,'add',(_0x32c039,_0x182637)=>{this[_0x5cc0('0x4b')](_0x182637,'ready',()=>{this[_0x5cc0('0x40')](_0x182637);});}),this[_0x5cc0('0x4b')](_0x4bc74a,_0x5cc0('0x2'),(_0x2e3a4a,_0x316c94)=>{_0x316c94[_0x5cc0('0x2f')][_0x5cc0('0x45')]('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x316c94['plugins'][_0x5cc0('0x3d')](_0x5cc0('0x11')));}),window[_0x5cc0('0x42')](_0x5cc0('0x4f'),this[_0x5cc0('0x3b')]),this[_0x5cc0('0x30')]();}[_0x5cc0('0x4d')](_0x16c574){if(_0x16c574===this[_0x5cc0('0x35')])return;const _0x3e8ed9=this[_0x5cc0('0x27')][_0x5cc0('0x2f')]['get'](_0x1ff32b);if(_0x3e8ed9[_0x5cc0('0x3f')]({'blurredAnnotation':this[_0x5cc0('0x35')],'activatedAnnotation':_0x16c574,'disableAnimationOnActivatedAnnotation':!0x0}),_0x16c574)_0x3e8ed9[_0x5cc0('0x54')](_0x16c574)?this[_0x5cc0('0x38')](_0x16c574):this[_0x5cc0('0x4e')]();else this[_0x5cc0('0x4e')]();this[_0x5cc0('0x35')]=_0x16c574;}['detach'](){if(!this[_0x5cc0('0x10')])throw new _0xa53ea9('narrowsidebar-detach-not-attached',this);this[_0x5cc0('0x4d')](null);const _0x1d9709=this[_0x5cc0('0x27')][_0x5cc0('0x2f')][_0x5cc0('0x3d')](_0x1ff32b);this['_hideBalloon'](),Array[_0x5cc0('0xa')](this[_0x5cc0('0x34')][_0x5cc0('0x12')](),_0x1b6501=>_0x1b6501[_0x5cc0('0x2a')]()),this[_0x5cc0('0x34')]['clear'](),_0x1d9709[_0x5cc0('0x58')](this[_0x5cc0('0x2b')]),this[_0x5cc0('0x3a')](),this[_0x5cc0('0x23')][_0x5cc0('0x3a')](),this[_0x5cc0('0x27')]instanceof _0x11da49&&this[_0x5cc0('0x3a')](this['context'][_0x5cc0('0x55')]);for(const _0x5b7067 of Array[_0x5cc0('0xa')](this['_editorAnnotations']))this[_0x5cc0('0x50')](_0x5b7067);window[_0x5cc0('0x19')](_0x5cc0('0x4f'),this[_0x5cc0('0x3b')]),this[_0x5cc0('0x3b')]['cancel'](),this['_selectedAnnotations']=[],this['isAttached']=!0x1,this['annotations']=null;}[_0x5cc0('0x2a')](){this[_0x5cc0('0x10')]&&this[_0x5cc0('0x9')](),this['bodyCollection'][_0x5cc0('0x4a')]();}[_0x5cc0('0x40')](_0x32bc11){const _0x27429d=_0x32bc11[_0x5cc0('0x2f')][_0x5cc0('0x3d')](_0x547e2b),_0x1dc96c=this['context'][_0x5cc0('0x2f')][_0x5cc0('0x3d')](_0x1ff32b),_0x45101b=this['annotations'],_0x16850f=this[_0x5cc0('0x36')],_0x4350fd=()=>{const _0x1528ad=_0x27429d['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this[_0x5cc0('0x35')]});this[_0x5cc0('0x1e')](_0x1528ad),this[_0x5cc0('0x4d')](_0x1528ad[0x0]||null);};this['listenTo'](_0x27429d,_0x5cc0('0x3f'),_0x4350fd),this['listenTo'](_0x27429d,_0x5cc0('0x4c'),(_0xa8edb5,{isAnnotationTracked:_0x12dd58})=>{this[_0x5cc0('0x35')]&&_0x12dd58(this[_0x5cc0('0x35')])&&(this[_0x5cc0('0x1e')]([]),this[_0x5cc0('0x4d')](null));}),this[_0x5cc0('0x4b')](_0x27429d,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this[_0x5cc0('0x4b')](_0x45101b,'blur',_0x57a829=>{_0x27429d[_0x5cc0('0x57')]()&&_0x57a829[_0x5cc0('0x1d')]();},{'priority':_0x5cc0('0x1c')}),this[_0x5cc0('0x4b')](this[_0x5cc0('0x23')],_0x5cc0('0x26'),(_0x22574c,_0x41f34f)=>{const _0x301320=_0x41f34f[_0x5cc0('0x37')];_0x16850f['isVisible']&&_0x16850f[_0x5cc0('0x32')][_0x5cc0('0x4')](_0x301320)||_0x1dc96c[_0x5cc0('0x53')]['element'][_0x5cc0('0x4')](_0x301320)||this[_0x5cc0('0x35')]&&_0x27429d[_0x5cc0('0x57')]()&&(_0x4350fd(),_0x22574c['preventClosingBalloon']=!0x0);},{'priority':_0x5cc0('0x1c')}),this[_0x5cc0('0x1a')][_0x5cc0('0x3e')](_0x27429d);}['_destroyEditorAnnotationsIntegration'](_0x587268){_0x587268&&(this['stopListening'](_0x587268),this[_0x5cc0('0x1a')]['remove'](_0x587268));}[_0x5cc0('0x1e')](_0x3beb7f){for(const _0x3b6d2f of this[_0x5cc0('0x2d')])_0x3beb7f[_0x5cc0('0x1f')](_0x3b6d2f)||this[_0x5cc0('0x7')]['delete'](_0x3b6d2f['view']);this['_selectedAnnotations']=_0x3beb7f;}[_0x5cc0('0x30')](){const _0x1f4fb8=this[_0x5cc0('0x36')];this[_0x5cc0('0x2b')][_0x5cc0('0x0')](),_0x1f4fb8[_0x5cc0('0x46')]&&this[_0x5cc0('0x3')]();}[_0x5cc0('0x38')](_0x5da3bb){if(this[_0x5cc0('0x7')][_0x5cc0('0x45')](_0x5da3bb[_0x5cc0('0x53')]))return;const _0x221b3d=this['balloonPanelView'][_0x5cc0('0x21')]['first'];_0x221b3d!==_0x5da3bb['view']?(_0x221b3d&&this[_0x5cc0('0x14')](_0x221b3d),this['_attachListeners'](_0x5da3bb['view']),this[_0x5cc0('0x36')][_0x5cc0('0x21')][_0x5cc0('0x6')](),this[_0x5cc0('0x36')][_0x5cc0('0x21')][_0x5cc0('0x3e')](_0x5da3bb[_0x5cc0('0x53')]),this[_0x5cc0('0x3')]()):this[_0x5cc0('0x3')]();}['_updateBalloonPosition'](){const _0xbfa073=this[_0x5cc0('0x36')]['content'][_0x5cc0('0xd')],_0x3e46b3=_0xbfa073&&this[_0x5cc0('0x2b')]['getByView'](_0xbfa073);if(!_0x3e46b3||!this[_0x5cc0('0x34')]['has'](_0x3e46b3))return;const _0x38e0a0=this[_0x5cc0('0x34')][_0x5cc0('0x3d')](_0x3e46b3)['element'],_0x1afec7=function(){const _0x4ffde1=_0x4b2369['defaultPositions'];return[_0x4ffde1[_0x5cc0('0x15')],_0x4ffde1[_0x5cc0('0x48')],_0x4ffde1[_0x5cc0('0x8')],_0x4ffde1[_0x5cc0('0x39')],_0x4ffde1[_0x5cc0('0xe')],_0x4ffde1[_0x5cc0('0x28')]];}();this[_0x5cc0('0x36')]['pin']({'target':_0x38e0a0,'positions':_0x1afec7});}[_0x5cc0('0x4e')](){const _0x467e42=this[_0x5cc0('0x36')],_0x10df99=_0x467e42[_0x5cc0('0x21')][_0x5cc0('0xd')];_0x10df99&&(this[_0x5cc0('0x14')](_0x10df99),_0x467e42[_0x5cc0('0x1b')](),_0x467e42[_0x5cc0('0x21')][_0x5cc0('0x6')]());}[_0x5cc0('0x31')](_0x6049df){this[_0x5cc0('0x4b')](_0x6049df,_0x5cc0('0x16'),()=>this[_0x5cc0('0x3')]()),this['listenTo'](_0x6049df,_0x5cc0('0x2c'),(_0x537433,_0x1ac591)=>{this[_0x5cc0('0x7')]['add'](_0x6049df),this[_0x5cc0('0x4e')](),_0x1ac591();});}['_detachListeners'](_0x3ddc21){this[_0x5cc0('0x3a')](_0x3ddc21);}}
@@ -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/sidebar
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 SidebarView from './view/sidebarview';
12
- import SidebarItemView from './view/sidebaritemview';
13
- import type Annotation from './annotation';
9
+ import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core.js';
10
+ import type { View } from 'ckeditor5/src/ui.js';
11
+ import SidebarView from './view/sidebarview.js';
12
+ import SidebarItemView from './view/sidebaritemview.js';
13
+ import type Annotation from './annotation.js';
14
14
  /**
15
15
  * Displays {@link module:comments/annotations/annotationcollection~AnnotationCollection annotations} inside a sidebar.
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 _0x2eda=['clear','getIndex','sidebar-setcontainer-invalid-element','length','unbind','define','change:top','push','nodeType','context','get','minHeight','max','_getItemBefore','_getMaxAvailableTop','appendChild','destroy','_lastItem','targetRect','_annotationToSidebarItemView','updateHeight','last','pluginName','bottom','_getItemAfter','class','getSidebarItemView','_alignAfterItem','delete','content','object','isAnimationDisabled','set','refresh','_alignForBottomChange','addAnnotation','target','_getTargetTop','_sidebarItemViewToAnnotation','container','listenTo','setContainer','_recalculate','_alignForTopChange','_recalculateBuffer','_targetTop','element','view','remove','height','config','list','add','render','init','_attachToContainer','_activeAnnotation','_spaceBetweenItems','_createSidebarView','sidebar.preventScrollOutOfView','_annotations','top','_detachFromContainer','_alignBeforeItem','stopListening','locale','Sidebar','sidebar-attachtocontainer-missing-container','_setItemTop','_destroySidebarItemView','change:_lastItem','_updateLastItem','_alignToTargetRect'];(function(_0x426544,_0x2edaec){const _0x2f4f4f=function(_0x424612){while(--_0x424612){_0x426544['push'](_0x426544['shift']());}};_0x2f4f4f(++_0x2edaec);}(_0x2eda,0x17b));const _0x2f4f=function(_0x426544,_0x2edaec){_0x426544=_0x426544-0x0;let _0x2f4f4f=_0x2eda[_0x426544];return _0x2f4f4f;};import{ContextPlugin as _0xe5f52b}from'ckeditor5/src/core';import{Rect as _0x1ea5c1,CKEditorError as _0x24bc6d}from'ckeditor5/src/utils';import _0x14f71 from'./view/sidebarview';import _0xf1f8e3 from'./view/sidebaritemview';export default class z extends _0xe5f52b{static get[_0x2f4f('0x8')](){return _0x2f4f('0x34');}constructor(_0x4b51b2){super(_0x4b51b2),this[_0x2f4f('0x12')]('_lastItem',void 0x0),this[_0x2f4f('0x21')]=this[_0x2f4f('0x2c')](),this[_0x2f4f('0x12')](_0x2f4f('0x19'),null),this[_0x2f4f('0x2b')]=0x19,this[_0x2f4f('0x18')]=new Map(),this[_0x2f4f('0x5')]=new Map(),this[_0x2f4f('0x44')]['config'][_0x2f4f('0x40')](_0x2f4f('0x2d'),!0x1),this[_0x2f4f('0x2e')]=null,this['_activeAnnotation']=null,this['_recalculateBuffer']=[];}[_0x2f4f('0x28')](){const _0x5acf5c=this['context'][_0x2f4f('0x24')]['get']('sidebar.container');_0x5acf5c&&this['setContainer'](_0x5acf5c);}[_0x2f4f('0x1b')](_0x32e4c0){if(!y(_0x32e4c0))throw new _0x24bc6d(_0x2f4f('0x3d'));this['container']=_0x32e4c0;}[_0x2f4f('0x29')]({viewClass:_0x202d10='',spaceBetweenItems:_0x21d74b=0x19}={}){if(!y(this[_0x2f4f('0x19')]))throw new _0x24bc6d(_0x2f4f('0x35'),this);this[_0x2f4f('0x19')][_0x2f4f('0x1')](this[_0x2f4f('0x21')][_0x2f4f('0x20')]),this[_0x2f4f('0x21')][_0x2f4f('0xb')]=_0x202d10,this[_0x2f4f('0x2b')]=_0x21d74b;}['rearrange']({removedAnnotation:_0x3baf2f,previousAnnotation:_0x5748ec,nextAnnotation:_0x194736}){const _0x4e67f3=this[_0x2f4f('0xc')](_0x3baf2f);this[_0x2f4f('0x21')][_0x2f4f('0x25')][_0x2f4f('0x22')](_0x4e67f3),this[_0x2f4f('0x37')](_0x3baf2f),_0x5748ec&&this[_0x2f4f('0x3a')](this[_0x2f4f('0xc')](_0x5748ec)),_0x194736&&this[_0x2f4f('0x3a')](this[_0x2f4f('0xc')](_0x194736)),this['_updateLastItem']();}[_0x2f4f('0x13')]({blurredAnnotation:_0x5d28ea,activatedAnnotation:_0x3e1de1,disableAnimationOnActivatedAnnotation:_0x4fb372}){if(this['_activeAnnotation']=_0x3e1de1,_0x5d28ea){_0x5d28ea['isActive']=!0x1;const _0x12f359=this[_0x2f4f('0xc')](_0x5d28ea);_0x12f359&&_0x4fb372&&(_0x12f359[_0x2f4f('0x11')]=!0x1);}if(_0x3e1de1){const _0x5dcc70=this[_0x2f4f('0xc')](_0x3e1de1);_0x5dcc70&&(_0x3e1de1['isActive']=!0x0,_0x4fb372&&(_0x5dcc70['isAnimationDisabled']=!0x0,_0x5dcc70[_0x2f4f('0x2f')]+=0x1),this['_alignToTargetRect'](_0x5dcc70));}}[_0x2f4f('0x30')](_0x487976){if(this[_0x2f4f('0x21')][_0x2f4f('0x20')][_0x2f4f('0x22')](),_0x487976)for(const _0x11bb39 of _0x487976)this['_destroySidebarItemView'](_0x11bb39);this[_0x2f4f('0x21')][_0x2f4f('0x25')][_0x2f4f('0x3b')](),this[_0x2f4f('0x21')][_0x2f4f('0xb')]='',this[_0x2f4f('0x3')]=null;}[_0x2f4f('0x15')](_0x19d215,_0x65b19c){_0x65b19c||(_0x65b19c=_0x19d215[_0x2f4f('0x21')]);const _0x193816=new _0xf1f8e3(this['context'][_0x2f4f('0x33')]);this['_sidebarItemViewToAnnotation']['set'](_0x193816,_0x19d215),this[_0x2f4f('0x5')][_0x2f4f('0x12')](_0x19d215,_0x193816),_0x193816[_0x2f4f('0xf')][_0x2f4f('0x26')](_0x65b19c),this[_0x2f4f('0x1a')](_0x19d215[_0x2f4f('0x21')],'change:targetRect',(_0x60533d,_0x11bd38,_0x502c49)=>{const _0x445aeb=this[_0x2f4f('0x17')](_0x19d215,_0x502c49);_0x193816['_targetTop']!=_0x445aeb&&(_0x193816[_0x2f4f('0x1f')]=_0x445aeb,this[_0x2f4f('0x36')](_0x193816,_0x445aeb));}),this[_0x2f4f('0x1a')](_0x193816,_0x2f4f('0x41'),()=>{this[_0x2f4f('0x1c')](_0x193816,_0x2f4f('0x2f'));}),this['listenTo'](_0x193816,'change:bottom',()=>{this['_recalculate'](_0x193816,_0x2f4f('0x9'));}),this[_0x2f4f('0x3a')](_0x193816);const _0x37bc83=this[_0x2f4f('0x48')](_0x193816);if(_0x37bc83)this[_0x2f4f('0xd')](_0x37bc83,_0x193816)||this[_0x2f4f('0x3a')](_0x193816);else this['_alignToTargetRect'](_0x193816);return this[_0x2f4f('0x39')](),this[_0x2f4f('0x21')][_0x2f4f('0x25')][_0x2f4f('0x26')](_0x193816),_0x193816;}[_0x2f4f('0x1d')](_0x785ed8){if(!_0x785ed8[_0x2f4f('0xf')][_0x2f4f('0x3e')])return;const _0x5cd91d=this[_0x2f4f('0x48')](_0x785ed8);if(!_0x5cd91d)return;const _0x3d1db6=this[_0x2f4f('0x18')]['get'](_0x5cd91d),_0x1c3dac=this[_0x2f4f('0x2a')];_0x1c3dac&&_0x1c3dac===_0x3d1db6?this['_alignAfterItem'](_0x5cd91d,_0x785ed8):this[_0x2f4f('0x31')](_0x785ed8,_0x5cd91d);}[_0x2f4f('0x14')](_0x44cae9){if(!_0x44cae9['content'][_0x2f4f('0x3e')])return;const _0x2e9c98=this[_0x2f4f('0xa')](_0x44cae9);if(!_0x2e9c98)return;const _0x1d16a2=this[_0x2f4f('0x18')][_0x2f4f('0x45')](_0x2e9c98),_0x4157ef=this[_0x2f4f('0x44')][_0x2f4f('0x24')][_0x2f4f('0x45')]('sidebar.preventScrollOutOfView'),_0x394f30=this[_0x2f4f('0x2a')];_0x394f30&&_0x394f30===_0x1d16a2&&_0x4157ef?(this[_0x2f4f('0x31')](_0x2e9c98,_0x44cae9),this[_0x2f4f('0xd')](_0x44cae9,_0x2e9c98)):_0x394f30&&_0x394f30===_0x1d16a2?this[_0x2f4f('0x31')](_0x2e9c98,_0x44cae9):this[_0x2f4f('0xd')](_0x44cae9,_0x2e9c98);}[_0x2f4f('0x1c')](_0x4a785b,_0xc78235){0x0===this[_0x2f4f('0x1e')][_0x2f4f('0x3e')]&&setTimeout(()=>{for(const {sidebarItemView:_0x4d895c,changedProp:_0xb80da7}of this[_0x2f4f('0x1e')])_0x2f4f('0x2f')===_0xb80da7?this['_alignForTopChange'](_0x4d895c):this[_0x2f4f('0x14')](_0x4d895c);this[_0x2f4f('0x1e')]=[];},0xa),this[_0x2f4f('0x1e')][_0x2f4f('0x42')]({'sidebarItemView':_0x4a785b,'changedProp':_0xc78235});}[_0x2f4f('0xc')](_0x2567c3){return this[_0x2f4f('0x5')][_0x2f4f('0x45')](_0x2567c3);}['destroy'](){this[_0x2f4f('0x32')](),this[_0x2f4f('0x21')][_0x2f4f('0x2')]();}[_0x2f4f('0x37')](_0x31227c){const _0x2acda7=this[_0x2f4f('0xc')](_0x31227c);this[_0x2f4f('0x32')](_0x2acda7),this[_0x2f4f('0x32')](_0x31227c[_0x2f4f('0x21')]),_0x2acda7[_0x2f4f('0x2')](),this[_0x2f4f('0x5')]['delete'](_0x31227c),this[_0x2f4f('0x18')][_0x2f4f('0xe')](_0x2acda7);}[_0x2f4f('0x2c')](){const _0x521a4f=new _0x14f71(this['context'][_0x2f4f('0x33')]);return _0x521a4f[_0x2f4f('0x27')](),this['on'](_0x2f4f('0x38'),(_0xf42670,_0x20d654,_0x39eccc,_0x114eef)=>{_0x114eef&&_0x521a4f[_0x2f4f('0x3f')](_0x2f4f('0x46')),_0x39eccc?_0x521a4f['bind'](_0x2f4f('0x46'))['to'](_0x39eccc,_0x2f4f('0x9')):_0x521a4f[_0x2f4f('0x46')]=null;}),_0x521a4f;}[_0x2f4f('0x39')](){var _0x5850d8;this[_0x2f4f('0x3')]=(null===(_0x5850d8=this['_annotations'])||void 0x0===_0x5850d8?void 0x0:_0x5850d8['last'])?this[_0x2f4f('0xc')](this['_annotations'][_0x2f4f('0x7')]):null;}[_0x2f4f('0x48')](_0x47d118){var _0x5d07e4;const _0x2b064a=this[_0x2f4f('0x18')]['get'](_0x47d118),_0x5bd1d0=_0x2b064a&&(null===(_0x5d07e4=this[_0x2f4f('0x2e')])||void 0x0===_0x5d07e4?void 0x0:_0x5d07e4[_0x2f4f('0x45')](this[_0x2f4f('0x2e')][_0x2f4f('0x3c')](_0x2b064a)-0x1));return _0x5bd1d0&&this[_0x2f4f('0xc')](_0x5bd1d0)||null;}[_0x2f4f('0xa')](_0x491186){var _0x18b0dc;const _0x449427=this['_sidebarItemViewToAnnotation'][_0x2f4f('0x45')](_0x491186),_0x28f760=_0x449427&&(null===(_0x18b0dc=this['_annotations'])||void 0x0===_0x18b0dc?void 0x0:_0x18b0dc[_0x2f4f('0x45')](this['_annotations'][_0x2f4f('0x3c')](_0x449427)+0x1));return _0x28f760&&this[_0x2f4f('0xc')](_0x28f760)||null;}['_alignBeforeItem'](_0x5ab0bc,_0x4a540a){_0x5ab0bc[_0x2f4f('0x6')]();const _0x52d234=H(_0x4a540a[_0x2f4f('0x9')]+this[_0x2f4f('0x2b')],_0x5ab0bc[_0x2f4f('0x2f')]);return!!_0x52d234&&(this[_0x2f4f('0x36')](_0x4a540a,_0x4a540a['top']-_0x52d234),!0x0);}[_0x2f4f('0xd')](_0x469198,_0x13cb48){_0x469198[_0x2f4f('0x6')]();const _0x2c7e97=H(_0x469198[_0x2f4f('0x9')]+this[_0x2f4f('0x2b')],_0x13cb48[_0x2f4f('0x2f')]);return!!_0x2c7e97&&(this[_0x2f4f('0x36')](_0x13cb48,_0x13cb48[_0x2f4f('0x2f')]+_0x2c7e97,!0x1),!0x0);}[_0x2f4f('0x3a')](_0x5d0a46){const _0xd8919e=this['_sidebarItemViewToAnnotation'][_0x2f4f('0x45')](_0x5d0a46);if(!_0xd8919e||!_0xd8919e[_0x2f4f('0x16')]||!_0xd8919e[_0x2f4f('0x4')])return;const _0x79cdb9=this['_getTargetTop'](_0xd8919e,_0xd8919e['targetRect']);this[_0x2f4f('0x36')](_0x5d0a46,_0x79cdb9);}[_0x2f4f('0x17')](_0x52520a,_0x4fb27e){if(null===_0x4fb27e)return 0x0;if(_0x52520a[_0x2f4f('0x16')]instanceof _0x1ea5c1)return _0x4fb27e[_0x2f4f('0x2f')];{const _0xc71f05=new _0x1ea5c1(this[_0x2f4f('0x21')][_0x2f4f('0x20')])[_0x2f4f('0x2f')];return _0x4fb27e[_0x2f4f('0x2f')]-_0xc71f05;}}[_0x2f4f('0x36')](_0x25b0e0,_0x1cd00c,_0x17db7b=this['context'][_0x2f4f('0x24')]['get'](_0x2f4f('0x2d'))){_0x17db7b&&(_0x1cd00c=Math[_0x2f4f('0x47')](_0x1cd00c,this['_getMaxAvailableTop'](_0x25b0e0))),_0x25b0e0['top']=_0x1cd00c;}[_0x2f4f('0x0')](_0x2f4ea8){let _0x5ac425=this[_0x2f4f('0x48')](_0x2f4ea8),_0x2c29ca=0x0;for(;_0x5ac425;)_0x5ac425[_0x2f4f('0x6')](),_0x2c29ca+=this['_spaceBetweenItems']+_0x5ac425[_0x2f4f('0x23')],_0x5ac425=this[_0x2f4f('0x48')](_0x5ac425);return _0x2c29ca;}}function H(_0x471edb,_0x20d877){return Math[_0x2f4f('0x47')](_0x471edb-_0x20d877,0x0);}function y(_0x2a6bf4){return null!==_0x2a6bf4&&_0x2f4f('0x10')==typeof _0x2a6bf4&&0x1===_0x2a6bf4[_0x2f4f('0x43')];}
23
+ const _0x7236=['_sidebarItemViewToAnnotation','stopListening','_targetTop','_getItemAfter','_lastItem','context','_getTargetTop','view','sidebar-attachtocontainer-missing-container','_detachFromContainer','element','isAnimationDisabled','targetRect','_activeAnnotation','class','config','pluginName','listenTo','updateHeight','max','target','rearrange','init','define','unbind','_destroySidebarItemView','_createSidebarView','_setItemTop','length','sidebar.container','_recalculate','addAnnotation','change:top','bottom','push','bind','_getMaxAvailableTop','isActive','_attachToContainer','appendChild','top','last','getSidebarItemView','remove','_alignForTopChange','_alignBeforeItem','_annotations','Sidebar','add','_updateLastItem','locale','sidebar.preventScrollOutOfView','_alignForBottomChange','_annotationToSidebarItemView','delete','refresh','object','minHeight','_recalculateBuffer','setContainer','list','_spaceBetweenItems','content','_alignAfterItem','get','container','_getItemBefore','_alignToTargetRect','set','change:targetRect'];(function(_0x19422b,_0x7236c5){const _0x3641a4=function(_0x5aa0c5){while(--_0x5aa0c5){_0x19422b['push'](_0x19422b['shift']());}};_0x3641a4(++_0x7236c5);}(_0x7236,0xce));const _0x3641=function(_0x19422b,_0x7236c5){_0x19422b=_0x19422b-0x0;let _0x3641a4=_0x7236[_0x19422b];return _0x3641a4;};import{ContextPlugin as _0x2213e1}from'ckeditor5/src/core.js';import{Rect as _0x1e130b,CKEditorError as _0x207042}from'ckeditor5/src/utils.js';import _0x30bccf from'./view/sidebarview.js';import _0x4ea60b from'./view/sidebaritemview.js';export default class z extends _0x2213e1{static get[_0x3641('0x14')](){return _0x3641('0x33');}constructor(_0x2dab22){super(_0x2dab22),this[_0x3641('0x2')](_0x3641('0x8'),void 0x0),this[_0x3641('0xb')]=this[_0x3641('0x1e')](),this[_0x3641('0x2')](_0x3641('0x45'),null),this[_0x3641('0x41')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x3641('0x39')]=new Map(),this['context'][_0x3641('0x13')][_0x3641('0x1b')](_0x3641('0x37'),!0x1),this['_annotations']=null,this[_0x3641('0x11')]=null,this[_0x3641('0x3e')]=[];}[_0x3641('0x1a')](){const _0x144fd3=this[_0x3641('0x9')][_0x3641('0x13')][_0x3641('0x44')](_0x3641('0x21'));_0x144fd3&&this[_0x3641('0x3f')](_0x144fd3);}[_0x3641('0x3f')](_0xc9d342){if(!y(_0xc9d342))throw new _0x207042('sidebar-setcontainer-invalid-element');this[_0x3641('0x45')]=_0xc9d342;}[_0x3641('0x2a')]({viewClass:_0x19a42b='',spaceBetweenItems:_0x362804=0x19}={}){if(!y(this[_0x3641('0x45')]))throw new _0x207042(_0x3641('0xc'),this);this['container'][_0x3641('0x2b')](this[_0x3641('0xb')][_0x3641('0xe')]),this[_0x3641('0xb')][_0x3641('0x12')]=_0x19a42b,this[_0x3641('0x41')]=_0x362804;}[_0x3641('0x19')]({removedAnnotation:_0x431a86,previousAnnotation:_0x5376d5,nextAnnotation:_0x223ca7}){const _0x45b867=this[_0x3641('0x2e')](_0x431a86);this['view'][_0x3641('0x40')][_0x3641('0x2f')](_0x45b867),this[_0x3641('0x1d')](_0x431a86),_0x5376d5&&this[_0x3641('0x1')](this['getSidebarItemView'](_0x5376d5)),_0x223ca7&&this[_0x3641('0x1')](this[_0x3641('0x2e')](_0x223ca7)),this[_0x3641('0x35')]();}[_0x3641('0x3b')]({blurredAnnotation:_0x42e0dc,activatedAnnotation:_0x20c386,disableAnimationOnActivatedAnnotation:_0x2689bc}){if(this[_0x3641('0x11')]=_0x20c386,_0x42e0dc){_0x42e0dc[_0x3641('0x29')]=!0x1;const _0x108dce=this[_0x3641('0x2e')](_0x42e0dc);_0x108dce&&_0x2689bc&&(_0x108dce[_0x3641('0xf')]=!0x1);}if(_0x20c386){const _0x46b449=this[_0x3641('0x2e')](_0x20c386);_0x46b449&&(_0x20c386[_0x3641('0x29')]=!0x0,_0x2689bc&&(_0x46b449[_0x3641('0xf')]=!0x0,_0x46b449['top']+=0x1),this['_alignToTargetRect'](_0x46b449));}}[_0x3641('0xd')](_0x46d393){if(this[_0x3641('0xb')]['element'][_0x3641('0x2f')](),_0x46d393)for(const _0x1bdf64 of _0x46d393)this[_0x3641('0x1d')](_0x1bdf64);this['view']['list']['clear'](),this[_0x3641('0xb')][_0x3641('0x12')]='',this['_lastItem']=null;}[_0x3641('0x23')](_0x34e656,_0x32f010){_0x32f010||(_0x32f010=_0x34e656[_0x3641('0xb')]);const _0x1bc975=new _0x4ea60b(this[_0x3641('0x9')][_0x3641('0x36')]);this[_0x3641('0x4')][_0x3641('0x2')](_0x1bc975,_0x34e656),this[_0x3641('0x39')][_0x3641('0x2')](_0x34e656,_0x1bc975),_0x1bc975[_0x3641('0x42')]['add'](_0x32f010),this[_0x3641('0x15')](_0x34e656[_0x3641('0xb')],_0x3641('0x3'),(_0xb25dcc,_0x41c8f2,_0x2bfb9e)=>{const _0x3ee14f=this[_0x3641('0xa')](_0x34e656,_0x2bfb9e);_0x1bc975['_targetTop']!=_0x3ee14f&&(_0x1bc975[_0x3641('0x6')]=_0x3ee14f,this[_0x3641('0x1f')](_0x1bc975,_0x3ee14f));}),this['listenTo'](_0x1bc975,_0x3641('0x24'),()=>{this['_recalculate'](_0x1bc975,_0x3641('0x2c'));}),this[_0x3641('0x15')](_0x1bc975,'change:bottom',()=>{this[_0x3641('0x22')](_0x1bc975,'bottom');}),this[_0x3641('0x1')](_0x1bc975);const _0x45aca4=this['_getItemBefore'](_0x1bc975);if(_0x45aca4)this[_0x3641('0x43')](_0x45aca4,_0x1bc975)||this[_0x3641('0x1')](_0x1bc975);else this['_alignToTargetRect'](_0x1bc975);return this['_updateLastItem'](),this[_0x3641('0xb')][_0x3641('0x40')][_0x3641('0x34')](_0x1bc975),_0x1bc975;}[_0x3641('0x30')](_0xaf087d){if(!_0xaf087d['content']['length'])return;const _0x2aacdb=this[_0x3641('0x0')](_0xaf087d);if(!_0x2aacdb)return;const _0x329ff5=this['_sidebarItemViewToAnnotation'][_0x3641('0x44')](_0x2aacdb),_0x3dc3a2=this[_0x3641('0x11')];_0x3dc3a2&&_0x3dc3a2===_0x329ff5?this[_0x3641('0x43')](_0x2aacdb,_0xaf087d):this['_alignBeforeItem'](_0xaf087d,_0x2aacdb);}[_0x3641('0x38')](_0xf977ac){if(!_0xf977ac[_0x3641('0x42')]['length'])return;const _0x276eb5=this['_getItemAfter'](_0xf977ac);if(!_0x276eb5)return;const _0x222355=this[_0x3641('0x4')]['get'](_0x276eb5),_0x56f864=this[_0x3641('0x9')][_0x3641('0x13')][_0x3641('0x44')](_0x3641('0x37')),_0x3d9fb3=this[_0x3641('0x11')];_0x3d9fb3&&_0x3d9fb3===_0x222355&&_0x56f864?(this['_alignBeforeItem'](_0x276eb5,_0xf977ac),this['_alignAfterItem'](_0xf977ac,_0x276eb5)):_0x3d9fb3&&_0x3d9fb3===_0x222355?this[_0x3641('0x31')](_0x276eb5,_0xf977ac):this[_0x3641('0x43')](_0xf977ac,_0x276eb5);}[_0x3641('0x22')](_0x38008a,_0x2a05ed){0x0===this['_recalculateBuffer'][_0x3641('0x20')]&&setTimeout(()=>{for(const {sidebarItemView:_0x514fe9,changedProp:_0x40e8f9}of this['_recalculateBuffer'])_0x3641('0x2c')===_0x40e8f9?this[_0x3641('0x30')](_0x514fe9):this[_0x3641('0x38')](_0x514fe9);this[_0x3641('0x3e')]=[];},0xa),this[_0x3641('0x3e')][_0x3641('0x26')]({'sidebarItemView':_0x38008a,'changedProp':_0x2a05ed});}[_0x3641('0x2e')](_0x58278e){return this['_annotationToSidebarItemView'][_0x3641('0x44')](_0x58278e);}['destroy'](){this[_0x3641('0x5')](),this[_0x3641('0xb')]['destroy']();}[_0x3641('0x1d')](_0x5d0277){const _0xbd05dd=this[_0x3641('0x2e')](_0x5d0277);this[_0x3641('0x5')](_0xbd05dd),this[_0x3641('0x5')](_0x5d0277[_0x3641('0xb')]),_0xbd05dd['destroy'](),this[_0x3641('0x39')][_0x3641('0x3a')](_0x5d0277),this['_sidebarItemViewToAnnotation'][_0x3641('0x3a')](_0xbd05dd);}[_0x3641('0x1e')](){const _0x4c5081=new _0x30bccf(this['context'][_0x3641('0x36')]);return _0x4c5081['render'](),this['on']('change:_lastItem',(_0x3535e5,_0x5aa5fa,_0x389d5b,_0x3c3181)=>{_0x3c3181&&_0x4c5081[_0x3641('0x1c')](_0x3641('0x3d')),_0x389d5b?_0x4c5081[_0x3641('0x27')]('minHeight')['to'](_0x389d5b,'bottom'):_0x4c5081[_0x3641('0x3d')]=null;}),_0x4c5081;}[_0x3641('0x35')](){var _0x36b102;this['_lastItem']=(null===(_0x36b102=this[_0x3641('0x32')])||void 0x0===_0x36b102?void 0x0:_0x36b102[_0x3641('0x2d')])?this[_0x3641('0x2e')](this[_0x3641('0x32')][_0x3641('0x2d')]):null;}['_getItemBefore'](_0x8c9b1){var _0x5d255c;const _0x2b579c=this[_0x3641('0x4')][_0x3641('0x44')](_0x8c9b1),_0x2eda34=_0x2b579c&&(null===(_0x5d255c=this['_annotations'])||void 0x0===_0x5d255c?void 0x0:_0x5d255c['get'](this['_annotations']['getIndex'](_0x2b579c)-0x1));return _0x2eda34&&this['getSidebarItemView'](_0x2eda34)||null;}[_0x3641('0x7')](_0x1111f5){var _0x3c43ef;const _0x1501ad=this[_0x3641('0x4')][_0x3641('0x44')](_0x1111f5),_0x3beb21=_0x1501ad&&(null===(_0x3c43ef=this[_0x3641('0x32')])||void 0x0===_0x3c43ef?void 0x0:_0x3c43ef[_0x3641('0x44')](this['_annotations']['getIndex'](_0x1501ad)+0x1));return _0x3beb21&&this['getSidebarItemView'](_0x3beb21)||null;}[_0x3641('0x31')](_0x1074f8,_0x39220e){_0x1074f8['updateHeight']();const _0x38bbd3=M(_0x39220e[_0x3641('0x25')]+this[_0x3641('0x41')],_0x1074f8[_0x3641('0x2c')]);return!!_0x38bbd3&&(this['_setItemTop'](_0x39220e,_0x39220e['top']-_0x38bbd3),!0x0);}[_0x3641('0x43')](_0x22a94f,_0x5f2782){_0x22a94f[_0x3641('0x16')]();const _0x31cdae=M(_0x22a94f[_0x3641('0x25')]+this[_0x3641('0x41')],_0x5f2782[_0x3641('0x2c')]);return!!_0x31cdae&&(this[_0x3641('0x1f')](_0x5f2782,_0x5f2782[_0x3641('0x2c')]+_0x31cdae,!0x1),!0x0);}[_0x3641('0x1')](_0x52345e){const _0x2233d8=this[_0x3641('0x4')]['get'](_0x52345e);if(!_0x2233d8||!_0x2233d8[_0x3641('0x18')]||!_0x2233d8[_0x3641('0x10')])return;const _0x31e996=this['_getTargetTop'](_0x2233d8,_0x2233d8[_0x3641('0x10')]);this[_0x3641('0x1f')](_0x52345e,_0x31e996);}['_getTargetTop'](_0x5080f5,_0xf67b20){if(null===_0xf67b20)return 0x0;if(_0x5080f5[_0x3641('0x18')]instanceof _0x1e130b)return _0xf67b20[_0x3641('0x2c')];{const _0x370112=new _0x1e130b(this[_0x3641('0xb')][_0x3641('0xe')])[_0x3641('0x2c')];return _0xf67b20[_0x3641('0x2c')]-_0x370112;}}['_setItemTop'](_0xc99b7a,_0x31e660,_0x47192d=this[_0x3641('0x9')][_0x3641('0x13')]['get'](_0x3641('0x37'))){_0x47192d&&(_0x31e660=Math[_0x3641('0x17')](_0x31e660,this[_0x3641('0x28')](_0xc99b7a))),_0xc99b7a[_0x3641('0x2c')]=_0x31e660;}[_0x3641('0x28')](_0xcb2e07){let _0x59fc23=this['_getItemBefore'](_0xcb2e07),_0x57e12f=0x0;for(;_0x59fc23;)_0x59fc23[_0x3641('0x16')](),_0x57e12f+=this['_spaceBetweenItems']+_0x59fc23['height'],_0x59fc23=this[_0x3641('0x0')](_0x59fc23);return _0x57e12f;}}function M(_0x7050d5,_0x5039ba){return Math[_0x3641('0x17')](_0x7050d5-_0x5039ba,0x0);}function y(_0xdc3d55){return null!==_0xdc3d55&&_0x3641('0x3c')==typeof _0xdc3d55&&0x1===_0xdc3d55['nodeType'];}
@@ -1,13 +1,13 @@
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/view/annotationcounterbuttonview
7
7
  * @publicApi
8
8
  */
9
- import { ButtonView, View } from 'ckeditor5/src/ui';
10
- import type { Locale } from 'ckeditor5/src/utils';
9
+ import { ButtonView, View } from 'ckeditor5/src/ui.js';
10
+ import type { Locale } from 'ckeditor5/src/utils.js';
11
11
  /**
12
12
  * A view used in the sidebar by {@link module:comments/annotations/narrowsidebar~NarrowSidebar}.
13
13
  */
@@ -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 _0x513d=['_badge','bindTemplate','bind','toString','isDirty','ck-annotation-counter__badge--edit-mode','counterView','span','number','icon','ck-annotation-counter__badge','set','extendTemplate','ck-annotation-counter__badge--','...','annotationType'];(function(_0x1915ae,_0x513d5b){const _0x16bcd2=function(_0x33e515){while(--_0x33e515){_0x1915ae['push'](_0x1915ae['shift']());}};_0x16bcd2(++_0x513d5b);}(_0x513d,0xcd));const _0x16bc=function(_0x1915ae,_0x513d5b){_0x1915ae=_0x1915ae-0x0;let _0x16bcd2=_0x513d[_0x1915ae];return _0x16bcd2;};import{ButtonView as _0x1c9bd9,View as _0x583c6c}from'ckeditor5/src/ui';import _0x586ec2 from'../../../theme/icons/add-comment.svg';export default class D extends _0x1c9bd9{constructor(_0x1e2f31){super(_0x1e2f31);const _0x44d7da=this[_0x16bc('0x4')];this[_0x16bc('0xe')](_0x16bc('0x7'),!0x1),this[_0x16bc('0xe')](_0x16bc('0xb'),0x0),this[_0x16bc('0x5')]('_badge')['to'](this,_0x16bc('0x7'),this,_0x16bc('0xb'),(_0x180a5e,_0x5d7669)=>_0x180a5e?_0x16bc('0x1'):_0x5d7669[_0x16bc('0x6')]()),this[_0x16bc('0xe')](_0x16bc('0x2'),''),this[_0x16bc('0xc')]=_0x586ec2,this[_0x16bc('0xf')]({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new _0x583c6c(),this[_0x16bc('0x9')]['setTemplate']({'tag':_0x16bc('0xa'),'attributes':{'class':[_0x16bc('0xd'),_0x44d7da['to'](_0x16bc('0x2'),_0x27750a=>_0x16bc('0x0')+_0x27750a),_0x44d7da['if'](_0x16bc('0x7'),_0x16bc('0x8'))]},'children':[{'text':_0x44d7da['to'](_0x16bc('0x3'))}]}),this['children']['add'](this['counterView']);}}
23
+ const _0xd926=['ck-annotation-counter','counterView','bindTemplate','isDirty','number','span','extendTemplate','ck-annotation-counter__badge--','bind','ck-annotation-counter__badge--edit-mode','setTemplate','add','children','_badge','icon','...'];(function(_0x34d53e,_0xd92676){const _0x2ddfcd=function(_0x574b21){while(--_0x574b21){_0x34d53e['push'](_0x34d53e['shift']());}};_0x2ddfcd(++_0xd92676);}(_0xd926,0x142));const _0x2ddf=function(_0x34d53e,_0xd92676){_0x34d53e=_0x34d53e-0x0;let _0x2ddfcd=_0xd926[_0x34d53e];return _0x2ddfcd;};import{ButtonView as _0x525de9,View as _0x46d5b6}from'ckeditor5/src/ui.js';import _0x3e8815 from'../../../theme/icons/add-comment.svg';export default class D extends _0x525de9{constructor(_0x445e22){super(_0x445e22);const _0x3cb3df=this[_0x2ddf('0x0')];this['set'](_0x2ddf('0x1'),!0x1),this['set'](_0x2ddf('0x2'),0x0),this[_0x2ddf('0x6')](_0x2ddf('0xb'))['to'](this,_0x2ddf('0x1'),this,_0x2ddf('0x2'),(_0x5d9c38,_0x5e6234)=>_0x5d9c38?_0x2ddf('0xd'):_0x5e6234['toString']()),this['set']('annotationType',''),this[_0x2ddf('0xc')]=_0x3e8815,this[_0x2ddf('0x4')]({'attributes':{'class':[_0x2ddf('0xe')]}}),this['counterView']=new _0x46d5b6(),this[_0x2ddf('0xf')][_0x2ddf('0x8')]({'tag':_0x2ddf('0x3'),'attributes':{'class':['ck-annotation-counter__badge',_0x3cb3df['to']('annotationType',_0x12ec35=>_0x2ddf('0x5')+_0x12ec35),_0x3cb3df['if'](_0x2ddf('0x1'),_0x2ddf('0x7'))]},'children':[{'text':_0x3cb3df['to'](_0x2ddf('0xb'))}]}),this[_0x2ddf('0xa')][_0x2ddf('0x9')](this['counterView']);}}
@@ -1,13 +1,13 @@
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/view/annotationview
7
7
  * @publicApi
8
8
  */
9
- import { View, type ViewCollection } from 'ckeditor5/src/ui';
10
- import { FocusTracker, KeystrokeHandler, type Rect, type Locale } from 'ckeditor5/src/utils';
9
+ import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
10
+ import { FocusTracker, KeystrokeHandler, type Rect, type Locale } from 'ckeditor5/src/utils.js';
11
11
  import '../../../theme/annotation.css';
12
12
  /**
13
13
  * A wrapping view for any view added to the `Annotations` plugin.
@@ -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 _0x1ef4=['attach','focusTracker','add','mainView','ck-annotation-wrapper--active','targetRect','type','destroy','isActive','setTemplate','content','isDirty','Esc','bindTemplate','clear','ck-annotation-wrapper','element','createCollection','set','_updateHeight','ck-rounded-corners','clientHeight','div','listenTo','fire','height','_mutationObserver','keystrokes','length','render'];(function(_0x5a7216,_0x1ef469){const _0x19085f=function(_0x30aa24){while(--_0x30aa24){_0x5a7216['push'](_0x5a7216['shift']());}};_0x19085f(++_0x1ef469);}(_0x1ef4,0x1e0));const _0x1908=function(_0x5a7216,_0x1ef469){_0x5a7216=_0x5a7216-0x0;let _0x19085f=_0x1ef4[_0x5a7216];return _0x19085f;};import{View as _0x131e2c}from'ckeditor5/src/ui';import{FocusTracker as _0x476734,KeystrokeHandler as _0x4f90aa,uid as _0x28a9f}from'ckeditor5/src/utils';import _0x348e6a from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x131e2c{constructor(_0x4098ce,_0x19fc59){super(_0x4098ce),this['id']=_0x28a9f(),this[_0x1908('0x1')]=new _0x476734(),this[_0x1908('0x1b')]=new _0x4f90aa(),this[_0x1908('0x1b')]['set'](_0x1908('0xc'),(_0x27c3b6,_0x3a6742)=>this[_0x1908('0x18')](_0x1908('0xc'),_0x3a6742)),this[_0x1908('0x12')](_0x1908('0x5'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x1908('0x12')](_0x1908('0x19'),0x0),this[_0x1908('0x12')]('isActive',!0x1),this[_0x1908('0x12')](_0x1908('0xb'),!0x1),this['set'](_0x1908('0x1c'),0x0),this[_0x1908('0x12')](_0x1908('0x6'),''),this[_0x1908('0x1a')]=_0x348e6a(()=>this[_0x1908('0x13')]()),this[_0x1908('0xa')]=this[_0x1908('0x11')](),this['content'][_0x1908('0x2')](_0x19fc59),this[_0x1908('0x3')]=_0x19fc59;const _0x217acc=this[_0x1908('0xd')];this[_0x1908('0x9')]({'tag':_0x1908('0x16'),'attributes':{'class':['ck',_0x1908('0xf'),_0x1908('0x14'),_0x217acc['if'](_0x1908('0x8'),_0x1908('0x4'))],'tabindex':-0x1},'children':this[_0x1908('0xa')]});}[_0x1908('0x1d')](){super['render'](),this[_0x1908('0x1')]['add'](this[_0x1908('0x10')]),this[_0x1908('0x1b')][_0x1908('0x17')](this['element']),this['_mutationObserver'][_0x1908('0x0')](this[_0x1908('0x10')]);}['destroy'](){this[_0x1908('0xa')][_0x1908('0xe')](),this[_0x1908('0x1b')][_0x1908('0x7')](),this[_0x1908('0x1')][_0x1908('0x7')](),this[_0x1908('0x1a')]['detach'](),super[_0x1908('0x7')]();}['focus'](){this[_0x1908('0x10')]['focus']();}['_updateHeight'](){const _0xbe28ca=this[_0x1908('0x10')][_0x1908('0x15')];_0xbe28ca&&(this[_0x1908('0x19')]=_0xbe28ca);}}
23
+ const _0x59a8=['element','fire','targetRect','keystrokes','listenTo','setTemplate','_updateHeight','focusTracker','destroy','div','focus','bindTemplate','clear','height','_mutationObserver','ck-annotation-wrapper--active','set','render','Esc','length','isActive','attach','ck-annotation-wrapper','ck-rounded-corners','mainView','content','add'];(function(_0x3b53ff,_0x59a8c7){const _0x47abef=function(_0x335a44){while(--_0x335a44){_0x3b53ff['push'](_0x3b53ff['shift']());}};_0x47abef(++_0x59a8c7);}(_0x59a8,0x15d));const _0x47ab=function(_0x3b53ff,_0x59a8c7){_0x3b53ff=_0x3b53ff-0x0;let _0x47abef=_0x59a8[_0x3b53ff];return _0x47abef;};import{View as _0x435473}from'ckeditor5/src/ui.js';import{FocusTracker as _0x2fedbb,KeystrokeHandler as _0x2c3109,uid as _0x5606b4}from'ckeditor5/src/utils.js';import _0x5a2f01 from'../../utils/createmutationobserver.js';import'../../../theme/annotation.css';export default class V extends _0x435473{constructor(_0x231a30,_0x452e6b){super(_0x231a30),this['id']=_0x5606b4(),this[_0x47ab('0x9')]=new _0x2fedbb(),this[_0x47ab('0x5')]=new _0x2c3109(),this[_0x47ab('0x5')][_0x47ab('0x12')](_0x47ab('0x14'),(_0x351fbe,_0x2f7bda)=>this[_0x47ab('0x3')](_0x47ab('0x14'),_0x2f7bda)),this[_0x47ab('0x12')](_0x47ab('0x4'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x47ab('0x12')](_0x47ab('0xf'),0x0),this[_0x47ab('0x12')](_0x47ab('0x16'),!0x1),this['set']('isDirty',!0x1),this[_0x47ab('0x12')](_0x47ab('0x15'),0x0),this[_0x47ab('0x12')]('type',''),this[_0x47ab('0x10')]=_0x5a2f01(()=>this[_0x47ab('0x8')]()),this[_0x47ab('0x0')]=this['createCollection'](),this[_0x47ab('0x0')][_0x47ab('0x1')](_0x452e6b),this[_0x47ab('0x1a')]=_0x452e6b;const _0x37bf30=this[_0x47ab('0xd')];this[_0x47ab('0x7')]({'tag':_0x47ab('0xb'),'attributes':{'class':['ck',_0x47ab('0x18'),_0x47ab('0x19'),_0x37bf30['if'](_0x47ab('0x16'),_0x47ab('0x11'))],'tabindex':-0x1},'children':this[_0x47ab('0x0')]});}['render'](){super[_0x47ab('0x13')](),this[_0x47ab('0x9')][_0x47ab('0x1')](this[_0x47ab('0x2')]),this[_0x47ab('0x5')][_0x47ab('0x6')](this[_0x47ab('0x2')]),this[_0x47ab('0x10')][_0x47ab('0x17')](this[_0x47ab('0x2')]);}[_0x47ab('0xa')](){this[_0x47ab('0x0')][_0x47ab('0xe')](),this['keystrokes'][_0x47ab('0xa')](),this[_0x47ab('0x9')][_0x47ab('0xa')](),this[_0x47ab('0x10')]['detach'](),super[_0x47ab('0xa')]();}[_0x47ab('0xc')](){this[_0x47ab('0x2')][_0x47ab('0xc')]();}[_0x47ab('0x8')](){const _0x29cb04=this[_0x47ab('0x2')]['clientHeight'];_0x29cb04&&(this[_0x47ab('0xf')]=_0x29cb04);}}
@@ -1,13 +1,13 @@
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/view/sidebaritemview
7
7
  * @publicApi
8
8
  */
9
- import { View, type ViewCollection } from 'ckeditor5/src/ui';
10
- import { type Locale } from 'ckeditor5/src/utils';
9
+ import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
10
+ import { type Locale } from 'ckeditor5/src/utils.js';
11
11
  /**
12
12
  * A wrapper view that wraps given {@link module:ui/view~View} to display it as a {@link module:comments/annotations/sidebar~Sidebar} item.
13
13
  */
@@ -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 _0x4207=['render','ck-sidebar-item','createCollection','attach','bindTemplate','clear','ck-sidebar-item--no-animation','content','detach','set','height','isAnimationDisabled','top','clientHeight','div','updateHeight','_targetTop','_mutationObserver','destroy'];(function(_0x39065d,_0x42078c){const _0x51b8a8=function(_0x4b1d42){while(--_0x4b1d42){_0x39065d['push'](_0x39065d['shift']());}};_0x51b8a8(++_0x42078c);}(_0x4207,0x153));const _0x51b8=function(_0x39065d,_0x42078c){_0x39065d=_0x39065d-0x0;let _0x51b8a8=_0x4207[_0x39065d];return _0x51b8a8;};import{View as _0x2bd229}from'ckeditor5/src/ui';import{toUnit as _0x53dad8}from'ckeditor5/src/utils';import _0x37e4a1 from'../../utils/createmutationobserver';const jt=_0x53dad8('px');export default class C extends _0x2bd229{constructor(_0x4b3534){super(_0x4b3534),this[_0x51b8('0xc')]('top',0x0),this[_0x51b8('0xc')]('height',0x0),this['bind']('bottom')['to'](this,_0x51b8('0xf'),this,_0x51b8('0xd'),(_0x39f32d,_0x958224)=>_0x39f32d+_0x958224),this['set'](_0x51b8('0xe'),!0x1),this[_0x51b8('0x1')]=_0x37e4a1(()=>this[_0x51b8('0x12')]()),this[_0x51b8('0x0')]=null,this[_0x51b8('0xa')]=this[_0x51b8('0x5')]();const _0x5341a4=this[_0x51b8('0x7')];this['setTemplate']({'tag':_0x51b8('0x11'),'attributes':{'class':[_0x51b8('0x4'),_0x5341a4['to'](_0x51b8('0xe'),_0x2e7ad5=>_0x2e7ad5?_0x51b8('0x9'):'')],'style':{'top':_0x5341a4['to'](_0x51b8('0xf'),_0x1b4995=>jt(_0x1b4995))}},'children':this[_0x51b8('0xa')]});}[_0x51b8('0x3')](){super[_0x51b8('0x3')](),this[_0x51b8('0x1')][_0x51b8('0x6')](this['element']);}[_0x51b8('0x12')](){const _0x2ae946=this['element'][_0x51b8('0x10')];_0x2ae946&&(this[_0x51b8('0xd')]=_0x2ae946);}[_0x51b8('0x2')](){this[_0x51b8('0xa')][_0x51b8('0x8')](),this['_mutationObserver'][_0x51b8('0xb')](),super[_0x51b8('0x2')]();}}
23
+ const _0x44b4=['clientHeight','bind','bottom','set','height','top','updateHeight','clear','_mutationObserver','isAnimationDisabled','destroy','content','element','attach','render','div','createCollection','ck-sidebar-item--no-animation','_targetTop','bindTemplate'];(function(_0x4181e1,_0x44b423){const _0x441a13=function(_0x591fa2){while(--_0x591fa2){_0x4181e1['push'](_0x4181e1['shift']());}};_0x441a13(++_0x44b423);}(_0x44b4,0x177));const _0x441a=function(_0x4181e1,_0x44b423){_0x4181e1=_0x4181e1-0x0;let _0x441a13=_0x44b4[_0x4181e1];return _0x441a13;};import{View as _0x43d02e}from'ckeditor5/src/ui.js';import{toUnit as _0x31835c}from'ckeditor5/src/utils.js';import _0x362019 from'../../utils/createmutationobserver.js';const Ht=_0x31835c('px');export default class C extends _0x43d02e{constructor(_0x33fdf2){super(_0x33fdf2),this[_0x441a('0x8')](_0x441a('0xa'),0x0),this['set'](_0x441a('0x9'),0x0),this[_0x441a('0x6')](_0x441a('0x7'))['to'](this,_0x441a('0xa'),this,_0x441a('0x9'),(_0x3f00ff,_0x2413b7)=>_0x3f00ff+_0x2413b7),this[_0x441a('0x8')](_0x441a('0xe'),!0x1),this[_0x441a('0xd')]=_0x362019(()=>this['updateHeight']()),this[_0x441a('0x3')]=null,this[_0x441a('0x10')]=this[_0x441a('0x1')]();const _0x1ce0bc=this[_0x441a('0x4')];this['setTemplate']({'tag':_0x441a('0x0'),'attributes':{'class':['ck-sidebar-item',_0x1ce0bc['to'](_0x441a('0xe'),_0x5b675c=>_0x5b675c?_0x441a('0x2'):'')],'style':{'top':_0x1ce0bc['to'](_0x441a('0xa'),_0x558a22=>Ht(_0x558a22))}},'children':this['content']});}[_0x441a('0x13')](){super[_0x441a('0x13')](),this['_mutationObserver'][_0x441a('0x12')](this[_0x441a('0x11')]);}[_0x441a('0xb')](){const _0x57c60f=this[_0x441a('0x11')][_0x441a('0x5')];_0x57c60f&&(this[_0x441a('0x9')]=_0x57c60f);}[_0x441a('0xf')](){this['content'][_0x441a('0xc')](),this[_0x441a('0xd')]['detach'](),super['destroy']();}}
@@ -1,13 +1,13 @@
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/view/sidebarview
7
7
  * @publicApi
8
8
  */
9
- import { View, type ViewCollection } from 'ckeditor5/src/ui';
10
- import { type Locale } from 'ckeditor5/src/utils';
9
+ import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
10
+ import { type Locale } from 'ckeditor5/src/utils.js';
11
11
  import '../../../theme/sidebar.css';
12
12
  /**
13
13
  * The sidebar view class that displays the collection of sidebar item 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 _0x1ddc=['ck-reset','class','div','ck-sidebar','minHeight','set','list','createCollection','bindTemplate'];(function(_0x1358d3,_0x1ddcb1){const _0x24b0bd=function(_0x2c3aec){while(--_0x2c3aec){_0x1358d3['push'](_0x1358d3['shift']());}};_0x24b0bd(++_0x1ddcb1);}(_0x1ddc,0xb5));const _0x24b0=function(_0x1358d3,_0x1ddcb1){_0x1358d3=_0x1358d3-0x0;let _0x24b0bd=_0x1ddc[_0x1358d3];return _0x24b0bd;};import{View as _0x1e6c09}from'ckeditor5/src/ui';import{toUnit as _0x20e272}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const jt=_0x20e272('px');export default class T extends _0x1e6c09{constructor(_0x4efcb0){super(_0x4efcb0);const _0x2a3a98=this[_0x24b0('0x7')];this[_0x24b0('0x4')](_0x24b0('0x3'),0x0),this[_0x24b0('0x4')]('class',''),this[_0x24b0('0x5')]=this[_0x24b0('0x6')](),this['setTemplate']({'tag':_0x24b0('0x1'),'attributes':{'class':['ck',_0x24b0('0x2'),_0x24b0('0x8'),_0x2a3a98['to'](_0x24b0('0x0'))],'style':{'minHeight':_0x2a3a98['to']('minHeight',_0x137e64=>'number'==typeof _0x137e64?jt(_0x137e64+0xa):null)}},'children':this['list']});}}
23
+ const _0x3434=['ck-reset','set','bindTemplate','ck-sidebar','class','div','setTemplate','minHeight','number'];(function(_0x2c3074,_0x3434a1){const _0x2b5480=function(_0x5ac4fe){while(--_0x5ac4fe){_0x2c3074['push'](_0x2c3074['shift']());}};_0x2b5480(++_0x3434a1);}(_0x3434,0x11d));const _0x2b54=function(_0x2c3074,_0x3434a1){_0x2c3074=_0x2c3074-0x0;let _0x2b5480=_0x3434[_0x2c3074];return _0x2b5480;};import{View as _0x319c71}from'ckeditor5/src/ui.js';import{toUnit as _0x57bb28}from'ckeditor5/src/utils.js';import'../../../theme/sidebar.css';const Ht=_0x57bb28('px');export default class T extends _0x319c71{constructor(_0xd5a9d0){super(_0xd5a9d0);const _0x3fe27e=this[_0x2b54('0x5')];this[_0x2b54('0x4')]('minHeight',0x0),this['set']('class',''),this['list']=this['createCollection'](),this[_0x2b54('0x0')]({'tag':_0x2b54('0x8'),'attributes':{'class':['ck',_0x2b54('0x6'),_0x2b54('0x3'),_0x3fe27e['to'](_0x2b54('0x7'))],'style':{'minHeight':_0x3fe27e['to'](_0x2b54('0x1'),_0x5bc794=>_0x2b54('0x2')==typeof _0x5bc794?Ht(_0x5bc794+0xa):null)}},'children':this['list']});}}
@@ -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/widesidebar
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 type Annotation from './annotation';
13
- import type { default as AnnotationCollection } from './annotationcollection';
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 type Annotation from './annotation.js';
13
+ import type { default as AnnotationCollection } from './annotationcollection.js';
14
14
  /**
15
15
  * The wide sidebar UI for displaying annotations.
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 _0x3966=['has','from','WideSidebar','isAttached','set:container','_annotations','setActiveAnnotation','init','set','_activeAnnotation','annotations','editors','activeAnnotation','rearrange','wideSidebar','addEventListener','_integrateWithEditorAnnotations','uiUpdate','switchTo','ready','register','refreshPositioning','plugins','widesidebar-detach-not-attached','requires','attach','_refreshPositioningDebounced','hasDomSelection','resize','_destroyEditorAnnotationsIntegration','remove','pluginName','blur','container','stop','removeEventListener','detach','off','context','refresh','high','updateTargetRect','get','listenTo','_attachToContainer','stopListening','change:container','EditorAnnotations','add','_editorAnnotations'];(function(_0x12310f,_0x3966e4){const _0x9d6534=function(_0x1bc918){while(--_0x1bc918){_0x12310f['push'](_0x12310f['shift']());}};_0x9d6534(++_0x3966e4);}(_0x3966,0xb0));const _0x9d65=function(_0x12310f,_0x3966e4){_0x12310f=_0x12310f-0x0;let _0x9d6534=_0x3966[_0x12310f];return _0x9d6534;};import{ContextPlugin as _0x4c0ab8,Context as _0x212b0b}from'ckeditor5/src/core';import _0x45e6c2 from'./annotationsuis';import _0x5af65a from'./sidebar';import{CKEditorError as _0x37b147,Collection as _0x27c137}from'ckeditor5/src/utils';import{debounce as _0x558e03}from'lodash-es';import _0xcacbe from'./editorannotations';export default class i extends _0x4c0ab8{static get[_0x9d65('0x30')](){return[_0x5af65a,_0x45e6c2];}static get[_0x9d65('0x5')](){return _0x9d65('0x1a');}constructor(_0x3d07e5){super(_0x3d07e5),this[_0x9d65('0x1b')]=!0x1,this[_0x9d65('0x20')](_0x9d65('0x24'),null),this[_0x9d65('0x22')]=null,this[_0x9d65('0x17')]=new _0x27c137(),this[_0x9d65('0x0')]=_0x558e03(()=>{this[_0x9d65('0x22')][_0x9d65('0x2d')]();},0xfa,{'leading':!0x1});}[_0x9d65('0x1f')](){const _0x595f47=this[_0x9d65('0xc')][_0x9d65('0x2e')][_0x9d65('0x10')](_0x45e6c2),_0x6c249c=this[_0x9d65('0xc')][_0x9d65('0x2e')][_0x9d65('0x10')](_0x5af65a);_0x595f47[_0x9d65('0x2c')](_0x9d65('0x26'),this),_0x6c249c[_0x9d65('0x7')]&&_0x595f47[_0x9d65('0x2a')](_0x9d65('0x26'));}[_0x9d65('0x1e')](_0x1335a5){if(_0x1335a5===this['activeAnnotation'])return;const _0x3aa24d=this['context']['plugins'][_0x9d65('0x10')](_0x5af65a);_0x3aa24d[_0x9d65('0x21')]=_0x1335a5;const _0x2ec50a=this[_0x9d65('0x24')];this[_0x9d65('0x24')]=_0x1335a5,_0x3aa24d[_0x9d65('0xd')]({'blurredAnnotation':_0x2ec50a,'activatedAnnotation':this[_0x9d65('0x24')]});}[_0x9d65('0x31')](_0x432236){this[_0x9d65('0x22')]=_0x432236;const _0x5d5fc4=this[_0x9d65('0xc')][_0x9d65('0x2e')]['get'](_0x5af65a);if(_0x5d5fc4[_0x9d65('0x1d')]=_0x432236,this[_0x9d65('0x1b')])throw new _0x37b147('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x5d5fc4,_0x9d65('0x1c'),()=>{this[_0x9d65('0xa')](),this[_0x9d65('0x11')](_0x5d5fc4,_0x9d65('0x14'),_0x4b18d9=>{_0x4b18d9[_0x9d65('0xb')](),this[_0x9d65('0x31')](_0x432236);});}),_0x5d5fc4[_0x9d65('0x12')]({'viewClass':'ck-sidebar--wide'});const _0x3e0184=_0x42b35b=>{_0x42b35b[_0x9d65('0xf')](),_0x5d5fc4['addAnnotation'](_0x42b35b);};for(const _0x154aa9 of _0x432236)_0x3e0184(_0x154aa9);this[_0x9d65('0x11')](_0x432236,_0x9d65('0x16'),(_0x52bf95,_0x23f961)=>{_0x3e0184(_0x23f961);}),this[_0x9d65('0x11')](_0x432236,_0x9d65('0x4'),(_0xb2c3e6,_0x3e578c,_0x1120c5)=>{_0x5d5fc4[_0x9d65('0x25')]({'removedAnnotation':_0x3e578c,'previousAnnotation':_0x432236[_0x9d65('0x10')](_0x1120c5-0x1),'nextAnnotation':_0x432236[_0x9d65('0x10')](_0x1120c5+0x1)}),_0x3e578c===this[_0x9d65('0x24')]&&this[_0x9d65('0x1e')](null);},{'priority':_0x9d65('0xe')}),this[_0x9d65('0x11')](_0x432236,'focus',(_0x1ef13d,_0x43c258)=>{this[_0x9d65('0x1e')](_0x43c258);}),this[_0x9d65('0x11')](_0x432236,_0x9d65('0x6'),()=>{this[_0x9d65('0x1e')](null);});const _0x549b87=this['context']instanceof _0x212b0b?this['context']['editors']:new _0x27c137([this['context']]);for(const _0x1dce63 of _0x549b87)this[_0x9d65('0x28')](_0x1dce63);this['listenTo'](_0x549b87,_0x9d65('0x16'),(_0x3a1868,_0x508a3c)=>{this[_0x9d65('0x11')](_0x508a3c,_0x9d65('0x2b'),()=>{this[_0x9d65('0x28')](_0x508a3c);});}),this[_0x9d65('0x11')](_0x549b87,_0x9d65('0x4'),(_0xe86125,_0xb060dd)=>{_0xb060dd['plugins'][_0x9d65('0x18')](_0x9d65('0x15'))&&this[_0x9d65('0x3')](_0xb060dd['plugins'][_0x9d65('0x10')](_0x9d65('0x15')));}),window[_0x9d65('0x27')](_0x9d65('0x2'),this['_refreshPositioningDebounced']),this[_0x9d65('0x22')]['refreshPositioning']();}[_0x9d65('0xa')](){if(!this['isAttached'])throw new _0x37b147(_0x9d65('0x2f'),this);this[_0x9d65('0x1e')](null);const _0x4a758d=this['context'][_0x9d65('0x2e')][_0x9d65('0x10')](_0x5af65a);_0x4a758d['_detachFromContainer'](this['annotations']),this[_0x9d65('0x13')](_0x4a758d),this[_0x9d65('0x13')](this[_0x9d65('0x22')]),this[_0x9d65('0xc')]instanceof _0x212b0b&&this[_0x9d65('0x13')](this[_0x9d65('0xc')][_0x9d65('0x23')]);for(const _0x35395d of Array[_0x9d65('0x19')](this[_0x9d65('0x17')]))this[_0x9d65('0x3')](_0x35395d);window[_0x9d65('0x9')](_0x9d65('0x2'),this[_0x9d65('0x0')]),this[_0x9d65('0x0')]['cancel'](),this[_0x9d65('0x24')]=null,this[_0x9d65('0x1b')]=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this[_0x9d65('0xa')]();}[_0x9d65('0x28')](_0x5721ec){const _0x16dd38=_0x5721ec['plugins']['get'](_0xcacbe);if(!_0x16dd38)return;const _0x489f2f=()=>{const _0x39da73=_0x16dd38['getOrderedSelectedAnnotations']({'annotations':this[_0x9d65('0x22')],'activeAnnotation':this[_0x9d65('0x24')]});this[_0x9d65('0x1e')](_0x39da73[0x0]||null);};this[_0x9d65('0x11')](_0x16dd38,_0x9d65('0xd'),_0x489f2f),this['listenTo'](_0x16dd38,_0x9d65('0x6'),(_0x443cb8,{isAnnotationTracked:_0x28061c})=>{this['activeAnnotation']&&_0x28061c(this[_0x9d65('0x24')])&&this['setActiveAnnotation'](null);}),this[_0x9d65('0x11')](_0x16dd38,_0x9d65('0x29'),()=>{this[_0x9d65('0x0')]();}),this['listenTo'](this[_0x9d65('0x22')],_0x9d65('0x6'),_0x53462a=>{_0x16dd38[_0x9d65('0x1')]()&&(_0x489f2f(),_0x53462a[_0x9d65('0x8')]());},{'priority':'high'}),this[_0x9d65('0x17')][_0x9d65('0x16')](_0x16dd38);}[_0x9d65('0x3')](_0x564995){this[_0x9d65('0x13')](_0x564995),this[_0x9d65('0x17')][_0x9d65('0x4')](_0x564995);}}
23
+ const _0x1f56=['widesidebar-attach-already-attached','EditorAnnotations','WideSidebar','_attachToContainer','from','high','isAttached','hasDomSelection','register','set:container','destroy','_activeAnnotation','switchTo','init','refreshPositioning','remove','add','_detachFromContainer','get','ck-sidebar--wide','activeAnnotation','_destroyEditorAnnotationsIntegration','plugins','resize','refresh','pluginName','rearrange','attach','ready','stopListening','_editorAnnotations','blur','annotations','detach','_refreshPositioningDebounced','wideSidebar','addAnnotation','removeEventListener','context','off','setActiveAnnotation','_integrateWithEditorAnnotations','listenTo','widesidebar-detach-not-attached'];(function(_0x5dab5b,_0x1f56df){const _0x3d36a6=function(_0x133fe2){while(--_0x133fe2){_0x5dab5b['push'](_0x5dab5b['shift']());}};_0x3d36a6(++_0x1f56df);}(_0x1f56,0x1ed));const _0x3d36=function(_0x5dab5b,_0x1f56df){_0x5dab5b=_0x5dab5b-0x0;let _0x3d36a6=_0x1f56[_0x5dab5b];return _0x3d36a6;};import{ContextPlugin as _0x5c2a53,Context as _0x59012e}from'ckeditor5/src/core.js';import _0x188dca from'./annotationsuis.js';import _0x396558 from'./sidebar.js';import{CKEditorError as _0xb6590a,Collection as _0x29095f}from'ckeditor5/src/utils.js';import{debounce as _0x47becf}from'lodash-es';import _0x3b16c9 from'./editorannotations.js';export default class n extends _0x5c2a53{static get['requires'](){return[_0x396558,_0x188dca];}static get[_0x3d36('0x10')](){return _0x3d36('0x25');}constructor(_0x38087d){super(_0x38087d),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this[_0x3d36('0x15')]=new _0x29095f(),this[_0x3d36('0x19')]=_0x47becf(()=>{this[_0x3d36('0x17')]['refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x3d36('0x4')](){const _0x17c789=this['context']['plugins']['get'](_0x188dca),_0x502baf=this[_0x3d36('0x1d')][_0x3d36('0xd')][_0x3d36('0x9')](_0x396558);_0x17c789[_0x3d36('0x2b')](_0x3d36('0x1a'),this),_0x502baf['container']&&_0x17c789[_0x3d36('0x3')](_0x3d36('0x1a'));}[_0x3d36('0x1f')](_0x5cad65){if(_0x5cad65===this[_0x3d36('0xb')])return;const _0x6f298c=this['context'][_0x3d36('0xd')]['get'](_0x396558);_0x6f298c[_0x3d36('0x2')]=_0x5cad65;const _0x3eec67=this[_0x3d36('0xb')];this[_0x3d36('0xb')]=_0x5cad65,_0x6f298c[_0x3d36('0xf')]({'blurredAnnotation':_0x3eec67,'activatedAnnotation':this['activeAnnotation']});}['attach'](_0x1fff99){this[_0x3d36('0x17')]=_0x1fff99;const _0x4bad81=this[_0x3d36('0x1d')][_0x3d36('0xd')][_0x3d36('0x9')](_0x396558);if(_0x4bad81['_annotations']=_0x1fff99,this[_0x3d36('0x29')])throw new _0xb6590a(_0x3d36('0x23'),this);this['isAttached']=!0x0,this['listenTo'](_0x4bad81,_0x3d36('0x0'),()=>{this[_0x3d36('0x18')](),this[_0x3d36('0x21')](_0x4bad81,'change:container',_0x215c1e=>{_0x215c1e[_0x3d36('0x1e')](),this[_0x3d36('0x12')](_0x1fff99);});}),_0x4bad81[_0x3d36('0x26')]({'viewClass':_0x3d36('0xa')});const _0x12a7a3=_0x939c9=>{_0x939c9['updateTargetRect'](),_0x4bad81[_0x3d36('0x1b')](_0x939c9);};for(const _0x211112 of _0x1fff99)_0x12a7a3(_0x211112);this['listenTo'](_0x1fff99,'add',(_0x19b14a,_0x4d6cb3)=>{_0x12a7a3(_0x4d6cb3);}),this['listenTo'](_0x1fff99,_0x3d36('0x6'),(_0x5e5698,_0xde9032,_0x3e3b1e)=>{_0x4bad81[_0x3d36('0x11')]({'removedAnnotation':_0xde9032,'previousAnnotation':_0x1fff99['get'](_0x3e3b1e-0x1),'nextAnnotation':_0x1fff99['get'](_0x3e3b1e+0x1)}),_0xde9032===this[_0x3d36('0xb')]&&this['setActiveAnnotation'](null);},{'priority':'high'}),this[_0x3d36('0x21')](_0x1fff99,'focus',(_0x1c0280,_0x312d8a)=>{this[_0x3d36('0x1f')](_0x312d8a);}),this[_0x3d36('0x21')](_0x1fff99,_0x3d36('0x16'),()=>{this[_0x3d36('0x1f')](null);});const _0xff33df=this[_0x3d36('0x1d')]instanceof _0x59012e?this[_0x3d36('0x1d')]['editors']:new _0x29095f([this[_0x3d36('0x1d')]]);for(const _0x1a610a of _0xff33df)this[_0x3d36('0x20')](_0x1a610a);this[_0x3d36('0x21')](_0xff33df,_0x3d36('0x7'),(_0x1fe85f,_0x408756)=>{this[_0x3d36('0x21')](_0x408756,_0x3d36('0x13'),()=>{this[_0x3d36('0x20')](_0x408756);});}),this[_0x3d36('0x21')](_0xff33df,_0x3d36('0x6'),(_0xf585d6,_0x1c15e1)=>{_0x1c15e1['plugins']['has'](_0x3d36('0x24'))&&this['_destroyEditorAnnotationsIntegration'](_0x1c15e1[_0x3d36('0xd')][_0x3d36('0x9')](_0x3d36('0x24')));}),window['addEventListener'](_0x3d36('0xe'),this['_refreshPositioningDebounced']),this[_0x3d36('0x17')][_0x3d36('0x5')]();}[_0x3d36('0x18')](){if(!this[_0x3d36('0x29')])throw new _0xb6590a(_0x3d36('0x22'),this);this['setActiveAnnotation'](null);const _0xb8040c=this[_0x3d36('0x1d')][_0x3d36('0xd')]['get'](_0x396558);_0xb8040c[_0x3d36('0x8')](this[_0x3d36('0x17')]),this[_0x3d36('0x14')](_0xb8040c),this[_0x3d36('0x14')](this[_0x3d36('0x17')]),this[_0x3d36('0x1d')]instanceof _0x59012e&&this[_0x3d36('0x14')](this[_0x3d36('0x1d')]['editors']);for(const _0x33bde6 of Array[_0x3d36('0x27')](this['_editorAnnotations']))this[_0x3d36('0xc')](_0x33bde6);window[_0x3d36('0x1c')]('resize',this[_0x3d36('0x19')]),this[_0x3d36('0x19')]['cancel'](),this['activeAnnotation']=null,this[_0x3d36('0x29')]=!0x1,this[_0x3d36('0x17')]=null;}[_0x3d36('0x1')](){this[_0x3d36('0x29')]&&this[_0x3d36('0x18')]();}[_0x3d36('0x20')](_0x29bd46){const _0x36f318=_0x29bd46[_0x3d36('0xd')][_0x3d36('0x9')](_0x3b16c9);if(!_0x36f318)return;const _0x48c452=()=>{const _0x387004=_0x36f318['getOrderedSelectedAnnotations']({'annotations':this[_0x3d36('0x17')],'activeAnnotation':this[_0x3d36('0xb')]});this[_0x3d36('0x1f')](_0x387004[0x0]||null);};this[_0x3d36('0x21')](_0x36f318,_0x3d36('0xf'),_0x48c452),this[_0x3d36('0x21')](_0x36f318,_0x3d36('0x16'),(_0x5d5f6e,{isAnnotationTracked:_0x224b03})=>{this[_0x3d36('0xb')]&&_0x224b03(this['activeAnnotation'])&&this[_0x3d36('0x1f')](null);}),this['listenTo'](_0x36f318,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this[_0x3d36('0x21')](this[_0x3d36('0x17')],'blur',_0x24772f=>{_0x36f318[_0x3d36('0x2a')]()&&(_0x48c452(),_0x24772f['stop']());},{'priority':_0x3d36('0x28')}),this[_0x3d36('0x15')][_0x3d36('0x7')](_0x36f318);}[_0x3d36('0xc')](_0x54e7fa){this[_0x3d36('0x14')](_0x54e7fa),this[_0x3d36('0x15')][_0x3d36('0x6')](_0x54e7fa);}}
@@ -1,8 +1,8 @@
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
- import type { CommentsConfig, SidebarConfig, Annotations, AnnotationsUIs, EditorAnnotations, CommentsRepository, CommentsUI } from './index';
5
+ import type { CommentsConfig, SidebarConfig, Annotations, AnnotationsUIs, EditorAnnotations, CommentsRepository, CommentsUI } from './index.js';
6
6
  declare module '@ckeditor/ckeditor5-core' {
7
7
  interface EditorConfig {
8
8
  /**
@@ -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
  *
@@ -1,12 +1,12 @@
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/addcommentthreadcommand
7
7
  * @publicApi
8
8
  */
9
- import { Command } from 'ckeditor5/src/core';
9
+ import { Command } from 'ckeditor5/src/core.js';
10
10
  /**
11
11
  * Adds a new CommentMarker what automatically adds corresponding CommentThread to the CommentsEditing#threads collection.
12
12
  * Note this command adds only a CommentThread draft, to make is public marker has to be changed to be managed using operation.
@@ -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 _0x3e30=['tableCell','change','_hasContent','_trimToContent','element','document','push','editor','comment:','backward','substr','execute','getRanges','selection','model','isEnabled','_itemIsContent','addMarker','end'];(function(_0x356ef4,_0x3e30bc){const _0x55d810=function(_0x3bdc1e){while(--_0x3bdc1e){_0x356ef4['push'](_0x356ef4['shift']());}};_0x55d810(++_0x3e30bc);}(_0x3e30,0x144));const _0x55d8=function(_0x356ef4,_0x3e30bc){_0x356ef4=_0x356ef4-0x0;let _0x55d810=_0x3e30[_0x356ef4];return _0x55d810;};import{Command as _0x5b604a}from'ckeditor5/src/core';import{uid as _0x3274b8}from'ckeditor5/src/utils';export default class q extends _0x5b604a{['refresh'](){const _0x5eb916=this['editor']['model']['document'][_0x55d8('0xc')];for(const _0x365083 of _0x5eb916['getRanges']())if(this[_0x55d8('0x1')](_0x365083))return void(this[_0x55d8('0xe')]=!0x0);this['isEnabled']=!0x1;}[_0x55d8('0xa')]({threadId:_0x315ee2=_0x3274b8()}={}){const _0x359991=this['editor'][_0x55d8('0xd')],_0x280d78=[];for(const _0x184d71 of _0x359991[_0x55d8('0x4')]['selection'][_0x55d8('0xb')]())this['_hasContent'](_0x184d71)&&_0x280d78[_0x55d8('0x5')](this[_0x55d8('0x2')](_0x184d71));_0x359991[_0x55d8('0x0')](_0x8ae8bc=>{for(const _0x1d98b4 of _0x280d78){const _0x199d3e=_0x3274b8()[_0x55d8('0x9')](0x1,0x5),_0x3ce2f=_0x55d8('0x7')+_0x315ee2+':'+_0x199d3e;_0x8ae8bc[_0x55d8('0x10')](_0x3ce2f,{'range':_0x1d98b4,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x165d69){for(const _0x39c302 of _0x165d69['getItems']())if(this[_0x55d8('0xf')](_0x39c302))return!0x0;return!0x1;}[_0x55d8('0xf')](_0x2fcbe4){return _0x2fcbe4['is']('$textProxy')||this[_0x55d8('0x6')]['model']['schema']['isObject'](_0x2fcbe4)&&!_0x2fcbe4['is'](_0x55d8('0x3'),_0x55d8('0x12'));}[_0x55d8('0x2')](_0x195ad0){const _0x46f706=_0x5647e3=>!this[_0x55d8('0xf')](_0x5647e3['item']),_0x38e28b=_0x195ad0['start']['getLastMatchingPosition'](_0x46f706),_0x5c1a2a=_0x195ad0[_0x55d8('0x11')]['getLastMatchingPosition'](_0x46f706,{'direction':_0x55d8('0x8')});return this[_0x55d8('0x6')][_0x55d8('0xd')]['createRange'](_0x38e28b,_0x5c1a2a);}}
23
+ const _0x3a5b=['element','start','execute','change','addMarker','end','getRanges','schema','_itemIsContent','model','substr','item','getLastMatchingPosition','isObject','selection','_hasContent','editor','backward'];(function(_0x8074f6,_0x3a5bea){const _0x58cff5=function(_0x26db15){while(--_0x26db15){_0x8074f6['push'](_0x8074f6['shift']());}};_0x58cff5(++_0x3a5bea);}(_0x3a5b,0x85));const _0x58cf=function(_0x8074f6,_0x3a5bea){_0x8074f6=_0x8074f6-0x0;let _0x58cff5=_0x3a5b[_0x8074f6];return _0x58cff5;};import{Command as _0x34c3f0}from'ckeditor5/src/core.js';import{uid as _0x291aa4}from'ckeditor5/src/utils.js';export default class G extends _0x34c3f0{['refresh'](){const _0x22411d=this[_0x58cf('0x9')]['model']['document'][_0x58cf('0x7')];for(const _0x51ddb6 of _0x22411d[_0x58cf('0x11')]())if(this['_hasContent'](_0x51ddb6))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}[_0x58cf('0xd')]({threadId:_0x174b7e=_0x291aa4()}={}){const _0x4db955=this['editor'][_0x58cf('0x2')],_0x2b33f1=[];for(const _0x47e955 of _0x4db955['document'][_0x58cf('0x7')]['getRanges']())this[_0x58cf('0x8')](_0x47e955)&&_0x2b33f1['push'](this['_trimToContent'](_0x47e955));_0x4db955[_0x58cf('0xe')](_0x4d1e3a=>{for(const _0x53e8c1 of _0x2b33f1){const _0x5a69ce=_0x291aa4()[_0x58cf('0x3')](0x1,0x5),_0x11cabd='comment:'+_0x174b7e+':'+_0x5a69ce;_0x4d1e3a[_0x58cf('0xf')](_0x11cabd,{'range':_0x53e8c1,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x58cf('0x8')](_0x5d4b71){for(const _0x2df453 of _0x5d4b71['getItems']())if(this[_0x58cf('0x1')](_0x2df453))return!0x0;return!0x1;}[_0x58cf('0x1')](_0x28a3df){return _0x28a3df['is']('$textProxy')||this['editor'][_0x58cf('0x2')][_0x58cf('0x0')][_0x58cf('0x6')](_0x28a3df)&&!_0x28a3df['is'](_0x58cf('0xb'),'tableCell');}['_trimToContent'](_0x3af2a8){const _0x24eb1e=_0x453875=>!this[_0x58cf('0x1')](_0x453875[_0x58cf('0x4')]),_0x432c22=_0x3af2a8[_0x58cf('0xc')][_0x58cf('0x5')](_0x24eb1e),_0x388227=_0x3af2a8[_0x58cf('0x10')][_0x58cf('0x5')](_0x24eb1e,{'direction':_0x58cf('0xa')});return this[_0x58cf('0x9')][_0x58cf('0x2')]['createRange'](_0x432c22,_0x388227);}}
@@ -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/comments/commentsarchive
7
7
  * @publicApi
8
8
  */
9
- import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core';
10
- import { Collection } from 'ckeditor5/src/utils';
11
- import CommentsRepository, { type CommentThread } from './commentsrepository';
12
- import Annotations from '../annotations/annotations';
9
+ import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core.js';
10
+ import { Collection } from 'ckeditor5/src/utils.js';
11
+ import CommentsRepository, { type CommentThread } from './commentsrepository.js';
12
+ import Annotations from '../annotations/annotations.js';
13
13
  /**
14
14
  * This plugin handles all operations on archived threads needed for the comments archive.
15
15
  */