@ckeditor/ckeditor5-comments 38.0.0 → 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 _0x4cba=['_balloon','_selectedAnnotations','activeAnnotation','isActive','switchTo','visibleView','updatePosition','getOrderedSelectedAnnotations','every','editor','context','width','requires','change:isFocused','hasActive','add','change:height','push','getFirstRange','document','_setSelectedAnnotations','hasView','annotations','plugins','change:visibleView','find','_getBalloonTargetForAnnotation','refresh','_removeAnnotationFromBalloon','blur','attach','view','delete','selection','setActiveAnnotation','_addedAnnotations','_closeAnnotation','inline','_addAnnotationToBalloon','getClientRects','init','_forceRefresh','fromRect','includes','detach','addObserver','_manuallyClosed','register','set','Esc','map','remove','target','right','domConverter','getByView','clear','showStack','focusTracker','get','isFocused','afterInit','length','bottom','stopListening','has','isAttached','editing','collapse','pluginName','listenTo','viewRangeToDom','focus'];(function(_0x374430,_0x4cba49){const _0xd34594=function(_0x5b549d){while(--_0x5b549d){_0x374430['push'](_0x374430['shift']());}};_0xd34594(++_0x4cba49);}(_0x4cba,0x14c));const _0xd345=function(_0x374430,_0x4cba49){_0x374430=_0x374430-0x0;let _0xd34594=_0x4cba[_0x374430];return _0xd34594;};import{Plugin as _0x37231c}from'ckeditor5/src/core';import _0x46c468 from'./annotationsuis';import _0x43d6d2 from'./editorannotations';import{ContextualBalloon as _0x5028c7}from'ckeditor5/src/ui';import{MouseObserver as _0x50787f}from'ckeditor5/src/engine';import{CKEditorError as _0x52cf22,Rect as _0x40040d}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x37231c{static get[_0xd345('0x2d')](){return[_0x43d6d2,_0x5028c7,_0x46c468];}static get[_0xd345('0x1d')](){return'InlineAnnotations';}constructor(_0x2e2327){super(_0x2e2327),_0x2e2327[_0xd345('0x1b')][_0xd345('0x40')][_0xd345('0x5')](_0x50787f),this[_0xd345('0x1a')]=!0x1,this['set'](_0xd345('0x23'),null),this[_0xd345('0x37')]=null,this[_0xd345('0x6')]=new Set(),this['_balloon']=_0x2e2327[_0xd345('0x38')][_0xd345('0x13')](_0x5028c7),this['_addedAnnotations']=new Set(),this[_0xd345('0x22')]=[],this[_0xd345('0x1')]=!0x1;}[_0xd345('0x0')](){const _0x376546=this[_0xd345('0x2a')]['plugins']['get'](_0x46c468);_0x376546['context']===this[_0xd345('0x2a')]&&(_0x376546[_0xd345('0x7')]('inline',this),this['editor']['keystrokes'][_0xd345('0x8')](_0xd345('0x9'),(_0x403350,_0x1f2534)=>{const _0x10b4e8=this[_0xd345('0x21')];if(this['isAttached']&&_0x10b4e8[_0xd345('0x26')]){const _0x1c5945=this[_0xd345('0x37')]['getByView'](_0x10b4e8['visibleView']);_0x1c5945&&this[_0xd345('0x45')](_0x1c5945),_0x1f2534();}}));}[_0xd345('0x15')](){const _0x190a2f=this[_0xd345('0x2a')][_0xd345('0x38')][_0xd345('0x13')](_0x46c468);_0x190a2f['context']===this[_0xd345('0x2a')]&&(_0x190a2f[_0xd345('0x2f')]()||_0x190a2f[_0xd345('0x25')](_0xd345('0x46')));}[_0xd345('0x43')](_0xc4ad4f){_0xc4ad4f!==this[_0xd345('0x23')]&&(this['activeAnnotation']&&(this[_0xd345('0x23')][_0xd345('0x24')]=!0x1),_0xc4ad4f&&this[_0xd345('0x2a')]['ui'][_0xd345('0x12')][_0xd345('0x14')]&&(this[_0xd345('0x37')]['has'](_0xc4ad4f)&&this[_0xd345('0x47')](_0xc4ad4f,!0x0),_0xc4ad4f['isActive']=!0x0),_0xc4ad4f||this[_0xd345('0x35')]([]),this[_0xd345('0x23')]=_0xc4ad4f);}[_0xd345('0x3f')](_0x594ad6){this['annotations']=_0x594ad6;const _0x185534=this[_0xd345('0x2a')][_0xd345('0x38')][_0xd345('0x13')](_0x46c468),_0x8931f=this[_0xd345('0x21')];if(this[_0xd345('0x1a')])throw new _0x52cf22('inlineannotations-attach-already-attached',this);if(_0x185534[_0xd345('0x2b')]!==this[_0xd345('0x2a')])throw new _0x52cf22('inlineannotations-not-allowed-with-context',this);const _0x20622d=this['editor']['plugins'][_0xd345('0x13')](_0x43d6d2);this[_0xd345('0x1e')](_0x20622d,_0xd345('0x3c'),()=>{const _0x3bc294=_0x20622d[_0xd345('0x28')]({'annotations':this[_0xd345('0x37')],'activeAnnotation':this[_0xd345('0x23')]});var _0x395351,_0x396fff;!this[_0xd345('0x1')]&&(_0x395351=_0x3bc294,_0x396fff=this['_selectedAnnotations'],_0x395351[_0xd345('0x16')]===_0x396fff['length']&&_0x395351[_0xd345('0x29')](_0x352b9f=>_0x396fff[_0xd345('0x3')](_0x352b9f)))||(this[_0xd345('0x1')]=!0x1,this['_setSelectedAnnotations'](_0x3bc294),this[_0xd345('0x43')](_0x3bc294[0x0]||null));}),this['listenTo'](_0x20622d,_0xd345('0x3e'),(_0x399590,{isAnnotationTracked:_0x5a3590})=>{this[_0xd345('0x23')]&&_0x5a3590(this[_0xd345('0x23')])&&(this[_0xd345('0x35')]([]),this['setActiveAnnotation'](null));}),this[_0xd345('0x1e')](this[_0xd345('0x2a')]['ui'][_0xd345('0x12')],_0xd345('0x2e'),(_0x4cad91,_0x2438d2,_0x348aab)=>{_0x348aab||this[_0xd345('0x43')](null);}),this['listenTo'](_0x594ad6,'remove',(_0x43d838,_0x5d51f5)=>{this[_0xd345('0x3d')](_0x5d51f5),_0x5d51f5===this[_0xd345('0x23')]&&this[_0xd345('0x43')](null);}),this[_0xd345('0x1e')](_0x8931f,_0xd345('0x39'),(_0x4ab15e,_0x5625c1,_0x27bc2e,_0x1344b7)=>{_0x1344b7&&this[_0xd345('0x18')](_0x1344b7);const _0x58919f=_0x594ad6[_0xd345('0xf')](_0x27bc2e);_0x27bc2e&&_0x58919f&&(this[_0xd345('0x1e')](_0x27bc2e,_0xd345('0x31'),()=>{_0x8931f[_0xd345('0x27')]();}),this[_0xd345('0x1e')](_0x27bc2e,_0xd345('0x9'),()=>{this['_closeAnnotation'](_0x58919f),this['editor']['editing'][_0xd345('0x40')][_0xd345('0x20')]();}),this[_0xd345('0x23')]!==_0x58919f&&this[_0xd345('0x43')](_0x58919f));}),this['listenTo'](this[_0xd345('0x2a')]['ui'],'update',()=>{_0x8931f[_0xd345('0x26')]&&(_0x594ad6['getByView'](_0x8931f['visibleView'])&&_0x8931f[_0xd345('0x27')]());}),this[_0xd345('0x1e')](this[_0xd345('0x2a')][_0xd345('0x1b')][_0xd345('0x40')][_0xd345('0x34')],'mousedown',()=>{this[_0xd345('0x1')]=!0x0,this[_0xd345('0x6')][_0xd345('0x10')]();}),this['editor'][_0xd345('0x1b')]['view'][_0xd345('0x34')]['selection']['editableElement']&&this[_0xd345('0x2a')][_0xd345('0x1b')][_0xd345('0x40')][_0xd345('0x20')](),this['isAttached']=!0x0;}[_0xd345('0x4')](){if(!this[_0xd345('0x1a')])throw new _0x52cf22('inlineannotations-detach-not-attached',this);this[_0xd345('0x43')](null);for(const _0x485e11 of this[_0xd345('0x44')])this[_0xd345('0x3d')](_0x485e11);this['stopListening'](),this[_0xd345('0x1a')]=!0x1,this[_0xd345('0x37')]=null;}['destroy'](){this[_0xd345('0x1a')]&&this[_0xd345('0x4')]();}[_0xd345('0x35')](_0x5a249d){for(const _0x1f1bee of this[_0xd345('0x22')])_0x5a249d[_0xd345('0x3')](_0x1f1bee)||this[_0xd345('0x6')][_0xd345('0x41')](_0x1f1bee);for(const _0x295a62 of this[_0xd345('0x37')])_0x5a249d[_0xd345('0x3')](_0x295a62)||this[_0xd345('0x3d')](_0x295a62);if(this['editor']['ui'][_0xd345('0x12')][_0xd345('0x14')])for(const _0x2be6a5 of _0x5a249d)this[_0xd345('0x47')](_0x2be6a5);this['_selectedAnnotations']=_0x5a249d;}[_0xd345('0x47')](_0x5d49e3,_0x83cb90=!0x1){this['_manuallyClosed'][_0xd345('0x19')](_0x5d49e3)||(this[_0xd345('0x44')][_0xd345('0x19')](_0x5d49e3)||this[_0xd345('0x21')][_0xd345('0x36')](_0x5d49e3[_0xd345('0x40')])||(this['_addedAnnotations'][_0xd345('0x30')](_0x5d49e3),this[_0xd345('0x21')][_0xd345('0x30')]({'stackId':_0x5d49e3[_0xd345('0x40')]['id'],'view':_0x5d49e3[_0xd345('0x40')],'position':{'target':()=>this[_0xd345('0x3b')](_0x5d49e3)}})),_0x83cb90&&this[_0xd345('0x21')][_0xd345('0x11')](_0x5d49e3[_0xd345('0x40')]['id']));}[_0xd345('0x3b')](_0x45b627){const _0x56e280=_0x45b627[_0xd345('0xc')],_0xe23ef4=this[_0xd345('0x2a')][_0xd345('0x1b')][_0xd345('0x40')],_0x58f339=_0xe23ef4['document'][_0xd345('0x42')][_0xd345('0x33')](),_0x5bf4a6=_0xe23ef4[_0xd345('0xe')][_0xd345('0x1f')](_0x58f339);if(_0x5bf4a6[_0xd345('0x1c')](!0x0),_0x56e280){if(_0x56e280 instanceof _0x40040d)return _0x56e280;let _0x1ffd9e=[];for(const _0x2e3fdf of _0x56e280)_0x1ffd9e[_0xd345('0x32')](...(_0x456239=_0x2e3fdf[_0xd345('0x48')](),Array['from'](_0x456239)[_0xd345('0xa')](DOMRect[_0xd345('0x2')])));_0x1ffd9e=function(_0x48cca0){const _0x497c4f=[];let _0x39701c=_0x48cca0[0x0];for(let _0x27a6b7=0x1;_0x27a6b7<_0x48cca0['length'];_0x27a6b7++)F(_0x39701c,_0x48cca0[_0x27a6b7])?_0x39701c[_0xd345('0x2c')]+=_0x48cca0[_0x27a6b7]['width']:(_0x497c4f[_0xd345('0x32')](_0x39701c),_0x39701c=_0x48cca0[_0x27a6b7]);return _0x497c4f[_0xd345('0x32')](_0x39701c),_0x497c4f;}(_0x1ffd9e);const _0x57200a=_0x5bf4a6['getBoundingClientRect']();return _0x1ffd9e[_0xd345('0x3a')](_0x4b3612=>_0x4b3612['top']<=_0x57200a['top']&&_0x4b3612[_0xd345('0x17')]>=_0x57200a['bottom']&&_0x4b3612['left']<=_0x57200a['left']&&_0x4b3612[_0xd345('0xd')]>=_0x57200a[_0xd345('0xd')])||_0x1ffd9e[0x0];}var _0x456239;return _0x45b627['targetRect']||_0x5bf4a6;}[_0xd345('0x3d')](_0x36fd16){this[_0xd345('0x44')][_0xd345('0x19')](_0x36fd16)&&this['_balloon'][_0xd345('0x36')](_0x36fd16[_0xd345('0x40')])&&(this['_addedAnnotations'][_0xd345('0x41')](_0x36fd16),this[_0xd345('0x21')][_0xd345('0xb')](_0x36fd16[_0xd345('0x40')]));}[_0xd345('0x45')](_0x12dff2){this[_0xd345('0x6')][_0xd345('0x30')](_0x12dff2),this['_removeAnnotationFromBalloon'](_0x12dff2);}}function F(_0x2d3750,_0x32abcb){return _0x2d3750['top']===_0x32abcb['top']&&_0x2d3750[_0xd345('0x17')]===_0x32abcb[_0xd345('0x17')]&&_0x2d3750[_0xd345('0xd')]===_0x32abcb['left'];}
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 _0x2137=['from','detach','init','isVisible','add','_detachFromContainer','register','_showBalloon','delete','Esc','esc','includes','first','get','stop','defaultPositions','_updateBalloonPosition','execute','_refreshPositioning','isDirty','narrowsidebar-attach-already-attached','set','has','setActiveAnnotation','balloonPanelView','_destroyEditorAnnotationsIntegration','preventClosingBalloon','focus','clear','annotations','stopListening','content','context','northArrowSouthEast','attach','plugins','_refreshPositioningDebounced','_hideBalloon','view','getSidebarItemView','create','values','addAnnotation','high','bodyCollection','_editorAnnotations','isAttached','element','contains','preventDefault','locale','uiUpdate','remove','blur','_detachListeners','length','number','NarrowSidebar','stopPropagation','getOrderedSelectedAnnotations','_attachListeners','editors','addEventListener','_setSelectedAnnotations','attachToDom','rearrange','_domEmitter','target','resize','_manuallyClosedAnnotationViews','cancel','pluginName','activeAnnotation','_integrateWithEditorAnnotations','keyCode','change:height','bind','hasDomSelection','mousedown','ck-sidebar--narrow','southArrowNorthEast','refresh','southArrowNorthWest','_selectedAnnotations','EditorAnnotations','_annotationToNarrowView','_annotations','northArrowSouthWest','listenTo','off','destroy'];(function(_0x2ac46f,_0x21377c){const _0x2c59aa=function(_0x3dbc4a){while(--_0x3dbc4a){_0x2ac46f['push'](_0x2ac46f['shift']());}};_0x2c59aa(++_0x21377c);}(_0x2137,0x117));const _0x2c59=function(_0x2ac46f,_0x21377c){_0x2ac46f=_0x2ac46f-0x0;let _0x2c59aa=_0x2137[_0x2ac46f];return _0x2c59aa;};import{ContextPlugin as _0x44df72,Context as _0x56429d}from'ckeditor5/src/core';import _0x2b6015 from'./annotationsuis';import _0x3742f5 from'./sidebar';import _0x1d27c0 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x27c844,BodyCollection as _0x6d18b2}from'ckeditor5/src/ui';import{CKEditorError as _0x400160,DomEmitterMixin as _0x350194,keyCodes as _0x4ff0b7,Collection as _0x4bbacb}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0xf867ea}from'lodash-es';import _0x2da07c from'./editorannotations';export default class s extends _0x44df72{static get['requires'](){return[_0x3742f5,_0x2b6015];}static get[_0x2c59('0x41')](){return _0x2c59('0x33');}constructor(_0x59e4f4){super(_0x59e4f4),this[_0x2c59('0x28')]=!0x1,this[_0x2c59('0x3f')]=new Set(),this[_0x2c59('0x3c')]=Object[_0x2c59('0x22')](_0x350194),this['_annotationToNarrowView']=new Map(),this[_0x2c59('0xf')](_0x2c59('0x42'),null),this[_0x2c59('0x17')]=null,this[_0x2c59('0x4d')]=[],this[_0x2c59('0x27')]=new _0x4bbacb(),this[_0x2c59('0x1e')]=_0xf867ea(()=>{this[_0x2c59('0xc')]();},0xfa,{'leading':!0x1});}[_0x2c59('0x57')](){this[_0x2c59('0x1a')][_0x2c59('0x1d')]['get'](_0x2b6015)[_0x2c59('0x0')]('narrowSidebar',this),this[_0x2c59('0x26')]=new _0x6d18b2(this['context']['locale']),this['balloonPanelView']=new _0x27c844(this[_0x2c59('0x1a')][_0x2c59('0x2c')]),this[_0x2c59('0x26')][_0x2c59('0x3a')](),this[_0x2c59('0x26')][_0x2c59('0x59')](this[_0x2c59('0x12')]);}['attach'](_0x5aadd8){this['annotations']=_0x5aadd8;const _0x28f103=this[_0x2c59('0x1a')]['plugins'][_0x2c59('0x7')](_0x3742f5),_0x453ff5=this[_0x2c59('0x12')];if(_0x28f103[_0x2c59('0x50')]=_0x5aadd8,this[_0x2c59('0x28')])throw new _0x400160(_0x2c59('0xe'),this);this[_0x2c59('0x28')]=!0x0,this[_0x2c59('0x52')](_0x28f103,'set:container',()=>{this[_0x2c59('0x56')](),this['listenTo'](_0x28f103,'change:container',_0x25c380=>{_0x25c380[_0x2c59('0x53')](),this[_0x2c59('0x1c')](_0x5aadd8);});}),_0x28f103['_attachToContainer']({'viewClass':_0x2c59('0x49'),'spaceBetweenItems':0x5});const _0xf310f5=_0x4b8526=>{const _0x1c243e=new _0x1d27c0(this['context'][_0x2c59('0x2c')]);_0x28f103[_0x2c59('0x24')](_0x4b8526,_0x1c243e),this['_annotationToNarrowView'][_0x2c59('0xf')](_0x4b8526,_0x1c243e),_0x1c243e[_0x2c59('0x46')](_0x2c59('0xd'),'annotationType',_0x2c59('0x32'))['to'](_0x4b8526[_0x2c59('0x20')],_0x2c59('0xd'),'type',_0x2c59('0x31')),_0x1c243e['on'](_0x2c59('0xb'),()=>{this[_0x2c59('0x3f')][_0x2c59('0x16')](),_0x453ff5['content'][_0x2c59('0x6')]!==_0x4b8526[_0x2c59('0x20')]?(this[_0x2c59('0x1')](_0x4b8526),_0x4b8526[_0x2c59('0x20')][_0x2c59('0x29')][_0x2c59('0x15')](),this[_0x2c59('0x11')](_0x4b8526)):this[_0x2c59('0x11')](null);});};for(const _0x52e471 of _0x5aadd8)_0xf310f5(_0x52e471);this[_0x2c59('0x52')](_0x5aadd8,_0x2c59('0x59'),(_0x4f5878,_0x1a0bd0)=>{_0xf310f5(_0x1a0bd0);}),this[_0x2c59('0x52')](_0x5aadd8,_0x2c59('0x2e'),(_0xfdb0bb,_0x31ffd9,_0x4f37e0)=>{this['_annotationToNarrowView'][_0x2c59('0x7')](_0x31ffd9)['destroy'](),this['_annotationToNarrowView']['delete'](_0x31ffd9),_0x28f103[_0x2c59('0x3b')]({'removedAnnotation':_0x31ffd9,'previousAnnotation':_0x5aadd8[_0x2c59('0x7')](_0x4f37e0-0x1),'nextAnnotation':_0x5aadd8[_0x2c59('0x7')](_0x4f37e0+0x1)}),_0x31ffd9===this[_0x2c59('0x42')]&&this['setActiveAnnotation'](null);},{'priority':'low'}),this[_0x2c59('0x52')](_0x5aadd8,_0x2c59('0x15'),(_0x16b16b,_0x3c405f)=>{this[_0x2c59('0x11')](_0x3c405f);}),this[_0x2c59('0x52')](_0x5aadd8,_0x2c59('0x2f'),()=>{this['setActiveAnnotation'](null);}),this['_domEmitter'][_0x2c59('0x52')](document,'keydown',(_0x4b174e,_0x2c3c91)=>{_0x2c3c91[_0x2c59('0x44')]===_0x4ff0b7[_0x2c59('0x4')]&&_0x453ff5[_0x2c59('0x58')]&&(this['_manuallyClosedAnnotationViews'][_0x2c59('0x59')](_0x453ff5['content'][_0x2c59('0x6')]),this['_hideBalloon'](),_0x2c3c91[_0x2c59('0x34')](),_0x2c3c91[_0x2c59('0x2b')]());}),this[_0x2c59('0x3c')]['listenTo'](document,_0x2c59('0x48'),(_0x1461a4,_0x2374a7)=>{const _0x41ffcb=_0x2374a7['target'];_0x453ff5['isVisible']&&_0x453ff5['element']['contains'](_0x41ffcb)||_0x28f103['view']['element'][_0x2c59('0x2a')](_0x41ffcb)||_0x1461a4[_0x2c59('0x14')]||(this[_0x2c59('0x3f')][_0x2c59('0x16')](),this[_0x2c59('0x1f')](),this[_0x2c59('0x11')](null));});const _0x5c0237=this[_0x2c59('0x1a')]instanceof _0x56429d?this[_0x2c59('0x1a')][_0x2c59('0x37')]:new _0x4bbacb([this[_0x2c59('0x1a')]]);for(const _0x45093c of _0x5c0237)this[_0x2c59('0x43')](_0x45093c);this['listenTo'](_0x5c0237,'add',(_0x1a2358,_0x2a8e4a)=>{this[_0x2c59('0x52')](_0x2a8e4a,'ready',()=>{this[_0x2c59('0x43')](_0x2a8e4a);});}),this[_0x2c59('0x52')](_0x5c0237,'remove',(_0x51890d,_0x44a783)=>{_0x44a783['plugins']['has'](_0x2c59('0x4e'))&&this[_0x2c59('0x13')](_0x44a783[_0x2c59('0x1d')]['get'](_0x2c59('0x4e')));}),window[_0x2c59('0x38')](_0x2c59('0x3e'),this[_0x2c59('0x1e')]),this['_refreshPositioning']();}[_0x2c59('0x11')](_0x4259e8){if(_0x4259e8===this[_0x2c59('0x42')])return;const _0x5d4f00=this[_0x2c59('0x1a')][_0x2c59('0x1d')][_0x2c59('0x7')](_0x3742f5);if(_0x5d4f00[_0x2c59('0x4b')]({'blurredAnnotation':this[_0x2c59('0x42')],'activatedAnnotation':_0x4259e8,'disableAnimationOnActivatedAnnotation':!0x0}),_0x4259e8)_0x5d4f00[_0x2c59('0x21')](_0x4259e8)?this[_0x2c59('0x1')](_0x4259e8):this[_0x2c59('0x1f')]();else this[_0x2c59('0x1f')]();this[_0x2c59('0x42')]=_0x4259e8;}[_0x2c59('0x56')](){if(!this[_0x2c59('0x28')])throw new _0x400160('narrowsidebar-detach-not-attached',this);this[_0x2c59('0x11')](null);const _0x480eed=this[_0x2c59('0x1a')]['plugins'][_0x2c59('0x7')](_0x3742f5);this['_hideBalloon'](),Array[_0x2c59('0x55')](this[_0x2c59('0x4f')][_0x2c59('0x23')](),_0x95d0b5=>_0x95d0b5[_0x2c59('0x54')]()),this['_annotationToNarrowView'][_0x2c59('0x16')](),_0x480eed[_0x2c59('0x5a')](this[_0x2c59('0x17')]),this[_0x2c59('0x18')](),this[_0x2c59('0x3c')][_0x2c59('0x18')](),this[_0x2c59('0x1a')]instanceof _0x56429d&&this['stopListening'](this['context'][_0x2c59('0x37')]);for(const _0x463769 of Array[_0x2c59('0x55')](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x463769);window['removeEventListener'](_0x2c59('0x3e'),this[_0x2c59('0x1e')]),this[_0x2c59('0x1e')][_0x2c59('0x40')](),this[_0x2c59('0x4d')]=[],this[_0x2c59('0x28')]=!0x1,this['annotations']=null;}[_0x2c59('0x54')](){this[_0x2c59('0x28')]&&this[_0x2c59('0x56')](),this[_0x2c59('0x26')]['detachFromDom']();}[_0x2c59('0x43')](_0x280a21){const _0x4946dd=_0x280a21[_0x2c59('0x1d')][_0x2c59('0x7')](_0x2da07c),_0x1f59ab=this[_0x2c59('0x1a')][_0x2c59('0x1d')][_0x2c59('0x7')](_0x3742f5),_0x4a4254=this[_0x2c59('0x17')],_0x172ad3=this[_0x2c59('0x12')],_0x35a9e9=()=>{const _0x5d9600=_0x4946dd[_0x2c59('0x35')]({'annotations':this[_0x2c59('0x17')],'activeAnnotation':this[_0x2c59('0x42')]});this[_0x2c59('0x39')](_0x5d9600),this['setActiveAnnotation'](_0x5d9600[0x0]||null);};this[_0x2c59('0x52')](_0x4946dd,'refresh',_0x35a9e9),this[_0x2c59('0x52')](_0x4946dd,_0x2c59('0x2f'),(_0x2e78b5,{isAnnotationTracked:_0x1c7ca5})=>{this[_0x2c59('0x42')]&&_0x1c7ca5(this[_0x2c59('0x42')])&&(this['_setSelectedAnnotations']([]),this[_0x2c59('0x11')](null));}),this[_0x2c59('0x52')](_0x4946dd,_0x2c59('0x2d'),()=>{this['_refreshPositioningDebounced']();}),this[_0x2c59('0x52')](_0x4a4254,_0x2c59('0x2f'),_0x5e4b61=>{_0x4946dd[_0x2c59('0x47')]()&&_0x5e4b61[_0x2c59('0x8')]();},{'priority':_0x2c59('0x25')}),this[_0x2c59('0x52')](this['_domEmitter'],_0x2c59('0x48'),(_0x4b1c0a,_0x1786a0)=>{const _0x14dd6=_0x1786a0[_0x2c59('0x3d')];_0x172ad3['isVisible']&&_0x172ad3[_0x2c59('0x29')][_0x2c59('0x2a')](_0x14dd6)||_0x1f59ab[_0x2c59('0x20')][_0x2c59('0x29')][_0x2c59('0x2a')](_0x14dd6)||this[_0x2c59('0x42')]&&_0x4946dd[_0x2c59('0x47')]()&&(_0x35a9e9(),_0x4b1c0a['preventClosingBalloon']=!0x0);},{'priority':_0x2c59('0x25')}),this[_0x2c59('0x27')][_0x2c59('0x59')](_0x4946dd);}[_0x2c59('0x13')](_0x137e4b){_0x137e4b&&(this[_0x2c59('0x18')](_0x137e4b),this[_0x2c59('0x27')][_0x2c59('0x2e')](_0x137e4b));}['_setSelectedAnnotations'](_0x3039f7){for(const _0x4ae349 of this['_selectedAnnotations'])_0x3039f7[_0x2c59('0x5')](_0x4ae349)||this[_0x2c59('0x3f')][_0x2c59('0x2')](_0x4ae349[_0x2c59('0x20')]);this['_selectedAnnotations']=_0x3039f7;}[_0x2c59('0xc')](){const _0x53ef82=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x53ef82[_0x2c59('0x58')]&&this[_0x2c59('0xa')]();}[_0x2c59('0x1')](_0x7b27d5){if(this[_0x2c59('0x3f')]['has'](_0x7b27d5[_0x2c59('0x20')]))return;const _0x4979e2=this[_0x2c59('0x12')]['content'][_0x2c59('0x6')];_0x4979e2!==_0x7b27d5[_0x2c59('0x20')]?(_0x4979e2&&this[_0x2c59('0x30')](_0x4979e2),this[_0x2c59('0x36')](_0x7b27d5[_0x2c59('0x20')]),this[_0x2c59('0x12')][_0x2c59('0x19')][_0x2c59('0x16')](),this[_0x2c59('0x12')]['content'][_0x2c59('0x59')](_0x7b27d5[_0x2c59('0x20')]),this[_0x2c59('0xa')]()):this[_0x2c59('0xa')]();}[_0x2c59('0xa')](){const _0x54d922=this[_0x2c59('0x12')][_0x2c59('0x19')]['first'],_0x339e2f=_0x54d922&&this[_0x2c59('0x17')]['getByView'](_0x54d922);if(!_0x339e2f||!this[_0x2c59('0x4f')][_0x2c59('0x10')](_0x339e2f))return;const _0x41e83b=this[_0x2c59('0x4f')][_0x2c59('0x7')](_0x339e2f)[_0x2c59('0x29')],_0x4513d4=function(){const _0x23d780=_0x27c844[_0x2c59('0x9')];return[_0x23d780[_0x2c59('0x4a')],_0x23d780[_0x2c59('0x1b')],_0x23d780['southArrowNorth'],_0x23d780['northArrowSouth'],_0x23d780[_0x2c59('0x4c')],_0x23d780[_0x2c59('0x51')]];}();this['balloonPanelView']['pin']({'target':_0x41e83b,'positions':_0x4513d4});}[_0x2c59('0x1f')](){const _0x3296e4=this[_0x2c59('0x12')],_0x32112d=_0x3296e4[_0x2c59('0x19')][_0x2c59('0x6')];_0x32112d&&(this[_0x2c59('0x30')](_0x32112d),_0x3296e4['unpin'](),_0x3296e4['content'][_0x2c59('0x16')]());}[_0x2c59('0x36')](_0x37461e){this[_0x2c59('0x52')](_0x37461e,_0x2c59('0x45'),()=>this[_0x2c59('0xa')]()),this[_0x2c59('0x52')](_0x37461e,_0x2c59('0x3'),(_0x3557d4,_0x1bfa44)=>{this[_0x2c59('0x3f')]['add'](_0x37461e),this[_0x2c59('0x1f')](),_0x1bfa44();});}[_0x2c59('0x30')](_0x2f222b){this['stopListening'](_0x2f222b);}}
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 _0x55cd=['_annotationToSidebarItemView','change:bottom','context','last','length','appendChild','_destroySidebarItemView','Sidebar','_getItemAfter','remove','_recalculateBuffer','change:targetRect','unbind','getSidebarItemView','_alignAfterItem','_setItemTop','listenTo','_annotations','config','element','clear','_updateLastItem','init','updateHeight','destroy','_alignForTopChange','refresh','isAnimationDisabled','bottom','render','bind','sidebar-attachtocontainer-missing-container','_getTargetTop','rearrange','content','_createSidebarView','set','_alignToTargetRect','sidebar.preventScrollOutOfView','change:_lastItem','pluginName','define','locale','delete','_lastItem','minHeight','_recalculate','max','add','top','list','_activeAnnotation','getIndex','_attachToContainer','targetRect','_alignBeforeItem','_alignForBottomChange','target','nodeType','sidebar.container','_getItemBefore','_sidebarItemViewToAnnotation','_spaceBetweenItems','setContainer','_targetTop','container','get','view'];(function(_0x2c35e4,_0x55cd52){const _0x1e0b0d=function(_0x34711f){while(--_0x34711f){_0x2c35e4['push'](_0x2c35e4['shift']());}};_0x1e0b0d(++_0x55cd52);}(_0x55cd,0x11d));const _0x1e0b=function(_0x2c35e4,_0x55cd52){_0x2c35e4=_0x2c35e4-0x0;let _0x1e0b0d=_0x55cd[_0x2c35e4];return _0x1e0b0d;};import{ContextPlugin as _0x4174bf}from'ckeditor5/src/core';import{Rect as _0x303c57,CKEditorError as _0x13cbb9}from'ckeditor5/src/utils';import _0x436c5d from'./view/sidebarview';import _0x793b47 from'./view/sidebaritemview';export default class z extends _0x4174bf{static get[_0x1e0b('0x1b')](){return _0x1e0b('0x3e');}constructor(_0x7b6b8e){super(_0x7b6b8e),this['set']('_lastItem',void 0x0),this[_0x1e0b('0x36')]=this['_createSidebarView'](),this[_0x1e0b('0x17')]('container',null),this['_spaceBetweenItems']=0x19,this[_0x1e0b('0x30')]=new Map(),this[_0x1e0b('0x37')]=new Map(),this[_0x1e0b('0x39')]['config'][_0x1e0b('0x1c')]('sidebar.preventScrollOutOfView',!0x1),this[_0x1e0b('0x4')]=null,this['_activeAnnotation']=null,this[_0x1e0b('0x41')]=[];}[_0x1e0b('0x9')](){const _0x34873e=this[_0x1e0b('0x39')]['config']['get'](_0x1e0b('0x2e'));_0x34873e&&this[_0x1e0b('0x32')](_0x34873e);}[_0x1e0b('0x32')](_0x5abfb0){if(!y(_0x5abfb0))throw new _0x13cbb9('sidebar-setcontainer-invalid-element');this['container']=_0x5abfb0;}[_0x1e0b('0x28')]({viewClass:_0x7ffebb='',spaceBetweenItems:_0x3ea3d1=0x19}={}){if(!y(this[_0x1e0b('0x34')]))throw new _0x13cbb9(_0x1e0b('0x12'),this);this[_0x1e0b('0x34')][_0x1e0b('0x3c')](this[_0x1e0b('0x36')][_0x1e0b('0x6')]),this[_0x1e0b('0x36')]['class']=_0x7ffebb,this[_0x1e0b('0x31')]=_0x3ea3d1;}[_0x1e0b('0x14')]({removedAnnotation:_0x1c69d1,previousAnnotation:_0x451ea3,nextAnnotation:_0x5c088c}){const _0x479d4f=this[_0x1e0b('0x0')](_0x1c69d1);this[_0x1e0b('0x36')][_0x1e0b('0x25')][_0x1e0b('0x40')](_0x479d4f),this[_0x1e0b('0x3d')](_0x1c69d1),_0x451ea3&&this[_0x1e0b('0x18')](this[_0x1e0b('0x0')](_0x451ea3)),_0x5c088c&&this[_0x1e0b('0x18')](this[_0x1e0b('0x0')](_0x5c088c)),this[_0x1e0b('0x8')]();}[_0x1e0b('0xd')]({blurredAnnotation:_0x3a815c,activatedAnnotation:_0x49f544,disableAnimationOnActivatedAnnotation:_0x292980}){if(this['_activeAnnotation']=_0x49f544,_0x3a815c){_0x3a815c['isActive']=!0x1;const _0xcc6d39=this['getSidebarItemView'](_0x3a815c);_0xcc6d39&&_0x292980&&(_0xcc6d39[_0x1e0b('0xe')]=!0x1);}if(_0x49f544){const _0x26f8d0=this[_0x1e0b('0x0')](_0x49f544);_0x26f8d0&&(_0x49f544['isActive']=!0x0,_0x292980&&(_0x26f8d0[_0x1e0b('0xe')]=!0x0,_0x26f8d0[_0x1e0b('0x24')]+=0x1),this[_0x1e0b('0x18')](_0x26f8d0));}}['_detachFromContainer'](_0x144bae){if(this['stopListening'](),this[_0x1e0b('0x36')]['element'][_0x1e0b('0x40')](),_0x144bae)for(const _0x4a8287 of _0x144bae)this['_destroySidebarItemView'](_0x4a8287);this[_0x1e0b('0x36')][_0x1e0b('0x25')][_0x1e0b('0x7')](),this[_0x1e0b('0x36')]['class']='',this[_0x1e0b('0x1f')]=null;}['addAnnotation'](_0x27a9e0,_0x59f5d7){_0x59f5d7||(_0x59f5d7=_0x27a9e0[_0x1e0b('0x36')]);const _0x40815b=new _0x793b47(this[_0x1e0b('0x39')][_0x1e0b('0x1d')]);this[_0x1e0b('0x30')][_0x1e0b('0x17')](_0x40815b,_0x27a9e0),this[_0x1e0b('0x37')][_0x1e0b('0x17')](_0x27a9e0,_0x40815b),_0x40815b[_0x1e0b('0x15')][_0x1e0b('0x23')](_0x59f5d7),this[_0x1e0b('0x3')](_0x27a9e0[_0x1e0b('0x36')],_0x1e0b('0x42'),(_0x14e23f,_0x365ac9,_0x3b2264)=>{const _0x4e9755=this[_0x1e0b('0x13')](_0x27a9e0,_0x3b2264);_0x40815b['_targetTop']!=_0x4e9755&&(_0x40815b[_0x1e0b('0x33')]=_0x4e9755,this[_0x1e0b('0x2')](_0x40815b,_0x4e9755));}),this[_0x1e0b('0x3')](_0x40815b,'change:top',()=>{this[_0x1e0b('0x21')](_0x40815b,_0x1e0b('0x24'));}),this[_0x1e0b('0x3')](_0x40815b,_0x1e0b('0x38'),()=>{this[_0x1e0b('0x21')](_0x40815b,'bottom');}),this['_alignToTargetRect'](_0x40815b);const _0x48f86f=this['_getItemBefore'](_0x40815b);if(_0x48f86f)this[_0x1e0b('0x1')](_0x48f86f,_0x40815b)||this[_0x1e0b('0x18')](_0x40815b);else this[_0x1e0b('0x18')](_0x40815b);return this['_updateLastItem'](),this[_0x1e0b('0x36')]['list'][_0x1e0b('0x23')](_0x40815b),_0x40815b;}[_0x1e0b('0xc')](_0x5a140b){if(!_0x5a140b[_0x1e0b('0x15')]['length'])return;const _0x592523=this['_getItemBefore'](_0x5a140b);if(!_0x592523)return;const _0x44a53e=this['_sidebarItemViewToAnnotation']['get'](_0x592523),_0x352c61=this[_0x1e0b('0x26')];_0x352c61&&_0x352c61===_0x44a53e?this['_alignAfterItem'](_0x592523,_0x5a140b):this[_0x1e0b('0x2a')](_0x5a140b,_0x592523);}[_0x1e0b('0x2b')](_0x58ba61){if(!_0x58ba61[_0x1e0b('0x15')][_0x1e0b('0x3b')])return;const _0x688f79=this[_0x1e0b('0x3f')](_0x58ba61);if(!_0x688f79)return;const _0x31385c=this['_sidebarItemViewToAnnotation'][_0x1e0b('0x35')](_0x688f79),_0x3f0194=this[_0x1e0b('0x39')][_0x1e0b('0x5')][_0x1e0b('0x35')](_0x1e0b('0x19')),_0x20c67d=this['_activeAnnotation'];_0x20c67d&&_0x20c67d===_0x31385c&&_0x3f0194?(this[_0x1e0b('0x2a')](_0x688f79,_0x58ba61),this[_0x1e0b('0x1')](_0x58ba61,_0x688f79)):_0x20c67d&&_0x20c67d===_0x31385c?this[_0x1e0b('0x2a')](_0x688f79,_0x58ba61):this[_0x1e0b('0x1')](_0x58ba61,_0x688f79);}[_0x1e0b('0x21')](_0x19b9b9,_0x4242ee){0x0===this['_recalculateBuffer'][_0x1e0b('0x3b')]&&setTimeout(()=>{for(const {sidebarItemView:_0x4ba7d9,changedProp:_0xd675b6}of this[_0x1e0b('0x41')])_0x1e0b('0x24')===_0xd675b6?this[_0x1e0b('0xc')](_0x4ba7d9):this[_0x1e0b('0x2b')](_0x4ba7d9);this[_0x1e0b('0x41')]=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x19b9b9,'changedProp':_0x4242ee});}[_0x1e0b('0x0')](_0x4059c9){return this[_0x1e0b('0x37')][_0x1e0b('0x35')](_0x4059c9);}[_0x1e0b('0xb')](){this[_0x1e0b('0x36')][_0x1e0b('0xb')]();}[_0x1e0b('0x3d')](_0x275288){const _0x3940c5=this[_0x1e0b('0x0')](_0x275288);this['stopListening'](_0x3940c5),this['stopListening'](_0x275288[_0x1e0b('0x36')]),_0x3940c5[_0x1e0b('0xb')](),this[_0x1e0b('0x37')][_0x1e0b('0x1e')](_0x275288),this[_0x1e0b('0x30')][_0x1e0b('0x1e')](_0x3940c5);}[_0x1e0b('0x16')](){const _0x3354d7=new _0x436c5d(this[_0x1e0b('0x39')]['locale']);return _0x3354d7[_0x1e0b('0x10')](),this['on'](_0x1e0b('0x1a'),(_0x55a90c,_0x1889b1,_0x3ac0d9,_0x83720c)=>{_0x83720c&&_0x3354d7[_0x1e0b('0x43')](_0x1e0b('0x20')),_0x3ac0d9?_0x3354d7[_0x1e0b('0x11')]('minHeight')['to'](_0x3ac0d9,'bottom'):_0x3354d7[_0x1e0b('0x20')]=null;}),_0x3354d7;}[_0x1e0b('0x8')](){var _0x356729;this[_0x1e0b('0x1f')]=(null===(_0x356729=this['_annotations'])||void 0x0===_0x356729?void 0x0:_0x356729[_0x1e0b('0x3a')])?this[_0x1e0b('0x0')](this[_0x1e0b('0x4')][_0x1e0b('0x3a')]):null;}[_0x1e0b('0x2f')](_0x3ee4b0){var _0x2a6d4f;const _0x3624b9=this[_0x1e0b('0x30')][_0x1e0b('0x35')](_0x3ee4b0),_0x2bde3e=_0x3624b9&&(null===(_0x2a6d4f=this[_0x1e0b('0x4')])||void 0x0===_0x2a6d4f?void 0x0:_0x2a6d4f['get'](this['_annotations'][_0x1e0b('0x27')](_0x3624b9)-0x1));return _0x2bde3e&&this[_0x1e0b('0x0')](_0x2bde3e)||null;}['_getItemAfter'](_0x3192ee){var _0x14f832;const _0x2eea8c=this[_0x1e0b('0x30')][_0x1e0b('0x35')](_0x3192ee),_0x2c8a4c=_0x2eea8c&&(null===(_0x14f832=this[_0x1e0b('0x4')])||void 0x0===_0x14f832?void 0x0:_0x14f832['get'](this[_0x1e0b('0x4')][_0x1e0b('0x27')](_0x2eea8c)+0x1));return _0x2c8a4c&&this['getSidebarItemView'](_0x2c8a4c)||null;}[_0x1e0b('0x2a')](_0x46ea7e,_0x3232b7){_0x46ea7e[_0x1e0b('0xa')]();const _0x31e880=H(_0x3232b7[_0x1e0b('0xf')]+this[_0x1e0b('0x31')],_0x46ea7e[_0x1e0b('0x24')]);return!!_0x31e880&&(this['_setItemTop'](_0x3232b7,_0x3232b7[_0x1e0b('0x24')]-_0x31e880),!0x0);}[_0x1e0b('0x1')](_0x5e5499,_0x26ea06){_0x5e5499[_0x1e0b('0xa')]();const _0x1472a4=H(_0x5e5499[_0x1e0b('0xf')]+this['_spaceBetweenItems'],_0x26ea06['top']);return!!_0x1472a4&&(this['_setItemTop'](_0x26ea06,_0x26ea06[_0x1e0b('0x24')]+_0x1472a4,!0x1),!0x0);}[_0x1e0b('0x18')](_0x4dfa87){const _0xdf9000=this[_0x1e0b('0x30')][_0x1e0b('0x35')](_0x4dfa87);if(!_0xdf9000||!_0xdf9000[_0x1e0b('0x2c')]||!_0xdf9000[_0x1e0b('0x29')])return;const _0x31caee=this[_0x1e0b('0x13')](_0xdf9000,_0xdf9000[_0x1e0b('0x29')]);this[_0x1e0b('0x2')](_0x4dfa87,_0x31caee);}[_0x1e0b('0x13')](_0x212df2,_0xee3196){if(null===_0xee3196)return 0x0;if(_0x212df2['target']instanceof _0x303c57)return _0xee3196[_0x1e0b('0x24')];{const _0x1505f5=new _0x303c57(this[_0x1e0b('0x36')][_0x1e0b('0x6')])[_0x1e0b('0x24')];return _0xee3196['top']-_0x1505f5;}}[_0x1e0b('0x2')](_0xd0adeb,_0x288507,_0x4948b6=this[_0x1e0b('0x39')][_0x1e0b('0x5')][_0x1e0b('0x35')]('sidebar.preventScrollOutOfView')){_0x4948b6&&(_0x288507=Math[_0x1e0b('0x22')](_0x288507,this['_getMaxAvailableTop'](_0xd0adeb))),_0xd0adeb[_0x1e0b('0x24')]=_0x288507;}['_getMaxAvailableTop'](_0x30714a){let _0x286ae3=this[_0x1e0b('0x2f')](_0x30714a),_0xd99a5d=0x0;for(;_0x286ae3;)_0x286ae3['updateHeight'](),_0xd99a5d+=this[_0x1e0b('0x31')]+_0x286ae3['height'],_0x286ae3=this[_0x1e0b('0x2f')](_0x286ae3);return _0xd99a5d;}}function H(_0x53191f,_0x4ed433){return Math[_0x1e0b('0x22')](_0x53191f-_0x4ed433,0x0);}function y(_0x2ea7a0){return null!==_0x2ea7a0&&'object'==typeof _0x2ea7a0&&0x1===_0x2ea7a0[_0x1e0b('0x2d')];}
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 _0x4918=['ck-annotation-counter','number','ck-annotation-counter__badge--edit-mode','setTemplate','isDirty','...','extendTemplate','add','set','counterView','bind','ck-annotation-counter__badge','icon','span','annotationType','_badge'];(function(_0x1b52c5,_0x49187a){const _0x44ef78=function(_0x25d185){while(--_0x25d185){_0x1b52c5['push'](_0x1b52c5['shift']());}};_0x44ef78(++_0x49187a);}(_0x4918,0xd6));const _0x44ef=function(_0x1b52c5,_0x49187a){_0x1b52c5=_0x1b52c5-0x0;let _0x44ef78=_0x4918[_0x1b52c5];return _0x44ef78;};import{ButtonView as _0x12a90e,View as _0x1419a8}from'ckeditor5/src/ui';import _0x3551d6 from'../../../theme/icons/add-comment.svg';export default class D extends _0x12a90e{constructor(_0x4f36d0){super(_0x4f36d0);const _0x24532e=this['bindTemplate'];this[_0x44ef('0x2')](_0x44ef('0xe'),!0x1),this['set'](_0x44ef('0xb'),0x0),this[_0x44ef('0x4')](_0x44ef('0x9'))['to'](this,_0x44ef('0xe'),this,_0x44ef('0xb'),(_0x15b6d7,_0x4b5e9a)=>_0x15b6d7?_0x44ef('0xf'):_0x4b5e9a['toString']()),this['set']('annotationType',''),this[_0x44ef('0x6')]=_0x3551d6,this[_0x44ef('0x0')]({'attributes':{'class':[_0x44ef('0xa')]}}),this[_0x44ef('0x3')]=new _0x1419a8(),this[_0x44ef('0x3')][_0x44ef('0xd')]({'tag':_0x44ef('0x7'),'attributes':{'class':[_0x44ef('0x5'),_0x24532e['to'](_0x44ef('0x8'),_0x360aec=>'ck-annotation-counter__badge--'+_0x360aec),_0x24532e['if']('isDirty',_0x44ef('0xc'))]},'children':[{'text':_0x24532e['to'](_0x44ef('0x9'))}]}),this['children'][_0x44ef('0x1')](this[_0x44ef('0x3')]);}}
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 _0xfe96=['isActive','div','keystrokes','focusTracker','targetRect','length','focus','isDirty','bindTemplate','content','destroy','type','ck-rounded-corners','listenTo','attach','Esc','setTemplate','mainView','render','element','_updateHeight','height','ck-annotation-wrapper--active','add','_mutationObserver','set'];(function(_0x2263c5,_0xfe9610){const _0x2880f1=function(_0x11f82c){while(--_0x11f82c){_0x2263c5['push'](_0x2263c5['shift']());}};_0x2880f1(++_0xfe9610);}(_0xfe96,0xf4));const _0x2880=function(_0x2263c5,_0xfe9610){_0x2263c5=_0x2263c5-0x0;let _0x2880f1=_0xfe96[_0x2263c5];return _0x2880f1;};import{View as _0x408ccf}from'ckeditor5/src/ui';import{FocusTracker as _0x176091,KeystrokeHandler as _0x5b5afc,uid as _0x2e18a5}from'ckeditor5/src/utils';import _0x312ce9 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x408ccf{constructor(_0x23bdba,_0x253500){super(_0x23bdba),this['id']=_0x2e18a5(),this[_0x2880('0x13')]=new _0x176091(),this['keystrokes']=new _0x5b5afc(),this['keystrokes'][_0x2880('0xf')](_0x2880('0x5'),(_0x5ae31a,_0x1b589c)=>this['fire']('Esc',_0x1b589c)),this['set'](_0x2880('0x14'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set'](_0x2880('0xb'),0x0),this[_0x2880('0xf')](_0x2880('0x10'),!0x1),this[_0x2880('0xf')](_0x2880('0x17'),!0x1),this[_0x2880('0xf')](_0x2880('0x15'),0x0),this[_0x2880('0xf')](_0x2880('0x1'),''),this[_0x2880('0xe')]=_0x312ce9(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this[_0x2880('0x19')][_0x2880('0xd')](_0x253500),this[_0x2880('0x7')]=_0x253500;const _0x64b838=this[_0x2880('0x18')];this[_0x2880('0x6')]({'tag':_0x2880('0x11'),'attributes':{'class':['ck','ck-annotation-wrapper',_0x2880('0x2'),_0x64b838['if'](_0x2880('0x10'),_0x2880('0xc'))],'tabindex':-0x1},'children':this[_0x2880('0x19')]});}[_0x2880('0x8')](){super[_0x2880('0x8')](),this[_0x2880('0x13')][_0x2880('0xd')](this['element']),this[_0x2880('0x12')][_0x2880('0x3')](this[_0x2880('0x9')]),this['_mutationObserver'][_0x2880('0x4')](this['element']);}['destroy'](){this[_0x2880('0x19')]['clear'](),this['keystrokes']['destroy'](),this[_0x2880('0x13')][_0x2880('0x0')](),this['_mutationObserver']['detach'](),super[_0x2880('0x0')]();}[_0x2880('0x16')](){this['element'][_0x2880('0x16')]();}[_0x2880('0xa')](){const _0x25c240=this[_0x2880('0x9')]['clientHeight'];_0x25c240&&(this[_0x2880('0xb')]=_0x25c240);}}
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 _0x40fa=['setTemplate','content','top','ck-sidebar-item','attach','height','set','isAnimationDisabled','createCollection','bind','updateHeight','clientHeight','bindTemplate','detach','destroy','render','_targetTop','_mutationObserver','ck-sidebar-item--no-animation','bottom','clear','element'];(function(_0x1583ae,_0x40fab9){const _0x4fa6cb=function(_0x153c43){while(--_0x153c43){_0x1583ae['push'](_0x1583ae['shift']());}};_0x4fa6cb(++_0x40fab9);}(_0x40fa,0xbe));const _0x4fa6=function(_0x1583ae,_0x40fab9){_0x1583ae=_0x1583ae-0x0;let _0x4fa6cb=_0x40fa[_0x1583ae];return _0x4fa6cb;};import{View as _0x8cc94a}from'ckeditor5/src/ui';import{toUnit as _0x4d9f4a}from'ckeditor5/src/utils';import _0x9fda18 from'../../utils/createmutationobserver';const Dt=_0x4d9f4a('px');export default class C extends _0x8cc94a{constructor(_0x3cb1cc){super(_0x3cb1cc),this[_0x4fa6('0xe')](_0x4fa6('0xa'),0x0),this[_0x4fa6('0xe')]('height',0x0),this[_0x4fa6('0x11')](_0x4fa6('0x5'))['to'](this,_0x4fa6('0xa'),this,_0x4fa6('0xd'),(_0x1ef72c,_0x473730)=>_0x1ef72c+_0x473730),this['set'](_0x4fa6('0xf'),!0x1),this[_0x4fa6('0x3')]=_0x9fda18(()=>this[_0x4fa6('0x12')]()),this[_0x4fa6('0x2')]=null,this[_0x4fa6('0x9')]=this[_0x4fa6('0x10')]();const _0x580bc2=this[_0x4fa6('0x14')];this[_0x4fa6('0x8')]({'tag':'div','attributes':{'class':[_0x4fa6('0xb'),_0x580bc2['to'](_0x4fa6('0xf'),_0x5c7c55=>_0x5c7c55?_0x4fa6('0x4'):'')],'style':{'top':_0x580bc2['to'](_0x4fa6('0xa'),_0x46db13=>Dt(_0x46db13))}},'children':this[_0x4fa6('0x9')]});}['render'](){super[_0x4fa6('0x1')](),this[_0x4fa6('0x3')][_0x4fa6('0xc')](this['element']);}['updateHeight'](){const _0x2aa9cf=this[_0x4fa6('0x7')][_0x4fa6('0x13')];_0x2aa9cf&&(this[_0x4fa6('0xd')]=_0x2aa9cf);}[_0x4fa6('0x0')](){this[_0x4fa6('0x9')][_0x4fa6('0x6')](),this['_mutationObserver'][_0x4fa6('0x15')](),super[_0x4fa6('0x0')]();}}
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 _0x7860=['ck-sidebar','createCollection','class','list','number','setTemplate','bindTemplate','minHeight','set','div','ck-reset'];(function(_0x44c9dc,_0x786015){const _0x1c8bd6=function(_0x2b4be6){while(--_0x2b4be6){_0x44c9dc['push'](_0x44c9dc['shift']());}};_0x1c8bd6(++_0x786015);}(_0x7860,0x185));const _0x1c8b=function(_0x44c9dc,_0x786015){_0x44c9dc=_0x44c9dc-0x0;let _0x1c8bd6=_0x7860[_0x44c9dc];return _0x1c8bd6;};import{View as _0x35687e}from'ckeditor5/src/ui';import{toUnit as _0x3c9835}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const Dt=_0x3c9835('px');export default class T extends _0x35687e{constructor(_0x2bc1e0){super(_0x2bc1e0);const _0x23795a=this[_0x1c8b('0x2')];this[_0x1c8b('0x4')](_0x1c8b('0x3'),0x0),this[_0x1c8b('0x4')](_0x1c8b('0x9'),''),this['list']=this[_0x1c8b('0x8')](),this[_0x1c8b('0x1')]({'tag':_0x1c8b('0x5'),'attributes':{'class':['ck',_0x1c8b('0x7'),_0x1c8b('0x6'),_0x23795a['to'](_0x1c8b('0x9'))],'style':{'minHeight':_0x23795a['to']('minHeight',_0x5d186c=>_0x1c8b('0x0')==typeof _0x5d186c?Dt(_0x5d186c+0xa):null)}},'children':this[_0x1c8b('0xa')]});}}
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 _0x2fca=['activeAnnotation','wideSidebar','updateTargetRect','high','detach','addAnnotation','destroy','cancel','uiUpdate','blur','resize','refresh','focus','register','stop','EditorAnnotations','has','set','get','removeEventListener','from','attach','_attachToContainer','_editorAnnotations','widesidebar-attach-already-attached','refreshPositioning','isAttached','hasDomSelection','setActiveAnnotation','_refreshPositioningDebounced','_activeAnnotation','_detachFromContainer','requires','annotations','add','pluginName','_destroyEditorAnnotationsIntegration','context','off','remove','rearrange','listenTo','plugins','stopListening','init','set:container','getOrderedSelectedAnnotations','editors','change:container','_integrateWithEditorAnnotations'];(function(_0x46c901,_0x2fcaaf){const _0x5944e1=function(_0x1c272b){while(--_0x1c272b){_0x46c901['push'](_0x46c901['shift']());}};_0x5944e1(++_0x2fcaaf);}(_0x2fca,0x18d));const _0x5944=function(_0x46c901,_0x2fcaaf){_0x46c901=_0x46c901-0x0;let _0x5944e1=_0x2fca[_0x46c901];return _0x5944e1;};import{ContextPlugin as _0x3bdf40,Context as _0x33d379}from'ckeditor5/src/core';import _0x522aa9 from'./annotationsuis';import _0x1e3025 from'./sidebar';import{CKEditorError as _0x503fa5,Collection as _0x57ad8c}from'ckeditor5/src/utils';import{debounce as _0x21c0c2}from'lodash-es';import _0x3b544d from'./editorannotations';export default class i extends _0x3bdf40{static get[_0x5944('0x23')](){return[_0x1e3025,_0x522aa9];}static get[_0x5944('0x26')](){return'WideSidebar';}constructor(_0x3de835){super(_0x3de835),this[_0x5944('0x1d')]=!0x1,this[_0x5944('0x14')](_0x5944('0x3'),null),this[_0x5944('0x24')]=null,this[_0x5944('0x1a')]=new _0x57ad8c(),this['_refreshPositioningDebounced']=_0x21c0c2(()=>{this[_0x5944('0x24')][_0x5944('0x1c')]();},0xfa,{'leading':!0x1});}[_0x5944('0x2f')](){const _0x58f6af=this[_0x5944('0x28')][_0x5944('0x2d')][_0x5944('0x15')](_0x522aa9),_0x30fb20=this[_0x5944('0x28')][_0x5944('0x2d')][_0x5944('0x15')](_0x1e3025);_0x58f6af[_0x5944('0x10')](_0x5944('0x4'),this),_0x30fb20['container']&&_0x58f6af['switchTo'](_0x5944('0x4'));}[_0x5944('0x1f')](_0x399e08){if(_0x399e08===this[_0x5944('0x3')])return;const _0x1a459f=this[_0x5944('0x28')]['plugins'][_0x5944('0x15')](_0x1e3025);_0x1a459f[_0x5944('0x21')]=_0x399e08;const _0x59fd37=this['activeAnnotation'];this['activeAnnotation']=_0x399e08,_0x1a459f[_0x5944('0xe')]({'blurredAnnotation':_0x59fd37,'activatedAnnotation':this[_0x5944('0x3')]});}[_0x5944('0x18')](_0x1d41cd){this[_0x5944('0x24')]=_0x1d41cd;const _0x1f978a=this[_0x5944('0x28')][_0x5944('0x2d')][_0x5944('0x15')](_0x1e3025);if(_0x1f978a['_annotations']=_0x1d41cd,this['isAttached'])throw new _0x503fa5(_0x5944('0x1b'),this);this[_0x5944('0x1d')]=!0x0,this[_0x5944('0x2c')](_0x1f978a,_0x5944('0x30'),()=>{this[_0x5944('0x7')](),this['listenTo'](_0x1f978a,_0x5944('0x1'),_0x243894=>{_0x243894[_0x5944('0x29')](),this['attach'](_0x1d41cd);});}),_0x1f978a[_0x5944('0x19')]({'viewClass':'ck-sidebar--wide'});const _0xf272e6=_0x2bed14=>{_0x2bed14[_0x5944('0x5')](),_0x1f978a[_0x5944('0x8')](_0x2bed14);};for(const _0x50a911 of _0x1d41cd)_0xf272e6(_0x50a911);this['listenTo'](_0x1d41cd,_0x5944('0x25'),(_0x25505f,_0x45c696)=>{_0xf272e6(_0x45c696);}),this[_0x5944('0x2c')](_0x1d41cd,_0x5944('0x2a'),(_0x59c761,_0x3bfcaf,_0x47f29e)=>{_0x1f978a[_0x5944('0x2b')]({'removedAnnotation':_0x3bfcaf,'previousAnnotation':_0x1d41cd[_0x5944('0x15')](_0x47f29e-0x1),'nextAnnotation':_0x1d41cd[_0x5944('0x15')](_0x47f29e+0x1)}),_0x3bfcaf===this[_0x5944('0x3')]&&this[_0x5944('0x1f')](null);},{'priority':_0x5944('0x6')}),this[_0x5944('0x2c')](_0x1d41cd,_0x5944('0xf'),(_0x81f62f,_0x8b2f92)=>{this[_0x5944('0x1f')](_0x8b2f92);}),this[_0x5944('0x2c')](_0x1d41cd,_0x5944('0xc'),()=>{this['setActiveAnnotation'](null);});const _0x209294=this[_0x5944('0x28')]instanceof _0x33d379?this[_0x5944('0x28')]['editors']:new _0x57ad8c([this[_0x5944('0x28')]]);for(const _0x6d6ecb of _0x209294)this['_integrateWithEditorAnnotations'](_0x6d6ecb);this['listenTo'](_0x209294,_0x5944('0x25'),(_0x2e0bb5,_0x1d245c)=>{this[_0x5944('0x2c')](_0x1d245c,'ready',()=>{this[_0x5944('0x2')](_0x1d245c);});}),this[_0x5944('0x2c')](_0x209294,_0x5944('0x2a'),(_0x1d43b7,_0x1a0ffd)=>{_0x1a0ffd[_0x5944('0x2d')][_0x5944('0x13')](_0x5944('0x12'))&&this[_0x5944('0x27')](_0x1a0ffd[_0x5944('0x2d')][_0x5944('0x15')](_0x5944('0x12')));}),window['addEventListener'](_0x5944('0xd'),this[_0x5944('0x20')]),this[_0x5944('0x24')][_0x5944('0x1c')]();}[_0x5944('0x7')](){if(!this[_0x5944('0x1d')])throw new _0x503fa5('widesidebar-detach-not-attached',this);this[_0x5944('0x1f')](null);const _0x5f5c59=this[_0x5944('0x28')]['plugins']['get'](_0x1e3025);_0x5f5c59[_0x5944('0x22')](this[_0x5944('0x24')]),this[_0x5944('0x2e')](_0x5f5c59),this[_0x5944('0x2e')](this[_0x5944('0x24')]),this[_0x5944('0x28')]instanceof _0x33d379&&this[_0x5944('0x2e')](this[_0x5944('0x28')][_0x5944('0x0')]);for(const _0x12abc1 of Array[_0x5944('0x17')](this[_0x5944('0x1a')]))this[_0x5944('0x27')](_0x12abc1);window[_0x5944('0x16')]('resize',this[_0x5944('0x20')]),this[_0x5944('0x20')][_0x5944('0xa')](),this[_0x5944('0x3')]=null,this[_0x5944('0x1d')]=!0x1,this[_0x5944('0x24')]=null;}[_0x5944('0x9')](){this[_0x5944('0x1d')]&&this['detach']();}[_0x5944('0x2')](_0x5881d9){const _0x1e7dd9=_0x5881d9[_0x5944('0x2d')][_0x5944('0x15')](_0x3b544d);if(!_0x1e7dd9)return;const _0x546836=()=>{const _0x172eee=_0x1e7dd9[_0x5944('0x31')]({'annotations':this[_0x5944('0x24')],'activeAnnotation':this['activeAnnotation']});this[_0x5944('0x1f')](_0x172eee[0x0]||null);};this[_0x5944('0x2c')](_0x1e7dd9,_0x5944('0xe'),_0x546836),this['listenTo'](_0x1e7dd9,'blur',(_0x1d2d64,{isAnnotationTracked:_0x7d4010})=>{this[_0x5944('0x3')]&&_0x7d4010(this['activeAnnotation'])&&this[_0x5944('0x1f')](null);}),this[_0x5944('0x2c')](_0x1e7dd9,_0x5944('0xb'),()=>{this[_0x5944('0x20')]();}),this[_0x5944('0x2c')](this[_0x5944('0x24')],'blur',_0x3060f2=>{_0x1e7dd9[_0x5944('0x1e')]()&&(_0x546836(),_0x3060f2[_0x5944('0x11')]());},{'priority':_0x5944('0x6')}),this[_0x5944('0x1a')][_0x5944('0x25')](_0x1e7dd9);}[_0x5944('0x27')](_0x917de5){this[_0x5944('0x2e')](_0x917de5),this['_editorAnnotations'][_0x5944('0x2a')](_0x917de5);}}
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 _0x3d42=['getRanges','createRange','schema','_trimToContent','isObject','item','selection','refresh','element','tableCell','_hasContent','_itemIsContent','getItems','addMarker','editor','comment:','model','substr','change','execute','document','backward','end','start','isEnabled','$textProxy'];(function(_0x4970ef,_0x3d42df){const _0x138bd6=function(_0x1bf99b){while(--_0x1bf99b){_0x4970ef['push'](_0x4970ef['shift']());}};_0x138bd6(++_0x3d42df);}(_0x3d42,0x77));const _0x138b=function(_0x4970ef,_0x3d42df){_0x4970ef=_0x4970ef-0x0;let _0x138bd6=_0x3d42[_0x4970ef];return _0x138bd6;};import{Command as _0xc88b3f}from'ckeditor5/src/core';import{uid as _0x393803}from'ckeditor5/src/utils';export default class J extends _0xc88b3f{[_0x138b('0x12')](){const _0x1c62a1=this[_0x138b('0x19')]['model'][_0x138b('0x5')][_0x138b('0x11')];for(const _0x3372b5 of _0x1c62a1[_0x138b('0xb')]())if(this['_hasContent'](_0x3372b5))return void(this[_0x138b('0x9')]=!0x0);this[_0x138b('0x9')]=!0x1;}[_0x138b('0x4')]({threadId:_0x32a4d4=_0x393803()}={}){const _0x56433b=this['editor'][_0x138b('0x1')],_0xc71067=[];for(const _0x456ae5 of _0x56433b[_0x138b('0x5')][_0x138b('0x11')][_0x138b('0xb')]())this[_0x138b('0x15')](_0x456ae5)&&_0xc71067['push'](this[_0x138b('0xe')](_0x456ae5));_0x56433b[_0x138b('0x3')](_0x14b4e4=>{for(const _0x3ecaff of _0xc71067){const _0x389f78=_0x393803()[_0x138b('0x2')](0x1,0x5),_0x2a29aa=_0x138b('0x0')+_0x32a4d4+':'+_0x389f78;_0x14b4e4[_0x138b('0x18')](_0x2a29aa,{'range':_0x3ecaff,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x3e606f){for(const _0x48c1e5 of _0x3e606f[_0x138b('0x17')]())if(this['_itemIsContent'](_0x48c1e5))return!0x0;return!0x1;}['_itemIsContent'](_0x5e19ba){return _0x5e19ba['is'](_0x138b('0xa'))||this[_0x138b('0x19')]['model'][_0x138b('0xd')][_0x138b('0xf')](_0x5e19ba)&&!_0x5e19ba['is'](_0x138b('0x13'),_0x138b('0x14'));}['_trimToContent'](_0x776897){const _0x4952f8=_0x2543cf=>!this[_0x138b('0x16')](_0x2543cf[_0x138b('0x10')]),_0x3b6be5=_0x776897[_0x138b('0x8')]['getLastMatchingPosition'](_0x4952f8),_0x2fec4e=_0x776897[_0x138b('0x7')]['getLastMatchingPosition'](_0x4952f8,{'direction':_0x138b('0x6')});return this[_0x138b('0x19')][_0x138b('0x1')][_0x138b('0xc')](_0x3b6be5,_0x2fec4e);}}
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