@ckeditor/ckeditor5-comments 38.0.1 → 38.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 (71) hide show
  1. package/build/comments.js +1 -1
  2. package/build/translations/en-au.js +1 -1
  3. package/build/translations/it.js +1 -1
  4. package/build/translations/lv.js +1 -1
  5. package/build/translations/pt-br.js +1 -1
  6. package/build/translations/sk.js +1 -1
  7. package/build/translations/sq.js +1 -0
  8. package/lang/translations/en-au.po +1 -1
  9. package/lang/translations/it.po +1 -1
  10. package/lang/translations/lv.po +1 -1
  11. package/lang/translations/pt-br.po +1 -1
  12. package/lang/translations/sk.po +1 -1
  13. package/lang/translations/sq.po +111 -0
  14. package/package.json +10 -8
  15. package/src/annotations/annotation.js +1 -1
  16. package/src/annotations/annotationcollection.js +1 -1
  17. package/src/annotations/annotations.d.ts +1 -1
  18. package/src/annotations/annotations.js +1 -1
  19. package/src/annotations/annotationsuis.d.ts +4 -3
  20. package/src/annotations/annotationsuis.js +1 -1
  21. package/src/annotations/editorannotations.d.ts +4 -3
  22. package/src/annotations/editorannotations.js +1 -1
  23. package/src/annotations/inlineannotations.d.ts +6 -4
  24. package/src/annotations/inlineannotations.js +1 -1
  25. package/src/annotations/narrowsidebar.d.ts +6 -5
  26. package/src/annotations/narrowsidebar.js +1 -1
  27. package/src/annotations/sidebar.d.ts +1 -1
  28. package/src/annotations/sidebar.js +1 -1
  29. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  30. package/src/annotations/view/annotationview.js +1 -1
  31. package/src/annotations/view/sidebaritemview.js +1 -1
  32. package/src/annotations/view/sidebarview.js +1 -1
  33. package/src/annotations/widesidebar.d.ts +6 -5
  34. package/src/annotations/widesidebar.js +1 -1
  35. package/src/comments/addcommentthreadcommand.js +1 -1
  36. package/src/comments/commentsarchive.d.ts +6 -4
  37. package/src/comments/commentsarchive.js +1 -1
  38. package/src/comments/commentsarchiveui.d.ts +6 -4
  39. package/src/comments/commentsarchiveui.js +1 -1
  40. package/src/comments/commentsediting.d.ts +7 -3
  41. package/src/comments/commentsediting.js +1 -1
  42. package/src/comments/commentsrepository.d.ts +9 -5
  43. package/src/comments/commentsrepository.js +1 -1
  44. package/src/comments/commentsui.d.ts +7 -3
  45. package/src/comments/commentsui.js +1 -1
  46. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  47. package/src/comments/integrations/importword.js +1 -1
  48. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  49. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  50. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  51. package/src/comments/ui/commentthreadcontroller.d.ts +1 -1
  52. package/src/comments/ui/commentthreadcontroller.js +1 -1
  53. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  54. package/src/comments/ui/view/basecommentview.js +1 -1
  55. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  56. package/src/comments/ui/view/commentcontentview.js +1 -1
  57. package/src/comments/ui/view/commentinputview.js +1 -1
  58. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  59. package/src/comments/ui/view/commentslistview.js +1 -1
  60. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  61. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  62. package/src/comments/ui/view/commentthreadview.js +1 -1
  63. package/src/comments/ui/view/commentview.js +1 -1
  64. package/src/comments.d.ts +12 -3
  65. package/src/comments.js +1 -1
  66. package/src/commentsonly.d.ts +4 -3
  67. package/src/commentsonly.js +1 -1
  68. package/src/index.d.ts +3 -1
  69. package/src/index.js +1 -1
  70. package/src/utils/common-translations.js +1 -1
  71. package/src/utils/createmutationobserver.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ae8=['push','isAttached','selection','getOrderedSelectedAnnotations','domConverter','annotations','change:height','_setSelectedAnnotations','destroy','hasView','_addedAnnotations','inlineannotations-not-allowed-with-context','_manuallyClosed','inlineannotations-detach-not-attached','_closeAnnotation','listenTo','_getBalloonTargetForAnnotation','switchTo','init','change:visibleView','hasActive','includes','view','register','collapse','activeAnnotation','_addAnnotationToBalloon','length','getClientRects','_balloon','InlineAnnotations','getBoundingClientRect','target','mousedown','isFocused','_selectedAnnotations','editing','visibleView','fromRect','showStack','plugins','has','stopListening','attach','getByView','Esc','addObserver','left','focusTracker','editor','width','get','map','keystrokes','change:isFocused','setActiveAnnotation','top','add','detach','delete','bottom','set','document','remove','from','_forceRefresh','blur','right','clear','_removeAnnotationFromBalloon','inline','update','focus','every','inlineannotations-attach-already-attached','requires','context'];(function(_0x42fd44,_0x2ae8c7){const _0x4b079c=function(_0x13b99a){while(--_0x13b99a){_0x42fd44['push'](_0x42fd44['shift']());}};_0x4b079c(++_0x2ae8c7);}(_0x2ae8,0x17d));const _0x4b07=function(_0x42fd44,_0x2ae8c7){_0x42fd44=_0x42fd44-0x0;let _0x4b079c=_0x2ae8[_0x42fd44];return _0x4b079c;};import{Plugin as _0x45b152}from'ckeditor5/src/core';import _0x2f5116 from'./annotationsuis';import _0x217cf6 from'./editorannotations';import{ContextualBalloon as _0x423811}from'ckeditor5/src/ui';import{MouseObserver as _0xac997c}from'ckeditor5/src/engine';import{CKEditorError as _0x1887cf,Rect as _0x1a1d0c}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x45b152{static get[_0x4b07('0x2')](){return[_0x217cf6,_0x423811,_0x2f5116];}static get['pluginName'](){return _0x4b07('0x22');}constructor(_0x59fb5e){super(_0x59fb5e),_0x59fb5e['editing']['view'][_0x4b07('0x32')](_0xac997c),this[_0x4b07('0x5')]=!0x1,this[_0x4b07('0x41')](_0x4b07('0x1d'),null),this[_0x4b07('0x9')]=null,this[_0x4b07('0x10')]=new Set(),this[_0x4b07('0x21')]=_0x59fb5e[_0x4b07('0x2c')][_0x4b07('0x37')](_0x423811),this[_0x4b07('0xe')]=new Set(),this[_0x4b07('0x27')]=[],this[_0x4b07('0x45')]=!0x1;}[_0x4b07('0x16')](){const _0x442b43=this[_0x4b07('0x35')]['plugins'][_0x4b07('0x37')](_0x2f5116);_0x442b43[_0x4b07('0x3')]===this[_0x4b07('0x35')]&&(_0x442b43[_0x4b07('0x1b')]('inline',this),this[_0x4b07('0x35')][_0x4b07('0x39')][_0x4b07('0x41')](_0x4b07('0x31'),(_0x2f700b,_0x2d1a69)=>{const _0x3292ce=this[_0x4b07('0x21')];if(this[_0x4b07('0x5')]&&_0x3292ce[_0x4b07('0x29')]){const _0x14b56d=this[_0x4b07('0x9')][_0x4b07('0x30')](_0x3292ce['visibleView']);_0x14b56d&&this[_0x4b07('0x12')](_0x14b56d),_0x2d1a69();}}));}['afterInit'](){const _0x172407=this[_0x4b07('0x35')]['plugins'][_0x4b07('0x37')](_0x2f5116);_0x172407[_0x4b07('0x3')]===this[_0x4b07('0x35')]&&(_0x172407[_0x4b07('0x18')]()||_0x172407[_0x4b07('0x15')](_0x4b07('0x4a')));}[_0x4b07('0x3b')](_0x80ccea){_0x80ccea!==this[_0x4b07('0x1d')]&&(this[_0x4b07('0x1d')]&&(this[_0x4b07('0x1d')]['isActive']=!0x1),_0x80ccea&&this[_0x4b07('0x35')]['ui'][_0x4b07('0x34')][_0x4b07('0x26')]&&(this['annotations']['has'](_0x80ccea)&&this[_0x4b07('0x1e')](_0x80ccea,!0x0),_0x80ccea['isActive']=!0x0),_0x80ccea||this['_setSelectedAnnotations']([]),this[_0x4b07('0x1d')]=_0x80ccea);}[_0x4b07('0x2f')](_0x1c93e5){this['annotations']=_0x1c93e5;const _0x3b8706=this['editor'][_0x4b07('0x2c')][_0x4b07('0x37')](_0x2f5116),_0x1f984c=this['_balloon'];if(this[_0x4b07('0x5')])throw new _0x1887cf(_0x4b07('0x1'),this);if(_0x3b8706[_0x4b07('0x3')]!==this[_0x4b07('0x35')])throw new _0x1887cf(_0x4b07('0xf'),this);const _0x346902=this[_0x4b07('0x35')][_0x4b07('0x2c')]['get'](_0x217cf6);this[_0x4b07('0x13')](_0x346902,'refresh',()=>{const _0x285c6b=_0x346902[_0x4b07('0x7')]({'annotations':this[_0x4b07('0x9')],'activeAnnotation':this['activeAnnotation']});var _0x1426fd,_0x3d1b80;!this[_0x4b07('0x45')]&&(_0x1426fd=_0x285c6b,_0x3d1b80=this[_0x4b07('0x27')],_0x1426fd[_0x4b07('0x1f')]===_0x3d1b80['length']&&_0x1426fd[_0x4b07('0x0')](_0x429291=>_0x3d1b80['includes'](_0x429291)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x285c6b),this['setActiveAnnotation'](_0x285c6b[0x0]||null));}),this[_0x4b07('0x13')](_0x346902,_0x4b07('0x46'),(_0x42782b,{isAnnotationTracked:_0x3f6651})=>{this[_0x4b07('0x1d')]&&_0x3f6651(this[_0x4b07('0x1d')])&&(this[_0x4b07('0xb')]([]),this[_0x4b07('0x3b')](null));}),this['listenTo'](this[_0x4b07('0x35')]['ui'][_0x4b07('0x34')],_0x4b07('0x3a'),(_0x194063,_0x3a5f17,_0x95f79c)=>{_0x95f79c||this['setActiveAnnotation'](null);}),this[_0x4b07('0x13')](_0x1c93e5,_0x4b07('0x43'),(_0x2e4613,_0x3efc8d)=>{this['_removeAnnotationFromBalloon'](_0x3efc8d),_0x3efc8d===this[_0x4b07('0x1d')]&&this[_0x4b07('0x3b')](null);}),this['listenTo'](_0x1f984c,_0x4b07('0x17'),(_0x40d68b,_0x29d364,_0x3a920b,_0x4d2f7f)=>{_0x4d2f7f&&this[_0x4b07('0x2e')](_0x4d2f7f);const _0x1ccbc1=_0x1c93e5[_0x4b07('0x30')](_0x3a920b);_0x3a920b&&_0x1ccbc1&&(this[_0x4b07('0x13')](_0x3a920b,_0x4b07('0xa'),()=>{_0x1f984c['updatePosition']();}),this[_0x4b07('0x13')](_0x3a920b,_0x4b07('0x31'),()=>{this[_0x4b07('0x12')](_0x1ccbc1),this['editor']['editing']['view'][_0x4b07('0x4c')]();}),this[_0x4b07('0x1d')]!==_0x1ccbc1&&this['setActiveAnnotation'](_0x1ccbc1));}),this['listenTo'](this[_0x4b07('0x35')]['ui'],_0x4b07('0x4b'),()=>{_0x1f984c['visibleView']&&(_0x1c93e5[_0x4b07('0x30')](_0x1f984c['visibleView'])&&_0x1f984c['updatePosition']());}),this[_0x4b07('0x13')](this['editor'][_0x4b07('0x28')][_0x4b07('0x1a')][_0x4b07('0x42')],_0x4b07('0x25'),()=>{this[_0x4b07('0x45')]=!0x0,this[_0x4b07('0x10')][_0x4b07('0x48')]();}),this[_0x4b07('0x35')]['editing'][_0x4b07('0x1a')][_0x4b07('0x42')][_0x4b07('0x6')]['editableElement']&&this[_0x4b07('0x35')][_0x4b07('0x28')][_0x4b07('0x1a')][_0x4b07('0x4c')](),this[_0x4b07('0x5')]=!0x0;}[_0x4b07('0x3e')](){if(!this[_0x4b07('0x5')])throw new _0x1887cf(_0x4b07('0x11'),this);this[_0x4b07('0x3b')](null);for(const _0x4afe51 of this[_0x4b07('0xe')])this[_0x4b07('0x49')](_0x4afe51);this[_0x4b07('0x2e')](),this[_0x4b07('0x5')]=!0x1,this[_0x4b07('0x9')]=null;}[_0x4b07('0xc')](){this['isAttached']&&this[_0x4b07('0x3e')]();}[_0x4b07('0xb')](_0x36c107){for(const _0x286df8 of this[_0x4b07('0x27')])_0x36c107[_0x4b07('0x19')](_0x286df8)||this[_0x4b07('0x10')][_0x4b07('0x3f')](_0x286df8);for(const _0x36dec3 of this[_0x4b07('0x9')])_0x36c107['includes'](_0x36dec3)||this[_0x4b07('0x49')](_0x36dec3);if(this[_0x4b07('0x35')]['ui'][_0x4b07('0x34')]['isFocused'])for(const _0x5a35c4 of _0x36c107)this[_0x4b07('0x1e')](_0x5a35c4);this['_selectedAnnotations']=_0x36c107;}[_0x4b07('0x1e')](_0x627e6d,_0x5ae4a4=!0x1){this[_0x4b07('0x10')][_0x4b07('0x2d')](_0x627e6d)||(this[_0x4b07('0xe')][_0x4b07('0x2d')](_0x627e6d)||this[_0x4b07('0x21')][_0x4b07('0xd')](_0x627e6d['view'])||(this[_0x4b07('0xe')][_0x4b07('0x3d')](_0x627e6d),this[_0x4b07('0x21')][_0x4b07('0x3d')]({'stackId':_0x627e6d['view']['id'],'view':_0x627e6d[_0x4b07('0x1a')],'position':{'target':()=>this[_0x4b07('0x14')](_0x627e6d)}})),_0x5ae4a4&&this[_0x4b07('0x21')][_0x4b07('0x2b')](_0x627e6d[_0x4b07('0x1a')]['id']));}[_0x4b07('0x14')](_0x32fd2b){const _0x16fd2c=_0x32fd2b[_0x4b07('0x24')],_0x3beb40=this[_0x4b07('0x35')][_0x4b07('0x28')]['view'],_0x350260=_0x3beb40['document'][_0x4b07('0x6')]['getFirstRange'](),_0xaf4668=_0x3beb40[_0x4b07('0x8')]['viewRangeToDom'](_0x350260);if(_0xaf4668[_0x4b07('0x1c')](!0x0),_0x16fd2c){if(_0x16fd2c instanceof _0x1a1d0c)return _0x16fd2c;let _0x507af5=[];for(const _0x2ed322 of _0x16fd2c)_0x507af5[_0x4b07('0x4')](...(_0x4ea27e=_0x2ed322[_0x4b07('0x20')](),Array[_0x4b07('0x44')](_0x4ea27e)[_0x4b07('0x38')](DOMRect[_0x4b07('0x2a')])));_0x507af5=function(_0x1d8d43){const _0x25b934=[];let _0x164b67=_0x1d8d43[0x0];for(let _0x48db3b=0x1;_0x48db3b<_0x1d8d43[_0x4b07('0x1f')];_0x48db3b++)F(_0x164b67,_0x1d8d43[_0x48db3b])?_0x164b67[_0x4b07('0x36')]+=_0x1d8d43[_0x48db3b][_0x4b07('0x36')]:(_0x25b934[_0x4b07('0x4')](_0x164b67),_0x164b67=_0x1d8d43[_0x48db3b]);return _0x25b934[_0x4b07('0x4')](_0x164b67),_0x25b934;}(_0x507af5);const _0x3c8633=_0xaf4668[_0x4b07('0x23')]();return _0x507af5['find'](_0x1503bc=>_0x1503bc[_0x4b07('0x3c')]<=_0x3c8633[_0x4b07('0x3c')]&&_0x1503bc['bottom']>=_0x3c8633[_0x4b07('0x40')]&&_0x1503bc['left']<=_0x3c8633[_0x4b07('0x33')]&&_0x1503bc[_0x4b07('0x47')]>=_0x3c8633[_0x4b07('0x47')])||_0x507af5[0x0];}var _0x4ea27e;return _0x32fd2b['targetRect']||_0xaf4668;}['_removeAnnotationFromBalloon'](_0x3486a8){this['_addedAnnotations']['has'](_0x3486a8)&&this['_balloon'][_0x4b07('0xd')](_0x3486a8[_0x4b07('0x1a')])&&(this[_0x4b07('0xe')][_0x4b07('0x3f')](_0x3486a8),this['_balloon'][_0x4b07('0x43')](_0x3486a8['view']));}[_0x4b07('0x12')](_0xc91515){this[_0x4b07('0x10')][_0x4b07('0x3d')](_0xc91515),this[_0x4b07('0x49')](_0xc91515);}}function F(_0x55b3cf,_0x4db211){return _0x55b3cf['top']===_0x4db211['top']&&_0x55b3cf[_0x4b07('0x40')]===_0x4db211[_0x4b07('0x40')]&&_0x55b3cf[_0x4b07('0x47')]===_0x4db211[_0x4b07('0x33')];}
23
+ const _0x6945=['listenTo','attach','init','annotations','keystrokes','detach','stopListening','_addedAnnotations','get','inlineannotations-attach-already-attached','domConverter','inlineannotations-not-allowed-with-context','_setSelectedAnnotations','isActive','isAttached','_selectedAnnotations','push','length','_forceRefresh','change:isFocused','getByView','view','change:visibleView','includes','hasView','targetRect','activeAnnotation','updatePosition','addObserver','fromRect','update','visibleView','register','_closeAnnotation','has','focus','right','switchTo','map','_addAnnotationToBalloon','editing','isFocused','width','set','requires','top','blur','_removeAnnotationFromBalloon','document','plugins','editableElement','_getBalloonTargetForAnnotation','hasActive','focusTracker','setActiveAnnotation','delete','bottom','target','left','context','from','editor','selection','find','clear','mousedown','change:height','collapse','InlineAnnotations','_manuallyClosed','_balloon','showStack','remove','getOrderedSelectedAnnotations','getFirstRange','getClientRects'];(function(_0x289491,_0x694508){const _0xf4d811=function(_0x1b43c3){while(--_0x1b43c3){_0x289491['push'](_0x289491['shift']());}};_0xf4d811(++_0x694508);}(_0x6945,0x10e));const _0xf4d8=function(_0x289491,_0x694508){_0x289491=_0x289491-0x0;let _0xf4d811=_0x6945[_0x289491];return _0xf4d811;};import{Plugin as _0x41a291}from'ckeditor5/src/core';import _0x4c08a8 from'./annotationsuis';import _0x5de9fa from'./editorannotations';import{ContextualBalloon as _0x4e5a9f}from'ckeditor5/src/ui';import{MouseObserver as _0x494030}from'ckeditor5/src/engine';import{CKEditorError as _0x4ca28e,Rect as _0xde2100}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x41a291{static get[_0xf4d8('0x2')](){return[_0x5de9fa,_0x4e5a9f,_0x4c08a8];}static get['pluginName'](){return _0xf4d8('0x1a');}constructor(_0x106424){super(_0x106424),_0x106424[_0xf4d8('0x4a')][_0xf4d8('0x37')][_0xf4d8('0x3e')](_0x494030),this[_0xf4d8('0x30')]=!0x1,this[_0xf4d8('0x1')](_0xf4d8('0x3c'),null),this[_0xf4d8('0x25')]=null,this[_0xf4d8('0x1b')]=new Set(),this['_balloon']=_0x106424[_0xf4d8('0x7')][_0xf4d8('0x2a')](_0x4e5a9f),this[_0xf4d8('0x29')]=new Set(),this['_selectedAnnotations']=[],this[_0xf4d8('0x34')]=!0x1;}[_0xf4d8('0x24')](){const _0x31667f=this[_0xf4d8('0x13')][_0xf4d8('0x7')][_0xf4d8('0x2a')](_0x4c08a8);_0x31667f[_0xf4d8('0x11')]===this[_0xf4d8('0x13')]&&(_0x31667f[_0xf4d8('0x42')]('inline',this),this[_0xf4d8('0x13')][_0xf4d8('0x26')][_0xf4d8('0x1')]('Esc',(_0x351736,_0x3c751f)=>{const _0x9f0631=this[_0xf4d8('0x1c')];if(this[_0xf4d8('0x30')]&&_0x9f0631['visibleView']){const _0x1ce3c2=this[_0xf4d8('0x25')]['getByView'](_0x9f0631[_0xf4d8('0x41')]);_0x1ce3c2&&this[_0xf4d8('0x43')](_0x1ce3c2),_0x3c751f();}}));}['afterInit'](){const _0x2b1e93=this[_0xf4d8('0x13')][_0xf4d8('0x7')]['get'](_0x4c08a8);_0x2b1e93[_0xf4d8('0x11')]===this[_0xf4d8('0x13')]&&(_0x2b1e93[_0xf4d8('0xa')]()||_0x2b1e93[_0xf4d8('0x47')]('inline'));}[_0xf4d8('0xc')](_0x492347){_0x492347!==this[_0xf4d8('0x3c')]&&(this[_0xf4d8('0x3c')]&&(this[_0xf4d8('0x3c')]['isActive']=!0x1),_0x492347&&this[_0xf4d8('0x13')]['ui'][_0xf4d8('0xb')][_0xf4d8('0x4b')]&&(this['annotations'][_0xf4d8('0x44')](_0x492347)&&this['_addAnnotationToBalloon'](_0x492347,!0x0),_0x492347[_0xf4d8('0x2f')]=!0x0),_0x492347||this[_0xf4d8('0x2e')]([]),this['activeAnnotation']=_0x492347);}[_0xf4d8('0x23')](_0x256190){this[_0xf4d8('0x25')]=_0x256190;const _0x242883=this[_0xf4d8('0x13')][_0xf4d8('0x7')]['get'](_0x4c08a8),_0x16af13=this[_0xf4d8('0x1c')];if(this['isAttached'])throw new _0x4ca28e(_0xf4d8('0x2b'),this);if(_0x242883['context']!==this['editor'])throw new _0x4ca28e(_0xf4d8('0x2d'),this);const _0x29164f=this['editor']['plugins'][_0xf4d8('0x2a')](_0x5de9fa);this[_0xf4d8('0x22')](_0x29164f,'refresh',()=>{const _0x4a5512=_0x29164f[_0xf4d8('0x1f')]({'annotations':this[_0xf4d8('0x25')],'activeAnnotation':this[_0xf4d8('0x3c')]});var _0x32c96f,_0x16e284;!this[_0xf4d8('0x34')]&&(_0x32c96f=_0x4a5512,_0x16e284=this[_0xf4d8('0x31')],_0x32c96f[_0xf4d8('0x33')]===_0x16e284[_0xf4d8('0x33')]&&_0x32c96f['every'](_0x5104c2=>_0x16e284[_0xf4d8('0x39')](_0x5104c2)))||(this[_0xf4d8('0x34')]=!0x1,this[_0xf4d8('0x2e')](_0x4a5512),this[_0xf4d8('0xc')](_0x4a5512[0x0]||null));}),this[_0xf4d8('0x22')](_0x29164f,_0xf4d8('0x4'),(_0x1b9bae,{isAnnotationTracked:_0x2d8eac})=>{this[_0xf4d8('0x3c')]&&_0x2d8eac(this[_0xf4d8('0x3c')])&&(this['_setSelectedAnnotations']([]),this[_0xf4d8('0xc')](null));}),this[_0xf4d8('0x22')](this[_0xf4d8('0x13')]['ui'][_0xf4d8('0xb')],_0xf4d8('0x35'),(_0x4f60d7,_0x501647,_0x5b8129)=>{_0x5b8129||this[_0xf4d8('0xc')](null);}),this['listenTo'](_0x256190,'remove',(_0x12fed7,_0x35b4b8)=>{this['_removeAnnotationFromBalloon'](_0x35b4b8),_0x35b4b8===this[_0xf4d8('0x3c')]&&this[_0xf4d8('0xc')](null);}),this['listenTo'](_0x16af13,_0xf4d8('0x38'),(_0x858980,_0x35ec85,_0x815065,_0x381aba)=>{_0x381aba&&this['stopListening'](_0x381aba);const _0x1a9185=_0x256190['getByView'](_0x815065);_0x815065&&_0x1a9185&&(this[_0xf4d8('0x22')](_0x815065,_0xf4d8('0x18'),()=>{_0x16af13['updatePosition']();}),this[_0xf4d8('0x22')](_0x815065,'Esc',()=>{this[_0xf4d8('0x43')](_0x1a9185),this['editor'][_0xf4d8('0x4a')][_0xf4d8('0x37')][_0xf4d8('0x45')]();}),this[_0xf4d8('0x3c')]!==_0x1a9185&&this[_0xf4d8('0xc')](_0x1a9185));}),this[_0xf4d8('0x22')](this[_0xf4d8('0x13')]['ui'],_0xf4d8('0x40'),()=>{_0x16af13['visibleView']&&(_0x256190[_0xf4d8('0x36')](_0x16af13[_0xf4d8('0x41')])&&_0x16af13[_0xf4d8('0x3d')]());}),this['listenTo'](this[_0xf4d8('0x13')][_0xf4d8('0x4a')][_0xf4d8('0x37')][_0xf4d8('0x6')],_0xf4d8('0x17'),()=>{this['_forceRefresh']=!0x0,this[_0xf4d8('0x1b')][_0xf4d8('0x16')]();}),this['editor']['editing'][_0xf4d8('0x37')][_0xf4d8('0x6')][_0xf4d8('0x14')][_0xf4d8('0x8')]&&this[_0xf4d8('0x13')]['editing'][_0xf4d8('0x37')][_0xf4d8('0x45')](),this[_0xf4d8('0x30')]=!0x0;}[_0xf4d8('0x27')](){if(!this[_0xf4d8('0x30')])throw new _0x4ca28e('inlineannotations-detach-not-attached',this);this[_0xf4d8('0xc')](null);for(const _0x47cf47 of this[_0xf4d8('0x29')])this[_0xf4d8('0x5')](_0x47cf47);this[_0xf4d8('0x28')](),this[_0xf4d8('0x30')]=!0x1,this[_0xf4d8('0x25')]=null;}['destroy'](){this[_0xf4d8('0x30')]&&this[_0xf4d8('0x27')]();}[_0xf4d8('0x2e')](_0x411f00){for(const _0x199564 of this['_selectedAnnotations'])_0x411f00['includes'](_0x199564)||this[_0xf4d8('0x1b')]['delete'](_0x199564);for(const _0x3de0d0 of this[_0xf4d8('0x25')])_0x411f00[_0xf4d8('0x39')](_0x3de0d0)||this[_0xf4d8('0x5')](_0x3de0d0);if(this[_0xf4d8('0x13')]['ui']['focusTracker'][_0xf4d8('0x4b')])for(const _0x426352 of _0x411f00)this[_0xf4d8('0x49')](_0x426352);this[_0xf4d8('0x31')]=_0x411f00;}['_addAnnotationToBalloon'](_0x3b0553,_0x3427a2=!0x1){this['_manuallyClosed'][_0xf4d8('0x44')](_0x3b0553)||(this[_0xf4d8('0x29')][_0xf4d8('0x44')](_0x3b0553)||this[_0xf4d8('0x1c')]['hasView'](_0x3b0553['view'])||(this[_0xf4d8('0x29')]['add'](_0x3b0553),this[_0xf4d8('0x1c')]['add']({'stackId':_0x3b0553[_0xf4d8('0x37')]['id'],'view':_0x3b0553[_0xf4d8('0x37')],'position':{'target':()=>this[_0xf4d8('0x9')](_0x3b0553)}})),_0x3427a2&&this[_0xf4d8('0x1c')][_0xf4d8('0x1d')](_0x3b0553[_0xf4d8('0x37')]['id']));}[_0xf4d8('0x9')](_0x1af791){const _0x2c7a17=_0x1af791[_0xf4d8('0xf')],_0x43a2d4=this['editor'][_0xf4d8('0x4a')][_0xf4d8('0x37')],_0x5932ff=_0x43a2d4[_0xf4d8('0x6')][_0xf4d8('0x14')][_0xf4d8('0x20')](),_0xde21bb=_0x43a2d4[_0xf4d8('0x2c')]['viewRangeToDom'](_0x5932ff);if(_0xde21bb[_0xf4d8('0x19')](!0x0),_0x2c7a17){if(_0x2c7a17 instanceof _0xde2100)return _0x2c7a17;let _0x6a3f9a=[];for(const _0x23d3d2 of _0x2c7a17)_0x6a3f9a[_0xf4d8('0x32')](...(_0xbc1230=_0x23d3d2[_0xf4d8('0x21')](),Array[_0xf4d8('0x12')](_0xbc1230)[_0xf4d8('0x48')](DOMRect[_0xf4d8('0x3f')])));_0x6a3f9a=function(_0x14f62a){const _0x5c9060=[];let _0x1bc178=_0x14f62a[0x0];for(let _0x2f7017=0x1;_0x2f7017<_0x14f62a[_0xf4d8('0x33')];_0x2f7017++)F(_0x1bc178,_0x14f62a[_0x2f7017])?_0x1bc178['width']+=_0x14f62a[_0x2f7017][_0xf4d8('0x0')]:(_0x5c9060[_0xf4d8('0x32')](_0x1bc178),_0x1bc178=_0x14f62a[_0x2f7017]);return _0x5c9060[_0xf4d8('0x32')](_0x1bc178),_0x5c9060;}(_0x6a3f9a);const _0xacacb3=_0xde21bb['getBoundingClientRect']();return _0x6a3f9a[_0xf4d8('0x15')](_0x34d007=>_0x34d007[_0xf4d8('0x3')]<=_0xacacb3[_0xf4d8('0x3')]&&_0x34d007[_0xf4d8('0xe')]>=_0xacacb3['bottom']&&_0x34d007[_0xf4d8('0x10')]<=_0xacacb3[_0xf4d8('0x10')]&&_0x34d007['right']>=_0xacacb3['right'])||_0x6a3f9a[0x0];}var _0xbc1230;return _0x1af791[_0xf4d8('0x3b')]||_0xde21bb;}[_0xf4d8('0x5')](_0x58036c){this[_0xf4d8('0x29')][_0xf4d8('0x44')](_0x58036c)&&this[_0xf4d8('0x1c')][_0xf4d8('0x3a')](_0x58036c[_0xf4d8('0x37')])&&(this[_0xf4d8('0x29')][_0xf4d8('0xd')](_0x58036c),this[_0xf4d8('0x1c')][_0xf4d8('0x1e')](_0x58036c[_0xf4d8('0x37')]));}[_0xf4d8('0x43')](_0x570093){this[_0xf4d8('0x1b')]['add'](_0x570093),this[_0xf4d8('0x5')](_0x570093);}}function F(_0x465812,_0xbe5da5){return _0x465812[_0xf4d8('0x3')]===_0xbe5da5[_0xf4d8('0x3')]&&_0x465812[_0xf4d8('0xe')]===_0xbe5da5[_0xf4d8('0xe')]&&_0x465812[_0xf4d8('0x46')]===_0xbe5da5[_0xf4d8('0x10')];}
@@ -2,12 +2,13 @@
2
2
  * @module comments/annotations/narrowsidebar
3
3
  * @publicApi
4
4
  */
5
- import { ContextPlugin, Context, type ContextPluginDependencies, type Editor } from 'ckeditor5/src/core';
6
- import { type AnnotationsUI } from './annotationsuis';
5
+ import { ContextPlugin, Context, type Editor } from 'ckeditor5/src/core';
6
+ import AnnotationsUIs, { type AnnotationsUI } from './annotationsuis';
7
+ import Sidebar from './sidebar';
7
8
  import { BalloonPanelView, BodyCollection } from 'ckeditor5/src/ui';
8
9
  import '../../theme/sidebar-narrow.css';
9
10
  import type Annotation from './annotation';
10
- import type AnnotationCollection from './annotationcollection';
11
+ import type { default as AnnotationCollection } from './annotationcollection';
11
12
  /**
12
13
  * The narrow sidebar UI for displaying annotations.
13
14
  *
@@ -48,11 +49,11 @@ export default class NarrowSidebar extends ContextPlugin implements AnnotationsU
48
49
  /**
49
50
  * @inheritDoc
50
51
  */
51
- static get requires(): ContextPluginDependencies;
52
+ static get requires(): readonly [typeof Sidebar, typeof AnnotationsUIs];
52
53
  /**
53
54
  * @inheritDoc
54
55
  */
55
- static get pluginName(): 'NarrowSidebar';
56
+ static get pluginName(): "NarrowSidebar";
56
57
  /**
57
58
  * @inheritDoc
58
59
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1c1c=['keydown','setActiveAnnotation','removeEventListener','destroy','rearrange','detach','_attachListeners','_showBalloon','change:container','add','stopPropagation','mousedown','context','narrowsidebar-attach-already-attached','esc','_annotationToNarrowView','northArrowSouthWest','_refreshPositioningDebounced','_detachListeners','bind','editors','northArrowSouthEast','southArrowNorthWest','refreshPositioning','getByView','remove','balloonPanelView','get','_attachToContainer','ck-sidebar--narrow','blur','view','detachFromDom','_updateBalloonPosition','element','_detachFromContainer','attachToDom','number','cancel','preventClosingBalloon','low','change:height','bodyCollection','NarrowSidebar','attach','annotations','init','contains','Esc','listenTo','stop','_hideBalloon','stopListening','_editorAnnotations','focus','includes','hasDomSelection','_setSelectedAnnotations','_selectedAnnotations','set:container','set','off','annotationType','content','isVisible','isDirty','addAnnotation','pin','defaultPositions','first','_destroyEditorAnnotationsIntegration','clear','delete','_refreshPositioning','resize','register','plugins','_domEmitter','isAttached','EditorAnnotations','southArrowNorth','has','_manuallyClosedAnnotationViews','from','requires','locale','getSidebarItemView','unpin','high','activeAnnotation','_integrateWithEditorAnnotations','addEventListener','uiUpdate'];(function(_0x2b57f2,_0x1c1c28){const _0x3c2cad=function(_0x3cc801){while(--_0x3cc801){_0x2b57f2['push'](_0x2b57f2['shift']());}};_0x3c2cad(++_0x1c1c28);}(_0x1c1c,0x11a));const _0x3c2c=function(_0x2b57f2,_0x1c1c28){_0x2b57f2=_0x2b57f2-0x0;let _0x3c2cad=_0x1c1c[_0x2b57f2];return _0x3c2cad;};import{ContextPlugin as _0x39b33d,Context as _0x482755}from'ckeditor5/src/core';import _0x5d97c4 from'./annotationsuis';import _0x41b3c8 from'./sidebar';import _0x3801c2 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x2a46fc,BodyCollection as _0x451829}from'ckeditor5/src/ui';import{CKEditorError as _0x4759ee,DomEmitterMixin as _0x4aecff,keyCodes as _0x490116,Collection as _0xa5b00}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x14f141}from'lodash-es';import _0x5dabdb from'./editorannotations';export default class s extends _0x39b33d{static get[_0x3c2c('0x51')](){return[_0x41b3c8,_0x5d97c4];}static get['pluginName'](){return _0x3c2c('0x28');}constructor(_0x25afff){super(_0x25afff),this[_0x3c2c('0x4b')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0x3c2c('0x4a')]=Object['create'](_0x4aecff),this[_0x3c2c('0xc')]=new Map(),this[_0x3c2c('0x39')]('activeAnnotation',null),this[_0x3c2c('0x2a')]=null,this[_0x3c2c('0x37')]=[],this[_0x3c2c('0x32')]=new _0xa5b00(),this[_0x3c2c('0xe')]=_0x14f141(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x3c2c('0x2b')](){this[_0x3c2c('0x9')][_0x3c2c('0x49')]['get'](_0x5d97c4)[_0x3c2c('0x48')]('narrowSidebar',this),this['bodyCollection']=new _0x451829(this[_0x3c2c('0x9')]['locale']),this[_0x3c2c('0x17')]=new _0x2a46fc(this['context'][_0x3c2c('0x52')]),this[_0x3c2c('0x27')][_0x3c2c('0x21')](),this[_0x3c2c('0x27')]['add'](this[_0x3c2c('0x17')]);}[_0x3c2c('0x29')](_0x3a0855){this[_0x3c2c('0x2a')]=_0x3a0855;const _0x2125d9=this[_0x3c2c('0x9')][_0x3c2c('0x49')][_0x3c2c('0x18')](_0x41b3c8),_0x27da25=this['balloonPanelView'];if(_0x2125d9['_annotations']=_0x3a0855,this[_0x3c2c('0x4b')])throw new _0x4759ee(_0x3c2c('0xa'),this);this[_0x3c2c('0x4b')]=!0x0,this[_0x3c2c('0x2e')](_0x2125d9,_0x3c2c('0x38'),()=>{this[_0x3c2c('0x2')](),this[_0x3c2c('0x2e')](_0x2125d9,_0x3c2c('0x5'),_0xdb40e3=>{_0xdb40e3[_0x3c2c('0x3a')](),this[_0x3c2c('0x29')](_0x3a0855);});}),_0x2125d9[_0x3c2c('0x19')]({'viewClass':_0x3c2c('0x1a'),'spaceBetweenItems':0x5});const _0x2b8637=_0x1a110e=>{const _0xca69ce=new _0x3801c2(this[_0x3c2c('0x9')][_0x3c2c('0x52')]);_0x2125d9[_0x3c2c('0x3f')](_0x1a110e,_0xca69ce),this[_0x3c2c('0xc')][_0x3c2c('0x39')](_0x1a110e,_0xca69ce),_0xca69ce[_0x3c2c('0x10')](_0x3c2c('0x3e'),_0x3c2c('0x3b'),_0x3c2c('0x22'))['to'](_0x1a110e[_0x3c2c('0x1c')],'isDirty','type','length'),_0xca69ce['on']('execute',()=>{this['_manuallyClosedAnnotationViews'][_0x3c2c('0x44')](),_0x27da25[_0x3c2c('0x3c')][_0x3c2c('0x42')]!==_0x1a110e[_0x3c2c('0x1c')]?(this[_0x3c2c('0x4')](_0x1a110e),_0x1a110e[_0x3c2c('0x1c')][_0x3c2c('0x1f')][_0x3c2c('0x33')](),this[_0x3c2c('0x5b')](_0x1a110e)):this[_0x3c2c('0x5b')](null);});};for(const _0x4de74e of _0x3a0855)_0x2b8637(_0x4de74e);this[_0x3c2c('0x2e')](_0x3a0855,_0x3c2c('0x6'),(_0xfce367,_0x4a07f0)=>{_0x2b8637(_0x4a07f0);}),this[_0x3c2c('0x2e')](_0x3a0855,'remove',(_0x23fa20,_0x52a221,_0x4cd56d)=>{this[_0x3c2c('0xc')][_0x3c2c('0x18')](_0x52a221)[_0x3c2c('0x0')](),this['_annotationToNarrowView'][_0x3c2c('0x45')](_0x52a221),_0x2125d9[_0x3c2c('0x1')]({'removedAnnotation':_0x52a221,'previousAnnotation':_0x3a0855['get'](_0x4cd56d-0x1),'nextAnnotation':_0x3a0855[_0x3c2c('0x18')](_0x4cd56d+0x1)}),_0x52a221===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':_0x3c2c('0x25')}),this['listenTo'](_0x3a0855,_0x3c2c('0x33'),(_0x177a03,_0x27ce04)=>{this[_0x3c2c('0x5b')](_0x27ce04);}),this[_0x3c2c('0x2e')](_0x3a0855,'blur',()=>{this[_0x3c2c('0x5b')](null);}),this[_0x3c2c('0x4a')]['listenTo'](document,_0x3c2c('0x5a'),(_0x299e87,_0x372ae9)=>{_0x372ae9['keyCode']===_0x490116[_0x3c2c('0xb')]&&_0x27da25['isVisible']&&(this[_0x3c2c('0x4f')]['add'](_0x27da25[_0x3c2c('0x3c')][_0x3c2c('0x42')]),this['_hideBalloon'](),_0x372ae9[_0x3c2c('0x7')](),_0x372ae9['preventDefault']());}),this[_0x3c2c('0x4a')][_0x3c2c('0x2e')](document,_0x3c2c('0x8'),(_0xc9637d,_0x3aa78b)=>{const _0x575c01=_0x3aa78b['target'];_0x27da25[_0x3c2c('0x3d')]&&_0x27da25[_0x3c2c('0x1f')][_0x3c2c('0x2c')](_0x575c01)||_0x2125d9[_0x3c2c('0x1c')][_0x3c2c('0x1f')][_0x3c2c('0x2c')](_0x575c01)||_0xc9637d['preventClosingBalloon']||(this[_0x3c2c('0x4f')][_0x3c2c('0x44')](),this[_0x3c2c('0x30')](),this[_0x3c2c('0x5b')](null));});const _0xa911f9=this[_0x3c2c('0x9')]instanceof _0x482755?this[_0x3c2c('0x9')][_0x3c2c('0x11')]:new _0xa5b00([this[_0x3c2c('0x9')]]);for(const _0x59641c of _0xa911f9)this[_0x3c2c('0x57')](_0x59641c);this[_0x3c2c('0x2e')](_0xa911f9,_0x3c2c('0x6'),(_0x1411b0,_0x483404)=>{this[_0x3c2c('0x2e')](_0x483404,'ready',()=>{this[_0x3c2c('0x57')](_0x483404);});}),this[_0x3c2c('0x2e')](_0xa911f9,_0x3c2c('0x16'),(_0x574e1e,_0x557180)=>{_0x557180[_0x3c2c('0x49')][_0x3c2c('0x4e')]('EditorAnnotations')&&this[_0x3c2c('0x43')](_0x557180[_0x3c2c('0x49')][_0x3c2c('0x18')](_0x3c2c('0x4c')));}),window[_0x3c2c('0x58')](_0x3c2c('0x47'),this[_0x3c2c('0xe')]),this[_0x3c2c('0x46')]();}['setActiveAnnotation'](_0x5f1fa4){if(_0x5f1fa4===this['activeAnnotation'])return;const _0x1827f7=this['context'][_0x3c2c('0x49')][_0x3c2c('0x18')](_0x41b3c8);if(_0x1827f7['refresh']({'blurredAnnotation':this[_0x3c2c('0x56')],'activatedAnnotation':_0x5f1fa4,'disableAnimationOnActivatedAnnotation':!0x0}),_0x5f1fa4)_0x1827f7[_0x3c2c('0x53')](_0x5f1fa4)?this[_0x3c2c('0x4')](_0x5f1fa4):this[_0x3c2c('0x30')]();else this['_hideBalloon']();this[_0x3c2c('0x56')]=_0x5f1fa4;}[_0x3c2c('0x2')](){if(!this[_0x3c2c('0x4b')])throw new _0x4759ee('narrowsidebar-detach-not-attached',this);this[_0x3c2c('0x5b')](null);const _0x1cd1f6=this[_0x3c2c('0x9')][_0x3c2c('0x49')][_0x3c2c('0x18')](_0x41b3c8);this['_hideBalloon'](),Array['from'](this[_0x3c2c('0xc')]['values'](),_0x4802f9=>_0x4802f9['destroy']()),this[_0x3c2c('0xc')][_0x3c2c('0x44')](),_0x1cd1f6[_0x3c2c('0x20')](this[_0x3c2c('0x2a')]),this[_0x3c2c('0x31')](),this[_0x3c2c('0x4a')][_0x3c2c('0x31')](),this[_0x3c2c('0x9')]instanceof _0x482755&&this[_0x3c2c('0x31')](this[_0x3c2c('0x9')][_0x3c2c('0x11')]);for(const _0x1d9a97 of Array[_0x3c2c('0x50')](this['_editorAnnotations']))this[_0x3c2c('0x43')](_0x1d9a97);window[_0x3c2c('0x5c')](_0x3c2c('0x47'),this[_0x3c2c('0xe')]),this[_0x3c2c('0xe')][_0x3c2c('0x23')](),this[_0x3c2c('0x37')]=[],this[_0x3c2c('0x4b')]=!0x1,this[_0x3c2c('0x2a')]=null;}[_0x3c2c('0x0')](){this[_0x3c2c('0x4b')]&&this[_0x3c2c('0x2')](),this[_0x3c2c('0x27')][_0x3c2c('0x1d')]();}['_integrateWithEditorAnnotations'](_0x78a930){const _0x3e20c0=_0x78a930[_0x3c2c('0x49')][_0x3c2c('0x18')](_0x5dabdb),_0x53aee6=this['context'][_0x3c2c('0x49')]['get'](_0x41b3c8),_0x22511a=this[_0x3c2c('0x2a')],_0x1ae84a=this['balloonPanelView'],_0x425783=()=>{const _0x50354a=_0x3e20c0['getOrderedSelectedAnnotations']({'annotations':this[_0x3c2c('0x2a')],'activeAnnotation':this[_0x3c2c('0x56')]});this[_0x3c2c('0x36')](_0x50354a),this[_0x3c2c('0x5b')](_0x50354a[0x0]||null);};this['listenTo'](_0x3e20c0,'refresh',_0x425783),this['listenTo'](_0x3e20c0,'blur',(_0x511d56,{isAnnotationTracked:_0x3e8ef2})=>{this[_0x3c2c('0x56')]&&_0x3e8ef2(this[_0x3c2c('0x56')])&&(this['_setSelectedAnnotations']([]),this[_0x3c2c('0x5b')](null));}),this['listenTo'](_0x3e20c0,_0x3c2c('0x59'),()=>{this[_0x3c2c('0xe')]();}),this[_0x3c2c('0x2e')](_0x22511a,_0x3c2c('0x1b'),_0x17e3d6=>{_0x3e20c0['hasDomSelection']()&&_0x17e3d6[_0x3c2c('0x2f')]();},{'priority':_0x3c2c('0x55')}),this[_0x3c2c('0x2e')](this[_0x3c2c('0x4a')],_0x3c2c('0x8'),(_0x14055a,_0x250bed)=>{const _0x3acb71=_0x250bed['target'];_0x1ae84a[_0x3c2c('0x3d')]&&_0x1ae84a[_0x3c2c('0x1f')][_0x3c2c('0x2c')](_0x3acb71)||_0x53aee6[_0x3c2c('0x1c')][_0x3c2c('0x1f')][_0x3c2c('0x2c')](_0x3acb71)||this['activeAnnotation']&&_0x3e20c0[_0x3c2c('0x35')]()&&(_0x425783(),_0x14055a[_0x3c2c('0x24')]=!0x0);},{'priority':_0x3c2c('0x55')}),this[_0x3c2c('0x32')]['add'](_0x3e20c0);}[_0x3c2c('0x43')](_0x3c226d){_0x3c226d&&(this[_0x3c2c('0x31')](_0x3c226d),this['_editorAnnotations'][_0x3c2c('0x16')](_0x3c226d));}[_0x3c2c('0x36')](_0x348ff8){for(const _0x25f0d1 of this[_0x3c2c('0x37')])_0x348ff8[_0x3c2c('0x34')](_0x25f0d1)||this['_manuallyClosedAnnotationViews'][_0x3c2c('0x45')](_0x25f0d1[_0x3c2c('0x1c')]);this[_0x3c2c('0x37')]=_0x348ff8;}['_refreshPositioning'](){const _0x45f2f6=this[_0x3c2c('0x17')];this[_0x3c2c('0x2a')][_0x3c2c('0x14')](),_0x45f2f6[_0x3c2c('0x3d')]&&this['_updateBalloonPosition']();}[_0x3c2c('0x4')](_0x500efd){if(this[_0x3c2c('0x4f')]['has'](_0x500efd['view']))return;const _0x12b896=this[_0x3c2c('0x17')][_0x3c2c('0x3c')][_0x3c2c('0x42')];_0x12b896!==_0x500efd[_0x3c2c('0x1c')]?(_0x12b896&&this[_0x3c2c('0xf')](_0x12b896),this[_0x3c2c('0x3')](_0x500efd[_0x3c2c('0x1c')]),this[_0x3c2c('0x17')]['content'][_0x3c2c('0x44')](),this['balloonPanelView'][_0x3c2c('0x3c')][_0x3c2c('0x6')](_0x500efd[_0x3c2c('0x1c')]),this[_0x3c2c('0x1e')]()):this[_0x3c2c('0x1e')]();}[_0x3c2c('0x1e')](){const _0x37ab37=this[_0x3c2c('0x17')][_0x3c2c('0x3c')][_0x3c2c('0x42')],_0x3d8535=_0x37ab37&&this['annotations'][_0x3c2c('0x15')](_0x37ab37);if(!_0x3d8535||!this[_0x3c2c('0xc')]['has'](_0x3d8535))return;const _0x1ddc15=this[_0x3c2c('0xc')][_0x3c2c('0x18')](_0x3d8535)[_0x3c2c('0x1f')],_0x54340b=function(){const _0x44d0e6=_0x2a46fc[_0x3c2c('0x41')];return[_0x44d0e6['southArrowNorthEast'],_0x44d0e6[_0x3c2c('0x12')],_0x44d0e6[_0x3c2c('0x4d')],_0x44d0e6['northArrowSouth'],_0x44d0e6[_0x3c2c('0x13')],_0x44d0e6[_0x3c2c('0xd')]];}();this[_0x3c2c('0x17')][_0x3c2c('0x40')]({'target':_0x1ddc15,'positions':_0x54340b});}['_hideBalloon'](){const _0x579779=this['balloonPanelView'],_0x2e9c1e=_0x579779[_0x3c2c('0x3c')][_0x3c2c('0x42')];_0x2e9c1e&&(this[_0x3c2c('0xf')](_0x2e9c1e),_0x579779[_0x3c2c('0x54')](),_0x579779[_0x3c2c('0x3c')][_0x3c2c('0x44')]());}[_0x3c2c('0x3')](_0x2b150a){this[_0x3c2c('0x2e')](_0x2b150a,_0x3c2c('0x26'),()=>this['_updateBalloonPosition']()),this['listenTo'](_0x2b150a,_0x3c2c('0x2d'),(_0x2f2e54,_0xf18cae)=>{this[_0x3c2c('0x4f')][_0x3c2c('0x6')](_0x2b150a),this[_0x3c2c('0x30')](),_0xf18cae();});}['_detachListeners'](_0x3f76ae){this[_0x3c2c('0x31')](_0x3f76ae);}}
23
+ const _0x5b49=['_detachListeners','high','get','southArrowNorthWest','change:container','remove','execute','register','type','stopPropagation','balloonPanelView','number','includes','context','getByView','bodyCollection','listenTo','_updateBalloonPosition','unpin','content','element','editors','stopListening','_setSelectedAnnotations','annotationType','_selectedAnnotations','_showBalloon','_refreshPositioning','defaultPositions','northArrowSouth','preventClosingBalloon','requires','delete','isDirty','preventDefault','EditorAnnotations','isVisible','getOrderedSelectedAnnotations','_integrateWithEditorAnnotations','southArrowNorthEast','ck-sidebar--narrow','plugins','pin','from','create','focus','_destroyEditorAnnotationsIntegration','_annotationToNarrowView','blur','target','cancel','isAttached','Esc','activeAnnotation','keydown','mousedown','_manuallyClosedAnnotationViews','set','refresh','hasDomSelection','rearrange','removeEventListener','attach','attachToDom','first','change:height','pluginName','NarrowSidebar','narrowsidebar-attach-already-attached','locale','_refreshPositioningDebounced','contains','off','clear','detach','resize','_domEmitter','length','bind','setActiveAnnotation','has','add','_hideBalloon','view','northArrowSouthEast','destroy','init','narrowSidebar','_attachListeners','getSidebarItemView','addAnnotation','narrowsidebar-detach-not-attached','annotations','southArrowNorth','_editorAnnotations'];(function(_0x25739d,_0x5b4932){const _0x502727=function(_0x22df0f){while(--_0x22df0f){_0x25739d['push'](_0x25739d['shift']());}};_0x502727(++_0x5b4932);}(_0x5b49,0x101));const _0x5027=function(_0x25739d,_0x5b4932){_0x25739d=_0x25739d-0x0;let _0x502727=_0x5b49[_0x25739d];return _0x502727;};import{ContextPlugin as _0x899252,Context as _0x26f1e2}from'ckeditor5/src/core';import _0x25ddf0 from'./annotationsuis';import _0x838c25 from'./sidebar';import _0x13d6d5 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x21547a,BodyCollection as _0xc6c072}from'ckeditor5/src/ui';import{CKEditorError as _0x4da9d6,DomEmitterMixin as _0x19c28c,keyCodes as _0x54f606,Collection as _0x55f92f}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x555798}from'lodash-es';import _0x3f5c70 from'./editorannotations';export default class s extends _0x899252{static get[_0x5027('0x3b')](){return[_0x838c25,_0x25ddf0];}static get[_0x5027('0x5e')](){return _0x5027('0x0');}constructor(_0x4ee07f){super(_0x4ee07f),this[_0x5027('0x4f')]=!0x1,this[_0x5027('0x54')]=new Set(),this[_0x5027('0x9')]=Object[_0x5027('0x48')](_0x19c28c),this[_0x5027('0x4b')]=new Map(),this[_0x5027('0x55')]('activeAnnotation',null),this[_0x5027('0x19')]=null,this[_0x5027('0x35')]=[],this[_0x5027('0x1b')]=new _0x55f92f(),this[_0x5027('0x3')]=_0x555798(()=>{this[_0x5027('0x37')]();},0xfa,{'leading':!0x1});}[_0x5027('0x13')](){this['context'][_0x5027('0x45')][_0x5027('0x1e')](_0x25ddf0)[_0x5027('0x23')](_0x5027('0x14'),this),this['bodyCollection']=new _0xc6c072(this[_0x5027('0x29')]['locale']),this[_0x5027('0x26')]=new _0x21547a(this[_0x5027('0x29')][_0x5027('0x2')]),this[_0x5027('0x2b')][_0x5027('0x5b')](),this[_0x5027('0x2b')][_0x5027('0xe')](this[_0x5027('0x26')]);}['attach'](_0x18f85d){this[_0x5027('0x19')]=_0x18f85d;const _0x2ad062=this[_0x5027('0x29')]['plugins'][_0x5027('0x1e')](_0x838c25),_0x26b565=this[_0x5027('0x26')];if(_0x2ad062['_annotations']=_0x18f85d,this[_0x5027('0x4f')])throw new _0x4da9d6(_0x5027('0x1'),this);this['isAttached']=!0x0,this[_0x5027('0x2c')](_0x2ad062,'set:container',()=>{this[_0x5027('0x7')](),this[_0x5027('0x2c')](_0x2ad062,_0x5027('0x20'),_0x4aa58a=>{_0x4aa58a[_0x5027('0x5')](),this[_0x5027('0x5a')](_0x18f85d);});}),_0x2ad062['_attachToContainer']({'viewClass':_0x5027('0x44'),'spaceBetweenItems':0x5});const _0x1b3e12=_0x4d0d92=>{const _0x4daea2=new _0x13d6d5(this[_0x5027('0x29')][_0x5027('0x2')]);_0x2ad062[_0x5027('0x17')](_0x4d0d92,_0x4daea2),this[_0x5027('0x4b')]['set'](_0x4d0d92,_0x4daea2),_0x4daea2[_0x5027('0xb')]('isDirty',_0x5027('0x34'),_0x5027('0x27'))['to'](_0x4d0d92[_0x5027('0x10')],_0x5027('0x3d'),_0x5027('0x24'),_0x5027('0xa')),_0x4daea2['on'](_0x5027('0x22'),()=>{this[_0x5027('0x54')][_0x5027('0x6')](),_0x26b565[_0x5027('0x2f')][_0x5027('0x5c')]!==_0x4d0d92[_0x5027('0x10')]?(this[_0x5027('0x36')](_0x4d0d92),_0x4d0d92[_0x5027('0x10')]['element']['focus'](),this['setActiveAnnotation'](_0x4d0d92)):this[_0x5027('0xc')](null);});};for(const _0x4bcab8 of _0x18f85d)_0x1b3e12(_0x4bcab8);this['listenTo'](_0x18f85d,_0x5027('0xe'),(_0x8f72c9,_0x5d1d3f)=>{_0x1b3e12(_0x5d1d3f);}),this[_0x5027('0x2c')](_0x18f85d,_0x5027('0x21'),(_0x158c21,_0x4827f1,_0x2a5324)=>{this['_annotationToNarrowView'][_0x5027('0x1e')](_0x4827f1)[_0x5027('0x12')](),this['_annotationToNarrowView'][_0x5027('0x3c')](_0x4827f1),_0x2ad062[_0x5027('0x58')]({'removedAnnotation':_0x4827f1,'previousAnnotation':_0x18f85d['get'](_0x2a5324-0x1),'nextAnnotation':_0x18f85d['get'](_0x2a5324+0x1)}),_0x4827f1===this['activeAnnotation']&&this[_0x5027('0xc')](null);},{'priority':'low'}),this[_0x5027('0x2c')](_0x18f85d,_0x5027('0x49'),(_0x4fd83e,_0x533137)=>{this[_0x5027('0xc')](_0x533137);}),this[_0x5027('0x2c')](_0x18f85d,_0x5027('0x4c'),()=>{this[_0x5027('0xc')](null);}),this[_0x5027('0x9')][_0x5027('0x2c')](document,_0x5027('0x52'),(_0x3f3add,_0x2f52cc)=>{_0x2f52cc['keyCode']===_0x54f606['esc']&&_0x26b565[_0x5027('0x40')]&&(this[_0x5027('0x54')][_0x5027('0xe')](_0x26b565[_0x5027('0x2f')][_0x5027('0x5c')]),this[_0x5027('0xf')](),_0x2f52cc[_0x5027('0x25')](),_0x2f52cc[_0x5027('0x3e')]());}),this[_0x5027('0x9')][_0x5027('0x2c')](document,_0x5027('0x53'),(_0x3edfc8,_0x329a3d)=>{const _0x323a12=_0x329a3d['target'];_0x26b565[_0x5027('0x40')]&&_0x26b565[_0x5027('0x30')]['contains'](_0x323a12)||_0x2ad062[_0x5027('0x10')][_0x5027('0x30')][_0x5027('0x4')](_0x323a12)||_0x3edfc8[_0x5027('0x3a')]||(this[_0x5027('0x54')][_0x5027('0x6')](),this[_0x5027('0xf')](),this[_0x5027('0xc')](null));});const _0x2dcd50=this[_0x5027('0x29')]instanceof _0x26f1e2?this[_0x5027('0x29')][_0x5027('0x31')]:new _0x55f92f([this['context']]);for(const _0x10a030 of _0x2dcd50)this[_0x5027('0x42')](_0x10a030);this[_0x5027('0x2c')](_0x2dcd50,_0x5027('0xe'),(_0x1f2922,_0x549da4)=>{this[_0x5027('0x2c')](_0x549da4,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x549da4);});}),this['listenTo'](_0x2dcd50,_0x5027('0x21'),(_0x32b0a7,_0x3632a0)=>{_0x3632a0[_0x5027('0x45')][_0x5027('0xd')](_0x5027('0x3f'))&&this[_0x5027('0x4a')](_0x3632a0[_0x5027('0x45')][_0x5027('0x1e')](_0x5027('0x3f')));}),window['addEventListener'](_0x5027('0x8'),this[_0x5027('0x3')]),this[_0x5027('0x37')]();}[_0x5027('0xc')](_0xa36d22){if(_0xa36d22===this[_0x5027('0x51')])return;const _0x1efaf8=this[_0x5027('0x29')][_0x5027('0x45')][_0x5027('0x1e')](_0x838c25);if(_0x1efaf8[_0x5027('0x56')]({'blurredAnnotation':this[_0x5027('0x51')],'activatedAnnotation':_0xa36d22,'disableAnimationOnActivatedAnnotation':!0x0}),_0xa36d22)_0x1efaf8[_0x5027('0x16')](_0xa36d22)?this[_0x5027('0x36')](_0xa36d22):this['_hideBalloon']();else this[_0x5027('0xf')]();this[_0x5027('0x51')]=_0xa36d22;}[_0x5027('0x7')](){if(!this[_0x5027('0x4f')])throw new _0x4da9d6(_0x5027('0x18'),this);this[_0x5027('0xc')](null);const _0x2e640f=this[_0x5027('0x29')]['plugins'][_0x5027('0x1e')](_0x838c25);this[_0x5027('0xf')](),Array[_0x5027('0x47')](this[_0x5027('0x4b')]['values'](),_0x10cf93=>_0x10cf93['destroy']()),this[_0x5027('0x4b')][_0x5027('0x6')](),_0x2e640f['_detachFromContainer'](this['annotations']),this[_0x5027('0x32')](),this[_0x5027('0x9')][_0x5027('0x32')](),this['context']instanceof _0x26f1e2&&this[_0x5027('0x32')](this[_0x5027('0x29')][_0x5027('0x31')]);for(const _0x41c127 of Array[_0x5027('0x47')](this['_editorAnnotations']))this[_0x5027('0x4a')](_0x41c127);window[_0x5027('0x59')](_0x5027('0x8'),this[_0x5027('0x3')]),this[_0x5027('0x3')][_0x5027('0x4e')](),this['_selectedAnnotations']=[],this[_0x5027('0x4f')]=!0x1,this[_0x5027('0x19')]=null;}[_0x5027('0x12')](){this[_0x5027('0x4f')]&&this[_0x5027('0x7')](),this[_0x5027('0x2b')]['detachFromDom']();}[_0x5027('0x42')](_0x31a418){const _0x22fb64=_0x31a418['plugins'][_0x5027('0x1e')](_0x3f5c70),_0x20d2a1=this[_0x5027('0x29')]['plugins'][_0x5027('0x1e')](_0x838c25),_0x459ea0=this[_0x5027('0x19')],_0x32803e=this[_0x5027('0x26')],_0x48d52b=()=>{const _0x4d9cd3=_0x22fb64[_0x5027('0x41')]({'annotations':this[_0x5027('0x19')],'activeAnnotation':this[_0x5027('0x51')]});this[_0x5027('0x33')](_0x4d9cd3),this['setActiveAnnotation'](_0x4d9cd3[0x0]||null);};this[_0x5027('0x2c')](_0x22fb64,_0x5027('0x56'),_0x48d52b),this[_0x5027('0x2c')](_0x22fb64,'blur',(_0x3e7c22,{isAnnotationTracked:_0x46a47e})=>{this[_0x5027('0x51')]&&_0x46a47e(this[_0x5027('0x51')])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x22fb64,'uiUpdate',()=>{this[_0x5027('0x3')]();}),this[_0x5027('0x2c')](_0x459ea0,_0x5027('0x4c'),_0x4026f0=>{_0x22fb64[_0x5027('0x57')]()&&_0x4026f0['stop']();},{'priority':_0x5027('0x1d')}),this[_0x5027('0x2c')](this[_0x5027('0x9')],_0x5027('0x53'),(_0x292e2d,_0xc47533)=>{const _0x49aa93=_0xc47533[_0x5027('0x4d')];_0x32803e[_0x5027('0x40')]&&_0x32803e[_0x5027('0x30')][_0x5027('0x4')](_0x49aa93)||_0x20d2a1[_0x5027('0x10')]['element']['contains'](_0x49aa93)||this[_0x5027('0x51')]&&_0x22fb64[_0x5027('0x57')]()&&(_0x48d52b(),_0x292e2d[_0x5027('0x3a')]=!0x0);},{'priority':_0x5027('0x1d')}),this['_editorAnnotations']['add'](_0x22fb64);}[_0x5027('0x4a')](_0x287125){_0x287125&&(this['stopListening'](_0x287125),this[_0x5027('0x1b')]['remove'](_0x287125));}[_0x5027('0x33')](_0x4e7c69){for(const _0x392e0e of this['_selectedAnnotations'])_0x4e7c69[_0x5027('0x28')](_0x392e0e)||this[_0x5027('0x54')][_0x5027('0x3c')](_0x392e0e[_0x5027('0x10')]);this['_selectedAnnotations']=_0x4e7c69;}[_0x5027('0x37')](){const _0x808271=this[_0x5027('0x26')];this[_0x5027('0x19')]['refreshPositioning'](),_0x808271[_0x5027('0x40')]&&this['_updateBalloonPosition']();}[_0x5027('0x36')](_0x4163d3){if(this[_0x5027('0x54')][_0x5027('0xd')](_0x4163d3['view']))return;const _0x441de9=this[_0x5027('0x26')][_0x5027('0x2f')][_0x5027('0x5c')];_0x441de9!==_0x4163d3[_0x5027('0x10')]?(_0x441de9&&this[_0x5027('0x1c')](_0x441de9),this[_0x5027('0x15')](_0x4163d3['view']),this[_0x5027('0x26')][_0x5027('0x2f')][_0x5027('0x6')](),this[_0x5027('0x26')][_0x5027('0x2f')][_0x5027('0xe')](_0x4163d3[_0x5027('0x10')]),this[_0x5027('0x2d')]()):this['_updateBalloonPosition']();}[_0x5027('0x2d')](){const _0x5621c7=this['balloonPanelView'][_0x5027('0x2f')][_0x5027('0x5c')],_0x3890a4=_0x5621c7&&this['annotations'][_0x5027('0x2a')](_0x5621c7);if(!_0x3890a4||!this[_0x5027('0x4b')][_0x5027('0xd')](_0x3890a4))return;const _0xca87f2=this[_0x5027('0x4b')][_0x5027('0x1e')](_0x3890a4)[_0x5027('0x30')],_0x3793dd=function(){const _0x51a4f9=_0x21547a[_0x5027('0x38')];return[_0x51a4f9[_0x5027('0x43')],_0x51a4f9[_0x5027('0x11')],_0x51a4f9[_0x5027('0x1a')],_0x51a4f9[_0x5027('0x39')],_0x51a4f9[_0x5027('0x1f')],_0x51a4f9['northArrowSouthWest']];}();this[_0x5027('0x26')][_0x5027('0x46')]({'target':_0xca87f2,'positions':_0x3793dd});}[_0x5027('0xf')](){const _0x3395ca=this['balloonPanelView'],_0x10d654=_0x3395ca[_0x5027('0x2f')][_0x5027('0x5c')];_0x10d654&&(this[_0x5027('0x1c')](_0x10d654),_0x3395ca[_0x5027('0x2e')](),_0x3395ca['content'][_0x5027('0x6')]());}[_0x5027('0x15')](_0x159023){this[_0x5027('0x2c')](_0x159023,_0x5027('0x5d'),()=>this[_0x5027('0x2d')]()),this[_0x5027('0x2c')](_0x159023,_0x5027('0x50'),(_0x52cdf2,_0x4897a5)=>{this[_0x5027('0x54')][_0x5027('0xe')](_0x159023),this[_0x5027('0xf')](),_0x4897a5();});}[_0x5027('0x1c')](_0x35b95d){this[_0x5027('0x32')](_0x35b95d);}}
@@ -44,7 +44,7 @@ export default class Sidebar extends ContextPlugin {
44
44
  /**
45
45
  * @inheritDoc
46
46
  */
47
- static get pluginName(): 'Sidebar';
47
+ static get pluginName(): "Sidebar";
48
48
  /**
49
49
  * @inheritDoc
50
50
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x478e=['isActive','change:_lastItem','change:top','set','context','_recalculate','addAnnotation','_getItemAfter','_alignToTargetRect','minHeight','_lastItem','_sidebarItemViewToAnnotation','content','getSidebarItemView','_createSidebarView','sidebar.container','updateHeight','locale','_updateLastItem','appendChild','_spaceBetweenItems','init','_activeAnnotation','_alignForTopChange','delete','class','_alignAfterItem','nodeType','view','_alignBeforeItem','targetRect','_getMaxAvailableTop','sidebar-attachtocontainer-missing-container','_alignForBottomChange','target','destroy','add','Sidebar','rearrange','_getItemBefore','container','_annotations','listenTo','list','last','clear','bottom','get','top','_setItemTop','setContainer','_getTargetTop','pluginName','_attachToContainer','remove','object','length','_recalculateBuffer','max','refresh','isAnimationDisabled','element','getIndex','stopListening','sidebar.preventScrollOutOfView','push','define','config','_destroySidebarItemView','_annotationToSidebarItemView'];(function(_0x3863eb,_0x478ed5){const _0x44ea1d=function(_0x58db20){while(--_0x58db20){_0x3863eb['push'](_0x3863eb['shift']());}};_0x44ea1d(++_0x478ed5);}(_0x478e,0x151));const _0x44ea=function(_0x3863eb,_0x478ed5){_0x3863eb=_0x3863eb-0x0;let _0x44ea1d=_0x478e[_0x3863eb];return _0x44ea1d;};import{ContextPlugin as _0x4118ae}from'ckeditor5/src/core';import{Rect as _0x10d998,CKEditorError as _0x2ef0bb}from'ckeditor5/src/utils';import _0x2e537e from'./view/sidebarview';import _0x2bc5aa from'./view/sidebaritemview';export default class z extends _0x4118ae{static get[_0x44ea('0x41')](){return _0x44ea('0x32');}constructor(_0x394e47){super(_0x394e47),this['set'](_0x44ea('0x17'),void 0x0),this[_0x44ea('0x29')]=this[_0x44ea('0x1b')](),this[_0x44ea('0x10')]('container',null),this[_0x44ea('0x21')]=0x19,this[_0x44ea('0x18')]=new Map(),this['_annotationToSidebarItemView']=new Map(),this[_0x44ea('0x11')][_0x44ea('0xa')][_0x44ea('0x9')](_0x44ea('0x7'),!0x1),this[_0x44ea('0x36')]=null,this[_0x44ea('0x23')]=null,this[_0x44ea('0x0')]=[];}[_0x44ea('0x22')](){const _0x3f97a4=this[_0x44ea('0x11')]['config'][_0x44ea('0x3c')](_0x44ea('0x1c'));_0x3f97a4&&this[_0x44ea('0x3f')](_0x3f97a4);}[_0x44ea('0x3f')](_0x554c81){if(!y(_0x554c81))throw new _0x2ef0bb('sidebar-setcontainer-invalid-element');this[_0x44ea('0x35')]=_0x554c81;}[_0x44ea('0x42')]({viewClass:_0xaef0fb='',spaceBetweenItems:_0x31a90d=0x19}={}){if(!y(this[_0x44ea('0x35')]))throw new _0x2ef0bb(_0x44ea('0x2d'),this);this[_0x44ea('0x35')][_0x44ea('0x20')](this[_0x44ea('0x29')][_0x44ea('0x4')]),this[_0x44ea('0x29')]['class']=_0xaef0fb,this[_0x44ea('0x21')]=_0x31a90d;}[_0x44ea('0x33')]({removedAnnotation:_0xffe07b,previousAnnotation:_0x1a357d,nextAnnotation:_0x56cae9}){const _0x51b171=this[_0x44ea('0x1a')](_0xffe07b);this['view'][_0x44ea('0x38')][_0x44ea('0x43')](_0x51b171),this['_destroySidebarItemView'](_0xffe07b),_0x1a357d&&this[_0x44ea('0x15')](this[_0x44ea('0x1a')](_0x1a357d)),_0x56cae9&&this[_0x44ea('0x15')](this[_0x44ea('0x1a')](_0x56cae9)),this['_updateLastItem']();}[_0x44ea('0x2')]({blurredAnnotation:_0x41b769,activatedAnnotation:_0x16d19b,disableAnimationOnActivatedAnnotation:_0x487022}){if(this[_0x44ea('0x23')]=_0x16d19b,_0x41b769){_0x41b769['isActive']=!0x1;const _0x17b1a0=this[_0x44ea('0x1a')](_0x41b769);_0x17b1a0&&_0x487022&&(_0x17b1a0[_0x44ea('0x3')]=!0x1);}if(_0x16d19b){const _0x27183c=this['getSidebarItemView'](_0x16d19b);_0x27183c&&(_0x16d19b[_0x44ea('0xd')]=!0x0,_0x487022&&(_0x27183c['isAnimationDisabled']=!0x0,_0x27183c[_0x44ea('0x3d')]+=0x1),this['_alignToTargetRect'](_0x27183c));}}['_detachFromContainer'](_0x5bc3e7){if(this[_0x44ea('0x6')](),this[_0x44ea('0x29')][_0x44ea('0x4')][_0x44ea('0x43')](),_0x5bc3e7)for(const _0x3e344c of _0x5bc3e7)this['_destroySidebarItemView'](_0x3e344c);this[_0x44ea('0x29')][_0x44ea('0x38')][_0x44ea('0x3a')](),this[_0x44ea('0x29')][_0x44ea('0x26')]='',this[_0x44ea('0x17')]=null;}[_0x44ea('0x13')](_0x369d0b,_0x39b654){_0x39b654||(_0x39b654=_0x369d0b[_0x44ea('0x29')]);const _0x219a6d=new _0x2bc5aa(this[_0x44ea('0x11')][_0x44ea('0x1e')]);this[_0x44ea('0x18')][_0x44ea('0x10')](_0x219a6d,_0x369d0b),this['_annotationToSidebarItemView'][_0x44ea('0x10')](_0x369d0b,_0x219a6d),_0x219a6d[_0x44ea('0x19')][_0x44ea('0x31')](_0x39b654),this[_0x44ea('0x37')](_0x369d0b[_0x44ea('0x29')],'change:targetRect',(_0x42155f,_0x5097d8,_0x3dc500)=>{const _0xdaa5e1=this[_0x44ea('0x40')](_0x369d0b,_0x3dc500);_0x219a6d['_targetTop']!=_0xdaa5e1&&(_0x219a6d['_targetTop']=_0xdaa5e1,this[_0x44ea('0x3e')](_0x219a6d,_0xdaa5e1));}),this[_0x44ea('0x37')](_0x219a6d,_0x44ea('0xf'),()=>{this[_0x44ea('0x12')](_0x219a6d,_0x44ea('0x3d'));}),this[_0x44ea('0x37')](_0x219a6d,'change:bottom',()=>{this[_0x44ea('0x12')](_0x219a6d,_0x44ea('0x3b'));}),this['_alignToTargetRect'](_0x219a6d);const _0x5973be=this[_0x44ea('0x34')](_0x219a6d);if(_0x5973be)this[_0x44ea('0x27')](_0x5973be,_0x219a6d)||this[_0x44ea('0x15')](_0x219a6d);else this[_0x44ea('0x15')](_0x219a6d);return this[_0x44ea('0x1f')](),this[_0x44ea('0x29')]['list']['add'](_0x219a6d),_0x219a6d;}[_0x44ea('0x24')](_0x174c1b){if(!_0x174c1b[_0x44ea('0x19')]['length'])return;const _0x53f621=this[_0x44ea('0x34')](_0x174c1b);if(!_0x53f621)return;const _0x2f684e=this[_0x44ea('0x18')][_0x44ea('0x3c')](_0x53f621),_0x532bee=this['_activeAnnotation'];_0x532bee&&_0x532bee===_0x2f684e?this[_0x44ea('0x27')](_0x53f621,_0x174c1b):this[_0x44ea('0x2a')](_0x174c1b,_0x53f621);}[_0x44ea('0x2e')](_0x298fa9){if(!_0x298fa9[_0x44ea('0x19')][_0x44ea('0x45')])return;const _0x3aa9b2=this['_getItemAfter'](_0x298fa9);if(!_0x3aa9b2)return;const _0x5cb701=this[_0x44ea('0x18')][_0x44ea('0x3c')](_0x3aa9b2),_0x25ec7a=this[_0x44ea('0x11')][_0x44ea('0xa')][_0x44ea('0x3c')](_0x44ea('0x7')),_0x41ed93=this[_0x44ea('0x23')];_0x41ed93&&_0x41ed93===_0x5cb701&&_0x25ec7a?(this['_alignBeforeItem'](_0x3aa9b2,_0x298fa9),this[_0x44ea('0x27')](_0x298fa9,_0x3aa9b2)):_0x41ed93&&_0x41ed93===_0x5cb701?this['_alignBeforeItem'](_0x3aa9b2,_0x298fa9):this['_alignAfterItem'](_0x298fa9,_0x3aa9b2);}[_0x44ea('0x12')](_0x840fd2,_0x37cebf){0x0===this[_0x44ea('0x0')][_0x44ea('0x45')]&&setTimeout(()=>{for(const {sidebarItemView:_0x3b6f5e,changedProp:_0x17bd3a}of this[_0x44ea('0x0')])_0x44ea('0x3d')===_0x17bd3a?this['_alignForTopChange'](_0x3b6f5e):this[_0x44ea('0x2e')](_0x3b6f5e);this['_recalculateBuffer']=[];},0xa),this[_0x44ea('0x0')][_0x44ea('0x8')]({'sidebarItemView':_0x840fd2,'changedProp':_0x37cebf});}[_0x44ea('0x1a')](_0x28c277){return this[_0x44ea('0xc')][_0x44ea('0x3c')](_0x28c277);}[_0x44ea('0x30')](){this['view']['destroy']();}[_0x44ea('0xb')](_0xbb216b){const _0xbd484e=this[_0x44ea('0x1a')](_0xbb216b);this['stopListening'](_0xbd484e),this[_0x44ea('0x6')](_0xbb216b[_0x44ea('0x29')]),_0xbd484e[_0x44ea('0x30')](),this[_0x44ea('0xc')][_0x44ea('0x25')](_0xbb216b),this[_0x44ea('0x18')][_0x44ea('0x25')](_0xbd484e);}[_0x44ea('0x1b')](){const _0x228b35=new _0x2e537e(this[_0x44ea('0x11')][_0x44ea('0x1e')]);return _0x228b35['render'](),this['on'](_0x44ea('0xe'),(_0x32854b,_0x43569a,_0x3b2dae,_0x369718)=>{_0x369718&&_0x228b35['unbind']('minHeight'),_0x3b2dae?_0x228b35['bind'](_0x44ea('0x16'))['to'](_0x3b2dae,_0x44ea('0x3b')):_0x228b35[_0x44ea('0x16')]=null;}),_0x228b35;}[_0x44ea('0x1f')](){var _0x3d5904;this[_0x44ea('0x17')]=(null===(_0x3d5904=this[_0x44ea('0x36')])||void 0x0===_0x3d5904?void 0x0:_0x3d5904['last'])?this[_0x44ea('0x1a')](this[_0x44ea('0x36')][_0x44ea('0x39')]):null;}['_getItemBefore'](_0x5f41d8){var _0x4ec1e8;const _0x27f925=this[_0x44ea('0x18')][_0x44ea('0x3c')](_0x5f41d8),_0xa34464=_0x27f925&&(null===(_0x4ec1e8=this[_0x44ea('0x36')])||void 0x0===_0x4ec1e8?void 0x0:_0x4ec1e8['get'](this[_0x44ea('0x36')][_0x44ea('0x5')](_0x27f925)-0x1));return _0xa34464&&this[_0x44ea('0x1a')](_0xa34464)||null;}[_0x44ea('0x14')](_0x329e20){var _0x489184;const _0x3e86e2=this[_0x44ea('0x18')][_0x44ea('0x3c')](_0x329e20),_0x2057d9=_0x3e86e2&&(null===(_0x489184=this['_annotations'])||void 0x0===_0x489184?void 0x0:_0x489184[_0x44ea('0x3c')](this['_annotations']['getIndex'](_0x3e86e2)+0x1));return _0x2057d9&&this[_0x44ea('0x1a')](_0x2057d9)||null;}[_0x44ea('0x2a')](_0x2f7b53,_0xceb91f){_0x2f7b53[_0x44ea('0x1d')]();const _0x34a847=H(_0xceb91f[_0x44ea('0x3b')]+this[_0x44ea('0x21')],_0x2f7b53[_0x44ea('0x3d')]);return!!_0x34a847&&(this[_0x44ea('0x3e')](_0xceb91f,_0xceb91f[_0x44ea('0x3d')]-_0x34a847),!0x0);}[_0x44ea('0x27')](_0x3ba8a0,_0x4da935){_0x3ba8a0['updateHeight']();const _0x155b6a=H(_0x3ba8a0[_0x44ea('0x3b')]+this['_spaceBetweenItems'],_0x4da935[_0x44ea('0x3d')]);return!!_0x155b6a&&(this[_0x44ea('0x3e')](_0x4da935,_0x4da935['top']+_0x155b6a,!0x1),!0x0);}[_0x44ea('0x15')](_0x17075a){const _0x17925b=this[_0x44ea('0x18')][_0x44ea('0x3c')](_0x17075a);if(!_0x17925b||!_0x17925b['target']||!_0x17925b[_0x44ea('0x2b')])return;const _0x2a9f6f=this[_0x44ea('0x40')](_0x17925b,_0x17925b[_0x44ea('0x2b')]);this[_0x44ea('0x3e')](_0x17075a,_0x2a9f6f);}[_0x44ea('0x40')](_0xa513ea,_0x377b80){if(null===_0x377b80)return 0x0;if(_0xa513ea[_0x44ea('0x2f')]instanceof _0x10d998)return _0x377b80[_0x44ea('0x3d')];{const _0x1453b3=new _0x10d998(this[_0x44ea('0x29')][_0x44ea('0x4')])[_0x44ea('0x3d')];return _0x377b80['top']-_0x1453b3;}}[_0x44ea('0x3e')](_0x37256e,_0x343112,_0x276985=this[_0x44ea('0x11')][_0x44ea('0xa')][_0x44ea('0x3c')](_0x44ea('0x7'))){_0x276985&&(_0x343112=Math[_0x44ea('0x1')](_0x343112,this['_getMaxAvailableTop'](_0x37256e))),_0x37256e[_0x44ea('0x3d')]=_0x343112;}[_0x44ea('0x2c')](_0x431c87){let _0x37edb5=this[_0x44ea('0x34')](_0x431c87),_0x25ef40=0x0;for(;_0x37edb5;)_0x37edb5['updateHeight'](),_0x25ef40+=this[_0x44ea('0x21')]+_0x37edb5['height'],_0x37edb5=this['_getItemBefore'](_0x37edb5);return _0x25ef40;}}function H(_0x129f42,_0x57cf5e){return Math[_0x44ea('0x1')](_0x129f42-_0x57cf5e,0x0);}function y(_0x4bd9a7){return null!==_0x4bd9a7&&_0x44ea('0x44')==typeof _0x4bd9a7&&0x1===_0x4bd9a7[_0x44ea('0x28')];}
23
+ const _0x18a9=['target','sidebar-attachtocontainer-missing-container','get','Sidebar','setContainer','isAnimationDisabled','destroy','getIndex','unbind','content','_getItemAfter','isActive','remove','element','last','nodeType','addAnnotation','_createSidebarView','_alignForBottomChange','length','bind','top','init','_alignAfterItem','_annotationToSidebarItemView','object','_activeAnnotation','appendChild','list','config','_detachFromContainer','_getMaxAvailableTop','height','_attachToContainer','sidebar-setcontainer-invalid-element','change:targetRect','_sidebarItemViewToAnnotation','_annotations','_recalculate','_alignToTargetRect','sidebar.preventScrollOutOfView','define','listenTo','_alignForTopChange','context','change:top','_destroySidebarItemView','_spaceBetweenItems','delete','_updateLastItem','change:bottom','_getItemBefore','bottom','_recalculateBuffer','class','stopListening','updateHeight','set','minHeight','_setItemTop','_getTargetTop','_targetTop','getSidebarItemView','render','pluginName','max','_alignBeforeItem','view','targetRect','_lastItem','rearrange','refresh','container'];(function(_0x29b5ad,_0x18a980){const _0x1ed2fc=function(_0x1ef86d){while(--_0x1ef86d){_0x29b5ad['push'](_0x29b5ad['shift']());}};_0x1ed2fc(++_0x18a980);}(_0x18a9,0x113));const _0x1ed2=function(_0x29b5ad,_0x18a980){_0x29b5ad=_0x29b5ad-0x0;let _0x1ed2fc=_0x18a9[_0x29b5ad];return _0x1ed2fc;};import{ContextPlugin as _0x56355e}from'ckeditor5/src/core';import{Rect as _0x820160,CKEditorError as _0x2cf731}from'ckeditor5/src/utils';import _0x1b39e5 from'./view/sidebarview';import _0x593386 from'./view/sidebaritemview';export default class z extends _0x56355e{static get[_0x1ed2('0x8')](){return _0x1ed2('0x14');}constructor(_0x3ce4d1){super(_0x3ce4d1),this[_0x1ed2('0x1')](_0x1ed2('0xd'),void 0x0),this['view']=this['_createSidebarView'](),this['set'](_0x1ed2('0x10'),null),this[_0x1ed2('0x40')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x1ed2('0x29')]=new Map(),this[_0x1ed2('0x3d')][_0x1ed2('0x2e')][_0x1ed2('0x3a')]('sidebar.preventScrollOutOfView',!0x1),this[_0x1ed2('0x36')]=null,this[_0x1ed2('0x2b')]=null,this[_0x1ed2('0x46')]=[];}[_0x1ed2('0x27')](){const _0x3a5479=this[_0x1ed2('0x3d')][_0x1ed2('0x2e')][_0x1ed2('0x13')]('sidebar.container');_0x3a5479&&this[_0x1ed2('0x15')](_0x3a5479);}[_0x1ed2('0x15')](_0x4d45bc){if(!y(_0x4d45bc))throw new _0x2cf731(_0x1ed2('0x33'));this[_0x1ed2('0x10')]=_0x4d45bc;}[_0x1ed2('0x32')]({viewClass:_0x58c9b8='',spaceBetweenItems:_0x1ec3d0=0x19}={}){if(!y(this[_0x1ed2('0x10')]))throw new _0x2cf731(_0x1ed2('0x12'),this);this[_0x1ed2('0x10')][_0x1ed2('0x2c')](this[_0x1ed2('0xb')][_0x1ed2('0x1e')]),this['view'][_0x1ed2('0x47')]=_0x58c9b8,this[_0x1ed2('0x40')]=_0x1ec3d0;}[_0x1ed2('0xe')]({removedAnnotation:_0xcd3221,previousAnnotation:_0x356bd6,nextAnnotation:_0x24a5b2}){const _0x4c5645=this[_0x1ed2('0x6')](_0xcd3221);this[_0x1ed2('0xb')][_0x1ed2('0x2d')][_0x1ed2('0x1d')](_0x4c5645),this[_0x1ed2('0x3f')](_0xcd3221),_0x356bd6&&this[_0x1ed2('0x38')](this[_0x1ed2('0x6')](_0x356bd6)),_0x24a5b2&&this[_0x1ed2('0x38')](this[_0x1ed2('0x6')](_0x24a5b2)),this[_0x1ed2('0x42')]();}[_0x1ed2('0xf')]({blurredAnnotation:_0x2aae38,activatedAnnotation:_0x1e8417,disableAnimationOnActivatedAnnotation:_0xc81d6c}){if(this[_0x1ed2('0x2b')]=_0x1e8417,_0x2aae38){_0x2aae38[_0x1ed2('0x1c')]=!0x1;const _0x54c299=this[_0x1ed2('0x6')](_0x2aae38);_0x54c299&&_0xc81d6c&&(_0x54c299['isAnimationDisabled']=!0x1);}if(_0x1e8417){const _0x47e6c7=this[_0x1ed2('0x6')](_0x1e8417);_0x47e6c7&&(_0x1e8417[_0x1ed2('0x1c')]=!0x0,_0xc81d6c&&(_0x47e6c7[_0x1ed2('0x16')]=!0x0,_0x47e6c7[_0x1ed2('0x26')]+=0x1),this[_0x1ed2('0x38')](_0x47e6c7));}}[_0x1ed2('0x2f')](_0x5a0acd){if(this[_0x1ed2('0x48')](),this[_0x1ed2('0xb')]['element'][_0x1ed2('0x1d')](),_0x5a0acd)for(const _0x3b0381 of _0x5a0acd)this[_0x1ed2('0x3f')](_0x3b0381);this[_0x1ed2('0xb')][_0x1ed2('0x2d')]['clear'](),this['view'][_0x1ed2('0x47')]='',this[_0x1ed2('0xd')]=null;}[_0x1ed2('0x21')](_0x3a27e9,_0x5951e5){_0x5951e5||(_0x5951e5=_0x3a27e9['view']);const _0x50e973=new _0x593386(this[_0x1ed2('0x3d')]['locale']);this[_0x1ed2('0x35')]['set'](_0x50e973,_0x3a27e9),this[_0x1ed2('0x29')][_0x1ed2('0x1')](_0x3a27e9,_0x50e973),_0x50e973['content']['add'](_0x5951e5),this['listenTo'](_0x3a27e9[_0x1ed2('0xb')],_0x1ed2('0x34'),(_0x14aa3b,_0xe139c1,_0x816752)=>{const _0x1a7b0f=this[_0x1ed2('0x4')](_0x3a27e9,_0x816752);_0x50e973['_targetTop']!=_0x1a7b0f&&(_0x50e973[_0x1ed2('0x5')]=_0x1a7b0f,this[_0x1ed2('0x3')](_0x50e973,_0x1a7b0f));}),this[_0x1ed2('0x3b')](_0x50e973,_0x1ed2('0x3e'),()=>{this['_recalculate'](_0x50e973,'top');}),this['listenTo'](_0x50e973,_0x1ed2('0x43'),()=>{this[_0x1ed2('0x37')](_0x50e973,'bottom');}),this['_alignToTargetRect'](_0x50e973);const _0x2122a8=this[_0x1ed2('0x44')](_0x50e973);if(_0x2122a8)this[_0x1ed2('0x28')](_0x2122a8,_0x50e973)||this['_alignToTargetRect'](_0x50e973);else this[_0x1ed2('0x38')](_0x50e973);return this[_0x1ed2('0x42')](),this[_0x1ed2('0xb')][_0x1ed2('0x2d')]['add'](_0x50e973),_0x50e973;}[_0x1ed2('0x3c')](_0x36dae1){if(!_0x36dae1[_0x1ed2('0x1a')][_0x1ed2('0x24')])return;const _0x115899=this[_0x1ed2('0x44')](_0x36dae1);if(!_0x115899)return;const _0xc369ac=this[_0x1ed2('0x35')]['get'](_0x115899),_0x4817c0=this['_activeAnnotation'];_0x4817c0&&_0x4817c0===_0xc369ac?this[_0x1ed2('0x28')](_0x115899,_0x36dae1):this['_alignBeforeItem'](_0x36dae1,_0x115899);}[_0x1ed2('0x23')](_0xb73389){if(!_0xb73389[_0x1ed2('0x1a')][_0x1ed2('0x24')])return;const _0x3feb6c=this[_0x1ed2('0x1b')](_0xb73389);if(!_0x3feb6c)return;const _0xf2826d=this[_0x1ed2('0x35')][_0x1ed2('0x13')](_0x3feb6c),_0x40b498=this[_0x1ed2('0x3d')][_0x1ed2('0x2e')]['get'](_0x1ed2('0x39')),_0x41824e=this[_0x1ed2('0x2b')];_0x41824e&&_0x41824e===_0xf2826d&&_0x40b498?(this[_0x1ed2('0xa')](_0x3feb6c,_0xb73389),this[_0x1ed2('0x28')](_0xb73389,_0x3feb6c)):_0x41824e&&_0x41824e===_0xf2826d?this['_alignBeforeItem'](_0x3feb6c,_0xb73389):this[_0x1ed2('0x28')](_0xb73389,_0x3feb6c);}[_0x1ed2('0x37')](_0x5e398a,_0x521fc1){0x0===this[_0x1ed2('0x46')][_0x1ed2('0x24')]&&setTimeout(()=>{for(const {sidebarItemView:_0x48c38e,changedProp:_0x2a5e80}of this[_0x1ed2('0x46')])_0x1ed2('0x26')===_0x2a5e80?this[_0x1ed2('0x3c')](_0x48c38e):this[_0x1ed2('0x23')](_0x48c38e);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x5e398a,'changedProp':_0x521fc1});}['getSidebarItemView'](_0x29a6b4){return this[_0x1ed2('0x29')][_0x1ed2('0x13')](_0x29a6b4);}[_0x1ed2('0x17')](){this[_0x1ed2('0xb')][_0x1ed2('0x17')]();}[_0x1ed2('0x3f')](_0x1328e3){const _0x48daef=this[_0x1ed2('0x6')](_0x1328e3);this['stopListening'](_0x48daef),this['stopListening'](_0x1328e3[_0x1ed2('0xb')]),_0x48daef[_0x1ed2('0x17')](),this[_0x1ed2('0x29')]['delete'](_0x1328e3),this[_0x1ed2('0x35')][_0x1ed2('0x41')](_0x48daef);}[_0x1ed2('0x22')](){const _0x108b05=new _0x1b39e5(this[_0x1ed2('0x3d')]['locale']);return _0x108b05[_0x1ed2('0x7')](),this['on']('change:_lastItem',(_0x31f93a,_0x5bce0c,_0x3f595e,_0x599620)=>{_0x599620&&_0x108b05[_0x1ed2('0x19')](_0x1ed2('0x2')),_0x3f595e?_0x108b05[_0x1ed2('0x25')](_0x1ed2('0x2'))['to'](_0x3f595e,_0x1ed2('0x45')):_0x108b05[_0x1ed2('0x2')]=null;}),_0x108b05;}[_0x1ed2('0x42')](){var _0x2c4459;this[_0x1ed2('0xd')]=(null===(_0x2c4459=this[_0x1ed2('0x36')])||void 0x0===_0x2c4459?void 0x0:_0x2c4459[_0x1ed2('0x1f')])?this['getSidebarItemView'](this[_0x1ed2('0x36')]['last']):null;}[_0x1ed2('0x44')](_0x5db258){var _0x5a0eee;const _0x46d4be=this[_0x1ed2('0x35')][_0x1ed2('0x13')](_0x5db258),_0x5451b4=_0x46d4be&&(null===(_0x5a0eee=this[_0x1ed2('0x36')])||void 0x0===_0x5a0eee?void 0x0:_0x5a0eee[_0x1ed2('0x13')](this[_0x1ed2('0x36')][_0x1ed2('0x18')](_0x46d4be)-0x1));return _0x5451b4&&this[_0x1ed2('0x6')](_0x5451b4)||null;}[_0x1ed2('0x1b')](_0x11f931){var _0x531238;const _0x70557d=this['_sidebarItemViewToAnnotation'][_0x1ed2('0x13')](_0x11f931),_0x5d15da=_0x70557d&&(null===(_0x531238=this[_0x1ed2('0x36')])||void 0x0===_0x531238?void 0x0:_0x531238['get'](this['_annotations'][_0x1ed2('0x18')](_0x70557d)+0x1));return _0x5d15da&&this['getSidebarItemView'](_0x5d15da)||null;}[_0x1ed2('0xa')](_0x165992,_0x98724b){_0x165992[_0x1ed2('0x0')]();const _0x3193ca=H(_0x98724b[_0x1ed2('0x45')]+this[_0x1ed2('0x40')],_0x165992[_0x1ed2('0x26')]);return!!_0x3193ca&&(this['_setItemTop'](_0x98724b,_0x98724b[_0x1ed2('0x26')]-_0x3193ca),!0x0);}[_0x1ed2('0x28')](_0x1f9388,_0x5b28a6){_0x1f9388[_0x1ed2('0x0')]();const _0x25c360=H(_0x1f9388[_0x1ed2('0x45')]+this['_spaceBetweenItems'],_0x5b28a6[_0x1ed2('0x26')]);return!!_0x25c360&&(this[_0x1ed2('0x3')](_0x5b28a6,_0x5b28a6[_0x1ed2('0x26')]+_0x25c360,!0x1),!0x0);}[_0x1ed2('0x38')](_0x3b7abb){const _0x992b19=this[_0x1ed2('0x35')][_0x1ed2('0x13')](_0x3b7abb);if(!_0x992b19||!_0x992b19['target']||!_0x992b19['targetRect'])return;const _0x15add2=this[_0x1ed2('0x4')](_0x992b19,_0x992b19[_0x1ed2('0xc')]);this['_setItemTop'](_0x3b7abb,_0x15add2);}[_0x1ed2('0x4')](_0x5bcd96,_0x4517de){if(null===_0x4517de)return 0x0;if(_0x5bcd96[_0x1ed2('0x11')]instanceof _0x820160)return _0x4517de[_0x1ed2('0x26')];{const _0x172f31=new _0x820160(this[_0x1ed2('0xb')][_0x1ed2('0x1e')])[_0x1ed2('0x26')];return _0x4517de[_0x1ed2('0x26')]-_0x172f31;}}['_setItemTop'](_0x24f63a,_0x48bf74,_0x44be7c=this[_0x1ed2('0x3d')][_0x1ed2('0x2e')][_0x1ed2('0x13')]('sidebar.preventScrollOutOfView')){_0x44be7c&&(_0x48bf74=Math[_0x1ed2('0x9')](_0x48bf74,this[_0x1ed2('0x30')](_0x24f63a))),_0x24f63a['top']=_0x48bf74;}['_getMaxAvailableTop'](_0x59f71b){let _0x1610a1=this[_0x1ed2('0x44')](_0x59f71b),_0x4a00c9=0x0;for(;_0x1610a1;)_0x1610a1[_0x1ed2('0x0')](),_0x4a00c9+=this[_0x1ed2('0x40')]+_0x1610a1[_0x1ed2('0x31')],_0x1610a1=this[_0x1ed2('0x44')](_0x1610a1);return _0x4a00c9;}}function H(_0x1ff1a2,_0x2ae9f7){return Math[_0x1ed2('0x9')](_0x1ff1a2-_0x2ae9f7,0x0);}function y(_0x355441){return null!==_0x355441&&_0x1ed2('0x2a')==typeof _0x355441&&0x1===_0x355441[_0x1ed2('0x20')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3faf=['toString','number','bindTemplate','extendTemplate','set','ck-annotation-counter__badge','_badge','isDirty','ck-annotation-counter__badge--edit-mode','annotationType','counterView','add','bind','children','ck-annotation-counter__badge--','span'];(function(_0x37934e,_0x3faf70){const _0x42e3f1=function(_0xe486f2){while(--_0xe486f2){_0x37934e['push'](_0x37934e['shift']());}};_0x42e3f1(++_0x3faf70);}(_0x3faf,0x14d));const _0x42e3=function(_0x37934e,_0x3faf70){_0x37934e=_0x37934e-0x0;let _0x42e3f1=_0x3faf[_0x37934e];return _0x42e3f1;};import{ButtonView as _0x37057a,View as _0x670717}from'ckeditor5/src/ui';import _0x54ac02 from'../../../theme/icons/add-comment.svg';export default class D extends _0x37057a{constructor(_0x1b5994){super(_0x1b5994);const _0x2b744=this[_0x42e3('0x5')];this['set'](_0x42e3('0xa'),!0x1),this[_0x42e3('0x7')]('number',0x0),this[_0x42e3('0xf')](_0x42e3('0x9'))['to'](this,_0x42e3('0xa'),this,_0x42e3('0x4'),(_0x33c361,_0x3a051d)=>_0x33c361?'...':_0x3a051d[_0x42e3('0x3')]()),this[_0x42e3('0x7')](_0x42e3('0xc'),''),this['icon']=_0x54ac02,this[_0x42e3('0x6')]({'attributes':{'class':['ck-annotation-counter']}}),this[_0x42e3('0xd')]=new _0x670717(),this[_0x42e3('0xd')]['setTemplate']({'tag':_0x42e3('0x2'),'attributes':{'class':[_0x42e3('0x8'),_0x2b744['to'](_0x42e3('0xc'),_0x29481b=>_0x42e3('0x1')+_0x29481b),_0x2b744['if']('isDirty',_0x42e3('0xb'))]},'children':[{'text':_0x2b744['to'](_0x42e3('0x9'))}]}),this[_0x42e3('0x0')][_0x42e3('0xe')](this[_0x42e3('0xd')]);}}
23
+ const _0x376d=['ck-annotation-counter','bind','ck-annotation-counter__badge','...','extendTemplate','annotationType','span','number','icon','isDirty','bindTemplate','counterView','add','_badge','set','children','ck-annotation-counter__badge--','setTemplate'];(function(_0x5ef05a,_0x376d3c){const _0x4c678e=function(_0x4ef46a){while(--_0x4ef46a){_0x5ef05a['push'](_0x5ef05a['shift']());}};_0x4c678e(++_0x376d3c);}(_0x376d,0x1f3));const _0x4c67=function(_0x5ef05a,_0x376d3c){_0x5ef05a=_0x5ef05a-0x0;let _0x4c678e=_0x376d[_0x5ef05a];return _0x4c678e;};import{ButtonView as _0x4643ee,View as _0x4d62ef}from'ckeditor5/src/ui';import _0x12c60f from'../../../theme/icons/add-comment.svg';export default class D extends _0x4643ee{constructor(_0xb08f15){super(_0xb08f15);const _0x5cc611=this[_0x4c67('0xf')];this[_0x4c67('0x1')](_0x4c67('0xe'),!0x1),this[_0x4c67('0x1')]('number',0x0),this[_0x4c67('0x6')]('_badge')['to'](this,_0x4c67('0xe'),this,_0x4c67('0xc'),(_0x1d2990,_0x5797b3)=>_0x1d2990?_0x4c67('0x8'):_0x5797b3['toString']()),this[_0x4c67('0x1')](_0x4c67('0xa'),''),this[_0x4c67('0xd')]=_0x12c60f,this[_0x4c67('0x9')]({'attributes':{'class':[_0x4c67('0x5')]}}),this[_0x4c67('0x10')]=new _0x4d62ef(),this[_0x4c67('0x10')][_0x4c67('0x4')]({'tag':_0x4c67('0xb'),'attributes':{'class':[_0x4c67('0x7'),_0x5cc611['to'](_0x4c67('0xa'),_0x5c4753=>_0x4c67('0x3')+_0x5c4753),_0x5cc611['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x5cc611['to'](_0x4c67('0x0'))}]}),this[_0x4c67('0x2')][_0x4c67('0x11')](this[_0x4c67('0x10')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x58c3=['element','targetRect','set','bindTemplate','focusTracker','_updateHeight','listenTo','div','isDirty','render','destroy','setTemplate','createCollection','height','fire','attach','ck-rounded-corners','_mutationObserver','keystrokes','isActive','type','clear','mainView','add','focus','detach','length','content'];(function(_0xc28432,_0x58c387){const _0x4fb4ea=function(_0xb6c18d){while(--_0xb6c18d){_0xc28432['push'](_0xc28432['shift']());}};_0x4fb4ea(++_0x58c387);}(_0x58c3,0x97));const _0x4fb4=function(_0xc28432,_0x58c387){_0xc28432=_0xc28432-0x0;let _0x4fb4ea=_0x58c3[_0xc28432];return _0x4fb4ea;};import{View as _0x311bbf}from'ckeditor5/src/ui';import{FocusTracker as _0x2e0f78,KeystrokeHandler as _0x56b2b7,uid as _0x5da8c7}from'ckeditor5/src/utils';import _0x4fcebf from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x311bbf{constructor(_0x49ae2e,_0x5d1656){super(_0x49ae2e),this['id']=_0x5da8c7(),this[_0x4fb4('0x15')]=new _0x2e0f78(),this[_0x4fb4('0x7')]=new _0x56b2b7(),this[_0x4fb4('0x7')][_0x4fb4('0x13')]('Esc',(_0x23b745,_0x57c49f)=>this[_0x4fb4('0x3')]('Esc',_0x57c49f)),this[_0x4fb4('0x13')](_0x4fb4('0x12'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x4fb4('0x13')]('height',0x0),this[_0x4fb4('0x13')](_0x4fb4('0x8'),!0x1),this[_0x4fb4('0x13')](_0x4fb4('0x19'),!0x1),this[_0x4fb4('0x13')](_0x4fb4('0xf'),0x0),this['set'](_0x4fb4('0x9'),''),this[_0x4fb4('0x6')]=_0x4fcebf(()=>this['_updateHeight']()),this[_0x4fb4('0x10')]=this[_0x4fb4('0x1')](),this[_0x4fb4('0x10')]['add'](_0x5d1656),this[_0x4fb4('0xb')]=_0x5d1656;const _0x412c0e=this[_0x4fb4('0x14')];this[_0x4fb4('0x0')]({'tag':_0x4fb4('0x18'),'attributes':{'class':['ck','ck-annotation-wrapper',_0x4fb4('0x5'),_0x412c0e['if'](_0x4fb4('0x8'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this[_0x4fb4('0x10')]});}[_0x4fb4('0x1a')](){super['render'](),this[_0x4fb4('0x15')][_0x4fb4('0xc')](this[_0x4fb4('0x11')]),this[_0x4fb4('0x7')][_0x4fb4('0x17')](this[_0x4fb4('0x11')]),this[_0x4fb4('0x6')][_0x4fb4('0x4')](this[_0x4fb4('0x11')]);}[_0x4fb4('0x1b')](){this[_0x4fb4('0x10')][_0x4fb4('0xa')](),this['keystrokes']['destroy'](),this[_0x4fb4('0x15')]['destroy'](),this[_0x4fb4('0x6')][_0x4fb4('0xe')](),super['destroy']();}[_0x4fb4('0xd')](){this[_0x4fb4('0x11')][_0x4fb4('0xd')]();}[_0x4fb4('0x16')](){const _0x5914dd=this[_0x4fb4('0x11')]['clientHeight'];_0x5914dd&&(this[_0x4fb4('0x2')]=_0x5914dd);}}
23
+ const _0x3e36=['content','keystrokes','ck-annotation-wrapper','clientHeight','listenTo','destroy','render','element','set','isDirty','bindTemplate','clear','focusTracker','height','_mutationObserver','targetRect','detach','createCollection','isActive','Esc','type','focus','ck-annotation-wrapper--active','add','length','attach','_updateHeight','mainView'];(function(_0x4bcd81,_0x3e36b6){const _0x206c25=function(_0x353bec){while(--_0x353bec){_0x4bcd81['push'](_0x4bcd81['shift']());}};_0x206c25(++_0x3e36b6);}(_0x3e36,0x1a2));const _0x206c=function(_0x4bcd81,_0x3e36b6){_0x4bcd81=_0x4bcd81-0x0;let _0x206c25=_0x3e36[_0x4bcd81];return _0x206c25;};import{View as _0x47c69d}from'ckeditor5/src/ui';import{FocusTracker as _0x38e1da,KeystrokeHandler as _0x52cc56,uid as _0x5bd060}from'ckeditor5/src/utils';import _0x2191a1 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x47c69d{constructor(_0x2d0a00,_0x19481a){super(_0x2d0a00),this['id']=_0x5bd060(),this['focusTracker']=new _0x38e1da(),this[_0x206c('0x3')]=new _0x52cc56(),this[_0x206c('0x3')][_0x206c('0xa')](_0x206c('0x15'),(_0x40956e,_0x58863f)=>this['fire'](_0x206c('0x15'),_0x58863f)),this[_0x206c('0xa')](_0x206c('0x11'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x206c('0xa')](_0x206c('0xf'),0x0),this['set'](_0x206c('0x14'),!0x1),this[_0x206c('0xa')](_0x206c('0xb'),!0x1),this[_0x206c('0xa')](_0x206c('0x1a'),0x0),this[_0x206c('0xa')](_0x206c('0x16'),''),this['_mutationObserver']=_0x2191a1(()=>this[_0x206c('0x0')]()),this[_0x206c('0x2')]=this[_0x206c('0x13')](),this['content'][_0x206c('0x19')](_0x19481a),this[_0x206c('0x1')]=_0x19481a;const _0x2c647c=this[_0x206c('0xc')];this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x206c('0x4'),'ck-rounded-corners',_0x2c647c['if'](_0x206c('0x14'),_0x206c('0x18'))],'tabindex':-0x1},'children':this['content']});}[_0x206c('0x8')](){super[_0x206c('0x8')](),this[_0x206c('0xe')][_0x206c('0x19')](this[_0x206c('0x9')]),this['keystrokes'][_0x206c('0x6')](this[_0x206c('0x9')]),this[_0x206c('0x10')][_0x206c('0x1b')](this[_0x206c('0x9')]);}[_0x206c('0x7')](){this['content'][_0x206c('0xd')](),this[_0x206c('0x3')][_0x206c('0x7')](),this[_0x206c('0xe')]['destroy'](),this[_0x206c('0x10')][_0x206c('0x12')](),super[_0x206c('0x7')]();}[_0x206c('0x17')](){this[_0x206c('0x9')]['focus']();}[_0x206c('0x0')](){const _0x580d3e=this[_0x206c('0x9')][_0x206c('0x5')];_0x580d3e&&(this[_0x206c('0xf')]=_0x580d3e);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5f14=['clear','_targetTop','content','set','isAnimationDisabled','bind','height','destroy','element','attach','setTemplate','render','clientHeight','ck-sidebar-item','_mutationObserver','updateHeight','ck-sidebar-item--no-animation'];(function(_0x48b4cf,_0x5f14f6){const _0x26b0bb=function(_0x1aeb66){while(--_0x1aeb66){_0x48b4cf['push'](_0x48b4cf['shift']());}};_0x26b0bb(++_0x5f14f6);}(_0x5f14,0x195));const _0x26b0=function(_0x48b4cf,_0x5f14f6){_0x48b4cf=_0x48b4cf-0x0;let _0x26b0bb=_0x5f14[_0x48b4cf];return _0x26b0bb;};import{View as _0x146eca}from'ckeditor5/src/ui';import{toUnit as _0x5d1dbf}from'ckeditor5/src/utils';import _0x4f0ee7 from'../../utils/createmutationobserver';const At=_0x5d1dbf('px');export default class C extends _0x146eca{constructor(_0x10b6a9){super(_0x10b6a9),this[_0x26b0('0x6')]('top',0x0),this[_0x26b0('0x6')](_0x26b0('0x9'),0x0),this[_0x26b0('0x8')]('bottom')['to'](this,'top',this,_0x26b0('0x9'),(_0x2d745f,_0x39bdae)=>_0x2d745f+_0x39bdae),this['set']('isAnimationDisabled',!0x1),this[_0x26b0('0x0')]=_0x4f0ee7(()=>this[_0x26b0('0x1')]()),this[_0x26b0('0x4')]=null,this[_0x26b0('0x5')]=this['createCollection']();const _0x3f4d49=this['bindTemplate'];this[_0x26b0('0xd')]({'tag':'div','attributes':{'class':[_0x26b0('0x10'),_0x3f4d49['to'](_0x26b0('0x7'),_0x652d58=>_0x652d58?_0x26b0('0x2'):'')],'style':{'top':_0x3f4d49['to']('top',_0x546fe6=>At(_0x546fe6))}},'children':this['content']});}[_0x26b0('0xe')](){super['render'](),this[_0x26b0('0x0')][_0x26b0('0xc')](this[_0x26b0('0xb')]);}[_0x26b0('0x1')](){const _0x35f08b=this['element'][_0x26b0('0xf')];_0x35f08b&&(this[_0x26b0('0x9')]=_0x35f08b);}[_0x26b0('0xa')](){this['content'][_0x26b0('0x3')](),this[_0x26b0('0x0')]['detach'](),super['destroy']();}}
23
+ const _0x2e56=['setTemplate','_targetTop','detach','set','isAnimationDisabled','div','bottom','top','clientHeight','attach','bind','render','content','createCollection','_mutationObserver','updateHeight','bindTemplate','height','ck-sidebar-item'];(function(_0x3c65b0,_0x2e562c){const _0x153a90=function(_0x55ef7f){while(--_0x55ef7f){_0x3c65b0['push'](_0x3c65b0['shift']());}};_0x153a90(++_0x2e562c);}(_0x2e56,0x161));const _0x153a=function(_0x3c65b0,_0x2e562c){_0x3c65b0=_0x3c65b0-0x0;let _0x153a90=_0x2e56[_0x3c65b0];return _0x153a90;};import{View as _0x5b4edb}from'ckeditor5/src/ui';import{toUnit as _0x69068c}from'ckeditor5/src/utils';import _0x3df3f4 from'../../utils/createmutationobserver';const At=_0x69068c('px');export default class C extends _0x5b4edb{constructor(_0x115d2d){super(_0x115d2d),this[_0x153a('0xb')](_0x153a('0xf'),0x0),this['set'](_0x153a('0x6'),0x0),this[_0x153a('0x12')](_0x153a('0xe'))['to'](this,'top',this,'height',(_0x5693ce,_0x1b93cf)=>_0x5693ce+_0x1b93cf),this[_0x153a('0xb')](_0x153a('0xc'),!0x1),this[_0x153a('0x3')]=_0x3df3f4(()=>this['updateHeight']()),this[_0x153a('0x9')]=null,this[_0x153a('0x1')]=this[_0x153a('0x2')]();const _0x400d37=this[_0x153a('0x5')];this[_0x153a('0x8')]({'tag':_0x153a('0xd'),'attributes':{'class':[_0x153a('0x7'),_0x400d37['to']('isAnimationDisabled',_0x581118=>_0x581118?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x400d37['to'](_0x153a('0xf'),_0x501b79=>At(_0x501b79))}},'children':this[_0x153a('0x1')]});}['render'](){super[_0x153a('0x0')](),this['_mutationObserver'][_0x153a('0x11')](this['element']);}[_0x153a('0x4')](){const _0x261c80=this['element'][_0x153a('0x10')];_0x261c80&&(this[_0x153a('0x6')]=_0x261c80);}['destroy'](){this['content']['clear'](),this[_0x153a('0x3')][_0x153a('0xa')](),super['destroy']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x8f5e=['list','ck-sidebar','createCollection','minHeight','number','set','div','bindTemplate','ck-reset'];(function(_0x3013bb,_0x8f5e21){const _0x10d64e=function(_0x5c611a){while(--_0x5c611a){_0x3013bb['push'](_0x3013bb['shift']());}};_0x10d64e(++_0x8f5e21);}(_0x8f5e,0x12e));const _0x10d6=function(_0x3013bb,_0x8f5e21){_0x3013bb=_0x3013bb-0x0;let _0x10d64e=_0x8f5e[_0x3013bb];return _0x10d64e;};import{View as _0xcabc94}from'ckeditor5/src/ui';import{toUnit as _0x3ee03f}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x3ee03f('px');export default class T extends _0xcabc94{constructor(_0x12ca0d){super(_0x12ca0d);const _0x10a17f=this[_0x10d6('0x2')];this[_0x10d6('0x0')]('minHeight',0x0),this['set']('class',''),this['list']=this[_0x10d6('0x6')](),this['setTemplate']({'tag':_0x10d6('0x1'),'attributes':{'class':['ck',_0x10d6('0x5'),_0x10d6('0x3'),_0x10a17f['to']('class')],'style':{'minHeight':_0x10a17f['to'](_0x10d6('0x7'),_0xfc58be=>_0x10d6('0x8')==typeof _0xfc58be?At(_0xfc58be+0xa):null)}},'children':this[_0x10d6('0x4')]});}}
23
+ const _0x3109=['class','bindTemplate','div','set','setTemplate','list','ck-sidebar','minHeight'];(function(_0x5c7436,_0x3109fe){const _0x5a9b3f=function(_0x907e8){while(--_0x907e8){_0x5c7436['push'](_0x5c7436['shift']());}};_0x5a9b3f(++_0x3109fe);}(_0x3109,0x1e8));const _0x5a9b=function(_0x5c7436,_0x3109fe){_0x5c7436=_0x5c7436-0x0;let _0x5a9b3f=_0x3109[_0x5c7436];return _0x5a9b3f;};import{View as _0x40b617}from'ckeditor5/src/ui';import{toUnit as _0x942df3}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x942df3('px');export default class T extends _0x40b617{constructor(_0x30d011){super(_0x30d011);const _0x491063=this[_0x5a9b('0x1')];this[_0x5a9b('0x3')](_0x5a9b('0x7'),0x0),this[_0x5a9b('0x3')](_0x5a9b('0x0'),''),this[_0x5a9b('0x5')]=this['createCollection'](),this[_0x5a9b('0x4')]({'tag':_0x5a9b('0x2'),'attributes':{'class':['ck',_0x5a9b('0x6'),'ck-reset',_0x491063['to']('class')],'style':{'minHeight':_0x491063['to'](_0x5a9b('0x7'),_0x2d58f3=>'number'==typeof _0x2d58f3?At(_0x2d58f3+0xa):null)}},'children':this[_0x5a9b('0x5')]});}}
@@ -2,10 +2,11 @@
2
2
  * @module comments/annotations/widesidebar
3
3
  * @publicApi
4
4
  */
5
- import { ContextPlugin, type ContextPluginDependencies, Context, type Editor } from 'ckeditor5/src/core';
6
- import { type AnnotationsUI } from './annotationsuis';
5
+ import { ContextPlugin, Context, type Editor } from 'ckeditor5/src/core';
6
+ import AnnotationsUIs, { type AnnotationsUI } from './annotationsuis';
7
+ import Sidebar from './sidebar';
7
8
  import type Annotation from './annotation';
8
- import type AnnotationCollection from './annotationcollection';
9
+ import type { default as AnnotationCollection } from './annotationcollection';
9
10
  /**
10
11
  * The wide sidebar UI for displaying annotations.
11
12
  *
@@ -40,11 +41,11 @@ export default class WideSidebar extends ContextPlugin implements AnnotationsUI<
40
41
  /**
41
42
  * @inheritDoc
42
43
  */
43
- static get requires(): ContextPluginDependencies;
44
+ static get requires(): readonly [typeof Sidebar, typeof AnnotationsUIs];
44
45
  /**
45
46
  * @inheritDoc
46
47
  */
47
- static get pluginName(): 'WideSidebar';
48
+ static get pluginName(): "WideSidebar";
48
49
  /**
49
50
  * @inheritDoc
50
51
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1f31=['removeEventListener','add','off','_activeAnnotation','_integrateWithEditorAnnotations','pluginName','refreshPositioning','get','set','activeAnnotation','resize','WideSidebar','focus','stopListening','change:container','container','EditorAnnotations','setActiveAnnotation','_refreshPositioningDebounced','plugins','switchTo','annotations','hasDomSelection','ready','wideSidebar','_editorAnnotations','widesidebar-detach-not-attached','context','has','high','destroy','stop','uiUpdate','addAnnotation','register','rearrange','blur','getOrderedSelectedAnnotations','isAttached','attach','detach','updateTargetRect','listenTo','_destroyEditorAnnotationsIntegration','ck-sidebar--wide','from','_detachFromContainer','editors','requires','refresh'];(function(_0x3d6a53,_0x1f31c0){const _0x229545=function(_0x297768){while(--_0x297768){_0x3d6a53['push'](_0x3d6a53['shift']());}};_0x229545(++_0x1f31c0);}(_0x1f31,0x166));const _0x2295=function(_0x3d6a53,_0x1f31c0){_0x3d6a53=_0x3d6a53-0x0;let _0x229545=_0x1f31[_0x3d6a53];return _0x229545;};import{ContextPlugin as _0x86cc,Context as _0x86c9ad}from'ckeditor5/src/core';import _0x3e6664 from'./annotationsuis';import _0xa91dc9 from'./sidebar';import{CKEditorError as _0x162069,Collection as _0x4b0703}from'ckeditor5/src/utils';import{debounce as _0x5e1c10}from'lodash-es';import _0x3b3c5d from'./editorannotations';export default class i extends _0x86cc{static get[_0x2295('0x28')](){return[_0xa91dc9,_0x3e6664];}static get[_0x2295('0x2f')](){return _0x2295('0x3');}constructor(_0x567623){super(_0x567623),this[_0x2295('0x1e')]=!0x1,this[_0x2295('0x0')]('activeAnnotation',null),this['annotations']=null,this[_0x2295('0x11')]=new _0x4b0703(),this[_0x2295('0xa')]=_0x5e1c10(()=>{this['annotations'][_0x2295('0x30')]();},0xfa,{'leading':!0x1});}['init'](){const _0x49816f=this[_0x2295('0x13')][_0x2295('0xb')][_0x2295('0x31')](_0x3e6664),_0x220a13=this[_0x2295('0x13')]['plugins'][_0x2295('0x31')](_0xa91dc9);_0x49816f[_0x2295('0x1a')](_0x2295('0x10'),this),_0x220a13[_0x2295('0x7')]&&_0x49816f[_0x2295('0xc')](_0x2295('0x10'));}[_0x2295('0x9')](_0x32d96d){if(_0x32d96d===this[_0x2295('0x1')])return;const _0x567ebd=this['context']['plugins'][_0x2295('0x31')](_0xa91dc9);_0x567ebd[_0x2295('0x2d')]=_0x32d96d;const _0x19b6f3=this[_0x2295('0x1')];this[_0x2295('0x1')]=_0x32d96d,_0x567ebd['refresh']({'blurredAnnotation':_0x19b6f3,'activatedAnnotation':this[_0x2295('0x1')]});}[_0x2295('0x1f')](_0x20f45c){this['annotations']=_0x20f45c;const _0x4f0712=this['context'][_0x2295('0xb')]['get'](_0xa91dc9);if(_0x4f0712['_annotations']=_0x20f45c,this[_0x2295('0x1e')])throw new _0x162069('widesidebar-attach-already-attached',this);this[_0x2295('0x1e')]=!0x0,this[_0x2295('0x22')](_0x4f0712,'set:container',()=>{this[_0x2295('0x20')](),this[_0x2295('0x22')](_0x4f0712,_0x2295('0x6'),_0x3b4ec7=>{_0x3b4ec7[_0x2295('0x2c')](),this[_0x2295('0x1f')](_0x20f45c);});}),_0x4f0712['_attachToContainer']({'viewClass':_0x2295('0x24')});const _0x43167e=_0x531bf2=>{_0x531bf2[_0x2295('0x21')](),_0x4f0712[_0x2295('0x19')](_0x531bf2);};for(const _0x312662 of _0x20f45c)_0x43167e(_0x312662);this[_0x2295('0x22')](_0x20f45c,_0x2295('0x2b'),(_0x5cc704,_0x28e37f)=>{_0x43167e(_0x28e37f);}),this[_0x2295('0x22')](_0x20f45c,'remove',(_0x4a7912,_0x2a2004,_0x2a1768)=>{_0x4f0712[_0x2295('0x1b')]({'removedAnnotation':_0x2a2004,'previousAnnotation':_0x20f45c['get'](_0x2a1768-0x1),'nextAnnotation':_0x20f45c[_0x2295('0x31')](_0x2a1768+0x1)}),_0x2a2004===this['activeAnnotation']&&this[_0x2295('0x9')](null);},{'priority':'high'}),this['listenTo'](_0x20f45c,_0x2295('0x4'),(_0x4e2ee6,_0x11a558)=>{this[_0x2295('0x9')](_0x11a558);}),this['listenTo'](_0x20f45c,'blur',()=>{this[_0x2295('0x9')](null);});const _0x4b46f2=this[_0x2295('0x13')]instanceof _0x86c9ad?this[_0x2295('0x13')]['editors']:new _0x4b0703([this[_0x2295('0x13')]]);for(const _0x20bd78 of _0x4b46f2)this[_0x2295('0x2e')](_0x20bd78);this[_0x2295('0x22')](_0x4b46f2,_0x2295('0x2b'),(_0xe26dd7,_0x393e97)=>{this[_0x2295('0x22')](_0x393e97,_0x2295('0xf'),()=>{this[_0x2295('0x2e')](_0x393e97);});}),this[_0x2295('0x22')](_0x4b46f2,'remove',(_0x10f25d,_0x2a3926)=>{_0x2a3926['plugins'][_0x2295('0x14')](_0x2295('0x8'))&&this['_destroyEditorAnnotationsIntegration'](_0x2a3926[_0x2295('0xb')]['get'](_0x2295('0x8')));}),window['addEventListener']('resize',this[_0x2295('0xa')]),this['annotations']['refreshPositioning']();}['detach'](){if(!this[_0x2295('0x1e')])throw new _0x162069(_0x2295('0x12'),this);this[_0x2295('0x9')](null);const _0x5e145d=this[_0x2295('0x13')][_0x2295('0xb')][_0x2295('0x31')](_0xa91dc9);_0x5e145d[_0x2295('0x26')](this['annotations']),this[_0x2295('0x5')](_0x5e145d),this[_0x2295('0x5')](this[_0x2295('0xd')]),this[_0x2295('0x13')]instanceof _0x86c9ad&&this['stopListening'](this['context'][_0x2295('0x27')]);for(const _0x124ce9 of Array[_0x2295('0x25')](this[_0x2295('0x11')]))this[_0x2295('0x23')](_0x124ce9);window[_0x2295('0x2a')](_0x2295('0x2'),this[_0x2295('0xa')]),this[_0x2295('0xa')]['cancel'](),this[_0x2295('0x1')]=null,this[_0x2295('0x1e')]=!0x1,this[_0x2295('0xd')]=null;}[_0x2295('0x16')](){this['isAttached']&&this[_0x2295('0x20')]();}['_integrateWithEditorAnnotations'](_0x4d2fc2){const _0xae8932=_0x4d2fc2['plugins'][_0x2295('0x31')](_0x3b3c5d);if(!_0xae8932)return;const _0x2cf1a6=()=>{const _0x491abd=_0xae8932[_0x2295('0x1d')]({'annotations':this[_0x2295('0xd')],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x491abd[0x0]||null);};this[_0x2295('0x22')](_0xae8932,_0x2295('0x29'),_0x2cf1a6),this['listenTo'](_0xae8932,_0x2295('0x1c'),(_0x120d87,{isAnnotationTracked:_0x235dc1})=>{this['activeAnnotation']&&_0x235dc1(this[_0x2295('0x1')])&&this[_0x2295('0x9')](null);}),this[_0x2295('0x22')](_0xae8932,_0x2295('0x18'),()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this[_0x2295('0xd')],_0x2295('0x1c'),_0x4dd17f=>{_0xae8932[_0x2295('0xe')]()&&(_0x2cf1a6(),_0x4dd17f[_0x2295('0x17')]());},{'priority':_0x2295('0x15')}),this[_0x2295('0x11')][_0x2295('0x2b')](_0xae8932);}[_0x2295('0x23')](_0x13543f){this[_0x2295('0x5')](_0x13543f),this['_editorAnnotations']['remove'](_0x13543f);}}
23
+ const _0x6759=['_destroyEditorAnnotationsIntegration','annotations','hasDomSelection','activeAnnotation','attach','from','blur','_integrateWithEditorAnnotations','has','addAnnotation','_activeAnnotation','editors','uiUpdate','requires','_refreshPositioningDebounced','listenTo','rearrange','refresh','remove','resize','stopListening','_attachToContainer','removeEventListener','get','ck-sidebar--wide','refreshPositioning','setActiveAnnotation','_annotations','focus','cancel','destroy','isAttached','add','set','detach','high','set:container','WideSidebar','switchTo','stop','plugins','widesidebar-detach-not-attached','addEventListener','widesidebar-attach-already-attached','wideSidebar','context','off','_editorAnnotations'];(function(_0x44b833,_0x67591d){const _0x260500=function(_0x5a2f29){while(--_0x5a2f29){_0x44b833['push'](_0x44b833['shift']());}};_0x260500(++_0x67591d);}(_0x6759,0x184));const _0x2605=function(_0x44b833,_0x67591d){_0x44b833=_0x44b833-0x0;let _0x260500=_0x6759[_0x44b833];return _0x260500;};import{ContextPlugin as _0x1d7d21,Context as _0x3baa58}from'ckeditor5/src/core';import _0x58065c from'./annotationsuis';import _0x270a16 from'./sidebar';import{CKEditorError as _0x4c7481,Collection as _0x9c4c3e}from'ckeditor5/src/utils';import{debounce as _0x12e674}from'lodash-es';import _0x5e415a from'./editorannotations';export default class i extends _0x1d7d21{static get[_0x2605('0x9')](){return[_0x270a16,_0x58065c];}static get['pluginName'](){return _0x2605('0x21');}constructor(_0x1fb9a9){super(_0x1fb9a9),this[_0x2605('0x1b')]=!0x1,this[_0x2605('0x1d')](_0x2605('0x2f'),null),this[_0x2605('0x2d')]=null,this['_editorAnnotations']=new _0x9c4c3e(),this[_0x2605('0xa')]=_0x12e674(()=>{this[_0x2605('0x2d')]['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x2f557b=this[_0x2605('0x29')][_0x2605('0x24')][_0x2605('0x13')](_0x58065c),_0x449c32=this[_0x2605('0x29')][_0x2605('0x24')][_0x2605('0x13')](_0x270a16);_0x2f557b['register'](_0x2605('0x28'),this),_0x449c32['container']&&_0x2f557b[_0x2605('0x22')](_0x2605('0x28'));}[_0x2605('0x16')](_0x546d41){if(_0x546d41===this['activeAnnotation'])return;const _0x2c3dd7=this[_0x2605('0x29')][_0x2605('0x24')][_0x2605('0x13')](_0x270a16);_0x2c3dd7[_0x2605('0x6')]=_0x546d41;const _0x52e201=this[_0x2605('0x2f')];this[_0x2605('0x2f')]=_0x546d41,_0x2c3dd7[_0x2605('0xd')]({'blurredAnnotation':_0x52e201,'activatedAnnotation':this[_0x2605('0x2f')]});}[_0x2605('0x0')](_0x3ded13){this[_0x2605('0x2d')]=_0x3ded13;const _0x533b10=this[_0x2605('0x29')][_0x2605('0x24')]['get'](_0x270a16);if(_0x533b10[_0x2605('0x17')]=_0x3ded13,this['isAttached'])throw new _0x4c7481(_0x2605('0x27'),this);this[_0x2605('0x1b')]=!0x0,this[_0x2605('0xb')](_0x533b10,_0x2605('0x20'),()=>{this[_0x2605('0x1e')](),this[_0x2605('0xb')](_0x533b10,'change:container',_0x339000=>{_0x339000[_0x2605('0x2a')](),this['attach'](_0x3ded13);});}),_0x533b10[_0x2605('0x11')]({'viewClass':_0x2605('0x14')});const _0x3101f8=_0x5e736e=>{_0x5e736e['updateTargetRect'](),_0x533b10[_0x2605('0x5')](_0x5e736e);};for(const _0x3b40a6 of _0x3ded13)_0x3101f8(_0x3b40a6);this['listenTo'](_0x3ded13,_0x2605('0x1c'),(_0x2f0734,_0x5bdda7)=>{_0x3101f8(_0x5bdda7);}),this['listenTo'](_0x3ded13,'remove',(_0x45db34,_0x199728,_0x30b359)=>{_0x533b10[_0x2605('0xc')]({'removedAnnotation':_0x199728,'previousAnnotation':_0x3ded13[_0x2605('0x13')](_0x30b359-0x1),'nextAnnotation':_0x3ded13[_0x2605('0x13')](_0x30b359+0x1)}),_0x199728===this['activeAnnotation']&&this[_0x2605('0x16')](null);},{'priority':_0x2605('0x1f')}),this[_0x2605('0xb')](_0x3ded13,_0x2605('0x18'),(_0x5d9226,_0x3eabda)=>{this[_0x2605('0x16')](_0x3eabda);}),this[_0x2605('0xb')](_0x3ded13,_0x2605('0x2'),()=>{this[_0x2605('0x16')](null);});const _0x8e3dc5=this[_0x2605('0x29')]instanceof _0x3baa58?this[_0x2605('0x29')][_0x2605('0x7')]:new _0x9c4c3e([this[_0x2605('0x29')]]);for(const _0x38f8eb of _0x8e3dc5)this[_0x2605('0x3')](_0x38f8eb);this['listenTo'](_0x8e3dc5,_0x2605('0x1c'),(_0xa3f880,_0x5ade74)=>{this[_0x2605('0xb')](_0x5ade74,'ready',()=>{this[_0x2605('0x3')](_0x5ade74);});}),this[_0x2605('0xb')](_0x8e3dc5,_0x2605('0xe'),(_0x552692,_0x356181)=>{_0x356181[_0x2605('0x24')][_0x2605('0x4')]('EditorAnnotations')&&this[_0x2605('0x2c')](_0x356181[_0x2605('0x24')][_0x2605('0x13')]('EditorAnnotations'));}),window[_0x2605('0x26')](_0x2605('0xf'),this[_0x2605('0xa')]),this[_0x2605('0x2d')][_0x2605('0x15')]();}[_0x2605('0x1e')](){if(!this[_0x2605('0x1b')])throw new _0x4c7481(_0x2605('0x25'),this);this[_0x2605('0x16')](null);const _0x16bf5d=this['context']['plugins'][_0x2605('0x13')](_0x270a16);_0x16bf5d['_detachFromContainer'](this['annotations']),this[_0x2605('0x10')](_0x16bf5d),this[_0x2605('0x10')](this['annotations']),this[_0x2605('0x29')]instanceof _0x3baa58&&this[_0x2605('0x10')](this['context'][_0x2605('0x7')]);for(const _0x47e422 of Array[_0x2605('0x1')](this['_editorAnnotations']))this[_0x2605('0x2c')](_0x47e422);window[_0x2605('0x12')](_0x2605('0xf'),this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced'][_0x2605('0x19')](),this[_0x2605('0x2f')]=null,this['isAttached']=!0x1,this[_0x2605('0x2d')]=null;}[_0x2605('0x1a')](){this['isAttached']&&this['detach']();}[_0x2605('0x3')](_0x1ba855){const _0x13839e=_0x1ba855[_0x2605('0x24')][_0x2605('0x13')](_0x5e415a);if(!_0x13839e)return;const _0x2eeac6=()=>{const _0x377d3f=_0x13839e['getOrderedSelectedAnnotations']({'annotations':this[_0x2605('0x2d')],'activeAnnotation':this['activeAnnotation']});this[_0x2605('0x16')](_0x377d3f[0x0]||null);};this[_0x2605('0xb')](_0x13839e,_0x2605('0xd'),_0x2eeac6),this[_0x2605('0xb')](_0x13839e,_0x2605('0x2'),(_0x49b7db,{isAnnotationTracked:_0x518562})=>{this[_0x2605('0x2f')]&&_0x518562(this[_0x2605('0x2f')])&&this[_0x2605('0x16')](null);}),this['listenTo'](_0x13839e,_0x2605('0x8'),()=>{this[_0x2605('0xa')]();}),this[_0x2605('0xb')](this[_0x2605('0x2d')],_0x2605('0x2'),_0x9fb969=>{_0x13839e[_0x2605('0x2e')]()&&(_0x2eeac6(),_0x9fb969[_0x2605('0x23')]());},{'priority':_0x2605('0x1f')}),this[_0x2605('0x2b')][_0x2605('0x1c')](_0x13839e);}['_destroyEditorAnnotationsIntegration'](_0x5e77c7){this[_0x2605('0x10')](_0x5e77c7),this[_0x2605('0x2b')][_0x2605('0xe')](_0x5e77c7);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2343=['editor','backward','addMarker','_trimToContent','element','document','getLastMatchingPosition','model','item','isEnabled','selection','end','schema','isObject','getRanges','change','_hasContent','tableCell','$textProxy','execute','createRange','refresh','push','_itemIsContent','comment:'];(function(_0x2d7bdb,_0x2343a2){const _0x30068d=function(_0x431087){while(--_0x431087){_0x2d7bdb['push'](_0x2d7bdb['shift']());}};_0x30068d(++_0x2343a2);}(_0x2343,0x123));const _0x3006=function(_0x2d7bdb,_0x2343a2){_0x2d7bdb=_0x2d7bdb-0x0;let _0x30068d=_0x2343[_0x2d7bdb];return _0x30068d;};import{Command as _0x1b4b5c}from'ckeditor5/src/core';import{uid as _0x41d9c0}from'ckeditor5/src/utils';export default class q extends _0x1b4b5c{[_0x3006('0x5')](){const _0x4dccf4=this[_0x3006('0x9')][_0x3006('0x10')][_0x3006('0xe')]['selection'];for(const _0xbed002 of _0x4dccf4[_0x3006('0x17')]())if(this[_0x3006('0x0')](_0xbed002))return void(this['isEnabled']=!0x0);this[_0x3006('0x12')]=!0x1;}[_0x3006('0x3')]({threadId:_0x8c60bb=_0x41d9c0()}={}){const _0x78220b=this[_0x3006('0x9')][_0x3006('0x10')],_0x27a7c4=[];for(const _0x22957e of _0x78220b[_0x3006('0xe')][_0x3006('0x13')][_0x3006('0x17')]())this[_0x3006('0x0')](_0x22957e)&&_0x27a7c4[_0x3006('0x6')](this[_0x3006('0xc')](_0x22957e));_0x78220b[_0x3006('0x18')](_0x6484c3=>{for(const _0x3af4b4 of _0x27a7c4){const _0x38a3bb=_0x41d9c0()['substr'](0x1,0x5),_0x2c568e=_0x3006('0x8')+_0x8c60bb+':'+_0x38a3bb;_0x6484c3[_0x3006('0xb')](_0x2c568e,{'range':_0x3af4b4,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x3006('0x0')](_0x282618){for(const _0x32ec47 of _0x282618['getItems']())if(this[_0x3006('0x7')](_0x32ec47))return!0x0;return!0x1;}[_0x3006('0x7')](_0x5bbce9){return _0x5bbce9['is'](_0x3006('0x2'))||this[_0x3006('0x9')]['model'][_0x3006('0x15')][_0x3006('0x16')](_0x5bbce9)&&!_0x5bbce9['is'](_0x3006('0xd'),_0x3006('0x1'));}[_0x3006('0xc')](_0x4ff6e9){const _0x4a799a=_0x50f52a=>!this[_0x3006('0x7')](_0x50f52a[_0x3006('0x11')]),_0x495c7e=_0x4ff6e9['start'][_0x3006('0xf')](_0x4a799a),_0x4e1f73=_0x4ff6e9[_0x3006('0x14')]['getLastMatchingPosition'](_0x4a799a,{'direction':_0x3006('0xa')});return this[_0x3006('0x9')]['model'][_0x3006('0x4')](_0x495c7e,_0x4e1f73);}}
23
+ const _0x30df=['selection','change','execute','push','_hasContent','element','addMarker','editor','createRange','_trimToContent','substr','refresh','comment:','start','item','$textProxy','isEnabled','end','schema','getLastMatchingPosition','model','isObject','backward'];(function(_0xecd8e0,_0x30dfe5){const _0x5bb122=function(_0x2596ce){while(--_0x2596ce){_0xecd8e0['push'](_0xecd8e0['shift']());}};_0x5bb122(++_0x30dfe5);}(_0x30df,0xa2));const _0x5bb1=function(_0xecd8e0,_0x30dfe5){_0xecd8e0=_0xecd8e0-0x0;let _0x5bb122=_0x30df[_0xecd8e0];return _0x5bb122;};import{Command as _0x5c2c40}from'ckeditor5/src/core';import{uid as _0x20b055}from'ckeditor5/src/utils';export default class q extends _0x5c2c40{[_0x5bb1('0xa')](){const _0x70ea14=this[_0x5bb1('0x6')]['model']['document'][_0x5bb1('0x16')];for(const _0x5066f1 of _0x70ea14['getRanges']())if(this[_0x5bb1('0x3')](_0x5066f1))return void(this[_0x5bb1('0xf')]=!0x0);this[_0x5bb1('0xf')]=!0x1;}[_0x5bb1('0x1')]({threadId:_0x3ad169=_0x20b055()}={}){const _0x390027=this[_0x5bb1('0x6')]['model'],_0x1b4864=[];for(const _0xb6759e of _0x390027['document'][_0x5bb1('0x16')]['getRanges']())this['_hasContent'](_0xb6759e)&&_0x1b4864[_0x5bb1('0x2')](this[_0x5bb1('0x8')](_0xb6759e));_0x390027[_0x5bb1('0x0')](_0x494bb0=>{for(const _0x4ae0f2 of _0x1b4864){const _0x19397b=_0x20b055()[_0x5bb1('0x9')](0x1,0x5),_0x210eb0=_0x5bb1('0xb')+_0x3ad169+':'+_0x19397b;_0x494bb0[_0x5bb1('0x5')](_0x210eb0,{'range':_0x4ae0f2,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x5bb1('0x3')](_0x911844){for(const _0x255960 of _0x911844['getItems']())if(this['_itemIsContent'](_0x255960))return!0x0;return!0x1;}['_itemIsContent'](_0x5d5756){return _0x5d5756['is'](_0x5bb1('0xe'))||this['editor']['model'][_0x5bb1('0x11')][_0x5bb1('0x14')](_0x5d5756)&&!_0x5d5756['is'](_0x5bb1('0x4'),'tableCell');}[_0x5bb1('0x8')](_0x554a1c){const _0xd0340=_0x5e87f8=>!this['_itemIsContent'](_0x5e87f8[_0x5bb1('0xd')]),_0x4122f1=_0x554a1c[_0x5bb1('0xc')][_0x5bb1('0x12')](_0xd0340),_0x191aa0=_0x554a1c[_0x5bb1('0x10')]['getLastMatchingPosition'](_0xd0340,{'direction':_0x5bb1('0x15')});return this[_0x5bb1('0x6')][_0x5bb1('0x13')][_0x5bb1('0x7')](_0x4122f1,_0x191aa0);}}
@@ -1,9 +1,11 @@
1
1
  /**
2
2
  * @module comments/comments/commentsarchive
3
+ * @publicApi
3
4
  */
4
- import { ContextPlugin, type Context, type Editor, type ContextPluginDependencies } from 'ckeditor5/src/core';
5
+ import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core';
5
6
  import { Collection } from 'ckeditor5/src/utils';
6
- import { type CommentThread } from './commentsrepository';
7
+ import CommentsRepository, { type CommentThread } from './commentsrepository';
8
+ import Annotations from '../annotations/annotations';
7
9
  /**
8
10
  * This plugin handles all operations on resolved threads needed for the comments archive.
9
11
  */
@@ -12,11 +14,11 @@ export default class CommentsArchive extends ContextPlugin {
12
14
  /**
13
15
  * @inheritDoc
14
16
  */
15
- static get pluginName(): 'CommentsArchive';
17
+ static get pluginName(): "CommentsArchive";
16
18
  /**
17
19
  * @inheritDoc
18
20
  */
19
- static get requires(): ContextPluginDependencies;
21
+ static get requires(): readonly [typeof CommentsRepository, typeof Annotations];
20
22
  constructor(context: Context | Editor);
21
23
  /**
22
24
  * @inheritDoc