@ckeditor/ckeditor5-comments 35.3.1 → 35.4.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 (115) hide show
  1. package/build/comments.js +1 -1
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/bg.js +1 -1
  4. package/build/translations/bn.js +1 -1
  5. package/build/translations/ca.js +1 -1
  6. package/build/translations/cs.js +1 -1
  7. package/build/translations/da.js +1 -1
  8. package/build/translations/de.js +1 -1
  9. package/build/translations/el.js +1 -1
  10. package/build/translations/es.js +1 -1
  11. package/build/translations/et.js +1 -1
  12. package/build/translations/fi.js +1 -1
  13. package/build/translations/fr.js +1 -1
  14. package/build/translations/he.js +1 -1
  15. package/build/translations/hi.js +1 -1
  16. package/build/translations/hu.js +1 -1
  17. package/build/translations/id.js +1 -1
  18. package/build/translations/it.js +1 -1
  19. package/build/translations/ja.js +1 -1
  20. package/build/translations/ko.js +1 -1
  21. package/build/translations/lt.js +1 -1
  22. package/build/translations/lv.js +1 -1
  23. package/build/translations/ms.js +1 -1
  24. package/build/translations/nl.js +1 -1
  25. package/build/translations/no.js +1 -1
  26. package/build/translations/pl.js +1 -1
  27. package/build/translations/pt-br.js +1 -1
  28. package/build/translations/pt.js +1 -1
  29. package/build/translations/ro.js +1 -1
  30. package/build/translations/ru.js +1 -1
  31. package/build/translations/sk.js +1 -1
  32. package/build/translations/sr.js +1 -1
  33. package/build/translations/sv.js +1 -1
  34. package/build/translations/th.js +1 -1
  35. package/build/translations/tr.js +1 -1
  36. package/build/translations/uk.js +1 -1
  37. package/build/translations/vi.js +1 -1
  38. package/build/translations/zh-cn.js +1 -1
  39. package/build/translations/zh.js +1 -1
  40. package/lang/translations/ar.po +3 -3
  41. package/lang/translations/bg.po +3 -3
  42. package/lang/translations/bn.po +3 -3
  43. package/lang/translations/ca.po +3 -3
  44. package/lang/translations/cs.po +3 -3
  45. package/lang/translations/da.po +3 -3
  46. package/lang/translations/de.po +3 -3
  47. package/lang/translations/el.po +3 -3
  48. package/lang/translations/es.po +3 -3
  49. package/lang/translations/et.po +3 -3
  50. package/lang/translations/fi.po +3 -3
  51. package/lang/translations/fr.po +3 -3
  52. package/lang/translations/he.po +3 -3
  53. package/lang/translations/hi.po +3 -3
  54. package/lang/translations/hu.po +3 -3
  55. package/lang/translations/id.po +3 -3
  56. package/lang/translations/it.po +3 -3
  57. package/lang/translations/ja.po +3 -3
  58. package/lang/translations/ko.po +3 -3
  59. package/lang/translations/lt.po +3 -3
  60. package/lang/translations/lv.po +3 -3
  61. package/lang/translations/ms.po +3 -3
  62. package/lang/translations/nl.po +3 -3
  63. package/lang/translations/no.po +3 -3
  64. package/lang/translations/pl.po +3 -3
  65. package/lang/translations/pt-br.po +3 -3
  66. package/lang/translations/pt.po +3 -3
  67. package/lang/translations/ro.po +3 -3
  68. package/lang/translations/ru.po +3 -3
  69. package/lang/translations/sk.po +3 -3
  70. package/lang/translations/sr.po +3 -3
  71. package/lang/translations/sv.po +3 -3
  72. package/lang/translations/th.po +3 -3
  73. package/lang/translations/tr.po +3 -3
  74. package/lang/translations/uk.po +3 -3
  75. package/lang/translations/vi.po +3 -3
  76. package/lang/translations/zh-cn.po +3 -3
  77. package/lang/translations/zh.po +3 -3
  78. package/package.json +3 -3
  79. package/src/annotations/annotation.js +1 -1
  80. package/src/annotations/annotationcollection.js +1 -1
  81. package/src/annotations/annotations.js +1 -1
  82. package/src/annotations/annotationsuis.js +1 -1
  83. package/src/annotations/editorannotations.js +1 -1
  84. package/src/annotations/inlineannotations.js +1 -1
  85. package/src/annotations/narrowsidebar.js +1 -1
  86. package/src/annotations/sidebar.js +1 -1
  87. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  88. package/src/annotations/view/annotationview.js +1 -1
  89. package/src/annotations/view/sidebaritemview.js +1 -1
  90. package/src/annotations/view/sidebarview.js +1 -1
  91. package/src/annotations/widesidebar.js +1 -1
  92. package/src/comments/addcommentthreadcommand.js +1 -1
  93. package/src/comments/commentsediting.js +1 -1
  94. package/src/comments/commentsrepository.js +1 -1
  95. package/src/comments/commentsui.js +1 -1
  96. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  97. package/src/comments/integrations/importword.js +1 -1
  98. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  99. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  100. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  101. package/src/comments/ui/commentthreadcontroller.js +1 -1
  102. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  103. package/src/comments/ui/view/basecommentview.js +1 -1
  104. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  105. package/src/comments/ui/view/commentcontentview.js +1 -1
  106. package/src/comments/ui/view/commentinputview.js +1 -1
  107. package/src/comments/ui/view/commentslistview.js +1 -1
  108. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  109. package/src/comments/ui/view/commentthreadview.js +1 -1
  110. package/src/comments/ui/view/commentview.js +1 -1
  111. package/src/comments.js +1 -1
  112. package/src/commentsonly.js +1 -1
  113. package/src/utils/common-translations.js +1 -1
  114. package/src/utils/createmutationobserver.js +1 -1
  115. package/theme/annotation.css +23 -6
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4aa7=['deactivate','_uisData','remove','annotationsuis-register-invalid-interface','AnnotationsUIs','annotationsuis-activate-missing-ui','has','refilterAnnotations','isActive','destroy','size','from','stopListening','context','annotationsuis-annotation-mismatch','deactivateAll','annotationsuis-register-already-registered','listenTo','activeUIs','attach','activate','init','function','_deactivateAllAnnotations','get','find','setActiveAnnotation','_visibleAnnotations','_removeActiveAnnotation','push','_activateAnnotation','delete','set','add','_setSelectedAnnotations','collection','plugins','filter','detach','hasActive','activeAnnotations','_addActiveAnnotation','requires','_uis'];(function(_0x35aec0,_0x4aa758){const _0x3672e9=function(_0x6faa64){while(--_0x6faa64){_0x35aec0['push'](_0x35aec0['shift']());}};_0x3672e9(++_0x4aa758);}(_0x4aa7,0x145));const _0x3672=function(_0x35aec0,_0x4aa758){_0x35aec0=_0x35aec0-0x0;let _0x3672e9=_0x4aa7[_0x35aec0];return _0x3672e9;};import{ContextPlugin as _0x2d0850}from'ckeditor5/src/core';import{CKEditorError as _0x1fc76b}from'ckeditor5/src/utils';import _0x450c29,{bindAnnotationCollections as _0x558480}from'./annotationcollection';import _0xa2a645 from'./annotations';export default class $ extends _0x2d0850{static get[_0x3672('0x19')](){return[_0xa2a645];}static get['pluginName'](){return _0x3672('0x1f');}constructor(_0x328b78){super(_0x328b78),this[_0x3672('0x1')]=new Set(),this[_0x3672('0x1a')]=new Map(),this['_uisData']=new Map();}[_0x3672('0x4')](){const _0x51b382=this[_0x3672('0x28')][_0x3672('0x13')][_0x3672('0x7')](_0xa2a645);this[_0x3672('0x0')](_0x51b382,_0x3672('0xd'),(_0x1e1e2b,_0x1e2f33)=>{for(const _0x121173 of this[_0x3672('0x1')]){const _0x1977e2=this[_0x3672('0x1a')]['get'](_0x121173);(0x0,this[_0x3672('0x1c')][_0x3672('0x7')](_0x121173)[_0x3672('0x14')])(_0x1e2f33)&&_0x1977e2['setActiveAnnotation'](_0x1e2f33);}}),this[_0x3672('0x0')](_0x51b382,_0x3672('0x6'),()=>{for(const _0x1028ae of this[_0x3672('0x1')]){this[_0x3672('0x1a')]['get'](_0x1028ae)[_0x3672('0x9')](null);}}),this[_0x3672('0x0')](_0x51b382[_0x3672('0xa')],_0x3672('0x10'),(_0x5801da,_0x4e3951)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x4e3951);});}[_0x3672('0x16')](){return this[_0x3672('0x1')][_0x3672('0x25')]>0x0;}[_0x3672('0x23')](_0xf8e521){return this[_0x3672('0x1')][_0x3672('0x21')](_0xf8e521);}['activate'](_0x1d6de4,_0x271b3a=()=>!0x0){const _0x4a0ed7=this['context']['plugins'][_0x3672('0x7')](_0xa2a645);if(!this[_0x3672('0x1a')]['has'](_0x1d6de4))throw new _0x1fc76b(_0x3672('0x20'),this,{'uiName':_0x1d6de4});this['isActive'](_0x1d6de4)&&this[_0x3672('0x1b')](_0x1d6de4),this['activeUIs'][_0x3672('0x10')](_0x1d6de4);const _0x902253=new _0x450c29(),_0x161dc2=_0x4a0ed7['_visibleAnnotations'];_0x558480({'source':_0x161dc2,'target':_0x902253,'filter':_0x271b3a}),this[_0x3672('0x1c')][_0x3672('0xf')](_0x1d6de4,{'collection':_0x902253,'filter':_0x271b3a});const _0x3be62f=this[_0x3672('0x1a')][_0x3672('0x7')](_0x1d6de4);_0x3be62f['attach'](_0x902253),this[_0x3672('0x0')](_0x3be62f,'change:activeAnnotation',(_0x409990,_0x5f22a5,_0x58dfb6,_0x5f1607)=>{_0x5f1607&&_0x4a0ed7[_0x3672('0xb')](_0x5f1607),_0x58dfb6&&_0x4a0ed7[_0x3672('0x18')](_0x58dfb6);});}['deactivate'](_0xef95e3){this[_0x3672('0x1')][_0x3672('0xe')](_0xef95e3);const _0x86821a=this[_0x3672('0x1a')][_0x3672('0x7')](_0xef95e3);_0x86821a[_0x3672('0x15')](),this[_0x3672('0x27')](_0x86821a),this[_0x3672('0x1c')][_0x3672('0x7')](_0xef95e3)[_0x3672('0x12')][_0x3672('0x24')](),this[_0x3672('0x1c')][_0x3672('0xe')](_0xef95e3);}['switchTo'](_0x41e808){const _0x3b4994=this[_0x3672('0x28')][_0x3672('0x13')][_0x3672('0x7')](_0xa2a645),_0x451169=Array['from'](_0x3b4994[_0x3672('0x17')])[0x0]||null;this[_0x3672('0x2a')](),this[_0x3672('0x3')](_0x41e808);const _0x3b29ab=this[_0x3672('0x1a')]['get'](_0x41e808);_0x3b29ab[_0x3672('0x9')](_0x451169),_0x3b29ab['_setSelectedAnnotations']&&_0x451169&&_0x3b29ab[_0x3672('0x11')]([_0x451169]);}[_0x3672('0x2a')](){for(const _0x252e56 of this['activeUIs'])this[_0x3672('0x1b')](_0x252e56);}['register'](_0x1bf51d,_0x4c617){if(this['_uis'][_0x3672('0x21')](_0x1bf51d))throw new _0x1fc76b(_0x3672('0x2b'));if('function'!=typeof _0x4c617[_0x3672('0x2')]||'function'!=typeof _0x4c617[_0x3672('0x15')]||_0x3672('0x5')!=typeof _0x4c617[_0x3672('0x9')])throw new _0x1fc76b(_0x3672('0x1e'),null);this[_0x3672('0x1a')][_0x3672('0xf')](_0x1bf51d,_0x4c617);}[_0x3672('0x22')](){const _0x3e5d2f=this[_0x3672('0x28')][_0x3672('0x13')][_0x3672('0x7')](_0xa2a645)[_0x3672('0x12')],_0xdb4ba3=new Map(),_0x5d6638=Array[_0x3672('0x26')](this[_0x3672('0x1')]);for(const _0x4fdcf3 of this[_0x3672('0x1')]){const _0x1d6cb6=this[_0x3672('0x1c')][_0x3672('0x7')](_0x4fdcf3)[_0x3672('0x12')];for(const _0x1ee27a of _0x1d6cb6)_0xdb4ba3[_0x3672('0xf')](_0x1ee27a,_0x4fdcf3);}for(const _0xc25101 of _0x3e5d2f){const _0x21e301=_0xdb4ba3['get'](_0xc25101);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xc25101);const _0x555d18=_0x5d6638[_0x3672('0x8')](_0x53497e=>this[_0x3672('0x1c')][_0x3672('0x7')](_0x53497e)[_0x3672('0x14')](_0xc25101));_0x21e301!==_0x555d18&&(_0x21e301&&this[_0x3672('0x1c')][_0x3672('0x7')](_0x21e301)[_0x3672('0x12')][_0x3672('0x1d')](_0xc25101),_0x555d18&&this['_uisData'][_0x3672('0x7')](_0x555d18)[_0x3672('0x12')][_0x3672('0x10')](_0xc25101));}}['destroy'](){this[_0x3672('0x2a')](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x3b7a49){const _0x1eea97=[];for(const _0x38d1d4 of this[_0x3672('0x1')]){(0x0,this[_0x3672('0x1c')]['get'](_0x38d1d4)[_0x3672('0x14')])(_0x3b7a49)&&_0x1eea97[_0x3672('0xc')](_0x38d1d4);}if(_0x1eea97['length']>0x1)throw new _0x1fc76b(_0x3672('0x29'),null,{'matchedUIs':_0x1eea97,'annotationType':_0x3b7a49['type']});}}
23
+ const _0x5e79=['length','_assertAnnotationDoesNotBelongToMultipleUIs','requires','set','change:activeAnnotation','annotationsuis-annotation-mismatch','_uisData','has','deactivate','push','deactivateAll','stopListening','add','register','_setSelectedAnnotations','plugins','setActiveAnnotation','activeUIs','destroy','detach','find','hasActive','isActive','remove','_visibleAnnotations','from','collection','activate','_activateAnnotation','attach','context','listenTo','delete','annotationsuis-activate-missing-ui','_uis','filter','activeAnnotations','get','_removeActiveAnnotation','switchTo','pluginName','_addActiveAnnotation','refilterAnnotations'];(function(_0xf3edd,_0x5e7943){const _0x333223=function(_0x5b101a){while(--_0x5b101a){_0xf3edd['push'](_0xf3edd['shift']());}};_0x333223(++_0x5e7943);}(_0x5e79,0x67));const _0x3332=function(_0xf3edd,_0x5e7943){_0xf3edd=_0xf3edd-0x0;let _0x333223=_0x5e79[_0xf3edd];return _0x333223;};import{ContextPlugin as _0x1cfcd4}from'ckeditor5/src/core';import{CKEditorError as _0x51c18a}from'ckeditor5/src/utils';import _0x5a4f53,{bindAnnotationCollections as _0xe5f63b}from'./annotationcollection';import _0x24a0a4 from'./annotations';export default class I extends _0x1cfcd4{static get[_0x3332('0x1c')](){return[_0x24a0a4];}static get[_0x3332('0x17')](){return'AnnotationsUIs';}constructor(_0x521b58){super(_0x521b58),this[_0x3332('0x0')]=new Set(),this['_uis']=new Map(),this[_0x3332('0x20')]=new Map();}['init'](){const _0x2eebda=this[_0x3332('0xd')][_0x3332('0x29')][_0x3332('0x14')](_0x24a0a4);this[_0x3332('0xe')](_0x2eebda,_0x3332('0xb'),(_0x4e76a8,_0x206b97)=>{for(const _0xabd791 of this[_0x3332('0x0')]){const _0x13fa25=this[_0x3332('0x11')][_0x3332('0x14')](_0xabd791);(0x0,this['_uisData'][_0x3332('0x14')](_0xabd791)[_0x3332('0x12')])(_0x206b97)&&_0x13fa25[_0x3332('0x2a')](_0x206b97);}}),this[_0x3332('0xe')](_0x2eebda,'_deactivateAllAnnotations',()=>{for(const _0x5923b6 of this['activeUIs']){this['_uis'][_0x3332('0x14')](_0x5923b6)[_0x3332('0x2a')](null);}}),this[_0x3332('0xe')](_0x2eebda[_0x3332('0x7')],_0x3332('0x26'),(_0x4af4e8,_0x5ce588)=>{this[_0x3332('0x1b')](_0x5ce588);});}[_0x3332('0x4')](){return this['activeUIs']['size']>0x0;}[_0x3332('0x5')](_0x3d760d){return this[_0x3332('0x0')][_0x3332('0x21')](_0x3d760d);}[_0x3332('0xa')](_0x524343,_0xe6d58c=()=>!0x0){const _0x138115=this[_0x3332('0xd')]['plugins'][_0x3332('0x14')](_0x24a0a4);if(!this['_uis'][_0x3332('0x21')](_0x524343))throw new _0x51c18a(_0x3332('0x10'),this,{'uiName':_0x524343});this['isActive'](_0x524343)&&this[_0x3332('0x22')](_0x524343),this[_0x3332('0x0')][_0x3332('0x26')](_0x524343);const _0x15b82f=new _0x5a4f53(),_0x162f48=_0x138115[_0x3332('0x7')];_0xe5f63b({'source':_0x162f48,'target':_0x15b82f,'filter':_0xe6d58c}),this[_0x3332('0x20')]['set'](_0x524343,{'collection':_0x15b82f,'filter':_0xe6d58c});const _0x3320a7=this[_0x3332('0x11')][_0x3332('0x14')](_0x524343);_0x3320a7[_0x3332('0xc')](_0x15b82f),this[_0x3332('0xe')](_0x3320a7,_0x3332('0x1e'),(_0x11d133,_0x376d5c,_0x50db68,_0x463f49)=>{_0x463f49&&_0x138115[_0x3332('0x15')](_0x463f49),_0x50db68&&_0x138115[_0x3332('0x18')](_0x50db68);});}['deactivate'](_0x48715e){this[_0x3332('0x0')][_0x3332('0xf')](_0x48715e);const _0x1645d8=this[_0x3332('0x11')][_0x3332('0x14')](_0x48715e);_0x1645d8[_0x3332('0x2')](),this[_0x3332('0x25')](_0x1645d8),this[_0x3332('0x20')]['get'](_0x48715e)[_0x3332('0x9')][_0x3332('0x1')](),this[_0x3332('0x20')][_0x3332('0xf')](_0x48715e);}[_0x3332('0x16')](_0x571f5a){const _0x14e8ae=this['context'][_0x3332('0x29')]['get'](_0x24a0a4),_0x3a107f=Array[_0x3332('0x8')](_0x14e8ae[_0x3332('0x13')])[0x0]||null;this[_0x3332('0x24')](),this[_0x3332('0xa')](_0x571f5a);const _0x46259d=this[_0x3332('0x11')][_0x3332('0x14')](_0x571f5a);_0x46259d[_0x3332('0x2a')](_0x3a107f),_0x46259d[_0x3332('0x28')]&&_0x3a107f&&_0x46259d[_0x3332('0x28')]([_0x3a107f]);}['deactivateAll'](){for(const _0x1a8c67 of this['activeUIs'])this['deactivate'](_0x1a8c67);}[_0x3332('0x27')](_0x718420,_0x277dc3){if(this[_0x3332('0x11')][_0x3332('0x21')](_0x718420))throw new _0x51c18a('annotationsuis-register-already-registered');if('function'!=typeof _0x277dc3[_0x3332('0xc')]||'function'!=typeof _0x277dc3[_0x3332('0x2')]||'function'!=typeof _0x277dc3[_0x3332('0x2a')])throw new _0x51c18a('annotationsuis-register-invalid-interface',null);this['_uis'][_0x3332('0x1d')](_0x718420,_0x277dc3);}[_0x3332('0x19')](){const _0x47b69d=this[_0x3332('0xd')][_0x3332('0x29')]['get'](_0x24a0a4)[_0x3332('0x9')],_0x238b39=new Map(),_0x4e7405=Array['from'](this['activeUIs']);for(const _0x13d2c6 of this[_0x3332('0x0')]){const _0x46b10=this[_0x3332('0x20')][_0x3332('0x14')](_0x13d2c6)['collection'];for(const _0x58c48c of _0x46b10)_0x238b39[_0x3332('0x1d')](_0x58c48c,_0x13d2c6);}for(const _0x510750 of _0x47b69d){const _0x21dd61=_0x238b39[_0x3332('0x14')](_0x510750);this[_0x3332('0x1b')](_0x510750);const _0x287b30=_0x4e7405[_0x3332('0x3')](_0xd053e6=>this[_0x3332('0x20')][_0x3332('0x14')](_0xd053e6)[_0x3332('0x12')](_0x510750));_0x21dd61!==_0x287b30&&(_0x21dd61&&this[_0x3332('0x20')][_0x3332('0x14')](_0x21dd61)[_0x3332('0x9')][_0x3332('0x6')](_0x510750),_0x287b30&&this[_0x3332('0x20')][_0x3332('0x14')](_0x287b30)[_0x3332('0x9')][_0x3332('0x26')](_0x510750));}}[_0x3332('0x1')](){this[_0x3332('0x24')](),super[_0x3332('0x1')]();}[_0x3332('0x1b')](_0x15b538){const _0x33b3ce=[];for(const _0xc5f24f of this[_0x3332('0x0')]){(0x0,this['_uisData'][_0x3332('0x14')](_0xc5f24f)['filter'])(_0x15b538)&&_0x33b3ce[_0x3332('0x23')](_0xc5f24f);}if(_0x33b3ce[_0x3332('0x1a')]>0x1)throw new _0x51c18a(_0x3332('0x1f'),null,{'matchedUIs':_0x33b3ce,'annotationType':_0x15b538['type']});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2177=['_editorAnnotationsData','uiUpdate','view','containsRange','set','function','has','change:range','EditorAnnotations','fire','requires','addSourceCollector','refreshSelectedViews','pluginName','listenTo','document','model','element','editorannotations-invalid-source-callback','change:isFocused','add','blur','range','isReadOnly','innerView','sort','_dataCollectors','selection','getRanges','map','plugins','editing','getOrderedSelectedAnnotations','hasDomSelection','isEqual','remove','refresh','focusTracker','_editorAnnotations','editor','get','update','cancel','annotation','getByInnerView','directChange','init'];(function(_0x3113e6,_0x21779c){const _0x4eb1a6=function(_0x226606){while(--_0x226606){_0x3113e6['push'](_0x3113e6['shift']());}};_0x4eb1a6(++_0x21779c);}(_0x2177,0x132));const _0x4eb1=function(_0x3113e6,_0x21779c){_0x3113e6=_0x3113e6-0x0;let _0x4eb1a6=_0x2177[_0x3113e6];return _0x4eb1a6;};import{Plugin as _0x1a2381}from'ckeditor5/src/core';import{CKEditorError as _0x372591}from'ckeditor5/src/utils';import{debounce as _0x4193e5}from'lodash-es';import _0x10bb07 from'./annotations';export default class p extends _0x1a2381{static get[_0x4eb1('0x21')](){return[_0x10bb07];}static get[_0x4eb1('0x24')](){return _0x4eb1('0x1f');}constructor(_0x5567b2){super(_0x5567b2),this[_0x4eb1('0x2')]=new Set(),this[_0x4eb1('0xe')]=new Set();}[_0x4eb1('0x16')](){const _0x4d1988=this[_0x4eb1('0xf')],_0x224c74=_0x4d1988[_0x4eb1('0x27')][_0x4eb1('0x26')][_0x4eb1('0x3')],_0x368370=_0x4193e5(()=>this[_0x4eb1('0x23')](),0xa);_0x224c74['on'](_0x4eb1('0x1e'),(_0x642121,_0xb48fc9)=>{_0xb48fc9[_0x4eb1('0x15')]&&(_0x368370[_0x4eb1('0x12')](),this['refreshSelectedViews']());}),this[_0x4eb1('0x25')](_0x4d1988[_0x4eb1('0x7')][_0x4eb1('0x19')][_0x4eb1('0x26')],_0x4eb1('0x2a'),(_0x4e1eaf,_0x4cfeb2,_0x24a469)=>{_0x24a469&&_0x368370();}),this[_0x4eb1('0x25')](_0x4d1988['ui'][_0x4eb1('0xd')],_0x4eb1('0x2a'),(_0x12dcc6,_0x393acd,_0x48cad2)=>{_0x48cad2||_0x4d1988[_0x4eb1('0x2e')]||this[_0x4eb1('0x20')](_0x4eb1('0x2c'),{'isAnnotationTracked':_0x28344e=>this[_0x4eb1('0x17')]['has'](_0x28344e[_0x4eb1('0x0')])});}),this['listenTo'](this[_0x4eb1('0xf')]['ui'],_0x4eb1('0x11'),()=>this[_0x4eb1('0x20')](_0x4eb1('0x18')));}['registerAnnotation'](_0x28772b){if(this[_0x4eb1('0xe')][_0x4eb1('0x1d')](_0x28772b))return;this[_0x4eb1('0xe')][_0x4eb1('0x2b')](_0x28772b['view']),this['editor']['ui'][_0x4eb1('0xd')][_0x4eb1('0x2b')](_0x28772b[_0x4eb1('0x19')][_0x4eb1('0x28')]);const _0x14b668=this[_0x4eb1('0xf')][_0x4eb1('0x6')][_0x4eb1('0x10')](_0x10bb07);this['listenTo'](_0x14b668['collection'],_0x4eb1('0xb'),(_0x41d7ab,_0x55bbce)=>{this[_0x4eb1('0xf')]['ui']['focusTracker'][_0x4eb1('0xb')](_0x55bbce[_0x4eb1('0x19')][_0x4eb1('0x28')]),this['_editorAnnotations']['delete'](_0x55bbce['view']);});}[_0x4eb1('0x9')](){return this[_0x4eb1('0xf')]['editing'][_0x4eb1('0x19')][_0x4eb1('0x9')];}[_0x4eb1('0x22')](_0x3cabdf){if(_0x4eb1('0x1c')!=typeof _0x3cabdf)throw new _0x372591(_0x4eb1('0x29'));this[_0x4eb1('0x2')][_0x4eb1('0x2b')](_0x3cabdf);}[_0x4eb1('0x23')](){this[_0x4eb1('0x20')](_0x4eb1('0xc'));}[_0x4eb1('0x8')]({activeAnnotation:_0x58d8cc,annotations:_0x26b082}){const _0x1e081c=[],_0x1bdcf3=this[_0x4eb1('0xf')]['model']['document'][_0x4eb1('0x3')],_0x148264=Array['from'](_0x1bdcf3[_0x4eb1('0x4')]());for(const [_0x3a689e,_0x18dbe6]of this[_0x4eb1('0x17')]){const _0x1833a6=_0x167c67(_0x18dbe6),_0x2f2692=_0x26b082[_0x4eb1('0x14')](_0x3a689e);_0x1833a6&&_0x2f2692&&_0x1e081c['push']({'annotation':_0x2f2692,'range':_0x1833a6});}function _0x167c67(_0xefe605){for(const _0xd5a7b8 of _0xefe605)for(const _0xf7bc98 of _0x148264)if(_0xd5a7b8[_0x4eb1('0x1a')](_0xf7bc98,!_0x1bdcf3['isCollapsed']))return _0xd5a7b8;return null;}return _0x1e081c[_0x4eb1('0x1')]((_0xe7801d,_0x5cb603)=>{const _0x4224d9=_0xe7801d[_0x4eb1('0x2d')],_0x457d50=_0x5cb603[_0x4eb1('0x2d')];if(!_0x4224d9[_0x4eb1('0xa')](_0x457d50)){if(_0x4224d9[_0x4eb1('0x1a')](_0x457d50,!0x0))return 0x1;if(_0x457d50[_0x4eb1('0x1a')](_0x4224d9,!0x0))return-0x1;}return _0xe7801d[_0x4eb1('0x13')]==_0x58d8cc?-0x1:_0x5cb603['annotation']==_0x58d8cc?0x1:0x0;})[_0x4eb1('0x5')](_0x569780=>_0x569780[_0x4eb1('0x13')]);}get['_editorAnnotationsData'](){const _0x1cb452=new Map();for(const _0x2a4782 of Array['from'](this[_0x4eb1('0x2')]))for(const [_0x3f6445,_0x55880d]of _0x2a4782())_0x1cb452[_0x4eb1('0x1b')](_0x3f6445,_0x55880d);return _0x1cb452;}}
23
+ const _0x13b4=['editorannotations-invalid-source-callback','pluginName','getByInnerView','editor','refresh','requires','annotation','listenTo','change:range','focusTracker','_editorAnnotationsData','change:isFocused','_editorAnnotations','EditorAnnotations','directChange','element','_dataCollectors','plugins','isReadOnly','update','remove','refreshSelectedViews','fire','function','from','push','init','document','blur','map','addSourceCollector','collection','containsRange','innerView','view','editing','hasDomSelection','model','isEqual','add','isCollapsed','range','sort','selection','set','getOrderedSelectedAnnotations'];(function(_0x3097ba,_0x13b42b){const _0x1d9e2f=function(_0x86d184){while(--_0x86d184){_0x3097ba['push'](_0x3097ba['shift']());}};_0x1d9e2f(++_0x13b42b);}(_0x13b4,0x130));const _0x1d9e=function(_0x3097ba,_0x13b42b){_0x3097ba=_0x3097ba-0x0;let _0x1d9e2f=_0x13b4[_0x3097ba];return _0x1d9e2f;};import{Plugin as _0x1e779d}from'ckeditor5/src/core';import{CKEditorError as _0x568bf0}from'ckeditor5/src/utils';import{debounce as _0x180ff9}from'lodash-es';import _0x2c536d from'./annotations';export default class k extends _0x1e779d{static get[_0x1d9e('0x17')](){return[_0x2c536d];}static get[_0x1d9e('0x13')](){return _0x1d9e('0x1f');}constructor(_0x2a5191){super(_0x2a5191),this[_0x1d9e('0x22')]=new Set(),this['_editorAnnotations']=new Set();}[_0x1d9e('0x2c')](){const _0x4c53ae=this[_0x1d9e('0x15')],_0x5eb20c=_0x4c53ae[_0x1d9e('0x9')][_0x1d9e('0x2d')][_0x1d9e('0xf')],_0x32bb36=_0x180ff9(()=>this[_0x1d9e('0x27')](),0xa);_0x5eb20c['on'](_0x1d9e('0x1a'),(_0x378285,_0x23c76c)=>{_0x23c76c[_0x1d9e('0x20')]&&(_0x32bb36['cancel'](),this[_0x1d9e('0x27')]());}),this[_0x1d9e('0x19')](_0x4c53ae['editing']['view'][_0x1d9e('0x2d')],_0x1d9e('0x1d'),(_0x452b9b,_0xfb593e,_0x3a6948)=>{_0x3a6948&&_0x32bb36();}),this[_0x1d9e('0x19')](_0x4c53ae['ui']['focusTracker'],_0x1d9e('0x1d'),(_0x59feae,_0x1551e2,_0x58aa33)=>{_0x58aa33||_0x4c53ae[_0x1d9e('0x24')]||this[_0x1d9e('0x28')](_0x1d9e('0x0'),{'isAnnotationTracked':_0x2a0162=>this[_0x1d9e('0x1c')]['has'](_0x2a0162[_0x1d9e('0x5')])});}),this[_0x1d9e('0x19')](this[_0x1d9e('0x15')]['ui'],_0x1d9e('0x25'),()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x897c00){if(this[_0x1d9e('0x1e')]['has'](_0x897c00))return;this[_0x1d9e('0x1e')][_0x1d9e('0xb')](_0x897c00[_0x1d9e('0x6')]),this[_0x1d9e('0x15')]['ui'][_0x1d9e('0x1b')]['add'](_0x897c00['view'][_0x1d9e('0x21')]);const _0x30a01a=this[_0x1d9e('0x15')][_0x1d9e('0x23')]['get'](_0x2c536d);this[_0x1d9e('0x19')](_0x30a01a[_0x1d9e('0x3')],'remove',(_0x5279a8,_0x57e54d)=>{this[_0x1d9e('0x15')]['ui'][_0x1d9e('0x1b')][_0x1d9e('0x26')](_0x57e54d['view']['element']),this[_0x1d9e('0x1e')]['delete'](_0x57e54d[_0x1d9e('0x6')]);});}[_0x1d9e('0x8')](){return this[_0x1d9e('0x15')][_0x1d9e('0x7')][_0x1d9e('0x6')]['hasDomSelection'];}[_0x1d9e('0x2')](_0x33ddf0){if(_0x1d9e('0x29')!=typeof _0x33ddf0)throw new _0x568bf0(_0x1d9e('0x12'));this[_0x1d9e('0x22')][_0x1d9e('0xb')](_0x33ddf0);}['refreshSelectedViews'](){this['fire'](_0x1d9e('0x16'));}[_0x1d9e('0x11')]({activeAnnotation:_0x30fc65,annotations:_0x13c035}){const _0x4902c9=[],_0x1f71ab=this['editor']['model'][_0x1d9e('0x2d')][_0x1d9e('0xf')],_0x120e66=Array[_0x1d9e('0x2a')](_0x1f71ab['getRanges']());for(const [_0x2e018e,_0x24349c]of this[_0x1d9e('0x1c')]){const _0x4ac706=_0x2da11a(_0x24349c),_0x501c27=_0x13c035[_0x1d9e('0x14')](_0x2e018e);_0x4ac706&&_0x501c27&&_0x4902c9[_0x1d9e('0x2b')]({'annotation':_0x501c27,'range':_0x4ac706});}function _0x2da11a(_0x5e253b){for(const _0x5abaa2 of _0x5e253b)for(const _0x10c06f of _0x120e66)if(_0x5abaa2[_0x1d9e('0x4')](_0x10c06f,!_0x1f71ab[_0x1d9e('0xc')]))return _0x5abaa2;return null;}return _0x4902c9[_0x1d9e('0xe')]((_0x372203,_0x466db6)=>{const _0x223b34=_0x372203[_0x1d9e('0xd')],_0x42543a=_0x466db6[_0x1d9e('0xd')];if(!_0x223b34[_0x1d9e('0xa')](_0x42543a)){if(_0x223b34['containsRange'](_0x42543a,!0x0))return 0x1;if(_0x42543a['containsRange'](_0x223b34,!0x0))return-0x1;}return _0x372203[_0x1d9e('0x18')]==_0x30fc65?-0x1:_0x466db6[_0x1d9e('0x18')]==_0x30fc65?0x1:0x0;})[_0x1d9e('0x1')](_0x5d695d=>_0x5d695d[_0x1d9e('0x18')]);}get[_0x1d9e('0x1c')](){const _0x190e48=new Map();for(const _0x13626c of Array[_0x1d9e('0x2a')](this['_dataCollectors']))for(const [_0x433998,_0x1ba5ca]of _0x13626c())_0x190e48[_0x1d9e('0x10')](_0x433998,_0x1ba5ca);return _0x190e48;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3be0=['register','isFocused','getSelection','annotations','activeAnnotation','getByView','context','updatePosition','_addAnnotationToBalloon','includes','focus','_removeAnnotationFromBalloon','remove','getRangeAt','focusTracker','mousedown','inlineannotations-attach-already-attached','length','every','get','hasActive','document','bind','InlineAnnotations','_addedAnnotations','listenTo','Esc','selection','add','refresh','isActive','_selectedAnnotations','set','init','_forceRefresh','editing','change:height','delete','_manuallyClosed','inline','view','clear','target','has','keystrokes','update','isAttached','visibleView','hasView','_setSelectedAnnotations','detach','targetRect','EditorAnnotations','change:isFocused','plugins','editor','stopListening','setActiveAnnotation','_balloon','inlineannotations-not-allowed-with-context','getOrderedSelectedAnnotations','_closeAnnotation'];(function(_0xa1a2c4,_0x3be07b){const _0x475c4b=function(_0x5a57ea){while(--_0x5a57ea){_0xa1a2c4['push'](_0xa1a2c4['shift']());}};_0x475c4b(++_0x3be07b);}(_0x3be0,0x8e));const _0x475c=function(_0xa1a2c4,_0x3be07b){_0xa1a2c4=_0xa1a2c4-0x0;let _0x475c4b=_0x3be0[_0xa1a2c4];return _0x475c4b;};import{Plugin as _0x3db419}from'ckeditor5/src/core';import _0x305bf3 from'./annotationsuis';import _0x3f82b7 from'./editorannotations';import{ContextualBalloon as _0x505abe}from'ckeditor5/src/ui';import{MouseObserver as _0x318e02}from'ckeditor5/src/engine';import{CKEditorError as _0x32a249}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x3db419{static get['requires'](){return[_0x3f82b7,_0x505abe,_0x305bf3];}static get['pluginName'](){return _0x475c('0x5');}constructor(_0x55b6fb){super(_0x55b6fb),_0x55b6fb[_0x475c('0x11')][_0x475c('0x16')]['addObserver'](_0x318e02),this[_0x475c('0x1c')]=!0x1,this['set'](_0x475c('0x30'),null),this[_0x475c('0x2f')]=null,this[_0x475c('0x14')]=new Set(),this[_0x475c('0x28')]=_0x55b6fb[_0x475c('0x24')][_0x475c('0x1')](_0x505abe),this[_0x475c('0x6')]=new Set(),this[_0x475c('0xd')]=[],this[_0x475c('0x10')]=!0x1;}[_0x475c('0xf')](){const _0x4fbdeb=this[_0x475c('0x25')]['plugins'][_0x475c('0x1')](_0x305bf3);_0x4fbdeb['context']===this['editor']&&(_0x4fbdeb[_0x475c('0x2c')](_0x475c('0x15'),this),this[_0x475c('0x25')][_0x475c('0x1a')][_0x475c('0xe')](_0x475c('0x8'),(_0x24b38f,_0x313c52)=>{const _0x48abcb=this[_0x475c('0x28')];if(this[_0x475c('0x1c')]&&_0x48abcb[_0x475c('0x1d')]){const _0x4077f9=this[_0x475c('0x2f')][_0x475c('0x31')](_0x48abcb[_0x475c('0x1d')]);this[_0x475c('0x2b')](_0x4077f9),_0x313c52();}}));}['afterInit'](){const _0x1e7052=this['editor']['plugins'][_0x475c('0x1')](_0x305bf3);_0x1e7052['context']===this[_0x475c('0x25')]&&(_0x1e7052[_0x475c('0x2')]()||_0x1e7052['switchTo'](_0x475c('0x15')));}[_0x475c('0x27')](_0x153abf){_0x153abf!==this[_0x475c('0x30')]&&(this[_0x475c('0x30')]&&(this[_0x475c('0x30')][_0x475c('0xc')]=!0x1),_0x153abf&&this[_0x475c('0x25')]['ui'][_0x475c('0x3a')][_0x475c('0x2d')]&&(this[_0x475c('0x34')](_0x153abf,!0x0),_0x153abf[_0x475c('0xc')]=!0x0),_0x153abf||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x153abf);}['attach'](_0x4bb175){this[_0x475c('0x2f')]=_0x4bb175;const _0x808980=this[_0x475c('0x25')][_0x475c('0x24')][_0x475c('0x1')](_0x305bf3),_0x2f5fbc=this[_0x475c('0x28')];if(this[_0x475c('0x1c')])throw new _0x32a249(_0x475c('0x3c'),this);if(_0x808980[_0x475c('0x32')]!==this[_0x475c('0x25')])throw new _0x32a249(_0x475c('0x29'),this);const _0x27975d=this[_0x475c('0x25')][_0x475c('0x24')][_0x475c('0x1')](_0x475c('0x22'));this[_0x475c('0x7')](_0x27975d,_0x475c('0xb'),function(){const _0x3db019=_0x27975d[_0x475c('0x2a')]({'activeAnnotation':this[_0x475c('0x30')],'annotations':this[_0x475c('0x2f')]});if(!this[_0x475c('0x10')]&&(_0x5b7aa7=_0x3db019,_0xaf125c=this[_0x475c('0xd')],_0x5b7aa7[_0x475c('0x3d')]===_0xaf125c[_0x475c('0x3d')]&&_0x5b7aa7[_0x475c('0x0')](_0x2064de=>_0xaf125c['includes'](_0x2064de))))return;var _0x5b7aa7,_0xaf125c;this[_0x475c('0x10')]=!0x1,this[_0x475c('0x1f')](_0x3db019),this[_0x475c('0x27')](_0x3db019[0x0]||null);}[_0x475c('0x4')](this)),this[_0x475c('0x7')](_0x27975d,'blur',(_0x1e6180,{isAnnotationTracked:_0x3242ee})=>{this['activeAnnotation']&&_0x3242ee(this[_0x475c('0x30')])&&(this[_0x475c('0x1f')]([]),this['setActiveAnnotation'](null));}),this[_0x475c('0x7')](this[_0x475c('0x25')]['ui'][_0x475c('0x3a')],_0x475c('0x23'),(_0x31eed9,_0x41f230,_0xf27e71)=>{_0xf27e71||this[_0x475c('0x27')](null);}),this[_0x475c('0x7')](_0x4bb175,_0x475c('0x38'),(_0x35fd6f,_0x1298e3)=>{this[_0x475c('0x37')](_0x1298e3),_0x1298e3===this[_0x475c('0x30')]&&this[_0x475c('0x27')](null);}),this[_0x475c('0x7')](_0x2f5fbc,'change:visibleView',(_0x67d6bb,_0x6af5a,_0x4bfae7,_0x36d488)=>{if(_0x36d488&&this['stopListening'](_0x36d488),!_0x4bfae7||!_0x4bb175['getByView'](_0x4bfae7))return;const _0x22d9aa=_0x4bb175[_0x475c('0x31')](_0x4bfae7);this['listenTo'](_0x4bfae7,_0x475c('0x12'),()=>{_0x2f5fbc[_0x475c('0x33')]();}),this[_0x475c('0x7')](_0x4bfae7,_0x475c('0x8'),()=>{this[_0x475c('0x2b')](_0x22d9aa),this[_0x475c('0x25')]['editing'][_0x475c('0x16')]['focus']();}),this[_0x475c('0x30')]!==_0x22d9aa&&this[_0x475c('0x27')](_0x22d9aa);}),this[_0x475c('0x7')](this[_0x475c('0x25')]['ui'],_0x475c('0x1b'),()=>{_0x2f5fbc['visibleView']&&(_0x4bb175['getByView'](_0x2f5fbc['visibleView'])&&_0x2f5fbc[_0x475c('0x33')]());}),this[_0x475c('0x7')](this[_0x475c('0x25')]['editing'][_0x475c('0x16')][_0x475c('0x3')],_0x475c('0x3b'),()=>{this['_forceRefresh']=!0x0,this[_0x475c('0x14')][_0x475c('0x17')]();}),this[_0x475c('0x25')][_0x475c('0x11')]['view'][_0x475c('0x3')][_0x475c('0x9')]['editableElement']&&this[_0x475c('0x25')]['editing'][_0x475c('0x16')][_0x475c('0x36')](),this[_0x475c('0x1c')]=!0x0;}[_0x475c('0x20')](){if(!this[_0x475c('0x1c')])throw new _0x32a249('inlineannotations-detach-not-attached',this);this[_0x475c('0x27')](null);for(const _0x25cadf of this[_0x475c('0x6')])this[_0x475c('0x37')](_0x25cadf);this[_0x475c('0x26')](),this[_0x475c('0x1c')]=!0x1,this[_0x475c('0x2f')]=null;}['destroy'](){this[_0x475c('0x1c')]&&this[_0x475c('0x20')]();}[_0x475c('0x1f')](_0x42f2bf){for(const _0x2204ba of this[_0x475c('0xd')])_0x42f2bf[_0x475c('0x35')](_0x2204ba)||this['_manuallyClosed']['delete'](_0x2204ba);for(const _0x366cd7 of this[_0x475c('0x2f')])_0x42f2bf[_0x475c('0x35')](_0x366cd7)||this[_0x475c('0x37')](_0x366cd7);if(this['editor']['ui'][_0x475c('0x3a')][_0x475c('0x2d')])for(const _0xbce0d of _0x42f2bf)this['_addAnnotationToBalloon'](_0xbce0d);this['_selectedAnnotations']=_0x42f2bf;}[_0x475c('0x34')](_0x316e57,_0x4246dc){this[_0x475c('0x14')][_0x475c('0x19')](_0x316e57)||(this[_0x475c('0x6')]['has'](_0x316e57)||this[_0x475c('0x28')]['hasView'](_0x316e57[_0x475c('0x16')])||(this[_0x475c('0x6')]['add'](_0x316e57),this['_balloon'][_0x475c('0xa')]({'stackId':_0x316e57[_0x475c('0x16')]['id'],'view':_0x316e57['view'],'position':{'target':()=>_0x316e57[_0x475c('0x18')]||_0x316e57[_0x475c('0x21')]||document[_0x475c('0x2e')]()[_0x475c('0x39')](0x0)}})),_0x4246dc&&this[_0x475c('0x28')]['showStack'](_0x316e57[_0x475c('0x16')]['id']));}[_0x475c('0x37')](_0x4bc6e0){this['_addedAnnotations']['has'](_0x4bc6e0)&&this[_0x475c('0x28')][_0x475c('0x1e')](_0x4bc6e0['view'])&&(this['_addedAnnotations'][_0x475c('0x13')](_0x4bc6e0),this[_0x475c('0x28')][_0x475c('0x38')](_0x4bc6e0[_0x475c('0x16')]));}[_0x475c('0x2b')](_0x2362be){this['_manuallyClosed'][_0x475c('0xa')](_0x2362be),this[_0x475c('0x37')](_0x2362be);}}
23
+ const _0x40bf=['set','afterInit','focusTracker','has','inlineannotations-not-allowed-with-context','focus','inline','setActiveAnnotation','isFocused','_setSelectedAnnotations','visibleView','get','getSelection','mousedown','change:isFocused','switchTo','updatePosition','EditorAnnotations','update','_addedAnnotations','register','Esc','_selectedAnnotations','includes','destroy','init','requires','getRangeAt','every','editableElement','length','annotations','detach','target','InlineAnnotations','listenTo','activeAnnotation','stopListening','delete','attach','addObserver','inlineannotations-attach-already-attached','hasView','change:visibleView','plugins','pluginName','document','_manuallyClosed','view','_addAnnotationToBalloon','_balloon','_forceRefresh','_removeAnnotationFromBalloon','refresh','inlineannotations-detach-not-attached','editor','_closeAnnotation','blur','getByView','isAttached','context','selection','keystrokes','add','getOrderedSelectedAnnotations','editing','isActive','remove'];(function(_0x91cc1a,_0x40bf78){const _0x29eed3=function(_0x32654e){while(--_0x32654e){_0x91cc1a['push'](_0x91cc1a['shift']());}};_0x29eed3(++_0x40bf78);}(_0x40bf,0x8a));const _0x29ee=function(_0x91cc1a,_0x40bf78){_0x91cc1a=_0x91cc1a-0x0;let _0x29eed3=_0x40bf[_0x91cc1a];return _0x29eed3;};import{Plugin as _0x1151ca}from'ckeditor5/src/core';import _0xfb4ccc from'./annotationsuis';import _0xd6a0d8 from'./editorannotations';import{ContextualBalloon as _0x4e0336}from'ckeditor5/src/ui';import{MouseObserver as _0x1f9d5c}from'ckeditor5/src/engine';import{CKEditorError as _0x2a2f33}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x1151ca{static get[_0x29ee('0x18')](){return[_0xd6a0d8,_0x4e0336,_0xfb4ccc];}static get[_0x29ee('0x2b')](){return _0x29ee('0x20');}constructor(_0x1ad473){super(_0x1ad473),_0x1ad473['editing'][_0x29ee('0x2e')][_0x29ee('0x26')](_0x1f9d5c),this[_0x29ee('0x39')]=!0x1,this[_0x29ee('0x42')](_0x29ee('0x22'),null),this[_0x29ee('0x1d')]=null,this[_0x29ee('0x2d')]=new Set(),this['_balloon']=_0x1ad473[_0x29ee('0x2a')][_0x29ee('0x9')](_0x4e0336),this[_0x29ee('0x11')]=new Set(),this[_0x29ee('0x14')]=[],this[_0x29ee('0x31')]=!0x1;}[_0x29ee('0x17')](){const _0x2d618f=this[_0x29ee('0x35')][_0x29ee('0x2a')]['get'](_0xfb4ccc);_0x2d618f['context']===this['editor']&&(_0x2d618f[_0x29ee('0x12')]('inline',this),this['editor'][_0x29ee('0x3c')]['set'](_0x29ee('0x13'),(_0x1ef033,_0x523711)=>{const _0x5168df=this['_balloon'];if(this[_0x29ee('0x39')]&&_0x5168df[_0x29ee('0x8')]){const _0x5a025e=this[_0x29ee('0x1d')]['getByView'](_0x5168df[_0x29ee('0x8')]);this[_0x29ee('0x36')](_0x5a025e),_0x523711();}}));}[_0x29ee('0x43')](){const _0xf54310=this[_0x29ee('0x35')]['plugins'][_0x29ee('0x9')](_0xfb4ccc);_0xf54310[_0x29ee('0x3a')]===this[_0x29ee('0x35')]&&(_0xf54310['hasActive']()||_0xf54310[_0x29ee('0xd')](_0x29ee('0x4')));}[_0x29ee('0x5')](_0x119775){_0x119775!==this[_0x29ee('0x22')]&&(this[_0x29ee('0x22')]&&(this[_0x29ee('0x22')]['isActive']=!0x1),_0x119775&&this[_0x29ee('0x35')]['ui'][_0x29ee('0x0')][_0x29ee('0x6')]&&(this[_0x29ee('0x2f')](_0x119775,!0x0),_0x119775[_0x29ee('0x40')]=!0x0),_0x119775||this['_setSelectedAnnotations']([]),this[_0x29ee('0x22')]=_0x119775);}[_0x29ee('0x25')](_0x338b2b){this[_0x29ee('0x1d')]=_0x338b2b;const _0x23dce8=this[_0x29ee('0x35')][_0x29ee('0x2a')][_0x29ee('0x9')](_0xfb4ccc),_0x5c7c47=this['_balloon'];if(this[_0x29ee('0x39')])throw new _0x2a2f33(_0x29ee('0x27'),this);if(_0x23dce8['context']!==this['editor'])throw new _0x2a2f33(_0x29ee('0x2'),this);const _0x46db45=this[_0x29ee('0x35')][_0x29ee('0x2a')][_0x29ee('0x9')](_0x29ee('0xf'));this[_0x29ee('0x21')](_0x46db45,_0x29ee('0x33'),function(){const _0x354508=_0x46db45[_0x29ee('0x3e')]({'activeAnnotation':this[_0x29ee('0x22')],'annotations':this['annotations']});if(!this[_0x29ee('0x31')]&&(_0x1f5776=_0x354508,_0x448789=this[_0x29ee('0x14')],_0x1f5776['length']===_0x448789[_0x29ee('0x1c')]&&_0x1f5776[_0x29ee('0x1a')](_0x2f055f=>_0x448789[_0x29ee('0x15')](_0x2f055f))))return;var _0x1f5776,_0x448789;this[_0x29ee('0x31')]=!0x1,this[_0x29ee('0x7')](_0x354508),this[_0x29ee('0x5')](_0x354508[0x0]||null);}['bind'](this)),this[_0x29ee('0x21')](_0x46db45,_0x29ee('0x37'),(_0x531d55,{isAnnotationTracked:_0x3b17e6})=>{this[_0x29ee('0x22')]&&_0x3b17e6(this['activeAnnotation'])&&(this[_0x29ee('0x7')]([]),this[_0x29ee('0x5')](null));}),this[_0x29ee('0x21')](this[_0x29ee('0x35')]['ui']['focusTracker'],_0x29ee('0xc'),(_0x4dc09d,_0x5c4218,_0x378d11)=>{_0x378d11||this[_0x29ee('0x5')](null);}),this[_0x29ee('0x21')](_0x338b2b,_0x29ee('0x41'),(_0x4548d9,_0x1a1664)=>{this[_0x29ee('0x32')](_0x1a1664),_0x1a1664===this[_0x29ee('0x22')]&&this[_0x29ee('0x5')](null);}),this['listenTo'](_0x5c7c47,_0x29ee('0x29'),(_0x553b1f,_0x2b5d0c,_0x46c797,_0x907bd3)=>{if(_0x907bd3&&this[_0x29ee('0x23')](_0x907bd3),!_0x46c797||!_0x338b2b[_0x29ee('0x38')](_0x46c797))return;const _0x3c17d3=_0x338b2b['getByView'](_0x46c797);this[_0x29ee('0x21')](_0x46c797,'change:height',()=>{_0x5c7c47[_0x29ee('0xe')]();}),this['listenTo'](_0x46c797,'Esc',()=>{this[_0x29ee('0x36')](_0x3c17d3),this[_0x29ee('0x35')][_0x29ee('0x3f')]['view'][_0x29ee('0x3')]();}),this['activeAnnotation']!==_0x3c17d3&&this[_0x29ee('0x5')](_0x3c17d3);}),this[_0x29ee('0x21')](this['editor']['ui'],_0x29ee('0x10'),()=>{_0x5c7c47[_0x29ee('0x8')]&&(_0x338b2b[_0x29ee('0x38')](_0x5c7c47[_0x29ee('0x8')])&&_0x5c7c47[_0x29ee('0xe')]());}),this[_0x29ee('0x21')](this[_0x29ee('0x35')]['editing'][_0x29ee('0x2e')][_0x29ee('0x2c')],_0x29ee('0xb'),()=>{this[_0x29ee('0x31')]=!0x0,this[_0x29ee('0x2d')]['clear']();}),this[_0x29ee('0x35')][_0x29ee('0x3f')][_0x29ee('0x2e')][_0x29ee('0x2c')][_0x29ee('0x3b')][_0x29ee('0x1b')]&&this[_0x29ee('0x35')][_0x29ee('0x3f')][_0x29ee('0x2e')][_0x29ee('0x3')](),this[_0x29ee('0x39')]=!0x0;}['detach'](){if(!this[_0x29ee('0x39')])throw new _0x2a2f33(_0x29ee('0x34'),this);this[_0x29ee('0x5')](null);for(const _0x158293 of this['_addedAnnotations'])this[_0x29ee('0x32')](_0x158293);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}[_0x29ee('0x16')](){this[_0x29ee('0x39')]&&this[_0x29ee('0x1e')]();}[_0x29ee('0x7')](_0x14107f){for(const _0xbf06eb of this[_0x29ee('0x14')])_0x14107f[_0x29ee('0x15')](_0xbf06eb)||this[_0x29ee('0x2d')][_0x29ee('0x24')](_0xbf06eb);for(const _0x7d65ad of this[_0x29ee('0x1d')])_0x14107f[_0x29ee('0x15')](_0x7d65ad)||this[_0x29ee('0x32')](_0x7d65ad);if(this[_0x29ee('0x35')]['ui'][_0x29ee('0x0')][_0x29ee('0x6')])for(const _0x381b36 of _0x14107f)this[_0x29ee('0x2f')](_0x381b36);this['_selectedAnnotations']=_0x14107f;}[_0x29ee('0x2f')](_0x26eb3e,_0x313e42){this[_0x29ee('0x2d')]['has'](_0x26eb3e)||(this['_addedAnnotations'][_0x29ee('0x1')](_0x26eb3e)||this['_balloon'][_0x29ee('0x28')](_0x26eb3e[_0x29ee('0x2e')])||(this[_0x29ee('0x11')][_0x29ee('0x3d')](_0x26eb3e),this[_0x29ee('0x30')][_0x29ee('0x3d')]({'stackId':_0x26eb3e['view']['id'],'view':_0x26eb3e['view'],'position':{'target':()=>_0x26eb3e[_0x29ee('0x1f')]||_0x26eb3e['targetRect']||document[_0x29ee('0xa')]()[_0x29ee('0x19')](0x0)}})),_0x313e42&&this[_0x29ee('0x30')]['showStack'](_0x26eb3e['view']['id']));}['_removeAnnotationFromBalloon'](_0x2dbe76){this[_0x29ee('0x11')]['has'](_0x2dbe76)&&this[_0x29ee('0x30')][_0x29ee('0x28')](_0x2dbe76[_0x29ee('0x2e')])&&(this['_addedAnnotations'][_0x29ee('0x24')](_0x2dbe76),this[_0x29ee('0x30')][_0x29ee('0x41')](_0x2dbe76['view']));}[_0x29ee('0x36')](_0x5068f0){this[_0x29ee('0x2d')][_0x29ee('0x3d')](_0x5068f0),this[_0x29ee('0x32')](_0x5068f0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4910=['attach','_hideBalloon','_refreshPositioningDebounced','_showBalloon','_selectedAnnotations','isDirty','southArrowNorthWest','context','view','rearrange','plugins','cancel','element','southArrowNorthEast','clear','delete','_annotations','keydown','getByView','_integrateWithEditorAnnotations','_editorAnnotations','focus','contains','preventClosingBalloon','listenTo','_destroyEditorAnnotationsIntegration','execute','includes','off','isVisible','bind','isAttached','set','first','NarrowSidebar','unpin','ready','EditorAnnotations','refreshPositioning','hasDomSelection','locale','annotations','content','setActiveAnnotation','_attachToContainer','target','attachToDom','uiUpdate','northArrowSouth','resize','annotationType','refresh','stopListening','create','Sidebar','bodyCollection','remove','_setSelectedAnnotations','length','_manuallyClosedAnnotationViews','register','_detachListeners','destroy','blur','defaultPositions','init','_updateBalloonPosition','activeAnnotation','mousedown','stop','add','detach','_annotationToNarrowView','_refreshPositioning','balloonPanelView','narrowsidebar-detach-not-attached','esc','addEventListener','getSidebarItemView','type','from','ck-sidebar--narrow','change:container','high','editors','requires','get','_domEmitter','preventDefault'];(function(_0x425f7f,_0x491060){const _0x38bd04=function(_0x2c048a){while(--_0x2c048a){_0x425f7f['push'](_0x425f7f['shift']());}};_0x38bd04(++_0x491060);}(_0x4910,0x17b));const _0x38bd=function(_0x425f7f,_0x491060){_0x425f7f=_0x425f7f-0x0;let _0x38bd04=_0x4910[_0x425f7f];return _0x38bd04;};import{ContextPlugin as _0x18e68e}from'ckeditor5/src/core';import _0x155c57 from'./annotationsuis';import _0x443cbb from'./sidebar';import _0x38f6c7 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x3bd854,BodyCollection as _0x57ec29}from'ckeditor5/src/ui';import{CKEditorError as _0x503497,DomEmitterMixin as _0x28d884,keyCodes as _0xaa88fb,Collection as _0x378c4a}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x3b42c7}from'lodash-es';export default class s extends _0x18e68e{static get[_0x38bd('0x3e')](){return[_0x443cbb,_0x155c57];}static get['pluginName'](){return _0x38bd('0xb');}constructor(_0x2ef356){super(_0x2ef356),this['isAttached']=!0x1,this[_0x38bd('0x24')]=new Set(),this['_domEmitter']=Object[_0x38bd('0x1e')](_0x28d884),this[_0x38bd('0x31')]=new Map(),this[_0x38bd('0x9')](_0x38bd('0x2c'),null),this['annotations']=null,this[_0x38bd('0x46')]=[],this[_0x38bd('0x56')]=new _0x378c4a(),this[_0x38bd('0x44')]=_0x3b42c7(()=>{this[_0x38bd('0x32')]();},0xfa,{'leading':!0x1});}[_0x38bd('0x2a')](){this['context'][_0x38bd('0x4c')][_0x38bd('0x3f')](_0x155c57)[_0x38bd('0x25')]('narrowSidebar',this),this['bodyCollection']=new _0x57ec29(this[_0x38bd('0x49')][_0x38bd('0x11')]),this[_0x38bd('0x33')]=new _0x3bd854(this[_0x38bd('0x49')][_0x38bd('0x11')]),this['bodyCollection'][_0x38bd('0x17')](),this[_0x38bd('0x20')][_0x38bd('0x2f')](this[_0x38bd('0x33')]);}[_0x38bd('0x42')](_0x19974a){this[_0x38bd('0x12')]=_0x19974a;const _0x1494a4=this[_0x38bd('0x49')][_0x38bd('0x4c')][_0x38bd('0x3f')](_0x443cbb),_0x49f341=this[_0x38bd('0x33')];if(_0x1494a4[_0x38bd('0x52')]=_0x19974a,this['isAttached'])throw new _0x503497('narrowsidebar-attach-already-attached',this);this[_0x38bd('0x8')]=!0x0,this[_0x38bd('0x1')](_0x1494a4,'set:container',()=>{this[_0x38bd('0x30')](),this[_0x38bd('0x1')](_0x1494a4,_0x38bd('0x3b'),_0x1a26eb=>{_0x1a26eb[_0x38bd('0x5')](),this[_0x38bd('0x42')](_0x19974a);});}),_0x1494a4[_0x38bd('0x15')]({'viewClass':_0x38bd('0x3a'),'spaceBetweenItems':0x5});const _0x4782d2=_0x513144=>{const _0x34ae98=new _0x38f6c7(this[_0x38bd('0x49')][_0x38bd('0x11')]);_0x1494a4['addAnnotation'](_0x513144,_0x34ae98),this[_0x38bd('0x31')][_0x38bd('0x9')](_0x513144,_0x34ae98),_0x34ae98[_0x38bd('0x7')]('isDirty',_0x38bd('0x1b'),'number')['to'](_0x513144['view'],_0x38bd('0x47'),_0x38bd('0x38'),_0x38bd('0x23')),_0x34ae98['on'](_0x38bd('0x3'),()=>{this['_manuallyClosedAnnotationViews'][_0x38bd('0x50')](),_0x49f341[_0x38bd('0x13')][_0x38bd('0xa')]!==_0x513144['view']?(this[_0x38bd('0x45')](_0x513144),_0x513144[_0x38bd('0x4a')][_0x38bd('0x4e')][_0x38bd('0x57')](),this[_0x38bd('0x14')](_0x513144)):this[_0x38bd('0x14')](null);});};for(const _0x49fb9e of _0x19974a)_0x4782d2(_0x49fb9e);this[_0x38bd('0x1')](_0x19974a,_0x38bd('0x2f'),(_0x5b2f29,_0x4b8216)=>{_0x4782d2(_0x4b8216);}),this['listenTo'](_0x19974a,_0x38bd('0x21'),(_0x49e10a,_0x222c77,_0xdae87a)=>{this[_0x38bd('0x31')][_0x38bd('0x3f')](_0x222c77)['destroy'](),this['_annotationToNarrowView'][_0x38bd('0x51')](_0x222c77),_0x1494a4[_0x38bd('0x4b')]({'removedAnnotation':_0x222c77,'previousAnnotation':_0x19974a[_0x38bd('0x3f')](_0xdae87a-0x1),'nextAnnotation':_0x19974a[_0x38bd('0x3f')](_0xdae87a+0x1)}),_0x222c77===this[_0x38bd('0x2c')]&&this[_0x38bd('0x14')](null);},{'priority':'low'}),this['listenTo'](_0x19974a,'focus',(_0x4b3a66,_0x4a7d33)=>{this[_0x38bd('0x14')](_0x4a7d33);}),this['listenTo'](_0x19974a,_0x38bd('0x28'),()=>{this[_0x38bd('0x14')](null);}),this[_0x38bd('0x40')][_0x38bd('0x1')](document,_0x38bd('0x53'),(_0x2fa28c,_0x493254)=>{_0x493254['keyCode']===_0xaa88fb[_0x38bd('0x35')]&&_0x49f341[_0x38bd('0x6')]&&(this[_0x38bd('0x24')]['add'](_0x49f341[_0x38bd('0x13')][_0x38bd('0xa')]),this[_0x38bd('0x43')](),_0x493254['stopPropagation'](),_0x493254[_0x38bd('0x41')]());}),this[_0x38bd('0x40')]['listenTo'](document,'mousedown',(_0x401295,_0x1323e0)=>{const _0x19001c=_0x1323e0['target'];_0x49f341[_0x38bd('0x6')]&&_0x49f341[_0x38bd('0x4e')][_0x38bd('0x58')](_0x19001c)||_0x1494a4[_0x38bd('0x4a')][_0x38bd('0x4e')][_0x38bd('0x58')](_0x19001c)||_0x401295[_0x38bd('0x0')]||(this[_0x38bd('0x24')][_0x38bd('0x50')](),this[_0x38bd('0x43')](),this[_0x38bd('0x14')](null));});const _0x1590cd=this['context'][_0x38bd('0x3d')]?this[_0x38bd('0x49')][_0x38bd('0x3d')]:new _0x378c4a([this[_0x38bd('0x49')]]);for(const _0x515a6c of _0x1590cd)this[_0x38bd('0x55')](_0x515a6c);this['listenTo'](_0x1590cd,'add',(_0x245892,_0x58a4eb)=>{this['listenTo'](_0x58a4eb,_0x38bd('0xd'),()=>{this[_0x38bd('0x55')](_0x58a4eb);});}),this[_0x38bd('0x1')](_0x1590cd,_0x38bd('0x21'),(_0x431e03,_0x5550a7)=>{_0x5550a7[_0x38bd('0x4c')]['has'](_0x38bd('0xe'))&&this[_0x38bd('0x2')](_0x5550a7[_0x38bd('0x4c')]['get'](_0x38bd('0xe')));}),window[_0x38bd('0x36')](_0x38bd('0x1a'),this[_0x38bd('0x44')]),this[_0x38bd('0x32')]();}[_0x38bd('0x14')](_0x3343e4){if(_0x3343e4===this['activeAnnotation'])return;const _0x5c120c=this['context'][_0x38bd('0x4c')][_0x38bd('0x3f')](_0x38bd('0x1f'));if(_0x5c120c[_0x38bd('0x1c')]({'blurredAnnotation':this[_0x38bd('0x2c')],'activatedAnnotation':_0x3343e4,'disableAnimationOnActivatedAnnotation':!0x0}),_0x3343e4)_0x5c120c[_0x38bd('0x37')](_0x3343e4)?this['_showBalloon'](_0x3343e4):this[_0x38bd('0x43')]();else this[_0x38bd('0x43')]();this[_0x38bd('0x2c')]=_0x3343e4;}[_0x38bd('0x30')](){if(!this['isAttached'])throw new _0x503497(_0x38bd('0x34'),this);this['setActiveAnnotation'](null);const _0x4a61df=this[_0x38bd('0x49')]['plugins'][_0x38bd('0x3f')]('Sidebar');this['_hideBalloon'](),Array[_0x38bd('0x39')](this[_0x38bd('0x31')]['values'](),_0x917440=>_0x917440[_0x38bd('0x27')]()),this[_0x38bd('0x31')][_0x38bd('0x50')](),_0x4a61df['_detachFromContainer'](this[_0x38bd('0x12')]),this[_0x38bd('0x1d')](),this['_domEmitter'][_0x38bd('0x1d')](),this[_0x38bd('0x1d')](this[_0x38bd('0x49')][_0x38bd('0x3d')]);for(const _0x180dce of Array[_0x38bd('0x39')](this[_0x38bd('0x56')]))this['_destroyEditorAnnotationsIntegration'](_0x180dce);window['removeEventListener'](_0x38bd('0x1a'),this[_0x38bd('0x44')]),this[_0x38bd('0x44')][_0x38bd('0x4d')](),this[_0x38bd('0x46')]=[],this[_0x38bd('0x8')]=!0x1,this[_0x38bd('0x12')]=null;}['destroy'](){this[_0x38bd('0x8')]&&this['detach'](),this[_0x38bd('0x20')]['detachFromDom']();}[_0x38bd('0x55')](_0x1ad2ef){const _0x898b76=_0x1ad2ef[_0x38bd('0x4c')][_0x38bd('0x3f')](_0x38bd('0xe')),_0x632a04=this[_0x38bd('0x49')][_0x38bd('0x4c')][_0x38bd('0x3f')](_0x443cbb),_0x976898=this['annotations'],_0x13f2bc=this[_0x38bd('0x33')],_0x31e00a=()=>{const _0x26c009=_0x898b76['getOrderedSelectedAnnotations']({'activeAnnotation':this[_0x38bd('0x2c')],'annotations':this['annotations']});this[_0x38bd('0x22')](_0x26c009),this[_0x38bd('0x14')](_0x26c009[0x0]||null);};this[_0x38bd('0x1')](_0x898b76,_0x38bd('0x1c'),_0x31e00a),this['listenTo'](_0x898b76,_0x38bd('0x28'),(_0x17670d,{isAnnotationTracked:_0x3639b3})=>{this[_0x38bd('0x2c')]&&_0x3639b3(this[_0x38bd('0x2c')])&&(this[_0x38bd('0x22')]([]),this[_0x38bd('0x14')](null));}),this[_0x38bd('0x1')](_0x898b76,_0x38bd('0x18'),()=>{this[_0x38bd('0x44')]();}),this[_0x38bd('0x1')](_0x976898,_0x38bd('0x28'),_0x4230e1=>{_0x898b76[_0x38bd('0x10')]()&&_0x4230e1[_0x38bd('0x2e')]();},{'priority':'high'}),this[_0x38bd('0x40')][_0x38bd('0x1')](document,_0x38bd('0x2d'),(_0x428613,_0x1eec42)=>{const _0x20ec9b=_0x1eec42[_0x38bd('0x16')];_0x13f2bc[_0x38bd('0x6')]&&_0x13f2bc[_0x38bd('0x4e')][_0x38bd('0x58')](_0x20ec9b)||_0x632a04['view'][_0x38bd('0x4e')][_0x38bd('0x58')](_0x20ec9b)||this[_0x38bd('0x2c')]&&_0x898b76[_0x38bd('0x10')]()&&(_0x31e00a(),_0x428613[_0x38bd('0x0')]=!0x0);},{'priority':_0x38bd('0x3c')}),this['_editorAnnotations']['add'](_0x898b76);}[_0x38bd('0x2')](_0x5b08cb){_0x5b08cb&&(this[_0x38bd('0x1d')](_0x5b08cb),this[_0x38bd('0x56')][_0x38bd('0x21')](_0x5b08cb));}[_0x38bd('0x22')](_0x1acb22){for(const _0x46f781 of this[_0x38bd('0x46')])_0x1acb22[_0x38bd('0x4')](_0x46f781)||this['_manuallyClosedAnnotationViews'][_0x38bd('0x51')](_0x46f781[_0x38bd('0x4a')]);this[_0x38bd('0x46')]=_0x1acb22;}[_0x38bd('0x32')](){const _0x411c2d=this[_0x38bd('0x33')];this['annotations'][_0x38bd('0xf')](),_0x411c2d[_0x38bd('0x6')]&&this[_0x38bd('0x2b')]();}['_showBalloon'](_0x51c89b){if(this[_0x38bd('0x24')]['has'](_0x51c89b['view']))return;const _0x115505=this[_0x38bd('0x33')]['content'][_0x38bd('0xa')];_0x115505!==_0x51c89b[_0x38bd('0x4a')]?(_0x115505&&this[_0x38bd('0x26')](_0x115505),this['_attachListeners'](_0x51c89b['view']),this['balloonPanelView'][_0x38bd('0x13')][_0x38bd('0x50')](),this[_0x38bd('0x33')][_0x38bd('0x13')][_0x38bd('0x2f')](_0x51c89b[_0x38bd('0x4a')]),this[_0x38bd('0x2b')]()):this[_0x38bd('0x2b')]();}[_0x38bd('0x2b')](){const _0x1cc2aa=this['balloonPanelView'][_0x38bd('0x13')]['first'],_0x566e85=this[_0x38bd('0x12')][_0x38bd('0x54')](_0x1cc2aa);if(!this[_0x38bd('0x31')]['has'](_0x566e85))return;const _0x54c1e0=this['_annotationToNarrowView'][_0x38bd('0x3f')](_0x566e85)['element'],_0x1931d8=function(){const _0x7dcc44=_0x3bd854[_0x38bd('0x29')];return[_0x7dcc44[_0x38bd('0x4f')],_0x7dcc44['northArrowSouthEast'],_0x7dcc44['southArrowNorth'],_0x7dcc44[_0x38bd('0x19')],_0x7dcc44[_0x38bd('0x48')],_0x7dcc44['northArrowSouthWest']];}();this[_0x38bd('0x33')]['pin']({'target':_0x54c1e0,'positions':_0x1931d8});}['_hideBalloon'](){const _0x4794c3=this[_0x38bd('0x33')],_0x34e926=_0x4794c3['content']['first'];_0x34e926&&(this[_0x38bd('0x26')](_0x34e926),_0x4794c3[_0x38bd('0xc')](),_0x4794c3[_0x38bd('0x13')][_0x38bd('0x50')]());}['_attachListeners'](_0x3df0ec){this[_0x38bd('0x1')](_0x3df0ec,'change:height',()=>this[_0x38bd('0x2b')]()),this[_0x38bd('0x1')](_0x3df0ec,'Esc',(_0x9652d1,_0x1d0e1a)=>{this['_manuallyClosedAnnotationViews'][_0x38bd('0x2f')](_0x3df0ec),this[_0x38bd('0x43')](),_0x1d0e1a();});}['_detachListeners'](_0x131d85){this[_0x38bd('0x1d')](_0x131d85);}}
23
+ const _0x345e=['_showBalloon','content','add','stopListening','detach','keyCode','refresh','annotationType','isDirty','southArrowNorthWest','_annotationToNarrowView','editors','_setSelectedAnnotations','register','southArrowNorth','bodyCollection','ready','Sidebar','pluginName','setActiveAnnotation','remove','mousedown','set:container','defaultPositions','init','isVisible','_refreshPositioning','removeEventListener','preventDefault','requires','number','attach','isAttached','keydown','create','target','_domEmitter','delete','off','preventClosingBalloon','resize','ck-sidebar--narrow','activeAnnotation','contains','first','_refreshPositioningDebounced','view','addEventListener','unpin','set','attachToDom','element','narrowsidebar-attach-already-attached','_hideBalloon','annotations','stop','locale','_updateBalloonPosition','_attachListeners','pin','destroy','_detachListeners','_annotations','_integrateWithEditorAnnotations','addAnnotation','Esc','_manuallyClosedAnnotationViews','getSidebarItemView','context','northArrowSouthWest','_destroyEditorAnnotationsIntegration','high','type','_attachToContainer','has','NarrowSidebar','balloonPanelView','get','blur','getByView','change:container','from','refreshPositioning','listenTo','plugins','EditorAnnotations','detachFromDom','includes','focus','execute','northArrowSouth','hasDomSelection','_editorAnnotations','narrowsidebar-detach-not-attached','_selectedAnnotations','clear','southArrowNorthEast'];(function(_0x18dfa4,_0x345e1d){const _0x26a996=function(_0x3b00e4){while(--_0x3b00e4){_0x18dfa4['push'](_0x18dfa4['shift']());}};_0x26a996(++_0x345e1d);}(_0x345e,0xcc));const _0x26a9=function(_0x18dfa4,_0x345e1d){_0x18dfa4=_0x18dfa4-0x0;let _0x26a996=_0x345e[_0x18dfa4];return _0x26a996;};import{ContextPlugin as _0x5b5fe7}from'ckeditor5/src/core';import _0x3ceff8 from'./annotationsuis';import _0x135e89 from'./sidebar';import _0x6ba298 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x46efca,BodyCollection as _0x50c2bd}from'ckeditor5/src/ui';import{CKEditorError as _0x5a8c46,DomEmitterMixin as _0x327c70,keyCodes as _0x18baf,Collection as _0x17726f}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x3891ea}from'lodash-es';export default class s extends _0x5b5fe7{static get[_0x26a9('0x13')](){return[_0x135e89,_0x3ceff8];}static get[_0x26a9('0x8')](){return _0x26a9('0x41');}constructor(_0x32d86c){super(_0x32d86c),this['isAttached']=!0x1,this[_0x26a9('0x38')]=new Set(),this['_domEmitter']=Object[_0x26a9('0x18')](_0x327c70),this[_0x26a9('0x0')]=new Map(),this['set'](_0x26a9('0x20'),null),this[_0x26a9('0x2c')]=null,this['_selectedAnnotations']=[],this[_0x26a9('0x52')]=new _0x17726f(),this[_0x26a9('0x23')]=_0x3891ea(()=>{this[_0x26a9('0x10')]();},0xfa,{'leading':!0x1});}[_0x26a9('0xe')](){this[_0x26a9('0x3a')][_0x26a9('0x4a')][_0x26a9('0x43')](_0x3ceff8)[_0x26a9('0x3')]('narrowSidebar',this),this[_0x26a9('0x5')]=new _0x50c2bd(this[_0x26a9('0x3a')][_0x26a9('0x2e')]),this[_0x26a9('0x42')]=new _0x46efca(this['context'][_0x26a9('0x2e')]),this[_0x26a9('0x5')][_0x26a9('0x28')](),this[_0x26a9('0x5')][_0x26a9('0x59')](this[_0x26a9('0x42')]);}[_0x26a9('0x15')](_0x2410f5){this[_0x26a9('0x2c')]=_0x2410f5;const _0x1b9f07=this['context']['plugins'][_0x26a9('0x43')](_0x135e89),_0x4d0e3f=this[_0x26a9('0x42')];if(_0x1b9f07[_0x26a9('0x34')]=_0x2410f5,this['isAttached'])throw new _0x5a8c46(_0x26a9('0x2a'),this);this[_0x26a9('0x16')]=!0x0,this[_0x26a9('0x49')](_0x1b9f07,_0x26a9('0xc'),()=>{this['detach'](),this['listenTo'](_0x1b9f07,_0x26a9('0x46'),_0x31c711=>{_0x31c711[_0x26a9('0x1c')](),this[_0x26a9('0x15')](_0x2410f5);});}),_0x1b9f07[_0x26a9('0x3f')]({'viewClass':_0x26a9('0x1f'),'spaceBetweenItems':0x5});const _0x2e4251=_0x31621d=>{const _0x3efd7e=new _0x6ba298(this[_0x26a9('0x3a')]['locale']);_0x1b9f07[_0x26a9('0x36')](_0x31621d,_0x3efd7e),this['_annotationToNarrowView'][_0x26a9('0x27')](_0x31621d,_0x3efd7e),_0x3efd7e['bind']('isDirty',_0x26a9('0x5e'),_0x26a9('0x14'))['to'](_0x31621d[_0x26a9('0x24')],_0x26a9('0x5f'),_0x26a9('0x3e'),'length'),_0x3efd7e['on'](_0x26a9('0x4f'),()=>{this[_0x26a9('0x38')][_0x26a9('0x55')](),_0x4d0e3f[_0x26a9('0x58')][_0x26a9('0x22')]!==_0x31621d[_0x26a9('0x24')]?(this[_0x26a9('0x57')](_0x31621d),_0x31621d[_0x26a9('0x24')][_0x26a9('0x29')][_0x26a9('0x4e')](),this['setActiveAnnotation'](_0x31621d)):this['setActiveAnnotation'](null);});};for(const _0x7f7fcd of _0x2410f5)_0x2e4251(_0x7f7fcd);this[_0x26a9('0x49')](_0x2410f5,'add',(_0x40368b,_0x17ca48)=>{_0x2e4251(_0x17ca48);}),this[_0x26a9('0x49')](_0x2410f5,_0x26a9('0xa'),(_0x36fa0a,_0xd7c4f2,_0x123680)=>{this['_annotationToNarrowView']['get'](_0xd7c4f2)[_0x26a9('0x32')](),this[_0x26a9('0x0')][_0x26a9('0x1b')](_0xd7c4f2),_0x1b9f07['rearrange']({'removedAnnotation':_0xd7c4f2,'previousAnnotation':_0x2410f5['get'](_0x123680-0x1),'nextAnnotation':_0x2410f5['get'](_0x123680+0x1)}),_0xd7c4f2===this['activeAnnotation']&&this[_0x26a9('0x9')](null);},{'priority':'low'}),this[_0x26a9('0x49')](_0x2410f5,_0x26a9('0x4e'),(_0x3c33ea,_0x5c47d3)=>{this['setActiveAnnotation'](_0x5c47d3);}),this[_0x26a9('0x49')](_0x2410f5,_0x26a9('0x44'),()=>{this[_0x26a9('0x9')](null);}),this[_0x26a9('0x1a')][_0x26a9('0x49')](document,_0x26a9('0x17'),(_0x4f29eb,_0xeac032)=>{_0xeac032[_0x26a9('0x5c')]===_0x18baf['esc']&&_0x4d0e3f[_0x26a9('0xf')]&&(this['_manuallyClosedAnnotationViews'][_0x26a9('0x59')](_0x4d0e3f[_0x26a9('0x58')][_0x26a9('0x22')]),this[_0x26a9('0x2b')](),_0xeac032['stopPropagation'](),_0xeac032[_0x26a9('0x12')]());}),this[_0x26a9('0x1a')][_0x26a9('0x49')](document,_0x26a9('0xb'),(_0x2c385b,_0x5e2a21)=>{const _0x5d5dde=_0x5e2a21[_0x26a9('0x19')];_0x4d0e3f['isVisible']&&_0x4d0e3f[_0x26a9('0x29')][_0x26a9('0x21')](_0x5d5dde)||_0x1b9f07['view'][_0x26a9('0x29')][_0x26a9('0x21')](_0x5d5dde)||_0x2c385b[_0x26a9('0x1d')]||(this[_0x26a9('0x38')][_0x26a9('0x55')](),this[_0x26a9('0x2b')](),this[_0x26a9('0x9')](null));});const _0x11db78=this['context'][_0x26a9('0x1')]?this[_0x26a9('0x3a')][_0x26a9('0x1')]:new _0x17726f([this[_0x26a9('0x3a')]]);for(const _0x1b03eb of _0x11db78)this[_0x26a9('0x35')](_0x1b03eb);this[_0x26a9('0x49')](_0x11db78,_0x26a9('0x59'),(_0x40c7a7,_0x4d681a)=>{this[_0x26a9('0x49')](_0x4d681a,_0x26a9('0x6'),()=>{this[_0x26a9('0x35')](_0x4d681a);});}),this[_0x26a9('0x49')](_0x11db78,'remove',(_0x500062,_0x470e18)=>{_0x470e18['plugins'][_0x26a9('0x40')](_0x26a9('0x4b'))&&this[_0x26a9('0x3c')](_0x470e18['plugins'][_0x26a9('0x43')](_0x26a9('0x4b')));}),window[_0x26a9('0x25')](_0x26a9('0x1e'),this[_0x26a9('0x23')]),this['_refreshPositioning']();}[_0x26a9('0x9')](_0x2a5a55){if(_0x2a5a55===this['activeAnnotation'])return;const _0x1eab9b=this[_0x26a9('0x3a')][_0x26a9('0x4a')][_0x26a9('0x43')](_0x26a9('0x7'));if(_0x1eab9b[_0x26a9('0x5d')]({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x2a5a55,'disableAnimationOnActivatedAnnotation':!0x0}),_0x2a5a55)_0x1eab9b[_0x26a9('0x39')](_0x2a5a55)?this['_showBalloon'](_0x2a5a55):this[_0x26a9('0x2b')]();else this['_hideBalloon']();this[_0x26a9('0x20')]=_0x2a5a55;}[_0x26a9('0x5b')](){if(!this[_0x26a9('0x16')])throw new _0x5a8c46(_0x26a9('0x53'),this);this[_0x26a9('0x9')](null);const _0x407787=this[_0x26a9('0x3a')]['plugins']['get'](_0x26a9('0x7'));this['_hideBalloon'](),Array[_0x26a9('0x47')](this[_0x26a9('0x0')]['values'](),_0x4fbbf9=>_0x4fbbf9[_0x26a9('0x32')]()),this[_0x26a9('0x0')][_0x26a9('0x55')](),_0x407787['_detachFromContainer'](this['annotations']),this[_0x26a9('0x5a')](),this[_0x26a9('0x1a')][_0x26a9('0x5a')](),this[_0x26a9('0x5a')](this[_0x26a9('0x3a')][_0x26a9('0x1')]);for(const _0x34e2ed of Array[_0x26a9('0x47')](this[_0x26a9('0x52')]))this['_destroyEditorAnnotationsIntegration'](_0x34e2ed);window[_0x26a9('0x11')](_0x26a9('0x1e'),this[_0x26a9('0x23')]),this['_refreshPositioningDebounced']['cancel'](),this[_0x26a9('0x54')]=[],this[_0x26a9('0x16')]=!0x1,this[_0x26a9('0x2c')]=null;}[_0x26a9('0x32')](){this[_0x26a9('0x16')]&&this[_0x26a9('0x5b')](),this[_0x26a9('0x5')][_0x26a9('0x4c')]();}['_integrateWithEditorAnnotations'](_0x1f3550){const _0x15fd29=_0x1f3550['plugins'][_0x26a9('0x43')]('EditorAnnotations'),_0x20addf=this[_0x26a9('0x3a')][_0x26a9('0x4a')]['get'](_0x135e89),_0x1c87d8=this[_0x26a9('0x2c')],_0x1be126=this[_0x26a9('0x42')],_0x47f48e=()=>{const _0x44711a=_0x15fd29['getOrderedSelectedAnnotations']({'activeAnnotation':this['activeAnnotation'],'annotations':this['annotations']});this[_0x26a9('0x2')](_0x44711a),this[_0x26a9('0x9')](_0x44711a[0x0]||null);};this[_0x26a9('0x49')](_0x15fd29,'refresh',_0x47f48e),this[_0x26a9('0x49')](_0x15fd29,_0x26a9('0x44'),(_0x1b0bc1,{isAnnotationTracked:_0x27a143})=>{this[_0x26a9('0x20')]&&_0x27a143(this['activeAnnotation'])&&(this[_0x26a9('0x2')]([]),this[_0x26a9('0x9')](null));}),this[_0x26a9('0x49')](_0x15fd29,'uiUpdate',()=>{this[_0x26a9('0x23')]();}),this['listenTo'](_0x1c87d8,_0x26a9('0x44'),_0x444f6f=>{_0x15fd29[_0x26a9('0x51')]()&&_0x444f6f[_0x26a9('0x2d')]();},{'priority':_0x26a9('0x3d')}),this['_domEmitter'][_0x26a9('0x49')](document,_0x26a9('0xb'),(_0x5ac51d,_0x5d5232)=>{const _0x44fb36=_0x5d5232[_0x26a9('0x19')];_0x1be126[_0x26a9('0xf')]&&_0x1be126[_0x26a9('0x29')]['contains'](_0x44fb36)||_0x20addf['view'][_0x26a9('0x29')][_0x26a9('0x21')](_0x44fb36)||this['activeAnnotation']&&_0x15fd29[_0x26a9('0x51')]()&&(_0x47f48e(),_0x5ac51d[_0x26a9('0x1d')]=!0x0);},{'priority':'high'}),this[_0x26a9('0x52')][_0x26a9('0x59')](_0x15fd29);}['_destroyEditorAnnotationsIntegration'](_0x1e2230){_0x1e2230&&(this['stopListening'](_0x1e2230),this[_0x26a9('0x52')]['remove'](_0x1e2230));}['_setSelectedAnnotations'](_0x355026){for(const _0x38b61f of this[_0x26a9('0x54')])_0x355026[_0x26a9('0x4d')](_0x38b61f)||this[_0x26a9('0x38')][_0x26a9('0x1b')](_0x38b61f[_0x26a9('0x24')]);this['_selectedAnnotations']=_0x355026;}[_0x26a9('0x10')](){const _0x3c9295=this[_0x26a9('0x42')];this[_0x26a9('0x2c')][_0x26a9('0x48')](),_0x3c9295[_0x26a9('0xf')]&&this['_updateBalloonPosition']();}[_0x26a9('0x57')](_0x313a3f){if(this['_manuallyClosedAnnotationViews'][_0x26a9('0x40')](_0x313a3f[_0x26a9('0x24')]))return;const _0x27f873=this['balloonPanelView'][_0x26a9('0x58')][_0x26a9('0x22')];_0x27f873!==_0x313a3f['view']?(_0x27f873&&this[_0x26a9('0x33')](_0x27f873),this['_attachListeners'](_0x313a3f[_0x26a9('0x24')]),this['balloonPanelView']['content'][_0x26a9('0x55')](),this['balloonPanelView']['content'][_0x26a9('0x59')](_0x313a3f[_0x26a9('0x24')]),this[_0x26a9('0x2f')]()):this[_0x26a9('0x2f')]();}[_0x26a9('0x2f')](){const _0x133bbf=this[_0x26a9('0x42')][_0x26a9('0x58')]['first'],_0x2583b1=this[_0x26a9('0x2c')][_0x26a9('0x45')](_0x133bbf);if(!this[_0x26a9('0x0')]['has'](_0x2583b1))return;const _0x5ba942=this['_annotationToNarrowView'][_0x26a9('0x43')](_0x2583b1)[_0x26a9('0x29')],_0x4cd686=function(){const _0x372475=_0x46efca[_0x26a9('0xd')];return[_0x372475[_0x26a9('0x56')],_0x372475['northArrowSouthEast'],_0x372475[_0x26a9('0x4')],_0x372475[_0x26a9('0x50')],_0x372475[_0x26a9('0x60')],_0x372475[_0x26a9('0x3b')]];}();this[_0x26a9('0x42')][_0x26a9('0x31')]({'target':_0x5ba942,'positions':_0x4cd686});}[_0x26a9('0x2b')](){const _0x519721=this[_0x26a9('0x42')],_0x15c110=_0x519721[_0x26a9('0x58')][_0x26a9('0x22')];_0x15c110&&(this[_0x26a9('0x33')](_0x15c110),_0x519721[_0x26a9('0x26')](),_0x519721[_0x26a9('0x58')][_0x26a9('0x55')]());}[_0x26a9('0x30')](_0x4ca639){this[_0x26a9('0x49')](_0x4ca639,'change:height',()=>this[_0x26a9('0x2f')]()),this[_0x26a9('0x49')](_0x4ca639,_0x26a9('0x37'),(_0x29f1a4,_0x6d2479)=>{this[_0x26a9('0x38')]['add'](_0x4ca639),this[_0x26a9('0x2b')](),_0x6d2479();});}[_0x26a9('0x33')](_0x3913e4){this['stopListening'](_0x3913e4);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1f87=['view','list','change:_lastItem','_getMaxAvailableTop','remove','appendChild','element','bottom','rearrange','sidebar.container','change:top','define','context','unbind','add','nodeType','getSidebarItemView','height','listenTo','refresh','init','stopListening','_setItemTop','_updateLastItem','set','_getTargetTop','target','change:targetRect','_attachToContainer','locale','_annotationToSidebarItemView','getIndex','_createSidebarView','minHeight','sidebar-attachtocontainer-missing-container','get','updateHeight','isAnimationDisabled','_alignForTopChange','max','isActive','sidebar.preventScrollOutOfView','container','_detachFromContainer','config','top','render','clear','_annotations','_alignAfterItem','_lastItem','class','_recalculateBuffer','_alignToTargetRect','_activeAnnotation','destroy','_sidebarItemViewToAnnotation','_alignForBottomChange','_alignBeforeItem','change:bottom','_getItemBefore','_targetTop','delete','_destroySidebarItemView','_getItemAfter','length','_recalculate','targetRect','_spaceBetweenItems','content','sidebar-setcontainer-invalid-element'];(function(_0x2583c1,_0x1f8741){const _0x2a6bb1=function(_0x215155){while(--_0x215155){_0x2583c1['push'](_0x2583c1['shift']());}};_0x2a6bb1(++_0x1f8741);}(_0x1f87,0x101));const _0x2a6b=function(_0x2583c1,_0x1f8741){_0x2583c1=_0x2583c1-0x0;let _0x2a6bb1=_0x1f87[_0x2583c1];return _0x2a6bb1;};import{ContextPlugin as _0x781979}from'ckeditor5/src/core';import _0x376145 from'./view/sidebarview';import _0x13e760 from'./view/sidebaritemview';import{Rect as _0x4d0ac9,CKEditorError as _0x3e929b}from'ckeditor5/src/utils';export default class ht extends _0x781979{static get['pluginName'](){return'Sidebar';}constructor(_0x40afa3){super(_0x40afa3),this[_0x2a6b('0x33')](_0x2a6b('0x6')),this[_0x2a6b('0x1b')]=this[_0x2a6b('0x3b')](),this[_0x2a6b('0x33')](_0x2a6b('0x45'),null),this[_0x2a6b('0x18')]=0x19,this[_0x2a6b('0xc')]=new Map(),this[_0x2a6b('0x39')]=new Map(),this[_0x2a6b('0x27')][_0x2a6b('0x0')][_0x2a6b('0x26')](_0x2a6b('0x44'),!0x1),this[_0x2a6b('0x4')]=null,this[_0x2a6b('0xa')]=null,this[_0x2a6b('0x8')]=[];}[_0x2a6b('0x2f')](){const _0x5e3e2f=this[_0x2a6b('0x27')]['config'][_0x2a6b('0x3e')](_0x2a6b('0x24'));_0x5e3e2f&&this['setContainer'](_0x5e3e2f);}['setContainer'](_0xfc96cd){if(!K(_0xfc96cd))throw new _0x3e929b(_0x2a6b('0x1a'));this[_0x2a6b('0x45')]=_0xfc96cd;}[_0x2a6b('0x37')]({viewClass:_0x54f4e7='',spaceBetweenItems:_0x2e9d03=0x19}={}){if(!K(this[_0x2a6b('0x45')]))throw new _0x3e929b(_0x2a6b('0x3d'),this);this['container'][_0x2a6b('0x20')](this['view'][_0x2a6b('0x21')]),this[_0x2a6b('0x1b')][_0x2a6b('0x7')]=_0x54f4e7,this[_0x2a6b('0x18')]=_0x2e9d03;}[_0x2a6b('0x23')]({removedAnnotation:_0x19fed6,previousAnnotation:_0x4bc3fe,nextAnnotation:_0x21f746}){const _0x1e6cca=this[_0x2a6b('0x2b')](_0x19fed6);this[_0x2a6b('0x1b')][_0x2a6b('0x1c')][_0x2a6b('0x1f')](_0x1e6cca),this['_destroySidebarItemView'](_0x19fed6),_0x4bc3fe&&this['_alignToTargetRect'](this[_0x2a6b('0x2b')](_0x4bc3fe)),_0x21f746&&this[_0x2a6b('0x9')](this[_0x2a6b('0x2b')](_0x21f746)),this[_0x2a6b('0x32')]();}[_0x2a6b('0x2e')]({blurredAnnotation:_0xab2de4,activatedAnnotation:_0x1508a8,disableAnimationOnActivatedAnnotation:_0x1a83dd}){if(this['_activeAnnotation']=_0x1508a8,_0xab2de4){_0xab2de4[_0x2a6b('0x43')]=!0x1;const _0x2fbe89=this[_0x2a6b('0x2b')](_0xab2de4);_0x2fbe89&&_0x1a83dd&&(_0x2fbe89[_0x2a6b('0x40')]=!0x1);}if(_0x1508a8){const _0x46e0f4=this['getSidebarItemView'](_0x1508a8);_0x46e0f4&&(_0x1508a8['isActive']=!0x0,_0x1a83dd&&(_0x46e0f4[_0x2a6b('0x40')]=!0x0,_0x46e0f4[_0x2a6b('0x1')]+=0x1),this[_0x2a6b('0x9')](_0x46e0f4));}}[_0x2a6b('0x46')](_0x2606df){this[_0x2a6b('0x30')](),this[_0x2a6b('0x1b')][_0x2a6b('0x21')][_0x2a6b('0x1f')]();for(const _0x49febe of _0x2606df)this[_0x2a6b('0x13')](_0x49febe);this[_0x2a6b('0x1b')][_0x2a6b('0x1c')][_0x2a6b('0x3')](),this['view'][_0x2a6b('0x7')]='',this[_0x2a6b('0x6')]=null;}['addAnnotation'](_0x55f87f,_0x2f6792){_0x2f6792||(_0x2f6792=_0x55f87f['view']);const _0x21938c=new _0x13e760(this['context'][_0x2a6b('0x38')]);this[_0x2a6b('0xc')][_0x2a6b('0x33')](_0x21938c,_0x55f87f),this[_0x2a6b('0x39')][_0x2a6b('0x33')](_0x55f87f,_0x21938c),_0x21938c[_0x2a6b('0x19')][_0x2a6b('0x29')](_0x2f6792),this['listenTo'](_0x55f87f[_0x2a6b('0x1b')],_0x2a6b('0x36'),(_0x587483,_0x521fb9,_0x26f6e7)=>{const _0x5528b2=this[_0x2a6b('0x34')](_0x55f87f,_0x26f6e7);_0x21938c[_0x2a6b('0x11')]!=_0x5528b2&&(_0x21938c['_targetTop']=_0x5528b2,this['_setItemTop'](_0x21938c,_0x5528b2));}),this[_0x2a6b('0x2d')](_0x21938c,_0x2a6b('0x25'),()=>{this[_0x2a6b('0x16')](_0x21938c,_0x2a6b('0x1'));}),this[_0x2a6b('0x2d')](_0x21938c,_0x2a6b('0xf'),()=>{this[_0x2a6b('0x16')](_0x21938c,_0x2a6b('0x22'));}),this[_0x2a6b('0x9')](_0x21938c);const _0x431c49=this[_0x2a6b('0x10')](_0x21938c);if(_0x431c49)this[_0x2a6b('0x5')](_0x431c49,_0x21938c)||this[_0x2a6b('0x9')](_0x21938c);else this[_0x2a6b('0x9')](_0x21938c);return this[_0x2a6b('0x32')](),this[_0x2a6b('0x1b')]['list'][_0x2a6b('0x29')](_0x21938c),_0x21938c;}[_0x2a6b('0x41')](_0x47c2dd){if(!_0x47c2dd[_0x2a6b('0x19')][_0x2a6b('0x15')])return;const _0x25e910=this[_0x2a6b('0x10')](_0x47c2dd);if(!_0x25e910)return;const _0x476264=this[_0x2a6b('0xc')][_0x2a6b('0x3e')](_0x25e910),_0x27d73e=this[_0x2a6b('0xa')];_0x27d73e&&_0x27d73e===_0x476264?this[_0x2a6b('0x5')](_0x25e910,_0x47c2dd):this['_alignBeforeItem'](_0x47c2dd,_0x25e910);}[_0x2a6b('0xd')](_0x1cd042){if(!_0x1cd042[_0x2a6b('0x19')][_0x2a6b('0x15')])return;const _0x4b75b3=this[_0x2a6b('0x14')](_0x1cd042);if(!_0x4b75b3)return;const _0x3575ef=this[_0x2a6b('0xc')][_0x2a6b('0x3e')](_0x4b75b3),_0x43e703=this[_0x2a6b('0x27')][_0x2a6b('0x0')][_0x2a6b('0x3e')](_0x2a6b('0x44')),_0x139470=this[_0x2a6b('0xa')];_0x139470&&_0x139470===_0x3575ef&&_0x43e703?(this[_0x2a6b('0xe')](_0x4b75b3,_0x1cd042),this[_0x2a6b('0x5')](_0x1cd042,_0x4b75b3)):_0x139470&&_0x139470===_0x3575ef?this[_0x2a6b('0xe')](_0x4b75b3,_0x1cd042):this[_0x2a6b('0x5')](_0x1cd042,_0x4b75b3);}[_0x2a6b('0x16')](_0x40ab47,_0xcaf369){0x0===this[_0x2a6b('0x8')]['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x670cea,changedProp:_0x1c7779}of this['_recalculateBuffer'])_0x2a6b('0x1')===_0x1c7779?this['_alignForTopChange'](_0x670cea):this['_alignForBottomChange'](_0x670cea);this[_0x2a6b('0x8')]=[];},0xa),this[_0x2a6b('0x8')]['push']({'sidebarItemView':_0x40ab47,'changedProp':_0xcaf369});}[_0x2a6b('0x2b')](_0x22483b){return this[_0x2a6b('0x39')][_0x2a6b('0x3e')](_0x22483b);}[_0x2a6b('0xb')](){this[_0x2a6b('0x1b')][_0x2a6b('0xb')]();}['_destroySidebarItemView'](_0x5bc93d){const _0x441543=this[_0x2a6b('0x2b')](_0x5bc93d);this[_0x2a6b('0x30')](_0x441543),this[_0x2a6b('0x30')](_0x5bc93d[_0x2a6b('0x1b')]),_0x441543[_0x2a6b('0xb')](),this['_annotationToSidebarItemView'][_0x2a6b('0x12')](_0x5bc93d),this[_0x2a6b('0xc')]['delete'](_0x441543);}[_0x2a6b('0x3b')](){const _0x5fdecb=new _0x376145(this[_0x2a6b('0x27')][_0x2a6b('0x38')]);return _0x5fdecb[_0x2a6b('0x2')](),this['on'](_0x2a6b('0x1d'),(_0x3aa25e,_0x33eccc,_0x1a5800,_0x6c22d)=>{_0x6c22d&&_0x5fdecb[_0x2a6b('0x28')](_0x2a6b('0x3c')),_0x1a5800?_0x5fdecb['bind'](_0x2a6b('0x3c'))['to'](_0x1a5800,'bottom'):_0x5fdecb[_0x2a6b('0x3c')]=null;}),_0x5fdecb;}[_0x2a6b('0x32')](){this[_0x2a6b('0x6')]=this[_0x2a6b('0x2b')](this[_0x2a6b('0x4')]['last']);}[_0x2a6b('0x10')](_0x5ed0b2){const _0xbf5847=this[_0x2a6b('0xc')]['get'](_0x5ed0b2),_0x2ab208=this[_0x2a6b('0x4')][_0x2a6b('0x3e')](this[_0x2a6b('0x4')][_0x2a6b('0x3a')](_0xbf5847)-0x1);return _0x2ab208&&this['getSidebarItemView'](_0x2ab208);}[_0x2a6b('0x14')](_0x225f49){const _0x1d8916=this['_sidebarItemViewToAnnotation'][_0x2a6b('0x3e')](_0x225f49),_0x56c831=this[_0x2a6b('0x4')]['get'](this[_0x2a6b('0x4')]['getIndex'](_0x1d8916)+0x1);return _0x56c831&&this[_0x2a6b('0x2b')](_0x56c831);}[_0x2a6b('0xe')](_0x17770d,_0x3c613d){_0x17770d['updateHeight']();const _0x5ae568=ut(_0x3c613d[_0x2a6b('0x22')]+this[_0x2a6b('0x18')],_0x17770d[_0x2a6b('0x1')]);return!!_0x5ae568&&(this[_0x2a6b('0x31')](_0x3c613d,_0x3c613d[_0x2a6b('0x1')]-_0x5ae568),!0x0);}[_0x2a6b('0x5')](_0x397e3b,_0x5a2747){_0x397e3b['updateHeight']();const _0xe372b5=ut(_0x397e3b[_0x2a6b('0x22')]+this[_0x2a6b('0x18')],_0x5a2747['top']);return!!_0xe372b5&&(this['_setItemTop'](_0x5a2747,_0x5a2747[_0x2a6b('0x1')]+_0xe372b5,!0x1),!0x0);}[_0x2a6b('0x9')](_0x5a577e){const _0x5ed448=this[_0x2a6b('0xc')]['get'](_0x5a577e);if(!_0x5ed448||!_0x5ed448[_0x2a6b('0x35')])return;const _0x2566d0=this['_getTargetTop'](_0x5ed448,_0x5ed448[_0x2a6b('0x17')]);this[_0x2a6b('0x31')](_0x5a577e,_0x2566d0);}[_0x2a6b('0x34')](_0x4f8436,_0x4f4a77){if(null===_0x4f4a77)return 0x0;if(_0x4f8436['target']instanceof _0x4d0ac9)return _0x4f4a77['top'];{const _0x5adb22=new _0x4d0ac9(this['view'][_0x2a6b('0x21')])['top'];return _0x4f4a77[_0x2a6b('0x1')]-_0x5adb22;}}[_0x2a6b('0x31')](_0x11d77c,_0x28a375,_0x44f3f4=this[_0x2a6b('0x27')][_0x2a6b('0x0')][_0x2a6b('0x3e')](_0x2a6b('0x44'))){_0x44f3f4&&(_0x28a375=Math['max'](_0x28a375,this[_0x2a6b('0x1e')](_0x11d77c))),_0x11d77c[_0x2a6b('0x1')]=_0x28a375;}[_0x2a6b('0x1e')](_0x2deb4e){let _0x162b83=this[_0x2a6b('0x10')](_0x2deb4e),_0x42ca7b=0x0;for(;_0x162b83;)_0x162b83[_0x2a6b('0x3f')](),_0x42ca7b+=this['_spaceBetweenItems']+_0x162b83[_0x2a6b('0x2c')],_0x162b83=this[_0x2a6b('0x10')](_0x162b83);return _0x42ca7b;}}function ut(_0x236b51,_0x26e0b6){return Math[_0x2a6b('0x42')](_0x236b51-_0x26e0b6,0x0);}function K(_0x29e14e){return null!==_0x29e14e&&'object'==typeof _0x29e14e&&0x1===_0x29e14e[_0x2a6b('0x2a')];}
23
+ const _0x2761=['container','destroy','get','object','locale','_activeAnnotation','minHeight','_getTargetTop','stopListening','_createSidebarView','_lastItem','change:targetRect','_detachFromContainer','_annotations','clear','list','add','refresh','target','_getItemAfter','set','_getMaxAvailableTop','content','appendChild','bottom','pluginName','_setItemTop','define','render','_alignAfterItem','updateHeight','sidebar.container','_destroySidebarItemView','bind','_alignBeforeItem','top','_attachToContainer','_sidebarItemViewToAnnotation','change:top','getIndex','view','sidebar-attachtocontainer-missing-container','nodeType','context','sidebar.preventScrollOutOfView','push','_annotationToSidebarItemView','_getItemBefore','listenTo','Sidebar','addAnnotation','_alignForTopChange','init','class','_updateLastItem','isAnimationDisabled','delete','change:bottom','_recalculateBuffer','max','remove','isActive','element','_alignToTargetRect','config','sidebar-setcontainer-invalid-element','length','_alignForBottomChange','_recalculate','_spaceBetweenItems','getSidebarItemView'];(function(_0x4ac63d,_0x276192){const _0x5941e5=function(_0x435d89){while(--_0x435d89){_0x4ac63d['push'](_0x4ac63d['shift']());}};_0x5941e5(++_0x276192);}(_0x2761,0x19e));const _0x5941=function(_0x4ac63d,_0x276192){_0x4ac63d=_0x4ac63d-0x0;let _0x5941e5=_0x2761[_0x4ac63d];return _0x5941e5;};import{ContextPlugin as _0x5bc14a}from'ckeditor5/src/core';import _0x59da0a from'./view/sidebarview';import _0x526db4 from'./view/sidebaritemview';import{Rect as _0x535eb9,CKEditorError as _0x3b9abf}from'ckeditor5/src/utils';export default class b extends _0x5bc14a{static get[_0x5941('0x25')](){return _0x5941('0x3d');}constructor(_0x3522f5){super(_0x3522f5),this[_0x5941('0x20')](_0x5941('0x16')),this[_0x5941('0x34')]=this[_0x5941('0x15')](),this[_0x5941('0x20')](_0x5941('0xc'),null),this['_spaceBetweenItems']=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x5941('0x3a')]=new Map(),this[_0x5941('0x37')]['config'][_0x5941('0x27')](_0x5941('0x38'),!0x1),this[_0x5941('0x19')]=null,this[_0x5941('0x11')]=null,this['_recalculateBuffer']=[];}[_0x5941('0x40')](){const _0x51e30f=this[_0x5941('0x37')][_0x5941('0x5')][_0x5941('0xe')](_0x5941('0x2b'));_0x51e30f&&this['setContainer'](_0x51e30f);}['setContainer'](_0x58db3a){if(!p(_0x58db3a))throw new _0x3b9abf(_0x5941('0x6'));this['container']=_0x58db3a;}[_0x5941('0x30')]({viewClass:_0x5868dc='',spaceBetweenItems:_0x6bf270=0x19}={}){if(!p(this[_0x5941('0xc')]))throw new _0x3b9abf(_0x5941('0x35'),this);this[_0x5941('0xc')][_0x5941('0x23')](this[_0x5941('0x34')][_0x5941('0x3')]),this[_0x5941('0x34')][_0x5941('0x41')]=_0x5868dc,this[_0x5941('0xa')]=_0x6bf270;}['rearrange']({removedAnnotation:_0xf29664,previousAnnotation:_0x34a205,nextAnnotation:_0x2c879e}){const _0x2c4c78=this['getSidebarItemView'](_0xf29664);this['view'][_0x5941('0x1b')][_0x5941('0x1')](_0x2c4c78),this['_destroySidebarItemView'](_0xf29664),_0x34a205&&this[_0x5941('0x4')](this[_0x5941('0xb')](_0x34a205)),_0x2c879e&&this[_0x5941('0x4')](this['getSidebarItemView'](_0x2c879e)),this['_updateLastItem']();}[_0x5941('0x1d')]({blurredAnnotation:_0x1283ec,activatedAnnotation:_0x1a630b,disableAnimationOnActivatedAnnotation:_0x3174a3}){if(this['_activeAnnotation']=_0x1a630b,_0x1283ec){_0x1283ec['isActive']=!0x1;const _0xb5ea90=this['getSidebarItemView'](_0x1283ec);_0xb5ea90&&_0x3174a3&&(_0xb5ea90['isAnimationDisabled']=!0x1);}if(_0x1a630b){const _0x552db9=this[_0x5941('0xb')](_0x1a630b);_0x552db9&&(_0x1a630b[_0x5941('0x2')]=!0x0,_0x3174a3&&(_0x552db9[_0x5941('0x43')]=!0x0,_0x552db9[_0x5941('0x2f')]+=0x1),this[_0x5941('0x4')](_0x552db9));}}[_0x5941('0x18')](_0x5b69a3){this[_0x5941('0x14')](),this[_0x5941('0x34')][_0x5941('0x3')][_0x5941('0x1')]();for(const _0x4a461a of _0x5b69a3)this['_destroySidebarItemView'](_0x4a461a);this[_0x5941('0x34')][_0x5941('0x1b')][_0x5941('0x1a')](),this[_0x5941('0x34')]['class']='',this[_0x5941('0x16')]=null;}[_0x5941('0x3e')](_0x4a648c,_0x4f047f){_0x4f047f||(_0x4f047f=_0x4a648c[_0x5941('0x34')]);const _0x27a0d6=new _0x526db4(this[_0x5941('0x37')][_0x5941('0x10')]);this['_sidebarItemViewToAnnotation']['set'](_0x27a0d6,_0x4a648c),this[_0x5941('0x3a')][_0x5941('0x20')](_0x4a648c,_0x27a0d6),_0x27a0d6['content'][_0x5941('0x1c')](_0x4f047f),this['listenTo'](_0x4a648c[_0x5941('0x34')],_0x5941('0x17'),(_0x1b8908,_0x42e17b,_0x5aa1e7)=>{const _0x5029fd=this['_getTargetTop'](_0x4a648c,_0x5aa1e7);_0x27a0d6['_targetTop']!=_0x5029fd&&(_0x27a0d6['_targetTop']=_0x5029fd,this[_0x5941('0x26')](_0x27a0d6,_0x5029fd));}),this['listenTo'](_0x27a0d6,_0x5941('0x32'),()=>{this[_0x5941('0x9')](_0x27a0d6,'top');}),this[_0x5941('0x3c')](_0x27a0d6,_0x5941('0x45'),()=>{this[_0x5941('0x9')](_0x27a0d6,'bottom');}),this['_alignToTargetRect'](_0x27a0d6);const _0x44bee5=this['_getItemBefore'](_0x27a0d6);if(_0x44bee5)this[_0x5941('0x29')](_0x44bee5,_0x27a0d6)||this['_alignToTargetRect'](_0x27a0d6);else this[_0x5941('0x4')](_0x27a0d6);return this['_updateLastItem'](),this[_0x5941('0x34')]['list'][_0x5941('0x1c')](_0x27a0d6),_0x27a0d6;}[_0x5941('0x3f')](_0x319efe){if(!_0x319efe[_0x5941('0x22')]['length'])return;const _0x1b55c8=this['_getItemBefore'](_0x319efe);if(!_0x1b55c8)return;const _0x22e242=this[_0x5941('0x31')][_0x5941('0xe')](_0x1b55c8),_0x37f470=this[_0x5941('0x11')];_0x37f470&&_0x37f470===_0x22e242?this[_0x5941('0x29')](_0x1b55c8,_0x319efe):this[_0x5941('0x2e')](_0x319efe,_0x1b55c8);}[_0x5941('0x8')](_0x3e6478){if(!_0x3e6478['content'][_0x5941('0x7')])return;const _0x504334=this['_getItemAfter'](_0x3e6478);if(!_0x504334)return;const _0x541201=this[_0x5941('0x31')]['get'](_0x504334),_0x56036c=this[_0x5941('0x37')]['config'][_0x5941('0xe')](_0x5941('0x38')),_0x410f1c=this[_0x5941('0x11')];_0x410f1c&&_0x410f1c===_0x541201&&_0x56036c?(this['_alignBeforeItem'](_0x504334,_0x3e6478),this[_0x5941('0x29')](_0x3e6478,_0x504334)):_0x410f1c&&_0x410f1c===_0x541201?this[_0x5941('0x2e')](_0x504334,_0x3e6478):this['_alignAfterItem'](_0x3e6478,_0x504334);}['_recalculate'](_0xfdcceb,_0xf85080){0x0===this[_0x5941('0x46')][_0x5941('0x7')]&&setTimeout(()=>{for(const {sidebarItemView:_0x4e0ea4,changedProp:_0x277f1c}of this['_recalculateBuffer'])_0x5941('0x2f')===_0x277f1c?this['_alignForTopChange'](_0x4e0ea4):this[_0x5941('0x8')](_0x4e0ea4);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer'][_0x5941('0x39')]({'sidebarItemView':_0xfdcceb,'changedProp':_0xf85080});}[_0x5941('0xb')](_0x11e6ba){return this[_0x5941('0x3a')][_0x5941('0xe')](_0x11e6ba);}['destroy'](){this[_0x5941('0x34')][_0x5941('0xd')]();}[_0x5941('0x2c')](_0x25fb4b){const _0x28b8c5=this[_0x5941('0xb')](_0x25fb4b);this[_0x5941('0x14')](_0x28b8c5),this[_0x5941('0x14')](_0x25fb4b[_0x5941('0x34')]),_0x28b8c5[_0x5941('0xd')](),this[_0x5941('0x3a')][_0x5941('0x44')](_0x25fb4b),this['_sidebarItemViewToAnnotation'][_0x5941('0x44')](_0x28b8c5);}['_createSidebarView'](){const _0x1ae893=new _0x59da0a(this[_0x5941('0x37')][_0x5941('0x10')]);return _0x1ae893[_0x5941('0x28')](),this['on']('change:_lastItem',(_0x2c51f1,_0x401711,_0x1e8e14,_0x585b9c)=>{_0x585b9c&&_0x1ae893['unbind'](_0x5941('0x12')),_0x1e8e14?_0x1ae893[_0x5941('0x2d')](_0x5941('0x12'))['to'](_0x1e8e14,_0x5941('0x24')):_0x1ae893[_0x5941('0x12')]=null;}),_0x1ae893;}[_0x5941('0x42')](){this[_0x5941('0x16')]=this[_0x5941('0xb')](this[_0x5941('0x19')]['last']);}[_0x5941('0x3b')](_0x7e6e14){const _0x3aaec4=this[_0x5941('0x31')]['get'](_0x7e6e14),_0x4ed90a=this[_0x5941('0x19')][_0x5941('0xe')](this[_0x5941('0x19')][_0x5941('0x33')](_0x3aaec4)-0x1);return _0x4ed90a&&this[_0x5941('0xb')](_0x4ed90a);}[_0x5941('0x1f')](_0x43a927){const _0x56ba8a=this['_sidebarItemViewToAnnotation'][_0x5941('0xe')](_0x43a927),_0x223e06=this[_0x5941('0x19')][_0x5941('0xe')](this[_0x5941('0x19')][_0x5941('0x33')](_0x56ba8a)+0x1);return _0x223e06&&this['getSidebarItemView'](_0x223e06);}[_0x5941('0x2e')](_0xe121c4,_0x1e2a43){_0xe121c4[_0x5941('0x2a')]();const _0x249b44=C(_0x1e2a43[_0x5941('0x24')]+this[_0x5941('0xa')],_0xe121c4['top']);return!!_0x249b44&&(this[_0x5941('0x26')](_0x1e2a43,_0x1e2a43[_0x5941('0x2f')]-_0x249b44),!0x0);}['_alignAfterItem'](_0x42e200,_0x21649e){_0x42e200['updateHeight']();const _0x4d5cff=C(_0x42e200[_0x5941('0x24')]+this[_0x5941('0xa')],_0x21649e[_0x5941('0x2f')]);return!!_0x4d5cff&&(this['_setItemTop'](_0x21649e,_0x21649e[_0x5941('0x2f')]+_0x4d5cff,!0x1),!0x0);}[_0x5941('0x4')](_0x504fa6){const _0xf429d4=this['_sidebarItemViewToAnnotation']['get'](_0x504fa6);if(!_0xf429d4||!_0xf429d4[_0x5941('0x1e')])return;const _0x2f932f=this[_0x5941('0x13')](_0xf429d4,_0xf429d4['targetRect']);this[_0x5941('0x26')](_0x504fa6,_0x2f932f);}[_0x5941('0x13')](_0x5591b4,_0x3e022a){if(null===_0x3e022a)return 0x0;if(_0x5591b4[_0x5941('0x1e')]instanceof _0x535eb9)return _0x3e022a['top'];{const _0x314066=new _0x535eb9(this[_0x5941('0x34')]['element'])['top'];return _0x3e022a[_0x5941('0x2f')]-_0x314066;}}[_0x5941('0x26')](_0x2778f6,_0x5662ce,_0x230628=this[_0x5941('0x37')][_0x5941('0x5')][_0x5941('0xe')]('sidebar.preventScrollOutOfView')){_0x230628&&(_0x5662ce=Math[_0x5941('0x0')](_0x5662ce,this['_getMaxAvailableTop'](_0x2778f6))),_0x2778f6[_0x5941('0x2f')]=_0x5662ce;}[_0x5941('0x21')](_0x4d0b1e){let _0x1436a6=this[_0x5941('0x3b')](_0x4d0b1e),_0x5f3c68=0x0;for(;_0x1436a6;)_0x1436a6[_0x5941('0x2a')](),_0x5f3c68+=this[_0x5941('0xa')]+_0x1436a6['height'],_0x1436a6=this[_0x5941('0x3b')](_0x1436a6);return _0x5f3c68;}}function C(_0x17cf70,_0x128783){return Math[_0x5941('0x0')](_0x17cf70-_0x128783,0x0);}function p(_0x447d85){return null!==_0x447d85&&_0x5941('0xf')==typeof _0x447d85&&0x1===_0x447d85[_0x5941('0x36')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x44da=['counterView','setTemplate','ck-annotation-counter','ck-annotation-counter__badge','bindTemplate','set','isDirty','add','span','annotationType','...','bind','number','_badge','icon'];(function(_0x26f07f,_0x44dadc){const _0x346cca=function(_0x3b5cb7){while(--_0x3b5cb7){_0x26f07f['push'](_0x26f07f['shift']());}};_0x346cca(++_0x44dadc);}(_0x44da,0x107));const _0x346c=function(_0x26f07f,_0x44dadc){_0x26f07f=_0x26f07f-0x0;let _0x346cca=_0x44da[_0x26f07f];return _0x346cca;};import{ButtonView as _0x13f7da,View as _0x215b91}from'ckeditor5/src/ui';import _0x54fb55 from'../../../theme/icons/add-comment.svg';export default class nt extends _0x13f7da{constructor(_0x2c0a07){super(_0x2c0a07);const _0x2f70f7=this[_0x346c('0xb')];this[_0x346c('0xc')](_0x346c('0xd'),!0x1),this[_0x346c('0xc')](_0x346c('0x4'),0x0),this[_0x346c('0x3')](_0x346c('0x5'))['to'](this,_0x346c('0xd'),this,_0x346c('0x4'),(_0x538e6d,_0x1a8065)=>_0x538e6d?_0x346c('0x2'):_0x1a8065),this['set'](_0x346c('0x1'),''),this[_0x346c('0x6')]=_0x54fb55,this['extendTemplate']({'attributes':{'class':[_0x346c('0x9')]}}),this[_0x346c('0x7')]=new _0x215b91(),this[_0x346c('0x7')][_0x346c('0x8')]({'tag':_0x346c('0x0'),'attributes':{'class':[_0x346c('0xa'),_0x2f70f7['to'](_0x346c('0x1'),_0x3fe9cd=>'ck-annotation-counter__badge--'+_0x3fe9cd),_0x2f70f7['if'](_0x346c('0xd'),'ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x2f70f7['to'](_0x346c('0x5'))}]}),this['children'][_0x346c('0xe')](this[_0x346c('0x7')]);}}
23
+ const _0x4ad0=['counterView','_badge','extendTemplate','set','isDirty','add','children','bind','span','ck-annotation-counter__badge','number','icon','ck-annotation-counter','...','ck-annotation-counter__badge--edit-mode'];(function(_0x439ffb,_0x4ad08a){const _0x130f03=function(_0x15b5b7){while(--_0x15b5b7){_0x439ffb['push'](_0x439ffb['shift']());}};_0x130f03(++_0x4ad08a);}(_0x4ad0,0x180));const _0x130f=function(_0x439ffb,_0x4ad08a){_0x439ffb=_0x439ffb-0x0;let _0x130f03=_0x4ad0[_0x439ffb];return _0x130f03;};import{ButtonView as _0x248161,View as _0x4a1247}from'ckeditor5/src/ui';import _0x3c1ffe from'../../../theme/icons/add-comment.svg';export default class B extends _0x248161{constructor(_0x1abe2a){super(_0x1abe2a);const _0x10dc15=this['bindTemplate'];this[_0x130f('0x9')]('isDirty',!0x1),this[_0x130f('0x9')](_0x130f('0x1'),0x0),this[_0x130f('0xd')](_0x130f('0x7'))['to'](this,_0x130f('0xa'),this,_0x130f('0x1'),(_0x2c62e8,_0x38089d)=>_0x2c62e8?_0x130f('0x4'):_0x38089d),this[_0x130f('0x9')]('annotationType',''),this[_0x130f('0x2')]=_0x3c1ffe,this[_0x130f('0x8')]({'attributes':{'class':[_0x130f('0x3')]}}),this[_0x130f('0x6')]=new _0x4a1247(),this['counterView']['setTemplate']({'tag':_0x130f('0xe'),'attributes':{'class':[_0x130f('0x0'),_0x10dc15['to']('annotationType',_0x3ced65=>'ck-annotation-counter__badge--'+_0x3ced65),_0x10dc15['if'](_0x130f('0xa'),_0x130f('0x5'))]},'children':[{'text':_0x10dc15['to'](_0x130f('0x7'))}]}),this[_0x130f('0xc')][_0x130f('0xb')](this[_0x130f('0x6')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5218=['isActive','listenTo','bindTemplate','element','height','destroy','content','type','_mutationObserver','mainView','ck-annotation-wrapper--active','Esc','focusTracker','keystrokes','add','div','ck-annotation-wrapper','fire','render','ck-rounded-corners','setTemplate','isDirty','clientHeight','_updateHeight','set','createCollection','length'];(function(_0x2a4315,_0x52188b){const _0x3b6af2=function(_0x425044){while(--_0x425044){_0x2a4315['push'](_0x2a4315['shift']());}};_0x3b6af2(++_0x52188b);}(_0x5218,0x115));const _0x3b6a=function(_0x2a4315,_0x52188b){_0x2a4315=_0x2a4315-0x0;let _0x3b6af2=_0x5218[_0x2a4315];return _0x3b6af2;};import{View as _0x261d56}from'ckeditor5/src/ui';import{FocusTracker as _0x36b98d,KeystrokeHandler as _0x2140f4,uid as _0x2b7c4d}from'ckeditor5/src/utils';import _0x5e852d from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class j extends _0x261d56{constructor(_0x2c0f65,_0x9d04ee){super(_0x2c0f65),this['id']=_0x2b7c4d(),this[_0x3b6a('0x5')]=new _0x36b98d(),this[_0x3b6a('0x6')]=new _0x2140f4(),this['keystrokes'][_0x3b6a('0x11')](_0x3b6a('0x4'),(_0x5b4c46,_0x227b4b)=>this[_0x3b6a('0xa')](_0x3b6a('0x4'),_0x227b4b)),this[_0x3b6a('0x11')]('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x3b6a('0x11')](_0x3b6a('0x18'),0x0),this[_0x3b6a('0x11')](_0x3b6a('0x14'),!0x1),this[_0x3b6a('0x11')](_0x3b6a('0xe'),!0x1),this[_0x3b6a('0x11')](_0x3b6a('0x13'),0x0),this['set'](_0x3b6a('0x0'),''),this[_0x3b6a('0x1')]=_0x5e852d(()=>this[_0x3b6a('0x10')]()),this[_0x3b6a('0x1a')]=this[_0x3b6a('0x12')](),this[_0x3b6a('0x1a')][_0x3b6a('0x7')](_0x9d04ee),this[_0x3b6a('0x2')]=_0x9d04ee;const _0x5f20d5=this[_0x3b6a('0x16')];this[_0x3b6a('0xd')]({'tag':_0x3b6a('0x8'),'attributes':{'class':['ck',_0x3b6a('0x9'),_0x3b6a('0xc'),_0x5f20d5['if'](_0x3b6a('0x14'),_0x3b6a('0x3'))],'tabindex':-0x1},'children':this['content']});}[_0x3b6a('0xb')](){super['render'](),this[_0x3b6a('0x5')][_0x3b6a('0x7')](this['element']),this['keystrokes'][_0x3b6a('0x15')](this['element']),this[_0x3b6a('0x1')]['attach'](this[_0x3b6a('0x17')]);}['destroy'](){this[_0x3b6a('0x1a')]['clear'](),this['keystrokes']['destroy'](),this['focusTracker'][_0x3b6a('0x19')](),this[_0x3b6a('0x1')]['detach'](),super[_0x3b6a('0x19')]();}['focus'](){this['element']['focus']();}[_0x3b6a('0x10')](){const _0x3f0071=this['element'][_0x3b6a('0xf')];_0x3f0071&&(this[_0x3b6a('0x18')]=_0x3f0071);}}
23
+ const _0x56e9=['length','focusTracker','bindTemplate','content','isActive','_mutationObserver','createCollection','setTemplate','div','type','render','add','clientHeight','height','ck-annotation-wrapper--active','clear','Esc','fire','focus','detach','keystrokes','_updateHeight','listenTo','element','isDirty','destroy','mainView','ck-annotation-wrapper','set','attach'];(function(_0xc09b33,_0x56e9f5){const _0x1d8131=function(_0x16088){while(--_0x16088){_0xc09b33['push'](_0xc09b33['shift']());}};_0x1d8131(++_0x56e9f5);}(_0x56e9,0x96));const _0x1d81=function(_0xc09b33,_0x56e9f5){_0xc09b33=_0xc09b33-0x0;let _0x1d8131=_0x56e9[_0xc09b33];return _0x1d8131;};import{View as _0x2457fd}from'ckeditor5/src/ui';import{FocusTracker as _0x4b3985,KeystrokeHandler as _0x1b80cb,uid as _0x1a9cd3}from'ckeditor5/src/utils';import _0x4490af from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class v extends _0x2457fd{constructor(_0x4889a2,_0x592a0a){super(_0x4889a2),this['id']=_0x1a9cd3(),this[_0x1d81('0x1')]=new _0x4b3985(),this[_0x1d81('0x14')]=new _0x1b80cb(),this[_0x1d81('0x14')]['set'](_0x1d81('0x10'),(_0xbf2ece,_0x2242b9)=>this[_0x1d81('0x11')](_0x1d81('0x10'),_0x2242b9)),this[_0x1d81('0x1c')]('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x1d81('0x1c')](_0x1d81('0xd'),0x0),this[_0x1d81('0x1c')](_0x1d81('0x4'),!0x1),this[_0x1d81('0x1c')](_0x1d81('0x18'),!0x1),this[_0x1d81('0x1c')](_0x1d81('0x0'),0x0),this[_0x1d81('0x1c')](_0x1d81('0x9'),''),this[_0x1d81('0x5')]=_0x4490af(()=>this['_updateHeight']()),this['content']=this[_0x1d81('0x6')](),this[_0x1d81('0x3')][_0x1d81('0xb')](_0x592a0a),this[_0x1d81('0x1a')]=_0x592a0a;const _0x1d75bc=this[_0x1d81('0x2')];this[_0x1d81('0x7')]({'tag':_0x1d81('0x8'),'attributes':{'class':['ck',_0x1d81('0x1b'),'ck-rounded-corners',_0x1d75bc['if'](_0x1d81('0x4'),_0x1d81('0xe'))],'tabindex':-0x1},'children':this[_0x1d81('0x3')]});}[_0x1d81('0xa')](){super[_0x1d81('0xa')](),this['focusTracker']['add'](this[_0x1d81('0x17')]),this[_0x1d81('0x14')][_0x1d81('0x16')](this[_0x1d81('0x17')]),this['_mutationObserver'][_0x1d81('0x1d')](this[_0x1d81('0x17')]);}[_0x1d81('0x19')](){this[_0x1d81('0x3')][_0x1d81('0xf')](),this[_0x1d81('0x14')][_0x1d81('0x19')](),this[_0x1d81('0x1')]['destroy'](),this['_mutationObserver'][_0x1d81('0x13')](),super[_0x1d81('0x19')]();}[_0x1d81('0x12')](){this['element']['focus']();}[_0x1d81('0x15')](){const _0x2aa3b7=this[_0x1d81('0x17')][_0x1d81('0xc')];_0x2aa3b7&&(this[_0x1d81('0xd')]=_0x2aa3b7);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5c22=['top','clientHeight','height','isAnimationDisabled','render','setTemplate','detach','ck-sidebar-item--no-animation','bindTemplate','bottom','content','_mutationObserver','createCollection','updateHeight','element','div','attach','bind','set','clear'];(function(_0x2c2855,_0x5c220d){const _0x2abe0f=function(_0x132e95){while(--_0x132e95){_0x2c2855['push'](_0x2c2855['shift']());}};_0x2abe0f(++_0x5c220d);}(_0x5c22,0x11d));const _0x2abe=function(_0x2c2855,_0x5c220d){_0x2c2855=_0x2c2855-0x0;let _0x2abe0f=_0x5c22[_0x2c2855];return _0x2abe0f;};import{View as _0x10cbbd}from'ckeditor5/src/ui';import{toUnit as _0x47b69b}from'ckeditor5/src/utils';import _0x2cb75e from'../../utils/createmutationobserver';const kt=_0x47b69b('px');export default class lt extends _0x10cbbd{constructor(_0x5e49be){super(_0x5e49be),this[_0x2abe('0xd')](_0x2abe('0xf')),this[_0x2abe('0xd')](_0x2abe('0x11'),0x0),this[_0x2abe('0xc')](_0x2abe('0x4'))['to'](this,_0x2abe('0xf'),this,_0x2abe('0x11'),(_0x19bc63,_0x373b5c)=>(_0x19bc63||0x0)+_0x373b5c),this[_0x2abe('0xd')](_0x2abe('0x12'),!0x1),this[_0x2abe('0x6')]=_0x2cb75e(()=>this[_0x2abe('0x8')]()),this['_targetTop']=null,this[_0x2abe('0x5')]=this[_0x2abe('0x7')]();const _0x22bb98=this[_0x2abe('0x3')];this[_0x2abe('0x0')]({'tag':_0x2abe('0xa'),'attributes':{'class':['ck-sidebar-item',_0x22bb98['to'](_0x2abe('0x12'),_0x286ed2=>_0x286ed2?_0x2abe('0x2'):'')],'style':{'top':_0x22bb98['to']('top',kt)}},'children':this[_0x2abe('0x5')]});}[_0x2abe('0x13')](){super[_0x2abe('0x13')](),this['_mutationObserver'][_0x2abe('0xb')](this['element']);}[_0x2abe('0x8')](){const _0x78b457=this[_0x2abe('0x9')][_0x2abe('0x10')];_0x78b457&&(this['height']=_0x78b457);}['destroy'](){this[_0x2abe('0x5')][_0x2abe('0xe')](),this[_0x2abe('0x6')][_0x2abe('0x1')](),super['destroy']();}}
23
+ const _0x26e1=['bindTemplate','_mutationObserver','createCollection','height','set','top','element','destroy','ck-sidebar-item','content','detach','ck-sidebar-item--no-animation','updateHeight','clientHeight','setTemplate','_targetTop','attach','render','bottom','bind','isAnimationDisabled'];(function(_0x2cc69b,_0x26e168){const _0x921098=function(_0x42d84f){while(--_0x42d84f){_0x2cc69b['push'](_0x2cc69b['shift']());}};_0x921098(++_0x26e168);}(_0x26e1,0x120));const _0x9210=function(_0x2cc69b,_0x26e168){_0x2cc69b=_0x2cc69b-0x0;let _0x921098=_0x26e1[_0x2cc69b];return _0x921098;};import{View as _0xb5f0e3}from'ckeditor5/src/ui';import{toUnit as _0x15b978}from'ckeditor5/src/utils';import _0x302b5b from'../../utils/createmutationobserver';const gt=_0x15b978('px');export default class O extends _0xb5f0e3{constructor(_0x56e1fb){super(_0x56e1fb),this[_0x9210('0xa')]('top'),this[_0x9210('0xa')](_0x9210('0x9'),0x0),this[_0x9210('0x4')](_0x9210('0x3'))['to'](this,_0x9210('0xb'),this,_0x9210('0x9'),(_0x403d19,_0x2b1479)=>(_0x403d19||0x0)+_0x2b1479),this['set'](_0x9210('0x5'),!0x1),this[_0x9210('0x7')]=_0x302b5b(()=>this[_0x9210('0x12')]()),this[_0x9210('0x0')]=null,this[_0x9210('0xf')]=this[_0x9210('0x8')]();const _0x3b952f=this[_0x9210('0x6')];this[_0x9210('0x14')]({'tag':'div','attributes':{'class':[_0x9210('0xe'),_0x3b952f['to'](_0x9210('0x5'),_0x4e4319=>_0x4e4319?_0x9210('0x11'):'')],'style':{'top':_0x3b952f['to']('top',gt)}},'children':this[_0x9210('0xf')]});}[_0x9210('0x2')](){super[_0x9210('0x2')](),this[_0x9210('0x7')][_0x9210('0x1')](this[_0x9210('0xc')]);}[_0x9210('0x12')](){const _0x898c33=this[_0x9210('0xc')][_0x9210('0x13')];_0x898c33&&(this['height']=_0x898c33);}[_0x9210('0xd')](){this[_0x9210('0xf')]['clear'](),this[_0x9210('0x7')][_0x9210('0x10')](),super[_0x9210('0xd')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1bd9=['set','bindTemplate','setTemplate','class','ck-reset','minHeight','list'];(function(_0x592adc,_0x1bd95f){const _0xfad9f6=function(_0x7aa9fe){while(--_0x7aa9fe){_0x592adc['push'](_0x592adc['shift']());}};_0xfad9f6(++_0x1bd95f);}(_0x1bd9,0x1da));const _0xfad9=function(_0x592adc,_0x1bd95f){_0x592adc=_0x592adc-0x0;let _0xfad9f6=_0x1bd9[_0x592adc];return _0xfad9f6;};import{View as _0x58a63e}from'ckeditor5/src/ui';import{toUnit as _0x1e2780}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const kt=_0x1e2780('px');export default class ct extends _0x58a63e{constructor(_0x2156fc){super(_0x2156fc);const _0x27f4dd=this[_0xfad9('0x3')];this[_0xfad9('0x2')](_0xfad9('0x0'),0x0),this[_0xfad9('0x2')](_0xfad9('0x5'),''),this[_0xfad9('0x1')]=this['createCollection'](),this[_0xfad9('0x4')]({'tag':'div','attributes':{'class':['ck','ck-sidebar',_0xfad9('0x6'),_0x27f4dd['to'](_0xfad9('0x5'))],'style':{'minHeight':_0x27f4dd['to'](_0xfad9('0x0'),_0x5d5f0c=>_0x5d5f0c?kt(_0x5d5f0c+0xa):null)}},'children':this[_0xfad9('0x1')]});}}
23
+ const _0x3060=['div','setTemplate','class','minHeight','set','list','bindTemplate','createCollection','ck-reset'];(function(_0x1488a0,_0x3060d8){const _0x29c420=function(_0x2bc9cf){while(--_0x2bc9cf){_0x1488a0['push'](_0x1488a0['shift']());}};_0x29c420(++_0x3060d8);}(_0x3060,0xba));const _0x29c4=function(_0x1488a0,_0x3060d8){_0x1488a0=_0x1488a0-0x0;let _0x29c420=_0x3060[_0x1488a0];return _0x29c420;};import{View as _0x3ce763}from'ckeditor5/src/ui';import{toUnit as _0x1a4dbb}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const gt=_0x1a4dbb('px');export default class T extends _0x3ce763{constructor(_0x47b4c3){super(_0x47b4c3);const _0x5cc8aa=this[_0x29c4('0x0')];this[_0x29c4('0x7')](_0x29c4('0x6'),0x0),this[_0x29c4('0x7')](_0x29c4('0x5'),''),this[_0x29c4('0x8')]=this[_0x29c4('0x1')](),this[_0x29c4('0x4')]({'tag':_0x29c4('0x3'),'attributes':{'class':['ck','ck-sidebar',_0x29c4('0x2'),_0x5cc8aa['to'](_0x29c4('0x5'))],'style':{'minHeight':_0x5cc8aa['to'](_0x29c4('0x6'),_0x1aa9e0=>_0x1aa9e0?gt(_0x1aa9e0+0xa):null)}},'children':this[_0x29c4('0x8')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2d3f=['stop','remove','editors','resize','destroy','container','_activeAnnotation','WideSidebar','off','Sidebar','_destroyEditorAnnotationsIntegration','attach','hasDomSelection','refresh','add','EditorAnnotations','listenTo','detach','annotations','stopListening','updateTargetRect','setActiveAnnotation','set','removeEventListener','context','widesidebar-detach-not-attached','pluginName','get','_refreshPositioningDebounced','addAnnotation','from','_attachToContainer','addEventListener','_annotations','uiUpdate','register','activeAnnotation','isAttached','has','high','requires','rearrange','_integrateWithEditorAnnotations','plugins','wideSidebar','blur','switchTo','set:container','_editorAnnotations','refreshPositioning','getOrderedSelectedAnnotations'];(function(_0x2edbf7,_0x2d3f47){const _0x2a7574=function(_0x394849){while(--_0x394849){_0x2edbf7['push'](_0x2edbf7['shift']());}};_0x2a7574(++_0x2d3f47);}(_0x2d3f,0x129));const _0x2a75=function(_0x2edbf7,_0x2d3f47){_0x2edbf7=_0x2edbf7-0x0;let _0x2a7574=_0x2d3f[_0x2edbf7];return _0x2a7574;};import{ContextPlugin as _0x192028}from'ckeditor5/src/core';import _0x44e0c1 from'./annotationsuis';import _0x1611cb from'./sidebar';import{CKEditorError as _0xe9539a,Collection as _0x377902}from'ckeditor5/src/utils';import{debounce as _0xde78cf}from'lodash-es';export default class i extends _0x192028{static get[_0x2a75('0x31')](){return[_0x1611cb,_0x44e0c1];}static get[_0x2a75('0x23')](){return _0x2a75('0x10');}constructor(_0x3faebd){super(_0x3faebd),this[_0x2a75('0x2e')]=!0x1,this[_0x2a75('0x1f')](_0x2a75('0x2d'),null),this[_0x2a75('0x1b')]=null,this[_0x2a75('0x6')]=new _0x377902(),this['_refreshPositioningDebounced']=_0xde78cf(()=>{this[_0x2a75('0x1b')][_0x2a75('0x7')]();},0xfa,{'leading':!0x1});}['init'](){const _0x5cc3b8=this[_0x2a75('0x21')]['plugins'][_0x2a75('0x24')](_0x44e0c1),_0x401003=this[_0x2a75('0x21')][_0x2a75('0x1')][_0x2a75('0x24')](_0x1611cb);_0x5cc3b8[_0x2a75('0x2c')]('wideSidebar',this),_0x401003[_0x2a75('0xe')]&&_0x5cc3b8[_0x2a75('0x4')](_0x2a75('0x2'));}[_0x2a75('0x1e')](_0x2943a0){if(_0x2943a0===this[_0x2a75('0x2d')])return;const _0x45ee91=this[_0x2a75('0x21')][_0x2a75('0x1')][_0x2a75('0x24')](_0x1611cb);_0x45ee91[_0x2a75('0xf')]=_0x2943a0;const _0x3da071=this[_0x2a75('0x2d')];this['activeAnnotation']=_0x2943a0,_0x45ee91[_0x2a75('0x16')]({'blurredAnnotation':_0x3da071,'activatedAnnotation':this['activeAnnotation']});}[_0x2a75('0x14')](_0x4ba9f1){this['annotations']=_0x4ba9f1;const _0x2f0bce=this['context']['plugins']['get'](_0x2a75('0x12'));if(_0x2f0bce[_0x2a75('0x2a')]=_0x4ba9f1,this[_0x2a75('0x2e')])throw new _0xe9539a('widesidebar-attach-already-attached',this);this[_0x2a75('0x2e')]=!0x0,this[_0x2a75('0x19')](_0x2f0bce,_0x2a75('0x5'),()=>{this[_0x2a75('0x1a')](),this['listenTo'](_0x2f0bce,'change:container',_0x22bc35=>{_0x22bc35[_0x2a75('0x11')](),this[_0x2a75('0x14')](_0x4ba9f1);});}),_0x2f0bce[_0x2a75('0x28')]({'viewClass':'ck-sidebar--wide'});const _0x467f32=_0x2ed4e9=>{_0x2ed4e9[_0x2a75('0x1d')](),_0x2f0bce[_0x2a75('0x26')](_0x2ed4e9);};for(const _0x21339e of _0x4ba9f1)_0x467f32(_0x21339e);this['listenTo'](_0x4ba9f1,'add',(_0xddb246,_0x1998e2)=>{_0x467f32(_0x1998e2);}),this['listenTo'](_0x4ba9f1,_0x2a75('0xa'),(_0x367c8f,_0x2a9800,_0x2ebdc9)=>{_0x2f0bce[_0x2a75('0x32')]({'removedAnnotation':_0x2a9800,'previousAnnotation':_0x4ba9f1[_0x2a75('0x24')](_0x2ebdc9-0x1),'nextAnnotation':_0x4ba9f1[_0x2a75('0x24')](_0x2ebdc9+0x1)}),_0x2a9800===this[_0x2a75('0x2d')]&&this[_0x2a75('0x1e')](null);},{'priority':_0x2a75('0x30')}),this[_0x2a75('0x19')](_0x4ba9f1,'focus',(_0x288ad5,_0x5a7f16)=>{this[_0x2a75('0x1e')](_0x5a7f16);}),this[_0x2a75('0x19')](_0x4ba9f1,_0x2a75('0x3'),()=>{this[_0x2a75('0x1e')](null);});const _0x1d762f=this[_0x2a75('0x21')]['editors']?this[_0x2a75('0x21')][_0x2a75('0xb')]:new _0x377902([this[_0x2a75('0x21')]]);for(const _0x470990 of _0x1d762f)this['_integrateWithEditorAnnotations'](_0x470990);this[_0x2a75('0x19')](_0x1d762f,_0x2a75('0x17'),(_0x301c7d,_0x521928)=>{this[_0x2a75('0x19')](_0x521928,'ready',()=>{this[_0x2a75('0x0')](_0x521928);});}),this[_0x2a75('0x19')](_0x1d762f,_0x2a75('0xa'),(_0xf74c1,_0x136942)=>{_0x136942[_0x2a75('0x1')][_0x2a75('0x2f')]('EditorAnnotations')&&this[_0x2a75('0x13')](_0x136942['plugins'][_0x2a75('0x24')]('EditorAnnotations'));}),window[_0x2a75('0x29')](_0x2a75('0xc'),this[_0x2a75('0x25')]),this[_0x2a75('0x1b')][_0x2a75('0x7')]();}[_0x2a75('0x1a')](){if(!this[_0x2a75('0x2e')])throw new _0xe9539a(_0x2a75('0x22'),this);this['setActiveAnnotation'](null);const _0x8339ba=this[_0x2a75('0x21')][_0x2a75('0x1')]['get'](_0x1611cb);_0x8339ba['_detachFromContainer'](this['annotations']),this[_0x2a75('0x1c')](_0x8339ba),this[_0x2a75('0x1c')](this[_0x2a75('0x1b')]),this[_0x2a75('0x1c')](this[_0x2a75('0x21')][_0x2a75('0xb')]);for(const _0x3a9f6e of Array[_0x2a75('0x27')](this[_0x2a75('0x6')]))this[_0x2a75('0x13')](_0x3a9f6e);window[_0x2a75('0x20')]('resize',this[_0x2a75('0x25')]),this[_0x2a75('0x25')]['cancel'](),this[_0x2a75('0x2d')]=null,this[_0x2a75('0x2e')]=!0x1,this[_0x2a75('0x1b')]=null;}[_0x2a75('0xd')](){this[_0x2a75('0x2e')]&&this[_0x2a75('0x1a')]();}[_0x2a75('0x0')](_0x50bd22){const _0x2896c6=_0x50bd22['plugins'][_0x2a75('0x24')](_0x2a75('0x18'));if(!_0x2896c6)return;const _0x54cbd1=()=>{const _0x232660=_0x2896c6[_0x2a75('0x8')]({'annotations':this[_0x2a75('0x1b')],'activeAnnotation':this[_0x2a75('0x2d')]});this[_0x2a75('0x1e')](_0x232660[0x0]||null);};this['listenTo'](_0x2896c6,_0x2a75('0x16'),_0x54cbd1),this[_0x2a75('0x19')](_0x2896c6,'blur',(_0x51e1f0,{isAnnotationTracked:_0x395ba3})=>{this[_0x2a75('0x2d')]&&_0x395ba3(this[_0x2a75('0x2d')])&&this[_0x2a75('0x1e')](null);}),this['listenTo'](_0x2896c6,_0x2a75('0x2b'),()=>{this[_0x2a75('0x25')]();}),this[_0x2a75('0x19')](this[_0x2a75('0x1b')],_0x2a75('0x3'),_0x2cf898=>{_0x2896c6[_0x2a75('0x15')]()&&(_0x54cbd1(),_0x2cf898[_0x2a75('0x9')]());},{'priority':_0x2a75('0x30')}),this['_editorAnnotations'][_0x2a75('0x17')](_0x2896c6);}['_destroyEditorAnnotationsIntegration'](_0x5ecd8a){_0x5ecd8a&&(this[_0x2a75('0x1c')](_0x5ecd8a),this[_0x2a75('0x6')]['remove'](_0x5ecd8a));}}
23
+ const _0x1d51=['hasDomSelection','getOrderedSelectedAnnotations','uiUpdate','_destroyEditorAnnotationsIntegration','_detachFromContainer','attach','context','ck-sidebar--wide','updateTargetRect','_refreshPositioningDebounced','_integrateWithEditorAnnotations','wideSidebar','get','set','Sidebar','widesidebar-attach-already-attached','cancel','ready','requires','editors','annotations','addAnnotation','off','detach','removeEventListener','listenTo','stopListening','activeAnnotation','stop','remove','isAttached','add','blur','WideSidebar','refreshPositioning','set:container','_attachToContainer','plugins','_editorAnnotations','setActiveAnnotation','rearrange','EditorAnnotations','high','refresh','addEventListener','_activeAnnotation','widesidebar-detach-not-attached','_annotations','resize','change:container'];(function(_0x270de7,_0x1d518d){const _0x38a779=function(_0x5eb705){while(--_0x5eb705){_0x270de7['push'](_0x270de7['shift']());}};_0x38a779(++_0x1d518d);}(_0x1d51,0x108));const _0x38a7=function(_0x270de7,_0x1d518d){_0x270de7=_0x270de7-0x0;let _0x38a779=_0x1d51[_0x270de7];return _0x38a779;};import{ContextPlugin as _0x69f504}from'ckeditor5/src/core';import _0x14aa57 from'./annotationsuis';import _0x32df56 from'./sidebar';import{CKEditorError as _0x59f31c,Collection as _0x5a2039}from'ckeditor5/src/utils';import{debounce as _0xefb837}from'lodash-es';export default class i extends _0x69f504{static get[_0x38a7('0x4')](){return[_0x32df56,_0x14aa57];}static get['pluginName'](){return _0x38a7('0x13');}constructor(_0x60e918){super(_0x60e918),this[_0x38a7('0x10')]=!0x1,this[_0x38a7('0x31')](_0x38a7('0xd'),null),this[_0x38a7('0x6')]=null,this['_editorAnnotations']=new _0x5a2039(),this[_0x38a7('0x2d')]=_0xefb837(()=>{this[_0x38a7('0x6')]['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x89aa30=this[_0x38a7('0x2a')]['plugins'][_0x38a7('0x30')](_0x14aa57),_0x271c3=this[_0x38a7('0x2a')]['plugins'][_0x38a7('0x30')](_0x32df56);_0x89aa30['register'](_0x38a7('0x2f'),this),_0x271c3['container']&&_0x89aa30['switchTo'](_0x38a7('0x2f'));}['setActiveAnnotation'](_0x20c0df){if(_0x20c0df===this[_0x38a7('0xd')])return;const _0x5bbbf2=this['context'][_0x38a7('0x17')]['get'](_0x32df56);_0x5bbbf2[_0x38a7('0x1f')]=_0x20c0df;const _0x303a30=this[_0x38a7('0xd')];this[_0x38a7('0xd')]=_0x20c0df,_0x5bbbf2['refresh']({'blurredAnnotation':_0x303a30,'activatedAnnotation':this[_0x38a7('0xd')]});}['attach'](_0x50fde5){this[_0x38a7('0x6')]=_0x50fde5;const _0x17705c=this[_0x38a7('0x2a')][_0x38a7('0x17')][_0x38a7('0x30')](_0x38a7('0x0'));if(_0x17705c[_0x38a7('0x21')]=_0x50fde5,this[_0x38a7('0x10')])throw new _0x59f31c(_0x38a7('0x1'),this);this[_0x38a7('0x10')]=!0x0,this[_0x38a7('0xb')](_0x17705c,_0x38a7('0x15'),()=>{this[_0x38a7('0x9')](),this[_0x38a7('0xb')](_0x17705c,_0x38a7('0x23'),_0x4d5364=>{_0x4d5364[_0x38a7('0x8')](),this[_0x38a7('0x29')](_0x50fde5);});}),_0x17705c[_0x38a7('0x16')]({'viewClass':_0x38a7('0x2b')});const _0x3eadb5=_0xfcd5a5=>{_0xfcd5a5[_0x38a7('0x2c')](),_0x17705c[_0x38a7('0x7')](_0xfcd5a5);};for(const _0xc7bce5 of _0x50fde5)_0x3eadb5(_0xc7bce5);this[_0x38a7('0xb')](_0x50fde5,_0x38a7('0x11'),(_0x3d8f3d,_0x4004a9)=>{_0x3eadb5(_0x4004a9);}),this[_0x38a7('0xb')](_0x50fde5,_0x38a7('0xf'),(_0x5c303c,_0x50f1e9,_0x4d15b5)=>{_0x17705c[_0x38a7('0x1a')]({'removedAnnotation':_0x50f1e9,'previousAnnotation':_0x50fde5[_0x38a7('0x30')](_0x4d15b5-0x1),'nextAnnotation':_0x50fde5['get'](_0x4d15b5+0x1)}),_0x50f1e9===this[_0x38a7('0xd')]&&this[_0x38a7('0x19')](null);},{'priority':'high'}),this[_0x38a7('0xb')](_0x50fde5,'focus',(_0x45fd44,_0x1e45bf)=>{this['setActiveAnnotation'](_0x1e45bf);}),this[_0x38a7('0xb')](_0x50fde5,_0x38a7('0x12'),()=>{this[_0x38a7('0x19')](null);});const _0x14c75a=this['context'][_0x38a7('0x5')]?this[_0x38a7('0x2a')][_0x38a7('0x5')]:new _0x5a2039([this['context']]);for(const _0x1db7d5 of _0x14c75a)this[_0x38a7('0x2e')](_0x1db7d5);this[_0x38a7('0xb')](_0x14c75a,_0x38a7('0x11'),(_0x5083e5,_0x1d0e63)=>{this[_0x38a7('0xb')](_0x1d0e63,_0x38a7('0x3'),()=>{this[_0x38a7('0x2e')](_0x1d0e63);});}),this[_0x38a7('0xb')](_0x14c75a,_0x38a7('0xf'),(_0x4ff551,_0x5100fc)=>{_0x5100fc['plugins']['has'](_0x38a7('0x1b'))&&this['_destroyEditorAnnotationsIntegration'](_0x5100fc[_0x38a7('0x17')][_0x38a7('0x30')](_0x38a7('0x1b')));}),window[_0x38a7('0x1e')]('resize',this[_0x38a7('0x2d')]),this[_0x38a7('0x6')][_0x38a7('0x14')]();}[_0x38a7('0x9')](){if(!this[_0x38a7('0x10')])throw new _0x59f31c(_0x38a7('0x20'),this);this[_0x38a7('0x19')](null);const _0x2aa979=this[_0x38a7('0x2a')]['plugins'][_0x38a7('0x30')](_0x32df56);_0x2aa979[_0x38a7('0x28')](this[_0x38a7('0x6')]),this[_0x38a7('0xc')](_0x2aa979),this[_0x38a7('0xc')](this[_0x38a7('0x6')]),this[_0x38a7('0xc')](this[_0x38a7('0x2a')][_0x38a7('0x5')]);for(const _0x2783a2 of Array['from'](this['_editorAnnotations']))this[_0x38a7('0x27')](_0x2783a2);window[_0x38a7('0xa')](_0x38a7('0x22'),this[_0x38a7('0x2d')]),this[_0x38a7('0x2d')][_0x38a7('0x2')](),this[_0x38a7('0xd')]=null,this[_0x38a7('0x10')]=!0x1,this[_0x38a7('0x6')]=null;}['destroy'](){this[_0x38a7('0x10')]&&this[_0x38a7('0x9')]();}['_integrateWithEditorAnnotations'](_0x1f89b5){const _0xa67425=_0x1f89b5[_0x38a7('0x17')]['get'](_0x38a7('0x1b'));if(!_0xa67425)return;const _0x333580=()=>{const _0x14fec9=_0xa67425[_0x38a7('0x25')]({'annotations':this[_0x38a7('0x6')],'activeAnnotation':this[_0x38a7('0xd')]});this[_0x38a7('0x19')](_0x14fec9[0x0]||null);};this[_0x38a7('0xb')](_0xa67425,_0x38a7('0x1d'),_0x333580),this[_0x38a7('0xb')](_0xa67425,_0x38a7('0x12'),(_0x4244b0,{isAnnotationTracked:_0x585f9b})=>{this[_0x38a7('0xd')]&&_0x585f9b(this[_0x38a7('0xd')])&&this[_0x38a7('0x19')](null);}),this[_0x38a7('0xb')](_0xa67425,_0x38a7('0x26'),()=>{this['_refreshPositioningDebounced']();}),this[_0x38a7('0xb')](this[_0x38a7('0x6')],_0x38a7('0x12'),_0x30de1b=>{_0xa67425[_0x38a7('0x24')]()&&(_0x333580(),_0x30de1b[_0x38a7('0xe')]());},{'priority':_0x38a7('0x1c')}),this[_0x38a7('0x18')]['add'](_0xa67425);}[_0x38a7('0x27')](_0x1b435f){_0x1b435f&&(this[_0x38a7('0xc')](_0x1b435f),this['_editorAnnotations'][_0x38a7('0xf')](_0x1b435f));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2987=['createRange','textProxy','isEnabled','element','change','refresh','getRanges','start','_itemIsContent','model','tableCell','backward','editor','selection','item','comment:','addMarker','_hasContent','document','getLastMatchingPosition','execute','isObject','_trimToContent','substr','end'];(function(_0x37278a,_0x29873b){const _0x444945=function(_0x5513ca){while(--_0x5513ca){_0x37278a['push'](_0x37278a['shift']());}};_0x444945(++_0x29873b);}(_0x2987,0x14b));const _0x4449=function(_0x37278a,_0x29873b){_0x37278a=_0x37278a-0x0;let _0x444945=_0x2987[_0x37278a];return _0x444945;};import{Command as _0x15d6f6}from'ckeditor5/src/core';import{uid as _0x19709d}from'ckeditor5/src/utils';export default class d extends _0x15d6f6{[_0x4449('0x18')](){const _0x3df6a8=this[_0x4449('0x6')][_0x4449('0x3')]['document'][_0x4449('0x7')];for(const _0x46dfd0 of _0x3df6a8[_0x4449('0x0')]())if(this[_0x4449('0xb')](_0x46dfd0))return void(this[_0x4449('0x15')]=!0x0);this['isEnabled']=!0x1;}[_0x4449('0xe')]({threadId:_0x124354=_0x19709d()}={}){const _0x4f3f2f=this[_0x4449('0x6')][_0x4449('0x3')],_0x7960bd=[];for(const _0x33916c of _0x4f3f2f[_0x4449('0xc')]['selection'][_0x4449('0x0')]())this['_hasContent'](_0x33916c)&&_0x7960bd['push'](this[_0x4449('0x10')](_0x33916c));_0x4f3f2f[_0x4449('0x17')](_0x5c705a=>{for(const _0x52b69d of _0x7960bd){const _0x39b333=_0x19709d()[_0x4449('0x11')](0x1,0x5),_0x111deb=_0x4449('0x9')+_0x124354+':'+_0x39b333;_0x5c705a[_0x4449('0xa')](_0x111deb,{'range':_0x52b69d,'usingOperation':!0x1,'affectData':!0x1});}});}[_0x4449('0xb')](_0x4ee98f){for(const _0x2d514e of _0x4ee98f['getItems']())if(this['_itemIsContent'](_0x2d514e))return!0x0;return!0x1;}[_0x4449('0x2')](_0x10a040){return _0x10a040['is'](_0x4449('0x14'))||this[_0x4449('0x6')][_0x4449('0x3')]['schema'][_0x4449('0xf')](_0x10a040)&&!_0x10a040['is'](_0x4449('0x16'),_0x4449('0x4'));}['_trimToContent'](_0x2f8376){const _0x3e9d2e=_0x5ab336=>!this[_0x4449('0x2')](_0x5ab336[_0x4449('0x8')]),_0x3792a2=_0x2f8376[_0x4449('0x1')][_0x4449('0xd')](_0x3e9d2e),_0x9f0d2b=_0x2f8376[_0x4449('0x12')]['getLastMatchingPosition'](_0x3e9d2e,{'direction':_0x4449('0x5')});return this['editor'][_0x4449('0x3')][_0x4449('0x13')](_0x3792a2,_0x9f0d2b);}}
23
+ const _0x3cbc=['element','item','push','createRange','backward','model','textProxy','getRanges','isEnabled','editor','getLastMatchingPosition','_itemIsContent','comment:','execute','addMarker','_trimToContent','tableCell','substr','isObject'];(function(_0x410df9,_0x3cbca9){const _0x520c87=function(_0x3a761f){while(--_0x3a761f){_0x410df9['push'](_0x410df9['shift']());}};_0x520c87(++_0x3cbca9);}(_0x3cbc,0x175));const _0x520c=function(_0x410df9,_0x3cbca9){_0x410df9=_0x410df9-0x0;let _0x520c87=_0x3cbc[_0x410df9];return _0x520c87;};import{Command as _0x268363}from'ckeditor5/src/core';import{uid as _0x1cbb0c}from'ckeditor5/src/utils';export default class j extends _0x268363{['refresh'](){const _0x278784=this['editor']['model']['document']['selection'];for(const _0x1e8c20 of _0x278784[_0x520c('0xe')]())if(this['_hasContent'](_0x1e8c20))return void(this['isEnabled']=!0x0);this[_0x520c('0xf')]=!0x1;}[_0x520c('0x1')]({threadId:_0x918761=_0x1cbb0c()}={}){const _0x2fdf94=this[_0x520c('0x10')][_0x520c('0xc')],_0x3cf0d5=[];for(const _0x72cc2e of _0x2fdf94['document']['selection']['getRanges']())this['_hasContent'](_0x72cc2e)&&_0x3cf0d5[_0x520c('0x9')](this[_0x520c('0x3')](_0x72cc2e));_0x2fdf94['change'](_0x6d453e=>{for(const _0x597246 of _0x3cf0d5){const _0x163a3b=_0x1cbb0c()[_0x520c('0x5')](0x1,0x5),_0x40f5e0=_0x520c('0x0')+_0x918761+':'+_0x163a3b;_0x6d453e[_0x520c('0x2')](_0x40f5e0,{'range':_0x597246,'usingOperation':!0x1,'affectData':!0x1});}});}['_hasContent'](_0x36ba94){for(const _0xcc3d42 of _0x36ba94['getItems']())if(this[_0x520c('0x12')](_0xcc3d42))return!0x0;return!0x1;}[_0x520c('0x12')](_0x105ed3){return _0x105ed3['is'](_0x520c('0xd'))||this[_0x520c('0x10')][_0x520c('0xc')]['schema'][_0x520c('0x6')](_0x105ed3)&&!_0x105ed3['is'](_0x520c('0x7'),_0x520c('0x4'));}[_0x520c('0x3')](_0x21b95b){const _0x19683b=_0x3a5bbd=>!this['_itemIsContent'](_0x3a5bbd[_0x520c('0x8')]),_0x3bfd52=_0x21b95b['start'][_0x520c('0x11')](_0x19683b),_0xe61de1=_0x21b95b['end'][_0x520c('0x11')](_0x19683b,{'direction':_0x520c('0xb')});return this['editor'][_0x520c('0xc')][_0x520c('0xa')](_0x3bfd52,_0xe61de1);}}