@ckeditor/ckeditor5-comments 35.0.1 → 35.2.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 (146) hide show
  1. package/build/comments.js +2 -2
  2. package/build/translations/af.js +1 -1
  3. package/build/translations/ar.js +1 -1
  4. package/build/translations/bg.js +1 -1
  5. package/build/translations/bn.js +1 -1
  6. package/build/translations/bs.js +1 -1
  7. package/build/translations/ca.js +1 -1
  8. package/build/translations/cs.js +1 -1
  9. package/build/translations/da.js +1 -1
  10. package/build/translations/de-ch.js +1 -1
  11. package/build/translations/de.js +1 -1
  12. package/build/translations/el.js +1 -1
  13. package/build/translations/en-au.js +1 -1
  14. package/build/translations/es-co.js +1 -0
  15. package/build/translations/es.js +1 -1
  16. package/build/translations/et.js +1 -1
  17. package/build/translations/fa.js +1 -0
  18. package/build/translations/fi.js +1 -1
  19. package/build/translations/fr.js +1 -1
  20. package/build/translations/gl.js +1 -1
  21. package/build/translations/he.js +1 -1
  22. package/build/translations/hi.js +1 -1
  23. package/build/translations/hr.js +1 -1
  24. package/build/translations/hu.js +1 -1
  25. package/build/translations/id.js +1 -1
  26. package/build/translations/it.js +1 -1
  27. package/build/translations/ja.js +1 -1
  28. package/build/translations/jv.js +1 -1
  29. package/build/translations/ko.js +1 -1
  30. package/build/translations/lt.js +1 -1
  31. package/build/translations/lv.js +1 -1
  32. package/build/translations/ms.js +1 -1
  33. package/build/translations/nl.js +1 -1
  34. package/build/translations/no.js +1 -1
  35. package/build/translations/pl.js +1 -1
  36. package/build/translations/pt-br.js +1 -1
  37. package/build/translations/pt.js +1 -1
  38. package/build/translations/ro.js +1 -1
  39. package/build/translations/ru.js +1 -1
  40. package/build/translations/sk.js +1 -1
  41. package/build/translations/sr-latn.js +1 -1
  42. package/build/translations/sr.js +1 -1
  43. package/build/translations/sv.js +1 -1
  44. package/build/translations/th.js +1 -1
  45. package/build/translations/tk.js +1 -1
  46. package/build/translations/tr.js +1 -1
  47. package/build/translations/tt.js +1 -0
  48. package/build/translations/ug.js +1 -1
  49. package/build/translations/uk.js +1 -1
  50. package/build/translations/ur.js +1 -1
  51. package/build/translations/vi.js +1 -1
  52. package/build/translations/zh-cn.js +1 -1
  53. package/build/translations/zh.js +1 -1
  54. package/lang/contexts.json +2 -1
  55. package/lang/translations/af.po +4 -0
  56. package/lang/translations/ar.po +4 -0
  57. package/lang/translations/bg.po +4 -0
  58. package/lang/translations/bn.po +4 -0
  59. package/lang/translations/bs.po +4 -0
  60. package/lang/translations/ca.po +4 -0
  61. package/lang/translations/cs.po +4 -0
  62. package/lang/translations/da.po +4 -0
  63. package/lang/translations/de-ch.po +4 -0
  64. package/lang/translations/de.po +4 -0
  65. package/lang/translations/el.po +4 -0
  66. package/lang/translations/en-au.po +4 -0
  67. package/lang/translations/en.po +4 -0
  68. package/lang/translations/es-co.po +72 -0
  69. package/lang/translations/es.po +4 -0
  70. package/lang/translations/et.po +4 -0
  71. package/lang/translations/fa.po +71 -0
  72. package/lang/translations/fi.po +4 -0
  73. package/lang/translations/fr.po +4 -0
  74. package/lang/translations/gl.po +4 -0
  75. package/lang/translations/he.po +4 -0
  76. package/lang/translations/hi.po +4 -0
  77. package/lang/translations/hr.po +4 -0
  78. package/lang/translations/hu.po +4 -0
  79. package/lang/translations/id.po +4 -0
  80. package/lang/translations/it.po +4 -0
  81. package/lang/translations/ja.po +4 -0
  82. package/lang/translations/jv.po +4 -0
  83. package/lang/translations/ko.po +4 -0
  84. package/lang/translations/lt.po +4 -0
  85. package/lang/translations/lv.po +4 -0
  86. package/lang/translations/ms.po +4 -0
  87. package/lang/translations/nl.po +4 -0
  88. package/lang/translations/no.po +4 -0
  89. package/lang/translations/pl.po +4 -0
  90. package/lang/translations/pt-br.po +4 -0
  91. package/lang/translations/pt.po +4 -0
  92. package/lang/translations/ro.po +4 -0
  93. package/lang/translations/ru.po +4 -0
  94. package/lang/translations/sk.po +4 -0
  95. package/lang/translations/sr-latn.po +4 -0
  96. package/lang/translations/sr.po +4 -0
  97. package/lang/translations/sv.po +4 -0
  98. package/lang/translations/th.po +4 -0
  99. package/lang/translations/tk.po +4 -0
  100. package/lang/translations/tr.po +4 -0
  101. package/lang/translations/tt.po +70 -0
  102. package/lang/translations/ug.po +4 -0
  103. package/lang/translations/uk.po +4 -0
  104. package/lang/translations/ur.po +4 -0
  105. package/lang/translations/vi.po +4 -0
  106. package/lang/translations/zh-cn.po +4 -0
  107. package/lang/translations/zh.po +4 -0
  108. package/package.json +3 -3
  109. package/src/annotations/annotation.js +1 -1
  110. package/src/annotations/annotationcollection.js +1 -1
  111. package/src/annotations/annotations.js +1 -1
  112. package/src/annotations/annotationsuis.js +1 -1
  113. package/src/annotations/editorannotations.js +1 -1
  114. package/src/annotations/inlineannotations.js +1 -1
  115. package/src/annotations/narrowsidebar.js +1 -1
  116. package/src/annotations/sidebar.js +1 -1
  117. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  118. package/src/annotations/view/annotationview.js +1 -1
  119. package/src/annotations/view/sidebaritemview.js +1 -1
  120. package/src/annotations/view/sidebarview.js +1 -1
  121. package/src/annotations/widesidebar.js +1 -1
  122. package/src/comments/addcommentthreadcommand.js +1 -1
  123. package/src/comments/commentsediting.js +1 -1
  124. package/src/comments/commentsrepository.js +1 -1
  125. package/src/comments/commentsui.js +1 -1
  126. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  127. package/src/comments/integrations/importword.js +23 -0
  128. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  129. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  130. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  131. package/src/comments/ui/commentthreadcontroller.js +1 -1
  132. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  133. package/src/comments/ui/view/basecommentview.js +1 -1
  134. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  135. package/src/comments/ui/view/commentcontentview.js +1 -1
  136. package/src/comments/ui/view/commentinputview.js +1 -1
  137. package/src/comments/ui/view/commentslistview.js +1 -1
  138. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  139. package/src/comments/ui/view/commentthreadview.js +1 -1
  140. package/src/comments/ui/view/commentview.js +1 -1
  141. package/src/comments.js +1 -1
  142. package/src/commentsonly.js +1 -1
  143. package/src/utils/common-translations.js +1 -1
  144. package/src/utils/createmutationobserver.js +1 -1
  145. package/theme/annotation-inline.css +0 -21
  146. package/theme/comment.css +7 -0
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xafb7=['annotationcollection-not-existing-item','isFocused','delete','innerView','fire','blur','targetRect','_sort','view','add','updateTargetRect','focus','_focusTracker','listenTo','stopListening','clear','sort','getByInnerView','remove','from','has','_getOrderInContent','focusTracker','refreshPositioning','change:isFocused','left','annotationcollection-duplicated-item','destroy','top','_items','focusableElements','_innerViewToAnnotation','length','_viewToAnnotation'];(function(_0x951682,_0xafb7c7){const _0x90dfe=function(_0x1585aa){while(--_0x1585aa){_0x951682['push'](_0x951682['shift']());}};_0x90dfe(++_0xafb7c7);}(_0xafb7,0x8b));const _0x90df=function(_0x951682,_0xafb7c7){_0x951682=_0x951682-0x0;let _0x90dfe=_0xafb7[_0x951682];return _0x90dfe;};import{CKEditorError as _0x20b3b7,Collection as _0x2a00e4,FocusTracker as _0x381050}from'ckeditor5/src/utils';export default class x extends _0x2a00e4{constructor(_0x4ee508=[]){super(),this['_innerViewToAnnotation']=new Map(),this[_0x90df('0x1e')]=new Map(),this[_0x90df('0x9')]=new _0x381050(),this['_focusTracker']['on']('change:isFocused',(_0x57fb42,_0x13c642,_0x9437d5)=>{_0x9437d5||this[_0x90df('0x1')](_0x90df('0x2'));});for(const _0x524527 of _0x4ee508)this[_0x90df('0x6')](_0x524527);}get[_0x90df('0x20')](){return this[_0x90df('0x9')][_0x90df('0x20')];}[_0x90df('0x6')](_0x50c9bb){if(this[_0x90df('0x11')](_0x50c9bb))throw new _0x20b3b7(_0x90df('0x17'),null);this[_0x90df('0x1c')]['set'](_0x50c9bb[_0x90df('0x0')],_0x50c9bb),this[_0x90df('0x1e')]['set'](_0x50c9bb[_0x90df('0x5')],_0x50c9bb);for(const _0x11a4b7 of _0x50c9bb[_0x90df('0x1b')])this[_0x90df('0x9')][_0x90df('0x6')](_0x11a4b7);this[_0x90df('0xa')](_0x50c9bb['focusableElements'],_0x90df('0x6'),(_0x59bbaa,_0x5b1f73)=>{this['_focusTracker']['add'](_0x5b1f73);}),this[_0x90df('0xa')](_0x50c9bb['focusableElements'],_0x90df('0xf'),(_0x5c8335,_0x29b1e9)=>{this[_0x90df('0x9')][_0x90df('0xf')](_0x29b1e9);}),this[_0x90df('0xa')](_0x50c9bb[_0x90df('0x5')]['focusTracker'],_0x90df('0x15'),(_0x1ec774,_0x36b52b,_0x51af0e)=>{_0x51af0e&&this['fire'](_0x90df('0x8'),_0x50c9bb);});const _0x19e7b0=this[_0x90df('0x12')](_0x50c9bb);super['add'](_0x50c9bb,_0x19e7b0),_0x50c9bb[_0x90df('0x7')]();}[_0x90df('0xf')](_0x1293d2){if(!this['has'](_0x1293d2))throw new _0x20b3b7(_0x90df('0x1f'),null);this[_0x90df('0xb')](_0x1293d2[_0x90df('0x5')][_0x90df('0x13')]),this[_0x90df('0xb')](_0x1293d2['focusableElements']);for(const _0x15ddd8 of _0x1293d2[_0x90df('0x1b')])this[_0x90df('0x9')]['remove'](_0x15ddd8);this[_0x90df('0x1e')][_0x90df('0x21')](_0x1293d2[_0x90df('0x5')]),this[_0x90df('0x1c')][_0x90df('0x21')](_0x1293d2[_0x90df('0x0')]),super[_0x90df('0xf')](_0x1293d2);}[_0x90df('0xe')](_0x497751){return this[_0x90df('0x1c')]['get'](_0x497751);}['getByView'](_0x378cbb){return this[_0x90df('0x1e')]['get'](_0x378cbb);}[_0x90df('0x18')](){super[_0x90df('0xc')](),this[_0x90df('0xb')](),this[_0x90df('0x1c')][_0x90df('0xc')](),this[_0x90df('0x1e')]['clear'](),this[_0x90df('0x9')][_0x90df('0x18')]();}[_0x90df('0x14')](){for(const _0x3870e6 of this)_0x3870e6[_0x90df('0x7')]();this[_0x90df('0x4')]();}[_0x90df('0x4')](){const _0x36854f=Array[_0x90df('0x10')](this)[_0x90df('0xd')]((_0x176b9f,_0x57c17d)=>y(_0x176b9f[_0x90df('0x3')],_0x57c17d[_0x90df('0x3')]));for(let _0x2578e7=_0x36854f[_0x90df('0x1d')]-0x1;_0x2578e7>0x0;_0x2578e7--){const _0xaa43fe=_0x36854f[_0x2578e7];_0x2578e7!==this['getIndex'](_0xaa43fe)&&(this[_0x90df('0xf')](_0xaa43fe),this[_0x90df('0x6')](_0xaa43fe,_0x2578e7));}}[_0x90df('0x12')](_0x3a1ba5){let _0x3a9c80=0x0;const _0x5070e0=_0x3a1ba5['targetRect'];if(!_0x5070e0)return this[_0x90df('0x1a')][_0x90df('0x1d')];for(const _0x12e6e4 of this){const _0x4b30b9=_0x12e6e4['targetRect'];if(_0x4b30b9){if(y(_0x5070e0,_0x4b30b9)<0x0)return _0x3a9c80;_0x3a9c80++;}}return _0x3a9c80;}}export function bindAnnotationCollections({source:_0x42d77c,target:_0x23989d,filter:_0x80e597}){for(const _0x52769e of _0x42d77c)_0x80e597(_0x52769e)&&_0x23989d[_0x90df('0x6')](_0x52769e);_0x23989d[_0x90df('0xa')](_0x42d77c,'add',(_0x23f430,_0x23f79a)=>{_0x80e597(_0x23f79a)&&_0x23989d[_0x90df('0x6')](_0x23f79a);}),_0x23989d['listenTo'](_0x42d77c,_0x90df('0xf'),(_0x1431c6,_0x5271b2)=>{_0x23989d[_0x90df('0x11')](_0x5271b2)&&_0x23989d[_0x90df('0xf')](_0x5271b2);});}function y(_0x2203af,_0x3abf14){if(null===_0x2203af&&null===_0x3abf14)return 0x0;if(null===_0x2203af)return-0x1;if(null===_0x3abf14)return 0x1;const _0x14825c=_0x2203af[_0x90df('0x19')]-_0x3abf14[_0x90df('0x19')];return 0x0==_0x14825c?_0x2203af[_0x90df('0x16')]-_0x3abf14[_0x90df('0x16')]:_0x14825c;}
23
+ const _0x2987=['focus','updateTargetRect','delete','_viewToAnnotation','targetRect','change:isFocused','top','set','getIndex','isFocused','add','remove','annotationcollection-not-existing-item','focusableElements','clear','stopListening','has','focusTracker','refreshPositioning','blur','left','from','get','_focusTracker','listenTo','_sort','getByView','destroy','length','view','_innerViewToAnnotation','fire','_items','innerView'];(function(_0x52f7aa,_0x298752){const _0x1263e4=function(_0x806a4a){while(--_0x806a4a){_0x52f7aa['push'](_0x52f7aa['shift']());}};_0x1263e4(++_0x298752);}(_0x2987,0x1c0));const _0x1263=function(_0x52f7aa,_0x298752){_0x52f7aa=_0x52f7aa-0x0;let _0x1263e4=_0x2987[_0x52f7aa];return _0x1263e4;};import{CKEditorError as _0xb839ea,Collection as _0xfad7a3,FocusTracker as _0x11f680}from'ckeditor5/src/utils';export default class x extends _0xfad7a3{constructor(_0x3e88b0=[]){super(),this[_0x1263('0x18')]=new Map(),this['_viewToAnnotation']=new Map(),this[_0x1263('0x11')]=new _0x11f680(),this[_0x1263('0x11')]['on']('change:isFocused',(_0xc18d40,_0x713ae1,_0x1a67dc)=>{_0x1a67dc||this[_0x1263('0x19')](_0x1263('0xd'));});for(const _0x55036d of _0x3e88b0)this[_0x1263('0x4')](_0x55036d);}get[_0x1263('0x3')](){return this[_0x1263('0x11')][_0x1263('0x3')];}[_0x1263('0x4')](_0x68522e){if(this[_0x1263('0xa')](_0x68522e))throw new _0xb839ea('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation'][_0x1263('0x1')](_0x68522e[_0x1263('0x1b')],_0x68522e),this['_viewToAnnotation'][_0x1263('0x1')](_0x68522e[_0x1263('0x17')],_0x68522e);for(const _0x3e0dfc of _0x68522e[_0x1263('0x7')])this[_0x1263('0x11')]['add'](_0x3e0dfc);this[_0x1263('0x12')](_0x68522e[_0x1263('0x7')],_0x1263('0x4'),(_0x36a3e2,_0x5b949b)=>{this['_focusTracker'][_0x1263('0x4')](_0x5b949b);}),this[_0x1263('0x12')](_0x68522e[_0x1263('0x7')],'remove',(_0x847cb0,_0x1da5e5)=>{this[_0x1263('0x11')][_0x1263('0x5')](_0x1da5e5);}),this[_0x1263('0x12')](_0x68522e[_0x1263('0x17')][_0x1263('0xb')],_0x1263('0x21'),(_0x6a3671,_0x656175,_0x457640)=>{_0x457640&&this[_0x1263('0x19')](_0x1263('0x1c'),_0x68522e);}),_0x68522e[_0x1263('0x1d')]();const _0x203c59=this['_getOrderInContent'](_0x68522e[_0x1263('0x17')][_0x1263('0x20')]);super[_0x1263('0x4')](_0x68522e,_0x203c59);}[_0x1263('0x5')](_0x532a07){if(!this[_0x1263('0xa')](_0x532a07))throw new _0xb839ea(_0x1263('0x6'),null);this['stopListening'](_0x532a07['view'][_0x1263('0xb')]),this[_0x1263('0x9')](_0x532a07[_0x1263('0x7')]);for(const _0x130d02 of _0x532a07[_0x1263('0x7')])this[_0x1263('0x11')][_0x1263('0x5')](_0x130d02);this[_0x1263('0x1f')]['delete'](_0x532a07[_0x1263('0x17')]),this[_0x1263('0x18')][_0x1263('0x1e')](_0x532a07[_0x1263('0x1b')]),super['remove'](_0x532a07);}['getByInnerView'](_0x4cc48f){return this[_0x1263('0x18')][_0x1263('0x10')](_0x4cc48f);}[_0x1263('0x14')](_0x4be61a){return this[_0x1263('0x1f')][_0x1263('0x10')](_0x4be61a);}[_0x1263('0x15')](){super['clear'](),this['stopListening'](),this[_0x1263('0x18')][_0x1263('0x8')](),this[_0x1263('0x1f')][_0x1263('0x8')](),this[_0x1263('0x11')][_0x1263('0x15')]();}[_0x1263('0xc')](){for(const _0x2d47e3 of this)_0x2d47e3['updateTargetRect']();this[_0x1263('0x13')]();}[_0x1263('0x13')](){const _0x4ab779=Array[_0x1263('0xf')](this)['sort']((_0x3bc929,_0xfb1f7)=>y(_0x3bc929['view'][_0x1263('0x20')],_0xfb1f7[_0x1263('0x17')]['targetRect']));for(let _0x5dca2f=_0x4ab779[_0x1263('0x16')]-0x1;_0x5dca2f>0x0;_0x5dca2f--){const _0x2f731f=_0x4ab779[_0x5dca2f];_0x5dca2f!==this[_0x1263('0x2')](_0x2f731f)&&(this[_0x1263('0x5')](_0x2f731f),this['add'](_0x2f731f,_0x5dca2f));}}['_getOrderInContent'](_0x52c63d){let _0x361b26=0x0;if(!_0x52c63d)return this[_0x1263('0x1a')]['length'];for(const _0x557c0e of this){const _0x4aba8a=_0x557c0e[_0x1263('0x17')][_0x1263('0x20')];if(_0x4aba8a){if(y(_0x52c63d,_0x4aba8a)<0x0)return _0x361b26;_0x361b26++;}}return _0x361b26;}}export function bindAnnotationCollections({source:_0x46685b,target:_0x143cd7,filter:_0x6062e9}){for(const _0x475a75 of _0x46685b)_0x6062e9(_0x475a75)&&_0x143cd7[_0x1263('0x4')](_0x475a75);_0x143cd7['listenTo'](_0x46685b,_0x1263('0x4'),(_0x5e0e82,_0x338c9e)=>{_0x6062e9(_0x338c9e)&&_0x143cd7[_0x1263('0x4')](_0x338c9e);}),_0x143cd7['listenTo'](_0x46685b,_0x1263('0x5'),(_0x1bb08a,_0x292a07)=>{_0x143cd7[_0x1263('0xa')](_0x292a07)&&_0x143cd7[_0x1263('0x5')](_0x292a07);});}function y(_0x5a7027,_0x55fa71){if(null===_0x5a7027&&null===_0x55fa71)return 0x0;if(null===_0x5a7027)return-0x1;if(null===_0x55fa71)return 0x1;const _0x23b3e1=_0x5a7027[_0x1263('0x0')]-_0x55fa71['top'];return 0x0==_0x23b3e1?_0x5a7027[_0x1263('0xe')]-_0x55fa71[_0x1263('0xe')]:_0x23b3e1;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5498=['remove','isVisible','createAnnotationView','stopListening','source','add','refreshPositioning','activeAnnotations','change:isVisible','has','Annotations','_deactivateAllAnnotations','fire','collection','_removeActiveAnnotation','set','_activateAnnotation','createAnnotation','_visibleAnnotations','deactivateAll','_bindAnnotationsToVisibleAnnotations','destroy','activate','listenTo','pluginName','getByInnerView'];(function(_0x52c4df,_0x5498ba){const _0x1fde21=function(_0x4e7cf9){while(--_0x4e7cf9){_0x52c4df['push'](_0x52c4df['shift']());}};_0x1fde21(++_0x5498ba);}(_0x5498,0x1c0));const _0x1fde=function(_0x52c4df,_0x5498ba){_0x52c4df=_0x52c4df-0x0;let _0x1fde21=_0x5498[_0x52c4df];return _0x1fde21;};import{ContextPlugin as _0x45d1af}from'ckeditor5/src/core';import _0x50a31c from'./annotation';import _0x40052b from'./annotationcollection';import _0x2f517d from'./view/annotationview';export default class V extends _0x45d1af{static get[_0x1fde('0x12')](){return _0x1fde('0x4');}constructor(_0x5ddeb2){super(_0x5ddeb2),this[_0x1fde('0x7')]=new _0x40052b(),this[_0x1fde('0xc')]=new _0x40052b(),this[_0x1fde('0x9')](_0x1fde('0x1'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x1fde('0x19')](_0x26147c){this[_0x1fde('0x7')][_0x1fde('0x19')](_0x26147c);}['remove'](_0x2f7090){this[_0x1fde('0x7')][_0x1fde('0x14')](_0x2f7090),_0x2f7090[_0x1fde('0xf')]();}['refreshVisibility'](){for(const _0x233632 of this[_0x1fde('0x7')])_0x233632['refreshVisibility']();}[_0x1fde('0x0')](){this['_visibleAnnotations']['refreshPositioning']();}[_0x1fde('0x13')](_0x2e9c23){return this[_0x1fde('0x7')][_0x1fde('0x13')](_0x2e9c23);}[_0x1fde('0xd')](){this[_0x1fde('0x6')](_0x1fde('0x5'));}[_0x1fde('0xf')](){for(const _0x15fb79 of this[_0x1fde('0x7')])_0x15fb79['destroy']();this[_0x1fde('0xc')][_0x1fde('0xf')](),this[_0x1fde('0x7')][_0x1fde('0xf')](),super['destroy']();}[_0x1fde('0x10')](_0x266dff){this[_0x1fde('0x6')](_0x1fde('0xa'),_0x266dff);}[_0x1fde('0xb')](_0x4b681f){return new _0x50a31c(_0x4b681f);}[_0x1fde('0x16')](_0x175b03,_0x2e2226){return new _0x2f517d(_0x175b03,_0x2e2226);}['_addActiveAnnotation'](_0x40fbff){const _0x16ee51=new Set(this[_0x1fde('0x1')]);_0x16ee51['add'](_0x40fbff),this[_0x1fde('0x1')]=_0x16ee51;}[_0x1fde('0x8')](_0x534c33){const _0x3fd3e6=new Set(this[_0x1fde('0x1')]);_0x3fd3e6['delete'](_0x534c33),this[_0x1fde('0x1')]=_0x3fd3e6;}[_0x1fde('0xe')](){const _0x4af0f6=this[_0x1fde('0x7')],_0x3a3d2c=this[_0x1fde('0xc')];function _0xf10c7(_0x5e26af){const _0x2034bb=_0x5e26af[_0x1fde('0x18')];_0x2034bb['isVisible']&&!_0x3a3d2c[_0x1fde('0x3')](_0x2034bb)?_0x3a3d2c['add'](_0x2034bb):!_0x2034bb[_0x1fde('0x15')]&&_0x3a3d2c[_0x1fde('0x3')](_0x2034bb)&&_0x3a3d2c[_0x1fde('0x14')](_0x2034bb);}this[_0x1fde('0x11')](_0x4af0f6,_0x1fde('0x19'),(_0x4787f3,_0x1c1af5)=>{_0x1c1af5[_0x1fde('0x15')]&&_0x3a3d2c[_0x1fde('0x19')](_0x1c1af5),this[_0x1fde('0x11')](_0x1c1af5,'change:isVisible',_0xf10c7);}),this['listenTo'](_0x4af0f6,'remove',(_0x238e95,_0x3850b6)=>{_0x3a3d2c['has'](_0x3850b6)&&_0x3a3d2c[_0x1fde('0x14')](_0x3850b6),this[_0x1fde('0x17')](_0x3850b6,_0x1fde('0x2'),_0xf10c7);});}}
23
+ const _0x5bcb=['has','activate','_visibleAnnotations','getByInnerView','pluginName','Annotations','add','_activateAnnotation','collection','activeAnnotations','_deactivateAllAnnotations','change:isVisible','delete','remove','listenTo','createAnnotationView','deactivateAll','_removeActiveAnnotation','destroy','refreshPositioning','fire','stopListening','isVisible'];(function(_0x24620e,_0x5bcb1f){const _0x1cb836=function(_0x54676d){while(--_0x54676d){_0x24620e['push'](_0x24620e['shift']());}};_0x1cb836(++_0x5bcb1f);}(_0x5bcb,0xfc));const _0x1cb8=function(_0x24620e,_0x5bcb1f){_0x24620e=_0x24620e-0x0;let _0x1cb836=_0x5bcb[_0x24620e];return _0x1cb836;};import{ContextPlugin as _0x34775a}from'ckeditor5/src/core';import _0x1b9cfe from'./annotation';import _0x422537 from'./annotationcollection';import _0x121ac4 from'./view/annotationview';export default class V extends _0x34775a{static get[_0x1cb8('0x5')](){return _0x1cb8('0x6');}constructor(_0x3ae834){super(_0x3ae834),this[_0x1cb8('0x9')]=new _0x422537(),this[_0x1cb8('0x3')]=new _0x422537(),this['set'](_0x1cb8('0xa'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x1cb8('0x7')](_0x23d92a){this[_0x1cb8('0x9')][_0x1cb8('0x7')](_0x23d92a);}[_0x1cb8('0xe')](_0x4efeb4){this[_0x1cb8('0x9')]['remove'](_0x4efeb4),_0x4efeb4[_0x1cb8('0x13')]();}['refreshVisibility'](){for(const _0x17f988 of this['collection'])_0x17f988['refreshVisibility']();}['refreshPositioning'](){this[_0x1cb8('0x3')][_0x1cb8('0x14')]();}[_0x1cb8('0x4')](_0x143823){return this[_0x1cb8('0x9')][_0x1cb8('0x4')](_0x143823);}[_0x1cb8('0x11')](){this[_0x1cb8('0x15')](_0x1cb8('0xb'));}[_0x1cb8('0x13')](){for(const _0x3078a6 of this[_0x1cb8('0x9')])_0x3078a6[_0x1cb8('0x13')]();this[_0x1cb8('0x3')][_0x1cb8('0x13')](),this['collection'][_0x1cb8('0x13')](),super[_0x1cb8('0x13')]();}[_0x1cb8('0x2')](_0xeca1d8){this[_0x1cb8('0x15')](_0x1cb8('0x8'),_0xeca1d8);}['createAnnotation'](_0x5ab575){return new _0x1b9cfe(_0x5ab575);}[_0x1cb8('0x10')](_0x4b5219,_0x2923e9){return new _0x121ac4(_0x4b5219,_0x2923e9);}['_addActiveAnnotation'](_0x2099c3){const _0x3abea8=new Set(this[_0x1cb8('0xa')]);_0x3abea8[_0x1cb8('0x7')](_0x2099c3),this['activeAnnotations']=_0x3abea8;}[_0x1cb8('0x12')](_0x3f0469){const _0xaa1f2f=new Set(this[_0x1cb8('0xa')]);_0xaa1f2f[_0x1cb8('0xd')](_0x3f0469),this['activeAnnotations']=_0xaa1f2f;}['_bindAnnotationsToVisibleAnnotations'](){const _0x136411=this[_0x1cb8('0x9')],_0x585075=this[_0x1cb8('0x3')];function _0x27ad81(_0xf64de1){const _0xd968c0=_0xf64de1['source'];_0xd968c0[_0x1cb8('0x0')]&&!_0x585075[_0x1cb8('0x1')](_0xd968c0)?_0x585075[_0x1cb8('0x7')](_0xd968c0):!_0xd968c0[_0x1cb8('0x0')]&&_0x585075[_0x1cb8('0x1')](_0xd968c0)&&_0x585075[_0x1cb8('0xe')](_0xd968c0);}this['listenTo'](_0x136411,_0x1cb8('0x7'),(_0x19881c,_0x59ed4b)=>{_0x59ed4b[_0x1cb8('0x0')]&&_0x585075[_0x1cb8('0x7')](_0x59ed4b),this[_0x1cb8('0xf')](_0x59ed4b,_0x1cb8('0xc'),_0x27ad81);}),this[_0x1cb8('0xf')](_0x136411,_0x1cb8('0xe'),(_0x50ad71,_0x2d7fa1)=>{_0x585075[_0x1cb8('0x1')](_0x2d7fa1)&&_0x585075[_0x1cb8('0xe')](_0x2d7fa1),this[_0x1cb8('0x16')](_0x2d7fa1,_0x1cb8('0xc'),_0x27ad81);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1e14=['plugins','context','function','get','listenTo','pluginName','isActive','push','annotationsuis-annotation-mismatch','find','change:activeAnnotation','annotationsuis-register-already-registered','from','set','setActiveAnnotation','activate','delete','_removeActiveAnnotation','deactivateAll','detach','add','filter','_visibleAnnotations','deactivate','type','stopListening','annotationsuis-activate-missing-ui','collection','destroy','switchTo','_uisData','has','_uis','_deactivateAllAnnotations','_activateAnnotation','activeUIs','AnnotationsUIs','size','annotationsuis-register-invalid-interface','_assertAnnotationDoesNotBelongToMultipleUIs','_setSelectedAnnotations','init'];(function(_0x1656f8,_0x1e144d){const _0x4305ac=function(_0x374eff){while(--_0x374eff){_0x1656f8['push'](_0x1656f8['shift']());}};_0x4305ac(++_0x1e144d);}(_0x1e14,0xc1));const _0x4305=function(_0x1656f8,_0x1e144d){_0x1656f8=_0x1656f8-0x0;let _0x4305ac=_0x1e14[_0x1656f8];return _0x4305ac;};import{ContextPlugin as _0x2000cf}from'ckeditor5/src/core';import{CKEditorError as _0x4921e7}from'ckeditor5/src/utils';import _0x59794a,{bindAnnotationCollections as _0x3e10e2}from'./annotationcollection';import _0x3c6d73 from'./annotations';export default class I extends _0x2000cf{static get['requires'](){return[_0x3c6d73];}static get[_0x4305('0x16')](){return _0x4305('0xb');}constructor(_0x1b5973){super(_0x1b5973),this[_0x4305('0xa')]=new Set(),this[_0x4305('0x7')]=new Map(),this[_0x4305('0x5')]=new Map();}[_0x4305('0x10')](){const _0x365537=this['context'][_0x4305('0x11')][_0x4305('0x14')](_0x3c6d73);this[_0x4305('0x15')](_0x365537,_0x4305('0x9'),(_0x25dd40,_0x5bd58b)=>{for(const _0x3f0995 of this['activeUIs']){const _0x26edbf=this[_0x4305('0x7')][_0x4305('0x14')](_0x3f0995);(0x0,this[_0x4305('0x5')][_0x4305('0x14')](_0x3f0995)[_0x4305('0x26')])(_0x5bd58b)&&_0x26edbf[_0x4305('0x1f')](_0x5bd58b);}}),this[_0x4305('0x15')](_0x365537,_0x4305('0x8'),()=>{for(const _0x1fd5f3 of this[_0x4305('0xa')]){this[_0x4305('0x7')][_0x4305('0x14')](_0x1fd5f3)[_0x4305('0x1f')](null);}}),this[_0x4305('0x15')](_0x365537['_visibleAnnotations'],'add',(_0x44680a,_0x1e594d)=>{this[_0x4305('0xe')](_0x1e594d);});}['hasActive'](){return this[_0x4305('0xa')][_0x4305('0xc')]>0x0;}['isActive'](_0x342e83){return this[_0x4305('0xa')][_0x4305('0x6')](_0x342e83);}[_0x4305('0x20')](_0x5d6cac,_0x5d8d32=()=>!0x0){const _0x4ab1dd=this[_0x4305('0x12')][_0x4305('0x11')]['get'](_0x3c6d73);if(!this[_0x4305('0x7')][_0x4305('0x6')](_0x5d6cac))throw new _0x4921e7(_0x4305('0x1'),this,{'uiName':_0x5d6cac});this[_0x4305('0x17')](_0x5d6cac)&&this['deactivate'](_0x5d6cac),this[_0x4305('0xa')][_0x4305('0x25')](_0x5d6cac);const _0x4c7d36=new _0x59794a(),_0x267e0c=_0x4ab1dd[_0x4305('0x27')];_0x3e10e2({'source':_0x267e0c,'target':_0x4c7d36,'filter':_0x5d8d32}),this[_0x4305('0x5')][_0x4305('0x1e')](_0x5d6cac,{'collection':_0x4c7d36,'filter':_0x5d8d32});const _0x23dd7f=this[_0x4305('0x7')]['get'](_0x5d6cac);_0x23dd7f['attach'](_0x4c7d36),this[_0x4305('0x15')](_0x23dd7f,_0x4305('0x1b'),(_0x593b14,_0x363410,_0x5758f7,_0x57f490)=>{_0x57f490&&_0x4ab1dd[_0x4305('0x22')](_0x57f490),_0x5758f7&&_0x4ab1dd['_addActiveAnnotation'](_0x5758f7);});}[_0x4305('0x28')](_0x3f02f2){this[_0x4305('0xa')][_0x4305('0x21')](_0x3f02f2);const _0x44d424=this[_0x4305('0x7')][_0x4305('0x14')](_0x3f02f2);_0x44d424[_0x4305('0x24')](),this[_0x4305('0x0')](_0x44d424),this[_0x4305('0x5')][_0x4305('0x14')](_0x3f02f2)[_0x4305('0x2')][_0x4305('0x3')](),this['_uisData']['delete'](_0x3f02f2);}[_0x4305('0x4')](_0x4278fc){const _0x1264c2=this[_0x4305('0x12')][_0x4305('0x11')][_0x4305('0x14')](_0x3c6d73),_0x566c85=Array[_0x4305('0x1d')](_0x1264c2['activeAnnotations'])[0x0]||null;this[_0x4305('0x23')](),this['activate'](_0x4278fc);const _0x58d637=this[_0x4305('0x7')][_0x4305('0x14')](_0x4278fc);_0x58d637['setActiveAnnotation'](_0x566c85),_0x58d637[_0x4305('0xf')]&&_0x566c85&&_0x58d637[_0x4305('0xf')]([_0x566c85]);}[_0x4305('0x23')](){for(const _0x2e4ab9 of this['activeUIs'])this['deactivate'](_0x2e4ab9);}['register'](_0x1cc07d,_0x1b7a67){if(this['_uis'][_0x4305('0x6')](_0x1cc07d))throw new _0x4921e7(_0x4305('0x1c'));if(_0x4305('0x13')!=typeof _0x1b7a67['attach']||_0x4305('0x13')!=typeof _0x1b7a67[_0x4305('0x24')]||'function'!=typeof _0x1b7a67[_0x4305('0x1f')])throw new _0x4921e7(_0x4305('0xd'),null);this[_0x4305('0x7')][_0x4305('0x1e')](_0x1cc07d,_0x1b7a67);}['refilterAnnotations'](){const _0x25d903=this[_0x4305('0x12')][_0x4305('0x11')][_0x4305('0x14')](_0x3c6d73)[_0x4305('0x2')],_0x57f492=new Map(),_0x4814de=Array[_0x4305('0x1d')](this['activeUIs']);for(const _0x1425fa of this[_0x4305('0xa')]){const _0x5c1ede=this['_uisData'][_0x4305('0x14')](_0x1425fa)['collection'];for(const _0x8f5122 of _0x5c1ede)_0x57f492[_0x4305('0x1e')](_0x8f5122,_0x1425fa);}for(const _0x2afee5 of _0x25d903){const _0x51c0ec=_0x57f492[_0x4305('0x14')](_0x2afee5);this[_0x4305('0xe')](_0x2afee5);const _0x180929=_0x4814de[_0x4305('0x1a')](_0x34f02d=>this[_0x4305('0x5')][_0x4305('0x14')](_0x34f02d)[_0x4305('0x26')](_0x2afee5));_0x51c0ec!==_0x180929&&(_0x51c0ec&&this[_0x4305('0x5')][_0x4305('0x14')](_0x51c0ec)[_0x4305('0x2')]['remove'](_0x2afee5),_0x180929&&this[_0x4305('0x5')][_0x4305('0x14')](_0x180929)['collection'][_0x4305('0x25')](_0x2afee5));}}[_0x4305('0x3')](){this[_0x4305('0x23')](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x52119d){const _0x59463d=[];for(const _0x46bfd4 of this[_0x4305('0xa')]){(0x0,this[_0x4305('0x5')][_0x4305('0x14')](_0x46bfd4)['filter'])(_0x52119d)&&_0x59463d[_0x4305('0x18')](_0x46bfd4);}if(_0x59463d['length']>0x1)throw new _0x4921e7(_0x4305('0x19'),null,{'matchedUIs':_0x59463d,'annotationType':_0x52119d[_0x4305('0x29')]});}}
23
+ const _0x1944=['_uis','_setSelectedAnnotations','detach','isActive','remove','_uisData','context','attach','AnnotationsUIs','_assertAnnotationDoesNotBelongToMultipleUIs','requires','refilterAnnotations','delete','has','listenTo','filter','activate','function','annotationsuis-annotation-mismatch','activeUIs','_addActiveAnnotation','plugins','size','annotationsuis-register-already-registered','annotationsuis-activate-missing-ui','get','from','deactivate','destroy','register','change:activeAnnotation','init','setActiveAnnotation','length','_deactivateAllAnnotations','pluginName','set','_visibleAnnotations','switchTo','find','add','annotationsuis-register-invalid-interface','stopListening','collection','activeAnnotations','_activateAnnotation','hasActive','deactivateAll'];(function(_0x51b495,_0x19445d){const _0xed3f1c=function(_0x323296){while(--_0x323296){_0x51b495['push'](_0x51b495['shift']());}};_0xed3f1c(++_0x19445d);}(_0x1944,0x1bb));const _0xed3f=function(_0x51b495,_0x19445d){_0x51b495=_0x51b495-0x0;let _0xed3f1c=_0x1944[_0x51b495];return _0xed3f1c;};import{ContextPlugin as _0x4eb48a}from'ckeditor5/src/core';import{CKEditorError as _0x7daf6c}from'ckeditor5/src/utils';import _0x3b4bfa,{bindAnnotationCollections as _0x17c99b}from'./annotationcollection';import _0x5223f1 from'./annotations';export default class I extends _0x4eb48a{static get[_0xed3f('0x2f')](){return[_0x5223f1];}static get[_0xed3f('0x18')](){return _0xed3f('0x2d');}constructor(_0x530abb){super(_0x530abb),this[_0xed3f('0x8')]=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}[_0xed3f('0x14')](){const _0xe1c45d=this[_0xed3f('0x2b')]['plugins'][_0xed3f('0xe')](_0x5223f1);this[_0xed3f('0x3')](_0xe1c45d,_0xed3f('0x22'),(_0xb2d71c,_0x53b763)=>{for(const _0x2fb645 of this['activeUIs']){const _0x1366a2=this[_0xed3f('0x25')][_0xed3f('0xe')](_0x2fb645);(0x0,this['_uisData'][_0xed3f('0xe')](_0x2fb645)[_0xed3f('0x4')])(_0x53b763)&&_0x1366a2[_0xed3f('0x15')](_0x53b763);}}),this[_0xed3f('0x3')](_0xe1c45d,_0xed3f('0x17'),()=>{for(const _0x18b5f7 of this[_0xed3f('0x8')]){this[_0xed3f('0x25')]['get'](_0x18b5f7)[_0xed3f('0x15')](null);}}),this[_0xed3f('0x3')](_0xe1c45d[_0xed3f('0x1a')],_0xed3f('0x1d'),(_0xfeee2b,_0x3d84da)=>{this[_0xed3f('0x2e')](_0x3d84da);});}[_0xed3f('0x23')](){return this[_0xed3f('0x8')][_0xed3f('0xb')]>0x0;}[_0xed3f('0x28')](_0x5485ec){return this[_0xed3f('0x8')]['has'](_0x5485ec);}['activate'](_0x4c52b3,_0x728ea8=()=>!0x0){const _0x4a575f=this['context']['plugins']['get'](_0x5223f1);if(!this[_0xed3f('0x25')][_0xed3f('0x2')](_0x4c52b3))throw new _0x7daf6c(_0xed3f('0xd'),this,{'uiName':_0x4c52b3});this[_0xed3f('0x28')](_0x4c52b3)&&this['deactivate'](_0x4c52b3),this['activeUIs'][_0xed3f('0x1d')](_0x4c52b3);const _0x1d6384=new _0x3b4bfa(),_0x23de50=_0x4a575f[_0xed3f('0x1a')];_0x17c99b({'source':_0x23de50,'target':_0x1d6384,'filter':_0x728ea8}),this[_0xed3f('0x2a')][_0xed3f('0x19')](_0x4c52b3,{'collection':_0x1d6384,'filter':_0x728ea8});const _0x29c578=this['_uis']['get'](_0x4c52b3);_0x29c578[_0xed3f('0x2c')](_0x1d6384),this[_0xed3f('0x3')](_0x29c578,_0xed3f('0x13'),(_0x31a74d,_0x7eb515,_0x289dd1,_0x4a3361)=>{_0x4a3361&&_0x4a575f['_removeActiveAnnotation'](_0x4a3361),_0x289dd1&&_0x4a575f[_0xed3f('0x9')](_0x289dd1);});}[_0xed3f('0x10')](_0x559d73){this[_0xed3f('0x8')][_0xed3f('0x1')](_0x559d73);const _0xd7e319=this[_0xed3f('0x25')][_0xed3f('0xe')](_0x559d73);_0xd7e319[_0xed3f('0x27')](),this[_0xed3f('0x1f')](_0xd7e319),this[_0xed3f('0x2a')][_0xed3f('0xe')](_0x559d73)[_0xed3f('0x20')][_0xed3f('0x11')](),this['_uisData'][_0xed3f('0x1')](_0x559d73);}[_0xed3f('0x1b')](_0x25088c){const _0x13ee69=this['context']['plugins'][_0xed3f('0xe')](_0x5223f1),_0x4c4072=Array[_0xed3f('0xf')](_0x13ee69[_0xed3f('0x21')])[0x0]||null;this[_0xed3f('0x24')](),this[_0xed3f('0x5')](_0x25088c);const _0x3f467b=this['_uis'][_0xed3f('0xe')](_0x25088c);_0x3f467b['setActiveAnnotation'](_0x4c4072),_0x3f467b[_0xed3f('0x26')]&&_0x4c4072&&_0x3f467b[_0xed3f('0x26')]([_0x4c4072]);}[_0xed3f('0x24')](){for(const _0xbbc9f8 of this[_0xed3f('0x8')])this[_0xed3f('0x10')](_0xbbc9f8);}[_0xed3f('0x12')](_0x3ba12f,_0x2d4dce){if(this[_0xed3f('0x25')][_0xed3f('0x2')](_0x3ba12f))throw new _0x7daf6c(_0xed3f('0xc'));if(_0xed3f('0x6')!=typeof _0x2d4dce[_0xed3f('0x2c')]||_0xed3f('0x6')!=typeof _0x2d4dce[_0xed3f('0x27')]||_0xed3f('0x6')!=typeof _0x2d4dce[_0xed3f('0x15')])throw new _0x7daf6c(_0xed3f('0x1e'),null);this[_0xed3f('0x25')][_0xed3f('0x19')](_0x3ba12f,_0x2d4dce);}[_0xed3f('0x0')](){const _0x315c0b=this[_0xed3f('0x2b')][_0xed3f('0xa')][_0xed3f('0xe')](_0x5223f1)[_0xed3f('0x20')],_0x27d63c=new Map(),_0x244f3d=Array[_0xed3f('0xf')](this['activeUIs']);for(const _0x185fe5 of this[_0xed3f('0x8')]){const _0x1db23a=this['_uisData'][_0xed3f('0xe')](_0x185fe5)[_0xed3f('0x20')];for(const _0x5b0e5f of _0x1db23a)_0x27d63c[_0xed3f('0x19')](_0x5b0e5f,_0x185fe5);}for(const _0x59d385 of _0x315c0b){const _0x233351=_0x27d63c['get'](_0x59d385);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x59d385);const _0x24707d=_0x244f3d[_0xed3f('0x1c')](_0x57f90b=>this[_0xed3f('0x2a')][_0xed3f('0xe')](_0x57f90b)[_0xed3f('0x4')](_0x59d385));_0x233351!==_0x24707d&&(_0x233351&&this[_0xed3f('0x2a')][_0xed3f('0xe')](_0x233351)[_0xed3f('0x20')][_0xed3f('0x29')](_0x59d385),_0x24707d&&this['_uisData'][_0xed3f('0xe')](_0x24707d)[_0xed3f('0x20')][_0xed3f('0x1d')](_0x59d385));}}[_0xed3f('0x11')](){this['deactivateAll'](),super[_0xed3f('0x11')]();}[_0xed3f('0x2e')](_0x2ada5c){const _0x3a4399=[];for(const _0x56e92c of this[_0xed3f('0x8')]){(0x0,this[_0xed3f('0x2a')]['get'](_0x56e92c)['filter'])(_0x2ada5c)&&_0x3a4399['push'](_0x56e92c);}if(_0x3a4399[_0xed3f('0x16')]>0x1)throw new _0x7daf6c(_0xed3f('0x7'),null,{'matchedUIs':_0x3a4399,'annotationType':_0x2ada5c['type']});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xc155=['plugins','addSourceCollector','has','keys','from','focusTracker','getByInnerView','element','innerView','model','collection','directChange','update','getOrderedSelectedAnnotations','editorannotations-invalid-source-callback','editing','sort','hasDomSelection','get','containsRange','uiUpdate','_dataCollectors','getRanges','set','pluginName','listenTo','change:range','document','isReadOnly','fire','push','view','range','isCollapsed','annotation','cancel','change:isFocused','selection','_editorAnnotationsData','remove','map','add','EditorAnnotations','refreshSelectedViews','editor','blur','init','refresh'];(function(_0x18c90d,_0xc15590){const _0x1ec429=function(_0x408b96){while(--_0x408b96){_0x18c90d['push'](_0x18c90d['shift']());}};_0x1ec429(++_0xc15590);}(_0xc155,0xcc));const _0x1ec4=function(_0x18c90d,_0xc15590){_0x18c90d=_0x18c90d-0x0;let _0x1ec429=_0xc155[_0x18c90d];return _0x1ec429;};import{Plugin as _0x595d09}from'ckeditor5/src/core';import{CKEditorError as _0x233116}from'ckeditor5/src/utils';import{debounce as _0x40ff51}from'lodash-es';import _0x2954c9 from'./annotations';export default class k extends _0x595d09{static get['requires'](){return[_0x2954c9];}static get[_0x1ec4('0xc')](){return _0x1ec4('0x1e');}constructor(_0xb14f8f){super(_0xb14f8f),this[_0x1ec4('0x9')]=new Set();}[_0x1ec4('0x22')](){const _0xc18a97=this[_0x1ec4('0x20')],_0x36e361=_0xc18a97[_0x1ec4('0x24')][_0x1ec4('0x6')](_0x2954c9),_0x4d20db=_0xc18a97[_0x1ec4('0x2d')][_0x1ec4('0xf')][_0x1ec4('0x19')],_0x24d684=_0x40ff51(()=>this[_0x1ec4('0x1f')](),0xa);_0x4d20db['on'](_0x1ec4('0xe'),(_0x19bd92,_0x3ca9df)=>{_0x3ca9df[_0x1ec4('0x2f')]&&(_0x24d684[_0x1ec4('0x17')](),this[_0x1ec4('0x1f')]());}),this[_0x1ec4('0xd')](_0xc18a97['editing'][_0x1ec4('0x13')][_0x1ec4('0xf')],_0x1ec4('0x18'),(_0x1bbd8b,_0x34f00a,_0x32276e)=>{_0x32276e&&_0x24d684();}),this[_0x1ec4('0xd')](_0xc18a97['ui'][_0x1ec4('0x29')],_0x1ec4('0x18'),(_0x4ac596,_0x5d0794,_0x1abbd2)=>{_0x1abbd2||_0xc18a97[_0x1ec4('0x10')]||this[_0x1ec4('0x11')](_0x1ec4('0x21'),{'isAnnotationTracked':_0x574511=>this['_editorAnnotationsData'][_0x1ec4('0x26')](_0x574511[_0x1ec4('0x2c')])});}),this[_0x1ec4('0xd')](this[_0x1ec4('0x20')]['ui'],_0x1ec4('0x0'),()=>this[_0x1ec4('0x11')](_0x1ec4('0x8')));const _0x29d22b=new Set();this['listenTo'](_0x36e361[_0x1ec4('0x2e')],_0x1ec4('0x1d'),(_0x19c11c,_0x2d5701)=>{for(const _0x3ead9f of this[_0x1ec4('0x1a')][_0x1ec4('0x27')]())if(_0x3ead9f===_0x2d5701[_0x1ec4('0x2c')]){_0xc18a97['ui']['focusTracker'][_0x1ec4('0x1d')](_0x2d5701[_0x1ec4('0x13')][_0x1ec4('0x2b')]),_0x29d22b['add'](_0x2d5701[_0x1ec4('0x13')]);break;}}),this['listenTo'](_0x36e361[_0x1ec4('0x2e')],_0x1ec4('0x1b'),(_0x3805c2,_0xee105b)=>{_0x29d22b[_0x1ec4('0x26')](_0xee105b[_0x1ec4('0x13')])&&(_0xc18a97['ui']['focusTracker'][_0x1ec4('0x1b')](_0xee105b[_0x1ec4('0x13')][_0x1ec4('0x2b')]),_0x29d22b['delete'](_0xee105b[_0x1ec4('0x13')]));});}[_0x1ec4('0x5')](){return this[_0x1ec4('0x20')][_0x1ec4('0x3')][_0x1ec4('0x13')][_0x1ec4('0x5')];}[_0x1ec4('0x25')](_0x2f2a30){if('function'!=typeof _0x2f2a30)throw new _0x233116(_0x1ec4('0x2'));this[_0x1ec4('0x9')][_0x1ec4('0x1d')](_0x2f2a30);}[_0x1ec4('0x1f')](){this['fire'](_0x1ec4('0x23'));}[_0x1ec4('0x1')]({activeAnnotation:_0x28fefa,annotations:_0x564371}){const _0x50a85d=[],_0x93cfc=this[_0x1ec4('0x20')][_0x1ec4('0x2d')][_0x1ec4('0xf')][_0x1ec4('0x19')],_0x1ded9b=Array[_0x1ec4('0x28')](_0x93cfc[_0x1ec4('0xa')]());for(const [_0x469179,_0x4ad0a2]of this[_0x1ec4('0x1a')]){const _0x510681=_0x236b14(_0x4ad0a2),_0xb973d0=_0x564371[_0x1ec4('0x2a')](_0x469179);_0x510681&&_0xb973d0&&_0x50a85d[_0x1ec4('0x12')]({'annotation':_0xb973d0,'range':_0x510681});}function _0x236b14(_0x9bc714){for(const _0x105437 of _0x9bc714)for(const _0x35631f of _0x1ded9b)if(_0x105437[_0x1ec4('0x7')](_0x35631f,!_0x93cfc[_0x1ec4('0x15')]))return _0x105437;return null;}return _0x50a85d[_0x1ec4('0x4')]((_0x251f4b,_0x325377)=>{const _0xc82b9e=_0x251f4b[_0x1ec4('0x14')],_0x23ce45=_0x325377[_0x1ec4('0x14')];if(!_0xc82b9e['isEqual'](_0x23ce45)){if(_0xc82b9e[_0x1ec4('0x7')](_0x23ce45,!0x0))return 0x1;if(_0x23ce45[_0x1ec4('0x7')](_0xc82b9e,!0x0))return-0x1;}return _0x251f4b[_0x1ec4('0x16')]==_0x28fefa?-0x1:_0x325377[_0x1ec4('0x16')]==_0x28fefa?0x1:0x0;})[_0x1ec4('0x1c')](_0x466d96=>_0x466d96[_0x1ec4('0x16')]);}get[_0x1ec4('0x1a')](){const _0x140a72=new Map();for(const _0x1d7ee5 of Array[_0x1ec4('0x28')](this[_0x1ec4('0x9')]))for(const [_0x38441e,_0x150fe4]of _0x1d7ee5())_0x140a72[_0x1ec4('0xb')](_0x38441e,_0x150fe4);return _0x140a72;}}
23
+ const _0x29df=['refreshSelectedViews','getByInnerView','sort','_editorAnnotations','has','pluginName','model','document','remove','from','change:isFocused','_dataCollectors','add','get','editor','collection','registerAnnotation','uiUpdate','update','push','editorannotations-invalid-source-callback','function','blur','getRanges','getOrderedSelectedAnnotations','delete','cancel','view','set','element','init','containsRange','_editorAnnotationsData','change:range','listenTo','hasDomSelection','range','isCollapsed','selection','editing','annotation','EditorAnnotations','fire','focusTracker'];(function(_0x233216,_0x29dfe9){const _0x237487=function(_0x16ca77){while(--_0x16ca77){_0x233216['push'](_0x233216['shift']());}};_0x237487(++_0x29dfe9);}(_0x29df,0xf7));const _0x2374=function(_0x233216,_0x29dfe9){_0x233216=_0x233216-0x0;let _0x237487=_0x29df[_0x233216];return _0x237487;};import{Plugin as _0x39752d}from'ckeditor5/src/core';import{CKEditorError as _0x4a9de8}from'ckeditor5/src/utils';import{debounce as _0x4bff57}from'lodash-es';import _0x1ea9e5 from'./annotations';export default class k extends _0x39752d{static get['requires'](){return[_0x1ea9e5];}static get[_0x2374('0x16')](){return _0x2374('0xe');}constructor(_0x4ecc83){super(_0x4ecc83),this[_0x2374('0x1c')]=new Set(),this[_0x2374('0x14')]=new Set();}[_0x2374('0x3')](){const _0x2e88eb=this[_0x2374('0x1f')],_0x5ee15c=_0x2e88eb[_0x2374('0x17')][_0x2374('0x18')][_0x2374('0xb')],_0x51ba03=_0x4bff57(()=>this[_0x2374('0x11')](),0xa);_0x5ee15c['on'](_0x2374('0x6'),(_0xaaeb73,_0x131efd)=>{_0x131efd['directChange']&&(_0x51ba03[_0x2374('0x2b')](),this[_0x2374('0x11')]());}),this[_0x2374('0x7')](_0x2e88eb[_0x2374('0xc')][_0x2374('0x0')][_0x2374('0x18')],_0x2374('0x1b'),(_0x56eb41,_0x5ae22c,_0x1fd037)=>{_0x1fd037&&_0x51ba03();}),this[_0x2374('0x7')](_0x2e88eb['ui'][_0x2374('0x10')],_0x2374('0x1b'),(_0x4a23dc,_0x4469d1,_0x209e36)=>{_0x209e36||_0x2e88eb['isReadOnly']||this['fire'](_0x2374('0x27'),{'isAnnotationTracked':_0x95e5a8=>this['_editorAnnotationsData']['has'](_0x95e5a8['innerView'])});}),this['listenTo'](this[_0x2374('0x1f')]['ui'],_0x2374('0x23'),()=>this[_0x2374('0xf')](_0x2374('0x22')));}[_0x2374('0x21')](_0x4b2d32){if(this[_0x2374('0x14')][_0x2374('0x15')](_0x4b2d32))return;this['_editorAnnotations'][_0x2374('0x1d')](_0x4b2d32[_0x2374('0x0')]),this['editor']['ui']['focusTracker'][_0x2374('0x1d')](_0x4b2d32[_0x2374('0x0')]['element']);const _0x392876=this['editor']['plugins'][_0x2374('0x1e')](_0x1ea9e5);this[_0x2374('0x7')](_0x392876[_0x2374('0x20')],_0x2374('0x19'),(_0x3c0d23,_0x1758e8)=>{this[_0x2374('0x1f')]['ui']['focusTracker'][_0x2374('0x19')](_0x1758e8[_0x2374('0x0')][_0x2374('0x2')]),this['_editorAnnotations'][_0x2374('0x2a')](_0x1758e8[_0x2374('0x0')]);});}[_0x2374('0x8')](){return this[_0x2374('0x1f')][_0x2374('0xc')][_0x2374('0x0')][_0x2374('0x8')];}['addSourceCollector'](_0x58867f){if(_0x2374('0x26')!=typeof _0x58867f)throw new _0x4a9de8(_0x2374('0x25'));this['_dataCollectors'][_0x2374('0x1d')](_0x58867f);}[_0x2374('0x11')](){this[_0x2374('0xf')]('refresh');}[_0x2374('0x29')]({activeAnnotation:_0x5e6ca9,annotations:_0x394967}){const _0x5588a1=[],_0x15aca9=this['editor']['model'][_0x2374('0x18')][_0x2374('0xb')],_0x57f68a=Array[_0x2374('0x1a')](_0x15aca9[_0x2374('0x28')]());for(const [_0x5d65e7,_0x581c73]of this[_0x2374('0x5')]){const _0x10f257=_0x4f0c26(_0x581c73),_0x487c7c=_0x394967[_0x2374('0x12')](_0x5d65e7);_0x10f257&&_0x487c7c&&_0x5588a1[_0x2374('0x24')]({'annotation':_0x487c7c,'range':_0x10f257});}function _0x4f0c26(_0x3291f2){for(const _0x40b034 of _0x3291f2)for(const _0x8648fd of _0x57f68a)if(_0x40b034['containsRange'](_0x8648fd,!_0x15aca9[_0x2374('0xa')]))return _0x40b034;return null;}return _0x5588a1[_0x2374('0x13')]((_0x13052b,_0x31b5b2)=>{const _0x280317=_0x13052b[_0x2374('0x9')],_0x59e12b=_0x31b5b2[_0x2374('0x9')];if(!_0x280317['isEqual'](_0x59e12b)){if(_0x280317[_0x2374('0x4')](_0x59e12b,!0x0))return 0x1;if(_0x59e12b['containsRange'](_0x280317,!0x0))return-0x1;}return _0x13052b[_0x2374('0xd')]==_0x5e6ca9?-0x1:_0x31b5b2['annotation']==_0x5e6ca9?0x1:0x0;})['map'](_0x2ab562=>_0x2ab562[_0x2374('0xd')]);}get[_0x2374('0x5')](){const _0x21642f=new Map();for(const _0x3288c1 of Array[_0x2374('0x1a')](this[_0x2374('0x1c')]))for(const [_0x23125b,_0x17c0ac]of _0x3288c1())_0x21642f[_0x2374('0x1')](_0x23125b,_0x17c0ac);return _0x21642f;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3310=['has','isAttached','switchTo','clear','change:height','hasActive','set','getByView','targetRect','_addAnnotationToBalloon','getSelection','inlineannotations-not-allowed-with-context','annotations','updatePosition','isActive','focus','_setSelectedAnnotations','attach','delete','activeAnnotation','isFocused','_removeAnnotationFromBalloon','listenTo','focusTracker','mousedown','inline','stopListening','add','inlineannotations-attach-already-attached','_manuallyClosed','afterInit','bind','init','detach','hasView','selection','context','_balloon','includes','target','_selectedAnnotations','getRangeAt','Esc','blur','plugins','register','update','_addedAnnotations','visibleView','document','editing','remove','showStack','editableElement','setActiveAnnotation','get','change:isFocused','inlineannotations-detach-not-attached','view','editor','keystrokes'];(function(_0x562da1,_0x331039){const _0x596b1b=function(_0x46ee05){while(--_0x46ee05){_0x562da1['push'](_0x562da1['shift']());}};_0x596b1b(++_0x331039);}(_0x3310,0x1ce));const _0x596b=function(_0x562da1,_0x331039){_0x562da1=_0x562da1-0x0;let _0x596b1b=_0x3310[_0x562da1];return _0x596b1b;};import{Plugin as _0x1fe802}from'ckeditor5/src/core';import _0x7584d1 from'./annotationsuis';import _0x53ad47 from'./editorannotations';import{ContextualBalloon as _0x5a0334}from'ckeditor5/src/ui';import{MouseObserver as _0x3ec191}from'ckeditor5/src/engine';import{CKEditorError as _0x358015}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x1fe802{static get['requires'](){return[_0x53ad47,_0x5a0334,_0x7584d1];}static get['pluginName'](){return'InlineAnnotations';}constructor(_0x93aa10){super(_0x93aa10),_0x93aa10[_0x596b('0xf')][_0x596b('0x17')]['addObserver'](_0x3ec191),this[_0x596b('0x1b')]=!0x1,this[_0x596b('0x20')](_0x596b('0x2d'),null),this['annotations']=null,this[_0x596b('0x37')]=new Set(),this[_0x596b('0x2')]=_0x93aa10[_0x596b('0x9')][_0x596b('0x14')](_0x5a0334),this['_addedAnnotations']=new Set(),this[_0x596b('0x5')]=[];}[_0x596b('0x3a')](){const _0x3f38ac=this['editor'][_0x596b('0x9')][_0x596b('0x14')](_0x7584d1);_0x3f38ac[_0x596b('0x1')]===this[_0x596b('0x18')]&&(_0x3f38ac[_0x596b('0xa')](_0x596b('0x33'),this),this['editor'][_0x596b('0x19')][_0x596b('0x20')](_0x596b('0x7'),(_0x391a9e,_0x2c8c09)=>{const _0x22b2d7=this[_0x596b('0x2')];if(this[_0x596b('0x1b')]&&_0x22b2d7[_0x596b('0xd')]){const _0xace132=this[_0x596b('0x26')][_0x596b('0x21')](_0x22b2d7['visibleView']);this[_0x596b('0x37')]['add'](_0xace132),this['_removeAnnotationFromBalloon'](_0xace132),_0x2c8c09();}}));}[_0x596b('0x38')](){const _0x322f10=this[_0x596b('0x18')][_0x596b('0x9')][_0x596b('0x14')](_0x7584d1);_0x322f10[_0x596b('0x1')]===this[_0x596b('0x18')]&&(_0x322f10[_0x596b('0x1f')]()||_0x322f10[_0x596b('0x1c')](_0x596b('0x33')));}['setActiveAnnotation'](_0x3b96ca){_0x3b96ca!==this[_0x596b('0x2d')]&&(this['activeAnnotation']&&(this[_0x596b('0x2d')]['isActive']=!0x1),_0x3b96ca&&this[_0x596b('0x18')]['ui'][_0x596b('0x31')]['isFocused']&&(this[_0x596b('0x23')](_0x3b96ca,!0x0),_0x3b96ca[_0x596b('0x28')]=!0x0),_0x3b96ca||this[_0x596b('0x2a')]([]),this['activeAnnotation']=_0x3b96ca);}[_0x596b('0x2b')](_0x566d47){this[_0x596b('0x26')]=_0x566d47;const _0xdc5b69=this[_0x596b('0x18')][_0x596b('0x9')]['get'](_0x7584d1),_0x2ee02a=this['_balloon'];if(this[_0x596b('0x1b')])throw new _0x358015(_0x596b('0x36'),this);if(_0xdc5b69[_0x596b('0x1')]!==this[_0x596b('0x18')])throw new _0x358015(_0x596b('0x25'),this);const _0x360554=this[_0x596b('0x18')]['plugins'][_0x596b('0x14')]('EditorAnnotations');this['listenTo'](_0x360554,'refresh',function(){const _0x274ea2=_0x360554['getOrderedSelectedAnnotations']({'activeAnnotation':this['activeAnnotation'],'annotations':this['annotations']});this['_setSelectedAnnotations'](_0x274ea2),this[_0x596b('0x13')](_0x274ea2[0x0]||null);}[_0x596b('0x39')](this)),this['listenTo'](_0x360554,_0x596b('0x8'),(_0x6ea4f5,{isAnnotationTracked:_0x4ffb10})=>{this[_0x596b('0x2d')]&&_0x4ffb10(this[_0x596b('0x2d')])&&(this[_0x596b('0x2a')]([]),this[_0x596b('0x13')](null));}),this['listenTo'](this[_0x596b('0x18')]['ui'][_0x596b('0x31')],_0x596b('0x15'),(_0x25f5b4,_0x538393,_0x15b1bf)=>{_0x15b1bf||this['setActiveAnnotation'](null);}),this['listenTo'](_0x566d47,'remove',(_0x1c0a5e,_0x1d0f93)=>{this[_0x596b('0x2f')](_0x1d0f93),_0x1d0f93===this[_0x596b('0x2d')]&&this[_0x596b('0x13')](null);}),this['listenTo'](_0x2ee02a,'change:visibleView',(_0x3fc138,_0x191a75,_0x25bf5f,_0x5c7951)=>{if(_0x5c7951&&this[_0x596b('0x34')](_0x5c7951),!_0x25bf5f||!_0x566d47[_0x596b('0x21')](_0x25bf5f))return;const _0x4ccaa8=_0x566d47[_0x596b('0x21')](_0x25bf5f);this[_0x596b('0x30')](_0x25bf5f,_0x596b('0x1e'),()=>{_0x2ee02a[_0x596b('0x27')]();}),this['listenTo'](_0x25bf5f,'Esc',()=>{this['_manuallyClosed']['add'](_0x4ccaa8),this['_removeAnnotationFromBalloon'](_0x4ccaa8),this['editor'][_0x596b('0xf')][_0x596b('0x17')][_0x596b('0x29')]();}),this[_0x596b('0x2d')]!==_0x4ccaa8&&this[_0x596b('0x13')](_0x4ccaa8);}),this['listenTo'](this[_0x596b('0x18')]['ui'],_0x596b('0xb'),()=>{_0x2ee02a['visibleView']&&(_0x566d47['getByView'](_0x2ee02a[_0x596b('0xd')])&&_0x2ee02a[_0x596b('0x27')]());}),this[_0x596b('0x30')](this[_0x596b('0x18')][_0x596b('0xf')][_0x596b('0x17')][_0x596b('0xe')],_0x596b('0x32'),()=>{this['_manuallyClosed'][_0x596b('0x1d')]();}),this[_0x596b('0x18')][_0x596b('0xf')][_0x596b('0x17')][_0x596b('0xe')][_0x596b('0x0')][_0x596b('0x12')]&&this[_0x596b('0x18')][_0x596b('0xf')][_0x596b('0x17')][_0x596b('0x29')](),this[_0x596b('0x1b')]=!0x0;}[_0x596b('0x3b')](){if(!this['isAttached'])throw new _0x358015(_0x596b('0x16'),this);this[_0x596b('0x13')](null);for(const _0x27a03b of this[_0x596b('0xc')])this['_removeAnnotationFromBalloon'](_0x27a03b);this[_0x596b('0x34')](),this['isAttached']=!0x1,this[_0x596b('0x26')]=null;}['destroy'](){this[_0x596b('0x1b')]&&this['detach']();}[_0x596b('0x2a')](_0x297975){const _0x2c6ca2=this[_0x596b('0x5')];for(const _0x3c1e91 of _0x2c6ca2)_0x297975[_0x596b('0x3')](_0x3c1e91)||this[_0x596b('0x37')][_0x596b('0x2c')](_0x3c1e91);for(const _0x7d37eb of this[_0x596b('0x26')])_0x297975['includes'](_0x7d37eb)||this['_removeAnnotationFromBalloon'](_0x7d37eb);if(this[_0x596b('0x18')]['ui'][_0x596b('0x31')][_0x596b('0x2e')])for(const _0x5f2bec of _0x297975)this[_0x596b('0x23')](_0x5f2bec);this[_0x596b('0x5')]=_0x297975;}[_0x596b('0x23')](_0x1edfdb,_0x1345b3){this[_0x596b('0x37')][_0x596b('0x1a')](_0x1edfdb)||(this['_addedAnnotations']['has'](_0x1edfdb)||this[_0x596b('0x2')][_0x596b('0x3c')](_0x1edfdb[_0x596b('0x17')])||(this[_0x596b('0xc')][_0x596b('0x35')](_0x1edfdb),this['_balloon'][_0x596b('0x35')]({'stackId':_0x1edfdb[_0x596b('0x17')]['id'],'view':_0x1edfdb['view'],'position':{'target':()=>_0x1edfdb[_0x596b('0x4')]||_0x1edfdb[_0x596b('0x22')]||document[_0x596b('0x24')]()[_0x596b('0x6')](0x0)}})),_0x1345b3&&this[_0x596b('0x2')][_0x596b('0x11')](_0x1edfdb[_0x596b('0x17')]['id']));}[_0x596b('0x2f')](_0x4d3212){this[_0x596b('0xc')][_0x596b('0x1a')](_0x4d3212)&&this['_balloon'][_0x596b('0x3c')](_0x4d3212[_0x596b('0x17')])&&(this[_0x596b('0xc')][_0x596b('0x2c')](_0x4d3212),this['_balloon'][_0x596b('0x10')](_0x4d3212['view']));}}
23
+ const _0x592d=['context','hasActive','setActiveAnnotation','length','visibleView','view','focus','_forceRefresh','Esc','inlineannotations-attach-already-attached','InlineAnnotations','inline','EditorAnnotations','isFocused','getOrderedSelectedAnnotations','hasView','afterInit','keystrokes','getRangeAt','target','listenTo','document','isActive','blur','activeAnnotation','targetRect','annotations','inlineannotations-detach-not-attached','updatePosition','get','_addAnnotationToBalloon','mousedown','_addedAnnotations','_closeAnnotation','delete','clear','_setSelectedAnnotations','remove','includes','register','focusTracker','_removeAnnotationFromBalloon','switchTo','isAttached','_selectedAnnotations','stopListening','pluginName','_manuallyClosed','init','detach','plugins','requires','set','destroy','editor','refresh','every','editing','inlineannotations-not-allowed-with-context','has','_balloon','change:visibleView','add','getByView','showStack'];(function(_0x53b82b,_0x592dde){const _0x1135fd=function(_0x4a77fd){while(--_0x4a77fd){_0x53b82b['push'](_0x53b82b['shift']());}};_0x1135fd(++_0x592dde);}(_0x592d,0x1c4));const _0x1135=function(_0x53b82b,_0x592dde){_0x53b82b=_0x53b82b-0x0;let _0x1135fd=_0x592d[_0x53b82b];return _0x1135fd;};import{Plugin as _0x383b8e}from'ckeditor5/src/core';import _0x3f33ff from'./annotationsuis';import _0x1ad6da from'./editorannotations';import{ContextualBalloon as _0x24bcc4}from'ckeditor5/src/ui';import{MouseObserver as _0x14841d}from'ckeditor5/src/engine';import{CKEditorError as _0x5fb5f}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x383b8e{static get[_0x1135('0x36')](){return[_0x1ad6da,_0x24bcc4,_0x3f33ff];}static get[_0x1135('0x31')](){return _0x1135('0xd');}constructor(_0x321292){super(_0x321292),_0x321292[_0x1135('0x3c')][_0x1135('0x8')]['addObserver'](_0x14841d),this['isAttached']=!0x1,this[_0x1135('0x37')](_0x1135('0x1b'),null),this[_0x1135('0x1d')]=null,this[_0x1135('0x32')]=new Set(),this[_0x1135('0x3f')]=_0x321292['plugins'][_0x1135('0x20')](_0x24bcc4),this[_0x1135('0x23')]=new Set(),this[_0x1135('0x2f')]=[],this['_forceRefresh']=!0x1;}[_0x1135('0x33')](){const _0x114790=this['editor'][_0x1135('0x35')][_0x1135('0x20')](_0x3f33ff);_0x114790['context']===this['editor']&&(_0x114790[_0x1135('0x2a')](_0x1135('0xe'),this),this[_0x1135('0x39')][_0x1135('0x14')][_0x1135('0x37')](_0x1135('0xb'),(_0x4fc620,_0x344674)=>{const _0x1e4501=this['_balloon'];if(this[_0x1135('0x2e')]&&_0x1e4501[_0x1135('0x7')]){const _0x38d30a=this[_0x1135('0x1d')][_0x1135('0x1')](_0x1e4501[_0x1135('0x7')]);this[_0x1135('0x24')](_0x38d30a),_0x344674();}}));}[_0x1135('0x13')](){const _0x5dff05=this[_0x1135('0x39')][_0x1135('0x35')][_0x1135('0x20')](_0x3f33ff);_0x5dff05['context']===this[_0x1135('0x39')]&&(_0x5dff05[_0x1135('0x4')]()||_0x5dff05[_0x1135('0x2d')]('inline'));}[_0x1135('0x5')](_0x5826f4){_0x5826f4!==this[_0x1135('0x1b')]&&(this[_0x1135('0x1b')]&&(this[_0x1135('0x1b')]['isActive']=!0x1),_0x5826f4&&this[_0x1135('0x39')]['ui'][_0x1135('0x2b')][_0x1135('0x10')]&&(this[_0x1135('0x21')](_0x5826f4,!0x0),_0x5826f4[_0x1135('0x19')]=!0x0),_0x5826f4||this['_setSelectedAnnotations']([]),this[_0x1135('0x1b')]=_0x5826f4);}['attach'](_0x2b4f2a){this[_0x1135('0x1d')]=_0x2b4f2a;const _0x54cfb4=this[_0x1135('0x39')][_0x1135('0x35')][_0x1135('0x20')](_0x3f33ff),_0xa9c58d=this[_0x1135('0x3f')];if(this[_0x1135('0x2e')])throw new _0x5fb5f(_0x1135('0xc'),this);if(_0x54cfb4[_0x1135('0x3')]!==this[_0x1135('0x39')])throw new _0x5fb5f(_0x1135('0x3d'),this);const _0x4112e8=this[_0x1135('0x39')][_0x1135('0x35')][_0x1135('0x20')](_0x1135('0xf'));this['listenTo'](_0x4112e8,_0x1135('0x3a'),function(){const _0x4e4f6a=_0x4112e8[_0x1135('0x11')]({'activeAnnotation':this[_0x1135('0x1b')],'annotations':this[_0x1135('0x1d')]});if(!this[_0x1135('0xa')]&&(_0x20d7f7=_0x4e4f6a,_0x618902=this[_0x1135('0x2f')],_0x20d7f7[_0x1135('0x6')]===_0x618902[_0x1135('0x6')]&&_0x20d7f7[_0x1135('0x3b')](_0x93b103=>_0x618902[_0x1135('0x29')](_0x93b103))))return;var _0x20d7f7,_0x618902;this[_0x1135('0xa')]=!0x1,this[_0x1135('0x27')](_0x4e4f6a),this[_0x1135('0x5')](_0x4e4f6a[0x0]||null);}['bind'](this)),this[_0x1135('0x17')](_0x4112e8,_0x1135('0x1a'),(_0x28ba2c,{isAnnotationTracked:_0x1cfc16})=>{this['activeAnnotation']&&_0x1cfc16(this['activeAnnotation'])&&(this[_0x1135('0x27')]([]),this[_0x1135('0x5')](null));}),this[_0x1135('0x17')](this['editor']['ui'][_0x1135('0x2b')],'change:isFocused',(_0x54fb9a,_0x1838c5,_0x46d616)=>{_0x46d616||this[_0x1135('0x5')](null);}),this[_0x1135('0x17')](_0x2b4f2a,_0x1135('0x28'),(_0x5b7662,_0x46d21e)=>{this[_0x1135('0x2c')](_0x46d21e),_0x46d21e===this[_0x1135('0x1b')]&&this['setActiveAnnotation'](null);}),this['listenTo'](_0xa9c58d,_0x1135('0x40'),(_0x309a3f,_0x4894c4,_0x1dfeea,_0x3b4985)=>{if(_0x3b4985&&this[_0x1135('0x30')](_0x3b4985),!_0x1dfeea||!_0x2b4f2a[_0x1135('0x1')](_0x1dfeea))return;const _0x269edf=_0x2b4f2a[_0x1135('0x1')](_0x1dfeea);this[_0x1135('0x17')](_0x1dfeea,'change:height',()=>{_0xa9c58d[_0x1135('0x1f')]();}),this[_0x1135('0x17')](_0x1dfeea,_0x1135('0xb'),()=>{this['_closeAnnotation'](_0x269edf),this[_0x1135('0x39')]['editing'][_0x1135('0x8')][_0x1135('0x9')]();}),this[_0x1135('0x1b')]!==_0x269edf&&this[_0x1135('0x5')](_0x269edf);}),this[_0x1135('0x17')](this[_0x1135('0x39')]['ui'],'update',()=>{_0xa9c58d[_0x1135('0x7')]&&(_0x2b4f2a['getByView'](_0xa9c58d['visibleView'])&&_0xa9c58d[_0x1135('0x1f')]());}),this[_0x1135('0x17')](this[_0x1135('0x39')][_0x1135('0x3c')]['view'][_0x1135('0x18')],_0x1135('0x22'),()=>{this[_0x1135('0xa')]=!0x0,this[_0x1135('0x32')][_0x1135('0x26')]();}),this[_0x1135('0x39')][_0x1135('0x3c')][_0x1135('0x8')][_0x1135('0x18')]['selection']['editableElement']&&this[_0x1135('0x39')][_0x1135('0x3c')][_0x1135('0x8')][_0x1135('0x9')](),this[_0x1135('0x2e')]=!0x0;}['detach'](){if(!this[_0x1135('0x2e')])throw new _0x5fb5f(_0x1135('0x1e'),this);this[_0x1135('0x5')](null);for(const _0x3b3da1 of this[_0x1135('0x23')])this[_0x1135('0x2c')](_0x3b3da1);this[_0x1135('0x30')](),this[_0x1135('0x2e')]=!0x1,this['annotations']=null;}[_0x1135('0x38')](){this[_0x1135('0x2e')]&&this[_0x1135('0x34')]();}[_0x1135('0x27')](_0x1888bd){for(const _0x25a513 of this[_0x1135('0x2f')])_0x1888bd[_0x1135('0x29')](_0x25a513)||this[_0x1135('0x32')]['delete'](_0x25a513);for(const _0x468233 of this['annotations'])_0x1888bd['includes'](_0x468233)||this[_0x1135('0x2c')](_0x468233);if(this[_0x1135('0x39')]['ui']['focusTracker'][_0x1135('0x10')])for(const _0xc65a65 of _0x1888bd)this['_addAnnotationToBalloon'](_0xc65a65);this[_0x1135('0x2f')]=_0x1888bd;}[_0x1135('0x21')](_0x48d7f5,_0x4fb82f){this[_0x1135('0x32')][_0x1135('0x3e')](_0x48d7f5)||(this[_0x1135('0x23')][_0x1135('0x3e')](_0x48d7f5)||this[_0x1135('0x3f')][_0x1135('0x12')](_0x48d7f5[_0x1135('0x8')])||(this['_addedAnnotations'][_0x1135('0x0')](_0x48d7f5),this[_0x1135('0x3f')]['add']({'stackId':_0x48d7f5[_0x1135('0x8')]['id'],'view':_0x48d7f5['view'],'position':{'target':()=>_0x48d7f5[_0x1135('0x16')]||_0x48d7f5[_0x1135('0x1c')]||document['getSelection']()[_0x1135('0x15')](0x0)}})),_0x4fb82f&&this[_0x1135('0x3f')][_0x1135('0x2')](_0x48d7f5['view']['id']));}['_removeAnnotationFromBalloon'](_0x2cbc31){this[_0x1135('0x23')][_0x1135('0x3e')](_0x2cbc31)&&this['_balloon'][_0x1135('0x12')](_0x2cbc31['view'])&&(this[_0x1135('0x23')][_0x1135('0x25')](_0x2cbc31),this[_0x1135('0x3f')][_0x1135('0x28')](_0x2cbc31[_0x1135('0x8')]));}[_0x1135('0x24')](_0x43adb6){this[_0x1135('0x32')][_0x1135('0x0')](_0x43adb6),this['_removeAnnotationFromBalloon'](_0x43adb6);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x332b=['init','rearrange','has','narrowsidebar-detach-not-attached','low','type','get','first','remove','mousedown','ck-sidebar--narrow','content','attachToDom','execute','_throttledRefreshPositioning','removeEventListener','target','refreshPositioning','cancel','add','values','attach','editors','_selectedAnnotations','delete','getOrderedSelectedAnnotations','ready','from','stopListening','isAttached','_refreshPositioning','narrowsidebar-attach-already-attached','pluginName','set:container','focus','locale','activeAnnotation','includes','change:height','hasDomSelection','stopPropagation','unpin','_showBalloon','balloonPanelView','set','isDirty','destroy','setActiveAnnotation','refresh','preventClosingBalloon','view','Sidebar','pin','EditorAnnotations','high','northArrowSouth','_hideBalloon','NarrowSidebar','resize','element','_destroyEditorAnnotationsIntegration','_integrateWithEditorAnnotations','detach','defaultPositions','_updateBalloonPosition','context','clear','listenTo','uiUpdate','_detachListeners','stop','narrowSidebar','blur','annotations','keyCode','_annotations','isVisible','_domEmitter','_setSelectedAnnotations','bodyCollection','southArrowNorthEast','create','_editorAnnotations','preventDefault','plugins','_manuallyClosedAnnotationViews','off','detachFromDom','length','_annotationToNarrowView','contains','_attachListeners'];(function(_0xa98bd8,_0x332b83){const _0x541aa7=function(_0x22f4db){while(--_0x22f4db){_0xa98bd8['push'](_0xa98bd8['shift']());}};_0x541aa7(++_0x332b83);}(_0x332b,0x90));const _0x541a=function(_0xa98bd8,_0x332b83){_0xa98bd8=_0xa98bd8-0x0;let _0x541aa7=_0x332b[_0xa98bd8];return _0x541aa7;};import{ContextPlugin as _0xffe2e}from'ckeditor5/src/core';import _0x505547 from'./annotationsuis';import _0x2cf235 from'./sidebar';import _0x3a0fed from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x5de32f,BodyCollection as _0x121e62}from'ckeditor5/src/ui';import{CKEditorError as _0x2617cf,DomEmitterMixin as _0x377e15,keyCodes as _0x396b0e,Collection as _0x3f35f8}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x13bba1}from'lodash-es';export default class s extends _0xffe2e{static get['requires'](){return[_0x2cf235,_0x505547];}static get[_0x541a('0x48')](){return _0x541a('0x5');}constructor(_0x39535e){super(_0x39535e),this[_0x541a('0x45')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0x541a('0x19')]=Object[_0x541a('0x1d')](_0x377e15),this[_0x541a('0x25')]=new Map(),this[_0x541a('0x54')](_0x541a('0x4c'),null),this[_0x541a('0x15')]=null,this[_0x541a('0x3f')]=[],this['_editorAnnotations']=new _0x3f35f8(),this[_0x541a('0x36')]=_0x13bba1(()=>{this['_refreshPositioning']();},0x190,{'leading':!0x1});}[_0x541a('0x28')](){this[_0x541a('0xd')]['plugins'][_0x541a('0x2e')](_0x505547)['register'](_0x541a('0x13'),this),this[_0x541a('0x1b')]=new _0x121e62(this['context'][_0x541a('0x4b')]),this[_0x541a('0x53')]=new _0x5de32f(this[_0x541a('0xd')]['locale']),this[_0x541a('0x1b')][_0x541a('0x34')](),this[_0x541a('0x1b')][_0x541a('0x3b')](this[_0x541a('0x53')]);}['attach'](_0x195575){this[_0x541a('0x15')]=_0x195575;const _0x424509=this[_0x541a('0xd')]['plugins']['get'](_0x2cf235),_0x4852f8=this['balloonPanelView'];if(_0x424509[_0x541a('0x17')]=_0x195575,this[_0x541a('0x45')])throw new _0x2617cf(_0x541a('0x47'),this);this['isAttached']=!0x0,this['listenTo'](_0x424509,_0x541a('0x49'),()=>{this[_0x541a('0xa')](),this[_0x541a('0xf')](_0x424509,'change:container',_0x14ebfe=>{_0x14ebfe[_0x541a('0x22')](),this[_0x541a('0x3d')](_0x195575);});}),_0x424509['_attachToContainer']({'viewClass':_0x541a('0x32'),'spaceBetweenItems':0x5});const _0x2162c3=_0x3552f3=>{const _0x5f3645=new _0x3a0fed(this[_0x541a('0xd')][_0x541a('0x4b')]);_0x424509['addAnnotation'](_0x3552f3,_0x5f3645),this[_0x541a('0x25')][_0x541a('0x54')](_0x3552f3,_0x5f3645),_0x5f3645['bind']('isDirty','annotationType','number')['to'](_0x3552f3[_0x541a('0x5a')],_0x541a('0x55'),_0x541a('0x2d'),_0x541a('0x24')),_0x5f3645['on'](_0x541a('0x35'),()=>{this['_manuallyClosedAnnotationViews'][_0x541a('0xe')](),_0x4852f8[_0x541a('0x33')][_0x541a('0x2f')]!==_0x3552f3['view']?(this[_0x541a('0x52')](_0x3552f3),_0x3552f3[_0x541a('0x5a')]['element'][_0x541a('0x4a')](),this['setActiveAnnotation'](_0x3552f3)):this[_0x541a('0x57')](null);});};for(const _0x541c3a of _0x195575)_0x2162c3(_0x541c3a);this[_0x541a('0xf')](_0x195575,_0x541a('0x3b'),(_0x57da1e,_0x355843)=>{_0x2162c3(_0x355843);}),this['listenTo'](_0x195575,'remove',(_0x2243cd,_0x326b49,_0x55165f)=>{this[_0x541a('0x25')][_0x541a('0x2e')](_0x326b49)[_0x541a('0x56')](),this[_0x541a('0x25')][_0x541a('0x40')](_0x326b49),_0x424509[_0x541a('0x29')]({'removedAnnotation':_0x326b49,'previousAnnotation':_0x195575['get'](_0x55165f-0x1),'nextAnnotation':_0x195575[_0x541a('0x2e')](_0x55165f+0x1)}),_0x326b49===this[_0x541a('0x4c')]&&this[_0x541a('0x57')](null);},{'priority':_0x541a('0x2c')}),this['listenTo'](_0x195575,'focus',(_0x29c8e8,_0x59f7fc)=>{this['setActiveAnnotation'](_0x59f7fc);}),this[_0x541a('0xf')](_0x195575,'blur',()=>{this['setActiveAnnotation'](null);}),this[_0x541a('0x19')][_0x541a('0xf')](document,'keydown',(_0x29059e,_0x20e48d)=>{_0x20e48d[_0x541a('0x16')]===_0x396b0e['esc']&&_0x4852f8['isVisible']&&(this[_0x541a('0x21')][_0x541a('0x3b')](_0x4852f8[_0x541a('0x33')]['first']),this[_0x541a('0x4')](),_0x20e48d[_0x541a('0x50')](),_0x20e48d[_0x541a('0x1f')]());}),this[_0x541a('0x19')][_0x541a('0xf')](document,_0x541a('0x31'),(_0x20a93a,_0x5f2866)=>{const _0x105ff4=_0x5f2866[_0x541a('0x38')];_0x4852f8[_0x541a('0x18')]&&_0x4852f8['element'][_0x541a('0x26')](_0x105ff4)||_0x424509[_0x541a('0x5a')]['element'][_0x541a('0x26')](_0x105ff4)||_0x20a93a['preventClosingBalloon']||(this[_0x541a('0x21')][_0x541a('0xe')](),this[_0x541a('0x4')](),this[_0x541a('0x57')](null));});const _0x570716=this[_0x541a('0xd')]['editors']?this['context'][_0x541a('0x3e')]:new _0x3f35f8([this[_0x541a('0xd')]]);for(const _0x1554a1 of _0x570716)this['_integrateWithEditorAnnotations'](_0x1554a1);this[_0x541a('0xf')](_0x570716,'add',(_0x5184a8,_0x4ff103)=>{this[_0x541a('0xf')](_0x4ff103,_0x541a('0x42'),()=>{this[_0x541a('0x9')](_0x4ff103);});}),this[_0x541a('0xf')](_0x570716,_0x541a('0x30'),(_0x4f3e76,_0x56c28c)=>{_0x56c28c[_0x541a('0x20')]['has'](_0x541a('0x1'))&&this[_0x541a('0x8')](_0x56c28c['plugins'][_0x541a('0x2e')](_0x541a('0x1')));}),window['addEventListener']('resize',this[_0x541a('0x36')]),this[_0x541a('0x46')]();}[_0x541a('0x57')](_0x2393b2){if(_0x2393b2===this['activeAnnotation'])return;const _0x1782df=this['context']['plugins']['get'](_0x541a('0x5b'));if(_0x1782df[_0x541a('0x58')]({'blurredAnnotation':this[_0x541a('0x4c')],'activatedAnnotation':_0x2393b2,'disableAnimationOnActivatedAnnotation':!0x0}),_0x2393b2)_0x1782df['getSidebarItemView'](_0x2393b2)?this['_showBalloon'](_0x2393b2):this[_0x541a('0x4')]();else this[_0x541a('0x4')]();this[_0x541a('0x4c')]=_0x2393b2;}[_0x541a('0xa')](){if(!this[_0x541a('0x45')])throw new _0x2617cf(_0x541a('0x2b'),this);this[_0x541a('0x57')](null);const _0x43d06e=this['context']['plugins'][_0x541a('0x2e')](_0x541a('0x5b'));this[_0x541a('0x4')](),Array[_0x541a('0x43')](this[_0x541a('0x25')][_0x541a('0x3c')](),_0xec3509=>_0xec3509[_0x541a('0x56')]()),this[_0x541a('0x25')][_0x541a('0xe')](),_0x43d06e['_detachFromContainer'](this['annotations']),this[_0x541a('0x44')](),this[_0x541a('0x19')][_0x541a('0x44')](),this['stopListening'](this['context'][_0x541a('0x3e')]);for(const _0x4cec6f of Array['from'](this[_0x541a('0x1e')]))this[_0x541a('0x8')](_0x4cec6f);window[_0x541a('0x37')](_0x541a('0x6'),this[_0x541a('0x36')]),this[_0x541a('0x36')][_0x541a('0x3a')](),this[_0x541a('0x3f')]=[],this[_0x541a('0x45')]=!0x1,this['annotations']=null;}[_0x541a('0x56')](){this[_0x541a('0x45')]&&this['detach'](),this['bodyCollection'][_0x541a('0x23')]();}[_0x541a('0x9')](_0x30c6e5){const _0x474fe2=_0x30c6e5[_0x541a('0x20')][_0x541a('0x2e')](_0x541a('0x1')),_0x1afdc3=this['context'][_0x541a('0x20')][_0x541a('0x2e')](_0x2cf235),_0x2cf952=this[_0x541a('0x15')],_0x70c65a=this[_0x541a('0x53')],_0x586ed4=()=>{const _0x3110fc=_0x474fe2[_0x541a('0x41')]({'activeAnnotation':this[_0x541a('0x4c')],'annotations':this[_0x541a('0x15')]});this[_0x541a('0x1a')](_0x3110fc),this['setActiveAnnotation'](_0x3110fc[0x0]||null);};this['listenTo'](_0x474fe2,_0x541a('0x58'),_0x586ed4),this[_0x541a('0xf')](_0x474fe2,'blur',(_0x30e7ef,{isAnnotationTracked:_0x4aa007})=>{this[_0x541a('0x4c')]&&_0x4aa007(this[_0x541a('0x4c')])&&(this[_0x541a('0x1a')]([]),this[_0x541a('0x57')](null));}),this[_0x541a('0xf')](_0x474fe2,_0x541a('0x10'),()=>{this[_0x541a('0x36')]();}),this[_0x541a('0xf')](_0x2cf952,_0x541a('0x14'),_0x4857b5=>{_0x474fe2[_0x541a('0x4f')]()&&_0x4857b5[_0x541a('0x12')]();},{'priority':'high'}),this[_0x541a('0x19')][_0x541a('0xf')](document,_0x541a('0x31'),(_0x3027e4,_0x5d7d9b)=>{const _0x3fb3d8=_0x5d7d9b['target'];_0x70c65a[_0x541a('0x18')]&&_0x70c65a[_0x541a('0x7')]['contains'](_0x3fb3d8)||_0x1afdc3[_0x541a('0x5a')][_0x541a('0x7')]['contains'](_0x3fb3d8)||this[_0x541a('0x4c')]&&_0x474fe2[_0x541a('0x4f')]()&&(_0x586ed4(),_0x3027e4[_0x541a('0x59')]=!0x0);},{'priority':_0x541a('0x2')}),this[_0x541a('0x1e')][_0x541a('0x3b')](_0x474fe2);}[_0x541a('0x8')](_0x2c6900){_0x2c6900&&(this[_0x541a('0x44')](_0x2c6900),this[_0x541a('0x1e')]['remove'](_0x2c6900));}['_setSelectedAnnotations'](_0x89c52c){for(const _0x402b26 of this[_0x541a('0x3f')])_0x89c52c[_0x541a('0x4d')](_0x402b26)||this[_0x541a('0x21')][_0x541a('0x40')](_0x402b26[_0x541a('0x5a')]);this[_0x541a('0x3f')]=_0x89c52c;}[_0x541a('0x46')](){const _0x908e06=this[_0x541a('0x53')];this[_0x541a('0x15')][_0x541a('0x39')](),_0x908e06['isVisible']&&this[_0x541a('0xc')]();}[_0x541a('0x52')](_0x45da14){if(this[_0x541a('0x21')][_0x541a('0x2a')](_0x45da14[_0x541a('0x5a')]))return;const _0x47064b=this[_0x541a('0x53')][_0x541a('0x33')][_0x541a('0x2f')];_0x47064b!==_0x45da14[_0x541a('0x5a')]?(_0x47064b&&this[_0x541a('0x11')](_0x47064b),this[_0x541a('0x27')](_0x45da14[_0x541a('0x5a')]),this[_0x541a('0x53')][_0x541a('0x33')][_0x541a('0xe')](),this['balloonPanelView'][_0x541a('0x33')][_0x541a('0x3b')](_0x45da14[_0x541a('0x5a')]),this[_0x541a('0xc')]()):this[_0x541a('0xc')]();}[_0x541a('0xc')](){const _0x5dd71a=this[_0x541a('0x53')][_0x541a('0x33')]['first'],_0x2f6f40=this[_0x541a('0x15')]['getByView'](_0x5dd71a);if(!this[_0x541a('0x25')][_0x541a('0x2a')](_0x2f6f40))return;const _0x52a4c6=this['_annotationToNarrowView'][_0x541a('0x2e')](_0x2f6f40)[_0x541a('0x7')],_0x39a040=function(){const _0x5dcf8f=_0x5de32f[_0x541a('0xb')];return[_0x5dcf8f[_0x541a('0x1c')],_0x5dcf8f['northArrowSouthEast'],_0x5dcf8f['southArrowNorth'],_0x5dcf8f[_0x541a('0x3')],_0x5dcf8f['southArrowNorthWest'],_0x5dcf8f['northArrowSouthWest']];}();this[_0x541a('0x53')][_0x541a('0x0')]({'target':_0x52a4c6,'positions':_0x39a040});}[_0x541a('0x4')](){const _0x36b840=this[_0x541a('0x53')],_0x23f01a=_0x36b840['content']['first'];_0x23f01a&&(this['_detachListeners'](_0x23f01a),_0x36b840[_0x541a('0x51')](),_0x36b840['content']['clear']());}['_attachListeners'](_0x39acba){this[_0x541a('0xf')](_0x39acba,_0x541a('0x4e'),()=>this[_0x541a('0xc')]()),this['listenTo'](_0x39acba,'Esc',(_0x973a57,_0x28a6b9)=>{this[_0x541a('0x21')]['add'](_0x39acba),this['_hideBalloon'](),_0x28a6b9();});}[_0x541a('0x11')](_0x31e3f7){this[_0x541a('0x44')](_0x31e3f7);}}
23
+ const _0x3eba=['_annotationToNarrowView','balloonPanelView','northArrowSouthEast','contains','context','pin','addEventListener','_editorAnnotations','Sidebar','length','get','create','add','preventDefault','_selectedAnnotations','content','esc','element','target','low','delete','getOrderedSelectedAnnotations','setActiveAnnotation','execute','mousedown','_detachListeners','focus','_showBalloon','southArrowNorthEast','attach','locale','annotations','_annotations','isVisible','_hideBalloon','southArrowNorth','view','_domEmitter','keyCode','attachToDom','has','_updateBalloonPosition','_setSelectedAnnotations','northArrowSouthWest','addAnnotation','plugins','resize','ck-sidebar--narrow','isAttached','narrowSidebar','_integrateWithEditorAnnotations','unpin','getByView','cancel','listenTo','first','isDirty','clear','keydown','init','refresh','change:height','requires','getSidebarItemView','high','northArrowSouth','preventClosingBalloon','_refreshPositioning','EditorAnnotations','activeAnnotation','editors','stopListening','_manuallyClosedAnnotationViews','destroy','bodyCollection','type','southArrowNorthWest','_destroyEditorAnnotationsIntegration','hasDomSelection','_refreshPositioningDebounced','rearrange','remove','blur','includes','from','narrowsidebar-detach-not-attached','change:container','defaultPositions','detach','_attachToContainer','set'];(function(_0xc35d1b,_0x3ebaae){const _0x10011c=function(_0x592a8a){while(--_0x592a8a){_0xc35d1b['push'](_0xc35d1b['shift']());}};_0x10011c(++_0x3ebaae);}(_0x3eba,0x97));const _0x1001=function(_0xc35d1b,_0x3ebaae){_0xc35d1b=_0xc35d1b-0x0;let _0x10011c=_0x3eba[_0xc35d1b];return _0x10011c;};import{ContextPlugin as _0x473659}from'ckeditor5/src/core';import _0x3939ca from'./annotationsuis';import _0x1e5fac from'./sidebar';import _0x130edb from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x4a924c,BodyCollection as _0x5a4e38}from'ckeditor5/src/ui';import{CKEditorError as _0x2c2159,DomEmitterMixin as _0x5a3fe9,keyCodes as _0x3f6e96,Collection as _0x99b788}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x2db4de}from'lodash-es';export default class s extends _0x473659{static get[_0x1001('0x2')](){return[_0x1e5fac,_0x3939ca];}static get['pluginName'](){return'NarrowSidebar';}constructor(_0xbe47cb){super(_0xbe47cb),this[_0x1001('0x4f')]=!0x1,this[_0x1001('0xc')]=new Set(),this[_0x1001('0x44')]=Object[_0x1001('0x2a')](_0x5a3fe9),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this[_0x1001('0x3e')]=null,this[_0x1001('0x2d')]=[],this[_0x1001('0x26')]=new _0x99b788(),this[_0x1001('0x13')]=_0x2db4de(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x1001('0x5a')](){this['context'][_0x1001('0x4c')][_0x1001('0x29')](_0x3939ca)['register'](_0x1001('0x50'),this),this[_0x1001('0xe')]=new _0x5a4e38(this['context'][_0x1001('0x3d')]),this[_0x1001('0x20')]=new _0x4a924c(this[_0x1001('0x23')][_0x1001('0x3d')]),this[_0x1001('0xe')][_0x1001('0x46')](),this['bodyCollection']['add'](this[_0x1001('0x20')]);}['attach'](_0xa79317){this['annotations']=_0xa79317;const _0x21237d=this[_0x1001('0x23')][_0x1001('0x4c')][_0x1001('0x29')](_0x1e5fac),_0x4802f6=this['balloonPanelView'];if(_0x21237d[_0x1001('0x3f')]=_0xa79317,this['isAttached'])throw new _0x2c2159('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x21237d,'set:container',()=>{this[_0x1001('0x1c')](),this[_0x1001('0x55')](_0x21237d,_0x1001('0x1a'),_0x477b22=>{_0x477b22['off'](),this[_0x1001('0x3c')](_0xa79317);});}),_0x21237d[_0x1001('0x1d')]({'viewClass':_0x1001('0x4e'),'spaceBetweenItems':0x5});const _0x6d2498=_0x1df451=>{const _0x25fb72=new _0x130edb(this[_0x1001('0x23')][_0x1001('0x3d')]);_0x21237d[_0x1001('0x4b')](_0x1df451,_0x25fb72),this[_0x1001('0x1f')][_0x1001('0x1e')](_0x1df451,_0x25fb72),_0x25fb72['bind'](_0x1001('0x57'),'annotationType','number')['to'](_0x1df451[_0x1001('0x43')],_0x1001('0x57'),_0x1001('0xf'),_0x1001('0x28')),_0x25fb72['on'](_0x1001('0x36'),()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x4802f6[_0x1001('0x2e')][_0x1001('0x56')]!==_0x1df451[_0x1001('0x43')]?(this[_0x1001('0x3a')](_0x1df451),_0x1df451[_0x1001('0x43')][_0x1001('0x30')][_0x1001('0x39')](),this['setActiveAnnotation'](_0x1df451)):this[_0x1001('0x35')](null);});};for(const _0xf09e1 of _0xa79317)_0x6d2498(_0xf09e1);this[_0x1001('0x55')](_0xa79317,_0x1001('0x2b'),(_0x2939f0,_0x2f3c0d)=>{_0x6d2498(_0x2f3c0d);}),this[_0x1001('0x55')](_0xa79317,_0x1001('0x15'),(_0xd5adff,_0x21324d,_0x44d691)=>{this[_0x1001('0x1f')][_0x1001('0x29')](_0x21324d)['destroy'](),this[_0x1001('0x1f')][_0x1001('0x33')](_0x21324d),_0x21237d[_0x1001('0x14')]({'removedAnnotation':_0x21324d,'previousAnnotation':_0xa79317[_0x1001('0x29')](_0x44d691-0x1),'nextAnnotation':_0xa79317[_0x1001('0x29')](_0x44d691+0x1)}),_0x21324d===this['activeAnnotation']&&this[_0x1001('0x35')](null);},{'priority':_0x1001('0x32')}),this[_0x1001('0x55')](_0xa79317,'focus',(_0x29bf4b,_0x222f2b)=>{this[_0x1001('0x35')](_0x222f2b);}),this[_0x1001('0x55')](_0xa79317,'blur',()=>{this[_0x1001('0x35')](null);}),this[_0x1001('0x44')][_0x1001('0x55')](document,_0x1001('0x59'),(_0x55a73f,_0x276ff4)=>{_0x276ff4[_0x1001('0x45')]===_0x3f6e96[_0x1001('0x2f')]&&_0x4802f6['isVisible']&&(this[_0x1001('0xc')][_0x1001('0x2b')](_0x4802f6[_0x1001('0x2e')]['first']),this[_0x1001('0x41')](),_0x276ff4['stopPropagation'](),_0x276ff4[_0x1001('0x2c')]());}),this[_0x1001('0x44')][_0x1001('0x55')](document,_0x1001('0x37'),(_0x306035,_0x4c4348)=>{const _0x10da74=_0x4c4348[_0x1001('0x31')];_0x4802f6['isVisible']&&_0x4802f6[_0x1001('0x30')][_0x1001('0x22')](_0x10da74)||_0x21237d[_0x1001('0x43')]['element'][_0x1001('0x22')](_0x10da74)||_0x306035['preventClosingBalloon']||(this['_manuallyClosedAnnotationViews'][_0x1001('0x58')](),this[_0x1001('0x41')](),this[_0x1001('0x35')](null));});const _0x36d4aa=this[_0x1001('0x23')][_0x1001('0xa')]?this[_0x1001('0x23')][_0x1001('0xa')]:new _0x99b788([this[_0x1001('0x23')]]);for(const _0x323157 of _0x36d4aa)this[_0x1001('0x51')](_0x323157);this['listenTo'](_0x36d4aa,_0x1001('0x2b'),(_0x4e159e,_0x2cc49a)=>{this[_0x1001('0x55')](_0x2cc49a,'ready',()=>{this[_0x1001('0x51')](_0x2cc49a);});}),this[_0x1001('0x55')](_0x36d4aa,_0x1001('0x15'),(_0x5a8247,_0x4ea71c)=>{_0x4ea71c[_0x1001('0x4c')][_0x1001('0x47')](_0x1001('0x8'))&&this[_0x1001('0x11')](_0x4ea71c[_0x1001('0x4c')][_0x1001('0x29')]('EditorAnnotations'));}),window[_0x1001('0x25')](_0x1001('0x4d'),this[_0x1001('0x13')]),this[_0x1001('0x7')]();}[_0x1001('0x35')](_0x102e65){if(_0x102e65===this[_0x1001('0x9')])return;const _0x43f12a=this[_0x1001('0x23')][_0x1001('0x4c')][_0x1001('0x29')](_0x1001('0x27'));if(_0x43f12a[_0x1001('0x0')]({'blurredAnnotation':this[_0x1001('0x9')],'activatedAnnotation':_0x102e65,'disableAnimationOnActivatedAnnotation':!0x0}),_0x102e65)_0x43f12a[_0x1001('0x3')](_0x102e65)?this[_0x1001('0x3a')](_0x102e65):this['_hideBalloon']();else this[_0x1001('0x41')]();this[_0x1001('0x9')]=_0x102e65;}[_0x1001('0x1c')](){if(!this[_0x1001('0x4f')])throw new _0x2c2159(_0x1001('0x19'),this);this['setActiveAnnotation'](null);const _0x438c34=this[_0x1001('0x23')][_0x1001('0x4c')][_0x1001('0x29')](_0x1001('0x27'));this['_hideBalloon'](),Array[_0x1001('0x18')](this[_0x1001('0x1f')]['values'](),_0x2fc016=>_0x2fc016[_0x1001('0xd')]()),this[_0x1001('0x1f')][_0x1001('0x58')](),_0x438c34['_detachFromContainer'](this[_0x1001('0x3e')]),this[_0x1001('0xb')](),this[_0x1001('0x44')][_0x1001('0xb')](),this['stopListening'](this[_0x1001('0x23')][_0x1001('0xa')]);for(const _0x30c08b of Array['from'](this['_editorAnnotations']))this[_0x1001('0x11')](_0x30c08b);window['removeEventListener'](_0x1001('0x4d'),this[_0x1001('0x13')]),this['_refreshPositioningDebounced'][_0x1001('0x54')](),this[_0x1001('0x2d')]=[],this[_0x1001('0x4f')]=!0x1,this[_0x1001('0x3e')]=null;}[_0x1001('0xd')](){this['isAttached']&&this[_0x1001('0x1c')](),this[_0x1001('0xe')]['detachFromDom']();}['_integrateWithEditorAnnotations'](_0xcc146a){const _0x1cd578=_0xcc146a[_0x1001('0x4c')][_0x1001('0x29')](_0x1001('0x8')),_0x16a608=this[_0x1001('0x23')]['plugins'][_0x1001('0x29')](_0x1e5fac),_0x288337=this[_0x1001('0x3e')],_0x101f07=this['balloonPanelView'],_0xfa6d60=()=>{const _0x558414=_0x1cd578[_0x1001('0x34')]({'activeAnnotation':this[_0x1001('0x9')],'annotations':this[_0x1001('0x3e')]});this['_setSelectedAnnotations'](_0x558414),this[_0x1001('0x35')](_0x558414[0x0]||null);};this['listenTo'](_0x1cd578,_0x1001('0x0'),_0xfa6d60),this['listenTo'](_0x1cd578,_0x1001('0x16'),(_0x1c8672,{isAnnotationTracked:_0x1699fa})=>{this[_0x1001('0x9')]&&_0x1699fa(this[_0x1001('0x9')])&&(this[_0x1001('0x49')]([]),this[_0x1001('0x35')](null));}),this['listenTo'](_0x1cd578,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x288337,_0x1001('0x16'),_0x2c3cb7=>{_0x1cd578[_0x1001('0x12')]()&&_0x2c3cb7['stop']();},{'priority':_0x1001('0x4')}),this[_0x1001('0x44')][_0x1001('0x55')](document,'mousedown',(_0x3c6d56,_0x1a21b5)=>{const _0x22a793=_0x1a21b5[_0x1001('0x31')];_0x101f07[_0x1001('0x40')]&&_0x101f07['element'][_0x1001('0x22')](_0x22a793)||_0x16a608[_0x1001('0x43')]['element'][_0x1001('0x22')](_0x22a793)||this[_0x1001('0x9')]&&_0x1cd578[_0x1001('0x12')]()&&(_0xfa6d60(),_0x3c6d56[_0x1001('0x6')]=!0x0);},{'priority':_0x1001('0x4')}),this[_0x1001('0x26')][_0x1001('0x2b')](_0x1cd578);}['_destroyEditorAnnotationsIntegration'](_0x33c3da){_0x33c3da&&(this[_0x1001('0xb')](_0x33c3da),this[_0x1001('0x26')]['remove'](_0x33c3da));}[_0x1001('0x49')](_0x4fae9f){for(const _0x55f827 of this[_0x1001('0x2d')])_0x4fae9f[_0x1001('0x17')](_0x55f827)||this['_manuallyClosedAnnotationViews'][_0x1001('0x33')](_0x55f827[_0x1001('0x43')]);this['_selectedAnnotations']=_0x4fae9f;}[_0x1001('0x7')](){const _0x3759d9=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x3759d9[_0x1001('0x40')]&&this[_0x1001('0x48')]();}[_0x1001('0x3a')](_0xd6342c){if(this[_0x1001('0xc')]['has'](_0xd6342c[_0x1001('0x43')]))return;const _0x3f1513=this[_0x1001('0x20')][_0x1001('0x2e')]['first'];_0x3f1513!==_0xd6342c[_0x1001('0x43')]?(_0x3f1513&&this['_detachListeners'](_0x3f1513),this['_attachListeners'](_0xd6342c[_0x1001('0x43')]),this[_0x1001('0x20')][_0x1001('0x2e')][_0x1001('0x58')](),this[_0x1001('0x20')][_0x1001('0x2e')]['add'](_0xd6342c[_0x1001('0x43')]),this['_updateBalloonPosition']()):this[_0x1001('0x48')]();}['_updateBalloonPosition'](){const _0x1503b2=this['balloonPanelView'][_0x1001('0x2e')]['first'],_0x49fb7c=this[_0x1001('0x3e')][_0x1001('0x53')](_0x1503b2);if(!this['_annotationToNarrowView'][_0x1001('0x47')](_0x49fb7c))return;const _0x57c661=this[_0x1001('0x1f')][_0x1001('0x29')](_0x49fb7c)[_0x1001('0x30')],_0x3545b6=function(){const _0x4bd4d5=_0x4a924c[_0x1001('0x1b')];return[_0x4bd4d5[_0x1001('0x3b')],_0x4bd4d5[_0x1001('0x21')],_0x4bd4d5[_0x1001('0x42')],_0x4bd4d5[_0x1001('0x5')],_0x4bd4d5[_0x1001('0x10')],_0x4bd4d5[_0x1001('0x4a')]];}();this['balloonPanelView'][_0x1001('0x24')]({'target':_0x57c661,'positions':_0x3545b6});}[_0x1001('0x41')](){const _0x7fda85=this[_0x1001('0x20')],_0x13159a=_0x7fda85[_0x1001('0x2e')]['first'];_0x13159a&&(this['_detachListeners'](_0x13159a),_0x7fda85[_0x1001('0x52')](),_0x7fda85[_0x1001('0x2e')]['clear']());}['_attachListeners'](_0x322b09){this[_0x1001('0x55')](_0x322b09,_0x1001('0x1'),()=>this['_updateBalloonPosition']()),this[_0x1001('0x55')](_0x322b09,'Esc',(_0x503f1d,_0x33a168)=>{this['_manuallyClosedAnnotationViews'][_0x1001('0x2b')](_0x322b09),this['_hideBalloon'](),_0x33a168();});}[_0x1001('0x38')](_0x21b4e7){this['stopListening'](_0x21b4e7);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5326=['_setItemTop','_alignBeforeItem','bottom','isActive','view','element','_annotations','locale','listenTo','pluginName','class','container','list','render','refresh','change:targetRect','sidebar-setcontainer-invalid-element','sidebar-attachtocontainer-missing-container','_getTargetTop','change:top','_activeAnnotation','_annotationToSidebarItemView','max','_lastItem','delete','set','sidebar.container','add','_sidebarItemViewToAnnotation','_updateLastItem','getSidebarItemView','define','_getItemBefore','destroy','targetRect','last','target','stopListening','_spaceBetweenItems','bind','isAnimationDisabled','_getMaxAvailableTop','clear','content','remove','context','_detachFromContainer','_alignToTargetRect','sidebar.preventScrollOutOfView','get','_attachToContainer','getIndex','_createSidebarView','appendChild','_destroySidebarItemView','length','updateHeight','addAnnotation','Sidebar','change:bottom','top','_targetTop','setContainer','_alignAfterItem','unbind','minHeight','rearrange','config'];(function(_0x46207d,_0x532629){const _0x37d201=function(_0x25c24c){while(--_0x25c24c){_0x46207d['push'](_0x46207d['shift']());}};_0x37d201(++_0x532629);}(_0x5326,0x18a));const _0x37d2=function(_0x46207d,_0x532629){_0x46207d=_0x46207d-0x0;let _0x37d201=_0x5326[_0x46207d];return _0x37d201;};import{ContextPlugin as _0x208e37}from'ckeditor5/src/core';import _0x4683bb from'./view/sidebarview';import _0x37d975 from'./view/sidebaritemview';import{Rect as _0x55cf78,CKEditorError as _0x599766}from'ckeditor5/src/utils';import{isElement as _0x4ad290,throttle as _0x254be6}from'lodash-es';export default class b extends _0x208e37{static get[_0x37d2('0x17')](){return _0x37d2('0x4');}constructor(_0x56e398){super(_0x56e398),this[_0x37d2('0x27')](_0x37d2('0x25')),this[_0x37d2('0x12')]=this[_0x37d2('0x42')](),this[_0x37d2('0x27')](_0x37d2('0x19'),null),this[_0x37d2('0x34')]=0x19,this[_0x37d2('0x2a')]=new Map(),this[_0x37d2('0x23')]=new Map(),this['context']['config'][_0x37d2('0x2d')](_0x37d2('0x3e'),!0x1),this[_0x37d2('0x14')]=null,this[_0x37d2('0x22')]=null;}['init'](){const _0x46d141=this[_0x37d2('0x3b')][_0x37d2('0xd')][_0x37d2('0x3f')](_0x37d2('0x28'));_0x46d141&&this[_0x37d2('0x8')](_0x46d141);}[_0x37d2('0x8')](_0x3ca4cb){if(!_0x4ad290(_0x3ca4cb))throw new _0x599766(_0x37d2('0x1e'));this[_0x37d2('0x19')]=_0x3ca4cb;}[_0x37d2('0x40')]({viewClass:_0x2e4f19='',spaceBetweenItems:_0x4ade53=0x19}={}){if(!_0x4ad290(this['container']))throw new _0x599766(_0x37d2('0x1f'),this);this[_0x37d2('0x19')][_0x37d2('0x43')](this[_0x37d2('0x12')]['element']),this['view']['class']=_0x2e4f19,this['_spaceBetweenItems']=_0x4ade53;}[_0x37d2('0xc')]({removedAnnotation:_0x7062b6,previousAnnotation:_0x1047cf,nextAnnotation:_0x9e7bd8}){const _0x3bc7ec=this[_0x37d2('0x2c')](_0x7062b6);this['view'][_0x37d2('0x1a')]['remove'](_0x3bc7ec),this['_destroySidebarItemView'](_0x7062b6),_0x1047cf&&this['_alignToTargetRect'](this[_0x37d2('0x2c')](_0x1047cf)),_0x9e7bd8&&this[_0x37d2('0x3d')](this[_0x37d2('0x2c')](_0x9e7bd8)),this[_0x37d2('0x2b')]();}[_0x37d2('0x1c')]({blurredAnnotation:_0xd8dd03,activatedAnnotation:_0x2ced9c,disableAnimationOnActivatedAnnotation:_0x42cfc3}){if(this[_0x37d2('0x22')]=_0x2ced9c,_0xd8dd03){_0xd8dd03[_0x37d2('0x11')]=!0x1;const _0x25c137=this[_0x37d2('0x2c')](_0xd8dd03);_0x25c137&&_0x42cfc3&&(_0x25c137[_0x37d2('0x36')]=!0x1);}if(_0x2ced9c){const _0x1fa299=this[_0x37d2('0x2c')](_0x2ced9c);_0x1fa299&&(_0x2ced9c[_0x37d2('0x11')]=!0x0,_0x42cfc3&&(_0x1fa299[_0x37d2('0x36')]=!0x0,_0x1fa299['top']+=0x1),this[_0x37d2('0x3d')](_0x1fa299));}}[_0x37d2('0x3c')](_0x38c9e4){this['stopListening'](),this['view'][_0x37d2('0x13')][_0x37d2('0x3a')]();for(const _0x336bfa of _0x38c9e4)this[_0x37d2('0x0')](_0x336bfa);this[_0x37d2('0x12')]['list'][_0x37d2('0x38')](),this['view'][_0x37d2('0x18')]='',this[_0x37d2('0x25')]=null;}[_0x37d2('0x3')](_0x2b93c6,_0x24dca4){_0x24dca4||(_0x24dca4=_0x2b93c6[_0x37d2('0x12')]);const _0x27ef6d=new _0x37d975(this[_0x37d2('0x3b')][_0x37d2('0x15')]);this[_0x37d2('0x2a')][_0x37d2('0x27')](_0x27ef6d,_0x2b93c6),this[_0x37d2('0x23')][_0x37d2('0x27')](_0x2b93c6,_0x27ef6d),_0x27ef6d[_0x37d2('0x39')]['add'](_0x24dca4),this[_0x37d2('0x3d')](_0x27ef6d),this[_0x37d2('0x16')](_0x2b93c6[_0x37d2('0x12')],_0x37d2('0x1d'),()=>{const _0x23b5c6=this[_0x37d2('0x20')](_0x27ef6d);_0x27ef6d[_0x37d2('0x7')]!=_0x23b5c6&&(_0x27ef6d[_0x37d2('0x7')]=_0x23b5c6,this['_setItemTop'](_0x27ef6d,_0x23b5c6));}),this[_0x37d2('0x16')](_0x27ef6d,_0x37d2('0x21'),_0x254be6(()=>{if(!_0x27ef6d[_0x37d2('0x39')][_0x37d2('0x1')])return;const _0x20c15a=this[_0x37d2('0x2e')](_0x27ef6d);if(!_0x20c15a)return;const _0x277755=this[_0x37d2('0x2a')][_0x37d2('0x3f')](_0x20c15a),_0xd096a4=this[_0x37d2('0x22')];_0xd096a4&&_0xd096a4===_0x277755?this[_0x37d2('0x9')](_0x20c15a,_0x27ef6d):this['_alignBeforeItem'](_0x27ef6d,_0x20c15a);},0xa,{'leading':!0x1})),this['listenTo'](_0x27ef6d,_0x37d2('0x5'),_0x254be6(()=>{if(!_0x27ef6d[_0x37d2('0x39')][_0x37d2('0x1')])return;const _0x867dd3=this['_getItemAfter'](_0x27ef6d);if(!_0x867dd3)return;const _0x17460d=this[_0x37d2('0x2a')][_0x37d2('0x3f')](_0x867dd3),_0x5dd571=this[_0x37d2('0x3b')][_0x37d2('0xd')][_0x37d2('0x3f')](_0x37d2('0x3e')),_0x57ac25=this[_0x37d2('0x22')];_0x57ac25&&_0x57ac25===_0x17460d&&_0x5dd571?(this[_0x37d2('0xf')](_0x867dd3,_0x27ef6d),this[_0x37d2('0x9')](_0x27ef6d,_0x867dd3)):_0x57ac25&&_0x57ac25===_0x17460d?this['_alignBeforeItem'](_0x867dd3,_0x27ef6d):this[_0x37d2('0x9')](_0x27ef6d,_0x867dd3);},0xa,{'leading':!0x1}));const _0x5a0e22=this[_0x37d2('0x2e')](_0x27ef6d);if(_0x5a0e22)this[_0x37d2('0x9')](_0x5a0e22,_0x27ef6d)||this[_0x37d2('0x3d')](_0x27ef6d);else this[_0x37d2('0x3d')](_0x27ef6d);return this[_0x37d2('0x2b')](),this[_0x37d2('0x12')]['list'][_0x37d2('0x29')](_0x27ef6d),_0x27ef6d;}['getSidebarItemView'](_0x5e7047){return this[_0x37d2('0x23')][_0x37d2('0x3f')](_0x5e7047);}[_0x37d2('0x2f')](){this[_0x37d2('0x12')][_0x37d2('0x2f')]();}[_0x37d2('0x0')](_0x50ff27){const _0x532cbe=this[_0x37d2('0x2c')](_0x50ff27);this[_0x37d2('0x33')](_0x532cbe),this['stopListening'](_0x50ff27[_0x37d2('0x12')]),_0x532cbe[_0x37d2('0x2f')](),this[_0x37d2('0x23')][_0x37d2('0x26')](_0x50ff27),this[_0x37d2('0x2a')][_0x37d2('0x26')](_0x532cbe);}[_0x37d2('0x42')](){const _0x185312=new _0x4683bb(this['context'][_0x37d2('0x15')]);return _0x185312[_0x37d2('0x1b')](),this['on']('change:_lastItem',(_0x5857d4,_0x286861,_0x58deee,_0x1ea0ad)=>{_0x1ea0ad&&_0x185312[_0x37d2('0xa')](_0x37d2('0xb')),_0x58deee?_0x185312[_0x37d2('0x35')]('minHeight')['to'](_0x58deee,_0x37d2('0x10')):_0x185312[_0x37d2('0xb')]=null;}),_0x185312;}[_0x37d2('0x2b')](){this['_lastItem']=this['getSidebarItemView'](this[_0x37d2('0x14')][_0x37d2('0x31')]);}['_getItemBefore'](_0x14b069){const _0x521ecc=this[_0x37d2('0x2a')][_0x37d2('0x3f')](_0x14b069),_0x3a5703=this[_0x37d2('0x14')]['get'](this[_0x37d2('0x14')][_0x37d2('0x41')](_0x521ecc)-0x1);return _0x3a5703&&this['getSidebarItemView'](_0x3a5703);}['_getItemAfter'](_0x4919c5){const _0x70107d=this[_0x37d2('0x2a')]['get'](_0x4919c5),_0xb820a2=this['_annotations'][_0x37d2('0x3f')](this[_0x37d2('0x14')][_0x37d2('0x41')](_0x70107d)+0x1);return _0xb820a2&&this[_0x37d2('0x2c')](_0xb820a2);}[_0x37d2('0xf')](_0x3dd0b7,_0x3116fe){_0x3dd0b7['updateHeight']();const _0x3d4e6c=H(_0x3116fe[_0x37d2('0x10')]+this[_0x37d2('0x34')],_0x3dd0b7[_0x37d2('0x6')]);return!!_0x3d4e6c&&(this[_0x37d2('0xe')](_0x3116fe,_0x3116fe[_0x37d2('0x6')]-_0x3d4e6c),!0x0);}[_0x37d2('0x9')](_0x53d0fb,_0x8aeffa){_0x53d0fb[_0x37d2('0x2')]();const _0x3c8e7f=H(_0x53d0fb[_0x37d2('0x10')]+this[_0x37d2('0x34')],_0x8aeffa['top']);return!!_0x3c8e7f&&(this['_setItemTop'](_0x8aeffa,_0x8aeffa['top']+_0x3c8e7f,!0x1),!0x0);}[_0x37d2('0x3d')](_0x459d96){const _0x2dffc9=this[_0x37d2('0x2a')][_0x37d2('0x3f')](_0x459d96);if(!_0x2dffc9||!_0x2dffc9[_0x37d2('0x32')])return;const _0x1e7b30=this[_0x37d2('0x20')](_0x459d96);this[_0x37d2('0xe')](_0x459d96,_0x1e7b30);}[_0x37d2('0x20')](_0x1e7d5f){const _0x1e6154=this[_0x37d2('0x2a')][_0x37d2('0x3f')](_0x1e7d5f);if(null===_0x1e6154[_0x37d2('0x30')])return 0x0;if(_0x1e6154[_0x37d2('0x32')]instanceof _0x55cf78)return _0x1e6154[_0x37d2('0x30')][_0x37d2('0x6')];{const _0x58d4c4=new _0x55cf78(this[_0x37d2('0x12')]['element'])[_0x37d2('0x6')];return _0x1e6154['targetRect']['top']-_0x58d4c4;}}[_0x37d2('0xe')](_0x2fc474,_0x7384fa,_0x3cda8a=this[_0x37d2('0x3b')]['config'][_0x37d2('0x3f')](_0x37d2('0x3e'))){_0x3cda8a&&(_0x7384fa=Math[_0x37d2('0x24')](_0x7384fa,this['_getMaxAvailableTop'](_0x2fc474))),_0x2fc474[_0x37d2('0x6')]=_0x7384fa;}[_0x37d2('0x37')](_0x5e3cfc){let _0x391865=this[_0x37d2('0x2e')](_0x5e3cfc),_0x24e948=0x0;for(;_0x391865;)_0x391865[_0x37d2('0x2')](),_0x24e948+=this[_0x37d2('0x34')]+_0x391865['height'],_0x391865=this['_getItemBefore'](_0x391865);return _0x24e948;}}function H(_0x10742f,_0x26e95a){return Math[_0x37d2('0x24')](_0x10742f-_0x26e95a,0x0);}
23
+ const _0x30b5=['change:bottom','_annotationToSidebarItemView','last','_updateLastItem','pluginName','remove','height','sidebar.container','minHeight','stopListening','targetRect','delete','_detachFromContainer','_sidebarItemViewToAnnotation','change:targetRect','setContainer','_alignToTargetRect','_destroySidebarItemView','_createSidebarView','sidebar.preventScrollOutOfView','add','_recalculateBuffer','_lastItem','_annotations','getSidebarItemView','change:_lastItem','bind','_alignAfterItem','_recalculate','_getItemAfter','view','list','isAnimationDisabled','set','Sidebar','_alignBeforeItem','content','unbind','listenTo','top','_alignForBottomChange','_getTargetTop','object','clear','nodeType','isActive','sidebar-setcontainer-invalid-element','sidebar-attachtocontainer-missing-container','length','target','push','container','element','_getItemBefore','bottom','define','rearrange','_spaceBetweenItems','_activeAnnotation','_getMaxAvailableTop','appendChild','class','locale','get','refresh','context','destroy','config','_setItemTop','updateHeight'];(function(_0x2a37e7,_0x30b524){const _0x594ae3=function(_0x9e651e){while(--_0x9e651e){_0x2a37e7['push'](_0x2a37e7['shift']());}};_0x594ae3(++_0x30b524);}(_0x30b5,0x115));const _0x594a=function(_0x2a37e7,_0x30b524){_0x2a37e7=_0x2a37e7-0x0;let _0x594ae3=_0x30b5[_0x2a37e7];return _0x594ae3;};import{ContextPlugin as _0x1c19ee}from'ckeditor5/src/core';import _0x2d10b4 from'./view/sidebarview';import _0x432db1 from'./view/sidebaritemview';import{Rect as _0x51b9d2,CKEditorError as _0xebb0d6}from'ckeditor5/src/utils';export default class b extends _0x1c19ee{static get[_0x594a('0x7')](){return _0x594a('0x25');}constructor(_0x9c8568){super(_0x9c8568),this[_0x594a('0x24')](_0x594a('0x19')),this[_0x594a('0x21')]=this[_0x594a('0x15')](),this['set'](_0x594a('0x36'),null),this[_0x594a('0x3c')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this['_annotationToSidebarItemView']=new Map(),this[_0x594a('0x44')][_0x594a('0x0')][_0x594a('0x3a')](_0x594a('0x16'),!0x1),this[_0x594a('0x1a')]=null,this[_0x594a('0x3d')]=null,this[_0x594a('0x18')]=[];}['init'](){const _0x2cfc3d=this['context'][_0x594a('0x0')][_0x594a('0x42')](_0x594a('0xa'));_0x2cfc3d&&this[_0x594a('0x12')](_0x2cfc3d);}[_0x594a('0x12')](_0x28fd46){if(!p(_0x28fd46))throw new _0xebb0d6(_0x594a('0x31'));this[_0x594a('0x36')]=_0x28fd46;}['_attachToContainer']({viewClass:_0x2b0613='',spaceBetweenItems:_0x1313b2=0x19}={}){if(!p(this[_0x594a('0x36')]))throw new _0xebb0d6(_0x594a('0x32'),this);this[_0x594a('0x36')][_0x594a('0x3f')](this[_0x594a('0x21')]['element']),this[_0x594a('0x21')][_0x594a('0x40')]=_0x2b0613,this[_0x594a('0x3c')]=_0x1313b2;}[_0x594a('0x3b')]({removedAnnotation:_0xa111b8,previousAnnotation:_0x4a433f,nextAnnotation:_0x14d92f}){const _0x2e9cf7=this['getSidebarItemView'](_0xa111b8);this[_0x594a('0x21')][_0x594a('0x22')][_0x594a('0x8')](_0x2e9cf7),this[_0x594a('0x14')](_0xa111b8),_0x4a433f&&this[_0x594a('0x13')](this[_0x594a('0x1b')](_0x4a433f)),_0x14d92f&&this[_0x594a('0x13')](this[_0x594a('0x1b')](_0x14d92f)),this[_0x594a('0x6')]();}[_0x594a('0x43')]({blurredAnnotation:_0x497668,activatedAnnotation:_0x4d7d9c,disableAnimationOnActivatedAnnotation:_0x43a227}){if(this['_activeAnnotation']=_0x4d7d9c,_0x497668){_0x497668[_0x594a('0x30')]=!0x1;const _0x5cd746=this[_0x594a('0x1b')](_0x497668);_0x5cd746&&_0x43a227&&(_0x5cd746['isAnimationDisabled']=!0x1);}if(_0x4d7d9c){const _0x3c93b6=this[_0x594a('0x1b')](_0x4d7d9c);_0x3c93b6&&(_0x4d7d9c[_0x594a('0x30')]=!0x0,_0x43a227&&(_0x3c93b6[_0x594a('0x23')]=!0x0,_0x3c93b6[_0x594a('0x2a')]+=0x1),this['_alignToTargetRect'](_0x3c93b6));}}[_0x594a('0xf')](_0x2ea402){this[_0x594a('0xc')](),this[_0x594a('0x21')][_0x594a('0x37')][_0x594a('0x8')]();for(const _0x19f668 of _0x2ea402)this[_0x594a('0x14')](_0x19f668);this[_0x594a('0x21')][_0x594a('0x22')][_0x594a('0x2e')](),this[_0x594a('0x21')][_0x594a('0x40')]='',this[_0x594a('0x19')]=null;}['addAnnotation'](_0x4cd666,_0x50b967){_0x50b967||(_0x50b967=_0x4cd666[_0x594a('0x21')]);const _0x2fea16=new _0x432db1(this[_0x594a('0x44')][_0x594a('0x41')]);this[_0x594a('0x10')][_0x594a('0x24')](_0x2fea16,_0x4cd666),this['_annotationToSidebarItemView'][_0x594a('0x24')](_0x4cd666,_0x2fea16),_0x2fea16['content'][_0x594a('0x17')](_0x50b967),this[_0x594a('0x29')](_0x4cd666[_0x594a('0x21')],_0x594a('0x11'),(_0x92ec15,_0x2c2c79,_0x16340d)=>{const _0x269218=this[_0x594a('0x2c')](_0x4cd666,_0x16340d);_0x2fea16['_targetTop']!=_0x269218&&(_0x2fea16['_targetTop']=_0x269218,this['_setItemTop'](_0x2fea16,_0x269218));}),this[_0x594a('0x29')](_0x2fea16,'change:top',()=>{this['_recalculate'](_0x2fea16,'top');}),this['listenTo'](_0x2fea16,_0x594a('0x3'),()=>{this[_0x594a('0x1f')](_0x2fea16,_0x594a('0x39'));}),this[_0x594a('0x13')](_0x2fea16);const _0x5bd1e8=this['_getItemBefore'](_0x2fea16);if(_0x5bd1e8)this[_0x594a('0x1e')](_0x5bd1e8,_0x2fea16)||this[_0x594a('0x13')](_0x2fea16);else this[_0x594a('0x13')](_0x2fea16);return this[_0x594a('0x6')](),this[_0x594a('0x21')][_0x594a('0x22')][_0x594a('0x17')](_0x2fea16),_0x2fea16;}['_alignForTopChange'](_0x31cb61){if(!_0x31cb61[_0x594a('0x27')][_0x594a('0x33')])return;const _0x455112=this['_getItemBefore'](_0x31cb61);if(!_0x455112)return;const _0x3efe2b=this[_0x594a('0x10')]['get'](_0x455112),_0x537b51=this['_activeAnnotation'];_0x537b51&&_0x537b51===_0x3efe2b?this[_0x594a('0x1e')](_0x455112,_0x31cb61):this['_alignBeforeItem'](_0x31cb61,_0x455112);}['_alignForBottomChange'](_0x320b74){if(!_0x320b74[_0x594a('0x27')][_0x594a('0x33')])return;const _0x1d8419=this[_0x594a('0x20')](_0x320b74);if(!_0x1d8419)return;const _0xfa9adf=this['_sidebarItemViewToAnnotation']['get'](_0x1d8419),_0x1ef964=this[_0x594a('0x44')]['config'][_0x594a('0x42')](_0x594a('0x16')),_0x1c4951=this['_activeAnnotation'];_0x1c4951&&_0x1c4951===_0xfa9adf&&_0x1ef964?(this['_alignBeforeItem'](_0x1d8419,_0x320b74),this[_0x594a('0x1e')](_0x320b74,_0x1d8419)):_0x1c4951&&_0x1c4951===_0xfa9adf?this[_0x594a('0x26')](_0x1d8419,_0x320b74):this[_0x594a('0x1e')](_0x320b74,_0x1d8419);}[_0x594a('0x1f')](_0x4ceb3f,_0x2d301d){0x0===this[_0x594a('0x18')][_0x594a('0x33')]&&setTimeout(()=>{for(const {sidebarItemView:_0x401913,changedProp:_0x56e0d5}of this[_0x594a('0x18')])_0x594a('0x2a')===_0x56e0d5?this['_alignForTopChange'](_0x401913):this[_0x594a('0x2b')](_0x401913);this[_0x594a('0x18')]=[];},0xa),this['_recalculateBuffer'][_0x594a('0x35')]({'sidebarItemView':_0x4ceb3f,'changedProp':_0x2d301d});}[_0x594a('0x1b')](_0x4f7e07){return this['_annotationToSidebarItemView']['get'](_0x4f7e07);}['destroy'](){this['view'][_0x594a('0x45')]();}[_0x594a('0x14')](_0x4967ab){const _0x48aa87=this['getSidebarItemView'](_0x4967ab);this['stopListening'](_0x48aa87),this[_0x594a('0xc')](_0x4967ab[_0x594a('0x21')]),_0x48aa87[_0x594a('0x45')](),this[_0x594a('0x4')][_0x594a('0xe')](_0x4967ab),this[_0x594a('0x10')]['delete'](_0x48aa87);}[_0x594a('0x15')](){const _0x13eb42=new _0x2d10b4(this[_0x594a('0x44')][_0x594a('0x41')]);return _0x13eb42['render'](),this['on'](_0x594a('0x1c'),(_0xce955,_0x1630e8,_0x58889d,_0x13bddb)=>{_0x13bddb&&_0x13eb42[_0x594a('0x28')]('minHeight'),_0x58889d?_0x13eb42[_0x594a('0x1d')](_0x594a('0xb'))['to'](_0x58889d,_0x594a('0x39')):_0x13eb42['minHeight']=null;}),_0x13eb42;}[_0x594a('0x6')](){this[_0x594a('0x19')]=this[_0x594a('0x1b')](this[_0x594a('0x1a')][_0x594a('0x5')]);}[_0x594a('0x38')](_0x275841){const _0x382665=this['_sidebarItemViewToAnnotation'][_0x594a('0x42')](_0x275841),_0x12ae3e=this['_annotations'][_0x594a('0x42')](this[_0x594a('0x1a')]['getIndex'](_0x382665)-0x1);return _0x12ae3e&&this['getSidebarItemView'](_0x12ae3e);}[_0x594a('0x20')](_0x1b3f73){const _0x5f3090=this['_sidebarItemViewToAnnotation'][_0x594a('0x42')](_0x1b3f73),_0x8ccf1f=this[_0x594a('0x1a')]['get'](this[_0x594a('0x1a')]['getIndex'](_0x5f3090)+0x1);return _0x8ccf1f&&this[_0x594a('0x1b')](_0x8ccf1f);}['_alignBeforeItem'](_0x1fd81e,_0xb6cc8f){_0x1fd81e[_0x594a('0x2')]();const _0x3b72ba=C(_0xb6cc8f[_0x594a('0x39')]+this[_0x594a('0x3c')],_0x1fd81e[_0x594a('0x2a')]);return!!_0x3b72ba&&(this['_setItemTop'](_0xb6cc8f,_0xb6cc8f[_0x594a('0x2a')]-_0x3b72ba),!0x0);}[_0x594a('0x1e')](_0x371813,_0x30f68a){_0x371813[_0x594a('0x2')]();const _0x24dfbd=C(_0x371813[_0x594a('0x39')]+this[_0x594a('0x3c')],_0x30f68a['top']);return!!_0x24dfbd&&(this[_0x594a('0x1')](_0x30f68a,_0x30f68a[_0x594a('0x2a')]+_0x24dfbd,!0x1),!0x0);}['_alignToTargetRect'](_0x5df305){const _0x3890a5=this[_0x594a('0x10')][_0x594a('0x42')](_0x5df305);if(!_0x3890a5||!_0x3890a5[_0x594a('0x34')])return;const _0x30e3d0=this[_0x594a('0x2c')](_0x3890a5,_0x3890a5[_0x594a('0xd')]);this[_0x594a('0x1')](_0x5df305,_0x30e3d0);}[_0x594a('0x2c')](_0x43c1b6,_0x3e2759){if(null===_0x3e2759)return 0x0;if(_0x43c1b6['target']instanceof _0x51b9d2)return _0x3e2759[_0x594a('0x2a')];{const _0x5a18b8=new _0x51b9d2(this[_0x594a('0x21')][_0x594a('0x37')])[_0x594a('0x2a')];return _0x3e2759[_0x594a('0x2a')]-_0x5a18b8;}}[_0x594a('0x1')](_0x142f5f,_0x2928be,_0x5af8cb=this[_0x594a('0x44')][_0x594a('0x0')][_0x594a('0x42')](_0x594a('0x16'))){_0x5af8cb&&(_0x2928be=Math['max'](_0x2928be,this['_getMaxAvailableTop'](_0x142f5f))),_0x142f5f[_0x594a('0x2a')]=_0x2928be;}[_0x594a('0x3e')](_0x2ced8b){let _0x4ae341=this[_0x594a('0x38')](_0x2ced8b),_0x2f8d08=0x0;for(;_0x4ae341;)_0x4ae341['updateHeight'](),_0x2f8d08+=this['_spaceBetweenItems']+_0x4ae341[_0x594a('0x9')],_0x4ae341=this[_0x594a('0x38')](_0x4ae341);return _0x2f8d08;}}function C(_0xf7022,_0x52250d){return Math['max'](_0xf7022-_0x52250d,0x0);}function p(_0x1f337a){return null!==_0x1f337a&&_0x594a('0x2d')==typeof _0x1f337a&&0x1===_0x1f337a[_0x594a('0x2f')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x128a=['span','annotationType','setTemplate','isDirty','icon','add','counterView','ck-annotation-counter__badge--edit-mode','set','bindTemplate','children','...','_badge','bind','ck-annotation-counter__badge','extendTemplate','number','ck-annotation-counter'];(function(_0x146c94,_0x128ab9){const _0x25717e=function(_0x570d8e){while(--_0x570d8e){_0x146c94['push'](_0x146c94['shift']());}};_0x25717e(++_0x128ab9);}(_0x128a,0xb9));const _0x2571=function(_0x146c94,_0x128ab9){_0x146c94=_0x146c94-0x0;let _0x25717e=_0x128a[_0x146c94];return _0x25717e;};import{ButtonView as _0x41a802,View as _0x136bb1}from'ckeditor5/src/ui';import _0x2366e7 from'../../../theme/icons/add-comment.svg';export default class B extends _0x41a802{constructor(_0x4a674d){super(_0x4a674d);const _0x560b1b=this[_0x2571('0x4')];this[_0x2571('0x3')]('isDirty',!0x1),this['set'](_0x2571('0xb'),0x0),this[_0x2571('0x8')](_0x2571('0x7'))['to'](this,'isDirty',this,'number',(_0x1417ea,_0x5d506e)=>_0x1417ea?_0x2571('0x6'):_0x5d506e),this['set'](_0x2571('0xe'),''),this[_0x2571('0x11')]=_0x2366e7,this[_0x2571('0xa')]({'attributes':{'class':[_0x2571('0xc')]}}),this[_0x2571('0x1')]=new _0x136bb1(),this['counterView'][_0x2571('0xf')]({'tag':_0x2571('0xd'),'attributes':{'class':[_0x2571('0x9'),_0x560b1b['to']('annotationType',_0x59f746=>'ck-annotation-counter__badge--'+_0x59f746),_0x560b1b['if'](_0x2571('0x10'),_0x2571('0x2'))]},'children':[{'text':_0x560b1b['to'](_0x2571('0x7'))}]}),this[_0x2571('0x5')][_0x2571('0x0')](this['counterView']);}}
23
+ const _0x3096=['add','ck-annotation-counter__badge--','bind','extendTemplate','bindTemplate','span','setTemplate','_badge','isDirty','set','number','icon','counterView','ck-annotation-counter__badge','ck-annotation-counter__badge--edit-mode'];(function(_0x366b8f,_0x3096d6){const _0x1240f9=function(_0x46773f){while(--_0x46773f){_0x366b8f['push'](_0x366b8f['shift']());}};_0x1240f9(++_0x3096d6);}(_0x3096,0x148));const _0x1240=function(_0x366b8f,_0x3096d6){_0x366b8f=_0x366b8f-0x0;let _0x1240f9=_0x3096[_0x366b8f];return _0x1240f9;};import{ButtonView as _0x2552ee,View as _0x2fc69c}from'ckeditor5/src/ui';import _0x2ab999 from'../../../theme/icons/add-comment.svg';export default class B extends _0x2552ee{constructor(_0x353a54){super(_0x353a54);const _0x280ec3=this[_0x1240('0x6')];this[_0x1240('0xb')](_0x1240('0xa'),!0x1),this[_0x1240('0xb')](_0x1240('0xc'),0x0),this[_0x1240('0x4')](_0x1240('0x9'))['to'](this,_0x1240('0xa'),this,_0x1240('0xc'),(_0x5edcee,_0x25ed76)=>_0x5edcee?'...':_0x25ed76),this[_0x1240('0xb')]('annotationType',''),this[_0x1240('0xd')]=_0x2ab999,this[_0x1240('0x5')]({'attributes':{'class':['ck-annotation-counter']}}),this[_0x1240('0xe')]=new _0x2fc69c(),this[_0x1240('0xe')][_0x1240('0x8')]({'tag':_0x1240('0x7'),'attributes':{'class':[_0x1240('0x0'),_0x280ec3['to']('annotationType',_0x2e2411=>_0x1240('0x3')+_0x2e2411),_0x280ec3['if'](_0x1240('0xa'),_0x1240('0x1'))]},'children':[{'text':_0x280ec3['to'](_0x1240('0x9'))}]}),this['children'][_0x1240('0x2')](this[_0x1240('0xe')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x312d=['createCollection','targetRect','element','focus','clientHeight','div','isDirty','ck-rounded-corners','detach','add','set','ck-annotation-wrapper','content','length','bindTemplate','height','render','keystrokes','Esc','destroy','fire','attach','type','_updateHeight','isActive','focusTracker','_mutationObserver'];(function(_0x1fe922,_0x312d78){const _0x506528=function(_0x8253bb){while(--_0x8253bb){_0x1fe922['push'](_0x1fe922['shift']());}};_0x506528(++_0x312d78);}(_0x312d,0xea));const _0x5065=function(_0x1fe922,_0x312d78){_0x1fe922=_0x1fe922-0x0;let _0x506528=_0x312d[_0x1fe922];return _0x506528;};import{View as _0x1ba9e9}from'ckeditor5/src/ui';import{FocusTracker as _0x39034f,KeystrokeHandler as _0x18aeed,uid as _0x43495e}from'ckeditor5/src/utils';import _0x26fa64 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class v extends _0x1ba9e9{constructor(_0x29d37e,_0x2c1bdf){super(_0x29d37e),this['id']=_0x43495e(),this['focusTracker']=new _0x39034f(),this[_0x5065('0x1a')]=new _0x18aeed(),this[_0x5065('0x1a')]['set'](_0x5065('0x0'),(_0x123177,_0x4ece0f)=>this[_0x5065('0x2')]('Esc',_0x4ece0f)),this[_0x5065('0x13')](_0x5065('0xa'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set'](_0x5065('0x18'),0x0),this['set']('isActive',!0x1),this[_0x5065('0x13')](_0x5065('0xf'),!0x1),this[_0x5065('0x13')](_0x5065('0x16'),0x0),this[_0x5065('0x13')](_0x5065('0x4'),''),this[_0x5065('0x8')]=_0x26fa64(()=>this[_0x5065('0x5')]()),this[_0x5065('0x15')]=this[_0x5065('0x9')](),this[_0x5065('0x15')][_0x5065('0x12')](_0x2c1bdf),this['mainView']=_0x2c1bdf;const _0xed74d2=this[_0x5065('0x17')];this['setTemplate']({'tag':_0x5065('0xe'),'attributes':{'class':['ck',_0x5065('0x14'),_0x5065('0x10'),_0xed74d2['if'](_0x5065('0x6'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this[_0x5065('0x15')]});}['render'](){super[_0x5065('0x19')](),this['focusTracker'][_0x5065('0x12')](this[_0x5065('0xb')]),this[_0x5065('0x1a')]['listenTo'](this['element']),this[_0x5065('0x8')][_0x5065('0x3')](this['element']);}[_0x5065('0x1')](){this[_0x5065('0x15')]['clear'](),this[_0x5065('0x1a')][_0x5065('0x1')](),this[_0x5065('0x7')][_0x5065('0x1')](),this[_0x5065('0x8')][_0x5065('0x11')](),super['destroy']();}['focus'](){this[_0x5065('0xb')][_0x5065('0xc')]();}[_0x5065('0x5')](){const _0x204246=this['element'][_0x5065('0xd')];_0x204246&&(this['height']=_0x204246);}}
23
+ const _0x3bdd=['attach','ck-annotation-wrapper--active','height','mainView','targetRect','bindTemplate','div','isActive','type','content','clear','detach','element','destroy','set','clientHeight','Esc','createCollection','_updateHeight','keystrokes','focus','fire','ck-rounded-corners','render','focusTracker','ck-annotation-wrapper','_mutationObserver','add'];(function(_0x230359,_0x3bdd10){const _0x1bc8ac=function(_0x49ac11){while(--_0x49ac11){_0x230359['push'](_0x230359['shift']());}};_0x1bc8ac(++_0x3bdd10);}(_0x3bdd,0xf7));const _0x1bc8=function(_0x230359,_0x3bdd10){_0x230359=_0x230359-0x0;let _0x1bc8ac=_0x3bdd[_0x230359];return _0x1bc8ac;};import{View as _0x37e9d4}from'ckeditor5/src/ui';import{FocusTracker as _0x6a55a2,KeystrokeHandler as _0x7eff8d,uid as _0xcea191}from'ckeditor5/src/utils';import _0x5efc36 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class v extends _0x37e9d4{constructor(_0x5dc5dd,_0x478b50){super(_0x5dc5dd),this['id']=_0xcea191(),this[_0x1bc8('0x1')]=new _0x6a55a2(),this[_0x1bc8('0x18')]=new _0x7eff8d(),this['keystrokes'][_0x1bc8('0x13')](_0x1bc8('0x15'),(_0x2de979,_0x5c58c3)=>this[_0x1bc8('0x1a')](_0x1bc8('0x15'),_0x5c58c3)),this[_0x1bc8('0x13')](_0x1bc8('0x9'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x1bc8('0x13')](_0x1bc8('0x7'),0x0),this[_0x1bc8('0x13')](_0x1bc8('0xc'),!0x1),this[_0x1bc8('0x13')]('isDirty',!0x1),this[_0x1bc8('0x13')]('length',0x0),this['set'](_0x1bc8('0xd'),''),this[_0x1bc8('0x3')]=_0x5efc36(()=>this[_0x1bc8('0x17')]()),this['content']=this[_0x1bc8('0x16')](),this[_0x1bc8('0xe')][_0x1bc8('0x4')](_0x478b50),this[_0x1bc8('0x8')]=_0x478b50;const _0x5cd264=this[_0x1bc8('0xa')];this['setTemplate']({'tag':_0x1bc8('0xb'),'attributes':{'class':['ck',_0x1bc8('0x2'),_0x1bc8('0x1b'),_0x5cd264['if'](_0x1bc8('0xc'),_0x1bc8('0x6'))],'tabindex':-0x1},'children':this[_0x1bc8('0xe')]});}[_0x1bc8('0x0')](){super[_0x1bc8('0x0')](),this[_0x1bc8('0x1')][_0x1bc8('0x4')](this[_0x1bc8('0x11')]),this[_0x1bc8('0x18')]['listenTo'](this[_0x1bc8('0x11')]),this[_0x1bc8('0x3')][_0x1bc8('0x5')](this[_0x1bc8('0x11')]);}[_0x1bc8('0x12')](){this[_0x1bc8('0xe')][_0x1bc8('0xf')](),this[_0x1bc8('0x18')][_0x1bc8('0x12')](),this[_0x1bc8('0x1')]['destroy'](),this[_0x1bc8('0x3')][_0x1bc8('0x10')](),super[_0x1bc8('0x12')]();}[_0x1bc8('0x19')](){this[_0x1bc8('0x11')][_0x1bc8('0x19')]();}[_0x1bc8('0x17')](){const _0x222831=this[_0x1bc8('0x11')][_0x1bc8('0x14')];_0x222831&&(this[_0x1bc8('0x7')]=_0x222831);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x8ce5=['destroy','detach','createCollection','div','isAnimationDisabled','_targetTop','_mutationObserver','element','content','render','height','top','bindTemplate','updateHeight'];(function(_0x578122,_0x8ce57d){const _0x1f0aa9=function(_0xe02cb3){while(--_0xe02cb3){_0x578122['push'](_0x578122['shift']());}};_0x1f0aa9(++_0x8ce57d);}(_0x8ce5,0x1d3));const _0x1f0a=function(_0x578122,_0x8ce57d){_0x578122=_0x578122-0x0;let _0x1f0aa9=_0x8ce5[_0x578122];return _0x1f0aa9;};import{View as _0x35d645}from'ckeditor5/src/ui';import{toUnit as _0x43db09}from'ckeditor5/src/utils';import _0xb2aaa6 from'../../utils/createmutationobserver';const ft=_0x43db09('px');export default class C extends _0x35d645{constructor(_0x18fd09){super(_0x18fd09),this['set'](_0x1f0a('0x6')),this['set']('height',0x0),this['bind']('bottom')['to'](this,_0x1f0a('0x6'),this,_0x1f0a('0x5'),(_0x430026,_0x2ce723)=>(_0x430026||0x0)+_0x2ce723),this['set'](_0x1f0a('0xd'),!0x1),this[_0x1f0a('0x1')]=_0xb2aaa6(()=>this[_0x1f0a('0x8')]()),this[_0x1f0a('0x0')]=null,this['content']=this[_0x1f0a('0xb')]();const _0x4a20bc=this[_0x1f0a('0x7')];this['setTemplate']({'tag':_0x1f0a('0xc'),'attributes':{'class':['ck-sidebar-item',_0x4a20bc['to']('isAnimationDisabled',_0x5539db=>_0x5539db?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x4a20bc['to'](_0x1f0a('0x6'),ft)}},'children':this[_0x1f0a('0x3')]});}[_0x1f0a('0x4')](){super[_0x1f0a('0x4')](),this[_0x1f0a('0x1')]['attach'](this[_0x1f0a('0x2')]);}['updateHeight'](){const _0x225a7e=this['element']['clientHeight'];_0x225a7e&&(this[_0x1f0a('0x5')]=_0x225a7e);}[_0x1f0a('0x9')](){this[_0x1f0a('0x3')]['clear'](),this['_mutationObserver'][_0x1f0a('0xa')](),super[_0x1f0a('0x9')]();}}
23
+ const _0x2b9e=['_mutationObserver','bottom','render','div','setTemplate','attach','set','height','ck-sidebar-item','content','element','isAnimationDisabled','top','detach','_targetTop','updateHeight','createCollection','destroy','clear'];(function(_0x222b38,_0x2b9e70){const _0x5cc616=function(_0x25878d){while(--_0x25878d){_0x222b38['push'](_0x222b38['shift']());}};_0x5cc616(++_0x2b9e70);}(_0x2b9e,0xf3));const _0x5cc6=function(_0x222b38,_0x2b9e70){_0x222b38=_0x222b38-0x0;let _0x5cc616=_0x2b9e[_0x222b38];return _0x5cc616;};import{View as _0x345a3f}from'ckeditor5/src/ui';import{toUnit as _0x5de07c}from'ckeditor5/src/utils';import _0x4c8d8b from'../../utils/createmutationobserver';const gt=_0x5de07c('px');export default class O extends _0x345a3f{constructor(_0x4c9d22){super(_0x4c9d22),this[_0x5cc6('0xa')](_0x5cc6('0x10')),this[_0x5cc6('0xa')](_0x5cc6('0xb'),0x0),this['bind'](_0x5cc6('0x5'))['to'](this,_0x5cc6('0x10'),this,'height',(_0x1373df,_0x265e01)=>(_0x1373df||0x0)+_0x265e01),this[_0x5cc6('0xa')](_0x5cc6('0xf'),!0x1),this[_0x5cc6('0x4')]=_0x4c8d8b(()=>this[_0x5cc6('0x0')]()),this[_0x5cc6('0x12')]=null,this[_0x5cc6('0xd')]=this[_0x5cc6('0x1')]();const _0x165e5a=this['bindTemplate'];this[_0x5cc6('0x8')]({'tag':_0x5cc6('0x7'),'attributes':{'class':[_0x5cc6('0xc'),_0x165e5a['to']('isAnimationDisabled',_0x1357c6=>_0x1357c6?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x165e5a['to'](_0x5cc6('0x10'),gt)}},'children':this[_0x5cc6('0xd')]});}[_0x5cc6('0x6')](){super[_0x5cc6('0x6')](),this[_0x5cc6('0x4')][_0x5cc6('0x9')](this[_0x5cc6('0xe')]);}[_0x5cc6('0x0')](){const _0x42d300=this['element']['clientHeight'];_0x42d300&&(this[_0x5cc6('0xb')]=_0x42d300);}['destroy'](){this[_0x5cc6('0xd')][_0x5cc6('0x3')](),this[_0x5cc6('0x4')][_0x5cc6('0x11')](),super[_0x5cc6('0x2')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xcfdc=['list','ck-reset','set','div','minHeight','class','createCollection','setTemplate'];(function(_0x2bc717,_0xcfdcd2){const _0x58af96=function(_0x4dcc3b){while(--_0x4dcc3b){_0x2bc717['push'](_0x2bc717['shift']());}};_0x58af96(++_0xcfdcd2);}(_0xcfdc,0x11c));const _0x58af=function(_0x2bc717,_0xcfdcd2){_0x2bc717=_0x2bc717-0x0;let _0x58af96=_0xcfdc[_0x2bc717];return _0x58af96;};import{View as _0x5b2a36}from'ckeditor5/src/ui';import{toUnit as _0x2565be}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const ft=_0x2565be('px');export default class T extends _0x5b2a36{constructor(_0x3af59d){super(_0x3af59d);const _0x279c78=this['bindTemplate'];this['set'](_0x58af('0x0'),0x0),this[_0x58af('0x6')]('class',''),this[_0x58af('0x4')]=this[_0x58af('0x2')](),this[_0x58af('0x3')]({'tag':_0x58af('0x7'),'attributes':{'class':['ck','ck-sidebar',_0x58af('0x5'),_0x279c78['to'](_0x58af('0x1'))],'style':{'minHeight':_0x279c78['to'](_0x58af('0x0'),_0x264eb0=>_0x264eb0?ft(_0x264eb0+0xa):null)}},'children':this[_0x58af('0x4')]});}}
23
+ const _0x4fb0=['bindTemplate','set','setTemplate','createCollection','ck-sidebar','list','div','minHeight','ck-reset'];(function(_0x386a19,_0x4fb03c){const _0x500301=function(_0x33e7c9){while(--_0x33e7c9){_0x386a19['push'](_0x386a19['shift']());}};_0x500301(++_0x4fb03c);}(_0x4fb0,0x151));const _0x5003=function(_0x386a19,_0x4fb03c){_0x386a19=_0x386a19-0x0;let _0x500301=_0x4fb0[_0x386a19];return _0x500301;};import{View as _0x563e2f}from'ckeditor5/src/ui';import{toUnit as _0x1fd8ea}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const gt=_0x1fd8ea('px');export default class T extends _0x563e2f{constructor(_0x4990f1){super(_0x4990f1);const _0x4e3b2e=this[_0x5003('0x5')];this[_0x5003('0x6')](_0x5003('0x3'),0x0),this[_0x5003('0x6')]('class',''),this[_0x5003('0x1')]=this[_0x5003('0x8')](),this[_0x5003('0x7')]({'tag':_0x5003('0x2'),'attributes':{'class':['ck',_0x5003('0x0'),_0x5003('0x4'),_0x4e3b2e['to']('class')],'style':{'minHeight':_0x4e3b2e['to'](_0x5003('0x3'),_0x562b67=>_0x562b67?gt(_0x562b67+0xa):null)}},'children':this[_0x5003('0x1')]});}}