@ckeditor/ckeditor5-comments 34.0.0 → 34.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 (45) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +2 -2
  3. package/build/comments.js +1 -1
  4. package/build/translations/af.js +1 -0
  5. package/build/translations/lv.js +1 -0
  6. package/build/translations/ur.js +1 -0
  7. package/lang/translations/af.po +67 -0
  8. package/lang/translations/lv.po +68 -0
  9. package/lang/translations/ur.po +67 -0
  10. package/package.json +3 -3
  11. package/src/annotations/annotation.js +1 -1
  12. package/src/annotations/annotationcollection.js +1 -1
  13. package/src/annotations/annotations.js +1 -1
  14. package/src/annotations/annotationsuis.js +1 -1
  15. package/src/annotations/editorannotations.js +1 -1
  16. package/src/annotations/inlineannotations.js +1 -1
  17. package/src/annotations/narrowsidebar.js +1 -1
  18. package/src/annotations/sidebar.js +1 -1
  19. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  20. package/src/annotations/view/annotationview.js +1 -1
  21. package/src/annotations/view/sidebaritemview.js +1 -1
  22. package/src/annotations/view/sidebarview.js +1 -1
  23. package/src/annotations/widesidebar.js +1 -1
  24. package/src/comments/addcommentthreadcommand.js +1 -1
  25. package/src/comments/commentsediting.js +1 -1
  26. package/src/comments/commentsrepository.js +1 -1
  27. package/src/comments/commentsui.js +1 -1
  28. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  29. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  30. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  31. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  32. package/src/comments/ui/commentthreadcontroller.js +1 -1
  33. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  34. package/src/comments/ui/view/basecommentview.js +1 -1
  35. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  36. package/src/comments/ui/view/commentcontentview.js +1 -1
  37. package/src/comments/ui/view/commentinputview.js +1 -1
  38. package/src/comments/ui/view/commentslistview.js +1 -1
  39. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  40. package/src/comments/ui/view/commentthreadview.js +1 -1
  41. package/src/comments/ui/view/commentview.js +1 -1
  42. package/src/comments.js +1 -1
  43. package/src/commentsonly.js +1 -1
  44. package/src/utils/common-translations.js +1 -1
  45. package/src/utils/createmutationobserver.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5e26=['resize','mousedown','_destroyEditorAnnotationsIntegration','change:container','activeAnnotation','destroy','low','delete','remove','_manuallyClosedAnnotationViews','EditorAnnotations','isVisible','listenTo','includes','hasDomSelection','addEventListener','view','editors','blur','init','northArrowSouthEast','high','setActiveAnnotation','narrowsidebar-attach-already-attached','stopPropagation','bodyCollection','northArrowSouthWest','length','has','_attachListeners','narrowsidebar-detach-not-attached','attach','pluginName','content','create','from','_showBalloon','change:height','stop','_throttledRefreshPositioning','Sidebar','get','refresh','element','number','preventClosingBalloon','rearrange','isAttached','annotationType','addAnnotation','_refreshPositioning','register','defaultPositions','unpin','_domEmitter','preventDefault','balloonPanelView','_editorAnnotations','detach','contains','southArrowNorthWest','attachToDom','pin','getSidebarItemView','_annotationToNarrowView','context','_updateBalloonPosition','plugins','isDirty','locale','refreshPositioning','ready','focus','_annotations','target','_hideBalloon','_detachFromContainer','narrowSidebar','esc','_selectedAnnotations','clear','execute','getByView','ck-sidebar--narrow','add','values','stopListening','_setSelectedAnnotations','bind','type','uiUpdate','keydown','keyCode','_detachListeners','removeEventListener','_integrateWithEditorAnnotations','first'];(function(_0x148a9e,_0x5e2673){const _0x58e5df=function(_0x19e3fe){while(--_0x19e3fe){_0x148a9e['push'](_0x148a9e['shift']());}};_0x58e5df(++_0x5e2673);}(_0x5e26,0x69));const _0x58e5=function(_0x148a9e,_0x5e2673){_0x148a9e=_0x148a9e-0x0;let _0x58e5df=_0x5e26[_0x148a9e];return _0x58e5df;};import{ContextPlugin as _0x313156}from'ckeditor5/src/core';import _0x49def1 from'./annotationsuis';import _0x306749 from'./sidebar';import _0x239eb3 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x23aed9,BodyCollection as _0x21b295}from'ckeditor5/src/ui';import{CKEditorError as _0x19b1a3,DomEmitterMixin as _0x547266,keyCodes as _0x27fc61,Collection as _0x11c168}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x20a860}from'lodash-es';export default class s extends _0x313156{static get['requires'](){return[_0x306749,_0x49def1];}static get[_0x58e5('0x18')](){return'NarrowSidebar';}constructor(_0xc73979){super(_0xc73979),this[_0x58e5('0x27')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0x58e5('0x2e')]=Object[_0x58e5('0x1a')](_0x547266),this[_0x58e5('0x38')]=new Map(),this['set'](_0x58e5('0x5d'),null),this[_0x58e5('0x41')]=null,this[_0x58e5('0x47')]=[],this[_0x58e5('0x31')]=new _0x11c168(),this[_0x58e5('0x1f')]=_0x20a860(()=>{this['_refreshPositioning']();},0x190,{'leading':!0x1});}[_0x58e5('0xb')](){this[_0x58e5('0x39')][_0x58e5('0x3b')]['get'](_0x49def1)[_0x58e5('0x2b')](_0x58e5('0x45'),this),this[_0x58e5('0x11')]=new _0x21b295(this[_0x58e5('0x39')][_0x58e5('0x3d')]),this['balloonPanelView']=new _0x23aed9(this['context'][_0x58e5('0x3d')]),this[_0x58e5('0x11')][_0x58e5('0x35')](),this[_0x58e5('0x11')][_0x58e5('0x4c')](this['balloonPanelView']);}['attach'](_0x2034e2){this[_0x58e5('0x41')]=_0x2034e2;const _0x2e4f57=this[_0x58e5('0x39')][_0x58e5('0x3b')][_0x58e5('0x21')](_0x306749),_0x1f506e=this[_0x58e5('0x30')];if(_0x2e4f57[_0x58e5('0x41')]=_0x2034e2,this['isAttached'])throw new _0x19b1a3(_0x58e5('0xf'),this);this[_0x58e5('0x27')]=!0x0,this['listenTo'](_0x2e4f57,'set:container',()=>{this['detach'](),this[_0x58e5('0x4')](_0x2e4f57,_0x58e5('0x5c'),_0x4bd08d=>{_0x4bd08d['off'](),this[_0x58e5('0x17')](_0x2034e2);});}),_0x2e4f57['_attachToContainer']({'viewClass':_0x58e5('0x4b'),'spaceBetweenItems':0x5});const _0x4cb2e8=_0x5660e4=>{const _0x9554b4=new _0x239eb3(this[_0x58e5('0x39')][_0x58e5('0x3d')]);_0x2e4f57[_0x58e5('0x29')](_0x5660e4,_0x9554b4),this['_annotationToNarrowView']['set'](_0x5660e4,_0x9554b4),_0x9554b4[_0x58e5('0x50')](_0x58e5('0x3c'),_0x58e5('0x28'),_0x58e5('0x24'))['to'](_0x5660e4['view'],_0x58e5('0x3c'),_0x58e5('0x51'),_0x58e5('0x13')),_0x9554b4['on'](_0x58e5('0x49'),()=>{this[_0x58e5('0x1')][_0x58e5('0x48')](),_0x1f506e[_0x58e5('0x19')][_0x58e5('0x58')]!==_0x5660e4[_0x58e5('0x8')]?(this[_0x58e5('0x1c')](_0x5660e4),_0x5660e4[_0x58e5('0x8')][_0x58e5('0x23')][_0x58e5('0x40')](),this[_0x58e5('0xe')](_0x5660e4)):this[_0x58e5('0xe')](null);});};for(const _0x218b7c of _0x2034e2)_0x4cb2e8(_0x218b7c);this[_0x58e5('0x4')](_0x2034e2,_0x58e5('0x4c'),(_0x390ce7,_0x210add)=>{_0x4cb2e8(_0x210add);}),this['listenTo'](_0x2034e2,_0x58e5('0x0'),(_0x24708f,_0x1a9d5d,_0x34f655)=>{this[_0x58e5('0x38')][_0x58e5('0x21')](_0x1a9d5d)['destroy'](),this['_annotationToNarrowView'][_0x58e5('0x60')](_0x1a9d5d),_0x2e4f57[_0x58e5('0x26')]({'removedAnnotation':_0x1a9d5d,'previousAnnotation':_0x2034e2[_0x58e5('0x21')](_0x34f655-0x1),'nextAnnotation':_0x2034e2[_0x58e5('0x21')](_0x34f655+0x1)}),_0x1a9d5d===this[_0x58e5('0x5d')]&&this[_0x58e5('0xe')](null);},{'priority':_0x58e5('0x5f')}),this[_0x58e5('0x4')](_0x2034e2,_0x58e5('0x40'),(_0x354a5f,_0x38d1f9)=>{this[_0x58e5('0xe')](_0x38d1f9);}),this[_0x58e5('0x4')](_0x2034e2,'blur',()=>{this[_0x58e5('0xe')](null);}),this['_domEmitter'][_0x58e5('0x4')](document,_0x58e5('0x53'),(_0x46742f,_0x1efee6)=>{_0x1efee6[_0x58e5('0x54')]===_0x27fc61[_0x58e5('0x46')]&&_0x1f506e[_0x58e5('0x3')]&&(this[_0x58e5('0x1')][_0x58e5('0x4c')](_0x1f506e['content'][_0x58e5('0x58')]),this[_0x58e5('0x43')](),_0x1efee6[_0x58e5('0x10')](),_0x1efee6[_0x58e5('0x2f')]());}),this[_0x58e5('0x2e')][_0x58e5('0x4')](document,'mousedown',(_0x4480a5,_0x137be4)=>{const _0x25ac4d=_0x137be4[_0x58e5('0x42')];_0x1f506e['isVisible']&&_0x1f506e['element']['contains'](_0x25ac4d)||_0x2e4f57[_0x58e5('0x8')][_0x58e5('0x23')][_0x58e5('0x33')](_0x25ac4d)||_0x4480a5[_0x58e5('0x25')]||(this[_0x58e5('0x1')][_0x58e5('0x48')](),this['_hideBalloon'](),this[_0x58e5('0xe')](null));});const _0x30be80=this[_0x58e5('0x39')][_0x58e5('0x9')]?this[_0x58e5('0x39')][_0x58e5('0x9')]:new _0x11c168([this[_0x58e5('0x39')]]);for(const _0x534615 of _0x30be80)this['_integrateWithEditorAnnotations'](_0x534615);this[_0x58e5('0x4')](_0x30be80,_0x58e5('0x4c'),(_0x503a66,_0x530f67)=>{this[_0x58e5('0x4')](_0x530f67,_0x58e5('0x3f'),()=>{this[_0x58e5('0x57')](_0x530f67);});}),this[_0x58e5('0x4')](_0x30be80,_0x58e5('0x0'),(_0x1c79a8,_0x3bef02)=>{_0x3bef02[_0x58e5('0x3b')][_0x58e5('0x14')](_0x58e5('0x2'))&&this[_0x58e5('0x5b')](_0x3bef02[_0x58e5('0x3b')][_0x58e5('0x21')](_0x58e5('0x2')));}),window[_0x58e5('0x7')](_0x58e5('0x59'),this[_0x58e5('0x1f')]),this[_0x58e5('0x2a')]();}[_0x58e5('0xe')](_0x384535){if(_0x384535===this[_0x58e5('0x5d')])return;const _0x137bf1=this['context'][_0x58e5('0x3b')]['get']('Sidebar');if(_0x137bf1[_0x58e5('0x22')]({'blurredAnnotation':this[_0x58e5('0x5d')],'activatedAnnotation':_0x384535,'disableAnimationOnActivatedAnnotation':!0x0}),_0x384535)_0x137bf1[_0x58e5('0x37')](_0x384535)?this[_0x58e5('0x1c')](_0x384535):this[_0x58e5('0x43')]();else this['_hideBalloon']();this[_0x58e5('0x5d')]=_0x384535;}[_0x58e5('0x32')](){if(!this[_0x58e5('0x27')])throw new _0x19b1a3(_0x58e5('0x16'),this);this[_0x58e5('0xe')](null);const _0x1c0307=this['context'][_0x58e5('0x3b')][_0x58e5('0x21')](_0x58e5('0x20'));this[_0x58e5('0x43')](),Array['from'](this[_0x58e5('0x38')][_0x58e5('0x4d')](),_0x2f3fcc=>_0x2f3fcc[_0x58e5('0x5e')]()),this['_annotationToNarrowView'][_0x58e5('0x48')](),_0x1c0307[_0x58e5('0x44')](this[_0x58e5('0x41')]),this[_0x58e5('0x4e')](),this[_0x58e5('0x2e')][_0x58e5('0x4e')](),this[_0x58e5('0x4e')](this[_0x58e5('0x39')][_0x58e5('0x9')]);for(const _0x4ba6ef of Array[_0x58e5('0x1b')](this[_0x58e5('0x31')]))this[_0x58e5('0x5b')](_0x4ba6ef);window[_0x58e5('0x56')](_0x58e5('0x59'),this['_throttledRefreshPositioning']),this['_throttledRefreshPositioning']['cancel'](),this[_0x58e5('0x47')]=[],this['isAttached']=!0x1,this[_0x58e5('0x41')]=null;}[_0x58e5('0x5e')](){this['isAttached']&&this[_0x58e5('0x32')](),this['bodyCollection']['detachFromDom']();}[_0x58e5('0x57')](_0x5d5311){const _0x14bca9=_0x5d5311[_0x58e5('0x3b')][_0x58e5('0x21')](_0x58e5('0x2')),_0x705316=this[_0x58e5('0x39')][_0x58e5('0x3b')][_0x58e5('0x21')](_0x306749),_0x15defa=this['_annotations'],_0x1f7ddc=this[_0x58e5('0x30')],_0x298182=()=>{const _0x37ee04=_0x14bca9['getOrderedSelectedAnnotations']({'activeAnnotation':this['activeAnnotation'],'annotations':this['_annotations']});this['_setSelectedAnnotations'](_0x37ee04),this[_0x58e5('0xe')](_0x37ee04[0x0]||null);};this[_0x58e5('0x4')](_0x14bca9,'refresh',_0x298182),this[_0x58e5('0x4')](_0x14bca9,'blur',(_0x55767a,{isAnnotationTracked:_0x12774b})=>{this[_0x58e5('0x5d')]&&_0x12774b(this[_0x58e5('0x5d')])&&(this[_0x58e5('0x4f')]([]),this[_0x58e5('0xe')](null));}),this[_0x58e5('0x4')](_0x14bca9,_0x58e5('0x52'),()=>{this[_0x58e5('0x1f')]();}),this[_0x58e5('0x4')](_0x15defa,_0x58e5('0xa'),_0x499a27=>{_0x14bca9[_0x58e5('0x6')]()&&_0x499a27[_0x58e5('0x1e')]();},{'priority':_0x58e5('0xd')}),this[_0x58e5('0x2e')][_0x58e5('0x4')](document,_0x58e5('0x5a'),(_0x34ec50,_0x40b3d6)=>{const _0x34b8fa=_0x40b3d6[_0x58e5('0x42')];_0x1f7ddc[_0x58e5('0x3')]&&_0x1f7ddc[_0x58e5('0x23')]['contains'](_0x34b8fa)||_0x705316[_0x58e5('0x8')][_0x58e5('0x23')][_0x58e5('0x33')](_0x34b8fa)||this[_0x58e5('0x5d')]&&_0x14bca9['hasDomSelection']()&&(_0x298182(),_0x34ec50[_0x58e5('0x25')]=!0x0);},{'priority':_0x58e5('0xd')}),this[_0x58e5('0x31')][_0x58e5('0x4c')](_0x14bca9);}[_0x58e5('0x5b')](_0x4413f8){_0x4413f8&&(this['stopListening'](_0x4413f8),this[_0x58e5('0x31')][_0x58e5('0x0')](_0x4413f8));}['_setSelectedAnnotations'](_0x3b3569){for(const _0x2cb21e of this[_0x58e5('0x47')])_0x3b3569[_0x58e5('0x5')](_0x2cb21e)||this[_0x58e5('0x1')][_0x58e5('0x60')](_0x2cb21e[_0x58e5('0x8')]);this[_0x58e5('0x47')]=_0x3b3569;}[_0x58e5('0x2a')](){const _0x473a23=this[_0x58e5('0x30')];this[_0x58e5('0x41')][_0x58e5('0x3e')](),_0x473a23[_0x58e5('0x3')]&&this[_0x58e5('0x3a')]();}[_0x58e5('0x1c')](_0x52eb46){if(this[_0x58e5('0x1')]['has'](_0x52eb46[_0x58e5('0x8')]))return;const _0x1a5be4=this[_0x58e5('0x30')][_0x58e5('0x19')]['first'];_0x1a5be4!==_0x52eb46[_0x58e5('0x8')]?(_0x1a5be4&&this[_0x58e5('0x55')](_0x1a5be4),this[_0x58e5('0x15')](_0x52eb46[_0x58e5('0x8')]),this[_0x58e5('0x30')][_0x58e5('0x19')][_0x58e5('0x48')](),this[_0x58e5('0x30')][_0x58e5('0x19')][_0x58e5('0x4c')](_0x52eb46[_0x58e5('0x8')]),this[_0x58e5('0x3a')]()):this[_0x58e5('0x3a')]();}[_0x58e5('0x3a')](){const _0x1482fd=this[_0x58e5('0x30')]['content'][_0x58e5('0x58')],_0x58bb63=this[_0x58e5('0x41')][_0x58e5('0x4a')](_0x1482fd);if(!this[_0x58e5('0x38')][_0x58e5('0x14')](_0x58bb63))return;const _0x585b6c=this[_0x58e5('0x38')][_0x58e5('0x21')](_0x58bb63)[_0x58e5('0x23')],_0x40257e=function(){const _0x53e990=_0x23aed9[_0x58e5('0x2c')];return[_0x53e990['southArrowNorthEast'],_0x53e990[_0x58e5('0xc')],_0x53e990['southArrowNorth'],_0x53e990['northArrowSouth'],_0x53e990[_0x58e5('0x34')],_0x53e990[_0x58e5('0x12')]];}();this['balloonPanelView'][_0x58e5('0x36')]({'target':_0x585b6c,'positions':_0x40257e});}['_hideBalloon'](){const _0xb05b2a=this[_0x58e5('0x30')],_0x14f037=_0xb05b2a[_0x58e5('0x19')]['first'];_0x14f037&&(this[_0x58e5('0x55')](_0x14f037),_0xb05b2a[_0x58e5('0x2d')](),_0xb05b2a[_0x58e5('0x19')]['clear']());}['_attachListeners'](_0x7c7e73){this[_0x58e5('0x4')](_0x7c7e73,_0x58e5('0x1d'),()=>this['_updateBalloonPosition']()),this['listenTo'](_0x7c7e73,'Esc',(_0x2105a9,_0x3bd61f)=>{this[_0x58e5('0x1')][_0x58e5('0x4c')](_0x7c7e73),this[_0x58e5('0x43')](),_0x3bd61f();});}[_0x58e5('0x55')](_0x1c3044){this[_0x58e5('0x4e')](_0x1c3044);}}
23
+ const _0x4109=['bodyCollection','_detachListeners','isVisible','_refreshPositioning','preventClosingBalloon','EditorAnnotations','length','_integrateWithEditorAnnotations','Esc','blur','keyCode','_attachToContainer','_detachFromContainer','context','has','refresh','_updateBalloonPosition','first','execute','mousedown','_hideBalloon','isAttached','view','change:container','remove','off','southArrowNorth','from','resize','editors','element','_throttledRefreshPositioning','pin','detach','get','addEventListener','getSidebarItemView','unpin','_showBalloon','register','narrowSidebar','detachFromDom','rearrange','focus','cancel','stop','setActiveAnnotation','_domEmitter','clear','delete','narrowsidebar-attach-already-attached','_attachListeners','locale','_setSelectedAnnotations','_editorAnnotations','_annotations','_selectedAnnotations','getByView','set','hasDomSelection','removeEventListener','_destroyEditorAnnotationsIntegration','values','includes','uiUpdate','refreshPositioning','add','attach','type','init','listenTo','attachToDom','northArrowSouthWest','_annotationToNarrowView','set:container','target','plugins','activeAnnotation','destroy','isDirty','northArrowSouth','stopListening','content','_manuallyClosedAnnotationViews','pluginName','getOrderedSelectedAnnotations','balloonPanelView','bind','contains'];(function(_0x2b08ca,_0x4109ef){const _0x149e60=function(_0x47c522){while(--_0x47c522){_0x2b08ca['push'](_0x2b08ca['shift']());}};_0x149e60(++_0x4109ef);}(_0x4109,0x118));const _0x149e=function(_0x2b08ca,_0x4109ef){_0x2b08ca=_0x2b08ca-0x0;let _0x149e60=_0x4109[_0x2b08ca];return _0x149e60;};import{ContextPlugin as _0x41d2a7}from'ckeditor5/src/core';import _0x25ca17 from'./annotationsuis';import _0x3730a4 from'./sidebar';import _0xddd155 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x344a29,BodyCollection as _0x394ed0}from'ckeditor5/src/ui';import{CKEditorError as _0x2a189d,DomEmitterMixin as _0xbe4cda,keyCodes as _0x20d6be,Collection as _0x2da181}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x26e246}from'lodash-es';export default class s extends _0x41d2a7{static get['requires'](){return[_0x3730a4,_0x25ca17];}static get[_0x149e('0x47')](){return'NarrowSidebar';}constructor(_0x20a24b){super(_0x20a24b),this[_0x149e('0x8')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0x149e('0x22')]=Object['create'](_0xbe4cda),this['_annotationToNarrowView']=new Map(),this[_0x149e('0x2d')](_0x149e('0x40'),null),this['_annotations']=null,this[_0x149e('0x2b')]=[],this['_editorAnnotations']=new _0x2da181(),this['_throttledRefreshPositioning']=_0x26e246(()=>{this[_0x149e('0x4f')]();},0x190,{'leading':!0x1});}[_0x149e('0x38')](){this[_0x149e('0x0')][_0x149e('0x3f')][_0x149e('0x15')](_0x25ca17)[_0x149e('0x1a')](_0x149e('0x1b'),this),this[_0x149e('0x4c')]=new _0x394ed0(this[_0x149e('0x0')][_0x149e('0x27')]),this[_0x149e('0x49')]=new _0x344a29(this[_0x149e('0x0')][_0x149e('0x27')]),this['bodyCollection'][_0x149e('0x3a')](),this['bodyCollection'][_0x149e('0x35')](this['balloonPanelView']);}[_0x149e('0x36')](_0x1c4ee3){this[_0x149e('0x2a')]=_0x1c4ee3;const _0x3146e2=this['context'][_0x149e('0x3f')][_0x149e('0x15')](_0x3730a4),_0x3b539d=this['balloonPanelView'];if(_0x3146e2[_0x149e('0x2a')]=_0x1c4ee3,this['isAttached'])throw new _0x2a189d(_0x149e('0x25'),this);this[_0x149e('0x8')]=!0x0,this[_0x149e('0x39')](_0x3146e2,_0x149e('0x3d'),()=>{this[_0x149e('0x14')](),this[_0x149e('0x39')](_0x3146e2,_0x149e('0xa'),_0x1e5241=>{_0x1e5241[_0x149e('0xc')](),this[_0x149e('0x36')](_0x1c4ee3);});}),_0x3146e2[_0x149e('0x57')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x4603f4=_0x38e9df=>{const _0x504c28=new _0xddd155(this[_0x149e('0x0')][_0x149e('0x27')]);_0x3146e2['addAnnotation'](_0x38e9df,_0x504c28),this[_0x149e('0x3c')][_0x149e('0x2d')](_0x38e9df,_0x504c28),_0x504c28[_0x149e('0x4a')](_0x149e('0x42'),'annotationType','number')['to'](_0x38e9df['view'],_0x149e('0x42'),_0x149e('0x37'),_0x149e('0x52')),_0x504c28['on'](_0x149e('0x5'),()=>{this[_0x149e('0x46')][_0x149e('0x23')](),_0x3b539d[_0x149e('0x45')][_0x149e('0x4')]!==_0x38e9df[_0x149e('0x9')]?(this[_0x149e('0x19')](_0x38e9df),_0x38e9df[_0x149e('0x9')][_0x149e('0x11')][_0x149e('0x1e')](),this[_0x149e('0x21')](_0x38e9df)):this[_0x149e('0x21')](null);});};for(const _0x357fc9 of _0x1c4ee3)_0x4603f4(_0x357fc9);this[_0x149e('0x39')](_0x1c4ee3,_0x149e('0x35'),(_0x3e133b,_0x194e73)=>{_0x4603f4(_0x194e73);}),this['listenTo'](_0x1c4ee3,_0x149e('0xb'),(_0x49f730,_0x31d7d4,_0x26ad97)=>{this[_0x149e('0x3c')][_0x149e('0x15')](_0x31d7d4)[_0x149e('0x41')](),this[_0x149e('0x3c')][_0x149e('0x24')](_0x31d7d4),_0x3146e2[_0x149e('0x1d')]({'removedAnnotation':_0x31d7d4,'previousAnnotation':_0x1c4ee3[_0x149e('0x15')](_0x26ad97-0x1),'nextAnnotation':_0x1c4ee3[_0x149e('0x15')](_0x26ad97+0x1)}),_0x31d7d4===this[_0x149e('0x40')]&&this[_0x149e('0x21')](null);},{'priority':'low'}),this['listenTo'](_0x1c4ee3,_0x149e('0x1e'),(_0x548029,_0x35351c)=>{this['setActiveAnnotation'](_0x35351c);}),this[_0x149e('0x39')](_0x1c4ee3,_0x149e('0x55'),()=>{this[_0x149e('0x21')](null);}),this[_0x149e('0x22')]['listenTo'](document,'keydown',(_0x281091,_0x454dcc)=>{_0x454dcc[_0x149e('0x56')]===_0x20d6be['esc']&&_0x3b539d[_0x149e('0x4e')]&&(this['_manuallyClosedAnnotationViews'][_0x149e('0x35')](_0x3b539d[_0x149e('0x45')][_0x149e('0x4')]),this[_0x149e('0x7')](),_0x454dcc['stopPropagation'](),_0x454dcc['preventDefault']());}),this[_0x149e('0x22')]['listenTo'](document,_0x149e('0x6'),(_0x5c8b83,_0x2050d7)=>{const _0x480aab=_0x2050d7[_0x149e('0x3e')];_0x3b539d[_0x149e('0x4e')]&&_0x3b539d[_0x149e('0x11')][_0x149e('0x4b')](_0x480aab)||_0x3146e2[_0x149e('0x9')]['element'][_0x149e('0x4b')](_0x480aab)||_0x5c8b83[_0x149e('0x50')]||(this[_0x149e('0x46')][_0x149e('0x23')](),this[_0x149e('0x7')](),this[_0x149e('0x21')](null));});const _0x2b42e2=this[_0x149e('0x0')]['editors']?this[_0x149e('0x0')][_0x149e('0x10')]:new _0x2da181([this[_0x149e('0x0')]]);for(const _0x4f5ae3 of _0x2b42e2)this['_integrateWithEditorAnnotations'](_0x4f5ae3);this['listenTo'](_0x2b42e2,_0x149e('0x35'),(_0x222a5e,_0x18cb84)=>{this['listenTo'](_0x18cb84,'ready',()=>{this[_0x149e('0x53')](_0x18cb84);});}),this[_0x149e('0x39')](_0x2b42e2,_0x149e('0xb'),(_0x59d793,_0x58b7fd)=>{_0x58b7fd[_0x149e('0x3f')]['has'](_0x149e('0x51'))&&this[_0x149e('0x30')](_0x58b7fd[_0x149e('0x3f')][_0x149e('0x15')](_0x149e('0x51')));}),window[_0x149e('0x16')](_0x149e('0xf'),this[_0x149e('0x12')]),this[_0x149e('0x4f')]();}['setActiveAnnotation'](_0x28f6b8){if(_0x28f6b8===this[_0x149e('0x40')])return;const _0x2eac12=this[_0x149e('0x0')]['plugins']['get']('Sidebar');if(_0x2eac12[_0x149e('0x2')]({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x28f6b8,'disableAnimationOnActivatedAnnotation':!0x0}),_0x28f6b8)_0x2eac12[_0x149e('0x17')](_0x28f6b8)?this[_0x149e('0x19')](_0x28f6b8):this[_0x149e('0x7')]();else this[_0x149e('0x7')]();this[_0x149e('0x40')]=_0x28f6b8;}['detach'](){if(!this[_0x149e('0x8')])throw new _0x2a189d('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x17c60b=this[_0x149e('0x0')][_0x149e('0x3f')]['get']('Sidebar');this[_0x149e('0x7')](),Array[_0x149e('0xe')](this[_0x149e('0x3c')][_0x149e('0x31')](),_0x396d0e=>_0x396d0e[_0x149e('0x41')]()),this[_0x149e('0x3c')]['clear'](),_0x17c60b[_0x149e('0x58')](this[_0x149e('0x2a')]),this[_0x149e('0x44')](),this[_0x149e('0x22')][_0x149e('0x44')](),this['stopListening'](this[_0x149e('0x0')][_0x149e('0x10')]);for(const _0x57076b of Array['from'](this['_editorAnnotations']))this[_0x149e('0x30')](_0x57076b);window[_0x149e('0x2f')](_0x149e('0xf'),this['_throttledRefreshPositioning']),this[_0x149e('0x12')][_0x149e('0x1f')](),this[_0x149e('0x2b')]=[],this['isAttached']=!0x1,this[_0x149e('0x2a')]=null;}[_0x149e('0x41')](){this[_0x149e('0x8')]&&this[_0x149e('0x14')](),this[_0x149e('0x4c')][_0x149e('0x1c')]();}[_0x149e('0x53')](_0x40a17f){const _0x1a5c1b=_0x40a17f[_0x149e('0x3f')][_0x149e('0x15')](_0x149e('0x51')),_0x29634d=this[_0x149e('0x0')]['plugins'][_0x149e('0x15')](_0x3730a4),_0x1ed67f=this[_0x149e('0x2a')],_0x31f84c=this['balloonPanelView'],_0x3de6cc=()=>{const _0x5969e4=_0x1a5c1b[_0x149e('0x48')]({'activeAnnotation':this[_0x149e('0x40')],'annotations':this[_0x149e('0x2a')]});this[_0x149e('0x28')](_0x5969e4),this['setActiveAnnotation'](_0x5969e4[0x0]||null);};this[_0x149e('0x39')](_0x1a5c1b,_0x149e('0x2'),_0x3de6cc),this['listenTo'](_0x1a5c1b,_0x149e('0x55'),(_0xb4f5a8,{isAnnotationTracked:_0x4033ab})=>{this[_0x149e('0x40')]&&_0x4033ab(this[_0x149e('0x40')])&&(this[_0x149e('0x28')]([]),this[_0x149e('0x21')](null));}),this[_0x149e('0x39')](_0x1a5c1b,_0x149e('0x33'),()=>{this['_throttledRefreshPositioning']();}),this['listenTo'](_0x1ed67f,_0x149e('0x55'),_0x358abf=>{_0x1a5c1b['hasDomSelection']()&&_0x358abf[_0x149e('0x20')]();},{'priority':'high'}),this[_0x149e('0x22')]['listenTo'](document,_0x149e('0x6'),(_0x53d272,_0xa64762)=>{const _0x1a9a36=_0xa64762[_0x149e('0x3e')];_0x31f84c['isVisible']&&_0x31f84c[_0x149e('0x11')][_0x149e('0x4b')](_0x1a9a36)||_0x29634d[_0x149e('0x9')][_0x149e('0x11')][_0x149e('0x4b')](_0x1a9a36)||this['activeAnnotation']&&_0x1a5c1b[_0x149e('0x2e')]()&&(_0x3de6cc(),_0x53d272[_0x149e('0x50')]=!0x0);},{'priority':'high'}),this[_0x149e('0x29')]['add'](_0x1a5c1b);}[_0x149e('0x30')](_0x2f2da3){_0x2f2da3&&(this[_0x149e('0x44')](_0x2f2da3),this[_0x149e('0x29')][_0x149e('0xb')](_0x2f2da3));}[_0x149e('0x28')](_0x4d5959){for(const _0x5b0f21 of this[_0x149e('0x2b')])_0x4d5959[_0x149e('0x32')](_0x5b0f21)||this['_manuallyClosedAnnotationViews'][_0x149e('0x24')](_0x5b0f21[_0x149e('0x9')]);this[_0x149e('0x2b')]=_0x4d5959;}['_refreshPositioning'](){const _0x5086aa=this[_0x149e('0x49')];this['_annotations'][_0x149e('0x34')](),_0x5086aa[_0x149e('0x4e')]&&this[_0x149e('0x3')]();}[_0x149e('0x19')](_0x14cabe){if(this[_0x149e('0x46')][_0x149e('0x1')](_0x14cabe[_0x149e('0x9')]))return;const _0x5bcf79=this[_0x149e('0x49')]['content'][_0x149e('0x4')];_0x5bcf79!==_0x14cabe[_0x149e('0x9')]?(_0x5bcf79&&this[_0x149e('0x4d')](_0x5bcf79),this['_attachListeners'](_0x14cabe[_0x149e('0x9')]),this[_0x149e('0x49')]['content'][_0x149e('0x23')](),this[_0x149e('0x49')][_0x149e('0x45')][_0x149e('0x35')](_0x14cabe['view']),this[_0x149e('0x3')]()):this[_0x149e('0x3')]();}[_0x149e('0x3')](){const _0x423ad5=this['balloonPanelView'][_0x149e('0x45')][_0x149e('0x4')],_0x141e2b=this[_0x149e('0x2a')][_0x149e('0x2c')](_0x423ad5);if(!this[_0x149e('0x3c')][_0x149e('0x1')](_0x141e2b))return;const _0x5a683e=this[_0x149e('0x3c')][_0x149e('0x15')](_0x141e2b)[_0x149e('0x11')],_0x2ff870=function(){const _0x32b428=_0x344a29['defaultPositions'];return[_0x32b428['southArrowNorthEast'],_0x32b428['northArrowSouthEast'],_0x32b428[_0x149e('0xd')],_0x32b428[_0x149e('0x43')],_0x32b428['southArrowNorthWest'],_0x32b428[_0x149e('0x3b')]];}();this[_0x149e('0x49')][_0x149e('0x13')]({'target':_0x5a683e,'positions':_0x2ff870});}[_0x149e('0x7')](){const _0x2618b0=this[_0x149e('0x49')],_0x4488d9=_0x2618b0[_0x149e('0x45')][_0x149e('0x4')];_0x4488d9&&(this[_0x149e('0x4d')](_0x4488d9),_0x2618b0[_0x149e('0x18')](),_0x2618b0['content'][_0x149e('0x23')]());}[_0x149e('0x26')](_0x38d527){this[_0x149e('0x39')](_0x38d527,'change:height',()=>this[_0x149e('0x3')]()),this['listenTo'](_0x38d527,_0x149e('0x54'),(_0x58342e,_0x375260)=>{this[_0x149e('0x46')]['add'](_0x38d527),this[_0x149e('0x7')](),_0x375260();});}[_0x149e('0x4d')](_0x409a70){this['stopListening'](_0x409a70);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x6aa8=['view','_updateLastItem','bind','_sidebarItemViewToAnnotation','refresh','_annotations','container','sidebar.container','isAnimationDisabled','content','_alignAfterItem','getSidebarItemView','context','_getItemAfter','updateHeight','Sidebar','_getTargetTop','top','locale','isActive','_spaceBetweenItems','sidebar.preventScrollOutOfView','get','set','target','unbind','_setItemTop','listenTo','_detachFromContainer','minHeight','appendChild','element','change:top','getIndex','sidebar-setcontainer-invalid-element','stopListening','config','clear','remove','sidebar-attachtocontainer-missing-container','setContainer','bottom','_targetTop','_activeAnnotation','_alignBeforeItem','_alignToTargetRect','max','_destroySidebarItemView','_attachToContainer','init','targetRect','delete','add','_annotationToSidebarItemView','length','destroy','_lastItem','define','change:bottom','_getItemBefore','list','_createSidebarView','_getMaxAvailableTop'];(function(_0x36668f,_0x6aa844){const _0x323597=function(_0x4db177){while(--_0x4db177){_0x36668f['push'](_0x36668f['shift']());}};_0x323597(++_0x6aa844);}(_0x6aa8,0x148));const _0x3235=function(_0x36668f,_0x6aa844){_0x36668f=_0x36668f-0x0;let _0x323597=_0x6aa8[_0x36668f];return _0x323597;};import{ContextPlugin as _0x1fef07}from'ckeditor5/src/core';import _0xdee877 from'./view/sidebarview';import _0x2ac473 from'./view/sidebaritemview';import{Rect as _0x5daed1,CKEditorError as _0xadd2ea}from'ckeditor5/src/utils';import{isElement as _0x1858a1,throttle as _0x3148b1}from'lodash-es';export default class b extends _0x1fef07{static get['pluginName'](){return _0x3235('0x2');}constructor(_0xbd9b9c){super(_0xbd9b9c),this[_0x3235('0xa')]('_lastItem'),this[_0x3235('0x32')]=this['_createSidebarView'](),this[_0x3235('0xa')]('container',null),this[_0x3235('0x7')]=0x19,this[_0x3235('0x35')]=new Map(),this[_0x3235('0x28')]=new Map(),this[_0x3235('0x3e')]['config'][_0x3235('0x2c')](_0x3235('0x8'),!0x1),this['_annotations']=null,this[_0x3235('0x1e')]=null;}[_0x3235('0x24')](){const _0x51826e=this[_0x3235('0x3e')][_0x3235('0x17')][_0x3235('0x9')](_0x3235('0x39'));_0x51826e&&this[_0x3235('0x1b')](_0x51826e);}['setContainer'](_0x3205df){if(!_0x1858a1(_0x3205df))throw new _0xadd2ea(_0x3235('0x15'));this['container']=_0x3205df;}[_0x3235('0x23')]({viewClass:_0x475f80='',spaceBetweenItems:_0x2937d8=0x19}={}){if(!_0x1858a1(this[_0x3235('0x38')]))throw new _0xadd2ea(_0x3235('0x1a'),this);this[_0x3235('0x38')][_0x3235('0x11')](this['view']['element']),this[_0x3235('0x32')]['class']=_0x475f80,this[_0x3235('0x7')]=_0x2937d8;}['rearrange']({removedAnnotation:_0x573a0a,previousAnnotation:_0x2b914f,nextAnnotation:_0x59b599}){const _0xee054b=this['getSidebarItemView'](_0x573a0a);this[_0x3235('0x32')][_0x3235('0x2f')][_0x3235('0x19')](_0xee054b),this['_destroySidebarItemView'](_0x573a0a),_0x2b914f&&this[_0x3235('0x20')](this[_0x3235('0x3d')](_0x2b914f)),_0x59b599&&this[_0x3235('0x20')](this[_0x3235('0x3d')](_0x59b599)),this[_0x3235('0x33')]();}[_0x3235('0x36')]({blurredAnnotation:_0x30ca68,activatedAnnotation:_0x21708b,disableAnimationOnActivatedAnnotation:_0x165f85}){if(this['_activeAnnotation']=_0x21708b,_0x30ca68){_0x30ca68[_0x3235('0x6')]=!0x1;const _0x1560cf=this[_0x3235('0x3d')](_0x30ca68);_0x1560cf&&_0x165f85&&(_0x1560cf['isAnimationDisabled']=!0x1);}if(_0x21708b){const _0x43cf0b=this[_0x3235('0x3d')](_0x21708b);_0x43cf0b&&(_0x21708b[_0x3235('0x6')]=!0x0,_0x165f85&&(_0x43cf0b[_0x3235('0x3a')]=!0x0,_0x43cf0b[_0x3235('0x4')]+=0x1),this[_0x3235('0x20')](_0x43cf0b));}}[_0x3235('0xf')](_0x147c17){this[_0x3235('0x16')](),this[_0x3235('0x32')][_0x3235('0x12')][_0x3235('0x19')]();for(const _0x2d7935 of _0x147c17)this['_destroySidebarItemView'](_0x2d7935);this[_0x3235('0x32')][_0x3235('0x2f')][_0x3235('0x18')](),this[_0x3235('0x32')]['class']='',this[_0x3235('0x2b')]=null;}['addAnnotation'](_0x5dac3f,_0x4bf18c){_0x4bf18c||(_0x4bf18c=_0x5dac3f[_0x3235('0x32')]);const _0x5d8c57=new _0x2ac473(this[_0x3235('0x3e')][_0x3235('0x5')]);this['_sidebarItemViewToAnnotation'][_0x3235('0xa')](_0x5d8c57,_0x5dac3f),this[_0x3235('0x28')][_0x3235('0xa')](_0x5dac3f,_0x5d8c57),_0x5d8c57[_0x3235('0x3b')][_0x3235('0x27')](_0x4bf18c),this[_0x3235('0x20')](_0x5d8c57),this[_0x3235('0xe')](_0x5dac3f[_0x3235('0x32')],'change:targetRect',()=>{const _0x2993d8=this[_0x3235('0x3')](_0x5d8c57);_0x5d8c57[_0x3235('0x1d')]!=_0x2993d8&&(_0x5d8c57[_0x3235('0x1d')]=_0x2993d8,this[_0x3235('0xd')](_0x5d8c57,_0x2993d8));}),this[_0x3235('0xe')](_0x5d8c57,_0x3235('0x13'),_0x3148b1(()=>{if(!_0x5d8c57[_0x3235('0x3b')][_0x3235('0x29')])return;const _0x1943ba=this[_0x3235('0x2e')](_0x5d8c57);if(!_0x1943ba)return;const _0x2bc91c=this[_0x3235('0x35')][_0x3235('0x9')](_0x1943ba),_0x44ef8e=this[_0x3235('0x1e')];_0x44ef8e&&_0x44ef8e===_0x2bc91c?this[_0x3235('0x3c')](_0x1943ba,_0x5d8c57):this[_0x3235('0x1f')](_0x5d8c57,_0x1943ba);},0xa,{'leading':!0x1})),this[_0x3235('0xe')](_0x5d8c57,_0x3235('0x2d'),_0x3148b1(()=>{if(!_0x5d8c57['content'][_0x3235('0x29')])return;const _0x28594a=this[_0x3235('0x0')](_0x5d8c57);if(!_0x28594a)return;const _0x337d2a=this['_sidebarItemViewToAnnotation'][_0x3235('0x9')](_0x28594a),_0x33b2a7=this[_0x3235('0x3e')]['config'][_0x3235('0x9')](_0x3235('0x8')),_0x5b75d5=this['_activeAnnotation'];_0x5b75d5&&_0x5b75d5===_0x337d2a&&_0x33b2a7?(this[_0x3235('0x1f')](_0x28594a,_0x5d8c57),this[_0x3235('0x3c')](_0x5d8c57,_0x28594a)):_0x5b75d5&&_0x5b75d5===_0x337d2a?this[_0x3235('0x1f')](_0x28594a,_0x5d8c57):this[_0x3235('0x3c')](_0x5d8c57,_0x28594a);},0xa,{'leading':!0x1}));const _0x1c8257=this[_0x3235('0x2e')](_0x5d8c57);if(_0x1c8257)this[_0x3235('0x3c')](_0x1c8257,_0x5d8c57)||this['_alignToTargetRect'](_0x5d8c57);else this['_alignToTargetRect'](_0x5d8c57);return this[_0x3235('0x33')](),this['view']['list'][_0x3235('0x27')](_0x5d8c57),_0x5d8c57;}[_0x3235('0x3d')](_0x228598){return this[_0x3235('0x28')][_0x3235('0x9')](_0x228598);}[_0x3235('0x2a')](){this[_0x3235('0x32')][_0x3235('0x2a')]();}[_0x3235('0x22')](_0x3f5415){const _0x32470a=this[_0x3235('0x3d')](_0x3f5415);this[_0x3235('0x16')](_0x32470a),this[_0x3235('0x16')](_0x3f5415[_0x3235('0x32')]),_0x32470a[_0x3235('0x2a')](),this[_0x3235('0x28')]['delete'](_0x3f5415),this['_sidebarItemViewToAnnotation'][_0x3235('0x26')](_0x32470a);}[_0x3235('0x30')](){const _0x256edf=new _0xdee877(this[_0x3235('0x3e')][_0x3235('0x5')]);return _0x256edf['render'](),this['on']('change:_lastItem',(_0x4ad207,_0x3688a0,_0x1edf15,_0x15da7b)=>{_0x15da7b&&_0x256edf[_0x3235('0xc')](_0x3235('0x10')),_0x1edf15?_0x256edf[_0x3235('0x34')](_0x3235('0x10'))['to'](_0x1edf15,_0x3235('0x1c')):_0x256edf['minHeight']=null;}),_0x256edf;}[_0x3235('0x33')](){this[_0x3235('0x2b')]=this['getSidebarItemView'](this[_0x3235('0x37')]['last']);}[_0x3235('0x2e')](_0x2f908a){const _0x3cdc6b=this['_sidebarItemViewToAnnotation']['get'](_0x2f908a),_0x599ff3=this['_annotations'][_0x3235('0x9')](this['_annotations'][_0x3235('0x14')](_0x3cdc6b)-0x1);return _0x599ff3&&this[_0x3235('0x3d')](_0x599ff3);}['_getItemAfter'](_0x2cc8d1){const _0x5cff89=this[_0x3235('0x35')]['get'](_0x2cc8d1),_0x2648ba=this[_0x3235('0x37')]['get'](this[_0x3235('0x37')][_0x3235('0x14')](_0x5cff89)+0x1);return _0x2648ba&&this[_0x3235('0x3d')](_0x2648ba);}[_0x3235('0x1f')](_0x358608,_0x5b65c9){_0x358608['updateHeight']();const _0x298a78=H(_0x5b65c9[_0x3235('0x1c')]+this[_0x3235('0x7')],_0x358608[_0x3235('0x4')]);return!!_0x298a78&&(this[_0x3235('0xd')](_0x5b65c9,_0x5b65c9[_0x3235('0x4')]-_0x298a78),!0x0);}[_0x3235('0x3c')](_0x5673ae,_0x3e5888){_0x5673ae[_0x3235('0x1')]();const _0x10841d=H(_0x5673ae[_0x3235('0x1c')]+this['_spaceBetweenItems'],_0x3e5888[_0x3235('0x4')]);return!!_0x10841d&&(this['_setItemTop'](_0x3e5888,_0x3e5888[_0x3235('0x4')]+_0x10841d,!0x1),!0x0);}[_0x3235('0x20')](_0x23f142){const _0x3a04c2=this[_0x3235('0x35')][_0x3235('0x9')](_0x23f142);if(!_0x3a04c2||!_0x3a04c2[_0x3235('0xb')])return;const _0x596c83=this['_getTargetTop'](_0x23f142);this[_0x3235('0xd')](_0x23f142,_0x596c83);}['_getTargetTop'](_0xc2d715){const _0x29701a=this[_0x3235('0x35')][_0x3235('0x9')](_0xc2d715);if(null===_0x29701a[_0x3235('0x25')])return 0x0;if(_0x29701a[_0x3235('0xb')]instanceof _0x5daed1)return _0x29701a[_0x3235('0x25')][_0x3235('0x4')];{const _0x54d584=new _0x5daed1(this['view'][_0x3235('0x12')])[_0x3235('0x4')];return _0x29701a[_0x3235('0x25')][_0x3235('0x4')]-_0x54d584;}}[_0x3235('0xd')](_0x417629,_0x31890e,_0x5f04dc=this[_0x3235('0x3e')][_0x3235('0x17')][_0x3235('0x9')](_0x3235('0x8'))){_0x5f04dc&&(_0x31890e=Math[_0x3235('0x21')](_0x31890e,this[_0x3235('0x31')](_0x417629))),_0x417629['top']=_0x31890e;}[_0x3235('0x31')](_0x18e052){let _0x8da68c=this[_0x3235('0x2e')](_0x18e052),_0x4ffa46=0x0;for(;_0x8da68c;)_0x8da68c['updateHeight'](),_0x4ffa46+=this[_0x3235('0x7')]+_0x8da68c['height'],_0x8da68c=this[_0x3235('0x2e')](_0x8da68c);return _0x4ffa46;}}function H(_0x57938b,_0x425b67){return Math[_0x3235('0x21')](_0x57938b-_0x425b67,0x0);}
23
+ const _0x4eea=['_detachFromContainer','addAnnotation','destroy','_getItemBefore','render','height','content','minHeight','listenTo','define','add','getSidebarItemView','_getTargetTop','getIndex','isAnimationDisabled','_getMaxAvailableTop','view','bottom','pluginName','_alignBeforeItem','isActive','_destroySidebarItemView','_spaceBetweenItems','stopListening','list','delete','_setItemTop','target','sidebar-setcontainer-invalid-element','_sidebarItemViewToAnnotation','_targetTop','class','rearrange','refresh','context','config','change:bottom','_annotations','_annotationToSidebarItemView','init','sidebar-attachtocontainer-missing-container','remove','_updateLastItem','sidebar.preventScrollOutOfView','_createSidebarView','locale','appendChild','_alignToTargetRect','Sidebar','_alignAfterItem','set','container','sidebar.container','get','setContainer','updateHeight','max','top','_activeAnnotation','element','_attachToContainer','_lastItem','targetRect','length','_getItemAfter'];(function(_0x3ae4af,_0x4eea32){const _0x3ee09d=function(_0x15aab5){while(--_0x15aab5){_0x3ae4af['push'](_0x3ae4af['shift']());}};_0x3ee09d(++_0x4eea32);}(_0x4eea,0x15b));const _0x3ee0=function(_0x3ae4af,_0x4eea32){_0x3ae4af=_0x3ae4af-0x0;let _0x3ee09d=_0x4eea[_0x3ae4af];return _0x3ee09d;};import{ContextPlugin as _0x68dfe1}from'ckeditor5/src/core';import _0x51e552 from'./view/sidebarview';import _0x25479c from'./view/sidebaritemview';import{Rect as _0x58211e,CKEditorError as _0x12c62f}from'ckeditor5/src/utils';import{isElement as _0x54a130,throttle as _0x34f717}from'lodash-es';export default class it extends _0x68dfe1{static get[_0x3ee0('0x3d')](){return _0x3ee0('0x1a');}constructor(_0x41dbad){super(_0x41dbad),this[_0x3ee0('0x1c')](_0x3ee0('0x27')),this[_0x3ee0('0x3b')]=this[_0x3ee0('0x16')](),this[_0x3ee0('0x1c')](_0x3ee0('0x1d'),null),this[_0x3ee0('0x0')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x3ee0('0x10')]=new Map(),this[_0x3ee0('0xc')][_0x3ee0('0xd')][_0x3ee0('0x34')](_0x3ee0('0x15'),!0x1),this[_0x3ee0('0xf')]=null,this[_0x3ee0('0x24')]=null;}[_0x3ee0('0x11')](){const _0xe5e9df=this['context'][_0x3ee0('0xd')]['get'](_0x3ee0('0x1e'));_0xe5e9df&&this['setContainer'](_0xe5e9df);}[_0x3ee0('0x20')](_0x40e5f4){if(!_0x54a130(_0x40e5f4))throw new _0x12c62f(_0x3ee0('0x6'));this[_0x3ee0('0x1d')]=_0x40e5f4;}[_0x3ee0('0x26')]({viewClass:_0x52a4d9='',spaceBetweenItems:_0x17ed67=0x19}={}){if(!_0x54a130(this['container']))throw new _0x12c62f(_0x3ee0('0x12'),this);this[_0x3ee0('0x1d')][_0x3ee0('0x18')](this[_0x3ee0('0x3b')]['element']),this[_0x3ee0('0x3b')]['class']=_0x52a4d9,this[_0x3ee0('0x0')]=_0x17ed67;}[_0x3ee0('0xa')]({removedAnnotation:_0x10e1af,previousAnnotation:_0x55aadb,nextAnnotation:_0x454736}){const _0xdde4b3=this[_0x3ee0('0x36')](_0x10e1af);this[_0x3ee0('0x3b')]['list'][_0x3ee0('0x13')](_0xdde4b3),this[_0x3ee0('0x40')](_0x10e1af),_0x55aadb&&this[_0x3ee0('0x19')](this[_0x3ee0('0x36')](_0x55aadb)),_0x454736&&this['_alignToTargetRect'](this[_0x3ee0('0x36')](_0x454736)),this[_0x3ee0('0x14')]();}[_0x3ee0('0xb')]({blurredAnnotation:_0x3e0441,activatedAnnotation:_0xc7966d,disableAnimationOnActivatedAnnotation:_0xa5e066}){if(this['_activeAnnotation']=_0xc7966d,_0x3e0441){_0x3e0441[_0x3ee0('0x3f')]=!0x1;const _0x385766=this[_0x3ee0('0x36')](_0x3e0441);_0x385766&&_0xa5e066&&(_0x385766[_0x3ee0('0x39')]=!0x1);}if(_0xc7966d){const _0x59b1b2=this[_0x3ee0('0x36')](_0xc7966d);_0x59b1b2&&(_0xc7966d[_0x3ee0('0x3f')]=!0x0,_0xa5e066&&(_0x59b1b2[_0x3ee0('0x39')]=!0x0,_0x59b1b2[_0x3ee0('0x23')]+=0x1),this[_0x3ee0('0x19')](_0x59b1b2));}}[_0x3ee0('0x2b')](_0x4b1f35){this[_0x3ee0('0x1')](),this[_0x3ee0('0x3b')][_0x3ee0('0x25')][_0x3ee0('0x13')]();for(const _0x371891 of _0x4b1f35)this[_0x3ee0('0x40')](_0x371891);this[_0x3ee0('0x3b')][_0x3ee0('0x2')]['clear'](),this['view'][_0x3ee0('0x9')]='',this['_lastItem']=null;}[_0x3ee0('0x2c')](_0x319d22,_0x3836c3){_0x3836c3||(_0x3836c3=_0x319d22['view']);const _0x39eecc=new _0x25479c(this[_0x3ee0('0xc')][_0x3ee0('0x17')]);this['_sidebarItemViewToAnnotation'][_0x3ee0('0x1c')](_0x39eecc,_0x319d22),this[_0x3ee0('0x10')]['set'](_0x319d22,_0x39eecc),_0x39eecc['content'][_0x3ee0('0x35')](_0x3836c3),this[_0x3ee0('0x19')](_0x39eecc),this[_0x3ee0('0x33')](_0x319d22['view'],'change:targetRect',()=>{const _0x42a51b=this[_0x3ee0('0x37')](_0x39eecc);_0x39eecc[_0x3ee0('0x8')]!=_0x42a51b&&(_0x39eecc[_0x3ee0('0x8')]=_0x42a51b,this[_0x3ee0('0x4')](_0x39eecc,_0x42a51b));}),this['listenTo'](_0x39eecc,'change:top',_0x34f717(()=>{if(!_0x39eecc[_0x3ee0('0x31')][_0x3ee0('0x29')])return;const _0x5e69b7=this['_getItemBefore'](_0x39eecc);if(!_0x5e69b7)return;const _0x218afc=this[_0x3ee0('0x7')][_0x3ee0('0x1f')](_0x5e69b7),_0x5e71ed=this[_0x3ee0('0x24')];_0x5e71ed&&_0x5e71ed===_0x218afc?this[_0x3ee0('0x1b')](_0x5e69b7,_0x39eecc):this['_alignBeforeItem'](_0x39eecc,_0x5e69b7);},0xa,{'leading':!0x1})),this[_0x3ee0('0x33')](_0x39eecc,_0x3ee0('0xe'),_0x34f717(()=>{if(!_0x39eecc[_0x3ee0('0x31')][_0x3ee0('0x29')])return;const _0x32c47b=this[_0x3ee0('0x2a')](_0x39eecc);if(!_0x32c47b)return;const _0x59c6e9=this[_0x3ee0('0x7')][_0x3ee0('0x1f')](_0x32c47b),_0x26067e=this['context'][_0x3ee0('0xd')][_0x3ee0('0x1f')](_0x3ee0('0x15')),_0x14e459=this[_0x3ee0('0x24')];_0x14e459&&_0x14e459===_0x59c6e9&&_0x26067e?(this[_0x3ee0('0x3e')](_0x32c47b,_0x39eecc),this[_0x3ee0('0x1b')](_0x39eecc,_0x32c47b)):_0x14e459&&_0x14e459===_0x59c6e9?this[_0x3ee0('0x3e')](_0x32c47b,_0x39eecc):this[_0x3ee0('0x1b')](_0x39eecc,_0x32c47b);},0xa,{'leading':!0x1}));const _0x196184=this[_0x3ee0('0x2e')](_0x39eecc);if(_0x196184)this[_0x3ee0('0x1b')](_0x196184,_0x39eecc)||this[_0x3ee0('0x19')](_0x39eecc);else this[_0x3ee0('0x19')](_0x39eecc);return this[_0x3ee0('0x14')](),this['view'][_0x3ee0('0x2')][_0x3ee0('0x35')](_0x39eecc),_0x39eecc;}[_0x3ee0('0x36')](_0x2b7e83){return this[_0x3ee0('0x10')][_0x3ee0('0x1f')](_0x2b7e83);}[_0x3ee0('0x2d')](){this[_0x3ee0('0x3b')][_0x3ee0('0x2d')]();}[_0x3ee0('0x40')](_0x16182c){const _0x7b6795=this[_0x3ee0('0x36')](_0x16182c);this['stopListening'](_0x7b6795),this[_0x3ee0('0x1')](_0x16182c[_0x3ee0('0x3b')]),_0x7b6795[_0x3ee0('0x2d')](),this[_0x3ee0('0x10')][_0x3ee0('0x3')](_0x16182c),this['_sidebarItemViewToAnnotation'][_0x3ee0('0x3')](_0x7b6795);}['_createSidebarView'](){const _0x58d6eb=new _0x51e552(this[_0x3ee0('0xc')][_0x3ee0('0x17')]);return _0x58d6eb[_0x3ee0('0x2f')](),this['on']('change:_lastItem',(_0x497f81,_0x4a0e92,_0x566c8b,_0xa99dc9)=>{_0xa99dc9&&_0x58d6eb['unbind'](_0x3ee0('0x32')),_0x566c8b?_0x58d6eb['bind']('minHeight')['to'](_0x566c8b,_0x3ee0('0x3c')):_0x58d6eb[_0x3ee0('0x32')]=null;}),_0x58d6eb;}['_updateLastItem'](){this['_lastItem']=this['getSidebarItemView'](this[_0x3ee0('0xf')]['last']);}[_0x3ee0('0x2e')](_0x42e376){const _0x2ef8db=this['_sidebarItemViewToAnnotation'][_0x3ee0('0x1f')](_0x42e376),_0x1a6767=this[_0x3ee0('0xf')][_0x3ee0('0x1f')](this[_0x3ee0('0xf')]['getIndex'](_0x2ef8db)-0x1);return _0x1a6767&&this[_0x3ee0('0x36')](_0x1a6767);}[_0x3ee0('0x2a')](_0x1a0b25){const _0x387dab=this[_0x3ee0('0x7')][_0x3ee0('0x1f')](_0x1a0b25),_0x44fab4=this[_0x3ee0('0xf')][_0x3ee0('0x1f')](this[_0x3ee0('0xf')][_0x3ee0('0x38')](_0x387dab)+0x1);return _0x44fab4&&this['getSidebarItemView'](_0x44fab4);}[_0x3ee0('0x3e')](_0x1a9db9,_0x51c35e){_0x1a9db9['updateHeight']();const _0x514790=lt(_0x51c35e[_0x3ee0('0x3c')]+this[_0x3ee0('0x0')],_0x1a9db9[_0x3ee0('0x23')]);return!!_0x514790&&(this[_0x3ee0('0x4')](_0x51c35e,_0x51c35e['top']-_0x514790),!0x0);}[_0x3ee0('0x1b')](_0x3e12d3,_0x3d287d){_0x3e12d3[_0x3ee0('0x21')]();const _0x4d09d1=lt(_0x3e12d3[_0x3ee0('0x3c')]+this[_0x3ee0('0x0')],_0x3d287d['top']);return!!_0x4d09d1&&(this['_setItemTop'](_0x3d287d,_0x3d287d[_0x3ee0('0x23')]+_0x4d09d1,!0x1),!0x0);}[_0x3ee0('0x19')](_0x4a00b9){const _0x5d6591=this[_0x3ee0('0x7')][_0x3ee0('0x1f')](_0x4a00b9);if(!_0x5d6591||!_0x5d6591[_0x3ee0('0x5')])return;const _0x52ec68=this[_0x3ee0('0x37')](_0x4a00b9);this[_0x3ee0('0x4')](_0x4a00b9,_0x52ec68);}[_0x3ee0('0x37')](_0x48ff99){const _0x366983=this['_sidebarItemViewToAnnotation']['get'](_0x48ff99);if(null===_0x366983[_0x3ee0('0x28')])return 0x0;if(_0x366983['target']instanceof _0x58211e)return _0x366983[_0x3ee0('0x28')][_0x3ee0('0x23')];{const _0x5ee56b=new _0x58211e(this[_0x3ee0('0x3b')][_0x3ee0('0x25')])[_0x3ee0('0x23')];return _0x366983[_0x3ee0('0x28')][_0x3ee0('0x23')]-_0x5ee56b;}}[_0x3ee0('0x4')](_0x1593f6,_0x20dc09,_0x4f6385=this[_0x3ee0('0xc')][_0x3ee0('0xd')][_0x3ee0('0x1f')](_0x3ee0('0x15'))){_0x4f6385&&(_0x20dc09=Math[_0x3ee0('0x22')](_0x20dc09,this[_0x3ee0('0x3a')](_0x1593f6))),_0x1593f6[_0x3ee0('0x23')]=_0x20dc09;}[_0x3ee0('0x3a')](_0x47b95c){let _0xb404bb=this[_0x3ee0('0x2e')](_0x47b95c),_0x56044=0x0;for(;_0xb404bb;)_0xb404bb[_0x3ee0('0x21')](),_0x56044+=this[_0x3ee0('0x0')]+_0xb404bb[_0x3ee0('0x30')],_0xb404bb=this[_0x3ee0('0x2e')](_0xb404bb);return _0x56044;}}function lt(_0x12bdb5,_0x2f68f3){return Math[_0x3ee0('0x22')](_0x12bdb5-_0x2f68f3,0x0);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4f29=['bind','add','ck-annotation-counter','bindTemplate','isDirty','icon','setTemplate','children','ck-annotation-counter__badge--edit-mode','span','_badge','extendTemplate','number','counterView','annotationType','set'];(function(_0x22a084,_0x4f2914){const _0x559d55=function(_0x19e01f){while(--_0x19e01f){_0x22a084['push'](_0x22a084['shift']());}};_0x559d55(++_0x4f2914);}(_0x4f29,0xf5));const _0x559d=function(_0x22a084,_0x4f2914){_0x22a084=_0x22a084-0x0;let _0x559d55=_0x4f29[_0x22a084];return _0x559d55;};import{ButtonView as _0x165ede,View as _0x33533b}from'ckeditor5/src/ui';import _0x5bd713 from'../../../theme/icons/add-comment.svg';export default class B extends _0x165ede{constructor(_0x50c9f9){super(_0x50c9f9);const _0x2ca483=this[_0x559d('0xe')];this['set']('isDirty',!0x1),this[_0x559d('0xa')]('number',0x0),this[_0x559d('0xb')](_0x559d('0x5'))['to'](this,'isDirty',this,_0x559d('0x7'),(_0x58c579,_0xfe3fc1)=>_0x58c579?'...':_0xfe3fc1),this[_0x559d('0xa')]('annotationType',''),this[_0x559d('0x0')]=_0x5bd713,this[_0x559d('0x6')]({'attributes':{'class':[_0x559d('0xd')]}}),this['counterView']=new _0x33533b(),this[_0x559d('0x8')][_0x559d('0x1')]({'tag':_0x559d('0x4'),'attributes':{'class':['ck-annotation-counter__badge',_0x2ca483['to'](_0x559d('0x9'),_0x2bf509=>'ck-annotation-counter__badge--'+_0x2bf509),_0x2ca483['if'](_0x559d('0xf'),_0x559d('0x3'))]},'children':[{'text':_0x2ca483['to'](_0x559d('0x5'))}]}),this[_0x559d('0x2')][_0x559d('0xc')](this['counterView']);}}
23
+ const _0x5660=['isDirty','setTemplate','ck-annotation-counter','ck-annotation-counter__badge--edit-mode','span','ck-annotation-counter__badge--','icon','bindTemplate','number','...','ck-annotation-counter__badge','children','set','annotationType','counterView','_badge'];(function(_0x4e77b1,_0x5660d4){const _0xeb2b7d=function(_0x51cec7){while(--_0x51cec7){_0x4e77b1['push'](_0x4e77b1['shift']());}};_0xeb2b7d(++_0x5660d4);}(_0x5660,0x1ad));const _0xeb2b=function(_0x4e77b1,_0x5660d4){_0x4e77b1=_0x4e77b1-0x0;let _0xeb2b7d=_0x5660[_0x4e77b1];return _0xeb2b7d;};import{ButtonView as _0x3e25bf,View as _0x343d94}from'ckeditor5/src/ui';import _0x32c20a from'../../../theme/icons/add-comment.svg';export default class st extends _0x3e25bf{constructor(_0x53007f){super(_0x53007f);const _0x25088a=this[_0xeb2b('0xa')];this['set'](_0xeb2b('0x3'),!0x1),this[_0xeb2b('0xf')](_0xeb2b('0xb'),0x0),this['bind'](_0xeb2b('0x2'))['to'](this,_0xeb2b('0x3'),this,_0xeb2b('0xb'),(_0x3e3120,_0x2adb3a)=>_0x3e3120?_0xeb2b('0xc'):_0x2adb3a),this[_0xeb2b('0xf')](_0xeb2b('0x0'),''),this[_0xeb2b('0x9')]=_0x32c20a,this['extendTemplate']({'attributes':{'class':[_0xeb2b('0x5')]}}),this[_0xeb2b('0x1')]=new _0x343d94(),this[_0xeb2b('0x1')][_0xeb2b('0x4')]({'tag':_0xeb2b('0x7'),'attributes':{'class':[_0xeb2b('0xd'),_0x25088a['to'](_0xeb2b('0x0'),_0x32f22e=>_0xeb2b('0x8')+_0x32f22e),_0x25088a['if'](_0xeb2b('0x3'),_0xeb2b('0x6'))]},'children':[{'text':_0x25088a['to']('_badge')}]}),this[_0xeb2b('0xe')]['add'](this[_0xeb2b('0x1')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x32cc=['setTemplate','type','content','listenTo','bindTemplate','Esc','isDirty','ck-rounded-corners','createCollection','height','ck-annotation-wrapper','focus','div','length','_updateHeight','keystrokes','clear','clientHeight','add','focusTracker','detach','fire','element','destroy','set','mainView','ck-annotation-wrapper--active'];(function(_0x11f6cf,_0x32cc43){const _0x48cf2a=function(_0xc640fb){while(--_0xc640fb){_0x11f6cf['push'](_0x11f6cf['shift']());}};_0x48cf2a(++_0x32cc43);}(_0x32cc,0xaf));const _0x48cf=function(_0x11f6cf,_0x32cc43){_0x11f6cf=_0x11f6cf-0x0;let _0x48cf2a=_0x32cc[_0x11f6cf];return _0x48cf2a;};import{View as _0xff819f}from'ckeditor5/src/ui';import{FocusTracker as _0x5a0a6e,KeystrokeHandler as _0x3420c8,uid as _0x34e889}from'ckeditor5/src/utils';import _0x75e86e from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class v extends _0xff819f{constructor(_0x24f1f7,_0x248384){super(_0x24f1f7),this['id']=_0x34e889(),this[_0x48cf('0x6')]=new _0x5a0a6e(),this['keystrokes']=new _0x3420c8(),this[_0x48cf('0x2')][_0x48cf('0xb')](_0x48cf('0x13'),(_0x395647,_0x4570de)=>this[_0x48cf('0x8')](_0x48cf('0x13'),_0x4570de)),this[_0x48cf('0xb')]('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x48cf('0xb')]('height',0x0),this[_0x48cf('0xb')]('isActive',!0x1),this[_0x48cf('0xb')](_0x48cf('0x14'),!0x1),this[_0x48cf('0xb')](_0x48cf('0x0'),0x0),this['set'](_0x48cf('0xf'),''),this['_mutationObserver']=_0x75e86e(()=>this[_0x48cf('0x1')]()),this[_0x48cf('0x10')]=this[_0x48cf('0x16')](),this[_0x48cf('0x10')]['add'](_0x248384),this[_0x48cf('0xc')]=_0x248384;const _0x721e4a=this[_0x48cf('0x12')];this[_0x48cf('0xe')]({'tag':_0x48cf('0x1a'),'attributes':{'class':['ck',_0x48cf('0x18'),_0x48cf('0x15'),_0x721e4a['if']('isActive',_0x48cf('0xd'))],'tabindex':-0x1},'children':this['content']});}['render'](){super['render'](),this[_0x48cf('0x6')][_0x48cf('0x5')](this[_0x48cf('0x9')]),this[_0x48cf('0x2')][_0x48cf('0x11')](this[_0x48cf('0x9')]),this['_mutationObserver']['attach'](this[_0x48cf('0x9')]);}[_0x48cf('0xa')](){this[_0x48cf('0x10')][_0x48cf('0x3')](),this['keystrokes']['destroy'](),this[_0x48cf('0x6')][_0x48cf('0xa')](),this['_mutationObserver'][_0x48cf('0x7')](),super['destroy']();}[_0x48cf('0x19')](){this[_0x48cf('0x9')][_0x48cf('0x19')]();}[_0x48cf('0x1')](){const _0x44f3cc=this[_0x48cf('0x9')][_0x48cf('0x4')];_0x44f3cc&&(this[_0x48cf('0x17')]=_0x44f3cc);}}
23
+ const _0x4978=['keystrokes','clear','ck-annotation-wrapper--active','type','isActive','setTemplate','isDirty','focus','set','listenTo','clientHeight','focusTracker','Esc','detach','length','div','element','add','fire','_mutationObserver','destroy','ck-rounded-corners','render','content','height','bindTemplate','targetRect','attach','_updateHeight'];(function(_0x42c95a,_0x49788e){const _0x223e85=function(_0x5ae1a5){while(--_0x5ae1a5){_0x42c95a['push'](_0x42c95a['shift']());}};_0x223e85(++_0x49788e);}(_0x4978,0x17c));const _0x223e=function(_0x42c95a,_0x49788e){_0x42c95a=_0x42c95a-0x0;let _0x223e85=_0x4978[_0x42c95a];return _0x223e85;};import{View as _0x146a39}from'ckeditor5/src/ui';import{FocusTracker as _0x4c4409,KeystrokeHandler as _0x1254e7,uid as _0x25b69b}from'ckeditor5/src/utils';import _0x39d89a from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class S extends _0x146a39{constructor(_0x102757,_0x46c650){super(_0x102757),this['id']=_0x25b69b(),this[_0x223e('0x8')]=new _0x4c4409(),this[_0x223e('0x1a')]=new _0x1254e7(),this[_0x223e('0x1a')][_0x223e('0x5')](_0x223e('0x9'),(_0x5b60df,_0x5d500e)=>this[_0x223e('0xf')]('Esc',_0x5d500e)),this['set'](_0x223e('0x17'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x223e('0x5')](_0x223e('0x15'),0x0),this['set'](_0x223e('0x1'),!0x1),this['set'](_0x223e('0x3'),!0x1),this[_0x223e('0x5')](_0x223e('0xb'),0x0),this[_0x223e('0x5')](_0x223e('0x0'),''),this['_mutationObserver']=_0x39d89a(()=>this[_0x223e('0x19')]()),this[_0x223e('0x14')]=this['createCollection'](),this[_0x223e('0x14')][_0x223e('0xe')](_0x46c650),this['mainView']=_0x46c650;const _0x555d10=this[_0x223e('0x16')];this[_0x223e('0x2')]({'tag':_0x223e('0xc'),'attributes':{'class':['ck','ck-annotation-wrapper',_0x223e('0x12'),_0x555d10['if'](_0x223e('0x1'),_0x223e('0x1c'))],'tabindex':-0x1},'children':this[_0x223e('0x14')]});}[_0x223e('0x13')](){super[_0x223e('0x13')](),this[_0x223e('0x8')][_0x223e('0xe')](this['element']),this[_0x223e('0x1a')][_0x223e('0x6')](this['element']),this[_0x223e('0x10')][_0x223e('0x18')](this[_0x223e('0xd')]);}[_0x223e('0x11')](){this[_0x223e('0x14')][_0x223e('0x1b')](),this['keystrokes'][_0x223e('0x11')](),this[_0x223e('0x8')][_0x223e('0x11')](),this[_0x223e('0x10')][_0x223e('0xa')](),super[_0x223e('0x11')]();}[_0x223e('0x4')](){this[_0x223e('0xd')][_0x223e('0x4')]();}[_0x223e('0x19')](){const _0x2f7c5b=this['element'][_0x223e('0x7')];_0x2f7c5b&&(this[_0x223e('0x15')]=_0x2f7c5b);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1576=['updateHeight','render','_mutationObserver','ck-sidebar-item','div','clear','bind','element','bindTemplate','ck-sidebar-item--no-animation','createCollection','detach','content','destroy','_targetTop','height','isAnimationDisabled','setTemplate','top','set','bottom'];(function(_0x79b508,_0x157680){const _0x30f303=function(_0x1d4b57){while(--_0x1d4b57){_0x79b508['push'](_0x79b508['shift']());}};_0x30f303(++_0x157680);}(_0x1576,0x83));const _0x30f3=function(_0x79b508,_0x157680){_0x79b508=_0x79b508-0x0;let _0x30f303=_0x1576[_0x79b508];return _0x30f303;};import{View as _0x5688e3}from'ckeditor5/src/ui';import{toUnit as _0x1dc2f1}from'ckeditor5/src/utils';import _0x1ddf8b from'../../utils/createmutationobserver';const ft=_0x1dc2f1('px');export default class C extends _0x5688e3{constructor(_0x4826e5){super(_0x4826e5),this['set'](_0x30f3('0xd')),this[_0x30f3('0xe')](_0x30f3('0xa'),0x0),this[_0x30f3('0x1')](_0x30f3('0xf'))['to'](this,_0x30f3('0xd'),this,_0x30f3('0xa'),(_0x11d563,_0xb26ed6)=>(_0x11d563||0x0)+_0xb26ed6),this['set']('isAnimationDisabled',!0x1),this[_0x30f3('0x12')]=_0x1ddf8b(()=>this[_0x30f3('0x10')]()),this[_0x30f3('0x9')]=null,this['content']=this[_0x30f3('0x5')]();const _0x18414e=this[_0x30f3('0x3')];this[_0x30f3('0xc')]({'tag':_0x30f3('0x14'),'attributes':{'class':[_0x30f3('0x13'),_0x18414e['to'](_0x30f3('0xb'),_0x317082=>_0x317082?_0x30f3('0x4'):'')],'style':{'top':_0x18414e['to'](_0x30f3('0xd'),ft)}},'children':this[_0x30f3('0x7')]});}[_0x30f3('0x11')](){super[_0x30f3('0x11')](),this[_0x30f3('0x12')]['attach'](this[_0x30f3('0x2')]);}[_0x30f3('0x10')](){const _0x165eb4=this[_0x30f3('0x2')]['clientHeight'];_0x165eb4&&(this[_0x30f3('0xa')]=_0x165eb4);}[_0x30f3('0x8')](){this[_0x30f3('0x7')][_0x30f3('0x0')](),this[_0x30f3('0x12')][_0x30f3('0x6')](),super[_0x30f3('0x8')]();}}
23
+ const _0x180e=['createCollection','clientHeight','set','bind','updateHeight','render','setTemplate','div','ck-sidebar-item--no-animation','_targetTop','destroy','height','bindTemplate','_mutationObserver','element','bottom','content','top','attach','detach','clear','isAnimationDisabled'];(function(_0x206dfd,_0x180e23){const _0x4b01c5=function(_0x47274b){while(--_0x47274b){_0x206dfd['push'](_0x206dfd['shift']());}};_0x4b01c5(++_0x180e23);}(_0x180e,0xec));const _0x4b01=function(_0x206dfd,_0x180e23){_0x206dfd=_0x206dfd-0x0;let _0x4b01c5=_0x180e[_0x206dfd];return _0x4b01c5;};import{View as _0x1933e7}from'ckeditor5/src/ui';import{toUnit as _0x5926c5}from'ckeditor5/src/utils';import _0x3570d7 from'../../utils/createmutationobserver';const ft=_0x5926c5('px');export default class ct extends _0x1933e7{constructor(_0x325e8d){super(_0x325e8d),this[_0x4b01('0x8')](_0x4b01('0x1')),this[_0x4b01('0x8')]('height',0x0),this[_0x4b01('0x9')](_0x4b01('0x15'))['to'](this,'top',this,_0x4b01('0x11'),(_0xc56dee,_0x12d122)=>(_0xc56dee||0x0)+_0x12d122),this[_0x4b01('0x8')]('isAnimationDisabled',!0x1),this['_mutationObserver']=_0x3570d7(()=>this['updateHeight']()),this[_0x4b01('0xf')]=null,this[_0x4b01('0x0')]=this[_0x4b01('0x6')]();const _0x289be2=this[_0x4b01('0x12')];this[_0x4b01('0xc')]({'tag':_0x4b01('0xd'),'attributes':{'class':['ck-sidebar-item',_0x289be2['to'](_0x4b01('0x5'),_0x2cfc3d=>_0x2cfc3d?_0x4b01('0xe'):'')],'style':{'top':_0x289be2['to'](_0x4b01('0x1'),ft)}},'children':this[_0x4b01('0x0')]});}[_0x4b01('0xb')](){super[_0x4b01('0xb')](),this[_0x4b01('0x13')][_0x4b01('0x2')](this[_0x4b01('0x14')]);}[_0x4b01('0xa')](){const _0x176bfd=this[_0x4b01('0x14')][_0x4b01('0x7')];_0x176bfd&&(this['height']=_0x176bfd);}[_0x4b01('0x10')](){this[_0x4b01('0x0')][_0x4b01('0x4')](),this[_0x4b01('0x13')][_0x4b01('0x3')](),super['destroy']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x852d=['list','setTemplate','minHeight','createCollection','div','ck-sidebar','ck-reset','set','class'];(function(_0x29dd54,_0x852d01){const _0x481467=function(_0x5d47b0){while(--_0x5d47b0){_0x29dd54['push'](_0x29dd54['shift']());}};_0x481467(++_0x852d01);}(_0x852d,0x114));const _0x4814=function(_0x29dd54,_0x852d01){_0x29dd54=_0x29dd54-0x0;let _0x481467=_0x852d[_0x29dd54];return _0x481467;};import{View as _0x54697a}from'ckeditor5/src/ui';import{toUnit as _0x12f0d4}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const ft=_0x12f0d4('px');export default class T extends _0x54697a{constructor(_0x1bd18b){super(_0x1bd18b);const _0x1a51aa=this['bindTemplate'];this[_0x4814('0x1')](_0x4814('0x5'),0x0),this[_0x4814('0x1')](_0x4814('0x2'),''),this[_0x4814('0x3')]=this[_0x4814('0x6')](),this[_0x4814('0x4')]({'tag':_0x4814('0x7'),'attributes':{'class':['ck',_0x4814('0x8'),_0x4814('0x0'),_0x1a51aa['to'](_0x4814('0x2'))],'style':{'minHeight':_0x1a51aa['to'](_0x4814('0x5'),_0x42899e=>_0x42899e?ft(_0x42899e+0xa):null)}},'children':this['list']});}}
23
+ const _0x300b=['class','list','ck-sidebar','createCollection','minHeight','setTemplate','set'];(function(_0x2e453f,_0x300b24){const _0x10c099=function(_0x41ba89){while(--_0x41ba89){_0x2e453f['push'](_0x2e453f['shift']());}};_0x10c099(++_0x300b24);}(_0x300b,0x126));const _0x10c0=function(_0x2e453f,_0x300b24){_0x2e453f=_0x2e453f-0x0;let _0x10c099=_0x300b[_0x2e453f];return _0x10c099;};import{View as _0x43ae25}from'ckeditor5/src/ui';import{toUnit as _0x12c1a3}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const ft=_0x12c1a3('px');export default class at extends _0x43ae25{constructor(_0x1cc185){super(_0x1cc185);const _0x5a2b4b=this['bindTemplate'];this[_0x10c0('0x6')](_0x10c0('0x4'),0x0),this[_0x10c0('0x6')](_0x10c0('0x0'),''),this[_0x10c0('0x1')]=this[_0x10c0('0x3')](),this[_0x10c0('0x5')]({'tag':'div','attributes':{'class':['ck',_0x10c0('0x2'),'ck-reset',_0x5a2b4b['to'](_0x10c0('0x0'))],'style':{'minHeight':_0x5a2b4b['to'](_0x10c0('0x4'),_0x358f96=>_0x358f96?ft(_0x358f96+0xa):null)}},'children':this[_0x10c0('0x1')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4123=['get','focus','pluginName','refresh','editors','requires','register','context','blur','uiUpdate','from','attach','set:container','WideSidebar','getOrderedSelectedAnnotations','_annotations','resize','switchTo','hasDomSelection','EditorAnnotations','addAnnotation','addEventListener','_throttledPositioningRefresh','_destroyEditorAnnotationsIntegration','_integrateWithEditorAnnotations','container','high','activeAnnotation','detach','stopListening','init','widesidebar-detach-not-attached','plugins','remove','setActiveAnnotation','isAttached','removeEventListener','set','Sidebar','listenTo','destroy','_detachFromContainer','updateTargetRect','refreshPositioning','_editorAnnotations','add','off','wideSidebar'];(function(_0x50ea43,_0x412354){const _0x86ec6d=function(_0x25c884){while(--_0x25c884){_0x50ea43['push'](_0x50ea43['shift']());}};_0x86ec6d(++_0x412354);}(_0x4123,0x1b8));const _0x86ec=function(_0x50ea43,_0x412354){_0x50ea43=_0x50ea43-0x0;let _0x86ec6d=_0x4123[_0x50ea43];return _0x86ec6d;};import{ContextPlugin as _0x44848c}from'ckeditor5/src/core';import _0x454229 from'./annotationsuis';import _0x4dc0e2 from'./sidebar';import{CKEditorError as _0x35c6f7,Collection as _0x771e3c}from'ckeditor5/src/utils';import{throttle as _0x238cfe}from'lodash-es';export default class i extends _0x44848c{static get[_0x86ec('0x2d')](){return[_0x4dc0e2,_0x454229];}static get[_0x86ec('0x2a')](){return _0x86ec('0x5');}constructor(_0x5e3f04){super(_0x5e3f04),this[_0x86ec('0x1b')]=!0x1,this[_0x86ec('0x1d')](_0x86ec('0x13'),null),this[_0x86ec('0x7')]=null,this[_0x86ec('0x24')]=new _0x771e3c(),this[_0x86ec('0xe')]=_0x238cfe(()=>{this[_0x86ec('0x7')][_0x86ec('0x23')]();},0x190,{'leading':!0x1});}[_0x86ec('0x16')](){const _0x3bc1b2=this[_0x86ec('0x2f')]['plugins']['get'](_0x454229),_0x3592f6=this[_0x86ec('0x2f')][_0x86ec('0x18')][_0x86ec('0x28')](_0x4dc0e2);_0x3bc1b2[_0x86ec('0x2e')](_0x86ec('0x27'),this),_0x3592f6[_0x86ec('0x11')]&&_0x3bc1b2[_0x86ec('0x9')](_0x86ec('0x27'));}[_0x86ec('0x1a')](_0x3246b7){if(_0x3246b7===this[_0x86ec('0x13')])return;const _0x3bc7ce=this[_0x86ec('0x2f')][_0x86ec('0x18')][_0x86ec('0x28')](_0x4dc0e2);_0x3bc7ce['_activeAnnotation']=_0x3246b7;const _0x1bc9e0=this['activeAnnotation'];this[_0x86ec('0x13')]=_0x3246b7,_0x3bc7ce[_0x86ec('0x2b')]({'blurredAnnotation':_0x1bc9e0,'activatedAnnotation':this['activeAnnotation']});}[_0x86ec('0x3')](_0x7a36e0){this[_0x86ec('0x7')]=_0x7a36e0;const _0x19ebb5=this['context'][_0x86ec('0x18')][_0x86ec('0x28')](_0x86ec('0x1e'));if(_0x19ebb5[_0x86ec('0x7')]=_0x7a36e0,this[_0x86ec('0x1b')])throw new _0x35c6f7('widesidebar-attach-already-attached',this);this[_0x86ec('0x1b')]=!0x0,this[_0x86ec('0x1f')](_0x19ebb5,_0x86ec('0x4'),()=>{this['detach'](),this[_0x86ec('0x1f')](_0x19ebb5,'change:container',_0x66da8f=>{_0x66da8f[_0x86ec('0x26')](),this[_0x86ec('0x3')](_0x7a36e0);});}),_0x19ebb5['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x534de9=_0x1a0408=>{_0x1a0408[_0x86ec('0x22')](),_0x19ebb5[_0x86ec('0xc')](_0x1a0408);};for(const _0x5b8de0 of _0x7a36e0)_0x534de9(_0x5b8de0);this[_0x86ec('0x1f')](_0x7a36e0,_0x86ec('0x25'),(_0x4f0e30,_0x565c62)=>{_0x534de9(_0x565c62);}),this[_0x86ec('0x1f')](_0x7a36e0,_0x86ec('0x19'),(_0x399ccf,_0x3b6f82,_0x1d85e0)=>{_0x19ebb5['rearrange']({'removedAnnotation':_0x3b6f82,'previousAnnotation':_0x7a36e0['get'](_0x1d85e0-0x1),'nextAnnotation':_0x7a36e0[_0x86ec('0x28')](_0x1d85e0+0x1)}),_0x3b6f82===this[_0x86ec('0x13')]&&this[_0x86ec('0x1a')](null);},{'priority':_0x86ec('0x12')}),this['listenTo'](_0x7a36e0,_0x86ec('0x29'),(_0x3d02d8,_0x29a135)=>{this[_0x86ec('0x1a')](_0x29a135);}),this['listenTo'](_0x7a36e0,_0x86ec('0x0'),()=>{this[_0x86ec('0x1a')](null);});const _0x5b0810=this[_0x86ec('0x2f')][_0x86ec('0x2c')]?this[_0x86ec('0x2f')][_0x86ec('0x2c')]:new _0x771e3c([this[_0x86ec('0x2f')]]);for(const _0x28b762 of _0x5b0810)this['_integrateWithEditorAnnotations'](_0x28b762);this['listenTo'](_0x5b0810,_0x86ec('0x25'),(_0x4e4015,_0x134cf2)=>{this[_0x86ec('0x1f')](_0x134cf2,'ready',()=>{this[_0x86ec('0x10')](_0x134cf2);});}),this[_0x86ec('0x1f')](_0x5b0810,'remove',(_0x278a1f,_0x368e82)=>{_0x368e82['plugins']['has'](_0x86ec('0xb'))&&this[_0x86ec('0xf')](_0x368e82[_0x86ec('0x18')]['get']('EditorAnnotations'));}),window[_0x86ec('0xd')](_0x86ec('0x8'),this['_throttledPositioningRefresh']),this[_0x86ec('0x7')][_0x86ec('0x23')]();}['detach'](){if(!this[_0x86ec('0x1b')])throw new _0x35c6f7(_0x86ec('0x17'),this);this['setActiveAnnotation'](null);const _0x4d7671=this[_0x86ec('0x2f')][_0x86ec('0x18')][_0x86ec('0x28')](_0x4dc0e2);_0x4d7671[_0x86ec('0x21')](this[_0x86ec('0x7')]),this[_0x86ec('0x15')](_0x4d7671),this[_0x86ec('0x15')](this[_0x86ec('0x7')]),this[_0x86ec('0x15')](this[_0x86ec('0x2f')]['editors']);for(const _0x337544 of Array[_0x86ec('0x2')](this[_0x86ec('0x24')]))this['_destroyEditorAnnotationsIntegration'](_0x337544);window[_0x86ec('0x1c')]('resize',this['_throttledPositioningRefresh']),this['_throttledPositioningRefresh']['cancel'](),this[_0x86ec('0x13')]=null,this[_0x86ec('0x1b')]=!0x1;}[_0x86ec('0x20')](){this[_0x86ec('0x1b')]&&this[_0x86ec('0x14')]();}['_integrateWithEditorAnnotations'](_0xb38b30){const _0x761b3d=_0xb38b30[_0x86ec('0x18')]['get'](_0x86ec('0xb'));if(!_0x761b3d)return;const _0x304358=()=>{const _0x2a983a=_0x761b3d[_0x86ec('0x6')]({'annotations':this['_annotations'],'activeAnnotation':this[_0x86ec('0x13')]});this[_0x86ec('0x1a')](_0x2a983a[0x0]||null);};this[_0x86ec('0x1f')](_0x761b3d,'refresh',_0x304358),this[_0x86ec('0x1f')](_0x761b3d,'blur',(_0x345c75,{isAnnotationTracked:_0x3b2a26})=>{this['activeAnnotation']&&_0x3b2a26(this[_0x86ec('0x13')])&&this['setActiveAnnotation'](null);}),this[_0x86ec('0x1f')](_0x761b3d,_0x86ec('0x1'),()=>{this[_0x86ec('0x7')][_0x86ec('0x23')]();}),this['listenTo'](this[_0x86ec('0x7')],'blur',_0x345eb4=>{_0x761b3d[_0x86ec('0xa')]()&&(_0x304358(),_0x345eb4['stop']());},{'priority':_0x86ec('0x12')}),this['_editorAnnotations'][_0x86ec('0x25')](_0x761b3d);}['_destroyEditorAnnotationsIntegration'](_0x34b407){_0x34b407&&(this['stopListening'](_0x34b407),this[_0x86ec('0x24')][_0x86ec('0x19')](_0x34b407));}}
23
+ const _0x1c09=['from','_integrateWithEditorAnnotations','plugins','addEventListener','focus','ready','rearrange','WideSidebar','blur','editors','add','_detachFromContainer','wideSidebar','stopListening','hasDomSelection','set:container','register','set','context','init','widesidebar-detach-not-attached','refresh','has','switchTo','removeEventListener','_annotations','_editorAnnotations','addAnnotation','high','activeAnnotation','stop','cancel','setActiveAnnotation','Sidebar','isAttached','change:container','pluginName','listenTo','resize','remove','attach','widesidebar-attach-already-attached','updateTargetRect','uiUpdate','off','EditorAnnotations','requires','detach','_destroyEditorAnnotationsIntegration','refreshPositioning','_throttledPositioningRefresh','ck-sidebar--wide','getOrderedSelectedAnnotations','get'];(function(_0x49e85b,_0x1c090b){const _0x159278=function(_0x8dacd7){while(--_0x8dacd7){_0x49e85b['push'](_0x49e85b['shift']());}};_0x159278(++_0x1c090b);}(_0x1c09,0x19a));const _0x1592=function(_0x49e85b,_0x1c090b){_0x49e85b=_0x49e85b-0x0;let _0x159278=_0x1c09[_0x49e85b];return _0x159278;};import{ContextPlugin as _0x511b34}from'ckeditor5/src/core';import _0x58ba6a from'./annotationsuis';import _0x17ca9a from'./sidebar';import{CKEditorError as _0x3b9337,Collection as _0x13dde0}from'ckeditor5/src/utils';import{throttle as _0x1b46fd}from'lodash-es';export default class i extends _0x511b34{static get[_0x1592('0xe')](){return[_0x17ca9a,_0x58ba6a];}static get[_0x1592('0x4')](){return _0x1592('0x1d');}constructor(_0x4d4e15){super(_0x4d4e15),this[_0x1592('0x2')]=!0x1,this[_0x1592('0x27')](_0x1592('0x33'),null),this[_0x1592('0x2f')]=null,this[_0x1592('0x30')]=new _0x13dde0(),this[_0x1592('0x12')]=_0x1b46fd(()=>{this['_annotations']['refreshPositioning']();},0x190,{'leading':!0x1});}[_0x1592('0x29')](){const _0x3a1b56=this[_0x1592('0x28')][_0x1592('0x18')]['get'](_0x58ba6a),_0xaf092b=this[_0x1592('0x28')][_0x1592('0x18')][_0x1592('0x15')](_0x17ca9a);_0x3a1b56[_0x1592('0x26')](_0x1592('0x22'),this),_0xaf092b['container']&&_0x3a1b56[_0x1592('0x2d')](_0x1592('0x22'));}[_0x1592('0x0')](_0x33cd04){if(_0x33cd04===this[_0x1592('0x33')])return;const _0x2acbfa=this[_0x1592('0x28')][_0x1592('0x18')][_0x1592('0x15')](_0x17ca9a);_0x2acbfa['_activeAnnotation']=_0x33cd04;const _0x2928d7=this['activeAnnotation'];this[_0x1592('0x33')]=_0x33cd04,_0x2acbfa[_0x1592('0x2b')]({'blurredAnnotation':_0x2928d7,'activatedAnnotation':this['activeAnnotation']});}['attach'](_0x525b45){this['_annotations']=_0x525b45;const _0xce7d7d=this[_0x1592('0x28')][_0x1592('0x18')]['get'](_0x1592('0x1'));if(_0xce7d7d[_0x1592('0x2f')]=_0x525b45,this[_0x1592('0x2')])throw new _0x3b9337(_0x1592('0x9'),this);this[_0x1592('0x2')]=!0x0,this['listenTo'](_0xce7d7d,_0x1592('0x25'),()=>{this[_0x1592('0xf')](),this[_0x1592('0x5')](_0xce7d7d,_0x1592('0x3'),_0x470b93=>{_0x470b93[_0x1592('0xc')](),this[_0x1592('0x8')](_0x525b45);});}),_0xce7d7d['_attachToContainer']({'viewClass':_0x1592('0x13')});const _0x493c0c=_0xe918dd=>{_0xe918dd[_0x1592('0xa')](),_0xce7d7d[_0x1592('0x31')](_0xe918dd);};for(const _0x2404a3 of _0x525b45)_0x493c0c(_0x2404a3);this['listenTo'](_0x525b45,'add',(_0x1f0b75,_0x24908a)=>{_0x493c0c(_0x24908a);}),this['listenTo'](_0x525b45,_0x1592('0x7'),(_0xde60ab,_0x3e8ac9,_0xb558d9)=>{_0xce7d7d[_0x1592('0x1c')]({'removedAnnotation':_0x3e8ac9,'previousAnnotation':_0x525b45[_0x1592('0x15')](_0xb558d9-0x1),'nextAnnotation':_0x525b45[_0x1592('0x15')](_0xb558d9+0x1)}),_0x3e8ac9===this['activeAnnotation']&&this[_0x1592('0x0')](null);},{'priority':_0x1592('0x32')}),this[_0x1592('0x5')](_0x525b45,_0x1592('0x1a'),(_0x517bc9,_0x8b97a5)=>{this[_0x1592('0x0')](_0x8b97a5);}),this[_0x1592('0x5')](_0x525b45,'blur',()=>{this[_0x1592('0x0')](null);});const _0x2ab434=this[_0x1592('0x28')][_0x1592('0x1f')]?this[_0x1592('0x28')][_0x1592('0x1f')]:new _0x13dde0([this['context']]);for(const _0xa43372 of _0x2ab434)this[_0x1592('0x17')](_0xa43372);this[_0x1592('0x5')](_0x2ab434,'add',(_0x4747d0,_0x57675b)=>{this[_0x1592('0x5')](_0x57675b,_0x1592('0x1b'),()=>{this['_integrateWithEditorAnnotations'](_0x57675b);});}),this[_0x1592('0x5')](_0x2ab434,_0x1592('0x7'),(_0x3b313e,_0x34a714)=>{_0x34a714[_0x1592('0x18')][_0x1592('0x2c')]('EditorAnnotations')&&this[_0x1592('0x10')](_0x34a714[_0x1592('0x18')][_0x1592('0x15')]('EditorAnnotations'));}),window[_0x1592('0x19')](_0x1592('0x6'),this[_0x1592('0x12')]),this['_annotations'][_0x1592('0x11')]();}[_0x1592('0xf')](){if(!this['isAttached'])throw new _0x3b9337(_0x1592('0x2a'),this);this[_0x1592('0x0')](null);const _0xbc81c4=this['context'][_0x1592('0x18')][_0x1592('0x15')](_0x17ca9a);_0xbc81c4[_0x1592('0x21')](this[_0x1592('0x2f')]),this[_0x1592('0x23')](_0xbc81c4),this[_0x1592('0x23')](this['_annotations']),this['stopListening'](this[_0x1592('0x28')][_0x1592('0x1f')]);for(const _0x3a5e87 of Array[_0x1592('0x16')](this[_0x1592('0x30')]))this[_0x1592('0x10')](_0x3a5e87);window[_0x1592('0x2e')]('resize',this['_throttledPositioningRefresh']),this[_0x1592('0x12')][_0x1592('0x35')](),this[_0x1592('0x33')]=null,this[_0x1592('0x2')]=!0x1;}['destroy'](){this[_0x1592('0x2')]&&this[_0x1592('0xf')]();}[_0x1592('0x17')](_0x57e869){const _0x33505f=_0x57e869['plugins'][_0x1592('0x15')](_0x1592('0xd'));if(!_0x33505f)return;const _0x240285=()=>{const _0xe8f660=_0x33505f[_0x1592('0x14')]({'annotations':this[_0x1592('0x2f')],'activeAnnotation':this[_0x1592('0x33')]});this[_0x1592('0x0')](_0xe8f660[0x0]||null);};this[_0x1592('0x5')](_0x33505f,_0x1592('0x2b'),_0x240285),this['listenTo'](_0x33505f,_0x1592('0x1e'),(_0x410e73,{isAnnotationTracked:_0x367cba})=>{this[_0x1592('0x33')]&&_0x367cba(this[_0x1592('0x33')])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x33505f,_0x1592('0xb'),()=>{this[_0x1592('0x2f')][_0x1592('0x11')]();}),this[_0x1592('0x5')](this['_annotations'],_0x1592('0x1e'),_0x19992a=>{_0x33505f[_0x1592('0x24')]()&&(_0x240285(),_0x19992a[_0x1592('0x34')]());},{'priority':'high'}),this['_editorAnnotations'][_0x1592('0x20')](_0x33505f);}['_destroyEditorAnnotationsIntegration'](_0x6bb4d6){_0x6bb4d6&&(this[_0x1592('0x23')](_0x6bb4d6),this[_0x1592('0x30')][_0x1592('0x7')](_0x6bb4d6));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4026=['model','item','_trimToContent','change','getRanges','editor','_hasContent','start','element','textProxy','selection','isObject','getItems','execute','push','end','getLastMatchingPosition','backward','substr','comment:','_itemIsContent','createRange','refresh','isEnabled','document','tableCell','schema'];(function(_0x5612e1,_0x402685){const _0x258d2f=function(_0x3e08cc){while(--_0x3e08cc){_0x5612e1['push'](_0x5612e1['shift']());}};_0x258d2f(++_0x402685);}(_0x4026,0x1cd));const _0x258d=function(_0x5612e1,_0x402685){_0x5612e1=_0x5612e1-0x0;let _0x258d2f=_0x4026[_0x5612e1];return _0x258d2f;};import{Command as _0x32b9e2}from'ckeditor5/src/core';import{uid as _0x5b9d8c}from'ckeditor5/src/utils';export default class j extends _0x32b9e2{[_0x258d('0x14')](){const _0x105dcd=this[_0x258d('0x3')][_0x258d('0x19')][_0x258d('0x16')]['selection'];for(const _0x202260 of _0x105dcd[_0x258d('0x2')]())if(this[_0x258d('0x4')](_0x202260))return void(this['isEnabled']=!0x0);this[_0x258d('0x15')]=!0x1;}[_0x258d('0xb')]({threadId:_0x45a130=_0x5b9d8c()}={}){const _0x206fc1=this['editor']['model'],_0x4038ab=[];for(const _0x53f6b1 of _0x206fc1['document'][_0x258d('0x8')]['getRanges']())this[_0x258d('0x4')](_0x53f6b1)&&_0x4038ab[_0x258d('0xc')](this[_0x258d('0x0')](_0x53f6b1));_0x206fc1[_0x258d('0x1')](_0x5003c6=>{for(const _0x4c3569 of _0x4038ab){const _0x40b857=_0x5b9d8c()[_0x258d('0x10')](0x1,0x5),_0x3c257a=_0x258d('0x11')+_0x45a130+':'+_0x40b857;_0x5003c6['addMarker'](_0x3c257a,{'range':_0x4c3569,'usingOperation':!0x1,'affectData':!0x1});}});}['_hasContent'](_0x3f98eb){for(const _0x37e654 of _0x3f98eb[_0x258d('0xa')]())if(this['_itemIsContent'](_0x37e654))return!0x0;return!0x1;}[_0x258d('0x12')](_0x29c3dc){return _0x29c3dc['is'](_0x258d('0x7'))||this[_0x258d('0x3')][_0x258d('0x19')][_0x258d('0x18')][_0x258d('0x9')](_0x29c3dc)&&!_0x29c3dc['is'](_0x258d('0x6'),_0x258d('0x17'));}[_0x258d('0x0')](_0x34edaf){const _0x13e5a8=_0x379655=>!this[_0x258d('0x12')](_0x379655[_0x258d('0x1a')]),_0x4be547=_0x34edaf[_0x258d('0x5')]['getLastMatchingPosition'](_0x13e5a8),_0xf6c53e=_0x34edaf[_0x258d('0xd')][_0x258d('0xe')](_0x13e5a8,{'direction':_0x258d('0xf')});return this[_0x258d('0x3')][_0x258d('0x19')][_0x258d('0x13')](_0x4be547,_0xf6c53e);}}
23
+ const _0x54b8=['document','getRanges','start','end','refresh','item','selection','getLastMatchingPosition','push','addMarker','isEnabled','textProxy','change','schema','comment:','_itemIsContent','createRange','execute','model','_hasContent','_trimToContent','isObject','editor','element'];(function(_0x4e027b,_0x54b85b){const _0x40464a=function(_0x804e2a){while(--_0x804e2a){_0x4e027b['push'](_0x4e027b['shift']());}};_0x40464a(++_0x54b85b);}(_0x54b8,0x1ac));const _0x4046=function(_0x4e027b,_0x54b85b){_0x4e027b=_0x4e027b-0x0;let _0x40464a=_0x54b8[_0x4e027b];return _0x40464a;};import{Command as _0xb1ec13}from'ckeditor5/src/core';import{uid as _0x96c094}from'ckeditor5/src/utils';export default class d extends _0xb1ec13{[_0x4046('0x8')](){const _0x44928f=this[_0x4046('0x2')][_0x4046('0x16')]['document'][_0x4046('0xa')];for(const _0x7d0eaf of _0x44928f['getRanges']())if(this['_hasContent'](_0x7d0eaf))return void(this[_0x4046('0xe')]=!0x0);this[_0x4046('0xe')]=!0x1;}[_0x4046('0x15')]({threadId:_0x1d03a6=_0x96c094()}={}){const _0x1e1799=this[_0x4046('0x2')][_0x4046('0x16')],_0x562990=[];for(const _0x4edd42 of _0x1e1799[_0x4046('0x4')][_0x4046('0xa')][_0x4046('0x5')]())this[_0x4046('0x17')](_0x4edd42)&&_0x562990[_0x4046('0xc')](this[_0x4046('0x0')](_0x4edd42));_0x1e1799[_0x4046('0x10')](_0x273063=>{for(const _0x1163cf of _0x562990){const _0x1ca667=_0x96c094()['substr'](0x1,0x5),_0x45e88c=_0x4046('0x12')+_0x1d03a6+':'+_0x1ca667;_0x273063[_0x4046('0xd')](_0x45e88c,{'range':_0x1163cf,'usingOperation':!0x1,'affectData':!0x1});}});}[_0x4046('0x17')](_0x4e3cda){for(const _0x2001bd of _0x4e3cda['getItems']())if(this['_itemIsContent'](_0x2001bd))return!0x0;return!0x1;}[_0x4046('0x13')](_0x54aee3){return _0x54aee3['is'](_0x4046('0xf'))||this[_0x4046('0x2')][_0x4046('0x16')][_0x4046('0x11')][_0x4046('0x1')](_0x54aee3)&&!_0x54aee3['is'](_0x4046('0x3'),'tableCell');}[_0x4046('0x0')](_0x324004){const _0x4aa6ff=_0x1a4481=>!this['_itemIsContent'](_0x1a4481[_0x4046('0x9')]),_0x5756c8=_0x324004[_0x4046('0x6')][_0x4046('0xb')](_0x4aa6ff),_0x16deb8=_0x324004[_0x4046('0x7')]['getLastMatchingPosition'](_0x4aa6ff,{'direction':'backward'});return this[_0x4046('0x2')][_0x4046('0x16')][_0x4046('0x14')](_0x5756c8,_0x16deb8);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4998=['isObject','isEqual','top','_attachThreadToMarker','markerToData','_initializeMarkerConverters','createPositionBefore','fetchCommentThread','addComment','destroyed','createElement','_threads','collaboration.channelId','text','add','config','has','change:isReadOnly','conversion','_attachedThreads','addCommentThread','switchReadOnly','hasCommentThread','CommentsRepository','change:activeMarker','left','delete','getChangedMarkers','ready','getCommentThread','activeMarker','registerPostFixer','start','render','markers','set','stop','createRange','getMarkersGroup','differ','upcast','_detachCommentThread','for','length','size','document','getCommentThreads','ck-comment-marker','split','then','removeMarker','plugins','high','editing','newRange','model','dataDowncast','dataToMarker','pluginName','$marker','map','openNewCommentThread','view','comment:','destroy','hasMarkerForId','getAllMarkersForId','change','sort','push','editingDowncast','low','isCollapsed','listenTo','ck-comment-marker--active','schema','managedUsingOperations','markerName','reconvertMarker','init','affectsData','updateMarker','_handleMarkerAddAndRemove','editor','hasContent','comment','root','get'];(function(_0x52520b,_0x4998d6){const _0x569a97=function(_0x28a949){while(--_0x28a949){_0x52520b['push'](_0x52520b['shift']());}};_0x569a97(++_0x4998d6);}(_0x4998,0x1be));const _0x569a=function(_0x52520b,_0x4998d6){_0x52520b=_0x52520b-0x0;let _0x569a97=_0x4998[_0x52520b];return _0x569a97;};import{Plugin as _0x2589ea}from'ckeditor5/src/core';import{Rect as _0x226e55}from'ckeditor5/src/utils';import _0xbdfbc5 from'./commentsrepository';import _0x10e4f4 from'./addcommentthreadcommand';import{getMarkerDomElement as _0x141831}from'ckeditor5-collaboration/src/collaboration-core';import _0x40e1e5 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';export default class r extends _0x2589ea{static get['requires'](){return[_0xbdfbc5,_0x40e1e5];}static get[_0x569a('0x34')](){return'CommentsEditing';}constructor(_0x417a3f){super(_0x417a3f),this[_0x569a('0x1d')]('isThreadsLoadingPaused',!0x0),_0x417a3f['data']['once'](_0x569a('0x16'),()=>this['isThreadsLoadingPaused']=!0x1),this[_0x569a('0x1d')](_0x569a('0x18'),null),this['on'](_0x569a('0x12'),(_0x2c3f2e,_0x424143,_0x1e8855,_0x484980)=>{_0x417a3f['model'][_0x569a('0x3d')](()=>{if(_0x1e8855){const {id:_0x37e1de}=G(_0x1e8855),_0x15e741=this['getAllMarkersForId'](_0x37e1de);for(const _0x51782d of _0x15e741)_0x417a3f[_0x569a('0x2f')][_0x569a('0x48')](_0x51782d);}if(_0x484980){const {id:_0x3ae01d}=G(_0x484980),_0x5a1c12=this['getAllMarkersForId'](_0x3ae01d);for(const _0x192f01 of _0x5a1c12)_0x417a3f['editing'][_0x569a('0x48')](_0x192f01);}});}),this['_attachedThreads']=new Set();}[_0x569a('0x49')](){const _0x532019=this['editor'],_0xa47d4c=_0x532019[_0x569a('0x2d')][_0x569a('0x51')]('CommentsRepository'),_0x43a74b=_0x532019[_0x569a('0x9')][_0x569a('0x51')](_0x569a('0x6'));_0x532019['commands']['add'](_0x569a('0xe'),new _0x10e4f4(_0x532019)),this[_0x569a('0x43')](_0x532019,_0x569a('0xb'),(_0x2aafab,_0x2c82ab,_0x5275de)=>{_0xa47d4c[_0x569a('0xf')](_0x5275de,_0x532019[_0x569a('0x9')]['get'](_0x569a('0x6')));}),this[_0x569a('0x43')](_0xa47d4c,q('removeCommentThread',_0x43a74b),(_0x316007,{threadId:_0x8615fb})=>{_0x532019[_0x569a('0x31')][_0x569a('0x3d')](_0x12d375=>{for(const _0x44e71e of this[_0x569a('0x3c')](_0x8615fb))_0x12d375[_0x569a('0x2c')](_0x44e71e);});const _0x35ae81=_0xa47d4c[_0x569a('0x17')](_0x8615fb);_0xa47d4c[_0x569a('0x10')](_0x8615fb)&&!_0x35ae81[_0x569a('0x25')]||_0x316007[_0x569a('0x1e')]();},{'priority':_0x569a('0x2e')}),this[_0x569a('0x43')](_0xa47d4c,q(_0x569a('0x2'),_0x43a74b),(_0x5c5bcc,{threadId:_0xa9c6fd,isFromAdapter:_0x2b13e2})=>{const _0x4593e2=this[_0x569a('0x3c')](_0xa9c6fd);if(_0x2b13e2||0x0==_0x4593e2[_0x569a('0x25')]||!_0xa47d4c[_0x569a('0x10')](_0xa9c6fd))return;0x1===_0xa47d4c[_0x569a('0x17')](_0xa9c6fd)['length']&&_0x532019['model'][_0x569a('0x3d')](_0x5c1100=>{for(const _0x27028d of _0x4593e2)_0x5c1100['updateMarker'](_0x27028d,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x569a('0x41')}),this[_0x569a('0x57')](),this[_0x569a('0x4c')]();}[_0x569a('0x3a')](){const _0x499d49=this[_0x569a('0x4d')][_0x569a('0x2d')][_0x569a('0x51')](_0x569a('0x11')),_0x1ed106=this[_0x569a('0x4d')]['config'][_0x569a('0x51')](_0x569a('0x6'));for(const _0x3300db of _0x499d49[_0x569a('0x28')]({'channelId':_0x1ed106}))_0x499d49[_0x569a('0x23')](_0x3300db['id']),_0x499d49[_0x569a('0x5')][_0x569a('0x14')](_0x3300db['id']);super[_0x569a('0x3a')]();}[_0x569a('0x3b')](_0x5f202c){return this[_0x569a('0x3c')](_0x5f202c)['length']>0x0;}[_0x569a('0x3c')](_0x1d0991){const _0x2b3ea8=this[_0x569a('0x4d')]['model'][_0x569a('0x1c')][_0x569a('0x51')](_0x569a('0x39')+_0x1d0991);return _0x2b3ea8?[_0x2b3ea8]:Array['from'](this['editor'][_0x569a('0x31')][_0x569a('0x1c')][_0x569a('0x20')](_0x569a('0x39')+_0x1d0991));}[_0x569a('0x57')](){const _0x407d57=this[_0x569a('0x4d')];_0x407d57[_0x569a('0xc')][_0x569a('0x24')](_0x569a('0x40'))['markerToHighlight']({'model':_0x569a('0x4f'),'view':_0x55729e=>{const {id:_0x38de79}=G(_0x55729e[_0x569a('0x47')]),_0x315d9f=[_0x569a('0x29')];return this['activeMarker']&&G(this[_0x569a('0x18')])['id']===_0x38de79&&_0x315d9f[_0x569a('0x3f')](_0x569a('0x44')),{'classes':_0x315d9f,'attributes':{'data-comment':_0x38de79}};}}),_0x407d57[_0x569a('0xc')][_0x569a('0x24')](_0x569a('0x32'))[_0x569a('0x56')]({'model':_0x569a('0x4f'),'view':_0x389057=>{const _0x3a37bc=_0x407d57[_0x569a('0x31')][_0x569a('0x1c')][_0x569a('0x51')](_0x389057),{id:_0x5efc2c,part:_0x3ff2af}=G(_0x389057);return _0x3a37bc&&!_0x3a37bc[_0x569a('0x4a')]?null:{'group':_0x569a('0x4f'),'name':_0x3ff2af?_0x5efc2c+':'+_0x3ff2af:_0x5efc2c};}}),_0x407d57[_0x569a('0xc')][_0x569a('0x24')](_0x569a('0x22'))['elementToElement']({'view':{'name':_0x569a('0x4f'),'attribute':{'id':/^\w/}},'model':(_0x351038,{writer:_0x6d7650})=>_0x6d7650[_0x569a('0x4')](_0x569a('0x35'),{'data-name':'comment:'+_0x351038['getAttribute']('id')})}),_0x407d57[_0x569a('0xc')][_0x569a('0x24')](_0x569a('0x22'))[_0x569a('0x33')]({'view':_0x569a('0x4f')});}[_0x569a('0x4c')](){const _0x106a80=this['editor'],_0x25d0dd=_0x106a80[_0x569a('0x2d')][_0x569a('0x51')](_0x569a('0x11')),_0x4dc6d7=new Set();_0x106a80[_0x569a('0x31')][_0x569a('0x27')][_0x569a('0x19')](_0x3440b3=>{let _0x574cb1=!0x1;for(const {name:_0x88931d,data:_0x319039}of _0x106a80[_0x569a('0x31')]['document'][_0x569a('0x21')][_0x569a('0x15')]()){const {group:_0x384456,id:_0x5e0c4b}=G(_0x88931d);let _0x2dbf50=_0x319039[_0x569a('0x30')];if('comment'!==_0x384456||!_0x2dbf50)continue;const _0x4dc5fd='$graveyard'===_0x2dbf50[_0x569a('0x50')]['rootName'];_0x4dc5fd||(_0x2dbf50=J(_0x2dbf50,_0x106a80[_0x569a('0x31')]),!_0x2dbf50||_0x2dbf50[_0x569a('0x53')](_0x319039[_0x569a('0x30')]))?!_0x2dbf50||!_0x106a80[_0x569a('0x31')][_0x569a('0x4e')](_0x2dbf50)||this[_0x569a('0xd')][_0x569a('0xa')](_0x5e0c4b)&&_0x4dc5fd?(_0x3440b3[_0x569a('0x2c')](_0x88931d),_0x574cb1=!0x0):_0x4dc5fd||(this['isThreadsLoadingPaused']?_0x4dc6d7[_0x569a('0x8')](_0x5e0c4b):this['_attachThreadToMarker'](_0x5e0c4b)):(_0x3440b3[_0x569a('0x4b')](_0x88931d,{'range':_0x2dbf50}),_0x574cb1=!0x0);}return _0x574cb1;}),this['on']('change:isThreadsLoadingPaused',(_0x2c0e67,_0x38921b,_0x1d98b8)=>{if(!_0x1d98b8&&_0x4dc6d7[_0x569a('0x26')])for(const _0x2dc331 of _0x4dc6d7)this[_0x569a('0x55')](_0x2dc331),_0x4dc6d7[_0x569a('0x14')](_0x2dc331);}),this[_0x569a('0x43')](_0x106a80[_0x569a('0x31')][_0x569a('0x1c')],'update:comment',(_0x558389,_0x2fb3d4,_0x1e4067,_0x4ce864)=>{if(_0x4ce864)return;const {id:_0x3136fb}=G(_0x2fb3d4['name']),_0x48c16d=_0x106a80[_0x569a('0x2d')][_0x569a('0x51')](_0x569a('0x11'))[_0x569a('0x17')](_0x3136fb);_0x4dc6d7['delete'](_0x3136fb),_0x48c16d&&!this[_0x569a('0x3b')](_0x3136fb)&&(this[_0x569a('0xd')][_0x569a('0x14')](_0x3136fb),_0x25d0dd[_0x569a('0x23')](_0x3136fb));});}[_0x569a('0x55')](_0x474b21){if(this[_0x569a('0xd')][_0x569a('0xa')](_0x474b21))return;this[_0x569a('0xd')][_0x569a('0x8')](_0x474b21);const _0x2ed2cb=this[_0x569a('0x4d')],_0x590c7b=_0x2ed2cb['plugins'][_0x569a('0x51')](_0x569a('0x11')),_0x439c83=_0x2ed2cb[_0x569a('0x9')][_0x569a('0x51')]('collaboration.channelId'),_0x10d319=()=>{const _0x204583=this['getAllMarkersForId'](_0x474b21);if(0x0==_0x204583[_0x569a('0x25')])return null;const _0x1ef15a=_0x204583[_0x569a('0x36')](_0x19dd09=>_0x141831(_0x2ed2cb[_0x569a('0x2f')],_0x19dd09));return _0x1ef15a[_0x569a('0x3e')]((_0x5bad4e,_0x16d5be)=>{const _0x4e0dcd=new _0x226e55(_0x5bad4e),_0x41439c=new _0x226e55(_0x16d5be),_0x261626=_0x4e0dcd[_0x569a('0x54')]-_0x41439c['top'];return 0x0==_0x261626?_0x4e0dcd[_0x569a('0x13')]-_0x41439c[_0x569a('0x13')]:_0x261626;}),_0x1ef15a[0x0];};!this[_0x569a('0x3c')](_0x474b21)[0x0][_0x569a('0x46')]?_0x2ed2cb[_0x569a('0x2f')][_0x569a('0x38')]['once'](_0x569a('0x1b'),()=>{_0x590c7b[_0x569a('0x37')]({'channelId':_0x439c83,'threadId':_0x474b21,'target':_0x10d319});},{'priority':_0x569a('0x41')}):_0x590c7b[_0x569a('0x1')]({'channelId':_0x439c83,'threadId':_0x474b21})[_0x569a('0x2b')](_0x52aeb2=>{if(_0x569a('0x3')!==_0x2ed2cb['state']){if(_0x52aeb2)_0x52aeb2['attachTo'](_0x10d319);else{const _0xa0dc9=this[_0x569a('0x3c')](_0x474b21);_0x2ed2cb[_0x569a('0x31')][_0x569a('0x3d')](_0x348364=>{for(const _0xa7f2f of _0xa0dc9)_0x348364[_0x569a('0x2c')](_0xa7f2f);});}}});}}function q(_0x35af8a,_0x4b7225){return _0x4b7225?_0x35af8a+':'+_0x4b7225:_0x35af8a;}function G(_0x389759){const _0x1f59f4=_0x389759[_0x569a('0x2a')](':');return{'group':_0x1f59f4[0x0],'id':_0x1f59f4[0x1],'part':_0x1f59f4[0x2]};}function J(_0x15ce98,_0x54aa1f){const _0x33fb25=_0x54aa1f[_0x569a('0x45')],_0x3fb16f=_0x54aa1f[_0x569a('0x1f')](_0x15ce98[_0x569a('0x1a')]);for(const _0x8913b5 of _0x15ce98['getWalker']()){const {type:_0x53579c,item:_0x2c2916,nextPosition:_0xad707d}=_0x8913b5;if(_0x569a('0x7')===_0x53579c||_0x33fb25[_0x569a('0x52')](_0x2c2916)){const _0x2d336e=_0x54aa1f[_0x569a('0x0')](_0x2c2916);_0x3fb16f['isCollapsed']&&(_0x3fb16f[_0x569a('0x1a')]=_0x2d336e),_0x3fb16f['end']=_0xad707d;}}return _0x3fb16f[_0x569a('0x42')]?null:_0x3fb16f;}
23
+ const _0x8627=['left','view','registerPostFixer','markers','split','createElement','length','document','ck-comment-marker','destroyed','_attachedThreads','affectsData','comment:','activeMarker','isObject','updateMarker','model','rootName','destroy','fetchCommentThread','state','isThreadsLoadingPaused','pluginName','getAllMarkersForId','$graveyard','start','elementToElement','from','editor','has','CommentsRepository','dataToMarker','ck-comment-marker--active','change','ready','markerName','switchReadOnly','requires','editingDowncast','_initializeMarkerConverters','_attachThreadToMarker','hasMarkerForId','createRange','end','config','then','listenTo','upcast','set','add','change:isReadOnly','delete','newRange','_threads','push','once','name','_handleMarkerAddAndRemove','addCommentThread','managedUsingOperations','isCollapsed','editing','removeMarker','getMarkersGroup','root','createPositionBefore','data','isEqual','markerToData','getWalker','_detachCommentThread','hasContent','get','conversion','top','addComment','high','low','getCommentThread','plugins','for','getAttribute','markerToHighlight','hasCommentThread','change:activeMarker','text','getCommentThreads','openNewCommentThread','reconvertMarker','getChangedMarkers','collaboration.channelId','stop','CommentsEditing','comment'];(function(_0x254eab,_0x862765){const _0x3cb2ef=function(_0x21210e){while(--_0x21210e){_0x254eab['push'](_0x254eab['shift']());}};_0x3cb2ef(++_0x862765);}(_0x8627,0x100));const _0x3cb2=function(_0x254eab,_0x862765){_0x254eab=_0x254eab-0x0;let _0x3cb2ef=_0x8627[_0x254eab];return _0x3cb2ef;};import{Plugin as _0x34e8d3}from'ckeditor5/src/core';import{Rect as _0x2d58dc}from'ckeditor5/src/utils';import _0x37fc1e from'./commentsrepository';import _0x32519e from'./addcommentthreadcommand';import{getMarkerDomElement as _0x589f3f}from'ckeditor5-collaboration/src/collaboration-core';import _0x2f0adf from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';export default class r extends _0x34e8d3{static get[_0x3cb2('0x3f')](){return[_0x37fc1e,_0x2f0adf];}static get[_0x3cb2('0x30')](){return _0x3cb2('0x18');}constructor(_0x2f378b){super(_0x2f378b),this[_0x3cb2('0x4a')](_0x3cb2('0x2f'),!0x0),_0x2f378b[_0x3cb2('0x5c')][_0x3cb2('0x51')](_0x3cb2('0x3c'),()=>this['isThreadsLoadingPaused']=!0x1),this['set'](_0x3cb2('0x27'),null),this['on'](_0x3cb2('0x10'),(_0x129487,_0x38de5c,_0x160043,_0x31f6a3)=>{_0x2f378b[_0x3cb2('0x2a')][_0x3cb2('0x3b')](()=>{if(_0x160043){const {id:_0x5ca7c4}=k(_0x160043),_0x56688b=this['getAllMarkersForId'](_0x5ca7c4);for(const _0x2a3728 of _0x56688b)_0x2f378b['editing'][_0x3cb2('0x14')](_0x2a3728);}if(_0x31f6a3){const {id:_0x3919f7}=k(_0x31f6a3),_0x3d3b1d=this[_0x3cb2('0x31')](_0x3919f7);for(const _0x3a531b of _0x3d3b1d)_0x2f378b[_0x3cb2('0x57')][_0x3cb2('0x14')](_0x3a531b);}});}),this[_0x3cb2('0x24')]=new Set();}['init'](){const _0x4bcca5=this[_0x3cb2('0x36')],_0x135844=_0x4bcca5[_0x3cb2('0xb')][_0x3cb2('0x4')](_0x3cb2('0x38')),_0x37b1e9=_0x4bcca5[_0x3cb2('0x46')][_0x3cb2('0x4')](_0x3cb2('0x16'));_0x4bcca5['commands'][_0x3cb2('0x4b')](_0x3cb2('0x54'),new _0x32519e(_0x4bcca5)),this[_0x3cb2('0x48')](_0x4bcca5,_0x3cb2('0x4c'),(_0x27a3c6,_0x4e938c,_0x37f969)=>{_0x135844[_0x3cb2('0x3e')](_0x37f969,_0x4bcca5['config'][_0x3cb2('0x4')]('collaboration.channelId'));}),this[_0x3cb2('0x48')](_0x135844,g('removeCommentThread',_0x37b1e9),(_0x4533e0,{threadId:_0x296609})=>{_0x4bcca5[_0x3cb2('0x2a')][_0x3cb2('0x3b')](_0x23f5e3=>{for(const _0x56f0b6 of this['getAllMarkersForId'](_0x296609))_0x23f5e3['removeMarker'](_0x56f0b6);});const _0x8bf635=_0x135844[_0x3cb2('0xa')](_0x296609);_0x135844[_0x3cb2('0xf')](_0x296609)&&!_0x8bf635[_0x3cb2('0x20')]||_0x4533e0[_0x3cb2('0x17')]();},{'priority':_0x3cb2('0x8')}),this[_0x3cb2('0x48')](_0x135844,g(_0x3cb2('0x7'),_0x37b1e9),(_0x438346,{threadId:_0xe3663d,isFromAdapter:_0x206faf})=>{const _0x4b6a89=this[_0x3cb2('0x31')](_0xe3663d);if(_0x206faf||0x0==_0x4b6a89[_0x3cb2('0x20')]||!_0x135844[_0x3cb2('0xf')](_0xe3663d))return;0x1===_0x135844['getCommentThread'](_0xe3663d)[_0x3cb2('0x20')]&&_0x4bcca5[_0x3cb2('0x2a')][_0x3cb2('0x3b')](_0x263c2e=>{for(const _0x52c6da of _0x4b6a89)_0x263c2e[_0x3cb2('0x29')](_0x52c6da,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}[_0x3cb2('0x2c')](){const _0x2ee4aa=this[_0x3cb2('0x36')]['plugins'][_0x3cb2('0x4')](_0x3cb2('0x38')),_0x334b9a=this['editor'][_0x3cb2('0x46')][_0x3cb2('0x4')](_0x3cb2('0x16'));for(const _0x4b9ab3 of _0x2ee4aa[_0x3cb2('0x12')]({'channelId':_0x334b9a}))_0x2ee4aa[_0x3cb2('0x2')](_0x4b9ab3['id']),_0x2ee4aa[_0x3cb2('0x4f')]['delete'](_0x4b9ab3['id']);super[_0x3cb2('0x2c')]();}[_0x3cb2('0x43')](_0x45a99f){return this[_0x3cb2('0x31')](_0x45a99f)['length']>0x0;}[_0x3cb2('0x31')](_0x586c5a){const _0x109f9f=this[_0x3cb2('0x36')][_0x3cb2('0x2a')][_0x3cb2('0x1d')]['get'](_0x3cb2('0x26')+_0x586c5a);return _0x109f9f?[_0x109f9f]:Array[_0x3cb2('0x35')](this[_0x3cb2('0x36')]['model']['markers'][_0x3cb2('0x59')](_0x3cb2('0x26')+_0x586c5a));}[_0x3cb2('0x41')](){const _0x371177=this[_0x3cb2('0x36')];_0x371177[_0x3cb2('0x5')][_0x3cb2('0xc')](_0x3cb2('0x40'))[_0x3cb2('0xe')]({'model':'comment','view':_0x2cc780=>{const {id:_0x46ac5e}=k(_0x2cc780[_0x3cb2('0x3d')]),_0x1f0c4c=[_0x3cb2('0x22')];return this[_0x3cb2('0x27')]&&k(this[_0x3cb2('0x27')])['id']===_0x46ac5e&&_0x1f0c4c[_0x3cb2('0x50')](_0x3cb2('0x3a')),{'classes':_0x1f0c4c,'attributes':{'data-comment':_0x46ac5e}};}}),_0x371177[_0x3cb2('0x5')][_0x3cb2('0xc')]('dataDowncast')[_0x3cb2('0x0')]({'model':_0x3cb2('0x19'),'view':_0x159b69=>{const _0x18099c=_0x371177[_0x3cb2('0x2a')][_0x3cb2('0x1d')][_0x3cb2('0x4')](_0x159b69),{id:_0x21f6b0,part:_0x5dc2af}=k(_0x159b69);return _0x18099c&&!_0x18099c[_0x3cb2('0x25')]?null:{'group':_0x3cb2('0x19'),'name':_0x5dc2af?_0x21f6b0+':'+_0x5dc2af:_0x21f6b0};}}),_0x371177[_0x3cb2('0x5')]['for'](_0x3cb2('0x49'))[_0x3cb2('0x34')]({'view':{'name':_0x3cb2('0x19'),'attribute':{'id':/^\w/}},'model':(_0x4afaa9,{writer:_0x25a5ae})=>_0x25a5ae[_0x3cb2('0x1f')]('$marker',{'data-name':_0x3cb2('0x26')+_0x4afaa9[_0x3cb2('0xd')]('id')})}),_0x371177['conversion']['for'](_0x3cb2('0x49'))[_0x3cb2('0x39')]({'view':_0x3cb2('0x19')});}[_0x3cb2('0x53')](){const _0x254a48=this[_0x3cb2('0x36')],_0x20e65c=_0x254a48['plugins'][_0x3cb2('0x4')](_0x3cb2('0x38')),_0xd6c207=new Set();_0x254a48['model'][_0x3cb2('0x21')][_0x3cb2('0x1c')](_0xf6e2b8=>{let _0xb0dd81=!0x1;for(const {name:_0x5206c1,data:_0xe92ee9}of _0x254a48[_0x3cb2('0x2a')][_0x3cb2('0x21')]['differ'][_0x3cb2('0x15')]()){const {group:_0x5c0dcd,id:_0x1a2f2c}=k(_0x5206c1);let _0x46ef07=_0xe92ee9[_0x3cb2('0x4e')];if(_0x3cb2('0x19')!==_0x5c0dcd||!_0x46ef07)continue;const _0x59ac37=_0x3cb2('0x32')===_0x46ef07[_0x3cb2('0x5a')][_0x3cb2('0x2b')];_0x59ac37||(_0x46ef07=y(_0x46ef07,_0x254a48[_0x3cb2('0x2a')]),!_0x46ef07||_0x46ef07[_0x3cb2('0x5d')](_0xe92ee9[_0x3cb2('0x4e')]))?!_0x46ef07||!_0x254a48['model'][_0x3cb2('0x3')](_0x46ef07)||this[_0x3cb2('0x24')][_0x3cb2('0x37')](_0x1a2f2c)&&_0x59ac37?(_0xf6e2b8[_0x3cb2('0x58')](_0x5206c1),_0xb0dd81=!0x0):_0x59ac37||(this[_0x3cb2('0x2f')]?_0xd6c207[_0x3cb2('0x4b')](_0x1a2f2c):this[_0x3cb2('0x42')](_0x1a2f2c)):(_0xf6e2b8[_0x3cb2('0x29')](_0x5206c1,{'range':_0x46ef07}),_0xb0dd81=!0x0);}return _0xb0dd81;}),this['on']('change:isThreadsLoadingPaused',(_0x193919,_0x2edbd5,_0x46b5db)=>{if(!_0x46b5db&&_0xd6c207['size'])for(const _0xbb6cc4 of _0xd6c207)this[_0x3cb2('0x42')](_0xbb6cc4),_0xd6c207[_0x3cb2('0x4d')](_0xbb6cc4);}),this[_0x3cb2('0x48')](_0x254a48[_0x3cb2('0x2a')][_0x3cb2('0x1d')],'update:comment',(_0xaa2536,_0xcec9ab,_0x165637,_0x730d37)=>{if(_0x730d37)return;const {id:_0x369486}=k(_0xcec9ab[_0x3cb2('0x52')]),_0x394006=_0x254a48[_0x3cb2('0xb')][_0x3cb2('0x4')](_0x3cb2('0x38'))[_0x3cb2('0xa')](_0x369486);_0xd6c207['delete'](_0x369486),_0x394006&&!this['hasMarkerForId'](_0x369486)&&(this['_attachedThreads'][_0x3cb2('0x4d')](_0x369486),_0x20e65c[_0x3cb2('0x2')](_0x369486));});}['_attachThreadToMarker'](_0x350b9b){if(this['_attachedThreads'][_0x3cb2('0x37')](_0x350b9b))return;this[_0x3cb2('0x24')][_0x3cb2('0x4b')](_0x350b9b);const _0x3b3808=this[_0x3cb2('0x36')],_0xcb0816=_0x3b3808['plugins'][_0x3cb2('0x4')](_0x3cb2('0x38')),_0x184e29=_0x3b3808['config']['get'](_0x3cb2('0x16')),_0x3c2655=()=>{const _0x49b413=this[_0x3cb2('0x31')](_0x350b9b);if(0x0==_0x49b413['length'])return null;const _0x22a1fc=_0x49b413['map'](_0x36b4b7=>_0x589f3f(_0x3b3808[_0x3cb2('0x57')],_0x36b4b7));return _0x22a1fc['sort']((_0x16b786,_0x3441f0)=>{const _0x3710c4=new _0x2d58dc(_0x16b786),_0x57de1f=new _0x2d58dc(_0x3441f0),_0x55a13a=_0x3710c4[_0x3cb2('0x6')]-_0x57de1f['top'];return 0x0==_0x55a13a?_0x3710c4[_0x3cb2('0x1a')]-_0x57de1f[_0x3cb2('0x1a')]:_0x55a13a;}),_0x22a1fc[0x0];};!this[_0x3cb2('0x31')](_0x350b9b)[0x0][_0x3cb2('0x55')]?_0x3b3808[_0x3cb2('0x57')][_0x3cb2('0x1b')][_0x3cb2('0x51')]('render',()=>{_0xcb0816[_0x3cb2('0x13')]({'channelId':_0x184e29,'threadId':_0x350b9b,'target':_0x3c2655});},{'priority':_0x3cb2('0x9')}):_0xcb0816[_0x3cb2('0x2d')]({'channelId':_0x184e29,'threadId':_0x350b9b})[_0x3cb2('0x47')](_0x471c8d=>{if(_0x3cb2('0x23')!==_0x3b3808[_0x3cb2('0x2e')]){if(_0x471c8d)_0x471c8d['attachTo'](_0x3c2655);else{const _0x3f09e1=this['getAllMarkersForId'](_0x350b9b);_0x3b3808[_0x3cb2('0x2a')][_0x3cb2('0x3b')](_0x32d507=>{for(const _0x83cf2e of _0x3f09e1)_0x32d507[_0x3cb2('0x58')](_0x83cf2e);});}}});}}function g(_0xfe698,_0x29cae9){return _0x29cae9?_0xfe698+':'+_0x29cae9:_0xfe698;}function k(_0x19cabe){const _0x457808=_0x19cabe[_0x3cb2('0x1e')](':');return{'group':_0x457808[0x0],'id':_0x457808[0x1],'part':_0x457808[0x2]};}function y(_0x324943,_0x51c759){const _0x166928=_0x51c759['schema'],_0x5c0d20=_0x51c759[_0x3cb2('0x44')](_0x324943[_0x3cb2('0x33')]);for(const _0x22a5e8 of _0x324943[_0x3cb2('0x1')]()){const {type:_0x37ac65,item:_0x45dbce,nextPosition:_0x12367a}=_0x22a5e8;if(_0x3cb2('0x11')===_0x37ac65||_0x166928[_0x3cb2('0x28')](_0x45dbce)){const _0x5ed87e=_0x51c759[_0x3cb2('0x5b')](_0x45dbce);_0x5c0d20[_0x3cb2('0x56')]&&(_0x5c0d20[_0x3cb2('0x33')]=_0x5ed87e),_0x5c0d20[_0x3cb2('0x45')]=_0x12367a;}}return _0x5c0d20[_0x3cb2('0x56')]?null:_0x5c0d20;}