@ckeditor/ckeditor5-comments 40.2.0 → 41.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/build/comments.js +2 -2
  4. package/lang/translations/af.po +1 -1
  5. package/lang/translations/ar.po +1 -1
  6. package/lang/translations/bg.po +1 -1
  7. package/lang/translations/bn.po +1 -1
  8. package/lang/translations/bs.po +1 -1
  9. package/lang/translations/ca.po +1 -1
  10. package/lang/translations/cs.po +1 -1
  11. package/lang/translations/da.po +1 -1
  12. package/lang/translations/de-ch.po +1 -1
  13. package/lang/translations/de.po +1 -1
  14. package/lang/translations/el.po +1 -1
  15. package/lang/translations/en-au.po +1 -1
  16. package/lang/translations/en.po +1 -1
  17. package/lang/translations/es-co.po +1 -1
  18. package/lang/translations/es.po +1 -1
  19. package/lang/translations/et.po +1 -1
  20. package/lang/translations/fa.po +1 -1
  21. package/lang/translations/fi.po +1 -1
  22. package/lang/translations/fr.po +1 -1
  23. package/lang/translations/gl.po +1 -1
  24. package/lang/translations/he.po +1 -1
  25. package/lang/translations/hi.po +1 -1
  26. package/lang/translations/hr.po +1 -1
  27. package/lang/translations/hu.po +1 -1
  28. package/lang/translations/id.po +1 -1
  29. package/lang/translations/it.po +1 -1
  30. package/lang/translations/ja.po +1 -1
  31. package/lang/translations/jv.po +1 -1
  32. package/lang/translations/ko.po +1 -1
  33. package/lang/translations/lt.po +1 -1
  34. package/lang/translations/lv.po +1 -1
  35. package/lang/translations/ms.po +1 -1
  36. package/lang/translations/nl.po +1 -1
  37. package/lang/translations/no.po +1 -1
  38. package/lang/translations/pl.po +1 -1
  39. package/lang/translations/pt-br.po +1 -1
  40. package/lang/translations/pt.po +1 -1
  41. package/lang/translations/ro.po +1 -1
  42. package/lang/translations/ru.po +1 -1
  43. package/lang/translations/sk.po +1 -1
  44. package/lang/translations/sq.po +1 -1
  45. package/lang/translations/sr-latn.po +1 -1
  46. package/lang/translations/sr.po +1 -1
  47. package/lang/translations/sv.po +1 -1
  48. package/lang/translations/th.po +1 -1
  49. package/lang/translations/tk.po +1 -1
  50. package/lang/translations/tr.po +1 -1
  51. package/lang/translations/tt.po +1 -1
  52. package/lang/translations/ug.po +1 -1
  53. package/lang/translations/uk.po +1 -1
  54. package/lang/translations/ur.po +1 -1
  55. package/lang/translations/vi.po +1 -1
  56. package/lang/translations/zh-cn.po +1 -1
  57. package/lang/translations/zh.po +1 -1
  58. package/package.json +4 -3
  59. package/src/annotations/annotation.d.ts +7 -7
  60. package/src/annotations/annotation.js +2 -2
  61. package/src/annotations/annotationcollection.d.ts +4 -4
  62. package/src/annotations/annotationcollection.js +2 -2
  63. package/src/annotations/annotations.d.ts +7 -7
  64. package/src/annotations/annotations.js +2 -2
  65. package/src/annotations/annotationsuis.d.ts +6 -6
  66. package/src/annotations/annotationsuis.js +2 -2
  67. package/src/annotations/editorannotations.d.ts +5 -5
  68. package/src/annotations/editorannotations.js +2 -2
  69. package/src/annotations/inlineannotations.d.ts +7 -7
  70. package/src/annotations/inlineannotations.js +2 -2
  71. package/src/annotations/narrowsidebar.d.ts +7 -7
  72. package/src/annotations/narrowsidebar.js +2 -2
  73. package/src/annotations/sidebar.d.ts +6 -6
  74. package/src/annotations/sidebar.js +2 -2
  75. package/src/annotations/view/annotationcounterbuttonview.d.ts +3 -3
  76. package/src/annotations/view/annotationcounterbuttonview.js +2 -2
  77. package/src/annotations/view/annotationview.d.ts +3 -3
  78. package/src/annotations/view/annotationview.js +2 -2
  79. package/src/annotations/view/sidebaritemview.d.ts +3 -3
  80. package/src/annotations/view/sidebaritemview.js +2 -2
  81. package/src/annotations/view/sidebarview.d.ts +3 -3
  82. package/src/annotations/view/sidebarview.js +2 -2
  83. package/src/annotations/widesidebar.d.ts +6 -6
  84. package/src/annotations/widesidebar.js +2 -2
  85. package/src/augmentation.d.ts +2 -2
  86. package/src/augmentation.js +1 -1
  87. package/src/comments/addcommentthreadcommand.d.ts +2 -2
  88. package/src/comments/addcommentthreadcommand.js +2 -2
  89. package/src/comments/commentsarchive.d.ts +5 -5
  90. package/src/comments/commentsarchive.js +2 -2
  91. package/src/comments/commentsarchiveui.d.ts +6 -6
  92. package/src/comments/commentsarchiveui.js +2 -2
  93. package/src/comments/commentsediting.d.ts +7 -7
  94. package/src/comments/commentsediting.js +2 -2
  95. package/src/comments/commentsrepository.d.ts +12 -12
  96. package/src/comments/commentsrepository.js +2 -2
  97. package/src/comments/commentsui.d.ts +6 -6
  98. package/src/comments/commentsui.js +2 -2
  99. package/src/comments/integrations/commentsrestrictededitingmode.d.ts +2 -2
  100. package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
  101. package/src/comments/integrations/importword.d.ts +2 -2
  102. package/src/comments/integrations/importword.js +2 -2
  103. package/src/comments/ui/commenteditor/commenteditor.d.ts +5 -5
  104. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  105. package/src/comments/ui/commenteditor/commenteditorui.d.ts +4 -4
  106. package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
  107. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +5 -5
  108. package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
  109. package/src/comments/ui/commentthreadcontroller.d.ts +5 -5
  110. package/src/comments/ui/commentthreadcontroller.js +2 -2
  111. package/src/comments/ui/view/basecommentthreadview.d.ts +9 -9
  112. package/src/comments/ui/view/basecommentthreadview.js +2 -2
  113. package/src/comments/ui/view/basecommentview.d.ts +5 -5
  114. package/src/comments/ui/view/basecommentview.js +2 -2
  115. package/src/comments/ui/view/collapsedcommentsview.d.ts +3 -3
  116. package/src/comments/ui/view/collapsedcommentsview.js +2 -2
  117. package/src/comments/ui/view/commentcontentview.d.ts +3 -3
  118. package/src/comments/ui/view/commentcontentview.js +2 -2
  119. package/src/comments/ui/view/commentinputview.d.ts +5 -5
  120. package/src/comments/ui/view/commentinputview.js +2 -2
  121. package/src/comments/ui/view/commentsarchiveview.d.ts +4 -4
  122. package/src/comments/ui/view/commentsarchiveview.js +2 -2
  123. package/src/comments/ui/view/commentslistview.d.ts +6 -6
  124. package/src/comments/ui/view/commentslistview.js +2 -2
  125. package/src/comments/ui/view/commentthreadheaderview.d.ts +4 -4
  126. package/src/comments/ui/view/commentthreadheaderview.js +2 -2
  127. package/src/comments/ui/view/commentthreadinputview.d.ts +6 -6
  128. package/src/comments/ui/view/commentthreadinputview.js +2 -2
  129. package/src/comments/ui/view/commentthreadview.d.ts +8 -8
  130. package/src/comments/ui/view/commentthreadview.js +2 -2
  131. package/src/comments/ui/view/commentview.d.ts +9 -9
  132. package/src/comments/ui/view/commentview.js +2 -2
  133. package/src/comments.d.ts +11 -11
  134. package/src/comments.js +2 -2
  135. package/src/commentsonly.d.ts +3 -3
  136. package/src/commentsonly.js +2 -2
  137. package/src/config.d.ts +4 -4
  138. package/src/config.js +1 -1
  139. package/src/index.d.ts +21 -21
  140. package/src/index.js +2 -2
  141. package/src/utils/common-translations.d.ts +2 -2
  142. package/src/utils/common-translations.js +2 -2
  143. package/src/utils/createmutationobserver.d.ts +1 -1
  144. package/src/utils/createmutationobserver.js +2 -2
  145. package/theme/annotation-inline.css +1 -1
  146. package/theme/annotation.css +5 -1
  147. package/theme/comment.css +1 -1
  148. package/theme/commentinput.css +1 -1
  149. package/theme/commentmarker.css +1 -1
  150. package/theme/commentsarchive.css +2 -2
  151. package/theme/commentthread.css +5 -1
  152. package/theme/icons/add-comment.svg +1 -1
  153. package/theme/icons/comments-archive.svg +1 -1
  154. package/theme/icons/edit-comment.svg +1 -1
  155. package/theme/icons/remove-comment.svg +1 -1
  156. package/theme/sidebar-narrow.css +1 -1
  157. package/theme/sidebar.css +1 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2792=['rearrange','_alignForBottomChange','config','view','content','add','unbind','updateHeight','_annotationToSidebarItemView','clear','target','delete','sidebar.container','_getItemBefore','top','_setItemTop','set','appendChild','length','nodeType','targetRect','isActive','_sidebarItemViewToAnnotation','_createSidebarView','_recalculateBuffer','_getTargetTop','_activeAnnotation','class','_lastItem','object','destroy','sidebar-attachtocontainer-missing-container','sidebar-setcontainer-invalid-element','_destroySidebarItemView','container','_alignBeforeItem','refresh','change:targetRect','_getItemAfter','_alignAfterItem','change:_lastItem','change:bottom','change:top','remove','bottom','_annotations','setContainer','listenTo','_spaceBetweenItems','get','_alignToTargetRect','_getMaxAvailableTop','_updateLastItem','Sidebar','context','sidebar.preventScrollOutOfView','addAnnotation','locale','isAnimationDisabled','element','getIndex','_alignForTopChange','_recalculate','stopListening','list','minHeight','_targetTop','define','last','_detachFromContainer','getSidebarItemView','height'];(function(_0x456d06,_0x279251){const _0x19cd42=function(_0x1e37eb){while(--_0x1e37eb){_0x456d06['push'](_0x456d06['shift']());}};_0x19cd42(++_0x279251);}(_0x2792,0x187));const _0x19cd=function(_0x456d06,_0x279251){_0x456d06=_0x456d06-0x0;let _0x19cd42=_0x2792[_0x456d06];return _0x19cd42;};import{ContextPlugin as _0x15b372}from'ckeditor5/src/core';import{Rect as _0x334524,CKEditorError as _0x515609}from'ckeditor5/src/utils';import _0x4c7695 from'./view/sidebarview';import _0x47aedb from'./view/sidebaritemview';export default class z extends _0x15b372{static get['pluginName'](){return _0x19cd('0x16');}constructor(_0x24848a){super(_0x24848a),this[_0x19cd('0x39')](_0x19cd('0x45'),void 0x0),this[_0x19cd('0x2c')]=this[_0x19cd('0x40')](),this[_0x19cd('0x39')]('container',null),this[_0x19cd('0x11')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x19cd('0x31')]=new Map(),this[_0x19cd('0x17')][_0x19cd('0x2b')][_0x19cd('0x24')](_0x19cd('0x18'),!0x1),this[_0x19cd('0xe')]=null,this[_0x19cd('0x43')]=null,this['_recalculateBuffer']=[];}['init'](){const _0x568c3d=this[_0x19cd('0x17')][_0x19cd('0x2b')][_0x19cd('0x12')](_0x19cd('0x35'));_0x568c3d&&this[_0x19cd('0xf')](_0x568c3d);}[_0x19cd('0xf')](_0x421eb5){if(!y(_0x421eb5))throw new _0x515609(_0x19cd('0x1'));this['container']=_0x421eb5;}['_attachToContainer']({viewClass:_0x57a05f='',spaceBetweenItems:_0x488b41=0x19}={}){if(!y(this[_0x19cd('0x3')]))throw new _0x515609(_0x19cd('0x0'),this);this[_0x19cd('0x3')][_0x19cd('0x3a')](this[_0x19cd('0x2c')][_0x19cd('0x1c')]),this[_0x19cd('0x2c')][_0x19cd('0x44')]=_0x57a05f,this['_spaceBetweenItems']=_0x488b41;}[_0x19cd('0x29')]({removedAnnotation:_0x56dab2,previousAnnotation:_0x2b6e12,nextAnnotation:_0x347ecd}){const _0x218bc2=this[_0x19cd('0x27')](_0x56dab2);this[_0x19cd('0x2c')]['list'][_0x19cd('0xc')](_0x218bc2),this['_destroySidebarItemView'](_0x56dab2),_0x2b6e12&&this['_alignToTargetRect'](this[_0x19cd('0x27')](_0x2b6e12)),_0x347ecd&&this[_0x19cd('0x13')](this[_0x19cd('0x27')](_0x347ecd)),this[_0x19cd('0x15')]();}[_0x19cd('0x5')]({blurredAnnotation:_0x47d116,activatedAnnotation:_0xdffee,disableAnimationOnActivatedAnnotation:_0x49a482}){if(this[_0x19cd('0x43')]=_0xdffee,_0x47d116){_0x47d116[_0x19cd('0x3e')]=!0x1;const _0x2082f4=this[_0x19cd('0x27')](_0x47d116);_0x2082f4&&_0x49a482&&(_0x2082f4[_0x19cd('0x1b')]=!0x1);}if(_0xdffee){const _0x539adb=this[_0x19cd('0x27')](_0xdffee);_0x539adb&&(_0xdffee[_0x19cd('0x3e')]=!0x0,_0x49a482&&(_0x539adb['isAnimationDisabled']=!0x0,_0x539adb['top']+=0x1),this[_0x19cd('0x13')](_0x539adb));}}[_0x19cd('0x26')](_0x1bbe6e){if(this[_0x19cd('0x2c')][_0x19cd('0x1c')]['remove'](),_0x1bbe6e)for(const _0x2fe1e7 of _0x1bbe6e)this[_0x19cd('0x2')](_0x2fe1e7);this[_0x19cd('0x2c')]['list'][_0x19cd('0x32')](),this[_0x19cd('0x2c')][_0x19cd('0x44')]='',this['_lastItem']=null;}[_0x19cd('0x19')](_0xb2757d,_0x386ab0){_0x386ab0||(_0x386ab0=_0xb2757d['view']);const _0x28707b=new _0x47aedb(this[_0x19cd('0x17')][_0x19cd('0x1a')]);this[_0x19cd('0x3f')][_0x19cd('0x39')](_0x28707b,_0xb2757d),this[_0x19cd('0x31')][_0x19cd('0x39')](_0xb2757d,_0x28707b),_0x28707b[_0x19cd('0x2d')]['add'](_0x386ab0),this[_0x19cd('0x10')](_0xb2757d[_0x19cd('0x2c')],_0x19cd('0x6'),(_0x475cd9,_0x16d55e,_0x27e5fd)=>{const _0x2d5196=this[_0x19cd('0x42')](_0xb2757d,_0x27e5fd);_0x28707b[_0x19cd('0x23')]!=_0x2d5196&&(_0x28707b[_0x19cd('0x23')]=_0x2d5196,this[_0x19cd('0x38')](_0x28707b,_0x2d5196));}),this['listenTo'](_0x28707b,_0x19cd('0xb'),()=>{this['_recalculate'](_0x28707b,_0x19cd('0x37'));}),this[_0x19cd('0x10')](_0x28707b,_0x19cd('0xa'),()=>{this['_recalculate'](_0x28707b,_0x19cd('0xd'));}),this['_alignToTargetRect'](_0x28707b);const _0x429862=this[_0x19cd('0x36')](_0x28707b);if(_0x429862)this[_0x19cd('0x8')](_0x429862,_0x28707b)||this[_0x19cd('0x13')](_0x28707b);else this['_alignToTargetRect'](_0x28707b);return this[_0x19cd('0x15')](),this[_0x19cd('0x2c')][_0x19cd('0x21')][_0x19cd('0x2e')](_0x28707b),_0x28707b;}[_0x19cd('0x1e')](_0x304d5a){if(!_0x304d5a[_0x19cd('0x2d')][_0x19cd('0x3b')])return;const _0x13d65f=this[_0x19cd('0x36')](_0x304d5a);if(!_0x13d65f)return;const _0x5ab51e=this[_0x19cd('0x3f')][_0x19cd('0x12')](_0x13d65f),_0x48efd8=this[_0x19cd('0x43')];_0x48efd8&&_0x48efd8===_0x5ab51e?this[_0x19cd('0x8')](_0x13d65f,_0x304d5a):this[_0x19cd('0x4')](_0x304d5a,_0x13d65f);}['_alignForBottomChange'](_0x4ec97a){if(!_0x4ec97a[_0x19cd('0x2d')][_0x19cd('0x3b')])return;const _0x251ba7=this[_0x19cd('0x7')](_0x4ec97a);if(!_0x251ba7)return;const _0x1222eb=this[_0x19cd('0x3f')][_0x19cd('0x12')](_0x251ba7),_0x170fa2=this[_0x19cd('0x17')][_0x19cd('0x2b')][_0x19cd('0x12')](_0x19cd('0x18')),_0x300b52=this[_0x19cd('0x43')];_0x300b52&&_0x300b52===_0x1222eb&&_0x170fa2?(this[_0x19cd('0x4')](_0x251ba7,_0x4ec97a),this[_0x19cd('0x8')](_0x4ec97a,_0x251ba7)):_0x300b52&&_0x300b52===_0x1222eb?this[_0x19cd('0x4')](_0x251ba7,_0x4ec97a):this['_alignAfterItem'](_0x4ec97a,_0x251ba7);}[_0x19cd('0x1f')](_0x237416,_0x1d9d20){0x0===this[_0x19cd('0x41')][_0x19cd('0x3b')]&&setTimeout(()=>{for(const {sidebarItemView:_0xa1a8ed,changedProp:_0x41508e}of this['_recalculateBuffer'])_0x19cd('0x37')===_0x41508e?this[_0x19cd('0x1e')](_0xa1a8ed):this[_0x19cd('0x2a')](_0xa1a8ed);this[_0x19cd('0x41')]=[];},0xa),this[_0x19cd('0x41')]['push']({'sidebarItemView':_0x237416,'changedProp':_0x1d9d20});}[_0x19cd('0x27')](_0x3fec07){return this[_0x19cd('0x31')][_0x19cd('0x12')](_0x3fec07);}[_0x19cd('0x47')](){this[_0x19cd('0x20')](),this[_0x19cd('0x2c')]['destroy']();}[_0x19cd('0x2')](_0x266264){const _0x4a582c=this['getSidebarItemView'](_0x266264);this[_0x19cd('0x20')](_0x4a582c),this[_0x19cd('0x20')](_0x266264[_0x19cd('0x2c')]),_0x4a582c[_0x19cd('0x47')](),this[_0x19cd('0x31')][_0x19cd('0x34')](_0x266264),this[_0x19cd('0x3f')][_0x19cd('0x34')](_0x4a582c);}['_createSidebarView'](){const _0x2e6945=new _0x4c7695(this['context'][_0x19cd('0x1a')]);return _0x2e6945['render'](),this['on'](_0x19cd('0x9'),(_0x5e6c6a,_0x3b18db,_0x21285d,_0x3ad623)=>{_0x3ad623&&_0x2e6945[_0x19cd('0x2f')](_0x19cd('0x22')),_0x21285d?_0x2e6945['bind'](_0x19cd('0x22'))['to'](_0x21285d,_0x19cd('0xd')):_0x2e6945[_0x19cd('0x22')]=null;}),_0x2e6945;}[_0x19cd('0x15')](){var _0x5407d9;this[_0x19cd('0x45')]=(null===(_0x5407d9=this[_0x19cd('0xe')])||void 0x0===_0x5407d9?void 0x0:_0x5407d9[_0x19cd('0x25')])?this[_0x19cd('0x27')](this[_0x19cd('0xe')][_0x19cd('0x25')]):null;}['_getItemBefore'](_0x594f99){var _0x411349;const _0xb290c=this[_0x19cd('0x3f')][_0x19cd('0x12')](_0x594f99),_0x2177f5=_0xb290c&&(null===(_0x411349=this[_0x19cd('0xe')])||void 0x0===_0x411349?void 0x0:_0x411349[_0x19cd('0x12')](this[_0x19cd('0xe')][_0x19cd('0x1d')](_0xb290c)-0x1));return _0x2177f5&&this['getSidebarItemView'](_0x2177f5)||null;}[_0x19cd('0x7')](_0x518fa8){var _0x3dd7c7;const _0x340167=this['_sidebarItemViewToAnnotation']['get'](_0x518fa8),_0x52b82c=_0x340167&&(null===(_0x3dd7c7=this['_annotations'])||void 0x0===_0x3dd7c7?void 0x0:_0x3dd7c7['get'](this[_0x19cd('0xe')][_0x19cd('0x1d')](_0x340167)+0x1));return _0x52b82c&&this[_0x19cd('0x27')](_0x52b82c)||null;}[_0x19cd('0x4')](_0x5de0ea,_0x22bb4c){_0x5de0ea[_0x19cd('0x30')]();const _0x6e9660=H(_0x22bb4c['bottom']+this[_0x19cd('0x11')],_0x5de0ea['top']);return!!_0x6e9660&&(this['_setItemTop'](_0x22bb4c,_0x22bb4c[_0x19cd('0x37')]-_0x6e9660),!0x0);}['_alignAfterItem'](_0x14d1a3,_0x4b1d44){_0x14d1a3['updateHeight']();const _0x17ff85=H(_0x14d1a3['bottom']+this[_0x19cd('0x11')],_0x4b1d44[_0x19cd('0x37')]);return!!_0x17ff85&&(this[_0x19cd('0x38')](_0x4b1d44,_0x4b1d44[_0x19cd('0x37')]+_0x17ff85,!0x1),!0x0);}[_0x19cd('0x13')](_0xd13c7){const _0x3f8222=this[_0x19cd('0x3f')][_0x19cd('0x12')](_0xd13c7);if(!_0x3f8222||!_0x3f8222[_0x19cd('0x33')]||!_0x3f8222[_0x19cd('0x3d')])return;const _0x34487b=this[_0x19cd('0x42')](_0x3f8222,_0x3f8222['targetRect']);this[_0x19cd('0x38')](_0xd13c7,_0x34487b);}[_0x19cd('0x42')](_0x4a2eba,_0x40f625){if(null===_0x40f625)return 0x0;if(_0x4a2eba[_0x19cd('0x33')]instanceof _0x334524)return _0x40f625[_0x19cd('0x37')];{const _0x4a4304=new _0x334524(this[_0x19cd('0x2c')]['element'])[_0x19cd('0x37')];return _0x40f625[_0x19cd('0x37')]-_0x4a4304;}}[_0x19cd('0x38')](_0x4c0f83,_0x2caaa9,_0x4260a0=this['context'][_0x19cd('0x2b')][_0x19cd('0x12')](_0x19cd('0x18'))){_0x4260a0&&(_0x2caaa9=Math['max'](_0x2caaa9,this[_0x19cd('0x14')](_0x4c0f83))),_0x4c0f83[_0x19cd('0x37')]=_0x2caaa9;}[_0x19cd('0x14')](_0x1ffecc){let _0x177038=this[_0x19cd('0x36')](_0x1ffecc),_0xb7873f=0x0;for(;_0x177038;)_0x177038[_0x19cd('0x30')](),_0xb7873f+=this[_0x19cd('0x11')]+_0x177038[_0x19cd('0x28')],_0x177038=this[_0x19cd('0x36')](_0x177038);return _0xb7873f;}}function H(_0x4e9f57,_0x328e65){return Math['max'](_0x4e9f57-_0x328e65,0x0);}function y(_0x4cf1d0){return null!==_0x4cf1d0&&_0x19cd('0x46')==typeof _0x4cf1d0&&0x1===_0x4cf1d0[_0x19cd('0x3c')];}
23
+ const _0x25a6=['list','_annotations','change:targetRect','_spaceBetweenItems','change:_lastItem','top','destroy','nodeType','define','_targetTop','_getItemAfter','_alignAfterItem','height','_recalculateBuffer','_createSidebarView','remove','rearrange','delete','last','max','view','add','_activeAnnotation','context','appendChild','_destroySidebarItemView','_sidebarItemViewToAnnotation','_setItemTop','_getItemBefore','sidebar-setcontainer-invalid-element','updateHeight','_alignForTopChange','_alignToTargetRect','bottom','change:bottom','refresh','_alignBeforeItem','bind','container','init','unbind','content','set','stopListening','isAnimationDisabled','minHeight','listenTo','sidebar.container','change:top','_lastItem','_detachFromContainer','_getTargetTop','targetRect','locale','render','config','_annotationToSidebarItemView','object','_getMaxAvailableTop','_recalculate','clear','isActive','element','_alignForBottomChange','Sidebar','getSidebarItemView','setContainer','push','_updateLastItem','get','target','sidebar.preventScrollOutOfView','getIndex','length','addAnnotation'];(function(_0x56519c,_0x25a6ae){const _0x4af417=function(_0x15c03f){while(--_0x15c03f){_0x56519c['push'](_0x56519c['shift']());}};_0x4af417(++_0x25a6ae);}(_0x25a6,0x1ce));const _0x4af4=function(_0x56519c,_0x25a6ae){_0x56519c=_0x56519c-0x0;let _0x4af417=_0x25a6[_0x56519c];return _0x4af417;};import{ContextPlugin as _0x3a579b}from'ckeditor5/src/core.js';import{Rect as _0x2439f7,CKEditorError as _0x5acfcd}from'ckeditor5/src/utils.js';import _0x3441ec from'./view/sidebarview.js';import _0x18fd9e from'./view/sidebaritemview.js';export default class z extends _0x3a579b{static get['pluginName'](){return _0x4af4('0x34');}constructor(_0x145ee1){super(_0x145ee1),this[_0x4af4('0x1e')](_0x4af4('0x25'),void 0x0),this[_0x4af4('0x8')]=this[_0x4af4('0x2')](),this['set'](_0x4af4('0x1a'),null),this['_spaceBetweenItems']=0x19,this[_0x4af4('0xe')]=new Map(),this[_0x4af4('0x2c')]=new Map(),this[_0x4af4('0xb')][_0x4af4('0x2b')][_0x4af4('0x47')](_0x4af4('0x3b'),!0x1),this[_0x4af4('0x40')]=null,this['_activeAnnotation']=null,this['_recalculateBuffer']=[];}[_0x4af4('0x1b')](){const _0xc899a0=this[_0x4af4('0xb')]['config'][_0x4af4('0x39')](_0x4af4('0x23'));_0xc899a0&&this['setContainer'](_0xc899a0);}[_0x4af4('0x36')](_0xa7d060){if(!y(_0xa7d060))throw new _0x5acfcd(_0x4af4('0x11'));this[_0x4af4('0x1a')]=_0xa7d060;}['_attachToContainer']({viewClass:_0x13a67c='',spaceBetweenItems:_0x3c5d86=0x19}={}){if(!y(this[_0x4af4('0x1a')]))throw new _0x5acfcd('sidebar-attachtocontainer-missing-container',this);this[_0x4af4('0x1a')][_0x4af4('0xc')](this['view'][_0x4af4('0x32')]),this[_0x4af4('0x8')]['class']=_0x13a67c,this['_spaceBetweenItems']=_0x3c5d86;}[_0x4af4('0x4')]({removedAnnotation:_0x54ebf1,previousAnnotation:_0x9c8329,nextAnnotation:_0x268f90}){const _0x5c3490=this[_0x4af4('0x35')](_0x54ebf1);this[_0x4af4('0x8')]['list'][_0x4af4('0x3')](_0x5c3490),this['_destroySidebarItemView'](_0x54ebf1),_0x9c8329&&this[_0x4af4('0x14')](this[_0x4af4('0x35')](_0x9c8329)),_0x268f90&&this[_0x4af4('0x14')](this[_0x4af4('0x35')](_0x268f90)),this['_updateLastItem']();}[_0x4af4('0x17')]({blurredAnnotation:_0x5d1bd8,activatedAnnotation:_0x5a91b7,disableAnimationOnActivatedAnnotation:_0x36649e}){if(this[_0x4af4('0xa')]=_0x5a91b7,_0x5d1bd8){_0x5d1bd8[_0x4af4('0x31')]=!0x1;const _0x287d15=this['getSidebarItemView'](_0x5d1bd8);_0x287d15&&_0x36649e&&(_0x287d15[_0x4af4('0x20')]=!0x1);}if(_0x5a91b7){const _0x318755=this[_0x4af4('0x35')](_0x5a91b7);_0x318755&&(_0x5a91b7[_0x4af4('0x31')]=!0x0,_0x36649e&&(_0x318755['isAnimationDisabled']=!0x0,_0x318755['top']+=0x1),this[_0x4af4('0x14')](_0x318755));}}[_0x4af4('0x26')](_0x4ac8a3){if(this['view'][_0x4af4('0x32')][_0x4af4('0x3')](),_0x4ac8a3)for(const _0x60f05e of _0x4ac8a3)this[_0x4af4('0xd')](_0x60f05e);this[_0x4af4('0x8')]['list'][_0x4af4('0x30')](),this[_0x4af4('0x8')]['class']='',this['_lastItem']=null;}[_0x4af4('0x3e')](_0x71ec64,_0x37513b){_0x37513b||(_0x37513b=_0x71ec64[_0x4af4('0x8')]);const _0x29d0ca=new _0x18fd9e(this[_0x4af4('0xb')][_0x4af4('0x29')]);this[_0x4af4('0xe')]['set'](_0x29d0ca,_0x71ec64),this[_0x4af4('0x2c')][_0x4af4('0x1e')](_0x71ec64,_0x29d0ca),_0x29d0ca[_0x4af4('0x1d')][_0x4af4('0x9')](_0x37513b),this[_0x4af4('0x22')](_0x71ec64[_0x4af4('0x8')],_0x4af4('0x41'),(_0x3f04e8,_0x263cdd,_0x535b27)=>{const _0x5c451b=this[_0x4af4('0x27')](_0x71ec64,_0x535b27);_0x29d0ca[_0x4af4('0x48')]!=_0x5c451b&&(_0x29d0ca[_0x4af4('0x48')]=_0x5c451b,this['_setItemTop'](_0x29d0ca,_0x5c451b));}),this[_0x4af4('0x22')](_0x29d0ca,_0x4af4('0x24'),()=>{this[_0x4af4('0x2f')](_0x29d0ca,_0x4af4('0x44'));}),this[_0x4af4('0x22')](_0x29d0ca,_0x4af4('0x16'),()=>{this['_recalculate'](_0x29d0ca,_0x4af4('0x15'));}),this['_alignToTargetRect'](_0x29d0ca);const _0x3daa99=this[_0x4af4('0x10')](_0x29d0ca);if(_0x3daa99)this[_0x4af4('0x4a')](_0x3daa99,_0x29d0ca)||this[_0x4af4('0x14')](_0x29d0ca);else this[_0x4af4('0x14')](_0x29d0ca);return this[_0x4af4('0x38')](),this['view'][_0x4af4('0x3f')]['add'](_0x29d0ca),_0x29d0ca;}[_0x4af4('0x13')](_0x2d00d7){if(!_0x2d00d7[_0x4af4('0x1d')][_0x4af4('0x3d')])return;const _0x2b4eda=this[_0x4af4('0x10')](_0x2d00d7);if(!_0x2b4eda)return;const _0x338034=this[_0x4af4('0xe')][_0x4af4('0x39')](_0x2b4eda),_0x156460=this[_0x4af4('0xa')];_0x156460&&_0x156460===_0x338034?this['_alignAfterItem'](_0x2b4eda,_0x2d00d7):this[_0x4af4('0x18')](_0x2d00d7,_0x2b4eda);}['_alignForBottomChange'](_0x1de1d3){if(!_0x1de1d3[_0x4af4('0x1d')][_0x4af4('0x3d')])return;const _0x5dc726=this[_0x4af4('0x49')](_0x1de1d3);if(!_0x5dc726)return;const _0xfd634a=this[_0x4af4('0xe')][_0x4af4('0x39')](_0x5dc726),_0x3dbe2d=this[_0x4af4('0xb')][_0x4af4('0x2b')][_0x4af4('0x39')]('sidebar.preventScrollOutOfView'),_0x4d8e49=this[_0x4af4('0xa')];_0x4d8e49&&_0x4d8e49===_0xfd634a&&_0x3dbe2d?(this[_0x4af4('0x18')](_0x5dc726,_0x1de1d3),this['_alignAfterItem'](_0x1de1d3,_0x5dc726)):_0x4d8e49&&_0x4d8e49===_0xfd634a?this[_0x4af4('0x18')](_0x5dc726,_0x1de1d3):this[_0x4af4('0x4a')](_0x1de1d3,_0x5dc726);}['_recalculate'](_0x32ddc4,_0x29444d){0x0===this['_recalculateBuffer'][_0x4af4('0x3d')]&&setTimeout(()=>{for(const {sidebarItemView:_0x3aca60,changedProp:_0x1fd6a0}of this[_0x4af4('0x1')])_0x4af4('0x44')===_0x1fd6a0?this[_0x4af4('0x13')](_0x3aca60):this[_0x4af4('0x33')](_0x3aca60);this[_0x4af4('0x1')]=[];},0xa),this[_0x4af4('0x1')][_0x4af4('0x37')]({'sidebarItemView':_0x32ddc4,'changedProp':_0x29444d});}[_0x4af4('0x35')](_0xd7cafa){return this['_annotationToSidebarItemView'][_0x4af4('0x39')](_0xd7cafa);}[_0x4af4('0x45')](){this[_0x4af4('0x1f')](),this[_0x4af4('0x8')][_0x4af4('0x45')]();}[_0x4af4('0xd')](_0x26df93){const _0x1ceb1=this[_0x4af4('0x35')](_0x26df93);this['stopListening'](_0x1ceb1),this[_0x4af4('0x1f')](_0x26df93[_0x4af4('0x8')]),_0x1ceb1[_0x4af4('0x45')](),this[_0x4af4('0x2c')]['delete'](_0x26df93),this[_0x4af4('0xe')][_0x4af4('0x5')](_0x1ceb1);}['_createSidebarView'](){const _0x5597c4=new _0x3441ec(this[_0x4af4('0xb')]['locale']);return _0x5597c4[_0x4af4('0x2a')](),this['on'](_0x4af4('0x43'),(_0x29dfb3,_0x90c88c,_0x38c8ce,_0x36d0d9)=>{_0x36d0d9&&_0x5597c4[_0x4af4('0x1c')](_0x4af4('0x21')),_0x38c8ce?_0x5597c4[_0x4af4('0x19')](_0x4af4('0x21'))['to'](_0x38c8ce,_0x4af4('0x15')):_0x5597c4[_0x4af4('0x21')]=null;}),_0x5597c4;}[_0x4af4('0x38')](){var _0x193ece;this[_0x4af4('0x25')]=(null===(_0x193ece=this[_0x4af4('0x40')])||void 0x0===_0x193ece?void 0x0:_0x193ece[_0x4af4('0x6')])?this[_0x4af4('0x35')](this[_0x4af4('0x40')]['last']):null;}[_0x4af4('0x10')](_0x2f4334){var _0x17f4b4;const _0xa0d47e=this[_0x4af4('0xe')][_0x4af4('0x39')](_0x2f4334),_0x24e445=_0xa0d47e&&(null===(_0x17f4b4=this[_0x4af4('0x40')])||void 0x0===_0x17f4b4?void 0x0:_0x17f4b4[_0x4af4('0x39')](this[_0x4af4('0x40')][_0x4af4('0x3c')](_0xa0d47e)-0x1));return _0x24e445&&this[_0x4af4('0x35')](_0x24e445)||null;}[_0x4af4('0x49')](_0x5e797b){var _0x4940ff;const _0x154841=this[_0x4af4('0xe')]['get'](_0x5e797b),_0x1e57ae=_0x154841&&(null===(_0x4940ff=this[_0x4af4('0x40')])||void 0x0===_0x4940ff?void 0x0:_0x4940ff['get'](this[_0x4af4('0x40')][_0x4af4('0x3c')](_0x154841)+0x1));return _0x1e57ae&&this[_0x4af4('0x35')](_0x1e57ae)||null;}[_0x4af4('0x18')](_0x54eaa6,_0x35c065){_0x54eaa6[_0x4af4('0x12')]();const _0x543787=M(_0x35c065[_0x4af4('0x15')]+this[_0x4af4('0x42')],_0x54eaa6[_0x4af4('0x44')]);return!!_0x543787&&(this[_0x4af4('0xf')](_0x35c065,_0x35c065[_0x4af4('0x44')]-_0x543787),!0x0);}['_alignAfterItem'](_0x21a1f4,_0x32296d){_0x21a1f4[_0x4af4('0x12')]();const _0x49ac04=M(_0x21a1f4[_0x4af4('0x15')]+this['_spaceBetweenItems'],_0x32296d['top']);return!!_0x49ac04&&(this[_0x4af4('0xf')](_0x32296d,_0x32296d[_0x4af4('0x44')]+_0x49ac04,!0x1),!0x0);}['_alignToTargetRect'](_0x59f320){const _0xba5ff2=this[_0x4af4('0xe')][_0x4af4('0x39')](_0x59f320);if(!_0xba5ff2||!_0xba5ff2[_0x4af4('0x3a')]||!_0xba5ff2[_0x4af4('0x28')])return;const _0x14f823=this['_getTargetTop'](_0xba5ff2,_0xba5ff2[_0x4af4('0x28')]);this['_setItemTop'](_0x59f320,_0x14f823);}[_0x4af4('0x27')](_0x41d701,_0x14732f){if(null===_0x14732f)return 0x0;if(_0x41d701['target']instanceof _0x2439f7)return _0x14732f[_0x4af4('0x44')];{const _0x5c37c9=new _0x2439f7(this[_0x4af4('0x8')][_0x4af4('0x32')])[_0x4af4('0x44')];return _0x14732f[_0x4af4('0x44')]-_0x5c37c9;}}[_0x4af4('0xf')](_0x1cd56e,_0x83c00,_0x1e0e0c=this['context'][_0x4af4('0x2b')]['get'](_0x4af4('0x3b'))){_0x1e0e0c&&(_0x83c00=Math['max'](_0x83c00,this[_0x4af4('0x2e')](_0x1cd56e))),_0x1cd56e['top']=_0x83c00;}[_0x4af4('0x2e')](_0x128e0b){let _0x5d9e1c=this['_getItemBefore'](_0x128e0b),_0x300e19=0x0;for(;_0x5d9e1c;)_0x5d9e1c[_0x4af4('0x12')](),_0x300e19+=this['_spaceBetweenItems']+_0x5d9e1c[_0x4af4('0x0')],_0x5d9e1c=this['_getItemBefore'](_0x5d9e1c);return _0x300e19;}}function M(_0x38bfac,_0x10bd08){return Math[_0x4af4('0x7')](_0x38bfac-_0x10bd08,0x0);}function y(_0x47e34e){return null!==_0x47e34e&&_0x4af4('0x2d')==typeof _0x47e34e&&0x1===_0x47e34e[_0x4af4('0x46')];}
@@ -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 _0x584e=['ck-annotation-counter__badge','icon','...','add','counterView','setTemplate','extendTemplate','number','ck-annotation-counter','ck-annotation-counter__badge--edit-mode','annotationType','set','isDirty','_badge'];(function(_0x4e4642,_0x584e31){const _0x2d09bf=function(_0x544f03){while(--_0x544f03){_0x4e4642['push'](_0x4e4642['shift']());}};_0x2d09bf(++_0x584e31);}(_0x584e,0x1ad));const _0x2d09=function(_0x4e4642,_0x584e31){_0x4e4642=_0x4e4642-0x0;let _0x2d09bf=_0x584e[_0x4e4642];return _0x2d09bf;};import{ButtonView as _0x1f9b1f,View as _0x4c9e23}from'ckeditor5/src/ui';import _0x16c89e from'../../../theme/icons/add-comment.svg';export default class D extends _0x1f9b1f{constructor(_0x41a318){super(_0x41a318);const _0x5bd07d=this['bindTemplate'];this['set'](_0x2d09('0x3'),!0x1),this[_0x2d09('0x2')](_0x2d09('0xc'),0x0),this['bind'](_0x2d09('0x4'))['to'](this,_0x2d09('0x3'),this,_0x2d09('0xc'),(_0x109ec0,_0x2c2db9)=>_0x109ec0?_0x2d09('0x7'):_0x2c2db9['toString']()),this['set'](_0x2d09('0x1'),''),this[_0x2d09('0x6')]=_0x16c89e,this[_0x2d09('0xb')]({'attributes':{'class':[_0x2d09('0xd')]}}),this[_0x2d09('0x9')]=new _0x4c9e23(),this['counterView'][_0x2d09('0xa')]({'tag':'span','attributes':{'class':[_0x2d09('0x5'),_0x5bd07d['to']('annotationType',_0x596850=>'ck-annotation-counter__badge--'+_0x596850),_0x5bd07d['if'](_0x2d09('0x3'),_0x2d09('0x0'))]},'children':[{'text':_0x5bd07d['to'](_0x2d09('0x4'))}]}),this['children'][_0x2d09('0x8')](this[_0x2d09('0x9')]);}}
23
+ const _0x2298=['isDirty','number','children','set','setTemplate','counterView','ck-annotation-counter__badge--edit-mode','ck-annotation-counter','ck-annotation-counter__badge--','icon','_badge','bindTemplate','annotationType','...'];(function(_0x5d2686,_0x2298d1){const _0x5312fb=function(_0x2d146b){while(--_0x2d146b){_0x5d2686['push'](_0x5d2686['shift']());}};_0x5312fb(++_0x2298d1);}(_0x2298,0x1eb));const _0x5312=function(_0x5d2686,_0x2298d1){_0x5d2686=_0x5d2686-0x0;let _0x5312fb=_0x2298[_0x5d2686];return _0x5312fb;};import{ButtonView as _0x36e74f,View as _0x30c59a}from'ckeditor5/src/ui.js';import _0x254c57 from'../../../theme/icons/add-comment.svg';export default class D extends _0x36e74f{constructor(_0xc9b88c){super(_0xc9b88c);const _0x4d93ce=this[_0x5312('0xa')];this[_0x5312('0x2')](_0x5312('0xd'),!0x1),this[_0x5312('0x2')](_0x5312('0x0'),0x0),this['bind'](_0x5312('0x9'))['to'](this,_0x5312('0xd'),this,_0x5312('0x0'),(_0x2fa9a1,_0x250c50)=>_0x2fa9a1?_0x5312('0xc'):_0x250c50['toString']()),this[_0x5312('0x2')](_0x5312('0xb'),''),this[_0x5312('0x8')]=_0x254c57,this['extendTemplate']({'attributes':{'class':[_0x5312('0x6')]}}),this[_0x5312('0x4')]=new _0x30c59a(),this['counterView'][_0x5312('0x3')]({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x4d93ce['to'](_0x5312('0xb'),_0x59bf5a=>_0x5312('0x7')+_0x59bf5a),_0x4d93ce['if'](_0x5312('0xd'),_0x5312('0x5'))]},'children':[{'text':_0x4d93ce['to'](_0x5312('0x9'))}]}),this[_0x5312('0x1')]['add'](this[_0x5312('0x4')]);}}
@@ -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 _0x388b=['keystrokes','Esc','_mutationObserver','length','fire','render','content','focus','div','mainView','isDirty','_updateHeight','ck-annotation-wrapper','set','listenTo','detach','height','isActive','destroy','element','ck-rounded-corners','bindTemplate','createCollection','type','focusTracker','clear','setTemplate','attach','add'];(function(_0x526aba,_0x388b10){const _0x2cf3c1=function(_0x33f8c7){while(--_0x33f8c7){_0x526aba['push'](_0x526aba['shift']());}};_0x2cf3c1(++_0x388b10);}(_0x388b,0x1be));const _0x2cf3=function(_0x526aba,_0x388b10){_0x526aba=_0x526aba-0x0;let _0x2cf3c1=_0x388b[_0x526aba];return _0x2cf3c1;};import{View as _0x4f900c}from'ckeditor5/src/ui';import{FocusTracker as _0x53ad62,KeystrokeHandler as _0x585e13,uid as _0x2e121a}from'ckeditor5/src/utils';import _0x1d10a1 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x4f900c{constructor(_0x551b70,_0x534d70){super(_0x551b70),this['id']=_0x2e121a(),this[_0x2cf3('0xd')]=new _0x53ad62(),this[_0x2cf3('0x12')]=new _0x585e13(),this['keystrokes'][_0x2cf3('0x2')](_0x2cf3('0x13'),(_0x4defc4,_0x35e5e0)=>this[_0x2cf3('0x16')](_0x2cf3('0x13'),_0x35e5e0)),this[_0x2cf3('0x2')]('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x2cf3('0x2')](_0x2cf3('0x5'),0x0),this[_0x2cf3('0x2')](_0x2cf3('0x6'),!0x1),this[_0x2cf3('0x2')](_0x2cf3('0x1c'),!0x1),this[_0x2cf3('0x2')](_0x2cf3('0x15'),0x0),this['set'](_0x2cf3('0xc'),''),this['_mutationObserver']=_0x1d10a1(()=>this['_updateHeight']()),this[_0x2cf3('0x18')]=this[_0x2cf3('0xb')](),this['content'][_0x2cf3('0x11')](_0x534d70),this[_0x2cf3('0x1b')]=_0x534d70;const _0x390f33=this[_0x2cf3('0xa')];this[_0x2cf3('0xf')]({'tag':_0x2cf3('0x1a'),'attributes':{'class':['ck',_0x2cf3('0x1'),_0x2cf3('0x9'),_0x390f33['if'](_0x2cf3('0x6'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this['content']});}[_0x2cf3('0x17')](){super[_0x2cf3('0x17')](),this[_0x2cf3('0xd')][_0x2cf3('0x11')](this[_0x2cf3('0x8')]),this['keystrokes'][_0x2cf3('0x3')](this['element']),this[_0x2cf3('0x14')][_0x2cf3('0x10')](this[_0x2cf3('0x8')]);}[_0x2cf3('0x7')](){this['content'][_0x2cf3('0xe')](),this[_0x2cf3('0x12')][_0x2cf3('0x7')](),this[_0x2cf3('0xd')]['destroy'](),this[_0x2cf3('0x14')][_0x2cf3('0x4')](),super[_0x2cf3('0x7')]();}[_0x2cf3('0x19')](){this[_0x2cf3('0x8')][_0x2cf3('0x19')]();}[_0x2cf3('0x0')](){const _0x5b044f=this['element']['clientHeight'];_0x5b044f&&(this[_0x2cf3('0x5')]=_0x5b044f);}}
23
+ const _0x53bb=['Esc','set','div','element','add','keystrokes','ck-annotation-wrapper--active','content','ck-annotation-wrapper','focusTracker','destroy','isDirty','type','height','ck-rounded-corners','_updateHeight','setTemplate','detach','focus','_mutationObserver','length','render','fire'];(function(_0x25d827,_0x53bb4f){const _0x1f625f=function(_0x2ebfcf){while(--_0x2ebfcf){_0x25d827['push'](_0x25d827['shift']());}};_0x1f625f(++_0x53bb4f);}(_0x53bb,0x103));const _0x1f62=function(_0x25d827,_0x53bb4f){_0x25d827=_0x25d827-0x0;let _0x1f625f=_0x53bb[_0x25d827];return _0x1f625f;};import{View as _0xa270c3}from'ckeditor5/src/ui.js';import{FocusTracker as _0x31e41c,KeystrokeHandler as _0x381367,uid as _0xf67a3a}from'ckeditor5/src/utils.js';import _0x59ce66 from'../../utils/createmutationobserver.js';import'../../../theme/annotation.css';export default class V extends _0xa270c3{constructor(_0x2e19d6,_0x19f100){super(_0x2e19d6),this['id']=_0xf67a3a(),this[_0x1f62('0x3')]=new _0x31e41c(),this['keystrokes']=new _0x381367(),this[_0x1f62('0x16')][_0x1f62('0x12')](_0x1f62('0x11'),(_0x209906,_0x3a3773)=>this[_0x1f62('0x10')](_0x1f62('0x11'),_0x3a3773)),this[_0x1f62('0x12')]('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set'](_0x1f62('0x7'),0x0),this[_0x1f62('0x12')]('isActive',!0x1),this[_0x1f62('0x12')](_0x1f62('0x5'),!0x1),this[_0x1f62('0x12')](_0x1f62('0xe'),0x0),this['set'](_0x1f62('0x6'),''),this[_0x1f62('0xd')]=_0x59ce66(()=>this[_0x1f62('0x9')]()),this[_0x1f62('0x1')]=this['createCollection'](),this[_0x1f62('0x1')][_0x1f62('0x15')](_0x19f100),this['mainView']=_0x19f100;const _0x383b4d=this['bindTemplate'];this[_0x1f62('0xa')]({'tag':_0x1f62('0x13'),'attributes':{'class':['ck',_0x1f62('0x2'),_0x1f62('0x8'),_0x383b4d['if']('isActive',_0x1f62('0x0'))],'tabindex':-0x1},'children':this[_0x1f62('0x1')]});}[_0x1f62('0xf')](){super[_0x1f62('0xf')](),this['focusTracker']['add'](this[_0x1f62('0x14')]),this[_0x1f62('0x16')]['listenTo'](this[_0x1f62('0x14')]),this['_mutationObserver']['attach'](this[_0x1f62('0x14')]);}['destroy'](){this[_0x1f62('0x1')]['clear'](),this[_0x1f62('0x16')][_0x1f62('0x4')](),this[_0x1f62('0x3')][_0x1f62('0x4')](),this[_0x1f62('0xd')][_0x1f62('0xb')](),super[_0x1f62('0x4')]();}[_0x1f62('0xc')](){this[_0x1f62('0x14')][_0x1f62('0xc')]();}[_0x1f62('0x9')](){const _0x5f55f1=this[_0x1f62('0x14')]['clientHeight'];_0x5f55f1&&(this[_0x1f62('0x7')]=_0x5f55f1);}}
@@ -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 _0xb68b=['bind','clear','attach','setTemplate','bottom','bindTemplate','set','isAnimationDisabled','destroy','_targetTop','height','updateHeight','createCollection','element','detach','ck-sidebar-item--no-animation','render','clientHeight','top','content','_mutationObserver','div'];(function(_0x1dcbc9,_0xb68b4d){const _0x386947=function(_0x3146cb){while(--_0x3146cb){_0x1dcbc9['push'](_0x1dcbc9['shift']());}};_0x386947(++_0xb68b4d);}(_0xb68b,0xe1));const _0x3869=function(_0x1dcbc9,_0xb68b4d){_0x1dcbc9=_0x1dcbc9-0x0;let _0x386947=_0xb68b[_0x1dcbc9];return _0x386947;};import{View as _0x3da24c}from'ckeditor5/src/ui';import{toUnit as _0x3ce75c}from'ckeditor5/src/utils';import _0x29750b from'../../utils/createmutationobserver';const jt=_0x3ce75c('px');export default class C extends _0x3da24c{constructor(_0x5407fc){super(_0x5407fc),this['set'](_0x3869('0xd'),0x0),this[_0x3869('0x1')](_0x3869('0x5'),0x0),this[_0x3869('0x11')](_0x3869('0x15'))['to'](this,_0x3869('0xd'),this,'height',(_0x550025,_0x521353)=>_0x550025+_0x521353),this['set'](_0x3869('0x2'),!0x1),this[_0x3869('0xf')]=_0x29750b(()=>this[_0x3869('0x6')]()),this[_0x3869('0x4')]=null,this[_0x3869('0xe')]=this[_0x3869('0x7')]();const _0x59ba4a=this[_0x3869('0x0')];this[_0x3869('0x14')]({'tag':_0x3869('0x10'),'attributes':{'class':['ck-sidebar-item',_0x59ba4a['to'](_0x3869('0x2'),_0x249e6d=>_0x249e6d?_0x3869('0xa'):'')],'style':{'top':_0x59ba4a['to'](_0x3869('0xd'),_0x111cde=>jt(_0x111cde))}},'children':this['content']});}[_0x3869('0xb')](){super[_0x3869('0xb')](),this['_mutationObserver'][_0x3869('0x13')](this[_0x3869('0x8')]);}[_0x3869('0x6')](){const _0x370408=this[_0x3869('0x8')][_0x3869('0xc')];_0x370408&&(this[_0x3869('0x5')]=_0x370408);}[_0x3869('0x3')](){this[_0x3869('0xe')][_0x3869('0x12')](),this['_mutationObserver'][_0x3869('0x9')](),super['destroy']();}}
23
+ const _0x5dfe=['ck-sidebar-item','detach','clientHeight','render','isAnimationDisabled','_mutationObserver','destroy','div','clear','content','bindTemplate','bind','updateHeight','height','_targetTop','element','set','top'];(function(_0x28c791,_0x5dfee6){const _0x4d83f3=function(_0x108d95){while(--_0x108d95){_0x28c791['push'](_0x28c791['shift']());}};_0x4d83f3(++_0x5dfee6);}(_0x5dfe,0x10f));const _0x4d83=function(_0x28c791,_0x5dfee6){_0x28c791=_0x28c791-0x0;let _0x4d83f3=_0x5dfe[_0x28c791];return _0x4d83f3;};import{View as _0x1b0088}from'ckeditor5/src/ui.js';import{toUnit as _0x5a3a68}from'ckeditor5/src/utils.js';import _0x3924ad from'../../utils/createmutationobserver.js';const Ht=_0x5a3a68('px');export default class C extends _0x1b0088{constructor(_0xb35af4){super(_0xb35af4),this[_0x4d83('0xf')](_0x4d83('0x10'),0x0),this[_0x4d83('0xf')](_0x4d83('0xc'),0x0),this[_0x4d83('0xa')]('bottom')['to'](this,_0x4d83('0x10'),this,_0x4d83('0xc'),(_0x5e81ce,_0x6066c1)=>_0x5e81ce+_0x6066c1),this[_0x4d83('0xf')]('isAnimationDisabled',!0x1),this[_0x4d83('0x4')]=_0x3924ad(()=>this[_0x4d83('0xb')]()),this[_0x4d83('0xd')]=null,this[_0x4d83('0x8')]=this['createCollection']();const _0x5acb11=this[_0x4d83('0x9')];this['setTemplate']({'tag':_0x4d83('0x6'),'attributes':{'class':[_0x4d83('0x11'),_0x5acb11['to'](_0x4d83('0x3'),_0x5f1e52=>_0x5f1e52?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x5acb11['to'](_0x4d83('0x10'),_0xc2b369=>Ht(_0xc2b369))}},'children':this['content']});}['render'](){super[_0x4d83('0x2')](),this['_mutationObserver']['attach'](this['element']);}[_0x4d83('0xb')](){const _0x47c994=this[_0x4d83('0xe')][_0x4d83('0x1')];_0x47c994&&(this[_0x4d83('0xc')]=_0x47c994);}[_0x4d83('0x5')](){this[_0x4d83('0x8')][_0x4d83('0x7')](),this[_0x4d83('0x4')][_0x4d83('0x0')](),super[_0x4d83('0x5')]();}}
@@ -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 _0x593b=['div','createCollection','minHeight','list','bindTemplate','class','set','number','ck-reset'];(function(_0x3a79bd,_0x593b5c){const _0x3fbe67=function(_0xead435){while(--_0xead435){_0x3a79bd['push'](_0x3a79bd['shift']());}};_0x3fbe67(++_0x593b5c);}(_0x593b,0x159));const _0x3fbe=function(_0x3a79bd,_0x593b5c){_0x3a79bd=_0x3a79bd-0x0;let _0x3fbe67=_0x593b[_0x3a79bd];return _0x3fbe67;};import{View as _0x118762}from'ckeditor5/src/ui';import{toUnit as _0x4cf634}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const jt=_0x4cf634('px');export default class T extends _0x118762{constructor(_0x370332){super(_0x370332);const _0x2a0f1c=this[_0x3fbe('0x1')];this[_0x3fbe('0x3')](_0x3fbe('0x8'),0x0),this[_0x3fbe('0x3')](_0x3fbe('0x2'),''),this['list']=this[_0x3fbe('0x7')](),this['setTemplate']({'tag':_0x3fbe('0x6'),'attributes':{'class':['ck','ck-sidebar',_0x3fbe('0x5'),_0x2a0f1c['to']('class')],'style':{'minHeight':_0x2a0f1c['to']('minHeight',_0x2c5396=>_0x3fbe('0x4')==typeof _0x2c5396?jt(_0x2c5396+0xa):null)}},'children':this[_0x3fbe('0x0')]});}}
23
+ const _0x58fe=['set','createCollection','class','list','ck-sidebar','div','setTemplate','number','minHeight'];(function(_0x1466f4,_0x58fef3){const _0x5e1005=function(_0x1931b4){while(--_0x1931b4){_0x1466f4['push'](_0x1466f4['shift']());}};_0x5e1005(++_0x58fef3);}(_0x58fe,0xb9));const _0x5e10=function(_0x1466f4,_0x58fef3){_0x1466f4=_0x1466f4-0x0;let _0x5e1005=_0x58fe[_0x1466f4];return _0x5e1005;};import{View as _0x104ef2}from'ckeditor5/src/ui.js';import{toUnit as _0x2c5d21}from'ckeditor5/src/utils.js';import'../../../theme/sidebar.css';const Ht=_0x2c5d21('px');export default class T extends _0x104ef2{constructor(_0x30dc68){super(_0x30dc68);const _0x24e981=this['bindTemplate'];this[_0x5e10('0x4')](_0x5e10('0x3'),0x0),this[_0x5e10('0x4')](_0x5e10('0x6'),''),this[_0x5e10('0x7')]=this[_0x5e10('0x5')](),this[_0x5e10('0x1')]({'tag':_0x5e10('0x0'),'attributes':{'class':['ck',_0x5e10('0x8'),'ck-reset',_0x24e981['to'](_0x5e10('0x6'))],'style':{'minHeight':_0x24e981['to'](_0x5e10('0x3'),_0x35fe41=>_0x5e10('0x2')==typeof _0x35fe41?Ht(_0x35fe41+0xa):null)}},'children':this[_0x5e10('0x7')]});}}
@@ -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 _0x5816=['_annotations','focus','_editorAnnotations','ck-sidebar--wide','attach','rearrange','wideSidebar','uiUpdate','switchTo','requires','_activeAnnotation','setActiveAnnotation','stopListening','change:container','context','_detachFromContainer','updateTargetRect','EditorAnnotations','has','activeAnnotation','annotations','remove','get','refresh','isAttached','WideSidebar','_integrateWithEditorAnnotations','getOrderedSelectedAnnotations','_attachToContainer','widesidebar-detach-not-attached','_refreshPositioningDebounced','detach','plugins','add','_destroyEditorAnnotationsIntegration','addEventListener','listenTo','refreshPositioning','high','ready','editors'];(function(_0x1711a9,_0x581679){const _0x47aea5=function(_0x2c8dd5){while(--_0x2c8dd5){_0x1711a9['push'](_0x1711a9['shift']());}};_0x47aea5(++_0x581679);}(_0x5816,0xc4));const _0x47ae=function(_0x1711a9,_0x581679){_0x1711a9=_0x1711a9-0x0;let _0x47aea5=_0x5816[_0x1711a9];return _0x47aea5;};import{ContextPlugin as _0x438ed9,Context as _0x140fc8}from'ckeditor5/src/core';import _0x40d64f from'./annotationsuis';import _0x4d2abf from'./sidebar';import{CKEditorError as _0x6b8c6c,Collection as _0x230029}from'ckeditor5/src/utils';import{debounce as _0x34ccfc}from'lodash-es';import _0x59c2d3 from'./editorannotations';export default class i extends _0x438ed9{static get[_0x47ae('0x12')](){return[_0x4d2abf,_0x40d64f];}static get['pluginName'](){return _0x47ae('0x22');}constructor(_0xe0e1c0){super(_0xe0e1c0),this[_0x47ae('0x21')]=!0x1,this['set'](_0x47ae('0x1c'),null),this[_0x47ae('0x1d')]=null,this[_0x47ae('0xb')]=new _0x230029(),this[_0x47ae('0x27')]=_0x34ccfc(()=>{this[_0x47ae('0x1d')][_0x47ae('0x5')]();},0xfa,{'leading':!0x1});}['init'](){const _0x3a0daf=this['context'][_0x47ae('0x0')]['get'](_0x40d64f),_0x42a4be=this[_0x47ae('0x17')][_0x47ae('0x0')][_0x47ae('0x1f')](_0x4d2abf);_0x3a0daf['register'](_0x47ae('0xf'),this),_0x42a4be['container']&&_0x3a0daf[_0x47ae('0x11')](_0x47ae('0xf'));}[_0x47ae('0x14')](_0x2be3ee){if(_0x2be3ee===this['activeAnnotation'])return;const _0x2a960f=this[_0x47ae('0x17')][_0x47ae('0x0')][_0x47ae('0x1f')](_0x4d2abf);_0x2a960f[_0x47ae('0x13')]=_0x2be3ee;const _0x1ac7cf=this[_0x47ae('0x1c')];this['activeAnnotation']=_0x2be3ee,_0x2a960f[_0x47ae('0x20')]({'blurredAnnotation':_0x1ac7cf,'activatedAnnotation':this[_0x47ae('0x1c')]});}['attach'](_0x58055a){this[_0x47ae('0x1d')]=_0x58055a;const _0x2af4b7=this[_0x47ae('0x17')][_0x47ae('0x0')][_0x47ae('0x1f')](_0x4d2abf);if(_0x2af4b7[_0x47ae('0x9')]=_0x58055a,this[_0x47ae('0x21')])throw new _0x6b8c6c('widesidebar-attach-already-attached',this);this[_0x47ae('0x21')]=!0x0,this[_0x47ae('0x4')](_0x2af4b7,'set:container',()=>{this['detach'](),this[_0x47ae('0x4')](_0x2af4b7,_0x47ae('0x16'),_0x54bc8b=>{_0x54bc8b['off'](),this[_0x47ae('0xd')](_0x58055a);});}),_0x2af4b7[_0x47ae('0x25')]({'viewClass':_0x47ae('0xc')});const _0x4b0146=_0x5cf182=>{_0x5cf182[_0x47ae('0x19')](),_0x2af4b7['addAnnotation'](_0x5cf182);};for(const _0x460931 of _0x58055a)_0x4b0146(_0x460931);this[_0x47ae('0x4')](_0x58055a,'add',(_0x2898c7,_0x2e1839)=>{_0x4b0146(_0x2e1839);}),this[_0x47ae('0x4')](_0x58055a,_0x47ae('0x1e'),(_0x567e61,_0x406081,_0xb4cb99)=>{_0x2af4b7[_0x47ae('0xe')]({'removedAnnotation':_0x406081,'previousAnnotation':_0x58055a['get'](_0xb4cb99-0x1),'nextAnnotation':_0x58055a[_0x47ae('0x1f')](_0xb4cb99+0x1)}),_0x406081===this[_0x47ae('0x1c')]&&this[_0x47ae('0x14')](null);},{'priority':_0x47ae('0x6')}),this[_0x47ae('0x4')](_0x58055a,_0x47ae('0xa'),(_0x39f585,_0x37123b)=>{this[_0x47ae('0x14')](_0x37123b);}),this['listenTo'](_0x58055a,'blur',()=>{this[_0x47ae('0x14')](null);});const _0x41332e=this['context']instanceof _0x140fc8?this[_0x47ae('0x17')]['editors']:new _0x230029([this[_0x47ae('0x17')]]);for(const _0x53c8f6 of _0x41332e)this['_integrateWithEditorAnnotations'](_0x53c8f6);this[_0x47ae('0x4')](_0x41332e,_0x47ae('0x1'),(_0x1cd9f4,_0x42ef8c)=>{this[_0x47ae('0x4')](_0x42ef8c,_0x47ae('0x7'),()=>{this[_0x47ae('0x23')](_0x42ef8c);});}),this['listenTo'](_0x41332e,_0x47ae('0x1e'),(_0x350ce1,_0x52df8c)=>{_0x52df8c[_0x47ae('0x0')][_0x47ae('0x1b')](_0x47ae('0x1a'))&&this[_0x47ae('0x2')](_0x52df8c[_0x47ae('0x0')][_0x47ae('0x1f')](_0x47ae('0x1a')));}),window[_0x47ae('0x3')]('resize',this[_0x47ae('0x27')]),this[_0x47ae('0x1d')][_0x47ae('0x5')]();}[_0x47ae('0x28')](){if(!this[_0x47ae('0x21')])throw new _0x6b8c6c(_0x47ae('0x26'),this);this[_0x47ae('0x14')](null);const _0xc19681=this[_0x47ae('0x17')][_0x47ae('0x0')]['get'](_0x4d2abf);_0xc19681[_0x47ae('0x18')](this[_0x47ae('0x1d')]),this['stopListening'](_0xc19681),this[_0x47ae('0x15')](this[_0x47ae('0x1d')]),this[_0x47ae('0x17')]instanceof _0x140fc8&&this['stopListening'](this[_0x47ae('0x17')][_0x47ae('0x8')]);for(const _0x16e2e1 of Array['from'](this['_editorAnnotations']))this[_0x47ae('0x2')](_0x16e2e1);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this[_0x47ae('0x27')]['cancel'](),this[_0x47ae('0x1c')]=null,this[_0x47ae('0x21')]=!0x1,this[_0x47ae('0x1d')]=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x19f180){const _0x49c888=_0x19f180[_0x47ae('0x0')][_0x47ae('0x1f')](_0x59c2d3);if(!_0x49c888)return;const _0xc9ac83=()=>{const _0x4c7da9=_0x49c888[_0x47ae('0x24')]({'annotations':this[_0x47ae('0x1d')],'activeAnnotation':this[_0x47ae('0x1c')]});this[_0x47ae('0x14')](_0x4c7da9[0x0]||null);};this[_0x47ae('0x4')](_0x49c888,'refresh',_0xc9ac83),this['listenTo'](_0x49c888,'blur',(_0x402e88,{isAnnotationTracked:_0x470d50})=>{this['activeAnnotation']&&_0x470d50(this['activeAnnotation'])&&this[_0x47ae('0x14')](null);}),this[_0x47ae('0x4')](_0x49c888,_0x47ae('0x10'),()=>{this[_0x47ae('0x27')]();}),this[_0x47ae('0x4')](this[_0x47ae('0x1d')],'blur',_0x563aa2=>{_0x49c888['hasDomSelection']()&&(_0xc9ac83(),_0x563aa2['stop']());},{'priority':_0x47ae('0x6')}),this['_editorAnnotations'][_0x47ae('0x1')](_0x49c888);}[_0x47ae('0x2')](_0x13aefa){this[_0x47ae('0x15')](_0x13aefa),this[_0x47ae('0xb')][_0x47ae('0x1e')](_0x13aefa);}}
23
+ const _0x3aef=['_annotations','setActiveAnnotation','ck-sidebar--wide','detach','annotations','pluginName','set','get','uiUpdate','from','_refreshPositioningDebounced','EditorAnnotations','_activeAnnotation','init','editors','container','register','removeEventListener','isAttached','blur','cancel','context','updateTargetRect','_detachFromContainer','getOrderedSelectedAnnotations','focus','_editorAnnotations','resize','widesidebar-attach-already-attached','stop','refresh','attach','plugins','_integrateWithEditorAnnotations','widesidebar-detach-not-attached','WideSidebar','destroy','refreshPositioning','_destroyEditorAnnotationsIntegration','switchTo','hasDomSelection','wideSidebar','has','rearrange','listenTo','ready','_attachToContainer','change:container','remove','add','stopListening','set:container','high','activeAnnotation'];(function(_0x2669a5,_0x3aeffa){const _0x32cc91=function(_0x403fcf){while(--_0x403fcf){_0x2669a5['push'](_0x2669a5['shift']());}};_0x32cc91(++_0x3aeffa);}(_0x3aef,0x105));const _0x32cc=function(_0x2669a5,_0x3aeffa){_0x2669a5=_0x2669a5-0x0;let _0x32cc91=_0x3aef[_0x2669a5];return _0x32cc91;};import{ContextPlugin as _0x1b5314,Context as _0x3f26f9}from'ckeditor5/src/core.js';import _0x2ab893 from'./annotationsuis.js';import _0x12c7e1 from'./sidebar.js';import{CKEditorError as _0x49b370,Collection as _0x1af001}from'ckeditor5/src/utils.js';import{debounce as _0x35b36c}from'lodash-es';import _0x522b16 from'./editorannotations.js';export default class n extends _0x1b5314{static get['requires'](){return[_0x12c7e1,_0x2ab893];}static get[_0x32cc('0xe')](){return _0x32cc('0x2c');}constructor(_0xdf9b3f){super(_0xdf9b3f),this[_0x32cc('0x1b')]=!0x1,this[_0x32cc('0xf')](_0x32cc('0x8'),null),this[_0x32cc('0xd')]=null,this[_0x32cc('0x23')]=new _0x1af001(),this[_0x32cc('0x13')]=_0x35b36c(()=>{this['annotations'][_0x32cc('0x2e')]();},0xfa,{'leading':!0x1});}[_0x32cc('0x16')](){const _0x1605df=this[_0x32cc('0x1e')]['plugins'][_0x32cc('0x10')](_0x2ab893),_0x5c8745=this[_0x32cc('0x1e')][_0x32cc('0x29')]['get'](_0x12c7e1);_0x1605df[_0x32cc('0x19')](_0x32cc('0x32'),this),_0x5c8745[_0x32cc('0x18')]&&_0x1605df[_0x32cc('0x30')]('wideSidebar');}['setActiveAnnotation'](_0x5c863a){if(_0x5c863a===this['activeAnnotation'])return;const _0x4e4759=this[_0x32cc('0x1e')]['plugins'][_0x32cc('0x10')](_0x12c7e1);_0x4e4759[_0x32cc('0x15')]=_0x5c863a;const _0x3786fb=this[_0x32cc('0x8')];this[_0x32cc('0x8')]=_0x5c863a,_0x4e4759[_0x32cc('0x27')]({'blurredAnnotation':_0x3786fb,'activatedAnnotation':this['activeAnnotation']});}[_0x32cc('0x28')](_0xa4717d){this[_0x32cc('0xd')]=_0xa4717d;const _0x1628ac=this[_0x32cc('0x1e')][_0x32cc('0x29')][_0x32cc('0x10')](_0x12c7e1);if(_0x1628ac[_0x32cc('0x9')]=_0xa4717d,this[_0x32cc('0x1b')])throw new _0x49b370(_0x32cc('0x25'),this);this[_0x32cc('0x1b')]=!0x0,this['listenTo'](_0x1628ac,_0x32cc('0x6'),()=>{this[_0x32cc('0xc')](),this[_0x32cc('0x35')](_0x1628ac,_0x32cc('0x2'),_0x1d6ea1=>{_0x1d6ea1['off'](),this[_0x32cc('0x28')](_0xa4717d);});}),_0x1628ac[_0x32cc('0x1')]({'viewClass':_0x32cc('0xb')});const _0x135257=_0x28b14e=>{_0x28b14e[_0x32cc('0x1f')](),_0x1628ac['addAnnotation'](_0x28b14e);};for(const _0x2e947c of _0xa4717d)_0x135257(_0x2e947c);this[_0x32cc('0x35')](_0xa4717d,'add',(_0x36d8b7,_0xb0af65)=>{_0x135257(_0xb0af65);}),this[_0x32cc('0x35')](_0xa4717d,'remove',(_0x306fb1,_0x314381,_0x408dd4)=>{_0x1628ac[_0x32cc('0x34')]({'removedAnnotation':_0x314381,'previousAnnotation':_0xa4717d[_0x32cc('0x10')](_0x408dd4-0x1),'nextAnnotation':_0xa4717d[_0x32cc('0x10')](_0x408dd4+0x1)}),_0x314381===this[_0x32cc('0x8')]&&this['setActiveAnnotation'](null);},{'priority':_0x32cc('0x7')}),this['listenTo'](_0xa4717d,_0x32cc('0x22'),(_0xf3549f,_0xdedb29)=>{this[_0x32cc('0xa')](_0xdedb29);}),this['listenTo'](_0xa4717d,'blur',()=>{this[_0x32cc('0xa')](null);});const _0x56907c=this[_0x32cc('0x1e')]instanceof _0x3f26f9?this[_0x32cc('0x1e')][_0x32cc('0x17')]:new _0x1af001([this[_0x32cc('0x1e')]]);for(const _0x8259b4 of _0x56907c)this[_0x32cc('0x2a')](_0x8259b4);this[_0x32cc('0x35')](_0x56907c,_0x32cc('0x4'),(_0xe73377,_0x2ab68f)=>{this[_0x32cc('0x35')](_0x2ab68f,_0x32cc('0x0'),()=>{this[_0x32cc('0x2a')](_0x2ab68f);});}),this[_0x32cc('0x35')](_0x56907c,_0x32cc('0x3'),(_0x32508a,_0x2fbe49)=>{_0x2fbe49[_0x32cc('0x29')][_0x32cc('0x33')](_0x32cc('0x14'))&&this[_0x32cc('0x2f')](_0x2fbe49[_0x32cc('0x29')][_0x32cc('0x10')]('EditorAnnotations'));}),window['addEventListener'](_0x32cc('0x24'),this[_0x32cc('0x13')]),this[_0x32cc('0xd')][_0x32cc('0x2e')]();}[_0x32cc('0xc')](){if(!this[_0x32cc('0x1b')])throw new _0x49b370(_0x32cc('0x2b'),this);this[_0x32cc('0xa')](null);const _0x141727=this[_0x32cc('0x1e')][_0x32cc('0x29')][_0x32cc('0x10')](_0x12c7e1);_0x141727[_0x32cc('0x20')](this['annotations']),this[_0x32cc('0x5')](_0x141727),this[_0x32cc('0x5')](this[_0x32cc('0xd')]),this[_0x32cc('0x1e')]instanceof _0x3f26f9&&this['stopListening'](this[_0x32cc('0x1e')][_0x32cc('0x17')]);for(const _0x46665f of Array[_0x32cc('0x12')](this[_0x32cc('0x23')]))this[_0x32cc('0x2f')](_0x46665f);window[_0x32cc('0x1a')](_0x32cc('0x24'),this[_0x32cc('0x13')]),this[_0x32cc('0x13')][_0x32cc('0x1d')](),this[_0x32cc('0x8')]=null,this['isAttached']=!0x1,this[_0x32cc('0xd')]=null;}[_0x32cc('0x2d')](){this[_0x32cc('0x1b')]&&this[_0x32cc('0xc')]();}[_0x32cc('0x2a')](_0x4fbc06){const _0x4ac6bb=_0x4fbc06[_0x32cc('0x29')][_0x32cc('0x10')](_0x522b16);if(!_0x4ac6bb)return;const _0x27732f=()=>{const _0x3da941=_0x4ac6bb[_0x32cc('0x21')]({'annotations':this[_0x32cc('0xd')],'activeAnnotation':this['activeAnnotation']});this[_0x32cc('0xa')](_0x3da941[0x0]||null);};this[_0x32cc('0x35')](_0x4ac6bb,_0x32cc('0x27'),_0x27732f),this['listenTo'](_0x4ac6bb,'blur',(_0x904f31,{isAnnotationTracked:_0x22de15})=>{this[_0x32cc('0x8')]&&_0x22de15(this[_0x32cc('0x8')])&&this[_0x32cc('0xa')](null);}),this[_0x32cc('0x35')](_0x4ac6bb,_0x32cc('0x11'),()=>{this[_0x32cc('0x13')]();}),this[_0x32cc('0x35')](this[_0x32cc('0xd')],_0x32cc('0x1c'),_0x228425=>{_0x4ac6bb[_0x32cc('0x31')]()&&(_0x27732f(),_0x228425[_0x32cc('0x26')]());},{'priority':_0x32cc('0x7')}),this[_0x32cc('0x23')]['add'](_0x4ac6bb);}[_0x32cc('0x2f')](_0x2cf9c2){this[_0x32cc('0x5')](_0x2cf9c2),this[_0x32cc('0x23')][_0x32cc('0x3')](_0x2cf9c2);}}
@@ -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 _0x1d75=['getRanges','isEnabled','change','_trimToContent','substr','addMarker','schema','_hasContent','isObject','backward','element','model','_itemIsContent','selection','document','editor','end','comment:','tableCell'];(function(_0x2db901,_0x1d75b8){const _0x3b63e2=function(_0x85b5aa){while(--_0x85b5aa){_0x2db901['push'](_0x2db901['shift']());}};_0x3b63e2(++_0x1d75b8);}(_0x1d75,0x6f));const _0x3b63=function(_0x2db901,_0x1d75b8){_0x2db901=_0x2db901-0x0;let _0x3b63e2=_0x1d75[_0x2db901];return _0x3b63e2;};import{Command as _0x250a0c}from'ckeditor5/src/core';import{uid as _0x202f60}from'ckeditor5/src/utils';export default class q extends _0x250a0c{['refresh'](){const _0x1422f7=this[_0x3b63('0x12')][_0x3b63('0xe')][_0x3b63('0x11')]['selection'];for(const _0x3749a0 of _0x1422f7[_0x3b63('0x3')]())if(this[_0x3b63('0xa')](_0x3749a0))return void(this[_0x3b63('0x4')]=!0x0);this[_0x3b63('0x4')]=!0x1;}['execute']({threadId:_0x11cc10=_0x202f60()}={}){const _0x20c1a4=this['editor'][_0x3b63('0xe')],_0x23aa4a=[];for(const _0x406f1f of _0x20c1a4[_0x3b63('0x11')][_0x3b63('0x10')][_0x3b63('0x3')]())this[_0x3b63('0xa')](_0x406f1f)&&_0x23aa4a['push'](this[_0x3b63('0x6')](_0x406f1f));_0x20c1a4[_0x3b63('0x5')](_0x4a4fc2=>{for(const _0x5dbe93 of _0x23aa4a){const _0x14f03f=_0x202f60()[_0x3b63('0x7')](0x1,0x5),_0x10be15=_0x3b63('0x1')+_0x11cc10+':'+_0x14f03f;_0x4a4fc2[_0x3b63('0x8')](_0x10be15,{'range':_0x5dbe93,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x23be98){for(const _0x4e7c66 of _0x23be98['getItems']())if(this['_itemIsContent'](_0x4e7c66))return!0x0;return!0x1;}[_0x3b63('0xf')](_0x3b83da){return _0x3b83da['is']('$textProxy')||this[_0x3b63('0x12')][_0x3b63('0xe')][_0x3b63('0x9')][_0x3b63('0xb')](_0x3b83da)&&!_0x3b83da['is'](_0x3b63('0xd'),_0x3b63('0x2'));}['_trimToContent'](_0x18a85a){const _0xde1d9b=_0x541103=>!this[_0x3b63('0xf')](_0x541103['item']),_0x654af4=_0x18a85a['start']['getLastMatchingPosition'](_0xde1d9b),_0x3ec6fd=_0x18a85a[_0x3b63('0x0')]['getLastMatchingPosition'](_0xde1d9b,{'direction':_0x3b63('0xc')});return this['editor'][_0x3b63('0xe')]['createRange'](_0x654af4,_0x3ec6fd);}}
23
+ const _0x36a1=['isEnabled','getRanges','$textProxy','editor','getLastMatchingPosition','isObject','change','_trimToContent','document','substr','execute','selection','end','element','push','refresh','item','addMarker','_hasContent','schema','tableCell','model'];(function(_0x7820e2,_0x36a193){const _0x49c3a5=function(_0x47d0a9){while(--_0x47d0a9){_0x7820e2['push'](_0x7820e2['shift']());}};_0x49c3a5(++_0x36a193);}(_0x36a1,0x83));const _0x49c3=function(_0x7820e2,_0x36a193){_0x7820e2=_0x7820e2-0x0;let _0x49c3a5=_0x36a1[_0x7820e2];return _0x49c3a5;};import{Command as _0x1205d7}from'ckeditor5/src/core.js';import{uid as _0x323e07}from'ckeditor5/src/utils.js';export default class G extends _0x1205d7{[_0x49c3('0x10')](){const _0x1e94a0=this[_0x49c3('0x4')][_0x49c3('0x0')][_0x49c3('0x9')][_0x49c3('0xc')];for(const _0x477bd3 of _0x1e94a0[_0x49c3('0x2')]())if(this[_0x49c3('0x13')](_0x477bd3))return void(this['isEnabled']=!0x0);this[_0x49c3('0x1')]=!0x1;}[_0x49c3('0xb')]({threadId:_0x545c6a=_0x323e07()}={}){const _0x2613f3=this[_0x49c3('0x4')][_0x49c3('0x0')],_0x5f1deb=[];for(const _0x351425 of _0x2613f3[_0x49c3('0x9')][_0x49c3('0xc')][_0x49c3('0x2')]())this[_0x49c3('0x13')](_0x351425)&&_0x5f1deb[_0x49c3('0xf')](this[_0x49c3('0x8')](_0x351425));_0x2613f3[_0x49c3('0x7')](_0x153b50=>{for(const _0x33d0ac of _0x5f1deb){const _0x36b1c8=_0x323e07()[_0x49c3('0xa')](0x1,0x5),_0x357edd='comment:'+_0x545c6a+':'+_0x36b1c8;_0x153b50[_0x49c3('0x12')](_0x357edd,{'range':_0x33d0ac,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x49c3('0x13')](_0x395996){for(const _0x2dd530 of _0x395996['getItems']())if(this['_itemIsContent'](_0x2dd530))return!0x0;return!0x1;}['_itemIsContent'](_0x2152b8){return _0x2152b8['is'](_0x49c3('0x3'))||this['editor'][_0x49c3('0x0')][_0x49c3('0x14')][_0x49c3('0x6')](_0x2152b8)&&!_0x2152b8['is'](_0x49c3('0xe'),_0x49c3('0x15'));}['_trimToContent'](_0x4752e6){const _0x1116b7=_0x19a790=>!this['_itemIsContent'](_0x19a790[_0x49c3('0x11')]),_0x175e5f=_0x4752e6['start'][_0x49c3('0x5')](_0x1116b7),_0x5409d2=_0x4752e6[_0x49c3('0xd')][_0x49c3('0x5')](_0x1116b7,{'direction':'backward'});return this[_0x49c3('0x4')][_0x49c3('0x0')]['createRange'](_0x175e5f,_0x5409d2);}}
@@ -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
  */
@@ -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 _0xa00d=['archivedThreads','pluginName','change:archivedAt','removeCommentThread','plugins','remove','highest','focus','has','context','add','archivedAt','CommentsArchive','length','get','listenTo','requires','getCommentThread','findIndex','stopListening','isActive','_calculatePosition'];(function(_0x39fcb5,_0xa00deb){const _0x2cb7fa=function(_0x438dfc){while(--_0x438dfc){_0x39fcb5['push'](_0x39fcb5['shift']());}};_0x2cb7fa(++_0xa00deb);}(_0xa00d,0x157));const _0x2cb7=function(_0x39fcb5,_0xa00deb){_0x39fcb5=_0x39fcb5-0x0;let _0x2cb7fa=_0xa00d[_0x39fcb5];return _0x2cb7fa;};import{ContextPlugin as _0x359a4a}from'ckeditor5/src/core';import{Collection as _0x3521e0}from'ckeditor5/src/utils';import _0x363144 from'./commentsrepository';import _0x54f952 from'../annotations/annotations';export default class p extends _0x359a4a{static get[_0x2cb7('0xa')](){return _0x2cb7('0x15');}static get[_0x2cb7('0x3')](){return[_0x363144,_0x54f952];}constructor(_0x59492b){super(_0x59492b),this[_0x2cb7('0x9')]=new _0x3521e0();}['init'](){const _0x3a8623=this[_0x2cb7('0x12')],_0x1c18ef=_0x3a8623[_0x2cb7('0xd')][_0x2cb7('0x1')](_0x363144),_0x49852c=_0x3a8623['plugins']['get'](_0x54f952);this[_0x2cb7('0x2')](_0x1c18ef,'addCommentThread',(_0x336d32,{threadId:_0x1884c2})=>{const _0x1ad89d=_0x1c18ef[_0x2cb7('0x4')](_0x1884c2);_0x1ad89d[_0x2cb7('0x14')]&&this[_0x2cb7('0x9')][_0x2cb7('0x13')](_0x1ad89d,this[_0x2cb7('0x8')](_0x1ad89d[_0x2cb7('0x14')])),this['listenTo'](_0x1ad89d,_0x2cb7('0xb'),(_0x2df3b0,_0x1073dc,_0x2cf7c8)=>{_0x2cf7c8?this[_0x2cb7('0x9')][_0x2cb7('0x11')](_0x1ad89d)||this[_0x2cb7('0x9')][_0x2cb7('0x13')](_0x1ad89d,this[_0x2cb7('0x8')](_0x1ad89d[_0x2cb7('0x14')])):this[_0x2cb7('0x9')][_0x2cb7('0x11')](_0x1ad89d)&&this[_0x2cb7('0x9')]['remove'](_0x1ad89d);});}),this[_0x2cb7('0x2')](_0x1c18ef,_0x2cb7('0xc'),(_0x56fb84,{threadId:_0x4bf7ba})=>{const _0x1aee22=_0x1c18ef[_0x2cb7('0x4')](_0x4bf7ba);this[_0x2cb7('0x6')](_0x1aee22),this[_0x2cb7('0x9')][_0x2cb7('0x11')](_0x1aee22)&&this[_0x2cb7('0x9')][_0x2cb7('0xe')](_0x1aee22);},{'priority':_0x2cb7('0xf')}),this['listenTo'](_0x49852c['collection'],_0x2cb7('0x10'),(_0x25b315,_0x127b08)=>{_0x127b08[_0x2cb7('0x7')]=!0x0,_0x49852c['activate'](_0x127b08);});}[_0x2cb7('0x8')](_0x58c563){const _0x2a3bd4=[...this[_0x2cb7('0x9')]][_0x2cb7('0x5')](_0xf093d2=>_0xf093d2[_0x2cb7('0x14')]<_0x58c563);return _0x2a3bd4>-0x1?_0x2a3bd4:this['archivedThreads'][_0x2cb7('0x0')];}}
23
+ const _0x3b88=['collection','findIndex','has','pluginName','archivedThreads','init','activate','_calculatePosition','removeCommentThread','highest','listenTo','plugins','add','focus','getCommentThread','stopListening','remove','get','archivedAt','requires','addCommentThread','isActive'];(function(_0x19c7dd,_0x3b8868){const _0x28516f=function(_0x4ce35e){while(--_0x4ce35e){_0x19c7dd['push'](_0x19c7dd['shift']());}};_0x28516f(++_0x3b8868);}(_0x3b88,0xd0));const _0x2851=function(_0x19c7dd,_0x3b8868){_0x19c7dd=_0x19c7dd-0x0;let _0x28516f=_0x3b88[_0x19c7dd];return _0x28516f;};import{ContextPlugin as _0x43b405}from'ckeditor5/src/core.js';import{Collection as _0xf11f9c}from'ckeditor5/src/utils.js';import _0x2400fc from'./commentsrepository.js';import _0x1df888 from'../annotations/annotations.js';export default class p extends _0x43b405{static get[_0x2851('0xf')](){return'CommentsArchive';}static get[_0x2851('0x9')](){return[_0x2400fc,_0x1df888];}constructor(_0x3a83f2){super(_0x3a83f2),this[_0x2851('0x10')]=new _0xf11f9c();}[_0x2851('0x11')](){const _0x3cd14d=this['context'],_0xf621b4=_0x3cd14d[_0x2851('0x1')][_0x2851('0x7')](_0x2400fc),_0x4e97b7=_0x3cd14d[_0x2851('0x1')][_0x2851('0x7')](_0x1df888);this['listenTo'](_0xf621b4,_0x2851('0xa'),(_0x4b96e7,{threadId:_0x34badf})=>{const _0x181942=_0xf621b4[_0x2851('0x4')](_0x34badf);_0x181942[_0x2851('0x8')]&&this[_0x2851('0x10')][_0x2851('0x2')](_0x181942,this['_calculatePosition'](_0x181942[_0x2851('0x8')])),this[_0x2851('0x0')](_0x181942,'change:archivedAt',(_0x46fcff,_0x4217a1,_0xcdd80)=>{_0xcdd80?this[_0x2851('0x10')][_0x2851('0xe')](_0x181942)||this[_0x2851('0x10')][_0x2851('0x2')](_0x181942,this[_0x2851('0x13')](_0x181942[_0x2851('0x8')])):this[_0x2851('0x10')][_0x2851('0xe')](_0x181942)&&this[_0x2851('0x10')][_0x2851('0x6')](_0x181942);});}),this['listenTo'](_0xf621b4,_0x2851('0x14'),(_0x4669cf,{threadId:_0xf53376})=>{const _0x4e6650=_0xf621b4[_0x2851('0x4')](_0xf53376);this[_0x2851('0x5')](_0x4e6650),this['archivedThreads'][_0x2851('0xe')](_0x4e6650)&&this[_0x2851('0x10')][_0x2851('0x6')](_0x4e6650);},{'priority':_0x2851('0x15')}),this[_0x2851('0x0')](_0x4e97b7[_0x2851('0xc')],_0x2851('0x3'),(_0x5629d7,_0x1e5cb1)=>{_0x1e5cb1[_0x2851('0xb')]=!0x0,_0x4e97b7[_0x2851('0x12')](_0x1e5cb1);});}[_0x2851('0x13')](_0x14831a){const _0x216ecd=[...this[_0x2851('0x10')]][_0x2851('0xd')](_0x1df64c=>_0x1df64c[_0x2851('0x8')]<_0x14831a);return _0x216ecd>-0x1?_0x216ecd:this[_0x2851('0x10')]['length'];}}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
@@ -7,11 +7,11 @@
7
7
  * @publicApi
8
8
  */
9
9
  import '../../theme/commentsarchive.css';
10
- import { Plugin, type Editor } from 'ckeditor5/src/core';
11
- import { ViewCollection } from 'ckeditor5/src/ui';
12
- import CommentsArchiveView from './ui/view/commentsarchiveview';
13
- import CommentsArchive from './commentsarchive';
14
- import type AnnotationView from '../annotations/view/annotationview';
10
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
11
+ import { ViewCollection } from 'ckeditor5/src/ui.js';
12
+ import CommentsArchiveView from './ui/view/commentsarchiveview.js';
13
+ import CommentsArchive from './commentsarchive.js';
14
+ import type AnnotationView from '../annotations/view/annotationview.js';
15
15
  /**
16
16
  * Creates comments archive {@link module:ui/dropdown/dropdownview~DropdownView ui dropdown} and binds with
17
17
  * archived comment thread annotation views.